@oracle/oraclejet-preact 14.0.15 → 14.0.16

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 (1054) hide show
  1. package/amd/Badge-98a677f3.js +2 -0
  2. package/amd/{Badge-9175fbab.js.map → Badge-98a677f3.js.map} +1 -1
  3. package/amd/BaseButton-174b82cf.js +2 -0
  4. package/amd/{BaseButton-ebed03fc.js.map → BaseButton-174b82cf.js.map} +1 -1
  5. package/amd/Button-90c6e9f9.js +2 -0
  6. package/amd/{Button-68100aa2.js.map → Button-90c6e9f9.js.map} +1 -1
  7. package/amd/Chip-fc2e4a70.js +2 -0
  8. package/amd/{Chip-27950497.js.map → Chip-fc2e4a70.js.map} +1 -1
  9. package/amd/ClearIcon-235a74a8.js +2 -0
  10. package/amd/{ClearIcon-fbfb919b.js.map → ClearIcon-235a74a8.js.map} +1 -1
  11. package/amd/{Collection-7f6d38b2.js → Collection-9df1abea.js} +1 -1
  12. package/amd/{Collection-7f6d38b2.js.map → Collection-9df1abea.js.map} +1 -1
  13. package/amd/ComponentMessage-3afec011.js +2 -0
  14. package/amd/{ComponentMessage-d6eabb8b.js.map → ComponentMessage-3afec011.js.map} +1 -1
  15. package/amd/ComponentMessageContainer-bc250349.js +2 -0
  16. package/amd/{ComponentMessageContainer-9d207766.js.map → ComponentMessageContainer-bc250349.js.map} +1 -1
  17. package/amd/{Divider-ccff52b0.js → Divider-3fd74acf.js} +2 -2
  18. package/amd/{Divider-ccff52b0.js.map → Divider-3fd74acf.js.map} +1 -1
  19. package/amd/{FilePicker-cb61ddca.js → FilePicker-12577518.js} +2 -2
  20. package/amd/{FilePicker-cb61ddca.js.map → FilePicker-12577518.js.map} +1 -1
  21. package/amd/Flex-09e74761.js +2 -0
  22. package/amd/{Flex-feea6d33.js.map → Flex-09e74761.js.map} +1 -1
  23. package/amd/{Floating-cde13417.js → Floating-0746d380.js} +2 -2
  24. package/amd/{Floating-cde13417.js.map → Floating-0746d380.js.map} +1 -1
  25. package/amd/FocusTrap-d3e74e81.js +2 -0
  26. package/amd/{FocusTrap-c829bbb6.js.map → FocusTrap-d3e74e81.js.map} +1 -1
  27. package/amd/FormControlUtils-dae9e648.js +2 -0
  28. package/amd/{FormControlUtils-05d612b2.js.map → FormControlUtils-dae9e648.js.map} +1 -1
  29. package/amd/Heading-10fc3dc7.js +2 -0
  30. package/amd/{Heading-b6851001.js.map → Heading-10fc3dc7.js.map} +1 -1
  31. package/amd/HiddenAccessible-14957c32.js +2 -0
  32. package/amd/{HiddenAccessible-7a830f5b.js.map → HiddenAccessible-14957c32.js.map} +1 -1
  33. package/amd/HighlightText-444c1227.js +2 -0
  34. package/amd/{HighlightText-0dcc56c8.js.map → HighlightText-444c1227.js.map} +1 -1
  35. package/amd/Icon-0f001e22.js +2 -0
  36. package/amd/{Icon-734f5882.js.map → Icon-0f001e22.js.map} +1 -1
  37. package/amd/Indexer-bbc07fbd.js +2 -0
  38. package/amd/{Indexer-db8fef02.js.map → Indexer-bbc07fbd.js.map} +1 -1
  39. package/amd/InlineHelpSource-c2887059.js +2 -0
  40. package/amd/{InlineHelpSource-b84f4d4c.js.map → InlineHelpSource-c2887059.js.map} +1 -1
  41. package/amd/Link-b7446b22.js +2 -0
  42. package/amd/{Link-342b0888.js.map → Link-b7446b22.js.map} +1 -1
  43. package/amd/List-e404fd42.js +2 -0
  44. package/amd/{List-70e50ac0.js.map → List-e404fd42.js.map} +1 -1
  45. package/amd/ListItemTextLayout-881bef6d.js +2 -0
  46. package/amd/{ListItemTextLayout-0fcd3aa2.js.map → ListItemTextLayout-881bef6d.js.map} +1 -1
  47. package/amd/{ListView-87f52739.js → ListView-860d3563.js} +2 -2
  48. package/amd/{ListView-87f52739.js.map → ListView-860d3563.js.map} +1 -1
  49. package/amd/{LoadMoreCollection-d975953c.js → LoadMoreCollection-298a8d03.js} +2 -2
  50. package/amd/{LoadMoreCollection-d975953c.js.map → LoadMoreCollection-298a8d03.js.map} +1 -1
  51. package/amd/Menu-0359c231.js +2 -0
  52. package/amd/{Menu-216ca145.js.map → Menu-0359c231.js.map} +1 -1
  53. package/amd/MenuDivider-c66ecaf2.js +2 -0
  54. package/amd/{MenuDivider-4f0b0980.js.map → MenuDivider-c66ecaf2.js.map} +1 -1
  55. package/amd/MenuItem-126abb70.js +2 -0
  56. package/amd/{MenuItem-61f30a1b.js.map → MenuItem-126abb70.js.map} +1 -1
  57. package/amd/{Message.types-aa2b436b.js → Message.types-07e4afec.js} +1 -1
  58. package/amd/{Message.types-aa2b436b.js.map → Message.types-07e4afec.js.map} +1 -1
  59. package/amd/MessageCloseButton-15992223.js +2 -0
  60. package/amd/{MessageCloseButton-e3eff42e.js.map → MessageCloseButton-15992223.js.map} +1 -1
  61. package/amd/MessageDetail-e60f3a62.js +2 -0
  62. package/amd/{MessageDetail-1be1c95e.js.map → MessageDetail-e60f3a62.js.map} +1 -1
  63. package/amd/{MessageFormattingUtils-1513fdd8.js → MessageFormattingUtils-3182a53c.js} +2 -2
  64. package/amd/{MessageFormattingUtils-1513fdd8.js.map → MessageFormattingUtils-3182a53c.js.map} +1 -1
  65. package/amd/MessageLayer-431527dc.js +2 -0
  66. package/amd/{MessageLayer-4a956c0e.js.map → MessageLayer-431527dc.js.map} +1 -1
  67. package/amd/MessageStartIcon-2b34bbc2.js +2 -0
  68. package/amd/{MessageStartIcon-eb47a169.js.map → MessageStartIcon-2b34bbc2.js.map} +1 -1
  69. package/amd/MessageSummary-4be22c0e.js +2 -0
  70. package/amd/{MessageSummary-89b4de95.js.map → MessageSummary-4be22c0e.js.map} +1 -1
  71. package/amd/MessageTimestamp-f06381d6.js +2 -0
  72. package/amd/{MessageTimestamp-05386412.js.map → MessageTimestamp-f06381d6.js.map} +1 -1
  73. package/amd/MessageToast-6300e7d8.js +2 -0
  74. package/amd/{MessageToast-ddea810f.js.map → MessageToast-6300e7d8.js.map} +1 -1
  75. package/amd/{MessageUtils-d672d8cf.js → MessageUtils-8f1f842d.js} +2 -2
  76. package/amd/{MessageUtils-d672d8cf.js.map → MessageUtils-8f1f842d.js.map} +1 -1
  77. package/amd/{MessagesManager-e153ba77.js → MessagesManager-f08bf90d.js} +2 -2
  78. package/amd/{MessagesManager-e153ba77.js.map → MessagesManager-f08bf90d.js.map} +1 -1
  79. package/amd/MeterCircle-f6b0caa9.js +2 -0
  80. package/amd/{MeterCircle-896974e4.js.map → MeterCircle-f6b0caa9.js.map} +1 -1
  81. package/amd/Modal-6ffcb075.js +2 -0
  82. package/amd/{Modal-da798ad9.js.map → Modal-6ffcb075.js.map} +1 -1
  83. package/amd/{NumberInputText-ea4da437.js → NumberInputText-f18531b0.js} +2 -2
  84. package/amd/{NumberInputText-ea4da437.js.map → NumberInputText-f18531b0.js.map} +1 -1
  85. package/amd/PRIVATE_Collection.js +1 -1
  86. package/amd/PRIVATE_List.css +15 -15
  87. package/amd/PRIVATE_List.js +1 -1
  88. package/amd/PRIVATE_Message.css +27 -27
  89. package/amd/PRIVATE_Message.js +1 -1
  90. package/amd/PRIVATE_Message.js.map +1 -1
  91. package/amd/PRIVATE_MessageLayer.css +7 -7
  92. package/amd/PRIVATE_MessageLayer.js +1 -1
  93. package/amd/PRIVATE_Meter.js +1 -1
  94. package/amd/PRIVATE_SelectCommon.css +13 -13
  95. package/amd/PRIVATE_SelectCommon.js +1 -1
  96. package/amd/PRIVATE_SelectCommon.js.map +1 -1
  97. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  98. package/amd/ReadonlyTextFieldInput-56711dee.js +2 -0
  99. package/amd/{ReadonlyTextFieldInput-1da0c096.js.map → ReadonlyTextFieldInput-56711dee.js.map} +1 -1
  100. package/amd/{SelectMenuItem-2bd31ad4.js → SelectMenuItem-d0495c89.js} +2 -2
  101. package/amd/{SelectMenuItem-2bd31ad4.js.map → SelectMenuItem-d0495c89.js.map} +1 -1
  102. package/amd/SelectMultiple-1f77445b.js +2 -0
  103. package/amd/{SelectMultiple-dfb5b765.js.map → SelectMultiple-1f77445b.js.map} +1 -1
  104. package/amd/{SelectSingle-46465b7e.js → SelectSingle-d6e91617.js} +2 -2
  105. package/amd/{SelectSingle-46465b7e.js.map → SelectSingle-d6e91617.js.map} +1 -1
  106. package/amd/Skeleton-26929f8e.js +2 -0
  107. package/amd/{Skeleton-fc198bf2.js.map → Skeleton-26929f8e.js.map} +1 -1
  108. package/amd/{Spacer-9c7c8b39.js → Spacer-c770cd2b.js} +2 -2
  109. package/amd/{Spacer-9c7c8b39.js.map → Spacer-c770cd2b.js.map} +1 -1
  110. package/amd/SplitMenuButton-f8968c97.js +2 -0
  111. package/amd/{SplitMenuButton-1a916527.js.map → SplitMenuButton-f8968c97.js.map} +1 -1
  112. package/amd/Text-5980e33c.js +2 -0
  113. package/amd/{Text-9d65ad6d.js.map → Text-5980e33c.js.map} +1 -1
  114. package/amd/TextArea-7342f2f7.js +2 -0
  115. package/amd/{TextArea-6b0f7f8a.js.map → TextArea-7342f2f7.js.map} +1 -1
  116. package/amd/{TextAreaAutosize-44fe5eb7.js → TextAreaAutosize-701e6196.js} +2 -2
  117. package/amd/{TextAreaAutosize-44fe5eb7.js.map → TextAreaAutosize-701e6196.js.map} +1 -1
  118. package/amd/TextFieldInput-d18240f2.js +2 -0
  119. package/amd/{TextFieldInput-3c4b3298.js.map → TextFieldInput-d18240f2.js.map} +1 -1
  120. package/amd/UNSAFE_AspectRatio.css +1 -1
  121. package/amd/UNSAFE_AspectRatio.js +1 -1
  122. package/amd/UNSAFE_Avatar.css +8 -8
  123. package/amd/UNSAFE_Avatar.js +1 -1
  124. package/amd/UNSAFE_Avatar.js.map +1 -1
  125. package/amd/UNSAFE_Badge.css +13 -13
  126. package/amd/UNSAFE_Badge.js +1 -1
  127. package/amd/UNSAFE_BaseButton.css +15 -15
  128. package/amd/UNSAFE_BaseButton.js +1 -1
  129. package/amd/UNSAFE_Button.css +8 -8
  130. package/amd/UNSAFE_Button.js +1 -1
  131. package/amd/UNSAFE_Center.js +1 -1
  132. package/amd/UNSAFE_Chip.css +7 -7
  133. package/amd/UNSAFE_Chip.js +1 -1
  134. package/amd/UNSAFE_Collapsible.css +8 -8
  135. package/amd/UNSAFE_Collapsible.js +1 -1
  136. package/amd/UNSAFE_Collapsible.js.map +1 -1
  137. package/amd/UNSAFE_ComponentMessage.css +2 -2
  138. package/amd/UNSAFE_ComponentMessage.js +1 -1
  139. package/amd/UNSAFE_Divider.css +1 -1
  140. package/amd/UNSAFE_Divider.js +1 -1
  141. package/amd/UNSAFE_FilePicker.css +6 -6
  142. package/amd/UNSAFE_FilePicker.js +1 -1
  143. package/amd/UNSAFE_Flex.css +2 -2
  144. package/amd/UNSAFE_Flex.js +1 -1
  145. package/amd/UNSAFE_Floating.js +1 -1
  146. package/amd/UNSAFE_FocusTrap.css +2 -2
  147. package/amd/UNSAFE_FocusTrap.js +1 -1
  148. package/amd/UNSAFE_Grid.css +1 -1
  149. package/amd/UNSAFE_Grid.js +1 -1
  150. package/amd/UNSAFE_Heading.css +9 -9
  151. package/amd/UNSAFE_Heading.js +1 -1
  152. package/amd/UNSAFE_HiddenAccessible.css +1 -1
  153. package/amd/UNSAFE_HiddenAccessible.js +1 -1
  154. package/amd/UNSAFE_HighlightText.css +1 -1
  155. package/amd/UNSAFE_HighlightText.js +1 -1
  156. package/amd/UNSAFE_Icon.css +21 -21
  157. package/amd/UNSAFE_Icon.js +1 -1
  158. package/amd/UNSAFE_Icons.js +1 -1
  159. package/amd/UNSAFE_Indexer.css +7 -7
  160. package/amd/UNSAFE_Indexer.js +1 -1
  161. package/amd/UNSAFE_InputPassword.css +1 -1
  162. package/amd/UNSAFE_InputPassword.js +1 -1
  163. package/amd/UNSAFE_InputPassword.js.map +1 -1
  164. package/amd/UNSAFE_InputText.css +1 -1
  165. package/amd/UNSAFE_InputText.js +1 -1
  166. package/amd/UNSAFE_Label.css +13 -13
  167. package/amd/UNSAFE_Label.js +1 -1
  168. package/amd/UNSAFE_Label.js.map +1 -1
  169. package/amd/UNSAFE_LabelValueLayout.css +9 -9
  170. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  171. package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
  172. package/amd/UNSAFE_Link.css +5 -5
  173. package/amd/UNSAFE_Link.js +1 -1
  174. package/amd/UNSAFE_ListItemLayout.css +9 -9
  175. package/amd/UNSAFE_ListItemLayout.js +1 -1
  176. package/amd/UNSAFE_ListView.js +1 -1
  177. package/amd/UNSAFE_LiveRegion.css +1 -1
  178. package/amd/UNSAFE_LiveRegion.js +1 -1
  179. package/amd/UNSAFE_LiveRegion.js.map +1 -1
  180. package/amd/UNSAFE_LoadMoreCollection.js +1 -1
  181. package/amd/UNSAFE_Menu.css +17 -17
  182. package/amd/UNSAFE_Menu.js +1 -1
  183. package/amd/UNSAFE_MessageBanner.js +1 -1
  184. package/amd/UNSAFE_MessageToast.css +1 -1
  185. package/amd/UNSAFE_MessageToast.js +1 -1
  186. package/amd/UNSAFE_MeterBar.css +43 -43
  187. package/amd/UNSAFE_MeterBar.js +1 -1
  188. package/amd/UNSAFE_MeterBar.js.map +1 -1
  189. package/amd/UNSAFE_MeterCircle.css +46 -46
  190. package/amd/UNSAFE_MeterCircle.js +1 -1
  191. package/amd/UNSAFE_Modal.css +3 -3
  192. package/amd/UNSAFE_Modal.js +1 -1
  193. package/amd/UNSAFE_NumberInputText.js +1 -1
  194. package/amd/UNSAFE_PrefixSuffix.css +8 -8
  195. package/amd/UNSAFE_PrefixSuffix.js +1 -1
  196. package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
  197. package/amd/UNSAFE_ProgressBar.css +6 -6
  198. package/amd/UNSAFE_ProgressBar.js +1 -1
  199. package/amd/UNSAFE_ProgressBar.js.map +1 -1
  200. package/amd/UNSAFE_ProgressCircle.css +6 -6
  201. package/amd/UNSAFE_ProgressCircle.js +1 -1
  202. package/amd/UNSAFE_ProgressCircle.js.map +1 -1
  203. package/amd/UNSAFE_RatingGauge.css +20 -20
  204. package/amd/UNSAFE_RatingGauge.js +1 -1
  205. package/amd/UNSAFE_RatingGauge.js.map +1 -1
  206. package/amd/UNSAFE_SelectMultiple.css +1 -1
  207. package/amd/UNSAFE_SelectMultiple.js +1 -1
  208. package/amd/UNSAFE_SelectSingle.js +1 -1
  209. package/amd/UNSAFE_Selector.css +5 -5
  210. package/amd/UNSAFE_Selector.js +1 -1
  211. package/amd/UNSAFE_Selector.js.map +1 -1
  212. package/amd/UNSAFE_Skeleton.css +1 -1
  213. package/amd/UNSAFE_Skeleton.js +1 -1
  214. package/amd/UNSAFE_Spacer.js +1 -1
  215. package/amd/UNSAFE_SplitMenuButton.css +5 -5
  216. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  217. package/amd/UNSAFE_Text.css +25 -25
  218. package/amd/UNSAFE_Text.js +1 -1
  219. package/amd/UNSAFE_TextArea.css +3 -3
  220. package/amd/UNSAFE_TextArea.js +1 -1
  221. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  222. package/amd/UNSAFE_TextField.css +58 -58
  223. package/amd/UNSAFE_TextField.js +1 -1
  224. package/amd/UNSAFE_TextField.js.map +1 -1
  225. package/amd/UNSAFE_ThemedIcons.js +1 -1
  226. package/amd/UNSAFE_UserAssistance.css +8 -8
  227. package/amd/UNSAFE_UserAssistance.js +1 -1
  228. package/amd/UNSAFE_UserAssistance.js.map +1 -1
  229. package/amd/UNSAFE_View.js +1 -1
  230. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  231. package/amd/{VirtualizedCollection-297a10c2.js → VirtualizedCollection-e1dc1d4d.js} +2 -2
  232. package/amd/{VirtualizedCollection-297a10c2.js.map → VirtualizedCollection-e1dc1d4d.js.map} +1 -1
  233. package/amd/{VirtualizedListView-359acba3.js → VirtualizedListView-8807f476.js} +2 -2
  234. package/amd/{VirtualizedListView-359acba3.js.map → VirtualizedListView-8807f476.js.map} +1 -1
  235. package/amd/{_curry1-b8c79089.js → _curry1-e0cd66f4.js} +1 -1
  236. package/amd/{_curry1-b8c79089.js.map → _curry1-e0cd66f4.js.map} +1 -1
  237. package/amd/_curry2-1b99ddfe.js +2 -0
  238. package/amd/{_curry2-52e3b69d.js.map → _curry2-1b99ddfe.js.map} +1 -1
  239. package/amd/_curry3-9b2d7c26.js +2 -0
  240. package/amd/{_curry3-9b155fdc.js.map → _curry3-9b2d7c26.js.map} +1 -1
  241. package/amd/_has-710e4a41.js +2 -0
  242. package/amd/{_has-f7daf036.js.map → _has-710e4a41.js.map} +1 -1
  243. package/amd/{classNames-4fa03ef2.js → classNames-ee48f57b.js} +1 -1
  244. package/amd/{classNames-4fa03ef2.js.map → classNames-ee48f57b.js.map} +1 -1
  245. package/amd/{clientHints-bf4c3a51.js → clientHints-8af07605.js} +1 -1
  246. package/amd/{clientHints-bf4c3a51.js.map → clientHints-8af07605.js.map} +1 -1
  247. package/amd/flexbox-b1f9a1f0.js +2 -0
  248. package/amd/{flexbox-08558092.js.map → flexbox-b1f9a1f0.js.map} +1 -1
  249. package/amd/flexitem-da0f34e5.js +2 -0
  250. package/amd/{flexitem-ed3f79c3.js.map → flexitem-da0f34e5.js.map} +1 -1
  251. package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -1
  252. package/amd/hooks/PRIVATE_useSingleSelection.js +1 -1
  253. package/amd/hooks/UNSAFE_useAnimation.js +1 -1
  254. package/amd/hooks/UNSAFE_useFloating.js +1 -1
  255. package/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
  256. package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
  257. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  258. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  259. package/amd/hooks/UNSAFE_useTooltip.css +4 -4
  260. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  261. package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
  262. package/amd/{index-d0610934.js → index-140c213a.js} +2 -2
  263. package/amd/{index-d0610934.js.map → index-140c213a.js.map} +1 -1
  264. package/amd/{index-00100f49.js → index-35690f89.js} +2 -2
  265. package/amd/{index-00100f49.js.map → index-35690f89.js.map} +1 -1
  266. package/amd/{index-c3b7e6c4.js → index-c24bc5fd.js} +1 -1
  267. package/amd/{index-c3b7e6c4.js.map → index-c24bc5fd.js.map} +1 -1
  268. package/amd/{keys-e733f329.js → keys-9f636d55.js} +2 -2
  269. package/amd/{keys-e733f329.js.map → keys-9f636d55.js.map} +1 -1
  270. package/amd/{listViewSelectionTests-9583764a.js → listViewSelectionTests-66deee7b.js} +2 -2
  271. package/amd/{listViewSelectionTests-9583764a.js.map → listViewSelectionTests-66deee7b.js.map} +1 -1
  272. package/amd/{listViewTabbableModeTests-b44d2433.js → listViewTabbableModeTests-acb40d01.js} +2 -2
  273. package/amd/{listViewTabbableModeTests-b44d2433.js.map → listViewTabbableModeTests-acb40d01.js.map} +1 -1
  274. package/amd/{listViewTestFixtures-e0342520.js → listViewTestFixtures-4a27b46e.js} +1 -1
  275. package/amd/{listViewTestFixtures-e0342520.js.map → listViewTestFixtures-4a27b46e.js.map} +1 -1
  276. package/amd/{menuTestsUtils-772f8ee2.js → menuTestsUtils-c0b774d1.js} +1 -1
  277. package/amd/{menuTestsUtils-772f8ee2.js.map → menuTestsUtils-c0b774d1.js.map} +1 -1
  278. package/amd/{stringUtils-d751fc14.js → stringUtils-064b3cbb.js} +1 -1
  279. package/amd/{stringUtils-d751fc14.js.map → stringUtils-064b3cbb.js.map} +1 -1
  280. package/amd/{testHelpers-c1012ffe.js → testHelpers-e44a79b0.js} +1 -1
  281. package/amd/{testHelpers-c1012ffe.js.map → testHelpers-e44a79b0.js.map} +1 -1
  282. package/amd/{tslib.es6-baf3cb2c.js → tslib.es6-925f910c.js} +1 -1
  283. package/amd/{tslib.es6-baf3cb2c.js.map → tslib.es6-925f910c.js.map} +1 -1
  284. package/amd/{useAnimation-b2ac75fe.js → useAnimation-002088aa.js} +2 -2
  285. package/amd/{useAnimation-b2ac75fe.js.map → useAnimation-002088aa.js.map} +1 -1
  286. package/amd/{useFocusWithin-8709d986.js → useFocusWithin-ca350665.js} +1 -1
  287. package/amd/{useFocusWithin-8709d986.js.map → useFocusWithin-ca350665.js.map} +1 -1
  288. package/amd/{useSingleSelection-eec91cf6.js → useSingleSelection-853b0de4.js} +1 -1
  289. package/amd/{useSingleSelection-eec91cf6.js.map → useSingleSelection-853b0de4.js.map} +1 -1
  290. package/amd/utils/PRIVATE_clientHints.js +1 -1
  291. package/amd/utils/PRIVATE_tabbableUtils.js +1 -1
  292. package/amd/utils/UNSAFE_classNames.js +1 -1
  293. package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  294. package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
  295. package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  296. package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
  297. package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -7
  298. package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
  299. package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -7
  300. package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
  301. package/amd/utils/UNSAFE_interpolations/text.css +3 -3
  302. package/amd/utils/UNSAFE_interpolations/text.js +1 -1
  303. package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
  304. package/amd/utils/UNSAFE_logger.js +1 -1
  305. package/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
  306. package/amd/utils/UNSAFE_stringUtils.js +1 -1
  307. package/amd/utils/UNSAFE_units.js +1 -1
  308. package/cjs/{Badge-8821cfa6.js → Badge-77533dbe.js} +16 -16
  309. package/cjs/{Badge-8821cfa6.js.map → Badge-77533dbe.js.map} +1 -1
  310. package/cjs/{BaseButton-2736c4df.js → BaseButton-f5073e18.js} +20 -20
  311. package/cjs/{BaseButton-2736c4df.js.map → BaseButton-f5073e18.js.map} +1 -1
  312. package/cjs/{Button-e7bafcd0.js → Button-feff77e2.js} +13 -13
  313. package/cjs/{Button-e7bafcd0.js.map → Button-feff77e2.js.map} +1 -1
  314. package/cjs/{Chip-8b7088b0.js → Chip-fc282bb0.js} +10 -10
  315. package/cjs/{Chip-8b7088b0.js.map → Chip-fc282bb0.js.map} +1 -1
  316. package/cjs/{ClearIcon-86013340.js → ClearIcon-9e1b1dce.js} +3 -3
  317. package/cjs/{ClearIcon-86013340.js.map → ClearIcon-9e1b1dce.js.map} +1 -1
  318. package/cjs/{Collection-e5992bee.js → Collection-7201124c.js} +2 -2
  319. package/cjs/{Collection-e5992bee.js.map → Collection-7201124c.js.map} +1 -1
  320. package/cjs/{ComponentMessage-226b21a3.js → ComponentMessage-96a1b221.js} +8 -8
  321. package/cjs/{ComponentMessage-226b21a3.js.map → ComponentMessage-96a1b221.js.map} +1 -1
  322. package/cjs/{ComponentMessageContainer-9e34c167.js → ComponentMessageContainer-7958fa7b.js} +5 -5
  323. package/cjs/{ComponentMessageContainer-9e34c167.js.map → ComponentMessageContainer-7958fa7b.js.map} +1 -1
  324. package/cjs/{Divider-8afef5eb.js → Divider-22deb8f8.js} +3 -3
  325. package/cjs/{Divider-8afef5eb.js.map → Divider-22deb8f8.js.map} +1 -1
  326. package/cjs/{FilePicker-fe616469.js → FilePicker-1169d0f3.js} +14 -14
  327. package/cjs/{FilePicker-fe616469.js.map → FilePicker-1169d0f3.js.map} +1 -1
  328. package/cjs/{Flex-f91ad535.js → Flex-3afbbffa.js} +8 -8
  329. package/cjs/{Flex-f91ad535.js.map → Flex-3afbbffa.js.map} +1 -1
  330. package/cjs/{Floating-39284df3.js → Floating-afc50077.js} +3 -3
  331. package/cjs/{Floating-39284df3.js.map → Floating-afc50077.js.map} +1 -1
  332. package/cjs/{FocusTrap-7ff20a61.js → FocusTrap-b921a38b.js} +5 -5
  333. package/cjs/{FocusTrap-7ff20a61.js.map → FocusTrap-b921a38b.js.map} +1 -1
  334. package/cjs/{FormControlUtils-072a60c6.js → FormControlUtils-f100aee2.js} +5 -5
  335. package/cjs/{FormControlUtils-072a60c6.js.map → FormControlUtils-f100aee2.js.map} +1 -1
  336. package/cjs/{Heading-58abd8bf.js → Heading-59094467.js} +13 -13
  337. package/cjs/{Heading-58abd8bf.js.map → Heading-59094467.js.map} +1 -1
  338. package/cjs/{HiddenAccessible-fc21982e.js → HiddenAccessible-4fa29af3.js} +3 -3
  339. package/cjs/{HiddenAccessible-fc21982e.js.map → HiddenAccessible-4fa29af3.js.map} +1 -1
  340. package/cjs/{HighlightText-29e3d224.js → HighlightText-e7ccf04d.js} +3 -3
  341. package/cjs/{HighlightText-29e3d224.js.map → HighlightText-e7ccf04d.js.map} +1 -1
  342. package/cjs/{Icon-bd1b5f72.js → Icon-a49ebedd.js} +25 -25
  343. package/cjs/{Icon-bd1b5f72.js.map → Icon-a49ebedd.js.map} +1 -1
  344. package/cjs/{Indexer-1c19ce40.js → Indexer-6f294388.js} +16 -16
  345. package/cjs/{Indexer-1c19ce40.js.map → Indexer-6f294388.js.map} +1 -1
  346. package/cjs/{InlineHelpSource-6fba4339.js → InlineHelpSource-10515ec0.js} +3 -3
  347. package/cjs/{InlineHelpSource-6fba4339.js.map → InlineHelpSource-10515ec0.js.map} +1 -1
  348. package/cjs/{Link-80c85e82.js → Link-9d6e338c.js} +8 -8
  349. package/cjs/{Link-80c85e82.js.map → Link-9d6e338c.js.map} +1 -1
  350. package/cjs/{List-bb058c64.js → List-4cbe8669.js} +23 -23
  351. package/cjs/{List-bb058c64.js.map → List-4cbe8669.js.map} +1 -1
  352. package/cjs/{ListItemTextLayout-d091de9f.js → ListItemTextLayout-d11b0d7d.js} +13 -13
  353. package/cjs/{ListItemTextLayout-d091de9f.js.map → ListItemTextLayout-d11b0d7d.js.map} +1 -1
  354. package/cjs/{ListView-e80a12bf.js → ListView-ebd0c084.js} +3 -3
  355. package/cjs/{ListView-e80a12bf.js.map → ListView-ebd0c084.js.map} +1 -1
  356. package/cjs/{LoadMoreCollection-a54586f6.js → LoadMoreCollection-800c5624.js} +3 -3
  357. package/cjs/{LoadMoreCollection-a54586f6.js.map → LoadMoreCollection-800c5624.js.map} +1 -1
  358. package/cjs/{Menu-f6e33a4e.js → Menu-69f53409.js} +6 -6
  359. package/cjs/{Menu-f6e33a4e.js.map → Menu-69f53409.js.map} +1 -1
  360. package/cjs/{MenuDivider-6f3835a8.js → MenuDivider-dcf4a12b.js} +4 -4
  361. package/cjs/{MenuDivider-6f3835a8.js.map → MenuDivider-dcf4a12b.js.map} +1 -1
  362. package/cjs/{MenuItem-a652ccf5.js → MenuItem-c5a66d75.js} +19 -19
  363. package/cjs/{MenuItem-a652ccf5.js.map → MenuItem-c5a66d75.js.map} +1 -1
  364. package/cjs/{Message.types-41952b48.js → Message.types-e76db407.js} +2 -2
  365. package/cjs/{Message.types-41952b48.js.map → Message.types-e76db407.js.map} +1 -1
  366. package/cjs/{MessageCloseButton-6c1b1792.js → MessageCloseButton-9801c85a.js} +9 -9
  367. package/cjs/{MessageCloseButton-6c1b1792.js.map → MessageCloseButton-9801c85a.js.map} +1 -1
  368. package/cjs/{MessageDetail-dea248df.js → MessageDetail-37c54079.js} +7 -7
  369. package/cjs/{MessageDetail-dea248df.js.map → MessageDetail-37c54079.js.map} +1 -1
  370. package/cjs/{MessageFormattingUtils-9134f618.js → MessageFormattingUtils-61ee2965.js} +4 -4
  371. package/cjs/{MessageFormattingUtils-9134f618.js.map → MessageFormattingUtils-61ee2965.js.map} +1 -1
  372. package/cjs/{MessageLayer-875e5e34.js → MessageLayer-216dac9e.js} +11 -11
  373. package/cjs/{MessageLayer-875e5e34.js.map → MessageLayer-216dac9e.js.map} +1 -1
  374. package/cjs/{MessageStartIcon-cb2f0a1f.js → MessageStartIcon-1ab3d2a7.js} +11 -11
  375. package/cjs/{MessageStartIcon-cb2f0a1f.js.map → MessageStartIcon-1ab3d2a7.js.map} +1 -1
  376. package/cjs/{MessageSummary-ce1d2935.js → MessageSummary-cb1056b6.js} +7 -7
  377. package/cjs/{MessageSummary-ce1d2935.js.map → MessageSummary-cb1056b6.js.map} +1 -1
  378. package/cjs/{MessageTimestamp-476fdfa5.js → MessageTimestamp-6c78b977.js} +5 -5
  379. package/cjs/{MessageTimestamp-476fdfa5.js.map → MessageTimestamp-6c78b977.js.map} +1 -1
  380. package/cjs/{MessageToast-2192efb3.js → MessageToast-e70cfeb3.js} +9 -9
  381. package/cjs/{MessageToast-2192efb3.js.map → MessageToast-e70cfeb3.js.map} +1 -1
  382. package/cjs/{MessageUtils-f86209a4.js → MessageUtils-329ed0ad.js} +3 -3
  383. package/cjs/{MessageUtils-f86209a4.js.map → MessageUtils-329ed0ad.js.map} +1 -1
  384. package/cjs/{MessagesManager-f9f769c5.js → MessagesManager-4a1d6a6e.js} +4 -4
  385. package/cjs/{MessagesManager-f9f769c5.js.map → MessagesManager-4a1d6a6e.js.map} +1 -1
  386. package/cjs/{MeterCircle-7986c449.js → MeterCircle-2b4e0b82.js} +50 -50
  387. package/cjs/{MeterCircle-7986c449.js.map → MeterCircle-2b4e0b82.js.map} +1 -1
  388. package/cjs/{Modal-e31e0296.js → Modal-5fe3d69e.js} +6 -6
  389. package/cjs/{Modal-e31e0296.js.map → Modal-5fe3d69e.js.map} +1 -1
  390. package/cjs/{NumberInputText-b155623d.js → NumberInputText-e15fe165.js} +7 -7
  391. package/cjs/{NumberInputText-b155623d.js.map → NumberInputText-e15fe165.js.map} +1 -1
  392. package/cjs/PRIVATE_Collection.js +2 -2
  393. package/cjs/PRIVATE_List.js +23 -23
  394. package/cjs/PRIVATE_Message.js +41 -41
  395. package/cjs/PRIVATE_Message.js.map +1 -1
  396. package/cjs/PRIVATE_MessageLayer.js +12 -12
  397. package/cjs/PRIVATE_Meter.js +2 -2
  398. package/cjs/PRIVATE_SelectCommon.js +54 -54
  399. package/cjs/PRIVATE_SelectCommon.js.map +1 -1
  400. package/cjs/PRIVATE_TransitionGroup.js +1 -1
  401. package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
  402. package/cjs/{ReadonlyTextFieldInput-17cb23bf.js → ReadonlyTextFieldInput-c328835f.js} +13 -13
  403. package/cjs/{ReadonlyTextFieldInput-17cb23bf.js.map → ReadonlyTextFieldInput-c328835f.js.map} +1 -1
  404. package/cjs/{SelectMenuItem-b172d5f5.js → SelectMenuItem-ebd8765f.js} +5 -5
  405. package/cjs/{SelectMenuItem-b172d5f5.js.map → SelectMenuItem-ebd8765f.js.map} +1 -1
  406. package/cjs/{SelectMultiple-1d616730.js → SelectMultiple-8556e2fe.js} +8 -8
  407. package/cjs/{SelectMultiple-1d616730.js.map → SelectMultiple-8556e2fe.js.map} +1 -1
  408. package/cjs/{SelectSingle-07ad08e3.js → SelectSingle-e3256ab0.js} +4 -4
  409. package/cjs/{SelectSingle-07ad08e3.js.map → SelectSingle-e3256ab0.js.map} +1 -1
  410. package/cjs/{Skeleton-2bbb2c68.js → Skeleton-a3da3a6e.js} +5 -5
  411. package/cjs/{Skeleton-2bbb2c68.js.map → Skeleton-a3da3a6e.js.map} +1 -1
  412. package/cjs/{Spacer-5905a53f.js → Spacer-09202fe8.js} +4 -4
  413. package/cjs/{Spacer-5905a53f.js.map → Spacer-09202fe8.js.map} +1 -1
  414. package/cjs/{SplitMenuButton-3916f47b.js → SplitMenuButton-d4d6c908.js} +14 -14
  415. package/cjs/{SplitMenuButton-3916f47b.js.map → SplitMenuButton-d4d6c908.js.map} +1 -1
  416. package/cjs/{Text-6ac09c82.js → Text-17f30573.js} +28 -28
  417. package/cjs/{Text-6ac09c82.js.map → Text-17f30573.js.map} +1 -1
  418. package/cjs/{TextArea-34f96284.js → TextArea-d66ca95c.js} +8 -8
  419. package/cjs/{TextArea-34f96284.js.map → TextArea-d66ca95c.js.map} +1 -1
  420. package/cjs/{TextAreaAutosize-ee3fd9dd.js → TextAreaAutosize-bcc62f1e.js} +5 -5
  421. package/cjs/{TextAreaAutosize-ee3fd9dd.js.map → TextAreaAutosize-bcc62f1e.js.map} +1 -1
  422. package/cjs/{TextFieldInput-b42499a5.js → TextFieldInput-b7429629.js} +33 -33
  423. package/cjs/{TextFieldInput-b42499a5.js.map → TextFieldInput-b7429629.js.map} +1 -1
  424. package/cjs/UNSAFE_AspectRatio.js +8 -8
  425. package/cjs/UNSAFE_AspectRatio.js.map +1 -1
  426. package/cjs/UNSAFE_Avatar.js +11 -11
  427. package/cjs/UNSAFE_Avatar.js.map +1 -1
  428. package/cjs/UNSAFE_Badge.js +3 -3
  429. package/cjs/UNSAFE_BaseButton.js +9 -9
  430. package/cjs/UNSAFE_Button.js +10 -10
  431. package/cjs/UNSAFE_Center.js +11 -11
  432. package/cjs/UNSAFE_Chip.js +3 -3
  433. package/cjs/UNSAFE_Collapsible.js +26 -26
  434. package/cjs/UNSAFE_Collapsible.js.map +1 -1
  435. package/cjs/UNSAFE_Collection.js +1 -1
  436. package/cjs/UNSAFE_ComponentMessage.js +33 -33
  437. package/cjs/UNSAFE_Divider.js +7 -7
  438. package/cjs/UNSAFE_EmptyList.js +1 -1
  439. package/cjs/UNSAFE_Environment.js +1 -1
  440. package/cjs/UNSAFE_FilePicker.js +14 -14
  441. package/cjs/UNSAFE_Flex.js +11 -11
  442. package/cjs/UNSAFE_Floating.js +3 -3
  443. package/cjs/UNSAFE_FocusTrap.js +6 -6
  444. package/cjs/UNSAFE_Grid.js +9 -9
  445. package/cjs/UNSAFE_Heading.js +9 -9
  446. package/cjs/UNSAFE_HiddenAccessible.js +2 -2
  447. package/cjs/UNSAFE_HighlightText.js +2 -2
  448. package/cjs/UNSAFE_Icon.js +7 -7
  449. package/cjs/UNSAFE_Icons.js +8 -8
  450. package/cjs/UNSAFE_Indexer.js +16 -16
  451. package/cjs/UNSAFE_InputPassword.js +40 -40
  452. package/cjs/UNSAFE_InputText.js +39 -39
  453. package/cjs/UNSAFE_Label.js +16 -16
  454. package/cjs/UNSAFE_Label.js.map +1 -1
  455. package/cjs/UNSAFE_LabelValueLayout.js +20 -20
  456. package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
  457. package/cjs/UNSAFE_Layer.js +1 -1
  458. package/cjs/UNSAFE_Link.js +3 -3
  459. package/cjs/UNSAFE_ListItemLayout.js +10 -10
  460. package/cjs/UNSAFE_ListView.js +24 -24
  461. package/cjs/UNSAFE_LiveRegion.js +2 -2
  462. package/cjs/UNSAFE_LiveRegion.js.map +1 -1
  463. package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
  464. package/cjs/UNSAFE_Menu.js +15 -15
  465. package/cjs/UNSAFE_MessageBanner.js +30 -30
  466. package/cjs/UNSAFE_MessageToast.js +33 -33
  467. package/cjs/UNSAFE_MeterBar.js +49 -49
  468. package/cjs/UNSAFE_MeterBar.js.map +1 -1
  469. package/cjs/UNSAFE_MeterCircle.js +7 -7
  470. package/cjs/UNSAFE_Modal.js +7 -7
  471. package/cjs/UNSAFE_NumberInputText.js +39 -39
  472. package/cjs/UNSAFE_PrefixSuffix.js +10 -10
  473. package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
  474. package/cjs/UNSAFE_ProgressBar.js +9 -9
  475. package/cjs/UNSAFE_ProgressBar.js.map +1 -1
  476. package/cjs/UNSAFE_ProgressCircle.js +9 -9
  477. package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
  478. package/cjs/UNSAFE_RatingGauge.js +26 -26
  479. package/cjs/UNSAFE_RatingGauge.js.map +1 -1
  480. package/cjs/UNSAFE_SelectMultiple.js +47 -47
  481. package/cjs/UNSAFE_SelectSingle.js +46 -46
  482. package/cjs/UNSAFE_Selector.js +22 -22
  483. package/cjs/UNSAFE_Selector.js.map +1 -1
  484. package/cjs/UNSAFE_Skeleton.js +8 -8
  485. package/cjs/UNSAFE_Spacer.js +10 -10
  486. package/cjs/UNSAFE_SplitMenuButton.js +22 -22
  487. package/cjs/UNSAFE_Text.js +8 -8
  488. package/cjs/UNSAFE_TextArea.js +39 -39
  489. package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
  490. package/cjs/UNSAFE_TextField.js +35 -35
  491. package/cjs/UNSAFE_TextField.js.map +1 -1
  492. package/cjs/UNSAFE_ThemedIcons.js +9 -9
  493. package/cjs/UNSAFE_UserAssistance.js +41 -41
  494. package/cjs/UNSAFE_UserAssistance.js.map +1 -1
  495. package/cjs/UNSAFE_View.js +9 -9
  496. package/cjs/UNSAFE_VirtualizedListView.js +24 -24
  497. package/cjs/UNSAFE_WindowOverlay.js +1 -1
  498. package/cjs/{VirtualizedCollection-75ef82e2.js → VirtualizedCollection-5364d049.js} +3 -3
  499. package/cjs/{VirtualizedCollection-75ef82e2.js.map → VirtualizedCollection-5364d049.js.map} +1 -1
  500. package/cjs/{VirtualizedListView-ebdb8a85.js → VirtualizedListView-8b4a189a.js} +3 -3
  501. package/cjs/{VirtualizedListView-ebdb8a85.js.map → VirtualizedListView-8b4a189a.js.map} +1 -1
  502. package/cjs/{_curry1-d7c967d7.js → _curry1-929fa479.js} +2 -2
  503. package/cjs/{_curry1-d7c967d7.js.map → _curry1-929fa479.js.map} +1 -1
  504. package/cjs/{_curry2-b842c9f6.js → _curry2-ad418b8f.js} +3 -3
  505. package/cjs/{_curry2-b842c9f6.js.map → _curry2-ad418b8f.js.map} +1 -1
  506. package/cjs/{_curry3-ae657000.js → _curry3-de547f40.js} +4 -4
  507. package/cjs/{_curry3-ae657000.js.map → _curry3-de547f40.js.map} +1 -1
  508. package/cjs/{_has-e1033a99.js → _has-bd83a5af.js} +3 -3
  509. package/cjs/{_has-e1033a99.js.map → _has-bd83a5af.js.map} +1 -1
  510. package/cjs/{classNames-0b5e7ec9.js → classNames-74b1faa1.js} +2 -2
  511. package/cjs/{classNames-0b5e7ec9.js.map → classNames-74b1faa1.js.map} +1 -1
  512. package/cjs/{clientHints-e1bf0c4c.js → clientHints-f08e6824.js} +2 -2
  513. package/cjs/{clientHints-e1bf0c4c.js.map → clientHints-f08e6824.js.map} +1 -1
  514. package/cjs/{flexbox-6ad70ff1.js → flexbox-1749f9a9.js} +10 -10
  515. package/cjs/{flexbox-6ad70ff1.js.map → flexbox-1749f9a9.js.map} +1 -1
  516. package/cjs/{flexitem-521487bd.js → flexitem-f0be1fa1.js} +10 -10
  517. package/cjs/{flexitem-521487bd.js.map → flexitem-f0be1fa1.js.map} +1 -1
  518. package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  519. package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
  520. package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
  521. package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
  522. package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  523. package/cjs/hooks/PRIVATE_useSelection.js +1 -1
  524. package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
  525. package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  526. package/cjs/hooks/UNSAFE_useActionable.js +1 -1
  527. package/cjs/hooks/UNSAFE_useActive.js +1 -1
  528. package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
  529. package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
  530. package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
  531. package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
  532. package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
  533. package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  534. package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  535. package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  536. package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
  537. package/cjs/hooks/UNSAFE_useFloating.js +2 -2
  538. package/cjs/hooks/UNSAFE_useFocus.js +1 -1
  539. package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
  540. package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
  541. package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
  542. package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
  543. package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
  544. package/cjs/hooks/UNSAFE_useHover.js +1 -1
  545. package/cjs/hooks/UNSAFE_useId.js +1 -1
  546. package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
  547. package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  548. package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
  549. package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
  550. package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
  551. package/cjs/hooks/UNSAFE_usePan.js +1 -1
  552. package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
  553. package/cjs/hooks/UNSAFE_usePress.js +1 -1
  554. package/cjs/hooks/UNSAFE_useScale.js +1 -1
  555. package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
  556. package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
  557. package/cjs/hooks/UNSAFE_useTap.js +1 -1
  558. package/cjs/hooks/UNSAFE_useTextField.js +1 -1
  559. package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
  560. package/cjs/hooks/UNSAFE_useTheme.js +1 -1
  561. package/cjs/hooks/UNSAFE_useTimer.js +1 -1
  562. package/cjs/hooks/UNSAFE_useToggle.js +1 -1
  563. package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
  564. package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
  565. package/cjs/hooks/UNSAFE_useTouch.js +1 -1
  566. package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
  567. package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
  568. package/cjs/hooks/UNSAFE_useUser.js +1 -1
  569. package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
  570. package/cjs/{index-153973bc.js → index-3d1af0d6.js} +3 -3
  571. package/cjs/{index-153973bc.js.map → index-3d1af0d6.js.map} +1 -1
  572. package/cjs/{index-c5842a02.js → index-61432a7c.js} +2 -2
  573. package/cjs/{index-c5842a02.js.map → index-61432a7c.js.map} +1 -1
  574. package/cjs/{index-78030966.js → index-83e44763.js} +3 -3
  575. package/cjs/{index-78030966.js.map → index-83e44763.js.map} +1 -1
  576. package/cjs/{keys-f70c2efe.js → keys-aa6a47f6.js} +4 -4
  577. package/cjs/{keys-f70c2efe.js.map → keys-aa6a47f6.js.map} +1 -1
  578. package/cjs/{listViewSelectionTests-7726fc3a.js → listViewSelectionTests-99bed972.js} +4 -4
  579. package/cjs/{listViewSelectionTests-7726fc3a.js.map → listViewSelectionTests-99bed972.js.map} +1 -1
  580. package/cjs/{listViewTabbableModeTests-d5cf3561.js → listViewTabbableModeTests-721aa316.js} +4 -4
  581. package/cjs/{listViewTabbableModeTests-d5cf3561.js.map → listViewTabbableModeTests-721aa316.js.map} +1 -1
  582. package/cjs/{listViewTestFixtures-1cb937c9.js → listViewTestFixtures-37a6f8c3.js} +2 -2
  583. package/cjs/{listViewTestFixtures-1cb937c9.js.map → listViewTestFixtures-37a6f8c3.js.map} +1 -1
  584. package/cjs/{menuTestsUtils-2180af82.js → menuTestsUtils-f80984f6.js} +2 -2
  585. package/cjs/{menuTestsUtils-2180af82.js.map → menuTestsUtils-f80984f6.js.map} +1 -1
  586. package/cjs/resources/nls/ar/bundle.js +1 -1
  587. package/cjs/resources/nls/ar-XB/bundle.js +1 -1
  588. package/cjs/resources/nls/bg/bundle.js +1 -1
  589. package/cjs/resources/nls/bs/bundle.js +1 -1
  590. package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
  591. package/cjs/resources/nls/bundle.js +1 -1
  592. package/cjs/resources/nls/cs/bundle.js +1 -1
  593. package/cjs/resources/nls/da/bundle.js +1 -1
  594. package/cjs/resources/nls/de/bundle.js +1 -1
  595. package/cjs/resources/nls/el/bundle.js +1 -1
  596. package/cjs/resources/nls/en/bundle.js +1 -1
  597. package/cjs/resources/nls/en-XA/bundle.js +1 -1
  598. package/cjs/resources/nls/en-XC/bundle.js +1 -1
  599. package/cjs/resources/nls/es/bundle.js +1 -1
  600. package/cjs/resources/nls/et/bundle.js +1 -1
  601. package/cjs/resources/nls/fi/bundle.js +1 -1
  602. package/cjs/resources/nls/fr/bundle.js +1 -1
  603. package/cjs/resources/nls/fr-CA/bundle.js +1 -1
  604. package/cjs/resources/nls/he/bundle.js +1 -1
  605. package/cjs/resources/nls/hr/bundle.js +1 -1
  606. package/cjs/resources/nls/hu/bundle.js +1 -1
  607. package/cjs/resources/nls/is/bundle.js +1 -1
  608. package/cjs/resources/nls/it/bundle.js +1 -1
  609. package/cjs/resources/nls/ja/bundle.js +1 -1
  610. package/cjs/resources/nls/ko/bundle.js +1 -1
  611. package/cjs/resources/nls/lt/bundle.js +1 -1
  612. package/cjs/resources/nls/lv/bundle.js +1 -1
  613. package/cjs/resources/nls/ms/bundle.js +1 -1
  614. package/cjs/resources/nls/nl/bundle.js +1 -1
  615. package/cjs/resources/nls/no/bundle.js +1 -1
  616. package/cjs/resources/nls/pl/bundle.js +1 -1
  617. package/cjs/resources/nls/pt/bundle.js +1 -1
  618. package/cjs/resources/nls/pt-PT/bundle.js +1 -1
  619. package/cjs/resources/nls/ro/bundle.js +1 -1
  620. package/cjs/resources/nls/ru/bundle.js +1 -1
  621. package/cjs/resources/nls/sk/bundle.js +1 -1
  622. package/cjs/resources/nls/sl/bundle.js +1 -1
  623. package/cjs/resources/nls/sr/bundle.js +1 -1
  624. package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
  625. package/cjs/resources/nls/supportedLocales.js +1 -1
  626. package/cjs/resources/nls/sv/bundle.js +1 -1
  627. package/cjs/resources/nls/th/bundle.js +1 -1
  628. package/cjs/resources/nls/tr/bundle.js +1 -1
  629. package/cjs/resources/nls/uk/bundle.js +1 -1
  630. package/cjs/resources/nls/vi/bundle.js +1 -1
  631. package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
  632. package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
  633. package/cjs/{stringUtils-f557225b.js → stringUtils-f58c4e50.js} +2 -2
  634. package/cjs/{stringUtils-f557225b.js.map → stringUtils-f58c4e50.js.map} +1 -1
  635. package/cjs/{testHelpers-4eae5f18.js → testHelpers-eb0845df.js} +2 -2
  636. package/cjs/{testHelpers-4eae5f18.js.map → testHelpers-eb0845df.js.map} +1 -1
  637. package/cjs/translationBundle.js +1 -1
  638. package/cjs/{tslib.es6-af5a0e61.js → tslib.es6-f2a4e02f.js} +2 -2
  639. package/cjs/{tslib.es6-af5a0e61.js.map → tslib.es6-f2a4e02f.js.map} +1 -1
  640. package/cjs/{useAnimation-de52a08d.js → useAnimation-49f08a98.js} +3 -3
  641. package/cjs/{useAnimation-de52a08d.js.map → useAnimation-49f08a98.js.map} +1 -1
  642. package/cjs/{useFocusWithin-44b2f28d.js → useFocusWithin-05b47c24.js} +2 -2
  643. package/cjs/{useFocusWithin-44b2f28d.js.map → useFocusWithin-05b47c24.js.map} +1 -1
  644. package/cjs/{useSingleSelection-88ff60ce.js → useSingleSelection-7d25635d.js} +2 -2
  645. package/cjs/{useSingleSelection-88ff60ce.js.map → useSingleSelection-7d25635d.js.map} +1 -1
  646. package/cjs/utils/PRIVATE_clientHints.js +2 -2
  647. package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
  648. package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
  649. package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
  650. package/cjs/utils/PRIVATE_meterUtils.js +1 -1
  651. package/cjs/utils/PRIVATE_refUtils.js +1 -1
  652. package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
  653. package/cjs/utils/PRIVATE_timer.js +1 -1
  654. package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
  655. package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
  656. package/cjs/utils/UNSAFE_classNames.js +2 -2
  657. package/cjs/utils/UNSAFE_componentUtils.js +1 -1
  658. package/cjs/utils/UNSAFE_dataProvider.js +1 -1
  659. package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
  660. package/cjs/utils/UNSAFE_getLocale.js +1 -1
  661. package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
  662. package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
  663. package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  664. package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  665. package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
  666. package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
  667. package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
  668. package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
  669. package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
  670. package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
  671. package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
  672. package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
  673. package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
  674. package/cjs/utils/UNSAFE_keys.js +1 -1
  675. package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
  676. package/cjs/utils/UNSAFE_logger.js +3 -3
  677. package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
  678. package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
  679. package/cjs/utils/UNSAFE_mergeProps.js +1 -1
  680. package/cjs/utils/UNSAFE_meterTypes.js +1 -1
  681. package/cjs/utils/UNSAFE_roles.js +1 -1
  682. package/cjs/utils/UNSAFE_selectUtils.js +1 -1
  683. package/cjs/utils/UNSAFE_size.js +1 -1
  684. package/cjs/utils/UNSAFE_soundUtils.js +1 -1
  685. package/cjs/utils/UNSAFE_stringUtils.js +2 -2
  686. package/cjs/utils/UNSAFE_typeUtils.js +1 -1
  687. package/cjs/utils/UNSAFE_units.js +2 -2
  688. package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
  689. package/es/{ClearIcon-fbc63558.js → ClearIcon-ed6494d1.js} +3 -3
  690. package/es/{ClearIcon-fbc63558.js.map → ClearIcon-ed6494d1.js.map} +1 -1
  691. package/es/{LoadMoreCollection-ec6aa3f6.js → LoadMoreCollection-cf7aad2c.js} +2 -2
  692. package/es/{LoadMoreCollection-ec6aa3f6.js.map → LoadMoreCollection-cf7aad2c.js.map} +1 -1
  693. package/es/PRIVATE_Collection.js +1 -1
  694. package/es/PRIVATE_List.css +15 -15
  695. package/es/PRIVATE_List.js +24 -24
  696. package/es/PRIVATE_List.js.map +1 -1
  697. package/es/PRIVATE_Message.css +27 -27
  698. package/es/PRIVATE_Message.js +35 -35
  699. package/es/PRIVATE_Message.js.map +1 -1
  700. package/es/PRIVATE_MessageLayer.css +7 -7
  701. package/es/PRIVATE_MessageLayer.js +14 -14
  702. package/es/PRIVATE_MessageLayer.js.map +1 -1
  703. package/es/PRIVATE_Meter.js +2 -2
  704. package/es/PRIVATE_SelectCommon.css +13 -13
  705. package/es/PRIVATE_SelectCommon.js +22 -22
  706. package/es/PRIVATE_SelectCommon.js.map +1 -1
  707. package/es/PRIVATE_TransitionGroup.js +1 -1
  708. package/es/PRIVATE_VirtualizedCollection.js +1 -1
  709. package/es/UNSAFE_AspectRatio.css +1 -1
  710. package/es/UNSAFE_AspectRatio.js +7 -7
  711. package/es/UNSAFE_AspectRatio.js.map +1 -1
  712. package/es/UNSAFE_Avatar.css +8 -8
  713. package/es/UNSAFE_Avatar.js +10 -10
  714. package/es/UNSAFE_Avatar.js.map +1 -1
  715. package/es/UNSAFE_Badge.css +13 -13
  716. package/es/UNSAFE_Badge.js +14 -14
  717. package/es/UNSAFE_Badge.js.map +1 -1
  718. package/es/UNSAFE_BaseButton.css +15 -15
  719. package/es/UNSAFE_BaseButton.js +21 -21
  720. package/es/UNSAFE_BaseButton.js.map +1 -1
  721. package/es/UNSAFE_Button.css +8 -8
  722. package/es/UNSAFE_Button.js +14 -14
  723. package/es/UNSAFE_Button.js.map +1 -1
  724. package/es/UNSAFE_Center.js +7 -7
  725. package/es/UNSAFE_Chip.css +7 -7
  726. package/es/UNSAFE_Chip.js +8 -8
  727. package/es/UNSAFE_Chip.js.map +1 -1
  728. package/es/UNSAFE_Collapsible.css +8 -8
  729. package/es/UNSAFE_Collapsible.js +16 -16
  730. package/es/UNSAFE_Collapsible.js.map +1 -1
  731. package/es/UNSAFE_Collection.js +1 -1
  732. package/es/UNSAFE_ComponentMessage.css +2 -2
  733. package/es/UNSAFE_ComponentMessage.js +10 -10
  734. package/es/UNSAFE_ComponentMessage.js.map +1 -1
  735. package/es/UNSAFE_Divider.css +1 -1
  736. package/es/UNSAFE_Divider.js +6 -6
  737. package/es/UNSAFE_EmptyList.js +1 -1
  738. package/es/UNSAFE_Environment.js +1 -1
  739. package/es/UNSAFE_FilePicker.css +6 -6
  740. package/es/UNSAFE_FilePicker.js +13 -13
  741. package/es/UNSAFE_FilePicker.js.map +1 -1
  742. package/es/UNSAFE_Flex.css +2 -2
  743. package/es/UNSAFE_Flex.js +9 -9
  744. package/es/UNSAFE_Flex.js.map +1 -1
  745. package/es/UNSAFE_Floating.js +2 -2
  746. package/es/UNSAFE_FocusTrap.css +2 -2
  747. package/es/UNSAFE_FocusTrap.js +6 -6
  748. package/es/UNSAFE_FocusTrap.js.map +1 -1
  749. package/es/UNSAFE_Grid.css +1 -1
  750. package/es/UNSAFE_Grid.js +8 -8
  751. package/es/UNSAFE_Heading.css +9 -9
  752. package/es/UNSAFE_Heading.js +16 -16
  753. package/es/UNSAFE_Heading.js.map +1 -1
  754. package/es/UNSAFE_HiddenAccessible.css +1 -1
  755. package/es/UNSAFE_HiddenAccessible.js +2 -2
  756. package/es/UNSAFE_HighlightText.css +1 -1
  757. package/es/UNSAFE_HighlightText.js +2 -2
  758. package/es/UNSAFE_HighlightText.js.map +1 -1
  759. package/es/UNSAFE_Icon.css +21 -21
  760. package/es/UNSAFE_Icon.js +24 -24
  761. package/es/UNSAFE_Icon.js.map +1 -1
  762. package/es/UNSAFE_Icons.js +3 -3
  763. package/es/UNSAFE_Indexer.css +7 -7
  764. package/es/UNSAFE_Indexer.js +15 -15
  765. package/es/UNSAFE_Indexer.js.map +1 -1
  766. package/es/UNSAFE_InputPassword.css +1 -1
  767. package/es/UNSAFE_InputPassword.js +10 -10
  768. package/es/UNSAFE_InputText.css +1 -1
  769. package/es/UNSAFE_InputText.js +9 -9
  770. package/es/UNSAFE_Label.css +13 -13
  771. package/es/UNSAFE_Label.js +15 -15
  772. package/es/UNSAFE_Label.js.map +1 -1
  773. package/es/UNSAFE_LabelValueLayout.css +9 -9
  774. package/es/UNSAFE_LabelValueLayout.js +16 -16
  775. package/es/UNSAFE_LabelValueLayout.js.map +1 -1
  776. package/es/UNSAFE_Layer.js +1 -1
  777. package/es/UNSAFE_Link.css +5 -5
  778. package/es/UNSAFE_Link.js +6 -6
  779. package/es/UNSAFE_Link.js.map +1 -1
  780. package/es/UNSAFE_ListItemLayout.css +9 -9
  781. package/es/UNSAFE_ListItemLayout.js +16 -16
  782. package/es/UNSAFE_ListItemLayout.js.map +1 -1
  783. package/es/UNSAFE_ListView.js +9 -9
  784. package/es/UNSAFE_LiveRegion.css +1 -1
  785. package/es/UNSAFE_LiveRegion.js +2 -2
  786. package/es/UNSAFE_LiveRegion.js.map +1 -1
  787. package/es/UNSAFE_LoadMoreCollection.js +2 -2
  788. package/es/UNSAFE_Menu.css +17 -17
  789. package/es/UNSAFE_Menu.js +24 -24
  790. package/es/UNSAFE_Menu.js.map +1 -1
  791. package/es/UNSAFE_MessageBanner.js +8 -8
  792. package/es/UNSAFE_MessageToast.css +1 -1
  793. package/es/UNSAFE_MessageToast.js +9 -9
  794. package/es/UNSAFE_MeterBar.css +43 -43
  795. package/es/UNSAFE_MeterBar.js +46 -46
  796. package/es/UNSAFE_MeterBar.js.map +1 -1
  797. package/es/UNSAFE_MeterCircle.css +46 -46
  798. package/es/UNSAFE_MeterCircle.js +49 -49
  799. package/es/UNSAFE_MeterCircle.js.map +1 -1
  800. package/es/UNSAFE_Modal.css +3 -3
  801. package/es/UNSAFE_Modal.js +7 -7
  802. package/es/UNSAFE_NumberInputText.js +8 -8
  803. package/es/UNSAFE_PrefixSuffix.css +8 -8
  804. package/es/UNSAFE_PrefixSuffix.js +9 -9
  805. package/es/UNSAFE_PrefixSuffix.js.map +1 -1
  806. package/es/UNSAFE_ProgressBar.css +6 -6
  807. package/es/UNSAFE_ProgressBar.js +8 -8
  808. package/es/UNSAFE_ProgressBar.js.map +1 -1
  809. package/es/UNSAFE_ProgressCircle.css +6 -6
  810. package/es/UNSAFE_ProgressCircle.js +8 -8
  811. package/es/UNSAFE_ProgressCircle.js.map +1 -1
  812. package/es/UNSAFE_RatingGauge.css +20 -20
  813. package/es/UNSAFE_RatingGauge.js +23 -23
  814. package/es/UNSAFE_RatingGauge.js.map +1 -1
  815. package/es/UNSAFE_SelectMultiple.css +1 -1
  816. package/es/UNSAFE_SelectMultiple.js +10 -10
  817. package/es/UNSAFE_SelectMultiple.js.map +1 -1
  818. package/es/UNSAFE_SelectSingle.js +9 -9
  819. package/es/UNSAFE_Selector.css +5 -5
  820. package/es/UNSAFE_Selector.js +13 -13
  821. package/es/UNSAFE_Selector.js.map +1 -1
  822. package/es/UNSAFE_Skeleton.css +1 -1
  823. package/es/UNSAFE_Skeleton.js +7 -7
  824. package/es/UNSAFE_Spacer.js +7 -7
  825. package/es/UNSAFE_SplitMenuButton.css +5 -5
  826. package/es/UNSAFE_SplitMenuButton.js +12 -12
  827. package/es/UNSAFE_SplitMenuButton.js.map +1 -1
  828. package/es/UNSAFE_Text.css +25 -25
  829. package/es/UNSAFE_Text.js +31 -31
  830. package/es/UNSAFE_Text.js.map +1 -1
  831. package/es/UNSAFE_TextArea.css +3 -3
  832. package/es/UNSAFE_TextArea.js +11 -11
  833. package/es/UNSAFE_TextArea.js.map +1 -1
  834. package/es/UNSAFE_TextAreaAutosize.js +8 -8
  835. package/es/UNSAFE_TextField.css +58 -58
  836. package/es/UNSAFE_TextField.js +65 -65
  837. package/es/UNSAFE_TextField.js.map +1 -1
  838. package/es/UNSAFE_ThemedIcons.js +3 -3
  839. package/es/UNSAFE_UserAssistance.css +8 -8
  840. package/es/UNSAFE_UserAssistance.js +16 -16
  841. package/es/UNSAFE_UserAssistance.js.map +1 -1
  842. package/es/UNSAFE_View.js +7 -7
  843. package/es/UNSAFE_VirtualizedListView.js +9 -9
  844. package/es/UNSAFE_WindowOverlay.js +1 -1
  845. package/es/{_curry1-657e284f.js → _curry1-5d38e450.js} +2 -2
  846. package/es/{_curry1-657e284f.js.map → _curry1-5d38e450.js.map} +1 -1
  847. package/es/{_curry2-51415181.js → _curry2-a1037f65.js} +3 -3
  848. package/es/{_curry2-51415181.js.map → _curry2-a1037f65.js.map} +1 -1
  849. package/es/{_curry3-1f707fb6.js → _curry3-ef528106.js} +4 -4
  850. package/es/{_curry3-1f707fb6.js.map → _curry3-ef528106.js.map} +1 -1
  851. package/es/{_has-9ead1356.js → _has-37d50195.js} +3 -3
  852. package/es/{_has-9ead1356.js.map → _has-37d50195.js.map} +1 -1
  853. package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  854. package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
  855. package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
  856. package/es/hooks/PRIVATE_useItemAction.js +1 -1
  857. package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  858. package/es/hooks/PRIVATE_useSelection.js +1 -1
  859. package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
  860. package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  861. package/es/hooks/UNSAFE_useActionable.js +1 -1
  862. package/es/hooks/UNSAFE_useActive.js +1 -1
  863. package/es/hooks/UNSAFE_useAnimation.js +2 -2
  864. package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
  865. package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
  866. package/es/hooks/UNSAFE_useClearIcon.js +1 -1
  867. package/es/hooks/UNSAFE_useColorScheme.js +1 -1
  868. package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  869. package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  870. package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  871. package/es/hooks/UNSAFE_useDebounce.js +1 -1
  872. package/es/hooks/UNSAFE_useFloating.js +2 -2
  873. package/es/hooks/UNSAFE_useFocus.js +1 -1
  874. package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
  875. package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
  876. package/es/hooks/UNSAFE_useFormContext.js +1 -1
  877. package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
  878. package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
  879. package/es/hooks/UNSAFE_useHover.js +1 -1
  880. package/es/hooks/UNSAFE_useId.js +1 -1
  881. package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
  882. package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  883. package/es/hooks/UNSAFE_useLongPress.js +1 -1
  884. package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
  885. package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
  886. package/es/hooks/UNSAFE_usePan.js +1 -1
  887. package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  888. package/es/hooks/UNSAFE_usePress.js +1 -1
  889. package/es/hooks/UNSAFE_useScale.js +1 -1
  890. package/es/hooks/UNSAFE_useSwipe.js +1 -1
  891. package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
  892. package/es/hooks/UNSAFE_useTap.js +1 -1
  893. package/es/hooks/UNSAFE_useTextField.js +1 -1
  894. package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  895. package/es/hooks/UNSAFE_useTheme.js +1 -1
  896. package/es/hooks/UNSAFE_useTimer.js +1 -1
  897. package/es/hooks/UNSAFE_useToggle.js +1 -1
  898. package/es/hooks/UNSAFE_useTooltip.css +4 -4
  899. package/es/hooks/UNSAFE_useTooltip.js +7 -7
  900. package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
  901. package/es/hooks/UNSAFE_useTouch.js +1 -1
  902. package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
  903. package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
  904. package/es/hooks/UNSAFE_useUser.js +1 -1
  905. package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
  906. package/es/{index-cd6b346a.js → index-9b59ad75.js} +2 -2
  907. package/es/{index-cd6b346a.js.map → index-9b59ad75.js.map} +1 -1
  908. package/es/{keys-338589a1.js → keys-99dfc798.js} +4 -4
  909. package/es/{keys-338589a1.js.map → keys-99dfc798.js.map} +1 -1
  910. package/es/resources/nls/ar/bundle.js +1 -1
  911. package/es/resources/nls/ar-XB/bundle.js +1 -1
  912. package/es/resources/nls/bg/bundle.js +1 -1
  913. package/es/resources/nls/bs/bundle.js +1 -1
  914. package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
  915. package/es/resources/nls/bundle.js +1 -1
  916. package/es/resources/nls/cs/bundle.js +1 -1
  917. package/es/resources/nls/da/bundle.js +1 -1
  918. package/es/resources/nls/de/bundle.js +1 -1
  919. package/es/resources/nls/el/bundle.js +1 -1
  920. package/es/resources/nls/en/bundle.js +1 -1
  921. package/es/resources/nls/en-XA/bundle.js +1 -1
  922. package/es/resources/nls/en-XC/bundle.js +1 -1
  923. package/es/resources/nls/es/bundle.js +1 -1
  924. package/es/resources/nls/et/bundle.js +1 -1
  925. package/es/resources/nls/fi/bundle.js +1 -1
  926. package/es/resources/nls/fr/bundle.js +1 -1
  927. package/es/resources/nls/fr-CA/bundle.js +1 -1
  928. package/es/resources/nls/he/bundle.js +1 -1
  929. package/es/resources/nls/hr/bundle.js +1 -1
  930. package/es/resources/nls/hu/bundle.js +1 -1
  931. package/es/resources/nls/is/bundle.js +1 -1
  932. package/es/resources/nls/it/bundle.js +1 -1
  933. package/es/resources/nls/ja/bundle.js +1 -1
  934. package/es/resources/nls/ko/bundle.js +1 -1
  935. package/es/resources/nls/lt/bundle.js +1 -1
  936. package/es/resources/nls/lv/bundle.js +1 -1
  937. package/es/resources/nls/ms/bundle.js +1 -1
  938. package/es/resources/nls/nl/bundle.js +1 -1
  939. package/es/resources/nls/no/bundle.js +1 -1
  940. package/es/resources/nls/pl/bundle.js +1 -1
  941. package/es/resources/nls/pt/bundle.js +1 -1
  942. package/es/resources/nls/pt-PT/bundle.js +1 -1
  943. package/es/resources/nls/ro/bundle.js +1 -1
  944. package/es/resources/nls/ru/bundle.js +1 -1
  945. package/es/resources/nls/sk/bundle.js +1 -1
  946. package/es/resources/nls/sl/bundle.js +1 -1
  947. package/es/resources/nls/sr/bundle.js +1 -1
  948. package/es/resources/nls/sr-Latn/bundle.js +1 -1
  949. package/es/resources/nls/supportedLocales.js +1 -1
  950. package/es/resources/nls/sv/bundle.js +1 -1
  951. package/es/resources/nls/th/bundle.js +1 -1
  952. package/es/resources/nls/tr/bundle.js +1 -1
  953. package/es/resources/nls/uk/bundle.js +1 -1
  954. package/es/resources/nls/vi/bundle.js +1 -1
  955. package/es/resources/nls/zh-Hans/bundle.js +1 -1
  956. package/es/resources/nls/zh-Hant/bundle.js +1 -1
  957. package/es/translationBundle.js +1 -1
  958. package/es/{tslib.es6-2f74e2cc.js → tslib.es6-64463826.js} +2 -2
  959. package/es/{tslib.es6-2f74e2cc.js.map → tslib.es6-64463826.js.map} +1 -1
  960. package/es/{useSingleSelection-3a565428.js → useSingleSelection-eec0e9e9.js} +2 -2
  961. package/es/{useSingleSelection-3a565428.js.map → useSingleSelection-eec0e9e9.js.map} +1 -1
  962. package/es/utils/PRIVATE_clientHints.js +1 -1
  963. package/es/utils/PRIVATE_collectionUtils.js +1 -1
  964. package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
  965. package/es/utils/PRIVATE_floatingUtils.js +1 -1
  966. package/es/utils/PRIVATE_meterUtils.js +1 -1
  967. package/es/utils/PRIVATE_refUtils.js +1 -1
  968. package/es/utils/PRIVATE_tabbableUtils.js +4 -4
  969. package/es/utils/PRIVATE_timer.js +1 -1
  970. package/es/utils/UNSAFE_arrayUtils.js +1 -1
  971. package/es/utils/UNSAFE_attributeUtils.js +1 -1
  972. package/es/utils/UNSAFE_classNames.js +1 -1
  973. package/es/utils/UNSAFE_componentUtils.js +1 -1
  974. package/es/utils/UNSAFE_dataProvider.js +1 -1
  975. package/es/utils/UNSAFE_filePickerUtils.js +1 -1
  976. package/es/utils/UNSAFE_getLocale.js +1 -1
  977. package/es/utils/UNSAFE_interpolations/aria.js +1 -1
  978. package/es/utils/UNSAFE_interpolations/borders.js +1 -1
  979. package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  980. package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  981. package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  982. package/es/utils/UNSAFE_interpolations/colors.js +1 -1
  983. package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
  984. package/es/utils/UNSAFE_interpolations/flexbox.css +7 -7
  985. package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
  986. package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
  987. package/es/utils/UNSAFE_interpolations/flexitem.css +7 -7
  988. package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
  989. package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
  990. package/es/utils/UNSAFE_interpolations/grid.js +1 -1
  991. package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
  992. package/es/utils/UNSAFE_interpolations/padding.js +1 -1
  993. package/es/utils/UNSAFE_interpolations/text.css +3 -3
  994. package/es/utils/UNSAFE_interpolations/text.js +7 -7
  995. package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
  996. package/es/utils/UNSAFE_keys.js +1 -1
  997. package/es/utils/UNSAFE_lengthFilter.js +1 -1
  998. package/es/utils/UNSAFE_logger.js +3 -3
  999. package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
  1000. package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
  1001. package/es/utils/UNSAFE_mergeProps.js +1 -1
  1002. package/es/utils/UNSAFE_meterTypes.js +1 -1
  1003. package/es/utils/UNSAFE_roles.js +1 -1
  1004. package/es/utils/UNSAFE_selectUtils.js +1 -1
  1005. package/es/utils/UNSAFE_size.js +1 -1
  1006. package/es/utils/UNSAFE_soundUtils.js +1 -1
  1007. package/es/utils/UNSAFE_stringUtils.js +1 -1
  1008. package/es/utils/UNSAFE_typeUtils.js +1 -1
  1009. package/es/utils/UNSAFE_units.js +1 -1
  1010. package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1011. package/package.json +1 -1
  1012. package/amd/Badge-9175fbab.js +0 -2
  1013. package/amd/BaseButton-ebed03fc.js +0 -2
  1014. package/amd/Button-68100aa2.js +0 -2
  1015. package/amd/Chip-27950497.js +0 -2
  1016. package/amd/ClearIcon-fbfb919b.js +0 -2
  1017. package/amd/ComponentMessage-d6eabb8b.js +0 -2
  1018. package/amd/ComponentMessageContainer-9d207766.js +0 -2
  1019. package/amd/Flex-feea6d33.js +0 -2
  1020. package/amd/FocusTrap-c829bbb6.js +0 -2
  1021. package/amd/FormControlUtils-05d612b2.js +0 -2
  1022. package/amd/Heading-b6851001.js +0 -2
  1023. package/amd/HiddenAccessible-7a830f5b.js +0 -2
  1024. package/amd/HighlightText-0dcc56c8.js +0 -2
  1025. package/amd/Icon-734f5882.js +0 -2
  1026. package/amd/Indexer-db8fef02.js +0 -2
  1027. package/amd/InlineHelpSource-b84f4d4c.js +0 -2
  1028. package/amd/Link-342b0888.js +0 -2
  1029. package/amd/List-70e50ac0.js +0 -2
  1030. package/amd/ListItemTextLayout-0fcd3aa2.js +0 -2
  1031. package/amd/Menu-216ca145.js +0 -2
  1032. package/amd/MenuDivider-4f0b0980.js +0 -2
  1033. package/amd/MenuItem-61f30a1b.js +0 -2
  1034. package/amd/MessageCloseButton-e3eff42e.js +0 -2
  1035. package/amd/MessageDetail-1be1c95e.js +0 -2
  1036. package/amd/MessageLayer-4a956c0e.js +0 -2
  1037. package/amd/MessageStartIcon-eb47a169.js +0 -2
  1038. package/amd/MessageSummary-89b4de95.js +0 -2
  1039. package/amd/MessageTimestamp-05386412.js +0 -2
  1040. package/amd/MessageToast-ddea810f.js +0 -2
  1041. package/amd/MeterCircle-896974e4.js +0 -2
  1042. package/amd/Modal-da798ad9.js +0 -2
  1043. package/amd/ReadonlyTextFieldInput-1da0c096.js +0 -2
  1044. package/amd/SelectMultiple-dfb5b765.js +0 -2
  1045. package/amd/Skeleton-fc198bf2.js +0 -2
  1046. package/amd/SplitMenuButton-1a916527.js +0 -2
  1047. package/amd/Text-9d65ad6d.js +0 -2
  1048. package/amd/TextArea-6b0f7f8a.js +0 -2
  1049. package/amd/TextFieldInput-3c4b3298.js +0 -2
  1050. package/amd/_curry2-52e3b69d.js +0 -2
  1051. package/amd/_curry3-9b155fdc.js +0 -2
  1052. package/amd/_has-f7daf036.js +0 -2
  1053. package/amd/flexbox-08558092.js +0 -2
  1054. package/amd/flexitem-ed3f79c3.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"TextAreaAutosize-ee3fd9dd.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":";;;;;;;;;;;;;;;;;;;;;AAAA;AACO,MAAM,mBAAmB,GAAG,CAAC,QAA6B,KAAY;IAC3E,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACxD,IAAA,MAAM,kBAAkB,GAAG,aAAa,CAAC,UAAU,CAAC;IACpD,IAAI,kBAAkB,KAAK,QAAQ,EAAE;;;;;QAKnC,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACpD,OAAO,GAAG,GAAG,QAAQ,CAAC;AACvB,KAAA;AACD,IAAA,OAAO,UAAU,CAAC,kBAAkB,CAAC,CA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AV,IAAA,IAAA,UAAU,uBAAV,UAAU,CAAE,SAAS,EAC1B,EAAA,cAAc,EACd,eAAe,CAAA,CAAc,EACT,CAAA,CAAA,EAC5B;AACJ,CAAC;;;;;;;"}
