@recursica/mui-adapter 0.4.0 → 0.5.0

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 (86) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/mui-adapter.cjs +1 -1
  3. package/dist/mui-adapter.cjs.map +1 -1
  4. package/dist/mui-adapter.css +1 -1
  5. package/dist/mui-adapter.js +138 -136
  6. package/dist/mui-adapter.js.map +1 -1
  7. package/dist/src/components/Autocomplete/Autocomplete.d.ts +3 -0
  8. package/dist/src/components/Autocomplete/index.d.ts +1 -0
  9. package/dist/src/components/index.d.ts +1 -0
  10. package/package.json +5 -2
  11. package/src/GlobalExemptions.modules.css +13 -0
  12. package/src/components/Accordion/Accordion.module.css +56 -0
  13. package/src/components/Accordion/Accordion.tsx +1 -0
  14. package/src/components/AssistiveElement/AssistiveElement.module.css +20 -0
  15. package/src/components/AssistiveElement/AssistiveElement.tsx +1 -0
  16. package/src/components/Autocomplete/Autocomplete.module.css +47 -0
  17. package/src/components/Autocomplete/Autocomplete.stories.tsx +35 -0
  18. package/src/components/Autocomplete/Autocomplete.tsx +8 -0
  19. package/src/components/Autocomplete/index.ts +1 -0
  20. package/src/components/Avatar/Avatar.module.css +74 -0
  21. package/src/components/Avatar/Avatar.tsx +1 -0
  22. package/src/components/Badge/Badge.module.css +29 -0
  23. package/src/components/Badge/Badge.tsx +1 -0
  24. package/src/components/Breadcrumb/Breadcrumb.module.css +6 -0
  25. package/src/components/Breadcrumb/Breadcrumb.tsx +1 -0
  26. package/src/components/Button/Button.module.css +110 -17
  27. package/src/components/Button/Button.stories.tsx +3 -0
  28. package/src/components/Button/Button.tsx +10 -3
  29. package/src/components/Card/Card.module.css +38 -0
  30. package/src/components/Card/Card.tsx +1 -0
  31. package/src/components/Checkbox/Checkbox.module.css +39 -0
  32. package/src/components/Checkbox/Checkbox.tsx +1 -0
  33. package/src/components/Chip/Chip.module.css +51 -0
  34. package/src/components/Chip/Chip.tsx +1 -0
  35. package/src/components/DatePicker/DatePicker.module.css +42 -0
  36. package/src/components/DatePicker/DatePicker.tsx +1 -0
  37. package/src/components/Dropdown/Dropdown.module.css +46 -0
  38. package/src/components/Dropdown/Dropdown.tsx +1 -0
  39. package/src/components/FileInput/FileInput.module.css +47 -0
  40. package/src/components/FileInput/FileInput.tsx +1 -0
  41. package/src/components/FileUpload/FileUpload.module.css +40 -0
  42. package/src/components/FileUpload/FileUpload.tsx +1 -0
  43. package/src/components/HoverCard/HoverCard.module.css +23 -0
  44. package/src/components/HoverCard/HoverCard.tsx +1 -0
  45. package/src/components/Label/Label.module.css +35 -0
  46. package/src/components/Label/Label.tsx +1 -0
  47. package/src/components/Link/Link.module.css +8 -0
  48. package/src/components/Menu/Menu.module.css +53 -0
  49. package/src/components/Menu/Menu.tsx +1 -0
  50. package/src/components/Modal/Modal.module.css +36 -0
  51. package/src/components/Modal/Modal.tsx +1 -0
  52. package/src/components/NumberInput/NumberInput.module.css +47 -0
  53. package/src/components/NumberInput/NumberInput.tsx +1 -0
  54. package/src/components/Pagination/Pagination.module.css +81 -0
  55. package/src/components/Pagination/Pagination.tsx +1 -0
  56. package/src/components/Panel/Panel.module.css +38 -0
  57. package/src/components/Panel/Panel.tsx +1 -0
  58. package/src/components/Radio/Radio.module.css +37 -0
  59. package/src/components/Radio/Radio.tsx +1 -0
  60. package/src/components/ReadOnlyField/ReadOnlyField.module.css +16 -0
  61. package/src/components/ReadOnlyField/ReadOnlyField.tsx +1 -0
  62. package/src/components/SegmentedControl/SegmentedControl.module.css +47 -0
  63. package/src/components/SegmentedControl/SegmentedControl.tsx +1 -0
  64. package/src/components/Slider/Slider.module.css +86 -0
  65. package/src/components/Slider/Slider.tsx +1 -0
  66. package/src/components/Stepper/Stepper.module.css +71 -0
  67. package/src/components/Stepper/Stepper.tsx +1 -0
  68. package/src/components/Switch/Switch.module.css +39 -0
  69. package/src/components/Switch/Switch.tsx +1 -0
  70. package/src/components/Tabs/Tabs.module.css +79 -0
  71. package/src/components/Tabs/Tabs.tsx +1 -0
  72. package/src/components/TextArea/TextArea.module.css +37 -0
  73. package/src/components/TextArea/TextArea.tsx +1 -0
  74. package/src/components/TextField/TextField.module.css +47 -0
  75. package/src/components/TextField/TextField.tsx +1 -0
  76. package/src/components/TimePicker/TimePicker.module.css +41 -0
  77. package/src/components/TimePicker/TimePicker.tsx +1 -0
  78. package/src/components/Timeline/Timeline.module.css +78 -0
  79. package/src/components/Timeline/Timeline.tsx +1 -0
  80. package/src/components/Toast/Toast.module.css +32 -0
  81. package/src/components/Toast/Toast.tsx +1 -0
  82. package/src/components/Tooltip/Tooltip.module.css +25 -0
  83. package/src/components/Tooltip/Tooltip.tsx +1 -0
  84. package/src/components/TransferList/TransferList.module.css +38 -0
  85. package/src/components/TransferList/TransferList.tsx +1 -0
  86. package/src/components/index.ts +1 -0
