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
|
@@ -1145,7 +1145,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1145
1145
|
focused: import("vue").Ref<boolean>;
|
|
1146
1146
|
menuPadding: import("vue").ComputedRef<string>;
|
|
1147
1147
|
mergedPlaceholder: import("vue").ComputedRef<string>;
|
|
1148
|
-
mergedExpandedKeys: import("vue").ComputedRef<Key[]>;
|
|
1148
|
+
mergedExpandedKeys: import("vue").ComputedRef<Key[] | undefined>;
|
|
1149
1149
|
treeSelectedKeys: import("vue").ComputedRef<Key[]>;
|
|
1150
1150
|
treeCheckedKeys: import("vue").ComputedRef<Key[]>;
|
|
1151
1151
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -1264,12 +1264,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1264
1264
|
borderRadius: string;
|
|
1265
1265
|
borderRadiusSmall: string;
|
|
1266
1266
|
fontSize: string;
|
|
1267
|
+
fontSizeMini: string;
|
|
1267
1268
|
fontSizeTiny: string;
|
|
1268
1269
|
fontSizeSmall: string;
|
|
1269
1270
|
fontSizeMedium: string;
|
|
1270
1271
|
fontSizeLarge: string;
|
|
1271
1272
|
fontSizeHuge: string;
|
|
1272
1273
|
lineHeight: string;
|
|
1274
|
+
heightMini: string;
|
|
1273
1275
|
heightTiny: string;
|
|
1274
1276
|
heightSmall: string;
|
|
1275
1277
|
heightMedium: string;
|
|
@@ -104,7 +104,7 @@ export default defineComponent({
|
|
|
104
104
|
// The same logic as tree, now it's not that complex so I don't extract a
|
|
105
105
|
// function to reuse it.
|
|
106
106
|
const uncontrolledExpandedKeysRef = ref(props.defaultExpandAll
|
|
107
|
-
?
|
|
107
|
+
? undefined // leave it, n-tree will handle it
|
|
108
108
|
: props.defaultExpandedKeys || props.expandedKeys);
|
|
109
109
|
const controlledExpandedKeysRef = toRef(props, 'expandedKeys');
|
|
110
110
|
const mergedExpandedKeysRef = useMergedState(controlledExpandedKeysRef, uncontrolledExpandedKeysRef);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
1
|
+
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
2
2
|
import { c, cB, cE } from '../../../_utils/cssr'; // vars:
|
|
3
3
|
// --n-bezier
|
|
4
4
|
// --n-menu-height
|
|
@@ -1731,12 +1731,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1731
1731
|
borderRadius: string;
|
|
1732
1732
|
borderRadiusSmall: string;
|
|
1733
1733
|
fontSize: string;
|
|
1734
|
+
fontSizeMini: string;
|
|
1734
1735
|
fontSizeTiny: string;
|
|
1735
1736
|
fontSizeSmall: string;
|
|
1736
1737
|
fontSizeMedium: string;
|
|
1737
1738
|
fontSizeLarge: string;
|
|
1738
1739
|
fontSizeHuge: string;
|
|
1739
1740
|
lineHeight: string;
|
|
1741
|
+
heightMini: string;
|
|
1740
1742
|
heightTiny: string;
|
|
1741
1743
|
heightSmall: string;
|
|
1742
1744
|
heightMedium: string;
|
package/es/upload/src/Upload.js
CHANGED
|
@@ -15,7 +15,7 @@ import { warn, call, throwError } from '../../_utils';
|
|
|
15
15
|
import { uploadLight } from '../styles';
|
|
16
16
|
import { uploadDraggerKey } from './UploadDragger';
|
|
17
17
|
import { uploadInjectionKey } from './interface';
|
|
18
|
-
import { createImageDataUrl, createSettledFileInfo } from './utils';
|
|
18
|
+
import { createImageDataUrl, createSettledFileInfo, matchType } from './utils';
|
|
19
19
|
import NUploadTrigger from './UploadTrigger';
|
|
20
20
|
import NUploadFileList from './UploadFileList';
|
|
21
21
|
import style from './styles/index.cssr';
|
|
@@ -239,7 +239,11 @@ export default defineComponent({
|
|
|
239
239
|
function handleFileInputChange(e) {
|
|
240
240
|
const target = e.target;
|
|
241
241
|
handleFileAddition(target.files
|
|
242
|
-
? Array.from(target.files).map((file) => ({
|
|
242
|
+
? Array.from(target.files).map((file) => ({
|
|
243
|
+
file,
|
|
244
|
+
entry: null,
|
|
245
|
+
source: 'input'
|
|
246
|
+
}))
|
|
243
247
|
: null, e);
|
|
244
248
|
// May have bug! set to null?
|
|
245
249
|
target.value = '';
|
|
@@ -260,7 +264,15 @@ export default defineComponent({
|
|
|
260
264
|
fileAndEntries = mergedMultipleRef.value
|
|
261
265
|
? fileAndEntries
|
|
262
266
|
: [fileAndEntries[0]];
|
|
263
|
-
const { max } = props;
|
|
267
|
+
const { max, accept } = props;
|
|
268
|
+
fileAndEntries = fileAndEntries.filter(({ file, source }) => {
|
|
269
|
+
if (source === 'dnd' && (accept === null || accept === void 0 ? void 0 : accept.trim())) {
|
|
270
|
+
return matchType(file.name, file.type, accept);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
return true;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
264
276
|
if (max) {
|
|
265
277
|
fileAndEntries = fileAndEntries.slice(0, max - mergedFileListRef.value.length);
|
|
266
278
|
}
|
|
@@ -436,6 +448,7 @@ export default defineComponent({
|
|
|
436
448
|
maxReachedRef,
|
|
437
449
|
fileListStyleRef: toRef(props, 'fileListStyle'),
|
|
438
450
|
abstractRef: toRef(props, 'abstract'),
|
|
451
|
+
acceptRef: toRef(props, 'accept'),
|
|
439
452
|
cssVarsRef: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
440
453
|
themeClassRef: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
441
454
|
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
|
|
@@ -104,12 +104,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
borderRadius: string;
|
|
105
105
|
borderRadiusSmall: string;
|
|
106
106
|
fontSize: string;
|
|
107
|
+
fontSizeMini: string;
|
|
107
108
|
fontSizeTiny: string;
|
|
108
109
|
fontSizeSmall: string;
|
|
109
110
|
fontSizeMedium: string;
|
|
110
111
|
fontSizeLarge: string;
|
|
111
112
|
fontSizeHuge: string;
|
|
112
113
|
lineHeight: string;
|
|
114
|
+
heightMini: string;
|
|
113
115
|
heightTiny: string;
|
|
114
116
|
heightSmall: string;
|
|
115
117
|
heightMedium: string;
|
|
@@ -100,12 +100,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
100
|
borderRadius: string;
|
|
101
101
|
borderRadiusSmall: string;
|
|
102
102
|
fontSize: string;
|
|
103
|
+
fontSizeMini: string;
|
|
103
104
|
fontSizeTiny: string;
|
|
104
105
|
fontSizeSmall: string;
|
|
105
106
|
fontSizeMedium: string;
|
|
106
107
|
fontSizeLarge: string;
|
|
107
108
|
fontSizeHuge: string;
|
|
108
109
|
lineHeight: string;
|
|
110
|
+
heightMini: string;
|
|
109
111
|
heightTiny: string;
|
|
110
112
|
heightSmall: string;
|
|
111
113
|
heightMedium: string;
|
|
@@ -71,6 +71,7 @@ export interface UploadInjection {
|
|
|
71
71
|
cssVarsRef: undefined | Ref<CSSProperties>;
|
|
72
72
|
themeClassRef: undefined | Ref<string>;
|
|
73
73
|
mergedDirectoryDndRef: Ref<boolean>;
|
|
74
|
+
acceptRef: Ref<string | undefined>;
|
|
74
75
|
onRender: undefined | (() => void);
|
|
75
76
|
submit: (fileId?: string) => void;
|
|
76
77
|
getFileThumbnailUrl: (file: SettledFileInfo) => Promise<string>;
|
|
@@ -116,4 +117,5 @@ export declare type OnError = ({ file, event }: {
|
|
|
116
117
|
export interface FileAndEntry {
|
|
117
118
|
file: File;
|
|
118
119
|
entry: FileSystemFileEntry | null;
|
|
120
|
+
source: 'dnd' | 'input';
|
|
119
121
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c, cM, cB, cE } from '../../../_utils/cssr';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-in-height-expand.cssr';
|
|
3
|
+
import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
|
|
4
4
|
export default c([cB('upload', 'width: 100%;', [cM('dragger-inside', [cE('trigger', `
|
|
5
5
|
display: block;
|
|
6
6
|
`)]), cM('drag-over', [cB('upload-dragger', `
|
|
@@ -63,7 +63,7 @@ export default c([cB('upload', 'width: 100%;', [cM('dragger-inside', [cE('trigge
|
|
|
63
63
|
padding: 0px 12px 0 6px;
|
|
64
64
|
transition: background-color .3s var(--n-bezier);
|
|
65
65
|
border-radius: var(--n-border-radius);
|
|
66
|
-
`, [
|
|
66
|
+
`, [fadeInHeightExpandTransition(), cB('progress', [fadeInHeightExpandTransition({
|
|
67
67
|
foldPadding: true
|
|
68
68
|
})]), c('&:hover', `
|
|
69
69
|
background-color: var(--n-item-color-hover);
|
|
@@ -184,7 +184,7 @@ export default c([cB('upload', 'width: 100%;', [cM('dragger-inside', [cE('trigge
|
|
|
184
184
|
opacity: 0;
|
|
185
185
|
`, [cB('button', [c('&:not(:last-child)', {
|
|
186
186
|
marginRight: '4px'
|
|
187
|
-
}), cB('base-icon', [c('svg', [
|
|
187
|
+
}), cB('base-icon', [c('svg', [iconSwitchTransition()])])]), cM('image-type', `
|
|
188
188
|
position: relative;
|
|
189
189
|
max-width: 80px;
|
|
190
190
|
width: auto;
|
package/es/upload/src/utils.d.ts
CHANGED
|
@@ -10,3 +10,9 @@ export declare function isFileSystemDirectoryEntry(item: FileSystemEntry | FileS
|
|
|
10
10
|
export declare function isFileSystemFileEntry(item: FileSystemEntry | FileSystemFileEntry | FileSystemDirectoryEntry): item is FileSystemFileEntry;
|
|
11
11
|
export declare function getFilesFromEntries(entries: readonly FileSystemEntry[] | Array<FileSystemEntry | null>, directory: boolean): Promise<FileAndEntry[]>;
|
|
12
12
|
export declare function createSettledFileInfo(fileInfo: FileInfo): SettledFileInfo;
|
|
13
|
+
/**
|
|
14
|
+
* This is a rather simple version. I may fix it later to make it more accurate.
|
|
15
|
+
* I've looked at https://github.com/broofa/mime, however it doesn't has a esm
|
|
16
|
+
* version, so I can't simply use it.
|
|
17
|
+
*/
|
|
18
|
+
export declare function matchType(name: string, mimeType: string, accept: string): boolean;
|
package/es/upload/src/utils.js
CHANGED
|
@@ -99,7 +99,7 @@ export function getFilesFromEntries(entries, directory) {
|
|
|
99
99
|
else if (isFileSystemFileEntry(entry)) {
|
|
100
100
|
lock();
|
|
101
101
|
entry.file((file) => {
|
|
102
|
-
fileAndEntries.push({ file, entry });
|
|
102
|
+
fileAndEntries.push({ file, entry, source: 'dnd' });
|
|
103
103
|
unlock();
|
|
104
104
|
}, () => {
|
|
105
105
|
unlock();
|
|
@@ -130,3 +130,40 @@ export function createSettledFileInfo(fileInfo) {
|
|
|
130
130
|
batchId: batchId !== null && batchId !== void 0 ? batchId : null
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* This is a rather simple version. I may fix it later to make it more accurate.
|
|
135
|
+
* I've looked at https://github.com/broofa/mime, however it doesn't has a esm
|
|
136
|
+
* version, so I can't simply use it.
|
|
137
|
+
*/
|
|
138
|
+
export function matchType(name, mimeType, accept) {
|
|
139
|
+
name = name.toLowerCase();
|
|
140
|
+
mimeType = mimeType.toLocaleLowerCase();
|
|
141
|
+
accept = accept.toLocaleLowerCase();
|
|
142
|
+
const acceptAtoms = accept
|
|
143
|
+
.split(',')
|
|
144
|
+
.map((acceptAtom) => acceptAtom.trim())
|
|
145
|
+
.filter(Boolean);
|
|
146
|
+
return acceptAtoms.some((acceptAtom) => {
|
|
147
|
+
if (acceptAtom.startsWith('.')) {
|
|
148
|
+
// suffix
|
|
149
|
+
if (name.endsWith(acceptAtom))
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
else if (acceptAtom.includes('/')) {
|
|
153
|
+
// mime type
|
|
154
|
+
const [type, subtype] = mimeType.split('/');
|
|
155
|
+
const [acceptType, acceptSubtype] = acceptAtom.split('/');
|
|
156
|
+
if (acceptType === '*' || (type && acceptType && acceptType === type)) {
|
|
157
|
+
if (acceptSubtype === '*' ||
|
|
158
|
+
(subtype && acceptSubtype && acceptSubtype === subtype)) {
|
|
159
|
+
return true;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
// invalid type
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
return false;
|
|
168
|
+
});
|
|
169
|
+
}
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.
|
|
1
|
+
declare const _default: "2.29.0";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.
|
|
1
|
+
export default '2.29.0';
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const vue_1 = require("vue");
|
|
7
|
+
const _utils_1 = require("../../../_utils");
|
|
7
8
|
const _mixins_1 = require("../../../_mixins");
|
|
8
9
|
const icons_1 = require("../../icons");
|
|
9
10
|
const icon_1 = __importDefault(require("../../icon"));
|
|
@@ -33,9 +34,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
33
34
|
(0, vue_1.h)(icon_switch_transition_1.default, null, {
|
|
34
35
|
default: () => {
|
|
35
36
|
var _a, _b;
|
|
36
|
-
return this.show ? ((0, vue_1.h)(
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
return this.show ? ((0, vue_1.h)("div", { key: "dismiss", class: `${clsPrefix}-base-clear__clear`, onClick: this.onClear, onMousedown: this.handleMouseDown, "data-clear": true }, (0, _utils_1.resolveSlot)(this.$slots.icon, () => [
|
|
38
|
+
(0, vue_1.h)(icon_1.default, { clsPrefix: clsPrefix }, {
|
|
39
|
+
default: () => (0, vue_1.h)(icons_1.ClearIcon, null)
|
|
40
|
+
})
|
|
41
|
+
]))) : ((0, vue_1.h)("div", { key: "icon", class: `${clsPrefix}-base-clear__placeholder` }, (_b = (_a = this.$slots).placeholder) === null || _b === void 0 ? void 0 : _b.call(_a)));
|
|
39
42
|
}
|
|
40
43
|
})));
|
|
41
44
|
}
|
|
@@ -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 icon_switch_cssr_1 =
|
|
9
|
+
const icon_switch_cssr_1 = require("../../../../_styles/transitions/icon-switch.cssr"); // vars:
|
|
16
10
|
// --n-bezier
|
|
17
11
|
// --n-clear-color
|
|
18
12
|
// --n-clear-size
|
|
@@ -27,9 +21,12 @@ exports.default = (0, cssr_1.cB)('base-clear', `
|
|
|
27
21
|
position: relative;
|
|
28
22
|
`, [(0, cssr_1.c)('>', [(0, cssr_1.cE)('clear', `
|
|
29
23
|
font-size: var(--n-clear-size);
|
|
24
|
+
height: 1em;
|
|
25
|
+
width: 1em;
|
|
30
26
|
cursor: pointer;
|
|
31
27
|
color: var(--n-clear-color);
|
|
32
28
|
transition: color .3s var(--n-bezier);
|
|
29
|
+
display: flex;
|
|
33
30
|
`, [(0, cssr_1.c)('&:hover', `
|
|
34
31
|
color: var(--n-clear-color-hover)!important;
|
|
35
32
|
`), (0, cssr_1.c)('&:active', `
|
|
@@ -41,7 +38,7 @@ exports.default = (0, cssr_1.cB)('base-clear', `
|
|
|
41
38
|
left: 50%;
|
|
42
39
|
top: 50%;
|
|
43
40
|
transform: translateX(-50%) translateY(-50%);
|
|
44
|
-
`, [(0, icon_switch_cssr_1.
|
|
41
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)({
|
|
45
42
|
originalTransform: 'translateX(-50%) translateY(-50%)',
|
|
46
43
|
left: '50%',
|
|
47
44
|
top: '50%'
|
|
@@ -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 icon_switch_cssr_1 =
|
|
9
|
+
const icon_switch_cssr_1 = require("../../../../_styles/transitions/icon-switch.cssr");
|
|
16
10
|
|
|
17
11
|
exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes loading-container-rotate', `
|
|
18
12
|
to {
|
|
@@ -87,7 +81,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes loading-container-rot
|
|
|
87
81
|
position: absolute;
|
|
88
82
|
width: 100%;
|
|
89
83
|
height: 100%;
|
|
90
|
-
`, [(0, icon_switch_cssr_1.
|
|
84
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()]), (0, cssr_1.cE)('container', `
|
|
91
85
|
display: inline-flex;
|
|
92
86
|
position: relative;
|
|
93
87
|
direction: ltr;
|
|
@@ -146,7 +140,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes loading-container-rot
|
|
|
146
140
|
left: 50%;
|
|
147
141
|
top: 50%;
|
|
148
142
|
transform: translateX(-50%) translateY(-50%);
|
|
149
|
-
`, [(0, icon_switch_cssr_1.
|
|
143
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)({
|
|
150
144
|
left: '50%',
|
|
151
145
|
top: '50%',
|
|
152
146
|
originalTransform: 'translateX(-50%) translateY(-50%)'
|
|
@@ -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_cssr_1 =
|
|
9
|
+
const fade_in_cssr_1 = require("../../../../_styles/transitions/fade-in.cssr");
|
|
16
10
|
|
|
17
11
|
exports.default = (0, cssr_1.cB)('base-menu-mask', `
|
|
18
12
|
position: absolute;
|
|
@@ -26,4 +20,4 @@ exports.default = (0, cssr_1.cB)('base-menu-mask', `
|
|
|
26
20
|
text-align: center;
|
|
27
21
|
padding: 14px;
|
|
28
22
|
overflow: hidden;
|
|
29
|
-
`, [(0, fade_in_cssr_1.
|
|
23
|
+
`, [(0, fade_in_cssr_1.fadeInTransition)()]);
|
|
@@ -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_cssr_1 =
|
|
9
|
+
const fade_in_cssr_1 = require("../../../../_styles/transitions/fade-in.cssr"); // vars:
|
|
16
10
|
// --n-scrollbar-bezier
|
|
17
11
|
// --n-scrollbar-color
|
|
18
12
|
// --n-scrollbar-color-hover
|
|
@@ -70,6 +64,6 @@ exports.default = (0, cssr_1.cB)('scrollbar', `
|
|
|
70
64
|
pointer-events: all;
|
|
71
65
|
background-color: var(--n-scrollbar-color);
|
|
72
66
|
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
73
|
-
`, [(0, fade_in_cssr_1.
|
|
67
|
+
`, [(0, fade_in_cssr_1.fadeInTransition)(), (0, cssr_1.c)('&:hover', {
|
|
74
68
|
backgroundColor: 'var(--n-scrollbar-color-hover)'
|
|
75
69
|
})])])])])]);
|
|
@@ -305,12 +305,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
305
305
|
borderRadius: string;
|
|
306
306
|
borderRadiusSmall: string;
|
|
307
307
|
fontSize: string;
|
|
308
|
+
fontSizeMini: string;
|
|
308
309
|
fontSizeTiny: string;
|
|
309
310
|
fontSizeSmall: string;
|
|
310
311
|
fontSizeMedium: string;
|
|
311
312
|
fontSizeLarge: string;
|
|
312
313
|
fontSizeHuge: string;
|
|
313
314
|
lineHeight: string;
|
|
315
|
+
heightMini: string;
|
|
314
316
|
heightTiny: string;
|
|
315
317
|
heightSmall: string;
|
|
316
318
|
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"); // --n-loading-color
|
|
16
10
|
// --n-loading-size
|
|
17
11
|
|
|
18
12
|
|
|
@@ -103,6 +97,6 @@ exports.default = (0, cssr_1.cB)('base-select-menu', `
|
|
|
103
97
|
top: calc(50% - 7px);
|
|
104
98
|
color: var(--n-option-check-color);
|
|
105
99
|
transition: color .3s var(--n-bezier);
|
|
106
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
100
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
107
101
|
enterScale: '0.5'
|
|
108
102
|
})])])]);
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
clearable: BooleanConstructor;
|
|
39
39
|
disabled: BooleanConstructor;
|
|
40
40
|
size: {
|
|
41
|
-
type: PropType<"small" | "medium" | "large">;
|
|
41
|
+
type: PropType<"small" | "medium" | "large" | "tiny">;
|
|
42
42
|
default: string;
|
|
43
43
|
};
|
|
44
44
|
loading: BooleanConstructor;
|
|
@@ -363,12 +363,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
363
363
|
borderRadius: string;
|
|
364
364
|
borderRadiusSmall: string;
|
|
365
365
|
fontSize: string;
|
|
366
|
+
fontSizeMini: string;
|
|
366
367
|
fontSizeTiny: string;
|
|
367
368
|
fontSizeSmall: string;
|
|
368
369
|
fontSizeMedium: string;
|
|
369
370
|
fontSizeLarge: string;
|
|
370
371
|
fontSizeHuge: string;
|
|
371
372
|
lineHeight: string;
|
|
373
|
+
heightMini: string;
|
|
372
374
|
heightTiny: string;
|
|
373
375
|
heightSmall: string;
|
|
374
376
|
heightMedium: string;
|
|
@@ -577,7 +579,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
577
579
|
clearable: BooleanConstructor;
|
|
578
580
|
disabled: BooleanConstructor;
|
|
579
581
|
size: {
|
|
580
|
-
type: PropType<"small" | "medium" | "large">;
|
|
582
|
+
type: PropType<"small" | "medium" | "large" | "tiny">;
|
|
581
583
|
default: string;
|
|
582
584
|
};
|
|
583
585
|
loading: BooleanConstructor;
|
|
@@ -813,7 +815,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
813
815
|
}>>>;
|
|
814
816
|
}>>, {
|
|
815
817
|
pattern: string;
|
|
816
|
-
size: "small" | "medium" | "large";
|
|
818
|
+
size: "small" | "medium" | "large" | "tiny";
|
|
817
819
|
multiple: boolean;
|
|
818
820
|
active: boolean;
|
|
819
821
|
disabled: boolean;
|
|
@@ -179,6 +179,8 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
179
179
|
max-width: 100%;
|
|
180
180
|
vertical-align: bottom;
|
|
181
181
|
`, [(0, cssr_1.cE)('input', `
|
|
182
|
+
font-size: inherit;
|
|
183
|
+
font-family: inherit;
|
|
182
184
|
min-width: 1px;
|
|
183
185
|
padding: 0;
|
|
184
186
|
background-color: #0000;
|
|
@@ -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 fade_up_width_expand_cssr_1 =
|
|
11
|
+
const fade_up_width_expand_cssr_1 = require("../../../../_styles/transitions/fade-up-width-expand.cssr"); // ease-out: cubic-bezier(0, 0, .2, 1)
|
|
18
12
|
|
|
19
13
|
|
|
20
14
|
exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes n-base-slot-machine-fade-up-in', `
|
|
@@ -65,10 +59,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes n-base-slot-machine-f
|
|
|
65
59
|
height: 18px;
|
|
66
60
|
width: .6em;
|
|
67
61
|
max-width: .6em;
|
|
68
|
-
`, [(0, fade_up_width_expand_cssr_1.
|
|
62
|
+
`, [(0, fade_up_width_expand_cssr_1.fadeUpWidthExpandTransition)({
|
|
69
63
|
duration: '.2s'
|
|
70
64
|
}), // use 0s, not 0
|
|
71
|
-
(0, fade_in_width_expand_cssr_1.
|
|
65
|
+
(0, fade_in_width_expand_cssr_1.fadeInWidthExpandTransition)({
|
|
72
66
|
duration: '.2s',
|
|
73
67
|
delay: '0s'
|
|
74
68
|
}), (0, cssr_1.cB)('base-slot-machine-old-number', `
|
|
@@ -35,7 +35,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
35
35
|
const { clsPrefix } = props;
|
|
36
36
|
return ((0, vue_1.h)(loading_1.default, { clsPrefix: clsPrefix, class: `${clsPrefix}-base-suffix`, strokeWidth: 24, scale: 0.85, show: props.loading }, {
|
|
37
37
|
default: () => props.showArrow ? ((0, vue_1.h)(clear_1.default, { clsPrefix: clsPrefix, show: props.showClear, onClear: props.onClear }, {
|
|
38
|
-
|
|
38
|
+
placeholder: () => ((0, vue_1.h)(icon_1.default, { clsPrefix: clsPrefix, class: `${clsPrefix}-base-suffix__arrow` }, {
|
|
39
39
|
default: () => (0, vue_2.resolveSlot)(slots.default, () => [
|
|
40
40
|
(0, vue_1.h)(icons_1.ChevronDownIcon, null)
|
|
41
41
|
])
|
package/lib/_mixins/use-style.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const vue_1 = require("vue");
|
|
7
7
|
const vue3_ssr_1 = require("@css-render/vue3-ssr");
|
|
8
|
+
const context_1 = require("../config-provider/src/context");
|
|
8
9
|
const index_cssr_1 = __importDefault(require("../_styles/global/index.cssr"));
|
|
9
10
|
const _utils_1 = require("../_utils");
|
|
10
11
|
const common_1 = require("./common");
|
|
@@ -15,6 +16,7 @@ function useStyle(mountId, style, clsPrefixRef) {
|
|
|
15
16
|
return;
|
|
16
17
|
}
|
|
17
18
|
const ssrAdapter = (0, vue3_ssr_1.useSsrAdapter)();
|
|
19
|
+
const NConfigProvider = (0, vue_1.inject)(context_1.configProviderInjectionKey, null);
|
|
18
20
|
const mountStyle = () => {
|
|
19
21
|
const clsPrefix = clsPrefixRef === null || clsPrefixRef === void 0 ? void 0 : clsPrefixRef.value;
|
|
20
22
|
style.mount({
|
|
@@ -26,12 +28,14 @@ function useStyle(mountId, style, clsPrefixRef) {
|
|
|
26
28
|
},
|
|
27
29
|
ssr: ssrAdapter
|
|
28
30
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
if (!(NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.preflightStyleDisabled)) {
|
|
32
|
+
index_cssr_1.default.mount({
|
|
33
|
+
id: 'n-global',
|
|
34
|
+
head: true,
|
|
35
|
+
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
36
|
+
ssr: ssrAdapter
|
|
37
|
+
});
|
|
38
|
+
}
|
|
35
39
|
};
|
|
36
40
|
if (ssrAdapter) {
|
|
37
41
|
mountStyle();
|
package/lib/_mixins/use-theme.js
CHANGED
|
@@ -17,6 +17,7 @@ function createTheme(theme) {
|
|
|
17
17
|
exports.createTheme = createTheme;
|
|
18
18
|
function useTheme(resolveId, mountId, style, defaultTheme, props, clsPrefixRef) {
|
|
19
19
|
const ssrAdapter = (0, vue3_ssr_1.useSsrAdapter)();
|
|
20
|
+
const NConfigProvider = (0, vue_1.inject)(context_1.configProviderInjectionKey, null);
|
|
20
21
|
if (style) {
|
|
21
22
|
const mountStyle = () => {
|
|
22
23
|
const clsPrefix = clsPrefixRef === null || clsPrefixRef === void 0 ? void 0 : clsPrefixRef.value;
|
|
@@ -29,12 +30,14 @@ function useTheme(resolveId, mountId, style, defaultTheme, props, clsPrefixRef)
|
|
|
29
30
|
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
30
31
|
ssr: ssrAdapter
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
if (!(NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.preflightStyleDisabled)) {
|
|
34
|
+
index_cssr_1.default.mount({
|
|
35
|
+
id: 'n-global',
|
|
36
|
+
head: true,
|
|
37
|
+
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
38
|
+
ssr: ssrAdapter
|
|
39
|
+
});
|
|
40
|
+
}
|
|
38
41
|
};
|
|
39
42
|
if (ssrAdapter) {
|
|
40
43
|
mountStyle();
|
|
@@ -43,7 +46,6 @@ function useTheme(resolveId, mountId, style, defaultTheme, props, clsPrefixRef)
|
|
|
43
46
|
(0, vue_1.onBeforeMount)(mountStyle);
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
|
-
const NConfigProvider = (0, vue_1.inject)(context_1.configProviderInjectionKey, null);
|
|
47
49
|
const mergedThemeRef = (0, vue_1.computed)(() => {
|
|
48
50
|
var _a;
|
|
49
51
|
// keep props to make theme overrideable
|
|
@@ -9,12 +9,14 @@ declare const _default: {
|
|
|
9
9
|
borderRadius: string;
|
|
10
10
|
borderRadiusSmall: string;
|
|
11
11
|
fontSize: string;
|
|
12
|
+
fontSizeMini: string;
|
|
12
13
|
fontSizeTiny: string;
|
|
13
14
|
fontSizeSmall: string;
|
|
14
15
|
fontSizeMedium: string;
|
|
15
16
|
fontSizeLarge: string;
|
|
16
17
|
fontSizeHuge: string;
|
|
17
18
|
lineHeight: string;
|
|
19
|
+
heightMini: string;
|
|
18
20
|
heightTiny: string;
|
|
19
21
|
heightSmall: string;
|
|
20
22
|
heightMedium: string;
|