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/empty/src/Empty.js
CHANGED
|
@@ -6,10 +6,10 @@ import { NBaseIcon } from '../../_internal';
|
|
|
6
6
|
import { emptyLight } from '../styles';
|
|
7
7
|
import style from './styles/index.cssr';
|
|
8
8
|
import { configProviderInjectionKey } from '../../config-provider/src/ConfigProvider';
|
|
9
|
-
const emptyProps = Object.assign(Object.assign({}, useTheme.props), { description: {
|
|
10
|
-
type:
|
|
11
|
-
default:
|
|
12
|
-
},
|
|
9
|
+
const emptyProps = Object.assign(Object.assign({}, useTheme.props), { description: String, showDescription: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true
|
|
12
|
+
}, showIcon: {
|
|
13
13
|
type: Boolean,
|
|
14
14
|
default: true
|
|
15
15
|
}, size: {
|
|
@@ -43,12 +43,12 @@ export default defineComponent({
|
|
|
43
43
|
const { size } = props;
|
|
44
44
|
const { common: { cubicBezierEaseInOut }, self: { [createKey('iconSize', size)]: iconSize, [createKey('fontSize', size)]: fontSize, textColor, iconColor, extraTextColor } } = themeRef.value;
|
|
45
45
|
return {
|
|
46
|
-
'--icon-size': iconSize,
|
|
47
|
-
'--font-size': fontSize,
|
|
48
|
-
'--bezier': cubicBezierEaseInOut,
|
|
49
|
-
'--text-color': textColor,
|
|
50
|
-
'--icon-color': iconColor,
|
|
51
|
-
'--extra-text-color': extraTextColor
|
|
46
|
+
'--n-icon-size': iconSize,
|
|
47
|
+
'--n-font-size': fontSize,
|
|
48
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
49
|
+
'--n-text-color': textColor,
|
|
50
|
+
'--n-icon-color': iconColor,
|
|
51
|
+
'--n-extra-text-color': extraTextColor
|
|
52
52
|
};
|
|
53
53
|
})
|
|
54
54
|
};
|
|
@@ -56,9 +56,9 @@ export default defineComponent({
|
|
|
56
56
|
render() {
|
|
57
57
|
const { $slots, mergedClsPrefix } = this;
|
|
58
58
|
return (h("div", { class: `${mergedClsPrefix}-empty`, style: this.cssVars },
|
|
59
|
-
h("div", { class: `${mergedClsPrefix}-empty__icon` }, renderSlot($slots, 'icon', undefined, () => [
|
|
59
|
+
this.showIcon ? (h("div", { class: `${mergedClsPrefix}-empty__icon` }, renderSlot($slots, 'icon', undefined, () => [
|
|
60
60
|
h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: this.mergedRenderIcon })
|
|
61
|
-
])),
|
|
61
|
+
]))) : null,
|
|
62
62
|
this.showDescription ? (h("div", { class: `${mergedClsPrefix}-empty__description` }, renderSlot($slots, 'default', undefined, () => [
|
|
63
63
|
this.localizedDescription
|
|
64
64
|
]))) : null,
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { cB, cE } from '../../../_utils/cssr'; // vars:
|
|
2
|
-
// --font-size
|
|
3
|
-
// --icon-size
|
|
4
|
-
// --icon-color
|
|
5
|
-
// --bezier
|
|
6
|
-
// --text-color
|
|
7
|
-
// --extra-text-color
|
|
1
|
+
import { c, cB, cE } from '../../../_utils/cssr'; // vars:
|
|
2
|
+
// --n-font-size
|
|
3
|
+
// --n-icon-size
|
|
4
|
+
// --n-icon-color
|
|
5
|
+
// --n-bezier
|
|
6
|
+
// --n-text-color
|
|
7
|
+
// --n-extra-text-color
|
|
8
8
|
|
|
9
9
|
export default cB('empty', `
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
align-items: center;
|
|
13
|
-
font-size: var(--font-size);
|
|
13
|
+
font-size: var(--n-font-size);
|
|
14
14
|
`, [cE('icon', `
|
|
15
|
-
width: var(--icon-size);
|
|
16
|
-
height: var(--icon-size);
|
|
17
|
-
font-size: var(--icon-size);
|
|
18
|
-
line-height: var(--icon-size);
|
|
19
|
-
color: var(--icon-color);
|
|
15
|
+
width: var(--n-icon-size);
|
|
16
|
+
height: var(--n-icon-size);
|
|
17
|
+
font-size: var(--n-icon-size);
|
|
18
|
+
line-height: var(--n-icon-size);
|
|
19
|
+
color: var(--n-icon-color);
|
|
20
20
|
transition:
|
|
21
|
-
color .3s var(--bezier);
|
|
22
|
-
|
|
21
|
+
color .3s var(--n-bezier);
|
|
22
|
+
`, [c('+', [cE('description', `
|
|
23
23
|
margin-top: 8px;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
`)])]), cE('description', `
|
|
25
|
+
transition: color .3s var(--n-bezier);
|
|
26
|
+
color: var(--n-text-color);
|
|
26
27
|
`), cE('extra', `
|
|
27
28
|
text-align: center;
|
|
28
|
-
transition: color .3s var(--bezier);
|
|
29
|
+
transition: color .3s var(--n-bezier);
|
|
29
30
|
margin-top: 12px;
|
|
30
|
-
color: var(--extra-text-color);
|
|
31
|
+
color: var(--n-extra-text-color);
|
|
31
32
|
`)]);
|
|
@@ -249,21 +249,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
249
249
|
}, any>>>;
|
|
250
250
|
}, {
|
|
251
251
|
cssVars: import("vue").ComputedRef<{
|
|
252
|
-
'--bezier': string;
|
|
253
|
-
'--line-height': string;
|
|
254
|
-
'--blank-height': string;
|
|
255
|
-
'--label-font-size': string;
|
|
256
|
-
'--label-text-align': string;
|
|
257
|
-
'--label-height': string;
|
|
258
|
-
'--label-padding': string;
|
|
259
|
-
'--asterisk-color': string;
|
|
260
|
-
'--label-text-color': string;
|
|
261
|
-
'--feedback-padding': string;
|
|
262
|
-
'--feedback-font-size': string;
|
|
263
|
-
'--feedback-height': string;
|
|
264
|
-
'--feedback-text-color': string;
|
|
265
|
-
'--feedback-text-color-warning': string;
|
|
266
|
-
'--feedback-text-color-error': string;
|
|
252
|
+
'--n-bezier': string;
|
|
253
|
+
'--n-line-height': string;
|
|
254
|
+
'--n-blank-height': string;
|
|
255
|
+
'--n-label-font-size': string;
|
|
256
|
+
'--n-label-text-align': string;
|
|
257
|
+
'--n-label-height': string;
|
|
258
|
+
'--n-label-padding': string;
|
|
259
|
+
'--n-asterisk-color': string;
|
|
260
|
+
'--n-label-text-color': string;
|
|
261
|
+
'--n-feedback-padding': string;
|
|
262
|
+
'--n-feedback-font-size': string;
|
|
263
|
+
'--n-feedback-height': string;
|
|
264
|
+
'--n-feedback-text-color': string;
|
|
265
|
+
'--n-feedback-text-color-warning': string;
|
|
266
|
+
'--n-feedback-text-color-error': string;
|
|
267
267
|
}>;
|
|
268
268
|
validate: import("./interface").FormItemValidate;
|
|
269
269
|
restoreValidation: () => void;
|
package/es/form/src/FormItem.js
CHANGED
|
@@ -237,21 +237,21 @@ export default defineComponent({
|
|
|
237
237
|
mergedLabelTextAlign === 'right' ? 'flex-end' : 'flex-start';
|
|
238
238
|
}
|
|
239
239
|
const cssVars = {
|
|
240
|
-
'--bezier': cubicBezierEaseInOut,
|
|
241
|
-
'--line-height': lineHeight,
|
|
242
|
-
'--blank-height': blankHeight,
|
|
243
|
-
'--label-font-size': labelFontSize,
|
|
244
|
-
'--label-text-align': mergedLabelTextAlign,
|
|
245
|
-
'--label-height': labelHeight,
|
|
246
|
-
'--label-padding': labelPadding,
|
|
247
|
-
'--asterisk-color': asteriskColor,
|
|
248
|
-
'--label-text-color': labelTextColor,
|
|
249
|
-
'--feedback-padding': feedbackPadding,
|
|
250
|
-
'--feedback-font-size': feedbackFontSize,
|
|
251
|
-
'--feedback-height': feedbackHeight,
|
|
252
|
-
'--feedback-text-color': feedbackTextColor,
|
|
253
|
-
'--feedback-text-color-warning': feedbackTextColorWarning,
|
|
254
|
-
'--feedback-text-color-error': feedbackTextColorError
|
|
240
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
241
|
+
'--n-line-height': lineHeight,
|
|
242
|
+
'--n-blank-height': blankHeight,
|
|
243
|
+
'--n-label-font-size': labelFontSize,
|
|
244
|
+
'--n-label-text-align': mergedLabelTextAlign,
|
|
245
|
+
'--n-label-height': labelHeight,
|
|
246
|
+
'--n-label-padding': labelPadding,
|
|
247
|
+
'--n-asterisk-color': asteriskColor,
|
|
248
|
+
'--n-label-text-color': labelTextColor,
|
|
249
|
+
'--n-feedback-padding': feedbackPadding,
|
|
250
|
+
'--n-feedback-font-size': feedbackFontSize,
|
|
251
|
+
'--n-feedback-height': feedbackHeight,
|
|
252
|
+
'--n-feedback-text-color': feedbackTextColor,
|
|
253
|
+
'--n-feedback-text-color-warning': feedbackTextColorWarning,
|
|
254
|
+
'--n-feedback-text-color-error': feedbackTextColorError
|
|
255
255
|
};
|
|
256
256
|
return cssVars;
|
|
257
257
|
}) });
|
|
@@ -277,6 +277,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
277
277
|
readonly default: 0;
|
|
278
278
|
};
|
|
279
279
|
}, {
|
|
280
|
+
formItemInstRef: import("vue").Ref<{
|
|
281
|
+
validate: import("./interface").FormItemValidate;
|
|
282
|
+
restoreValidation: () => void;
|
|
283
|
+
path?: string | undefined;
|
|
284
|
+
internalValidate: import("./interface").FormItemInternalValidate;
|
|
285
|
+
} | null>;
|
|
280
286
|
validate: import("./interface").FormItemValidate;
|
|
281
287
|
restoreValidation: () => void;
|
|
282
288
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
@@ -277,6 +277,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
277
277
|
readonly default: true;
|
|
278
278
|
};
|
|
279
279
|
}, {
|
|
280
|
+
formItemInstRef: import("vue").Ref<{
|
|
281
|
+
validate: import("./interface").FormItemValidate;
|
|
282
|
+
restoreValidation: () => void;
|
|
283
|
+
path?: string | undefined;
|
|
284
|
+
internalValidate: import("./interface").FormItemInternalValidate;
|
|
285
|
+
} | null>;
|
|
280
286
|
validate: import("./interface").FormItemValidate;
|
|
281
287
|
restoreValidation: () => void;
|
|
282
288
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
@@ -288,6 +288,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
288
288
|
alignItems: StringConstructor;
|
|
289
289
|
justifyContent: StringConstructor;
|
|
290
290
|
}, {
|
|
291
|
+
formItemColInstRef: import("vue").Ref<{
|
|
292
|
+
validate: import("./interface").FormItemValidate;
|
|
293
|
+
restoreValidation: () => void;
|
|
294
|
+
path?: string | undefined;
|
|
295
|
+
internalValidate: import("./interface").FormItemInternalValidate;
|
|
296
|
+
} | null>;
|
|
291
297
|
validate: import("./interface").FormItemValidate;
|
|
292
298
|
restoreValidation: () => void;
|
|
293
299
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { cB, cE, cM } from '../../../_utils/cssr';
|
|
2
2
|
import fadeDownTranstion from '../../../_styles/transitions/fade-down.cssr'; // vars:
|
|
3
|
-
// --line-height
|
|
4
|
-
// --blank-height
|
|
5
|
-
// --feedback-padding
|
|
6
|
-
// --feedback-font-size
|
|
7
|
-
// --label-font-size-left
|
|
8
|
-
// --label-font-size-top
|
|
9
|
-
// --label-height
|
|
10
|
-
// --label-padding
|
|
11
|
-
// --asterisk-color
|
|
12
|
-
// --label-text-color
|
|
13
|
-
// --bezier
|
|
14
|
-
// --feedback-text-color
|
|
15
|
-
// --feedback-text-color-warning
|
|
16
|
-
// --feedback-text-color-error
|
|
17
|
-
// --label-text-align
|
|
18
|
-
// --label-padding
|
|
3
|
+
// --n-line-height
|
|
4
|
+
// --n-blank-height
|
|
5
|
+
// --n-feedback-padding
|
|
6
|
+
// --n-feedback-font-size
|
|
7
|
+
// --n-label-font-size-left
|
|
8
|
+
// --n-label-font-size-top
|
|
9
|
+
// --n-label-height
|
|
10
|
+
// --n-label-padding
|
|
11
|
+
// --n-asterisk-color
|
|
12
|
+
// --n-label-text-color
|
|
13
|
+
// --n-bezier
|
|
14
|
+
// --n-feedback-text-color
|
|
15
|
+
// --n-feedback-text-color-warning
|
|
16
|
+
// --n-feedback-text-color-error
|
|
17
|
+
// --n-label-text-align
|
|
18
|
+
// --n-label-padding
|
|
19
19
|
|
|
20
20
|
export default cB('form-item', {
|
|
21
21
|
display: 'grid',
|
|
22
|
-
lineHeight: 'var(--line-height)'
|
|
22
|
+
lineHeight: 'var(--n-line-height)'
|
|
23
23
|
}, [cB('form-item-label', `
|
|
24
24
|
grid-area: label;
|
|
25
25
|
align-items: center;
|
|
26
26
|
line-height: 1.25;
|
|
27
|
-
text-align: var(--label-text-align);
|
|
28
|
-
font-size: var(--label-font-size);
|
|
29
|
-
height: var(--label-height);
|
|
30
|
-
padding: var(--label-padding);
|
|
31
|
-
color: var(--label-text-color);
|
|
32
|
-
transition: color .3s var(--bezier);
|
|
27
|
+
text-align: var(--n-label-text-align);
|
|
28
|
+
font-size: var(--n-label-font-size);
|
|
29
|
+
height: var(--n-label-height);
|
|
30
|
+
padding: var(--n-label-padding);
|
|
31
|
+
color: var(--n-label-text-color);
|
|
32
|
+
transition: color .3s var(--n-bezier);
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
`, [cE('asterisk', `
|
|
35
|
-
color: var(--asterisk-color);
|
|
36
|
-
transition: color .3s var(--bezier);
|
|
35
|
+
color: var(--n-asterisk-color);
|
|
36
|
+
transition: color .3s var(--n-bezier);
|
|
37
37
|
`)]), cB('form-item-blank', {
|
|
38
38
|
gridArea: 'blank',
|
|
39
|
-
minHeight: 'var(--blank-height)'
|
|
39
|
+
minHeight: 'var(--n-blank-height)'
|
|
40
40
|
}), cM('left-labelled', `
|
|
41
41
|
grid-template-areas:
|
|
42
42
|
"label blank"
|
|
43
43
|
"label feedback";
|
|
44
44
|
grid-template-columns: auto minmax(0, 1fr);
|
|
45
45
|
`, [cB('form-item-label', `
|
|
46
|
-
height: var(--blank-height);
|
|
47
|
-
line-height: var(--blank-height);
|
|
46
|
+
height: var(--n-blank-height);
|
|
47
|
+
line-height: var(--n-blank-height);
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
white-space: nowrap;
|
|
50
50
|
flex-shrink: 0;
|
|
@@ -54,7 +54,7 @@ export default cB('form-item', {
|
|
|
54
54
|
"label"
|
|
55
55
|
"blank"
|
|
56
56
|
"feedback";
|
|
57
|
-
grid-template-rows: var(--label-height) 1fr;
|
|
57
|
+
grid-template-rows: var(--n-label-height) 1fr;
|
|
58
58
|
grid-template-columns: minmax(0, 100%);
|
|
59
59
|
`, [cM('no-label', `
|
|
60
60
|
grid-template-areas:
|
|
@@ -64,7 +64,7 @@ export default cB('form-item', {
|
|
|
64
64
|
`), cB('form-item-label', {
|
|
65
65
|
display: 'flex',
|
|
66
66
|
alignItems: 'flex-end',
|
|
67
|
-
justifyContent: 'var(--label-text-align)'
|
|
67
|
+
justifyContent: 'var(--n-label-text-align)'
|
|
68
68
|
})]), cB('form-item-blank', `
|
|
69
69
|
box-sizing: border-box;
|
|
70
70
|
display: flex;
|
|
@@ -73,18 +73,18 @@ export default cB('form-item', {
|
|
|
73
73
|
`), cB('form-item-feedback-wrapper', `
|
|
74
74
|
grid-area: feedback;
|
|
75
75
|
box-sizing: border-box;
|
|
76
|
-
min-height: var(--feedback-height);
|
|
77
|
-
font-size: var(--feedback-font-size);
|
|
78
|
-
padding: var(--feedback-padding);
|
|
76
|
+
min-height: var(--n-feedback-height);
|
|
77
|
+
font-size: var(--n-feedback-font-size);
|
|
78
|
+
padding: var(--n-feedback-padding);
|
|
79
79
|
line-height: 1.25;
|
|
80
80
|
transform-origin: top left;
|
|
81
81
|
`, [cB('form-item-feedback', {
|
|
82
|
-
transition: 'color .3s var(--bezier)',
|
|
83
|
-
color: 'var(--feedback-text-color)'
|
|
82
|
+
transition: 'color .3s var(--n-bezier)',
|
|
83
|
+
color: 'var(--n-feedback-text-color)'
|
|
84
84
|
}, [cM('warning', {
|
|
85
|
-
color: 'var(--feedback-text-color-warning)'
|
|
85
|
+
color: 'var(--n-feedback-text-color-warning)'
|
|
86
86
|
}), cM('error', {
|
|
87
|
-
color: 'var(--feedback-text-color-error)'
|
|
87
|
+
color: 'var(--n-feedback-text-color-error)'
|
|
88
88
|
}), fadeDownTranstion({
|
|
89
89
|
fromOffset: '-3px',
|
|
90
90
|
enterDuration: '.3s',
|
|
@@ -115,11 +115,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
115
|
styleFontSize: import("vue").ComputedRef<string | number | undefined>;
|
|
116
116
|
styleBgImage: import("vue").ComputedRef<string | undefined>;
|
|
117
117
|
cssVars: import("vue").ComputedRef<{
|
|
118
|
-
'--bezier': string;
|
|
119
|
-
'--rotate': string;
|
|
120
|
-
'--color-start': string;
|
|
121
|
-
'--color-end': string;
|
|
122
|
-
'--font-weight': string;
|
|
118
|
+
'--n-bezier': string;
|
|
119
|
+
'--n-rotate': string;
|
|
120
|
+
'--n-color-start': string;
|
|
121
|
+
'--n-color-end': string;
|
|
122
|
+
'--n-font-weight': string;
|
|
123
123
|
}>;
|
|
124
124
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
125
125
|
readonly size?: unknown;
|
|
@@ -48,11 +48,11 @@ export default defineComponent({
|
|
|
48
48
|
const { value: type } = compatibleTypeRef;
|
|
49
49
|
const { common: { cubicBezierEaseInOut }, self: { rotate, [createKey('colorStart', type)]: colorStart, [createKey('colorEnd', type)]: colorEnd, fontWeight } } = themeRef.value;
|
|
50
50
|
return {
|
|
51
|
-
'--bezier': cubicBezierEaseInOut,
|
|
52
|
-
'--rotate': rotate,
|
|
53
|
-
'--color-start': colorStart,
|
|
54
|
-
'--color-end': colorEnd,
|
|
55
|
-
'--font-weight': fontWeight
|
|
51
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
52
|
+
'--n-rotate': rotate,
|
|
53
|
+
'--n-color-start': colorStart,
|
|
54
|
+
'--n-color-end': colorEnd,
|
|
55
|
+
'--n-font-weight': fontWeight
|
|
56
56
|
};
|
|
57
57
|
})
|
|
58
58
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { cB } from '../../../_utils/cssr'; // vars:
|
|
2
|
-
// --font-weight
|
|
3
|
-
// --rotate
|
|
4
|
-
// --bezier
|
|
5
|
-
// --color-start
|
|
6
|
-
// --color-end
|
|
2
|
+
// --n-font-weight
|
|
3
|
+
// --n-rotate
|
|
4
|
+
// --n-bezier
|
|
5
|
+
// --n-color-start
|
|
6
|
+
// --n-color-end
|
|
7
7
|
|
|
8
8
|
export default cB('gradient-text', `
|
|
9
9
|
display: inline-block;
|
|
10
|
-
font-weight: var(--font-weight);
|
|
10
|
+
font-weight: var(--n-font-weight);
|
|
11
11
|
-webkit-background-clip: text;
|
|
12
12
|
background-clip: text;
|
|
13
13
|
color: #0000;
|
|
14
14
|
white-space: nowrap;
|
|
15
|
-
background-image: linear-gradient(var(--rotate), var(--color-start) 0%, var(--color-end) 100%);
|
|
15
|
+
background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
|
|
16
16
|
transition:
|
|
17
|
-
--color-start .3s var(--bezier),
|
|
18
|
-
--color-end .3s var(--bezier);
|
|
17
|
+
--n-color-start .3s var(--n-bezier),
|
|
18
|
+
--n-color-end .3s var(--n-bezier);
|
|
19
19
|
`);
|
package/es/icon/src/Icon.d.ts
CHANGED
|
@@ -35,13 +35,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
color: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
cssVars: import("vue").ComputedRef<{
|
|
38
|
-
'--bezier': string;
|
|
39
|
-
'--color': string;
|
|
40
|
-
'--opacity': string;
|
|
38
|
+
'--n-bezier': string;
|
|
39
|
+
'--n-color': string;
|
|
40
|
+
'--n-opacity': string;
|
|
41
41
|
} | {
|
|
42
|
-
'--bezier': string;
|
|
43
|
-
'--color'?: undefined;
|
|
44
|
-
'--opacity'?: undefined;
|
|
42
|
+
'--n-bezier': string;
|
|
43
|
+
'--n-color'?: undefined;
|
|
44
|
+
'--n-opacity'?: undefined;
|
|
45
45
|
}>;
|
|
46
46
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
47
47
|
depth?: unknown;
|
package/es/icon/src/Icon.js
CHANGED
|
@@ -26,13 +26,13 @@ export default defineComponent({
|
|
|
26
26
|
if (depth !== undefined) {
|
|
27
27
|
const { color, [`opacity${depth}Depth`]: opacity } = self;
|
|
28
28
|
return {
|
|
29
|
-
'--bezier': cubicBezierEaseInOut,
|
|
30
|
-
'--color': color,
|
|
31
|
-
'--opacity': opacity
|
|
29
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
30
|
+
'--n-color': color,
|
|
31
|
+
'--n-opacity': opacity
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'--bezier': cubicBezierEaseInOut
|
|
35
|
+
'--n-bezier': cubicBezierEaseInOut
|
|
36
36
|
};
|
|
37
37
|
})
|
|
38
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c, cB, cM } from '../../../_utils/cssr'; // vars:
|
|
2
|
-
// --bezier
|
|
3
|
-
// --color
|
|
4
|
-
// --opacity
|
|
2
|
+
// --n-bezier
|
|
3
|
+
// --n-color
|
|
4
|
+
// --n-opacity
|
|
5
5
|
|
|
6
6
|
export default cB('icon', `
|
|
7
7
|
height: 1em;
|
|
@@ -13,12 +13,12 @@ export default cB('icon', `
|
|
|
13
13
|
fill: currentColor;
|
|
14
14
|
transform: translateZ(0);
|
|
15
15
|
`, [cM('color-transition', {
|
|
16
|
-
transition: 'color .3s var(--bezier)'
|
|
16
|
+
transition: 'color .3s var(--n-bezier)'
|
|
17
17
|
}), cM('depth', {
|
|
18
|
-
color: 'var(--color)'
|
|
18
|
+
color: 'var(--n-color)'
|
|
19
19
|
}, [c('svg', {
|
|
20
|
-
opacity: 'var(--opacity)',
|
|
21
|
-
transition: 'opacity .3s var(--bezier)'
|
|
20
|
+
opacity: 'var(--n-opacity)',
|
|
21
|
+
transition: 'opacity .3s var(--n-bezier)'
|
|
22
22
|
})]), c('svg', {
|
|
23
23
|
height: '1em',
|
|
24
24
|
width: '1em'
|
|
@@ -14,8 +14,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
16
16
|
cssVars: import("vue").ComputedRef<{
|
|
17
|
-
'--bezier': string;
|
|
18
|
-
'--icon-color': string;
|
|
17
|
+
'--n-bezier': string;
|
|
18
|
+
'--n-icon-color': string;
|
|
19
19
|
}>;
|
|
20
20
|
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
21
21
|
setPreviewSrc: (src?: string | undefined) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, defineComponent, Fragment, ref, withDirectives, Transition, vShow, renderSlot, watch, computed, toRef } from 'vue';
|
|
1
|
+
import { h, defineComponent, Fragment, ref, withDirectives, Transition, vShow, renderSlot, watch, computed, toRef, onBeforeUnmount } from 'vue';
|
|
2
2
|
import { zindexable } from 'vdirs';
|
|
3
3
|
import { useIsMounted } from 'vooks';
|
|
4
4
|
import { LazyTeleport } from 'vueuc';
|
|
@@ -39,7 +39,7 @@ export default defineComponent({
|
|
|
39
39
|
const ty = tbox.top + tbox.height / 2;
|
|
40
40
|
style.transformOrigin = `${tx}px ${ty}px`;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function handleKeydown(e) {
|
|
43
43
|
var _a, _b;
|
|
44
44
|
switch (e.code) {
|
|
45
45
|
case 'ArrowLeft':
|
|
@@ -53,14 +53,15 @@ export default defineComponent({
|
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
watch(showRef, (value) => {
|
|
57
|
+
if (value)
|
|
58
|
+
on('keydown', document, handleKeydown);
|
|
59
|
+
else
|
|
60
|
+
off('keydown', document, handleKeydown);
|
|
61
|
+
});
|
|
62
|
+
onBeforeUnmount(() => {
|
|
63
|
+
off('keydown', document, handleKeydown);
|
|
64
|
+
});
|
|
64
65
|
let startX = 0;
|
|
65
66
|
let startY = 0;
|
|
66
67
|
let offsetX = 0;
|
|
@@ -260,8 +261,8 @@ export default defineComponent({
|
|
|
260
261
|
handleSwitchNext }, exposedMethods), { cssVars: computed(() => {
|
|
261
262
|
const { common: { cubicBezierEaseInOut }, self: { iconColor } } = themeRef.value;
|
|
262
263
|
return {
|
|
263
|
-
'--bezier': cubicBezierEaseInOut,
|
|
264
|
-
'--icon-color': iconColor
|
|
264
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
265
|
+
'--n-icon-color': iconColor
|
|
265
266
|
};
|
|
266
267
|
}) });
|
|
267
268
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c, cB, cNotM } from '../../../_utils/cssr';
|
|
2
2
|
import fadeInTransition from '../../../_styles/transitions/fade-in.cssr';
|
|
3
3
|
import fadeInzoomInTransiton from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
|
|
4
|
-
// --icon-color
|
|
5
|
-
// --bezier
|
|
4
|
+
// --n-icon-color
|
|
5
|
+
// --n-bezier
|
|
6
6
|
|
|
7
7
|
export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('image-preview-container', `
|
|
8
8
|
position: fixed;
|
|
@@ -29,8 +29,8 @@ export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('
|
|
|
29
29
|
bottom: 40px;
|
|
30
30
|
padding: 0 12px;
|
|
31
31
|
background: rgba(0, 0, 0, .35);
|
|
32
|
-
color: var(--icon-color);
|
|
33
|
-
transition: color .3s var(--bezier);
|
|
32
|
+
color: var(--n-icon-color);
|
|
33
|
+
transition: color .3s var(--n-bezier);
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: center;
|
|
36
36
|
`, [cB('base-icon', `
|
|
@@ -51,7 +51,7 @@ export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('
|
|
|
51
51
|
margin: auto;
|
|
52
52
|
max-height: 100vh;
|
|
53
53
|
max-width: 100vw;
|
|
54
|
-
transition: transform .3s var(--bezier);
|
|
54
|
+
transition: transform .3s var(--n-bezier);
|
|
55
55
|
`), cB('image', `
|
|
56
56
|
display: inline-flex;
|
|
57
57
|
max-height: 100%;
|