@fuf-stack/uniform 1.15.0 → 1.16.1

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 (168) hide show
  1. package/dist/Checkboxes/index.d.cts +1 -1
  2. package/dist/Checkboxes/index.d.ts +1 -1
  3. package/dist/FieldArray/index.cjs +1 -1
  4. package/dist/FieldArray/index.d.cts +1 -1
  5. package/dist/FieldArray/index.d.ts +1 -1
  6. package/dist/FieldArray/index.js +1 -1
  7. package/dist/{FieldArray-DgJgrLOY.cjs → FieldArray-BgvSTDWi.cjs} +3 -3
  8. package/dist/FieldArray-BgvSTDWi.cjs.map +1 -0
  9. package/dist/{FieldArray-Bnv1_-Rl.js → FieldArray-C8Ipn-tM.js} +3 -3
  10. package/dist/FieldArray-C8Ipn-tM.js.map +1 -0
  11. package/dist/FieldCard/index.cjs +1 -1
  12. package/dist/FieldCard/index.d.cts +1 -1
  13. package/dist/FieldCard/index.d.ts +1 -1
  14. package/dist/FieldCard/index.js +1 -1
  15. package/dist/FieldCard-BMmp6vcn.cjs +201 -0
  16. package/dist/FieldCard-BMmp6vcn.cjs.map +1 -0
  17. package/dist/FieldCard-DAtdvKrE.js +189 -0
  18. package/dist/FieldCard-DAtdvKrE.js.map +1 -0
  19. package/dist/Form/index.d.cts +1 -1
  20. package/dist/Form/index.d.ts +1 -1
  21. package/dist/Grid/index.d.cts +1 -1
  22. package/dist/Grid/index.d.ts +1 -1
  23. package/dist/Input/index.d.cts +1 -1
  24. package/dist/Input/index.d.ts +1 -1
  25. package/dist/RadioBoxes/index.d.cts +1 -1
  26. package/dist/RadioBoxes/index.d.ts +1 -1
  27. package/dist/RadioTabs/index.d.cts +1 -1
  28. package/dist/RadioTabs/index.d.ts +1 -1
  29. package/dist/Radios/index.d.cts +1 -1
  30. package/dist/Radios/index.d.ts +1 -1
  31. package/dist/Select/index.d.cts +1 -1
  32. package/dist/Select/index.d.ts +1 -1
  33. package/dist/Slider/index.d.cts +1 -1
  34. package/dist/Slider/index.d.ts +1 -1
  35. package/dist/SubmitButton/index.d.cts +1 -1
  36. package/dist/SubmitButton/index.d.ts +1 -1
  37. package/dist/Switch/index.d.cts +1 -1
  38. package/dist/Switch/index.d.ts +1 -1
  39. package/dist/SwitchBox/index.d.cts +1 -1
  40. package/dist/SwitchBox/index.d.ts +1 -1
  41. package/dist/TextArea/index.d.cts +1 -1
  42. package/dist/TextArea/index.d.ts +1 -1
  43. package/dist/hooks/useClientValidation/index.d.cts +1 -1
  44. package/dist/hooks/useClientValidation/index.d.ts +1 -1
  45. package/dist/hooks/useFormContext/index.d.cts +1 -1
  46. package/dist/hooks/useFormContext/index.d.ts +1 -1
  47. package/dist/hooks/useUniformField/index.d.cts +1 -1
  48. package/dist/hooks/useUniformField/index.d.ts +2 -2
  49. package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
  50. package/dist/hooks/useUniformFieldArray/index.d.ts +21 -21
  51. package/dist/{index-RiAo6yCB.d.ts → index-5SxIjw6Y.d.cts} +48 -48
  52. package/dist/index-5SxIjw6Y.d.cts.map +1 -0
  53. package/dist/{index-BapBrgmV.d.cts → index-B5oUKlIo.d.ts} +48 -48
  54. package/dist/index-B5oUKlIo.d.ts.map +1 -0
  55. package/dist/{index-pE9osud2.d.ts → index-BL0DnIzh.d.ts} +3 -3
  56. package/dist/{index-pE9osud2.d.ts.map → index-BL0DnIzh.d.ts.map} +1 -1
  57. package/dist/{index-uNWK5Vb5.d.ts → index-BPupl-39.d.ts} +21 -21
  58. package/dist/{index-uNWK5Vb5.d.ts.map → index-BPupl-39.d.ts.map} +1 -1
  59. package/dist/{index-CCUQ-2Ic.d.cts → index-BXm2Nvuc.d.ts} +34 -34
  60. package/dist/index-BXm2Nvuc.d.ts.map +1 -0
  61. package/dist/{index-BxV89x6q.d.cts → index-BYag2YM-.d.cts} +19 -19
  62. package/dist/index-BYag2YM-.d.cts.map +1 -0
  63. package/dist/{index-CJse-RZf.d.cts → index-BbWEFpRz.d.cts} +36 -36
  64. package/dist/index-BbWEFpRz.d.cts.map +1 -0
  65. package/dist/{index-_mq7cbF5.d.cts → index-BlK4-QN0.d.cts} +3 -3
  66. package/dist/{index-_mq7cbF5.d.cts.map → index-BlK4-QN0.d.cts.map} +1 -1
  67. package/dist/{index-DoGBvZ4J.d.ts → index-BtRhfPlX.d.cts} +34 -35
  68. package/dist/{index-CnIrK5L3.d.cts.map → index-BtRhfPlX.d.cts.map} +1 -1
  69. package/dist/{index-y2jgEqoM.d.ts → index-ByDAUZR8.d.cts} +3 -3
  70. package/dist/{index-BbA9HcNa.d.cts.map → index-ByDAUZR8.d.cts.map} +1 -1
  71. package/dist/{index-Bs-1Pwc6.d.cts → index-C-t8ET2t.d.ts} +6 -6
  72. package/dist/{index-CODzh0zX.d.ts.map → index-C-t8ET2t.d.ts.map} +1 -1
  73. package/dist/{index-DsSuY_wP.d.ts → index-C6YO7fVN.d.ts} +6 -6
  74. package/dist/index-C6YO7fVN.d.ts.map +1 -0
  75. package/dist/{index-DLJiYqVE.d.cts → index-C8e2kOHz.d.cts} +6 -6
  76. package/dist/index-C8e2kOHz.d.cts.map +1 -0
  77. package/dist/{index-BTTo_ufh.d.ts → index-CEB_3pH3.d.ts} +3 -3
  78. package/dist/{index-BTTo_ufh.d.ts.map → index-CEB_3pH3.d.ts.map} +1 -1
  79. package/dist/{index-drMNLgtV.d.ts → index-CGnr_e53.d.ts} +36 -36
  80. package/dist/index-CGnr_e53.d.ts.map +1 -0
  81. package/dist/{index-DN9Ke6Y8.d.cts → index-CK4iUXtY.d.cts} +17 -4
  82. package/dist/index-CK4iUXtY.d.cts.map +1 -0
  83. package/dist/{index-U0Jx25HO.d.cts → index-CMQe-K8d.d.cts} +3 -3
  84. package/dist/{index-U0Jx25HO.d.cts.map → index-CMQe-K8d.d.cts.map} +1 -1
  85. package/dist/{index-BQDEnYTq.d.ts → index-CYfagyef.d.ts} +3 -3
  86. package/dist/{index-BQDEnYTq.d.ts.map → index-CYfagyef.d.ts.map} +1 -1
  87. package/dist/{index-Bfk32Dl3.d.cts → index-ChtlWBjc.d.cts} +3 -3
  88. package/dist/{index-Bfk32Dl3.d.cts.map → index-ChtlWBjc.d.cts.map} +1 -1
  89. package/dist/{index-BSZJQBCK.d.ts → index-Ct6a8Dxz.d.ts} +19 -6
  90. package/dist/index-Ct6a8Dxz.d.ts.map +1 -0
  91. package/dist/{index-BGQrBRyF.d.cts → index-CuACo6jI.d.ts} +4 -4
  92. package/dist/{index-DvAmzIEe.d.ts.map → index-CuACo6jI.d.ts.map} +1 -1
  93. package/dist/{index-C3yzuYLc.d.cts → index-D4S6YQwi.d.cts} +21 -21
  94. package/dist/index-D4S6YQwi.d.cts.map +1 -0
  95. package/dist/{index-Bd-E0JM1.d.ts → index-D4jPNNjM.d.ts} +3 -3
  96. package/dist/{index-Bd-E0JM1.d.ts.map → index-D4jPNNjM.d.ts.map} +1 -1
  97. package/dist/{index-DGryaZXZ.d.ts → index-DJyRJr0I.d.ts} +21 -21
  98. package/dist/index-DJyRJr0I.d.ts.map +1 -0
  99. package/dist/index-D_VcH_gn.d.ts +278 -0
  100. package/dist/index-D_VcH_gn.d.ts.map +1 -0
  101. package/dist/{index-BHMwBAFH.d.cts → index-Db46CiKm.d.cts} +3 -3
  102. package/dist/{index-BHMwBAFH.d.cts.map → index-Db46CiKm.d.cts.map} +1 -1
  103. package/dist/index-Dbn5MHgv.d.cts +278 -0
  104. package/dist/index-Dbn5MHgv.d.cts.map +1 -0
  105. package/dist/{index-hK6woeqR.d.ts → index-DmMenZfj.d.ts} +6 -6
  106. package/dist/{index-hK6woeqR.d.ts.map → index-DmMenZfj.d.ts.map} +1 -1
  107. package/dist/{index-BbA9HcNa.d.cts → index-DzGaqagC.d.ts} +3 -3
  108. package/dist/{index-y2jgEqoM.d.ts.map → index-DzGaqagC.d.ts.map} +1 -1
  109. package/dist/{index-CuTHt_2o.d.cts → index-Nrdyx_72.d.cts} +6 -6
  110. package/dist/{index-CuTHt_2o.d.cts.map → index-Nrdyx_72.d.cts.map} +1 -1
  111. package/dist/{index-DvAmzIEe.d.ts → index-PdZaOKs9.d.cts} +4 -4
  112. package/dist/{index-BGQrBRyF.d.cts.map → index-PdZaOKs9.d.cts.map} +1 -1
  113. package/dist/{index-CnIrK5L3.d.cts → index-WKgD5_vg.d.ts} +36 -35
  114. package/dist/{index-DoGBvZ4J.d.ts.map → index-WKgD5_vg.d.ts.map} +1 -1
  115. package/dist/{index-DMphDWRk.d.ts → index-dhcztpfB.d.cts} +34 -34
  116. package/dist/{index-CCUQ-2Ic.d.cts.map → index-dhcztpfB.d.cts.map} +1 -1
  117. package/dist/{index-CODzh0zX.d.ts → index-uLhUKJjx.d.cts} +5 -5
  118. package/dist/{index-Bs-1Pwc6.d.cts.map → index-uLhUKJjx.d.cts.map} +1 -1
  119. package/dist/index.cjs +2 -2
  120. package/dist/index.d.cts +21 -21
  121. package/dist/index.d.ts +21 -21
  122. package/dist/index.js +2 -2
  123. package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
  124. package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
  125. package/dist/partials/FieldValidationError/index.d.cts +1 -1
  126. package/dist/partials/FieldValidationError/index.d.ts +1 -1
  127. package/dist/{useClientValidation-Bv0yxTyV.d.ts → useClientValidation-CeHOxxj1.d.ts} +3 -3
  128. package/dist/{useClientValidation-Bv0yxTyV.d.ts.map → useClientValidation-CeHOxxj1.d.ts.map} +1 -1
  129. package/dist/{useClientValidation-DSMw7f-t.d.cts → useClientValidation-DG1xPiN5.d.cts} +3 -3
  130. package/dist/{useClientValidation-DSMw7f-t.d.cts.map → useClientValidation-DG1xPiN5.d.cts.map} +1 -1
  131. package/dist/useController-Co8wbo-Y.d.ts.map +1 -1
  132. package/dist/{useFormContext-DihY1N8O.d.cts → useFormContext-B083Y-kw.d.cts} +19 -19
  133. package/dist/useFormContext-B083Y-kw.d.cts.map +1 -0
  134. package/dist/{useFormContext-B7ooPCfd.d.ts → useFormContext-B2TS6xq0.d.ts} +3 -3
  135. package/dist/useFormContext-B2TS6xq0.d.ts.map +1 -0
  136. package/dist/{useUniformField-CJX0u3Ou.d.ts → useUniformField-B-hszxep.d.ts} +2 -2
  137. package/dist/{useUniformField-CJX0u3Ou.d.ts.map → useUniformField-B-hszxep.d.ts.map} +1 -1
  138. package/dist/{useUniformField-8ODkBNpn.d.cts → useUniformField-BlqMUaQk.d.cts} +2 -2
  139. package/dist/{useUniformField-8ODkBNpn.d.cts.map → useUniformField-BlqMUaQk.d.cts.map} +1 -1
  140. package/dist/{useUniformFieldArray-DF83iIC1.d.cts → useUniformFieldArray-BMMpIjre.d.cts} +13 -13
  141. package/dist/{useUniformFieldArray-DF83iIC1.d.cts.map → useUniformFieldArray-BMMpIjre.d.cts.map} +1 -1
  142. package/dist/{useUniformFieldArray-DFGgYtxz.d.ts → useUniformFieldArray-KOP2kbMC.d.ts} +2 -2
  143. package/dist/{useUniformFieldArray-DFGgYtxz.d.ts.map → useUniformFieldArray-KOP2kbMC.d.ts.map} +1 -1
  144. package/package.json +2 -2
  145. package/dist/FieldArray-Bnv1_-Rl.js.map +0 -1
  146. package/dist/FieldArray-DgJgrLOY.cjs.map +0 -1
  147. package/dist/FieldCard-CLd4PaoX.js +0 -121
  148. package/dist/FieldCard-CLd4PaoX.js.map +0 -1
  149. package/dist/FieldCard-CeEnVxiB.cjs +0 -133
  150. package/dist/FieldCard-CeEnVxiB.cjs.map +0 -1
  151. package/dist/index-BM5ClMN4.d.ts +0 -278
  152. package/dist/index-BM5ClMN4.d.ts.map +0 -1
  153. package/dist/index-BSZJQBCK.d.ts.map +0 -1
  154. package/dist/index-BapBrgmV.d.cts.map +0 -1
  155. package/dist/index-BxV89x6q.d.cts.map +0 -1
  156. package/dist/index-C3yzuYLc.d.cts.map +0 -1
  157. package/dist/index-CJse-RZf.d.cts.map +0 -1
  158. package/dist/index-DGryaZXZ.d.ts.map +0 -1
  159. package/dist/index-DLJiYqVE.d.cts.map +0 -1
  160. package/dist/index-DMphDWRk.d.ts.map +0 -1
  161. package/dist/index-DN9Ke6Y8.d.cts.map +0 -1
  162. package/dist/index-DsSuY_wP.d.ts.map +0 -1
  163. package/dist/index-RiAo6yCB.d.ts.map +0 -1
  164. package/dist/index-drMNLgtV.d.ts.map +0 -1
  165. package/dist/index-eJFvyVyS.d.cts +0 -278
  166. package/dist/index-eJFvyVyS.d.cts.map +0 -1
  167. package/dist/useFormContext-B7ooPCfd.d.ts.map +0 -1
  168. package/dist/useFormContext-DihY1N8O.d.cts.map +0 -1
