@pismo/marola 1.0.0-beta.7 → 1.0.0-beta.9

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 (78) hide show
  1. package/dist/{Button-2b1peDFT.js → Button-DiLqcAJG.js} +2 -2
  2. package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-BaJ-OV_7.js} +4 -3
  3. package/dist/Dialog.module-DFcZsVAd.js +30 -0
  4. package/dist/Input.module-ZTRZRcNt.js +405 -0
  5. package/dist/{Popup-B6ZSGIEI.js → Popup-lLWZt2wk.js} +3 -3
  6. package/dist/{Portal-DIeBsWdL.js → Portal-B_Es6eUL.js} +2 -2
  7. package/dist/SelectButton-CoOT2txy.js +61 -0
  8. package/dist/Toggle-f5brSwAI.js +175 -0
  9. package/dist/assets/Advice.css +1 -1
  10. package/dist/assets/Autocomplete.css +1 -0
  11. package/dist/assets/Button.css +1 -1
  12. package/dist/assets/Checkbox.css +1 -1
  13. package/dist/assets/Dialog.css +1 -1
  14. package/dist/assets/IconButton.css +1 -1
  15. package/dist/assets/Input.css +1 -1
  16. package/dist/assets/PageHeader.css +1 -1
  17. package/dist/assets/Pagination.css +1 -1
  18. package/dist/assets/SelectButton.css +1 -1
  19. package/dist/assets/Snackbar.css +1 -1
  20. package/dist/assets/SortTooltip.css +1 -1
  21. package/dist/assets/Stepper.css +1 -1
  22. package/dist/assets/Table.css +1 -1
  23. package/dist/assets/Toggle.css +1 -1
  24. package/dist/assets/Toggle2.css +1 -1
  25. package/dist/assets/Typography.css +1 -1
  26. package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-BtBYUV_B.js} +1 -1
  27. package/dist/components/Advice/Advice.d.ts +32 -17
  28. package/dist/components/Advice/Advice.js +39 -40
  29. package/dist/components/Advice/Advice.stories.d.ts +4 -3
  30. package/dist/components/Autocomplete/Autocomplete.d.ts +50 -0
  31. package/dist/components/Autocomplete/Autocomplete.js +689 -0
  32. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +45 -0
  33. package/dist/components/Button/Button.js +48 -48
  34. package/dist/components/Checkbox/Checkbox.js +52 -52
  35. package/dist/components/Chip/Chip.js +3 -3
  36. package/dist/components/Dialog/Actions.js +1 -1
  37. package/dist/components/Dialog/Backdrop.js +1 -1
  38. package/dist/components/Dialog/CloseIconButton.js +2 -2
  39. package/dist/components/Dialog/Dialog.js +13 -12
  40. package/dist/components/Dialog/Dialog.stories.d.ts +43 -43
  41. package/dist/components/Dialog/DialogTitle.js +1 -1
  42. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
  43. package/dist/components/IconButton/IconButton.js +42 -42
  44. package/dist/components/Input/Input.js +74 -471
  45. package/dist/components/PageHeader/PageHeader.js +57 -57
  46. package/dist/components/Pagination/Pagination.js +70 -70
  47. package/dist/components/RowItem/RowItem.js +2 -2
  48. package/dist/components/Select/Select.js +8 -7
  49. package/dist/components/Select/SelectButton.js +1 -1
  50. package/dist/components/Snackbar/Snackbar.js +94 -94
  51. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  52. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  53. package/dist/components/Stepper/Stepper.js +35 -35
  54. package/dist/components/Table/Table.js +96 -96
  55. package/dist/components/Tabs/Tab.js +18 -17
  56. package/dist/components/Tabs/TabPanel.js +27 -26
  57. package/dist/components/Tabs/Tabs.js +25 -25
  58. package/dist/components/Toggle/Toggle.js +55 -55
  59. package/dist/components/ToggleGroup/Toggle.js +2 -2
  60. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  61. package/dist/components/Tooltip/Tooltip.js +3 -3
  62. package/dist/components/Typography/Typography.js +47 -47
  63. package/dist/{index-CjW42-M-.js → index-D3Wj0eid.js} +1 -1
  64. package/dist/main.d.ts +1 -0
  65. package/dist/main.js +77 -75
  66. package/dist/ownerDocument-B61GUaFs.js +33 -0
  67. package/dist/{useButton-DNk3wrQp.js → useButton-Bn3MNH8I.js} +1 -1
  68. package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
  69. package/dist/useEventCallback-BAQJJ3ye.js +14 -0
  70. package/dist/useId-BW-oWmul.js +19 -0
  71. package/dist/{useList-B0hog_3-.js → useList-BpJT77u3.js} +2 -2
  72. package/dist/{index-CH45lKw7.js → useSlotProps-kRhf7Gil.js} +93 -94
  73. package/package.json +1 -1
  74. package/dist/Dialog.module-DFEmFdYT.js +0 -30
  75. package/dist/SelectButton-K3OIfR5m.js +0 -61
  76. package/dist/Toggle-BWF0-SPB.js +0 -175
  77. package/dist/useCompoundItem-D1iRfg8D.js +0 -84
  78. package/dist/useEventCallback-xTG9piMa.js +0 -45
