@eaera-com/eaera-widgets-v2 0.1.75 → 0.1.77

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.
Files changed (61) hide show
  1. package/dist/components/base/EaeraButton.d.ts +3 -1
  2. package/dist/components/base/EaeraButton.mjs +1 -1
  3. package/dist/components/base/EaeraCarousel.mjs +1 -1
  4. package/dist/components/base/EaeraDatePicker.mjs +1 -1
  5. package/dist/components/base/EaeraDateTimePicker.mjs +1 -1
  6. package/dist/components/base/EaeraDrawer.mjs +1 -1
  7. package/dist/components/base/EaeraPopconfirm.mjs +1 -1
  8. package/dist/components/base/EaeraUploadDefault.mjs +1 -1
  9. package/dist/components/chunks/EaeraButton-BPVKRBOn.mjs +1 -0
  10. package/dist/components/chunks/{EaeraButtonGroup-B5wTBG3Y.mjs → EaeraButtonGroup-BROLavKb.mjs} +1 -1
  11. package/dist/components/chunks/{EaeraCalendar-BFZSCkQq.mjs → EaeraCalendar-QOYXhJey.mjs} +1 -1
  12. package/dist/components/chunks/{EaeraCarousel-BV02zb3u.mjs → EaeraCarousel-nVdAknBO.mjs} +1 -1
  13. package/dist/components/chunks/{EaeraDatePicker-CAm9fHms.mjs → EaeraDatePicker-Bwt5r5gk.mjs} +1 -1
  14. package/dist/components/chunks/{EaeraDateTimePicker-DXW1M3R7.mjs → EaeraDateTimePicker-Hv_ma8qU.mjs} +1 -1
  15. package/dist/components/chunks/{EaeraDrawer-C3Pj4wvV.mjs → EaeraDrawer-D7drsvOk.mjs} +1 -1
  16. package/dist/components/chunks/{EaeraDynamicFieldRow-Cv4oclH6.mjs → EaeraDynamicFieldRow-mZ5_nqkn.mjs} +1 -1
  17. package/dist/components/chunks/{EaeraForm-DKeyWXY3.mjs → EaeraForm-DEoXRjat.mjs} +1 -1
  18. package/dist/components/chunks/{EaeraPopconfirm-DxtJgCN5.mjs → EaeraPopconfirm-K_C8Pf9V.mjs} +1 -1
  19. package/dist/components/chunks/{EaeraTableV2-ZUpzVKhm.mjs → EaeraTableV2-CBaM5zp9.mjs} +1 -1
  20. package/dist/components/chunks/{EaeraUploadDefault-Cs4SEmWT.mjs → EaeraUploadDefault-r9WuE9Ri.mjs} +1 -1
  21. package/dist/components/chunks/{EaeraWidgetMarginCalculator-CAZcI1eg.mjs → EaeraWidgetMarginCalculator-BokNy1a7.mjs} +1 -1
  22. package/dist/components/chunks/{EaeraWidgetPositionCalculator-BF6O7ATq.mjs → EaeraWidgetPositionCalculator-D36MGO-E.mjs} +1 -1
  23. package/dist/components/chunks/{index-B_ESts1X.mjs → index-9zJYqMyX.mjs} +1 -1
  24. package/dist/components/chunks/{index-CqpcR_2l.mjs → index-CgcRJ8oq.mjs} +1 -1
  25. package/dist/components/chunks/{index-CS3c4zka.mjs → index-ChWzksXo.mjs} +1 -1
  26. package/dist/components/chunks/{index-iEvfkNT8.mjs → index-Cm-cRnqS.mjs} +1 -1
  27. package/dist/components/chunks/index-Cu4uZ9Nd.mjs +1 -0
  28. package/dist/components/chunks/{index-CP8Qcgp3.mjs → index-DD9Bx0uF.mjs} +1 -1
  29. package/dist/components/chunks/index-DhwN0sRS.mjs +1 -0
  30. package/dist/components/chunks/index-wGZD3Xyh.mjs +1 -0
  31. package/dist/components/composite/EaeraCalendar.mjs +1 -1
  32. package/dist/components/composite/EaeraDynamicFieldRow.mjs +1 -1
  33. package/dist/components/composite/EaeraForm.mjs +1 -1
  34. package/dist/components/composite/EaeraTableV2.mjs +1 -1
  35. package/dist/components/custom/EaeraButtonGroup.mjs +1 -1
  36. package/dist/components/custom/EaeraWidgetMarginCalculator.mjs +1 -1
  37. package/dist/components/custom/EaeraWidgetPositionCalculator.mjs +1 -1
  38. package/dist/components/index.mjs +1 -1
  39. package/dist/components/webtrade/EaeraCfdOrderPlacement.mjs +1 -1
  40. package/dist/components/webtrade/EaeraCfdWatchlist.mjs +1 -1
  41. package/dist/components/webtrade/EaeraLightweightChart.mjs +1 -1
  42. package/dist/components/webtrade/EaeraOrderPlacement.mjs +1 -1
  43. package/dist/components/webtrade/EaeraOrderlineOverlay.mjs +1 -1
  44. package/dist/components/webtrade/EaeraTimeNSales.mjs +1 -1
  45. package/dist/components/webtrade/EaeraTradingTable.mjs +1 -1
  46. package/dist/components/webtrade/EaeraWatchlist.mjs +1 -1
  47. package/dist/design-system/components/_checkbox.scss +26 -66
  48. package/dist/design-system/components/_date-picker.scss +14 -14
  49. package/dist/design-system/components/_dropdown.scss +4 -22
  50. package/dist/design-system/components/_input-number.scss +9 -33
  51. package/dist/design-system/components/_link.scss +1 -2
  52. package/dist/design-system/components/_popper.scss +6 -27
  53. package/dist/design-system/components/_radio.scss +10 -0
  54. package/dist/design-system/components/_select.scss +5 -0
  55. package/dist/eaera-widgets-v2.es.js +8 -6
  56. package/dist/eaera-widgets-v2.umd.cjs +2 -2
  57. package/package.json +1 -1
  58. package/dist/components/chunks/EaeraButton-DGfjUoa6.mjs +0 -1
  59. package/dist/components/chunks/index-0bXWe0Hv.mjs +0 -1
  60. package/dist/components/chunks/index-uox7lRH5.mjs +0 -1
  61. package/dist/components/chunks/index-xImZAwVl.mjs +0 -1