@@ -0,0 +1,189 @@
1
+ import { n as FieldValidationError_default } from "./FieldValidationError-BYwitb_B.js";
2
+ import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-UFBqUfOr.js";
3
+ import { t as useUniformField } from "./useUniformField-C6oSAFa3.js";
4
+ import { cn, tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { AnimatePresence, motion, useReducedMotion } from "@fuf-stack/pixel-motion";
7
+
8
+ //#region src/FieldCard/subcomponents/FieldCardValidationError.tsx
9
+ /**
10
+ * Renders validation errors in the footer of a FieldCard component.
11
+ *
12
+ * This component handles displaying field-level validation errors with proper
13
+ * accessibility attributes and animates them in/out using Framer Motion.
14
+ *
15
+ * Note: Object-level errors (_errors) are always shown when they exist,
16
+ * but the danger styling is controlled by the parent FieldCard based on
17
+ * whether child fields have been touched.
18
+ */
19
+ const FieldCardValidationError = ({ className = void 0, error = void 0, errorTextClassName = void 0, name }) => {
20
+ const { getErrorMessageProps, getHelperWrapperProps, testId } = useUniformField({ name });
21
+ const disableAnimation = useReducedMotion();
22
+ const hasErrors = !!error?._errors;
23
+ return /* @__PURE__ */ jsx(AnimatePresence, {
24
+ initial: !disableAnimation,
25
+ children: hasErrors ? /* @__PURE__ */ jsx(motion.div, {
26
+ exit: disableAnimation ? void 0 : {
27
+ opacity: 0,
28
+ height: 0
29
+ },
30
+ initial: disableAnimation ? false : {
31
+ height: 0,
32
+ opacity: 0
33
+ },
34
+ style: { overflow: "hidden" },
35
+ transition: {
36
+ duration: .4,
37
+ ease: "circOut"
38
+ },
39
+ animate: disableAnimation ? void 0 : {
40
+ opacity: 1,
41
+ height: "auto"
42
+ },
43
+ children: /* @__PURE__ */ jsx("div", {
44
+ ...getHelperWrapperProps(),
45
+ className: cn(getHelperWrapperProps()?.className, className),
46
+ children: /* @__PURE__ */ jsx("div", {
47
+ ...getErrorMessageProps(),
48
+ className: cn(getErrorMessageProps()?.className, errorTextClassName),
49
+ children: /* @__PURE__ */ jsx(FieldValidationError_default, {
50
+ error: error._errors,
51
+ testId
52
+ })
53
+ })
54
+ })
55
+ }, "field-card-errors") : null
56
+ });
57
+ };
58
+ var FieldCardValidationError_default = FieldCardValidationError;
59
+
60
+ //#endregion
61
+ //#region src/FieldCard/FieldCard.tsx
62
+ /**
63
+ * Recursively checks if any child field with an error is also touched.
64
+ * Returns true if at least one touched child has an error.
65
+ */
66
+ const hasVisibleChildErrors = (errors, touched) => {
67
+ if (!errors || !touched) return false;
68
+ return Object.keys(errors).filter((key) => {
69
+ return key !== "_errors";
70
+ }).some((key) => {
71
+ const errorValue = errors[key];
72
+ const touchedValue = touched[key];
73
+ if (errorValue === void 0 || touchedValue === void 0) return false;
74
+ if (Array.isArray(errorValue)) return !!touchedValue;
75
+ if (typeof errorValue === "object" && errorValue !== null) return hasVisibleChildErrors(errorValue, touchedValue);
76
+ return false;
77
+ });
78
+ };
79
+ const fieldCardVariants = tv({
80
+ slots: {
81
+ base: ["overflow-hidden rounded-small border bg-content1", "transition-colors duration-150 motion-reduce:transition-none"],
82
+ label: [
83
+ "pointer-events-auto! static! z-auto! block! w-full!",
84
+ "translate-x-0! translate-y-0! transform-none!",
85
+ "rounded-t-small border-b p-3 font-semibold text-medium",
86
+ "transition-colors duration-150 motion-reduce:transition-none"
87
+ ],
88
+ content: ["p-3", "grid gap-4"],
89
+ errorFooter: [
90
+ "border-t",
91
+ "block px-3 pb-2 pt-1",
92
+ "transition-colors duration-150 motion-reduce:transition-none"
93
+ ],
94
+ errorText: []
95
+ },
96
+ variants: { invalid: {
97
+ true: {
98
+ base: "border-danger-200",
99
+ label: "border-danger-200 text-danger",
100
+ errorFooter: "border-danger-200",
101
+ errorText: "!text-danger text-tiny"
102
+ },
103
+ false: {
104
+ base: "border-divider",
105
+ label: "border-divider text-foreground",
106
+ errorFooter: "border-divider",
107
+ errorText: "!text-foreground-500 text-tiny"
108
+ }
109
+ } },
110
+ defaultVariants: { invalid: false }
111
+ });
112
+ /**
113
+ * FieldCard component - A card-styled container with label header and error footer
114
+ *
115
+ * Displays form field content in a card layout with:
116
+ * - Label/title in the header
117
+ * - Content in the body
118
+ * - Validation errors in the footer
119
+ * - Danger outline when validation errors exist
120
+ */
121
+ const FieldCard = ({ children, className: _className = void 0, name, ...uniformFieldProps }) => {
122
+ const { error, getLabelProps, label } = useUniformField({
123
+ name,
124
+ ...uniformFieldProps
125
+ });
126
+ const { control, formState: { touchedFields, submitCount }, validation } = useFormContext();
127
+ const validationInstance = validation?.baseInstance ?? validation?.instance;
128
+ const registeredFields = Array.from(control._names?.mount ?? []);
129
+ const childFieldPrefix = `${name}.`;
130
+ const isRequired = validationInstance ? registeredFields.filter((f) => {
131
+ return f.startsWith(childFieldPrefix);
132
+ }).some((f) => {
133
+ return checkFieldIsRequired(validationInstance, f.split(".").filter((k) => {
134
+ return k !== "";
135
+ }));
136
+ }) : false;
137
+ const getNestedValue = (obj, path) => {
138
+ if (!obj) return;
139
+ const keys = path.split(".");
140
+ let current = obj;
141
+ keys.every((key) => {
142
+ if (current && typeof current === "object") {
143
+ current = current[key];
144
+ return true;
145
+ }
146
+ current = void 0;
147
+ return false;
148
+ });
149
+ return current;
150
+ };
151
+ const fieldTouched = getNestedValue(touchedFields, name);
152
+ const hasObjectErrors = !!error?._errors;
153
+ const hasAnyChildTouched = fieldTouched && Object.keys(fieldTouched).some((key) => {
154
+ return key !== "_errors";
155
+ });
156
+ const hasVisibleChildren = submitCount > 0 || hasVisibleChildErrors(error, fieldTouched);
157
+ const className = variantsToClassNames(fieldCardVariants({ invalid: hasObjectErrors && (submitCount > 0 || !!hasAnyChildTouched) || hasVisibleChildren }), _className, "base");
158
+ return /* @__PURE__ */ jsxs("div", {
159
+ className: className.base,
160
+ children: [
161
+ label ? /* @__PURE__ */ jsxs("div", {
162
+ ...getLabelProps(),
163
+ "aria-level": 3,
164
+ className: className.label,
165
+ role: "heading",
166
+ children: [label, isRequired ? /* @__PURE__ */ jsx("span", {
167
+ "aria-hidden": "true",
168
+ className: "ml-0.5 text-danger",
169
+ children: "*"
170
+ }) : null]
171
+ }) : null,
172
+ /* @__PURE__ */ jsx("div", {
173
+ className: className.content,
174
+ children
175
+ }),
176
+ /* @__PURE__ */ jsx(FieldCardValidationError_default, {
177
+ className: className.errorFooter,
178
+ error,
179
+ errorTextClassName: className.errorText,
180
+ name
181
+ })
182
+ ]
183
+ });
184
+ };
185
+ var FieldCard_default = FieldCard;
186
+
187
+ //#endregion
188
+ export { fieldCardVariants as n, FieldCard_default as t };
189
+ //# sourceMappingURL=FieldCard-DAtdvKrE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldCard-DAtdvKrE.js","names":["FieldValidationError","FieldCardValidationError"],"sources":["../src/FieldCard/subcomponents/FieldCardValidationError.tsx","../src/FieldCard/FieldCard.tsx"],"sourcesContent":["import type { FieldError } from 'react-hook-form';\n\nimport {\n AnimatePresence,\n motion,\n useReducedMotion,\n} from '@fuf-stack/pixel-motion';\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../../hooks/useUniformField';\nimport FieldValidationError from '../../partials/FieldValidationError/FieldValidationError';\n\nexport interface FieldCardValidationErrorProps {\n /** CSS class name for the error footer wrapper */\n className?: string;\n /** Error object from parent FieldCard (passed directly to avoid duplicate hook calls) */\n error?: FieldError[] | undefined;\n /** CSS class name for the error text (controls color based on invalid state) */\n errorTextClassName?: string;\n /** Field name */\n name: string;\n}\n\n/**\n * Renders validation errors in the footer of a FieldCard component.\n *\n * This component handles displaying field-level validation errors with proper\n * accessibility attributes and animates them in/out using Framer Motion.\n *\n * Note: Object-level errors (_errors) are always shown when they exist,\n * but the danger styling is controlled by the parent FieldCard based on\n * whether child fields have been touched.\n */\nconst FieldCardValidationError = ({\n className = undefined,\n error = undefined,\n errorTextClassName = undefined,\n name,\n}: FieldCardValidationErrorProps) => {\n const { getErrorMessageProps, getHelperWrapperProps, testId } =\n useUniformField({\n name,\n });\n\n // disable all animation if user prefers reduced motion\n const disableAnimation = useReducedMotion();\n\n // Always show object-level errors (_errors) when they exist\n // @ts-expect-error - error._errors exists but not typed\n const hasErrors = !!error?._errors;\n\n return (\n <AnimatePresence initial={!disableAnimation}>\n {hasErrors ? (\n <motion.div\n key=\"field-card-errors\"\n exit={disableAnimation ? undefined : { opacity: 0, height: 0 }}\n initial={disableAnimation ? false : { height: 0, opacity: 0 }}\n style={{ overflow: 'hidden' }}\n transition={{ duration: 0.4, ease: 'circOut' }}\n animate={\n disableAnimation ? undefined : { opacity: 1, height: 'auto' }\n }\n >\n <div\n {...getHelperWrapperProps()}\n className={cn(getHelperWrapperProps()?.className, className)}\n >\n <div\n {...getErrorMessageProps()}\n className={cn(\n getErrorMessageProps()?.className,\n errorTextClassName,\n )}\n >\n <FieldValidationError\n // @ts-expect-error - error._errors exists but not typed\n error={error._errors}\n testId={testId}\n />\n </div>\n </div>\n </motion.div>\n ) : null}\n </AnimatePresence>\n );\n};\n\nexport default FieldCardValidationError;\n","import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { checkFieldIsRequired, useFormContext } from '../hooks/useFormContext';\nimport { useUniformField } from '../hooks/useUniformField';\nimport FieldCardValidationError from './subcomponents/FieldCardValidationError';\n\n/**\n * Recursively checks if any child field with an error is also touched.\n * Returns true if at least one touched child has an error.\n */\nexport const hasVisibleChildErrors = (\n errors: Record<string, unknown> | undefined,\n touched: Record<string, unknown> | undefined,\n): boolean => {\n if (!errors || !touched) {\n return false;\n }\n\n return Object.keys(errors)\n .filter((key) => {\n // Skip object-level errors (_errors) - those are handled separately\n return key !== '_errors';\n })\n .some((key) => {\n const errorValue = errors[key];\n const touchedValue = touched[key];\n\n // If this key doesn't exist in both errors and touched, skip\n if (errorValue === undefined || touchedValue === undefined) {\n return false;\n }\n\n // If errorValue is an array, it's a leaf field error\n if (Array.isArray(errorValue)) {\n // touchedValue being truthy means the field is touched\n return !!touchedValue;\n }\n\n // Recursively check nested objects\n if (typeof errorValue === 'object' && errorValue !== null) {\n return hasVisibleChildErrors(\n errorValue as Record<string, unknown>,\n touchedValue as Record<string, unknown>,\n );\n }\n\n return false;\n });\n};\n\nexport const fieldCardVariants = tv({\n slots: {\n /** base class for the field card wrapper */\n base: [\n // base styles\n 'overflow-hidden rounded-small border bg-content1',\n // animate border color change, respect reduced motion\n 'transition-colors duration-150 motion-reduce:transition-none',\n ],\n /** class for the label/header */\n label: [\n // override HeroUI label positioning and display\n 'pointer-events-auto! static! z-auto! block! w-full!',\n // reset any transforms or translations\n 'translate-x-0! translate-y-0! transform-none!',\n // card header styling - use text-medium (16px) for proper header size\n 'rounded-t-small border-b p-3 font-semibold text-medium',\n // animate border and text color change, respect reduced motion\n 'transition-colors duration-150 motion-reduce:transition-none',\n ],\n /** class for the content */\n content: [\n // same as p-3 of Card component\n 'p-3',\n // default grid for form components (see Grid component)\n 'grid gap-4',\n ],\n /** class for the error footer wrapper */\n errorFooter: [\n 'border-t',\n // force helper to be visible and add padding (pt-1 to compensate for inner content's top padding)\n 'block px-3 pb-2 pt-1',\n // animate border color change, respect reduced motion\n 'transition-colors duration-150 motion-reduce:transition-none',\n ],\n /** class for the error text (empty base, color controlled by variant) */\n errorText: [],\n },\n variants: {\n invalid: {\n true: {\n base: 'border-danger-200',\n label: 'border-danger-200 text-danger',\n errorFooter: 'border-danger-200',\n errorText: '!text-danger text-tiny',\n },\n false: {\n base: 'border-divider',\n label: 'border-divider text-foreground',\n errorFooter: 'border-divider',\n errorText: '!text-foreground-500 text-tiny',\n },\n },\n },\n defaultVariants: {\n invalid: false,\n },\n});\n\ntype ClassName = TVClassName<typeof fieldCardVariants>;\n\nexport interface FieldCardProps {\n /** Content to render inside the card */\n children: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Label content for the card header */\n label: ReactNode;\n /** Field name for validation */\n name: string;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * FieldCard component - A card-styled container with label header and error footer\n *\n * Displays form field content in a card layout with:\n * - Label/title in the header\n * - Content in the body\n * - Validation errors in the footer\n * - Danger outline when validation errors exist\n */\nconst FieldCard = ({\n children,\n className: _className = undefined,\n name,\n ...uniformFieldProps\n}: FieldCardProps) => {\n const { error, getLabelProps, label } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n const {\n control,\n formState: { touchedFields, submitCount },\n validation,\n } = useFormContext();\n\n // Check if any registered child field is required\n const validationInstance = validation?.baseInstance ?? validation?.instance;\n const registeredFields: string[] = Array.from(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (control as any)._names?.mount ?? [],\n );\n const childFieldPrefix = `${name}.`;\n const isRequired = validationInstance\n ? registeredFields\n .filter((f) => {\n return f.startsWith(childFieldPrefix);\n })\n .some((f) => {\n return checkFieldIsRequired(\n validationInstance,\n f.split('.').filter((k) => {\n return k !== '';\n }),\n );\n })\n : false;\n\n // Get touched state for this field's children by traversing the path\n const getNestedValue = (\n obj: Record<string, unknown> | undefined,\n path: string,\n ): Record<string, unknown> | undefined => {\n if (!obj) {\n return undefined;\n }\n const keys = path.split('.');\n let current: unknown = obj;\n keys.every((key) => {\n if (current && typeof current === 'object') {\n current = (current as Record<string, unknown>)[key];\n return true;\n }\n current = undefined;\n return false;\n });\n return current as Record<string, unknown> | undefined;\n };\n\n const fieldTouched = getNestedValue(\n touchedFields as Record<string, unknown>,\n name,\n );\n\n // Check for object-level errors (_errors)\n // @ts-expect-error - error._errors exists but not typed\n const hasObjectErrors = !!error?._errors;\n\n // Check if any child field is touched\n const hasAnyChildTouched =\n fieldTouched &&\n Object.keys(fieldTouched).some((key) => {\n return key !== '_errors';\n });\n\n // Check if any child field with an error is also touched\n const hasVisibleChildren =\n submitCount > 0 ||\n hasVisibleChildErrors(\n error as unknown as Record<string, unknown>,\n fieldTouched,\n );\n\n // Show invalid styling (red border/header) only when:\n // - Object errors exist AND at least one child field is touched, OR\n // - Child field errors are visible (touched with errors)\n const showInvalid =\n (hasObjectErrors && (submitCount > 0 || !!hasAnyChildTouched)) ||\n hasVisibleChildren;\n\n // className from slots\n const variants = fieldCardVariants({ invalid: showInvalid });\n const className = variantsToClassNames(variants, _className, 'base');\n\n return (\n <div className={className.base}>\n {/* card header with label */}\n {label ? (\n <div\n {...getLabelProps()}\n aria-level={3}\n // Override getLabelProps className to use our own invalid styling based on hasErrors,\n // not HeroUI's which is based on any child field being invalid\n className={className.label}\n role=\"heading\"\n >\n {label}\n {/* Manual asterisk: getLabelProps uses schema-required for the object itself,\n but FieldCard needs asterisk based on whether any CHILD field is required */}\n {isRequired ? (\n <span aria-hidden=\"true\" className=\"ml-0.5 text-danger\">\n *\n </span>\n ) : null}\n </div>\n ) : null}\n\n {/* card content */}\n <div className={className.content}>{children}</div>\n\n {/* card footer with validation errors - always show _errors, but danger styling controlled by showInvalid */}\n <FieldCardValidationError\n className={className.errorFooter}\n error={error}\n errorTextClassName={className.errorText}\n name={name}\n />\n </div>\n );\n};\n\nexport default FieldCard;\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import { n as FormProps, t as Form } from "../index-U0Jx25HO.cjs";
1
+ import { n as FormProps, t as Form } from "../index-CMQe-K8d.cjs";
2
2
  export { Form, Form as default, FormProps };
@@ -1,3 +1,3 @@
1
1
  import "../FormContext-C2_WMi_v.js";
2
- import { n as FormProps, t as Form } from "../index-Bd-E0JM1.js";
2
+ import { n as FormProps, t as Form } from "../index-D4jPNNjM.js";
3
3
  export { Form, Form as default, FormProps };
@@ -1,2 +1,2 @@
1
- import { n as GridProps, t as Grid } from "../index-BbA9HcNa.cjs";
1
+ import { n as GridProps, t as Grid } from "../index-ByDAUZR8.cjs";
2
2
  export { Grid, Grid as default, GridProps };
@@ -1,2 +1,2 @@
1
- import { n as GridProps, t as Grid } from "../index-y2jgEqoM.js";
1
+ import { n as GridProps, t as Grid } from "../index-DzGaqagC.js";
2
2
  export { Grid, Grid as default, GridProps };
@@ -1,2 +1,2 @@
1
- import { n as InputProps, t as Input } from "../index-BxV89x6q.cjs";
1
+ import { n as InputProps, t as Input } from "../index-BYag2YM-.cjs";
2
2
  export { Input, Input as default, InputProps };
@@ -1,2 +1,2 @@
1
- import { n as InputProps, t as Input } from "../index-uNWK5Vb5.js";
1
+ import { n as InputProps, t as Input } from "../index-BPupl-39.js";
2
2
  export { Input, Input as default, InputProps };
@@ -1,2 +1,2 @@
1
- import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-CnIrK5L3.cjs";
1
+ import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-BtRhfPlX.cjs";
2
2
  export { RadioBoxes, RadioBoxes as default, RadioBoxesProps, radioBoxVariants };
@@ -1,2 +1,2 @@
1
- import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-DoGBvZ4J.js";
1
+ import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-WKgD5_vg.js";
2
2
  export { RadioBoxes, RadioBoxes as default, RadioBoxesProps, radioBoxVariants };
@@ -1,2 +1,2 @@
1
- import { n as RadioTabsProps, t as RadioTabs } from "../index-BGQrBRyF.cjs";
1
+ import { n as RadioTabsProps, t as RadioTabs } from "../index-PdZaOKs9.cjs";
2
2
  export { RadioTabs, RadioTabs as default, RadioTabsProps };
@@ -1,2 +1,2 @@
1
- import { n as RadioTabsProps, t as RadioTabs } from "../index-DvAmzIEe.js";
1
+ import { n as RadioTabsProps, t as RadioTabs } from "../index-CuACo6jI.js";
2
2
  export { RadioTabs, RadioTabs as default, RadioTabsProps };
@@ -1,2 +1,2 @@
1
- import { n as RadiosProps, t as Radios } from "../index-CCUQ-2Ic.cjs";
1
+ import { n as RadiosProps, t as Radios } from "../index-dhcztpfB.cjs";
2
2
  export { Radios, Radios as default, RadiosProps };
@@ -1,2 +1,2 @@
1
- import { n as RadiosProps, t as Radios } from "../index-DMphDWRk.js";
1
+ import { n as RadiosProps, t as Radios } from "../index-BXm2Nvuc.js";
2
2
  export { Radios, Radios as default, RadiosProps };
@@ -1,2 +1,2 @@
1
- import { n as SelectProps, t as Select } from "../index-eJFvyVyS.cjs";
1
+ import { n as SelectProps, t as Select } from "../index-Dbn5MHgv.cjs";
2
2
  export { Select, Select as default, SelectProps };
@@ -1,2 +1,2 @@
1
- import { n as SelectProps, t as Select } from "../index-BM5ClMN4.js";
1
+ import { n as SelectProps, t as Select } from "../index-D_VcH_gn.js";
2
2
  export { Select, Select as default, SelectProps };
@@ -1,2 +1,2 @@
1
- import { n as SliderProps, t as Slider } from "../index-BapBrgmV.cjs";
1
+ import { n as SliderProps, t as Slider } from "../index-5SxIjw6Y.cjs";
2
2
  export { Slider, Slider as default, SliderProps };
@@ -1,2 +1,2 @@
1
- import { n as SliderProps, t as Slider } from "../index-RiAo6yCB.js";
1
+ import { n as SliderProps, t as Slider } from "../index-B5oUKlIo.js";
2
2
  export { Slider, Slider as default, SliderProps };
@@ -1,2 +1,2 @@
1
- import { n as SubmitButtonProps, t as SubmitButton } from "../index-Bfk32Dl3.cjs";
1
+ import { n as SubmitButtonProps, t as SubmitButton } from "../index-ChtlWBjc.cjs";
2
2
  export { SubmitButton, SubmitButton as default, SubmitButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as SubmitButtonProps, t as SubmitButton } from "../index-pE9osud2.js";
1
+ import { n as SubmitButtonProps, t as SubmitButton } from "../index-BL0DnIzh.js";
2
2
  export { SubmitButton, SubmitButton as default, SubmitButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as SwitchProps, t as Switch } from "../index-CJse-RZf.cjs";
1
+ import { n as SwitchProps, t as Switch } from "../index-BbWEFpRz.cjs";
2
2
  export { Switch, Switch as default, SwitchProps };
@@ -1,2 +1,2 @@
1
- import { n as SwitchProps, t as Switch } from "../index-drMNLgtV.js";
1
+ import { n as SwitchProps, t as Switch } from "../index-CGnr_e53.js";
2
2
  export { Switch, Switch as default, SwitchProps };
@@ -1,2 +1,2 @@
1
- import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "../index-CuTHt_2o.cjs";
1
+ import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "../index-Nrdyx_72.cjs";
2
2
  export { SwitchBox, SwitchBox as default, SwitchBoxProps, switchBoxVariants };
@@ -1,2 +1,2 @@
1
- import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "../index-hK6woeqR.js";
1
+ import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "../index-DmMenZfj.js";
2
2
  export { SwitchBox, SwitchBox as default, SwitchBoxProps, switchBoxVariants };
@@ -1,2 +1,2 @@
1
- import { n as TextAreaProps, t as TextArea } from "../index-C3yzuYLc.cjs";
1
+ import { n as TextAreaProps, t as TextArea } from "../index-D4S6YQwi.cjs";
2
2
  export { TextArea, TextArea as default, TextAreaProps };
@@ -1,2 +1,2 @@
1
- import { n as TextAreaProps, t as TextArea } from "../index-DGryaZXZ.js";
1
+ import { n as TextAreaProps, t as TextArea } from "../index-DJyRJr0I.js";
2
2
  export { TextArea, TextArea as default, TextAreaProps };
@@ -1,2 +1,2 @@
1
- import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-DSMw7f-t.cjs";
1
+ import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-DG1xPiN5.cjs";
2
2
  export { clientValidationSchemaByName, useClientValidation };
@@ -1,2 +1,2 @@
1
- import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-Bv0yxTyV.js";
1
+ import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-CeHOxxj1.js";
2
2
  export { clientValidationSchemaByName, useClientValidation };
@@ -1,2 +1,2 @@
1
- import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-DihY1N8O.cjs";
1
+ import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-B083Y-kw.cjs";
2
2
  export { checkFieldIsRequired, useFormContext };
@@ -1,4 +1,4 @@
1
1
  import "../../FormContext-C2_WMi_v.js";
2
- import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-B7ooPCfd.js";
2
+ import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-B2TS6xq0.js";
3
3
  import "../../index-BRLjimYW.js";
4
4
  export { checkFieldIsRequired, useFormContext };
@@ -1,2 +1,2 @@
1
- import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-8ODkBNpn.cjs";
1
+ import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-BlqMUaQk.cjs";
2
2
  export { UseUniformFieldParams, UseUniformFieldReturn, useUniformField };
@@ -1,6 +1,6 @@
1
1
  import "../../FormContext-C2_WMi_v.js";
2
2
  import "../../useController-Co8wbo-Y.js";
3
- import "../../useFormContext-B7ooPCfd.js";
3
+ import "../../useFormContext-B2TS6xq0.js";
4
4
  import "../../useInput-BCdeYOOg.js";
5
- import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-CJX0u3Ou.js";
5
+ import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-B-hszxep.js";
6
6
  export { UseUniformFieldParams, UseUniformFieldReturn, useUniformField };
@@ -1,2 +1,2 @@
1
- import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-DF83iIC1.cjs";
1
+ import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-BMMpIjre.cjs";
2
2
  export { UseUniformFieldArrayProps, useUniformFieldArray };
@@ -1,27 +1,27 @@
1
- import "../../index-DsSuY_wP.js";
2
- import "../../index-CODzh0zX.js";
3
- import "../../index-BSZJQBCK.js";
1
+ import "../../index-C6YO7fVN.js";
2
+ import "../../index-C-t8ET2t.js";
3
+ import "../../index-Ct6a8Dxz.js";
4
4
  import "../../FormContext-C2_WMi_v.js";
5
- import "../../index-Bd-E0JM1.js";
6
- import "../../index-y2jgEqoM.js";
7
- import "../../index-uNWK5Vb5.js";
8
- import "../../index-DoGBvZ4J.js";
9
- import "../../index-DvAmzIEe.js";
10
- import "../../index-DMphDWRk.js";
11
- import "../../index-BM5ClMN4.js";
12
- import "../../index-RiAo6yCB.js";
13
- import "../../index-pE9osud2.js";
14
- import "../../index-drMNLgtV.js";
15
- import "../../index-hK6woeqR.js";
16
- import "../../index-DGryaZXZ.js";
17
- import "../../useClientValidation-Bv0yxTyV.js";
5
+ import "../../index-D4jPNNjM.js";
6
+ import "../../index-DzGaqagC.js";
7
+ import "../../index-BPupl-39.js";
8
+ import "../../index-WKgD5_vg.js";
9
+ import "../../index-CuACo6jI.js";
10
+ import "../../index-BXm2Nvuc.js";
11
+ import "../../index-D_VcH_gn.js";
12
+ import "../../index-B5oUKlIo.js";
13
+ import "../../index-BL0DnIzh.js";
14
+ import "../../index-CGnr_e53.js";
15
+ import "../../index-DmMenZfj.js";
16
+ import "../../index-DJyRJr0I.js";
17
+ import "../../useClientValidation-CeHOxxj1.js";
18
18
  import "../../useController-Co8wbo-Y.js";
19
- import "../../useFormContext-B7ooPCfd.js";
19
+ import "../../useFormContext-B2TS6xq0.js";
20
20
  import "../../index-BRLjimYW.js";
21
21
  import "../../useInput-BCdeYOOg.js";
22
- import "../../useUniformField-CJX0u3Ou.js";
23
- import "../../index-BQDEnYTq.js";
24
- import "../../index-BTTo_ufh.js";
22
+ import "../../useUniformField-B-hszxep.js";
23
+ import "../../index-CYfagyef.js";
24
+ import "../../index-CEB_3pH3.js";
25
25
  import "../../useWatchUserChange-JMU-vN92.js";
26
- import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-DFGgYtxz.js";
26
+ import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-KOP2kbMC.js";
27
27
  export { UseUniformFieldArrayProps, useUniformFieldArray };
@@ -1,43 +1,43 @@
1
+ import * as tailwind_variants197 from "tailwind-variants";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
1
3
  import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
2
4
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime14 from "react/jsx-runtime";
4
- import * as tailwind_variants233 from "tailwind-variants";
5
5
 
6
6
  //#region src/Slider/Slider.d.ts
7
- declare const sliderVariants: tailwind_variants233.TVReturnType<{
7
+ declare const sliderVariants: tailwind_variants197.TVReturnType<{
8
8
  [key: string]: {
9
- [key: string]: tailwind_variants233.ClassValue | {
10
- base?: tailwind_variants233.ClassValue;
11
- label?: tailwind_variants233.ClassValue;
12
- value?: tailwind_variants233.ClassValue;
13
- errorMessage?: tailwind_variants233.ClassValue;
14
- mark?: tailwind_variants233.ClassValue;
15
- track?: tailwind_variants233.ClassValue;
16
- step?: tailwind_variants233.ClassValue;
17
- endContent?: tailwind_variants233.ClassValue;
18
- startContent?: tailwind_variants233.ClassValue;
19
- thumb?: tailwind_variants233.ClassValue;
20
- labelWrapper?: tailwind_variants233.ClassValue;
21
- filler?: tailwind_variants233.ClassValue;
22
- trackWrapper?: tailwind_variants233.ClassValue;
9
+ [key: string]: tailwind_variants197.ClassValue | {
10
+ base?: tailwind_variants197.ClassValue;
11
+ errorMessage?: tailwind_variants197.ClassValue;
12
+ label?: tailwind_variants197.ClassValue;
13
+ value?: tailwind_variants197.ClassValue;
14
+ thumb?: tailwind_variants197.ClassValue;
15
+ mark?: tailwind_variants197.ClassValue;
16
+ track?: tailwind_variants197.ClassValue;
17
+ step?: tailwind_variants197.ClassValue;
18
+ startContent?: tailwind_variants197.ClassValue;
19
+ endContent?: tailwind_variants197.ClassValue;
20
+ labelWrapper?: tailwind_variants197.ClassValue;
21
+ filler?: tailwind_variants197.ClassValue;
22
+ trackWrapper?: tailwind_variants197.ClassValue;
23
23
  };
24
24
  };
25
25
  } | {
26
26
  [x: string]: {
27
- [x: string]: tailwind_variants233.ClassValue | {
28
- base?: tailwind_variants233.ClassValue;
29
- label?: tailwind_variants233.ClassValue;
30
- value?: tailwind_variants233.ClassValue;
31
- errorMessage?: tailwind_variants233.ClassValue;
32
- mark?: tailwind_variants233.ClassValue;
33
- track?: tailwind_variants233.ClassValue;
34
- step?: tailwind_variants233.ClassValue;
35
- endContent?: tailwind_variants233.ClassValue;
36
- startContent?: tailwind_variants233.ClassValue;
37
- thumb?: tailwind_variants233.ClassValue;
38
- labelWrapper?: tailwind_variants233.ClassValue;
39
- filler?: tailwind_variants233.ClassValue;
40
- trackWrapper?: tailwind_variants233.ClassValue;
27
+ [x: string]: tailwind_variants197.ClassValue | {
28
+ base?: tailwind_variants197.ClassValue;
29
+ errorMessage?: tailwind_variants197.ClassValue;
30
+ label?: tailwind_variants197.ClassValue;
31
+ value?: tailwind_variants197.ClassValue;
32
+ thumb?: tailwind_variants197.ClassValue;
33
+ mark?: tailwind_variants197.ClassValue;
34
+ track?: tailwind_variants197.ClassValue;
35
+ step?: tailwind_variants197.ClassValue;
36
+ startContent?: tailwind_variants197.ClassValue;
37
+ endContent?: tailwind_variants197.ClassValue;
38
+ labelWrapper?: tailwind_variants197.ClassValue;
39
+ filler?: tailwind_variants197.ClassValue;
40
+ trackWrapper?: tailwind_variants197.ClassValue;
41
41
  };
42
42
  };
43
43
  } | {}, {
@@ -56,20 +56,20 @@ declare const sliderVariants: tailwind_variants233.TVReturnType<{
56
56
  value: string;
57
57
  }, undefined, {
58
58
  [key: string]: {
59
- [key: string]: tailwind_variants233.ClassValue | {
60
- base?: tailwind_variants233.ClassValue;
61
- label?: tailwind_variants233.ClassValue;
62
- value?: tailwind_variants233.ClassValue;
63
- errorMessage?: tailwind_variants233.ClassValue;
64
- mark?: tailwind_variants233.ClassValue;
65
- track?: tailwind_variants233.ClassValue;
66
- step?: tailwind_variants233.ClassValue;
67
- endContent?: tailwind_variants233.ClassValue;
68
- startContent?: tailwind_variants233.ClassValue;
69
- thumb?: tailwind_variants233.ClassValue;
70
- labelWrapper?: tailwind_variants233.ClassValue;
71
- filler?: tailwind_variants233.ClassValue;
72
- trackWrapper?: tailwind_variants233.ClassValue;
59
+ [key: string]: tailwind_variants197.ClassValue | {
60
+ base?: tailwind_variants197.ClassValue;
61
+ errorMessage?: tailwind_variants197.ClassValue;
62
+ label?: tailwind_variants197.ClassValue;
63
+ value?: tailwind_variants197.ClassValue;
64
+ thumb?: tailwind_variants197.ClassValue;
65
+ mark?: tailwind_variants197.ClassValue;
66
+ track?: tailwind_variants197.ClassValue;
67
+ step?: tailwind_variants197.ClassValue;
68
+ startContent?: tailwind_variants197.ClassValue;
69
+ endContent?: tailwind_variants197.ClassValue;
70
+ labelWrapper?: tailwind_variants197.ClassValue;
71
+ filler?: tailwind_variants197.ClassValue;
72
+ trackWrapper?: tailwind_variants197.ClassValue;
73
73
  };
74
74
  };
75
75
  } | {}, {
@@ -86,7 +86,7 @@ declare const sliderVariants: tailwind_variants233.TVReturnType<{
86
86
  track: string;
87
87
  trackWrapper: string;
88
88
  value: string;
89
- }, tailwind_variants233.TVReturnType<unknown, {
89
+ }, tailwind_variants197.TVReturnType<unknown, {
90
90
  base: string;
91
91
  endContent: string;
92
92
  errorMessage: string;
@@ -163,7 +163,7 @@ declare const Slider: ({
163
163
  minValue,
164
164
  maxValue,
165
165
  ...uniformFieldProps
166
- }: SliderProps) => react_jsx_runtime14.JSX.Element;
166
+ }: SliderProps) => react_jsx_runtime10.JSX.Element;
167
167
  //#endregion
168
168
  export { SliderProps as n, Slider as t };
169
- //# sourceMappingURL=index-RiAo6yCB.d.ts.map
169
+ //# sourceMappingURL=index-5SxIjw6Y.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-5SxIjw6Y.d.cts","names":[],"sources":["../src/Slider/Slider.tsx"],"sourcesContent":[],"mappings":";;;;;;cAYa,qCAAc;;mBAmBzB,oBAAA,CAAA,UAAA;;MAnBW,YAmBX,CAAA,iCAAA;MAAA,KAAA,CAAA,iCAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAnByB;EAAA,KAAA,EAAA,MAAA;AAmBxB,CAAA,EAAA,SAEE,EAAA;EACA,CAAA,GAAA,EAAA,MAAS,CAAA,EAAA;IAEG,CAAA,GAAA,EAAA,MAAY,CAAA,oCAAA;MAIf,IAAA,CAAA,iCAAA;MAIC,YAAA,CAAA,iCAAA;MAkBE,KAAA,CAAA,iCAAA;MA1BoB,KAAA,CAAA,iCAAA;MAAY,KAAA,CAAA,iCAAA;MAiD3C,IAwHL,CAAA,iCAAA;MAxHe,KAAA,CAAA,iCAAA;MAAA,IAAA,CAAA,iCAAA;MAAA,YAAA,CAAA,iCAAA;MAAA,UAAA,CAAA,iCAAA;MAAA,YAAA,CAAA,iCAAA;MAAA,MAAA,CAAA,iCAAA;MAAA,YAAA,CAAA,iCAAA;IAAA,CAAA;EAAA,CAAA;CAAA,GAAA,CAAA,CAAA,EAAA;EAYb,IAAA,EAAA,MAAA;EAAW,UAAA,EAAA,MAAA;EA4Gb,YAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA5KI,YAAA,GAAe,eAAe;KAC9B,SAAA,GAAY,mBAAmB;UAEnB,WAAA,SAAoB;;;;cAIvB;;;;eAIC;;;;;;;;;;;;;;;;;;iBAkBE;;;;;;;;;;;;;;;;;;;;;;cAuBX;;;;;;;;;;;;GAYH,gBAAW,mBAAA,CAAA,GAAA,CAAA"}