@recursica/mantine-adapter 0.7.0 → 0.9.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 (41) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/mantine-adapter.cjs +1 -1
  3. package/dist/mantine-adapter.cjs.map +1 -1
  4. package/dist/mantine-adapter.css +1 -1
  5. package/dist/mantine-adapter.js +963 -639
  6. package/dist/mantine-adapter.js.map +1 -1
  7. package/dist/src/components/Container/Container.d.ts +14 -0
  8. package/dist/src/components/Dropdown/Dropdown.d.ts +10 -2
  9. package/dist/src/components/Flex/Flex.d.ts +17 -0
  10. package/dist/src/components/Group/Group.d.ts +17 -0
  11. package/dist/src/components/Stack/Stack.d.ts +15 -0
  12. package/dist/src/components/TextArea/TextArea.d.ts +14 -2
  13. package/dist/src/components/index.d.ts +6 -0
  14. package/package.json +1 -1
  15. package/src/components/Accordion/Accordion.module.css +29 -8
  16. package/src/components/Checkbox/CheckboxGroup.tsx +1 -1
  17. package/src/components/Container/CONTAINER_IMPLEMENTATION_NOTES.md +4 -0
  18. package/src/components/Container/Container.module.css +7 -0
  19. package/src/components/Container/Container.stories.tsx +102 -0
  20. package/src/components/Container/Container.tsx +63 -0
  21. package/src/components/Dropdown/DROPDOWN_IMPLEMENTATION_NOTES.md +7 -0
  22. package/src/components/Dropdown/Dropdown.module.css +272 -0
  23. package/src/components/Dropdown/Dropdown.stories.tsx +77 -5
  24. package/src/components/Dropdown/Dropdown.tsx +171 -5
  25. package/src/components/Flex/FLEX_IMPLEMENTATION_NOTES.md +4 -0
  26. package/src/components/Flex/Flex.module.css +7 -0
  27. package/src/components/Flex/Flex.stories.tsx +125 -0
  28. package/src/components/Flex/Flex.tsx +68 -0
  29. package/src/components/Group/GROUP_IMPLEMENTATION_NOTES.md +4 -0
  30. package/src/components/Group/Group.module.css +7 -0
  31. package/src/components/Group/Group.stories.tsx +117 -0
  32. package/src/components/Group/Group.tsx +68 -0
  33. package/src/components/Stack/STACK_IMPLEMENTATION_NOTES.md +4 -0
  34. package/src/components/Stack/Stack.module.css +7 -0
  35. package/src/components/Stack/Stack.stories.tsx +105 -0
  36. package/src/components/Stack/Stack.tsx +66 -0
  37. package/src/components/TextArea/TEXTAREA_IMPLEMENTATION_NOTES.md +7 -0
  38. package/src/components/TextArea/TextArea.module.css +225 -0
  39. package/src/components/TextArea/TextArea.stories.tsx +77 -5
  40. package/src/components/TextArea/TextArea.tsx +149 -5
  41. package/src/components/index.ts +6 -0
