@recursica/mantine-adapter 0.5.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.
@@ -1,142 +1,7 @@
1
- import { jsx as o, jsxs as F, Fragment as L } from "react/jsx-runtime";
2
- import { forwardRef as b, useEffect as R } from "react";
3
- import { Accordion as T, Avatar as j, Badge as z, Button as O } from "@mantine/core";
4
- const V = "Accordion-module__root___Dem6d", k = "Accordion-module__item___7ryVk", M = "Accordion-module__noDivider___Ni2tT", K = "Accordion-module__control___b4wgX", q = "Accordion-module__label___Ss7uW", H = "Accordion-module__chevron___i-HVZ", U = "Accordion-module__iconLeftWrapper___5oLen", G = "Accordion-module__panel___Wx50w", J = "Accordion-module__content___PEM9t", _ = {
5
- root: V,
6
- item: k,
7
- noDivider: M,
8
- control: K,
9
- label: q,
10
- chevron: H,
11
- iconLeftWrapper: U,
12
- panel: G,
13
- content: J
14
- }, D = function({
15
- className: r,
16
- classNames: t,
17
- variant: n = "unstyled",
18
- ...l
19
- }) {
20
- const c = {
21
- root: _.root,
22
- item: _.item,
23
- control: _.control,
24
- label: _.label,
25
- chevron: _.chevron,
26
- panel: _.panel,
27
- content: _.content
28
- };
29
- if (t && typeof t == "object" && !Array.isArray(t)) {
30
- const a = t;
31
- Object.keys(a).forEach((i) => {
32
- c[i] ? c[i] = `${c[i]} ${a[i]}` : c[i] = a[i];
33
- });
34
- }
35
- return /* @__PURE__ */ o(
36
- T,
37
- {
38
- variant: n,
39
- className: r,
40
- classNames: c,
41
- ...l
42
- }
43
- );
44
- };
45
- D.displayName = "Accordion";
46
- const I = b(function({ title: r, leftIcon: t, divider: n = !0, children: l, ...c }, a) {
47
- return /* @__PURE__ */ o(
48
- T.Item,
49
- {
50
- ref: a,
51
- className: n ? void 0 : _.noDivider,
52
- ...c,
53
- children: r ? /* @__PURE__ */ F(L, { children: [
54
- /* @__PURE__ */ o(S, { leftIcon: t, children: r }),
55
- /* @__PURE__ */ o(C, { children: l })
56
- ] }) : l
57
- }
58
- );
59
- });
60
- I.displayName = "AccordionItem";
61
- const S = b(function({ leftIcon: r, children: t, ...n }, l) {
62
- return /* @__PURE__ */ o(
63
- T.Control,
64
- {
65
- ref: l,
66
- icon: r ? /* @__PURE__ */ o("span", { className: _.iconLeftWrapper, "aria-hidden": !0, children: r }) : void 0,
67
- ...n,
68
- children: t
69
- }
70
- );
71
- });
72
- S.displayName = "AccordionControl";
73
- const C = b(
74
- function(r, t) {
75
- return /* @__PURE__ */ o(T.Panel, { ref: t, ...r });
76
- }
77
- );
78
- C.displayName = "AccordionPanel";
79
- const x = D;
80
- x.Item = I;
81
- x.Control = S;
82
- x.Panel = C;
83
- const X = "Avatar-module__root___fXu-J", Y = "Avatar-module__iconWrapper___ojly2", Z = "Avatar-module__textWrapper___zp-jD", Q = "Avatar-module__image___ieqGp", ee = "Avatar-module__placeholder___IDW7-", d = {
84
- root: X,
85
- iconWrapper: Y,
86
- textWrapper: Z,
87
- image: Q,
88
- placeholder: ee
89
- }, oe = b(function({
90
- size: r = "default",
91
- variant: t = "solid",
92
- icon: n,
93
- className: l,
94
- classNames: c,
95
- children: a,
96
- style: i,
97
- src: h,
98
- ...A
99
- }, m) {
100
- const v = {
101
- solid: "filled",
102
- outline: "outline",
103
- ghost: "transparent"
104
- }, P = {
105
- default: "md",
106
- small: "sm",
107
- large: "lg"
108
- };
109
- let g = "text";
110
- h ? g = "image" : n && (g = "icon");
111
- const f = {
112
- root: d.root,
113
- image: d.image,
114
- placeholder: d.placeholder
115
- };
116
- if (c && typeof c == "object" && !Array.isArray(c)) {
117
- const s = c;
118
- f.root = s.root ? `${d.root} ${s.root}` : d.root, f.image = s.image ? `${d.image} ${s.image}` : d.image, f.placeholder = s.placeholder ? `${d.placeholder} ${s.placeholder}` : d.placeholder;
119
- }
120
- return /* @__PURE__ */ o(
121
- j,
122
- {
123
- ref: m,
124
- className: l,
125
- classNames: f,
126
- variant: v[t],
127
- size: P[r],
128
- style: i,
129
- src: h,
130
- "data-variant": t,
131
- "data-size": r,
132
- "data-style": g,
133
- ...A,
134
- children: n != null ? /* @__PURE__ */ o("span", { className: d.iconWrapper, "aria-hidden": !0, children: n }) : a != null ? /* @__PURE__ */ o("span", { className: d.textWrapper, children: a }) : void 0
135
- }
136
- );
137
- });
138
- oe.displayName = "Avatar";
139
- const te = [
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 = [
140
5
  "className",
141
6
  "classNames",
142
7
  "style",
@@ -171,174 +36,1045 @@ const te = [
171
36
  "bdc",
172
37
  "bdr",
173
38
  // Borders
174
- "shadow"
39
+ "shadow",
175
40
  // Effects
176
- ];
177
- function w(e, r) {
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)"
71
+ };
72
+ function b(e, r) {
178
73
  if (r)
179
74
  return e;
180
- const t = { ...e };
181
- for (const n of te)
182
- n in t && delete t[n];
183
- return t;
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;
184
81
  }
185
- const re = "Badge-module__root___5osNT", p = {
186
- root: re
187
- }, ne = b(function({ variant: r = "primary-color", overStyled: t = !1, ...n }, l) {
188
- const c = w(n, t), a = {
189
- root: p.root,
190
- section: p.section,
191
- label: p.label
192
- }, i = c.classNames;
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
96
+ }) {
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;
193
106
  if (i && typeof i == "object" && !Array.isArray(i)) {
194
- const m = i;
195
- a.root = m.root ? `${p.root} ${m.root}` : p.root, a.section = m.section ?? p.section, a.label = m.label ?? p.label;
107
+ const l = i;
108
+ Object.keys(l).forEach((c) => {
109
+ n[c] ? n[c] = `${n[c]} ${l[c]}` : n[c] = l[c];
110
+ });
196
111
  }
197
- const h = c.className, A = h ? `${p.root} ${h}` : p.root;
112
+ const d = t.className;
198
113
  return /* @__PURE__ */ o(
199
- z,
114
+ Z,
200
115
  {
201
- ref: l,
116
+ variant: r,
117
+ className: d,
118
+ classNames: n,
119
+ ...t
120
+ }
121
+ );
122
+ };
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,
128
+ {
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
136
+ }
137
+ );
138
+ });
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,
144
+ {
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
150
+ }
151
+ );
152
+ });
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 _ = {
188
+ solid: "filled",
189
+ outline: "outline",
190
+ ghost: "transparent"
191
+ }, N = {
192
+ default: "md",
193
+ small: "sm",
194
+ large: "lg"
195
+ };
196
+ let y = "text";
197
+ l ? y = "image" : s && (y = "icon");
198
+ const p = {
199
+ root: k.root,
200
+ image: k.image,
201
+ placeholder: k.placeholder
202
+ };
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,
219
+ "data-style": y,
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
222
+ }
223
+ );
224
+ });
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,
202
243
  variant: "filled",
