@fuf-stack/uniform 1.4.2 → 1.5.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 (187) hide show
  1. package/dist/Checkboxes/index.cjs +16 -0
  2. package/dist/{RadioGroup → Checkboxes}/index.cjs.map +1 -1
  3. package/dist/Checkboxes/index.d.cts +10 -0
  4. package/dist/Checkboxes/index.d.ts +10 -0
  5. package/dist/Checkboxes/index.js +16 -0
  6. package/dist/{CheckboxGroup-B1g42iP0.d.cts → Checkboxes-CR0Uu2g9.d.cts} +9 -9
  7. package/dist/{CheckboxGroup-B1g42iP0.d.ts → Checkboxes-CR0Uu2g9.d.ts} +9 -9
  8. package/dist/FieldArray/index.cjs +5 -5
  9. package/dist/FieldArray/index.d.cts +2 -2
  10. package/dist/FieldArray/index.d.ts +2 -2
  11. package/dist/FieldArray/index.js +4 -4
  12. package/dist/FieldArray-EP4otr2x.d.cts +160 -0
  13. package/dist/FieldArray-EP4otr2x.d.ts +160 -0
  14. package/dist/{FieldValidationError-CU_xw0BL.d.ts → FieldValidationError-DwtLkGMo.d.cts} +2 -2
  15. package/dist/{FieldValidationError-CU_xw0BL.d.cts → FieldValidationError-DwtLkGMo.d.ts} +2 -2
  16. package/dist/Form/index.cjs +6 -4
  17. package/dist/Form/index.cjs.map +1 -1
  18. package/dist/Form/index.js +5 -3
  19. package/dist/Input/index.cjs +5 -5
  20. package/dist/Input/index.d.cts +2 -2
  21. package/dist/Input/index.d.ts +2 -2
  22. package/dist/Input/index.js +4 -4
  23. package/dist/{Input-C6ujfEkn.d.ts → Input-CCIEnvIp.d.ts} +1 -1
  24. package/dist/{Input-BQkZtJx8.d.cts → Input-D7HT_8jf.d.cts} +1 -1
  25. package/dist/RadioBoxes/index.cjs +5 -5
  26. package/dist/RadioBoxes/index.d.cts +3 -2
  27. package/dist/RadioBoxes/index.d.ts +3 -2
  28. package/dist/RadioBoxes/index.js +4 -4
  29. package/dist/{RadioBoxes-CE3mYoFk.d.cts → RadioBoxes-DpkI28l0.d.cts} +3 -2
  30. package/dist/{RadioBoxes-CE3mYoFk.d.ts → RadioBoxes-DpkI28l0.d.ts} +3 -2
  31. package/dist/RadioTabs/index.cjs +5 -5
  32. package/dist/RadioTabs/index.d.cts +2 -2
  33. package/dist/RadioTabs/index.d.ts +2 -2
  34. package/dist/RadioTabs/index.js +4 -4
  35. package/dist/{RadioTabs-BCWW3tru.d.cts → RadioTabs-DTDcAZoH.d.cts} +1 -1
  36. package/dist/{RadioTabs-BCWW3tru.d.ts → RadioTabs-DTDcAZoH.d.ts} +1 -1
  37. package/dist/Radios/index.cjs +16 -0
  38. package/dist/Radios/index.cjs.map +1 -0
  39. package/dist/Radios/index.d.cts +9 -0
  40. package/dist/Radios/index.d.ts +9 -0
  41. package/dist/Radios/index.js +16 -0
  42. package/dist/{RadioGroup-CAOX80Xx.d.cts → Radios-DprlJhoq.d.cts} +9 -9
  43. package/dist/{RadioGroup-CAOX80Xx.d.ts → Radios-DprlJhoq.d.ts} +9 -9
  44. package/dist/Select/index.cjs +5 -5
  45. package/dist/Select/index.d.cts +2 -2
  46. package/dist/Select/index.d.ts +2 -2
  47. package/dist/Select/index.js +4 -4
  48. package/dist/{Select-CTRWinmO.d.cts → Select-CDkZmZp2.d.cts} +1 -1
  49. package/dist/{Select-CTRWinmO.d.ts → Select-CDkZmZp2.d.ts} +1 -1
  50. package/dist/SubmitButton/index.cjs +6 -4
  51. package/dist/SubmitButton/index.cjs.map +1 -1
  52. package/dist/SubmitButton/index.js +5 -3
  53. package/dist/Switch/index.cjs +5 -5
  54. package/dist/Switch/index.js +4 -4
  55. package/dist/TextArea/index.cjs +5 -5
  56. package/dist/TextArea/index.d.cts +4 -2
  57. package/dist/TextArea/index.d.ts +4 -2
  58. package/dist/TextArea/index.js +4 -4
  59. package/dist/TextArea-DhxNWYNg.d.cts +86 -0
  60. package/dist/TextArea-DhxNWYNg.d.ts +86 -0
  61. package/dist/{chunk-Y3GELCDP.js → chunk-2QLCCB3L.js} +62 -67
  62. package/dist/chunk-2QLCCB3L.js.map +1 -0
  63. package/dist/chunk-3YDAYNNB.cjs +683 -0
  64. package/dist/chunk-3YDAYNNB.cjs.map +1 -0
  65. package/dist/chunk-4GBNXNCZ.js +683 -0
  66. package/dist/chunk-4GBNXNCZ.js.map +1 -0
  67. package/dist/{chunk-ULR4573W.cjs → chunk-4MMOSRT3.cjs} +40 -38
  68. package/dist/chunk-4MMOSRT3.cjs.map +1 -0
  69. package/dist/{chunk-FHRMVL6B.js → chunk-62BVHALF.js} +134 -89
  70. package/dist/chunk-62BVHALF.js.map +1 -0
  71. package/dist/{chunk-UGCZORU3.cjs → chunk-65BN4MRG.cjs} +9 -9
  72. package/dist/chunk-65BN4MRG.cjs.map +1 -0
  73. package/dist/{chunk-2B6CDMOZ.js → chunk-74NPRJVH.js} +16 -25
  74. package/dist/chunk-74NPRJVH.js.map +1 -0
  75. package/dist/chunk-76KOVUDN.js +138 -0
  76. package/dist/chunk-76KOVUDN.js.map +1 -0
  77. package/dist/{chunk-AYNTZPKL.cjs → chunk-7NWHDCME.cjs} +132 -87
  78. package/dist/chunk-7NWHDCME.cjs.map +1 -0
  79. package/dist/{chunk-IYDCKENI.js → chunk-CFH4VPJ4.js} +166 -26
  80. package/dist/chunk-CFH4VPJ4.js.map +1 -0
  81. package/dist/{chunk-KG4XCEPW.js → chunk-COLAXULB.js} +42 -40
  82. package/dist/chunk-COLAXULB.js.map +1 -0
  83. package/dist/{chunk-N2EEOWEP.cjs → chunk-DHO4HSO7.cjs} +59 -64
  84. package/dist/chunk-DHO4HSO7.cjs.map +1 -0
  85. package/dist/{chunk-77C6VN4L.cjs → chunk-EAJFV3AD.cjs} +50 -47
  86. package/dist/chunk-EAJFV3AD.cjs.map +1 -0
  87. package/dist/chunk-ELYGQTXB.js +47 -0
  88. package/dist/chunk-ELYGQTXB.js.map +1 -0
  89. package/dist/{chunk-FOVP54XP.cjs → chunk-EO4A7QGM.cjs} +18 -27
  90. package/dist/chunk-EO4A7QGM.cjs.map +1 -0
  91. package/dist/chunk-GVMEDVT5.cjs +117 -0
  92. package/dist/chunk-GVMEDVT5.cjs.map +1 -0
  93. package/dist/chunk-HSKFVCTS.js +103 -0
  94. package/dist/chunk-HSKFVCTS.js.map +1 -0
  95. package/dist/{chunk-2GYFDVXX.cjs → chunk-J5FFM7WG.cjs} +173 -33
  96. package/dist/chunk-J5FFM7WG.cjs.map +1 -0
  97. package/dist/{chunk-M2DNMSQZ.js → chunk-JLJB4A4K.js} +52 -49
  98. package/dist/chunk-JLJB4A4K.js.map +1 -0
  99. package/dist/{chunk-C64RKQEW.cjs → chunk-KBUECB4B.cjs} +3 -3
  100. package/dist/{chunk-C64RKQEW.cjs.map → chunk-KBUECB4B.cjs.map} +1 -1
  101. package/dist/chunk-NHEZXA4H.cjs +47 -0
  102. package/dist/chunk-NHEZXA4H.cjs.map +1 -0
  103. package/dist/chunk-RTFM4VRY.cjs +103 -0
  104. package/dist/chunk-RTFM4VRY.cjs.map +1 -0
  105. package/dist/{chunk-LJQ35BUK.js → chunk-RW35BB4P.js} +2 -2
  106. package/dist/{chunk-M7VM7XBE.js → chunk-SLTUNYTD.js} +8 -8
  107. package/dist/chunk-SLTUNYTD.js.map +1 -0
  108. package/dist/{chunk-YEKHVKS3.cjs → chunk-TFMVYQGN.cjs} +44 -42
  109. package/dist/chunk-TFMVYQGN.cjs.map +1 -0
  110. package/dist/chunk-TVMCTUQ4.js +117 -0
  111. package/dist/chunk-TVMCTUQ4.js.map +1 -0
  112. package/dist/chunk-Z353BLWI.cjs +138 -0
  113. package/dist/chunk-Z353BLWI.cjs.map +1 -0
  114. package/dist/{chunk-C52NGPIF.js → chunk-ZQ64MG7T.js} +48 -46
  115. package/dist/chunk-ZQ64MG7T.js.map +1 -0
  116. package/dist/helpers/index.cjs +4 -2
  117. package/dist/helpers/index.cjs.map +1 -1
  118. package/dist/helpers/index.d.cts +54 -10
  119. package/dist/helpers/index.d.ts +54 -10
  120. package/dist/helpers/index.js +3 -1
  121. package/dist/hooks/index.cjs +7 -3
  122. package/dist/hooks/index.cjs.map +1 -1
  123. package/dist/hooks/index.d.cts +86 -4
  124. package/dist/hooks/index.d.ts +86 -4
  125. package/dist/hooks/index.js +8 -4
  126. package/dist/index.cjs +20 -16
  127. package/dist/index.cjs.map +1 -1
  128. package/dist/index.d.cts +11 -11
  129. package/dist/index.d.ts +11 -11
  130. package/dist/index.js +30 -26
  131. package/dist/partials/FieldValidationError/index.cjs +2 -2
  132. package/dist/partials/FieldValidationError/index.d.cts +2 -2
  133. package/dist/partials/FieldValidationError/index.d.ts +2 -2
  134. package/dist/partials/FieldValidationError/index.js +1 -1
  135. package/package.json +12 -11
  136. package/dist/CheckboxGroup/index.cjs +0 -16
  137. package/dist/CheckboxGroup/index.cjs.map +0 -1
  138. package/dist/CheckboxGroup/index.d.cts +0 -10
  139. package/dist/CheckboxGroup/index.d.ts +0 -10
  140. package/dist/CheckboxGroup/index.js +0 -16
  141. package/dist/FieldArray-DVQka7Bh.d.cts +0 -130
  142. package/dist/FieldArray-DVQka7Bh.d.ts +0 -130
  143. package/dist/RadioGroup/index.cjs +0 -16
  144. package/dist/RadioGroup/index.d.cts +0 -9
  145. package/dist/RadioGroup/index.d.ts +0 -9
  146. package/dist/RadioGroup/index.js +0 -16
  147. package/dist/TextArea-DnFGyl4a.d.cts +0 -27
  148. package/dist/TextArea-DnFGyl4a.d.ts +0 -27
  149. package/dist/chunk-2B6CDMOZ.js.map +0 -1
  150. package/dist/chunk-2GYFDVXX.cjs.map +0 -1
  151. package/dist/chunk-77C6VN4L.cjs.map +0 -1
  152. package/dist/chunk-AYNTZPKL.cjs.map +0 -1
  153. package/dist/chunk-C52NGPIF.js.map +0 -1
  154. package/dist/chunk-CQWA2DFV.js +0 -37
  155. package/dist/chunk-CQWA2DFV.js.map +0 -1
  156. package/dist/chunk-EEBHFSBY.cjs +0 -112
  157. package/dist/chunk-EEBHFSBY.cjs.map +0 -1
  158. package/dist/chunk-FHRMVL6B.js.map +0 -1
  159. package/dist/chunk-FOVP54XP.cjs.map +0 -1
  160. package/dist/chunk-IYDCKENI.js.map +0 -1
  161. package/dist/chunk-JZF4HUYO.cjs +0 -409
  162. package/dist/chunk-JZF4HUYO.cjs.map +0 -1
  163. package/dist/chunk-KG4XCEPW.js.map +0 -1
  164. package/dist/chunk-KQN55PEW.js +0 -76
  165. package/dist/chunk-KQN55PEW.js.map +0 -1
  166. package/dist/chunk-M2DNMSQZ.js.map +0 -1
  167. package/dist/chunk-M7VM7XBE.js.map +0 -1
  168. package/dist/chunk-N2EEOWEP.cjs.map +0 -1
  169. package/dist/chunk-NAZIH6HV.js +0 -409
  170. package/dist/chunk-NAZIH6HV.js.map +0 -1
  171. package/dist/chunk-RDBCJJI7.cjs +0 -88
  172. package/dist/chunk-RDBCJJI7.cjs.map +0 -1
  173. package/dist/chunk-RF7KNUCI.js +0 -88
  174. package/dist/chunk-RF7KNUCI.js.map +0 -1
  175. package/dist/chunk-UGCZORU3.cjs.map +0 -1
  176. package/dist/chunk-ULR4573W.cjs.map +0 -1
  177. package/dist/chunk-XKMLCM5K.js +0 -112
  178. package/dist/chunk-XKMLCM5K.js.map +0 -1
  179. package/dist/chunk-Y3AB4GV6.cjs +0 -37
  180. package/dist/chunk-Y3AB4GV6.cjs.map +0 -1
  181. package/dist/chunk-Y3GELCDP.js.map +0 -1
  182. package/dist/chunk-YEKHVKS3.cjs.map +0 -1
  183. package/dist/chunk-YGNY6CKU.cjs +0 -76
  184. package/dist/chunk-YGNY6CKU.cjs.map +0 -1
  185. /package/dist/{CheckboxGroup → Checkboxes}/index.js.map +0 -0
  186. /package/dist/{RadioGroup → Radios}/index.js.map +0 -0
  187. /package/dist/{chunk-LJQ35BUK.js.map → chunk-RW35BB4P.js.map} +0 -0
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkDHO4HSO7cjs = require('../chunk-DHO4HSO7.cjs');
5
+ require('../chunk-J5FFM7WG.cjs');
6
+ require('../chunk-OE5BOGGX.cjs');
7
+ require('../chunk-NHEZXA4H.cjs');
8
+ require('../chunk-Z353BLWI.cjs');
9
+ require('../chunk-FLK6OPFY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
+ require('../chunk-555JRYCS.cjs');
12
+
13
+
14
+
15
+ exports.Checkboxes = _chunkDHO4HSO7cjs.Checkboxes_default; exports.default = _chunkDHO4HSO7cjs.Checkboxes_default2;
16
+ //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/RadioGroup/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,mHAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/RadioGroup/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/Checkboxes/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,mHAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/Checkboxes/index.cjs"}
@@ -0,0 +1,10 @@
1
+ import { C as Checkboxes } from '../Checkboxes-CR0Uu2g9.cjs';
2
+ export { b as CheckboxOption, a as CheckboxesProps } from '../Checkboxes-CR0Uu2g9.cjs';
3
+ import 'react/jsx-runtime';
4
+ import 'tailwind-variants';
5
+ import '@fuf-stack/pixel-utils';
6
+ import 'react';
7
+
8
+
9
+
10
+ export { Checkboxes, Checkboxes as default };
@@ -0,0 +1,10 @@
1
+ import { C as Checkboxes } from '../Checkboxes-CR0Uu2g9.js';
2
+ export { b as CheckboxOption, a as CheckboxesProps } from '../Checkboxes-CR0Uu2g9.js';
3
+ import 'react/jsx-runtime';
4
+ import 'tailwind-variants';
5
+ import '@fuf-stack/pixel-utils';
6
+ import 'react';
7
+
8
+
9
+
10
+ export { Checkboxes, Checkboxes as default };
@@ -0,0 +1,16 @@
1
+ import {
2
+ Checkboxes_default,
3
+ Checkboxes_default2
4
+ } from "../chunk-2QLCCB3L.js";
5
+ import "../chunk-CFH4VPJ4.js";
6
+ import "../chunk-NTDKZW4E.js";
7
+ import "../chunk-ELYGQTXB.js";
8
+ import "../chunk-76KOVUDN.js";
9
+ import "../chunk-6IU7IYYB.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
+ import "../chunk-K2V4ULA2.js";
12
+ export {
13
+ Checkboxes_default as Checkboxes,
14
+ Checkboxes_default2 as default
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@ import * as tailwind_variants from 'tailwind-variants';
3
3
  import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
4
4
  import { ReactNode } from 'react';
5
5
 
6
- declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
6
+ declare const checkboxesVariants: tailwind_variants.TVReturnType<{
7
7
  color: {
8
8
  readonly default: {
9
9
  wrapper: string;
@@ -124,9 +124,9 @@ declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
124
124
  optionWrapper: string;
125
125
  wrapper: string;
126
126
  }, undefined, unknown, unknown, undefined>>;
127
- type VariantProps = TVProps<typeof checkboxGroupVariants>;
128
- type ClassName = TVClassName<typeof checkboxGroupVariants>;
129
- interface CheckboxGroupOption {
127
+ type VariantProps = TVProps<typeof checkboxesVariants>;
128
+ type ClassName = TVClassName<typeof checkboxesVariants>;
129
+ interface CheckboxOption {
130
130
  /** option label */
131
131
  label?: ReactNode;
132
132
  /** subline displayed below the label */
@@ -138,7 +138,7 @@ interface CheckboxGroupOption {
138
138
  /** HTML data-testid attribute of the option */
139
139
  testId?: string;
140
140
  }
141
- interface CheckboxGroupProps extends VariantProps {
141
+ interface CheckboxesProps extends VariantProps {
142
142
  /** CSS class name */
143
143
  className?: ClassName;
144
144
  /** Color scheme of the checkboxes */
@@ -154,13 +154,13 @@ interface CheckboxGroupProps extends VariantProps {
154
154
  /** Name the Field is registered on the form */
155
155
  name: string;
156
156
  /** Checkboxes that should be displayed. */
157
- options: CheckboxGroupOption[];
157
+ options: CheckboxOption[];
158
158
  /** HTML data-testid attribute used in e2e tests */
159
159
  testId?: string;
160
160
  }
161
161
  /**
162
- * CheckboxGroup component based on [HeroUI CheckboxGroup](https://www.heroui.com//docs/components/checkbox-group)
162
+ * Checkboxes component based on [HeroUI CheckboxGroup](https://www.heroui.com//docs/components/checkbox-group)
163
163
  */
164
- declare const CheckboxGroup: ({ className, color, inline, label, lineThrough, options, disabled, name, testId: _testId, }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
164
+ declare const Checkboxes: ({ className, color, inline, lineThrough, options, name, ...uniformFieldProps }: CheckboxesProps) => react_jsx_runtime.JSX.Element;
165
165
 
166
- export { CheckboxGroup as C, type CheckboxGroupProps as a, type CheckboxGroupOption as b };
166
+ export { Checkboxes as C, type CheckboxesProps as a, type CheckboxOption as b };
@@ -3,7 +3,7 @@ import * as tailwind_variants from 'tailwind-variants';
3
3
  import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
4
4
  import { ReactNode } from 'react';
5
5
 
6
- declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
6
+ declare const checkboxesVariants: tailwind_variants.TVReturnType<{
7
7
  color: {
8
8
  readonly default: {
9
9
  wrapper: string;
@@ -124,9 +124,9 @@ declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
124
124
  optionWrapper: string;
125
125
  wrapper: string;
126
126
  }, undefined, unknown, unknown, undefined>>;
127
- type VariantProps = TVProps<typeof checkboxGroupVariants>;
128
- type ClassName = TVClassName<typeof checkboxGroupVariants>;
129
- interface CheckboxGroupOption {
127
+ type VariantProps = TVProps<typeof checkboxesVariants>;
128
+ type ClassName = TVClassName<typeof checkboxesVariants>;
129
+ interface CheckboxOption {
130
130
  /** option label */
131
131
  label?: ReactNode;
132
132
  /** subline displayed below the label */
@@ -138,7 +138,7 @@ interface CheckboxGroupOption {
138
138
  /** HTML data-testid attribute of the option */
139
139
  testId?: string;
140
140
  }
141
- interface CheckboxGroupProps extends VariantProps {
141
+ interface CheckboxesProps extends VariantProps {
142
142
  /** CSS class name */
143
143
  className?: ClassName;
144
144
  /** Color scheme of the checkboxes */
@@ -154,13 +154,13 @@ interface CheckboxGroupProps extends VariantProps {
154
154
  /** Name the Field is registered on the form */
155
155
  name: string;
156
156
  /** Checkboxes that should be displayed. */
157
- options: CheckboxGroupOption[];
157
+ options: CheckboxOption[];
158
158
  /** HTML data-testid attribute used in e2e tests */
159
159
  testId?: string;
160
160
  }
161
161
  /**
162
- * CheckboxGroup component based on [HeroUI CheckboxGroup](https://www.heroui.com//docs/components/checkbox-group)
162
+ * Checkboxes component based on [HeroUI CheckboxGroup](https://www.heroui.com//docs/components/checkbox-group)
163
163
  */
164
- declare const CheckboxGroup: ({ className, color, inline, label, lineThrough, options, disabled, name, testId: _testId, }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
164
+ declare const Checkboxes: ({ className, color, inline, lineThrough, options, name, ...uniformFieldProps }: CheckboxesProps) => react_jsx_runtime.JSX.Element;
165
165
 
166
- export { CheckboxGroup as C, type CheckboxGroupProps as a, type CheckboxGroupOption as b };
166
+ export { Checkboxes as C, type CheckboxesProps as a, type CheckboxOption as b };
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkJZF4HUYOcjs = require('../chunk-JZF4HUYO.cjs');
4
+ var _chunk3YDAYNNBcjs = require('../chunk-3YDAYNNB.cjs');
5
5
  require('../chunk-TTD3KL6E.cjs');
6
+ require('../chunk-J5FFM7WG.cjs');
6
7
  require('../chunk-OE5BOGGX.cjs');
7
- require('../chunk-Y3AB4GV6.cjs');
8
- require('../chunk-2GYFDVXX.cjs');
9
- require('../chunk-YGNY6CKU.cjs');
8
+ require('../chunk-NHEZXA4H.cjs');
9
+ require('../chunk-Z353BLWI.cjs');
10
10
  require('../chunk-FLK6OPFY.cjs');
11
11
  require('../chunk-P6HJOG7D.cjs');
12
12
  require('../chunk-555JRYCS.cjs');
13
13
 
14
14
 
15
15
 
16
- exports.FieldArray = _chunkJZF4HUYOcjs.FieldArray_default; exports.default = _chunkJZF4HUYOcjs.FieldArray_default2;
16
+ exports.FieldArray = _chunk3YDAYNNBcjs.FieldArray_default; exports.default = _chunk3YDAYNNBcjs.FieldArray_default2;
17
17
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { F as FieldArray } from '../FieldArray-DVQka7Bh.cjs';
2
- export { a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from '../FieldArray-DVQka7Bh.cjs';
1
+ import { F as FieldArray } from '../FieldArray-EP4otr2x.cjs';
2
+ export { a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from '../FieldArray-EP4otr2x.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';
@@ -1,5 +1,5 @@
1
- import { F as FieldArray } from '../FieldArray-DVQka7Bh.js';
2
- export { a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from '../FieldArray-DVQka7Bh.js';
1
+ import { F as FieldArray } from '../FieldArray-EP4otr2x.js';
2
+ export { a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from '../FieldArray-EP4otr2x.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  FieldArray_default,
3
3
  FieldArray_default2
4
- } from "../chunk-NAZIH6HV.js";
4
+ } from "../chunk-4GBNXNCZ.js";
5
5
  import "../chunk-B62HKKMS.js";
6
+ import "../chunk-CFH4VPJ4.js";
6
7
  import "../chunk-NTDKZW4E.js";
7
- import "../chunk-CQWA2DFV.js";
8
- import "../chunk-IYDCKENI.js";
9
- import "../chunk-KQN55PEW.js";
8
+ import "../chunk-ELYGQTXB.js";
9
+ import "../chunk-76KOVUDN.js";
10
10
  import "../chunk-6IU7IYYB.js";
11
11
  import "../chunk-Q2BOMFJ5.js";
12
12
  import "../chunk-K2V4ULA2.js";
@@ -0,0 +1,160 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
4
+ import { JSX, CSSProperties } from 'react';
5
+
6
+ interface FieldArrayElementMethods {
7
+ /** Add new element at end */
8
+ append: () => void;
9
+ /** Clone current element */
10
+ duplicate: () => void;
11
+ /** Add new element after current */
12
+ insert: () => void;
13
+ /** Remove current element */
14
+ remove: () => void;
15
+ }
16
+
17
+ type VariantProps = TVProps<typeof fieldArrayVariants>;
18
+ type ClassName = TVClassName<typeof fieldArrayVariants>;
19
+ /** provided all data and methods to render a field array element */
20
+ type FieldArrayChildrenRenderFn = (args: {
21
+ /** index of the current element in the field array */
22
+ index: number;
23
+ /** total length of the field array */
24
+ length: number;
25
+ /** methods of the current element to change the field array */
26
+ methods: FieldArrayElementMethods;
27
+ /** HTML data-testid attribute used in e2e tests of the current element */
28
+ name: string;
29
+ /** field name of the current element */
30
+ testId: string;
31
+ }) => JSX.Element;
32
+ interface FieldArrayFeatures {
33
+ /** enables duplicating existing elements */
34
+ duplicate?: boolean;
35
+ /** enables inserting new elements after existing elements */
36
+ insertAfter?: boolean;
37
+ /** enables sorting by drag-n-drop */
38
+ sortable?: boolean;
39
+ }
40
+ interface FieldArrayProps extends FieldArrayFeatures, VariantProps {
41
+ /** text of the append element button */
42
+ appendButtonText: string;
43
+ /** function that renders the children with provided Properties. */
44
+ children: FieldArrayChildrenRenderFn;
45
+ /** CSS class name */
46
+ className?: ClassName;
47
+ elementInitialValue?: unknown;
48
+ elementMarginBottom?: CSSProperties['marginBottom'];
49
+ /** when true, array stores primitives as wrapper objects: { __FLAT__: value } */
50
+ flat?: boolean;
51
+ /** label of the field array */
52
+ label?: React.ReactNode;
53
+ /** when true (default false) last element can not be removed and will be shown even if field array is empty */
54
+ lastElementNotRemovable?: boolean;
55
+ /** form field name */
56
+ name: string;
57
+ /** HTML data-testid attribute used in e2e tests */
58
+ testId?: string;
59
+ }
60
+
61
+ declare const fieldArrayVariants: tailwind_variants.TVReturnType<{
62
+ hasLabel: {
63
+ false: {
64
+ actionsMenuButton: string;
65
+ removeButton: string;
66
+ sortDragHandle: string;
67
+ };
68
+ };
69
+ }, {
70
+ /** base class for the field array wrapper */
71
+ base: string[];
72
+ /** class for the actions menu button */
73
+ actionsMenuButton: string[];
74
+ /** class for the append button */
75
+ appendButton: string[];
76
+ /** class for the element fields grid */
77
+ elementFieldsGrid: string[];
78
+ /** class for the label */
79
+ label: string[];
80
+ /** class for the list */
81
+ list: string[];
82
+ /** class for the list wrapper */
83
+ listWrapper: string[];
84
+ /** class for the list item (performs motion animations) */
85
+ listItem: string[];
86
+ /** class for the list item inner */
87
+ listItemInner: string[];
88
+ /** class for the remove button */
89
+ removeButton: string[];
90
+ /** class for the sort drag handle */
91
+ sortDragHandle: string[];
92
+ }, undefined, {
93
+ hasLabel: {
94
+ false: {
95
+ actionsMenuButton: string;
96
+ removeButton: string;
97
+ sortDragHandle: string;
98
+ };
99
+ };
100
+ }, {
101
+ /** base class for the field array wrapper */
102
+ base: string[];
103
+ /** class for the actions menu button */
104
+ actionsMenuButton: string[];
105
+ /** class for the append button */
106
+ appendButton: string[];
107
+ /** class for the element fields grid */
108
+ elementFieldsGrid: string[];
109
+ /** class for the label */
110
+ label: string[];
111
+ /** class for the list */
112
+ list: string[];
113
+ /** class for the list wrapper */
114
+ listWrapper: string[];
115
+ /** class for the list item (performs motion animations) */
116
+ listItem: string[];
117
+ /** class for the list item inner */
118
+ listItemInner: string[];
119
+ /** class for the remove button */
120
+ removeButton: string[];
121
+ /** class for the sort drag handle */
122
+ sortDragHandle: string[];
123
+ }, tailwind_variants.TVReturnType<{
124
+ hasLabel: {
125
+ false: {
126
+ actionsMenuButton: string;
127
+ removeButton: string;
128
+ sortDragHandle: string;
129
+ };
130
+ };
131
+ }, {
132
+ /** base class for the field array wrapper */
133
+ base: string[];
134
+ /** class for the actions menu button */
135
+ actionsMenuButton: string[];
136
+ /** class for the append button */
137
+ appendButton: string[];
138
+ /** class for the element fields grid */
139
+ elementFieldsGrid: string[];
140
+ /** class for the label */
141
+ label: string[];
142
+ /** class for the list */
143
+ list: string[];
144
+ /** class for the list wrapper */
145
+ listWrapper: string[];
146
+ /** class for the list item (performs motion animations) */
147
+ listItem: string[];
148
+ /** class for the list item inner */
149
+ listItemInner: string[];
150
+ /** class for the remove button */
151
+ removeButton: string[];
152
+ /** class for the sort drag handle */
153
+ sortDragHandle: string[];
154
+ }, undefined, unknown, unknown, undefined>>;
155
+ /**
156
+ * FieldArray component based in [RHF useFieldArray](https://react-hook-form.com/docs/usefieldarray)
157
+ */
158
+ declare const FieldArray: ({ appendButtonText, children, className: _className, duplicate, elementInitialValue: _elementInitialValue, elementMarginBottom, flat, insertAfter, lastElementNotRemovable, name, sortable, ...uniformFieldProps }: FieldArrayProps) => react_jsx_runtime.JSX.Element;
159
+
160
+ export { FieldArray as F, type FieldArrayChildrenRenderFn as a, type FieldArrayFeatures as b, type FieldArrayProps as c };
@@ -0,0 +1,160 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
4
+ import { JSX, CSSProperties } from 'react';
5
+
6
+ interface FieldArrayElementMethods {
7
+ /** Add new element at end */
8
+ append: () => void;
9
+ /** Clone current element */
10
+ duplicate: () => void;
11
+ /** Add new element after current */
12
+ insert: () => void;
13
+ /** Remove current element */
14
+ remove: () => void;
15
+ }
16
+
17
+ type VariantProps = TVProps<typeof fieldArrayVariants>;
18
+ type ClassName = TVClassName<typeof fieldArrayVariants>;
19
+ /** provided all data and methods to render a field array element */
20
+ type FieldArrayChildrenRenderFn = (args: {
21
+ /** index of the current element in the field array */
22
+ index: number;
23
+ /** total length of the field array */
24
+ length: number;
25
+ /** methods of the current element to change the field array */
26
+ methods: FieldArrayElementMethods;
27
+ /** HTML data-testid attribute used in e2e tests of the current element */
28
+ name: string;
29
+ /** field name of the current element */
30
+ testId: string;
31
+ }) => JSX.Element;
32
+ interface FieldArrayFeatures {
33
+ /** enables duplicating existing elements */
34
+ duplicate?: boolean;
35
+ /** enables inserting new elements after existing elements */
36
+ insertAfter?: boolean;
37
+ /** enables sorting by drag-n-drop */
38
+ sortable?: boolean;
39
+ }
40
+ interface FieldArrayProps extends FieldArrayFeatures, VariantProps {
41
+ /** text of the append element button */
42
+ appendButtonText: string;
43
+ /** function that renders the children with provided Properties. */
44
+ children: FieldArrayChildrenRenderFn;
45
+ /** CSS class name */
46
+ className?: ClassName;
47
+ elementInitialValue?: unknown;
48
+ elementMarginBottom?: CSSProperties['marginBottom'];
49
+ /** when true, array stores primitives as wrapper objects: { __FLAT__: value } */
50
+ flat?: boolean;
51
+ /** label of the field array */
52
+ label?: React.ReactNode;
53
+ /** when true (default false) last element can not be removed and will be shown even if field array is empty */
54
+ lastElementNotRemovable?: boolean;
55
+ /** form field name */
56
+ name: string;
57
+ /** HTML data-testid attribute used in e2e tests */
58
+ testId?: string;
59
+ }
60
+
61
+ declare const fieldArrayVariants: tailwind_variants.TVReturnType<{
62
+ hasLabel: {
63
+ false: {
64
+ actionsMenuButton: string;
65
+ removeButton: string;
66
+ sortDragHandle: string;
67
+ };
68
+ };
69
+ }, {
70
+ /** base class for the field array wrapper */
71
+ base: string[];
72
+ /** class for the actions menu button */
73
+ actionsMenuButton: string[];
74
+ /** class for the append button */
75
+ appendButton: string[];
76
+ /** class for the element fields grid */
77
+ elementFieldsGrid: string[];
78
+ /** class for the label */
79
+ label: string[];
80
+ /** class for the list */
81
+ list: string[];
82
+ /** class for the list wrapper */
83
+ listWrapper: string[];
84
+ /** class for the list item (performs motion animations) */
85
+ listItem: string[];
86
+ /** class for the list item inner */
87
+ listItemInner: string[];
88
+ /** class for the remove button */
89
+ removeButton: string[];
90
+ /** class for the sort drag handle */
91
+ sortDragHandle: string[];
92
+ }, undefined, {
93
+ hasLabel: {
94
+ false: {
95
+ actionsMenuButton: string;
96
+ removeButton: string;
97
+ sortDragHandle: string;
98
+ };
99
+ };
100
+ }, {
101
+ /** base class for the field array wrapper */
102
+ base: string[];
103
+ /** class for the actions menu button */
104
+ actionsMenuButton: string[];
105
+ /** class for the append button */
106
+ appendButton: string[];
107
+ /** class for the element fields grid */
108
+ elementFieldsGrid: string[];
109
+ /** class for the label */
110
+ label: string[];
111
+ /** class for the list */
112
+ list: string[];
113
+ /** class for the list wrapper */
114
+ listWrapper: string[];
115
+ /** class for the list item (performs motion animations) */
116
+ listItem: string[];
117
+ /** class for the list item inner */
118
+ listItemInner: string[];
119
+ /** class for the remove button */
120
+ removeButton: string[];
121
+ /** class for the sort drag handle */
122
+ sortDragHandle: string[];
123
+ }, tailwind_variants.TVReturnType<{
124
+ hasLabel: {
125
+ false: {
126
+ actionsMenuButton: string;
127
+ removeButton: string;
128
+ sortDragHandle: string;
129
+ };
130
+ };
131
+ }, {
132
+ /** base class for the field array wrapper */
133
+ base: string[];
134
+ /** class for the actions menu button */
135
+ actionsMenuButton: string[];
136
+ /** class for the append button */
137
+ appendButton: string[];
138
+ /** class for the element fields grid */
139
+ elementFieldsGrid: string[];
140
+ /** class for the label */
141
+ label: string[];
142
+ /** class for the list */
143
+ list: string[];
144
+ /** class for the list wrapper */
145
+ listWrapper: string[];
146
+ /** class for the list item (performs motion animations) */
147
+ listItem: string[];
148
+ /** class for the list item inner */
149
+ listItemInner: string[];
150
+ /** class for the remove button */
151
+ removeButton: string[];
152
+ /** class for the sort drag handle */
153
+ sortDragHandle: string[];
154
+ }, undefined, unknown, unknown, undefined>>;
155
+ /**
156
+ * FieldArray component based in [RHF useFieldArray](https://react-hook-form.com/docs/usefieldarray)
157
+ */
158
+ declare const FieldArray: ({ appendButtonText, children, className: _className, duplicate, elementInitialValue: _elementInitialValue, elementMarginBottom, flat, insertAfter, lastElementNotRemovable, name, sortable, ...uniformFieldProps }: FieldArrayProps) => react_jsx_runtime.JSX.Element;
159
+
160
+ export { FieldArray as F, type FieldArrayChildrenRenderFn as a, type FieldArrayFeatures as b, type FieldArrayProps as c };
@@ -5,13 +5,13 @@ interface FieldValidationErrorProps {
5
5
  /** CSS class name */
6
6
  className?: string;
7
7
  /** Field errors */
8
- error: FieldError | FieldError[];
8
+ error?: FieldError[];
9
9
  /** HTML data-testid attribute used in e2e tests */
10
10
  testId: string;
11
11
  }
12
12
  /**
13
13
  * Renders a validation error of a field
14
14
  */
15
- declare const FieldValidationError: ({ className, error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element | null;
15
+ declare const FieldValidationError: ({ className, error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element;
16
16
 
17
17
  export { FieldValidationError as F, type FieldValidationErrorProps as a };
@@ -5,13 +5,13 @@ interface FieldValidationErrorProps {
5
5
  /** CSS class name */
6
6
  className?: string;
7
7
  /** Field errors */
8
- error: FieldError | FieldError[];
8
+ error?: FieldError[];
9
9
  /** HTML data-testid attribute used in e2e tests */
10
10
  testId: string;
11
11
  }
12
12
  /**
13
13
  * Renders a validation error of a field
14
14
  */
15
- declare const FieldValidationError: ({ className, error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element | null;
15
+ declare const FieldValidationError: ({ className, error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element;
16
16
 
17
17
  export { FieldValidationError as F, type FieldValidationErrorProps as a };
@@ -1,14 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkFOVP54XPcjs = require('../chunk-FOVP54XP.cjs');
5
- require('../chunk-2GYFDVXX.cjs');
6
- require('../chunk-YGNY6CKU.cjs');
4
+ var _chunkEO4A7QGMcjs = require('../chunk-EO4A7QGM.cjs');
5
+ require('../chunk-J5FFM7WG.cjs');
6
+ require('../chunk-OE5BOGGX.cjs');
7
+ require('../chunk-NHEZXA4H.cjs');
8
+ require('../chunk-Z353BLWI.cjs');
7
9
  require('../chunk-FLK6OPFY.cjs');
8
10
  require('../chunk-P6HJOG7D.cjs');
9
11
  require('../chunk-555JRYCS.cjs');
10
12
 
11
13
 
12
14
 
13
- exports.Form = _chunkFOVP54XPcjs.Form_default; exports.default = _chunkFOVP54XPcjs.Form_default2;
15
+ exports.Form = _chunkEO4A7QGMcjs.Form_default; exports.default = _chunkEO4A7QGMcjs.Form_default2;
14
16
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/Form/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,iGAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/Form/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/Form/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,iGAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/Form/index.cjs"}
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  Form_default,
3
3
  Form_default2
4
- } from "../chunk-2B6CDMOZ.js";
5
- import "../chunk-IYDCKENI.js";
6
- import "../chunk-KQN55PEW.js";
4
+ } from "../chunk-74NPRJVH.js";
5
+ import "../chunk-CFH4VPJ4.js";
6
+ import "../chunk-NTDKZW4E.js";
7
+ import "../chunk-ELYGQTXB.js";
8
+ import "../chunk-76KOVUDN.js";
7
9
  import "../chunk-6IU7IYYB.js";
8
10
  import "../chunk-Q2BOMFJ5.js";
9
11
  import "../chunk-K2V4ULA2.js";
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk77C6VN4Lcjs = require('../chunk-77C6VN4L.cjs');
4
+ var _chunkEAJFV3ADcjs = require('../chunk-EAJFV3AD.cjs');
5
+ require('../chunk-J5FFM7WG.cjs');
5
6
  require('../chunk-OE5BOGGX.cjs');
6
- require('../chunk-Y3AB4GV6.cjs');
7
- require('../chunk-2GYFDVXX.cjs');
8
- require('../chunk-YGNY6CKU.cjs');
7
+ require('../chunk-NHEZXA4H.cjs');
8
+ require('../chunk-Z353BLWI.cjs');
9
9
  require('../chunk-FLK6OPFY.cjs');
10
10
  require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
14
14
 
15
- exports.Input = _chunk77C6VN4Lcjs.Input_default; exports.default = _chunk77C6VN4Lcjs.Input_default2;
15
+ exports.Input = _chunkEAJFV3ADcjs.Input_default; exports.default = _chunkEAJFV3ADcjs.Input_default2;
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { I as Input } from '../Input-BQkZtJx8.cjs';
2
- export { a as InputProps } from '../Input-BQkZtJx8.cjs';
1
+ import { I as Input } from '../Input-D7HT_8jf.cjs';
2
+ export { a as InputProps } from '../Input-D7HT_8jf.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';
@@ -1,5 +1,5 @@
1
- import { I as Input } from '../Input-C6ujfEkn.js';
2
- export { a as InputProps } from '../Input-C6ujfEkn.js';
1
+ import { I as Input } from '../Input-CCIEnvIp.js';
2
+ export { a as InputProps } from '../Input-CCIEnvIp.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';