naive-ui 2.28.3 → 2.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/clear/src/Clear.js +6 -3
- package/es/_internal/clear/src/styles/index.cssr.js +5 -2
- package/es/_internal/loading/src/styles/index.cssr.js +1 -1
- package/es/_internal/menu-mask/src/styles/index.cssr.js +1 -1
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +5 -3
- package/es/_internal/selection/src/styles/index.cssr.js +2 -0
- package/es/_internal/slot-machine/src/styles/index.cssr.js +2 -2
- package/es/_internal/suffix/src/Suffix.js +1 -1
- package/es/_mixins/use-style.js +11 -7
- package/es/_mixins/use-theme.js +9 -7
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +2 -0
- package/es/_styles/common/light.d.ts +2 -0
- package/es/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-down.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-height-expand.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-scale-up.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-width-expand.cssr.js +1 -1
- package/es/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in.cssr.js +1 -1
- package/es/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-up-width-expand.cssr.js +1 -1
- package/es/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/es/_styles/transitions/icon-switch.cssr.js +1 -1
- package/es/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-bottom.js +1 -1
- package/es/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-left.js +1 -1
- package/es/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-right.js +1 -1
- package/es/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-top.js +1 -1
- package/es/_utils/naive/prop.d.ts +10 -1
- package/es/_utils/naive/prop.js +3 -0
- package/es/alert/src/Alert.d.ts +2 -0
- package/es/alert/src/styles/index.cssr.js +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +2 -0
- package/es/auto-complete/src/styles/index.cssr.js +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/es/back-top/src/styles/index.cssr.js +1 -1
- package/es/badge/src/styles/index.cssr.js +1 -1
- package/es/button/src/styles/index.cssr.js +2 -2
- package/es/calendar/src/Calendar.d.ts +2 -0
- package/es/calendar/src/Calendar.js +3 -3
- package/es/card/src/Card.d.ts +2 -0
- package/es/cascader/src/Cascader.d.ts +2 -0
- package/es/cascader/src/CascaderMenu.d.ts +2 -0
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/cascader/src/styles/index.cssr.js +1 -1
- package/es/checkbox/src/Checkbox.d.ts +2 -0
- package/es/checkbox/src/styles/index.cssr.js +1 -1
- package/es/collapse/src/Collapse.d.ts +2 -0
- package/es/collapse/src/styles/index.cssr.js +1 -1
- package/es/collapse-transition/src/styles/index.cssr.js +1 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/es/color-picker/src/ColorPicker.d.ts +3 -0
- package/es/color-picker/src/ColorPicker.js +7 -1
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +4 -0
- package/es/config-provider/src/ConfigProvider.js +4 -1
- package/es/config-provider/src/internal-interface.d.ts +1 -0
- package/es/data-table/src/DataTable.d.ts +422 -140
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
- package/es/data-table/src/TableParts/Body.d.ts +44 -14
- package/es/data-table/src/TableParts/Cell.d.ts +88 -28
- package/es/data-table/src/TableParts/Header.d.ts +44 -14
- package/es/data-table/src/styles/index.cssr.js +2 -2
- package/es/data-table/styles/light.d.ts +42 -14
- package/es/date-picker/src/DatePicker.d.ts +2 -0
- package/es/date-picker/src/DatePicker.js +20 -7
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/es/date-picker/src/panel/month.d.ts +2 -0
- package/es/date-picker/src/panel/monthrange.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-calendar.js +1 -1
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-dual-calendar.js +1 -1
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/es/date-picker/src/styles/index.cssr.js +6 -1
- package/es/date-picker/src/utils.d.ts +2 -2
- package/es/date-picker/src/utils.js +1 -1
- package/es/date-picker/src/validation-utils.js +1 -1
- package/es/dialog/src/Dialog.d.ts +2 -0
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/drawer/src/Drawer.d.ts +2 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/es/drawer/src/DrawerContent.d.ts +2 -0
- package/es/drawer/src/styles/index.cssr.js +5 -5
- package/es/dropdown/src/Dropdown.d.ts +2 -0
- package/es/dropdown/src/styles/index.cssr.js +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/es/dynamic-input/src/InputPreset.d.ts +2 -0
- package/es/dynamic-input/src/PairPreset.d.ts +2 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +45 -13
- package/es/dynamic-tags/src/DynamicTags.js +4 -1
- package/es/dynamic-tags/styles/light.d.ts +3 -0
- package/es/ellipsis/src/Ellipsis.d.ts +2 -0
- package/es/form/src/styles/form-item.cssr.js +1 -1
- package/es/global-style/src/GlobalStyle.js +3 -1
- package/es/image/src/styles/index.cssr.js +3 -3
- package/es/input/src/Input.d.ts +2 -0
- package/es/input/src/Input.js +18 -11
- package/es/input/src/styles/input.cssr.js +1 -5
- package/es/input-number/src/InputNumber.d.ts +2 -0
- package/es/layout/src/Layout.d.ts +4 -0
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +2 -0
- package/es/loading-bar/src/styles/index.cssr.js +1 -1
- package/es/locales/common/nlNL.d.ts +3 -0
- package/es/locales/common/nlNL.js +111 -0
- package/es/locales/date/deDE.js +1 -1
- package/es/locales/date/enGB.js +1 -1
- package/es/locales/date/enUS.d.ts +2 -2
- package/es/locales/date/enUS.js +1 -1
- package/es/locales/date/eo.js +1 -1
- package/es/locales/date/esAR.js +1 -1
- package/es/locales/date/frFR.js +1 -1
- package/es/locales/date/idID.js +1 -1
- package/es/locales/date/itIT.js +1 -1
- package/es/locales/date/jaJP.js +1 -1
- package/es/locales/date/koKR.js +1 -1
- package/es/locales/date/nbNO.js +1 -1
- package/es/locales/date/nlNL.d.ts +3 -0
- package/es/locales/date/nlNL.js +6 -0
- package/es/locales/date/plPL.js +1 -1
- package/es/locales/date/ptBR.js +1 -1
- package/es/locales/date/ruRU.js +1 -1
- package/es/locales/date/skSK.js +1 -1
- package/es/locales/date/thTH.js +1 -1
- package/es/locales/date/ukUA.js +1 -1
- package/es/locales/date/zhCN.js +1 -1
- package/es/locales/date/zhTW.js +1 -1
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +2 -0
- package/es/log/src/styles/index.cssr.js +1 -1
- package/es/mention/src/Mention.d.ts +2 -0
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/Menu.d.ts +2 -0
- package/es/menu/src/MenuOption.d.ts +2 -0
- package/es/menu/src/MenuOptionContent.js +1 -1
- package/es/menu/src/Submenu.d.ts +2 -0
- package/es/menu/src/styles/index.cssr.js +2 -2
- package/es/message/src/styles/index.cssr.js +3 -3
- package/es/modal/src/BodyWrapper.d.ts +2 -0
- package/es/modal/src/styles/index.cssr.js +2 -2
- package/es/notification/index.d.ts +2 -1
- package/es/notification/src/Notification.js +18 -17
- package/es/notification/src/NotificationContainer.d.ts +7 -2
- package/es/notification/src/NotificationContainer.js +17 -5
- package/es/notification/src/NotificationEnvironment.d.ts +3 -2
- package/es/notification/src/NotificationEnvironment.js +9 -1
- package/es/notification/src/NotificationProvider.d.ts +3 -3
- package/es/notification/src/NotificationProvider.js +5 -2
- package/es/notification/src/styles/index.cssr.js +41 -11
- package/es/pagination/src/Pagination.d.ts +446 -151
- package/es/pagination/src/Pagination.js +22 -13
- package/es/pagination/src/interface.d.ts +1 -0
- package/es/pagination/src/styles/index.cssr.js +38 -39
- package/es/pagination/styles/_common.d.ts +33 -13
- package/es/pagination/styles/_common.js +33 -13
- package/es/pagination/styles/light.d.ts +84 -28
- package/es/pagination/styles/light.js +6 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -0
- package/es/popover/src/PopoverBody.js +6 -6
- package/es/popover/src/styles/index.cssr.js +22 -21
- package/es/popselect/src/Popselect.d.ts +35 -12
- package/es/popselect/src/Popselect.js +1 -0
- package/es/popselect/src/PopselectPanel.d.ts +10 -1
- package/es/popselect/src/PopselectPanel.js +21 -4
- package/es/popselect/src/interface.d.ts +3 -1
- package/es/popselect/src/styles/index.cssr.d.ts +2 -0
- package/es/popselect/src/styles/index.cssr.js +5 -0
- package/es/popselect/styles/light.d.ts +7 -1
- package/es/popselect/styles/light.js +8 -1
- package/es/select/src/Select.d.ts +3 -1
- package/es/select/src/Select.js +1 -1
- package/es/select/src/interface.d.ts +1 -1
- package/es/select/src/styles/index.cssr.js +1 -1
- package/es/slider/src/styles/index.cssr.js +1 -1
- package/es/spin/src/styles/index.cssr.js +1 -1
- package/es/steps/src/styles/index.cssr.js +1 -1
- package/es/switch/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/styles/index.cssr.js +5 -4
- package/es/tag/src/Tag.d.ts +31 -4
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/styles/_common.d.ts +1 -0
- package/es/tag/styles/_common.js +1 -0
- package/es/tag/styles/dark.js +3 -3
- package/es/tag/styles/light.d.ts +3 -0
- package/es/tag/styles/light.js +3 -3
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/theme-editor/src/ThemeEditor.js +113 -125
- package/es/time/src/Time.js +2 -2
- package/es/time-picker/src/Panel.d.ts +2 -0
- package/es/time-picker/src/TimePicker.d.ts +2 -0
- package/es/time-picker/src/TimePicker.js +7 -2
- package/es/time-picker/src/styles/index.cssr.js +1 -1
- package/es/time-picker/src/utils.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +2 -0
- package/es/transfer/src/Transfer.d.ts +2 -0
- package/es/transfer/src/TransferFilter.d.ts +2 -0
- package/es/transfer/src/TransferFilter.js +1 -1
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/transfer/src/TransferListItem.d.ts +2 -0
- package/es/transfer/src/styles/index.cssr.js +1 -2
- package/es/tree/src/Tree.d.ts +2 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +3 -1
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/styles/index.cssr.js +1 -1
- package/es/upload/src/Upload.d.ts +2 -0
- package/es/upload/src/Upload.js +16 -3
- package/es/upload/src/UploadFile.d.ts +2 -0
- package/es/upload/src/UploadProgress.d.ts +2 -0
- package/es/upload/src/interface.d.ts +2 -0
- package/es/upload/src/styles/index.cssr.js +4 -4
- package/es/upload/src/utils.d.ts +6 -0
- package/es/upload/src/utils.js +38 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.js +6 -3
- package/lib/_internal/clear/src/styles/index.cssr.js +5 -8
- package/lib/_internal/loading/src/styles/index.cssr.js +3 -9
- package/lib/_internal/menu-mask/src/styles/index.cssr.js +2 -8
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +2 -8
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -8
- package/lib/_internal/selection/src/Selection.d.ts +5 -3
- package/lib/_internal/selection/src/styles/index.cssr.js +2 -0
- package/lib/_internal/slot-machine/src/styles/index.cssr.js +4 -10
- package/lib/_internal/suffix/src/Suffix.js +1 -1
- package/lib/_mixins/use-style.js +10 -6
- package/lib/_mixins/use-theme.js +9 -7
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +2 -0
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-down.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in.cssr.js +3 -2
- package/lib/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +2 -1
- package/lib/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/lib/_styles/transitions/icon-switch.cssr.js +3 -2
- package/lib/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-bottom.js +3 -2
- package/lib/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-left.js +3 -2
- package/lib/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-right.js +3 -2
- package/lib/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-top.js +3 -2
- package/lib/_utils/naive/prop.d.ts +10 -1
- package/lib/_utils/naive/prop.js +3 -0
- package/lib/alert/src/Alert.d.ts +2 -0
- package/lib/alert/src/styles/index.cssr.js +2 -8
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -0
- package/lib/auto-complete/src/styles/index.cssr.js +2 -8
- package/lib/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/lib/back-top/src/styles/index.cssr.js +2 -8
- package/lib/badge/src/styles/index.cssr.js +3 -9
- package/lib/button/src/styles/index.cssr.js +4 -10
- package/lib/calendar/src/Calendar.d.ts +2 -0
- package/lib/calendar/src/Calendar.js +2 -2
- package/lib/card/src/Card.d.ts +2 -0
- package/lib/cascader/src/Cascader.d.ts +2 -0
- package/lib/cascader/src/CascaderMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/cascader/src/styles/index.cssr.js +3 -9
- package/lib/checkbox/src/Checkbox.d.ts +2 -0
- package/lib/checkbox/src/styles/index.cssr.js +2 -8
- package/lib/collapse/src/Collapse.d.ts +2 -0
- package/lib/collapse/src/styles/index.cssr.js +2 -8
- package/lib/collapse-transition/src/styles/index.cssr.js +2 -8
- package/lib/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/lib/color-picker/src/ColorPicker.d.ts +3 -0
- package/lib/color-picker/src/ColorPicker.js +7 -1
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +2 -8
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -0
- package/lib/config-provider/src/ConfigProvider.js +4 -1
- package/lib/config-provider/src/internal-interface.d.ts +1 -0
- package/lib/data-table/src/DataTable.d.ts +422 -140
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
- package/lib/data-table/src/TableParts/Body.d.ts +44 -14
- package/lib/data-table/src/TableParts/Cell.d.ts +88 -28
- package/lib/data-table/src/TableParts/Header.d.ts +44 -14
- package/lib/data-table/src/styles/index.cssr.js +5 -11
- package/lib/data-table/styles/light.d.ts +42 -14
- package/lib/date-picker/src/DatePicker.d.ts +2 -0
- package/lib/date-picker/src/DatePicker.js +18 -5
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/daterange.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/lib/date-picker/src/panel/month.d.ts +2 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/lib/date-picker/src/styles/index.cssr.js +7 -8
- package/lib/date-picker/src/utils.d.ts +2 -2
- package/lib/dialog/src/Dialog.d.ts +2 -0
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/drawer/src/Drawer.d.ts +2 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/lib/drawer/src/DrawerContent.d.ts +2 -0
- package/lib/drawer/src/styles/index.cssr.js +7 -13
- package/lib/dropdown/src/Dropdown.d.ts +2 -0
- package/lib/dropdown/src/styles/index.cssr.js +2 -8
- package/lib/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +2 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +2 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +45 -13
- package/lib/dynamic-tags/src/DynamicTags.js +4 -1
- package/lib/dynamic-tags/styles/light.d.ts +3 -0
- package/lib/ellipsis/src/Ellipsis.d.ts +2 -0
- package/lib/form/src/styles/form-item.cssr.js +2 -8
- package/lib/global-style/src/GlobalStyle.js +3 -1
- package/lib/image/src/styles/index.cssr.js +5 -11
- package/lib/input/src/Input.d.ts +2 -0
- package/lib/input/src/Input.js +18 -11
- package/lib/input/src/styles/input.cssr.js +1 -5
- package/lib/input-number/src/InputNumber.d.ts +2 -0
- package/lib/layout/src/Layout.d.ts +4 -0
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +2 -0
- package/lib/loading-bar/src/styles/index.cssr.js +2 -8
- package/lib/locales/common/nlNL.d.ts +3 -0
- package/lib/locales/common/nlNL.js +113 -0
- package/lib/locales/date/enUS.d.ts +2 -2
- package/lib/locales/date/nlNL.d.ts +3 -0
- package/lib/locales/date/nlNL.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/log/src/Log.d.ts +2 -0
- package/lib/log/src/styles/index.cssr.js +2 -8
- package/lib/mention/src/Mention.d.ts +2 -0
- package/lib/mention/src/styles/index.cssr.js +2 -8
- package/lib/menu/src/Menu.d.ts +2 -0
- package/lib/menu/src/MenuOption.d.ts +2 -0
- package/lib/menu/src/MenuOptionContent.js +1 -1
- package/lib/menu/src/Submenu.d.ts +2 -0
- package/lib/menu/src/styles/index.cssr.js +3 -9
- package/lib/message/src/styles/index.cssr.js +4 -10
- package/lib/modal/src/BodyWrapper.d.ts +2 -0
- package/lib/modal/src/styles/index.cssr.js +4 -10
- package/lib/notification/index.d.ts +2 -1
- package/lib/notification/src/Notification.js +18 -17
- package/lib/notification/src/NotificationContainer.d.ts +7 -2
- package/lib/notification/src/NotificationContainer.js +16 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +3 -2
- package/lib/notification/src/NotificationEnvironment.js +8 -0
- package/lib/notification/src/NotificationProvider.d.ts +3 -3
- package/lib/notification/src/NotificationProvider.js +5 -2
- package/lib/notification/src/styles/index.cssr.js +41 -11
- package/lib/pagination/src/Pagination.d.ts +446 -151
- package/lib/pagination/src/Pagination.js +19 -10
- package/lib/pagination/src/interface.d.ts +1 -0
- package/lib/pagination/src/styles/index.cssr.js +38 -39
- package/lib/pagination/styles/_common.d.ts +33 -13
- package/lib/pagination/styles/_common.js +33 -13
- package/lib/pagination/styles/light.d.ts +84 -28
- package/lib/pagination/styles/light.js +6 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -0
- package/lib/popover/src/PopoverBody.js +6 -6
- package/lib/popover/src/styles/index.cssr.js +22 -21
- package/lib/popselect/src/Popselect.d.ts +35 -12
- package/lib/popselect/src/Popselect.js +1 -0
- package/lib/popselect/src/PopselectPanel.d.ts +10 -1
- package/lib/popselect/src/PopselectPanel.js +23 -3
- package/lib/popselect/src/interface.d.ts +3 -1
- package/lib/popselect/src/styles/index.cssr.d.ts +2 -0
- package/lib/popselect/src/styles/index.cssr.js +12 -0
- package/lib/popselect/styles/light.d.ts +7 -1
- package/lib/popselect/styles/light.js +10 -1
- package/lib/select/src/Select.d.ts +3 -1
- package/lib/select/src/Select.js +1 -1
- package/lib/select/src/interface.d.ts +1 -1
- package/lib/select/src/styles/index.cssr.js +2 -8
- package/lib/slider/src/styles/index.cssr.js +3 -9
- package/lib/spin/src/styles/index.cssr.js +2 -8
- package/lib/steps/src/styles/index.cssr.js +4 -10
- package/lib/switch/src/styles/index.cssr.js +3 -9
- package/lib/tabs/src/styles/index.cssr.js +5 -4
- package/lib/tag/src/Tag.d.ts +31 -4
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/styles/_common.d.ts +1 -0
- package/lib/tag/styles/_common.js +1 -0
- package/lib/tag/styles/dark.js +3 -3
- package/lib/tag/styles/light.d.ts +3 -0
- package/lib/tag/styles/light.js +3 -3
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/theme-editor/src/ThemeEditor.js +113 -125
- package/lib/time/src/Time.js +6 -3
- package/lib/time-picker/src/Panel.d.ts +2 -0
- package/lib/time-picker/src/TimePicker.d.ts +2 -0
- package/lib/time-picker/src/TimePicker.js +6 -1
- package/lib/time-picker/src/styles/index.cssr.js +2 -8
- package/lib/tooltip/src/Tooltip.d.ts +2 -0
- package/lib/transfer/src/Transfer.d.ts +2 -0
- package/lib/transfer/src/TransferFilter.d.ts +2 -0
- package/lib/transfer/src/TransferFilter.js +1 -1
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/transfer/src/TransferListItem.d.ts +2 -0
- package/lib/transfer/src/styles/index.cssr.js +2 -9
- package/lib/tree/src/Tree.d.ts +2 -0
- package/lib/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +6 -12
- package/lib/tree-select/src/TreeSelect.d.ts +3 -1
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/styles/index.cssr.js +2 -8
- package/lib/upload/src/Upload.d.ts +2 -0
- package/lib/upload/src/Upload.js +15 -2
- package/lib/upload/src/UploadFile.d.ts +2 -0
- package/lib/upload/src/UploadProgress.d.ts +2 -0
- package/lib/upload/src/interface.d.ts +2 -0
- package/lib/upload/src/styles/index.cssr.js +4 -10
- package/lib/upload/src/utils.d.ts +6 -0
- package/lib/upload/src/utils.js +40 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +13 -13
- package/volar.d.ts +24 -24
- package/web-types.json +23 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { PopoverTrigger } from '../../popover';
|
|
3
3
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
declare const popselectProps: {
|
|
@@ -96,7 +96,9 @@ declare const popselectProps: {
|
|
|
96
96
|
};
|
|
97
97
|
onShow: PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
98
98
|
onHide: PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
99
|
-
theme: PropType<import("../../_mixins").Theme<"Popselect",
|
|
99
|
+
theme: PropType<import("../../_mixins").Theme<"Popselect", {
|
|
100
|
+
menuBoxShadow: string;
|
|
101
|
+
}, {
|
|
100
102
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
101
103
|
fontSize: string;
|
|
102
104
|
borderRadius: string;
|
|
@@ -164,7 +166,9 @@ declare const popselectProps: {
|
|
|
164
166
|
}, any>;
|
|
165
167
|
}>;
|
|
166
168
|
}>>;
|
|
167
|
-
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect",
|
|
169
|
+
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect", {
|
|
170
|
+
menuBoxShadow: string;
|
|
171
|
+
}, {
|
|
168
172
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
169
173
|
fontSize: string;
|
|
170
174
|
borderRadius: string;
|
|
@@ -232,7 +236,9 @@ declare const popselectProps: {
|
|
|
232
236
|
}, any>;
|
|
233
237
|
}>;
|
|
234
238
|
}>>>;
|
|
235
|
-
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect",
|
|
239
|
+
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect", {
|
|
240
|
+
menuBoxShadow: string;
|
|
241
|
+
}, {
|
|
236
242
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
237
243
|
fontSize: string;
|
|
238
244
|
borderRadius: string;
|
|
@@ -301,6 +307,7 @@ declare const popselectProps: {
|
|
|
301
307
|
}>;
|
|
302
308
|
}>>>;
|
|
303
309
|
};
|
|
310
|
+
export declare type PopselectSetupProps = ExtractPropTypes<typeof popselectProps>;
|
|
304
311
|
export declare type PopselectProps = ExtractPublicPropTypes<typeof popselectProps>;
|
|
305
312
|
declare const _default: import("vue").DefineComponent<{
|
|
306
313
|
multiple: BooleanConstructor;
|
|
@@ -397,7 +404,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
397
404
|
};
|
|
398
405
|
onShow: PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
399
406
|
onHide: PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
400
|
-
theme: PropType<import("../../_mixins").Theme<"Popselect",
|
|
407
|
+
theme: PropType<import("../../_mixins").Theme<"Popselect", {
|
|
408
|
+
menuBoxShadow: string;
|
|
409
|
+
}, {
|
|
401
410
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
402
411
|
fontSize: string;
|
|
403
412
|
borderRadius: string;
|
|
@@ -465,7 +474,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
465
474
|
}, any>;
|
|
466
475
|
}>;
|
|
467
476
|
}>>;
|
|
468
|
-
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect",
|
|
477
|
+
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect", {
|
|
478
|
+
menuBoxShadow: string;
|
|
479
|
+
}, {
|
|
469
480
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
470
481
|
fontSize: string;
|
|
471
482
|
borderRadius: string;
|
|
@@ -533,7 +544,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
533
544
|
}, any>;
|
|
534
545
|
}>;
|
|
535
546
|
}>>>;
|
|
536
|
-
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect",
|
|
547
|
+
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect", {
|
|
548
|
+
menuBoxShadow: string;
|
|
549
|
+
}, {
|
|
537
550
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
538
551
|
fontSize: string;
|
|
539
552
|
borderRadius: string;
|
|
@@ -696,12 +709,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
696
709
|
borderRadius: string;
|
|
697
710
|
borderRadiusSmall: string;
|
|
698
711
|
fontSize: string;
|
|
712
|
+
fontSizeMini: string;
|
|
699
713
|
fontSizeTiny: string;
|
|
700
714
|
fontSizeSmall: string;
|
|
701
715
|
fontSizeMedium: string;
|
|
702
716
|
fontSizeLarge: string;
|
|
703
717
|
fontSizeHuge: string;
|
|
704
718
|
lineHeight: string;
|
|
719
|
+
heightMini: string;
|
|
705
720
|
heightTiny: string;
|
|
706
721
|
heightSmall: string;
|
|
707
722
|
heightMedium: string;
|
|
@@ -709,7 +724,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
709
724
|
heightHuge: string;
|
|
710
725
|
name: "common";
|
|
711
726
|
};
|
|
712
|
-
self:
|
|
727
|
+
self: {
|
|
728
|
+
menuBoxShadow: string;
|
|
729
|
+
};
|
|
713
730
|
peers: {
|
|
714
731
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
715
732
|
fontSize: string;
|
|
@@ -809,7 +826,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
809
826
|
}>;
|
|
810
827
|
syncPosition: () => void;
|
|
811
828
|
setShow: (value: boolean) => void;
|
|
812
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
|
829
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
813
830
|
multiple: BooleanConstructor;
|
|
814
831
|
value: {
|
|
815
832
|
readonly type: PropType<import("../../select/src/interface").Value | null>;
|
|
@@ -904,7 +921,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
904
921
|
};
|
|
905
922
|
onShow: PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
906
923
|
onHide: PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
907
|
-
theme: PropType<import("../../_mixins").Theme<"Popselect",
|
|
924
|
+
theme: PropType<import("../../_mixins").Theme<"Popselect", {
|
|
925
|
+
menuBoxShadow: string;
|
|
926
|
+
}, {
|
|
908
927
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
909
928
|
fontSize: string;
|
|
910
929
|
borderRadius: string;
|
|
@@ -972,7 +991,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
972
991
|
}, any>;
|
|
973
992
|
}>;
|
|
974
993
|
}>>;
|
|
975
|
-
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect",
|
|
994
|
+
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect", {
|
|
995
|
+
menuBoxShadow: string;
|
|
996
|
+
}, {
|
|
976
997
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
977
998
|
fontSize: string;
|
|
978
999
|
borderRadius: string;
|
|
@@ -1040,7 +1061,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1040
1061
|
}, any>;
|
|
1041
1062
|
}>;
|
|
1042
1063
|
}>>>;
|
|
1043
|
-
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect",
|
|
1064
|
+
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popselect", {
|
|
1065
|
+
menuBoxShadow: string;
|
|
1066
|
+
}, {
|
|
1044
1067
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1045
1068
|
fontSize: string;
|
|
1046
1069
|
borderRadius: string;
|
|
@@ -51,6 +51,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
51
51
|
(_a = popoverInstRef.value) === null || _a === void 0 ? void 0 : _a.setShow(value);
|
|
52
52
|
}
|
|
53
53
|
(0, vue_1.provide)(interface_1.popselectInjectionKey, {
|
|
54
|
+
props,
|
|
54
55
|
mergedThemeRef: themeRef,
|
|
55
56
|
syncPosition,
|
|
56
57
|
setShow
|
|
@@ -141,12 +141,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
borderRadius: string;
|
|
142
142
|
borderRadiusSmall: string;
|
|
143
143
|
fontSize: string;
|
|
144
|
+
fontSizeMini: string;
|
|
144
145
|
fontSizeTiny: string;
|
|
145
146
|
fontSizeSmall: string;
|
|
146
147
|
fontSizeMedium: string;
|
|
147
148
|
fontSizeLarge: string;
|
|
148
149
|
fontSizeHuge: string;
|
|
149
150
|
lineHeight: string;
|
|
151
|
+
heightMini: string;
|
|
150
152
|
heightTiny: string;
|
|
151
153
|
heightSmall: string;
|
|
152
154
|
heightMedium: string;
|
|
@@ -154,7 +156,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
154
156
|
heightHuge: string;
|
|
155
157
|
name: "common";
|
|
156
158
|
};
|
|
157
|
-
self:
|
|
159
|
+
self: {
|
|
160
|
+
menuBoxShadow: string;
|
|
161
|
+
};
|
|
158
162
|
peers: {
|
|
159
163
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
160
164
|
fontSize: string;
|
|
@@ -256,6 +260,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
256
260
|
treeMate: import("vue").ComputedRef<import("treemate").TreeMate<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectGroupOption, SelectIgnoredOption>>;
|
|
257
261
|
handleToggle: (tmNode: TreeNode<SelectBaseOption>) => void;
|
|
258
262
|
handleMenuMousedown: (e: MouseEvent) => void;
|
|
263
|
+
cssVars: import("vue").ComputedRef<{
|
|
264
|
+
'--n-menu-box-shadow': string;
|
|
265
|
+
}> | undefined;
|
|
266
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
267
|
+
onRender: (() => void) | undefined;
|
|
259
268
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
260
269
|
readonly multiple: BooleanConstructor;
|
|
261
270
|
readonly value: {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.panelPropKeys = exports.panelProps = void 0;
|
|
4
7
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
@@ -9,7 +12,9 @@ const utils_1 = require("../../select/src/utils");
|
|
|
9
12
|
const _mixins_1 = require("../../_mixins");
|
|
10
13
|
const _internal_1 = require("../../_internal");
|
|
11
14
|
const _utils_1 = require("../../_utils");
|
|
15
|
+
const styles_1 = require("../styles");
|
|
12
16
|
const interface_1 = require("./interface");
|
|
17
|
+
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
13
18
|
exports.panelProps = {
|
|
14
19
|
multiple: Boolean,
|
|
15
20
|
value: {
|
|
@@ -48,7 +53,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
48
53
|
}
|
|
49
54
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
50
55
|
const NPopselect = (0, vue_1.inject)(interface_1.popselectInjectionKey);
|
|
51
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
56
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
57
|
+
const themeRef = (0, _mixins_1.useTheme)('Popselect', '-pop-select', index_cssr_1.default, styles_1.popselectLight, NPopselect.props, mergedClsPrefixRef);
|
|
52
58
|
const treeMateRef = (0, vue_1.computed)(() => {
|
|
53
59
|
return (0, treemate_1.createTreeMate)(props.options, utils_1.tmOptions);
|
|
54
60
|
});
|
|
@@ -121,16 +127,30 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
121
127
|
NPopselect.syncPosition();
|
|
122
128
|
});
|
|
123
129
|
});
|
|
130
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
131
|
+
const { self: { menuBoxShadow } } = themeRef.value;
|
|
132
|
+
return {
|
|
133
|
+
'--n-menu-box-shadow': menuBoxShadow
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
const themeClassHandle = inlineThemeDisabled
|
|
137
|
+
? (0, _mixins_1.useThemeClass)('select', undefined, cssVarsRef, NPopselect.props)
|
|
138
|
+
: undefined;
|
|
124
139
|
return {
|
|
125
140
|
mergedTheme: NPopselect.mergedThemeRef,
|
|
126
141
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
127
142
|
treeMate: treeMateRef,
|
|
128
143
|
handleToggle,
|
|
129
|
-
handleMenuMousedown
|
|
144
|
+
handleMenuMousedown,
|
|
145
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
146
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
147
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
130
148
|
};
|
|
131
149
|
},
|
|
132
150
|
render() {
|
|
133
|
-
|
|
151
|
+
var _a;
|
|
152
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
153
|
+
return ((0, vue_1.h)(_internal_1.NInternalSelectMenu, { clsPrefix: this.mergedClsPrefix, focusable: true, class: [`${this.mergedClsPrefix}-popselect-menu`, this.themeClass], style: this.cssVars, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu, multiple: this.multiple, treeMate: this.treeMate, size: this.size, value: this.value, virtualScroll: false, scrollable: this.scrollable, renderLabel: this.renderLabel, onToggle: this.handleToggle, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseenter, onMousedown: this.handleMenuMousedown }, {
|
|
134
154
|
action: () => { var _a, _b; return ((_b = (_a = this.$slots).action) === null || _b === void 0 ? void 0 : _b.call(_a)) || []; },
|
|
135
155
|
empty: () => { var _a, _b; return ((_b = (_a = this.$slots).empty) === null || _b === void 0 ? void 0 : _b.call(_a)) || []; }
|
|
136
156
|
}));
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
import type { PopoverInst } from '../../popover/src/interface';
|
|
2
3
|
import type { MergedTheme } from '../../_mixins';
|
|
3
4
|
import type { PopselectTheme } from '../styles';
|
|
4
|
-
import type {
|
|
5
|
+
import type { PopselectSetupProps } from './Popselect';
|
|
5
6
|
export declare type PopselectSize = 'small' | 'medium' | 'large' | 'huge';
|
|
6
7
|
export interface PopselectInjection {
|
|
8
|
+
props: PopselectSetupProps;
|
|
7
9
|
mergedThemeRef: Ref<MergedTheme<PopselectTheme>>;
|
|
8
10
|
setShow: (value: boolean) => void;
|
|
9
11
|
syncPosition: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const cssr_1 = require("../../../_utils/cssr"); // --n-menu-box-shadow
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.default = (0, cssr_1.cB)('popselect-menu', `
|
|
11
|
+
box-shadow: var(--n-menu-box-shadow);
|
|
12
|
+
`);
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeCommonVars } from '../../config-provider';
|
|
2
|
+
export declare function self(vars: ThemeCommonVars): {
|
|
3
|
+
menuBoxShadow: string;
|
|
4
|
+
};
|
|
5
|
+
declare const popselectLight: import("../../_mixins").Theme<"Popselect", {
|
|
6
|
+
menuBoxShadow: string;
|
|
7
|
+
}, {
|
|
2
8
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
3
9
|
fontSize: string;
|
|
4
10
|
borderRadius: string;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.self = void 0;
|
|
3
4
|
const styles_1 = require("../../_internal/select-menu/styles");
|
|
4
5
|
const common_1 = require("../../_styles/common");
|
|
5
6
|
const styles_2 = require("../../popover/styles");
|
|
6
7
|
const _mixins_1 = require("../../_mixins");
|
|
8
|
+
function self(vars) {
|
|
9
|
+
const { boxShadow2 } = vars;
|
|
10
|
+
return {
|
|
11
|
+
menuBoxShadow: boxShadow2
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.self = self;
|
|
7
15
|
const popselectLight = (0, _mixins_1.createTheme)({
|
|
8
16
|
name: 'Popselect',
|
|
9
17
|
common: common_1.commonLight,
|
|
10
18
|
peers: {
|
|
11
19
|
Popover: styles_2.popoverLight,
|
|
12
20
|
InternalSelectMenu: styles_1.internalSelectMenuLight
|
|
13
|
-
}
|
|
21
|
+
},
|
|
22
|
+
self
|
|
14
23
|
});
|
|
15
24
|
exports.default = popselectLight;
|
|
@@ -997,7 +997,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
997
997
|
localizedPlaceholder: import("vue").ComputedRef<string>;
|
|
998
998
|
selectedOption: import("vue").ComputedRef<SelectOption | null>;
|
|
999
999
|
selectedOptions: import("vue").ComputedRef<SelectOption[] | null>;
|
|
1000
|
-
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
1000
|
+
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large" | "tiny">;
|
|
1001
1001
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
1002
1002
|
focused: import("vue").Ref<boolean>;
|
|
1003
1003
|
activeWithoutMenuOpen: import("vue").Ref<boolean>;
|
|
@@ -1111,12 +1111,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1111
1111
|
borderRadius: string;
|
|
1112
1112
|
borderRadiusSmall: string;
|
|
1113
1113
|
fontSize: string;
|
|
1114
|
+
fontSizeMini: string;
|
|
1114
1115
|
fontSizeTiny: string;
|
|
1115
1116
|
fontSizeSmall: string;
|
|
1116
1117
|
fontSizeMedium: string;
|
|
1117
1118
|
fontSizeLarge: string;
|
|
1118
1119
|
fontSizeHuge: string;
|
|
1119
1120
|
lineHeight: string;
|
|
1121
|
+
heightMini: string;
|
|
1120
1122
|
heightTiny: string;
|
|
1121
1123
|
heightSmall: string;
|
|
1122
1124
|
heightMedium: string;
|
package/lib/select/src/Select.js
CHANGED
|
@@ -613,7 +613,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
613
613
|
this.themeClass,
|
|
614
614
|
(_b = this.menuProps) === null || _b === void 0 ? void 0 : _b.class
|
|
615
615
|
], clsPrefix: this.mergedClsPrefix, focusable: true, autoPending: true, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
|
|
616
|
-
.InternalSelectMenu, treeMate: this.treeMate, multiple: this.multiple, size:
|
|
616
|
+
.InternalSelectMenu, treeMate: this.treeMate, multiple: this.multiple, size: "medium", renderOption: this.renderOption, renderLabel: this.renderLabel, value: this.mergedValue, style: [(_c = this.menuProps) === null || _c === void 0 ? void 0 : _c.style, this.cssVars], onToggle: this.handleToggle, onScroll: this.handleMenuScroll, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeydown: this.handleMenuKeydown, onTabOut: this.handleMenuTabOut, onMousedown: this.handleMenuMousedown, show: this.mergedShow, resetMenuOnOptionsChange: this.resetMenuOnOptionsChange }), {
|
|
617
617
|
empty: () => { var _a, _b; return [(_b = (_a = this.$slots).empty) === null || _b === void 0 ? void 0 : _b.call(_a)]; },
|
|
618
618
|
action: () => { var _a, _b; return [(_b = (_a = this.$slots).action) === null || _b === void 0 ? void 0 : _b.call(_a)]; }
|
|
619
619
|
}), this.displayDirective === 'show'
|
|
@@ -34,7 +34,7 @@ export declare type Value = ValueAtom | string[] | number[] | ValueAtom[];
|
|
|
34
34
|
export declare type OnUpdateValue = (value: string & number & ValueAtom & string[] & number[] & ValueAtom[] & (ValueAtom | null) & (string[] | null) & (number[] | null) & (ValueAtom[] | null), option: SelectBaseOption & null & SelectBaseOption[]) => void;
|
|
35
35
|
export declare type OnUpdateValueImpl = (value: ValueAtom | string[] | number[] | ValueAtom[] | (ValueAtom | null) | (string[] | null) | (number[] | null) | (ValueAtom[] | null), option: SelectBaseOption | null | SelectBaseOption[]) => void;
|
|
36
36
|
export declare type SelectTreeMate = TreeMate<SelectBaseOption, SelectGroupOption, SelectIgnoredOption>;
|
|
37
|
-
export declare type Size = 'small' | 'medium' | 'large';
|
|
37
|
+
export declare type Size = 'tiny' | 'small' | 'medium' | 'large';
|
|
38
38
|
export declare type SelectOption = SelectBaseOption<string | number>;
|
|
39
39
|
export declare type SelectGroupOption = (SelectGroupOptionBase & {
|
|
40
40
|
/** @deprecated should use key and label instead */
|
|
@@ -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-menu-box-shadow
|
|
16
10
|
|
|
17
11
|
|
|
18
12
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('select', `
|
|
@@ -23,4 +17,4 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('select', `
|
|
|
23
17
|
`), (0, cssr_1.cB)('select-menu', `
|
|
24
18
|
margin: 4px 0;
|
|
25
19
|
box-shadow: var(--n-menu-box-shadow);
|
|
26
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
20
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)()])]);
|
|
@@ -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-dot-border
|
|
18
12
|
// --n-dot-border-active
|
|
@@ -195,7 +189,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('slider', `
|
|
|
195
189
|
color: var(--n-indicator-text-color);
|
|
196
190
|
background-color: var(--n-indicator-color);
|
|
197
191
|
box-shadow: var(--n-indicator-box-shadow);
|
|
198
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
192
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)()]), (0, cssr_1.cB)('slider-handle-indicator', `
|
|
199
193
|
font-size: var(--n-font-size);
|
|
200
194
|
padding: 6px 10px;
|
|
201
195
|
border-radius: var(--n-indicator-border-radius);
|
|
@@ -210,7 +204,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('slider', `
|
|
|
210
204
|
margin-top: 12px;
|
|
211
205
|
`), (0, cssr_1.cM)('left', `
|
|
212
206
|
margin-right: 12px;
|
|
213
|
-
`), (0, fade_in_scale_up_cssr_1.
|
|
207
|
+
`), (0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)()]), (0, cssr_1.insideModal)((0, cssr_1.cB)('slider', [(0, cssr_1.cB)('slider-dot', {
|
|
214
208
|
backgroundColor: 'var(--n-dot-color-modal)'
|
|
215
209
|
})])), (0, cssr_1.insidePopover)((0, cssr_1.cB)('slider', [(0, cssr_1.cB)('slider-dot', {
|
|
216
210
|
backgroundColor: 'var(--n-dot-color-popover)'
|
|
@@ -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-bezier
|
|
17
11
|
// --n-opacity-spinning
|
|
18
12
|
// --n-size
|
|
@@ -35,7 +29,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes spin-rotate', `
|
|
|
35
29
|
top: 50%;
|
|
36
30
|
left: 50%;
|
|
37
31
|
transform: translateX(-50%) translateY(-50%);
|
|
38
|
-
`, [(0, fade_in_cssr_1.
|
|
32
|
+
`, [(0, fade_in_cssr_1.fadeInTransition)()])]), (0, cssr_1.cB)('spin-body', `
|
|
39
33
|
display: inline-flex;
|
|
40
34
|
align-items: center;
|
|
41
35
|
justify-content: center;
|
|
@@ -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-description-text-color
|
|
18
12
|
// --n-header-text-color
|
|
@@ -97,13 +91,13 @@ exports.default = (0, cssr_1.cB)('steps', `
|
|
|
97
91
|
line-height: var(--n-indicator-icon-size);
|
|
98
92
|
color: var(--n-indicator-text-color);
|
|
99
93
|
transition: color .3s var(--n-bezier);
|
|
100
|
-
`, [(0, icon_switch_cssr_1.
|
|
94
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()]), (0, cssr_1.cB)('icon', `
|
|
101
95
|
color: var(--n-indicator-text-color);
|
|
102
96
|
transition: color .3s var(--n-bezier);
|
|
103
|
-
`, [(0, icon_switch_cssr_1.
|
|
97
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()]), (0, cssr_1.cB)('base-icon', `
|
|
104
98
|
color: var(--n-indicator-text-color);
|
|
105
99
|
transition: color .3s var(--n-bezier);
|
|
106
|
-
`, [(0, icon_switch_cssr_1.
|
|
100
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()])])]), (0, cssr_1.cM)('vertical', 'flex-direction: column;', [(0, cssr_1.cNotM)('show-description', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step', 'padding-bottom: 8px;')])]), (0, cssr_1.c)('>', [(0, cssr_1.cB)('step', 'margin-bottom: 16px;', [(0, cssr_1.c)('&:last-child', 'margin-bottom: 0;'), (0, cssr_1.c)('>', [(0, cssr_1.cB)('step-indicator', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step-splitor', `
|
|
107
101
|
position: absolute;
|
|
108
102
|
bottom: -8px;
|
|
109
103
|
width: 1px;
|
|
@@ -1,16 +1,10 @@
|
|
|
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
|
-
const icon_switch_cssr_1 =
|
|
7
|
+
const icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.cssr");
|
|
14
8
|
|
|
15
9
|
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
16
10
|
// --n-bezier
|
|
@@ -63,7 +57,7 @@ exports.default = (0, cssr_1.cB)('switch', `
|
|
|
63
57
|
font-size: calc(var(--n-button-width) - 4px);
|
|
64
58
|
color: var(--n-loading-color);
|
|
65
59
|
transition: color .3s var(--n-bezier);
|
|
66
|
-
`, [(0, icon_switch_cssr_1.
|
|
60
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)({
|
|
67
61
|
left: '50%',
|
|
68
62
|
top: '50%',
|
|
69
63
|
originalTransform: 'translateX(-50%) translateY(-50%)'
|
|
@@ -111,7 +105,7 @@ exports.default = (0, cssr_1.cB)('switch', `
|
|
|
111
105
|
justify-content: center;
|
|
112
106
|
align-items: center;
|
|
113
107
|
line-height: 1;
|
|
114
|
-
`, [(0, icon_switch_cssr_1.
|
|
108
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()]), (0, cssr_1.cE)('button', `
|
|
115
109
|
align-items: center;
|
|
116
110
|
top: var(--n-offset);
|
|
117
111
|
left: var(--n-offset);
|
|
@@ -187,14 +187,15 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
187
187
|
flex-grow: 0;
|
|
188
188
|
flex-shrink: 0;
|
|
189
189
|
`), (0, cssr_1.cM)('line-type, bar-type', [(0, cssr_1.cB)('tabs-tab', `
|
|
190
|
-
font-weight: var(--n-tab-font-weight
|
|
190
|
+
font-weight: var(--n-tab-font-weight);
|
|
191
191
|
box-sizing: border-box;
|
|
192
192
|
vertical-align: bottom;
|
|
193
193
|
`, [(0, cssr_1.c)('&:hover', {
|
|
194
194
|
color: 'var(--n-tab-text-color-hover)'
|
|
195
|
-
}), (0, cssr_1.cM)('active',
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
}), (0, cssr_1.cM)('active', `
|
|
196
|
+
color: var(--n-tab-text-color-active);
|
|
197
|
+
font-weight: var(--n-tab-font-weight-active);
|
|
198
|
+
`), (0, cssr_1.cM)('disabled', {
|
|
198
199
|
color: 'var(--n-tab-text-color-disabled)'
|
|
199
200
|
})])]), (0, cssr_1.cB)('tabs-nav', [(0, cssr_1.cM)('line-type', [(0, cssr_1.cE)('prefix, suffix', `
|
|
200
201
|
transition: border-color .3s var(--n-bezier);
|