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
|
@@ -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;
|
|
@@ -4,6 +4,7 @@ import { scrollbarDark } from '../../_internal/scrollbar/styles';
|
|
|
4
4
|
import { checkboxDark } from '../../checkbox/styles';
|
|
5
5
|
import { commonDark } from '../../_styles/common';
|
|
6
6
|
import { self } from './light';
|
|
7
|
+
import { emptyLight } from '../../empty/styles';
|
|
7
8
|
const cascaderDark = {
|
|
8
9
|
name: 'Cascader',
|
|
9
10
|
common: commonDark,
|
|
@@ -11,7 +12,8 @@ const cascaderDark = {
|
|
|
11
12
|
InternalSelectMenu: internalSelectMenuDark,
|
|
12
13
|
InternalSelection: internalSelectionDark,
|
|
13
14
|
Scrollbar: scrollbarDark,
|
|
14
|
-
Checkbox: checkboxDark
|
|
15
|
+
Checkbox: checkboxDark,
|
|
16
|
+
Empty: emptyLight
|
|
15
17
|
},
|
|
16
18
|
self
|
|
17
19
|
};
|
|
@@ -186,6 +186,19 @@ declare const cascaderLight: import("../../_mixins").Theme<"Cascader", {
|
|
|
186
186
|
sizeLarge: string;
|
|
187
187
|
labelPadding: string;
|
|
188
188
|
}, any>;
|
|
189
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
190
|
+
fontSizeSmall: string;
|
|
191
|
+
fontSizeMedium: string;
|
|
192
|
+
fontSizeLarge: string;
|
|
193
|
+
fontSizeHuge: string;
|
|
194
|
+
textColor: string;
|
|
195
|
+
iconColor: string;
|
|
196
|
+
extraTextColor: string;
|
|
197
|
+
iconSizeSmall: string;
|
|
198
|
+
iconSizeMedium: string;
|
|
199
|
+
iconSizeLarge: string;
|
|
200
|
+
iconSizeHuge: string;
|
|
201
|
+
}, any>;
|
|
189
202
|
}>;
|
|
190
203
|
export default cascaderLight;
|
|
191
204
|
export declare type CascaderTheme = typeof cascaderLight;
|
|
@@ -4,6 +4,7 @@ import { scrollbarLight } from '../../_internal/scrollbar/styles';
|
|
|
4
4
|
import { checkboxLight } from '../../checkbox/styles';
|
|
5
5
|
import { commonLight } from '../../_styles/common';
|
|
6
6
|
import { createTheme } from '../../_mixins';
|
|
7
|
+
import { emptyLight } from '../../empty/styles';
|
|
7
8
|
export const self = (vars) => {
|
|
8
9
|
const { borderRadius, boxShadow2, popoverColor, textColor2, textColor3, primaryColor, textColorDisabled, dividerColor, hoverColor, fontSizeMedium, heightMedium } = vars;
|
|
9
10
|
return {
|
|
@@ -11,7 +12,7 @@ export const self = (vars) => {
|
|
|
11
12
|
menuColor: popoverColor,
|
|
12
13
|
menuBoxShadow: boxShadow2,
|
|
13
14
|
menuDividerColor: dividerColor,
|
|
14
|
-
menuHeight: 'calc(var(--option-height) * 6.6)',
|
|
15
|
+
menuHeight: 'calc(var(--n-option-height) * 6.6)',
|
|
15
16
|
optionArrowColor: textColor3,
|
|
16
17
|
optionHeight: heightMedium,
|
|
17
18
|
optionFontSize: fontSizeMedium,
|
|
@@ -31,7 +32,8 @@ const cascaderLight = createTheme({
|
|
|
31
32
|
InternalSelectMenu: internalSelectMenuLight,
|
|
32
33
|
InternalSelection: internalSelectionLight,
|
|
33
34
|
Scrollbar: scrollbarLight,
|
|
34
|
-
Checkbox: checkboxLight
|
|
35
|
+
Checkbox: checkboxLight,
|
|
36
|
+
Empty: emptyLight
|
|
35
37
|
},
|
|
36
38
|
self
|
|
37
39
|
});
|
|
@@ -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
|
`))]);
|
package/es/code/src/Code.d.ts
CHANGED
|
@@ -121,20 +121,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
121
121
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
122
122
|
codeRef: import("vue").Ref<HTMLElement | null>;
|
|
123
123
|
cssVars: import("vue").ComputedRef<{
|
|
124
|
-
'--font-size': string;
|
|
125
|
-
'--font-family': string;
|
|
126
|
-
'--font-weight-strong': string;
|
|
127
|
-
'--bezier': string;
|
|
128
|
-
'--text-color': string;
|
|
129
|
-
'--mono-3': string;
|
|
130
|
-
'--hue-1': string;
|
|
131
|
-
'--hue-2': string;
|
|
132
|
-
'--hue-3': string;
|
|
133
|
-
'--hue-4': string;
|
|
134
|
-
'--hue-5': string;
|
|
135
|
-
'--hue-5-2': string;
|
|
136
|
-
'--hue-6': string;
|
|
137
|
-
'--hue-6-2': string;
|
|
124
|
+
'--n-font-size': string;
|
|
125
|
+
'--n-font-family': string;
|
|
126
|
+
'--n-font-weight-strong': string;
|
|
127
|
+
'--n-bezier': string;
|
|
128
|
+
'--n-text-color': string;
|
|
129
|
+
'--n-mono-3': string;
|
|
130
|
+
'--n-hue-1': string;
|
|
131
|
+
'--n-hue-2': string;
|
|
132
|
+
'--n-hue-3': string;
|
|
133
|
+
'--n-hue-4': string;
|
|
134
|
+
'--n-hue-5': string;
|
|
135
|
+
'--n-hue-5-2': string;
|
|
136
|
+
'--n-hue-6': string;
|
|
137
|
+
'--n-hue-6-2': string;
|
|
138
138
|
}>;
|
|
139
139
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
140
140
|
language?: unknown;
|
package/es/code/src/Code.js
CHANGED
|
@@ -52,9 +52,16 @@ export default defineComponent({
|
|
|
52
52
|
codeEl.textContent = code;
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
const maybePreEl = codeEl.children[0];
|
|
56
|
+
if (maybePreEl && maybePreEl.tagName === 'PRE') {
|
|
57
|
+
maybePreEl.textContent = code;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const warp = document.createElement('pre');
|
|
61
|
+
warp.textContent = code;
|
|
62
|
+
codeEl.innerHTML = '';
|
|
63
|
+
codeEl.appendChild(warp);
|
|
64
|
+
}
|
|
58
65
|
};
|
|
59
66
|
onMounted(setCode);
|
|
60
67
|
watch(toRef(props, 'language'), setCode);
|
|
@@ -71,20 +78,22 @@ export default defineComponent({
|
|
|
71
78
|
'mono-3': $1, 'hue-1': $2, 'hue-2': $3, 'hue-3': $4, 'hue-4': $5, 'hue-5': $6, 'hue-5-2': $7, 'hue-6': $8, 'hue-6-2': $9 } } = themeRef.value;
|
|
72
79
|
const { internalFontSize } = props;
|
|
73
80
|
return {
|
|
74
|
-
'--font-size': internalFontSize
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
'--
|
|
78
|
-
'--
|
|
79
|
-
'--
|
|
80
|
-
'--
|
|
81
|
-
'--
|
|
82
|
-
'--hue-
|
|
83
|
-
'--hue-
|
|
84
|
-
'--hue-
|
|
85
|
-
'--hue-
|
|
86
|
-
'--hue-
|
|
87
|
-
'--hue-
|
|
81
|
+
'--n-font-size': internalFontSize
|
|
82
|
+
? `${internalFontSize}px`
|
|
83
|
+
: fontSize,
|
|
84
|
+
'--n-font-family': fontFamilyMono,
|
|
85
|
+
'--n-font-weight-strong': fontWeightStrong,
|
|
86
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
87
|
+
'--n-text-color': textColor,
|
|
88
|
+
'--n-mono-3': $1,
|
|
89
|
+
'--n-hue-1': $2,
|
|
90
|
+
'--n-hue-2': $3,
|
|
91
|
+
'--n-hue-3': $4,
|
|
92
|
+
'--n-hue-4': $5,
|
|
93
|
+
'--n-hue-5': $6,
|
|
94
|
+
'--n-hue-5-2': $7,
|
|
95
|
+
'--n-hue-6': $8,
|
|
96
|
+
'--n-hue-6-2': $9
|
|
88
97
|
};
|
|
89
98
|
})
|
|
90
99
|
};
|