All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.0.0-beta.1 (2021-08-08)
- Replacing the style calculation for background (#246).
before
.vsm-background {
transform: translate(152px, 0px) scaleX(1.08421) scaleY(1.2125);
}
after
.vsm-background {
transform: translate(246px, 10px);
width: 409px;
height: 485px;
}
- Build files
before
dist/demo.html
dist/vue-stripe-menu.common.js
dist/vue-stripe-menu.common.js.map
dist/vue-stripe-menu.css
dist/vue-stripe-menu.umd.js
dist/vue-stripe-menu.umd.js.map
dist/vue-stripe-menu.umd.min.js
dist/vue-stripe-menu.umd.min.js.map
after
dist/vue-stripe-menu.css
dist/vue-stripe-menu.es.js
dist/vue-stripe-menu.umd.js
- TypeScript added.
- Improved ESLint configs, added Prettier and Stylelint.
- Added Github documents: code of conduct, contributors and issue templates.
- Installed Node.js as core
16.15.0
. - Replaced yarn with pnpm.
- Replaced CircleCI with Github Actions.
- Removed build documentation files from the repository. The current build is in the gh-pages branch.
- Added more workflows:
2.1.1 (2021-08-08)
- Migrate from deprecated libSass (node-sass library) to Dart Sass (944ad5d3)
2.1.0 (2021-06-27)
- menu: add align props (1991c9f)
- mobile: emit v-model props on vue-3 (a791be8)
2.0.0 (2021-04-09)
To reduce the number of override styles, unnecessary classes and so on, many styles/classes have been added/changed or removed!
- Added the ability to customize styles in realtime via Demo Website
- Added a simplified demo of the component to the #Install section
- Replace default bundle from vue-stripe-menu.common.js to vue-stripe-menu.umd.min.js
- Fixed animation with problematic dropdown-transition (see new
transition-timeout
props) - Now, when the screen width changes
window.addEventListener('resize')
, the following happens:- dropdown is open - location is being recalculated (
resizeDropdown
function) - dropdown is closed - improved logic of instant destruction of styles
- dropdown is open - location is being recalculated (
- Added the ability not to install the component globally:
import { VsmMenu, VsmMob } from 'vue-stripe-menu'
export default {
components: {
VsmMenu, VsmMob
}
}
- Add styles:
// These default values have been removed from the library (default font-size is yours)
.vsm-link, .vsm-mob-content__wrap {
font-size: 17px;
font-weight: 500;
}
.vsm-root > li {
// display: flex; // <-- default display removed
// All override classes from .vsm-section
}
// Change 768px on your value from $vsm-media, if set
@media screen and (max-width: 768px) {
.vsm-mob-show {
display: block;
}
.vsm-mob-hide {
display: none;
}
.vsm-mob-full {
flex-grow: 1;
}
}
- Change the code/styles according to the changes below
- Removed
cursor: default
from dropdown buttons with HTML element<a href="" />
- Removed
@media
styles - Removed predefined
font-size: 17px
andfont-weight: 500
- Renamed variables:
$vsm-menu-border-radius
>$vsm-border-radius
$vsm-menu-transform-content
>$vsm-transform-content
$vsm-menu-link-height
>$vsm-link-height
$vsm-menu-arrow-shadow
>$vsm-arrow-shadow
$vsm-mob-size
>$vsm-mob-hamburger-size
- Added variables:
- Menu:
$vsm-arrow-size
,$vsm-arrow-shadow
,$vsm-arrow-border-radius
,$vsm-index
,$vsm-background
,$vsm-background-alt
,$vsm-background-arrow
,$vsm-link-padding
- Mob:
$vsm-mob-dropdown-offset
,$vsm-mob-dropdown-border-radius
,$vsm-mob-close-weight
,$vsm-mob-close-color
,$vsm-mob-close-color-hover
,$vsm-mob-link-offset
,$vsm-mob-background
,$vsm-mob-shadow
,$vsm-mob-transition
,$vsm-mob-transition-link
- Menu:
- Removed
vsm-section
(nowlist-style: none
set from parent.vsm-root > li
)
- Renamed
vsm-section_menu
>vsm-link-container
vsm-section_mob
>vsm-mob-container
- Attribute added to each link tabindex="0"
These 2 properties have been removed due to unnecessary use, as well as dependence on css styles (width and height are overridden on the first interaction)
- Removed
base-width
- Removed
base-height
Added the ability to indent the dropdown menu from links
- Added
dropdown-offset
- Added
transition-timeout
When changing dynamic content inside dropdown, you can now call resizeDropdown
via $refs
, resizing and relocating the dropdown
- Added
resizeDropdown
- Removed
hasDropdownEls
- Removed
$refs.links
- Added
itemsWithDropdown
- Added
elementsWithDropdown
- Added
dropdownContainerItems
Added the ability to replace the close button after opening the dropdown menu
- Added
close
- Removed
vsm-mob-full
- Added
vsm-mob-show
1.5.0 (2020-11-17)
- mob: add closeDropdown method (44afeca)
1.4.0 (2020-09-27)
- delete core-js library from deps (5a99691)
1.3.1 (2020-09-03)
- hide dropdown after scroll on mobile browser (af0467c)
1.3.0 (2020-08-24)
- new handler props (a64d090)
- tests: change _vsm_menu to _vsmMenu (2ccd5e9)
1.2.12 (2020-08-06)
1.2.11 (2020-05-24)
- tests: isolate component for each test, replace deprecated code (6628213)
1.2.10 (2020-04-28)
- font blurring (384fb78)
1.2.9 (2020-04-26)
- accept component with dropdown menu (a0072f4)
1.2.8 (2020-04-07)
1.2.7 (2020-03-14)
1.2.6 (2020-02-02)
- rewrite calculate logic for display dropdown menu (ec99f82)
1.2.5 (2020-01-30)
- get HTML Element from Vue component (8e37831)
1.2.4 (2020-01-13)
1.2.3 (2019-12-14)
1.2.2 (2019-11-30)
- accept classes for vsm-link (78f3d70)
- correct calculate width (5f0c17a)
- dropdown height and width calculation (9e0de75)
1.2.1 (2019-10-27)
1.2.0 (2019-10-26)
- support override scss styles and add more variables (dc84d4b)