naive-ui 2.24.6 → 2.25.2
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 +11 -6
- package/es/_internal/select-menu/src/SelectMenu.js +49 -24
- package/es/_internal/selection/src/Selection.d.ts +42 -29
- package/es/_internal/selection/src/Selection.js +100 -93
- package/es/_internal/selection/src/interface.d.ts +2 -2
- package/es/_internal/selection/src/styles/index.cssr.js +16 -31
- package/es/_internal/selection/styles/dark.js +3 -3
- package/es/_internal/selection/styles/light.d.ts +6 -6
- package/es/_internal/selection/styles/light.js +3 -3
- package/es/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/es/_internal/wave/src/Wave.js +1 -1
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-config.js +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +11 -2
- package/es/_mixins/use-css-vars-class.js +49 -18
- 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/css/color-to-class.d.ts +1 -0
- package/es/_utils/css/color-to-class.js +3 -0
- package/es/_utils/css/format-length.d.ts +2 -2
- package/es/_utils/css/format-length.js +1 -2
- package/es/_utils/css/index.d.ts +2 -1
- package/es/_utils/css/index.js +2 -1
- package/es/_utils/cssr/index.d.ts +1 -2
- package/es/_utils/cssr/index.js +1 -14
- package/es/_utils/index.d.ts +2 -2
- package/es/_utils/index.js +2 -2
- 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 +17 -1
- package/es/affix/src/Affix.js +1 -1
- package/es/alert/src/Alert.js +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +16 -1
- 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.js +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/button/src/Button.d.ts +4 -2
- package/es/button/src/Button.js +270 -245
- package/es/button/src/ButtonGroup.js +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/button/styles/index.d.ts +1 -1
- package/es/button/styles/index.js +1 -1
- package/es/button/styles/rtl.d.ts +2 -5
- package/es/button/styles/rtl.js +1 -1
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/src/Card.d.ts +8 -2
- package/es/card/src/Card.js +44 -40
- package/es/card/styles/index.d.ts +1 -1
- package/es/card/styles/index.js +1 -1
- package/es/card/styles/rtl.d.ts +2 -5
- package/es/card/styles/rtl.js +1 -1
- 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 +36 -34
- package/es/cascader/src/Cascader.js +6 -6
- package/es/cascader/src/CascaderMenu.d.ts +3 -3
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/es/cascader/styles/light.d.ts +3 -3
- package/es/checkbox/src/Checkbox.js +1 -1
- package/es/checkbox/src/styles/index.cssr.js +12 -12
- 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 +24 -17
- package/es/color-picker/src/ColorPicker.js +7 -4
- package/es/color-picker/src/ColorPickerTrigger.js +1 -1
- 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 +1 -0
- 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 +33 -33
- package/es/data-table/src/DataTable.js +1 -1
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/es/data-table/src/TableParts/Body.d.ts +6 -6
- package/es/data-table/src/TableParts/Cell.d.ts +12 -12
- package/es/data-table/src/TableParts/Header.d.ts +6 -6
- 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/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +2 -1
- package/es/date-picker/src/DatePicker.js +6 -6
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- 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 +27 -60
- package/es/dialog/src/Dialog.js +4 -31
- package/es/dialog/src/DialogEnvironment.d.ts +8 -9
- package/es/dialog/src/DialogEnvironment.js +3 -2
- package/es/dialog/src/DialogProvider.d.ts +3 -5
- 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 +10 -1
- package/es/dynamic-input/src/DynamicInput.js +61 -18
- package/es/dynamic-tags/src/DynamicTags.d.ts +7 -16
- 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 +1 -1
- package/es/form/src/FormItem.js +3 -2
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- 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.js +1 -1
- package/es/global-style/src/GlobalStyle.js +1 -1
- 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 +1 -2
- package/es/icon/src/Icon.js +2 -2
- 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 +50 -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/Image.d.ts +1 -1
- package/es/image/src/ImagePreview.js +1 -1
- package/es/input/src/Input.d.ts +6 -1
- 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 +5 -5
- package/es/input-number/src/InputNumber.d.ts +2 -1
- 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/deDE.js +13 -15
- package/es/locales/common/enGB.d.ts +109 -0
- package/es/locales/common/enGB.js +109 -0
- package/es/locales/common/eo.d.ts +109 -0
- package/es/locales/common/eo.js +109 -0
- package/es/locales/common/jaJP.js +12 -14
- package/es/locales/common/plPL.d.ts +3 -0
- package/es/locales/common/plPL.js +109 -0
- package/es/locales/date/enGB.d.ts +3 -0
- package/es/locales/date/enGB.js +6 -0
- package/es/locales/date/eo.d.ts +3 -0
- package/es/locales/date/eo.js +6 -0
- package/es/locales/date/plPL.d.ts +3 -0
- package/es/locales/date/plPL.js +6 -0
- package/es/locales/index.d.ts +6 -0
- package/es/locales/index.js +6 -0
- 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 +16 -1
- package/es/mention/src/Mention.js +7 -3
- package/es/menu/src/Menu.d.ts +3 -5
- 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 +5 -3
- package/es/modal/src/BodyWrapper.js +2 -2
- package/es/modal/src/Modal.d.ts +7 -4
- package/es/modal/src/Modal.js +2 -2
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/presetProps.js +1 -1
- package/es/notification/index.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +1 -2
- 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 +3 -4
- package/es/notification/src/NotificationEnvironment.js +3 -3
- package/es/notification/src/NotificationProvider.d.ts +10 -6
- 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.d.ts +33 -33
- package/es/pagination/src/Pagination.js +1 -1
- package/es/pagination/styles/light.d.ts +3 -3
- 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/Circle.d.ts +19 -3
- package/es/progress/src/Circle.js +41 -22
- package/es/progress/src/Progress.d.ts +15 -6
- package/es/progress/src/Progress.js +44 -30
- package/es/progress/src/styles/index.cssr.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.js +1 -1
- package/es/select/index.d.ts +2 -0
- package/es/select/src/Select.d.ts +71 -54
- package/es/select/src/Select.js +82 -47
- package/es/select/src/interface.d.ts +2 -0
- package/es/select/styles/light.d.ts +3 -3
- 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 +3 -1
- package/es/tag/src/Tag.js +61 -41
- package/es/tag/src/styles/index.cssr.js +5 -17
- package/es/tag/styles/index.d.ts +1 -1
- package/es/tag/styles/index.js +1 -1
- package/es/tag/styles/rtl.d.ts +2 -5
- package/es/tag/styles/rtl.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/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/src/utils.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +46 -44
- package/es/tree-select/src/TreeSelect.js +8 -5
- package/es/tree-select/styles/light.d.ts +3 -3
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.js +1 -1
- 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/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 +11 -6
- package/lib/_internal/select-menu/src/SelectMenu.js +47 -22
- package/lib/_internal/selection/src/Selection.d.ts +42 -29
- package/lib/_internal/selection/src/Selection.js +99 -92
- package/lib/_internal/selection/src/interface.d.ts +2 -2
- package/lib/_internal/selection/src/styles/index.cssr.js +15 -30
- package/lib/_internal/selection/styles/dark.js +3 -3
- package/lib/_internal/selection/styles/light.d.ts +6 -6
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/lib/_internal/wave/src/Wave.js +1 -1
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +3 -2
- package/lib/_mixins/use-config.js +2 -2
- package/lib/_mixins/use-css-vars-class.d.ts +11 -2
- package/lib/_mixins/use-css-vars-class.js +50 -22
- 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/css/color-to-class.d.ts +1 -0
- package/lib/_utils/css/color-to-class.js +7 -0
- package/lib/_utils/css/format-length.d.ts +2 -2
- package/lib/_utils/css/format-length.js +2 -1
- package/lib/_utils/css/index.d.ts +2 -1
- package/lib/_utils/css/index.js +4 -5
- package/lib/_utils/cssr/index.d.ts +1 -2
- package/lib/_utils/cssr/index.js +1 -15
- package/lib/_utils/index.d.ts +2 -2
- package/lib/_utils/index.js +6 -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 +21 -2
- package/lib/affix/src/Affix.js +1 -1
- package/lib/alert/src/Alert.js +1 -1
- package/lib/anchor/src/AnchorAdapter.js +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +16 -1
- 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.js +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +1 -1
- package/lib/button/src/Button.d.ts +4 -2
- package/lib/button/src/Button.js +268 -243
- package/lib/button/src/ButtonGroup.js +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/button/styles/index.d.ts +1 -1
- package/lib/button/styles/index.js +1 -1
- package/lib/button/styles/rtl.d.ts +2 -5
- package/lib/button/styles/rtl.js +2 -1
- package/lib/calendar/src/Calendar.js +1 -1
- package/lib/card/src/Card.d.ts +8 -2
- package/lib/card/src/Card.js +43 -39
- package/lib/card/styles/index.d.ts +1 -1
- package/lib/card/styles/index.js +1 -1
- package/lib/card/styles/rtl.d.ts +2 -5
- package/lib/card/styles/rtl.js +2 -1
- 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 +36 -34
- package/lib/cascader/src/Cascader.js +6 -6
- package/lib/cascader/src/CascaderMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/lib/cascader/styles/light.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.js +1 -1
- package/lib/checkbox/src/styles/index.cssr.js +12 -12
- 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 +24 -17
- package/lib/color-picker/src/ColorPicker.js +8 -5
- package/lib/color-picker/src/ColorPickerTrigger.js +2 -2
- 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 +1 -0
- 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 +33 -33
- package/lib/data-table/src/DataTable.js +1 -1
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/lib/data-table/src/TableParts/Body.d.ts +6 -6
- package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
- package/lib/data-table/src/TableParts/Header.d.ts +6 -6
- 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/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +2 -1
- package/lib/date-picker/src/DatePicker.js +6 -6
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- 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 +27 -60
- package/lib/dialog/src/Dialog.js +5 -32
- package/lib/dialog/src/DialogEnvironment.d.ts +8 -9
- package/lib/dialog/src/DialogEnvironment.js +6 -24
- package/lib/dialog/src/DialogProvider.d.ts +3 -5
- 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 +10 -1
- package/lib/dynamic-input/src/DynamicInput.js +59 -16
- package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -16
- 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 +1 -1
- package/lib/form/src/FormItem.js +5 -4
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- 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.js +4 -4
- package/lib/global-style/src/GlobalStyle.js +2 -2
- 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 +1 -2
- package/lib/icon/src/Icon.js +3 -2
- 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 +56 -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/Image.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +1 -1
- package/lib/input/src/Input.d.ts +6 -1
- 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 +4 -4
- package/lib/input-number/src/InputNumber.d.ts +2 -1
- 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/deDE.js +13 -15
- package/lib/locales/common/enGB.d.ts +109 -0
- package/lib/locales/common/enGB.js +111 -0
- package/lib/locales/common/eo.d.ts +109 -0
- package/lib/locales/common/eo.js +111 -0
- package/lib/locales/common/jaJP.js +12 -14
- package/lib/locales/common/plPL.d.ts +3 -0
- package/lib/locales/common/plPL.js +111 -0
- package/lib/locales/date/enGB.d.ts +3 -0
- package/lib/locales/date/enGB.js +11 -0
- package/lib/locales/date/eo.d.ts +3 -0
- package/lib/locales/date/eo.js +11 -0
- package/lib/locales/date/plPL.d.ts +3 -0
- package/lib/locales/date/plPL.js +11 -0
- package/lib/locales/index.d.ts +6 -0
- package/lib/locales/index.js +13 -1
- 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 +16 -1
- package/lib/mention/src/Mention.js +7 -3
- package/lib/menu/src/Menu.d.ts +3 -5
- 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 +5 -3
- package/lib/modal/src/BodyWrapper.js +3 -3
- package/lib/modal/src/Modal.d.ts +7 -4
- package/lib/modal/src/Modal.js +3 -3
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/presetProps.js +2 -2
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +1 -2
- 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 +3 -4
- package/lib/notification/src/NotificationEnvironment.js +4 -23
- package/lib/notification/src/NotificationProvider.d.ts +10 -6
- 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.d.ts +33 -33
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/pagination/styles/light.d.ts +3 -3
- 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/Circle.d.ts +19 -3
- package/lib/progress/src/Circle.js +40 -21
- package/lib/progress/src/Progress.d.ts +15 -6
- package/lib/progress/src/Progress.js +43 -29
- package/lib/progress/src/styles/index.cssr.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.js +1 -1
- package/lib/select/index.d.ts +2 -0
- package/lib/select/src/Select.d.ts +71 -54
- package/lib/select/src/Select.js +82 -47
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/select/styles/light.d.ts +3 -3
- 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 +3 -1
- package/lib/tag/src/Tag.js +59 -39
- package/lib/tag/src/styles/index.cssr.js +5 -17
- package/lib/tag/styles/index.d.ts +1 -1
- package/lib/tag/styles/index.js +1 -1
- package/lib/tag/styles/rtl.d.ts +2 -5
- package/lib/tag/styles/rtl.js +2 -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/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/src/utils.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +46 -44
- package/lib/tree-select/src/TreeSelect.js +8 -5
- package/lib/tree-select/styles/light.d.ts +3 -3
- package/lib/typography/src/a.js +1 -1
- package/lib/typography/src/blockquote.js +1 -1
- package/lib/typography/src/create-header.js +1 -1
- 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/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -9
- package/volar.d.ts +1 -0
- package/web-types.json +452 -220
|
@@ -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);')])])])]);
|
package/lib/tag/styles/index.js
CHANGED
|
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "tagDark", { enumerable: true, get: function () {
|
|
|
9
9
|
var light_1 = require("./light");
|
|
10
10
|
Object.defineProperty(exports, "tagLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
11
|
var rtl_1 = require("./rtl");
|
|
12
|
-
Object.defineProperty(exports, "tagRtl", { enumerable: true, get: function () { return
|
|
12
|
+
Object.defineProperty(exports, "tagRtl", { enumerable: true, get: function () { return rtl_1.tagRtl; } });
|
package/lib/tag/styles/rtl.d.ts
CHANGED
package/lib/tag/styles/rtl.js
CHANGED
|
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.tagRtl = void 0;
|
|
6
7
|
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
7
|
-
exports.
|
|
8
|
+
exports.tagRtl = {
|
|
8
9
|
name: 'Tag',
|
|
9
10
|
style: rtl_cssr_1.default
|
|
10
11
|
};
|
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
|
};
|
package/lib/themes/light.js
CHANGED
|
@@ -36,49 +36,51 @@ const styles_29 = require("../empty/styles");
|
|
|
36
36
|
const styles_30 = require("../form/styles");
|
|
37
37
|
const styles_31 = require("../gradient-text/styles");
|
|
38
38
|
const styles_32 = require("../icon/styles");
|
|
39
|
-
const styles_33 = require("../
|
|
40
|
-
const styles_34 = require("../
|
|
41
|
-
const styles_35 = require("../input
|
|
42
|
-
const styles_36 = require("../
|
|
43
|
-
const styles_37 = require("../
|
|
44
|
-
const styles_38 = require("../
|
|
45
|
-
const styles_39 = require("../
|
|
46
|
-
const styles_40 = require("../
|
|
47
|
-
const styles_41 = require("../
|
|
48
|
-
const styles_42 = require("../
|
|
49
|
-
const styles_43 = require("../
|
|
50
|
-
const styles_44 = require("../
|
|
51
|
-
const styles_45 = require("../
|
|
52
|
-
const styles_46 = require("../
|
|
53
|
-
const styles_47 = require("../
|
|
54
|
-
const styles_48 = require("../
|
|
55
|
-
const styles_49 = require("../
|
|
56
|
-
const styles_50 = require("../
|
|
57
|
-
const styles_51 = require("../
|
|
58
|
-
const styles_52 = require("../
|
|
59
|
-
const styles_53 = require("../
|
|
60
|
-
const styles_54 = require("../
|
|
61
|
-
const styles_55 = require("../
|
|
62
|
-
const styles_56 = require("../
|
|
63
|
-
const styles_57 = require("../
|
|
64
|
-
const styles_58 = require("../
|
|
65
|
-
const styles_59 = require("../
|
|
66
|
-
const styles_60 = require("../
|
|
67
|
-
const styles_61 = require("../
|
|
68
|
-
const styles_62 = require("../
|
|
69
|
-
const styles_63 = require("../
|
|
70
|
-
const styles_64 = require("../
|
|
71
|
-
const styles_65 = require("../
|
|
72
|
-
const styles_66 = require("../
|
|
73
|
-
const styles_67 = require("../
|
|
74
|
-
const styles_68 = require("../
|
|
75
|
-
const styles_69 = require("../
|
|
76
|
-
const styles_70 = require("../
|
|
77
|
-
const styles_71 = require("../
|
|
78
|
-
const styles_72 = require("../
|
|
79
|
-
const styles_73 = require("../tree
|
|
80
|
-
const styles_74 = require("../
|
|
39
|
+
const styles_33 = require("../icon-wrapper/styles");
|
|
40
|
+
const styles_34 = require("../image/styles");
|
|
41
|
+
const styles_35 = require("../input/styles");
|
|
42
|
+
const styles_36 = require("../input-number/styles");
|
|
43
|
+
const styles_37 = require("../layout/styles");
|
|
44
|
+
const styles_38 = require("../list/styles");
|
|
45
|
+
const styles_39 = require("../loading-bar/styles");
|
|
46
|
+
const styles_40 = require("../log/styles");
|
|
47
|
+
const styles_41 = require("../menu/styles");
|
|
48
|
+
const styles_42 = require("../mention/styles");
|
|
49
|
+
const styles_43 = require("../message/styles");
|
|
50
|
+
const styles_44 = require("../modal/styles");
|
|
51
|
+
const styles_45 = require("../notification/styles");
|
|
52
|
+
const styles_46 = require("../page-header/styles");
|
|
53
|
+
const styles_47 = require("../pagination/styles");
|
|
54
|
+
const styles_48 = require("../popconfirm/styles");
|
|
55
|
+
const styles_49 = require("../popover/styles");
|
|
56
|
+
const styles_50 = require("../popselect/styles");
|
|
57
|
+
const styles_51 = require("../progress/styles");
|
|
58
|
+
const styles_52 = require("../radio/styles");
|
|
59
|
+
const styles_53 = require("../rate/styles");
|
|
60
|
+
const styles_54 = require("../result/styles");
|
|
61
|
+
const styles_55 = require("../_internal/scrollbar/styles");
|
|
62
|
+
const styles_56 = require("../select/styles");
|
|
63
|
+
const styles_57 = require("../skeleton/styles");
|
|
64
|
+
const styles_58 = require("../slider/styles");
|
|
65
|
+
const styles_59 = require("../space/styles");
|
|
66
|
+
const styles_60 = require("../spin/styles");
|
|
67
|
+
const styles_61 = require("../statistic/styles");
|
|
68
|
+
const styles_62 = require("../steps/styles");
|
|
69
|
+
const styles_63 = require("../switch/styles");
|
|
70
|
+
const styles_64 = require("../table/styles");
|
|
71
|
+
const styles_65 = require("../tabs/styles");
|
|
72
|
+
const styles_66 = require("../tag/styles");
|
|
73
|
+
const styles_67 = require("../thing/styles");
|
|
74
|
+
const styles_68 = require("../time-picker/styles");
|
|
75
|
+
const styles_69 = require("../timeline/styles");
|
|
76
|
+
const styles_70 = require("../tooltip/styles");
|
|
77
|
+
const styles_71 = require("../transfer/styles");
|
|
78
|
+
const styles_72 = require("../typography/styles");
|
|
79
|
+
const styles_73 = require("../tree/styles");
|
|
80
|
+
const styles_74 = require("../tree-select/styles");
|
|
81
|
+
const styles_75 = require("../upload/styles");
|
|
81
82
|
exports.lightTheme = {
|
|
83
|
+
name: 'light',
|
|
82
84
|
common: common_1.commonLight,
|
|
83
85
|
Alert: styles_1.alertLight,
|
|
84
86
|
Anchor: styles_2.anchorLight,
|
|
@@ -112,46 +114,47 @@ exports.lightTheme = {
|
|
|
112
114
|
Form: styles_30.formLight,
|
|
113
115
|
GradientText: styles_31.gradientTextLight,
|
|
114
116
|
Icon: styles_32.iconLight,
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
117
|
+
IconWrapper: styles_33.iconWrapperLight,
|
|
118
|
+
Image: styles_34.imageLight,
|
|
119
|
+
Input: styles_35.inputLight,
|
|
120
|
+
InputNumber: styles_36.inputNumberLight,
|
|
121
|
+
Layout: styles_37.layoutLight,
|
|
122
|
+
List: styles_38.listLight,
|
|
123
|
+
LoadingBar: styles_39.loadingBarLight,
|
|
124
|
+
Log: styles_40.logLight,
|
|
125
|
+
Menu: styles_41.menuLight,
|
|
126
|
+
Mention: styles_42.mentionLight,
|
|
127
|
+
Message: styles_43.messageLight,
|
|
128
|
+
Modal: styles_44.modalLight,
|
|
129
|
+
Notification: styles_45.notificationLight,
|
|
130
|
+
PageHeader: styles_46.pageHeaderLight,
|
|
131
|
+
Pagination: styles_47.paginationLight,
|
|
132
|
+
Popconfirm: styles_48.popconfirmLight,
|
|
133
|
+
Popover: styles_49.popoverLight,
|
|
134
|
+
Popselect: styles_50.popselectLight,
|
|
135
|
+
Progress: styles_51.progressLight,
|
|
136
|
+
Radio: styles_52.radioLight,
|
|
137
|
+
Rate: styles_53.rateLight,
|
|
138
|
+
Result: styles_54.resultLight,
|
|
139
|
+
Scrollbar: styles_55.scrollbarLight,
|
|
140
|
+
Skeleton: styles_57.skeletonLight,
|
|
141
|
+
Select: styles_56.selectLight,
|
|
142
|
+
Slider: styles_58.sliderLight,
|
|
143
|
+
Space: styles_59.spaceLight,
|
|
144
|
+
Spin: styles_60.spinLight,
|
|
145
|
+
Statistic: styles_61.statisticLight,
|
|
146
|
+
Steps: styles_62.stepsLight,
|
|
147
|
+
Switch: styles_63.switchLight,
|
|
148
|
+
Table: styles_64.tableLight,
|
|
149
|
+
Tabs: styles_65.tabsLight,
|
|
150
|
+
Tag: styles_66.tagLight,
|
|
151
|
+
Thing: styles_67.thingLight,
|
|
152
|
+
TimePicker: styles_68.timePickerLight,
|
|
153
|
+
Timeline: styles_69.timelineLight,
|
|
154
|
+
Tooltip: styles_70.tooltipLight,
|
|
155
|
+
Transfer: styles_71.transferLight,
|
|
156
|
+
Tree: styles_73.treeLight,
|
|
157
|
+
TreeSelect: styles_74.treeSelectLight,
|
|
158
|
+
Typography: styles_72.typographyLight,
|
|
159
|
+
Upload: styles_75.uploadLight
|
|
157
160
|
};
|
package/lib/themes/utils.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GlobalTheme } from '../config-provider';
|
|
2
|
-
declare type ComponentKey = keyof GlobalTheme
|
|
2
|
+
declare type ComponentKey = Exclude<keyof GlobalTheme, 'name'>;
|
|
3
3
|
declare type ComponentThemes = Array<Exclude<GlobalTheme[ComponentKey], undefined>>;
|
|
4
|
+
export declare function createTheme(name: string, componentThemes: ComponentThemes): GlobalTheme;
|
|
4
5
|
export declare function createTheme(componentThemes: ComponentThemes): GlobalTheme;
|
|
5
6
|
export {};
|
package/lib/themes/utils.js
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createTheme = void 0;
|
|
4
|
-
function createTheme(componentThemes) {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
function createTheme(name, componentThemes) {
|
|
5
|
+
const nameIsString = typeof name === 'string';
|
|
6
|
+
const theme = {
|
|
7
|
+
name: nameIsString ? name : 'customized-theme'
|
|
8
|
+
};
|
|
9
|
+
if (nameIsString) {
|
|
10
|
+
if (componentThemes) {
|
|
11
|
+
for (const cTheme of componentThemes) {
|
|
12
|
+
theme[cTheme.name] = cTheme;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
for (const cTheme of name) {
|
|
18
|
+
theme[cTheme.name] = cTheme;
|
|
19
|
+
}
|
|
8
20
|
}
|
|
9
21
|
return theme;
|
|
10
22
|
}
|
package/lib/thing/src/Thing.js
CHANGED
|
@@ -16,7 +16,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
16
16
|
props: thingProps,
|
|
17
17
|
setup(props, { slots }) {
|
|
18
18
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
19
|
-
const themeRef = (0, _mixins_1.useTheme)('Thing', '
|
|
19
|
+
const themeRef = (0, _mixins_1.useTheme)('Thing', '-thing', index_cssr_1.default, styles_1.thingLight, props, mergedClsPrefixRef);
|
|
20
20
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
21
21
|
const { self: { titleTextColor, textColor, titleFontWeight, fontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
22
22
|
return {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { FollowerPlacement } from 'vueuc';
|
|
2
3
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
3
4
|
import type { IsHourDisabled, IsMinuteDisabled, IsSecondDisabled, ItemValue, OnUpdateFormattedValue, OnUpdateValue, Size } from './interface';
|
|
4
5
|
declare const timePickerProps: {
|
|
@@ -18,7 +19,7 @@ declare const timePickerProps: {
|
|
|
18
19
|
defaultFormattedValue: StringConstructor;
|
|
19
20
|
placeholder: StringConstructor;
|
|
20
21
|
placement: {
|
|
21
|
-
type:
|
|
22
|
+
type: PropType<FollowerPlacement>;
|
|
22
23
|
default: string;
|
|
23
24
|
};
|
|
24
25
|
value: PropType<number | null>;
|
|
@@ -947,7 +948,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
947
948
|
defaultFormattedValue: StringConstructor;
|
|
948
949
|
placeholder: StringConstructor;
|
|
949
950
|
placement: {
|
|
950
|
-
type:
|
|
951
|
+
type: PropType<FollowerPlacement>;
|
|
951
952
|
default: string;
|
|
952
953
|
};
|
|
953
954
|
value: PropType<number | null>;
|
|
@@ -1858,6 +1859,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1858
1859
|
}, any>;
|
|
1859
1860
|
}>>>;
|
|
1860
1861
|
}, {
|
|
1862
|
+
mergedStatus: import("vue").ComputedRef<import("../../form/src/interface").FormValidationStatus | undefined>;
|
|
1861
1863
|
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
1862
1864
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
1863
1865
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
@@ -2407,7 +2409,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2407
2409
|
defaultFormattedValue: StringConstructor;
|
|
2408
2410
|
placeholder: StringConstructor;
|
|
2409
2411
|
placement: {
|
|
2410
|
-
type:
|
|
2412
|
+
type: PropType<FollowerPlacement>;
|
|
2411
2413
|
default: string;
|
|
2412
2414
|
};
|
|
2413
2415
|
value: PropType<number | null>;
|
|
@@ -3322,9 +3324,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3322
3324
|
disabled: boolean | undefined;
|
|
3323
3325
|
format: string;
|
|
3324
3326
|
to: string | boolean | HTMLElement;
|
|
3325
|
-
placement: string;
|
|
3326
|
-
showIcon: boolean;
|
|
3327
3327
|
bordered: boolean | undefined;
|
|
3328
|
+
showIcon: boolean;
|
|
3329
|
+
placement: FollowerPlacement;
|
|
3328
3330
|
clearable: boolean;
|
|
3329
3331
|
defaultValue: number | null;
|
|
3330
3332
|
stateful: boolean;
|
|
@@ -84,8 +84,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
84
84
|
const { mergedBorderedRef, mergedClsPrefixRef, namespaceRef } = (0, _mixins_1.useConfig)(props);
|
|
85
85
|
const { localeRef, dateLocaleRef } = (0, _mixins_1.useLocale)('TimePicker');
|
|
86
86
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
87
|
-
const { mergedSizeRef, mergedDisabledRef } = formItem;
|
|
88
|
-
const themeRef = (0, _mixins_1.useTheme)('TimePicker', '
|
|
87
|
+
const { mergedSizeRef, mergedDisabledRef, mergedStatusRef } = formItem;
|
|
88
|
+
const themeRef = (0, _mixins_1.useTheme)('TimePicker', '-time-picker', index_cssr_1.default, styles_1.timePickerLight, props, mergedClsPrefixRef);
|
|
89
89
|
const keyboardState = (0, vooks_1.useKeyboard)();
|
|
90
90
|
const inputInstRef = (0, vue_1.ref)(null);
|
|
91
91
|
const panelInstRef = (0, vue_1.ref)(null);
|
|
@@ -518,7 +518,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
518
518
|
(_a = inputInstRef.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
|
-
return Object.assign(Object.assign({}, exposedMethods), { mergedBordered: mergedBorderedRef, mergedClsPrefix: mergedClsPrefixRef, namespace: namespaceRef, uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, isMounted: (0, vooks_1.useIsMounted)(), inputInstRef,
|
|
521
|
+
return Object.assign(Object.assign({}, exposedMethods), { mergedStatus: mergedStatusRef, mergedBordered: mergedBorderedRef, mergedClsPrefix: mergedClsPrefixRef, namespace: namespaceRef, uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, isMounted: (0, vooks_1.useIsMounted)(), inputInstRef,
|
|
522
522
|
panelInstRef, adjustedTo: (0, _utils_1.useAdjustedTo)(props), mergedShow: mergedShowRef, localizedNow: localizedNowRef, localizedPlaceholder: localizedPlaceholderRef, localizedNegativeText: localizedNegativeTextRef, localizedPositiveText: localizedPositiveTextRef, hourInFormat: hourInFormatRef, minuteInFormat: minuteInFormatRef, secondInFormat: secondInFormatRef, mergedAttrSize: mergedAttrSizeRef, displayTimeString: displayTimeStringRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, isValueInvalid: isValueInvalidRef, isHourInvalid: isHourInvalidRef, isMinuteInvalid: isMinuteInvalidRef, isSecondInvalid: isSecondInvalidRef, transitionDisabled: transitionDisabledRef, hourValue: hourValueRef, minuteValue: minuteValueRef, secondValue: secondValueRef, amPmValue: amPmValueRef, handleTimeInputFocus,
|
|
523
523
|
handleTimeInputBlur,
|
|
524
524
|
handleNowClick,
|
|
@@ -569,7 +569,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
569
569
|
(0, vue_1.h)(vueuc_1.VBinder, null, {
|
|
570
570
|
default: () => [
|
|
571
571
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
572
|
-
default: () => ((0, vue_1.h)(input_1.NInput, { ref: "inputInstRef", value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.mergedShow, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick }, this.showIcon
|
|
572
|
+
default: () => ((0, vue_1.h)(input_1.NInput, { ref: "inputInstRef", status: this.mergedStatus, value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.mergedShow, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick }, this.showIcon
|
|
573
573
|
? {
|
|
574
574
|
[this.clearable ? 'clear' : 'suffix']: () => ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-time-picker-icon` }, {
|
|
575
575
|
default: () => $slots.icon ? $slots.icon() : (0, vue_1.h)(icons_1.TimeIcon, null)
|
|
@@ -577,7 +577,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
577
577
|
}
|
|
578
578
|
: null))
|
|
579
579
|
}),
|
|
580
|
-
(0, vue_1.h)(vueuc_1.VFollower, { teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, show: this.mergedShow, to: this.adjustedTo, containerClass: this.namespace, placement:
|
|
580
|
+
(0, vue_1.h)(vueuc_1.VFollower, { teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, show: this.mergedShow, to: this.adjustedTo, containerClass: this.namespace, placement: this.placement }, {
|
|
581
581
|
default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
582
582
|
default: () => this.mergedShow
|
|
583
583
|
? (0, vue_1.withDirectives)((0, vue_1.h)(Panel_1.default, { ref: "panelInstRef", actions: this.actions, style: this.cssVars, seconds: this.seconds, minutes: this.minutes, hours: this.hours, transitionDisabled: this.transitionDisabled, hourValue: this.hourValue, showHour: this.hourInFormat, isHourInvalid: this.isHourInvalid, isHourDisabled: this.isHourDisabled, minuteValue: this.minuteValue, showMinute: this.minuteInFormat, isMinuteInvalid: this.isMinuteInvalid, isMinuteDisabled: this.isMinuteDisabled, secondValue: this.secondValue, amPmValue: this.amPmValue, showSecond: this.secondInFormat, isSecondInvalid: this.isSecondInvalid, isSecondDisabled: this.isSecondDisabled, isValueInvalid: this.isValueInvalid, nowText: this.localizedNow, confirmText: this.localizedPositiveText, use12Hours: this.use12Hours, onFocusout: this.handleMenuFocusOut, onKeydown: this.handleMenuKeyDown, onHourClick: this.handleHourClick, onMinuteClick: this.handleMinuteClick, onSecondClick: this.handleSecondClick, onAmPmClick: this.handleAmPmClick, onNowClick: this.handleNowClick, onConfirmClick: this.handleConfirmClick, onFocusDetectorFocus: this.handleFocusDetectorFocus }), [[vdirs_1.clickoutside, this.handleClickOutside]])
|
|
@@ -22,7 +22,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
22
22
|
props: timelineProps,
|
|
23
23
|
setup(props, { slots }) {
|
|
24
24
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
25
|
-
const themeRef = (0, _mixins_1.useTheme)('Timeline', '
|
|
25
|
+
const themeRef = (0, _mixins_1.useTheme)('Timeline', '-timeline', index_cssr_1.default, styles_1.timelineLight, props, mergedClsPrefixRef);
|
|
26
26
|
(0, vue_1.provide)(exports.timelineInjectionKey, {
|
|
27
27
|
props,
|
|
28
28
|
mergedThemeRef: themeRef,
|