@recursica/mantine-adapter 0.4.0 → 0.6.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 (56) hide show
  1. package/dist/mantine-adapter.cjs +1 -1
  2. package/dist/mantine-adapter.cjs.map +1 -1
  3. package/dist/mantine-adapter.css +1 -1
  4. package/dist/mantine-adapter.js +1038 -198
  5. package/dist/mantine-adapter.js.map +1 -1
  6. package/dist/src/components/Accordion/Accordion.d.ts +13 -28
  7. package/dist/src/components/AssistiveElement/AssistiveElement.d.ts +10 -0
  8. package/dist/src/components/Avatar/Avatar.d.ts +1 -1
  9. package/dist/src/components/Badge/Badge.d.ts +8 -0
  10. package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +6 -0
  11. package/dist/src/components/Button/Button.d.ts +3 -2
  12. package/dist/src/components/Card/Card.d.ts +38 -0
  13. package/dist/src/components/Checkbox/Checkbox.d.ts +11 -0
  14. package/dist/src/components/Checkbox/CheckboxGroup.d.ts +9 -0
  15. package/dist/src/components/Chip/Chip.d.ts +3 -0
  16. package/dist/src/components/DatePicker/DatePicker.d.ts +3 -0
  17. package/dist/src/components/Dropdown/Dropdown.d.ts +3 -0
  18. package/dist/src/components/FileInput/FileInput.d.ts +3 -0
  19. package/dist/src/components/FileUpload/FileUpload.d.ts +3 -0
  20. package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +18 -0
  21. package/dist/src/components/HoverCard/HoverCard.d.ts +3 -0
  22. package/dist/src/components/Label/Label.d.ts +21 -0
  23. package/dist/src/components/Label/index.d.ts +1 -0
  24. package/dist/src/components/Link/Link.d.ts +3 -0
  25. package/dist/src/components/Loader/Loader.d.ts +3 -0
  26. package/dist/src/components/Menu/Menu.d.ts +3 -0
  27. package/dist/src/components/Modal/Modal.d.ts +3 -0
  28. package/dist/src/components/NumberInput/NumberInput.d.ts +3 -0
  29. package/dist/src/components/Pagination/Pagination.d.ts +3 -0
  30. package/dist/src/components/Panel/Panel.d.ts +3 -0
  31. package/dist/src/components/Popover/Popover.d.ts +3 -0
  32. package/dist/src/components/Radio/Radio.d.ts +3 -0
  33. package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +20 -0
  34. package/dist/src/components/ReadOnlyField/ReadOnlyTextField.d.ts +8 -0
  35. package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +22 -0
  36. package/dist/src/components/ReadOnlyField/index.d.ts +3 -0
  37. package/dist/src/components/Search/Search.d.ts +3 -0
  38. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +3 -0
  39. package/dist/src/components/Slider/Slider.d.ts +3 -0
  40. package/dist/src/components/Stepper/Stepper.d.ts +3 -0
  41. package/dist/src/components/Switch/Switch.d.ts +3 -0
  42. package/dist/src/components/Table/Table.d.ts +3 -0
  43. package/dist/src/components/Tabs/Tabs.d.ts +3 -0
  44. package/dist/src/components/Text/Text.d.ts +17 -0
  45. package/dist/src/components/TextArea/TextArea.d.ts +3 -0
  46. package/dist/src/components/TextField/TextField.d.ts +9 -0
  47. package/dist/src/components/TimePicker/TimePicker.d.ts +3 -0
  48. package/dist/src/components/Timeline/Timeline.d.ts +3 -0
  49. package/dist/src/components/Title/Title.d.ts +13 -0
  50. package/dist/src/components/Toast/Toast.d.ts +3 -0
  51. package/dist/src/components/Tooltip/Tooltip.d.ts +3 -0
  52. package/dist/src/components/TransferList/TransferList.d.ts +3 -0
  53. package/dist/src/components/index.d.ts +37 -1
  54. package/dist/src/utils/ColorSchemeWrapper.d.ts +3 -0
  55. package/dist/src/utils/filterStylingProps.d.ts +35 -0
  56. package/package.json +5 -4
