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
|
@@ -82,6 +82,8 @@ declare const cascaderProps: {
|
|
|
82
82
|
};
|
|
83
83
|
readonly 'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
84
84
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
85
|
+
readonly 'onUpdate:show': PropType<MaybeArray<(show: Boolean) => void>>;
|
|
86
|
+
readonly onUpdateShow: PropType<MaybeArray<(show: Boolean) => void>>;
|
|
85
87
|
readonly onBlur: PropType<(e: FocusEvent) => void>;
|
|
86
88
|
readonly onFocus: PropType<(e: FocusEvent) => void>;
|
|
87
89
|
readonly onChange: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
@@ -714,6 +716,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
714
716
|
};
|
|
715
717
|
readonly 'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
716
718
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
719
|
+
readonly 'onUpdate:show': PropType<MaybeArray<(show: Boolean) => void>>;
|
|
720
|
+
readonly onUpdateShow: PropType<MaybeArray<(show: Boolean) => void>>;
|
|
717
721
|
readonly onBlur: PropType<(e: FocusEvent) => void>;
|
|
718
722
|
readonly onFocus: PropType<(e: FocusEvent) => void>;
|
|
719
723
|
readonly onChange: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
@@ -1670,23 +1674,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1670
1674
|
};
|
|
1671
1675
|
}>;
|
|
1672
1676
|
cssVars: import("vue").ComputedRef<{
|
|
1673
|
-
'--bezier': string;
|
|
1674
|
-
'--menu-border-radius': string;
|
|
1675
|
-
'--menu-box-shadow': string;
|
|
1676
|
-
'--menu-height': string;
|
|
1677
|
-
'--column-width': string;
|
|
1678
|
-
'--menu-color': string;
|
|
1679
|
-
'--menu-divider-color': string;
|
|
1680
|
-
'--option-height': string;
|
|
1681
|
-
'--option-font-size': string;
|
|
1682
|
-
'--option-text-color': string;
|
|
1683
|
-
'--option-text-color-disabled': string;
|
|
1684
|
-
'--option-text-color-active': string;
|
|
1685
|
-
'--option-color-hover': string;
|
|
1686
|
-
'--option-check-mark-color': string;
|
|
1687
|
-
'--option-arrow-color': string;
|
|
1688
|
-
'--menu-mask-color': string;
|
|
1689
|
-
'--loading-color': string;
|
|
1677
|
+
'--n-bezier': string;
|
|
1678
|
+
'--n-menu-border-radius': string;
|
|
1679
|
+
'--n-menu-box-shadow': string;
|
|
1680
|
+
'--n-menu-height': string;
|
|
1681
|
+
'--n-column-width': string;
|
|
1682
|
+
'--n-menu-color': string;
|
|
1683
|
+
'--n-menu-divider-color': string;
|
|
1684
|
+
'--n-option-height': string;
|
|
1685
|
+
'--n-option-font-size': string;
|
|
1686
|
+
'--n-option-text-color': string;
|
|
1687
|
+
'--n-option-text-color-disabled': string;
|
|
1688
|
+
'--n-option-text-color-active': string;
|
|
1689
|
+
'--n-option-color-hover': string;
|
|
1690
|
+
'--n-option-check-mark-color': string;
|
|
1691
|
+
'--n-option-arrow-color': string;
|
|
1692
|
+
'--n-menu-mask-color': string;
|
|
1693
|
+
'--n-loading-color': string;
|
|
1690
1694
|
}>;
|
|
1691
1695
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
1692
1696
|
readonly to?: unknown;
|
|
@@ -1718,6 +1722,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1718
1722
|
readonly childrenField?: unknown;
|
|
1719
1723
|
readonly 'onUpdate:value'?: unknown;
|
|
1720
1724
|
readonly onUpdateValue?: unknown;
|
|
1725
|
+
readonly 'onUpdate:show'?: unknown;
|
|
1726
|
+
readonly onUpdateShow?: unknown;
|
|
1721
1727
|
readonly onBlur?: unknown;
|
|
1722
1728
|
readonly onFocus?: unknown;
|
|
1723
1729
|
readonly onChange?: unknown;
|
|
@@ -2304,6 +2310,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2304
2310
|
}, any>;
|
|
2305
2311
|
}>> | undefined;
|
|
2306
2312
|
bordered?: boolean | undefined;
|
|
2313
|
+
"onUpdate:show"?: MaybeArray<(show: Boolean) => void> | undefined;
|
|
2314
|
+
onUpdateShow?: MaybeArray<(show: Boolean) => void> | undefined;
|
|
2307
2315
|
maxTagCount?: number | "responsive" | undefined;
|
|
2308
2316
|
"onUpdate:value"?: MaybeArray<OnUpdateValue> | undefined;
|
|
2309
2317
|
onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
|
|
@@ -57,7 +57,7 @@ const cascaderProps = Object.assign(Object.assign({}, useTheme.props), { to: use
|
|
|
57
57
|
}, childrenField: {
|
|
58
58
|
type: String,
|
|
59
59
|
default: 'children'
|
|
60
|
-
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onBlur: Function, onFocus: Function,
|
|
60
|
+
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onBlur: Function, onFocus: Function,
|
|
61
61
|
// deprecated
|
|
62
62
|
onChange: [Function, Array] });
|
|
63
63
|
// TODO refactor cascader menu keyboard scroll (use virtual list)
|
|
@@ -161,6 +161,16 @@ export default defineComponent({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
+
function doUpdateShow(value) {
|
|
165
|
+
const { onUpdateShow, 'onUpdate:show': _onUpdateShow } = props;
|
|
166
|
+
if (onUpdateShow) {
|
|
167
|
+
call(onUpdateShow, value);
|
|
168
|
+
}
|
|
169
|
+
if (_onUpdateShow) {
|
|
170
|
+
call(_onUpdateShow, value);
|
|
171
|
+
}
|
|
172
|
+
uncontrolledShowRef.value = value;
|
|
173
|
+
}
|
|
164
174
|
function doUpdateValue(value, option, optionPath) {
|
|
165
175
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
|
|
166
176
|
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
@@ -334,7 +344,7 @@ export default defineComponent({
|
|
|
334
344
|
function openMenu() {
|
|
335
345
|
if (!mergedDisabledRef.value) {
|
|
336
346
|
patternRef.value = '';
|
|
337
|
-
|
|
347
|
+
doUpdateShow(true);
|
|
338
348
|
if (props.filterable) {
|
|
339
349
|
focusSelectionInput();
|
|
340
350
|
}
|
|
@@ -344,7 +354,7 @@ export default defineComponent({
|
|
|
344
354
|
if (returnFocus) {
|
|
345
355
|
focusSelection();
|
|
346
356
|
}
|
|
347
|
-
|
|
357
|
+
doUpdateShow(false);
|
|
348
358
|
patternRef.value = '';
|
|
349
359
|
}
|
|
350
360
|
function handleCascaderMenuClickOutside(e) {
|
|
@@ -695,23 +705,23 @@ export default defineComponent({
|
|
|
695
705
|
cssVars: computed(() => {
|
|
696
706
|
const { self: { optionArrowColor, optionTextColor, optionTextColorActive, optionTextColorDisabled, optionCheckMarkColor, menuColor, menuBoxShadow, menuDividerColor, menuBorderRadius, menuHeight, optionColorHover, optionHeight, optionFontSize, loadingColor, columnWidth }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
697
707
|
return {
|
|
698
|
-
'--bezier': cubicBezierEaseInOut,
|
|
699
|
-
'--menu-border-radius': menuBorderRadius,
|
|
700
|
-
'--menu-box-shadow': menuBoxShadow,
|
|
701
|
-
'--menu-height': menuHeight,
|
|
702
|
-
'--column-width': columnWidth,
|
|
703
|
-
'--menu-color': menuColor,
|
|
704
|
-
'--menu-divider-color': menuDividerColor,
|
|
705
|
-
'--option-height': optionHeight,
|
|
706
|
-
'--option-font-size': optionFontSize,
|
|
707
|
-
'--option-text-color': optionTextColor,
|
|
708
|
-
'--option-text-color-disabled': optionTextColorDisabled,
|
|
709
|
-
'--option-text-color-active': optionTextColorActive,
|
|
710
|
-
'--option-color-hover': optionColorHover,
|
|
711
|
-
'--option-check-mark-color': optionCheckMarkColor,
|
|
712
|
-
'--option-arrow-color': optionArrowColor,
|
|
713
|
-
'--menu-mask-color': changeColor(menuColor, { alpha: 0.75 }),
|
|
714
|
-
'--loading-color': loadingColor
|
|
708
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
709
|
+
'--n-menu-border-radius': menuBorderRadius,
|
|
710
|
+
'--n-menu-box-shadow': menuBoxShadow,
|
|
711
|
+
'--n-menu-height': menuHeight,
|
|
712
|
+
'--n-column-width': columnWidth,
|
|
713
|
+
'--n-menu-color': menuColor,
|
|
714
|
+
'--n-menu-divider-color': menuDividerColor,
|
|
715
|
+
'--n-option-height': optionHeight,
|
|
716
|
+
'--n-option-font-size': optionFontSize,
|
|
717
|
+
'--n-option-text-color': optionTextColor,
|
|
718
|
+
'--n-option-text-color-disabled': optionTextColorDisabled,
|
|
719
|
+
'--n-option-text-color-active': optionTextColorActive,
|
|
720
|
+
'--n-option-color-hover': optionColorHover,
|
|
721
|
+
'--n-option-check-mark-color': optionCheckMarkColor,
|
|
722
|
+
'--n-option-arrow-color': optionArrowColor,
|
|
723
|
+
'--n-menu-mask-color': changeColor(menuColor, { alpha: 0.75 }),
|
|
724
|
+
'--n-loading-color': loadingColor
|
|
715
725
|
};
|
|
716
726
|
})
|
|
717
727
|
};
|
|
@@ -103,7 +103,7 @@ export default defineComponent({
|
|
|
103
103
|
if (!this.show)
|
|
104
104
|
return null;
|
|
105
105
|
return withDirectives(h("div", { tabindex: "0", ref: "selfElRef", class: `${mergedClsPrefix}-cascader-menu`, onMousedown: this.onMousedown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.onKeyup, style: {
|
|
106
|
-
'--col-count': this.menuModel.length
|
|
106
|
+
'--n-col-count': this.menuModel.length
|
|
107
107
|
} },
|
|
108
108
|
this.menuModel[0].length ? (h("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
|
|
109
109
|
this.menuModel.map((submenuOptions, index) => (h(NCascaderSubmenu, { ref: ((instance) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { c, cB, cE, cM } from '../../../_utils/cssr';
|
|
2
2
|
import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
|
|
3
|
-
// --menu-border-radius
|
|
4
|
-
// --menu-box-shadow
|
|
5
|
-
// --menu-height
|
|
6
|
-
// --menu-color
|
|
7
|
-
// --menu-divider-color
|
|
8
|
-
// --option-height
|
|
9
|
-
// --option-font-size
|
|
10
|
-
// --option-text-color
|
|
11
|
-
// --option-text-color-disabled
|
|
12
|
-
// --option-text-color-active
|
|
13
|
-
// --option-color-hover
|
|
14
|
-
// --option-check-mark-color
|
|
15
|
-
// --option-arrow-color
|
|
16
|
-
// --menu-mask-color
|
|
17
|
-
// --loading-color
|
|
3
|
+
// --n-menu-border-radius
|
|
4
|
+
// --n-menu-box-shadow
|
|
5
|
+
// --n-menu-height
|
|
6
|
+
// --n-menu-color
|
|
7
|
+
// --n-menu-divider-color
|
|
8
|
+
// --n-option-height
|
|
9
|
+
// --n-option-font-size
|
|
10
|
+
// --n-option-text-color
|
|
11
|
+
// --n-option-text-color-disabled
|
|
12
|
+
// --n-option-text-color-active
|
|
13
|
+
// --n-option-color-hover
|
|
14
|
+
// --n-option-check-mark-color
|
|
15
|
+
// --n-option-arrow-color
|
|
16
|
+
// --n-menu-mask-color
|
|
17
|
+
// --n-loading-color
|
|
18
18
|
|
|
19
19
|
export default c([cB('cascader-menu', `
|
|
20
20
|
outline: none;
|
|
@@ -22,11 +22,11 @@ export default c([cB('cascader-menu', `
|
|
|
22
22
|
margin: 4px 0;
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-flow: column nowrap;
|
|
25
|
-
border-radius: var(--menu-border-radius);
|
|
25
|
+
border-radius: var(--n-menu-border-radius);
|
|
26
26
|
overflow: hidden;
|
|
27
|
-
box-shadow: var(--menu-box-shadow);
|
|
28
|
-
color: var(--option-text-color);
|
|
29
|
-
background-color: var(--menu-color);
|
|
27
|
+
box-shadow: var(--n-menu-box-shadow);
|
|
28
|
+
color: var(--n-option-text-color);
|
|
29
|
+
background-color: var(--n-menu-color);
|
|
30
30
|
`, [fadeInScaleUpTransition({
|
|
31
31
|
transformOrigin: 'inherit',
|
|
32
32
|
duration: '0.2s'
|
|
@@ -40,37 +40,37 @@ export default c([cB('cascader-menu', `
|
|
|
40
40
|
// not correct, which won't change after select menu width is set
|
|
41
41
|
width: '100%'
|
|
42
42
|
}), cB('base-menu-mask', {
|
|
43
|
-
backgroundColor: 'var(--menu-mask-color)'
|
|
43
|
+
backgroundColor: 'var(--n-menu-mask-color)'
|
|
44
44
|
}), cB('base-loading', {
|
|
45
|
-
color: 'var(--loading-color)'
|
|
45
|
+
color: 'var(--n-loading-color)'
|
|
46
46
|
}), cB('cascader-submenu-wrapper', `
|
|
47
47
|
position: relative;
|
|
48
48
|
display: flex;
|
|
49
49
|
flex-wrap: nowrap;
|
|
50
50
|
`), cB('cascader-submenu', `
|
|
51
|
-
height: var(--menu-height);
|
|
52
|
-
min-width: var(--column-width);
|
|
51
|
+
height: var(--n-menu-height);
|
|
52
|
+
min-width: var(--n-column-width);
|
|
53
53
|
position: relative;
|
|
54
54
|
`, [cM('virtual', `
|
|
55
|
-
width: var(--column-width);
|
|
55
|
+
width: var(--n-column-width);
|
|
56
56
|
`), cB('scrollbar-content', {
|
|
57
57
|
position: 'relative'
|
|
58
58
|
}), c('&:first-child', `
|
|
59
|
-
border-top-left-radius: var(--menu-border-radius);
|
|
60
|
-
border-bottom-left-radius: var(--menu-border-radius);
|
|
59
|
+
border-top-left-radius: var(--n-menu-border-radius);
|
|
60
|
+
border-bottom-left-radius: var(--n-menu-border-radius);
|
|
61
61
|
`), c('&:last-child', `
|
|
62
|
-
border-top-right-radius: var(--menu-border-radius);
|
|
63
|
-
border-bottom-right-radius: var(--menu-border-radius);
|
|
62
|
+
border-top-right-radius: var(--n-menu-border-radius);
|
|
63
|
+
border-bottom-right-radius: var(--n-menu-border-radius);
|
|
64
64
|
`), c('&:not(:first-child)', `
|
|
65
|
-
border-left: 1px solid var(--menu-divider-color);
|
|
65
|
+
border-left: 1px solid var(--n-menu-divider-color);
|
|
66
66
|
`)]), cB('cascader-menu-action', `
|
|
67
67
|
box-sizing: border-box;
|
|
68
68
|
padding: 8px;
|
|
69
|
-
border-top: 1px solid var(--menu-divider-color);
|
|
69
|
+
border-top: 1px solid var(--n-menu-divider-color);
|
|
70
70
|
`), cB('cascader-option', `
|
|
71
|
-
height: var(--option-height);
|
|
72
|
-
line-height: var(--option-height);
|
|
73
|
-
font-size: var(--option-font-size);
|
|
71
|
+
height: var(--n-option-height);
|
|
72
|
+
line-height: var(--n-option-height);
|
|
73
|
+
font-size: var(--n-option-font-size);
|
|
74
74
|
padding: 0 0 0 18px;
|
|
75
75
|
box-sizing: border-box;
|
|
76
76
|
min-width: 182px;
|
|
@@ -81,8 +81,8 @@ export default c([cB('cascader-menu', `
|
|
|
81
81
|
position: relative;
|
|
82
82
|
cursor: pointer;
|
|
83
83
|
transition:
|
|
84
|
-
background-color .2s var(--bezier),
|
|
85
|
-
color 0.2s var(--bezier);
|
|
84
|
+
background-color .2s var(--n-bezier),
|
|
85
|
+
color 0.2s var(--n-bezier);
|
|
86
86
|
`, [cM('show-prefix', {
|
|
87
87
|
paddingLeft: 0
|
|
88
88
|
}), cE('label', `
|
|
@@ -106,24 +106,24 @@ export default c([cB('cascader-menu', `
|
|
|
106
106
|
height: '16px',
|
|
107
107
|
fontSize: '16px'
|
|
108
108
|
}, [cB('cascader-option-icon', [cM('checkmark', {
|
|
109
|
-
color: 'var(--option-check-mark-color)'
|
|
109
|
+
color: 'var(--n-option-check-mark-color)'
|
|
110
110
|
}, [fadeInScaleUpTransition()]), cM('arrow', {
|
|
111
|
-
color: 'var(--option-arrow-color)'
|
|
111
|
+
color: 'var(--n-option-arrow-color)'
|
|
112
112
|
})])]), cM('selected', {
|
|
113
|
-
color: 'var(--option-text-color-active)'
|
|
113
|
+
color: 'var(--n-option-text-color-active)'
|
|
114
114
|
}), cM('active', {
|
|
115
|
-
color: 'var(--option-text-color-active)',
|
|
116
|
-
backgroundColor: 'var(--option-color-hover)'
|
|
115
|
+
color: 'var(--n-option-text-color-active)',
|
|
116
|
+
backgroundColor: 'var(--n-option-color-hover)'
|
|
117
117
|
}), cM('pending', {
|
|
118
|
-
backgroundColor: 'var(--option-color-hover)'
|
|
118
|
+
backgroundColor: 'var(--n-option-color-hover)'
|
|
119
119
|
}), c('&:hover', {
|
|
120
|
-
backgroundColor: 'var(--option-color-hover)'
|
|
120
|
+
backgroundColor: 'var(--n-option-color-hover)'
|
|
121
121
|
}), cM('disabled', `
|
|
122
|
-
color: var(--option-text-color-disabled);
|
|
122
|
+
color: var(--n-option-text-color-disabled);
|
|
123
123
|
background-color: #0000;
|
|
124
124
|
cursor: not-allowed;
|
|
125
125
|
`, [cB('cascader-option-icon', [cM('arrow', {
|
|
126
|
-
color: 'var(--option-text-color-disabled)'
|
|
126
|
+
color: 'var(--n-option-text-color-disabled)'
|
|
127
127
|
})])])])]), cB('cascader', `
|
|
128
128
|
z-index: auto;
|
|
129
129
|
position: relative;
|
|
@@ -12,7 +12,7 @@ export const self = (vars) => {
|
|
|
12
12
|
menuColor: popoverColor,
|
|
13
13
|
menuBoxShadow: boxShadow2,
|
|
14
14
|
menuDividerColor: dividerColor,
|
|
15
|
-
menuHeight: 'calc(var(--option-height) * 6.6)',
|
|
15
|
+
menuHeight: 'calc(var(--n-option-height) * 6.6)',
|
|
16
16
|
optionArrowColor: textColor3,
|
|
17
17
|
optionHeight: heightMedium,
|
|
18
18
|
optionFontSize: fontSizeMedium,
|
|
@@ -383,29 +383,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
383
383
|
handleKeyUp: (e: KeyboardEvent) => void;
|
|
384
384
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
385
385
|
cssVars: import("vue").ComputedRef<{
|
|
386
|
-
'--size': string;
|
|
387
|
-
'--bezier': string;
|
|
388
|
-
'--border-radius': string;
|
|
389
|
-
'--border': string;
|
|
390
|
-
'--border-checked': string;
|
|
391
|
-
'--border-focus': string;
|
|
392
|
-
'--border-disabled': string;
|
|
393
|
-
'--border-disabled-checked': string;
|
|
394
|
-
'--box-shadow-focus': string;
|
|
395
|
-
'--color': string;
|
|
396
|
-
'--color-checked': string;
|
|
397
|
-
'--color-table-header': string;
|
|
398
|
-
'--color-table-header-modal': string;
|
|
399
|
-
'--color-table-header-popover': string;
|
|
400
|
-
'--color-disabled': string;
|
|
401
|
-
'--color-disabled-checked': string;
|
|
402
|
-
'--text-color': string;
|
|
403
|
-
'--text-color-disabled': string;
|
|
404
|
-
'--check-mark-color': string;
|
|
405
|
-
'--check-mark-color-disabled': string;
|
|
406
|
-
'--check-mark-color-disabled-checked': string;
|
|
407
|
-
'--font-size': string;
|
|
408
|
-
'--label-padding': string;
|
|
386
|
+
'--n-size': string;
|
|
387
|
+
'--n-bezier': string;
|
|
388
|
+
'--n-border-radius': string;
|
|
389
|
+
'--n-border': string;
|
|
390
|
+
'--n-border-checked': string;
|
|
391
|
+
'--n-border-focus': string;
|
|
392
|
+
'--n-border-disabled': string;
|
|
393
|
+
'--n-border-disabled-checked': string;
|
|
394
|
+
'--n-box-shadow-focus': string;
|
|
395
|
+
'--n-color': string;
|
|
396
|
+
'--n-color-checked': string;
|
|
397
|
+
'--n-color-table-header': string;
|
|
398
|
+
'--n-color-table-header-modal': string;
|
|
399
|
+
'--n-color-table-header-popover': string;
|
|
400
|
+
'--n-color-disabled': string;
|
|
401
|
+
'--n-color-disabled-checked': string;
|
|
402
|
+
'--n-text-color': string;
|
|
403
|
+
'--n-text-color-disabled': string;
|
|
404
|
+
'--n-check-mark-color': string;
|
|
405
|
+
'--n-check-mark-color-disabled': string;
|
|
406
|
+
'--n-check-mark-color-disabled-checked': string;
|
|
407
|
+
'--n-font-size': string;
|
|
408
|
+
'--n-label-padding': string;
|
|
409
409
|
}>;
|
|
410
410
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
411
411
|
size?: unknown;
|
|
@@ -164,29 +164,29 @@ export default defineComponent({
|
|
|
164
164
|
const { value: mergedSize } = mergedSizeRef;
|
|
165
165
|
const { common: { cubicBezierEaseInOut }, self: { borderRadius, color, colorChecked, colorDisabled, colorTableHeader, colorTableHeaderModal, colorTableHeaderPopover, checkMarkColor, checkMarkColorDisabled, border, borderFocus, borderDisabled, borderChecked, boxShadowFocus, textColor, textColorDisabled, checkMarkColorDisabledChecked, colorDisabledChecked, borderDisabledChecked, labelPadding, [createKey('fontSize', mergedSize)]: fontSize, [createKey('size', mergedSize)]: size } } = themeRef.value;
|
|
166
166
|
return {
|
|
167
|
-
'--size': size,
|
|
168
|
-
'--bezier': cubicBezierEaseInOut,
|
|
169
|
-
'--border-radius': borderRadius,
|
|
170
|
-
'--border': border,
|
|
171
|
-
'--border-checked': borderChecked,
|
|
172
|
-
'--border-focus': borderFocus,
|
|
173
|
-
'--border-disabled': borderDisabled,
|
|
174
|
-
'--border-disabled-checked': borderDisabledChecked,
|
|
175
|
-
'--box-shadow-focus': boxShadowFocus,
|
|
176
|
-
'--color': color,
|
|
177
|
-
'--color-checked': colorChecked,
|
|
178
|
-
'--color-table-header': colorTableHeader,
|
|
179
|
-
'--color-table-header-modal': colorTableHeaderModal,
|
|
180
|
-
'--color-table-header-popover': colorTableHeaderPopover,
|
|
181
|
-
'--color-disabled': colorDisabled,
|
|
182
|
-
'--color-disabled-checked': colorDisabledChecked,
|
|
183
|
-
'--text-color': textColor,
|
|
184
|
-
'--text-color-disabled': textColorDisabled,
|
|
185
|
-
'--check-mark-color': checkMarkColor,
|
|
186
|
-
'--check-mark-color-disabled': checkMarkColorDisabled,
|
|
187
|
-
'--check-mark-color-disabled-checked': checkMarkColorDisabledChecked,
|
|
188
|
-
'--font-size': fontSize,
|
|
189
|
-
'--label-padding': labelPadding
|
|
167
|
+
'--n-size': size,
|
|
168
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
169
|
+
'--n-border-radius': borderRadius,
|
|
170
|
+
'--n-border': border,
|
|
171
|
+
'--n-border-checked': borderChecked,
|
|
172
|
+
'--n-border-focus': borderFocus,
|
|
173
|
+
'--n-border-disabled': borderDisabled,
|
|
174
|
+
'--n-border-disabled-checked': borderDisabledChecked,
|
|
175
|
+
'--n-box-shadow-focus': boxShadowFocus,
|
|
176
|
+
'--n-color': color,
|
|
177
|
+
'--n-color-checked': colorChecked,
|
|
178
|
+
'--n-color-table-header': colorTableHeader,
|
|
179
|
+
'--n-color-table-header-modal': colorTableHeaderModal,
|
|
180
|
+
'--n-color-table-header-popover': colorTableHeaderPopover,
|
|
181
|
+
'--n-color-disabled': colorDisabled,
|
|
182
|
+
'--n-color-disabled-checked': colorDisabledChecked,
|
|
183
|
+
'--n-text-color': textColor,
|
|
184
|
+
'--n-text-color-disabled': textColorDisabled,
|
|
185
|
+
'--n-check-mark-color': checkMarkColor,
|
|
186
|
+
'--n-check-mark-color-disabled': checkMarkColorDisabled,
|
|
187
|
+
'--n-check-mark-color-disabled-checked': checkMarkColorDisabledChecked,
|
|
188
|
+
'--n-font-size': fontSize,
|
|
189
|
+
'--n-label-padding': labelPadding
|
|
190
190
|
};
|
|
191
191
|
})
|
|
192
192
|
});
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { c, cB, cE, cM, insideModal, insidePopover } from '../../../_utils/cssr';
|
|
2
2
|
import iconSwitchTransition from '../../../_styles/transitions/icon-switch.cssr'; // vars:
|
|
3
|
-
// --bezier
|
|
4
|
-
// --size
|
|
5
|
-
// --border
|
|
6
|
-
// --border-focus
|
|
7
|
-
// --border-checked
|
|
8
|
-
// --border-disabled
|
|
9
|
-
// --border-disabled-checked
|
|
10
|
-
// --box-shadow-focus
|
|
11
|
-
// --color
|
|
12
|
-
// --color-checked
|
|
13
|
-
// --color-table-header
|
|
14
|
-
// --color-table-header-modal
|
|
15
|
-
// --color-disabled
|
|
16
|
-
// --color-disabled-checked
|
|
17
|
-
// --text-color
|
|
18
|
-
// --text-color-disabled
|
|
19
|
-
// --check-mark-color
|
|
20
|
-
// --check-mark-color-disabled
|
|
21
|
-
// --check-mark-color-disabled-checked
|
|
22
|
-
// --border-radius
|
|
23
|
-
// --font-size
|
|
24
|
-
// --label-padding
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-size
|
|
5
|
+
// --n-border
|
|
6
|
+
// --n-border-focus
|
|
7
|
+
// --n-border-checked
|
|
8
|
+
// --n-border-disabled
|
|
9
|
+
// --n-border-disabled-checked
|
|
10
|
+
// --n-box-shadow-focus
|
|
11
|
+
// --n-color
|
|
12
|
+
// --n-color-checked
|
|
13
|
+
// --n-color-table-header
|
|
14
|
+
// --n-color-table-header-modal
|
|
15
|
+
// --n-color-disabled
|
|
16
|
+
// --n-color-disabled-checked
|
|
17
|
+
// --n-text-color
|
|
18
|
+
// --n-text-color-disabled
|
|
19
|
+
// --n-check-mark-color
|
|
20
|
+
// --n-check-mark-color-disabled
|
|
21
|
+
// --n-check-mark-color-disabled-checked
|
|
22
|
+
// --n-border-radius
|
|
23
|
+
// --n-font-size
|
|
24
|
+
// --n-label-padding
|
|
25
25
|
|
|
26
26
|
export default c([cB('checkbox', `
|
|
27
27
|
line-height: 1;
|
|
28
|
-
font-size: var(--font-size);
|
|
28
|
+
font-size: var(--n-font-size);
|
|
29
29
|
outline: none;
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
display: inline-flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
white-space: nowrap;
|
|
34
34
|
vertical-align: middle;
|
|
35
|
-
--merged-color-table-header: var(--color-table-header);
|
|
35
|
+
--n-merged-color-table-header: var(--n-color-table-header);
|
|
36
36
|
`, [c('&:hover', [cB('checkbox-box', [cE('border', {
|
|
37
|
-
border: 'var(--border-checked)'
|
|
37
|
+
border: 'var(--n-border-checked)'
|
|
38
38
|
})])]), c('&:focus:not(:active)', [cB('checkbox-box', [cE('border', {
|
|
39
|
-
border: 'var(--border-focus)',
|
|
40
|
-
boxShadow: 'var(--box-shadow-focus)'
|
|
39
|
+
border: 'var(--n-border-focus)',
|
|
40
|
+
boxShadow: 'var(--n-box-shadow-focus)'
|
|
41
41
|
})])]), cM('table-header', [cB('checkbox-box', {
|
|
42
|
-
backgroundColor: 'var(--merged-color-table-header)'
|
|
42
|
+
backgroundColor: 'var(--n-merged-color-table-header)'
|
|
43
43
|
})]), cM('checked', [cB('checkbox-box', {
|
|
44
|
-
backgroundColor: 'var(--color-checked)'
|
|
44
|
+
backgroundColor: 'var(--n-color-checked)'
|
|
45
45
|
}, [cB('checkbox-icon', [// if not set width to 100%, safari & old chrome won't display the icon
|
|
46
46
|
c('.check-icon', `
|
|
47
47
|
width: 100%;
|
|
@@ -54,51 +54,51 @@ c('.check-icon', `
|
|
|
54
54
|
opacity: 1;
|
|
55
55
|
transform: scale(1);
|
|
56
56
|
`)])])]), cM('checked, indeterminate', [c('&:focus:not(:active)', [cB('checkbox-box', [cE('border', {
|
|
57
|
-
border: 'var(--border-checked)',
|
|
58
|
-
boxShadow: 'var(--box-shadow-focus)'
|
|
57
|
+
border: 'var(--n-border-checked)',
|
|
58
|
+
boxShadow: 'var(--n-box-shadow-focus)'
|
|
59
59
|
})])]), cB('checkbox-box', `
|
|
60
|
-
background-color: var(--color-checked);
|
|
60
|
+
background-color: var(--n-color-checked);
|
|
61
61
|
border-left: 0;
|
|
62
62
|
border-top: 0;
|
|
63
63
|
`, [cE('border', {
|
|
64
|
-
border: 'var(--border-checked)'
|
|
64
|
+
border: 'var(--n-border-checked)'
|
|
65
65
|
})])]), cM('disabled', {
|
|
66
66
|
cursor: 'not-allowed'
|
|
67
67
|
}, [cM('checked', [cB('checkbox-box', `
|
|
68
|
-
background-color: var(--color-disabled-checked);
|
|
68
|
+
background-color: var(--n-color-disabled-checked);
|
|
69
69
|
`, [cE('border', {
|
|
70
|
-
border: 'var(--border-disabled-checked)'
|
|
70
|
+
border: 'var(--n-border-disabled-checked)'
|
|
71
71
|
}), cB('checkbox-icon', [c('.check-icon, .line-icon', {
|
|
72
|
-
fill: 'var(--check-mark-color-disabled-checked)'
|
|
72
|
+
fill: 'var(--n-check-mark-color-disabled-checked)'
|
|
73
73
|
})])])]), cB('checkbox-box', `
|
|
74
|
-
background-color: var(--color-disabled);
|
|
74
|
+
background-color: var(--n-color-disabled);
|
|
75
75
|
`, [cE('border', {
|
|
76
|
-
border: 'var(--border-disabled)'
|
|
76
|
+
border: 'var(--n-border-disabled)'
|
|
77
77
|
}), cB('checkbox-icon', [c('.check-icon, .line-icon', {
|
|
78
|
-
fill: 'var(--check-mark-color-disabled)'
|
|
78
|
+
fill: 'var(--n-check-mark-color-disabled)'
|
|
79
79
|
})])]), cE('label', {
|
|
80
|
-
color: 'var(--text-color-disabled)'
|
|
80
|
+
color: 'var(--n-text-color-disabled)'
|
|
81
81
|
})]), cB('checkbox-box', `
|
|
82
|
-
height: var(--size);
|
|
83
|
-
width: var(--size);
|
|
82
|
+
height: var(--n-size);
|
|
83
|
+
width: var(--n-size);
|
|
84
84
|
display: inline-block;
|
|
85
85
|
box-sizing: border-box;
|
|
86
|
-
border-radius: var(--border-radius);
|
|
87
|
-
background-color: var(--color);
|
|
86
|
+
border-radius: var(--n-border-radius);
|
|
87
|
+
background-color: var(--n-color);
|
|
88
88
|
position: relative;
|
|
89
89
|
transition:
|
|
90
|
-
background-color 0.3s var(--bezier);
|
|
90
|
+
background-color 0.3s var(--n-bezier);
|
|
91
91
|
`, [cE('border', `
|
|
92
92
|
transition:
|
|
93
|
-
border-color .3s var(--bezier),
|
|
94
|
-
box-shadow .3s var(--bezier);
|
|
93
|
+
border-color .3s var(--n-bezier),
|
|
94
|
+
box-shadow .3s var(--n-bezier);
|
|
95
95
|
border-radius: inherit;
|
|
96
96
|
position: absolute;
|
|
97
97
|
left: 0;
|
|
98
98
|
right: 0;
|
|
99
99
|
top: 0;
|
|
100
100
|
bottom: 0;
|
|
101
|
-
border: var(--border);
|
|
101
|
+
border: var(--n-border);
|
|
102
102
|
`), cB('checkbox-icon', `
|
|
103
103
|
display: flex;
|
|
104
104
|
align-items: center;
|
|
@@ -109,29 +109,29 @@ c('.check-icon', `
|
|
|
109
109
|
top: 1px;
|
|
110
110
|
bottom: 1px;
|
|
111
111
|
`, [c('.check-icon, .line-icon', `
|
|
112
|
-
fill: var(--check-mark-color);
|
|
112
|
+
fill: var(--n-check-mark-color);
|
|
113
113
|
opacity: 0;
|
|
114
114
|
transform: scale(0.5);
|
|
115
115
|
transform-origin: center;
|
|
116
116
|
transition:
|
|
117
|
-
fill 0.3s var(--bezier),
|
|
118
|
-
transform 0.3s var(--bezier),
|
|
119
|
-
opacity 0.3s var(--bezier),
|
|
120
|
-
border-color 0.3s var(--bezier);
|
|
117
|
+
fill 0.3s var(--n-bezier),
|
|
118
|
+
transform 0.3s var(--n-bezier),
|
|
119
|
+
opacity 0.3s var(--n-bezier),
|
|
120
|
+
border-color 0.3s var(--n-bezier);
|
|
121
121
|
`), iconSwitchTransition({
|
|
122
122
|
left: '1px',
|
|
123
123
|
top: '1px'
|
|
124
124
|
})])]), cE('label', `
|
|
125
|
-
color: var(--text-color);
|
|
126
|
-
transition: color .3s var(--bezier);
|
|
125
|
+
color: var(--n-text-color);
|
|
126
|
+
transition: color .3s var(--n-bezier);
|
|
127
127
|
user-select: none;
|
|
128
|
-
padding: var(--label-padding);
|
|
128
|
+
padding: var(--n-label-padding);
|
|
129
129
|
`, [c('&:empty', {
|
|
130
130
|
display: 'none'
|
|
131
131
|
})])]), // modal table header checkbox
|
|
132
132
|
insideModal(cB('checkbox', `
|
|
133
|
-
--merged-color-table-header: var(--color-table-header-modal);
|
|
133
|
+
--n-merged-color-table-header: var(--n-color-table-header-modal);
|
|
134
134
|
`)), // popover table header checkbox
|
|
135
135
|
insidePopover(cB('checkbox', `
|
|
136
|
-
--merged-color-table-header: var(--color-table-header-popover);
|
|
136
|
+
--n-merged-color-table-header: var(--n-color-table-header-popover);
|
|
137
137
|
`))]);
|