203
244
  "data-variant": r,
204
- ...c,
205
- className: A,
206
- classNames: a
245
+ ...n,
246
+ className: c,
247
+ classNames: i
207
248
  }
208
249
  );
209
250
  });
210
- ne.displayName = "Badge";
211
- const be = (e) => /* @__PURE__ */ o("div", { ...e, children: "Breadcrumb" }), ce = "Button-module__root___Q2R8-", ae = "Button-module__label___UJ3Zt", ie = "Button-module__labelText___rFV5p", le = "Button-module__iconWrapper___uEKPa", se = "Button-module__section___f2mKr", u = {
212
- root: ce,
213
- label: ae,
214
- labelText: ie,
215
- iconWrapper: le,
216
- section: se
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 = {
279
+ root: ro,
280
+ label: no,
281
+ labelText: so,
282
+ iconWrapper: ao,
283
+ section: co
217
284
  };
218
- function de(e) {
285
+ function io(e) {
219
286
  return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
220
287
  }
221
- const ue = b(
288
+ const lo = f(
222
289
  function({
223
290
  variant: r = "solid",
224
- size: t = "default",
225
- icon: n,
226
- children: l,
227
- overStyled: c = !1,
228
- ...a
229
- }, i) {
230
- const h = {
291
+ size: a = "default",
292
+ icon: s,
293
+ children: t,
294
+ overStyled: n = !1,
295
+ ...i
296
+ }, d) {
297
+ const l = {
231
298
  solid: "filled",
232
299
  outline: "outline",
233
300
  text: "subtle"
234
- }, A = {
301
+ }, c = {
235
302
  default: "md",
236
303
  small: "sm"
237
- }, m = w(a, c), v = m, P = !!n || !!v.leftSection, g = !!v.rightSection, f = (P || g) && !de(l);
238
- typeof process < "u" && process.env.NODE_ENV !== "production" && f && !v["aria-label"] && console.warn(
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(
239
308
  '[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
240
309
  );
241
- const s = {
242
- root: u.root,
243
- section: u.section,
244
- label: u.label
245
- }, N = v.classNames;
246
- if (N && typeof N == "object" && !Array.isArray(N)) {
247
- const $ = N;
248
- s.root = $.root ? `${u.root} ${$.root}` : u.root, s.section = $.section ?? u.section, s.label = $.label ?? u.label;
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;
249
318
  }
250
- const B = v.className, E = B ? `${u.root} ${B}` : u.root;
319
+ const v = _.className, $ = v ? `${T.root} ${v}` : T.root;
251
320
  return /* @__PURE__ */ o(
252
- O,
321
+ Fe,
253
322
  {
254
- ref: i,
255
- className: E,
256
- classNames: s,
257
- variant: h[r],
258
- size: A[t],
259
- leftSection: n != null ? /* @__PURE__ */ o("span", { className: u.iconWrapper, "aria-hidden": !0, children: n }) : void 0,
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,
260
329
  "data-variant": r,
261
- "data-size": t,
262
- ...f ? { "data-icon-only": "" } : {},
330
+ "data-size": a,
331
+ ...p ? { "data-icon-only": "" } : {},
263
332
  ...m,
264
- children: /* @__PURE__ */ o("span", { className: u.labelText, children: l })
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
265
418
  }
266
419
  );
267
420
  }
268
421
  );
269
- ue.displayName = "Button";
270
- const ye = (e) => /* @__PURE__ */ o("div", { ...e, children: "Card" }), Ae = (e) => /* @__PURE__ */ o("div", { ...e, children: "Checkbox" }), ge = (e) => /* @__PURE__ */ o("div", { ...e, children: "Chip" }), Ne = (e) => /* @__PURE__ */ o("div", { ...e, children: "DatePicker" }), $e = (e) => /* @__PURE__ */ o("div", { ...e, children: "Dropdown" }), Te = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileInput" }), Pe = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileUpload" }), Se = (e) => /* @__PURE__ */ o("div", { ...e, children: "HoverCard" }), Ce = (e) => /* @__PURE__ */ o("div", { ...e, children: "Link" }), xe = (e) => /* @__PURE__ */ o("div", { ...e, children: "Loader" }), Be = (e) => /* @__PURE__ */ o("div", { ...e, children: "Menu" }), We = (e) => /* @__PURE__ */ o("div", { ...e, children: "Modal" }), Le = (e) => /* @__PURE__ */ o("div", { ...e, children: "NumberInput" }), De = (e) => /* @__PURE__ */ o("div", { ...e, children: "Pagination" }), Ie = (e) => /* @__PURE__ */ o("div", { ...e, children: "Panel" }), we = (e) => /* @__PURE__ */ o("div", { ...e, children: "Popover" }), Ee = (e) => /* @__PURE__ */ o("div", { ...e, children: "Radio" }), Fe = (e) => /* @__PURE__ */ o("div", { ...e, children: "ReadOnlyField" }), Re = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), je = (e) => /* @__PURE__ */ o("div", { ...e, children: "SegmentedControl" }), ze = (e) => /* @__PURE__ */ o("div", { ...e, children: "Slider" }), Oe = (e) => /* @__PURE__ */ o("div", { ...e, children: "Stepper" }), Ve = (e) => /* @__PURE__ */ o("div", { ...e, children: "Switch" }), ke = (e) => /* @__PURE__ */ o("div", { ...e, children: "Table" }), Me = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tabs" }), Ke = (e) => /* @__PURE__ */ o("div", { ...e, children: "TextArea" }), qe = (e) => /* @__PURE__ */ o("div", { ...e, children: "TextField" }), He = (e) => /* @__PURE__ */ o("div", { ...e, children: "TimePicker" }), Ue = (e) => /* @__PURE__ */ o("div", { ...e, children: "Timeline" }), Ge = (e) => /* @__PURE__ */ o("div", { ...e, children: "Toast" }), Je = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tooltip" }), Xe = (e) => /* @__PURE__ */ o("div", { ...e, children: "TransferList" }), me = "_root_1qhn7_3", pe = "_contents_1qhn7_18", y = {
271
- root: me,
272
- contents: pe
273
- }, _e = b(function({ layer: e, contentsOnly: r, children: t, className: n, style: l, ...c }, a) {
274
- const i = r ? n ? `${y.root} ${y.contents} ${n}` : `${y.root} ${y.contents}` : n ? `${y.root} ${n}` : y.root;
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;
275
433
  return /* @__PURE__ */ o(
276
434
  "div",
277
435
  {
278
- ref: a,
279
- className: i,
280
- style: l,
436
+ ref: i,
437
+ className: d,
438
+ style: t,
281
439
  ...r ? {} : { "data-recursica-layer": String(e) },
282
- ...c,
283
- children: t
440
+ ...n,
441
+ children: a
284
442
  }
285
443
  );
286
444
  });
