naive-ui 2.23.0 → 2.23.1
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/_utils/composable/use-houdini.js +10 -7
- 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/src/Avatar.d.ts +5 -5
- package/es/avatar/src/Avatar.js +5 -5
- package/es/avatar/src/styles/index.cssr.js +13 -13
- 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/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/date-picker/src/panel/date.d.ts +4 -9
- package/es/date-picker/src/panel/daterange.d.ts +4 -9
- package/es/date-picker/src/panel/datetime.d.ts +4 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/es/date-picker/src/panel/month.d.ts +4 -9
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-calendar.js +6 -5
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/es/date-picker/src/panel/use-panel-common.js +2 -6
- package/es/dialog/src/Dialog.d.ts +21 -21
- package/es/dialog/src/Dialog.js +21 -21
- package/es/dialog/src/styles/index.cssr.js +45 -45
- 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/form/src/Form.d.ts +27 -27
- package/es/form/src/FormItem.d.ts +27 -27
- package/es/form/src/FormItemCol.d.ts +27 -27
- package/es/form/src/FormItemGridItem.d.ts +27 -27
- package/es/form/src/FormItemRow.d.ts +27 -27
- 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/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/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 +19 -19
- package/es/switch/src/styles/index.cssr.js +57 -57
- package/es/tag/src/Tag.d.ts +26 -26
- package/es/tag/src/Tag.js +26 -26
- package/es/tag/src/styles/index.cssr.js +54 -54
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +17 -17
- 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/styles/index.cssr.js +9 -4
- 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 +8 -8
- package/es/tree-select/src/TreeSelect.js +8 -8
- package/es/tree-select/src/styles/index.cssr.js +18 -18
- 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/_utils/composable/use-houdini.js +10 -7
- 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/src/Avatar.d.ts +5 -5
- package/lib/avatar/src/Avatar.js +5 -5
- package/lib/avatar/src/styles/index.cssr.js +13 -13
- 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/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/date-picker/src/panel/date.d.ts +4 -9
- package/lib/date-picker/src/panel/daterange.d.ts +4 -9
- package/lib/date-picker/src/panel/datetime.d.ts +4 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/lib/date-picker/src/panel/month.d.ts +4 -9
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-calendar.js +6 -5
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/lib/date-picker/src/panel/use-panel-common.js +2 -6
- package/lib/dialog/src/Dialog.d.ts +21 -21
- package/lib/dialog/src/Dialog.js +21 -21
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- 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/form/src/Form.d.ts +27 -27
- package/lib/form/src/FormItem.d.ts +27 -27
- package/lib/form/src/FormItemCol.d.ts +27 -27
- package/lib/form/src/FormItemGridItem.d.ts +27 -27
- package/lib/form/src/FormItemRow.d.ts +27 -27
- 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/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/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 +19 -19
- package/lib/switch/src/styles/index.cssr.js +57 -57
- package/lib/tag/src/Tag.d.ts +26 -26
- package/lib/tag/src/Tag.js +26 -26
- package/lib/tag/src/styles/index.cssr.js +54 -54
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +17 -17
- 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/styles/index.cssr.js +9 -4
- 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 +8 -8
- package/lib/tree-select/src/TreeSelect.js +8 -8
- package/lib/tree-select/src/styles/index.cssr.js +18 -18
- 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 +26 -26
- package/web-types.json +1 -1
|
@@ -28,15 +28,15 @@ declare const formItemRowProps: {
|
|
|
28
28
|
readonly default: undefined;
|
|
29
29
|
};
|
|
30
30
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Form", {
|
|
31
|
+
blankHeightSmall: string;
|
|
32
|
+
blankHeightMedium: string;
|
|
33
|
+
blankHeightLarge: string;
|
|
31
34
|
lineHeight: string;
|
|
32
35
|
labelTextColor: string;
|
|
33
36
|
asteriskColor: string;
|
|
34
37
|
feedbackTextColorError: string;
|
|
35
38
|
feedbackTextColorWarning: string;
|
|
36
39
|
feedbackTextColor: string;
|
|
37
|
-
blankHeightSmall: string;
|
|
38
|
-
blankHeightMedium: string;
|
|
39
|
-
blankHeightLarge: string;
|
|
40
40
|
feedbackPadding: string;
|
|
41
41
|
feedbackHeightSmall: string;
|
|
42
42
|
feedbackHeightMedium: string;
|
|
@@ -59,15 +59,15 @@ declare const formItemRowProps: {
|
|
|
59
59
|
labelTextAlignHorizontal: string;
|
|
60
60
|
}, any>>;
|
|
61
61
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
62
|
+
blankHeightSmall: string;
|
|
63
|
+
blankHeightMedium: string;
|
|
64
|
+
blankHeightLarge: string;
|
|
62
65
|
lineHeight: string;
|
|
63
66
|
labelTextColor: string;
|
|
64
67
|
asteriskColor: string;
|
|
65
68
|
feedbackTextColorError: string;
|
|
66
69
|
feedbackTextColorWarning: string;
|
|
67
70
|
feedbackTextColor: string;
|
|
68
|
-
blankHeightSmall: string;
|
|
69
|
-
blankHeightMedium: string;
|
|
70
|
-
blankHeightLarge: string;
|
|
71
71
|
feedbackPadding: string;
|
|
72
72
|
feedbackHeightSmall: string;
|
|
73
73
|
feedbackHeightMedium: string;
|
|
@@ -90,15 +90,15 @@ declare const formItemRowProps: {
|
|
|
90
90
|
labelTextAlignHorizontal: string;
|
|
91
91
|
}, any>>>;
|
|
92
92
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
93
|
+
blankHeightSmall: string;
|
|
94
|
+
blankHeightMedium: string;
|
|
95
|
+
blankHeightLarge: string;
|
|
93
96
|
lineHeight: string;
|
|
94
97
|
labelTextColor: string;
|
|
95
98
|
asteriskColor: string;
|
|
96
99
|
feedbackTextColorError: string;
|
|
97
100
|
feedbackTextColorWarning: string;
|
|
98
101
|
feedbackTextColor: string;
|
|
99
|
-
blankHeightSmall: string;
|
|
100
|
-
blankHeightMedium: string;
|
|
101
|
-
blankHeightLarge: string;
|
|
102
102
|
feedbackPadding: string;
|
|
103
103
|
feedbackHeightSmall: string;
|
|
104
104
|
feedbackHeightMedium: string;
|
|
@@ -173,15 +173,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
173
173
|
readonly default: undefined;
|
|
174
174
|
};
|
|
175
175
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Form", {
|
|
176
|
+
blankHeightSmall: string;
|
|
177
|
+
blankHeightMedium: string;
|
|
178
|
+
blankHeightLarge: string;
|
|
176
179
|
lineHeight: string;
|
|
177
180
|
labelTextColor: string;
|
|
178
181
|
asteriskColor: string;
|
|
179
182
|
feedbackTextColorError: string;
|
|
180
183
|
feedbackTextColorWarning: string;
|
|
181
184
|
feedbackTextColor: string;
|
|
182
|
-
blankHeightSmall: string;
|
|
183
|
-
blankHeightMedium: string;
|
|
184
|
-
blankHeightLarge: string;
|
|
185
185
|
feedbackPadding: string;
|
|
186
186
|
feedbackHeightSmall: string;
|
|
187
187
|
feedbackHeightMedium: string;
|
|
@@ -204,15 +204,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
204
|
labelTextAlignHorizontal: string;
|
|
205
205
|
}, any>>;
|
|
206
206
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
207
|
+
blankHeightSmall: string;
|
|
208
|
+
blankHeightMedium: string;
|
|
209
|
+
blankHeightLarge: string;
|
|
207
210
|
lineHeight: string;
|
|
208
211
|
labelTextColor: string;
|
|
209
212
|
asteriskColor: string;
|
|
210
213
|
feedbackTextColorError: string;
|
|
211
214
|
feedbackTextColorWarning: string;
|
|
212
215
|
feedbackTextColor: string;
|
|
213
|
-
blankHeightSmall: string;
|
|
214
|
-
blankHeightMedium: string;
|
|
215
|
-
blankHeightLarge: string;
|
|
216
216
|
feedbackPadding: string;
|
|
217
217
|
feedbackHeightSmall: string;
|
|
218
218
|
feedbackHeightMedium: string;
|
|
@@ -235,15 +235,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
235
235
|
labelTextAlignHorizontal: string;
|
|
236
236
|
}, any>>>;
|
|
237
237
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
238
|
+
blankHeightSmall: string;
|
|
239
|
+
blankHeightMedium: string;
|
|
240
|
+
blankHeightLarge: string;
|
|
238
241
|
lineHeight: string;
|
|
239
242
|
labelTextColor: string;
|
|
240
243
|
asteriskColor: string;
|
|
241
244
|
feedbackTextColorError: string;
|
|
242
245
|
feedbackTextColorWarning: string;
|
|
243
246
|
feedbackTextColor: string;
|
|
244
|
-
blankHeightSmall: string;
|
|
245
|
-
blankHeightMedium: string;
|
|
246
|
-
blankHeightLarge: string;
|
|
247
247
|
feedbackPadding: string;
|
|
248
248
|
feedbackHeightSmall: string;
|
|
249
249
|
feedbackHeightMedium: string;
|
|
@@ -335,15 +335,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
335
335
|
justifyContent?: string | undefined;
|
|
336
336
|
path?: string | undefined;
|
|
337
337
|
theme?: import("../../_mixins").Theme<"Form", {
|
|
338
|
+
blankHeightSmall: string;
|
|
339
|
+
blankHeightMedium: string;
|
|
340
|
+
blankHeightLarge: string;
|
|
338
341
|
lineHeight: string;
|
|
339
342
|
labelTextColor: string;
|
|
340
343
|
asteriskColor: string;
|
|
341
344
|
feedbackTextColorError: string;
|
|
342
345
|
feedbackTextColorWarning: string;
|
|
343
346
|
feedbackTextColor: string;
|
|
344
|
-
blankHeightSmall: string;
|
|
345
|
-
blankHeightMedium: string;
|
|
346
|
-
blankHeightLarge: string;
|
|
347
347
|
feedbackPadding: string;
|
|
348
348
|
feedbackHeightSmall: string;
|
|
349
349
|
feedbackHeightMedium: string;
|
|
@@ -366,15 +366,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
366
366
|
labelTextAlignHorizontal: string;
|
|
367
367
|
}, any> | undefined;
|
|
368
368
|
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
369
|
+
blankHeightSmall: string;
|
|
370
|
+
blankHeightMedium: string;
|
|
371
|
+
blankHeightLarge: string;
|
|
369
372
|
lineHeight: string;
|
|
370
373
|
labelTextColor: string;
|
|
371
374
|
asteriskColor: string;
|
|
372
375
|
feedbackTextColorError: string;
|
|
373
376
|
feedbackTextColorWarning: string;
|
|
374
377
|
feedbackTextColor: string;
|
|
375
|
-
blankHeightSmall: string;
|
|
376
|
-
blankHeightMedium: string;
|
|
377
|
-
blankHeightLarge: string;
|
|
378
378
|
feedbackPadding: string;
|
|
379
379
|
feedbackHeightSmall: string;
|
|
380
380
|
feedbackHeightMedium: string;
|
|
@@ -397,15 +397,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
397
397
|
labelTextAlignHorizontal: string;
|
|
398
398
|
}, any>> | undefined;
|
|
399
399
|
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
400
|
+
blankHeightSmall: string;
|
|
401
|
+
blankHeightMedium: string;
|
|
402
|
+
blankHeightLarge: string;
|
|
400
403
|
lineHeight: string;
|
|
401
404
|
labelTextColor: string;
|
|
402
405
|
asteriskColor: string;
|
|
403
406
|
feedbackTextColorError: string;
|
|
404
407
|
feedbackTextColorWarning: string;
|
|
405
408
|
feedbackTextColor: string;
|
|
406
|
-
blankHeightSmall: string;
|
|
407
|
-
blankHeightMedium: string;
|
|
408
|
-
blankHeightLarge: string;
|
|
409
409
|
feedbackPadding: string;
|
|
410
410
|
feedbackHeightSmall: string;
|
|
411
411
|
feedbackHeightMedium: string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
-
blankHeightSmall: '28px',
|
|
5
|
-
blankHeightMedium: '34px',
|
|
6
|
-
blankHeightLarge: '40px',
|
|
7
4
|
feedbackPadding: '4px 0 0 2px',
|
|
8
5
|
feedbackHeightSmall: '24px',
|
|
9
6
|
feedbackHeightMedium: '24px',
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import type { Theme } from '../../_mixins';
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
blankHeightSmall: string;
|
|
5
|
+
blankHeightMedium: string;
|
|
6
|
+
blankHeightLarge: string;
|
|
4
7
|
lineHeight: string;
|
|
5
8
|
labelTextColor: string;
|
|
6
9
|
asteriskColor: string;
|
|
7
10
|
feedbackTextColorError: string;
|
|
8
11
|
feedbackTextColorWarning: string;
|
|
9
12
|
feedbackTextColor: string;
|
|
10
|
-
blankHeightSmall: string;
|
|
11
|
-
blankHeightMedium: string;
|
|
12
|
-
blankHeightLarge: string;
|
|
13
13
|
feedbackPadding: string;
|
|
14
14
|
feedbackHeightSmall: string;
|
|
15
15
|
feedbackHeightMedium: string;
|
package/lib/form/styles/light.js
CHANGED
|
@@ -7,8 +7,8 @@ exports.self = void 0;
|
|
|
7
7
|
const common_1 = require("../../_styles/common");
|
|
8
8
|
const _common_1 = __importDefault(require("./_common"));
|
|
9
9
|
const self = (vars) => {
|
|
10
|
-
const { textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
|
|
11
|
-
return Object.assign(Object.assign({}, _common_1.default), { lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
|
|
10
|
+
const { heightSmall, heightMedium, heightLarge, textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
|
|
11
|
+
return Object.assign(Object.assign({}, _common_1.default), { blankHeightSmall: heightSmall, blankHeightMedium: heightMedium, blankHeightLarge: heightLarge, lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
|
|
12
12
|
};
|
|
13
13
|
exports.self = self;
|
|
14
14
|
const formLight = {
|
package/lib/log/src/Log.d.ts
CHANGED
|
@@ -403,12 +403,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
403
403
|
handleWheel: import("lodash").DebouncedFunc<(e: WheelEvent) => void>;
|
|
404
404
|
handleScroll: (e: Event) => void;
|
|
405
405
|
cssVars: import("vue").ComputedRef<{
|
|
406
|
-
'--bezier': string;
|
|
407
|
-
'--loader-font-size': string;
|
|
408
|
-
'--loader-border': string;
|
|
409
|
-
'--loader-color': string;
|
|
410
|
-
'--loader-text-color': string;
|
|
411
|
-
'--loading-color': string;
|
|
406
|
+
'--n-bezier': string;
|
|
407
|
+
'--n-loader-font-size': string;
|
|
408
|
+
'--n-loader-border': string;
|
|
409
|
+
'--n-loader-color': string;
|
|
410
|
+
'--n-loader-text-color': string;
|
|
411
|
+
'--n-loading-color': string;
|
|
412
412
|
}>;
|
|
413
413
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
414
414
|
readonly loading?: unknown;
|
package/lib/log/src/Log.js
CHANGED
|
@@ -165,12 +165,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
165
165
|
cssVars: (0, vue_1.computed)(() => {
|
|
166
166
|
const { self: { loaderFontSize, loaderTextColor, loaderColor, loaderBorder, loadingColor }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
167
167
|
return {
|
|
168
|
-
'--bezier': cubicBezierEaseInOut,
|
|
169
|
-
'--loader-font-size': loaderFontSize,
|
|
170
|
-
'--loader-border': loaderBorder,
|
|
171
|
-
'--loader-color': loaderColor,
|
|
172
|
-
'--loader-text-color': loaderTextColor,
|
|
173
|
-
'--loading-color': loadingColor
|
|
168
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
169
|
+
'--n-loader-font-size': loaderFontSize,
|
|
170
|
+
'--n-loader-border': loaderBorder,
|
|
171
|
+
'--n-loader-color': loaderColor,
|
|
172
|
+
'--n-loader-text-color': loaderTextColor,
|
|
173
|
+
'--n-loading-color': loadingColor
|
|
174
174
|
};
|
|
175
175
|
})
|
|
176
176
|
};
|
|
@@ -13,21 +13,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
14
|
|
|
15
15
|
const fade_in_scale_up_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-scale-up.cssr")); // vars:
|
|
16
|
-
// --bezier
|
|
17
|
-
// --loading-color
|
|
18
|
-
// --loader-border
|
|
19
|
-
// --loader-color
|
|
20
|
-
// --loader-text-color
|
|
21
|
-
// --loader-font-size
|
|
22
|
-
// --loading-color
|
|
16
|
+
// --n-bezier
|
|
17
|
+
// --n-loading-color
|
|
18
|
+
// --n-loader-border
|
|
19
|
+
// --n-loader-color
|
|
20
|
+
// --n-loader-text-color
|
|
21
|
+
// --n-loader-font-size
|
|
22
|
+
// --n-loading-color
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
exports.default = (0, cssr_1.cB)('log', `
|
|
26
26
|
position: relative;
|
|
27
27
|
box-sizing: border-box;
|
|
28
|
-
transition:
|
|
29
|
-
border-color .3s var(--bezier),
|
|
30
|
-
color .3s var(--bezier);
|
|
28
|
+
transition: border-color .3s var(--n-bezier);
|
|
31
29
|
`, [(0, cssr_1.cE)('lines', `
|
|
32
30
|
margin: 0;
|
|
33
31
|
white-space: pre-wrap;
|
|
@@ -35,9 +33,9 @@ exports.default = (0, cssr_1.cB)('log', `
|
|
|
35
33
|
margin: 0;
|
|
36
34
|
`), (0, cssr_1.cB)('log-loader', `
|
|
37
35
|
transition:
|
|
38
|
-
color .3s var(--bezier),
|
|
39
|
-
background-color .3s var(--bezier),
|
|
40
|
-
border-color .3s var(--bezier);
|
|
36
|
+
color .3s var(--n-bezier),
|
|
37
|
+
background-color .3s var(--n-bezier),
|
|
38
|
+
border-color .3s var(--n-bezier);
|
|
41
39
|
box-sizing: border-box;
|
|
42
40
|
position: absolute;
|
|
43
41
|
right: 16px;
|
|
@@ -47,10 +45,10 @@ exports.default = (0, cssr_1.cB)('log', `
|
|
|
47
45
|
line-height: 34px;
|
|
48
46
|
white-space: nowrap;
|
|
49
47
|
overflow: hidden;
|
|
50
|
-
border: var(--loader-border);
|
|
51
|
-
color: var(--loader-text-color);
|
|
52
|
-
background-color: var(--loader-color);
|
|
53
|
-
font-size: var(--loader-font-size);
|
|
48
|
+
border: var(--n-loader-border);
|
|
49
|
+
color: var(--n-loader-text-color);
|
|
50
|
+
background-color: var(--n-loader-color);
|
|
51
|
+
font-size: var(--n-loader-font-size);
|
|
54
52
|
`, [(0, fade_in_scale_up_cssr_1.default)(), (0, cssr_1.cE)('content', `
|
|
55
53
|
display: inline-block;
|
|
56
54
|
vertical-align: bottom;
|
|
@@ -59,7 +57,7 @@ exports.default = (0, cssr_1.cB)('log', `
|
|
|
59
57
|
padding-right: 20px;
|
|
60
58
|
white-space: nowrap;
|
|
61
59
|
`), (0, cssr_1.cB)('base-loading', `
|
|
62
|
-
color: var(--loading-color);
|
|
60
|
+
color: var(--n-loading-color);
|
|
63
61
|
position: absolute;
|
|
64
62
|
left: 12px;
|
|
65
63
|
top: calc(50% - 10px);
|
package/lib/steps/src/Step.d.ts
CHANGED
|
@@ -26,18 +26,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
vertical: import("vue").ComputedRef<boolean>;
|
|
27
27
|
mergedStatus: import("vue").ComputedRef<"wait" | "error" | "finish" | "process">;
|
|
28
28
|
cssVars: import("vue").ComputedRef<{
|
|
29
|
-
'--bezier': string;
|
|
30
|
-
'--description-text-color': string;
|
|
31
|
-
'--header-text-color': string;
|
|
32
|
-
'--indicator-border-color': string;
|
|
33
|
-
'--indicator-color': string;
|
|
34
|
-
'--indicator-icon-size': string;
|
|
35
|
-
'--indicator-index-font-size': string;
|
|
36
|
-
'--indicator-size': string;
|
|
37
|
-
'--indicator-text-color': string;
|
|
38
|
-
'--splitor-color': string;
|
|
39
|
-
'--step-header-font-size': string;
|
|
40
|
-
'--step-header-font-weight': string;
|
|
29
|
+
'--n-bezier': string;
|
|
30
|
+
'--n-description-text-color': string;
|
|
31
|
+
'--n-header-text-color': string;
|
|
32
|
+
'--n-indicator-border-color': string;
|
|
33
|
+
'--n-indicator-color': string;
|
|
34
|
+
'--n-indicator-icon-size': string;
|
|
35
|
+
'--n-indicator-index-font-size': string;
|
|
36
|
+
'--n-indicator-size': string;
|
|
37
|
+
'--n-indicator-text-color': string;
|
|
38
|
+
'--n-splitor-color': string;
|
|
39
|
+
'--n-step-header-font-size': string;
|
|
40
|
+
'--n-step-header-font-weight': string;
|
|
41
41
|
}>;
|
|
42
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
43
43
|
readonly status?: unknown;
|
package/lib/steps/src/Step.js
CHANGED
|
@@ -58,18 +58,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
58
58
|
const { size } = stepsProps;
|
|
59
59
|
const { common: { cubicBezierEaseInOut }, self: { stepHeaderFontWeight, [(0, _utils_1.createKey)('stepHeaderFontSize', size)]: stepHeaderFontSize, [(0, _utils_1.createKey)('indicatorIndexFontSize', size)]: indicatorIndexFontSize, [(0, _utils_1.createKey)('indicatorSize', size)]: indicatorSize, [(0, _utils_1.createKey)('indicatorIconSize', size)]: indicatorIconSize, [(0, _utils_1.createKey)('indicatorTextColor', status)]: indicatorTextColor, [(0, _utils_1.createKey)('indicatorBorderColor', status)]: indicatorBorderColor, [(0, _utils_1.createKey)('headerTextColor', status)]: headerTextColor, [(0, _utils_1.createKey)('splitorColor', status)]: splitorColor, [(0, _utils_1.createKey)('indicatorColor', status)]: indicatorColor, [(0, _utils_1.createKey)('descriptionTextColor', status)]: descriptionTextColor } } = mergedThemeRef.value;
|
|
60
60
|
return {
|
|
61
|
-
'--bezier': cubicBezierEaseInOut,
|
|
62
|
-
'--description-text-color': descriptionTextColor,
|
|
63
|
-
'--header-text-color': headerTextColor,
|
|
64
|
-
'--indicator-border-color': indicatorBorderColor,
|
|
65
|
-
'--indicator-color': indicatorColor,
|
|
66
|
-
'--indicator-icon-size': indicatorIconSize,
|
|
67
|
-
'--indicator-index-font-size': indicatorIndexFontSize,
|
|
68
|
-
'--indicator-size': indicatorSize,
|
|
69
|
-
'--indicator-text-color': indicatorTextColor,
|
|
70
|
-
'--splitor-color': splitorColor,
|
|
71
|
-
'--step-header-font-size': stepHeaderFontSize,
|
|
72
|
-
'--step-header-font-weight': stepHeaderFontWeight
|
|
61
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
62
|
+
'--n-description-text-color': descriptionTextColor,
|
|
63
|
+
'--n-header-text-color': headerTextColor,
|
|
64
|
+
'--n-indicator-border-color': indicatorBorderColor,
|
|
65
|
+
'--n-indicator-color': indicatorColor,
|
|
66
|
+
'--n-indicator-icon-size': indicatorIconSize,
|
|
67
|
+
'--n-indicator-index-font-size': indicatorIndexFontSize,
|
|
68
|
+
'--n-indicator-size': indicatorSize,
|
|
69
|
+
'--n-indicator-text-color': indicatorTextColor,
|
|
70
|
+
'--n-splitor-color': splitorColor,
|
|
71
|
+
'--n-step-header-font-size': stepHeaderFontSize,
|
|
72
|
+
'--n-step-header-font-weight': stepHeaderFontWeight
|
|
73
73
|
};
|
|
74
74
|
})
|
|
75
75
|
};
|
|
@@ -13,18 +13,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
14
|
|
|
15
15
|
const icon_switch_cssr_1 = __importDefault(require("../../../_styles/transitions/icon-switch.cssr")); // vars:
|
|
16
|
-
// --bezier
|
|
17
|
-
// --description-text-color
|
|
18
|
-
// --header-text-color
|
|
19
|
-
// --indicator-border-color
|
|
20
|
-
// --indicator-color
|
|
21
|
-
// --indicator-icon-size
|
|
22
|
-
// --indicator-index-font-size
|
|
23
|
-
// --indicator-size
|
|
24
|
-
// --indicator-text-color
|
|
25
|
-
// --splitor-color
|
|
26
|
-
// --step-header-font-size
|
|
27
|
-
// --step-header-font-weight
|
|
16
|
+
// --n-bezier
|
|
17
|
+
// --n-description-text-color
|
|
18
|
+
// --n-header-text-color
|
|
19
|
+
// --n-indicator-border-color
|
|
20
|
+
// --n-indicator-color
|
|
21
|
+
// --n-indicator-icon-size
|
|
22
|
+
// --n-indicator-index-font-size
|
|
23
|
+
// --n-indicator-size
|
|
24
|
+
// --n-indicator-text-color
|
|
25
|
+
// --n-splitor-color
|
|
26
|
+
// --n-step-header-font-size
|
|
27
|
+
// --n-step-header-font-weight
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
exports.default = (0, cssr_1.cB)('steps', `
|
|
@@ -37,73 +37,73 @@ exports.default = (0, cssr_1.cB)('steps', `
|
|
|
37
37
|
`, [(0, cssr_1.c)('&:last-child', [(0, cssr_1.cB)('step-splitor', {
|
|
38
38
|
display: 'none'
|
|
39
39
|
})])]), (0, cssr_1.cB)('step-splitor', `
|
|
40
|
-
background-color: var(--splitor-color);
|
|
41
|
-
margin-top: calc(var(--step-header-font-size) / 2);
|
|
40
|
+
background-color: var(--n-splitor-color);
|
|
41
|
+
margin-top: calc(var(--n-step-header-font-size) / 2);
|
|
42
42
|
height: 1px;
|
|
43
43
|
flex: 1;
|
|
44
44
|
align-self: flex-start;
|
|
45
45
|
margin-left: 12px;
|
|
46
46
|
margin-right: 12px;
|
|
47
47
|
transition:
|
|
48
|
-
color .3s var(--bezier),
|
|
49
|
-
background-color .3s var(--bezier);
|
|
48
|
+
color .3s var(--n-bezier),
|
|
49
|
+
background-color .3s var(--n-bezier);
|
|
50
50
|
`), (0, cssr_1.cB)('step-content', {
|
|
51
51
|
flex: 1
|
|
52
52
|
}, [(0, cssr_1.cB)('step-content-header', `
|
|
53
|
-
color: var(--header-text-color);
|
|
54
|
-
margin-top: calc(var(--indicator-size) / 2 - var(--step-header-font-size) / 2);
|
|
55
|
-
line-height: var(--step-header-font-size);
|
|
56
|
-
font-size: var(--step-header-font-size);
|
|
53
|
+
color: var(--n-header-text-color);
|
|
54
|
+
margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);
|
|
55
|
+
line-height: var(--n-step-header-font-size);
|
|
56
|
+
font-size: var(--n-step-header-font-size);
|
|
57
57
|
position: relative;
|
|
58
58
|
display: flex;
|
|
59
|
-
font-weight: var(--step-header-font-weight);
|
|
59
|
+
font-weight: var(--n-step-header-font-weight);
|
|
60
60
|
margin-left: 9px;
|
|
61
61
|
transition:
|
|
62
|
-
color .3s var(--bezier),
|
|
63
|
-
background-color .3s var(--bezier);
|
|
62
|
+
color .3s var(--n-bezier),
|
|
63
|
+
background-color .3s var(--n-bezier);
|
|
64
64
|
`, [(0, cssr_1.cE)('title', `
|
|
65
65
|
white-space: nowrap;
|
|
66
66
|
flex: 0;
|
|
67
67
|
`)]), (0, cssr_1.cE)('description', `
|
|
68
|
-
color: var(--description-text-color);
|
|
68
|
+
color: var(--n-description-text-color);
|
|
69
69
|
margin-top: 12px;
|
|
70
70
|
margin-left: 9px;
|
|
71
71
|
transition:
|
|
72
|
-
color .3s var(--bezier),
|
|
73
|
-
background-color .3s var(--bezier);
|
|
72
|
+
color .3s var(--n-bezier),
|
|
73
|
+
background-color .3s var(--n-bezier);
|
|
74
74
|
`)]), (0, cssr_1.cB)('step-indicator', `
|
|
75
|
-
background-color: var(--indicator-color);
|
|
76
|
-
box-shadow: 0 0 0 1px var(--indicator-border-color);
|
|
77
|
-
height: var(--indicator-size);
|
|
78
|
-
width: var(--indicator-size);
|
|
75
|
+
background-color: var(--n-indicator-color);
|
|
76
|
+
box-shadow: 0 0 0 1px var(--n-indicator-border-color);
|
|
77
|
+
height: var(--n-indicator-size);
|
|
78
|
+
width: var(--n-indicator-size);
|
|
79
79
|
border-radius: 50%;
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
82
82
|
justify-content: center;
|
|
83
83
|
transition:
|
|
84
|
-
background-color .3s var(--bezier),
|
|
85
|
-
box-shadow .3s var(--bezier);
|
|
84
|
+
background-color .3s var(--n-bezier),
|
|
85
|
+
box-shadow .3s var(--n-bezier);
|
|
86
86
|
`, [(0, cssr_1.cB)('step-indicator-slot', `
|
|
87
87
|
position: relative;
|
|
88
|
-
width: var(--indicator-icon-size);
|
|
89
|
-
height: var(--indicator-icon-size);
|
|
90
|
-
font-size: var(--indicator-icon-size);
|
|
91
|
-
line-height: var(--indicator-icon-size);
|
|
88
|
+
width: var(--n-indicator-icon-size);
|
|
89
|
+
height: var(--n-indicator-icon-size);
|
|
90
|
+
font-size: var(--n-indicator-icon-size);
|
|
91
|
+
line-height: var(--n-indicator-icon-size);
|
|
92
92
|
`, [(0, cssr_1.cE)('index', `
|
|
93
93
|
display: inline-block;
|
|
94
94
|
text-align: center;
|
|
95
95
|
position: absolute;
|
|
96
96
|
left: 0;
|
|
97
97
|
top: 0;
|
|
98
|
-
font-size: var(--indicator-index-font-size);
|
|
99
|
-
width: var(--indicator-icon-size);
|
|
100
|
-
height: var(--indicator-icon-size);
|
|
101
|
-
line-height: var(--indicator-icon-size);
|
|
102
|
-
color: var(--indicator-text-color);
|
|
103
|
-
transition: color .3s var(--bezier);
|
|
98
|
+
font-size: var(--n-indicator-index-font-size);
|
|
99
|
+
width: var(--n-indicator-icon-size);
|
|
100
|
+
height: var(--n-indicator-icon-size);
|
|
101
|
+
line-height: var(--n-indicator-icon-size);
|
|
102
|
+
color: var(--n-indicator-text-color);
|
|
103
|
+
transition: color .3s var(--n-bezier);
|
|
104
104
|
`, [(0, icon_switch_cssr_1.default)()]), (0, cssr_1.cB)('base-icon', `
|
|
105
|
-
color: var(--indicator-text-color);
|
|
106
|
-
transition: color .3s var(--bezier);
|
|
105
|
+
color: var(--n-indicator-text-color);
|
|
106
|
+
transition: color .3s var(--n-bezier);
|
|
107
107
|
`, [(0, icon_switch_cssr_1.default)()])])]), (0, cssr_1.cM)('vertical', {
|
|
108
108
|
flexDirection: 'column'
|
|
109
109
|
}, [(0, cssr_1.cNotM)('show-description', [(0, cssr_1.cB)('step', {
|
|
@@ -113,8 +113,8 @@ exports.default = (0, cssr_1.cB)('steps', `
|
|
|
113
113
|
}, [(0, cssr_1.c)('&:last-child', {
|
|
114
114
|
marginBottom: 0
|
|
115
115
|
})]), (0, cssr_1.cB)('step-splitor', `
|
|
116
|
-
left: calc(var(--indicator-size) / 2);
|
|
117
|
-
height: calc(100% - var(--indicator-size));
|
|
116
|
+
left: calc(var(--n-indicator-size) / 2);
|
|
117
|
+
height: calc(100% - var(--n-indicator-size));
|
|
118
118
|
`), (0, cssr_1.cB)('step-indicator', [(0, cssr_1.cB)('step-splitor', `
|
|
119
119
|
position: absolute;
|
|
120
120
|
bottom: -8px;
|
|
@@ -278,25 +278,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
278
278
|
checked: import("vue").ComputedRef<boolean>;
|
|
279
279
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
280
280
|
cssVars: import("vue").ComputedRef<{
|
|
281
|
-
'--bezier': string;
|
|
282
|
-
'--button-border-radius': string;
|
|
283
|
-
'--button-box-shadow': string;
|
|
284
|
-
'--button-color': string;
|
|
285
|
-
'--button-width': string;
|
|
286
|
-
'--button-width-pressed': string;
|
|
287
|
-
'--button-height': string;
|
|
288
|
-
'--height': string;
|
|
289
|
-
'--offset': string;
|
|
290
|
-
'--opacity-disabled': string;
|
|
291
|
-
'--rail-border-radius': string;
|
|
292
|
-
'--rail-color': string;
|
|
293
|
-
'--rail-color-active': string;
|
|
294
|
-
'--rail-height': string;
|
|
295
|
-
'--rail-width': string;
|
|
296
|
-
'--width': string;
|
|
297
|
-
'--box-shadow-focus': string;
|
|
298
|
-
'--loading-color': string;
|
|
299
|
-
'--text-color': string;
|
|
281
|
+
'--n-bezier': string;
|
|
282
|
+
'--n-button-border-radius': string;
|
|
283
|
+
'--n-button-box-shadow': string;
|
|
284
|
+
'--n-button-color': string;
|
|
285
|
+
'--n-button-width': string;
|
|
286
|
+
'--n-button-width-pressed': string;
|
|
287
|
+
'--n-button-height': string;
|
|
288
|
+
'--n-height': string;
|
|
289
|
+
'--n-offset': string;
|
|
290
|
+
'--n-opacity-disabled': string;
|
|
291
|
+
'--n-rail-border-radius': string;
|
|
292
|
+
'--n-rail-color': string;
|
|
293
|
+
'--n-rail-color-active': string;
|
|
294
|
+
'--n-rail-height': string;
|
|
295
|
+
'--n-rail-width': string;
|
|
296
|
+
'--n-width': string;
|
|
297
|
+
'--n-box-shadow-focus': string;
|
|
298
|
+
'--n-loading-color': string;
|
|
299
|
+
'--n-text-color': string;
|
|
300
300
|
}>;
|
|
301
301
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
302
302
|
readonly size?: unknown;
|
package/lib/switch/src/Switch.js
CHANGED
|
@@ -143,25 +143,25 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
143
143
|
? railWidth
|
|
144
144
|
: (0, seemly_1.pxfy)((0, seemly_1.depx)(railWidth) + (0, seemly_1.depx)(buttonHeight) - (0, seemly_1.depx)(railHeight));
|
|
145
145
|
return {
|
|
146
|
-
'--bezier': cubicBezierEaseInOut,
|
|
147
|
-
'--button-border-radius': buttonBorderRadius,
|
|
148
|
-
'--button-box-shadow': buttonBoxShadow,
|
|
149
|
-
'--button-color': buttonColor,
|
|
150
|
-
'--button-width': buttonWidth,
|
|
151
|
-
'--button-width-pressed': buttonWidthPressed,
|
|
152
|
-
'--button-height': buttonHeight,
|
|
153
|
-
'--height': height,
|
|
154
|
-
'--offset': offset,
|
|
155
|
-
'--opacity-disabled': opacityDisabled,
|
|
156
|
-
'--rail-border-radius': railBorderRadius,
|
|
157
|
-
'--rail-color': railColor,
|
|
158
|
-
'--rail-color-active': railColorActive,
|
|
159
|
-
'--rail-height': railHeight,
|
|
160
|
-
'--rail-width': railWidth,
|
|
161
|
-
'--width': width,
|
|
162
|
-
'--box-shadow-focus': boxShadowFocus,
|
|
163
|
-
'--loading-color': loadingColor,
|
|
164
|
-
'--text-color': textColor
|
|
146
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
147
|
+
'--n-button-border-radius': buttonBorderRadius,
|
|
148
|
+
'--n-button-box-shadow': buttonBoxShadow,
|
|
149
|
+
'--n-button-color': buttonColor,
|
|
150
|
+
'--n-button-width': buttonWidth,
|
|
151
|
+
'--n-button-width-pressed': buttonWidthPressed,
|
|
152
|
+
'--n-button-height': buttonHeight,
|
|
153
|
+
'--n-height': height,
|
|
154
|
+
'--n-offset': offset,
|
|
155
|
+
'--n-opacity-disabled': opacityDisabled,
|
|
156
|
+
'--n-rail-border-radius': railBorderRadius,
|
|
157
|
+
'--n-rail-color': railColor,
|
|
158
|
+
'--n-rail-color-active': railColorActive,
|
|
159
|
+
'--n-rail-height': railHeight,
|
|
160
|
+
'--n-rail-width': railWidth,
|
|
161
|
+
'--n-width': width,
|
|
162
|
+
'--n-box-shadow-focus': boxShadowFocus,
|
|
163
|
+
'--n-loading-color': loadingColor,
|
|
164
|
+
'--n-text-color': textColor
|
|
165
165
|
};
|
|
166
166
|
})
|
|
167
167
|
};
|