morya-ui 0.2.8 → 0.3.0
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/CHANGELOG.md +71 -0
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/{Button--RkQybU-.js → Button-B5X_R4Md.js} +2 -2
- package/dist/{Card-BQfmv5Iw.js → Card-Dsmnzong.js} +1 -1
- package/dist/{Checkbox-CL05RRUD.js → Checkbox-BzbAUfyZ.js} +2 -2
- package/dist/FlyoutSubmenu-BrUPmJa1.js +45 -0
- package/dist/Icon-lcN1rS87.js +610 -0
- package/dist/{Pagination-BKvR-RUW.js → Pagination-CVrH8Ypi.js} +3 -3
- package/dist/Popover-BQ07q4VV.js +179 -0
- package/dist/ProgressSpinner-BeWVF6Jv.js +105 -0
- package/dist/{Radio-DsaKvbhk.js → Radio-rF6zdR5Y.js} +2 -2
- package/dist/{ScrollBody-D2IHKP6U.js → ScrollBody-5hUnHj_M.js} +1 -1
- package/dist/{Scrollbar-BYnCO8fv.js → Scrollbar-DTeJ8P5b.js} +2 -2
- package/dist/Tooltip-D5DO0B3z.js +105 -0
- package/dist/VirtualScroller-CHoFCmpP.js +75 -0
- package/dist/accordion/index.js +42 -39
- package/dist/accordion/style.css +293 -40
- package/dist/auto-complete/index.js +185 -124
- package/dist/auto-complete/style.css +497 -96
- package/dist/auto-complete/style.js +2 -0
- package/dist/avatar/index.js +2 -2
- package/dist/avatar/style.css +255 -45
- package/dist/badge/index.js +25 -20
- package/dist/badge/style.css +275 -47
- package/dist/block-ui/index.js +26 -13
- package/dist/block-ui/style.css +250 -40
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/style.css +250 -40
- package/dist/button/index.js +2 -2
- package/dist/button/style.css +251 -41
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +250 -40
- package/dist/carousel/index.js +3 -3
- package/dist/carousel/style.css +251 -41
- package/dist/cascade-select/index.js +172 -143
- package/dist/cascade-select/style.css +475 -85
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/style.css +250 -40
- package/dist/chip/index.js +2 -2
- package/dist/chip/style.css +258 -42
- package/dist/command-menu/index.js +58 -45
- package/dist/command-menu/style.css +256 -44
- package/dist/components/Accordion/Accordion.vue.d.ts +2 -2
- package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/Accordion/styles.css +43 -0
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +11 -4
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +47 -52
- package/dist/components/AutoComplete/types.d.ts +8 -0
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css +4 -4
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +25 -7
- package/dist/components/BlockUI/BlockUI.vue.d.ts +2 -0
- package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
- package/dist/components/BlockUI/types.d.ts +3 -0
- package/dist/components/BlockUI/types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +39 -38
- package/dist/components/CascadeSelect/types.d.ts +3 -0
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +7 -1
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts +2 -0
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/CommandMenu/styles.css +2 -0
- package/dist/components/CommandMenu/types.d.ts +3 -0
- package/dist/components/CommandMenu/types.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/types.d.ts +1 -1
- package/dist/components/ConfigProvider/types.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/types.d.ts +3 -0
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +2 -0
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/types.d.ts +3 -0
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +2 -0
- package/dist/components/ContextMenu/types.d.ts +3 -0
- package/dist/components/ContextMenu/types.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +65 -21
- package/dist/components/DatePicker/types.d.ts +3 -0
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +2 -0
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +190 -4
- package/dist/components/Dialog/types.d.ts +3 -0
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +2 -0
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css +189 -4
- package/dist/components/Drawer/types.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +4 -0
- package/dist/components/Dropdown/types.d.ts +3 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Empty/index.d.ts.map +1 -1
- package/dist/components/Empty/styles.css +6 -6
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/styles.css +17 -6
- package/dist/components/FileUpload/FileUpload.vue.d.ts +1 -1
- package/dist/components/FloatLabel/styles.css +19 -7
- package/dist/components/Form/styles.css +21 -0
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/icon-categories.d.ts +21 -0
- package/dist/components/Icon/icon-categories.d.ts.map +1 -0
- package/dist/components/Icon/icons-tabler.d.ts +77 -0
- package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
- package/dist/components/Icon/icons-types.d.ts +36 -0
- package/dist/components/Icon/icons-types.d.ts.map +1 -0
- package/dist/components/Icon/icons.d.ts +75 -32
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +1 -1
- package/dist/components/IconField/IconField.vue.d.ts +3 -1
- package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
- package/dist/components/IconField/styles.css +306 -31
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.css +191 -35
- package/dist/components/InputNumber/styles.css +103 -40
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +79 -79
- package/dist/components/InputTags/styles.css +3 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +29 -54
- package/dist/components/Layout/types.d.ts +6 -7
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts +7 -2
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css +10 -0
- package/dist/components/Listbox/types.d.ts +5 -0
- package/dist/components/Listbox/types.d.ts.map +1 -1
- package/dist/components/Loading/Loading.vue.d.ts +2 -0
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -1
- package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -1
- package/dist/components/Loading/loading.d.ts.map +1 -1
- package/dist/components/Loading/styles.css +25 -17
- package/dist/components/Loading/types.d.ts +3 -0
- package/dist/components/Loading/types.d.ts.map +1 -1
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts +2 -0
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/MegaMenu/styles.css +1 -0
- package/dist/components/MegaMenu/types.d.ts +3 -0
- package/dist/components/MegaMenu/types.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts +3 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +14 -10
- package/dist/components/Menu/types.d.ts +3 -0
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts +2 -0
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +4 -0
- package/dist/components/Menubar/types.d.ts +3 -0
- package/dist/components/Menubar/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts +2 -0
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +3 -0
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/MeterGroup/styles.css +2 -2
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +21 -6
- package/dist/components/Popover/Popover.vue.d.ts +2 -0
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/types.d.ts +3 -0
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +30 -8
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/styles.css +3 -3
- package/dist/components/Result/index.d.ts.map +1 -1
- package/dist/components/Result/styles.css +17 -17
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/Scrollbar/styles.css +3 -3
- package/dist/components/Select/Select.vue.d.ts +10 -3
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/styles.css +13 -91
- package/dist/components/Select/types.d.ts +8 -0
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +8 -10
- package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts +2 -0
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/types.d.ts +3 -0
- package/dist/components/SpeedDial/types.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +2 -0
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/types.d.ts +3 -0
- package/dist/components/SplitButton/types.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts +5 -3
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/index.d.ts +1 -1
- package/dist/components/Splitter/index.d.ts.map +1 -1
- package/dist/components/Splitter/styles.css +12 -0
- package/dist/components/Splitter/types.d.ts +9 -3
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts.map +1 -1
- package/dist/components/Status/index.d.ts.map +1 -1
- package/dist/components/Status/styles.css +18 -16
- package/dist/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +8 -8
- package/dist/components/Tag/styles.css +4 -2
- package/dist/components/Textarea/styles.css +15 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts +3 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +2 -0
- package/dist/components/TieredMenu/types.d.ts +3 -0
- package/dist/components/TieredMenu/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +2 -0
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +3 -0
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toolbar/styles.css +1 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/types.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Tree/styles.css +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +5 -57
- package/dist/components/TreeSelect/types.d.ts +3 -0
- package/dist/components/TreeSelect/types.d.ts.map +1 -1
- package/dist/components/TreeTable/styles.css +1 -1
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +7 -3
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
- package/dist/components/VirtualScroller/index.d.ts +1 -1
- package/dist/components/VirtualScroller/index.d.ts.map +1 -1
- package/dist/components/VirtualScroller/types.d.ts +5 -0
- package/dist/components/VirtualScroller/types.d.ts.map +1 -1
- package/dist/{config-BdK5ccNT.js → config-CapALqt3.js} +10 -2
- package/dist/config-provider/index.js +5 -3
- package/dist/config-provider/style.css +441 -75
- package/dist/confirm-dialog/index.js +87 -74
- package/dist/confirm-dialog/style.css +441 -45
- package/dist/confirm-popup/index.js +82 -68
- package/dist/confirm-popup/style.css +251 -41
- package/dist/context-menu/index.js +112 -99
- package/dist/context-menu/style.css +256 -44
- package/dist/data-view/index.js +4 -4
- package/dist/data-view/style.css +253 -43
- package/dist/date-picker/index.js +166 -152
- package/dist/date-picker/style.css +316 -62
- package/dist/dialog/index.js +76 -63
- package/dist/dialog/style.css +441 -45
- package/dist/divider/style.css +250 -40
- package/dist/dock/index.js +3 -3
- package/dist/dock/style.css +251 -41
- package/dist/drawer/index.js +72 -61
- package/dist/drawer/style.css +440 -45
- package/dist/dropdown/index.js +145 -131
- package/dist/dropdown/style.css +258 -44
- package/dist/empty/index.js +3 -3
- package/dist/empty/style.css +257 -47
- package/dist/fieldset/index.js +19 -19
- package/dist/fieldset/style.css +268 -47
- package/dist/file-upload/index.js +3 -3
- package/dist/file-upload/style.css +251 -41
- package/dist/flex/index.js +2 -2
- package/dist/flex/style.css +250 -40
- package/dist/float-label/index.js +1 -1
- package/dist/float-label/style.css +269 -47
- package/dist/fluid/index.js +1 -1
- package/dist/fluid/style.css +250 -40
- package/dist/form/index.js +2 -2
- package/dist/form/style.css +271 -40
- package/dist/gallery/index.js +4 -4
- package/dist/gallery/style.css +254 -44
- package/dist/grid/index.js +1 -1
- package/dist/grid/style.css +250 -40
- package/dist/icon/index.js +212 -2
- package/dist/icon/style.css +251 -41
- package/dist/{icon-xUOyawgJ.js → icon-DWXkh-RM.js} +1 -1
- package/dist/icon-field/index.js +42 -8
- package/dist/icon-field/style.css +913 -71
- package/dist/icon-field/style.js +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5336 -4326
- package/dist/inplace/index.js +1 -1
- package/dist/inplace/style.css +250 -40
- package/dist/input/index.js +79 -81
- package/dist/input/style.css +442 -76
- package/dist/input-color/index.js +3 -3
- package/dist/input-color/style.css +250 -40
- package/dist/input-group/index.js +1 -1
- package/dist/input-group/style.css +250 -40
- package/dist/input-number/index.js +4 -4
- package/dist/input-number/style.css +354 -81
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +250 -40
- package/dist/input-password/index.js +86 -85
- package/dist/input-password/style.css +330 -120
- package/dist/input-tags/index.js +4 -4
- package/dist/input-tags/style.css +254 -42
- package/dist/knob/index.js +1 -1
- package/dist/knob/style.css +250 -40
- package/dist/label/index.js +1 -1
- package/dist/label/style.css +250 -40
- package/dist/layout/index.js +65 -88
- package/dist/layout/style.css +283 -98
- package/dist/listbox/index.js +142 -87
- package/dist/listbox/style.css +291 -43
- package/dist/listbox/style.js +1 -0
- package/dist/loading/index.js +195 -156
- package/dist/loading/style.css +275 -57
- package/dist/{locale-B36KH7c3.js → locale-Bzm2nbEp.js} +1 -1
- package/dist/mega-menu/index.js +131 -119
- package/dist/mega-menu/style.css +252 -41
- package/dist/menu/index.js +278 -261
- package/dist/menu/style.css +268 -54
- package/dist/menubar/index.js +145 -133
- package/dist/menubar/style.css +258 -44
- package/dist/message/index.js +120 -107
- package/dist/message/style.css +251 -41
- package/dist/meter-group/index.js +1 -1
- package/dist/meter-group/style.css +252 -42
- package/dist/order-list/index.js +4 -4
- package/dist/order-list/style.css +251 -41
- package/dist/page/index.js +3 -3
- package/dist/page/style.css +251 -41
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +251 -41
- package/dist/panel/index.js +31 -31
- package/dist/panel/style.css +272 -47
- package/dist/pick-list/index.js +4 -4
- package/dist/pick-list/style.css +251 -41
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +250 -40
- package/dist/progress-bar/index.js +5 -2
- package/dist/progress-bar/style.css +280 -48
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +253 -43
- package/dist/radio/index.js +2 -2
- package/dist/radio/style.css +250 -40
- package/dist/rating/index.js +4 -4
- package/dist/rating/style.css +251 -41
- package/dist/result/index.js +3 -3
- package/dist/result/style.css +268 -58
- package/dist/scroll-top/index.js +4 -4
- package/dist/scroll-top/style.css +254 -44
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +253 -43
- package/dist/select/index.js +247 -152
- package/dist/select/style.css +477 -138
- package/dist/select/style.js +2 -0
- package/dist/select-button/index.js +2 -2
- package/dist/select-button/style.css +250 -40
- package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -1
- package/dist/shared/componentDefaults.d.ts +62 -0
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/config.d.ts +13 -2
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/styles/control-suffix.css +14 -3
- package/dist/shared/styles/select-overlay.css +167 -0
- package/dist/shared/useFloatingViewportSync.d.ts +10 -0
- package/dist/shared/useFloatingViewportSync.d.ts.map +1 -0
- package/dist/shared/usePauseOffscreen.d.ts +14 -0
- package/dist/shared/usePauseOffscreen.d.ts.map +1 -0
- package/dist/sidebar/index.js +4 -4
- package/dist/sidebar/style.css +259 -51
- package/dist/skeleton/index.js +34 -19
- package/dist/skeleton/style.css +250 -40
- package/dist/slider/index.js +3 -3
- package/dist/slider/style.css +250 -40
- package/dist/space/index.js +2 -2
- package/dist/space/style.css +250 -40
- package/dist/speed-dial/index.js +112 -98
- package/dist/speed-dial/style.css +251 -41
- package/dist/split-button/index.js +106 -92
- package/dist/split-button/style.css +251 -41
- package/dist/splitter/index.js +94 -80
- package/dist/splitter/style.css +262 -40
- package/dist/status/index.js +30 -26
- package/dist/status/style.css +269 -57
- package/dist/stepper/index.js +2 -2
- package/dist/stepper/style.css +251 -41
- package/dist/styles/base.css +154 -28
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/switch/style.css +250 -40
- package/dist/table/index.js +11 -15
- package/dist/table/style.css +265 -55
- package/dist/tabs/index.js +4 -4
- package/dist/tabs/style.css +254 -44
- package/dist/tag/index.js +3 -3
- package/dist/tag/style.css +255 -43
- package/dist/terminal/index.js +3 -3
- package/dist/terminal/style.css +250 -40
- package/dist/textarea/index.js +4 -4
- package/dist/textarea/style.css +266 -42
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/motionPresets.d.ts +30 -0
- package/dist/theme/motionPresets.d.ts.map +1 -0
- package/dist/theme/styles.css +96 -12
- package/dist/theme/tokens.d.ts +17 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/useMotion.d.ts.map +1 -1
- package/dist/theme/useMotionTransition.d.ts +19 -0
- package/dist/theme/useMotionTransition.d.ts.map +1 -0
- package/dist/tiered-menu/index.js +81 -67
- package/dist/tiered-menu/style.css +256 -44
- package/dist/timeline/index.js +3 -3
- package/dist/timeline/style.css +254 -44
- package/dist/toast/index.js +49 -36
- package/dist/toast/style.css +251 -41
- package/dist/toggle-button/index.js +3 -3
- package/dist/toggle-button/style.css +251 -41
- package/dist/toolbar/index.js +1 -1
- package/dist/toolbar/style.css +251 -40
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +250 -40
- package/dist/tree/index.js +5 -8
- package/dist/tree/style.css +252 -42
- package/dist/tree-select/index.js +227 -203
- package/dist/tree-select/style.css +442 -105
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +4 -4
- package/dist/tree-table/style.css +252 -42
- package/dist/{useComponentAttrs-BTYEe61P.js → useComponentAttrs-e-5QAjdw.js} +1 -1
- package/dist/useFloatingViewportSync-DZdJ7W8n.js +19 -0
- package/dist/useMotionTransition-Bxnnb_9u.js +49 -0
- package/dist/usePauseOffscreen-BIikV_gj.js +25 -0
- package/dist/virtual-scroller/index.js +2 -56
- package/dist/virtual-scroller/style.css +253 -43
- package/package.json +2 -1
- package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
- package/dist/Icon-DfpIfo2L.js +0 -521
- package/dist/Popover-Dq_p0vib.js +0 -166
- package/dist/ProgressSpinner-DuBpPkna.js +0 -90
- package/dist/Tooltip-CU1xFt_N.js +0 -93
package/dist/dock/style.css
CHANGED
|
@@ -60,9 +60,22 @@
|
|
|
60
60
|
--m-z-toast: calc(var(--m-z-base) + 100);
|
|
61
61
|
--m-z-popper: 40;
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
/* Affix hitbox tracks control height so small/compact shells do not overflow */
|
|
64
|
+
--m-control-affix-size: calc(
|
|
65
|
+
var(--m-control-height-medium) - 2 * var(--m-border-width)
|
|
66
|
+
);
|
|
64
67
|
--m-control-affix-gap: 2.35rem;
|
|
65
68
|
--m-control-affix-padding: 2.5rem;
|
|
69
|
+
--m-meter-track-height: var(--m-space-5);
|
|
70
|
+
--m-tree-toggler-size: var(--m-checkbox-control-size);
|
|
71
|
+
--m-nav-rail-width: 12.5rem;
|
|
72
|
+
--m-nav-rail-collapsed-width: 4rem;
|
|
73
|
+
--m-layout-header-height: calc(
|
|
74
|
+
var(--m-control-height-medium) + 2 * var(--m-space-3)
|
|
75
|
+
);
|
|
76
|
+
--m-layout-footer-height: calc(
|
|
77
|
+
var(--m-control-height-medium) + 2 * var(--m-space-2)
|
|
78
|
+
);
|
|
66
79
|
--m-space-1: 0.25rem;
|
|
67
80
|
--m-space-2: 0.5rem;
|
|
68
81
|
--m-space-3: 0.75rem;
|
|
@@ -80,7 +93,7 @@
|
|
|
80
93
|
--m-motion-ease: cubic-bezier(0.2, 0, 0, 1);
|
|
81
94
|
--m-motion-enter: 180ms;
|
|
82
95
|
--m-motion-exit: 130ms;
|
|
83
|
-
--m-motion-distance:
|
|
96
|
+
--m-motion-distance: 1rem;
|
|
84
97
|
--m-motion-spin: 1s;
|
|
85
98
|
--m-motion-spin-dash: 1.5s;
|
|
86
99
|
--m-motion-spin-fast: 0.8s;
|
|
@@ -89,6 +102,11 @@
|
|
|
89
102
|
--m-motion-pulse: 1.2s;
|
|
90
103
|
--m-motion-scrollbar-show: 340ms;
|
|
91
104
|
--m-motion-scrollbar-hide: 120ms;
|
|
105
|
+
--m-motion-loading-aurora: 3s;
|
|
106
|
+
--m-motion-loading-bounce: 0.6s;
|
|
107
|
+
--m-motion-loading-pulse: 1.8s;
|
|
108
|
+
--m-motion-loading-stardust: 1.6s;
|
|
109
|
+
--m-motion-loading-circular-rotate: 2s;
|
|
92
110
|
--m-dataview-grid-min: 10rem;
|
|
93
111
|
--m-tree-indent: 0.7rem;
|
|
94
112
|
--m-tree-indent-padding: var(--m-space-3);
|
|
@@ -135,6 +153,20 @@
|
|
|
135
153
|
--m-motion-enter: 100ms;
|
|
136
154
|
--m-motion-exit: 80ms;
|
|
137
155
|
--m-motion-distance: 0;
|
|
156
|
+
/* Looping indicators: keep a short pulse so state is still perceptible */
|
|
157
|
+
--m-motion-spin: 0ms;
|
|
158
|
+
--m-motion-spin-dash: 0ms;
|
|
159
|
+
--m-motion-spin-fast: 0ms;
|
|
160
|
+
--m-motion-spin-medium: 0ms;
|
|
161
|
+
--m-motion-skeleton: 0ms;
|
|
162
|
+
--m-motion-pulse: 0ms;
|
|
163
|
+
--m-motion-scrollbar-show: 160ms;
|
|
164
|
+
--m-motion-scrollbar-hide: 80ms;
|
|
165
|
+
--m-motion-loading-aurora: 0ms;
|
|
166
|
+
--m-motion-loading-bounce: 0ms;
|
|
167
|
+
--m-motion-loading-pulse: 0ms;
|
|
168
|
+
--m-motion-loading-stardust: 0ms;
|
|
169
|
+
--m-motion-loading-circular-rotate: 0ms;
|
|
138
170
|
}
|
|
139
171
|
|
|
140
172
|
:root[data-m-motion="none"] {
|
|
@@ -143,6 +175,64 @@
|
|
|
143
175
|
--m-motion-enter: 0ms;
|
|
144
176
|
--m-motion-exit: 0ms;
|
|
145
177
|
--m-motion-distance: 0;
|
|
178
|
+
--m-motion-spin: 0ms;
|
|
179
|
+
--m-motion-spin-dash: 0ms;
|
|
180
|
+
--m-motion-spin-fast: 0ms;
|
|
181
|
+
--m-motion-spin-medium: 0ms;
|
|
182
|
+
--m-motion-skeleton: 0ms;
|
|
183
|
+
--m-motion-pulse: 0ms;
|
|
184
|
+
--m-motion-scrollbar-show: 0ms;
|
|
185
|
+
--m-motion-scrollbar-hide: 0ms;
|
|
186
|
+
--m-motion-loading-aurora: 0ms;
|
|
187
|
+
--m-motion-loading-bounce: 0ms;
|
|
188
|
+
--m-motion-loading-pulse: 0ms;
|
|
189
|
+
--m-motion-loading-stardust: 0ms;
|
|
190
|
+
--m-motion-loading-circular-rotate: 0ms;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/*
|
|
194
|
+
* Global motion policy (complements per-component rules):
|
|
195
|
+
* - `reduced` / OS prefers-reduced-motion: keep short paint transitions; stop loops
|
|
196
|
+
* and layout/transform size animation.
|
|
197
|
+
* - `none`: zero all transition/animation durations.
|
|
198
|
+
*/
|
|
199
|
+
@media (prefers-reduced-motion: reduce) {
|
|
200
|
+
html:not([data-m-ignore-reduced-motion]) *,
|
|
201
|
+
html:not([data-m-ignore-reduced-motion]) *::before,
|
|
202
|
+
html:not([data-m-ignore-reduced-motion]) *::after {
|
|
203
|
+
animation-duration: 0.01ms !important;
|
|
204
|
+
animation-iteration-count: 1 !important;
|
|
205
|
+
transition-property: background-color, border-color, color, opacity, box-shadow,
|
|
206
|
+
outline, fill, stroke, stroke-dashoffset !important;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
[data-m-motion="reduced"] *,
|
|
211
|
+
[data-m-motion="reduced"] *::before,
|
|
212
|
+
[data-m-motion="reduced"] *::after {
|
|
213
|
+
animation-duration: 0.01ms !important;
|
|
214
|
+
animation-iteration-count: 1 !important;
|
|
215
|
+
transition-property: background-color, border-color, color, opacity, box-shadow, outline,
|
|
216
|
+
fill, stroke, stroke-dashoffset !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
[data-m-motion="none"] *,
|
|
220
|
+
[data-m-motion="none"] *::before,
|
|
221
|
+
[data-m-motion="none"] *::after {
|
|
222
|
+
animation-duration: 0.01ms !important;
|
|
223
|
+
animation-iteration-count: 1 !important;
|
|
224
|
+
transition-duration: 0.01ms !important;
|
|
225
|
+
scroll-behavior: auto !important;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Off-screen looping indicators (usePauseOffscreen → data-m-anim-paused) */
|
|
229
|
+
[data-m-anim-paused],
|
|
230
|
+
[data-m-anim-paused]::before,
|
|
231
|
+
[data-m-anim-paused]::after,
|
|
232
|
+
[data-m-anim-paused] *,
|
|
233
|
+
[data-m-anim-paused] *::before,
|
|
234
|
+
[data-m-anim-paused] *::after {
|
|
235
|
+
animation-play-state: paused !important;
|
|
146
236
|
}
|
|
147
237
|
|
|
148
238
|
/* Global density: scales spacing + control heights (Vuetify-inspired, WD tokens) */
|
|
@@ -158,6 +248,8 @@
|
|
|
158
248
|
--m-control-affix-padding: 2.15rem;
|
|
159
249
|
--m-control-affix-gap: 2rem;
|
|
160
250
|
--m-checkbox-control-size: 1rem;
|
|
251
|
+
--m-nav-rail-width: 15rem;
|
|
252
|
+
--m-nav-rail-collapsed-width: 3.25rem;
|
|
161
253
|
--m-space-1: 0.2rem;
|
|
162
254
|
--m-space-2: 0.4rem;
|
|
163
255
|
--m-space-3: 0.6rem;
|
|
@@ -185,6 +277,8 @@
|
|
|
185
277
|
--m-control-affix-padding: 2.85rem;
|
|
186
278
|
--m-control-affix-gap: 2.65rem;
|
|
187
279
|
--m-checkbox-control-size: 1.25rem;
|
|
280
|
+
--m-nav-rail-width: 18rem;
|
|
281
|
+
--m-nav-rail-collapsed-width: 4.5rem;
|
|
188
282
|
--m-space-1: 0.3rem;
|
|
189
283
|
--m-space-2: 0.6rem;
|
|
190
284
|
--m-space-3: 0.9rem;
|
|
@@ -215,11 +309,6 @@
|
|
|
215
309
|
--m-layout-footer-height: 2.5rem;
|
|
216
310
|
}
|
|
217
311
|
|
|
218
|
-
[data-m-density="compact"] .m-layout-sider {
|
|
219
|
-
--m-layout-sider-width: 15rem;
|
|
220
|
-
--m-layout-sider-collapsed-width: 3.25rem;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
312
|
[data-m-density="spacious"] .m-layout-header {
|
|
224
313
|
--m-layout-header-height: 4rem;
|
|
225
314
|
}
|
|
@@ -228,11 +317,6 @@
|
|
|
228
317
|
--m-layout-footer-height: 3.5rem;
|
|
229
318
|
}
|
|
230
319
|
|
|
231
|
-
[data-m-density="spacious"] .m-layout-sider {
|
|
232
|
-
--m-layout-sider-width: 18rem;
|
|
233
|
-
--m-layout-sider-collapsed-width: 4.5rem;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
320
|
[data-theme="dark"] {
|
|
237
321
|
--m-color-primary: #60a5fa;
|
|
238
322
|
--m-color-primary-hover: #93c5fd;
|
|
@@ -319,6 +403,8 @@
|
|
|
319
403
|
.m-datepicker,
|
|
320
404
|
.m-listbox,
|
|
321
405
|
.m-togglebutton,
|
|
406
|
+
.m-select,
|
|
407
|
+
.m-textarea,
|
|
322
408
|
.m-selectbutton,
|
|
323
409
|
.m-inputotp,
|
|
324
410
|
.m-knob,
|
|
@@ -373,6 +459,17 @@
|
|
|
373
459
|
opacity: var(--m-opacity-disabled);
|
|
374
460
|
}
|
|
375
461
|
|
|
462
|
+
.m-input-field__control--prefixed .m-input:disabled,
|
|
463
|
+
.m-input-field__control--suffixed .m-input:disabled,
|
|
464
|
+
.m-input-field__control--clearable .m-input:disabled,
|
|
465
|
+
.m-password--disabled .m-password__input,
|
|
466
|
+
.m-inputnumber--disabled .m-inputnumber__input,
|
|
467
|
+
.m-datepicker--disabled .m-datepicker__input,
|
|
468
|
+
.m-icon-field--anchored .m-input:disabled,
|
|
469
|
+
.m-icon-field--anchored .m-textarea:disabled {
|
|
470
|
+
opacity: 1;
|
|
471
|
+
}
|
|
472
|
+
|
|
376
473
|
.m-input::placeholder,
|
|
377
474
|
.m-textarea::placeholder,
|
|
378
475
|
.m-password__input::placeholder,
|
|
@@ -477,7 +574,7 @@
|
|
|
477
574
|
.m-scale-fade-enter-from,
|
|
478
575
|
.m-scale-fade-leave-to {
|
|
479
576
|
opacity: 0;
|
|
480
|
-
transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.
|
|
577
|
+
transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
|
|
481
578
|
}
|
|
482
579
|
|
|
483
580
|
.m-slide-fade-enter-active {
|
|
@@ -498,20 +595,101 @@
|
|
|
498
595
|
transform: translateY(calc(var(--m-motion-distance) * -1));
|
|
499
596
|
}
|
|
500
597
|
|
|
598
|
+
/* Generic center zoom (opacity + scale on the transitioning root) */
|
|
599
|
+
.m-zoom-enter-active {
|
|
600
|
+
transition:
|
|
601
|
+
opacity var(--m-motion-enter) var(--m-motion-ease),
|
|
602
|
+
transform var(--m-motion-enter) var(--m-motion-ease);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.m-zoom-leave-active {
|
|
606
|
+
transition:
|
|
607
|
+
opacity var(--m-motion-exit) var(--m-motion-ease),
|
|
608
|
+
transform var(--m-motion-exit) var(--m-motion-ease);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.m-zoom-enter-from,
|
|
612
|
+
.m-zoom-leave-to {
|
|
613
|
+
opacity: 0;
|
|
614
|
+
transform: scale(0.9);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.m-slide-up-enter-active,
|
|
618
|
+
.m-slide-down-enter-active,
|
|
619
|
+
.m-slide-left-enter-active,
|
|
620
|
+
.m-slide-right-enter-active {
|
|
621
|
+
transition:
|
|
622
|
+
opacity var(--m-motion-enter) var(--m-motion-ease),
|
|
623
|
+
transform var(--m-motion-enter) var(--m-motion-ease);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.m-slide-up-leave-active,
|
|
627
|
+
.m-slide-down-leave-active,
|
|
628
|
+
.m-slide-left-leave-active,
|
|
629
|
+
.m-slide-right-leave-active {
|
|
630
|
+
transition:
|
|
631
|
+
opacity var(--m-motion-exit) var(--m-motion-ease),
|
|
632
|
+
transform var(--m-motion-exit) var(--m-motion-ease);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.m-slide-up-enter-from,
|
|
636
|
+
.m-slide-up-leave-to {
|
|
637
|
+
opacity: 0;
|
|
638
|
+
transform: translateY(var(--m-motion-distance));
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.m-slide-down-enter-from,
|
|
642
|
+
.m-slide-down-leave-to {
|
|
643
|
+
opacity: 0;
|
|
644
|
+
transform: translateY(calc(var(--m-motion-distance) * -1));
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.m-slide-left-enter-from,
|
|
648
|
+
.m-slide-left-leave-to {
|
|
649
|
+
opacity: 0;
|
|
650
|
+
transform: translateX(var(--m-motion-distance));
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.m-slide-right-enter-from,
|
|
654
|
+
.m-slide-right-leave-to {
|
|
655
|
+
opacity: 0;
|
|
656
|
+
transform: translateX(calc(var(--m-motion-distance) * -1));
|
|
657
|
+
}
|
|
658
|
+
|
|
501
659
|
@media (prefers-reduced-motion: reduce) {
|
|
502
660
|
html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active,
|
|
503
661
|
html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active,
|
|
504
662
|
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active,
|
|
505
663
|
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active,
|
|
506
664
|
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active,
|
|
507
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active
|
|
665
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active,
|
|
666
|
+
html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-active,
|
|
667
|
+
html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-active,
|
|
668
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-active,
|
|
669
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-active,
|
|
670
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-active,
|
|
671
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-active,
|
|
672
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-active,
|
|
673
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-active,
|
|
674
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-active,
|
|
675
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-active {
|
|
508
676
|
transition: none;
|
|
509
677
|
}
|
|
510
678
|
|
|
511
679
|
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from,
|
|
512
680
|
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to,
|
|
513
681
|
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from,
|
|
514
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to
|
|
682
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to,
|
|
683
|
+
html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-from,
|
|
684
|
+
html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-to,
|
|
685
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-from,
|
|
686
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-to,
|
|
687
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-from,
|
|
688
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-to,
|
|
689
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-from,
|
|
690
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-to,
|
|
691
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-from,
|
|
692
|
+
html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-to {
|
|
515
693
|
transform: none;
|
|
516
694
|
}
|
|
517
695
|
}
|
|
@@ -522,12 +700,32 @@
|
|
|
522
700
|
[data-m-motion="reduced"] .m-scale-fade-leave-active,
|
|
523
701
|
[data-m-motion="reduced"] .m-slide-fade-enter-active,
|
|
524
702
|
[data-m-motion="reduced"] .m-slide-fade-leave-active,
|
|
703
|
+
[data-m-motion="reduced"] .m-zoom-enter-active,
|
|
704
|
+
[data-m-motion="reduced"] .m-zoom-leave-active,
|
|
705
|
+
[data-m-motion="reduced"] .m-slide-up-enter-active,
|
|
706
|
+
[data-m-motion="reduced"] .m-slide-up-leave-active,
|
|
707
|
+
[data-m-motion="reduced"] .m-slide-down-enter-active,
|
|
708
|
+
[data-m-motion="reduced"] .m-slide-down-leave-active,
|
|
709
|
+
[data-m-motion="reduced"] .m-slide-left-enter-active,
|
|
710
|
+
[data-m-motion="reduced"] .m-slide-left-leave-active,
|
|
711
|
+
[data-m-motion="reduced"] .m-slide-right-enter-active,
|
|
712
|
+
[data-m-motion="reduced"] .m-slide-right-leave-active,
|
|
525
713
|
[data-m-motion="none"] .m-fade-enter-active,
|
|
526
714
|
[data-m-motion="none"] .m-fade-leave-active,
|
|
527
715
|
[data-m-motion="none"] .m-scale-fade-enter-active,
|
|
528
716
|
[data-m-motion="none"] .m-scale-fade-leave-active,
|
|
529
717
|
[data-m-motion="none"] .m-slide-fade-enter-active,
|
|
530
|
-
[data-m-motion="none"] .m-slide-fade-leave-active
|
|
718
|
+
[data-m-motion="none"] .m-slide-fade-leave-active,
|
|
719
|
+
[data-m-motion="none"] .m-zoom-enter-active,
|
|
720
|
+
[data-m-motion="none"] .m-zoom-leave-active,
|
|
721
|
+
[data-m-motion="none"] .m-slide-up-enter-active,
|
|
722
|
+
[data-m-motion="none"] .m-slide-up-leave-active,
|
|
723
|
+
[data-m-motion="none"] .m-slide-down-enter-active,
|
|
724
|
+
[data-m-motion="none"] .m-slide-down-leave-active,
|
|
725
|
+
[data-m-motion="none"] .m-slide-left-enter-active,
|
|
726
|
+
[data-m-motion="none"] .m-slide-left-leave-active,
|
|
727
|
+
[data-m-motion="none"] .m-slide-right-enter-active,
|
|
728
|
+
[data-m-motion="none"] .m-slide-right-leave-active {
|
|
531
729
|
transition: none;
|
|
532
730
|
}
|
|
533
731
|
|
|
@@ -535,10 +733,30 @@
|
|
|
535
733
|
[data-m-motion="reduced"] .m-scale-fade-leave-to,
|
|
536
734
|
[data-m-motion="reduced"] .m-slide-fade-enter-from,
|
|
537
735
|
[data-m-motion="reduced"] .m-slide-fade-leave-to,
|
|
736
|
+
[data-m-motion="reduced"] .m-zoom-enter-from,
|
|
737
|
+
[data-m-motion="reduced"] .m-zoom-leave-to,
|
|
738
|
+
[data-m-motion="reduced"] .m-slide-up-enter-from,
|
|
739
|
+
[data-m-motion="reduced"] .m-slide-up-leave-to,
|
|
740
|
+
[data-m-motion="reduced"] .m-slide-down-enter-from,
|
|
741
|
+
[data-m-motion="reduced"] .m-slide-down-leave-to,
|
|
742
|
+
[data-m-motion="reduced"] .m-slide-left-enter-from,
|
|
743
|
+
[data-m-motion="reduced"] .m-slide-left-leave-to,
|
|
744
|
+
[data-m-motion="reduced"] .m-slide-right-enter-from,
|
|
745
|
+
[data-m-motion="reduced"] .m-slide-right-leave-to,
|
|
538
746
|
[data-m-motion="none"] .m-scale-fade-enter-from,
|
|
539
747
|
[data-m-motion="none"] .m-scale-fade-leave-to,
|
|
540
748
|
[data-m-motion="none"] .m-slide-fade-enter-from,
|
|
541
|
-
[data-m-motion="none"] .m-slide-fade-leave-to
|
|
749
|
+
[data-m-motion="none"] .m-slide-fade-leave-to,
|
|
750
|
+
[data-m-motion="none"] .m-zoom-enter-from,
|
|
751
|
+
[data-m-motion="none"] .m-zoom-leave-to,
|
|
752
|
+
[data-m-motion="none"] .m-slide-up-enter-from,
|
|
753
|
+
[data-m-motion="none"] .m-slide-up-leave-to,
|
|
754
|
+
[data-m-motion="none"] .m-slide-down-enter-from,
|
|
755
|
+
[data-m-motion="none"] .m-slide-down-leave-to,
|
|
756
|
+
[data-m-motion="none"] .m-slide-left-enter-from,
|
|
757
|
+
[data-m-motion="none"] .m-slide-left-leave-to,
|
|
758
|
+
[data-m-motion="none"] .m-slide-right-enter-from,
|
|
759
|
+
[data-m-motion="none"] .m-slide-right-leave-to {
|
|
542
760
|
transform: none;
|
|
543
761
|
}
|
|
544
762
|
|
|
@@ -692,14 +910,6 @@
|
|
|
692
910
|
opacity: var(--m-opacity-disabled);
|
|
693
911
|
}
|
|
694
912
|
|
|
695
|
-
.m-icon-field--left :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
696
|
-
padding-left: var(--m-control-affix-padding);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.m-icon-field--right :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
|
|
700
|
-
padding-right: var(--m-control-affix-padding);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
913
|
.m-inputgroup > .m-input,
|
|
704
914
|
.m-inputgroup > .m-input-field,
|
|
705
915
|
.m-inputgroup > .m-password-field,
|
|
@@ -718,16 +928,22 @@
|
|
|
718
928
|
|
|
719
929
|
.m-inputgroup > .m-input,
|
|
720
930
|
.m-inputgroup .m-input,
|
|
721
|
-
.m-inputgroup .m-
|
|
722
|
-
.m-inputgroup .m-inputnumber__input
|
|
931
|
+
.m-inputgroup .m-password,
|
|
932
|
+
.m-inputgroup .m-inputnumber__input-wrap,
|
|
933
|
+
.m-inputgroup .m-input-field__control--prefixed,
|
|
934
|
+
.m-inputgroup .m-input-field__control--suffixed,
|
|
935
|
+
.m-inputgroup .m-input-field__control--clearable {
|
|
723
936
|
border-radius: 0;
|
|
724
937
|
width: 100%;
|
|
725
938
|
}
|
|
726
939
|
|
|
727
940
|
.m-inputgroup > :first-child.m-input,
|
|
728
941
|
.m-inputgroup > :first-child .m-input,
|
|
729
|
-
.m-inputgroup > :first-child .m-
|
|
730
|
-
.m-inputgroup > :first-child .m-inputnumber__input,
|
|
942
|
+
.m-inputgroup > :first-child .m-password,
|
|
943
|
+
.m-inputgroup > :first-child .m-inputnumber__input-wrap,
|
|
944
|
+
.m-inputgroup > :first-child .m-input-field__control--prefixed,
|
|
945
|
+
.m-inputgroup > :first-child .m-input-field__control--suffixed,
|
|
946
|
+
.m-inputgroup > :first-child .m-input-field__control--clearable,
|
|
731
947
|
.m-inputgroup > :first-child.m-inputgroup-addon {
|
|
732
948
|
border-bottom-left-radius: var(--m-radius-control);
|
|
733
949
|
border-top-left-radius: var(--m-radius-control);
|
|
@@ -735,8 +951,11 @@
|
|
|
735
951
|
|
|
736
952
|
.m-inputgroup > :last-child.m-input,
|
|
737
953
|
.m-inputgroup > :last-child .m-input,
|
|
738
|
-
.m-inputgroup > :last-child .m-
|
|
739
|
-
.m-inputgroup > :last-child .m-inputnumber__input,
|
|
954
|
+
.m-inputgroup > :last-child .m-password,
|
|
955
|
+
.m-inputgroup > :last-child .m-inputnumber__input-wrap,
|
|
956
|
+
.m-inputgroup > :last-child .m-input-field__control--prefixed,
|
|
957
|
+
.m-inputgroup > :last-child .m-input-field__control--suffixed,
|
|
958
|
+
.m-inputgroup > :last-child .m-input-field__control--clearable,
|
|
740
959
|
.m-inputgroup > :last-child.m-inputgroup-addon {
|
|
741
960
|
border-bottom-right-radius: var(--m-radius-control);
|
|
742
961
|
border-top-right-radius: var(--m-radius-control);
|
|
@@ -887,9 +1106,6 @@
|
|
|
887
1106
|
}
|
|
888
1107
|
|
|
889
1108
|
/* Shared Naive-like hover/focus for remaining form triggers */
|
|
890
|
-
.m-inputnumber__input:hover:not(:disabled):not(:focus),
|
|
891
|
-
.m-password__input:hover:not(:disabled):not(:focus),
|
|
892
|
-
.m-datepicker__input:hover:not(:disabled):not(:focus),
|
|
893
1109
|
.m-inputotp__input:hover:not(:disabled):not(:focus),
|
|
894
1110
|
.m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
895
1111
|
.m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
|
|
@@ -900,9 +1116,6 @@
|
|
|
900
1116
|
border-color: var(--m-color-primary-hover);
|
|
901
1117
|
}
|
|
902
1118
|
|
|
903
|
-
.m-inputnumber__input:focus-visible,
|
|
904
|
-
.m-password__input:focus-visible,
|
|
905
|
-
.m-datepicker__input:focus-visible,
|
|
906
1119
|
.m-inputotp__input:focus-visible,
|
|
907
1120
|
.m-cascadeselect__trigger:focus-visible,
|
|
908
1121
|
.m-treeselect__trigger:focus-visible,
|
|
@@ -919,9 +1132,6 @@
|
|
|
919
1132
|
outline: none;
|
|
920
1133
|
}
|
|
921
1134
|
|
|
922
|
-
.m-inputnumber--invalid .m-inputnumber__input:focus-visible,
|
|
923
|
-
.m-password--invalid .m-password__input:focus-visible,
|
|
924
|
-
.m-datepicker--invalid .m-datepicker__input:focus-visible,
|
|
925
1135
|
.m-inputotp--invalid .m-inputotp__input:focus-visible,
|
|
926
1136
|
.m-inputtags--invalid:focus-within,
|
|
927
1137
|
.m-inputcolor--invalid .m-inputcolor__text:focus-visible {
|
|
@@ -1034,7 +1244,7 @@
|
|
|
1034
1244
|
}
|
|
1035
1245
|
|
|
1036
1246
|
@media (prefers-reduced-motion: reduce) {
|
|
1037
|
-
.m-icon--spin svg {
|
|
1247
|
+
html:not([data-m-ignore-reduced-motion]) .m-icon--spin svg {
|
|
1038
1248
|
animation: none;
|
|
1039
1249
|
}
|
|
1040
1250
|
}
|
package/dist/drawer/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../Icon-
|
|
3
|
-
import { n } from "../
|
|
4
|
-
import {
|
|
5
|
-
import { t as i } from "../
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { t } from "../Icon-lcN1rS87.js";
|
|
3
|
+
import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
|
|
4
|
+
import { n as r } from "../overlay-oR-5MDuE.js";
|
|
5
|
+
import { t as i } from "../useModalOverlay-Beo3CEAt.js";
|
|
6
|
+
import { t as a } from "../asyncGuard-CPGT_TKu.js";
|
|
7
|
+
import { c as o } from "../config-CapALqt3.js";
|
|
8
|
+
import { n as s } from "../locale-Bzm2nbEp.js";
|
|
8
9
|
import "./style.js";
|
|
9
|
-
import { Teleport as
|
|
10
|
+
import { Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeClass as v, normalizeStyle as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useAttrs as E, withCtx as D, withModifiers as O } from "vue";
|
|
10
11
|
//#region src/components/Drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var
|
|
12
|
+
var k = ["aria-modal", "aria-label"], A = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "m-drawer__header"
|
|
14
|
-
},
|
|
15
|
+
}, j = { key: 0 }, M = ["aria-label"], N = { class: "m-drawer__body" }, P = /* @__PURE__ */ g({
|
|
15
16
|
inheritAttrs: !1,
|
|
16
17
|
__name: "Drawer",
|
|
17
18
|
props: {
|
|
@@ -50,7 +51,11 @@ var O = ["aria-modal", "aria-label"], k = {
|
|
|
50
51
|
type: Boolean,
|
|
51
52
|
default: !0
|
|
52
53
|
},
|
|
53
|
-
appendTo: {}
|
|
54
|
+
appendTo: {},
|
|
55
|
+
transition: {
|
|
56
|
+
type: [String, Boolean],
|
|
57
|
+
default: void 0
|
|
58
|
+
}
|
|
54
59
|
},
|
|
55
60
|
emits: [
|
|
56
61
|
"update:modelValue",
|
|
@@ -59,86 +64,92 @@ var O = ["aria-modal", "aria-label"], k = {
|
|
|
59
64
|
"hide",
|
|
60
65
|
"after-leave"
|
|
61
66
|
],
|
|
62
|
-
setup(
|
|
63
|
-
let
|
|
64
|
-
|
|
67
|
+
setup(g, { emit: P }) {
|
|
68
|
+
let F = g, I = P, L = E(), { rootAttrs: R } = e(L, () => F.pt), z = o(), B = s(), V = x(null), H = x(!1), U = u(() => r(F, z.value.appendTo)), { transitionName: W, transitionCss: G } = n({
|
|
69
|
+
role: "drawer",
|
|
70
|
+
local: () => F.transition,
|
|
71
|
+
componentName: "Drawer",
|
|
72
|
+
fallback: "drawer"
|
|
73
|
+
}), K = u(() => F.closeOnOutsideClick === void 0 ? F.dismissable : F.closeOnOutsideClick);
|
|
74
|
+
function q(e) {
|
|
65
75
|
if (e != null) return typeof e == "number" ? `${e}px` : e;
|
|
66
76
|
}
|
|
67
|
-
let
|
|
77
|
+
let J = u(() => {
|
|
68
78
|
let e = {};
|
|
69
|
-
if (
|
|
70
|
-
let t =
|
|
79
|
+
if (F.position === "left" || F.position === "right") {
|
|
80
|
+
let t = q(F.width);
|
|
71
81
|
t && (e.width = t);
|
|
72
82
|
}
|
|
73
|
-
if (
|
|
74
|
-
let t =
|
|
83
|
+
if (F.position === "top" || F.position === "bottom") {
|
|
84
|
+
let t = q(F.height);
|
|
75
85
|
t && (e.height = t, e.maxHeight = t);
|
|
76
86
|
}
|
|
77
87
|
return e;
|
|
78
88
|
});
|
|
79
|
-
function
|
|
80
|
-
|
|
89
|
+
function Y() {
|
|
90
|
+
I("update:modelValue", !1), I("close");
|
|
81
91
|
}
|
|
82
|
-
async function
|
|
83
|
-
if (!
|
|
84
|
-
if (!
|
|
85
|
-
|
|
92
|
+
async function X() {
|
|
93
|
+
if (!H.value) {
|
|
94
|
+
if (!F.beforeClose) {
|
|
95
|
+
Y();
|
|
86
96
|
return;
|
|
87
97
|
}
|
|
88
|
-
|
|
98
|
+
H.value = !0;
|
|
89
99
|
try {
|
|
90
|
-
if (!await
|
|
91
|
-
|
|
100
|
+
if (!await a(F.beforeClose)) return;
|
|
101
|
+
Y();
|
|
92
102
|
} finally {
|
|
93
|
-
|
|
103
|
+
H.value = !1;
|
|
94
104
|
}
|
|
95
105
|
}
|
|
96
106
|
}
|
|
97
|
-
function
|
|
98
|
-
|
|
107
|
+
function Z() {
|
|
108
|
+
K.value && X();
|
|
99
109
|
}
|
|
100
|
-
return
|
|
101
|
-
open:
|
|
102
|
-
container:
|
|
103
|
-
closeOnEsc: () =>
|
|
104
|
-
blockScroll: () =>
|
|
110
|
+
return i({
|
|
111
|
+
open: w(F, "modelValue"),
|
|
112
|
+
container: V,
|
|
113
|
+
closeOnEsc: () => F.closeOnEsc,
|
|
114
|
+
blockScroll: () => F.blockScroll && F.modal,
|
|
105
115
|
onEscape: () => {
|
|
106
|
-
|
|
116
|
+
X();
|
|
107
117
|
},
|
|
108
|
-
onOpen: () =>
|
|
109
|
-
onClose: () =>
|
|
110
|
-
}), (e, n) => (
|
|
111
|
-
to:
|
|
112
|
-
disabled:
|
|
113
|
-
}, [
|
|
114
|
-
name:
|
|
115
|
-
|
|
118
|
+
onOpen: () => I("show"),
|
|
119
|
+
onClose: () => I("hide")
|
|
120
|
+
}), (e, n) => (b(), d(c, {
|
|
121
|
+
to: U.value.to,
|
|
122
|
+
disabled: U.value.disabled
|
|
123
|
+
}, [h(l, {
|
|
124
|
+
name: T(W),
|
|
125
|
+
css: T(G),
|
|
126
|
+
onAfterLeave: n[0] ||= (e) => I("after-leave")
|
|
116
127
|
}, {
|
|
117
|
-
default:
|
|
118
|
-
class: ["m-drawer-backdrop", { "m-drawer-backdrop--modal":
|
|
119
|
-
onClick:
|
|
120
|
-
}), [
|
|
128
|
+
default: D(() => [g.modelValue ? (b(), p("div", _({ key: 0 }, T(R), {
|
|
129
|
+
class: ["m-drawer-backdrop", { "m-drawer-backdrop--modal": g.modal }],
|
|
130
|
+
onClick: O(Z, ["self"])
|
|
131
|
+
}), [m("aside", {
|
|
121
132
|
ref_key: "drawerElement",
|
|
122
|
-
ref:
|
|
123
|
-
class:
|
|
124
|
-
style:
|
|
133
|
+
ref: V,
|
|
134
|
+
class: v(["m-drawer", `m-drawer--${g.position}`]),
|
|
135
|
+
style: y(J.value),
|
|
125
136
|
role: "dialog",
|
|
126
|
-
"aria-modal":
|
|
127
|
-
"aria-label":
|
|
137
|
+
"aria-modal": g.modal || void 0,
|
|
138
|
+
"aria-label": g.header,
|
|
128
139
|
tabindex: "-1"
|
|
129
|
-
}, [e.$slots.header ||
|
|
140
|
+
}, [e.$slots.header || g.header || g.showCloseIcon ? (b(), p("header", A, [S(e.$slots, "header", {}, () => [g.header ? (b(), p("h2", j, C(g.header), 1)) : f("", !0)]), g.showCloseIcon ? (b(), p("button", {
|
|
130
141
|
key: 0,
|
|
131
142
|
type: "button",
|
|
132
143
|
class: "m-drawer__close",
|
|
133
|
-
"aria-label":
|
|
134
|
-
onClick:
|
|
135
|
-
}, [
|
|
144
|
+
"aria-label": T(B).close,
|
|
145
|
+
onClick: X
|
|
146
|
+
}, [h(t, {
|
|
136
147
|
name: "close",
|
|
137
148
|
size: "sm"
|
|
138
|
-
})], 8,
|
|
149
|
+
})], 8, M)) : f("", !0)])) : f("", !0), m("div", N, [S(e.$slots, "default")])], 14, k)], 16)) : f("", !0)]),
|
|
139
150
|
_: 3
|
|
140
|
-
})], 8, ["to", "disabled"]));
|
|
151
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]));
|
|
141
152
|
}
|
|
142
153
|
});
|
|
143
154
|
//#endregion
|
|
144
|
-
export {
|
|
155
|
+
export { P as MDrawer };
|