@pismo/marola 1.0.0-beta.58 → 1.0.0-beta.6

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 (155) 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-BCgIItCc.js +142 -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/TextDisplay.css +1 -1
  28. package/dist/assets/Toggle.css +1 -1
  29. package/dist/assets/Toggle2.css +1 -1
  30. package/dist/assets/Typography.css +1 -1
  31. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
  32. package/dist/components/Advice/Advice.d.ts +17 -32
  33. package/dist/components/Advice/Advice.js +40 -39
  34. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  35. package/dist/components/Button/Button.d.ts +0 -2
  36. package/dist/components/Button/Button.js +49 -51
  37. package/dist/components/Checkbox/Checkbox.js +52 -52
  38. package/dist/components/Chip/Chip.d.ts +12 -6
  39. package/dist/components/Chip/Chip.js +6 -11
  40. package/dist/components/Chip/Chip.stories.d.ts +14 -5
  41. package/dist/components/Dialog/Actions.js +1 -1
  42. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  43. package/dist/components/Dialog/Backdrop.js +7 -8
  44. package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
  45. package/dist/components/Dialog/CloseIconButton.js +18 -15
  46. package/dist/components/Dialog/Dialog.d.ts +6 -9
  47. package/dist/components/Dialog/Dialog.js +139 -139
  48. package/dist/components/Dialog/Dialog.stories.d.ts +46 -50
  49. package/dist/components/Dialog/DialogTitle.js +1 -1
  50. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  51. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  52. package/dist/components/Icon/Icon.js +47 -315
  53. package/dist/components/Icon/types.d.ts +1 -1
  54. package/dist/components/IconButton/IconButton.js +42 -42
  55. package/dist/components/Input/Input.d.ts +5 -26
  56. package/dist/components/Input/Input.js +304 -319
  57. package/dist/components/Input/Input.stories.d.ts +21 -2
  58. package/dist/components/InputSearch/InputSearch.d.ts +7 -37
  59. package/dist/components/InputSearch/InputSearch.js +29 -27
  60. package/dist/components/InputSearch/InputSearch.stories.d.ts +3 -15
  61. package/dist/components/PageHeader/PageHeader.d.ts +2 -6
  62. package/dist/components/PageHeader/PageHeader.js +65 -72
  63. package/dist/components/PageHeader/PageHeader.stories.d.ts +1 -3
  64. package/dist/components/Pagination/Pagination.d.ts +1 -5
  65. package/dist/components/Pagination/Pagination.js +91 -90
  66. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  67. package/dist/components/Select/Select.d.ts +0 -21
  68. package/dist/components/Select/Select.js +413 -476
  69. package/dist/components/Select/SelectButton.d.ts +0 -2
  70. package/dist/components/Select/SelectButton.js +2 -3
  71. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  72. package/dist/components/Skeleton/Skeleton.js +14 -20
  73. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  74. package/dist/components/Snackbar/Snackbar.js +94 -94
  75. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  76. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  77. package/dist/components/Stepper/Stepper.js +35 -35
  78. package/dist/components/Table/Table.d.ts +1 -3
  79. package/dist/components/Table/Table.js +99 -87
  80. package/dist/components/Table/Table.stories.d.ts +1 -1
  81. package/dist/components/Tabs/Tab.d.ts +3 -5
  82. package/dist/components/Tabs/Tab.js +36 -38
  83. package/dist/components/Tabs/TabPanel.d.ts +2 -4
  84. package/dist/components/Tabs/TabPanel.js +40 -51
  85. package/dist/components/Tabs/Tabs.d.ts +4 -6
  86. package/dist/components/Tabs/Tabs.js +128 -131
  87. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -9
  88. package/dist/components/TextDisplay/TextDisplay.js +31 -45
  89. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  90. package/dist/components/Toggle/Toggle.js +56 -56
  91. package/dist/components/ToggleGroup/Group.d.ts +0 -2
  92. package/dist/components/ToggleGroup/Group.js +2 -4
  93. package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
  94. package/dist/components/ToggleGroup/Toggle.js +5 -9
  95. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  96. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -2
  97. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  98. package/dist/components/Tooltip/Tooltip.js +4 -4
  99. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  100. package/dist/components/Typography/Typography.js +47 -47
  101. package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
  102. package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
  103. package/dist/main.d.ts +0 -7
  104. package/dist/main.js +76 -88
  105. package/dist/marola.css +1 -1
  106. package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
  107. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  108. package/dist/useEventCallback-xTG9piMa.js +45 -0
  109. package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
  110. package/package.json +12 -21
  111. package/dist/Dialog.module-D9e4RsKo.js +0 -30
  112. package/dist/Group-DspH8hyO.js +0 -30
  113. package/dist/Popover.module-B4boCutS.js +0 -10
  114. package/dist/SelectButton-B38avP9u.js +0 -75
  115. package/dist/Toggle-2kIaSHMl.js +0 -190
  116. package/dist/assets/Adornment.css +0 -1
  117. package/dist/assets/Autocomplete.css +0 -1
  118. package/dist/assets/Avatar.css +0 -1
  119. package/dist/assets/Popover.css +0 -1
  120. package/dist/assets/ResultWithChips.css +0 -1
  121. package/dist/assets/StepperNavigator.css +0 -1
  122. package/dist/components/Adornment/Adornment.d.ts +0 -20
  123. package/dist/components/Adornment/Adornment.js +0 -13
  124. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  125. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  126. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
  127. package/dist/components/Autocomplete/Autocomplete.js +0 -679
  128. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
  129. package/dist/components/Avatar/Avatar.d.ts +0 -15
  130. package/dist/components/Avatar/Avatar.js +0 -51
  131. package/dist/components/Avatar/Avatar.stories.d.ts +0 -25
  132. package/dist/components/PageHeader/PageHeader.test.d.ts +0 -1
  133. package/dist/components/Popover/Popover.d.ts +0 -32
  134. package/dist/components/Popover/Popover.js +0 -24
  135. package/dist/components/Popover/Popover.stories.d.ts +0 -34
  136. package/dist/components/Popover/PopoverBody.d.ts +0 -6
  137. package/dist/components/Popover/PopoverBody.js +0 -6
  138. package/dist/components/Popover/PopoverFooter.d.ts +0 -6
  139. package/dist/components/Popover/PopoverFooter.js +0 -6
  140. package/dist/components/Popover/PopoverHeader.d.ts +0 -6
  141. package/dist/components/Popover/PopoverHeader.js +0 -6
  142. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  143. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  144. package/dist/components/RowItem/RowItem.d.ts +0 -25
  145. package/dist/components/RowItem/RowItem.js +0 -23
  146. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  147. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  148. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
  149. package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
  150. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
  151. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
  152. package/dist/ownerDocument-YGhwAnr1.js +0 -33
  153. package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
  154. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  155. 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
