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