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