@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,89 @@
|
|
|
1
|
+
@use '../themes/aurora/typography/typography-utils' as typo;
|
|
2
|
+
@use '../themes/aurora/elevation/elevation-utils' as elevation;
|
|
3
|
+
|
|
4
|
+
@mixin switch-size($track-w, $track-h, $handle-size) {
|
|
5
|
+
height: $track-h;
|
|
6
|
+
line-height: $track-h;
|
|
7
|
+
|
|
8
|
+
.el-switch__core {
|
|
9
|
+
min-width: $track-w;
|
|
10
|
+
width: $track-w;
|
|
11
|
+
height: $track-h;
|
|
12
|
+
|
|
13
|
+
.el-switch__action {
|
|
14
|
+
width: $handle-size;
|
|
15
|
+
height: $handle-size;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.is-checked .el-switch__core .el-switch__action {
|
|
20
|
+
left: calc(100% - #{$handle-size} - 2px);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// ─── Base ─────────────────────────────────────────────────────────────────────
|
|
25
|
+
|
|
26
|
+
.custom-switch.el-switch {
|
|
27
|
+
padding: 2px;
|
|
28
|
+
user-select: none;
|
|
29
|
+
&.sm {
|
|
30
|
+
@include switch-size(32px, 16px, 12px);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.md {
|
|
34
|
+
@include switch-size(40px, 20px, 16px);
|
|
35
|
+
padding: var(--er-shape-spacing-100);
|
|
36
|
+
.el-switch__label {
|
|
37
|
+
@include typo.label-lg;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.el-switch__core {
|
|
42
|
+
border-radius: var(--er-shape-corner-full);
|
|
43
|
+
|
|
44
|
+
.el-switch__action {
|
|
45
|
+
left: 2px;
|
|
46
|
+
border-radius: var(--er-shape-corner-full);
|
|
47
|
+
background: var(--er-icon-on-action);
|
|
48
|
+
@include elevation.elevation-level-3;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:not(.is-checked) .el-switch__core {
|
|
53
|
+
background-color: var(--er-surface-muted) !important;
|
|
54
|
+
border: none !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.is-checked .el-switch__core {
|
|
58
|
+
background-color: var(--er-action-primary-default);
|
|
59
|
+
border-color: var(--er-action-primary-default);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.el-switch__label {
|
|
63
|
+
@include typo.label-md;
|
|
64
|
+
color: var(--er-text-primary);
|
|
65
|
+
opacity: 0.5;
|
|
66
|
+
transition:
|
|
67
|
+
opacity 0.2s,
|
|
68
|
+
color 0.2s;
|
|
69
|
+
|
|
70
|
+
&.is-active {
|
|
71
|
+
color: var(--er-action-primary-default);
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.is-disabled {
|
|
77
|
+
opacity: 0.5 !important;
|
|
78
|
+
|
|
79
|
+
&:not(.is-checked) .el-switch__core {
|
|
80
|
+
border-color: var(--er-border-default) !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.is-checked .el-switch__core {
|
|
84
|
+
background-color: var(--er-action-primary-default);
|
|
85
|
+
border-color: var(--er-surface-muted) !important;
|
|
86
|
+
opacity: 0.5;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use '../themes/aurora/elevation/elevation-utils' as elevation;
|
|
2
|
+
.custom-switcher.el-switch {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
height: var(--er-control-height-md);
|
|
5
|
+
padding: 1.5px;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-radius: var(--er-shape-corner-full);
|
|
8
|
+
border: 0.5px solid var(--er-border-default);
|
|
9
|
+
background: var(--er-surface-muted);
|
|
10
|
+
user-select: none;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
|
|
13
|
+
.el-switch__core {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
align-items: center;
|
|
17
|
+
min-width: 56px;
|
|
18
|
+
width: 56px;
|
|
19
|
+
height: 28px;
|
|
20
|
+
border: none;
|
|
21
|
+
outline: none;
|
|
22
|
+
border-radius: var(--er-shape-corner-full);
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
background: transparent;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
transition: none !important;
|
|
27
|
+
|
|
28
|
+
.el-switch__inner {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 28px;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
padding: 0 2px 0 32px;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
transition: none !important;
|
|
38
|
+
|
|
39
|
+
&-wrapper {
|
|
40
|
+
transition: none !important;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
color: var(--er-icon-secondary);
|
|
47
|
+
|
|
48
|
+
svg {
|
|
49
|
+
display: flex;
|
|
50
|
+
width: 16px;
|
|
51
|
+
height: 16px;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
color: var(--er-icon-secondary);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.el-switch__action {
|
|
62
|
+
position: absolute;
|
|
63
|
+
left: 0;
|
|
64
|
+
top: 50%;
|
|
65
|
+
transform: translateY(-50%);
|
|
66
|
+
width: 28px;
|
|
67
|
+
height: 28px;
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
aspect-ratio: 1 / 1;
|
|
72
|
+
border-radius: var(--er-shape-corner-full);
|
|
73
|
+
background: var(--er-surface-container);
|
|
74
|
+
@include elevation.elevation-level-1;
|
|
75
|
+
transition: none !important;
|
|
76
|
+
z-index: 1;
|
|
77
|
+
|
|
78
|
+
svg {
|
|
79
|
+
display: flex;
|
|
80
|
+
width: 16px;
|
|
81
|
+
height: 16px;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
align-items: center;
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
color: var(--er-icon-primary);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:not(.is-checked) .el-switch__core {
|
|
92
|
+
background: transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.is-checked .el-switch__core {
|
|
96
|
+
background: transparent;
|
|
97
|
+
|
|
98
|
+
.el-switch__inner {
|
|
99
|
+
padding: 0 32px 0 2px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.el-switch__action {
|
|
103
|
+
left: calc(100% - 28px);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.is-disabled {
|
|
108
|
+
opacity: 0.5 !important;
|
|
109
|
+
}
|
|
110
|
+
}
|