@fuf-stack/uniform 1.18.0 → 1.18.2

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 (119) 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.d.cts +1 -1
  4. package/dist/FieldArray/index.d.ts +1 -1
  5. package/dist/FieldCard/index.d.cts +1 -1
  6. package/dist/FieldCard/index.d.ts +1 -1
  7. package/dist/Form/index.d.cts +1 -1
  8. package/dist/Form/index.d.ts +1 -1
  9. package/dist/Grid/index.d.cts +1 -1
  10. package/dist/Grid/index.d.ts +1 -1
  11. package/dist/Input/index.d.cts +1 -1
  12. package/dist/Input/index.d.ts +1 -1
  13. package/dist/RadioBoxes/index.d.cts +1 -1
  14. package/dist/RadioBoxes/index.d.ts +1 -1
  15. package/dist/RadioTabs/index.d.cts +1 -1
  16. package/dist/RadioTabs/index.d.ts +1 -1
  17. package/dist/Radios/index.d.cts +1 -1
  18. package/dist/Radios/index.d.ts +1 -1
  19. package/dist/Select/index.d.cts +1 -1
  20. package/dist/Select/index.d.ts +1 -1
  21. package/dist/Slider/index.d.cts +1 -1
  22. package/dist/Slider/index.d.ts +1 -1
  23. package/dist/SubmitButton/index.d.cts +1 -1
  24. package/dist/SubmitButton/index.d.ts +1 -1
  25. package/dist/Switch/index.d.cts +1 -1
  26. package/dist/Switch/index.d.ts +1 -1
  27. package/dist/SwitchBox/index.cjs +1 -1
  28. package/dist/SwitchBox/index.d.cts +1 -1
  29. package/dist/SwitchBox/index.d.ts +1 -1
  30. package/dist/SwitchBox/index.js +1 -1
  31. package/dist/{SwitchBox-RfkVRDrE.js → SwitchBox-C-aLl2nX.js} +3 -3
  32. package/dist/SwitchBox-C-aLl2nX.js.map +1 -0
  33. package/dist/{SwitchBox-4G_qcERZ.cjs → SwitchBox-mGUPvJE0.cjs} +2 -2
  34. package/dist/SwitchBox-mGUPvJE0.cjs.map +1 -0
  35. package/dist/TextArea/index.d.cts +1 -1
  36. package/dist/TextArea/index.d.ts +1 -1
  37. package/dist/{index-BI_rLLgx.d.ts → index--NM5Ctp6.d.ts} +3 -3
  38. package/dist/{index-BI_rLLgx.d.ts.map → index--NM5Ctp6.d.ts.map} +1 -1
  39. package/dist/{index-B0WNiTKF.d.cts → index-B3ly1uwg.d.ts} +6 -6
  40. package/dist/{index-B_OYOLtc.d.ts.map → index-B3ly1uwg.d.ts.map} +1 -1
  41. package/dist/{index-CjbJYNFd.d.cts → index-BE6hzbN3.d.cts} +3 -3
  42. package/dist/{index-CjbJYNFd.d.cts.map → index-BE6hzbN3.d.cts.map} +1 -1
  43. package/dist/{index-Bi0RH8tW.d.ts → index-BRvTllFR.d.cts} +7 -7
  44. package/dist/{index-Dp-7JoRm.d.cts.map → index-BRvTllFR.d.cts.map} +1 -1
  45. package/dist/{index-Cbz1wgYP.d.ts → index-BdrSpcmR.d.ts} +4 -4
  46. package/dist/{index-Cbz1wgYP.d.ts.map → index-BdrSpcmR.d.ts.map} +1 -1
  47. package/dist/{index-DrKDlcRp.d.cts → index-Bg3AbFZf.d.ts} +6 -6
  48. package/dist/{index-BySLJ5JG.d.ts.map → index-Bg3AbFZf.d.ts.map} +1 -1
  49. package/dist/{index-DUbBP1s0.d.cts → index-BtX5upPu.d.cts} +34 -34
  50. package/dist/{index-DUbBP1s0.d.cts.map → index-BtX5upPu.d.cts.map} +1 -1
  51. package/dist/{index-BdTKCS0O.d.ts → index-BvRjEXt-.d.ts} +48 -48
  52. package/dist/{index-BdTKCS0O.d.ts.map → index-BvRjEXt-.d.ts.map} +1 -1
  53. package/dist/{index-DWK4jUn6.d.cts → index-C6iTO4TR.d.cts} +35 -35
  54. package/dist/{index-DWK4jUn6.d.cts.map → index-C6iTO4TR.d.cts.map} +1 -1
  55. package/dist/{index-BUbrPNtL.d.ts → index-CC2Rnywy.d.cts} +3 -3
  56. package/dist/index-CC2Rnywy.d.cts.map +1 -0
  57. package/dist/{index-BPc0O2Ds.d.ts → index-CHACvIcy.d.ts} +35 -35
  58. package/dist/{index-BPc0O2Ds.d.ts.map → index-CHACvIcy.d.ts.map} +1 -1
  59. package/dist/index-CM7UugT3.d.cts +278 -0
  60. package/dist/{index-C7t64NIn.d.cts.map → index-CM7UugT3.d.cts.map} +1 -1
  61. package/dist/{index-B3DXQvAA.d.cts → index-CUIi5IqH.d.cts} +3 -3
  62. package/dist/{index-B3DXQvAA.d.cts.map → index-CUIi5IqH.d.cts.map} +1 -1
  63. package/dist/{index-Dp-7JoRm.d.cts → index-CYbsLxVV.d.ts} +22 -22
  64. package/dist/{index-Bi0RH8tW.d.ts.map → index-CYbsLxVV.d.ts.map} +1 -1
  65. package/dist/{index-MThhiwEy.d.ts → index-C_EyZKET.d.cts} +6 -6
  66. package/dist/{index-DYSdHsro.d.cts.map → index-C_EyZKET.d.cts.map} +1 -1
  67. package/dist/index-Ca2ovPTq.d.ts +278 -0
  68. package/dist/{index-ChOoZHFX.d.ts.map → index-Ca2ovPTq.d.ts.map} +1 -1
  69. package/dist/{index-Nzma24Py.d.ts → index-CuNl43Zr.d.ts} +3 -3
  70. package/dist/{index-Nzma24Py.d.ts.map → index-CuNl43Zr.d.ts.map} +1 -1
  71. package/dist/{index-B_OYOLtc.d.ts → index-CxeYvJ7m.d.cts} +6 -6
  72. package/dist/{index-B0WNiTKF.d.cts.map → index-CxeYvJ7m.d.cts.map} +1 -1
  73. package/dist/{index-CDdjrJRs.d.ts → index-D0OJCk7N.d.ts} +34 -34
  74. package/dist/{index-CDdjrJRs.d.ts.map → index-D0OJCk7N.d.ts.map} +1 -1
  75. package/dist/{index-CELx_Pr_.d.ts → index-D3L2S2b3.d.cts} +20 -20
  76. package/dist/{index-CwtoC1DE.d.cts.map → index-D3L2S2b3.d.cts.map} +1 -1
  77. package/dist/{index-DYSdHsro.d.cts → index-D6strMx0.d.ts} +6 -6
  78. package/dist/{index-MThhiwEy.d.ts.map → index-D6strMx0.d.ts.map} +1 -1
  79. package/dist/{index-BuJ4i2G8.d.cts → index-DIMnCRyt.d.ts} +2 -2
  80. package/dist/{index-ABoI1QMc.d.ts.map → index-DIMnCRyt.d.ts.map} +1 -1
  81. package/dist/{index-BySLJ5JG.d.ts → index-D_iyWuBa.d.cts} +7 -7
  82. package/dist/{index-DrKDlcRp.d.cts.map → index-D_iyWuBa.d.cts.map} +1 -1
  83. package/dist/{index-Box1ZCLh.d.ts → index-DelQykFp.d.ts} +3 -3
  84. package/dist/{index-Box1ZCLh.d.ts.map → index-DelQykFp.d.ts.map} +1 -1
  85. package/dist/{index-htE4x59X.d.ts → index-DhayQWKz.d.ts} +6 -6
  86. package/dist/{index-htE4x59X.d.ts.map → index-DhayQWKz.d.ts.map} +1 -1
  87. package/dist/{index-CwtoC1DE.d.cts → index-DiFA3eG2.d.ts} +21 -21
  88. package/dist/{index-CELx_Pr_.d.ts.map → index-DiFA3eG2.d.ts.map} +1 -1
  89. package/dist/{index-BxTjmOVI.d.ts → index-Dkfbf-VN.d.ts} +36 -36
  90. package/dist/{index-BxTjmOVI.d.ts.map → index-Dkfbf-VN.d.ts.map} +1 -1
  91. package/dist/{index-CYMw1FYm.d.cts → index-DmlsX2k6.d.ts} +3 -3
  92. package/dist/index-DmlsX2k6.d.ts.map +1 -0
  93. package/dist/{index-CAMcAf2p.d.cts → index-DqY28C4j.d.cts} +4 -4
  94. package/dist/{index-CAMcAf2p.d.cts.map → index-DqY28C4j.d.cts.map} +1 -1
  95. package/dist/{index-SrU5788P.d.cts → index-DuJr42nE.d.cts} +3 -3
  96. package/dist/{index-SrU5788P.d.cts.map → index-DuJr42nE.d.cts.map} +1 -1
  97. package/dist/{index-RJd0nXDb.d.cts → index-HfbCo9ep.d.cts} +48 -48
  98. package/dist/{index-RJd0nXDb.d.cts.map → index-HfbCo9ep.d.cts.map} +1 -1
  99. package/dist/{index-ABoI1QMc.d.ts → index-NykXDzr-.d.cts} +3 -3
  100. package/dist/{index-BuJ4i2G8.d.cts.map → index-NykXDzr-.d.cts.map} +1 -1
  101. package/dist/{index-CluXcbJV.d.cts → index-QFAAtvOV.d.cts} +6 -6
  102. package/dist/{index-CluXcbJV.d.cts.map → index-QFAAtvOV.d.cts.map} +1 -1
  103. package/dist/{index-CGjAL8dg.d.cts → index-_6c2OwSa.d.cts} +36 -36
  104. package/dist/{index-CGjAL8dg.d.cts.map → index-_6c2OwSa.d.cts.map} +1 -1
  105. package/dist/index.cjs +1 -1
  106. package/dist/index.d.cts +17 -17
  107. package/dist/index.d.ts +17 -17
  108. package/dist/index.js +1 -1
  109. package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
  110. package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
  111. package/dist/partials/FieldValidationError/index.d.cts +1 -1
  112. package/dist/partials/FieldValidationError/index.d.ts +1 -1
  113. package/package.json +3 -3
  114. package/dist/SwitchBox-4G_qcERZ.cjs.map +0 -1
  115. package/dist/SwitchBox-RfkVRDrE.js.map +0 -1
  116. package/dist/index-BUbrPNtL.d.ts.map +0 -1
  117. package/dist/index-C7t64NIn.d.cts +0 -278
  118. package/dist/index-CYMw1FYm.d.cts.map +0 -1
  119. package/dist/index-ChOoZHFX.d.ts +0 -278
