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,15 +1,15 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
-
import { h, nextTick,
|
|
2
|
+
import { computed, defineComponent, h, nextTick, ref, toRef, watchEffect } from 'vue';
|
|
3
3
|
import { useMergedState } from 'vooks';
|
|
4
4
|
import { NSelect } from '../../select';
|
|
5
5
|
import { NInput } from '../../input';
|
|
6
6
|
import { NBaseIcon } from '../../_internal';
|
|
7
|
-
import {
|
|
7
|
+
import { BackwardIcon, FastBackwardIcon, FastForwardIcon, ForwardIcon, MoreIcon } from '../../_internal/icons';
|
|
8
8
|
import { useConfig, useLocale, useTheme, useThemeClass } from '../../_mixins';
|
|
9
9
|
import { paginationLight } from '../styles';
|
|
10
10
|
import { pageItems } from './utils';
|
|
11
11
|
import style from './styles/index.cssr';
|
|
12
|
-
import { call, resolveSlot, warn, warnOnce } from '../../_utils';
|
|
12
|
+
import { call, resolveSlot, warn, warnOnce, createKey, smallerSize } from '../../_utils';
|
|
13
13
|
import useRtl from '../../_mixins/use-rtl';
|
|
14
14
|
const paginationProps = Object.assign(Object.assign({}, useTheme.props), { page: Number, defaultPage: {
|
|
15
15
|
type: Number,
|
|
@@ -25,7 +25,10 @@ const paginationProps = Object.assign(Object.assign({}, useTheme.props), { page:
|
|
|
25
25
|
default() {
|
|
26
26
|
return [10];
|
|
27
27
|
}
|
|
28
|
-
}, showQuickJumper: Boolean,
|
|
28
|
+
}, showQuickJumper: Boolean, size: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: 'medium'
|
|
31
|
+
}, disabled: Boolean, pageSlot: {
|
|
29
32
|
type: Number,
|
|
30
33
|
default: 9
|
|
31
34
|
}, prev: Function, next: Function, prefix: Function, suffix: Function, label: Function, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array],
|
|
@@ -89,11 +92,13 @@ export default defineComponent({
|
|
|
89
92
|
});
|
|
90
93
|
const inputSizeRef = computed(() => {
|
|
91
94
|
var _a, _b;
|
|
92
|
-
return ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Pagination) === null || _b === void 0 ? void 0 : _b.inputSize) ||
|
|
95
|
+
return (((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Pagination) === null || _b === void 0 ? void 0 : _b.inputSize) ||
|
|
96
|
+
smallerSize(props.size));
|
|
93
97
|
});
|
|
94
98
|
const selectSizeRef = computed(() => {
|
|
95
99
|
var _a, _b;
|
|
96
|
-
return ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Pagination) === null || _b === void 0 ? void 0 : _b.selectSize) ||
|
|
100
|
+
return (((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Pagination) === null || _b === void 0 ? void 0 : _b.selectSize) ||
|
|
101
|
+
smallerSize(props.size));
|
|
97
102
|
});
|
|
98
103
|
const startIndexRef = computed(() => {
|
|
99
104
|
return (mergedPageRef.value - 1) * mergedPageSizeRef.value;
|
|
@@ -186,10 +191,8 @@ export default defineComponent({
|
|
|
186
191
|
var _a;
|
|
187
192
|
if (e.code === 'Enter' || e.code === 'NumpadEnter') {
|
|
188
193
|
const page = parseInt(jumperValueRef.value);
|
|
189
|
-
if (!Number.isNaN(page)
|
|
190
|
-
page
|
|
191
|
-
page <= mergedPageCountRef.value) {
|
|
192
|
-
doUpdatePage(page);
|
|
194
|
+
if (!Number.isNaN(page)) {
|
|
195
|
+
doUpdatePage(Math.max(1, Math.min(page, mergedPageCountRef.value)));
|
|
193
196
|
jumperValueRef.value = '';
|
|
194
197
|
(_a = jumperRef.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
195
198
|
}
|
|
@@ -241,7 +244,7 @@ export default defineComponent({
|
|
|
241
244
|
disableTransitionOneTick();
|
|
242
245
|
}
|
|
243
246
|
function handleJumperInput(value) {
|
|
244
|
-
jumperValueRef.value = value;
|
|
247
|
+
jumperValueRef.value = value.replace(/\D+/g, '');
|
|
245
248
|
}
|
|
246
249
|
watchEffect(() => {
|
|
247
250
|
void mergedPageRef.value;
|
|
@@ -249,7 +252,8 @@ export default defineComponent({
|
|
|
249
252
|
disableTransitionOneTick();
|
|
250
253
|
});
|
|
251
254
|
const cssVarsRef = computed(() => {
|
|
252
|
-
const {
|
|
255
|
+
const { size } = props;
|
|
256
|
+
const { self: { buttonBorder, buttonBorderHover, buttonBorderPressed, buttonIconColor, buttonIconColorHover, buttonIconColorPressed, itemTextColor, itemTextColorHover, itemTextColorPressed, itemTextColorActive, itemTextColorDisabled, itemColor, itemColorHover, itemColorPressed, itemColorActive, itemColorActiveHover, itemColorDisabled, itemBorder, itemBorderHover, itemBorderPressed, itemBorderActive, itemBorderDisabled, itemBorderRadius, jumperTextColor, jumperTextColorDisabled, buttonColor, buttonColorHover, buttonColorPressed, [createKey('itemPadding', size)]: itemPadding, [createKey('itemMargin', size)]: itemMargin, [createKey('inputWidth', size)]: inputWidth, [createKey('selectWidth', size)]: selectWidth, [createKey('inputMargin', size)]: inputMargin, [createKey('selectMargin', size)]: selectMargin, [createKey('jumperFontSize', size)]: jumperFontSize, [createKey('prefixMargin', size)]: prefixMargin, [createKey('suffixMargin', size)]: suffixMargin, [createKey('itemSize', size)]: itemSize, [createKey('buttonIconSize', size)]: buttonIconSize, [createKey('itemFontSize', size)]: itemFontSize, [`${createKey('itemMargin', size)}Rtl`]: itemMarginRtl, [`${createKey('inputMargin', size)}Rtl`]: inputMarginRtl }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
253
257
|
return {
|
|
254
258
|
'--n-prefix-margin': prefixMargin,
|
|
255
259
|
'--n-suffix-margin': suffixMargin,
|
|
@@ -297,7 +301,12 @@ export default defineComponent({
|
|
|
297
301
|
};
|
|
298
302
|
});
|
|
299
303
|
const themeClassHandle = inlineThemeDisabled
|
|
300
|
-
? useThemeClass('pagination',
|
|
304
|
+
? useThemeClass('pagination', computed(() => {
|
|
305
|
+
let hash = '';
|
|
306
|
+
const { size } = props;
|
|
307
|
+
hash += size[0];
|
|
308
|
+
return hash;
|
|
309
|
+
}), cssVarsRef, props)
|
|
301
310
|
: undefined;
|
|
302
311
|
return {
|
|
303
312
|
rtlEnabled: rtlEnabledRef,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VNode, VNodeChild } from 'vue';
|
|
2
2
|
import { SelectBaseOption } from '../../select/src/interface';
|
|
3
|
+
export declare type Size = 'small' | 'medium' | 'large';
|
|
3
4
|
export declare type PaginationInfo = Parameters<RenderPrefix>[0];
|
|
4
5
|
export declare type RenderPrefix = (info: {
|
|
5
6
|
startIndex: number;
|
|
@@ -48,19 +48,17 @@ export default cB('pagination', `
|
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
margin: var(--n-suffix-margin);
|
|
51
|
-
`), c('> *:not(:first-child)',
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
transition: 'none!important'
|
|
57
|
-
})]), cB('pagination-quick-jumper', `
|
|
51
|
+
`), c('> *:not(:first-child)', `
|
|
52
|
+
margin: var(--n-item-margin);
|
|
53
|
+
`), cB('select', `
|
|
54
|
+
width: var(--n-select-width);
|
|
55
|
+
`), c('&.transition-disabled', [cB('pagination-item', 'transition: none!important;')]), cB('pagination-quick-jumper', `
|
|
58
56
|
white-space: nowrap;
|
|
59
57
|
display: flex;
|
|
60
58
|
color: var(--n-jumper-text-color);
|
|
61
59
|
transition: color .3s var(--n-bezier);
|
|
62
60
|
align-items: center;
|
|
63
|
-
font-size: var(--n-
|
|
61
|
+
font-size: var(--n-jumper-font-size);
|
|
64
62
|
`, [cB('input', `
|
|
65
63
|
margin: var(--n-input-margin);
|
|
66
64
|
width: var(--n-input-width);
|
|
@@ -89,38 +87,39 @@ export default cB('pagination', `
|
|
|
89
87
|
background: var(--n-button-color);
|
|
90
88
|
color: var(--n-button-icon-color);
|
|
91
89
|
border: var(--n-button-border);
|
|
90
|
+
padding: 0;
|
|
92
91
|
`, [cB('base-icon', `
|
|
93
92
|
font-size: var(--n-button-icon-size);
|
|
94
|
-
`)]), cNotM('disabled', [c('&:hover',
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
93
|
+
`)]), cNotM('disabled', [c('&:hover', `
|
|
94
|
+
background: var(--n-item-color-hover);
|
|
95
|
+
color: var(--n-item-text-color-hover);
|
|
96
|
+
border: var(--n-item-border-hover);
|
|
97
|
+
`, [cM('button', `
|
|
98
|
+
background: var(--n-button-color-hover);
|
|
99
|
+
border: var(--n-button-border-hover);
|
|
100
|
+
color: var(--n-button-icon-color-hover);
|
|
101
|
+
`)]), c('&:active', `
|
|
102
|
+
background: var(--n-item-color-pressed);
|
|
103
|
+
color: var(--n-item-text-color-pressed);
|
|
104
|
+
border: var(--n-item-border-pressed);
|
|
105
|
+
`, [cM('button', `
|
|
106
|
+
background: var(--n-button-color-pressed);
|
|
107
|
+
border: var(--n-button-border-pressed);
|
|
108
|
+
color: var(--n-button-icon-color-pressed);
|
|
109
|
+
`)]), cM('active', `
|
|
110
|
+
background: var(--n-item-color-active);
|
|
111
|
+
color: var(--n-item-text-color-active);
|
|
112
|
+
border: var(--n-item-border-active);
|
|
113
|
+
`, [c('&:hover', `
|
|
114
|
+
background: var(--n-item-color-active-hover);
|
|
115
|
+
`)])]), cM('disabled', `
|
|
117
116
|
cursor: not-allowed;
|
|
118
117
|
color: var(--n-item-text-color-disabled);
|
|
119
|
-
`, [cM('active, button',
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
118
|
+
`, [cM('active, button', `
|
|
119
|
+
background-color: var(--n-item-color-disabled);
|
|
120
|
+
border: var(--n-item-border-disabled);
|
|
121
|
+
`)])]), cM('disabled', `
|
|
122
|
+
cursor: not-allowed;
|
|
123
|
+
`, [cB('pagination-quick-jumper', `
|
|
124
|
+
color: var(--n-jumper-text-color-disabled);
|
|
125
|
+
`)])]);
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
itemPaddingSmall: string;
|
|
3
|
+
itemMarginSmall: string;
|
|
4
|
+
itemMarginSmallRtl: string;
|
|
5
|
+
itemPaddingMedium: string;
|
|
6
|
+
itemMarginMedium: string;
|
|
7
|
+
itemMarginMediumRtl: string;
|
|
8
|
+
itemPaddingLarge: string;
|
|
9
|
+
itemMarginLarge: string;
|
|
10
|
+
itemMarginLargeRtl: string;
|
|
11
|
+
buttonIconSizeSmall: string;
|
|
12
|
+
buttonIconSizeMedium: string;
|
|
13
|
+
buttonIconSizeLarge: string;
|
|
14
|
+
inputWidthSmall: string;
|
|
15
|
+
selectWidthSmall: string;
|
|
16
|
+
inputMarginSmall: string;
|
|
17
|
+
inputMarginSmallRtl: string;
|
|
18
|
+
selectMarginSmall: string;
|
|
19
|
+
prefixMarginSmall: string;
|
|
20
|
+
suffixMarginSmall: string;
|
|
21
|
+
inputWidthMedium: string;
|
|
22
|
+
selectWidthMedium: string;
|
|
23
|
+
inputMarginMedium: string;
|
|
24
|
+
inputMarginMediumRtl: string;
|
|
25
|
+
selectMarginMedium: string;
|
|
26
|
+
prefixMarginMedium: string;
|
|
27
|
+
suffixMarginMedium: string;
|
|
28
|
+
inputWidthLarge: string;
|
|
29
|
+
selectWidthLarge: string;
|
|
30
|
+
inputMarginLarge: string;
|
|
31
|
+
inputMarginLargeRtl: string;
|
|
32
|
+
selectMarginLarge: string;
|
|
33
|
+
prefixMarginLarge: string;
|
|
34
|
+
suffixMarginLarge: string;
|
|
15
35
|
};
|
|
16
36
|
export default _default;
|
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
itemPaddingSmall: '0 4px',
|
|
3
|
+
itemMarginSmall: '0 0 0 8px',
|
|
4
|
+
itemMarginSmallRtl: '0 8px 0 0',
|
|
5
|
+
itemPaddingMedium: '0 4px',
|
|
6
|
+
itemMarginMedium: '0 0 0 8px',
|
|
7
|
+
itemMarginMediumRtl: '0 8px 0 0',
|
|
8
|
+
itemPaddingLarge: '0 4px',
|
|
9
|
+
itemMarginLarge: '0 0 0 8px',
|
|
10
|
+
itemMarginLargeRtl: '0 8px 0 0',
|
|
11
|
+
buttonIconSizeSmall: '14px',
|
|
12
|
+
buttonIconSizeMedium: '16px',
|
|
13
|
+
buttonIconSizeLarge: '18px',
|
|
14
|
+
inputWidthSmall: '60px',
|
|
15
|
+
selectWidthSmall: 'unset',
|
|
16
|
+
inputMarginSmall: '0 0 0 8px',
|
|
17
|
+
inputMarginSmallRtl: '0 8px 0 0',
|
|
18
|
+
selectMarginSmall: '0 0 0 8px',
|
|
19
|
+
prefixMarginSmall: '0 8px 0 0',
|
|
20
|
+
suffixMarginSmall: '0 0 0 8px',
|
|
21
|
+
inputWidthMedium: '60px',
|
|
22
|
+
selectWidthMedium: 'unset',
|
|
23
|
+
inputMarginMedium: '0 0 0 8px',
|
|
24
|
+
inputMarginMediumRtl: '0 8px 0 0',
|
|
25
|
+
selectMarginMedium: '0 0 0 8px',
|
|
26
|
+
prefixMarginMedium: '0 8px 0 0',
|
|
27
|
+
suffixMarginMedium: '0 0 0 8px',
|
|
28
|
+
inputWidthLarge: '60px',
|
|
29
|
+
selectWidthLarge: 'unset',
|
|
30
|
+
inputMarginLarge: '0 0 0 8px',
|
|
31
|
+
inputMarginLargeRtl: '0 8px 0 0',
|
|
32
|
+
selectMarginLarge: '0 0 0 8px',
|
|
33
|
+
prefixMarginLarge: '0 8px 0 0',
|
|
34
|
+
suffixMarginLarge: '0 0 0 8px'
|
|
15
35
|
};
|
|
@@ -26,22 +26,50 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
26
26
|
itemBorderActive: string;
|
|
27
27
|
itemBorderDisabled: string;
|
|
28
28
|
itemBorderRadius: string;
|
|
29
|
-
|
|
29
|
+
itemSizeSmall: string;
|
|
30
|
+
itemSizeMedium: string;
|
|
31
|
+
itemSizeLarge: string;
|
|
32
|
+
itemFontSizeSmall: string;
|
|
33
|
+
itemFontSizeMedium: string;
|
|
34
|
+
itemFontSizeLarge: string;
|
|
35
|
+
jumperFontSizeSmall: string;
|
|
36
|
+
jumperFontSizeMedium: string;
|
|
37
|
+
jumperFontSizeLarge: string;
|
|
30
38
|
jumperTextColor: string;
|
|
31
39
|
jumperTextColorDisabled: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
itemPaddingSmall: string;
|
|
41
|
+
itemMarginSmall: string;
|
|
42
|
+
itemMarginSmallRtl: string;
|
|
43
|
+
itemPaddingMedium: string;
|
|
44
|
+
itemMarginMedium: string;
|
|
45
|
+
itemMarginMediumRtl: string;
|
|
46
|
+
itemPaddingLarge: string;
|
|
47
|
+
itemMarginLarge: string;
|
|
48
|
+
itemMarginLargeRtl: string;
|
|
49
|
+
buttonIconSizeSmall: string;
|
|
50
|
+
buttonIconSizeMedium: string;
|
|
51
|
+
buttonIconSizeLarge: string;
|
|
52
|
+
inputWidthSmall: string;
|
|
53
|
+
selectWidthSmall: string;
|
|
54
|
+
inputMarginSmall: string;
|
|
55
|
+
inputMarginSmallRtl: string;
|
|
56
|
+
selectMarginSmall: string;
|
|
57
|
+
prefixMarginSmall: string;
|
|
58
|
+
suffixMarginSmall: string;
|
|
59
|
+
inputWidthMedium: string;
|
|
60
|
+
selectWidthMedium: string;
|
|
61
|
+
inputMarginMedium: string;
|
|
62
|
+
inputMarginMediumRtl: string;
|
|
63
|
+
selectMarginMedium: string;
|
|
64
|
+
prefixMarginMedium: string;
|
|
65
|
+
suffixMarginMedium: string;
|
|
66
|
+
inputWidthLarge: string;
|
|
67
|
+
selectWidthLarge: string;
|
|
68
|
+
inputMarginLarge: string;
|
|
69
|
+
inputMarginLargeRtl: string;
|
|
70
|
+
selectMarginLarge: string;
|
|
71
|
+
prefixMarginLarge: string;
|
|
72
|
+
suffixMarginLarge: string;
|
|
45
73
|
};
|
|
46
74
|
export declare type PaginationThemeVars = ReturnType<typeof self>;
|
|
47
75
|
declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
@@ -71,22 +99,50 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
71
99
|
itemBorderActive: string;
|
|
72
100
|
itemBorderDisabled: string;
|
|
73
101
|
itemBorderRadius: string;
|
|
74
|
-
|
|
102
|
+
itemSizeSmall: string;
|
|
103
|
+
itemSizeMedium: string;
|
|
104
|
+
itemSizeLarge: string;
|
|
105
|
+
itemFontSizeSmall: string;
|
|
106
|
+
itemFontSizeMedium: string;
|
|
107
|
+
itemFontSizeLarge: string;
|
|
108
|
+
jumperFontSizeSmall: string;
|
|
109
|
+
jumperFontSizeMedium: string;
|
|
110
|
+
jumperFontSizeLarge: string;
|
|
75
111
|
jumperTextColor: string;
|
|
76
112
|
jumperTextColorDisabled: string;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
113
|
+
itemPaddingSmall: string;
|
|
114
|
+
itemMarginSmall: string;
|
|
115
|
+
itemMarginSmallRtl: string;
|
|
116
|
+
itemPaddingMedium: string;
|
|
117
|
+
itemMarginMedium: string;
|
|
118
|
+
itemMarginMediumRtl: string;
|
|
119
|
+
itemPaddingLarge: string;
|
|
120
|
+
itemMarginLarge: string;
|
|
121
|
+
itemMarginLargeRtl: string;
|
|
122
|
+
buttonIconSizeSmall: string;
|
|
123
|
+
buttonIconSizeMedium: string;
|
|
124
|
+
buttonIconSizeLarge: string;
|
|
125
|
+
inputWidthSmall: string;
|
|
126
|
+
selectWidthSmall: string;
|
|
127
|
+
inputMarginSmall: string;
|
|
128
|
+
inputMarginSmallRtl: string;
|
|
129
|
+
selectMarginSmall: string;
|
|
130
|
+
prefixMarginSmall: string;
|
|
131
|
+
suffixMarginSmall: string;
|
|
132
|
+
inputWidthMedium: string;
|
|
133
|
+
selectWidthMedium: string;
|
|
134
|
+
inputMarginMedium: string;
|
|
135
|
+
inputMarginMediumRtl: string;
|
|
136
|
+
selectMarginMedium: string;
|
|
137
|
+
prefixMarginMedium: string;
|
|
138
|
+
suffixMarginMedium: string;
|
|
139
|
+
inputWidthLarge: string;
|
|
140
|
+
selectWidthLarge: string;
|
|
141
|
+
inputMarginLarge: string;
|
|
142
|
+
inputMarginLargeRtl: string;
|
|
143
|
+
selectMarginLarge: string;
|
|
144
|
+
prefixMarginLarge: string;
|
|
145
|
+
suffixMarginLarge: string;
|
|
90
146
|
}, {
|
|
91
147
|
Select: import("../../_mixins").Theme<"Select", {
|
|
92
148
|
menuBoxShadow: string;
|
|
@@ -4,8 +4,12 @@ import { commonLight } from '../../_styles/common';
|
|
|
4
4
|
import commonVariables from './_common';
|
|
5
5
|
import { createTheme } from '../../_mixins';
|
|
6
6
|
export const self = (vars) => {
|
|
7
|
-
const { textColor2, primaryColor, primaryColorHover, primaryColorPressed, inputColorDisabled, textColorDisabled, borderColor, borderRadius,
|
|
8
|
-
|
|
7
|
+
const { textColor2, primaryColor, primaryColorHover, primaryColorPressed, inputColorDisabled, textColorDisabled, borderColor, borderRadius,
|
|
8
|
+
// item font size
|
|
9
|
+
fontSizeTiny, fontSizeSmall, fontSizeMedium,
|
|
10
|
+
// item size
|
|
11
|
+
heightTiny, heightSmall, heightMedium } = vars;
|
|
12
|
+
return Object.assign(Object.assign({}, commonVariables), { buttonColor: '#0000', buttonColorHover: '#0000', buttonColorPressed: '#0000', buttonBorder: `1px solid ${borderColor}`, buttonBorderHover: `1px solid ${borderColor}`, buttonBorderPressed: `1px solid ${borderColor}`, buttonIconColor: textColor2, buttonIconColorHover: textColor2, buttonIconColorPressed: textColor2, itemTextColor: textColor2, itemTextColorHover: primaryColorHover, itemTextColorPressed: primaryColorPressed, itemTextColorActive: primaryColor, itemTextColorDisabled: textColorDisabled, itemColor: '#0000', itemColorHover: '#0000', itemColorPressed: '#0000', itemColorActive: '#0000', itemColorActiveHover: '#0000', itemColorDisabled: inputColorDisabled, itemBorder: '1px solid #0000', itemBorderHover: '1px solid #0000', itemBorderPressed: '1px solid #0000', itemBorderActive: `1px solid ${primaryColor}`, itemBorderDisabled: `1px solid ${borderColor}`, itemBorderRadius: borderRadius, itemSizeSmall: heightTiny, itemSizeMedium: heightSmall, itemSizeLarge: heightMedium, itemFontSizeSmall: fontSizeTiny, itemFontSizeMedium: fontSizeSmall, itemFontSizeLarge: fontSizeMedium, jumperFontSizeSmall: fontSizeTiny, jumperFontSizeMedium: fontSizeSmall, jumperFontSizeLarge: fontSizeMedium, jumperTextColor: textColor2, jumperTextColorDisabled: textColorDisabled });
|
|
9
13
|
};
|
|
10
14
|
const paginationLight = createTheme({
|
|
11
15
|
name: 'Pagination',
|
|
@@ -1626,12 +1626,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1626
1626
|
borderRadius: string;
|
|
1627
1627
|
borderRadiusSmall: string;
|
|
1628
1628
|
fontSize: string;
|
|
1629
|
+
fontSizeMini: string;
|
|
1629
1630
|
fontSizeTiny: string;
|
|
1630
1631
|
fontSizeSmall: string;
|
|
1631
1632
|
fontSizeMedium: string;
|
|
1632
1633
|
fontSizeLarge: string;
|
|
1633
1634
|
fontSizeHuge: string;
|
|
1634
1635
|
lineHeight: string;
|
|
1636
|
+
heightMini: string;
|
|
1635
1637
|
heightTiny: string;
|
|
1636
1638
|
heightSmall: string;
|
|
1637
1639
|
heightMedium: string;
|
|
@@ -174,16 +174,16 @@ export default defineComponent({
|
|
|
174
174
|
contentNode = h('div', mergeProps({
|
|
175
175
|
class: [
|
|
176
176
|
`${mergedClsPrefix}-popover`,
|
|
177
|
+
`${mergedClsPrefix}-popover-shared`,
|
|
177
178
|
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value,
|
|
178
179
|
extraClass.map((v) => `${mergedClsPrefix}-${v}`),
|
|
179
180
|
{
|
|
180
181
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
181
|
-
[`${mergedClsPrefix}-popover--overlap`]: props.overlap,
|
|
182
|
-
[`${mergedClsPrefix}-popover--show-arrow`]: props.showArrow,
|
|
183
182
|
[`${mergedClsPrefix}-popover--show-header`]: !isSlotEmpty(slots.header),
|
|
184
183
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
185
|
-
[`${mergedClsPrefix}-popover--
|
|
186
|
-
[`${mergedClsPrefix}-popover--
|
|
184
|
+
[`${mergedClsPrefix}-popover-shared--overlap`]: props.overlap,
|
|
185
|
+
[`${mergedClsPrefix}-popover-shared--show-arrow`]: props.showArrow,
|
|
186
|
+
[`${mergedClsPrefix}-popover-shared--center-arrow`]: props.arrowPointToCenter
|
|
187
187
|
}
|
|
188
188
|
],
|
|
189
189
|
ref: bodyRef,
|
|
@@ -199,9 +199,9 @@ export default defineComponent({
|
|
|
199
199
|
// to place the body & transition animation.
|
|
200
200
|
// Shadow class exists for reuse box-shadow.
|
|
201
201
|
[
|
|
202
|
-
`${mergedClsPrefix}-popover`,
|
|
202
|
+
`${mergedClsPrefix}-popover-shared`,
|
|
203
203
|
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value,
|
|
204
|
-
props.overlap && `${mergedClsPrefix}-popover--overlap`
|
|
204
|
+
props.overlap && `${mergedClsPrefix}-popover-shared--overlap`
|
|
205
205
|
], bodyRef, styleRef.value, handleMouseEnter, handleMouseLeave);
|
|
206
206
|
}
|
|
207
207
|
return props.displayDirective === 'show' || props.show
|
|
@@ -27,7 +27,6 @@ export default c([cB('popover', `
|
|
|
27
27
|
box-shadow .3s var(--n-bezier),
|
|
28
28
|
background-color .3s var(--n-bezier),
|
|
29
29
|
color .3s var(--n-bezier);
|
|
30
|
-
transform-origin: inherit;
|
|
31
30
|
position: relative;
|
|
32
31
|
font-size: var(--n-font-size);
|
|
33
32
|
color: var(--n-text-color);
|
|
@@ -35,22 +34,7 @@ export default c([cB('popover', `
|
|
|
35
34
|
`, [c('>', [cB('scrollbar', `
|
|
36
35
|
height: inherit;
|
|
37
36
|
max-height: inherit;
|
|
38
|
-
`)]),
|
|
39
|
-
c('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
40
|
-
opacity: 0;
|
|
41
|
-
transform: scale(.85);
|
|
42
|
-
`), c('&.popover-transition-enter-to, &.popover-transition-leave-from', `
|
|
43
|
-
transform: scale(1);
|
|
44
|
-
opacity: 1;
|
|
45
|
-
`), c('&.popover-transition-enter-active', `
|
|
46
|
-
transition:
|
|
47
|
-
opacity .15s var(--n-bezier-ease-out),
|
|
48
|
-
transform .15s var(--n-bezier-ease-out);
|
|
49
|
-
`), c('&.popover-transition-leave-active', `
|
|
50
|
-
transition:
|
|
51
|
-
opacity .15s var(--n-bezier-ease-in),
|
|
52
|
-
transform .15s var(--n-bezier-ease-in);
|
|
53
|
-
`), cNotM('raw', `
|
|
37
|
+
`)]), cNotM('raw', `
|
|
54
38
|
background-color: var(--n-color);
|
|
55
39
|
border-radius: var(--n-border-radius);
|
|
56
40
|
`, [cNotM('scrollable', [cNotM('show-header', 'padding: var(--n-padding);')])]), cE('header', `
|
|
@@ -73,7 +57,24 @@ c('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
|
73
57
|
transform: rotate(45deg);
|
|
74
58
|
background-color: var(--n-color);
|
|
75
59
|
pointer-events: all;
|
|
76
|
-
`)])]),
|
|
60
|
+
`)])]), cB('popover-shared', `
|
|
61
|
+
transform-origin: inherit;
|
|
62
|
+
`, [// body transition
|
|
63
|
+
c('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: scale(.85);
|
|
66
|
+
`), c('&.popover-transition-enter-to, &.popover-transition-leave-from', `
|
|
67
|
+
transform: scale(1);
|
|
68
|
+
opacity: 1;
|
|
69
|
+
`), c('&.popover-transition-enter-active', `
|
|
70
|
+
transition:
|
|
71
|
+
opacity .15s var(--n-bezier-ease-out),
|
|
72
|
+
transform .15s var(--n-bezier-ease-out);
|
|
73
|
+
`), c('&.popover-transition-leave-active', `
|
|
74
|
+
transition:
|
|
75
|
+
opacity .15s var(--n-bezier-ease-in),
|
|
76
|
+
transform .15s var(--n-bezier-ease-in);
|
|
77
|
+
`)]), placementStyle('top-start', `
|
|
77
78
|
top: calc(${arrowSize} / -2 + 1px);
|
|
78
79
|
left: calc(${getArrowOffset('top-start')} - var(--v-offset-left));
|
|
79
80
|
`), placementStyle('top', `
|
|
@@ -126,7 +127,7 @@ c('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
|
126
127
|
const targetSize = `var(--v-target-${sizeType}, 0px)`;
|
|
127
128
|
const centerOffset = `calc((${targetSize} - ${arrowSize}) / 2)`;
|
|
128
129
|
const offset = getArrowOffset(placement);
|
|
129
|
-
return c(`[v-placement="${placement}"] >`, [cB('popover', [cM('center-arrow', [cB('popover-arrow', `${direction}: calc(max(${centerOffset}, ${offset}) ${isReverse ? '+' : '-'} var(--v-offset-${isVertical ? 'left' : 'top'}));`)])])]);
|
|
130
|
+
return c(`[v-placement="${placement}"] >`, [cB('popover-shared', [cM('center-arrow', [cB('popover-arrow', `${direction}: calc(max(${centerOffset}, ${offset}) ${isReverse ? '+' : '-'} var(--v-offset-${isVertical ? 'left' : 'top'}));`)])])]);
|
|
130
131
|
});
|
|
131
132
|
})]);
|
|
132
133
|
|
|
@@ -137,9 +138,9 @@ function getArrowOffset(placement) {
|
|
|
137
138
|
function placementStyle(placement, arrowStyleLiteral) {
|
|
138
139
|
const position = placement.split('-')[0];
|
|
139
140
|
const sizeStyle = ['top', 'bottom'].includes(position) ? 'height: var(--n-space-arrow);' : 'width: var(--n-space-arrow);';
|
|
140
|
-
return c(`[v-placement="${placement}"] >`, [cB('popover
|
|
141
|
+
return c(`[v-placement="${placement}"] >`, [cB('popover-shared', `
|
|
141
142
|
margin-${oppositePlacement[position]}: var(--n-space);
|
|
142
|
-
|
|
143
|
+
`, [cM('show-arrow', `
|
|
143
144
|
margin-${oppositePlacement[position]}: var(--n-space-arrow);
|
|
144
145
|
`), cM('overlap', `
|
|
145
146
|
margin: 0;
|