@@ -1,240 +1,1080 @@
1
- import { jsx as r, jsxs as E, Fragment as P } from "react/jsx-runtime";
2
- import { forwardRef as f, useEffect as L } from "react";
3
- import { Button as I, Accordion as g, Avatar as T } from "@mantine/core";
4
- const V = "Button-module__root___Q2R8-", R = "Button-module__label___UJ3Zt", z = "Button-module__labelText___rFV5p", w = "Button-module__iconWrapper___uEKPa", O = "Button-module__section___f2mKr", _ = {
5
- root: V,
6
- label: R,
7
- labelText: z,
8
- iconWrapper: w,
9
- section: O
1
+ import { jsx as o, jsxs as j, Fragment as ie } from "react/jsx-runtime";
2
+ import O, { forwardRef as f, useState as ke, useEffect as le, useCallback as Te, useId as Re } from "react";
3
+ import { Accordion as Z, Avatar as Le, Badge as we, Breadcrumbs as Ee, Button as Fe, Card as K, Input as de, Box as pe, Checkbox as me } from "@mantine/core";
4
+ const Se = [
5
+ "className",
6
+ "classNames",
7
+ "style",
8
+ "styles",
9
+ "vars",
10
+ // Internal structure hooks
11
+ "p",
12
+ "px",
13
+ "py",
14
+ "pt",
15
+ "pb",
16
+ "pl",
17
+ "pr",
18
+ // Padding
19
+ "bg",
20
+ "c",
21
+ "opacity",
22
+ // Color
23
+ "ff",
24
+ "fz",
25
+ "fw",
26
+ "lts",
27
+ "ta",
28
+ "lh",
29
+ "fs",
30
+ "tt",
31
+ "td",
32
+ // Typography
33
+ "bd",
34
+ "bdw",
35
+ "bds",
36
+ "bdc",
37
+ "bdr",
38
+ // Borders
39
+ "shadow",
40
+ // Effects
41
+ "w",
42
+ "miw",
43
+ "maw",
44
+ "h",
45
+ "mih",
46
+ "mah"
47
+ // Dimensions
48
+ ], ze = /* @__PURE__ */ new Set([
49
+ "m",
50
+ "my",
51
+ "mx",
52
+ "mt",
53
+ "mb",
54
+ "ml",
55
+ "mr",
56
+ "gap",
57
+ "rowGap",
58
+ "columnGap",
59
+ "top",
60
+ "left",
61
+ "bottom",
62
+ "right"
63
+ ]), se = {
64
+ "rec-none": "var(--recursica_brand_dimensions_general_none)",
65
+ "rec-sm": "var(--recursica_brand_dimensions_general_sm)",
66
+ "rec-default": "var(--recursica_brand_dimensions_general_default)",
67
+ "rec-md": "var(--recursica_brand_dimensions_general_md)",
68
+ "rec-lg": "var(--recursica_brand_dimensions_general_lg)",
69
+ "rec-xl": "var(--recursica_brand_dimensions_general_xl)",
70
+ "rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
10
71
  };
11
- function q(a) {
12
- return a == null || a === "" ? !1 : typeof a == "string" ? a.trim() !== "" : !0;
72
+ function b(e, r) {
73
+ if (r)
74
+ return e;
75
+ const a = { ...e };
76
+ for (const s of Se)
77
+ s in a && delete a[s];
78
+ for (const [s, t] of Object.entries(a))
79
+ typeof t == "string" && t.startsWith("rec-") && ze.has(s) && t in se && (a[s] = se[t]);
80
+ return a;
13
81
  }
14
- const F = f(
15
- function({
16
- variant: o = "solid",
17
- size: t = "default",
18
- icon: n,
19
- className: l,
20
- classNames: e,
21
- children: c,
22
- style: i,
23
- ...A
24
- }, $) {
25
- const W = {
26
- solid: "filled",
27
- outline: "outline",
28
- text: "subtle"
29
- }, N = {
30
- default: "md",
31
- small: "sm"
32
- }, h = A, y = !!n || !!h.leftSection, m = !!h.rightSection, d = (y || m) && !q(c);
33
- typeof process < "u" && process.env.NODE_ENV !== "production" && d && !h["aria-label"] && console.warn(
34
- '[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
35
- );
36
- const b = {
37
- root: _.root,
38
- section: _.section,
39
- label: _.label
40
- };
41
- if (e && typeof e == "object" && !Array.isArray(e)) {
42
- const v = e;
43
- b.root = v.root ? `${_.root} ${v.root}` : _.root, b.section = v.section ?? _.section, b.label = v.label ?? _.label;
44
- }
45
- return /* @__PURE__ */ r(
46
- I,
47
- {
48
- ref: $,
49
- className: l,
50
- classNames: b,
51
- variant: W[o],
52
- size: N[t],
53
- style: i,
54
- leftSection: n != null ? /* @__PURE__ */ r("span", { className: _.iconWrapper, "aria-hidden": !0, children: n }) : void 0,
55
- "data-variant": o,
56
- "data-size": t,
57
- ...d ? { "data-icon-only": "" } : {},
58
- ...A,
59
- children: /* @__PURE__ */ r("span", { className: _.labelText, children: c })
60
- }
61
- );
62
- }
63
- );
64
- F.displayName = "Button";
65
- const J = "Accordion-module__root___Dem6d", K = "Accordion-module__item___7ryVk", X = "Accordion-module__noDivider___Ni2tT", Z = "Accordion-module__control___b4wgX", G = "Accordion-module__label___Ss7uW", H = "Accordion-module__chevron___i-HVZ", M = "Accordion-module__iconLeftWrapper___5oLen", Q = "Accordion-module__panel___Wx50w", U = "Accordion-module__content___PEM9t", u = {
66
- root: J,
67
- item: K,
68
- noDivider: X,
69
- control: Z,
70
- label: G,
71
- chevron: H,
72
- iconLeftWrapper: M,
73
- panel: Q,
74
- content: U
75
- }, j = function({
76
- className: o,
77
- classNames: t,
78
- variant: n = "unstyled",
79
- ...l
82
+ const Be = "Accordion-module__root___Dem6d", Ie = "Accordion-module__item___7ryVk", Oe = "Accordion-module__noDivider___Ni2tT", je = "Accordion-module__control___b4wgX", qe = "Accordion-module__label___Ss7uW", Ve = "Accordion-module__chevron___i-HVZ", Ge = "Accordion-module__iconLeftWrapper___5oLen", De = "Accordion-module__panel___Wx50w", Me = "Accordion-module__content___PEM9t", S = {
83
+ root: Be,
84
+ item: Ie,
85
+ noDivider: Oe,
86
+ control: je,
87
+ label: qe,
88
+ chevron: Ve,
89
+ iconLeftWrapper: Ge,
90
+ panel: De,
91
+ content: Me
92
+ }, _e = function({
93
+ variant: r = "unstyled",
94
+ overStyled: a = !1,
95
+ ...s
80
96
  }) {
81
- const e = {
82
- root: u.root,
83
- item: u.item,
84
- control: u.control,
85
- label: u.label,
86
- chevron: u.chevron,
87
- panel: u.panel,
88
- content: u.content
89
- };
90
- if (t && typeof t == "object" && !Array.isArray(t)) {
91
- const c = t;
92
- Object.keys(c).forEach((i) => {
93
- e[i] ? e[i] = `${e[i]} ${c[i]}` : e[i] = c[i];
97
+ const t = b(s, a), n = {
98
+ root: S.root,
99
+ item: S.item,
100
+ control: S.control,
101
+ label: S.label,
102
+ chevron: S.chevron,
103
+ panel: S.panel,
104
+ content: S.content
105
+ }, i = t.classNames;
106
+ if (i && typeof i == "object" && !Array.isArray(i)) {
107
+ const l = i;
108
+ Object.keys(l).forEach((c) => {
109
+ n[c] ? n[c] = `${n[c]} ${l[c]}` : n[c] = l[c];
94
110
  });
95
111
  }
96
- return /* @__PURE__ */ r(
97
- g,
112
+ const d = t.className;
113
+ return /* @__PURE__ */ o(
114
+ Z,
98
115
  {
99
- variant: n,
100
- className: o,
101
- classNames: e,
102
- ...l
116
+ variant: r,
117
+ className: d,
118
+ classNames: n,
119
+ ...t
103
120
  }
104
121
  );
105
122
  };
106
- j.displayName = "Accordion";
107
- const D = f(function({ title: o, leftIcon: t, divider: n = !0, children: l, ...e }, c) {
108
- return /* @__PURE__ */ r(
109
- g.Item,
123
+ _e.displayName = "Accordion";
124
+ const ue = f(function({ title: r, leftIcon: a, divider: s = !0, children: t, overStyled: n = !1, ...i }, d) {
125
+ const l = b(i, n), c = l.className, m = [s ? void 0 : S.noDivider, c].filter(Boolean).join(" ") || void 0;
126
+ return /* @__PURE__ */ o(
127
+ Z.Item,
110
128
  {
111
- ref: c,
112
- className: n ? void 0 : u.noDivider,
113
- ...e,
114
- children: o ? /* @__PURE__ */ E(P, { children: [
115
- /* @__PURE__ */ r(x, { leftIcon: t, children: o }),
116
- /* @__PURE__ */ r(B, { children: l })
117
- ] }) : l
129
+ ref: d,
130
+ className: m,
131
+ ...l,
132
+ children: r ? /* @__PURE__ */ j(ie, { children: [
133
+ /* @__PURE__ */ o(Q, { leftIcon: a, children: r }),
134
+ /* @__PURE__ */ o(ee, { children: t })
135
+ ] }) : t
118
136
  }
119
137
  );
120
138
  });
121
- D.displayName = "AccordionItem";
122
- const x = f(function({ leftIcon: o, children: t, ...n }, l) {
123
- return /* @__PURE__ */ r(
124
- g.Control,
139
+ ue.displayName = "AccordionItem";
140
+ const Q = f(function({ leftIcon: r, children: a, overStyled: s = !1, ...t }, n) {
141
+ const i = b(t, s), d = i.className;
142
+ return /* @__PURE__ */ o(
143
+ Z.Control,
125
144
  {
126
- ref: l,
127
- icon: o ? /* @__PURE__ */ r("span", { className: u.iconLeftWrapper, "aria-hidden": !0, children: o }) : void 0,
128
- ...n,
129
- children: t
145
+ ref: n,
146
+ className: d,
147
+ icon: r ? /* @__PURE__ */ o("span", { className: S.iconLeftWrapper, "aria-hidden": !0, children: r }) : void 0,
148
+ ...i,
149
+ children: a
130
150
  }
131
151
  );
132
152
  });
133
- x.displayName = "AccordionControl";
134
- const B = f(
135
- function(o, t) {
136
- return /* @__PURE__ */ r(g.Panel, { ref: t, ...o });
137
- }
138
- );
139
- B.displayName = "AccordionPanel";
140
- const S = j;
141
- S.Item = D;
142
- S.Control = x;
143
- S.Panel = B;
144
- const Y = "Avatar-module__root___fXu-J", k = "Avatar-module__iconWrapper___ojly2", oo = "Avatar-module__textWrapper___zp-jD", to = "Avatar-module__image___ieqGp", eo = "Avatar-module__placeholder___IDW7-", s = {
145
- root: Y,
146
- iconWrapper: k,
147
- textWrapper: oo,
148
- image: to,
149
- placeholder: eo
150
- }, no = f(function({
151
- size: o = "default",
152
- variant: t = "solid",
153
- icon: n,
154
- className: l,
155
- classNames: e,
156
- children: c,
157
- style: i,
158
- src: A,
159
- ...$
160
- }, W) {
161
- const N = {
153
+ Q.displayName = "AccordionControl";
154
+ const ee = f(function({ overStyled: r = !1, ...a }, s) {
155
+ const t = b(a, r), n = t.className;
156
+ return /* @__PURE__ */ o(
157
+ Z.Panel,
158
+ {
159
+ ref: s,
160
+ className: n,
161
+ ...t
162
+ }
163
+ );
164
+ });
165
+ ee.displayName = "AccordionPanel";
166
+ const oe = _e;
167
+ oe.Item = ue;
168
+ oe.Control = Q;
169
+ oe.Panel = ee;
170
+ const He = "Avatar-module__root___fXu-J", Ze = "Avatar-module__iconWrapper___ojly2", Ke = "Avatar-module__textWrapper___zp-jD", Ye = "Avatar-module__image___ieqGp", Ue = "Avatar-module__placeholder___IDW7-", k = {
171
+ root: He,
172
+ iconWrapper: Ze,
173
+ textWrapper: Ke,
174
+ image: Ye,
175
+ placeholder: Ue
176
+ }, Xe = f(function({
177
+ size: r = "default",
178
+ variant: a = "solid",
179
+ icon: s,
180
+ className: t,
181
+ classNames: n,
182
+ children: i,
183
+ style: d,
184
+ src: l,
185
+ ...c
186
+ }, m) {
187
+ const _ = {
162
188
  solid: "filled",
163
189
  outline: "outline",
164
190
  ghost: "transparent"
165
- }, h = {
191
+ }, N = {
166
192
  default: "md",
167
193
  small: "sm",
168
194
  large: "lg"
169
195
  };
170
196
  let y = "text";
171
- A ? y = "image" : n && (y = "icon");
172
- const m = {
173
- root: s.root,
174
- image: s.image,
175
- placeholder: s.placeholder
197
+ l ? y = "image" : s && (y = "icon");
198
+ const p = {
199
+ root: k.root,
200
+ image: k.image,
201
+ placeholder: k.placeholder
176
202
  };
177
- if (e && typeof e == "object" && !Array.isArray(e)) {
178
- const d = e;
179
- m.root = d.root ? `${s.root} ${d.root}` : s.root, m.image = d.image ? `${s.image} ${d.image}` : s.image, m.placeholder = d.placeholder ? `${s.placeholder} ${d.placeholder}` : s.placeholder;
180
- }
181
- return /* @__PURE__ */ r(
182
- T,
183
- {
184
- ref: W,
185
- className: l,
186
- classNames: m,
187
- variant: N[t],
188
- size: h[o],
189
- style: i,
190
- src: A,
191
- "data-variant": t,
192
- "data-size": o,
203
+ if (n && typeof n == "object" && !Array.isArray(n)) {
204
+ const h = n;
205
+ p.root = h.root ? `${k.root} ${h.root}` : k.root, p.image = h.image ? `${k.image} ${h.image}` : k.image, p.placeholder = h.placeholder ? `${k.placeholder} ${h.placeholder}` : k.placeholder;
206
+ }
207
+ return /* @__PURE__ */ o(
208
+ Le,
209
+ {
210
+ ref: m,
211
+ className: t,
212
+ classNames: p,
213
+ variant: _[a],
214
+ size: N[r],
215
+ style: d,
216
+ src: l,
217
+ "data-variant": a,
218
+ "data-size": r,
193
219
  "data-style": y,
194
- ...$,
195
- children: n != null ? /* @__PURE__ */ r("span", { className: s.iconWrapper, "aria-hidden": !0, children: n }) : c != null ? /* @__PURE__ */ r("span", { className: s.textWrapper, children: c }) : void 0
220
+ ...c,
221
+ children: s != null ? /* @__PURE__ */ o("span", { className: k.iconWrapper, "aria-hidden": !0, children: s }) : i != null ? /* @__PURE__ */ o("span", { className: k.textWrapper, children: i }) : void 0
196
222
  }
197
223
  );
198
224
  });
199
- no.displayName = "Avatar";
200
- const ro = "_root_1qhn7_3", ao = "_contents_1qhn7_18", p = {
225
+ Xe.displayName = "Avatar";
226
+ const Je = "Badge-module__root___5osNT", E = {
227
+ root: Je
228
+ }, Qe = f(function({ variant: r = "primary-color", overStyled: a = !1, ...s }, t) {
229
+ const n = b(s, a), i = {
230
+ root: E.root,
231
+ section: E.section,
232
+ label: E.label
233
+ }, d = n.classNames;
234
+ if (d && typeof d == "object" && !Array.isArray(d)) {
235
+ const m = d;
236
+ i.root = m.root ? `${E.root} ${m.root}` : E.root, i.section = m.section ?? E.section, i.label = m.label ?? E.label;
237
+ }
238
+ const l = n.className, c = l ? `${E.root} ${l}` : E.root;
239
+ return /* @__PURE__ */ o(
240
+ we,
241
+ {
242
+ ref: t,
243
+ variant: "filled",
244
+ "data-variant": r,
245
+ ...n,
246
+ className: c,
247
+ classNames: i
248
+ }
249
+ );
250
+ });
251
+ Qe.displayName = "Badge";
252
+ const eo = "Breadcrumb-module__root___x-9ln", oo = "Breadcrumb-module__separator___qrUX-", B = {
253
+ root: eo,
254
+ separator: oo
255
+ }, to = f(
256
+ function({ overStyled: r = !1, ...a }, s) {
257
+ const t = b(a, r), n = {
258
+ root: B.root,
259
+ separator: B.separator
260
+ }, i = t.classNames;
261
+ if (i && typeof i == "object" && !Array.isArray(i)) {
262
+ const c = i;
263
+ n.root = c.root ? `${B.root} ${c.root}` : B.root, n.separator = c.separator ? `${B.separator} ${c.separator}` : B.separator;
264
+ }
265
+ const d = t.className, l = d ? `${B.root} ${d}` : B.root;
266
+ return /* @__PURE__ */ o(
267
+ Ee,
268
+ {
269
+ ref: s,
270
+ ...t,
271
+ className: l,
272
+ classNames: n
273
+ }
274
+ );
275
+ }
276
+ );
277
+ to.displayName = "Breadcrumb";
278
+ const ro = "Button-module__root___Q2R8-", no = "Button-module__label___UJ3Zt", so = "Button-module__labelText___rFV5p", ao = "Button-module__iconWrapper___uEKPa", co = "Button-module__section___f2mKr", T = {
201
279
  root: ro,
202
- contents: ao
203
- }, co = f(function({ layer: a, contentsOnly: o, children: t, className: n, style: l, ...e }, c) {
204
- const i = o ? n ? `${p.root} ${p.contents} ${n}` : `${p.root} ${p.contents}` : n ? `${p.root} ${n}` : p.root;
205
- return /* @__PURE__ */ r(
280
+ label: no,
281
+ labelText: so,
282
+ iconWrapper: ao,
283
+ section: co
284
+ };
285
+ function io(e) {
286
+ return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
287
+ }
288
+ const lo = f(
289
+ function({
290
+ variant: r = "solid",
291
+ size: a = "default",
292
+ icon: s,
293
+ children: t,
294
+ overStyled: n = !1,
295
+ ...i
296
+ }, d) {
297
+ const l = {
298
+ solid: "filled",
299
+ outline: "outline",
300
+ text: "subtle"
301
+ }, c = {
302
+ default: "md",
303
+ small: "sm"
304
+ }, m = b(i, n), _ = m;
305
+ delete _.fullWidth;
306
+ const N = !!s || !!_.leftSection, y = !!_.rightSection, p = (N || y) && !io(t);
307
+ typeof process < "u" && process.env.NODE_ENV !== "production" && p && !_["aria-label"] && console.warn(
308
+ '[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
309
+ );
310
+ const h = {
311
+ root: T.root,
312
+ section: T.section,
313
+ label: T.label
314
+ }, C = _.classNames;
315
+ if (C && typeof C == "object" && !Array.isArray(C)) {
316
+ const g = C;
317
+ h.root = g.root ? `${T.root} ${g.root}` : T.root, h.section = g.section ?? T.section, h.label = g.label ?? T.label;
318
+ }
319
+ const v = _.className, $ = v ? `${T.root} ${v}` : T.root;
320
+ return /* @__PURE__ */ o(
321
+ Fe,
322
+ {
323
+ ref: d,
324
+ className: $,
325
+ classNames: h,
326
+ variant: l[r],
327
+ size: c[a],
328
+ leftSection: s != null ? /* @__PURE__ */ o("span", { className: T.iconWrapper, "aria-hidden": !0, children: s }) : void 0,
329
+ "data-variant": r,
330
+ "data-size": a,
331
+ ...p ? { "data-icon-only": "" } : {},
332
+ ...m,
333
+ children: /* @__PURE__ */ o("span", { className: T.labelText, children: t })
334
+ }
335
+ );
336
+ }
337
+ );
338
+ lo.displayName = "Button";
339
+ const po = "Card-module__root___c9KvZ", mo = "Card-module__header___PTXf2", _o = "Card-module__footer___Mu-JC", uo = "Card-module__section___BRT8H", ho = "Card-module__content___oFIQa", z = {
340
+ root: po,
341
+ header: mo,
342
+ footer: _o,
343
+ section: uo,
344
+ content: ho
345
+ }, he = f(function({ overStyled: r = !1, ...a }, s) {
346
+ const t = b(a, r), n = {
347
+ root: z.root
348
+ }, i = t.classNames;
349
+ if (i && typeof i == "object" && !Array.isArray(i)) {
350
+ const l = i;
351
+ Object.keys(l).forEach((c) => {
352
+ n[c] ? n[c] = `${n[c]} ${l[c]}` : n[c] = l[c];
353
+ });
354
+ }
355
+ const d = t.className;
356
+ return /* @__PURE__ */ o(
357
+ K,
358
+ {
359
+ ref: s,
360
+ className: d,
361
+ classNames: n,
362
+ ...t
363
+ }
364
+ );
365
+ });
366
+ he.displayName = "Card";
367
+ const fe = f(
368
+ function({ overStyled: r = !1, ...a }, s) {
369
+ const t = b(a, r), n = t.className;
370
+ return /* @__PURE__ */ o(
371
+ K.Section,
372
+ {
373
+ ref: s,
374
+ className: n ? `${z.section} ${n}` : z.section,
375
+ ...t
376
+ }
377
+ );
378
+ }
379
+ );
380
+ fe.displayName = "CardSection";
381
+ const be = f(
382
+ function({ overStyled: r = !1, ...a }, s) {
383
+ const t = b(a, r), n = t.className;
384
+ return /* @__PURE__ */ o(
385
+ K.Section,
386
+ {
387
+ ref: s,
388
+ className: n ? `${z.header} ${n}` : z.header,
389
+ ...t
390
+ }
391
+ );
392
+ }
393
+ );
394
+ be.displayName = "CardHeader";
395
+ const Ne = f(
396
+ function({ overStyled: r = !1, ...a }, s) {
397
+ const t = b(a, r), n = t.className;
398
+ return /* @__PURE__ */ o(
399
+ K.Section,
400
+ {
401
+ ref: s,
402
+ className: n ? `${z.footer} ${n}` : z.footer,
403
+ ...t
404
+ }
405
+ );
406
+ }
407
+ );
408
+ Ne.displayName = "CardFooter";
409
+ const ye = f(
410
+ function({ overStyled: r = !1, ...a }, s) {
411
+ const t = b(a, r), n = t.className;
412
+ return /* @__PURE__ */ o(
413
+ "div",
414
+ {
415
+ ref: s,
416
+ className: n ? `${z.content} ${n}` : z.content,
417
+ ...t
418
+ }
419
+ );
420
+ }
421
+ );
422
+ ye.displayName = "CardContent";
423
+ const Y = he;
424
+ Y.Section = fe;
425
+ Y.Header = be;
426
+ Y.Footer = Ne;
427
+ Y.Content = ye;
428
+ const fo = "_root_1qhn7_3", bo = "_contents_1qhn7_18", G = {
429
+ root: fo,
430
+ contents: bo
431
+ }, No = f(function({ layer: e, contentsOnly: r, children: a, className: s, style: t, ...n }, i) {
432
+ const d = r ? s ? `${G.root} ${G.contents} ${s}` : `${G.root} ${G.contents}` : s ? `${G.root} ${s}` : G.root;
433
+ return /* @__PURE__ */ o(
206
434
  "div",
207
435
  {
208
- ref: c,
209
- className: i,
210
- style: l,
211
- ...o ? {} : { "data-recursica-layer": String(a) },
212
- ...e,
213
- children: t
436
+ ref: i,
437
+ className: d,
438
+ style: t,
439
+ ...r ? {} : { "data-recursica-layer": String(e) },
440
+ ...n,
441
+ children: a
214
442
  }
215
443
  );
216
444
  });
217
- co.displayName = "Layer";
218
- const C = "data-recursica-theme";
219
- function _o({
220
- children: a,
221
- theme: o = "light"
445
+ No.displayName = "Layer";
446
+ function te(e, r) {
447
+ const [a, s] = ke(!!e);
448
+ le(() => {
449
+ s(!!e);
450
+ }, [e]);
451
+ const t = Te(
452
+ (n) => {
453
+ s(!1), r == null || r(n);
454
+ },
455
+ [r]
456
+ );
457
+ return { isReadOnly: a, handleEditClick: t };
458
+ }
459
+ const H = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ o(O.Fragment, { children: e });
460
+ H.displayName = "EmptyValueRenderer";
461
+ H.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
462
+ const ae = "data-recursica-theme";
463
+ function Yo({
464
+ children: e,
465
+ theme: r = "light"
222
466
  }) {
223
- return L(() => {
224
- const t = document.documentElement;
225
- return t.setAttribute(C, o), () => {
226
- t.removeAttribute(C);
467
+ return le(() => {
468
+ const a = document.documentElement;
469
+ return a.setAttribute(ae, r), () => {
470
+ a.removeAttribute(ae);
227
471
  };
228
- }, [o]), /* @__PURE__ */ r(P, { children: a });
472
+ }, [r]), /* @__PURE__ */ o(ie, { children: e });
229
473
  }
474
+ const yo = "Label-module__root___e6HXZ", $o = "Label-module__labelText___rieFR", Co = "Label-module__required___Ggrzc", vo = "Label-module__optionalText___Y2yun", go = "Label-module__actionAreaWrapper___ELoZK", xo = "Label-module__editIconWrapper___NG2xW", P = {
475
+ root: yo,
476
+ labelText: $o,
477
+ required: Co,
478
+ optionalText: vo,
479
+ actionAreaWrapper: go,
480
+ editIconWrapper: xo
481
+ }, $e = f(function({
482
+ formLayout: r = "stacked",
483
+ labelSize: a = "default",
484
+ labelAlignment: s,
485
+ required: t = !1,
486
+ labelOptionalText: n,
487
+ labelWithEditIcon: i,
488
+ labelActionArea: d,
489
+ onLabelEditClick: l,
490
+ children: c,
491
+ overStyled: m = !1,
492
+ ..._
493
+ }, N) {
494
+ const y = s || (r === "side-by-side" ? "right" : "left");
495
+ let p;
496
+ t || (n === !0 ? p = "optional" : n && (p = n));
497
+ const h = b(_, m), C = h, v = {
498
+ label: P.root,
499
+ required: P.required
500
+ }, $ = C.classNames;
501
+ if ($ && typeof $ == "object" && !Array.isArray($)) {
502
+ const W = $;
503
+ v.label = W.label ? `${P.root} ${W.label}` : P.root, v.required = W.required ? `${P.required} ${W.required}` : P.required;
504
+ }
505
+ const g = C.className, R = g ? `${P.root} ${g}` : P.root;
506
+ return /* @__PURE__ */ j(
507
+ de.Label,
508
+ {
509
+ ref: N,
510
+ className: R,
511
+ classNames: v,
512
+ "data-layout": r,
513
+ "data-size": a,
514
+ "data-alignment": y,
515
+ required: t && !i,
516
+ ...h,
517
+ children: [
518
+ /* @__PURE__ */ o("span", { className: P.labelText, children: c }),
519
+ p && /* @__PURE__ */ o("span", { className: P.optionalText, children: typeof p == "string" ? `(${p})` : p }),
520
+ d ? /* @__PURE__ */ o("span", { className: P.actionAreaWrapper, children: d }) : i ? /* @__PURE__ */ o(
521
+ "button",
522
+ {
523
+ type: "button",
524
+ className: P.editIconWrapper,
525
+ "data-replaces-asterisk": t ? "true" : void 0,
526
+ onClick: l,
527
+ "aria-label": "Edit",
528
+ children: /* @__PURE__ */ o(
529
+ "svg",
530
+ {
531
+ width: "16",
532
+ height: "16",
533
+ viewBox: "0 0 16 16",
534
+ fill: "none",
535
+ xmlns: "http://www.w3.org/2000/svg",
536
+ children: /* @__PURE__ */ o(
537
+ "path",
538
+ {
539
+ 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",
540
+ stroke: "currentColor",
541
+ strokeLinecap: "round",
542
+ strokeLinejoin: "round"
543
+ }
544
+ )
545
+ }
546
+ )
547
+ }
548
+ ) : null
549
+ ]
550
+ }
551
+ );
552
+ });
553
+ $e.displayName = "Label";
554
+ const Ao = "AssistiveElement-module__root___WhQ43", Po = "AssistiveElement-module__textWrapper___sfy5E", Wo = "AssistiveElement-module__iconWrapper___gObRF", U = {
555
+ root: Ao,
556
+ textWrapper: Po,
557
+ iconWrapper: Wo
558
+ }, ko = () => /* @__PURE__ */ j(
559
+ "svg",
560
+ {
561
+ xmlns: "http://www.w3.org/2000/svg",
562
+ viewBox: "0 0 24 24",
563
+ fill: "none",
564
+ stroke: "currentColor",
565
+ strokeWidth: "2",
566
+ strokeLinecap: "round",
567
+ strokeLinejoin: "round",
568
+ children: [
569
+ /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
570
+ /* @__PURE__ */ o("path", { d: "M12 16v-4" }),
571
+ /* @__PURE__ */ o("path", { d: "M12 8h.01" })
572
+ ]
573
+ }
574
+ ), To = () => /* @__PURE__ */ j(
575
+ "svg",
576
+ {
577
+ xmlns: "http://www.w3.org/2000/svg",
578
+ viewBox: "0 0 24 24",
579
+ fill: "none",
580
+ stroke: "currentColor",
581
+ strokeWidth: "2",
582
+ strokeLinecap: "round",
583
+ strokeLinejoin: "round",
584
+ children: [
585
+ /* @__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" }),
586
+ /* @__PURE__ */ o("path", { d: "M12 9v4" }),
587
+ /* @__PURE__ */ o("path", { d: "M12 17h.01" })
588
+ ]
589
+ }
590
+ ), J = f(function({
591
+ assistiveVariant: r = "help",
592
+ assistiveWithIcon: a = !0,
593
+ children: s,
594
+ className: t,
595
+ overStyled: n = !1,
596
+ ...i
597
+ }, d) {
598
+ const c = b(i, n), m = U.root, _ = t ? `${m} ${t}` : m, N = r === "error" ? To : ko;
599
+ return /* @__PURE__ */ j(
600
+ "div",
601
+ {
602
+ ref: d,
603
+ className: _,
604
+ "data-variant": r,
605
+ style: c.style,
606
+ ...c,
607
+ children: [
608
+ a && /* @__PURE__ */ o("span", { className: U.iconWrapper, children: /* @__PURE__ */ o(N, {}) }),
609
+ /* @__PURE__ */ o("span", { className: U.textWrapper, children: s })
610
+ ]
611
+ }
612
+ );
613
+ });
614
+ J.displayName = "AssistiveElement";
615
+ const Ro = "FormControlWrapper-module__root___c-UHo", Lo = "FormControlWrapper-module__labelSection___hxSY4", wo = "FormControlWrapper-module__inputSection___HenXk", X = {
616
+ root: Ro,
617
+ labelSection: Lo,
618
+ inputSection: wo
619
+ }, q = f(function({
620
+ formLayout: r,
621
+ labelSize: a,
622
+ labelAlignment: s,
623
+ labelOptionalText: t,
624
+ labelWithEditIcon: n,
625
+ labelActionArea: i,
626
+ onLabelEditClick: d,
627
+ label: l,
628
+ description: c,
629
+ assistiveText: m,
630
+ assistiveWithIcon: _ = !0,
631
+ controlMaxWidth: N,
632
+ controlMinWidth: y,
633
+ error: p,
634
+ required: h,
635
+ withAsterisk: C,
636
+ id: v,
637
+ children: $,
638
+ className: g,
639
+ overStyled: R = !1,
640
+ ...W
641
+ }, D) {
642
+ const V = Re(), L = v || `recursica-fc-${V}`, x = m || c, w = x ? `${L}-assistive` : void 0, A = p ? `${L}-error` : void 0, M = b(W, R), re = g || M.className, ne = X.root, Pe = re ? `${ne} ${re}` : ne, We = O.isValidElement($) ? O.cloneElement(
643
+ $,
644
+ {
645
+ ...x && !$.props["aria-describedby"] ? { "aria-describedby": w } : {},
646
+ ...p && !$.props["aria-errormessage"] ? { "aria-errormessage": A } : {}
647
+ }
648
+ ) : $;
649
+ return /* @__PURE__ */ j(
650
+ pe,
651
+ {
652
+ ref: D,
653
+ className: Pe,
654
+ "data-form-layout": r || "stacked",
655
+ "data-form-alignment": s || "left",
656
+ style: {
657
+ ...M.style || {},
658
+ ...N ? { "--form-control-max-width": N } : {},
659
+ ...y ? { "--form-control-min-width": y } : {}
660
+ },
661
+ ...M,
662
+ children: [
663
+ l && /* @__PURE__ */ o("div", { className: X.labelSection, children: /* @__PURE__ */ o(
664
+ $e,
665
+ {
666
+ id: L,
667
+ formLayout: r,
668
+ labelSize: a,
669
+ labelAlignment: s,
670
+ labelOptionalText: t,
671
+ labelWithEditIcon: n,
672
+ labelActionArea: i,
673
+ onLabelEditClick: d,
674
+ required: C ?? h,
675
+ ...M.labelElement === "div" ? { as: "div" } : {},
676
+ children: l
677
+ }
678
+ ) }),
679
+ /* @__PURE__ */ j("div", { className: X.inputSection, children: [
680
+ We,
681
+ p && /* @__PURE__ */ o(
682
+ J,
683
+ {
684
+ id: A,
685
+ assistiveVariant: "error",
686
+ assistiveWithIcon: _,
687
+ children: p
688
+ }
689
+ ),
690
+ !p && x && /* @__PURE__ */ o(
691
+ J,
692
+ {
693
+ id: w,
694
+ assistiveVariant: "help",
695
+ assistiveWithIcon: _,
696
+ children: x
697
+ }
698
+ )
699
+ ] })
700
+ ]
701
+ }
702
+ );
703
+ });
704
+ q.displayName = "FormControlWrapper";
705
+ const Eo = "Checkbox-module__groupRoot___cBS0o", Fo = "Checkbox-module__root___mY3qk", So = "Checkbox-module__body___5yC7q", zo = "Checkbox-module__inner___rTke4", Bo = "Checkbox-module__input___2kt-h", Io = "Checkbox-module__icon___-O7i6", Oo = "Checkbox-module__labelWrapper___GpZkr", jo = "Checkbox-module__label___cwRtI", u = {
706
+ groupRoot: Eo,
707
+ root: Fo,
708
+ body: So,
709
+ inner: zo,
710
+ input: Bo,
711
+ icon: Io,
712
+ labelWrapper: Oo,
713
+ label: jo
714
+ }, Ce = f(
715
+ function({
716
+ overStyled: r = !1,
717
+ formLayout: a = "stacked",
718
+ // Label Wrappers
719
+ labelSize: s,
720
+ labelAlignment: t,
721
+ labelOptionalText: n,
722
+ labelWithEditIcon: i,
723
+ onLabelEditClick: d,
724
+ // Base Mantine Extracted Attributes
725
+ label: l,
726
+ description: c,
727
+ assistiveText: m,
728
+ assistiveWithIcon: _,
729
+ error: N,
730
+ required: y,
731
+ withAsterisk: p,
732
+ id: h,
733
+ className: C,
734
+ style: v,
735
+ children: $,
736
+ readOnly: g,
737
+ readOnlyComponent: R,
738
+ ...W
739
+ }, D) {
740
+ const { isReadOnly: V, handleEditClick: L } = te(
741
+ g,
742
+ d
743
+ ), x = b(W, r), w = x;
744
+ return delete w.size, V && R ? /* @__PURE__ */ o(
745
+ q,
746
+ {
747
+ className: C,
748
+ style: v,
749
+ overStyled: r,
750
+ labelElement: "div",
751
+ formLayout: a,
752
+ labelSize: s,
753
+ labelAlignment: t,
754
+ labelOptionalText: n,
755
+ labelWithEditIcon: i,
756
+ onLabelEditClick: L,
757
+ label: l,
758
+ description: c,
759
+ assistiveText: m,
760
+ assistiveWithIcon: _,
761
+ error: N,
762
+ required: y,
763
+ withAsterisk: p,
764
+ id: h,
765
+ children: R
766
+ }
767
+ ) : /* @__PURE__ */ o(
768
+ q,
769
+ {
770
+ className: C,
771
+ style: v,
772
+ overStyled: r,
773
+ labelElement: "div",
774
+ formLayout: a,
775
+ labelSize: s,
776
+ labelAlignment: t,
777
+ labelOptionalText: n,
778
+ labelWithEditIcon: i,
779
+ onLabelEditClick: L,
780
+ label: l,
781
+ description: c,
782
+ assistiveText: m,
783
+ assistiveWithIcon: _,
784
+ error: N,
785
+ required: y,
786
+ withAsterisk: p,
787
+ id: h,
788
+ children: /* @__PURE__ */ o(
789
+ me.Group,
790
+ {
791
+ ref: D,
792
+ ...x,
793
+ children: /* @__PURE__ */ o("div", { className: u.groupRoot, "data-layout": a, children: O.Children.map($, (A) => O.isValidElement(A) ? O.cloneElement(A, {
794
+ disabled: V || A.props.disabled
795
+ }) : A) })
796
+ }
797
+ )
798
+ }
799
+ );
800
+ }
801
+ );
802
+ Ce.displayName = "CheckboxGroup";
803
+ const ve = f(
804
+ function({ overStyled: r = !1, readOnly: a, readOnlyComponent: s, disabled: t, ...n }, i) {
805
+ const { isReadOnly: d } = te(a), l = b(n, r), c = l;
806
+ if (delete c.size, delete c.color, delete c.radius, delete c.variant, delete c.iconColor, d && s)
807
+ return /* @__PURE__ */ o(
808
+ q,
809
+ {
810
+ overStyled: r,
811
+ ...l,
812
+ children: s
813
+ }
814
+ );
815
+ const m = {
816
+ root: u.root,
817
+ body: u.body,
818
+ inner: u.inner,
819
+ input: u.input,
820
+ icon: u.icon,
821
+ labelWrapper: u.labelWrapper,
822
+ label: u.label
823
+ }, _ = c.classNames;
824
+ if (_ && typeof _ == "object" && !Array.isArray(_)) {
825
+ const p = _;
826
+ m.root = p.root ? `${u.root} ${p.root}` : u.root, m.body = p.body ? `${u.body} ${p.body}` : u.body, m.inner = p.inner ? `${u.inner} ${p.inner}` : u.inner, m.input = p.input ? `${u.input} ${p.input}` : u.input, m.icon = p.icon ? `${u.icon} ${p.icon}` : u.icon, m.labelWrapper = p.labelWrapper ? `${u.labelWrapper} ${p.labelWrapper}` : u.labelWrapper, m.label = p.label ? `${u.label} ${p.label}` : u.label;
827
+ }
828
+ const N = c.className, y = N ? `${u.root} ${N}` : u.root;
829
+ return /* @__PURE__ */ o(
830
+ me,
831
+ {
832
+ ref: i,
833
+ className: y,
834
+ classNames: m,
835
+ disabled: d || t,
836
+ ...l
837
+ }
838
+ );
839
+ }
840
+ );
841
+ ve.displayName = "Checkbox";
842
+ ve.Group = Ce;
843
+ const Uo = (e) => /* @__PURE__ */ o("div", { ...e, children: "Chip" }), Xo = (e) => /* @__PURE__ */ o("div", { ...e, children: "DatePicker" }), Jo = (e) => /* @__PURE__ */ o("div", { ...e, children: "Dropdown" }), Qo = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileInput" }), et = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileUpload" }), ot = (e) => /* @__PURE__ */ o("div", { ...e, children: "HoverCard" }), tt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Link" }), rt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Loader" }), nt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Menu" }), st = (e) => /* @__PURE__ */ o("div", { ...e, children: "Modal" }), at = (e) => /* @__PURE__ */ o("div", { ...e, children: "NumberInput" }), ct = (e) => /* @__PURE__ */ o("div", { ...e, children: "Pagination" }), it = (e) => /* @__PURE__ */ o("div", { ...e, children: "Panel" }), lt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Popover" }), dt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Radio" }), qo = "ReadOnlyField-module__textField___qKn25", ce = {
844
+ textField: qo
845
+ }, ge = ({
846
+ value: e,
847
+ overStyled: r = !1,
848
+ ...a
849
+ }) => {
850
+ const s = b(a, r), t = s.className;
851
+ return /* @__PURE__ */ o(
852
+ pe,
853
+ {
854
+ component: "p",
855
+ className: t ? `${ce.textField} ${t}` : ce.textField,
856
+ ...s,
857
+ children: e != null ? O.isValidElement(e) ? e : String(e) : ""
858
+ }
859
+ );
860
+ };
861
+ ge.displayName = "ReadOnlyTextField";
862
+ const xe = f(
863
+ function({ value: r, type: a = "text", emptyValueComponent: s, overStyled: t = !1, ...n }, i) {
864
+ let d = null;
865
+ const l = b(n, t), c = s || H, _ = (c.check ? c.check(r) : H.check(r)) ? /* @__PURE__ */ o(c, { value: r }) : r;
866
+ switch (a) {
867
+ case "text":
868
+ default:
869
+ d = /* @__PURE__ */ o(
870
+ ge,
871
+ {
872
+ value: _,
873
+ overStyled: t
874
+ }
875
+ );
876
+ break;
877
+ }
878
+ return /* @__PURE__ */ o(
879
+ q,
880
+ {
881
+ ref: i,
882
+ overStyled: t,
883
+ ...l,
884
+ children: d
885
+ }
886
+ );
887
+ }
888
+ );
889
+ xe.displayName = "ReadOnlyField";
890
+ const Ae = f(function({
891
+ readOnly: r,
892
+ readOnlyComponent: a,
893
+ readOnlyType: s = "text",
894
+ readOnlyValue: t,
895
+ activeComponent: n,
896
+ overStyled: i,
897
+ onLabelEditClick: d,
898
+ ...l
899
+ }, c) {
900
+ const { isReadOnly: m, handleEditClick: _ } = te(
901
+ r,
902
+ d
903
+ );
904
+ return m ? a ? /* @__PURE__ */ o(
905
+ q,
906
+ {
907
+ ref: c,
908
+ ...l,
909
+ onLabelEditClick: _,
910
+ overStyled: i,
911
+ children: a
912
+ }
913
+ ) : /* @__PURE__ */ o(
914
+ xe,
915
+ {
916
+ ref: c,
917
+ type: s,
918
+ value: t,
919
+ onLabelEditClick: _,
920
+ overStyled: i,
921
+ ...l
922
+ }
923
+ ) : /* @__PURE__ */ o(
924
+ q,
925
+ {
926
+ ref: c,
927
+ ...l,
928
+ onLabelEditClick: _,
929
+ overStyled: i,
930
+ children: n
931
+ }
932
+ );
933
+ });
934
+ Ae.displayName = "WithReadOnlyWrapper";
935
+ const pt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), mt = (e) => /* @__PURE__ */ o("div", { ...e, children: "SegmentedControl" }), _t = (e) => /* @__PURE__ */ o("div", { ...e, children: "Slider" }), ut = (e) => /* @__PURE__ */ o("div", { ...e, children: "Stepper" }), ht = (e) => /* @__PURE__ */ o("div", { ...e, children: "Switch" }), ft = (e) => /* @__PURE__ */ o("div", { ...e, children: "Table" }), bt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tabs" }), Nt = (e) => /* @__PURE__ */ o("div", { ...e, children: "TextArea" }), Vo = "TextField-module__root___2ZYkG", Go = "TextField-module__input___RL-My", Do = "TextField-module__section___bCIJ0", F = {
936
+ root: Vo,
937
+ input: Go,
938
+ section: Do
939
+ }, Mo = f(
940
+ function({
941
+ overStyled: r = !1,
942
+ formLayout: a = "stacked",
943
+ // Label & Wrapper Maps
944
+ labelSize: s,
945
+ labelAlignment: t,
946
+ labelOptionalText: n,
947
+ labelWithEditIcon: i,
948
+ onLabelEditClick: d,
949
+ label: l,
950
+ assistiveText: c,
951
+ assistiveWithIcon: m,
952
+ error: _,
953
+ required: N,
954
+ withAsterisk: y,
955
+ id: p,
956
+ className: h,
957
+ style: C,
958
+ disabled: v,
959
+ readOnly: $,
960
+ readOnlyComponent: g,
961
+ value: R,
962
+ defaultValue: W,
963
+ ...D
964
+ }, V) {
965
+ const L = b(D, r), x = L;
966
+ delete x.size, delete x.variant, delete x.radius;
967
+ const w = {
968
+ wrapper: F.root,
969
+ // The nested Input internal relative wrapper bounding box
970
+ input: F.input,
971
+ section: F.section
972
+ }, A = x.classNames;
973
+ if (A && typeof A == "object" && !Array.isArray(A)) {
974
+ const I = A;
975
+ w.wrapper = I.wrapper ? `${F.root} ${I.wrapper}` : F.root, w.input = I.input ? `${F.input} ${I.input}` : F.input, w.section = I.section ? `${F.section} ${I.section}` : F.section;
976
+ }
977
+ return /* @__PURE__ */ o(
978
+ Ae,
979
+ {
980
+ className: h,
981
+ style: C,
982
+ controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
983
+ controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
984
+ overStyled: r,
985
+ formLayout: a,
986
+ labelSize: s,
987
+ labelAlignment: t,
988
+ labelOptionalText: n,
989
+ labelWithEditIcon: i,
990
+ onLabelEditClick: d,
991
+ label: l,
992
+ assistiveText: c,
993
+ assistiveWithIcon: m,
994
+ error: _,
995
+ required: N,
996
+ withAsterisk: y,
997
+ id: p,
998
+ readOnly: $,
999
+ readOnlyComponent: g,
1000
+ readOnlyType: "text",
1001
+ readOnlyValue: R !== void 0 ? R : W,
1002
+ activeComponent: (
1003
+ /* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
1004
+ /* @__PURE__ */ o(
1005
+ de,
1006
+ {
1007
+ ref: V,
1008
+ classNames: w,
1009
+ disabled: v,
1010
+ value: R,
1011
+ defaultValue: W,
1012
+ wrapperProps: {
1013
+ "data-disabled": v ? "true" : void 0,
1014
+ "data-error": _ ? "true" : void 0
1015
+ },
1016
+ ...L
1017
+ }
1018
+ )
1019
+ )
1020
+ }
1021
+ );
1022
+ }
1023
+ );
1024
+ Mo.displayName = "TextField";
1025
+ const yt = (e) => /* @__PURE__ */ o("div", { ...e, children: "TimePicker" }), $t = (e) => /* @__PURE__ */ o("div", { ...e, children: "Timeline" }), Ct = (e) => /* @__PURE__ */ o("div", { ...e, children: "Toast" }), vt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tooltip" }), gt = (e) => /* @__PURE__ */ o("div", { ...e, children: "TransferList" });
230
1026
  export {
231
- S as Accordion,
232
- x as AccordionControl,
233
- D as AccordionItem,
234
- B as AccordionPanel,
235
- no as Avatar,
236
- F as Button,
237
- co as Layer,
238
- _o as RecursicaThemeProvider
1027
+ oe as Accordion,
1028
+ Q as AccordionControl,
1029
+ ue as AccordionItem,
1030
+ ee as AccordionPanel,
1031
+ Xe as Avatar,
1032
+ Qe as Badge,
1033
+ to as Breadcrumb,
1034
+ lo as Button,
1035
+ Y as Card,
1036
+ ye as CardContent,
1037
+ Ne as CardFooter,
1038
+ be as CardHeader,
1039
+ fe as CardSection,
1040
+ ve as Checkbox,
1041
+ Ce as CheckboxGroup,
1042
+ Uo as Chip,
1043
+ Xo as DatePicker,
1044
+ Jo as Dropdown,
1045
+ H as EmptyValueRenderer,
1046
+ Qo as FileInput,
1047
+ et as FileUpload,
1048
+ ot as HoverCard,
1049
+ $e as Label,
1050
+ No as Layer,
1051
+ tt as Link,
1052
+ rt as Loader,
1053
+ nt as Menu,
1054
+ st as Modal,
1055
+ at as NumberInput,
1056
+ ct as Pagination,
1057
+ it as Panel,
1058
+ lt as Popover,
1059
+ dt as Radio,
1060
+ xe as ReadOnlyField,
1061
+ ge as ReadOnlyTextField,
1062
+ Yo as RecursicaThemeProvider,
1063
+ pt as Search,
1064
+ mt as SegmentedControl,
1065
+ _t as Slider,
1066
+ ut as Stepper,
1067
+ ht as Switch,
1068
+ ft as Table,
1069
+ bt as Tabs,
1070
+ Nt as TextArea,
1071
+ Mo as TextField,
1072
+ yt as TimePicker,
1073
+ $t as Timeline,
1074
+ Ct as Toast,
1075
+ vt as Tooltip,
1076
+ gt as TransferList,
1077
+ Ae as WithReadOnlyWrapper,
1078
+ te as useReadOnlyControl
239
1079
  };
240
1080
  //# sourceMappingURL=mantine-adapter.js.map