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
|
@@ -56,30 +56,30 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
56
56
|
const { self: { color, textColor, closeColor, closeColorHover, closeColorPressed, headerTextColor, descriptionTextColor, actionTextColor, borderRadius, headerFontWeight, boxShadow, lineHeight, fontSize, closeMargin, closeSize, width, padding, [(0, _utils_1.createKey)('iconColor', type)]: iconColor }, common: { cubicBezierEaseOut, cubicBezierEaseIn, cubicBezierEaseInOut } } = mergedThemeRef.value;
|
|
57
57
|
const { left, right, top, bottom } = (0, seemly_1.getPadding)(padding);
|
|
58
58
|
return {
|
|
59
|
-
'--color': color,
|
|
60
|
-
'--font-size': fontSize,
|
|
61
|
-
'--text-color': textColor,
|
|
62
|
-
'--description-text-color': descriptionTextColor,
|
|
63
|
-
'--action-text-color': actionTextColor,
|
|
64
|
-
'--title-text-color': headerTextColor,
|
|
65
|
-
'--title-font-weight': headerFontWeight,
|
|
66
|
-
'--bezier': cubicBezierEaseInOut,
|
|
67
|
-
'--bezier-ease-out': cubicBezierEaseOut,
|
|
68
|
-
'--bezier-ease-in': cubicBezierEaseIn,
|
|
69
|
-
'--border-radius': borderRadius,
|
|
70
|
-
'--box-shadow': boxShadow,
|
|
71
|
-
'--close-color': closeColor,
|
|
72
|
-
'--close-color-hover': closeColorHover,
|
|
73
|
-
'--close-color-pressed': closeColorPressed,
|
|
74
|
-
'--line-height': lineHeight,
|
|
75
|
-
'--icon-color': iconColor,
|
|
76
|
-
'--close-margin': closeMargin,
|
|
77
|
-
'--close-size': closeSize,
|
|
78
|
-
'--width': width,
|
|
79
|
-
'--padding-left': left,
|
|
80
|
-
'--padding-right': right,
|
|
81
|
-
'--padding-top': top,
|
|
82
|
-
'--padding-bottom': bottom
|
|
59
|
+
'--n-color': color,
|
|
60
|
+
'--n-font-size': fontSize,
|
|
61
|
+
'--n-text-color': textColor,
|
|
62
|
+
'--n-description-text-color': descriptionTextColor,
|
|
63
|
+
'--n-action-text-color': actionTextColor,
|
|
64
|
+
'--n-title-text-color': headerTextColor,
|
|
65
|
+
'--n-title-font-weight': headerFontWeight,
|
|
66
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
67
|
+
'--n-bezier-ease-out': cubicBezierEaseOut,
|
|
68
|
+
'--n-bezier-ease-in': cubicBezierEaseIn,
|
|
69
|
+
'--n-border-radius': borderRadius,
|
|
70
|
+
'--n-box-shadow': boxShadow,
|
|
71
|
+
'--n-close-color': closeColor,
|
|
72
|
+
'--n-close-color-hover': closeColorHover,
|
|
73
|
+
'--n-close-color-pressed': closeColorPressed,
|
|
74
|
+
'--n-line-height': lineHeight,
|
|
75
|
+
'--n-icon-color': iconColor,
|
|
76
|
+
'--n-close-margin': closeMargin,
|
|
77
|
+
'--n-close-size': closeSize,
|
|
78
|
+
'--n-width': width,
|
|
79
|
+
'--n-padding-left': left,
|
|
80
|
+
'--n-padding-right': right,
|
|
81
|
+
'--n-padding-top': top,
|
|
82
|
+
'--n-padding-bottom': bottom
|
|
83
83
|
};
|
|
84
84
|
})
|
|
85
85
|
};
|
|
@@ -5,29 +5,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
8
|
-
// --color
|
|
9
|
-
// --text-color
|
|
10
|
-
// --description-text-color
|
|
11
|
-
// --action-text-color
|
|
12
|
-
// --title-text-color
|
|
13
|
-
// --title-font-weight
|
|
14
|
-
// --bezier
|
|
15
|
-
// --bezier-ease-out
|
|
16
|
-
// --bezier-ease-in
|
|
17
|
-
// --border-radius
|
|
18
|
-
// --box-shadow
|
|
19
|
-
// --close-margin
|
|
20
|
-
// --close-size
|
|
21
|
-
// --close-color
|
|
22
|
-
// --close-color-hover
|
|
23
|
-
// --close-color-pressed
|
|
24
|
-
// --line-height
|
|
25
|
-
// --icon-color
|
|
26
|
-
// --width
|
|
27
|
-
// --padding-top
|
|
28
|
-
// --padding-bottom
|
|
29
|
-
// --padding-left
|
|
30
|
-
// --padding-right
|
|
8
|
+
// --n-color
|
|
9
|
+
// --n-text-color
|
|
10
|
+
// --n-description-text-color
|
|
11
|
+
// --n-action-text-color
|
|
12
|
+
// --n-title-text-color
|
|
13
|
+
// --n-title-font-weight
|
|
14
|
+
// --n-bezier
|
|
15
|
+
// --n-bezier-ease-out
|
|
16
|
+
// --n-bezier-ease-in
|
|
17
|
+
// --n-border-radius
|
|
18
|
+
// --n-box-shadow
|
|
19
|
+
// --n-close-margin
|
|
20
|
+
// --n-close-size
|
|
21
|
+
// --n-close-color
|
|
22
|
+
// --n-close-color-hover
|
|
23
|
+
// --n-close-color-pressed
|
|
24
|
+
// --n-line-height
|
|
25
|
+
// --n-icon-color
|
|
26
|
+
// --n-width
|
|
27
|
+
// --n-padding-top
|
|
28
|
+
// --n-padding-bottom
|
|
29
|
+
// --n-padding-left
|
|
30
|
+
// --n-padding-right
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
@@ -83,44 +83,44 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
83
83
|
opacity: 1;
|
|
84
84
|
`), (0, cssr_1.c)('&.notification-transition-leave-active', `
|
|
85
85
|
transition:
|
|
86
|
-
background-color .3s var(--bezier),
|
|
87
|
-
color .3s var(--bezier),
|
|
88
|
-
opacity .3s var(--bezier),
|
|
89
|
-
transform .3s var(--bezier-ease-in),
|
|
90
|
-
max-height .3s var(--bezier),
|
|
86
|
+
background-color .3s var(--n-bezier),
|
|
87
|
+
color .3s var(--n-bezier),
|
|
88
|
+
opacity .3s var(--n-bezier),
|
|
89
|
+
transform .3s var(--n-bezier-ease-in),
|
|
90
|
+
max-height .3s var(--n-bezier),
|
|
91
91
|
margin-bottom .3s linear,
|
|
92
|
-
box-shadow .3s var(--bezier);
|
|
92
|
+
box-shadow .3s var(--n-bezier);
|
|
93
93
|
`)]), (0, cssr_1.cB)('notification', `
|
|
94
|
-
background-color: var(--color);
|
|
95
|
-
color: var(--text-color);
|
|
94
|
+
background-color: var(--n-color);
|
|
95
|
+
color: var(--n-text-color);
|
|
96
96
|
transition:
|
|
97
|
-
background-color .3s var(--bezier),
|
|
98
|
-
color .3s var(--bezier),
|
|
99
|
-
opacity .3s var(--bezier),
|
|
100
|
-
transform .3s var(--bezier-ease-out),
|
|
101
|
-
max-height .3s var(--bezier),
|
|
97
|
+
background-color .3s var(--n-bezier),
|
|
98
|
+
color .3s var(--n-bezier),
|
|
99
|
+
opacity .3s var(--n-bezier),
|
|
100
|
+
transform .3s var(--n-bezier-ease-out),
|
|
101
|
+
max-height .3s var(--n-bezier),
|
|
102
102
|
margin-bottom .3s linear,
|
|
103
|
-
box-shadow .3s var(--bezier);
|
|
103
|
+
box-shadow .3s var(--n-bezier);
|
|
104
104
|
font-family: inherit;
|
|
105
|
-
font-size: var(--font-size);
|
|
105
|
+
font-size: var(--n-font-size);
|
|
106
106
|
font-weight: 400;
|
|
107
107
|
position: relative;
|
|
108
108
|
display: flex;
|
|
109
109
|
overflow: hidden;
|
|
110
110
|
flex-shrink: 0;
|
|
111
111
|
margin-bottom: 12px;
|
|
112
|
-
padding-left: var(--padding-left);
|
|
113
|
-
padding-right: var(--padding-right);
|
|
114
|
-
width: var(--width);
|
|
115
|
-
border-radius: var(--border-radius);
|
|
116
|
-
box-shadow: var(--box-shadow);
|
|
112
|
+
padding-left: var(--n-padding-left);
|
|
113
|
+
padding-right: var(--n-padding-right);
|
|
114
|
+
width: var(--n-width);
|
|
115
|
+
border-radius: var(--n-border-radius);
|
|
116
|
+
box-shadow: var(--n-box-shadow);
|
|
117
117
|
box-sizing: border-box;
|
|
118
118
|
opacity: 1;
|
|
119
119
|
`, [// TODO: refactor type styles & transition
|
|
120
120
|
(0, cssr_1.cE)('avatar', [(0, cssr_1.cB)('icon', {
|
|
121
|
-
color: 'var(--icon-color)'
|
|
121
|
+
color: 'var(--n-icon-color)'
|
|
122
122
|
}), (0, cssr_1.cB)('base-icon', {
|
|
123
|
-
color: 'var(--icon-color)'
|
|
123
|
+
color: 'var(--n-icon-color)'
|
|
124
124
|
})]), (0, cssr_1.cM)('show-avatar', [(0, cssr_1.cB)('notification-main', `
|
|
125
125
|
margin-left: 40px;
|
|
126
126
|
width: calc(100% - 40px);
|
|
@@ -130,21 +130,21 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
130
130
|
position: absolute;
|
|
131
131
|
top: 0;
|
|
132
132
|
right: 0;
|
|
133
|
-
margin: var(--close-margin);
|
|
134
|
-
font-size: var(--close-size);
|
|
135
|
-
transition: color .3s var(--bezier);
|
|
133
|
+
margin: var(--n-close-margin);
|
|
134
|
+
font-size: var(--n-close-size);
|
|
135
|
+
transition: color .3s var(--n-bezier);
|
|
136
136
|
`)]), (0, cssr_1.cE)('avatar', `
|
|
137
137
|
position: absolute;
|
|
138
|
-
top: var(--padding-top);
|
|
139
|
-
left: var(--padding-left);
|
|
138
|
+
top: var(--n-padding-top);
|
|
139
|
+
left: var(--n-padding-left);
|
|
140
140
|
width: 28px;
|
|
141
141
|
height: 28px;
|
|
142
142
|
font-size: 28px;
|
|
143
143
|
`, [(0, cssr_1.cB)('icon', {
|
|
144
|
-
transition: 'color .3s var(--bezier)'
|
|
144
|
+
transition: 'color .3s var(--n-bezier)'
|
|
145
145
|
})]), (0, cssr_1.cB)('notification-main', `
|
|
146
|
-
padding-top: var(--padding-top);
|
|
147
|
-
padding-bottom: var(--padding-bottom);
|
|
146
|
+
padding-top: var(--n-padding-top);
|
|
147
|
+
padding-bottom: var(--n-padding-bottom);
|
|
148
148
|
box-sizing: border-box;
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
@@ -157,30 +157,30 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
157
157
|
margin-top: 12px;
|
|
158
158
|
`, [(0, cssr_1.cE)('meta', `
|
|
159
159
|
font-size: 12px;
|
|
160
|
-
transition: color .3s var(--bezier-ease-out);
|
|
161
|
-
color: var(--description-text-color);
|
|
160
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
161
|
+
color: var(--n-description-text-color);
|
|
162
162
|
`), (0, cssr_1.cE)('action', `
|
|
163
163
|
cursor: pointer;
|
|
164
|
-
transition: color .3s var(--bezier-ease-out);
|
|
165
|
-
color: var(--action-text-color);
|
|
164
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
165
|
+
color: var(--n-action-text-color);
|
|
166
166
|
`)]), (0, cssr_1.cE)('header', `
|
|
167
|
-
font-weight: var(--title-font-weight);
|
|
167
|
+
font-weight: var(--n-title-font-weight);
|
|
168
168
|
font-size: 16px;
|
|
169
|
-
transition: color .3s var(--bezier-ease-out);
|
|
170
|
-
color: var(--title-text-color);
|
|
169
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
170
|
+
color: var(--n-title-text-color);
|
|
171
171
|
`), (0, cssr_1.cE)('description', `
|
|
172
172
|
margin-top: 8px;
|
|
173
173
|
font-size: 12px;
|
|
174
|
-
transition: color .3s var(--bezier-ease-out);
|
|
175
|
-
color: var(--description-text-color);
|
|
174
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
175
|
+
color: var(--n-description-text-color);
|
|
176
176
|
`), (0, cssr_1.cE)('content', `
|
|
177
|
-
line-height: var(--line-height);
|
|
177
|
+
line-height: var(--n-line-height);
|
|
178
178
|
margin: 12px 0 0 0;
|
|
179
179
|
font-family: inherit;
|
|
180
180
|
white-space: pre-wrap;
|
|
181
181
|
word-wrap: break-word;
|
|
182
|
-
transition: color .3s var(--bezier-ease-out);
|
|
183
|
-
color: var(--text-color);
|
|
182
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
183
|
+
color: var(--n-text-color);
|
|
184
184
|
`, [(0, cssr_1.c)('&:first-child', {
|
|
185
185
|
margin: 0
|
|
186
186
|
})])])])])]);
|
|
@@ -0,0 +1,8 @@
|
|
|
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.NNumberAnimation = void 0;
|
|
7
|
+
var NumberAnimation_1 = require("./src/NumberAnimation");
|
|
8
|
+
Object.defineProperty(exports, "NNumberAnimation", { enumerable: true, get: function () { return __importDefault(NumberAnimation_1).default; } });
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
+
declare const numberAnimationProps: {
|
|
3
|
+
to: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
precision: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
showSeparator: BooleanConstructor;
|
|
12
|
+
from: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
active: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
duration: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare type NumberAnimationProps = ExtractPublicPropTypes<typeof numberAnimationProps>;
|
|
26
|
+
export interface NumberAnimationInst {
|
|
27
|
+
play: () => void;
|
|
28
|
+
}
|
|
29
|
+
declare const _default: import("vue").DefineComponent<{
|
|
30
|
+
to: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
precision: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
showSeparator: BooleanConstructor;
|
|
39
|
+
from: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
active: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
duration: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
play: () => void;
|
|
53
|
+
formattedValue: import("vue").ComputedRef<{
|
|
54
|
+
integer: string;
|
|
55
|
+
decimal: string;
|
|
56
|
+
}>;
|
|
57
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
58
|
+
to?: unknown;
|
|
59
|
+
precision?: unknown;
|
|
60
|
+
showSeparator?: unknown;
|
|
61
|
+
from?: unknown;
|
|
62
|
+
active?: unknown;
|
|
63
|
+
duration?: unknown;
|
|
64
|
+
} & {
|
|
65
|
+
active: boolean;
|
|
66
|
+
duration: number;
|
|
67
|
+
from: number;
|
|
68
|
+
to: number;
|
|
69
|
+
precision: number;
|
|
70
|
+
showSeparator: boolean;
|
|
71
|
+
} & {}>, {
|
|
72
|
+
active: boolean;
|
|
73
|
+
duration: number;
|
|
74
|
+
from: number;
|
|
75
|
+
to: number;
|
|
76
|
+
precision: number;
|
|
77
|
+
showSeparator: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
|
+
const utils_1 = require("./utils");
|
|
6
|
+
const numberAnimationProps = {
|
|
7
|
+
to: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: 0
|
|
10
|
+
},
|
|
11
|
+
precision: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 0
|
|
14
|
+
},
|
|
15
|
+
showSeparator: Boolean,
|
|
16
|
+
from: { type: Number, default: 0 },
|
|
17
|
+
active: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
20
|
+
},
|
|
21
|
+
duration: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 2000
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
27
|
+
name: 'NumberAnimation',
|
|
28
|
+
props: numberAnimationProps,
|
|
29
|
+
setup(props) {
|
|
30
|
+
const { duration } = props;
|
|
31
|
+
const displayedValueRef = (0, vue_1.ref)(props.from);
|
|
32
|
+
let animating = false;
|
|
33
|
+
const onUpdate = (currentValue) => {
|
|
34
|
+
displayedValueRef.value = currentValue;
|
|
35
|
+
};
|
|
36
|
+
const onFinish = () => {
|
|
37
|
+
displayedValueRef.value = props.to;
|
|
38
|
+
animating = false;
|
|
39
|
+
};
|
|
40
|
+
const animate = (from = props.from, to = props.to) => {
|
|
41
|
+
animating = true;
|
|
42
|
+
displayedValueRef.value = props.from;
|
|
43
|
+
if (from !== to) {
|
|
44
|
+
(0, utils_1.tween)({
|
|
45
|
+
from,
|
|
46
|
+
to,
|
|
47
|
+
duration: duration,
|
|
48
|
+
onUpdate,
|
|
49
|
+
onFinish
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const formattedValueRef = (0, vue_1.computed)(() => {
|
|
54
|
+
const formatted = (0, lodash_1.round)(displayedValueRef.value, props.precision).toFixed(props.precision);
|
|
55
|
+
const splitValue = formatted.split('.');
|
|
56
|
+
const integer = props.showSeparator
|
|
57
|
+
? Number(splitValue[0]).toLocaleString('en-US')
|
|
58
|
+
: splitValue[0];
|
|
59
|
+
const decimal = splitValue[1];
|
|
60
|
+
return {
|
|
61
|
+
integer,
|
|
62
|
+
decimal
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
function play() {
|
|
66
|
+
if (animating)
|
|
67
|
+
return;
|
|
68
|
+
animate();
|
|
69
|
+
}
|
|
70
|
+
(0, vue_1.onMounted)(() => {
|
|
71
|
+
(0, vue_1.watchEffect)(() => {
|
|
72
|
+
if (props.active)
|
|
73
|
+
animate();
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
const exposedMethods = { play };
|
|
77
|
+
return Object.assign({ formattedValue: formattedValueRef }, exposedMethods);
|
|
78
|
+
},
|
|
79
|
+
render() {
|
|
80
|
+
const { formattedValue: { integer, decimal } } = this;
|
|
81
|
+
return [integer, decimal ? '.' : null, decimal];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tween = void 0;
|
|
4
|
+
const easeOut = (t) => 1 - Math.pow(1 - t, 5);
|
|
5
|
+
function tween(props) {
|
|
6
|
+
const { from, to, duration, onUpdate, onFinish } = props;
|
|
7
|
+
const tick = () => {
|
|
8
|
+
const current = performance.now();
|
|
9
|
+
const elapsedTime = Math.min(current - startTime, duration);
|
|
10
|
+
const currentValue = from + (to - from) * easeOut(elapsedTime / duration);
|
|
11
|
+
if (elapsedTime === duration) {
|
|
12
|
+
onFinish();
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
onUpdate(currentValue);
|
|
16
|
+
requestAnimationFrame(tick);
|
|
17
|
+
};
|
|
18
|
+
const startTime = performance.now();
|
|
19
|
+
tick();
|
|
20
|
+
}
|
|
21
|
+
exports.tween = tween;
|
|
@@ -82,16 +82,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
82
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
83
83
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
84
84
|
cssVars: import("vue").ComputedRef<{
|
|
85
|
-
'--title-text-color': string;
|
|
86
|
-
'--title-font-size': string;
|
|
87
|
-
'--title-font-weight': string;
|
|
88
|
-
'--font-size': string;
|
|
89
|
-
'--back-size': string;
|
|
90
|
-
'--subtitle-text-color': string;
|
|
91
|
-
'--back-color': string;
|
|
92
|
-
'--back-color-hover': string;
|
|
93
|
-
'--back-color-pressed': string;
|
|
94
|
-
'--bezier': string;
|
|
85
|
+
'--n-title-text-color': string;
|
|
86
|
+
'--n-title-font-size': string;
|
|
87
|
+
'--n-title-font-weight': string;
|
|
88
|
+
'--n-font-size': string;
|
|
89
|
+
'--n-back-size': string;
|
|
90
|
+
'--n-subtitle-text-color': string;
|
|
91
|
+
'--n-back-color': string;
|
|
92
|
+
'--n-back-color-hover': string;
|
|
93
|
+
'--n-back-color-pressed': string;
|
|
94
|
+
'--n-bezier': string;
|
|
95
95
|
}>;
|
|
96
96
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
97
97
|
title?: unknown;
|
|
@@ -25,16 +25,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
25
25
|
cssVars: (0, vue_1.computed)(() => {
|
|
26
26
|
const { self: { titleTextColor, subtitleTextColor, backColor, fontSize, titleFontSize, backSize, titleFontWeight, backColorHover, backColorPressed }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
27
27
|
return {
|
|
28
|
-
'--title-text-color': titleTextColor,
|
|
29
|
-
'--title-font-size': titleFontSize,
|
|
30
|
-
'--title-font-weight': titleFontWeight,
|
|
31
|
-
'--font-size': fontSize,
|
|
32
|
-
'--back-size': backSize,
|
|
33
|
-
'--subtitle-text-color': subtitleTextColor,
|
|
34
|
-
'--back-color': backColor,
|
|
35
|
-
'--back-color-hover': backColorHover,
|
|
36
|
-
'--back-color-pressed': backColorPressed,
|
|
37
|
-
'--bezier': cubicBezierEaseInOut
|
|
28
|
+
'--n-title-text-color': titleTextColor,
|
|
29
|
+
'--n-title-font-size': titleFontSize,
|
|
30
|
+
'--n-title-font-weight': titleFontWeight,
|
|
31
|
+
'--n-font-size': fontSize,
|
|
32
|
+
'--n-back-size': backSize,
|
|
33
|
+
'--n-subtitle-text-color': subtitleTextColor,
|
|
34
|
+
'--n-back-color': backColor,
|
|
35
|
+
'--n-back-color-hover': backColorHover,
|
|
36
|
+
'--n-back-color-pressed': backColorPressed,
|
|
37
|
+
'--n-bezier': cubicBezierEaseInOut
|
|
38
38
|
};
|
|
39
39
|
})
|
|
40
40
|
};
|
|
@@ -50,8 +50,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
50
50
|
`${mergedClsPrefix}-page-header-wrapper`,
|
|
51
51
|
this.rtlEnabled && `${mergedClsPrefix}-page-header-wrapper--rtl`
|
|
52
52
|
] },
|
|
53
|
-
headerSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-header`, key: "
|
|
54
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header`, key: "header" },
|
|
53
|
+
headerSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-header`, key: "breadcrumb" }, headerSlot())) : null,
|
|
54
|
+
(showBack || avatarSlot || showTitle || showSubtitle || showExtra) && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header`, key: "header" },
|
|
55
55
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__main`, key: "back" },
|
|
56
56
|
showBack ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__back`, onClick: onBack },
|
|
57
57
|
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
@@ -60,7 +60,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
60
60
|
avatarSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__avatar` }, avatarSlot())) : null,
|
|
61
61
|
showTitle ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__title`, key: "title" }, title || titleSlot())) : null,
|
|
62
62
|
showSubtitle ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__subtitle`, key: "subtitle" }, subtitle || subtitleSlot())) : null),
|
|
63
|
-
showExtra ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__extra` }, extra || extraSlot())) : null),
|
|
63
|
+
showExtra ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__extra` }, extra || extraSlot())) : null)),
|
|
64
64
|
defaultSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-content`, key: "content" }, defaultSlot())) : null,
|
|
65
65
|
footerSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-footer`, key: "footer" }, footerSlot())) : null));
|
|
66
66
|
}
|
|
@@ -5,16 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
8
|
-
// --title-font-size
|
|
9
|
-
// --title-text-color
|
|
10
|
-
// --font-size
|
|
11
|
-
// --subtitle-text-color
|
|
12
|
-
// --back-color
|
|
13
|
-
// --back-color-hover
|
|
14
|
-
// --back-color-pressed
|
|
15
|
-
// --back-size
|
|
16
|
-
// --title-font-weight
|
|
17
|
-
// --bezier
|
|
8
|
+
// --n-title-font-size
|
|
9
|
+
// --n-title-text-color
|
|
10
|
+
// --n-font-size
|
|
11
|
+
// --n-subtitle-text-color
|
|
12
|
+
// --n-back-color
|
|
13
|
+
// --n-back-color-hover
|
|
14
|
+
// --n-back-color-pressed
|
|
15
|
+
// --n-back-size
|
|
16
|
+
// --n-title-font-weight
|
|
17
|
+
// --n-bezier
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('page-header-header', `
|
|
@@ -24,7 +24,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('page-header-header', `
|
|
|
24
24
|
align-items: center;
|
|
25
25
|
justify-content: space-between;
|
|
26
26
|
line-height: 1.5;
|
|
27
|
-
font-size: var(--font-size);
|
|
27
|
+
font-size: var(--n-font-size);
|
|
28
28
|
`, [(0, cssr_1.cE)('main', `
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-wrap: nowrap;
|
|
@@ -32,27 +32,25 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('page-header-header', `
|
|
|
32
32
|
`), (0, cssr_1.cE)('back', `
|
|
33
33
|
display: flex;
|
|
34
34
|
margin-right: 16px;
|
|
35
|
-
font-size: var(--back-size);
|
|
35
|
+
font-size: var(--n-back-size);
|
|
36
36
|
cursor: pointer;
|
|
37
|
-
color: var(--back-color);
|
|
38
|
-
transition: color .3s var(--bezier);
|
|
39
|
-
`, [(0, cssr_1.c)('&:hover', 'color: var(--back-color-hover);'), (0, cssr_1.c)('&:active', 'color: var(--back-color-pressed);')]), (0, cssr_1.cE)('avatar', `
|
|
37
|
+
color: var(--n-back-color);
|
|
38
|
+
transition: color .3s var(--n-bezier);
|
|
39
|
+
`, [(0, cssr_1.c)('&:hover', 'color: var(--n-back-color-hover);'), (0, cssr_1.c)('&:active', 'color: var(--n-back-color-pressed);')]), (0, cssr_1.cE)('avatar', `
|
|
40
40
|
display: flex;
|
|
41
41
|
margin-right: 12px
|
|
42
42
|
`), (0, cssr_1.cE)('title', `
|
|
43
43
|
margin-right: 16px;
|
|
44
|
-
transition: color .3s var(--bezier);
|
|
45
|
-
font-size: var(--title-font-size);
|
|
46
|
-
font-weight: var(--title-font-weight);
|
|
47
|
-
color: var(--title-text-color);
|
|
44
|
+
transition: color .3s var(--n-bezier);
|
|
45
|
+
font-size: var(--n-title-font-size);
|
|
46
|
+
font-weight: var(--n-title-font-weight);
|
|
47
|
+
color: var(--n-title-text-color);
|
|
48
48
|
`), (0, cssr_1.cE)('subtitle', `
|
|
49
49
|
font-size: 14px;
|
|
50
|
-
transition: color .3s var(--bezier);
|
|
51
|
-
color: var(--subtitle-text-color);
|
|
50
|
+
transition: color .3s var(--n-bezier);
|
|
51
|
+
color: var(--n-subtitle-text-color);
|
|
52
52
|
`)]), (0, cssr_1.cB)('page-header-content', `
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
margin-top: 20px;
|
|
57
|
-
font-size: var(--font-size);
|
|
58
|
-
`)]);
|
|
53
|
+
font-size: var(--n-font-size);
|
|
54
|
+
`, [(0, cssr_1.c)('&:not(:first-child)', 'margin-top: 20px;')]), (0, cssr_1.cB)('page-header-footer', `
|
|
55
|
+
font-size: var(--n-font-size);
|
|
56
|
+
`, [(0, cssr_1.c)('&:not(:first-child)', 'margin-top: 20px;')])]);
|