naive-ui 2.24.4 → 2.25.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 +3 -2
- package/es/_internal/close/src/Close.js +1 -1
- package/es/_internal/icon/src/Icon.js +1 -1
- package/es/_internal/icons/ArrowUp.d.ts +2 -0
- package/es/_internal/icons/ArrowUp.js +9 -0
- package/es/_internal/icons/index.d.ts +1 -0
- package/es/_internal/icons/index.js +1 -0
- package/es/_internal/loading/src/Loading.js +1 -1
- package/es/_internal/menu-mask/src/MenuMask.js +1 -1
- package/es/_internal/scrollbar/src/ScrollBar.js +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -5
- package/es/_internal/select-menu/src/SelectMenu.js +32 -16
- package/es/_internal/selection/src/Selection.d.ts +13 -5
- package/es/_internal/selection/src/Selection.js +24 -15
- package/es/_internal/selection/src/interface.d.ts +2 -2
- package/es/_internal/selection/src/styles/index.cssr.js +16 -31
- package/es/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/es/_internal/wave/src/Wave.js +1 -1
- package/es/_mixins/use-config.js +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +4 -2
- package/es/_mixins/use-css-vars-class.js +26 -11
- package/es/_mixins/use-form-item.d.ts +4 -0
- package/es/_mixins/use-form-item.js +7 -0
- package/es/_mixins/use-hljs.js +1 -1
- package/es/_mixins/use-locale.js +1 -1
- package/es/_mixins/use-style.js +1 -1
- package/es/_mixins/use-theme.d.ts +1 -1
- package/es/_mixins/use-theme.js +2 -2
- package/es/_utils/cssr/index.d.ts +1 -2
- package/es/_utils/cssr/index.js +1 -14
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/index.d.ts +1 -1
- package/es/_utils/vue/index.js +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +8 -2
- package/es/_utils/vue/resolve-slot.js +18 -1
- package/es/affix/src/Affix.js +1 -1
- package/es/alert/src/Alert.d.ts +4 -4
- package/es/alert/src/Alert.js +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +17 -2
- package/es/auto-complete/src/AutoComplete.js +9 -5
- package/es/avatar/src/Avatar.js +2 -2
- package/es/avatar/src/AvatarGroup.d.ts +0 -1
- package/es/avatar/src/AvatarGroup.js +2 -3
- package/es/avatar/src/context.d.ts +2 -0
- package/es/avatar/src/context.js +2 -0
- package/es/back-top/src/BackTop.js +1 -1
- package/es/badge/src/Badge.d.ts +4 -4
- package/es/badge/src/Badge.js +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/button/src/Button.d.ts +4 -3
- package/es/button/src/Button.js +265 -229
- package/es/button/src/ButtonGroup.js +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/src/Card.d.ts +5 -1
- package/es/card/src/Card.js +3 -2
- package/es/carousel/src/Carousel.js +4 -1
- package/es/carousel/src/CarouselArrow.js +6 -9
- package/es/carousel/src/styles/index.cssr.js +59 -48
- package/es/carousel/styles/light.js +2 -2
- package/es/cascader/src/Cascader.d.ts +6 -4
- package/es/cascader/src/Cascader.js +6 -6
- package/es/checkbox/src/Checkbox.js +1 -1
- package/es/code/src/Code.js +1 -1
- package/es/collapse/src/Collapse.js +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorInputUnit.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +37 -16
- package/es/color-picker/src/ColorPicker.js +14 -7
- package/es/color-picker/src/ColorPickerTrigger.d.ts +3 -0
- package/es/color-picker/src/ColorPickerTrigger.js +7 -3
- package/es/color-picker/src/context.d.ts +9 -0
- package/es/color-picker/src/context.js +2 -0
- package/es/color-picker/src/styles/index.cssr.js +2 -1
- package/es/components.d.ts +2 -1
- package/es/components.js +2 -1
- package/es/composables/use-theme-vars.js +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +15 -3
- package/es/config-provider/src/ConfigProvider.js +29 -3
- package/es/config-provider/src/context.d.ts +2 -0
- package/es/config-provider/src/context.js +2 -0
- package/es/config-provider/src/interface.d.ts +2 -1
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +1 -1
- package/es/data-table/src/DataTable.js +1 -1
- package/es/data-table/src/interface.d.ts +2 -2
- package/es/data-table/src/use-check.d.ts +2 -2
- package/es/data-table/src/use-group-header.d.ts +1 -1
- package/es/data-table/src/use-scroll.d.ts +1 -1
- package/es/data-table/src/use-scroll.js +3 -3
- package/es/data-table/src/use-sorter.d.ts +1 -1
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.js +13 -3
- package/es/date-picker/src/DatePicker.d.ts +13 -1
- package/es/date-picker/src/DatePicker.js +8 -7
- package/es/date-picker/src/panel/date.d.ts +1 -0
- package/es/date-picker/src/panel/daterange.d.ts +1 -0
- package/es/date-picker/src/panel/datetime.d.ts +1 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -0
- package/es/date-picker/src/panel/month.d.ts +1 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.js +7 -3
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +1 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/es/date-picker/src/styles/index.cssr.js +13 -2
- package/es/date-picker/styles/light.d.ts +2 -0
- package/es/date-picker/styles/light.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/Descriptions.js +1 -1
- package/es/dialog/index.d.ts +3 -3
- package/es/dialog/index.js +2 -2
- package/es/dialog/src/Dialog.d.ts +28 -61
- package/es/dialog/src/Dialog.js +4 -32
- package/es/dialog/src/DialogEnvironment.d.ts +12 -13
- package/es/dialog/src/DialogEnvironment.js +3 -2
- package/es/dialog/src/DialogProvider.d.ts +4 -6
- package/es/dialog/src/DialogProvider.js +5 -6
- package/es/dialog/src/context.d.ts +3 -0
- package/es/dialog/src/context.js +3 -0
- package/es/dialog/src/dialogProps.d.ts +32 -0
- package/es/dialog/src/dialogProps.js +29 -0
- package/es/dialog/src/use-dialog.js +1 -1
- package/es/divider/src/Divider.js +1 -1
- package/es/drawer/index.d.ts +1 -0
- package/es/drawer/src/Drawer.js +1 -1
- package/es/dropdown/src/Dropdown.d.ts +17 -5
- package/es/dropdown/src/Dropdown.js +6 -5
- package/es/dropdown/src/DropdownGroup.js +1 -0
- package/es/dropdown/src/DropdownGroupHeader.js +1 -2
- package/es/dropdown/src/DropdownMenu.d.ts +0 -1
- package/es/dropdown/src/DropdownMenu.js +4 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -0
- package/es/dropdown/src/DropdownOption.js +4 -4
- package/es/dropdown/src/context.d.ts +6 -0
- package/es/dropdown/src/context.js +4 -0
- package/es/dropdown/src/interface.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +16 -33
- package/es/dynamic-input/src/DynamicInput.js +73 -36
- package/es/dynamic-tags/src/DynamicTags.d.ts +11 -20
- package/es/dynamic-tags/src/DynamicTags.js +14 -16
- package/es/element/src/Element.js +1 -1
- package/es/ellipsis/src/Ellipsis.js +1 -1
- package/es/empty/src/Empty.js +2 -2
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/Form.js +2 -2
- package/es/form/src/FormItem.d.ts +5 -5
- package/es/form/src/FormItem.js +3 -2
- package/es/form/src/FormItemCol.d.ts +4 -4
- package/es/form/src/FormItemGridItem.d.ts +5 -5
- package/es/form/src/FormItemRow.d.ts +3 -3
- package/es/form/src/context.d.ts +3 -0
- package/es/form/src/context.js +3 -0
- package/es/form/src/interface.d.ts +4 -3
- package/es/form/src/interface.js +1 -3
- package/es/form/src/styles/form-item.cssr.js +6 -5
- package/es/form/src/utils.d.ts +1 -1
- package/es/form/src/utils.js +1 -1
- package/es/global-style/src/GlobalStyle.js +1 -1
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +1 -1
- package/es/grid/src/Grid.d.ts +0 -1
- package/es/grid/src/Grid.js +2 -3
- package/es/grid/src/GridItem.js +1 -1
- package/es/grid/src/config.d.ts +3 -0
- package/es/grid/src/config.js +3 -0
- package/es/icon/index.d.ts +1 -1
- package/es/icon/index.js +1 -1
- package/es/icon/src/Icon.d.ts +4 -3
- package/es/icon/src/Icon.js +6 -6
- package/es/icon-wrapper/index.d.ts +1 -0
- package/es/icon-wrapper/index.js +1 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +50 -0
- package/es/icon-wrapper/src/IconWrapper.js +48 -0
- package/es/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-wrapper/src/styles/index.cssr.js +16 -0
- package/es/icon-wrapper/styles/dark.d.ts +3 -0
- package/es/icon-wrapper/styles/dark.js +8 -0
- package/es/icon-wrapper/styles/index.d.ts +3 -0
- package/es/icon-wrapper/styles/index.js +2 -0
- package/es/icon-wrapper/styles/light.d.ts +10 -0
- package/es/icon-wrapper/styles/light.js +14 -0
- package/es/image/src/ImagePreview.js +1 -1
- package/es/input/src/Input.d.ts +7 -2
- package/es/input/src/Input.js +21 -17
- package/es/input/src/InputGroup.js +1 -1
- package/es/input/src/InputGroupLabel.js +1 -1
- package/es/input/src/WordCount.js +9 -8
- package/es/input/src/styles/input.cssr.js +6 -5
- package/es/input-number/src/InputNumber.d.ts +3 -2
- package/es/input-number/src/InputNumber.js +23 -21
- package/es/layout/src/Layout.js +1 -1
- package/es/layout/src/LayoutFooter.js +1 -1
- package/es/layout/src/LayoutHeader.js +1 -1
- package/es/layout/src/LayoutSider.js +1 -1
- package/es/legacy-grid/src/Col.js +0 -3
- package/es/legacy-grid/src/Row.js +1 -1
- package/es/list/src/List.js +1 -1
- package/es/loading-bar/src/LoadingBar.js +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -8
- package/es/loading-bar/src/LoadingBarProvider.js +1 -3
- package/es/loading-bar/src/context.d.ts +7 -0
- package/es/loading-bar/src/context.js +3 -0
- package/es/loading-bar/src/use-loading-bar.js +1 -1
- package/es/locales/common/jaJP.js +12 -14
- package/es/log/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +17 -12
- package/es/log/src/Log.js +10 -17
- package/es/log/src/LogLine.js +1 -1
- package/es/log/src/context.d.ts +2 -0
- package/es/log/src/context.js +2 -0
- package/es/log/src/styles/index.cssr.js +2 -3
- package/es/mention/src/Mention.d.ts +17 -2
- package/es/mention/src/Mention.js +7 -3
- package/es/menu/src/Menu.d.ts +2 -4
- package/es/menu/src/Menu.js +3 -3
- package/es/menu/src/MenuDivider.js +1 -1
- package/es/menu/src/MenuOption.d.ts +1 -2
- package/es/menu/src/MenuOption.js +1 -1
- package/es/menu/src/MenuOptionContent.js +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -4
- package/es/menu/src/MenuOptionGroup.js +4 -5
- package/es/menu/src/Submenu.d.ts +1 -4
- package/es/menu/src/Submenu.js +3 -4
- package/es/menu/src/context.d.ts +4 -0
- package/es/menu/src/context.js +4 -0
- package/es/menu/src/use-menu-child.js +1 -3
- package/es/menu/src/useCheckDeprecated.d.ts +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/menu/src/utils.js +5 -3
- package/es/message/src/Message.d.ts +2 -158
- package/es/message/src/Message.js +2 -2
- package/es/message/src/MessageProvider.d.ts +4 -9
- package/es/message/src/MessageProvider.js +2 -3
- package/es/message/src/context.d.ts +7 -0
- package/es/message/src/context.js +3 -0
- package/es/message/src/types.d.ts +1 -1
- package/es/message/src/use-message.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +6 -4
- package/es/modal/src/BodyWrapper.js +2 -2
- package/es/modal/src/Modal.d.ts +8 -5
- package/es/modal/src/Modal.js +2 -2
- package/es/modal/src/presetProps.d.ts +3 -2
- package/es/modal/src/presetProps.js +1 -1
- package/es/notification/index.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +5 -6
- package/es/notification/src/Notification.js +3 -5
- package/es/notification/src/NotificationContainer.d.ts +1 -2
- package/es/notification/src/NotificationContainer.js +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +7 -8
- package/es/notification/src/NotificationEnvironment.js +3 -3
- package/es/notification/src/NotificationProvider.d.ts +11 -7
- package/es/notification/src/NotificationProvider.js +6 -6
- package/es/notification/src/context.d.ts +2 -0
- package/es/notification/src/context.js +2 -0
- package/es/page-header/src/PageHeader.js +1 -1
- package/es/pagination/src/Pagination.js +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +21 -8
- package/es/popconfirm/src/Popconfirm.js +1 -1
- package/es/popover/index.d.ts +1 -0
- package/es/popover/src/Popover.d.ts +21 -4
- package/es/popover/src/Popover.js +9 -2
- package/es/popover/src/PopoverBody.d.ts +4 -0
- package/es/popover/src/PopoverBody.js +13 -11
- package/es/popover/src/styles/index.cssr.js +2 -2
- package/es/popselect/src/Popselect.d.ts +31 -8
- package/es/popselect/src/Popselect.js +8 -6
- package/es/popselect/src/PopselectPanel.d.ts +2 -5
- package/es/popselect/src/PopselectPanel.js +4 -2
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/Progress.js +1 -1
- package/es/radio/src/Radio.js +1 -1
- package/es/radio/src/RadioGroup.js +1 -1
- package/es/rate/src/Rate.js +1 -1
- package/es/result/src/Result.d.ts +4 -4
- package/es/result/src/Result.js +1 -1
- package/es/select/index.d.ts +2 -0
- package/es/select/src/Select.d.ts +27 -24
- package/es/select/src/Select.js +71 -41
- package/es/select/src/interface.d.ts +2 -0
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/src/Slider.js +1 -1
- package/es/space/src/Space.js +1 -1
- package/es/spin/src/Spin.js +1 -1
- package/es/statistic/src/Statistic.js +1 -1
- package/es/steps/src/Steps.js +1 -1
- package/es/switch/src/Switch.js +1 -1
- package/es/table/src/Table.js +1 -1
- package/es/tabs/src/Tabs.d.ts +7 -4
- package/es/tabs/src/Tabs.js +12 -4
- package/es/tag/src/Tag.d.ts +4 -4
- package/es/tag/src/Tag.js +1 -1
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/src/styles/index.cssr.js +5 -17
- package/es/theme-editor/src/ThemeEditor.js +1 -1
- package/es/themes/dark.js +3 -0
- package/es/themes/light.js +3 -0
- package/es/themes/utils.d.ts +2 -1
- package/es/themes/utils.js +16 -4
- package/es/thing/src/Thing.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +7 -5
- package/es/time-picker/src/TimePicker.js +5 -5
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/tooltip/src/Tooltip.d.ts +20 -7
- package/es/tooltip/src/Tooltip.js +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/transfer/src/Transfer.js +1 -1
- package/es/tree/src/Tree.d.ts +6 -2
- package/es/tree/src/Tree.js +15 -8
- package/es/tree/src/TreeNode.d.ts +2 -0
- package/es/tree/src/TreeNode.js +37 -10
- package/es/tree/src/TreeNodeContent.d.ts +3 -1
- package/es/tree/src/TreeNodeContent.js +4 -3
- package/es/tree/src/interface.d.ts +5 -1
- package/es/tree-select/src/TreeSelect.d.ts +16 -14
- package/es/tree-select/src/TreeSelect.js +8 -5
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.d.ts +4 -4
- package/es/typography/src/create-header.js +1 -1
- package/es/typography/src/headers.d.ts +18 -18
- package/es/typography/src/hr.js +1 -1
- package/es/typography/src/ol.js +1 -1
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.js +1 -1
- package/es/typography/src/ul.js +1 -1
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.js +3 -2
- package/lib/_internal/close/src/Close.js +1 -1
- package/lib/_internal/icon/src/Icon.js +1 -1
- package/lib/_internal/icons/ArrowUp.d.ts +2 -0
- package/lib/_internal/icons/ArrowUp.js +11 -0
- package/lib/_internal/icons/index.d.ts +1 -0
- package/lib/_internal/icons/index.js +3 -1
- package/lib/_internal/loading/src/Loading.js +1 -1
- package/lib/_internal/menu-mask/src/MenuMask.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.js +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -5
- package/lib/_internal/select-menu/src/SelectMenu.js +31 -15
- package/lib/_internal/selection/src/Selection.d.ts +13 -5
- package/lib/_internal/selection/src/Selection.js +24 -15
- package/lib/_internal/selection/src/interface.d.ts +2 -2
- package/lib/_internal/selection/src/styles/index.cssr.js +15 -30
- package/lib/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/lib/_internal/wave/src/Wave.js +1 -1
- package/lib/_mixins/use-config.js +2 -2
- package/lib/_mixins/use-css-vars-class.d.ts +4 -2
- package/lib/_mixins/use-css-vars-class.js +25 -13
- package/lib/_mixins/use-form-item.d.ts +4 -0
- package/lib/_mixins/use-form-item.js +7 -0
- package/lib/_mixins/use-hljs.js +2 -2
- package/lib/_mixins/use-locale.js +2 -2
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_mixins/use-theme.d.ts +1 -1
- package/lib/_mixins/use-theme.js +3 -3
- package/lib/_utils/cssr/index.d.ts +1 -2
- package/lib/_utils/cssr/index.js +1 -15
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +5 -1
- package/lib/_utils/vue/index.d.ts +1 -1
- package/lib/_utils/vue/index.js +4 -1
- package/lib/_utils/vue/resolve-slot.d.ts +8 -2
- package/lib/_utils/vue/resolve-slot.js +22 -2
- package/lib/affix/src/Affix.js +1 -1
- package/lib/alert/src/Alert.d.ts +4 -4
- package/lib/alert/src/Alert.js +1 -1
- package/lib/anchor/src/AnchorAdapter.js +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +17 -2
- package/lib/auto-complete/src/AutoComplete.js +9 -5
- package/lib/avatar/src/Avatar.js +3 -3
- package/lib/avatar/src/AvatarGroup.d.ts +0 -1
- package/lib/avatar/src/AvatarGroup.js +3 -5
- package/lib/avatar/src/context.d.ts +2 -0
- package/lib/avatar/src/context.js +5 -0
- package/lib/back-top/src/BackTop.js +1 -1
- package/lib/badge/src/Badge.d.ts +4 -4
- package/lib/badge/src/Badge.js +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +1 -1
- package/lib/button/src/Button.d.ts +4 -3
- package/lib/button/src/Button.js +264 -228
- package/lib/button/src/ButtonGroup.js +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/calendar/src/Calendar.js +1 -1
- package/lib/card/src/Card.d.ts +5 -1
- package/lib/card/src/Card.js +3 -2
- package/lib/carousel/src/Carousel.js +4 -1
- package/lib/carousel/src/CarouselArrow.js +5 -8
- package/lib/carousel/src/styles/index.cssr.js +59 -48
- package/lib/carousel/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +6 -4
- package/lib/cascader/src/Cascader.js +6 -6
- package/lib/checkbox/src/Checkbox.js +1 -1
- package/lib/code/src/Code.js +1 -1
- package/lib/collapse/src/Collapse.js +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +37 -16
- package/lib/color-picker/src/ColorPicker.js +15 -8
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +3 -0
- package/lib/color-picker/src/ColorPickerTrigger.js +8 -4
- package/lib/color-picker/src/context.d.ts +9 -0
- package/lib/color-picker/src/context.js +5 -0
- package/lib/color-picker/src/styles/index.cssr.js +2 -1
- package/lib/components.d.ts +2 -1
- package/lib/components.js +2 -1
- package/lib/composables/use-theme-vars.js +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +15 -3
- package/lib/config-provider/src/ConfigProvider.js +31 -5
- package/lib/config-provider/src/context.d.ts +2 -0
- package/lib/config-provider/src/context.js +5 -0
- package/lib/config-provider/src/interface.d.ts +2 -1
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +1 -1
- package/lib/data-table/src/DataTable.js +1 -1
- package/lib/data-table/src/interface.d.ts +2 -2
- package/lib/data-table/src/use-check.d.ts +2 -2
- package/lib/data-table/src/use-group-header.d.ts +1 -1
- package/lib/data-table/src/use-scroll.d.ts +1 -1
- package/lib/data-table/src/use-scroll.js +2 -2
- package/lib/data-table/src/use-sorter.d.ts +1 -1
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +15 -4
- package/lib/date-picker/src/DatePicker.d.ts +13 -1
- package/lib/date-picker/src/DatePicker.js +8 -7
- package/lib/date-picker/src/panel/date.d.ts +1 -0
- package/lib/date-picker/src/panel/daterange.d.ts +1 -0
- package/lib/date-picker/src/panel/datetime.d.ts +1 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -0
- package/lib/date-picker/src/panel/month.d.ts +1 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.js +7 -3
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +1 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/lib/date-picker/src/styles/index.cssr.js +13 -2
- package/lib/date-picker/styles/light.d.ts +2 -0
- package/lib/date-picker/styles/light.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.js +1 -1
- package/lib/dialog/index.d.ts +3 -3
- package/lib/dialog/index.js +2 -5
- package/lib/dialog/src/Dialog.d.ts +28 -61
- package/lib/dialog/src/Dialog.js +5 -33
- package/lib/dialog/src/DialogEnvironment.d.ts +12 -13
- package/lib/dialog/src/DialogEnvironment.js +6 -24
- package/lib/dialog/src/DialogProvider.d.ts +4 -6
- package/lib/dialog/src/DialogProvider.js +8 -12
- package/lib/dialog/src/context.d.ts +3 -0
- package/lib/dialog/src/context.js +6 -0
- package/lib/dialog/src/dialogProps.d.ts +32 -0
- package/lib/dialog/src/dialogProps.js +32 -0
- package/lib/dialog/src/use-dialog.js +2 -2
- package/lib/divider/src/Divider.js +1 -1
- package/lib/drawer/index.d.ts +1 -0
- package/lib/drawer/src/Drawer.js +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +17 -5
- package/lib/dropdown/src/Dropdown.js +6 -6
- package/lib/dropdown/src/DropdownGroup.js +1 -0
- package/lib/dropdown/src/DropdownGroupHeader.js +3 -4
- package/lib/dropdown/src/DropdownMenu.d.ts +0 -1
- package/lib/dropdown/src/DropdownMenu.js +6 -7
- package/lib/dropdown/src/DropdownOption.d.ts +3 -0
- package/lib/dropdown/src/DropdownOption.js +9 -25
- package/lib/dropdown/src/context.d.ts +6 -0
- package/lib/dropdown/src/context.js +7 -0
- package/lib/dropdown/src/interface.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +16 -33
- package/lib/dynamic-input/src/DynamicInput.js +70 -33
- package/lib/dynamic-tags/src/DynamicTags.d.ts +11 -20
- package/lib/dynamic-tags/src/DynamicTags.js +12 -14
- package/lib/element/src/Element.js +1 -1
- package/lib/ellipsis/src/Ellipsis.js +1 -1
- package/lib/empty/src/Empty.js +3 -3
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/Form.js +4 -4
- package/lib/form/src/FormItem.d.ts +5 -5
- package/lib/form/src/FormItem.js +5 -4
- package/lib/form/src/FormItemCol.d.ts +4 -4
- package/lib/form/src/FormItemGridItem.d.ts +5 -5
- package/lib/form/src/FormItemRow.d.ts +3 -3
- package/lib/form/src/context.d.ts +3 -0
- package/lib/form/src/context.js +6 -0
- package/lib/form/src/interface.d.ts +4 -3
- package/lib/form/src/interface.js +0 -4
- package/lib/form/src/styles/form-item.cssr.js +3 -2
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/form/src/utils.js +4 -4
- package/lib/global-style/src/GlobalStyle.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +1 -1
- package/lib/grid/src/Grid.d.ts +0 -1
- package/lib/grid/src/Grid.js +4 -6
- package/lib/grid/src/GridItem.js +2 -2
- package/lib/grid/src/config.d.ts +3 -0
- package/lib/grid/src/config.js +6 -0
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +1 -4
- package/lib/icon/src/Icon.d.ts +4 -3
- package/lib/icon/src/Icon.js +6 -5
- package/lib/icon-wrapper/index.d.ts +1 -0
- package/lib/icon-wrapper/index.js +5 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +50 -0
- package/lib/icon-wrapper/src/IconWrapper.js +54 -0
- package/lib/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-wrapper/src/styles/index.cssr.js +23 -0
- package/lib/icon-wrapper/styles/dark.d.ts +3 -0
- package/lib/icon-wrapper/styles/dark.js +10 -0
- package/lib/icon-wrapper/styles/index.d.ts +3 -0
- package/lib/icon-wrapper/styles/index.js +10 -0
- package/lib/icon-wrapper/styles/light.d.ts +10 -0
- package/lib/icon-wrapper/styles/light.js +18 -0
- package/lib/image/src/ImagePreview.js +1 -1
- package/lib/input/src/Input.d.ts +7 -2
- package/lib/input/src/Input.js +20 -16
- package/lib/input/src/InputGroup.js +1 -1
- package/lib/input/src/InputGroupLabel.js +1 -1
- package/lib/input/src/WordCount.js +9 -8
- package/lib/input/src/styles/input.cssr.js +5 -4
- package/lib/input-number/src/InputNumber.d.ts +3 -2
- package/lib/input-number/src/InputNumber.js +23 -21
- package/lib/layout/src/Layout.js +1 -1
- package/lib/layout/src/LayoutFooter.js +1 -1
- package/lib/layout/src/LayoutHeader.js +1 -1
- package/lib/layout/src/LayoutSider.js +1 -1
- package/lib/legacy-grid/src/Col.js +0 -6
- package/lib/legacy-grid/src/Row.js +1 -1
- package/lib/list/src/List.js +1 -1
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -8
- package/lib/loading-bar/src/LoadingBarProvider.js +3 -6
- package/lib/loading-bar/src/context.d.ts +7 -0
- package/lib/loading-bar/src/context.js +6 -0
- package/lib/loading-bar/src/use-loading-bar.js +2 -2
- package/lib/locales/common/jaJP.js +12 -14
- package/lib/log/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +17 -12
- package/lib/log/src/Log.js +10 -18
- package/lib/log/src/LogLine.js +2 -2
- package/lib/log/src/context.d.ts +2 -0
- package/lib/log/src/context.js +5 -0
- package/lib/log/src/styles/index.cssr.js +2 -3
- package/lib/mention/src/Mention.d.ts +17 -2
- package/lib/mention/src/Mention.js +7 -3
- package/lib/menu/src/Menu.d.ts +2 -4
- package/lib/menu/src/Menu.js +3 -4
- package/lib/menu/src/MenuDivider.js +2 -2
- package/lib/menu/src/MenuOption.d.ts +1 -2
- package/lib/menu/src/MenuOption.js +2 -2
- package/lib/menu/src/MenuOptionContent.js +2 -2
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -4
- package/lib/menu/src/MenuOptionGroup.js +7 -8
- package/lib/menu/src/Submenu.d.ts +1 -4
- package/lib/menu/src/Submenu.js +6 -7
- package/lib/menu/src/context.d.ts +4 -0
- package/lib/menu/src/context.js +7 -0
- package/lib/menu/src/use-menu-child.js +4 -6
- package/lib/menu/src/useCheckDeprecated.d.ts +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/menu/src/utils.js +8 -25
- package/lib/message/src/Message.d.ts +2 -158
- package/lib/message/src/Message.js +3 -3
- package/lib/message/src/MessageProvider.d.ts +4 -9
- package/lib/message/src/MessageProvider.js +3 -5
- package/lib/message/src/context.d.ts +7 -0
- package/lib/message/src/context.js +6 -0
- package/lib/message/src/types.d.ts +1 -1
- package/lib/message/src/use-message.js +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +6 -4
- package/lib/modal/src/BodyWrapper.js +3 -3
- package/lib/modal/src/Modal.d.ts +8 -5
- package/lib/modal/src/Modal.js +3 -3
- package/lib/modal/src/presetProps.d.ts +3 -2
- package/lib/modal/src/presetProps.js +2 -2
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +5 -6
- package/lib/notification/src/Notification.js +5 -7
- package/lib/notification/src/NotificationContainer.d.ts +1 -2
- package/lib/notification/src/NotificationContainer.js +4 -3
- package/lib/notification/src/NotificationEnvironment.d.ts +7 -8
- package/lib/notification/src/NotificationEnvironment.js +4 -23
- package/lib/notification/src/NotificationProvider.d.ts +11 -7
- package/lib/notification/src/NotificationProvider.js +9 -9
- package/lib/notification/src/context.d.ts +2 -0
- package/lib/notification/src/context.js +5 -0
- package/lib/page-header/src/PageHeader.js +1 -1
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +21 -8
- package/lib/popconfirm/src/Popconfirm.js +1 -1
- package/lib/popover/index.d.ts +1 -0
- package/lib/popover/src/Popover.d.ts +21 -4
- package/lib/popover/src/Popover.js +9 -2
- package/lib/popover/src/PopoverBody.d.ts +4 -0
- package/lib/popover/src/PopoverBody.js +11 -9
- package/lib/popover/src/styles/index.cssr.js +2 -2
- package/lib/popselect/src/Popselect.d.ts +31 -8
- package/lib/popselect/src/Popselect.js +8 -6
- package/lib/popselect/src/PopselectPanel.d.ts +2 -5
- package/lib/popselect/src/PopselectPanel.js +4 -2
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/Progress.js +1 -1
- package/lib/radio/src/Radio.js +1 -1
- package/lib/radio/src/RadioGroup.js +1 -1
- package/lib/rate/src/Rate.js +1 -1
- package/lib/result/src/Result.d.ts +4 -4
- package/lib/result/src/Result.js +1 -1
- package/lib/select/index.d.ts +2 -0
- package/lib/select/src/Select.d.ts +27 -24
- package/lib/select/src/Select.js +71 -41
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/skeleton/src/Skeleton.js +1 -1
- package/lib/slider/src/Slider.js +1 -1
- package/lib/space/src/Space.js +1 -1
- package/lib/spin/src/Spin.js +1 -1
- package/lib/statistic/src/Statistic.js +1 -1
- package/lib/steps/src/Steps.js +1 -1
- package/lib/switch/src/Switch.js +1 -1
- package/lib/table/src/Table.js +1 -1
- package/lib/tabs/src/Tabs.d.ts +7 -4
- package/lib/tabs/src/Tabs.js +12 -4
- package/lib/tag/src/Tag.d.ts +4 -4
- package/lib/tag/src/Tag.js +1 -1
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/src/styles/index.cssr.js +5 -17
- package/lib/theme-editor/src/ThemeEditor.js +1 -1
- package/lib/themes/dark.js +87 -84
- package/lib/themes/light.js +87 -84
- package/lib/themes/utils.d.ts +2 -1
- package/lib/themes/utils.js +16 -4
- package/lib/thing/src/Thing.js +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +7 -5
- package/lib/time-picker/src/TimePicker.js +5 -5
- package/lib/timeline/src/Timeline.js +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/tooltip/src/Tooltip.d.ts +20 -7
- package/lib/tooltip/src/Tooltip.js +1 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/transfer/src/Transfer.js +1 -1
- package/lib/tree/src/Tree.d.ts +6 -2
- package/lib/tree/src/Tree.js +15 -8
- package/lib/tree/src/TreeNode.d.ts +2 -0
- package/lib/tree/src/TreeNode.js +37 -10
- package/lib/tree/src/TreeNodeContent.d.ts +3 -1
- package/lib/tree/src/TreeNodeContent.js +4 -3
- package/lib/tree/src/interface.d.ts +5 -1
- package/lib/tree-select/src/TreeSelect.d.ts +16 -14
- package/lib/tree-select/src/TreeSelect.js +8 -5
- package/lib/typography/src/a.js +1 -1
- package/lib/typography/src/blockquote.js +1 -1
- package/lib/typography/src/create-header.d.ts +4 -4
- package/lib/typography/src/create-header.js +1 -1
- package/lib/typography/src/headers.d.ts +18 -18
- package/lib/typography/src/hr.js +1 -1
- package/lib/typography/src/ol.js +1 -1
- package/lib/typography/src/p.js +1 -1
- package/lib/typography/src/text.js +1 -1
- package/lib/typography/src/ul.js +1 -1
- package/lib/upload/src/Upload.js +1 -1
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +11 -12
- package/volar.d.ts +1 -0
- package/web-types.json +443 -220
package/lib/space/src/Space.js
CHANGED
|
@@ -20,7 +20,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
20
20
|
props: spaceProps,
|
|
21
21
|
setup(props) {
|
|
22
22
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
23
|
-
const themeRef = (0, _mixins_1.useTheme)('Space', '
|
|
23
|
+
const themeRef = (0, _mixins_1.useTheme)('Space', '-space', undefined, styles_1.spaceLight, props, mergedClsPrefixRef);
|
|
24
24
|
return {
|
|
25
25
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
26
26
|
margin: (0, vue_1.computed)(() => {
|
package/lib/spin/src/Spin.js
CHANGED
|
@@ -44,7 +44,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
47
|
-
const themeRef = (0, _mixins_1.useTheme)('Spin', '
|
|
47
|
+
const themeRef = (0, _mixins_1.useTheme)('Spin', '-spin', index_cssr_1.default, styles_1.spinLight, props, mergedClsPrefixRef);
|
|
48
48
|
return {
|
|
49
49
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
50
50
|
compitableShow: (0, vooks_1.useCompitable)(props, ['spinning', 'show']),
|
|
@@ -13,7 +13,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
13
13
|
props: statisticProps,
|
|
14
14
|
setup(props) {
|
|
15
15
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
16
|
-
const themeRef = (0, _mixins_1.useTheme)('Statistic', '
|
|
16
|
+
const themeRef = (0, _mixins_1.useTheme)('Statistic', '-statistic', index_cssr_1.default, styles_1.statisticLight, props, mergedClsPrefixRef);
|
|
17
17
|
return {
|
|
18
18
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
19
19
|
cssVars: (0, vue_1.computed)(() => {
|
package/lib/steps/src/Steps.js
CHANGED
|
@@ -34,7 +34,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
34
34
|
props: stepsProps,
|
|
35
35
|
setup(props, { slots }) {
|
|
36
36
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
37
|
-
const themeRef = (0, _mixins_1.useTheme)('Steps', '
|
|
37
|
+
const themeRef = (0, _mixins_1.useTheme)('Steps', '-steps', index_cssr_1.default, styles_1.stepsLight, props, mergedClsPrefixRef);
|
|
38
38
|
(0, vue_1.provide)(exports.stepsInjectionKey, {
|
|
39
39
|
props,
|
|
40
40
|
mergedThemeRef: themeRef,
|
package/lib/switch/src/Switch.js
CHANGED
|
@@ -47,7 +47,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
50
|
-
const themeRef = (0, _mixins_1.useTheme)('Switch', '
|
|
50
|
+
const themeRef = (0, _mixins_1.useTheme)('Switch', '-switch', index_cssr_1.default, styles_1.switchLight, props, mergedClsPrefixRef);
|
|
51
51
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
52
52
|
const { mergedSizeRef, mergedDisabledRef } = formItem;
|
|
53
53
|
const uncontrolledValueRef = (0, vue_1.ref)(props.defaultValue);
|
package/lib/table/src/Table.js
CHANGED
|
@@ -26,7 +26,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
26
26
|
props: tableProps,
|
|
27
27
|
setup(props) {
|
|
28
28
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
29
|
-
const themeRef = (0, _mixins_1.useTheme)('Table', '
|
|
29
|
+
const themeRef = (0, _mixins_1.useTheme)('Table', '-table', index_cssr_1.default, styles_1.tableLight, props, mergedClsPrefixRef);
|
|
30
30
|
return {
|
|
31
31
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
32
32
|
cssVars: (0, vue_1.computed)(() => {
|
package/lib/tabs/src/Tabs.d.ts
CHANGED
|
@@ -11,12 +11,13 @@ declare const tabsProps: {
|
|
|
11
11
|
readonly default: "bar";
|
|
12
12
|
};
|
|
13
13
|
readonly closable: BooleanConstructor;
|
|
14
|
-
readonly justifyContent: PropType<"space-around" | "space-between" | "space-evenly">;
|
|
14
|
+
readonly justifyContent: PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
15
15
|
readonly size: {
|
|
16
16
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
17
17
|
readonly default: "medium";
|
|
18
18
|
};
|
|
19
19
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
20
|
+
readonly barWidth: NumberConstructor;
|
|
20
21
|
readonly paneClass: StringConstructor;
|
|
21
22
|
readonly paneStyle: PropType<string | CSSProperties>;
|
|
22
23
|
readonly addable: PropType<Addable>;
|
|
@@ -228,12 +229,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
228
229
|
readonly default: "bar";
|
|
229
230
|
};
|
|
230
231
|
readonly closable: BooleanConstructor;
|
|
231
|
-
readonly justifyContent: PropType<"space-around" | "space-between" | "space-evenly">;
|
|
232
|
+
readonly justifyContent: PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
232
233
|
readonly size: {
|
|
233
234
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
234
235
|
readonly default: "medium";
|
|
235
236
|
};
|
|
236
237
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
238
|
+
readonly barWidth: NumberConstructor;
|
|
237
239
|
readonly paneClass: StringConstructor;
|
|
238
240
|
readonly paneStyle: PropType<string | CSSProperties>;
|
|
239
241
|
readonly addable: PropType<Addable>;
|
|
@@ -485,7 +487,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
485
487
|
addTabFixed: import("vue").Ref<boolean>;
|
|
486
488
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
487
489
|
display: string;
|
|
488
|
-
justifyContent: "space-around" | "space-between" | "space-evenly";
|
|
490
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
489
491
|
} | undefined>;
|
|
490
492
|
handleNavResize: import("lodash").DebouncedFunc<() => void>;
|
|
491
493
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -523,12 +525,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
523
525
|
readonly default: "bar";
|
|
524
526
|
};
|
|
525
527
|
readonly closable: BooleanConstructor;
|
|
526
|
-
readonly justifyContent: PropType<"space-around" | "space-between" | "space-evenly">;
|
|
528
|
+
readonly justifyContent: PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
527
529
|
readonly size: {
|
|
528
530
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
529
531
|
readonly default: "medium";
|
|
530
532
|
};
|
|
531
533
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
534
|
+
readonly barWidth: NumberConstructor;
|
|
532
535
|
readonly paneClass: StringConstructor;
|
|
533
536
|
readonly paneStyle: PropType<string | CSSProperties>;
|
|
534
537
|
readonly addable: PropType<Addable>;
|
package/lib/tabs/src/Tabs.js
CHANGED
|
@@ -19,7 +19,7 @@ const tabsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { v
|
|
|
19
19
|
}, closable: Boolean, justifyContent: String, size: {
|
|
20
20
|
type: String,
|
|
21
21
|
default: 'medium'
|
|
22
|
-
}, tabStyle: [String, Object], paneClass: String, paneStyle: [String, Object], addable: [Boolean, Object], tabsPadding: {
|
|
22
|
+
}, tabStyle: [String, Object], barWidth: Number, paneClass: String, paneStyle: [String, Object], addable: [Boolean, Object], tabsPadding: {
|
|
23
23
|
type: Number,
|
|
24
24
|
default: 0
|
|
25
25
|
}, onBeforeLeave: Function, onAdd: Function, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onClose: [Function, Array],
|
|
@@ -44,7 +44,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
47
|
-
const themeRef = (0, _mixins_1.useTheme)('Tabs', '
|
|
47
|
+
const themeRef = (0, _mixins_1.useTheme)('Tabs', '-tabs', index_cssr_1.default, styles_1.tabsLight, props, mergedClsPrefixRef);
|
|
48
48
|
const tabsElRef = (0, vue_1.ref)(null);
|
|
49
49
|
const barElRef = (0, vue_1.ref)(null);
|
|
50
50
|
const scrollWrapperElRef = (0, vue_1.ref)(null);
|
|
@@ -87,15 +87,23 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
87
87
|
return;
|
|
88
88
|
if (tabEl) {
|
|
89
89
|
const disabledClassName = `${mergedClsPrefixRef.value}-tabs-bar--disabled`;
|
|
90
|
+
const { barWidth } = props;
|
|
90
91
|
if (tabEl.dataset.disabled === 'true') {
|
|
91
92
|
barEl.classList.add(disabledClassName);
|
|
92
93
|
}
|
|
93
94
|
else {
|
|
94
95
|
barEl.classList.remove(disabledClassName);
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
+
if (barWidth && tabEl.offsetWidth >= barWidth) {
|
|
98
|
+
const offsetDiffLeft = Math.floor((tabEl.offsetWidth - barWidth) / 2) + tabEl.offsetLeft;
|
|
99
|
+
barEl.style.left = `${offsetDiffLeft}px`;
|
|
100
|
+
barEl.style.maxWidth = `${barWidth}px`;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
barEl.style.left = `${tabEl.offsetLeft}px`;
|
|
104
|
+
barEl.style.maxWidth = `${tabEl.offsetWidth}px`;
|
|
105
|
+
}
|
|
97
106
|
barEl.style.width = '8192px';
|
|
98
|
-
barEl.style.maxWidth = `${tabEl.offsetWidth + 1}px`;
|
|
99
107
|
}
|
|
100
108
|
}
|
|
101
109
|
function updateCurrentBarStyle() {
|
package/lib/tag/src/Tag.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ declare const tagProps: {
|
|
|
26
26
|
};
|
|
27
27
|
color: PropType<import("./common-props").TagColor>;
|
|
28
28
|
type: {
|
|
29
|
-
readonly type: PropType<"default" | "
|
|
29
|
+
readonly type: PropType<"default" | "success" | "error" | "warning" | "info" | "primary">;
|
|
30
30
|
readonly default: "default";
|
|
31
31
|
};
|
|
32
32
|
round: BooleanConstructor;
|
|
@@ -251,7 +251,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
251
251
|
};
|
|
252
252
|
color: PropType<import("./common-props").TagColor>;
|
|
253
253
|
type: {
|
|
254
|
-
readonly type: PropType<"default" | "
|
|
254
|
+
readonly type: PropType<"default" | "success" | "error" | "warning" | "info" | "primary">;
|
|
255
255
|
readonly default: "default";
|
|
256
256
|
};
|
|
257
257
|
round: BooleanConstructor;
|
|
@@ -507,7 +507,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
507
507
|
};
|
|
508
508
|
color: PropType<import("./common-props").TagColor>;
|
|
509
509
|
type: {
|
|
510
|
-
readonly type: PropType<"default" | "
|
|
510
|
+
readonly type: PropType<"default" | "success" | "error" | "warning" | "info" | "primary">;
|
|
511
511
|
readonly default: "default";
|
|
512
512
|
};
|
|
513
513
|
round: BooleanConstructor;
|
|
@@ -707,7 +707,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
707
707
|
closeMarginRtl: string;
|
|
708
708
|
}, any>>>;
|
|
709
709
|
}>>, {
|
|
710
|
-
type: "default" | "
|
|
710
|
+
type: "default" | "success" | "error" | "warning" | "info" | "primary";
|
|
711
711
|
round: boolean;
|
|
712
712
|
size: "small" | "medium" | "large";
|
|
713
713
|
disabled: boolean | undefined;
|
package/lib/tag/src/Tag.js
CHANGED
|
@@ -36,7 +36,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
36
36
|
setup(props) {
|
|
37
37
|
const contentRef = (0, vue_1.ref)(null);
|
|
38
38
|
const { mergedBorderedRef, mergedClsPrefixRef, NConfigProvider } = (0, _mixins_1.useConfig)(props);
|
|
39
|
-
const themeRef = (0, _mixins_1.useTheme)('Tag', '
|
|
39
|
+
const themeRef = (0, _mixins_1.useTheme)('Tag', '-tag', index_cssr_1.default, styles_1.tagLight, props, mergedClsPrefixRef);
|
|
40
40
|
(0, vue_1.provide)(exports.tagInjectionKey, {
|
|
41
41
|
roundRef: (0, vue_1.toRef)(props, 'round')
|
|
42
42
|
});
|
|
@@ -7,7 +7,7 @@ export interface TagColor {
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
readonly color: PropType<TagColor>;
|
|
9
9
|
readonly type: {
|
|
10
|
-
readonly type: PropType<"default" | "
|
|
10
|
+
readonly type: PropType<"default" | "success" | "error" | "warning" | "info" | "primary">;
|
|
11
11
|
readonly default: "default";
|
|
12
12
|
};
|
|
13
13
|
readonly round: BooleanConstructor;
|
|
@@ -49,7 +49,7 @@ exports.default = (0, cssr_1.cB)('tag', `
|
|
|
49
49
|
color .3s var(--n-bezier),
|
|
50
50
|
box-shadow .3s var(--n-bezier),
|
|
51
51
|
opacity .3s var(--n-bezier);
|
|
52
|
-
line-height: 1
|
|
52
|
+
line-height: 1;
|
|
53
53
|
height: var(--n-height);
|
|
54
54
|
font-size: var(--n-font-size);
|
|
55
55
|
`, [(0, cssr_1.cE)('border', `
|
|
@@ -83,19 +83,7 @@ exports.default = (0, cssr_1.cB)('tag', `
|
|
|
83
83
|
box-shadow: none;
|
|
84
84
|
color: var(--n-text-color-checkable);
|
|
85
85
|
background-color: var(--n-color-checkable);
|
|
86
|
-
`, [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover',
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
})]), (0, cssr_1.c)('&:active', {
|
|
91
|
-
backgroundColor: 'var(--n-color-pressed-checkable)'
|
|
92
|
-
}, [(0, cssr_1.cNotM)('checked', {
|
|
93
|
-
color: 'var(--n-text-color-pressed-checkable)'
|
|
94
|
-
})])]), (0, cssr_1.cM)('checked', {
|
|
95
|
-
color: 'var(--n-text-color-checked)',
|
|
96
|
-
backgroundColor: 'var(--n-color-checked)'
|
|
97
|
-
}, [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', {
|
|
98
|
-
backgroundColor: 'var(--n-color-checked-hover)'
|
|
99
|
-
}), (0, cssr_1.c)('&:active', {
|
|
100
|
-
backgroundColor: 'var(--n-color-checked-pressed)'
|
|
101
|
-
})])])])]);
|
|
86
|
+
`, [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', 'background-color: var(--n-color-hover-checkable);', [(0, cssr_1.cNotM)('checked', 'color: var(--n-text-color-hover-checkable);')]), (0, cssr_1.c)('&:active', 'background-color: var(--n-color-pressed-checkable);', [(0, cssr_1.cNotM)('checked', 'color: var(--n-text-color-pressed-checkable);')])]), (0, cssr_1.cM)('checked', `
|
|
87
|
+
color: var(--n-text-color-checked);
|
|
88
|
+
background-color: 'var(--n-color-checked);
|
|
89
|
+
`, [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', 'background-color: var(--n-color-checked-hover);'), (0, cssr_1.c)('&:active', 'background-color: var(--n-color-checked-pressed);')])])])]);
|
|
@@ -22,7 +22,7 @@ const ColorWandIcon = ((0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none",
|
|
|
22
22
|
(0, vue_1.h)("path", { d: "M8.72956 4.56346C9.4771 3.81592 10.6891 3.81592 11.4367 4.56347C12.1842 5.31102 12.1842 6.52303 11.4367 7.27058L4.26679 14.4404C3.51924 15.1879 2.30723 15.1879 1.55968 14.4404C0.812134 13.6928 0.812138 12.4808 1.55969 11.7333L8.72956 4.56346ZM8.25002 6.4572L2.26679 12.4404C1.90977 12.7974 1.90977 13.3763 2.26679 13.7333C2.62381 14.0903 3.20266 14.0903 3.55968 13.7333L9.54292 7.75009L8.25002 6.4572ZM10.25 7.04299L10.7295 6.56347C11.0866 6.20645 11.0866 5.6276 10.7296 5.27057C10.3725 4.91355 9.79368 4.91355 9.43666 5.27057L8.95713 5.7501L10.25 7.04299Z", fill: "currentColor" })));
|
|
23
23
|
// button colorOpacitySecondary var is not color
|
|
24
24
|
const showColorPicker = (key) => {
|
|
25
|
-
if (key.includes('
|
|
25
|
+
if (key.includes('pacity'))
|
|
26
26
|
return false;
|
|
27
27
|
if (key.includes('color') || key.includes('Color'))
|
|
28
28
|
return true;
|
package/lib/themes/dark.js
CHANGED
|
@@ -34,49 +34,51 @@ const styles_29 = require("../empty/styles");
|
|
|
34
34
|
const styles_30 = require("../form/styles");
|
|
35
35
|
const styles_31 = require("../gradient-text/styles");
|
|
36
36
|
const styles_32 = require("../icon/styles");
|
|
37
|
-
const styles_33 = require("../
|
|
38
|
-
const styles_34 = require("../
|
|
39
|
-
const styles_35 = require("../input
|
|
40
|
-
const styles_36 = require("../
|
|
41
|
-
const styles_37 = require("../
|
|
42
|
-
const styles_38 = require("../
|
|
43
|
-
const styles_39 = require("../
|
|
44
|
-
const styles_40 = require("../
|
|
45
|
-
const styles_41 = require("../
|
|
46
|
-
const styles_42 = require("../
|
|
47
|
-
const styles_43 = require("../
|
|
48
|
-
const styles_44 = require("../
|
|
49
|
-
const styles_45 = require("../
|
|
50
|
-
const styles_46 = require("../
|
|
51
|
-
const styles_47 = require("../
|
|
52
|
-
const styles_48 = require("../
|
|
53
|
-
const styles_49 = require("../
|
|
54
|
-
const styles_50 = require("../
|
|
55
|
-
const styles_51 = require("../
|
|
56
|
-
const styles_52 = require("../
|
|
57
|
-
const styles_53 = require("../
|
|
58
|
-
const styles_54 = require("../
|
|
59
|
-
const styles_55 = require("../
|
|
60
|
-
const styles_56 = require("../
|
|
61
|
-
const styles_57 = require("../
|
|
62
|
-
const styles_58 = require("../
|
|
63
|
-
const styles_59 = require("../
|
|
64
|
-
const styles_60 = require("../
|
|
65
|
-
const styles_61 = require("../
|
|
66
|
-
const styles_62 = require("../
|
|
67
|
-
const styles_63 = require("../
|
|
68
|
-
const styles_64 = require("../
|
|
69
|
-
const styles_65 = require("../
|
|
70
|
-
const styles_66 = require("../
|
|
71
|
-
const styles_67 = require("../
|
|
72
|
-
const styles_68 = require("../
|
|
73
|
-
const styles_69 = require("../
|
|
74
|
-
const styles_70 = require("../
|
|
75
|
-
const styles_71 = require("../
|
|
76
|
-
const styles_72 = require("../
|
|
77
|
-
const styles_73 = require("../
|
|
78
|
-
const styles_74 = require("../
|
|
37
|
+
const styles_33 = require("../icon-wrapper/styles");
|
|
38
|
+
const styles_34 = require("../image/styles");
|
|
39
|
+
const styles_35 = require("../input/styles");
|
|
40
|
+
const styles_36 = require("../input-number/styles");
|
|
41
|
+
const styles_37 = require("../layout/styles");
|
|
42
|
+
const styles_38 = require("../list/styles");
|
|
43
|
+
const styles_39 = require("../loading-bar/styles");
|
|
44
|
+
const styles_40 = require("../log/styles");
|
|
45
|
+
const styles_41 = require("../menu/styles");
|
|
46
|
+
const styles_42 = require("../mention/styles");
|
|
47
|
+
const styles_43 = require("../message/styles");
|
|
48
|
+
const styles_44 = require("../modal/styles");
|
|
49
|
+
const styles_45 = require("../notification/styles");
|
|
50
|
+
const styles_46 = require("../page-header/styles");
|
|
51
|
+
const styles_47 = require("../pagination/styles");
|
|
52
|
+
const styles_48 = require("../popconfirm/styles");
|
|
53
|
+
const styles_49 = require("../popover/styles");
|
|
54
|
+
const styles_50 = require("../popselect/styles");
|
|
55
|
+
const styles_51 = require("../progress/styles");
|
|
56
|
+
const styles_52 = require("../radio/styles");
|
|
57
|
+
const styles_53 = require("../rate/styles");
|
|
58
|
+
const styles_54 = require("../result/styles");
|
|
59
|
+
const styles_55 = require("../_internal/scrollbar/styles");
|
|
60
|
+
const styles_56 = require("../select/styles");
|
|
61
|
+
const styles_57 = require("../skeleton/styles");
|
|
62
|
+
const styles_58 = require("../slider/styles");
|
|
63
|
+
const styles_59 = require("../space/styles");
|
|
64
|
+
const styles_60 = require("../spin/styles");
|
|
65
|
+
const styles_61 = require("../statistic/styles");
|
|
66
|
+
const styles_62 = require("../steps/styles");
|
|
67
|
+
const styles_63 = require("../switch/styles");
|
|
68
|
+
const styles_64 = require("../table/styles");
|
|
69
|
+
const styles_65 = require("../tabs/styles");
|
|
70
|
+
const styles_66 = require("../tag/styles");
|
|
71
|
+
const styles_67 = require("../thing/styles");
|
|
72
|
+
const styles_68 = require("../time-picker/styles");
|
|
73
|
+
const styles_69 = require("../timeline/styles");
|
|
74
|
+
const styles_70 = require("../tooltip/styles");
|
|
75
|
+
const styles_71 = require("../transfer/styles");
|
|
76
|
+
const styles_72 = require("../tree-select/styles");
|
|
77
|
+
const styles_73 = require("../typography/styles");
|
|
78
|
+
const styles_74 = require("../tree/styles");
|
|
79
|
+
const styles_75 = require("../upload/styles");
|
|
79
80
|
exports.darkTheme = {
|
|
81
|
+
name: 'dark',
|
|
80
82
|
common: common_1.commonDark,
|
|
81
83
|
Alert: styles_1.alertDark,
|
|
82
84
|
Anchor: styles_2.anchorDark,
|
|
@@ -110,46 +112,47 @@ exports.darkTheme = {
|
|
|
110
112
|
Form: styles_30.formDark,
|
|
111
113
|
GradientText: styles_31.gradientTextDark,
|
|
112
114
|
Icon: styles_32.iconDark,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
115
|
+
IconWrapper: styles_33.iconWrapperDark,
|
|
116
|
+
Image: styles_34.imageDark,
|
|
117
|
+
Input: styles_35.inputDark,
|
|
118
|
+
InputNumber: styles_36.inputNumberDark,
|
|
119
|
+
Layout: styles_37.layoutDark,
|
|
120
|
+
List: styles_38.listDark,
|
|
121
|
+
LoadingBar: styles_39.loadingBarDark,
|
|
122
|
+
Log: styles_40.logDark,
|
|
123
|
+
Menu: styles_41.menuDark,
|
|
124
|
+
Mention: styles_42.mentionDark,
|
|
125
|
+
Message: styles_43.messageDark,
|
|
126
|
+
Modal: styles_44.modalDark,
|
|
127
|
+
Notification: styles_45.notificationDark,
|
|
128
|
+
PageHeader: styles_46.pageHeaderDark,
|
|
129
|
+
Pagination: styles_47.paginationDark,
|
|
130
|
+
Popconfirm: styles_48.popconfirmDark,
|
|
131
|
+
Popover: styles_49.popoverDark,
|
|
132
|
+
Popselect: styles_50.popselectDark,
|
|
133
|
+
Progress: styles_51.progressDark,
|
|
134
|
+
Radio: styles_52.radioDark,
|
|
135
|
+
Rate: styles_53.rateDark,
|
|
136
|
+
Result: styles_54.resultDark,
|
|
137
|
+
Scrollbar: styles_55.scrollbarDark,
|
|
138
|
+
Select: styles_56.selectDark,
|
|
139
|
+
Skeleton: styles_57.skeletonDark,
|
|
140
|
+
Slider: styles_58.sliderDark,
|
|
141
|
+
Space: styles_59.spaceDark,
|
|
142
|
+
Spin: styles_60.spinDark,
|
|
143
|
+
Statistic: styles_61.statisticDark,
|
|
144
|
+
Steps: styles_62.stepsDark,
|
|
145
|
+
Switch: styles_63.switchDark,
|
|
146
|
+
Table: styles_64.tableDark,
|
|
147
|
+
Tabs: styles_65.tabsDark,
|
|
148
|
+
Tag: styles_66.tagDark,
|
|
149
|
+
Thing: styles_67.thingDark,
|
|
150
|
+
TimePicker: styles_68.timePickerDark,
|
|
151
|
+
Timeline: styles_69.timelineDark,
|
|
152
|
+
Tooltip: styles_70.tooltipDark,
|
|
153
|
+
Transfer: styles_71.transferDark,
|
|
154
|
+
Tree: styles_74.treeDark,
|
|
155
|
+
TreeSelect: styles_72.treeSelectDark,
|
|
156
|
+
Typography: styles_73.typographyDark,
|
|
157
|
+
Upload: styles_75.uploadDark
|
|
155
158
|
};
|