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
package/lib/_mixins/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useHljs = exports.useStyle = exports.useLocale = exports.defaultClsPrefix = exports.useConfig = exports.createTheme = exports.useTheme = exports.useFormItem = void 0;
|
|
6
|
+
exports.useCssVarsClass = exports.useHljs = exports.useStyle = exports.useLocale = exports.defaultClsPrefix = exports.useConfig = exports.createTheme = exports.useTheme = exports.useFormItem = void 0;
|
|
7
7
|
var use_form_item_1 = require("./use-form-item");
|
|
8
8
|
Object.defineProperty(exports, "useFormItem", { enumerable: true, get: function () { return __importDefault(use_form_item_1).default; } });
|
|
9
9
|
var use_theme_1 = require("./use-theme");
|
|
@@ -18,3 +18,5 @@ var use_style_1 = require("./use-style");
|
|
|
18
18
|
Object.defineProperty(exports, "useStyle", { enumerable: true, get: function () { return __importDefault(use_style_1).default; } });
|
|
19
19
|
var use_hljs_1 = require("./use-hljs");
|
|
20
20
|
Object.defineProperty(exports, "useHljs", { enumerable: true, get: function () { return __importDefault(use_hljs_1).default; } });
|
|
21
|
+
var use_css_vars_class_1 = require("./use-css-vars-class");
|
|
22
|
+
Object.defineProperty(exports, "useCssVarsClass", { enumerable: true, get: function () { return use_css_vars_class_1.useCssVarsClass; } });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useCssVarsClass = void 0;
|
|
7
|
+
const vue_1 = require("vue");
|
|
8
|
+
const hash_1 = __importDefault(require("@emotion/hash"));
|
|
9
|
+
const cssr_1 = require("../_utils/cssr");
|
|
10
|
+
// window.xxx = 0
|
|
11
|
+
function useCssVarsClass(cssVarsRef) {
|
|
12
|
+
const cssVarsClassRef = (0, vue_1.ref)('');
|
|
13
|
+
(0, vue_1.watchEffect)(() => {
|
|
14
|
+
// window.xxx -= performance.now()
|
|
15
|
+
const cssVars = cssVarsRef.value;
|
|
16
|
+
let style = '';
|
|
17
|
+
for (const key in cssVars) {
|
|
18
|
+
style += `${key}: ${cssVars[key]};`;
|
|
19
|
+
}
|
|
20
|
+
const styleHash = (0, hash_1.default)(style);
|
|
21
|
+
cssVarsClassRef.value = `c${styleHash}`;
|
|
22
|
+
(0, cssr_1.c)(`.c${styleHash}`, style).mount({
|
|
23
|
+
id: styleHash
|
|
24
|
+
});
|
|
25
|
+
// window.xxx += performance.now()
|
|
26
|
+
});
|
|
27
|
+
return cssVarsClassRef;
|
|
28
|
+
}
|
|
29
|
+
exports.useCssVarsClass = useCssVarsClass;
|
package/lib/_mixins/use-rtl.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const css_render_1 = require("css-render");
|
|
5
5
|
const vue3_ssr_1 = require("@css-render/vue3-ssr");
|
|
6
|
+
const common_1 = require("./common");
|
|
6
7
|
function useRtl(mountId, rtlStateRef, clsPrefixRef) {
|
|
7
8
|
if (!rtlStateRef)
|
|
8
9
|
return undefined;
|
|
@@ -33,6 +34,7 @@ function useRtl(mountId, rtlStateRef, clsPrefixRef) {
|
|
|
33
34
|
componentRtlState.style.mount({
|
|
34
35
|
id,
|
|
35
36
|
head: true,
|
|
37
|
+
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
36
38
|
props: {
|
|
37
39
|
bPrefix: clsPrefix ? `.${clsPrefix}-` : undefined
|
|
38
40
|
},
|
package/lib/_mixins/use-style.js
CHANGED
|
@@ -7,6 +7,7 @@ const vue_1 = require("vue");
|
|
|
7
7
|
const vue3_ssr_1 = require("@css-render/vue3-ssr");
|
|
8
8
|
const index_cssr_1 = __importDefault(require("../_styles/global/index.cssr"));
|
|
9
9
|
const _utils_1 = require("../_utils");
|
|
10
|
+
const common_1 = require("./common");
|
|
10
11
|
function useStyle(mountId, style, clsPrefixRef) {
|
|
11
12
|
if (!style) {
|
|
12
13
|
if (process.env.NODE_ENV !== 'production')
|
|
@@ -19,6 +20,7 @@ function useStyle(mountId, style, clsPrefixRef) {
|
|
|
19
20
|
style.mount({
|
|
20
21
|
id: clsPrefix === undefined ? mountId : clsPrefix + mountId,
|
|
21
22
|
head: true,
|
|
23
|
+
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
22
24
|
props: {
|
|
23
25
|
bPrefix: clsPrefix ? `.${clsPrefix}-` : undefined
|
|
24
26
|
},
|
|
@@ -27,6 +29,7 @@ function useStyle(mountId, style, clsPrefixRef) {
|
|
|
27
29
|
index_cssr_1.default.mount({
|
|
28
30
|
id: 'naive-ui/global',
|
|
29
31
|
head: true,
|
|
32
|
+
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
30
33
|
ssr: ssrAdapter
|
|
31
34
|
});
|
|
32
35
|
};
|
package/lib/_mixins/use-theme.js
CHANGED
|
@@ -10,6 +10,7 @@ const lodash_1 = require("lodash");
|
|
|
10
10
|
const vue3_ssr_1 = require("@css-render/vue3-ssr");
|
|
11
11
|
const index_cssr_1 = __importDefault(require("../_styles/global/index.cssr"));
|
|
12
12
|
const ConfigProvider_1 = require("../config-provider/src/ConfigProvider");
|
|
13
|
+
const common_1 = require("./common");
|
|
13
14
|
function createTheme(theme) {
|
|
14
15
|
return theme;
|
|
15
16
|
}
|
|
@@ -25,11 +26,13 @@ function useTheme(resolveId, mountId, style, defaultTheme, props, clsPrefixRef)
|
|
|
25
26
|
props: {
|
|
26
27
|
bPrefix: clsPrefix ? `.${clsPrefix}-` : undefined
|
|
27
28
|
},
|
|
29
|
+
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
28
30
|
ssr: ssrAdapter
|
|
29
31
|
});
|
|
30
32
|
index_cssr_1.default.mount({
|
|
31
33
|
id: 'naive-ui/global',
|
|
32
34
|
head: true,
|
|
35
|
+
anchorMetaName: common_1.cssrAnchorMetaName,
|
|
33
36
|
ssr: ssrAdapter
|
|
34
37
|
});
|
|
35
38
|
};
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useHoudini = void 0;
|
|
4
|
-
const vue_1 = require("vue");
|
|
5
4
|
let houdiniRegistered = false;
|
|
6
5
|
function useHoudini() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
if (typeof window === 'undefined')
|
|
7
|
+
return;
|
|
8
|
+
if (!window.CSS)
|
|
9
|
+
return;
|
|
10
|
+
if (!houdiniRegistered) {
|
|
11
|
+
houdiniRegistered = true;
|
|
12
|
+
if ('registerProperty' in (window === null || window === void 0 ? void 0 : window.CSS)) {
|
|
13
|
+
try {
|
|
12
14
|
;
|
|
13
15
|
CSS.registerProperty({
|
|
14
|
-
name: '--color-start',
|
|
16
|
+
name: '--n-color-start',
|
|
15
17
|
syntax: '<color>',
|
|
16
18
|
inherits: false,
|
|
17
19
|
initialValue: '#0000'
|
|
18
20
|
});
|
|
19
21
|
CSS.registerProperty({
|
|
20
|
-
name: '--color-end',
|
|
22
|
+
name: '--n-color-end',
|
|
21
23
|
syntax: '<color>',
|
|
22
24
|
inherits: false,
|
|
23
25
|
initialValue: '#0000'
|
|
24
26
|
});
|
|
25
27
|
}
|
|
28
|
+
catch (e) { }
|
|
26
29
|
}
|
|
27
|
-
}
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
exports.useHoudini = useHoudini;
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -528,26 +528,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
528
528
|
};
|
|
529
529
|
}>;
|
|
530
530
|
cssVars: import("vue").ComputedRef<{
|
|
531
|
-
'--bezier': string;
|
|
532
|
-
'--color': string;
|
|
533
|
-
'--close-color': string;
|
|
534
|
-
'--close-color-hover': string;
|
|
535
|
-
'--close-color-pressed': string;
|
|
536
|
-
'--icon-color': string;
|
|
537
|
-
'--border': string;
|
|
538
|
-
'--title-text-color': string;
|
|
539
|
-
'--content-text-color': string;
|
|
540
|
-
'--line-height': string;
|
|
541
|
-
'--border-radius': string;
|
|
542
|
-
'--font-size': string;
|
|
543
|
-
'--title-font-weight': string;
|
|
544
|
-
'--icon-size': string;
|
|
545
|
-
'--icon-margin': string;
|
|
546
|
-
'--close-size': string;
|
|
547
|
-
'--close-margin': string;
|
|
548
|
-
'--padding': string;
|
|
549
|
-
'--icon-margin-left': string;
|
|
550
|
-
'--icon-margin-right': string;
|
|
531
|
+
'--n-bezier': string;
|
|
532
|
+
'--n-color': string;
|
|
533
|
+
'--n-close-color': string;
|
|
534
|
+
'--n-close-color-hover': string;
|
|
535
|
+
'--n-close-color-pressed': string;
|
|
536
|
+
'--n-icon-color': string;
|
|
537
|
+
'--n-border': string;
|
|
538
|
+
'--n-title-text-color': string;
|
|
539
|
+
'--n-content-text-color': string;
|
|
540
|
+
'--n-line-height': string;
|
|
541
|
+
'--n-border-radius': string;
|
|
542
|
+
'--n-font-size': string;
|
|
543
|
+
'--n-title-font-weight': string;
|
|
544
|
+
'--n-icon-size': string;
|
|
545
|
+
'--n-icon-margin': string;
|
|
546
|
+
'--n-close-size': string;
|
|
547
|
+
'--n-close-margin': string;
|
|
548
|
+
'--n-padding': string;
|
|
549
|
+
'--n-icon-margin-left': string;
|
|
550
|
+
'--n-icon-margin-right': string;
|
|
551
551
|
}>;
|
|
552
552
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
553
553
|
title?: unknown;
|
|
@@ -562,8 +562,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
562
562
|
builtinThemeOverrides?: unknown;
|
|
563
563
|
} & {
|
|
564
564
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
565
|
-
closable: boolean;
|
|
566
565
|
showIcon: boolean;
|
|
566
|
+
closable: boolean;
|
|
567
567
|
} & {
|
|
568
568
|
onAfterLeave?: Function | undefined;
|
|
569
569
|
title?: string | undefined;
|
|
@@ -726,8 +726,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
726
726
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
727
727
|
onAfterLeave: Function;
|
|
728
728
|
title: string;
|
|
729
|
-
closable: boolean;
|
|
730
729
|
showIcon: boolean;
|
|
730
|
+
closable: boolean;
|
|
731
731
|
onAfterHide: Function;
|
|
732
732
|
}>;
|
|
733
733
|
export default _default;
|
package/lib/alert/src/Alert.js
CHANGED
|
@@ -49,26 +49,26 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
49
49
|
const { type } = props;
|
|
50
50
|
const { left, right } = (0, seemly_1.getMargin)(iconMargin);
|
|
51
51
|
return {
|
|
52
|
-
'--bezier': cubicBezierEaseInOut,
|
|
53
|
-
'--color': self[(0, _utils_1.createKey)('color', type)],
|
|
54
|
-
'--close-color': self[(0, _utils_1.createKey)('closeColor', type)],
|
|
55
|
-
'--close-color-hover': self[(0, _utils_1.createKey)('closeColorHover', type)],
|
|
56
|
-
'--close-color-pressed': self[(0, _utils_1.createKey)('closeColorPressed', type)],
|
|
57
|
-
'--icon-color': self[(0, _utils_1.createKey)('iconColor', type)],
|
|
58
|
-
'--border': self[(0, _utils_1.createKey)('border', type)],
|
|
59
|
-
'--title-text-color': self[(0, _utils_1.createKey)('titleTextColor', type)],
|
|
60
|
-
'--content-text-color': self[(0, _utils_1.createKey)('contentTextColor', type)],
|
|
61
|
-
'--line-height': lineHeight,
|
|
62
|
-
'--border-radius': borderRadius,
|
|
63
|
-
'--font-size': fontSize,
|
|
64
|
-
'--title-font-weight': titleFontWeight,
|
|
65
|
-
'--icon-size': iconSize,
|
|
66
|
-
'--icon-margin': iconMargin,
|
|
67
|
-
'--close-size': closeSize,
|
|
68
|
-
'--close-margin': closeMargin,
|
|
69
|
-
'--padding': padding,
|
|
70
|
-
'--icon-margin-left': left,
|
|
71
|
-
'--icon-margin-right': right
|
|
52
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
53
|
+
'--n-color': self[(0, _utils_1.createKey)('color', type)],
|
|
54
|
+
'--n-close-color': self[(0, _utils_1.createKey)('closeColor', type)],
|
|
55
|
+
'--n-close-color-hover': self[(0, _utils_1.createKey)('closeColorHover', type)],
|
|
56
|
+
'--n-close-color-pressed': self[(0, _utils_1.createKey)('closeColorPressed', type)],
|
|
57
|
+
'--n-icon-color': self[(0, _utils_1.createKey)('iconColor', type)],
|
|
58
|
+
'--n-border': self[(0, _utils_1.createKey)('border', type)],
|
|
59
|
+
'--n-title-text-color': self[(0, _utils_1.createKey)('titleTextColor', type)],
|
|
60
|
+
'--n-content-text-color': self[(0, _utils_1.createKey)('contentTextColor', type)],
|
|
61
|
+
'--n-line-height': lineHeight,
|
|
62
|
+
'--n-border-radius': borderRadius,
|
|
63
|
+
'--n-font-size': fontSize,
|
|
64
|
+
'--n-title-font-weight': titleFontWeight,
|
|
65
|
+
'--n-icon-size': iconSize,
|
|
66
|
+
'--n-icon-margin': iconMargin,
|
|
67
|
+
'--n-close-size': closeSize,
|
|
68
|
+
'--n-close-margin': closeMargin,
|
|
69
|
+
'--n-padding': padding,
|
|
70
|
+
'--n-icon-margin-left': left,
|
|
71
|
+
'--n-icon-margin-right': right
|
|
72
72
|
};
|
|
73
73
|
});
|
|
74
74
|
const visibleRef = (0, vue_1.ref)(true);
|
|
@@ -131,9 +131,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
131
131
|
}
|
|
132
132
|
})))),
|
|
133
133
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body` },
|
|
134
|
-
this.title
|
|
134
|
+
this.title || $slots.header ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body__title` }, (0, vue_1.renderSlot)($slots, 'header', undefined, () => [
|
|
135
135
|
this.title
|
|
136
|
-
]))),
|
|
136
|
+
]))) : null,
|
|
137
137
|
$slots.default && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body__content` }, $slots))))) : null;
|
|
138
138
|
}
|
|
139
139
|
}));
|
|
@@ -13,46 +13,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
14
|
|
|
15
15
|
const fade_in_height_expand_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-height-expand.cssr")); // vars:
|
|
16
|
-
// --bezier
|
|
17
|
-
// --color
|
|
18
|
-
// --close-color
|
|
19
|
-
// --close-color-hover
|
|
20
|
-
// --close-color-pressed
|
|
21
|
-
// --icon-color
|
|
22
|
-
// --border
|
|
23
|
-
// --title-text-color
|
|
24
|
-
// --content-text-color
|
|
25
|
-
// --line-height
|
|
26
|
-
// --border-radius
|
|
27
|
-
// --font-size
|
|
28
|
-
// --title-font-weight
|
|
29
|
-
// --icon-size
|
|
30
|
-
// --icon-margin
|
|
31
|
-
// --close-size
|
|
32
|
-
// --close-margin
|
|
33
|
-
// --padding
|
|
34
|
-
// --icon-margin-left
|
|
35
|
-
// --icon-margin-right
|
|
16
|
+
// --n-bezier
|
|
17
|
+
// --n-color
|
|
18
|
+
// --n-close-color
|
|
19
|
+
// --n-close-color-hover
|
|
20
|
+
// --n-close-color-pressed
|
|
21
|
+
// --n-icon-color
|
|
22
|
+
// --n-border
|
|
23
|
+
// --n-title-text-color
|
|
24
|
+
// --n-content-text-color
|
|
25
|
+
// --n-line-height
|
|
26
|
+
// --n-border-radius
|
|
27
|
+
// --n-font-size
|
|
28
|
+
// --n-title-font-weight
|
|
29
|
+
// --n-icon-size
|
|
30
|
+
// --n-icon-margin
|
|
31
|
+
// --n-close-size
|
|
32
|
+
// --n-close-margin
|
|
33
|
+
// --n-padding
|
|
34
|
+
// --n-icon-margin-left
|
|
35
|
+
// --n-icon-margin-right
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
exports.default = (0, cssr_1.cB)('alert', `
|
|
39
|
-
line-height: var(--line-height);
|
|
40
|
-
border-radius: var(--border-radius);
|
|
39
|
+
line-height: var(--n-line-height);
|
|
40
|
+
border-radius: var(--n-border-radius);
|
|
41
41
|
position: relative;
|
|
42
|
-
transition: background-color .3s var(--bezier);
|
|
43
|
-
background-color: var(--color);
|
|
42
|
+
transition: background-color .3s var(--n-bezier);
|
|
43
|
+
background-color: var(--n-color);
|
|
44
44
|
text-align: start;
|
|
45
45
|
`, [(0, cssr_1.cE)('icon', {
|
|
46
|
-
color: 'var(--icon-color)'
|
|
46
|
+
color: 'var(--n-icon-color)'
|
|
47
47
|
}), (0, cssr_1.cB)('alert-body', {
|
|
48
|
-
border: 'var(--border)',
|
|
49
|
-
padding: 'var(--padding)'
|
|
48
|
+
border: 'var(--n-border)',
|
|
49
|
+
padding: 'var(--n-padding)'
|
|
50
50
|
}, [(0, cssr_1.cE)('title', {
|
|
51
|
-
color: 'var(--title-text-color)'
|
|
51
|
+
color: 'var(--n-title-text-color)'
|
|
52
52
|
}), (0, cssr_1.cE)('content', {
|
|
53
|
-
color: 'var(--content-text-color)'
|
|
53
|
+
color: 'var(--n-content-text-color)'
|
|
54
54
|
})]), (0, fade_in_height_expand_cssr_1.default)({
|
|
55
|
-
originalTransition: 'transform .3s var(--bezier)',
|
|
55
|
+
originalTransition: 'transform .3s var(--n-bezier)',
|
|
56
56
|
enterToProps: {
|
|
57
57
|
transform: 'scale(1)'
|
|
58
58
|
},
|
|
@@ -66,32 +66,32 @@ exports.default = (0, cssr_1.cB)('alert', `
|
|
|
66
66
|
align-items: center;
|
|
67
67
|
justify-content: center;
|
|
68
68
|
display: flex;
|
|
69
|
-
width: var(--icon-size);
|
|
70
|
-
height: var(--icon-size);
|
|
71
|
-
font-size: var(--icon-size);
|
|
72
|
-
margin: var(--icon-margin);
|
|
69
|
+
width: var(--n-icon-size);
|
|
70
|
+
height: var(--n-icon-size);
|
|
71
|
+
font-size: var(--n-icon-size);
|
|
72
|
+
margin: var(--n-icon-margin);
|
|
73
73
|
`), (0, cssr_1.cE)('close', `
|
|
74
|
-
transition: color .3s var(--bezier);
|
|
74
|
+
transition: color .3s var(--n-bezier);
|
|
75
75
|
position: absolute;
|
|
76
76
|
right: 0;
|
|
77
77
|
top: 0;
|
|
78
|
-
margin: var(--close-margin);
|
|
79
|
-
font-size: var(--close-size);
|
|
78
|
+
margin: var(--n-close-margin);
|
|
79
|
+
font-size: var(--n-close-size);
|
|
80
80
|
`), (0, cssr_1.cM)('show-icon', [(0, cssr_1.cB)('alert-body', {
|
|
81
|
-
paddingLeft: 'calc(var(--icon-margin-left) + var(--icon-size) + var(--icon-margin-right))'
|
|
81
|
+
paddingLeft: 'calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))'
|
|
82
82
|
})]), (0, cssr_1.cB)('alert-body', `
|
|
83
|
-
border-radius: var(--border-radius);
|
|
84
|
-
transition: border-color .3s var(--bezier);
|
|
83
|
+
border-radius: var(--n-border-radius);
|
|
84
|
+
transition: border-color .3s var(--n-bezier);
|
|
85
85
|
`, [(0, cssr_1.cE)('title', `
|
|
86
|
-
transition: color .3s var(--bezier);
|
|
86
|
+
transition: color .3s var(--n-bezier);
|
|
87
87
|
font-size: 16px;
|
|
88
88
|
line-height: 19px;
|
|
89
|
-
font-weight: var(--title-font-weight);
|
|
89
|
+
font-weight: var(--n-title-font-weight);
|
|
90
90
|
`, [(0, cssr_1.c)('& +', [(0, cssr_1.cE)('content', {
|
|
91
91
|
marginTop: '9px'
|
|
92
92
|
})])]), (0, cssr_1.cE)('content', {
|
|
93
|
-
transition: 'color .3s var(--bezier)',
|
|
94
|
-
fontSize: 'var(--font-size)'
|
|
93
|
+
transition: 'color .3s var(--n-bezier)',
|
|
94
|
+
fontSize: 'var(--n-font-size)'
|
|
95
95
|
})]), (0, cssr_1.cE)('icon', {
|
|
96
|
-
transition: 'color .3s var(--bezier)'
|
|
96
|
+
transition: 'color .3s var(--n-bezier)'
|
|
97
97
|
})]);
|
|
@@ -41,18 +41,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
41
41
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
42
42
|
const { self: { railColor, linkColor, railColorActive, linkTextColor, linkTextColorHover, linkTextColorPressed, linkTextColorActive, linkFontSize, railWidth, linkPadding, borderRadius }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
43
43
|
return {
|
|
44
|
-
'--link-border-radius': borderRadius,
|
|
45
|
-
'--link-color': linkColor,
|
|
46
|
-
'--link-font-size': linkFontSize,
|
|
47
|
-
'--link-text-color': linkTextColor,
|
|
48
|
-
'--link-text-color-hover': linkTextColorHover,
|
|
49
|
-
'--link-text-color-active': linkTextColorActive,
|
|
50
|
-
'--link-text-color-pressed': linkTextColorPressed,
|
|
51
|
-
'--link-padding': linkPadding,
|
|
52
|
-
'--bezier': cubicBezierEaseInOut,
|
|
53
|
-
'--rail-color': railColor,
|
|
54
|
-
'--rail-color-active': railColorActive,
|
|
55
|
-
'--rail-width': railWidth
|
|
44
|
+
'--n-link-border-radius': borderRadius,
|
|
45
|
+
'--n-link-color': linkColor,
|
|
46
|
+
'--n-link-font-size': linkFontSize,
|
|
47
|
+
'--n-link-text-color': linkTextColor,
|
|
48
|
+
'--n-link-text-color-hover': linkTextColorHover,
|
|
49
|
+
'--n-link-text-color-active': linkTextColorActive,
|
|
50
|
+
'--n-link-text-color-pressed': linkTextColorPressed,
|
|
51
|
+
'--n-link-padding': linkPadding,
|
|
52
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
53
|
+
'--n-rail-color': railColor,
|
|
54
|
+
'--n-rail-color-active': railColorActive,
|
|
55
|
+
'--n-rail-width': railWidth
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
return {
|
|
@@ -5,24 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
8
|
-
// --link-color
|
|
9
|
-
// --link-font-size
|
|
10
|
-
// --link-text-color
|
|
11
|
-
// --link-text-color-hover
|
|
12
|
-
// --link-text-color-active
|
|
13
|
-
// --link-text-color-pressed
|
|
14
|
-
// --bezier
|
|
15
|
-
// --rail-color
|
|
16
|
-
// --rail-color-active
|
|
17
|
-
// --rail-width
|
|
18
|
-
// --link-padding
|
|
19
|
-
// --link-border-radius
|
|
8
|
+
// --n-link-color
|
|
9
|
+
// --n-link-font-size
|
|
10
|
+
// --n-link-text-color
|
|
11
|
+
// --n-link-text-color-hover
|
|
12
|
+
// --n-link-text-color-active
|
|
13
|
+
// --n-link-text-color-pressed
|
|
14
|
+
// --n-bezier
|
|
15
|
+
// --n-rail-color
|
|
16
|
+
// --n-rail-color-active
|
|
17
|
+
// --n-rail-width
|
|
18
|
+
// --n-link-padding
|
|
19
|
+
// --n-link-border-radius
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
exports.default = (0, cssr_1.cB)('anchor', `
|
|
23
23
|
position: relative;
|
|
24
24
|
`, [(0, cssr_1.cNotM)('block', `
|
|
25
|
-
padding-left: var(--rail-width);
|
|
25
|
+
padding-left: var(--n-rail-width);
|
|
26
26
|
`, [(0, cssr_1.cB)('anchor-link', [(0, cssr_1.c)('+, >', [(0, cssr_1.cB)('anchor-link', `
|
|
27
27
|
margin-top: .5em;
|
|
28
28
|
`)])]), (0, cssr_1.cB)('anchor-link-background', `
|
|
@@ -32,56 +32,52 @@ exports.default = (0, cssr_1.cB)('anchor', `
|
|
|
32
32
|
`), (0, cssr_1.cNotM)('show-rail', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('anchor-link', 'padding-left: 0;')])])]), (0, cssr_1.cM)('block', [(0, cssr_1.cB)('anchor-link', `
|
|
33
33
|
margin-bottom: 4px;
|
|
34
34
|
padding: 2px 8px;
|
|
35
|
-
transition: background-color .3s var(--bezier);
|
|
35
|
+
transition: background-color .3s var(--n-bezier);
|
|
36
36
|
background-color: transparent;
|
|
37
|
-
border-radius: var(--link-border-radius);
|
|
37
|
+
border-radius: var(--n-link-border-radius);
|
|
38
38
|
`, [(0, cssr_1.cM)('active', `
|
|
39
|
-
background-color: var(--link-color);
|
|
39
|
+
background-color: var(--n-link-color);
|
|
40
40
|
`)])]), (0, cssr_1.cB)('anchor-link-background', `
|
|
41
41
|
position: absolute;
|
|
42
|
-
left: calc(var(--rail-width) / 2);
|
|
42
|
+
left: calc(var(--n-rail-width) / 2);
|
|
43
43
|
width: 100%;
|
|
44
|
-
background-color: var(--link-color);
|
|
44
|
+
background-color: var(--n-link-color);
|
|
45
45
|
transition:
|
|
46
|
-
top .15s var(--bezier),
|
|
47
|
-
max-width .15s var(--bezier),
|
|
48
|
-
background-color .3s var(--bezier);
|
|
46
|
+
top .15s var(--n-bezier),
|
|
47
|
+
max-width .15s var(--n-bezier),
|
|
48
|
+
background-color .3s var(--n-bezier);
|
|
49
49
|
`), (0, cssr_1.cB)('anchor-rail', `
|
|
50
50
|
position: absolute;
|
|
51
51
|
left: 0;
|
|
52
52
|
top: 0;
|
|
53
53
|
bottom: 0;
|
|
54
|
-
width: var(--rail-width);
|
|
55
|
-
border-radius: calc(var(--rail-width) / 2);
|
|
54
|
+
width: var(--n-rail-width);
|
|
55
|
+
border-radius: calc(var(--n-rail-width) / 2);
|
|
56
56
|
overflow: hidden;
|
|
57
|
-
transition: background-color .3s var(--bezier);
|
|
58
|
-
background-color: var(--rail-color);
|
|
57
|
+
transition: background-color .3s var(--n-bezier);
|
|
58
|
+
background-color: var(--n-rail-color);
|
|
59
59
|
`, [(0, cssr_1.cE)('bar', `
|
|
60
60
|
position: absolute;
|
|
61
61
|
left: 0;
|
|
62
|
-
width: var(--rail-width);
|
|
62
|
+
width: var(--n-rail-width);
|
|
63
63
|
height: 21px;
|
|
64
64
|
background-color: #0000;
|
|
65
65
|
transition:
|
|
66
|
-
top .15s var(--bezier),
|
|
67
|
-
background-color .3s var(--bezier);
|
|
66
|
+
top .15s var(--n-bezier),
|
|
67
|
+
background-color .3s var(--n-bezier);
|
|
68
68
|
`, [(0, cssr_1.cM)('active', {
|
|
69
|
-
backgroundColor: 'var(--rail-color-active)'
|
|
69
|
+
backgroundColor: 'var(--n-rail-color-active)'
|
|
70
70
|
})])]), (0, cssr_1.cB)('anchor-link', `
|
|
71
|
-
padding: var(--link-padding);
|
|
71
|
+
padding: var(--n-link-padding);
|
|
72
72
|
position: relative;
|
|
73
73
|
line-height: 1.5;
|
|
74
|
-
font-size: var(--link-font-size);
|
|
74
|
+
font-size: var(--n-link-font-size);
|
|
75
75
|
min-height: 1.5em;
|
|
76
76
|
display: flex;
|
|
77
77
|
flex-direction: column;
|
|
78
|
-
`, [(0, cssr_1.cM)('active', [(0, cssr_1.cE)('title', `
|
|
79
|
-
color: var(--link-text-color-active);
|
|
80
|
-
`)])
|
|
81
|
-
color: var(--link-text-color-hover);
|
|
82
|
-
`)]), (0, cssr_1.c)('&:active', [(0, cssr_1.cE)('title', `
|
|
83
|
-
color: var(--link-text-color-pressed);
|
|
84
|
-
`)]), (0, cssr_1.cE)('title', `
|
|
78
|
+
`, [(0, cssr_1.cM)('active', [(0, cssr_1.c)('>', [(0, cssr_1.cE)('title', `
|
|
79
|
+
color: var(--n-link-text-color-active);
|
|
80
|
+
`)])]), (0, cssr_1.cE)('title', `
|
|
85
81
|
outline: none;
|
|
86
82
|
max-width: 100%;
|
|
87
83
|
text-decoration: none;
|
|
@@ -91,6 +87,10 @@ exports.default = (0, cssr_1.cB)('anchor', `
|
|
|
91
87
|
cursor: pointer;
|
|
92
88
|
display: inline-block;
|
|
93
89
|
padding-right: 16px;
|
|
94
|
-
transition: color .3s var(--bezier);
|
|
95
|
-
color: var(--link-text-color);
|
|
96
|
-
`
|
|
90
|
+
transition: color .3s var(--n-bezier);
|
|
91
|
+
color: var(--n-link-text-color);
|
|
92
|
+
`, [(0, cssr_1.c)('&:hover, &:focus', `
|
|
93
|
+
color: var(--n-link-text-color-hover);
|
|
94
|
+
`), (0, cssr_1.c)('&:active', `
|
|
95
|
+
color: var(--n-link-text-color-pressed);
|
|
96
|
+
`)])])]);
|
|
@@ -1072,8 +1072,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1072
1072
|
};
|
|
1073
1073
|
}>;
|
|
1074
1074
|
cssVars: import("vue").ComputedRef<{
|
|
1075
|
-
'--menu-box-shadow': string;
|
|
1076
|
-
'--bezier': string;
|
|
1075
|
+
'--n-menu-box-shadow': string;
|
|
1076
|
+
'--n-bezier': string;
|
|
1077
1077
|
}>;
|
|
1078
1078
|
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
1079
1079
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
@@ -211,8 +211,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
211
211
|
cssVars: (0, vue_1.computed)(() => {
|
|
212
212
|
const { common: { cubicBezierEaseInOut }, self: { menuBoxShadow } } = themeRef.value;
|
|
213
213
|
return {
|
|
214
|
-
'--menu-box-shadow': menuBoxShadow,
|
|
215
|
-
'--bezier': cubicBezierEaseInOut
|
|
214
|
+
'--n-menu-box-shadow': menuBoxShadow,
|
|
215
|
+
'--n-bezier': cubicBezierEaseInOut
|
|
216
216
|
};
|
|
217
217
|
}),
|
|
218
218
|
mergedBordered: mergedBorderedRef,
|
|
@@ -13,8 +13,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
14
|
|
|
15
15
|
const fade_in_scale_up_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-scale-up.cssr")); // vars:
|
|
16
|
-
// --bezier
|
|
17
|
-
// --menu-box-shadow
|
|
16
|
+
// --n-bezier
|
|
17
|
+
// --n-menu-box-shadow
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('auto-complete', `
|
|
@@ -24,7 +24,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('auto-complete', `
|
|
|
24
24
|
width: 100%;
|
|
25
25
|
`), (0, cssr_1.cB)('auto-complete-menu', `
|
|
26
26
|
margin: 4px 0;
|
|
27
|
-
box-shadow: var(--menu-box-shadow);
|
|
27
|
+
box-shadow: var(--n-menu-box-shadow);
|
|
28
28
|
`, [(0, fade_in_scale_up_cssr_1.default)({
|
|
29
|
-
originalTransition: 'background-color .3s var(--bezier)'
|
|
29
|
+
originalTransition: 'background-color .3s var(--n-bezier)'
|
|
30
30
|
})])]);
|
package/lib/avatar/index.d.ts
CHANGED
package/lib/avatar/index.js
CHANGED
|
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NAvatar = void 0;
|
|
6
|
+
exports.NAvatarGroup = exports.NAvatar = void 0;
|
|
7
7
|
var Avatar_1 = require("./src/Avatar");
|
|
8
8
|
Object.defineProperty(exports, "NAvatar", { enumerable: true, get: function () { return __importDefault(Avatar_1).default; } });
|
|
9
|
+
var AvatarGroup_1 = require("./src/AvatarGroup");
|
|
10
|
+
Object.defineProperty(exports, "NAvatarGroup", { enumerable: true, get: function () { return __importDefault(AvatarGroup_1).default; } });
|