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

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 (168) hide show
  1. package/dist/{Button-BAljjMv3.js → Button-2b1peDFT.js} +2 -2
  2. package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
  3. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  4. package/dist/Group-B3p31ftp.js +26 -0
  5. package/dist/{Popup-Ck3XlWMq.js → Popup-B6ZSGIEI.js} +3 -3
  6. package/dist/{Portal-oY3enyAm.js → Portal-DIeBsWdL.js} +2 -2
  7. package/dist/SelectButton-K3OIfR5m.js +61 -0
  8. package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
  9. package/dist/Toggle-BWF0-SPB.js +175 -0
  10. package/dist/assets/Advice.css +1 -1
  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/EllipsisTooltip.css +1 -1
  15. package/dist/assets/Group.css +1 -1
  16. package/dist/assets/IconButton.css +1 -1
  17. package/dist/assets/Input.css +1 -1
  18. package/dist/assets/PageHeader.css +1 -1
  19. package/dist/assets/Pagination.css +1 -1
  20. package/dist/assets/SelectButton.css +1 -1
  21. package/dist/assets/Skeleton.css +1 -1
  22. package/dist/assets/Snackbar.css +1 -1
  23. package/dist/assets/SortTooltip.css +1 -1
  24. package/dist/assets/Stepper.css +1 -1
  25. package/dist/assets/Table.css +1 -1
  26. package/dist/assets/Tabs.css +1 -1
  27. package/dist/assets/Toggle.css +1 -1
  28. package/dist/assets/Toggle2.css +1 -1
  29. package/dist/assets/Typography.css +1 -1
  30. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
  31. package/dist/components/Adornment/Adornment.d.ts +2 -11
  32. package/dist/components/Adornment/Adornment.js +6 -6
  33. package/dist/components/Advice/Advice.d.ts +17 -32
  34. package/dist/components/Advice/Advice.js +40 -39
  35. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  36. package/dist/components/Button/Button.d.ts +0 -2
  37. package/dist/components/Button/Button.js +49 -51
  38. package/dist/components/Checkbox/Checkbox.js +52 -52
  39. package/dist/components/Chip/Chip.d.ts +4 -6
  40. package/dist/components/Chip/Chip.js +7 -11
  41. package/dist/components/Chip/Chip.stories.d.ts +14 -5
  42. package/dist/components/Dialog/Actions.js +1 -1
  43. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  44. package/dist/components/Dialog/Backdrop.js +7 -8
  45. package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
  46. package/dist/components/Dialog/CloseIconButton.js +18 -15
  47. package/dist/components/Dialog/Dialog.d.ts +10 -16
  48. package/dist/components/Dialog/Dialog.js +166 -167
  49. package/dist/components/Dialog/Dialog.stories.d.ts +107 -113
  50. package/dist/components/Dialog/DialogTitle.d.ts +2 -5
  51. package/dist/components/Dialog/DialogTitle.js +16 -22
  52. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  53. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  54. package/dist/components/Icon/Icon.js +47 -315
  55. package/dist/components/Icon/types.d.ts +1 -1
  56. package/dist/components/IconButton/IconButton.js +42 -42
  57. package/dist/components/Input/Input.d.ts +5 -26
  58. package/dist/components/Input/Input.js +304 -319
  59. package/dist/components/Input/Input.stories.d.ts +21 -2
  60. package/dist/components/InputSearch/InputSearch.d.ts +7 -37
  61. package/dist/components/InputSearch/InputSearch.js +29 -27
  62. package/dist/components/InputSearch/InputSearch.stories.d.ts +3 -15
  63. package/dist/components/PageHeader/PageHeader.d.ts +2 -6
  64. package/dist/components/PageHeader/PageHeader.js +71 -78
  65. package/dist/components/PageHeader/PageHeader.stories.d.ts +1 -3
  66. package/dist/components/Pagination/Pagination.d.ts +1 -5
  67. package/dist/components/Pagination/Pagination.js +91 -90
  68. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  69. package/dist/components/RowItem/RowItem.d.ts +2 -2
  70. package/dist/components/RowItem/RowItem.js +6 -10
  71. package/dist/components/Select/Select.d.ts +0 -22
  72. package/dist/components/Select/Select.js +413 -476
  73. package/dist/components/Select/SelectButton.d.ts +0 -2
  74. package/dist/components/Select/SelectButton.js +2 -3
  75. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  76. package/dist/components/Skeleton/Skeleton.js +14 -20
  77. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  78. package/dist/components/Snackbar/Snackbar.js +94 -94
  79. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  80. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  81. package/dist/components/Stepper/Stepper.js +35 -35
  82. package/dist/components/Table/Table.d.ts +1 -3
  83. package/dist/components/Table/Table.js +99 -87
  84. package/dist/components/Table/Table.stories.d.ts +1 -1
  85. package/dist/components/Tabs/Tab.d.ts +3 -5
  86. package/dist/components/Tabs/Tab.js +36 -38
  87. package/dist/components/Tabs/TabPanel.d.ts +2 -4
  88. package/dist/components/Tabs/TabPanel.js +40 -51
  89. package/dist/components/Tabs/Tabs.d.ts +4 -6
  90. package/dist/components/Tabs/Tabs.js +128 -131
  91. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -7
  92. package/dist/components/TextDisplay/TextDisplay.js +37 -44
  93. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  94. package/dist/components/Toggle/Toggle.js +55 -55
  95. package/dist/components/ToggleGroup/Group.d.ts +0 -2
  96. package/dist/components/ToggleGroup/Group.js +2 -4
  97. package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
  98. package/dist/components/ToggleGroup/Toggle.js +5 -9
  99. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  100. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -2
  101. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  102. package/dist/components/Tooltip/Tooltip.js +4 -4
  103. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  104. package/dist/components/Typography/Typography.js +47 -47
  105. package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
  106. package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
  107. package/dist/main.d.ts +0 -8
  108. package/dist/main.js +75 -91
  109. package/dist/marola.css +1 -1
  110. package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
  111. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  112. package/dist/useEventCallback-xTG9piMa.js +45 -0
  113. package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
  114. package/package.json +13 -22
  115. package/dist/Dialog.module-W7UCXlf3.js +0 -29
  116. package/dist/Group-DspH8hyO.js +0 -30
  117. package/dist/Popover.module-B4boCutS.js +0 -10
  118. package/dist/SelectButton-B38avP9u.js +0 -75
  119. package/dist/Toggle-MfR7l8Wn.js +0 -190
  120. package/dist/assets/Alert.css +0 -1
  121. package/dist/assets/Autocomplete.css +0 -1
  122. package/dist/assets/Avatar.css +0 -1
  123. package/dist/assets/Description.css +0 -1
  124. package/dist/assets/Popover.css +0 -1
  125. package/dist/assets/ResultWithChips.css +0 -1
  126. package/dist/assets/StepperNavigator.css +0 -1
  127. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  128. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  129. package/dist/components/Alert/Alert.d.ts +0 -11
  130. package/dist/components/Alert/Alert.js +0 -46
  131. package/dist/components/Alert/Alert.stories.d.ts +0 -24
  132. package/dist/components/Alert/Alert.test.d.ts +0 -1
  133. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
  134. package/dist/components/Autocomplete/Autocomplete.js +0 -679
  135. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
  136. package/dist/components/Avatar/Avatar.d.ts +0 -15
  137. package/dist/components/Avatar/Avatar.js +0 -51
  138. package/dist/components/Avatar/Avatar.stories.d.ts +0 -25
  139. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -14
  140. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +0 -37
  141. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -23
  142. package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +0 -1
  143. package/dist/components/Description/Description.d.ts +0 -16
  144. package/dist/components/Description/Description.js +0 -64
  145. package/dist/components/Description/Description.stories.d.ts +0 -20
  146. package/dist/components/Description/Description.test.d.ts +0 -1
  147. package/dist/components/PageHeader/PageHeader.test.d.ts +0 -1
  148. package/dist/components/Popover/Popover.d.ts +0 -32
  149. package/dist/components/Popover/Popover.js +0 -24
  150. package/dist/components/Popover/Popover.stories.d.ts +0 -34
  151. package/dist/components/Popover/PopoverBody.d.ts +0 -6
  152. package/dist/components/Popover/PopoverBody.js +0 -6
  153. package/dist/components/Popover/PopoverFooter.d.ts +0 -6
  154. package/dist/components/Popover/PopoverFooter.js +0 -6
  155. package/dist/components/Popover/PopoverHeader.d.ts +0 -6
  156. package/dist/components/Popover/PopoverHeader.js +0 -6
  157. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  158. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  159. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  160. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  161. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
  162. package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
  163. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
  164. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
  165. package/dist/ownerDocument-YGhwAnr1.js +0 -33
  166. package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
  167. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  168. package/dist/useId-BW-oWmul.js +0 -19
