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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naive-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@vicons/ionicons5": "^0.12.0",
|
|
57
57
|
"@vitejs/plugin-vue": "^2.3.1",
|
|
58
58
|
"@vue/compiler-sfc": "^3.2.31",
|
|
59
|
-
"@vue/eslint-config-standard": "^
|
|
59
|
+
"@vue/eslint-config-standard": "^7.0.0",
|
|
60
60
|
"@vue/eslint-config-typescript": "^10.0.0",
|
|
61
61
|
"@vue/server-renderer": "^3.2.31",
|
|
62
62
|
"@vue/test-utils": "2.0.0-rc.16",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"codesandbox": "^2.2.3",
|
|
66
66
|
"cross-env": "^7.0.3",
|
|
67
67
|
"cssnano": "^5.1.7",
|
|
68
|
-
"esbuild": "0.14.
|
|
68
|
+
"esbuild": "0.14.39",
|
|
69
69
|
"eslint": "^8.13.0",
|
|
70
70
|
"eslint-config-prettier": "^8.5.0",
|
|
71
71
|
"eslint-config-standard": "^17.0.0",
|
|
@@ -76,11 +76,10 @@
|
|
|
76
76
|
"eslint-plugin-node": "^11.1.0",
|
|
77
77
|
"eslint-plugin-promise": "^6.0.0",
|
|
78
78
|
"eslint-plugin-vue": "^8.6.0",
|
|
79
|
-
"esno": "^0.14.1",
|
|
80
79
|
"express": "^4.17.3",
|
|
81
80
|
"fast-glob": "^3.2.11",
|
|
82
81
|
"fs-extra": "^10.0.1",
|
|
83
|
-
"husky": "^
|
|
82
|
+
"husky": "^8.0.1",
|
|
84
83
|
"inquirer": "^8.2.2",
|
|
85
84
|
"jest": "^28.0.3",
|
|
86
85
|
"jest-canvas-mock": "^2.3.1",
|
|
@@ -90,24 +89,25 @@
|
|
|
90
89
|
"marked": "^4.0.13",
|
|
91
90
|
"prettier": "^2.6.2",
|
|
92
91
|
"rimraf": "^3.0.2",
|
|
93
|
-
"superagent": "^7.1.
|
|
92
|
+
"superagent": "^7.1.3",
|
|
94
93
|
"ts-jest": "^28.0.1",
|
|
95
94
|
"typescript": "^4.6.3",
|
|
95
|
+
"vfonts": "^0.1.0",
|
|
96
96
|
"vite": "^2.9.5",
|
|
97
97
|
"vue": "^3.2.33",
|
|
98
98
|
"vue-router": "^4.0.14",
|
|
99
|
-
"vue-tsc": "0.34.
|
|
99
|
+
"vue-tsc": "0.34.15"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"vue": "^3.0.0"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@css-render/plugin-bem": "^0.15.
|
|
106
|
-
"@css-render/vue3-ssr": "^0.15.
|
|
105
|
+
"@css-render/plugin-bem": "^0.15.10",
|
|
106
|
+
"@css-render/vue3-ssr": "^0.15.10",
|
|
107
107
|
"@types/lodash": "^4.14.181",
|
|
108
108
|
"@types/lodash-es": "^4.17.6",
|
|
109
109
|
"async-validator": "^4.0.7",
|
|
110
|
-
"css-render": "^0.15.
|
|
110
|
+
"css-render": "^0.15.10",
|
|
111
111
|
"date-fns": "^2.28.0",
|
|
112
112
|
"date-fns-tz": "^1.3.3",
|
|
113
113
|
"evtd": "^0.2.3",
|
|
@@ -117,9 +117,8 @@
|
|
|
117
117
|
"seemly": "^0.3.3",
|
|
118
118
|
"treemate": "^0.3.11",
|
|
119
119
|
"vdirs": "^0.1.8",
|
|
120
|
-
"vfonts": "^0.0.3",
|
|
121
120
|
"vooks": "^0.2.12",
|
|
122
|
-
"vueuc": "^0.4.
|
|
121
|
+
"vueuc": "^0.4.33"
|
|
123
122
|
},
|
|
124
123
|
"sideEffects": false,
|
|
125
124
|
"homepage": "https://www.naiveui.com",
|
|
@@ -152,10 +151,11 @@
|
|
|
152
151
|
"format:code": "prettier --write \"(src|demo)/**/*.(vue|js)\"",
|
|
153
152
|
"format:md": "prettier --write --parser markdown --prose-wrap never \"(src|demo)/**/*.md\"",
|
|
154
153
|
"test": "cross-env NODE_ENV=test jest --collectCoverage=false",
|
|
154
|
+
"test:update": "cross-env NODE_ENV=test jest -u --collectCoverage=false",
|
|
155
155
|
"test:cov": "cross-env NODE_ENV=test NODE_OPTIONS=--unhandled-rejections=warn jest",
|
|
156
156
|
"test:watch": "cross-env NODE_ENV=test jest ---watch --verbose --coverage",
|
|
157
157
|
"gen-version": "node scripts/gen-version",
|
|
158
|
-
"gen-volar-dts": "
|
|
158
|
+
"gen-volar-dts": "esbuild scripts/gen-component-declaration.js --bundle --platform=node | node",
|
|
159
159
|
"build:site:ts": "./scripts/pre-build-site/pre-build-site.sh && cross-env TUSIMPLE=true NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
|
|
160
160
|
"transpile-docs": "node scripts/md-to-vue tree-select",
|
|
161
161
|
"release:site": "cross-env TUSIMPLE=true pnpm run build:site && node build-doc/generate-deploy-sh.js && sudo bash build-doc/deploy-doc.sh"
|
package/volar.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Auto generated component declarations
|
|
2
2
|
declare module 'vue' {
|
|
3
3
|
export interface GlobalComponents {
|
|
4
|
+
NA: typeof import('naive-ui')['NA']
|
|
4
5
|
NAffix: typeof import('naive-ui')['NAffix']
|
|
5
6
|
NAlert: typeof import('naive-ui')['NAlert']
|
|
6
7
|
NAnchor: typeof import('naive-ui')['NAnchor']
|
|
@@ -10,12 +11,12 @@ declare module 'vue' {
|
|
|
10
11
|
NAvatarGroup: typeof import('naive-ui')['NAvatarGroup']
|
|
11
12
|
NBackTop: typeof import('naive-ui')['NBackTop']
|
|
12
13
|
NBadge: typeof import('naive-ui')['NBadge']
|
|
14
|
+
NBlockquote: typeof import('naive-ui')['NBlockquote']
|
|
13
15
|
NBreadcrumb: typeof import('naive-ui')['NBreadcrumb']
|
|
14
16
|
NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem']
|
|
15
17
|
NButton: typeof import('naive-ui')['NButton']
|
|
16
18
|
NButtonGroup: typeof import('naive-ui')['NButtonGroup']
|
|
17
19
|
NCalendar: typeof import('naive-ui')['NCalendar']
|
|
18
|
-
NColorPicker: typeof import('naive-ui')['NColorPicker']
|
|
19
20
|
NCard: typeof import('naive-ui')['NCard']
|
|
20
21
|
NCarousel: typeof import('naive-ui')['NCarousel']
|
|
21
22
|
NCarouselItem: typeof import('naive-ui')['NCarouselItem']
|
|
@@ -23,12 +24,13 @@ declare module 'vue' {
|
|
|
23
24
|
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
|
24
25
|
NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup']
|
|
25
26
|
NCode: typeof import('naive-ui')['NCode']
|
|
27
|
+
NCol: typeof import('naive-ui')['NCol']
|
|
26
28
|
NCollapse: typeof import('naive-ui')['NCollapse']
|
|
27
29
|
NCollapseItem: typeof import('naive-ui')['NCollapseItem']
|
|
28
30
|
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
|
31
|
+
NColorPicker: typeof import('naive-ui')['NColorPicker']
|
|
29
32
|
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
|
30
33
|
NCountdown: typeof import('naive-ui')['NCountdown']
|
|
31
|
-
NNumberAnimation: typeof import('naive-ui')['NNumberAnimation']
|
|
32
34
|
NDataTable: typeof import('naive-ui')['NDataTable']
|
|
33
35
|
NDatePicker: typeof import('naive-ui')['NDatePicker']
|
|
34
36
|
NDescriptions: typeof import('naive-ui')['NDescriptions']
|
|
@@ -51,11 +53,18 @@ declare module 'vue' {
|
|
|
51
53
|
NFormItemGi: typeof import('naive-ui')['NFormItemGi']
|
|
52
54
|
NFormItemGridItem: typeof import('naive-ui')['NFormItemGridItem']
|
|
53
55
|
NFormItemRow: typeof import('naive-ui')['NFormItemRow']
|
|
56
|
+
NGi: typeof import('naive-ui')['NGi']
|
|
54
57
|
NGlobalStyle: typeof import('naive-ui')['NGlobalStyle']
|
|
55
58
|
NGradientText: typeof import('naive-ui')['NGradientText']
|
|
56
|
-
NGi: typeof import('naive-ui')['NGi']
|
|
57
59
|
NGrid: typeof import('naive-ui')['NGrid']
|
|
58
60
|
NGridItem: typeof import('naive-ui')['NGridItem']
|
|
61
|
+
NH1: typeof import('naive-ui')['NH1']
|
|
62
|
+
NH2: typeof import('naive-ui')['NH2']
|
|
63
|
+
NH3: typeof import('naive-ui')['NH3']
|
|
64
|
+
NH4: typeof import('naive-ui')['NH4']
|
|
65
|
+
NH5: typeof import('naive-ui')['NH5']
|
|
66
|
+
NH6: typeof import('naive-ui')['NH6']
|
|
67
|
+
NHr: typeof import('naive-ui')['NHr']
|
|
59
68
|
NIcon: typeof import('naive-ui')['NIcon']
|
|
60
69
|
NIconWrapper: typeof import('naive-ui')['NIconWrapper']
|
|
61
70
|
NImage: typeof import('naive-ui')['NImage']
|
|
@@ -69,17 +78,19 @@ declare module 'vue' {
|
|
|
69
78
|
NLayoutFooter: typeof import('naive-ui')['NLayoutFooter']
|
|
70
79
|
NLayoutHeader: typeof import('naive-ui')['NLayoutHeader']
|
|
71
80
|
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
|
72
|
-
|
|
73
|
-
NRow: typeof import('naive-ui')['NRow']
|
|
81
|
+
NLi: typeof import('naive-ui')['NLi']
|
|
74
82
|
NList: typeof import('naive-ui')['NList']
|
|
75
83
|
NListItem: typeof import('naive-ui')['NListItem']
|
|
76
84
|
NLoadingBarProvider: typeof import('naive-ui')['NLoadingBarProvider']
|
|
77
85
|
NLog: typeof import('naive-ui')['NLog']
|
|
78
|
-
NMenu: typeof import('naive-ui')['NMenu']
|
|
79
86
|
NMention: typeof import('naive-ui')['NMention']
|
|
87
|
+
NMenu: typeof import('naive-ui')['NMenu']
|
|
80
88
|
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
|
|
81
89
|
NModal: typeof import('naive-ui')['NModal']
|
|
82
90
|
NNotificationProvider: typeof import('naive-ui')['NNotificationProvider']
|
|
91
|
+
NNumberAnimation: typeof import('naive-ui')['NNumberAnimation']
|
|
92
|
+
NOl: typeof import('naive-ui')['NOl']
|
|
93
|
+
NP: typeof import('naive-ui')['NP']
|
|
83
94
|
NPageHeader: typeof import('naive-ui')['NPageHeader']
|
|
84
95
|
NPagination: typeof import('naive-ui')['NPagination']
|
|
85
96
|
NPopconfirm: typeof import('naive-ui')['NPopconfirm']
|
|
@@ -91,6 +102,7 @@ declare module 'vue' {
|
|
|
91
102
|
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
|
|
92
103
|
NRate: typeof import('naive-ui')['NRate']
|
|
93
104
|
NResult: typeof import('naive-ui')['NResult']
|
|
105
|
+
NRow: typeof import('naive-ui')['NRow']
|
|
94
106
|
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
|
95
107
|
NSelect: typeof import('naive-ui')['NSelect']
|
|
96
108
|
NSkeleton: typeof import('naive-ui')['NSkeleton']
|
|
@@ -101,38 +113,26 @@ declare module 'vue' {
|
|
|
101
113
|
NStep: typeof import('naive-ui')['NStep']
|
|
102
114
|
NSteps: typeof import('naive-ui')['NSteps']
|
|
103
115
|
NSwitch: typeof import('naive-ui')['NSwitch']
|
|
116
|
+
NTab: typeof import('naive-ui')['NTab']
|
|
117
|
+
NTabPane: typeof import('naive-ui')['NTabPane']
|
|
104
118
|
NTable: typeof import('naive-ui')['NTable']
|
|
119
|
+
NTabs: typeof import('naive-ui')['NTabs']
|
|
120
|
+
NTag: typeof import('naive-ui')['NTag']
|
|
105
121
|
NTbody: typeof import('naive-ui')['NTbody']
|
|
106
122
|
NTd: typeof import('naive-ui')['NTd']
|
|
123
|
+
NText: typeof import('naive-ui')['NText']
|
|
107
124
|
NTh: typeof import('naive-ui')['NTh']
|
|
108
125
|
NThead: typeof import('naive-ui')['NThead']
|
|
109
|
-
NTr: typeof import('naive-ui')['NTr']
|
|
110
|
-
NTab: typeof import('naive-ui')['NTab']
|
|
111
|
-
NTabPane: typeof import('naive-ui')['NTabPane']
|
|
112
|
-
NTabs: typeof import('naive-ui')['NTabs']
|
|
113
|
-
NTag: typeof import('naive-ui')['NTag']
|
|
114
126
|
NThing: typeof import('naive-ui')['NThing']
|
|
115
127
|
NTime: typeof import('naive-ui')['NTime']
|
|
116
128
|
NTimePicker: typeof import('naive-ui')['NTimePicker']
|
|
117
129
|
NTimeline: typeof import('naive-ui')['NTimeline']
|
|
118
130
|
NTimelineItem: typeof import('naive-ui')['NTimelineItem']
|
|
119
131
|
NTooltip: typeof import('naive-ui')['NTooltip']
|
|
132
|
+
NTr: typeof import('naive-ui')['NTr']
|
|
120
133
|
NTransfer: typeof import('naive-ui')['NTransfer']
|
|
121
134
|
NTree: typeof import('naive-ui')['NTree']
|
|
122
135
|
NTreeSelect: typeof import('naive-ui')['NTreeSelect']
|
|
123
|
-
NA: typeof import('naive-ui')['NA']
|
|
124
|
-
NBlockquote: typeof import('naive-ui')['NBlockquote']
|
|
125
|
-
NH1: typeof import('naive-ui')['NH1']
|
|
126
|
-
NH2: typeof import('naive-ui')['NH2']
|
|
127
|
-
NH3: typeof import('naive-ui')['NH3']
|
|
128
|
-
NH4: typeof import('naive-ui')['NH4']
|
|
129
|
-
NH5: typeof import('naive-ui')['NH5']
|
|
130
|
-
NH6: typeof import('naive-ui')['NH6']
|
|
131
|
-
NHr: typeof import('naive-ui')['NHr']
|
|
132
|
-
NLi: typeof import('naive-ui')['NLi']
|
|
133
|
-
NOl: typeof import('naive-ui')['NOl']
|
|
134
|
-
NP: typeof import('naive-ui')['NP']
|
|
135
|
-
NText: typeof import('naive-ui')['NText']
|
|
136
136
|
NUl: typeof import('naive-ui')['NUl']
|
|
137
137
|
NUpload: typeof import('naive-ui')['NUpload']
|
|
138
138
|
NUploadDragger: typeof import('naive-ui')['NUploadDragger']
|
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "naive-ui",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.29.0",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
@@ -1295,6 +1295,10 @@
|
|
|
1295
1295
|
"name": "complete",
|
|
1296
1296
|
"description": "-"
|
|
1297
1297
|
},
|
|
1298
|
+
{
|
|
1299
|
+
"name": "confirm",
|
|
1300
|
+
"description": "-"
|
|
1301
|
+
},
|
|
1298
1302
|
{
|
|
1299
1303
|
"name": "update-show",
|
|
1300
1304
|
"description": "-"
|
|
@@ -2502,6 +2506,15 @@
|
|
|
2502
2506
|
"kind": "expression"
|
|
2503
2507
|
}
|
|
2504
2508
|
},
|
|
2509
|
+
{
|
|
2510
|
+
"name": "preflight-style-disabled",
|
|
2511
|
+
"default": "-",
|
|
2512
|
+
"description": "-",
|
|
2513
|
+
"value": {
|
|
2514
|
+
"type": "boolean",
|
|
2515
|
+
"kind": "expression"
|
|
2516
|
+
}
|
|
2517
|
+
},
|
|
2505
2518
|
{
|
|
2506
2519
|
"name": "inline-theme-disabled",
|
|
2507
2520
|
"default": "-",
|
|
@@ -8843,6 +8856,15 @@
|
|
|
8843
8856
|
"kind": "expression"
|
|
8844
8857
|
}
|
|
8845
8858
|
},
|
|
8859
|
+
{
|
|
8860
|
+
"name": "size",
|
|
8861
|
+
"default": "-",
|
|
8862
|
+
"description": "-",
|
|
8863
|
+
"value": {
|
|
8864
|
+
"type": "string",
|
|
8865
|
+
"kind": "expression"
|
|
8866
|
+
}
|
|
8867
|
+
},
|
|
8846
8868
|
{
|
|
8847
8869
|
"name": "disabled",
|
|
8848
8870
|
"default": "-",
|