ixia-ui-react 1.7.0 → 2.0.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 (276) hide show
  1. package/README.md +24 -1
  2. package/dist/accordion/index.d.ts +41 -0
  3. package/dist/accordion/index.js +142 -0
  4. package/dist/accordion/index.js.map +1 -0
  5. package/dist/alert/index.d.ts +22 -0
  6. package/dist/alert/index.js +1 -0
  7. package/dist/alert-Dcu9R8CY.js +73 -0
  8. package/dist/alert-Dcu9R8CY.js.map +1 -0
  9. package/dist/alert-dialog/index.d.ts +39 -0
  10. package/dist/alert-dialog/index.js +134 -0
  11. package/dist/alert-dialog/index.js.map +1 -0
  12. package/dist/autocomplete/index.d.ts +2 -0
  13. package/dist/autocomplete/index.js +1 -0
  14. package/dist/autocomplete-BfpWVO1l.js +169 -0
  15. package/dist/autocomplete-BfpWVO1l.js.map +1 -0
  16. package/dist/avatar/index.d.ts +2 -0
  17. package/dist/avatar/index.js +1 -0
  18. package/dist/avatar-Bp4gZh21.js +93 -0
  19. package/dist/avatar-Bp4gZh21.js.map +1 -0
  20. package/dist/badge/index.d.ts +2 -0
  21. package/dist/badge/index.js +1 -0
  22. package/dist/badge-Cl-9WTW-.js +160 -0
  23. package/dist/badge-Cl-9WTW-.js.map +1 -0
  24. package/dist/bento-box/index.d.ts +30 -0
  25. package/dist/bento-box/index.js +103 -0
  26. package/dist/bento-box/index.js.map +1 -0
  27. package/dist/breadcrumb/index.d.ts +18 -0
  28. package/dist/breadcrumb/index.js +58 -0
  29. package/dist/breadcrumb/index.js.map +1 -0
  30. package/dist/button/index.d.ts +3 -0
  31. package/dist/button/index.js +1 -0
  32. package/dist/button-BpUC-R1J.js +307 -0
  33. package/dist/button-BpUC-R1J.js.map +1 -0
  34. package/dist/button-group/index.d.ts +2 -0
  35. package/dist/button-group/index.js +1 -0
  36. package/dist/button-group-7azbqlcO.js +269 -0
  37. package/dist/button-group-7azbqlcO.js.map +1 -0
  38. package/dist/button.types-BFKrBCGd.d.ts +10 -0
  39. package/dist/calendar/index.d.ts +63 -0
  40. package/dist/calendar/index.js +292 -0
  41. package/dist/calendar/index.js.map +1 -0
  42. package/dist/chart/index.d.ts +87 -0
  43. package/dist/chart/index.js +262 -0
  44. package/dist/chart/index.js.map +1 -0
  45. package/dist/checkbox/index.d.ts +2 -0
  46. package/dist/checkbox/index.js +1 -0
  47. package/dist/checkbox-BuUZ1Lly.js +54 -0
  48. package/dist/checkbox-BuUZ1Lly.js.map +1 -0
  49. package/dist/checkbox-group/index.d.ts +6 -0
  50. package/dist/checkbox-group/index.js +17 -0
  51. package/dist/checkbox-group/index.js.map +1 -0
  52. package/dist/cn-BDi0DfT5.js +29 -0
  53. package/dist/cn-BDi0DfT5.js.map +1 -0
  54. package/dist/code-block/index.d.ts +50 -0
  55. package/dist/code-block/index.js +208 -0
  56. package/dist/code-block/index.js.map +1 -0
  57. package/dist/collapsible/index.d.ts +2 -0
  58. package/dist/collapsible/index.js +1 -0
  59. package/dist/collapsible-BVqrh0Q0.js +44 -0
  60. package/dist/collapsible-BVqrh0Q0.js.map +1 -0
  61. package/dist/color-channel-slider/index.d.ts +2 -0
  62. package/dist/color-channel-slider/index.js +1 -0
  63. package/dist/color-channel-slider-h8mUPJ35.js +70 -0
  64. package/dist/color-channel-slider-h8mUPJ35.js.map +1 -0
  65. package/dist/color-picker/index.d.ts +137 -0
  66. package/dist/color-picker/index.js +621 -0
  67. package/dist/color-picker/index.js.map +1 -0
  68. package/dist/combobox/index.d.ts +64 -0
  69. package/dist/combobox/index.js +289 -0
  70. package/dist/combobox/index.js.map +1 -0
  71. package/dist/context-menu/index.d.ts +49 -0
  72. package/dist/context-menu/index.js +166 -0
  73. package/dist/context-menu/index.js.map +1 -0
  74. package/dist/dialog/index.d.ts +36 -0
  75. package/dist/dialog/index.js +119 -0
  76. package/dist/dialog/index.js.map +1 -0
  77. package/dist/drawer/index.d.ts +31 -0
  78. package/dist/drawer/index.js +95 -0
  79. package/dist/drawer/index.js.map +1 -0
  80. package/dist/dropzone/index.d.ts +70 -0
  81. package/dist/dropzone/index.js +479 -0
  82. package/dist/dropzone/index.js.map +1 -0
  83. package/dist/field/index.d.ts +2 -0
  84. package/dist/field/index.js +1 -0
  85. package/dist/field-DTL7eA5y.js +254 -0
  86. package/dist/field-DTL7eA5y.js.map +1 -0
  87. package/dist/form/index.d.ts +220 -0
  88. package/dist/form/index.js +3 -0
  89. package/dist/form-BxMg796f.js +192 -0
  90. package/dist/form-BxMg796f.js.map +1 -0
  91. package/dist/has-single-element-child-DLGI0Dh2.js +12 -0
  92. package/dist/has-single-element-child-DLGI0Dh2.js.map +1 -0
  93. package/dist/hooks/index.d.ts +26 -0
  94. package/dist/hooks/index.js +1 -0
  95. package/dist/hooks-DUm-q_ig.js +68 -0
  96. package/dist/hooks-DUm-q_ig.js.map +1 -0
  97. package/dist/icon/index.d.ts +2 -0
  98. package/dist/icon/index.js +1 -0
  99. package/dist/icon-D3JWfCa2.js +85 -0
  100. package/dist/icon-D3JWfCa2.js.map +1 -0
  101. package/dist/icon-container/index.d.ts +10 -0
  102. package/dist/icon-container/index.js +64 -0
  103. package/dist/icon-container/index.js.map +1 -0
  104. package/dist/index-0ZQzIKoE.d.ts +11 -0
  105. package/dist/index-B3MK1QYh.d.ts +11 -0
  106. package/dist/index-BJVMIPq4.d.ts +54 -0
  107. package/dist/index-BsV-u_jc.d.ts +4 -0
  108. package/dist/index-BygR7cUT.d.ts +22 -0
  109. package/dist/index-BzTOLSgZ.d.ts +9 -0
  110. package/dist/index-C15xiG9O.d.ts +14 -0
  111. package/dist/index-C2zco6-C.d.ts +15 -0
  112. package/dist/index-CIDOd4Z8.d.ts +56 -0
  113. package/dist/index-CQti9gFb.d.ts +49 -0
  114. package/dist/index-CiE-Rqit.d.ts +70 -0
  115. package/dist/index-D1kkOg9k.d.ts +14 -0
  116. package/dist/index-DLfdAked.d.ts +34 -0
  117. package/dist/index-DMaW_XF1.d.ts +24 -0
  118. package/dist/index-Db_QGr6S.d.ts +5 -0
  119. package/dist/index-DdFxZ3Xr.d.ts +22 -0
  120. package/dist/index-DfNHJF0t.d.ts +33 -0
  121. package/dist/index-DyQYoAUf.d.ts +29 -0
  122. package/dist/index-N2CBSUDu.d.ts +14 -0
  123. package/dist/index-PuhTRMce.d.ts +11 -0
  124. package/dist/index-Wb_tILYa.d.ts +24 -0
  125. package/dist/index-bVyqfhJS.d.ts +4 -0
  126. package/dist/index-x4f8gnaI.d.ts +15 -0
  127. package/dist/input/index.d.ts +3 -0
  128. package/dist/input/index.js +1 -0
  129. package/dist/input-Laj6dwtK.js +179 -0
  130. package/dist/input-Laj6dwtK.js.map +1 -0
  131. package/dist/input-group/index.d.ts +2 -0
  132. package/dist/input-group/index.js +1 -0
  133. package/dist/input-group-CgdazGrY.js +111 -0
  134. package/dist/input-group-CgdazGrY.js.map +1 -0
  135. package/dist/input-otp/index.d.ts +13 -0
  136. package/dist/input-otp/index.js +44 -0
  137. package/dist/input-otp/index.js.map +1 -0
  138. package/dist/input.types-816rEVWU.d.ts +20 -0
  139. package/dist/input.types-D0gyoaQv.js +48 -0
  140. package/dist/input.types-D0gyoaQv.js.map +1 -0
  141. package/dist/kbd/index.d.ts +9 -0
  142. package/dist/kbd/index.js +25 -0
  143. package/dist/kbd/index.js.map +1 -0
  144. package/dist/label/index.d.ts +8 -0
  145. package/dist/label/index.js +1 -0
  146. package/dist/label-BgpayDvN.js +27 -0
  147. package/dist/label-BgpayDvN.js.map +1 -0
  148. package/dist/layer-tree/index.d.ts +728 -0
  149. package/dist/layer-tree/index.js +685 -0
  150. package/dist/layer-tree/index.js.map +1 -0
  151. package/dist/map/google/index.d.ts +143 -0
  152. package/dist/map/google/index.js +445 -0
  153. package/dist/map/google/index.js.map +1 -0
  154. package/dist/map/index.d.ts +94 -0
  155. package/dist/map/index.js +208 -0
  156. package/dist/map/index.js.map +1 -0
  157. package/dist/map.context-Dw1D7E8m.js +11 -0
  158. package/dist/map.context-Dw1D7E8m.js.map +1 -0
  159. package/dist/menu/index.d.ts +2 -0
  160. package/dist/menu/index.js +1 -0
  161. package/dist/menu-sf13cnGp.js +173 -0
  162. package/dist/menu-sf13cnGp.js.map +1 -0
  163. package/dist/menu-tone-DWBEHoX2.js +22 -0
  164. package/dist/menu-tone-DWBEHoX2.js.map +1 -0
  165. package/dist/meter/index.d.ts +2 -0
  166. package/dist/meter/index.js +1 -0
  167. package/dist/meter-HD5taq57.js +116 -0
  168. package/dist/meter-HD5taq57.js.map +1 -0
  169. package/dist/nav-bar/index.d.ts +25 -0
  170. package/dist/nav-bar/index.js +133 -0
  171. package/dist/nav-bar/index.js.map +1 -0
  172. package/dist/navigation-menu/index.d.ts +43 -0
  173. package/dist/navigation-menu/index.js +176 -0
  174. package/dist/navigation-menu/index.js.map +1 -0
  175. package/dist/number-field/index.d.ts +14 -0
  176. package/dist/number-field/index.js +116 -0
  177. package/dist/number-field/index.js.map +1 -0
  178. package/dist/popover/index.d.ts +2 -0
  179. package/dist/popover/index.js +1 -0
  180. package/dist/popover-B1s4xXrX.js +114 -0
  181. package/dist/popover-B1s4xXrX.js.map +1 -0
  182. package/dist/preview-card/index.d.ts +13 -0
  183. package/dist/preview-card/index.js +35 -0
  184. package/dist/preview-card/index.js.map +1 -0
  185. package/dist/profile/index.d.ts +21 -0
  186. package/dist/profile/index.js +52 -0
  187. package/dist/profile/index.js.map +1 -0
  188. package/dist/progress/index.d.ts +23 -0
  189. package/dist/progress/index.js +97 -0
  190. package/dist/progress/index.js.map +1 -0
  191. package/dist/radar-ping/index.d.ts +11 -0
  192. package/dist/radar-ping/index.js +49 -0
  193. package/dist/radar-ping/index.js.map +1 -0
  194. package/dist/radio-group/index.d.ts +2 -0
  195. package/dist/radio-group/index.js +1 -0
  196. package/dist/radio-group-Dj43u35Z.js +47 -0
  197. package/dist/radio-group-Dj43u35Z.js.map +1 -0
  198. package/dist/resizeable/index.d.ts +11 -0
  199. package/dist/resizeable/index.js +31 -0
  200. package/dist/resizeable/index.js.map +1 -0
  201. package/dist/scroll-area/index.d.ts +11 -0
  202. package/dist/scroll-area/index.js +51 -0
  203. package/dist/scroll-area/index.js.map +1 -0
  204. package/dist/select/index.d.ts +2 -0
  205. package/dist/select/index.js +1 -0
  206. package/dist/select-DncJXYim.js +159 -0
  207. package/dist/select-DncJXYim.js.map +1 -0
  208. package/dist/separator/index.d.ts +2 -0
  209. package/dist/separator/index.js +1 -0
  210. package/dist/separator-DgIQp1cB.js +97 -0
  211. package/dist/separator-DgIQp1cB.js.map +1 -0
  212. package/dist/sidebar/index.d.ts +80 -0
  213. package/dist/sidebar/index.js +334 -0
  214. package/dist/sidebar/index.js.map +1 -0
  215. package/dist/site-header/index.d.ts +22 -0
  216. package/dist/site-header/index.js +55 -0
  217. package/dist/site-header/index.js.map +1 -0
  218. package/dist/skeleton/index.d.ts +4 -0
  219. package/dist/skeleton/index.js +1 -0
  220. package/dist/skeleton-DSG3FWby.js +13 -0
  221. package/dist/skeleton-DSG3FWby.js.map +1 -0
  222. package/dist/slider/index.d.ts +2 -0
  223. package/dist/slider/index.js +1 -0
  224. package/dist/slider-D_XlV4OW.js +114 -0
  225. package/dist/slider-D_XlV4OW.js.map +1 -0
  226. package/dist/slider-group/index.d.ts +46 -0
  227. package/dist/slider-group/index.js +198 -0
  228. package/dist/slider-group/index.js.map +1 -0
  229. package/dist/styles.css +6 -17
  230. package/dist/switch/index.d.ts +2 -0
  231. package/dist/switch/index.js +1 -0
  232. package/dist/switch-DXHixGHe.js +23 -0
  233. package/dist/switch-DXHixGHe.js.map +1 -0
  234. package/dist/table/index.d.ts +920 -0
  235. package/dist/table/index.js +1544 -0
  236. package/dist/table/index.js.map +1 -0
  237. package/dist/tabs/index.d.ts +2 -0
  238. package/dist/tabs/index.js +1 -0
  239. package/dist/tabs-DTC7coap.js +270 -0
  240. package/dist/tabs-DTC7coap.js.map +1 -0
  241. package/dist/text-area/index.d.ts +2 -0
  242. package/dist/text-area/index.js +1 -0
  243. package/dist/text-area-H6HjKnv_.js +50 -0
  244. package/dist/text-area-H6HjKnv_.js.map +1 -0
  245. package/dist/themes/hogarth.css +0 -4
  246. package/dist/themes/mabel.css +0 -4
  247. package/dist/themes/maculata.css +0 -4
  248. package/dist/themes/monadelpha.css +0 -4
  249. package/dist/themes/venus.css +0 -4
  250. package/dist/themes/viridiflora.css +0 -4
  251. package/dist/toast/index.d.ts +65 -0
  252. package/dist/toast/index.js +216 -0
  253. package/dist/toast/index.js.map +1 -0
  254. package/dist/toggle/index.d.ts +2 -0
  255. package/dist/toggle/index.js +1 -0
  256. package/dist/toggle-ZT9thVmz.js +73 -0
  257. package/dist/toggle-ZT9thVmz.js.map +1 -0
  258. package/dist/toggle-group/index.d.ts +10 -0
  259. package/dist/toggle-group/index.js +63 -0
  260. package/dist/toggle-group/index.js.map +1 -0
  261. package/dist/toggle-group-context-CBNZEf1I.js +6 -0
  262. package/dist/toggle-group-context-CBNZEf1I.js.map +1 -0
  263. package/dist/tooltip/index.d.ts +18 -0
  264. package/dist/tooltip/index.js +1 -0
  265. package/dist/tooltip-B6z3tDbW.js +41 -0
  266. package/dist/tooltip-B6z3tDbW.js.map +1 -0
  267. package/dist/trim-text-children-CQRFg2fL.js +33 -0
  268. package/dist/trim-text-children-CQRFg2fL.js.map +1 -0
  269. package/dist/utils/index.d.ts +4 -0
  270. package/dist/utils/index.js +3 -0
  271. package/dist/utils-BI2x7nW5.js +5 -0
  272. package/dist/utils-BI2x7nW5.js.map +1 -0
  273. package/package.json +100 -31
  274. package/dist/index.d.ts +0 -7993
  275. package/dist/index.js +0 -17219
  276. package/dist/index.js.map +0 -1