@@ -1,7 +1,7 @@
1
- import { jsx as o, jsxs as L, Fragment as ie } from "react/jsx-runtime";
2
- import O, { forwardRef as y, useId as We, useEffect as ke } from "react";
3
- import { Accordion as K, Avatar as we, Badge as Te, Breadcrumbs as Ie, Button as Fe, Card as Z, Input as le, Box as de, Checkbox as pe, Chip as Re } from "@mantine/core";
4
- const Se = [
1
+ import { jsx as e, jsxs as G, Fragment as No } from "react/jsx-runtime";
2
+ import V, { forwardRef as N, useId as Io, useEffect as Lo } from "react";
3
+ import { Accordion as to, Avatar as Bo, Badge as jo, Breadcrumbs as Eo, Button as Oo, Card as ro, Input as $o, Box as yo, Checkbox as bo, Chip as Do, Container as Go, Select as Mo, Flex as qo, Group as Vo, Stack as Ho, Text as Ko, Textarea as Uo, Title as Zo } from "@mantine/core";
4
+ const Yo = [
5
5
  "className",
6
6
  "classNames",
7
7
  "style",
@@ -45,7 +45,7 @@ const Se = [
45
45
  "mih",
46
46
  "mah"
47
47
  // Dimensions
48
- ], ze = /* @__PURE__ */ new Set([
48
+ ], Xo = /* @__PURE__ */ new Set([
49
49
  "m",
50
50
  "my",
51
51
  "mx",
@@ -60,7 +60,7 @@ const Se = [
60
60
  "left",
61
61
  "bottom",
62
62
  "right"
63
- ]), se = {
63
+ ]), uo = {
64
64
  "rec-none": "var(--recursica_brand_dimensions_general_none)",
65
65
  "rec-sm": "var(--recursica_brand_dimensions_general_sm)",
66
66
  "rec-default": "var(--recursica_brand_dimensions_general_default)",
@@ -69,232 +69,232 @@ const Se = [
69
69
  "rec-xl": "var(--recursica_brand_dimensions_general_xl)",
70
70
  "rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
71
71
  };
72
- function $(e, n) {
73
- if (n)
74
- return e;
75
- const a = { ...e };
76
- for (const s of Se)
77
- s in a && delete a[s];
78
- for (const [s, t] of Object.entries(a))
79
- typeof t == "string" && t.startsWith("rec-") && ze.has(s) && t in se && (a[s] = se[t]);
72
+ function $(o, s) {
73
+ if (s)
74
+ return o;
75
+ const a = { ...o };
76
+ for (const n of Yo)
77
+ n in a && delete a[n];
78
+ for (const [n, r] of Object.entries(a))
79
+ typeof r == "string" && r.startsWith("rec-") && Xo.has(n) && r in uo && (a[n] = uo[r]);
80
80
  return a;
81
81
  }
82
- const Le = "Accordion-module__root___Dem6d", Be = "Accordion-module__item___7ryVk", Ee = "Accordion-module__noDivider___Ni2tT", je = "Accordion-module__control___b4wgX", Oe = "Accordion-module__label___Ss7uW", Me = "Accordion-module__chevron___i-HVZ", Ve = "Accordion-module__iconLeftWrapper___5oLen", qe = "Accordion-module__panel___Wx50w", De = "Accordion-module__content___PEM9t", z = {
83
- root: Le,
84
- item: Be,
85
- noDivider: Ee,
86
- control: je,
87
- label: Oe,
88
- chevron: Me,
89
- iconLeftWrapper: Ve,
90
- panel: qe,
91
- content: De
92
- }, _e = function({
93
- variant: n = "unstyled",
82
+ const Jo = "Accordion-module__root___Dem6d", Qo = "Accordion-module__item___7ryVk", oe = "Accordion-module__noDivider___Ni2tT", ee = "Accordion-module__control___b4wgX", te = "Accordion-module__label___Ss7uW", re = "Accordion-module__chevron___i-HVZ", se = "Accordion-module__iconLeftWrapper___5oLen", ne = "Accordion-module__panel___Wx50w", ae = "Accordion-module__content___PEM9t", D = {
83
+ root: Jo,
84
+ item: Qo,
85
+ noDivider: oe,
86
+ control: ee,
87
+ label: te,
88
+ chevron: re,
89
+ iconLeftWrapper: se,
90
+ panel: ne,
91
+ content: ae
92
+ }, vo = function({
93
+ variant: s = "unstyled",
94
94
  overStyled: a = !1,
95
- ...s
95
+ ...n
96
96
  }) {
97
- const t = $(s, a), r = {
98
- root: z.root,
99
- item: z.item,
100
- control: z.control,
101
- label: z.label,
102
- chevron: z.chevron,
103
- panel: z.panel,
104
- content: z.content
105
- }, i = t.classNames;
97
+ const r = $(n, a), t = {
98
+ root: D.root,
99
+ item: D.item,
100
+ control: D.control,
101
+ label: D.label,
102
+ chevron: D.chevron,
103
+ panel: D.panel,
104
+ content: D.content
105
+ }, i = r.classNames;
106
106
  if (i && typeof i == "object" && !Array.isArray(i)) {
107
107
  const d = i;
108
108
  Object.keys(d).forEach((c) => {
109
- r[c] ? r[c] = `${r[c]} ${d[c]}` : r[c] = d[c];
109
+ t[c] ? t[c] = `${t[c]} ${d[c]}` : t[c] = d[c];
110
110
  });
111
111
  }
112
- const l = t.className;
113
- return /* @__PURE__ */ o(
114
- K,
112
+ const l = r.className;
113
+ return /* @__PURE__ */ e(
114
+ to,
115
115
  {
116
- variant: n,
116
+ variant: s,
117
117
  className: l,
118
- classNames: r,
119
- ...t
118
+ classNames: t,
119
+ ...r
120
120
  }
121
121
  );
122
122
  };
123
- _e.displayName = "Accordion";
124
- const me = y(function({ title: n, leftIcon: a, divider: s = !0, children: t, overStyled: r = !1, ...i }, l) {
125
- const d = $(i, r), c = d.className, p = [s ? void 0 : z.noDivider, c].filter(Boolean).join(" ") || void 0;
126
- return /* @__PURE__ */ o(
127
- K.Item,
123
+ vo.displayName = "Accordion";
124
+ const Co = N(function({ title: s, leftIcon: a, divider: n = !0, children: r, overStyled: t = !1, ...i }, l) {
125
+ const d = $(i, t), c = d.className, p = [n ? void 0 : D.noDivider, c].filter(Boolean).join(" ") || void 0;
126
+ return /* @__PURE__ */ e(
127
+ to.Item,
128
128
  {
129
129
  ref: l,
130
130
  className: p,
131
131
  ...d,
132
- children: n ? /* @__PURE__ */ L(ie, { children: [
133
- /* @__PURE__ */ o(ee, { leftIcon: a, children: n }),
134
- /* @__PURE__ */ o(oe, { children: t })
135
- ] }) : t
132
+ children: s ? /* @__PURE__ */ G(No, { children: [
133
+ /* @__PURE__ */ e(lo, { leftIcon: a, children: s }),
134
+ /* @__PURE__ */ e(po, { children: r })
135
+ ] }) : r
136
136
  }
137
137
  );
138
138
  });
139
- me.displayName = "AccordionItem";
140
- const ee = y(function({ leftIcon: n, children: a, overStyled: s = !1, ...t }, r) {
141
- const i = $(t, s), l = i.className;
142
- return /* @__PURE__ */ o(
143
- K.Control,
139
+ Co.displayName = "AccordionItem";
140
+ const lo = N(function({ leftIcon: s, children: a, overStyled: n = !1, ...r }, t) {
141
+ const i = $(r, n), l = i.className;
142
+ return /* @__PURE__ */ e(
143
+ to.Control,
144
144
  {
145
- ref: r,
145
+ ref: t,
146
146
  className: l,
147
- icon: n ? /* @__PURE__ */ o("span", { className: z.iconLeftWrapper, "aria-hidden": !0, children: n }) : void 0,
147
+ icon: s ? /* @__PURE__ */ e("span", { className: D.iconLeftWrapper, "aria-hidden": !0, children: s }) : void 0,
148
148
  ...i,
149
149
  children: a
150
150
  }
151
151
  );
152
152
  });
153
- ee.displayName = "AccordionControl";
154
- const oe = y(function({ overStyled: n = !1, ...a }, s) {
155
- const t = $(a, n), r = t.className;
156
- return /* @__PURE__ */ o(
157
- K.Panel,
153
+ lo.displayName = "AccordionControl";
154
+ const po = N(function({ overStyled: s = !1, ...a }, n) {
155
+ const r = $(a, s), t = r.className;
156
+ return /* @__PURE__ */ e(
157
+ to.Panel,
158
158
  {
159
- ref: s,
160
- className: r,
161
- ...t
159
+ ref: n,
160
+ className: t,
161
+ ...r
162
162
  }
163
163
  );
164
164
  });
165
- oe.displayName = "AccordionPanel";
166
- const te = _e;
167
- te.Item = me;
168
- te.Control = ee;
169
- te.Panel = oe;
170
- const Ge = "Avatar-module__root___fXu-J", He = "Avatar-module__iconWrapper___ojly2", Ke = "Avatar-module__textWrapper___zp-jD", Ze = "Avatar-module__image___ieqGp", Ye = "Avatar-module__placeholder___IDW7-", k = {
171
- root: Ge,
172
- iconWrapper: He,
173
- textWrapper: Ke,
174
- image: Ze,
175
- placeholder: Ye
176
- }, Ue = y(function({
177
- size: n = "default",
165
+ po.displayName = "AccordionPanel";
166
+ const _o = vo;
167
+ _o.Item = Co;
168
+ _o.Control = lo;
169
+ _o.Panel = po;
170
+ const ce = "Avatar-module__root___fXu-J", ie = "Avatar-module__iconWrapper___ojly2", le = "Avatar-module__textWrapper___zp-jD", de = "Avatar-module__image___ieqGp", pe = "Avatar-module__placeholder___IDW7-", L = {
171
+ root: ce,
172
+ iconWrapper: ie,
173
+ textWrapper: le,
174
+ image: de,
175
+ placeholder: pe
176
+ }, _e = N(function({
177
+ size: s = "default",
178
178
  variant: a = "solid",
179
- icon: s,
180
- className: t,
181
- classNames: r,
179
+ icon: n,
180
+ className: r,
181
+ classNames: t,
182
182
  children: i,
183
183
  style: l,
184
184
  src: d,
185
185
  ...c
186
186
  }, p) {
187
- const m = {
187
+ const _ = {
188
188
  solid: "filled",
189
189
  outline: "outline",
190
190
  ghost: "transparent"
191
- }, b = {
191
+ }, u = {
192
192
  default: "md",
193
193
  small: "sm",
194
194
  large: "lg"
195
195
  };
196
- let _ = "text";
197
- d ? _ = "image" : s && (_ = "icon");
196
+ let m = "text";
197
+ d ? m = "image" : n && (m = "icon");
198
198
  const h = {
199
- root: k.root,
200
- image: k.image,
201
- placeholder: k.placeholder
199
+ root: L.root,
200
+ image: L.image,
201
+ placeholder: L.placeholder
202
202
  };
203
- if (r && typeof r == "object" && !Array.isArray(r)) {
204
- const N = r;
205
- h.root = N.root ? `${k.root} ${N.root}` : k.root, h.image = N.image ? `${k.image} ${N.image}` : k.image, h.placeholder = N.placeholder ? `${k.placeholder} ${N.placeholder}` : k.placeholder;
203
+ if (t && typeof t == "object" && !Array.isArray(t)) {
204
+ const y = t;
205
+ h.root = y.root ? `${L.root} ${y.root}` : L.root, h.image = y.image ? `${L.image} ${y.image}` : L.image, h.placeholder = y.placeholder ? `${L.placeholder} ${y.placeholder}` : L.placeholder;
206
206
  }
207
- return /* @__PURE__ */ o(
208
- we,
207
+ return /* @__PURE__ */ e(
208
+ Bo,
209
209
  {
210
210
  ref: p,
211
- className: t,
211
+ className: r,
212
212
  classNames: h,
213
- variant: m[a],
214
- size: b[n],
213
+ variant: _[a],
214
+ size: u[s],
215
215
  style: l,
216
216
  src: d,
217
217
  "data-variant": a,
218
- "data-size": n,
219
- "data-style": _,
218
+ "data-size": s,
219
+ "data-style": m,
220
220
  ...c,
221
- children: s != null ? /* @__PURE__ */ o("span", { className: k.iconWrapper, "aria-hidden": !0, children: s }) : i != null ? /* @__PURE__ */ o("span", { className: k.textWrapper, children: i }) : void 0
221
+ children: n != null ? /* @__PURE__ */ e("span", { className: L.iconWrapper, "aria-hidden": !0, children: n }) : i != null ? /* @__PURE__ */ e("span", { className: L.textWrapper, children: i }) : void 0
222
222
  }
223
223
  );
224
224
  });
225
- Ue.displayName = "Avatar";
226
- const Xe = "Badge-module__root___5osNT", R = {
227
- root: Xe
228
- }, Je = y(function({ variant: n = "primary-color", overStyled: a = !1, ...s }, t) {
229
- const r = $(s, a), i = {
230
- root: R.root,
231
- section: R.section,
232
- label: R.label
233
- }, l = r.classNames;
225
+ _e.displayName = "Avatar";
226
+ const me = "Badge-module__root___5osNT", E = {
227
+ root: me
228
+ }, ue = N(function({ variant: s = "primary-color", overStyled: a = !1, ...n }, r) {
229
+ const t = $(n, a), i = {
230
+ root: E.root,
231
+ section: E.section,
232
+ label: E.label
233
+ }, l = t.classNames;
234
234
  if (l && typeof l == "object" && !Array.isArray(l)) {
235
235
  const p = l;
236
- i.root = p.root ? `${R.root} ${p.root}` : R.root, i.section = p.section ?? R.section, i.label = p.label ?? R.label;
236
+ i.root = p.root ? `${E.root} ${p.root}` : E.root, i.section = p.section ?? E.section, i.label = p.label ?? E.label;
237
237
  }
238
- const d = r.className, c = d ? `${R.root} ${d}` : R.root;
239
- return /* @__PURE__ */ o(
240
- Te,
238
+ const d = t.className, c = d ? `${E.root} ${d}` : E.root;
239
+ return /* @__PURE__ */ e(
240
+ jo,
241
241
  {
242
- ref: t,
242
+ ref: r,
243
243
  variant: "filled",
244
- "data-variant": n,
245
- ...r,
244
+ "data-variant": s,
245
+ ...t,
246
246
  className: c,
247
247
  classNames: i
248
248
  }
249
249
  );
250
250
  });
251
- Je.displayName = "Badge";
252
- const Qe = "Breadcrumb-module__root___x-9ln", eo = "Breadcrumb-module__separator___qrUX-", E = {
253
- root: Qe,
254
- separator: eo
255
- }, oo = y(
256
- function({ overStyled: n = !1, separator: a = ">", ...s }, t) {
257
- const r = $(
258
- { separator: a, ...s },
259
- n
251
+ ue.displayName = "Badge";
252
+ const fe = "Breadcrumb-module__root___x-9ln", he = "Breadcrumb-module__separator___qrUX-", q = {
253
+ root: fe,
254
+ separator: he
255
+ }, Ne = N(
256
+ function({ overStyled: s = !1, separator: a = ">", ...n }, r) {
257
+ const t = $(
258
+ { separator: a, ...n },
259
+ s
260
260
  ), i = {
261
- root: E.root,
262
- separator: E.separator
263
- }, l = r.classNames;
261
+ root: q.root,
262
+ separator: q.separator
263
+ }, l = t.classNames;
264
264
  if (l && typeof l == "object" && !Array.isArray(l)) {
265
265
  const p = l;
266
- i.root = p.root ? `${E.root} ${p.root}` : E.root, i.separator = p.separator ? `${E.separator} ${p.separator}` : E.separator;
266
+ i.root = p.root ? `${q.root} ${p.root}` : q.root, i.separator = p.separator ? `${q.separator} ${p.separator}` : q.separator;
267
267
  }
268
- const d = r.className, c = d ? `${E.root} ${d}` : E.root;
269
- return /* @__PURE__ */ o(
270
- Ie,
268
+ const d = t.className, c = d ? `${q.root} ${d}` : q.root;
269
+ return /* @__PURE__ */ e(
270
+ Eo,
271
271
  {
272
- ref: t,
273
- ...r,
272
+ ref: r,
273
+ ...t,
274
274
  className: c,
275
275
  classNames: i
276
276
  }
277
277
  );
278
278
  }
279
279
  );
280
- oo.displayName = "Breadcrumb";
281
- const to = "Button-module__root___Q2R8-", ro = "Button-module__label___UJ3Zt", no = "Button-module__labelText___rFV5p", so = "Button-module__iconWrapper___uEKPa", ao = "Button-module__section___f2mKr", w = {
282
- root: to,
283
- label: ro,
284
- labelText: no,
285
- iconWrapper: so,
286
- section: ao
280
+ Ne.displayName = "Breadcrumb";
281
+ const $e = "Button-module__root___Q2R8-", ye = "Button-module__label___UJ3Zt", be = "Button-module__labelText___rFV5p", ve = "Button-module__iconWrapper___uEKPa", Ce = "Button-module__section___f2mKr", B = {
282
+ root: $e,
283
+ label: ye,
284
+ labelText: be,
285
+ iconWrapper: ve,
286
+ section: Ce
287
287
  };
288
- function co(e) {
289
- return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
288
+ function xe(o) {
289
+ return o == null || o === "" ? !1 : typeof o == "string" ? o.trim() !== "" : !0;
290
290
  }
291
- const io = y(
291
+ const ge = N(
292
292
  function({
293
- variant: n = "solid",
293
+ variant: s = "solid",
294
294
  size: a = "default",
295
- icon: s,
296
- children: t,
297
- overStyled: r = !1,
295
+ icon: n,
296
+ children: r,
297
+ overStyled: t = !1,
298
298
  ...i
299
299
  }, l) {
300
300
  const d = {
@@ -304,185 +304,185 @@ const io = y(
304
304
  }, c = {
305
305
  default: "md",
306
306
  small: "sm"
307
- }, p = $(i, r), m = p;
308
- delete m.fullWidth;
309
- const b = !!s || !!m.leftSection, _ = !!m.rightSection, h = (b || _) && !co(t);
310
- typeof process < "u" && process.env.NODE_ENV !== "production" && h && !m["aria-label"] && console.warn(
307
+ }, p = $(i, t), _ = p;
308
+ delete _.fullWidth;
309
+ const u = !!n || !!_.leftSection, m = !!_.rightSection, h = (u || m) && !xe(r);
310
+ typeof process < "u" && process.env.NODE_ENV !== "production" && h && !_["aria-label"] && console.warn(
311
311
  '[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
312
312
  );
313
- const N = {
314
- root: w.root,
315
- section: w.section,
316
- label: w.label
317
- }, C = m.classNames;
318
- if (C && typeof C == "object" && !Array.isArray(C)) {
319
- const x = C;
320
- N.root = x.root ? `${w.root} ${x.root}` : w.root, N.section = x.section ?? w.section, N.label = x.label ?? w.label;
313
+ const y = {
314
+ root: B.root,
315
+ section: B.section,
316
+ label: B.label
317
+ }, g = _.classNames;
318
+ if (g && typeof g == "object" && !Array.isArray(g)) {
319
+ const P = g;
320
+ y.root = P.root ? `${B.root} ${P.root}` : B.root, y.section = P.section ?? B.section, y.label = P.label ?? B.label;
321
321
  }
322
- const u = m.className, v = u ? `${w.root} ${u}` : w.root;
323
- return /* @__PURE__ */ o(
324
- Fe,
322
+ const f = _.className, v = f ? `${B.root} ${f}` : B.root;
323
+ return /* @__PURE__ */ e(
324
+ Oo,
325
325
  {
326
326
  ref: l,
327
327
  className: v,
328
- classNames: N,
329
- variant: d[n],
328
+ classNames: y,
329
+ variant: d[s],
330
330
  size: c[a],
331
- leftSection: s != null ? /* @__PURE__ */ o("span", { className: w.iconWrapper, "aria-hidden": !0, children: s }) : void 0,
332
- "data-variant": n,
331
+ leftSection: n != null ? /* @__PURE__ */ e("span", { className: B.iconWrapper, "aria-hidden": !0, children: n }) : void 0,
332
+ "data-variant": s,
333
333
  "data-size": a,
334
334
  ...h ? { "data-icon-only": "" } : {},
335
335
  ...p,
336
- children: /* @__PURE__ */ o("span", { className: w.labelText, children: t })
336
+ children: /* @__PURE__ */ e("span", { className: B.labelText, children: r })
337
337
  }
338
338
  );
339
339
  }
340
340
  );
341
- io.displayName = "Button";
342
- const lo = "Card-module__root___c9KvZ", po = "Card-module__header___PTXf2", _o = "Card-module__footer___Mu-JC", mo = "Card-module__section___BRT8H", uo = "Card-module__content___oFIQa", B = {
343
- root: lo,
344
- header: po,
345
- footer: _o,
346
- section: mo,
347
- content: uo
348
- }, ue = y(function({ overStyled: n = !1, ...a }, s) {
349
- const t = $(a, n), r = {
350
- root: B.root
351
- }, i = t.classNames;
341
+ ge.displayName = "Button";
342
+ const Pe = "Card-module__root___c9KvZ", Ae = "Card-module__header___PTXf2", we = "Card-module__footer___Mu-JC", We = "Card-module__section___BRT8H", ke = "Card-module__content___oFIQa", M = {
343
+ root: Pe,
344
+ header: Ae,
345
+ footer: we,
346
+ section: We,
347
+ content: ke
348
+ }, xo = N(function({ overStyled: s = !1, ...a }, n) {
349
+ const r = $(a, s), t = {
350
+ root: M.root
351
+ }, i = r.classNames;
352
352
  if (i && typeof i == "object" && !Array.isArray(i)) {
353
353
  const d = i;
354
354
  Object.keys(d).forEach((c) => {
355
- r[c] ? r[c] = `${r[c]} ${d[c]}` : r[c] = d[c];
355
+ t[c] ? t[c] = `${t[c]} ${d[c]}` : t[c] = d[c];
356
356
  });
357
357
  }
358
- const l = t.className;
359
- return /* @__PURE__ */ o(
360
- Z,
358
+ const l = r.className;
359
+ return /* @__PURE__ */ e(
360
+ ro,
361
361
  {
362
- ref: s,
362
+ ref: n,
363
363
  className: l,
364
- classNames: r,
365
- ...t
364
+ classNames: t,
365
+ ...r
366
366
  }
367
367
  );
368
368
  });
369
- ue.displayName = "Card";
370
- const he = y(
371
- function({ overStyled: n = !1, ...a }, s) {
372
- const t = $(a, n), r = t.className;
373
- return /* @__PURE__ */ o(
374
- Z.Section,
369
+ xo.displayName = "Card";
370
+ const go = N(
371
+ function({ overStyled: s = !1, ...a }, n) {
372
+ const r = $(a, s), t = r.className;
373
+ return /* @__PURE__ */ e(
374
+ ro.Section,
375
375
  {
376
- ref: s,
377
- className: r ? `${B.section} ${r}` : B.section,
378
- ...t
376
+ ref: n,
377
+ className: t ? `${M.section} ${t}` : M.section,
378
+ ...r
379
379
  }
380
380
  );
381
381
  }
382
382
  );
383
- he.displayName = "CardSection";
384
- const fe = y(
385
- function({ overStyled: n = !1, ...a }, s) {
386
- const t = $(a, n), r = t.className;
387
- return /* @__PURE__ */ o(
388
- Z.Section,
383
+ go.displayName = "CardSection";
384
+ const Po = N(
385
+ function({ overStyled: s = !1, ...a }, n) {
386
+ const r = $(a, s), t = r.className;
387
+ return /* @__PURE__ */ e(
388
+ ro.Section,
389
389
  {
390
- ref: s,
391
- className: r ? `${B.header} ${r}` : B.header,
392
- ...t
390
+ ref: n,
391
+ className: t ? `${M.header} ${t}` : M.header,
392
+ ...r
393
393
  }
394
394
  );
395
395
  }
396
396
  );
397
- fe.displayName = "CardHeader";
398
- const be = y(
399
- function({ overStyled: n = !1, ...a }, s) {
400
- const t = $(a, n), r = t.className;
401
- return /* @__PURE__ */ o(
402
- Z.Section,
397
+ Po.displayName = "CardHeader";
398
+ const Ao = N(
399
+ function({ overStyled: s = !1, ...a }, n) {
400
+ const r = $(a, s), t = r.className;
401
+ return /* @__PURE__ */ e(
402
+ ro.Section,
403
403
  {
404
- ref: s,
405
- className: r ? `${B.footer} ${r}` : B.footer,
406
- ...t
404
+ ref: n,
405
+ className: t ? `${M.footer} ${t}` : M.footer,
406
+ ...r
407
407
  }
408
408
  );
409
409
  }
410
410
  );
411
- be.displayName = "CardFooter";
412
- const Ne = y(
413
- function({ overStyled: n = !1, ...a }, s) {
414
- const t = $(a, n), r = t.className;
415
- return /* @__PURE__ */ o(
411
+ Ao.displayName = "CardFooter";
412
+ const wo = N(
413
+ function({ overStyled: s = !1, ...a }, n) {
414
+ const r = $(a, s), t = r.className;
415
+ return /* @__PURE__ */ e(
416
416
  "div",
417
417
  {
418
- ref: s,
419
- className: r ? `${B.content} ${r}` : B.content,
420
- ...t
418
+ ref: n,
419
+ className: t ? `${M.content} ${t}` : M.content,
420
+ ...r
421
421
  }
422
422
  );
423
423
  }
424
424
  );
425
- Ne.displayName = "CardContent";
426
- const Y = ue;
427
- Y.Section = he;
428
- Y.Header = fe;
429
- Y.Footer = be;
430
- Y.Content = Ne;
431
- const ho = "Label-module__root___e6HXZ", fo = "Label-module__labelText___rieFR", bo = "Label-module__required___Ggrzc", No = "Label-module__optionalText___Y2yun", yo = "Label-module__actionAreaWrapper___ELoZK", $o = "Label-module__editIconWrapper___NG2xW", A = {
432
- root: ho,
433
- labelText: fo,
434
- required: bo,
435
- optionalText: No,
436
- actionAreaWrapper: yo,
437
- editIconWrapper: $o
438
- }, ye = y(function({
439
- formLayout: n = "stacked",
425
+ wo.displayName = "CardContent";
426
+ const so = xo;
427
+ so.Section = go;
428
+ so.Header = Po;
429
+ so.Footer = Ao;
430
+ so.Content = wo;
431
+ const Te = "Label-module__root___e6HXZ", ze = "Label-module__labelText___rieFR", Se = "Label-module__required___Ggrzc", Fe = "Label-module__optionalText___Y2yun", Re = "Label-module__actionAreaWrapper___ELoZK", Ie = "Label-module__editIconWrapper___NG2xW", F = {
432
+ root: Te,
433
+ labelText: ze,
434
+ required: Se,
435
+ optionalText: Fe,
436
+ actionAreaWrapper: Re,
437
+ editIconWrapper: Ie
438
+ }, Wo = N(function({
439
+ formLayout: s = "stacked",
440
440
  labelSize: a = "default",
441
- labelAlignment: s,
442
- required: t = !1,
443
- labelOptionalText: r,
441
+ labelAlignment: n,
442
+ required: r = !1,
443
+ labelOptionalText: t,
444
444
  labelWithEditIcon: i,
445
445
  labelActionArea: l,
446
446
  onLabelEditClick: d,
447
447
  children: c,
448
448
  overStyled: p = !1,
449
- ...m
450
- }, b) {
451
- const _ = s || (n === "side-by-side" ? "right" : "left");
449
+ ..._
450
+ }, u) {
451
+ const m = n || (s === "side-by-side" ? "right" : "left");
452
452
  let h;
453
- t || (r === !0 ? h = "optional" : r && (h = r));
454
- const N = $(m, p), C = N, u = {
455
- label: A.root,
456
- required: A.required
457
- }, v = C.classNames;
453
+ r || (t === !0 ? h = "optional" : t && (h = t));
454
+ const y = $(_, p), g = y, f = {
455
+ label: F.root,
456
+ required: F.required
457
+ }, v = g.classNames;
458
458
  if (v && typeof v == "object" && !Array.isArray(v)) {
459
- const W = v;
460
- u.label = W.label ? `${A.root} ${W.label}` : A.root, u.required = W.required ? `${A.required} ${W.required}` : A.required;
459
+ const A = v;
460
+ f.label = A.label ? `${F.root} ${A.label}` : F.root, f.required = A.required ? `${F.required} ${A.required}` : F.required;
461
461
  }
462
- const x = C.className, T = x ? `${A.root} ${x}` : A.root;
463
- return /* @__PURE__ */ L(
464
- le.Label,
462
+ const P = g.className, W = P ? `${F.root} ${P}` : F.root;
463
+ return /* @__PURE__ */ G(
464
+ $o.Label,
465
465
  {
466
- ref: b,
467
- className: T,
468
- classNames: u,
469
- "data-layout": n,
466
+ ref: u,
467
+ className: W,
468
+ classNames: f,
469
+ "data-layout": s,
470
470
  "data-size": a,
471
- "data-alignment": _,
472
- required: t && !i,
473
- ...N,
471
+ "data-alignment": m,
472
+ required: r && !i,
473
+ ...y,
474
474
  children: [
475
- /* @__PURE__ */ o("span", { className: A.labelText, children: c }),
476
- h && /* @__PURE__ */ o("span", { className: A.optionalText, children: typeof h == "string" ? `(${h})` : h }),
477
- l ? /* @__PURE__ */ o("span", { className: A.actionAreaWrapper, children: l }) : i ? /* @__PURE__ */ o(
475
+ /* @__PURE__ */ e("span", { className: F.labelText, children: c }),
476
+ h && /* @__PURE__ */ e("span", { className: F.optionalText, children: typeof h == "string" ? `(${h})` : h }),
477
+ l ? /* @__PURE__ */ e("span", { className: F.actionAreaWrapper, children: l }) : i ? /* @__PURE__ */ e(
478
478
  "button",
479
479
  {
480
480
  type: "button",
481
- className: A.editIconWrapper,
482
- "data-replaces-asterisk": t ? "true" : void 0,
481
+ className: F.editIconWrapper,
482
+ "data-replaces-asterisk": r ? "true" : void 0,
483
483
  onClick: d,
484
484
  "aria-label": "Edit",
485
- children: /* @__PURE__ */ o(
485
+ children: /* @__PURE__ */ e(
486
486
  "svg",
487
487
  {
488
488
  width: "16",
@@ -490,7 +490,7 @@ const ho = "Label-module__root___e6HXZ", fo = "Label-module__labelText___rieFR",
490
490
  viewBox: "0 0 16 16",
491
491
  fill: "none",
492
492
  xmlns: "http://www.w3.org/2000/svg",
493
- children: /* @__PURE__ */ o(
493
+ children: /* @__PURE__ */ e(
494
494
  "path",
495
495
  {
496
496
  d: "M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",
@@ -507,12 +507,12 @@ const ho = "Label-module__root___e6HXZ", fo = "Label-module__labelText___rieFR",
507
507
  }
508
508
  );
509
509
  });
510
- ye.displayName = "Label";
511
- const vo = "AssistiveElement-module__root___WhQ43", Co = "AssistiveElement-module__textWrapper___sfy5E", go = "AssistiveElement-module__iconWrapper___gObRF", X = {
512
- root: vo,
513
- textWrapper: Co,
514
- iconWrapper: go
515
- }, xo = () => /* @__PURE__ */ L(
510
+ Wo.displayName = "Label";
511
+ const Le = "AssistiveElement-module__root___WhQ43", Be = "AssistiveElement-module__textWrapper___sfy5E", je = "AssistiveElement-module__iconWrapper___gObRF", ao = {
512
+ root: Le,
513
+ textWrapper: Be,
514
+ iconWrapper: je
515
+ }, Ee = () => /* @__PURE__ */ G(
516
516
  "svg",
517
517
  {
518
518
  xmlns: "http://www.w3.org/2000/svg",
@@ -523,12 +523,12 @@ const vo = "AssistiveElement-module__root___WhQ43", Co = "AssistiveElement-modul
523
523
  strokeLinecap: "round",
524
524
  strokeLinejoin: "round",
525
525
  children: [
526
- /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
527
- /* @__PURE__ */ o("path", { d: "M12 16v-4" }),
528
- /* @__PURE__ */ o("path", { d: "M12 8h.01" })
526
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
527
+ /* @__PURE__ */ e("path", { d: "M12 16v-4" }),
528
+ /* @__PURE__ */ e("path", { d: "M12 8h.01" })
529
529
  ]
530
530
  }
531
- ), Po = () => /* @__PURE__ */ L(
531
+ ), Oe = () => /* @__PURE__ */ G(
532
532
  "svg",
533
533
  {
534
534
  xmlns: "http://www.w3.org/2000/svg",
@@ -539,120 +539,120 @@ const vo = "AssistiveElement-module__root___WhQ43", Co = "AssistiveElement-modul
539
539
  strokeLinecap: "round",
540
540
  strokeLinejoin: "round",
541
541
  children: [
542
- /* @__PURE__ */ o("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
543
- /* @__PURE__ */ o("path", { d: "M12 9v4" }),
544
- /* @__PURE__ */ o("path", { d: "M12 17h.01" })
542
+ /* @__PURE__ */ e("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
543
+ /* @__PURE__ */ e("path", { d: "M12 9v4" }),
544
+ /* @__PURE__ */ e("path", { d: "M12 17h.01" })
545
545
  ]
546
546
  }
547
- ), Q = y(function({
548
- assistiveVariant: n = "help",
547
+ ), io = N(function({
548
+ assistiveVariant: s = "help",
549
549
  assistiveWithIcon: a = !0,
550
- children: s,
551
- className: t,
552
- overStyled: r = !1,
550
+ children: n,
551
+ className: r,
552
+ overStyled: t = !1,
553
553
  ...i
554
554
  }, l) {
555
- const c = $(i, r), p = X.root, m = t ? `${p} ${t}` : p, b = n === "error" ? Po : xo;
556
- return /* @__PURE__ */ L(
555
+ const c = $(i, t), p = ao.root, _ = r ? `${p} ${r}` : p, u = s === "error" ? Oe : Ee;
556
+ return /* @__PURE__ */ G(
557
557
  "div",
558
558
  {
559
559
  ref: l,
560
- className: m,
561
- "data-variant": n,
560
+ className: _,
561
+ "data-variant": s,
562
562
  style: c.style,
563
563
  ...c,
564
564
  children: [
565
- a && /* @__PURE__ */ o("span", { className: X.iconWrapper, children: /* @__PURE__ */ o(b, {}) }),
566
- /* @__PURE__ */ o("span", { className: X.textWrapper, children: s })
565
+ a && /* @__PURE__ */ e("span", { className: ao.iconWrapper, children: /* @__PURE__ */ e(u, {}) }),
566
+ /* @__PURE__ */ e("span", { className: ao.textWrapper, children: n })
567
567
  ]
568
568
  }
569
569
  );
570
570
  });
571
- Q.displayName = "AssistiveElement";
572
- const Ao = "FormControlWrapper-module__root___c-UHo", Wo = "FormControlWrapper-module__labelSection___hxSY4", ko = "FormControlWrapper-module__inputSection___HenXk", J = {
573
- root: Ao,
574
- labelSection: Wo,
575
- inputSection: ko
576
- }, M = y(function({
577
- formLayout: n,
571
+ io.displayName = "AssistiveElement";
572
+ const De = "FormControlWrapper-module__root___c-UHo", Ge = "FormControlWrapper-module__labelSection___hxSY4", Me = "FormControlWrapper-module__inputSection___HenXk", co = {
573
+ root: De,
574
+ labelSection: Ge,
575
+ inputSection: Me
576
+ }, H = N(function({
577
+ formLayout: s,
578
578
  labelSize: a,
579
- labelAlignment: s,
580
- labelOptionalText: t,
581
- labelWithEditIcon: r,
579
+ labelAlignment: n,
580
+ labelOptionalText: r,
581
+ labelWithEditIcon: t,
582
582
  labelActionArea: i,
583
583
  onLabelEditClick: l,
584
584
  label: d,
585
585
  description: c,
586
586
  assistiveText: p,
587
- assistiveWithIcon: m = !0,
588
- controlMaxWidth: b,
589
- controlMinWidth: _,
587
+ assistiveWithIcon: _ = !0,
588
+ controlMaxWidth: u,
589
+ controlMinWidth: m,
590
590
  error: h,
591
- required: N,
592
- withAsterisk: C,
593
- id: u,
591
+ required: y,
592
+ withAsterisk: g,
593
+ id: f,
594
594
  children: v,
595
- className: x,
596
- overStyled: T = !1,
597
- labelElement: W,
595
+ className: P,
596
+ overStyled: W = !1,
597
+ labelElement: A,
598
598
  // Extracted safely preventing bleeding into HTML domains
599
- ...G
600
- }, V) {
601
- const q = We(), P = u || `recursica-fc-${q}`, I = p || c, j = I ? `${P}-assistive` : void 0, F = h ? `${P}-error` : void 0, U = $(G, T), re = x || U.className, ne = J.root, Pe = re ? `${ne} ${re}` : ne, Ae = O.isValidElement(v) ? O.cloneElement(
599
+ ...R
600
+ }, j) {
601
+ const I = Io(), x = f || `recursica-fc-${I}`, k = p || c, w = k ? `${x}-assistive` : void 0, C = h ? `${x}-error` : void 0, Y = $(R, W), S = P || Y.className, mo = co.root, Fo = S ? `${mo} ${S}` : mo, Ro = V.isValidElement(v) ? V.cloneElement(
602
602
  v,
603
603
  {
604
- ...I && !v.props["aria-describedby"] ? { "aria-describedby": j } : {},
605
- ...h && !v.props["aria-errormessage"] ? { "aria-errormessage": F } : {}
604
+ ...k && !v.props["aria-describedby"] ? { "aria-describedby": w } : {},
605
+ ...h && !v.props["aria-errormessage"] ? { "aria-errormessage": C } : {}
606
606
  }
607
607
  ) : v;
608
- return /* @__PURE__ */ L(
609
- de,
608
+ return /* @__PURE__ */ G(
609
+ yo,
610
610
  {
611
- ref: V,
612
- className: Pe,
613
- "data-form-layout": n || "stacked",
614
- "data-form-alignment": s || "left",
611
+ ref: j,
612
+ className: Fo,
613
+ "data-form-layout": s || "stacked",
614
+ "data-form-alignment": n || "left",
615
615
  style: {
616
- ...U.style || {},
617
- ...b ? { "--form-control-max-width": b } : {},
618
- ..._ ? { "--form-control-min-width": _ } : {}
616
+ ...Y.style || {},
617
+ ...u ? { "--form-control-max-width": u } : {},
618
+ ...m ? { "--form-control-min-width": m } : {}
619
619
  },
620
- ...U,
620
+ ...Y,
621
621
  children: [
622
- d && /* @__PURE__ */ o("div", { className: J.labelSection, children: /* @__PURE__ */ o(
623
- ye,
622
+ d && /* @__PURE__ */ e("div", { className: co.labelSection, children: /* @__PURE__ */ e(
623
+ Wo,
624
624
  {
625
- id: P,
626
- formLayout: n,
625
+ id: x,
626
+ formLayout: s,
627
627
  labelSize: a,
628
- labelAlignment: s,
629
- labelOptionalText: t,
630
- labelWithEditIcon: r,
628
+ labelAlignment: n,
629
+ labelOptionalText: r,
630
+ labelWithEditIcon: t,
631
631
  labelActionArea: i,
632
632
  onLabelEditClick: l,
633
- required: C ?? N,
634
- ...W === "div" ? { as: "div" } : {},
633
+ required: g ?? y,
634
+ ...A === "div" ? { as: "div" } : {},
635
635
  children: d
636
636
  }
637
637
  ) }),
638
- /* @__PURE__ */ L("div", { className: J.inputSection, children: [
639
- Ae,
640
- h && /* @__PURE__ */ o(
641
- Q,
638
+ /* @__PURE__ */ G("div", { className: co.inputSection, children: [
639
+ Ro,
640
+ h && /* @__PURE__ */ e(
641
+ io,
642
642
  {
643
- id: F,
643
+ id: C,
644
644
  assistiveVariant: "error",
645
- assistiveWithIcon: m,
645
+ assistiveWithIcon: _,
646
646
  children: h
647
647
  }
648
648
  ),
649
- !h && I && /* @__PURE__ */ o(
650
- Q,
649
+ !h && k && /* @__PURE__ */ e(
650
+ io,
651
651
  {
652
- id: j,
652
+ id: w,
653
653
  assistiveVariant: "help",
654
- assistiveWithIcon: m,
655
- children: I
654
+ assistiveWithIcon: _,
655
+ children: k
656
656
  }
657
657
  )
658
658
  ] })
@@ -660,157 +660,157 @@ const Ao = "FormControlWrapper-module__root___c-UHo", Wo = "FormControlWrapper-m
660
660
  }
661
661
  );
662
662
  });
663
- M.displayName = "FormControlWrapper";
664
- const wo = "Checkbox-module__groupRoot___cBS0o", To = "Checkbox-module__root___mY3qk", Io = "Checkbox-module__body___5yC7q", Fo = "Checkbox-module__inner___rTke4", Ro = "Checkbox-module__input___2kt-h", So = "Checkbox-module__icon___-O7i6", zo = "Checkbox-module__labelWrapper___GpZkr", Lo = "Checkbox-module__label___cwRtI", f = {
665
- groupRoot: wo,
666
- root: To,
667
- body: Io,
668
- inner: Fo,
669
- input: Ro,
670
- icon: So,
671
- labelWrapper: zo,
672
- label: Lo
673
- }, $e = y(
663
+ H.displayName = "FormControlWrapper";
664
+ const qe = "Checkbox-module__groupRoot___cBS0o", Ve = "Checkbox-module__root___mY3qk", He = "Checkbox-module__body___5yC7q", Ke = "Checkbox-module__inner___rTke4", Ue = "Checkbox-module__input___2kt-h", Ze = "Checkbox-module__icon___-O7i6", Ye = "Checkbox-module__labelWrapper___GpZkr", Xe = "Checkbox-module__label___cwRtI", b = {
665
+ groupRoot: qe,
666
+ root: Ve,
667
+ body: He,
668
+ inner: Ke,
669
+ input: Ue,
670
+ icon: Ze,
671
+ labelWrapper: Ye,
672
+ label: Xe
673
+ }, ko = N(
674
674
  function({
675
- overStyled: n = !1,
675
+ overStyled: s = !1,
676
676
  formLayout: a = "stacked",
677
677
  // Label Wrappers
678
- labelSize: s,
679
- labelAlignment: t,
680
- labelOptionalText: r,
678
+ labelSize: n,
679
+ labelAlignment: r,
680
+ labelOptionalText: t,
681
681
  labelWithEditIcon: i,
682
682
  onLabelEditClick: l,
683
683
  // Base Mantine Extracted Attributes
684
684
  label: d,
685
685
  description: c,
686
686
  assistiveText: p,
687
- assistiveWithIcon: m,
688
- error: b,
689
- required: _,
687
+ assistiveWithIcon: _,
688
+ error: u,
689
+ required: m,
690
690
  withAsterisk: h,
691
- id: N,
692
- className: C,
693
- style: u,
691
+ id: y,
692
+ className: g,
693
+ style: f,
694
694
  children: v,
695
- readOnly: x,
696
- readOnlyComponent: T,
697
- ...W
698
- }, G) {
699
- const V = $(W, n), q = V;
700
- return delete q.size, x && T ? /* @__PURE__ */ o(
701
- M,
695
+ readOnly: P,
696
+ readOnlyComponent: W,
697
+ ...A
698
+ }, R) {
699
+ const j = $(A, s), I = j;
700
+ return delete I.size, P && W ? /* @__PURE__ */ e(
701
+ H,
702
702
  {
703
- className: C,
704
- style: u,
703
+ className: g,
704
+ style: f,
705
705
  controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
706
706
  controlMinWidth: void 0,
707
- overStyled: n,
707
+ overStyled: s,
708
708
  labelElement: "div",
709
709
  formLayout: a,
710
- labelSize: s,
711
- labelAlignment: t,
712
- labelOptionalText: r,
710
+ labelSize: n,
711
+ labelAlignment: r,
712
+ labelOptionalText: t,
713
713
  labelWithEditIcon: i,
714
714
  onLabelEditClick: l,
715
715
  label: d,
716
716
  description: c,
717
717
  assistiveText: p,
718
- assistiveWithIcon: m,
719
- error: b,
720
- required: _,
718
+ assistiveWithIcon: _,
719
+ error: u,
720
+ required: m,
721
721
  withAsterisk: h,
722
- id: N,
723
- children: T
722
+ id: y,
723
+ children: W
724
724
  }
725
- ) : /* @__PURE__ */ o(
726
- M,
725
+ ) : /* @__PURE__ */ e(
726
+ H,
727
727
  {
728
- className: C,
729
- style: u,
728
+ className: g,
729
+ style: f,
730
730
  controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
731
731
  controlMinWidth: void 0,
732
- overStyled: n,
732
+ overStyled: s,
733
733
  labelElement: "div",
734
734
  formLayout: a,
735
- labelSize: s,
736
- labelAlignment: t,
737
- labelOptionalText: r,
735
+ labelSize: n,
736
+ labelAlignment: r,
737
+ labelOptionalText: t,
738
738
  labelWithEditIcon: i,
739
739
  onLabelEditClick: l,
740
740
  label: d,
741
741
  description: c,
742
742
  assistiveText: p,
743
- assistiveWithIcon: m,
744
- error: b,
745
- required: _,
743
+ assistiveWithIcon: _,
744
+ error: u,
745
+ required: m,
746
746
  withAsterisk: h,
747
- id: N,
748
- children: /* @__PURE__ */ o(
749
- pe.Group,
747
+ id: y,
748
+ children: /* @__PURE__ */ e(
749
+ bo.Group,
750
750
  {
751
- ref: G,
752
- ...V,
753
- children: /* @__PURE__ */ o("div", { className: f.groupRoot, "data-layout": a, children: O.Children.map(v, (P) => O.isValidElement(P) ? O.cloneElement(P, {
754
- disabled: x || P.props.disabled
755
- }) : P) })
751
+ ref: R,
752
+ ...j,
753
+ children: /* @__PURE__ */ e("div", { className: b.groupRoot, "data-layout": a, children: V.Children.map(v, (x) => V.isValidElement(x) ? V.cloneElement(x, {
754
+ disabled: P || x.props.disabled
755
+ }) : x) })
756
756
  }
757
757
  )
758
758
  }
759
759
  );
760
760
  }
761
761
  );
762
- $e.displayName = "CheckboxGroup";
763
- const ve = y(
764
- function({ overStyled: n = !1, readOnly: a, readOnlyComponent: s, disabled: t, ...r }, i) {
765
- const l = $(r, n), d = l;
766
- if (delete d.size, delete d.color, delete d.radius, delete d.variant, delete d.iconColor, a && s)
767
- return /* @__PURE__ */ o(
768
- M,
762
+ ko.displayName = "CheckboxGroup";
763
+ const To = N(
764
+ function({ overStyled: s = !1, readOnly: a, readOnlyComponent: n, disabled: r, ...t }, i) {
765
+ const l = $(t, s), d = l;
766
+ if (delete d.size, delete d.color, delete d.radius, delete d.variant, delete d.iconColor, a && n)
767
+ return /* @__PURE__ */ e(
768
+ H,
769
769
  {
770
- overStyled: n,
770
+ overStyled: s,
771
771
  ...l,
772
- children: s
772
+ children: n
773
773
  }
774
774
  );
775
775
  const c = {
776
- root: f.root,
777
- body: f.body,
778
- inner: f.inner,
779
- input: f.input,
780
- icon: f.icon,
781
- labelWrapper: f.labelWrapper,
782
- label: f.label
776
+ root: b.root,
777
+ body: b.body,
778
+ inner: b.inner,
779
+ input: b.input,
780
+ icon: b.icon,
781
+ labelWrapper: b.labelWrapper,
782
+ label: b.label
783
783
  }, p = d.classNames;
784
784
  if (p && typeof p == "object" && !Array.isArray(p)) {
785
- const _ = p;
786
- c.root = _.root ? `${f.root} ${_.root}` : f.root, c.body = _.body ? `${f.body} ${_.body}` : f.body, c.inner = _.inner ? `${f.inner} ${_.inner}` : f.inner, c.input = _.input ? `${f.input} ${_.input}` : f.input, c.icon = _.icon ? `${f.icon} ${_.icon}` : f.icon, c.labelWrapper = _.labelWrapper ? `${f.labelWrapper} ${_.labelWrapper}` : f.labelWrapper, c.label = _.label ? `${f.label} ${_.label}` : f.label;
785
+ const m = p;
786
+ c.root = m.root ? `${b.root} ${m.root}` : b.root, c.body = m.body ? `${b.body} ${m.body}` : b.body, c.inner = m.inner ? `${b.inner} ${m.inner}` : b.inner, c.input = m.input ? `${b.input} ${m.input}` : b.input, c.icon = m.icon ? `${b.icon} ${m.icon}` : b.icon, c.labelWrapper = m.labelWrapper ? `${b.labelWrapper} ${m.labelWrapper}` : b.labelWrapper, c.label = m.label ? `${b.label} ${m.label}` : b.label;
787
787
  }
788
- const m = d.className, b = m ? `${f.root} ${m}` : f.root;
789
- return /* @__PURE__ */ o(
790
- pe,
788
+ const _ = d.className, u = _ ? `${b.root} ${_}` : b.root;
789
+ return /* @__PURE__ */ e(
790
+ bo,
791
791
  {
792
792
  ref: i,
793
- className: b,
793
+ className: u,
794
794
  classNames: c,
795
- disabled: a || t,
795
+ disabled: a || r,
796
796
  ...l
797
797
  }
798
798
  );
799
799
  }
800
800
  );
801
- ve.displayName = "Checkbox";
802
- ve.Group = $e;
803
- const Bo = "Chip-module__root___f5pFk", Eo = "Chip-module__label___Ov9pg", jo = "Chip-module__mantineIconWrapper___KLSz6", Oo = "Chip-module__innerWrapper___EnrTF", Mo = "Chip-module__children___zbRAR", Vo = "Chip-module__leadingIcon___JBtjQ", qo = "Chip-module__removeIcon___pVju-", g = {
804
- root: Bo,
805
- label: Eo,
806
- mantineIconWrapper: jo,
807
- innerWrapper: Oo,
808
- children: Mo,
809
- leadingIcon: Vo,
810
- removeIcon: qo
801
+ To.displayName = "Checkbox";
802
+ To.Group = ko;
803
+ const Je = "Chip-module__root___f5pFk", Qe = "Chip-module__label___Ov9pg", ot = "Chip-module__mantineIconWrapper___KLSz6", et = "Chip-module__innerWrapper___EnrTF", tt = "Chip-module__children___zbRAR", rt = "Chip-module__leadingIcon___JBtjQ", st = "Chip-module__removeIcon___pVju-", T = {
804
+ root: Je,
805
+ label: Qe,
806
+ mantineIconWrapper: ot,
807
+ innerWrapper: et,
808
+ children: tt,
809
+ leadingIcon: rt,
810
+ removeIcon: st
811
811
  };
812
- function Do(e) {
813
- return /* @__PURE__ */ L(
812
+ function nt(o) {
813
+ return /* @__PURE__ */ G(
814
814
  "svg",
815
815
  {
816
816
  xmlns: "http://www.w3.org/2000/svg",
@@ -822,162 +822,187 @@ function Do(e) {
822
822
  strokeWidth: "2",
823
823
  strokeLinecap: "round",
824
824
  strokeLinejoin: "round",
825
- ...e,
825
+ ...o,
826
826
  children: [
827
- /* @__PURE__ */ o("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
828
- /* @__PURE__ */ o("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
827
+ /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
828
+ /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
829
829
  ]
830
830
  }
831
831
  );
832
832
  }
833
- const Go = y(function({
834
- error: n = !1,
833
+ const at = N(function({
834
+ error: s = !1,
835
835
  icon: a,
836
- onRemove: s,
837
- removeLabel: t = "Remove",
838
- children: r,
836
+ onRemove: n,
837
+ removeLabel: r = "Remove",
838
+ children: t,
839
839
  overStyled: i = !1,
840
840
  ...l
841
841
  }, d) {
842
- const c = $(l, i), p = c, m = {
843
- root: g.root,
844
- label: g.label,
845
- input: g.input,
846
- iconWrapper: g.mantineIconWrapper,
847
- checkIcon: g.checkIcon
848
- }, b = p.classNames;
849
- if (b && typeof b == "object" && !Array.isArray(b)) {
850
- const u = b;
851
- m.root = u.root ? `${g.root} ${u.root}` : g.root, m.label = u.label ? `${g.label} ${u.label}` : g.label;
842
+ const c = $(l, i), p = c, _ = {
843
+ root: T.root,
844
+ label: T.label,
845
+ input: T.input,
846
+ iconWrapper: T.mantineIconWrapper,
847
+ checkIcon: T.checkIcon
848
+ }, u = p.classNames;
849
+ if (u && typeof u == "object" && !Array.isArray(u)) {
850
+ const f = u;
851
+ _.root = f.root ? `${T.root} ${f.root}` : T.root, _.label = f.label ? `${T.label} ${f.label}` : T.label;
852
852
  }
853
- const _ = p.className, h = _ ? `${g.root} ${_}` : g.root;
854
- return /* @__PURE__ */ o(
855
- Re,
853
+ const m = p.className, h = m ? `${T.root} ${m}` : T.root;
854
+ return /* @__PURE__ */ e(
855
+ Do,
856
856
  {
857
857
  ref: d,
858
858
  className: h,
859
- classNames: m,
860
- ...(n ? "" : void 0) !== void 0 ? { "data-error": "" } : {},
861
- ...!r && (!!a || !!s) ? { "data-icon-only": "" } : {},
859
+ classNames: _,
860
+ ...(s ? "" : void 0) !== void 0 ? { "data-error": "" } : {},
861
+ ...!t && (!!a || !!n) ? { "data-icon-only": "" } : {},
862
862
  ...c,
863
- children: /* @__PURE__ */ L("span", { className: g.innerWrapper, children: [
864
- a && /* @__PURE__ */ o("span", { className: g.leadingIcon, "aria-hidden": !0, children: a }),
865
- /* @__PURE__ */ o("span", { className: g.children, children: r }),
866
- s && /* @__PURE__ */ o(
863
+ children: /* @__PURE__ */ G("span", { className: T.innerWrapper, children: [
864
+ a && /* @__PURE__ */ e("span", { className: T.leadingIcon, "aria-hidden": !0, children: a }),
865
+ /* @__PURE__ */ e("span", { className: T.children, children: t }),
866
+ n && /* @__PURE__ */ e(
867
867
  "span",
868
868
  {
869
869
  role: "button",
870
- className: g.removeIcon,
871
- onClick: (u) => {
872
- u.preventDefault(), u.stopPropagation(), s(u);
870
+ className: T.removeIcon,
871
+ onClick: (f) => {
872
+ f.preventDefault(), f.stopPropagation(), n(f);
873
873
  },
874
- "aria-label": t,
875
- onKeyDown: (u) => {
876
- (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.stopPropagation(), s(
877
- u
874
+ "aria-label": r,
875
+ onKeyDown: (f) => {
876
+ (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), n(
877
+ f
878
878
  ));
879
879
  },
880
880
  tabIndex: 0,
881
- children: /* @__PURE__ */ o(Do, {})
881
+ children: /* @__PURE__ */ e(nt, {})
882
882
  }
883
883
  )
884
884
  ] })
885
885
  }
886
886
  );
887
887
  });
888
- Go.displayName = "Chip";
889
- const nt = (e) => /* @__PURE__ */ o("div", { ...e, children: "DatePicker" }), st = (e) => /* @__PURE__ */ o("div", { ...e, children: "Dropdown" }), at = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileInput" }), ct = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileUpload" }), it = (e) => /* @__PURE__ */ o("div", { ...e, children: "HoverCard" }), lt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Link" }), dt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Loader" }), pt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Menu" }), _t = (e) => /* @__PURE__ */ o("div", { ...e, children: "Modal" }), mt = (e) => /* @__PURE__ */ o("div", { ...e, children: "NumberInput" }), ut = (e) => /* @__PURE__ */ o("div", { ...e, children: "Pagination" }), ht = (e) => /* @__PURE__ */ o("div", { ...e, children: "Panel" }), ft = (e) => /* @__PURE__ */ o("div", { ...e, children: "Popover" }), bt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Radio" }), Ho = "_root_1qhn7_3", Ko = "_contents_1qhn7_18", D = {
890
- root: Ho,
891
- contents: Ko
892
- }, Zo = y(function({ layer: e, contentsOnly: n, children: a, className: s, style: t, ...r }, i) {
893
- const l = n ? s ? `${D.root} ${D.contents} ${s}` : `${D.root} ${D.contents}` : s ? `${D.root} ${s}` : D.root;
894
- return /* @__PURE__ */ o(
888
+ at.displayName = "Chip";
889
+ const ct = "Container-module__root___UVssr", X = {
890
+ root: ct
891
+ }, it = N(
892
+ function({ children: s, overStyled: a = !1, ...n }, r) {
893
+ const t = $(n, a), i = t, l = {
894
+ root: X.root
895
+ }, d = i.classNames;
896
+ if (d && typeof d == "object" && !Array.isArray(d)) {
897
+ const _ = d;
898
+ l.root = _.root ? `${X.root} ${_.root}` : X.root;
899
+ }
900
+ const c = i.className, p = c ? `${X.root} ${c}` : X.root;
901
+ return /* @__PURE__ */ e(
902
+ Go,
903
+ {
904
+ ref: r,
905
+ className: p,
906
+ classNames: l,
907
+ ...t,
908
+ children: s
909
+ }
910
+ );
911
+ }
912
+ );
913
+ it.displayName = "Container";
914
+ const Bt = (o) => /* @__PURE__ */ e("div", { ...o, children: "DatePicker" }), lt = "_root_1qhn7_3", dt = "_contents_1qhn7_18", K = {
915
+ root: lt,
916
+ contents: dt
917
+ }, pt = N(function({ layer: o, contentsOnly: s, children: a, className: n, style: r, ...t }, i) {
918
+ const l = s ? n ? `${K.root} ${K.contents} ${n}` : `${K.root} ${K.contents}` : n ? `${K.root} ${n}` : K.root;
919
+ return /* @__PURE__ */ e(
895
920
  "div",
896
921
  {
897
922
  ref: i,
898
923
  className: l,
899
- style: t,
900
- ...n ? {} : { "data-recursica-layer": String(e) },
901
- ...r,
924
+ style: r,
925
+ ...s ? {} : { "data-recursica-layer": String(o) },
926
+ ...t,
902
927
  children: a
903
928
  }
904
929
  );
905
930
  });
906
- Zo.displayName = "Layer";
907
- const H = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ o(O.Fragment, { children: e });
908
- H.displayName = "EmptyValueRenderer";
909
- H.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
910
- const ae = "data-recursica-theme";
911
- function Nt({
912
- children: e,
913
- theme: n = "light"
931
+ pt.displayName = "Layer";
932
+ const eo = ({ emptyText: o = "N/A" }) => /* @__PURE__ */ e(V.Fragment, { children: o });
933
+ eo.displayName = "EmptyValueRenderer";
934
+ eo.check = (o) => o == null || o === "" || Array.isArray(o) && o.length === 0;
935
+ const fo = "data-recursica-theme";
936
+ function jt({
937
+ children: o,
938
+ theme: s = "light"
914
939
  }) {
915
- return ke(() => {
940
+ return Lo(() => {
916
941
  const a = document.documentElement;
917
- return a.setAttribute(ae, n), () => {
918
- a.removeAttribute(ae);
942
+ return a.setAttribute(fo, s), () => {
943
+ a.removeAttribute(fo);
919
944
  };
920
- }, [n]), /* @__PURE__ */ o(ie, { children: e });
945
+ }, [s]), /* @__PURE__ */ e(No, { children: o });
921
946
  }
922
- const Yo = "ReadOnlyField-module__textField___qKn25", ce = {
923
- textField: Yo
924
- }, Ce = ({
925
- value: e,
926
- overStyled: n = !1,
947
+ const _t = "ReadOnlyField-module__textField___qKn25", ho = {
948
+ textField: _t
949
+ }, zo = ({
950
+ value: o,
951
+ overStyled: s = !1,
927
952
  ...a
928
953
  }) => {
929
- const s = $(a, n), t = s.className;
930
- return /* @__PURE__ */ o(
931
- de,
954
+ const n = $(a, s), r = n.className;
955
+ return /* @__PURE__ */ e(
956
+ yo,
932
957
  {
933
958
  component: "p",
934
- className: t ? `${ce.textField} ${t}` : ce.textField,
935
- ...s,
936
- children: e != null ? O.isValidElement(e) ? e : String(e) : ""
959
+ className: r ? `${ho.textField} ${r}` : ho.textField,
960
+ ...n,
961
+ children: o != null ? V.isValidElement(o) ? o : String(o) : ""
937
962
  }
938
963
  );
939
964
  };
940
- Ce.displayName = "ReadOnlyTextField";
941
- const ge = y(
942
- function({ value: n, type: a = "text", emptyValueComponent: s, overStyled: t = !1, ...r }, i) {
965
+ zo.displayName = "ReadOnlyTextField";
966
+ const So = N(
967
+ function({ value: s, type: a = "text", emptyValueComponent: n, overStyled: r = !1, ...t }, i) {
943
968
  let l = null;
944
- const d = $(r, t), c = s || H, m = (c.check ? c.check(n) : H.check(n)) ? /* @__PURE__ */ o(c, { value: n }) : n;
969
+ const d = $(t, r), c = n || eo, _ = (c.check ? c.check(s) : eo.check(s)) ? /* @__PURE__ */ e(c, { value: s }) : s;
945
970
  switch (a) {
946
971
  case "text":
947
972
  default:
948
- l = /* @__PURE__ */ o(
949
- Ce,
973
+ l = /* @__PURE__ */ e(
974
+ zo,
950
975
  {
951
- value: m,
952
- overStyled: t
976
+ value: _,
977
+ overStyled: r
953
978
  }
954
979
  );
955
980
  break;
956
981
  }
957
- return /* @__PURE__ */ o(
958
- M,
982
+ return /* @__PURE__ */ e(
983
+ H,
959
984
  {
960
985
  ref: i,
961
- overStyled: t,
986
+ overStyled: r,
962
987
  ...d,
963
988
  children: l
964
989
  }
965
990
  );
966
991
  }
967
992
  );
968
- ge.displayName = "ReadOnlyField";
969
- const xe = y(function({
970
- readOnly: n,
993
+ So.displayName = "ReadOnlyField";
994
+ const no = N(function({
995
+ readOnly: s,
971
996
  readOnlyComponent: a,
972
- readOnlyType: s = "text",
973
- readOnlyValue: t,
974
- activeComponent: r,
997
+ readOnlyType: n = "text",
998
+ readOnlyValue: r,
999
+ activeComponent: t,
975
1000
  overStyled: i,
976
1001
  onLabelEditClick: l,
977
1002
  ...d
978
1003
  }, c) {
979
- return n ? a ? /* @__PURE__ */ o(
980
- M,
1004
+ return s ? a ? /* @__PURE__ */ e(
1005
+ H,
981
1006
  {
982
1007
  ref: c,
983
1008
  ...d,
@@ -985,110 +1010,390 @@ const xe = y(function({
985
1010
  overStyled: i,
986
1011
  children: a
987
1012
  }
988
- ) : /* @__PURE__ */ o(
989
- ge,
1013
+ ) : /* @__PURE__ */ e(
1014
+ So,
990
1015
  {
991
1016
  ref: c,
992
- type: s,
993
- value: t,
1017
+ type: n,
1018
+ value: r,
994
1019
  onLabelEditClick: l,
995
1020
  overStyled: i,
996
1021
  ...d
997
1022
  }
998
- ) : /* @__PURE__ */ o(
999
- M,
1023
+ ) : /* @__PURE__ */ e(
1024
+ H,
1000
1025
  {
1001
1026
  ref: c,
1002
1027
  ...d,
1003
1028
  onLabelEditClick: l,
1004
1029
  overStyled: i,
1005
- children: r
1030
+ children: t
1006
1031
  }
1007
1032
  );
1008
1033
  });
1009
- xe.displayName = "WithReadOnlyWrapper";
1010
- const yt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), $t = (e) => /* @__PURE__ */ o("div", { ...e, children: "SegmentedControl" }), vt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Slider" }), Ct = (e) => /* @__PURE__ */ o("div", { ...e, children: "Stepper" }), gt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Switch" }), xt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Table" }), Pt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tabs" }), At = (e) => /* @__PURE__ */ o("div", { ...e, children: "TextArea" }), Uo = "TextField-module__root___2ZYkG", Xo = "TextField-module__input___RL-My", Jo = "TextField-module__section___bCIJ0", S = {
1011
- root: Uo,
1012
- input: Xo,
1013
- section: Jo
1014
- }, Qo = y(
1034
+ no.displayName = "WithReadOnlyWrapper";
1035
+ const mt = "Dropdown-module__root___uVyL0", ut = "Dropdown-module__input___dK4dN", ft = "Dropdown-module__section___j3MRB", ht = "Dropdown-module__dropdown___gG-Sw", Nt = "Dropdown-module__option___nAGU-", z = {
1036
+ root: mt,
1037
+ input: ut,
1038
+ section: ft,
1039
+ dropdown: ht,
1040
+ option: Nt
1041
+ }, $t = N(
1015
1042
  function({
1016
- overStyled: n = !1,
1043
+ overStyled: s = !1,
1017
1044
  formLayout: a = "stacked",
1045
+ containerWidth: n,
1018
1046
  // Label & Wrapper Maps
1019
- labelSize: s,
1047
+ labelSize: r,
1020
1048
  labelAlignment: t,
1021
- labelOptionalText: r,
1049
+ labelOptionalText: i,
1050
+ labelWithEditIcon: l,
1051
+ onLabelEditClick: d,
1052
+ label: c,
1053
+ assistiveText: p,
1054
+ assistiveWithIcon: _,
1055
+ error: u,
1056
+ required: m,
1057
+ withAsterisk: h,
1058
+ id: y,
1059
+ className: g,
1060
+ style: f,
1061
+ disabled: v,
1062
+ readOnly: P,
1063
+ readOnlyComponent: W,
1064
+ value: A,
1065
+ defaultValue: R,
1066
+ data: j,
1067
+ ...I
1068
+ }, x) {
1069
+ const k = $(I, s), w = k;
1070
+ delete w.size, delete w.variant, delete w.radius;
1071
+ const C = {
1072
+ wrapper: z.root,
1073
+ // The nested Input internal relative wrapper bounding box
1074
+ input: z.input,
1075
+ section: z.section,
1076
+ dropdown: z.dropdown,
1077
+ option: z.option
1078
+ }, Z = w.classNames;
1079
+ if (Z && typeof Z == "object" && !Array.isArray(Z)) {
1080
+ const S = Z;
1081
+ C.wrapper = S.wrapper ? `${z.root} ${S.wrapper}` : z.root, C.input = S.input ? `${z.input} ${S.input}` : z.input, C.section = S.section ? `${z.section} ${S.section}` : z.section, C.dropdown = S.dropdown ? `${z.dropdown} ${S.dropdown}` : z.dropdown, C.option = S.option ? `${z.option} ${S.option}` : z.option;
1082
+ }
1083
+ const Y = {
1084
+ ...f || {},
1085
+ width: n || "100%"
1086
+ };
1087
+ return /* @__PURE__ */ e(
1088
+ no,
1089
+ {
1090
+ className: g,
1091
+ style: Y,
1092
+ controlMaxWidth: "var(--recursica_ui-kit_components_dropdown_properties_max-width)",
1093
+ controlMinWidth: "var(--recursica_ui-kit_components_dropdown_properties_min-width)",
1094
+ overStyled: s,
1095
+ formLayout: a,
1096
+ labelSize: r,
1097
+ labelAlignment: t,
1098
+ labelOptionalText: i,
1099
+ labelWithEditIcon: l,
1100
+ onLabelEditClick: d,
1101
+ label: c,
1102
+ assistiveText: p,
1103
+ assistiveWithIcon: _,
1104
+ error: u,
1105
+ required: m,
1106
+ withAsterisk: h,
1107
+ id: y,
1108
+ readOnly: P,
1109
+ readOnlyComponent: W,
1110
+ readOnlyType: "text",
1111
+ readOnlyValue: A !== void 0 ? String(A) : R ? String(R) : void 0,
1112
+ activeComponent: (
1113
+ /* Naked Select execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
1114
+ /* @__PURE__ */ e(
1115
+ Mo,
1116
+ {
1117
+ ref: x,
1118
+ classNames: C,
1119
+ disabled: v,
1120
+ value: A,
1121
+ defaultValue: R,
1122
+ data: j || [],
1123
+ label: void 0,
1124
+ description: void 0,
1125
+ error: void 0,
1126
+ required: void 0,
1127
+ withAsterisk: void 0,
1128
+ wrapperProps: {
1129
+ "data-disabled": v ? "true" : void 0,
1130
+ "data-error": u ? "true" : void 0
1131
+ },
1132
+ ...k
1133
+ }
1134
+ )
1135
+ )
1136
+ }
1137
+ );
1138
+ }
1139
+ );
1140
+ $t.displayName = "Dropdown";
1141
+ const Et = (o) => /* @__PURE__ */ e("div", { ...o, children: "FileInput" }), Ot = (o) => /* @__PURE__ */ e("div", { ...o, children: "FileUpload" }), yt = "Flex-module__root___yYser", J = {
1142
+ root: yt
1143
+ }, bt = N(function({ children: s, overStyled: a = !1, gap: n = "rec-default", ...r }, t) {
1144
+ const i = $({ ...r, gap: n }, a), l = i, d = {
1145
+ root: J.root
1146
+ }, c = l.classNames;
1147
+ if (c && typeof c == "object" && !Array.isArray(c)) {
1148
+ const u = c;
1149
+ d.root = u.root ? `${J.root} ${u.root}` : J.root;
1150
+ }
1151
+ const p = l.className, _ = p ? `${J.root} ${p}` : J.root;
1152
+ return /* @__PURE__ */ e(
1153
+ qo,
1154
+ {
1155
+ ref: t,
1156
+ className: _,
1157
+ classNames: d,
1158
+ ...i,
1159
+ children: s
1160
+ }
1161
+ );
1162
+ });
1163
+ bt.displayName = "Flex";
1164
+ const vt = "Group-module__root___ftO64", Q = {
1165
+ root: vt
1166
+ }, Ct = N(function({ children: s, overStyled: a = !1, gap: n = "rec-default", ...r }, t) {
1167
+ const i = $({ ...r, gap: n }, a), l = i, d = {
1168
+ root: Q.root
1169
+ }, c = l.classNames;
1170
+ if (c && typeof c == "object" && !Array.isArray(c)) {
1171
+ const u = c;
1172
+ d.root = u.root ? `${Q.root} ${u.root}` : Q.root;
1173
+ }
1174
+ const p = l.className, _ = p ? `${Q.root} ${p}` : Q.root;
1175
+ return /* @__PURE__ */ e(
1176
+ Vo,
1177
+ {
1178
+ ref: t,
1179
+ className: _,
1180
+ classNames: d,
1181
+ ...i,
1182
+ children: s
1183
+ }
1184
+ );
1185
+ });
1186
+ Ct.displayName = "Group";
1187
+ const Dt = (o) => /* @__PURE__ */ e("div", { ...o, children: "HoverCard" }), Gt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Link" }), Mt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Loader" }), qt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Menu" }), Vt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Modal" }), Ht = (o) => /* @__PURE__ */ e("div", { ...o, children: "NumberInput" }), Kt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Pagination" }), Ut = (o) => /* @__PURE__ */ e("div", { ...o, children: "Panel" }), Zt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Popover" }), Yt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Radio" }), Xt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Search" }), Jt = (o) => /* @__PURE__ */ e("div", { ...o, children: "SegmentedControl" }), Qt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Slider" }), xt = "Stack-module__root___NUN-x", oo = {
1188
+ root: xt
1189
+ }, gt = N(function({ children: s, overStyled: a = !1, gap: n = "rec-default", ...r }, t) {
1190
+ const i = $({ ...r, gap: n }, a), l = i, d = {
1191
+ root: oo.root
1192
+ }, c = l.classNames;
1193
+ if (c && typeof c == "object" && !Array.isArray(c)) {
1194
+ const u = c;
1195
+ d.root = u.root ? `${oo.root} ${u.root}` : oo.root;
1196
+ }
1197
+ const p = l.className, _ = p ? `${oo.root} ${p}` : oo.root;
1198
+ return /* @__PURE__ */ e(
1199
+ Ho,
1200
+ {
1201
+ ref: t,
1202
+ className: _,
1203
+ classNames: d,
1204
+ ...i,
1205
+ children: s
1206
+ }
1207
+ );
1208
+ });
1209
+ gt.displayName = "Stack";
1210
+ const or = (o) => /* @__PURE__ */ e("div", { ...o, children: "Stepper" }), er = (o) => /* @__PURE__ */ e("div", { ...o, children: "Switch" }), tr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Table" }), rr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Tabs" }), Pt = N(function({ overStyled: s = !1, variant: a = "body", ...n }, r) {
1211
+ const t = $(n, s), i = t.className, l = `recursica_brand_typography_${a}`, d = i ? `${l} ${i}` : l;
1212
+ return /* @__PURE__ */ e(
1213
+ Ko,
1214
+ {
1215
+ ref: r,
1216
+ className: d,
1217
+ ...t
1218
+ }
1219
+ );
1220
+ });
1221
+ Pt.displayName = "Text";
1222
+ const At = "TextArea-module__root___3dyeu", wt = "TextArea-module__input___8l36v", U = {
1223
+ root: At,
1224
+ input: wt
1225
+ }, Wt = N(
1226
+ function({
1227
+ overStyled: s = !1,
1228
+ formLayout: a = "stacked",
1229
+ // Label & Wrapper Maps
1230
+ labelSize: n,
1231
+ labelAlignment: r,
1232
+ labelOptionalText: t,
1022
1233
  labelWithEditIcon: i,
1023
1234
  onLabelEditClick: l,
1024
1235
  label: d,
1025
1236
  assistiveText: c,
1026
1237
  assistiveWithIcon: p,
1027
- error: m,
1028
- required: b,
1029
- withAsterisk: _,
1238
+ error: _,
1239
+ required: u,
1240
+ withAsterisk: m,
1030
1241
  id: h,
1031
- className: N,
1032
- style: C,
1033
- disabled: u,
1242
+ className: y,
1243
+ style: g,
1244
+ disabled: f,
1034
1245
  readOnly: v,
1035
- readOnlyComponent: x,
1036
- value: T,
1037
- defaultValue: W,
1038
- ...G
1039
- }, V) {
1040
- const q = $(G, n), P = q;
1041
- delete P.size, delete P.variant, delete P.radius;
1042
- const I = {
1043
- wrapper: S.root,
1246
+ readOnlyComponent: P,
1247
+ value: W,
1248
+ defaultValue: A,
1249
+ ...R
1250
+ }, j) {
1251
+ const I = $(R, s), x = I;
1252
+ delete x.size, delete x.variant, delete x.radius;
1253
+ const k = {
1254
+ wrapper: U.root,
1044
1255
  // The nested Input internal relative wrapper bounding box
1045
- input: S.input,
1046
- section: S.section
1047
- }, j = P.classNames;
1048
- if (j && typeof j == "object" && !Array.isArray(j)) {
1049
- const F = j;
1050
- I.wrapper = F.wrapper ? `${S.root} ${F.wrapper}` : S.root, I.input = F.input ? `${S.input} ${F.input}` : S.input, I.section = F.section ? `${S.section} ${F.section}` : S.section;
1256
+ input: U.input
1257
+ }, w = x.classNames;
1258
+ if (w && typeof w == "object" && !Array.isArray(w)) {
1259
+ const C = w;
1260
+ k.wrapper = C.wrapper ? `${U.root} ${C.wrapper}` : U.root, k.input = C.input ? `${U.input} ${C.input}` : U.input;
1051
1261
  }
1052
- return /* @__PURE__ */ o(
1053
- xe,
1262
+ return /* @__PURE__ */ e(
1263
+ no,
1054
1264
  {
1055
- className: N,
1056
- style: C,
1265
+ className: y,
1266
+ style: g,
1057
1267
  controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
1058
1268
  controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
1059
- overStyled: n,
1269
+ overStyled: s,
1060
1270
  formLayout: a,
1061
- labelSize: s,
1062
- labelAlignment: t,
1063
- labelOptionalText: r,
1271
+ labelSize: n,
1272
+ labelAlignment: r,
1273
+ labelOptionalText: t,
1274
+ labelWithEditIcon: i,
1275
+ onLabelEditClick: l,
1276
+ label: d,
1277
+ assistiveText: c,
1278
+ assistiveWithIcon: p,
1279
+ error: _,
1280
+ required: u,
1281
+ withAsterisk: m,
1282
+ id: h,
1283
+ readOnly: v,
1284
+ readOnlyComponent: P,
1285
+ readOnlyType: "text",
1286
+ readOnlyValue: W !== void 0 ? W : A,
1287
+ activeComponent: (
1288
+ /* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
1289
+ /* @__PURE__ */ e(
1290
+ Uo,
1291
+ {
1292
+ ref: j,
1293
+ classNames: k,
1294
+ disabled: f,
1295
+ value: W,
1296
+ defaultValue: A,
1297
+ label: void 0,
1298
+ description: void 0,
1299
+ error: void 0,
1300
+ required: void 0,
1301
+ withAsterisk: void 0,
1302
+ wrapperProps: {
1303
+ "data-disabled": f ? "true" : void 0,
1304
+ "data-error": _ ? "true" : void 0
1305
+ },
1306
+ ...I
1307
+ }
1308
+ )
1309
+ )
1310
+ }
1311
+ );
1312
+ }
1313
+ );
1314
+ Wt.displayName = "TextArea";
1315
+ const kt = "TextField-module__root___2ZYkG", Tt = "TextField-module__input___RL-My", zt = "TextField-module__section___bCIJ0", O = {
1316
+ root: kt,
1317
+ input: Tt,
1318
+ section: zt
1319
+ }, St = N(
1320
+ function({
1321
+ overStyled: s = !1,
1322
+ formLayout: a = "stacked",
1323
+ // Label & Wrapper Maps
1324
+ labelSize: n,
1325
+ labelAlignment: r,
1326
+ labelOptionalText: t,
1327
+ labelWithEditIcon: i,
1328
+ onLabelEditClick: l,
1329
+ label: d,
1330
+ assistiveText: c,
1331
+ assistiveWithIcon: p,
1332
+ error: _,
1333
+ required: u,
1334
+ withAsterisk: m,
1335
+ id: h,
1336
+ className: y,
1337
+ style: g,
1338
+ disabled: f,
1339
+ readOnly: v,
1340
+ readOnlyComponent: P,
1341
+ value: W,
1342
+ defaultValue: A,
1343
+ ...R
1344
+ }, j) {
1345
+ const I = $(R, s), x = I;
1346
+ delete x.size, delete x.variant, delete x.radius;
1347
+ const k = {
1348
+ wrapper: O.root,
1349
+ // The nested Input internal relative wrapper bounding box
1350
+ input: O.input,
1351
+ section: O.section
1352
+ }, w = x.classNames;
1353
+ if (w && typeof w == "object" && !Array.isArray(w)) {
1354
+ const C = w;
1355
+ k.wrapper = C.wrapper ? `${O.root} ${C.wrapper}` : O.root, k.input = C.input ? `${O.input} ${C.input}` : O.input, k.section = C.section ? `${O.section} ${C.section}` : O.section;
1356
+ }
1357
+ return /* @__PURE__ */ e(
1358
+ no,
1359
+ {
1360
+ className: y,
1361
+ style: g,
1362
+ controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
1363
+ controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
1364
+ overStyled: s,
1365
+ formLayout: a,
1366
+ labelSize: n,
1367
+ labelAlignment: r,
1368
+ labelOptionalText: t,
1064
1369
  labelWithEditIcon: i,
1065
1370
  onLabelEditClick: l,
1066
1371
  label: d,
1067
1372
  assistiveText: c,
1068
1373
  assistiveWithIcon: p,
1069
- error: m,
1070
- required: b,
1071
- withAsterisk: _,
1374
+ error: _,
1375
+ required: u,
1376
+ withAsterisk: m,
1072
1377
  id: h,
1073
1378
  readOnly: v,
1074
- readOnlyComponent: x,
1379
+ readOnlyComponent: P,
1075
1380
  readOnlyType: "text",
1076
- readOnlyValue: T !== void 0 ? T : W,
1381
+ readOnlyValue: W !== void 0 ? W : A,
1077
1382
  activeComponent: (
1078
1383
  /* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
1079
- /* @__PURE__ */ o(
1080
- le,
1384
+ /* @__PURE__ */ e(
1385
+ $o,
1081
1386
  {
1082
- ref: V,
1083
- classNames: I,
1084
- disabled: u,
1085
- value: T,
1086
- defaultValue: W,
1387
+ ref: j,
1388
+ classNames: k,
1389
+ disabled: f,
1390
+ value: W,
1391
+ defaultValue: A,
1087
1392
  wrapperProps: {
1088
- "data-disabled": u ? "true" : void 0,
1089
- "data-error": m ? "true" : void 0
1393
+ "data-disabled": f ? "true" : void 0,
1394
+ "data-error": _ ? "true" : void 0
1090
1395
  },
1091
- ...q
1396
+ ...I
1092
1397
  }
1093
1398
  )
1094
1399
  )
@@ -1096,59 +1401,78 @@ const yt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), $t = (
1096
1401
  );
1097
1402
  }
1098
1403
  );
1099
- Qo.displayName = "TextField";
1100
- const Wt = (e) => /* @__PURE__ */ o("div", { ...e, children: "TimePicker" }), kt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Timeline" }), wt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Toast" }), Tt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tooltip" }), It = (e) => /* @__PURE__ */ o("div", { ...e, children: "TransferList" });
1404
+ St.displayName = "TextField";
1405
+ const sr = (o) => /* @__PURE__ */ e("div", { ...o, children: "TimePicker" }), nr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Timeline" }), Ft = N(function({ overStyled: s = !1, order: a = 1, ...n }, r) {
1406
+ const t = $(n, s), i = t.className, l = `recursica_brand_typography_h${a}`, d = i ? `${l} ${i}` : l;
1407
+ return /* @__PURE__ */ e(
1408
+ Zo,
1409
+ {
1410
+ ref: r,
1411
+ order: a,
1412
+ className: d,
1413
+ ...t
1414
+ }
1415
+ );
1416
+ });
1417
+ Ft.displayName = "Title";
1418
+ const ar = (o) => /* @__PURE__ */ e("div", { ...o, children: "Toast" }), cr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Tooltip" }), ir = (o) => /* @__PURE__ */ e("div", { ...o, children: "TransferList" });
1101
1419
  export {
1102
- te as Accordion,
1103
- ee as AccordionControl,
1104
- me as AccordionItem,
1105
- oe as AccordionPanel,
1106
- Ue as Avatar,
1107
- Je as Badge,
1108
- oo as Breadcrumb,
1109
- io as Button,
1110
- Y as Card,
1111
- Ne as CardContent,
1112
- be as CardFooter,
1113
- fe as CardHeader,
1114
- he as CardSection,
1115
- ve as Checkbox,
1116
- $e as CheckboxGroup,
1117
- Go as Chip,
1118
- nt as DatePicker,
1119
- st as Dropdown,
1120
- H as EmptyValueRenderer,
1121
- at as FileInput,
1122
- ct as FileUpload,
1123
- it as HoverCard,
1124
- ye as Label,
1125
- Zo as Layer,
1126
- lt as Link,
1127
- dt as Loader,
1128
- pt as Menu,
1129
- _t as Modal,
1130
- mt as NumberInput,
1131
- ut as Pagination,
1132
- ht as Panel,
1133
- ft as Popover,
1134
- bt as Radio,
1135
- ge as ReadOnlyField,
1136
- Ce as ReadOnlyTextField,
1137
- Nt as RecursicaThemeProvider,
1138
- yt as Search,
1139
- $t as SegmentedControl,
1140
- vt as Slider,
1141
- Ct as Stepper,
1142
- gt as Switch,
1143
- xt as Table,
1144
- Pt as Tabs,
1145
- At as TextArea,
1146
- Qo as TextField,
1147
- Wt as TimePicker,
1148
- kt as Timeline,
1149
- wt as Toast,
1150
- Tt as Tooltip,
1151
- It as TransferList,
1152
- xe as WithReadOnlyWrapper
1420
+ _o as Accordion,
1421
+ lo as AccordionControl,
1422
+ Co as AccordionItem,
1423
+ po as AccordionPanel,
1424
+ _e as Avatar,
1425
+ ue as Badge,
1426
+ Ne as Breadcrumb,
1427
+ ge as Button,
1428
+ so as Card,
1429
+ wo as CardContent,
1430
+ Ao as CardFooter,
1431
+ Po as CardHeader,
1432
+ go as CardSection,
1433
+ To as Checkbox,
1434
+ ko as CheckboxGroup,
1435
+ at as Chip,
1436
+ it as Container,
1437
+ Bt as DatePicker,
1438
+ $t as Dropdown,
1439
+ eo as EmptyValueRenderer,
1440
+ Et as FileInput,
1441
+ Ot as FileUpload,
1442
+ bt as Flex,
1443
+ Ct as Group,
1444
+ Dt as HoverCard,
1445
+ Wo as Label,
1446
+ pt as Layer,
1447
+ Gt as Link,
1448
+ Mt as Loader,
1449
+ qt as Menu,
1450
+ Vt as Modal,
1451
+ Ht as NumberInput,
1452
+ Kt as Pagination,
1453
+ Ut as Panel,
1454
+ Zt as Popover,
1455
+ Yt as Radio,
1456
+ So as ReadOnlyField,
1457
+ zo as ReadOnlyTextField,
1458
+ jt as RecursicaThemeProvider,
1459
+ Xt as Search,
1460
+ Jt as SegmentedControl,
1461
+ Qt as Slider,
1462
+ gt as Stack,
1463
+ or as Stepper,
1464
+ er as Switch,
1465
+ tr as Table,
1466
+ rr as Tabs,
1467
+ Pt as Text,
1468
+ Wt as TextArea,
1469
+ St as TextField,
1470
+ sr as TimePicker,
1471
+ nr as Timeline,
1472
+ Ft as Title,
1473
+ ar as Toast,
1474
+ cr as Tooltip,
1475
+ ir as TransferList,
1476
+ no as WithReadOnlyWrapper
1153
1477
  };
1154
1478
  //# sourceMappingURL=mantine-adapter.js.map