1
+ {"version":3,"file":"TextAreaAutosize-bcc62f1e.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":";;;;;;;;;;;;;;;;;;;;;AAAA;AACO,MAAM,mBAAmB,GAAG,CAAC,QAA6B,KAAY;IAC3E,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACxD,IAAA,MAAM,kBAAkB,GAAG,aAAa,CAAC,UAAU,CAAC;IACpD,IAAI,kBAAkB,KAAK,QAAQ,EAAE;;;;;QAKnC,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACpD,OAAO,GAAG,GAAG,QAAQ,CAAC;AACvB,KAAA;AACD,IAAA,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC;AACxC,CAAC,CAAC;AACK,MAAM,gBAAgB,GAAG,CAAC,QAA6B,KAAI;IAChE,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IACzD,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,UAAU,CAA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EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACR,EAAA,UAAU,CACd,CAAA,EACD,gBAAgB,KAAK,WAAW,IAAI,SAAS,KAAK,SAAS,KAC1DR,cAAA,CAACS,yBAAgB,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACX,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA,CAClF,CACH,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;IAEF,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;AACJ,CAAC;;;;;;;"}
@@ -1,7 +1,7 @@
1
- /* @oracle/oraclejet-preact: 14.0.15 */
1
+ /* @oracle/oraclejet-preact: 14.0.16 */
2
2
  'use strict';