@@ -0,0 +1,68 @@
1
+ import * as o from "react";
2
+ import { u as I } from "./useEnhancedEffect-CJGo-L3B.js";
3
+ const p = /* @__PURE__ */ o.createContext(null);
4
+ process.env.NODE_ENV !== "production" && (p.displayName = "CompoundComponentContext");
5
+ function b(t) {
6
+ const c = Array.from(t.keys()).map((e) => {
7
+ const r = t.get(e);
8
+ return {
9
+ key: e,
10
+ subitem: r
11
+ };
12
+ });
13
+ return c.sort((e, r) => {
14
+ const n = e.subitem.ref.current, s = r.subitem.ref.current;
15
+ return n === null || s === null || n === s ? 0 : n.compareDocumentPosition(s) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
16
+ }), new Map(c.map((e) => [e.key, e.subitem]));
17
+ }
18
+ function x() {
19
+ const [t, c] = o.useState(/* @__PURE__ */ new Map()), e = o.useRef(/* @__PURE__ */ new Set()), r = o.useCallback(function(i) {
20
+ e.current.delete(i), c((a) => {
21
+ const u = new Map(a);
22
+ return u.delete(i), u;
23
+ });
24
+ }, []), n = o.useCallback(function(i, a) {
25
+ let u;
26
+ return typeof i == "function" ? u = i(e.current) : u = i, e.current.add(u), c((C) => {
27
+ const l = new Map(C);
28
+ return l.set(u, a), l;
29
+ }), {
30
+ id: u,
31
+ deregister: () => r(u)
32
+ };
33
+ }, [r]), s = o.useMemo(() => b(t), [t]), m = o.useCallback(function(i) {
34
+ return Array.from(s.keys()).indexOf(i);
35
+ }, [s]);
36
+ return {
37
+ contextValue: o.useMemo(() => ({
38
+ getItemIndex: m,
39
+ registerItem: n,
40
+ totalSubitemCount: t.size
41
+ }), [m, n, t.size]),
42
+ subitems: s
43
+ };
44
+ }
45
+ function S(t, c) {
46
+ const e = o.useContext(p);
47
+ if (e === null)
48
+ throw new Error("useCompoundItem must be used within a useCompoundParent");
49
+ const {
50
+ registerItem: r
51
+ } = e, [n, s] = o.useState(typeof t == "function" ? void 0 : t);
52
+ return I(() => {
53
+ const {
54
+ id: m,
55
+ deregister: d
56
+ } = r(t, c);
57
+ return s(m), d;
58
+ }, [r, c, t]), {
59
+ id: n,
60
+ index: n !== void 0 ? e.getItemIndex(n) : -1,
61
+ totalItemCount: e.totalSubitemCount
62
+ };
63
+ }
64
+ export {
65
+ p as C,
66
+ x as a,
67
+ S as u
68
+ };
@@ -0,0 +1,14 @@
1
+ import * as t from "react";
2
+ import { u as c } from "./useEnhancedEffect-CJGo-L3B.js";
3
+ function s(e) {
4
+ const r = t.useRef(e);
5
+ return c(() => {
6
+ r.current = e;
7
+ }), t.useRef((...u) => (
8
+ // @ts-expect-error hide `this`
9
+ (0, r.current)(...u)
10
+ )).current;
11
+ }
12
+ export {
13
+ s as u
14
+ };
@@ -0,0 +1,19 @@
1
+ import * as e from "react";
2
+ let n = 0;
3
+ function l(t) {
4
+ const [u, o] = e.useState(t), a = t || u;
5
+ return e.useEffect(() => {
6
+ u == null && (n += 1, o(`mui-${n}`));
7
+ }, [u]), a;
8
+ }
9
+ const s = e.useId;
10
+ function c(t) {
11
+ if (s !== void 0) {
12
+ const u = s();
13
+ return t ?? u;
14
+ }
15
+ return l(t);
16
+ }
17
+ export {
18
+ c as u
19
+ };
@@ -1,6 +1,6 @@
1
- import { b as p, u as re, f as ie } from "./index-CH45lKw7.js";
1
+ import { b as p, u as re, f as ie } from "./useSlotProps-kRhf7Gil.js";
2
2
  import * as f from "react";
