@eaera-com/eaera-widgets-v2 0.1.63 → 0.1.65
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,187 @@
|
|
|
1
|
+
@use '../themes/aurora/typography/typography-utils' as typo;
|
|
2
|
+
@use '../themes/aurora/elevation/elevation-utils' as elevation;
|
|
3
|
+
|
|
4
|
+
@mixin message-type($bg, $border, $text) {
|
|
5
|
+
background-color: $bg;
|
|
6
|
+
border-color: $border;
|
|
7
|
+
|
|
8
|
+
.el-message__content {
|
|
9
|
+
color: $text !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.el-message__icon {
|
|
13
|
+
color: $text !important;
|
|
14
|
+
}
|
|
15
|
+
&.custom-message--with-title {
|
|
16
|
+
.el-message__title {
|
|
17
|
+
color: $text !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin message-plain-type($text) {
|
|
23
|
+
.el-message__icon {
|
|
24
|
+
color: $text !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.el-message__content {
|
|
28
|
+
color: $text !important;
|
|
29
|
+
}
|
|
30
|
+
&.custom-message--with-title {
|
|
31
|
+
.el-message__title {
|
|
32
|
+
color: $text !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ─── Base ─────────────────────────────────────────────────────────────────────
|
|
38
|
+
|
|
39
|
+
.custom-message.el-message {
|
|
40
|
+
background-color: var(--er-surface-elevated);
|
|
41
|
+
border: 1px solid var(--er-border-default);
|
|
42
|
+
border-radius: var(--er-shape-corner-100);
|
|
43
|
+
padding: var(--er-shape-spacing-100);
|
|
44
|
+
min-width: 307px;
|
|
45
|
+
max-width: 500px;
|
|
46
|
+
gap: var(--er-shape-spacing-150);
|
|
47
|
+
@include elevation.elevation-level-1;
|
|
48
|
+
|
|
49
|
+
.el-message__content {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
flex: 1;
|
|
53
|
+
// Override Element Plus `white-space: nowrap` so long messages wrap
|
|
54
|
+
// instead of overflowing the fixed max-width container.
|
|
55
|
+
min-width: 0;
|
|
56
|
+
white-space: normal;
|
|
57
|
+
word-break: break-word;
|
|
58
|
+
@include typo.body-sm;
|
|
59
|
+
color: var(--er-text-secondary) !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.el-message__icon {
|
|
63
|
+
width: 20px;
|
|
64
|
+
height: 20px;
|
|
65
|
+
font-size: 20px;
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
color: var(--er-icon-secondary) !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.el-message__closeBtn {
|
|
71
|
+
width: 24px;
|
|
72
|
+
height: 24px;
|
|
73
|
+
padding: 4px;
|
|
74
|
+
border-radius: var(--er-shape-corner-50);
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
color: var(--er-icon-primary) !important;
|
|
80
|
+
|
|
81
|
+
.el-icon {
|
|
82
|
+
font-size: 16px;
|
|
83
|
+
width: 16px;
|
|
84
|
+
height: 16px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// ── Types ──
|
|
89
|
+
&.el-message--success {
|
|
90
|
+
@include message-type(
|
|
91
|
+
var(--er-surface-success-subtle),
|
|
92
|
+
var(--er-border-success),
|
|
93
|
+
var(--er-text-success)
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.el-message--warning {
|
|
98
|
+
@include message-type(
|
|
99
|
+
var(--er-surface-warning-subtle),
|
|
100
|
+
var(--er-border-warning),
|
|
101
|
+
var(--er-text-warning)
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.el-message--error {
|
|
106
|
+
@include message-type(
|
|
107
|
+
var(--er-surface-danger-subtle),
|
|
108
|
+
var(--er-border-danger),
|
|
109
|
+
var(--er-text-danger)
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.el-message--info {
|
|
114
|
+
@include message-type(
|
|
115
|
+
var(--er-surface-information-subtle),
|
|
116
|
+
var(--er-border-information),
|
|
117
|
+
var(--er-text-information)
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// ── Plain ──
|
|
122
|
+
&.is-plain {
|
|
123
|
+
background-color: var(--er-surface-container);
|
|
124
|
+
border-color: var(--er-border-default);
|
|
125
|
+
box-shadow: none;
|
|
126
|
+
.el-message__content {
|
|
127
|
+
color: var(--er-text-secondary) !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.custom-message--with-title {
|
|
131
|
+
.el-message__title {
|
|
132
|
+
color: var(--er-text-primary) !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.el-message__description {
|
|
136
|
+
color: var(--er-text-secondary) !important;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.el-message--success {
|
|
141
|
+
@include message-plain-type(var(--er-text-success));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.el-message--warning {
|
|
145
|
+
@include message-plain-type(var(--er-text-warning));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.el-message--error {
|
|
149
|
+
@include message-plain-type(var(--er-text-danger));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.el-message--info {
|
|
153
|
+
@include message-plain-type(var(--er-text-information));
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// ── With Title ──
|
|
158
|
+
&.custom-message--with-title {
|
|
159
|
+
padding: var(--er-shape-spacing-150);
|
|
160
|
+
align-items: flex-start;
|
|
161
|
+
.el-message__content {
|
|
162
|
+
align-items: flex-start;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.el-message__text-wrapper {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
gap: var(--er-shape-spacing-50);
|
|
169
|
+
flex: 1;
|
|
170
|
+
min-width: 0;
|
|
171
|
+
|
|
172
|
+
.el-message__title {
|
|
173
|
+
@include typo.title-sm;
|
|
174
|
+
color: var(--er-text-primary);
|
|
175
|
+
white-space: normal;
|
|
176
|
+
word-break: break-word;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.el-message__description {
|
|
180
|
+
@include typo.body-sm;
|
|
181
|
+
color: var(--er-text-secondary);
|
|
182
|
+
white-space: normal;
|
|
183
|
+
word-break: break-word;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// EaeraWidgetMonthlyGainChart — Monthly Gain bar chart widget styles
|
|
3
|
+
// Design source: Figma 7DD5x9AmpudFQRF9mjSclE node 2093-100663
|
|
4
|
+
// Uses --er-* custom properties (host app must provide design tokens)
|
|
5
|
+
// ============================================================================
|
|
6
|
+
|
|
7
|
+
.monthly-gain-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
|
+
// ── Toggle group (% / Currency) ──────────────────────────────────────────
|
|
36
|
+
&__toggle {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 2px;
|
|
40
|
+
background: var(--er-surface-muted);
|
|
41
|
+
border-radius: var(--er-shape-corner-100);
|
|
42
|
+
padding: 2px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__toggle-btn {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
width: 32px;
|
|
50
|
+
height: 28px;
|
|
51
|
+
border: none;
|
|
52
|
+
border-radius: var(--er-shape-corner-100);
|
|
53
|
+
background: transparent;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
color: var(--er-text-secondary);
|
|
56
|
+
transition:
|
|
57
|
+
background-color 0.15s ease,
|
|
58
|
+
color 0.15s ease,
|
|
59
|
+
box-shadow 0.15s ease;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
color: var(--er-text-primary);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&--active {
|
|
66
|
+
background: var(--er-surface-container);
|
|
67
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
68
|
+
color: var(--er-text-primary);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__toggle-icon {
|
|
73
|
+
width: 12px;
|
|
74
|
+
height: 12px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ── Chart area ───────────────────────────────────────────────────────────
|
|
78
|
+
&__body {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
align-self: stretch;
|
|
82
|
+
min-height: 342px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__chart {
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 342px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ── Empty state ──────────────────────────────────────────────────────────
|
|
91
|
+
&__empty {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
gap: var(--er-shape-spacing-150);
|
|
97
|
+
height: 342px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__empty-icon {
|
|
101
|
+
width: 48px;
|
|
102
|
+
height: 48px;
|
|
103
|
+
color: var(--er-text-placeholder);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__empty-text {
|
|
107
|
+
color: var(--er-text-muted);
|
|
108
|
+
font-family: var(--er-typo-body-md-font);
|
|
109
|
+
font-size: var(--er-typo-body-md-sz);
|
|
110
|
+
line-height: var(--er-typo-body-md-line-hg);
|
|
111
|
+
font-weight: var(--er-typo-body-md-wg);
|
|
112
|
+
letter-spacing: var(--er-typo-body-md-tracking);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
@use "../themes/aurora/typography/typography-utils" as typo;
|
|
2
|
+
@use "../themes/aurora/elevation/elevation-utils" as elevation;
|
|
3
|
+
@use "./select" as select;
|
|
4
|
+
@mixin pagination-button($size, $radius, $icon-size) {
|
|
5
|
+
.btn-prev,
|
|
6
|
+
.btn-next {
|
|
7
|
+
width: $size;
|
|
8
|
+
height: $size;
|
|
9
|
+
border-radius: $radius;
|
|
10
|
+
min-width: $size;
|
|
11
|
+
.el-icon {
|
|
12
|
+
font-size: $icon-size;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.el-pager .number {
|
|
17
|
+
width: $size;
|
|
18
|
+
height: $size;
|
|
19
|
+
min-width: $size;
|
|
20
|
+
border-radius: $radius;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.el-pager .more {
|
|
24
|
+
width: $size;
|
|
25
|
+
height: $size;
|
|
26
|
+
min-width: $size;
|
|
27
|
+
border-radius: $radius;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin pagination-input($height, $radius, $padding, $gap) {
|
|
32
|
+
.el-pagination__sizes .el-input__wrapper,
|
|
33
|
+
.el-pagination__jump .el-input__wrapper {
|
|
34
|
+
height: $height;
|
|
35
|
+
border-radius: $radius;
|
|
36
|
+
padding: 0 $padding;
|
|
37
|
+
gap: $gap;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
42
|
+
// PAGINATION
|
|
43
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
44
|
+
|
|
45
|
+
.custom-pagination.el-pagination {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--er-shape-spacing-50);
|
|
49
|
+
|
|
50
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
51
|
+
// BASE BUTTON STYLES
|
|
52
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
53
|
+
|
|
54
|
+
.btn-prev,
|
|
55
|
+
.btn-next {
|
|
56
|
+
color: var(--er-icon-primary);
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
border: none;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
padding: 0;
|
|
64
|
+
|
|
65
|
+
&:hover:not(:disabled) {
|
|
66
|
+
background-color: var(--er-action-neutral-subtle-hover);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:active:not(:disabled) {
|
|
70
|
+
background-color: var(--er-action-neutral-subtle-pressed);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:disabled {
|
|
74
|
+
color: var(--er-icon-primary);
|
|
75
|
+
opacity: 0.5;
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
background: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.el-icon {
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
|
|
85
|
+
svg {
|
|
86
|
+
width: 1em;
|
|
87
|
+
height: 1em;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
93
|
+
// PAGE NUMBERS
|
|
94
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
95
|
+
|
|
96
|
+
.el-pager {
|
|
97
|
+
display: flex;
|
|
98
|
+
gap: var(--er-shape-spacing-50); // 4px
|
|
99
|
+
|
|
100
|
+
.number {
|
|
101
|
+
color: var(--er-text-secondary);
|
|
102
|
+
background-color: transparent;
|
|
103
|
+
border: none;
|
|
104
|
+
margin: 0;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
text-align: center;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
|
|
111
|
+
&:hover:not(.is-active) {
|
|
112
|
+
background-color: var(--er-action-neutral-subtle-hover);
|
|
113
|
+
color: var(--er-text-secondary);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:active:not(.is-active) {
|
|
117
|
+
background-color: var(--er-action-neutral-subtle-pressed);
|
|
118
|
+
color: var(--er-text-primary);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&.is-active {
|
|
122
|
+
color: var(--er-text-primary);
|
|
123
|
+
background-color: var(--er-action-neutral-subtle-pressed);
|
|
124
|
+
font-weight: 500;
|
|
125
|
+
|
|
126
|
+
&:hover {
|
|
127
|
+
background-color: var(--er-action-neutral-subtle-pressed);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:disabled,
|
|
132
|
+
&.is-disabled {
|
|
133
|
+
color: var(--er-icon-primary);
|
|
134
|
+
opacity: 0.5;
|
|
135
|
+
cursor: not-allowed;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.more {
|
|
140
|
+
color: var(--er-text-primary);
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
border: none;
|
|
143
|
+
margin: 0;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
|
|
149
|
+
&:hover {
|
|
150
|
+
background-color: var(--er-action-neutral-subtle-hover);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&:active {
|
|
154
|
+
background-color: var(--er-action-neutral-subtle-pressed);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
160
|
+
// INPUT/SELECT WRAPPERS
|
|
161
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
162
|
+
|
|
163
|
+
.el-pagination__sizes .el-input__wrapper,
|
|
164
|
+
.el-pagination__jump .el-input__wrapper {
|
|
165
|
+
border: 1px solid var(--er-border-default);
|
|
166
|
+
background-color: var(--er-surface-container);
|
|
167
|
+
box-shadow: none;
|
|
168
|
+
|
|
169
|
+
&:hover {
|
|
170
|
+
border-color: var(--er-action-primary-hover);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.is-focus {
|
|
174
|
+
border-color: var(--er-action-primary-hover);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
179
|
+
// TEXT ELEMENTS
|
|
180
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
181
|
+
|
|
182
|
+
.el-pagination__total {
|
|
183
|
+
color: var(--er-text-secondary);
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.el-pagination__sizes,
|
|
188
|
+
.el-pagination__jump {
|
|
189
|
+
margin: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.el-pagination__jump {
|
|
193
|
+
color: var(--er-text-muted);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
197
|
+
// SM SIZE — 24px buttons
|
|
198
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
199
|
+
|
|
200
|
+
&.sm {
|
|
201
|
+
@include pagination-button(
|
|
202
|
+
var(--er-control-height-sm),
|
|
203
|
+
var(--er-shape-corner-75),
|
|
204
|
+
16px
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
@include pagination-input(var(--er-control-height-sm), var(--er-shape-corner-50), var(--er-shape-spacing-50), var(--er-shape-spacing-50));
|
|
208
|
+
|
|
209
|
+
.el-pagination__total,
|
|
210
|
+
.el-pagination__jump {
|
|
211
|
+
@include typo.body-sm;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.el-pager .number {
|
|
215
|
+
@include typo.label-md;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.el-pager .more {
|
|
219
|
+
@include typo.label-md;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.el-select__wrapper {
|
|
223
|
+
min-height: var(--er-control-height-sm);
|
|
224
|
+
border-radius: var(--er-shape-corner-50);
|
|
225
|
+
padding: 0 var(--er-shape-spacing-50);
|
|
226
|
+
gap: var(--er-shape-spacing-50);
|
|
227
|
+
@include typo.body-sm;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
232
|
+
// MD SIZE — 32px buttons
|
|
233
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
234
|
+
|
|
235
|
+
&.md {
|
|
236
|
+
@include pagination-button(var(--er-control-height-md), var(--er-shape-corner-100), 20px);
|
|
237
|
+
|
|
238
|
+
@include pagination-input(var(--er-control-height-md), var(--er-shape-corner-100), var(--er-shape-spacing-100), var(--er-shape-spacing-100));
|
|
239
|
+
|
|
240
|
+
.el-pagination__total,
|
|
241
|
+
.el-pagination__jump {
|
|
242
|
+
@include typo.body-md;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.el-pager .number {
|
|
246
|
+
@include typo.label-lg;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.el-pager .more {
|
|
250
|
+
@include typo.label-lg;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.el-select__wrapper {
|
|
254
|
+
min-height: var(--er-control-height-md);
|
|
255
|
+
border-radius: var(--er-shape-corner-100);
|
|
256
|
+
padding: 0 var(--er-shape-spacing-100);
|
|
257
|
+
gap: var(--er-shape-spacing-50);
|
|
258
|
+
@include typo.body-md;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
264
|
+
// PAGINATION CONTAINER
|
|
265
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
266
|
+
|
|
267
|
+
.pagination-container {
|
|
268
|
+
@apply flex items-center justify-between w-full;
|
|
269
|
+
gap: var(--er-shape-spacing-150);
|
|
270
|
+
|
|
271
|
+
.pagination-left {
|
|
272
|
+
@apply hidden md:flex;
|
|
273
|
+
align-items: center;
|
|
274
|
+
gap: var(--er-shape-spacing-100);
|
|
275
|
+
|
|
276
|
+
.info-text {
|
|
277
|
+
color: var(--er-text-muted);
|
|
278
|
+
@include typo.body-md;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.el-select {
|
|
282
|
+
.el-select__caret {
|
|
283
|
+
color: var(--er-icon-secondary);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.custom-select.el-select {
|
|
289
|
+
.el-select__selected-item {
|
|
290
|
+
width: fit-content;
|
|
291
|
+
flex: 0 0 auto;
|
|
292
|
+
white-space: nowrap;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.el-select__placeholder {
|
|
296
|
+
position: static;
|
|
297
|
+
transform: none;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.pagination-right {
|
|
302
|
+
display: flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
gap: var(--er-shape-spacing-150);
|
|
305
|
+
margin-left: auto;
|
|
306
|
+
|
|
307
|
+
.range-text {
|
|
308
|
+
@apply hidden lg:block;
|
|
309
|
+
color: var(--er-text-secondary);
|
|
310
|
+
@include typo.body-md;
|
|
311
|
+
white-space: nowrap;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// SM overrides
|
|
316
|
+
&.sm {
|
|
317
|
+
.pagination-left .info-text,
|
|
318
|
+
.pagination-right .range-text {
|
|
319
|
+
@include typo.body-sm;
|
|
320
|
+
}
|
|
321
|
+
.pagination-left .el-select {
|
|
322
|
+
.el-select__wrapper {
|
|
323
|
+
min-height: var(--er-control-height-sm);
|
|
324
|
+
border-radius: var(--er-shape-corner-50);
|
|
325
|
+
padding: 0 var(--er-shape-spacing-50);
|
|
326
|
+
gap: var(--er-shape-spacing-50);
|
|
327
|
+
@include typo.body-sm;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.el-select__caret {
|
|
331
|
+
font-size: 16px;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&.md {
|
|
337
|
+
.pagination-left .info-text,
|
|
338
|
+
.pagination-right .range-text {
|
|
339
|
+
@include typo.body-md;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.pagination-left .el-select {
|
|
343
|
+
.el-select__wrapper {
|
|
344
|
+
min-height: var(--er-control-height-md);
|
|
345
|
+
border-radius: var(--er-shape-corner-100);
|
|
346
|
+
padding: 0 var(--er-shape-spacing-100);
|
|
347
|
+
gap: var(--er-shape-spacing-50);
|
|
348
|
+
@include typo.body-md;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.el-select__caret {
|
|
352
|
+
font-size: 20px;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|