@recursica/mantine-adapter 0.10.0 → 0.11.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 (73) hide show
  1. package/CHANGELOG.md +6 -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 +1482 -1316
  6. package/dist/mantine-adapter.js.map +1 -1
  7. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
  8. package/dist/src/components/FormControlLayout/FormControlLayout.d.ts +21 -0
  9. package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +2 -0
  10. package/dist/src/components/Label/Label.d.ts +1 -3
  11. package/dist/src/components/Radio/Radio.d.ts +3 -1
  12. package/dist/src/components/ReadOnlyField/ReadOnlyBooleanField.d.ts +5 -0
  13. package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +6 -6
  14. package/dist/src/components/ReadOnlyField/ReadOnlySwitchField.d.ts +5 -0
  15. package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +7 -1
  16. package/dist/src/components/ReadOnlyField/index.d.ts +2 -0
  17. package/dist/src/components/Switch/Switch.d.ts +3 -1
  18. package/dist/src/components/index.d.ts +1 -0
  19. package/dist/src/utils/RequireAccessibleLabel.d.ts +18 -0
  20. package/package.json +1 -1
  21. package/src/components/AssistiveElement/AssistiveElement.stories.tsx +6 -4
  22. package/src/components/Avatar/Avatar.stories.tsx +10 -5
  23. package/src/components/Badge/Badge.stories.tsx +2 -1
  24. package/src/components/Button/Button.stories.tsx +2 -4
  25. package/src/components/Checkbox/Checkbox.module.css +1 -1
  26. package/src/components/Checkbox/Checkbox.stories.tsx +24 -3
  27. package/src/components/Checkbox/Checkbox.tsx +72 -15
  28. package/src/components/Checkbox/CheckboxGroup.stories.tsx +26 -25
  29. package/src/components/Checkbox/CheckboxGroup.tsx +38 -58
  30. package/src/components/Container/Container.stories.tsx +6 -3
  31. package/src/components/DatePicker/DatePicker.stories.tsx +1 -5
  32. package/src/components/Dropdown/Dropdown.stories.tsx +0 -3
  33. package/src/components/Dropdown/Dropdown.tsx +6 -5
  34. package/src/components/FileInput/FileInput.stories.tsx +1 -5
  35. package/src/components/FileUpload/FileUpload.stories.tsx +1 -5
  36. package/src/components/Flex/Flex.stories.tsx +6 -3
  37. package/src/components/FormControlLayout/FormControlLayout.module.css +80 -0
  38. package/src/components/FormControlLayout/FormControlLayout.stories.tsx +82 -0
  39. package/src/components/FormControlLayout/FormControlLayout.tsx +78 -0
  40. package/src/components/FormControlWrapper/FormControlWrapper.module.css +3 -41
  41. package/src/components/FormControlWrapper/FormControlWrapper.stories.tsx +18 -5
  42. package/src/components/FormControlWrapper/FormControlWrapper.tsx +28 -41
  43. package/src/components/Group/Group.stories.tsx +6 -3
  44. package/src/components/Label/Label.module.css +0 -37
  45. package/src/components/Label/Label.stories.tsx +8 -9
  46. package/src/components/Label/Label.tsx +2 -7
  47. package/src/components/Loader/Loader.stories.tsx +10 -5
  48. package/src/components/NumberInput/NumberInput.stories.tsx +1 -5
  49. package/src/components/Radio/Radio.stories.tsx +22 -8
  50. package/src/components/Radio/Radio.tsx +134 -75
  51. package/src/components/Radio/RadioGroup.stories.tsx +26 -7
  52. package/src/components/Radio/RadioGroup.tsx +37 -57
  53. package/src/components/ReadOnlyField/ReadOnlyBooleanField.tsx +21 -0
  54. package/src/components/ReadOnlyField/ReadOnlyField.stories.tsx +43 -0
  55. package/src/components/ReadOnlyField/ReadOnlyField.tsx +30 -3
  56. package/src/components/ReadOnlyField/ReadOnlySwitchField.tsx +21 -0
  57. package/src/components/ReadOnlyField/ReadOnlyTextField.tsx +3 -1
  58. package/src/components/ReadOnlyField/WithReadOnlyWrapper.tsx +10 -2
  59. package/src/components/ReadOnlyField/index.ts +2 -0
  60. package/src/components/SegmentedControl/SegmentedControl.stories.tsx +1 -5
  61. package/src/components/Slider/Slider.stories.tsx +1 -5
  62. package/src/components/Stack/Stack.stories.tsx +6 -3
  63. package/src/components/Switch/Switch.module.css +2 -10
  64. package/src/components/Switch/Switch.stories.tsx +42 -27
  65. package/src/components/Switch/Switch.tsx +138 -89
  66. package/src/components/Switch/SwitchGroup.stories.tsx +28 -8
  67. package/src/components/Switch/SwitchGroup.tsx +37 -57
  68. package/src/components/TextArea/TextArea.stories.tsx +0 -3
  69. package/src/components/TextArea/TextArea.tsx +6 -5
  70. package/src/components/TextField/TextField.tsx +6 -5
  71. package/src/components/TimePicker/TimePicker.stories.tsx +1 -5
  72. package/src/components/index.ts +1 -0
  73. package/src/utils/RequireAccessibleLabel.ts +12 -0
