@uzum-tech/ui 1.4.2 → 1.5.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/dist/index.js +65404 -64355
- package/dist/index.prod.js +3 -3
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.js +1 -0
- package/es/_internal/typography/index.d.ts +2 -0
- package/es/_internal/typography/index.js +1 -0
- package/es/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/es/_internal/typography/src/styles/text.cssr.js +78 -0
- package/es/_internal/typography/src/text.d.ts +246 -0
- package/es/_internal/typography/src/text.js +79 -0
- package/es/_internal/typography/src/variants.d.ts +13 -0
- package/es/_internal/typography/src/variants.js +132 -0
- package/es/_internal/typography/styles/dark.d.ts +3 -0
- package/es/_internal/typography/styles/dark.js +8 -0
- package/es/_internal/typography/styles/index.d.ts +3 -0
- package/es/_internal/typography/styles/index.js +2 -0
- package/es/_internal/typography/styles/light.d.ts +24 -0
- package/es/_internal/typography/styles/light.js +28 -0
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +3 -1
- package/es/_styles/common/light.d.ts +2 -0
- package/es/action-card/index.d.ts +4 -0
- package/es/action-card/index.js +2 -0
- package/es/action-card/src/ActionCard.d.ts +313 -0
- package/es/action-card/src/ActionCard.js +101 -0
- package/es/action-card/src/styles/index.cssr.d.ts +2 -0
- package/es/action-card/src/styles/index.cssr.js +113 -0
- package/es/action-card/styles/dark.d.ts +3 -0
- package/es/action-card/styles/dark.js +11 -0
- package/es/action-card/styles/index.d.ts +3 -0
- package/es/action-card/styles/index.js +2 -0
- package/es/action-card/styles/light.d.ts +29 -0
- package/es/action-card/styles/light.js +33 -0
- package/es/avatar/src/Avatar.d.ts +13 -3
- package/es/avatar/src/Avatar.js +4 -3
- package/es/avatar/src/styles/index.cssr.js +3 -2
- package/es/avatar/styles/light.d.ts +1 -0
- package/es/avatar/styles/light.js +4 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/es/avatar-group/styles/light.d.ts +1 -0
- package/es/badge/src/Badge.d.ts +10 -0
- package/es/badge/src/Badge.js +3 -2
- package/es/badge/src/styles/index.cssr.js +19 -1
- package/es/badge/styles/light.d.ts +1 -0
- package/es/badge/styles/light.js +4 -3
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.js +3 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.js +10 -1
- package/es/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/es/data-table/src/TableParts/BodySkeleton.js +52 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +6 -0
- package/es/data-table/src/styles/index.cssr.js +1 -1
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/data-table/styles/light.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +9 -0
- package/es/modal/styles/light.d.ts +2 -0
- package/es/modal/styles/light.js +2 -1
- package/es/pagination/src/Pagination.d.ts +22 -0
- package/es/pagination/src/Pagination.js +4 -2
- package/es/pagination/src/styles/index.cssr.js +11 -0
- package/es/pagination/styles/light.d.ts +4 -0
- package/es/pagination/styles/light.js +7 -5
- package/es/spin/styles/light.js +3 -3
- package/es/steps/src/Step.d.ts +17 -0
- package/es/steps/src/Step.js +81 -25
- package/es/steps/src/Steps.d.ts +127 -1
- package/es/steps/src/Steps.js +4 -1
- package/es/steps/src/interface.d.ts +10 -2
- package/es/steps/src/interface.js +10 -1
- package/es/steps/src/styles/index.cssr.js +115 -3
- package/es/steps/styles/light.d.ts +14 -0
- package/es/steps/styles/light.js +16 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/toggle-button/src/ToggleButton.d.ts +13 -0
- package/es/toggle-button/src/ToggleButton.js +5 -2
- package/es/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/es/typography/src/a.d.ts +27 -0
- package/es/typography/src/a.js +4 -1
- package/es/typography/src/blockquote.d.ts +27 -0
- package/es/typography/src/blockquote.js +4 -1
- package/es/typography/src/create-header.d.ts +27 -0
- package/es/typography/src/create-header.js +4 -1
- package/es/typography/src/headers.d.ts +108 -0
- package/es/typography/src/hr.d.ts +18 -0
- package/es/typography/src/hr.js +4 -0
- package/es/typography/src/li.js +4 -1
- package/es/typography/src/ol.d.ts +27 -0
- package/es/typography/src/ol.js +4 -1
- package/es/typography/src/p.d.ts +27 -0
- package/es/typography/src/p.js +4 -1
- package/es/typography/src/text.d.ts +128 -524
- package/es/typography/src/text.js +68 -69
- package/es/typography/src/ul.d.ts +27 -0
- package/es/typography/src/ul.js +4 -1
- package/es/typography/styles/light.d.ts +3 -0
- package/es/typography/styles/light.js +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_internal/typography/index.d.ts +2 -0
- package/lib/_internal/typography/index.js +9 -0
- package/lib/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/lib/_internal/typography/src/styles/text.cssr.js +83 -0
- package/lib/_internal/typography/src/text.d.ts +246 -0
- package/lib/_internal/typography/src/text.js +85 -0
- package/lib/_internal/typography/src/variants.d.ts +13 -0
- package/lib/_internal/typography/src/variants.js +137 -0
- package/lib/_internal/typography/styles/dark.d.ts +3 -0
- package/lib/_internal/typography/styles/dark.js +10 -0
- package/lib/_internal/typography/styles/index.d.ts +3 -0
- package/lib/_internal/typography/styles/index.js +10 -0
- package/lib/_internal/typography/styles/light.d.ts +24 -0
- package/lib/_internal/typography/styles/light.js +32 -0
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +3 -1
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/action-card/index.d.ts +4 -0
- package/lib/action-card/index.js +11 -0
- package/lib/action-card/src/ActionCard.d.ts +313 -0
- package/lib/action-card/src/ActionCard.js +107 -0
- package/lib/action-card/src/styles/index.cssr.d.ts +2 -0
- package/lib/action-card/src/styles/index.cssr.js +118 -0
- package/lib/action-card/styles/dark.d.ts +3 -0
- package/lib/action-card/styles/dark.js +13 -0
- package/lib/action-card/styles/index.d.ts +3 -0
- package/lib/action-card/styles/index.js +10 -0
- package/lib/action-card/styles/light.d.ts +29 -0
- package/lib/action-card/styles/light.js +37 -0
- package/lib/avatar/src/Avatar.d.ts +13 -3
- package/lib/avatar/src/Avatar.js +4 -3
- package/lib/avatar/src/styles/index.cssr.js +3 -2
- package/lib/avatar/styles/light.d.ts +1 -0
- package/lib/avatar/styles/light.js +4 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/lib/avatar-group/styles/light.d.ts +1 -0
- package/lib/badge/src/Badge.d.ts +10 -0
- package/lib/badge/src/Badge.js +3 -2
- package/lib/badge/src/styles/index.cssr.js +19 -1
- package/lib/badge/styles/light.d.ts +1 -0
- package/lib/badge/styles/light.js +4 -3
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +3 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.js +10 -1
- package/lib/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/lib/data-table/src/TableParts/BodySkeleton.js +54 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +6 -0
- package/lib/data-table/src/styles/index.cssr.js +1 -1
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/data-table/styles/light.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +9 -0
- package/lib/modal/styles/light.d.ts +2 -0
- package/lib/modal/styles/light.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +22 -0
- package/lib/pagination/src/Pagination.js +4 -2
- package/lib/pagination/src/styles/index.cssr.js +11 -0
- package/lib/pagination/styles/light.d.ts +4 -0
- package/lib/pagination/styles/light.js +7 -5
- package/lib/spin/styles/light.js +3 -3
- package/lib/steps/src/Step.d.ts +17 -0
- package/lib/steps/src/Step.js +81 -25
- package/lib/steps/src/Steps.d.ts +127 -1
- package/lib/steps/src/Steps.js +4 -1
- package/lib/steps/src/interface.d.ts +10 -2
- package/lib/steps/src/interface.js +11 -0
- package/lib/steps/src/styles/index.cssr.js +115 -3
- package/lib/steps/styles/light.d.ts +14 -0
- package/lib/steps/styles/light.js +16 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/toggle-button/src/ToggleButton.d.ts +13 -0
- package/lib/toggle-button/src/ToggleButton.js +5 -2
- package/lib/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/lib/typography/src/a.d.ts +27 -0
- package/lib/typography/src/a.js +3 -0
- package/lib/typography/src/blockquote.d.ts +27 -0
- package/lib/typography/src/blockquote.js +3 -0
- package/lib/typography/src/create-header.d.ts +27 -0
- package/lib/typography/src/create-header.js +3 -0
- package/lib/typography/src/headers.d.ts +108 -0
- package/lib/typography/src/hr.d.ts +18 -0
- package/lib/typography/src/hr.js +4 -0
- package/lib/typography/src/li.js +3 -0
- package/lib/typography/src/ol.d.ts +27 -0
- package/lib/typography/src/ol.js +3 -0
- package/lib/typography/src/p.d.ts +27 -0
- package/lib/typography/src/p.js +3 -0
- package/lib/typography/src/text.d.ts +128 -524
- package/lib/typography/src/text.js +66 -70
- package/lib/typography/src/ul.d.ts +27 -0
- package/lib/typography/src/ul.js +3 -0
- package/lib/typography/styles/light.d.ts +3 -0
- package/lib/typography/styles/light.js +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +126 -96
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
2
|
import { MaybeArray } from '../../_utils';
|
|
3
3
|
export type StepsStatus = 'process' | 'finish' | 'error' | 'wait';
|
|
4
|
-
export type StepsVariant = 'default' | 'history';
|
|
4
|
+
export type StepsVariant = 'default' | 'history' | 'outline' | 'dotted';
|
|
5
5
|
export type OnUpdateValue = MaybeArray<(current: number) => void>;
|
|
6
|
+
export interface VariantConfig {
|
|
7
|
+
rendersSplitor?: boolean;
|
|
8
|
+
vertical?: boolean;
|
|
9
|
+
showDescription?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultVariantConfig: Required<VariantConfig>;
|
|
12
|
+
export declare const variantConfigs: Partial<Record<StepsVariant, VariantConfig>>;
|
|
6
13
|
export type IconRenderer = {
|
|
7
14
|
[K in StepsVariant]: Record<string, () => VNodeChild | null>;
|
|
8
15
|
};
|
|
9
16
|
export interface VariantBehaviors {
|
|
10
17
|
variant: StepsVariant;
|
|
11
|
-
|
|
18
|
+
isVertical: boolean;
|
|
12
19
|
shouldRenderSplitor: boolean;
|
|
20
|
+
showDescription: boolean;
|
|
13
21
|
}
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export const defaultVariantConfig = {
|
|
2
|
+
rendersSplitor: true,
|
|
3
|
+
vertical: false,
|
|
4
|
+
showDescription: true
|
|
5
|
+
};
|
|
6
|
+
export const variantConfigs = {
|
|
7
|
+
history: { vertical: true, rendersSplitor: true },
|
|
8
|
+
outline: { rendersSplitor: false, showDescription: false },
|
|
9
|
+
dotted: { rendersSplitor: true, showDescription: true }
|
|
10
|
+
};
|
|
@@ -14,16 +14,117 @@ import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.c
|
|
|
14
14
|
// --u-step-header-font-size
|
|
15
15
|
// --u-step-header-font-weight
|
|
16
16
|
// --u-step-icon-color
|
|
17
|
+
// --u-indicator-border-radius--outline
|
|
18
|
+
// --u-indicator-border-radius-finish--outline
|
|
19
|
+
// --u-indicator-background-finish--outline
|
|
20
|
+
// --u-indicator-icon-color--outline
|
|
21
|
+
// --u-indicator-icon-color-finish--outline
|
|
22
|
+
// --u-indicator-icon-size--outline
|
|
23
|
+
// --u-indicator-index-font-size--outline
|
|
24
|
+
// --u-step-header-font-size--dotted
|
|
25
|
+
// --u-description-text-color--dotted
|
|
26
|
+
// --u-indicator-color--dotted
|
|
27
|
+
// --u-splitor-color--dotted
|
|
28
|
+
// --u-splitor-color-finish--dotted
|
|
29
|
+
// --u-indicator-size--dotted
|
|
30
|
+
// --u-indicator-color-finish--dotted
|
|
17
31
|
export default cB('steps', `
|
|
18
32
|
width: 100%;
|
|
19
33
|
display: flex;
|
|
20
|
-
`, [
|
|
34
|
+
`, [cM('outline-variant', `
|
|
35
|
+
gap: 16px;
|
|
36
|
+
width: fit-content;
|
|
37
|
+
`), cB('step', `
|
|
21
38
|
position: relative;
|
|
22
39
|
display: flex;
|
|
23
40
|
flex: 1;
|
|
24
41
|
`, [cM('disabled', 'cursor: not-allowed'), cM('clickable', `
|
|
25
42
|
cursor: pointer;
|
|
26
|
-
`), c('&:last-child', [cB('step-splitor', 'display: none;')])
|
|
43
|
+
`), c('&:last-child', [cB('step-splitor', 'display: none;')]), cM('outline-variant', [c('&', `
|
|
44
|
+
box-shadow: 0 0 0 2px var(--u-splitor-color);
|
|
45
|
+
display: flex;
|
|
46
|
+
height: var(--u-step-height);
|
|
47
|
+
padding: 0 12px 0 8px;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: 12px;
|
|
50
|
+
border-radius: var(--u-indicator-border-radius--outline);
|
|
51
|
+
`), cB('step-content-header', `
|
|
52
|
+
margin: 0px;
|
|
53
|
+
`), c('>', [cB('step-indicator', `
|
|
54
|
+
box-shadow: none;
|
|
55
|
+
border: none;
|
|
56
|
+
`, [cB('step-indicator-slot', `
|
|
57
|
+
`, [cE('index', `
|
|
58
|
+
font-size: var(--u-indicator-index-font-size--outline);
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 50%;
|
|
61
|
+
left: 50%;
|
|
62
|
+
transform: translate(-50%, -50%);
|
|
63
|
+
`), cB('base-icon', `
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 50%;
|
|
66
|
+
left: 50%;
|
|
67
|
+
transform: translate(-50%, -50%);
|
|
68
|
+
`)])])]), cM('process-status', [cB('step-indicator', `
|
|
69
|
+
background-color: var(--u-indicator-icon-color--outline);
|
|
70
|
+
`, [cB('step-indicator-slot', [cE('index', `
|
|
71
|
+
color: var(--u-indicator-text-color--outline);
|
|
72
|
+
`), cB('base-icon', `
|
|
73
|
+
color: var(--u-indicator-icon-color--outline);
|
|
74
|
+
`)])])]), cM('finish-status', [`
|
|
75
|
+
box-shadow: 0 0 0 2px var(--u-indicator-border-color-finish--outline);
|
|
76
|
+
`, c('>', [cB('step-indicator', `
|
|
77
|
+
border-radius: var(--u-indicator-border-radius-finish--outline);
|
|
78
|
+
background-color: var(--u-indicator-background-finish--outline);
|
|
79
|
+
`, [cB('step-indicator-slot', `
|
|
80
|
+
height: var(--u-indicator-icon-size--outline);
|
|
81
|
+
width: var(--u-indicator-icon-size--outline);
|
|
82
|
+
font-size: var(--u-indicator-icon-size--outline);
|
|
83
|
+
line-height: var(--u-indicator-icon-size--outline);
|
|
84
|
+
`, [cB('base-icon', `
|
|
85
|
+
color: var(--u-indicator-icon-color-finish--outline);
|
|
86
|
+
`)])])])])]), cM('dotted-variant', [c('&', `
|
|
87
|
+
align-items: baseline;
|
|
88
|
+
`, [cM('process-status', [cB('step-indicator', [cB('step-indicator-slot', `
|
|
89
|
+
background-color: var(--u-indicator-color);
|
|
90
|
+
`), cB('step-splitor', `
|
|
91
|
+
background-color: var(--u-indicator-color);
|
|
92
|
+
`)])]), cM('finish-status', [cB('step-indicator', [cB('step-indicator-slot', `
|
|
93
|
+
background-color: var(--u-indicator-color-finish--dotted);
|
|
94
|
+
`), cB('step-splitor', `
|
|
95
|
+
background-color: var(--u-splitor-color-finish--dotted);
|
|
96
|
+
`)])]), cM('error-status', [cB('step-indicator', [cB('step-indicator-slot', `
|
|
97
|
+
background-color: var(--u-indicator-color);
|
|
98
|
+
`), cB('step-splitor', `
|
|
99
|
+
background-color: var(--u-splitor-color);
|
|
100
|
+
`)])])]), cB('step', `
|
|
101
|
+
align-items: baseline;
|
|
102
|
+
`), cB('step-indicator', `
|
|
103
|
+
background-color: transparent;
|
|
104
|
+
box-shadow: none;
|
|
105
|
+
width: var(--u-indicator-size--dotted);
|
|
106
|
+
height: var(--u-indicator-size--dotted);
|
|
107
|
+
`, [cB('step-indicator-slot', `
|
|
108
|
+
background-color: var(--u-indicator-color--dotted);
|
|
109
|
+
border-radius: 50%;
|
|
110
|
+
height: 10px;
|
|
111
|
+
width: 10px;
|
|
112
|
+
`)]), cB('step-content', `
|
|
113
|
+
display: flex;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
margin-left: 6px;
|
|
117
|
+
`, [cB('step-content-header', `
|
|
118
|
+
margin: 0;
|
|
119
|
+
font-size: var(--u-step-header-font-size--dotted);
|
|
120
|
+
font-weight: 500;
|
|
121
|
+
`), cE('description', `
|
|
122
|
+
margin-left: 0;
|
|
123
|
+
color: var(--u-description-text-color--dotted);
|
|
124
|
+
font-size: var(--u-step-header-font-size--dotted);
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
line-height: 24px;
|
|
127
|
+
`)])])]), cB('step-splitor', `
|
|
27
128
|
background-color: var(--u-splitor-color);
|
|
28
129
|
margin-top: calc(var(--u-step-header-font-size) / 2);
|
|
29
130
|
height: 6px;
|
|
@@ -137,4 +238,15 @@ export default cB('steps', `
|
|
|
137
238
|
margin: 0 !important;
|
|
138
239
|
left: calc(var(--u-indicator-size) / 2);
|
|
139
240
|
height: calc(100% - var(--u-indicator-size));
|
|
140
|
-
`)])]), cB('step-content', [cE('description', 'margin-top: 8px;')])])])])
|
|
241
|
+
`)])]), cB('step-content', [cE('description', 'margin-top: 8px;')])])])]), cM('outline-variant', [c('>', [cB('step', `
|
|
242
|
+
margin: 0;
|
|
243
|
+
padding: 0 12px 0 8px;
|
|
244
|
+
height: var(--u-step-height);
|
|
245
|
+
flex: auto;
|
|
246
|
+
`)])]), cM('dotted-variant', [c('>', [cB('step', [cB('step-splitor', `
|
|
247
|
+
background-color: var(--u-splitor-color--dotted);
|
|
248
|
+
bottom: -8px;
|
|
249
|
+
width: 2px;
|
|
250
|
+
left: calc(var(--u-indicator-size--dotted) / 2 - 1px);
|
|
251
|
+
height: calc(100% - var(--u-indicator-size--dotted)/2 - 10px);
|
|
252
|
+
`)])])])])]);
|
|
@@ -3,16 +3,21 @@ import type { Theme } from '../../_mixins';
|
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
4
|
stepHeaderFontSizeSmall: string;
|
|
5
5
|
stepHeaderFontSizeMedium: string;
|
|
6
|
+
stepHeaderFontSizeLarge: string;
|
|
6
7
|
indicatorIndexFontSizeSmall: string;
|
|
7
8
|
indicatorIndexFontSizeMedium: string;
|
|
8
9
|
indicatorSizeSmall: string;
|
|
9
10
|
indicatorSizeMedium: string;
|
|
11
|
+
indicatorSizeDotted: string;
|
|
10
12
|
indicatorIconSizeSmall: string;
|
|
11
13
|
indicatorIconSizeMedium: string;
|
|
14
|
+
indicatorIconSizeOutline: string;
|
|
12
15
|
indicatorIconColorProcess: string;
|
|
13
16
|
indicatorIconColorWait: string;
|
|
14
17
|
indicatorIconColorFinish: string;
|
|
15
18
|
indicatorIconColorError: string;
|
|
19
|
+
indicatorIconColorOutline: string;
|
|
20
|
+
indicatorIconColorFinishDotted: string;
|
|
16
21
|
stepHeaderFontWeight: string;
|
|
17
22
|
indicatorTextColorProcess: string;
|
|
18
23
|
indicatorTextColorWait: string;
|
|
@@ -22,22 +27,31 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
22
27
|
indicatorBorderColorWait: string;
|
|
23
28
|
indicatorBorderColorFinish: string;
|
|
24
29
|
indicatorBorderColorError: string;
|
|
30
|
+
indicatorBorderColorFinishOutline: string;
|
|
31
|
+
indicatorBorderRadiusOutline: string;
|
|
32
|
+
indicatorBorderRadiusFinishOutline: string;
|
|
25
33
|
indicatorColorProcess: string;
|
|
26
34
|
indicatorColorWait: string;
|
|
27
35
|
indicatorColorFinish: string;
|
|
28
36
|
indicatorColorError: string;
|
|
37
|
+
indicatorColorDotted: string;
|
|
38
|
+
indicatorBackgroundFinishOutline: string;
|
|
29
39
|
splitorColorProcess: string;
|
|
30
40
|
splitorColorWait: string;
|
|
31
41
|
splitorColorFinish: string;
|
|
32
42
|
splitorColorError: string;
|
|
43
|
+
splitorColorFinishDotted: string;
|
|
44
|
+
splitorColorDotted: string;
|
|
33
45
|
headerTextColorProcess: string;
|
|
34
46
|
headerTextColorWait: string;
|
|
35
47
|
headerTextColorFinish: string;
|
|
36
48
|
headerTextColorError: string;
|
|
37
49
|
descriptionTextColorProcess: string;
|
|
38
50
|
descriptionTextColorWait: string;
|
|
51
|
+
descriptionTextColorDotted: string;
|
|
39
52
|
descriptionTextColorFinish: string;
|
|
40
53
|
descriptionTextColorError: string;
|
|
54
|
+
stepHeight: string;
|
|
41
55
|
};
|
|
42
56
|
export type StepsThemeVars = ReturnType<typeof self>;
|
|
43
57
|
declare const stepsLight: Theme<'Steps', StepsThemeVars>;
|
package/es/steps/styles/light.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { fontWeightStrong, fontBodySmall, fontBodyMedium, fontBodyLarge, textPrimary, brandPrimary500, staticRed, elementsTertiary, brandPrimary300, textSecondary, staticWhite, staticGreen } = vars;
|
|
3
|
+
const { fontWeightStrong, fontBodySmall, fontBodyMedium, fontBodyLarge, textPrimary, brandPrimary500, staticRed, elementsTertiary, brandPrimary300, textSecondary, staticWhite, staticGreen, brandPrimary50, elementsQuaternary, borderRadius, heightSmall, borderRadiusSmall } = vars;
|
|
4
4
|
return {
|
|
5
5
|
stepHeaderFontSizeSmall: fontBodySmall,
|
|
6
6
|
stepHeaderFontSizeMedium: fontBodyMedium,
|
|
7
|
+
stepHeaderFontSizeLarge: fontBodyLarge,
|
|
7
8
|
indicatorIndexFontSizeSmall: fontBodyMedium,
|
|
8
9
|
indicatorIndexFontSizeMedium: fontBodyLarge,
|
|
9
10
|
indicatorSizeSmall: '22px',
|
|
10
11
|
indicatorSizeMedium: '28px',
|
|
12
|
+
indicatorSizeDotted: '24px',
|
|
11
13
|
indicatorIconSizeSmall: '14px',
|
|
12
14
|
indicatorIconSizeMedium: '18px',
|
|
15
|
+
indicatorIconSizeOutline: '12px',
|
|
13
16
|
indicatorIconColorProcess: textPrimary,
|
|
14
17
|
indicatorIconColorWait: textSecondary,
|
|
15
18
|
indicatorIconColorFinish: staticGreen,
|
|
16
19
|
indicatorIconColorError: staticRed,
|
|
20
|
+
indicatorIconColorOutline: elementsTertiary,
|
|
21
|
+
indicatorIconColorFinishDotted: brandPrimary500,
|
|
17
22
|
stepHeaderFontWeight: fontWeightStrong,
|
|
18
23
|
indicatorTextColorProcess: staticWhite,
|
|
19
24
|
indicatorTextColorWait: textSecondary,
|
|
@@ -23,22 +28,31 @@ export const self = (vars) => {
|
|
|
23
28
|
indicatorBorderColorWait: elementsTertiary,
|
|
24
29
|
indicatorBorderColorFinish: brandPrimary300,
|
|
25
30
|
indicatorBorderColorError: staticRed,
|
|
31
|
+
indicatorBorderColorFinishOutline: elementsQuaternary,
|
|
32
|
+
indicatorBorderRadiusOutline: borderRadius,
|
|
33
|
+
indicatorBorderRadiusFinishOutline: borderRadiusSmall,
|
|
26
34
|
indicatorColorProcess: brandPrimary500,
|
|
27
35
|
indicatorColorWait: elementsTertiary,
|
|
28
36
|
indicatorColorFinish: brandPrimary300,
|
|
29
37
|
indicatorColorError: staticRed,
|
|
38
|
+
indicatorColorDotted: brandPrimary50,
|
|
39
|
+
indicatorBackgroundFinishOutline: brandPrimary50,
|
|
30
40
|
splitorColorProcess: brandPrimary500,
|
|
31
41
|
splitorColorWait: elementsTertiary,
|
|
32
42
|
splitorColorFinish: brandPrimary300,
|
|
33
43
|
splitorColorError: staticRed,
|
|
44
|
+
splitorColorFinishDotted: brandPrimary500,
|
|
45
|
+
splitorColorDotted: brandPrimary50,
|
|
34
46
|
headerTextColorProcess: textPrimary,
|
|
35
47
|
headerTextColorWait: textSecondary,
|
|
36
48
|
headerTextColorFinish: textPrimary,
|
|
37
49
|
headerTextColorError: staticRed,
|
|
38
50
|
descriptionTextColorProcess: textPrimary,
|
|
39
51
|
descriptionTextColorWait: textSecondary,
|
|
52
|
+
descriptionTextColorDotted: textSecondary,
|
|
40
53
|
descriptionTextColorFinish: textPrimary,
|
|
41
|
-
descriptionTextColorError: staticRed
|
|
54
|
+
descriptionTextColorError: staticRed,
|
|
55
|
+
stepHeight: heightSmall
|
|
42
56
|
};
|
|
43
57
|
};
|
|
44
58
|
const stepsLight = {
|
|
@@ -72,6 +72,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
72
72
|
shadowDepth: string;
|
|
73
73
|
fontFamily: string;
|
|
74
74
|
fontFamilyMono: string;
|
|
75
|
+
fontFamilyWixMadeforDisplay: string;
|
|
75
76
|
cubicBezierEaseInOut: string;
|
|
76
77
|
cubicBezierEaseOut: string;
|
|
77
78
|
cubicBezierEaseIn: string;
|
|
@@ -120,6 +121,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
120
121
|
closeLarge: string;
|
|
121
122
|
closeHuge: string;
|
|
122
123
|
closeBorderRadius: string;
|
|
124
|
+
codeBorder: string;
|
|
123
125
|
name: "common";
|
|
124
126
|
}>;
|
|
125
127
|
theme: import("vue").ComputedRef<GlobalThemeOverrides>;
|
package/es/themes/dark.js
CHANGED
|
@@ -85,10 +85,12 @@ import { watermarkDark } from '../watermark/styles';
|
|
|
85
85
|
import { toggleButtonDark } from '../toggle-button/styles';
|
|
86
86
|
import { accountOptionDark } from '../_internal/account-option/styles';
|
|
87
87
|
import { flexDark } from '../flex/styles';
|
|
88
|
+
import { actionCardDark } from '../action-card/styles';
|
|
88
89
|
export const darkTheme = {
|
|
89
90
|
name: 'dark',
|
|
90
91
|
common: commonDark,
|
|
91
92
|
AccountOption: accountOptionDark,
|
|
93
|
+
ActionCard: actionCardDark,
|
|
92
94
|
Alert: alertDark,
|
|
93
95
|
Anchor: anchorDark,
|
|
94
96
|
AutoComplete: autoCompleteDark,
|
package/es/themes/light.js
CHANGED
|
@@ -87,10 +87,12 @@ import { watermarkLight } from '../watermark/styles';
|
|
|
87
87
|
import { toggleButtonLight } from '../toggle-button/styles';
|
|
88
88
|
import { accountOptionLight } from '../_internal/account-option/styles';
|
|
89
89
|
import { flexLight } from '../flex/styles';
|
|
90
|
+
import { actionCardLight } from '../action-card/styles';
|
|
90
91
|
export const lightTheme = {
|
|
91
92
|
name: 'light',
|
|
92
93
|
common: commonLight,
|
|
93
94
|
AccountOption: accountOptionLight,
|
|
95
|
+
ActionCard: actionCardLight,
|
|
94
96
|
Alert: alertLight,
|
|
95
97
|
Anchor: anchorLight,
|
|
96
98
|
AutoComplete: autoCompleteLight,
|
|
@@ -17,6 +17,10 @@ export declare const toggleButtonProps: {
|
|
|
17
17
|
type: PropType<"default" | "primary">;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
+
iconPosition: {
|
|
21
|
+
type: PropType<"top" | "bottom">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
20
24
|
size: PropType<"small" | "medium" | "large">;
|
|
21
25
|
checked: {
|
|
22
26
|
type: PropType<boolean | string | number | undefined>;
|
|
@@ -183,6 +187,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
183
187
|
type: PropType<"default" | "primary">;
|
|
184
188
|
default: string;
|
|
185
189
|
};
|
|
190
|
+
iconPosition: {
|
|
191
|
+
type: PropType<"top" | "bottom">;
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
186
194
|
size: PropType<"small" | "medium" | "large">;
|
|
187
195
|
checked: {
|
|
188
196
|
type: PropType<boolean | string | number | undefined>;
|
|
@@ -391,6 +399,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
391
399
|
type: PropType<"default" | "primary">;
|
|
392
400
|
default: string;
|
|
393
401
|
};
|
|
402
|
+
iconPosition: {
|
|
403
|
+
type: PropType<"top" | "bottom">;
|
|
404
|
+
default: string;
|
|
405
|
+
};
|
|
394
406
|
size: PropType<"small" | "medium" | "large">;
|
|
395
407
|
checked: {
|
|
396
408
|
type: PropType<boolean | string | number | undefined>;
|
|
@@ -547,5 +559,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
547
559
|
checkedValue: string | number | boolean;
|
|
548
560
|
uncheckedValue: string | number | boolean;
|
|
549
561
|
viewType: "default" | "primary";
|
|
562
|
+
iconPosition: "top" | "bottom";
|
|
550
563
|
}, {}>;
|
|
551
564
|
export default _default;
|
|
@@ -14,6 +14,9 @@ export const toggleButtonProps = Object.assign(Object.assign(Object.assign({}, u
|
|
|
14
14
|
}, viewType: {
|
|
15
15
|
type: String,
|
|
16
16
|
default: 'default'
|
|
17
|
+
}, iconPosition: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: 'top'
|
|
17
20
|
} });
|
|
18
21
|
export default defineComponent({
|
|
19
22
|
name: 'ToggleButton',
|
|
@@ -97,9 +100,9 @@ export default defineComponent({
|
|
|
97
100
|
},
|
|
98
101
|
render() {
|
|
99
102
|
var _a, _b, _c;
|
|
100
|
-
const { $slots, mergedClsPrefix, onRender, description, title, footer, mergedChecked, isCheckbox, mergedDisabled } = this;
|
|
103
|
+
const { $slots, mergedClsPrefix, onRender, description, title, footer, mergedChecked, isCheckbox, mergedDisabled, iconPosition } = this;
|
|
101
104
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
102
|
-
const iconNode = (h("div", { class: `${mergedClsPrefix}-toggle-button__icon` }, resolveSlot($slots.icon, () => [
|
|
105
|
+
const iconNode = (h("div", { class: `${mergedClsPrefix}-toggle-button__icon ${mergedClsPrefix}-toggle-button__icon--position-${iconPosition}` }, resolveSlot($slots.icon, () => [
|
|
103
106
|
h(UBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => h(Checkmark, null) })
|
|
104
107
|
])));
|
|
105
108
|
const titleNode = (title || $slots.header) && (h("div", { class: `${mergedClsPrefix}-toggle-button__title` }, ((_a = $slots.header) === null || _a === void 0 ? void 0 : _a.call($slots)) || title));
|
package/es/typography/src/a.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const aProps: {
|
|
|
26
26
|
headerBarWidth5: string;
|
|
27
27
|
headerBarWidth6: string;
|
|
28
28
|
pMargin: string;
|
|
29
|
+
margin: string;
|
|
29
30
|
liMargin: string;
|
|
30
31
|
olPadding: string;
|
|
31
32
|
ulPadding: string;
|
|
@@ -47,6 +48,8 @@ export declare const aProps: {
|
|
|
47
48
|
pTextColor3Depth: string;
|
|
48
49
|
pLineHeight: string;
|
|
49
50
|
pFontSize: string;
|
|
51
|
+
fontSize: string;
|
|
52
|
+
lineHeight: string;
|
|
50
53
|
headerBarColor: string;
|
|
51
54
|
headerBarColorPrimary: string;
|
|
52
55
|
headerBarColorInfo: string;
|
|
@@ -92,6 +95,7 @@ export declare const aProps: {
|
|
|
92
95
|
headerBarWidth5: string;
|
|
93
96
|
headerBarWidth6: string;
|
|
94
97
|
pMargin: string;
|
|
98
|
+
margin: string;
|
|
95
99
|
liMargin: string;
|
|
96
100
|
olPadding: string;
|
|
97
101
|
ulPadding: string;
|
|
@@ -113,6 +117,8 @@ export declare const aProps: {
|
|
|
113
117
|
pTextColor3Depth: string;
|
|
114
118
|
pLineHeight: string;
|
|
115
119
|
pFontSize: string;
|
|
120
|
+
fontSize: string;
|
|
121
|
+
lineHeight: string;
|
|
116
122
|
headerBarColor: string;
|
|
117
123
|
headerBarColorPrimary: string;
|
|
118
124
|
headerBarColorInfo: string;
|
|
@@ -158,6 +164,7 @@ export declare const aProps: {
|
|
|
158
164
|
headerBarWidth5: string;
|
|
159
165
|
headerBarWidth6: string;
|
|
160
166
|
pMargin: string;
|
|
167
|
+
margin: string;
|
|
161
168
|
liMargin: string;
|
|
162
169
|
olPadding: string;
|
|
163
170
|
ulPadding: string;
|
|
@@ -179,6 +186,8 @@ export declare const aProps: {
|
|
|
179
186
|
pTextColor3Depth: string;
|
|
180
187
|
pLineHeight: string;
|
|
181
188
|
pFontSize: string;
|
|
189
|
+
fontSize: string;
|
|
190
|
+
lineHeight: string;
|
|
182
191
|
headerBarColor: string;
|
|
183
192
|
headerBarColorPrimary: string;
|
|
184
193
|
headerBarColorInfo: string;
|
|
@@ -227,6 +236,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
227
236
|
headerBarWidth5: string;
|
|
228
237
|
headerBarWidth6: string;
|
|
229
238
|
pMargin: string;
|
|
239
|
+
margin: string;
|
|
230
240
|
liMargin: string;
|
|
231
241
|
olPadding: string;
|
|
232
242
|
ulPadding: string;
|
|
@@ -248,6 +258,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
248
258
|
pTextColor3Depth: string;
|
|
249
259
|
pLineHeight: string;
|
|
250
260
|
pFontSize: string;
|
|
261
|
+
fontSize: string;
|
|
262
|
+
lineHeight: string;
|
|
251
263
|
headerBarColor: string;
|
|
252
264
|
headerBarColorPrimary: string;
|
|
253
265
|
headerBarColorInfo: string;
|
|
@@ -293,6 +305,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
305
|
headerBarWidth5: string;
|
|
294
306
|
headerBarWidth6: string;
|
|
295
307
|
pMargin: string;
|
|
308
|
+
margin: string;
|
|
296
309
|
liMargin: string;
|
|
297
310
|
olPadding: string;
|
|
298
311
|
ulPadding: string;
|
|
@@ -314,6 +327,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
314
327
|
pTextColor3Depth: string;
|
|
315
328
|
pLineHeight: string;
|
|
316
329
|
pFontSize: string;
|
|
330
|
+
fontSize: string;
|
|
331
|
+
lineHeight: string;
|
|
317
332
|
headerBarColor: string;
|
|
318
333
|
headerBarColorPrimary: string;
|
|
319
334
|
headerBarColorInfo: string;
|
|
@@ -359,6 +374,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
359
374
|
headerBarWidth5: string;
|
|
360
375
|
headerBarWidth6: string;
|
|
361
376
|
pMargin: string;
|
|
377
|
+
margin: string;
|
|
362
378
|
liMargin: string;
|
|
363
379
|
olPadding: string;
|
|
364
380
|
ulPadding: string;
|
|
@@ -380,6 +396,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
380
396
|
pTextColor3Depth: string;
|
|
381
397
|
pLineHeight: string;
|
|
382
398
|
pFontSize: string;
|
|
399
|
+
fontSize: string;
|
|
400
|
+
lineHeight: string;
|
|
383
401
|
headerBarColor: string;
|
|
384
402
|
headerBarColorPrimary: string;
|
|
385
403
|
headerBarColorInfo: string;
|
|
@@ -434,6 +452,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
434
452
|
headerBarWidth5: string;
|
|
435
453
|
headerBarWidth6: string;
|
|
436
454
|
pMargin: string;
|
|
455
|
+
margin: string;
|
|
437
456
|
liMargin: string;
|
|
438
457
|
olPadding: string;
|
|
439
458
|
ulPadding: string;
|
|
@@ -455,6 +474,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
455
474
|
pTextColor3Depth: string;
|
|
456
475
|
pLineHeight: string;
|
|
457
476
|
pFontSize: string;
|
|
477
|
+
fontSize: string;
|
|
478
|
+
lineHeight: string;
|
|
458
479
|
headerBarColor: string;
|
|
459
480
|
headerBarColorPrimary: string;
|
|
460
481
|
headerBarColorInfo: string;
|
|
@@ -500,6 +521,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
500
521
|
headerBarWidth5: string;
|
|
501
522
|
headerBarWidth6: string;
|
|
502
523
|
pMargin: string;
|
|
524
|
+
margin: string;
|
|
503
525
|
liMargin: string;
|
|
504
526
|
olPadding: string;
|
|
505
527
|
ulPadding: string;
|
|
@@ -521,6 +543,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
521
543
|
pTextColor3Depth: string;
|
|
522
544
|
pLineHeight: string;
|
|
523
545
|
pFontSize: string;
|
|
546
|
+
fontSize: string;
|
|
547
|
+
lineHeight: string;
|
|
524
548
|
headerBarColor: string;
|
|
525
549
|
headerBarColorPrimary: string;
|
|
526
550
|
headerBarColorInfo: string;
|
|
@@ -566,6 +590,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
566
590
|
headerBarWidth5: string;
|
|
567
591
|
headerBarWidth6: string;
|
|
568
592
|
pMargin: string;
|
|
593
|
+
margin: string;
|
|
569
594
|
liMargin: string;
|
|
570
595
|
olPadding: string;
|
|
571
596
|
ulPadding: string;
|
|
@@ -587,6 +612,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
587
612
|
pTextColor3Depth: string;
|
|
588
613
|
pLineHeight: string;
|
|
589
614
|
pFontSize: string;
|
|
615
|
+
fontSize: string;
|
|
616
|
+
lineHeight: string;
|
|
590
617
|
headerBarColor: string;
|
|
591
618
|
headerBarColorPrimary: string;
|
|
592
619
|
headerBarColorInfo: string;
|
package/es/typography/src/a.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, defineComponent, computed } from 'vue';
|
|
1
|
+
import { h, defineComponent, computed, warn } from 'vue';
|
|
2
2
|
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
3
|
import { typographyLight } from '../styles';
|
|
4
4
|
import style from './styles/a.cssr';
|
|
@@ -7,6 +7,9 @@ export default defineComponent({
|
|
|
7
7
|
name: 'A',
|
|
8
8
|
props: aProps,
|
|
9
9
|
setup(props) {
|
|
10
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11
|
+
warn('a', 'A component is deprecated, you should use `UText` instead.');
|
|
12
|
+
}
|
|
10
13
|
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
11
14
|
const themeRef = useTheme('Typography', '-a', style, typographyLight, props, mergedClsPrefixRef);
|
|
12
15
|
const cssVarsRef = computed(() => {
|