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
|
@@ -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/es/form/styles/light.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
import commonVariables from './_common';
|
|
3
3
|
export const self = (vars) => {
|
|
4
|
-
const { textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
|
|
5
|
-
return Object.assign(Object.assign({}, commonVariables), { lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
|
|
4
|
+
const { heightSmall, heightMedium, heightLarge, textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
|
|
5
|
+
return Object.assign(Object.assign({}, commonVariables), { blankHeightSmall: heightSmall, blankHeightMedium: heightMedium, blankHeightLarge: heightLarge, lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
|
|
6
6
|
};
|
|
7
7
|
const formLight = {
|
|
8
8
|
name: 'Form',
|
package/es/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/es/log/src/Log.js
CHANGED
|
@@ -159,12 +159,12 @@ export default defineComponent({
|
|
|
159
159
|
cssVars: computed(() => {
|
|
160
160
|
const { self: { loaderFontSize, loaderTextColor, loaderColor, loaderBorder, loadingColor }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
161
161
|
return {
|
|
162
|
-
'--bezier': cubicBezierEaseInOut,
|
|
163
|
-
'--loader-font-size': loaderFontSize,
|
|
164
|
-
'--loader-border': loaderBorder,
|
|
165
|
-
'--loader-color': loaderColor,
|
|
166
|
-
'--loader-text-color': loaderTextColor,
|
|
167
|
-
'--loading-color': loadingColor
|
|
162
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
163
|
+
'--n-loader-font-size': loaderFontSize,
|
|
164
|
+
'--n-loader-border': loaderBorder,
|
|
165
|
+
'--n-loader-color': loaderColor,
|
|
166
|
+
'--n-loader-text-color': loaderTextColor,
|
|
167
|
+
'--n-loading-color': loadingColor
|
|
168
168
|
};
|
|
169
169
|
})
|
|
170
170
|
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { c, cB, cE } from '../../../_utils/cssr';
|
|
2
2
|
import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
|
|
3
|
-
// --bezier
|
|
4
|
-
// --loading-color
|
|
5
|
-
// --loader-border
|
|
6
|
-
// --loader-color
|
|
7
|
-
// --loader-text-color
|
|
8
|
-
// --loader-font-size
|
|
9
|
-
// --loading-color
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-loading-color
|
|
5
|
+
// --n-loader-border
|
|
6
|
+
// --n-loader-color
|
|
7
|
+
// --n-loader-text-color
|
|
8
|
+
// --n-loader-font-size
|
|
9
|
+
// --n-loading-color
|
|
10
10
|
|
|
11
11
|
export default cB('log', `
|
|
12
12
|
position: relative;
|
|
13
13
|
box-sizing: border-box;
|
|
14
|
-
transition:
|
|
15
|
-
border-color .3s var(--bezier),
|
|
16
|
-
color .3s var(--bezier);
|
|
14
|
+
transition: border-color .3s var(--n-bezier);
|
|
17
15
|
`, [cE('lines', `
|
|
18
16
|
margin: 0;
|
|
19
17
|
white-space: pre-wrap;
|
|
@@ -21,9 +19,9 @@ export default cB('log', `
|
|
|
21
19
|
margin: 0;
|
|
22
20
|
`), cB('log-loader', `
|
|
23
21
|
transition:
|
|
24
|
-
color .3s var(--bezier),
|
|
25
|
-
background-color .3s var(--bezier),
|
|
26
|
-
border-color .3s var(--bezier);
|
|
22
|
+
color .3s var(--n-bezier),
|
|
23
|
+
background-color .3s var(--n-bezier),
|
|
24
|
+
border-color .3s var(--n-bezier);
|
|
27
25
|
box-sizing: border-box;
|
|
28
26
|
position: absolute;
|
|
29
27
|
right: 16px;
|
|
@@ -33,10 +31,10 @@ export default cB('log', `
|
|
|
33
31
|
line-height: 34px;
|
|
34
32
|
white-space: nowrap;
|
|
35
33
|
overflow: hidden;
|
|
36
|
-
border: var(--loader-border);
|
|
37
|
-
color: var(--loader-text-color);
|
|
38
|
-
background-color: var(--loader-color);
|
|
39
|
-
font-size: var(--loader-font-size);
|
|
34
|
+
border: var(--n-loader-border);
|
|
35
|
+
color: var(--n-loader-text-color);
|
|
36
|
+
background-color: var(--n-loader-color);
|
|
37
|
+
font-size: var(--n-loader-font-size);
|
|
40
38
|
`, [fadeInScaleUpTransition(), cE('content', `
|
|
41
39
|
display: inline-block;
|
|
42
40
|
vertical-align: bottom;
|
|
@@ -45,7 +43,7 @@ export default cB('log', `
|
|
|
45
43
|
padding-right: 20px;
|
|
46
44
|
white-space: nowrap;
|
|
47
45
|
`), cB('base-loading', `
|
|
48
|
-
color: var(--loading-color);
|
|
46
|
+
color: var(--n-loading-color);
|
|
49
47
|
position: absolute;
|
|
50
48
|
left: 12px;
|
|
51
49
|
top: calc(50% - 10px);
|
package/es/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/es/steps/src/Step.js
CHANGED
|
@@ -56,18 +56,18 @@ export default defineComponent({
|
|
|
56
56
|
const { size } = stepsProps;
|
|
57
57
|
const { common: { cubicBezierEaseInOut }, self: { stepHeaderFontWeight, [createKey('stepHeaderFontSize', size)]: stepHeaderFontSize, [createKey('indicatorIndexFontSize', size)]: indicatorIndexFontSize, [createKey('indicatorSize', size)]: indicatorSize, [createKey('indicatorIconSize', size)]: indicatorIconSize, [createKey('indicatorTextColor', status)]: indicatorTextColor, [createKey('indicatorBorderColor', status)]: indicatorBorderColor, [createKey('headerTextColor', status)]: headerTextColor, [createKey('splitorColor', status)]: splitorColor, [createKey('indicatorColor', status)]: indicatorColor, [createKey('descriptionTextColor', status)]: descriptionTextColor } } = mergedThemeRef.value;
|
|
58
58
|
return {
|
|
59
|
-
'--bezier': cubicBezierEaseInOut,
|
|
60
|
-
'--description-text-color': descriptionTextColor,
|
|
61
|
-
'--header-text-color': headerTextColor,
|
|
62
|
-
'--indicator-border-color': indicatorBorderColor,
|
|
63
|
-
'--indicator-color': indicatorColor,
|
|
64
|
-
'--indicator-icon-size': indicatorIconSize,
|
|
65
|
-
'--indicator-index-font-size': indicatorIndexFontSize,
|
|
66
|
-
'--indicator-size': indicatorSize,
|
|
67
|
-
'--indicator-text-color': indicatorTextColor,
|
|
68
|
-
'--splitor-color': splitorColor,
|
|
69
|
-
'--step-header-font-size': stepHeaderFontSize,
|
|
70
|
-
'--step-header-font-weight': stepHeaderFontWeight
|
|
59
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
60
|
+
'--n-description-text-color': descriptionTextColor,
|
|
61
|
+
'--n-header-text-color': headerTextColor,
|
|
62
|
+
'--n-indicator-border-color': indicatorBorderColor,
|
|
63
|
+
'--n-indicator-color': indicatorColor,
|
|
64
|
+
'--n-indicator-icon-size': indicatorIconSize,
|
|
65
|
+
'--n-indicator-index-font-size': indicatorIndexFontSize,
|
|
66
|
+
'--n-indicator-size': indicatorSize,
|
|
67
|
+
'--n-indicator-text-color': indicatorTextColor,
|
|
68
|
+
'--n-splitor-color': splitorColor,
|
|
69
|
+
'--n-step-header-font-size': stepHeaderFontSize,
|
|
70
|
+
'--n-step-header-font-weight': stepHeaderFontWeight
|
|
71
71
|
};
|
|
72
72
|
})
|
|
73
73
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
2
|
import iconSwitchTransition from '../../../_styles/transitions/icon-switch.cssr'; // vars:
|
|
3
|
-
// --bezier
|
|
4
|
-
// --description-text-color
|
|
5
|
-
// --header-text-color
|
|
6
|
-
// --indicator-border-color
|
|
7
|
-
// --indicator-color
|
|
8
|
-
// --indicator-icon-size
|
|
9
|
-
// --indicator-index-font-size
|
|
10
|
-
// --indicator-size
|
|
11
|
-
// --indicator-text-color
|
|
12
|
-
// --splitor-color
|
|
13
|
-
// --step-header-font-size
|
|
14
|
-
// --step-header-font-weight
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-description-text-color
|
|
5
|
+
// --n-header-text-color
|
|
6
|
+
// --n-indicator-border-color
|
|
7
|
+
// --n-indicator-color
|
|
8
|
+
// --n-indicator-icon-size
|
|
9
|
+
// --n-indicator-index-font-size
|
|
10
|
+
// --n-indicator-size
|
|
11
|
+
// --n-indicator-text-color
|
|
12
|
+
// --n-splitor-color
|
|
13
|
+
// --n-step-header-font-size
|
|
14
|
+
// --n-step-header-font-weight
|
|
15
15
|
|
|
16
16
|
export default cB('steps', `
|
|
17
17
|
width: 100%;
|
|
@@ -23,73 +23,73 @@ export default cB('steps', `
|
|
|
23
23
|
`, [c('&:last-child', [cB('step-splitor', {
|
|
24
24
|
display: 'none'
|
|
25
25
|
})])]), cB('step-splitor', `
|
|
26
|
-
background-color: var(--splitor-color);
|
|
27
|
-
margin-top: calc(var(--step-header-font-size) / 2);
|
|
26
|
+
background-color: var(--n-splitor-color);
|
|
27
|
+
margin-top: calc(var(--n-step-header-font-size) / 2);
|
|
28
28
|
height: 1px;
|
|
29
29
|
flex: 1;
|
|
30
30
|
align-self: flex-start;
|
|
31
31
|
margin-left: 12px;
|
|
32
32
|
margin-right: 12px;
|
|
33
33
|
transition:
|
|
34
|
-
color .3s var(--bezier),
|
|
35
|
-
background-color .3s var(--bezier);
|
|
34
|
+
color .3s var(--n-bezier),
|
|
35
|
+
background-color .3s var(--n-bezier);
|
|
36
36
|
`), cB('step-content', {
|
|
37
37
|
flex: 1
|
|
38
38
|
}, [cB('step-content-header', `
|
|
39
|
-
color: var(--header-text-color);
|
|
40
|
-
margin-top: calc(var(--indicator-size) / 2 - var(--step-header-font-size) / 2);
|
|
41
|
-
line-height: var(--step-header-font-size);
|
|
42
|
-
font-size: var(--step-header-font-size);
|
|
39
|
+
color: var(--n-header-text-color);
|
|
40
|
+
margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);
|
|
41
|
+
line-height: var(--n-step-header-font-size);
|
|
42
|
+
font-size: var(--n-step-header-font-size);
|
|
43
43
|
position: relative;
|
|
44
44
|
display: flex;
|
|
45
|
-
font-weight: var(--step-header-font-weight);
|
|
45
|
+
font-weight: var(--n-step-header-font-weight);
|
|
46
46
|
margin-left: 9px;
|
|
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
|
`, [cE('title', `
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
flex: 0;
|
|
53
53
|
`)]), cE('description', `
|
|
54
|
-
color: var(--description-text-color);
|
|
54
|
+
color: var(--n-description-text-color);
|
|
55
55
|
margin-top: 12px;
|
|
56
56
|
margin-left: 9px;
|
|
57
57
|
transition:
|
|
58
|
-
color .3s var(--bezier),
|
|
59
|
-
background-color .3s var(--bezier);
|
|
58
|
+
color .3s var(--n-bezier),
|
|
59
|
+
background-color .3s var(--n-bezier);
|
|
60
60
|
`)]), cB('step-indicator', `
|
|
61
|
-
background-color: var(--indicator-color);
|
|
62
|
-
box-shadow: 0 0 0 1px var(--indicator-border-color);
|
|
63
|
-
height: var(--indicator-size);
|
|
64
|
-
width: var(--indicator-size);
|
|
61
|
+
background-color: var(--n-indicator-color);
|
|
62
|
+
box-shadow: 0 0 0 1px var(--n-indicator-border-color);
|
|
63
|
+
height: var(--n-indicator-size);
|
|
64
|
+
width: var(--n-indicator-size);
|
|
65
65
|
border-radius: 50%;
|
|
66
66
|
display: flex;
|
|
67
67
|
align-items: center;
|
|
68
68
|
justify-content: center;
|
|
69
69
|
transition:
|
|
70
|
-
background-color .3s var(--bezier),
|
|
71
|
-
box-shadow .3s var(--bezier);
|
|
70
|
+
background-color .3s var(--n-bezier),
|
|
71
|
+
box-shadow .3s var(--n-bezier);
|
|
72
72
|
`, [cB('step-indicator-slot', `
|
|
73
73
|
position: relative;
|
|
74
|
-
width: var(--indicator-icon-size);
|
|
75
|
-
height: var(--indicator-icon-size);
|
|
76
|
-
font-size: var(--indicator-icon-size);
|
|
77
|
-
line-height: var(--indicator-icon-size);
|
|
74
|
+
width: var(--n-indicator-icon-size);
|
|
75
|
+
height: var(--n-indicator-icon-size);
|
|
76
|
+
font-size: var(--n-indicator-icon-size);
|
|
77
|
+
line-height: var(--n-indicator-icon-size);
|
|
78
78
|
`, [cE('index', `
|
|
79
79
|
display: inline-block;
|
|
80
80
|
text-align: center;
|
|
81
81
|
position: absolute;
|
|
82
82
|
left: 0;
|
|
83
83
|
top: 0;
|
|
84
|
-
font-size: var(--indicator-index-font-size);
|
|
85
|
-
width: var(--indicator-icon-size);
|
|
86
|
-
height: var(--indicator-icon-size);
|
|
87
|
-
line-height: var(--indicator-icon-size);
|
|
88
|
-
color: var(--indicator-text-color);
|
|
89
|
-
transition: color .3s var(--bezier);
|
|
84
|
+
font-size: var(--n-indicator-index-font-size);
|
|
85
|
+
width: var(--n-indicator-icon-size);
|
|
86
|
+
height: var(--n-indicator-icon-size);
|
|
87
|
+
line-height: var(--n-indicator-icon-size);
|
|
88
|
+
color: var(--n-indicator-text-color);
|
|
89
|
+
transition: color .3s var(--n-bezier);
|
|
90
90
|
`, [iconSwitchTransition()]), cB('base-icon', `
|
|
91
|
-
color: var(--indicator-text-color);
|
|
92
|
-
transition: color .3s var(--bezier);
|
|
91
|
+
color: var(--n-indicator-text-color);
|
|
92
|
+
transition: color .3s var(--n-bezier);
|
|
93
93
|
`, [iconSwitchTransition()])])]), cM('vertical', {
|
|
94
94
|
flexDirection: 'column'
|
|
95
95
|
}, [cNotM('show-description', [cB('step', {
|
|
@@ -99,8 +99,8 @@ export default cB('steps', `
|
|
|
99
99
|
}, [c('&:last-child', {
|
|
100
100
|
marginBottom: 0
|
|
101
101
|
})]), cB('step-splitor', `
|
|
102
|
-
left: calc(var(--indicator-size) / 2);
|
|
103
|
-
height: calc(100% - var(--indicator-size));
|
|
102
|
+
left: calc(var(--n-indicator-size) / 2);
|
|
103
|
+
height: calc(100% - var(--n-indicator-size));
|
|
104
104
|
`), cB('step-indicator', [cB('step-splitor', `
|
|
105
105
|
position: absolute;
|
|
106
106
|
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/es/switch/src/Switch.js
CHANGED
|
@@ -138,25 +138,25 @@ export default defineComponent({
|
|
|
138
138
|
? railWidth
|
|
139
139
|
: pxfy(depx(railWidth) + depx(buttonHeight) - depx(railHeight));
|
|
140
140
|
return {
|
|
141
|
-
'--bezier': cubicBezierEaseInOut,
|
|
142
|
-
'--button-border-radius': buttonBorderRadius,
|
|
143
|
-
'--button-box-shadow': buttonBoxShadow,
|
|
144
|
-
'--button-color': buttonColor,
|
|
145
|
-
'--button-width': buttonWidth,
|
|
146
|
-
'--button-width-pressed': buttonWidthPressed,
|
|
147
|
-
'--button-height': buttonHeight,
|
|
148
|
-
'--height': height,
|
|
149
|
-
'--offset': offset,
|
|
150
|
-
'--opacity-disabled': opacityDisabled,
|
|
151
|
-
'--rail-border-radius': railBorderRadius,
|
|
152
|
-
'--rail-color': railColor,
|
|
153
|
-
'--rail-color-active': railColorActive,
|
|
154
|
-
'--rail-height': railHeight,
|
|
155
|
-
'--rail-width': railWidth,
|
|
156
|
-
'--width': width,
|
|
157
|
-
'--box-shadow-focus': boxShadowFocus,
|
|
158
|
-
'--loading-color': loadingColor,
|
|
159
|
-
'--text-color': textColor
|
|
141
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
142
|
+
'--n-button-border-radius': buttonBorderRadius,
|
|
143
|
+
'--n-button-box-shadow': buttonBoxShadow,
|
|
144
|
+
'--n-button-color': buttonColor,
|
|
145
|
+
'--n-button-width': buttonWidth,
|
|
146
|
+
'--n-button-width-pressed': buttonWidthPressed,
|
|
147
|
+
'--n-button-height': buttonHeight,
|
|
148
|
+
'--n-height': height,
|
|
149
|
+
'--n-offset': offset,
|
|
150
|
+
'--n-opacity-disabled': opacityDisabled,
|
|
151
|
+
'--n-rail-border-radius': railBorderRadius,
|
|
152
|
+
'--n-rail-color': railColor,
|
|
153
|
+
'--n-rail-color-active': railColorActive,
|
|
154
|
+
'--n-rail-height': railHeight,
|
|
155
|
+
'--n-rail-width': railWidth,
|
|
156
|
+
'--n-width': width,
|
|
157
|
+
'--n-box-shadow-focus': boxShadowFocus,
|
|
158
|
+
'--n-loading-color': loadingColor,
|
|
159
|
+
'--n-text-color': textColor
|
|
160
160
|
};
|
|
161
161
|
})
|
|
162
162
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
2
2
|
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr'; // vars:
|
|
3
|
-
// --bezier
|
|
4
|
-
// --button-border-radius
|
|
5
|
-
// --button-box-shadow
|
|
6
|
-
// --button-color
|
|
7
|
-
// --button-width
|
|
8
|
-
// --button-width-pressed
|
|
9
|
-
// --height
|
|
10
|
-
// --offset
|
|
11
|
-
// --rail-border-radius
|
|
12
|
-
// --rail-color
|
|
13
|
-
// --rail-color-active
|
|
14
|
-
// --rail-height
|
|
15
|
-
// --rail-width
|
|
16
|
-
// --width
|
|
17
|
-
// --box-shadow-focus
|
|
18
|
-
// --loading-color
|
|
19
|
-
// --text-color
|
|
3
|
+
// --n-bezier
|
|
4
|
+
// --n-button-border-radius
|
|
5
|
+
// --n-button-box-shadow
|
|
6
|
+
// --n-button-color
|
|
7
|
+
// --n-button-width
|
|
8
|
+
// --n-button-width-pressed
|
|
9
|
+
// --n-height
|
|
10
|
+
// --n-offset
|
|
11
|
+
// --n-rail-border-radius
|
|
12
|
+
// --n-rail-color
|
|
13
|
+
// --n-rail-color-active
|
|
14
|
+
// --n-rail-height
|
|
15
|
+
// --n-rail-width
|
|
16
|
+
// --n-width
|
|
17
|
+
// --n-box-shadow-focus
|
|
18
|
+
// --n-loading-color
|
|
19
|
+
// --n-text-color
|
|
20
20
|
|
|
21
21
|
export default cB('switch', `
|
|
22
|
-
height: var(--height);
|
|
23
|
-
min-width: var(--width);
|
|
22
|
+
height: var(--n-height);
|
|
23
|
+
min-width: var(--n-width);
|
|
24
24
|
vertical-align: middle;
|
|
25
25
|
user-select: none;
|
|
26
26
|
display: inline-flex;
|
|
@@ -28,7 +28,7 @@ export default cB('switch', `
|
|
|
28
28
|
justify-content: center;
|
|
29
29
|
align-items: center;
|
|
30
30
|
`, [cE('children-placeholder', `
|
|
31
|
-
height: var(--rail-height);
|
|
31
|
+
height: var(--n-rail-height);
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
overflow: hidden;
|
|
@@ -38,21 +38,21 @@ export default cB('switch', `
|
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-wrap: none;
|
|
40
40
|
`), cE('button-placeholder', `
|
|
41
|
-
width: calc(1.75 * var(--rail-height));
|
|
42
|
-
height: var(--rail-height);
|
|
41
|
+
width: calc(1.75 * var(--n-rail-height));
|
|
42
|
+
height: var(--n-rail-height);
|
|
43
43
|
`), cB('base-loading', `
|
|
44
44
|
position: absolute;
|
|
45
45
|
top: 50%;
|
|
46
46
|
left: 50%;
|
|
47
47
|
transform: translateX(-50%) translateY(-50%);
|
|
48
|
-
font-size: calc(var(--button-width) - 4px);
|
|
49
|
-
color: var(--loading-color);
|
|
50
|
-
transition: color .3s var(--bezier);
|
|
48
|
+
font-size: calc(var(--n-button-width) - 4px);
|
|
49
|
+
color: var(--n-loading-color);
|
|
50
|
+
transition: color .3s var(--n-bezier);
|
|
51
51
|
`, [fadeInScaleUpTransition({
|
|
52
52
|
originalTransform: 'translateX(-50%) translateY(-50%)'
|
|
53
53
|
})]), cE('checked, unchecked', `
|
|
54
|
-
transition: color .3s var(--bezier);
|
|
55
|
-
color: var(--text-color);
|
|
54
|
+
transition: color .3s var(--n-bezier);
|
|
55
|
+
color: var(--n-text-color);
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
position: absolute;
|
|
58
58
|
white-space: nowrap;
|
|
@@ -63,59 +63,59 @@ export default cB('switch', `
|
|
|
63
63
|
line-height: 1;
|
|
64
64
|
`), cE('checked', `
|
|
65
65
|
right: 0;
|
|
66
|
-
padding-right: calc(1.25 * var(--rail-height) - var(--offset));
|
|
66
|
+
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
|
67
67
|
`), cE('unchecked', `
|
|
68
68
|
left: 0;
|
|
69
69
|
justify-content: flex-end;
|
|
70
|
-
padding-left: calc(1.25 * var(--rail-height) - var(--offset));
|
|
70
|
+
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
|
71
71
|
`), c('&:focus', [cE('rail', `
|
|
72
|
-
box-shadow: var(--box-shadow-focus);
|
|
72
|
+
box-shadow: var(--n-box-shadow-focus);
|
|
73
73
|
`)]), cM('round', [cE('rail', {
|
|
74
|
-
borderRadius: 'calc(var(--rail-height) / 2)'
|
|
74
|
+
borderRadius: 'calc(var(--n-rail-height) / 2)'
|
|
75
75
|
}, [cE('button', {
|
|
76
|
-
borderRadius: 'calc(var(--button-height) / 2)'
|
|
76
|
+
borderRadius: 'calc(var(--n-button-height) / 2)'
|
|
77
77
|
})])]), cNotM('disabled', [cM('pressed', [cE('rail', [cE('button', {
|
|
78
|
-
maxWidth: 'var(--button-width-pressed)'
|
|
78
|
+
maxWidth: 'var(--n-button-width-pressed)'
|
|
79
79
|
})])]), cE('rail', [c('&:active', [cE('button', {
|
|
80
|
-
maxWidth: 'var(--button-width-pressed)'
|
|
80
|
+
maxWidth: 'var(--n-button-width-pressed)'
|
|
81
81
|
})])]), cM('active', [cM('pressed', [cE('rail', [cE('button', {
|
|
82
|
-
left: 'calc(100% - var(--offset) - var(--button-width-pressed))'
|
|
82
|
+
left: 'calc(100% - var(--n-offset) - var(--n-button-width-pressed))'
|
|
83
83
|
})])]), cE('rail', [c('&:active', [cE('button', {
|
|
84
|
-
left: 'calc(100% - var(--offset) - var(--button-width-pressed))'
|
|
84
|
+
left: 'calc(100% - var(--n-offset) - var(--n-button-width-pressed))'
|
|
85
85
|
})])])])]), cM('active', [cE('rail', [cE('button', {
|
|
86
|
-
left: 'calc(100% - (var(--rail-height) + var(--button-width)) / 2)'
|
|
86
|
+
left: 'calc(100% - (var(--n-rail-height) + var(--n-button-width)) / 2)'
|
|
87
87
|
})])]), cE('rail', `
|
|
88
88
|
overflow: hidden;
|
|
89
|
-
height: var(--rail-height);
|
|
90
|
-
min-width: var(--rail-width);
|
|
91
|
-
border-radius: var(--rail-border-radius);
|
|
89
|
+
height: var(--n-rail-height);
|
|
90
|
+
min-width: var(--n-rail-width);
|
|
91
|
+
border-radius: var(--n-rail-border-radius);
|
|
92
92
|
cursor: pointer;
|
|
93
93
|
position: relative;
|
|
94
94
|
transition:
|
|
95
|
-
background .3s var(--bezier),
|
|
96
|
-
box-shadow .3s var(--bezier);
|
|
97
|
-
background-color: var(--rail-color);
|
|
95
|
+
background .3s var(--n-bezier),
|
|
96
|
+
box-shadow .3s var(--n-bezier);
|
|
97
|
+
background-color: var(--n-rail-color);
|
|
98
98
|
`, [cE('button', `
|
|
99
|
-
top: var(--offset);
|
|
100
|
-
left: var(--offset);
|
|
101
|
-
height: var(--button-width);
|
|
102
|
-
width: var(--button-width-pressed);
|
|
103
|
-
max-width: var(--button-width);
|
|
104
|
-
border-radius: var(--button-border-radius);
|
|
105
|
-
background-color: var(--button-color);
|
|
106
|
-
box-shadow: var(--button-box-shadow);
|
|
99
|
+
top: var(--n-offset);
|
|
100
|
+
left: var(--n-offset);
|
|
101
|
+
height: var(--n-button-width);
|
|
102
|
+
width: var(--n-button-width-pressed);
|
|
103
|
+
max-width: var(--n-button-width);
|
|
104
|
+
border-radius: var(--n-button-border-radius);
|
|
105
|
+
background-color: var(--n-button-color);
|
|
106
|
+
box-shadow: var(--n-button-box-shadow);
|
|
107
107
|
box-sizing: border-box;
|
|
108
108
|
cursor: inherit;
|
|
109
109
|
content: "";
|
|
110
110
|
position: absolute;
|
|
111
111
|
transition:
|
|
112
|
-
background-color .3s var(--bezier),
|
|
113
|
-
left .3s var(--bezier),
|
|
114
|
-
opacity .3s var(--bezier),
|
|
115
|
-
max-width .3s var(--bezier),
|
|
116
|
-
box-shadow .3s var(--bezier);
|
|
112
|
+
background-color .3s var(--n-bezier),
|
|
113
|
+
left .3s var(--n-bezier),
|
|
114
|
+
opacity .3s var(--n-bezier),
|
|
115
|
+
max-width .3s var(--n-bezier),
|
|
116
|
+
box-shadow .3s var(--n-bezier);
|
|
117
117
|
`)]), cM('active', [cE('rail', {
|
|
118
|
-
backgroundColor: 'var(--rail-color-active)'
|
|
118
|
+
backgroundColor: 'var(--n-rail-color-active)'
|
|
119
119
|
})]), cM('disabled', [cE('rail', `
|
|
120
120
|
cursor: not-allowed;
|
|
121
121
|
opacity: .5;
|