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
|
@@ -30,7 +30,10 @@ const paginationProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props
|
|
|
30
30
|
default() {
|
|
31
31
|
return [10];
|
|
32
32
|
}
|
|
33
|
-
}, showQuickJumper: Boolean,
|
|
33
|
+
}, showQuickJumper: Boolean, size: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: 'medium'
|
|
36
|
+
}, disabled: Boolean, pageSlot: {
|
|
34
37
|
type: Number,
|
|
35
38
|
default: 9
|
|
36
39
|
}, prev: Function, next: Function, prefix: Function, suffix: Function, label: Function, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array],
|
|
@@ -94,11 +97,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
94
97
|
});
|
|
95
98
|
const inputSizeRef = (0, vue_1.computed)(() => {
|
|
96
99
|
var _a, _b;
|
|
97
|
-
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) ||
|
|
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.inputSize) ||
|
|
101
|
+
(0, _utils_1.smallerSize)(props.size));
|
|
98
102
|
});
|
|
99
103
|
const selectSizeRef = (0, vue_1.computed)(() => {
|
|
100
104
|
var _a, _b;
|
|
101
|
-
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) ||
|
|
105
|
+
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) ||
|
|
106
|
+
(0, _utils_1.smallerSize)(props.size));
|
|
102
107
|
});
|
|
103
108
|
const startIndexRef = (0, vue_1.computed)(() => {
|
|
104
109
|
return (mergedPageRef.value - 1) * mergedPageSizeRef.value;
|
|
@@ -191,10 +196,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
191
196
|
var _a;
|
|
192
197
|
if (e.code === 'Enter' || e.code === 'NumpadEnter') {
|
|
193
198
|
const page = parseInt(jumperValueRef.value);
|
|
194
|
-
if (!Number.isNaN(page)
|
|
195
|
-
page
|
|
196
|
-
page <= mergedPageCountRef.value) {
|
|
197
|
-
doUpdatePage(page);
|
|
199
|
+
if (!Number.isNaN(page)) {
|
|
200
|
+
doUpdatePage(Math.max(1, Math.min(page, mergedPageCountRef.value)));
|
|
198
201
|
jumperValueRef.value = '';
|
|
199
202
|
(_a = jumperRef.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
200
203
|
}
|
|
@@ -246,7 +249,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
246
249
|
disableTransitionOneTick();
|
|
247
250
|
}
|
|
248
251
|
function handleJumperInput(value) {
|
|
249
|
-
jumperValueRef.value = value;
|
|
252
|
+
jumperValueRef.value = value.replace(/\D+/g, '');
|
|
250
253
|
}
|
|
251
254
|
(0, vue_1.watchEffect)(() => {
|
|
252
255
|
void mergedPageRef.value;
|
|
@@ -254,7 +257,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
254
257
|
disableTransitionOneTick();
|
|
255
258
|
});
|
|
256
259
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
257
|
-
const {
|
|
260
|
+
const { size } = props;
|
|
261
|
+
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, [(0, _utils_1.createKey)('itemPadding', size)]: itemPadding, [(0, _utils_1.createKey)('itemMargin', size)]: itemMargin, [(0, _utils_1.createKey)('inputWidth', size)]: inputWidth, [(0, _utils_1.createKey)('selectWidth', size)]: selectWidth, [(0, _utils_1.createKey)('inputMargin', size)]: inputMargin, [(0, _utils_1.createKey)('selectMargin', size)]: selectMargin, [(0, _utils_1.createKey)('jumperFontSize', size)]: jumperFontSize, [(0, _utils_1.createKey)('prefixMargin', size)]: prefixMargin, [(0, _utils_1.createKey)('suffixMargin', size)]: suffixMargin, [(0, _utils_1.createKey)('itemSize', size)]: itemSize, [(0, _utils_1.createKey)('buttonIconSize', size)]: buttonIconSize, [(0, _utils_1.createKey)('itemFontSize', size)]: itemFontSize, [`${(0, _utils_1.createKey)('itemMargin', size)}Rtl`]: itemMarginRtl, [`${(0, _utils_1.createKey)('inputMargin', size)}Rtl`]: inputMarginRtl }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
258
262
|
return {
|
|
259
263
|
'--n-prefix-margin': prefixMargin,
|
|
260
264
|
'--n-suffix-margin': suffixMargin,
|
|
@@ -302,7 +306,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
302
306
|
};
|
|
303
307
|
});
|
|
304
308
|
const themeClassHandle = inlineThemeDisabled
|
|
305
|
-
? (0, _mixins_1.useThemeClass)('pagination',
|
|
309
|
+
? (0, _mixins_1.useThemeClass)('pagination', (0, vue_1.computed)(() => {
|
|
310
|
+
let hash = '';
|
|
311
|
+
const { size } = props;
|
|
312
|
+
hash += size[0];
|
|
313
|
+
return hash;
|
|
314
|
+
}), cssVarsRef, props)
|
|
306
315
|
: undefined;
|
|
307
316
|
return {
|
|
308
317
|
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;
|
|
@@ -55,19 +55,17 @@ exports.default = (0, cssr_1.cB)('pagination', `
|
|
|
55
55
|
display: flex;
|
|
56
56
|
align-items: center;
|
|
57
57
|
margin: var(--n-suffix-margin);
|
|
58
|
-
`), (0, cssr_1.c)('> *:not(:first-child)',
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
transition: 'none!important'
|
|
64
|
-
})]), (0, cssr_1.cB)('pagination-quick-jumper', `
|
|
58
|
+
`), (0, cssr_1.c)('> *:not(:first-child)', `
|
|
59
|
+
margin: var(--n-item-margin);
|
|
60
|
+
`), (0, cssr_1.cB)('select', `
|
|
61
|
+
width: var(--n-select-width);
|
|
62
|
+
`), (0, cssr_1.c)('&.transition-disabled', [(0, cssr_1.cB)('pagination-item', 'transition: none!important;')]), (0, cssr_1.cB)('pagination-quick-jumper', `
|
|
65
63
|
white-space: nowrap;
|
|
66
64
|
display: flex;
|
|
67
65
|
color: var(--n-jumper-text-color);
|
|
68
66
|
transition: color .3s var(--n-bezier);
|
|
69
67
|
align-items: center;
|
|
70
|
-
font-size: var(--n-
|
|
68
|
+
font-size: var(--n-jumper-font-size);
|
|
71
69
|
`, [(0, cssr_1.cB)('input', `
|
|
72
70
|
margin: var(--n-input-margin);
|
|
73
71
|
width: var(--n-input-width);
|
|
@@ -96,38 +94,39 @@ exports.default = (0, cssr_1.cB)('pagination', `
|
|
|
96
94
|
background: var(--n-button-color);
|
|
97
95
|
color: var(--n-button-icon-color);
|
|
98
96
|
border: var(--n-button-border);
|
|
97
|
+
padding: 0;
|
|
99
98
|
`, [(0, cssr_1.cB)('base-icon', `
|
|
100
99
|
font-size: var(--n-button-icon-size);
|
|
101
|
-
`)]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover',
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
100
|
+
`)]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', `
|
|
101
|
+
background: var(--n-item-color-hover);
|
|
102
|
+
color: var(--n-item-text-color-hover);
|
|
103
|
+
border: var(--n-item-border-hover);
|
|
104
|
+
`, [(0, cssr_1.cM)('button', `
|
|
105
|
+
background: var(--n-button-color-hover);
|
|
106
|
+
border: var(--n-button-border-hover);
|
|
107
|
+
color: var(--n-button-icon-color-hover);
|
|
108
|
+
`)]), (0, cssr_1.c)('&:active', `
|
|
109
|
+
background: var(--n-item-color-pressed);
|
|
110
|
+
color: var(--n-item-text-color-pressed);
|
|
111
|
+
border: var(--n-item-border-pressed);
|
|
112
|
+
`, [(0, cssr_1.cM)('button', `
|
|
113
|
+
background: var(--n-button-color-pressed);
|
|
114
|
+
border: var(--n-button-border-pressed);
|
|
115
|
+
color: var(--n-button-icon-color-pressed);
|
|
116
|
+
`)]), (0, cssr_1.cM)('active', `
|
|
117
|
+
background: var(--n-item-color-active);
|
|
118
|
+
color: var(--n-item-text-color-active);
|
|
119
|
+
border: var(--n-item-border-active);
|
|
120
|
+
`, [(0, cssr_1.c)('&:hover', `
|
|
121
|
+
background: var(--n-item-color-active-hover);
|
|
122
|
+
`)])]), (0, cssr_1.cM)('disabled', `
|
|
124
123
|
cursor: not-allowed;
|
|
125
124
|
color: var(--n-item-text-color-disabled);
|
|
126
|
-
`, [(0, cssr_1.cM)('active, button',
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
125
|
+
`, [(0, cssr_1.cM)('active, button', `
|
|
126
|
+
background-color: var(--n-item-color-disabled);
|
|
127
|
+
border: var(--n-item-border-disabled);
|
|
128
|
+
`)])]), (0, cssr_1.cM)('disabled', `
|
|
129
|
+
cursor: not-allowed;
|
|
130
|
+
`, [(0, cssr_1.cB)('pagination-quick-jumper', `
|
|
131
|
+
color: var(--n-jumper-text-color-disabled);
|
|
132
|
+
`)])]);
|
|
@@ -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,17 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
itemPaddingSmall: '0 4px',
|
|
5
|
+
itemMarginSmall: '0 0 0 8px',
|
|
6
|
+
itemMarginSmallRtl: '0 8px 0 0',
|
|
7
|
+
itemPaddingMedium: '0 4px',
|
|
8
|
+
itemMarginMedium: '0 0 0 8px',
|
|
9
|
+
itemMarginMediumRtl: '0 8px 0 0',
|
|
10
|
+
itemPaddingLarge: '0 4px',
|
|
11
|
+
itemMarginLarge: '0 0 0 8px',
|
|
12
|
+
itemMarginLargeRtl: '0 8px 0 0',
|
|
13
|
+
buttonIconSizeSmall: '14px',
|
|
14
|
+
buttonIconSizeMedium: '16px',
|
|
15
|
+
buttonIconSizeLarge: '18px',
|
|
16
|
+
inputWidthSmall: '60px',
|
|
17
|
+
selectWidthSmall: 'unset',
|
|
18
|
+
inputMarginSmall: '0 0 0 8px',
|
|
19
|
+
inputMarginSmallRtl: '0 8px 0 0',
|
|
20
|
+
selectMarginSmall: '0 0 0 8px',
|
|
21
|
+
prefixMarginSmall: '0 8px 0 0',
|
|
22
|
+
suffixMarginSmall: '0 0 0 8px',
|
|
23
|
+
inputWidthMedium: '60px',
|
|
24
|
+
selectWidthMedium: 'unset',
|
|
25
|
+
inputMarginMedium: '0 0 0 8px',
|
|
26
|
+
inputMarginMediumRtl: '0 8px 0 0',
|
|
27
|
+
selectMarginMedium: '0 0 0 8px',
|
|
28
|
+
prefixMarginMedium: '0 8px 0 0',
|
|
29
|
+
suffixMarginMedium: '0 0 0 8px',
|
|
30
|
+
inputWidthLarge: '60px',
|
|
31
|
+
selectWidthLarge: 'unset',
|
|
32
|
+
inputMarginLarge: '0 0 0 8px',
|
|
33
|
+
inputMarginLargeRtl: '0 8px 0 0',
|
|
34
|
+
selectMarginLarge: '0 0 0 8px',
|
|
35
|
+
prefixMarginLarge: '0 8px 0 0',
|
|
36
|
+
suffixMarginLarge: '0 0 0 8px'
|
|
17
37
|
};
|
|
@@ -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;
|
|
@@ -10,8 +10,12 @@ const common_1 = require("../../_styles/common");
|
|
|
10
10
|
const _common_1 = __importDefault(require("./_common"));
|
|
11
11
|
const _mixins_1 = require("../../_mixins");
|
|
12
12
|
const self = (vars) => {
|
|
13
|
-
const { textColor2, primaryColor, primaryColorHover, primaryColorPressed, inputColorDisabled, textColorDisabled, borderColor, borderRadius,
|
|
14
|
-
|
|
13
|
+
const { textColor2, primaryColor, primaryColorHover, primaryColorPressed, inputColorDisabled, textColorDisabled, borderColor, borderRadius,
|
|
14
|
+
// item font size
|
|
15
|
+
fontSizeTiny, fontSizeSmall, fontSizeMedium,
|
|
16
|
+
// item size
|
|
17
|
+
heightTiny, heightSmall, heightMedium } = vars;
|
|
18
|
+
return Object.assign(Object.assign({}, _common_1.default), { 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 });
|
|
15
19
|
};
|
|
16
20
|
exports.self = self;
|
|
17
21
|
const paginationLight = (0, _mixins_1.createTheme)({
|
|
@@ -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;
|
|
@@ -181,16 +181,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
181
181
|
contentNode = (0, vue_1.h)('div', (0, vue_1.mergeProps)({
|
|
182
182
|
class: [
|
|
183
183
|
`${mergedClsPrefix}-popover`,
|
|
184
|
+
`${mergedClsPrefix}-popover-shared`,
|
|
184
185
|
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value,
|
|
185
186
|
extraClass.map((v) => `${mergedClsPrefix}-${v}`),
|
|
186
187
|
{
|
|
187
188
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
188
|
-
[`${mergedClsPrefix}-popover--overlap`]: props.overlap,
|
|
189
|
-
[`${mergedClsPrefix}-popover--show-arrow`]: props.showArrow,
|
|
190
189
|
[`${mergedClsPrefix}-popover--show-header`]: !(0, _utils_1.isSlotEmpty)(slots.header),
|
|
191
190
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
192
|
-
[`${mergedClsPrefix}-popover--
|
|
193
|
-
[`${mergedClsPrefix}-popover--
|
|
191
|
+
[`${mergedClsPrefix}-popover-shared--overlap`]: props.overlap,
|
|
192
|
+
[`${mergedClsPrefix}-popover-shared--show-arrow`]: props.showArrow,
|
|
193
|
+
[`${mergedClsPrefix}-popover-shared--center-arrow`]: props.arrowPointToCenter
|
|
194
194
|
}
|
|
195
195
|
],
|
|
196
196
|
ref: bodyRef,
|
|
@@ -206,9 +206,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
206
206
|
// to place the body & transition animation.
|
|
207
207
|
// Shadow class exists for reuse box-shadow.
|
|
208
208
|
[
|
|
209
|
-
`${mergedClsPrefix}-popover`,
|
|
209
|
+
`${mergedClsPrefix}-popover-shared`,
|
|
210
210
|
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value,
|
|
211
|
-
props.overlap && `${mergedClsPrefix}-popover--overlap`
|
|
211
|
+
props.overlap && `${mergedClsPrefix}-popover-shared--overlap`
|
|
212
212
|
], bodyRef, styleRef.value, handleMouseEnter, handleMouseLeave);
|
|
213
213
|
}
|
|
214
214
|
return props.displayDirective === 'show' || props.show
|
|
@@ -35,7 +35,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
35
35
|
box-shadow .3s var(--n-bezier),
|
|
36
36
|
background-color .3s var(--n-bezier),
|
|
37
37
|
color .3s var(--n-bezier);
|
|
38
|
-
transform-origin: inherit;
|
|
39
38
|
position: relative;
|
|
40
39
|
font-size: var(--n-font-size);
|
|
41
40
|
color: var(--n-text-color);
|
|
@@ -43,22 +42,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
43
42
|
`, [(0, cssr_1.c)('>', [(0, cssr_1.cB)('scrollbar', `
|
|
44
43
|
height: inherit;
|
|
45
44
|
max-height: inherit;
|
|
46
|
-
`)]),
|
|
47
|
-
(0, cssr_1.c)('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
48
|
-
opacity: 0;
|
|
49
|
-
transform: scale(.85);
|
|
50
|
-
`), (0, cssr_1.c)('&.popover-transition-enter-to, &.popover-transition-leave-from', `
|
|
51
|
-
transform: scale(1);
|
|
52
|
-
opacity: 1;
|
|
53
|
-
`), (0, cssr_1.c)('&.popover-transition-enter-active', `
|
|
54
|
-
transition:
|
|
55
|
-
opacity .15s var(--n-bezier-ease-out),
|
|
56
|
-
transform .15s var(--n-bezier-ease-out);
|
|
57
|
-
`), (0, cssr_1.c)('&.popover-transition-leave-active', `
|
|
58
|
-
transition:
|
|
59
|
-
opacity .15s var(--n-bezier-ease-in),
|
|
60
|
-
transform .15s var(--n-bezier-ease-in);
|
|
61
|
-
`), (0, cssr_1.cNotM)('raw', `
|
|
45
|
+
`)]), (0, cssr_1.cNotM)('raw', `
|
|
62
46
|
background-color: var(--n-color);
|
|
63
47
|
border-radius: var(--n-border-radius);
|
|
64
48
|
`, [(0, cssr_1.cNotM)('scrollable', [(0, cssr_1.cNotM)('show-header', 'padding: var(--n-padding);')])]), (0, cssr_1.cE)('header', `
|
|
@@ -81,7 +65,24 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
81
65
|
transform: rotate(45deg);
|
|
82
66
|
background-color: var(--n-color);
|
|
83
67
|
pointer-events: all;
|
|
84
|
-
`)])]),
|
|
68
|
+
`)])]), (0, cssr_1.cB)('popover-shared', `
|
|
69
|
+
transform-origin: inherit;
|
|
70
|
+
`, [// body transition
|
|
71
|
+
(0, cssr_1.c)('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
72
|
+
opacity: 0;
|
|
73
|
+
transform: scale(.85);
|
|
74
|
+
`), (0, cssr_1.c)('&.popover-transition-enter-to, &.popover-transition-leave-from', `
|
|
75
|
+
transform: scale(1);
|
|
76
|
+
opacity: 1;
|
|
77
|
+
`), (0, cssr_1.c)('&.popover-transition-enter-active', `
|
|
78
|
+
transition:
|
|
79
|
+
opacity .15s var(--n-bezier-ease-out),
|
|
80
|
+
transform .15s var(--n-bezier-ease-out);
|
|
81
|
+
`), (0, cssr_1.c)('&.popover-transition-leave-active', `
|
|
82
|
+
transition:
|
|
83
|
+
opacity .15s var(--n-bezier-ease-in),
|
|
84
|
+
transform .15s var(--n-bezier-ease-in);
|
|
85
|
+
`)]), placementStyle('top-start', `
|
|
85
86
|
top: calc(${arrowSize} / -2 + 1px);
|
|
86
87
|
left: calc(${getArrowOffset('top-start')} - var(--v-offset-left));
|
|
87
88
|
`), placementStyle('top', `
|
|
@@ -134,7 +135,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
134
135
|
const targetSize = `var(--v-target-${sizeType}, 0px)`;
|
|
135
136
|
const centerOffset = `calc((${targetSize} - ${arrowSize}) / 2)`;
|
|
136
137
|
const offset = getArrowOffset(placement);
|
|
137
|
-
return (0, cssr_1.c)(`[v-placement="${placement}"] >`, [(0, cssr_1.cB)('popover', [(0, cssr_1.cM)('center-arrow', [(0, cssr_1.cB)('popover-arrow', `${direction}: calc(max(${centerOffset}, ${offset}) ${isReverse ? '+' : '-'} var(--v-offset-${isVertical ? 'left' : 'top'}));`)])])]);
|
|
138
|
+
return (0, cssr_1.c)(`[v-placement="${placement}"] >`, [(0, cssr_1.cB)('popover-shared', [(0, cssr_1.cM)('center-arrow', [(0, cssr_1.cB)('popover-arrow', `${direction}: calc(max(${centerOffset}, ${offset}) ${isReverse ? '+' : '-'} var(--v-offset-${isVertical ? 'left' : 'top'}));`)])])]);
|
|
138
139
|
});
|
|
139
140
|
})]);
|
|
140
141
|
|
|
@@ -145,9 +146,9 @@ function getArrowOffset(placement) {
|
|
|
145
146
|
function placementStyle(placement, arrowStyleLiteral) {
|
|
146
147
|
const position = placement.split('-')[0];
|
|
147
148
|
const sizeStyle = ['top', 'bottom'].includes(position) ? 'height: var(--n-space-arrow);' : 'width: var(--n-space-arrow);';
|
|
148
|
-
return (0, cssr_1.c)(`[v-placement="${placement}"] >`, [(0, cssr_1.cB)('popover
|
|
149
|
+
return (0, cssr_1.c)(`[v-placement="${placement}"] >`, [(0, cssr_1.cB)('popover-shared', `
|
|
149
150
|
margin-${oppositePlacement[position]}: var(--n-space);
|
|
150
|
-
|
|
151
|
+
`, [(0, cssr_1.cM)('show-arrow', `
|
|
151
152
|
margin-${oppositePlacement[position]}: var(--n-space-arrow);
|
|
152
153
|
`), (0, cssr_1.cM)('overlap', `
|
|
153
154
|
margin: 0;
|