@@ -2,10 +2,7 @@
2
2
  * This file is automatically generated. Any changes will be lost.
3
3
  * run "yarn export-files" or "yarn build" to regenerate it.
4
4
  */
5
- export * from './components/Adornment/Adornment';
6
5
  export * from './components/Advice/Advice';
7
- export * from './components/Autocomplete/Autocomplete';
8
- export * from './components/Avatar/Avatar';
9
6
  export * from './components/Button/Button';
10
7
  export * from './components/Checkbox/Checkbox';
11
8
  export * from './components/Chip/Chip';
@@ -18,15 +15,11 @@ export * from './components/InputSearch/InputSearch';
18
15
  export * from './components/LoadingSpinner/LoadingSpinner';
19
16
  export * from './components/PageHeader/PageHeader';
20
17
  export * from './components/Pagination/Pagination';
21
- export * from './components/Popover/Popover';
22
- export * from './components/ResultWithChips/ResultWithChips';
23
- export * from './components/RowItem/RowItem';
24
18
  export * from './components/Select/Select';
25
19
  export * from './components/Skeleton/Skeleton';
26
20
  export * from './components/Snackbar/Snackbar';
27
21
  export * from './components/SortTooltip/SortTooltip';
28
22
  export * from './components/Stepper/Stepper';
29
- export * from './components/StepperNavigator/StepperNavigator';
30
23
  export * from './components/Table/Table';
31
24
  export * from './components/Tabs/Tabs';
32
25
  export * from './components/TextDisplay/TextDisplay';
