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
|
@@ -11,12 +11,14 @@ exports.default = {
|
|
|
11
11
|
borderRadius: '3px',
|
|
12
12
|
borderRadiusSmall: '2px',
|
|
13
13
|
fontSize: '14px',
|
|
14
|
+
fontSizeMini: '12px',
|
|
14
15
|
fontSizeTiny: '12px',
|
|
15
16
|
fontSizeSmall: '14px',
|
|
16
17
|
fontSizeMedium: '14px',
|
|
17
18
|
fontSizeLarge: '15px',
|
|
18
19
|
fontSizeHuge: '16px',
|
|
19
20
|
lineHeight: '1.6',
|
|
21
|
+
heightMini: '16px',
|
|
20
22
|
heightTiny: '22px',
|
|
21
23
|
heightSmall: '28px',
|
|
22
24
|
heightMedium: '34px',
|
|
@@ -87,12 +87,14 @@ declare const derived: {
|
|
|
87
87
|
borderRadius: string;
|
|
88
88
|
borderRadiusSmall: string;
|
|
89
89
|
fontSize: string;
|
|
90
|
+
fontSizeMini: string;
|
|
90
91
|
fontSizeTiny: string;
|
|
91
92
|
fontSizeSmall: string;
|
|
92
93
|
fontSizeMedium: string;
|
|
93
94
|
fontSizeLarge: string;
|
|
94
95
|
fontSizeHuge: string;
|
|
95
96
|
lineHeight: string;
|
|
97
|
+
heightMini: string;
|
|
96
98
|
heightTiny: string;
|
|
97
99
|
heightSmall: string;
|
|
98
100
|
heightMedium: string;
|
|
@@ -7,5 +7,5 @@ interface FadeDownTransitionOptions {
|
|
|
7
7
|
enterCubicBezier?: string;
|
|
8
8
|
leaveCubicBezier?: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export declare function fadeDownTransition({ name, fromOffset, enterDuration, leaveDuration, enterCubicBezier, leaveCubicBezier }?: FadeDownTransitionOptions): CNode[];
|
|
11
11
|
export {};
|
|
@@ -9,6 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
+
exports.fadeDownTransition = void 0;
|
|
12
13
|
|
|
13
14
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
15
|
|
|
@@ -18,7 +19,7 @@ const {
|
|
|
18
19
|
cubicBezierEaseInOut
|
|
19
20
|
} = _common_1.default;
|
|
20
21
|
|
|
21
|
-
function
|
|
22
|
+
function fadeDownTransition({
|
|
22
23
|
name = 'fade-down',
|
|
23
24
|
fromOffset = '-4px',
|
|
24
25
|
enterDuration = '.3s',
|
|
@@ -39,4 +40,4 @@ function default_1({
|
|
|
39
40
|
})];
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
exports.
|
|
43
|
+
exports.fadeDownTransition = fadeDownTransition;
|
|
@@ -9,5 +9,5 @@ interface FadeInHeightExpandTransitionOption {
|
|
|
9
9
|
leaveToProps?: Record<string, string | number> | undefined;
|
|
10
10
|
reverse?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export declare function fadeInHeightExpandTransition({ overflow, duration, originalTransition, leavingDelay, foldPadding, enterToProps, leaveToProps, reverse }?: FadeInHeightExpandTransitionOption): CNode[];
|
|
13
13
|
export {};
|
|
@@ -9,6 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
+
exports.fadeInHeightExpandTransition = void 0;
|
|
12
13
|
|
|
13
14
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
15
|
|
|
@@ -20,7 +21,7 @@ const {
|
|
|
20
21
|
cubicBezierEaseIn
|
|
21
22
|
} = _common_1.default;
|
|
22
23
|
|
|
23
|
-
function
|
|
24
|
+
function fadeInHeightExpandTransition({
|
|
24
25
|
overflow = 'hidden',
|
|
25
26
|
duration = '.3s',
|
|
26
27
|
originalTransition = '',
|
|
@@ -65,4 +66,4 @@ function default_1({
|
|
|
65
66
|
`)];
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
exports.
|
|
69
|
+
exports.fadeInHeightExpandTransition = fadeInHeightExpandTransition;
|
|
@@ -6,5 +6,5 @@ interface FadeInScaleUpTransitionOptions {
|
|
|
6
6
|
originalTransform?: string;
|
|
7
7
|
originalTransition?: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare function fadeInScaleUpTransition({ transformOrigin, duration, enterScale, originalTransform, originalTransition }?: FadeInScaleUpTransitionOptions): CNode[];
|
|
10
10
|
export {};
|
|
@@ -9,6 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
+
exports.fadeInScaleUpTransition = void 0;
|
|
12
13
|
|
|
13
14
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
15
|
|
|
@@ -19,7 +20,7 @@ const {
|
|
|
19
20
|
cubicBezierEaseOut
|
|
20
21
|
} = _common_1.default;
|
|
21
22
|
|
|
22
|
-
function
|
|
23
|
+
function fadeInScaleUpTransition({
|
|
23
24
|
transformOrigin = 'inherit',
|
|
24
25
|
duration = '.2s',
|
|
25
26
|
enterScale = '.9',
|
|
@@ -41,4 +42,4 @@ function default_1({
|
|
|
41
42
|
})];
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
exports.
|
|
45
|
+
exports.fadeInScaleUpTransition = fadeInScaleUpTransition;
|
|
@@ -3,5 +3,5 @@ interface FadeInWidthExpandTransition {
|
|
|
3
3
|
duration?: string;
|
|
4
4
|
delay?: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export declare function fadeInWidthExpandTransition({ duration, delay }?: FadeInWidthExpandTransition): CNode[];
|
|
7
7
|
export {};
|
|
@@ -9,6 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
+
exports.fadeInWidthExpandTransition = void 0;
|
|
12
13
|
|
|
13
14
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
15
|
|
|
@@ -18,7 +19,7 @@ const {
|
|
|
18
19
|
cubicBezierEaseInOut
|
|
19
20
|
} = _common_1.default;
|
|
20
21
|
|
|
21
|
-
function
|
|
22
|
+
function fadeInWidthExpandTransition({
|
|
22
23
|
duration = '.2s',
|
|
23
24
|
delay = '.1s'
|
|
24
25
|
} = {}) {
|
|
@@ -45,4 +46,4 @@ function default_1({
|
|
|
45
46
|
`)];
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
exports.
|
|
49
|
+
exports.fadeInWidthExpandTransition = fadeInWidthExpandTransition;
|
|
@@ -6,5 +6,5 @@ interface FadeInTransitionOptions {
|
|
|
6
6
|
enterCubicBezier?: string;
|
|
7
7
|
leaveCubicBezier?: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare function fadeInTransition({ name, enterDuration, leaveDuration, enterCubicBezier, leaveCubicBezier }?: FadeInTransitionOptions): CNode[];
|
|
10
10
|
export {};
|
|
@@ -9,6 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
+
exports.fadeInTransition = void 0;
|
|
12
13
|
|
|
13
14
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
15
|
|
|
@@ -18,7 +19,7 @@ const {
|
|
|
18
19
|
cubicBezierEaseInOut
|
|
19
20
|
} = _common_1.default;
|
|
20
21
|
|
|
21
|
-
function
|
|
22
|
+
function fadeInTransition({
|
|
22
23
|
name = 'fade-in',
|
|
23
24
|
enterDuration = '0.2s',
|
|
24
25
|
leaveDuration = '0.2s',
|
|
@@ -36,4 +37,4 @@ function default_1({
|
|
|
36
37
|
})];
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
exports.
|
|
40
|
+
exports.fadeInTransition = fadeInTransition;
|
|
@@ -2,5 +2,5 @@ import { CNode } from 'css-render';
|
|
|
2
2
|
interface FadeUpWidthExpandTransition {
|
|
3
3
|
duration?: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export declare function fadeUpWidthExpandTransition({ duration }?: FadeUpWidthExpandTransition): CNode[];
|
|
6
6
|
export {};
|
|
@@ -9,6 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
+
exports.fadeUpWidthExpandTransition = void 0;
|
|
12
13
|
|
|
13
14
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
15
|
|
|
@@ -50,4 +51,4 @@ function fadeUpWidthExpandTransition({
|
|
|
50
51
|
})];
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
exports.
|
|
54
|
+
exports.fadeUpWidthExpandTransition = fadeUpWidthExpandTransition;
|
|
@@ -5,5 +5,5 @@ interface IconSwitchTransitionOptions {
|
|
|
5
5
|
top?: string | number;
|
|
6
6
|
transition?: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare function iconSwitchTransition({ originalTransform, left, top, transition }?: IconSwitchTransitionOptions): CNode[];
|
|
9
9
|
export {};
|
|
@@ -9,6 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
+
exports.iconSwitchTransition = void 0;
|
|
12
13
|
|
|
13
14
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
15
|
|
|
@@ -18,7 +19,7 @@ const {
|
|
|
18
19
|
cubicBezierEaseInOut
|
|
19
20
|
} = _common_1.default;
|
|
20
21
|
|
|
21
|
-
function
|
|
22
|
+
function iconSwitchTransition({
|
|
22
23
|
originalTransform = '',
|
|
23
24
|
left = 0,
|
|
24
25
|
top = 0,
|
|
@@ -43,4 +44,4 @@ function default_1({
|
|
|
43
44
|
})];
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
exports.
|
|
47
|
+
exports.iconSwitchTransition = iconSwitchTransition;
|
|
@@ -4,5 +4,5 @@ interface SlideInFromBottomTransitionOptions {
|
|
|
4
4
|
leaveDuration?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function slideInFromBottomTransition({ duration, leaveDuration, name }?: SlideInFromBottomTransitionOptions): CNode[];
|
|
8
8
|
export {};
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.slideInFromBottomTransition = void 0;
|
|
6
7
|
const cssr_1 = require("../../_utils/cssr");
|
|
7
8
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
8
9
|
const { cubicBezierEaseIn, cubicBezierEaseOut } = _common_1.default;
|
|
9
|
-
function
|
|
10
|
+
function slideInFromBottomTransition({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in-from-bottom' } = {}) {
|
|
10
11
|
return [
|
|
11
12
|
(0, cssr_1.c)(`&.${name}-transition-leave-active`, {
|
|
12
13
|
transition: `transform ${leaveDuration} ${cubicBezierEaseIn}`
|
|
@@ -28,4 +29,4 @@ function default_1({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in
|
|
|
28
29
|
})
|
|
29
30
|
];
|
|
30
31
|
}
|
|
31
|
-
exports.
|
|
32
|
+
exports.slideInFromBottomTransition = slideInFromBottomTransition;
|
|
@@ -4,5 +4,5 @@ interface SlideInFromLeftTransitionOptions {
|
|
|
4
4
|
leaveDuration?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function slideInFromLeftTransition({ duration, leaveDuration, name }?: SlideInFromLeftTransitionOptions): CNode[];
|
|
8
8
|
export {};
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.slideInFromLeftTransition = void 0;
|
|
6
7
|
const cssr_1 = require("../../_utils/cssr");
|
|
7
8
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
8
9
|
const { cubicBezierEaseIn, cubicBezierEaseOut } = _common_1.default;
|
|
9
|
-
function
|
|
10
|
+
function slideInFromLeftTransition({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in-from-left' } = {}) {
|
|
10
11
|
return [
|
|
11
12
|
(0, cssr_1.c)(`&.${name}-transition-leave-active`, {
|
|
12
13
|
transition: `transform ${leaveDuration} ${cubicBezierEaseIn}`
|
|
@@ -28,4 +29,4 @@ function default_1({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in
|
|
|
28
29
|
})
|
|
29
30
|
];
|
|
30
31
|
}
|
|
31
|
-
exports.
|
|
32
|
+
exports.slideInFromLeftTransition = slideInFromLeftTransition;
|
|
@@ -4,5 +4,5 @@ interface SlideInFromRightTransitionOptions {
|
|
|
4
4
|
leaveDuration?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function slideInFromRightTransition({ duration, leaveDuration, name }?: SlideInFromRightTransitionOptions): CNode[];
|
|
8
8
|
export {};
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.slideInFromRightTransition = void 0;
|
|
6
7
|
const cssr_1 = require("../../_utils/cssr");
|
|
7
8
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
8
9
|
const { cubicBezierEaseIn, cubicBezierEaseOut } = _common_1.default;
|
|
9
|
-
function
|
|
10
|
+
function slideInFromRightTransition({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in-from-right' } = {}) {
|
|
10
11
|
return [
|
|
11
12
|
(0, cssr_1.c)(`&.${name}-transition-leave-active`, {
|
|
12
13
|
transition: `transform ${leaveDuration} ${cubicBezierEaseIn}`
|
|
@@ -28,4 +29,4 @@ function default_1({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in
|
|
|
28
29
|
})
|
|
29
30
|
];
|
|
30
31
|
}
|
|
31
|
-
exports.
|
|
32
|
+
exports.slideInFromRightTransition = slideInFromRightTransition;
|
|
@@ -4,5 +4,5 @@ interface SlideInFromTopTransitionOptions {
|
|
|
4
4
|
leaveDuration?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare function slideInFromTopTransition({ duration, leaveDuration, name }?: SlideInFromTopTransitionOptions): CNode[];
|
|
8
8
|
export {};
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.slideInFromTopTransition = void 0;
|
|
6
7
|
const cssr_1 = require("../../_utils/cssr");
|
|
7
8
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
8
9
|
const { cubicBezierEaseIn, cubicBezierEaseOut } = _common_1.default;
|
|
9
|
-
function
|
|
10
|
+
function slideInFromTopTransition({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in-from-top' } = {}) {
|
|
10
11
|
return [
|
|
11
12
|
(0, cssr_1.c)(`&.${name}-transition-leave-active`, {
|
|
12
13
|
transition: `transform ${leaveDuration} ${cubicBezierEaseIn}`
|
|
@@ -28,4 +29,4 @@ function default_1({ duration = '0.3s', leaveDuration = '0.2s', name = 'slide-in
|
|
|
28
29
|
})
|
|
29
30
|
];
|
|
30
31
|
}
|
|
31
|
-
exports.
|
|
32
|
+
exports.slideInFromTopTransition = slideInFromTopTransition;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
export declare function largerSize(size: 'tiny' | 'small' | 'medium' | 'large'): 'small' | 'medium' | 'large' | 'huge';
|
|
2
|
-
|
|
2
|
+
interface SmallerSizeMap {
|
|
3
|
+
tiny: 'mini';
|
|
4
|
+
small: 'tiny';
|
|
5
|
+
medium: 'small';
|
|
6
|
+
large: 'medium';
|
|
7
|
+
huge: 'large';
|
|
8
|
+
}
|
|
9
|
+
declare type SmallerSize<T extends keyof SmallerSizeMap> = SmallerSizeMap[T];
|
|
10
|
+
export declare function smallerSize<T extends keyof SmallerSizeMap>(size: T): SmallerSize<T>;
|
|
11
|
+
export {};
|
package/lib/_utils/naive/prop.js
CHANGED
|
@@ -16,6 +16,8 @@ function largerSize(size) {
|
|
|
16
16
|
exports.largerSize = largerSize;
|
|
17
17
|
function smallerSize(size) {
|
|
18
18
|
switch (size) {
|
|
19
|
+
case 'tiny':
|
|
20
|
+
return 'mini';
|
|
19
21
|
case 'small':
|
|
20
22
|
return 'tiny';
|
|
21
23
|
case 'medium':
|
|
@@ -25,5 +27,6 @@ function smallerSize(size) {
|
|
|
25
27
|
case 'huge':
|
|
26
28
|
return 'large';
|
|
27
29
|
}
|
|
30
|
+
throw Error(`${size} has no smaller size.`);
|
|
28
31
|
}
|
|
29
32
|
exports.smallerSize = smallerSize;
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -470,12 +470,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
470
470
|
borderRadius: string;
|
|
471
471
|
borderRadiusSmall: string;
|
|
472
472
|
fontSize: string;
|
|
473
|
+
fontSizeMini: string;
|
|
473
474
|
fontSizeTiny: string;
|
|
474
475
|
fontSizeSmall: string;
|
|
475
476
|
fontSizeMedium: string;
|
|
476
477
|
fontSizeLarge: string;
|
|
477
478
|
fontSizeHuge: string;
|
|
478
479
|
lineHeight: string;
|
|
480
|
+
heightMini: string;
|
|
479
481
|
heightTiny: string;
|
|
480
482
|
heightSmall: string;
|
|
481
483
|
heightMedium: string;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const fade_in_height_expand_cssr_1 =
|
|
9
|
+
const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-in-height-expand.cssr"); // vars:
|
|
16
10
|
// --n-bezier
|
|
17
11
|
// --n-color
|
|
18
12
|
// --n-close-color
|
|
@@ -51,7 +45,7 @@ exports.default = (0, cssr_1.cB)('alert', `
|
|
|
51
45
|
color: 'var(--n-title-text-color)'
|
|
52
46
|
}), (0, cssr_1.cE)('content', {
|
|
53
47
|
color: 'var(--n-content-text-color)'
|
|
54
|
-
})]), (0, fade_in_height_expand_cssr_1.
|
|
48
|
+
})]), (0, fade_in_height_expand_cssr_1.fadeInHeightExpandTransition)({
|
|
55
49
|
originalTransition: 'transform .3s var(--n-bezier)',
|
|
56
50
|
enterToProps: {
|
|
57
51
|
transform: 'scale(1)'
|
|
@@ -934,12 +934,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
934
934
|
borderRadius: string;
|
|
935
935
|
borderRadiusSmall: string;
|
|
936
936
|
fontSize: string;
|
|
937
|
+
fontSizeMini: string;
|
|
937
938
|
fontSizeTiny: string;
|
|
938
939
|
fontSizeSmall: string;
|
|
939
940
|
fontSizeMedium: string;
|
|
940
941
|
fontSizeLarge: string;
|
|
941
942
|
fontSizeHuge: string;
|
|
942
943
|
lineHeight: string;
|
|
944
|
+
heightMini: string;
|
|
943
945
|
heightTiny: string;
|
|
944
946
|
heightSmall: string;
|
|
945
947
|
heightMedium: string;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const fade_in_scale_up_cssr_1 =
|
|
9
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr"); // vars:
|
|
16
10
|
// --n-bezier
|
|
17
11
|
// --n-menu-box-shadow
|
|
18
12
|
|
|
@@ -25,6 +19,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('auto-complete', `
|
|
|
25
19
|
`), (0, cssr_1.cB)('auto-complete-menu', `
|
|
26
20
|
margin: 4px 0;
|
|
27
21
|
box-shadow: var(--n-menu-box-shadow);
|
|
28
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
22
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
29
23
|
originalTransition: 'background-color .3s var(--n-bezier)'
|
|
30
24
|
})])]);
|
|
@@ -208,12 +208,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
208
|
borderRadius: string;
|
|
209
209
|
borderRadiusSmall: string;
|
|
210
210
|
fontSize: string;
|
|
211
|
+
fontSizeMini: string;
|
|
211
212
|
fontSizeTiny: string;
|
|
212
213
|
fontSizeSmall: string;
|
|
213
214
|
fontSizeMedium: string;
|
|
214
215
|
fontSizeLarge: string;
|
|
215
216
|
fontSizeHuge: string;
|
|
216
217
|
lineHeight: string;
|
|
218
|
+
heightMini: string;
|
|
217
219
|
heightTiny: string;
|
|
218
220
|
heightSmall: string;
|
|
219
221
|
heightMedium: string;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const fade_in_scale_up_cssr_1 =
|
|
9
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr"); // vars:
|
|
16
10
|
// --n-bezier
|
|
17
11
|
// --n-border-radius
|
|
18
12
|
// --n-height
|
|
@@ -46,7 +40,7 @@ exports.default = (0, cssr_1.cB)('back-top', `
|
|
|
46
40
|
min-width: var(--n-width);
|
|
47
41
|
box-shadow: var(--n-box-shadow);
|
|
48
42
|
background-color: var(--n-color);
|
|
49
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
43
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)(), (0, cssr_1.cM)('transition-disabled', {
|
|
50
44
|
transition: 'none !important'
|
|
51
45
|
}), (0, cssr_1.cB)('base-icon', `
|
|
52
46
|
font-size: var(--n-icon-size);
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const fade_in_scale_up_cssr_1 =
|
|
9
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr"); // vars:
|
|
16
10
|
// --n-color
|
|
17
11
|
// --n-ripple-color
|
|
18
12
|
// --n-bezier
|
|
@@ -40,7 +34,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes badge-wave-spread', {
|
|
|
40
34
|
`, [(0, cssr_1.cM)('as-is', [(0, cssr_1.cB)('badge-sup', {
|
|
41
35
|
position: 'static',
|
|
42
36
|
transform: 'translateX(0)'
|
|
43
|
-
}, [(0, fade_in_scale_up_cssr_1.
|
|
37
|
+
}, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
44
38
|
transformOrigin: 'left bottom',
|
|
45
39
|
originalTransform: 'translateX(0)'
|
|
46
40
|
})])]), (0, cssr_1.cM)('dot', [(0, cssr_1.cB)('badge-sup', `
|
|
@@ -70,7 +64,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes badge-wave-spread', {
|
|
|
70
64
|
z-index: 1;
|
|
71
65
|
display: flex;
|
|
72
66
|
align-items: center;
|
|
73
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
67
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
74
68
|
transformOrigin: 'left bottom',
|
|
75
69
|
originalTransform: 'translateX(-50%)'
|
|
76
70
|
}), (0, cssr_1.cB)('base-wave', {
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const fade_in_width_expand_cssr_1 =
|
|
9
|
+
const fade_in_width_expand_cssr_1 = require("../../../_styles/transitions/fade-in-width-expand.cssr");
|
|
16
10
|
|
|
17
|
-
const icon_switch_cssr_1 =
|
|
11
|
+
const icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.cssr"); // vars:
|
|
18
12
|
// --n-bezier
|
|
19
13
|
// --n-bezier-ease-out
|
|
20
14
|
// --n-ripple-duration
|
|
@@ -163,10 +157,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('button', `
|
|
|
163
157
|
top: 50%;
|
|
164
158
|
transform: translateY(-50%);
|
|
165
159
|
display: flex;
|
|
166
|
-
`, [(0, icon_switch_cssr_1.
|
|
160
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)({
|
|
167
161
|
top: '50%',
|
|
168
162
|
originalTransform: 'translateY(-50%)'
|
|
169
|
-
})]), (0, fade_in_width_expand_cssr_1.
|
|
163
|
+
})]), (0, fade_in_width_expand_cssr_1.fadeInWidthExpandTransition)()]), (0, cssr_1.cE)('content', `
|
|
170
164
|
display: flex;
|
|
171
165
|
align-items: center;
|
|
172
166
|
flex-wrap: nowrap;
|
|
@@ -1515,12 +1515,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1515
1515
|
borderRadius: string;
|
|
1516
1516
|
borderRadiusSmall: string;
|
|
1517
1517
|
fontSize: string;
|
|
1518
|
+
fontSizeMini: string;
|
|
1518
1519
|
fontSizeTiny: string;
|
|
1519
1520
|
fontSizeSmall: string;
|
|
1520
1521
|
fontSizeMedium: string;
|
|
1521
1522
|
fontSizeLarge: string;
|
|
1522
1523
|
fontSizeHuge: string;
|
|
1523
1524
|
lineHeight: string;
|
|
1525
|
+
heightMini: string;
|
|
1524
1526
|
heightTiny: string;
|
|
1525
1527
|
heightSmall: string;
|
|
1526
1528
|
heightMedium: string;
|
|
@@ -65,15 +65,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
65
65
|
const oldYear = (0, date_fns_1.getYear)(monthTs);
|
|
66
66
|
const oldMonth = (0, date_fns_1.getMonth)(monthTs);
|
|
67
67
|
const newMonthTs = (0, date_fns_1.startOfMonth)(now).valueOf();
|
|
68
|
+
monthTsRef.value = newMonthTs;
|
|
68
69
|
const newYear = (0, date_fns_1.getYear)(newMonthTs);
|
|
69
70
|
const newMonth = (0, date_fns_1.getMonth)(newMonthTs);
|
|
70
71
|
if (oldYear !== newYear || oldMonth !== newMonth) {
|
|
71
72
|
(_a = props.onPanelChange) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
72
73
|
year: newYear,
|
|
73
|
-
month:
|
|
74
|
+
month: newMonth + 1
|
|
74
75
|
});
|
|
75
76
|
}
|
|
76
|
-
monthTsRef.value = newMonthTs;
|
|
77
77
|
}
|
|
78
78
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
79
79
|
const { common: { cubicBezierEaseInOut }, self: { borderColor, borderColorModal, borderColorPopover, borderRadius, titleFontSize, textColor, titleFontWeight, titleTextColor, dayTextColor, fontSize, lineHeight, dateColorCurrent, dateTextColorCurrent, cellColorHover, cellColor, cellColorModal, barColor, cellColorPopover, cellColorHoverModal, cellColorHoverPopover } } = themeRef.value;
|
package/lib/card/src/Card.d.ts
CHANGED
|
@@ -366,12 +366,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
366
366
|
borderRadius: string;
|
|
367
367
|
borderRadiusSmall: string;
|
|
368
368
|
fontSize: string;
|
|
369
|
+
fontSizeMini: string;
|
|
369
370
|
fontSizeTiny: string;
|
|
370
371
|
fontSizeSmall: string;
|
|
371
372
|
fontSizeMedium: string;
|
|
372
373
|
fontSizeLarge: string;
|
|
373
374
|
fontSizeHuge: string;
|
|
374
375
|
lineHeight: string;
|
|
376
|
+
heightMini: string;
|
|
375
377
|
heightTiny: string;
|
|
376
378
|
heightSmall: string;
|
|
377
379
|
heightMedium: string;
|