@eaera-com/eaera-widgets-v2 0.1.63 → 0.1.64
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/design-system/components/_alert.scss +150 -0
- package/dist/design-system/components/_auto-complete.scss +165 -0
- package/dist/design-system/components/_avatar-group.scss +25 -0
- package/dist/design-system/components/_avatar.scss +40 -0
- package/dist/design-system/components/_badge.scss +80 -0
- package/dist/design-system/components/_breadcrumb.scss +91 -0
- package/dist/design-system/components/_button.scss +378 -0
- package/dist/design-system/components/_card.scss +27 -0
- package/dist/design-system/components/_carousel.scss +104 -0
- package/dist/design-system/components/_cascader.scss +705 -0
- package/dist/design-system/components/_checkbox-list.scss +18 -0
- package/dist/design-system/components/_checkbox.scss +117 -0
- package/dist/design-system/components/_collapse.scss +84 -0
- package/dist/design-system/components/_color-picker.scss +195 -0
- package/dist/design-system/components/_country-flag.scss +56 -0
- package/dist/design-system/components/_currency-icon.scss +19 -0
- package/dist/design-system/components/_date-picker.scss +748 -0
- package/dist/design-system/components/_dialog.scss +101 -0
- package/dist/design-system/components/_divider.scss +7 -0
- package/dist/design-system/components/_drawer.scss +41 -0
- package/dist/design-system/components/_dropdown.scss +69 -0
- package/dist/design-system/components/_empty.scss +101 -0
- package/dist/design-system/components/_form.scss +151 -0
- package/dist/design-system/components/_growth-balance-profit-widget.scss +95 -0
- package/dist/design-system/components/_input-code.scss +116 -0
- package/dist/design-system/components/_input-number.scss +233 -0
- package/dist/design-system/components/_input-tag.scss +212 -0
- package/dist/design-system/components/_input.scss +239 -0
- package/dist/design-system/components/_link.scss +64 -0
- package/dist/design-system/components/_loading.scss +89 -0
- package/dist/design-system/components/_menu.scss +578 -0
- package/dist/design-system/components/_message-box.scss +78 -0
- package/dist/design-system/components/_message.scss +187 -0
- package/dist/design-system/components/_monthly-gain-widget.scss +114 -0
- package/dist/design-system/components/_pagination.scss +356 -0
- package/dist/design-system/components/_pl-calendar-widget.scss +171 -0
- package/dist/design-system/components/_popconfirm.scss +57 -0
- package/dist/design-system/components/_popper.scss +267 -0
- package/dist/design-system/components/_progress.scss +153 -0
- package/dist/design-system/components/_radio.scss +68 -0
- package/dist/design-system/components/_segmented.scss +215 -0
- package/dist/design-system/components/_select-country.scss +182 -0
- package/dist/design-system/components/_select.scss +235 -0
- package/dist/design-system/components/_skeleton.scss +146 -0
- package/dist/design-system/components/_slider.scss +142 -0
- package/dist/design-system/components/_spinner.scss +73 -0
- package/dist/design-system/components/_steps.scss +292 -0
- package/dist/design-system/components/_switch.scss +89 -0
- package/dist/design-system/components/_switcher.scss +110 -0
- package/dist/design-system/components/_table.scss +580 -0
- package/dist/design-system/components/_tabs.scss +260 -0
- package/dist/design-system/components/_tag.scss +208 -0
- package/dist/design-system/components/_time-picker.scss +255 -0
- package/dist/design-system/components/_time-select.scss +167 -0
- package/dist/design-system/components/_timeline.scss +99 -0
- package/dist/design-system/components/_tooltip.scss +19 -0
- package/dist/design-system/components/_topbar-menu.scss +67 -0
- package/dist/design-system/components/_trade-volume-widget.scss +114 -0
- package/dist/design-system/components/_transfer.scss +241 -0
- package/dist/design-system/components/_tree-select.scss +198 -0
- package/dist/design-system/components/_tree.scss +108 -0
- package/dist/design-system/components/_upload.scss +226 -0
- package/dist/design-system/themes/aurora/bridges/_element-plus-bridge.scss +58 -0
- package/dist/design-system/themes/aurora/elevation/_elevation-tokens.scss +67 -0
- package/dist/design-system/themes/aurora/elevation/_elevation-utils.scss +94 -0
- package/dist/design-system/themes/aurora/index.scss +133 -0
- package/dist/design-system/themes/aurora/layers/_layer1-palettes.scss +289 -0
- package/dist/design-system/themes/aurora/layers/_layer2-alias.scss +250 -0
- package/dist/design-system/themes/aurora/layers/_layer3-tokens.scss +242 -0
- package/dist/design-system/themes/aurora/themes/_dark-mode.scss +177 -0
- package/dist/design-system/themes/aurora/themes/projects/base.scss +11 -0
- package/dist/design-system/themes/aurora/tokens/_border-radius.scss +28 -0
- package/dist/design-system/themes/aurora/tokens/_control-height.scss +18 -0
- package/dist/design-system/themes/aurora/tokens/_screen-size.scss +10 -0
- package/dist/design-system/themes/aurora/tokens/_spacing.scss +29 -0
- package/dist/design-system/themes/aurora/typography/_typography-primitives.scss +11 -0
- package/dist/design-system/themes/aurora/typography/_typography-semantic.scss +5 -0
- package/dist/design-system/themes/aurora/typography/_typography-tokens.scss +185 -0
- package/dist/design-system/themes/aurora/typography/_typography-utils.scss +375 -0
- package/dist/design-system/themes/core/bridges/_element-plus-bridge.scss +82 -0
- package/dist/design-system/themes/core/elevation/_elevation-tokens.scss +67 -0
- package/dist/design-system/themes/core/elevation/_elevation-utils.scss +94 -0
- package/dist/design-system/themes/core/index.scss +130 -0
- package/dist/design-system/themes/core/layers/_layer1-palettes.scss +289 -0
- package/dist/design-system/themes/core/layers/_layer2-alias.scss +242 -0
- package/dist/design-system/themes/core/layers/_layer3-tokens.scss +220 -0
- package/dist/design-system/themes/core/themes/_dark-mode.scss +165 -0
- package/dist/design-system/themes/core/themes/projects/base.scss +11 -0
- package/dist/design-system/themes/core/tokens/_border-radius.scss +28 -0
- package/dist/design-system/themes/core/tokens/_control-height.scss +18 -0
- package/dist/design-system/themes/core/tokens/_screen-size.scss +10 -0
- package/dist/design-system/themes/core/tokens/_spacing.scss +29 -0
- package/dist/design-system/themes/core/typography/_typography-primitives.scss +11 -0
- package/dist/design-system/themes/core/typography/_typography-semantic.scss +5 -0
- package/dist/design-system/themes/core/typography/_typography-tokens.scss +185 -0
- package/dist/design-system/themes/core/typography/_typography-utils.scss +375 -0
- package/package.json +4 -3
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
@use '../themes/aurora/typography/typography-utils' as typo;
|
|
2
|
+
|
|
3
|
+
// ─── Upload Field ─────────────────────────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
.custom-upload-default {
|
|
6
|
+
// ─── Drag zone ──────────────────────────────────────────────────────────────
|
|
7
|
+
|
|
8
|
+
.el-upload {
|
|
9
|
+
&.is-disabled {
|
|
10
|
+
opacity: 0.5;
|
|
11
|
+
cursor: not-allowed;
|
|
12
|
+
|
|
13
|
+
.el-upload-dragger {
|
|
14
|
+
background-color: var(--er-surface-subtle);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.el-upload-dragger:hover {
|
|
18
|
+
border-color: var(--er-border-default);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus {
|
|
23
|
+
border-color: var(--er-border-default);
|
|
24
|
+
color: var(--er-icon-secondary);
|
|
25
|
+
.el-upload-dragger {
|
|
26
|
+
border-color: var(--er-action-primary-hover);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-dragger {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: var(--er-shape-spacing-150);
|
|
35
|
+
padding: var(--er-shape-spacing-200);
|
|
36
|
+
background: var(--er-surface-subtle);
|
|
37
|
+
border: 1px dashed var(--er-border-default);
|
|
38
|
+
border-radius: var(--er-shape-corner-150);
|
|
39
|
+
text-align: center;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
border-color: var(--er-action-primary-hover);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.is-dragover {
|
|
46
|
+
border-width: 2px;
|
|
47
|
+
border-color: var(--er-action-primary-hover);
|
|
48
|
+
padding: calc(var(--er-shape-spacing-200) - 1px);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// ─── Icon button inside drag zone ───────────────────────────────────────────
|
|
54
|
+
|
|
55
|
+
.upload-field {
|
|
56
|
+
&__icon {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
width: var(--er-control-height-lg);
|
|
62
|
+
height: var(--er-control-height-lg);
|
|
63
|
+
background: var(--er-action-neutral-subtle-default);
|
|
64
|
+
border: 1px solid var(--er-border-default);
|
|
65
|
+
border-radius: var(--er-shape-corner-150);
|
|
66
|
+
color: var(--er-icon-secondary);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__title {
|
|
70
|
+
@include typo.title-sm;
|
|
71
|
+
color: var(--er-text-secondary);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__description {
|
|
75
|
+
@include typo.body-sm;
|
|
76
|
+
color: var(--er-text-muted);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&__tip {
|
|
80
|
+
@include typo.body-sm;
|
|
81
|
+
color: var(--er-text-secondary);
|
|
82
|
+
margin-top: var(--er-shape-spacing-100);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ─── Picture-card (80×80) ───────────────────────────────────────────────────
|
|
87
|
+
.el-upload-list--picture-card {
|
|
88
|
+
gap: var(--er-shape-spacing-50);
|
|
89
|
+
|
|
90
|
+
.el-upload-list__item {
|
|
91
|
+
width: 80px;
|
|
92
|
+
height: 80px;
|
|
93
|
+
border: none;
|
|
94
|
+
border-radius: var(--er-shape-corner-150);
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.el-upload--picture-card {
|
|
100
|
+
width: 80px;
|
|
101
|
+
height: 80px;
|
|
102
|
+
background: var(--er-surface-subtle);
|
|
103
|
+
border: 1px dashed var(--er-border-default);
|
|
104
|
+
border-radius: var(--er-shape-corner-100);
|
|
105
|
+
color: var(--er-icon-secondary);
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
border-color: var(--er-action-primary-hover);
|
|
109
|
+
color: var(--er-icon-secondary);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ─── Upload list ─────────────────────────────────────────────────────────────
|
|
114
|
+
|
|
115
|
+
.el-upload-list {
|
|
116
|
+
margin-top: var(--er-shape-spacing-100);
|
|
117
|
+
padding: 0;
|
|
118
|
+
|
|
119
|
+
&.el-upload-list--text {
|
|
120
|
+
.el-upload-list__item {
|
|
121
|
+
border-radius: var(--er-shape-corner-150);
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
background: unset;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.is-disabled {
|
|
130
|
+
opacity: 0.5;
|
|
131
|
+
* {
|
|
132
|
+
cursor: not-allowed;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__item-info {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex: 1;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
min-width: 0;
|
|
141
|
+
margin-left: 0;
|
|
142
|
+
width: auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&__item-name {
|
|
146
|
+
@include typo.label-lg;
|
|
147
|
+
color: var(--er-text-primary);
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
text-overflow: ellipsis;
|
|
150
|
+
white-space: nowrap;
|
|
151
|
+
|
|
152
|
+
&:hover,
|
|
153
|
+
&:focus {
|
|
154
|
+
color: var(--er-text-primary);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// ─── File item ───────────────────────────────────────────────────────────────
|
|
160
|
+
|
|
161
|
+
.upload-file-item {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
gap: var(--er-shape-spacing-100);
|
|
165
|
+
width: 100%;
|
|
166
|
+
|
|
167
|
+
&__icon {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
flex-shrink: 0;
|
|
172
|
+
color: var(--er-icon-secondary);
|
|
173
|
+
padding: var(--er-shape-spacing-100);
|
|
174
|
+
border-radius: var(--er-shape-corner-100);
|
|
175
|
+
|
|
176
|
+
&.file {
|
|
177
|
+
background: var(--er-accent-50);
|
|
178
|
+
|
|
179
|
+
svg {
|
|
180
|
+
stroke: var(--er-accent-500);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&.image {
|
|
185
|
+
background: var(--er-teal-50);
|
|
186
|
+
|
|
187
|
+
svg {
|
|
188
|
+
stroke: var(--er-secondary-500);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&.block {
|
|
194
|
+
display: flex !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&__info {
|
|
198
|
+
display: flex;
|
|
199
|
+
flex: 1;
|
|
200
|
+
|
|
201
|
+
&.block {
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.compact {
|
|
206
|
+
flex-direction: row;
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: var(--er-shape-spacing-50);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&__name {
|
|
213
|
+
@include typo.label-lg;
|
|
214
|
+
color: var(--er-text-primary);
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
text-overflow: ellipsis;
|
|
217
|
+
max-width: 250px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&__size {
|
|
221
|
+
@include typo.body-sm;
|
|
222
|
+
color: var(--er-text-muted);
|
|
223
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// ELEMENT PLUS BRIDGE
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Maps EAERA Design System tokens (--er-*) to Element Plus CSS variables (--el-*)
|
|
5
|
+
// IMPORTANT: Only uses colors from Layer 3 Component Tokens
|
|
6
|
+
// ============================================================================
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
10
|
+
// GLOBAL COLORS (from Layer 3)
|
|
11
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
12
|
+
// Primary semantic colors
|
|
13
|
+
--el-color-primary: var(--er-action-primary-default); // #3B82F6 (primary-500)
|
|
14
|
+
--el-color-success: var(--er-text-success); // #10B981 (success-500)
|
|
15
|
+
--el-color-warning: var(--er-text-warning); // #F59E0B (warning-500)
|
|
16
|
+
--el-color-danger: var(--er-text-danger); // #EF4444 (danger-500)
|
|
17
|
+
--el-color-error: var(--er-text-danger); // #EF4444 (danger-500)
|
|
18
|
+
--el-color-info: var(--er-text-information); // #0EA5E9 (information-500)
|
|
19
|
+
|
|
20
|
+
// Background colors
|
|
21
|
+
--el-bg-color: var(--er-surface-page); // #FFFFFF (neutral-white)
|
|
22
|
+
--el-bg-color-page: var(--er-surface-page); // #FFFFFF (neutral-white)
|
|
23
|
+
|
|
24
|
+
// Floating-panel background (dropdown menus, select poppers, popconfirm,
|
|
25
|
+
// tooltips). EP defaults this to #ffffff and it was never mapped, so every
|
|
26
|
+
// overlay panel washed out white in dark mode. surface/elevated resolves to
|
|
27
|
+
// #FFFFFF (light) / #18181B (dark).
|
|
28
|
+
--el-bg-color-overlay: var(--er-surface-elevated);
|
|
29
|
+
|
|
30
|
+
// Overlay / loading mask — white in light mode; overridden to neutral-950 in
|
|
31
|
+
// dark mode (themes/_dark-mode.scss). Fixes the white loading washout.
|
|
32
|
+
--el-mask-color: rgba(255, 255, 255, 0.9);
|
|
33
|
+
|
|
34
|
+
// Text colors — EP defaults these to light-mode values (#303133, #606266,
|
|
35
|
+
// #909399, #a8abb2). Without mapping, every overlay (dropdowns, selects,
|
|
36
|
+
// popconfirm) shows light grey/white text on the dark elevated surface.
|
|
37
|
+
--el-text-color-primary: var(--er-text-primary);
|
|
38
|
+
--el-text-color-regular: var(--er-text-secondary);
|
|
39
|
+
--el-text-color-secondary: var(--er-text-muted);
|
|
40
|
+
--el-text-color-placeholder: var(--er-text-muted);
|
|
41
|
+
--el-text-color-disabled: var(--er-text-muted);
|
|
42
|
+
|
|
43
|
+
// Disabled state
|
|
44
|
+
--el-disabled-bg-color: var(--er-surface-muted); // #A1A1AA (neutral-400)
|
|
45
|
+
--el-disabled-text-color: var(--er-text-muted); // #D4D4D8 (neutral-300)
|
|
46
|
+
|
|
47
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
48
|
+
// ELEVATION (from elevation tokens)
|
|
49
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
50
|
+
--el-box-shadow: var(--er-elevation-soft-down); // Default shadow
|
|
51
|
+
--el-box-shadow-light: var(--er-elevation-soft-down);
|
|
52
|
+
--el-box-shadow-dark: var(--er-elevation-strong-down);
|
|
53
|
+
|
|
54
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
55
|
+
// TYPOGRAPHY (font family only, from Layer 3)
|
|
56
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
57
|
+
--el-font-family: var(--er-font-brand);
|
|
58
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// ELEVATION TOKENS (Box Shadows)
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Source: Figma UI Kit Production — node-id=40237-4324
|
|
5
|
+
// 8 elevation types: level 1–4 (down), top, both, focus, inner
|
|
6
|
+
// ============================================================================
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
10
|
+
// SHADOW COLOR TOKENS
|
|
11
|
+
// ambient-01..05: progressively darker drop shadows
|
|
12
|
+
// highlight-01..04: white highlights (for dark-mode lift) + inner
|
|
13
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
14
|
+
--er-shadow-ambient-01: rgba(0, 0, 0, 0.04);
|
|
15
|
+
--er-shadow-ambient-02: rgba(0, 0, 0, 0.06);
|
|
16
|
+
--er-shadow-ambient-03: rgba(0, 0, 0, 0.08);
|
|
17
|
+
--er-shadow-ambient-04: rgba(0, 0, 0, 0.1);
|
|
18
|
+
--er-shadow-ambient-05: rgba(0, 0, 0, 0.12);
|
|
19
|
+
--er-shadow-highlight-01: rgba(255, 255, 255, 0);
|
|
20
|
+
--er-shadow-highlight-02: rgba(255, 255, 255, 0);
|
|
21
|
+
--er-shadow-highlight-03: rgba(255, 255, 255, 0);
|
|
22
|
+
|
|
23
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
24
|
+
// ELEVATION — default direction (downward)
|
|
25
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
26
|
+
|
|
27
|
+
// level 1 — subtle card / list item
|
|
28
|
+
--er-elevation-level-1:
|
|
29
|
+
0px 1px 2px 0px var(--er-shadow-ambient-01), 0px 2px 6px 0px var(--er-shadow-ambient-02),
|
|
30
|
+
0px -1px 2px 0px var(--er-shadow-highlight-01);
|
|
31
|
+
|
|
32
|
+
// level 2 — popovers, dropdowns
|
|
33
|
+
--er-elevation-level-2:
|
|
34
|
+
0px 2px 4px 0px var(--er-shadow-ambient-02), 0px 6px 16px 0px var(--er-shadow-ambient-03),
|
|
35
|
+
0px -1px 3px 0px var(--er-shadow-highlight-01);
|
|
36
|
+
|
|
37
|
+
// level 3 — dialogs, modals
|
|
38
|
+
--er-elevation-level-3:
|
|
39
|
+
0px 4px 8px 0px var(--er-shadow-ambient-03), 0px 12px 28px 0px var(--er-shadow-ambient-04),
|
|
40
|
+
0px -1px 4px 0px var(--er-shadow-highlight-02);
|
|
41
|
+
|
|
42
|
+
// level 4 — drawers, prominent overlays
|
|
43
|
+
--er-elevation-level-4:
|
|
44
|
+
0px 8px 16px 0px var(--er-shadow-ambient-04), 0px 20px 48px 0px var(--er-shadow-ambient-05),
|
|
45
|
+
0px -2px 6px 0px var(--er-shadow-highlight-03);
|
|
46
|
+
|
|
47
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
48
|
+
// ELEVATION — special directions
|
|
49
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
50
|
+
|
|
51
|
+
// top — upward shadow (bottom sheets, toast)
|
|
52
|
+
--er-elevation-top:
|
|
53
|
+
0px -6px 12px 0px var(--er-shadow-ambient-03), 0px -16px 32px 0px var(--er-shadow-ambient-04),
|
|
54
|
+
0px 1px 3px 0px var(--er-shadow-highlight-01);
|
|
55
|
+
|
|
56
|
+
// both — bidirectional (sticky headers, floating bars)
|
|
57
|
+
--er-elevation-both:
|
|
58
|
+
0px 10px 24px 0px var(--er-shadow-ambient-03), 0px -6px 16px 0px var(--er-shadow-ambient-02),
|
|
59
|
+
0px 0px 40px 0px var(--er-shadow-ambient-04), 0px -1px 3px 0px var(--er-shadow-highlight-02);
|
|
60
|
+
|
|
61
|
+
// focus — focused interactive elements
|
|
62
|
+
--er-elevation-focus:
|
|
63
|
+
0px 0px 0px 1px var(--er-shadow-ambient-03), 0px 8px 24px 0px var(--er-shadow-ambient-04);
|
|
64
|
+
|
|
65
|
+
// inner — inset / pressed state
|
|
66
|
+
--er-elevation-inner: inset 0px 2px 4px 0px var(--er-shadow-ambient-02);
|
|
67
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// ELEVATION UTILITIES (Mixins & Classes)
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// SCSS mixins and utility classes for elevation system
|
|
5
|
+
// Source: Figma UI Kit Production — node-id=40237-4324
|
|
6
|
+
// ============================================================================
|
|
7
|
+
|
|
8
|
+
@use 'elevation-tokens' as *;
|
|
9
|
+
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// ELEVATION MIXINS
|
|
12
|
+
// ============================================================================
|
|
13
|
+
|
|
14
|
+
@mixin elevation-level-1 {
|
|
15
|
+
box-shadow: var(--er-elevation-level-1) !important;
|
|
16
|
+
}
|
|
17
|
+
@mixin elevation-level-2 {
|
|
18
|
+
box-shadow: var(--er-elevation-level-2) !important;
|
|
19
|
+
}
|
|
20
|
+
@mixin elevation-level-3 {
|
|
21
|
+
box-shadow: var(--er-elevation-level-3) !important;
|
|
22
|
+
}
|
|
23
|
+
@mixin elevation-level-4 {
|
|
24
|
+
box-shadow: var(--er-elevation-level-4) !important;
|
|
25
|
+
}
|
|
26
|
+
@mixin elevation-top {
|
|
27
|
+
box-shadow: var(--er-elevation-top) !important;
|
|
28
|
+
}
|
|
29
|
+
@mixin elevation-both {
|
|
30
|
+
box-shadow: var(--er-elevation-both) !important;
|
|
31
|
+
}
|
|
32
|
+
@mixin elevation-focus {
|
|
33
|
+
box-shadow: var(--er-elevation-focus) !important;
|
|
34
|
+
}
|
|
35
|
+
@mixin elevation-inner {
|
|
36
|
+
box-shadow: var(--er-elevation-inner) !important;
|
|
37
|
+
}
|
|
38
|
+
@mixin elevation-none {
|
|
39
|
+
box-shadow: none !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// ============================================================================
|
|
43
|
+
// UTILITY CLASSES
|
|
44
|
+
// ============================================================================
|
|
45
|
+
|
|
46
|
+
.elevation-level-1 {
|
|
47
|
+
@include elevation-level-1;
|
|
48
|
+
}
|
|
49
|
+
.elevation-level-2 {
|
|
50
|
+
@include elevation-level-2;
|
|
51
|
+
}
|
|
52
|
+
.elevation-level-3 {
|
|
53
|
+
@include elevation-level-3;
|
|
54
|
+
}
|
|
55
|
+
.elevation-level-4 {
|
|
56
|
+
@include elevation-level-4;
|
|
57
|
+
}
|
|
58
|
+
.elevation-top {
|
|
59
|
+
@include elevation-top;
|
|
60
|
+
}
|
|
61
|
+
.elevation-both {
|
|
62
|
+
@include elevation-both;
|
|
63
|
+
}
|
|
64
|
+
.elevation-focus {
|
|
65
|
+
@include elevation-focus;
|
|
66
|
+
}
|
|
67
|
+
.elevation-inner {
|
|
68
|
+
@include elevation-inner;
|
|
69
|
+
}
|
|
70
|
+
.elevation-none {
|
|
71
|
+
@include elevation-none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// ============================================================================
|
|
75
|
+
// INTERACTIVE HELPERS
|
|
76
|
+
// ============================================================================
|
|
77
|
+
|
|
78
|
+
@mixin elevation-transition($duration: 0.2s) {
|
|
79
|
+
transition: box-shadow $duration ease-in-out;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.elevation-transition {
|
|
83
|
+
@include elevation-transition;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Interactive hover: level-1 → level-2
|
|
87
|
+
.elevation-interactive {
|
|
88
|
+
@include elevation-level-1;
|
|
89
|
+
@include elevation-transition;
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
@include elevation-level-2;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// DESIGN SYSTEM - MAIN ENTRY POINT
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Re-exports all design tokens and components
|
|
5
|
+
// Updated to use @forward (Sass 3.0.0 compatible)
|
|
6
|
+
// ============================================================================
|
|
7
|
+
|
|
8
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
9
|
+
// LAYER 1: Tonal Palettes (primitive colors - never changes)
|
|
10
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
11
|
+
@forward './layers/layer1-palettes';
|
|
12
|
+
|
|
13
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
14
|
+
// LAYER 2: Alias Tokens (semantic names - can override per project)
|
|
15
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
16
|
+
@forward './layers/layer2-alias';
|
|
17
|
+
|
|
18
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
19
|
+
// LAYER 3: Component Tokens (usage-specific - uses Layer 2)
|
|
20
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
21
|
+
@forward './layers/layer3-tokens';
|
|
22
|
+
|
|
23
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
24
|
+
// TOKENS: Border Radius (shape/corner/*)
|
|
25
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
26
|
+
@forward './tokens/border-radius';
|
|
27
|
+
@forward './tokens/control-height';
|
|
28
|
+
@forward './tokens/screen-size';
|
|
29
|
+
@forward './tokens/spacing';
|
|
30
|
+
|
|
31
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
32
|
+
// TYPOGRAPHY SYSTEM
|
|
33
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
34
|
+
@forward './typography/typography-primitives';
|
|
35
|
+
@forward './typography/typography-semantic';
|
|
36
|
+
@forward './typography/typography-tokens';
|
|
37
|
+
@forward './typography/typography-utils';
|
|
38
|
+
|
|
39
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
40
|
+
// ELEVATION SYSTEM
|
|
41
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
42
|
+
@forward './elevation/elevation-tokens';
|
|
43
|
+
@forward './elevation/elevation-utils';
|
|
44
|
+
|
|
45
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
46
|
+
// COMPONENTS
|
|
47
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
48
|
+
@forward '../../components/popper';
|
|
49
|
+
@forward '../../components/alert';
|
|
50
|
+
@forward '../../components/badge';
|
|
51
|
+
@forward '../../components/button';
|
|
52
|
+
@forward '../../components/checkbox';
|
|
53
|
+
@forward '../../components/checkbox-list';
|
|
54
|
+
@forward '../../components/dialog';
|
|
55
|
+
@forward '../../components/divider';
|
|
56
|
+
@forward '../../components/input';
|
|
57
|
+
@forward '../../components/input-tag';
|
|
58
|
+
@forward '../../components/input-number';
|
|
59
|
+
@forward '../../components/input-code';
|
|
60
|
+
@forward '../../components/progress';
|
|
61
|
+
@forward '../../components/radio';
|
|
62
|
+
@forward '../../components/switch';
|
|
63
|
+
@forward '../../components/switcher';
|
|
64
|
+
@forward '../../components/tag';
|
|
65
|
+
@forward '../../components/tabs';
|
|
66
|
+
@forward '../../components/topbar-menu';
|
|
67
|
+
@forward '../../components/timeline';
|
|
68
|
+
@forward '../../components/breadcrumb';
|
|
69
|
+
@forward '../../components/segmented';
|
|
70
|
+
@forward '../../components/avatar';
|
|
71
|
+
@forward '../../components/avatar-group';
|
|
72
|
+
@forward '../../components/drawer';
|
|
73
|
+
@forward '../../components/popconfirm';
|
|
74
|
+
@forward '../../components/auto-complete';
|
|
75
|
+
@forward '../../components/collapse';
|
|
76
|
+
@forward '../../components/select';
|
|
77
|
+
@forward '../../components/loading';
|
|
78
|
+
@forward '../../components/spinner';
|
|
79
|
+
@forward '../../components/link';
|
|
80
|
+
@forward '../../components/slider';
|
|
81
|
+
@forward '../../components/message';
|
|
82
|
+
@forward '../../components/menu';
|
|
83
|
+
@forward '../../components/tooltip';
|
|
84
|
+
@forward '../../components/skeleton';
|
|
85
|
+
@forward '../../components/carousel';
|
|
86
|
+
@forward '../../components/color-picker';
|
|
87
|
+
@forward '../../components/date-picker';
|
|
88
|
+
@forward '../../components/tree';
|
|
89
|
+
@forward '../../components/tree-select';
|
|
90
|
+
@forward '../../components/pagination';
|
|
91
|
+
@forward '../../components/upload';
|
|
92
|
+
@forward '../../components/time-picker';
|
|
93
|
+
@forward '../../components/time-select';
|
|
94
|
+
@forward '../../components/card';
|
|
95
|
+
@forward '../../components/form';
|
|
96
|
+
@forward '../../components/cascader';
|
|
97
|
+
@forward '../../components/dropdown';
|
|
98
|
+
@forward '../../components/empty';
|
|
99
|
+
@forward '../../components/message-box';
|
|
100
|
+
@forward '../../components/steps';
|
|
101
|
+
@forward '../../components/table';
|
|
102
|
+
@forward '../../components/transfer';
|
|
103
|
+
@forward '../../components/select-country';
|
|
104
|
+
@forward '../../components/country-flag';
|
|
105
|
+
@forward '../../components/currency-icon';
|
|
106
|
+
@forward '../../components/growth-balance-profit-widget';
|
|
107
|
+
@forward '../../components/monthly-gain-widget';
|
|
108
|
+
@forward '../../components/pl-calendar-widget';
|
|
109
|
+
@forward '../../components/trade-volume-widget';
|
|
110
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
111
|
+
// BRIDGES: Element Plus CSS Variables
|
|
112
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
113
|
+
@forward './bridges/element-plus-bridge';
|
|
114
|
+
|
|
115
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
116
|
+
// THEMES: Dark Mode Support
|
|
117
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
118
|
+
@forward './themes/dark-mode';
|
|
119
|
+
|
|
120
|
+
// ============================================================================
|
|
121
|
+
// USAGE IN YOUR APP
|
|
122
|
+
// ============================================================================
|
|
123
|
+
// Import this file once in your main entry point:
|
|
124
|
+
// import '@eaera/design-system';
|
|
125
|
+
//
|
|
126
|
+
// For project-specific themes:
|
|
127
|
+
// import '@eaera/design-system/themes/projects/clientportal';
|
|
128
|
+
// ============================================================================
|
|
129
|
+
|
|
130
|
+
* {
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
font-family: var(--er-font-brand);
|
|
133
|
+
}
|