3
3
 
4
- var tslib_es6 = require('./tslib.es6-af5a0e61.js');
4
+ var tslib_es6 = require('./tslib.es6-f2a4e02f.js');
5
5
  var jsxRuntime = require('preact/jsx-runtime');
6
6
 
7
7
  var hooks_UNSAFE_useFormFieldContext = require('./hooks/UNSAFE_useFormFieldContext.js');
@@ -10,24 +10,24 @@ var hooks_UNSAFE_useTextFieldInputHandlers = require('./hooks/UNSAFE_useTextFiel
10
10
  require('./utils/UNSAFE_classNames.js');
11
11
  var utils_UNSAFE_interpolations_text = require('./utils/UNSAFE_interpolations/text.js');
12
12
  var utils_UNSAFE_mergeInterpolations = require('./utils/UNSAFE_mergeInterpolations.js');
13
- var FormControlUtils = require('./FormControlUtils-072a60c6.js');
14
- var classNames = require('./classNames-0b5e7ec9.js');
13
+ var FormControlUtils = require('./FormControlUtils-f100aee2.js');
14
+ var classNames = require('./classNames-74b1faa1.js');
15
15
 
16
16
  const textFieldStyles = {
17
- base: "_1mqd5uu",
18
- embedded: "c1pzn",
19
- nonReadonly: "_16si7qv"
17
+ base: "ai0uxw",
18
+ embedded: "ry74ga",
19
+ nonReadonly: "_1euxvrh"
20
20
  };
21
21
  const readonlyStyles = {
22
- base: "xv3js0",
23
- insideEnabledForm: "vb8qeo",
24
- textarea: "_1yd08bh",
25
- insideEnabledFormLabelInside: "_39f1x",
26
- notInsideEnabledForm: "_1j6ae89",
27
- textareaNotInsideEnabledForm: "_15m913l"
22
+ base: "_409l7d",
23
+ insideEnabledForm: "_183yht7",
24
+ textarea: "_1ybnrse",
25
+ insideEnabledFormLabelInside: "_5h8hxp",
26
+ notInsideEnabledForm: "_5xc62i",
27
+ textareaNotInsideEnabledForm: "dns0j5"
28
28
  }; //Consolidating all loading styles on form elements here
29
29
 
30
- const loadingStyles = "lt1kb3";
30
+ const loadingStyles = "qw88md";
31
31
  const getTextFieldClasses = (readonly, variant) => {
32
32
  return classNames.classNames([textFieldStyles.base, variant === 'embedded' && textFieldStyles.embedded, !readonly && textFieldStyles.nonReadonly]);
33
33
  };
@@ -43,26 +43,26 @@ const isInputPlaceholderShown = (hasInsideLabel, hasValue, isFocused) => {
43
43
  };
44
44
 
45
45
  const rootStyles = {
46
- base: "_10gfav",
46
+ base: "rp68sw",
47
47
  // removes margin that Safari adds to the input element
48
- input: "jxxfr0",
49
- textarea: "qamdx2",
50
- password: "_53leeo",
51
- labelDefaultPadding: "_4ytvhy",
52
- labelInsideBase: "ttsjek",
53
- textareaLabelInsideBase: "hz3ynk",
54
- labelInsideNoValueAndHasFocus: "_119l737",
55
- hasStartContent: "xddgmy",
56
- hasEndContent: "_1bg0t21",
57
- defaultColor: "_19ymrca",
58
- disabledColor: "_1tt8ycp",
48
+ input: "_15cog6b",
49
+ textarea: "_1ovpq1c",
50
+ password: "_1vdi7t0",
51
+ labelDefaultPadding: "_1t9c87p",
52
+ labelInsideBase: "enxmo1",
53
+ textareaLabelInsideBase: "_1ukpdmi",
54
+ labelInsideNoValueAndHasFocus: "_1st6t2c",
55
+ hasStartContent: "_1y08lso",
56
+ hasEndContent: "_1n02yq7",
57
+ defaultColor: "_1qztioo",
58
+ disabledColor: "_1ww0gxw",
59
59
  // The 0.25em is the space between the prefix and the input. This is equivalent to ' '.
60
- hasPrefix: "_1gvenqx",
61
- hasSuffix: "bmhket",
62
- default: "_1rgzhiu",
63
- defaultPaddingStart: "_8lom4x",
64
- defaultPaddingEnd: "_181mgca",
65
- embedded: "mgsw9b"
60
+ hasPrefix: "irfoqh",
61
+ hasSuffix: "_19348jg",
62
+ default: "xjrov0",
63
+ defaultPaddingStart: "_1xcjq3n",
64
+ defaultPaddingEnd: "h4919q",
65
+ embedded: "_1d92emn"
66
66
  };
67
67
  const interpolations = [...Object.values(utils_UNSAFE_interpolations_text.textInterpolations)];
68
68
  const styleInterpolations = utils_UNSAFE_mergeInterpolations.mergeInterpolations(interpolations);
@@ -179,4 +179,4 @@ exports.getReadonlyClasses = getReadonlyClasses;
179
179
  exports.getTextFieldClasses = getTextFieldClasses;
180
180
  exports.loadingStyles = loadingStyles;
181
181
  /* */
182
- //# sourceMappingURL=TextFieldInput-b42499a5.js.map
182
+ //# sourceMappingURL=TextFieldInput-b7429629.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextFieldInput-b42499a5.js","sources":["../../src/UNSAFE_TextField/TextFieldUtils.ts","../../src/UNSAFE_TextField/TextFieldInput.tsx"],"sourcesContent":["import { classNames } from '../utils/UNSAFE_classNames';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\nconst textFieldStyles = {\n base: cssProps`${{\n display: 'inline-block',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height)',\n maxWidth: '100%',\n width: '100%',\n boxSizing: 'border-box'\n }}`,\n\n embedded: cssProps`${{\n height: '100%'\n }}`,\n\n nonReadonly: cssProps`${{\n fontWeight: '400',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-font-size)'\n }}`\n};\n\nconst readonlyStyles = {\n base: cssProps`${{\n fontWeight: 'var(--oj-form-control-font-weight-read-only)',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size)',\n position: 'relative',\n borderStyle: 'solid',\n transitionProperty: 'border-color',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'linear',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-border-radius)',\n flexDirection: 'row',\n alignItems: 'center',\n maxWidth: '100%',\n width: '100%',\n boxSizing: 'border-box'\n }}`,\n\n insideEnabledForm: cssProps`${{\n overflowX: 'hidden',\n overflowY: 'hidden',\n borderWidth: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-border-width)',\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-border-color-disabled)',\n backgroundColor: 'transparent',\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height)',\n minWidth: '1em',\n display: 'inline-flex',\n flex: '1'\n }}`,\n\n textarea: cssProps`${{\n height: 'auto'\n }}`,\n\n insideEnabledFormLabelInside: cssProps`${{\n minHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-height)'\n }}`,\n\n notInsideEnabledForm: cssProps`${{\n overflowX: 'visible',\n overflowY: 'visible',\n borderWidth: '0',\n backgroundColor: 'transparent',\n height: 'auto'\n }}`,\n\n textareaNotInsideEnabledForm: cssProps`${{\n paddingTop: '0',\n paddingBottom: '0'\n }}`\n};\n\n//Consolidating all loading styles on form elements here\nexport const loadingStyles = cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-animation-skeleton-bg-end-color)',\n backgroundSize: '200% 200%',\n borderWidth: '0',\n // need to use a var for the animation name because otherwise linaria will obfuscate it\n // and make it different from the actual keyframes name\n animationName: 'var(--oj-c-PRIVATE-DO-NOT-USE-private-preact-text-field-animation-name-skeleton)',\n animationIterationCount: 'infinite',\n animationDirection: 'alternate',\n animationDuration: '1.5s',\n opacity: '1'\n}}`;\n\nexport const getTextFieldClasses = (readonly?: boolean, variant?: 'default' | 'embedded') => {\n return classNames([\n textFieldStyles.base,\n variant === 'embedded' && textFieldStyles.embedded,\n !readonly && textFieldStyles.nonReadonly\n ]);\n};\n\nexport const getReadonlyClasses = (\n isInsideNonReadonlyForm?: boolean,\n hasInsideLabel?: boolean,\n variant?: 'textarea'\n) => {\n const classes = classNames([\n readonlyStyles.base,\n variant === 'textarea' && readonlyStyles.textarea,\n isInsideNonReadonlyForm\n ? readonlyStyles.insideEnabledForm\n : readonlyStyles.notInsideEnabledForm,\n variant === 'textarea' &&\n !isInsideNonReadonlyForm &&\n readonlyStyles.textareaNotInsideEnabledForm,\n isInsideNonReadonlyForm && hasInsideLabel && readonlyStyles.insideEnabledFormLabelInside\n ]);\n return classes;\n};\n\nexport const getInputId = (id?: string) => {\n return (id ?? '') + '|input';\n};\n\nexport const isInputPlaceholderShown = (\n hasInsideLabel: boolean,\n hasValue: boolean,\n isFocused?: boolean\n) => {\n return !(hasInsideLabel && !hasValue && !isFocused);\n};\n","import { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Ref } from 'preact';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\nimport { useTextFieldInputHandlers } from '../hooks/UNSAFE_useTextFieldInputHandlers';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport type { TextProps } from '../utils/UNSAFE_interpolations/text';\nimport { textInterpolations } from '../utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { getLoadingAriaLabel } from './FormControlUtils';\nimport { isInputPlaceholderShown } from './TextFieldUtils';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\nconst rootStyles = {\n base: cssProps`${{\n // normally removing an outline can cause accessibility issues, however\n // on an input the cursor blinks so an outline is not required for\n // accessibility. As of 6-11-14 only chrome is putting\n // an outline on inputs anyway\n outlineStyle: 'none',\n outlineWidth: '0',\n boxSizing: 'border-box',\n fontFamily: 'inherit',\n lineHeight: 'inherit',\n fontWeight: 'inherit',\n border: '0',\n backgroundColor: 'transparent',\n width: '100%',\n\n '&::selection': {\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-selected)'\n }\n }}`,\n // removes margin that Safari adds to the input element\n input: cssProps`${{\n margin: '0'\n }}`,\n textarea: cssProps`${{\n paddingTop:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n paddingBottom:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n\n resize: 'none'\n }}`,\n password: cssProps`${{\n '&::-ms-reveal': {\n display: 'none'\n }\n }}`,\n labelDefaultPadding: cssProps`${{\n paddingTop: 0,\n paddingBottom: 0\n }}`,\n labelInsideBase: cssProps`${{\n minHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-height)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-padding-top)',\n paddingBottom: 0,\n\n '&:hover': {\n backgroundColor: 'transparent'\n }\n }}`,\n textareaLabelInsideBase: cssProps`${{\n paddingTop: 0,\n paddingBottom: 0,\n // We are using a transparent border here instead of padding, due to how textarea scrolls the padding off the screen\n // and the text content will clash with the inside label.\n borderColor: 'transparent',\n borderStyle: 'solid',\n borderBlockStartWidth:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-font-size) * var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-line-height) + var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-position-top))',\n // The 0.25rem is an aesthetically pleasing amount of bottom padding\n borderBlockEndWidth: '0.25rem'\n }}`,\n\n labelInsideNoValueAndHasFocus: cssProps`${{\n animationName:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-private-preact-text-field-animation-name-placeholder)',\n animationDuration: 'var(--oj-c-PRIVATE-DO-NOT-USE-animation-duration-xlong)',\n animationTimingFunction: 'var(--oj-c-PRIVATE-DO-NOT-USE-animation-ease-in)'\n }}`,\n\n hasStartContent: cssProps`${{\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-icon-to-text-padding)'\n }}`,\n\n hasEndContent: cssProps`${{\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-icon-to-text-padding)'\n }}`,\n\n defaultColor: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-color)'\n }}`,\n\n disabledColor: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-color-disabled)'\n }}`,\n // The 0.25em is the space between the prefix and the input. This is equivalent to ' '.\n hasPrefix: cssProps`${{\n paddingInlineStart: '.25em'\n }}`,\n\n hasSuffix: cssProps`${{\n paddingInlineEnd: '.25em'\n }}`,\n\n default: cssProps`${{\n fontSize: '100%'\n }}`,\n\n defaultPaddingStart: cssProps`${{\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`,\n\n defaultPaddingEnd: cssProps`${{\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`,\n\n embedded: cssProps`${{\n color: 'inherit',\n fontSize: 'inherit',\n height: '100%',\n margin: 0,\n paddingBlock: 0,\n paddingInline:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-embedded-padding, var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding))',\n\n // textarea styles\n resize: 'none',\n\n // input-password styles\n '&::-ms-reveal': {\n display: 'none'\n }\n }}`\n};\n\nconst interpolations = [...Object.values(textInterpolations)];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\ntype Autocomplete = 'off' | 'on' | string;\n\ntype OrigPickedPropsFromInput = Pick<\n HTMLAttributesSignalExcluded<HTMLInputElement>,\n 'autofocus' | 'id' | 'placeholder' | 'required' | 'role' | 'spellcheck' | 'type'\n>;\ntype RenamedPropsFromInput = Omit<OrigPickedPropsFromInput, 'autofocus' | 'required'> & {\n autoFocus?: OrigPickedPropsFromInput['autofocus'];\n isRequired?: OrigPickedPropsFromInput['required'];\n};\ntype InputProps = {\n as?: 'input';\n type?: Pick<HTMLAttributesSignalExcluded<HTMLInputElement>, 'type'>['type'];\n rows?: never;\n inputRef?: Ref<HTMLInputElement>;\n hasPrefix?: boolean;\n hasSuffix?: boolean;\n};\n\ntype TextAreaProps = {\n as: 'textarea';\n type?: never;\n rows?: number;\n inputRef?: Ref<HTMLTextAreaElement>;\n hasPrefix?: never;\n hasSuffix?: never;\n};\n\ntype UniqueProps = InputProps | TextAreaProps;\n\ntype AriaProps = {\n ariaAutoComplete?: 'none' | 'inline' | 'list' | 'both';\n ariaControls?: string;\n ariaDescribedBy?: string;\n ariaExpanded?: boolean;\n ariaInvalid?: string;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n ariaValueMax?: number;\n ariaValueMin?: number;\n ariaValueNow?: number;\n ariaValueText?: string;\n};\n\ntype Props = UniqueProps &\n TextProps &\n RenamedPropsFromInput &\n AriaProps & {\n autoComplete?: Autocomplete;\n // TODO: Should we expose has* props like these or should we pass this info\n // via FormFieldContext? (from review on 3/8/22)\n currentCommitValue?: string;\n hasEndContent?: boolean;\n hasInsideLabel?: boolean;\n hasStartContent?: boolean;\n value?: string;\n variant?: 'default' | 'embedded';\n onInput?: (detail: ValueUpdateDetail<string>) => void;\n onCommit?: (detail: ValueUpdateDetail<string>) => void;\n onKeyDown?: (event: KeyboardEvent) => void;\n onKeyUp?: (event: KeyboardEvent) => void;\n };\n\nexport const TextFieldInput = ({\n as = 'input',\n ariaAutoComplete,\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaInvalid,\n ariaLabel,\n ariaLabelledBy,\n ariaValueMax,\n ariaValueMin,\n ariaValueNow,\n ariaValueText,\n autoComplete,\n autoFocus,\n currentCommitValue,\n hasEndContent = false,\n hasInsideLabel = false,\n hasPrefix = false,\n hasStartContent = false,\n hasSuffix = false,\n id,\n inputRef,\n placeholder,\n isRequired,\n role,\n rows,\n spellcheck,\n type,\n value = '',\n variant = 'default',\n onInput,\n onCommit,\n onKeyDown,\n onKeyUp,\n ...props\n}: Props) => {\n const hasValue = value !== '';\n const { isDisabled, isFocused, isLoading, isReadonly } = useFormFieldContext();\n const myPlaceholder = isInputPlaceholderShown(hasInsideLabel, hasValue, isFocused)\n ? placeholder\n : undefined;\n const { class: styleInterpolationClasses } = styleInterpolations(props);\n const renderPrefix = !isDisabled && hasPrefix;\n const renderSuffix = !isDisabled && hasSuffix;\n const inputClasses = classNames([\n 'oj-c-text-field-input',\n rootStyles.base,\n variant === 'default'\n ? classNames([\n rootStyles.default,\n as === 'textarea' && rootStyles.textarea,\n as === 'input' && rootStyles.input,\n type === 'password' && rootStyles.password,\n !hasStartContent && !renderPrefix && rootStyles.defaultPaddingStart,\n !hasEndContent && !renderSuffix && rootStyles.defaultPaddingEnd\n ])\n : rootStyles.embedded,\n hasInsideLabel &&\n classNames([\n rootStyles.labelInsideBase,\n as === 'textarea' && rootStyles.textareaLabelInsideBase,\n !hasValue && isFocused && rootStyles.labelInsideNoValueAndHasFocus\n ]),\n !hasInsideLabel && as !== 'textarea' && rootStyles.labelDefaultPadding,\n // We want the input to have padding on itself. This gives the user more space to click on to set focus to the input.\n // The padding between the input and the icon is different than the padding between the input and prefix/suffix (since they are both text)\n // startcontentpadding+input+endcontentpadding\n hasStartContent && !hasPrefix && rootStyles.hasStartContent,\n hasEndContent && !hasSuffix && rootStyles.hasEndContent,\n isDisabled ? rootStyles.disabledColor : rootStyles.defaultColor,\n // prefix+prefixpadding+input+suffixpadding+suffix\n // if there is also a startcontent or end content,\n // the prefix/suffix will have that padding on it (see PrefixSuffix)\n renderPrefix && rootStyles.hasPrefix,\n renderSuffix && rootStyles.hasSuffix,\n styleInterpolationClasses\n ]);\n const Comp = as || 'input';\n const handlers = useTextFieldInputHandlers({\n currentCommitValue,\n value,\n onInput,\n onCommit,\n onKeyDown\n });\n // the implicit default for tabindex on an input is 0, so do not explicitly set it.\n // JET-52914 - Implement Tabbable mode API contract in InputText\n // if not tabbable, spread tabbableModeProps on component\n const { isTabbable, tabbableModeProps } = useTabbableMode();\n // TODO: for autoComplete='off', need to configure attrs appropriately to make sure it\n // works across browsers and versions (from review on 3/11/22)\n return (\n <Comp\n aria-autocomplete={ariaAutoComplete}\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-invalid={ariaInvalid}\n aria-label={isLoading ? getLoadingAriaLabel() : ariaLabel ? ariaLabel : undefined}\n aria-labelledby={ariaLabelledBy}\n aria-required={isRequired ? true : undefined}\n aria-valuemax={ariaValueMax}\n aria-valuemin={ariaValueMin}\n aria-valuenow={ariaValueNow}\n aria-valuetext={ariaValueText}\n autocomplete={autoComplete}\n autofocus={autoFocus}\n class={inputClasses}\n disabled={isDisabled}\n id={id}\n onKeyUp={onKeyUp}\n placeholder={myPlaceholder}\n readonly={isReadonly}\n // @ts-ignore\n ref={inputRef}\n role={role}\n rows={rows}\n spellcheck={spellcheck}\n type={type}\n value={value}\n {...handlers}\n {...(!isTabbable && tabbableModeProps)}\n />\n );\n};\n"],"names":["textFieldStyles","readonlyStyles","loadingStyles","getTextFieldClasses","readonly","variant","classNames","base","embedded","nonReadonly","getReadonlyClasses","isInsideNonReadonlyForm","hasInsideLabel","textarea","textareaNotInsideEnabledForm","insideEnabledFormLabelInside","classes","getInputId","id","isInputPlaceholderShown","hasValue","isFocused","rootStyles","interpolations","Object","values","textInterpolations","styleInterpolations","mergeInterpolations","TextFieldInput","_a","as","ariaAutoComplete","ariaControls","ariaDescribedBy","ariaExpanded","ariaInvalid","ariaLabel","ariaLabelledBy","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","autoComplete","autoFocus","currentCommitValue","hasEndContent","hasPrefix","hasStartContent","hasSuffix","inputRef","placeholder","isRequired","role","rows","spellcheck","type","value","onInput","onCommit","onKeyDown","onKeyUp","props","__rest","isDisabled","isLoading","isReadonly","useFormFieldContext","renderPrefix","renderSuffix","default","input","password","defaultPaddingStart","defaultPaddingEnd","labelInsideBase","textareaLabelInsideBase","labelInsideNoValueAndHasFocus","Comp","_jsx","assign","getLoadingAriaLabel","undefined","autocomplete","autofocus","class","inputClasses","disabled","myPlaceholder","ref","handlers","isTabbable","tabbableModeProps"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAAA,eAAA,GAAA;QAAA,UAAA;YAAA,OAAA;;AAAA,CAAA,CAAA;AAmBA,MAAAC,cAAA,GAAA;QAAA,QAAA;qBAAA,QAAA;YAAA,UAAA;gCAAA,QAAA;wBAAA,UAAA;;AAAA,CAAA;;AAoDA,MAAAC,aAAA,GAAA,SAAA;MAaAC,mBAAA,GAAA,CAAAC,QAAA,EAAAC,OAAA,KAAA;EACE,OAAAC,qBAAA,CAAA,CACEN,eAAA,CAAAO,I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AC,YAAA;AAAA,IAAA,eAAA,EAAAC,YAAA;AAAA,IAAA,gBAAA,EAAAC,aAAA;AAAAyC,IAAAA,YAAA,EAAAxC,YAAA;AAAAyC,IAAAA,SAAA,EAAAxC,SAAA;AAAAyC,IAAAA,KAAA,EAAAC,YAAA;AAAAC,IAAAA,QAAA,EAAAvB,UAAA;AAAA9C,IAAAA,EAAA,EAAAA,EAAA;AAAA2C,IAAAA,OAAA,EAAAA,OAAA;AAAAV,IAAAA,WAAA,EAAAqC,aAAA;AAAApF,IAAAA,QAAA,EAAA8D,UAAA;;AAuBIuB,IAAAA,GAAA,EAAAvC,QAvBJ;AAuBIG,IAAAA,IAAA,EAAAA,IAvBJ;AAuBIC,IAAAA,IAAA,EAAAA,IAvBJ;AAuBIC,IAAAA,UAAA,EAAAA,UAvBJ;AAuBIC,IAAAA,IAAA,EAAAA,IAvBJ;AAuBIC,IAAAA,KAAA,EAAAA,KAAAA;GAvBJ,EAuBIiC,QAvBJ,EAuBI,CAAAC,UAAA,IAAAC,iBAvBJ,CAAA,CAAA,CAAA;AAiCF;;;;;;;;;;;"}
1
+ {"version":3,"file":"TextFieldInput-b7429629.js","sources":["../../src/UNSAFE_TextField/TextFieldUtils.ts","../../src/UNSAFE_TextField/TextFieldInput.tsx"],"sourcesContent":["import { classNames } from '../utils/UNSAFE_classNames';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\nconst textFieldStyles = {\n base: cssProps`${{\n display: 'inline-block',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height)',\n maxWidth: '100%',\n width: '100%',\n boxSizing: 'border-box'\n }}`,\n\n embedded: cssProps`${{\n height: '100%'\n }}`,\n\n nonReadonly: cssProps`${{\n fontWeight: '400',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-font-size)'\n }}`\n};\n\nconst readonlyStyles = {\n base: cssProps`${{\n fontWeight: 'var(--oj-form-control-font-weight-read-only)',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size)',\n position: 'relative',\n borderStyle: 'solid',\n transitionProperty: 'border-color',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'linear',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-border-radius)',\n flexDirection: 'row',\n alignItems: 'center',\n maxWidth: '100%',\n width: '100%',\n boxSizing: 'border-box'\n }}`,\n\n insideEnabledForm: cssProps`${{\n overflowX: 'hidden',\n overflowY: 'hidden',\n borderWidth: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-border-width)',\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-border-color-disabled)',\n backgroundColor: 'transparent',\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height)',\n minWidth: '1em',\n display: 'inline-flex',\n flex: '1'\n }}`,\n\n textarea: cssProps`${{\n height: 'auto'\n }}`,\n\n insideEnabledFormLabelInside: cssProps`${{\n minHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-height)'\n }}`,\n\n notInsideEnabledForm: cssProps`${{\n overflowX: 'visible',\n overflowY: 'visible',\n borderWidth: '0',\n backgroundColor: 'transparent',\n height: 'auto'\n }}`,\n\n textareaNotInsideEnabledForm: cssProps`${{\n paddingTop: '0',\n paddingBottom: '0'\n }}`\n};\n\n//Consolidating all loading styles on form elements here\nexport const loadingStyles = cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-animation-skeleton-bg-end-color)',\n backgroundSize: '200% 200%',\n borderWidth: '0',\n // need to use a var for the animation name because otherwise linaria will obfuscate it\n // and make it different from the actual keyframes name\n animationName: 'var(--oj-c-PRIVATE-DO-NOT-USE-private-preact-text-field-animation-name-skeleton)',\n animationIterationCount: 'infinite',\n animationDirection: 'alternate',\n animationDuration: '1.5s',\n opacity: '1'\n}}`;\n\nexport const getTextFieldClasses = (readonly?: boolean, variant?: 'default' | 'embedded') => {\n return classNames([\n textFieldStyles.base,\n variant === 'embedded' && textFieldStyles.embedded,\n !readonly && textFieldStyles.nonReadonly\n ]);\n};\n\nexport const getReadonlyClasses = (\n isInsideNonReadonlyForm?: boolean,\n hasInsideLabel?: boolean,\n variant?: 'textarea'\n) => {\n const classes = classNames([\n readonlyStyles.base,\n variant === 'textarea' && readonlyStyles.textarea,\n isInsideNonReadonlyForm\n ? readonlyStyles.insideEnabledForm\n : readonlyStyles.notInsideEnabledForm,\n variant === 'textarea' &&\n !isInsideNonReadonlyForm &&\n readonlyStyles.textareaNotInsideEnabledForm,\n isInsideNonReadonlyForm && hasInsideLabel && readonlyStyles.insideEnabledFormLabelInside\n ]);\n return classes;\n};\n\nexport const getInputId = (id?: string) => {\n return (id ?? '') + '|input';\n};\n\nexport const isInputPlaceholderShown = (\n hasInsideLabel: boolean,\n hasValue: boolean,\n isFocused?: boolean\n) => {\n return !(hasInsideLabel && !hasValue && !isFocused);\n};\n","import { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Ref } from 'preact';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\nimport { useTextFieldInputHandlers } from '../hooks/UNSAFE_useTextFieldInputHandlers';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport type { TextProps } from '../utils/UNSAFE_interpolations/text';\nimport { textInterpolations } from '../utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { getLoadingAriaLabel } from './FormControlUtils';\nimport { isInputPlaceholderShown } from './TextFieldUtils';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\nconst rootStyles = {\n base: cssProps`${{\n // normally removing an outline can cause accessibility issues, however\n // on an input the cursor blinks so an outline is not required for\n // accessibility. As of 6-11-14 only chrome is putting\n // an outline on inputs anyway\n outlineStyle: 'none',\n outlineWidth: '0',\n boxSizing: 'border-box',\n fontFamily: 'inherit',\n lineHeight: 'inherit',\n fontWeight: 'inherit',\n border: '0',\n backgroundColor: 'transparent',\n width: '100%',\n\n '&::selection': {\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-selected)'\n }\n }}`,\n // removes margin that Safari adds to the input element\n input: cssProps`${{\n margin: '0'\n }}`,\n textarea: cssProps`${{\n paddingTop:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n paddingBottom:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n\n resize: 'none'\n }}`,\n password: cssProps`${{\n '&::-ms-reveal': {\n display: 'none'\n }\n }}`,\n labelDefaultPadding: cssProps`${{\n paddingTop: 0,\n paddingBottom: 0\n }}`,\n labelInsideBase: cssProps`${{\n minHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-height)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-padding-top)',\n paddingBottom: 0,\n\n '&:hover': {\n backgroundColor: 'transparent'\n }\n }}`,\n textareaLabelInsideBase: cssProps`${{\n paddingTop: 0,\n paddingBottom: 0,\n // We are using a transparent border here instead of padding, due to how textarea scrolls the padding off the screen\n // and the text content will clash with the inside label.\n borderColor: 'transparent',\n borderStyle: 'solid',\n borderBlockStartWidth:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-font-size) * var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-line-height) + var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-position-top))',\n // The 0.25rem is an aesthetically pleasing amount of bottom padding\n borderBlockEndWidth: '0.25rem'\n }}`,\n\n labelInsideNoValueAndHasFocus: cssProps`${{\n animationName:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-private-preact-text-field-animation-name-placeholder)',\n animationDuration: 'var(--oj-c-PRIVATE-DO-NOT-USE-animation-duration-xlong)',\n animationTimingFunction: 'var(--oj-c-PRIVATE-DO-NOT-USE-animation-ease-in)'\n }}`,\n\n hasStartContent: cssProps`${{\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-icon-to-text-padding)'\n }}`,\n\n hasEndContent: cssProps`${{\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-icon-to-text-padding)'\n }}`,\n\n defaultColor: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-color)'\n }}`,\n\n disabledColor: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-color-disabled)'\n }}`,\n // The 0.25em is the space between the prefix and the input. This is equivalent to ' '.\n hasPrefix: cssProps`${{\n paddingInlineStart: '.25em'\n }}`,\n\n hasSuffix: cssProps`${{\n paddingInlineEnd: '.25em'\n }}`,\n\n default: cssProps`${{\n fontSize: '100%'\n }}`,\n\n defaultPaddingStart: cssProps`${{\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`,\n\n defaultPaddingEnd: cssProps`${{\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`,\n\n embedded: cssProps`${{\n color: 'inherit',\n fontSize: 'inherit',\n height: '100%',\n margin: 0,\n paddingBlock: 0,\n paddingInline:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-embedded-padding, var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding))',\n\n // textarea styles\n resize: 'none',\n\n // input-password styles\n '&::-ms-reveal': {\n display: 'none'\n }\n }}`\n};\n\nconst interpolations = [...Object.values(textInterpolations)];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\ntype Autocomplete = 'off' | 'on' | string;\n\ntype OrigPickedPropsFromInput = Pick<\n HTMLAttributesSignalExcluded<HTMLInputElement>,\n 'autofocus' | 'id' | 'placeholder' | 'required' | 'role' | 'spellcheck' | 'type'\n>;\ntype RenamedPropsFromInput = Omit<OrigPickedPropsFromInput, 'autofocus' | 'required'> & {\n autoFocus?: OrigPickedPropsFromInput['autofocus'];\n isRequired?: OrigPickedPropsFromInput['required'];\n};\ntype InputProps = {\n as?: 'input';\n type?: Pick<HTMLAttributesSignalExcluded<HTMLInputElement>, 'type'>['type'];\n rows?: never;\n inputRef?: Ref<HTMLInputElement>;\n hasPrefix?: boolean;\n hasSuffix?: boolean;\n};\n\ntype TextAreaProps = {\n as: 'textarea';\n type?: never;\n rows?: number;\n inputRef?: Ref<HTMLTextAreaElement>;\n hasPrefix?: never;\n hasSuffix?: never;\n};\n\ntype UniqueProps = InputProps | TextAreaProps;\n\ntype AriaProps = {\n ariaAutoComplete?: 'none' | 'inline' | 'list' | 'both';\n ariaControls?: string;\n ariaDescribedBy?: string;\n ariaExpanded?: boolean;\n ariaInvalid?: string;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n ariaValueMax?: number;\n ariaValueMin?: number;\n ariaValueNow?: number;\n ariaValueText?: string;\n};\n\ntype Props = UniqueProps &\n TextProps &\n RenamedPropsFromInput &\n AriaProps & {\n autoComplete?: Autocomplete;\n // TODO: Should we expose has* props like these or should we pass this info\n // via FormFieldContext? (from review on 3/8/22)\n currentCommitValue?: string;\n hasEndContent?: boolean;\n hasInsideLabel?: boolean;\n hasStartContent?: boolean;\n value?: string;\n variant?: 'default' | 'embedded';\n onInput?: (detail: ValueUpdateDetail<string>) => void;\n onCommit?: (detail: ValueUpdateDetail<string>) => void;\n onKeyDown?: (event: KeyboardEvent) => void;\n onKeyUp?: (event: KeyboardEvent) => void;\n };\n\nexport const TextFieldInput = ({\n as = 'input',\n ariaAutoComplete,\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaInvalid,\n ariaLabel,\n ariaLabelledBy,\n ariaValueMax,\n ariaValueMin,\n ariaValueNow,\n ariaValueText,\n autoComplete,\n autoFocus,\n currentCommitValue,\n hasEndContent = false,\n hasInsideLabel = false,\n hasPrefix = false,\n hasStartContent = false,\n hasSuffix = false,\n id,\n inputRef,\n placeholder,\n isRequired,\n role,\n rows,\n spellcheck,\n type,\n value = '',\n variant = 'default',\n onInput,\n onCommit,\n onKeyDown,\n onKeyUp,\n ...props\n}: Props) => {\n const hasValue = value !== '';\n const { isDisabled, isFocused, isLoading, isReadonly } = useFormFieldContext();\n const myPlaceholder = isInputPlaceholderShown(hasInsideLabel, hasValue, isFocused)\n ? placeholder\n : undefined;\n const { class: styleInterpolationClasses } = styleInterpolations(props);\n const renderPrefix = !isDisabled && hasPrefix;\n const renderSuffix = !isDisabled && hasSuffix;\n const inputClasses = classNames([\n 'oj-c-text-field-input',\n rootStyles.base,\n variant === 'default'\n ? classNames([\n rootStyles.default,\n as === 'textarea' && rootStyles.textarea,\n as === 'input' && rootStyles.input,\n type === 'password' && rootStyles.password,\n !hasStartContent && !renderPrefix && rootStyles.defaultPaddingStart,\n !hasEndContent && !renderSuffix && rootStyles.defaultPaddingEnd\n ])\n : rootStyles.embedded,\n hasInsideLabel &&\n classNames([\n rootStyles.labelInsideBase,\n as === 'textarea' && rootStyles.textareaLabelInsideBase,\n !hasValue && isFocused && rootStyles.labelInsideNoValueAndHasFocus\n ]),\n !hasInsideLabel && as !== 'textarea' && rootStyles.labelDefaultPadding,\n // We want the input to have padding on itself. This gives the user more space to click on to set focus to the input.\n // The padding between the input and the icon is different than the padding between the input and prefix/suffix (since they are both text)\n // startcontentpadding+input+endcontentpadding\n hasStartContent && !hasPrefix && rootStyles.hasStartContent,\n hasEndContent && !hasSuffix && rootStyles.hasEndContent,\n isDisabled ? rootStyles.disabledColor : rootStyles.defaultColor,\n // prefix+prefixpadding+input+suffixpadding+suffix\n // if there is also a startcontent or end content,\n // the prefix/suffix will have that padding on it (see PrefixSuffix)\n renderPrefix && rootStyles.hasPrefix,\n renderSuffix && rootStyles.hasSuffix,\n styleInterpolationClasses\n ]);\n const Comp = as || 'input';\n const handlers = useTextFieldInputHandlers({\n currentCommitValue,\n value,\n onInput,\n onCommit,\n onKeyDown\n });\n // the implicit default for tabindex on an input is 0, so do not explicitly set it.\n // JET-52914 - Implement Tabbable mode API contract in InputText\n // if not tabbable, spread tabbableModeProps on component\n const { isTabbable, tabbableModeProps } = useTabbableMode();\n // TODO: for autoComplete='off', need to configure attrs appropriately to make sure it\n // works across browsers and versions (from review on 3/11/22)\n return (\n <Comp\n aria-autocomplete={ariaAutoComplete}\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-invalid={ariaInvalid}\n aria-label={isLoading ? getLoadingAriaLabel() : ariaLabel ? ariaLabel : undefined}\n aria-labelledby={ariaLabelledBy}\n aria-required={isRequired ? true : undefined}\n aria-valuemax={ariaValueMax}\n aria-valuemin={ariaValueMin}\n aria-valuenow={ariaValueNow}\n aria-valuetext={ariaValueText}\n autocomplete={autoComplete}\n autofocus={autoFocus}\n class={inputClasses}\n disabled={isDisabled}\n id={id}\n onKeyUp={onKeyUp}\n placeholder={myPlaceholder}\n readonly={isReadonly}\n // @ts-ignore\n ref={inputRef}\n role={role}\n rows={rows}\n spellcheck={spellcheck}\n type={type}\n value={value}\n {...handlers}\n {...(!isTabbable && tabbableModeProps)}\n />\n );\n};\n"],"names":["textFieldStyles","readonlyStyles","loadingStyles","getTextFieldClasses","readonly","variant","classNames","base","embedded","nonReadonly","getReadonlyClasses","isInsideNonReadonlyForm","hasInsideLabel","textarea","textareaNotInsideEnabledForm","insideEnabledFormLabelInside","classes","getInputId","id","isInputPlaceholderShown","hasValue","isFocused","rootStyles","interpolations","Object","values","textInterpolations","styleInterpolations","mergeInterpolations","TextFieldInput","_a","as","ariaAutoComplete","ariaControls","ariaDescribedBy","ariaExpanded","ariaInvalid","ariaLabel","ariaLabelledBy","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","autoComplete","autoFocus","currentCommitValue","hasEndContent","hasPrefix","hasStartContent","hasSuffix","inputRef","placeholder","isRequired","role","rows","spellcheck","type","value","onInput","onCommit","onKeyDown","onKeyUp","props","__rest","isDisabled","isLoading","isReadonly","useFormFieldContext","renderPrefix","renderSuffix","default","input","password","defaultPaddingStart","defaultPaddingEnd","labelInsideBase","textareaLabelInsideBase","labelInsideNoValueAndHasFocus","Comp","_jsx","assign","getLoadingAriaLabel","undefined","autocomplete","autofocus","class","inputClasses","disabled","myPlaceholder","ref","handlers","isTabbable","tabbableModeProps"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAAA,eAAA,GAAA;QAAA,QAAA;YAAA,QAAA;;AAAA,CAAA,CAAA;AAmBA,MAAAC,cAAA,GAAA;QAAA,SAAA;qBAAA,UAAA;YAAA,UAAA;gCAAA,SAAA;wBAAA,SAAA;;AAAA,CAAA;;AAoDA,MAAAC,aAAA,GAAA,SAAA;MAaAC,mBAAA,GAAA,CAAAC,QAAA,EAAAC,OAAA,KAAA;EACE,OAAAC,qBAAA,CAAA,CACEN,eAAA,CAAAO,IADF,EAEEF,OAAA,KAAA,UAAA,IAAAL,eAAA,CAAAQ,QAFF,EAGE,CAAAJ,QAAA,IAAAJ,eAAA,CAAAS,WAHF,CAAA,CAAA,CAAA;AAKF,EANA;AAQA,MAAAC,kBAAA,GAAA,CAAAC,uBAAA,EAAAC,cAAA,EAAAP,OAAA,KAAA;yCAMIJ,cAAA,CAAAM,MACAF,OAAA,KAAA,UAAA,IAAAJ,cAAA,CAAAY,4GAIAR,OAAA,KAAA,UAAA,IACE,CAAAM,uBADF,IAEEV,cAAA,CAAAa,8BACFH,uBAAA,IAAAC,cAAA,IAAAX,cAAA,CAAAc;AAEF,EAAA,OAAAC,OAAA,CAAA;AACF,EAjBA;AAmBAC,MAAAA,UAAA,GAAAC,EAAA,IAAA;;AAEA,EAFA;AAIA,MAAAC,uBAAA,GAAA,CAAAP,cAAA,EAAA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AAAA,IAvBJ;AAuBIC,IAAAA,KAAA,EAAAA,KAAAA;GAvBJ,EAuBIiC,QAvBJ,EAuBI,CAAAC,UAAA,IAAAC,iBAvBJ,CAAA,CAAA,CAAA;AAiCF;;;;;;;;;;;"}
@@ -1,21 +1,21 @@
1
- /* @oracle/oraclejet-preact: 14.0.15 */
1
+ /* @oracle/oraclejet-preact: 14.0.16 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var tslib_es6 = require('./tslib.es6-af5a0e61.js');
6
+ var tslib_es6 = require('./tslib.es6-f2a4e02f.js');
7
7
  var jsxRuntime = require('preact/jsx-runtime');
8
8
  require("identity-obj-proxy");
9
9
  var utils_UNSAFE_interpolations_dimensions = require('./utils/UNSAFE_interpolations/dimensions.js');
10
10
  var utils_UNSAFE_mergeInterpolations = require('./utils/UNSAFE_mergeInterpolations.js');
11
11
  require('./utils/UNSAFE_classNames.js');
12
12
  var utils_UNSAFE_arrayUtils = require('./utils/UNSAFE_arrayUtils.js');
13
- var classNames = require('./classNames-0b5e7ec9.js');
13
+ var classNames = require('./classNames-74b1faa1.js');
14
14
  require('./utils/UNSAFE_size.js');
15
- require('./_curry1-d7c967d7.js');
16
- require('./_curry3-ae657000.js');
17
- require('./_curry2-b842c9f6.js');
18
- require('./_has-e1033a99.js');
15
+ require('./_curry1-929fa479.js');
16
+ require('./_curry3-de547f40.js');
17
+ require('./_curry2-ad418b8f.js');
18
+ require('./_has-bd83a5af.js');
19
19
 
20
20
  // hack to get aspect-ratio to work.
21
21
  // CSS now has an aspect-ratio attribute that makes this super easy.
@@ -33,7 +33,7 @@ require('./_has-e1033a99.js');
33
33
  // 100%/ratio. 100/(4/3) = 75%
34
34
  // e.g., 16/9 = 56.25%, 4/3 = 75%, 1/1=100%, 2/1=50%
35
35
 
36
- const baseDivStyles = "b6bgum"; // common aspect ratios
36
+ const baseDivStyles = "_1yrz56b"; // common aspect ratios
37
37
  // The box’s preferred aspect ratio is the specified ratio of width / height.
38
38
  // The ratio has a '/' as a separator and not a ':' because the '/' is what
39
39
  // the CSS aspect-ratio uses.
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_AspectRatio.js","sources":["../../src/UNSAFE_AspectRatio/AspectRatio.tsx","../../src/UNSAFE_AspectRatio/index.ts"],"sourcesContent":["import { VNode } from 'preact';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { stringLiteralArray } from '../utils/UNSAFE_arrayUtils';\n\n// AspectRatio uses the common padding-bottom as a percentage\n// hack to get aspect-ratio to work.\n// CSS now has an aspect-ratio attribute that makes this super easy.\n// aspect-ratio is supported in all major browsers, most recently in Safari 15.\n// https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio\n// However, it isn't until jet 14 that we drop support for Safari 14.\n// When jet 14 comes out we can replace the padding-bottom hack with aspect-ratio css property.\n// Also a user could just put aspect-ratio directly on their dom, instead of wrapping\n// it inside this AspectRatio component.\n\n// NOTE: padding-bottom has to be on a dom node that is the child of a dom node that has\n// width, not the same dom node. From css doc:\n// The size of the padding as a percentage, relative to the width of the containing block.\n// So the root dom node has the dimensions styling and the '::before' dom node\n// has the padding information.\n// 100%/ratio. 100/(4/3) = 75%\n// e.g., 16/9 = 56.25%, 4/3 = 75%, 1/1=100%, 2/1=50%\n\nconst baseDivStyles = cssProps`${{\n position: 'relative',\n overflowX: 'hidden',\n overflowY: 'hidden',\n\n '&::before': {\n content: \"''\",\n display: 'block',\n paddingBottom: 'calc(100% / (var(--oj-c-PRIVATE-DO-NOT-USE-aspect-ratio)))'\n },\n // TODO: Revisit. there is no support for combinators, but combinators are necessary for the AspectRatio component, so it's an exception.\n /* @ts-ignore */\n '& > :first-child': {\n position: 'absolute',\n top: '0',\n bottom: '0',\n left: '0',\n right: '0',\n width: '100%',\n height: '100%'\n },\n /* @ts-ignore */\n '& > img': {\n objectFit: 'cover'\n },\n /* @ts-ignore */\n '& > video': {\n objectFit: 'cover'\n }\n}}`;\n\n// common aspect ratios\n// The box’s preferred aspect ratio is the specified ratio of width / height.\n// The ratio has a '/' as a separator and not a ':' because the '/' is what\n// the CSS aspect-ratio uses.\n// TODO: Don't use fixed ratios. Let them specify any number\nexport const ratios = stringLiteralArray([\n '9/16',\n '1/1',\n '6/5',\n '5/4',\n '4/3',\n '11/8',\n '1.43/1',\n '3/2',\n '14/9',\n '16/10',\n '1.6180/1',\n '5/3',\n '16/9',\n '1.85/1',\n '1.9/1',\n '2/1',\n '2.2/1',\n '64/21',\n '2.4/1',\n '2.414/1',\n '2.76/1',\n '32/9',\n '18/5',\n '4/1'\n]);\ntype Ratio = typeof ratios[number];\n\nconst dimensions = stringLiteralArray(['maxWidth', 'minWidth', 'width']);\n\ntype Dimension = typeof dimensions[number];\n\n// This component has some StyleInterpolationProps. Those are the width properties of the DimensionProps.\ntype StyleInterpolationProps = Pick<DimensionProps, Dimension>;\n\ntype AspectRatioProps = StyleInterpolationProps & {\n /**\n * The box’s preferred aspect ratio is the specified ratio of width / height. When ratio is 1/1\n * it is a square.\n */\n ratio?: Ratio;\n /**\n * The child.\n */\n children: VNode<any>;\n};\n\n// Create an array [dimensionInterpolations['maxWidth'], dimensionInterpolations['width'], dimensionInterpolations['minWidth']]\nconst widthDimensionInterpolation = Array.from(dimensions, (x) => dimensionInterpolations[x]);\nconst interpolations = mergeInterpolations<StyleInterpolationProps>(widthDimensionInterpolation);\n\n/**\n * The AspectRatio component displays its content with a certain ratio based on the dimension\n * properties. Overflow content is hidden.\n *\n * It uses a common padding-bottom hack to do this. In future versions it will\n * be implemented using the CSS's aspect-ratio property when the browsers we need to support\n * all have it. For example, Safari 15 has it, but we won't drop Safari 14 until jet 14.\n *\n */\nexport function AspectRatio({ children, ratio = '1/1', ...props }: AspectRatioProps) {\n const { class: cls, ...styles } = interpolations(props);\n const stylesWithAspectRatioVar = { ...styles, '--oj-c-PRIVATE-DO-NOT-USE-aspect-ratio': ratio };\n return (\n <div class={classNames([baseDivStyles, cls])} style={stylesWithAspectRatioVar}>\n {children}\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 */\nexport * from './AspectRatio';\n"],"names":["baseDivStyles","ratios","stringLiteralArray","dimensions","widthDimensionInterpolation","Array","from","x","dimensionInterpolations","interpolations","mergeInterpolations","AspectRatio","_a","_b","props","class","cls","styles","__rest"],"mappings":";;;;;;;;;;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAAA,aAAA,GAAA,QAAA;AAgCA;AACA;AACA;AACA;;AACA,MAAAC,MAAA,GAAAC,0CAAA,CAAA,OAAA,OAAA,OAAA,OAAA,OAAA,QAAA,UAAA,OAAA,QAAA,SAAA,YAAA,OAAA,QAAA,UAAA,SAAA,OAAA,SAAA,SAAA,SAAA,WAAA,UAAA,QAAA,QAAA,OAAA,CAAA,EAAA;AA4BA,MAAAC,UAAA,GAAAD,0CAAA,CAAA,CAAA,UAAA,EAAA,UAAA,EAAA,OAAA,CAAA,CAAA;;AAoBA,MAAAE,2BAAA,GAAAC,KAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,CAAA,IAAAC,8DAAA,CAAAD,CAAA,CAAA,CAAA,CAAA;AACA,MAAAE,cAAA,GAAAC,oDAAA,CAAAN,2BAAA,CAAA,CAAA;AAEA;;;;;;;;AAQG;;AACH,SAAAO,WAAA,CAAAC,EAAA,EAAA;;;;;;;AACE,EAAA,MAAAC,EAAA,GAAAJ,cAAA,CAAAK,KAAA,CAAA;QAAA;AAAAC,IAAAA,KAAA,EAAAC,GAAAA;AAAA,GAAA,GAAAH,EAAA;QAAAI,MAAA,GAAAC,gBAAA,CAAAL,EAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;;;;;;;;;;AAOF;;AClIA;;;;;;AAMG;;;;;;;;"}
1
+ {"version":3,"file":"UNSAFE_AspectRatio.js","sources":["../../src/UNSAFE_AspectRatio/AspectRatio.tsx","../../src/UNSAFE_AspectRatio/index.ts"],"sourcesContent":["import { VNode } from 'preact';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { stringLiteralArray } from '../utils/UNSAFE_arrayUtils';\n\n// AspectRatio uses the common padding-bottom as a percentage\n// hack to get aspect-ratio to work.\n// CSS now has an aspect-ratio attribute that makes this super easy.\n// aspect-ratio is supported in all major browsers, most recently in Safari 15.\n// https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio\n// However, it isn't until jet 14 that we drop support for Safari 14.\n// When jet 14 comes out we can replace the padding-bottom hack with aspect-ratio css property.\n// Also a user could just put aspect-ratio directly on their dom, instead of wrapping\n// it inside this AspectRatio component.\n\n// NOTE: padding-bottom has to be on a dom node that is the child of a dom node that has\n// width, not the same dom node. From css doc:\n// The size of the padding as a percentage, relative to the width of the containing block.\n// So the root dom node has the dimensions styling and the '::before' dom node\n// has the padding information.\n// 100%/ratio. 100/(4/3) = 75%\n// e.g., 16/9 = 56.25%, 4/3 = 75%, 1/1=100%, 2/1=50%\n\nconst baseDivStyles = cssProps`${{\n position: 'relative',\n overflowX: 'hidden',\n overflowY: 'hidden',\n\n '&::before': {\n content: \"''\",\n display: 'block',\n paddingBottom: 'calc(100% / (var(--oj-c-PRIVATE-DO-NOT-USE-aspect-ratio)))'\n },\n // TODO: Revisit. there is no support for combinators, but combinators are necessary for the AspectRatio component, so it's an exception.\n /* @ts-ignore */\n '& > :first-child': {\n position: 'absolute',\n top: '0',\n bottom: '0',\n left: '0',\n right: '0',\n width: '100%',\n height: '100%'\n },\n /* @ts-ignore */\n '& > img': {\n objectFit: 'cover'\n },\n /* @ts-ignore */\n '& > video': {\n objectFit: 'cover'\n }\n}}`;\n\n// common aspect ratios\n// The box’s preferred aspect ratio is the specified ratio of width / height.\n// The ratio has a '/' as a separator and not a ':' because the '/' is what\n// the CSS aspect-ratio uses.\n// TODO: Don't use fixed ratios. Let them specify any number\nexport const ratios = stringLiteralArray([\n '9/16',\n '1/1',\n '6/5',\n '5/4',\n '4/3',\n '11/8',\n '1.43/1',\n '3/2',\n '14/9',\n '16/10',\n '1.6180/1',\n '5/3',\n '16/9',\n '1.85/1',\n '1.9/1',\n '2/1',\n '2.2/1',\n '64/21',\n '2.4/1',\n '2.414/1',\n '2.76/1',\n '32/9',\n '18/5',\n '4/1'\n]);\ntype Ratio = typeof ratios[number];\n\nconst dimensions = stringLiteralArray(['maxWidth', 'minWidth', 'width']);\n\ntype Dimension = typeof dimensions[number];\n\n// This component has some StyleInterpolationProps. Those are the width properties of the DimensionProps.\ntype StyleInterpolationProps = Pick<DimensionProps, Dimension>;\n\ntype AspectRatioProps = StyleInterpolationProps & {\n /**\n * The box’s preferred aspect ratio is the specified ratio of width / height. When ratio is 1/1\n * it is a square.\n */\n ratio?: Ratio;\n /**\n * The child.\n */\n children: VNode<any>;\n};\n\n// Create an array [dimensionInterpolations['maxWidth'], dimensionInterpolations['width'], dimensionInterpolations['minWidth']]\nconst widthDimensionInterpolation = Array.from(dimensions, (x) => dimensionInterpolations[x]);\nconst interpolations = mergeInterpolations<StyleInterpolationProps>(widthDimensionInterpolation);\n\n/**\n * The AspectRatio component displays its content with a certain ratio based on the dimension\n * properties. Overflow content is hidden.\n *\n * It uses a common padding-bottom hack to do this. In future versions it will\n * be implemented using the CSS's aspect-ratio property when the browsers we need to support\n * all have it. For example, Safari 15 has it, but we won't drop Safari 14 until jet 14.\n *\n */\nexport function AspectRatio({ children, ratio = '1/1', ...props }: AspectRatioProps) {\n const { class: cls, ...styles } = interpolations(props);\n const stylesWithAspectRatioVar = { ...styles, '--oj-c-PRIVATE-DO-NOT-USE-aspect-ratio': ratio };\n return (\n <div class={classNames([baseDivStyles, cls])} style={stylesWithAspectRatioVar}>\n {children}\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 */\nexport * from './AspectRatio';\n"],"names":["baseDivStyles","ratios","stringLiteralArray","dimensions","widthDimensionInterpolation","Array","from","x","dimensionInterpolations","interpolations","mergeInterpolations","AspectRatio","_a","_b","props","class","cls","styles","__rest"],"mappings":";;;;;;;;;;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAAA,aAAA,GAAA,UAAA;AAgCA;AACA;AACA;AACA;;AACA,MAAAC,MAAA,GAAAC,0CAAA,CAAA,OAAA,OAAA,OAAA,OAAA,OAAA,QAAA,UAAA,OAAA,QAAA,SAAA,YAAA,OAAA,QAAA,UAAA,SAAA,OAAA,SAAA,SAAA,SAAA,WAAA,UAAA,QAAA,QAAA,OAAA,CAAA,EAAA;AA4BA,MAAAC,UAAA,GAAAD,0CAAA,CAAA,CAAA,UAAA,EAAA,UAAA,EAAA,OAAA,CAAA,CAAA;;AAoBA,MAAAE,2BAAA,GAAAC,KAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,CAAA,IAAAC,8DAAA,CAAAD,CAAA,CAAA,CAAA,CAAA;AACA,MAAAE,cAAA,GAAAC,oDAAA,CAAAN,2BAAA,CAAA,CAAA;AAEA;;;;;;;;AAQG;;AACH,SAAAO,WAAA,CAAAC,EAAA,EAAA;;;;;;;AACE,EAAA,MAAAC,EAAA,GAAAJ,cAAA,CAAAK,KAAA,CAAA;QAAA;AAAAC,IAAAA,KAAA,EAAAC,GAAAA;AAAA,GAAA,GAAAH,EAAA;QAAAI,MAAA,GAAAC,gBAAA,CAAAL,EAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;;;;;;;;;;AAOF;;AClIA;;;;;;AAMG;;;;;;;;"}
@@ -1,13 +1,13 @@
1
- /* @oracle/oraclejet-preact: 14.0.15 */
1
+ /* @oracle/oraclejet-preact: 14.0.16 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var tslib_es6 = require('./tslib.es6-af5a0e61.js');
6
+ var tslib_es6 = require('./tslib.es6-f2a4e02f.js');
7
7
  var jsxRuntime = require('preact/jsx-runtime');
8
8
  require('./utils/UNSAFE_classNames.js');
9
9
  require("identity-obj-proxy");
10
- var classNames = require('./classNames-0b5e7ec9.js');
10
+ var classNames = require('./classNames-74b1faa1.js');
11
11
 
12
12
  /**
13
13
  * An avatar represents a person or entity as initials or an image.
@@ -94,16 +94,16 @@ const AvatarWrapper = ({
94
94
  };
95
95
 
96
96
  const styles = {
97
- base: "jk2zv5",
98
- circle: "_12gl9my"
97
+ base: "fpgeq7",
98
+ circle: "_1cue37q"
99
99
  };
100
- const childrenStyles = "_1bhqmen";
100
+ const childrenStyles = "m59807";
101
101
  const contentStyles = {
102
- base: "_10shkuk",
103
- content: "yj7ykp",
104
- image: "_48641c",
105
- initials: "_35fdjd",
106
- icon: "_16ykv3o"
102
+ base: "aaq2ny",
103
+ content: "ofdx3y",
104
+ image: "_13dk4pl",
105
+ initials: "l3ipxx",
106
+ icon: "jwoqhm"
107
107
  };
108
108
 
109
109
  exports.Avatar = Avatar;
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_Avatar.js","sources":["../../src/UNSAFE_Avatar/Avatar.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\ntype Props = {\n /**\n * Specifies the source for the image of the avatar. Will only be displayed if no icon component is specified as a child. Image will be rendered as a\n * background image.\n */\n src?: string;\n /**\n * Specifies the initials of the avatar. Will only be displayed if both the src attribute and the child icon component are not specified.\n */\n initials?: string;\n /**\n * Specifies the background of the avatar.\n */\n background?:\n | 'neutral'\n | 'orange'\n | 'green'\n | 'teal'\n | 'blue'\n | 'slate'\n | 'pink'\n | 'purple'\n | 'lilac'\n | 'gray';\n\n /**\n * Specifies the size of the avatar.\n */\n size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n /**\n * Specifies the shape of the avatar. Can be square or circle. The default value of this\n * property varies by theme.\n */\n shape?: 'square' | 'circle';\n /**\n * AccessibleLabel does not need to be set if associated information is available to assistive technologies elsewhere on the page,\n * for example if a person's name is shown next to the avatar.\n * Otherwise accessibleLabel must be set to make the page accessible.\n *\n * If accessibleLabel is set, role will internally be set to 'img'.\n */\n accessibleLabel?: string;\n} & IntrinsicProps;\n\n/**\n * An avatar represents a person or entity as initials or an image.\n */\nexport function Avatar({ children, src, ...otherProps }: Props) {\n if (src && !children) {\n return <ImageAvatar src={src} {...otherProps}></ImageAvatar>;\n } else {\n return <ContentAvatar {...otherProps}>{children}</ContentAvatar>;\n }\n}\n\nconst ImageAvatar = ({ src, ...otherProps }: Props) => {\n const classes = classNames([contentStyles.base, contentStyles.image]);\n return (\n <AvatarWrapper {...otherProps}>\n <div class={classes} style={{ backgroundImage: `url(${src})` }}></div>\n </AvatarWrapper>\n );\n};\n\nconst ContentAvatar = ({ children, initials, ...otherProps }: Props) => {\n const classes = [\n contentStyles.base,\n contentStyles.content,\n initials ? contentStyles.initials : contentStyles.icon,\n !initials && childrenStyles\n ];\n\n const childContent = initials || children;\n return (\n <AvatarWrapper {...otherProps}>\n <div aria-hidden=\"true\" class={classNames(classes)}>\n {childContent}\n </div>\n </AvatarWrapper>\n );\n};\n\nconst AvatarWrapper = ({\n background = 'neutral',\n size = 'md',\n shape = 'square',\n children,\n accessibleLabel\n}: Props) => {\n const classes = classNames([\n styles.base,\n `oj-c-avatar-bg-${background}`,\n `oj-c-avatar-${size}`,\n shape === 'circle' && styles.circle\n ]);\n if (accessibleLabel) {\n return (\n <div aria-label={accessibleLabel} role=\"img\" class={classes}>\n {children}\n </div>\n );\n } else {\n return <div class={classes}>{children}</div>;\n }\n};\n\nconst styles = {\n base: cssProps`${{\n display: 'inline-grid',\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-size)',\n width: 'var(--oj-c-PRIVATE-DO-NOT-USE--avatar-size)'\n }}`,\n\n circle: cssProps`${{\n '--oj-c-PRIVATE-DO-NOT-USE-avatar-border-radius': '50%'\n }}`\n};\n\nconst childrenStyles = cssProps`${{\n /* @ts-ignore */\n '& > *': {\n marginTop: '0 !important',\n marginBottom: '0 !important',\n marginLeft: '0 !important',\n marginRight: '0 !important'\n }\n}}`;\n\nconst contentStyles = {\n base: cssProps`${{\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-border-radius)',\n alignSelf: 'stretch',\n alignItems: 'center',\n justifyContent: 'center',\n display: 'flex',\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-size)',\n width: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-size)',\n gridRowStart: '1',\n gridColumnStart: '1',\n gridRowEnd: '2',\n gridColumnEnd: '2',\n backgroundPosition: 'center center',\n overflowX: 'hidden',\n overflowY: 'hidden'\n }}`,\n content: cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-bg-color)',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-text-color)',\n backgroundSize: '196px 196px',\n backgroundImage: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-pattern)'\n }}`,\n image: cssProps`${{\n backgroundSize: 'cover'\n }}`,\n initials: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-initials-font-size)',\n fontWeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-initials-font-weight)'\n }}`,\n icon: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-icon-font-size)'\n }}`\n};\n"],"names":["Avatar","_a","src","children","_jsx","ContentAvatar","Object","assign","otherProps","ImageAvatar","__rest","classes","classNames","contentStyles","base","image","content","childContent","initials","AvatarWrapper","background","size","shape","accessibleLabel","styles","circle","role","class","childrenStyles"],"mappings":";;;;;;;;;;;AAyDA;;AAEG;;AACH,SAAAA,MAAA,CAAAC,EAAA,EAAA;;;;;;;AACE,EAAA,IAAAC,GAAA,IAAA,CAAAC,QAAA,EAAA;;;;AAEC,GAFD,MAEO;IACL,OAAAC,cAAA,CAAAC,aAAA,EAAAC,MAAA,CAAAC,MAAA,CAAA,EAAA,EAAAC,UAAA,EAAA;AAAAL,MAAAA,QAAA,EAAAA,QAAAA;AAAA,KAAA,CAAA,CAAA,CAAA;AACD,GAAA;AACH,CAAA;;AAEA,MAAAM,WAAA,GAAAR,EAAA,IAAA;EAAqB,IAAA;AAAAC,IAAAA,GAAAA;AAAA,GAAA,GAAAD,EAAA;MAAAO,UAAA,GAAAE,gBAAA,CAAAT,EAAA,EAAA,CAAA,KAAA,CAAA,CAAA,CAAA;;AACnB,EAAA,MAAAU,OAAA,GAAAC,qBAAA,CAAA,CAAAC,aAAA,CAAAC,IAAA,EAAAD,aAAA,CAAAE,KAAA,CAAA,CAAA,CAAA;;;;;;;;;AAMF,CAPA,CAAA;;AASA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AAA,SAAA;;AAAA,CAAA;;;;;;;"}
1
+ {"version":3,"file":"UNSAFE_Avatar.js","sources":["../../src/UNSAFE_Avatar/Avatar.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\ntype Props = {\n /**\n * Specifies the source for the image of the avatar. Will only be displayed if no icon component is specified as a child. Image will be rendered as a\n * background image.\n */\n src?: string;\n /**\n * Specifies the initials of the avatar. Will only be displayed if both the src attribute and the child icon component are not specified.\n */\n initials?: string;\n /**\n * Specifies the background of the avatar.\n */\n background?:\n | 'neutral'\n | 'orange'\n | 'green'\n | 'teal'\n | 'blue'\n | 'slate'\n | 'pink'\n | 'purple'\n | 'lilac'\n | 'gray';\n\n /**\n * Specifies the size of the avatar.\n */\n size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n /**\n * Specifies the shape of the avatar. Can be square or circle. The default value of this\n * property varies by theme.\n */\n shape?: 'square' | 'circle';\n /**\n * AccessibleLabel does not need to be set if associated information is available to assistive technologies elsewhere on the page,\n * for example if a person's name is shown next to the avatar.\n * Otherwise accessibleLabel must be set to make the page accessible.\n *\n * If accessibleLabel is set, role will internally be set to 'img'.\n */\n accessibleLabel?: string;\n} & IntrinsicProps;\n\n/**\n * An avatar represents a person or entity as initials or an image.\n */\nexport function Avatar({ children, src, ...otherProps }: Props) {\n if (src && !children) {\n return <ImageAvatar src={src} {...otherProps}></ImageAvatar>;\n } else {\n return <ContentAvatar {...otherProps}>{children}</ContentAvatar>;\n }\n}\n\nconst ImageAvatar = ({ src, ...otherProps }: Props) => {\n const classes = classNames([contentStyles.base, contentStyles.image]);\n return (\n <AvatarWrapper {...otherProps}>\n <div class={classes} style={{ backgroundImage: `url(${src})` }}></div>\n </AvatarWrapper>\n );\n};\n\nconst ContentAvatar = ({ children, initials, ...otherProps }: Props) => {\n const classes = [\n contentStyles.base,\n contentStyles.content,\n initials ? contentStyles.initials : contentStyles.icon,\n !initials && childrenStyles\n ];\n\n const childContent = initials || children;\n return (\n <AvatarWrapper {...otherProps}>\n <div aria-hidden=\"true\" class={classNames(classes)}>\n {childContent}\n </div>\n </AvatarWrapper>\n );\n};\n\nconst AvatarWrapper = ({\n background = 'neutral',\n size = 'md',\n shape = 'square',\n children,\n accessibleLabel\n}: Props) => {\n const classes = classNames([\n styles.base,\n `oj-c-avatar-bg-${background}`,\n `oj-c-avatar-${size}`,\n shape === 'circle' && styles.circle\n ]);\n if (accessibleLabel) {\n return (\n <div aria-label={accessibleLabel} role=\"img\" class={classes}>\n {children}\n </div>\n );\n } else {\n return <div class={classes}>{children}</div>;\n }\n};\n\nconst styles = {\n base: cssProps`${{\n display: 'inline-grid',\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-size)',\n width: 'var(--oj-c-PRIVATE-DO-NOT-USE--avatar-size)'\n }}`,\n\n circle: cssProps`${{\n '--oj-c-PRIVATE-DO-NOT-USE-avatar-border-radius': '50%'\n }}`\n};\n\nconst childrenStyles = cssProps`${{\n /* @ts-ignore */\n '& > *': {\n marginTop: '0 !important',\n marginBottom: '0 !important',\n marginLeft: '0 !important',\n marginRight: '0 !important'\n }\n}}`;\n\nconst contentStyles = {\n base: cssProps`${{\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-border-radius)',\n alignSelf: 'stretch',\n alignItems: 'center',\n justifyContent: 'center',\n display: 'flex',\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-size)',\n width: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-size)',\n gridRowStart: '1',\n gridColumnStart: '1',\n gridRowEnd: '2',\n gridColumnEnd: '2',\n backgroundPosition: 'center center',\n overflowX: 'hidden',\n overflowY: 'hidden'\n }}`,\n content: cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-bg-color)',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-text-color)',\n backgroundSize: '196px 196px',\n backgroundImage: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-pattern)'\n }}`,\n image: cssProps`${{\n backgroundSize: 'cover'\n }}`,\n initials: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-initials-font-size)',\n fontWeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-initials-font-weight)'\n }}`,\n icon: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-avatar-icon-font-size)'\n }}`\n};\n"],"names":["Avatar","_a","src","children","_jsx","ContentAvatar","Object","assign","otherProps","ImageAvatar","__rest","classes","classNames","contentStyles","base","image","content","childContent","initials","AvatarWrapper","background","size","shape","accessibleLabel","styles","circle","role","class","childrenStyles"],"mappings":";;;;;;;;;;;AAyDA;;AAEG;;AACH,SAAAA,MAAA,CAAAC,EAAA,EAAA;;;;;;;AACE,EAAA,IAAAC,GAAA,IAAA,CAAAC,QAAA,EAAA;;;;AAEC,GAFD,MAEO;IACL,OAAAC,cAAA,CAAAC,aAAA,EAAAC,MAAA,CAAAC,MAAA,CAAA,EAAA,EAAAC,UAAA,EAAA;AAAAL,MAAAA,QAAA,EAAAA,QAAAA;AAAA,KAAA,CAAA,CAAA,CAAA;AACD,GAAA;AACH,CAAA;;AAEA,MAAAM,WAAA,GAAAR,EAAA,IAAA;EAAqB,IAAA;AAAAC,IAAAA,GAAAA;AAAA,GAAA,GAAAD,EAAA;MAAAO,UAAA,GAAAE,gBAAA,CAAAT,EAAA,EAAA,CAAA,KAAA,CAAA,CAAA,CAAA;;AACnB,EAAA,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GAAA;QAAA,QAAA;;AAAA,CAAA,CAAA;AAYA,MAAAI,cAAA,GAAA,QAAA,CAAA;AAUA,MAAAf,aAAA,GAAA;QAAA,QAAA;WAAA,QAAA;SAAA,UAAA;YAAA,QAAA;;AAAA,CAAA;;;;;;;"}
@@ -1,12 +1,12 @@
1
- /* @oracle/oraclejet-preact: 14.0.15 */
1
+ /* @oracle/oraclejet-preact: 14.0.16 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var Badge = require('./Badge-8821cfa6.js');
6
+ var Badge = require('./Badge-77533dbe.js');
7
7
  require('preact/jsx-runtime');
8
8
  require('./utils/UNSAFE_classNames.js');
9
- require('./classNames-0b5e7ec9.js');
9
+ require('./classNames-74b1faa1.js');
10
10
  require("identity-obj-proxy");
11
11
 
12
12
 
@@ -1,10 +1,10 @@
1
- /* @oracle/oraclejet-preact: 14.0.15 */
1
+ /* @oracle/oraclejet-preact: 14.0.16 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var BaseButton = require('./BaseButton-2736c4df.js');
7
- require('./tslib.es6-af5a0e61.js');
6
+ var BaseButton = require('./BaseButton-f5073e18.js');
7
+ require('./tslib.es6-f2a4e02f.js');
8
8
  require('preact/jsx-runtime');
9
9
  require('./hooks/UNSAFE_usePress.js');
10
10
  require('preact/hooks');
@@ -12,19 +12,19 @@ require('./hooks/UNSAFE_useHover.js');
12
12
  require('./hooks/UNSAFE_useToggle.js');
13
13
  require('./hooks/UNSAFE_useActive.js');
14
14
  require('./utils/UNSAFE_classNames.js');
15
- require('./classNames-0b5e7ec9.js');
15
+ require('./classNames-74b1faa1.js');
16
16
  require('preact/compat');
17
17
  require("identity-obj-proxy");
18
18
  require('./utils/UNSAFE_interpolations/dimensions.js');
19
19
  require('./utils/UNSAFE_arrayUtils.js');
20
20
  require('./utils/UNSAFE_size.js');
21
- require('./_curry1-d7c967d7.js');
21
+ require('./_curry1-929fa479.js');
22
22
  require('./utils/UNSAFE_mergeInterpolations.js');
23
- require('./_curry3-ae657000.js');
24
- require('./_curry2-b842c9f6.js');
25
- require('./_has-e1033a99.js');
23
+ require('./_curry3-de547f40.js');
24
+ require('./_curry2-ad418b8f.js');
25
+ require('./_has-bd83a5af.js');
26
26
  require('./utils/PRIVATE_clientHints.js');
27
- require('./clientHints-e1bf0c4c.js');
27
+ require('./clientHints-f08e6824.js');
28
28
  require('./hooks/UNSAFE_useTabbableMode.js');
29
29
  require('preact');
30
30
  require('./utils/UNSAFE_mergeProps.js');
@@ -1,32 +1,32 @@
1
- /* @oracle/oraclejet-preact: 14.0.15 */
1
+ /* @oracle/oraclejet-preact: 14.0.16 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var Button = require('./Button-e7bafcd0.js');
6
+ var Button = require('./Button-feff77e2.js');
7
7
  require('preact/jsx-runtime');
8
8
  require('./UNSAFE_BaseButton.js');
9
- require('./BaseButton-2736c4df.js');
10
- require('./tslib.es6-af5a0e61.js');
9
+ require('./BaseButton-f5073e18.js');
10
+ require('./tslib.es6-f2a4e02f.js');
11
11
  require('./hooks/UNSAFE_usePress.js');
12
12
  require('preact/hooks');
13
13
  require('./hooks/UNSAFE_useHover.js');
14
14
  require('./hooks/UNSAFE_useToggle.js');
15
15
  require('./hooks/UNSAFE_useActive.js');
16
16
  require('./utils/UNSAFE_classNames.js');
17
- require('./classNames-0b5e7ec9.js');
17
+ require('./classNames-74b1faa1.js');
18
18
  require('preact/compat');
19
19
  require("identity-obj-proxy");
20
20
  require('./utils/UNSAFE_interpolations/dimensions.js');
21
21
  require('./utils/UNSAFE_arrayUtils.js');
22
22
  require('./utils/UNSAFE_size.js');
23
- require('./_curry1-d7c967d7.js');
23
+ require('./_curry1-929fa479.js');
24
24
  require('./utils/UNSAFE_mergeInterpolations.js');
25
- require('./_curry3-ae657000.js');
26
- require('./_curry2-b842c9f6.js');
27
- require('./_has-e1033a99.js');
25
+ require('./_curry3-de547f40.js');
26
+ require('./_curry2-ad418b8f.js');
27
+ require('./_has-bd83a5af.js');
28
28
  require('./utils/PRIVATE_clientHints.js');
29
- require('./clientHints-e1bf0c4c.js');
29
+ require('./clientHints-f08e6824.js');
30
30
  require('./hooks/UNSAFE_useTabbableMode.js');
31
31
  require('preact');
32
32
  require('./utils/UNSAFE_mergeProps.js');