naive-ui 2.28.3 → 2.29.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/es/_internal/clear/src/Clear.js +6 -3
- package/es/_internal/clear/src/styles/index.cssr.js +5 -2
- package/es/_internal/loading/src/styles/index.cssr.js +1 -1
- package/es/_internal/menu-mask/src/styles/index.cssr.js +1 -1
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +5 -3
- package/es/_internal/selection/src/styles/index.cssr.js +2 -0
- package/es/_internal/slot-machine/src/styles/index.cssr.js +2 -2
- package/es/_internal/suffix/src/Suffix.js +1 -1
- package/es/_mixins/use-style.js +11 -7
- package/es/_mixins/use-theme.js +9 -7
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +2 -0
- package/es/_styles/common/light.d.ts +2 -0
- package/es/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-down.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-height-expand.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-scale-up.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-width-expand.cssr.js +1 -1
- package/es/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in.cssr.js +1 -1
- package/es/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-up-width-expand.cssr.js +1 -1
- package/es/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/es/_styles/transitions/icon-switch.cssr.js +1 -1
- package/es/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-bottom.js +1 -1
- package/es/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-left.js +1 -1
- package/es/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-right.js +1 -1
- package/es/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-top.js +1 -1
- package/es/_utils/naive/prop.d.ts +10 -1
- package/es/_utils/naive/prop.js +3 -0
- package/es/alert/src/Alert.d.ts +2 -0
- package/es/alert/src/styles/index.cssr.js +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +2 -0
- package/es/auto-complete/src/styles/index.cssr.js +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/es/back-top/src/styles/index.cssr.js +1 -1
- package/es/badge/src/styles/index.cssr.js +1 -1
- package/es/button/src/styles/index.cssr.js +2 -2
- package/es/calendar/src/Calendar.d.ts +2 -0
- package/es/calendar/src/Calendar.js +3 -3
- package/es/card/src/Card.d.ts +2 -0
- package/es/cascader/src/Cascader.d.ts +2 -0
- package/es/cascader/src/CascaderMenu.d.ts +2 -0
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/cascader/src/styles/index.cssr.js +1 -1
- package/es/checkbox/src/Checkbox.d.ts +2 -0
- package/es/checkbox/src/styles/index.cssr.js +1 -1
- package/es/collapse/src/Collapse.d.ts +2 -0
- package/es/collapse/src/styles/index.cssr.js +1 -1
- package/es/collapse-transition/src/styles/index.cssr.js +1 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/es/color-picker/src/ColorPicker.d.ts +3 -0
- package/es/color-picker/src/ColorPicker.js +7 -1
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +4 -0
- package/es/config-provider/src/ConfigProvider.js +4 -1
- package/es/config-provider/src/internal-interface.d.ts +1 -0
- package/es/data-table/src/DataTable.d.ts +422 -140
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
- package/es/data-table/src/TableParts/Body.d.ts +44 -14
- package/es/data-table/src/TableParts/Cell.d.ts +88 -28
- package/es/data-table/src/TableParts/Header.d.ts +44 -14
- package/es/data-table/src/styles/index.cssr.js +2 -2
- package/es/data-table/styles/light.d.ts +42 -14
- package/es/date-picker/src/DatePicker.d.ts +2 -0
- package/es/date-picker/src/DatePicker.js +20 -7
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/es/date-picker/src/panel/month.d.ts +2 -0
- package/es/date-picker/src/panel/monthrange.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-calendar.js +1 -1
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-dual-calendar.js +1 -1
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/es/date-picker/src/styles/index.cssr.js +6 -1
- package/es/date-picker/src/utils.d.ts +2 -2
- package/es/date-picker/src/utils.js +1 -1
- package/es/date-picker/src/validation-utils.js +1 -1
- package/es/dialog/src/Dialog.d.ts +2 -0
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/drawer/src/Drawer.d.ts +2 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/es/drawer/src/DrawerContent.d.ts +2 -0
- package/es/drawer/src/styles/index.cssr.js +5 -5
- package/es/dropdown/src/Dropdown.d.ts +2 -0
- package/es/dropdown/src/styles/index.cssr.js +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/es/dynamic-input/src/InputPreset.d.ts +2 -0
- package/es/dynamic-input/src/PairPreset.d.ts +2 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +45 -13
- package/es/dynamic-tags/src/DynamicTags.js +4 -1
- package/es/dynamic-tags/styles/light.d.ts +3 -0
- package/es/ellipsis/src/Ellipsis.d.ts +2 -0
- package/es/form/src/styles/form-item.cssr.js +1 -1
- package/es/global-style/src/GlobalStyle.js +3 -1
- package/es/image/src/styles/index.cssr.js +3 -3
- package/es/input/src/Input.d.ts +2 -0
- package/es/input/src/Input.js +18 -11
- package/es/input/src/styles/input.cssr.js +1 -5
- package/es/input-number/src/InputNumber.d.ts +2 -0
- package/es/layout/src/Layout.d.ts +4 -0
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +2 -0
- package/es/loading-bar/src/styles/index.cssr.js +1 -1
- package/es/locales/common/nlNL.d.ts +3 -0
- package/es/locales/common/nlNL.js +111 -0
- package/es/locales/date/deDE.js +1 -1
- package/es/locales/date/enGB.js +1 -1
- package/es/locales/date/enUS.d.ts +2 -2
- package/es/locales/date/enUS.js +1 -1
- package/es/locales/date/eo.js +1 -1
- package/es/locales/date/esAR.js +1 -1
- package/es/locales/date/frFR.js +1 -1
- package/es/locales/date/idID.js +1 -1
- package/es/locales/date/itIT.js +1 -1
- package/es/locales/date/jaJP.js +1 -1
- package/es/locales/date/koKR.js +1 -1
- package/es/locales/date/nbNO.js +1 -1
- package/es/locales/date/nlNL.d.ts +3 -0
- package/es/locales/date/nlNL.js +6 -0
- package/es/locales/date/plPL.js +1 -1
- package/es/locales/date/ptBR.js +1 -1
- package/es/locales/date/ruRU.js +1 -1
- package/es/locales/date/skSK.js +1 -1
- package/es/locales/date/thTH.js +1 -1
- package/es/locales/date/ukUA.js +1 -1
- package/es/locales/date/zhCN.js +1 -1
- package/es/locales/date/zhTW.js +1 -1
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +2 -0
- package/es/log/src/styles/index.cssr.js +1 -1
- package/es/mention/src/Mention.d.ts +2 -0
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/Menu.d.ts +2 -0
- package/es/menu/src/MenuOption.d.ts +2 -0
- package/es/menu/src/MenuOptionContent.js +1 -1
- package/es/menu/src/Submenu.d.ts +2 -0
- package/es/menu/src/styles/index.cssr.js +2 -2
- package/es/message/src/styles/index.cssr.js +3 -3
- package/es/modal/src/BodyWrapper.d.ts +2 -0
- package/es/modal/src/styles/index.cssr.js +2 -2
- package/es/notification/index.d.ts +2 -1
- package/es/notification/src/Notification.js +18 -17
- package/es/notification/src/NotificationContainer.d.ts +7 -2
- package/es/notification/src/NotificationContainer.js +17 -5
- package/es/notification/src/NotificationEnvironment.d.ts +3 -2
- package/es/notification/src/NotificationEnvironment.js +9 -1
- package/es/notification/src/NotificationProvider.d.ts +3 -3
- package/es/notification/src/NotificationProvider.js +5 -2
- package/es/notification/src/styles/index.cssr.js +41 -11
- package/es/pagination/src/Pagination.d.ts +446 -151
- package/es/pagination/src/Pagination.js +22 -13
- package/es/pagination/src/interface.d.ts +1 -0
- package/es/pagination/src/styles/index.cssr.js +38 -39
- package/es/pagination/styles/_common.d.ts +33 -13
- package/es/pagination/styles/_common.js +33 -13
- package/es/pagination/styles/light.d.ts +84 -28
- package/es/pagination/styles/light.js +6 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -0
- package/es/popover/src/PopoverBody.js +6 -6
- package/es/popover/src/styles/index.cssr.js +22 -21
- package/es/popselect/src/Popselect.d.ts +35 -12
- package/es/popselect/src/Popselect.js +1 -0
- package/es/popselect/src/PopselectPanel.d.ts +10 -1
- package/es/popselect/src/PopselectPanel.js +21 -4
- package/es/popselect/src/interface.d.ts +3 -1
- package/es/popselect/src/styles/index.cssr.d.ts +2 -0
- package/es/popselect/src/styles/index.cssr.js +5 -0
- package/es/popselect/styles/light.d.ts +7 -1
- package/es/popselect/styles/light.js +8 -1
- package/es/select/src/Select.d.ts +3 -1
- package/es/select/src/Select.js +1 -1
- package/es/select/src/interface.d.ts +1 -1
- package/es/select/src/styles/index.cssr.js +1 -1
- package/es/slider/src/styles/index.cssr.js +1 -1
- package/es/spin/src/styles/index.cssr.js +1 -1
- package/es/steps/src/styles/index.cssr.js +1 -1
- package/es/switch/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/styles/index.cssr.js +5 -4
- package/es/tag/src/Tag.d.ts +31 -4
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/styles/_common.d.ts +1 -0
- package/es/tag/styles/_common.js +1 -0
- package/es/tag/styles/dark.js +3 -3
- package/es/tag/styles/light.d.ts +3 -0
- package/es/tag/styles/light.js +3 -3
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/theme-editor/src/ThemeEditor.js +113 -125
- package/es/time/src/Time.js +2 -2
- package/es/time-picker/src/Panel.d.ts +2 -0
- package/es/time-picker/src/TimePicker.d.ts +2 -0
- package/es/time-picker/src/TimePicker.js +7 -2
- package/es/time-picker/src/styles/index.cssr.js +1 -1
- package/es/time-picker/src/utils.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +2 -0
- package/es/transfer/src/Transfer.d.ts +2 -0
- package/es/transfer/src/TransferFilter.d.ts +2 -0
- package/es/transfer/src/TransferFilter.js +1 -1
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/transfer/src/TransferListItem.d.ts +2 -0
- package/es/transfer/src/styles/index.cssr.js +1 -2
- package/es/tree/src/Tree.d.ts +2 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +3 -1
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/styles/index.cssr.js +1 -1
- package/es/upload/src/Upload.d.ts +2 -0
- package/es/upload/src/Upload.js +16 -3
- package/es/upload/src/UploadFile.d.ts +2 -0
- package/es/upload/src/UploadProgress.d.ts +2 -0
- package/es/upload/src/interface.d.ts +2 -0
- package/es/upload/src/styles/index.cssr.js +4 -4
- package/es/upload/src/utils.d.ts +6 -0
- package/es/upload/src/utils.js +38 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.js +6 -3
- package/lib/_internal/clear/src/styles/index.cssr.js +5 -8
- package/lib/_internal/loading/src/styles/index.cssr.js +3 -9
- package/lib/_internal/menu-mask/src/styles/index.cssr.js +2 -8
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +2 -8
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -8
- package/lib/_internal/selection/src/Selection.d.ts +5 -3
- package/lib/_internal/selection/src/styles/index.cssr.js +2 -0
- package/lib/_internal/slot-machine/src/styles/index.cssr.js +4 -10
- package/lib/_internal/suffix/src/Suffix.js +1 -1
- package/lib/_mixins/use-style.js +10 -6
- package/lib/_mixins/use-theme.js +9 -7
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +2 -0
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-down.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in.cssr.js +3 -2
- package/lib/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +2 -1
- package/lib/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/lib/_styles/transitions/icon-switch.cssr.js +3 -2
- package/lib/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-bottom.js +3 -2
- package/lib/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-left.js +3 -2
- package/lib/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-right.js +3 -2
- package/lib/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-top.js +3 -2
- package/lib/_utils/naive/prop.d.ts +10 -1
- package/lib/_utils/naive/prop.js +3 -0
- package/lib/alert/src/Alert.d.ts +2 -0
- package/lib/alert/src/styles/index.cssr.js +2 -8
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -0
- package/lib/auto-complete/src/styles/index.cssr.js +2 -8
- package/lib/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/lib/back-top/src/styles/index.cssr.js +2 -8
- package/lib/badge/src/styles/index.cssr.js +3 -9
- package/lib/button/src/styles/index.cssr.js +4 -10
- package/lib/calendar/src/Calendar.d.ts +2 -0
- package/lib/calendar/src/Calendar.js +2 -2
- package/lib/card/src/Card.d.ts +2 -0
- package/lib/cascader/src/Cascader.d.ts +2 -0
- package/lib/cascader/src/CascaderMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/cascader/src/styles/index.cssr.js +3 -9
- package/lib/checkbox/src/Checkbox.d.ts +2 -0
- package/lib/checkbox/src/styles/index.cssr.js +2 -8
- package/lib/collapse/src/Collapse.d.ts +2 -0
- package/lib/collapse/src/styles/index.cssr.js +2 -8
- package/lib/collapse-transition/src/styles/index.cssr.js +2 -8
- package/lib/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/lib/color-picker/src/ColorPicker.d.ts +3 -0
- package/lib/color-picker/src/ColorPicker.js +7 -1
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +2 -8
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -0
- package/lib/config-provider/src/ConfigProvider.js +4 -1
- package/lib/config-provider/src/internal-interface.d.ts +1 -0
- package/lib/data-table/src/DataTable.d.ts +422 -140
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
- package/lib/data-table/src/TableParts/Body.d.ts +44 -14
- package/lib/data-table/src/TableParts/Cell.d.ts +88 -28
- package/lib/data-table/src/TableParts/Header.d.ts +44 -14
- package/lib/data-table/src/styles/index.cssr.js +5 -11
- package/lib/data-table/styles/light.d.ts +42 -14
- package/lib/date-picker/src/DatePicker.d.ts +2 -0
- package/lib/date-picker/src/DatePicker.js +18 -5
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/daterange.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/lib/date-picker/src/panel/month.d.ts +2 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/lib/date-picker/src/styles/index.cssr.js +7 -8
- package/lib/date-picker/src/utils.d.ts +2 -2
- package/lib/dialog/src/Dialog.d.ts +2 -0
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/drawer/src/Drawer.d.ts +2 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/lib/drawer/src/DrawerContent.d.ts +2 -0
- package/lib/drawer/src/styles/index.cssr.js +7 -13
- package/lib/dropdown/src/Dropdown.d.ts +2 -0
- package/lib/dropdown/src/styles/index.cssr.js +2 -8
- package/lib/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +2 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +2 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +45 -13
- package/lib/dynamic-tags/src/DynamicTags.js +4 -1
- package/lib/dynamic-tags/styles/light.d.ts +3 -0
- package/lib/ellipsis/src/Ellipsis.d.ts +2 -0
- package/lib/form/src/styles/form-item.cssr.js +2 -8
- package/lib/global-style/src/GlobalStyle.js +3 -1
- package/lib/image/src/styles/index.cssr.js +5 -11
- package/lib/input/src/Input.d.ts +2 -0
- package/lib/input/src/Input.js +18 -11
- package/lib/input/src/styles/input.cssr.js +1 -5
- package/lib/input-number/src/InputNumber.d.ts +2 -0
- package/lib/layout/src/Layout.d.ts +4 -0
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +2 -0
- package/lib/loading-bar/src/styles/index.cssr.js +2 -8
- package/lib/locales/common/nlNL.d.ts +3 -0
- package/lib/locales/common/nlNL.js +113 -0
- package/lib/locales/date/enUS.d.ts +2 -2
- package/lib/locales/date/nlNL.d.ts +3 -0
- package/lib/locales/date/nlNL.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/log/src/Log.d.ts +2 -0
- package/lib/log/src/styles/index.cssr.js +2 -8
- package/lib/mention/src/Mention.d.ts +2 -0
- package/lib/mention/src/styles/index.cssr.js +2 -8
- package/lib/menu/src/Menu.d.ts +2 -0
- package/lib/menu/src/MenuOption.d.ts +2 -0
- package/lib/menu/src/MenuOptionContent.js +1 -1
- package/lib/menu/src/Submenu.d.ts +2 -0
- package/lib/menu/src/styles/index.cssr.js +3 -9
- package/lib/message/src/styles/index.cssr.js +4 -10
- package/lib/modal/src/BodyWrapper.d.ts +2 -0
- package/lib/modal/src/styles/index.cssr.js +4 -10
- package/lib/notification/index.d.ts +2 -1
- package/lib/notification/src/Notification.js +18 -17
- package/lib/notification/src/NotificationContainer.d.ts +7 -2
- package/lib/notification/src/NotificationContainer.js +16 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +3 -2
- package/lib/notification/src/NotificationEnvironment.js +8 -0
- package/lib/notification/src/NotificationProvider.d.ts +3 -3
- package/lib/notification/src/NotificationProvider.js +5 -2
- package/lib/notification/src/styles/index.cssr.js +41 -11
- package/lib/pagination/src/Pagination.d.ts +446 -151
- package/lib/pagination/src/Pagination.js +19 -10
- package/lib/pagination/src/interface.d.ts +1 -0
- package/lib/pagination/src/styles/index.cssr.js +38 -39
- package/lib/pagination/styles/_common.d.ts +33 -13
- package/lib/pagination/styles/_common.js +33 -13
- package/lib/pagination/styles/light.d.ts +84 -28
- package/lib/pagination/styles/light.js +6 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -0
- package/lib/popover/src/PopoverBody.js +6 -6
- package/lib/popover/src/styles/index.cssr.js +22 -21
- package/lib/popselect/src/Popselect.d.ts +35 -12
- package/lib/popselect/src/Popselect.js +1 -0
- package/lib/popselect/src/PopselectPanel.d.ts +10 -1
- package/lib/popselect/src/PopselectPanel.js +23 -3
- package/lib/popselect/src/interface.d.ts +3 -1
- package/lib/popselect/src/styles/index.cssr.d.ts +2 -0
- package/lib/popselect/src/styles/index.cssr.js +12 -0
- package/lib/popselect/styles/light.d.ts +7 -1
- package/lib/popselect/styles/light.js +10 -1
- package/lib/select/src/Select.d.ts +3 -1
- package/lib/select/src/Select.js +1 -1
- package/lib/select/src/interface.d.ts +1 -1
- package/lib/select/src/styles/index.cssr.js +2 -8
- package/lib/slider/src/styles/index.cssr.js +3 -9
- package/lib/spin/src/styles/index.cssr.js +2 -8
- package/lib/steps/src/styles/index.cssr.js +4 -10
- package/lib/switch/src/styles/index.cssr.js +3 -9
- package/lib/tabs/src/styles/index.cssr.js +5 -4
- package/lib/tag/src/Tag.d.ts +31 -4
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/styles/_common.d.ts +1 -0
- package/lib/tag/styles/_common.js +1 -0
- package/lib/tag/styles/dark.js +3 -3
- package/lib/tag/styles/light.d.ts +3 -0
- package/lib/tag/styles/light.js +3 -3
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/theme-editor/src/ThemeEditor.js +113 -125
- package/lib/time/src/Time.js +6 -3
- package/lib/time-picker/src/Panel.d.ts +2 -0
- package/lib/time-picker/src/TimePicker.d.ts +2 -0
- package/lib/time-picker/src/TimePicker.js +6 -1
- package/lib/time-picker/src/styles/index.cssr.js +2 -8
- package/lib/tooltip/src/Tooltip.d.ts +2 -0
- package/lib/transfer/src/Transfer.d.ts +2 -0
- package/lib/transfer/src/TransferFilter.d.ts +2 -0
- package/lib/transfer/src/TransferFilter.js +1 -1
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/transfer/src/TransferListItem.d.ts +2 -0
- package/lib/transfer/src/styles/index.cssr.js +2 -9
- package/lib/tree/src/Tree.d.ts +2 -0
- package/lib/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +6 -12
- package/lib/tree-select/src/TreeSelect.d.ts +3 -1
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/styles/index.cssr.js +2 -8
- package/lib/upload/src/Upload.d.ts +2 -0
- package/lib/upload/src/Upload.js +15 -2
- package/lib/upload/src/UploadFile.d.ts +2 -0
- package/lib/upload/src/UploadProgress.d.ts +2 -0
- package/lib/upload/src/interface.d.ts +2 -0
- package/lib/upload/src/styles/index.cssr.js +4 -10
- package/lib/upload/src/utils.d.ts +6 -0
- package/lib/upload/src/utils.js +40 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +13 -13
- package/volar.d.ts +24 -24
- package/web-types.json +23 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { nextTick, Transition, h, defineComponent, ref, onMounted } from 'vue';
|
|
1
|
+
import { nextTick, Transition, h, defineComponent, ref, onMounted, inject } from 'vue';
|
|
2
2
|
import { keep } from '../../_utils';
|
|
3
|
+
import { notificationProviderInjectionKey } from './context';
|
|
3
4
|
import { Notification, notificationProps, notificationPropKeys } from './Notification';
|
|
4
5
|
export const notificationEnvOptions = Object.assign(Object.assign({}, notificationProps), { duration: Number, onClose: Function, onLeave: Function, onAfterEnter: Function, onAfterLeave: Function,
|
|
5
6
|
/** @deprecated */
|
|
@@ -20,6 +21,9 @@ export const NotificationEnvironment = defineComponent({
|
|
|
20
21
|
required: true
|
|
21
22
|
} }),
|
|
22
23
|
setup(props) {
|
|
24
|
+
const { wipTransitionCountRef
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
|
+
} = inject(notificationProviderInjectionKey);
|
|
23
27
|
const showRef = ref(true);
|
|
24
28
|
let timerId = null;
|
|
25
29
|
function hide() {
|
|
@@ -29,6 +33,7 @@ export const NotificationEnvironment = defineComponent({
|
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
function handleBeforeEnter(el) {
|
|
36
|
+
wipTransitionCountRef.value++;
|
|
32
37
|
void nextTick(() => {
|
|
33
38
|
el.style.height = `${el.offsetHeight}px`;
|
|
34
39
|
el.style.maxHeight = '0';
|
|
@@ -39,6 +44,7 @@ export const NotificationEnvironment = defineComponent({
|
|
|
39
44
|
});
|
|
40
45
|
}
|
|
41
46
|
function handleAfterEnter(el) {
|
|
47
|
+
wipTransitionCountRef.value--;
|
|
42
48
|
el.style.height = '';
|
|
43
49
|
el.style.maxHeight = '';
|
|
44
50
|
const { onAfterEnter, onAfterShow } = props;
|
|
@@ -49,6 +55,7 @@ export const NotificationEnvironment = defineComponent({
|
|
|
49
55
|
onAfterShow();
|
|
50
56
|
}
|
|
51
57
|
function handleBeforeLeave(el) {
|
|
58
|
+
wipTransitionCountRef.value++;
|
|
52
59
|
el.style.maxHeight = `${el.offsetHeight}px`;
|
|
53
60
|
el.style.height = `${el.offsetHeight}px`;
|
|
54
61
|
void el.offsetHeight;
|
|
@@ -61,6 +68,7 @@ export const NotificationEnvironment = defineComponent({
|
|
|
61
68
|
void el.offsetHeight;
|
|
62
69
|
}
|
|
63
70
|
function handleAfterLeave() {
|
|
71
|
+
wipTransitionCountRef.value--;
|
|
64
72
|
const { onAfterLeave, onInternalAfterLeave, onAfterHide, internalKey } = props;
|
|
65
73
|
if (onAfterLeave)
|
|
66
74
|
onAfterLeave();
|
|
@@ -2,13 +2,13 @@ import { PropType, ExtractPropTypes, Ref, CSSProperties } from 'vue';
|
|
|
2
2
|
import type { MergedTheme } from '../../_mixins';
|
|
3
3
|
import { ExtractPublicPropTypes, Mutable } from '../../_utils';
|
|
4
4
|
import { NotificationTheme } from '../styles';
|
|
5
|
-
import {
|
|
6
|
-
export declare type NotificationPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
7
|
-
export declare type NotificationOptions = Partial<ExtractPropTypes<typeof notificationEnvOptions>>;
|
|
5
|
+
import type { NotificationOptions } from './NotificationEnvironment';
|
|
6
|
+
export declare type NotificationPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top' | 'bottom';
|
|
8
7
|
export interface NotificationProviderInjection {
|
|
9
8
|
props: ExtractPropTypes<typeof notificationProviderProps>;
|
|
10
9
|
mergedClsPrefixRef: Ref<string>;
|
|
11
10
|
mergedThemeRef: Ref<MergedTheme<NotificationTheme>>;
|
|
11
|
+
wipTransitionCountRef: Ref<number>;
|
|
12
12
|
}
|
|
13
13
|
declare type Create = (options: NotificationOptions) => NotificationReactive;
|
|
14
14
|
declare type TypedCreate = (options: Omit<NotificationOptions, 'type'>) => NotificationReactive;
|
|
@@ -73,11 +73,13 @@ export default defineComponent({
|
|
|
73
73
|
open,
|
|
74
74
|
destroyAll
|
|
75
75
|
};
|
|
76
|
+
const wipTransitionCountRef = ref(0);
|
|
76
77
|
provide(notificationApiInjectionKey, api);
|
|
77
78
|
provide(notificationProviderInjectionKey, {
|
|
78
79
|
props,
|
|
79
80
|
mergedClsPrefixRef,
|
|
80
|
-
mergedThemeRef: themeRef
|
|
81
|
+
mergedThemeRef: themeRef,
|
|
82
|
+
wipTransitionCountRef
|
|
81
83
|
});
|
|
82
84
|
// deprecated
|
|
83
85
|
function open(options) {
|
|
@@ -97,10 +99,11 @@ export default defineComponent({
|
|
|
97
99
|
},
|
|
98
100
|
render() {
|
|
99
101
|
var _a, _b, _c;
|
|
102
|
+
const { placement } = this;
|
|
100
103
|
return (h(Fragment, null, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 :
|
|
101
104
|
_b.call(_a),
|
|
102
105
|
this.notificationList.length ? (h(Teleport, { to: (_c = this.to) !== null && _c !== void 0 ? _c : 'body' },
|
|
103
|
-
h(NotificationContainer, { style: this.containerStyle, scrollable: this.scrollable, placement:
|
|
106
|
+
h(NotificationContainer, { style: this.containerStyle, scrollable: this.scrollable && placement !== 'top' && placement !== 'bottom', placement: placement }, {
|
|
104
107
|
default: () => {
|
|
105
108
|
return this.notificationList.map((notification) => {
|
|
106
109
|
return (h(NotificationEnvironment, Object.assign({ ref: ((inst) => {
|
|
@@ -43,7 +43,31 @@ export default c([cB('notification-container', `
|
|
|
43
43
|
`, [cB('scrollbar-content', `
|
|
44
44
|
padding-top: 12px;
|
|
45
45
|
padding-bottom: 33px;
|
|
46
|
-
`)])])])]), cM('top
|
|
46
|
+
`)])])])]), cM('top, top-right, top-left', `
|
|
47
|
+
top: 12px;
|
|
48
|
+
`, [c('&.transitioning >', [cB('scrollbar', [c('>', [cB('scrollbar-container', `
|
|
49
|
+
min-height: 100vh !important;
|
|
50
|
+
`)])])])]), cM('bottom, bottom-right, bottom-left', `
|
|
51
|
+
bottom: 12px;
|
|
52
|
+
`, [c('>', [cB('scrollbar', [c('>', [cB('scrollbar-container', [cB('scrollbar-content', `
|
|
53
|
+
padding-bottom: 12px;
|
|
54
|
+
`)])])])]), cB('notification-wrapper', `
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: flex-end;
|
|
57
|
+
margin-bottom: 0;
|
|
58
|
+
margin-top: 12px;
|
|
59
|
+
`)]), cM('top, bottom', `
|
|
60
|
+
left: 50%;
|
|
61
|
+
transform: translateX(-50%);
|
|
62
|
+
`, [cB('notification-wrapper', [c('&.notification-transition-enter-from, &.notification-transition-leave-to', `
|
|
63
|
+
transform: scale(0.85);
|
|
64
|
+
`), c('&.notification-transition-leave-from, &.notification-transition-enter-to', `
|
|
65
|
+
transform: scale(1);
|
|
66
|
+
`)])]), cM('top', [cB('notification-wrapper', `
|
|
67
|
+
transform-origin: top center;
|
|
68
|
+
`)]), cM('bottom', [cB('notification-wrapper', `
|
|
69
|
+
transform-origin: bottom center;
|
|
70
|
+
`)]), cM('top-right, bottom-right', [cB('notification', `
|
|
47
71
|
margin-left: 28px;
|
|
48
72
|
margin-right: 16px;
|
|
49
73
|
`)]), cM('top-left, bottom-left', [cB('notification', `
|
|
@@ -51,16 +75,12 @@ export default c([cB('notification-container', `
|
|
|
51
75
|
margin-right: 28px;
|
|
52
76
|
`)]), cM('top-right', `
|
|
53
77
|
right: 0;
|
|
54
|
-
top: 12px;
|
|
55
78
|
`, [placementTransformStyle('top-right')]), cM('top-left', `
|
|
56
79
|
left: 0;
|
|
57
|
-
top: 12px;
|
|
58
80
|
`, [placementTransformStyle('top-left')]), cM('bottom-right', `
|
|
59
81
|
right: 0;
|
|
60
|
-
bottom: 12px;
|
|
61
82
|
`, [placementTransformStyle('bottom-right')]), cM('bottom-left', `
|
|
62
83
|
left: 0;
|
|
63
|
-
bottom: 12px;
|
|
64
84
|
`, [placementTransformStyle('bottom-left')]), cM('scrollable', [cM('top-right', `
|
|
65
85
|
top: 0;
|
|
66
86
|
`), cM('top-left', `
|
|
@@ -69,8 +89,11 @@ export default c([cB('notification-container', `
|
|
|
69
89
|
bottom: 0;
|
|
70
90
|
`), cM('bottom-left', `
|
|
71
91
|
bottom: 0;
|
|
72
|
-
`)]), cB('notification
|
|
92
|
+
`)]), cB('notification-wrapper', `
|
|
93
|
+
margin-bottom: 12px;
|
|
94
|
+
`, [c('&.notification-transition-enter-from, &.notification-transition-leave-to', `
|
|
73
95
|
opacity: 0;
|
|
96
|
+
margin-top: 0 !important;
|
|
74
97
|
margin-bottom: 0 !important;
|
|
75
98
|
`), c('&.notification-transition-leave-from, &.notification-transition-enter-to', `
|
|
76
99
|
opacity: 1;
|
|
@@ -81,19 +104,27 @@ export default c([cB('notification-container', `
|
|
|
81
104
|
opacity .3s var(--n-bezier),
|
|
82
105
|
transform .3s var(--n-bezier-ease-in),
|
|
83
106
|
max-height .3s var(--n-bezier),
|
|
107
|
+
margin-top .3s linear,
|
|
84
108
|
margin-bottom .3s linear,
|
|
85
109
|
box-shadow .3s var(--n-bezier);
|
|
86
|
-
`)
|
|
87
|
-
background-color: var(--n-color);
|
|
88
|
-
color: var(--n-text-color);
|
|
110
|
+
`), c('&.notification-transition-enter-active', `
|
|
89
111
|
transition:
|
|
90
112
|
background-color .3s var(--n-bezier),
|
|
91
113
|
color .3s var(--n-bezier),
|
|
92
114
|
opacity .3s var(--n-bezier),
|
|
93
115
|
transform .3s var(--n-bezier-ease-out),
|
|
94
116
|
max-height .3s var(--n-bezier),
|
|
117
|
+
margin-top .3s linear,
|
|
95
118
|
margin-bottom .3s linear,
|
|
96
119
|
box-shadow .3s var(--n-bezier);
|
|
120
|
+
`)]), cB('notification', `
|
|
121
|
+
background-color: var(--n-color);
|
|
122
|
+
color: var(--n-text-color);
|
|
123
|
+
transition:
|
|
124
|
+
background-color .3s var(--n-bezier),
|
|
125
|
+
color .3s var(--n-bezier),
|
|
126
|
+
opacity .3s var(--n-bezier),
|
|
127
|
+
box-shadow .3s var(--n-bezier);
|
|
97
128
|
font-family: inherit;
|
|
98
129
|
font-size: var(--n-font-size);
|
|
99
130
|
font-weight: 400;
|
|
@@ -101,7 +132,6 @@ export default c([cB('notification-container', `
|
|
|
101
132
|
display: flex;
|
|
102
133
|
overflow: hidden;
|
|
103
134
|
flex-shrink: 0;
|
|
104
|
-
margin-bottom: 12px;
|
|
105
135
|
padding-left: var(--n-padding-left);
|
|
106
136
|
padding-right: var(--n-padding-right);
|
|
107
137
|
width: var(--n-width);
|
|
@@ -184,7 +214,7 @@ function placementTransformStyle(placement) {
|
|
|
184
214
|
const direction = placement.split('-')[1];
|
|
185
215
|
const transformXEnter = direction === 'left' ? 'calc(-100%)' : 'calc(100%)';
|
|
186
216
|
const transformXLeave = '0';
|
|
187
|
-
return cB('notification', [c('&.notification-transition-enter-from, &.notification-transition-leave-to', `
|
|
217
|
+
return cB('notification-wrapper', [c('&.notification-transition-enter-from, &.notification-transition-leave-to', `
|
|
188
218
|
transform: translate(${transformXEnter}, 0);
|
|
189
219
|
`), c('&.notification-transition-leave-from, &.notification-transition-enter-to', `
|
|
190
220
|
transform: translate(${transformXLeave}, 0);
|