@@ -1,7 +1,7 @@
1
- import { jsx as o, jsxs as D, Fragment as so } from "react/jsx-runtime";
2
- import j, { forwardRef as f, useId as qo, useEffect as Oo } from "react";
3
- import { Accordion as no, Avatar as Yo, Badge as Ho, Breadcrumbs as Ko, Button as Uo, Card as co, Input as vo, Box as Co, Checkbox as go, Chip as Zo, Container as Qo, Select as Xo, Flex as Jo, Group as oe, Loader as ee, Radio as xo, Stack as te, Switch as wo, CheckIcon as re, CloseIcon as se, Text as ae, Textarea as ne, Title as ce } from "@mantine/core";
4
- const ie = [
1
+ import { jsx as e, jsxs as B, Fragment as ne } from "react/jsx-runtime";
2
+ import j, { forwardRef as $, useId as Ye, useEffect as Ze } from "react";
3
+ import { Accordion as ue, Avatar as He, Badge as Ke, Breadcrumbs as Ue, Button as Qe, Card as _e, Input as We, Box as fe, Checkbox as ke, Chip as Xe, Container as Je, Select as eo, Flex as oo, Group as to, Loader as ro, Radio as we, Stack as ao, Switch as Ae, CheckIcon as so, CloseIcon as no, Text as lo, Textarea as io, Title as co } from "@mantine/core";
4
+ const po = [
5
5
  "className",
6
6
  "classNames",
7
7
  "style",
@@ -45,7 +45,7 @@ const ie = [
45
45
  "mih",
46
46
  "mah"
47
47
  // Dimensions
48
- ], le = /* @__PURE__ */ new Set([
48
+ ], mo = /* @__PURE__ */ new Set([
49
49
  "m",
50
50
  "my",
51
51
  "mx",
@@ -60,7 +60,7 @@ const ie = [
60
60
  "left",
61
61
  "bottom",
62
62
  "right"
63
- ]), fo = {
63
+ ]), Ce = {
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,420 +69,418 @@ const ie = [
69
69
  "rec-xl": "var(--recursica_brand_dimensions_general_xl)",
70
70
  "rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
71
71
  };
72
- function N(e, t) {
72
+ function C(o, t) {
73
73
  if (t)
74
- return e;
75
- const s = { ...e };
76
- for (const c of ie)
77
- c in s && delete s[c];
78
- for (const [c, a] of Object.entries(s))
79
- typeof a == "string" && a.startsWith("rec-") && le.has(c) && a in fo && (s[c] = fo[a]);
80
- return s;
74
+ return o;
75
+ const n = { ...o };
76
+ for (const a of po)
77
+ a in n && delete n[a];
78
+ for (const [a, r] of Object.entries(n))
79
+ typeof r == "string" && r.startsWith("rec-") && mo.has(a) && r in Ce && (n[a] = Ce[r]);
80
+ return n;
81
81
  }
82
- const de = "Accordion-module__root___Dem6d", pe = "Accordion-module__item___7ryVk", _e = "Accordion-module__noDivider___Ni2tT", me = "Accordion-module__control___b4wgX", ue = "Accordion-module__label___Ss7uW", be = "Accordion-module__chevron___i-HVZ", he = "Accordion-module__iconLeftWrapper___5oLen", $e = "Accordion-module__panel___Wx50w", fe = "Accordion-module__content___PEM9t", Y = {
83
- root: de,
84
- item: pe,
85
- noDivider: _e,
86
- control: me,
87
- label: ue,
88
- chevron: be,
89
- iconLeftWrapper: he,
90
- panel: $e,
91
- content: fe
92
- }, Po = function({
82
+ const uo = "Accordion-module__root___Dem6d", _o = "Accordion-module__item___7ryVk", bo = "Accordion-module__noDivider___Ni2tT", yo = "Accordion-module__control___b4wgX", ho = "Accordion-module__label___Ss7uW", fo = "Accordion-module__chevron___i-HVZ", No = "Accordion-module__iconLeftWrapper___5oLen", $o = "Accordion-module__panel___Wx50w", vo = "Accordion-module__content___PEM9t", Z = {
83
+ root: uo,
84
+ item: _o,
85
+ noDivider: bo,
86
+ control: yo,
87
+ label: ho,
88
+ chevron: fo,
89
+ iconLeftWrapper: No,
90
+ panel: $o,
91
+ content: vo
92
+ }, Pe = function({
93
93
  variant: t = "unstyled",
94
- overStyled: s = !1,
95
- ...c
94
+ overStyled: n = !1,
95
+ ...a
96
96
  }) {
97
- const a = N(c, s), n = {
98
- root: Y.root,
99
- item: Y.item,
100
- control: Y.control,
101
- label: Y.label,
102
- chevron: Y.chevron,
103
- panel: Y.panel,
104
- content: Y.content
105
- }, l = a.classNames;
106
- if (l && typeof l == "object" && !Array.isArray(l)) {
107
- const i = l;
108
- Object.keys(i).forEach((r) => {
109
- n[r] ? n[r] = `${n[r]} ${i[r]}` : n[r] = i[r];
97
+ const r = C(a, n), s = {
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
+ }, c = r.classNames;
106
+ if (c && typeof c == "object" && !Array.isArray(c)) {
107
+ const d = c;
108
+ Object.keys(d).forEach((i) => {
109
+ s[i] ? s[i] = `${s[i]} ${d[i]}` : s[i] = d[i];
110
110
  });
111
111
  }
112
- const d = a.className;
113
- return /* @__PURE__ */ o(
114
- no,
112
+ const l = r.className;
113
+ return /* @__PURE__ */ e(
114
+ ue,
115
115
  {
116
116
  variant: t,
117
- className: d,
118
- classNames: n,
119
- ...a
117
+ className: l,
118
+ classNames: s,
119
+ ...r
120
120
  }
121
121
  );
122
122
  };
123
- Po.displayName = "Accordion";
124
- const Wo = f(function({ title: t, leftIcon: s, divider: c = !0, children: a, overStyled: n = !1, ...l }, d) {
125
- const i = N(l, n), r = i.className, p = [c ? void 0 : Y.noDivider, r].filter(Boolean).join(" ") || void 0;
126
- return /* @__PURE__ */ o(
127
- no.Item,
123
+ Pe.displayName = "Accordion";
124
+ const Se = $(function({ title: t, leftIcon: n, divider: a = !0, children: r, overStyled: s = !1, ...c }, l) {
125
+ const d = C(c, s), i = d.className, p = [a ? void 0 : Z.noDivider, i].filter(Boolean).join(" ") || void 0;
126
+ return /* @__PURE__ */ e(
127
+ ue.Item,
128
128
  {
129
- ref: d,
129
+ ref: l,
130
130
  className: p,
131
- ...i,
132
- children: t ? /* @__PURE__ */ D(so, { children: [
133
- /* @__PURE__ */ o(uo, { leftIcon: s, children: t }),
134
- /* @__PURE__ */ o(bo, { children: a })
135
- ] }) : a
131
+ ...d,
132
+ children: t ? /* @__PURE__ */ B(ne, { children: [
133
+ /* @__PURE__ */ e(Ne, { leftIcon: n, children: t }),
134
+ /* @__PURE__ */ e($e, { children: r })
135
+ ] }) : r
136
136
  }
137
137
  );
138
138
  });
139
- Wo.displayName = "AccordionItem";
140
- const uo = f(function({ leftIcon: t, children: s, overStyled: c = !1, ...a }, n) {
141
- const l = N(a, c), d = l.className;
142
- return /* @__PURE__ */ o(
143
- no.Control,
139
+ Se.displayName = "AccordionItem";
140
+ const Ne = $(function({ leftIcon: t, children: n, overStyled: a = !1, ...r }, s) {
141
+ const c = C(r, a), l = c.className;
142
+ return /* @__PURE__ */ e(
143
+ ue.Control,
144
144
  {
145
- ref: n,
146
- className: d,
147
- icon: t ? /* @__PURE__ */ o("span", { className: Y.iconLeftWrapper, "aria-hidden": !0, children: t }) : void 0,
148
- ...l,
149
- children: s
145
+ ref: s,
146
+ className: l,
147
+ icon: t ? /* @__PURE__ */ e("span", { className: Z.iconLeftWrapper, "aria-hidden": !0, children: t }) : void 0,
148
+ ...c,
149
+ children: n
150
150
  }
151
151
  );
152
152
  });
153
- uo.displayName = "AccordionControl";
154
- const bo = f(function({ overStyled: t = !1, ...s }, c) {
155
- const a = N(s, t), n = a.className;
156
- return /* @__PURE__ */ o(
157
- no.Panel,
153
+ Ne.displayName = "AccordionControl";
154
+ const $e = $(function({ overStyled: t = !1, ...n }, a) {
155
+ const r = C(n, t), s = r.className;
156
+ return /* @__PURE__ */ e(
157
+ ue.Panel,
158
158
  {
159
- ref: c,
160
- className: n,
161
- ...a
159
+ ref: a,
160
+ className: s,
161
+ ...r
162
162
  }
163
163
  );
164
164
  });
165
- bo.displayName = "AccordionPanel";
166
- const ho = Po;
167
- ho.Item = Wo;
168
- ho.Control = uo;
169
- ho.Panel = bo;
170
- const Ne = "Avatar-module__root___fXu-J", ye = "Avatar-module__iconWrapper___ojly2", ve = "Avatar-module__textWrapper___zp-jD", Ce = "Avatar-module__image___ieqGp", ge = "Avatar-module__placeholder___IDW7-", G = {
171
- root: Ne,
172
- iconWrapper: ye,
173
- textWrapper: ve,
174
- image: Ce,
175
- placeholder: ge
176
- }, xe = f(function({
165
+ $e.displayName = "AccordionPanel";
166
+ const ve = Pe;
167
+ ve.Item = Se;
168
+ ve.Control = Ne;
169
+ ve.Panel = $e;
170
+ const Co = "Avatar-module__root___fXu-J", xo = "Avatar-module__iconWrapper___ojly2", go = "Avatar-module__textWrapper___zp-jD", Wo = "Avatar-module__image___ieqGp", ko = "Avatar-module__placeholder___IDW7-", M = {
171
+ root: Co,
172
+ iconWrapper: xo,
173
+ textWrapper: go,
174
+ image: Wo,
175
+ placeholder: ko
176
+ }, wo = $(function({
177
177
  size: t = "default",
178
- variant: s = "solid",
179
- icon: c,
180
- className: a,
181
- classNames: n,
182
- children: l,
183
- style: d,
184
- src: i,
185
- ...r
178
+ variant: n = "solid",
179
+ icon: a,
180
+ className: r,
181
+ classNames: s,
182
+ children: c,
183
+ style: l,
184
+ src: d,
185
+ ...i
186
186
  }, p) {
187
- const m = {
187
+ const u = {
188
188
  solid: "filled",
189
189
  outline: "outline",
190
190
  ghost: "transparent"
191
- }, u = {
191
+ }, y = {
192
192
  default: "md",
193
193
  small: "sm",
194
194
  large: "lg"
195
195
  };
196
- let _ = "text";
197
- i ? _ = "image" : c && (_ = "icon");
198
- const h = {
199
- root: G.root,
200
- image: G.image,
201
- placeholder: G.placeholder
196
+ let m = "text";
197
+ d ? m = "image" : a && (m = "icon");
198
+ const _ = {
199
+ root: M.root,
200
+ image: M.image,
201
+ placeholder: M.placeholder
202
202
  };
203
- if (n && typeof n == "object" && !Array.isArray(n)) {
204
- const b = n;
205
- h.root = b.root ? `${G.root} ${b.root}` : G.root, h.image = b.image ? `${G.image} ${b.image}` : G.image, h.placeholder = b.placeholder ? `${G.placeholder} ${b.placeholder}` : G.placeholder;
203
+ if (s && typeof s == "object" && !Array.isArray(s)) {
204
+ const h = s;
205
+ _.root = h.root ? `${M.root} ${h.root}` : M.root, _.image = h.image ? `${M.image} ${h.image}` : M.image, _.placeholder = h.placeholder ? `${M.placeholder} ${h.placeholder}` : M.placeholder;
206
206
  }
207
- return /* @__PURE__ */ o(
208
- Yo,
207
+ return /* @__PURE__ */ e(
208
+ He,
209
209
  {
210
210
  ref: p,
211
- className: a,
212
- classNames: h,
213
- variant: m[s],
214
- size: u[t],
215
- style: d,
216
- src: i,
217
- "data-variant": s,
211
+ className: r,
212
+ classNames: _,
213
+ variant: u[n],
214
+ size: y[t],
215
+ style: l,
216
+ src: d,
217
+ "data-variant": n,
218
218
  "data-size": t,
219
- "data-style": _,
220
- ...r,
221
- children: c != null ? /* @__PURE__ */ o("span", { className: G.iconWrapper, "aria-hidden": !0, children: c }) : l != null ? /* @__PURE__ */ o("span", { className: G.textWrapper, children: l }) : void 0
219
+ "data-style": m,
220
+ ...i,
221
+ children: a != null ? /* @__PURE__ */ e("span", { className: M.iconWrapper, "aria-hidden": !0, children: a }) : c != null ? /* @__PURE__ */ e("span", { className: M.textWrapper, children: c }) : void 0
222
222
  }
223
223
  );
224
224
  });
225
- xe.displayName = "Avatar";
226
- const we = "Badge-module__root___5osNT", q = {
227
- root: we
228
- }, Pe = f(function({ variant: t = "primary-color", overStyled: s = !1, ...c }, a) {
229
- const n = N(c, s), l = {
230
- root: q.root,
231
- section: q.section,
232
- label: q.label
233
- }, d = n.classNames;
234
- if (d && typeof d == "object" && !Array.isArray(d)) {
235
- const p = d;
236
- l.root = p.root ? `${q.root} ${p.root}` : q.root, l.section = p.section ?? q.section, l.label = p.label ?? q.label;
225
+ wo.displayName = "Avatar";
226
+ const Ao = "Badge-module__root___5osNT", D = {
227
+ root: Ao
228
+ }, Po = $(function({ variant: t = "primary-color", overStyled: n = !1, ...a }, r) {
229
+ const s = C(a, n), c = {
230
+ root: D.root,
231
+ section: D.section,
232
+ label: D.label
233
+ }, l = s.classNames;
234
+ if (l && typeof l == "object" && !Array.isArray(l)) {
235
+ const p = l;
236
+ c.root = p.root ? `${D.root} ${p.root}` : D.root, c.section = p.section ?? D.section, c.label = p.label ?? D.label;
237
237
  }
238
- const i = n.className, r = i ? `${q.root} ${i}` : q.root;
239
- return /* @__PURE__ */ o(
240
- Ho,
238
+ const d = s.className, i = d ? `${D.root} ${d}` : D.root;
239
+ return /* @__PURE__ */ e(
240
+ Ke,
241
241
  {
242
- ref: a,
242
+ ref: r,
243
243
  variant: "filled",
244
244
  "data-variant": t,
245
- ...n,
246
- className: r,
247
- classNames: l
245
+ ...s,
246
+ className: i,
247
+ classNames: c
248
248
  }
249
249
  );
250
250
  });
251
- Pe.displayName = "Badge";
252
- const We = "Breadcrumb-module__root___x-9ln", ke = "Breadcrumb-module__separator___qrUX-", K = {
253
- root: We,
254
- separator: ke
255
- }, Ae = f(
256
- function({ overStyled: t = !1, separator: s = ">", ...c }, a) {
257
- const n = N(
258
- { separator: s, ...c },
251
+ Po.displayName = "Badge";
252
+ const So = "Breadcrumb-module__root___x-9ln", Oo = "Breadcrumb-module__separator___qrUX-", K = {
253
+ root: So,
254
+ separator: Oo
255
+ }, Ro = $(
256
+ function({ overStyled: t = !1, separator: n = ">", ...a }, r) {
257
+ const s = C(
258
+ { separator: n, ...a },
259
259
  t
260
- ), l = {
260
+ ), c = {
261
261
  root: K.root,
262
262
  separator: K.separator
263
- }, d = n.classNames;
264
- if (d && typeof d == "object" && !Array.isArray(d)) {
265
- const p = d;
266
- l.root = p.root ? `${K.root} ${p.root}` : K.root, l.separator = p.separator ? `${K.separator} ${p.separator}` : K.separator;
263
+ }, l = s.classNames;
264
+ if (l && typeof l == "object" && !Array.isArray(l)) {
265
+ const p = l;
266
+ c.root = p.root ? `${K.root} ${p.root}` : K.root, c.separator = p.separator ? `${K.separator} ${p.separator}` : K.separator;
267
267
  }
268
- const i = n.className, r = i ? `${K.root} ${i}` : K.root;
269
- return /* @__PURE__ */ o(
270
- Ko,
268
+ const d = s.className, i = d ? `${K.root} ${d}` : K.root;
269
+ return /* @__PURE__ */ e(
270
+ Ue,
271
271
  {
272
- ref: a,
273
- ...n,
274
- className: r,
275
- classNames: l
272
+ ref: r,
273
+ ...s,
274
+ className: i,
275
+ classNames: c
276
276
  }
277
277
  );
278
278
  }
279
279
  );
280
- Ae.displayName = "Breadcrumb";
281
- const Re = "Button-module__root___Q2R8-", Se = "Button-module__label___UJ3Zt", Te = "Button-module__labelText___rFV5p", ze = "Button-module__iconWrapper___uEKPa", Ie = "Button-module__section___f2mKr", M = {
282
- root: Re,
283
- label: Se,
284
- labelText: Te,
285
- iconWrapper: ze,
286
- section: Ie
280
+ Ro.displayName = "Breadcrumb";
281
+ const To = "Button-module__root___Q2R8-", Lo = "Button-module__label___UJ3Zt", Io = "Button-module__labelText___rFV5p", zo = "Button-module__iconWrapper___uEKPa", Fo = "Button-module__section___f2mKr", q = {
282
+ root: To,
283
+ label: Lo,
284
+ labelText: Io,
285
+ iconWrapper: zo,
286
+ section: Fo
287
287
  };
288
- function Fe(e) {
289
- return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
288
+ function Eo(o) {
289
+ return o == null || o === "" ? !1 : typeof o == "string" ? o.trim() !== "" : !0;
290
290
  }
291
- const Le = f(
291
+ const Bo = $(
292
292
  function({
293
293
  variant: t = "solid",
294
- size: s = "default",
295
- icon: c,
296
- children: a,
297
- overStyled: n = !1,
298
- ...l
299
- }, d) {
300
- const i = {
294
+ size: n = "default",
295
+ icon: a,
296
+ children: r,
297
+ overStyled: s = !1,
298
+ ...c
299
+ }, l) {
300
+ const d = {
301
301
  solid: "filled",
302
302
  outline: "outline",
303
303
  text: "subtle"
304
- }, r = {
304
+ }, i = {
305
305
  default: "md",
306
306
  small: "sm"
307
- }, p = N(l, n), m = p;
308
- delete m.fullWidth;
309
- const u = !!c || !!m.leftSection, _ = !!m.rightSection, h = (u || _) && !Fe(a);
310
- typeof process < "u" && process.env.NODE_ENV !== "production" && h && !m["aria-label"] && console.warn(
307
+ }, p = C(c, s), u = p;
308
+ delete u.fullWidth;
309
+ const y = !!a || !!u.leftSection, m = !!u.rightSection, _ = (y || m) && !Eo(r);
310
+ typeof process < "u" && process.env.NODE_ENV !== "production" && _ && !u["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 b = {
314
- root: M.root,
315
- section: M.section,
316
- label: M.label
317
- }, C = m.classNames;
318
- if (C && typeof C == "object" && !Array.isArray(C)) {
319
- const x = C;
320
- b.root = x.root ? `${M.root} ${x.root}` : M.root, b.section = x.section ?? M.section, b.label = x.label ?? M.label;
313
+ const h = {
314
+ root: q.root,
315
+ section: q.section,
316
+ label: q.label
317
+ }, v = u.classNames;
318
+ if (v && typeof v == "object" && !Array.isArray(v)) {
319
+ const b = v;
320
+ h.root = b.root ? `${q.root} ${b.root}` : q.root, h.section = b.section ?? q.section, h.label = b.label ?? q.label;
321
321
  }
322
- const $ = m.className, g = $ ? `${M.root} ${$}` : M.root;
323
- return /* @__PURE__ */ o(
324
- Uo,
322
+ const f = u.className, x = f ? `${q.root} ${f}` : q.root;
323
+ return /* @__PURE__ */ e(
324
+ Qe,
325
325
  {
326
- ref: d,
327
- className: g,
328
- classNames: b,
329
- variant: i[t],
330
- size: r[s],
331
- leftSection: c != null ? /* @__PURE__ */ o("span", { className: M.iconWrapper, "aria-hidden": !0, children: c }) : void 0,
326
+ ref: l,
327
+ className: x,
328
+ classNames: h,
329
+ variant: d[t],
330
+ size: i[n],
331
+ leftSection: a != null ? /* @__PURE__ */ e("span", { className: q.iconWrapper, "aria-hidden": !0, children: a }) : void 0,
332
332
  "data-variant": t,
333
- "data-size": s,
334
- ...h ? { "data-icon-only": "" } : {},
333
+ "data-size": n,
334
+ ..._ ? { "data-icon-only": "" } : {},
335
335
  ...p,
336
- children: /* @__PURE__ */ o("span", { className: M.labelText, children: a })
336
+ children: /* @__PURE__ */ e("span", { className: q.labelText, children: r })
337
337
  }
338
338
  );
339
339
  }
340
340
  );
341
- Le.displayName = "Button";
342
- const Be = "Card-module__root___c9KvZ", je = "Card-module__header___PTXf2", Ee = "Card-module__footer___Mu-JC", Ge = "Card-module__section___BRT8H", Me = "Card-module__content___oFIQa", H = {
343
- root: Be,
344
- header: je,
345
- footer: Ee,
346
- section: Ge,
347
- content: Me
348
- }, ko = f(function({ overStyled: t = !1, ...s }, c) {
349
- const a = N(s, t), n = {
341
+ Bo.displayName = "Button";
342
+ const jo = "Card-module__root___c9KvZ", Vo = "Card-module__header___PTXf2", Go = "Card-module__footer___Mu-JC", Mo = "Card-module__section___BRT8H", qo = "Card-module__content___oFIQa", H = {
343
+ root: jo,
344
+ header: Vo,
345
+ footer: Go,
346
+ section: Mo,
347
+ content: qo
348
+ }, Oe = $(function({ overStyled: t = !1, ...n }, a) {
349
+ const r = C(n, t), s = {
350
350
  root: H.root
351
- }, l = a.classNames;
352
- if (l && typeof l == "object" && !Array.isArray(l)) {
353
- const i = l;
354
- Object.keys(i).forEach((r) => {
355
- n[r] ? n[r] = `${n[r]} ${i[r]}` : n[r] = i[r];
351
+ }, c = r.classNames;
352
+ if (c && typeof c == "object" && !Array.isArray(c)) {
353
+ const d = c;
354
+ Object.keys(d).forEach((i) => {
355
+ s[i] ? s[i] = `${s[i]} ${d[i]}` : s[i] = d[i];
356
356
  });
357
357
  }
358
- const d = a.className;
359
- return /* @__PURE__ */ o(
360
- co,
358
+ const l = r.className;
359
+ return /* @__PURE__ */ e(
360
+ _e,
361
361
  {
362
- ref: c,
363
- className: d,
364
- classNames: n,
365
- ...a
362
+ ref: a,
363
+ className: l,
364
+ classNames: s,
365
+ ...r
366
366
  }
367
367
  );
368
368
  });
369
- ko.displayName = "Card";
370
- const Ao = f(
371
- function({ overStyled: t = !1, ...s }, c) {
372
- const a = N(s, t), n = a.className;
373
- return /* @__PURE__ */ o(
374
- co.Section,
369
+ Oe.displayName = "Card";
370
+ const Re = $(
371
+ function({ overStyled: t = !1, ...n }, a) {
372
+ const r = C(n, t), s = r.className;
373
+ return /* @__PURE__ */ e(
374
+ _e.Section,
375
375
  {
376
- ref: c,
377
- className: n ? `${H.section} ${n}` : H.section,
378
- ...a
376
+ ref: a,
377
+ className: s ? `${H.section} ${s}` : H.section,
378
+ ...r
379
379
  }
380
380
  );
381
381
  }
382
382
  );
383
- Ao.displayName = "CardSection";
384
- const Ro = f(
385
- function({ overStyled: t = !1, ...s }, c) {
386
- const a = N(s, t), n = a.className;
387
- return /* @__PURE__ */ o(
388
- co.Section,
383
+ Re.displayName = "CardSection";
384
+ const Te = $(
385
+ function({ overStyled: t = !1, ...n }, a) {
386
+ const r = C(n, t), s = r.className;
387
+ return /* @__PURE__ */ e(
388
+ _e.Section,
389
389
  {
390
- ref: c,
391
- className: n ? `${H.header} ${n}` : H.header,
392
- ...a
390
+ ref: a,
391
+ className: s ? `${H.header} ${s}` : H.header,
392
+ ...r
393
393
  }
394
394
  );
395
395
  }
396
396
  );
397
- Ro.displayName = "CardHeader";
398
- const So = f(
399
- function({ overStyled: t = !1, ...s }, c) {
400
- const a = N(s, t), n = a.className;
401
- return /* @__PURE__ */ o(
402
- co.Section,
397
+ Te.displayName = "CardHeader";
398
+ const Le = $(
399
+ function({ overStyled: t = !1, ...n }, a) {
400
+ const r = C(n, t), s = r.className;
401
+ return /* @__PURE__ */ e(
402
+ _e.Section,
403
403
  {
404
- ref: c,
405
- className: n ? `${H.footer} ${n}` : H.footer,
406
- ...a
404
+ ref: a,
405
+ className: s ? `${H.footer} ${s}` : H.footer,
406
+ ...r
407
407
  }
408
408
  );
409
409
  }
410
410
  );
411
- So.displayName = "CardFooter";
412
- const To = f(
413
- function({ overStyled: t = !1, ...s }, c) {
414
- const a = N(s, t), n = a.className;
415
- return /* @__PURE__ */ o(
411
+ Le.displayName = "CardFooter";
412
+ const Ie = $(
413
+ function({ overStyled: t = !1, ...n }, a) {
414
+ const r = C(n, t), s = r.className;
415
+ return /* @__PURE__ */ e(
416
416
  "div",
417
417
  {
418
- ref: c,
419
- className: n ? `${H.content} ${n}` : H.content,
420
- ...a
418
+ ref: a,
419
+ className: s ? `${H.content} ${s}` : H.content,
420
+ ...r
421
421
  }
422
422
  );
423
423
  }
424
424
  );
425
- To.displayName = "CardContent";
426
- const io = ko;
427
- io.Section = Ao;
428
- io.Header = Ro;
429
- io.Footer = So;
430
- io.Content = To;
431
- const De = "Label-module__root___e6HXZ", Ve = "Label-module__labelText___rieFR", qe = "Label-module__required___Ggrzc", Oe = "Label-module__optionalText___Y2yun", Ye = "Label-module__actionAreaWrapper___ELoZK", He = "Label-module__editIconWrapper___NG2xW", E = {
432
- root: De,
433
- labelText: Ve,
434
- required: qe,
435
- optionalText: Oe,
436
- actionAreaWrapper: Ye,
437
- editIconWrapper: He
438
- }, zo = f(function({
439
- formLayout: t = "stacked",
440
- labelSize: s = "default",
441
- labelAlignment: c,
425
+ Ie.displayName = "CardContent";
426
+ const be = Oe;
427
+ be.Section = Re;
428
+ be.Header = Te;
429
+ be.Footer = Le;
430
+ be.Content = Ie;
431
+ const Do = "Label-module__root___e6HXZ", Yo = "Label-module__labelText___rieFR", Zo = "Label-module__required___Ggrzc", Ho = "Label-module__optionalText___Y2yun", Ko = "Label-module__actionAreaWrapper___ELoZK", Uo = "Label-module__editIconWrapper___NG2xW", G = {
432
+ root: Do,
433
+ labelText: Yo,
434
+ required: Zo,
435
+ optionalText: Ho,
436
+ actionAreaWrapper: Ko,
437
+ editIconWrapper: Uo
438
+ }, ze = $(function({
439
+ labelSize: t = "default",
440
+ labelAlignment: n,
442
441
  required: a = !1,
443
- labelOptionalText: n,
444
- labelWithEditIcon: l,
445
- labelActionArea: d,
446
- onLabelEditClick: i,
447
- children: r,
448
- overStyled: p = !1,
449
- ...m
442
+ labelOptionalText: r,
443
+ labelWithEditIcon: s,
444
+ labelActionArea: c,
445
+ onLabelEditClick: l,
446
+ children: d,
447
+ overStyled: i = !1,
448
+ ...p
450
449
  }, u) {
451
- const _ = c || (t === "side-by-side" ? "right" : "left");
452
- let h;
453
- a || (n === !0 ? h = "optional" : n && (h = n));
454
- const b = N(m, p), C = b, $ = {
455
- label: E.root,
456
- required: E.required
457
- }, g = C.classNames;
458
- if (g && typeof g == "object" && !Array.isArray(g)) {
459
- const k = g;
460
- $.label = k.label ? `${E.root} ${k.label}` : E.root, $.required = k.required ? `${E.required} ${k.required}` : E.required;
450
+ const y = n || "left";
451
+ let m;
452
+ a || (r === !0 ? m = "optional" : r && (m = r));
453
+ const _ = C(p, i), h = _, v = {
454
+ label: G.root,
455
+ required: G.required
456
+ }, f = h.classNames;
457
+ if (f && typeof f == "object" && !Array.isArray(f)) {
458
+ const k = f;
459
+ v.label = k.label ? `${G.root} ${k.label}` : G.root, v.required = k.required ? `${G.required} ${k.required}` : G.required;
461
460
  }
462
- const x = C.className, W = x ? `${E.root} ${x}` : E.root;
463
- return /* @__PURE__ */ D(
464
- vo.Label,
461
+ const x = h.className, b = x ? `${G.root} ${x}` : G.root;
462
+ return /* @__PURE__ */ B(
463
+ We.Label,
465
464
  {
466
465
  ref: u,
467
- className: W,
468
- classNames: $,
469
- "data-layout": t,
470
- "data-size": s,
471
- "data-alignment": _,
472
- required: a && !l,
473
- ...b,
466
+ className: b,
467
+ classNames: v,
468
+ "data-size": t,
469
+ "data-alignment": y,
470
+ required: a && !s,
471
+ ..._,
474
472
  children: [
475
- /* @__PURE__ */ o("span", { className: E.labelText, children: r }),
476
- h && /* @__PURE__ */ o("span", { className: E.optionalText, children: typeof h == "string" ? `(${h})` : h }),
477
- d ? /* @__PURE__ */ o("span", { className: E.actionAreaWrapper, children: d }) : l ? /* @__PURE__ */ o(
473
+ /* @__PURE__ */ e("span", { className: G.labelText, children: d }),
474
+ m && /* @__PURE__ */ e("span", { className: G.optionalText, children: typeof m == "string" ? `(${m})` : m }),
475
+ c ? /* @__PURE__ */ e("span", { className: G.actionAreaWrapper, children: c }) : s ? /* @__PURE__ */ e(
478
476
  "button",
479
477
  {
480
478
  type: "button",
481
- className: E.editIconWrapper,
479
+ className: G.editIconWrapper,
482
480
  "data-replaces-asterisk": a ? "true" : void 0,
483
- onClick: i,
481
+ onClick: l,
484
482
  "aria-label": "Edit",
485
- children: /* @__PURE__ */ o(
483
+ children: /* @__PURE__ */ e(
486
484
  "svg",
487
485
  {
488
486
  width: "16",
@@ -490,7 +488,7 @@ const De = "Label-module__root___e6HXZ", Ve = "Label-module__labelText___rieFR",
490
488
  viewBox: "0 0 16 16",
491
489
  fill: "none",
492
490
  xmlns: "http://www.w3.org/2000/svg",
493
- children: /* @__PURE__ */ o(
491
+ children: /* @__PURE__ */ e(
494
492
  "path",
495
493
  {
496
494
  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 +505,48 @@ const De = "Label-module__root___e6HXZ", Ve = "Label-module__labelText___rieFR",
507
505
  }
508
506
  );
509
507
  });
510
- zo.displayName = "Label";
511
- const Ke = "AssistiveElement-module__root___WhQ43", Ue = "AssistiveElement-module__textWrapper___sfy5E", Ze = "AssistiveElement-module__iconWrapper___gObRF", po = {
512
- root: Ke,
513
- textWrapper: Ue,
514
- iconWrapper: Ze
515
- }, Qe = () => /* @__PURE__ */ D(
508
+ ze.displayName = "Label";
509
+ const Qo = "FormControlLayout-module__root___yNDhZ", Xo = "FormControlLayout-module__leftSection___GBM1r", Jo = "FormControlLayout-module__rightSection___bcL4v", ie = {
510
+ root: Qo,
511
+ leftSection: Xo,
512
+ rightSection: Jo
513
+ }, U = $(function({
514
+ formLayout: t = "stacked",
515
+ labelSize: n = "default",
516
+ controlMaxWidth: a,
517
+ controlMinWidth: r,
518
+ leftSection: s,
519
+ children: c,
520
+ className: l,
521
+ style: d,
522
+ ...i
523
+ }, p) {
524
+ const u = l ? `${ie.root} ${l}` : ie.root, m = s != null || t === "side-by-side";
525
+ return /* @__PURE__ */ B(
526
+ "div",
527
+ {
528
+ ref: p,
529
+ className: u,
530
+ "data-form-layout": t,
531
+ style: {
532
+ ...d,
533
+ ...a ? { "--form-control-max-width": a } : {},
534
+ ...r ? { "--form-control-min-width": r } : {}
535
+ },
536
+ ...i,
537
+ children: [
538
+ m && /* @__PURE__ */ e("div", { className: ie.leftSection, "data-size": n, children: s }),
539
+ /* @__PURE__ */ e("div", { className: ie.rightSection, children: c })
540
+ ]
541
+ }
542
+ );
543
+ });
544
+ U.displayName = "FormControlLayout";
545
+ const et = "AssistiveElement-module__root___WhQ43", ot = "AssistiveElement-module__textWrapper___sfy5E", tt = "AssistiveElement-module__iconWrapper___gObRF", ye = {
546
+ root: et,
547
+ textWrapper: ot,
548
+ iconWrapper: tt
549
+ }, rt = () => /* @__PURE__ */ B(
516
550
  "svg",
517
551
  {
518
552
  xmlns: "http://www.w3.org/2000/svg",
@@ -523,12 +557,12 @@ const Ke = "AssistiveElement-module__root___WhQ43", Ue = "AssistiveElement-modul
523
557
  strokeLinecap: "round",
524
558
  strokeLinejoin: "round",
525
559
  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" })
560
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
561
+ /* @__PURE__ */ e("path", { d: "M12 16v-4" }),
562
+ /* @__PURE__ */ e("path", { d: "M12 8h.01" })
529
563
  ]
530
564
  }
531
- ), Xe = () => /* @__PURE__ */ D(
565
+ ), at = () => /* @__PURE__ */ B(
532
566
  "svg",
533
567
  {
534
568
  xmlns: "http://www.w3.org/2000/svg",
@@ -539,233 +573,362 @@ const Ke = "AssistiveElement-module__root___WhQ43", Ue = "AssistiveElement-modul
539
573
  strokeLinecap: "round",
540
574
  strokeLinejoin: "round",
541
575
  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" })
576
+ /* @__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" }),
577
+ /* @__PURE__ */ e("path", { d: "M12 9v4" }),
578
+ /* @__PURE__ */ e("path", { d: "M12 17h.01" })
545
579
  ]
546
580
  }
547
- ), mo = f(function({
581
+ ), he = $(function({
548
582
  assistiveVariant: t = "help",
549
- assistiveWithIcon: s = !0,
550
- children: c,
551
- className: a,
552
- overStyled: n = !1,
553
- ...l
554
- }, d) {
555
- const r = N(l, n), p = po.root, m = a ? `${p} ${a}` : p, u = t === "error" ? Xe : Qe;
556
- return /* @__PURE__ */ D(
583
+ assistiveWithIcon: n = !0,
584
+ children: a,
585
+ className: r,
586
+ overStyled: s = !1,
587
+ ...c
588
+ }, l) {
589
+ const i = C(c, s), p = ye.root, u = r ? `${p} ${r}` : p, y = t === "error" ? at : rt;
590
+ return /* @__PURE__ */ B(
557
591
  "div",
558
592
  {
559
- ref: d,
560
- className: m,
593
+ ref: l,
594
+ className: u,
561
595
  "data-variant": t,
562
- style: r.style,
563
- ...r,
596
+ style: i.style,
597
+ ...i,
564
598
  children: [
565
- s && /* @__PURE__ */ o("span", { className: po.iconWrapper, children: /* @__PURE__ */ o(u, {}) }),
566
- /* @__PURE__ */ o("span", { className: po.textWrapper, children: c })
599
+ n && /* @__PURE__ */ e("span", { className: ye.iconWrapper, children: /* @__PURE__ */ e(y, {}) }),
600
+ /* @__PURE__ */ e("span", { className: ye.textWrapper, children: a })
567
601
  ]
568
602
  }
569
603
  );
570
604
  });
571
- mo.displayName = "AssistiveElement";
572
- const Je = "FormControlWrapper-module__root___c-UHo", ot = "FormControlWrapper-module__labelSection___hxSY4", et = "FormControlWrapper-module__inputSection___HenXk", _o = {
573
- root: Je,
574
- labelSection: ot,
575
- inputSection: et
576
- }, V = f(function({
605
+ he.displayName = "AssistiveElement";
606
+ const st = "FormControlWrapper-module__inputSection___HenXk", xe = {
607
+ inputSection: st
608
+ }, de = $(function({
577
609
  formLayout: t,
578
- labelSize: s,
579
- labelAlignment: c,
580
- labelOptionalText: a,
581
- labelWithEditIcon: n,
582
- labelActionArea: l,
583
- onLabelEditClick: d,
584
- label: i,
585
- description: r,
610
+ labelSize: n,
611
+ labelAlignment: a,
612
+ labelOptionalText: r,
613
+ labelWithEditIcon: s,
614
+ labelActionArea: c,
615
+ onLabelEditClick: l,
616
+ label: d,
617
+ description: i,
586
618
  assistiveText: p,
587
- assistiveWithIcon: m = !0,
588
- controlMaxWidth: u,
589
- controlMinWidth: _,
590
- error: h,
591
- required: b,
592
- withAsterisk: C,
593
- id: $,
594
- children: g,
595
- className: x,
596
- overStyled: W = !1,
597
- labelElement: k,
619
+ assistiveWithIcon: u = !0,
620
+ controlMaxWidth: y,
621
+ controlMinWidth: m,
622
+ error: _,
623
+ required: h,
624
+ withAsterisk: v,
625
+ id: f,
626
+ children: x,
627
+ className: b,
628
+ overStyled: k = !1,
629
+ labelElement: N,
598
630
  // Extracted safely preventing bleeding into HTML domains
599
631
  ...z
600
- }, S) {
601
- const I = qo(), y = $ || `recursica-fc-${I}`, T = p || r, R = T ? `${y}-assistive` : void 0, A = h ? `${y}-error` : void 0, X = N(z, W), B = x || X.className, $o = _o.root, Do = B ? `${$o} ${B}` : $o, Vo = j.isValidElement(g) ? j.cloneElement(
602
- g,
632
+ }, T) {
633
+ const P = Ye(), L = f || `recursica-fc-${P}`, I = p || i, S = I ? `${L}-assistive` : void 0, O = _ ? `${L}-error` : void 0, R = C(z, k), Q = b || R.className, le = xe.root, V = Q ? `${le} ${Q}` : le, qe = j.isValidElement(x) ? j.cloneElement(
634
+ x,
603
635
  {
604
- ...T && !g.props["aria-describedby"] ? { "aria-describedby": R } : {},
605
- ...h && !g.props["aria-errormessage"] ? { "aria-errormessage": A } : {}
636
+ ...I && !x.props["aria-describedby"] ? { "aria-describedby": S } : {},
637
+ ..._ && !x.props["aria-errormessage"] ? { "aria-errormessage": O } : {}
606
638
  }
607
- ) : g;
608
- return /* @__PURE__ */ D(
609
- Co,
639
+ ) : x, De = d ? /* @__PURE__ */ e(
640
+ ze,
610
641
  {
611
- ref: S,
612
- className: Do,
613
- "data-form-layout": t || "stacked",
614
- "data-form-alignment": c || "left",
615
- style: {
616
- ...X.style || {},
617
- ...u ? { "--form-control-max-width": u } : {},
618
- ..._ ? { "--form-control-min-width": _ } : {}
619
- },
620
- ...X,
621
- children: [
622
- i && /* @__PURE__ */ o("div", { className: _o.labelSection, children: /* @__PURE__ */ o(
623
- zo,
642
+ id: L,
643
+ labelAlignment: a,
644
+ labelOptionalText: r,
645
+ labelWithEditIcon: s,
646
+ labelActionArea: c,
647
+ onLabelEditClick: l,
648
+ required: v ?? h,
649
+ ...N === "div" ? { as: "div" } : {},
650
+ children: d
651
+ }
652
+ ) : void 0;
653
+ return /* @__PURE__ */ e(
654
+ U,
655
+ {
656
+ ref: T,
657
+ className: V,
658
+ formLayout: t,
659
+ labelSize: n,
660
+ controlMaxWidth: y,
661
+ controlMinWidth: m,
662
+ leftSection: De,
663
+ ...R,
664
+ children: /* @__PURE__ */ B("div", { className: xe.inputSection, children: [
665
+ qe,
666
+ _ && /* @__PURE__ */ e(
667
+ he,
624
668
  {
625
- id: y,
626
- formLayout: t,
627
- labelSize: s,
628
- labelAlignment: c,
629
- labelOptionalText: a,
630
- labelWithEditIcon: n,
631
- labelActionArea: l,
632
- onLabelEditClick: d,
633
- required: C ?? b,
634
- ...k === "div" ? { as: "div" } : {},
635
- children: i
669
+ id: O,
670
+ assistiveVariant: "error",
671
+ assistiveWithIcon: u,
672
+ children: _
636
673
  }
637
- ) }),
638
- /* @__PURE__ */ D("div", { className: _o.inputSection, children: [
639
- Vo,
640
- h && /* @__PURE__ */ o(
641
- mo,
642
- {
643
- id: A,
644
- assistiveVariant: "error",
645
- assistiveWithIcon: m,
646
- children: h
647
- }
648
- ),
649
- !h && T && /* @__PURE__ */ o(
650
- mo,
651
- {
652
- id: R,
653
- assistiveVariant: "help",
654
- assistiveWithIcon: m,
655
- children: T
656
- }
657
- )
658
- ] })
659
- ]
674
+ ),
675
+ !_ && I && /* @__PURE__ */ e(
676
+ he,
677
+ {
678
+ id: S,
679
+ assistiveVariant: "help",
680
+ assistiveWithIcon: u,
681
+ children: I
682
+ }
683
+ )
684
+ ] })
660
685
  }
661
686
  );
662
687
  });
663
- V.displayName = "FormControlWrapper";
664
- const tt = "Checkbox-module__groupRoot___cBS0o", rt = "Checkbox-module__root___mY3qk", st = "Checkbox-module__body___5yC7q", at = "Checkbox-module__inner___rTke4", nt = "Checkbox-module__input___2kt-h", ct = "Checkbox-module__icon___-O7i6", it = "Checkbox-module__labelWrapper___GpZkr", lt = "Checkbox-module__label___cwRtI", w = {
665
- groupRoot: tt,
666
- root: rt,
667
- body: st,
668
- inner: at,
669
- input: nt,
670
- icon: ct,
671
- labelWrapper: it,
672
- label: lt
673
- }, Io = f(
674
- function({
675
- overStyled: t = !1,
676
- formLayout: s = "stacked",
677
- // Label Wrappers
678
- labelSize: c,
679
- labelAlignment: a,
680
- labelOptionalText: n,
681
- labelWithEditIcon: l,
682
- onLabelEditClick: d,
683
- // Base Mantine Extracted Attributes
684
- label: i,
685
- description: r,
686
- assistiveText: p,
687
- assistiveWithIcon: m,
688
- error: u,
689
- required: _,
690
- withAsterisk: h,
691
- id: b,
692
- className: C,
693
- style: $,
694
- children: g,
695
- readOnly: x,
696
- readOnlyComponent: W,
697
- ...k
698
- }, z) {
699
- const S = N(k, t), I = S;
700
- return delete I.size, x && W ? /* @__PURE__ */ o(
701
- V,
688
+ de.displayName = "FormControlWrapper";
689
+ const nt = "_root_1qhn7_3", lt = "_contents_1qhn7_18", J = {
690
+ root: nt,
691
+ contents: lt
692
+ }, it = $(function({ layer: o, contentsOnly: t, children: n, className: a, style: r, ...s }, c) {
693
+ const l = t ? a ? `${J.root} ${J.contents} ${a}` : `${J.root} ${J.contents}` : a ? `${J.root} ${a}` : J.root;
694
+ return /* @__PURE__ */ e(
695
+ "div",
696
+ {
697
+ ref: c,
698
+ className: l,
699
+ style: r,
700
+ ...t ? {} : { "data-recursica-layer": String(o) },
701
+ ...s,
702
+ children: n
703
+ }
704
+ );
705
+ });
706
+ it.displayName = "Layer";
707
+ const pe = ({ emptyText: o = "N/A" }) => /* @__PURE__ */ e(j.Fragment, { children: o });
708
+ pe.displayName = "EmptyValueRenderer";
709
+ pe.check = (o) => o == null || o === "" || Array.isArray(o) && o.length === 0;
710
+ const ge = "data-recursica-theme";
711
+ function Cr({
712
+ children: o,
713
+ theme: t = "light"
714
+ }) {
715
+ return Ze(() => {
716
+ const n = document.documentElement;
717
+ return n.setAttribute(ge, t), () => {
718
+ n.removeAttribute(ge);
719
+ };
720
+ }, [t]), /* @__PURE__ */ e(ne, { children: o });
721
+ }
722
+ const ct = "ReadOnlyField-module__textField___qKn25", me = {
723
+ textField: ct
724
+ }, ce = ({
725
+ value: o,
726
+ overStyled: t = !1,
727
+ ...n
728
+ }) => {
729
+ const a = C(n, t), r = a.className;
730
+ return /* @__PURE__ */ e(
731
+ fe,
732
+ {
733
+ component: "p",
734
+ className: r ? `${me.textField} ${r}` : me.textField,
735
+ ...a,
736
+ children: o != null ? j.isValidElement(o) ? o : Array.isArray(o) ? o.join(", ") : String(o) : ""
737
+ }
738
+ );
739
+ };
740
+ ce.displayName = "ReadOnlyTextField";
741
+ const Fe = $(
742
+ function({ value: t, type: n = "text", emptyValueComponent: a, overStyled: r = !1, ...s }, c) {
743
+ let l = null;
744
+ const d = C(s, r), i = a || pe, u = (i.check ? i.check(t) : pe.check(t)) ? /* @__PURE__ */ e(i, { value: t }) : t;
745
+ switch (n) {
746
+ case "boolean":
747
+ l = /* @__PURE__ */ e(
748
+ ce,
749
+ {
750
+ value: t === !0 ? "True" : t === !1 ? "False" : u,
751
+ overStyled: r
752
+ }
753
+ );
754
+ break;
755
+ case "switch":
756
+ l = /* @__PURE__ */ e(
757
+ ce,
758
+ {
759
+ value: t === !0 ? "On" : t === !1 ? "Off" : u,
760
+ overStyled: r
761
+ }
762
+ );
763
+ break;
764
+ case "text":
765
+ default:
766
+ l = /* @__PURE__ */ e(
767
+ ce,
768
+ {
769
+ value: u,
770
+ overStyled: r
771
+ }
772
+ );
773
+ break;
774
+ }
775
+ return /* @__PURE__ */ e(
776
+ de,
702
777
  {
703
- className: C,
704
- style: $,
705
- controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
706
- controlMinWidth: void 0,
707
- overStyled: t,
708
- labelElement: "div",
709
- formLayout: s,
710
- labelSize: c,
711
- labelAlignment: a,
712
- labelOptionalText: n,
713
- labelWithEditIcon: l,
714
- onLabelEditClick: d,
715
- label: i,
716
- description: r,
717
- assistiveText: p,
718
- assistiveWithIcon: m,
719
- error: u,
720
- required: _,
721
- withAsterisk: h,
722
- id: b,
723
- children: W
778
+ ref: c,
779
+ overStyled: r,
780
+ ...d,
781
+ children: l
724
782
  }
725
- ) : /* @__PURE__ */ o(
726
- V,
783
+ );
784
+ }
785
+ );
786
+ Fe.displayName = "ReadOnlyField";
787
+ const X = $(function({
788
+ readOnly: t,
789
+ readOnlyComponent: n,
790
+ readOnlyType: a = "text",
791
+ readOnlyValue: r,
792
+ readOnlyNativeProps: s,
793
+ emptyValueComponent: c,
794
+ activeComponent: l,
795
+ overStyled: d,
796
+ onLabelEditClick: i,
797
+ ...p
798
+ }, u) {
799
+ return t ? n ? /* @__PURE__ */ e(
800
+ de,
801
+ {
802
+ ref: u,
803
+ ...p,
804
+ onLabelEditClick: i,
805
+ overStyled: d,
806
+ children: /* @__PURE__ */ e(n, { ...s })
807
+ }
808
+ ) : /* @__PURE__ */ e(
809
+ Fe,
810
+ {
811
+ ref: u,
812
+ type: a,
813
+ value: r,
814
+ emptyValueComponent: c,
815
+ onLabelEditClick: i,
816
+ overStyled: d,
817
+ ...p
818
+ }
819
+ ) : /* @__PURE__ */ e(
820
+ de,
821
+ {
822
+ ref: u,
823
+ ...p,
824
+ onLabelEditClick: i,
825
+ overStyled: d,
826
+ children: l
827
+ }
828
+ );
829
+ });
830
+ X.displayName = "WithReadOnlyWrapper";
831
+ const dt = "Checkbox-module__groupRoot___cBS0o", pt = "Checkbox-module__root___mY3qk", mt = "Checkbox-module__body___5yC7q", ut = "Checkbox-module__inner___rTke4", _t = "Checkbox-module__input___2kt-h", bt = "Checkbox-module__icon___-O7i6", yt = "Checkbox-module__labelWrapper___GpZkr", ht = "Checkbox-module__label___cwRtI", w = {
832
+ groupRoot: dt,
833
+ root: pt,
834
+ body: mt,
835
+ inner: ut,
836
+ input: _t,
837
+ icon: bt,
838
+ labelWrapper: yt,
839
+ label: ht
840
+ }, Ee = $(
841
+ function(t, n) {
842
+ const {
843
+ overStyled: a = !1,
844
+ formLayout: r = "stacked",
845
+ // Label Wrappers
846
+ labelSize: s,
847
+ labelAlignment: c,
848
+ labelOptionalText: l,
849
+ labelWithEditIcon: d,
850
+ onLabelEditClick: i,
851
+ // Base Mantine Extracted Attributes
852
+ label: p,
853
+ description: u,
854
+ assistiveText: y,
855
+ assistiveWithIcon: m,
856
+ error: _,
857
+ required: h,
858
+ withAsterisk: v,
859
+ id: f,
860
+ className: x,
861
+ style: b,
862
+ children: k,
863
+ readOnly: N,
864
+ readOnlyComponent: z,
865
+ emptyValueComponent: T,
866
+ value: P,
867
+ defaultValue: L,
868
+ ...I
869
+ } = t, S = C(I, a), O = S;
870
+ return delete O.size, /* @__PURE__ */ e(
871
+ X,
727
872
  {
728
- className: C,
729
- style: $,
873
+ className: x,
874
+ style: b,
730
875
  controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
731
876
  controlMinWidth: void 0,
732
- overStyled: t,
877
+ overStyled: a,
733
878
  labelElement: "div",
734
- formLayout: s,
735
- labelSize: c,
736
- labelAlignment: a,
737
- labelOptionalText: n,
738
- labelWithEditIcon: l,
739
- onLabelEditClick: d,
740
- label: i,
741
- description: r,
742
- assistiveText: p,
879
+ formLayout: r,
880
+ labelSize: s,
881
+ labelAlignment: c,
882
+ labelOptionalText: l,
883
+ labelWithEditIcon: d,
884
+ onLabelEditClick: i,
885
+ label: p,
886
+ description: u,
887
+ assistiveText: y,
743
888
  assistiveWithIcon: m,
744
- error: u,
745
- required: _,
746
- withAsterisk: h,
747
- id: b,
748
- children: /* @__PURE__ */ o(
749
- go.Group,
889
+ error: _,
890
+ required: h,
891
+ withAsterisk: v,
892
+ id: f,
893
+ readOnly: N && !!z,
894
+ readOnlyComponent: z,
895
+ emptyValueComponent: T,
896
+ readOnlyType: "text",
897
+ readOnlyValue: P !== void 0 ? P : L,
898
+ readOnlyNativeProps: t,
899
+ activeComponent: /* @__PURE__ */ e(
900
+ ke.Group,
750
901
  {
751
- ref: z,
902
+ ref: n,
752
903
  ...S,
753
- children: /* @__PURE__ */ o("div", { className: w.groupRoot, "data-layout": s, children: j.Children.map(g, (y) => j.isValidElement(y) ? j.cloneElement(y, {
754
- disabled: x || y.props.disabled
755
- }) : y) })
904
+ disabled: N || O.disabled,
905
+ value: P,
906
+ defaultValue: L,
907
+ children: /* @__PURE__ */ e("div", { className: w.groupRoot, "data-layout": r, children: j.Children.map(k, (g) => j.isValidElement(g) ? j.cloneElement(g, {
908
+ disabled: N || g.props.disabled
909
+ }) : g) })
756
910
  }
757
911
  )
758
912
  }
759
913
  );
760
914
  }
761
915
  );
762
- Io.displayName = "CheckboxGroup";
763
- const Fo = f(
764
- function({ overStyled: t = !1, readOnly: s, readOnlyComponent: c, disabled: a, ...n }, l) {
765
- const d = N(n, t), i = d;
766
- if (delete i.size, delete i.color, delete i.radius, delete i.variant, delete i.iconColor, s && c)
767
- return /* @__PURE__ */ o(so, { children: c });
768
- const r = {
916
+ Ee.displayName = "CheckboxGroup";
917
+ const Be = $(
918
+ function(t, n) {
919
+ const {
920
+ overStyled: a = !1,
921
+ readOnly: r,
922
+ readOnlyComponent: s,
923
+ disabled: c,
924
+ formLayout: l,
925
+ labelSize: d,
926
+ controlMaxWidth: i,
927
+ controlMinWidth: p,
928
+ ...u
929
+ } = t, y = C(u, a), m = y;
930
+ delete m.size, delete m.color, delete m.radius, delete m.variant, delete m.iconColor;
931
+ const _ = {
769
932
  root: w.root,
770
933
  body: w.body,
771
934
  inner: w.inner,
@@ -773,37 +936,67 @@ const Fo = f(
773
936
  icon: w.icon,
774
937
  labelWrapper: w.labelWrapper,
775
938
  label: w.label
776
- }, p = i.classNames;
777
- if (p && typeof p == "object" && !Array.isArray(p)) {
778
- const _ = p;
779
- r.root = _.root ? `${w.root} ${_.root}` : w.root, r.body = _.body ? `${w.body} ${_.body}` : w.body, r.inner = _.inner ? `${w.inner} ${_.inner}` : w.inner, r.input = _.input ? `${w.input} ${_.input}` : w.input, r.icon = _.icon ? `${w.icon} ${_.icon}` : w.icon, r.labelWrapper = _.labelWrapper ? `${w.labelWrapper} ${_.labelWrapper}` : w.labelWrapper, r.label = _.label ? `${w.label} ${_.label}` : w.label;
939
+ }, h = m.classNames;
940
+ if (h && typeof h == "object" && !Array.isArray(h)) {
941
+ const b = h;
942
+ _.root = b.root ? `${w.root} ${b.root}` : w.root, _.body = b.body ? `${w.body} ${b.body}` : w.body, _.inner = b.inner ? `${w.inner} ${b.inner}` : w.inner, _.input = b.input ? `${w.input} ${b.input}` : w.input, _.icon = b.icon ? `${w.icon} ${b.icon}` : w.icon, _.labelWrapper = b.labelWrapper ? `${w.labelWrapper} ${b.labelWrapper}` : w.labelWrapper, _.label = b.label ? `${w.label} ${b.label}` : w.label;
780
943
  }
781
- const m = i.className, u = m ? `${w.root} ${m}` : w.root;
782
- return /* @__PURE__ */ o(
783
- go,
944
+ const v = m.className, f = v ? `${w.root} ${v}` : w.root;
945
+ if (r && s) {
946
+ const b = !!(m.checked ?? m.defaultChecked), N = /* @__PURE__ */ e(
947
+ s,
948
+ {
949
+ ...t,
950
+ checked: b,
951
+ label: m.label
952
+ }
953
+ );
954
+ return l ? /* @__PURE__ */ e(
955
+ U,
956
+ {
957
+ formLayout: l,
958
+ labelSize: d,
959
+ controlMaxWidth: i,
960
+ controlMinWidth: p,
961
+ children: N
962
+ }
963
+ ) : /* @__PURE__ */ e(ne, { children: N });
964
+ }
965
+ const x = /* @__PURE__ */ e(
966
+ ke,
784
967
  {
785
- ref: l,
786
- className: u,
787
- classNames: r,
788
- disabled: s || a,
789
- ...d
968
+ ref: n,
969
+ className: f,
970
+ classNames: _,
971
+ disabled: r || c,
972
+ ...y
790
973
  }
791
974
  );
975
+ return l ? /* @__PURE__ */ e(
976
+ U,
977
+ {
978
+ formLayout: l,
979
+ labelSize: d,
980
+ controlMaxWidth: i,
981
+ controlMinWidth: p,
982
+ children: x
983
+ }
984
+ ) : x;
792
985
  }
793
986
  );
794
- Fo.displayName = "Checkbox";
795
- Fo.Group = Io;
796
- const dt = "Chip-module__root___f5pFk", pt = "Chip-module__label___Ov9pg", _t = "Chip-module__mantineIconWrapper___KLSz6", mt = "Chip-module__innerWrapper___EnrTF", ut = "Chip-module__children___zbRAR", bt = "Chip-module__leadingIcon___JBtjQ", ht = "Chip-module__removeIcon___pVju-", F = {
797
- root: dt,
798
- label: pt,
799
- mantineIconWrapper: _t,
800
- innerWrapper: mt,
801
- children: ut,
802
- leadingIcon: bt,
803
- removeIcon: ht
987
+ Be.displayName = "Checkbox";
988
+ Be.Group = Ee;
989
+ const ft = "Chip-module__root___f5pFk", Nt = "Chip-module__label___Ov9pg", $t = "Chip-module__mantineIconWrapper___KLSz6", vt = "Chip-module__innerWrapper___EnrTF", Ct = "Chip-module__children___zbRAR", xt = "Chip-module__leadingIcon___JBtjQ", gt = "Chip-module__removeIcon___pVju-", F = {
990
+ root: ft,
991
+ label: Nt,
992
+ mantineIconWrapper: $t,
993
+ innerWrapper: vt,
994
+ children: Ct,
995
+ leadingIcon: xt,
996
+ removeIcon: gt
804
997
  };
805
- function $t(e) {
806
- return /* @__PURE__ */ D(
998
+ function Wt(o) {
999
+ return /* @__PURE__ */ B(
807
1000
  "svg",
808
1001
  {
809
1002
  xmlns: "http://www.w3.org/2000/svg",
@@ -815,322 +1008,204 @@ function $t(e) {
815
1008
  strokeWidth: "2",
816
1009
  strokeLinecap: "round",
817
1010
  strokeLinejoin: "round",
818
- ...e,
1011
+ ...o,
819
1012
  children: [
820
- /* @__PURE__ */ o("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
821
- /* @__PURE__ */ o("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1013
+ /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1014
+ /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
822
1015
  ]
823
1016
  }
824
1017
  );
825
1018
  }
826
- const ft = f(function({
1019
+ const kt = $(function({
827
1020
  error: t = !1,
828
- icon: s,
829
- onRemove: c,
830
- removeLabel: a = "Remove",
831
- children: n,
832
- overStyled: l = !1,
833
- ...d
834
- }, i) {
835
- const r = N(d, l), p = r, m = {
1021
+ icon: n,
1022
+ onRemove: a,
1023
+ removeLabel: r = "Remove",
1024
+ children: s,
1025
+ overStyled: c = !1,
1026
+ ...l
1027
+ }, d) {
1028
+ const i = C(l, c), p = i, u = {
836
1029
  root: F.root,
837
1030
  label: F.label,
838
1031
  input: F.input,
839
1032
  iconWrapper: F.mantineIconWrapper,
840
1033
  checkIcon: F.checkIcon
841
- }, u = p.classNames;
842
- if (u && typeof u == "object" && !Array.isArray(u)) {
843
- const $ = u;
844
- m.root = $.root ? `${F.root} ${$.root}` : F.root, m.label = $.label ? `${F.label} ${$.label}` : F.label;
1034
+ }, y = p.classNames;
1035
+ if (y && typeof y == "object" && !Array.isArray(y)) {
1036
+ const f = y;
1037
+ u.root = f.root ? `${F.root} ${f.root}` : F.root, u.label = f.label ? `${F.label} ${f.label}` : F.label;
845
1038
  }
846
- const _ = p.className, h = _ ? `${F.root} ${_}` : F.root;
847
- return /* @__PURE__ */ o(
848
- Zo,
1039
+ const m = p.className, _ = m ? `${F.root} ${m}` : F.root;
1040
+ return /* @__PURE__ */ e(
1041
+ Xe,
849
1042
  {
850
- ref: i,
851
- className: h,
852
- classNames: m,
1043
+ ref: d,
1044
+ className: _,
1045
+ classNames: u,
853
1046
  ...(t ? "" : void 0) !== void 0 ? { "data-error": "" } : {},
854
- ...!n && (!!s || !!c) ? { "data-icon-only": "" } : {},
855
- ...r,
856
- children: /* @__PURE__ */ D("span", { className: F.innerWrapper, children: [
857
- s && /* @__PURE__ */ o("span", { className: F.leadingIcon, "aria-hidden": !0, children: s }),
858
- /* @__PURE__ */ o("span", { className: F.children, children: n }),
859
- c && /* @__PURE__ */ o(
1047
+ ...!s && (!!n || !!a) ? { "data-icon-only": "" } : {},
1048
+ ...i,
1049
+ children: /* @__PURE__ */ B("span", { className: F.innerWrapper, children: [
1050
+ n && /* @__PURE__ */ e("span", { className: F.leadingIcon, "aria-hidden": !0, children: n }),
1051
+ /* @__PURE__ */ e("span", { className: F.children, children: s }),
1052
+ a && /* @__PURE__ */ e(
860
1053
  "span",
861
1054
  {
862
1055
  role: "button",
863
1056
  className: F.removeIcon,
864
- onClick: ($) => {
865
- $.preventDefault(), $.stopPropagation(), c($);
1057
+ onClick: (f) => {
1058
+ f.preventDefault(), f.stopPropagation(), a(f);
866
1059
  },
867
- "aria-label": a,
868
- onKeyDown: ($) => {
869
- ($.key === "Enter" || $.key === " ") && ($.preventDefault(), $.stopPropagation(), c(
870
- $
1060
+ "aria-label": r,
1061
+ onKeyDown: (f) => {
1062
+ (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), a(
1063
+ f
871
1064
  ));
872
1065
  },
873
1066
  tabIndex: 0,
874
- children: /* @__PURE__ */ o($t, {})
1067
+ children: /* @__PURE__ */ e(Wt, {})
875
1068
  }
876
1069
  )
877
1070
  ] })
878
1071
  }
879
1072
  );
880
1073
  });
881
- ft.displayName = "Chip";
882
- const Nt = "Container-module__root___UVssr", J = {
883
- root: Nt
884
- }, yt = f(
885
- function({ children: t, size: s, overStyled: c = !1, ...a }, n) {
886
- const l = N(a, c), d = l, i = {
1074
+ kt.displayName = "Chip";
1075
+ const wt = "Container-module__root___UVssr", oe = {
1076
+ root: wt
1077
+ }, At = $(
1078
+ function({ children: t, size: n, overStyled: a = !1, ...r }, s) {
1079
+ const c = C(r, a), l = c, d = {
887
1080
  "rec-sm": "sm",
888
1081
  "rec-default": "md",
889
1082
  "rec-md": "md",
890
1083
  "rec-lg": "lg",
891
1084
  "rec-xl": "xl",
892
1085
  "rec-2xl": "xl"
893
- }, r = typeof s == "string" && i[s] ? i[s] : s, p = {
894
- root: J.root
895
- }, m = d.classNames;
896
- if (m && typeof m == "object" && !Array.isArray(m)) {
897
- const h = m;
898
- p.root = h.root ? `${J.root} ${h.root}` : J.root;
1086
+ }, i = typeof n == "string" && d[n] ? d[n] : n, p = {
1087
+ root: oe.root
1088
+ }, u = l.classNames;
1089
+ if (u && typeof u == "object" && !Array.isArray(u)) {
1090
+ const _ = u;
1091
+ p.root = _.root ? `${oe.root} ${_.root}` : oe.root;
899
1092
  }
900
- const u = d.className, _ = u ? `${J.root} ${u}` : J.root;
901
- return /* @__PURE__ */ o(
902
- Qo,
1093
+ const y = l.className, m = y ? `${oe.root} ${y}` : oe.root;
1094
+ return /* @__PURE__ */ e(
1095
+ Je,
903
1096
  {
904
- ref: n,
905
- size: r,
906
- className: _,
1097
+ ref: s,
1098
+ size: i,
1099
+ className: m,
907
1100
  classNames: p,
908
- ...l,
1101
+ ...c,
909
1102
  children: t
910
1103
  }
911
1104
  );
912
1105
  }
913
1106
  );
914
- yt.displayName = "Container";
915
- const hr = (e) => /* @__PURE__ */ o("div", { ...e, children: "DatePicker" }), vt = "_root_1qhn7_3", Ct = "_contents_1qhn7_18", U = {
916
- root: vt,
917
- contents: Ct
918
- }, gt = f(function({ layer: e, contentsOnly: t, children: s, className: c, style: a, ...n }, l) {
919
- const d = t ? c ? `${U.root} ${U.contents} ${c}` : `${U.root} ${U.contents}` : c ? `${U.root} ${c}` : U.root;
920
- return /* @__PURE__ */ o(
921
- "div",
922
- {
923
- ref: l,
924
- className: d,
925
- style: a,
926
- ...t ? {} : { "data-recursica-layer": String(e) },
927
- ...n,
928
- children: s
929
- }
930
- );
931
- });
932
- gt.displayName = "Layer";
933
- const ao = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ o(j.Fragment, { children: e });
934
- ao.displayName = "EmptyValueRenderer";
935
- ao.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
936
- const No = "data-recursica-theme";
937
- function $r({
938
- children: e,
939
- theme: t = "light"
940
- }) {
941
- return Oo(() => {
942
- const s = document.documentElement;
943
- return s.setAttribute(No, t), () => {
944
- s.removeAttribute(No);
945
- };
946
- }, [t]), /* @__PURE__ */ o(so, { children: e });
947
- }
948
- const xt = "ReadOnlyField-module__textField___qKn25", yo = {
949
- textField: xt
950
- }, Lo = ({
951
- value: e,
952
- overStyled: t = !1,
953
- ...s
954
- }) => {
955
- const c = N(s, t), a = c.className;
956
- return /* @__PURE__ */ o(
957
- Co,
958
- {
959
- component: "p",
960
- className: a ? `${yo.textField} ${a}` : yo.textField,
961
- ...c,
962
- children: e != null ? j.isValidElement(e) ? e : String(e) : ""
963
- }
964
- );
965
- };
966
- Lo.displayName = "ReadOnlyTextField";
967
- const Bo = f(
968
- function({ value: t, type: s = "text", emptyValueComponent: c, overStyled: a = !1, ...n }, l) {
969
- let d = null;
970
- const i = N(n, a), r = c || ao, m = (r.check ? r.check(t) : ao.check(t)) ? /* @__PURE__ */ o(r, { value: t }) : t;
971
- switch (s) {
972
- case "text":
973
- default:
974
- d = /* @__PURE__ */ o(
975
- Lo,
976
- {
977
- value: m,
978
- overStyled: a
979
- }
980
- );
981
- break;
982
- }
983
- return /* @__PURE__ */ o(
984
- V,
985
- {
986
- ref: l,
987
- overStyled: a,
988
- ...i,
989
- children: d
990
- }
991
- );
992
- }
993
- );
994
- Bo.displayName = "ReadOnlyField";
995
- const lo = f(function({
996
- readOnly: t,
997
- readOnlyComponent: s,
998
- readOnlyType: c = "text",
999
- readOnlyValue: a,
1000
- activeComponent: n,
1001
- overStyled: l,
1002
- onLabelEditClick: d,
1003
- ...i
1004
- }, r) {
1005
- return t ? s ? /* @__PURE__ */ o(
1006
- V,
1007
- {
1008
- ref: r,
1009
- ...i,
1010
- onLabelEditClick: d,
1011
- overStyled: l,
1012
- children: s
1013
- }
1014
- ) : /* @__PURE__ */ o(
1015
- Bo,
1016
- {
1017
- ref: r,
1018
- type: c,
1019
- value: a,
1020
- onLabelEditClick: d,
1021
- overStyled: l,
1022
- ...i
1023
- }
1024
- ) : /* @__PURE__ */ o(
1025
- V,
1026
- {
1027
- ref: r,
1028
- ...i,
1029
- onLabelEditClick: d,
1030
- overStyled: l,
1031
- children: n
1032
- }
1033
- );
1034
- });
1035
- lo.displayName = "WithReadOnlyWrapper";
1036
- const wt = "Dropdown-module__root___uVyL0", Pt = "Dropdown-module__input___dK4dN", Wt = "Dropdown-module__section___j3MRB", kt = "Dropdown-module__dropdown___gG-Sw", At = "Dropdown-module__option___nAGU-", L = {
1037
- root: wt,
1038
- input: Pt,
1039
- section: Wt,
1040
- dropdown: kt,
1041
- option: At
1042
- }, Rt = f(
1043
- function({
1044
- overStyled: t = !1,
1045
- formLayout: s = "stacked",
1046
- containerWidth: c,
1047
- // Label & Wrapper Maps
1048
- labelSize: a,
1049
- labelAlignment: n,
1050
- labelOptionalText: l,
1051
- labelWithEditIcon: d,
1052
- onLabelEditClick: i,
1053
- label: r,
1054
- assistiveText: p,
1055
- assistiveWithIcon: m,
1056
- error: u,
1057
- required: _,
1058
- withAsterisk: h,
1059
- id: b,
1060
- className: C,
1061
- style: $,
1062
- disabled: g,
1063
- readOnly: x,
1064
- readOnlyComponent: W,
1065
- value: k,
1066
- defaultValue: z,
1067
- data: S,
1068
- ...I
1069
- }, y) {
1070
- const T = N(I, t), R = T;
1071
- delete R.size, delete R.variant, delete R.radius;
1072
- const A = {
1073
- wrapper: L.root,
1107
+ At.displayName = "Container";
1108
+ const xr = (o) => /* @__PURE__ */ e("div", { ...o, children: "DatePicker" }), Pt = "Dropdown-module__root___uVyL0", St = "Dropdown-module__input___dK4dN", Ot = "Dropdown-module__section___j3MRB", Rt = "Dropdown-module__dropdown___gG-Sw", Tt = "Dropdown-module__option___nAGU-", E = {
1109
+ root: Pt,
1110
+ input: St,
1111
+ section: Ot,
1112
+ dropdown: Rt,
1113
+ option: Tt
1114
+ }, Lt = $(
1115
+ function(t, n) {
1116
+ const {
1117
+ overStyled: a = !1,
1118
+ formLayout: r = "stacked",
1119
+ containerWidth: s,
1120
+ // Label & Wrapper Maps
1121
+ labelSize: c,
1122
+ labelAlignment: l,
1123
+ labelOptionalText: d,
1124
+ labelWithEditIcon: i,
1125
+ onLabelEditClick: p,
1126
+ label: u,
1127
+ assistiveText: y,
1128
+ assistiveWithIcon: m,
1129
+ error: _,
1130
+ required: h,
1131
+ withAsterisk: v,
1132
+ id: f,
1133
+ className: x,
1134
+ style: b,
1135
+ disabled: k,
1136
+ readOnly: N,
1137
+ readOnlyComponent: z,
1138
+ emptyValueComponent: T,
1139
+ value: P,
1140
+ defaultValue: L,
1141
+ data: I,
1142
+ ...S
1143
+ } = t, O = C(S, a), g = O;
1144
+ delete g.size, delete g.variant, delete g.radius;
1145
+ const R = {
1146
+ wrapper: E.root,
1074
1147
  // The nested Input internal relative wrapper bounding box
1075
- input: L.input,
1076
- section: L.section,
1077
- dropdown: L.dropdown,
1078
- option: L.option
1079
- }, Q = R.classNames;
1148
+ input: E.input,
1149
+ section: E.section,
1150
+ dropdown: E.dropdown,
1151
+ option: E.option
1152
+ }, Q = g.classNames;
1080
1153
  if (Q && typeof Q == "object" && !Array.isArray(Q)) {
1081
- const B = Q;
1082
- A.wrapper = B.wrapper ? `${L.root} ${B.wrapper}` : L.root, A.input = B.input ? `${L.input} ${B.input}` : L.input, A.section = B.section ? `${L.section} ${B.section}` : L.section, A.dropdown = B.dropdown ? `${L.dropdown} ${B.dropdown}` : L.dropdown, A.option = B.option ? `${L.option} ${B.option}` : L.option;
1154
+ const V = Q;
1155
+ R.wrapper = V.wrapper ? `${E.root} ${V.wrapper}` : E.root, R.input = V.input ? `${E.input} ${V.input}` : E.input, R.section = V.section ? `${E.section} ${V.section}` : E.section, R.dropdown = V.dropdown ? `${E.dropdown} ${V.dropdown}` : E.dropdown, R.option = V.option ? `${E.option} ${V.option}` : E.option;
1083
1156
  }
1084
- const X = {
1085
- ...$ || {},
1086
- width: c || "100%"
1157
+ const le = {
1158
+ ...b || {},
1159
+ width: s || "100%"
1087
1160
  };
1088
- return /* @__PURE__ */ o(
1089
- lo,
1161
+ return /* @__PURE__ */ e(
1162
+ X,
1090
1163
  {
1091
- className: C,
1092
- style: X,
1164
+ className: x,
1165
+ style: le,
1093
1166
  controlMaxWidth: "var(--recursica_ui-kit_components_dropdown_properties_max-width)",
1094
1167
  controlMinWidth: "var(--recursica_ui-kit_components_dropdown_properties_min-width)",
1095
- overStyled: t,
1096
- formLayout: s,
1097
- labelSize: a,
1098
- labelAlignment: n,
1099
- labelOptionalText: l,
1100
- labelWithEditIcon: d,
1101
- onLabelEditClick: i,
1102
- label: r,
1103
- assistiveText: p,
1168
+ overStyled: a,
1169
+ formLayout: r,
1170
+ labelSize: c,
1171
+ labelAlignment: l,
1172
+ labelOptionalText: d,
1173
+ labelWithEditIcon: i,
1174
+ onLabelEditClick: p,
1175
+ label: u,
1176
+ assistiveText: y,
1104
1177
  assistiveWithIcon: m,
1105
- error: u,
1106
- required: _,
1107
- withAsterisk: h,
1108
- id: b,
1109
- readOnly: x,
1110
- readOnlyComponent: W,
1178
+ error: _,
1179
+ required: h,
1180
+ withAsterisk: v,
1181
+ id: f,
1182
+ readOnly: N,
1183
+ readOnlyComponent: z,
1184
+ emptyValueComponent: T,
1111
1185
  readOnlyType: "text",
1112
- readOnlyValue: k !== void 0 ? String(k) : z ? String(z) : void 0,
1186
+ readOnlyValue: P !== void 0 ? String(P) : L ? String(L) : void 0,
1187
+ readOnlyNativeProps: t,
1113
1188
  activeComponent: (
1114
1189
  /* Naked Select execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
1115
- /* @__PURE__ */ o(
1116
- Xo,
1190
+ /* @__PURE__ */ e(
1191
+ eo,
1117
1192
  {
1118
- ref: y,
1119
- classNames: A,
1120
- disabled: g,
1121
- value: k,
1122
- defaultValue: z,
1123
- data: S || [],
1193
+ ref: n,
1194
+ classNames: R,
1195
+ disabled: k,
1196
+ value: P,
1197
+ defaultValue: L,
1198
+ data: I || [],
1124
1199
  label: void 0,
1125
1200
  description: void 0,
1126
1201
  error: void 0,
1127
1202
  required: void 0,
1128
1203
  withAsterisk: void 0,
1129
1204
  wrapperProps: {
1130
- "data-disabled": g ? "true" : void 0,
1131
- "data-error": u ? "true" : void 0
1205
+ "data-disabled": k ? "true" : void 0,
1206
+ "data-error": _ ? "true" : void 0
1132
1207
  },
1133
- ...T
1208
+ ...O
1134
1209
  }
1135
1210
  )
1136
1211
  )
@@ -1138,486 +1213,571 @@ const wt = "Dropdown-module__root___uVyL0", Pt = "Dropdown-module__input___dK4dN
1138
1213
  );
1139
1214
  }
1140
1215
  );
1141
- Rt.displayName = "Dropdown";
1142
- const fr = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileInput" }), Nr = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileUpload" }), St = "Flex-module__root___yYser", oo = {
1143
- root: St
1144
- }, Tt = f(function({ children: t, overStyled: s = !1, gap: c = "rec-default", ...a }, n) {
1145
- const l = N({ ...a, gap: c }, s), d = l, i = {
1146
- root: oo.root
1147
- }, r = d.classNames;
1148
- if (r && typeof r == "object" && !Array.isArray(r)) {
1149
- const u = r;
1150
- i.root = u.root ? `${oo.root} ${u.root}` : oo.root;
1216
+ Lt.displayName = "Dropdown";
1217
+ const gr = (o) => /* @__PURE__ */ e("div", { ...o, children: "FileInput" }), Wr = (o) => /* @__PURE__ */ e("div", { ...o, children: "FileUpload" }), It = "Flex-module__root___yYser", te = {
1218
+ root: It
1219
+ }, zt = $(function({ children: t, overStyled: n = !1, gap: a = "rec-default", ...r }, s) {
1220
+ const c = C({ ...r, gap: a }, n), l = c, d = {
1221
+ root: te.root
1222
+ }, i = l.classNames;
1223
+ if (i && typeof i == "object" && !Array.isArray(i)) {
1224
+ const y = i;
1225
+ d.root = y.root ? `${te.root} ${y.root}` : te.root;
1151
1226
  }
1152
- const p = d.className, m = p ? `${oo.root} ${p}` : oo.root;
1153
- return /* @__PURE__ */ o(
1154
- Jo,
1227
+ const p = l.className, u = p ? `${te.root} ${p}` : te.root;
1228
+ return /* @__PURE__ */ e(
1229
+ oo,
1155
1230
  {
1156
- ref: n,
1157
- className: m,
1158
- classNames: i,
1159
- ...l,
1231
+ ref: s,
1232
+ className: u,
1233
+ classNames: d,
1234
+ ...c,
1160
1235
  children: t
1161
1236
  }
1162
1237
  );
1163
1238
  });
1164
- Tt.displayName = "Flex";
1165
- const zt = "Group-module__root___ftO64", eo = {
1166
- root: zt
1167
- }, It = f(function({ children: t, overStyled: s = !1, gap: c = "rec-default", ...a }, n) {
1168
- const l = N({ ...a, gap: c }, s), d = l, i = {
1169
- root: eo.root
1170
- }, r = d.classNames;
1171
- if (r && typeof r == "object" && !Array.isArray(r)) {
1172
- const u = r;
1173
- i.root = u.root ? `${eo.root} ${u.root}` : eo.root;
1239
+ zt.displayName = "Flex";
1240
+ const Ft = "Group-module__root___ftO64", re = {
1241
+ root: Ft
1242
+ }, Et = $(function({ children: t, overStyled: n = !1, gap: a = "rec-default", ...r }, s) {
1243
+ const c = C({ ...r, gap: a }, n), l = c, d = {
1244
+ root: re.root
1245
+ }, i = l.classNames;
1246
+ if (i && typeof i == "object" && !Array.isArray(i)) {
1247
+ const y = i;
1248
+ d.root = y.root ? `${re.root} ${y.root}` : re.root;
1174
1249
  }
1175
- const p = d.className, m = p ? `${eo.root} ${p}` : eo.root;
1176
- return /* @__PURE__ */ o(
1177
- oe,
1250
+ const p = l.className, u = p ? `${re.root} ${p}` : re.root;
1251
+ return /* @__PURE__ */ e(
1252
+ to,
1178
1253
  {
1179
- ref: n,
1180
- className: m,
1181
- classNames: i,
1182
- ...l,
1254
+ ref: s,
1255
+ className: u,
1256
+ classNames: d,
1257
+ ...c,
1183
1258
  children: t
1184
1259
  }
1185
1260
  );
1186
1261
  });
1187
- It.displayName = "Group";
1188
- const yr = (e) => /* @__PURE__ */ o("div", { ...e, children: "HoverCard" }), vr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Link" }), Ft = "Loader-module__root___6iYOP", to = {
1189
- root: Ft
1190
- }, Lt = f(function({ variant: t = "oval", size: s = "default", overStyled: c = !1, ...a }, n) {
1191
- const d = {
1262
+ Et.displayName = "Group";
1263
+ const kr = (o) => /* @__PURE__ */ e("div", { ...o, children: "HoverCard" }), wr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Link" }), Bt = "Loader-module__root___6iYOP", ae = {
1264
+ root: Bt
1265
+ }, jt = $(function({ variant: t = "oval", size: n = "default", overStyled: a = !1, ...r }, s) {
1266
+ const l = {
1192
1267
  sm: "small",
1193
1268
  md: "default",
1194
1269
  lg: "large",
1195
1270
  small: "small",
1196
1271
  default: "default",
1197
1272
  large: "large"
1198
- }[s] || "default", i = N(a, c), r = {
1199
- root: to.root
1200
- }, p = i.classNames;
1273
+ }[n] || "default", d = C(r, a), i = {
1274
+ root: ae.root
1275
+ }, p = d.classNames;
1201
1276
  if (p && typeof p == "object" && !Array.isArray(p)) {
1202
- const _ = p;
1203
- r.root = _.root ? `${to.root} ${_.root}` : to.root;
1277
+ const m = p;
1278
+ i.root = m.root ? `${ae.root} ${m.root}` : ae.root;
1204
1279
  }
1205
- const m = i.className, u = m ? `${to.root} ${m}` : to.root;
1206
- return /* @__PURE__ */ o(
1207
- ee,
1280
+ const u = d.className, y = u ? `${ae.root} ${u}` : ae.root;
1281
+ return /* @__PURE__ */ e(
1282
+ ro,
1208
1283
  {
1209
- ref: n,
1284
+ ref: s,
1210
1285
  type: t,
1211
1286
  "data-variant": t,
1212
- "data-size": d,
1213
- ...i,
1214
- className: u,
1215
- classNames: r
1287
+ "data-size": l,
1288
+ ...d,
1289
+ className: y,
1290
+ classNames: i
1216
1291
  }
1217
1292
  );
1218
1293
  });
1219
- Lt.displayName = "Loader";
1220
- const Cr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Menu" }), gr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Modal" }), xr = (e) => /* @__PURE__ */ o("div", { ...e, children: "NumberInput" }), wr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Pagination" }), Pr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Panel" }), Wr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Popover" }), Bt = "Radio-module__groupRoot___bfUii", jt = "Radio-module__root___kAjTD", Et = "Radio-module__body___q2Wpj", Gt = "Radio-module__inner___QaTBB", Mt = "Radio-module__radio___MfgN-", Dt = "Radio-module__icon___DWznm", Vt = "Radio-module__labelWrapper___dB0Gi", qt = "Radio-module__label___vAFIP", P = {
1221
- groupRoot: Bt,
1222
- root: jt,
1223
- body: Et,
1224
- inner: Gt,
1225
- radio: Mt,
1226
- icon: Dt,
1227
- labelWrapper: Vt,
1228
- label: qt
1229
- }, jo = f(
1230
- function({
1231
- overStyled: t = !1,
1232
- formLayout: s = "stacked",
1233
- // Label Wrappers
1234
- labelSize: c,
1235
- labelAlignment: a,
1236
- labelOptionalText: n,
1237
- labelWithEditIcon: l,
1238
- onLabelEditClick: d,
1239
- // Base Mantine Extracted Attributes
1240
- label: i,
1241
- description: r,
1242
- assistiveText: p,
1243
- assistiveWithIcon: m,
1244
- error: u,
1245
- required: _,
1246
- withAsterisk: h,
1247
- id: b,
1248
- className: C,
1249
- style: $,
1250
- children: g,
1251
- readOnly: x,
1252
- readOnlyComponent: W,
1253
- ...k
1254
- }, z) {
1255
- const S = N(k, t), I = S;
1256
- return delete I.size, x && W ? /* @__PURE__ */ o(
1257
- V,
1294
+ jt.displayName = "Loader";
1295
+ const Ar = (o) => /* @__PURE__ */ e("div", { ...o, children: "Menu" }), Pr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Modal" }), Sr = (o) => /* @__PURE__ */ e("div", { ...o, children: "NumberInput" }), Or = (o) => /* @__PURE__ */ e("div", { ...o, children: "Pagination" }), Rr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Panel" }), Tr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Popover" }), Vt = "Radio-module__groupRoot___bfUii", Gt = "Radio-module__root___kAjTD", Mt = "Radio-module__body___q2Wpj", qt = "Radio-module__inner___QaTBB", Dt = "Radio-module__radio___MfgN-", Yt = "Radio-module__icon___DWznm", Zt = "Radio-module__labelWrapper___dB0Gi", Ht = "Radio-module__label___vAFIP", A = {
1296
+ groupRoot: Vt,
1297
+ root: Gt,
1298
+ body: Mt,
1299
+ inner: qt,
1300
+ radio: Dt,
1301
+ icon: Yt,
1302
+ labelWrapper: Zt,
1303
+ label: Ht
1304
+ }, je = $(
1305
+ function(t, n) {
1306
+ const {
1307
+ overStyled: a = !1,
1308
+ formLayout: r = "stacked",
1309
+ // Label Wrappers
1310
+ labelSize: s,
1311
+ labelAlignment: c,
1312
+ labelOptionalText: l,
1313
+ labelWithEditIcon: d,
1314
+ onLabelEditClick: i,
1315
+ // Base Mantine Extracted Attributes
1316
+ label: p,
1317
+ description: u,
1318
+ assistiveText: y,
1319
+ assistiveWithIcon: m,
1320
+ error: _,
1321
+ required: h,
1322
+ withAsterisk: v,
1323
+ id: f,
1324
+ className: x,
1325
+ style: b,
1326
+ children: k,
1327
+ readOnly: N,
1328
+ readOnlyComponent: z,
1329
+ emptyValueComponent: T,
1330
+ value: P,
1331
+ defaultValue: L,
1332
+ ...I
1333
+ } = t, S = C(I, a), O = S;
1334
+ return delete O.size, /* @__PURE__ */ e(
1335
+ X,
1258
1336
  {
1259
- className: C,
1260
- style: $,
1337
+ className: x,
1338
+ style: b,
1261
1339
  controlMaxWidth: "var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",
1262
1340
  controlMinWidth: void 0,
1263
- overStyled: t,
1264
- labelElement: "div",
1265
- formLayout: s,
1266
- labelSize: c,
1267
- labelAlignment: a,
1268
- labelOptionalText: n,
1269
- labelWithEditIcon: l,
1270
- onLabelEditClick: d,
1271
- label: i,
1272
- description: r,
1273
- assistiveText: p,
1274
- assistiveWithIcon: m,
1275
- error: u,
1276
- required: _,
1277
- withAsterisk: h,
1278
- id: b,
1279
- children: W
1280
- }
1281
- ) : /* @__PURE__ */ o(
1282
- V,
1283
- {
1284
- className: C,
1285
- style: $,
1286
- controlMaxWidth: "var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",
1287
- controlMinWidth: void 0,
1288
- overStyled: t,
1341
+ overStyled: a,
1289
1342
  labelElement: "div",
1290
- formLayout: s,
1291
- labelSize: c,
1292
- labelAlignment: a,
1293
- labelOptionalText: n,
1294
- labelWithEditIcon: l,
1295
- onLabelEditClick: d,
1296
- label: i,
1297
- description: r,
1298
- assistiveText: p,
1343
+ formLayout: r,
1344
+ labelSize: s,
1345
+ labelAlignment: c,
1346
+ labelOptionalText: l,
1347
+ labelWithEditIcon: d,
1348
+ onLabelEditClick: i,
1349
+ label: p,
1350
+ description: u,
1351
+ assistiveText: y,
1299
1352
  assistiveWithIcon: m,
1300
- error: u,
1301
- required: _,
1302
- withAsterisk: h,
1303
- id: b,
1304
- children: /* @__PURE__ */ o(
1305
- xo.Group,
1353
+ error: _,
1354
+ required: h,
1355
+ withAsterisk: v,
1356
+ id: f,
1357
+ readOnly: N && !!z,
1358
+ readOnlyComponent: z,
1359
+ emptyValueComponent: T,
1360
+ readOnlyType: "text",
1361
+ readOnlyValue: P !== void 0 ? P : L,
1362
+ readOnlyNativeProps: t,
1363
+ activeComponent: /* @__PURE__ */ e(
1364
+ we.Group,
1306
1365
  {
1307
- ref: z,
1366
+ ref: n,
1308
1367
  ...S,
1309
- children: /* @__PURE__ */ o("div", { className: P.groupRoot, "data-layout": s, children: j.Children.map(g, (y) => j.isValidElement(y) ? j.cloneElement(y, {
1310
- disabled: x || y.props.disabled
1311
- }) : y) })
1368
+ disabled: N || O.disabled,
1369
+ value: P,
1370
+ defaultValue: L,
1371
+ children: /* @__PURE__ */ e("div", { className: A.groupRoot, "data-layout": r, children: j.Children.map(k, (g) => j.isValidElement(g) ? j.cloneElement(g, {
1372
+ disabled: N || g.props.disabled
1373
+ }) : g) })
1312
1374
  }
1313
1375
  )
1314
1376
  }
1315
1377
  );
1316
1378
  }
1317
1379
  );
1318
- jo.displayName = "RadioGroup";
1319
- const Ot = ({ className: e, style: t }) => /* @__PURE__ */ o(
1380
+ je.displayName = "RadioGroup";
1381
+ const Kt = ({ className: o, style: t }) => /* @__PURE__ */ e(
1320
1382
  "svg",
1321
1383
  {
1322
1384
  xmlns: "http://www.w3.org/2000/svg",
1323
1385
  viewBox: "0 0 16 16",
1324
1386
  fill: "currentColor",
1325
- className: e,
1387
+ className: o,
1326
1388
  style: t,
1327
- children: /* @__PURE__ */ o("circle", { cx: "8", cy: "8", r: "5" })
1328
- }
1329
- ), Eo = f(function({ overStyled: t = !1, readOnly: s, readOnlyComponent: c, disabled: a, ...n }, l) {
1330
- const d = N(n, t), i = d;
1331
- if (delete i.size, delete i.color, delete i.radius, delete i.variant, delete i.iconColor, s && c)
1332
- return /* @__PURE__ */ o(so, { children: c });
1333
- const r = {
1334
- root: P.root,
1335
- body: P.body,
1336
- inner: P.inner,
1337
- radio: P.radio,
1338
- icon: P.icon,
1339
- labelWrapper: P.labelWrapper,
1340
- label: P.label
1341
- }, p = i.classNames;
1342
- if (p && typeof p == "object" && !Array.isArray(p)) {
1343
- const _ = p;
1344
- r.root = _.root ? `${P.root} ${_.root}` : P.root, r.body = _.body ? `${P.body} ${_.body}` : P.body, r.inner = _.inner ? `${P.inner} ${_.inner}` : P.inner, r.radio = _.radio ? `${P.radio} ${_.radio}` : P.radio, r.icon = _.icon ? `${P.icon} ${_.icon}` : P.icon, r.labelWrapper = _.labelWrapper ? `${P.labelWrapper} ${_.labelWrapper}` : P.labelWrapper, r.label = _.label ? `${P.label} ${_.label}` : P.label;
1389
+ children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "5" })
1345
1390
  }
1346
- const m = i.className, u = m ? `${P.root} ${m}` : P.root;
1347
- return /* @__PURE__ */ o(
1348
- xo,
1349
- {
1350
- ref: l,
1351
- icon: Ot,
1352
- className: u,
1353
- classNames: r,
1354
- disabled: s || a,
1355
- ...d
1391
+ ), Ve = $(
1392
+ function(t, n) {
1393
+ const {
1394
+ overStyled: a = !1,
1395
+ readOnly: r,
1396
+ readOnlyComponent: s,
1397
+ disabled: c,
1398
+ formLayout: l,
1399
+ labelSize: d,
1400
+ controlMaxWidth: i,
1401
+ controlMinWidth: p,
1402
+ ...u
1403
+ } = t, y = C(u, a), m = y;
1404
+ delete m.size, delete m.color, delete m.radius, delete m.variant, delete m.iconColor;
1405
+ const _ = {
1406
+ root: A.root,
1407
+ body: A.body,
1408
+ inner: A.inner,
1409
+ radio: A.radio,
1410
+ icon: A.icon,
1411
+ labelWrapper: A.labelWrapper,
1412
+ label: A.label
1413
+ }, h = m.classNames;
1414
+ if (h && typeof h == "object" && !Array.isArray(h)) {
1415
+ const b = h;
1416
+ _.root = b.root ? `${A.root} ${b.root}` : A.root, _.body = b.body ? `${A.body} ${b.body}` : A.body, _.inner = b.inner ? `${A.inner} ${b.inner}` : A.inner, _.radio = b.radio ? `${A.radio} ${b.radio}` : A.radio, _.icon = b.icon ? `${A.icon} ${b.icon}` : A.icon, _.labelWrapper = b.labelWrapper ? `${A.labelWrapper} ${b.labelWrapper}` : A.labelWrapper, _.label = b.label ? `${A.label} ${b.label}` : A.label;
1356
1417
  }
1357
- );
1358
- });
1359
- Eo.displayName = "Radio";
1360
- Eo.Group = jo;
1361
- const kr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), Ar = (e) => /* @__PURE__ */ o("div", { ...e, children: "SegmentedControl" }), Rr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Slider" }), Yt = "Stack-module__root___NUN-x", ro = {
1362
- root: Yt
1363
- }, Ht = f(function({ children: t, overStyled: s = !1, gap: c = "rec-default", ...a }, n) {
1364
- const l = N({ ...a, gap: c }, s), d = l, i = {
1365
- root: ro.root
1366
- }, r = d.classNames;
1367
- if (r && typeof r == "object" && !Array.isArray(r)) {
1368
- const u = r;
1369
- i.root = u.root ? `${ro.root} ${u.root}` : ro.root;
1418
+ const v = m.className, f = v ? `${A.root} ${v}` : A.root;
1419
+ if (r && s) {
1420
+ const b = !!(m.checked ?? m.defaultChecked), N = /* @__PURE__ */ e(
1421
+ s,
1422
+ {
1423
+ ...t,
1424
+ checked: b,
1425
+ label: m.label
1426
+ }
1427
+ );
1428
+ return l ? /* @__PURE__ */ e(
1429
+ U,
1430
+ {
1431
+ formLayout: l,
1432
+ labelSize: d,
1433
+ controlMaxWidth: i,
1434
+ controlMinWidth: p,
1435
+ children: N
1436
+ }
1437
+ ) : /* @__PURE__ */ e(ne, { children: N });
1438
+ }
1439
+ const x = /* @__PURE__ */ e(
1440
+ we,
1441
+ {
1442
+ ref: n,
1443
+ icon: Kt,
1444
+ className: f,
1445
+ classNames: _,
1446
+ disabled: r || c,
1447
+ ...y
1448
+ }
1449
+ );
1450
+ return l ? /* @__PURE__ */ e(
1451
+ U,
1452
+ {
1453
+ formLayout: l,
1454
+ labelSize: d,
1455
+ controlMaxWidth: i,
1456
+ controlMinWidth: p,
1457
+ children: x
1458
+ }
1459
+ ) : x;
1370
1460
  }
1371
- const p = d.className, m = p ? `${ro.root} ${p}` : ro.root;
1372
- return /* @__PURE__ */ o(
1373
- te,
1461
+ );
1462
+ Ve.displayName = "Radio";
1463
+ Ve.Group = je;
1464
+ const Ut = ({ checked: o, label: t }) => /* @__PURE__ */ B(
1465
+ fe,
1466
+ {
1467
+ component: "span",
1468
+ className: me.textField,
1469
+ style: { display: "inline-flex", gap: "8px", alignItems: "baseline" },
1470
+ children: [
1471
+ t && /* @__PURE__ */ B("span", { style: { fontWeight: 500 }, children: [
1472
+ t,
1473
+ ":"
1474
+ ] }),
1475
+ /* @__PURE__ */ e("span", { children: o ? "On" : "Off" })
1476
+ ]
1477
+ }
1478
+ );
1479
+ Ut.displayName = "ReadOnlySwitchField";
1480
+ const Qt = ({ checked: o, label: t }) => /* @__PURE__ */ B(
1481
+ fe,
1482
+ {
1483
+ component: "span",
1484
+ className: me.textField,
1485
+ style: { display: "inline-flex", gap: "8px", alignItems: "baseline" },
1486
+ children: [
1487
+ t && /* @__PURE__ */ B("span", { style: { fontWeight: 500 }, children: [
1488
+ t,
1489
+ ":"
1490
+ ] }),
1491
+ /* @__PURE__ */ e("span", { children: o ? "True" : "False" })
1492
+ ]
1493
+ }
1494
+ );
1495
+ Qt.displayName = "ReadOnlyBooleanField";
1496
+ const Lr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Search" }), Ir = (o) => /* @__PURE__ */ e("div", { ...o, children: "SegmentedControl" }), zr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Slider" }), Xt = "Stack-module__root___NUN-x", se = {
1497
+ root: Xt
1498
+ }, Jt = $(function({ children: t, overStyled: n = !1, gap: a = "rec-default", ...r }, s) {
1499
+ const c = C({ ...r, gap: a }, n), l = c, d = {
1500
+ root: se.root
1501
+ }, i = l.classNames;
1502
+ if (i && typeof i == "object" && !Array.isArray(i)) {
1503
+ const y = i;
1504
+ d.root = y.root ? `${se.root} ${y.root}` : se.root;
1505
+ }
1506
+ const p = l.className, u = p ? `${se.root} ${p}` : se.root;
1507
+ return /* @__PURE__ */ e(
1508
+ ao,
1374
1509
  {
1375
- ref: n,
1376
- className: m,
1377
- classNames: i,
1378
- ...l,
1510
+ ref: s,
1511
+ className: u,
1512
+ classNames: d,
1513
+ ...c,
1379
1514
  children: t
1380
1515
  }
1381
1516
  );
1382
1517
  });
1383
- Ht.displayName = "Stack";
1384
- const Sr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Stepper" }), Kt = "Switch-module__root___Y5Ydi", Ut = "Switch-module__body___Sw9Wr", Zt = "Switch-module__track___7ObdZ", Qt = "Switch-module__thumb___-FTeK", Xt = "Switch-module__labelWrapper___YSOwx", Jt = "Switch-module__label___LrH7V", or = "Switch-module__thumbIconWrapper___sCY-1", er = "Switch-module__checkIcon___ZBAQN", tr = "Switch-module__closeIcon___bLLGw", rr = "Switch-module__groupRoot___-Uepi", v = {
1385
- root: Kt,
1386
- body: Ut,
1387
- track: Zt,
1388
- thumb: Qt,
1389
- labelWrapper: Xt,
1390
- label: Jt,
1391
- thumbIconWrapper: or,
1392
- checkIcon: er,
1393
- closeIcon: tr,
1394
- groupRoot: rr
1395
- }, Go = f(
1396
- function({
1397
- overStyled: t = !1,
1398
- formLayout: s = "stacked",
1399
- // Label Wrappers
1400
- labelSize: c,
1401
- labelAlignment: a,
1402
- labelOptionalText: n,
1403
- labelWithEditIcon: l,
1404
- onLabelEditClick: d,
1405
- // Base Mantine Extracted Attributes
1406
- label: i,
1407
- description: r,
1408
- assistiveText: p,
1409
- assistiveWithIcon: m,
1410
- error: u,
1411
- required: _,
1412
- withAsterisk: h,
1413
- id: b,
1414
- className: C,
1415
- style: $,
1416
- children: g,
1417
- readOnly: x,
1418
- readOnlyComponent: W,
1419
- ...k
1420
- }, z) {
1421
- const S = N(k, t), I = S;
1422
- return delete I.size, x && W ? /* @__PURE__ */ o(
1423
- V,
1424
- {
1425
- className: C,
1426
- style: $,
1427
- controlMaxWidth: "var(--recursica_ui-kit_components_switch_properties_max-width)",
1428
- controlMinWidth: void 0,
1429
- overStyled: t,
1430
- labelElement: "div",
1431
- formLayout: s,
1432
- labelSize: c,
1433
- labelAlignment: a,
1434
- labelOptionalText: n,
1435
- labelWithEditIcon: l,
1436
- onLabelEditClick: d,
1437
- label: i,
1438
- description: r,
1439
- assistiveText: p,
1440
- assistiveWithIcon: m,
1441
- error: u,
1442
- required: _,
1443
- withAsterisk: h,
1444
- id: b,
1445
- children: W
1446
- }
1447
- ) : /* @__PURE__ */ o(
1448
- V,
1518
+ Jt.displayName = "Stack";
1519
+ const Fr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Stepper" }), er = "Switch-module__root___Y5Ydi", or = "Switch-module__body___Sw9Wr", tr = "Switch-module__track___7ObdZ", rr = "Switch-module__thumb___-FTeK", ar = "Switch-module__labelWrapper___YSOwx", sr = "Switch-module__label___LrH7V", nr = "Switch-module__thumbIconWrapper___sCY-1", lr = "Switch-module__checkIcon___ZBAQN", ir = "Switch-module__closeIcon___bLLGw", cr = "Switch-module__groupRoot___-Uepi", W = {
1520
+ root: er,
1521
+ body: or,
1522
+ track: tr,
1523
+ thumb: rr,
1524
+ labelWrapper: ar,
1525
+ label: sr,
1526
+ thumbIconWrapper: nr,
1527
+ checkIcon: lr,
1528
+ closeIcon: ir,
1529
+ groupRoot: cr
1530
+ }, Ge = $(
1531
+ function(t, n) {
1532
+ const {
1533
+ overStyled: a = !1,
1534
+ formLayout: r = "stacked",
1535
+ // Label Wrappers
1536
+ labelSize: s,
1537
+ labelAlignment: c,
1538
+ labelOptionalText: l,
1539
+ labelWithEditIcon: d,
1540
+ onLabelEditClick: i,
1541
+ // Base Mantine Extracted Attributes
1542
+ label: p,
1543
+ description: u,
1544
+ assistiveText: y,
1545
+ assistiveWithIcon: m,
1546
+ error: _,
1547
+ required: h,
1548
+ withAsterisk: v,
1549
+ id: f,
1550
+ className: x,
1551
+ style: b,
1552
+ children: k,
1553
+ readOnly: N,
1554
+ readOnlyComponent: z,
1555
+ emptyValueComponent: T,
1556
+ value: P,
1557
+ defaultValue: L,
1558
+ ...I
1559
+ } = t, S = C(I, a), O = S;
1560
+ return delete O.size, /* @__PURE__ */ e(
1561
+ X,
1449
1562
  {
1450
- className: C,
1451
- style: $,
1563
+ className: x,
1564
+ style: b,
1452
1565
  controlMaxWidth: "var(--recursica_ui-kit_components_switch_properties_max-width)",
1453
1566
  controlMinWidth: void 0,
1454
- overStyled: t,
1567
+ overStyled: a,
1455
1568
  labelElement: "div",
1456
- formLayout: s,
1457
- labelSize: c,
1458
- labelAlignment: a,
1459
- labelOptionalText: n,
1460
- labelWithEditIcon: l,
1461
- onLabelEditClick: d,
1462
- label: i,
1463
- description: r,
1464
- assistiveText: p,
1569
+ formLayout: r,
1570
+ labelSize: s,
1571
+ labelAlignment: c,
1572
+ labelOptionalText: l,
1573
+ labelWithEditIcon: d,
1574
+ onLabelEditClick: i,
1575
+ label: p,
1576
+ description: u,
1577
+ assistiveText: y,
1465
1578
  assistiveWithIcon: m,
1466
- error: u,
1467
- required: _,
1468
- withAsterisk: h,
1469
- id: b,
1470
- children: /* @__PURE__ */ o(
1471
- wo.Group,
1579
+ error: _,
1580
+ required: h,
1581
+ withAsterisk: v,
1582
+ id: f,
1583
+ readOnly: N && !!z,
1584
+ readOnlyComponent: z,
1585
+ emptyValueComponent: T,
1586
+ readOnlyType: "text",
1587
+ readOnlyValue: P !== void 0 ? P : L,
1588
+ readOnlyNativeProps: t,
1589
+ activeComponent: /* @__PURE__ */ e(
1590
+ Ae.Group,
1472
1591
  {
1473
- ref: z,
1592
+ ref: n,
1474
1593
  ...S,
1475
- children: /* @__PURE__ */ o("div", { className: v.groupRoot, "data-layout": s, children: j.Children.map(g, (y) => j.isValidElement(y) ? j.cloneElement(y, {
1476
- disabled: x || y.props.disabled
1477
- }) : y) })
1594
+ disabled: N || O.disabled,
1595
+ value: P,
1596
+ defaultValue: L,
1597
+ children: /* @__PURE__ */ e("div", { className: W.groupRoot, children: j.Children.map(k, (g) => j.isValidElement(g) ? j.cloneElement(g, {
1598
+ disabled: N || g.props.disabled
1599
+ }) : g) })
1478
1600
  }
1479
1601
  )
1480
1602
  }
1481
1603
  );
1482
1604
  }
1483
1605
  );
1484
- Go.displayName = "SwitchGroup";
1485
- const Mo = f(function({
1486
- overStyled: t = !1,
1487
- readOnly: s,
1488
- readOnlyComponent: c,
1489
- disabled: a,
1490
- thumbIcon: n,
1491
- ...l
1492
- }, d) {
1493
- const i = N(l, t), r = i;
1494
- if (delete r.size, delete r.color, delete r.radius, delete r.variant, s && c)
1495
- return /* @__PURE__ */ o(so, { children: c });
1496
- const p = {
1497
- root: v.root,
1498
- body: v.body,
1499
- track: v.track,
1500
- thumb: v.thumb,
1501
- trackLabel: v.trackLabel,
1502
- labelWrapper: v.labelWrapper,
1503
- label: v.label
1504
- }, m = r.classNames;
1505
- if (m && typeof m == "object" && !Array.isArray(m)) {
1506
- const b = m;
1507
- p.root = b.root ? `${v.root} ${b.root}` : v.root, p.body = b.body ? `${v.body} ${b.body}` : v.body, p.track = b.track ? `${v.track} ${b.track}` : v.track, p.thumb = b.thumb ? `${v.thumb} ${b.thumb}` : v.thumb, p.trackLabel = b.trackLabel ? `${v.trackLabel} ${b.trackLabel}` : v.trackLabel, p.labelWrapper = b.labelWrapper ? `${v.labelWrapper} ${b.labelWrapper}` : v.labelWrapper, p.label = b.label ? `${v.label} ${b.label}` : v.label;
1508
- }
1509
- const u = r.className, _ = u ? `${v.root} ${u}` : v.root, h = /* @__PURE__ */ D("div", { className: v.thumbIconWrapper, children: [
1510
- /* @__PURE__ */ o(re, { className: v.checkIcon }),
1511
- /* @__PURE__ */ o(se, { className: v.closeIcon })
1512
- ] });
1513
- return /* @__PURE__ */ o(
1514
- wo,
1515
- {
1516
- ref: d,
1517
- className: _,
1518
- classNames: p,
1519
- disabled: s || a,
1520
- thumbIcon: n ?? h,
1521
- ...i
1606
+ Ge.displayName = "SwitchGroup";
1607
+ const Me = $(
1608
+ function(t, n) {
1609
+ const {
1610
+ overStyled: a = !1,
1611
+ readOnly: r,
1612
+ readOnlyComponent: s,
1613
+ disabled: c,
1614
+ thumbIcon: l,
1615
+ formLayout: d,
1616
+ labelSize: i,
1617
+ controlMaxWidth: p,
1618
+ controlMinWidth: u,
1619
+ ...y
1620
+ } = t, m = C(y, a), _ = m;
1621
+ delete _.size, delete _.color, delete _.radius, delete _.variant;
1622
+ const h = {
1623
+ root: W.root,
1624
+ body: W.body,
1625
+ track: W.track,
1626
+ thumb: W.thumb,
1627
+ trackLabel: W.trackLabel,
1628
+ labelWrapper: W.labelWrapper,
1629
+ label: W.label
1630
+ }, v = _.classNames;
1631
+ if (v && typeof v == "object" && !Array.isArray(v)) {
1632
+ const N = v;
1633
+ h.root = N.root ? `${W.root} ${N.root}` : W.root, h.body = N.body ? `${W.body} ${N.body}` : W.body, h.track = N.track ? `${W.track} ${N.track}` : W.track, h.thumb = N.thumb ? `${W.thumb} ${N.thumb}` : W.thumb, h.trackLabel = N.trackLabel ? `${W.trackLabel} ${N.trackLabel}` : W.trackLabel, h.labelWrapper = N.labelWrapper ? `${W.labelWrapper} ${N.labelWrapper}` : W.labelWrapper, h.label = N.label ? `${W.label} ${N.label}` : W.label;
1522
1634
  }
1523
- );
1524
- });
1525
- Mo.displayName = "Switch";
1526
- Mo.Group = Go;
1527
- const Tr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Table" }), zr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tabs" }), sr = f(function({ overStyled: t = !1, variant: s = "body", ...c }, a) {
1528
- const n = N(c, t), l = n.className, d = `recursica_brand_typography_${s}`, i = l ? `${d} ${l}` : d;
1529
- return /* @__PURE__ */ o(
1530
- ae,
1635
+ const f = _.className, x = f ? `${W.root} ${f}` : W.root;
1636
+ if (r && s) {
1637
+ const N = !!(_.checked ?? _.defaultChecked), T = /* @__PURE__ */ e(
1638
+ s,
1639
+ {
1640
+ ...t,
1641
+ checked: N,
1642
+ label: _.label
1643
+ }
1644
+ );
1645
+ return d ? /* @__PURE__ */ e(
1646
+ U,
1647
+ {
1648
+ formLayout: d,
1649
+ labelSize: i,
1650
+ controlMaxWidth: p,
1651
+ controlMinWidth: u,
1652
+ children: T
1653
+ }
1654
+ ) : /* @__PURE__ */ e(ne, { children: T });
1655
+ }
1656
+ const b = /* @__PURE__ */ B("div", { className: W.thumbIconWrapper, children: [
1657
+ /* @__PURE__ */ e(so, { className: W.checkIcon }),
1658
+ /* @__PURE__ */ e(no, { className: W.closeIcon })
1659
+ ] }), k = /* @__PURE__ */ e(
1660
+ Ae,
1661
+ {
1662
+ ref: n,
1663
+ className: x,
1664
+ classNames: h,
1665
+ disabled: r || c,
1666
+ thumbIcon: l ?? b,
1667
+ ...m
1668
+ }
1669
+ );
1670
+ return d ? /* @__PURE__ */ e(
1671
+ U,
1672
+ {
1673
+ formLayout: d,
1674
+ labelSize: i,
1675
+ controlMaxWidth: p,
1676
+ controlMinWidth: u,
1677
+ children: k
1678
+ }
1679
+ ) : k;
1680
+ }
1681
+ );
1682
+ Me.displayName = "Switch";
1683
+ Me.Group = Ge;
1684
+ const Er = (o) => /* @__PURE__ */ e("div", { ...o, children: "Table" }), Br = (o) => /* @__PURE__ */ e("div", { ...o, children: "Tabs" }), dr = $(function({ overStyled: t = !1, variant: n = "body", ...a }, r) {
1685
+ const s = C(a, t), c = s.className, l = `recursica_brand_typography_${n}`, d = c ? `${l} ${c}` : l;
1686
+ return /* @__PURE__ */ e(
1687
+ lo,
1531
1688
  {
1532
- ref: a,
1533
- className: i,
1534
- ...n
1689
+ ref: r,
1690
+ className: d,
1691
+ ...s
1535
1692
  }
1536
1693
  );
1537
1694
  });
1538
- sr.displayName = "Text";
1539
- const ar = "TextArea-module__root___3dyeu", nr = "TextArea-module__input___8l36v", Z = {
1540
- root: ar,
1541
- input: nr
1542
- }, cr = f(
1543
- function({
1544
- overStyled: t = !1,
1545
- formLayout: s = "stacked",
1546
- // Label & Wrapper Maps
1547
- labelSize: c,
1548
- labelAlignment: a,
1549
- labelOptionalText: n,
1550
- labelWithEditIcon: l,
1551
- onLabelEditClick: d,
1552
- label: i,
1553
- assistiveText: r,
1554
- assistiveWithIcon: p,
1555
- error: m,
1556
- required: u,
1557
- withAsterisk: _,
1558
- id: h,
1559
- className: b,
1560
- style: C,
1561
- disabled: $,
1562
- readOnly: g,
1563
- readOnlyComponent: x,
1564
- value: W,
1565
- defaultValue: k,
1566
- ...z
1567
- }, S) {
1568
- const I = N(z, t), y = I;
1569
- delete y.size, delete y.variant, delete y.radius;
1570
- const T = {
1571
- wrapper: Z.root,
1695
+ dr.displayName = "Text";
1696
+ const pr = "TextArea-module__root___3dyeu", mr = "TextArea-module__input___8l36v", ee = {
1697
+ root: pr,
1698
+ input: mr
1699
+ }, ur = $(
1700
+ function(t, n) {
1701
+ const {
1702
+ overStyled: a = !1,
1703
+ formLayout: r = "stacked",
1704
+ // Label & Wrapper Maps
1705
+ labelSize: s,
1706
+ labelAlignment: c,
1707
+ labelOptionalText: l,
1708
+ labelWithEditIcon: d,
1709
+ onLabelEditClick: i,
1710
+ label: p,
1711
+ assistiveText: u,
1712
+ assistiveWithIcon: y,
1713
+ error: m,
1714
+ required: _,
1715
+ withAsterisk: h,
1716
+ id: v,
1717
+ className: f,
1718
+ style: x,
1719
+ disabled: b,
1720
+ readOnly: k,
1721
+ readOnlyComponent: N,
1722
+ emptyValueComponent: z,
1723
+ value: T,
1724
+ defaultValue: P,
1725
+ ...L
1726
+ } = t, I = C(L, a), S = I;
1727
+ delete S.size, delete S.variant, delete S.radius;
1728
+ const O = {
1729
+ wrapper: ee.root,
1572
1730
  // The nested Input internal relative wrapper bounding box
1573
- input: Z.input
1574
- }, R = y.classNames;
1575
- if (R && typeof R == "object" && !Array.isArray(R)) {
1576
- const A = R;
1577
- T.wrapper = A.wrapper ? `${Z.root} ${A.wrapper}` : Z.root, T.input = A.input ? `${Z.input} ${A.input}` : Z.input;
1731
+ input: ee.input
1732
+ }, g = S.classNames;
1733
+ if (g && typeof g == "object" && !Array.isArray(g)) {
1734
+ const R = g;
1735
+ O.wrapper = R.wrapper ? `${ee.root} ${R.wrapper}` : ee.root, O.input = R.input ? `${ee.input} ${R.input}` : ee.input;
1578
1736
  }
1579
- return /* @__PURE__ */ o(
1580
- lo,
1737
+ return /* @__PURE__ */ e(
1738
+ X,
1581
1739
  {
1582
- className: b,
1583
- style: C,
1740
+ className: f,
1741
+ style: x,
1584
1742
  controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
1585
1743
  controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
1586
- overStyled: t,
1587
- formLayout: s,
1588
- labelSize: c,
1589
- labelAlignment: a,
1590
- labelOptionalText: n,
1591
- labelWithEditIcon: l,
1592
- onLabelEditClick: d,
1593
- label: i,
1594
- assistiveText: r,
1595
- assistiveWithIcon: p,
1744
+ overStyled: a,
1745
+ formLayout: r,
1746
+ labelSize: s,
1747
+ labelAlignment: c,
1748
+ labelOptionalText: l,
1749
+ labelWithEditIcon: d,
1750
+ onLabelEditClick: i,
1751
+ label: p,
1752
+ assistiveText: u,
1753
+ assistiveWithIcon: y,
1596
1754
  error: m,
1597
- required: u,
1598
- withAsterisk: _,
1599
- id: h,
1600
- readOnly: g,
1601
- readOnlyComponent: x,
1755
+ required: _,
1756
+ withAsterisk: h,
1757
+ id: v,
1758
+ readOnly: k,
1759
+ readOnlyComponent: N,
1760
+ emptyValueComponent: z,
1602
1761
  readOnlyType: "text",
1603
- readOnlyValue: W !== void 0 ? W : k,
1762
+ readOnlyValue: T !== void 0 ? T : P,
1763
+ readOnlyNativeProps: t,
1604
1764
  activeComponent: (
1605
1765
  /* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
1606
- /* @__PURE__ */ o(
1607
- ne,
1766
+ /* @__PURE__ */ e(
1767
+ io,
1608
1768
  {
1609
- ref: S,
1610
- classNames: T,
1611
- disabled: $,
1612
- value: W,
1613
- defaultValue: k,
1769
+ ref: n,
1770
+ classNames: O,
1771
+ disabled: b,
1772
+ value: T,
1773
+ defaultValue: P,
1614
1774
  label: void 0,
1615
1775
  description: void 0,
1616
1776
  error: void 0,
1617
1777
  required: void 0,
1618
1778
  withAsterisk: void 0,
1619
1779
  wrapperProps: {
1620
- "data-disabled": $ ? "true" : void 0,
1780
+ "data-disabled": b ? "true" : void 0,
1621
1781
  "data-error": m ? "true" : void 0
1622
1782
  },
1623
1783
  ...I
@@ -1628,86 +1788,89 @@ const ar = "TextArea-module__root___3dyeu", nr = "TextArea-module__input___8l36v
1628
1788
  );
1629
1789
  }
1630
1790
  );
1631
- cr.displayName = "TextArea";
1632
- const ir = "TextField-module__root___2ZYkG", lr = "TextField-module__input___RL-My", dr = "TextField-module__section___bCIJ0", O = {
1633
- root: ir,
1634
- input: lr,
1635
- section: dr
1636
- }, pr = f(
1637
- function({
1638
- overStyled: t = !1,
1639
- formLayout: s = "stacked",
1640
- // Label & Wrapper Maps
1641
- labelSize: c,
1642
- labelAlignment: a,
1643
- labelOptionalText: n,
1644
- labelWithEditIcon: l,
1645
- onLabelEditClick: d,
1646
- label: i,
1647
- assistiveText: r,
1648
- assistiveWithIcon: p,
1649
- error: m,
1650
- required: u,
1651
- withAsterisk: _,
1652
- id: h,
1653
- className: b,
1654
- style: C,
1655
- disabled: $,
1656
- readOnly: g,
1657
- readOnlyComponent: x,
1658
- value: W,
1659
- defaultValue: k,
1660
- ...z
1661
- }, S) {
1662
- const I = N(z, t), y = I;
1663
- delete y.size, delete y.variant, delete y.radius;
1664
- const T = {
1665
- wrapper: O.root,
1791
+ ur.displayName = "TextArea";
1792
+ const _r = "TextField-module__root___2ZYkG", br = "TextField-module__input___RL-My", yr = "TextField-module__section___bCIJ0", Y = {
1793
+ root: _r,
1794
+ input: br,
1795
+ section: yr
1796
+ }, hr = $(
1797
+ function(t, n) {
1798
+ const {
1799
+ overStyled: a = !1,
1800
+ formLayout: r = "stacked",
1801
+ // Label & Wrapper Maps
1802
+ labelSize: s,
1803
+ labelAlignment: c,
1804
+ labelOptionalText: l,
1805
+ labelWithEditIcon: d,
1806
+ onLabelEditClick: i,
1807
+ label: p,
1808
+ assistiveText: u,
1809
+ assistiveWithIcon: y,
1810
+ error: m,
1811
+ required: _,
1812
+ withAsterisk: h,
1813
+ id: v,
1814
+ className: f,
1815
+ style: x,
1816
+ disabled: b,
1817
+ readOnly: k,
1818
+ readOnlyComponent: N,
1819
+ emptyValueComponent: z,
1820
+ value: T,
1821
+ defaultValue: P,
1822
+ ...L
1823
+ } = t, I = C(L, a), S = I;
1824
+ delete S.size, delete S.variant, delete S.radius;
1825
+ const O = {
1826
+ wrapper: Y.root,
1666
1827
  // The nested Input internal relative wrapper bounding box
1667
- input: O.input,
1668
- section: O.section
1669
- }, R = y.classNames;
1670
- if (R && typeof R == "object" && !Array.isArray(R)) {
1671
- const A = R;
1672
- T.wrapper = A.wrapper ? `${O.root} ${A.wrapper}` : O.root, T.input = A.input ? `${O.input} ${A.input}` : O.input, T.section = A.section ? `${O.section} ${A.section}` : O.section;
1828
+ input: Y.input,
1829
+ section: Y.section
1830
+ }, g = S.classNames;
1831
+ if (g && typeof g == "object" && !Array.isArray(g)) {
1832
+ const R = g;
1833
+ O.wrapper = R.wrapper ? `${Y.root} ${R.wrapper}` : Y.root, O.input = R.input ? `${Y.input} ${R.input}` : Y.input, O.section = R.section ? `${Y.section} ${R.section}` : Y.section;
1673
1834
  }
1674
- return /* @__PURE__ */ o(
1675
- lo,
1835
+ return /* @__PURE__ */ e(
1836
+ X,
1676
1837
  {
1677
- className: b,
1678
- style: C,
1838
+ className: f,
1839
+ style: x,
1679
1840
  controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
1680
1841
  controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
1681
- overStyled: t,
1682
- formLayout: s,
1683
- labelSize: c,
1684
- labelAlignment: a,
1685
- labelOptionalText: n,
1686
- labelWithEditIcon: l,
1687
- onLabelEditClick: d,
1688
- label: i,
1689
- assistiveText: r,
1690
- assistiveWithIcon: p,
1842
+ overStyled: a,
1843
+ formLayout: r,
1844
+ labelSize: s,
1845
+ labelAlignment: c,
1846
+ labelOptionalText: l,
1847
+ labelWithEditIcon: d,
1848
+ onLabelEditClick: i,
1849
+ label: p,
1850
+ assistiveText: u,
1851
+ assistiveWithIcon: y,
1691
1852
  error: m,
1692
- required: u,
1693
- withAsterisk: _,
1694
- id: h,
1695
- readOnly: g,
1696
- readOnlyComponent: x,
1853
+ required: _,
1854
+ withAsterisk: h,
1855
+ id: v,
1856
+ readOnly: k,
1857
+ readOnlyComponent: N,
1858
+ emptyValueComponent: z,
1697
1859
  readOnlyType: "text",
1698
- readOnlyValue: W !== void 0 ? W : k,
1860
+ readOnlyValue: T !== void 0 ? T : P,
1861
+ readOnlyNativeProps: t,
1699
1862
  activeComponent: (
1700
1863
  /* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
1701
- /* @__PURE__ */ o(
1702
- vo,
1864
+ /* @__PURE__ */ e(
1865
+ We,
1703
1866
  {
1704
- ref: S,
1705
- classNames: T,
1706
- disabled: $,
1707
- value: W,
1708
- defaultValue: k,
1867
+ ref: n,
1868
+ classNames: O,
1869
+ disabled: b,
1870
+ value: T,
1871
+ defaultValue: P,
1709
1872
  wrapperProps: {
1710
- "data-disabled": $ ? "true" : void 0,
1873
+ "data-disabled": b ? "true" : void 0,
1711
1874
  "data-error": m ? "true" : void 0
1712
1875
  },
1713
1876
  ...I
@@ -1718,80 +1881,83 @@ const ir = "TextField-module__root___2ZYkG", lr = "TextField-module__input___RL-
1718
1881
  );
1719
1882
  }
1720
1883
  );
1721
- pr.displayName = "TextField";
1722
- const Ir = (e) => /* @__PURE__ */ o("div", { ...e, children: "TimePicker" }), Fr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Timeline" }), _r = f(function({ overStyled: t = !1, order: s = 1, ...c }, a) {
1723
- const n = N(c, t), l = n.className, d = `recursica_brand_typography_h${s}`, i = l ? `${d} ${l}` : d;
1724
- return /* @__PURE__ */ o(
1725
- ce,
1884
+ hr.displayName = "TextField";
1885
+ const jr = (o) => /* @__PURE__ */ e("div", { ...o, children: "TimePicker" }), Vr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Timeline" }), fr = $(function({ overStyled: t = !1, order: n = 1, ...a }, r) {
1886
+ const s = C(a, t), c = s.className, l = `recursica_brand_typography_h${n}`, d = c ? `${l} ${c}` : l;
1887
+ return /* @__PURE__ */ e(
1888
+ co,
1726
1889
  {
1727
- ref: a,
1728
- order: s,
1729
- className: i,
1730
- ...n
1890
+ ref: r,
1891
+ order: n,
1892
+ className: d,
1893
+ ...s
1731
1894
  }
1732
1895
  );
1733
1896
  });
1734
- _r.displayName = "Title";
1735
- const Lr = (e) => /* @__PURE__ */ o("div", { ...e, children: "Toast" }), Br = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tooltip" }), jr = (e) => /* @__PURE__ */ o("div", { ...e, children: "TransferList" });
1897
+ fr.displayName = "Title";
1898
+ const Gr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Toast" }), Mr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Tooltip" }), qr = (o) => /* @__PURE__ */ e("div", { ...o, children: "TransferList" });
1736
1899
  export {
1737
- ho as Accordion,
1738
- uo as AccordionControl,
1739
- Wo as AccordionItem,
1740
- bo as AccordionPanel,
1741
- xe as Avatar,
1742
- Pe as Badge,
1743
- Ae as Breadcrumb,
1744
- Le as Button,
1745
- io as Card,
1746
- To as CardContent,
1747
- So as CardFooter,
1748
- Ro as CardHeader,
1749
- Ao as CardSection,
1750
- Fo as Checkbox,
1751
- Io as CheckboxGroup,
1752
- ft as Chip,
1753
- yt as Container,
1754
- hr as DatePicker,
1755
- Rt as Dropdown,
1756
- ao as EmptyValueRenderer,
1757
- fr as FileInput,
1758
- Nr as FileUpload,
1759
- Tt as Flex,
1760
- It as Group,
1761
- yr as HoverCard,
1762
- zo as Label,
1763
- gt as Layer,
1764
- vr as Link,
1765
- Lt as Loader,
1766
- Cr as Menu,
1767
- gr as Modal,
1768
- xr as NumberInput,
1769
- wr as Pagination,
1770
- Pr as Panel,
1771
- Wr as Popover,
1772
- Eo as Radio,
1773
- jo as RadioGroup,
1774
- Bo as ReadOnlyField,
1775
- Lo as ReadOnlyTextField,
1776
- $r as RecursicaThemeProvider,
1777
- kr as Search,
1778
- Ar as SegmentedControl,
1779
- Rr as Slider,
1780
- Ht as Stack,
1781
- Sr as Stepper,
1782
- Mo as Switch,
1783
- Go as SwitchGroup,
1784
- Tr as Table,
1785
- zr as Tabs,
1786
- sr as Text,
1787
- cr as TextArea,
1788
- pr as TextField,
1789
- Ir as TimePicker,
1790
- Fr as Timeline,
1791
- _r as Title,
1792
- Lr as Toast,
1793
- Br as Tooltip,
1794
- jr as TransferList,
1795
- lo as WithReadOnlyWrapper
1900
+ ve as Accordion,
1901
+ Ne as AccordionControl,
1902
+ Se as AccordionItem,
1903
+ $e as AccordionPanel,
1904
+ wo as Avatar,
1905
+ Po as Badge,
1906
+ Ro as Breadcrumb,
1907
+ Bo as Button,
1908
+ be as Card,
1909
+ Ie as CardContent,
1910
+ Le as CardFooter,
1911
+ Te as CardHeader,
1912
+ Re as CardSection,
1913
+ Be as Checkbox,
1914
+ Ee as CheckboxGroup,
1915
+ kt as Chip,
1916
+ At as Container,
1917
+ xr as DatePicker,
1918
+ Lt as Dropdown,
1919
+ pe as EmptyValueRenderer,
1920
+ gr as FileInput,
1921
+ Wr as FileUpload,
1922
+ zt as Flex,
1923
+ U as FormControlLayout,
1924
+ Et as Group,
1925
+ kr as HoverCard,
1926
+ ze as Label,
1927
+ it as Layer,
1928
+ wr as Link,
1929
+ jt as Loader,
1930
+ Ar as Menu,
1931
+ Pr as Modal,
1932
+ Sr as NumberInput,
1933
+ Or as Pagination,
1934
+ Rr as Panel,
1935
+ Tr as Popover,
1936
+ Ve as Radio,
1937
+ je as RadioGroup,
1938
+ Qt as ReadOnlyBooleanField,
1939
+ Fe as ReadOnlyField,
1940
+ Ut as ReadOnlySwitchField,
1941
+ ce as ReadOnlyTextField,
1942
+ Cr as RecursicaThemeProvider,
1943
+ Lr as Search,
1944
+ Ir as SegmentedControl,
1945
+ zr as Slider,
1946
+ Jt as Stack,
1947
+ Fr as Stepper,
1948
+ Me as Switch,
1949
+ Ge as SwitchGroup,
1950
+ Er as Table,
1951
+ Br as Tabs,
1952
+ dr as Text,
1953
+ ur as TextArea,
1954
+ hr as TextField,
1955
+ jr as TimePicker,
1956
+ Vr as Timeline,
1957
+ fr as Title,
1958
+ Gr as Toast,
1959
+ Mr as Tooltip,
1960
+ qr as TransferList,
1961
+ X as WithReadOnlyWrapper
1796
1962
  };
1797
1963
  //# sourceMappingURL=mantine-adapter.js.map