@pismo/marola 1.0.0-beta.1 → 1.0.0-beta.10

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 (97) 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-C7W0gYOI.js +175 -0
  9. package/dist/assets/Adornment.css +1 -0
  10. package/dist/assets/Advice.css +1 -1
  11. package/dist/assets/Autocomplete.css +1 -0
  12. package/dist/assets/Button.css +1 -1
  13. package/dist/assets/Checkbox.css +1 -1
  14. package/dist/assets/Dialog.css +1 -1
  15. package/dist/assets/IconButton.css +1 -1
  16. package/dist/assets/Input.css +1 -1
  17. package/dist/assets/PageHeader.css +1 -1
  18. package/dist/assets/Pagination.css +1 -1
  19. package/dist/assets/SelectButton.css +1 -1
  20. package/dist/assets/Snackbar.css +1 -1
  21. package/dist/assets/SortTooltip.css +1 -1
  22. package/dist/assets/Stepper.css +1 -1
  23. package/dist/assets/Table.css +1 -1
  24. package/dist/assets/TextDisplay.css +1 -1
  25. package/dist/assets/Toggle.css +1 -1
  26. package/dist/assets/Toggle2.css +1 -1
  27. package/dist/assets/Typography.css +1 -1
  28. package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-BtBYUV_B.js} +1 -1
  29. package/dist/components/Adornment/Adornment.d.ts +19 -0
  30. package/dist/components/Adornment/Adornment.js +13 -0
  31. package/dist/components/Advice/Advice.d.ts +32 -17
  32. package/dist/components/Advice/Advice.js +39 -40
  33. package/dist/components/Advice/Advice.stories.d.ts +4 -3
  34. package/dist/components/Autocomplete/Autocomplete.d.ts +50 -0
  35. package/dist/components/Autocomplete/Autocomplete.js +689 -0
  36. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +45 -0
  37. package/dist/components/Button/Button.js +50 -50
  38. package/dist/components/Button/Button.stories.d.ts +8 -52
  39. package/dist/components/Checkbox/Checkbox.js +52 -52
  40. package/dist/components/Chip/Chip.d.ts +3 -11
  41. package/dist/components/Chip/Chip.js +5 -4
  42. package/dist/components/Chip/Chip.stories.d.ts +3 -2
  43. package/dist/components/Dialog/Actions.js +1 -1
  44. package/dist/components/Dialog/Backdrop.js +1 -1
  45. package/dist/components/Dialog/CloseIconButton.js +2 -2
  46. package/dist/components/Dialog/Dialog.js +13 -12
  47. package/dist/components/Dialog/Dialog.stories.d.ts +44 -44
  48. package/dist/components/Dialog/DialogTitle.js +1 -1
  49. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
  50. package/dist/components/Icon/Icon.js +27 -21
  51. package/dist/components/Icon/types.d.ts +1 -1
  52. package/dist/components/IconButton/IconButton.js +42 -42
  53. package/dist/components/Input/Input.d.ts +4 -2
  54. package/dist/components/Input/Input.js +74 -471
  55. package/dist/components/Input/Input.stories.d.ts +1 -1
  56. package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -1
  57. package/dist/components/PageHeader/PageHeader.js +57 -57
  58. package/dist/components/Pagination/Pagination.d.ts +7 -1
  59. package/dist/components/Pagination/Pagination.js +104 -182
  60. package/dist/components/Pagination/usePagination.d.ts +90 -0
  61. package/dist/components/Pagination/usePagination.js +79 -0
  62. package/dist/components/RowItem/RowItem.d.ts +25 -0
  63. package/dist/components/RowItem/RowItem.js +19 -0
  64. package/dist/components/Select/Select.js +9 -8
  65. package/dist/components/Select/SelectButton.js +1 -1
  66. package/dist/components/Snackbar/Snackbar.js +94 -94
  67. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  68. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  69. package/dist/components/Stepper/Stepper.js +35 -35
  70. package/dist/components/Table/Table.js +96 -96
  71. package/dist/components/Tabs/Tab.js +18 -17
  72. package/dist/components/Tabs/TabPanel.js +27 -26
  73. package/dist/components/Tabs/Tabs.js +25 -25
  74. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -1
  75. package/dist/components/TextDisplay/TextDisplay.js +37 -30
  76. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -1
  77. package/dist/components/Toggle/Toggle.js +56 -56
  78. package/dist/components/ToggleGroup/Toggle.js +2 -2
  79. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  80. package/dist/components/Tooltip/Tooltip.js +3 -3
  81. package/dist/components/Typography/Typography.js +47 -47
  82. package/dist/{index-CjW42-M-.js → index-D3Wj0eid.js} +1 -1
  83. package/dist/main.d.ts +3 -0
  84. package/dist/main.js +81 -76
  85. package/dist/ownerDocument-B61GUaFs.js +33 -0
  86. package/dist/{useButton-DNk3wrQp.js → useButton-Bn3MNH8I.js} +1 -1
  87. package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
  88. package/dist/useEventCallback-BAQJJ3ye.js +14 -0
  89. package/dist/useId-BW-oWmul.js +19 -0
  90. package/dist/{useList-B0hog_3-.js → useList-BpJT77u3.js} +2 -2
  91. package/dist/{index-CH45lKw7.js → useSlotProps-kRhf7Gil.js} +93 -94
  92. package/package.json +2 -2
  93. package/dist/Dialog.module-DFEmFdYT.js +0 -30
  94. package/dist/SelectButton-C8JQKaf4.js +0 -61
  95. package/dist/Toggle-BCgIItCc.js +0 -142
  96. package/dist/useCompoundItem-D1iRfg8D.js +0 -84
  97. package/dist/useEventCallback-xTG9piMa.js +0 -45
