@canonical/react-ds-global-form 0.29.1 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/esm/density.css +234 -0
  2. package/dist/esm/docs/examples/density-examples.css +20 -0
  3. package/dist/esm/index.css +66 -6
  4. package/dist/esm/lib/_work_in_progress/DensityTestbed/Testbed.js +77 -0
  5. package/dist/esm/lib/_work_in_progress/DensityTestbed/Testbed.js.map +1 -0
  6. package/dist/esm/lib/_work_in_progress/DensityTestbed/baseline-system.css +81 -0
  7. package/dist/esm/lib/_work_in_progress/DensityTestbed/density.testbed.css +153 -0
  8. package/dist/esm/lib/_work_in_progress/DensityTestbed/mocks.js +23 -0
  9. package/dist/esm/lib/_work_in_progress/DensityTestbed/mocks.js.map +1 -0
  10. package/dist/esm/lib/common/Wrapper/ToggleWrapper.css +35 -0
  11. package/dist/esm/lib/common/Wrapper/ToggleWrapper.js +52 -0
  12. package/dist/esm/lib/common/Wrapper/ToggleWrapper.js.map +1 -0
  13. package/dist/esm/lib/common/Wrapper/Wrapper.js +2 -2
  14. package/dist/esm/lib/common/Wrapper/Wrapper.js.map +1 -1
  15. package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js +1 -1
  16. package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js.map +1 -1
  17. package/dist/esm/lib/common/Wrapper/index.js +2 -0
  18. package/dist/esm/lib/common/Wrapper/index.js.map +1 -1
  19. package/dist/esm/lib/common/Wrapper/styles.css +3 -1
  20. package/dist/esm/lib/common/Wrapper/withToggleWrapper.js +14 -0
  21. package/dist/esm/lib/common/Wrapper/withToggleWrapper.js.map +1 -0
  22. package/dist/esm/lib/common/bindField/bindField.js +15 -8
  23. package/dist/esm/lib/common/bindField/bindField.js.map +1 -1
  24. package/dist/esm/lib/component/CheckboxField/CheckboxField.js +8 -6
  25. package/dist/esm/lib/component/CheckboxField/CheckboxField.js.map +1 -1
  26. package/dist/esm/lib/component/ChoicesField/ChoicesField.js +2 -2
  27. package/dist/esm/lib/component/ChoicesField/ChoicesField.js.map +1 -1
  28. package/dist/esm/lib/component/ChoicesField/common/Option/Option.js +2 -2
  29. package/dist/esm/lib/component/ChoicesField/common/Option/Option.js.map +1 -1
  30. package/dist/esm/lib/component/ChoicesField/styles.css +55 -15
  31. package/dist/esm/lib/component/ColorField/ColorField.js +3 -3
  32. package/dist/esm/lib/component/ColorField/ColorField.js.map +1 -1
  33. package/dist/esm/lib/component/ComboboxField/ComboboxField.js +3 -3
  34. package/dist/esm/lib/component/ComboboxField/ComboboxField.js.map +1 -1
  35. package/dist/esm/lib/component/DateField/DateField.js +22 -4
  36. package/dist/esm/lib/component/DateField/DateField.js.map +1 -1
  37. package/dist/esm/lib/component/DateTimeField/DateTimeField.js +3 -3
  38. package/dist/esm/lib/component/DateTimeField/DateTimeField.js.map +1 -1
  39. package/dist/esm/lib/component/FileUploadField/FileUploadField.js +43 -6
  40. package/dist/esm/lib/component/FileUploadField/FileUploadField.js.map +1 -1
  41. package/dist/esm/lib/component/HiddenField/HiddenField.js +3 -3
  42. package/dist/esm/lib/component/HiddenField/HiddenField.js.map +1 -1
  43. package/dist/esm/lib/component/NumberField/NumberField.js +4 -4
  44. package/dist/esm/lib/component/NumberField/NumberField.js.map +1 -1
  45. package/dist/esm/lib/component/PasswordField/PasswordField.js +3 -3
  46. package/dist/esm/lib/component/PasswordField/PasswordField.js.map +1 -1
  47. package/dist/esm/lib/component/PhoneField/PhoneField.js +3 -3
  48. package/dist/esm/lib/component/PhoneField/PhoneField.js.map +1 -1
  49. package/dist/esm/lib/component/RangeField/RangeField.js +3 -3
  50. package/dist/esm/lib/component/RangeField/RangeField.js.map +1 -1
  51. package/dist/esm/lib/component/RangeField/common/RangeControl/RangeControl.js +1 -1
  52. package/dist/esm/lib/component/RangeField/common/RangeControl/RangeControl.js.map +1 -1
  53. package/dist/esm/lib/component/RatingField/RatingField.js +12 -0
  54. package/dist/esm/lib/component/RatingField/RatingField.js.map +1 -0
  55. package/dist/esm/lib/component/RatingField/index.js +2 -0
  56. package/dist/esm/lib/component/RatingField/index.js.map +1 -0
  57. package/dist/esm/lib/component/RatingField/types.js +2 -0
  58. package/dist/esm/lib/component/RatingField/types.js.map +1 -0
  59. package/dist/esm/lib/component/RichChoicesField/RichChoicesField.js +2 -2
  60. package/dist/esm/lib/component/RichChoicesField/RichChoicesField.js.map +1 -1
  61. package/dist/esm/lib/component/RichChoicesField/common/Option/Option.js +1 -1
  62. package/dist/esm/lib/component/RichChoicesField/common/Option/Option.js.map +1 -1
  63. package/dist/esm/lib/component/RichChoicesField/styles.css +6 -0
  64. package/dist/esm/lib/component/SelectField/SelectField.js +3 -3
  65. package/dist/esm/lib/component/SelectField/SelectField.js.map +1 -1
  66. package/dist/esm/lib/component/SwitchField/SwitchField.js +13 -0
  67. package/dist/esm/lib/component/SwitchField/SwitchField.js.map +1 -0
  68. package/dist/esm/lib/component/SwitchField/index.js +2 -0
  69. package/dist/esm/lib/component/SwitchField/index.js.map +1 -0
  70. package/dist/esm/lib/component/SwitchField/types.js +2 -0
  71. package/dist/esm/lib/component/SwitchField/types.js.map +1 -0
  72. package/dist/esm/lib/component/TextField/TextField.js +3 -3
  73. package/dist/esm/lib/component/TextField/TextField.js.map +1 -1
  74. package/dist/esm/lib/component/TextareaField/TextareaField.js +3 -3
  75. package/dist/esm/lib/component/TextareaField/TextareaField.js.map +1 -1
  76. package/dist/esm/lib/component/TimeField/TimeField.js +3 -3
  77. package/dist/esm/lib/component/TimeField/TimeField.js.map +1 -1
  78. package/dist/esm/lib/component/index.js +2 -0
  79. package/dist/esm/lib/component/index.js.map +1 -1
  80. package/dist/esm/lib/index.js +2 -1
  81. package/dist/esm/lib/index.js.map +1 -1
  82. package/dist/esm/lib/pattern/Field/Field.js +23 -17
  83. package/dist/esm/lib/pattern/Field/Field.js.map +1 -1
  84. package/dist/esm/lib/subcomponent/CheckboxInput/styles.css +45 -16
  85. package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js +14 -8
  86. package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js.map +1 -1
  87. package/dist/esm/lib/subcomponent/DateInput/styles.css +12 -0
  88. package/dist/esm/lib/subcomponent/DateTimeInput/styles.css +13 -0
  89. package/dist/esm/lib/subcomponent/Field/Label/Label.js +1 -3
  90. package/dist/esm/lib/subcomponent/Field/Label/Label.js.map +1 -1
  91. package/dist/esm/lib/subcomponent/Field/Label/styles.css +2 -3
  92. package/dist/esm/lib/subcomponent/FileUploadInput/FileUploadInput.js +11 -21
  93. package/dist/esm/lib/subcomponent/FileUploadInput/FileUploadInput.js.map +1 -1
  94. package/dist/esm/lib/subcomponent/FileUploadInput/styles.css +6 -3
  95. package/dist/esm/lib/subcomponent/PasswordInput/styles.css +5 -6
  96. package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js +1 -1
  97. package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js.map +1 -1
  98. package/dist/esm/lib/subcomponent/RadioInput/styles.css +36 -7
  99. package/dist/esm/lib/subcomponent/RangeInput/styles.css +10 -9
  100. package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js +48 -0
  101. package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js.map +1 -0
  102. package/dist/esm/lib/subcomponent/RatingInput/index.js +2 -0
  103. package/dist/esm/lib/subcomponent/RatingInput/index.js.map +1 -0
  104. package/dist/esm/lib/subcomponent/RatingInput/styles.css +159 -0
  105. package/dist/esm/lib/subcomponent/RatingInput/types.js +2 -0
  106. package/dist/esm/lib/subcomponent/RatingInput/types.js.map +1 -0
  107. package/dist/esm/lib/subcomponent/SwitchInput/SwitchInput.js +26 -0
  108. package/dist/esm/lib/subcomponent/SwitchInput/SwitchInput.js.map +1 -0
  109. package/dist/esm/lib/subcomponent/SwitchInput/index.js +2 -0
  110. package/dist/esm/lib/subcomponent/SwitchInput/index.js.map +1 -0
  111. package/dist/esm/lib/subcomponent/SwitchInput/styles.css +105 -0
  112. package/dist/esm/lib/subcomponent/SwitchInput/types.js +2 -0
  113. package/dist/esm/lib/subcomponent/SwitchInput/types.js.map +1 -0
  114. package/dist/esm/lib/subcomponent/TextInput/TextInput.js +1 -1
  115. package/dist/esm/lib/subcomponent/TextInput/TextInput.js.map +1 -1
  116. package/dist/esm/lib/subcomponent/TextareaInput/TextareaInput.js +1 -3
  117. package/dist/esm/lib/subcomponent/TextareaInput/TextareaInput.js.map +1 -1
  118. package/dist/esm/lib/subcomponent/TextareaInput/styles.css +4 -9
  119. package/dist/esm/lib/subcomponent/TimeInput/styles.css +8 -0
  120. package/dist/esm/lib/subcomponent/index.js +2 -0
  121. package/dist/esm/lib/subcomponent/index.js.map +1 -1
  122. package/dist/esm/lib/utils/countries/countries.js +1 -1
  123. package/dist/esm/lib/utils/countries/countries.js.map +1 -1
  124. package/dist/esm/lib/utils/hooks/useFieldError.js +21 -24
  125. package/dist/esm/lib/utils/hooks/useFieldError.js.map +1 -1
  126. package/dist/types/lib/_work_in_progress/DensityTestbed/Testbed.d.ts +42 -0
  127. package/dist/types/lib/_work_in_progress/DensityTestbed/Testbed.d.ts.map +1 -0
  128. package/dist/types/lib/_work_in_progress/DensityTestbed/mocks.d.ts +26 -0
  129. package/dist/types/lib/_work_in_progress/DensityTestbed/mocks.d.ts.map +1 -0
  130. package/dist/types/lib/common/Wrapper/ToggleWrapper.d.ts +24 -0
  131. package/dist/types/lib/common/Wrapper/ToggleWrapper.d.ts.map +1 -0
  132. package/dist/types/lib/common/Wrapper/index.d.ts +2 -0
  133. package/dist/types/lib/common/Wrapper/index.d.ts.map +1 -1
  134. package/dist/types/lib/common/Wrapper/withToggleWrapper.d.ts +20 -0
  135. package/dist/types/lib/common/Wrapper/withToggleWrapper.d.ts.map +1 -0
  136. package/dist/types/lib/common/Wrapper/withWrapper.d.ts +1 -1
  137. package/dist/types/lib/common/Wrapper/withWrapper.d.ts.map +1 -1
  138. package/dist/types/lib/common/bindField/bindField.d.ts.map +1 -1
  139. package/dist/types/lib/common/bindField/types.d.ts +14 -5
  140. package/dist/types/lib/common/bindField/types.d.ts.map +1 -1
  141. package/dist/types/lib/common/types.d.ts +24 -2
  142. package/dist/types/lib/common/types.d.ts.map +1 -1
  143. package/dist/types/lib/component/CheckboxField/CheckboxField.d.ts +8 -332
  144. package/dist/types/lib/component/CheckboxField/CheckboxField.d.ts.map +1 -1
  145. package/dist/types/lib/component/CheckboxField/types.d.ts +7 -4
  146. package/dist/types/lib/component/CheckboxField/types.d.ts.map +1 -1
  147. package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts +1 -0
  148. package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts.map +1 -1
  149. package/dist/types/lib/component/ChoicesField/common/Option/types.d.ts +1 -1
  150. package/dist/types/lib/component/ChoicesField/common/Option/types.d.ts.map +1 -1
  151. package/dist/types/lib/component/ChoicesField/types.d.ts +2 -2
  152. package/dist/types/lib/component/ChoicesField/types.d.ts.map +1 -1
  153. package/dist/types/lib/component/ColorField/ColorField.d.ts +2 -1
  154. package/dist/types/lib/component/ColorField/ColorField.d.ts.map +1 -1
  155. package/dist/types/lib/component/ColorField/types.d.ts +2 -2
  156. package/dist/types/lib/component/ColorField/types.d.ts.map +1 -1
  157. package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts +1 -0
  158. package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts.map +1 -1
  159. package/dist/types/lib/component/ComboboxField/types.d.ts +2 -2
  160. package/dist/types/lib/component/ComboboxField/types.d.ts.map +1 -1
  161. package/dist/types/lib/component/DateField/DateField.d.ts +4 -2
  162. package/dist/types/lib/component/DateField/DateField.d.ts.map +1 -1
  163. package/dist/types/lib/component/DateField/types.d.ts +2 -2
  164. package/dist/types/lib/component/DateField/types.d.ts.map +1 -1
  165. package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts +1 -0
  166. package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts.map +1 -1
  167. package/dist/types/lib/component/DateTimeField/types.d.ts +2 -2
  168. package/dist/types/lib/component/DateTimeField/types.d.ts.map +1 -1
  169. package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts +9 -5
  170. package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts.map +1 -1
  171. package/dist/types/lib/component/FileUploadField/types.d.ts +2 -2
  172. package/dist/types/lib/component/FileUploadField/types.d.ts.map +1 -1
  173. package/dist/types/lib/component/HiddenField/HiddenField.d.ts +1 -0
  174. package/dist/types/lib/component/HiddenField/HiddenField.d.ts.map +1 -1
  175. package/dist/types/lib/component/HiddenField/types.d.ts +2 -2
  176. package/dist/types/lib/component/HiddenField/types.d.ts.map +1 -1
  177. package/dist/types/lib/component/NumberField/NumberField.d.ts +1 -0
  178. package/dist/types/lib/component/NumberField/NumberField.d.ts.map +1 -1
  179. package/dist/types/lib/component/NumberField/types.d.ts +2 -2
  180. package/dist/types/lib/component/NumberField/types.d.ts.map +1 -1
  181. package/dist/types/lib/component/PasswordField/PasswordField.d.ts +1 -0
  182. package/dist/types/lib/component/PasswordField/PasswordField.d.ts.map +1 -1
  183. package/dist/types/lib/component/PasswordField/types.d.ts +2 -2
  184. package/dist/types/lib/component/PasswordField/types.d.ts.map +1 -1
  185. package/dist/types/lib/component/PhoneField/PhoneField.d.ts +3 -2
  186. package/dist/types/lib/component/PhoneField/PhoneField.d.ts.map +1 -1
  187. package/dist/types/lib/component/PhoneField/index.d.ts +1 -1
  188. package/dist/types/lib/component/PhoneField/index.d.ts.map +1 -1
  189. package/dist/types/lib/component/PhoneField/types.d.ts +2 -2
  190. package/dist/types/lib/component/PhoneField/types.d.ts.map +1 -1
  191. package/dist/types/lib/component/RangeField/RangeField.d.ts +1 -0
  192. package/dist/types/lib/component/RangeField/RangeField.d.ts.map +1 -1
  193. package/dist/types/lib/component/RangeField/types.d.ts +1 -1
  194. package/dist/types/lib/component/RangeField/types.d.ts.map +1 -1
  195. package/dist/types/lib/component/RatingField/RatingField.d.ts +46 -0
  196. package/dist/types/lib/component/RatingField/RatingField.d.ts.map +1 -0
  197. package/dist/types/lib/component/RatingField/index.d.ts +3 -0
  198. package/dist/types/lib/component/RatingField/index.d.ts.map +1 -0
  199. package/dist/types/lib/component/RatingField/types.d.ts +9 -0
  200. package/dist/types/lib/component/RatingField/types.d.ts.map +1 -0
  201. package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts +1 -0
  202. package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts.map +1 -1
  203. package/dist/types/lib/component/RichChoicesField/types.d.ts +2 -2
  204. package/dist/types/lib/component/RichChoicesField/types.d.ts.map +1 -1
  205. package/dist/types/lib/component/SelectField/SelectField.d.ts +1 -0
  206. package/dist/types/lib/component/SelectField/SelectField.d.ts.map +1 -1
  207. package/dist/types/lib/component/SelectField/types.d.ts +2 -2
  208. package/dist/types/lib/component/SelectField/types.d.ts.map +1 -1
  209. package/dist/types/lib/component/SwitchField/SwitchField.d.ts +14 -0
  210. package/dist/types/lib/component/SwitchField/SwitchField.d.ts.map +1 -0
  211. package/dist/types/lib/component/SwitchField/index.d.ts +3 -0
  212. package/dist/types/lib/component/SwitchField/index.d.ts.map +1 -0
  213. package/dist/types/lib/component/SwitchField/types.d.ts +8 -0
  214. package/dist/types/lib/component/SwitchField/types.d.ts.map +1 -0
  215. package/dist/types/lib/component/TextField/TextField.d.ts +2 -1
  216. package/dist/types/lib/component/TextField/TextField.d.ts.map +1 -1
  217. package/dist/types/lib/component/TextField/types.d.ts +2 -2
  218. package/dist/types/lib/component/TextField/types.d.ts.map +1 -1
  219. package/dist/types/lib/component/TextareaField/TextareaField.d.ts +1 -0
  220. package/dist/types/lib/component/TextareaField/TextareaField.d.ts.map +1 -1
  221. package/dist/types/lib/component/TextareaField/types.d.ts +2 -2
  222. package/dist/types/lib/component/TextareaField/types.d.ts.map +1 -1
  223. package/dist/types/lib/component/TimeField/TimeField.d.ts +1 -0
  224. package/dist/types/lib/component/TimeField/TimeField.d.ts.map +1 -1
  225. package/dist/types/lib/component/TimeField/types.d.ts +2 -2
  226. package/dist/types/lib/component/TimeField/types.d.ts.map +1 -1
  227. package/dist/types/lib/component/index.d.ts +2 -0
  228. package/dist/types/lib/component/index.d.ts.map +1 -1
  229. package/dist/types/lib/index.d.ts +2 -0
  230. package/dist/types/lib/index.d.ts.map +1 -1
  231. package/dist/types/lib/pattern/Field/Field.d.ts.map +1 -1
  232. package/dist/types/lib/pattern/Field/types.d.ts +27 -21
  233. package/dist/types/lib/pattern/Field/types.d.ts.map +1 -1
  234. package/dist/types/lib/subcomponent/ComboboxInput/MultipleCombobox.d.ts.map +1 -1
  235. package/dist/types/lib/subcomponent/Field/Label/Label.d.ts.map +1 -1
  236. package/dist/types/lib/subcomponent/FileUploadInput/FileUploadInput.d.ts.map +1 -1
  237. package/dist/types/lib/subcomponent/PhoneInput/types.d.ts +2 -2
  238. package/dist/types/lib/subcomponent/PhoneInput/types.d.ts.map +1 -1
  239. package/dist/types/lib/subcomponent/RatingInput/RatingInput.d.ts +23 -0
  240. package/dist/types/lib/subcomponent/RatingInput/RatingInput.d.ts.map +1 -0
  241. package/dist/types/lib/subcomponent/RatingInput/index.d.ts +3 -0
  242. package/dist/types/lib/subcomponent/RatingInput/index.d.ts.map +1 -0
  243. package/dist/types/lib/subcomponent/RatingInput/types.d.ts +52 -0
  244. package/dist/types/lib/subcomponent/RatingInput/types.d.ts.map +1 -0
  245. package/dist/types/lib/subcomponent/SwitchInput/SwitchInput.d.ts +16 -0
  246. package/dist/types/lib/subcomponent/SwitchInput/SwitchInput.d.ts.map +1 -0
  247. package/dist/types/lib/subcomponent/SwitchInput/index.d.ts +3 -0
  248. package/dist/types/lib/subcomponent/SwitchInput/index.d.ts.map +1 -0
  249. package/dist/types/lib/subcomponent/SwitchInput/types.d.ts +8 -0
  250. package/dist/types/lib/subcomponent/SwitchInput/types.d.ts.map +1 -0
  251. package/dist/types/lib/subcomponent/TextareaInput/TextareaInput.d.ts.map +1 -1
  252. package/dist/types/lib/subcomponent/index.d.ts +4 -0
  253. package/dist/types/lib/subcomponent/index.d.ts.map +1 -1
  254. package/dist/types/lib/utils/hooks/useFieldError.d.ts +14 -0
  255. package/dist/types/lib/utils/hooks/useFieldError.d.ts.map +1 -1
  256. package/dist/types/lib/utils/middleware/addRESTOptions.d.ts +2 -2
  257. package/dist/types/lib/utils/middleware/addRESTOptions.d.ts.map +1 -1
  258. package/dist/types/lib/utils/middleware/addRESTValidation.d.ts +1 -1
  259. package/dist/types/lib/utils/middleware/addRESTValidation.d.ts.map +1 -1
  260. package/package.json +14 -20