@@ -272,13 +272,13 @@
272
272
  border-radius: var(--er-shape-corner-150) !important;
273
273
  border: none !important;
274
274
 
275
- .el-picker-panel *[slot='sidebar'] + .el-picker-panel__body,
275
+ .el-picker-panel *[slot="sidebar"] + .el-picker-panel__body,
276
276
  .el-picker-panel__sidebar + .el-picker-panel__body {
277
277
  margin-left: 130px !important;
278
278
  }
279
279
 
280
280
  .el-date-picker .el-picker-panel__content {
281
- width: 248px;
281
+ width: 298px;
282
282
  margin: 0;
283
283
  padding: 0 var(--er-shape-spacing-150);
284
284
  }
@@ -289,11 +289,11 @@
289
289
  }
290
290
 
291
291
  .el-picker-panel {
292
- width: 250px;
292
+ width: 300px;
293
293
  line-height: unset;
294
294
 
295
295
  &.el-date-range-picker {
296
- width: 496px;
296
+ width: 596px;
297
297
 
298
298
  &.has-sidebar {
299
299
  width: fit-content;
@@ -445,7 +445,7 @@
445
445
 
446
446
  &.today .el-date-table-cell__text {
447
447
  &::after {
448
- content: '';
448
+ content: "";
449
449
  display: block;
450
450
  width: var(--er-shape-spacing-50);
451
451
  height: var(--er-shape-spacing-50);
@@ -601,15 +601,15 @@
601
601
  }
602
602
 
603
603
  table {
604
- width: unset;
604
+ width: 100%;
605
605
  }
606
606
 
607
607
  &.single-panel {
608
- width: 250px;
609
- max-width: 250px;
608
+ width: 300px;
609
+ max-width: 300px;
610
610
  .el-picker-panel__body {
611
- min-width: 248px;
612
- max-width: 248px;
611
+ min-width: 298px;
612
+ max-width: 298px;
613
613
  }
614
614
 
615
615
  .el-date-range-picker__time-header {
@@ -618,14 +618,14 @@
618
618
 
619
619
  .el-date-range-picker__editors-wrap {
620
620
  &::before {
621
- content: 'Start';
621
+ content: "Start";
622
622
  @include typo.label-lg;
623
623
  color: var(--er-text-primary);
624
624
  }
625
625
 
626
626
  &.is-right {
627
627
  &::before {
628
- content: 'End';
628
+ content: "End";
629
629
  }
630
630
  }
631
631
  }
@@ -696,8 +696,8 @@
696
696
  display: flex;
697
697
  flex-direction: row;
698
698
  flex-wrap: wrap;
699
- min-width: 496px;
700
- max-width: 496px;
699
+ min-width: 596px;
700
+ max-width: 596px;
701
701
 
702
702
  .el-date-range-picker__content {
703
703
  flex: 1;
@@ -1,13 +1,3 @@
1
- // V1 trigger (EaeraDropdown) wraps consumer content in `.el-dropdown-link`.
2
- // EP's own outline suppressor targets `.el-dropdown-selfdefine`, which lands on
3
- // that wrapper span — not the focusable child (e.g. a header button). Without
4
- // this, opening the dropdown (hover or click) leaves the browser default focus
5
- // ring (`outline: 1px auto`) on the trigger. Scoped to `.el-dropdown-link` so
6
- // V2 (no wrapper) is untouched; menu items in the popper keep their focus.
7
- .custom-dropdown .el-dropdown-link :focus-visible {
8
- outline: none;
9
- }
10
-
11
1
  .custom-dropdown__popper.el-popper {
12
2
  // Popper background — force dark surface in dark mode. EP defaults to
13
3
  // --el-bg-color-overlay (#ffffff) and wallet-selector-popper sets the inner
@@ -30,28 +20,20 @@
30
20
  box-shadow: none;
31
21
  }
32
22
 
33
- // Item text + states — bound to EAERA tokens so the menu stays legible in
34
- // dark mode. State colors follow the UI-KIT-CORE dropdown spec:
35
- // bg surface-elevated (popper) · hover action-neutral-subtle-hover ·
36
- // pressed action-neutral-subtle-pressed · disabled transparent + 50%.
23
+ // Item text + hover — EP items use `--el-text-color-regular` and a light
24
+ // hover fill, both unreadable on the dark panel. Bind to EAERA tokens so the
25
+ // menu stays legible in dark mode.
37
26
  .el-dropdown-menu__item {
38
27
  width: 100%;
39
28
  color: var(--el-text-color-regular, var(--er-text-secondary));
40
29
  border-radius: var(--er-shape-corner-150);
41
-
42
30
  &:not(.is-disabled):hover,
43
31
  &:not(.is-disabled):focus {
44
- background-color: var(--er-action-neutral-subtle-hover);
32
+ background-color: var(--er-action-primary-subtle-hover);
45
33
  color: var(--el-text-primary);
46
34
  }
47
35
 
48
- &:not(.is-disabled):active {
49
- background-color: var(--er-action-neutral-subtle-pressed);
50
- }
51
-
52
36
  &.is-disabled {
53
- background-color: transparent;
54
- opacity: 0.5;
55
37
  color: var(--el-text-disabled);
56
38
  }
57
39
 
@@ -1,16 +1,5 @@
1
1
  @use '../themes/aurora/typography/typography-utils' as typo;
2
2
 
3
- // ─────────────────────────────────────────────────────────────────────────────
4
- // ICONS — exact SVG glyphs exported from Figma (Super-App Design, node
5
- // 8962-162657, `number input`): 16×16 icon box, glyph 10.67×10.67 centred,
6
- // stroke 1.33, round caps. Rendered 1:1 via mask (same technique as the
7
- // checkbox icons) so strokes keep the designed weight, and the Element Plus
8
- // default arrow svg inside the steppers is hidden (see `.el-icon` below —
9
- // this intentionally applies to every caller, slotted icons included).
10
- // ─────────────────────────────────────────────────────────────────────────────
11
- $inum-minus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.66667 8H13.33333' stroke='black' stroke-width='1.33333' stroke-linecap='round'/%3E%3C/svg%3E");
12
- $inum-plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 2.66667V13.33333M2.66667 8H13.33333' stroke='black' stroke-width='1.33333' stroke-linecap='round'/%3E%3C/svg%3E");
13
-
14
3
  // ─── Reusable base styles (can be included in other components) ───────────────
15
4
  @mixin input-number-base {
16
5
  border: 1px solid var(--er-border-default);
@@ -74,37 +63,16 @@ $inum-plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
74
63
  .el-icon {
75
64
  width: var(--er-control-height-sm);
76
65
  height: var(--er-control-height-sm);
77
-
78
- // Figma −/+ glyphs replace the Element Plus default arrow svg.
79
- // `background-color: currentColor` keeps the mask in sync with the
80
- // button's existing color / hover / disabled logic.
81
- svg {
82
- display: none;
83
- }
84
-
85
- background-color: currentColor;
86
- -webkit-mask: $inum-minus-icon center / 16px 16px no-repeat;
87
- mask: $inum-minus-icon center / 16px 16px no-repeat;
88
66
  }
89
67
  }
90
68
 
91
69
  .el-input-number__decrease {
92
70
  order: 1;
93
71
  left: 0px;
94
-
95
- .el-icon {
96
- -webkit-mask-image: $inum-minus-icon;
97
- mask-image: $inum-minus-icon;
98
- }
99
72
  }
100
73
  .el-input-number__increase {
101
74
  right: 0px;
102
75
  order: 3;
103
-
104
- .el-icon {
105
- -webkit-mask-image: $inum-plus-icon;
106
- mask-image: $inum-plus-icon;
107
- }
108
76
  }
109
77
 
110
78
  &.is-disabled {
@@ -132,7 +100,7 @@ $inum-plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
132
100
  }
133
101
  }
134
102
 
135
- @mixin input-number-size($height, $button-size, $button-radius) {
103
+ @mixin input-number-size($height, $button-size, $icon-size, $button-radius) {
136
104
  height: $height !important;
137
105
  min-height: $height !important;
138
106
 
@@ -141,6 +109,11 @@ $inum-plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
141
109
  border-radius: $button-radius;
142
110
  width: $button-size;
143
111
  height: $button-size;
112
+
113
+ svg {
114
+ width: $icon-size;
115
+ height: $icon-size;
116
+ }
144
117
  }
145
118
  }
146
119
 
@@ -205,6 +178,7 @@ $inum-plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
205
178
  @include input-number-size(
206
179
  var(--er-control-height-sm),
207
180
  var(--er-control-height-sm),
181
+ var(--er-control-height-xxs),
208
182
  var(--er-shape-corner-50)
209
183
  );
210
184
 
@@ -224,6 +198,7 @@ $inum-plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
224
198
  @include input-number-size(
225
199
  var(--er-control-height-md),
226
200
  var(--er-control-height-md),
201
+ var(--er-control-height-xs),
227
202
  var(--er-shape-corner-100)
228
203
  );
229
204
 
@@ -242,6 +217,7 @@ $inum-plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
242
217
  @include input-number-size(
243
218
  var(--er-control-height-lg),
244
219
  var(--er-control-height-lg),
220
+ var(--er-control-height-xs),
245
221
  var(--er-shape-corner-150)
246
222
  );
247
223
 
@@ -24,8 +24,7 @@
24
24
  .custom-link.el-link {
25
25
  @include typo.label-md;
26
26
 
27
- &.is-underline,
28
- &.is-hover-underline {
27
+ &.is-underline {
29
28
  &::after {
30
29
  content: '';
31
30
  position: absolute;
@@ -18,7 +18,7 @@
18
18
  @content;
19
19
 
20
20
  &.is-selected {
21
- .custom-popper__option-text {
21
+ .custom-popper__option-text{
22
22
  color: var(--er-text-brand);
23
23
  }
24
24
 
@@ -95,25 +95,6 @@
95
95
  }
96
96
  }
97
97
 
98
- .custom-popper__option-prefix {
99
- display: flex;
100
- align-items: center;
101
- flex-shrink: 0;
102
- color: var(--er-icon-secondary);
103
- }
104
-
105
- .custom-popper__option-text.has-description {
106
- display: flex;
107
- flex-direction: column;
108
- gap: 1px;
109
- line-height: 1.25;
110
- }
111
-
112
- .custom-popper__option-desc {
113
- @include typo.body-sm;
114
- color: var(--er-text-secondary);
115
- }
116
-
117
98
  .custom-popper__option-checkbox {
118
99
  pointer-events: none;
119
100
  }
@@ -203,7 +184,7 @@
203
184
  }
204
185
  }
205
186
 
206
- &.danger {
187
+ &.danger{
207
188
  li.is-selected {
208
189
  background-color: var(--er-action-danger-subtle-pressed,);
209
190
  }
@@ -219,7 +200,7 @@
219
200
  var(--er-shape-spacing-50),
220
201
  var(--er-shape-corner-75),
221
202
  var(--er-shape-spacing-50),
222
- var(--er-shape-spacing-150) // Figma: sm icon 12px
203
+ var(--er-control-height-xxs)
223
204
  ) {
224
205
  @include typo.body-sm;
225
206
 
@@ -241,7 +222,7 @@
241
222
  var(--er-shape-spacing-75),
242
223
  var(--er-shape-corner-100),
243
224
  var(--er-shape-spacing-75),
244
- var(--er-control-height-xxs) // Figma: md icon 16px
225
+ var(--er-control-height-xs)
245
226
  ) {
246
227
  > div {
247
228
  gap: var(--er-shape-spacing-100);
@@ -256,7 +237,7 @@
256
237
  var(--er-shape-spacing-75),
257
238
  var(--er-shape-corner-150),
258
239
  var(--er-shape-spacing-75),
259
- var(--er-control-height-xxs) // Figma: lg icon 16px
240
+ var(--er-control-height-xs)
260
241
  ) {
261
242
  > div {
262
243
  gap: var(--er-shape-spacing-100);
@@ -271,10 +252,8 @@
271
252
  var(--er-shape-spacing-75),
272
253
  var(--er-shape-corner-150),
273
254
  var(--er-shape-spacing-75),
274
- var(--er-control-height-xs) // Figma: xl icon 20px
255
+ var(--er-control-height-xs)
275
256
  ) {
276
- @include typo.body-lg;
277
-
278
257
  > div {
279
258
  gap: var(--er-shape-spacing-100);
280
259
  }
@@ -26,6 +26,16 @@
26
26
  margin: 2px;
27
27
  }
28
28
 
29
+ .el-radio-button.is-active .el-radio-button__inner {
30
+ border: none;
31
+ background-color: var(--er-action-neutral-default);
32
+ color: var(--er-text-inverse);
33
+
34
+ &::after {
35
+ background-color: var(--er-surface-fixed-white);
36
+ }
37
+ }
38
+
29
39
  .el-radio__input.is-checked .el-radio__inner {
30
40
  border-color: var(--er-action-primary-default);
31
41
  background-color: var(--er-action-primary-default);
@@ -76,6 +76,11 @@
76
76
  }
77
77
  }
78
78
 
79
+ .el-select__prefix,
80
+ .el-select__suffix {
81
+ color: var(--er-icon-secondary)
82
+ }
83
+
79
84
  &.sm {
80
85
  .el-select__selection,
81
86
  .el-select__selected-item {
@@ -174,6 +174,7 @@ const Z5 = /* @__PURE__ */ s1({
174
174
  plain: { type: Boolean, default: !1 },
175
175
  link: { type: Boolean, default: !1 },
176
176
  ghost: { type: Boolean, default: !1 },
177
+ round: { type: Boolean, default: !1 },
177
178
  unsetWidth: { type: Boolean },
178
179
  isIconOnly: { type: Boolean, default: !1 }
179
180
  },
@@ -185,6 +186,7 @@ const Z5 = /* @__PURE__ */ s1({
185
186
  e.box && "is-box",
186
187
  !e.background && "no-background",
187
188
  e.ghost && "is-ghost",
189
+ e.round && "is-round",
188
190
  e.unsetWidth && "unset-width",
189
191
  e.isIconOnly && "is-icon-only"
190
192
  ]);
@@ -82938,7 +82940,7 @@ const MP1 = [
82938
82940
  footer: z(() => [
82939
82941
  o("div", bT1, [
82940
82942
  A(x, {
82941
- color: "secondary",
82943
+ color: "contrast",
82942
82944
  onClick: u
82943
82945
  }, {
82944
82946
  default: z(() => [...C[2] || (C[2] = [
@@ -83552,7 +83554,7 @@ const MP1 = [
83552
83554
  }, null, 8, ["modelValue", "disabled"]),
83553
83555
  A(m(T1), {
83554
83556
  class: "custom-order-actions__button custom-order-actions__button--fill custom-order-actions__button--padded",
83555
- color: "error",
83557
+ color: "danger",
83556
83558
  loading: m(n)[m(z4).Sell],
83557
83559
  disabled: m(c).disabled,
83558
83560
  onClick: t1[2] || (t1[2] = (q) => k(m(z4).Sell))
@@ -85243,7 +85245,7 @@ const b4 = /* @__PURE__ */ G6(tN1), X2 = {
85243
85245
  o("div", pN1, [
85244
85246
  A(G, {
85245
85247
  class: "custom-trading-table__column-dialog-action-button",
85246
- color: "secondary",
85248
+ color: "contrast",
85247
85249
  onClick: m(c)
85248
85250
  }, {
85249
85251
  default: z(() => [
@@ -90705,7 +90707,7 @@ const $q1 = (t) => typeof t == "object" && t !== null, c0 = (t, e) => $q1(t) &&
90705
90707
  footer: z(() => [
90706
90708
  o("div", Eq1, [
90707
90709
  A(c, {
90708
- color: "secondary",
90710
+ color: "contrast",
90709
90711
  onClick: n[1] || (n[1] = (h) => s("close"))
90710
90712
  }, {
90711
90713
  default: z(() => [...n[5] || (n[5] = [
@@ -90792,7 +90794,7 @@ const $q1 = (t) => typeof t == "object" && t !== null, c0 = (t, e) => $q1(t) &&
90792
90794
  footer: z(() => [
90793
90795
  o("div", Wq1, [
90794
90796
  A(h, {
90795
- color: "secondary",
90797
+ color: "contrast",
90796
90798
  onClick: i[1] || (i[1] = (v) => s("close"))
90797
90799
  }, {
90798
90800
  default: z(() => [...i[7] || (i[7] = [
@@ -91182,7 +91184,7 @@ const rK1 = { class: "grid grid-cols-2 gap-lg" }, nK1 = { class: "flex items-cen
91182
91184
  footer: z(() => [
91183
91185
  A(z1, {
91184
91186
  size: "sm",
91185
- color: "secondary",
91187
+ color: "contrast",
91186
91188
  background: !1,
91187
91189
  class: "w-full",
91188
91190
  onClick: m(d1)