@@ -1,65 +1,65 @@
1
1
  import '../../assets/Typography.css';
2
- import { jsx as b } from "react/jsx-runtime";
3
- import { forwardRef as m, useMemo as c } from "react";
4
- import { bemify as f, getBEMBase as x, getBEMBlock as k } from "../../utils/styleStrings.js";
5
- import { c as B } from "../../clsx-DB4S2d7J.js";
2
+ import { jsx as m } from "react/jsx-runtime";
3
+ import { forwardRef as c, useMemo as f } from "react";
4
+ import { bemify as x, getBEMBase as k, getBEMBlock as B } from "../../utils/styleStrings.js";
5
+ import { c as $ } from "../../clsx-DB4S2d7J.js";
6
6
  const t = {
7
- "u-typography-h1": "_u-typography-h1_zizdh_1",
8
- "u-typography-h2": "_u-typography-h2_zizdh_8",
9
- "u-typography-h3": "_u-typography-h3_zizdh_15",
10
- "u-typography-h4": "_u-typography-h4_zizdh_22",
11
- "u-typography-h5": "_u-typography-h5_zizdh_29",
12
- "u-typography-h6": "_u-typography-h6_zizdh_36",
13
- "u-typography-base": "_u-typography-base_zizdh_43",
14
- "u-typography-base--xxl": "_u-typography-base--xxl_zizdh_48",
15
- "u-typography-base--xl": "_u-typography-base--xl_zizdh_52",
16
- "u-typography-base--lg": "_u-typography-base--lg_zizdh_56",
17
- "u-typography-base--sm": "_u-typography-base--sm_zizdh_60",
18
- "u-typography-base--bold": "_u-typography-base--bold_zizdh_64",
19
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_zizdh_67",
20
- "u-typography-base--underlined": "_u-typography-base--underlined_zizdh_70",
21
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_zizdh_73"
22
- }, $ = (e) => {
7
+ "u-typography-h1": "_u-typography-h1_gn8st_1",
8
+ "u-typography-h2": "_u-typography-h2_gn8st_8",
9
+ "u-typography-h3": "_u-typography-h3_gn8st_15",
10
+ "u-typography-h4": "_u-typography-h4_gn8st_22",
11
+ "u-typography-h5": "_u-typography-h5_gn8st_29",
12
+ "u-typography-h6": "_u-typography-h6_gn8st_36",
13
+ "u-typography-base": "_u-typography-base_gn8st_43",
14
+ "u-typography-base--xxl": "_u-typography-base--xxl_gn8st_49",
15
+ "u-typography-base--xl": "_u-typography-base--xl_gn8st_53",
16
+ "u-typography-base--lg": "_u-typography-base--lg_gn8st_57",
17
+ "u-typography-base--sm": "_u-typography-base--sm_gn8st_61",
18
+ "u-typography-base--bold": "_u-typography-base--bold_gn8st_65",
19
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_gn8st_68",
20
+ "u-typography-base--underlined": "_u-typography-base--underlined_gn8st_71",
21
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_gn8st_74"
22
+ }, E = (e) => {
23
23
  const a = e.toString();
24
24
  let r = "base";
25
25
  return a.match(/^h[1-6]/) && (r = a), r;
26
- }, E = m((e, a) => {
26
+ }, M = c((e, a) => {
27
27
  const {
28
28
  children: r,
29
- className: s,
29
+ className: h,
30
30
  underline: y = !1,
31
- element: u = "span",
32
- bold: i = !1,
33
- color: d,
34
- variant: _ = $(u),
35
- strikethrough: h = !1,
36
- elementProps: n
37
- } = e, l = u, z = c(() => {
38
- const o = `u-typography-${f(_)}`, g = x(o), p = k(o);
39
- return B(
40
- t[g],
41
- { [t[`${o}`]]: o !== g },
42
- s,
43
- { [t[`${p}--bold`]]: i },
31
+ element: g = "span",
32
+ bold: n = !1,
33
+ color: l,
34
+ variant: u = E(g),
35
+ strikethrough: s = !1,
36
+ elementProps: i
37
+ } = e, b = g, d = f(() => {
38
+ const o = `u-typography-${x(u)}`, _ = k(o), p = B(o);
39
+ return $(
40
+ t[_],
41
+ { [t[`${o}`]]: o !== _ },
42
+ h,
43
+ { [t[`${p}--bold`]]: n },
44
44
  { [t[`${p}--underlined`]]: y },
45
- { [t[`${p}--strikethrough`]]: h },
46
- { [t[`${p}--strikethrough-underlined`]]: h && h && y }
45
+ { [t[`${p}--strikethrough`]]: s },
46
+ { [t[`${p}--strikethrough-underlined`]]: s && s && y }
47
47
  );
48
- }, [i, s, h, y, _]);
49
- return /* @__PURE__ */ b(
50
- l,
48
+ }, [n, h, s, y, u]);
49
+ return /* @__PURE__ */ m(
50
+ b,
51
51
  {
52
- style: { color: d },
52
+ style: { color: l },
53
53
  ref: a,
54
54
  "data-testid": e["data-testid"],
55
- ...n ?? {},
56
- className: z,
55
+ ...i ?? {},
56
+ className: d,
57
57
  children: r
58
58
  }
59
59
  );
60
- }), j = E;
60
+ }), w = M;
61
61
  export {
62
- j as Text,
63
- E as Typography,
64
- E as default
62
+ w as Text,
63
+ M as Typography,
64
+ M as default
65
65
  };