@@ -0,0 +1,254 @@
1
+ import { t as cn } from "./cn-BDi0DfT5.js";
2
+ import { t as Select } from "./select-DncJXYim.js";
3
+ import { t as Checkbox } from "./checkbox-BuUZ1Lly.js";
4
+ import { r as InputGroupInput, t as InputGroup } from "./input-group-CgdazGrY.js";
5
+ import { t as Input } from "./input-Laj6dwtK.js";
6
+ import { n as Radio, t as RadioGroup } from "./radio-group-Dj43u35Z.js";
7
+ import { t as Slider } from "./slider-D_XlV4OW.js";
8
+ import { t as Switch } from "./switch-DXHixGHe.js";
9
+ import { t as TextArea } from "./text-area-H6HjKnv_.js";
10
+ import { t as Toggle } from "./toggle-ZT9thVmz.js";
11
+ import { cva } from "class-variance-authority";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ import { createFormHookContexts } from "@tanstack/react-form";
14
+ // src/components/field/field.tsx
15
+ function Field$1({ className, children, ref, ...props }) {
16
+ return /* @__PURE__ */ jsx("div", {
17
+ className: cn("flex flex-col gap-2xs", className),
18
+ ref,
19
+ ...props,
20
+ children
21
+ });
22
+ }
23
+ // src/components/form/form-contexts.ts
24
+ const { fieldContext, useFieldContext, formContext, useFormContext } = createFormHookContexts();
25
+ // src/components/field/field-checkbox.tsx
26
+ function FieldCheckbox({ children, ...props }) {
27
+ const field = useFieldContext();
28
+ return /* @__PURE__ */ jsx(Checkbox, {
29
+ checked: field.state.value,
30
+ id: field.name,
31
+ name: field.name,
32
+ onCheckedChange: (checked) => field.handleChange(checked),
33
+ ...props,
34
+ children
35
+ });
36
+ }
37
+ // src/components/field/field-description.tsx
38
+ function FieldDescription({ className, ref, ...props }) {
39
+ return /* @__PURE__ */ jsx("p", {
40
+ className: cn("style-text-prose--1 text-on-surface-variant", className),
41
+ ref,
42
+ ...props
43
+ });
44
+ }
45
+ // src/components/field/field-errors.tsx
46
+ const NO_ERRORS$5 = 0;
47
+ function FieldErrors({ className, children, ref, ...props }) {
48
+ const field = useFieldContext();
49
+ if (field.state.meta.errors.length === NO_ERRORS$5) return;
50
+ return /* @__PURE__ */ jsxs("ul", {
51
+ className: cn("space-y-3xs", className),
52
+ ref,
53
+ ...props,
54
+ children: [field.state.meta.errors.map((error) => /* @__PURE__ */ jsx("li", {
55
+ className: "flex items-center gap-2xs style-text-strong--1 text-error-default",
56
+ children: error.message
57
+ }, error.message)), children]
58
+ });
59
+ }
60
+ // src/components/field/field-input.tsx
61
+ const NO_ERRORS$4 = 0;
62
+ function FieldInput({ className, ref, ...props }) {
63
+ const field = useFieldContext(), isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > NO_ERRORS$4 && !field.state.meta.isValid;
64
+ return /* @__PURE__ */ jsx(Input, {
65
+ "aria-invalid": isInvalid,
66
+ className: cn("", className),
67
+ id: field.name,
68
+ name: field.name,
69
+ onChange: (event) => field.handleChange(event.target.value),
70
+ ref,
71
+ value: field.state.value,
72
+ ...props
73
+ });
74
+ }
75
+ // src/components/field/field-input-group.tsx
76
+ const NO_ERRORS$3 = 0;
77
+ function FieldInputGroup({ className, ref, ...props }) {
78
+ const field = useFieldContext(), isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > NO_ERRORS$3 && !field.state.meta.isValid;
79
+ return /* @__PURE__ */ jsx(InputGroup, {
80
+ "aria-invalid": isInvalid,
81
+ className: cn("", className),
82
+ id: field.name,
83
+ ref,
84
+ ...props
85
+ });
86
+ }
87
+ // src/components/field/field-input-group-input.tsx
88
+ const NO_ERRORS$2 = 0;
89
+ function FieldInputGroupInput({ className, ref, ...props }) {
90
+ const field = useFieldContext(), isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > NO_ERRORS$2 && !field.state.meta.isValid;
91
+ return /* @__PURE__ */ jsx(InputGroupInput, {
92
+ "aria-invalid": isInvalid,
93
+ className: cn("", className),
94
+ id: field.name,
95
+ name: field.name,
96
+ onChange: (event) => field.handleChange(event.target.value),
97
+ ref,
98
+ value: field.state.value,
99
+ ...props
100
+ });
101
+ }
102
+ // src/components/field/field.types.ts
103
+ const fieldLabelVariants = cva("whitespace-nowrap", {
104
+ defaultVariants: {
105
+ size: "medium",
106
+ variant: "primary"
107
+ },
108
+ variants: {
109
+ size: {
110
+ large: "style-text-default-1",
111
+ medium: "style-text-default-0",
112
+ small: "style-text-default--1"
113
+ },
114
+ variant: {
115
+ primary: "text-on-surface",
116
+ secondary: "text-on-surface-variant"
117
+ }
118
+ }
119
+ });
120
+ // src/components/field/field-label.tsx
121
+ const NO_ERRORS$1 = 0;
122
+ function FieldLabel({ size, variant, showRequired = false, className, children, ref, ...props }) {
123
+ const field = useFieldContext(), fieldName = field.name.replace(/(?<letter>[A-Z])/g, " $<letter>").replace(/^./, (str) => str.toUpperCase()), isInvalid = field.state.meta.errors.length > NO_ERRORS$1;
124
+ return /* @__PURE__ */ jsxs("div", {
125
+ className: cn(fieldLabelVariants({
126
+ size,
127
+ variant
128
+ }), className, isInvalid && "text-error-default"),
129
+ ref,
130
+ ...props,
131
+ children: [children || fieldName, showRequired && /* @__PURE__ */ jsx("span", {
132
+ className: "ml-3xs text-error-default",
133
+ children: "*"
134
+ })]
135
+ });
136
+ }
137
+ // src/components/field/field-radio.tsx
138
+ function FieldRadio({ ...props }) {
139
+ const field = useFieldContext();
140
+ return /* @__PURE__ */ jsx(Radio, {
141
+ ...props,
142
+ onChange: (event) => {
143
+ if (event.target instanceof HTMLInputElement) field.handleChange(event.target.value);
144
+ },
145
+ value: field.state.value
146
+ });
147
+ }
148
+ // src/components/field/field-radio-group.tsx
149
+ function FieldRadioGroup({ ...props }) {
150
+ const field = useFieldContext();
151
+ return /* @__PURE__ */ jsx(RadioGroup, {
152
+ name: field.name,
153
+ onValueChange: (value) => field.handleChange(String(value)),
154
+ value: field.state.value,
155
+ ...props
156
+ });
157
+ }
158
+ // src/components/field/field-row.tsx
159
+ function FieldRow({ className, ref, ...props }) {
160
+ return /* @__PURE__ */ jsx("div", {
161
+ className: cn("flex items-center justify-between gap-sm", className),
162
+ ref,
163
+ ...props
164
+ });
165
+ }
166
+ // src/components/field/field-select.tsx
167
+ function FieldSelect({ children, ...props }) {
168
+ const field = useFieldContext();
169
+ return /* @__PURE__ */ jsx(Select, {
170
+ value: field.state.value,
171
+ onValueChange: (value) => field.setValue(value),
172
+ ...props,
173
+ children
174
+ });
175
+ }
176
+ // src/components/field/field-set.tsx
177
+ function FieldSet({ className, ref, ...props }) {
178
+ return /* @__PURE__ */ jsx("div", {
179
+ className: cn("flex w-full flex-col gap-2xs", className),
180
+ ref,
181
+ ...props
182
+ });
183
+ }
184
+ // src/components/field/field-slider.tsx
185
+ function FieldSlider({ className, ref, ...props }) {
186
+ const field = useFieldContext();
187
+ return /* @__PURE__ */ jsx(Slider, {
188
+ className: cn("", className),
189
+ onValueChange: (value) => field.setValue(value),
190
+ ref,
191
+ value: field.state.value,
192
+ ...props
193
+ });
194
+ }
195
+ // src/components/field/field-switch.tsx
196
+ function FieldSwitch({ children, ...props }) {
197
+ const field = useFieldContext();
198
+ return /* @__PURE__ */ jsx(Switch, {
199
+ checked: field.state.value,
200
+ id: field.name,
201
+ name: field.name,
202
+ onCheckedChange: (checked) => field.handleChange(checked),
203
+ ...props,
204
+ children
205
+ });
206
+ }
207
+ // src/components/field/field-text-area.tsx
208
+ const NO_ERRORS = 0;
209
+ function FieldTextArea({ className, ref, ...props }) {
210
+ const field = useFieldContext(), isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > NO_ERRORS && !field.state.meta.isValid;
211
+ return /* @__PURE__ */ jsx(TextArea, {
212
+ "aria-invalid": isInvalid,
213
+ className: cn("", className),
214
+ id: field.name,
215
+ name: field.name,
216
+ onChange: (event) => field.handleChange(event.target.value),
217
+ ref,
218
+ value: field.state.value,
219
+ ...props
220
+ });
221
+ }
222
+ // src/components/field/field-toggle.tsx
223
+ function FieldToggle({ ...props }) {
224
+ const field = useFieldContext();
225
+ return /* @__PURE__ */ jsx(Toggle, {
226
+ id: field.name,
227
+ name: field.name,
228
+ onChange: (_e) => field.handleChange(!field.state.value),
229
+ pressed: field.state.value,
230
+ ...props
231
+ });
232
+ }
233
+ // src/components/field/index.ts
234
+ const Field = Object.assign(Field$1, {
235
+ Checkbox: FieldCheckbox,
236
+ Description: FieldDescription,
237
+ Errors: FieldErrors,
238
+ Input: FieldInput,
239
+ InputGroup: FieldInputGroup,
240
+ InputGroupInput: FieldInputGroupInput,
241
+ Label: FieldLabel,
242
+ Radio: FieldRadio,
243
+ RadioGroup: FieldRadioGroup,
244
+ Row: FieldRow,
245
+ Select: FieldSelect,
246
+ Set: FieldSet,
247
+ Slider: FieldSlider,
248
+ Switch: FieldSwitch,
249
+ TextArea: FieldTextArea,
250
+ Toggle: FieldToggle
251
+ });
252
+ export { FieldCheckbox as _, FieldSlider as a, useFieldContext as b, FieldRow as c, FieldLabel as d, FieldInputGroupInput as f, FieldDescription as g, FieldErrors as h, FieldSwitch as i, FieldRadioGroup as l, FieldInput as m, FieldToggle as n, FieldSet as o, FieldInputGroup as p, FieldTextArea as r, FieldSelect as s, Field as t, FieldRadio as u, fieldContext as v, useFormContext as x, formContext as y };
253
+
254
+ //# sourceMappingURL=field-DTL7eA5y.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-DTL7eA5y.js","names":["Field","NO_ERRORS","NO_ERRORS","NO_ERRORS","NO_ERRORS","NO_ERRORS","FieldRoot"],"sources":["../src/components/field/field.tsx","../src/components/form/form-contexts.ts","../src/components/field/field-checkbox.tsx","../src/components/field/field-description.tsx","../src/components/field/field-errors.tsx","../src/components/field/field-input.tsx","../src/components/field/field-input-group.tsx","../src/components/field/field-input-group-input.tsx","../src/components/field/field.types.ts","../src/components/field/field-label.tsx","../src/components/field/field-radio.tsx","../src/components/field/field-radio-group.tsx","../src/components/field/field-row.tsx","../src/components/field/field-select.tsx","../src/components/field/field-set.tsx","../src/components/field/field-slider.tsx","../src/components/field/field-switch.tsx","../src/components/field/field-text-area.tsx","../src/components/field/field-toggle.tsx","../src/components/field/index.ts"],"sourcesContent":["import { cn } from '@/utils/cn'\n\nimport type { FieldProps } from './field.types'\n\nexport function Field({ className, children, ref, ...props }: FieldProps) {\n return (\n <div className={cn('flex flex-col gap-2xs', className)} ref={ref} {...props}>\n {children}\n </div>\n )\n}\n","import { createFormHookContexts } from '@tanstack/react-form'\n\nexport const { fieldContext, useFieldContext, formContext, useFormContext } =\n createFormHookContexts()\n","import { Checkbox } from '../checkbox'\nimport { useFieldContext } from '../form/form-contexts'\nimport type { FieldCheckboxProps } from './field.types'\n\nexport function FieldCheckbox({ children, ...props }: FieldCheckboxProps) {\n const field = useFieldContext<boolean>()\n\n return (\n <Checkbox\n checked={field.state.value}\n id={field.name}\n name={field.name}\n onCheckedChange={(checked) => field.handleChange(checked)}\n {...props}\n >\n {children}\n </Checkbox>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { FieldDescriptionProps } from './field.types'\n\nexport function FieldDescription({ className, ref, ...props }: FieldDescriptionProps) {\n return (\n <p\n className={cn('style-text-prose--1 text-on-surface-variant', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport { useFieldContext } from '../form/form-contexts'\nimport type { FieldErrorProps } from './field.types'\n\nconst NO_ERRORS = 0\n\nexport function FieldErrors({ className, children, ref, ...props }: FieldErrorProps) {\n const field = useFieldContext()\n\n if (field.state.meta.errors.length === NO_ERRORS) {\n return undefined\n }\n\n return (\n <ul className={cn('space-y-3xs', className)} ref={ref} {...props}>\n {field.state.meta.errors.map((error) => (\n <li\n className=\"flex items-center gap-2xs style-text-strong--1 text-error-default\"\n key={error.message}\n >\n {error.message}\n </li>\n ))}\n {children}\n </ul>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport { useFieldContext } from '../form/form-contexts'\nimport { Input } from '../input'\nimport type { FieldInputProps } from './field.types'\n\nconst NO_ERRORS = 0\n\nexport function FieldInput({ className, ref, ...props }: FieldInputProps) {\n const field = useFieldContext<string>(),\n isInvalid =\n field.state.meta.isTouched &&\n field.state.meta.errors.length > NO_ERRORS &&\n !field.state.meta.isValid\n\n return (\n <Input\n aria-invalid={isInvalid}\n className={cn('', className)}\n id={field.name}\n name={field.name}\n onChange={(event) => field.handleChange(event.target.value)}\n ref={ref}\n value={field.state.value}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport { useFieldContext } from '../form/form-contexts'\nimport { InputGroup } from '../input-group'\nimport type { FieldInputGroupProps } from './field.types'\n\nconst NO_ERRORS = 0\n\nexport function FieldInputGroup({ className, ref, ...props }: FieldInputGroupProps) {\n const field = useFieldContext<string>(),\n isInvalid =\n field.state.meta.isTouched &&\n field.state.meta.errors.length > NO_ERRORS &&\n !field.state.meta.isValid\n\n return (\n <InputGroup\n aria-invalid={isInvalid}\n className={cn('', className)}\n id={field.name}\n ref={ref}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport { useFieldContext } from '../form/form-contexts'\nimport { InputGroupInput } from '../input-group'\nimport type { FieldInputGroupInputProps } from './field.types'\n\nconst NO_ERRORS = 0\n\nexport function FieldInputGroupInput({ className, ref, ...props }: FieldInputGroupInputProps) {\n const field = useFieldContext<string>(),\n isInvalid =\n field.state.meta.isTouched &&\n field.state.meta.errors.length > NO_ERRORS &&\n !field.state.meta.isValid\n\n return (\n <InputGroupInput\n aria-invalid={isInvalid}\n className={cn('', className)}\n id={field.name}\n name={field.name}\n onChange={(event) => field.handleChange(event.target.value)}\n ref={ref}\n value={field.state.value}\n {...props}\n />\n )\n}\n","import { cva } from 'class-variance-authority'\nimport type { VariantProps } from 'class-variance-authority'\n\nimport type { Checkbox } from '../checkbox'\nimport type { Input } from '../input'\nimport type { InputGroup, InputGroupInput } from '../input-group'\nimport type { Radio, RadioGroup } from '../radio-group'\nimport type { Select } from '../select'\nimport type { Slider } from '../slider'\nimport type { Switch } from '../switch'\nimport type { TextArea } from '../text-area'\nimport type { Toggle } from '../toggle'\n\ntype FieldDescriptionProps = React.ComponentProps<'p'>\ntype FieldErrorProps = React.ComponentProps<'ul'>\ntype FieldInputGroupProps = React.ComponentProps<typeof InputGroup>\ntype FieldInputGroupInputProps = React.ComponentProps<typeof InputGroupInput>\ntype FieldInputProps = React.ComponentProps<typeof Input>\ntype FieldLabelProps = React.ComponentProps<'div'> &\n VariantProps<typeof fieldLabelVariants> & {\n showRequired?: boolean\n }\ntype FieldSelectProps = React.ComponentProps<typeof Select>\ntype FieldSliderProps = React.ComponentProps<typeof Slider>\ntype FieldTextAreaProps = React.ComponentProps<typeof TextArea>\ntype FieldCheckboxProps = React.ComponentProps<typeof Checkbox>\ntype FieldRadioProps = React.ComponentProps<typeof Radio>\ntype FieldRadioGroupProps = React.ComponentProps<typeof RadioGroup>\ntype FieldSwitchProps = React.ComponentProps<typeof Switch>\ntype FieldToggleProps = React.ComponentProps<typeof Toggle>\ntype FieldProps = React.ComponentProps<'div'>\ntype FieldSetProps = React.ComponentProps<'div'>\ntype FieldRowProps = React.ComponentProps<'div'>\n\nexport const fieldLabelVariants = cva('whitespace-nowrap', {\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n variants: {\n size: {\n large: 'style-text-default-1',\n medium: 'style-text-default-0',\n small: 'style-text-default--1',\n },\n variant: {\n primary: 'text-on-surface',\n secondary: 'text-on-surface-variant',\n },\n },\n})\n\nexport type {\n FieldDescriptionProps,\n FieldErrorProps,\n FieldInputGroupProps,\n FieldInputGroupInputProps,\n FieldInputProps,\n FieldLabelProps,\n FieldSelectProps,\n FieldSliderProps,\n FieldTextAreaProps,\n FieldCheckboxProps,\n FieldRadioProps,\n FieldRadioGroupProps,\n FieldSwitchProps,\n FieldToggleProps,\n FieldProps,\n FieldSetProps,\n FieldRowProps,\n}\n","import { cn } from '@/utils/cn'\n\nimport { useFieldContext } from '../form/form-contexts'\nimport { fieldLabelVariants } from './field.types'\nimport type { FieldLabelProps } from './field.types'\n\nconst NO_ERRORS = 0\n\nexport function FieldLabel({\n size,\n variant,\n showRequired = false,\n className,\n children,\n ref,\n ...props\n}: FieldLabelProps) {\n const field = useFieldContext(),\n fieldName = field.name\n .replace(/(?<letter>[A-Z])/g, ' $<letter>')\n .replace(/^./, (str) => str.toUpperCase()),\n isInvalid = field.state.meta.errors.length > NO_ERRORS\n\n return (\n <div\n className={cn(\n fieldLabelVariants({ size, variant }),\n className,\n isInvalid && 'text-error-default',\n )}\n ref={ref}\n {...props}\n >\n {children || fieldName}\n {showRequired && <span className=\"ml-3xs text-error-default\">*</span>}\n </div>\n )\n}\n","import { useFieldContext } from '../form/form-contexts'\nimport { Radio } from '../radio-group'\nimport type { FieldRadioProps } from './field.types'\n\nexport function FieldRadio({ ...props }: FieldRadioProps) {\n const field = useFieldContext<string>()\n\n return (\n <Radio\n {...props}\n onChange={(event) => {\n if (event.target instanceof HTMLInputElement) {\n field.handleChange(event.target.value)\n }\n }}\n value={field.state.value}\n />\n )\n}\n","import { useFieldContext } from '../form/form-contexts'\nimport { RadioGroup } from '../radio-group'\nimport type { FieldRadioGroupProps } from './field.types'\n\nexport function FieldRadioGroup({ ...props }: FieldRadioGroupProps) {\n const field = useFieldContext<string>()\n\n return (\n <RadioGroup\n name={field.name}\n onValueChange={(value) => field.handleChange(String(value))}\n value={field.state.value}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { FieldRowProps } from './field.types'\n\nexport function FieldRow({ className, ref, ...props }: FieldRowProps) {\n return (\n <div\n className={cn('flex items-center justify-between gap-sm', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { useFieldContext } from '../form/form-contexts'\nimport { Select } from '../select'\nimport type { FieldSelectProps } from './field.types'\n\nexport function FieldSelect({ children, ...props }: FieldSelectProps) {\n const field = useFieldContext()\n\n return (\n <Select value={field.state.value} onValueChange={(value) => field.setValue(value)} {...props}>\n {children}\n </Select>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { FieldSetProps } from './field.types'\n\nexport function FieldSet({ className, ref, ...props }: FieldSetProps) {\n return <div className={cn('flex w-full flex-col gap-2xs', className)} ref={ref} {...props} />\n}\n","import { cn } from '@/utils/cn'\n\nimport { useFieldContext } from '../form/form-contexts'\nimport { Slider } from '../slider'\nimport type { FieldSliderProps } from './field.types'\n\nexport function FieldSlider({ className, ref, ...props }: FieldSliderProps) {\n const field = useFieldContext<number | readonly number[]>()\n\n return (\n <Slider\n className={cn('', className)}\n onValueChange={(value) => field.setValue(value)}\n ref={ref}\n value={field.state.value}\n {...props}\n />\n )\n}\n","import { useFieldContext } from '../form/form-contexts'\nimport { Switch } from '../switch'\nimport type { FieldSwitchProps } from './field.types'\n\nexport function FieldSwitch({ children, ...props }: FieldSwitchProps) {\n const field = useFieldContext<boolean>()\n\n return (\n <Switch\n checked={field.state.value}\n id={field.name}\n name={field.name}\n onCheckedChange={(checked) => field.handleChange(checked)}\n {...props}\n >\n {children}\n </Switch>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport { useFieldContext } from '../form/form-contexts'\nimport { TextArea } from '../text-area'\nimport type { FieldTextAreaProps } from './field.types'\n\nconst NO_ERRORS = 0\n\nexport function FieldTextArea({ className, ref, ...props }: FieldTextAreaProps) {\n const field = useFieldContext<string>(),\n isInvalid =\n field.state.meta.isTouched &&\n field.state.meta.errors.length > NO_ERRORS &&\n !field.state.meta.isValid\n\n return (\n <TextArea\n aria-invalid={isInvalid}\n className={cn('', className)}\n id={field.name}\n name={field.name}\n onChange={(event) => field.handleChange(event.target.value)}\n ref={ref}\n value={field.state.value}\n {...props}\n />\n )\n}\n","import { useFieldContext } from '../form/form-contexts'\nimport { Toggle } from '../toggle'\nimport type { FieldToggleProps } from './field.types'\n\nexport function FieldToggle({ ...props }: FieldToggleProps) {\n const field = useFieldContext<boolean>()\n\n return (\n <Toggle\n id={field.name}\n name={field.name}\n onChange={(_e) => field.handleChange(!field.state.value)}\n pressed={field.state.value}\n {...props}\n />\n )\n}\n","import { Field as FieldRoot } from './field'\nimport { FieldCheckbox } from './field-checkbox'\nimport { FieldDescription } from './field-description'\nimport { FieldErrors } from './field-errors'\nimport { FieldInput } from './field-input'\nimport { FieldInputGroup } from './field-input-group'\nimport { FieldInputGroupInput } from './field-input-group-input'\nimport { FieldLabel } from './field-label'\nimport { FieldRadio } from './field-radio'\nimport { FieldRadioGroup } from './field-radio-group'\nimport { FieldRow } from './field-row'\nimport { FieldSelect } from './field-select'\nimport { FieldSet } from './field-set'\nimport { FieldSlider } from './field-slider'\nimport { FieldSwitch } from './field-switch'\nimport { FieldTextArea } from './field-text-area'\nimport { FieldToggle } from './field-toggle'\n\nconst Field = Object.assign(FieldRoot, {\n Checkbox: FieldCheckbox,\n Description: FieldDescription,\n Errors: FieldErrors,\n Input: FieldInput,\n InputGroup: FieldInputGroup,\n InputGroupInput: FieldInputGroupInput,\n Label: FieldLabel,\n Radio: FieldRadio,\n RadioGroup: FieldRadioGroup,\n Row: FieldRow,\n Select: FieldSelect,\n Set: FieldSet,\n Slider: FieldSlider,\n Switch: FieldSwitch,\n TextArea: FieldTextArea,\n Toggle: FieldToggle,\n})\n\nexport type {\n FieldDescriptionProps,\n FieldErrorProps,\n FieldInputProps,\n FieldLabelProps,\n FieldProps,\n FieldSelectProps,\n FieldSliderProps,\n FieldTextAreaProps,\n FieldCheckboxProps,\n FieldRadioProps,\n FieldRadioGroupProps,\n FieldSwitchProps,\n FieldToggleProps,\n FieldInputGroupInputProps,\n FieldInputGroupProps,\n FieldSetProps,\n FieldRowProps,\n} from './field.types'\nexport { FieldDescription } from './field-description'\nexport { FieldErrors } from './field-errors'\nexport { FieldInput } from './field-input'\nexport { FieldLabel } from './field-label'\nexport { FieldSlider } from './field-slider'\nexport { FieldSelect } from './field-select'\nexport { FieldTextArea } from './field-text-area'\nexport { FieldCheckbox } from './field-checkbox'\nexport { FieldRadio } from './field-radio'\nexport { FieldRadioGroup } from './field-radio-group'\nexport { FieldSwitch } from './field-switch'\nexport { FieldToggle } from './field-toggle'\nexport { FieldInputGroup } from './field-input-group'\nexport { FieldInputGroupInput } from './field-input-group-input'\nexport { FieldSet } from './field-set'\nexport { FieldRow } from './field-row'\n\nexport { Field }\n"],"mappings":"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"}
@@ -0,0 +1,220 @@
1
+ import { t as Button } from "../index-bVyqfhJS.js";
2
+ import { _ as FieldCheckbox, a as FieldSlider, c as FieldRow, d as FieldLabel, f as FieldInputGroupInput, g as FieldDescription, h as FieldErrors, i as FieldSwitch, l as FieldRadioGroup, m as FieldInput, n as FieldToggle, o as FieldSet, p as FieldInputGroup, r as FieldTextArea, s as FieldSelect, u as FieldRadio } from "../index-CiE-Rqit.js";
3
+ import { VariantProps } from "class-variance-authority";
4
+ type FormProps$1 = React.ComponentProps<'form'>;
5
+ declare function Form$1({ className, ref, ...props }: FormProps$1): import("react").JSX.Element;
6
+ type FormProps = React.ComponentProps<'form'>;
7
+ type FormSubmitProps = React.ComponentProps<typeof Button>;
8
+ type FormResetProps = React.ComponentProps<typeof Button>;
9
+ type FormErrorsProps = React.ComponentProps<'div'> & {
10
+ headerLabel?: string;
11
+ };
12
+ type FormSetProps = React.ComponentProps<'div'>;
13
+ type FormSetHeadingProps = React.ComponentProps<'span'> & VariantProps<typeof formSetHeadingVariants>;
14
+ type FormSetContentProps = React.ComponentProps<'div'>;
15
+ type FormFooterProps = React.ComponentProps<'div'> & {
16
+ orientation?: 'horizontal' | 'vertical';
17
+ };
18
+ declare const formSetHeadingVariants: (props?: ({
19
+ size?: "large" | "medium" | "small" | null | undefined;
20
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
21
+ export declare function FormErrors({ className, children, ref, ...props }: FormErrorsProps): import("react").JSX.Element;
22
+ export declare function FormFooter({ orientation, className, ref, ...props }: FormFooterProps): import("react").JSX.Element;
23
+ export declare function FormReset({ className, ref, ...props }: FormResetProps): import("react").JSX.Element;
24
+ export declare function FormSet({ className, ref, ...props }: FormSetProps): import("react").JSX.Element;
25
+ export declare function FormSetContent({ className, ref, ...props }: FormSetContentProps): import("react").JSX.Element;
26
+ export declare function FormSetHeading({ size, className, ref, ...props }: FormSetHeadingProps): import("react").JSX.Element;
27
+ export declare function FormSubmit({ className, children, ref, ...props }: FormSubmitProps): import("react").JSX.Element;
28
+ export declare const fieldContext: import("react").Context<import("@tanstack/react-form").AnyFieldApi>, useFieldContext: <TData>() => import("@tanstack/react-form").FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, formContext: import("react").Context<import("@tanstack/react-form").AnyFormApi>, useFormContext: () => import("@tanstack/react-form").ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
29
+ export declare const useAppForm: <TFormData, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TSubmitMeta>(props: import("@tanstack/react-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
30
+ readonly Checkbox: typeof FieldCheckbox;
31
+ readonly Description: typeof FieldDescription;
32
+ readonly Errors: typeof FieldErrors;
33
+ readonly Input: typeof FieldInput;
34
+ readonly InputGroup: typeof FieldInputGroup;
35
+ readonly InputGroupInput: typeof FieldInputGroupInput;
36
+ readonly Label: typeof FieldLabel;
37
+ readonly Radio: typeof FieldRadio;
38
+ readonly RadioGroup: typeof FieldRadioGroup;
39
+ readonly Row: typeof FieldRow;
40
+ readonly Select: typeof FieldSelect;
41
+ readonly Set: typeof FieldSet;
42
+ readonly Slider: typeof FieldSlider;
43
+ readonly Switch: typeof FieldSwitch;
44
+ readonly TextArea: typeof FieldTextArea;
45
+ readonly Toggle: typeof FieldToggle;
46
+ }, {
47
+ readonly Errors: typeof FormErrors;
48
+ readonly Footer: typeof FormFooter;
49
+ readonly Reset: typeof FormReset;
50
+ readonly Set: typeof FormSet;
51
+ readonly SetContent: typeof FormSetContent;
52
+ readonly SetHeading: typeof FormSetHeading;
53
+ readonly Submit: typeof FormSubmit;
54
+ }>, withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps extends object = {}>({ render, props, defaultValues }: import("@tanstack/react-form").WithFieldGroupProps<TFieldGroupData, {
55
+ readonly Checkbox: typeof FieldCheckbox;
56
+ readonly Description: typeof FieldDescription;
57
+ readonly Errors: typeof FieldErrors;
58
+ readonly Input: typeof FieldInput;
59
+ readonly InputGroup: typeof FieldInputGroup;
60
+ readonly InputGroupInput: typeof FieldInputGroupInput;
61
+ readonly Label: typeof FieldLabel;
62
+ readonly Radio: typeof FieldRadio;
63
+ readonly RadioGroup: typeof FieldRadioGroup;
64
+ readonly Row: typeof FieldRow;
65
+ readonly Select: typeof FieldSelect;
66
+ readonly Set: typeof FieldSet;
67
+ readonly Slider: typeof FieldSlider;
68
+ readonly Switch: typeof FieldSwitch;
69
+ readonly TextArea: typeof FieldTextArea;
70
+ readonly Toggle: typeof FieldToggle;
71
+ }, {
72
+ readonly Errors: typeof FormErrors;
73
+ readonly Footer: typeof FormFooter;
74
+ readonly Reset: typeof FormReset;
75
+ readonly Set: typeof FormSet;
76
+ readonly SetContent: typeof FormSetContent;
77
+ readonly SetHeading: typeof FormSetHeading;
78
+ readonly Submit: typeof FormSubmit;
79
+ }, TSubmitMeta, TRenderProps>) => <TFormData, TFields extends import("@tanstack/react-form").DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | import("@tanstack/react-form").FieldsMap<TFormData, TFieldGroupData>, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TFormSubmitMeta>(params: import("react").PropsWithChildren<NoInfer<TRenderProps> & {
80
+ form: import("@tanstack/react-form").AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | import("@tanstack/react-form").FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {
81
+ readonly Checkbox: typeof FieldCheckbox;
82
+ readonly Description: typeof FieldDescription;
83
+ readonly Errors: typeof FieldErrors;
84
+ readonly Input: typeof FieldInput;
85
+ readonly InputGroup: typeof FieldInputGroup;
86
+ readonly InputGroupInput: typeof FieldInputGroupInput;
87
+ readonly Label: typeof FieldLabel;
88
+ readonly Radio: typeof FieldRadio;
89
+ readonly RadioGroup: typeof FieldRadioGroup;
90
+ readonly Row: typeof FieldRow;
91
+ readonly Select: typeof FieldSelect;
92
+ readonly Set: typeof FieldSet;
93
+ readonly Slider: typeof FieldSlider;
94
+ readonly Switch: typeof FieldSwitch;
95
+ readonly TextArea: typeof FieldTextArea;
96
+ readonly Toggle: typeof FieldToggle;
97
+ }, {
98
+ readonly Errors: typeof FormErrors;
99
+ readonly Footer: typeof FormFooter;
100
+ readonly Reset: typeof FormReset;
101
+ readonly Set: typeof FormSet;
102
+ readonly SetContent: typeof FormSetContent;
103
+ readonly SetHeading: typeof FormSetHeading;
104
+ readonly Submit: typeof FormSubmit;
105
+ }> | import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {
106
+ readonly Checkbox: typeof FieldCheckbox;
107
+ readonly Description: typeof FieldDescription;
108
+ readonly Errors: typeof FieldErrors;
109
+ readonly Input: typeof FieldInput;
110
+ readonly InputGroup: typeof FieldInputGroup;
111
+ readonly InputGroupInput: typeof FieldInputGroupInput;
112
+ readonly Label: typeof FieldLabel;
113
+ readonly Radio: typeof FieldRadio;
114
+ readonly RadioGroup: typeof FieldRadioGroup;
115
+ readonly Row: typeof FieldRow;
116
+ readonly Select: typeof FieldSelect;
117
+ readonly Set: typeof FieldSet;
118
+ readonly Slider: typeof FieldSlider;
119
+ readonly Switch: typeof FieldSwitch;
120
+ readonly TextArea: typeof FieldTextArea;
121
+ readonly Toggle: typeof FieldToggle;
122
+ }, {
123
+ readonly Errors: typeof FormErrors;
124
+ readonly Footer: typeof FormFooter;
125
+ readonly Reset: typeof FormReset;
126
+ readonly Set: typeof FormSet;
127
+ readonly SetContent: typeof FormSetContent;
128
+ readonly SetHeading: typeof FormSetHeading;
129
+ readonly Submit: typeof FormSubmit;
130
+ }>;
131
+ fields: TFields;
132
+ }>) => ReturnType<import("react").FunctionComponent>, withForm: <TFormData, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TSubmitMeta, TRenderProps extends object = {}>({ render, props }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
133
+ readonly Checkbox: typeof FieldCheckbox;
134
+ readonly Description: typeof FieldDescription;
135
+ readonly Errors: typeof FieldErrors;
136
+ readonly Input: typeof FieldInput;
137
+ readonly InputGroup: typeof FieldInputGroup;
138
+ readonly InputGroupInput: typeof FieldInputGroupInput;
139
+ readonly Label: typeof FieldLabel;
140
+ readonly Radio: typeof FieldRadio;
141
+ readonly RadioGroup: typeof FieldRadioGroup;
142
+ readonly Row: typeof FieldRow;
143
+ readonly Select: typeof FieldSelect;
144
+ readonly Set: typeof FieldSet;
145
+ readonly Slider: typeof FieldSlider;
146
+ readonly Switch: typeof FieldSwitch;
147
+ readonly TextArea: typeof FieldTextArea;
148
+ readonly Toggle: typeof FieldToggle;
149
+ }, {
150
+ readonly Errors: typeof FormErrors;
151
+ readonly Footer: typeof FormFooter;
152
+ readonly Reset: typeof FormReset;
153
+ readonly Set: typeof FormSet;
154
+ readonly SetContent: typeof FormSetContent;
155
+ readonly SetHeading: typeof FormSetHeading;
156
+ readonly Submit: typeof FormSubmit;
157
+ }, TRenderProps>) => import("react").FunctionComponent<import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
158
+ form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
159
+ readonly Checkbox: typeof FieldCheckbox;
160
+ readonly Description: typeof FieldDescription;
161
+ readonly Errors: typeof FieldErrors;
162
+ readonly Input: typeof FieldInput;
163
+ readonly InputGroup: typeof FieldInputGroup;
164
+ readonly InputGroupInput: typeof FieldInputGroupInput;
165
+ readonly Label: typeof FieldLabel;
166
+ readonly Radio: typeof FieldRadio;
167
+ readonly RadioGroup: typeof FieldRadioGroup;
168
+ readonly Row: typeof FieldRow;
169
+ readonly Select: typeof FieldSelect;
170
+ readonly Set: typeof FieldSet;
171
+ readonly Slider: typeof FieldSlider;
172
+ readonly Switch: typeof FieldSwitch;
173
+ readonly TextArea: typeof FieldTextArea;
174
+ readonly Toggle: typeof FieldToggle;
175
+ }, {
176
+ readonly Errors: typeof FormErrors;
177
+ readonly Footer: typeof FormFooter;
178
+ readonly Reset: typeof FormReset;
179
+ readonly Set: typeof FormSet;
180
+ readonly SetContent: typeof FormSetContent;
181
+ readonly SetHeading: typeof FormSetHeading;
182
+ readonly Submit: typeof FormSubmit;
183
+ }>;
184
+ }>>, useTypedAppFormContext: <TFormData, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TSubmitMeta>(_props: import("@tanstack/react-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
185
+ readonly Checkbox: typeof FieldCheckbox;
186
+ readonly Description: typeof FieldDescription;
187
+ readonly Errors: typeof FieldErrors;
188
+ readonly Input: typeof FieldInput;
189
+ readonly InputGroup: typeof FieldInputGroup;
190
+ readonly InputGroupInput: typeof FieldInputGroupInput;
191
+ readonly Label: typeof FieldLabel;
192
+ readonly Radio: typeof FieldRadio;
193
+ readonly RadioGroup: typeof FieldRadioGroup;
194
+ readonly Row: typeof FieldRow;
195
+ readonly Select: typeof FieldSelect;
196
+ readonly Set: typeof FieldSet;
197
+ readonly Slider: typeof FieldSlider;
198
+ readonly Switch: typeof FieldSwitch;
199
+ readonly TextArea: typeof FieldTextArea;
200
+ readonly Toggle: typeof FieldToggle;
201
+ }, {
202
+ readonly Errors: typeof FormErrors;
203
+ readonly Footer: typeof FormFooter;
204
+ readonly Reset: typeof FormReset;
205
+ readonly Set: typeof FormSet;
206
+ readonly SetContent: typeof FormSetContent;
207
+ readonly SetHeading: typeof FormSetHeading;
208
+ readonly Submit: typeof FormSubmit;
209
+ }>;
210
+ declare const Form: typeof Form$1 & {
211
+ Errors: typeof FormErrors;
212
+ Footer: typeof FormFooter;
213
+ Reset: typeof FormReset;
214
+ Set: typeof FormSet;
215
+ SetContent: typeof FormSetContent;
216
+ SetHeading: typeof FormSetHeading;
217
+ Submit: typeof FormSubmit;
218
+ };
219
+ export { Form, type FormErrorsProps, type FormProps, type FormResetProps, type FormSubmitProps };
220
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { b as useFieldContext, v as fieldContext, x as useFormContext, y as formContext } from "../field-DTL7eA5y.js";
2
+ import { a as withForm, c as FormSetContent, d as FormFooter, f as FormErrors, i as withFieldGroup, l as FormSet, n as useAppForm, o as FormSubmit, r as useTypedAppFormContext, s as FormSetHeading, t as Form, u as FormReset } from "../form-BxMg796f.js";
3
+ export { Form, FormErrors, FormFooter, FormReset, FormSet, FormSetContent, FormSetHeading, FormSubmit, fieldContext, formContext, useAppForm, useFieldContext, useFormContext, useTypedAppFormContext, withFieldGroup, withForm };