@@ -1,9 +1,9 @@
1
- import { jsx as r, jsxs as P, Fragment as L } from "react/jsx-runtime";
2
- import z, { forwardRef as u, useEffect as w } from "react";
3
- import { Box as k, Button as O, Container as G, Stack as R, Link as D, Typography as V } from "@mui/material";
4
- const me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), fe = (e) => /* @__PURE__ */ r("div", { ...e, children: "AssistiveElement" }), he = (e) => /* @__PURE__ */ r("div", { ...e, children: "Avatar" }), _e = (e) => /* @__PURE__ */ r("div", { ...e, children: "Badge" }), ye = u(function(t, n) {
5
- return /* @__PURE__ */ r(k, { ref: n, ...t });
6
- }), ve = (e) => /* @__PURE__ */ r("div", { ...e, children: "Breadcrumb" }), M = [
1
+ import { jsx as r, jsxs as R, Fragment as F } from "react/jsx-runtime";
2
+ import O, { forwardRef as u, useEffect as G } from "react";
3
+ import { Box as A, Button as V, Container as D, Stack as B, Link as M, Typography as U } from "@mui/material";
4
+ const he = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), _e = (e) => /* @__PURE__ */ r("div", { ...e, children: "AssistiveElement" }), ye = (e) => /* @__PURE__ */ r("div", { ...e, children: "Autocomplete" }), ve = (e) => /* @__PURE__ */ r("div", { ...e, children: "Avatar" }), be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Badge" }), ge = u(function(t, n) {
5
+ return /* @__PURE__ */ r(A, { ref: n, ...t });
6
+ }), xe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Breadcrumb" }), Y = [
7
7
  "className",
8
8
  "classes",
9
9
  // MUI specific nested class overrides
@@ -32,7 +32,7 @@ const me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), fe
32
32
  "display",
33
33
  "position",
34
34
  "zIndex"
