naive-ui 2.21.3 → 2.23.0
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/close/src/styles/index.cssr.js +6 -5
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +4 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +5 -2
- package/es/_internal/selection/src/Selection.js +11 -9
- package/es/_internal/selection/src/styles/index.cssr.js +6 -2
- package/es/alert/src/Alert.d.ts +20 -20
- 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/avatar/src/Avatar.d.ts +5 -3
- package/es/avatar/src/Avatar.js +7 -5
- package/es/avatar/src/styles/index.cssr.js +3 -5
- 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/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 +7 -0
- package/es/cascader/src/Cascader.d.ts +135 -0
- package/es/cascader/src/Cascader.js +2 -4
- package/es/cascader/src/CascaderMenu.d.ts +345 -0
- package/es/cascader/src/CascaderMenu.js +6 -5
- 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/styles/dark.js +3 -1
- package/es/cascader/styles/light.d.ts +13 -0
- package/es/cascader/styles/light.js +3 -1
- package/es/config-provider/src/ConfigProvider.d.ts +21 -0
- package/es/data-table/src/DataTable.js +7 -14
- 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 +80 -28
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +4 -3
- 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 +4 -1
- package/es/data-table/styles/_common.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +31 -6
- package/es/date-picker/src/DatePicker.js +47 -20
- package/es/date-picker/src/config.d.ts +1 -9
- package/es/date-picker/src/config.js +0 -8
- package/es/date-picker/src/interface.d.ts +2 -1
- package/es/date-picker/src/panel/date.d.ts +14 -1
- package/es/date-picker/src/panel/date.js +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +12 -0
- package/es/date-picker/src/panel/daterange.js +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +14 -7
- package/es/date-picker/src/panel/datetime.js +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +12 -0
- package/es/date-picker/src/panel/datetimerange.js +2 -2
- package/es/date-picker/src/panel/month.d.ts +18 -11
- package/es/date-picker/src/panel/month.js +23 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +16 -34
- package/es/date-picker/src/panel/use-calendar.js +35 -18
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +12 -31
- package/es/date-picker/src/panel/use-dual-calendar.js +23 -8
- package/es/date-picker/src/panel/use-panel-common.d.ts +12 -27
- package/es/date-picker/src/panel/use-panel-common.js +2 -2
- 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/dialog/src/Dialog.js +2 -2
- 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/element/index.d.ts +1 -0
- package/es/element/index.js +1 -0
- package/es/form/src/interface.d.ts +5 -4
- package/es/image/src/Image.js +8 -12
- package/es/input/src/Input.js +2 -0
- package/es/input-number/src/InputNumber.js +2 -0
- package/es/input-number/src/utils.js +1 -1
- package/es/locales/common/deDE.js +8 -0
- package/es/locales/common/enUS.d.ts +7 -0
- package/es/locales/common/enUS.js +8 -1
- package/es/locales/common/frFR.d.ts +3 -0
- package/es/locales/common/frFR.js +101 -0
- package/es/locales/common/idID.d.ts +2 -93
- package/es/locales/common/idID.js +8 -0
- package/es/locales/common/jaJP.js +8 -0
- package/es/locales/common/nbNO.js +8 -0
- package/es/locales/common/ruRU.js +8 -0
- package/es/locales/common/ukUA.js +8 -0
- package/es/locales/common/zhCN.js +7 -0
- package/es/locales/common/zhTW.d.ts +3 -0
- package/es/locales/common/zhTW.js +100 -0
- package/es/locales/date/frFR.d.ts +3 -0
- package/es/locales/date/frFR.js +6 -0
- package/es/locales/date/idID.d.ts +1 -6
- package/es/locales/date/zhTW.d.ts +3 -0
- package/es/locales/date/zhTW.js +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/page-header/src/PageHeader.js +3 -3
- package/es/page-header/src/styles/index.cssr.js +2 -4
- package/es/popover/src/Popover.js +4 -1
- package/es/popover/src/PopoverBody.js +3 -3
- 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/radio/src/Radio.js +3 -3
- package/es/radio/src/RadioButton.js +4 -5
- package/es/radio/src/styles/radio-group.cssr.js +8 -4
- package/es/radio/src/styles/radio.cssr.js +8 -4
- package/es/radio/src/use-radio.d.ts +0 -3
- package/es/radio/src/use-radio.js +1 -26
- package/es/switch/src/Switch.js +7 -0
- package/es/switch/src/styles/index.cssr.js +2 -0
- package/es/tabs/src/styles/index.cssr.js +1 -0
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +38 -1
- package/es/tree-select/src/TreeSelect.js +25 -10
- package/es/tree-select/src/styles/index.cssr.js +11 -2
- 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 +11 -0
- package/es/upload/src/Upload.js +33 -23
- package/es/upload/src/UploadFileList.js +4 -2
- package/es/upload/src/interface.d.ts +1 -0
- package/es/upload/src/styles/index.cssr.js +2 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/close/src/styles/index.cssr.js +6 -5
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +4 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +5 -2
- package/lib/_internal/selection/src/Selection.js +11 -9
- package/lib/_internal/selection/src/styles/index.cssr.js +6 -2
- package/lib/alert/src/Alert.d.ts +20 -20
- 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/avatar/src/Avatar.d.ts +5 -3
- package/lib/avatar/src/Avatar.js +7 -5
- package/lib/avatar/src/styles/index.cssr.js +3 -5
- 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/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 +7 -0
- package/lib/cascader/src/Cascader.d.ts +135 -0
- package/lib/cascader/src/Cascader.js +2 -4
- package/lib/cascader/src/CascaderMenu.d.ts +345 -0
- package/lib/cascader/src/CascaderMenu.js +6 -5
- 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/styles/dark.js +3 -1
- package/lib/cascader/styles/light.d.ts +13 -0
- package/lib/cascader/styles/light.js +3 -1
- package/lib/config-provider/src/ConfigProvider.d.ts +21 -0
- package/lib/data-table/src/DataTable.js +6 -13
- 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 +78 -26
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +4 -3
- 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 +4 -1
- package/lib/data-table/styles/_common.js +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +31 -6
- package/lib/date-picker/src/DatePicker.js +46 -19
- package/lib/date-picker/src/config.d.ts +1 -9
- package/lib/date-picker/src/config.js +1 -9
- package/lib/date-picker/src/interface.d.ts +2 -1
- package/lib/date-picker/src/panel/date.d.ts +14 -1
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +12 -0
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +14 -7
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +12 -0
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +18 -11
- package/lib/date-picker/src/panel/month.js +23 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +16 -34
- package/lib/date-picker/src/panel/use-calendar.js +34 -16
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +12 -31
- package/lib/date-picker/src/panel/use-dual-calendar.js +22 -6
- package/lib/date-picker/src/panel/use-panel-common.d.ts +12 -27
- package/lib/date-picker/src/panel/use-panel-common.js +3 -2
- 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/dialog/src/Dialog.js +2 -2
- 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/element/index.d.ts +1 -0
- package/lib/element/index.js +3 -1
- package/lib/form/src/interface.d.ts +5 -4
- package/lib/image/src/Image.js +7 -11
- package/lib/input/src/Input.js +2 -0
- package/lib/input-number/src/InputNumber.js +2 -0
- package/lib/input-number/src/utils.js +1 -1
- package/lib/locales/common/deDE.js +8 -0
- package/lib/locales/common/enUS.d.ts +7 -0
- package/lib/locales/common/enUS.js +8 -1
- package/lib/locales/common/frFR.d.ts +3 -0
- package/lib/locales/common/frFR.js +103 -0
- package/lib/locales/common/idID.d.ts +2 -93
- package/lib/locales/common/idID.js +8 -0
- package/lib/locales/common/jaJP.js +8 -0
- package/lib/locales/common/nbNO.js +8 -0
- package/lib/locales/common/ruRU.js +8 -0
- package/lib/locales/common/ukUA.js +8 -0
- package/lib/locales/common/zhCN.js +7 -0
- package/lib/locales/common/zhTW.d.ts +3 -0
- package/lib/locales/common/zhTW.js +102 -0
- package/lib/locales/date/frFR.d.ts +3 -0
- package/lib/locales/date/frFR.js +11 -0
- package/lib/locales/date/idID.d.ts +1 -6
- package/lib/locales/date/zhTW.d.ts +3 -0
- package/lib/locales/date/zhTW.js +11 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/page-header/src/PageHeader.js +3 -3
- package/lib/page-header/src/styles/index.cssr.js +2 -4
- package/lib/popover/src/Popover.js +4 -1
- package/lib/popover/src/PopoverBody.js +3 -3
- 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/radio/src/Radio.js +3 -3
- package/lib/radio/src/RadioButton.js +4 -5
- package/lib/radio/src/styles/radio-group.cssr.js +8 -4
- package/lib/radio/src/styles/radio.cssr.js +8 -4
- package/lib/radio/src/use-radio.d.ts +0 -3
- package/lib/radio/src/use-radio.js +1 -26
- package/lib/switch/src/Switch.js +7 -0
- package/lib/switch/src/styles/index.cssr.js +2 -0
- package/lib/tabs/src/styles/index.cssr.js +1 -0
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +38 -1
- package/lib/tree-select/src/TreeSelect.js +24 -9
- package/lib/tree-select/src/styles/index.cssr.js +11 -2
- 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 +11 -0
- package/lib/upload/src/Upload.js +33 -23
- package/lib/upload/src/UploadFileList.js +4 -2
- package/lib/upload/src/interface.d.ts +1 -0
- package/lib/upload/src/styles/index.cssr.js +2 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -4
- package/web-types.json +50 -7
package/es/badge/src/Badge.js
CHANGED
|
@@ -52,12 +52,12 @@ export default defineComponent({
|
|
|
52
52
|
const { type, color: propColor } = props;
|
|
53
53
|
const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self: { [createKey('color', type)]: color, fontFamily, fontSize } } = themeRef.value;
|
|
54
54
|
return {
|
|
55
|
-
'--font-size': fontSize,
|
|
56
|
-
'--font-family': fontFamily,
|
|
57
|
-
'--color': propColor || color,
|
|
58
|
-
'--ripple-color': propColor || color,
|
|
59
|
-
'--bezier': cubicBezierEaseInOut,
|
|
60
|
-
'--ripple-bezier': cubicBezierEaseOut
|
|
55
|
+
'--n-font-size': fontSize,
|
|
56
|
+
'--n-font-family': fontFamily,
|
|
57
|
+
'--n-color': propColor || color,
|
|
58
|
+
'--n-ripple-color': propColor || color,
|
|
59
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
60
|
+
'--n-ripple-bezier': cubicBezierEaseOut
|
|
61
61
|
};
|
|
62
62
|
})
|
|
63
63
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { c, cB, cM } from '../../../_utils/cssr';
|
|
2
2
|
import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
|
|
3
|
-
// --color
|
|
4
|
-
// --ripple-color
|
|
5
|
-
// --bezier
|
|
6
|
-
// --ripple-bezier
|
|
7
|
-
// --font-size
|
|
8
|
-
// --font-family
|
|
3
|
+
// --n-color
|
|
4
|
+
// --n-ripple-color
|
|
5
|
+
// --n-bezier
|
|
6
|
+
// --n-ripple-bezier
|
|
7
|
+
// --n-font-size
|
|
8
|
+
// --n-font-family
|
|
9
9
|
|
|
10
10
|
export default c([c('@keyframes badge-wave-spread', {
|
|
11
11
|
from: {
|
|
12
|
-
boxShadow: '0 0 0.5px 0px var(--ripple-color)',
|
|
12
|
+
boxShadow: '0 0 0.5px 0px var(--n-ripple-color)',
|
|
13
13
|
opacity: 0.6
|
|
14
14
|
},
|
|
15
15
|
to: {
|
|
16
16
|
// don't use exact 5px since chrome will display the animation with glitches
|
|
17
|
-
boxShadow: '0 0 0.5px 4.5px var(--ripple-color)',
|
|
17
|
+
boxShadow: '0 0 0.5px 4.5px var(--n-ripple-color)',
|
|
18
18
|
opacity: 0
|
|
19
19
|
}
|
|
20
20
|
}), cB('badge', `
|
|
21
21
|
display: inline-flex;
|
|
22
22
|
position: relative;
|
|
23
23
|
vertical-align: middle;
|
|
24
|
-
color: var(--color);
|
|
25
|
-
font-family: var(--font-family);
|
|
24
|
+
color: var(--n-color);
|
|
25
|
+
font-family: var(--n-font-family);
|
|
26
26
|
`, [cM('as-is', [cB('badge-sup', {
|
|
27
27
|
position: 'static',
|
|
28
28
|
transform: 'translateX(0)'
|
|
@@ -39,10 +39,10 @@ export default c([c('@keyframes badge-wave-spread', {
|
|
|
39
39
|
}, [c('::before', {
|
|
40
40
|
borderRadius: '4px'
|
|
41
41
|
})])]), cB('badge-sup', `
|
|
42
|
-
background: var(--color);
|
|
42
|
+
background: var(--n-color);
|
|
43
43
|
transition:
|
|
44
|
-
background-color .3s var(--bezier),
|
|
45
|
-
color .3s var(--bezier);
|
|
44
|
+
background-color .3s var(--n-bezier),
|
|
45
|
+
color .3s var(--n-bezier);
|
|
46
46
|
color: #FFF;
|
|
47
47
|
position: absolute;
|
|
48
48
|
height: 18px;
|
|
@@ -50,7 +50,7 @@ export default c([c('@keyframes badge-wave-spread', {
|
|
|
50
50
|
border-radius: 9px;
|
|
51
51
|
padding: 0 6px;
|
|
52
52
|
text-align: center;
|
|
53
|
-
font-size: var(--font-size);
|
|
53
|
+
font-size: var(--n-font-size);
|
|
54
54
|
transform: translateX(-50%);
|
|
55
55
|
left: 100%;
|
|
56
56
|
bottom: calc(100% - 9px);
|
|
@@ -64,7 +64,7 @@ export default c([c('@keyframes badge-wave-spread', {
|
|
|
64
64
|
animationDuration: '2s',
|
|
65
65
|
animationIterationCount: 'infinite',
|
|
66
66
|
animationDelay: '1s',
|
|
67
|
-
animationTimingFunction: 'var(--ripple-bezier)',
|
|
67
|
+
animationTimingFunction: 'var(--n-ripple-bezier)',
|
|
68
68
|
animationName: 'badge-wave-spread'
|
|
69
69
|
}), c('&::before', `
|
|
70
70
|
opacity: 0;
|
|
@@ -41,11 +41,12 @@ declare const buttonProps: {
|
|
|
41
41
|
readonly type: PropType<"button" | "reset" | "submit">;
|
|
42
42
|
readonly default: "button";
|
|
43
43
|
};
|
|
44
|
-
readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
45
44
|
readonly bordered: {
|
|
46
45
|
readonly type: BooleanConstructor;
|
|
47
46
|
readonly default: true;
|
|
48
47
|
};
|
|
48
|
+
readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
49
|
+
readonly internalAutoFocus: BooleanConstructor;
|
|
49
50
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
50
51
|
heightTiny: string;
|
|
51
52
|
heightSmall: string;
|
|
@@ -700,11 +701,12 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
700
701
|
readonly type: PropType<"button" | "reset" | "submit">;
|
|
701
702
|
readonly default: "button";
|
|
702
703
|
};
|
|
703
|
-
readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
704
704
|
readonly bordered: {
|
|
705
705
|
readonly type: BooleanConstructor;
|
|
706
706
|
readonly default: true;
|
|
707
707
|
};
|
|
708
|
+
readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
709
|
+
readonly internalAutoFocus: BooleanConstructor;
|
|
708
710
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
709
711
|
heightTiny: string;
|
|
710
712
|
heightSmall: string;
|
|
@@ -1318,8 +1320,8 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1318
1320
|
rippleDuration: string;
|
|
1319
1321
|
}, any>>>;
|
|
1320
1322
|
}, {
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
+
selfElRef: import("vue").Ref<HTMLElement | null>;
|
|
1324
|
+
waveElRef: import("vue").Ref<{
|
|
1323
1325
|
play: () => void;
|
|
1324
1326
|
} | null>;
|
|
1325
1327
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
@@ -1334,42 +1336,42 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1334
1336
|
handleKeyup: (e: KeyboardEvent) => void;
|
|
1335
1337
|
handleClick: (e: MouseEvent) => void;
|
|
1336
1338
|
customColorCssVars: import("vue").ComputedRef<{
|
|
1337
|
-
'--border-color': string;
|
|
1338
|
-
'--border-color-hover': string;
|
|
1339
|
-
'--border-color-pressed': string;
|
|
1340
|
-
'--border-color-focus': string;
|
|
1341
|
-
'--border-color-disabled': string;
|
|
1339
|
+
'--n-border-color': string;
|
|
1340
|
+
'--n-border-color-hover': string;
|
|
1341
|
+
'--n-border-color-pressed': string;
|
|
1342
|
+
'--n-border-color-focus': string;
|
|
1343
|
+
'--n-border-color-disabled': string;
|
|
1342
1344
|
} | null>;
|
|
1343
1345
|
cssVars: import("vue").ComputedRef<{
|
|
1344
|
-
'--width': string;
|
|
1345
|
-
'--height': string;
|
|
1346
|
-
'--font-size': string;
|
|
1347
|
-
'--padding': string;
|
|
1348
|
-
'--icon-size': string;
|
|
1349
|
-
'--icon-margin': string;
|
|
1350
|
-
'--border-radius': string;
|
|
1351
|
-
'--border': string;
|
|
1352
|
-
'--border-hover': string;
|
|
1353
|
-
'--border-pressed': string;
|
|
1354
|
-
'--border-focus': string;
|
|
1355
|
-
'--border-disabled': string;
|
|
1356
|
-
'--color': string;
|
|
1357
|
-
'--color-hover': string;
|
|
1358
|
-
'--color-pressed': string;
|
|
1359
|
-
'--color-focus': string;
|
|
1360
|
-
'--color-disabled': string;
|
|
1361
|
-
'--ripple-color': string;
|
|
1362
|
-
'--text-color': string;
|
|
1363
|
-
'--text-color-hover': string;
|
|
1364
|
-
'--text-color-pressed': string;
|
|
1365
|
-
'--text-color-focus': string;
|
|
1366
|
-
'--text-color-disabled': string;
|
|
1346
|
+
'--n-width': string;
|
|
1347
|
+
'--n-height': string;
|
|
1348
|
+
'--n-font-size': string;
|
|
1349
|
+
'--n-padding': string;
|
|
1350
|
+
'--n-icon-size': string;
|
|
1351
|
+
'--n-icon-margin': string;
|
|
1352
|
+
'--n-border-radius': string;
|
|
1353
|
+
'--n-border': string;
|
|
1354
|
+
'--n-border-hover': string;
|
|
1355
|
+
'--n-border-pressed': string;
|
|
1356
|
+
'--n-border-focus': string;
|
|
1357
|
+
'--n-border-disabled': string;
|
|
1358
|
+
'--n-color': string;
|
|
1359
|
+
'--n-color-hover': string;
|
|
1360
|
+
'--n-color-pressed': string;
|
|
1361
|
+
'--n-color-focus': string;
|
|
1362
|
+
'--n-color-disabled': string;
|
|
1363
|
+
'--n-ripple-color': string;
|
|
1364
|
+
'--n-text-color': string;
|
|
1365
|
+
'--n-text-color-hover': string;
|
|
1366
|
+
'--n-text-color-pressed': string;
|
|
1367
|
+
'--n-text-color-focus': string;
|
|
1368
|
+
'--n-text-color-disabled': string;
|
|
1367
1369
|
fontWeight: string;
|
|
1368
|
-
'--bezier': string;
|
|
1369
|
-
'--bezier-ease-out': string;
|
|
1370
|
-
'--ripple-duration': string;
|
|
1371
|
-
'--opacity-disabled': string;
|
|
1372
|
-
'--wave-opacity': string;
|
|
1370
|
+
'--n-bezier': string;
|
|
1371
|
+
'--n-bezier-ease-out': string;
|
|
1372
|
+
'--n-ripple-duration': string;
|
|
1373
|
+
'--n-opacity-disabled': string;
|
|
1374
|
+
'--n-wave-opacity': string;
|
|
1373
1375
|
}>;
|
|
1374
1376
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
1375
1377
|
readonly color?: unknown;
|
|
@@ -1393,8 +1395,9 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1393
1395
|
readonly dashed?: unknown;
|
|
1394
1396
|
readonly iconPlacement?: unknown;
|
|
1395
1397
|
readonly attrType?: unknown;
|
|
1396
|
-
readonly onClick?: unknown;
|
|
1397
1398
|
readonly bordered?: unknown;
|
|
1399
|
+
readonly onClick?: unknown;
|
|
1400
|
+
readonly internalAutoFocus?: unknown;
|
|
1398
1401
|
readonly theme?: unknown;
|
|
1399
1402
|
readonly themeOverrides?: unknown;
|
|
1400
1403
|
readonly builtinThemeOverrides?: unknown;
|
|
@@ -1418,6 +1421,7 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1418
1421
|
quaternary: boolean;
|
|
1419
1422
|
iconPlacement: "left" | "right";
|
|
1420
1423
|
attrType: "button" | "reset" | "submit";
|
|
1424
|
+
internalAutoFocus: boolean;
|
|
1421
1425
|
} & {
|
|
1422
1426
|
color?: string | undefined;
|
|
1423
1427
|
size?: Size | undefined;
|
|
@@ -2055,6 +2059,7 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
2055
2059
|
quaternary: boolean;
|
|
2056
2060
|
iconPlacement: "left" | "right";
|
|
2057
2061
|
attrType: "button" | "reset" | "submit";
|
|
2062
|
+
internalAutoFocus: boolean;
|
|
2058
2063
|
}>;
|
|
2059
2064
|
declare type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof ButtonProps>;
|
|
2060
2065
|
declare type MergedProps = Partial<ButtonProps & NativeButtonProps>;
|