3
- import { L as x } from "./combineHooksSlotProps-DVjg9PRh.js";
3
+ import { L as x } from "./combineHooksSlotProps-BtBYUV_B.js";
4
4
  function W(t, e, r = (n, l) => n === l) {
5
5
  return t.length === e.length && t.every((n, l) => r(n, e[l]));
6
6
  }
@@ -11,36 +11,7 @@ function Y() {
11
11
  return e;
12
12
  }, Y.apply(this, arguments);
13
13
  }
14
- function _e(e) {
15
- return typeof e == "string";
16
- }
17
- function Re(e, s, t) {
18
- return e === void 0 || _e(e) ? s : Y({}, s, {
19
- ownerState: Y({}, s.ownerState, t)
20
- });
21
- }
22
- const xe = {
23
- disableDefaultClasses: !1
24
- }, Se = /* @__PURE__ */ ue.createContext(xe);
25
- process.env.NODE_ENV !== "production" && (Se.displayName = "ClassNameConfiguratorContext");
26
- function Ke(e) {
27
- const {
28
- disableDefaultClasses: s
29
- } = ue.useContext(Se);
30
- return (t) => s ? "" : e(t);
31
- }
32
- function we(e, s = []) {
33
- if (e === void 0)
34
- return {};
35
- const t = {};
36
- return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
37
- t[n] = e[n];
38
- }), t;
39
- }
40
- function Ae(e, s, t) {
41
- return typeof e == "function" ? e(s, t) : e;
42
- }
43
- function je(e, s) {
14
+ function _e(e, s) {
44
15
  if (e == null)
45
16
  return {};
46
17
  var t = {};
@@ -52,7 +23,7 @@ function je(e, s) {
52
23
  }
53
24
  return t;
54
25
  }
55
- function $e(e) {
26
+ function Re(e) {
56
27
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
57
28
  }
58
29
  var se = { exports: {} }, V = { exports: {} }, P = {};
@@ -65,7 +36,7 @@ var se = { exports: {} }, V = { exports: {} }, P = {};
65
36
  * LICENSE file in the root directory of this source tree.
66
37
  */
67
38
  var de;
68
- function Ie() {
39
+ function xe() {
69
40
  if (de)
70
41
  return P;
71
42
  de = 1;
@@ -141,7 +112,7 @@ var O = {};
141
112
  * LICENSE file in the root directory of this source tree.
142
113
  */
143
114
  var pe;
144
- function Me() {
115
+ function we() {
145
116
  return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
146
117
  var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
147
118
  function j(o) {
@@ -224,8 +195,8 @@ function Me() {
224
195
  }()), O;
225
196
  }
226
197
  var ye;
227
- function Pe() {
228
- return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports = Ie() : V.exports = Me()), V.exports;
198
+ function Se() {
199
+ return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports = xe() : V.exports = we()), V.exports;
229
200
  }
230
201
  /*
231
202
  object-assign
@@ -233,7 +204,7 @@ object-assign
233
204
  @license MIT
234
205
  */
235
206
  var re, ve;
236
- function qe() {
207
+ function Ae() {
237
208
  if (ve)
238
209
  return re;
239
210
  ve = 1;
@@ -288,18 +259,18 @@ function ce() {
288
259
  return te = e, te;
289
260
  }
290
261
  var ne, be;
291
- function Oe() {
262
+ function Pe() {
292
263
  return be || (be = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
293
264
  }
294
265
  var oe, he;
295
- function Ye() {
266
+ function je() {
296
267
  if (he)
297
268
  return oe;
298
269
  he = 1;
299
270
  var e = function() {
300
271
  };
301
272
  if (process.env.NODE_ENV !== "production") {
302
- var s = ce(), t = {}, n = Oe();
273
+ var s = ce(), t = {}, n = Pe();
303
274
  e = function(u) {
304
275
  var h = "Warning: " + u;
305
276
  typeof console < "u" && console.error(h);
@@ -342,11 +313,11 @@ function Ye() {
342
313
  }, oe = c, oe;
343
314
  }
344
315
  var ie, Ee;
345
- function De() {
316
+ function $e() {
346
317
  if (Ee)
347
318
  return ie;
348
319
  Ee = 1;
349
- var e = Pe(), s = qe(), t = ce(), n = Oe(), c = Ye(), u = function() {
320
+ var e = Se(), s = Ae(), t = ce(), n = Pe(), c = je(), u = function() {
350
321
  };
351
322
  process.env.NODE_ENV !== "production" && (u = function(f) {
352
323
  var _ = "Warning: " + f;
@@ -664,7 +635,7 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
664
635
  }, ie;
665
636
  }
666
637
  var ae, ge;
667
- function ke() {
638
+ function Ie() {
668
639
  if (ge)
669
640
  return ae;
670
641
  ge = 1;
@@ -713,12 +684,45 @@ function ke() {
713
684
  }, ae;
714
685
  }
715
686
  if (process.env.NODE_ENV !== "production") {
716
- var We = Pe(), Le = !0;
717
- se.exports = De()(We.isElement, Le);
687
+ var Me = Se(), qe = !0;
688
+ se.exports = $e()(Me.isElement, qe);
718
689
  } else
719
- se.exports = ke()();
720
- var Ne = se.exports;
721
- const Qe = /* @__PURE__ */ $e(Ne);
690
+ se.exports = Ie()();
691
+ var Ye = se.exports;
692
+ const Ke = /* @__PURE__ */ Re(Ye);
693
+ function De(e) {
694
+ return typeof e == "string";
695
+ }
696
+ const ke = {
697
+ active: "active",
698
+ checked: "checked",
699
+ completed: "completed",
700
+ disabled: "disabled",
701
+ error: "error",
702
+ expanded: "expanded",
703
+ focused: "focused",
704
+ focusVisible: "focusVisible",
705
+ open: "open",
706
+ readOnly: "readOnly",
707
+ required: "required",
708
+ selected: "selected"
709
+ }, Oe = "base";
710
+ function We(e) {
711
+ return `${Oe}--${e}`;
712
+ }
713
+ function Le(e, s) {
714
+ return `${Oe}-${e}-${s}`;
715
+ }
716
+ function Ne(e, s) {
717
+ const t = ke[s];
718
+ return t ? We(t) : Le(e, s);
719
+ }
720
+ function Qe(e, s) {
721
+ const t = {};
722
+ return s.forEach((n) => {
723
+ t[n] = Ne(e, n);
724
+ }), t;
725
+ }
722
726
  function Fe(e, s) {
723
727
  typeof e == "function" ? e(s) : e && (e.current = s);
724
728
  }
@@ -745,20 +749,32 @@ function er(e, s, t = void 0) {
745
749
  }
746
750
  ), n;
747
751
  }
748
- const ze = {
749
- active: "active",
750
- checked: "checked",
751
- completed: "completed",
752
- disabled: "disabled",
753
- error: "error",
754
- expanded: "expanded",
755
- focused: "focused",
756
- focusVisible: "focusVisible",
757
- open: "open",
758
- readOnly: "readOnly",
759
- required: "required",
760
- selected: "selected"
761
- };
752
+ function ze(e, s, t) {
753
+ return e === void 0 || De(e) ? s : Y({}, s, {
754
+ ownerState: Y({}, s.ownerState, t)
755
+ });
756
+ }
757
+ const He = {
758
+ disableDefaultClasses: !1
759
+ }, Ce = /* @__PURE__ */ ue.createContext(He);
760
+ process.env.NODE_ENV !== "production" && (Ce.displayName = "ClassNameConfiguratorContext");
761
+ function rr(e) {
762
+ const {
763
+ disableDefaultClasses: s
764
+ } = ue.useContext(Ce);
765
+ return (t) => s ? "" : e(t);
766
+ }
767
+ function Ve(e, s = []) {
768
+ if (e === void 0)
769
+ return {};
770
+ const t = {};
771
+ return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
772
+ t[n] = e[n];
773
+ }), t;
774
+ }
775
+ function Be(e, s, t) {
776
+ return typeof e == "function" ? e(s, t) : e;
777
+ }
762
778
  function Te(e) {
763
779
  if (e === void 0)
764
780
  return {};
@@ -767,7 +783,7 @@ function Te(e) {
767
783
  s[t] = e[t];
768
784
  }), s;
769
785
  }
770
- function He(e) {
786
+ function Je(e) {
771
787
  const {
772
788
  getSlotProps: s,
773
789
  additionalProps: t,
@@ -782,59 +798,42 @@ function He(e) {
782
798
  internalRef: void 0
783
799
  };
784
800
  }
785
- const h = we(Y({}, c, n)), f = Te(n), _ = Te(c), v = s(h), m = le(v == null ? void 0 : v.className, t == null ? void 0 : t.className, u, c == null ? void 0 : c.className, n == null ? void 0 : n.className), S = Y({}, v == null ? void 0 : v.style, t == null ? void 0 : t.style, c == null ? void 0 : c.style, n == null ? void 0 : n.style), x = Y({}, v, t, _, f);
801
+ const h = Ve(Y({}, c, n)), f = Te(n), _ = Te(c), v = s(h), m = le(v == null ? void 0 : v.className, t == null ? void 0 : t.className, u, c == null ? void 0 : c.className, n == null ? void 0 : n.className), S = Y({}, v == null ? void 0 : v.style, t == null ? void 0 : t.style, c == null ? void 0 : c.style, n == null ? void 0 : n.style), x = Y({}, v, t, _, f);
786
802
  return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
787
803
  props: x,
788
804
  internalRef: v.ref
789
805
  };
790
806
  }
791
- const Ve = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
792
- function rr(e) {
807
+ const Xe = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
808
+ function tr(e) {
793
809
  var s;
794
810
  const {
795
811
  elementType: t,
796
812
  externalSlotProps: n,
797
813
  ownerState: c,
798
814
  skipResolvingSlotProps: u = !1
799
- } = e, h = je(e, Ve), f = u ? {} : Ae(n, c), {
815
+ } = e, h = _e(e, Xe), f = u ? {} : Be(n, c), {
800
816
  props: _,
801
817
  internalRef: v
802
- } = He(Y({}, h, {
818
+ } = Je(Y({}, h, {
803
819
  externalSlotProps: f
804
820
  })), m = Ue(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
805
- return Re(t, Y({}, _, {
821
+ return ze(t, Y({}, _, {
806
822
  ref: m
807
823
  }), c);
808
824
  }
809
- const Ce = "base";
810
- function Be(e) {
811
- return `${Ce}--${e}`;
812
- }
813
- function Je(e, s) {
814
- return `${Ce}-${e}-${s}`;
815
- }
816
- function Xe(e, s) {
817
- const t = ze[s];
818
- return t ? Be(t) : Je(e, s);
819
- }
820
- function tr(e, s) {
821
- const t = {};
822
- return s.forEach((n) => {
823
- t[n] = Xe(e, n);
824
- }), t;
825
- }
826
825
  export {
827
- Qe as P,
828
- je as _,
829
- tr as a,
826
+ Ke as P,
827
+ _e as _,
828
+ Qe as a,
830
829
  Y as b,
831
- rr as c,
830
+ tr as c,
832
831
  er as d,
833
- Ke as e,
834
- we as f,
835
- Xe as g,
836
- $e as h,
837
- _e as i,
832
+ rr as e,
833
+ Ve as f,
834
+ Ne as g,
835
+ Re as h,
836
+ De as i,
838
837
  Fe as s,
839
838
  Ue as u
840
839
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "1.0.0-beta.7",
4
+ "version": "1.0.0-beta.9",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,30 +0,0 @@
1
- import './assets/Dialog.css';
2
- const _ = "_dialog__subtitle_yi7uo_52", o = "_dialog_yi7uo_52", a = "_dialog__backdrop_yi7uo_87", y = "_dialog__panel_yi7uo_95", i = "_dialog__title_yi7uo_56", p = "_dialog__divider_yi7uo_121", t = "_dialog__actions_yi7uo_134", u = {
3
- "u-typography-h1": "_u-typography-h1_yi7uo_1",
4
- "u-typography-h2": "_u-typography-h2_yi7uo_8",
5
- "u-typography-h3": "_u-typography-h3_yi7uo_15",
6
- "u-typography-h4": "_u-typography-h4_yi7uo_22",
7
- "u-typography-h5": "_u-typography-h5_yi7uo_29",
8
- "u-typography-h6": "_u-typography-h6_yi7uo_36",
9
- "u-typography-base": "_u-typography-base_yi7uo_43",
10
- "u-typography-base--xxl": "_u-typography-base--xxl_yi7uo_48",
11
- "u-typography-base--xl": "_u-typography-base--xl_yi7uo_52",
12
- dialog__subtitle: _,
13
- "u-typography-base--lg": "_u-typography-base--lg_yi7uo_56",
14
- "dialog__title--small": "_dialog__title--small_yi7uo_56",
15
- "u-typography-base--sm": "_u-typography-base--sm_yi7uo_60",
16
- "u-typography-base--bold": "_u-typography-base--bold_yi7uo_64",
17
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_yi7uo_67",
18
- "u-typography-base--underlined": "_u-typography-base--underlined_yi7uo_70",
19
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_yi7uo_73",
20
- dialog: o,
21
- dialog__backdrop: a,
22
- dialog__panel: y,
23
- dialog__title: i,
24
- dialog__divider: p,
25
- "dialog__close-icon": "_dialog__close-icon_yi7uo_125",
26
- dialog__actions: t
27
- };
28
- export {
29
- u as s
30
- };
@@ -1,61 +0,0 @@
1
- import './assets/SelectButton.css';
2
- import { jsxs as l, jsx as _ } from "react/jsx-runtime";
3
- import * as o from "react";
4
- import { forwardRef as u } from "react";
5
- import { c as b } from "./clsx-DB4S2d7J.js";
6
- import { Typography as y } from "./components/Typography/Typography.js";
7
- const g = "_select__listbox__option__text_11qky_64", x = "_select_11qky_64", d = "_select__popup_11qky_80", k = "_select__listbox_11qky_64", q = "_select__listbox__option_11qky_64", m = "_select__listbox__option__icon_11qky_101", w = "_select__list__option__icon_11qky_122", e = {
8
- "u-typography-h1": "_u-typography-h1_11qky_1",
9
- "u-typography-h2": "_u-typography-h2_11qky_8",
10
- "u-typography-h3": "_u-typography-h3_11qky_15",
11
- "u-typography-h4": "_u-typography-h4_11qky_22",
12
- "u-typography-h5": "_u-typography-h5_11qky_29",
13
- "u-typography-h6": "_u-typography-h6_11qky_36",
14
- "u-typography-base": "_u-typography-base_11qky_43",
15
- "u-typography-base--xxl": "_u-typography-base--xxl_11qky_48",
16
- "u-typography-base--xl": "_u-typography-base--xl_11qky_52",
17
- "u-typography-base--lg": "_u-typography-base--lg_11qky_56",
18
- "u-typography-base--sm": "_u-typography-base--sm_11qky_60",
19
- "u-typography-base--bold": "_u-typography-base--bold_11qky_64",
20
- select__listbox__option__text: g,
21
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_11qky_67",
22
- "u-typography-base--underlined": "_u-typography-base--underlined_11qky_70",
23
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_11qky_73",
24
- select: x,
25
- select__popup: d,
26
- select__listbox: k,
27
- select__listbox__option: q,
28
- select__listbox__option__icon: m,
29
- "select__listbox__option--disabled": "_select__listbox__option--disabled_11qky_105",
30
- "select__listbox__option--selected": "_select__listbox__option--selected_11qky_114",
31
- select__list__option__icon: w,
32
- "select-button": "_select-button_11qky_127",
33
- "base-Select-popup": "_base-Select-popup_11qky_145",
34
- "select-button__text": "_select-button__text_11qky_148",
35
- "select-button__icon": "_select-button__icon_11qky_157",
36
- "select-button--active": "_select-button--active_11qky_163"
37
- }, C = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M2.11104 4.9999C2.36691 4.9999 2.62291 5.09756 2.81791 5.29287L8.11104 10.5843L13.4048 5.29053C13.7954 4.8999 14.4282 4.8999 14.8188 5.29053C15.2095 5.68115 15.2095 6.31396 14.8188 6.70459L8.81885 12.7046C8.42822 13.0952 7.79541 13.0952 7.40479 12.7046L1.40479 6.70459C1.01416 6.31396 1.01416 5.68115 1.40479 5.29053C1.59854 5.09678 1.85479 4.9999 2.11104 4.9999Z", fill: "currentColor" })), f = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M13.8889 11C13.633 11 13.377 10.9023 13.182 10.707L7.8889 5.41563L2.59515 10.7094C2.20453 11.1 1.57172 11.1 1.18109 10.7094C0.790466 10.3188 0.790466 9.68594 1.18109 9.29532L7.18109 3.29532C7.57172 2.90469 8.20453 2.90469 8.59515 3.29532L14.5952 9.29532C14.9858 9.68594 14.9858 10.3188 14.5952 10.7094C14.4014 10.9031 14.1452 11 13.8889 11Z", fill: "#3F3D4B", fillOpacity: 0.88 })), E = u((t, a) => {
38
- const { children: c, disabled: i, className: n, "data-testid": r, prefix: s, onClick: h } = t, p = t["aria-expanded"];
39
- return /* @__PURE__ */ l(
40
- "button",
41
- {
42
- className: b(n, p ? e["select-button--active"] : "", e["select-button"]),
43
- type: "button",
44
- onClick: h,
45
- disabled: i,
46
- "data-testid": r,
47
- ref: a,
48
- children: [
49
- /* @__PURE__ */ l("span", { className: e["select-button__text"], children: [
50
- s && /* @__PURE__ */ _(y, { children: s }),
51
- /* @__PURE__ */ _(y, { children: c })
52
- ] }),
53
- /* @__PURE__ */ _("span", { className: e["select-button__icon"], children: p ? /* @__PURE__ */ _(f, {}) : /* @__PURE__ */ _(C, {}) })
54
- ]
55
- }
56
- );
57
- });
58
- export {
59
- E as S,
60
- e as s
61
- };