35
- ], U = /* @__PURE__ */ new Set([
35
+ ], j = /* @__PURE__ */ new Set([
36
36
  "m",
37
37
  "my",
38
38
  "mx",
@@ -54,7 +54,7 @@ const me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), fe
54
54
  "left",
55
55
  "bottom",
56
56
  "right"
57
- ]), c = {
57
+ ]), l = {
58
58
  "rec-none": "var(--recursica_brand_dimensions_general_none)",
59
59
  "rec-sm": "var(--recursica_brand_dimensions_general_sm)",
60
60
  "rec-default": "var(--recursica_brand_dimensions_general_default)",
@@ -63,7 +63,7 @@ const me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), fe
63
63
  "rec-xl": "var(--recursica_brand_dimensions_general_xl)",
64
64
  "rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
65
65
  };
66
- function g(e) {
66
+ function x(e) {
67
67
  const t = { ...e };
68
68
  return "sx" in t && delete t.sx, t;
69
69
  }
@@ -71,32 +71,32 @@ function v(e, t) {
71
71
  if (t)
72
72
  return e;
73
73
  const n = { ...e };
74
- for (const o of M)
74
+ for (const o of Y)
75
75
  o in n && delete n[o];
76
76
  for (const [o, s] of Object.entries(n))
77
- typeof s == "string" && s.startsWith("rec-") && U.has(o) && s in c && (n[o] = c[s]);
77
+ typeof s == "string" && s.startsWith("rec-") && j.has(o) && s in l && (n[o] = l[s]);
78
78
  return n;
79
79
  }
80
- const Y = "Loader-module__root___6iYOP", S = {
81
- root: Y
82
- }, F = u(function({ variant: t = "oval", size: n = "default", overStyled: o = !1, ...s }, a) {
83
- const l = {
80
+ const H = "Loader-module__root___6iYOP", L = {
81
+ root: H
82
+ }, I = u(function({ variant: t = "oval", size: n = "default", overStyled: o = !1, ...s }, a) {
83
+ const c = {
84
84
  sm: "small",
85
85
  md: "default",
86
86
  lg: "large",
87
87
  small: "small",
88
88
  default: "default",
89
89
  large: "large"
90
- }[n] || "default", d = v(s, o), p = d.className, f = p ? `${S.root} ${p}` : S.root;
90
+ }[n] || "default", d = v(s, o), p = d.className, f = p ? `${L.root} ${p}` : L.root;
91
91
  return /* @__PURE__ */ r(
92
92
  "span",
93
93
  {
94
94
  ref: a,
95
95
  "data-variant": t,
96
- "data-size": l,
96
+ "data-size": c,
97
97
  ...d,
98
98
  className: f,
99
- children: t === "bars" || t === "dots" ? /* @__PURE__ */ P(L, { children: [
99
+ children: t === "bars" || t === "dots" ? /* @__PURE__ */ R(F, { children: [
100
100
  /* @__PURE__ */ r("span", {}),
101
101
  /* @__PURE__ */ r("span", {}),
102
102
  /* @__PURE__ */ r("span", {})
@@ -104,16 +104,16 @@ const Y = "Loader-module__root___6iYOP", S = {
104
104
  }
105
105
  );
106
106
  });
107
- F.displayName = "Loader";
108
- const j = "Button-module__root___Q2R8-", H = "Button-module__labelText___rFV5p", K = "Button-module__iconWrapper___uEKPa", _ = {
109
- root: j,
110
- labelText: H,
111
- iconWrapper: K
107
+ I.displayName = "Loader";
108
+ const K = "Button-module__root___Q2R8-", q = "Button-module__labelText___rFV5p", Q = "Button-module__iconWrapper___uEKPa", _ = {
109
+ root: K,
110
+ labelText: q,
111
+ iconWrapper: Q
112
112
  };
113
- function q(e) {
113
+ function J(e) {
114
114
  return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
115
115
  }
116
- const Q = u(
116
+ const X = u(
117
117
  function({
118
118
  variant: t = "solid",
119
119
  size: n = "default",
@@ -121,31 +121,32 @@ const Q = u(
121
121
  children: s,
122
122
  overStyled: a = !1,
123
123
  loaderVariant: i = "oval",
124
- loaderSize: l,
124
+ loaderSize: c,
125
125
  useRecursicaLoader: d = !0,
126
126
  ...p
127
127
  }, f) {
128
128
  const b = v(p, a), m = b;
129
129
  delete m.fullWidth, delete m.color;
130
- const A = !!o || !!m.startIcon, I = !!m.endIcon, T = (A || I) && !q(s);
131
- typeof process < "u" && process.env.NODE_ENV !== "production" && T && !m["aria-label"] && console.warn(
130
+ const N = !!o || !!m.startIcon, C = !!m.endIcon, E = J(s), S = (N || C) && !E;
131
+ let g = "label";
132
+ S ? g = "icon-only" : (N || C) && (g = "icon-label"), typeof process < "u" && process.env.NODE_ENV !== "production" && S && !m["aria-label"] && console.warn(
132
133
  '[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
133
134
  );
134
- const N = m.className, W = N ? `${_.root} ${N}` : _.root, E = l ?? (n === "small" ? "small" : "default");
135
- let C = m.loadingIndicator;
136
- return d && (C = /* @__PURE__ */ r(F, { variant: i, size: E })), /* @__PURE__ */ r(
137
- O,
135
+ const $ = m.className, z = $ ? `${_.root} ${$}` : _.root, w = c ?? (n === "small" ? "small" : "default");
136
+ let P = m.loadingIndicator;
137
+ return d && (P = /* @__PURE__ */ r(I, { variant: i, size: w })), /* @__PURE__ */ r(
138
+ V,
138
139
  {
139
140
  ref: f,
140
141
  disableRipple: !0,
141
142
  disableElevation: !0,
142
- className: W,
143
+ className: z,
143
144
  loading: !!m.loading,
144
- loadingIndicator: C,
145
+ loadingIndicator: P,
145
146
  startIcon: o != null ? /* @__PURE__ */ r("span", { className: _.iconWrapper, "aria-hidden": !0, children: o }) : void 0,
146
147
  "data-variant": t,
147
148
  "data-size": n,
148
- ...T ? { "data-icon-only": "" } : {},
149
+ "data-content": g,
149
150
  ...m.loading ? { "data-loading": "true" } : {},
150
151
  ...b,
151
152
  disabled: !!m.disabled || !!m.loading,
@@ -154,8 +155,8 @@ const Q = u(
154
155
  );
155
156
  }
156
157
  );
157
- Q.displayName = "Button";
158
- const be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Card" }), ge = (e) => /* @__PURE__ */ r("div", { ...e, children: "Checkbox" }), xe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Chip" }), J = u(
158
+ X.displayName = "Button";
159
+ const Te = (e) => /* @__PURE__ */ r("div", { ...e, children: "Card" }), Ne = (e) => /* @__PURE__ */ r("div", { ...e, children: "Checkbox" }), Ce = (e) => /* @__PURE__ */ r("div", { ...e, children: "Chip" }), Z = u(
159
160
  function({ children: t, size: n, ...o }, s) {
160
161
  const a = {
161
162
  "rec-sm": "sm",
@@ -166,7 +167,7 @@ const be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Card" }), ge = (e)
166
167
  "rec-2xl": "xl"
167
168
  }, i = typeof n == "string" && a[n] ? a[n] : n;
168
169
  return /* @__PURE__ */ r(
169
- G,
170
+ D,
170
171
  {
171
172
  ref: s,
172
173
  maxWidth: i,
@@ -176,15 +177,15 @@ const be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Card" }), ge = (e)
176
177
  );
177
178
  }
178
179
  );
179
- J.displayName = "Container";
180
- const Te = (e) => /* @__PURE__ */ r("div", { ...e, children: "DatePicker" }), Ne = (e) => /* @__PURE__ */ r("div", { ...e, children: "Dropdown" }), Ce = (e) => /* @__PURE__ */ r("div", { ...e, children: "FileInput" }), Se = (e) => /* @__PURE__ */ r("div", { ...e, children: "FileUpload" }), X = u(function({ children: t, gap: n = "rec-default", rowGap: o, columnGap: s, ...a }, i) {
181
- const l = g(a), d = typeof n == "string" && n in c ? c[n] : n, p = typeof o == "string" && o in c ? c[o] : o, f = typeof s == "string" && s in c ? c[s] : s;
180
+ Z.displayName = "Container";
181
+ const Se = (e) => /* @__PURE__ */ r("div", { ...e, children: "DatePicker" }), $e = (e) => /* @__PURE__ */ r("div", { ...e, children: "Dropdown" }), Pe = (e) => /* @__PURE__ */ r("div", { ...e, children: "FileInput" }), Le = (e) => /* @__PURE__ */ r("div", { ...e, children: "FileUpload" }), ee = u(function({ children: t, gap: n = "rec-default", rowGap: o, columnGap: s, ...a }, i) {
182
+ const c = x(a), d = typeof n == "string" && n in l ? l[n] : n, p = typeof o == "string" && o in l ? l[o] : o, f = typeof s == "string" && s in l ? l[s] : s;
182
183
  return /* @__PURE__ */ r(
183
- k,
184
+ A,
184
185
  {
185
186
  ref: i,
186
187
  display: "flex",
187
- ...l,
188
+ ...c,
188
189
  gap: d,
189
190
  rowGap: p,
190
191
  columnGap: f,
@@ -192,11 +193,11 @@ const Te = (e) => /* @__PURE__ */ r("div", { ...e, children: "DatePicker" }), Ne
192
193
  }
193
194
  );
194
195
  });
195
- X.displayName = "Flex";
196
- const $e = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlLayout" }), Pe = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlWrapper" }), Z = u(function({ children: t, gap: n = "rec-default", rowGap: o, columnGap: s, ...a }, i) {
197
- const l = g(a), d = typeof n == "string" && n in c ? c[n] : n, p = typeof o == "string" && o in c ? c[o] : o, f = typeof s == "string" && s in c ? c[s] : s;
196
+ ee.displayName = "Flex";
197
+ const ke = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlLayout" }), Re = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlWrapper" }), re = u(function({ children: t, gap: n = "rec-default", rowGap: o, columnGap: s, ...a }, i) {
198
+ const c = x(a), d = typeof n == "string" && n in l ? l[n] : n, p = typeof o == "string" && o in l ? l[o] : o, f = typeof s == "string" && s in l ? l[s] : s;
198
199
  return /* @__PURE__ */ r(
199
- R,
200
+ B,
200
201
  {
201
202
  ref: i,
202
203
  direction: "row",
@@ -206,20 +207,20 @@ const $e = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlLayout"
206
207
  ...p ? { rowGap: p } : {},
207
208
  ...f ? { columnGap: f } : {}
208
209
  },
209
- ...l,
210
+ ...c,
210
211
  children: t
211
212
  }
212
213
  );
213
214
  });
214
- Z.displayName = "Group";
215
- const Le = (e) => /* @__PURE__ */ r("div", { ...e, children: "HoverCard" }), ke = (e) => /* @__PURE__ */ r("div", { ...e, children: "Label" }), ee = "Link-module__root___I0VGE", re = "Link-module__iconWrapper___W-LlF", ne = "Link-module__labelText___wSvUy", y = {
216
- root: ee,
217
- iconWrapper: re,
218
- labelText: ne
219
- }, te = u(function({ icon: t, children: n, overStyled: o = !1, ...s }, a) {
215
+ re.displayName = "Group";
216
+ const Fe = (e) => /* @__PURE__ */ r("div", { ...e, children: "HoverCard" }), Ae = (e) => /* @__PURE__ */ r("div", { ...e, children: "Label" }), ne = "Link-module__root___I0VGE", te = "Link-module__iconWrapper___W-LlF", oe = "Link-module__labelText___wSvUy", y = {
217
+ root: ne,
218
+ iconWrapper: te,
219
+ labelText: oe
220
+ }, se = u(function({ icon: t, children: n, overStyled: o = !1, ...s }, a) {
220
221
  const i = v(s, o), d = i.className, p = d ? `${y.root} ${d}` : y.root;
221
- return /* @__PURE__ */ P(
222
- D,
222
+ return /* @__PURE__ */ R(
223
+ M,
223
224
  {
224
225
  ref: a,
225
226
  className: p,
@@ -233,17 +234,17 @@ const Le = (e) => /* @__PURE__ */ r("div", { ...e, children: "HoverCard" }), ke
233
234
  }
234
235
  );
235
236
  });
236
- te.displayName = "Link";
237
- const Re = (e) => /* @__PURE__ */ r("div", { ...e, children: "Menu" }), Fe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Modal" }), Be = (e) => /* @__PURE__ */ r("div", { ...e, children: "NumberInput" }), Ae = (e) => /* @__PURE__ */ r("div", { ...e, children: "Pagination" }), Ie = (e) => /* @__PURE__ */ r("div", { ...e, children: "Panel" }), We = (e) => /* @__PURE__ */ r("div", { ...e, children: "Radio" }), Ee = (e) => /* @__PURE__ */ r("div", { ...e, children: "ReadOnlyField" }), ze = (e) => /* @__PURE__ */ r("div", { ...e, children: "SegmentedControl" }), we = (e) => /* @__PURE__ */ r("div", { ...e, children: "Slider" }), oe = u(function({ children: t, gap: n = "rec-default", ...o }, s) {
238
- const a = g(o), i = typeof n == "string" && n in c ? c[n] : n;
239
- return /* @__PURE__ */ r(R, { ref: s, spacing: i, ...a, children: t });
237
+ se.displayName = "Link";
238
+ const Be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Menu" }), Ie = (e) => /* @__PURE__ */ r("div", { ...e, children: "Modal" }), We = (e) => /* @__PURE__ */ r("div", { ...e, children: "NumberInput" }), Ee = (e) => /* @__PURE__ */ r("div", { ...e, children: "Pagination" }), ze = (e) => /* @__PURE__ */ r("div", { ...e, children: "Panel" }), we = (e) => /* @__PURE__ */ r("div", { ...e, children: "Radio" }), Oe = (e) => /* @__PURE__ */ r("div", { ...e, children: "ReadOnlyField" }), Ge = (e) => /* @__PURE__ */ r("div", { ...e, children: "SegmentedControl" }), Ve = (e) => /* @__PURE__ */ r("div", { ...e, children: "Slider" }), ae = u(function({ children: t, gap: n = "rec-default", ...o }, s) {
239
+ const a = x(o), i = typeof n == "string" && n in l ? l[n] : n;
240
+ return /* @__PURE__ */ r(B, { ref: s, spacing: i, ...a, children: t });
240
241
  });
241
- oe.displayName = "Stack";
242
- const Oe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Stepper" }), Ge = (e) => /* @__PURE__ */ r("div", { ...e, children: "Switch" }), De = (e) => /* @__PURE__ */ r("div", { ...e, children: "Table" }), Ve = (e) => /* @__PURE__ */ r("div", { ...e, children: "Tabs" }), x = u(
242
+ ae.displayName = "Stack";
243
+ const De = (e) => /* @__PURE__ */ r("div", { ...e, children: "Stepper" }), Me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Switch" }), Ue = (e) => /* @__PURE__ */ r("div", { ...e, children: "Table" }), Ye = (e) => /* @__PURE__ */ r("div", { ...e, children: "Tabs" }), T = u(
243
244
  function({ typographyClass: t, overStyled: n = !1, ...o }, s) {
244
- const a = v(o, n), l = a.className, d = l ? `${t} ${l}` : t;
245
+ const a = v(o, n), c = a.className, d = c ? `${t} ${c}` : t;
245
246
  return /* @__PURE__ */ r(
246
- V,
247
+ U,
247
248
  {
248
249
  ref: s,
249
250
  className: d,
@@ -253,16 +254,16 @@ const Oe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Stepper" }), Ge =
253
254
  );
254
255
  }
255
256
  );
256
- x.displayName = "Typography";
257
- const se = u(function({ variant: t = "body", ...n }, o) {
257
+ T.displayName = "Typography";
258
+ const ie = u(function({ variant: t = "body", ...n }, o) {
258
259
  const s = `recursica_brand_typography_${t}`;
259
- return /* @__PURE__ */ r(x, { ref: o, typographyClass: s, ...n });
260
+ return /* @__PURE__ */ r(T, { ref: o, typographyClass: s, ...n });
260
261
  });
261
- se.displayName = "Text";
262
- const Me = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextArea" }), Ue = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextField" }), Ye = (e) => /* @__PURE__ */ r("div", { ...e, children: "TimePicker" }), je = (e) => /* @__PURE__ */ r("div", { ...e, children: "Timeline" }), ae = u(function({ order: t = 1, component: n, ...o }, s) {
262
+ ie.displayName = "Text";
263
+ const je = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextArea" }), He = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextField" }), Ke = (e) => /* @__PURE__ */ r("div", { ...e, children: "TimePicker" }), qe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Timeline" }), le = u(function({ order: t = 1, component: n, ...o }, s) {
263
264
  const a = `recursica_brand_typography_h${t}`, i = `h${t}`;
264
265
  return /* @__PURE__ */ r(
265
- x,
266
+ T,
266
267
  {
267
268
  ref: s,
268
269
  typographyClass: a,
@@ -271,17 +272,17 @@ const Me = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextArea" }), Ue =
271
272
  }
272
273
  );
273
274
  });
274
- ae.displayName = "Title";
275
- const He = (e) => /* @__PURE__ */ r("div", { ...e, children: "Toast" }), Ke = (e) => /* @__PURE__ */ r("div", { ...e, children: "Tooltip" }), qe = (e) => /* @__PURE__ */ r("div", { ...e, children: "TransferList" }), ie = "_root_1qhn7_3", ce = "_contents_1qhn7_18", h = {
276
- root: ie,
277
- contents: ce
278
- }, le = u(function({ layer: e, contentsOnly: t, children: n, className: o, style: s, ...a }, i) {
279
- const l = t ? o ? `${h.root} ${h.contents} ${o}` : `${h.root} ${h.contents}` : o ? `${h.root} ${o}` : h.root;
275
+ le.displayName = "Title";
276
+ const Qe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Toast" }), Je = (e) => /* @__PURE__ */ r("div", { ...e, children: "Tooltip" }), Xe = (e) => /* @__PURE__ */ r("div", { ...e, children: "TransferList" }), ce = "_root_1qhn7_3", de = "_contents_1qhn7_18", h = {
277
+ root: ce,
278
+ contents: de
279
+ }, ue = u(function({ layer: e, contentsOnly: t, children: n, className: o, style: s, ...a }, i) {
280
+ const c = t ? o ? `${h.root} ${h.contents} ${o}` : `${h.root} ${h.contents}` : o ? `${h.root} ${o}` : h.root;
280
281
  return /* @__PURE__ */ r(
281
282
  "div",
282
283
  {
283
284
  ref: i,
284
- className: l,
285
+ className: c,
285
286
  style: s,
286
287
  ...t ? {} : { "data-recursica-layer": String(e) },
287
288
  ...a,
@@ -289,71 +290,72 @@ const He = (e) => /* @__PURE__ */ r("div", { ...e, children: "Toast" }), Ke = (e
289
290
  }
290
291
  );
291
292
  });
292
- le.displayName = "Layer";
293
- const B = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ r(z.Fragment, { children: e });
294
- B.displayName = "EmptyValueRenderer";
295
- B.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
296
- const $ = "data-recursica-theme";
297
- function Qe({
293
+ ue.displayName = "Layer";
294
+ const W = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ r(O.Fragment, { children: e });
295
+ W.displayName = "EmptyValueRenderer";
296
+ W.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
297
+ const k = "data-recursica-theme";
298
+ function Ze({
298
299
  children: e,
299
300
  theme: t = "light"
300
301
  }) {
301
- return w(() => {
302
+ return G(() => {
302
303
  const n = document.documentElement;
303
- return n.setAttribute($, t), () => {
304
- n.removeAttribute($);
304
+ return n.setAttribute(k, t), () => {
305
+ n.removeAttribute(k);
305
306
  };
306
- }, [t]), /* @__PURE__ */ r(L, { children: e });
307
+ }, [t]), /* @__PURE__ */ r(F, { children: e });
307
308
  }
308
309
  export {
309
- me as Accordion,
310
- fe as AssistiveElement,
311
- he as Avatar,
312
- _e as Badge,
313
- ye as Box,
314
- ve as Breadcrumb,
315
- Q as Button,
316
- be as Card,
317
- ge as Checkbox,
318
- xe as Chip,
319
- J as Container,
320
- Te as DatePicker,
321
- Ne as Dropdown,
322
- B as EmptyValueRenderer,
323
- Ce as FileInput,
324
- Se as FileUpload,
325
- X as Flex,
326
- $e as FormControlLayout,
327
- Pe as FormControlWrapper,
328
- Z as Group,
329
- Le as HoverCard,
330
- ke as Label,
331
- le as Layer,
332
- te as Link,
333
- F as Loader,
334
- Re as Menu,
335
- Fe as Modal,
336
- Be as NumberInput,
337
- Ae as Pagination,
338
- Ie as Panel,
339
- We as Radio,
340
- Ee as ReadOnlyField,
341
- Qe as RecursicaThemeProvider,
342
- ze as SegmentedControl,
343
- we as Slider,
344
- oe as Stack,
345
- Oe as Stepper,
346
- Ge as Switch,
347
- De as Table,
348
- Ve as Tabs,
349
- se as Text,
350
- Me as TextArea,
351
- Ue as TextField,
352
- Ye as TimePicker,
353
- je as Timeline,
354
- ae as Title,
355
- He as Toast,
356
- Ke as Tooltip,
357
- qe as TransferList
310
+ he as Accordion,
311
+ _e as AssistiveElement,
312
+ ye as Autocomplete,
313
+ ve as Avatar,
314
+ be as Badge,
315
+ ge as Box,
316
+ xe as Breadcrumb,
317
+ X as Button,
318
+ Te as Card,
319
+ Ne as Checkbox,
320
+ Ce as Chip,
321
+ Z as Container,
322
+ Se as DatePicker,
323
+ $e as Dropdown,
324
+ W as EmptyValueRenderer,
325
+ Pe as FileInput,
326
+ Le as FileUpload,
327
+ ee as Flex,
328
+ ke as FormControlLayout,
329
+ Re as FormControlWrapper,
330
+ re as Group,
331
+ Fe as HoverCard,
332
+ Ae as Label,
333
+ ue as Layer,
334
+ se as Link,
335
+ I as Loader,
336
+ Be as Menu,
337
+ Ie as Modal,
338
+ We as NumberInput,
339
+ Ee as Pagination,
340
+ ze as Panel,
341
+ we as Radio,
342
+ Oe as ReadOnlyField,
343
+ Ze as RecursicaThemeProvider,
344
+ Ge as SegmentedControl,
345
+ Ve as Slider,
346
+ ae as Stack,
347
+ De as Stepper,
348
+ Me as Switch,
349
+ Ue as Table,
350
+ Ye as Tabs,
351
+ ie as Text,
352
+ je as TextArea,
353
+ He as TextField,
354
+ Ke as TimePicker,
355
+ qe as Timeline,
356
+ le as Title,
357
+ Qe as Toast,
358
+ Je as Tooltip,
359
+ Xe as TransferList
358
360
  };
359
361
  //# sourceMappingURL=mui-adapter.js.map