@oracle/oraclejet-preact 14.0.5 → 14.0.7

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 (1420) hide show
  1. package/amd/Badge-3a3bc336.js +40 -0
  2. package/{cjs/Badge-1e0540c9.js.map → amd/Badge-3a3bc336.js.map} +1 -1
  3. package/amd/BaseButton-20a653f3.js +148 -0
  4. package/amd/{BaseButton-31fe1787.js.map → BaseButton-20a653f3.js.map} +1 -1
  5. package/amd/Button-87280b4a.js +68 -0
  6. package/{cjs/Button-eaff99de.js.map → amd/Button-87280b4a.js.map} +1 -1
  7. package/amd/Chip-8cd23568.js +55 -0
  8. package/{cjs/Chip-b83161eb.js.map → amd/Chip-8cd23568.js.map} +1 -1
  9. package/amd/ClearIcon-27a5c275.js +58 -0
  10. package/amd/{ClearIcon-58c33ef6.js.map → ClearIcon-27a5c275.js.map} +1 -1
  11. package/amd/Collection-55b75a82.js +18 -0
  12. package/amd/{Collection-a530cc1c.js.map → Collection-55b75a82.js.map} +1 -1
  13. package/amd/ComponentMessage-5603259e.js +44 -0
  14. package/amd/{ComponentMessage-f45b3bbf.js.map → ComponentMessage-5603259e.js.map} +1 -1
  15. package/amd/ComponentMessageContainer-a00ec42c.js +50 -0
  16. package/{cjs/ComponentMessageContainer-e357f6b8.js.map → amd/ComponentMessageContainer-a00ec42c.js.map} +1 -1
  17. package/amd/Divider-8cd412fd.js +34 -0
  18. package/amd/{Divider-84e27e2d.js.map → Divider-8cd412fd.js.map} +1 -1
  19. package/amd/FilePicker-bb70dacb.js +582 -0
  20. package/amd/{FilePicker-e9a5d905.js.map → FilePicker-bb70dacb.js.map} +1 -1
  21. package/amd/Flex-7762d39c.js +35 -0
  22. package/amd/{Flex-556d723b.js.map → Flex-7762d39c.js.map} +1 -1
  23. package/amd/Floating-08ac18d2.js +310 -0
  24. package/amd/{Floating-31eefce3.js.map → Floating-08ac18d2.js.map} +1 -1
  25. package/amd/FocusTrap-420f2714.js +143 -0
  26. package/amd/{FocusTrap-94dc8805.js.map → FocusTrap-420f2714.js.map} +1 -1
  27. package/amd/FormControlUtils-802d298a.js +21 -0
  28. package/amd/{FormControlUtils-f9124d70.js.map → FormControlUtils-802d298a.js.map} +1 -1
  29. package/amd/Heading-431829e1.js +72 -0
  30. package/amd/{Heading-e317eb74.js.map → Heading-431829e1.js.map} +1 -1
  31. package/amd/HiddenAccessible-1dadf91a.js +25 -0
  32. package/amd/{HiddenAccessible-fd19b064.js.map → HiddenAccessible-1dadf91a.js.map} +1 -1
  33. package/amd/HighlightText-9d200a5d.js +48 -0
  34. package/{cjs/HighlightText-1bad83fc.js.map → amd/HighlightText-9d200a5d.js.map} +1 -1
  35. package/amd/Icon-a6ef6699.js +99 -0
  36. package/amd/{Icon-b5704008.js.map → Icon-a6ef6699.js.map} +1 -1
  37. package/amd/Indexer-81bf2fe0.js +512 -0
  38. package/amd/{Indexer-5611d3c4.js.map → Indexer-81bf2fe0.js.map} +1 -1
  39. package/amd/InlineHelpSource-8a22f914.js +32 -0
  40. package/amd/{InlineHelpSource-66c5f04f.js.map → InlineHelpSource-8a22f914.js.map} +1 -1
  41. package/amd/Link-3169fd72.js +42 -0
  42. package/{cjs/Link-09bbaed7.js.map → amd/Link-3169fd72.js.map} +1 -1
  43. package/amd/List-26b59d92.js +670 -0
  44. package/amd/{List-f2a1fc9f.js.map → List-26b59d92.js.map} +1 -1
  45. package/amd/ListItemTextLayout-f6a3d721.js +211 -0
  46. package/amd/{ListItemTextLayout-60e39a4b.js.map → ListItemTextLayout-f6a3d721.js.map} +1 -1
  47. package/amd/ListView-3b9a3235.js +16 -0
  48. package/amd/{ListView-9ed346bf.js.map → ListView-3b9a3235.js.map} +1 -1
  49. package/amd/LoadMoreCollection-b7513141.js +63 -0
  50. package/amd/{LoadMoreCollection-479c6b41.js.map → LoadMoreCollection-b7513141.js.map} +1 -1
  51. package/amd/Menu-94ddd429.js +302 -0
  52. package/amd/Menu-94ddd429.js.map +1 -0
  53. package/amd/MenuDivider-b9309ceb.js +19 -0
  54. package/amd/{MenuDivider-92577724.js.map → MenuDivider-b9309ceb.js.map} +1 -1
  55. package/amd/MenuItem-c263a7c0.js +154 -0
  56. package/amd/MenuItem-c263a7c0.js.map +1 -0
  57. package/amd/Message.types-3ff18727.js +11 -0
  58. package/amd/{Message.types-4bf5e2b8.js.map → Message.types-3ff18727.js.map} +1 -1
  59. package/amd/MessageCloseButton-51697635.js +44 -0
  60. package/{cjs/MessageCloseButton-1ff27ab8.js.map → amd/MessageCloseButton-51697635.js.map} +1 -1
  61. package/amd/MessageDetail-dd86fa2b.js +61 -0
  62. package/amd/{MessageDetail-8958ff27.js.map → MessageDetail-dd86fa2b.js.map} +1 -1
  63. package/amd/MessageFormattingUtils-0ffdac02.js +103 -0
  64. package/amd/{MessageFormattingUtils-66993387.js.map → MessageFormattingUtils-0ffdac02.js.map} +1 -1
  65. package/amd/MessageLayer-6da93adb.js +80 -0
  66. package/amd/{MessageLayer-dc38e00d.js.map → MessageLayer-6da93adb.js.map} +1 -1
  67. package/amd/MessageStartIcon-1b57b659.js +63 -0
  68. package/amd/{MessageStartIcon-9a21df9b.js.map → MessageStartIcon-1b57b659.js.map} +1 -1
  69. package/amd/MessageSummary-cf0af1b2.js +37 -0
  70. package/amd/{MessageSummary-34220b0d.js.map → MessageSummary-cf0af1b2.js.map} +1 -1
  71. package/amd/MessageTimestamp-0e995235.js +36 -0
  72. package/amd/{MessageTimestamp-271609d9.js.map → MessageTimestamp-0e995235.js.map} +1 -1
  73. package/amd/MessageToast-e0f94cbe.js +307 -0
  74. package/amd/{MessageToast-129c2477.js.map → MessageToast-e0f94cbe.js.map} +1 -1
  75. package/amd/MessageUtils-0bf10cfa.js +137 -0
  76. package/amd/{MessageUtils-dfcb9ca9.js.map → MessageUtils-0bf10cfa.js.map} +1 -1
  77. package/amd/MessagesManager-da52103a.js +110 -0
  78. package/amd/{MessagesManager-d521afd3.js.map → MessagesManager-da52103a.js.map} +1 -1
  79. package/amd/MeterCircle-bb948163.js +547 -0
  80. package/amd/{MeterCircle-78d7b095.js.map → MeterCircle-bb948163.js.map} +1 -1
  81. package/amd/Modal-be0762b5.js +109 -0
  82. package/amd/{Modal-1b5b6fc3.js.map → Modal-be0762b5.js.map} +1 -1
  83. package/amd/NumberInputText-d762d134.js +252 -0
  84. package/amd/{NumberInputText-9ad68cd3.js.map → NumberInputText-d762d134.js.map} +1 -1
  85. package/amd/PRIVATE_Collection.js +17 -1
  86. package/amd/PRIVATE_Collection.js.map +1 -1
  87. package/amd/PRIVATE_List.css +18 -17
  88. package/amd/PRIVATE_List.js +18 -1
  89. package/amd/PRIVATE_List.js.map +1 -1
  90. package/amd/PRIVATE_Message.css +35 -34
  91. package/amd/PRIVATE_Message.js +278 -1
  92. package/amd/PRIVATE_Message.js.map +1 -1
  93. package/amd/PRIVATE_MessageLayer.css +8 -7
  94. package/amd/PRIVATE_MessageLayer.js +12 -1
  95. package/amd/PRIVATE_MessageLayer.js.map +1 -1
  96. package/amd/PRIVATE_Meter.js +66 -1
  97. package/amd/PRIVATE_Meter.js.map +1 -1
  98. package/amd/PRIVATE_SelectCommon.css +19 -18
  99. package/amd/PRIVATE_SelectCommon.js +632 -1
  100. package/amd/PRIVATE_SelectCommon.js.map +1 -1
  101. package/amd/PRIVATE_TransitionGroup.js +414 -1
  102. package/amd/PRIVATE_TransitionGroup.js.map +1 -1
  103. package/amd/PRIVATE_VirtualizedCollection.js +19 -1
  104. package/amd/PRIVATE_VirtualizedCollection.js.map +1 -1
  105. package/amd/ReadonlyTextFieldInput-4583f049.js +111 -0
  106. package/amd/{ReadonlyTextFieldInput-1b5e6b00.js.map → ReadonlyTextFieldInput-4583f049.js.map} +1 -1
  107. package/amd/SelectMenuItem-2412de22.js +60 -0
  108. package/amd/SelectMenuItem-2412de22.js.map +1 -0
  109. package/amd/SelectMultiple-d1b4cc77.js +485 -0
  110. package/amd/SelectMultiple-d1b4cc77.js.map +1 -0
  111. package/amd/SelectSingle-01b25bff.js +354 -0
  112. package/amd/SelectSingle-01b25bff.js.map +1 -0
  113. package/amd/Skeleton-d0383726.js +39 -0
  114. package/amd/{Skeleton-d9b61f2e.js.map → Skeleton-d0383726.js.map} +1 -1
  115. package/amd/Spacer-165e178f.js +16 -0
  116. package/amd/{Spacer-d5dceece.js.map → Spacer-165e178f.js.map} +1 -1
  117. package/amd/SplitMenuButton-df0ee526.js +184 -0
  118. package/amd/{SplitMenuButton-4247ca7c.js.map → SplitMenuButton-df0ee526.js.map} +1 -1
  119. package/amd/Text-de291c3f.js +100 -0
  120. package/amd/{Text-2d54c9f7.js.map → Text-de291c3f.js.map} +1 -1
  121. package/amd/TextArea-25fa8171.js +133 -0
  122. package/amd/{TextArea-2fdab6db.js.map → TextArea-25fa8171.js.map} +1 -1
  123. package/amd/TextAreaAutosize-370b4a47.js +161 -0
  124. package/amd/{TextAreaAutosize-50b8719d.js.map → TextAreaAutosize-370b4a47.js.map} +1 -1
  125. package/amd/TextFieldInput-312fb211.js +172 -0
  126. package/{cjs/TextFieldInput-7c9ea713.js.map → amd/TextFieldInput-312fb211.js.map} +1 -1
  127. package/amd/UNSAFE_AspectRatio.css +2 -1
  128. package/amd/UNSAFE_AspectRatio.js +79 -1
  129. package/amd/UNSAFE_AspectRatio.js.map +1 -1
  130. package/amd/UNSAFE_Avatar.css +9 -8
  131. package/amd/UNSAFE_Avatar.js +106 -1
  132. package/amd/UNSAFE_Avatar.js.map +1 -1
  133. package/amd/UNSAFE_Badge.css +14 -13
  134. package/amd/UNSAFE_Badge.js +11 -1
  135. package/amd/UNSAFE_Badge.js.map +1 -1
  136. package/amd/UNSAFE_BaseButton.css +16 -15
  137. package/amd/UNSAFE_BaseButton.js +11 -1
  138. package/amd/UNSAFE_BaseButton.js.map +1 -1
  139. package/amd/UNSAFE_Button.css +9 -8
  140. package/amd/UNSAFE_Button.js +12 -1
  141. package/amd/UNSAFE_Button.js.map +1 -1
  142. package/amd/UNSAFE_Center.js +28 -1
  143. package/amd/UNSAFE_Center.js.map +1 -1
  144. package/amd/UNSAFE_Chip.css +8 -7
  145. package/amd/UNSAFE_Chip.js +11 -1
  146. package/amd/UNSAFE_Chip.js.map +1 -1
  147. package/amd/UNSAFE_Collapsible.css +10 -9
  148. package/amd/UNSAFE_Collapsible.js +226 -1
  149. package/amd/UNSAFE_Collapsible.js.map +1 -1
  150. package/amd/UNSAFE_Collection.js +13 -1
  151. package/amd/UNSAFE_Collection.js.map +1 -1
  152. package/amd/UNSAFE_ComponentMessage.css +4 -3
  153. package/amd/UNSAFE_ComponentMessage.js +12 -1
  154. package/amd/UNSAFE_ComponentMessage.js.map +1 -1
  155. package/amd/UNSAFE_Divider.css +2 -1
  156. package/amd/UNSAFE_Divider.js +11 -1
  157. package/amd/UNSAFE_Divider.js.map +1 -1
  158. package/amd/UNSAFE_EmptyList.js +16 -1
  159. package/amd/UNSAFE_EmptyList.js.map +1 -1
  160. package/amd/UNSAFE_Environment.js +84 -1
  161. package/amd/UNSAFE_Environment.js.map +1 -1
  162. package/amd/UNSAFE_FilePicker.css +7 -6
  163. package/amd/UNSAFE_FilePicker.js +11 -1
  164. package/amd/UNSAFE_FilePicker.js.map +1 -1
  165. package/amd/UNSAFE_Flex.css +3 -2
  166. package/amd/UNSAFE_Flex.js +11 -1
  167. package/amd/UNSAFE_Flex.js.map +1 -1
  168. package/amd/UNSAFE_Floating.js +11 -1
  169. package/amd/UNSAFE_Floating.js.map +1 -1
  170. package/amd/UNSAFE_FocusTrap.css +4 -3
  171. package/amd/UNSAFE_FocusTrap.js +17 -1
  172. package/amd/UNSAFE_FocusTrap.js.map +1 -1
  173. package/amd/UNSAFE_Grid.css +2 -1
  174. package/amd/UNSAFE_Grid.js +37 -1
  175. package/amd/UNSAFE_Grid.js.map +1 -1
  176. package/amd/UNSAFE_Heading.css +10 -9
  177. package/amd/UNSAFE_Heading.js +13 -1
  178. package/amd/UNSAFE_Heading.js.map +1 -1
  179. package/amd/UNSAFE_HiddenAccessible.css +2 -1
  180. package/amd/UNSAFE_HiddenAccessible.js +17 -1
  181. package/amd/UNSAFE_HiddenAccessible.js.map +1 -1
  182. package/amd/UNSAFE_HighlightText.css +2 -1
  183. package/amd/UNSAFE_HighlightText.js +17 -1
  184. package/amd/UNSAFE_HighlightText.js.map +1 -1
  185. package/amd/UNSAFE_Icon.css +22 -21
  186. package/amd/UNSAFE_Icon.js +28 -1
  187. package/amd/UNSAFE_Icon.js.map +1 -1
  188. package/amd/UNSAFE_Icons.js +26 -1
  189. package/amd/UNSAFE_Icons.js.map +1 -1
  190. package/amd/UNSAFE_Indexer.css +9 -8
  191. package/amd/UNSAFE_Indexer.js +18 -1
  192. package/amd/UNSAFE_Indexer.js.map +1 -1
  193. package/amd/UNSAFE_InputPassword.css +2 -1
  194. package/amd/UNSAFE_InputPassword.js +139 -1
  195. package/amd/UNSAFE_InputPassword.js.map +1 -1
  196. package/amd/UNSAFE_InputText.css +2 -1
  197. package/amd/UNSAFE_InputText.js +114 -1
  198. package/amd/UNSAFE_InputText.js.map +1 -1
  199. package/amd/UNSAFE_Label.css +14 -13
  200. package/amd/UNSAFE_Label.js +77 -1
  201. package/amd/UNSAFE_Label.js.map +1 -1
  202. package/amd/UNSAFE_LabelValueLayout.css +10 -9
  203. package/amd/UNSAFE_LabelValueLayout.js +85 -1
  204. package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
  205. package/amd/UNSAFE_Layer.js +66 -1
  206. package/amd/UNSAFE_Layer.js.map +1 -1
  207. package/amd/UNSAFE_Link.css +6 -5
  208. package/amd/UNSAFE_Link.js +11 -1
  209. package/amd/UNSAFE_Link.js.map +1 -1
  210. package/amd/UNSAFE_ListItemLayout.css +11 -10
  211. package/amd/UNSAFE_ListItemLayout.js +13 -1
  212. package/amd/UNSAFE_ListItemLayout.js.map +1 -1
  213. package/amd/UNSAFE_ListView.js +17 -1
  214. package/amd/UNSAFE_ListView.js.map +1 -1
  215. package/amd/UNSAFE_LiveRegion.css +2 -1
  216. package/amd/UNSAFE_LiveRegion.js +60 -1
  217. package/amd/UNSAFE_LiveRegion.js.map +1 -1
  218. package/amd/UNSAFE_LoadMoreCollection.js +17 -1
  219. package/amd/UNSAFE_LoadMoreCollection.js.map +1 -1
  220. package/amd/UNSAFE_Menu.css +20 -19
  221. package/amd/UNSAFE_Menu.js +13 -1
  222. package/amd/UNSAFE_Menu.js.map +1 -1
  223. package/amd/UNSAFE_MessageBanner.js +183 -1
  224. package/amd/UNSAFE_MessageBanner.js.map +1 -1
  225. package/amd/UNSAFE_MessageToast.css +2 -1
  226. package/amd/UNSAFE_MessageToast.js +17 -1
  227. package/amd/UNSAFE_MessageToast.js.map +1 -1
  228. package/amd/UNSAFE_MeterBar.css +46 -45
  229. package/amd/UNSAFE_MeterBar.js +327 -1
  230. package/amd/UNSAFE_MeterBar.js.map +1 -1
  231. package/amd/UNSAFE_MeterCircle.css +48 -47
  232. package/amd/UNSAFE_MeterCircle.js +11 -1
  233. package/amd/UNSAFE_MeterCircle.js.map +1 -1
  234. package/amd/UNSAFE_Modal.css +6 -5
  235. package/amd/UNSAFE_Modal.js +11 -1
  236. package/amd/UNSAFE_Modal.js.map +1 -1
  237. package/amd/UNSAFE_NumberInputText.js +17 -1
  238. package/amd/UNSAFE_NumberInputText.js.map +1 -1
  239. package/amd/UNSAFE_PrefixSuffix.css +9 -8
  240. package/amd/UNSAFE_PrefixSuffix.js +50 -1
  241. package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
  242. package/amd/UNSAFE_ProgressBar.css +7 -6
  243. package/amd/UNSAFE_ProgressBar.js +90 -1
  244. package/amd/UNSAFE_ProgressBar.js.map +1 -1
  245. package/amd/UNSAFE_ProgressCircle.css +7 -6
  246. package/amd/UNSAFE_ProgressCircle.js +85 -1
  247. package/amd/UNSAFE_ProgressCircle.js.map +1 -1
  248. package/amd/UNSAFE_RatingGauge.css +23 -22
  249. package/amd/UNSAFE_RatingGauge.js +358 -1
  250. package/amd/UNSAFE_RatingGauge.js.map +1 -1
  251. package/amd/UNSAFE_SelectMultiple.css +2 -1
  252. package/amd/UNSAFE_SelectMultiple.js +17 -1
  253. package/amd/UNSAFE_SelectMultiple.js.map +1 -1
  254. package/amd/UNSAFE_SelectSingle.js +17 -1
  255. package/amd/UNSAFE_SelectSingle.js.map +1 -1
  256. package/amd/UNSAFE_Selector.css +6 -5
  257. package/amd/UNSAFE_Selector.js +107 -1
  258. package/amd/UNSAFE_Selector.js.map +1 -1
  259. package/amd/UNSAFE_Skeleton.css +2 -1
  260. package/amd/UNSAFE_Skeleton.js +17 -1
  261. package/amd/UNSAFE_Skeleton.js.map +1 -1
  262. package/amd/UNSAFE_Spacer.js +11 -1
  263. package/amd/UNSAFE_Spacer.js.map +1 -1
  264. package/amd/UNSAFE_SplitMenuButton.css +6 -5
  265. package/amd/UNSAFE_SplitMenuButton.js +11 -1
  266. package/amd/UNSAFE_SplitMenuButton.js.map +1 -1
  267. package/amd/UNSAFE_Text.css +26 -25
  268. package/amd/UNSAFE_Text.js +11 -1
  269. package/amd/UNSAFE_Text.js.map +1 -1
  270. package/amd/UNSAFE_TextArea.css +4 -3
  271. package/amd/UNSAFE_TextArea.js +12 -1
  272. package/amd/UNSAFE_TextArea.js.map +1 -1
  273. package/amd/UNSAFE_TextAreaAutosize.js +11 -1
  274. package/amd/UNSAFE_TextAreaAutosize.js.map +1 -1
  275. package/amd/UNSAFE_TextField.css +63 -62
  276. package/amd/UNSAFE_TextField.js +190 -1
  277. package/amd/UNSAFE_TextField.js.map +1 -1
  278. package/amd/UNSAFE_ThemedIcons.js +26 -1
  279. package/amd/UNSAFE_ThemedIcons.js.map +1 -1
  280. package/amd/UNSAFE_UserAssistance.css +12 -11
  281. package/amd/UNSAFE_UserAssistance.js +85 -1
  282. package/amd/UNSAFE_UserAssistance.js.map +1 -1
  283. package/amd/UNSAFE_View.js +29 -1
  284. package/amd/UNSAFE_View.js.map +1 -1
  285. package/amd/UNSAFE_VirtualizedListView.js +17 -1
  286. package/amd/UNSAFE_VirtualizedListView.js.map +1 -1
  287. package/amd/UNSAFE_WindowOverlay.js +20 -1
  288. package/amd/UNSAFE_WindowOverlay.js.map +1 -1
  289. package/amd/VirtualizedCollection-63815bce.js +181 -0
  290. package/amd/{VirtualizedCollection-91797029.js.map → VirtualizedCollection-63815bce.js.map} +1 -1
  291. package/amd/VirtualizedListView-fb2a18dd.js +16 -0
  292. package/amd/{VirtualizedListView-6decbb33.js.map → VirtualizedListView-fb2a18dd.js.map} +1 -1
  293. package/amd/_curry1-645b9927.js +70 -0
  294. package/amd/_curry1-645b9927.js.map +1 -0
  295. package/amd/_curry2-93924f19.js +42 -0
  296. package/amd/_curry2-93924f19.js.map +1 -0
  297. package/amd/_curry3-4cc6f6ba.js +60 -0
  298. package/amd/_curry3-4cc6f6ba.js.map +1 -0
  299. package/amd/_has-cce283ad.js +14 -0
  300. package/amd/_has-cce283ad.js.map +1 -0
  301. package/amd/classNames-027de734.js +19 -0
  302. package/amd/{classNames-429bf434.js.map → classNames-027de734.js.map} +1 -1
  303. package/amd/clientHints-361cde40.js +156 -0
  304. package/amd/{clientHints-9d985ef6.js.map → clientHints-361cde40.js.map} +1 -1
  305. package/amd/flexbox-4dd0bbb4.js +41 -0
  306. package/amd/{flexbox-aaa40e19.js.map → flexbox-4dd0bbb4.js.map} +1 -1
  307. package/amd/flexitem-7363d040.js +41 -0
  308. package/amd/{flexitem-d85d1561.js.map → flexitem-7363d040.js.map} +1 -1
  309. package/amd/hooks/PRIVATE_useCollectionFocusRing.js +72 -1
  310. package/amd/hooks/PRIVATE_useCollectionFocusRing.js.map +1 -1
  311. package/amd/hooks/PRIVATE_useCurrentKey.js +68 -1
  312. package/amd/hooks/PRIVATE_useCurrentKey.js.map +1 -1
  313. package/amd/hooks/PRIVATE_useDvtMeterEvents.js +162 -1
  314. package/amd/hooks/PRIVATE_useDvtMeterEvents.js.map +1 -1
  315. package/amd/hooks/PRIVATE_useItemAction.js +62 -1
  316. package/amd/hooks/PRIVATE_useItemAction.js.map +1 -1
  317. package/amd/hooks/PRIVATE_useMessagesFocusManager.js +351 -1
  318. package/amd/hooks/PRIVATE_useMessagesFocusManager.js.map +1 -1
  319. package/amd/hooks/PRIVATE_useSelection.js +173 -1
  320. package/amd/hooks/PRIVATE_useSelection.js.map +1 -1
  321. package/amd/hooks/PRIVATE_useSingleSelection.js +11 -1
  322. package/amd/hooks/PRIVATE_useSingleSelection.js.map +1 -1
  323. package/amd/hooks/PRIVATE_useTabbableModeSet.js +85 -1
  324. package/amd/hooks/PRIVATE_useTabbableModeSet.js.map +1 -1
  325. package/amd/hooks/UNSAFE_useActionable.js +39 -1
  326. package/amd/hooks/UNSAFE_useActionable.js.map +1 -1
  327. package/amd/hooks/UNSAFE_useActive.js +83 -1
  328. package/amd/hooks/UNSAFE_useActive.js.map +1 -1
  329. package/amd/hooks/UNSAFE_useAnimation.js +11 -1
  330. package/amd/hooks/UNSAFE_useAnimation.js.map +1 -1
  331. package/amd/hooks/UNSAFE_useBreakpointValues.js +25 -1
  332. package/amd/hooks/UNSAFE_useBreakpointValues.js.map +1 -1
  333. package/amd/hooks/UNSAFE_useBreakpoints.js +52 -1
  334. package/amd/hooks/UNSAFE_useBreakpoints.js.map +1 -1
  335. package/amd/hooks/UNSAFE_useClearIcon.js +22 -1
  336. package/amd/hooks/UNSAFE_useClearIcon.js.map +1 -1
  337. package/amd/hooks/UNSAFE_useColorScheme.js +28 -1
  338. package/amd/hooks/UNSAFE_useColorScheme.js.map +1 -1
  339. package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +23 -1
  340. package/amd/hooks/UNSAFE_useContainerBreakpointValues.js.map +1 -1
  341. package/amd/hooks/UNSAFE_useContainerBreakpoints.js +45 -1
  342. package/amd/hooks/UNSAFE_useContainerBreakpoints.js.map +1 -1
  343. package/amd/hooks/UNSAFE_useCurrentValueReducer.js +60 -1
  344. package/amd/hooks/UNSAFE_useCurrentValueReducer.js.map +1 -1
  345. package/amd/hooks/UNSAFE_useDebounce.js +46 -1
  346. package/amd/hooks/UNSAFE_useDebounce.js.map +1 -1
  347. package/amd/hooks/UNSAFE_useFloating.js +20 -1
  348. package/amd/hooks/UNSAFE_useFloating.js.map +1 -1
  349. package/amd/hooks/UNSAFE_useFocus.js +35 -1
  350. package/amd/hooks/UNSAFE_useFocus.js.map +1 -1
  351. package/amd/hooks/UNSAFE_useFocusWithin.js +11 -1
  352. package/amd/hooks/UNSAFE_useFocusWithin.js.map +1 -1
  353. package/amd/hooks/UNSAFE_useFocusableTextField.js +68 -1
  354. package/amd/hooks/UNSAFE_useFocusableTextField.js.map +1 -1
  355. package/amd/hooks/UNSAFE_useFormContext.js +38 -1
  356. package/amd/hooks/UNSAFE_useFormContext.js.map +1 -1
  357. package/amd/hooks/UNSAFE_useFormFieldContext.js +31 -1
  358. package/amd/hooks/UNSAFE_useFormFieldContext.js.map +1 -1
  359. package/amd/hooks/UNSAFE_useFormVariantContext.js +25 -1
  360. package/amd/hooks/UNSAFE_useFormVariantContext.js.map +1 -1
  361. package/amd/hooks/UNSAFE_useHover.js +64 -1
  362. package/amd/hooks/UNSAFE_useHover.js.map +1 -1
  363. package/amd/hooks/UNSAFE_useId.js +31 -1
  364. package/amd/hooks/UNSAFE_useId.js.map +1 -1
  365. package/amd/hooks/UNSAFE_useLengthFilter.js +56 -1
  366. package/amd/hooks/UNSAFE_useLengthFilter.js.map +1 -1
  367. package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js +39 -1
  368. package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js.map +1 -1
  369. package/amd/hooks/UNSAFE_useLongPress.js +69 -1
  370. package/amd/hooks/UNSAFE_useLongPress.js.map +1 -1
  371. package/amd/hooks/UNSAFE_useMessagesContext.js +47 -1
  372. package/amd/hooks/UNSAFE_useMessagesContext.js.map +1 -1
  373. package/amd/hooks/UNSAFE_useOutsideClick.js +54 -1
  374. package/amd/hooks/UNSAFE_useOutsideClick.js.map +1 -1
  375. package/amd/hooks/UNSAFE_usePan.js +104 -1
  376. package/amd/hooks/UNSAFE_usePan.js.map +1 -1
  377. package/amd/hooks/UNSAFE_usePrefixSuffix.js +59 -1
  378. package/amd/hooks/UNSAFE_usePrefixSuffix.js.map +1 -1
  379. package/amd/hooks/UNSAFE_usePress.js +153 -1
  380. package/amd/hooks/UNSAFE_usePress.js.map +1 -1
  381. package/amd/hooks/UNSAFE_useScale.js +28 -1
  382. package/amd/hooks/UNSAFE_useScale.js.map +1 -1
  383. package/amd/hooks/UNSAFE_useSwipe.js +94 -1
  384. package/amd/hooks/UNSAFE_useSwipe.js.map +1 -1
  385. package/amd/hooks/UNSAFE_useTabbableMode.js +47 -1
  386. package/amd/hooks/UNSAFE_useTabbableMode.js.map +1 -1
  387. package/amd/hooks/UNSAFE_useTap.js +75 -1
  388. package/amd/hooks/UNSAFE_useTap.js.map +1 -1
  389. package/amd/hooks/UNSAFE_useTextField.js +97 -1
  390. package/amd/hooks/UNSAFE_useTextField.js.map +1 -1
  391. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +91 -1
  392. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js.map +1 -1
  393. package/amd/hooks/UNSAFE_useTheme.js +28 -1
  394. package/amd/hooks/UNSAFE_useTheme.js.map +1 -1
  395. package/amd/hooks/UNSAFE_useTimer.js +62 -1
  396. package/amd/hooks/UNSAFE_useTimer.js.map +1 -1
  397. package/amd/hooks/UNSAFE_useToggle.js +35 -1
  398. package/amd/hooks/UNSAFE_useToggle.js.map +1 -1
  399. package/amd/hooks/UNSAFE_useTooltip.css +5 -4
  400. package/amd/hooks/UNSAFE_useTooltip.js +350 -1
  401. package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
  402. package/amd/hooks/UNSAFE_useTouch.js +35 -1
  403. package/amd/hooks/UNSAFE_useTouch.js.map +1 -1
  404. package/amd/hooks/UNSAFE_useTranslationBundle.js +38 -1
  405. package/amd/hooks/UNSAFE_useTranslationBundle.js.map +1 -1
  406. package/amd/hooks/UNSAFE_useUncontrolledState.js +72 -1
  407. package/amd/hooks/UNSAFE_useUncontrolledState.js.map +1 -1
  408. package/amd/hooks/UNSAFE_useUser.js +28 -1
  409. package/amd/hooks/UNSAFE_useUser.js.map +1 -1
  410. package/amd/hooks/UNSAFE_useViewportIntersect.js +70 -1
  411. package/amd/hooks/UNSAFE_useViewportIntersect.js.map +1 -1
  412. package/amd/index-5920700b.js +76 -0
  413. package/amd/{index-6f29250e.js.map → index-5920700b.js.map} +1 -1
  414. package/amd/index-e9199379.js +1661 -0
  415. package/amd/index-e9199379.js.map +1 -0
  416. package/amd/index-f54bad63.js +64 -0
  417. package/amd/index-f54bad63.js.map +1 -0
  418. package/amd/keys-a09501ab.js +105 -0
  419. package/amd/{keys-83d1523f.js.map → keys-a09501ab.js.map} +1 -1
  420. package/amd/listViewSelectionTests-70a5b510.js +1385 -0
  421. package/amd/listViewSelectionTests-70a5b510.js.map +1 -0
  422. package/amd/listViewTabbableModeTests-a91e8816.js +112 -0
  423. package/amd/listViewTabbableModeTests-a91e8816.js.map +1 -0
  424. package/amd/listViewTestFixtures-98d95a1d.js +46 -0
  425. package/amd/listViewTestFixtures-98d95a1d.js.map +1 -0
  426. package/amd/menuTestsUtils-6da02810.js +41 -0
  427. package/amd/{menuTestsUtils-31d41516.js.map → menuTestsUtils-6da02810.js.map} +1 -1
  428. package/amd/resources/nls/ar/bundle.js +57 -1
  429. package/amd/resources/nls/ar/bundle.js.map +1 -1
  430. package/amd/resources/nls/ar-XB/bundle.js +57 -1
  431. package/amd/resources/nls/ar-XB/bundle.js.map +1 -1
  432. package/amd/resources/nls/bg/bundle.js +57 -1
  433. package/amd/resources/nls/bg/bundle.js.map +1 -1
  434. package/amd/resources/nls/bs/bundle.js +57 -1
  435. package/amd/resources/nls/bs/bundle.js.map +1 -1
  436. package/amd/resources/nls/bs-Cyrl/bundle.js +57 -1
  437. package/amd/resources/nls/bs-Cyrl/bundle.js.map +1 -1
  438. package/amd/resources/nls/bundle.js +57 -1
  439. package/amd/resources/nls/bundle.js.map +1 -1
  440. package/amd/resources/nls/cs/bundle.js +57 -1
  441. package/amd/resources/nls/cs/bundle.js.map +1 -1
  442. package/amd/resources/nls/da/bundle.js +57 -1
  443. package/amd/resources/nls/da/bundle.js.map +1 -1
  444. package/amd/resources/nls/de/bundle.js +57 -1
  445. package/amd/resources/nls/de/bundle.js.map +1 -1
  446. package/amd/resources/nls/el/bundle.js +57 -1
  447. package/amd/resources/nls/el/bundle.js.map +1 -1
  448. package/amd/resources/nls/en/bundle.js +57 -1
  449. package/amd/resources/nls/en/bundle.js.map +1 -1
  450. package/amd/resources/nls/en-XA/bundle.js +57 -1
  451. package/amd/resources/nls/en-XA/bundle.js.map +1 -1
  452. package/amd/resources/nls/en-XC/bundle.js +77 -1
  453. package/amd/resources/nls/en-XC/bundle.js.map +1 -1
  454. package/amd/resources/nls/es/bundle.js +57 -1
  455. package/amd/resources/nls/es/bundle.js.map +1 -1
  456. package/amd/resources/nls/et/bundle.js +57 -1
  457. package/amd/resources/nls/et/bundle.js.map +1 -1
  458. package/amd/resources/nls/fi/bundle.js +57 -1
  459. package/amd/resources/nls/fi/bundle.js.map +1 -1
  460. package/amd/resources/nls/fr/bundle.js +57 -1
  461. package/amd/resources/nls/fr/bundle.js.map +1 -1
  462. package/amd/resources/nls/fr-CA/bundle.js +57 -1
  463. package/amd/resources/nls/fr-CA/bundle.js.map +1 -1
  464. package/amd/resources/nls/he/bundle.js +57 -1
  465. package/amd/resources/nls/he/bundle.js.map +1 -1
  466. package/amd/resources/nls/hr/bundle.js +57 -1
  467. package/amd/resources/nls/hr/bundle.js.map +1 -1
  468. package/amd/resources/nls/hu/bundle.js +57 -1
  469. package/amd/resources/nls/hu/bundle.js.map +1 -1
  470. package/amd/resources/nls/is/bundle.js +57 -1
  471. package/amd/resources/nls/is/bundle.js.map +1 -1
  472. package/amd/resources/nls/it/bundle.js +57 -1
  473. package/amd/resources/nls/it/bundle.js.map +1 -1
  474. package/amd/resources/nls/ja/bundle.js +57 -1
  475. package/amd/resources/nls/ja/bundle.js.map +1 -1
  476. package/amd/resources/nls/ko/bundle.js +57 -1
  477. package/amd/resources/nls/ko/bundle.js.map +1 -1
  478. package/amd/resources/nls/lt/bundle.js +57 -1
  479. package/amd/resources/nls/lt/bundle.js.map +1 -1
  480. package/amd/resources/nls/lv/bundle.js +57 -1
  481. package/amd/resources/nls/lv/bundle.js.map +1 -1
  482. package/amd/resources/nls/ms/bundle.js +57 -1
  483. package/amd/resources/nls/ms/bundle.js.map +1 -1
  484. package/amd/resources/nls/nl/bundle.js +57 -1
  485. package/amd/resources/nls/nl/bundle.js.map +1 -1
  486. package/amd/resources/nls/no/bundle.js +57 -1
  487. package/amd/resources/nls/no/bundle.js.map +1 -1
  488. package/amd/resources/nls/pl/bundle.js +57 -1
  489. package/amd/resources/nls/pl/bundle.js.map +1 -1
  490. package/amd/resources/nls/pt/bundle.js +57 -1
  491. package/amd/resources/nls/pt/bundle.js.map +1 -1
  492. package/amd/resources/nls/pt-PT/bundle.js +57 -1
  493. package/amd/resources/nls/pt-PT/bundle.js.map +1 -1
  494. package/amd/resources/nls/ro/bundle.js +57 -1
  495. package/amd/resources/nls/ro/bundle.js.map +1 -1
  496. package/amd/resources/nls/ru/bundle.js +57 -1
  497. package/amd/resources/nls/ru/bundle.js.map +1 -1
  498. package/amd/resources/nls/sk/bundle.js +57 -1
  499. package/amd/resources/nls/sk/bundle.js.map +1 -1
  500. package/amd/resources/nls/sl/bundle.js +57 -1
  501. package/amd/resources/nls/sl/bundle.js.map +1 -1
  502. package/amd/resources/nls/sr/bundle.js +57 -1
  503. package/amd/resources/nls/sr/bundle.js.map +1 -1
  504. package/amd/resources/nls/sr-Latn/bundle.js +57 -1
  505. package/amd/resources/nls/sr-Latn/bundle.js.map +1 -1
  506. package/amd/resources/nls/supportedLocales.js +57 -1
  507. package/amd/resources/nls/supportedLocales.js.map +1 -1
  508. package/amd/resources/nls/sv/bundle.js +57 -1
  509. package/amd/resources/nls/sv/bundle.js.map +1 -1
  510. package/amd/resources/nls/th/bundle.js +57 -1
  511. package/amd/resources/nls/th/bundle.js.map +1 -1
  512. package/amd/resources/nls/tr/bundle.js +57 -1
  513. package/amd/resources/nls/tr/bundle.js.map +1 -1
  514. package/amd/resources/nls/uk/bundle.js +57 -1
  515. package/amd/resources/nls/uk/bundle.js.map +1 -1
  516. package/amd/resources/nls/vi/bundle.js +57 -1
  517. package/amd/resources/nls/vi/bundle.js.map +1 -1
  518. package/amd/resources/nls/zh-Hans/bundle.js +57 -1
  519. package/amd/resources/nls/zh-Hans/bundle.js.map +1 -1
  520. package/amd/resources/nls/zh-Hant/bundle.js +57 -1
  521. package/amd/resources/nls/zh-Hant/bundle.js.map +1 -1
  522. package/amd/stringUtils-9311a716.js +92 -0
  523. package/amd/{stringUtils-432c5155.js.map → stringUtils-9311a716.js.map} +1 -1
  524. package/amd/testHelpers-9267074b.js +37 -0
  525. package/amd/{testHelpers-ea3899da.js.map → testHelpers-9267074b.js.map} +1 -1
  526. package/amd/translationBundle.js +73 -1
  527. package/amd/translationBundle.js.map +1 -1
  528. package/amd/tslib.es6-71b1ba5b.js +437 -0
  529. package/amd/tslib.es6-71b1ba5b.js.map +1 -0
  530. package/amd/useAnimation-2f572e0c.js +247 -0
  531. package/amd/{useAnimation-5d80cd95.js.map → useAnimation-2f572e0c.js.map} +1 -1
  532. package/amd/useFocusWithin-a88e3e32.js +50 -0
  533. package/amd/{useFocusWithin-0a53949e.js.map → useFocusWithin-a88e3e32.js.map} +1 -1
  534. package/amd/useSingleSelection-7081cc84.js +43 -0
  535. package/amd/{useSingleSelection-00ac27f8.js.map → useSingleSelection-7081cc84.js.map} +1 -1
  536. package/amd/utils/PRIVATE_clientHints.js +11 -1
  537. package/amd/utils/PRIVATE_clientHints.js.map +1 -1
  538. package/amd/utils/PRIVATE_collectionUtils.js +83 -1
  539. package/amd/utils/PRIVATE_collectionUtils.js.map +1 -1
  540. package/amd/utils/PRIVATE_dvtTestUtils.js +77 -1
  541. package/amd/utils/PRIVATE_dvtTestUtils.js.map +1 -1
  542. package/amd/utils/PRIVATE_floatingUtils.js +70 -1
  543. package/amd/utils/PRIVATE_floatingUtils.js.map +1 -1
  544. package/amd/utils/PRIVATE_meterUtils.js +340 -1
  545. package/amd/utils/PRIVATE_meterUtils.js.map +1 -1
  546. package/amd/utils/PRIVATE_refUtils.js +38 -1
  547. package/amd/utils/PRIVATE_refUtils.js.map +1 -1
  548. package/amd/utils/PRIVATE_tabbableUtils.js +669 -1
  549. package/amd/utils/PRIVATE_tabbableUtils.js.map +1 -1
  550. package/amd/utils/PRIVATE_timer.js +101 -1
  551. package/amd/utils/PRIVATE_timer.js.map +1 -1
  552. package/amd/utils/UNSAFE_arrayUtils.js +28 -1
  553. package/amd/utils/UNSAFE_arrayUtils.js.map +1 -1
  554. package/amd/utils/UNSAFE_attributeUtils.js +13 -1
  555. package/amd/utils/UNSAFE_attributeUtils.js.map +1 -1
  556. package/amd/utils/UNSAFE_classNames.js +11 -1
  557. package/amd/utils/UNSAFE_classNames.js.map +1 -1
  558. package/amd/utils/UNSAFE_componentUtils.js +32 -1
  559. package/amd/utils/UNSAFE_componentUtils.js.map +1 -1
  560. package/amd/utils/UNSAFE_dataProvider.js +21 -1
  561. package/amd/utils/UNSAFE_dataProvider.js.map +1 -1
  562. package/amd/utils/UNSAFE_filePickerUtils.js +37 -1
  563. package/amd/utils/UNSAFE_filePickerUtils.js.map +1 -1
  564. package/amd/utils/UNSAFE_getLocale.js +33 -1
  565. package/amd/utils/UNSAFE_getLocale.js.map +1 -1
  566. package/amd/utils/UNSAFE_interpolations/aria.js +22 -1
  567. package/amd/utils/UNSAFE_interpolations/aria.js.map +1 -1
  568. package/amd/utils/UNSAFE_interpolations/borders.js +42 -1
  569. package/amd/utils/UNSAFE_interpolations/borders.js.map +1 -1
  570. package/amd/utils/UNSAFE_interpolations/boxalignment.css +16 -15
  571. package/amd/utils/UNSAFE_interpolations/boxalignment.js +62 -1
  572. package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  573. package/amd/utils/UNSAFE_interpolations/colors.js +22 -1
  574. package/amd/utils/UNSAFE_interpolations/colors.js.map +1 -1
  575. package/amd/utils/UNSAFE_interpolations/dimensions.js +89 -1
  576. package/amd/utils/UNSAFE_interpolations/dimensions.js.map +1 -1
  577. package/amd/utils/UNSAFE_interpolations/flexbox.css +8 -7
  578. package/amd/utils/UNSAFE_interpolations/flexbox.js +14 -1
  579. package/amd/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
  580. package/amd/utils/UNSAFE_interpolations/flexitem.css +8 -7
  581. package/amd/utils/UNSAFE_interpolations/flexitem.js +13 -1
  582. package/amd/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
  583. package/amd/utils/UNSAFE_interpolations/grid.js +22 -1
  584. package/amd/utils/UNSAFE_interpolations/grid.js.map +1 -1
  585. package/amd/utils/UNSAFE_interpolations/griditem.js +17 -1
  586. package/amd/utils/UNSAFE_interpolations/griditem.js.map +1 -1
  587. package/amd/utils/UNSAFE_interpolations/padding.js +50 -1
  588. package/amd/utils/UNSAFE_interpolations/padding.js.map +1 -1
  589. package/amd/utils/UNSAFE_interpolations/text.css +4 -3
  590. package/amd/utils/UNSAFE_interpolations/text.js +29 -1
  591. package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
  592. package/amd/utils/UNSAFE_keys.js +80 -1
  593. package/amd/utils/UNSAFE_keys.js.map +1 -1
  594. package/amd/utils/UNSAFE_lengthFilter.js +71 -1
  595. package/amd/utils/UNSAFE_lengthFilter.js.map +1 -1
  596. package/amd/utils/UNSAFE_logger.js +64 -1
  597. package/amd/utils/UNSAFE_logger.js.map +1 -1
  598. package/amd/utils/UNSAFE_matchTranslationBundle.js +57 -1
  599. package/amd/utils/UNSAFE_matchTranslationBundle.js.map +1 -1
  600. package/amd/utils/UNSAFE_mergeInterpolations.js +111 -1
  601. package/amd/utils/UNSAFE_mergeInterpolations.js.map +1 -1
  602. package/amd/utils/UNSAFE_mergeProps.js +91 -1
  603. package/amd/utils/UNSAFE_mergeProps.js.map +1 -1
  604. package/amd/utils/UNSAFE_meterTypes.js +13 -1
  605. package/amd/utils/UNSAFE_meterTypes.js.map +1 -1
  606. package/amd/utils/UNSAFE_roles.js +107 -1
  607. package/amd/utils/UNSAFE_roles.js.map +1 -1
  608. package/amd/utils/UNSAFE_selectUtils.js +13 -1
  609. package/amd/utils/UNSAFE_selectUtils.js.map +1 -1
  610. package/amd/utils/UNSAFE_size.js +53 -1
  611. package/amd/utils/UNSAFE_size.js.map +1 -1
  612. package/amd/utils/UNSAFE_soundUtils.js +98 -1
  613. package/amd/utils/UNSAFE_soundUtils.js.map +1 -1
  614. package/amd/utils/UNSAFE_stringUtils.js +21 -1
  615. package/amd/utils/UNSAFE_stringUtils.js.map +1 -1
  616. package/amd/utils/UNSAFE_typeUtils.js +7 -1
  617. package/amd/utils/UNSAFE_typeUtils.js.map +1 -1
  618. package/amd/utils/UNSAFE_units.js +22 -1
  619. package/amd/utils/UNSAFE_units.js.map +1 -1
  620. package/amd/utils/UNSAFE_valueUpdateDetail.js +7 -1
  621. package/amd/utils/UNSAFE_valueUpdateDetail.js.map +1 -1
  622. package/cjs/{Badge-1e0540c9.js → Badge-a39fc1b1.js} +16 -16
  623. package/{amd/Badge-d9f13bcf.js.map → cjs/Badge-a39fc1b1.js.map} +1 -1
  624. package/cjs/{BaseButton-581a9d1a.js → BaseButton-15adcc04.js} +20 -20
  625. package/cjs/{BaseButton-581a9d1a.js.map → BaseButton-15adcc04.js.map} +1 -1
  626. package/cjs/{Button-eaff99de.js → Button-6d645302.js} +13 -13
  627. package/{amd/Button-11c23c7a.js.map → cjs/Button-6d645302.js.map} +1 -1
  628. package/cjs/{Chip-b83161eb.js → Chip-a6ecbefc.js} +10 -10
  629. package/{amd/Chip-e3d549ba.js.map → cjs/Chip-a6ecbefc.js.map} +1 -1
  630. package/cjs/{ClearIcon-06f34113.js → ClearIcon-f04de939.js} +3 -3
  631. package/cjs/{ClearIcon-06f34113.js.map → ClearIcon-f04de939.js.map} +1 -1
  632. package/cjs/{Collection-a47275c8.js → Collection-134eaf28.js} +2 -2
  633. package/cjs/{Collection-a47275c8.js.map → Collection-134eaf28.js.map} +1 -1
  634. package/cjs/{ComponentMessage-fb5ce132.js → ComponentMessage-d765b28b.js} +8 -8
  635. package/cjs/{ComponentMessage-fb5ce132.js.map → ComponentMessage-d765b28b.js.map} +1 -1
  636. package/cjs/{ComponentMessageContainer-e357f6b8.js → ComponentMessageContainer-c0c21e1b.js} +5 -5
  637. package/{amd/ComponentMessageContainer-ded8d38b.js.map → cjs/ComponentMessageContainer-c0c21e1b.js.map} +1 -1
  638. package/cjs/{Divider-597985d5.js → Divider-2042aba9.js} +3 -3
  639. package/cjs/{Divider-597985d5.js.map → Divider-2042aba9.js.map} +1 -1
  640. package/cjs/{FilePicker-cbbd9ce6.js → FilePicker-d7a4de7a.js} +14 -14
  641. package/cjs/{FilePicker-cbbd9ce6.js.map → FilePicker-d7a4de7a.js.map} +1 -1
  642. package/cjs/{Flex-0344fce4.js → Flex-260323e0.js} +8 -8
  643. package/cjs/{Flex-0344fce4.js.map → Flex-260323e0.js.map} +1 -1
  644. package/cjs/{Floating-a94d10bd.js → Floating-d2046aed.js} +3 -3
  645. package/cjs/{Floating-a94d10bd.js.map → Floating-d2046aed.js.map} +1 -1
  646. package/cjs/{FocusTrap-f0a108fd.js → FocusTrap-df4bf064.js} +5 -5
  647. package/cjs/{FocusTrap-f0a108fd.js.map → FocusTrap-df4bf064.js.map} +1 -1
  648. package/cjs/{FormControlUtils-56732174.js → FormControlUtils-c6a4dc4b.js} +5 -5
  649. package/cjs/{FormControlUtils-56732174.js.map → FormControlUtils-c6a4dc4b.js.map} +1 -1
  650. package/cjs/{Heading-174b1bec.js → Heading-aa545fbc.js} +13 -13
  651. package/cjs/{Heading-174b1bec.js.map → Heading-aa545fbc.js.map} +1 -1
  652. package/cjs/{HiddenAccessible-7e955a3a.js → HiddenAccessible-f8c4113f.js} +3 -3
  653. package/cjs/{HiddenAccessible-7e955a3a.js.map → HiddenAccessible-f8c4113f.js.map} +1 -1
  654. package/cjs/{HighlightText-1bad83fc.js → HighlightText-10042675.js} +3 -3
  655. package/{amd/HighlightText-c8527a97.js.map → cjs/HighlightText-10042675.js.map} +1 -1
  656. package/cjs/{Icon-c73bc4c2.js → Icon-742d4479.js} +25 -25
  657. package/cjs/{Icon-c73bc4c2.js.map → Icon-742d4479.js.map} +1 -1
  658. package/cjs/{Indexer-f1d2ac01.js → Indexer-0c98d91e.js} +16 -16
  659. package/cjs/{Indexer-f1d2ac01.js.map → Indexer-0c98d91e.js.map} +1 -1
  660. package/cjs/{InlineHelpSource-ecacd3bc.js → InlineHelpSource-e98e803d.js} +3 -3
  661. package/cjs/{InlineHelpSource-ecacd3bc.js.map → InlineHelpSource-e98e803d.js.map} +1 -1
  662. package/cjs/{Link-09bbaed7.js → Link-a955e5a1.js} +8 -8
  663. package/{amd/Link-0332b23e.js.map → cjs/Link-a955e5a1.js.map} +1 -1
  664. package/cjs/{List-d1567daf.js → List-d9e06dfd.js} +23 -23
  665. package/cjs/{List-d1567daf.js.map → List-d9e06dfd.js.map} +1 -1
  666. package/cjs/{ListItemTextLayout-76eeda3f.js → ListItemTextLayout-7fefca37.js} +13 -13
  667. package/cjs/{ListItemTextLayout-76eeda3f.js.map → ListItemTextLayout-7fefca37.js.map} +1 -1
  668. package/cjs/{ListView-40d724ec.js → ListView-05ed6c8a.js} +3 -3
  669. package/cjs/{ListView-40d724ec.js.map → ListView-05ed6c8a.js.map} +1 -1
  670. package/cjs/{LoadMoreCollection-14523c73.js → LoadMoreCollection-9479dcd1.js} +3 -3
  671. package/cjs/{LoadMoreCollection-14523c73.js.map → LoadMoreCollection-9479dcd1.js.map} +1 -1
  672. package/cjs/{Menu-b4cc26fb.js → Menu-7a63d78b.js} +6 -6
  673. package/cjs/{Menu-b4cc26fb.js.map → Menu-7a63d78b.js.map} +1 -1
  674. package/cjs/{MenuDivider-35db419f.js → MenuDivider-164b9d81.js} +4 -4
  675. package/cjs/{MenuDivider-35db419f.js.map → MenuDivider-164b9d81.js.map} +1 -1
  676. package/cjs/{MenuItem-dc2c4810.js → MenuItem-068e6546.js} +19 -19
  677. package/cjs/{MenuItem-dc2c4810.js.map → MenuItem-068e6546.js.map} +1 -1
  678. package/cjs/{Message.types-8624e4a6.js → Message.types-cb49247a.js} +2 -2
  679. package/cjs/{Message.types-8624e4a6.js.map → Message.types-cb49247a.js.map} +1 -1
  680. package/cjs/{MessageCloseButton-1ff27ab8.js → MessageCloseButton-a8d04f54.js} +9 -9
  681. package/{amd/MessageCloseButton-256615e9.js.map → cjs/MessageCloseButton-a8d04f54.js.map} +1 -1
  682. package/cjs/{MessageDetail-beb184ac.js → MessageDetail-ccca445b.js} +7 -7
  683. package/cjs/{MessageDetail-beb184ac.js.map → MessageDetail-ccca445b.js.map} +1 -1
  684. package/cjs/{MessageFormattingUtils-ed961138.js → MessageFormattingUtils-221fcd80.js} +4 -4
  685. package/cjs/{MessageFormattingUtils-ed961138.js.map → MessageFormattingUtils-221fcd80.js.map} +1 -1
  686. package/cjs/{MessageLayer-d686604f.js → MessageLayer-b1319d82.js} +11 -11
  687. package/cjs/{MessageLayer-d686604f.js.map → MessageLayer-b1319d82.js.map} +1 -1
  688. package/cjs/{MessageStartIcon-b140563c.js → MessageStartIcon-b8097181.js} +11 -11
  689. package/cjs/{MessageStartIcon-b140563c.js.map → MessageStartIcon-b8097181.js.map} +1 -1
  690. package/cjs/{MessageSummary-55bf8ae4.js → MessageSummary-3f9315a9.js} +7 -7
  691. package/cjs/{MessageSummary-55bf8ae4.js.map → MessageSummary-3f9315a9.js.map} +1 -1
  692. package/cjs/{MessageTimestamp-dc013e2e.js → MessageTimestamp-d54dc4a3.js} +5 -5
  693. package/cjs/{MessageTimestamp-dc013e2e.js.map → MessageTimestamp-d54dc4a3.js.map} +1 -1
  694. package/cjs/{MessageToast-95059819.js → MessageToast-ac565264.js} +9 -9
  695. package/cjs/{MessageToast-95059819.js.map → MessageToast-ac565264.js.map} +1 -1
  696. package/cjs/{MessageUtils-345912e5.js → MessageUtils-3dcdf495.js} +3 -3
  697. package/cjs/{MessageUtils-345912e5.js.map → MessageUtils-3dcdf495.js.map} +1 -1
  698. package/cjs/{MessagesManager-e98104fa.js → MessagesManager-c3a0893a.js} +4 -4
  699. package/cjs/{MessagesManager-e98104fa.js.map → MessagesManager-c3a0893a.js.map} +1 -1
  700. package/cjs/{MeterCircle-f5b897e0.js → MeterCircle-7ec0b5f5.js} +50 -50
  701. package/cjs/{MeterCircle-f5b897e0.js.map → MeterCircle-7ec0b5f5.js.map} +1 -1
  702. package/cjs/{Modal-d06e1bf2.js → Modal-0c4cc690.js} +6 -6
  703. package/cjs/{Modal-d06e1bf2.js.map → Modal-0c4cc690.js.map} +1 -1
  704. package/cjs/{NumberInputText-db992384.js → NumberInputText-40fe1cbf.js} +7 -7
  705. package/cjs/{NumberInputText-db992384.js.map → NumberInputText-40fe1cbf.js.map} +1 -1
  706. package/cjs/PRIVATE_Collection.js +2 -2
  707. package/cjs/PRIVATE_List.js +23 -23
  708. package/cjs/PRIVATE_Message.js +41 -41
  709. package/cjs/PRIVATE_Message.js.map +1 -1
  710. package/cjs/PRIVATE_MessageLayer.js +12 -12
  711. package/cjs/PRIVATE_Meter.js +2 -2
  712. package/cjs/PRIVATE_SelectCommon.js +54 -54
  713. package/cjs/PRIVATE_SelectCommon.js.map +1 -1
  714. package/cjs/PRIVATE_TransitionGroup.js +1 -1
  715. package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
  716. package/cjs/{ReadonlyTextFieldInput-4b12e38d.js → ReadonlyTextFieldInput-45dae724.js} +13 -13
  717. package/cjs/{ReadonlyTextFieldInput-4b12e38d.js.map → ReadonlyTextFieldInput-45dae724.js.map} +1 -1
  718. package/cjs/{SelectMenuItem-48146353.js → SelectMenuItem-fa0edf72.js} +5 -5
  719. package/cjs/{SelectMenuItem-48146353.js.map → SelectMenuItem-fa0edf72.js.map} +1 -1
  720. package/cjs/{SelectMultiple-d0a5bb4f.js → SelectMultiple-c809adb7.js} +8 -8
  721. package/cjs/{SelectMultiple-d0a5bb4f.js.map → SelectMultiple-c809adb7.js.map} +1 -1
  722. package/cjs/{SelectSingle-5b98e77a.js → SelectSingle-e7cd9118.js} +4 -4
  723. package/cjs/{SelectSingle-5b98e77a.js.map → SelectSingle-e7cd9118.js.map} +1 -1
  724. package/cjs/{Skeleton-2bf357ee.js → Skeleton-f60eec1f.js} +5 -5
  725. package/cjs/{Skeleton-2bf357ee.js.map → Skeleton-f60eec1f.js.map} +1 -1
  726. package/cjs/{Spacer-32db0f15.js → Spacer-f9d398f3.js} +4 -4
  727. package/cjs/{Spacer-32db0f15.js.map → Spacer-f9d398f3.js.map} +1 -1
  728. package/cjs/{SplitMenuButton-da7db765.js → SplitMenuButton-f67550f5.js} +14 -14
  729. package/cjs/{SplitMenuButton-da7db765.js.map → SplitMenuButton-f67550f5.js.map} +1 -1
  730. package/cjs/{Text-c17303e3.js → Text-4f2d62c9.js} +28 -28
  731. package/cjs/{Text-c17303e3.js.map → Text-4f2d62c9.js.map} +1 -1
  732. package/cjs/{TextArea-9143cb46.js → TextArea-e12574f9.js} +8 -8
  733. package/cjs/{TextArea-9143cb46.js.map → TextArea-e12574f9.js.map} +1 -1
  734. package/cjs/{TextAreaAutosize-2a0f15a7.js → TextAreaAutosize-c0bf9ebd.js} +5 -5
  735. package/cjs/{TextAreaAutosize-2a0f15a7.js.map → TextAreaAutosize-c0bf9ebd.js.map} +1 -1
  736. package/cjs/{TextFieldInput-7c9ea713.js → TextFieldInput-f2f3f0a0.js} +33 -33
  737. package/{amd/TextFieldInput-e26af2be.js.map → cjs/TextFieldInput-f2f3f0a0.js.map} +1 -1
  738. package/cjs/UNSAFE_AspectRatio.js +8 -8
  739. package/cjs/UNSAFE_AspectRatio.js.map +1 -1
  740. package/cjs/UNSAFE_Avatar.js +11 -11
  741. package/cjs/UNSAFE_Avatar.js.map +1 -1
  742. package/cjs/UNSAFE_Badge.js +3 -3
  743. package/cjs/UNSAFE_BaseButton.js +9 -9
  744. package/cjs/UNSAFE_Button.js +10 -10
  745. package/cjs/UNSAFE_Center.js +11 -11
  746. package/cjs/UNSAFE_Chip.js +3 -3
  747. package/cjs/UNSAFE_Collapsible.js +26 -26
  748. package/cjs/UNSAFE_Collapsible.js.map +1 -1
  749. package/cjs/UNSAFE_Collection.js +1 -1
  750. package/cjs/UNSAFE_ComponentMessage.js +33 -33
  751. package/cjs/UNSAFE_Divider.js +7 -7
  752. package/cjs/UNSAFE_EmptyList.js +1 -1
  753. package/cjs/UNSAFE_Environment.js +1 -1
  754. package/cjs/UNSAFE_FilePicker.js +14 -14
  755. package/cjs/UNSAFE_Flex.js +11 -11
  756. package/cjs/UNSAFE_Floating.js +3 -3
  757. package/cjs/UNSAFE_FocusTrap.js +6 -6
  758. package/cjs/UNSAFE_Grid.js +9 -9
  759. package/cjs/UNSAFE_Grid.js.map +1 -1
  760. package/cjs/UNSAFE_Heading.js +9 -9
  761. package/cjs/UNSAFE_HiddenAccessible.js +2 -2
  762. package/cjs/UNSAFE_HighlightText.js +2 -2
  763. package/cjs/UNSAFE_Icon.js +7 -7
  764. package/cjs/UNSAFE_Icons.js +8 -8
  765. package/cjs/UNSAFE_Indexer.js +16 -16
  766. package/cjs/UNSAFE_InputPassword.js +40 -40
  767. package/cjs/UNSAFE_InputText.js +39 -39
  768. package/cjs/UNSAFE_Label.js +16 -16
  769. package/cjs/UNSAFE_Label.js.map +1 -1
  770. package/cjs/UNSAFE_LabelValueLayout.js +20 -20
  771. package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
  772. package/cjs/UNSAFE_Layer.js +1 -1
  773. package/cjs/UNSAFE_Link.js +3 -3
  774. package/cjs/UNSAFE_ListItemLayout.js +10 -10
  775. package/cjs/UNSAFE_ListView.js +24 -24
  776. package/cjs/UNSAFE_LiveRegion.js +2 -2
  777. package/cjs/UNSAFE_LiveRegion.js.map +1 -1
  778. package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
  779. package/cjs/UNSAFE_Menu.js +15 -15
  780. package/cjs/UNSAFE_MessageBanner.js +30 -30
  781. package/cjs/UNSAFE_MessageToast.js +33 -33
  782. package/cjs/UNSAFE_MeterBar.js +49 -49
  783. package/cjs/UNSAFE_MeterBar.js.map +1 -1
  784. package/cjs/UNSAFE_MeterCircle.js +7 -7
  785. package/cjs/UNSAFE_Modal.js +7 -7
  786. package/cjs/UNSAFE_NumberInputText.js +39 -39
  787. package/cjs/UNSAFE_PrefixSuffix.js +10 -10
  788. package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
  789. package/cjs/UNSAFE_ProgressBar.js +9 -9
  790. package/cjs/UNSAFE_ProgressBar.js.map +1 -1
  791. package/cjs/UNSAFE_ProgressCircle.js +9 -9
  792. package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
  793. package/cjs/UNSAFE_RatingGauge.js +26 -26
  794. package/cjs/UNSAFE_RatingGauge.js.map +1 -1
  795. package/cjs/UNSAFE_SelectMultiple.js +47 -47
  796. package/cjs/UNSAFE_SelectSingle.js +46 -46
  797. package/cjs/UNSAFE_Selector.js +22 -22
  798. package/cjs/UNSAFE_Selector.js.map +1 -1
  799. package/cjs/UNSAFE_Skeleton.js +8 -8
  800. package/cjs/UNSAFE_Spacer.js +10 -10
  801. package/cjs/UNSAFE_SplitMenuButton.js +22 -22
  802. package/cjs/UNSAFE_Text.js +8 -8
  803. package/cjs/UNSAFE_TextArea.js +39 -39
  804. package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
  805. package/cjs/UNSAFE_TextField.js +35 -35
  806. package/cjs/UNSAFE_TextField.js.map +1 -1
  807. package/cjs/UNSAFE_ThemedIcons.js +9 -9
  808. package/cjs/UNSAFE_UserAssistance.js +41 -41
  809. package/cjs/UNSAFE_UserAssistance.js.map +1 -1
  810. package/cjs/UNSAFE_View.js +9 -9
  811. package/cjs/UNSAFE_VirtualizedListView.js +24 -24
  812. package/cjs/UNSAFE_WindowOverlay.js +1 -1
  813. package/cjs/{VirtualizedCollection-711cec0c.js → VirtualizedCollection-b345dec7.js} +3 -3
  814. package/cjs/{VirtualizedCollection-711cec0c.js.map → VirtualizedCollection-b345dec7.js.map} +1 -1
  815. package/cjs/{VirtualizedListView-f5f75e14.js → VirtualizedListView-b13ea090.js} +3 -3
  816. package/cjs/{VirtualizedListView-f5f75e14.js.map → VirtualizedListView-b13ea090.js.map} +1 -1
  817. package/cjs/{_curry1-7cb69eef.js → _curry1-8d2120e1.js} +2 -2
  818. package/cjs/{_curry1-7cb69eef.js.map → _curry1-8d2120e1.js.map} +1 -1
  819. package/cjs/{_curry2-7f9f99a3.js → _curry2-e0541fa2.js} +3 -3
  820. package/cjs/{_curry2-7f9f99a3.js.map → _curry2-e0541fa2.js.map} +1 -1
  821. package/cjs/{_curry3-b9a1c3c2.js → _curry3-4bf8f0ff.js} +4 -4
  822. package/cjs/{_curry3-b9a1c3c2.js.map → _curry3-4bf8f0ff.js.map} +1 -1
  823. package/cjs/{_has-195d2d0c.js → _has-0c6632fb.js} +3 -3
  824. package/cjs/{_has-195d2d0c.js.map → _has-0c6632fb.js.map} +1 -1
  825. package/cjs/{classNames-d6e0ded0.js → classNames-da349ca2.js} +2 -2
  826. package/cjs/{classNames-d6e0ded0.js.map → classNames-da349ca2.js.map} +1 -1
  827. package/cjs/{clientHints-a8929847.js → clientHints-1ea8f1df.js} +2 -2
  828. package/cjs/{clientHints-a8929847.js.map → clientHints-1ea8f1df.js.map} +1 -1
  829. package/cjs/{flexbox-fd8f2621.js → flexbox-f40d228f.js} +10 -10
  830. package/cjs/{flexbox-fd8f2621.js.map → flexbox-f40d228f.js.map} +1 -1
  831. package/cjs/{flexitem-277e7f7e.js → flexitem-540999d4.js} +10 -10
  832. package/cjs/{flexitem-277e7f7e.js.map → flexitem-540999d4.js.map} +1 -1
  833. package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  834. package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
  835. package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
  836. package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
  837. package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  838. package/cjs/hooks/PRIVATE_useSelection.js +1 -1
  839. package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
  840. package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  841. package/cjs/hooks/UNSAFE_useActionable.js +1 -1
  842. package/cjs/hooks/UNSAFE_useActive.js +1 -1
  843. package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
  844. package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
  845. package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
  846. package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
  847. package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
  848. package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  849. package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  850. package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  851. package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
  852. package/cjs/hooks/UNSAFE_useFloating.js +2 -2
  853. package/cjs/hooks/UNSAFE_useFocus.js +1 -1
  854. package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
  855. package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
  856. package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
  857. package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
  858. package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
  859. package/cjs/hooks/UNSAFE_useHover.js +1 -1
  860. package/cjs/hooks/UNSAFE_useId.js +1 -1
  861. package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
  862. package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  863. package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
  864. package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
  865. package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
  866. package/cjs/hooks/UNSAFE_usePan.js +1 -1
  867. package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
  868. package/cjs/hooks/UNSAFE_usePress.js +1 -1
  869. package/cjs/hooks/UNSAFE_useScale.js +1 -1
  870. package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
  871. package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
  872. package/cjs/hooks/UNSAFE_useTap.js +1 -1
  873. package/cjs/hooks/UNSAFE_useTextField.js +1 -1
  874. package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
  875. package/cjs/hooks/UNSAFE_useTheme.js +1 -1
  876. package/cjs/hooks/UNSAFE_useTimer.js +1 -1
  877. package/cjs/hooks/UNSAFE_useToggle.js +1 -1
  878. package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
  879. package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
  880. package/cjs/hooks/UNSAFE_useTouch.js +1 -1
  881. package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
  882. package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
  883. package/cjs/hooks/UNSAFE_useUser.js +1 -1
  884. package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
  885. package/cjs/{index-24d679ca.js → index-1a8d3228.js} +2 -2
  886. package/cjs/{index-24d679ca.js.map → index-1a8d3228.js.map} +1 -1
  887. package/cjs/{index-0f97aeed.js → index-6cd66e43.js} +3 -3
  888. package/cjs/{index-0f97aeed.js.map → index-6cd66e43.js.map} +1 -1
  889. package/cjs/{index-84ddc8f2.js → index-f35479e8.js} +3 -3
  890. package/cjs/{index-84ddc8f2.js.map → index-f35479e8.js.map} +1 -1
  891. package/cjs/{keys-9c77b124.js → keys-dcecff11.js} +4 -4
  892. package/cjs/{keys-9c77b124.js.map → keys-dcecff11.js.map} +1 -1
  893. package/cjs/{listViewSelectionTests-9a641539.js → listViewSelectionTests-8543d0be.js} +4 -4
  894. package/cjs/{listViewSelectionTests-9a641539.js.map → listViewSelectionTests-8543d0be.js.map} +1 -1
  895. package/cjs/{listViewTabbableModeTests-9a796286.js → listViewTabbableModeTests-088e3919.js} +4 -4
  896. package/cjs/{listViewTabbableModeTests-9a796286.js.map → listViewTabbableModeTests-088e3919.js.map} +1 -1
  897. package/cjs/{listViewTestFixtures-34db5497.js → listViewTestFixtures-78bedae0.js} +2 -2
  898. package/cjs/{listViewTestFixtures-34db5497.js.map → listViewTestFixtures-78bedae0.js.map} +1 -1
  899. package/cjs/{menuTestsUtils-d25ea1f6.js → menuTestsUtils-216ea1a0.js} +2 -2
  900. package/cjs/{menuTestsUtils-d25ea1f6.js.map → menuTestsUtils-216ea1a0.js.map} +1 -1
  901. package/cjs/resources/nls/ar/bundle.js +1 -1
  902. package/cjs/resources/nls/ar-XB/bundle.js +1 -1
  903. package/cjs/resources/nls/bg/bundle.js +1 -1
  904. package/cjs/resources/nls/bs/bundle.js +1 -1
  905. package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
  906. package/cjs/resources/nls/bundle.js +1 -1
  907. package/cjs/resources/nls/cs/bundle.js +1 -1
  908. package/cjs/resources/nls/da/bundle.js +1 -1
  909. package/cjs/resources/nls/de/bundle.js +1 -1
  910. package/cjs/resources/nls/el/bundle.js +1 -1
  911. package/cjs/resources/nls/en/bundle.js +1 -1
  912. package/cjs/resources/nls/en-XA/bundle.js +1 -1
  913. package/cjs/resources/nls/en-XC/bundle.js +1 -1
  914. package/cjs/resources/nls/es/bundle.js +1 -1
  915. package/cjs/resources/nls/et/bundle.js +1 -1
  916. package/cjs/resources/nls/fi/bundle.js +1 -1
  917. package/cjs/resources/nls/fr/bundle.js +1 -1
  918. package/cjs/resources/nls/fr-CA/bundle.js +1 -1
  919. package/cjs/resources/nls/he/bundle.js +1 -1
  920. package/cjs/resources/nls/hr/bundle.js +1 -1
  921. package/cjs/resources/nls/hu/bundle.js +1 -1
  922. package/cjs/resources/nls/is/bundle.js +1 -1
  923. package/cjs/resources/nls/it/bundle.js +1 -1
  924. package/cjs/resources/nls/ja/bundle.js +1 -1
  925. package/cjs/resources/nls/ko/bundle.js +1 -1
  926. package/cjs/resources/nls/lt/bundle.js +1 -1
  927. package/cjs/resources/nls/lv/bundle.js +1 -1
  928. package/cjs/resources/nls/ms/bundle.js +1 -1
  929. package/cjs/resources/nls/nl/bundle.js +1 -1
  930. package/cjs/resources/nls/no/bundle.js +1 -1
  931. package/cjs/resources/nls/pl/bundle.js +1 -1
  932. package/cjs/resources/nls/pt/bundle.js +1 -1
  933. package/cjs/resources/nls/pt-PT/bundle.js +1 -1
  934. package/cjs/resources/nls/ro/bundle.js +1 -1
  935. package/cjs/resources/nls/ru/bundle.js +1 -1
  936. package/cjs/resources/nls/sk/bundle.js +1 -1
  937. package/cjs/resources/nls/sl/bundle.js +1 -1
  938. package/cjs/resources/nls/sr/bundle.js +1 -1
  939. package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
  940. package/cjs/resources/nls/supportedLocales.js +1 -1
  941. package/cjs/resources/nls/sv/bundle.js +1 -1
  942. package/cjs/resources/nls/th/bundle.js +1 -1
  943. package/cjs/resources/nls/tr/bundle.js +1 -1
  944. package/cjs/resources/nls/uk/bundle.js +1 -1
  945. package/cjs/resources/nls/vi/bundle.js +1 -1
  946. package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
  947. package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
  948. package/cjs/{stringUtils-e3af1a05.js → stringUtils-4323b5f4.js} +2 -2
  949. package/cjs/{stringUtils-e3af1a05.js.map → stringUtils-4323b5f4.js.map} +1 -1
  950. package/cjs/{testHelpers-e0f9c2f8.js → testHelpers-6f2545dd.js} +2 -2
  951. package/cjs/{testHelpers-e0f9c2f8.js.map → testHelpers-6f2545dd.js.map} +1 -1
  952. package/cjs/translationBundle.js +1 -1
  953. package/cjs/{tslib.es6-07720b96.js → tslib.es6-cd419f8d.js} +2 -2
  954. package/cjs/{tslib.es6-07720b96.js.map → tslib.es6-cd419f8d.js.map} +1 -1
  955. package/cjs/{useAnimation-f0d0ff34.js → useAnimation-64f648d2.js} +3 -3
  956. package/cjs/{useAnimation-f0d0ff34.js.map → useAnimation-64f648d2.js.map} +1 -1
  957. package/cjs/{useFocusWithin-03b9d458.js → useFocusWithin-4b3e579b.js} +2 -2
  958. package/cjs/{useFocusWithin-03b9d458.js.map → useFocusWithin-4b3e579b.js.map} +1 -1
  959. package/cjs/{useSingleSelection-28238d87.js → useSingleSelection-e0d38657.js} +2 -2
  960. package/cjs/{useSingleSelection-28238d87.js.map → useSingleSelection-e0d38657.js.map} +1 -1
  961. package/cjs/utils/PRIVATE_clientHints.js +2 -2
  962. package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
  963. package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
  964. package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
  965. package/cjs/utils/PRIVATE_meterUtils.js +1 -1
  966. package/cjs/utils/PRIVATE_refUtils.js +1 -1
  967. package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
  968. package/cjs/utils/PRIVATE_timer.js +1 -1
  969. package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
  970. package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
  971. package/cjs/utils/UNSAFE_classNames.js +2 -2
  972. package/cjs/utils/UNSAFE_componentUtils.js +1 -1
  973. package/cjs/utils/UNSAFE_dataProvider.js +1 -1
  974. package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
  975. package/cjs/utils/UNSAFE_getLocale.js +1 -1
  976. package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
  977. package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
  978. package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  979. package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  980. package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
  981. package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
  982. package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
  983. package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
  984. package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
  985. package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
  986. package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
  987. package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
  988. package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
  989. package/cjs/utils/UNSAFE_keys.js +1 -1
  990. package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
  991. package/cjs/utils/UNSAFE_logger.js +3 -3
  992. package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
  993. package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
  994. package/cjs/utils/UNSAFE_mergeProps.js +1 -1
  995. package/cjs/utils/UNSAFE_meterTypes.js +1 -1
  996. package/cjs/utils/UNSAFE_roles.js +1 -1
  997. package/cjs/utils/UNSAFE_selectUtils.js +1 -1
  998. package/cjs/utils/UNSAFE_size.js +1 -1
  999. package/cjs/utils/UNSAFE_soundUtils.js +1 -1
  1000. package/cjs/utils/UNSAFE_stringUtils.js +2 -2
  1001. package/cjs/utils/UNSAFE_typeUtils.js +1 -1
  1002. package/cjs/utils/UNSAFE_units.js +2 -2
  1003. package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1004. package/es/{ClearIcon-135e7b3f.js → ClearIcon-82a14f55.js} +3 -3
  1005. package/es/{ClearIcon-135e7b3f.js.map → ClearIcon-82a14f55.js.map} +1 -1
  1006. package/es/{LoadMoreCollection-f7922120.js → LoadMoreCollection-f47b4050.js} +2 -2
  1007. package/es/{LoadMoreCollection-f7922120.js.map → LoadMoreCollection-f47b4050.js.map} +1 -1
  1008. package/es/PRIVATE_Collection.js +1 -1
  1009. package/es/PRIVATE_List.css +18 -17
  1010. package/es/PRIVATE_List.js +24 -24
  1011. package/es/PRIVATE_List.js.map +1 -1
  1012. package/es/PRIVATE_Message.css +35 -34
  1013. package/es/PRIVATE_Message.js +35 -35
  1014. package/es/PRIVATE_Message.js.map +1 -1
  1015. package/es/PRIVATE_MessageLayer.css +8 -7
  1016. package/es/PRIVATE_MessageLayer.js +14 -14
  1017. package/es/PRIVATE_MessageLayer.js.map +1 -1
  1018. package/es/PRIVATE_Meter.js +2 -2
  1019. package/es/PRIVATE_SelectCommon.css +19 -18
  1020. package/es/PRIVATE_SelectCommon.js +22 -22
  1021. package/es/PRIVATE_SelectCommon.js.map +1 -1
  1022. package/es/PRIVATE_TransitionGroup.js +1 -1
  1023. package/es/PRIVATE_VirtualizedCollection.js +1 -1
  1024. package/es/UNSAFE_AspectRatio.css +2 -1
  1025. package/es/UNSAFE_AspectRatio.js +7 -7
  1026. package/es/UNSAFE_AspectRatio.js.map +1 -1
  1027. package/es/UNSAFE_Avatar.css +9 -8
  1028. package/es/UNSAFE_Avatar.js +10 -10
  1029. package/es/UNSAFE_Avatar.js.map +1 -1
  1030. package/es/UNSAFE_Badge.css +14 -13
  1031. package/es/UNSAFE_Badge.js +14 -14
  1032. package/es/UNSAFE_Badge.js.map +1 -1
  1033. package/es/UNSAFE_BaseButton.css +16 -15
  1034. package/es/UNSAFE_BaseButton.js +21 -21
  1035. package/es/UNSAFE_BaseButton.js.map +1 -1
  1036. package/es/UNSAFE_Button.css +9 -8
  1037. package/es/UNSAFE_Button.js +14 -14
  1038. package/es/UNSAFE_Button.js.map +1 -1
  1039. package/es/UNSAFE_Center.js +7 -7
  1040. package/es/UNSAFE_Chip.css +8 -7
  1041. package/es/UNSAFE_Chip.js +8 -8
  1042. package/es/UNSAFE_Chip.js.map +1 -1
  1043. package/es/UNSAFE_Collapsible.css +10 -9
  1044. package/es/UNSAFE_Collapsible.js +16 -16
  1045. package/es/UNSAFE_Collapsible.js.map +1 -1
  1046. package/es/UNSAFE_Collection.js +1 -1
  1047. package/es/UNSAFE_ComponentMessage.css +4 -3
  1048. package/es/UNSAFE_ComponentMessage.js +10 -10
  1049. package/es/UNSAFE_ComponentMessage.js.map +1 -1
  1050. package/es/UNSAFE_Divider.css +2 -1
  1051. package/es/UNSAFE_Divider.js +6 -6
  1052. package/es/UNSAFE_EmptyList.js +1 -1
  1053. package/es/UNSAFE_Environment.js +1 -1
  1054. package/es/UNSAFE_FilePicker.css +7 -6
  1055. package/es/UNSAFE_FilePicker.js +13 -13
  1056. package/es/UNSAFE_FilePicker.js.map +1 -1
  1057. package/es/UNSAFE_Flex.css +3 -2
  1058. package/es/UNSAFE_Flex.js +9 -9
  1059. package/es/UNSAFE_Flex.js.map +1 -1
  1060. package/es/UNSAFE_Floating.js +2 -2
  1061. package/es/UNSAFE_FocusTrap.css +4 -3
  1062. package/es/UNSAFE_FocusTrap.js +6 -6
  1063. package/es/UNSAFE_FocusTrap.js.map +1 -1
  1064. package/es/UNSAFE_Grid.css +2 -1
  1065. package/es/UNSAFE_Grid.js +8 -8
  1066. package/es/UNSAFE_Grid.js.map +1 -1
  1067. package/es/UNSAFE_Heading.css +10 -9
  1068. package/es/UNSAFE_Heading.js +16 -16
  1069. package/es/UNSAFE_Heading.js.map +1 -1
  1070. package/es/UNSAFE_HiddenAccessible.css +2 -1
  1071. package/es/UNSAFE_HiddenAccessible.js +2 -2
  1072. package/es/UNSAFE_HiddenAccessible.js.map +1 -1
  1073. package/es/UNSAFE_HighlightText.css +2 -1
  1074. package/es/UNSAFE_HighlightText.js +2 -2
  1075. package/es/UNSAFE_HighlightText.js.map +1 -1
  1076. package/es/UNSAFE_Icon.css +22 -21
  1077. package/es/UNSAFE_Icon.js +24 -24
  1078. package/es/UNSAFE_Icon.js.map +1 -1
  1079. package/es/UNSAFE_Icons.js +3 -3
  1080. package/es/UNSAFE_Indexer.css +9 -8
  1081. package/es/UNSAFE_Indexer.js +15 -15
  1082. package/es/UNSAFE_Indexer.js.map +1 -1
  1083. package/es/UNSAFE_InputPassword.css +2 -1
  1084. package/es/UNSAFE_InputPassword.js +10 -10
  1085. package/es/UNSAFE_InputText.css +2 -1
  1086. package/es/UNSAFE_InputText.js +9 -9
  1087. package/es/UNSAFE_Label.css +14 -13
  1088. package/es/UNSAFE_Label.js +15 -15
  1089. package/es/UNSAFE_Label.js.map +1 -1
  1090. package/es/UNSAFE_LabelValueLayout.css +10 -9
  1091. package/es/UNSAFE_LabelValueLayout.js +16 -16
  1092. package/es/UNSAFE_LabelValueLayout.js.map +1 -1
  1093. package/es/UNSAFE_Layer.js +1 -1
  1094. package/es/UNSAFE_Link.css +6 -5
  1095. package/es/UNSAFE_Link.js +6 -6
  1096. package/es/UNSAFE_Link.js.map +1 -1
  1097. package/es/UNSAFE_ListItemLayout.css +11 -10
  1098. package/es/UNSAFE_ListItemLayout.js +16 -16
  1099. package/es/UNSAFE_ListItemLayout.js.map +1 -1
  1100. package/es/UNSAFE_ListView.js +9 -9
  1101. package/es/UNSAFE_LiveRegion.css +2 -1
  1102. package/es/UNSAFE_LiveRegion.js +2 -2
  1103. package/es/UNSAFE_LiveRegion.js.map +1 -1
  1104. package/es/UNSAFE_LoadMoreCollection.js +2 -2
  1105. package/es/UNSAFE_Menu.css +20 -19
  1106. package/es/UNSAFE_Menu.js +24 -24
  1107. package/es/UNSAFE_Menu.js.map +1 -1
  1108. package/es/UNSAFE_MessageBanner.js +8 -8
  1109. package/es/UNSAFE_MessageToast.css +2 -1
  1110. package/es/UNSAFE_MessageToast.js +9 -9
  1111. package/es/UNSAFE_MeterBar.css +46 -45
  1112. package/es/UNSAFE_MeterBar.js +46 -46
  1113. package/es/UNSAFE_MeterBar.js.map +1 -1
  1114. package/es/UNSAFE_MeterCircle.css +48 -47
  1115. package/es/UNSAFE_MeterCircle.js +49 -49
  1116. package/es/UNSAFE_MeterCircle.js.map +1 -1
  1117. package/es/UNSAFE_Modal.css +6 -5
  1118. package/es/UNSAFE_Modal.js +7 -7
  1119. package/es/UNSAFE_NumberInputText.js +8 -8
  1120. package/es/UNSAFE_PrefixSuffix.css +9 -8
  1121. package/es/UNSAFE_PrefixSuffix.js +9 -9
  1122. package/es/UNSAFE_PrefixSuffix.js.map +1 -1
  1123. package/es/UNSAFE_ProgressBar.css +7 -6
  1124. package/es/UNSAFE_ProgressBar.js +8 -8
  1125. package/es/UNSAFE_ProgressBar.js.map +1 -1
  1126. package/es/UNSAFE_ProgressCircle.css +7 -6
  1127. package/es/UNSAFE_ProgressCircle.js +8 -8
  1128. package/es/UNSAFE_ProgressCircle.js.map +1 -1
  1129. package/es/UNSAFE_RatingGauge.css +23 -22
  1130. package/es/UNSAFE_RatingGauge.js +23 -23
  1131. package/es/UNSAFE_RatingGauge.js.map +1 -1
  1132. package/es/UNSAFE_SelectMultiple.css +2 -1
  1133. package/es/UNSAFE_SelectMultiple.js +10 -10
  1134. package/es/UNSAFE_SelectMultiple.js.map +1 -1
  1135. package/es/UNSAFE_SelectSingle.js +9 -9
  1136. package/es/UNSAFE_Selector.css +6 -5
  1137. package/es/UNSAFE_Selector.js +13 -13
  1138. package/es/UNSAFE_Selector.js.map +1 -1
  1139. package/es/UNSAFE_Skeleton.css +2 -1
  1140. package/es/UNSAFE_Skeleton.js +7 -7
  1141. package/es/UNSAFE_Spacer.js +7 -7
  1142. package/es/UNSAFE_SplitMenuButton.css +6 -5
  1143. package/es/UNSAFE_SplitMenuButton.js +12 -12
  1144. package/es/UNSAFE_SplitMenuButton.js.map +1 -1
  1145. package/es/UNSAFE_Text.css +26 -25
  1146. package/es/UNSAFE_Text.js +31 -31
  1147. package/es/UNSAFE_Text.js.map +1 -1
  1148. package/es/UNSAFE_TextArea.css +4 -3
  1149. package/es/UNSAFE_TextArea.js +11 -11
  1150. package/es/UNSAFE_TextArea.js.map +1 -1
  1151. package/es/UNSAFE_TextAreaAutosize.js +8 -8
  1152. package/es/UNSAFE_TextField.css +63 -62
  1153. package/es/UNSAFE_TextField.js +65 -65
  1154. package/es/UNSAFE_TextField.js.map +1 -1
  1155. package/es/UNSAFE_ThemedIcons.js +3 -3
  1156. package/es/UNSAFE_UserAssistance.css +12 -11
  1157. package/es/UNSAFE_UserAssistance.js +16 -16
  1158. package/es/UNSAFE_UserAssistance.js.map +1 -1
  1159. package/es/UNSAFE_View.js +7 -7
  1160. package/es/UNSAFE_VirtualizedListView.js +9 -9
  1161. package/es/UNSAFE_WindowOverlay.js +1 -1
  1162. package/es/{_curry1-3c1ddbce.js → _curry1-dfb64835.js} +2 -2
  1163. package/es/{_curry1-3c1ddbce.js.map → _curry1-dfb64835.js.map} +1 -1
  1164. package/es/{_curry2-56616048.js → _curry2-b60c1ab2.js} +3 -3
  1165. package/es/{_curry2-56616048.js.map → _curry2-b60c1ab2.js.map} +1 -1
  1166. package/es/{_curry3-0e6fcdae.js → _curry3-645b514e.js} +4 -4
  1167. package/es/{_curry3-0e6fcdae.js.map → _curry3-645b514e.js.map} +1 -1
  1168. package/es/{_has-069b6744.js → _has-47f27295.js} +3 -3
  1169. package/es/{_has-069b6744.js.map → _has-47f27295.js.map} +1 -1
  1170. package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  1171. package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
  1172. package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
  1173. package/es/hooks/PRIVATE_useItemAction.js +1 -1
  1174. package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  1175. package/es/hooks/PRIVATE_useSelection.js +1 -1
  1176. package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
  1177. package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  1178. package/es/hooks/UNSAFE_useActionable.js +1 -1
  1179. package/es/hooks/UNSAFE_useActive.js +1 -1
  1180. package/es/hooks/UNSAFE_useAnimation.js +2 -2
  1181. package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
  1182. package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
  1183. package/es/hooks/UNSAFE_useClearIcon.js +1 -1
  1184. package/es/hooks/UNSAFE_useColorScheme.js +1 -1
  1185. package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  1186. package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  1187. package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  1188. package/es/hooks/UNSAFE_useDebounce.js +1 -1
  1189. package/es/hooks/UNSAFE_useFloating.js +2 -2
  1190. package/es/hooks/UNSAFE_useFocus.js +1 -1
  1191. package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
  1192. package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
  1193. package/es/hooks/UNSAFE_useFormContext.js +1 -1
  1194. package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
  1195. package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
  1196. package/es/hooks/UNSAFE_useHover.js +1 -1
  1197. package/es/hooks/UNSAFE_useId.js +1 -1
  1198. package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
  1199. package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  1200. package/es/hooks/UNSAFE_useLongPress.js +1 -1
  1201. package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
  1202. package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
  1203. package/es/hooks/UNSAFE_usePan.js +1 -1
  1204. package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  1205. package/es/hooks/UNSAFE_usePress.js +1 -1
  1206. package/es/hooks/UNSAFE_useScale.js +1 -1
  1207. package/es/hooks/UNSAFE_useSwipe.js +1 -1
  1208. package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
  1209. package/es/hooks/UNSAFE_useTap.js +1 -1
  1210. package/es/hooks/UNSAFE_useTextField.js +1 -1
  1211. package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  1212. package/es/hooks/UNSAFE_useTheme.js +1 -1
  1213. package/es/hooks/UNSAFE_useTimer.js +1 -1
  1214. package/es/hooks/UNSAFE_useToggle.js +1 -1
  1215. package/es/hooks/UNSAFE_useTooltip.css +5 -4
  1216. package/es/hooks/UNSAFE_useTooltip.js +7 -7
  1217. package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
  1218. package/es/hooks/UNSAFE_useTouch.js +1 -1
  1219. package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
  1220. package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
  1221. package/es/hooks/UNSAFE_useUser.js +1 -1
  1222. package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
  1223. package/es/{index-0265edc7.js → index-4d0e7777.js} +2 -2
  1224. package/es/{index-0265edc7.js.map → index-4d0e7777.js.map} +1 -1
  1225. package/es/{keys-5809d237.js → keys-1907eb95.js} +4 -4
  1226. package/es/{keys-5809d237.js.map → keys-1907eb95.js.map} +1 -1
  1227. package/es/resources/nls/ar/bundle.js +1 -1
  1228. package/es/resources/nls/ar-XB/bundle.js +1 -1
  1229. package/es/resources/nls/bg/bundle.js +1 -1
  1230. package/es/resources/nls/bs/bundle.js +1 -1
  1231. package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
  1232. package/es/resources/nls/bundle.js +1 -1
  1233. package/es/resources/nls/cs/bundle.js +1 -1
  1234. package/es/resources/nls/da/bundle.js +1 -1
  1235. package/es/resources/nls/de/bundle.js +1 -1
  1236. package/es/resources/nls/el/bundle.js +1 -1
  1237. package/es/resources/nls/en/bundle.js +1 -1
  1238. package/es/resources/nls/en-XA/bundle.js +1 -1
  1239. package/es/resources/nls/en-XC/bundle.js +1 -1
  1240. package/es/resources/nls/es/bundle.js +1 -1
  1241. package/es/resources/nls/et/bundle.js +1 -1
  1242. package/es/resources/nls/fi/bundle.js +1 -1
  1243. package/es/resources/nls/fr/bundle.js +1 -1
  1244. package/es/resources/nls/fr-CA/bundle.js +1 -1
  1245. package/es/resources/nls/he/bundle.js +1 -1
  1246. package/es/resources/nls/hr/bundle.js +1 -1
  1247. package/es/resources/nls/hu/bundle.js +1 -1
  1248. package/es/resources/nls/is/bundle.js +1 -1
  1249. package/es/resources/nls/it/bundle.js +1 -1
  1250. package/es/resources/nls/ja/bundle.js +1 -1
  1251. package/es/resources/nls/ko/bundle.js +1 -1
  1252. package/es/resources/nls/lt/bundle.js +1 -1
  1253. package/es/resources/nls/lv/bundle.js +1 -1
  1254. package/es/resources/nls/ms/bundle.js +1 -1
  1255. package/es/resources/nls/nl/bundle.js +1 -1
  1256. package/es/resources/nls/no/bundle.js +1 -1
  1257. package/es/resources/nls/pl/bundle.js +1 -1
  1258. package/es/resources/nls/pt/bundle.js +1 -1
  1259. package/es/resources/nls/pt-PT/bundle.js +1 -1
  1260. package/es/resources/nls/ro/bundle.js +1 -1
  1261. package/es/resources/nls/ru/bundle.js +1 -1
  1262. package/es/resources/nls/sk/bundle.js +1 -1
  1263. package/es/resources/nls/sl/bundle.js +1 -1
  1264. package/es/resources/nls/sr/bundle.js +1 -1
  1265. package/es/resources/nls/sr-Latn/bundle.js +1 -1
  1266. package/es/resources/nls/supportedLocales.js +1 -1
  1267. package/es/resources/nls/sv/bundle.js +1 -1
  1268. package/es/resources/nls/th/bundle.js +1 -1
  1269. package/es/resources/nls/tr/bundle.js +1 -1
  1270. package/es/resources/nls/uk/bundle.js +1 -1
  1271. package/es/resources/nls/vi/bundle.js +1 -1
  1272. package/es/resources/nls/zh-Hans/bundle.js +1 -1
  1273. package/es/resources/nls/zh-Hant/bundle.js +1 -1
  1274. package/es/translationBundle.js +1 -1
  1275. package/es/{tslib.es6-f7fea2be.js → tslib.es6-bf96b795.js} +2 -2
  1276. package/es/{tslib.es6-f7fea2be.js.map → tslib.es6-bf96b795.js.map} +1 -1
  1277. package/es/{useSingleSelection-4fed53c3.js → useSingleSelection-8eaee995.js} +2 -2
  1278. package/es/{useSingleSelection-4fed53c3.js.map → useSingleSelection-8eaee995.js.map} +1 -1
  1279. package/es/utils/PRIVATE_clientHints.js +1 -1
  1280. package/es/utils/PRIVATE_collectionUtils.js +1 -1
  1281. package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
  1282. package/es/utils/PRIVATE_floatingUtils.js +1 -1
  1283. package/es/utils/PRIVATE_meterUtils.js +1 -1
  1284. package/es/utils/PRIVATE_refUtils.js +1 -1
  1285. package/es/utils/PRIVATE_tabbableUtils.js +4 -4
  1286. package/es/utils/PRIVATE_timer.js +1 -1
  1287. package/es/utils/UNSAFE_arrayUtils.js +1 -1
  1288. package/es/utils/UNSAFE_attributeUtils.js +1 -1
  1289. package/es/utils/UNSAFE_classNames.js +1 -1
  1290. package/es/utils/UNSAFE_componentUtils.js +1 -1
  1291. package/es/utils/UNSAFE_dataProvider.js +1 -1
  1292. package/es/utils/UNSAFE_filePickerUtils.js +1 -1
  1293. package/es/utils/UNSAFE_getLocale.js +1 -1
  1294. package/es/utils/UNSAFE_interpolations/aria.js +1 -1
  1295. package/es/utils/UNSAFE_interpolations/borders.js +1 -1
  1296. package/es/utils/UNSAFE_interpolations/boxalignment.css +16 -15
  1297. package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  1298. package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  1299. package/es/utils/UNSAFE_interpolations/colors.js +1 -1
  1300. package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
  1301. package/es/utils/UNSAFE_interpolations/flexbox.css +8 -7
  1302. package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
  1303. package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
  1304. package/es/utils/UNSAFE_interpolations/flexitem.css +8 -7
  1305. package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
  1306. package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
  1307. package/es/utils/UNSAFE_interpolations/grid.js +1 -1
  1308. package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
  1309. package/es/utils/UNSAFE_interpolations/padding.js +1 -1
  1310. package/es/utils/UNSAFE_interpolations/text.css +4 -3
  1311. package/es/utils/UNSAFE_interpolations/text.js +7 -7
  1312. package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
  1313. package/es/utils/UNSAFE_keys.js +1 -1
  1314. package/es/utils/UNSAFE_lengthFilter.js +1 -1
  1315. package/es/utils/UNSAFE_logger.js +3 -3
  1316. package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
  1317. package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
  1318. package/es/utils/UNSAFE_mergeProps.js +1 -1
  1319. package/es/utils/UNSAFE_meterTypes.js +1 -1
  1320. package/es/utils/UNSAFE_roles.js +1 -1
  1321. package/es/utils/UNSAFE_selectUtils.js +1 -1
  1322. package/es/utils/UNSAFE_size.js +1 -1
  1323. package/es/utils/UNSAFE_soundUtils.js +1 -1
  1324. package/es/utils/UNSAFE_stringUtils.js +1 -1
  1325. package/es/utils/UNSAFE_typeUtils.js +1 -1
  1326. package/es/utils/UNSAFE_units.js +1 -1
  1327. package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1328. package/package.json +1 -1
  1329. package/amd/Badge-d9f13bcf.js +0 -2
  1330. package/amd/BaseButton-31fe1787.js +0 -2
  1331. package/amd/Button-11c23c7a.js +0 -2
  1332. package/amd/Chip-e3d549ba.js +0 -2
  1333. package/amd/ClearIcon-58c33ef6.js +0 -2
  1334. package/amd/Collection-a530cc1c.js +0 -2
  1335. package/amd/ComponentMessage-f45b3bbf.js +0 -2
  1336. package/amd/ComponentMessageContainer-ded8d38b.js +0 -2
  1337. package/amd/Divider-84e27e2d.js +0 -2
  1338. package/amd/FilePicker-e9a5d905.js +0 -2
  1339. package/amd/Flex-556d723b.js +0 -2
  1340. package/amd/Floating-31eefce3.js +0 -2
  1341. package/amd/FocusTrap-94dc8805.js +0 -2
  1342. package/amd/FormControlUtils-f9124d70.js +0 -2
  1343. package/amd/Heading-e317eb74.js +0 -2
  1344. package/amd/HiddenAccessible-fd19b064.js +0 -2
  1345. package/amd/HighlightText-c8527a97.js +0 -2
  1346. package/amd/Icon-b5704008.js +0 -2
  1347. package/amd/Indexer-5611d3c4.js +0 -2
  1348. package/amd/InlineHelpSource-66c5f04f.js +0 -2
  1349. package/amd/Link-0332b23e.js +0 -2
  1350. package/amd/List-f2a1fc9f.js +0 -2
  1351. package/amd/ListItemTextLayout-60e39a4b.js +0 -2
  1352. package/amd/ListView-9ed346bf.js +0 -2
  1353. package/amd/LoadMoreCollection-479c6b41.js +0 -2
  1354. package/amd/Menu-8031192d.js +0 -2
  1355. package/amd/Menu-8031192d.js.map +0 -1
  1356. package/amd/MenuDivider-92577724.js +0 -2
  1357. package/amd/MenuItem-677564f5.js +0 -2
  1358. package/amd/MenuItem-677564f5.js.map +0 -1
  1359. package/amd/Message.types-4bf5e2b8.js +0 -2
  1360. package/amd/MessageCloseButton-256615e9.js +0 -2
  1361. package/amd/MessageDetail-8958ff27.js +0 -2
  1362. package/amd/MessageFormattingUtils-66993387.js +0 -2
  1363. package/amd/MessageLayer-dc38e00d.js +0 -2
  1364. package/amd/MessageStartIcon-9a21df9b.js +0 -2
  1365. package/amd/MessageSummary-34220b0d.js +0 -2
  1366. package/amd/MessageTimestamp-271609d9.js +0 -2
  1367. package/amd/MessageToast-129c2477.js +0 -2
  1368. package/amd/MessageUtils-dfcb9ca9.js +0 -2
  1369. package/amd/MessagesManager-d521afd3.js +0 -2
  1370. package/amd/MeterCircle-78d7b095.js +0 -2
  1371. package/amd/Modal-1b5b6fc3.js +0 -2
  1372. package/amd/NumberInputText-9ad68cd3.js +0 -2
  1373. package/amd/ReadonlyTextFieldInput-1b5e6b00.js +0 -2
  1374. package/amd/SelectMenuItem-2393f161.js +0 -2
  1375. package/amd/SelectMenuItem-2393f161.js.map +0 -1
  1376. package/amd/SelectMultiple-f525d786.js +0 -2
  1377. package/amd/SelectMultiple-f525d786.js.map +0 -1
  1378. package/amd/SelectSingle-82a0e46a.js +0 -2
  1379. package/amd/SelectSingle-82a0e46a.js.map +0 -1
  1380. package/amd/Skeleton-d9b61f2e.js +0 -2
  1381. package/amd/Spacer-d5dceece.js +0 -2
  1382. package/amd/SplitMenuButton-4247ca7c.js +0 -2
  1383. package/amd/Text-2d54c9f7.js +0 -2
  1384. package/amd/TextArea-2fdab6db.js +0 -2
  1385. package/amd/TextAreaAutosize-50b8719d.js +0 -2
  1386. package/amd/TextFieldInput-e26af2be.js +0 -2
  1387. package/amd/VirtualizedCollection-91797029.js +0 -2
  1388. package/amd/VirtualizedListView-6decbb33.js +0 -2
  1389. package/amd/_curry1-875b461d.js +0 -2
  1390. package/amd/_curry1-875b461d.js.map +0 -1
  1391. package/amd/_curry2-ad2c6a81.js +0 -2
  1392. package/amd/_curry2-ad2c6a81.js.map +0 -1
  1393. package/amd/_curry3-512d483b.js +0 -2
  1394. package/amd/_curry3-512d483b.js.map +0 -1
  1395. package/amd/_has-11a7a18f.js +0 -2
  1396. package/amd/_has-11a7a18f.js.map +0 -1
  1397. package/amd/classNames-429bf434.js +0 -2
  1398. package/amd/clientHints-9d985ef6.js +0 -2
  1399. package/amd/flexbox-aaa40e19.js +0 -2
  1400. package/amd/flexitem-d85d1561.js +0 -2
  1401. package/amd/index-4f4526ef.js +0 -2
  1402. package/amd/index-4f4526ef.js.map +0 -1
  1403. package/amd/index-6aed3532.js +0 -2
  1404. package/amd/index-6aed3532.js.map +0 -1
  1405. package/amd/index-6f29250e.js +0 -2
  1406. package/amd/keys-83d1523f.js +0 -2
  1407. package/amd/listViewSelectionTests-cf59cc80.js +0 -2
  1408. package/amd/listViewSelectionTests-cf59cc80.js.map +0 -1
  1409. package/amd/listViewTabbableModeTests-b1b39bd9.js +0 -2
  1410. package/amd/listViewTabbableModeTests-b1b39bd9.js.map +0 -1
  1411. package/amd/listViewTestFixtures-5ce87b59.js +0 -2
  1412. package/amd/listViewTestFixtures-5ce87b59.js.map +0 -1
  1413. package/amd/menuTestsUtils-31d41516.js +0 -2
  1414. package/amd/stringUtils-432c5155.js +0 -2
  1415. package/amd/testHelpers-ea3899da.js +0 -2
  1416. package/amd/tslib.es6-6a195797.js +0 -2
  1417. package/amd/tslib.es6-6a195797.js.map +0 -1
  1418. package/amd/useAnimation-5d80cd95.js +0 -2
  1419. package/amd/useFocusWithin-0a53949e.js +0 -2
  1420. package/amd/useSingleSelection-00ac27f8.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea-2fdab6db.js","sources":["../../src/UNSAFE_TextArea/MaxLengthCounter.tsx","../../src/UNSAFE_TextArea/TextArea.tsx"],"sourcesContent":["import { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useCallback } from 'preact/hooks';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\n\ntype Props = {\n maxLength: number;\n valueLength?: number;\n onClick?: () => void; // the calling component should focus on the appropriate element when clicked.\n};\n\nconst rootStyles = {\n base: cssProps`${{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n cursor: 'text',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-line-height)',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-secondary)',\n textDecorationLine: 'none',\n paddingTop: '0',\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-1x)',\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`\n};\nconst remainingTextStyles = {\n hide: cssProps`${{\n visibility: 'hidden'\n }}`\n};\n// the spans surrounding the {valueLength}, / and {maxlength} need to be display: inline-block\n// so that the order is flipped horizontally in RTL.\nconst spanStyles = cssProps`${{\n display: 'inline-block'\n}}`;\n\nconst noop = () => {};\n\nexport function MaxLengthCounter({ maxLength, valueLength = 0, onClick }: Props) {\n const { isFocused } = useFormFieldContext();\n // We don't want mousedown on this component to do anything, so prevent the default behavior.\n const killEvent = useCallback((event: Event) => {\n event.preventDefault();\n }, []);\n const textClasses = classNames([!isFocused && remainingTextStyles.hide]);\n const { pressProps } = usePress(onClick ?? noop);\n return (\n <div class={rootStyles.base} onMouseDown={killEvent} {...pressProps}>\n <span class={textClasses}>\n <span class={spanStyles}>{valueLength}</span>\n <span class={spanStyles}>/</span>\n <span class={spanStyles}>{maxLength}</span>\n </span>\n </div>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { Label } from '../UNSAFE_Label';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '../hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '../UNSAFE_TextField';\nimport { MaxLengthCounter } from './MaxLengthCounter';\nimport { Size } from '../utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\n\ntype TextFieldProps = ComponentProps<typeof TextField>;\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\n\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Determines whether the remaining number of characters that can be entered is shown or not.\n */\n maxLengthCounter?: 'none' | 'remaining';\n /**\n * Specifies how the input text characters are to be counted when maxLength is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how the user is allowed to manually resize the TextArea component.\n */\n resize?: TextFieldProps['resize'];\n /**\n * Specifies the ARIA role type.\n */\n role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\n */\n rows?: TextFieldInputProps['rows'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * Callback invoked when the user commits the entered value by blurring out of the field.\n */\n onCommit?: TextFieldInputProps['onCommit'];\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n};\n\nexport const TextArea = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthCounter = 'remaining',\n maxLengthUnit,\n messages,\n placeholder,\n resize,\n role,\n rows,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n if (isReadonly) {\n // TODO: We need to conditionally render the readonly innerReadonlyField as a textarea or div\n // also, the div will need to use white-space: pre-wrap so that the text will wrap like textarea\n // see JET-50636\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n as=\"textarea\"\n elementRef={readonlyElementRef}\n rows={rows}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n const onClickCounter = useCallback(() => {\n const elm = enabledElementRef.current;\n // for setSelectionRange(), len needs to be a number or null.\n const len = elm ? elm.value.length : null;\n // Since the counter element is after the text, clicking in this\n // should put the selection at the end of the text\n enabledElementRef.current?.setSelectionRange(len, len);\n // Clicking the counter should put the focus on the input field\n enabledElementRef.current?.focus();\n }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n isRequired={isRequired}\n inputRef={enabledElementRef}\n onCommit={onCommitAndDispatch}\n onInput={onFilteredInput}\n placeholder={placeholder}\n role={role}\n rows={rows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n resize={resize}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["rootStyles","remainingTextStyles","spanStyles","noop","MaxLengthCounter","maxLength","valueLength","onClick","isFocused","useFormFieldContext","killEvent","useCallback","event","textClasses","classNames","pressProps","usePress","_jsx","Object","assign","class","onMouseDown","children","_jsxs","jsxs","jsx","TextArea","forwardRef","ariaDescribedBy","assistiveText","autoComplete","autoFocus","helpSourceLink","helpSourceText","isDisabled","propIsDisabled","isReadonly","propIsReadonly","isRequired","isRequiredShown","label","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","maxLengthCounter","maxLengthUnit","messages","placeholder","resize","role","rows","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","value","variant","onInput","onCommit","ref","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","enabledElementRef","readonlyElementRef","focusProps","useFocusableTextField","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","contentVariant","styleVariant","isMaxLengthExceeded","onFilteredInput","useLengthFilter","labelComp","Label","undefined","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","fieldLabel","FormFieldContext","Provider","ReadonlyTextField","ReadonlyTextFieldInput","ariaLabelledBy","id","as","elementRef","hasInsideLabel","onClickCounter","elm","current","len","length","_a","setSelectionRange","_b","focus","mainContent","Fragment","TextFieldInput","inputRef","parentHasFocus","MaxLengthLiveRegion","TextField","onBlur","onfocusout","onFocus","onfocusin"],"mappings":"0jBAYA,MAAAA,aAgBAC,WAOAC,EAAA,UAIAC,EAAA,OAEA,SAAAC,GAAAC,UAAAA,EAAAC,YAAAA,EAAA,EAAAC,QAAAA,IACE,MAAAC,UAAAA,GAAAC,EAAAA,sBAEAC,EAAAC,EAAAA,YAAAC,4BAGAC,EAAAC,EAAAA,WAAA,EAAAN,GAAAP,KACAc,WAAAA,GAAAC,EAAAA,SAAAT,MAAAA,EAAAA,EAAAJ,GACA,OAAAc,MAAA,MAAAC,OAAAC,OAAA,CAAAC,MAAApB,EAAAqB,YAAAX,GAAAK,EAAA,CAAAO,SAAAC,EAAAC,KAAA,OAAAN,OAAAC,OAAA,CAAAC,MAAAP,GAAA,CAAAS,SAAA,CAAAL,EAAAQ,IAAA,OAAAP,OAAAC,OAAA,CAAAC,MAAAlB,GAAA,CAAAoB,SAAAhB,KAAAW,EAAAQ,IAAA,OAAAP,OAAAC,OAAA,CAAAC,MAAAlB,GAAA,CAAAoB,SAAA,OAAAL,EAAAQ,IAAA,OAAAP,OAAAC,OAAA,CAAAC,MAAAlB,GAAA,CAAAoB,SAAAjB,YCkHW,MAAAqB,EAAWC,EAAAA,WACtB,EAEIC,gBAAAA,EACAC,cAAAA,EACAC,aAAAA,EAAe,MACfC,UAAAA,GAAY,EACZC,eAAAA,EACAC,eAAAA,EACAC,WAAYC,EACZC,WAAYC,EACZC,WAAAA,GAAa,EACbC,gBAAAA,EACAC,MAAAA,EACAC,UAAWC,EACXC,gBAAiBC,EACjBvC,UA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sourcesContent":["import { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useCallback } from 'preact/hooks';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\n\ntype Props = {\n maxLength: number;\n valueLength?: number;\n onClick?: () => void; // the calling component should focus on the appropriate element when clicked.\n};\n\nconst rootStyles = {\n base: cssProps`${{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n cursor: 'text',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-line-height)',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-secondary)',\n textDecorationLine: 'none',\n paddingTop: '0',\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-1x)',\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`\n};\nconst remainingTextStyles = {\n hide: cssProps`${{\n visibility: 'hidden'\n }}`\n};\n// the spans surrounding the {valueLength}, / and {maxlength} need to be display: inline-block\n// so that the order is flipped horizontally in RTL.\nconst spanStyles = cssProps`${{\n display: 'inline-block'\n}}`;\n\nconst noop = () => {};\n\nexport function MaxLengthCounter({ maxLength, valueLength = 0, onClick }: Props) {\n const { isFocused } = useFormFieldContext();\n // We don't want mousedown on this component to do anything, so prevent the default behavior.\n const killEvent = useCallback((event: Event) => {\n event.preventDefault();\n }, []);\n const textClasses = classNames([!isFocused && remainingTextStyles.hide]);\n const { pressProps } = usePress(onClick ?? noop);\n return (\n <div class={rootStyles.base} onMouseDown={killEvent} {...pressProps}>\n <span class={textClasses}>\n <span class={spanStyles}>{valueLength}</span>\n <span class={spanStyles}>/</span>\n <span class={spanStyles}>{maxLength}</span>\n </span>\n </div>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { Label } from '../UNSAFE_Label';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '../hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '../UNSAFE_TextField';\nimport { MaxLengthCounter } from './MaxLengthCounter';\nimport { Size } from '../utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\n\ntype TextFieldProps = ComponentProps<typeof TextField>;\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\n\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Determines whether the remaining number of characters that can be entered is shown or not.\n */\n maxLengthCounter?: 'none' | 'remaining';\n /**\n * Specifies how the input text characters are to be counted when maxLength is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how the user is allowed to manually resize the TextArea component.\n */\n resize?: TextFieldProps['resize'];\n /**\n * Specifies the ARIA role type.\n */\n role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\n */\n rows?: TextFieldInputProps['rows'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * Callback invoked when the user commits the entered value by blurring out of the field.\n */\n onCommit?: TextFieldInputProps['onCommit'];\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n};\n\nexport const TextArea = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthCounter = 'remaining',\n maxLengthUnit,\n messages,\n placeholder,\n resize,\n role,\n rows,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n if (isReadonly) {\n // TODO: We need to conditionally render the readonly innerReadonlyField as a textarea or div\n // also, the div will need to use white-space: pre-wrap so that the text will wrap like textarea\n // see JET-50636\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n as=\"textarea\"\n elementRef={readonlyElementRef}\n rows={rows}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n const onClickCounter = useCallback(() => {\n const elm = enabledElementRef.current;\n // for setSelectionRange(), len needs to be a number or null.\n const len = elm ? elm.value.length : null;\n // Since the counter element is after the text, clicking in this\n // should put the selection at the end of the text\n enabledElementRef.current?.setSelectionRange(len, len);\n // Clicking the counter should put the focus on the input field\n enabledElementRef.current?.focus();\n }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n isRequired={isRequired}\n inputRef={enabledElementRef}\n onCommit={onCommitAndDispatch}\n onInput={onFilteredInput}\n placeholder={placeholder}\n role={role}\n rows={rows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n resize={resize}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["rootStyles","remainingTextStyles","spanStyles","noop","MaxLengthCounter","maxLength","valueLength","onClick","isFocused","useFormFieldContext","killEvent","useCallback","event","textClasses","classNames","hide","pressProps","usePress","_jsx","Object","assign","class","base","onMouseDown","children","_jsxs","forwardRef","useCurrentValueReducer","useFormContext","useFocusableTextField","useTextField","useLengthFilter","Label","InlineUserAssistance","FormFieldContext","ReadonlyTextField","ReadonlyTextFieldInput","Fragment","TextFieldInput","MaxLengthLiveRegion","TextField"],"mappings":";;;IAYA,MAAAA,UAAA,GAAA;;IAAA,CAAA,CAAA;IAgBA,MAAAC,mBAAA,GAAA;;IAAA,CAAA;IAMA;;IACA,MAAAC,UAAA,GAAA,mBAAA,CAAA;;IAIA,MAAAC,IAAA,GAAA,MAAA,EAAA,CAAA;;IAEA,SAAAC,gBAAA,CAAA;MAAAC,SAAA;IAAAC,EAAAA,WAAA,GAAA,CAAA;IAAAC,EAAAA,OAAAA;IAAA,CAAA,EAAA;MACE,MAAA;IAAAC,IAAAA,SAAAA;OAAAC,GAAAA,oDAAA,EAAA,CADF;;IAGE,EAAA,MAAAC,SAAA,GAAAC,iBAAA,CAAAC,KAAA,IAAA;;OAAA,IAAA,CAAA,CAAA;IAGA,EAAA,MAAAC,WAAA,GAAAC,qBAAA,CAAA,CAAA,CAAAN,SAAA,IAAAP,mBAAA,CAAAc,IAAA,CAAA,CAAA,CAAA;MACA,MAAA;IAAAC,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IAAA,IAAV,UAAU,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAV,UAAU,CAAE,SAAS,EAC9B,MAAM,EAAE,MAAM,EACV,EAAA,cAAc,EACd,eAAe,CAAA,CAAc,EACT,CAAA,CAAA,EAC5B;IACJ,CAAC;;;;;;;;;;;;"}
@@ -0,0 +1,161 @@
1
+ /* @oracle/oraclejet-preact: 14.0.7 */
2
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './hooks/UNSAFE_useFormContext', './hooks/UNSAFE_useFormFieldContext', './hooks/UNSAFE_useFocusableTextField', './UNSAFE_Label', './UNSAFE_TextField', './hooks/UNSAFE_useTextField', './UNSAFE_UserAssistance', './hooks/UNSAFE_useLengthFilter', 'preact/hooks', './hooks/UNSAFE_useCurrentValueReducer', './UNSAFE_TextArea', './ReadonlyTextFieldInput-4583f049', './TextFieldInput-312fb211', './TextArea-25fa8171'], (function (exports, jsxRuntime, preact, compat, hooks_UNSAFE_useFormContext, hooks_UNSAFE_useFormFieldContext, hooks_UNSAFE_useFocusableTextField, UNSAFE_Label, UNSAFE_TextField, hooks_UNSAFE_useTextField, UNSAFE_UserAssistance, hooks_UNSAFE_useLengthFilter, hooks, hooks_UNSAFE_useCurrentValueReducer, UNSAFE_TextArea, ReadonlyTextFieldInput, TextFieldInput, TextArea) { 'use strict';
3
+
4
+ // returns the lineHeight as a number of pixels.
5
+ const calculateLineHeight = (textarea) => {
6
+ const computedStyle = window.getComputedStyle(textarea);
7
+ const computedlineHeight = computedStyle.lineHeight;
8
+ if (computedlineHeight === 'normal') {
9
+ // We get 'normal' for values 'initial', 'inherit', 'unset' and 'normal'
10
+ // TODO: Unclear if we need this.
11
+ // getComputedStyle always return fontSize in pixels. Not likely a float, but since it's legal
12
+ // we use parseFloat()
13
+ const fontSize = parseFloat(computedStyle.fontSize);
14
+ return 1.2 * fontSize;
15
+ }
16
+ return parseFloat(computedlineHeight);
17
+ };
18
+ const getStylingHeight = (textarea) => {
19
+ const cssStyle = window.getComputedStyle(textarea);
20
+ const paddingTop = parseFloat(cssStyle.paddingTop);
21
+ const paddingBottom = parseFloat(cssStyle.paddingBottom);
22
+ const borderTop = parseFloat(cssStyle.borderTop);
23
+ const borderBottom = parseFloat(cssStyle.borderBottom);
24
+ return { paddingHeight: paddingTop + paddingBottom, borderHeight: borderTop + borderBottom };
25
+ };
26
+
27
+ // TODO: Make this fire when the container resizes - JET-50840
28
+ const useTextAreaAutosizing = ({ isReadonly, enabledElementRef, readonlyElementRef, minRows = 2, maxRows, value }) => {
29
+ hooks.useLayoutEffect(() => {
30
+ const textareaRef = isReadonly ? readonlyElementRef : enabledElementRef;
31
+ if (textareaRef.current === null)
32
+ return;
33
+ if (textareaRef.current instanceof HTMLDivElement)
34
+ return; // We don't need to do anything if the readonlyElement is a DIV.
35
+ const textarea = textareaRef.current;
36
+ const lineHeight = calculateLineHeight(textarea);
37
+ textarea.style.height = '0';
38
+ const { paddingHeight, borderHeight } = getStylingHeight(textarea);
39
+ const heightForMinRows = lineHeight * minRows + paddingHeight + borderHeight;
40
+ const scrollHeight = textarea.scrollHeight + borderHeight;
41
+ let resizedHeight = 0;
42
+ // if maxRows is -1 the textarea will grow or shrink to fit all the content.
43
+ // it won't shrink any less than rows.
44
+ if (maxRows === undefined) {
45
+ // we want to fit the entire scrollHeight, but we don't want
46
+ // to shrink smaller than the height for rows.
47
+ if (scrollHeight < heightForMinRows) {
48
+ resizedHeight = heightForMinRows;
49
+ }
50
+ else {
51
+ resizedHeight = scrollHeight;
52
+ }
53
+ }
54
+ else if (maxRows > minRows) {
55
+ // if maxRows is positive and greater than rows, the textarea will grow to fit the content
56
+ // up to maxrows, or shrink to fit the content and down to rows.
57
+ const heightForMaxRows = lineHeight * maxRows + paddingHeight + borderHeight;
58
+ if (scrollHeight > heightForMaxRows) {
59
+ resizedHeight = heightForMaxRows;
60
+ }
61
+ else if (scrollHeight < heightForMinRows) {
62
+ resizedHeight = heightForMinRows;
63
+ }
64
+ else {
65
+ resizedHeight = scrollHeight;
66
+ }
67
+ }
68
+ else {
69
+ resizedHeight = heightForMinRows;
70
+ }
71
+ // The 0.5 gaurantees that the clientHeight will be bigger than the scrollHeight, so no scrollbar appears.
72
+ textarea.style.height = resizedHeight + 0.5 + 'px';
73
+ }, [value, minRows, maxRows, isReadonly]);
74
+ };
75
+
76
+ const TextAreaAutosize = compat.forwardRef(({ ariaDescribedBy, assistiveText, autoComplete = 'off', autoFocus = false, helpSourceLink, helpSourceText, isDisabled: propIsDisabled, isReadonly: propIsReadonly, isRequired = false, isRequiredShown, label, labelEdge: propLabelEdge, labelStartWidth: propLabelStartWidth, maxLength, maxLengthCounter = 'remaining', maxLengthUnit, maxRows, messages, minRows = 2, placeholder, role,
77
+ //TODO: Add counter to show the length remaining - JET-50752
78
+ textAlign: propTextAlign, userAssistanceDensity: propUserAssistanceDensity, value, variant = 'default', onInput, onCommit }, ref) => {
79
+ const { currentCommitValue, dispatch } = hooks_UNSAFE_useCurrentValueReducer.useCurrentValueReducer({ value });
80
+ const onInputAndDispatch = compat.useCallback((detail) => {
81
+ // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)
82
+ dispatch({ type: 'input', payload: detail.value });
83
+ onInput === null || onInput === void 0 ? void 0 : onInput(detail);
84
+ }, [onInput]);
85
+ const onCommitAndDispatch = compat.useCallback((detail) => {
86
+ // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)
87
+ dispatch({ type: 'commit', payload: detail.value });
88
+ onCommit === null || onCommit === void 0 ? void 0 : onCommit(detail);
89
+ }, [onCommit]);
90
+ const { isDisabled: isFormDisabled, isReadonly: isFormReadonly, labelEdge: formLabelEdge, labelStartWidth: formLabelStartWidth, textAlign: formTextAlign, userAssistanceDensity: formUserAssistanceDensity } = hooks_UNSAFE_useFormContext.useFormContext();
91
+ // default to FormContext values if component properties are not specified
92
+ const isDisabled = propIsDisabled !== null && propIsDisabled !== void 0 ? propIsDisabled : isFormDisabled;
93
+ const isReadonly = propIsReadonly !== null && propIsReadonly !== void 0 ? propIsReadonly : isFormReadonly;
94
+ const labelEdge = propLabelEdge !== null && propLabelEdge !== void 0 ? propLabelEdge : formLabelEdge;
95
+ const labelStartWidth = propLabelStartWidth !== null && propLabelStartWidth !== void 0 ? propLabelStartWidth : formLabelStartWidth;
96
+ const textAlign = propTextAlign !== null && propTextAlign !== void 0 ? propTextAlign : formTextAlign;
97
+ const userAssistanceDensity = propUserAssistanceDensity !== null && propUserAssistanceDensity !== void 0 ? propUserAssistanceDensity : formUserAssistanceDensity;
98
+ const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = hooks_UNSAFE_useFocusableTextField.useFocusableTextField({ isDisabled, isReadonly, ref });
99
+ const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } = hooks_UNSAFE_useTextField.useTextField({
100
+ ariaDescribedBy,
101
+ contentVariant: 'textarea',
102
+ isDisabled,
103
+ isFocused,
104
+ isReadonly,
105
+ labelEdge,
106
+ messages,
107
+ styleVariant: variant,
108
+ value
109
+ });
110
+ // Handle length filter for user-typed inputs and controlled inputs
111
+ const { isMaxLengthExceeded, valueLength, onFilteredInput } = hooks_UNSAFE_useLengthFilter.useLengthFilter({
112
+ maxLength,
113
+ maxLengthUnit,
114
+ value,
115
+ onInput: onInputAndDispatch,
116
+ onCommit: onCommitAndDispatch
117
+ });
118
+ const labelComp = labelEdge !== 'none' ? jsxRuntime.jsx(UNSAFE_Label.Label, Object.assign({}, labelProps, { children: label })) : undefined;
119
+ const fieldLabelProps = {
120
+ label: labelEdge !== 'none' ? labelComp : undefined,
121
+ labelEdge: labelEdge !== 'none' ? labelEdge : undefined,
122
+ labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined
123
+ };
124
+ const ariaLabel = labelEdge === 'none' ? label : undefined;
125
+ const inlineUserAssistance = isDisabled || isReadonly ? (
126
+ // save space for user assistance if density is 'efficient', even though we don't
127
+ // render user assistance for disabled or readonly fields
128
+ userAssistanceDensity !== 'efficient' ? undefined : (jsxRuntime.jsx(UNSAFE_UserAssistance.InlineUserAssistance, Object.assign({ userAssistanceDensity: userAssistanceDensity }, userAssistanceProps)))) : (jsxRuntime.jsx(UNSAFE_UserAssistance.InlineUserAssistance, Object.assign({ assistiveText: assistiveText, fieldLabel: label, helpSourceLink: helpSourceLink, helpSourceText: helpSourceText, messages: messages, isRequiredShown: isRequiredShown, userAssistanceDensity: userAssistanceDensity }, userAssistanceProps)));
129
+ useTextAreaAutosizing({
130
+ isReadonly,
131
+ enabledElementRef,
132
+ readonlyElementRef,
133
+ minRows,
134
+ maxRows,
135
+ value
136
+ });
137
+ if (isReadonly) {
138
+ // TODO: should be able to configure whether start/end content is shown when readonly
139
+ // JET-49916 - Preact InputText: show start/end content when readonly
140
+ return (jsxRuntime.jsx(hooks_UNSAFE_useFormFieldContext.FormFieldContext.Provider, Object.assign({ value: formFieldContext }, { children: jsxRuntime.jsx(UNSAFE_TextField.ReadonlyTextField, Object.assign({ role: "presentation", inlineUserAssistance: inlineUserAssistance, variant: "textarea" }, fieldLabelProps, { children: jsxRuntime.jsx(ReadonlyTextFieldInput.ReadonlyTextFieldInput, Object.assign({ ariaDescribedBy: ariaDescribedBy, ariaLabel: ariaLabel, ariaLabelledBy: labelProps.id, elementRef: readonlyElementRef }, (maxRows ? { as: 'textarea', rows: minRows } : { as: 'div' }), { autoFocus: autoFocus, textAlign: textAlign, value: value, variant: "textarea", hasInsideLabel: label !== undefined && labelEdge === 'inside' })) })) })));
141
+ }
142
+ const onClickCounter = compat.useCallback(() => {
143
+ var _a, _b;
144
+ const elm = enabledElementRef.current;
145
+ // for setSelectionRange(), len needs to be a number or null.
146
+ const len = elm ? elm.value.length : null;
147
+ // Since the counter element is after the text, clicking in this
148
+ // should put the selection at the end of the text
149
+ (_a = enabledElementRef.current) === null || _a === void 0 ? void 0 : _a.setSelectionRange(len, len);
150
+ // Clicking the counter should put the focus on the input field
151
+ (_b = enabledElementRef.current) === null || _b === void 0 ? void 0 : _b.focus();
152
+ }, []);
153
+ const mainContent = (jsxRuntime.jsxs(preact.Fragment, { children: [jsxRuntime.jsx(TextFieldInput.TextFieldInput, Object.assign({ as: "textarea", ariaLabel: ariaLabel, autoComplete: autoComplete, autoFocus: autoFocus, currentCommitValue: currentCommitValue, hasInsideLabel: labelComp !== undefined && labelEdge === 'inside', isRequired: isRequired, inputRef: enabledElementRef, onCommit: onCommitAndDispatch, onInput: onFilteredInput, placeholder: placeholder, role: role, rows: minRows, textAlign: textAlign, value: value }, inputProps)), maxLengthCounter === 'remaining' && maxLength !== undefined && (jsxRuntime.jsx(TextArea.MaxLengthCounter, Object.assign({}, { maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }))), maxLength !== undefined && (jsxRuntime.jsx(UNSAFE_TextField.MaxLengthLiveRegion, Object.assign({}, { isMaxLengthExceeded, maxLength, valueLength })))] }));
154
+ return (jsxRuntime.jsx(hooks_UNSAFE_useFormFieldContext.FormFieldContext.Provider, Object.assign({ value: formFieldContext }, { children: jsxRuntime.jsx(UNSAFE_TextField.TextField, Object.assign({ mainContent: mainContent, inlineUserAssistance: inlineUserAssistance, onBlur: focusProps === null || focusProps === void 0 ? void 0 : focusProps.onfocusout, onFocus: focusProps === null || focusProps === void 0 ? void 0 : focusProps.onfocusin }, textFieldProps, fieldLabelProps)) })));
155
+ });
156
+
157
+ exports.TextAreaAutosize = TextAreaAutosize;
158
+
159
+ }));
160
+ /* */
161
+ //# sourceMappingURL=TextAreaAutosize-370b4a47.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextAreaAutosize-50b8719d.js","sources":["../../src/UNSAFE_TextAreaAutosize/ScrollHeightUtils.tsx","../../src/UNSAFE_TextAreaAutosize/useTextAreaAutosizing.tsx","../../src/UNSAFE_TextAreaAutosize/TextAreaAutosize.tsx"],"sourcesContent":["// returns the lineHeight as a number of pixels.\nexport const calculateLineHeight = (textarea: HTMLTextAreaElement): number => {\n const computedStyle = window.getComputedStyle(textarea);\n const computedlineHeight = computedStyle.lineHeight;\n if (computedlineHeight === 'normal') {\n // We get 'normal' for values 'initial', 'inherit', 'unset' and 'normal'\n // TODO: Unclear if we need this.\n // getComputedStyle always return fontSize in pixels. Not likely a float, but since it's legal\n // we use parseFloat()\n const fontSize = parseFloat(computedStyle.fontSize);\n return 1.2 * fontSize;\n }\n return parseFloat(computedlineHeight);\n};\nexport const getStylingHeight = (textarea: HTMLTextAreaElement) => {\n const cssStyle = window.getComputedStyle(textarea);\n const paddingTop = parseFloat(cssStyle.paddingTop);\n const paddingBottom = parseFloat(cssStyle.paddingBottom);\n const borderTop = parseFloat(cssStyle.borderTop);\n const borderBottom = parseFloat(cssStyle.borderBottom);\n return { paddingHeight: paddingTop + paddingBottom, borderHeight: borderTop + borderBottom };\n};\n","import { ComponentProps } from 'preact';\nimport { useLayoutEffect, Ref } from 'preact/hooks';\nimport { calculateLineHeight, getStylingHeight } from './ScrollHeightUtils';\nimport { TextAreaAutosize } from './TextAreaAutosize';\n\ntype PickedPropsFromTextAreaAutosize = Pick<\n ComponentProps<typeof TextAreaAutosize>,\n 'minRows' | 'maxRows' | 'value'\n>;\ntype Props = PickedPropsFromTextAreaAutosize & {\n isReadonly?: boolean;\n enabledElementRef: Ref<HTMLTextAreaElement>;\n readonlyElementRef: Ref<HTMLTextAreaElement | HTMLDivElement>;\n};\n\n// TODO: Make this fire when the container resizes - JET-50840\nexport const useTextAreaAutosizing = ({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows = 2,\n maxRows,\n value\n}: Props) => {\n useLayoutEffect(() => {\n const textareaRef = isReadonly ? readonlyElementRef : enabledElementRef;\n if (textareaRef.current === null) return;\n if (textareaRef.current instanceof HTMLDivElement) return; // We don't need to do anything if the readonlyElement is a DIV.\n const textarea = textareaRef.current;\n const lineHeight = calculateLineHeight(textarea);\n textarea.style.height = '0';\n const { paddingHeight, borderHeight } = getStylingHeight(textarea);\n const heightForMinRows = lineHeight * minRows + paddingHeight + borderHeight;\n const scrollHeight = textarea.scrollHeight + borderHeight;\n let resizedHeight = 0;\n // if maxRows is -1 the textarea will grow or shrink to fit all the content.\n // it won't shrink any less than rows.\n if (maxRows === undefined) {\n // we want to fit the entire scrollHeight, but we don't want\n // to shrink smaller than the height for rows.\n if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else if (maxRows > minRows) {\n // if maxRows is positive and greater than rows, the textarea will grow to fit the content\n // up to maxrows, or shrink to fit the content and down to rows.\n const heightForMaxRows = lineHeight * maxRows + paddingHeight + borderHeight;\n if (scrollHeight > heightForMaxRows) {\n resizedHeight = heightForMaxRows;\n } else if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else {\n resizedHeight = heightForMinRows;\n }\n // The 0.5 gaurantees that the clientHeight will be bigger than the scrollHeight, so no scrollbar appears.\n textarea.style.height = resizedHeight + 0.5 + 'px';\n }, [value, minRows, maxRows, isReadonly]);\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { Label } from '../UNSAFE_Label';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '../hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '../UNSAFE_TextField';\nimport { useTextAreaAutosizing } from './useTextAreaAutosizing';\nimport { Size } from '../utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { MaxLengthCounter } from '../UNSAFE_TextArea';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Determines whether the remaining number of characters that can be entered is shown or not.\n */\n maxLengthCounter?: 'none' | 'remaining';\n /**\n * Specifies how the input text characters are to be counted when maxLength is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Specifies the maximum number of rows that the TextAreaAutosize is allowed to grow to.\n * If maxRows is less than minRows, it is ignored.\n */\n maxRows?: number;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Specifies the minimum number of rows that the TextAreaAutosize is allowed to shrink to.\n */\n minRows?: number;\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how the user is allowed to manually resize the TextArea component.\n */\n role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * Callback invoked when the user commits the entered value by blurring out of the field.\n *\n */\n onCommit?: TextFieldInputProps['onCommit'];\n\n /**\n * Callback invoked when the user inputs a value.\n *\n */\n onInput: TextFieldInputProps['onInput'];\n};\nexport const TextAreaAutosize = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthCounter = 'remaining',\n maxLengthUnit,\n maxRows,\n messages,\n minRows = 2,\n placeholder,\n role,\n //TODO: Add counter to show the length remaining - JET-50752\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement | HTMLDivElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n useTextAreaAutosizing({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows,\n maxRows,\n value\n });\n\n if (isReadonly) {\n // TODO: should be able to configure whether start/end content is shown when readonly\n // JET-49916 - Preact InputText: show start/end content when readonly\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n elementRef={readonlyElementRef}\n {...(maxRows ? { as: 'textarea', rows: minRows } : { as: 'div' })}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n const onClickCounter = useCallback(() => {\n const elm = enabledElementRef.current;\n // for setSelectionRange(), len needs to be a number or null.\n const len = elm ? elm.value.length : null;\n // Since the counter element is after the text, clicking in this\n // should put the selection at the end of the text\n enabledElementRef.current?.setSelectionRange(len, len);\n // Clicking the counter should put the focus on the input field\n enabledElementRef.current?.focus();\n }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n isRequired={isRequired}\n inputRef={enabledElementRef}\n onCommit={onCommitAndDispatch}\n onInput={onFilteredInput}\n placeholder={placeholder}\n role={role}\n rows={minRows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["useTextAreaAutosizing","isReadonly","enabledElementRef","readonlyElementRef","minRows","maxRows","value","useLayoutEffect","textareaRef","current","HTMLDivElement","textarea","lineHeight","computedStyle","window","getComputedStyle","computedlineHeight","parseFloat","fontSize","calculateLineHeight","style","height","paddingHeight","borderHeight","cssStyle","paddingTop","paddingBottom","borderTop","borderBottom","getStylingHeight","heightForMinRows","scrollHeight","resizedHeight","undefined","heightForMaxRows","TextAreaAutosize","forwardRef","ariaDescribedBy","assistiveText","autoComplete","autoFocus","helpSourceLink","helpSourceText","isDisabled","propIsDisabled","propIsReadonly","isRequired","isRequiredShown","label","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","maxLength","maxLengthCounter","maxLengthUnit","messages","placeholder","role","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","variant","onInput","onCommit","ref","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","useCallback","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","focusProps","isFocused","useFocusableTextField","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","contentVariant","styleVariant","isMaxLengthExceeded","valueLength","onFilteredInput","useLengthFilter","labelComp","_jsx","Label","Object","assign","fieldLabelProps","ariaLabel","inlineUserAssistance","jsx","InlineUserAssistance","fieldLabel","FormFieldContext","Provider","children","ReadonlyTextField","ReadonlyTextFieldInput","ariaLabelledBy","id","elementRef","as","rows","hasInsideLabel","onClickCounter","elm","len","length","_a","setSelectionRange","_b","focus","mainContent","_jsxs","Fragment","TextFieldInput","inputRef","MaxLengthCounter","parentHasFocus","onClick","MaxLengthLiveRegion","TextField","onBlur","onfocusout","onFocus","onfocusin"],"mappings":"wgBACO,MCeMA,EAAwB,EACnCC,WAAAA,EACAC,kBAAAA,EACAC,mBAAAA,EACAC,QAAAA,EAAU,EACVC,QAAAA,EACAC,MAAAA,MAEAC,EAAAA,gBAAgB,KACd,MAAMC,EAAcP,EAAaE,EAAqBD,EACtD,GAA4B,OAAxBM,EAAYC,QAAkB,OAClC,GAAID,EAAYC,mBAAmBC,eAAgB,OACnD,MAAMC,EAAWH,EAAYC,QACvBG,ED5ByB,CAACD,IAClC,MAAME,EAAgBC,OAAOC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GV,QAA3BC,EAAA1H,GAAkBO,eAAS,IAAAmH,GAAAA,EAAAC,kBAAkBH,EAAKA,GAEvB,QAA3BI,EAAA5H,GAAkBO,eAAS,IAAAqH,GAAAA,EAAAC,SAC1B,IAEGC,GACJC,EAAAA,KAACC,EAAQA,SAAA,CAAAnB,SAAA,CACPZ,EAAAA,IAACgC,EAAAA,eACC9B,OAAAC,OAAA,CAAAe,GAAG,WACHb,UAAWA,GACXjE,aAAcA,EACdC,UAAWA,EACX2B,mBAAoBA,EACpBoD,oBAA8BtF,IAAdiE,IAAyC,WAAdjD,GAC3CH,WAAYA,EACZsF,SAAUlI,GACV+D,SAAUU,EACVX,QAASgC,GACTvC,YAAaA,EACbC,KAAMA,EACN4D,KAAMlH,EACNuD,UAAWA,GACXrD,MAAOA,GACHiF,KAEgB,cAArBjC,QAAkDrB,IAAdoB,GACnC8C,EAAAO,IAAC2B,EAAgBA,iBAAAhC,OAAAC,OAAA,GACX,CAAEjD,UAAAA,EAAW0C,YAAAA,GAAauC,eAAgBlD,GAAWmD,QAASf,WAGvDvF,IAAdoB,GACC8C,EAAAA,IAACqC,EAAAA,oBAAmBnC,OAAAC,OAAA,GAAK,CAAER,oBAAAA,GAAqBzC,UAAAA,EAAW0C,YAAAA,SAKjE,OACEI,MAACU,EAAgBA,iBAACC,SAAST,OAAAC,OAAA,CAAAhG,MAAOgF,IAAgB,CAAAyB,SAChDZ,EAAAA,IAACsC,EAASA,UAAApC,OAAAC,OAAA,CACR0B,YAAaA,GACbvB,qBAAsBA,GACtBiC,OAAQvD,MAAAA,UAAAA,GAAYwD,WACpBC,QAASzD,MAAAA,UAAAA,GAAY0D,WACjBpD,GACAc"}
1
+ {"version":3,"file":"TextAreaAutosize-370b4a47.js","sources":["../../src/UNSAFE_TextAreaAutosize/ScrollHeightUtils.tsx","../../src/UNSAFE_TextAreaAutosize/useTextAreaAutosizing.tsx","../../src/UNSAFE_TextAreaAutosize/TextAreaAutosize.tsx"],"sourcesContent":["// returns the lineHeight as a number of pixels.\nexport const calculateLineHeight = (textarea: HTMLTextAreaElement): number => {\n const computedStyle = window.getComputedStyle(textarea);\n const computedlineHeight = computedStyle.lineHeight;\n if (computedlineHeight === 'normal') {\n // We get 'normal' for values 'initial', 'inherit', 'unset' and 'normal'\n // TODO: Unclear if we need this.\n // getComputedStyle always return fontSize in pixels. Not likely a float, but since it's legal\n // we use parseFloat()\n const fontSize = parseFloat(computedStyle.fontSize);\n return 1.2 * fontSize;\n }\n return parseFloat(computedlineHeight);\n};\nexport const getStylingHeight = (textarea: HTMLTextAreaElement) => {\n const cssStyle = window.getComputedStyle(textarea);\n const paddingTop = parseFloat(cssStyle.paddingTop);\n const paddingBottom = parseFloat(cssStyle.paddingBottom);\n const borderTop = parseFloat(cssStyle.borderTop);\n const borderBottom = parseFloat(cssStyle.borderBottom);\n return { paddingHeight: paddingTop + paddingBottom, borderHeight: borderTop + borderBottom };\n};\n","import { ComponentProps } from 'preact';\nimport { useLayoutEffect, Ref } from 'preact/hooks';\nimport { calculateLineHeight, getStylingHeight } from './ScrollHeightUtils';\nimport { TextAreaAutosize } from './TextAreaAutosize';\n\ntype PickedPropsFromTextAreaAutosize = Pick<\n ComponentProps<typeof TextAreaAutosize>,\n 'minRows' | 'maxRows' | 'value'\n>;\ntype Props = PickedPropsFromTextAreaAutosize & {\n isReadonly?: boolean;\n enabledElementRef: Ref<HTMLTextAreaElement>;\n readonlyElementRef: Ref<HTMLTextAreaElement | HTMLDivElement>;\n};\n\n// TODO: Make this fire when the container resizes - JET-50840\nexport const useTextAreaAutosizing = ({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows = 2,\n maxRows,\n value\n}: Props) => {\n useLayoutEffect(() => {\n const textareaRef = isReadonly ? readonlyElementRef : enabledElementRef;\n if (textareaRef.current === null) return;\n if (textareaRef.current instanceof HTMLDivElement) return; // We don't need to do anything if the readonlyElement is a DIV.\n const textarea = textareaRef.current;\n const lineHeight = calculateLineHeight(textarea);\n textarea.style.height = '0';\n const { paddingHeight, borderHeight } = getStylingHeight(textarea);\n const heightForMinRows = lineHeight * minRows + paddingHeight + borderHeight;\n const scrollHeight = textarea.scrollHeight + borderHeight;\n let resizedHeight = 0;\n // if maxRows is -1 the textarea will grow or shrink to fit all the content.\n // it won't shrink any less than rows.\n if (maxRows === undefined) {\n // we want to fit the entire scrollHeight, but we don't want\n // to shrink smaller than the height for rows.\n if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else if (maxRows > minRows) {\n // if maxRows is positive and greater than rows, the textarea will grow to fit the content\n // up to maxrows, or shrink to fit the content and down to rows.\n const heightForMaxRows = lineHeight * maxRows + paddingHeight + borderHeight;\n if (scrollHeight > heightForMaxRows) {\n resizedHeight = heightForMaxRows;\n } else if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else {\n resizedHeight = heightForMinRows;\n }\n // The 0.5 gaurantees that the clientHeight will be bigger than the scrollHeight, so no scrollbar appears.\n textarea.style.height = resizedHeight + 0.5 + 'px';\n }, [value, minRows, maxRows, isReadonly]);\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { Label } from '../UNSAFE_Label';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '../hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '../UNSAFE_TextField';\nimport { useTextAreaAutosizing } from './useTextAreaAutosizing';\nimport { Size } from '../utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { MaxLengthCounter } from '../UNSAFE_TextArea';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Determines whether the remaining number of characters that can be entered is shown or not.\n */\n maxLengthCounter?: 'none' | 'remaining';\n /**\n * Specifies how the input text characters are to be counted when maxLength is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Specifies the maximum number of rows that the TextAreaAutosize is allowed to grow to.\n * If maxRows is less than minRows, it is ignored.\n */\n maxRows?: number;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Specifies the minimum number of rows that the TextAreaAutosize is allowed to shrink to.\n */\n minRows?: number;\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how the user is allowed to manually resize the TextArea component.\n */\n role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * Callback invoked when the user commits the entered value by blurring out of the field.\n *\n */\n onCommit?: TextFieldInputProps['onCommit'];\n\n /**\n * Callback invoked when the user inputs a value.\n *\n */\n onInput: TextFieldInputProps['onInput'];\n};\nexport const TextAreaAutosize = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthCounter = 'remaining',\n maxLengthUnit,\n maxRows,\n messages,\n minRows = 2,\n placeholder,\n role,\n //TODO: Add counter to show the length remaining - JET-50752\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement | HTMLDivElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n useTextAreaAutosizing({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows,\n maxRows,\n value\n });\n\n if (isReadonly) {\n // TODO: should be able to configure whether start/end content is shown when readonly\n // JET-49916 - Preact InputText: show start/end content when readonly\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n elementRef={readonlyElementRef}\n {...(maxRows ? { as: 'textarea', rows: minRows } : { as: 'div' })}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n const onClickCounter = useCallback(() => {\n const elm = enabledElementRef.current;\n // for setSelectionRange(), len needs to be a number or null.\n const len = elm ? elm.value.length : null;\n // Since the counter element is after the text, clicking in this\n // should put the selection at the end of the text\n enabledElementRef.current?.setSelectionRange(len, len);\n // Clicking the counter should put the focus on the input field\n enabledElementRef.current?.focus();\n }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n isRequired={isRequired}\n inputRef={enabledElementRef}\n onCommit={onCommitAndDispatch}\n onInput={onFilteredInput}\n placeholder={placeholder}\n role={role}\n rows={minRows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["useLayoutEffect","forwardRef","useCurrentValueReducer","useCallback","useFormContext","useFocusableTextField","useTextField","useLengthFilter","_jsx","Label","InlineUserAssistance","FormFieldContext","ReadonlyTextField","ReadonlyTextFieldInput","_jsxs","Fragment","TextFieldInput","MaxLengthCounter","MaxLengthLiveRegion","TextField"],"mappings":";;;IAAA;IACO,MAAM,mBAAmB,GAAG,CAAC,QAA6B,KAAY;QAC3E,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAA,MAAM,kBAAkB,GAAG,aAAa,CAAC,UAAU,CAAC;QACpD,IAAI,kBAAkB,KAAK,QAAQ,EAAE;;;;;YAKnC,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACpD,OAAO,GAAG,GAAG,QAAQ,CAAC;IACvB,KAAA;IACD,IAAA,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC,CAAC;IACK,MAAM,gBAAgB,GAAG,CAAC,QAA6B,KAAI;QAChE,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACnD,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACvD,IAAA,OAAO,EAAE,aAAa,EAAE,UAAU,GAAG,aAAa,EAAE,YAAY,EAAE,SAAS,GAAG,YAAY,EAAE,CAAC;IAC/F,CAAC;;ICND;IACO,MAAM,qBAAqB,GAAG,CAAC,EACpC,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,GAAG,CAAC,EACX,OAAO,EACP,KAAK,EACC,KAAI;QACVA,qBAAe,CAAC,MAAK;YACnB,MAAM,WAAW,GAAG,UAAU,GAAG,kBAAkB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ACH,EACA,SAAS,KAAK,SAAS,KACtBT,cAAA,CAACU,oCAAmB,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,WAAW,EAAE,CAAA,CAAI,CAC7E,CAAA,EAAA,CACQ,CACZ,CAAC;QAEF,QACEV,eAACG,iDAAgB,CAAC,QAAQ,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,gBAAgB,EAAA,EAAA,EAAA,QAAA,EAChDH,eAACW,0BAAS,EAAA,MAAA,CAAA,MAAA,CAAA,EACR,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,MAAM,EAAE,UAAU,KAAV,IAAA,IAAA,UAAU,uBAAV,UAAU,CAAE,UAAU,EAC9B,OAAO,EAAE,UAAU,KAAV,IAAA,IAAA,UAAU,uBAAV,UAAU,CAAE,SAAS,EAC1B,EAAA,cAAc,EACd,eAAe,CAAA,CAAc,EACT,CAAA,CAAA,EAC5B;IACJ,CAAC;;;;;;;;;;;"}
@@ -0,0 +1,172 @@
1
+ /* @oracle/oraclejet-preact: 14.0.7 */
2
+ define(['exports', './tslib.es6-71b1ba5b', 'preact/jsx-runtime', 'module', './hooks/UNSAFE_useFormFieldContext', './hooks/UNSAFE_useTabbableMode', './hooks/UNSAFE_useTextFieldInputHandlers', './utils/UNSAFE_classNames', './utils/UNSAFE_interpolations/text', './utils/UNSAFE_mergeInterpolations', './FormControlUtils-802d298a', './classNames-027de734'], (function (exports, tslib_es6, jsxRuntime, linaria, hooks_UNSAFE_useFormFieldContext, hooks_UNSAFE_useTabbableMode, hooks_UNSAFE_useTextFieldInputHandlers, utils_UNSAFE_classNames, utils_UNSAFE_interpolations_text, utils_UNSAFE_mergeInterpolations, FormControlUtils, classNames) { 'use strict';
3
+
4
+ const textFieldStyles = {
5
+ base: "base-1ps37j8",
6
+ embedded: "embedded-1dp4rlt",
7
+ nonReadonly: "nonReadonly-btf41c"
8
+ };
9
+ const readonlyStyles = {
10
+ base: "base-jkw1e3",
11
+ insideEnabledForm: "insideEnabledForm-1wn9bt9",
12
+ textarea: "textarea-1jap8j6",
13
+ insideEnabledFormLabelInside: "insideEnabledFormLabelInside-h5ngyp",
14
+ notInsideEnabledForm: "notInsideEnabledForm-132lv2k",
15
+ textareaNotInsideEnabledForm: "textareaNotInsideEnabledForm-1qdha6a"
16
+ }; //Consolidating all loading styles on form elements here
17
+
18
+ const loadingStyles = "loadingStyles-mcrwe";
19
+ const getTextFieldClasses = (readonly, variant) => {
20
+ return classNames.classNames([textFieldStyles.base, variant === 'embedded' && textFieldStyles.embedded, !readonly && textFieldStyles.nonReadonly]);
21
+ };
22
+ const getReadonlyClasses = (isInsideNonReadonlyForm, hasInsideLabel, variant) => {
23
+ const classes = classNames.classNames([readonlyStyles.base, variant === 'textarea' && readonlyStyles.textarea, isInsideNonReadonlyForm ? readonlyStyles.insideEnabledForm : readonlyStyles.notInsideEnabledForm, variant === 'textarea' && !isInsideNonReadonlyForm && readonlyStyles.textareaNotInsideEnabledForm, isInsideNonReadonlyForm && hasInsideLabel && readonlyStyles.insideEnabledFormLabelInside]);
24
+ return classes;
25
+ };
26
+ const getInputId = id => {
27
+ return (id !== null && id !== void 0 ? id : '') + '|input';
28
+ };
29
+ const isInputPlaceholderShown = (hasInsideLabel, hasValue, isFocused) => {
30
+ return !(hasInsideLabel && !hasValue && !isFocused);
31
+ };
32
+
33
+ const rootStyles = {
34
+ base: "base-1nyhfwk",
35
+ // removes margin that Safari adds to the input element
36
+ input: "input-cauwoy",
37
+ textarea: "textarea-1z08nb7",
38
+ password: "password-1dhn303",
39
+ labelDefaultPadding: "labelDefaultPadding-drw2vj",
40
+ labelInsideBase: "labelInsideBase-t7x9c9",
41
+ textareaLabelInsideBase: "textareaLabelInsideBase-cjo3hr",
42
+ labelInsideNoValueAndHasFocus: "labelInsideNoValueAndHasFocus-ac84ic",
43
+ hasStartContent: "hasStartContent-1dqxea2",
44
+ hasEndContent: "hasEndContent-2id6bk",
45
+ defaultColor: "defaultColor-82m2du",
46
+ disabledColor: "disabledColor-1lk64vn",
47
+ // The 0.25em is the space between the prefix and the input. This is equivalent to ' '.
48
+ hasPrefix: "hasPrefix-pnrj41",
49
+ hasSuffix: "hasSuffix-1q09l95",
50
+ default: "default-uqvucq",
51
+ defaultPaddingStart: "defaultPaddingStart-uqovse",
52
+ defaultPaddingEnd: "defaultPaddingEnd-bgsrcz",
53
+ embedded: "embedded-o71rm"
54
+ };
55
+ const interpolations = [...Object.values(utils_UNSAFE_interpolations_text.textInterpolations)];
56
+ const styleInterpolations = utils_UNSAFE_mergeInterpolations.mergeInterpolations(interpolations);
57
+ const TextFieldInput = _a => {
58
+ var {
59
+ as = 'input',
60
+ ariaAutoComplete,
61
+ ariaControls,
62
+ ariaDescribedBy,
63
+ ariaExpanded,
64
+ ariaInvalid,
65
+ ariaLabel,
66
+ ariaLabelledBy,
67
+ ariaValueMax,
68
+ ariaValueMin,
69
+ ariaValueNow,
70
+ ariaValueText,
71
+ autoComplete,
72
+ autoFocus,
73
+ currentCommitValue,
74
+ hasEndContent = false,
75
+ hasInsideLabel = false,
76
+ hasPrefix = false,
77
+ hasStartContent = false,
78
+ hasSuffix = false,
79
+ id,
80
+ inputRef,
81
+ placeholder,
82
+ isRequired,
83
+ role,
84
+ rows,
85
+ spellcheck,
86
+ type,
87
+ value = '',
88
+ variant = 'default',
89
+ onInput,
90
+ onCommit,
91
+ onKeyDown,
92
+ onKeyUp
93
+ } = _a,
94
+ props = tslib_es6.__rest(_a, ["as", "ariaAutoComplete", "ariaControls", "ariaDescribedBy", "ariaExpanded", "ariaInvalid", "ariaLabel", "ariaLabelledBy", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText", "autoComplete", "autoFocus", "currentCommitValue", "hasEndContent", "hasInsideLabel", "hasPrefix", "hasStartContent", "hasSuffix", "id", "inputRef", "placeholder", "isRequired", "role", "rows", "spellcheck", "type", "value", "variant", "onInput", "onCommit", "onKeyDown", "onKeyUp"]);
95
+
96
+ const hasValue = value !== '';
97
+ const {
98
+ isDisabled,
99
+ isFocused,
100
+ isLoading,
101
+ isReadonly
102
+ } = hooks_UNSAFE_useFormFieldContext.useFormFieldContext();
103
+ const myPlaceholder = isInputPlaceholderShown(hasInsideLabel, hasValue, isFocused) ? placeholder : undefined;
104
+ const {
105
+ class: styleInterpolationClasses
106
+ } = styleInterpolations(props);
107
+ const renderPrefix = !isDisabled && hasPrefix;
108
+ const renderSuffix = !isDisabled && hasSuffix;
109
+ const inputClasses = classNames.classNames(['oj-c-text-field-input', rootStyles.base, variant === 'default' ? classNames.classNames([rootStyles.default, as === 'textarea' && rootStyles.textarea, as === 'input' && rootStyles.input, type === 'password' && rootStyles.password, !hasStartContent && !renderPrefix && rootStyles.defaultPaddingStart, !hasEndContent && !renderSuffix && rootStyles.defaultPaddingEnd]) : rootStyles.embedded, hasInsideLabel && classNames.classNames([rootStyles.labelInsideBase, as === 'textarea' && rootStyles.textareaLabelInsideBase, !hasValue && isFocused && rootStyles.labelInsideNoValueAndHasFocus]), !hasInsideLabel && as !== 'textarea' && rootStyles.labelDefaultPadding, // We want the input to have padding on itself. This gives the user more space to click on to set focus to the input.
110
+ // The padding between the input and the icon is different than the padding between the input and prefix/suffix (since they are both text)
111
+ // startcontentpadding+input+endcontentpadding
112
+ hasStartContent && !hasPrefix && rootStyles.hasStartContent, hasEndContent && !hasSuffix && rootStyles.hasEndContent, isDisabled ? rootStyles.disabledColor : rootStyles.defaultColor, // prefix+prefixpadding+input+suffixpadding+suffix
113
+ // if there is also a startcontent or end content,
114
+ // the prefix/suffix will have that padding on it (see PrefixSuffix)
115
+ renderPrefix && rootStyles.hasPrefix, renderSuffix && rootStyles.hasSuffix, styleInterpolationClasses]);
116
+ const Comp = as || 'input';
117
+ const handlers = hooks_UNSAFE_useTextFieldInputHandlers.useTextFieldInputHandlers({
118
+ currentCommitValue,
119
+ value,
120
+ onInput,
121
+ onCommit,
122
+ onKeyDown
123
+ }); // the implicit default for tabindex on an input is 0, so do not explicitly set it.
124
+ // JET-52914 - Implement Tabbable mode API contract in InputText
125
+ // if not tabbable, spread tabbableModeProps on component
126
+
127
+ const {
128
+ isTabbable,
129
+ tabbableModeProps
130
+ } = hooks_UNSAFE_useTabbableMode.useTabbableMode(); // TODO: for autoComplete='off', need to configure attrs appropriately to make sure it
131
+ // works across browsers and versions (from review on 3/11/22)
132
+
133
+ return jsxRuntime.jsx(Comp, Object.assign({
134
+ "aria-autocomplete": ariaAutoComplete,
135
+ "aria-controls": ariaControls,
136
+ "aria-describedby": ariaDescribedBy,
137
+ "aria-expanded": ariaExpanded,
138
+ "aria-invalid": ariaInvalid,
139
+ "aria-label": isLoading ? FormControlUtils.getLoadingAriaLabel() : ariaLabel ? ariaLabel : undefined,
140
+ "aria-labelledby": ariaLabelledBy,
141
+ "aria-required": isRequired ? true : undefined,
142
+ "aria-valuemax": ariaValueMax,
143
+ "aria-valuemin": ariaValueMin,
144
+ "aria-valuenow": ariaValueNow,
145
+ "aria-valuetext": ariaValueText,
146
+ autocomplete: autoComplete,
147
+ autofocus: autoFocus,
148
+ class: inputClasses,
149
+ disabled: isDisabled,
150
+ id: id,
151
+ onKeyUp: onKeyUp,
152
+ placeholder: myPlaceholder,
153
+ readonly: isReadonly,
154
+ // @ts-ignore
155
+ ref: inputRef,
156
+ role: role,
157
+ rows: rows,
158
+ spellcheck: spellcheck,
159
+ type: type,
160
+ value: value
161
+ }, handlers, !isTabbable && tabbableModeProps));
162
+ };
163
+
164
+ exports.TextFieldInput = TextFieldInput;
165
+ exports.getInputId = getInputId;
166
+ exports.getReadonlyClasses = getReadonlyClasses;
167
+ exports.getTextFieldClasses = getTextFieldClasses;
168
+ exports.loadingStyles = loadingStyles;
169
+
170
+ }));
171
+ /* */
172
+ //# sourceMappingURL=TextFieldInput-312fb211.js.map