package/dist/index.cjs CHANGED
@@ -21,7 +21,7 @@ const require_Select = require('./Select-DH_YaruM.cjs');
21
21
  const require_Slider = require('./Slider-C-dMrJZ6.cjs');
22
22
  const require_SubmitButton = require('./SubmitButton-CJ6s1mZr.cjs');
23
23
  const require_Switch = require('./Switch-CeUMwheZ.cjs');
24
- const require_SwitchBox = require('./SwitchBox-4G_qcERZ.cjs');
24
+ const require_SwitchBox = require('./SwitchBox-mGUPvJE0.cjs');
25
25
  const require_TextArea = require('./TextArea-BYEuk4Ng.cjs');
26
26
  const require_useClientValidation = require('./useClientValidation-Dnj_wuwf.cjs');
27
27
  const require_useWatchUserChange = require('./useWatchUserChange-C1Kluht2.cjs');
package/dist/index.d.cts CHANGED
@@ -1,19 +1,19 @@
1
1
  import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-CNCBU7a9.cjs";
2
- import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-DrKDlcRp.cjs";
3
- import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-B0WNiTKF.cjs";
4
- import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-CluXcbJV.cjs";
5
- import { n as FormProps, t as Form } from "./index-CjbJYNFd.cjs";
6
- import { n as GridProps, t as Grid } from "./index-B3DXQvAA.cjs";
7
- import { n as InputProps, t as Input } from "./index-Dp-7JoRm.cjs";
8
- import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-DWK4jUn6.cjs";
9
- import { n as RadioTabsProps, t as RadioTabs } from "./index-CAMcAf2p.cjs";
10
- import { n as RadiosProps, t as Radios } from "./index-DUbBP1s0.cjs";
11
- import { n as SelectProps, t as Select } from "./index-C7t64NIn.cjs";
12
- import { n as SliderProps, t as Slider } from "./index-RJd0nXDb.cjs";
13
- import { n as SubmitButtonProps, t as SubmitButton } from "./index-BuJ4i2G8.cjs";
14
- import { n as SwitchProps, t as Switch } from "./index-CGjAL8dg.cjs";
15
- import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DYSdHsro.cjs";
16
- import { n as TextAreaProps, t as TextArea } from "./index-CwtoC1DE.cjs";
2
+ import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-D_iyWuBa.cjs";
3
+ import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-CxeYvJ7m.cjs";
4
+ import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-QFAAtvOV.cjs";
5
+ import { n as FormProps, t as Form } from "./index-BE6hzbN3.cjs";
6
+ import { n as GridProps, t as Grid } from "./index-CUIi5IqH.cjs";
7
+ import { n as InputProps, t as Input } from "./index-BRvTllFR.cjs";
8
+ import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-C6iTO4TR.cjs";
9
+ import { n as RadioTabsProps, t as RadioTabs } from "./index-DqY28C4j.cjs";
10
+ import { n as RadiosProps, t as Radios } from "./index-BtX5upPu.cjs";
11
+ import { n as SelectProps, t as Select } from "./index-CM7UugT3.cjs";
12
+ import { n as SliderProps, t as Slider } from "./index-HfbCo9ep.cjs";
13
+ import { n as SubmitButtonProps, t as SubmitButton } from "./index-NykXDzr-.cjs";
14
+ import { n as SwitchProps, t as Switch } from "./index-_6c2OwSa.cjs";
15
+ import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-C_EyZKET.cjs";
16
+ import { n as TextAreaProps, t as TextArea } from "./index-D3L2S2b3.cjs";
17
17
  import { createOptionValueConverter, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, toFormFormat, toNullishString, toSubmitFormat, toValidationFormat } from "./helpers/index.cjs";
