@varlet/ui 1.27.20 → 2.0.0-alpha.1663742071515
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENCE +1 -1
- package/README.md +27 -33
- package/README.zh-CN.md +92 -0
- package/es/action-sheet/actionSheet.css +1 -1
- package/es/action-sheet/props.js +1 -1
- package/es/bottom-navigation/BottomNavigation.js +1 -1
- package/es/button/Button.js +2 -1
- package/es/button/button.css +1 -1
- package/es/button/props.js +5 -0
- package/es/card/Card.js +18 -22
- package/es/card/card.css +1 -1
- package/es/card/props.js +0 -7
- package/es/cell/Cell.js +3 -3
- package/es/cell/cell.css +1 -1
- package/es/cell/props.js +2 -2
- package/es/chip/chip.css +1 -1
- package/es/date-picker/DatePicker.js +1 -1
- package/es/date-picker/props.js +1 -1
- package/es/date-picker/src/day-picker-panel.js +1 -1
- package/es/date-picker/src/month-picker-panel.js +1 -1
- package/es/dialog/props.js +1 -1
- package/es/divider/Divider.js +1 -1
- package/es/image-preview/props.js +1 -1
- package/es/index.js +5 -0
- package/es/lazy/index.js +1 -1
- package/es/loading/loading.css +1 -1
- package/es/loading/props.js +1 -2
- package/es/locale/index.js +7 -2
- package/es/menu/Menu.js +318 -94
- package/es/{action-sheet/ActionSheetSfc.less → menu/MenuSfc.css} +0 -0
- package/es/menu/index.js +1 -1
- package/es/menu/menu.css +1 -1
- package/es/menu/props.js +23 -6
- package/es/menu/style/index.js +3 -2
- package/es/pagination/Pagination.js +7 -3
- package/es/pagination/pagination.css +1 -1
- package/es/picker/props.js +1 -1
- package/es/popup/Popup.js +3 -3
- package/es/rate/Rate.js +20 -36
- package/es/rate/rate.css +1 -1
- package/es/ripple/index.js +2 -2
- package/es/select/Select.js +18 -46
- package/es/select/select.css +1 -1
- package/es/slider/Slider.js +1 -1
- package/es/snackbar/core.js +4 -2
- package/es/snackbar/index.js +1 -1
- package/es/snackbar/props.js +6 -2
- package/es/snackbar/style/index.js +1 -1
- package/es/space/Space.js +6 -2
- package/es/style-provider/StyleProvider.js +5 -1
- package/es/style-provider/index.js +1 -5
- package/es/style.css +1 -1
- package/es/style.js +1 -0
- package/es/switch/Switch.js +6 -5
- package/es/tabs/tabs.css +1 -1
- package/es/tabs-items/TabsItems.js +8 -2
- package/es/themes/dark/cell.js +1 -1
- package/es/themes/dark/index.js +3 -2
- package/es/themes/dark/menu.js +3 -0
- package/es/themes/index.js +4 -0
- package/es/time-picker/TimePicker.js +1 -1
- package/es/time-picker/props.js +1 -1
- package/es/umdIndex.js +5 -0
- package/es/utils/components.js +2 -2
- package/es/utils/jest.js +0 -19
- package/es/varlet.esm.js +12805 -13960
- package/highlight/attributes.json +41 -9
- package/highlight/tags.json +14 -6
- package/highlight/web-types.json +83 -11
- package/lib/action-sheet/actionSheet.css +1 -1
- package/lib/action-sheet/props.js +1 -1
- package/lib/bottom-navigation/BottomNavigation.js +1 -1
- package/lib/button/Button.js +2 -1
- package/lib/button/button.css +1 -1
- package/lib/button/props.js +5 -0
- package/lib/card/Card.js +18 -22
- package/lib/card/card.css +1 -1
- package/lib/card/props.js +0 -7
- package/lib/cell/Cell.js +3 -3
- package/lib/cell/cell.css +1 -1
- package/lib/cell/props.js +2 -2
- package/lib/chip/chip.css +1 -1
- package/lib/date-picker/DatePicker.js +1 -1
- package/lib/date-picker/props.js +1 -1
- package/lib/date-picker/src/day-picker-panel.js +1 -1
- package/lib/date-picker/src/month-picker-panel.js +1 -1
- package/lib/dialog/props.js +1 -1
- package/lib/divider/Divider.js +1 -1
- package/lib/image-preview/props.js +1 -1
- package/lib/index.js +3 -0
- package/lib/lazy/index.js +1 -1
- package/lib/loading/loading.css +1 -1
- package/lib/loading/props.js +1 -2
- package/lib/locale/index.js +11 -1
- package/lib/menu/Menu.js +321 -91
- package/{es/app-bar/AppBarSfc.less → lib/menu/MenuSfc.css} +0 -0
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +1 -1
- package/lib/menu/props.js +23 -6
- package/lib/menu/style/index.js +3 -2
- package/lib/pagination/Pagination.js +6 -2
- package/lib/pagination/pagination.css +1 -1
- package/lib/picker/props.js +1 -1
- package/lib/popup/Popup.js +2 -2
- package/lib/rate/Rate.js +20 -36
- package/lib/rate/rate.css +1 -1
- package/lib/ripple/index.js +2 -2
- package/lib/select/Select.js +17 -45
- package/lib/select/select.css +1 -1
- package/lib/slider/Slider.js +1 -1
- package/lib/snackbar/core.js +4 -2
- package/lib/snackbar/index.js +1 -1
- package/lib/snackbar/props.js +6 -2
- package/lib/space/Space.js +6 -2
- package/lib/style-provider/StyleProvider.js +5 -1
- package/lib/style-provider/index.js +1 -5
- package/lib/style.css +1 -1
- package/lib/style.js +1 -0
- package/lib/switch/Switch.js +6 -5
- package/lib/tabs/tabs.css +1 -1
- package/lib/tabs-items/TabsItems.js +9 -3
- package/lib/themes/dark/cell.js +1 -1
- package/lib/themes/dark/index.js +4 -2
- package/lib/themes/dark/menu.js +8 -0
- package/lib/themes/index.js +13 -0
- package/lib/time-picker/TimePicker.js +1 -1
- package/lib/time-picker/props.js +1 -1
- package/lib/utils/components.js +3 -3
- package/lib/utils/jest.js +0 -21
- package/package.json +10 -7
- package/types/actionSheet.d.ts +1 -2
- package/types/appBar.d.ts +4 -3
- package/types/backTop.d.ts +1 -2
- package/types/badge.d.ts +5 -4
- package/types/bottomNavigation.d.ts +1 -2
- package/types/bottomNavigationItem.d.ts +1 -2
- package/types/button.d.ts +7 -6
- package/types/card.d.ts +7 -8
- package/types/cell.d.ts +3 -4
- package/types/checkbox.d.ts +1 -2
- package/types/checkboxGroup.d.ts +4 -5
- package/types/chip.d.ts +3 -4
- package/types/col.d.ts +1 -2
- package/types/collapse.d.ts +1 -2
- package/types/collapseItem.d.ts +1 -2
- package/types/countdown.d.ts +1 -2
- package/types/counter.d.ts +3 -4
- package/types/datePicker.d.ts +5 -4
- package/types/dialog.d.ts +4 -3
- package/types/divider.d.ts +1 -2
- package/types/form.d.ts +1 -2
- package/types/icon.d.ts +1 -2
- package/types/image.d.ts +4 -3
- package/types/imagePreview.d.ts +2 -3
- package/types/index.d.ts +67 -0
- package/types/indexAnchor.d.ts +1 -2
- package/types/indexBar.d.ts +1 -2
- package/types/input.d.ts +6 -5
- package/types/list.d.ts +1 -2
- package/types/loading.d.ts +5 -4
- package/types/locale.d.ts +3 -0
- package/types/menu.d.ts +27 -3
- package/types/option.d.ts +1 -2
- package/types/pagination.d.ts +1 -2
- package/types/picker.d.ts +1 -2
- package/types/popup.d.ts +4 -3
- package/types/progress.d.ts +4 -3
- package/types/pullRefresh.d.ts +1 -2
- package/types/radio.d.ts +3 -4
- package/types/radioGroup.d.ts +4 -5
- package/types/rate.d.ts +1 -2
- package/types/row.d.ts +7 -4
- package/types/select.d.ts +6 -5
- package/types/skeleton.d.ts +1 -2
- package/types/slider.d.ts +4 -3
- package/types/snackbar.d.ts +9 -9
- package/types/space.d.ts +1 -2
- package/types/step.d.ts +1 -2
- package/types/steps.d.ts +2 -3
- package/types/sticky.d.ts +1 -2
- package/types/styleProvider.d.ts +2 -2
- package/types/swipe.d.ts +1 -2
- package/types/swipeItem.d.ts +1 -2
- package/types/switch.d.ts +1 -2
- package/types/tab.d.ts +1 -2
- package/types/tabItem.d.ts +1 -2
- package/types/table.d.ts +1 -2
- package/types/tabs.d.ts +3 -4
- package/types/tabsItems.d.ts +4 -2
- package/types/timePicker.d.ts +5 -4
- package/types/uploader.d.ts +12 -7
- package/types/varComponent.d.ts +6 -0
- package/umd/varlet.js +16 -4
- package/README.en-US.md +0 -93
- package/es/action-sheet/actionSheet.less +0 -68
- package/es/action-sheet/style/less.js +0 -6
- package/es/app-bar/appBar.less +0 -57
- package/es/app-bar/style/less.js +0 -4
- package/es/back-top/BackTopSfc.less +0 -0
- package/es/back-top/backTop.less +0 -27
- package/es/back-top/style/less.js +0 -5
- package/es/badge/BadgeSfc.less +0 -0
- package/es/badge/badge.less +0 -119
- package/es/badge/style/less.js +0 -4
- package/es/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/es/bottom-navigation/bottomNavigation.less +0 -56
- package/es/bottom-navigation/style/less.js +0 -4
- package/es/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/es/bottom-navigation-item/bottomNavigationItem.less +0 -78
- package/es/bottom-navigation-item/style/less.js +0 -6
- package/es/button/ButtonSfc.less +0 -0
- package/es/button/button.less +0 -183
- package/es/button/style/less.js +0 -6
- package/es/card/CardSfc.less +0 -0
- package/es/card/card.less +0 -189
- package/es/card/style/less.js +0 -5
- package/es/cell/CellSfc.less +0 -0
- package/es/cell/cell.less +0 -78
- package/es/cell/style/less.js +0 -4
- package/es/checkbox/CheckboxSfc.less +0 -0
- package/es/checkbox/checkbox.less +0 -78
- package/es/checkbox/style/less.js +0 -6
- package/es/checkbox-group/CheckboxGroupSfc.less +0 -0
- package/es/checkbox-group/checkboxGroup.less +0 -12
- package/es/checkbox-group/style/less.js +0 -4
- package/es/chip/ChipSfc.less +0 -0
- package/es/chip/chip.less +0 -182
- package/es/chip/style/less.js +0 -4
- package/es/col/ColSfc.less +0 -0
- package/es/col/col.less +0 -74
- package/es/col/style/less.js +0 -3
- package/es/collapse/CollapseSfc.less +0 -1
- package/es/collapse/style/less.js +0 -3
- package/es/collapse-item/CollapseItemSfc.less +0 -0
- package/es/collapse-item/collapseItem.less +0 -105
- package/es/collapse-item/style/less.js +0 -4
- package/es/context/style/less.js +0 -0
- package/es/countdown/CountdownSfc.less +0 -0
- package/es/countdown/style/less.js +0 -2
- package/es/counter/CounterSfc.less +0 -0
- package/es/counter/counter.less +0 -89
- package/es/counter/style/less.js +0 -7
- package/es/date-picker/DatePickerSfc.less +0 -0
- package/es/date-picker/date-picker.less +0 -354
- package/es/date-picker/style/less.js +0 -7
- package/es/dialog/DialogSfc.less +0 -0
- package/es/dialog/dialog.less +0 -77
- package/es/dialog/style/less.js +0 -5
- package/es/divider/DividerSfc.less +0 -0
- package/es/divider/divider.less +0 -78
- package/es/divider/style/less.js +0 -3
- package/es/form/FormSfc.less +0 -0
- package/es/form/style/less.js +0 -2
- package/es/form-details/FormDetailsSfc.less +0 -0
- package/es/form-details/formDetails.less +0 -48
- package/es/form-details/style/less.js +0 -3
- package/es/icon/IconSfc.less +0 -0
- package/es/icon/icon.less +0 -26
- package/es/icon/style/less.js +0 -3
- package/es/image/ImageSfc.less +0 -0
- package/es/image/image.less +0 -9
- package/es/image/style/less.js +0 -4
- package/es/image-preview/ImagePreviewSfc.less +0 -0
- package/es/image-preview/imagePreview.less +0 -76
- package/es/image-preview/style/less.js +0 -7
- package/es/index-anchor/IndexAnchorSfc.less +0 -1
- package/es/index-anchor/style/less.js +0 -3
- package/es/index-bar/IndexBarSfc.less +0 -0
- package/es/index-bar/indexBar.less +0 -43
- package/es/index-bar/style/less.js +0 -3
- package/es/input/InputSfc.less +0 -0
- package/es/input/input.less +0 -187
- package/es/input/style/less.js +0 -5
- package/es/lazy/style/less.js +0 -0
- package/es/less.js +0 -64
- package/es/list/ListSfc.less +0 -0
- package/es/list/list.less +0 -63
- package/es/list/style/less.js +0 -5
- package/es/loading/LoadingSfc.less +0 -0
- package/es/loading/loading.less +0 -500
- package/es/loading/style/less.js +0 -3
- package/es/locale/style/less.js +0 -0
- package/es/menu/menu.less +0 -21
- package/es/menu/style/less.js +0 -3
- package/es/option/OptionSfc.less +0 -0
- package/es/option/option.less +0 -37
- package/es/option/style/less.js +0 -6
- package/es/pagination/PaginationSfc.less +0 -0
- package/es/pagination/pagination.less +0 -188
- package/es/pagination/style/less.js +0 -8
- package/es/picker/PickerSfc.less +0 -0
- package/es/picker/picker.less +0 -106
- package/es/picker/style/less.js +0 -5
- package/es/popup/popup.less +0 -125
- package/es/popup/style/less.js +0 -2
- package/es/progress/ProgressSfc.less +0 -0
- package/es/progress/progress.less +0 -101
- package/es/progress/style/less.js +0 -3
- package/es/pull-refresh/PullRefreshSfc.less +0 -0
- package/es/pull-refresh/pullRefresh.less +0 -56
- package/es/pull-refresh/style/less.js +0 -5
- package/es/radio/RadioSfc.less +0 -0
- package/es/radio/radio.less +0 -78
- package/es/radio/style/less.js +0 -6
- package/es/radio-group/RadioGroupSfc.less +0 -0
- package/es/radio-group/radioGroup.less +0 -12
- package/es/radio-group/style/less.js +0 -4
- package/es/rate/RateSfc.less +0 -0
- package/es/rate/rate.less +0 -48
- package/es/rate/style/less.js +0 -6
- package/es/ripple/ripple.less +0 -20
- package/es/ripple/style/less.js +0 -2
- package/es/row/RowSfc.less +0 -0
- package/es/row/row.less +0 -4
- package/es/row/style/less.js +0 -3
- package/es/select/SelectSfc.less +0 -0
- package/es/select/select.less +0 -184
- package/es/select/style/less.js +0 -7
- package/es/skeleton/SkeletonSfc.less +0 -0
- package/es/skeleton/skeleton.less +0 -138
- package/es/skeleton/style/less.js +0 -3
- package/es/slider/SliderSfc.less +0 -0
- package/es/slider/slider.less +0 -147
- package/es/slider/style/less.js +0 -4
- package/es/snackbar/SnackbarSfc.less +0 -0
- package/es/snackbar/coreSfc.less +0 -0
- package/es/snackbar/snackbar.less +0 -129
- package/es/snackbar/style/less.js +0 -8
- package/es/space/space.less +0 -6
- package/es/space/style/less.js +0 -2
- package/es/step/StepSfc.less +0 -0
- package/es/step/step.less +0 -145
- package/es/step/style/less.js +0 -4
- package/es/steps/StepsSfc.less +0 -1
- package/es/steps/style/less.js +0 -2
- package/es/sticky/StickySfc.less +0 -0
- package/es/sticky/sticky.less +0 -8
- package/es/sticky/style/less.js +0 -3
- package/es/style-provider/StyleProviderSfc.less +0 -0
- package/es/style-provider/style/less.js +0 -2
- package/es/styles/common.less +0 -73
- package/es/styles/elevation.less +0 -128
- package/es/styles/style/less.js +0 -0
- package/es/styles/var.css +0 -0
- package/es/styles/var.less +0 -30
- package/es/swipe/SwipeSfc.less +0 -0
- package/es/swipe/style/less.js +0 -3
- package/es/swipe/swipe.less +0 -60
- package/es/swipe-item/SwipeItemSfc.less +0 -0
- package/es/swipe-item/style/less.js +0 -3
- package/es/swipe-item/swipeItem.less +0 -5
- package/es/switch/SwitchSfc.less +0 -0
- package/es/switch/style/less.js +0 -7
- package/es/switch/switch.less +0 -94
- package/es/tab/TabSfc.less +0 -0
- package/es/tab/style/less.js +0 -4
- package/es/tab/tab.less +0 -46
- package/es/tab-item/TabItemSfc.less +0 -0
- package/es/tab-item/style/less.js +0 -4
- package/es/tab-item/tabItem.less +0 -6
- package/es/table/TableSfc.less +0 -0
- package/es/table/style/less.js +0 -4
- package/es/table/table.less +0 -110
- package/es/tabs/TabsSfc.less +0 -0
- package/es/tabs/style/less.js +0 -5
- package/es/tabs/tabs.less +0 -99
- package/es/tabs-items/TabsItemsSfc.less +0 -0
- package/es/tabs-items/style/less.js +0 -3
- package/es/themes/style/less.js +0 -0
- package/es/time-picker/TimePickerSfc.less +0 -0
- package/es/time-picker/style/less.js +0 -4
- package/es/time-picker/timePicker.less +0 -237
- package/es/uploader/UploaderSfc.less +0 -0
- package/es/uploader/style/less.js +0 -8
- package/es/uploader/uploader.less +0 -216
- package/es/utils/style/less.js +0 -0
- package/lib/action-sheet/ActionSheetSfc.less +0 -0
- package/lib/action-sheet/actionSheet.less +0 -68
- package/lib/action-sheet/style/less.js +0 -6
- package/lib/app-bar/AppBarSfc.less +0 -0
- package/lib/app-bar/appBar.less +0 -57
- package/lib/app-bar/style/less.js +0 -4
- package/lib/back-top/BackTopSfc.less +0 -0
- package/lib/back-top/backTop.less +0 -27
- package/lib/back-top/style/less.js +0 -5
- package/lib/badge/BadgeSfc.less +0 -0
- package/lib/badge/badge.less +0 -119
- package/lib/badge/style/less.js +0 -4
- package/lib/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/lib/bottom-navigation/bottomNavigation.less +0 -56
- package/lib/bottom-navigation/style/less.js +0 -4
- package/lib/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/lib/bottom-navigation-item/bottomNavigationItem.less +0 -78
- package/lib/bottom-navigation-item/style/less.js +0 -6
- package/lib/button/ButtonSfc.less +0 -0
- package/lib/button/button.less +0 -183
- package/lib/button/style/less.js +0 -6
- package/lib/card/CardSfc.less +0 -0
- package/lib/card/card.less +0 -189
- package/lib/card/style/less.js +0 -5
- package/lib/cell/CellSfc.less +0 -0
- package/lib/cell/cell.less +0 -78
- package/lib/cell/style/less.js +0 -4
- package/lib/checkbox/CheckboxSfc.less +0 -0
- package/lib/checkbox/checkbox.less +0 -78
- package/lib/checkbox/style/less.js +0 -6
- package/lib/checkbox-group/CheckboxGroupSfc.less +0 -0
- package/lib/checkbox-group/checkboxGroup.less +0 -12
- package/lib/checkbox-group/style/less.js +0 -4
- package/lib/chip/ChipSfc.less +0 -0
- package/lib/chip/chip.less +0 -182
- package/lib/chip/style/less.js +0 -4
- package/lib/col/ColSfc.less +0 -0
- package/lib/col/col.less +0 -74
- package/lib/col/style/less.js +0 -3
- package/lib/collapse/CollapseSfc.less +0 -1
- package/lib/collapse/style/less.js +0 -3
- package/lib/collapse-item/CollapseItemSfc.less +0 -0
- package/lib/collapse-item/collapseItem.less +0 -105
- package/lib/collapse-item/style/less.js +0 -4
- package/lib/context/style/less.js +0 -0
- package/lib/countdown/CountdownSfc.less +0 -0
- package/lib/countdown/style/less.js +0 -2
- package/lib/counter/CounterSfc.less +0 -0
- package/lib/counter/counter.less +0 -89
- package/lib/counter/style/less.js +0 -7
- package/lib/date-picker/DatePickerSfc.less +0 -0
- package/lib/date-picker/date-picker.less +0 -354
- package/lib/date-picker/style/less.js +0 -7
- package/lib/dialog/DialogSfc.less +0 -0
- package/lib/dialog/dialog.less +0 -77
- package/lib/dialog/style/less.js +0 -5
- package/lib/divider/DividerSfc.less +0 -0
- package/lib/divider/divider.less +0 -78
- package/lib/divider/style/less.js +0 -3
- package/lib/form/FormSfc.less +0 -0
- package/lib/form/style/less.js +0 -2
- package/lib/form-details/FormDetailsSfc.less +0 -0
- package/lib/form-details/formDetails.less +0 -48
- package/lib/form-details/style/less.js +0 -3
- package/lib/icon/IconSfc.less +0 -0
- package/lib/icon/icon.less +0 -26
- package/lib/icon/style/less.js +0 -3
- package/lib/image/ImageSfc.less +0 -0
- package/lib/image/image.less +0 -9
- package/lib/image/style/less.js +0 -4
- package/lib/image-preview/ImagePreviewSfc.less +0 -0
- package/lib/image-preview/imagePreview.less +0 -76
- package/lib/image-preview/style/less.js +0 -7
- package/lib/index-anchor/IndexAnchorSfc.less +0 -1
- package/lib/index-anchor/style/less.js +0 -3
- package/lib/index-bar/IndexBarSfc.less +0 -0
- package/lib/index-bar/indexBar.less +0 -43
- package/lib/index-bar/style/less.js +0 -3
- package/lib/input/InputSfc.less +0 -0
- package/lib/input/input.less +0 -187
- package/lib/input/style/less.js +0 -5
- package/lib/lazy/style/less.js +0 -0
- package/lib/less.js +0 -64
- package/lib/list/ListSfc.less +0 -0
- package/lib/list/list.less +0 -63
- package/lib/list/style/less.js +0 -5
- package/lib/loading/LoadingSfc.less +0 -0
- package/lib/loading/loading.less +0 -500
- package/lib/loading/style/less.js +0 -3
- package/lib/locale/style/less.js +0 -0
- package/lib/menu/menu.less +0 -21
- package/lib/menu/style/less.js +0 -3
- package/lib/option/OptionSfc.less +0 -0
- package/lib/option/option.less +0 -37
- package/lib/option/style/less.js +0 -6
- package/lib/pagination/PaginationSfc.less +0 -0
- package/lib/pagination/pagination.less +0 -188
- package/lib/pagination/style/less.js +0 -8
- package/lib/picker/PickerSfc.less +0 -0
- package/lib/picker/picker.less +0 -106
- package/lib/picker/style/less.js +0 -5
- package/lib/popup/popup.less +0 -125
- package/lib/popup/style/less.js +0 -2
- package/lib/progress/ProgressSfc.less +0 -0
- package/lib/progress/progress.less +0 -101
- package/lib/progress/style/less.js +0 -3
- package/lib/pull-refresh/PullRefreshSfc.less +0 -0
- package/lib/pull-refresh/pullRefresh.less +0 -56
- package/lib/pull-refresh/style/less.js +0 -5
- package/lib/radio/RadioSfc.less +0 -0
- package/lib/radio/radio.less +0 -78
- package/lib/radio/style/less.js +0 -6
- package/lib/radio-group/RadioGroupSfc.less +0 -0
- package/lib/radio-group/radioGroup.less +0 -12
- package/lib/radio-group/style/less.js +0 -4
- package/lib/rate/RateSfc.less +0 -0
- package/lib/rate/rate.less +0 -48
- package/lib/rate/style/less.js +0 -6
- package/lib/ripple/ripple.less +0 -20
- package/lib/ripple/style/less.js +0 -2
- package/lib/row/RowSfc.less +0 -0
- package/lib/row/row.less +0 -4
- package/lib/row/style/less.js +0 -3
- package/lib/select/SelectSfc.less +0 -0
- package/lib/select/select.less +0 -184
- package/lib/select/style/less.js +0 -7
- package/lib/skeleton/SkeletonSfc.less +0 -0
- package/lib/skeleton/skeleton.less +0 -138
- package/lib/skeleton/style/less.js +0 -3
- package/lib/slider/SliderSfc.less +0 -0
- package/lib/slider/slider.less +0 -147
- package/lib/slider/style/less.js +0 -4
- package/lib/snackbar/SnackbarSfc.less +0 -0
- package/lib/snackbar/coreSfc.less +0 -0
- package/lib/snackbar/snackbar.less +0 -129
- package/lib/snackbar/style/less.js +0 -8
- package/lib/space/space.less +0 -6
- package/lib/space/style/less.js +0 -2
- package/lib/step/StepSfc.less +0 -0
- package/lib/step/step.less +0 -145
- package/lib/step/style/less.js +0 -4
- package/lib/steps/StepsSfc.less +0 -1
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/StickySfc.less +0 -0
- package/lib/sticky/sticky.less +0 -8
- package/lib/sticky/style/less.js +0 -3
- package/lib/style-provider/StyleProviderSfc.less +0 -0
- package/lib/style-provider/style/less.js +0 -2
- package/lib/styles/common.less +0 -73
- package/lib/styles/elevation.less +0 -128
- package/lib/styles/style/less.js +0 -0
- package/lib/styles/var.css +0 -0
- package/lib/styles/var.less +0 -30
- package/lib/swipe/SwipeSfc.less +0 -0
- package/lib/swipe/style/less.js +0 -3
- package/lib/swipe/swipe.less +0 -60
- package/lib/swipe-item/SwipeItemSfc.less +0 -0
- package/lib/swipe-item/style/less.js +0 -3
- package/lib/swipe-item/swipeItem.less +0 -5
- package/lib/switch/SwitchSfc.less +0 -0
- package/lib/switch/style/less.js +0 -7
- package/lib/switch/switch.less +0 -94
- package/lib/tab/TabSfc.less +0 -0
- package/lib/tab/style/less.js +0 -4
- package/lib/tab/tab.less +0 -46
- package/lib/tab-item/TabItemSfc.less +0 -0
- package/lib/tab-item/style/less.js +0 -4
- package/lib/tab-item/tabItem.less +0 -6
- package/lib/table/TableSfc.less +0 -0
- package/lib/table/style/less.js +0 -4
- package/lib/table/table.less +0 -110
- package/lib/tabs/TabsSfc.less +0 -0
- package/lib/tabs/style/less.js +0 -5
- package/lib/tabs/tabs.less +0 -99
- package/lib/tabs-items/TabsItemsSfc.less +0 -0
- package/lib/tabs-items/style/less.js +0 -3
- package/lib/themes/style/less.js +0 -0
- package/lib/time-picker/TimePickerSfc.less +0 -0
- package/lib/time-picker/style/less.js +0 -4
- package/lib/time-picker/timePicker.less +0 -237
- package/lib/uploader/UploaderSfc.less +0 -0
- package/lib/uploader/style/less.js +0 -8
- package/lib/uploader/uploader.less +0 -216
- package/lib/utils/style/less.js +0 -0
- package/types/global.d.ts +0 -68
package/README.en-US.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<a href="https://varlet-varletjs.vercel.app/#/en-US/home">
|
|
3
|
-
<img src="https://varlet-varletjs.vercel.app/logo.svg" width="150">
|
|
4
|
-
</a>
|
|
5
|
-
<h1>VARLET</h1>
|
|
6
|
-
<p>Material design mobile component library for Vue3</p>
|
|
7
|
-
<p>
|
|
8
|
-
<a href="https://varlet-varletjs.vercel.app/#/en-US/home">Documentation(Vercel)</a>
|
|
9
|
-
<a href="https://varlet.gitee.io/varlet-ui/#/en-US/home">Documentation(Gitee)</a>
|
|
10
|
-
</p>
|
|
11
|
-
<p>
|
|
12
|
-
<img src="https://img.shields.io/npm/v/@varlet/ui?style=flat-square" alt="version">
|
|
13
|
-
<img src="https://img.shields.io/github/stars/varletjs/varlet" alt="stars">
|
|
14
|
-
<img src="https://img.shields.io/badge/vue-v3.2.0%2B-%23407fbc" alt="vue">
|
|
15
|
-
<img src="https://img.shields.io/npm/l/@varlet/ui.svg" alt="licence">
|
|
16
|
-
<img src="https://img.shields.io/codecov/c/github/varletjs/varlet" alt="coverage">
|
|
17
|
-
<img src="https://img.badgesize.io/https://unpkg.com/@varlet/ui/umd/varlet.js?compression=gzip&label=gzip" alt="gzip" />
|
|
18
|
-
<img src="https://github.com/varletjs/varlet/workflows/CI/badge.svg" alt="ci">
|
|
19
|
-
</p>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
### Intro
|
|
25
|
-
|
|
26
|
-
Varlet is a Material design mobile component library developed based on `Vue3`, developed and maintained by partners in the community.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### Features
|
|
30
|
-
- 🚀 Provide 50+ high quality general purpose components
|
|
31
|
-
- 🚀 Components are very lightweight
|
|
32
|
-
- 💪 Developed by Chinese, complete Chinese and English documentation and logistics support
|
|
33
|
-
- 🛠️ Support on-demand introduction
|
|
34
|
-
- 🛠️ Support theme customization
|
|
35
|
-
- 🌍 Support internationalization
|
|
36
|
-
- 💡 Support WebStorm, VS Code component syntax highlighting
|
|
37
|
-
- 💪 Support the SSR
|
|
38
|
-
- 💡 Support the Typescript
|
|
39
|
-
- 💪 Make sure more than 90 percent unit test coverage, providing stability assurance
|
|
40
|
-
- 🛠️ Support dark mode
|
|
41
|
-
|
|
42
|
-
### Install
|
|
43
|
-
|
|
44
|
-
### CDN
|
|
45
|
-
`varlet.js` contain all the styles and logic of the component library, and you can import them.
|
|
46
|
-
|
|
47
|
-
```html
|
|
48
|
-
<div id="app"></div>
|
|
49
|
-
<script src="https://cdn.jsdelivr.net/npm/vue@next"></script>
|
|
50
|
-
<script src="https://cdn.jsdelivr.net/npm/@varlet/ui/umd/varlet.js"></script>
|
|
51
|
-
<script>
|
|
52
|
-
const app = Vue.createApp({
|
|
53
|
-
template: '<var-button>Button</var-button>'
|
|
54
|
-
})
|
|
55
|
-
app.use(Varlet).mount('#app')
|
|
56
|
-
</script>
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Webpack / Vite
|
|
60
|
-
```shell
|
|
61
|
-
# Install with npm or yarn or pnpm
|
|
62
|
-
|
|
63
|
-
# npm
|
|
64
|
-
npm i @varlet/ui -S
|
|
65
|
-
|
|
66
|
-
# yarn
|
|
67
|
-
yarn add @varlet/ui
|
|
68
|
-
|
|
69
|
-
# pnpm
|
|
70
|
-
pnpm add @varlet/ui
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
```js
|
|
74
|
-
import App from './App.vue'
|
|
75
|
-
import Varlet from '@varlet/ui'
|
|
76
|
-
import { createApp } from 'vue'
|
|
77
|
-
import '@varlet/ui/es/style.js'
|
|
78
|
-
|
|
79
|
-
createApp(App).use(Varlet).mount('#app')
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Sponsorship us
|
|
83
|
-
|
|
84
|
-
We will use the donations to encourage open source contributors, buy them a cup of coffee and milk tea,
|
|
85
|
-
purchase infrastructure that is helpful to the project, and promote the project to become better.
|
|
86
|
-
|
|
87
|
-
<img style="width: 25%" src="https://github.com/varletjs/varlet/blob/dev/sponsor/wechat.png?raw=true" />
|
|
88
|
-
|
|
89
|
-
### Contributors
|
|
90
|
-
|
|
91
|
-
<a href="https://github.com/varletjs/varlet/graphs/contributors">
|
|
92
|
-
<img src="https://contrib.rocks/image?repo=haoziqaq/varlet" />
|
|
93
|
-
</a>
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@action-sheet-border-radius: 2px;
|
|
2
|
-
@action-sheet-title-color: #888;
|
|
3
|
-
@action-sheet-title-padding: 10px 16px;
|
|
4
|
-
@action-sheet-title-font-size: 14px;
|
|
5
|
-
@action-sheet-action-item-height: 48px;
|
|
6
|
-
@action-sheet-action-item-padding: 0px 18px;
|
|
7
|
-
@action-sheet-action-item-color: #333;
|
|
8
|
-
@action-sheet-action-item-disabled-color: var(--color-text-disabled);
|
|
9
|
-
@action-sheet-icon-margin: 0 20px 0 0;
|
|
10
|
-
@action-sheet-icon-size: 24px;
|
|
11
|
-
@action-sheet-background: #fff;
|
|
12
|
-
|
|
13
|
-
:root {
|
|
14
|
-
--action-sheet-border-radius: @action-sheet-border-radius;
|
|
15
|
-
--action-sheet-title-color: @action-sheet-title-color;
|
|
16
|
-
--action-sheet-title-padding: @action-sheet-title-padding;
|
|
17
|
-
--action-sheet-title-font-size: @action-sheet-title-font-size;
|
|
18
|
-
--action-sheet-action-item-height: @action-sheet-action-item-height;
|
|
19
|
-
--action-sheet-action-item-padding: @action-sheet-action-item-padding;
|
|
20
|
-
--action-sheet-action-item-color: @action-sheet-action-item-color;
|
|
21
|
-
--action-sheet-action-item-disabled-color: @action-sheet-action-item-disabled-color;
|
|
22
|
-
--action-sheet-icon-margin: @action-sheet-icon-margin;
|
|
23
|
-
--action-sheet-icon-size: @action-sheet-icon-size;
|
|
24
|
-
--action-sheet-background: @action-sheet-background;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.var-action-sheet {
|
|
28
|
-
padding: 10px 0;
|
|
29
|
-
max-height: 80%;
|
|
30
|
-
background: var(--action-sheet-background);
|
|
31
|
-
transition: background-color 0.25s;
|
|
32
|
-
|
|
33
|
-
&__popup-radius {
|
|
34
|
-
border-radius: var(--action-sheet-border-radius);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__title {
|
|
38
|
-
padding: var(--action-sheet-title-padding);
|
|
39
|
-
color: var(--action-sheet-title-color);
|
|
40
|
-
font-size: var(--action-sheet-title-font-size);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__action-item {
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
height: var(--action-sheet-action-item-height);
|
|
47
|
-
padding: var(--action-sheet-action-item-padding);
|
|
48
|
-
color: var(--action-sheet-action-item-color);
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&__action-name {
|
|
53
|
-
overflow: auto;
|
|
54
|
-
max-height: var(--action-sheet-action-item-height);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__action-icon[var-action-sheet-cover] {
|
|
58
|
-
margin: var(--action-sheet-icon-margin);
|
|
59
|
-
width: var(--action-sheet-icon-size);
|
|
60
|
-
height: var(--action-sheet-icon-size);
|
|
61
|
-
font-size: var(--action-sheet-icon-size);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&--disabled {
|
|
65
|
-
color: var(--action-sheet-action-item-disabled-color) !important;
|
|
66
|
-
cursor: not-allowed;
|
|
67
|
-
}
|
|
68
|
-
}
|
package/es/app-bar/appBar.less
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
@app-bar-color: var(--color-primary);
|
|
2
|
-
@app-bar-height: 54px;
|
|
3
|
-
@app-bar-text-color: #fff;
|
|
4
|
-
@app-bar-title-padding: 0 12px;
|
|
5
|
-
@app-bar-left-gap: 6px;
|
|
6
|
-
@app-bar-right-gap: 6px;
|
|
7
|
-
|
|
8
|
-
:root {
|
|
9
|
-
--app-bar-color: @app-bar-color;
|
|
10
|
-
--app-bar-title-padding: @app-bar-title-padding;
|
|
11
|
-
--app-bar-text-color: #fff;
|
|
12
|
-
--app-bar-height: @app-bar-height;
|
|
13
|
-
--app-bar-left-gap: @app-bar-left-gap;
|
|
14
|
-
--app-bar-right-gap: @app-bar-right-gap;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.var-app-bar {
|
|
18
|
-
position: relative;
|
|
19
|
-
display: flex;
|
|
20
|
-
width: 100%;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
align-items: center;
|
|
23
|
-
height: var(--app-bar-height);
|
|
24
|
-
background: var(--app-bar-color);
|
|
25
|
-
color: var(--app-bar-text-color);
|
|
26
|
-
transition: background-color 0.25s;
|
|
27
|
-
|
|
28
|
-
&__title {
|
|
29
|
-
flex: 1;
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
text-overflow: ellipsis;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
padding: var(--app-bar-title-padding);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__left,
|
|
39
|
-
&__right {
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
height: 100%;
|
|
43
|
-
z-index: 2;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&__left {
|
|
47
|
-
position: absolute;
|
|
48
|
-
top: 0;
|
|
49
|
-
left: var(--app-bar-left-gap);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&__right {
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 0;
|
|
55
|
-
right: var(--app-bar-right-gap);
|
|
56
|
-
}
|
|
57
|
-
}
|
package/es/app-bar/style/less.js
DELETED
|
File without changes
|
package/es/back-top/backTop.less
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@back-top-right: 40px;
|
|
2
|
-
@back-top-bottom: 40px;
|
|
3
|
-
@back-top-button-size: 40px;
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
--back-top-right: @back-top-right;
|
|
7
|
-
--back-top-bottom: @back-top-bottom;
|
|
8
|
-
--back-top-button-size: @back-top-button-size;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.var-back-top {
|
|
12
|
-
position: fixed;
|
|
13
|
-
right: var(--back-top-right);
|
|
14
|
-
bottom: var(--back-top-bottom);
|
|
15
|
-
transform: scale(0);
|
|
16
|
-
transition: 0.3s var(--cubic-bezier);
|
|
17
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
18
|
-
|
|
19
|
-
.var-button[var-back-top-cover] {
|
|
20
|
-
width: var(--back-top-button-size);
|
|
21
|
-
height: var(--back-top-button-size);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&--active {
|
|
25
|
-
transform: scale(1);
|
|
26
|
-
}
|
|
27
|
-
}
|
package/es/badge/BadgeSfc.less
DELETED
|
File without changes
|
package/es/badge/badge.less
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
@badge-content-padding: 2px 6px;
|
|
2
|
-
@badge-default-color: #e0e0e0;
|
|
3
|
-
@badge-primary-color: var(--color-primary);
|
|
4
|
-
@badge-danger-color: var(--color-danger);
|
|
5
|
-
@badge-success-color: var(--color-success);
|
|
6
|
-
@badge-warning-color: var(--color-warning);
|
|
7
|
-
@badge-info-color: var(--color-info);
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
--badge-content-padding: @badge-content-padding;
|
|
11
|
-
--badge-default-color: @badge-default-color;
|
|
12
|
-
--badge-primary-color: @badge-primary-color;
|
|
13
|
-
--badge-danger-color: @badge-danger-color;
|
|
14
|
-
--badge-success-color: @badge-success-color;
|
|
15
|
-
--badge-warning-color: @badge-warning-color;
|
|
16
|
-
--badge-info-color: @badge-info-color;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.var-badge {
|
|
20
|
-
display: inline-block;
|
|
21
|
-
position: relative;
|
|
22
|
-
transition: background-color 0.25s;
|
|
23
|
-
|
|
24
|
-
&__content {
|
|
25
|
-
color: #fff;
|
|
26
|
-
border-radius: 100px;
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
padding: 2px 6px;
|
|
29
|
-
vertical-align: middle;
|
|
30
|
-
text-align: center;
|
|
31
|
-
display: inline-block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&__icon {
|
|
35
|
-
padding: 2px 4px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__position {
|
|
39
|
-
border: 2px #fff solid;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&--default {
|
|
43
|
-
background: var(--badge-default-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&--primary {
|
|
47
|
-
background: var(--badge-primary-color);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&--info {
|
|
51
|
-
background: var(--badge-info-color);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&--warning {
|
|
55
|
-
background: var(--badge-warning-color);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&--success {
|
|
59
|
-
background: var(--badge-success-color);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&--danger {
|
|
63
|
-
background: var(--badge-danger-color);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&--right-top {
|
|
67
|
-
position: absolute;
|
|
68
|
-
top: 0;
|
|
69
|
-
right: 0;
|
|
70
|
-
transform: translateY(-50%) translateX(50%);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&--left-top {
|
|
74
|
-
position: absolute;
|
|
75
|
-
top: 0;
|
|
76
|
-
left: 0;
|
|
77
|
-
transform: translateY(-50%) translateX(-50%);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&--right-bottom {
|
|
81
|
-
position: absolute;
|
|
82
|
-
bottom: 0;
|
|
83
|
-
right: 0;
|
|
84
|
-
transform: translateY(50%) translateX(50%);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&--left-bottom {
|
|
88
|
-
position: absolute;
|
|
89
|
-
bottom: 0;
|
|
90
|
-
left: 0;
|
|
91
|
-
transform: translateY(50%) translateX(-50%);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&__dot {
|
|
95
|
-
box-sizing: content-box;
|
|
96
|
-
width: 8px;
|
|
97
|
-
height: 8px;
|
|
98
|
-
border-radius: 8px;
|
|
99
|
-
padding: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&__dot--right {
|
|
103
|
-
right: 6px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&__dot--left {
|
|
107
|
-
left: 6px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&-fade-enter-active,
|
|
111
|
-
&-fade-leave-active {
|
|
112
|
-
transition: opacity 0.15s var(--cubic-bezier);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&-fade-enter-from,
|
|
116
|
-
&-fade-leave-to {
|
|
117
|
-
opacity: 0;
|
|
118
|
-
}
|
|
119
|
-
}
|
package/es/badge/style/less.js
DELETED
|
File without changes
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
@bottom-navigation-height: 50px;
|
|
2
|
-
@bottom-navigation-z-index: 1;
|
|
3
|
-
@bottom-navigation-background-color: #fff;
|
|
4
|
-
@bottom-navigation-border-color: #e3e3e3;
|
|
5
|
-
@bottom-navigation-fab-offset: 4px;
|
|
6
|
-
|
|
7
|
-
:root {
|
|
8
|
-
--bottom-navigation-height: @bottom-navigation-height;
|
|
9
|
-
--bottom-navigation-z-index: @bottom-navigation-z-index;
|
|
10
|
-
--bottom-navigation-background-color: @bottom-navigation-background-color;
|
|
11
|
-
--bottom-navigation-border-color: @bottom-navigation-border-color;
|
|
12
|
-
--bottom-navigation-fab-offset: @bottom-navigation-fab-offset;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.var-bottom-navigation {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: var(--bottom-navigation-height);
|
|
18
|
-
display: flex;
|
|
19
|
-
position: relative;
|
|
20
|
-
background-color: var(--bottom-navigation-background-color);
|
|
21
|
-
transition: background-color 250ms, border-color 250ms;
|
|
22
|
-
-webkit-tap-highlight-color: transparent;
|
|
23
|
-
|
|
24
|
-
&--safe-area {
|
|
25
|
-
padding-bottom: constant(safe-area-inset-bottom); // iOS < 11.2
|
|
26
|
-
padding-bottom: env(safe-area-inset-bottom); // iOS >= 11.2
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&--fixed {
|
|
30
|
-
position: fixed;
|
|
31
|
-
left: 0;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&--border {
|
|
36
|
-
border-top: 1px solid var(--bottom-navigation-border-color);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__fab[var-bottom-navigation__fab] {
|
|
40
|
-
width: var(--bottom-navigation-height);
|
|
41
|
-
height: var(--bottom-navigation-height);
|
|
42
|
-
position: absolute;
|
|
43
|
-
z-index: 2;
|
|
44
|
-
transform: translateY(-50%);
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
transition: right 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&--fab-center {
|
|
50
|
-
right: calc(50% - var(--bottom-navigation-height) / 2);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&--fab-right {
|
|
54
|
-
right: var(--bottom-navigation-fab-offset);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
File without changes
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
@bottom-navigation-item-font-size: var(--font-size-sm);
|
|
2
|
-
@bottom-navigation-item-inactive-color: #646566;
|
|
3
|
-
@bottom-navigation-item-active-color: var(--color-primary);
|
|
4
|
-
@bottom-navigation-item-active-background-color: #fff;
|
|
5
|
-
@bottom-navigation-item-line-height: 1;
|
|
6
|
-
@bottom-navigation-item-icon-size: 22px;
|
|
7
|
-
@bottom-navigation-item-icon-margin-bottom: 5px;
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
--bottom-navigation-item-font-size: @bottom-navigation-item-font-size;
|
|
11
|
-
--bottom-navigation-item-inactive-color: @bottom-navigation-item-inactive-color;
|
|
12
|
-
--bottom-navigation-item-active-color: @bottom-navigation-item-active-color;
|
|
13
|
-
--bottom-navigation-item-active-background-color: @bottom-navigation-item-active-background-color;
|
|
14
|
-
--bottom-navigation-item-line-height: @bottom-navigation-item-line-height;
|
|
15
|
-
--bottom-navigation-item-icon-size: @bottom-navigation-item-icon-size;
|
|
16
|
-
--bottom-navigation-item-icon-margin-bottom: @bottom-navigation-item-icon-margin-bottom;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.var-bottom-navigation-item {
|
|
20
|
-
height: 100%;
|
|
21
|
-
padding: 6px 12px 8px;
|
|
22
|
-
position: relative;
|
|
23
|
-
display: inline-flex;
|
|
24
|
-
flex: 1 1 0%;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
line-height: var(--bottom-navigation-item-line-height);
|
|
29
|
-
color: var(--bottom-navigation-item-inactive-color);
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
user-select: none;
|
|
32
|
-
vertical-align: middle;
|
|
33
|
-
appearance: none;
|
|
34
|
-
text-decoration: none;
|
|
35
|
-
background-color: transparent;
|
|
36
|
-
outline: 0;
|
|
37
|
-
border: 0;
|
|
38
|
-
transition: color 250ms, margin 250ms;
|
|
39
|
-
|
|
40
|
-
&--active {
|
|
41
|
-
color: var(--bottom-navigation-item-active-color);
|
|
42
|
-
background-color: var(--bottom-navigation-item-active-background-color);
|
|
43
|
-
transition: background-color 250ms;
|
|
44
|
-
|
|
45
|
-
.var-bottom-navigation-item__label {
|
|
46
|
-
font-size: calc(var(--bottom-navigation-item-font-size) * 1.16);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&--right-half-space {
|
|
51
|
-
margin-right: calc(var(--bottom-navigation-height) / 2);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&--left-half-space {
|
|
55
|
-
margin-left: calc(var(--bottom-navigation-height) / 2);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&--right-space {
|
|
59
|
-
margin-right: calc(var(--bottom-navigation-height) + var(--bottom-navigation-fab-offset));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__icon[var-bottom-navigation-item-cover] {
|
|
63
|
-
font-size: var(--bottom-navigation-item-icon-size);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&__badge[var-bottom-navigation-item-cover] {
|
|
67
|
-
position: absolute;
|
|
68
|
-
left: 4px;
|
|
69
|
-
transform: translateY(-22px);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&__label {
|
|
73
|
-
margin-top: var(--bottom-navigation-item-icon-margin-bottom);
|
|
74
|
-
font-size: var(--bottom-navigation-item-font-size);
|
|
75
|
-
transition: font-size 0.2s ease 0.1s;
|
|
76
|
-
white-space: nowrap;
|
|
77
|
-
}
|
|
78
|
-
}
|
package/es/button/ButtonSfc.less
DELETED
|
File without changes
|