287
- _e.displayName = "Layer";
288
- const W = "data-recursica-theme";
289
- function Ye({
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({
290
464
  children: e,
291
465
  theme: r = "light"
292
466
  }) {
293
- return R(() => {
294
- const t = document.documentElement;
295
- return t.setAttribute(W, r), () => {
296
- t.removeAttribute(W);
467
+ return le(() => {
468
+ const a = document.documentElement;
469
+ return a.setAttribute(ae, r), () => {
470
+ a.removeAttribute(ae);
297
471
  };
298
- }, [r]), /* @__PURE__ */ o(L, { children: e });
472
+ }, [r]), /* @__PURE__ */ o(ie, { children: e });
299
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" });
300
1026
  export {
301
- x as Accordion,
302
- S as AccordionControl,
303
- I as AccordionItem,
304
- C as AccordionPanel,
305
- oe as Avatar,
306
- ne as Badge,
307
- be as Breadcrumb,
308
- ue as Button,
309
- ye as Card,
310
- Ae as Checkbox,
311
- ge as Chip,
312
- Ne as DatePicker,
313
- $e as Dropdown,
314
- Te as FileInput,
315
- Pe as FileUpload,
316
- Se as HoverCard,
317
- _e as Layer,
318
- Ce as Link,
319
- xe as Loader,
320
- Be as Menu,
321
- We as Modal,
322
- Le as NumberInput,
323
- De as Pagination,
324
- Ie as Panel,
325
- we as Popover,
326
- Ee as Radio,
327
- Fe as ReadOnlyField,
328
- Ye as RecursicaThemeProvider,
329
- Re as Search,
330
- je as SegmentedControl,
331
- ze as Slider,
332
- Oe as Stepper,
333
- Ve as Switch,
334
- ke as Table,
335
- Me as Tabs,
336
- Ke as TextArea,
337
- qe as TextField,
338
- He as TimePicker,
339
- Ue as Timeline,
340
- Ge as Toast,
341
- Je as Tooltip,
342
- Xe as TransferList
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
343
1079
  };
344
1080
  //# sourceMappingURL=mantine-adapter.js.map