naive-ui 2.22.0 → 2.24.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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/es/_internal/clear/src/styles/index.cssr.js +10 -10
- package/es/_internal/close/src/styles/index.cssr.js +9 -10
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/icons/Switcher.js +2 -3
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +6 -17
- package/es/_internal/scrollbar/src/ScrollBar.js +14 -16
- package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/es/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/es/_internal/select-menu/src/SelectMenu.js +21 -21
- package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/es/_internal/select-menu/styles/_common.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +44 -44
- package/es/_internal/selection/src/Selection.js +44 -44
- package/es/_internal/selection/src/styles/index.cssr.js +79 -79
- package/es/_internal/selection/styles/_common.js +1 -1
- package/es/_mixins/common.d.ts +1 -0
- package/es/_mixins/common.js +1 -0
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_mixins/use-css-vars-class.d.ts +2 -0
- package/es/_mixins/use-css-vars-class.js +22 -0
- package/es/_mixins/use-rtl.js +2 -0
- package/es/_mixins/use-style.js +3 -0
- package/es/_mixins/use-theme.js +3 -0
- package/es/_utils/composable/use-houdini.js +12 -9
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +14 -14
- package/es/auto-complete/src/AutoComplete.js +15 -17
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +72 -33
- package/es/avatar/src/Avatar.js +43 -15
- package/es/avatar/src/AvatarGroup.d.ts +52 -0
- package/es/avatar/src/AvatarGroup.js +61 -0
- package/es/avatar/src/interface.d.ts +2 -0
- package/es/avatar/src/interface.js +1 -0
- package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
- package/es/avatar/src/styles/index.cssr.js +20 -15
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- package/es/back-top/src/BackTop.d.ts +16 -16
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/badge/src/Badge.d.ts +6 -6
- package/es/badge/src/Badge.js +6 -6
- package/es/badge/src/styles/index.cssr.js +15 -15
- package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/es/breadcrumb/src/Breadcrumb.js +8 -8
- package/es/breadcrumb/src/styles/index.cssr.js +23 -23
- package/es/button/src/Button.d.ts +10 -5
- package/es/button/src/Button.js +21 -14
- package/es/calendar/src/Calendar.d.ts +26 -22
- package/es/calendar/src/Calendar.js +37 -25
- package/es/calendar/src/interface.d.ts +4 -0
- package/es/calendar/src/styles/index.cssr.js +57 -57
- package/es/card/src/Card.d.ts +28 -23
- package/es/card/src/Card.js +24 -23
- package/es/card/src/styles/index.cssr.js +71 -69
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/index.js +1 -0
- package/es/carousel/src/Carousel.d.ts +239 -23
- package/es/carousel/src/Carousel.js +688 -234
- package/es/carousel/src/CarouselArrow.d.ts +9 -0
- package/es/carousel/src/CarouselArrow.js +43 -0
- package/es/carousel/src/CarouselDots.d.ts +66 -0
- package/es/carousel/src/CarouselDots.js +118 -0
- package/es/carousel/src/CarouselItem.d.ts +11 -0
- package/es/carousel/src/CarouselItem.js +72 -0
- package/es/carousel/src/interface.d.ts +28 -0
- package/es/carousel/src/interface.js +2 -0
- package/es/carousel/src/styles/index.cssr.js +150 -47
- package/es/carousel/src/utils.d.ts +12 -0
- package/es/carousel/src/utils.js +58 -0
- package/es/carousel/styles/light.d.ts +3 -0
- package/es/carousel/styles/light.js +5 -2
- package/es/cascader/src/Cascader.d.ts +31 -19
- package/es/cascader/src/Cascader.js +31 -20
- package/es/cascader/src/CascaderMenu.js +1 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.js +7 -4
- package/es/cascader/src/interface.d.ts +2 -1
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/light.js +1 -1
- package/es/checkbox/src/Checkbox.d.ts +23 -23
- package/es/checkbox/src/Checkbox.js +23 -23
- package/es/checkbox/src/styles/index.cssr.js +59 -59
- package/es/code/src/Code.d.ts +19 -14
- package/es/code/src/Code.js +32 -20
- package/es/code/src/styles/index.cssr.js +30 -30
- package/es/collapse/src/Collapse.d.ts +8 -8
- package/es/collapse/src/Collapse.js +8 -8
- package/es/collapse/src/styles/index.cssr.js +24 -24
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorInputUnit.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +23 -15
- package/es/color-picker/src/ColorPicker.js +29 -20
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPickerTrigger.js +23 -17
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +29 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +27 -0
- package/es/countdown/index.d.ts +2 -0
- package/es/countdown/index.js +1 -0
- package/es/countdown/src/Countdown.d.ts +72 -0
- package/es/countdown/src/Countdown.js +126 -0
- package/es/countdown/src/utils.d.ts +0 -0
- package/es/countdown/src/utils.js +1 -0
- package/es/data-table/src/DataTable.d.ts +49 -94
- package/es/data-table/src/DataTable.js +65 -91
- package/es/data-table/src/TableParts/Body.js +7 -5
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/styles/index.cssr.js +133 -130
- package/es/data-table/src/utils.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +71 -67
- package/es/date-picker/src/DatePicker.js +144 -94
- package/es/date-picker/src/interface.d.ts +17 -2
- package/es/date-picker/src/panel/date.d.ts +4 -9
- package/es/date-picker/src/panel/daterange.d.ts +4 -9
- package/es/date-picker/src/panel/datetime.d.ts +4 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/es/date-picker/src/panel/month.d.ts +4 -9
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-calendar.js +8 -7
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/es/date-picker/src/panel/use-panel-common.js +2 -6
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/descriptions/src/Descriptions.d.ts +18 -18
- package/es/descriptions/src/Descriptions.js +19 -20
- package/es/descriptions/src/styles/index.cssr.js +61 -61
- package/es/dialog/src/Dialog.d.ts +24 -24
- package/es/dialog/src/Dialog.js +22 -22
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/divider/src/Divider.js +4 -4
- package/es/divider/src/styles/index.cssr.js +12 -12
- package/es/drawer/src/Drawer.d.ts +37 -77
- package/es/drawer/src/Drawer.js +51 -68
- package/es/drawer/src/DrawerBodyWrapper.js +21 -13
- package/es/drawer/src/DrawerContent.js +6 -6
- package/es/drawer/src/styles/index.cssr.js +41 -40
- package/es/dropdown/src/Dropdown.d.ts +5 -0
- package/es/dropdown/src/Dropdown.js +34 -32
- package/es/dropdown/src/styles/index.cssr.js +59 -59
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/empty/src/Empty.d.ts +19 -15
- package/es/empty/src/Empty.js +12 -12
- package/es/empty/src/styles/index.cssr.js +20 -19
- package/es/form/src/Feedbacks.js +4 -1
- package/es/form/src/Form.d.ts +34 -34
- package/es/form/src/Form.js +17 -8
- package/es/form/src/FormItem.d.ts +54 -49
- package/es/form/src/FormItem.js +39 -27
- package/es/form/src/FormItemCol.d.ts +41 -31
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +41 -31
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +40 -30
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/interface.d.ts +6 -2
- package/es/form/src/styles/form-item.cssr.js +39 -37
- package/es/form/src/utils.d.ts +2 -2
- package/es/form/src/utils.js +29 -18
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +9 -9
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon/src/Icon.js +4 -4
- package/es/icon/src/styles/index.cssr.js +7 -7
- package/es/image/src/Image.d.ts +279 -10
- package/es/image/src/Image.js +4 -17
- package/es/image/src/ImageGroup.d.ts +272 -2
- package/es/image/src/ImageGroup.js +5 -8
- package/es/image/src/ImagePreview.d.ts +195 -7
- package/es/image/src/ImagePreview.js +62 -42
- package/es/image/src/interface.d.ts +94 -0
- package/es/image/src/interface.js +2 -1
- package/es/image/src/styles/index.cssr.js +11 -7
- package/es/image/styles/dark.js +8 -1
- package/es/image/styles/light.d.ts +32 -3
- package/es/image/styles/light.js +8 -1
- package/es/input/src/Input.d.ts +52 -47
- package/es/input/src/Input.js +54 -49
- package/es/input/src/InputGroupLabel.d.ts +8 -8
- package/es/input/src/InputGroupLabel.js +8 -8
- package/es/input/src/styles/input-group-label.cssr.js +18 -18
- package/es/input/src/styles/input.cssr.js +108 -109
- package/es/input-number/src/InputNumber.d.ts +11 -0
- package/es/input-number/src/InputNumber.js +5 -2
- package/es/input-number/src/utils.js +2 -1
- package/es/layout/src/Layout.d.ts +6 -6
- package/es/layout/src/Layout.js +3 -3
- package/es/layout/src/LayoutContent.d.ts +3 -3
- package/es/layout/src/LayoutFooter.js +7 -7
- package/es/layout/src/LayoutHeader.js +7 -7
- package/es/layout/src/LayoutSider.js +13 -13
- package/es/layout/src/styles/layout-footer.cssr.js +11 -11
- package/es/layout/src/styles/layout-header.cssr.js +11 -11
- package/es/layout/src/styles/layout-sider.cssr.js +32 -32
- package/es/layout/src/styles/layout.cssr.js +8 -8
- package/es/list/src/List.d.ts +10 -10
- package/es/list/src/List.js +10 -10
- package/es/list/src/styles/index.cssr.js +30 -30
- package/es/loading-bar/src/LoadingBar.d.ts +3 -3
- package/es/loading-bar/src/LoadingBar.js +3 -3
- package/es/loading-bar/src/styles/index.cssr.js +7 -7
- package/es/locales/common/deDE.js +10 -0
- package/es/locales/common/enUS.d.ts +9 -0
- package/es/locales/common/enUS.js +10 -0
- package/es/locales/common/frFR.js +17 -8
- package/es/locales/common/idID.js +10 -0
- package/es/locales/common/jaJP.js +10 -0
- package/es/locales/common/nbNO.js +10 -0
- package/es/locales/common/ruRU.js +10 -0
- package/es/locales/common/ukUA.js +10 -0
- package/es/locales/common/zhCN.js +9 -0
- package/es/locales/common/zhTW.js +10 -0
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/mention/src/utils.js +0 -1
- package/es/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/index.d.ts +2 -1
- package/es/message/src/Message.d.ts +213 -41
- package/es/message/src/Message.js +35 -33
- package/es/message/src/MessageEnvironment.d.ts +3 -3
- package/es/message/src/MessageProvider.d.ts +5 -10
- package/es/message/src/MessageProvider.js +1 -1
- package/es/message/src/message-props.d.ts +5 -2
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/message/src/types.d.ts +15 -0
- package/es/message/src/types.js +1 -0
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.js +15 -8
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/styles/index.cssr.js +8 -8
- package/es/notification/src/Notification.d.ts +24 -24
- package/es/notification/src/Notification.js +24 -24
- package/es/notification/src/styles/index.cssr.js +65 -65
- package/es/number-animation/index.d.ts +3 -0
- package/es/number-animation/index.js +1 -0
- package/es/number-animation/src/NumberAnimation.d.ts +79 -0
- package/es/number-animation/src/NumberAnimation.js +81 -0
- package/es/number-animation/src/utils.d.ts +8 -0
- package/es/number-animation/src/utils.js +17 -0
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +11 -11
- package/es/page-header/src/PageHeader.js +10 -10
- package/es/page-header/src/styles/index.cssr.js +23 -23
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +50 -45
- package/es/pagination/src/Pagination.js +118 -64
- package/es/pagination/src/interface.d.ts +10 -1
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/pagination/src/utils.d.ts +2 -2
- package/es/pagination/src/utils.js +2 -4
- package/es/popconfirm/src/Popconfirm.d.ts +7 -2
- package/es/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/es/popconfirm/src/PopconfirmPanel.js +4 -4
- package/es/popconfirm/src/styles/index.cssr.js +8 -8
- package/es/popover/src/Popover.d.ts +7 -0
- package/es/popover/src/Popover.js +24 -1
- package/es/popover/src/PopoverBody.d.ts +5 -0
- package/es/popover/src/PopoverBody.js +43 -61
- package/es/popover/src/styles/index.cssr.js +63 -62
- package/es/popselect/src/Popselect.d.ts +62 -73
- package/es/popselect/src/Popselect.js +2 -2
- package/es/progress/src/Circle.d.ts +7 -0
- package/es/progress/src/Circle.js +8 -1
- package/es/progress/src/Line.d.ts +2 -2
- package/es/progress/src/Line.js +4 -1
- package/es/progress/src/Progress.d.ts +20 -16
- package/es/progress/src/Progress.js +16 -16
- package/es/progress/src/styles/index.cssr.js +68 -68
- package/es/radio/src/Radio.d.ts +15 -15
- package/es/radio/src/Radio.js +15 -15
- package/es/radio/src/RadioGroup.d.ts +14 -14
- package/es/radio/src/RadioGroup.js +14 -14
- package/es/radio/src/styles/radio-group.cssr.js +43 -43
- package/es/radio/src/styles/radio.cssr.js +40 -37
- package/es/rate/src/Rate.d.ts +4 -4
- package/es/rate/src/Rate.js +4 -4
- package/es/rate/src/styles/index.cssr.js +11 -11
- package/es/result/src/Result.d.ts +9 -9
- package/es/result/src/Result.js +18 -19
- package/es/result/src/styles/index.cssr.js +26 -26
- package/es/select/src/Select.d.ts +9 -28
- package/es/select/src/Select.js +17 -25
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/skeleton/src/Skeleton.js +3 -3
- package/es/skeleton/src/styles/index.cssr.js +12 -12
- package/es/slider/src/Slider.d.ts +31 -33
- package/es/slider/src/Slider.js +29 -29
- package/es/slider/src/styles/index.cssr.js +87 -87
- package/es/spin/src/Spin.d.ts +5 -5
- package/es/spin/src/Spin.js +5 -5
- package/es/spin/src/styles/index.cssr.js +15 -15
- package/es/statistic/src/Statistic.d.ts +25 -45
- package/es/statistic/src/Statistic.js +12 -19
- package/es/statistic/src/styles/index.cssr.js +19 -19
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +26 -19
- package/es/switch/src/styles/index.cssr.js +59 -57
- package/es/table/src/Table.d.ts +21 -21
- package/es/table/src/Table.js +21 -21
- package/es/table/src/styles/index.cssr.js +55 -55
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tabs.d.ts +2 -2
- package/es/tabs/src/Tabs.js +25 -22
- package/es/tabs/src/interface.d.ts +3 -0
- package/es/tabs/src/styles/index.cssr.js +4 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +27 -26
- package/es/tag/src/Tag.js +27 -26
- package/es/tag/src/styles/index.cssr.js +54 -54
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/thing/src/Thing.js +5 -5
- package/es/thing/src/styles/index.cssr.js +11 -11
- package/es/time-picker/src/TimePicker.d.ts +41 -21
- package/es/time-picker/src/TimePicker.js +76 -46
- package/es/time-picker/src/interface.d.ts +4 -2
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/tooltip/src/Tooltip.d.ts +5 -0
- package/es/transfer/src/Transfer.d.ts +21 -21
- package/es/transfer/src/Transfer.js +21 -21
- package/es/transfer/src/TransferList.js +5 -7
- package/es/transfer/src/styles/index.cssr.js +47 -42
- package/es/tree/src/Tree.d.ts +16 -12
- package/es/tree/src/Tree.js +15 -13
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.js +25 -14
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +37 -35
- package/es/tree-select/src/TreeSelect.d.ts +8 -8
- package/es/tree-select/src/TreeSelect.js +8 -8
- package/es/tree-select/src/styles/index.cssr.js +18 -18
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/a.js +2 -2
- package/es/typography/src/blockquote.d.ts +5 -5
- package/es/typography/src/blockquote.js +5 -5
- package/es/typography/src/create-header.d.ts +8 -8
- package/es/typography/src/create-header.js +8 -8
- package/es/typography/src/headers.d.ts +48 -48
- package/es/typography/src/hr.d.ts +2 -1
- package/es/typography/src/hr.js +3 -1
- package/es/typography/src/ol.d.ts +7 -7
- package/es/typography/src/ol.js +7 -7
- package/es/typography/src/p.d.ts +5 -5
- package/es/typography/src/p.js +5 -5
- package/es/typography/src/styles/a.cssr.js +6 -6
- package/es/typography/src/styles/blockquote.cssr.js +11 -11
- package/es/typography/src/styles/header.cssr.js +19 -19
- package/es/typography/src/styles/hr.cssr.js +3 -3
- package/es/typography/src/styles/list.cssr.js +15 -15
- package/es/typography/src/styles/p.cssr.js +10 -10
- package/es/typography/src/styles/text.cssr.js +18 -18
- package/es/typography/src/text.d.ts +8 -7
- package/es/typography/src/text.js +9 -8
- package/es/typography/src/ul.d.ts +7 -7
- package/es/typography/src/ul.js +7 -7
- package/es/upload/src/Upload.d.ts +16 -7
- package/es/upload/src/Upload.js +34 -25
- package/es/upload/src/UploadFile.d.ts +5 -5
- package/es/upload/src/UploadFileList.js +2 -2
- package/es/upload/src/interface.d.ts +11 -4
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
- package/lib/_internal/close/src/styles/index.cssr.js +9 -10
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/icons/Switcher.js +2 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +6 -17
- package/lib/_internal/scrollbar/src/ScrollBar.js +14 -16
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/lib/_internal/select-menu/src/SelectMenu.js +21 -21
- package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/lib/_internal/select-menu/styles/_common.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +44 -44
- package/lib/_internal/selection/src/Selection.js +44 -44
- package/lib/_internal/selection/src/styles/index.cssr.js +79 -79
- package/lib/_internal/selection/styles/_common.js +1 -1
- package/lib/_mixins/common.d.ts +1 -0
- package/lib/_mixins/common.js +4 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_mixins/use-css-vars-class.d.ts +2 -0
- package/lib/_mixins/use-css-vars-class.js +29 -0
- package/lib/_mixins/use-rtl.js +2 -0
- package/lib/_mixins/use-style.js +3 -0
- package/lib/_mixins/use-theme.js +3 -0
- package/lib/_utils/composable/use-houdini.js +12 -9
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +14 -14
- package/lib/auto-complete/src/AutoComplete.js +16 -18
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +72 -33
- package/lib/avatar/src/Avatar.js +45 -16
- package/lib/avatar/src/AvatarGroup.d.ts +52 -0
- package/lib/avatar/src/AvatarGroup.js +67 -0
- package/lib/avatar/src/interface.d.ts +2 -0
- package/lib/avatar/src/interface.js +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
- package/lib/avatar/src/styles/index.cssr.js +19 -14
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- package/lib/back-top/src/BackTop.d.ts +16 -16
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/badge/src/Badge.d.ts +6 -6
- package/lib/badge/src/Badge.js +6 -6
- package/lib/badge/src/styles/index.cssr.js +15 -15
- package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/lib/breadcrumb/src/Breadcrumb.js +8 -8
- package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
- package/lib/button/src/Button.d.ts +10 -5
- package/lib/button/src/Button.js +20 -13
- package/lib/calendar/src/Calendar.d.ts +26 -22
- package/lib/calendar/src/Calendar.js +36 -24
- package/lib/calendar/src/interface.d.ts +4 -0
- package/lib/calendar/src/styles/index.cssr.js +57 -57
- package/lib/card/src/Card.d.ts +28 -23
- package/lib/card/src/Card.js +24 -23
- package/lib/card/src/styles/index.cssr.js +71 -69
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/index.js +3 -1
- package/lib/carousel/src/Carousel.d.ts +239 -23
- package/lib/carousel/src/Carousel.js +686 -232
- package/lib/carousel/src/CarouselArrow.d.ts +9 -0
- package/lib/carousel/src/CarouselArrow.js +45 -0
- package/lib/carousel/src/CarouselDots.d.ts +66 -0
- package/lib/carousel/src/CarouselDots.js +120 -0
- package/lib/carousel/src/CarouselItem.d.ts +11 -0
- package/lib/carousel/src/CarouselItem.js +74 -0
- package/lib/carousel/src/interface.d.ts +28 -0
- package/lib/carousel/src/interface.js +6 -0
- package/lib/carousel/src/styles/index.cssr.js +150 -47
- package/lib/carousel/src/utils.d.ts +12 -0
- package/lib/carousel/src/utils.js +69 -0
- package/lib/carousel/styles/light.d.ts +3 -0
- package/lib/carousel/styles/light.js +5 -2
- package/lib/cascader/src/Cascader.d.ts +31 -19
- package/lib/cascader/src/Cascader.js +31 -20
- package/lib/cascader/src/CascaderMenu.js +1 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +7 -4
- package/lib/cascader/src/interface.d.ts +2 -1
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/light.js +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +23 -23
- package/lib/checkbox/src/Checkbox.js +23 -23
- package/lib/checkbox/src/styles/index.cssr.js +59 -59
- package/lib/code/src/Code.d.ts +19 -14
- package/lib/code/src/Code.js +32 -20
- package/lib/code/src/styles/index.cssr.js +29 -29
- package/lib/collapse/src/Collapse.d.ts +8 -8
- package/lib/collapse/src/Collapse.js +8 -8
- package/lib/collapse/src/styles/index.cssr.js +24 -24
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +23 -15
- package/lib/color-picker/src/ColorPicker.js +29 -20
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +29 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +27 -0
- package/lib/countdown/index.d.ts +2 -0
- package/lib/countdown/index.js +8 -0
- package/lib/countdown/src/Countdown.d.ts +72 -0
- package/lib/countdown/src/Countdown.js +128 -0
- package/lib/countdown/src/utils.d.ts +0 -0
- package/lib/countdown/src/utils.js +1 -0
- package/lib/data-table/src/DataTable.d.ts +49 -94
- package/lib/data-table/src/DataTable.js +63 -89
- package/lib/data-table/src/TableParts/Body.js +7 -5
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -130
- package/lib/data-table/src/utils.js +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +71 -67
- package/lib/date-picker/src/DatePicker.js +143 -93
- package/lib/date-picker/src/interface.d.ts +17 -2
- package/lib/date-picker/src/panel/date.d.ts +4 -9
- package/lib/date-picker/src/panel/daterange.d.ts +4 -9
- package/lib/date-picker/src/panel/datetime.d.ts +4 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/lib/date-picker/src/panel/month.d.ts +4 -9
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-calendar.js +8 -7
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/lib/date-picker/src/panel/use-panel-common.js +2 -6
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/descriptions/src/Descriptions.d.ts +18 -18
- package/lib/descriptions/src/Descriptions.js +19 -20
- package/lib/descriptions/src/styles/index.cssr.js +61 -61
- package/lib/dialog/src/Dialog.d.ts +24 -24
- package/lib/dialog/src/Dialog.js +22 -22
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/divider/src/Divider.js +4 -4
- package/lib/divider/src/styles/index.cssr.js +12 -12
- package/lib/drawer/src/Drawer.d.ts +37 -77
- package/lib/drawer/src/Drawer.js +49 -66
- package/lib/drawer/src/DrawerBodyWrapper.js +21 -13
- package/lib/drawer/src/DrawerContent.js +6 -6
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- package/lib/dropdown/src/Dropdown.d.ts +5 -0
- package/lib/dropdown/src/Dropdown.js +34 -32
- package/lib/dropdown/src/styles/index.cssr.js +59 -59
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/empty/src/Empty.d.ts +19 -15
- package/lib/empty/src/Empty.js +12 -12
- package/lib/empty/src/styles/index.cssr.js +19 -18
- package/lib/form/src/Feedbacks.js +4 -1
- package/lib/form/src/Form.d.ts +34 -34
- package/lib/form/src/Form.js +16 -7
- package/lib/form/src/FormItem.d.ts +54 -49
- package/lib/form/src/FormItem.js +38 -26
- package/lib/form/src/FormItemCol.d.ts +41 -31
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +41 -31
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +40 -30
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/interface.d.ts +6 -2
- package/lib/form/src/styles/form-item.cssr.js +39 -37
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/form/src/utils.js +29 -18
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +9 -9
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon/src/Icon.js +4 -4
- package/lib/icon/src/styles/index.cssr.js +7 -7
- package/lib/image/src/Image.d.ts +279 -10
- package/lib/image/src/Image.js +4 -17
- package/lib/image/src/ImageGroup.d.ts +272 -2
- package/lib/image/src/ImageGroup.js +4 -7
- package/lib/image/src/ImagePreview.d.ts +195 -7
- package/lib/image/src/ImagePreview.js +60 -40
- package/lib/image/src/interface.d.ts +94 -0
- package/lib/image/src/interface.js +3 -0
- package/lib/image/src/styles/index.cssr.js +11 -7
- package/lib/image/styles/dark.js +8 -1
- package/lib/image/styles/light.d.ts +32 -3
- package/lib/image/styles/light.js +8 -1
- package/lib/input/src/Input.d.ts +52 -47
- package/lib/input/src/Input.js +54 -49
- package/lib/input/src/InputGroupLabel.d.ts +8 -8
- package/lib/input/src/InputGroupLabel.js +8 -8
- package/lib/input/src/styles/input-group-label.cssr.js +18 -18
- package/lib/input/src/styles/input.cssr.js +108 -109
- package/lib/input-number/src/InputNumber.d.ts +11 -0
- package/lib/input-number/src/InputNumber.js +5 -2
- package/lib/input-number/src/utils.js +2 -1
- package/lib/layout/src/Layout.d.ts +6 -6
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutContent.d.ts +3 -3
- package/lib/layout/src/LayoutFooter.js +7 -7
- package/lib/layout/src/LayoutHeader.js +7 -7
- package/lib/layout/src/LayoutSider.js +13 -13
- package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
- package/lib/layout/src/styles/layout-header.cssr.js +11 -11
- package/lib/layout/src/styles/layout-sider.cssr.js +32 -32
- package/lib/layout/src/styles/layout.cssr.js +8 -8
- package/lib/list/src/List.d.ts +10 -10
- package/lib/list/src/List.js +10 -10
- package/lib/list/src/styles/index.cssr.js +30 -30
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/styles/index.cssr.js +7 -7
- package/lib/locales/common/deDE.js +10 -0
- package/lib/locales/common/enUS.d.ts +9 -0
- package/lib/locales/common/enUS.js +10 -0
- package/lib/locales/common/frFR.js +17 -8
- package/lib/locales/common/idID.js +10 -0
- package/lib/locales/common/jaJP.js +10 -0
- package/lib/locales/common/nbNO.js +10 -0
- package/lib/locales/common/ruRU.js +10 -0
- package/lib/locales/common/ukUA.js +10 -0
- package/lib/locales/common/zhCN.js +9 -0
- package/lib/locales/common/zhTW.js +10 -0
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +1 -1
- package/lib/mention/src/styles/index.cssr.js +2 -2
- package/lib/mention/src/utils.js +0 -1
- package/lib/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/index.d.ts +2 -1
- package/lib/message/src/Message.d.ts +213 -41
- package/lib/message/src/Message.js +35 -33
- package/lib/message/src/MessageEnvironment.d.ts +3 -3
- package/lib/message/src/MessageProvider.d.ts +5 -10
- package/lib/message/src/MessageProvider.js +1 -1
- package/lib/message/src/message-props.d.ts +5 -2
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/message/src/types.d.ts +15 -0
- package/lib/message/src/types.js +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +15 -8
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +8 -8
- package/lib/notification/src/Notification.d.ts +24 -24
- package/lib/notification/src/Notification.js +24 -24
- package/lib/notification/src/styles/index.cssr.js +65 -65
- package/lib/number-animation/index.d.ts +3 -0
- package/lib/number-animation/index.js +8 -0
- package/lib/number-animation/src/NumberAnimation.d.ts +79 -0
- package/lib/number-animation/src/NumberAnimation.js +83 -0
- package/lib/number-animation/src/utils.d.ts +8 -0
- package/lib/number-animation/src/utils.js +21 -0
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +11 -11
- package/lib/page-header/src/PageHeader.js +10 -10
- package/lib/page-header/src/styles/index.cssr.js +23 -23
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +50 -45
- package/lib/pagination/src/Pagination.js +117 -63
- package/lib/pagination/src/interface.d.ts +10 -1
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/pagination/src/utils.d.ts +2 -2
- package/lib/pagination/src/utils.js +2 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +7 -2
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/lib/popconfirm/src/PopconfirmPanel.js +4 -4
- package/lib/popconfirm/src/styles/index.cssr.js +8 -8
- package/lib/popover/src/Popover.d.ts +7 -0
- package/lib/popover/src/Popover.js +23 -0
- package/lib/popover/src/PopoverBody.d.ts +5 -0
- package/lib/popover/src/PopoverBody.js +42 -60
- package/lib/popover/src/styles/index.cssr.js +63 -62
- package/lib/popselect/src/Popselect.d.ts +62 -73
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/progress/src/Circle.d.ts +7 -0
- package/lib/progress/src/Circle.js +8 -1
- package/lib/progress/src/Line.d.ts +2 -2
- package/lib/progress/src/Line.js +4 -1
- package/lib/progress/src/Progress.d.ts +20 -16
- package/lib/progress/src/Progress.js +16 -16
- package/lib/progress/src/styles/index.cssr.js +68 -68
- package/lib/radio/src/Radio.d.ts +15 -15
- package/lib/radio/src/Radio.js +15 -15
- package/lib/radio/src/RadioGroup.d.ts +14 -14
- package/lib/radio/src/RadioGroup.js +14 -14
- package/lib/radio/src/styles/radio-group.cssr.js +43 -43
- package/lib/radio/src/styles/radio.cssr.js +40 -37
- package/lib/rate/src/Rate.d.ts +4 -4
- package/lib/rate/src/Rate.js +4 -4
- package/lib/rate/src/styles/index.cssr.js +11 -11
- package/lib/result/src/Result.d.ts +9 -9
- package/lib/result/src/Result.js +17 -18
- package/lib/result/src/styles/index.cssr.js +26 -26
- package/lib/select/src/Select.d.ts +9 -28
- package/lib/select/src/Select.js +15 -23
- package/lib/select/src/styles/index.cssr.js +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/skeleton/src/Skeleton.js +3 -3
- package/lib/skeleton/src/styles/index.cssr.js +12 -12
- package/lib/slider/src/Slider.d.ts +31 -33
- package/lib/slider/src/Slider.js +29 -29
- package/lib/slider/src/styles/index.cssr.js +87 -87
- package/lib/spin/src/Spin.d.ts +5 -5
- package/lib/spin/src/Spin.js +5 -5
- package/lib/spin/src/styles/index.cssr.js +15 -15
- package/lib/statistic/src/Statistic.d.ts +25 -45
- package/lib/statistic/src/Statistic.js +12 -19
- package/lib/statistic/src/styles/index.cssr.js +19 -19
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +26 -19
- package/lib/switch/src/styles/index.cssr.js +59 -57
- package/lib/table/src/Table.d.ts +21 -21
- package/lib/table/src/Table.js +21 -21
- package/lib/table/src/styles/index.cssr.js +55 -55
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tabs.d.ts +2 -2
- package/lib/tabs/src/Tabs.js +25 -22
- package/lib/tabs/src/interface.d.ts +3 -0
- package/lib/tabs/src/styles/index.cssr.js +4 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +27 -26
- package/lib/tag/src/Tag.js +27 -26
- package/lib/tag/src/styles/index.cssr.js +54 -54
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/thing/src/Thing.js +5 -5
- package/lib/thing/src/styles/index.cssr.js +11 -11
- package/lib/time-picker/src/TimePicker.d.ts +41 -21
- package/lib/time-picker/src/TimePicker.js +76 -46
- package/lib/time-picker/src/interface.d.ts +4 -2
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/tooltip/src/Tooltip.d.ts +5 -0
- package/lib/transfer/src/Transfer.d.ts +21 -21
- package/lib/transfer/src/Transfer.js +21 -21
- package/lib/transfer/src/TransferList.js +5 -7
- package/lib/transfer/src/styles/index.cssr.js +47 -42
- package/lib/tree/src/Tree.d.ts +16 -12
- package/lib/tree/src/Tree.js +15 -13
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.js +24 -13
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +37 -35
- package/lib/tree-select/src/TreeSelect.d.ts +8 -8
- package/lib/tree-select/src/TreeSelect.js +8 -8
- package/lib/tree-select/src/styles/index.cssr.js +18 -18
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/a.js +2 -2
- package/lib/typography/src/blockquote.d.ts +5 -5
- package/lib/typography/src/blockquote.js +5 -5
- package/lib/typography/src/create-header.d.ts +8 -8
- package/lib/typography/src/create-header.js +8 -8
- package/lib/typography/src/headers.d.ts +48 -48
- package/lib/typography/src/hr.d.ts +2 -1
- package/lib/typography/src/hr.js +3 -1
- package/lib/typography/src/ol.d.ts +7 -7
- package/lib/typography/src/ol.js +7 -7
- package/lib/typography/src/p.d.ts +5 -5
- package/lib/typography/src/p.js +5 -5
- package/lib/typography/src/styles/a.cssr.js +6 -6
- package/lib/typography/src/styles/blockquote.cssr.js +11 -11
- package/lib/typography/src/styles/header.cssr.js +19 -19
- package/lib/typography/src/styles/hr.cssr.js +3 -3
- package/lib/typography/src/styles/list.cssr.js +15 -15
- package/lib/typography/src/styles/p.cssr.js +10 -10
- package/lib/typography/src/styles/text.cssr.js +18 -18
- package/lib/typography/src/text.d.ts +8 -7
- package/lib/typography/src/text.js +9 -8
- package/lib/typography/src/ul.d.ts +7 -7
- package/lib/typography/src/ul.js +7 -7
- package/lib/upload/src/Upload.d.ts +16 -7
- package/lib/upload/src/Upload.js +34 -25
- package/lib/upload/src/UploadFile.d.ts +5 -5
- package/lib/upload/src/UploadFileList.js +2 -2
- package/lib/upload/src/interface.d.ts +11 -4
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +52 -43
- package/web-types.json +648 -43
package/lib/table/src/Table.d.ts
CHANGED
|
@@ -211,27 +211,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
211
|
}, {
|
|
212
212
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
213
213
|
cssVars: import("vue").ComputedRef<{
|
|
214
|
-
'--bezier': string;
|
|
215
|
-
'--td-color': string;
|
|
216
|
-
'--td-color-modal': string;
|
|
217
|
-
'--td-color-popover': string;
|
|
218
|
-
'--td-text-color': string;
|
|
219
|
-
'--border-color': string;
|
|
220
|
-
'--border-color-modal': string;
|
|
221
|
-
'--border-color-popover': string;
|
|
222
|
-
'--border-radius': string;
|
|
223
|
-
'--font-size': string;
|
|
224
|
-
'--th-color': string;
|
|
225
|
-
'--th-color-modal': string;
|
|
226
|
-
'--th-color-popover': string;
|
|
227
|
-
'--th-font-weight': string;
|
|
228
|
-
'--th-text-color': string;
|
|
229
|
-
'--line-height': string;
|
|
230
|
-
'--td-padding': string;
|
|
231
|
-
'--th-padding': string;
|
|
232
|
-
'--td-color-striped': string;
|
|
233
|
-
'--td-color-striped-modal': string;
|
|
234
|
-
'--td-color-striped-popover': string;
|
|
214
|
+
'--n-bezier': string;
|
|
215
|
+
'--n-td-color': string;
|
|
216
|
+
'--n-td-color-modal': string;
|
|
217
|
+
'--n-td-color-popover': string;
|
|
218
|
+
'--n-td-text-color': string;
|
|
219
|
+
'--n-border-color': string;
|
|
220
|
+
'--n-border-color-modal': string;
|
|
221
|
+
'--n-border-color-popover': string;
|
|
222
|
+
'--n-border-radius': string;
|
|
223
|
+
'--n-font-size': string;
|
|
224
|
+
'--n-th-color': string;
|
|
225
|
+
'--n-th-color-modal': string;
|
|
226
|
+
'--n-th-color-popover': string;
|
|
227
|
+
'--n-th-font-weight': string;
|
|
228
|
+
'--n-th-text-color': string;
|
|
229
|
+
'--n-line-height': string;
|
|
230
|
+
'--n-td-padding': string;
|
|
231
|
+
'--n-th-padding': string;
|
|
232
|
+
'--n-td-color-striped': string;
|
|
233
|
+
'--n-td-color-striped-modal': string;
|
|
234
|
+
'--n-td-color-striped-popover': string;
|
|
235
235
|
}>;
|
|
236
236
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
237
237
|
bordered?: unknown;
|
package/lib/table/src/Table.js
CHANGED
|
@@ -33,27 +33,27 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
33
33
|
const { size } = props;
|
|
34
34
|
const { self: { borderColor, tdColor, tdColorModal, tdColorPopover, thColor, thColorModal, thColorPopover, thTextColor, tdTextColor, borderRadius, thFontWeight, lineHeight, borderColorModal, borderColorPopover, tdColorStriped, tdColorStripedModal, tdColorStripedPopover, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('tdPadding', size)]: tdPadding, [(0, _utils_1.createKey)('thPadding', size)]: thPadding }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
35
35
|
return {
|
|
36
|
-
'--bezier': cubicBezierEaseInOut,
|
|
37
|
-
'--td-color': tdColor,
|
|
38
|
-
'--td-color-modal': tdColorModal,
|
|
39
|
-
'--td-color-popover': tdColorPopover,
|
|
40
|
-
'--td-text-color': tdTextColor,
|
|
41
|
-
'--border-color': borderColor,
|
|
42
|
-
'--border-color-modal': borderColorModal,
|
|
43
|
-
'--border-color-popover': borderColorPopover,
|
|
44
|
-
'--border-radius': borderRadius,
|
|
45
|
-
'--font-size': fontSize,
|
|
46
|
-
'--th-color': thColor,
|
|
47
|
-
'--th-color-modal': thColorModal,
|
|
48
|
-
'--th-color-popover': thColorPopover,
|
|
49
|
-
'--th-font-weight': thFontWeight,
|
|
50
|
-
'--th-text-color': thTextColor,
|
|
51
|
-
'--line-height': lineHeight,
|
|
52
|
-
'--td-padding': tdPadding,
|
|
53
|
-
'--th-padding': thPadding,
|
|
54
|
-
'--td-color-striped': tdColorStriped,
|
|
55
|
-
'--td-color-striped-modal': tdColorStripedModal,
|
|
56
|
-
'--td-color-striped-popover': tdColorStripedPopover
|
|
36
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
37
|
+
'--n-td-color': tdColor,
|
|
38
|
+
'--n-td-color-modal': tdColorModal,
|
|
39
|
+
'--n-td-color-popover': tdColorPopover,
|
|
40
|
+
'--n-td-text-color': tdTextColor,
|
|
41
|
+
'--n-border-color': borderColor,
|
|
42
|
+
'--n-border-color-modal': borderColorModal,
|
|
43
|
+
'--n-border-color-popover': borderColorPopover,
|
|
44
|
+
'--n-border-radius': borderRadius,
|
|
45
|
+
'--n-font-size': fontSize,
|
|
46
|
+
'--n-th-color': thColor,
|
|
47
|
+
'--n-th-color-modal': thColorModal,
|
|
48
|
+
'--n-th-color-popover': thColorPopover,
|
|
49
|
+
'--n-th-font-weight': thFontWeight,
|
|
50
|
+
'--n-th-text-color': thTextColor,
|
|
51
|
+
'--n-line-height': lineHeight,
|
|
52
|
+
'--n-td-padding': tdPadding,
|
|
53
|
+
'--n-th-padding': thPadding,
|
|
54
|
+
'--n-td-color-striped': tdColorStriped,
|
|
55
|
+
'--n-td-color-striped-modal': tdColorStripedModal,
|
|
56
|
+
'--n-td-color-striped-popover': tdColorStripedPopover
|
|
57
57
|
};
|
|
58
58
|
})
|
|
59
59
|
};
|
|
@@ -5,76 +5,76 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
8
|
-
// --bezier
|
|
9
|
-
// --td-color
|
|
10
|
-
// --td-color-modal
|
|
11
|
-
// --td-color-popover
|
|
12
|
-
// --td-text-color
|
|
13
|
-
// --border-color
|
|
14
|
-
// --border-color-modal
|
|
15
|
-
// --border-color-popover
|
|
16
|
-
// --border-radius
|
|
17
|
-
// --font-size
|
|
18
|
-
// --th-color
|
|
19
|
-
// --th-color-modal
|
|
20
|
-
// --th-color-popover
|
|
21
|
-
// --th-font-weight
|
|
22
|
-
// --th-text-color
|
|
23
|
-
// --line-height
|
|
24
|
-
// --td-padding
|
|
25
|
-
// --th-padding
|
|
8
|
+
// --n-bezier
|
|
9
|
+
// --n-td-color
|
|
10
|
+
// --n-td-color-modal
|
|
11
|
+
// --n-td-color-popover
|
|
12
|
+
// --n-td-text-color
|
|
13
|
+
// --n-border-color
|
|
14
|
+
// --n-border-color-modal
|
|
15
|
+
// --n-border-color-popover
|
|
16
|
+
// --n-border-radius
|
|
17
|
+
// --n-font-size
|
|
18
|
+
// --n-th-color
|
|
19
|
+
// --n-th-color-modal
|
|
20
|
+
// --n-th-color-popover
|
|
21
|
+
// --n-th-font-weight
|
|
22
|
+
// --n-th-text-color
|
|
23
|
+
// --n-line-height
|
|
24
|
+
// --n-td-padding
|
|
25
|
+
// --n-th-padding
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('table', `
|
|
29
|
-
font-size: var(--font-size);
|
|
29
|
+
font-size: var(--n-font-size);
|
|
30
30
|
font-variant-numeric: tabular-nums;
|
|
31
|
-
line-height: var(--line-height);
|
|
31
|
+
line-height: var(--n-line-height);
|
|
32
32
|
width: 100%;
|
|
33
|
-
border-radius: var(--border-radius) var(--border-radius) 0 0;
|
|
33
|
+
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
34
34
|
text-align: left;
|
|
35
35
|
border-collapse: separate;
|
|
36
36
|
border-spacing: 0;
|
|
37
37
|
overflow: hidden;
|
|
38
|
-
background-color: var(--td-color);
|
|
38
|
+
background-color: var(--n-td-color);
|
|
39
39
|
transition:
|
|
40
|
-
background-color .3s var(--bezier),
|
|
41
|
-
border-color .3s var(--bezier),
|
|
42
|
-
color .3s var(--bezier);
|
|
43
|
-
--merged-border-color: var(--border-color);
|
|
40
|
+
background-color .3s var(--n-bezier),
|
|
41
|
+
border-color .3s var(--n-bezier),
|
|
42
|
+
color .3s var(--n-bezier);
|
|
43
|
+
--n-merged-border-color: var(--n-border-color);
|
|
44
44
|
`, [(0, cssr_1.c)('th', `
|
|
45
45
|
white-space: nowrap;
|
|
46
46
|
transition:
|
|
47
|
-
background-color .3s var(--bezier),
|
|
48
|
-
border-color .3s var(--bezier),
|
|
49
|
-
color .3s var(--bezier);
|
|
47
|
+
background-color .3s var(--n-bezier),
|
|
48
|
+
border-color .3s var(--n-bezier),
|
|
49
|
+
color .3s var(--n-bezier);
|
|
50
50
|
text-align: inherit;
|
|
51
|
-
padding: var(--th-padding);
|
|
51
|
+
padding: var(--n-th-padding);
|
|
52
52
|
vertical-align: inherit;
|
|
53
53
|
text-transform: none;
|
|
54
54
|
border: none;
|
|
55
|
-
font-weight: var(--th-font-weight);
|
|
56
|
-
color: var(--th-text-color);
|
|
57
|
-
background-color: var(--th-color);
|
|
58
|
-
border-color: var(--merged-border-color);
|
|
59
|
-
border-bottom: 1px solid var(--merged-border-color);
|
|
60
|
-
border-right: 1px solid var(--merged-border-color);
|
|
55
|
+
font-weight: var(--n-th-font-weight);
|
|
56
|
+
color: var(--n-th-text-color);
|
|
57
|
+
background-color: var(--n-th-color);
|
|
58
|
+
border-color: var(--n-merged-border-color);
|
|
59
|
+
border-bottom: 1px solid var(--n-merged-border-color);
|
|
60
|
+
border-right: 1px solid var(--n-merged-border-color);
|
|
61
61
|
`, [(0, cssr_1.c)('&:last-child', `
|
|
62
62
|
border-right: none;
|
|
63
63
|
`)]), (0, cssr_1.c)('td', `
|
|
64
64
|
transition:
|
|
65
|
-
background-color .3s var(--bezier),
|
|
66
|
-
border-color .3s var(--bezier),
|
|
67
|
-
color .3s var(--bezier);
|
|
68
|
-
padding: var(--td-padding);
|
|
69
|
-
color: var(--td-text-color);
|
|
70
|
-
background-color: var(--td-color);
|
|
71
|
-
border-right: 1px solid var(--merged-border-color);
|
|
72
|
-
border-bottom: 1px solid var(--merged-border-color);
|
|
65
|
+
background-color .3s var(--n-bezier),
|
|
66
|
+
border-color .3s var(--n-bezier),
|
|
67
|
+
color .3s var(--n-bezier);
|
|
68
|
+
padding: var(--n-td-padding);
|
|
69
|
+
color: var(--n-td-text-color);
|
|
70
|
+
background-color: var(--n-td-color);
|
|
71
|
+
border-right: 1px solid var(--n-merged-border-color);
|
|
72
|
+
border-bottom: 1px solid var(--n-merged-border-color);
|
|
73
73
|
`, [(0, cssr_1.c)('&:last-child', `
|
|
74
74
|
border-right: none;
|
|
75
75
|
`)]), (0, cssr_1.cM)('bordered', `
|
|
76
|
-
border: 1px solid var(--merged-border-color);
|
|
77
|
-
border-radius: var(--border-radius);
|
|
76
|
+
border: 1px solid var(--n-merged-border-color);
|
|
77
|
+
border-radius: var(--n-border-radius);
|
|
78
78
|
`, [(0, cssr_1.c)('tr', [(0, cssr_1.c)('&:last-child', [(0, cssr_1.c)('td', `
|
|
79
79
|
border-bottom: none;
|
|
80
80
|
`)])])]), (0, cssr_1.cM)('single-line', [(0, cssr_1.c)('th', `
|
|
@@ -83,20 +83,20 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('table', `
|
|
|
83
83
|
border-right: none;
|
|
84
84
|
`)]), (0, cssr_1.cM)('single-column', [(0, cssr_1.c)('tr', [(0, cssr_1.c)('&:not(:last-child)', [(0, cssr_1.c)('td', `
|
|
85
85
|
border-bottom: none;
|
|
86
|
-
`)])])]), (0, cssr_1.cM)('striped', [(0, cssr_1.c)('tr:nth-of-type(even)', [(0, cssr_1.c)('td', 'background-color: var(--td-color-striped)')])]), (0, cssr_1.cNotM)('bottom-bordered', [(0, cssr_1.c)('tr', [(0, cssr_1.c)('&:last-child', [(0, cssr_1.c)('td', `
|
|
86
|
+
`)])])]), (0, cssr_1.cM)('striped', [(0, cssr_1.c)('tr:nth-of-type(even)', [(0, cssr_1.c)('td', 'background-color: var(--n-td-color-striped)')])]), (0, cssr_1.cNotM)('bottom-bordered', [(0, cssr_1.c)('tr', [(0, cssr_1.c)('&:last-child', [(0, cssr_1.c)('td', `
|
|
87
87
|
border-bottom: none;
|
|
88
88
|
`)])])])]), (0, cssr_1.insideModal)((0, cssr_1.cB)('table', `
|
|
89
|
-
background-color: var(--td-color-modal);
|
|
90
|
-
--merged-border-color: var(--border-color-modal);
|
|
89
|
+
background-color: var(--n-td-color-modal);
|
|
90
|
+
--n-merged-border-color: var(--n-border-color-modal);
|
|
91
91
|
`, [(0, cssr_1.c)('th', `
|
|
92
|
-
background-color: var(--th-color-modal);
|
|
92
|
+
background-color: var(--n-th-color-modal);
|
|
93
93
|
`), (0, cssr_1.c)('td', `
|
|
94
|
-
background-color: var(--td-color-modal);
|
|
94
|
+
background-color: var(--n-td-color-modal);
|
|
95
95
|
`)])), (0, cssr_1.insidePopover)((0, cssr_1.cB)('table', `
|
|
96
|
-
background-color: var(--td-color-popover);
|
|
97
|
-
--merged-border-color: var(--border-color-popover);
|
|
96
|
+
background-color: var(--n-td-color-popover);
|
|
97
|
+
--n-merged-border-color: var(--n-border-color-popover);
|
|
98
98
|
`, [(0, cssr_1.c)('th', `
|
|
99
|
-
background-color: var(--th-color-popover);
|
|
99
|
+
background-color: var(--n-th-color-popover);
|
|
100
100
|
`), (0, cssr_1.c)('td', `
|
|
101
|
-
background-color: var(--td-color-popover);
|
|
101
|
+
background-color: var(--n-td-color-popover);
|
|
102
102
|
`)]))]);
|
package/lib/tabs/index.d.ts
CHANGED
package/lib/tabs/src/Tabs.d.ts
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import { PropType, CSSProperties, ComponentPublicInstance, nextTick } from 'vue';
|
|
3
3
|
import { VXScrollInst } from 'vueuc';
|
|
4
4
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
5
|
-
import { Addable, OnClose, OnBeforeLeave, TabsType } from './interface';
|
|
6
|
-
import type { OnUpdateValue } from './interface';
|
|
5
|
+
import type { Addable, OnClose, OnBeforeLeave, TabsType, OnUpdateValue } from './interface';
|
|
7
6
|
declare const tabsProps: {
|
|
8
7
|
readonly value: PropType<string | number>;
|
|
9
8
|
readonly defaultValue: PropType<string | number>;
|
|
@@ -437,6 +436,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
437
436
|
panePaddingLarge: string;
|
|
438
437
|
}, any>>>;
|
|
439
438
|
}, {
|
|
439
|
+
syncBarPosition: () => void;
|
|
440
440
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
441
441
|
mergedValue: import("vue").ComputedRef<string | number | null>;
|
|
442
442
|
renderedNames: Set<string | number>;
|
package/lib/tabs/src/Tabs.js
CHANGED
|
@@ -11,8 +11,8 @@ const _mixins_1 = require("../../_mixins");
|
|
|
11
11
|
const _utils_1 = require("../../_utils");
|
|
12
12
|
const styles_1 = require("../styles");
|
|
13
13
|
const interface_1 = require("./interface");
|
|
14
|
-
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
15
14
|
const Tab_1 = __importDefault(require("./Tab"));
|
|
15
|
+
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
16
16
|
const tabsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { value: [String, Number], defaultValue: [String, Number], type: {
|
|
17
17
|
type: String,
|
|
18
18
|
default: 'bar'
|
|
@@ -59,9 +59,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
59
59
|
: null));
|
|
60
60
|
const mergedValueRef = (0, vooks_1.useMergedState)(compitableValueRef, uncontrolledValueRef);
|
|
61
61
|
const tabChangeIdRef = { id: 0 };
|
|
62
|
-
(0, vue_1.watch)(mergedValueRef, () => {
|
|
63
|
-
tabChangeIdRef.id = 0;
|
|
64
|
-
});
|
|
65
62
|
const tabWrapperStyleRef = (0, vue_1.computed)(() => {
|
|
66
63
|
if (!props.justifyContent || props.type === 'card')
|
|
67
64
|
return undefined;
|
|
@@ -71,6 +68,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
71
68
|
};
|
|
72
69
|
});
|
|
73
70
|
(0, vue_1.watch)(mergedValueRef, () => {
|
|
71
|
+
tabChangeIdRef.id = 0;
|
|
74
72
|
updateCurrentBarStyle();
|
|
75
73
|
});
|
|
76
74
|
function getCurrentEl() {
|
|
@@ -235,22 +233,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
235
233
|
el.classList.add(shadowAfterClass);
|
|
236
234
|
}
|
|
237
235
|
});
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
236
|
+
const exposedMethods = {
|
|
237
|
+
syncBarPosition: () => {
|
|
238
|
+
updateCurrentBarStyle();
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, mergedValue: mergedValueRef, renderedNames: new Set(), tabsElRef,
|
|
243
242
|
barElRef,
|
|
244
243
|
addTabInstRef,
|
|
245
244
|
xScrollInstRef,
|
|
246
|
-
scrollWrapperElRef,
|
|
247
|
-
|
|
248
|
-
tabWrapperStyle: tabWrapperStyleRef,
|
|
249
|
-
handleNavResize,
|
|
250
|
-
mergedSize: compitableSizeRef,
|
|
251
|
-
handleScroll,
|
|
252
|
-
handleTabsResize,
|
|
253
|
-
cssVars: (0, vue_1.computed)(() => {
|
|
245
|
+
scrollWrapperElRef, addTabFixed: addTabFixedRef, tabWrapperStyle: tabWrapperStyleRef, handleNavResize, mergedSize: compitableSizeRef, handleScroll,
|
|
246
|
+
handleTabsResize, cssVars: (0, vue_1.computed)(() => {
|
|
254
247
|
const { value: size } = compitableSizeRef;
|
|
255
248
|
const { type } = props;
|
|
256
249
|
const typeSuffix = {
|
|
@@ -285,8 +278,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
285
278
|
'--font-weight-strong': fontWeightStrong,
|
|
286
279
|
'--tab-color-segment': tabColorSegment
|
|
287
280
|
};
|
|
288
|
-
})
|
|
289
|
-
};
|
|
281
|
+
}) }, exposedMethods);
|
|
290
282
|
},
|
|
291
283
|
render() {
|
|
292
284
|
const { mergedClsPrefix, type, addTabFixed, addable, mergedSize, $slots: { default: defaultSlot, prefix: prefixSlot, suffix: suffixSlot } } = this;
|
|
@@ -344,7 +336,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
344
336
|
mergedJustifyContent ? null : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } })),
|
|
345
337
|
showPane
|
|
346
338
|
? tabPaneChildren.map((tabPaneVNode, index) => {
|
|
347
|
-
return ((0, vue_1.h)(Tab_1.default, Object.assign({}, tabPaneVNode.props, { internalLeftPadded: index !== 0 && !mergedJustifyContent }), tabPaneVNode.children
|
|
339
|
+
return justifyTabDynamicProps((0, vue_1.h)(Tab_1.default, Object.assign({}, tabPaneVNode.props, { internalLeftPadded: index !== 0 && !mergedJustifyContent }), tabPaneVNode.children
|
|
348
340
|
? {
|
|
349
341
|
default: tabPaneVNode.children.tab
|
|
350
342
|
}
|
|
@@ -353,10 +345,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
353
345
|
: tabChildren.map((tabVNode, index) => {
|
|
354
346
|
if (index !== 0 &&
|
|
355
347
|
!mergedJustifyContent) {
|
|
356
|
-
return createLeftPaddedTabVNode(tabVNode);
|
|
348
|
+
return justifyTabDynamicProps(createLeftPaddedTabVNode(tabVNode));
|
|
357
349
|
}
|
|
358
350
|
else {
|
|
359
|
-
return tabVNode;
|
|
351
|
+
return justifyTabDynamicProps(tabVNode);
|
|
360
352
|
}
|
|
361
353
|
}),
|
|
362
354
|
!addTabFixed && addable && isCard
|
|
@@ -422,3 +414,14 @@ function createLeftPaddedTabVNode(tabVNode) {
|
|
|
422
414
|
}
|
|
423
415
|
return modifiedVNode;
|
|
424
416
|
}
|
|
417
|
+
function justifyTabDynamicProps(tabVNode) {
|
|
418
|
+
if (Array.isArray(tabVNode.dynamicProps)) {
|
|
419
|
+
if (!tabVNode.dynamicProps.includes('internalLeftPadded')) {
|
|
420
|
+
tabVNode.dynamicProps.push('internalLeftPadded');
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
tabVNode.dynamicProps = ['internalLeftPadded'];
|
|
425
|
+
}
|
|
426
|
+
return tabVNode;
|
|
427
|
+
}
|
|
@@ -58,8 +58,11 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
58
58
|
justify-content: center;
|
|
59
59
|
`, [(0, cssr_1.cM)('active', `
|
|
60
60
|
font-weight: var(--font-weight-strong);
|
|
61
|
+
color: var(--tab-text-color-active);
|
|
61
62
|
background-color: var(--tab-color-segment);
|
|
62
63
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
|
64
|
+
`), (0, cssr_1.c)('&:hover', `
|
|
65
|
+
color: var(--tab-text-color-hover);
|
|
63
66
|
`)])])]), (0, cssr_1.cM)('flex', [(0, cssr_1.cB)('tabs-nav', {
|
|
64
67
|
width: '100%'
|
|
65
68
|
}, [(0, cssr_1.cB)('tabs-wrapper', {
|
|
@@ -203,7 +206,7 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
203
206
|
padding-right: 8px;
|
|
204
207
|
font-size: 16px;
|
|
205
208
|
`, [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', `
|
|
206
|
-
color: var(--tab-text-color-
|
|
209
|
+
color: var(--tab-text-color-hover);
|
|
207
210
|
`)])]), (0, cssr_1.cM)('closable', 'padding-right: 6px;'), (0, cssr_1.cM)('active', `
|
|
208
211
|
border-bottom: 1px solid #0000;
|
|
209
212
|
background-color: #0000;
|
package/lib/tabs/styles/light.js
CHANGED
|
@@ -8,7 +8,7 @@ const _common_1 = __importDefault(require("./_common"));
|
|
|
8
8
|
const common_1 = require("../../_styles/common");
|
|
9
9
|
const self = (vars) => {
|
|
10
10
|
const { textColor2, primaryColor, textColorDisabled, closeColor, closeColorHover, closeColorPressed, tabColor, baseColor, dividerColor, fontWeight, textColor1, borderRadius, fontSize, fontWeightStrong } = vars;
|
|
11
|
-
return Object.assign(Object.assign({}, _common_1.default), { colorSegment: tabColor, tabFontSizeCard: fontSize, tabTextColorLine: textColor1, tabTextColorActiveLine: primaryColor, tabTextColorHoverLine: primaryColor, tabTextColorDisabledLine: textColorDisabled, tabTextColorSegment: textColor1, tabTextColorActiveSegment:
|
|
11
|
+
return Object.assign(Object.assign({}, _common_1.default), { colorSegment: tabColor, tabFontSizeCard: fontSize, tabTextColorLine: textColor1, tabTextColorActiveLine: primaryColor, tabTextColorHoverLine: primaryColor, tabTextColorDisabledLine: textColorDisabled, tabTextColorSegment: textColor1, tabTextColorActiveSegment: textColor2, tabTextColorHoverSegment: textColor2, tabTextColorDisabledSegment: textColorDisabled, tabTextColorBar: textColor1, tabTextColorActiveBar: primaryColor, tabTextColorHoverBar: primaryColor, tabTextColorDisabledBar: textColorDisabled, tabTextColorCard: textColor1, tabTextColorHoverCard: textColor1, tabTextColorActiveCard: primaryColor, tabTextColorDisabledCard: textColorDisabled, barColor: primaryColor, closeColor,
|
|
12
12
|
closeColorHover,
|
|
13
13
|
closeColorPressed,
|
|
14
14
|
tabColor, tabColorSegment: baseColor, tabBorderColor: dividerColor, tabFontWeightActive: fontWeight, tabFontWeight: fontWeight, tabBorderRadius: borderRadius, paneTextColor: textColor2, fontWeightStrong });
|
package/lib/tag/src/Tag.d.ts
CHANGED
|
@@ -458,32 +458,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
458
458
|
handleClick: (e: MouseEvent) => void;
|
|
459
459
|
handleCloseClick: (e: MouseEvent) => void;
|
|
460
460
|
cssVars: import("vue").ComputedRef<{
|
|
461
|
-
'--avatar-size-override': string;
|
|
462
|
-
'--bezier': string;
|
|
463
|
-
'--border-radius': string;
|
|
464
|
-
'--border': string;
|
|
465
|
-
'--close-color': string;
|
|
466
|
-
'--close-color-hover': string;
|
|
467
|
-
'--close-color-pressed': string;
|
|
468
|
-
'--close-
|
|
469
|
-
'--close-margin
|
|
470
|
-
'--close-
|
|
471
|
-
'--
|
|
472
|
-
'--color
|
|
473
|
-
'--color-
|
|
474
|
-
'--color-checked
|
|
475
|
-
'--color-checked-
|
|
476
|
-
'--color-
|
|
477
|
-
'--color-
|
|
478
|
-
'--
|
|
479
|
-
'--
|
|
480
|
-
'--
|
|
481
|
-
'--
|
|
482
|
-
'--
|
|
483
|
-
'--text-color
|
|
484
|
-
'--text-color-
|
|
485
|
-
'--text-color-
|
|
486
|
-
'--text-color-
|
|
461
|
+
'--n-avatar-size-override': string;
|
|
462
|
+
'--n-bezier': string;
|
|
463
|
+
'--n-border-radius': string;
|
|
464
|
+
'--n-border': string;
|
|
465
|
+
'--n-close-color': string;
|
|
466
|
+
'--n-close-color-hover': string;
|
|
467
|
+
'--n-close-color-pressed': string;
|
|
468
|
+
'--n-close-color-disabled': string;
|
|
469
|
+
'--n-close-margin': string;
|
|
470
|
+
'--n-close-margin-rtl': string;
|
|
471
|
+
'--n-close-size': string;
|
|
472
|
+
'--n-color': string;
|
|
473
|
+
'--n-color-checkable': string;
|
|
474
|
+
'--n-color-checked': string;
|
|
475
|
+
'--n-color-checked-hover': string;
|
|
476
|
+
'--n-color-checked-pressed': string;
|
|
477
|
+
'--n-color-hover-checkable': string;
|
|
478
|
+
'--n-color-pressed-checkable': string;
|
|
479
|
+
'--n-font-size': string;
|
|
480
|
+
'--n-height': string;
|
|
481
|
+
'--n-opacity-disabled': string;
|
|
482
|
+
'--n-padding': string;
|
|
483
|
+
'--n-text-color': string;
|
|
484
|
+
'--n-text-color-checkable': string;
|
|
485
|
+
'--n-text-color-checked': string;
|
|
486
|
+
'--n-text-color-hover-checkable': string;
|
|
487
|
+
'--n-text-color-pressed-checkable': string;
|
|
487
488
|
}>;
|
|
488
489
|
setTextContent: (textContent: string) => void;
|
|
489
490
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
package/lib/tag/src/Tag.js
CHANGED
|
@@ -77,32 +77,33 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
77
77
|
const { type, size, color: { color, textColor } = {} } = props;
|
|
78
78
|
const { common: { cubicBezierEaseInOut }, self: { padding, closeMargin, closeMarginRtl, borderRadius, opacityDisabled, textColorCheckable, textColorHoverCheckable, textColorPressedCheckable, textColorChecked, colorCheckable, colorHoverCheckable, colorPressedCheckable, colorChecked, colorCheckedHover, colorCheckedPressed, [(0, _utils_1.createKey)('closeSize', size)]: closeSize, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('color', type)]: typedColor, [(0, _utils_1.createKey)('textColor', type)]: typeTextColor, [(0, _utils_1.createKey)('border', type)]: border, [(0, _utils_1.createKey)('closeColor', type)]: closeColor, [(0, _utils_1.createKey)('closeColorHover', type)]: closeColorHover, [(0, _utils_1.createKey)('closeColorPressed', type)]: closeColorPressed } } = themeRef.value;
|
|
79
79
|
return {
|
|
80
|
-
'--avatar-size-override': `calc(${height} - 8px)`,
|
|
81
|
-
'--bezier': cubicBezierEaseInOut,
|
|
82
|
-
'--border-radius': borderRadius,
|
|
83
|
-
'--border': border,
|
|
84
|
-
'--close-color': closeColor,
|
|
85
|
-
'--close-color-hover': closeColorHover,
|
|
86
|
-
'--close-color-pressed': closeColorPressed,
|
|
87
|
-
'--close-
|
|
88
|
-
'--close-margin
|
|
89
|
-
'--close-
|
|
90
|
-
'--
|
|
91
|
-
'--color
|
|
92
|
-
'--color-
|
|
93
|
-
'--color-checked
|
|
94
|
-
'--color-checked-
|
|
95
|
-
'--color-
|
|
96
|
-
'--color-
|
|
97
|
-
'--
|
|
98
|
-
'--
|
|
99
|
-
'--
|
|
100
|
-
'--
|
|
101
|
-
'--
|
|
102
|
-
'--text-color
|
|
103
|
-
'--text-color-
|
|
104
|
-
'--text-color-
|
|
105
|
-
'--text-color-
|
|
80
|
+
'--n-avatar-size-override': `calc(${height} - 8px)`,
|
|
81
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
82
|
+
'--n-border-radius': borderRadius,
|
|
83
|
+
'--n-border': border,
|
|
84
|
+
'--n-close-color': closeColor,
|
|
85
|
+
'--n-close-color-hover': closeColorHover,
|
|
86
|
+
'--n-close-color-pressed': closeColorPressed,
|
|
87
|
+
'--n-close-color-disabled': closeColor,
|
|
88
|
+
'--n-close-margin': closeMargin,
|
|
89
|
+
'--n-close-margin-rtl': closeMarginRtl,
|
|
90
|
+
'--n-close-size': closeSize,
|
|
91
|
+
'--n-color': color || typedColor,
|
|
92
|
+
'--n-color-checkable': colorCheckable,
|
|
93
|
+
'--n-color-checked': colorChecked,
|
|
94
|
+
'--n-color-checked-hover': colorCheckedHover,
|
|
95
|
+
'--n-color-checked-pressed': colorCheckedPressed,
|
|
96
|
+
'--n-color-hover-checkable': colorHoverCheckable,
|
|
97
|
+
'--n-color-pressed-checkable': colorPressedCheckable,
|
|
98
|
+
'--n-font-size': fontSize,
|
|
99
|
+
'--n-height': height,
|
|
100
|
+
'--n-opacity-disabled': opacityDisabled,
|
|
101
|
+
'--n-padding': padding,
|
|
102
|
+
'--n-text-color': textColor || typeTextColor,
|
|
103
|
+
'--n-text-color-checkable': textColorCheckable,
|
|
104
|
+
'--n-text-color-checked': textColorChecked,
|
|
105
|
+
'--n-text-color-hover-checkable': textColorHoverCheckable,
|
|
106
|
+
'--n-text-color-pressed-checkable': textColorPressedCheckable
|
|
106
107
|
};
|
|
107
108
|
}) });
|
|
108
109
|
},
|