18
18
  import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-Dw-dmynu.cjs";
19
19
  import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-CvPWE2Sy.cjs";
@@ -23,6 +23,6 @@ import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseI
23
23
  import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-DIb__gKK.cjs";
24
24
  import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-BChcZvc5.cjs";
25
25
  import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-DedTNvGV.cjs";
26
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-CYMw1FYm.cjs";
27
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-SrU5788P.cjs";
26
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-CC2Rnywy.cjs";
27
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-DuJr42nE.cjs";
28
28
  export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toSubmitFormat, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
package/dist/index.d.ts CHANGED
@@ -1,20 +1,20 @@
1
1
  import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-tsMNM7g_.js";
2
- import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-BySLJ5JG.js";
3
- import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-B_OYOLtc.js";
4
- import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-htE4x59X.js";
2
+ import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-Bg3AbFZf.js";
3
+ import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-B3ly1uwg.js";
4
+ import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-DhayQWKz.js";
5
5
  import "./FormContext-CCe8drkp.js";
6
- import { n as FormProps, t as Form } from "./index-BI_rLLgx.js";
7
- import { n as GridProps, t as Grid } from "./index-Box1ZCLh.js";
8
- import { n as InputProps, t as Input } from "./index-Bi0RH8tW.js";
9
- import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-BPc0O2Ds.js";
10
- import { n as RadioTabsProps, t as RadioTabs } from "./index-Cbz1wgYP.js";
11
- import { n as RadiosProps, t as Radios } from "./index-CDdjrJRs.js";
12
- import { n as SelectProps, t as Select } from "./index-ChOoZHFX.js";
13
- import { n as SliderProps, t as Slider } from "./index-BdTKCS0O.js";
14
- import { n as SubmitButtonProps, t as SubmitButton } from "./index-ABoI1QMc.js";
15
- import { n as SwitchProps, t as Switch } from "./index-BxTjmOVI.js";
16
- import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-MThhiwEy.js";
17
- import { n as TextAreaProps, t as TextArea } from "./index-CELx_Pr_.js";
6
+ import { n as FormProps, t as Form } from "./index--NM5Ctp6.js";
7
+ import { n as GridProps, t as Grid } from "./index-DelQykFp.js";
8
+ import { n as InputProps, t as Input } from "./index-CYbsLxVV.js";
9
+ import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-CHACvIcy.js";
10
+ import { n as RadioTabsProps, t as RadioTabs } from "./index-BdrSpcmR.js";
11
+ import { n as RadiosProps, t as Radios } from "./index-D0OJCk7N.js";
12
+ import { n as SelectProps, t as Select } from "./index-Ca2ovPTq.js";
13
+ import { n as SliderProps, t as Slider } from "./index-BvRjEXt-.js";
14
+ import { n as SubmitButtonProps, t as SubmitButton } from "./index-DIMnCRyt.js";
15
+ import { n as SwitchProps, t as Switch } from "./index-Dkfbf-VN.js";
16
+ import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-D6strMx0.js";
17
+ import { n as TextAreaProps, t as TextArea } from "./index-DiFA3eG2.js";
18
18
  import { createOptionValueConverter, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, toFormFormat, toNullishString, toSubmitFormat, toValidationFormat } from "./helpers/index.js";
