naive-ui 2.23.1 → 2.23.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/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/scrollbar/src/ScrollBar.d.ts +6 -6
- package/es/_internal/scrollbar/src/ScrollBar.js +11 -10
- 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 +78 -78
- 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 +2 -2
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +67 -28
- package/es/avatar/src/Avatar.js +39 -11
- 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 +8 -3
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- 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/calendar/src/Calendar.d.ts +21 -21
- package/es/calendar/src/Calendar.js +21 -21
- 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/src/Carousel.d.ts +5 -5
- package/es/carousel/src/Carousel.js +5 -5
- package/es/carousel/src/styles/index.cssr.js +10 -10
- package/es/cascader/src/Cascader.d.ts +25 -17
- package/es/cascader/src/Cascader.js +30 -20
- package/es/cascader/src/CascaderMenu.js +1 -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 +58 -58
- package/es/code/src/Code.d.ts +14 -14
- package/es/code/src/Code.js +26 -17
- package/es/code/src/styles/index.cssr.js +28 -28
- 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/ColorPicker.d.ts +10 -10
- package/es/color-picker/src/ColorPicker.js +10 -10
- package/es/color-picker/src/styles/index.cssr.js +28 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -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 +39 -39
- package/es/data-table/src/DataTable.js +42 -42
- package/es/data-table/src/TableParts/Body.js +6 -4
- package/es/data-table/src/styles/index.cssr.js +130 -130
- package/es/date-picker/src/DatePicker.d.ts +45 -45
- package/es/date-picker/src/DatePicker.js +45 -45
- 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 +3 -3
- package/es/dialog/src/Dialog.js +3 -3
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +19 -19
- package/es/drawer/src/Drawer.js +19 -19
- package/es/drawer/src/styles/index.cssr.js +41 -40
- package/es/dropdown/src/Dropdown.js +34 -32
- package/es/dropdown/src/styles/index.cssr.js +59 -59
- 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/FormItem.d.ts +15 -15
- package/es/form/src/FormItem.js +15 -15
- package/es/form/src/FormItemCol.d.ts +6 -0
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +6 -0
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +6 -0
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/styles/form-item.cssr.js +37 -37
- 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/ImagePreview.d.ts +2 -2
- package/es/image/src/ImagePreview.js +13 -12
- package/es/image/src/styles/index.cssr.js +5 -5
- 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/frFR.js +7 -8
- 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/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/src/Message.d.ts +22 -22
- package/es/message/src/Message.js +22 -22
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +14 -8
- package/es/modal/src/Modal.js +13 -7
- 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/src/PageHeader.d.ts +10 -10
- package/es/page-header/src/PageHeader.js +10 -10
- package/es/page-header/src/styles/index.cssr.js +23 -23
- package/es/pagination/src/Pagination.d.ts +42 -41
- package/es/pagination/src/Pagination.js +52 -45
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/popconfirm/src/Popconfirm.d.ts +2 -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/PopoverBody.js +15 -15
- package/es/popover/src/styles/index.cssr.js +62 -62
- package/es/progress/src/Progress.d.ts +14 -14
- package/es/progress/src/Progress.js +14 -14
- package/es/progress/src/styles/index.cssr.js +53 -53
- 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 +36 -36
- 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 +9 -9
- package/es/result/src/styles/index.cssr.js +20 -20
- package/es/select/src/Select.d.ts +1 -1
- package/es/select/src/Select.js +1 -1
- 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 +29 -29
- 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/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/src/styles/index.cssr.js +4 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +1 -0
- package/es/tag/src/Tag.js +1 -0
- 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 +2 -2
- 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 +38 -38
- package/es/upload/src/Upload.d.ts +1 -1
- 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/scrollbar/src/ScrollBar.d.ts +6 -6
- package/lib/_internal/scrollbar/src/ScrollBar.js +11 -10
- 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 +78 -78
- 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 +2 -2
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +67 -28
- package/lib/avatar/src/Avatar.js +41 -12
- 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 +7 -2
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- 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/calendar/src/Calendar.d.ts +21 -21
- package/lib/calendar/src/Calendar.js +21 -21
- 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/src/Carousel.d.ts +5 -5
- package/lib/carousel/src/Carousel.js +5 -5
- package/lib/carousel/src/styles/index.cssr.js +10 -10
- package/lib/cascader/src/Cascader.d.ts +25 -17
- package/lib/cascader/src/Cascader.js +30 -20
- package/lib/cascader/src/CascaderMenu.js +1 -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 +58 -58
- package/lib/code/src/Code.d.ts +14 -14
- package/lib/code/src/Code.js +26 -17
- package/lib/code/src/styles/index.cssr.js +28 -28
- 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/ColorPicker.d.ts +10 -10
- package/lib/color-picker/src/ColorPicker.js +10 -10
- package/lib/color-picker/src/styles/index.cssr.js +28 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -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 +39 -39
- package/lib/data-table/src/DataTable.js +42 -42
- package/lib/data-table/src/TableParts/Body.js +6 -4
- package/lib/data-table/src/styles/index.cssr.js +130 -130
- package/lib/date-picker/src/DatePicker.d.ts +45 -45
- package/lib/date-picker/src/DatePicker.js +45 -45
- 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 +3 -3
- package/lib/dialog/src/Dialog.js +3 -3
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +19 -19
- package/lib/drawer/src/Drawer.js +19 -19
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- package/lib/dropdown/src/Dropdown.js +34 -32
- package/lib/dropdown/src/styles/index.cssr.js +59 -59
- 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/FormItem.d.ts +15 -15
- package/lib/form/src/FormItem.js +15 -15
- package/lib/form/src/FormItemCol.d.ts +6 -0
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +6 -0
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +6 -0
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/styles/form-item.cssr.js +37 -37
- 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/ImagePreview.d.ts +2 -2
- package/lib/image/src/ImagePreview.js +12 -11
- package/lib/image/src/styles/index.cssr.js +5 -5
- 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/frFR.js +7 -8
- 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/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/src/Message.d.ts +22 -22
- package/lib/message/src/Message.js +22 -22
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +14 -8
- package/lib/modal/src/Modal.js +13 -7
- 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/src/PageHeader.d.ts +10 -10
- package/lib/page-header/src/PageHeader.js +10 -10
- package/lib/page-header/src/styles/index.cssr.js +23 -23
- package/lib/pagination/src/Pagination.d.ts +42 -41
- package/lib/pagination/src/Pagination.js +52 -45
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -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/PopoverBody.js +15 -15
- package/lib/popover/src/styles/index.cssr.js +62 -62
- package/lib/progress/src/Progress.d.ts +14 -14
- package/lib/progress/src/Progress.js +14 -14
- package/lib/progress/src/styles/index.cssr.js +53 -53
- 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 +36 -36
- 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 +9 -9
- package/lib/result/src/styles/index.cssr.js +20 -20
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/select/src/Select.js +1 -1
- 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 +29 -29
- 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/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/src/styles/index.cssr.js +4 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +1 -0
- package/lib/tag/src/Tag.js +1 -0
- 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 +2 -2
- 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 +38 -38
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +11 -10
- package/web-types.json +230 -7
package/es/avatar/src/Avatar.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { h, ref, computed, defineComponent, inject, watch } from 'vue';
|
|
2
2
|
import { VResizeObserver } from 'vueuc';
|
|
3
|
+
import { avatarGroupInjectionKey } from './AvatarGroup';
|
|
3
4
|
import { tagInjectionKey } from '../../tag/src/Tag';
|
|
4
5
|
import { useConfig, useTheme } from '../../_mixins';
|
|
5
6
|
import { avatarLight } from '../styles';
|
|
6
7
|
import { createKey } from '../../_utils';
|
|
7
8
|
import style from './styles/index.cssr';
|
|
8
|
-
const avatarProps = Object.assign(Object.assign({}, useTheme.props), { size: {
|
|
9
|
-
type:
|
|
10
|
-
default:
|
|
11
|
-
},
|
|
12
|
-
type:
|
|
13
|
-
default:
|
|
14
|
-
},
|
|
9
|
+
export const avatarProps = Object.assign(Object.assign({}, useTheme.props), { size: [String, Number], src: String, circle: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: undefined
|
|
12
|
+
}, objectFit: String, round: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: undefined
|
|
15
|
+
}, bordered: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: undefined
|
|
18
|
+
}, onError: Function, fallbackSrc: String,
|
|
15
19
|
/** @deprecated */
|
|
16
20
|
color: String });
|
|
17
21
|
export default defineComponent({
|
|
@@ -39,16 +43,34 @@ export default defineComponent({
|
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
};
|
|
46
|
+
const NAvatarGroup = inject(avatarGroupInjectionKey, null);
|
|
47
|
+
const mergedSizeRef = computed(() => {
|
|
48
|
+
const { size } = props;
|
|
49
|
+
if (size)
|
|
50
|
+
return size;
|
|
51
|
+
const { size: avatarGroupSize } = NAvatarGroup || {};
|
|
52
|
+
if (avatarGroupSize)
|
|
53
|
+
return avatarGroupSize;
|
|
54
|
+
return 'medium';
|
|
55
|
+
});
|
|
42
56
|
const themeRef = useTheme('Avatar', 'Avatar', style, avatarLight, props, mergedClsPrefixRef);
|
|
43
57
|
const TagInjection = inject(tagInjectionKey, null);
|
|
44
58
|
const mergedRoundRef = computed(() => {
|
|
45
|
-
if (
|
|
59
|
+
if (NAvatarGroup)
|
|
46
60
|
return true;
|
|
61
|
+
const { round, circle } = props;
|
|
62
|
+
if (round !== undefined || circle !== undefined)
|
|
63
|
+
return round || circle;
|
|
47
64
|
if (TagInjection) {
|
|
48
65
|
return TagInjection.roundRef.value;
|
|
49
66
|
}
|
|
50
67
|
return false;
|
|
51
68
|
});
|
|
69
|
+
const mergedBorderedRef = computed(() => {
|
|
70
|
+
if (NAvatarGroup)
|
|
71
|
+
return true;
|
|
72
|
+
return props.bordered || false;
|
|
73
|
+
});
|
|
52
74
|
const handleError = (e) => {
|
|
53
75
|
hasLoadErrorRef.value = true;
|
|
54
76
|
const { onError } = props;
|
|
@@ -64,8 +86,11 @@ export default defineComponent({
|
|
|
64
86
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
65
87
|
fitTextTransform,
|
|
66
88
|
cssVars: computed(() => {
|
|
67
|
-
const
|
|
68
|
-
const
|
|
89
|
+
const size = mergedSizeRef.value;
|
|
90
|
+
const round = mergedRoundRef.value;
|
|
91
|
+
const bordered = mergedBorderedRef.value;
|
|
92
|
+
const { color: propColor } = props;
|
|
93
|
+
const { self: { borderRadius, fontSize, color, border, colorModal, colorPopover }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
69
94
|
let height;
|
|
70
95
|
if (typeof size === 'number') {
|
|
71
96
|
height = `${size}px`;
|
|
@@ -75,8 +100,11 @@ export default defineComponent({
|
|
|
75
100
|
}
|
|
76
101
|
return {
|
|
77
102
|
'--n-font-size': fontSize,
|
|
78
|
-
'--n-border
|
|
103
|
+
'--n-border': bordered ? border : 'none',
|
|
104
|
+
'--n-border-radius': round ? '50%' : borderRadius,
|
|
79
105
|
'--n-color': propColor || color,
|
|
106
|
+
'--n-color-modal': propColor || colorModal,
|
|
107
|
+
'--n-color-popover': propColor || colorPopover,
|
|
80
108
|
'--n-bezier': cubicBezierEaseInOut,
|
|
81
109
|
'--n-merged-size': `var(--n-avatar-size-override, ${height})`
|
|
82
110
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { PropType, CSSProperties, InjectionKey } from 'vue';
|
|
2
|
+
import type { Size } from './interface';
|
|
3
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
+
export interface AvatarGroupInjection {
|
|
5
|
+
size?: Size | undefined;
|
|
6
|
+
}
|
|
7
|
+
interface AvatarOption {
|
|
8
|
+
src: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const avatarGroupInjectionKey: InjectionKey<AvatarGroupInjection>;
|
|
11
|
+
declare const avatarGroupProps: {
|
|
12
|
+
readonly max: NumberConstructor;
|
|
13
|
+
readonly maxStyle: PropType<string | CSSProperties>;
|
|
14
|
+
readonly options: {
|
|
15
|
+
readonly type: PropType<AvatarOption[]>;
|
|
16
|
+
readonly default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
readonly vertical: BooleanConstructor;
|
|
19
|
+
readonly size: PropType<Size | undefined>;
|
|
20
|
+
};
|
|
21
|
+
export declare type AvatarGroupProps = ExtractPublicPropTypes<typeof avatarGroupProps>;
|
|
22
|
+
declare const _default: import("vue").DefineComponent<{
|
|
23
|
+
readonly max: NumberConstructor;
|
|
24
|
+
readonly maxStyle: PropType<string | CSSProperties>;
|
|
25
|
+
readonly options: {
|
|
26
|
+
readonly type: PropType<AvatarOption[]>;
|
|
27
|
+
readonly default: () => never[];
|
|
28
|
+
};
|
|
29
|
+
readonly vertical: BooleanConstructor;
|
|
30
|
+
readonly size: PropType<Size | undefined>;
|
|
31
|
+
}, {
|
|
32
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
33
|
+
restOptions: import("vue").ComputedRef<AvatarOption[] | undefined>;
|
|
34
|
+
displayedOptions: import("vue").ComputedRef<AvatarOption[]>;
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
36
|
+
readonly max?: unknown;
|
|
37
|
+
readonly maxStyle?: unknown;
|
|
38
|
+
readonly options?: unknown;
|
|
39
|
+
readonly vertical?: unknown;
|
|
40
|
+
readonly size?: unknown;
|
|
41
|
+
} & {
|
|
42
|
+
vertical: boolean;
|
|
43
|
+
options: AvatarOption[];
|
|
44
|
+
} & {
|
|
45
|
+
size?: Size | undefined;
|
|
46
|
+
max?: number | undefined;
|
|
47
|
+
maxStyle?: string | CSSProperties | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
vertical: boolean;
|
|
50
|
+
options: AvatarOption[];
|
|
51
|
+
}>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { h, defineComponent, provide, computed } from 'vue';
|
|
2
|
+
import NAvatar from './Avatar';
|
|
3
|
+
import { useConfig, useStyle } from '../../_mixins';
|
|
4
|
+
import style from './styles/avatar-group.cssr';
|
|
5
|
+
export const avatarGroupInjectionKey = Symbol('avatar-group');
|
|
6
|
+
const avatarGroupProps = {
|
|
7
|
+
max: Number,
|
|
8
|
+
maxStyle: [Object, String],
|
|
9
|
+
options: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
12
|
+
},
|
|
13
|
+
vertical: Boolean,
|
|
14
|
+
size: [String, Number]
|
|
15
|
+
};
|
|
16
|
+
export default defineComponent({
|
|
17
|
+
name: 'AvatarGroup',
|
|
18
|
+
props: avatarGroupProps,
|
|
19
|
+
setup(props) {
|
|
20
|
+
const { mergedClsPrefixRef } = useConfig(props);
|
|
21
|
+
useStyle('AvatarGroup', style, mergedClsPrefixRef);
|
|
22
|
+
provide(avatarGroupInjectionKey, props);
|
|
23
|
+
const restOptionsRef = computed(() => {
|
|
24
|
+
const { max } = props;
|
|
25
|
+
if (max === undefined)
|
|
26
|
+
return undefined;
|
|
27
|
+
const { options } = props;
|
|
28
|
+
return options.slice(max, options.length);
|
|
29
|
+
});
|
|
30
|
+
const displayedOptionsRef = computed(() => {
|
|
31
|
+
const { options, max } = props;
|
|
32
|
+
if (max === undefined)
|
|
33
|
+
return options;
|
|
34
|
+
if (options.length > max)
|
|
35
|
+
return options.slice(0, max - 1);
|
|
36
|
+
if (options.length === max)
|
|
37
|
+
return options.slice(0, max);
|
|
38
|
+
return options;
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
42
|
+
restOptions: restOptionsRef,
|
|
43
|
+
displayedOptions: displayedOptionsRef
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
render() {
|
|
47
|
+
const { mergedClsPrefix, displayedOptions, restOptions, $slots } = this;
|
|
48
|
+
return (h("div", { class: [
|
|
49
|
+
`${mergedClsPrefix}-avatar-group`,
|
|
50
|
+
this.vertical && `${mergedClsPrefix}-avatar-group--vertical`
|
|
51
|
+
], role: "group" },
|
|
52
|
+
displayedOptions.map((option) => {
|
|
53
|
+
return $slots.avatar ? ($slots.avatar({ option })) : (h(NAvatar, { src: option.src }));
|
|
54
|
+
}),
|
|
55
|
+
restOptions !== undefined &&
|
|
56
|
+
restOptions.length > 0 &&
|
|
57
|
+
($slots.rest ? ($slots.rest({ options: restOptions, rest: restOptions.length })) : (h(NAvatar, { style: this.maxStyle }, {
|
|
58
|
+
default: () => `+${restOptions.length}`
|
|
59
|
+
})))));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c, cB, cM, cNotM } from '../../../_utils/cssr/index';
|
|
2
|
+
export default cB('avatar-group', `
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
`, [cNotM('vertical', {
|
|
7
|
+
flexDirection: 'row'
|
|
8
|
+
}, [cB('avatar', [c('&:not(:first-child)', `
|
|
9
|
+
margin-left: -12px;
|
|
10
|
+
`)])]), cM('vertical', {
|
|
11
|
+
flexDirection: 'column'
|
|
12
|
+
}, [cB('avatar', [c('&:not(:first-child)', `
|
|
13
|
+
margin-top: -12px;
|
|
14
|
+
`)])])]);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { c, cE, cB } from '../../../_utils/cssr'; // vars:
|
|
1
|
+
import { c, cE, cB, insideModal, insidePopover } from '../../../_utils/cssr'; // vars:
|
|
2
2
|
// --n-font-size
|
|
3
3
|
// --n-border-radius
|
|
4
4
|
// --n-color
|
|
5
|
+
// --n-color-modal
|
|
6
|
+
// --n-color-popover
|
|
5
7
|
// --n-bezier
|
|
6
8
|
// --n-merged-size
|
|
7
9
|
|
|
@@ -14,12 +16,15 @@ export default cB('avatar', `
|
|
|
14
16
|
position: relative;
|
|
15
17
|
overflow: hidden;
|
|
16
18
|
text-align: center;
|
|
19
|
+
border: var(--n-border);
|
|
17
20
|
border-radius: var(--n-border-radius);
|
|
18
|
-
|
|
21
|
+
--n-merged-color: var(--n-color);
|
|
22
|
+
background-color: var(--n-merged-color);
|
|
19
23
|
transition:
|
|
24
|
+
border-color .3s var(--n-bezier),
|
|
20
25
|
background-color .3s var(--n-bezier),
|
|
21
26
|
color .3s var(--n-bezier);
|
|
22
|
-
`, [c('img', `
|
|
27
|
+
`, [insideModal(c('&', '--n-merged-color: var(--n-color-modal);')), insidePopover(c('&', '--n-merged-color: var(--n-color-popover);')), c('img', `
|
|
23
28
|
width: 100%;
|
|
24
29
|
height: 100%;
|
|
25
30
|
`), cE('text', `
|
|
@@ -3,12 +3,15 @@ import type { Theme } from '../../_mixins';
|
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
4
|
borderRadius: string;
|
|
5
5
|
fontSize: string;
|
|
6
|
+
border: string;
|
|
6
7
|
heightTiny: string;
|
|
7
8
|
heightSmall: string;
|
|
8
9
|
heightMedium: string;
|
|
9
10
|
heightLarge: string;
|
|
10
11
|
heightHuge: string;
|
|
11
12
|
color: string;
|
|
13
|
+
colorModal: string;
|
|
14
|
+
colorPopover: string;
|
|
12
15
|
};
|
|
13
16
|
export declare type AvatarThemeVars = ReturnType<typeof self>;
|
|
14
17
|
declare const avatarLight: Theme<'Avatar', AvatarThemeVars>;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
|
+
import { composite } from 'seemly';
|
|
2
3
|
export const self = (vars) => {
|
|
3
|
-
const { borderRadius, avatarColor, fontSize, heightTiny, heightSmall, heightMedium, heightLarge, heightHuge } = vars;
|
|
4
|
+
const { borderRadius, avatarColor, cardColor, fontSize, heightTiny, heightSmall, heightMedium, heightLarge, heightHuge, modalColor, popoverColor } = vars;
|
|
4
5
|
return {
|
|
5
6
|
borderRadius,
|
|
6
7
|
fontSize,
|
|
8
|
+
border: `2px solid ${cardColor}`,
|
|
7
9
|
heightTiny,
|
|
8
10
|
heightSmall,
|
|
9
11
|
heightMedium,
|
|
10
12
|
heightLarge,
|
|
11
13
|
heightHuge,
|
|
12
|
-
color: avatarColor
|
|
14
|
+
color: composite(cardColor, avatarColor),
|
|
15
|
+
colorModal: composite(modalColor, avatarColor),
|
|
16
|
+
colorPopover: composite(popoverColor, avatarColor)
|
|
13
17
|
};
|
|
14
18
|
};
|
|
15
19
|
const avatarLight = {
|
|
@@ -74,14 +74,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
}, {
|
|
75
75
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
76
76
|
cssVars: import("vue").ComputedRef<{
|
|
77
|
-
'--font-size': string;
|
|
78
|
-
'--bezier': string;
|
|
79
|
-
'--item-text-color': string;
|
|
80
|
-
'--item-text-color-hover': string;
|
|
81
|
-
'--item-text-color-pressed': string;
|
|
82
|
-
'--item-text-color-active': string;
|
|
83
|
-
'--separator-color': string;
|
|
84
|
-
'--font-weight-active': string;
|
|
77
|
+
'--n-font-size': string;
|
|
78
|
+
'--n-bezier': string;
|
|
79
|
+
'--n-item-text-color': string;
|
|
80
|
+
'--n-item-text-color-hover': string;
|
|
81
|
+
'--n-item-text-color-pressed': string;
|
|
82
|
+
'--n-item-text-color-active': string;
|
|
83
|
+
'--n-separator-color': string;
|
|
84
|
+
'--n-font-weight-active': string;
|
|
85
85
|
}>;
|
|
86
86
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
87
87
|
readonly separator?: unknown;
|
|
@@ -22,14 +22,14 @@ export default defineComponent({
|
|
|
22
22
|
cssVars: computed(() => {
|
|
23
23
|
const { common: { cubicBezierEaseInOut }, self: { separatorColor, itemTextColor, itemTextColorHover, itemTextColorPressed, itemTextColorActive, fontSize, fontWeightActive } } = themeRef.value;
|
|
24
24
|
return {
|
|
25
|
-
'--font-size': fontSize,
|
|
26
|
-
'--bezier': cubicBezierEaseInOut,
|
|
27
|
-
'--item-text-color': itemTextColor,
|
|
28
|
-
'--item-text-color-hover': itemTextColorHover,
|
|
29
|
-
'--item-text-color-pressed': itemTextColorPressed,
|
|
30
|
-
'--item-text-color-active': itemTextColorActive,
|
|
31
|
-
'--separator-color': separatorColor,
|
|
32
|
-
'--font-weight-active': fontWeightActive
|
|
25
|
+
'--n-font-size': fontSize,
|
|
26
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
27
|
+
'--n-item-text-color': itemTextColor,
|
|
28
|
+
'--n-item-text-color-hover': itemTextColorHover,
|
|
29
|
+
'--n-item-text-color-pressed': itemTextColorPressed,
|
|
30
|
+
'--n-item-text-color-active': itemTextColorActive,
|
|
31
|
+
'--n-separator-color': separatorColor,
|
|
32
|
+
'--n-font-weight-active': fontWeightActive
|
|
33
33
|
};
|
|
34
34
|
})
|
|
35
35
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c, cB, cE } from '../../../_utils/cssr'; // vars:
|
|
2
|
-
// --font-size
|
|
3
|
-
// --bezier
|
|
4
|
-
// --item-text-color
|
|
5
|
-
// --item-text-color-hover
|
|
6
|
-
// --item-text-color-pressed
|
|
7
|
-
// --item-text-color-active
|
|
8
|
-
// --separator-color
|
|
9
|
-
// --font-weight-active
|
|
2
|
+
// --n-font-size
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-item-text-color
|
|
5
|
+
// --n-item-text-color-hover
|
|
6
|
+
// --n-item-text-color-pressed
|
|
7
|
+
// --n-item-text-color-active
|
|
8
|
+
// --n-separator-color
|
|
9
|
+
// --n-font-weight-active
|
|
10
10
|
|
|
11
11
|
export default cB('breadcrumb', `
|
|
12
12
|
white-space: nowrap;
|
|
@@ -18,36 +18,36 @@ export default cB('breadcrumb', `
|
|
|
18
18
|
color: inherit;
|
|
19
19
|
text-decoration: inherit;
|
|
20
20
|
`), cB('breadcrumb-item', {
|
|
21
|
-
fontSize: 'var(--font-size)',
|
|
22
|
-
transition: 'color .3s var(--bezier)',
|
|
21
|
+
fontSize: 'var(--n-font-size)',
|
|
22
|
+
transition: 'color .3s var(--n-bezier)',
|
|
23
23
|
display: 'inline-block'
|
|
24
24
|
}, [cB('icon', `
|
|
25
25
|
font-size: 18px;
|
|
26
26
|
vertical-align: -.2em;
|
|
27
|
-
transition: color .3s var(--bezier);
|
|
28
|
-
color: var(--item-text-color);
|
|
27
|
+
transition: color .3s var(--n-bezier);
|
|
28
|
+
color: var(--n-item-text-color);
|
|
29
29
|
`), cE('link', {
|
|
30
30
|
cursor: 'pointer',
|
|
31
|
-
transition: 'color .3s var(--bezier)',
|
|
32
|
-
color: 'var(--item-text-color)'
|
|
31
|
+
transition: 'color .3s var(--n-bezier)',
|
|
32
|
+
color: 'var(--n-item-text-color)'
|
|
33
33
|
}), cE('separator', {
|
|
34
34
|
margin: '0 8px',
|
|
35
|
-
color: 'var(--separator-color)',
|
|
36
|
-
transition: 'color .3s var(--bezier)'
|
|
35
|
+
color: 'var(--n-separator-color)',
|
|
36
|
+
transition: 'color .3s var(--n-bezier)'
|
|
37
37
|
}), c('&:hover', [cB('icon', {
|
|
38
|
-
color: 'var(--item-text-color-hover)'
|
|
38
|
+
color: 'var(--n-item-text-color-hover)'
|
|
39
39
|
}), cE('link', {
|
|
40
|
-
color: 'var(--item-text-color-hover)'
|
|
40
|
+
color: 'var(--n-item-text-color-hover)'
|
|
41
41
|
})]), c('&:active', [cB('icon', {
|
|
42
|
-
color: 'var(--item-text-color-pressed)'
|
|
42
|
+
color: 'var(--n-item-text-color-pressed)'
|
|
43
43
|
}), cE('link', {
|
|
44
|
-
color: 'var(--item-text-color-pressed)'
|
|
44
|
+
color: 'var(--n-item-text-color-pressed)'
|
|
45
45
|
})]), c('&:last-child', [cE('link', `
|
|
46
|
-
font-weight: var(--font-weight-active);
|
|
46
|
+
font-weight: var(--n-font-weight-active);
|
|
47
47
|
cursor: unset;
|
|
48
|
-
color: var(--item-text-color-active);
|
|
48
|
+
color: var(--n-item-text-color-active);
|
|
49
49
|
`), cB('icon', {
|
|
50
|
-
color: 'var(--item-text-color-active)'
|
|
50
|
+
color: 'var(--n-item-text-color-active)'
|
|
51
51
|
}), cE('separator', {
|
|
52
52
|
display: 'none'
|
|
53
53
|
})])])]);
|
|
@@ -1762,27 +1762,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1762
1762
|
};
|
|
1763
1763
|
}>;
|
|
1764
1764
|
cssVars: import("vue").ComputedRef<{
|
|
1765
|
-
'--bezier': string;
|
|
1766
|
-
'--border-color': string;
|
|
1767
|
-
'--border-color-modal': string;
|
|
1768
|
-
'--border-color-popover': string;
|
|
1769
|
-
'--border-radius': string;
|
|
1770
|
-
'--text-color': string;
|
|
1771
|
-
'--title-font-weight': string;
|
|
1772
|
-
'--title-font-size': string;
|
|
1773
|
-
'--title-text-color': string;
|
|
1774
|
-
'--day-text-color': string;
|
|
1775
|
-
'--font-size': string;
|
|
1776
|
-
'--line-height': string;
|
|
1777
|
-
'--date-color-current': string;
|
|
1778
|
-
'--date-text-color-current': string;
|
|
1779
|
-
'--cell-color': string;
|
|
1780
|
-
'--cell-color-modal': string;
|
|
1781
|
-
'--cell-color-popover': string;
|
|
1782
|
-
'--cell-color-hover': string;
|
|
1783
|
-
'--cell-color-hover-modal': string;
|
|
1784
|
-
'--cell-color-hover-popover': string;
|
|
1785
|
-
'--bar-color': string;
|
|
1765
|
+
'--n-bezier': string;
|
|
1766
|
+
'--n-border-color': string;
|
|
1767
|
+
'--n-border-color-modal': string;
|
|
1768
|
+
'--n-border-color-popover': string;
|
|
1769
|
+
'--n-border-radius': string;
|
|
1770
|
+
'--n-text-color': string;
|
|
1771
|
+
'--n-title-font-weight': string;
|
|
1772
|
+
'--n-title-font-size': string;
|
|
1773
|
+
'--n-title-text-color': string;
|
|
1774
|
+
'--n-day-text-color': string;
|
|
1775
|
+
'--n-font-size': string;
|
|
1776
|
+
'--n-line-height': string;
|
|
1777
|
+
'--n-date-color-current': string;
|
|
1778
|
+
'--n-date-text-color-current': string;
|
|
1779
|
+
'--n-cell-color': string;
|
|
1780
|
+
'--n-cell-color-modal': string;
|
|
1781
|
+
'--n-cell-color-popover': string;
|
|
1782
|
+
'--n-cell-color-hover': string;
|
|
1783
|
+
'--n-cell-color-hover-modal': string;
|
|
1784
|
+
'--n-cell-color-hover-popover': string;
|
|
1785
|
+
'--n-bar-color': string;
|
|
1786
1786
|
}>;
|
|
1787
1787
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
1788
1788
|
readonly isDateDisabled?: unknown;
|
|
@@ -62,27 +62,27 @@ export default defineComponent({
|
|
|
62
62
|
cssVars: computed(() => {
|
|
63
63
|
const { common: { cubicBezierEaseInOut }, self: { borderColor, borderColorModal, borderColorPopover, borderRadius, titleFontSize, textColor, titleFontWeight, titleTextColor, dayTextColor, fontSize, lineHeight, dateColorCurrent, dateTextColorCurrent, cellColorHover, cellColor, cellColorModal, barColor, cellColorPopover, cellColorHoverModal, cellColorHoverPopover } } = themeRef.value;
|
|
64
64
|
return {
|
|
65
|
-
'--bezier': cubicBezierEaseInOut,
|
|
66
|
-
'--border-color': borderColor,
|
|
67
|
-
'--border-color-modal': borderColorModal,
|
|
68
|
-
'--border-color-popover': borderColorPopover,
|
|
69
|
-
'--border-radius': borderRadius,
|
|
70
|
-
'--text-color': textColor,
|
|
71
|
-
'--title-font-weight': titleFontWeight,
|
|
72
|
-
'--title-font-size': titleFontSize,
|
|
73
|
-
'--title-text-color': titleTextColor,
|
|
74
|
-
'--day-text-color': dayTextColor,
|
|
75
|
-
'--font-size': fontSize,
|
|
76
|
-
'--line-height': lineHeight,
|
|
77
|
-
'--date-color-current': dateColorCurrent,
|
|
78
|
-
'--date-text-color-current': dateTextColorCurrent,
|
|
79
|
-
'--cell-color': cellColor,
|
|
80
|
-
'--cell-color-modal': cellColorModal,
|
|
81
|
-
'--cell-color-popover': cellColorPopover,
|
|
82
|
-
'--cell-color-hover': cellColorHover,
|
|
83
|
-
'--cell-color-hover-modal': cellColorHoverModal,
|
|
84
|
-
'--cell-color-hover-popover': cellColorHoverPopover,
|
|
85
|
-
'--bar-color': barColor
|
|
65
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
66
|
+
'--n-border-color': borderColor,
|
|
67
|
+
'--n-border-color-modal': borderColorModal,
|
|
68
|
+
'--n-border-color-popover': borderColorPopover,
|
|
69
|
+
'--n-border-radius': borderRadius,
|
|
70
|
+
'--n-text-color': textColor,
|
|
71
|
+
'--n-title-font-weight': titleFontWeight,
|
|
72
|
+
'--n-title-font-size': titleFontSize,
|
|
73
|
+
'--n-title-text-color': titleTextColor,
|
|
74
|
+
'--n-day-text-color': dayTextColor,
|
|
75
|
+
'--n-font-size': fontSize,
|
|
76
|
+
'--n-line-height': lineHeight,
|
|
77
|
+
'--n-date-color-current': dateColorCurrent,
|
|
78
|
+
'--n-date-text-color-current': dateTextColorCurrent,
|
|
79
|
+
'--n-cell-color': cellColor,
|
|
80
|
+
'--n-cell-color-modal': cellColorModal,
|
|
81
|
+
'--n-cell-color-popover': cellColorPopover,
|
|
82
|
+
'--n-cell-color-hover': cellColorHover,
|
|
83
|
+
'--n-cell-color-hover-modal': cellColorHoverModal,
|
|
84
|
+
'--n-cell-color-hover-popover': cellColorHoverPopover,
|
|
85
|
+
'--n-bar-color': barColor
|
|
86
86
|
};
|
|
87
87
|
})
|
|
88
88
|
};
|