@canonical/react-ds-global-form 0.47.0 → 0.48.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 (435) hide show
  1. package/README.md +5 -6
  2. package/dist/esm/density.css +23 -28
  3. package/dist/esm/index.css +28 -13
  4. package/dist/esm/lib/{component → _work_in_progress/component}/ColorField/ColorField.js +2 -2
  5. package/dist/esm/lib/_work_in_progress/component/ColorField/ColorField.js.map +1 -0
  6. package/dist/esm/lib/_work_in_progress/component/ColorField/index.js.map +1 -0
  7. package/dist/esm/lib/_work_in_progress/component/ColorField/types.js.map +1 -0
  8. package/dist/esm/lib/{component → _work_in_progress/component}/ComboboxField/ComboboxField.js +2 -2
  9. package/dist/esm/lib/_work_in_progress/component/ComboboxField/ComboboxField.js.map +1 -0
  10. package/dist/esm/lib/_work_in_progress/component/ComboboxField/index.js.map +1 -0
  11. package/dist/esm/lib/_work_in_progress/component/ComboboxField/types.js.map +1 -0
  12. package/dist/esm/lib/{component → _work_in_progress/component}/RatingField/RatingField.js +2 -2
  13. package/dist/esm/lib/_work_in_progress/component/RatingField/RatingField.js.map +1 -0
  14. package/dist/esm/lib/_work_in_progress/component/RatingField/index.js.map +1 -0
  15. package/dist/esm/lib/_work_in_progress/component/RatingField/types.js.map +1 -0
  16. package/dist/esm/lib/_work_in_progress/subcomponent/ColorInput/ColorInput.js.map +1 -0
  17. package/dist/esm/lib/_work_in_progress/subcomponent/ColorInput/index.js.map +1 -0
  18. package/dist/esm/lib/_work_in_progress/subcomponent/ColorInput/types.js.map +1 -0
  19. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/ComboboxInput.js.map +1 -0
  20. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.js +198 -0
  21. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.js.map +1 -0
  22. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/SingleCombobox.js +120 -0
  23. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/SingleCombobox.js.map +1 -0
  24. package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/List.js +16 -4
  25. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/List.js.map +1 -0
  26. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/index.js.map +1 -0
  27. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/types.js.map +1 -0
  28. package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/ResetButton.js +2 -2
  29. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/ResetButton.js.map +1 -0
  30. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/index.js.map +1 -0
  31. package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/styles.css +3 -0
  32. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/types.js.map +1 -0
  33. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/index.js.map +1 -0
  34. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/constants.js.map +1 -0
  35. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/index.js.map +1 -0
  36. package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/messages.js +1 -0
  37. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/messages.js.map +1 -0
  38. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/types.js.map +1 -0
  39. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertItemToString.js.map +1 -0
  40. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertValueToItem.js.map +1 -0
  41. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/filterItems.js.map +1 -0
  42. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.js +7 -0
  43. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.js.map +1 -0
  44. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.js +6 -0
  45. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.js.map +1 -0
  46. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.js +10 -0
  47. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.js.map +1 -0
  48. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.js +25 -0
  49. package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.js.map +1 -0
  50. package/dist/esm/lib/_work_in_progress/subcomponent/RatingInput/RatingInput.js.map +1 -0
  51. package/dist/esm/lib/_work_in_progress/subcomponent/RatingInput/index.js.map +1 -0
  52. package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/styles.css +7 -7
  53. package/dist/esm/lib/_work_in_progress/subcomponent/RatingInput/types.js.map +1 -0
  54. package/dist/esm/lib/common/Wrapper/InvisibleWrapper.js +3 -1
  55. package/dist/esm/lib/common/Wrapper/InvisibleWrapper.js.map +1 -1
  56. package/dist/esm/lib/common/Wrapper/ToggleWrapper.css +0 -6
  57. package/dist/esm/lib/common/Wrapper/ToggleWrapper.js +2 -1
  58. package/dist/esm/lib/common/Wrapper/ToggleWrapper.js.map +1 -1
  59. package/dist/esm/lib/common/Wrapper/Wrapper.js +10 -6
  60. package/dist/esm/lib/common/Wrapper/Wrapper.js.map +1 -1
  61. package/dist/esm/lib/common/Wrapper/createMiddleware.js +70 -0
  62. package/dist/esm/lib/common/Wrapper/createMiddleware.js.map +1 -0
  63. package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js +2 -2
  64. package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js.map +1 -1
  65. package/dist/esm/lib/common/Wrapper/withConditionalDisplay.js +17 -12
  66. package/dist/esm/lib/common/Wrapper/withConditionalDisplay.js.map +1 -1
  67. package/dist/esm/lib/common/Wrapper/withWrapper.js +16 -10
  68. package/dist/esm/lib/common/Wrapper/withWrapper.js.map +1 -1
  69. package/dist/esm/lib/component/ChoicesField/Choices.js +2 -2
  70. package/dist/esm/lib/component/ChoicesField/Choices.js.map +1 -1
  71. package/dist/esm/lib/component/ChoicesField/ChoicesField.js +3 -2
  72. package/dist/esm/lib/component/ChoicesField/ChoicesField.js.map +1 -1
  73. package/dist/esm/lib/component/ChoicesField/styles.css +3 -65
  74. package/dist/esm/lib/component/DateTimeField/DateTimeField.js +2 -1
  75. package/dist/esm/lib/component/DateTimeField/DateTimeField.js.map +1 -1
  76. package/dist/esm/lib/component/FileUploadField/FileUploadField.js +45 -41
  77. package/dist/esm/lib/component/FileUploadField/FileUploadField.js.map +1 -1
  78. package/dist/esm/lib/component/FileUploadField/fileUploadRules.js +39 -0
  79. package/dist/esm/lib/component/FileUploadField/fileUploadRules.js.map +1 -0
  80. package/dist/esm/lib/component/FileUploadField/styles.css +30 -0
  81. package/dist/esm/lib/component/RichChoicesField/RichChoices.js +2 -2
  82. package/dist/esm/lib/component/RichChoicesField/RichChoices.js.map +1 -1
  83. package/dist/esm/lib/component/RichChoicesField/RichChoicesField.js +2 -2
  84. package/dist/esm/lib/component/index.js +5 -4
  85. package/dist/esm/lib/component/index.js.map +1 -1
  86. package/dist/esm/lib/index.js.map +1 -1
  87. package/dist/esm/lib/pattern/Field/Field.js +3 -3
  88. package/dist/esm/lib/pattern/Field/Field.js.map +1 -1
  89. package/dist/esm/lib/subcomponent/DateInput/styles.css +16 -0
  90. package/dist/esm/lib/subcomponent/DateTimeInput/styles.css +24 -7
  91. package/dist/esm/lib/subcomponent/Field/Description/Description.js +1 -3
  92. package/dist/esm/lib/subcomponent/Field/Description/Description.js.map +1 -1
  93. package/dist/esm/lib/subcomponent/Field/Description/styles.css +4 -0
  94. package/dist/esm/lib/subcomponent/Field/Error/Error.js +4 -4
  95. package/dist/esm/lib/subcomponent/Field/Error/Error.js.map +1 -1
  96. package/dist/esm/lib/subcomponent/Field/Error/styles.css +8 -0
  97. package/dist/esm/lib/subcomponent/Field/Label/styles.css +1 -0
  98. package/dist/esm/lib/subcomponent/FileUploadInput/FileUploadInput.js +119 -64
  99. package/dist/esm/lib/subcomponent/FileUploadInput/FileUploadInput.js.map +1 -1
  100. package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.js +52 -0
  101. package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.js.map +1 -0
  102. package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/index.js +2 -0
  103. package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/index.js.map +1 -0
  104. package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/types.js +2 -0
  105. package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/types.js.map +1 -0
  106. package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.js +40 -0
  107. package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.js.map +1 -0
  108. package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/index.js +2 -0
  109. package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/index.js.map +1 -0
  110. package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/types.js +2 -0
  111. package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/types.js.map +1 -0
  112. package/dist/esm/lib/subcomponent/FileUploadInput/constants.js +3 -0
  113. package/dist/esm/lib/subcomponent/FileUploadInput/constants.js.map +1 -0
  114. package/dist/esm/lib/subcomponent/FileUploadInput/hooks/index.js +3 -0
  115. package/dist/esm/lib/subcomponent/FileUploadInput/hooks/index.js.map +1 -0
  116. package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useFileUploads.js +148 -0
  117. package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useFileUploads.js.map +1 -0
  118. package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.js +22 -0
  119. package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.js.map +1 -0
  120. package/dist/esm/lib/subcomponent/FileUploadInput/messages.js +25 -0
  121. package/dist/esm/lib/subcomponent/FileUploadInput/messages.js.map +1 -0
  122. package/dist/esm/lib/subcomponent/FileUploadInput/styles.css +255 -94
  123. package/dist/esm/lib/subcomponent/FileUploadInput/utils/formatFileSize.js +21 -0
  124. package/dist/esm/lib/subcomponent/FileUploadInput/utils/formatFileSize.js.map +1 -0
  125. package/dist/esm/lib/subcomponent/FileUploadInput/utils/getFileMessage.js +20 -0
  126. package/dist/esm/lib/subcomponent/FileUploadInput/utils/getFileMessage.js.map +1 -0
  127. package/dist/esm/lib/subcomponent/FileUploadInput/utils/index.js +4 -0
  128. package/dist/esm/lib/subcomponent/FileUploadInput/utils/index.js.map +1 -0
  129. package/dist/esm/lib/subcomponent/FileUploadInput/utils/matchesAccept.js +26 -0
  130. package/dist/esm/lib/subcomponent/FileUploadInput/utils/matchesAccept.js.map +1 -0
  131. package/dist/esm/lib/subcomponent/NumberInput/NumberInput.js +1 -1
  132. package/dist/esm/lib/subcomponent/NumberInput/NumberInput.js.map +1 -1
  133. package/dist/esm/lib/subcomponent/NumberInput/styles.css +17 -0
  134. package/dist/esm/lib/subcomponent/PasswordInput/styles.css +7 -1
  135. package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js +8 -2
  136. package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js.map +1 -1
  137. package/dist/esm/lib/subcomponent/RadioInput/styles.css +15 -13
  138. package/dist/esm/lib/subcomponent/TextInput/TextInput.js +3 -1
  139. package/dist/esm/lib/subcomponent/TextInput/TextInput.js.map +1 -1
  140. package/dist/esm/lib/subcomponent/index.js +5 -5
  141. package/dist/esm/lib/subcomponent/index.js.map +1 -1
  142. package/dist/esm/lib/utils/hooks/useFieldAriaProperties.js +6 -4
  143. package/dist/esm/lib/utils/hooks/useFieldAriaProperties.js.map +1 -1
  144. package/dist/esm/lib/utils/hooks/useOptionAriaProperties.js +3 -3
  145. package/dist/esm/lib/utils/hooks/useOptionAriaProperties.js.map +1 -1
  146. package/dist/esm/lib/utils/middleware/addRESTOptions.js +99 -39
  147. package/dist/esm/lib/utils/middleware/addRESTOptions.js.map +1 -1
  148. package/dist/esm/lib/utils/middleware/addRESTValidation.js +246 -32
  149. package/dist/esm/lib/utils/middleware/addRESTValidation.js.map +1 -1
  150. package/dist/esm/lib/utils/middleware/index.js +1 -0
  151. package/dist/esm/lib/utils/middleware/index.js.map +1 -1
  152. package/dist/esm/testing/expectNoAxeViolations.js +30 -0
  153. package/dist/esm/testing/expectNoAxeViolations.js.map +1 -0
  154. package/dist/types/lib/{component → _work_in_progress/component}/ColorField/ColorField.d.ts +7 -12
  155. package/dist/types/lib/_work_in_progress/component/ColorField/ColorField.d.ts.map +1 -0
  156. package/dist/types/lib/_work_in_progress/component/ColorField/index.d.ts.map +1 -0
  157. package/dist/types/lib/{component → _work_in_progress/component}/ColorField/types.d.ts +1 -1
  158. package/dist/types/lib/_work_in_progress/component/ColorField/types.d.ts.map +1 -0
  159. package/dist/types/lib/_work_in_progress/component/ComboboxField/ComboboxField.d.ts +53 -0
  160. package/dist/types/lib/_work_in_progress/component/ComboboxField/ComboboxField.d.ts.map +1 -0
  161. package/dist/types/lib/_work_in_progress/component/ComboboxField/index.d.ts.map +1 -0
  162. package/dist/types/lib/{component → _work_in_progress/component}/ComboboxField/types.d.ts +1 -1
  163. package/dist/types/lib/_work_in_progress/component/ComboboxField/types.d.ts.map +1 -0
  164. package/dist/types/lib/{component → _work_in_progress/component}/RatingField/RatingField.d.ts +7 -12
  165. package/dist/types/lib/_work_in_progress/component/RatingField/RatingField.d.ts.map +1 -0
  166. package/dist/types/lib/_work_in_progress/component/RatingField/index.d.ts.map +1 -0
  167. package/dist/types/lib/{component → _work_in_progress/component}/RatingField/types.d.ts +1 -1
  168. package/dist/types/lib/_work_in_progress/component/RatingField/types.d.ts.map +1 -0
  169. package/dist/types/lib/_work_in_progress/subcomponent/ColorInput/ColorInput.d.ts.map +1 -0
  170. package/dist/types/lib/_work_in_progress/subcomponent/ColorInput/index.d.ts.map +1 -0
  171. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/types.d.ts +1 -1
  172. package/dist/types/lib/_work_in_progress/subcomponent/ColorInput/types.d.ts.map +1 -0
  173. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/ComboboxInput.d.ts +13 -5
  174. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/ComboboxInput.d.ts.map +1 -0
  175. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.d.ts +24 -0
  176. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.d.ts.map +1 -0
  177. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/SingleCombobox.d.ts +19 -4
  178. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/SingleCombobox.d.ts.map +1 -0
  179. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/List.d.ts +1 -1
  180. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/List.d.ts.map +1 -0
  181. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/index.d.ts.map +1 -0
  182. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/types.d.ts +2 -1
  183. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/types.d.ts.map +1 -0
  184. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/ResetButton.d.ts +1 -1
  185. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/ResetButton.d.ts.map +1 -0
  186. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/index.d.ts.map +1 -0
  187. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/types.d.ts +1 -0
  188. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/types.d.ts.map +1 -0
  189. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/index.d.ts.map +1 -0
  190. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/constants.d.ts.map +1 -0
  191. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/index.d.ts.map +1 -0
  192. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/messages.d.ts +1 -0
  193. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/messages.d.ts.map +1 -0
  194. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/types.d.ts +52 -0
  195. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/types.d.ts.map +1 -0
  196. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertItemToString.d.ts +4 -0
  197. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertItemToString.d.ts.map +1 -0
  198. package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/convertValueToItem.d.ts +1 -1
  199. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertValueToItem.d.ts.map +1 -0
  200. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/filterItems.d.ts +4 -0
  201. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/filterItems.d.ts.map +1 -0
  202. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.d.ts +7 -0
  203. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.d.ts.map +1 -0
  204. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.d.ts +4 -0
  205. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.d.ts.map +1 -0
  206. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.d.ts +8 -0
  207. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.d.ts.map +1 -0
  208. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.d.ts +13 -0
  209. package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.d.ts.map +1 -0
  210. package/dist/types/lib/_work_in_progress/subcomponent/RatingInput/RatingInput.d.ts.map +1 -0
  211. package/dist/types/lib/_work_in_progress/subcomponent/RatingInput/index.d.ts.map +1 -0
  212. package/dist/types/lib/_work_in_progress/subcomponent/RatingInput/types.d.ts.map +1 -0
  213. package/dist/types/lib/common/Wrapper/InvisibleWrapper.d.ts.map +1 -1
  214. package/dist/types/lib/common/Wrapper/ToggleWrapper.d.ts.map +1 -1
  215. package/dist/types/lib/common/Wrapper/Wrapper.d.ts +1 -1
  216. package/dist/types/lib/common/Wrapper/Wrapper.d.ts.map +1 -1
  217. package/dist/types/lib/common/Wrapper/createMiddleware.d.ts +43 -0
  218. package/dist/types/lib/common/Wrapper/createMiddleware.d.ts.map +1 -0
  219. package/dist/types/lib/common/Wrapper/hooks/useFieldWrapper.d.ts +2 -0
  220. package/dist/types/lib/common/Wrapper/hooks/useFieldWrapper.d.ts.map +1 -1
  221. package/dist/types/lib/common/Wrapper/withConditionalDisplay.d.ts +9 -3
  222. package/dist/types/lib/common/Wrapper/withConditionalDisplay.d.ts.map +1 -1
  223. package/dist/types/lib/common/Wrapper/withWrapper.d.ts +3 -5
  224. package/dist/types/lib/common/Wrapper/withWrapper.d.ts.map +1 -1
  225. package/dist/types/lib/common/types.d.ts +19 -7
  226. package/dist/types/lib/common/types.d.ts.map +1 -1
  227. package/dist/types/lib/component/ChoicesField/Choices.d.ts +1 -1
  228. package/dist/types/lib/component/ChoicesField/Choices.d.ts.map +1 -1
  229. package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts +9 -13
  230. package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts.map +1 -1
  231. package/dist/types/lib/component/ChoicesField/types.d.ts +2 -2
  232. package/dist/types/lib/component/ChoicesField/types.d.ts.map +1 -1
  233. package/dist/types/lib/component/DateField/DateField.d.ts +6 -11
  234. package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts +7 -11
  235. package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts.map +1 -1
  236. package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts +299 -19
  237. package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts.map +1 -1
  238. package/dist/types/lib/component/FileUploadField/fileUploadRules.d.ts +24 -0
  239. package/dist/types/lib/component/FileUploadField/fileUploadRules.d.ts.map +1 -0
  240. package/dist/types/lib/component/HiddenField/HiddenField.d.ts +6 -11
  241. package/dist/types/lib/component/NumberField/NumberField.d.ts +6 -11
  242. package/dist/types/lib/component/PasswordField/PasswordField.d.ts +6 -11
  243. package/dist/types/lib/component/PhoneField/PhoneField.d.ts +7 -11
  244. package/dist/types/lib/component/RangeField/RangeField.d.ts +6 -11
  245. package/dist/types/lib/component/RichChoicesField/RichChoices.d.ts +1 -1
  246. package/dist/types/lib/component/RichChoicesField/RichChoices.d.ts.map +1 -1
  247. package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts +8 -13
  248. package/dist/types/lib/component/RichChoicesField/types.d.ts +2 -2
  249. package/dist/types/lib/component/RichChoicesField/types.d.ts.map +1 -1
  250. package/dist/types/lib/component/SelectField/SelectField.d.ts +6 -11
  251. package/dist/types/lib/component/TextField/TextField.d.ts +6 -11
  252. package/dist/types/lib/component/TextareaField/TextareaField.d.ts +6 -11
  253. package/dist/types/lib/component/TimeField/TimeField.d.ts +6 -11
  254. package/dist/types/lib/component/index.d.ts +3 -3
  255. package/dist/types/lib/component/index.d.ts.map +1 -1
  256. package/dist/types/lib/index.d.ts +1 -1
  257. package/dist/types/lib/index.d.ts.map +1 -1
  258. package/dist/types/lib/pattern/Field/types.d.ts +4 -4
  259. package/dist/types/lib/pattern/Field/types.d.ts.map +1 -1
  260. package/dist/types/lib/subcomponent/Field/Description/Description.d.ts.map +1 -1
  261. package/dist/types/lib/subcomponent/Field/Error/Error.d.ts.map +1 -1
  262. package/dist/types/lib/subcomponent/FileUploadInput/FileUploadInput.d.ts +25 -4
  263. package/dist/types/lib/subcomponent/FileUploadInput/FileUploadInput.d.ts.map +1 -1
  264. package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.d.ts +15 -0
  265. package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.d.ts.map +1 -0
  266. package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/index.d.ts +3 -0
  267. package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/index.d.ts.map +1 -0
  268. package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/types.d.ts +28 -0
  269. package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/types.d.ts.map +1 -0
  270. package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.d.ts +14 -0
  271. package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.d.ts.map +1 -0
  272. package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/index.d.ts +3 -0
  273. package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/index.d.ts.map +1 -0
  274. package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/types.d.ts +9 -0
  275. package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/types.d.ts.map +1 -0
  276. package/dist/types/lib/subcomponent/FileUploadInput/constants.d.ts +3 -0
  277. package/dist/types/lib/subcomponent/FileUploadInput/constants.d.ts.map +1 -0
  278. package/dist/types/lib/subcomponent/FileUploadInput/hooks/index.d.ts +3 -0
  279. package/dist/types/lib/subcomponent/FileUploadInput/hooks/index.d.ts.map +1 -0
  280. package/dist/types/lib/subcomponent/FileUploadInput/hooks/useFileUploads.d.ts +33 -0
  281. package/dist/types/lib/subcomponent/FileUploadInput/hooks/useFileUploads.d.ts.map +1 -0
  282. package/dist/types/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.d.ts +8 -0
  283. package/dist/types/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.d.ts.map +1 -0
  284. package/dist/types/lib/subcomponent/FileUploadInput/index.d.ts +1 -1
  285. package/dist/types/lib/subcomponent/FileUploadInput/index.d.ts.map +1 -1
  286. package/dist/types/lib/subcomponent/FileUploadInput/messages.d.ts +4 -0
  287. package/dist/types/lib/subcomponent/FileUploadInput/messages.d.ts.map +1 -0
  288. package/dist/types/lib/subcomponent/FileUploadInput/types.d.ts +165 -8
  289. package/dist/types/lib/subcomponent/FileUploadInput/types.d.ts.map +1 -1
  290. package/dist/types/lib/subcomponent/FileUploadInput/utils/formatFileSize.d.ts +7 -0
  291. package/dist/types/lib/subcomponent/FileUploadInput/utils/formatFileSize.d.ts.map +1 -0
  292. package/dist/types/lib/subcomponent/FileUploadInput/utils/getFileMessage.d.ts +14 -0
  293. package/dist/types/lib/subcomponent/FileUploadInput/utils/getFileMessage.d.ts.map +1 -0
  294. package/dist/types/lib/subcomponent/FileUploadInput/utils/index.d.ts +5 -0
  295. package/dist/types/lib/subcomponent/FileUploadInput/utils/index.d.ts.map +1 -0
  296. package/dist/types/lib/subcomponent/FileUploadInput/utils/matchesAccept.d.ts +10 -0
  297. package/dist/types/lib/subcomponent/FileUploadInput/utils/matchesAccept.d.ts.map +1 -0
  298. package/dist/types/lib/subcomponent/PhoneInput/PhoneInput.d.ts +12 -0
  299. package/dist/types/lib/subcomponent/PhoneInput/PhoneInput.d.ts.map +1 -1
  300. package/dist/types/lib/subcomponent/PhoneInput/types.d.ts +11 -2
  301. package/dist/types/lib/subcomponent/PhoneInput/types.d.ts.map +1 -1
  302. package/dist/types/lib/subcomponent/TextInput/TextInput.d.ts +2 -0
  303. package/dist/types/lib/subcomponent/TextInput/TextInput.d.ts.map +1 -1
  304. package/dist/types/lib/subcomponent/index.d.ts +7 -7
  305. package/dist/types/lib/subcomponent/index.d.ts.map +1 -1
  306. package/dist/types/lib/subcomponent/types.d.ts +6 -0
  307. package/dist/types/lib/subcomponent/types.d.ts.map +1 -1
  308. package/dist/types/lib/utils/hooks/useFieldAriaProperties.d.ts +2 -1
  309. package/dist/types/lib/utils/hooks/useFieldAriaProperties.d.ts.map +1 -1
  310. package/dist/types/lib/utils/hooks/useOptionAriaProperties.d.ts +3 -2
  311. package/dist/types/lib/utils/hooks/useOptionAriaProperties.d.ts.map +1 -1
  312. package/dist/types/lib/utils/middleware/addRESTOptions.d.ts +37 -4
  313. package/dist/types/lib/utils/middleware/addRESTOptions.d.ts.map +1 -1
  314. package/dist/types/lib/utils/middleware/addRESTValidation.d.ts +38 -3
  315. package/dist/types/lib/utils/middleware/addRESTValidation.d.ts.map +1 -1
  316. package/dist/types/lib/utils/middleware/index.d.ts +2 -0
  317. package/dist/types/lib/utils/middleware/index.d.ts.map +1 -1
  318. package/dist/types/testing/expectNoAxeViolations.d.ts +10 -0
  319. package/dist/types/testing/expectNoAxeViolations.d.ts.map +1 -0
  320. package/package.json +18 -17
  321. package/dist/esm/lib/component/ColorField/ColorField.js.map +0 -1
  322. package/dist/esm/lib/component/ColorField/index.js.map +0 -1
  323. package/dist/esm/lib/component/ColorField/types.js.map +0 -1
  324. package/dist/esm/lib/component/ComboboxField/ComboboxField.js.map +0 -1
  325. package/dist/esm/lib/component/ComboboxField/index.js.map +0 -1
  326. package/dist/esm/lib/component/ComboboxField/types.js.map +0 -1
  327. package/dist/esm/lib/component/RatingField/RatingField.js.map +0 -1
  328. package/dist/esm/lib/component/RatingField/index.js.map +0 -1
  329. package/dist/esm/lib/component/RatingField/types.js.map +0 -1
  330. package/dist/esm/lib/subcomponent/ColorInput/ColorInput.js.map +0 -1
  331. package/dist/esm/lib/subcomponent/ColorInput/index.js.map +0 -1
  332. package/dist/esm/lib/subcomponent/ColorInput/types.js.map +0 -1
  333. package/dist/esm/lib/subcomponent/ComboboxInput/ComboboxInput.js.map +0 -1
  334. package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js +0 -84
  335. package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js.map +0 -1
  336. package/dist/esm/lib/subcomponent/ComboboxInput/SingleCombobox.js +0 -67
  337. package/dist/esm/lib/subcomponent/ComboboxInput/SingleCombobox.js.map +0 -1
  338. package/dist/esm/lib/subcomponent/ComboboxInput/common/List/List.js.map +0 -1
  339. package/dist/esm/lib/subcomponent/ComboboxInput/common/List/index.js.map +0 -1
  340. package/dist/esm/lib/subcomponent/ComboboxInput/common/List/types.js.map +0 -1
  341. package/dist/esm/lib/subcomponent/ComboboxInput/common/ResetButton/ResetButton.js.map +0 -1
  342. package/dist/esm/lib/subcomponent/ComboboxInput/common/ResetButton/index.js.map +0 -1
  343. package/dist/esm/lib/subcomponent/ComboboxInput/common/ResetButton/types.js.map +0 -1
  344. package/dist/esm/lib/subcomponent/ComboboxInput/common/index.js.map +0 -1
  345. package/dist/esm/lib/subcomponent/ComboboxInput/constants.js.map +0 -1
  346. package/dist/esm/lib/subcomponent/ComboboxInput/index.js.map +0 -1
  347. package/dist/esm/lib/subcomponent/ComboboxInput/messages.js.map +0 -1
  348. package/dist/esm/lib/subcomponent/ComboboxInput/types.js.map +0 -1
  349. package/dist/esm/lib/subcomponent/ComboboxInput/utils/convertItemToString.js.map +0 -1
  350. package/dist/esm/lib/subcomponent/ComboboxInput/utils/convertValueToItem.js.map +0 -1
  351. package/dist/esm/lib/subcomponent/ComboboxInput/utils/filterItems.js.map +0 -1
  352. package/dist/esm/lib/subcomponent/ComboboxInput/utils/index.js +0 -4
  353. package/dist/esm/lib/subcomponent/ComboboxInput/utils/index.js.map +0 -1
  354. package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js.map +0 -1
  355. package/dist/esm/lib/subcomponent/RatingInput/index.js.map +0 -1
  356. package/dist/esm/lib/subcomponent/RatingInput/types.js.map +0 -1
  357. package/dist/types/lib/component/ColorField/ColorField.d.ts.map +0 -1
  358. package/dist/types/lib/component/ColorField/index.d.ts.map +0 -1
  359. package/dist/types/lib/component/ColorField/types.d.ts.map +0 -1
  360. package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts +0 -56
  361. package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts.map +0 -1
  362. package/dist/types/lib/component/ComboboxField/index.d.ts.map +0 -1
  363. package/dist/types/lib/component/ComboboxField/types.d.ts.map +0 -1
  364. package/dist/types/lib/component/RatingField/RatingField.d.ts.map +0 -1
  365. package/dist/types/lib/component/RatingField/index.d.ts.map +0 -1
  366. package/dist/types/lib/component/RatingField/types.d.ts.map +0 -1
  367. package/dist/types/lib/subcomponent/ColorInput/ColorInput.d.ts.map +0 -1
  368. package/dist/types/lib/subcomponent/ColorInput/index.d.ts.map +0 -1
  369. package/dist/types/lib/subcomponent/ColorInput/types.d.ts.map +0 -1
  370. package/dist/types/lib/subcomponent/ComboboxInput/ComboboxInput.d.ts.map +0 -1
  371. package/dist/types/lib/subcomponent/ComboboxInput/MultipleCombobox.d.ts +0 -16
  372. package/dist/types/lib/subcomponent/ComboboxInput/MultipleCombobox.d.ts.map +0 -1
  373. package/dist/types/lib/subcomponent/ComboboxInput/SingleCombobox.d.ts.map +0 -1
  374. package/dist/types/lib/subcomponent/ComboboxInput/common/List/List.d.ts.map +0 -1
  375. package/dist/types/lib/subcomponent/ComboboxInput/common/List/index.d.ts.map +0 -1
  376. package/dist/types/lib/subcomponent/ComboboxInput/common/List/types.d.ts.map +0 -1
  377. package/dist/types/lib/subcomponent/ComboboxInput/common/ResetButton/ResetButton.d.ts.map +0 -1
  378. package/dist/types/lib/subcomponent/ComboboxInput/common/ResetButton/index.d.ts.map +0 -1
  379. package/dist/types/lib/subcomponent/ComboboxInput/common/ResetButton/types.d.ts.map +0 -1
  380. package/dist/types/lib/subcomponent/ComboboxInput/common/index.d.ts.map +0 -1
  381. package/dist/types/lib/subcomponent/ComboboxInput/constants.d.ts.map +0 -1
  382. package/dist/types/lib/subcomponent/ComboboxInput/index.d.ts.map +0 -1
  383. package/dist/types/lib/subcomponent/ComboboxInput/messages.d.ts.map +0 -1
  384. package/dist/types/lib/subcomponent/ComboboxInput/types.d.ts +0 -27
  385. package/dist/types/lib/subcomponent/ComboboxInput/types.d.ts.map +0 -1
  386. package/dist/types/lib/subcomponent/ComboboxInput/utils/convertItemToString.d.ts +0 -4
  387. package/dist/types/lib/subcomponent/ComboboxInput/utils/convertItemToString.d.ts.map +0 -1
  388. package/dist/types/lib/subcomponent/ComboboxInput/utils/convertValueToItem.d.ts.map +0 -1
  389. package/dist/types/lib/subcomponent/ComboboxInput/utils/filterItems.d.ts +0 -4
  390. package/dist/types/lib/subcomponent/ComboboxInput/utils/filterItems.d.ts.map +0 -1
  391. package/dist/types/lib/subcomponent/ComboboxInput/utils/index.d.ts +0 -4
  392. package/dist/types/lib/subcomponent/ComboboxInput/utils/index.d.ts.map +0 -1
  393. package/dist/types/lib/subcomponent/RatingInput/RatingInput.d.ts.map +0 -1
  394. package/dist/types/lib/subcomponent/RatingInput/index.d.ts.map +0 -1
  395. package/dist/types/lib/subcomponent/RatingInput/types.d.ts.map +0 -1
  396. /package/dist/esm/lib/{component → _work_in_progress/component}/ColorField/index.js +0 -0
  397. /package/dist/esm/lib/{component → _work_in_progress/component}/ColorField/types.js +0 -0
  398. /package/dist/esm/lib/{component → _work_in_progress/component}/ComboboxField/index.js +0 -0
  399. /package/dist/esm/lib/{component → _work_in_progress/component}/ComboboxField/types.js +0 -0
  400. /package/dist/esm/lib/{component → _work_in_progress/component}/RatingField/index.js +0 -0
  401. /package/dist/esm/lib/{component → _work_in_progress/component}/RatingField/types.js +0 -0
  402. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/ColorInput.js +0 -0
  403. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/index.js +0 -0
  404. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/styles.css +0 -0
  405. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/types.js +0 -0
  406. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/ComboboxInput.js +0 -0
  407. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/index.js +0 -0
  408. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/styles.css +0 -0
  409. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/types.js +0 -0
  410. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/index.js +0 -0
  411. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/types.js +0 -0
  412. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/index.js +0 -0
  413. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/constants.js +0 -0
  414. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/index.js +0 -0
  415. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/styles.css +0 -0
  416. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/types.js +0 -0
  417. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/convertItemToString.js +0 -0
  418. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/convertValueToItem.js +0 -0
  419. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/filterItems.js +0 -0
  420. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/RatingInput.js +0 -0
  421. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/index.js +0 -0
  422. /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/types.js +0 -0
  423. /package/dist/types/lib/{component → _work_in_progress/component}/ColorField/index.d.ts +0 -0
  424. /package/dist/types/lib/{component → _work_in_progress/component}/ComboboxField/index.d.ts +0 -0
  425. /package/dist/types/lib/{component → _work_in_progress/component}/RatingField/index.d.ts +0 -0
  426. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/ColorInput.d.ts +0 -0
  427. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/index.d.ts +0 -0
  428. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/index.d.ts +0 -0
  429. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/index.d.ts +0 -0
  430. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/index.d.ts +0 -0
  431. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/constants.d.ts +0 -0
  432. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/index.d.ts +0 -0
  433. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/RatingInput.d.ts +0 -0
  434. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/index.d.ts +0 -0
  435. /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/types.d.ts +0 -0
