naive-ui 2.25.2 → 2.25.3
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/Clear.d.ts +0 -1
- package/es/_internal/clear/src/Clear.js +1 -3
- package/es/_internal/icons/replaceable.d.ts +1 -1
- package/es/_internal/icons/replaceable.js +5 -4
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/es/_internal/scrollbar/src/ScrollBar.js +35 -16
- package/es/_internal/select-menu/src/SelectMenu.d.ts +22 -23
- package/es/_internal/select-menu/src/SelectMenu.js +10 -16
- package/es/_internal/selection/src/Selection.d.ts +5 -5
- package/es/_internal/selection/src/Selection.js +20 -7
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-config.d.ts +6 -3
- package/es/_mixins/use-config.js +5 -1
- package/es/_mixins/use-css-vars-class.d.ts +1 -4
- package/es/_mixins/use-css-vars-class.js +6 -6
- package/es/_utils/vue/resolve-slot.d.ts +5 -2
- package/es/_utils/vue/resolve-slot.js +4 -3
- package/es/alert/src/Alert.d.ts +3 -1
- package/es/alert/src/Alert.js +36 -21
- package/es/anchor/src/AnchorAdapter.js +9 -3
- package/es/auto-complete/src/AutoComplete.d.ts +3 -1
- package/es/auto-complete/src/AutoComplete.js +28 -15
- package/es/avatar/src/Avatar.d.ts +3 -1
- package/es/avatar/src/Avatar.js +70 -35
- package/es/back-top/src/BackTop.d.ts +12 -49
- package/es/back-top/src/BackTop.js +60 -58
- package/es/badge/src/Badge.d.ts +12 -37
- package/es/badge/src/Badge.js +41 -31
- package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/es/breadcrumb/src/Breadcrumb.js +24 -16
- package/es/button/src/Button.d.ts +7 -6
- package/es/button/src/Button.js +31 -21
- package/es/calendar/src/Calendar.d.ts +3 -1
- package/es/calendar/src/Calendar.js +37 -30
- package/es/card/src/Card.d.ts +2 -2
- package/es/card/src/Card.js +27 -16
- package/es/carousel/src/Carousel.d.ts +3 -1
- package/es/carousel/src/Carousel.js +29 -20
- package/es/cascader/src/Cascader.d.ts +16 -1
- package/es/cascader/src/Cascader.js +53 -31
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderSelectMenu.js +2 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +6 -4
- package/es/checkbox/src/Checkbox.js +41 -32
- package/es/checkbox/src/styles/index.cssr.js +7 -7
- package/es/code/src/Code.d.ts +3 -1
- package/es/code/src/Code.js +33 -27
- package/es/collapse/src/Collapse.d.ts +3 -1
- package/es/collapse/src/Collapse.js +24 -16
- package/es/color-picker/src/ColorPicker.d.ts +3 -1
- package/es/color-picker/src/ColorPicker.js +20 -7
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +4 -4
- package/es/config-provider/src/ConfigProvider.js +3 -3
- package/es/config-provider/src/internal-interface.d.ts +3 -1
- package/es/countdown/src/Countdown.d.ts +0 -3
- package/es/countdown/src/Countdown.js +0 -1
- package/es/data-table/src/DataTable.d.ts +43 -41
- package/es/data-table/src/DataTable.js +54 -48
- package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/es/data-table/src/HeaderButton/SortButton.js +3 -2
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +4 -2
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/use-table-data.js +19 -7
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/month.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/es/descriptions/src/Descriptions.d.ts +14 -1
- package/es/descriptions/src/Descriptions.js +45 -28
- package/es/descriptions/src/styles/index.cssr.js +2 -1
- package/es/descriptions/styles/light.d.ts +1 -0
- package/es/descriptions/styles/light.js +2 -2
- package/es/dialog/src/Dialog.d.ts +3 -1
- package/es/dialog/src/Dialog.js +57 -56
- package/es/dialog/src/DialogEnvironment.js +1 -1
- package/es/divider/src/Divider.d.ts +3 -1
- package/es/divider/src/Divider.js +20 -11
- package/es/dynamic-input/src/DynamicInput.js +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +3 -1
- package/es/dynamic-tags/src/DynamicTags.js +17 -10
- package/es/element/src/Element.d.ts +3 -1
- package/es/element/src/Element.js +18 -11
- package/es/empty/src/Empty.d.ts +3 -1
- package/es/empty/src/Empty.js +28 -16
- package/es/form/src/FormItem.js +1 -2
- package/es/grid/src/Grid.js +2 -2
- package/es/icon-wrapper/src/IconWrapper.js +6 -8
- package/es/input/src/Input.d.ts +6 -3
- package/es/input/src/Input.js +96 -84
- package/es/input/src/styles/input.cssr.js +2 -2
- package/es/input-number/src/InputNumber.d.ts +6 -17
- package/es/input-number/src/InputNumber.js +79 -20
- package/es/layout/src/Layout.d.ts +8 -2
- package/es/layout/src/Layout.js +17 -10
- package/es/layout/src/LayoutContent.d.ts +4 -1
- package/es/layout/src/LayoutFooter.d.ts +3 -1
- package/es/layout/src/LayoutFooter.js +28 -19
- package/es/layout/src/LayoutHeader.d.ts +3 -1
- package/es/layout/src/LayoutHeader.js +28 -19
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/layout/src/LayoutSider.js +37 -29
- package/es/locales/common/esAR.js +2 -2
- package/es/locales/common/frFR.js +8 -9
- package/es/locales/common/skSK.d.ts +3 -0
- package/es/locales/common/skSK.js +110 -0
- package/es/locales/date/skSK.d.ts +3 -0
- package/es/locales/date/skSK.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 +4 -1
- package/es/log/src/Log.js +20 -15
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/interface.d.ts +4 -0
- package/es/menu/src/Menu.d.ts +3 -1
- package/es/menu/src/Menu.js +68 -63
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +11 -14
- package/es/modal/src/Modal.js +41 -32
- package/es/notification/src/styles/index.cssr.js +6 -5
- package/es/page-header/src/PageHeader.d.ts +3 -1
- package/es/page-header/src/PageHeader.js +27 -18
- package/es/pagination/src/Pagination.d.ts +13 -1
- package/es/pagination/src/Pagination.js +59 -52
- package/es/popover/src/PopoverBody.js +10 -4
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/progress/src/Progress.js +12 -6
- package/es/radio/src/Radio.d.ts +3 -1
- package/es/radio/src/Radio.js +32 -23
- package/es/radio/src/RadioGroup.d.ts +3 -1
- package/es/radio/src/RadioGroup.js +31 -22
- package/es/rate/src/Rate.d.ts +3 -1
- package/es/rate/src/Rate.js +44 -23
- package/es/result/src/Result.d.ts +4 -2
- package/es/result/src/Result.js +36 -19
- package/es/scrollbar/src/ScrollBar.d.ts +12 -1
- package/es/scrollbar/src/ScrollBar.js +4 -0
- package/es/select/src/Select.d.ts +1 -1
- package/es/select/src/Select.js +5 -4
- package/es/spin/src/Spin.d.ts +3 -1
- package/es/spin/src/Spin.js +31 -21
- package/es/statistic/src/Statistic.d.ts +3 -1
- package/es/statistic/src/Statistic.js +29 -21
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.d.ts +13 -1
- package/es/switch/src/Switch.js +85 -60
- package/es/switch/src/styles/index.cssr.js +21 -8
- package/es/switch/styles/dark.js +2 -2
- package/es/switch/styles/light.d.ts +1 -0
- package/es/switch/styles/light.js +2 -2
- package/es/table/src/Table.d.ts +3 -1
- package/es/table/src/Table.js +40 -29
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/Tabs.d.ts +25 -23
- package/es/tabs/src/Tabs.js +50 -44
- package/es/tabs/src/styles/index.cssr.js +77 -77
- package/es/tag/src/Tag.d.ts +2 -2
- package/es/tag/src/Tag.js +8 -11
- package/es/theme-editor/src/ThemeEditor.js +4 -3
- package/es/themes/dark.js +3 -1
- package/es/themes/light.js +3 -1
- package/es/thing/src/Thing.js +10 -3
- package/es/time-picker/src/TimePicker.d.ts +4 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/Tree.js +8 -4
- package/es/tree-select/src/TreeSelect.d.ts +13 -0
- package/es/tree-select/src/TreeSelect.js +6 -2
- package/es/typography/src/a.d.ts +3 -1
- package/es/typography/src/a.js +18 -10
- package/es/typography/src/blockquote.d.ts +3 -1
- package/es/typography/src/blockquote.js +21 -12
- package/es/typography/src/create-header.d.ts +3 -1
- package/es/typography/src/create-header.js +25 -16
- package/es/typography/src/headers.d.ts +18 -6
- package/es/typography/src/hr.d.ts +3 -1
- package/es/typography/src/hr.js +18 -10
- package/es/typography/src/ol.d.ts +3 -1
- package/es/typography/src/ol.js +23 -14
- package/es/typography/src/p.d.ts +3 -1
- package/es/typography/src/p.js +23 -15
- package/es/typography/src/text.d.ts +3 -1
- package/es/typography/src/text.js +31 -23
- package/es/typography/src/ul.d.ts +3 -1
- package/es/typography/src/ul.js +23 -14
- package/es/upload/src/interface.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/index.d.ts +2 -0
- package/es/watermark/index.js +1 -0
- package/es/watermark/src/Watermark.d.ts +285 -0
- package/es/watermark/src/Watermark.js +159 -0
- package/es/watermark/src/styles/index.cssr.d.ts +2 -0
- package/es/watermark/src/styles/index.cssr.js +14 -0
- package/es/watermark/styles/dark.d.ts +3 -0
- package/es/watermark/styles/dark.js +12 -0
- package/es/watermark/styles/index.d.ts +3 -0
- package/es/watermark/styles/index.js +2 -0
- package/es/watermark/styles/light.d.ts +5 -0
- package/es/watermark/styles/light.js +13 -0
- package/lib/_internal/clear/src/Clear.d.ts +0 -1
- package/lib/_internal/clear/src/Clear.js +0 -2
- package/lib/_internal/icons/replaceable.d.ts +1 -1
- package/lib/_internal/icons/replaceable.js +4 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -23
- package/lib/_internal/select-menu/src/SelectMenu.js +9 -15
- package/lib/_internal/selection/src/Selection.d.ts +5 -5
- package/lib/_internal/selection/src/Selection.js +19 -6
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +1 -2
- package/lib/_mixins/use-config.d.ts +6 -3
- package/lib/_mixins/use-config.js +5 -1
- package/lib/_mixins/use-css-vars-class.d.ts +1 -4
- package/lib/_mixins/use-css-vars-class.js +7 -7
- package/lib/_utils/vue/resolve-slot.d.ts +5 -2
- package/lib/_utils/vue/resolve-slot.js +4 -3
- package/lib/alert/src/Alert.d.ts +3 -1
- package/lib/alert/src/Alert.js +34 -19
- package/lib/anchor/src/AnchorAdapter.js +8 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -1
- package/lib/auto-complete/src/AutoComplete.js +27 -14
- package/lib/avatar/src/Avatar.d.ts +3 -1
- package/lib/avatar/src/Avatar.js +68 -33
- package/lib/back-top/src/BackTop.d.ts +12 -49
- package/lib/back-top/src/BackTop.js +57 -55
- package/lib/badge/src/Badge.d.ts +12 -37
- package/lib/badge/src/Badge.js +39 -29
- package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/lib/breadcrumb/src/Breadcrumb.js +23 -15
- package/lib/button/src/Button.d.ts +7 -6
- package/lib/button/src/Button.js +29 -19
- package/lib/calendar/src/Calendar.d.ts +3 -1
- package/lib/calendar/src/Calendar.js +36 -29
- package/lib/card/src/Card.d.ts +2 -2
- package/lib/card/src/Card.js +25 -14
- package/lib/carousel/src/Carousel.d.ts +3 -1
- package/lib/carousel/src/Carousel.js +27 -18
- package/lib/cascader/src/Cascader.d.ts +16 -1
- package/lib/cascader/src/Cascader.js +52 -30
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderSelectMenu.js +2 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +6 -4
- package/lib/checkbox/src/Checkbox.js +40 -31
- package/lib/checkbox/src/styles/index.cssr.js +7 -7
- package/lib/code/src/Code.d.ts +3 -1
- package/lib/code/src/Code.js +32 -26
- package/lib/collapse/src/Collapse.d.ts +3 -1
- package/lib/collapse/src/Collapse.js +23 -15
- package/lib/color-picker/src/ColorPicker.d.ts +3 -1
- package/lib/color-picker/src/ColorPicker.js +19 -6
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/src/ConfigProvider.js +3 -3
- package/lib/config-provider/src/internal-interface.d.ts +3 -1
- package/lib/countdown/src/Countdown.d.ts +0 -3
- package/lib/countdown/src/Countdown.js +0 -1
- package/lib/data-table/src/DataTable.d.ts +43 -41
- package/lib/data-table/src/DataTable.js +53 -47
- package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/use-table-data.js +19 -7
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/month.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/lib/descriptions/src/Descriptions.d.ts +14 -1
- package/lib/descriptions/src/Descriptions.js +44 -27
- package/lib/descriptions/src/styles/index.cssr.js +2 -1
- package/lib/descriptions/styles/light.d.ts +1 -0
- package/lib/descriptions/styles/light.js +2 -2
- package/lib/dialog/src/Dialog.d.ts +3 -1
- package/lib/dialog/src/Dialog.js +55 -54
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/divider/src/Divider.d.ts +3 -1
- package/lib/divider/src/Divider.js +19 -10
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +3 -1
- package/lib/dynamic-tags/src/DynamicTags.js +16 -9
- package/lib/element/src/Element.d.ts +3 -1
- package/lib/element/src/Element.js +17 -10
- package/lib/empty/src/Empty.d.ts +3 -1
- package/lib/empty/src/Empty.js +27 -15
- package/lib/form/src/FormItem.js +1 -2
- package/lib/grid/src/Grid.js +2 -2
- package/lib/icon-wrapper/src/IconWrapper.js +5 -7
- package/lib/input/src/Input.d.ts +6 -3
- package/lib/input/src/Input.js +95 -83
- package/lib/input/src/styles/input.cssr.js +2 -2
- package/lib/input-number/src/InputNumber.d.ts +6 -17
- package/lib/input-number/src/InputNumber.js +76 -17
- package/lib/layout/src/Layout.d.ts +8 -2
- package/lib/layout/src/Layout.js +16 -9
- package/lib/layout/src/LayoutContent.d.ts +4 -1
- package/lib/layout/src/LayoutFooter.d.ts +3 -1
- package/lib/layout/src/LayoutFooter.js +27 -18
- package/lib/layout/src/LayoutHeader.d.ts +3 -1
- package/lib/layout/src/LayoutHeader.js +27 -18
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/layout/src/LayoutSider.js +36 -28
- package/lib/locales/common/esAR.js +2 -2
- package/lib/locales/common/frFR.js +8 -9
- package/lib/locales/common/skSK.d.ts +3 -0
- package/lib/locales/common/skSK.js +112 -0
- package/lib/locales/date/skSK.d.ts +3 -0
- package/lib/locales/date/skSK.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 +4 -1
- package/lib/log/src/Log.js +19 -14
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +4 -0
- package/lib/menu/src/Menu.d.ts +3 -1
- package/lib/menu/src/Menu.js +67 -62
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +11 -14
- package/lib/modal/src/Modal.js +40 -31
- package/lib/notification/src/styles/index.cssr.js +6 -5
- package/lib/page-header/src/PageHeader.d.ts +3 -1
- package/lib/page-header/src/PageHeader.js +26 -17
- package/lib/pagination/src/Pagination.d.ts +13 -1
- package/lib/pagination/src/Pagination.js +58 -51
- package/lib/popover/src/PopoverBody.js +9 -3
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/progress/src/Progress.js +11 -5
- package/lib/radio/src/Radio.d.ts +3 -1
- package/lib/radio/src/Radio.js +31 -22
- package/lib/radio/src/RadioGroup.d.ts +3 -1
- package/lib/radio/src/RadioGroup.js +30 -21
- package/lib/rate/src/Rate.d.ts +3 -1
- package/lib/rate/src/Rate.js +42 -21
- package/lib/result/src/Result.d.ts +4 -2
- package/lib/result/src/Result.js +35 -18
- package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
- package/lib/scrollbar/src/ScrollBar.js +4 -0
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/select/src/Select.js +5 -4
- package/lib/spin/src/Spin.d.ts +3 -1
- package/lib/spin/src/Spin.js +30 -20
- package/lib/statistic/src/Statistic.d.ts +3 -1
- package/lib/statistic/src/Statistic.js +28 -20
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +9 -7
- package/lib/switch/src/Switch.d.ts +13 -1
- package/lib/switch/src/Switch.js +81 -56
- package/lib/switch/src/styles/index.cssr.js +21 -8
- package/lib/switch/styles/dark.js +2 -2
- package/lib/switch/styles/light.d.ts +1 -0
- package/lib/switch/styles/light.js +2 -2
- package/lib/table/src/Table.d.ts +3 -1
- package/lib/table/src/Table.js +39 -28
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/tabs/src/Tabs.d.ts +25 -23
- package/lib/tabs/src/Tabs.js +48 -42
- package/lib/tabs/src/styles/index.cssr.js +77 -77
- package/lib/tag/src/Tag.d.ts +2 -2
- package/lib/tag/src/Tag.js +7 -10
- package/lib/theme-editor/src/ThemeEditor.js +2 -1
- package/lib/themes/dark.js +3 -1
- package/lib/themes/light.js +3 -1
- package/lib/thing/src/Thing.js +9 -2
- package/lib/time-picker/src/TimePicker.d.ts +4 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/Tree.js +8 -4
- package/lib/tree-select/src/TreeSelect.d.ts +13 -0
- package/lib/tree-select/src/TreeSelect.js +6 -2
- package/lib/typography/src/a.d.ts +3 -1
- package/lib/typography/src/a.js +17 -9
- package/lib/typography/src/blockquote.d.ts +3 -1
- package/lib/typography/src/blockquote.js +20 -11
- package/lib/typography/src/create-header.d.ts +3 -1
- package/lib/typography/src/create-header.js +24 -15
- package/lib/typography/src/headers.d.ts +18 -6
- package/lib/typography/src/hr.d.ts +3 -1
- package/lib/typography/src/hr.js +17 -9
- package/lib/typography/src/ol.d.ts +3 -1
- package/lib/typography/src/ol.js +22 -13
- package/lib/typography/src/p.d.ts +3 -1
- package/lib/typography/src/p.js +22 -14
- package/lib/typography/src/text.d.ts +3 -1
- package/lib/typography/src/text.js +30 -22
- package/lib/typography/src/ul.d.ts +3 -1
- package/lib/typography/src/ul.js +22 -13
- package/lib/upload/src/interface.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/index.d.ts +2 -0
- package/lib/watermark/index.js +8 -0
- package/lib/watermark/src/Watermark.d.ts +285 -0
- package/lib/watermark/src/Watermark.js +164 -0
- package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
- package/lib/watermark/src/styles/index.cssr.js +21 -0
- package/lib/watermark/styles/dark.d.ts +3 -0
- package/lib/watermark/styles/dark.js +14 -0
- package/lib/watermark/styles/index.d.ts +3 -0
- package/lib/watermark/styles/index.js +10 -0
- package/lib/watermark/styles/light.d.ts +5 -0
- package/lib/watermark/styles/light.js +15 -0
- package/package.json +8 -9
- package/volar.d.ts +1 -0
- package/web-types.json +252 -29
package/es/result/src/Result.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, defineComponent, computed } from 'vue';
|
|
2
|
-
import { useConfig, useTheme } from '../../_mixins';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
3
|
import { createKey } from '../../_utils';
|
|
4
4
|
import { InfoIcon, SuccessIcon, WarningIcon, ErrorIcon } from '../../_internal/icons';
|
|
5
5
|
import { NBaseIcon } from '../../_internal';
|
|
@@ -30,31 +30,48 @@ export default defineComponent({
|
|
|
30
30
|
name: 'Result',
|
|
31
31
|
props: resultProps,
|
|
32
32
|
setup(props) {
|
|
33
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
33
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
34
34
|
const themeRef = useTheme('Result', '-result', style, resultLight, props, mergedClsPrefixRef);
|
|
35
|
+
const cssVarsRef = computed(() => {
|
|
36
|
+
const { size, status } = props;
|
|
37
|
+
const { common: { cubicBezierEaseInOut }, self: { textColor, lineHeight, titleTextColor, titleFontWeight, [createKey('iconColor', status)]: iconColor, [createKey('fontSize', size)]: fontSize, [createKey('titleFontSize', size)]: titleFontSize, [createKey('iconSize', size)]: iconSize } } = themeRef.value;
|
|
38
|
+
return {
|
|
39
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
40
|
+
'--n-font-size': fontSize,
|
|
41
|
+
'--n-icon-size': iconSize,
|
|
42
|
+
'--n-line-height': lineHeight,
|
|
43
|
+
'--n-text-color': textColor,
|
|
44
|
+
'--n-title-font-size': titleFontSize,
|
|
45
|
+
'--n-title-font-weight': titleFontWeight,
|
|
46
|
+
'--n-title-text-color': titleTextColor,
|
|
47
|
+
'--n-icon-color': iconColor || ''
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
const themeClassHandle = inlineThemeDisabled
|
|
51
|
+
? useThemeClass('result', computed(() => {
|
|
52
|
+
const { size, status } = props;
|
|
53
|
+
let hash = '';
|
|
54
|
+
if (size) {
|
|
55
|
+
hash += size[0];
|
|
56
|
+
}
|
|
57
|
+
if (status) {
|
|
58
|
+
hash += status[0];
|
|
59
|
+
}
|
|
60
|
+
return hash;
|
|
61
|
+
}), cssVarsRef, props)
|
|
62
|
+
: undefined;
|
|
35
63
|
return {
|
|
36
64
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
37
|
-
cssVars:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return {
|
|
41
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
42
|
-
'--n-font-size': fontSize,
|
|
43
|
-
'--n-icon-size': iconSize,
|
|
44
|
-
'--n-line-height': lineHeight,
|
|
45
|
-
'--n-text-color': textColor,
|
|
46
|
-
'--n-title-font-size': titleFontSize,
|
|
47
|
-
'--n-title-font-weight': titleFontWeight,
|
|
48
|
-
'--n-title-text-color': titleTextColor,
|
|
49
|
-
'--n-icon-color': iconColor
|
|
50
|
-
};
|
|
51
|
-
})
|
|
65
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
66
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
67
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
52
68
|
};
|
|
53
69
|
},
|
|
54
70
|
render() {
|
|
55
71
|
var _a;
|
|
56
|
-
const { status, $slots, mergedClsPrefix } = this;
|
|
57
|
-
|
|
72
|
+
const { status, $slots, mergedClsPrefix, onRender } = this;
|
|
73
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
74
|
+
return (h("div", { class: [`${mergedClsPrefix}-result`, this.themeClass], style: this.cssVars },
|
|
58
75
|
h("div", { class: `${mergedClsPrefix}-result-icon` }, ((_a = $slots.icon) === null || _a === void 0 ? void 0 : _a.call($slots)) || (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => iconMap[status] }))),
|
|
59
76
|
h("div", { class: `${mergedClsPrefix}-result-header` },
|
|
60
77
|
this.title ? (h("div", { class: `${mergedClsPrefix}-result-header__title` }, this.title)) : null,
|
|
@@ -8,8 +8,10 @@ export interface ScrollTo {
|
|
|
8
8
|
behavior?: ScrollBehavior;
|
|
9
9
|
}): void;
|
|
10
10
|
}
|
|
11
|
+
export declare type ScrollBy = ScrollTo;
|
|
11
12
|
export interface ScrollbarInst {
|
|
12
13
|
scrollTo: ScrollTo;
|
|
14
|
+
scrollBy: ScrollBy;
|
|
13
15
|
}
|
|
14
16
|
declare const scrollbarProps: {
|
|
15
17
|
readonly xScrollable: BooleanConstructor;
|
|
@@ -45,9 +47,18 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
45
47
|
}, any>>>;
|
|
46
48
|
}, {
|
|
47
49
|
scrollbarInstRef: import("vue").Ref<{
|
|
48
|
-
|
|
50
|
+
containerRef: HTMLElement | null;
|
|
51
|
+
contentRef: HTMLElement | null;
|
|
52
|
+
containerScrollTop: number;
|
|
53
|
+
syncUnifiedContainer: () => void;
|
|
54
|
+
scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
55
|
+
scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
56
|
+
sync: () => void;
|
|
57
|
+
handleMouseEnterWrapper: () => void;
|
|
58
|
+
handleMouseLeaveWrapper: () => void;
|
|
49
59
|
} | null>;
|
|
50
60
|
scrollTo: ScrollTo;
|
|
61
|
+
scrollBy: ScrollBy;
|
|
51
62
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
63
|
readonly xScrollable: BooleanConstructor;
|
|
53
64
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
@@ -11,6 +11,10 @@ const Scrollbar = defineComponent({
|
|
|
11
11
|
scrollTo: (...args) => {
|
|
12
12
|
var _a;
|
|
13
13
|
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(args[0], args[1]);
|
|
14
|
+
},
|
|
15
|
+
scrollBy: (...args) => {
|
|
16
|
+
var _a;
|
|
17
|
+
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollBy(args[0], args[1]);
|
|
14
18
|
}
|
|
15
19
|
};
|
|
16
20
|
return Object.assign(Object.assign({}, exposedMethods), { scrollbarInstRef });
|
|
@@ -998,7 +998,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
998
998
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
999
999
|
focused: import("vue").Ref<boolean>;
|
|
1000
1000
|
activeWithoutMenuOpen: import("vue").Ref<boolean>;
|
|
1001
|
-
|
|
1001
|
+
inlineThemeDisabled: boolean | undefined;
|
|
1002
1002
|
onTriggerInputFocus: () => void;
|
|
1003
1003
|
onTriggerInputBlur: () => void;
|
|
1004
1004
|
handleMenuFocus: (e: FocusEvent) => void;
|
package/es/select/src/Select.js
CHANGED
|
@@ -83,7 +83,7 @@ export default defineComponent({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
const { mergedClsPrefixRef, mergedBorderedRef, namespaceRef,
|
|
86
|
+
const { mergedClsPrefixRef, mergedBorderedRef, namespaceRef, inlineThemeDisabled } = useConfig(props);
|
|
87
87
|
const themeRef = useTheme('Select', '-select', style, selectLight, props, mergedClsPrefixRef);
|
|
88
88
|
const uncontrolledValueRef = ref(props.defaultValue);
|
|
89
89
|
const controlledValueRef = toRef(props, 'value');
|
|
@@ -568,7 +568,8 @@ export default defineComponent({
|
|
|
568
568
|
}
|
|
569
569
|
};
|
|
570
570
|
return Object.assign(Object.assign({}, exposedMethods), { mergedStatus: mergedStatusRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, namespace: namespaceRef, treeMate: treeMateRef, isMounted: useIsMounted(), triggerRef,
|
|
571
|
-
menuRef, pattern: patternRef, uncontrolledShow: uncontrolledShowRef, mergedShow: mergedShowRef, adjustedTo: useAdjustedTo(props), uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, followerRef, localizedPlaceholder: localizedPlaceholderRef, selectedOption: selectedOptionRef, selectedOptions: selectedOptionsRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, focused: focusedRef, activeWithoutMenuOpen: activeWithoutMenuOpenRef,
|
|
571
|
+
menuRef, pattern: patternRef, uncontrolledShow: uncontrolledShowRef, mergedShow: mergedShowRef, adjustedTo: useAdjustedTo(props), uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, followerRef, localizedPlaceholder: localizedPlaceholderRef, selectedOption: selectedOptionRef, selectedOptions: selectedOptionsRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, focused: focusedRef, activeWithoutMenuOpen: activeWithoutMenuOpenRef, inlineThemeDisabled,
|
|
572
|
+
onTriggerInputFocus,
|
|
572
573
|
onTriggerInputBlur,
|
|
573
574
|
handleMenuFocus,
|
|
574
575
|
handleMenuBlur,
|
|
@@ -593,7 +594,7 @@ export default defineComponent({
|
|
|
593
594
|
h(VBinder, null, {
|
|
594
595
|
default: () => [
|
|
595
596
|
h(VTarget, null, {
|
|
596
|
-
default: () => (h(NInternalSelection, { ref: "triggerRef",
|
|
597
|
+
default: () => (h(NInternalSelection, { ref: "triggerRef", inlineThemeDisabled: this.inlineThemeDisabled, status: this.mergedStatus, inputProps: this.inputProps, clsPrefix: this.mergedClsPrefix, showArrow: this.showArrow, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, active: this.activeWithoutMenuOpen || this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, renderTag: this.renderTag, renderLabel: this.renderLabel, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, loading: this.loading, focused: this.focused, onClick: this.handleTriggerClick, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onClear: this.handleClear, onBlur: this.handleTriggerBlur, onFocus: this.handleTriggerFocus, onKeydown: this.handleKeydown, onPatternBlur: this.onTriggerInputBlur, onPatternFocus: this.onTriggerInputFocus }, {
|
|
597
598
|
arrow: () => { var _a, _b; return [(_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)]; }
|
|
598
599
|
}))
|
|
599
600
|
}),
|
|
@@ -603,7 +604,7 @@ export default defineComponent({
|
|
|
603
604
|
var _a, _b;
|
|
604
605
|
return (this.mergedShow ||
|
|
605
606
|
this.displayDirective === 'show') &&
|
|
606
|
-
withDirectives(h(NInternalSelectMenu, Object.assign({}, this.menuProps, { ref: "menuRef",
|
|
607
|
+
withDirectives(h(NInternalSelectMenu, Object.assign({}, this.menuProps, { ref: "menuRef", inlineThemeDisabled: this.inlineThemeDisabled, virtualScroll: this.consistentMenuWidth && this.virtualScroll, class: [
|
|
607
608
|
`${this.mergedClsPrefix}-select-menu`,
|
|
608
609
|
(_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.class
|
|
609
610
|
], clsPrefix: this.mergedClsPrefix, focusable: true, autoPending: true, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
|
package/es/spin/src/Spin.d.ts
CHANGED
|
@@ -120,7 +120,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
'--n-size': string;
|
|
121
121
|
'--n-color': string;
|
|
122
122
|
'--n-text-color': string;
|
|
123
|
-
}
|
|
123
|
+
}> | undefined;
|
|
124
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
125
|
+
onRender: (() => void) | undefined;
|
|
124
126
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
125
127
|
description: StringConstructor;
|
|
126
128
|
stroke: StringConstructor;
|
package/es/spin/src/Spin.js
CHANGED
|
@@ -2,7 +2,7 @@ import { computed, defineComponent, h, Transition, watchEffect } from 'vue';
|
|
|
2
2
|
import { useCompitable } from 'vooks';
|
|
3
3
|
import { pxfy } from 'seemly';
|
|
4
4
|
import { NBaseLoading } from '../../_internal';
|
|
5
|
-
import { useConfig, useTheme } from '../../_mixins';
|
|
5
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
6
6
|
import { createKey, warnOnce } from '../../_utils';
|
|
7
7
|
import { spinLight } from '../styles';
|
|
8
8
|
import style from './styles/index.cssr';
|
|
@@ -38,8 +38,29 @@ export default defineComponent({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
41
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
42
42
|
const themeRef = useTheme('Spin', '-spin', style, spinLight, props, mergedClsPrefixRef);
|
|
43
|
+
const cssVarsRef = computed(() => {
|
|
44
|
+
const { size: spinSize } = props;
|
|
45
|
+
const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
|
|
46
|
+
const { opacitySpinning, color, textColor } = self;
|
|
47
|
+
const size = typeof spinSize === 'number'
|
|
48
|
+
? pxfy(spinSize)
|
|
49
|
+
: self[createKey('size', spinSize)];
|
|
50
|
+
return {
|
|
51
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
52
|
+
'--n-opacity-spinning': opacitySpinning,
|
|
53
|
+
'--n-size': size,
|
|
54
|
+
'--n-color': color,
|
|
55
|
+
'--n-text-color': textColor
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
const themeClassHandle = inlineThemeDisabled
|
|
59
|
+
? useThemeClass('spin', computed(() => {
|
|
60
|
+
const { size } = props;
|
|
61
|
+
return typeof size === 'number' ? String(size) : size[0];
|
|
62
|
+
}), cssVarsRef, props)
|
|
63
|
+
: undefined;
|
|
43
64
|
return {
|
|
44
65
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
45
66
|
compitableShow: useCompitable(props, ['spinning', 'show']),
|
|
@@ -50,37 +71,26 @@ export default defineComponent({
|
|
|
50
71
|
const { size } = props;
|
|
51
72
|
return STROKE_WIDTH[typeof size === 'number' ? 'medium' : size];
|
|
52
73
|
}),
|
|
53
|
-
cssVars:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const { opacitySpinning, color, textColor } = self;
|
|
57
|
-
const size = typeof spinSize === 'number'
|
|
58
|
-
? pxfy(spinSize)
|
|
59
|
-
: self[createKey('size', spinSize)];
|
|
60
|
-
return {
|
|
61
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
62
|
-
'--n-opacity-spinning': opacitySpinning,
|
|
63
|
-
'--n-size': size,
|
|
64
|
-
'--n-color': color,
|
|
65
|
-
'--n-text-color': textColor
|
|
66
|
-
};
|
|
67
|
-
})
|
|
74
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
75
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
76
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
68
77
|
};
|
|
69
78
|
},
|
|
70
79
|
render() {
|
|
71
|
-
var _a;
|
|
80
|
+
var _a, _b;
|
|
72
81
|
const { $slots, mergedClsPrefix, description } = this;
|
|
73
82
|
const rotate = $slots.icon && this.rotate;
|
|
74
83
|
const descriptionNode = (description || $slots.description) && (h("div", { class: `${mergedClsPrefix}-spin-description` }, description || ((_a = $slots.description) === null || _a === void 0 ? void 0 : _a.call($slots))));
|
|
75
|
-
const icon = $slots.icon ? (h("div", { class: `${mergedClsPrefix}-spin-body
|
|
84
|
+
const icon = $slots.icon ? (h("div", { class: [`${mergedClsPrefix}-spin-body`, this.themeClass] },
|
|
76
85
|
h("div", { class: [
|
|
77
86
|
`${mergedClsPrefix}-spin`,
|
|
78
87
|
rotate && `${mergedClsPrefix}-spin--rotate`
|
|
79
88
|
], style: $slots.default ? '' : this.cssVars }, $slots.icon()),
|
|
80
|
-
descriptionNode)) : (h("div", { class: `${mergedClsPrefix}-spin-body
|
|
89
|
+
descriptionNode)) : (h("div", { class: [`${mergedClsPrefix}-spin-body`, this.themeClass] },
|
|
81
90
|
h(NBaseLoading, { clsPrefix: mergedClsPrefix, style: $slots.default ? '' : this.cssVars, stroke: this.stroke, "stroke-width": this.mergedStrokeWidth, class: `${mergedClsPrefix}-spin` }),
|
|
82
91
|
descriptionNode));
|
|
83
|
-
|
|
92
|
+
(_b = this.onRender) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
93
|
+
return $slots.default ? (h("div", { class: [`${mergedClsPrefix}-spin-container`, this.themeClass], style: this.cssVars },
|
|
84
94
|
h("div", { class: [
|
|
85
95
|
`${mergedClsPrefix}-spin-content`,
|
|
86
96
|
this.compitableShow && `${mergedClsPrefix}-spin-content--spinning`
|
|
@@ -74,7 +74,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
'--n-value-prefix-text-color': string;
|
|
75
75
|
'--n-value-suffix-text-color': string;
|
|
76
76
|
'--n-value-text-color': string;
|
|
77
|
-
}
|
|
77
|
+
}> | undefined;
|
|
78
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
79
|
+
onRender: (() => void) | undefined;
|
|
78
80
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
81
|
tabularNums: BooleanConstructor;
|
|
80
82
|
label: StringConstructor;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, h } from 'vue';
|
|
2
|
-
import { useConfig, useTheme } from '../../_mixins';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
|
+
import { resolveWrappedSlot } from '../../_utils';
|
|
3
4
|
import { statisticLight } from '../styles';
|
|
4
5
|
import style from './styles/index.cssr';
|
|
5
6
|
const statisticProps = Object.assign(Object.assign({}, useTheme.props), { tabularNums: Boolean, label: String, value: [String, Number] });
|
|
@@ -7,35 +8,42 @@ export default defineComponent({
|
|
|
7
8
|
name: 'Statistic',
|
|
8
9
|
props: statisticProps,
|
|
9
10
|
setup(props) {
|
|
10
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
11
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
11
12
|
const themeRef = useTheme('Statistic', '-statistic', style, statisticLight, props, mergedClsPrefixRef);
|
|
13
|
+
const cssVarsRef = computed(() => {
|
|
14
|
+
const { self: { labelFontWeight, valueFontWeight, valuePrefixTextColor, labelTextColor, valueSuffixTextColor, valueTextColor, labelFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
15
|
+
return {
|
|
16
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
17
|
+
'--n-label-font-size': labelFontSize,
|
|
18
|
+
'--n-label-font-weight': labelFontWeight,
|
|
19
|
+
'--n-label-text-color': labelTextColor,
|
|
20
|
+
'--n-value-font-weight': valueFontWeight,
|
|
21
|
+
'--n-value-prefix-text-color': valuePrefixTextColor,
|
|
22
|
+
'--n-value-suffix-text-color': valueSuffixTextColor,
|
|
23
|
+
'--n-value-text-color': valueTextColor
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
const themeClassHandle = inlineThemeDisabled
|
|
27
|
+
? useThemeClass('statistic', undefined, cssVarsRef, props)
|
|
28
|
+
: undefined;
|
|
12
29
|
return {
|
|
13
30
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
14
|
-
cssVars:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
18
|
-
'--n-label-font-size': labelFontSize,
|
|
19
|
-
'--n-label-font-weight': labelFontWeight,
|
|
20
|
-
'--n-label-text-color': labelTextColor,
|
|
21
|
-
'--n-value-font-weight': valueFontWeight,
|
|
22
|
-
'--n-value-prefix-text-color': valuePrefixTextColor,
|
|
23
|
-
'--n-value-suffix-text-color': valueSuffixTextColor,
|
|
24
|
-
'--n-value-text-color': valueTextColor
|
|
25
|
-
};
|
|
26
|
-
})
|
|
31
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
32
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
33
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
27
34
|
};
|
|
28
35
|
},
|
|
29
36
|
render() {
|
|
30
37
|
var _a;
|
|
31
|
-
const { $slots,
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
const { mergedClsPrefix, $slots: { default: defaultSlot, label: labelSlot, prefix: prefixSlot, suffix: suffixSlot } } = this;
|
|
39
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
40
|
+
return (h("div", { class: [`${mergedClsPrefix}-statistic`, this.themeClass], style: this.cssVars },
|
|
41
|
+
resolveWrappedSlot(labelSlot, (children) => (h("div", { class: `${mergedClsPrefix}-statistic__label` }, this.label || children))),
|
|
34
42
|
h("div", { class: `${mergedClsPrefix}-statistic-value`, style: {
|
|
35
43
|
fontVariantNumeric: this.tabularNums ? 'tabular-nums' : ''
|
|
36
44
|
} },
|
|
37
|
-
|
|
38
|
-
this.value !== undefined ? (h("span", { class: `${mergedClsPrefix}-statistic-value__content` }, this.value)) : (h("span", { class: `${mergedClsPrefix}-statistic-value__content` },
|
|
39
|
-
|
|
45
|
+
resolveWrappedSlot(prefixSlot, (children) => children && (h("span", { class: `${mergedClsPrefix}-statistic-value__prefix` }, children))),
|
|
46
|
+
this.value !== undefined ? (h("span", { class: `${mergedClsPrefix}-statistic-value__content` }, this.value)) : (resolveWrappedSlot(defaultSlot, (children) => children && (h("span", { class: `${mergedClsPrefix}-statistic-value__content` }, children)))),
|
|
47
|
+
resolveWrappedSlot(suffixSlot, (children) => children && (h("span", { class: `${mergedClsPrefix}-statistic-value__suffix` }, children))))));
|
|
40
48
|
}
|
|
41
49
|
});
|
package/es/styles.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export { treeDark } from './tree/styles';
|
|
|
65
65
|
export { treeSelectDark } from './tree-select/styles';
|
|
66
66
|
export { typographyDark } from './typography/styles';
|
|
67
67
|
export { uploadDark } from './upload/styles';
|
|
68
|
+
export { watermarkDark } from './watermark/styles';
|
|
68
69
|
export { scrollbarDark } from './_internal/scrollbar/styles';
|
|
69
70
|
export { internalSelectMenuDark } from './_internal/select-menu/styles';
|
|
70
71
|
export { internalSelectionDark } from './_internal/selection/styles';
|
package/es/styles.js
CHANGED
|
@@ -65,6 +65,7 @@ export { treeDark } from './tree/styles';
|
|
|
65
65
|
export { treeSelectDark } from './tree-select/styles';
|
|
66
66
|
export { typographyDark } from './typography/styles';
|
|
67
67
|
export { uploadDark } from './upload/styles';
|
|
68
|
+
export { watermarkDark } from './watermark/styles';
|
|
68
69
|
// danger zone, internal styles
|
|
69
70
|
export { scrollbarDark } from './_internal/scrollbar/styles';
|
|
70
71
|
export { internalSelectMenuDark } from './_internal/select-menu/styles';
|
|
@@ -40,6 +40,7 @@ declare const switchProps: {
|
|
|
40
40
|
/** @deprecated */
|
|
41
41
|
readonly onChange: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
42
42
|
readonly theme: PropType<import("../../_mixins").Theme<"Switch", {
|
|
43
|
+
iconColor: string;
|
|
43
44
|
textColor: string;
|
|
44
45
|
loadingColor: string;
|
|
45
46
|
opacityDisabled: string;
|
|
@@ -71,6 +72,7 @@ declare const switchProps: {
|
|
|
71
72
|
railWidthLarge: string;
|
|
72
73
|
}, any>>;
|
|
73
74
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Switch", {
|
|
75
|
+
iconColor: string;
|
|
74
76
|
textColor: string;
|
|
75
77
|
loadingColor: string;
|
|
76
78
|
opacityDisabled: string;
|
|
@@ -102,6 +104,7 @@ declare const switchProps: {
|
|
|
102
104
|
railWidthLarge: string;
|
|
103
105
|
}, any>>>;
|
|
104
106
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Switch", {
|
|
107
|
+
iconColor: string;
|
|
105
108
|
textColor: string;
|
|
106
109
|
loadingColor: string;
|
|
107
110
|
opacityDisabled: string;
|
|
@@ -173,6 +176,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
173
176
|
/** @deprecated */
|
|
174
177
|
readonly onChange: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
175
178
|
readonly theme: PropType<import("../../_mixins").Theme<"Switch", {
|
|
179
|
+
iconColor: string;
|
|
176
180
|
textColor: string;
|
|
177
181
|
loadingColor: string;
|
|
178
182
|
opacityDisabled: string;
|
|
@@ -204,6 +208,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
208
|
railWidthLarge: string;
|
|
205
209
|
}, any>>;
|
|
206
210
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Switch", {
|
|
211
|
+
iconColor: string;
|
|
207
212
|
textColor: string;
|
|
208
213
|
loadingColor: string;
|
|
209
214
|
opacityDisabled: string;
|
|
@@ -235,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
235
240
|
railWidthLarge: string;
|
|
236
241
|
}, any>>>;
|
|
237
242
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Switch", {
|
|
243
|
+
iconColor: string;
|
|
238
244
|
textColor: string;
|
|
239
245
|
loadingColor: string;
|
|
240
246
|
opacityDisabled: string;
|
|
@@ -297,7 +303,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
303
|
'--n-box-shadow-focus': string;
|
|
298
304
|
'--n-loading-color': string;
|
|
299
305
|
'--n-text-color': string;
|
|
300
|
-
|
|
306
|
+
'--n-icon-color': string;
|
|
307
|
+
}> | undefined;
|
|
308
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
309
|
+
onRender: (() => void) | undefined;
|
|
301
310
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
302
311
|
readonly size: {
|
|
303
312
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
@@ -337,6 +346,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
337
346
|
/** @deprecated */
|
|
338
347
|
readonly onChange: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
339
348
|
readonly theme: PropType<import("../../_mixins").Theme<"Switch", {
|
|
349
|
+
iconColor: string;
|
|
340
350
|
textColor: string;
|
|
341
351
|
loadingColor: string;
|
|
342
352
|
opacityDisabled: string;
|
|
@@ -368,6 +378,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
368
378
|
railWidthLarge: string;
|
|
369
379
|
}, any>>;
|
|
370
380
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Switch", {
|
|
381
|
+
iconColor: string;
|
|
371
382
|
textColor: string;
|
|
372
383
|
loadingColor: string;
|
|
373
384
|
opacityDisabled: string;
|
|
@@ -399,6 +410,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
399
410
|
railWidthLarge: string;
|
|
400
411
|
}, any>>>;
|
|
401
412
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Switch", {
|
|
413
|
+
iconColor: string;
|
|
402
414
|
textColor: string;
|
|
403
415
|
loadingColor: string;
|
|
404
416
|
opacityDisabled: string;
|