@@ -12,6 +12,47 @@ function Y() {
12
12
  }, Y.apply(this, arguments);
13
13
  }
14
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) {
44
+ if (e == null)
45
+ return {};
46
+ var t = {};
47
+ for (var n in e)
48
+ if (Object.prototype.hasOwnProperty.call(e, n)) {
49
+ if (s.indexOf(n) >= 0)
50
+ continue;
51
+ t[n] = e[n];
52
+ }
53
+ return t;
54
+ }
55
+ function $e(e) {
15
56
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
16
57
  }
17
58
  var se = { exports: {} }, V = { exports: {} }, P = {};
@@ -24,7 +65,7 @@ var se = { exports: {} }, V = { exports: {} }, P = {};
24
65
  * LICENSE file in the root directory of this source tree.
25
66
  */
26
67
  var de;
27
- function Re() {
68
+ function Ie() {
28
69
  if (de)
29
70
  return P;
30
71
  de = 1;
@@ -100,7 +141,7 @@ var O = {};
100
141
  * LICENSE file in the root directory of this source tree.
101
142
  */
102
143
  var pe;
103
- function xe() {
144
+ function Me() {
104
145
  return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
105
146
  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;
106
147
  function j(o) {
@@ -183,8 +224,8 @@ function xe() {
183
224
  }()), O;
184
225
  }
185
226
  var ye;
186
- function Se() {
187
- return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports = Re() : V.exports = xe()), V.exports;
227
+ function Pe() {
228
+ return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports = Ie() : V.exports = Me()), V.exports;
188
229
  }
189
230
  /*
190
231
  object-assign
@@ -192,7 +233,7 @@ object-assign
192
233
  @license MIT
193
234
  */
194
235
  var re, ve;
195
- function we() {
236
+ function qe() {
196
237
  if (ve)
197
238
  return re;
198
239
  ve = 1;
@@ -247,18 +288,18 @@ function ce() {
247
288
  return te = e, te;
248
289
  }
249
290
  var ne, be;
250
- function Pe() {
291
+ function Oe() {
251
292
  return be || (be = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
252
293
  }
253
294
  var oe, he;
254
- function Ae() {
295
+ function Ye() {
255
296
  if (he)
256
297
  return oe;
257
298
  he = 1;
258
299
  var e = function() {
259
300
  };
260
301
  if (process.env.NODE_ENV !== "production") {
261
- var s = ce(), t = {}, n = Pe();
302
+ var s = ce(), t = {}, n = Oe();
262
303
  e = function(u) {
263
304
  var h = "Warning: " + u;
264
305
  typeof console < "u" && console.error(h);
@@ -301,11 +342,11 @@ function Ae() {
301
342
  }, oe = c, oe;
302
343
  }
303
344
  var ie, Ee;
304
- function je() {
345
+ function De() {
305
346
  if (Ee)
306
347
  return ie;
307
348
  Ee = 1;
308
- var e = Se(), s = we(), t = ce(), n = Pe(), c = Ae(), u = function() {
349
+ var e = Pe(), s = qe(), t = ce(), n = Oe(), c = Ye(), u = function() {
309
350
  };
310
351
  process.env.NODE_ENV !== "production" && (u = function(f) {
311
352
  var _ = "Warning: " + f;
@@ -623,7 +664,7 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
623
664
  }, ie;
624
665
  }
625
666
  var ae, ge;
626
- function $e() {
667
+ function ke() {
627
668
  if (ge)
628
669
  return ae;
629
670
  ge = 1;
@@ -672,23 +713,23 @@ function $e() {
672
713
  }, ae;
673
714
  }
674
715
  if (process.env.NODE_ENV !== "production") {
675
- var Ie = Se(), Me = !0;
676
- se.exports = je()(Ie.isElement, Me);
716
+ var We = Pe(), Le = !0;
717
+ se.exports = De()(We.isElement, Le);
677
718
  } else
678
- se.exports = $e()();
679
- var qe = se.exports;
680
- const Ke = /* @__PURE__ */ _e(qe);
681
- function Ye(e, s) {
719
+ se.exports = ke()();
720
+ var Ne = se.exports;
721
+ const Qe = /* @__PURE__ */ $e(Ne);
722
+ function Fe(e, s) {
682
723
  typeof e == "function" ? e(s) : e && (e.current = s);
683
724
  }
684
- function De(...e) {
725
+ function Ue(...e) {
685
726
  return ue.useMemo(() => e.every((s) => s == null) ? null : (s) => {
686
727
  e.forEach((t) => {
687
- Ye(t, s);
728
+ Fe(t, s);
688
729
  });
689
730
  }, e);
690
731
  }
691
- function Qe(e, s, t = void 0) {
732
+ function er(e, s, t = void 0) {
692
733
  const n = {};
693
734
  return Object.keys(e).forEach(
694
735
  // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
@@ -704,7 +745,7 @@ function Qe(e, s, t = void 0) {
704
745
  }
705
746
  ), n;
706
747
  }
707
- const ke = {
748
+ const ze = {
708
749
  active: "active",
709
750
  checked: "checked",
710
751
  completed: "completed",
@@ -718,64 +759,6 @@ const ke = {
718
759
  required: "required",
719
760
  selected: "selected"
720
761
  };
721
- function We(e, s) {
722
- if (e == null)
723
- return {};
724
- var t = {};
725
- for (var n in e)
726
- if (Object.prototype.hasOwnProperty.call(e, n)) {
727
- if (s.indexOf(n) >= 0)
728
- continue;
729
- t[n] = e[n];
730
- }
731
- return t;
732
- }
733
- function Le(e) {
734
- return typeof e == "string";
735
- }
736
- const Oe = "base";
737
- function Ne(e) {
738
- return `${Oe}--${e}`;
739
- }
740
- function Fe(e, s) {
741
- return `${Oe}-${e}-${s}`;
742
- }
743
- function Ue(e, s) {
744
- const t = ke[s];
745
- return t ? Ne(t) : Fe(e, s);
746
- }
747
- function er(e, s) {
748
- const t = {};
749
- return s.forEach((n) => {
750
- t[n] = Ue(e, n);
751
- }), t;
752
- }
753
- function ze(e, s, t) {
754
- return e === void 0 || Le(e) ? s : Y({}, s, {
755
- ownerState: Y({}, s.ownerState, t)
756
- });
757
- }
758
- const He = {
759
- disableDefaultClasses: !1
760
- }, Ce = /* @__PURE__ */ ue.createContext(He);
761
- process.env.NODE_ENV !== "production" && (Ce.displayName = "ClassNameConfiguratorContext");
762
- function rr(e) {
763
- const {
764
- disableDefaultClasses: s
765
- } = ue.useContext(Ce);
766
- return (t) => s ? "" : e(t);
767
- }
768
- function Ve(e, s = []) {
769
- if (e === void 0)
770
- return {};
771
- const t = {};
772
- return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
773
- t[n] = e[n];
774
- }), t;
775
- }
776
- function Be(e, s, t) {
777
- return typeof e == "function" ? e(s, t) : e;
778
- }
779
762
  function Te(e) {
780
763
  if (e === void 0)
781
764
  return {};
@@ -784,7 +767,7 @@ function Te(e) {
784
767
  s[t] = e[t];
785
768
  }), s;
786
769
  }
787
- function Je(e) {
770
+ function He(e) {
788
771
  const {
789
772
  getSlotProps: s,
790
773
  additionalProps: t,
@@ -799,42 +782,59 @@ function Je(e) {
799
782
  internalRef: void 0
800
783
  };
801
784
  }
802
- 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);
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);
803
786
  return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
804
787
  props: x,
805
788
  internalRef: v.ref
806
789
  };
807
790
  }
808
- const Xe = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
809
- function tr(e) {
791
+ const Ve = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
792
+ function rr(e) {
810
793
  var s;
811
794
  const {
812
795
  elementType: t,
813
796
  externalSlotProps: n,
814
797
  ownerState: c,
815
798
  skipResolvingSlotProps: u = !1
816
- } = e, h = We(e, Xe), f = u ? {} : Be(n, c), {
799
+ } = e, h = je(e, Ve), f = u ? {} : Ae(n, c), {
817
800
  props: _,
818
801
  internalRef: v
819
- } = Je(Y({}, h, {
802
+ } = He(Y({}, h, {
820
803
  externalSlotProps: f
821
- })), m = De(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
822
- return ze(t, Y({}, _, {
804
+ })), m = Ue(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
805
+ return Re(t, Y({}, _, {
823
806
  ref: m
824
807
  }), c);
825
808
  }
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
826
  export {
827
- Ke as P,
828
- We as _,
829
- er as a,
827
+ Qe as P,
828
+ je as _,
829
+ tr as a,
830
830
  Y as b,
831
- tr as c,
832
- Qe as d,
833
- rr as e,
834
- Ve as f,
835
- Ue as g,
836
- _e as h,
837
- Le as i,
838
- Ye as s,
839
- De as u
831
+ rr as c,
832
+ er as d,
833
+ Ke as e,
834
+ we as f,
835
+ Xe as g,
836
+ $e as h,
837
+ _e as i,
838
+ Fe as s,
839
+ Ue as u
840
840
  };
@@ -1,4 +1,4 @@
1
- import { b as Ak, h as Hk } from "./useSlotProps-C_I1kEHr.js";
1
+ import { b as Ak, h as Hk } from "./index-CH45lKw7.js";
2
2
  import QE from "react";
3
3
  const Fk = "exact-prop: ​";
4
4
  function Xk(ne) {
package/dist/main.d.ts CHANGED
@@ -4,14 +4,9 @@
4
4
  */
5
5
  export * from './components/Adornment/Adornment';
6
6
  export * from './components/Advice/Advice';
7
- export * from './components/Alert/Alert';
8
- export * from './components/Autocomplete/Autocomplete';
9
- export * from './components/Avatar/Avatar';
10
7
  export * from './components/Button/Button';
11
8
  export * from './components/Checkbox/Checkbox';
12
9
  export * from './components/Chip/Chip';
13
- export * from './components/ConfirmationDialog/ConfirmationDialog';
14
- export * from './components/Description/Description';
15
10
  export * from './components/Dialog/Dialog';
16
11
  export * from './components/EllipsisTooltip/EllipsisTooltip';
17
12
  export * from './components/Icon/Icon';
@@ -21,15 +16,12 @@ export * from './components/InputSearch/InputSearch';
21
16
  export * from './components/LoadingSpinner/LoadingSpinner';
22
17
  export * from './components/PageHeader/PageHeader';
23
18
  export * from './components/Pagination/Pagination';
24
- export * from './components/Popover/Popover';
25
- export * from './components/ResultWithChips/ResultWithChips';
26
19
  export * from './components/RowItem/RowItem';
27
20
  export * from './components/Select/Select';
28
21
  export * from './components/Skeleton/Skeleton';
29
22
  export * from './components/Snackbar/Snackbar';
30
23
  export * from './components/SortTooltip/SortTooltip';
31
24
  export * from './components/Stepper/Stepper';
32
- export * from './components/StepperNavigator/StepperNavigator';
33
25
  export * from './components/Table/Table';
34
26
  export * from './components/Tabs/Tabs';
35
27
  export * from './components/TextDisplay/TextDisplay';
package/dist/main.js CHANGED
@@ -1,97 +1,81 @@
1
1
  import { Adornment as e } from "./components/Adornment/Adornment.js";
2
2
  import { Advice as p } from "./components/Advice/Advice.js";
3
- import { Alert as f } from "./components/Alert/Alert.js";
4
- import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
5
- import { Avatar as l } from "./components/Avatar/Avatar.js";
6
- import { Button as T } from "./components/Button/Button.js";
7
- import { Checkbox as c } from "./components/Checkbox/Checkbox.js";
8
- import { C as u, R as S, T as d } from "./Toggle-MfR7l8Wn.js";
9
- import { ConfirmationDialog as k } from "./components/ConfirmationDialog/ConfirmationDialog.js";
10
- import { Description as h } from "./components/Description/Description.js";
11
- import { Dialog as A } from "./components/Dialog/Dialog.js";
12
- import { EllipsisTooltip as v } from "./components/EllipsisTooltip/EllipsisTooltip.js";
13
- import { Icon as y } from "./components/Icon/Icon.js";
14
- import { IconButton as G } from "./components/IconButton/IconButton.js";
15
- import { Input as H } from "./components/Input/Input.js";
16
- import { InputSearch as E } from "./components/InputSearch/InputSearch.js";
17
- import { LoadingSpinner as N } from "./components/LoadingSpinner/LoadingSpinner.js";
18
- import { PageHeader as W } from "./components/PageHeader/PageHeader.js";
19
- import { Pagination as q, paginationDefaultTranslations as z } from "./components/Pagination/Pagination.js";
20
- import { Popover as J } from "./components/Popover/Popover.js";
21
- import { ResultWithChips as M } from "./components/ResultWithChips/ResultWithChips.js";
22
- import { Select as U, SelectOption as V } from "./components/Select/Select.js";
23
- import { Skeleton as Y, SkeletonCircle as Z, SkeletonTable as _ } from "./components/Skeleton/Skeleton.js";
24
- import { Snackbar as oo } from "./components/Snackbar/Snackbar.js";
25
- import { SortTooltip as eo, sortTooltipDefaultTranslations as to } from "./components/SortTooltip/SortTooltip.js";
26
- import { Stepper as ao } from "./components/Stepper/Stepper.js";
27
- import { StepperNavigator as mo } from "./components/StepperNavigator/StepperNavigator.js";
28
- import { TBody as no, THead as lo, Table as io, Td as To, Th as so, Tr as co } from "./components/Table/Table.js";
29
- import { Tabs as uo } from "./components/Tabs/Tabs.js";
30
- import { TextDisplay as bo } from "./components/TextDisplay/TextDisplay.js";
31
- import { Toggle as Co } from "./components/Toggle/Toggle.js";
32
- import { G as Do } from "./Group-DspH8hyO.js";
33
- import { Tooltip as Io } from "./components/Tooltip/Tooltip.js";
34
- import { Text as Po, Typography as yo } from "./components/Typography/Typography.js";
35
- import { SnackbarContext as Go, SnackbarProvider as Ro, useSnackbar as Ho } from "./contexts/SnackbarProvider/SnackbarProvider.js";
36
- import { default as Eo } from "./components/Dialog/DialogTitle.js";
37
- import { default as No } from "./components/Dialog/Content.js";
38
- import { default as Wo } from "./components/Dialog/Actions.js";
39
- import { Tab as qo } from "./components/Tabs/Tab.js";
40
- import { TabPanel as Fo } from "./components/Tabs/TabPanel.js";
3
+ import { Button as f } from "./components/Button/Button.js";
4
+ import { Checkbox as m } from "./components/Checkbox/Checkbox.js";
5
+ import { C as l, R as i, T } from "./Toggle-BWF0-SPB.js";
6
+ import { Dialog as c } from "./components/Dialog/Dialog.js";
7
+ import { EllipsisTooltip as S } from "./components/EllipsisTooltip/EllipsisTooltip.js";
8
+ import { Icon as d } from "./components/Icon/Icon.js";
9
+ import { IconButton as k } from "./components/IconButton/IconButton.js";
10
+ import { Input as I } from "./components/Input/Input.js";
11
+ import { InputSearch as D } from "./components/InputSearch/InputSearch.js";
12
+ import { LoadingSpinner as P } from "./components/LoadingSpinner/LoadingSpinner.js";
13
+ import { PageHeader as B } from "./components/PageHeader/PageHeader.js";
14
+ import { Pagination as v, paginationDefaultTranslations as H } from "./components/Pagination/Pagination.js";
15
+ import { Select as w, SelectOption as E } from "./components/Select/Select.js";
16
+ import { Skeleton as O, SkeletonCircle as j, SkeletonTable as q } from "./components/Skeleton/Skeleton.js";
17
+ import { Snackbar as F } from "./components/Snackbar/Snackbar.js";
18
+ import { SortTooltip as K, sortTooltipDefaultTranslations as M } from "./components/SortTooltip/SortTooltip.js";
19
+ import { Stepper as Q } from "./components/Stepper/Stepper.js";
20
+ import { TBody as V, THead as W, Table as X, Td as Y, Th as Z, Tr as _ } from "./components/Table/Table.js";
21
+ import { Tabs as oo } from "./components/Tabs/Tabs.js";
22
+ import { TextDisplay as eo } from "./components/TextDisplay/TextDisplay.js";
23
+ import { Toggle as po } from "./components/Toggle/Toggle.js";
24
+ import { G as fo } from "./Group-B3p31ftp.js";
25
+ import { Tooltip as mo } from "./components/Tooltip/Tooltip.js";
26
+ import { Text as lo, Typography as io } from "./components/Typography/Typography.js";
27
+ import { SnackbarContext as so, SnackbarProvider as co, useSnackbar as go } from "./contexts/SnackbarProvider/SnackbarProvider.js";
28
+ import { default as uo } from "./components/Dialog/DialogTitle.js";
29
+ import { default as ko } from "./components/Dialog/Content.js";
30
+ import { default as Io } from "./components/Dialog/Actions.js";
31
+ import { Tab as Do } from "./components/Tabs/Tab.js";
32
+ import { TabPanel as Po } from "./components/Tabs/TabPanel.js";
41
33
  export {
42
- Wo as Actions,
34
+ Io as Actions,
43
35
  e as Adornment,
44
36
  p as Advice,
45
- f as Alert,
46
- x as Autocomplete,
47
- l as Avatar,
48
- T as Button,
49
- c as Checkbox,
50
- u as Chip,
51
- k as ConfirmationDialog,
52
- No as Content,
53
- h as Description,
54
- A as Dialog,
55
- Eo as DialogTitle,
56
- v as EllipsisTooltip,
57
- y as Icon,
58
- G as IconButton,
59
- H as Input,
60
- E as InputSearch,
61
- N as LoadingSpinner,
62
- W as PageHeader,
63
- q as Pagination,
64
- J as Popover,
65
- M as ResultWithChips,
66
- S as RowItem,
67
- U as Select,
68
- V as SelectOption,
69
- Y as Skeleton,
70
- Z as SkeletonCircle,
71
- _ as SkeletonTable,
72
- oo as Snackbar,
73
- Go as SnackbarContext,
74
- Ro as SnackbarProvider,
75
- eo as SortTooltip,
76
- ao as Stepper,
77
- mo as StepperNavigator,
78
- no as TBody,
79
- lo as THead,
80
- qo as Tab,
81
- Fo as TabPanel,
82
- io as Table,
83
- uo as Tabs,
84
- To as Td,
85
- Po as Text,
86
- bo as TextDisplay,
87
- so as Th,
88
- Co as Toggle,
89
- Do as ToggleGroup,
90
- d as ToggleGroupItem,
91
- Io as Tooltip,
92
- co as Tr,
93
- yo as Typography,
94
- z as paginationDefaultTranslations,
95
- to as sortTooltipDefaultTranslations,
96
- Ho as useSnackbar
37
+ f as Button,
38
+ m as Checkbox,
39
+ l as Chip,
40
+ ko as Content,
41
+ c as Dialog,
42
+ uo as DialogTitle,
43
+ S as EllipsisTooltip,
44
+ d as Icon,
45
+ k as IconButton,
46
+ I as Input,
47
+ D as InputSearch,
48
+ P as LoadingSpinner,
49
+ B as PageHeader,
50
+ v as Pagination,
51
+ i as RowItem,
52
+ w as Select,
53
+ E as SelectOption,
54
+ O as Skeleton,
55
+ j as SkeletonCircle,
56
+ q as SkeletonTable,
57
+ F as Snackbar,
58
+ so as SnackbarContext,
59
+ co as SnackbarProvider,
60
+ K as SortTooltip,
61
+ Q as Stepper,
62
+ V as TBody,
63
+ W as THead,
64
+ Do as Tab,
65
+ Po as TabPanel,
66
+ X as Table,
67
+ oo as Tabs,
68
+ Y as Td,
69
+ lo as Text,
70
+ eo as TextDisplay,
71
+ Z as Th,
72
+ po as Toggle,
73
+ fo as ToggleGroup,
74
+ T as ToggleGroupItem,
75
+ mo as Tooltip,
76
+ _ as Tr,
77
+ io as Typography,
78
+ H as paginationDefaultTranslations,
79
+ M as sortTooltipDefaultTranslations,
80
+ go as useSnackbar
97
81
  };
package/dist/marola.css CHANGED
@@ -1 +1 @@
1
- :root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204;--border: #d9d9d9;--border-rgb: 217, 217, 217;--border-secondary: #f0f0f0;--border-secondary-rgb: 240, 240, 240;--error-background: #fff2f0;--error-background-rgb: 255, 242, 240;--error-border: #ffccc7;--error-border-rgb: 255, 204, 199}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255;--green-1: #f0fff7;--green-1-rgb: 240, 255, 247;--green-3: #a1edcb;--green-3-rgb: 161, 237, 203;--blue-1: #e6f9ff;--blue-1-rgb: 230, 249, 255;--blue-3: #94ddff;--blue-3-rgb: 148, 221, 255;--gold-1: #fffbe6;--gold-1-rgb: 255, 251, 230;--gold-3: #ffe58f;--gold-3-rgb: 255, 229, 143}:root{--heading-font-weight: 700;--heading-font-size-1: 3.75rem;--heading-line-height-1: 4.875rem;--heading-font-size-2: 3rem;--heading-line-height-2: 4rem;--heading-font-size-3: 2.25rem;--heading-line-height-3: 2.875rem;--heading-font-size-4: 1.875rem;--heading-line-height-4: 2.375rem;--heading-font-size-5: 1.5rem;--heading-line-height-5: 2rem;--heading-font-size-6: 1.25rem;--heading-line-height-6: 1.75rem;--base-font-size: .875rem;--base-line-height: 1.375rem;--base-weight: 400;--base-bold: 700;--base-font-size-sm: .75rem;--base-line-height-sm: 1.25rem;--base-font-size-lg: 1rem;--base-line-height-lg: 1.5rem;--base-font-size-xl: 1.25rem;--base-line-height-xl: 1.75rem;--base-font-size-xxl: 1.5rem;--base-line-height-xxl: 2rem}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold;--font-size-small: .75rem;--font-weight-small: 400;--font-line-height-small: 1.25rem;--font-weight-700: 700}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}*{box-sizing:border-box}
1
+ :root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204;--border: #d9d9d9;--border-rgb: 217, 217, 217}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-1: 3.75rem;--heading-line-height-1: 4.875rem;--heading-font-size-2: 3rem;--heading-line-height-2: 4rem;--heading-font-size-3: 2.25rem;--heading-line-height-3: 2.875rem;--heading-font-size-4: 1.875rem;--heading-line-height-4: 2.375rem;--heading-font-size-5: 1.5rem;--heading-line-height-5: 2rem;--heading-font-size-6: 1.25rem;--heading-line-height-6: 1.75rem;--base-font-size: .875rem;--base-line-height: 1.375rem;--base-weight: 400;--base-bold: 700;--base-font-size-sm: .75rem;--base-line-height-sm: 1.25rem;--base-font-size-lg: 1rem;--base-line-height-lg: 1.5rem;--base-font-size-xl: 1.25rem;--base-line-height-xl: 1.75rem;--base-font-size-xxl: 1.5rem;--base-line-height-xxl: 2rem}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold;--font-size-small: .75rem;--font-weight-small: 400;--font-line-height-small: 1.25rem;--font-weight-700: 700}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}*{box-sizing:border-box}
@@ -1,4 +1,4 @@
1
- import { u as S, b as D, f as k } from "./useSlotProps-C_I1kEHr.js";
1
+ import { u as S, b as D, f as k } from "./index-CH45lKw7.js";
2
2
  import * as i from "react";
3
3
  import { u as _ } from "./useIsFocusVisible-BH4IAdcw.js";
4
4
  function v(p) {
@@ -0,0 +1,84 @@
1
+ import * as o from "react";
2
+ import { u as g } from "./useEnhancedEffect-CJGo-L3B.js";
3
+ let I = 0;
4
+ function x(e) {
5
+ const [n, t] = o.useState(e), u = e || n;
6
+ return o.useEffect(() => {
7
+ n == null && (I += 1, t(`mui-${I}`));
8
+ }, [n]), u;
9
+ }
10
+ const p = o.useId;
11
+ function y(e) {
12
+ if (p !== void 0) {
13
+ const n = p();
14
+ return e ?? n;
15
+ }
16
+ return x(e);
17
+ }
18
+ const b = /* @__PURE__ */ o.createContext(null);
19
+ process.env.NODE_ENV !== "production" && (b.displayName = "CompoundComponentContext");
20
+ function S(e) {
21
+ const n = Array.from(e.keys()).map((t) => {
22
+ const u = e.get(t);
23
+ return {
24
+ key: t,
25
+ subitem: u
26
+ };
27
+ });
28
+ return n.sort((t, u) => {
29
+ const s = t.subitem.ref.current, r = u.subitem.ref.current;
30
+ return s === null || r === null || s === r ? 0 : s.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
31
+ }), new Map(n.map((t) => [t.key, t.subitem]));
32
+ }
33
+ function E() {
34
+ const [e, n] = o.useState(/* @__PURE__ */ new Map()), t = o.useRef(/* @__PURE__ */ new Set()), u = o.useCallback(function(a) {
35
+ t.current.delete(a), n((m) => {
36
+ const c = new Map(m);
37
+ return c.delete(a), c;
38
+ });
39
+ }, []), s = o.useCallback(function(a, m) {
40
+ let c;
41
+ return typeof a == "function" ? c = a(t.current) : c = a, t.current.add(c), n((C) => {
42
+ const l = new Map(C);
43
+ return l.set(c, m), l;
44
+ }), {
45
+ id: c,
46
+ deregister: () => u(c)
47
+ };
48
+ }, [u]), r = o.useMemo(() => S(e), [e]), i = o.useCallback(function(a) {
49
+ return Array.from(r.keys()).indexOf(a);
50
+ }, [r]);
51
+ return {
52
+ contextValue: o.useMemo(() => ({
53
+ getItemIndex: i,
54
+ registerItem: s,
55
+ totalSubitemCount: e.size
56
+ }), [i, s, e.size]),
57
+ subitems: r
58
+ };
59
+ }
60
+ function N(e, n) {
61
+ const t = o.useContext(b);
62
+ if (t === null)
63
+ throw new Error("useCompoundItem must be used within a useCompoundParent");
64
+ const {
65
+ registerItem: u
66
+ } = t, [s, r] = o.useState(typeof e == "function" ? void 0 : e);
67
+ return g(() => {
68
+ const {
69
+ id: i,
70
+ deregister: d
71
+ } = u(e, n);
72
+ return r(i), d;
73
+ }, [u, n, e]), {
74
+ id: s,
75
+ index: s !== void 0 ? t.getItemIndex(s) : -1,
76
+ totalItemCount: t.totalSubitemCount
77
+ };
78
+ }
79
+ export {
80
+ b as C,
81
+ N as a,
82
+ E as b,
83
+ y as u
84
+ };