@@ -8,7 +8,7 @@ import type { PasswordFieldProps } from "./types.js";
8
8
  *
9
9
  * @implements ds:global.component.password_field
10
10
  */
11
- declare const _default: (props: {
11
+ declare const _default: import("react").ComponentType<{
12
12
  children?: import("react").ReactNode | undefined;
13
13
  dangerouslySetInnerHTML?: {
14
14
  __html: string | TrustedHTML;
@@ -324,21 +324,16 @@ declare const _default: (props: {
324
324
  labelPosition?: "before" | "after";
325
325
  isOptional?: boolean;
326
326
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
327
+ descriptionPosition?: "leading" | "trailing";
327
328
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
328
329
  unregisterOnUnmount?: boolean;
329
330
  mockLabel?: boolean;
330
- middleware?: (import("../../index.js").Middleware<PasswordFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<PasswordFieldProps>, "Component"> & {
331
- condition?: import("../../index.js").Condition;
332
- }>[]) | undefined;
333
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<PasswordFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<PasswordFieldProps>, "Component"> & {
334
- condition?: import("../../index.js").Condition;
335
- }>>) | undefined;
336
- condition?: import("../../index.js").Condition;
331
+ errorSlot?: "payload" | "input";
332
+ middleware?: import("../../index.js").Middleware<PasswordFieldProps>[] | undefined;
333
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<PasswordFieldProps>> | undefined;
337
334
  revealable?: boolean;
338
335
  revealLabel?: string;
339
336
  maskLabel?: string;
340
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<PasswordFieldProps>, "Component"> & {
341
- condition?: import("../../index.js").Condition;
342
- }, string | import("react").JSXElementConstructor<any>> | null;
337
+ } & import("../../index.js").ConditionalDisplayProps>;
343
338
  export default _default;
344
339
  //# sourceMappingURL=PasswordField.d.ts.map
@@ -13,7 +13,8 @@ import type { PhoneFieldProps } from "./types.js";
13
13
  *
14
14
  * @implements ds:global.component.phone_field
15
15
  */
16
- declare const _default: (props: {
16
+ declare const _default: import("react").ComponentType<{
17
+ "aria-required"?: ("false" | "true" | boolean) | undefined;
17
18
  id?: string;
18
19
  className?: string;
19
20
  style?: React.CSSProperties;
@@ -29,16 +30,13 @@ declare const _default: (props: {
29
30
  labelPosition?: "before" | "after";
30
31
  isOptional?: boolean;
31
32
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
33
+ descriptionPosition?: "leading" | "trailing";
32
34
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
33
35
  unregisterOnUnmount?: boolean;
34
36
  mockLabel?: boolean;
35
- middleware?: (import("../../index.js").Middleware<PhoneFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<PhoneFieldProps>, "Component"> & {
36
- condition?: import("../../index.js").Condition;
37
- }>[]) | undefined;
38
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<PhoneFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<PhoneFieldProps>, "Component"> & {
39
- condition?: import("../../index.js").Condition;
40
- }>>) | undefined;
41
- condition?: import("../../index.js").Condition;
37
+ errorSlot?: "payload" | "input";
38
+ middleware?: import("../../index.js").Middleware<PhoneFieldProps>[] | undefined;
39
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<PhoneFieldProps>> | undefined;
42
40
  value?: string | import("../../subcomponent/PhoneInput/types.js").PhoneValue;
43
41
  onChange?: (value: string | import("../../subcomponent/PhoneInput/types.js").PhoneValue) => void;
44
42
  onBlur?: React.FocusEventHandler<HTMLInputElement>;
@@ -50,8 +48,6 @@ declare const _default: (props: {
50
48
  countryDisplay?: "code" | "name" | "flag";
51
49
  mask?: boolean;
52
50
  disabled?: boolean;
53
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<PhoneFieldProps>, "Component"> & {
54
- condition?: import("../../index.js").Condition;
55
- }, string | import("react").JSXElementConstructor<any>> | null;
51
+ } & import("../../index.js").ConditionalDisplayProps>;
56
52
  export default _default;
57
53
  //# sourceMappingURL=PhoneField.d.ts.map
@@ -13,7 +13,7 @@ import type { RangeFieldProps } from "./types.js";
13
13
  *
14
14
  * @implements ds:global.component.range_field
15
15
  */
16
- declare const _default: (props: {
16
+ declare const _default: import("react").ComponentType<{
17
17
  children?: import("react").ReactNode | undefined;
18
18
  dangerouslySetInnerHTML?: {
19
19
  __html: string | TrustedHTML;
@@ -329,21 +329,16 @@ declare const _default: (props: {
329
329
  labelPosition?: "before" | "after";
330
330
  isOptional?: boolean;
331
331
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
332
+ descriptionPosition?: "leading" | "trailing";
332
333
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
333
334
  unregisterOnUnmount?: boolean;
334
335
  mockLabel?: boolean;
335
- middleware?: (import("../../index.js").Middleware<RangeFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<RangeFieldProps>, "Component"> & {
336
- condition?: import("../../index.js").Condition;
337
- }>[]) | undefined;
338
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<RangeFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<RangeFieldProps>, "Component"> & {
339
- condition?: import("../../index.js").Condition;
340
- }>>) | undefined;
341
- condition?: import("../../index.js").Condition;
336
+ errorSlot?: "payload" | "input";
337
+ middleware?: import("../../index.js").Middleware<RangeFieldProps>[] | undefined;
338
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<RangeFieldProps>> | undefined;
342
339
  min: number;
343
340
  max: number;
344
341
  sliderLabel?: string;
345
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<RangeFieldProps>, "Component"> & {
346
- condition?: import("../../index.js").Condition;
347
- }, string | import("react").JSXElementConstructor<any>> | null;
342
+ } & import("../../index.js").ConditionalDisplayProps>;
348
343
  export default _default;
349
344
  //# sourceMappingURL=RangeField.d.ts.map
@@ -10,6 +10,6 @@ import "./styles.css";
10
10
  *
11
11
  * `import { RichChoices } from "@canonical/react-ds-global-form";`
12
12
  */
13
- export declare const RichChoices: ({ id, className, style, name, isMultiple, disabled, options, value, onChange, }: RichChoicesPresentationProps) => React.ReactElement;
13
+ export declare const RichChoices: ({ id, className, style, name, isMultiple, disabled, options, value, onChange, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: RichChoicesPresentationProps) => React.ReactElement;
14
14
  export default RichChoices;
15
15
  //# sourceMappingURL=RichChoices.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichChoices.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/RichChoices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,oFAUrB,4BAA4B,KAAG,KAAK,CAAC,YAuCvC,CAAC;eAEa,WAAW"}
1
+ {"version":3,"file":"RichChoices.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/RichChoices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,4JAYrB,4BAA4B,KAAG,KAAK,CAAC,YAyCvC,CAAC;eAEa,WAAW"}
@@ -1,14 +1,14 @@
1
1
  import type { RichChoicesFieldProps } from "./types.js";
2
2
  /**
3
3
  * RichChoices bound to react-hook-form (controlled), wrapped with field chrome.
4
- * The label is mocked into the fieldset legend, as the per-option labels are
5
- * rendered by the individual options.
4
+ * The field label is rendered as plain text (`mockLabel`), as each option
5
+ * carries its own label; the fieldset is named by it through `aria-labelledby`.
6
6
  *
7
7
  * `import { RichChoicesField } from "@canonical/react-ds-global-form";`
8
8
  *
9
9
  * @implements ds:global.component.rich_choices_field
10
10
  */
11
- declare const _default: (props: {
11
+ declare const _default: import("react").ComponentType<{
12
12
  id?: string;
13
13
  className?: string;
14
14
  style?: React.CSSProperties;
@@ -24,23 +24,18 @@ declare const _default: (props: {
24
24
  labelPosition?: "before" | "after";
25
25
  isOptional?: boolean;
26
26
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
27
+ descriptionPosition?: "leading" | "trailing";
27
28
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
28
29
  unregisterOnUnmount?: boolean;
29
30
  mockLabel?: boolean;
30
- middleware?: (import("../../index.js").Middleware<RichChoicesFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<RichChoicesFieldProps>, "Component"> & {
31
- condition?: import("../../index.js").Condition;
32
- }>[]) | undefined;
33
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<RichChoicesFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<RichChoicesFieldProps>, "Component"> & {
34
- condition?: import("../../index.js").Condition;
35
- }>>) | undefined;
36
- condition?: import("../../index.js").Condition;
31
+ errorSlot?: "payload" | "input";
32
+ middleware?: import("../../index.js").Middleware<RichChoicesFieldProps>[] | undefined;
33
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<RichChoicesFieldProps>> | undefined;
37
34
  options: import("./types.js").RichChoiceOption[];
38
35
  isMultiple?: boolean;
39
36
  disabled?: boolean;
40
37
  value?: string | string[];
41
38
  onChange?: (value: string | string[]) => void;
42
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<RichChoicesFieldProps>, "Component"> & {
43
- condition?: import("../../index.js").Condition;
44
- }, string | import("react").JSXElementConstructor<any>> | null;
39
+ } & import("../../index.js").ConditionalDisplayProps>;
45
40
  export default _default;
46
41
  //# sourceMappingURL=RichChoicesField.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type React from "react";
2
2
  import type { InputProps } from "../../common/types.js";
3
- import type { BaseProps } from "../../subcomponent/types.js";
3
+ import type { BaseProps, GroupAriaProps } from "../../subcomponent/types.js";
4
4
  export type RichChoiceOption = {
5
5
  value: string;
6
6
  /** Freely-shaped label content (text, card, icon, etc.) */
@@ -22,7 +22,7 @@ type AdditionalRichChoicesProps = {
22
22
  onChange?: (value: string | string[]) => void;
23
23
  };
24
24
  /** Props for the presentational RichChoices (controlled, no react-hook-form). */
25
- export type RichChoicesPresentationProps = BaseProps & AdditionalRichChoicesProps;
25
+ export type RichChoicesPresentationProps = BaseProps & GroupAriaProps & AdditionalRichChoicesProps;
26
26
  /** Props for the react-hook-form-bound RichChoices field. */
27
27
  export type RichChoicesFieldProps = InputProps<RichChoicesPresentationProps>;
28
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IAEb,2CAA2C;IAC3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAE5B,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE1B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,iFAAiF;AACjF,MAAM,MAAM,4BAA4B,GAAG,SAAS,GAClD,0BAA0B,CAAC;AAE7B,6DAA6D;AAC7D,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IAEb,2CAA2C;IAC3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAE5B,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE1B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,iFAAiF;AACjF,MAAM,MAAM,4BAA4B,GAAG,SAAS,GAClD,cAAc,GACd,0BAA0B,CAAC;AAE7B,6DAA6D;AAC7D,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC"}
@@ -7,7 +7,7 @@ import type { SelectFieldProps } from "./types.js";
7
7
  *
8
8
  * @implements ds:global.component.select_field
9
9
  */
10
- declare const _default: (props: {
10
+ declare const _default: import("react").ComponentType<{
11
11
  children?: import("react").ReactNode | undefined;
12
12
  dangerouslySetInnerHTML?: {
13
13
  __html: string | TrustedHTML;
@@ -304,18 +304,13 @@ declare const _default: (props: {
304
304
  labelPosition?: "before" | "after";
305
305
  isOptional?: boolean;
306
306
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
307
+ descriptionPosition?: "leading" | "trailing";
307
308
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
308
309
  unregisterOnUnmount?: boolean;
309
310
  mockLabel?: boolean;
310
- middleware?: (import("../../index.js").Middleware<SelectFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<SelectFieldProps>, "Component"> & {
311
- condition?: import("../../index.js").Condition;
312
- }>[]) | undefined;
313
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<SelectFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<SelectFieldProps>, "Component"> & {
314
- condition?: import("../../index.js").Condition;
315
- }>>) | undefined;
316
- condition?: import("../../index.js").Condition;
317
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<SelectFieldProps>, "Component"> & {
318
- condition?: import("../../index.js").Condition;
319
- }, string | import("react").JSXElementConstructor<any>> | null;
311
+ errorSlot?: "payload" | "input";
312
+ middleware?: import("../../index.js").Middleware<SelectFieldProps>[] | undefined;
313
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<SelectFieldProps>> | undefined;
314
+ } & import("../../index.js").ConditionalDisplayProps>;
320
315
  export default _default;
321
316
  //# sourceMappingURL=SelectField.d.ts.map
@@ -7,7 +7,7 @@ import type { TextFieldProps } from "./types.js";
7
7
  *
8
8
  * @implements ds:global.component.text_field
9
9
  */
10
- declare const _default: (props: {
10
+ declare const _default: import("react").ComponentType<{
11
11
  children?: import("react").ReactNode | undefined;
12
12
  dangerouslySetInnerHTML?: {
13
13
  __html: string | TrustedHTML;
@@ -325,20 +325,15 @@ declare const _default: (props: {
325
325
  labelPosition?: "before" | "after";
326
326
  isOptional?: boolean;
327
327
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
328
+ descriptionPosition?: "leading" | "trailing";
328
329
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
329
330
  unregisterOnUnmount?: boolean;
330
331
  mockLabel?: boolean;
331
- middleware?: (import("../../index.js").Middleware<TextFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<TextFieldProps>, "Component"> & {
332
- condition?: import("../../index.js").Condition;
333
- }>[]) | undefined;
334
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<TextFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<TextFieldProps>, "Component"> & {
335
- condition?: import("../../index.js").Condition;
336
- }>>) | undefined;
337
- condition?: import("../../index.js").Condition;
332
+ errorSlot?: "payload" | "input";
333
+ middleware?: import("../../index.js").Middleware<TextFieldProps>[] | undefined;
334
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<TextFieldProps>> | undefined;
338
335
  inputType?: import("../../subcomponent/TextInput/types.js").TextInputType;
339
336
  suffix?: React.ReactNode;
340
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<TextFieldProps>, "Component"> & {
341
- condition?: import("../../index.js").Condition;
342
- }, string | import("react").JSXElementConstructor<any>> | null;
337
+ } & import("../../index.js").ConditionalDisplayProps>;
343
338
  export default _default;
344
339
  //# sourceMappingURL=TextField.d.ts.map
@@ -7,7 +7,7 @@ import type { TextareaFieldProps } from "./types.js";
7
7
  *
8
8
  * @implements ds:global.component.textarea_field
9
9
  */
10
- declare const _default: (props: {
10
+ declare const _default: import("react").ComponentType<{
11
11
  children?: import("react").ReactNode | undefined;
12
12
  dangerouslySetInnerHTML?: {
13
13
  __html: string | TrustedHTML;
@@ -309,18 +309,13 @@ declare const _default: (props: {
309
309
  labelPosition?: "before" | "after";
310
310
  isOptional?: boolean;
311
311
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
312
+ descriptionPosition?: "leading" | "trailing";
312
313
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
313
314
  unregisterOnUnmount?: boolean;
314
315
  mockLabel?: boolean;
315
- middleware?: (import("../../index.js").Middleware<TextareaFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<TextareaFieldProps>, "Component"> & {
316
- condition?: import("../../index.js").Condition;
317
- }>[]) | undefined;
318
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<TextareaFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<TextareaFieldProps>, "Component"> & {
319
- condition?: import("../../index.js").Condition;
320
- }>>) | undefined;
321
- condition?: import("../../index.js").Condition;
322
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<TextareaFieldProps>, "Component"> & {
323
- condition?: import("../../index.js").Condition;
324
- }, string | import("react").JSXElementConstructor<any>> | null;
316
+ errorSlot?: "payload" | "input";
317
+ middleware?: import("../../index.js").Middleware<TextareaFieldProps>[] | undefined;
318
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<TextareaFieldProps>> | undefined;
319
+ } & import("../../index.js").ConditionalDisplayProps>;
325
320
  export default _default;
326
321
  //# sourceMappingURL=TextareaField.d.ts.map
@@ -7,7 +7,7 @@ import type { TimeFieldProps } from "./types.js";
7
7
  *
8
8
  * @implements ds:global.component.time_field
9
9
  */
10
- declare const _default: (props: {
10
+ declare const _default: import("react").ComponentType<{
11
11
  children?: import("react").ReactNode | undefined;
12
12
  dangerouslySetInnerHTML?: {
13
13
  __html: string | TrustedHTML;
@@ -325,18 +325,13 @@ declare const _default: (props: {
325
325
  labelPosition?: "before" | "after";
326
326
  isOptional?: boolean;
327
327
  requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
328
+ descriptionPosition?: "leading" | "trailing";
328
329
  nestedRegisterProps?: import("react-hook-form").RegisterOptions;
329
330
  unregisterOnUnmount?: boolean;
330
331
  mockLabel?: boolean;
331
- middleware?: (import("../../index.js").Middleware<TimeFieldProps>[] & import("../../index.js").Middleware<Omit<import("../../index.js").WrappedComponentProps<TimeFieldProps>, "Component"> & {
332
- condition?: import("../../index.js").Condition;
333
- }>[]) | undefined;
334
- WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<TimeFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<TimeFieldProps>, "Component"> & {
335
- condition?: import("../../index.js").Condition;
336
- }>>) | undefined;
337
- condition?: import("../../index.js").Condition;
338
- }) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<TimeFieldProps>, "Component"> & {
339
- condition?: import("../../index.js").Condition;
340
- }, string | import("react").JSXElementConstructor<any>> | null;
332
+ errorSlot?: "payload" | "input";
333
+ middleware?: import("../../index.js").Middleware<TimeFieldProps>[] | undefined;
334
+ WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<TimeFieldProps>> | undefined;
335
+ } & import("../../index.js").ConditionalDisplayProps>;
341
336
  export default _default;
342
337
  //# sourceMappingURL=TimeField.d.ts.map
@@ -1,7 +1,8 @@
1
+ export * from "../_work_in_progress/component/ColorField/index.js";
2
+ export * from "../_work_in_progress/component/ComboboxField/index.js";
3
+ export * from "../_work_in_progress/component/RatingField/index.js";
1
4
  export * from "./CheckboxField/index.js";
2
5
  export * from "./ChoicesField/index.js";
3
- export * from "./ColorField/index.js";
4
- export * from "./ComboboxField/index.js";
5
6
  export * from "./DateField/index.js";
6
7
  export * from "./DateTimeField/index.js";
7
8
  export * from "./FileUploadField/index.js";
@@ -10,7 +11,6 @@ export * from "./NumberField/index.js";
10
11
  export * from "./PasswordField/index.js";
11
12
  export * from "./PhoneField/index.js";
12
13
  export * from "./RangeField/index.js";
13
- export * from "./RatingField/index.js";
14
14
  export * from "./RichChoicesField/index.js";
15
15
  export * from "./SelectField/index.js";
16
16
  export * from "./SwitchField/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,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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/component/index.ts"],"names":[],"mappings":"AAGA,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,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,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export * from "./pattern/index.js";
2
- export type { CheckboxInputProps, ColorInputProps, ComboboxInputProps, DateInputProps, DateTimeInputProps, FileUploadInputProps, HexFormat, HiddenInputProps, NumberInputProps, PasswordInputProps, PhoneInputProps, PhoneValue, RadioInputProps, RangeInputProps, RatingInputProps, RatingScale, SelectInputProps, SwitchInputProps, TextareaInputProps, TextInputProps, TextInputType, TimeInputProps, } from "./subcomponent/index.js";
2
+ export type { CheckboxInputProps, ColorInputProps, ComboboxInputProps, DateInputProps, DateTimeInputProps, FileMessage, FileMessageLevel, FileUploadInputProps, FileUploadMessages, HexFormat, HiddenInputProps, NumberInputProps, PasswordInputProps, PhoneInputProps, PhoneValue, RadioInputProps, RangeInputProps, RatingInputProps, RatingScale, SelectInputProps, SwitchInputProps, TextareaInputProps, TextInputProps, TextInputType, TimeInputProps, UploadFunction, UploadOptions, UploadSummary, } from "./subcomponent/index.js";
3
3
  export { CheckboxInput, ColorInput, ComboboxInput, DateInput, DateTimeInput, FileUploadInput, HiddenInput, NumberInput, PasswordInput, PhoneInput, RadioInput, RangeInput, RatingInput, SelectInput, SwitchInput, TextareaInput, TextInput, TimeInput, } from "./subcomponent/index.js";
4
4
  export type { Formatter } from "./utils/formatter/index.js";
5
5
  export { applyPattern, createFormatterRegisterOptions, createPatternFormatter, stripToDigits, } from "./utils/formatter/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AAOnC,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,GACV,MAAM,yBAAyB,CAAC;AAMjC,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,8BAA8B,EAC9B,sBAAsB,EACtB,aAAa,GACd,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AAOnC,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,GACV,MAAM,yBAAyB,CAAC;AAMjC,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,8BAA8B,EAC9B,sBAAsB,EACtB,aAAa,GACd,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,cAAc,6BAA6B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import type { ComponentProps, ComponentType } from "react";
2
+ import type { ColorField } from "../../_work_in_progress/component/ColorField/index.js";
3
+ import type { ComboboxField } from "../../_work_in_progress/component/ComboboxField/index.js";
4
+ import type { RatingField } from "../../_work_in_progress/component/RatingField/index.js";
2
5
  import type { CheckboxField } from "../../component/CheckboxField/index.js";
3
6
  import type { ChoicesField } from "../../component/ChoicesField/index.js";
4
- import type { ColorField } from "../../component/ColorField/index.js";
5
- import type { ComboboxField } from "../../component/ComboboxField/index.js";
6
7
  import type { DateField } from "../../component/DateField/index.js";
7
8
  import type { DateTimeField } from "../../component/DateTimeField/index.js";
8
9
  import type { FileUploadField } from "../../component/FileUploadField/index.js";
@@ -11,7 +12,6 @@ import type { NumberField } from "../../component/NumberField/index.js";
11
12
  import type { PasswordField } from "../../component/PasswordField/index.js";
12
13
  import type { PhoneField } from "../../component/PhoneField/index.js";
13
14
  import type { RangeField } from "../../component/RangeField/index.js";
14
- import type { RatingField } from "../../component/RatingField/index.js";
15
15
  import type { RichChoicesField } from "../../component/RichChoicesField/index.js";
16
16
  import type { SelectField } from "../../component/SelectField/index.js";
17
17
  import type { SwitchField } from "../../component/SwitchField/index.js";
@@ -19,7 +19,7 @@ import type { TextareaField } from "../../component/TextareaField/index.js";
19
19
  import type { TextField } from "../../component/TextField/index.js";
20
20
  import type { TimeField } from "../../component/TimeField/index.js";
21
21
  import type { NativeInputType } from "../../subcomponent/types.js";
22
- export type { BaseInputProps, BaseWrapperProps, Condition, InputProps, Middleware, WrappedComponentProps, WrapperHOCAdditionalProps, WrapperProps, } from "../../common/types.js";
22
+ export type { BaseInputProps, BaseWrapperProps, Condition, ConditionalDisplayProps, InputProps, Middleware, WrappedComponentProps, WrapperHOCAdditionalProps, WrapperProps, } from "../../common/types.js";
23
23
  export type { BaseProps, NativeInputType, Option, OptionsProps, } from "../../subcomponent/types.js";
24
24
  type ReservedCustomKeys<P> = P extends unknown ? Extract<"inputType" | "CustomComponent" | "key", keyof P> : never;
25
25
  type CustomVariant<P extends {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAq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G,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,GAC5D,CAAC;IAAE,SAAS,EAAE,cAAc,CAAA;CAAE,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAG9E,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GACzC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,GAClC,KAAK,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,IAChE,iBAAiB,CAAC,aAAa,CAAC,GAChC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Description/Description.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,WAAW,wCAKd,gBAAgB,KAAG,KAAK,CAAC,YAY3B,CAAC;AAEF;;GAEG;eACY,WAAW"}
1
+ {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Description/Description.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,WAAW,wCAKd,gBAAgB,KAAG,KAAK,CAAC,YAU3B,CAAC;AAEF;;GAEG;eACY,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Error/Error.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,UAAU,wCAKb,UAAU,KAAG,KAAK,CAAC,YAarB,CAAC;eAEa,UAAU"}
1
+ {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Error/Error.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,UAAU,wCAKb,UAAU,KAAG,KAAK,CAAC,YAcrB,CAAC;eAEa,UAAU"}
@@ -2,15 +2,36 @@ import type React from "react";
2
2
  import type { FileUploadInputProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
- * Presentational file upload input with drag-and-drop zone, file list, and
6
- * image preview. Controlled via `value`/`onChange` (no react-hook-form). The
7
- * field tier supplies the binding.
5
+ * Presentational file upload input: a drop area, with a button that opens the
6
+ * file picker, and the list of chosen files. Controlled via `value`/`onChange`
7
+ * (no react-hook-form); the field tier supplies the binding.
8
+ *
9
+ * Each file's tile shows its name, optional size and an image thumbnail, and
10
+ * any warning or error under it: `accept` and `maxSize` violations, the
11
+ * `validateFile` result, and a failed upload. With an `upload` function the
12
+ * input is live: it sends each valid file as soon as it is chosen and shows
13
+ * its progress, then its result for a moment. Closing a running upload cancels
14
+ * it and removes the file; a failed upload can be retried. Without `upload` it
15
+ * only lists the files. An image's thumbnail shows the whole image on hover.
16
+ *
17
+ * `showDropArea` and `showFileList` turn the two halves off. The field-level
18
+ * `error` shows whether or not the drop area does. While `error` is set or
19
+ * `aria-invalid` is true, the drop area carries the `error` Criticality
20
+ * class, so its border and fill read the error colours. Without the drop
21
+ * area, the file actions carry the field's `aria-describedby`.
22
+ *
23
+ * The native file `<input>` sits beside the drop area, not inside it, and
24
+ * carries the `id`, `name` and `required`, so a `<label for>` reaches it and
25
+ * the selection posts without scripting. Its files are kept in step with
26
+ * `value`, including files added by drag and drop. A plain HTML submission
27
+ * only sends files when the form has `enctype="multipart/form-data"`. Live
28
+ * upload needs scripting; without it the files post with the form.
8
29
  * @returns {React.ReactElement} - Rendered FileUploadInput
9
30
  *
10
31
  * `import { FileUploadInput } from "@canonical/react-ds-global-form";`
11
32
  *
12
33
  * @implements ds:global.subcomponent.file_upload_input
13
34
  */
14
- export declare const FileUploadInput: ({ id, className, style, value, onChange, accept, maxSize, maxFiles, multiple, disabled, ...otherProps }: FileUploadInputProps) => React.ReactElement;
35
+ export declare const FileUploadInput: ({ id, className, value, onChange, accept, maxSize, maxFiles, multiple, disabled, name, required, upload, validateFile, showFileSize, showDropArea, showFileList, error, onUploadStatusChange, messages: messageOverrides, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-errormessage": ariaErrorMessage, ...otherProps }: FileUploadInputProps) => React.ReactElement;
15
36
  export default FileUploadInput;
16
37
  //# sourceMappingURL=FileUploadInput.d.ts.map
@@ -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;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,4GAezB,oBAAoB,KAAG,KAAK,CAAC,YA+I/B,CAAC;eASa,eAAe"}
1
+ {"version":3,"file":"FileUploadInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/FileUploadInput/FileUploadInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,cAAc,CAAC;AAMtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,eAAe,0XA2BzB,oBAAoB,KAAG,KAAK,CAAC,YAwL/B,CAAC;eAEa,eAAe"}
@@ -0,0 +1,15 @@
1
+ import type React from "react";
2
+ import type { FileItemProps } from "./types.js";
3
+ /**
4
+ * One chosen file: its tile (thumbnail, name, size, upload status, retry and
5
+ * remove) and the warning or error message under it. The message comes from
6
+ * the file's validation or its failed upload; an `accept`, `maxSize` or
7
+ * `validateFile` error wins, then an upload failure, then a warning.
8
+ *
9
+ * The tile carries the message's Criticality class (`warning` or `error`), so
10
+ * its surface, text, icons and action buttons read the matching colour
11
+ * channels.
12
+ */
13
+ declare const FileItem: ({ file, messageId, fieldDescribedBy, validation, live, upload, showFileSize, messages, onRemove, onRetry, }: FileItemProps) => React.ReactElement;
14
+ export default FileItem;
15
+ //# sourceMappingURL=FileItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,gHAWX,aAAa,KAAG,KAAK,CAAC,YAoHxB,CAAC;eAEa,QAAQ"}
@@ -0,0 +1,3 @@
1
+ export { default as FileItem } from "./FileItem.js";
2
+ export type { FileItemProps } from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/FileItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { FileMessage, FileUploadMessages, UploadState } from "../../types.js";
2
+ /** Props for one file's tile in the file list. */
3
+ export type FileItemProps = {
4
+ /** The chosen file. */
5
+ file: File;
6
+ /** The id of the message under the tile, which the tile references. */
7
+ messageId: string;
8
+ /**
9
+ * The field's own `aria-describedby`, added to the tile's buttons while the
10
+ * drop area, and its Choose file button, is not shown.
11
+ */
12
+ fieldDescribedBy?: string;
13
+ /** The `accept`, `maxSize` or `validateFile` message for the file. */
14
+ validation?: FileMessage;
15
+ /** Whether the input uploads files live, so the tile shows a status. */
16
+ live: boolean;
17
+ /** The file's live upload state, once it has been sent. */
18
+ upload?: UploadState;
19
+ /** Show the file size. */
20
+ showFileSize: boolean;
21
+ /** The texts the tile renders. */
22
+ messages: FileUploadMessages;
23
+ /** Removes the file from the selection, aborting its running upload. */
24
+ onRemove: (file: File) => void;
25
+ /** Sends the file again. */
26
+ onRetry: (file: File) => void;
27
+ };
28
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/FileItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB,kDAAkD;AAClD,MAAM,MAAM,aAAa,GAAG;IAC1B,uBAAuB;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sEAAsE;IACtE,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,wEAAwE;IACxE,IAAI,EAAE,OAAO,CAAC;IACd,2DAA2D;IAC3D,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,0BAA0B;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,wEAAwE;IACxE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,4BAA4B;IAC5B,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type React from "react";
2
+ import type { ThumbnailProps } from "./types.js";
3
+ /**
4
+ * A file's image thumbnail. Hovering it shows the whole image in a tooltip,
5
+ * since the thumbnail crops it to fill its box. The preview reuses the
6
+ * thumbnail's object URL, and appears only once that URL exists.
7
+ *
8
+ * The thumbnail takes no keyboard focus: the preview only enlarges a
9
+ * decorative image, and a stop on every image tile would slow keyboard
10
+ * movement through the list.
11
+ */
12
+ declare const Thumbnail: ({ url }: ThumbnailProps) => React.ReactElement;
13
+ export default Thumbnail;
14
+ //# sourceMappingURL=Thumbnail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Thumbnail.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA6BjD;;;;;;;;GAQG;AACH,QAAA,MAAM,SAAS,YAAa,cAAc,KAAG,KAAK,CAAC,YAOlD,CAAC;eAEa,SAAS"}
@@ -0,0 +1,3 @@
1
+ export { default as Thumbnail } from "./Thumbnail.js";
2
+ export type { ThumbnailProps } from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/Thumbnail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}