@@ -0,0 +1,3 @@
1
+ export { default as SwitchField } from "./SwitchField.js";
2
+ export type { SwitchFieldProps } from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/SwitchField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ToggleFieldProps } from "../../common/types.js";
2
+ import type { SwitchInputProps } from "../../subcomponent/SwitchInput/index.js";
3
+ /**
4
+ * Props for the react-hook-form-bound Switch field (presentational + binding).
5
+ * A toggle field: requires at least one of `label`/`controlLabel`.
6
+ */
7
+ export type SwitchFieldProps = ToggleFieldProps<SwitchInputProps>;
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/SwitchField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAEhF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC"}
@@ -10,7 +10,7 @@ declare const _default: (props: {
10
10
  max?: number | string | undefined | undefined;
11
11
  required?: boolean | undefined | undefined;
12
12
  type?: import("react").HTMLInputTypeAttribute | undefined;
13
- inputType?: import("#lib/subcomponent/TextInput/index.js").TextInputType | undefined;
13
+ inputType?: import("../../subcomponent/TextInput/types.js").TextInputType | undefined;
14
14
  id?: string | undefined;
15
15
  height?: number | string | undefined | undefined;
16
16
  width?: number | string | undefined | undefined;
@@ -324,6 +324,7 @@ declare const _default: (props: {
324
324
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator | undefined;
325
325
  nestedRegisterProps?: import("react-hook-form").RegisterOptions | undefined;
326
326
  unregisterOnUnmount?: boolean | undefined;
327
+ controlLabel?: string | undefined;
327
328
  mockLabel?: boolean | undefined;
328
329
  middleware?: (import("../../index.js").Middleware<TextFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<TextFieldProps>, "Component"> & {
329
330
  condition?: import("../../index.js").Condition;
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextField/TextField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAEE"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextField/TextField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAEE"}
@@ -1,5 +1,5 @@
1
- import type { InputProps } from "#lib/common/types.js";
2
- import type { TextInputProps } from "#lib/subcomponent/TextInput/index.js";
1
+ import type { InputProps } from "../../common/types.js";
2
+ import type { TextInputProps } from "../../subcomponent/TextInput/index.js";
3
3
  /** Props for the react-hook-form-bound Text field (presentational + binding). */
4
4
  export type TextFieldProps = InputProps<TextInputProps>;
5
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E,iFAAiF;AACjF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,iFAAiF;AACjF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC"}
@@ -307,6 +307,7 @@ declare const _default: (props: {
307
307
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator | undefined;
308
308
  nestedRegisterProps?: import("react-hook-form").RegisterOptions | undefined;
309
309
  unregisterOnUnmount?: boolean | undefined;
310
+ controlLabel?: string | undefined;
310
311
  mockLabel?: boolean | undefined;
311
312
  middleware?: (import("../../index.js").Middleware<TextareaFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<TextareaFieldProps>, "Component"> & {
312
313
  condition?: import("../../index.js").Condition;
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextareaField/TextareaField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAEE"}
1
+ {"version":3,"file":"TextareaField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextareaField/TextareaField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAEE"}
@@ -1,5 +1,5 @@
1
- import type { InputProps } from "#lib/common/types.js";
2
- import type { TextareaInputProps } from "#lib/subcomponent/TextareaInput/index.js";
1
+ import type { InputProps } from "../../common/types.js";
2
+ import type { TextareaInputProps } from "../../subcomponent/TextareaInput/index.js";
3
3
  /** Props for the react-hook-form-bound Textarea field (presentational + binding). */
4
4
  export type TextareaFieldProps = InputProps<TextareaInputProps>;
5
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextareaField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,qFAAqF;AACrF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TextareaField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,qFAAqF;AACrF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC"}
@@ -323,6 +323,7 @@ declare const _default: (props: {
323
323
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator | undefined;
324
324
  nestedRegisterProps?: import("react-hook-form").RegisterOptions | undefined;
325
325
  unregisterOnUnmount?: boolean | undefined;
326
+ controlLabel?: string | undefined;
326
327
  mockLabel?: boolean | undefined;
327
328
  middleware?: (import("../../index.js").Middleware<TimeFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<TimeFieldProps>, "Component"> & {
328
329
  condition?: import("../../index.js").Condition;
@@ -1 +1 @@
1
- {"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TimeField/TimeField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAEE"}
1
+ {"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TimeField/TimeField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAEE"}
@@ -1,5 +1,5 @@
1
- import type { InputProps } from "#lib/common/types.js";
2
- import type { TimeInputProps } from "#lib/subcomponent/TimeInput/index.js";
1
+ import type { InputProps } from "../../common/types.js";
2
+ import type { TimeInputProps } from "../../subcomponent/TimeInput/index.js";
3
3
  /** Props for the react-hook-form-bound time field (presentational + binding). */
4
4
  export type TimeFieldProps = InputProps<TimeInputProps>;
5
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TimeField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E,iFAAiF;AACjF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/TimeField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,iFAAiF;AACjF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC"}
@@ -10,8 +10,10 @@ export * from "./NumberField/index.js";
10
10
  export * from "./PasswordField/index.js";
11
11
  export * from "./PhoneField/index.js";
12
12
  export * from "./RangeField/index.js";
13
+ export * from "./RatingField/index.js";
13
14
  export * from "./RichChoicesField/index.js";
14
15
  export * from "./SelectField/index.js";
16
+ export * from "./SwitchField/index.js";
15
17
  export * from "./TextareaField/index.js";
16
18
  export * from "./TextField/index.js";
17
19
  export * from "./TimeField/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/component/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/component/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export * from "./pattern/index.js";
2
+ export type { RatingInputProps, RatingScale, } from "./subcomponent/index.js";
3
+ export { RatingInput } from "./subcomponent/index.js";
2
4
  export * from "./utils/middleware/index.js";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AAMnC,YAAY,EACV,gBAAgB,EAChB,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,cAAc,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Field/Field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;GAKG;AACH,QAAA,MAAM,KAAK,GAAI,0CAIZ,UAAU,KAAG,KAAK,CAAC,YA4CrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Field/Field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;GAKG;AACH,QAAA,MAAM,KAAK,GAAI,0CAIZ,UAAU,KAAG,KAAK,CAAC,YAgDrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,24 +1,26 @@
1
- import type { InputProps } from "#lib/common/types.js";
2
- import type { CheckboxFieldProps } from "#lib/component/CheckboxField/index.js";
3
- import type { ChoicesFieldProps } from "#lib/component/ChoicesField/index.js";
4
- import type { ColorFieldProps } from "#lib/component/ColorField/index.js";
5
- import type { ComboboxFieldProps } from "#lib/component/ComboboxField/index.js";
6
- import type { DateFieldProps } from "#lib/component/DateField/index.js";
7
- import type { DateTimeFieldProps } from "#lib/component/DateTimeField/index.js";
8
- import type { FileUploadFieldProps } from "#lib/component/FileUploadField/index.js";
9
- import type { HiddenFieldProps } from "#lib/component/HiddenField/index.js";
10
- import type { NumberFieldProps } from "#lib/component/NumberField/index.js";
11
- import type { PasswordFieldProps } from "#lib/component/PasswordField/index.js";
12
- import type { PhoneFieldProps } from "#lib/component/PhoneField/index.js";
13
- import type { RangeFieldProps } from "#lib/component/RangeField/index.js";
14
- import type { RichChoicesFieldProps } from "#lib/component/RichChoicesField/index.js";
15
- import type { SelectFieldProps } from "#lib/component/SelectField/index.js";
16
- import type { TextareaFieldProps } from "#lib/component/TextareaField/index.js";
17
- import type { TextFieldProps } from "#lib/component/TextField/index.js";
18
- import type { TimeFieldProps } from "#lib/component/TimeField/index.js";
19
- import type { NativeInputType } from "#lib/subcomponent/types.js";
20
- export type { BaseInputProps, BaseWrapperProps, Condition, InputProps, Middleware, WrappedComponentProps, WrapperHOCAdditionalProps, WrapperProps, } from "#lib/common/types.js";
21
- export type { BaseProps, NativeInputType, Option, OptionsProps, } from "#lib/subcomponent/types.js";
1
+ import type { InputProps } from "../../common/types.js";
2
+ import type { CheckboxFieldProps } from "../../component/CheckboxField/index.js";
3
+ import type { ChoicesFieldProps } from "../../component/ChoicesField/index.js";
4
+ import type { ColorFieldProps } from "../../component/ColorField/index.js";
5
+ import type { ComboboxFieldProps } from "../../component/ComboboxField/index.js";
6
+ import type { DateFieldProps } from "../../component/DateField/index.js";
7
+ import type { DateTimeFieldProps } from "../../component/DateTimeField/index.js";
8
+ import type { FileUploadFieldProps } from "../../component/FileUploadField/index.js";
9
+ import type { HiddenFieldProps } from "../../component/HiddenField/index.js";
10
+ import type { NumberFieldProps } from "../../component/NumberField/index.js";
11
+ import type { PasswordFieldProps } from "../../component/PasswordField/index.js";
12
+ import type { PhoneFieldProps } from "../../component/PhoneField/index.js";
13
+ import type { RangeFieldProps } from "../../component/RangeField/index.js";
14
+ import type { RatingFieldProps } from "../../component/RatingField/index.js";
15
+ import type { RichChoicesFieldProps } from "../../component/RichChoicesField/index.js";
16
+ import type { SelectFieldProps } from "../../component/SelectField/index.js";
17
+ import type { SwitchFieldProps } from "../../component/SwitchField/index.js";
18
+ import type { TextareaFieldProps } from "../../component/TextareaField/index.js";
19
+ import type { TextFieldProps } from "../../component/TextField/index.js";
20
+ import type { TimeFieldProps } from "../../component/TimeField/index.js";
21
+ import type { NativeInputType } from "../../subcomponent/types.js";
22
+ export type { BaseInputProps, BaseWrapperProps, Condition, InputProps, Middleware, WrappedComponentProps, WrapperHOCAdditionalProps, WrapperProps, } from "../../common/types.js";
23
+ export type { BaseProps, NativeInputType, Option, OptionsProps, } from "../../subcomponent/types.js";
22
24
  export type FieldProps = ({
23
25
  inputType: Exclude<NativeInputType, "password" | "number">;
24
26
  } & TextFieldProps) | ({
@@ -28,10 +30,14 @@ export type FieldProps = ({
28
30
  } & NumberFieldProps) | ({
29
31
  inputType: "checkbox";
30
32
  } & CheckboxFieldProps) | ({
33
+ inputType: "switch";
34
+ } & SwitchFieldProps) | ({
31
35
  inputType: "hidden";
32
36
  } & HiddenFieldProps) | ({
33
37
  inputType: "range";
34
38
  } & RangeFieldProps) | ({
39
+ inputType: "rating";
40
+ } & RatingFieldProps) | ({
35
41
  inputType: "select";
36
42
  } & SelectFieldProps) | ({
37
43
  inputType: "combobox";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA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3,"file":"MultipleCombobox.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/ComboboxInput/MultipleCombobox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAMrD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;GASG;AACH,QAAA,MAAM,gBAAgB,GAAI,uKAcvB,kBAAkB,KAAG,KAAK,CAAC,YAuI7B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Label/Label.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAStB;;;;;GAKG;AACH,QAAA,MAAM,KAAK,GAAI,2GAWZ,UAAU,KAAG,KAAK,CAAC,YA2BrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Label/Label.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAStB;;;;;GAKG;AACH,QAAA,MAAM,KAAK,GAAI,2GAWZ,UAAU,KAAG,KAAK,CAAC,YAyBrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploadInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/FileUploadInput/FileUploadInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,yGAY7B,oBAAoB,KAAG,KAAK,CAAC,YAsK/B,CAAC;AASF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"FileUploadInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/FileUploadInput/FileUploadInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,yGAe7B,oBAAoB,KAAG,KAAK,CAAC,YA+I/B,CAAC;AASF,eAAe,eAAe,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { CountryData, KnownCountryCode } from "#lib/utils/countries/index.js";
1
+ import type { CountryData, KnownCountryCode } from "../../utils/countries/index.js";
2
2
  import type { BaseProps } from "../types.js";
3
- export type { CountryCode, CountryData, KnownCountryCode, } from "#lib/utils/countries/index.js";
3
+ export type { CountryCode, CountryData, KnownCountryCode, } from "../../utils/countries/index.js";
4
4
  /** Props for the presentational Phone input (controlled, no react-hook-form). */
5
5
  export type PhoneInputProps = BaseProps & {
6
6
  /** Controlled value — E.164 string or structured object. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/PhoneInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,YAAY,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AAEvC,iFAAiF;AACjF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG;IACxC,4DAA4D;IAC5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AAK,IAAI,CAAC;IAEhD,0EAA0E;IAC1E,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAElC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEvC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAExC;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC;IAE1B,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAEpC;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAE1C;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { type ReactElement } from "react";
2
+ import type { RatingInputProps } from "./types.js";
3
+ import "./styles.css";
4
+ /**
5
+ * Presentational star-rating input — pure markup, no react-hook-form. It is a
6
+ * radio group of `count` stars (5 or 10): exactly one value is selectable, so it
7
+ * inherits the native radio semantics — arrow keys move and select, Tab reaches
8
+ * the group once, and each choice is announced with its name and position.
9
+ *
10
+ * With `allowHalf`, every star carries two overlaid radio targets — the left
11
+ * half selects a half rating (n − 0.5), the right half the full star (n) — so
12
+ * the same five (or ten) stars stay on screen and clicking a star's left side
13
+ * gives a half. The fill is masked: a star is fully or half filled by clipping
14
+ * the solid-star glyph over the outline one.
15
+ *
16
+ * Usable standalone (controlled via `value`/`onChange`, or uncontrolled via
17
+ * `defaultValue`).
18
+ *
19
+ * `import { RatingInput } from "@canonical/react-ds-global-form";`
20
+ */
21
+ export declare const RatingInput: ({ id, className, style, name, count, allowHalf, value, defaultValue, onChange, disabled, formatStarLabel, ...labelling }: RatingInputProps) => ReactElement;
22
+ export default RatingInput;
23
+ //# sourceMappingURL=RatingInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RatingInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/RatingInput/RatingInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAOtB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,GAAI,0HAazB,gBAAgB,KAAG,YAoErB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default, RatingInput } from "./RatingInput.js";
2
+ export type * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/RatingInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACxD,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1,52 @@
1
+ import type React from "react";
2
+ /** The number of stars offered. Ratings are conventionally out of 5 or 10. */
3
+ export type RatingScale = 5 | 10;
4
+ /**
5
+ * Props for the presentational RatingInput (no react-hook-form). The control is
6
+ * a radio group under the hood — a single-select from `count` options — so it
7
+ * inherits native keyboard support and screen-reader announcements; the props
8
+ * mirror a controlled/uncontrolled radio group rather than a single input.
9
+ */
10
+ export interface RatingInputProps {
11
+ /** A unique identifier for the group. */
12
+ id?: string;
13
+ /** Additional CSS classes on the group wrapper. */
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ /**
17
+ * The radio group name — shared by every star so they form one group.
18
+ * (Per-star input ids are derived from the group `id`, or a generated id when
19
+ * `id` is omitted.)
20
+ */
21
+ name: string;
22
+ /** How many stars to offer. @default 5 */
23
+ count?: RatingScale;
24
+ /**
25
+ * Allow half-star ratings. Each star splits into two selectable halves, so
26
+ * the value can be 0.5, 1, 1.5 … up to `count`. @default false
27
+ */
28
+ allowHalf?: boolean;
29
+ /**
30
+ * The selected rating (controlled): 1..count, or in half steps (0.5, 1, 1.5,
31
+ * …) when `allowHalf` is set.
32
+ */
33
+ value?: number;
34
+ /** The initial rating (uncontrolled), same scale as `value`. */
35
+ defaultValue?: number;
36
+ /** Called with the newly selected rating when a star (or half) is chosen. */
37
+ onChange?: (value: number) => void;
38
+ /** Disables the whole group. */
39
+ disabled?: boolean;
40
+ /**
41
+ * Accessible name for the group (e.g. "Rate this article"). Falls back to
42
+ * "Rating" — always provide a meaningful one in context.
43
+ */
44
+ "aria-label"?: string;
45
+ "aria-labelledby"?: string;
46
+ /**
47
+ * How each star is named to assistive technology. Receives the star's value
48
+ * and the total; defaults to "{value} of {count} stars".
49
+ */
50
+ formatStarLabel?: (value: number, count: number) => string;
51
+ }
52
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/RatingInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,8EAA8E;AAC9E,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5D"}
@@ -0,0 +1,16 @@
1
+ import type { SwitchInputProps } from "./types.js";
2
+ import "./styles.css";
3
+ /**
4
+ * Presentational switch input — pure markup, no react-hook-form.
5
+ *
6
+ * A switch is a checkbox with `role="switch"`, styled as a sliding toggle.
7
+ * Usable standalone (controlled via `checked`/`onChange`, or uncontrolled) or
8
+ * via the field tier, which spreads react-hook-form's `register()` result onto
9
+ * it. Do not use directly in a form — use SwitchField instead.
10
+ * @returns {ReactElement} - Rendered Switch
11
+ *
12
+ * `import { SwitchInput } from "@canonical/react-ds-global-form";`
13
+ */
14
+ export declare const SwitchInput: import("react").ForwardRefExoticComponent<SwitchInputProps & import("react").RefAttributes<HTMLInputElement>>;
15
+ export default SwitchInput;
16
+ //# sourceMappingURL=SwitchInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/SwitchInput/SwitchInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,+GAqBvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as SwitchInput } from "./SwitchInput.js";
2
+ export type { SwitchInputProps } from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/SwitchInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type React from "react";
2
+ /**
3
+ * Props for the presentational Switch input (no react-hook-form). `type` and
4
+ * `role` are fixed by the component (`checkbox` / `switch`) and omitted here so
5
+ * a consumer cannot override the switch semantics.
6
+ */
7
+ export type SwitchInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "role">;
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/SwitchInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,GAAG,MAAM,CAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,6JAkBxB,CAAC;AAEH,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,6JAgBxB,CAAC;AAEH,eAAe,aAAa,CAAC"}
@@ -23,8 +23,12 @@ export type { RadioInputProps } from "./RadioInput/index.js";
23
23
  export { RadioInput } from "./RadioInput/index.js";
24
24
  export type { RangeInputProps } from "./RangeInput/index.js";
25
25
  export { RangeInput } from "./RangeInput/index.js";
26
+ export type { RatingInputProps, RatingScale } from "./RatingInput/index.js";
27
+ export { RatingInput } from "./RatingInput/index.js";
26
28
  export type { SelectInputProps } from "./SelectInput/index.js";
27
29
  export { SelectInput } from "./SelectInput/index.js";
30
+ export type { SwitchInputProps } from "./SwitchInput/index.js";
31
+ export { SwitchInput } from "./SwitchInput/index.js";
28
32
  export type { TextareaInputProps } from "./TextareaInput/index.js";
29
33
  export { TextareaInput } from "./TextareaInput/index.js";
30
34
  export type { TextInputProps, TextInputType } from "./TextInput/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/subcomponent/index.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAGnE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,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,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,cAAc,YAAY,CAAC"}
@@ -1,4 +1,18 @@
1
1
  import { type FieldError, type FieldValues } from "react-hook-form";
2
+ /**
3
+ * Field-scoped subscription to a single field's error.
4
+ *
5
+ * Subscribes via `useFormState({ name })` so only this field's slice of form
6
+ * state triggers a re-render, then resolves the error at `name` from the
7
+ * (possibly nested) `errors` tree on every render with RHF's own `get`.
8
+ *
9
+ * Resolving on render — rather than memoising against a fixed, hand-unrolled
10
+ * list of parent references — is what lets a *message-only* change surface: on
11
+ * cross-field revalidation a field can stay errored while its message text
12
+ * changes (e.g. a min-age constraint tightens), and `get` reflects the new
13
+ * message at any nesting depth. `useFormState`'s field-scoped subscription
14
+ * still gates the re-render, so efficiency is preserved.
15
+ */
2
16
  declare function useFieldError<TFieldValues extends FieldValues = FieldValues>(name: string): FieldError | undefined;
3
17
  export default useFieldError;
4
18
  //# sourceMappingURL=useFieldError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFieldError.d.ts","sourceRoot":"","sources":["../../../../../src/lib/utils/hooks/useFieldError.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EAGf,KAAK,WAAW,EAEjB,MAAM,iBAAiB,CAAC;AAEzB,iBAAS,aAAa,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,EACnE,IAAI,EAAE,MAAM,0BA+Bb;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"useFieldError.d.ts","sourceRoot":"","sources":["../../../../../src/lib/utils/hooks/useFieldError.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAIjB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;;GAaG;AACH,iBAAS,aAAa,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,EACnE,IAAI,EAAE,MAAM,GACX,UAAU,GAAG,SAAS,CAQxB;AAED,eAAe,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { Middleware } from "#lib/common/types.js";
2
- import type { Option } from "#lib/subcomponent/types.js";
1
+ import type { Middleware } from "../../common/types.js";
2
+ import type { Option } from "../../subcomponent/types.js";
3
3
  interface OptionsFetchOptions {
4
4
  method?: string;
5
5
  headers?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"addRESTOptions.d.ts","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTOptions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,MAAM,EAAE,CAAC;CACzC;AAED,iBAAS,mBAAmB,CAC1B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,mBAAwB,GAEhC,UAAU,CAAC,GAAG,CAAC,CA+CjB;AAED,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"addRESTOptions.d.ts","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTOptions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,MAAM,EAAE,CAAC;CACzC;AAED,iBAAS,mBAAmB,CAC1B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,mBAAwB,GAEhC,UAAU,CAAC,GAAG,CAAC,CA+CjB;AAED,eAAe,mBAAmB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Middleware } from "#lib/common/types.js";
1
+ import type { Middleware } from "../../common/types.js";
2
2
  interface ValidationOptions {
3
3
  method?: string;
4
4
  headers?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"addRESTValidation.d.ts","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTValidation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,UAAU,iBAAiB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IACpC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,sBAAsB,CAC7B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,iBAAsB,GAE9B,UAAU,CAAC,GAAG,CAAC,CA4CjB;AAED,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"addRESTValidation.d.ts","sourceRoot":"","sources":["../../../../../src/lib/utils/middleware/addRESTValidation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,UAAU,iBAAiB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IACpC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,sBAAsB,CAC7B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,iBAAsB,GAE9B,UAAU,CAAC,GAAG,CAAC,CA4CjB;AAED,eAAe,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,14 +1,7 @@
1
1
  {
2
2
  "name": "@canonical/react-ds-global-form",
3
- "version": "0.29.1",
3
+ "version": "0.31.0",
4
4
  "type": "module",
5
- "imports": {
6
- "#lib/*": {
7
- "development": "./src/lib/*",
8
- "types": "./dist/types/lib/*",
9
- "default": "./dist/esm/lib/*"
10
- }
11
- },
12
5
  "module": "dist/esm/index.js",
13
6
  "types": "dist/types/index.d.ts",
14
7
  "style": "dist/esm/index.css",
@@ -50,10 +43,10 @@
50
43
  "test:vitest:watch": "vitest"
51
44
  },
52
45
  "dependencies": {
53
- "@canonical/react-ds-global": "^0.29.1",
54
- "@canonical/storybook-config": "^0.29.1",
55
- "@canonical/styles": "^0.29.0",
56
- "@canonical/utils": "^0.29.0",
46
+ "@canonical/react-ds-global": "^0.31.0",
47
+ "@canonical/storybook-config": "^0.31.0",
48
+ "@canonical/styles": "^0.31.0",
49
+ "@canonical/utils": "^0.31.0",
57
50
  "downshift": "^9.3.2",
58
51
  "react": "^19.2.4",
59
52
  "react-dom": "^19.2.4",
@@ -61,13 +54,14 @@
61
54
  },
62
55
  "devDependencies": {
63
56
  "@biomejs/biome": "2.4.9",
64
- "@canonical/biome-config": "^0.29.0",
65
- "@canonical/design-tokens": "^0.6.0",
66
- "@canonical/storybook-addon-form-state": "^0.29.0",
67
- "@canonical/storybook-addon-msw": "^0.29.0",
68
- "@canonical/storybook-helpers": "^0.29.0",
69
- "@canonical/typescript-config-react": "^0.29.0",
70
- "@canonical/webarchitect": "^0.29.0",
57
+ "@canonical/biome-config": "^0.31.0",
58
+ "@canonical/design-tokens": "0.6.2-contrasted.0",
59
+ "@canonical/storybook-addon-form-state": "^0.31.0",
60
+ "@canonical/storybook-addon-msw": "^0.31.0",
61
+ "@canonical/storybook-helpers": "^0.31.0",
62
+ "@canonical/typescript-config-react": "^0.31.0",
63
+ "@canonical/vitest-config-react": "^0.31.0",
64
+ "@canonical/webarchitect": "^0.31.0",
71
65
  "@chromatic-com/storybook": "^5.0.1",
72
66
  "@storybook/addon-docs": "^10.3.1",
73
67
  "@storybook/react-vite": "^10.3.1",
@@ -87,5 +81,5 @@
87
81
  "vite": "^8.0.1",
88
82
  "vitest": "^4.0.18"
89
83
  },
90
- "gitHead": "7c96ac31ff350a3bd099168d249680a8f9632568"
84
+ "gitHead": "d4a67ebe42e62b8cf3de77f42f537309ca88d672"
91
85
  }