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
|
@@ -29,7 +29,7 @@ declare const dialogProps: {
|
|
|
29
29
|
};
|
|
30
30
|
export declare type DialogProps = ExtractPublicPropTypes<typeof dialogProps>;
|
|
31
31
|
export { dialogProps };
|
|
32
|
-
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "positiveText" | "negativeText" | "loading" | "
|
|
32
|
+
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "positiveText" | "negativeText" | "loading" | "showIcon" | "bordered" | "onClose" | "closable" | "iconPlacement" | "onPositiveClick" | "onNegativeClick")[];
|
|
33
33
|
declare const _default: import("vue").DefineComponent<{
|
|
34
34
|
icon: PropType<() => VNodeChild>;
|
|
35
35
|
type: {
|
|
@@ -1151,9 +1151,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1151
1151
|
} & {
|
|
1152
1152
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
1153
1153
|
loading: boolean;
|
|
1154
|
+
showIcon: boolean;
|
|
1154
1155
|
bordered: boolean;
|
|
1155
1156
|
closable: boolean;
|
|
1156
|
-
showIcon: boolean;
|
|
1157
1157
|
} & {
|
|
1158
1158
|
content?: string | (() => VNodeChild) | undefined;
|
|
1159
1159
|
icon?: (() => VNodeChild) | undefined;
|
|
@@ -1867,8 +1867,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1867
1867
|
}>, {
|
|
1868
1868
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
1869
1869
|
loading: boolean;
|
|
1870
|
+
showIcon: boolean;
|
|
1870
1871
|
bordered: boolean;
|
|
1871
1872
|
closable: boolean;
|
|
1872
|
-
showIcon: boolean;
|
|
1873
1873
|
}>;
|
|
1874
1874
|
export default _default;
|
package/lib/dialog/src/Dialog.js
CHANGED
|
@@ -120,7 +120,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
120
120
|
`${mergedClsPrefix}-dialog`,
|
|
121
121
|
`${mergedClsPrefix}-dialog--icon-${mergedIconPlacement}`,
|
|
122
122
|
bordered && `${mergedClsPrefix}-dialog--bordered`
|
|
123
|
-
], style: cssVars },
|
|
123
|
+
], style: cssVars, role: "dialog" },
|
|
124
124
|
closable ? ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick })) : null,
|
|
125
125
|
showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` },
|
|
126
126
|
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__icon` }, {
|
|
@@ -139,10 +139,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
139
139
|
$slots.action || positiveText || negativeText || action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__action` }, (0, vue_1.renderSlot)($slots, 'action', undefined, action
|
|
140
140
|
? () => [(0, _utils_1.render)(action)]
|
|
141
141
|
: () => [
|
|
142
|
-
this.negativeText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, ghost: true, size: "small", onClick: handleNegativeClick
|
|
142
|
+
this.negativeText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, ghost: true, size: "small", onClick: handleNegativeClick }, {
|
|
143
143
|
default: () => (0, _utils_1.render)(this.negativeText)
|
|
144
144
|
})),
|
|
145
|
-
this.positiveText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, disabled: loading, loading: loading, size: "small", type: type === 'default' ? 'primary' : type, onClick: handlePositiveClick
|
|
145
|
+
this.positiveText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, disabled: loading, loading: loading, size: "small", type: type === 'default' ? 'primary' : type, onClick: handlePositiveClick }, {
|
|
146
146
|
default: () => (0, _utils_1.render)(this.positiveText)
|
|
147
147
|
}))
|
|
148
148
|
]))) : null));
|
|
@@ -105,9 +105,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
105
|
} & {
|
|
106
106
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
107
107
|
loading: boolean;
|
|
108
|
+
showIcon: boolean;
|
|
108
109
|
bordered: boolean;
|
|
109
110
|
closable: boolean;
|
|
110
|
-
showIcon: boolean;
|
|
111
111
|
maskClosable: boolean;
|
|
112
112
|
internalKey: string;
|
|
113
113
|
onInternalAfterLeave: (key: string) => void;
|
|
@@ -128,9 +128,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
128
|
}>, {
|
|
129
129
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
130
130
|
loading: boolean;
|
|
131
|
+
showIcon: boolean;
|
|
131
132
|
bordered: boolean;
|
|
132
133
|
closable: boolean;
|
|
133
|
-
showIcon: boolean;
|
|
134
134
|
maskClosable: boolean;
|
|
135
135
|
}>;
|
|
136
136
|
export default _default;
|
|
@@ -49,10 +49,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
positiveText?: string | undefined;
|
|
50
50
|
negativeText?: string | undefined;
|
|
51
51
|
loading?: boolean | undefined;
|
|
52
|
+
showIcon?: boolean | undefined;
|
|
52
53
|
bordered?: boolean | undefined;
|
|
53
54
|
onClose?: (() => unknown) | undefined;
|
|
54
55
|
closable?: boolean | undefined;
|
|
55
|
-
showIcon?: boolean | undefined;
|
|
56
56
|
iconPlacement?: import("./interface").IconPlacement | undefined;
|
|
57
57
|
onPositiveClick?: ((e: MouseEvent) => unknown) | undefined;
|
|
58
58
|
onNegativeClick?: ((e: MouseEvent) => unknown) | undefined;
|
|
@@ -400,25 +400,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
400
400
|
};
|
|
401
401
|
}>;
|
|
402
402
|
cssVars: import("vue").ComputedRef<{
|
|
403
|
-
'--line-height': string;
|
|
404
|
-
'--color': string;
|
|
405
|
-
'--text-color': string;
|
|
406
|
-
'--box-shadow': string;
|
|
407
|
-
'--bezier': string;
|
|
408
|
-
'--bezier-out': string;
|
|
409
|
-
'--bezier-in': string;
|
|
410
|
-
'--header-padding': string;
|
|
411
|
-
'--body-padding': string;
|
|
412
|
-
'--footer-padding': string;
|
|
413
|
-
'--title-text-color': string;
|
|
414
|
-
'--title-font-size': string;
|
|
415
|
-
'--title-font-weight': string;
|
|
416
|
-
'--header-border-bottom': string;
|
|
417
|
-
'--footer-border-top': string;
|
|
418
|
-
'--close-color': string;
|
|
419
|
-
'--close-color-hover': string;
|
|
420
|
-
'--close-color-pressed': string;
|
|
421
|
-
'--close-size': string;
|
|
403
|
+
'--n-line-height': string;
|
|
404
|
+
'--n-color': string;
|
|
405
|
+
'--n-text-color': string;
|
|
406
|
+
'--n-box-shadow': string;
|
|
407
|
+
'--n-bezier': string;
|
|
408
|
+
'--n-bezier-out': string;
|
|
409
|
+
'--n-bezier-in': string;
|
|
410
|
+
'--n-header-padding': string;
|
|
411
|
+
'--n-body-padding': string;
|
|
412
|
+
'--n-footer-padding': string;
|
|
413
|
+
'--n-title-text-color': string;
|
|
414
|
+
'--n-title-font-size': string;
|
|
415
|
+
'--n-title-font-weight': string;
|
|
416
|
+
'--n-header-border-bottom': string;
|
|
417
|
+
'--n-footer-border-top': string;
|
|
418
|
+
'--n-close-color': string;
|
|
419
|
+
'--n-close-color-hover': string;
|
|
420
|
+
'--n-close-color-pressed': string;
|
|
421
|
+
'--n-close-size': string;
|
|
422
422
|
}>;
|
|
423
423
|
isMounted: Readonly<import("vue").Ref<boolean>>;
|
|
424
424
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
package/lib/drawer/src/Drawer.js
CHANGED
|
@@ -140,25 +140,25 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
140
140
|
cssVars: (0, vue_1.computed)(() => {
|
|
141
141
|
const { common: { cubicBezierEaseInOut, cubicBezierEaseIn, cubicBezierEaseOut }, self: { color, textColor, boxShadow, lineHeight, headerPadding, footerPadding, bodyPadding, titleFontSize, titleTextColor, titleFontWeight, headerBorderBottom, footerBorderTop, closeColor, closeColorHover, closeColorPressed, closeSize } } = themeRef.value;
|
|
142
142
|
return {
|
|
143
|
-
'--line-height': lineHeight,
|
|
144
|
-
'--color': color,
|
|
145
|
-
'--text-color': textColor,
|
|
146
|
-
'--box-shadow': boxShadow,
|
|
147
|
-
'--bezier': cubicBezierEaseInOut,
|
|
148
|
-
'--bezier-out': cubicBezierEaseOut,
|
|
149
|
-
'--bezier-in': cubicBezierEaseIn,
|
|
150
|
-
'--header-padding': headerPadding,
|
|
151
|
-
'--body-padding': bodyPadding,
|
|
152
|
-
'--footer-padding': footerPadding,
|
|
153
|
-
'--title-text-color': titleTextColor,
|
|
154
|
-
'--title-font-size': titleFontSize,
|
|
155
|
-
'--title-font-weight': titleFontWeight,
|
|
156
|
-
'--header-border-bottom': headerBorderBottom,
|
|
157
|
-
'--footer-border-top': footerBorderTop,
|
|
158
|
-
'--close-color': closeColor,
|
|
159
|
-
'--close-color-hover': closeColorHover,
|
|
160
|
-
'--close-color-pressed': closeColorPressed,
|
|
161
|
-
'--close-size': closeSize
|
|
143
|
+
'--n-line-height': lineHeight,
|
|
144
|
+
'--n-color': color,
|
|
145
|
+
'--n-text-color': textColor,
|
|
146
|
+
'--n-box-shadow': boxShadow,
|
|
147
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
148
|
+
'--n-bezier-out': cubicBezierEaseOut,
|
|
149
|
+
'--n-bezier-in': cubicBezierEaseIn,
|
|
150
|
+
'--n-header-padding': headerPadding,
|
|
151
|
+
'--n-body-padding': bodyPadding,
|
|
152
|
+
'--n-footer-padding': footerPadding,
|
|
153
|
+
'--n-title-text-color': titleTextColor,
|
|
154
|
+
'--n-title-font-size': titleFontSize,
|
|
155
|
+
'--n-title-font-weight': titleFontWeight,
|
|
156
|
+
'--n-header-border-bottom': headerBorderBottom,
|
|
157
|
+
'--n-footer-border-top': footerBorderTop,
|
|
158
|
+
'--n-close-color': closeColor,
|
|
159
|
+
'--n-close-color-hover': closeColorHover,
|
|
160
|
+
'--n-close-color-pressed': closeColorPressed,
|
|
161
|
+
'--n-close-size': closeSize
|
|
162
162
|
};
|
|
163
163
|
}),
|
|
164
164
|
isMounted: isMountedRef
|
|
@@ -21,37 +21,37 @@ const slide_in_from_top_1 = __importDefault(require("../../../_styles/transition
|
|
|
21
21
|
const slide_in_from_bottom_1 = __importDefault(require("../../../_styles/transitions/slide-in-from-bottom"));
|
|
22
22
|
|
|
23
23
|
const fade_in_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in.cssr")); // vars:
|
|
24
|
-
// --line-height
|
|
25
|
-
// --color
|
|
26
|
-
// --text-color
|
|
27
|
-
// --box-shadow
|
|
28
|
-
// --bezier
|
|
29
|
-
// --bezier-out
|
|
30
|
-
// --bezier-in
|
|
31
|
-
// --body-padding
|
|
32
|
-
// --header-padding
|
|
33
|
-
// --footer-padding
|
|
34
|
-
// --title-font-size
|
|
35
|
-
// --title-text-color
|
|
36
|
-
// --title-font-weight
|
|
37
|
-
// --header-border-bottom
|
|
38
|
-
// --footer-border-top
|
|
39
|
-
// --close-color
|
|
40
|
-
// --close-color-hover
|
|
41
|
-
// --close-color-pressed
|
|
42
|
-
// --close-size
|
|
24
|
+
// --n-line-height
|
|
25
|
+
// --n-color
|
|
26
|
+
// --n-text-color
|
|
27
|
+
// --n-box-shadow
|
|
28
|
+
// --n-bezier
|
|
29
|
+
// --n-bezier-out
|
|
30
|
+
// --n-bezier-in
|
|
31
|
+
// --n-body-padding
|
|
32
|
+
// --n-header-padding
|
|
33
|
+
// --n-footer-padding
|
|
34
|
+
// --n-title-font-size
|
|
35
|
+
// --n-title-text-color
|
|
36
|
+
// --n-title-font-weight
|
|
37
|
+
// --n-header-border-bottom
|
|
38
|
+
// --n-footer-border-top
|
|
39
|
+
// --n-close-color
|
|
40
|
+
// --n-close-color-hover
|
|
41
|
+
// --n-close-color-pressed
|
|
42
|
+
// --n-close-size
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
46
|
-
line-height: var(--line-height);
|
|
46
|
+
line-height: var(--n-line-height);
|
|
47
47
|
position: absolute;
|
|
48
48
|
pointer-events: all;
|
|
49
|
-
box-shadow: var(--box-shadow);
|
|
49
|
+
box-shadow: var(--n-box-shadow);
|
|
50
50
|
transition:
|
|
51
|
-
background-color .3s var(--bezier),
|
|
52
|
-
color .3s var(--bezier);
|
|
53
|
-
background-color: var(--color);
|
|
54
|
-
color: var(--text-color);
|
|
51
|
+
background-color .3s var(--n-bezier),
|
|
52
|
+
color .3s var(--n-bezier);
|
|
53
|
+
background-color: var(--n-color);
|
|
54
|
+
color: var(--n-text-color);
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
`, [(0, slide_in_from_right_1.default)(), (0, slide_in_from_left_1.default)(), (0, slide_in_from_top_1.default)(), (0, slide_in_from_bottom_1.default)(), (0, cssr_1.cM)('native-scrollbar', [(0, cssr_1.cB)('drawer-content-wrapper', `
|
|
57
57
|
overflow: auto;
|
|
@@ -67,30 +67,31 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
|
67
67
|
overflow: auto;
|
|
68
68
|
`)]), (0, cssr_1.cB)('drawer-body', `
|
|
69
69
|
flex: 1 0 0;
|
|
70
|
+
overflow: hidden;
|
|
70
71
|
`), (0, cssr_1.cB)('drawer-body-content-wrapper', `
|
|
71
72
|
box-sizing: border-box;
|
|
72
|
-
padding: var(--body-padding);
|
|
73
|
+
padding: var(--n-body-padding);
|
|
73
74
|
`), (0, cssr_1.cB)('drawer-header', `
|
|
74
|
-
font-weight: var(--title-font-weight);
|
|
75
|
+
font-weight: var(--n-title-font-weight);
|
|
75
76
|
line-height: 1;
|
|
76
|
-
font-size: var(--title-font-size);
|
|
77
|
-
color: var(--title-text-color);
|
|
78
|
-
padding: var(--header-padding);
|
|
79
|
-
transition: border .3s var(--bezier);
|
|
80
|
-
border-bottom: 1px solid var(--divider-color);
|
|
81
|
-
border-bottom: var(--header-border-bottom);
|
|
77
|
+
font-size: var(--n-title-font-size);
|
|
78
|
+
color: var(--n-title-text-color);
|
|
79
|
+
padding: var(--n-header-padding);
|
|
80
|
+
transition: border .3s var(--n-bezier);
|
|
81
|
+
border-bottom: 1px solid var(--n-divider-color);
|
|
82
|
+
border-bottom: var(--n-header-border-bottom);
|
|
82
83
|
display: flex;
|
|
83
84
|
justify-content: space-between;
|
|
84
85
|
align-items: center;
|
|
85
86
|
`, [(0, cssr_1.cE)('close', `
|
|
86
|
-
transition: color .3s var(--bezier);
|
|
87
|
-
font-size: var(--close-size);
|
|
87
|
+
transition: color .3s var(--n-bezier);
|
|
88
|
+
font-size: var(--n-close-size);
|
|
88
89
|
`)]), (0, cssr_1.cB)('drawer-footer', `
|
|
89
90
|
display: flex;
|
|
90
91
|
justify-content: flex-end;
|
|
91
|
-
border-top: var(--footer-border-top);
|
|
92
|
-
transition: border .3s var(--bezier);
|
|
93
|
-
padding: var(--footer-padding);
|
|
92
|
+
border-top: var(--n-footer-border-top);
|
|
93
|
+
transition: border .3s var(--n-bezier);
|
|
94
|
+
padding: var(--n-footer-padding);
|
|
94
95
|
`)]), (0, cssr_1.cM)('right-placement', `
|
|
95
96
|
top: 0;
|
|
96
97
|
bottom: 0;
|
|
@@ -129,6 +130,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
|
129
130
|
`, [(0, fade_in_cssr_1.default)({
|
|
130
131
|
enterDuration: '0.2s',
|
|
131
132
|
leaveDuration: '0.2s',
|
|
132
|
-
enterCubicBezier: 'var(--bezier-in)',
|
|
133
|
-
leaveCubicBezier: 'var(--bezier-out)'
|
|
133
|
+
enterCubicBezier: 'var(--n-bezier-in)',
|
|
134
|
+
leaveCubicBezier: 'var(--n-bezier-out)'
|
|
134
135
|
})])]);
|
|
@@ -241,46 +241,48 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
241
241
|
const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
|
|
242
242
|
const { padding, dividerColor, borderRadius, optionOpacityDisabled, [(0, _utils_1.createKey)('optionIconSuffixWidth', size)]: optionIconSuffixWidth, [(0, _utils_1.createKey)('optionSuffixWidth', size)]: optionSuffixWidth, [(0, _utils_1.createKey)('optionIconPrefixWidth', size)]: optionIconPrefixWidth, [(0, _utils_1.createKey)('optionPrefixWidth', size)]: optionPrefixWidth, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('optionHeight', size)]: optionHeight, [(0, _utils_1.createKey)('optionIconSize', size)]: optionIconSize } = self;
|
|
243
243
|
const vars = {
|
|
244
|
-
'--bezier': cubicBezierEaseInOut,
|
|
245
|
-
'--font-size': fontSize,
|
|
246
|
-
'--padding': padding,
|
|
247
|
-
'--border-radius': borderRadius,
|
|
248
|
-
'--option-height': optionHeight,
|
|
249
|
-
'--option-prefix-width': optionPrefixWidth,
|
|
250
|
-
'--option-icon-prefix-width': optionIconPrefixWidth,
|
|
251
|
-
'--option-suffix-width': optionSuffixWidth,
|
|
252
|
-
'--option-icon-suffix-width': optionIconSuffixWidth,
|
|
253
|
-
'--option-icon-size': optionIconSize,
|
|
254
|
-
'--divider-color': dividerColor,
|
|
255
|
-
'--option-opacity-disabled': optionOpacityDisabled
|
|
244
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
245
|
+
'--n-font-size': fontSize,
|
|
246
|
+
'--n-padding': padding,
|
|
247
|
+
'--n-border-radius': borderRadius,
|
|
248
|
+
'--n-option-height': optionHeight,
|
|
249
|
+
'--n-option-prefix-width': optionPrefixWidth,
|
|
250
|
+
'--n-option-icon-prefix-width': optionIconPrefixWidth,
|
|
251
|
+
'--n-option-suffix-width': optionSuffixWidth,
|
|
252
|
+
'--n-option-icon-suffix-width': optionIconSuffixWidth,
|
|
253
|
+
'--n-option-icon-size': optionIconSize,
|
|
254
|
+
'--n-divider-color': dividerColor,
|
|
255
|
+
'--n-option-opacity-disabled': optionOpacityDisabled
|
|
256
256
|
};
|
|
257
257
|
// writing like this is the fastest method
|
|
258
258
|
if (inverted) {
|
|
259
|
-
vars['--color'] = self.colorInverted;
|
|
260
|
-
vars['--option-color-hover'] = self.optionColorHoverInverted;
|
|
261
|
-
vars['--option-color-active'] = self.optionColorActiveInverted;
|
|
262
|
-
vars['--option-text-color'] = self.optionTextColorInverted;
|
|
263
|
-
vars['--option-text-color-hover'] =
|
|
264
|
-
|
|
259
|
+
vars['--n-color'] = self.colorInverted;
|
|
260
|
+
vars['--n-option-color-hover'] = self.optionColorHoverInverted;
|
|
261
|
+
vars['--n-option-color-active'] = self.optionColorActiveInverted;
|
|
262
|
+
vars['--n-option-text-color'] = self.optionTextColorInverted;
|
|
263
|
+
vars['--n-option-text-color-hover'] =
|
|
264
|
+
self.optionTextColorHoverInverted;
|
|
265
|
+
vars['--n-option-text-color-active'] =
|
|
265
266
|
self.optionTextColorActiveInverted;
|
|
266
|
-
vars['--option-text-color-child-active'] =
|
|
267
|
+
vars['--n-option-text-color-child-active'] =
|
|
267
268
|
self.optionTextColorChildActiveInverted;
|
|
268
|
-
vars['--prefix-color'] = self.prefixColorInverted;
|
|
269
|
-
vars['--suffix-color'] = self.suffixColorInverted;
|
|
270
|
-
vars['--group-header-text-color'] =
|
|
269
|
+
vars['--n-prefix-color'] = self.prefixColorInverted;
|
|
270
|
+
vars['--n-suffix-color'] = self.suffixColorInverted;
|
|
271
|
+
vars['--n-group-header-text-color'] =
|
|
272
|
+
self.groupHeaderTextColorInverted;
|
|
271
273
|
}
|
|
272
274
|
else {
|
|
273
|
-
vars['--color'] = self.color;
|
|
274
|
-
vars['--option-color-hover'] = self.optionColorHover;
|
|
275
|
-
vars['--option-color-active'] = self.optionColorActive;
|
|
276
|
-
vars['--option-text-color'] = self.optionTextColor;
|
|
277
|
-
vars['--option-text-color-hover'] = self.optionTextColorHover;
|
|
278
|
-
vars['--option-text-color-active'] = self.optionTextColorActive;
|
|
279
|
-
vars['--option-text-color-child-active'] =
|
|
275
|
+
vars['--n-color'] = self.color;
|
|
276
|
+
vars['--n-option-color-hover'] = self.optionColorHover;
|
|
277
|
+
vars['--n-option-color-active'] = self.optionColorActive;
|
|
278
|
+
vars['--n-option-text-color'] = self.optionTextColor;
|
|
279
|
+
vars['--n-option-text-color-hover'] = self.optionTextColorHover;
|
|
280
|
+
vars['--n-option-text-color-active'] = self.optionTextColorActive;
|
|
281
|
+
vars['--n-option-text-color-child-active'] =
|
|
280
282
|
self.optionTextColorChildActive;
|
|
281
|
-
vars['--prefix-color'] = self.prefixColor;
|
|
282
|
-
vars['--suffix-color'] = self.suffixColor;
|
|
283
|
-
vars['--group-header-text-color'] = self.groupHeaderTextColor;
|
|
283
|
+
vars['--n-prefix-color'] = self.prefixColor;
|
|
284
|
+
vars['--n-suffix-color'] = self.suffixColor;
|
|
285
|
+
vars['--n-group-header-text-color'] = self.groupHeaderTextColor;
|
|
284
286
|
}
|
|
285
287
|
return vars;
|
|
286
288
|
})
|
|
@@ -13,40 +13,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
14
|
|
|
15
15
|
const fade_in_scale_up_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-scale-up.cssr")); // vars:
|
|
16
|
-
// --bezier
|
|
17
|
-
// --font-size
|
|
18
|
-
// --padding
|
|
19
|
-
// --border-radius
|
|
20
|
-
// --option-height
|
|
21
|
-
// --option-prefix-width
|
|
22
|
-
// --option-icon-prefix-width
|
|
23
|
-
// --option-suffix-width
|
|
24
|
-
// --option-icon-suffix-width
|
|
25
|
-
// --color
|
|
26
|
-
// --option-color-hover
|
|
27
|
-
// --option-color-active
|
|
28
|
-
// --divider-color
|
|
29
|
-
// --option-text-color
|
|
30
|
-
// --option-text-color-hover
|
|
31
|
-
// --option-text-color-active
|
|
32
|
-
// --option-text-color-child-active
|
|
33
|
-
// --prefix-color
|
|
34
|
-
// --suffix-color
|
|
35
|
-
// --option-icon-size
|
|
36
|
-
// --option-opacity-disabled
|
|
16
|
+
// --n-bezier
|
|
17
|
+
// --n-font-size
|
|
18
|
+
// --n-padding
|
|
19
|
+
// --n-border-radius
|
|
20
|
+
// --n-option-height
|
|
21
|
+
// --n-option-prefix-width
|
|
22
|
+
// --n-option-icon-prefix-width
|
|
23
|
+
// --n-option-suffix-width
|
|
24
|
+
// --n-option-icon-suffix-width
|
|
25
|
+
// --n-color
|
|
26
|
+
// --n-option-color-hover
|
|
27
|
+
// --n-option-color-active
|
|
28
|
+
// --n-divider-color
|
|
29
|
+
// --n-option-text-color
|
|
30
|
+
// --n-option-text-color-hover
|
|
31
|
+
// --n-option-text-color-active
|
|
32
|
+
// --n-option-text-color-child-active
|
|
33
|
+
// --n-prefix-color
|
|
34
|
+
// --n-suffix-color
|
|
35
|
+
// --n-option-icon-size
|
|
36
|
+
// --n-option-opacity-disabled
|
|
37
37
|
// shared with popover
|
|
38
|
-
// --box-shadow
|
|
38
|
+
// --n-box-shadow
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
42
42
|
transform-origin: inherit;
|
|
43
|
-
padding: var(--padding);
|
|
44
|
-
background-color: var(--color);
|
|
45
|
-
border-radius: var(--border-radius);
|
|
46
|
-
box-shadow: var(--box-shadow);
|
|
43
|
+
padding: var(--n-padding);
|
|
44
|
+
background-color: var(--n-color);
|
|
45
|
+
border-radius: var(--n-border-radius);
|
|
46
|
+
box-shadow: var(--n-box-shadow);
|
|
47
47
|
transition:
|
|
48
|
-
background-color .3s var(--bezier),
|
|
49
|
-
box-shadow .3s var(--bezier);
|
|
48
|
+
background-color .3s var(--n-bezier),
|
|
49
|
+
box-shadow .3s var(--n-bezier);
|
|
50
50
|
`, [(0, fade_in_scale_up_cssr_1.default)(), (0, cssr_1.cB)('dropdown-option', `
|
|
51
51
|
position: relative;
|
|
52
52
|
`, [(0, cssr_1.c)('a', `
|
|
@@ -62,48 +62,48 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
62
62
|
`)]), (0, cssr_1.cB)('dropdown-option-body', `
|
|
63
63
|
display: flex;
|
|
64
64
|
cursor: pointer;
|
|
65
|
-
height: var(--option-height);
|
|
66
|
-
line-height: var(--option-height);
|
|
67
|
-
font-size: var(--font-size);
|
|
68
|
-
color: var(--option-text-color);
|
|
65
|
+
height: var(--n-option-height);
|
|
66
|
+
line-height: var(--n-option-height);
|
|
67
|
+
font-size: var(--n-font-size);
|
|
68
|
+
color: var(--n-option-text-color);
|
|
69
69
|
transition:
|
|
70
|
-
background-color .3s var(--bezier),
|
|
71
|
-
color .3s var(--bezier);
|
|
70
|
+
background-color .3s var(--n-bezier),
|
|
71
|
+
color .3s var(--n-bezier);
|
|
72
72
|
`, [(0, cssr_1.cM)('pending', [(0, cssr_1.cNotM)('disabled', {
|
|
73
|
-
color: 'var(--option-text-color-hover)',
|
|
74
|
-
backgroundColor: 'var(--option-color-hover)'
|
|
73
|
+
color: 'var(--n-option-text-color-hover)',
|
|
74
|
+
backgroundColor: 'var(--n-option-color-hover)'
|
|
75
75
|
}), (0, cssr_1.cE)('prefix, suffix', {
|
|
76
|
-
color: 'var(--option-text-color-hover)'
|
|
76
|
+
color: 'var(--n-option-text-color-hover)'
|
|
77
77
|
})]), (0, cssr_1.cM)('active', [(0, cssr_1.cNotM)('disabled', {
|
|
78
|
-
color: 'var(--option-text-color-active)',
|
|
79
|
-
backgroundColor: 'var(--option-color-active)'
|
|
78
|
+
color: 'var(--n-option-text-color-active)',
|
|
79
|
+
backgroundColor: 'var(--n-option-color-active)'
|
|
80
80
|
}), (0, cssr_1.cE)('prefix, suffix', {
|
|
81
|
-
color: 'var(--option-text-color-active)'
|
|
81
|
+
color: 'var(--n-option-text-color-active)'
|
|
82
82
|
})]), (0, cssr_1.cM)('disabled', {
|
|
83
83
|
cursor: 'not-allowed',
|
|
84
|
-
opacity: 'var(--option-opacity-disabled)'
|
|
84
|
+
opacity: 'var(--n-option-opacity-disabled)'
|
|
85
85
|
}), (0, cssr_1.cM)('child-active', {
|
|
86
|
-
color: 'var(--option-text-color-child-active)'
|
|
86
|
+
color: 'var(--n-option-text-color-child-active)'
|
|
87
87
|
}, [(0, cssr_1.cE)('prefix, suffix', {
|
|
88
|
-
color: 'var(--option-text-color-child-active)'
|
|
88
|
+
color: 'var(--n-option-text-color-child-active)'
|
|
89
89
|
})]), (0, cssr_1.cM)('group', {
|
|
90
|
-
fontSize: 'calc(var(--font-size) - 1px)',
|
|
91
|
-
color: 'var(--group-header-text-color)'
|
|
90
|
+
fontSize: 'calc(var(--n-font-size) - 1px)',
|
|
91
|
+
color: 'var(--n-group-header-text-color)'
|
|
92
92
|
}, [(0, cssr_1.cE)('prefix', {
|
|
93
|
-
width: 'calc(var(--option-prefix-width) / 2)'
|
|
93
|
+
width: 'calc(var(--n-option-prefix-width) / 2)'
|
|
94
94
|
}, [(0, cssr_1.cM)('show-icon', {
|
|
95
|
-
width: 'calc(var(--option-icon-prefix-width) / 2)'
|
|
95
|
+
width: 'calc(var(--n-option-icon-prefix-width) / 2)'
|
|
96
96
|
})])]), (0, cssr_1.cE)('prefix', `
|
|
97
|
-
width: var(--option-prefix-width);
|
|
97
|
+
width: var(--n-option-prefix-width);
|
|
98
98
|
display: flex;
|
|
99
99
|
justify-content: center;
|
|
100
100
|
align-items: center;
|
|
101
|
-
color: var(--prefix-color);
|
|
102
|
-
transition: color .3s var(--bezier);
|
|
101
|
+
color: var(--n-prefix-color);
|
|
102
|
+
transition: color .3s var(--n-bezier);
|
|
103
103
|
`, [(0, cssr_1.cM)('show-icon', {
|
|
104
|
-
width: 'var(--option-icon-prefix-width)'
|
|
104
|
+
width: 'var(--n-option-icon-prefix-width)'
|
|
105
105
|
}), (0, cssr_1.cB)('icon', {
|
|
106
|
-
fontSize: 'var(--option-icon-size)'
|
|
106
|
+
fontSize: 'var(--n-option-icon-size)'
|
|
107
107
|
})]), (0, cssr_1.cE)('label', {
|
|
108
108
|
whiteSpace: 'nowrap',
|
|
109
109
|
flex: 1
|
|
@@ -114,14 +114,14 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
114
114
|
display: flex;
|
|
115
115
|
justify-content: flex-end;
|
|
116
116
|
align-items: center;
|
|
117
|
-
min-width: var(--option-suffix-width);
|
|
117
|
+
min-width: var(--n-option-suffix-width);
|
|
118
118
|
padding: 0 8px;
|
|
119
|
-
transition: color .3s var(--bezier);
|
|
120
|
-
color: var(--suffix-color);
|
|
119
|
+
transition: color .3s var(--n-bezier);
|
|
120
|
+
color: var(--n-suffix-color);
|
|
121
121
|
`, [(0, cssr_1.cM)('has-submenu', {
|
|
122
|
-
width: 'var(--option-icon-suffix-width)'
|
|
122
|
+
width: 'var(--n-option-icon-suffix-width)'
|
|
123
123
|
}), (0, cssr_1.cB)('icon', {
|
|
124
|
-
fontSize: 'var(--option-icon-size)'
|
|
124
|
+
fontSize: 'var(--n-option-icon-size)'
|
|
125
125
|
})]), (0, cssr_1.cB)('dropdown-menu', {
|
|
126
126
|
pointerEvents: 'all'
|
|
127
127
|
})]), (0, cssr_1.cB)('dropdown-offset-container', `
|
|
@@ -132,8 +132,8 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
132
132
|
top: -4px;
|
|
133
133
|
bottom: -4px;
|
|
134
134
|
`)]), (0, cssr_1.cB)('dropdown-divider', `
|
|
135
|
-
transition: background-color .3s var(--bezier);
|
|
136
|
-
background-color: var(--divider-color);
|
|
135
|
+
transition: background-color .3s var(--n-bezier);
|
|
136
|
+
background-color: var(--n-divider-color);
|
|
137
137
|
height: 1px;
|
|
138
138
|
margin: 4px 0;
|
|
139
139
|
`), (0, cssr_1.cB)('dropdown-menu-wrapper', `
|
package/lib/empty/src/Empty.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
2
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
declare const emptyProps: {
|
|
4
|
-
description:
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
default: undefined;
|
|
7
|
-
};
|
|
4
|
+
description: StringConstructor;
|
|
8
5
|
showDescription: {
|
|
9
6
|
type: BooleanConstructor;
|
|
10
7
|
default: boolean;
|
|
11
8
|
};
|
|
9
|
+
showIcon: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
12
13
|
size: {
|
|
13
14
|
type: PropType<"small" | "medium" | "large" | "huge">;
|
|
14
15
|
default: string;
|
|
@@ -56,14 +57,15 @@ declare const emptyProps: {
|
|
|
56
57
|
};
|
|
57
58
|
export declare type EmptyProps = ExtractPublicPropTypes<typeof emptyProps>;
|
|
58
59
|
declare const _default: import("vue").DefineComponent<{
|
|
59
|
-
description:
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: undefined;
|
|
62
|
-
};
|
|
60
|
+
description: StringConstructor;
|
|
63
61
|
showDescription: {
|
|
64
62
|
type: BooleanConstructor;
|
|
65
63
|
default: boolean;
|
|
66
64
|
};
|
|
65
|
+
showIcon: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
67
69
|
size: {
|
|
68
70
|
type: PropType<"small" | "medium" | "large" | "huge">;
|
|
69
71
|
default: string;
|
|
@@ -113,16 +115,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
115
|
mergedRenderIcon: import("vue").ComputedRef<() => VNodeChild>;
|
|
114
116
|
localizedDescription: import("vue").ComputedRef<string>;
|
|
115
117
|
cssVars: import("vue").ComputedRef<{
|
|
116
|
-
'--icon-size': string;
|
|
117
|
-
'--font-size': string;
|
|
118
|
-
'--bezier': string;
|
|
119
|
-
'--text-color': string;
|
|
120
|
-
'--icon-color': string;
|
|
121
|
-
'--extra-text-color': string;
|
|
118
|
+
'--n-icon-size': string;
|
|
119
|
+
'--n-font-size': string;
|
|
120
|
+
'--n-bezier': string;
|
|
121
|
+
'--n-text-color': string;
|
|
122
|
+
'--n-icon-color': string;
|
|
123
|
+
'--n-extra-text-color': string;
|
|
122
124
|
}>;
|
|
123
125
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
124
126
|
description?: unknown;
|
|
125
127
|
showDescription?: unknown;
|
|
128
|
+
showIcon?: unknown;
|
|
126
129
|
size?: unknown;
|
|
127
130
|
renderIcon?: unknown;
|
|
128
131
|
theme?: unknown;
|
|
@@ -131,6 +134,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
134
|
} & {
|
|
132
135
|
size: "small" | "medium" | "large" | "huge";
|
|
133
136
|
showDescription: boolean;
|
|
137
|
+
showIcon: boolean;
|
|
134
138
|
} & {
|
|
135
139
|
description?: string | undefined;
|
|
136
140
|
theme?: import("../../_mixins").Theme<"Empty", {
|
|
@@ -174,8 +178,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
178
|
}, any>> | undefined;
|
|
175
179
|
renderIcon?: (() => VNodeChild) | undefined;
|
|
176
180
|
}>, {
|
|
177
|
-
description: string;
|
|
178
181
|
size: "small" | "medium" | "large" | "huge";
|
|
179
182
|
showDescription: boolean;
|
|
183
|
+
showIcon: boolean;
|
|
180
184
|
}>;
|
|
181
185
|
export default _default;
|