package/dist/main.js CHANGED
@@ -1,90 +1,78 @@
1
- import { Adornment as t } from "./components/Adornment/Adornment.js";
2
- import { Advice as a } from "./components/Advice/Advice.js";
3
- import { Autocomplete as m } from "./components/Autocomplete/Autocomplete.js";
4
- import "./components/Avatar/Avatar.js";
5
- import { Button as n } from "./components/Button/Button.js";
6
- import { Checkbox as i } from "./components/Checkbox/Checkbox.js";
7
- import { C as s, R as c, T as g } from "./Toggle-2kIaSHMl.js";
8
- import { Dialog as S } from "./components/Dialog/Dialog.js";
9
- import { EllipsisTooltip as b } from "./components/EllipsisTooltip/EllipsisTooltip.js";
10
- import { Icon as h } from "./components/Icon/Icon.js";
11
- import { IconButton as I } from "./components/IconButton/IconButton.js";
12
- import { Input as P } from "./components/Input/Input.js";
13
- import { InputSearch as y } from "./components/InputSearch/InputSearch.js";
14
- import { LoadingSpinner as B } from "./components/LoadingSpinner/LoadingSpinner.js";
15
- import { PageHeader as R } from "./components/PageHeader/PageHeader.js";
16
- import { Pagination as w, paginationDefaultTranslations as E } from "./components/Pagination/Pagination.js";
17
- import { Popover as N } from "./components/Popover/Popover.js";
18
- import { ResultWithChips as W } from "./components/ResultWithChips/ResultWithChips.js";
19
- import { Select as q, SelectOption as z } from "./components/Select/Select.js";
20
- import { Skeleton as J, SkeletonCircle as K, SkeletonTable as M } from "./components/Skeleton/Skeleton.js";
21
- import { Snackbar as U } from "./components/Snackbar/Snackbar.js";
22
- import { SortTooltip as X, sortTooltipDefaultTranslations as Y } from "./components/SortTooltip/SortTooltip.js";
23
- import { Stepper as _ } from "./components/Stepper/Stepper.js";
24
- import { StepperNavigator as oo } from "./components/StepperNavigator/StepperNavigator.js";
25
- import { TBody as eo, THead as to, Table as po, Td as ao, Th as fo, Tr as mo } from "./components/Table/Table.js";
26
- import { Tabs as no } from "./components/Tabs/Tabs.js";
27
- import { TextDisplay as io } from "./components/TextDisplay/TextDisplay.js";
28
- import { Toggle as so } from "./components/Toggle/Toggle.js";
29
- import { G as go } from "./Group-DspH8hyO.js";
30
- import { Tooltip as So } from "./components/Tooltip/Tooltip.js";
31
- import { Text as ko, Typography as ho } from "./components/Typography/Typography.js";
32
- import { SnackbarContext as Io, SnackbarProvider as Do, useSnackbar as Po } from "./contexts/SnackbarProvider/SnackbarProvider.js";
33
- import { default as yo } from "./components/Dialog/DialogTitle.js";
34
- import { default as Bo } from "./components/Dialog/Content.js";
35
- import { default as Ro } from "./components/Dialog/Actions.js";
36
- import { Tab as wo } from "./components/Tabs/Tab.js";
37
- import { TabPanel as Lo } from "./components/Tabs/TabPanel.js";
1
+ import { Advice as e } from "./components/Advice/Advice.js";
2
+ import { Button as p } from "./components/Button/Button.js";
3
+ import { Checkbox as f } from "./components/Checkbox/Checkbox.js";
4
+ import { C as m, T as n } from "./Toggle-BCgIItCc.js";
5
+ import { Dialog as i } from "./components/Dialog/Dialog.js";
6
+ import { EllipsisTooltip as s } from "./components/EllipsisTooltip/EllipsisTooltip.js";
7
+ import { Icon as g } from "./components/Icon/Icon.js";
8
+ import { IconButton as u } from "./components/IconButton/IconButton.js";
9
+ import { Input as d } from "./components/Input/Input.js";
10
+ import { InputSearch as C } from "./components/InputSearch/InputSearch.js";
11
+ import { LoadingSpinner as D } from "./components/LoadingSpinner/LoadingSpinner.js";
12
+ import { PageHeader as y } from "./components/PageHeader/PageHeader.js";
13
+ import { Pagination as B, paginationDefaultTranslations as G } from "./components/Pagination/Pagination.js";
14
+ import { Select as A, SelectOption as H } from "./components/Select/Select.js";
15
+ import { Skeleton as L, SkeletonCircle as O, SkeletonTable as j } from "./components/Skeleton/Skeleton.js";
16
+ import { Snackbar as w } from "./components/Snackbar/Snackbar.js";
17
+ import { SortTooltip as F, sortTooltipDefaultTranslations as J } from "./components/SortTooltip/SortTooltip.js";
18
+ import { Stepper as M } from "./components/Stepper/Stepper.js";
19
+ import { TBody as Q, THead as R, Table as U, Td as V, Th as W, Tr as X } from "./components/Table/Table.js";
20
+ import { Tabs as Z } from "./components/Tabs/Tabs.js";
21
+ import { TextDisplay as $ } from "./components/TextDisplay/TextDisplay.js";
22
+ import { Toggle as ro } from "./components/Toggle/Toggle.js";
23
+ import { G as to } from "./Group-B3p31ftp.js";
24
+ import { Tooltip as ao } from "./components/Tooltip/Tooltip.js";
25
+ import { Text as xo, Typography as mo } from "./components/Typography/Typography.js";
26
+ import { SnackbarContext as lo, SnackbarProvider as io, useSnackbar as To } from "./contexts/SnackbarProvider/SnackbarProvider.js";
27
+ import { default as co } from "./components/Dialog/DialogTitle.js";
28
+ import { default as So } from "./components/Dialog/Content.js";
29
+ import { default as bo } from "./components/Dialog/Actions.js";
30
+ import { Tab as Co } from "./components/Tabs/Tab.js";
31
+ import { TabPanel as Do } from "./components/Tabs/TabPanel.js";
38
32
  export {
39
- Ro as Actions,
40
- t as Adornment,
41
- a as Advice,
42
- m as Autocomplete,
43
- n as Button,
44
- i as Checkbox,
45
- s as Chip,
46
- Bo as Content,
47
- S as Dialog,
48
- yo as DialogTitle,
49
- b as EllipsisTooltip,
50
- h as Icon,
51
- I as IconButton,
52
- P as Input,
53
- y as InputSearch,
54
- B as LoadingSpinner,
55
- R as PageHeader,
56
- w as Pagination,
57
- N as Popover,
58
- W as ResultWithChips,
59
- c as RowItem,
60
- q as Select,
61
- z as SelectOption,
62
- J as Skeleton,
63
- K as SkeletonCircle,
64
- M as SkeletonTable,
65
- U as Snackbar,
66
- Io as SnackbarContext,
67
- Do as SnackbarProvider,
68
- X as SortTooltip,
69
- _ as Stepper,
70
- oo as StepperNavigator,
71
- eo as TBody,
72
- to as THead,
73
- wo as Tab,
74
- Lo as TabPanel,
75
- po as Table,
76
- no as Tabs,
77
- ao as Td,
78
- ko as Text,
79
- io as TextDisplay,
80
- fo as Th,
81
- so as Toggle,
82
- go as ToggleGroup,
83
- g as ToggleGroupItem,
84
- So as Tooltip,
85
- mo as Tr,
86
- ho as Typography,
87
- E as paginationDefaultTranslations,
88
- Y as sortTooltipDefaultTranslations,
89
- Po as useSnackbar
33
+ bo as Actions,
34
+ e as Advice,
35
+ p as Button,
36
+ f as Checkbox,
37
+ m as Chip,
38
+ So as Content,
39
+ i as Dialog,
40
+ co as DialogTitle,
41
+ s as EllipsisTooltip,
42
+ g as Icon,
43
+ u as IconButton,
44
+ d as Input,
45
+ C as InputSearch,
46
+ D as LoadingSpinner,
47
+ y as PageHeader,
48
+ B as Pagination,
49
+ A as Select,
50
+ H as SelectOption,
51
+ L as Skeleton,
52
+ O as SkeletonCircle,
53
+ j as SkeletonTable,
54
+ w as Snackbar,
55
+ lo as SnackbarContext,
56
+ io as SnackbarProvider,
57
+ F as SortTooltip,
58
+ M as Stepper,
59
+ Q as TBody,
60
+ R as THead,
61
+ Co as Tab,
62
+ Do as TabPanel,
63
+ U as Table,
64
+ Z as Tabs,
65
+ V as Td,
66
+ xo as Text,
67
+ $ as TextDisplay,
68
+ W as Th,
69
+ ro as Toggle,
70
+ to as ToggleGroup,
71
+ n as ToggleGroupItem,
72
+ ao as Tooltip,
73
+ X as Tr,
74
+ mo as Typography,
75
+ G as paginationDefaultTranslations,
76
+ J as sortTooltipDefaultTranslations,
77
+ To as useSnackbar
90
78
  };
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}: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
+ :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
+ };