19
19
  import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-DxFgfsEI.js";
20
20
  import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-DfiNbuEz.js";
@@ -26,6 +26,6 @@ import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseI
26
26
  import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-CqqIJtqo.js";
27
27
  import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-4MOU0xac.js";
28
28
  import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-CYd_8zeN.js";
29
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-BUbrPNtL.js";
30
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-Nzma24Py.js";
29
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-DmlsX2k6.js";
30
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-CuNl43Zr.js";
31
31
  export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toSubmitFormat, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import { n as Select_default } from "./Select-DlEUzYl6.js";
21
21
  import { n as Slider_default } from "./Slider-CTFuVrp2.js";
22
22
  import { n as SubmitButton_default } from "./SubmitButton-Bh1RN0F1.js";
23
23
  import { n as Switch_default } from "./Switch-CXrz-M3V.js";
24
- import { n as SwitchBox_default, r as switchBoxVariants } from "./SwitchBox-RfkVRDrE.js";
24
+ import { n as SwitchBox_default, r as switchBoxVariants } from "./SwitchBox-C-aLl2nX.js";
25
25
  import { n as TextArea_default } from "./TextArea-BLkVYmHZ.js";
26
26
  import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-DksyV18M.js";
27
27
  import { t as useWatchUserChange } from "./useWatchUserChange-Dj9Imxfi.js";
@@ -1,2 +1,2 @@
1
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-CYMw1FYm.cjs";
1
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-CC2Rnywy.cjs";
2
2
  export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-BUbrPNtL.js";
1
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-DmlsX2k6.js";
2
2
  export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-SrU5788P.cjs";
1
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-DuJr42nE.cjs";
2
2
  export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
@@ -1,2 +1,2 @@
1
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-Nzma24Py.js";
1
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-CuNl43Zr.js";
2
2
  export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuf-stack/uniform",
3
- "version": "1.18.0",
3
+ "version": "1.18.2",
4
4
  "description": "fuf react form library",
5
5
  "author": "Fröhlich ∧ Frei",
6
6
  "homepage": "https://github.com/fuf-stack/pixels#readme",
@@ -155,7 +155,7 @@
155
155
  "@dnd-kit/utilities": "3.2.2",
156
156
  "@fuf-stack/pixel-motion": "1.1.4",
157
157
  "@fuf-stack/pixel-utils": "1.1.1",
158
- "@fuf-stack/pixels": "1.7.4",
158
+ "@fuf-stack/pixels": "1.8.0",
159
159
  "@fuf-stack/veto": "0.13.2",
160
160
  "@heroui/button": "2.2.24",
161
161
  "@heroui/checkbox": "2.3.24",
@@ -181,5 +181,5 @@
181
181
  "react": "19.2.4",
182
182
  "react-dom": "19.2.4"
183
183
  },