@@ -1,4 +1,4 @@
1
- import { b as Ak, h as Hk } from "./index-CH45lKw7.js";
1
+ import { b as Ak, h as Hk } from "./useSlotProps-kRhf7Gil.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,7 +2,9 @@
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';
5
6
  export * from './components/Advice/Advice';
7
+ export * from './components/Autocomplete/Autocomplete';
6
8
  export * from './components/Button/Button';
7
9
  export * from './components/Checkbox/Checkbox';
8
10
  export * from './components/Chip/Chip';
@@ -15,6 +17,7 @@ export * from './components/InputSearch/InputSearch';
15
17
  export * from './components/LoadingSpinner/LoadingSpinner';
16
18
  export * from './components/PageHeader/PageHeader';
17
19
  export * from './components/Pagination/Pagination';
20
+ export * from './components/RowItem/RowItem';
18
21
  export * from './components/Select/Select';
19
22
  export * from './components/Skeleton/Skeleton';
20
23
  export * from './components/Snackbar/Snackbar';
package/dist/main.js CHANGED
@@ -1,78 +1,83 @@
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";
1
+ import { Adornment as e } from "./components/Adornment/Adornment.js";
2
+ import { Advice as p } from "./components/Advice/Advice.js";
3
+ import { Autocomplete as f } from "./components/Autocomplete/Autocomplete.js";
4
+ import { Button as x } from "./components/Button/Button.js";
5
+ import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
6
+ import { C as T, R as s, T as c } from "./Toggle-C7W0gYOI.js";
7
+ import { Dialog as u } from "./components/Dialog/Dialog.js";
8
+ import { EllipsisTooltip as d } from "./components/EllipsisTooltip/EllipsisTooltip.js";
9
+ import { Icon as k } from "./components/Icon/Icon.js";
10
+ import { IconButton as I } from "./components/IconButton/IconButton.js";
11
+ import { Input as D } from "./components/Input/Input.js";
12
+ import { InputSearch as A } from "./components/InputSearch/InputSearch.js";
13
+ import { LoadingSpinner as B } from "./components/LoadingSpinner/LoadingSpinner.js";
14
+ import { PageHeader as v } from "./components/PageHeader/PageHeader.js";
15
+ import { Pagination as R, paginationDefaultTranslations as w } from "./components/Pagination/Pagination.js";
16
+ import { Select as L, SelectOption as O } from "./components/Select/Select.js";
17
+ import { Skeleton as q, SkeletonCircle as z, SkeletonTable as F } from "./components/Skeleton/Skeleton.js";
18
+ import { Snackbar as K } from "./components/Snackbar/Snackbar.js";
19
+ import { SortTooltip as N, sortTooltipDefaultTranslations as Q } from "./components/SortTooltip/SortTooltip.js";
20
+ import { Stepper as V } from "./components/Stepper/Stepper.js";
21
+ import { TBody as X, THead as Y, Table as Z, Td as _, Th as $, Tr as oo } from "./components/Table/Table.js";
22
+ import { Tabs as eo } from "./components/Tabs/Tabs.js";
23
+ import { TextDisplay as po } from "./components/TextDisplay/TextDisplay.js";
24
+ import { Toggle as fo } from "./components/Toggle/Toggle.js";
25
+ import { G as xo } from "./Group-B3p31ftp.js";
26
+ import { Tooltip as lo } from "./components/Tooltip/Tooltip.js";
27
+ import { Text as To, Typography as so } from "./components/Typography/Typography.js";
28
+ import { SnackbarContext as go, SnackbarProvider as uo, useSnackbar as So } from "./contexts/SnackbarProvider/SnackbarProvider.js";
29
+ import { default as ko } from "./components/Dialog/DialogTitle.js";
30
+ import { default as Io } from "./components/Dialog/Content.js";
31
+ import { default as Do } from "./components/Dialog/Actions.js";
32
+ import { Tab as Ao } from "./components/Tabs/Tab.js";
33
+ import { TabPanel as Bo } from "./components/Tabs/TabPanel.js";
32
34
  export {
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
35
+ Do as Actions,
36
+ e as Adornment,
37
+ p as Advice,
38
+ f as Autocomplete,
39
+ x as Button,
40
+ l as Checkbox,
41
+ T as Chip,
42
+ Io as Content,
43
+ u as Dialog,
44
+ ko as DialogTitle,
45
+ d as EllipsisTooltip,
46
+ k as Icon,
47
+ I as IconButton,
48
+ D as Input,
49
+ A as InputSearch,
50
+ B as LoadingSpinner,
51
+ v as PageHeader,
52
+ R as Pagination,
53
+ s as RowItem,
54
+ L as Select,
55
+ O as SelectOption,
56
+ q as Skeleton,
57
+ z as SkeletonCircle,
58
+ F as SkeletonTable,
59
+ K as Snackbar,
60
+ go as SnackbarContext,
61
+ uo as SnackbarProvider,
62
+ N as SortTooltip,
63
+ V as Stepper,
64
+ X as TBody,
65
+ Y as THead,
66
+ Ao as Tab,
67
+ Bo as TabPanel,
68
+ Z as Table,
69
+ eo as Tabs,
70
+ _ as Td,
71
+ To as Text,
72
+ po as TextDisplay,
73
+ $ as Th,
74
+ fo as Toggle,
75
+ xo as ToggleGroup,
76
+ c as ToggleGroupItem,
77
+ lo as Tooltip,
78
+ oo as Tr,
79
+ so as Typography,
80
+ w as paginationDefaultTranslations,
81
+ Q as sortTooltipDefaultTranslations,
82
+ So as useSnackbar
78
83
  };
