naive-ui 2.19.1 → 2.19.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/selection/src/Selection.d.ts +56 -56
- package/es/_internal/selection/styles/_common.d.ts +0 -8
- package/es/_internal/selection/styles/_common.js +0 -8
- package/es/_internal/selection/styles/dark.js +10 -2
- package/es/_internal/selection/styles/light.d.ts +16 -16
- package/es/_internal/selection/styles/light.js +10 -2
- package/es/_mixins/use-rtl.js +1 -1
- package/es/alert/src/Alert.js +15 -16
- package/es/cascader/src/Cascader.d.ts +80 -80
- package/es/cascader/src/CascaderOption.d.ts +8 -8
- package/es/cascader/src/CascaderSelectMenu.d.ts +8 -8
- package/es/cascader/src/CascaderSubmenu.d.ts +8 -8
- package/es/cascader/styles/light.d.ts +8 -8
- package/es/checkbox/src/Checkbox.d.ts +1 -0
- package/es/checkbox/src/Checkbox.js +5 -3
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- package/es/data-table/src/DataTable.d.ts +88 -88
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +16 -16
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +16 -16
- package/es/data-table/src/TableParts/Body.d.ts +16 -16
- package/es/data-table/src/TableParts/Cell.d.ts +32 -32
- package/es/data-table/src/TableParts/Header.d.ts +16 -16
- package/es/data-table/styles/light.d.ts +8 -8
- package/es/drawer/src/styles/index.cssr.js +2 -0
- package/es/global-style/src/GlobalStyle.js +13 -3
- package/es/input-number/src/InputNumber.d.ts +3 -3
- package/es/jest-setup.js +3 -1
- package/es/locales/common/ukUA.d.ts +3 -0
- package/es/locales/common/ukUA.js +92 -0
- package/es/locales/date/ukUA.d.ts +3 -0
- package/es/locales/date/ukUA.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/pagination/src/Pagination.d.ts +88 -99
- package/es/pagination/styles/light.d.ts +8 -8
- package/es/select/src/Select.d.ts +80 -80
- package/es/select/styles/light.d.ts +8 -8
- package/es/tree-select/src/TreeSelect.d.ts +80 -80
- package/es/tree-select/styles/light.d.ts +8 -8
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +56 -56
- package/lib/_internal/selection/styles/_common.d.ts +0 -8
- package/lib/_internal/selection/styles/_common.js +0 -8
- package/lib/_internal/selection/styles/dark.js +10 -2
- package/lib/_internal/selection/styles/light.d.ts +16 -16
- package/lib/_internal/selection/styles/light.js +10 -2
- package/lib/_mixins/use-rtl.js +1 -1
- package/lib/alert/src/Alert.js +15 -16
- package/lib/cascader/src/Cascader.d.ts +80 -80
- package/lib/cascader/src/CascaderOption.d.ts +8 -8
- package/lib/cascader/src/CascaderSelectMenu.d.ts +8 -8
- package/lib/cascader/src/CascaderSubmenu.d.ts +8 -8
- package/lib/cascader/styles/light.d.ts +8 -8
- package/lib/checkbox/src/Checkbox.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.js +5 -3
- package/lib/checkbox/src/CheckboxGroup.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +88 -88
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +16 -16
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +16 -16
- package/lib/data-table/src/TableParts/Body.d.ts +16 -16
- package/lib/data-table/src/TableParts/Cell.d.ts +32 -32
- package/lib/data-table/src/TableParts/Header.d.ts +16 -16
- package/lib/data-table/styles/light.d.ts +8 -8
- package/lib/drawer/src/styles/index.cssr.js +2 -0
- package/lib/global-style/src/GlobalStyle.js +13 -3
- package/lib/input-number/src/InputNumber.d.ts +3 -3
- package/lib/jest-setup.js +3 -1
- package/lib/locales/common/ukUA.d.ts +3 -0
- package/lib/locales/common/ukUA.js +94 -0
- package/lib/locales/date/ukUA.d.ts +3 -0
- package/lib/locales/date/ukUA.js +8 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/pagination/src/Pagination.d.ts +88 -99
- package/lib/pagination/styles/light.d.ts +8 -8
- package/lib/select/src/Select.d.ts +80 -80
- package/lib/select/styles/light.d.ts +8 -8
- package/lib/tree-select/src/TreeSelect.d.ts +80 -80
- package/lib/tree-select/styles/light.d.ts +8 -8
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
|
@@ -57,6 +57,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
onPatternInput: PropType<(e: InputEvent) => void>;
|
|
58
58
|
renderLabel: PropType<RenderLabel>;
|
|
59
59
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
|
|
60
|
+
fontSizeTiny: string;
|
|
61
|
+
fontSizeSmall: string;
|
|
62
|
+
fontSizeMedium: string;
|
|
63
|
+
fontSizeLarge: string;
|
|
64
|
+
heightTiny: string;
|
|
65
|
+
heightSmall: string;
|
|
66
|
+
heightMedium: string;
|
|
67
|
+
heightLarge: string;
|
|
60
68
|
borderRadius: string;
|
|
61
69
|
textColor: string;
|
|
62
70
|
textColorDisabled: string;
|
|
@@ -97,14 +105,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
105
|
clearColor: string;
|
|
98
106
|
clearColorHover: string;
|
|
99
107
|
clearColorPressed: string;
|
|
100
|
-
heightTiny: string;
|
|
101
|
-
heightSmall: string;
|
|
102
|
-
heightMedium: string;
|
|
103
|
-
heightLarge: string;
|
|
104
|
-
fontSizeTiny: string;
|
|
105
|
-
fontSizeSmall: string;
|
|
106
|
-
fontSizeMedium: string;
|
|
107
|
-
fontSizeLarge: string;
|
|
108
108
|
paddingSingle: string;
|
|
109
109
|
clearSize: string;
|
|
110
110
|
arrowSize: string;
|
|
@@ -125,6 +125,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
125
|
}, any>;
|
|
126
126
|
}>>;
|
|
127
127
|
themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
128
|
+
fontSizeTiny: string;
|
|
129
|
+
fontSizeSmall: string;
|
|
130
|
+
fontSizeMedium: string;
|
|
131
|
+
fontSizeLarge: string;
|
|
132
|
+
heightTiny: string;
|
|
133
|
+
heightSmall: string;
|
|
134
|
+
heightMedium: string;
|
|
135
|
+
heightLarge: string;
|
|
128
136
|
borderRadius: string;
|
|
129
137
|
textColor: string;
|
|
130
138
|
textColorDisabled: string;
|
|
@@ -165,14 +173,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
165
173
|
clearColor: string;
|
|
166
174
|
clearColorHover: string;
|
|
167
175
|
clearColorPressed: string;
|
|
168
|
-
heightTiny: string;
|
|
169
|
-
heightSmall: string;
|
|
170
|
-
heightMedium: string;
|
|
171
|
-
heightLarge: string;
|
|
172
|
-
fontSizeTiny: string;
|
|
173
|
-
fontSizeSmall: string;
|
|
174
|
-
fontSizeMedium: string;
|
|
175
|
-
fontSizeLarge: string;
|
|
176
176
|
paddingSingle: string;
|
|
177
177
|
clearSize: string;
|
|
178
178
|
arrowSize: string;
|
|
@@ -193,6 +193,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
193
193
|
}, any>;
|
|
194
194
|
}>>>;
|
|
195
195
|
builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
196
|
+
fontSizeTiny: string;
|
|
197
|
+
fontSizeSmall: string;
|
|
198
|
+
fontSizeMedium: string;
|
|
199
|
+
fontSizeLarge: string;
|
|
200
|
+
heightTiny: string;
|
|
201
|
+
heightSmall: string;
|
|
202
|
+
heightMedium: string;
|
|
203
|
+
heightLarge: string;
|
|
196
204
|
borderRadius: string;
|
|
197
205
|
textColor: string;
|
|
198
206
|
textColorDisabled: string;
|
|
@@ -233,14 +241,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
233
241
|
clearColor: string;
|
|
234
242
|
clearColorHover: string;
|
|
235
243
|
clearColorPressed: string;
|
|
236
|
-
heightTiny: string;
|
|
237
|
-
heightSmall: string;
|
|
238
|
-
heightMedium: string;
|
|
239
|
-
heightLarge: string;
|
|
240
|
-
fontSizeTiny: string;
|
|
241
|
-
fontSizeSmall: string;
|
|
242
|
-
fontSizeMedium: string;
|
|
243
|
-
fontSizeLarge: string;
|
|
244
244
|
paddingSingle: string;
|
|
245
245
|
clearSize: string;
|
|
246
246
|
arrowSize: string;
|
|
@@ -362,6 +362,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
362
362
|
name: "common";
|
|
363
363
|
};
|
|
364
364
|
self: {
|
|
365
|
+
fontSizeTiny: string;
|
|
366
|
+
fontSizeSmall: string;
|
|
367
|
+
fontSizeMedium: string;
|
|
368
|
+
fontSizeLarge: string;
|
|
369
|
+
heightTiny: string;
|
|
370
|
+
heightSmall: string;
|
|
371
|
+
heightMedium: string;
|
|
372
|
+
heightLarge: string;
|
|
365
373
|
borderRadius: string;
|
|
366
374
|
textColor: string;
|
|
367
375
|
textColorDisabled: string;
|
|
@@ -402,14 +410,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
402
410
|
clearColor: string;
|
|
403
411
|
clearColorHover: string;
|
|
404
412
|
clearColorPressed: string;
|
|
405
|
-
heightTiny: string;
|
|
406
|
-
heightSmall: string;
|
|
407
|
-
heightMedium: string;
|
|
408
|
-
heightLarge: string;
|
|
409
|
-
fontSizeTiny: string;
|
|
410
|
-
fontSizeSmall: string;
|
|
411
|
-
fontSizeMedium: string;
|
|
412
|
-
fontSizeLarge: string;
|
|
413
413
|
paddingSingle: string;
|
|
414
414
|
clearSize: string;
|
|
415
415
|
arrowSize: string;
|
|
@@ -583,6 +583,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
583
583
|
onClick?: ((e: MouseEvent) => void) | undefined;
|
|
584
584
|
placeholder?: string | undefined;
|
|
585
585
|
theme?: import("../../../_mixins").Theme<"InternalSelection", {
|
|
586
|
+
fontSizeTiny: string;
|
|
587
|
+
fontSizeSmall: string;
|
|
588
|
+
fontSizeMedium: string;
|
|
589
|
+
fontSizeLarge: string;
|
|
590
|
+
heightTiny: string;
|
|
591
|
+
heightSmall: string;
|
|
592
|
+
heightMedium: string;
|
|
593
|
+
heightLarge: string;
|
|
586
594
|
borderRadius: string;
|
|
587
595
|
textColor: string;
|
|
588
596
|
textColorDisabled: string;
|
|
@@ -623,14 +631,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
623
631
|
clearColor: string;
|
|
624
632
|
clearColorHover: string;
|
|
625
633
|
clearColorPressed: string;
|
|
626
|
-
heightTiny: string;
|
|
627
|
-
heightSmall: string;
|
|
628
|
-
heightMedium: string;
|
|
629
|
-
heightLarge: string;
|
|
630
|
-
fontSizeTiny: string;
|
|
631
|
-
fontSizeSmall: string;
|
|
632
|
-
fontSizeMedium: string;
|
|
633
|
-
fontSizeLarge: string;
|
|
634
634
|
paddingSingle: string;
|
|
635
635
|
clearSize: string;
|
|
636
636
|
arrowSize: string;
|
|
@@ -651,6 +651,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
651
651
|
}, any>;
|
|
652
652
|
}> | undefined;
|
|
653
653
|
themeOverrides?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
654
|
+
fontSizeTiny: string;
|
|
655
|
+
fontSizeSmall: string;
|
|
656
|
+
fontSizeMedium: string;
|
|
657
|
+
fontSizeLarge: string;
|
|
658
|
+
heightTiny: string;
|
|
659
|
+
heightSmall: string;
|
|
660
|
+
heightMedium: string;
|
|
661
|
+
heightLarge: string;
|
|
654
662
|
borderRadius: string;
|
|
655
663
|
textColor: string;
|
|
656
664
|
textColorDisabled: string;
|
|
@@ -691,14 +699,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
691
699
|
clearColor: string;
|
|
692
700
|
clearColorHover: string;
|
|
693
701
|
clearColorPressed: string;
|
|
694
|
-
heightTiny: string;
|
|
695
|
-
heightSmall: string;
|
|
696
|
-
heightMedium: string;
|
|
697
|
-
heightLarge: string;
|
|
698
|
-
fontSizeTiny: string;
|
|
699
|
-
fontSizeSmall: string;
|
|
700
|
-
fontSizeMedium: string;
|
|
701
|
-
fontSizeLarge: string;
|
|
702
702
|
paddingSingle: string;
|
|
703
703
|
clearSize: string;
|
|
704
704
|
arrowSize: string;
|
|
@@ -719,6 +719,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
719
719
|
}, any>;
|
|
720
720
|
}>> | undefined;
|
|
721
721
|
builtinThemeOverrides?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
722
|
+
fontSizeTiny: string;
|
|
723
|
+
fontSizeSmall: string;
|
|
724
|
+
fontSizeMedium: string;
|
|
725
|
+
fontSizeLarge: string;
|
|
726
|
+
heightTiny: string;
|
|
727
|
+
heightSmall: string;
|
|
728
|
+
heightMedium: string;
|
|
729
|
+
heightLarge: string;
|
|
722
730
|
borderRadius: string;
|
|
723
731
|
textColor: string;
|
|
724
732
|
textColorDisabled: string;
|
|
@@ -759,14 +767,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
759
767
|
clearColor: string;
|
|
760
768
|
clearColorHover: string;
|
|
761
769
|
clearColorPressed: string;
|
|
762
|
-
heightTiny: string;
|
|
763
|
-
heightSmall: string;
|
|
764
|
-
heightMedium: string;
|
|
765
|
-
heightLarge: string;
|
|
766
|
-
fontSizeTiny: string;
|
|
767
|
-
fontSizeSmall: string;
|
|
768
|
-
fontSizeMedium: string;
|
|
769
|
-
fontSizeLarge: string;
|
|
770
770
|
paddingSingle: string;
|
|
771
771
|
clearSize: string;
|
|
772
772
|
arrowSize: string;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
heightTiny: string;
|
|
3
|
-
heightSmall: string;
|
|
4
|
-
heightMedium: string;
|
|
5
|
-
heightLarge: string;
|
|
6
|
-
fontSizeTiny: string;
|
|
7
|
-
fontSizeSmall: string;
|
|
8
|
-
fontSizeMedium: string;
|
|
9
|
-
fontSizeLarge: string;
|
|
10
2
|
paddingSingle: string;
|
|
11
3
|
clearSize: string;
|
|
12
4
|
arrowSize: string;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
heightTiny: '22px',
|
|
3
|
-
heightSmall: '28px',
|
|
4
|
-
heightMedium: '34px',
|
|
5
|
-
heightLarge: '40px',
|
|
6
|
-
fontSizeTiny: '12px',
|
|
7
|
-
fontSizeSmall: '14px',
|
|
8
|
-
fontSizeMedium: '14px',
|
|
9
|
-
fontSizeLarge: '15px',
|
|
10
2
|
paddingSingle: '0 26px 0 14px',
|
|
11
3
|
clearSize: '16px',
|
|
12
4
|
arrowSize: '16px'
|
|
@@ -9,8 +9,16 @@ const internalSelectionDark = {
|
|
|
9
9
|
Popover: popoverDark
|
|
10
10
|
},
|
|
11
11
|
self(vars) {
|
|
12
|
-
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled } = vars;
|
|
13
|
-
return Object.assign(Object.assign({}, commonVars), {
|
|
12
|
+
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge } = vars;
|
|
13
|
+
return Object.assign(Object.assign({}, commonVars), { fontSizeTiny,
|
|
14
|
+
fontSizeSmall,
|
|
15
|
+
fontSizeMedium,
|
|
16
|
+
fontSizeLarge,
|
|
17
|
+
heightTiny,
|
|
18
|
+
heightSmall,
|
|
19
|
+
heightMedium,
|
|
20
|
+
heightLarge,
|
|
21
|
+
borderRadius,
|
|
14
22
|
// default
|
|
15
23
|
textColor: textColor2, textColorDisabled,
|
|
16
24
|
placeholderColor,
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../../_styles/common';
|
|
2
2
|
declare const self: (vars: ThemeCommonVars) => {
|
|
3
|
+
fontSizeTiny: string;
|
|
4
|
+
fontSizeSmall: string;
|
|
5
|
+
fontSizeMedium: string;
|
|
6
|
+
fontSizeLarge: string;
|
|
7
|
+
heightTiny: string;
|
|
8
|
+
heightSmall: string;
|
|
9
|
+
heightMedium: string;
|
|
10
|
+
heightLarge: string;
|
|
3
11
|
borderRadius: string;
|
|
4
12
|
textColor: string;
|
|
5
13
|
textColorDisabled: string;
|
|
@@ -40,20 +48,20 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
40
48
|
clearColor: string;
|
|
41
49
|
clearColorHover: string;
|
|
42
50
|
clearColorPressed: string;
|
|
43
|
-
heightTiny: string;
|
|
44
|
-
heightSmall: string;
|
|
45
|
-
heightMedium: string;
|
|
46
|
-
heightLarge: string;
|
|
47
|
-
fontSizeTiny: string;
|
|
48
|
-
fontSizeSmall: string;
|
|
49
|
-
fontSizeMedium: string;
|
|
50
|
-
fontSizeLarge: string;
|
|
51
51
|
paddingSingle: string;
|
|
52
52
|
clearSize: string;
|
|
53
53
|
arrowSize: string;
|
|
54
54
|
};
|
|
55
55
|
export declare type InternalSelectionThemeVars = ReturnType<typeof self>;
|
|
56
56
|
declare const internalSelectionLight: import("../../../_mixins").Theme<"InternalSelection", {
|
|
57
|
+
fontSizeTiny: string;
|
|
58
|
+
fontSizeSmall: string;
|
|
59
|
+
fontSizeMedium: string;
|
|
60
|
+
fontSizeLarge: string;
|
|
61
|
+
heightTiny: string;
|
|
62
|
+
heightSmall: string;
|
|
63
|
+
heightMedium: string;
|
|
64
|
+
heightLarge: string;
|
|
57
65
|
borderRadius: string;
|
|
58
66
|
textColor: string;
|
|
59
67
|
textColorDisabled: string;
|
|
@@ -94,14 +102,6 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
|
|
|
94
102
|
clearColor: string;
|
|
95
103
|
clearColorHover: string;
|
|
96
104
|
clearColorPressed: string;
|
|
97
|
-
heightTiny: string;
|
|
98
|
-
heightSmall: string;
|
|
99
|
-
heightMedium: string;
|
|
100
|
-
heightLarge: string;
|
|
101
|
-
fontSizeTiny: string;
|
|
102
|
-
fontSizeSmall: string;
|
|
103
|
-
fontSizeMedium: string;
|
|
104
|
-
fontSizeLarge: string;
|
|
105
105
|
paddingSingle: string;
|
|
106
106
|
clearSize: string;
|
|
107
107
|
arrowSize: string;
|
|
@@ -4,8 +4,16 @@ import { popoverLight } from '../../../popover/styles';
|
|
|
4
4
|
import commonVariables from './_common';
|
|
5
5
|
import { createTheme } from '../../../_mixins';
|
|
6
6
|
const self = (vars) => {
|
|
7
|
-
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, borderColor, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled } = vars;
|
|
8
|
-
return Object.assign(Object.assign({}, commonVariables), {
|
|
7
|
+
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, borderColor, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge } = vars;
|
|
8
|
+
return Object.assign(Object.assign({}, commonVariables), { fontSizeTiny,
|
|
9
|
+
fontSizeSmall,
|
|
10
|
+
fontSizeMedium,
|
|
11
|
+
fontSizeLarge,
|
|
12
|
+
heightTiny,
|
|
13
|
+
heightSmall,
|
|
14
|
+
heightMedium,
|
|
15
|
+
heightLarge,
|
|
16
|
+
borderRadius,
|
|
9
17
|
// default
|
|
10
18
|
textColor: textColor2, textColorDisabled,
|
|
11
19
|
placeholderColor,
|
package/es/_mixins/use-rtl.js
CHANGED
|
@@ -23,7 +23,7 @@ export default function useRtl(mountId, rtlStateRef, clsPrefixRef) {
|
|
|
23
23
|
// if it already exists, we only need to watch clsPrefix, although in most
|
|
24
24
|
// of time it's unnecessary... However we can at least listen less
|
|
25
25
|
// handlers, which is great.
|
|
26
|
-
if (exists(id))
|
|
26
|
+
if (exists(id, ssrAdapter))
|
|
27
27
|
return;
|
|
28
28
|
const { value: componentRtlState } = componentRtlStateRef;
|
|
29
29
|
if (!componentRtlState)
|
package/es/alert/src/Alert.js
CHANGED
|
@@ -96,20 +96,20 @@ export default defineComponent({
|
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
98
|
render() {
|
|
99
|
-
const { mergedClsPrefix } = this;
|
|
100
99
|
return (h(NFadeInExpandTransition, { onAfterLeave: this.handleAfterLeave }, {
|
|
101
|
-
default: () =>
|
|
102
|
-
|
|
100
|
+
default: () => {
|
|
101
|
+
const { mergedClsPrefix, $slots } = this;
|
|
102
|
+
const attrs = {
|
|
103
103
|
class: [
|
|
104
104
|
`${mergedClsPrefix}-alert`,
|
|
105
|
-
{
|
|
106
|
-
[`${mergedClsPrefix}-alert--show-icon`]: this.showIcon
|
|
107
|
-
}
|
|
105
|
+
this.showIcon && `${mergedClsPrefix}-alert--show-icon`
|
|
108
106
|
],
|
|
109
|
-
style: this.cssVars
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
style: this.cssVars,
|
|
108
|
+
role: 'alert'
|
|
109
|
+
};
|
|
110
|
+
return this.visible ? (h("div", Object.assign({}, mergeProps(this.$attrs, attrs)),
|
|
111
|
+
this.closable && (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-alert__close`, onClick: this.handleCloseClick })),
|
|
112
|
+
this.showIcon && (h("div", { class: `${mergedClsPrefix}-alert__icon`, "aria-hidden": "true" }, $slots.icon ? ($slots.icon()) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
113
113
|
default: () => {
|
|
114
114
|
switch (this.type) {
|
|
115
115
|
case 'success':
|
|
@@ -124,14 +124,13 @@ export default defineComponent({
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
}))))
|
|
127
|
+
})))),
|
|
128
128
|
h("div", { class: `${mergedClsPrefix}-alert-body` },
|
|
129
|
-
this.title !== undefined
|
|
129
|
+
this.title !== undefined && (h("div", { class: `${mergedClsPrefix}-alert-body__title` }, renderSlot($slots, 'header', undefined, () => [
|
|
130
130
|
this.title
|
|
131
|
-
])))
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
: null
|
|
131
|
+
]))),
|
|
132
|
+
$slots.default && (h("div", { class: `${mergedClsPrefix}-alert-body__content` }, $slots))))) : null;
|
|
133
|
+
}
|
|
135
134
|
}));
|
|
136
135
|
}
|
|
137
136
|
});
|
|
@@ -155,6 +155,14 @@ declare const cascaderProps: {
|
|
|
155
155
|
}, any>;
|
|
156
156
|
}>;
|
|
157
157
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
158
|
+
fontSizeTiny: string;
|
|
159
|
+
fontSizeSmall: string;
|
|
160
|
+
fontSizeMedium: string;
|
|
161
|
+
fontSizeLarge: string;
|
|
162
|
+
heightTiny: string;
|
|
163
|
+
heightSmall: string;
|
|
164
|
+
heightMedium: string;
|
|
165
|
+
heightLarge: string;
|
|
158
166
|
borderRadius: string;
|
|
159
167
|
textColor: string;
|
|
160
168
|
textColorDisabled: string;
|
|
@@ -195,14 +203,6 @@ declare const cascaderProps: {
|
|
|
195
203
|
clearColor: string;
|
|
196
204
|
clearColorHover: string;
|
|
197
205
|
clearColorPressed: string;
|
|
198
|
-
heightTiny: string;
|
|
199
|
-
heightSmall: string;
|
|
200
|
-
heightMedium: string;
|
|
201
|
-
heightLarge: string;
|
|
202
|
-
fontSizeTiny: string;
|
|
203
|
-
fontSizeSmall: string;
|
|
204
|
-
fontSizeMedium: string;
|
|
205
|
-
fontSizeLarge: string;
|
|
206
206
|
paddingSingle: string;
|
|
207
207
|
clearSize: string;
|
|
208
208
|
arrowSize: string;
|
|
@@ -325,6 +325,14 @@ declare const cascaderProps: {
|
|
|
325
325
|
}, any>;
|
|
326
326
|
}>;
|
|
327
327
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
328
|
+
fontSizeTiny: string;
|
|
329
|
+
fontSizeSmall: string;
|
|
330
|
+
fontSizeMedium: string;
|
|
331
|
+
fontSizeLarge: string;
|
|
332
|
+
heightTiny: string;
|
|
333
|
+
heightSmall: string;
|
|
334
|
+
heightMedium: string;
|
|
335
|
+
heightLarge: string;
|
|
328
336
|
borderRadius: string;
|
|
329
337
|
textColor: string;
|
|
330
338
|
textColorDisabled: string;
|
|
@@ -365,14 +373,6 @@ declare const cascaderProps: {
|
|
|
365
373
|
clearColor: string;
|
|
366
374
|
clearColorHover: string;
|
|
367
375
|
clearColorPressed: string;
|
|
368
|
-
heightTiny: string;
|
|
369
|
-
heightSmall: string;
|
|
370
|
-
heightMedium: string;
|
|
371
|
-
heightLarge: string;
|
|
372
|
-
fontSizeTiny: string;
|
|
373
|
-
fontSizeSmall: string;
|
|
374
|
-
fontSizeMedium: string;
|
|
375
|
-
fontSizeLarge: string;
|
|
376
376
|
paddingSingle: string;
|
|
377
377
|
clearSize: string;
|
|
378
378
|
arrowSize: string;
|
|
@@ -495,6 +495,14 @@ declare const cascaderProps: {
|
|
|
495
495
|
}, any>;
|
|
496
496
|
}>;
|
|
497
497
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
498
|
+
fontSizeTiny: string;
|
|
499
|
+
fontSizeSmall: string;
|
|
500
|
+
fontSizeMedium: string;
|
|
501
|
+
fontSizeLarge: string;
|
|
502
|
+
heightTiny: string;
|
|
503
|
+
heightSmall: string;
|
|
504
|
+
heightMedium: string;
|
|
505
|
+
heightLarge: string;
|
|
498
506
|
borderRadius: string;
|
|
499
507
|
textColor: string;
|
|
500
508
|
textColorDisabled: string;
|
|
@@ -535,14 +543,6 @@ declare const cascaderProps: {
|
|
|
535
543
|
clearColor: string;
|
|
536
544
|
clearColorHover: string;
|
|
537
545
|
clearColorPressed: string;
|
|
538
|
-
heightTiny: string;
|
|
539
|
-
heightSmall: string;
|
|
540
|
-
heightMedium: string;
|
|
541
|
-
heightLarge: string;
|
|
542
|
-
fontSizeTiny: string;
|
|
543
|
-
fontSizeSmall: string;
|
|
544
|
-
fontSizeMedium: string;
|
|
545
|
-
fontSizeLarge: string;
|
|
546
546
|
paddingSingle: string;
|
|
547
547
|
clearSize: string;
|
|
548
548
|
arrowSize: string;
|
|
@@ -748,6 +748,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
748
748
|
}, any>;
|
|
749
749
|
}>;
|
|
750
750
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
751
|
+
fontSizeTiny: string;
|
|
752
|
+
fontSizeSmall: string;
|
|
753
|
+
fontSizeMedium: string;
|
|
754
|
+
fontSizeLarge: string;
|
|
755
|
+
heightTiny: string;
|
|
756
|
+
heightSmall: string;
|
|
757
|
+
heightMedium: string;
|
|
758
|
+
heightLarge: string;
|
|
751
759
|
borderRadius: string;
|
|
752
760
|
textColor: string;
|
|
753
761
|
textColorDisabled: string;
|
|
@@ -788,14 +796,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
788
796
|
clearColor: string;
|
|
789
797
|
clearColorHover: string;
|
|
790
798
|
clearColorPressed: string;
|
|
791
|
-
heightTiny: string;
|
|
792
|
-
heightSmall: string;
|
|
793
|
-
heightMedium: string;
|
|
794
|
-
heightLarge: string;
|
|
795
|
-
fontSizeTiny: string;
|
|
796
|
-
fontSizeSmall: string;
|
|
797
|
-
fontSizeMedium: string;
|
|
798
|
-
fontSizeLarge: string;
|
|
799
799
|
paddingSingle: string;
|
|
800
800
|
clearSize: string;
|
|
801
801
|
arrowSize: string;
|
|
@@ -918,6 +918,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
918
918
|
}, any>;
|
|
919
919
|
}>;
|
|
920
920
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
921
|
+
fontSizeTiny: string;
|
|
922
|
+
fontSizeSmall: string;
|
|
923
|
+
fontSizeMedium: string;
|
|
924
|
+
fontSizeLarge: string;
|
|
925
|
+
heightTiny: string;
|
|
926
|
+
heightSmall: string;
|
|
927
|
+
heightMedium: string;
|
|
928
|
+
heightLarge: string;
|
|
921
929
|
borderRadius: string;
|
|
922
930
|
textColor: string;
|
|
923
931
|
textColorDisabled: string;
|
|
@@ -958,14 +966,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
958
966
|
clearColor: string;
|
|
959
967
|
clearColorHover: string;
|
|
960
968
|
clearColorPressed: string;
|
|
961
|
-
heightTiny: string;
|
|
962
|
-
heightSmall: string;
|
|
963
|
-
heightMedium: string;
|
|
964
|
-
heightLarge: string;
|
|
965
|
-
fontSizeTiny: string;
|
|
966
|
-
fontSizeSmall: string;
|
|
967
|
-
fontSizeMedium: string;
|
|
968
|
-
fontSizeLarge: string;
|
|
969
969
|
paddingSingle: string;
|
|
970
970
|
clearSize: string;
|
|
971
971
|
arrowSize: string;
|
|
@@ -1088,6 +1088,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1088
1088
|
}, any>;
|
|
1089
1089
|
}>;
|
|
1090
1090
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1091
|
+
fontSizeTiny: string;
|
|
1092
|
+
fontSizeSmall: string;
|
|
1093
|
+
fontSizeMedium: string;
|
|
1094
|
+
fontSizeLarge: string;
|
|
1095
|
+
heightTiny: string;
|
|
1096
|
+
heightSmall: string;
|
|
1097
|
+
heightMedium: string;
|
|
1098
|
+
heightLarge: string;
|
|
1091
1099
|
borderRadius: string;
|
|
1092
1100
|
textColor: string;
|
|
1093
1101
|
textColorDisabled: string;
|
|
@@ -1128,14 +1136,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1128
1136
|
clearColor: string;
|
|
1129
1137
|
clearColorHover: string;
|
|
1130
1138
|
clearColorPressed: string;
|
|
1131
|
-
heightTiny: string;
|
|
1132
|
-
heightSmall: string;
|
|
1133
|
-
heightMedium: string;
|
|
1134
|
-
heightLarge: string;
|
|
1135
|
-
fontSizeTiny: string;
|
|
1136
|
-
fontSizeSmall: string;
|
|
1137
|
-
fontSizeMedium: string;
|
|
1138
|
-
fontSizeLarge: string;
|
|
1139
1139
|
paddingSingle: string;
|
|
1140
1140
|
clearSize: string;
|
|
1141
1141
|
arrowSize: string;
|
|
@@ -1417,6 +1417,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1417
1417
|
}, any>;
|
|
1418
1418
|
}>;
|
|
1419
1419
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1420
|
+
fontSizeTiny: string;
|
|
1421
|
+
fontSizeSmall: string;
|
|
1422
|
+
fontSizeMedium: string;
|
|
1423
|
+
fontSizeLarge: string;
|
|
1424
|
+
heightTiny: string;
|
|
1425
|
+
heightSmall: string;
|
|
1426
|
+
heightMedium: string;
|
|
1427
|
+
heightLarge: string;
|
|
1420
1428
|
borderRadius: string;
|
|
1421
1429
|
textColor: string;
|
|
1422
1430
|
textColorDisabled: string;
|
|
@@ -1457,14 +1465,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1457
1465
|
clearColor: string;
|
|
1458
1466
|
clearColorHover: string;
|
|
1459
1467
|
clearColorPressed: string;
|
|
1460
|
-
heightTiny: string;
|
|
1461
|
-
heightSmall: string;
|
|
1462
|
-
heightMedium: string;
|
|
1463
|
-
heightLarge: string;
|
|
1464
|
-
fontSizeTiny: string;
|
|
1465
|
-
fontSizeSmall: string;
|
|
1466
|
-
fontSizeMedium: string;
|
|
1467
|
-
fontSizeLarge: string;
|
|
1468
1468
|
paddingSingle: string;
|
|
1469
1469
|
clearSize: string;
|
|
1470
1470
|
arrowSize: string;
|
|
@@ -1724,6 +1724,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1724
1724
|
}, any>;
|
|
1725
1725
|
}>;
|
|
1726
1726
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1727
|
+
fontSizeTiny: string;
|
|
1728
|
+
fontSizeSmall: string;
|
|
1729
|
+
fontSizeMedium: string;
|
|
1730
|
+
fontSizeLarge: string;
|
|
1731
|
+
heightTiny: string;
|
|
1732
|
+
heightSmall: string;
|
|
1733
|
+
heightMedium: string;
|
|
1734
|
+
heightLarge: string;
|
|
1727
1735
|
borderRadius: string;
|
|
1728
1736
|
textColor: string;
|
|
1729
1737
|
textColorDisabled: string;
|
|
@@ -1764,14 +1772,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1764
1772
|
clearColor: string;
|
|
1765
1773
|
clearColorHover: string;
|
|
1766
1774
|
clearColorPressed: string;
|
|
1767
|
-
heightTiny: string;
|
|
1768
|
-
heightSmall: string;
|
|
1769
|
-
heightMedium: string;
|
|
1770
|
-
heightLarge: string;
|
|
1771
|
-
fontSizeTiny: string;
|
|
1772
|
-
fontSizeSmall: string;
|
|
1773
|
-
fontSizeMedium: string;
|
|
1774
|
-
fontSizeLarge: string;
|
|
1775
1775
|
paddingSingle: string;
|
|
1776
1776
|
clearSize: string;
|
|
1777
1777
|
arrowSize: string;
|
|
@@ -1894,6 +1894,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1894
1894
|
}, any>;
|
|
1895
1895
|
}>;
|
|
1896
1896
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1897
|
+
fontSizeTiny: string;
|
|
1898
|
+
fontSizeSmall: string;
|
|
1899
|
+
fontSizeMedium: string;
|
|
1900
|
+
fontSizeLarge: string;
|
|
1901
|
+
heightTiny: string;
|
|
1902
|
+
heightSmall: string;
|
|
1903
|
+
heightMedium: string;
|
|
1904
|
+
heightLarge: string;
|
|
1897
1905
|
borderRadius: string;
|
|
1898
1906
|
textColor: string;
|
|
1899
1907
|
textColorDisabled: string;
|
|
@@ -1934,14 +1942,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1934
1942
|
clearColor: string;
|
|
1935
1943
|
clearColorHover: string;
|
|
1936
1944
|
clearColorPressed: string;
|
|
1937
|
-
heightTiny: string;
|
|
1938
|
-
heightSmall: string;
|
|
1939
|
-
heightMedium: string;
|
|
1940
|
-
heightLarge: string;
|
|
1941
|
-
fontSizeTiny: string;
|
|
1942
|
-
fontSizeSmall: string;
|
|
1943
|
-
fontSizeMedium: string;
|
|
1944
|
-
fontSizeLarge: string;
|
|
1945
1945
|
paddingSingle: string;
|
|
1946
1946
|
clearSize: string;
|
|
1947
1947
|
arrowSize: string;
|
|
@@ -2064,6 +2064,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2064
2064
|
}, any>;
|
|
2065
2065
|
}>;
|
|
2066
2066
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
2067
|
+
fontSizeTiny: string;
|
|
2068
|
+
fontSizeSmall: string;
|
|
2069
|
+
fontSizeMedium: string;
|
|
2070
|
+
fontSizeLarge: string;
|
|
2071
|
+
heightTiny: string;
|
|
2072
|
+
heightSmall: string;
|
|
2073
|
+
heightMedium: string;
|
|
2074
|
+
heightLarge: string;
|
|
2067
2075
|
borderRadius: string;
|
|
2068
2076
|
textColor: string;
|
|
2069
2077
|
textColorDisabled: string;
|
|
@@ -2104,14 +2112,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2104
2112
|
clearColor: string;
|
|
2105
2113
|
clearColorHover: string;
|
|
2106
2114
|
clearColorPressed: string;
|
|
2107
|
-
heightTiny: string;
|
|
2108
|
-
heightSmall: string;
|
|
2109
|
-
heightMedium: string;
|
|
2110
|
-
heightLarge: string;
|
|
2111
|
-
fontSizeTiny: string;
|
|
2112
|
-
fontSizeSmall: string;
|
|
2113
|
-
fontSizeMedium: string;
|
|
2114
|
-
fontSizeLarge: string;
|
|
2115
2115
|
paddingSingle: string;
|
|
2116
2116
|
clearSize: string;
|
|
2117
2117
|
arrowSize: string;
|