naive-ui 2.21.5 → 2.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/clear/src/styles/index.cssr.js +10 -10
- package/es/_internal/close/src/styles/index.cssr.js +8 -8
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/es/_internal/scrollbar/src/ScrollBar.js +15 -11
- package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/es/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/es/_internal/select-menu/src/SelectMenu.js +21 -21
- package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/es/_internal/select-menu/styles/_common.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +44 -44
- package/es/_internal/selection/src/Selection.js +55 -53
- package/es/_internal/selection/src/styles/index.cssr.js +84 -80
- package/es/_mixins/common.d.ts +1 -0
- package/es/_mixins/common.js +1 -0
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_mixins/use-css-vars-class.d.ts +2 -0
- package/es/_mixins/use-css-vars-class.js +22 -0
- package/es/_mixins/use-rtl.js +2 -0
- package/es/_mixins/use-style.js +3 -0
- package/es/_mixins/use-theme.js +3 -0
- package/es/_utils/composable/use-houdini.js +12 -9
- package/es/alert/src/Alert.d.ts +22 -22
- package/es/alert/src/Alert.js +22 -22
- package/es/alert/src/styles/index.cssr.js +45 -45
- package/es/anchor/src/AnchorAdapter.js +12 -12
- package/es/anchor/src/styles/index.cssr.js +41 -41
- package/es/auto-complete/src/AutoComplete.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +77 -36
- package/es/avatar/src/Avatar.js +46 -16
- package/es/avatar/src/AvatarGroup.d.ts +52 -0
- package/es/avatar/src/AvatarGroup.js +61 -0
- package/es/avatar/src/interface.d.ts +2 -0
- package/es/avatar/src/interface.js +1 -0
- package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
- package/es/avatar/src/styles/index.cssr.js +21 -18
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- package/es/back-top/src/BackTop.d.ts +13 -13
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/badge/src/Badge.d.ts +6 -6
- package/es/badge/src/Badge.js +6 -6
- package/es/badge/src/styles/index.cssr.js +15 -15
- package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/es/breadcrumb/src/Breadcrumb.js +8 -8
- package/es/breadcrumb/src/styles/index.cssr.js +23 -23
- package/es/button/src/Button.d.ts +43 -38
- package/es/button/src/Button.js +124 -116
- package/es/button/src/styles/button.cssr.js +83 -80
- package/es/button/styles/light.js +1 -1
- package/es/calendar/src/Calendar.d.ts +23 -21
- package/es/calendar/src/Calendar.js +21 -21
- package/es/calendar/src/styles/index.cssr.js +57 -57
- package/es/card/src/Card.d.ts +28 -23
- package/es/card/src/Card.js +24 -23
- package/es/card/src/styles/index.cssr.js +71 -69
- package/es/carousel/src/Carousel.d.ts +5 -5
- package/es/carousel/src/Carousel.js +5 -5
- package/es/carousel/src/styles/index.cssr.js +10 -10
- package/es/cascader/src/Cascader.d.ts +160 -17
- package/es/cascader/src/Cascader.js +32 -24
- package/es/cascader/src/CascaderMenu.d.ts +345 -0
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderOption.d.ts +18 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/dark.js +3 -1
- package/es/cascader/styles/light.d.ts +13 -0
- package/es/cascader/styles/light.js +4 -2
- package/es/checkbox/src/Checkbox.d.ts +23 -23
- package/es/checkbox/src/Checkbox.js +23 -23
- package/es/checkbox/src/styles/index.cssr.js +58 -58
- package/es/code/src/Code.d.ts +14 -14
- package/es/code/src/Code.js +26 -17
- package/es/code/src/styles/index.cssr.js +28 -28
- package/es/collapse/src/Collapse.d.ts +8 -8
- package/es/collapse/src/Collapse.js +8 -8
- package/es/collapse/src/styles/index.cssr.js +24 -24
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +10 -10
- package/es/color-picker/src/ColorPicker.js +10 -10
- package/es/color-picker/src/styles/index.cssr.js +28 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +6 -0
- package/es/countdown/index.d.ts +2 -0
- package/es/countdown/index.js +1 -0
- package/es/countdown/src/Countdown.d.ts +72 -0
- package/es/countdown/src/Countdown.js +126 -0
- package/es/countdown/src/utils.d.ts +0 -0
- package/es/countdown/src/utils.js +1 -0
- package/es/data-table/src/DataTable.d.ts +39 -39
- package/es/data-table/src/DataTable.js +49 -55
- package/es/data-table/src/MainTable.js +2 -3
- package/es/data-table/src/TableParts/Body.d.ts +15 -4
- package/es/data-table/src/TableParts/Body.js +82 -28
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +2 -2
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +133 -132
- package/es/data-table/src/use-check.js +6 -2
- package/es/data-table/src/use-scroll.d.ts +2 -0
- package/es/data-table/src/use-scroll.js +34 -4
- package/es/data-table/src/use-table-data.js +3 -1
- package/es/data-table/styles/_common.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +70 -46
- package/es/date-picker/src/DatePicker.js +61 -52
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +2 -1
- package/es/date-picker/src/panel/date.d.ts +13 -10
- package/es/date-picker/src/panel/date.js +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +11 -9
- package/es/date-picker/src/panel/daterange.js +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +13 -16
- package/es/date-picker/src/panel/datetime.js +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/es/date-picker/src/panel/datetimerange.js +2 -2
- package/es/date-picker/src/panel/month.d.ts +17 -20
- package/es/date-picker/src/panel/month.js +23 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/es/date-picker/src/panel/use-calendar.js +41 -23
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/es/date-picker/src/panel/use-dual-calendar.js +35 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/es/date-picker/src/panel/use-panel-common.js +4 -8
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/date-picker/src/utils.d.ts +19 -3
- package/es/date-picker/src/utils.js +40 -5
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +4 -0
- package/es/descriptions/src/Descriptions.d.ts +18 -18
- package/es/descriptions/src/Descriptions.js +19 -20
- package/es/descriptions/src/styles/index.cssr.js +61 -61
- package/es/dialog/src/Dialog.d.ts +24 -24
- package/es/dialog/src/Dialog.js +22 -22
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/divider/src/Divider.js +4 -4
- package/es/divider/src/styles/index.cssr.js +12 -12
- package/es/drawer/src/Drawer.d.ts +19 -19
- package/es/drawer/src/Drawer.js +19 -19
- package/es/drawer/src/styles/index.cssr.js +41 -40
- package/es/dropdown/src/Dropdown.js +34 -32
- package/es/dropdown/src/styles/index.cssr.js +59 -59
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/empty/src/Empty.d.ts +19 -15
- package/es/empty/src/Empty.js +12 -12
- package/es/empty/src/styles/index.cssr.js +20 -19
- package/es/form/src/Form.d.ts +27 -27
- package/es/form/src/FormItem.d.ts +42 -42
- package/es/form/src/FormItem.js +15 -15
- package/es/form/src/FormItemCol.d.ts +33 -27
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +33 -27
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +33 -27
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/styles/form-item.cssr.js +37 -37
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +9 -9
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon/src/Icon.js +4 -4
- package/es/icon/src/styles/index.cssr.js +7 -7
- package/es/image/src/Image.js +8 -12
- package/es/image/src/ImagePreview.d.ts +2 -2
- package/es/image/src/ImagePreview.js +13 -12
- package/es/image/src/styles/index.cssr.js +5 -5
- package/es/input/src/Input.d.ts +52 -47
- package/es/input/src/Input.js +54 -49
- package/es/input/src/InputGroupLabel.d.ts +8 -8
- package/es/input/src/InputGroupLabel.js +8 -8
- package/es/input/src/styles/input-group-label.cssr.js +18 -18
- package/es/input/src/styles/input.cssr.js +108 -109
- package/es/input-number/src/InputNumber.d.ts +11 -0
- package/es/input-number/src/InputNumber.js +5 -2
- package/es/input-number/src/utils.js +2 -1
- package/es/layout/src/Layout.d.ts +6 -6
- package/es/layout/src/Layout.js +3 -3
- package/es/layout/src/LayoutContent.d.ts +3 -3
- package/es/layout/src/LayoutFooter.js +7 -7
- package/es/layout/src/LayoutHeader.js +7 -7
- package/es/layout/src/LayoutSider.js +13 -13
- package/es/layout/src/styles/layout-footer.cssr.js +11 -11
- package/es/layout/src/styles/layout-header.cssr.js +11 -11
- package/es/layout/src/styles/layout-sider.cssr.js +32 -32
- package/es/layout/src/styles/layout.cssr.js +8 -8
- package/es/list/src/List.d.ts +10 -10
- package/es/list/src/List.js +10 -10
- package/es/list/src/styles/index.cssr.js +30 -30
- package/es/loading-bar/src/LoadingBar.d.ts +3 -3
- package/es/loading-bar/src/LoadingBar.js +3 -3
- package/es/loading-bar/src/styles/index.cssr.js +7 -7
- package/es/locales/common/deDE.js +2 -0
- package/es/locales/common/enUS.d.ts +2 -0
- package/es/locales/common/enUS.js +2 -0
- package/es/locales/common/frFR.js +7 -5
- package/es/locales/common/idID.js +2 -0
- package/es/locales/common/jaJP.js +2 -0
- package/es/locales/common/nbNO.js +2 -0
- package/es/locales/common/ruRU.js +2 -0
- package/es/locales/common/ukUA.js +2 -0
- package/es/locales/common/zhCN.js +2 -0
- package/es/locales/common/zhTW.d.ts +3 -0
- package/es/locales/common/zhTW.js +100 -0
- package/es/locales/date/zhTW.d.ts +3 -0
- package/es/locales/date/zhTW.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/src/Message.d.ts +22 -22
- package/es/message/src/Message.js +22 -22
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +14 -8
- package/es/modal/src/Modal.js +13 -7
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/styles/index.cssr.js +8 -8
- package/es/notification/src/Notification.d.ts +24 -24
- package/es/notification/src/Notification.js +24 -24
- package/es/notification/src/styles/index.cssr.js +65 -65
- package/es/number-animation/index.d.ts +3 -0
- package/es/number-animation/index.js +1 -0
- package/es/number-animation/src/NumberAnimation.d.ts +79 -0
- package/es/number-animation/src/NumberAnimation.js +81 -0
- package/es/number-animation/src/utils.d.ts +8 -0
- package/es/number-animation/src/utils.js +17 -0
- package/es/page-header/src/PageHeader.d.ts +10 -10
- package/es/page-header/src/PageHeader.js +13 -13
- package/es/page-header/src/styles/index.cssr.js +25 -27
- package/es/pagination/src/Pagination.d.ts +42 -41
- package/es/pagination/src/Pagination.js +52 -45
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/popconfirm/src/Popconfirm.d.ts +2 -2
- package/es/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/es/popconfirm/src/PopconfirmPanel.js +4 -4
- package/es/popconfirm/src/styles/index.cssr.js +8 -8
- package/es/popover/src/Popover.js +4 -1
- package/es/popover/src/PopoverBody.js +18 -18
- package/es/popover/src/styles/index.cssr.js +62 -62
- package/es/popselect/src/Popselect.d.ts +2 -11
- package/es/popselect/src/Popselect.js +2 -2
- package/es/popselect/src/PopselectPanel.d.ts +3 -11
- package/es/popselect/src/PopselectPanel.js +17 -11
- package/es/progress/src/Progress.d.ts +14 -14
- package/es/progress/src/Progress.js +14 -14
- package/es/progress/src/styles/index.cssr.js +53 -53
- package/es/radio/src/Radio.d.ts +15 -15
- package/es/radio/src/Radio.js +18 -18
- package/es/radio/src/RadioButton.js +4 -5
- package/es/radio/src/RadioGroup.d.ts +14 -14
- package/es/radio/src/RadioGroup.js +14 -14
- package/es/radio/src/styles/radio-group.cssr.js +51 -47
- package/es/radio/src/styles/radio.cssr.js +44 -40
- package/es/radio/src/use-radio.d.ts +0 -3
- package/es/radio/src/use-radio.js +1 -26
- package/es/rate/src/Rate.d.ts +4 -4
- package/es/rate/src/Rate.js +4 -4
- package/es/rate/src/styles/index.cssr.js +11 -11
- package/es/result/src/Result.d.ts +9 -9
- package/es/result/src/Result.js +9 -9
- package/es/result/src/styles/index.cssr.js +20 -20
- package/es/select/src/Select.d.ts +1 -1
- package/es/select/src/Select.js +1 -1
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/skeleton/src/Skeleton.js +3 -3
- package/es/skeleton/src/styles/index.cssr.js +12 -12
- package/es/slider/src/Slider.d.ts +29 -29
- package/es/slider/src/Slider.js +29 -29
- package/es/slider/src/styles/index.cssr.js +87 -87
- package/es/spin/src/Spin.d.ts +5 -5
- package/es/spin/src/Spin.js +5 -5
- package/es/spin/src/styles/index.cssr.js +15 -15
- package/es/statistic/src/Statistic.d.ts +25 -45
- package/es/statistic/src/Statistic.js +12 -19
- package/es/statistic/src/styles/index.cssr.js +19 -19
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +26 -19
- package/es/switch/src/styles/index.cssr.js +59 -57
- package/es/table/src/Table.d.ts +21 -21
- package/es/table/src/Table.js +21 -21
- package/es/table/src/styles/index.cssr.js +55 -55
- package/es/tabs/src/styles/index.cssr.js +5 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +27 -26
- package/es/tag/src/Tag.js +27 -26
- package/es/tag/src/styles/index.cssr.js +55 -55
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/thing/src/Thing.js +5 -5
- package/es/thing/src/styles/index.cssr.js +11 -11
- package/es/time-picker/src/TimePicker.d.ts +19 -19
- package/es/time-picker/src/TimePicker.js +17 -17
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/transfer/src/Transfer.d.ts +21 -21
- package/es/transfer/src/Transfer.js +21 -21
- package/es/transfer/src/TransferList.js +5 -7
- package/es/transfer/src/styles/index.cssr.js +47 -42
- package/es/tree/src/Tree.d.ts +11 -11
- package/es/tree/src/Tree.js +11 -11
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/styles/index.cssr.js +33 -33
- package/es/tree-select/src/TreeSelect.d.ts +43 -6
- package/es/tree-select/src/TreeSelect.js +29 -14
- package/es/tree-select/src/styles/index.cssr.js +20 -11
- package/es/tree-select/styles/light.d.ts +6 -0
- package/es/tree-select/styles/light.js +5 -2
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/a.js +2 -2
- package/es/typography/src/blockquote.d.ts +5 -5
- package/es/typography/src/blockquote.js +5 -5
- package/es/typography/src/create-header.d.ts +8 -8
- package/es/typography/src/create-header.js +8 -8
- package/es/typography/src/headers.d.ts +48 -48
- package/es/typography/src/hr.d.ts +2 -1
- package/es/typography/src/hr.js +3 -1
- package/es/typography/src/ol.d.ts +7 -7
- package/es/typography/src/ol.js +7 -7
- package/es/typography/src/p.d.ts +5 -5
- package/es/typography/src/p.js +5 -5
- package/es/typography/src/styles/a.cssr.js +6 -6
- package/es/typography/src/styles/blockquote.cssr.js +11 -11
- package/es/typography/src/styles/header.cssr.js +19 -19
- package/es/typography/src/styles/hr.cssr.js +3 -3
- package/es/typography/src/styles/list.cssr.js +15 -15
- package/es/typography/src/styles/p.cssr.js +10 -10
- package/es/typography/src/styles/text.cssr.js +18 -18
- package/es/typography/src/text.d.ts +8 -7
- package/es/typography/src/text.js +9 -8
- package/es/typography/src/ul.d.ts +7 -7
- package/es/typography/src/ul.js +7 -7
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +16 -16
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
- package/lib/_internal/close/src/styles/index.cssr.js +8 -8
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/lib/_internal/scrollbar/src/ScrollBar.js +15 -11
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/lib/_internal/select-menu/src/SelectMenu.js +21 -21
- package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/lib/_internal/select-menu/styles/_common.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +44 -44
- package/lib/_internal/selection/src/Selection.js +55 -53
- package/lib/_internal/selection/src/styles/index.cssr.js +84 -80
- package/lib/_mixins/common.d.ts +1 -0
- package/lib/_mixins/common.js +4 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_mixins/use-css-vars-class.d.ts +2 -0
- package/lib/_mixins/use-css-vars-class.js +29 -0
- package/lib/_mixins/use-rtl.js +2 -0
- package/lib/_mixins/use-style.js +3 -0
- package/lib/_mixins/use-theme.js +3 -0
- package/lib/_utils/composable/use-houdini.js +12 -9
- package/lib/alert/src/Alert.d.ts +22 -22
- package/lib/alert/src/Alert.js +22 -22
- package/lib/alert/src/styles/index.cssr.js +45 -45
- package/lib/anchor/src/AnchorAdapter.js +12 -12
- package/lib/anchor/src/styles/index.cssr.js +41 -41
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +77 -36
- package/lib/avatar/src/Avatar.js +48 -17
- package/lib/avatar/src/AvatarGroup.d.ts +52 -0
- package/lib/avatar/src/AvatarGroup.js +67 -0
- package/lib/avatar/src/interface.d.ts +2 -0
- package/lib/avatar/src/interface.js +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
- package/lib/avatar/src/styles/index.cssr.js +20 -17
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- package/lib/back-top/src/BackTop.d.ts +13 -13
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/badge/src/Badge.d.ts +6 -6
- package/lib/badge/src/Badge.js +6 -6
- package/lib/badge/src/styles/index.cssr.js +15 -15
- package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/lib/breadcrumb/src/Breadcrumb.js +8 -8
- package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
- package/lib/button/src/Button.d.ts +43 -38
- package/lib/button/src/Button.js +123 -115
- package/lib/button/src/styles/button.cssr.js +83 -80
- package/lib/button/styles/light.js +1 -1
- package/lib/calendar/src/Calendar.d.ts +23 -21
- package/lib/calendar/src/Calendar.js +21 -21
- package/lib/calendar/src/styles/index.cssr.js +57 -57
- package/lib/card/src/Card.d.ts +28 -23
- package/lib/card/src/Card.js +24 -23
- package/lib/card/src/styles/index.cssr.js +71 -69
- package/lib/carousel/src/Carousel.d.ts +5 -5
- package/lib/carousel/src/Carousel.js +5 -5
- package/lib/carousel/src/styles/index.cssr.js +10 -10
- package/lib/cascader/src/Cascader.d.ts +160 -17
- package/lib/cascader/src/Cascader.js +32 -24
- package/lib/cascader/src/CascaderMenu.d.ts +345 -0
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderOption.d.ts +18 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/dark.js +3 -1
- package/lib/cascader/styles/light.d.ts +13 -0
- package/lib/cascader/styles/light.js +4 -2
- package/lib/checkbox/src/Checkbox.d.ts +23 -23
- package/lib/checkbox/src/Checkbox.js +23 -23
- package/lib/checkbox/src/styles/index.cssr.js +58 -58
- package/lib/code/src/Code.d.ts +14 -14
- package/lib/code/src/Code.js +26 -17
- package/lib/code/src/styles/index.cssr.js +28 -28
- package/lib/collapse/src/Collapse.d.ts +8 -8
- package/lib/collapse/src/Collapse.js +8 -8
- package/lib/collapse/src/styles/index.cssr.js +24 -24
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +10 -10
- package/lib/color-picker/src/ColorPicker.js +10 -10
- package/lib/color-picker/src/styles/index.cssr.js +28 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +6 -0
- package/lib/countdown/index.d.ts +2 -0
- package/lib/countdown/index.js +8 -0
- package/lib/countdown/src/Countdown.d.ts +72 -0
- package/lib/countdown/src/Countdown.js +128 -0
- package/lib/countdown/src/utils.d.ts +0 -0
- package/lib/countdown/src/utils.js +1 -0
- package/lib/data-table/src/DataTable.d.ts +39 -39
- package/lib/data-table/src/DataTable.js +48 -54
- package/lib/data-table/src/MainTable.js +1 -2
- package/lib/data-table/src/TableParts/Body.d.ts +15 -4
- package/lib/data-table/src/TableParts/Body.js +80 -26
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +2 -2
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -132
- package/lib/data-table/src/use-check.js +6 -2
- package/lib/data-table/src/use-scroll.d.ts +2 -0
- package/lib/data-table/src/use-scroll.js +34 -4
- package/lib/data-table/src/use-table-data.js +3 -1
- package/lib/data-table/styles/_common.js +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +70 -46
- package/lib/date-picker/src/DatePicker.js +61 -52
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +2 -1
- package/lib/date-picker/src/panel/date.d.ts +13 -10
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +11 -9
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +13 -16
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +17 -20
- package/lib/date-picker/src/panel/month.js +23 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/lib/date-picker/src/panel/use-calendar.js +40 -21
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/lib/date-picker/src/panel/use-dual-calendar.js +34 -19
- package/lib/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/lib/date-picker/src/panel/use-panel-common.js +5 -8
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/date-picker/src/utils.d.ts +19 -3
- package/lib/date-picker/src/utils.js +41 -4
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +4 -0
- package/lib/descriptions/src/Descriptions.d.ts +18 -18
- package/lib/descriptions/src/Descriptions.js +19 -20
- package/lib/descriptions/src/styles/index.cssr.js +61 -61
- package/lib/dialog/src/Dialog.d.ts +24 -24
- package/lib/dialog/src/Dialog.js +22 -22
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/divider/src/Divider.js +4 -4
- package/lib/divider/src/styles/index.cssr.js +12 -12
- package/lib/drawer/src/Drawer.d.ts +19 -19
- package/lib/drawer/src/Drawer.js +19 -19
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- package/lib/dropdown/src/Dropdown.js +34 -32
- package/lib/dropdown/src/styles/index.cssr.js +59 -59
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/empty/src/Empty.d.ts +19 -15
- package/lib/empty/src/Empty.js +12 -12
- package/lib/empty/src/styles/index.cssr.js +19 -18
- package/lib/form/src/Form.d.ts +27 -27
- package/lib/form/src/FormItem.d.ts +42 -42
- package/lib/form/src/FormItem.js +15 -15
- package/lib/form/src/FormItemCol.d.ts +33 -27
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +33 -27
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +33 -27
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/styles/form-item.cssr.js +37 -37
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +9 -9
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon/src/Icon.js +4 -4
- package/lib/icon/src/styles/index.cssr.js +7 -7
- package/lib/image/src/Image.js +7 -11
- package/lib/image/src/ImagePreview.d.ts +2 -2
- package/lib/image/src/ImagePreview.js +12 -11
- package/lib/image/src/styles/index.cssr.js +5 -5
- package/lib/input/src/Input.d.ts +52 -47
- package/lib/input/src/Input.js +54 -49
- package/lib/input/src/InputGroupLabel.d.ts +8 -8
- package/lib/input/src/InputGroupLabel.js +8 -8
- package/lib/input/src/styles/input-group-label.cssr.js +18 -18
- package/lib/input/src/styles/input.cssr.js +108 -109
- package/lib/input-number/src/InputNumber.d.ts +11 -0
- package/lib/input-number/src/InputNumber.js +5 -2
- package/lib/input-number/src/utils.js +2 -1
- package/lib/layout/src/Layout.d.ts +6 -6
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutContent.d.ts +3 -3
- package/lib/layout/src/LayoutFooter.js +7 -7
- package/lib/layout/src/LayoutHeader.js +7 -7
- package/lib/layout/src/LayoutSider.js +13 -13
- package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
- package/lib/layout/src/styles/layout-header.cssr.js +11 -11
- package/lib/layout/src/styles/layout-sider.cssr.js +32 -32
- package/lib/layout/src/styles/layout.cssr.js +8 -8
- package/lib/list/src/List.d.ts +10 -10
- package/lib/list/src/List.js +10 -10
- package/lib/list/src/styles/index.cssr.js +30 -30
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/styles/index.cssr.js +7 -7
- package/lib/locales/common/deDE.js +2 -0
- package/lib/locales/common/enUS.d.ts +2 -0
- package/lib/locales/common/enUS.js +2 -0
- package/lib/locales/common/frFR.js +7 -5
- package/lib/locales/common/idID.js +2 -0
- package/lib/locales/common/jaJP.js +2 -0
- package/lib/locales/common/nbNO.js +2 -0
- package/lib/locales/common/ruRU.js +2 -0
- package/lib/locales/common/ukUA.js +2 -0
- package/lib/locales/common/zhCN.js +2 -0
- package/lib/locales/common/zhTW.d.ts +3 -0
- package/lib/locales/common/zhTW.js +102 -0
- package/lib/locales/date/zhTW.d.ts +3 -0
- package/lib/locales/date/zhTW.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +1 -1
- package/lib/mention/src/styles/index.cssr.js +2 -2
- package/lib/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/src/Message.d.ts +22 -22
- package/lib/message/src/Message.js +22 -22
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +14 -8
- package/lib/modal/src/Modal.js +13 -7
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +8 -8
- package/lib/notification/src/Notification.d.ts +24 -24
- package/lib/notification/src/Notification.js +24 -24
- package/lib/notification/src/styles/index.cssr.js +65 -65
- package/lib/number-animation/index.d.ts +3 -0
- package/lib/number-animation/index.js +8 -0
- package/lib/number-animation/src/NumberAnimation.d.ts +79 -0
- package/lib/number-animation/src/NumberAnimation.js +83 -0
- package/lib/number-animation/src/utils.d.ts +8 -0
- package/lib/number-animation/src/utils.js +21 -0
- package/lib/page-header/src/PageHeader.d.ts +10 -10
- package/lib/page-header/src/PageHeader.js +13 -13
- package/lib/page-header/src/styles/index.cssr.js +25 -27
- package/lib/pagination/src/Pagination.d.ts +42 -41
- package/lib/pagination/src/Pagination.js +52 -45
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/lib/popconfirm/src/PopconfirmPanel.js +4 -4
- package/lib/popconfirm/src/styles/index.cssr.js +8 -8
- package/lib/popover/src/Popover.js +4 -1
- package/lib/popover/src/PopoverBody.js +18 -18
- package/lib/popover/src/styles/index.cssr.js +62 -62
- package/lib/popselect/src/Popselect.d.ts +2 -11
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +3 -11
- package/lib/popselect/src/PopselectPanel.js +16 -10
- package/lib/progress/src/Progress.d.ts +14 -14
- package/lib/progress/src/Progress.js +14 -14
- package/lib/progress/src/styles/index.cssr.js +53 -53
- package/lib/radio/src/Radio.d.ts +15 -15
- package/lib/radio/src/Radio.js +18 -18
- package/lib/radio/src/RadioButton.js +4 -5
- package/lib/radio/src/RadioGroup.d.ts +14 -14
- package/lib/radio/src/RadioGroup.js +14 -14
- package/lib/radio/src/styles/radio-group.cssr.js +51 -47
- package/lib/radio/src/styles/radio.cssr.js +44 -40
- package/lib/radio/src/use-radio.d.ts +0 -3
- package/lib/radio/src/use-radio.js +1 -26
- package/lib/rate/src/Rate.d.ts +4 -4
- package/lib/rate/src/Rate.js +4 -4
- package/lib/rate/src/styles/index.cssr.js +11 -11
- package/lib/result/src/Result.d.ts +9 -9
- package/lib/result/src/Result.js +9 -9
- package/lib/result/src/styles/index.cssr.js +20 -20
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/select/src/Select.js +1 -1
- package/lib/select/src/styles/index.cssr.js +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/skeleton/src/Skeleton.js +3 -3
- package/lib/skeleton/src/styles/index.cssr.js +12 -12
- package/lib/slider/src/Slider.d.ts +29 -29
- package/lib/slider/src/Slider.js +29 -29
- package/lib/slider/src/styles/index.cssr.js +87 -87
- package/lib/spin/src/Spin.d.ts +5 -5
- package/lib/spin/src/Spin.js +5 -5
- package/lib/spin/src/styles/index.cssr.js +15 -15
- package/lib/statistic/src/Statistic.d.ts +25 -45
- package/lib/statistic/src/Statistic.js +12 -19
- package/lib/statistic/src/styles/index.cssr.js +19 -19
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +26 -19
- package/lib/switch/src/styles/index.cssr.js +59 -57
- package/lib/table/src/Table.d.ts +21 -21
- package/lib/table/src/Table.js +21 -21
- package/lib/table/src/styles/index.cssr.js +55 -55
- package/lib/tabs/src/styles/index.cssr.js +5 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +27 -26
- package/lib/tag/src/Tag.js +27 -26
- package/lib/tag/src/styles/index.cssr.js +55 -55
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/thing/src/Thing.js +5 -5
- package/lib/thing/src/styles/index.cssr.js +11 -11
- package/lib/time-picker/src/TimePicker.d.ts +19 -19
- package/lib/time-picker/src/TimePicker.js +17 -17
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/transfer/src/Transfer.d.ts +21 -21
- package/lib/transfer/src/Transfer.js +21 -21
- package/lib/transfer/src/TransferList.js +5 -7
- package/lib/transfer/src/styles/index.cssr.js +47 -42
- package/lib/tree/src/Tree.d.ts +11 -11
- package/lib/tree/src/Tree.js +11 -11
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/styles/index.cssr.js +33 -33
- package/lib/tree-select/src/TreeSelect.d.ts +43 -6
- package/lib/tree-select/src/TreeSelect.js +28 -13
- package/lib/tree-select/src/styles/index.cssr.js +20 -11
- package/lib/tree-select/styles/light.d.ts +6 -0
- package/lib/tree-select/styles/light.js +5 -2
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/a.js +2 -2
- package/lib/typography/src/blockquote.d.ts +5 -5
- package/lib/typography/src/blockquote.js +5 -5
- package/lib/typography/src/create-header.d.ts +8 -8
- package/lib/typography/src/create-header.js +8 -8
- package/lib/typography/src/headers.d.ts +48 -48
- package/lib/typography/src/hr.d.ts +2 -1
- package/lib/typography/src/hr.js +3 -1
- package/lib/typography/src/ol.d.ts +7 -7
- package/lib/typography/src/ol.js +7 -7
- package/lib/typography/src/p.d.ts +5 -5
- package/lib/typography/src/p.js +5 -5
- package/lib/typography/src/styles/a.cssr.js +6 -6
- package/lib/typography/src/styles/blockquote.cssr.js +11 -11
- package/lib/typography/src/styles/header.cssr.js +19 -19
- package/lib/typography/src/styles/hr.cssr.js +3 -3
- package/lib/typography/src/styles/list.cssr.js +15 -15
- package/lib/typography/src/styles/p.cssr.js +10 -10
- package/lib/typography/src/styles/text.cssr.js +18 -18
- package/lib/typography/src/text.d.ts +8 -7
- package/lib/typography/src/text.js +9 -8
- package/lib/typography/src/ul.d.ts +7 -7
- package/lib/typography/src/ul.js +7 -7
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +16 -16
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +38 -36
- package/web-types.json +252 -11
package/lib/button/src/Button.js
CHANGED
|
@@ -33,10 +33,10 @@ const buttonProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
|
|
|
33
33
|
}, attrType: {
|
|
34
34
|
type: String,
|
|
35
35
|
default: 'button'
|
|
36
|
-
},
|
|
36
|
+
}, bordered: {
|
|
37
37
|
type: Boolean,
|
|
38
38
|
default: true
|
|
39
|
-
} });
|
|
39
|
+
}, onClick: [Function, Array], internalAutoFocus: Boolean });
|
|
40
40
|
const Button = (0, vue_1.defineComponent)({
|
|
41
41
|
name: 'Button',
|
|
42
42
|
props: buttonProps,
|
|
@@ -50,9 +50,18 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
const
|
|
53
|
+
const selfElRef = (0, vue_1.ref)(null);
|
|
54
|
+
const waveElRef = (0, vue_1.ref)(null);
|
|
55
55
|
const enterPressedRef = (0, vue_1.ref)(false);
|
|
56
|
+
(0, vue_1.onMounted)(() => {
|
|
57
|
+
const { value: selfEl } = selfElRef;
|
|
58
|
+
if (selfEl &&
|
|
59
|
+
!props.disabled &&
|
|
60
|
+
props.focusable &&
|
|
61
|
+
props.internalAutoFocus) {
|
|
62
|
+
selfEl.focus({ preventScroll: true });
|
|
63
|
+
}
|
|
64
|
+
});
|
|
56
65
|
const showBorderRef = (0, vooks_1.useMemo)(() => {
|
|
57
66
|
return (!props.quaternary &&
|
|
58
67
|
!props.tertiary &&
|
|
@@ -88,19 +97,17 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
88
97
|
return;
|
|
89
98
|
}
|
|
90
99
|
if (mergedFocusableRef.value) {
|
|
91
|
-
(_a =
|
|
100
|
+
(_a = selfElRef.value) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
|
|
92
101
|
}
|
|
93
102
|
};
|
|
94
103
|
const handleClick = (e) => {
|
|
95
|
-
|
|
104
|
+
var _a;
|
|
105
|
+
if (!props.disabled && !props.loading) {
|
|
96
106
|
const { onClick } = props;
|
|
97
107
|
if (onClick)
|
|
98
108
|
(0, _utils_1.call)(onClick, e);
|
|
99
109
|
if (!props.text) {
|
|
100
|
-
|
|
101
|
-
if (value) {
|
|
102
|
-
value.play();
|
|
103
|
-
}
|
|
110
|
+
(_a = waveElRef.value) === null || _a === void 0 ? void 0 : _a.play();
|
|
104
111
|
}
|
|
105
112
|
}
|
|
106
113
|
};
|
|
@@ -118,7 +125,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
118
125
|
switch (e.code) {
|
|
119
126
|
case 'Enter':
|
|
120
127
|
case 'NumpadEnter':
|
|
121
|
-
if (!props.keyboard) {
|
|
128
|
+
if (!props.keyboard || props.loading) {
|
|
122
129
|
e.preventDefault();
|
|
123
130
|
return;
|
|
124
131
|
}
|
|
@@ -132,8 +139,8 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
132
139
|
const themeRef = (0, _mixins_1.useTheme)('Button', 'Button', button_cssr_1.default, styles_1.buttonLight, props, mergedClsPrefixRef);
|
|
133
140
|
const rtlEnabledRef = (0, use_rtl_1.default)('Button', NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedRtlRef, mergedClsPrefixRef);
|
|
134
141
|
return {
|
|
135
|
-
|
|
136
|
-
|
|
142
|
+
selfElRef,
|
|
143
|
+
waveElRef,
|
|
137
144
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
138
145
|
mergedFocusable: mergedFocusableRef,
|
|
139
146
|
mergedSize: mergedSizeRef,
|
|
@@ -151,11 +158,11 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
151
158
|
return null;
|
|
152
159
|
const hoverColor = (0, index_1.createHoverColor)(color);
|
|
153
160
|
return {
|
|
154
|
-
'--border-color': color,
|
|
155
|
-
'--border-color-hover': hoverColor,
|
|
156
|
-
'--border-color-pressed': (0, index_1.createPressedColor)(color),
|
|
157
|
-
'--border-color-focus': hoverColor,
|
|
158
|
-
'--border-color-disabled': color
|
|
161
|
+
'--n-border-color': color,
|
|
162
|
+
'--n-border-color-hover': hoverColor,
|
|
163
|
+
'--n-border-color-pressed': (0, index_1.createPressedColor)(color),
|
|
164
|
+
'--n-border-color-focus': hoverColor,
|
|
165
|
+
'--n-border-color-disabled': color
|
|
159
166
|
};
|
|
160
167
|
}),
|
|
161
168
|
cssVars: (0, vue_1.computed)(() => {
|
|
@@ -170,17 +177,17 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
170
177
|
};
|
|
171
178
|
// color
|
|
172
179
|
let colorProps = {
|
|
173
|
-
'--color': 'initial',
|
|
174
|
-
'--color-hover': 'initial',
|
|
175
|
-
'--color-pressed': 'initial',
|
|
176
|
-
'--color-focus': 'initial',
|
|
177
|
-
'--color-disabled': 'initial',
|
|
178
|
-
'--ripple-color': 'initial',
|
|
179
|
-
'--text-color': 'initial',
|
|
180
|
-
'--text-color-hover': 'initial',
|
|
181
|
-
'--text-color-pressed': 'initial',
|
|
182
|
-
'--text-color-focus': 'initial',
|
|
183
|
-
'--text-color-disabled': 'initial'
|
|
180
|
+
'--n-color': 'initial',
|
|
181
|
+
'--n-color-hover': 'initial',
|
|
182
|
+
'--n-color-pressed': 'initial',
|
|
183
|
+
'--n-color-focus': 'initial',
|
|
184
|
+
'--n-color-disabled': 'initial',
|
|
185
|
+
'--n-ripple-color': 'initial',
|
|
186
|
+
'--n-text-color': 'initial',
|
|
187
|
+
'--n-text-color-hover': 'initial',
|
|
188
|
+
'--n-text-color-pressed': 'initial',
|
|
189
|
+
'--n-text-color-focus': 'initial',
|
|
190
|
+
'--n-text-color-disabled': 'initial'
|
|
184
191
|
};
|
|
185
192
|
const typeIsTertiary = type === 'tertiary';
|
|
186
193
|
const typeIsDefault = type === 'default';
|
|
@@ -189,46 +196,46 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
189
196
|
const propTextColor = textColor || color;
|
|
190
197
|
const mergedTextColor = propTextColor || self[(0, _utils_1.createKey)('textColorText', mergedType)];
|
|
191
198
|
colorProps = {
|
|
192
|
-
'--color': '#0000',
|
|
193
|
-
'--color-hover': '#0000',
|
|
194
|
-
'--color-pressed': '#0000',
|
|
195
|
-
'--color-focus': '#0000',
|
|
196
|
-
'--color-disabled': '#0000',
|
|
197
|
-
'--ripple-color': '#0000',
|
|
198
|
-
'--text-color': mergedTextColor,
|
|
199
|
-
'--text-color-hover': propTextColor
|
|
199
|
+
'--n-color': '#0000',
|
|
200
|
+
'--n-color-hover': '#0000',
|
|
201
|
+
'--n-color-pressed': '#0000',
|
|
202
|
+
'--n-color-focus': '#0000',
|
|
203
|
+
'--n-color-disabled': '#0000',
|
|
204
|
+
'--n-ripple-color': '#0000',
|
|
205
|
+
'--n-text-color': mergedTextColor,
|
|
206
|
+
'--n-text-color-hover': propTextColor
|
|
200
207
|
? (0, index_1.createHoverColor)(propTextColor)
|
|
201
208
|
: self[(0, _utils_1.createKey)('textColorTextHover', mergedType)],
|
|
202
|
-
'--text-color-pressed': propTextColor
|
|
209
|
+
'--n-text-color-pressed': propTextColor
|
|
203
210
|
? (0, index_1.createPressedColor)(propTextColor)
|
|
204
211
|
: self[(0, _utils_1.createKey)('textColorTextPressed', mergedType)],
|
|
205
|
-
'--text-color-focus': propTextColor
|
|
212
|
+
'--n-text-color-focus': propTextColor
|
|
206
213
|
? (0, index_1.createHoverColor)(propTextColor)
|
|
207
214
|
: self[(0, _utils_1.createKey)('textColorTextHover', mergedType)],
|
|
208
|
-
'--text-color-disabled': propTextColor ||
|
|
215
|
+
'--n-text-color-disabled': propTextColor ||
|
|
209
216
|
self[(0, _utils_1.createKey)('textColorTextDisabled', mergedType)]
|
|
210
217
|
};
|
|
211
218
|
}
|
|
212
219
|
else if (ghost || dashed) {
|
|
213
220
|
const mergedTextColor = textColor || color;
|
|
214
221
|
colorProps = {
|
|
215
|
-
'--color': '#0000',
|
|
216
|
-
'--color-hover': '#0000',
|
|
217
|
-
'--color-pressed': '#0000',
|
|
218
|
-
'--color-focus': '#0000',
|
|
219
|
-
'--color-disabled': '#0000',
|
|
220
|
-
'--ripple-color': color || self[(0, _utils_1.createKey)('rippleColor', mergedType)],
|
|
221
|
-
'--text-color': mergedTextColor || self[(0, _utils_1.createKey)('textColorGhost', mergedType)],
|
|
222
|
-
'--text-color-hover': mergedTextColor
|
|
222
|
+
'--n-color': '#0000',
|
|
223
|
+
'--n-color-hover': '#0000',
|
|
224
|
+
'--n-color-pressed': '#0000',
|
|
225
|
+
'--n-color-focus': '#0000',
|
|
226
|
+
'--n-color-disabled': '#0000',
|
|
227
|
+
'--n-ripple-color': color || self[(0, _utils_1.createKey)('rippleColor', mergedType)],
|
|
228
|
+
'--n-text-color': mergedTextColor || self[(0, _utils_1.createKey)('textColorGhost', mergedType)],
|
|
229
|
+
'--n-text-color-hover': mergedTextColor
|
|
223
230
|
? (0, index_1.createHoverColor)(mergedTextColor)
|
|
224
231
|
: self[(0, _utils_1.createKey)('textColorGhostHover', mergedType)],
|
|
225
|
-
'--text-color-pressed': mergedTextColor
|
|
232
|
+
'--n-text-color-pressed': mergedTextColor
|
|
226
233
|
? (0, index_1.createPressedColor)(mergedTextColor)
|
|
227
234
|
: self[(0, _utils_1.createKey)('textColorGhostPressed', mergedType)],
|
|
228
|
-
'--text-color-focus': mergedTextColor
|
|
235
|
+
'--n-text-color-focus': mergedTextColor
|
|
229
236
|
? (0, index_1.createHoverColor)(mergedTextColor)
|
|
230
237
|
: self[(0, _utils_1.createKey)('textColorGhostHover', mergedType)],
|
|
231
|
-
'--text-color-disabled': mergedTextColor ||
|
|
238
|
+
'--n-text-color-disabled': mergedTextColor ||
|
|
232
239
|
self[(0, _utils_1.createKey)('textColorGhostDisabled', mergedType)]
|
|
233
240
|
};
|
|
234
241
|
}
|
|
@@ -241,33 +248,33 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
241
248
|
const mergedTextColor = color || typeTextColor;
|
|
242
249
|
const isColoredType = type !== 'default' && type !== 'tertiary';
|
|
243
250
|
colorProps = {
|
|
244
|
-
'--color': isColoredType
|
|
251
|
+
'--n-color': isColoredType
|
|
245
252
|
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
246
253
|
alpha: Number(self.colorOpacitySecondary)
|
|
247
254
|
})
|
|
248
255
|
: self.colorSecondary,
|
|
249
|
-
'--color-hover': isColoredType
|
|
256
|
+
'--n-color-hover': isColoredType
|
|
250
257
|
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
251
258
|
alpha: Number(self.colorOpacitySecondaryHover)
|
|
252
259
|
})
|
|
253
260
|
: self.colorSecondaryHover,
|
|
254
|
-
'--color-pressed': isColoredType
|
|
261
|
+
'--n-color-pressed': isColoredType
|
|
255
262
|
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
256
263
|
alpha: Number(self.colorOpacitySecondaryPressed)
|
|
257
264
|
})
|
|
258
265
|
: self.colorSecondaryPressed,
|
|
259
|
-
'--color-focus': isColoredType
|
|
266
|
+
'--n-color-focus': isColoredType
|
|
260
267
|
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
261
268
|
alpha: Number(self.colorOpacitySecondaryHover)
|
|
262
269
|
})
|
|
263
270
|
: self.colorSecondaryHover,
|
|
264
|
-
'--color-disabled': self.colorSecondary,
|
|
265
|
-
'--ripple-color': '#0000',
|
|
266
|
-
'--text-color': mergedTextColor,
|
|
267
|
-
'--text-color-hover': mergedTextColor,
|
|
268
|
-
'--text-color-pressed': mergedTextColor,
|
|
269
|
-
'--text-color-focus': mergedTextColor,
|
|
270
|
-
'--text-color-disabled': mergedTextColor
|
|
271
|
+
'--n-color-disabled': self.colorSecondary,
|
|
272
|
+
'--n-ripple-color': '#0000',
|
|
273
|
+
'--n-text-color': mergedTextColor,
|
|
274
|
+
'--n-text-color-hover': mergedTextColor,
|
|
275
|
+
'--n-text-color-pressed': mergedTextColor,
|
|
276
|
+
'--n-text-color-focus': mergedTextColor,
|
|
277
|
+
'--n-text-color-disabled': mergedTextColor
|
|
271
278
|
};
|
|
272
279
|
}
|
|
273
280
|
else if (tertiary || quaternary) {
|
|
@@ -278,59 +285,59 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
278
285
|
: self[(0, _utils_1.createKey)('color', mergedType)];
|
|
279
286
|
const mergedColor = color || typeColor;
|
|
280
287
|
if (tertiary) {
|
|
281
|
-
colorProps['--color'] = self.colorTertiary;
|
|
282
|
-
colorProps['--color-hover'] = self.colorTertiaryHover;
|
|
283
|
-
colorProps['--color-pressed'] = self.colorTertiaryPressed;
|
|
284
|
-
colorProps['--color-focus'] = self.colorSecondaryHover;
|
|
285
|
-
colorProps['--color-disabled'] = self.colorTertiary;
|
|
288
|
+
colorProps['--n-color'] = self.colorTertiary;
|
|
289
|
+
colorProps['--n-color-hover'] = self.colorTertiaryHover;
|
|
290
|
+
colorProps['--n-color-pressed'] = self.colorTertiaryPressed;
|
|
291
|
+
colorProps['--n-color-focus'] = self.colorSecondaryHover;
|
|
292
|
+
colorProps['--n-color-disabled'] = self.colorTertiary;
|
|
286
293
|
}
|
|
287
294
|
else {
|
|
288
|
-
colorProps['--color'] = self.colorQuaternary;
|
|
289
|
-
colorProps['--color-hover'] = self.colorQuaternaryHover;
|
|
290
|
-
colorProps['--color-pressed'] = self.colorQuaternaryPressed;
|
|
291
|
-
colorProps['--color-focus'] = self.colorQuaternaryHover;
|
|
292
|
-
colorProps['--color-disabled'] = self.colorQuaternary;
|
|
295
|
+
colorProps['--n-color'] = self.colorQuaternary;
|
|
296
|
+
colorProps['--n-color-hover'] = self.colorQuaternaryHover;
|
|
297
|
+
colorProps['--n-color-pressed'] = self.colorQuaternaryPressed;
|
|
298
|
+
colorProps['--n-color-focus'] = self.colorQuaternaryHover;
|
|
299
|
+
colorProps['--n-color-disabled'] = self.colorQuaternary;
|
|
293
300
|
}
|
|
294
|
-
colorProps['--ripple-color'] = '#0000';
|
|
295
|
-
colorProps['--text-color'] = mergedColor;
|
|
296
|
-
colorProps['--text-color-hover'] = mergedColor;
|
|
297
|
-
colorProps['--text-color-pressed'] = mergedColor;
|
|
298
|
-
colorProps['--text-color-focus'] = mergedColor;
|
|
299
|
-
colorProps['--text-color-disabled'] = mergedColor;
|
|
301
|
+
colorProps['--n-ripple-color'] = '#0000';
|
|
302
|
+
colorProps['--n-text-color'] = mergedColor;
|
|
303
|
+
colorProps['--n-text-color-hover'] = mergedColor;
|
|
304
|
+
colorProps['--n-text-color-pressed'] = mergedColor;
|
|
305
|
+
colorProps['--n-text-color-focus'] = mergedColor;
|
|
306
|
+
colorProps['--n-text-color-disabled'] = mergedColor;
|
|
300
307
|
}
|
|
301
308
|
else {
|
|
302
309
|
colorProps = {
|
|
303
|
-
'--color': color || self[(0, _utils_1.createKey)('color', mergedType)],
|
|
304
|
-
'--color-hover': color
|
|
310
|
+
'--n-color': color || self[(0, _utils_1.createKey)('color', mergedType)],
|
|
311
|
+
'--n-color-hover': color
|
|
305
312
|
? (0, index_1.createHoverColor)(color)
|
|
306
313
|
: self[(0, _utils_1.createKey)('colorHover', mergedType)],
|
|
307
|
-
'--color-pressed': color
|
|
314
|
+
'--n-color-pressed': color
|
|
308
315
|
? (0, index_1.createPressedColor)(color)
|
|
309
316
|
: self[(0, _utils_1.createKey)('colorPressed', mergedType)],
|
|
310
|
-
'--color-focus': color
|
|
317
|
+
'--n-color-focus': color
|
|
311
318
|
? (0, index_1.createHoverColor)(color)
|
|
312
319
|
: self[(0, _utils_1.createKey)('colorFocus', mergedType)],
|
|
313
|
-
'--color-disabled': color || self[(0, _utils_1.createKey)('colorDisabled', mergedType)],
|
|
314
|
-
'--ripple-color': color || self[(0, _utils_1.createKey)('rippleColor', mergedType)],
|
|
315
|
-
'--text-color': textColor ||
|
|
320
|
+
'--n-color-disabled': color || self[(0, _utils_1.createKey)('colorDisabled', mergedType)],
|
|
321
|
+
'--n-ripple-color': color || self[(0, _utils_1.createKey)('rippleColor', mergedType)],
|
|
322
|
+
'--n-text-color': textColor ||
|
|
316
323
|
(color
|
|
317
324
|
? self.textColorPrimary
|
|
318
325
|
: typeIsTertiary
|
|
319
326
|
? self.textColorTertiary
|
|
320
327
|
: self[(0, _utils_1.createKey)('textColor', mergedType)]),
|
|
321
|
-
'--text-color-hover': textColor ||
|
|
328
|
+
'--n-text-color-hover': textColor ||
|
|
322
329
|
(color
|
|
323
330
|
? self.textColorHoverPrimary
|
|
324
331
|
: self[(0, _utils_1.createKey)('textColorHover', mergedType)]),
|
|
325
|
-
'--text-color-pressed': textColor ||
|
|
332
|
+
'--n-text-color-pressed': textColor ||
|
|
326
333
|
(color
|
|
327
334
|
? self.textColorPressedPrimary
|
|
328
335
|
: self[(0, _utils_1.createKey)('textColorPressed', mergedType)]),
|
|
329
|
-
'--text-color-focus': textColor ||
|
|
336
|
+
'--n-text-color-focus': textColor ||
|
|
330
337
|
(color
|
|
331
338
|
? self.textColorFocusPrimary
|
|
332
339
|
: self[(0, _utils_1.createKey)('textColorFocus', mergedType)]),
|
|
333
|
-
'--text-color-disabled': textColor ||
|
|
340
|
+
'--n-text-color-disabled': textColor ||
|
|
334
341
|
(color
|
|
335
342
|
? self.textColorDisabledPrimary
|
|
336
343
|
: self[(0, _utils_1.createKey)('textColorDisabled', mergedType)])
|
|
@@ -338,58 +345,58 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
338
345
|
}
|
|
339
346
|
// border
|
|
340
347
|
let borderProps = {
|
|
341
|
-
'--border': 'initial',
|
|
342
|
-
'--border-hover': 'initial',
|
|
343
|
-
'--border-pressed': 'initial',
|
|
344
|
-
'--border-focus': 'initial',
|
|
345
|
-
'--border-disabled': 'initial'
|
|
348
|
+
'--n-border': 'initial',
|
|
349
|
+
'--n-border-hover': 'initial',
|
|
350
|
+
'--n-border-pressed': 'initial',
|
|
351
|
+
'--n-border-focus': 'initial',
|
|
352
|
+
'--n-border-disabled': 'initial'
|
|
346
353
|
};
|
|
347
354
|
if (text) {
|
|
348
355
|
borderProps = {
|
|
349
|
-
'--border': 'none',
|
|
350
|
-
'--border-hover': 'none',
|
|
351
|
-
'--border-pressed': 'none',
|
|
352
|
-
'--border-focus': 'none',
|
|
353
|
-
'--border-disabled': 'none'
|
|
356
|
+
'--n-border': 'none',
|
|
357
|
+
'--n-border-hover': 'none',
|
|
358
|
+
'--n-border-pressed': 'none',
|
|
359
|
+
'--n-border-focus': 'none',
|
|
360
|
+
'--n-border-disabled': 'none'
|
|
354
361
|
};
|
|
355
362
|
}
|
|
356
363
|
else {
|
|
357
364
|
borderProps = {
|
|
358
|
-
'--border': self[(0, _utils_1.createKey)('border', mergedType)],
|
|
359
|
-
'--border-hover': self[(0, _utils_1.createKey)('borderHover', mergedType)],
|
|
360
|
-
'--border-pressed': self[(0, _utils_1.createKey)('borderPressed', mergedType)],
|
|
361
|
-
'--border-focus': self[(0, _utils_1.createKey)('borderFocus', mergedType)],
|
|
362
|
-
'--border-disabled': self[(0, _utils_1.createKey)('borderDisabled', mergedType)]
|
|
365
|
+
'--n-border': self[(0, _utils_1.createKey)('border', mergedType)],
|
|
366
|
+
'--n-border-hover': self[(0, _utils_1.createKey)('borderHover', mergedType)],
|
|
367
|
+
'--n-border-pressed': self[(0, _utils_1.createKey)('borderPressed', mergedType)],
|
|
368
|
+
'--n-border-focus': self[(0, _utils_1.createKey)('borderFocus', mergedType)],
|
|
369
|
+
'--n-border-disabled': self[(0, _utils_1.createKey)('borderDisabled', mergedType)]
|
|
363
370
|
};
|
|
364
371
|
}
|
|
365
372
|
// size
|
|
366
373
|
const { [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('paddingRound', size)]: paddingRound, [(0, _utils_1.createKey)('iconSize', size)]: iconSize, [(0, _utils_1.createKey)('borderRadius', size)]: borderRadius, [(0, _utils_1.createKey)('iconMargin', size)]: iconMargin, waveOpacity } = self;
|
|
367
374
|
const sizeProps = {
|
|
368
|
-
'--width': circle && !text ? height : 'initial',
|
|
369
|
-
'--height': text ? 'initial' : height,
|
|
370
|
-
'--font-size': fontSize,
|
|
371
|
-
'--padding': circle
|
|
375
|
+
'--n-width': circle && !text ? height : 'initial',
|
|
376
|
+
'--n-height': text ? 'initial' : height,
|
|
377
|
+
'--n-font-size': fontSize,
|
|
378
|
+
'--n-padding': circle
|
|
372
379
|
? 'initial'
|
|
373
380
|
: text
|
|
374
381
|
? 'initial'
|
|
375
382
|
: round
|
|
376
383
|
? paddingRound
|
|
377
384
|
: padding,
|
|
378
|
-
'--icon-size': iconSize,
|
|
379
|
-
'--icon-margin': iconMargin,
|
|
380
|
-
'--border-radius': text
|
|
385
|
+
'--n-icon-size': iconSize,
|
|
386
|
+
'--n-icon-margin': iconMargin,
|
|
387
|
+
'--n-border-radius': text
|
|
381
388
|
? 'initial'
|
|
382
389
|
: circle || round
|
|
383
390
|
? height
|
|
384
391
|
: borderRadius
|
|
385
392
|
};
|
|
386
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({ '--bezier': cubicBezierEaseInOut, '--bezier-ease-out': cubicBezierEaseOut, '--ripple-duration': rippleDuration, '--opacity-disabled': opacityDisabled, '--wave-opacity': waveOpacity }, fontProps), colorProps), borderProps), sizeProps);
|
|
393
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ '--n-bezier': cubicBezierEaseInOut, '--n-bezier-ease-out': cubicBezierEaseOut, '--n-ripple-duration': rippleDuration, '--n-opacity-disabled': opacityDisabled, '--n-wave-opacity': waveOpacity }, fontProps), colorProps), borderProps), sizeProps);
|
|
387
394
|
})
|
|
388
395
|
};
|
|
389
396
|
},
|
|
390
397
|
render() {
|
|
391
398
|
const { $slots, mergedClsPrefix, tag: Component } = this;
|
|
392
|
-
return ((0, vue_1.h)(Component, { ref: "
|
|
399
|
+
return ((0, vue_1.h)(Component, { ref: "selfElRef", class: [
|
|
393
400
|
`${mergedClsPrefix}-button`,
|
|
394
401
|
`${mergedClsPrefix}-button--${this.type}-type`,
|
|
395
402
|
`${mergedClsPrefix}-button--${this.mergedSize}-type`,
|
|
@@ -400,9 +407,10 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
400
407
|
!this.text && this.dashed && `${mergedClsPrefix}-button--dashed`,
|
|
401
408
|
this.color && `${mergedClsPrefix}-button--color`,
|
|
402
409
|
this.secondary && `${mergedClsPrefix}-button--secondary`,
|
|
410
|
+
this.loading && `${mergedClsPrefix}-button--loading`,
|
|
403
411
|
this.ghost && `${mergedClsPrefix}-button--ghost` // required for button group border collapse
|
|
404
412
|
], tabindex: this.mergedFocusable ? 0 : -1, type: this.attrType, style: this.cssVars, disabled: this.disabled, onClick: this.handleClick, onBlur: this.handleBlur, onMousedown: this.handleMousedown, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown },
|
|
405
|
-
$slots.default && this.iconPlacement === 'right' ? ((0, vue_1.h)("
|
|
413
|
+
$slots.default && this.iconPlacement === 'right' ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__content` }, $slots)) : null,
|
|
406
414
|
(0, vue_1.h)(_internal_1.NFadeInExpandTransition, { width: true }, {
|
|
407
415
|
default: () => $slots.icon || this.loading ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__icon`, style: {
|
|
408
416
|
margin: !$slots.default ? 0 : ''
|
|
@@ -412,7 +420,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
412
420
|
}))) : null
|
|
413
421
|
}),
|
|
414
422
|
$slots.default && this.iconPlacement === 'left' ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__content` }, $slots)) : null,
|
|
415
|
-
!this.text ? ((0, vue_1.h)(_internal_1.NBaseWave, { ref: "
|
|
423
|
+
!this.text ? ((0, vue_1.h)(_internal_1.NBaseWave, { ref: "waveElRef", clsPrefix: mergedClsPrefix })) : null,
|
|
416
424
|
this.showBorder ? ((0, vue_1.h)("div", { "aria-hidden": true, class: `${mergedClsPrefix}-button__border`, style: this.customColorCssVars })) : null,
|
|
417
425
|
this.showBorder ? ((0, vue_1.h)("div", { "aria-hidden": true, class: `${mergedClsPrefix}-button__state-border`, style: this.customColorCssVars })) : null));
|
|
418
426
|
}
|