@@ -0,0 +1,33 @@
1
+ import { P as c } from "./useSlotProps-kRhf7Gil.js";
2
+ function a(e, n) {
3
+ return process.env.NODE_ENV === "production" ? () => null : function(...t) {
4
+ return e(...t) || n(...t);
5
+ };
6
+ }
7
+ function p(e) {
8
+ const {
9
+ prototype: n = {}
10
+ } = e;
11
+ return !!n.isReactComponent;
12
+ }
13
+ function l(e, n, i, t, s) {
14
+ const r = e[n], f = s || n;
15
+ if (r == null || // When server-side rendering React doesn't warn either.
16
+ // This is not an accurate check for SSR.
17
+ // This is only in place for Emotion compat.
18
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
19
+ typeof window > "u")
20
+ return null;
21
+ let o;
22
+ const u = r.type;
23
+ return typeof u == "function" && !p(u) && (o = "Did you accidentally use a plain function component for an element instead?"), o !== void 0 ? new Error(`Invalid ${t} \`${f}\` supplied to \`${i}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
24
+ }
25
+ const m = a(c.element, l);
26
+ m.isRequired = a(c.element.isRequired, l);
27
+ function y(e) {
28
+ return e && e.ownerDocument || document;
29
+ }
30
+ export {
31
+ m as e,
32
+ y as o
33
+ };
@@ -1,4 +1,4 @@
1
- import { u as S, b as D, f as k } from "./index-CH45lKw7.js";
1
+ import { u as S, b as D, f as k } from "./useSlotProps-kRhf7Gil.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,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
  }