184
- "gitHead": "4801dde65d0a2dea77372b9f580ff38b90540f26"
184
+ "gitHead": "95704ce59c883602ef10c2da860205e271f4450d"
185
185
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwitchBox-4G_qcERZ.cjs","names":["useUniformField","VisuallyHidden","SwitchBox"],"sources":["../src/SwitchBox/SwitchBox.tsx","../src/SwitchBox/index.ts"],"sourcesContent":["import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { SwitchProps as HeroSwitchProps } from '@heroui/switch';\nimport type { ReactNode } from 'react';\n\nimport { useRef } from 'react';\n\nimport { useSwitch } from '@heroui/switch';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const switchBoxVariants = tv({\n slots: {\n box: 'group inline-flex w-full cursor-pointer items-center justify-between rounded-lg border-2 border-default hover:bg-content2 data-[selected=true]:border-focus',\n description: 'text-foreground opacity-70',\n icon: '',\n label:\n 'font-medium text-foreground group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n wrapper: '',\n thumb: '',\n thumbIcon: '',\n },\n variants: {\n isDisabled: {\n true: {\n box: 'pointer-events-none opacity-disabled',\n },\n },\n isInvalid: {\n true: {\n box: '!border-danger',\n label: '!text-danger',\n },\n },\n size: {\n sm: {\n box: 'gap-2 p-3',\n description: 'text-xs',\n label: 'text-xs',\n },\n md: {\n box: 'gap-4 p-4',\n description: 'text-small',\n label: 'text-sm',\n },\n lg: {\n box: 'gap-4 p-5',\n description: 'text-small',\n label: 'text-base',\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\ntype ClassName = TVClassName<typeof switchBoxVariants>;\n\nexport interface SwitchBoxProps {\n /** CSS class name */\n className?: ClassName;\n /** Description text displayed below the label */\n description?: ReactNode;\n /** whether the switch should be disabled */\n disabled?: boolean;\n /** Icon to be displayed in the box */\n icon?: ReactNode;\n /** component displayed as the label */\n label?: ReactNode;\n /** name the field is registered under */\n name: string;\n /** whether the field is required */\n required?: boolean;\n /* Size of the switch */\n size?: 'sm' | 'md' | 'lg';\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Icon to be displayed inside the thumb */\n thumbIcon?: HeroSwitchProps['thumbIcon'];\n}\n\n/**\n * SwitchBox component - A card-like box with a switch control\n */\nconst SwitchBox = ({\n className = undefined,\n description = undefined,\n icon = undefined,\n name,\n size = undefined,\n thumbIcon = undefined,\n ...uniformFieldProps\n}: SwitchBoxProps) => {\n const {\n defaultValue,\n disabled,\n errorMessage,\n field,\n getErrorMessageProps,\n getHelperWrapperProps,\n invalid,\n label,\n onBlur,\n onChange,\n ref,\n required,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Ref for the visual switch to forward focus\n const visualSwitchRef = useRef<HTMLInputElement>(null);\n\n // Use the useSwitch hook to get access to all the necessary props\n const {\n Component,\n slots,\n isSelected,\n getBaseProps,\n getInputProps,\n getWrapperProps,\n } = useSwitch({\n defaultSelected: !!defaultValue,\n isDisabled: disabled,\n isSelected: !!field.value,\n name: `${name}_switch`,\n onValueChange: onChange,\n size,\n thumbIcon,\n });\n\n // classNames from slots\n const variants = switchBoxVariants({\n isDisabled: disabled,\n isInvalid: invalid,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'box');\n\n return (\n <div>\n <Component\n {...getBaseProps()}\n className={classNames.box}\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n >\n <VisuallyHidden>\n <input\n ref={ref}\n aria-label={typeof label === 'string' ? label : name}\n checked={!!field.value}\n name={name}\n tabIndex={-1}\n type=\"checkbox\"\n onChange={(e) => {\n onChange(e.target.checked);\n }}\n onFocus={() => {\n // When RHF focuses this hidden input (e.g., on validation error),\n // forward focus to the visual switch to show focus ring\n visualSwitchRef.current?.focus();\n }}\n />\n {/* Visual switch input for focus ring */}\n <input\n ref={visualSwitchRef}\n {...getInputProps()}\n onBlur={(e) => {\n // Call HeroUI's internal onBlur to clear focus state and remove focus ring\n getInputProps().onBlur?.(e);\n // Then call RHF's onBlur to mark field as touched\n onBlur();\n }}\n />\n </VisuallyHidden>\n {!icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n {icon ? <div className={classNames.icon}>{icon}</div> : null}\n <div className=\"grow\">\n {label ? <div className={classNames.label}>{label}</div> : null}\n {description ? (\n <div className={classNames.description}>{description}</div>\n ) : null}\n </div>\n {icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n </Component>\n {invalid ? (\n <div\n {...getHelperWrapperProps()}\n className={cn(\n getHelperWrapperProps()?.className,\n // force helper to be visible (for some reason it's hidden by default) and remove margin\n 'ml-0 block',\n )}\n >\n <div {...getErrorMessageProps()}>{errorMessage}</div>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default SwitchBox;\n","import SwitchBox from './SwitchBox';\n\nexport type { SwitchBoxProps } from './SwitchBox';\n\nexport { switchBoxVariants } from './SwitchBox';\nexport { SwitchBox };\n\nexport default SwitchBox;\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwitchBox-RfkVRDrE.js","names":["SwitchBox"],"sources":["../src/SwitchBox/SwitchBox.tsx","../src/SwitchBox/index.ts"],"sourcesContent":["import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { SwitchProps as HeroSwitchProps } from '@heroui/switch';\nimport type { ReactNode } from 'react';\n\nimport { useRef } from 'react';\n\nimport { useSwitch } from '@heroui/switch';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const switchBoxVariants = tv({\n slots: {\n box: 'group inline-flex w-full cursor-pointer items-center justify-between rounded-lg border-2 border-default hover:bg-content2 data-[selected=true]:border-focus',\n description: 'text-foreground opacity-70',\n icon: '',\n label:\n 'font-medium text-foreground group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n wrapper: '',\n thumb: '',\n thumbIcon: '',\n },\n variants: {\n isDisabled: {\n true: {\n box: 'pointer-events-none opacity-disabled',\n },\n },\n isInvalid: {\n true: {\n box: '!border-danger',\n label: '!text-danger',\n },\n },\n size: {\n sm: {\n box: 'gap-2 p-3',\n description: 'text-xs',\n label: 'text-xs',\n },\n md: {\n box: 'gap-4 p-4',\n description: 'text-small',\n label: 'text-sm',\n },\n lg: {\n box: 'gap-4 p-5',\n description: 'text-small',\n label: 'text-base',\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\ntype ClassName = TVClassName<typeof switchBoxVariants>;\n\nexport interface SwitchBoxProps {\n /** CSS class name */\n className?: ClassName;\n /** Description text displayed below the label */\n description?: ReactNode;\n /** whether the switch should be disabled */\n disabled?: boolean;\n /** Icon to be displayed in the box */\n icon?: ReactNode;\n /** component displayed as the label */\n label?: ReactNode;\n /** name the field is registered under */\n name: string;\n /** whether the field is required */\n required?: boolean;\n /* Size of the switch */\n size?: 'sm' | 'md' | 'lg';\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Icon to be displayed inside the thumb */\n thumbIcon?: HeroSwitchProps['thumbIcon'];\n}\n\n/**\n * SwitchBox component - A card-like box with a switch control\n */\nconst SwitchBox = ({\n className = undefined,\n description = undefined,\n icon = undefined,\n name,\n size = undefined,\n thumbIcon = undefined,\n ...uniformFieldProps\n}: SwitchBoxProps) => {\n const {\n defaultValue,\n disabled,\n errorMessage,\n field,\n getErrorMessageProps,\n getHelperWrapperProps,\n invalid,\n label,\n onBlur,\n onChange,\n ref,\n required,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Ref for the visual switch to forward focus\n const visualSwitchRef = useRef<HTMLInputElement>(null);\n\n // Use the useSwitch hook to get access to all the necessary props\n const {\n Component,\n slots,\n isSelected,\n getBaseProps,\n getInputProps,\n getWrapperProps,\n } = useSwitch({\n defaultSelected: !!defaultValue,\n isDisabled: disabled,\n isSelected: !!field.value,\n name: `${name}_switch`,\n onValueChange: onChange,\n size,\n thumbIcon,\n });\n\n // classNames from slots\n const variants = switchBoxVariants({\n isDisabled: disabled,\n isInvalid: invalid,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'box');\n\n return (\n <div>\n <Component\n {...getBaseProps()}\n className={classNames.box}\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n >\n <VisuallyHidden>\n <input\n ref={ref}\n aria-label={typeof label === 'string' ? label : name}\n checked={!!field.value}\n name={name}\n tabIndex={-1}\n type=\"checkbox\"\n onChange={(e) => {\n onChange(e.target.checked);\n }}\n onFocus={() => {\n // When RHF focuses this hidden input (e.g., on validation error),\n // forward focus to the visual switch to show focus ring\n visualSwitchRef.current?.focus();\n }}\n />\n {/* Visual switch input for focus ring */}\n <input\n ref={visualSwitchRef}\n {...getInputProps()}\n onBlur={(e) => {\n // Call HeroUI's internal onBlur to clear focus state and remove focus ring\n getInputProps().onBlur?.(e);\n // Then call RHF's onBlur to mark field as touched\n onBlur();\n }}\n />\n </VisuallyHidden>\n {!icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n {icon ? <div className={classNames.icon}>{icon}</div> : null}\n <div className=\"grow\">\n {label ? <div className={classNames.label}>{label}</div> : null}\n {description ? (\n <div className={classNames.description}>{description}</div>\n ) : null}\n </div>\n {icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n </Component>\n {invalid ? (\n <div\n {...getHelperWrapperProps()}\n className={cn(\n getHelperWrapperProps()?.className,\n // force helper to be visible (for some reason it's hidden by default) and remove margin\n 'ml-0 block',\n )}\n >\n <div {...getErrorMessageProps()}>{errorMessage}</div>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default SwitchBox;\n","import SwitchBox from './SwitchBox';\n\nexport type { SwitchBoxProps } from './SwitchBox';\n\nexport { switchBoxVariants } from './SwitchBox';\nexport { SwitchBox };\n\nexport default SwitchBox;\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BUbrPNtL.d.ts","names":[],"sources":["../src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.tsx"],"mappings":";;;UAKiB,0BAAA;;EAEf,SAAA;EAFe;EAIf,MAAA;AAAA;AAAA,cAGI,qBAAA;EAAyB,SAAA;EAAA;AAAA,GAG5B,0BAAA,KAA0B,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,278 +0,0 @@
1
- import * as tailwind_variants31 from "tailwind-variants";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
- import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
4
- import { ReactNode } from "react";
5
- import { Props } from "react-select";
6
-
7
- //#region src/Select/Select.d.ts
8
- declare const selectVariants: tailwind_variants31.TVReturnType<{
9
- [key: string]: {
10
- [key: string]: tailwind_variants31.ClassValue | {
11
- base?: tailwind_variants31.ClassValue;
12
- input?: tailwind_variants31.ClassValue;
13
- placeholder?: tailwind_variants31.ClassValue;
14
- label?: tailwind_variants31.ClassValue;
15
- group?: tailwind_variants31.ClassValue;
16
- control?: tailwind_variants31.ClassValue;
17
- menu?: tailwind_variants31.ClassValue;
18
- option?: tailwind_variants31.ClassValue;
19
- clearIndicator?: tailwind_variants31.ClassValue;
20
- control_focused?: tailwind_variants31.ClassValue;
21
- crossIcon?: tailwind_variants31.ClassValue;
22
- downChevron?: tailwind_variants31.ClassValue;
23
- dropdownIndicator?: tailwind_variants31.ClassValue;
24
- groupHeading?: tailwind_variants31.ClassValue;
25
- indicatorsContainer?: tailwind_variants31.ClassValue;
26
- indicatorSeparator?: tailwind_variants31.ClassValue;
27
- loadingIndicator?: tailwind_variants31.ClassValue;
28
- loadingMessage?: tailwind_variants31.ClassValue;
29
- menuList?: tailwind_variants31.ClassValue;
30
- menuPortal?: tailwind_variants31.ClassValue;
31
- multiValue?: tailwind_variants31.ClassValue;
32
- multiValueContainer?: tailwind_variants31.ClassValue;
33
- multiValueLabel?: tailwind_variants31.ClassValue;
34
- multiValueRemove?: tailwind_variants31.ClassValue;
35
- noOptionsMessage?: tailwind_variants31.ClassValue;
36
- option_focused?: tailwind_variants31.ClassValue;
37
- option_selected?: tailwind_variants31.ClassValue;
38
- selectContainer?: tailwind_variants31.ClassValue;
39
- singleValue?: tailwind_variants31.ClassValue;
40
- valueContainer?: tailwind_variants31.ClassValue;
41
- };
42
- };
43
- } | {
44
- [x: string]: {
45
- [x: string]: tailwind_variants31.ClassValue | {
46
- base?: tailwind_variants31.ClassValue;
47
- input?: tailwind_variants31.ClassValue;
48
- placeholder?: tailwind_variants31.ClassValue;
49
- label?: tailwind_variants31.ClassValue;
50
- group?: tailwind_variants31.ClassValue;
51
- control?: tailwind_variants31.ClassValue;
52
- menu?: tailwind_variants31.ClassValue;
53
- option?: tailwind_variants31.ClassValue;
54
- clearIndicator?: tailwind_variants31.ClassValue;
55
- control_focused?: tailwind_variants31.ClassValue;
56
- crossIcon?: tailwind_variants31.ClassValue;
57
- downChevron?: tailwind_variants31.ClassValue;
58
- dropdownIndicator?: tailwind_variants31.ClassValue;
59
- groupHeading?: tailwind_variants31.ClassValue;
60
- indicatorsContainer?: tailwind_variants31.ClassValue;
61
- indicatorSeparator?: tailwind_variants31.ClassValue;
62
- loadingIndicator?: tailwind_variants31.ClassValue;
63
- loadingMessage?: tailwind_variants31.ClassValue;
64
- menuList?: tailwind_variants31.ClassValue;
65
- menuPortal?: tailwind_variants31.ClassValue;
66
- multiValue?: tailwind_variants31.ClassValue;
67
- multiValueContainer?: tailwind_variants31.ClassValue;
68
- multiValueLabel?: tailwind_variants31.ClassValue;
69
- multiValueRemove?: tailwind_variants31.ClassValue;
70
- noOptionsMessage?: tailwind_variants31.ClassValue;
71
- option_focused?: tailwind_variants31.ClassValue;
72
- option_selected?: tailwind_variants31.ClassValue;
73
- selectContainer?: tailwind_variants31.ClassValue;
74
- singleValue?: tailwind_variants31.ClassValue;
75
- valueContainer?: tailwind_variants31.ClassValue;
76
- };
77
- };
78
- } | {}, {
79
- base: string;
80
- clearIndicator: string;
81
- control: string;
82
- control_focused: string;
83
- crossIcon: string;
84
- downChevron: string;
85
- dropdownIndicator: string;
86
- group: string;
87
- groupHeading: string;
88
- indicatorsContainer: string;
89
- indicatorSeparator: string;
90
- input: string;
91
- label: string;
92
- loadingIndicator: string;
93
- loadingMessage: string;
94
- menu: string;
95
- menuList: string;
96
- menuPortal: string;
97
- multiValue: string;
98
- multiValueContainer: string;
99
- multiValueLabel: string;
100
- multiValueRemove: string;
101
- noOptionsMessage: string;
102
- option_focused: string;
103
- option_selected: string;
104
- option: string;
105
- placeholder: string;
106
- selectContainer: string;
107
- singleValue: string;
108
- valueContainer: string;
109
- }, undefined, {
110
- [key: string]: {
111
- [key: string]: tailwind_variants31.ClassValue | {
112
- base?: tailwind_variants31.ClassValue;
113
- input?: tailwind_variants31.ClassValue;
114
- placeholder?: tailwind_variants31.ClassValue;
115
- label?: tailwind_variants31.ClassValue;
116
- group?: tailwind_variants31.ClassValue;
117
- control?: tailwind_variants31.ClassValue;
118
- menu?: tailwind_variants31.ClassValue;
119
- option?: tailwind_variants31.ClassValue;
120
- clearIndicator?: tailwind_variants31.ClassValue;
121
- control_focused?: tailwind_variants31.ClassValue;
122
- crossIcon?: tailwind_variants31.ClassValue;
123
- downChevron?: tailwind_variants31.ClassValue;
124
- dropdownIndicator?: tailwind_variants31.ClassValue;
125
- groupHeading?: tailwind_variants31.ClassValue;
126
- indicatorsContainer?: tailwind_variants31.ClassValue;
127
- indicatorSeparator?: tailwind_variants31.ClassValue;
128
- loadingIndicator?: tailwind_variants31.ClassValue;
129
- loadingMessage?: tailwind_variants31.ClassValue;
130
- menuList?: tailwind_variants31.ClassValue;
131
- menuPortal?: tailwind_variants31.ClassValue;
132
- multiValue?: tailwind_variants31.ClassValue;
133
- multiValueContainer?: tailwind_variants31.ClassValue;
134
- multiValueLabel?: tailwind_variants31.ClassValue;
135
- multiValueRemove?: tailwind_variants31.ClassValue;
136
- noOptionsMessage?: tailwind_variants31.ClassValue;
137
- option_focused?: tailwind_variants31.ClassValue;
138
- option_selected?: tailwind_variants31.ClassValue;
139
- selectContainer?: tailwind_variants31.ClassValue;
140
- singleValue?: tailwind_variants31.ClassValue;
141
- valueContainer?: tailwind_variants31.ClassValue;
142
- };
143
- };
144
- } | {}, {
145
- base: string;
146
- clearIndicator: string;
147
- control: string;
148
- control_focused: string;
149
- crossIcon: string;
150
- downChevron: string;
151
- dropdownIndicator: string;
152
- group: string;
153
- groupHeading: string;
154
- indicatorsContainer: string;
155
- indicatorSeparator: string;
156
- input: string;
157
- label: string;
158
- loadingIndicator: string;
159
- loadingMessage: string;
160
- menu: string;
161
- menuList: string;
162
- menuPortal: string;
163
- multiValue: string;
164
- multiValueContainer: string;
165
- multiValueLabel: string;
166
- multiValueRemove: string;
167
- noOptionsMessage: string;
168
- option_focused: string;
169
- option_selected: string;
170
- option: string;
171
- placeholder: string;
172
- selectContainer: string;
173
- singleValue: string;
174
- valueContainer: string;
175
- }, tailwind_variants31.TVReturnType<unknown, {
176
- base: string;
177
- clearIndicator: string;
178
- control: string;
179
- control_focused: string;
180
- crossIcon: string;
181
- downChevron: string;
182
- dropdownIndicator: string;
183
- group: string;
184
- groupHeading: string;
185
- indicatorsContainer: string;
186
- indicatorSeparator: string;
187
- input: string;
188
- label: string;
189
- loadingIndicator: string;
190
- loadingMessage: string;
191
- menu: string;
192
- menuList: string;
193
- menuPortal: string;
194
- multiValue: string;
195
- multiValueContainer: string;
196
- multiValueLabel: string;
197
- multiValueRemove: string;
198
- noOptionsMessage: string;
199
- option_focused: string;
200
- option_selected: string;
201
- option: string;
202
- placeholder: string;
203
- selectContainer: string;
204
- singleValue: string;
205
- valueContainer: string;
206
- }, undefined, unknown, unknown, undefined>>;
207
- interface SelectOption {
208
- /**
209
- * True when option was auto-generated because the value wasn't found in options.
210
- * Use in renderOptionLabel to render a component that fetches the real label.
211
- */
212
- isFallback?: boolean;
213
- /** option label */
214
- label?: ReactNode;
215
- /** option value */
216
- value: string | number;
217
- }
218
- type VariantProps = TVProps<typeof selectVariants>;
219
- type ClassName = TVClassName<typeof selectVariants>;
220
- interface SelectProps extends VariantProps {
221
- /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
222
- ariaLabel?: string;
223
- /** CSS class name */
224
- className?: ClassName;
225
- /** Determine if the */
226
- clearable?: boolean;
227
- /** Set the select to disabled state. */
228
- disabled?: boolean;
229
- /** Filter Select Options */
230
- filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
231
- /** Format the label of the option */
232
- renderOptionLabel?: undefined | Props['formatOptionLabel'];
233
- /** The value of the search input */
234
- inputValue?: string;
235
- /** Label that should be associated with the select. */
236
- label?: ReactNode;
237
- /** Set the select to a loading state. */
238
- loading?: boolean;
239
- /** switch between single and multi select mode. */
240
- multiSelect?: boolean;
241
- /** The name for the Select component, used by react-hook-form */
242
- name: string;
243
- /** Placeholder that is displayed when nothing is selected */
244
- placeholder?: string;
245
- /** The options for the Select component */
246
- options: SelectOption[];
247
- /** Handle change events on the input */
248
- onInputChange?: Props['onInputChange'];
249
- /**
250
- * Fallback option(s) for async selects when value isn't in current options.
251
- * Use when the selected value may not be in the options list (e.g., after
252
- * search results change). Used only if value not found in options.
253
- * For single select: pass the option object or undefined
254
- * For multi-select: pass an array of option objects
255
- */
256
- selectedOptionFallback?: SelectOption | SelectOption[];
257
- /** HTML data-testid attribute used in e2e tests */
258
- testId?: string;
259
- }
260
- /** Select component based on [HeroUI Select](https://www.heroui.com//docs/components/select) and [React-Select](https://react-select.com/home) */
261
- declare const Select: ({
262
- className,
263
- clearable,
264
- filterOption,
265
- renderOptionLabel,
266
- inputValue,
267
- loading,
268
- multiSelect,
269
- name,
270
- onInputChange,
271
- options,
272
- placeholder,
273
- selectedOptionFallback,
274
- ...uniformFieldProps
275
- }: SelectProps) => react_jsx_runtime0.JSX.Element;
276
- //#endregion
277
- export { SelectProps as n, Select as t };
278
- //# sourceMappingURL=index-C7t64NIn.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CYMw1FYm.d.cts","names":[],"sources":["../src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.tsx"],"mappings":";;;UAKiB,0BAAA;;EAEf,SAAA;EAFe;EAIf,MAAA;AAAA;AAAA,cAGI,qBAAA;EAAyB,SAAA;EAAA;AAAA,GAG5B,0BAAA,KAA0B,kBAAA,CAAA,GAAA,CAAA,OAAA"}