@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,171 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// EaeraWidgetPLCalendar — P/L Calendar widget styles
|
|
3
|
+
// Design source: Figma 7DD5x9AmpudFQRF9mjSclE node 2093-100492
|
|
4
|
+
// Uses --er-* custom properties (host app must provide design tokens)
|
|
5
|
+
// ============================================================================
|
|
6
|
+
|
|
7
|
+
.pl-calendar-widget {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-self: stretch;
|
|
11
|
+
background: var(--er-surface-container);
|
|
12
|
+
border: 1px solid var(--er-border-default);
|
|
13
|
+
border-radius: var(--er-shape-corner-200);
|
|
14
|
+
padding: var(--er-shape-spacing-200);
|
|
15
|
+
gap: var(--er-shape-spacing-200);
|
|
16
|
+
|
|
17
|
+
// ── Header ───────────────────────────────────────────────────────────────
|
|
18
|
+
&__header {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-self: stretch;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
padding: var(--er-shape-spacing-100) 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__title {
|
|
27
|
+
color: var(--er-text-primary);
|
|
28
|
+
font-family: var(--er-typo-title-md-font);
|
|
29
|
+
font-size: var(--er-typo-title-md-sz);
|
|
30
|
+
line-height: var(--er-typo-title-md-line-hg);
|
|
31
|
+
font-weight: var(--er-typo-title-md-wg-em);
|
|
32
|
+
letter-spacing: var(--er-typo-title-md-tracking);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__nav {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: flex-end;
|
|
39
|
+
gap: var(--er-shape-spacing-100);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__month-label {
|
|
43
|
+
color: var(--er-text-primary);
|
|
44
|
+
font-family: var(--er-typo-label-lg-font);
|
|
45
|
+
font-size: var(--er-typo-label-lg-sz);
|
|
46
|
+
line-height: var(--er-typo-label-lg-line-hg);
|
|
47
|
+
font-weight: var(--er-typo-label-lg-wg);
|
|
48
|
+
letter-spacing: var(--er-typo-label-lg-tracking);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__nav-btn {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
width: 32px;
|
|
56
|
+
height: 32px;
|
|
57
|
+
border: none;
|
|
58
|
+
border-radius: var(--er-shape-corner-100);
|
|
59
|
+
background: transparent;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
color: var(--er-text-secondary);
|
|
62
|
+
transition:
|
|
63
|
+
background-color 0.15s ease,
|
|
64
|
+
color 0.15s ease;
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
background: var(--er-surface-muted);
|
|
68
|
+
color: var(--er-text-primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:active {
|
|
72
|
+
background: var(--er-border-subtle);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__nav-icon {
|
|
77
|
+
width: 20px;
|
|
78
|
+
height: 20px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ── Body (calendar grid) ─────────────────────────────────────────────────
|
|
82
|
+
&__body {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
align-self: stretch;
|
|
86
|
+
min-height: 452px;
|
|
87
|
+
padding: 0 var(--er-shape-spacing-300) var(--er-shape-spacing-200);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ── Day headers row ──────────────────────────────────────────────────────
|
|
91
|
+
&__day-headers {
|
|
92
|
+
display: grid;
|
|
93
|
+
grid-template-columns: repeat(7, 1fr);
|
|
94
|
+
align-self: stretch;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&__day-header {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
padding: var(--er-shape-spacing-150) 0;
|
|
102
|
+
font-size: 11px;
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
letter-spacing: 0.02em;
|
|
105
|
+
text-transform: uppercase;
|
|
106
|
+
color: var(--er-text-muted);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// ── Calendar grid (date cells) ───────────────────────────────────────────
|
|
110
|
+
&__grid {
|
|
111
|
+
display: grid;
|
|
112
|
+
grid-template-columns: repeat(7, 1fr);
|
|
113
|
+
grid-auto-rows: 1fr;
|
|
114
|
+
flex: 1 1 0;
|
|
115
|
+
align-self: stretch;
|
|
116
|
+
gap: 1px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&__cell {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
min-height: 0;
|
|
123
|
+
padding: var(--er-shape-spacing-100);
|
|
124
|
+
border: 1px solid var(--er-border-subtle);
|
|
125
|
+
|
|
126
|
+
// States
|
|
127
|
+
&--profit {
|
|
128
|
+
background: var(--er-surface-success-subtle);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&--loss {
|
|
132
|
+
background: var(--er-surface-danger-subtle);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&--neutral {
|
|
136
|
+
background: var(--er-surface-container);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&--weekend {
|
|
140
|
+
background: var(--er-surface-subtle);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&__date {
|
|
145
|
+
color: var(--er-text-muted);
|
|
146
|
+
font-family: var(--er-typo-body-sm-font);
|
|
147
|
+
font-size: var(--er-typo-body-sm-sz);
|
|
148
|
+
line-height: var(--er-typo-body-sm-line-hg);
|
|
149
|
+
font-weight: var(--er-typo-body-sm-wg);
|
|
150
|
+
letter-spacing: var(--er-typo-body-sm-tracking);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&__spacer {
|
|
154
|
+
flex: 1 1 auto;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&__amount {
|
|
158
|
+
align-self: flex-end;
|
|
159
|
+
font-size: 13px;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
line-height: 1.2;
|
|
162
|
+
|
|
163
|
+
&--profit {
|
|
164
|
+
color: var(--er-text-success);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&--loss {
|
|
168
|
+
color: var(--er-text-danger);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use '../themes/aurora/elevation/elevation-utils' as elevation;
|
|
2
|
+
@use '../themes/aurora/typography/typography-utils' as typo;
|
|
3
|
+
|
|
4
|
+
// ============================================================================
|
|
5
|
+
// POPCONFIRM — Design System Overrides
|
|
6
|
+
// Figma: https://www.figma.com/design/HSOs8VcK5CKL8s15AqD42x/UI-KIT-CORE?node-id=40239-2328
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// Popup panel: bg white, border subtle, border-radius sm (8px), padding 8px,
|
|
9
|
+
// box-shadow soft, width 180px
|
|
10
|
+
// Title row: icon 16px + 8px gap + text 12px/secondary
|
|
11
|
+
// Action row: Cancel (bordered h-24 px-8 r-xs) + Confirm (primary h-24 px-8 r-xs)
|
|
12
|
+
// ============================================================================
|
|
13
|
+
|
|
14
|
+
// ── Popover panel that contains popconfirm content
|
|
15
|
+
// El-Plus teleports the panel to <body> with class .el-popper.is-light
|
|
16
|
+
// :has() targets the panel only when it contains popconfirm content
|
|
17
|
+
.el-popper.custom-popper {
|
|
18
|
+
background: var(--er-surface-container);
|
|
19
|
+
border: 1px solid var(--er-border-subtle);
|
|
20
|
+
border-radius: var(--er-shape-corner-100);
|
|
21
|
+
padding: var(--er-shape-spacing-100);
|
|
22
|
+
@include typo.body-sm;
|
|
23
|
+
|
|
24
|
+
// Arrow inherits the panel border color
|
|
25
|
+
> .el-popper__arrow::before {
|
|
26
|
+
border-color: var(--er-border-subtle);
|
|
27
|
+
background: var(--er-surface-container);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Action row
|
|
31
|
+
.el-popconfirm__action {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: flex-end;
|
|
35
|
+
gap: var(--er-shape-spacing-100);
|
|
36
|
+
margin-top: var(--er-shape-spacing-100);
|
|
37
|
+
|
|
38
|
+
.custom-button.el-button {
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.el-popconfirm__main {
|
|
44
|
+
color: var(--er-text-secondary);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.el-popconfirm__icon {
|
|
48
|
+
margin-right: var(--er-shape-spacing-100) !important;
|
|
49
|
+
width: var(--er-control-height-xxs) !important;
|
|
50
|
+
height: var(--er-control-height-xxs) !important;
|
|
51
|
+
|
|
52
|
+
svg {
|
|
53
|
+
width: var(--er-control-height-xxs) !important;
|
|
54
|
+
height: var(--er-control-height-xxs) !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
@use '../themes/aurora/typography/typography-utils' as typo;
|
|
2
|
+
@use '../themes/aurora/elevation/elevation-utils' as elevation;
|
|
3
|
+
|
|
4
|
+
@mixin dropdown-item($height, $padding-x, $radius, $padding-y, $icon-size) {
|
|
5
|
+
padding: $padding-y 0 !important;
|
|
6
|
+
|
|
7
|
+
.el-scrollbar__view,
|
|
8
|
+
.el-dropdown-menu {
|
|
9
|
+
padding: 0 $padding-y;
|
|
10
|
+
|
|
11
|
+
li,
|
|
12
|
+
.el-dropdown-menu__item {
|
|
13
|
+
height: $height;
|
|
14
|
+
min-height: $height;
|
|
15
|
+
padding: 0 $padding-x;
|
|
16
|
+
border-radius: $radius;
|
|
17
|
+
|
|
18
|
+
@content;
|
|
19
|
+
|
|
20
|
+
&.is-selected {
|
|
21
|
+
.custom-popper__option-text{
|
|
22
|
+
color: var(--er-text-brand);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.custom-popper__option-prefix {
|
|
26
|
+
color: var(--er-icon-brand);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.el-tree-node__content,
|
|
32
|
+
.el-tree-node .is-current > .el-tree-node__content {
|
|
33
|
+
height: $height;
|
|
34
|
+
min-height: $height;
|
|
35
|
+
padding: 0;
|
|
36
|
+
border-radius: $radius;
|
|
37
|
+
display: flex;
|
|
38
|
+
gap: var(--er-shape-corner-100);
|
|
39
|
+
|
|
40
|
+
@content;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.custom-popper__option-prefix svg,
|
|
44
|
+
.custom-popper__option-suffix svg {
|
|
45
|
+
width: $icon-size;
|
|
46
|
+
height: $icon-size;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.custom-popper.el-popper {
|
|
53
|
+
background: var(--er-surface-elevated) !important;
|
|
54
|
+
border: 1px solid var(--er-border-subtle) !important;
|
|
55
|
+
@include elevation.elevation-level-2;
|
|
56
|
+
|
|
57
|
+
.el-select__selection {
|
|
58
|
+
padding: 0 var(--er-shape-spacing-100);
|
|
59
|
+
|
|
60
|
+
.el-select__selected-item .el-tag {
|
|
61
|
+
gap: var(--er-shape-spacing-50);
|
|
62
|
+
border-radius: var(--er-shape-corner-50);
|
|
63
|
+
background-color: var(--er-surface-muted);
|
|
64
|
+
height: var(--er-control-height-xs);
|
|
65
|
+
padding: 0 var(--er-shape-spacing-100);
|
|
66
|
+
|
|
67
|
+
.el-tag__content {
|
|
68
|
+
@include typo.label-md;
|
|
69
|
+
color: var(--er-text-secondary);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.el-tag__close {
|
|
73
|
+
width: 12px;
|
|
74
|
+
height: 12px;
|
|
75
|
+
color: var(--er-icon-secondary);
|
|
76
|
+
margin-left: var(--er-shape-spacing-50);
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
background-color: var(--er-surface-hover);
|
|
81
|
+
color: var(--er-icon-primary);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.custom-popper__option-tick {
|
|
88
|
+
color: var(--er-icon-brand);
|
|
89
|
+
width: var(--er-control-height-xs);
|
|
90
|
+
height: var(--er-control-height-xs);
|
|
91
|
+
|
|
92
|
+
svg {
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.custom-popper__option-checkbox {
|
|
99
|
+
pointer-events: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.el-select-dropdown__item {
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
&.is-selected:after {
|
|
105
|
+
display: none !important;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.el-popper__arrow,
|
|
110
|
+
.el-popper__arrow::before {
|
|
111
|
+
display: none !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.el-scrollbar {
|
|
115
|
+
&__wrap,
|
|
116
|
+
.el-dropdown__list {
|
|
117
|
+
max-height: 280px;
|
|
118
|
+
padding: 0 !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&__view {
|
|
122
|
+
margin: 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.el-dropdown-menu {
|
|
127
|
+
width: 100%;
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
align-items: flex-start;
|
|
131
|
+
padding: 0;
|
|
132
|
+
margin: 0 !important;
|
|
133
|
+
background: transparent !important;
|
|
134
|
+
border: none !important;
|
|
135
|
+
overflow: hidden !important;
|
|
136
|
+
box-shadow: none !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.el-dropdown__list {
|
|
140
|
+
padding: 0;
|
|
141
|
+
margin: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
145
|
+
// MENU ITEM — base styles (shared between li and el-dropdown-menu__item)
|
|
146
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
147
|
+
li {
|
|
148
|
+
display: flex;
|
|
149
|
+
height: var(--er-control-height-md);
|
|
150
|
+
min-height: var(--er-control-height-md);
|
|
151
|
+
padding: 0 var(--er-shape-spacing-100);
|
|
152
|
+
border-radius: var(--er-shape-corner-100);
|
|
153
|
+
gap: var(--er-shape-spacing-100);
|
|
154
|
+
align-items: center;
|
|
155
|
+
margin: 0;
|
|
156
|
+
border: none;
|
|
157
|
+
background-color: transparent;
|
|
158
|
+
|
|
159
|
+
@include typo.body-md;
|
|
160
|
+
color: var(--er-text-primary) !important;
|
|
161
|
+
|
|
162
|
+
> div {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: var(--er-shape-spacing-100);
|
|
166
|
+
flex: 1 0 0;
|
|
167
|
+
align-self: stretch;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// — Hover
|
|
171
|
+
&:hover:not(.is-disabled),
|
|
172
|
+
&.highlighted:not(.is-disabled) {
|
|
173
|
+
background-color: var(--er-action-neutral-subtle-hover);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// — Pressed
|
|
177
|
+
&:active:not(.is-disabled) {
|
|
178
|
+
background-color: var(--er-action-neutral-subtle-pressed);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// — Disabled
|
|
182
|
+
&.is-disabled {
|
|
183
|
+
opacity: 0.5;
|
|
184
|
+
cursor: not-allowed;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.danger{
|
|
189
|
+
li.is-selected {
|
|
190
|
+
background-color: var(--er-action-danger-subtle-pressed,);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
195
|
+
// SIZE VARIANTS
|
|
196
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
197
|
+
&.sm {
|
|
198
|
+
border-radius: var(--er-shape-corner-100) !important;
|
|
199
|
+
@include dropdown-item(
|
|
200
|
+
var(--er-control-height-sm),
|
|
201
|
+
var(--er-shape-spacing-50),
|
|
202
|
+
var(--er-shape-corner-75),
|
|
203
|
+
var(--er-shape-spacing-50),
|
|
204
|
+
var(--er-control-height-xxs)
|
|
205
|
+
) {
|
|
206
|
+
@include typo.body-sm;
|
|
207
|
+
|
|
208
|
+
> div {
|
|
209
|
+
gap: var(--er-shape-spacing-50);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.custom-popper__option-tick {
|
|
214
|
+
width: var(--er-control-height-xxs);
|
|
215
|
+
height: var(--er-control-height-xxs);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&.md {
|
|
220
|
+
border-radius: var(--er-shape-corner-150) !important;
|
|
221
|
+
@include dropdown-item(
|
|
222
|
+
var(--er-control-height-md),
|
|
223
|
+
var(--er-shape-spacing-75),
|
|
224
|
+
var(--er-shape-corner-100),
|
|
225
|
+
var(--er-shape-spacing-75),
|
|
226
|
+
var(--er-control-height-xs)
|
|
227
|
+
) {
|
|
228
|
+
> div {
|
|
229
|
+
gap: var(--er-shape-spacing-100);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.lg {
|
|
235
|
+
border-radius: var(--er-shape-corner-200) !important;
|
|
236
|
+
@include dropdown-item(
|
|
237
|
+
var(--er-control-height-lg),
|
|
238
|
+
var(--er-shape-spacing-75),
|
|
239
|
+
var(--er-shape-corner-150),
|
|
240
|
+
var(--er-shape-spacing-75),
|
|
241
|
+
var(--er-control-height-xs)
|
|
242
|
+
) {
|
|
243
|
+
> div {
|
|
244
|
+
gap: var(--er-shape-spacing-100);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&.xl {
|
|
250
|
+
border-radius: var(--er-shape-corner-200) !important;
|
|
251
|
+
@include dropdown-item(
|
|
252
|
+
var(--er-control-height-xl),
|
|
253
|
+
var(--er-shape-spacing-75),
|
|
254
|
+
var(--er-shape-corner-150),
|
|
255
|
+
var(--er-shape-spacing-75),
|
|
256
|
+
var(--er-control-height-xs)
|
|
257
|
+
) {
|
|
258
|
+
> div {
|
|
259
|
+
gap: var(--er-shape-spacing-100);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.el-select-dropdown__item {
|
|
264
|
+
@include typo.body-lg;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@use '../themes/aurora/typography/typography-utils' as typo;
|
|
2
|
+
|
|
3
|
+
@mixin progress-status($color) {
|
|
4
|
+
.el-progress-bar__inner,
|
|
5
|
+
.el-progress-circle__path {
|
|
6
|
+
background-color: $color;
|
|
7
|
+
stroke: $color;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// ─── Base ─────────────────────────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
.custom-progress.el-progress {
|
|
14
|
+
// ── Linear ──
|
|
15
|
+
&--line {
|
|
16
|
+
.el-progress-bar__outer {
|
|
17
|
+
background-color: var(--er-surface-muted);
|
|
18
|
+
border-radius: 2px;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.el-progress-bar__inner {
|
|
23
|
+
background-color: var(--er-border-brand);
|
|
24
|
+
border-radius: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.el-progress__text {
|
|
28
|
+
@include typo.label-md;
|
|
29
|
+
color: var(--er-text-secondary) !important;
|
|
30
|
+
font-size: var(--er-typo-label-md-sz) !important;
|
|
31
|
+
|
|
32
|
+
margin-left: 4px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ── Status ──
|
|
37
|
+
&.is-success {
|
|
38
|
+
@include progress-status(var(--er-border-success));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.is-warning {
|
|
42
|
+
@include progress-status(var(--er-border-warning));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.is-danger {
|
|
46
|
+
@include progress-status(var(--er-border-danger));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.is-information {
|
|
50
|
+
@include progress-status(var(--er-border-information));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.is-primary {
|
|
54
|
+
@include progress-status(var(--er-border-brand));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// ── Circle / Dashboard ──
|
|
58
|
+
&--circle,
|
|
59
|
+
&--dashboard {
|
|
60
|
+
.el-progress-circle__track {
|
|
61
|
+
stroke: var(--er-surface-muted);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.el-progress-circle__path {
|
|
65
|
+
stroke: var(--er-border-brand);
|
|
66
|
+
stroke-linecap: round;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.el-progress__text {
|
|
70
|
+
.progress-text {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
align-items: center;
|
|
74
|
+
align-self: stretch;
|
|
75
|
+
|
|
76
|
+
.progress-percentage {
|
|
77
|
+
color: var(--er-text-primary);
|
|
78
|
+
@include typo.title-md-em;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.progress-description {
|
|
82
|
+
color: var(--er-text-muted);
|
|
83
|
+
text-align: center;
|
|
84
|
+
@include typo.body-sm;
|
|
85
|
+
align-self: stretch;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ── Dashboard ──
|
|
92
|
+
&--dashboard {
|
|
93
|
+
svg {
|
|
94
|
+
display: block;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// ── SM ──
|
|
99
|
+
&.sm {
|
|
100
|
+
&.el-progress--line {
|
|
101
|
+
.el-progress-bar__outer,
|
|
102
|
+
.el-progress-bar__inner {
|
|
103
|
+
height: 6px !important;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.el-progress--circle,
|
|
108
|
+
&.el-progress--dashboard {
|
|
109
|
+
width: 100px;
|
|
110
|
+
|
|
111
|
+
.el-progress-circle {
|
|
112
|
+
width: 100px !important;
|
|
113
|
+
height: 100px !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
svg {
|
|
117
|
+
width: 100px;
|
|
118
|
+
height: 100px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// ── MD ──
|
|
124
|
+
&.md {
|
|
125
|
+
&.el-progress--line {
|
|
126
|
+
.el-progress-bar__outer,
|
|
127
|
+
.el-progress-bar__inner {
|
|
128
|
+
height: 8px !important;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.el-progress--circle,
|
|
133
|
+
&.el-progress--dashboard {
|
|
134
|
+
width: 120px;
|
|
135
|
+
|
|
136
|
+
.el-progress-circle {
|
|
137
|
+
width: 120px !important;
|
|
138
|
+
height: 120px !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
svg {
|
|
142
|
+
width: 120px;
|
|
143
|
+
height: 120px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.el-progress__text {
|
|
147
|
+
.progress-percentage {
|
|
148
|
+
@include typo.title-lg-em;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "../themes/aurora/typography/typography-utils" as typo;
|
|
2
|
+
// ─── Base ─────────────────────────────────────────────────────────────────────
|
|
3
|
+
.custom-radio.el-radio-group {
|
|
4
|
+
.el-radio {
|
|
5
|
+
gap: var(--er-shape-spacing-50);
|
|
6
|
+
height: var(--er-control-height-xs);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: var(--er-shape-spacing-150);
|
|
11
|
+
|
|
12
|
+
.el-radio__inner {
|
|
13
|
+
width: var(--er-control-height-xxs);
|
|
14
|
+
height: var(--er-control-height-xxs);
|
|
15
|
+
border-width: 1.5px;
|
|
16
|
+
|
|
17
|
+
&::after {
|
|
18
|
+
width: 6px;
|
|
19
|
+
height: 6px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.el-radio__input .el-radio__inner {
|
|
24
|
+
border-color: var(--er-border-default);
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
margin: 2px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.el-radio__input.is-checked .el-radio__inner {
|
|
30
|
+
border-color: var(--er-action-primary-default);
|
|
31
|
+
background-color: var(--er-action-primary-default);
|
|
32
|
+
|
|
33
|
+
&::after {
|
|
34
|
+
background-color: var(--er-surface-fixed-white);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.el-radio__input.is-disabled {
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
|
|
41
|
+
&.is-checked .el-radio__inner {
|
|
42
|
+
border-color: var(--er-action-primary-default);
|
|
43
|
+
background-color: var(--er-action-primary-default);
|
|
44
|
+
|
|
45
|
+
&::after {
|
|
46
|
+
background-color: var(--er-surface-fixed-white);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.el-radio__label {
|
|
52
|
+
color: var(--er-text-secondary);
|
|
53
|
+
padding-left: 0;
|
|
54
|
+
@include typo.label-lg;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.el-radio__input.is-checked + .el-radio__label {
|
|
58
|
+
color: var(--er-action-primary-default) !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.el-radio__input.is-disabled + .el-radio__label {
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.el-radio__input.is-disabled.is-checked + .el-radio__label {
|
|
66
|
+
color: var(--er-action-primary-default) !important;
|
|
67
|
+
}
|
|
68
|
+
}
|