naive-ui 2.21.5 → 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 +8 -8
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/es/_internal/scrollbar/src/ScrollBar.js +15 -11
- 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 +55 -53
- package/es/_internal/selection/src/styles/index.cssr.js +84 -80
- package/es/_mixins/common.d.ts +1 -0
- package/es/_mixins/common.js +1 -0
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_mixins/use-css-vars-class.d.ts +2 -0
- package/es/_mixins/use-css-vars-class.js +22 -0
- package/es/_mixins/use-rtl.js +2 -0
- package/es/_mixins/use-style.js +3 -0
- package/es/_mixins/use-theme.js +3 -0
- package/es/_utils/composable/use-houdini.js +12 -9
- package/es/alert/src/Alert.d.ts +22 -22
- package/es/alert/src/Alert.js +22 -22
- package/es/alert/src/styles/index.cssr.js +45 -45
- package/es/anchor/src/AnchorAdapter.js +12 -12
- package/es/anchor/src/styles/index.cssr.js +41 -41
- package/es/auto-complete/src/AutoComplete.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +77 -36
- package/es/avatar/src/Avatar.js +46 -16
- 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 +21 -18
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- package/es/back-top/src/BackTop.d.ts +13 -13
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/badge/src/Badge.d.ts +6 -6
- package/es/badge/src/Badge.js +6 -6
- package/es/badge/src/styles/index.cssr.js +15 -15
- package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/es/breadcrumb/src/Breadcrumb.js +8 -8
- package/es/breadcrumb/src/styles/index.cssr.js +23 -23
- package/es/button/src/Button.d.ts +43 -38
- package/es/button/src/Button.js +124 -116
- package/es/button/src/styles/button.cssr.js +83 -80
- package/es/button/styles/light.js +1 -1
- package/es/calendar/src/Calendar.d.ts +23 -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 +160 -17
- package/es/cascader/src/Cascader.js +32 -24
- package/es/cascader/src/CascaderMenu.d.ts +345 -0
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderOption.d.ts +18 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/dark.js +3 -1
- package/es/cascader/styles/light.d.ts +13 -0
- package/es/cascader/styles/light.js +4 -2
- 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/config-provider/src/ConfigProvider.d.ts +6 -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 +49 -55
- package/es/data-table/src/MainTable.js +2 -3
- package/es/data-table/src/TableParts/Body.d.ts +15 -4
- package/es/data-table/src/TableParts/Body.js +82 -28
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +2 -2
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +133 -132
- package/es/data-table/src/use-check.js +6 -2
- package/es/data-table/src/use-scroll.d.ts +2 -0
- package/es/data-table/src/use-scroll.js +34 -4
- package/es/data-table/src/use-table-data.js +3 -1
- package/es/data-table/styles/_common.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +70 -46
- package/es/date-picker/src/DatePicker.js +61 -52
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +2 -1
- package/es/date-picker/src/panel/date.d.ts +13 -10
- package/es/date-picker/src/panel/date.js +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +11 -9
- package/es/date-picker/src/panel/daterange.js +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +13 -16
- package/es/date-picker/src/panel/datetime.js +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/es/date-picker/src/panel/datetimerange.js +2 -2
- package/es/date-picker/src/panel/month.d.ts +17 -20
- package/es/date-picker/src/panel/month.js +23 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/es/date-picker/src/panel/use-calendar.js +41 -23
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/es/date-picker/src/panel/use-dual-calendar.js +35 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/es/date-picker/src/panel/use-panel-common.js +4 -8
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/date-picker/src/utils.d.ts +19 -3
- package/es/date-picker/src/utils.js +40 -5
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +4 -0
- package/es/descriptions/src/Descriptions.d.ts +18 -18
- package/es/descriptions/src/Descriptions.js +19 -20
- package/es/descriptions/src/styles/index.cssr.js +61 -61
- package/es/dialog/src/Dialog.d.ts +24 -24
- package/es/dialog/src/Dialog.js +22 -22
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/divider/src/Divider.js +4 -4
- package/es/divider/src/styles/index.cssr.js +12 -12
- package/es/drawer/src/Drawer.d.ts +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/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/empty/src/Empty.d.ts +19 -15
- package/es/empty/src/Empty.js +12 -12
- package/es/empty/src/styles/index.cssr.js +20 -19
- package/es/form/src/Form.d.ts +27 -27
- package/es/form/src/FormItem.d.ts +42 -42
- package/es/form/src/FormItem.js +15 -15
- package/es/form/src/FormItemCol.d.ts +33 -27
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +33 -27
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +33 -27
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/styles/form-item.cssr.js +37 -37
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +9 -9
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon/src/Icon.js +4 -4
- package/es/icon/src/styles/index.cssr.js +7 -7
- package/es/image/src/Image.js +8 -12
- 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/deDE.js +2 -0
- package/es/locales/common/enUS.d.ts +2 -0
- package/es/locales/common/enUS.js +2 -0
- package/es/locales/common/frFR.js +7 -5
- package/es/locales/common/idID.js +2 -0
- package/es/locales/common/jaJP.js +2 -0
- package/es/locales/common/nbNO.js +2 -0
- package/es/locales/common/ruRU.js +2 -0
- package/es/locales/common/ukUA.js +2 -0
- package/es/locales/common/zhCN.js +2 -0
- package/es/locales/common/zhTW.d.ts +3 -0
- package/es/locales/common/zhTW.js +100 -0
- package/es/locales/date/zhTW.d.ts +3 -0
- package/es/locales/date/zhTW.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/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 +13 -13
- package/es/page-header/src/styles/index.cssr.js +25 -27
- 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/Popover.js +4 -1
- package/es/popover/src/PopoverBody.js +18 -18
- package/es/popover/src/styles/index.cssr.js +62 -62
- package/es/popselect/src/Popselect.d.ts +2 -11
- package/es/popselect/src/Popselect.js +2 -2
- package/es/popselect/src/PopselectPanel.d.ts +3 -11
- package/es/popselect/src/PopselectPanel.js +17 -11
- 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 +18 -18
- package/es/radio/src/RadioButton.js +4 -5
- 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 +51 -47
- package/es/radio/src/styles/radio.cssr.js +44 -40
- package/es/radio/src/use-radio.d.ts +0 -3
- package/es/radio/src/use-radio.js +1 -26
- 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/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +26 -19
- package/es/switch/src/styles/index.cssr.js +59 -57
- package/es/table/src/Table.d.ts +21 -21
- package/es/table/src/Table.js +21 -21
- package/es/table/src/styles/index.cssr.js +55 -55
- package/es/tabs/src/styles/index.cssr.js +5 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +27 -26
- package/es/tag/src/Tag.js +27 -26
- package/es/tag/src/styles/index.cssr.js +55 -55
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/thing/src/Thing.js +5 -5
- package/es/thing/src/styles/index.cssr.js +11 -11
- package/es/time-picker/src/TimePicker.d.ts +19 -19
- package/es/time-picker/src/TimePicker.js +17 -17
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/transfer/src/Transfer.d.ts +21 -21
- package/es/transfer/src/Transfer.js +21 -21
- package/es/transfer/src/TransferList.js +5 -7
- package/es/transfer/src/styles/index.cssr.js +47 -42
- package/es/tree/src/Tree.d.ts +11 -11
- package/es/tree/src/Tree.js +11 -11
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/styles/index.cssr.js +33 -33
- package/es/tree-select/src/TreeSelect.d.ts +43 -6
- package/es/tree-select/src/TreeSelect.js +29 -14
- package/es/tree-select/src/styles/index.cssr.js +20 -11
- package/es/tree-select/styles/light.d.ts +6 -0
- package/es/tree-select/styles/light.js +5 -2
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/a.js +2 -2
- package/es/typography/src/blockquote.d.ts +5 -5
- package/es/typography/src/blockquote.js +5 -5
- package/es/typography/src/create-header.d.ts +8 -8
- package/es/typography/src/create-header.js +8 -8
- package/es/typography/src/headers.d.ts +48 -48
- package/es/typography/src/hr.d.ts +2 -1
- package/es/typography/src/hr.js +3 -1
- package/es/typography/src/ol.d.ts +7 -7
- package/es/typography/src/ol.js +7 -7
- package/es/typography/src/p.d.ts +5 -5
- package/es/typography/src/p.js +5 -5
- package/es/typography/src/styles/a.cssr.js +6 -6
- package/es/typography/src/styles/blockquote.cssr.js +11 -11
- package/es/typography/src/styles/header.cssr.js +19 -19
- package/es/typography/src/styles/hr.cssr.js +3 -3
- package/es/typography/src/styles/list.cssr.js +15 -15
- package/es/typography/src/styles/p.cssr.js +10 -10
- package/es/typography/src/styles/text.cssr.js +18 -18
- package/es/typography/src/text.d.ts +8 -7
- package/es/typography/src/text.js +9 -8
- package/es/typography/src/ul.d.ts +7 -7
- package/es/typography/src/ul.js +7 -7
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +16 -16
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
- package/lib/_internal/close/src/styles/index.cssr.js +8 -8
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/lib/_internal/scrollbar/src/ScrollBar.js +15 -11
- 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 +55 -53
- package/lib/_internal/selection/src/styles/index.cssr.js +84 -80
- package/lib/_mixins/common.d.ts +1 -0
- package/lib/_mixins/common.js +4 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_mixins/use-css-vars-class.d.ts +2 -0
- package/lib/_mixins/use-css-vars-class.js +29 -0
- package/lib/_mixins/use-rtl.js +2 -0
- package/lib/_mixins/use-style.js +3 -0
- package/lib/_mixins/use-theme.js +3 -0
- package/lib/_utils/composable/use-houdini.js +12 -9
- package/lib/alert/src/Alert.d.ts +22 -22
- package/lib/alert/src/Alert.js +22 -22
- package/lib/alert/src/styles/index.cssr.js +45 -45
- package/lib/anchor/src/AnchorAdapter.js +12 -12
- package/lib/anchor/src/styles/index.cssr.js +41 -41
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +77 -36
- package/lib/avatar/src/Avatar.js +48 -17
- 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 +20 -17
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- package/lib/back-top/src/BackTop.d.ts +13 -13
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/badge/src/Badge.d.ts +6 -6
- package/lib/badge/src/Badge.js +6 -6
- package/lib/badge/src/styles/index.cssr.js +15 -15
- package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/lib/breadcrumb/src/Breadcrumb.js +8 -8
- package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
- package/lib/button/src/Button.d.ts +43 -38
- package/lib/button/src/Button.js +123 -115
- package/lib/button/src/styles/button.cssr.js +83 -80
- package/lib/button/styles/light.js +1 -1
- package/lib/calendar/src/Calendar.d.ts +23 -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 +160 -17
- package/lib/cascader/src/Cascader.js +32 -24
- package/lib/cascader/src/CascaderMenu.d.ts +345 -0
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderOption.d.ts +18 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/dark.js +3 -1
- package/lib/cascader/styles/light.d.ts +13 -0
- package/lib/cascader/styles/light.js +4 -2
- 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/config-provider/src/ConfigProvider.d.ts +6 -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 +48 -54
- package/lib/data-table/src/MainTable.js +1 -2
- package/lib/data-table/src/TableParts/Body.d.ts +15 -4
- package/lib/data-table/src/TableParts/Body.js +80 -26
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +2 -2
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -132
- package/lib/data-table/src/use-check.js +6 -2
- package/lib/data-table/src/use-scroll.d.ts +2 -0
- package/lib/data-table/src/use-scroll.js +34 -4
- package/lib/data-table/src/use-table-data.js +3 -1
- package/lib/data-table/styles/_common.js +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +70 -46
- package/lib/date-picker/src/DatePicker.js +61 -52
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +2 -1
- package/lib/date-picker/src/panel/date.d.ts +13 -10
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +11 -9
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +13 -16
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +17 -20
- package/lib/date-picker/src/panel/month.js +23 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/lib/date-picker/src/panel/use-calendar.js +40 -21
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/lib/date-picker/src/panel/use-dual-calendar.js +34 -19
- package/lib/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/lib/date-picker/src/panel/use-panel-common.js +5 -8
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/date-picker/src/utils.d.ts +19 -3
- package/lib/date-picker/src/utils.js +41 -4
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +4 -0
- package/lib/descriptions/src/Descriptions.d.ts +18 -18
- package/lib/descriptions/src/Descriptions.js +19 -20
- package/lib/descriptions/src/styles/index.cssr.js +61 -61
- package/lib/dialog/src/Dialog.d.ts +24 -24
- package/lib/dialog/src/Dialog.js +22 -22
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/divider/src/Divider.js +4 -4
- package/lib/divider/src/styles/index.cssr.js +12 -12
- package/lib/drawer/src/Drawer.d.ts +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/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/empty/src/Empty.d.ts +19 -15
- package/lib/empty/src/Empty.js +12 -12
- package/lib/empty/src/styles/index.cssr.js +19 -18
- package/lib/form/src/Form.d.ts +27 -27
- package/lib/form/src/FormItem.d.ts +42 -42
- package/lib/form/src/FormItem.js +15 -15
- package/lib/form/src/FormItemCol.d.ts +33 -27
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +33 -27
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +33 -27
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/styles/form-item.cssr.js +37 -37
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +9 -9
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon/src/Icon.js +4 -4
- package/lib/icon/src/styles/index.cssr.js +7 -7
- package/lib/image/src/Image.js +7 -11
- 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/deDE.js +2 -0
- package/lib/locales/common/enUS.d.ts +2 -0
- package/lib/locales/common/enUS.js +2 -0
- package/lib/locales/common/frFR.js +7 -5
- package/lib/locales/common/idID.js +2 -0
- package/lib/locales/common/jaJP.js +2 -0
- package/lib/locales/common/nbNO.js +2 -0
- package/lib/locales/common/ruRU.js +2 -0
- package/lib/locales/common/ukUA.js +2 -0
- package/lib/locales/common/zhCN.js +2 -0
- package/lib/locales/common/zhTW.d.ts +3 -0
- package/lib/locales/common/zhTW.js +102 -0
- package/lib/locales/date/zhTW.d.ts +3 -0
- package/lib/locales/date/zhTW.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +1 -1
- package/lib/mention/src/styles/index.cssr.js +2 -2
- package/lib/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 +13 -13
- package/lib/page-header/src/styles/index.cssr.js +25 -27
- 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/Popover.js +4 -1
- package/lib/popover/src/PopoverBody.js +18 -18
- package/lib/popover/src/styles/index.cssr.js +62 -62
- package/lib/popselect/src/Popselect.d.ts +2 -11
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +3 -11
- package/lib/popselect/src/PopselectPanel.js +16 -10
- 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 +18 -18
- package/lib/radio/src/RadioButton.js +4 -5
- 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 +51 -47
- package/lib/radio/src/styles/radio.cssr.js +44 -40
- package/lib/radio/src/use-radio.d.ts +0 -3
- package/lib/radio/src/use-radio.js +1 -26
- 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/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +26 -19
- package/lib/switch/src/styles/index.cssr.js +59 -57
- package/lib/table/src/Table.d.ts +21 -21
- package/lib/table/src/Table.js +21 -21
- package/lib/table/src/styles/index.cssr.js +55 -55
- package/lib/tabs/src/styles/index.cssr.js +5 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +27 -26
- package/lib/tag/src/Tag.js +27 -26
- package/lib/tag/src/styles/index.cssr.js +55 -55
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/thing/src/Thing.js +5 -5
- package/lib/thing/src/styles/index.cssr.js +11 -11
- package/lib/time-picker/src/TimePicker.d.ts +19 -19
- package/lib/time-picker/src/TimePicker.js +17 -17
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/transfer/src/Transfer.d.ts +21 -21
- package/lib/transfer/src/Transfer.js +21 -21
- package/lib/transfer/src/TransferList.js +5 -7
- package/lib/transfer/src/styles/index.cssr.js +47 -42
- package/lib/tree/src/Tree.d.ts +11 -11
- package/lib/tree/src/Tree.js +11 -11
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/styles/index.cssr.js +33 -33
- package/lib/tree-select/src/TreeSelect.d.ts +43 -6
- package/lib/tree-select/src/TreeSelect.js +28 -13
- package/lib/tree-select/src/styles/index.cssr.js +20 -11
- package/lib/tree-select/styles/light.d.ts +6 -0
- package/lib/tree-select/styles/light.js +5 -2
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/a.js +2 -2
- package/lib/typography/src/blockquote.d.ts +5 -5
- package/lib/typography/src/blockquote.js +5 -5
- package/lib/typography/src/create-header.d.ts +8 -8
- package/lib/typography/src/create-header.js +8 -8
- package/lib/typography/src/headers.d.ts +48 -48
- package/lib/typography/src/hr.d.ts +2 -1
- package/lib/typography/src/hr.js +3 -1
- package/lib/typography/src/ol.d.ts +7 -7
- package/lib/typography/src/ol.js +7 -7
- package/lib/typography/src/p.d.ts +5 -5
- package/lib/typography/src/p.js +5 -5
- package/lib/typography/src/styles/a.cssr.js +6 -6
- package/lib/typography/src/styles/blockquote.cssr.js +11 -11
- package/lib/typography/src/styles/header.cssr.js +19 -19
- package/lib/typography/src/styles/hr.cssr.js +3 -3
- package/lib/typography/src/styles/list.cssr.js +15 -15
- package/lib/typography/src/styles/p.cssr.js +10 -10
- package/lib/typography/src/styles/text.cssr.js +18 -18
- package/lib/typography/src/text.d.ts +8 -7
- package/lib/typography/src/text.js +9 -8
- package/lib/typography/src/ul.d.ts +7 -7
- package/lib/typography/src/ul.js +7 -7
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +16 -16
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +38 -36
- package/web-types.json +252 -11
|
@@ -15,19 +15,19 @@ const cssr_1 = require("../../../_utils/cssr");
|
|
|
15
15
|
const icon_switch_cssr_1 = __importDefault(require("../../../_styles/transitions/icon-switch.cssr"));
|
|
16
16
|
|
|
17
17
|
const fade_in_height_expand_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-height-expand.cssr")); // vars:
|
|
18
|
-
// --arrow-color
|
|
19
|
-
// --bezier
|
|
20
|
-
// --font-size
|
|
21
|
-
// --node-border-radius
|
|
22
|
-
// --node-color-active
|
|
23
|
-
// --node-color-hover
|
|
24
|
-
// --node-color-pressed
|
|
25
|
-
// --node-text-color
|
|
26
|
-
// --node-text-color-disabled
|
|
18
|
+
// --n-arrow-color
|
|
19
|
+
// --n-bezier
|
|
20
|
+
// --n-font-size
|
|
21
|
+
// --n-node-border-radius
|
|
22
|
+
// --n-node-color-active
|
|
23
|
+
// --n-node-color-hover
|
|
24
|
+
// --n-node-color-pressed
|
|
25
|
+
// --n-node-text-color
|
|
26
|
+
// --n-node-text-color-disabled
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
exports.default = (0, cssr_1.cB)('tree', `
|
|
30
|
-
font-size: var(--font-size);
|
|
30
|
+
font-size: var(--n-font-size);
|
|
31
31
|
outline: none;
|
|
32
32
|
`, [(0, cssr_1.c)('ul, li', `
|
|
33
33
|
margin: 0;
|
|
@@ -47,33 +47,33 @@ exports.default = (0, cssr_1.cB)('tree', `
|
|
|
47
47
|
`), (0, cssr_1.cB)('tree-node', `
|
|
48
48
|
position: relative;
|
|
49
49
|
display: flex;
|
|
50
|
-
border-radius: var(--node-border-radius);
|
|
51
|
-
transition: background-color .3s var(--bezier);
|
|
50
|
+
border-radius: var(--n-node-border-radius);
|
|
51
|
+
transition: background-color .3s var(--n-bezier);
|
|
52
52
|
`, [(0, cssr_1.cM)('highlight', [(0, cssr_1.cB)('tree-node-content', [(0, cssr_1.cE)('text', {
|
|
53
|
-
borderBottomColor: 'var(--node-text-color-disabled)'
|
|
53
|
+
borderBottomColor: 'var(--n-node-text-color-disabled)'
|
|
54
54
|
})])]), (0, cssr_1.cM)('disabled', [(0, cssr_1.cB)('tree-node-content', `
|
|
55
|
-
color: var(--node-text-color-disabled);
|
|
55
|
+
color: var(--n-node-text-color-disabled);
|
|
56
56
|
cursor: not-allowed;
|
|
57
57
|
`)]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('selectable', [(0, cssr_1.cB)('tree-node-content', `
|
|
58
58
|
cursor: pointer;
|
|
59
59
|
`)])])]), (0, cssr_1.cM)('block-node', [(0, cssr_1.cB)('tree-node-content', `
|
|
60
60
|
width: 100%;
|
|
61
61
|
`)]), (0, cssr_1.cNotM)('block-line', [(0, cssr_1.cB)('tree-node', [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.cB)('tree-node-content', [(0, cssr_1.c)('&:hover', {
|
|
62
|
-
backgroundColor: 'var(--node-color-hover)'
|
|
62
|
+
backgroundColor: 'var(--n-node-color-hover)'
|
|
63
63
|
})]), (0, cssr_1.cM)('selectable', [(0, cssr_1.cB)('tree-node-content', [(0, cssr_1.c)('&:active', {
|
|
64
|
-
backgroundColor: 'var(--node-color-pressed)'
|
|
64
|
+
backgroundColor: 'var(--n-node-color-pressed)'
|
|
65
65
|
})])]), (0, cssr_1.cM)('pending', [(0, cssr_1.cB)('tree-node-content', `
|
|
66
|
-
background-color: var(--node-color-hover);
|
|
66
|
+
background-color: var(--n-node-color-hover);
|
|
67
67
|
`)]), (0, cssr_1.cM)('selected', [(0, cssr_1.cB)('tree-node-content', {
|
|
68
|
-
backgroundColor: 'var(--node-color-active)'
|
|
68
|
+
backgroundColor: 'var(--n-node-color-active)'
|
|
69
69
|
})])])])]), (0, cssr_1.cM)('block-line', [(0, cssr_1.cB)('tree-node', [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', {
|
|
70
|
-
backgroundColor: 'var(--node-color-hover)'
|
|
70
|
+
backgroundColor: 'var(--n-node-color-hover)'
|
|
71
71
|
}), (0, cssr_1.cM)('selectable', [(0, cssr_1.c)('&:active', {
|
|
72
|
-
backgroundColor: 'var(--node-color-pressed)'
|
|
72
|
+
backgroundColor: 'var(--n-node-color-pressed)'
|
|
73
73
|
})]), (0, cssr_1.cM)('pending', `
|
|
74
|
-
background-color: var(--node-color-hover);
|
|
74
|
+
background-color: var(--n-node-color-hover);
|
|
75
75
|
`), (0, cssr_1.cM)('selected', {
|
|
76
|
-
backgroundColor: 'var(--node-color-active)'
|
|
76
|
+
backgroundColor: 'var(--n-node-color-active)'
|
|
77
77
|
})]), (0, cssr_1.cM)('disabled', `
|
|
78
78
|
cursor: not-allowed;
|
|
79
79
|
`)])]), (0, cssr_1.cB)('tree-node-switcher', `
|
|
@@ -84,18 +84,18 @@ exports.default = (0, cssr_1.cB)('tree', `
|
|
|
84
84
|
width: 24px;
|
|
85
85
|
align-items: center;
|
|
86
86
|
justify-content: center;
|
|
87
|
-
transition: transform .15s var(--bezier);
|
|
87
|
+
transition: transform .15s var(--n-bezier);
|
|
88
88
|
vertical-align: bottom;
|
|
89
89
|
`, [(0, cssr_1.cE)('icon', `
|
|
90
90
|
position: relative;
|
|
91
91
|
height: 14px;
|
|
92
92
|
width: 14px;
|
|
93
93
|
display: flex;
|
|
94
|
-
color: var(--arrow-color);
|
|
95
|
-
transition: color .3s var(--bezier);
|
|
94
|
+
color: var(--n-arrow-color);
|
|
95
|
+
transition: color .3s var(--n-bezier);
|
|
96
96
|
font-size: 14px;
|
|
97
97
|
`, [(0, cssr_1.cB)('icon', [(0, icon_switch_cssr_1.default)()]), (0, cssr_1.cB)('base-loading', `
|
|
98
|
-
color: var(--loading-color);
|
|
98
|
+
color: var(--n-loading-color);
|
|
99
99
|
position: absolute;
|
|
100
100
|
left: 0;
|
|
101
101
|
top: 0;
|
|
@@ -123,15 +123,15 @@ exports.default = (0, cssr_1.cB)('tree', `
|
|
|
123
123
|
vertical-align: bottom;
|
|
124
124
|
padding: 0 6px;
|
|
125
125
|
cursor: default;
|
|
126
|
-
border-radius: var(--node-border-radius);
|
|
126
|
+
border-radius: var(--n-node-border-radius);
|
|
127
127
|
text-decoration-color: #0000;
|
|
128
128
|
text-decoration-line: underline;
|
|
129
|
-
color: var(--node-text-color);
|
|
129
|
+
color: var(--n-node-text-color);
|
|
130
130
|
transition:
|
|
131
|
-
color .3s var(--bezier),
|
|
132
|
-
text-decoration-color .3s var(--bezier),
|
|
133
|
-
background-color .3s var(--bezier),
|
|
134
|
-
border-color .3s var(--bezier);
|
|
131
|
+
color .3s var(--n-bezier),
|
|
132
|
+
text-decoration-color .3s var(--n-bezier),
|
|
133
|
+
background-color .3s var(--n-bezier),
|
|
134
|
+
border-color .3s var(--n-bezier);
|
|
135
135
|
`, [(0, cssr_1.c)('&:last-child', {
|
|
136
136
|
marginBottom: 0
|
|
137
137
|
}), (0, cssr_1.cE)('prefix', `
|
|
@@ -139,7 +139,7 @@ exports.default = (0, cssr_1.cB)('tree', `
|
|
|
139
139
|
margin-right: 8px;
|
|
140
140
|
`), (0, cssr_1.cE)('text', `
|
|
141
141
|
border-bottom: 1px solid #0000;
|
|
142
|
-
transition: border-color .3s var(--bezier);
|
|
142
|
+
transition: border-color .3s var(--n-bezier);
|
|
143
143
|
flex-grow:1;
|
|
144
144
|
`), (0, cssr_1.cE)('suffix', `
|
|
145
145
|
display: inline-flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, HTMLAttributes } from 'vue';
|
|
2
2
|
import { FollowerPlacement } from 'vueuc';
|
|
3
3
|
import { CheckStrategy } from 'treemate';
|
|
4
4
|
import { Key } from '../../tree/src/interface';
|
|
@@ -94,6 +94,7 @@ declare const props: {
|
|
|
94
94
|
type: PropType<string | boolean | HTMLElement>;
|
|
95
95
|
default: undefined;
|
|
96
96
|
};
|
|
97
|
+
readonly menuProps: PropType<HTMLAttributes>;
|
|
97
98
|
readonly virtualScroll: {
|
|
98
99
|
readonly type: BooleanConstructor;
|
|
99
100
|
readonly default: true;
|
|
@@ -104,6 +105,9 @@ declare const props: {
|
|
|
104
105
|
menuBoxShadow: string;
|
|
105
106
|
menuBorderRadius: string;
|
|
106
107
|
menuHeight: string;
|
|
108
|
+
actionDividerColor: string;
|
|
109
|
+
actionTextColor: string;
|
|
110
|
+
actionPadding: string;
|
|
107
111
|
}, {
|
|
108
112
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
109
113
|
fontSize: string;
|
|
@@ -238,6 +242,9 @@ declare const props: {
|
|
|
238
242
|
menuBoxShadow: string;
|
|
239
243
|
menuBorderRadius: string;
|
|
240
244
|
menuHeight: string;
|
|
245
|
+
actionDividerColor: string;
|
|
246
|
+
actionTextColor: string;
|
|
247
|
+
actionPadding: string;
|
|
241
248
|
}, {
|
|
242
249
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
243
250
|
fontSize: string;
|
|
@@ -372,6 +379,9 @@ declare const props: {
|
|
|
372
379
|
menuBoxShadow: string;
|
|
373
380
|
menuBorderRadius: string;
|
|
374
381
|
menuHeight: string;
|
|
382
|
+
actionDividerColor: string;
|
|
383
|
+
actionTextColor: string;
|
|
384
|
+
actionPadding: string;
|
|
375
385
|
}, {
|
|
376
386
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
377
387
|
fontSize: string;
|
|
@@ -591,6 +601,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
591
601
|
type: PropType<string | boolean | HTMLElement>;
|
|
592
602
|
default: undefined;
|
|
593
603
|
};
|
|
604
|
+
readonly menuProps: PropType<HTMLAttributes>;
|
|
594
605
|
readonly virtualScroll: {
|
|
595
606
|
readonly type: BooleanConstructor;
|
|
596
607
|
readonly default: true;
|
|
@@ -601,6 +612,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
601
612
|
menuBoxShadow: string;
|
|
602
613
|
menuBorderRadius: string;
|
|
603
614
|
menuHeight: string;
|
|
615
|
+
actionDividerColor: string;
|
|
616
|
+
actionTextColor: string;
|
|
617
|
+
actionPadding: string;
|
|
604
618
|
}, {
|
|
605
619
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
606
620
|
fontSize: string;
|
|
@@ -735,6 +749,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
735
749
|
menuBoxShadow: string;
|
|
736
750
|
menuBorderRadius: string;
|
|
737
751
|
menuHeight: string;
|
|
752
|
+
actionDividerColor: string;
|
|
753
|
+
actionTextColor: string;
|
|
754
|
+
actionPadding: string;
|
|
738
755
|
}, {
|
|
739
756
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
740
757
|
fontSize: string;
|
|
@@ -869,6 +886,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
869
886
|
menuBoxShadow: string;
|
|
870
887
|
menuBorderRadius: string;
|
|
871
888
|
menuHeight: string;
|
|
889
|
+
actionDividerColor: string;
|
|
890
|
+
actionTextColor: string;
|
|
891
|
+
actionPadding: string;
|
|
872
892
|
}, {
|
|
873
893
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
874
894
|
fontSize: string;
|
|
@@ -1055,11 +1075,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1055
1075
|
handleTabOut: () => void;
|
|
1056
1076
|
handleMenuMousedown: (e: MouseEvent) => void;
|
|
1057
1077
|
cssVars: import("vue").ComputedRef<{
|
|
1058
|
-
'--menu-box-shadow': string;
|
|
1059
|
-
'--menu-border-radius': string;
|
|
1060
|
-
'--menu-color': string;
|
|
1061
|
-
'--menu-height': string;
|
|
1062
|
-
'--bezier': string;
|
|
1078
|
+
'--n-menu-box-shadow': string;
|
|
1079
|
+
'--n-menu-border-radius': string;
|
|
1080
|
+
'--n-menu-color': string;
|
|
1081
|
+
'--n-menu-height': string;
|
|
1082
|
+
'--n-bezier': string;
|
|
1083
|
+
'--n-action-padding': string;
|
|
1084
|
+
'--n-action-text-color': string;
|
|
1085
|
+
'--n-action-divider-color': string;
|
|
1063
1086
|
}>;
|
|
1064
1087
|
mergedTheme: import("vue").ComputedRef<{
|
|
1065
1088
|
common: {
|
|
@@ -1171,6 +1194,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1171
1194
|
menuBoxShadow: string;
|
|
1172
1195
|
menuBorderRadius: string;
|
|
1173
1196
|
menuHeight: string;
|
|
1197
|
+
actionDividerColor: string;
|
|
1198
|
+
actionTextColor: string;
|
|
1199
|
+
actionPadding: string;
|
|
1174
1200
|
};
|
|
1175
1201
|
peers: {
|
|
1176
1202
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
@@ -1403,6 +1429,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1403
1429
|
readonly size?: unknown;
|
|
1404
1430
|
readonly value?: unknown;
|
|
1405
1431
|
readonly to?: unknown;
|
|
1432
|
+
readonly menuProps?: unknown;
|
|
1406
1433
|
readonly virtualScroll?: unknown;
|
|
1407
1434
|
readonly theme?: unknown;
|
|
1408
1435
|
readonly themeOverrides?: unknown;
|
|
@@ -1444,6 +1471,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1444
1471
|
menuBoxShadow: string;
|
|
1445
1472
|
menuBorderRadius: string;
|
|
1446
1473
|
menuHeight: string;
|
|
1474
|
+
actionDividerColor: string;
|
|
1475
|
+
actionTextColor: string;
|
|
1476
|
+
actionPadding: string;
|
|
1447
1477
|
}, {
|
|
1448
1478
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
1449
1479
|
fontSize: string;
|
|
@@ -1578,6 +1608,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1578
1608
|
menuBoxShadow: string;
|
|
1579
1609
|
menuBorderRadius: string;
|
|
1580
1610
|
menuHeight: string;
|
|
1611
|
+
actionDividerColor: string;
|
|
1612
|
+
actionTextColor: string;
|
|
1613
|
+
actionPadding: string;
|
|
1581
1614
|
}, {
|
|
1582
1615
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
1583
1616
|
fontSize: string;
|
|
@@ -1712,6 +1745,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1712
1745
|
menuBoxShadow: string;
|
|
1713
1746
|
menuBorderRadius: string;
|
|
1714
1747
|
menuHeight: string;
|
|
1748
|
+
actionDividerColor: string;
|
|
1749
|
+
actionTextColor: string;
|
|
1750
|
+
actionPadding: string;
|
|
1715
1751
|
}, {
|
|
1716
1752
|
Tree: import("../../_mixins").Theme<"Tree", {
|
|
1717
1753
|
fontSize: string;
|
|
@@ -1843,6 +1879,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1843
1879
|
"onUpdate:show"?: MaybeArray<(show: boolean) => void> | undefined;
|
|
1844
1880
|
onUpdateShow?: MaybeArray<(show: boolean) => void> | undefined;
|
|
1845
1881
|
maxTagCount?: number | "responsive" | undefined;
|
|
1882
|
+
menuProps?: HTMLAttributes | undefined;
|
|
1846
1883
|
"onUpdate:value"?: MaybeArray<OnUpdateValue> | undefined;
|
|
1847
1884
|
onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
|
|
1848
1885
|
leafOnly?: boolean | undefined;
|
|
@@ -8,6 +8,7 @@ const vueuc_1 = require("vueuc");
|
|
|
8
8
|
const vooks_1 = require("vooks");
|
|
9
9
|
const vdirs_1 = require("vdirs");
|
|
10
10
|
const treemate_1 = require("treemate");
|
|
11
|
+
const seemly_1 = require("seemly");
|
|
11
12
|
const Tree_1 = require("../../tree/src/Tree");
|
|
12
13
|
const _internal_1 = require("../../_internal");
|
|
13
14
|
const tree_1 = require("../../tree");
|
|
@@ -45,7 +46,7 @@ const props = Object.assign(Object.assign(Object.assign(Object.assign({}, _mixin
|
|
|
45
46
|
}, show: {
|
|
46
47
|
type: Boolean,
|
|
47
48
|
default: undefined
|
|
48
|
-
}, size: String, value: [String, Number, Array], to: _utils_1.useAdjustedTo.propTo, virtualScroll: {
|
|
49
|
+
}, size: String, value: [String, Number, Array], to: _utils_1.useAdjustedTo.propTo, menuProps: Object, virtualScroll: {
|
|
49
50
|
type: Boolean,
|
|
50
51
|
default: true
|
|
51
52
|
} }), Tree_1.treeSharedProps), { onBlur: Function, onFocus: Function, onUpdateShow: [Function, Array], onUpdateValue: [Function, Array], 'onUpdate:value': [Function, Array], 'onUpdate:show': [Function, Array],
|
|
@@ -442,7 +443,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
442
443
|
function handleMenuMousedown(e) {
|
|
443
444
|
// If there's an action slot later, we need to check if mousedown happens
|
|
444
445
|
// in action panel
|
|
445
|
-
|
|
446
|
+
if (!(0, seemly_1.happensIn)(e, 'action'))
|
|
447
|
+
e.preventDefault();
|
|
446
448
|
}
|
|
447
449
|
(0, vue_1.provide)(interface_1.treeSelectInjectionKey, {
|
|
448
450
|
pendingNodeKeyRef
|
|
@@ -519,20 +521,23 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
519
521
|
handleTabOut,
|
|
520
522
|
handleMenuMousedown,
|
|
521
523
|
cssVars: (0, vue_1.computed)(() => {
|
|
522
|
-
const { common: { cubicBezierEaseInOut }, self: { menuBoxShadow, menuBorderRadius, menuColor, menuHeight } } = themeRef.value;
|
|
524
|
+
const { common: { cubicBezierEaseInOut }, self: { menuBoxShadow, menuBorderRadius, menuColor, menuHeight, actionPadding, actionDividerColor, actionTextColor } } = themeRef.value;
|
|
523
525
|
return {
|
|
524
|
-
'--menu-box-shadow': menuBoxShadow,
|
|
525
|
-
'--menu-border-radius': menuBorderRadius,
|
|
526
|
-
'--menu-color': menuColor,
|
|
527
|
-
'--menu-height': menuHeight,
|
|
528
|
-
'--bezier': cubicBezierEaseInOut
|
|
526
|
+
'--n-menu-box-shadow': menuBoxShadow,
|
|
527
|
+
'--n-menu-border-radius': menuBorderRadius,
|
|
528
|
+
'--n-menu-color': menuColor,
|
|
529
|
+
'--n-menu-height': menuHeight,
|
|
530
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
531
|
+
'--n-action-padding': actionPadding,
|
|
532
|
+
'--n-action-text-color': actionTextColor,
|
|
533
|
+
'--n-action-divider-color': actionDividerColor
|
|
529
534
|
};
|
|
530
535
|
}),
|
|
531
536
|
mergedTheme: themeRef
|
|
532
537
|
};
|
|
533
538
|
},
|
|
534
539
|
render() {
|
|
535
|
-
const { mergedTheme, mergedClsPrefix } = this;
|
|
540
|
+
const { mergedTheme, mergedClsPrefix, $slots } = this;
|
|
536
541
|
return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tree-select` },
|
|
537
542
|
(0, vue_1.h)(vueuc_1.VBinder, null, {
|
|
538
543
|
default: () => [
|
|
@@ -544,11 +549,21 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
544
549
|
default: () => {
|
|
545
550
|
if (!this.mergedShow)
|
|
546
551
|
return null;
|
|
547
|
-
const { mergedClsPrefix, filteredTreeInfo, checkable, multiple } = this;
|
|
548
|
-
return (0, vue_1.withDirectives)((0, vue_1.h)("div", {
|
|
552
|
+
const { mergedClsPrefix, filteredTreeInfo, checkable, multiple, menuProps } = this;
|
|
553
|
+
return (0, vue_1.withDirectives)((0, vue_1.h)("div", Object.assign({}, menuProps, { class: [
|
|
554
|
+
`${mergedClsPrefix}-tree-select-menu`,
|
|
555
|
+
menuProps === null || menuProps === void 0 ? void 0 : menuProps.class
|
|
556
|
+
], ref: "menuElRef", style: [
|
|
557
|
+
(menuProps === null || menuProps === void 0 ? void 0 : menuProps.style) || '',
|
|
558
|
+
this.cssVars
|
|
559
|
+
], tabindex: 0, onMousedown: this.handleMenuMousedown, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown, onFocusin: this.handleMenuFocusin, onFocusout: this.handleMenuFocusout }),
|
|
549
560
|
filteredTreeInfo.filteredTree.length ? ((0, vue_1.h)(tree_1.NTree, { ref: "treeInstRef", blockLine: true, animated: false, data: filteredTreeInfo.filteredTree, cancelable: multiple, labelField: this.labelField, theme: mergedTheme.peers.Tree, themeOverrides: mergedTheme.peerOverrides.Tree, defaultExpandAll: this.defaultExpandAll, defaultExpandedKeys: this.defaultExpandedKeys, expandedKeys: this.mergedExpandedKeys, checkedKeys: this.treeCheckedKeys, selectedKeys: this.treeSelectedKeys, checkable: checkable, checkStrategy: this.checkStrategy, cascade: this.mergedCascade, leafOnly: this.leafOnly, multiple: this.multiple, virtualScroll: this.consistentMenuWidth &&
|
|
550
|
-
this.virtualScroll, internalDataTreeMate: this.dataTreeMate, internalDisplayTreeMate: this.displayTreeMate, internalHighlightKeySet: filteredTreeInfo.highlightKeySet, internalUnifySelectCheck: true, internalScrollable: true, internalScrollablePadding: this.menuPadding, internalFocusable: false, internalCheckboxFocusable: false, onUpdateCheckedKeys: this.handleUpdateCheckedKeys, onUpdateIndeterminateKeys: this.handleUpdateIndeterminateKeys, onUpdateExpandedKeys: this.doUpdateExpandedKeys })) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tree-select-menu__empty` },
|
|
551
|
-
(0, vue_1.h)(empty_1.NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty })
|
|
561
|
+
this.virtualScroll, internalDataTreeMate: this.dataTreeMate, internalDisplayTreeMate: this.displayTreeMate, internalHighlightKeySet: filteredTreeInfo.highlightKeySet, internalUnifySelectCheck: true, internalScrollable: true, internalScrollablePadding: this.menuPadding, internalFocusable: false, internalCheckboxFocusable: false, onUpdateCheckedKeys: this.handleUpdateCheckedKeys, onUpdateIndeterminateKeys: this.handleUpdateIndeterminateKeys, onUpdateExpandedKeys: this.doUpdateExpandedKeys })) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tree-select-menu__empty` }, (0, vue_1.renderSlot)($slots, 'empty', undefined, () => [
|
|
562
|
+
(0, vue_1.h)(empty_1.NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty })
|
|
563
|
+
]))),
|
|
564
|
+
$slots.action && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tree-select-menu__action`, "data-action": true }, {
|
|
565
|
+
default: $slots.action
|
|
566
|
+
})),
|
|
552
567
|
(0, vue_1.h)(_internal_1.NBaseFocusDetector, { onFocus: this.handleTabOut })), [[vdirs_1.clickoutside, this.handleMenuClickoutside]]);
|
|
553
568
|
}
|
|
554
569
|
}))
|
|
@@ -13,11 +13,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const fade_in_scale_up_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-scale-up.cssr"));
|
|
14
14
|
|
|
15
15
|
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
16
|
-
// --bezier
|
|
17
|
-
// --menu-height
|
|
18
|
-
// --menu-border-radius
|
|
19
|
-
// --menu-box-shadow
|
|
20
|
-
// --menu-color
|
|
16
|
+
// --n-bezier
|
|
17
|
+
// --n-menu-height
|
|
18
|
+
// --n-menu-border-radius
|
|
19
|
+
// --n-menu-box-shadow
|
|
20
|
+
// --n-menu-color
|
|
21
|
+
// --n-action-padding
|
|
22
|
+
// --n-action-text-color
|
|
23
|
+
// --n-action-divider-color
|
|
21
24
|
|
|
22
25
|
|
|
23
26
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('tree-select', `
|
|
@@ -29,15 +32,21 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('tree-select', `
|
|
|
29
32
|
position: relative;
|
|
30
33
|
overflow: hidden;
|
|
31
34
|
margin: 4px 0;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
background-color: var(--menu-color);
|
|
35
|
+
transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier);
|
|
36
|
+
border-radius: var(--n-menu-border-radius);
|
|
37
|
+
box-shadow: var(--n-menu-box-shadow);
|
|
38
|
+
background-color: var(--n-menu-color);
|
|
37
39
|
outline: none;
|
|
38
|
-
`, [(0, cssr_1.cB)('tree', 'max-height:
|
|
40
|
+
`, [(0, cssr_1.cB)('tree', 'max-height: var(--n-menu-height);'), (0, cssr_1.cE)('empty', `
|
|
39
41
|
display: flex;
|
|
40
42
|
padding: 12px 32px;
|
|
41
43
|
flex: 1;
|
|
42
44
|
justify-content: center;
|
|
45
|
+
`), (0, cssr_1.cE)('action', `
|
|
46
|
+
padding: var(--n-action-padding);
|
|
47
|
+
transition:
|
|
48
|
+
color .3s var(--n-bezier);
|
|
49
|
+
border-color .3s var(--n-bezier);
|
|
50
|
+
border-top: 1px solid var(--n-action-divider-color);
|
|
51
|
+
color: var(--n-action-text-color);
|
|
43
52
|
`), (0, fade_in_scale_up_cssr_1.default)()])]);
|
|
@@ -5,6 +5,9 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
5
5
|
menuBoxShadow: string;
|
|
6
6
|
menuBorderRadius: string;
|
|
7
7
|
menuHeight: string;
|
|
8
|
+
actionDividerColor: string;
|
|
9
|
+
actionTextColor: string;
|
|
10
|
+
actionPadding: string;
|
|
8
11
|
};
|
|
9
12
|
export declare type TreeSelectThemeVars = ReturnType<typeof self>;
|
|
10
13
|
declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSelect", {
|
|
@@ -13,6 +16,9 @@ declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSele
|
|
|
13
16
|
menuBoxShadow: string;
|
|
14
17
|
menuBorderRadius: string;
|
|
15
18
|
menuHeight: string;
|
|
19
|
+
actionDividerColor: string;
|
|
20
|
+
actionTextColor: string;
|
|
21
|
+
actionPadding: string;
|
|
16
22
|
}, {
|
|
17
23
|
Tree: import("../../_mixins/use-theme").Theme<"Tree", {
|
|
18
24
|
fontSize: string;
|
|
@@ -7,13 +7,16 @@ const styles_1 = require("../../tree/styles");
|
|
|
7
7
|
const styles_2 = require("../../empty/styles");
|
|
8
8
|
const styles_3 = require("../../_internal/selection/styles");
|
|
9
9
|
const self = (vars) => {
|
|
10
|
-
const { popoverColor, boxShadow2, borderRadius, heightMedium } = vars;
|
|
10
|
+
const { popoverColor, boxShadow2, borderRadius, heightMedium, dividerColor, textColor2 } = vars;
|
|
11
11
|
return {
|
|
12
12
|
menuPadding: '4px',
|
|
13
13
|
menuColor: popoverColor,
|
|
14
14
|
menuBoxShadow: boxShadow2,
|
|
15
15
|
menuBorderRadius: borderRadius,
|
|
16
|
-
menuHeight: `calc(${heightMedium} * 7.6)
|
|
16
|
+
menuHeight: `calc(${heightMedium} * 7.6)`,
|
|
17
|
+
actionDividerColor: dividerColor,
|
|
18
|
+
actionTextColor: textColor2,
|
|
19
|
+
actionPadding: '8px 12px'
|
|
17
20
|
};
|
|
18
21
|
};
|
|
19
22
|
exports.self = self;
|
|
@@ -402,8 +402,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
402
402
|
}, {
|
|
403
403
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
404
404
|
cssVars: import("vue").ComputedRef<{
|
|
405
|
-
'--text-color': string;
|
|
406
|
-
'--bezier': string;
|
|
405
|
+
'--n-text-color': string;
|
|
406
|
+
'--n-bezier': string;
|
|
407
407
|
}>;
|
|
408
408
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
409
409
|
readonly theme?: unknown;
|
package/lib/typography/src/a.js
CHANGED
|
@@ -19,8 +19,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
19
19
|
cssVars: (0, vue_1.computed)(() => {
|
|
20
20
|
const { common: { cubicBezierEaseInOut }, self: { aTextColor } } = themeRef.value;
|
|
21
21
|
return {
|
|
22
|
-
'--text-color': aTextColor,
|
|
23
|
-
'--bezier': cubicBezierEaseInOut
|
|
22
|
+
'--n-text-color': aTextColor,
|
|
23
|
+
'--n-bezier': cubicBezierEaseInOut
|
|
24
24
|
};
|
|
25
25
|
})
|
|
26
26
|
};
|
|
@@ -404,11 +404,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
404
404
|
}, {
|
|
405
405
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
406
406
|
cssVars: import("vue").ComputedRef<{
|
|
407
|
-
'--bezier': string;
|
|
408
|
-
'--font-size': string;
|
|
409
|
-
'--line-height': string;
|
|
410
|
-
'--prefix-color': string;
|
|
411
|
-
'--text-color': string;
|
|
407
|
+
'--n-bezier': string;
|
|
408
|
+
'--n-font-size': string;
|
|
409
|
+
'--n-line-height': string;
|
|
410
|
+
'--n-prefix-color': string;
|
|
411
|
+
'--n-text-color': string;
|
|
412
412
|
}>;
|
|
413
413
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
414
414
|
readonly alignText?: unknown;
|
|
@@ -19,11 +19,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
19
19
|
cssVars: (0, vue_1.computed)(() => {
|
|
20
20
|
const { common: { cubicBezierEaseInOut }, self: { blockquoteTextColor, blockquotePrefixColor, blockquoteLineHeight, blockquoteFontSize } } = themeRef.value;
|
|
21
21
|
return {
|
|
22
|
-
'--bezier': cubicBezierEaseInOut,
|
|
23
|
-
'--font-size': blockquoteFontSize,
|
|
24
|
-
'--line-height': blockquoteLineHeight,
|
|
25
|
-
'--prefix-color': blockquotePrefixColor,
|
|
26
|
-
'--text-color': blockquoteTextColor
|
|
22
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
23
|
+
'--n-font-size': blockquoteFontSize,
|
|
24
|
+
'--n-line-height': blockquoteLineHeight,
|
|
25
|
+
'--n-prefix-color': blockquotePrefixColor,
|
|
26
|
+
'--n-text-color': blockquoteTextColor
|
|
27
27
|
};
|
|
28
28
|
})
|
|
29
29
|
};
|
|
@@ -415,14 +415,14 @@ declare const _default: (level: '1' | '2' | '3' | '4' | '5' | '6') => import("vu
|
|
|
415
415
|
}, {
|
|
416
416
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
417
417
|
cssVars: import("vue").ComputedRef<{
|
|
418
|
-
'--bezier': string;
|
|
419
|
-
'--font-size': string;
|
|
420
|
-
'--margin': string;
|
|
421
|
-
'--bar-color': string;
|
|
422
|
-
'--bar-width': string;
|
|
423
|
-
'--font-weight': string;
|
|
424
|
-
'--text-color': string;
|
|
425
|
-
'--prefix-width': string;
|
|
418
|
+
'--n-bezier': string;
|
|
419
|
+
'--n-font-size': string;
|
|
420
|
+
'--n-margin': string;
|
|
421
|
+
'--n-bar-color': string;
|
|
422
|
+
'--n-bar-width': string;
|
|
423
|
+
'--n-font-weight': string;
|
|
424
|
+
'--n-text-color': string;
|
|
425
|
+
'--n-prefix-width': string;
|
|
426
426
|
}>;
|
|
427
427
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
428
428
|
readonly type?: unknown;
|
|
@@ -25,14 +25,14 @@ exports.default = (level) => (0, vue_1.defineComponent)({
|
|
|
25
25
|
const { type } = props;
|
|
26
26
|
const { common: { cubicBezierEaseInOut }, self: { headerFontWeight, headerTextColor, [(0, _utils_1.createKey)('headerPrefixWidth', level)]: prefixWidth, [(0, _utils_1.createKey)('headerFontSize', level)]: fontSize, [(0, _utils_1.createKey)('headerMargin', level)]: margin, [(0, _utils_1.createKey)('headerBarWidth', level)]: barWidth, [(0, _utils_1.createKey)('headerBarColor', type)]: barColor } } = themeRef.value;
|
|
27
27
|
return {
|
|
28
|
-
'--bezier': cubicBezierEaseInOut,
|
|
29
|
-
'--font-size': fontSize,
|
|
30
|
-
'--margin': margin,
|
|
31
|
-
'--bar-color': barColor,
|
|
32
|
-
'--bar-width': barWidth,
|
|
33
|
-
'--font-weight': headerFontWeight,
|
|
34
|
-
'--text-color': headerTextColor,
|
|
35
|
-
'--prefix-width': prefixWidth
|
|
28
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
29
|
+
'--n-font-size': fontSize,
|
|
30
|
+
'--n-margin': margin,
|
|
31
|
+
'--n-bar-color': barColor,
|
|
32
|
+
'--n-bar-width': barWidth,
|
|
33
|
+
'--n-font-weight': headerFontWeight,
|
|
34
|
+
'--n-text-color': headerTextColor,
|
|
35
|
+
'--n-prefix-width': prefixWidth
|
|
36
36
|
};
|
|
37
37
|
})
|
|
38
38
|
};
|