@oracle/oraclejet-preact 14.1.12 → 14.1.14

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 (1225) hide show
  1. package/amd/Badge-1314e17b.js +2 -0
  2. package/amd/{Badge-8ff2cf94.js.map → Badge-1314e17b.js.map} +1 -1
  3. package/amd/BaseButton-6b15cf96.js +2 -0
  4. package/amd/{BaseButton-ad209065.js.map → BaseButton-6b15cf96.js.map} +1 -1
  5. package/amd/Button-6236e6b9.js +2 -0
  6. package/amd/{Button-91d1d81d.js.map → Button-6236e6b9.js.map} +1 -1
  7. package/amd/Chip-affe03d5.js +2 -0
  8. package/amd/{Chip-95103689.js.map → Chip-affe03d5.js.map} +1 -1
  9. package/amd/ClearIcon-af60dbf1.js +2 -0
  10. package/amd/{ClearIcon-c3d6d99c.js.map → ClearIcon-af60dbf1.js.map} +1 -1
  11. package/amd/{Collection-4c905202.js → Collection-0700cc46.js} +1 -1
  12. package/amd/{Collection-4c905202.js.map → Collection-0700cc46.js.map} +1 -1
  13. package/amd/ComponentMessage-998dad2a.js +2 -0
  14. package/amd/{ComponentMessage-fae17309.js.map → ComponentMessage-998dad2a.js.map} +1 -1
  15. package/amd/ComponentMessageContainer-329000c3.js +2 -0
  16. package/amd/{ComponentMessageContainer-76688ce8.js.map → ComponentMessageContainer-329000c3.js.map} +1 -1
  17. package/amd/Divider-b379301f.js +2 -0
  18. package/amd/{Divider-f5cadc49.js.map → Divider-b379301f.js.map} +1 -1
  19. package/amd/{FilePicker-ef0aba79.js → FilePicker-ad26067d.js} +2 -2
  20. package/amd/{FilePicker-ef0aba79.js.map → FilePicker-ad26067d.js.map} +1 -1
  21. package/amd/Flex-e3a46a36.js +2 -0
  22. package/amd/{Flex-6371a66e.js.map → Flex-e3a46a36.js.map} +1 -1
  23. package/amd/{Floating-fd3596ba.js → Floating-1e70bca1.js} +2 -2
  24. package/amd/{Floating-fd3596ba.js.map → Floating-1e70bca1.js.map} +1 -1
  25. package/amd/FocusTrap-5a3a8c7d.js +2 -0
  26. package/amd/{FocusTrap-fc22ca7f.js.map → FocusTrap-5a3a8c7d.js.map} +1 -1
  27. package/amd/FormControlUtils-9994f9d8.js +2 -0
  28. package/amd/{FormControlUtils-89bbec0e.js.map → FormControlUtils-9994f9d8.js.map} +1 -1
  29. package/amd/Heading-e3c38ed8.js +2 -0
  30. package/amd/{Heading-8a696583.js.map → Heading-e3c38ed8.js.map} +1 -1
  31. package/amd/{HiddenAccessible-5d3d6af2.js → HiddenAccessible-cc2e72c9.js} +2 -2
  32. package/amd/{HiddenAccessible-5d3d6af2.js.map → HiddenAccessible-cc2e72c9.js.map} +1 -1
  33. package/amd/HighlightText-f5e447be.js +2 -0
  34. package/amd/{HighlightText-de1bf4e2.js.map → HighlightText-f5e447be.js.map} +1 -1
  35. package/amd/Icon-7291b5d0.js +2 -0
  36. package/amd/{Icon-74af3581.js.map → Icon-7291b5d0.js.map} +1 -1
  37. package/amd/Indexer-48f2ffaf.js +2 -0
  38. package/amd/{Indexer-8127ab0b.js.map → Indexer-48f2ffaf.js.map} +1 -1
  39. package/amd/InlineHelpSource-64823c0a.js +2 -0
  40. package/amd/{InlineHelpSource-875a4918.js.map → InlineHelpSource-64823c0a.js.map} +1 -1
  41. package/amd/Link-6b540e26.js +2 -0
  42. package/amd/{Link-5791e5d2.js.map → Link-6b540e26.js.map} +1 -1
  43. package/amd/List-24031444.js +2 -0
  44. package/amd/{List-96b73e43.js.map → List-24031444.js.map} +1 -1
  45. package/amd/ListItemTextLayout-c07cfa97.js +2 -0
  46. package/amd/{ListItemTextLayout-13f774d7.js.map → ListItemTextLayout-c07cfa97.js.map} +1 -1
  47. package/amd/{ListView-e4ca850e.js → ListView-7bdb2a90.js} +2 -2
  48. package/amd/{ListView-e4ca850e.js.map → ListView-7bdb2a90.js.map} +1 -1
  49. package/amd/{LoadMoreCollection-5a3b8603.js → LoadMoreCollection-d53c66bf.js} +2 -2
  50. package/amd/{LoadMoreCollection-5a3b8603.js.map → LoadMoreCollection-d53c66bf.js.map} +1 -1
  51. package/amd/Menu-34c29ef1.js +2 -0
  52. package/amd/{Menu-e2d86969.js.map → Menu-34c29ef1.js.map} +1 -1
  53. package/amd/MenuDivider-a8b35c07.js +2 -0
  54. package/amd/{MenuDivider-4be95253.js.map → MenuDivider-a8b35c07.js.map} +1 -1
  55. package/amd/MenuItem-792282d6.js +2 -0
  56. package/amd/{MenuItem-bfe0ea61.js.map → MenuItem-792282d6.js.map} +1 -1
  57. package/amd/{Message.types-dc4dcc2b.js → Message.types-7cf67e6b.js} +1 -1
  58. package/amd/{Message.types-dc4dcc2b.js.map → Message.types-7cf67e6b.js.map} +1 -1
  59. package/amd/MessageCloseButton-80019999.js +2 -0
  60. package/amd/{MessageCloseButton-9761b231.js.map → MessageCloseButton-80019999.js.map} +1 -1
  61. package/amd/MessageDetail-520bf217.js +2 -0
  62. package/amd/{MessageDetail-231e34ef.js.map → MessageDetail-520bf217.js.map} +1 -1
  63. package/amd/{MessageFormattingUtils-daf0e8f9.js → MessageFormattingUtils-522eafdf.js} +2 -2
  64. package/amd/{MessageFormattingUtils-daf0e8f9.js.map → MessageFormattingUtils-522eafdf.js.map} +1 -1
  65. package/amd/MessageLayer-0bf829da.js +2 -0
  66. package/amd/{MessageLayer-12ae4390.js.map → MessageLayer-0bf829da.js.map} +1 -1
  67. package/amd/MessageStartIcon-f0caac42.js +2 -0
  68. package/amd/{MessageStartIcon-8c35d9bf.js.map → MessageStartIcon-f0caac42.js.map} +1 -1
  69. package/amd/MessageSummary-1fe58d25.js +2 -0
  70. package/amd/{MessageSummary-65ddf192.js.map → MessageSummary-1fe58d25.js.map} +1 -1
  71. package/amd/MessageTimestamp-0324ebac.js +2 -0
  72. package/amd/{MessageTimestamp-28a44775.js.map → MessageTimestamp-0324ebac.js.map} +1 -1
  73. package/amd/MessageToast-445ace90.js +2 -0
  74. package/amd/{MessageToast-4091d475.js.map → MessageToast-445ace90.js.map} +1 -1
  75. package/amd/{MessageUtils-2a44c5f1.js → MessageUtils-83d741c6.js} +2 -2
  76. package/amd/{MessageUtils-2a44c5f1.js.map → MessageUtils-83d741c6.js.map} +1 -1
  77. package/amd/{MessagesManager-3038f8bc.js → MessagesManager-92a31926.js} +2 -2
  78. package/amd/{MessagesManager-3038f8bc.js.map → MessagesManager-92a31926.js.map} +1 -1
  79. package/amd/MeterCircle-5b84fd3d.js +2 -0
  80. package/amd/{MeterCircle-74c0eff3.js.map → MeterCircle-5b84fd3d.js.map} +1 -1
  81. package/amd/Modal-2ffa504c.js +2 -0
  82. package/amd/{Modal-f2d86779.js.map → Modal-2ffa504c.js.map} +1 -1
  83. package/amd/{NumberInputText-10cb34fe.js → NumberInputText-05cc2405.js} +2 -2
  84. package/amd/{NumberInputText-10cb34fe.js.map → NumberInputText-05cc2405.js.map} +1 -1
  85. package/amd/PRIVATE_Collection/__tests__/Collection.spec.js +1 -1
  86. package/amd/PRIVATE_Collection.js +1 -1
  87. package/amd/PRIVATE_List/__tests__/List.spec.js +1 -1
  88. package/amd/PRIVATE_List.css +15 -15
  89. package/amd/PRIVATE_List.js +1 -1
  90. package/amd/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +1 -1
  91. package/amd/PRIVATE_Message/__tests__/MessageDetail.spec.js +1 -1
  92. package/amd/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +1 -1
  93. package/amd/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +1 -1
  94. package/amd/PRIVATE_Message/__tests__/MessageSummary.spec.js +1 -1
  95. package/amd/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +1 -1
  96. package/amd/PRIVATE_Message/__tests__/MessageUtils.spec.js +1 -1
  97. package/amd/PRIVATE_Message/__tests__/MessagesManager.spec.js +1 -1
  98. package/amd/PRIVATE_Message.css +27 -27
  99. package/amd/PRIVATE_Message.js +1 -1
  100. package/amd/PRIVATE_Message.js.map +1 -1
  101. package/amd/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +1 -1
  102. package/amd/PRIVATE_MessageLayer.css +7 -7
  103. package/amd/PRIVATE_MessageLayer.js +1 -1
  104. package/amd/PRIVATE_Meter.js +1 -1
  105. package/amd/PRIVATE_SelectCommon.css +13 -13
  106. package/amd/PRIVATE_SelectCommon.js +1 -1
  107. package/amd/PRIVATE_SelectCommon.js.map +1 -1
  108. package/amd/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +1 -1
  109. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  110. package/amd/ReadonlyTextFieldInput-35c69ee9.js +2 -0
  111. package/amd/{ReadonlyTextFieldInput-11f5ee65.js.map → ReadonlyTextFieldInput-35c69ee9.js.map} +1 -1
  112. package/amd/SelectMenuItem-127bc6db.js +2 -0
  113. package/amd/{SelectMenuItem-4d6d9a13.js.map → SelectMenuItem-127bc6db.js.map} +1 -1
  114. package/amd/SelectMultiple-dbf78e8a.js +2 -0
  115. package/amd/{SelectMultiple-190f6a20.js.map → SelectMultiple-dbf78e8a.js.map} +1 -1
  116. package/amd/{SelectSingle-21dc4cbc.js → SelectSingle-23b59c0d.js} +2 -2
  117. package/amd/{SelectSingle-21dc4cbc.js.map → SelectSingle-23b59c0d.js.map} +1 -1
  118. package/amd/Skeleton-65cc3876.js +2 -0
  119. package/amd/{Skeleton-68cdd7b6.js.map → Skeleton-65cc3876.js.map} +1 -1
  120. package/amd/{Spacer-c92d6c6a.js → Spacer-404a0362.js} +2 -2
  121. package/amd/{Spacer-c92d6c6a.js.map → Spacer-404a0362.js.map} +1 -1
  122. package/amd/SplitMenuButton-92604c77.js +2 -0
  123. package/amd/{SplitMenuButton-09096b77.js.map → SplitMenuButton-92604c77.js.map} +1 -1
  124. package/amd/{Subheading-c7304287.js → Subheading-892dfa1f.js} +2 -2
  125. package/amd/{Subheading-c7304287.js.map → Subheading-892dfa1f.js.map} +1 -1
  126. package/amd/Text-6ee93c22.js +2 -0
  127. package/amd/{Text-ab6d74dc.js.map → Text-6ee93c22.js.map} +1 -1
  128. package/amd/TextArea-34a5b07c.js +2 -0
  129. package/amd/{TextArea-dc934b4c.js.map → TextArea-34a5b07c.js.map} +1 -1
  130. package/amd/{TextAreaAutosize-900a808e.js → TextAreaAutosize-db3c4619.js} +2 -2
  131. package/amd/{TextAreaAutosize-900a808e.js.map → TextAreaAutosize-db3c4619.js.map} +1 -1
  132. package/amd/TextFieldInput-9e3759b7.js +2 -0
  133. package/amd/{TextFieldInput-f500e158.js.map → TextFieldInput-9e3759b7.js.map} +1 -1
  134. package/amd/UNSAFE_AspectRatio.css +1 -1
  135. package/amd/UNSAFE_AspectRatio.js +1 -1
  136. package/amd/UNSAFE_Avatar/__tests__/Avatar.spec.js +1 -1
  137. package/amd/UNSAFE_Avatar.css +8 -8
  138. package/amd/UNSAFE_Avatar.js +1 -1
  139. package/amd/UNSAFE_Avatar.js.map +1 -1
  140. package/amd/UNSAFE_Badge/__tests__/Badge.spec.js +1 -1
  141. package/amd/UNSAFE_Badge.css +13 -13
  142. package/amd/UNSAFE_Badge.js +1 -1
  143. package/amd/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +1 -1
  144. package/amd/UNSAFE_BaseButton.css +15 -15
  145. package/amd/UNSAFE_BaseButton.js +1 -1
  146. package/amd/UNSAFE_Button/__tests__/Button.spec.js +1 -1
  147. package/amd/UNSAFE_Button.css +7 -7
  148. package/amd/UNSAFE_Button.js +1 -1
  149. package/amd/UNSAFE_Center.js +1 -1
  150. package/amd/UNSAFE_Chip/__tests__/Chip.spec.js +1 -1
  151. package/amd/UNSAFE_Chip.css +7 -7
  152. package/amd/UNSAFE_Chip.js +1 -1
  153. package/amd/UNSAFE_Collapsible.css +8 -8
  154. package/amd/UNSAFE_Collapsible.js +1 -1
  155. package/amd/UNSAFE_Collapsible.js.map +1 -1
  156. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +1 -1
  157. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +1 -1
  158. package/amd/UNSAFE_ComponentMessage.css +2 -2
  159. package/amd/UNSAFE_ComponentMessage.js +1 -1
  160. package/amd/UNSAFE_Divider/__tests__/Divider.spec.js +1 -1
  161. package/amd/UNSAFE_Divider.css +1 -1
  162. package/amd/UNSAFE_Divider.js +1 -1
  163. package/amd/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +1 -1
  164. package/amd/UNSAFE_FilePicker.css +6 -6
  165. package/amd/UNSAFE_FilePicker.js +1 -1
  166. package/amd/UNSAFE_Flex/__tests__/Flex.spec.js +1 -1
  167. package/amd/UNSAFE_Flex.css +2 -2
  168. package/amd/UNSAFE_Flex.js +1 -1
  169. package/amd/UNSAFE_Floating/__tests__/Floating.spec.js +1 -1
  170. package/amd/UNSAFE_Floating.js +1 -1
  171. package/amd/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +1 -1
  172. package/amd/UNSAFE_FocusTrap.css +2 -2
  173. package/amd/UNSAFE_FocusTrap.js +1 -1
  174. package/amd/UNSAFE_Grid.css +1 -1
  175. package/amd/UNSAFE_Grid.js +1 -1
  176. package/amd/UNSAFE_Heading/__test__/Heading.spec.js +1 -1
  177. package/amd/UNSAFE_Heading.css +9 -9
  178. package/amd/UNSAFE_Heading.js +1 -1
  179. package/amd/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +1 -1
  180. package/amd/UNSAFE_HiddenAccessible.css +1 -1
  181. package/amd/UNSAFE_HiddenAccessible.js +1 -1
  182. package/amd/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +1 -1
  183. package/amd/UNSAFE_HighlightText.css +1 -1
  184. package/amd/UNSAFE_HighlightText.js +1 -1
  185. package/amd/UNSAFE_Icon/__tests__/Icon.spec.js +1 -1
  186. package/amd/UNSAFE_Icon/__tests__/Icons.spec.js +1 -1
  187. package/amd/UNSAFE_Icon.css +8 -8
  188. package/amd/UNSAFE_Icon.js +1 -1
  189. package/amd/UNSAFE_Icons.js +1 -1
  190. package/amd/UNSAFE_Indexer/__tests__/Indexer.spec.js +1 -1
  191. package/amd/UNSAFE_Indexer.css +7 -7
  192. package/amd/UNSAFE_Indexer.js +1 -1
  193. package/amd/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +1 -1
  194. package/amd/UNSAFE_InputPassword.css +1 -1
  195. package/amd/UNSAFE_InputPassword.js +1 -1
  196. package/amd/UNSAFE_InputPassword.js.map +1 -1
  197. package/amd/UNSAFE_InputText.css +1 -1
  198. package/amd/UNSAFE_InputText.js +1 -1
  199. package/amd/UNSAFE_Label.css +13 -13
  200. package/amd/UNSAFE_Label.js +1 -1
  201. package/amd/UNSAFE_Label.js.map +1 -1
  202. package/amd/UNSAFE_LabelValueLayout.css +9 -9
  203. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  204. package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
  205. package/amd/UNSAFE_Link/__tests__/Link.spec.js +1 -1
  206. package/amd/UNSAFE_Link.css +5 -5
  207. package/amd/UNSAFE_Link.js +1 -1
  208. package/amd/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +1 -1
  209. package/amd/UNSAFE_ListItemLayout.css +9 -9
  210. package/amd/UNSAFE_ListItemLayout.js +1 -1
  211. package/amd/UNSAFE_ListView/__tests__/ListView.spec.js +1 -1
  212. package/amd/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +1 -1
  213. package/amd/UNSAFE_ListView.js +1 -1
  214. package/amd/UNSAFE_LiveRegion.css +1 -1
  215. package/amd/UNSAFE_LiveRegion.js +1 -1
  216. package/amd/UNSAFE_LiveRegion.js.map +1 -1
  217. package/amd/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +1 -1
  218. package/amd/UNSAFE_LoadMoreCollection.js +1 -1
  219. package/amd/UNSAFE_Menu/__tests__/Menu.spec.js +1 -1
  220. package/amd/UNSAFE_Menu/__tests__/MenuItem.spec.js +1 -1
  221. package/amd/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +1 -1
  222. package/amd/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +1 -1
  223. package/amd/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +1 -1
  224. package/amd/UNSAFE_Menu.css +23 -23
  225. package/amd/UNSAFE_Menu.js +1 -1
  226. package/amd/UNSAFE_MessageBanner.js +1 -1
  227. package/amd/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +1 -1
  228. package/amd/UNSAFE_MessageToast.css +1 -1
  229. package/amd/UNSAFE_MessageToast.js +1 -1
  230. package/amd/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +1 -1
  231. package/amd/UNSAFE_MeterBar.css +44 -44
  232. package/amd/UNSAFE_MeterBar.js +1 -1
  233. package/amd/UNSAFE_MeterBar.js.map +1 -1
  234. package/amd/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +1 -1
  235. package/amd/UNSAFE_MeterCircle.css +46 -46
  236. package/amd/UNSAFE_MeterCircle.js +1 -1
  237. package/amd/UNSAFE_Modal/__tests__/Modal.spec.js +1 -1
  238. package/amd/UNSAFE_Modal.css +3 -3
  239. package/amd/UNSAFE_Modal.js +1 -1
  240. package/amd/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +1 -1
  241. package/amd/UNSAFE_NumberInputText.js +1 -1
  242. package/amd/UNSAFE_PrefixSuffix.css +8 -8
  243. package/amd/UNSAFE_PrefixSuffix.js +1 -1
  244. package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
  245. package/amd/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +1 -1
  246. package/amd/UNSAFE_ProgressBar.css +6 -6
  247. package/amd/UNSAFE_ProgressBar.js +1 -1
  248. package/amd/UNSAFE_ProgressBar.js.map +1 -1
  249. package/amd/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +1 -1
  250. package/amd/UNSAFE_ProgressCircle.css +6 -6
  251. package/amd/UNSAFE_ProgressCircle.js +1 -1
  252. package/amd/UNSAFE_ProgressCircle.js.map +1 -1
  253. package/amd/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +1 -1
  254. package/amd/UNSAFE_RatingGauge.css +20 -20
  255. package/amd/UNSAFE_RatingGauge.js +1 -1
  256. package/amd/UNSAFE_RatingGauge.js.map +1 -1
  257. package/amd/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +1 -1
  258. package/amd/UNSAFE_SelectMultiple.css +1 -1
  259. package/amd/UNSAFE_SelectMultiple.js +1 -1
  260. package/amd/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +1 -1
  261. package/amd/UNSAFE_SelectSingle.js +1 -1
  262. package/amd/UNSAFE_Selector.css +5 -5
  263. package/amd/UNSAFE_Selector.js +1 -1
  264. package/amd/UNSAFE_Selector.js.map +1 -1
  265. package/amd/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +1 -1
  266. package/amd/UNSAFE_Skeleton.css +1 -1
  267. package/amd/UNSAFE_Skeleton.js +1 -1
  268. package/amd/UNSAFE_Spacer/__tests__/Spacer.spec.js +1 -1
  269. package/amd/UNSAFE_Spacer.js +1 -1
  270. package/amd/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +1 -1
  271. package/amd/UNSAFE_SplitMenuButton.css +5 -5
  272. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  273. package/amd/UNSAFE_Subheading/__test__/Subheading.spec.js +1 -1
  274. package/amd/UNSAFE_Subheading.css +8 -8
  275. package/amd/UNSAFE_Subheading.js +1 -1
  276. package/amd/UNSAFE_Text/__tests__/Text.spec.js +1 -1
  277. package/amd/UNSAFE_Text.css +25 -25
  278. package/amd/UNSAFE_Text.js +1 -1
  279. package/amd/UNSAFE_TextArea/__tests__/TextArea.spec.js +1 -1
  280. package/amd/UNSAFE_TextArea.css +3 -3
  281. package/amd/UNSAFE_TextArea.js +1 -1
  282. package/amd/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +1 -1
  283. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  284. package/amd/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +1 -1
  285. package/amd/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +1 -1
  286. package/amd/UNSAFE_TextField.css +58 -58
  287. package/amd/UNSAFE_TextField.js +1 -1
  288. package/amd/UNSAFE_TextField.js.map +1 -1
  289. package/amd/UNSAFE_ThemedIcons.js +1 -1
  290. package/amd/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +1 -1
  291. package/amd/UNSAFE_UserAssistance.css +8 -8
  292. package/amd/UNSAFE_UserAssistance.js +1 -1
  293. package/amd/UNSAFE_UserAssistance.js.map +1 -1
  294. package/amd/UNSAFE_View/__tests__/View.spec.js +1 -1
  295. package/amd/UNSAFE_View.js +1 -1
  296. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +1 -1
  297. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +1 -1
  298. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  299. package/amd/{VirtualizedCollection-ed812ab7.js → VirtualizedCollection-8523118a.js} +2 -2
  300. package/amd/{VirtualizedCollection-ed812ab7.js.map → VirtualizedCollection-8523118a.js.map} +1 -1
  301. package/amd/{VirtualizedListView-99c88eb4.js → VirtualizedListView-90d5d505.js} +2 -2
  302. package/amd/{VirtualizedListView-99c88eb4.js.map → VirtualizedListView-90d5d505.js.map} +1 -1
  303. package/amd/__tests__/FormControls/FormControlAria.spec.js +1 -1
  304. package/amd/__tests__/FormControls/FormControlClearIcon.spec.js +1 -1
  305. package/amd/__tests__/FormControls/FormControlCommit.spec.js +1 -1
  306. package/amd/__tests__/FormControls/FormControlPrefixSuffix.spec.js +1 -1
  307. package/amd/{_curry1-b656408f.js → _curry1-f9717f1c.js} +1 -1
  308. package/amd/{_curry1-b656408f.js.map → _curry1-f9717f1c.js.map} +1 -1
  309. package/amd/{_curry2-a9053ee8.js → _curry2-c4648b65.js} +2 -2
  310. package/amd/{_curry2-a9053ee8.js.map → _curry2-c4648b65.js.map} +1 -1
  311. package/amd/_curry3-01167a7d.js +2 -0
  312. package/amd/{_curry3-451f0a36.js.map → _curry3-01167a7d.js.map} +1 -1
  313. package/amd/_has-6f4fa2af.js +2 -0
  314. package/amd/{_has-a3b0d688.js.map → _has-6f4fa2af.js.map} +1 -1
  315. package/amd/{classNames-e23e522a.js → classNames-f11010a7.js} +1 -1
  316. package/amd/{classNames-e23e522a.js.map → classNames-f11010a7.js.map} +1 -1
  317. package/amd/{clientHints-cbf4b34f.js → clientHints-33be1380.js} +1 -1
  318. package/amd/{clientHints-cbf4b34f.js.map → clientHints-33be1380.js.map} +1 -1
  319. package/amd/flexbox-b6c222f9.js +2 -0
  320. package/amd/{flexbox-1fede399.js.map → flexbox-b6c222f9.js.map} +1 -1
  321. package/amd/flexitem-1405ebe5.js +2 -0
  322. package/amd/{flexitem-88bf97c7.js.map → flexitem-1405ebe5.js.map} +1 -1
  323. package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -1
  324. package/amd/hooks/PRIVATE_useSingleSelection.js +1 -1
  325. package/amd/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +1 -1
  326. package/amd/hooks/UNSAFE_useAnimation.js +1 -1
  327. package/amd/hooks/UNSAFE_useFloating.js +1 -1
  328. package/amd/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +1 -1
  329. package/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
  330. package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
  331. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  332. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  333. package/amd/hooks/UNSAFE_useTooltip.css +4 -4
  334. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  335. package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
  336. package/amd/{index-d7a7f3a5.js → index-66b69d43.js} +1 -1
  337. package/amd/{index-d7a7f3a5.js.map → index-66b69d43.js.map} +1 -1
  338. package/amd/{index-8c322165.js → index-72f6069b.js} +2 -2
  339. package/amd/{index-8c322165.js.map → index-72f6069b.js.map} +1 -1
  340. package/amd/{index-365ddeb3.js → index-c7f647a1.js} +2 -2
  341. package/amd/{index-365ddeb3.js.map → index-c7f647a1.js.map} +1 -1
  342. package/amd/keys-6231193b.js +2 -0
  343. package/amd/{keys-c17276c4.js.map → keys-6231193b.js.map} +1 -1
  344. package/amd/{listViewSelectionTests-26f9efcc.js → listViewSelectionTests-0b13290d.js} +2 -2
  345. package/amd/{listViewSelectionTests-26f9efcc.js.map → listViewSelectionTests-0b13290d.js.map} +1 -1
  346. package/amd/{listViewTabbableModeTests-0b178c7e.js → listViewTabbableModeTests-b0269dd8.js} +2 -2
  347. package/amd/{listViewTabbableModeTests-0b178c7e.js.map → listViewTabbableModeTests-b0269dd8.js.map} +1 -1
  348. package/amd/{listViewTestFixtures-2e6127dc.js → listViewTestFixtures-b0f629d1.js} +1 -1
  349. package/amd/{listViewTestFixtures-2e6127dc.js.map → listViewTestFixtures-b0f629d1.js.map} +1 -1
  350. package/amd/{menuTestsUtils-b4a0008a.js → menuTestsUtils-83c9272c.js} +1 -1
  351. package/amd/{menuTestsUtils-b4a0008a.js.map → menuTestsUtils-83c9272c.js.map} +1 -1
  352. package/amd/{stringUtils-dfe8de67.js → stringUtils-b9c2724c.js} +1 -1
  353. package/amd/{stringUtils-dfe8de67.js.map → stringUtils-b9c2724c.js.map} +1 -1
  354. package/amd/{testHelpers-6511117b.js → testHelpers-d5c11a32.js} +1 -1
  355. package/amd/{testHelpers-6511117b.js.map → testHelpers-d5c11a32.js.map} +1 -1
  356. package/amd/{tslib.es6-7e0f14ee.js → tslib.es6-24bf3861.js} +1 -1
  357. package/amd/{tslib.es6-7e0f14ee.js.map → tslib.es6-24bf3861.js.map} +1 -1
  358. package/amd/useAnimation-19a01c68.js +2 -0
  359. package/amd/{useAnimation-ed7baee1.js.map → useAnimation-19a01c68.js.map} +1 -1
  360. package/amd/{useFocusWithin-9d11afb5.js → useFocusWithin-35862d6c.js} +1 -1
  361. package/amd/{useFocusWithin-9d11afb5.js.map → useFocusWithin-35862d6c.js.map} +1 -1
  362. package/amd/{useModal-53e3795c.js → useModal-b9882031.js} +1 -1
  363. package/amd/{useModal-53e3795c.js.map → useModal-b9882031.js.map} +1 -1
  364. package/amd/{useSingleSelection-fc18dcb9.js → useSingleSelection-f1f97662.js} +1 -1
  365. package/amd/{useSingleSelection-fc18dcb9.js.map → useSingleSelection-f1f97662.js.map} +1 -1
  366. package/amd/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +1 -1
  367. package/amd/utils/PRIVATE_clientHints.js +1 -1
  368. package/amd/utils/PRIVATE_tabbableUtils.js +1 -1
  369. package/amd/utils/UNSAFE_classNames/classNames.spec.js +1 -1
  370. package/amd/utils/UNSAFE_classNames.js +1 -1
  371. package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  372. package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
  373. package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  374. package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
  375. package/amd/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +1 -1
  376. package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -7
  377. package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
  378. package/amd/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +1 -1
  379. package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -7
  380. package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
  381. package/amd/utils/UNSAFE_interpolations/text.css +3 -3
  382. package/amd/utils/UNSAFE_interpolations/text.js +1 -1
  383. package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
  384. package/amd/utils/UNSAFE_logger.js +1 -1
  385. package/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
  386. package/amd/utils/UNSAFE_stringUtils/stringUtils.spec.js +1 -1
  387. package/amd/utils/UNSAFE_stringUtils.js +1 -1
  388. package/amd/utils/UNSAFE_units.js +1 -1
  389. package/cjs/{Badge-516eaf24.js → Badge-86b92084.js} +16 -16
  390. package/cjs/{Badge-516eaf24.js.map → Badge-86b92084.js.map} +1 -1
  391. package/cjs/{BaseButton-67685195.js → BaseButton-7e1b4b25.js} +20 -20
  392. package/cjs/{BaseButton-67685195.js.map → BaseButton-7e1b4b25.js.map} +1 -1
  393. package/cjs/{Button-60642ec0.js → Button-c86db2a4.js} +12 -12
  394. package/cjs/{Button-60642ec0.js.map → Button-c86db2a4.js.map} +1 -1
  395. package/cjs/{Chip-bf56ca63.js → Chip-90db4044.js} +10 -10
  396. package/cjs/{Chip-bf56ca63.js.map → Chip-90db4044.js.map} +1 -1
  397. package/cjs/{ClearIcon-76905041.js → ClearIcon-bd901988.js} +3 -3
  398. package/cjs/{ClearIcon-76905041.js.map → ClearIcon-bd901988.js.map} +1 -1
  399. package/cjs/{Collection-d90d6c02.js → Collection-461f1be2.js} +2 -2
  400. package/cjs/{Collection-d90d6c02.js.map → Collection-461f1be2.js.map} +1 -1
  401. package/cjs/{ComponentMessage-a31bfdd9.js → ComponentMessage-edce854c.js} +8 -8
  402. package/cjs/{ComponentMessage-a31bfdd9.js.map → ComponentMessage-edce854c.js.map} +1 -1
  403. package/cjs/{ComponentMessageContainer-0f867714.js → ComponentMessageContainer-c64450e5.js} +5 -5
  404. package/cjs/{ComponentMessageContainer-0f867714.js.map → ComponentMessageContainer-c64450e5.js.map} +1 -1
  405. package/cjs/{Divider-b4713277.js → Divider-141425db.js} +3 -3
  406. package/cjs/{Divider-b4713277.js.map → Divider-141425db.js.map} +1 -1
  407. package/cjs/{FilePicker-a21799d2.js → FilePicker-fb3d45ea.js} +14 -14
  408. package/cjs/{FilePicker-a21799d2.js.map → FilePicker-fb3d45ea.js.map} +1 -1
  409. package/cjs/{Flex-8adcefda.js → Flex-abc8df47.js} +8 -8
  410. package/cjs/{Flex-8adcefda.js.map → Flex-abc8df47.js.map} +1 -1
  411. package/cjs/{Floating-e4fd32d0.js → Floating-80c1f802.js} +3 -3
  412. package/cjs/{Floating-e4fd32d0.js.map → Floating-80c1f802.js.map} +1 -1
  413. package/cjs/{FocusTrap-3f3194b4.js → FocusTrap-07ea381a.js} +5 -5
  414. package/cjs/{FocusTrap-3f3194b4.js.map → FocusTrap-07ea381a.js.map} +1 -1
  415. package/cjs/{FormControlUtils-99854aca.js → FormControlUtils-0ea20780.js} +5 -5
  416. package/cjs/{FormControlUtils-99854aca.js.map → FormControlUtils-0ea20780.js.map} +1 -1
  417. package/cjs/{Heading-328346ad.js → Heading-90151ed6.js} +13 -13
  418. package/cjs/{Heading-328346ad.js.map → Heading-90151ed6.js.map} +1 -1
  419. package/cjs/{HiddenAccessible-8748e172.js → HiddenAccessible-fec4bd46.js} +3 -3
  420. package/cjs/{HiddenAccessible-8748e172.js.map → HiddenAccessible-fec4bd46.js.map} +1 -1
  421. package/cjs/{HighlightText-22bb41c3.js → HighlightText-fbdea496.js} +3 -3
  422. package/cjs/{HighlightText-22bb41c3.js.map → HighlightText-fbdea496.js.map} +1 -1
  423. package/cjs/{Icon-b9883d7d.js → Icon-e9b45fec.js} +11 -11
  424. package/cjs/{Icon-b9883d7d.js.map → Icon-e9b45fec.js.map} +1 -1
  425. package/cjs/{Indexer-05feba96.js → Indexer-c45cdc6a.js} +16 -16
  426. package/cjs/{Indexer-05feba96.js.map → Indexer-c45cdc6a.js.map} +1 -1
  427. package/cjs/{InlineHelpSource-14cab1d7.js → InlineHelpSource-4a4176fd.js} +3 -3
  428. package/cjs/{InlineHelpSource-14cab1d7.js.map → InlineHelpSource-4a4176fd.js.map} +1 -1
  429. package/cjs/{Link-e9a2c06a.js → Link-9bc77a8d.js} +8 -8
  430. package/cjs/{Link-e9a2c06a.js.map → Link-9bc77a8d.js.map} +1 -1
  431. package/cjs/{List-e6572a1a.js → List-bb075c7f.js} +23 -23
  432. package/cjs/{List-e6572a1a.js.map → List-bb075c7f.js.map} +1 -1
  433. package/cjs/{ListItemTextLayout-38ab9290.js → ListItemTextLayout-8b55d581.js} +13 -13
  434. package/cjs/{ListItemTextLayout-38ab9290.js.map → ListItemTextLayout-8b55d581.js.map} +1 -1
  435. package/cjs/{ListView-72350e40.js → ListView-d6b70851.js} +3 -3
  436. package/cjs/{ListView-72350e40.js.map → ListView-d6b70851.js.map} +1 -1
  437. package/cjs/{LoadMoreCollection-d41b2ef1.js → LoadMoreCollection-b0a2e2be.js} +3 -3
  438. package/cjs/{LoadMoreCollection-d41b2ef1.js.map → LoadMoreCollection-b0a2e2be.js.map} +1 -1
  439. package/cjs/{Menu-a18328d2.js → Menu-d278ccc8.js} +16 -16
  440. package/cjs/{Menu-a18328d2.js.map → Menu-d278ccc8.js.map} +1 -1
  441. package/cjs/{MenuDivider-30f8193f.js → MenuDivider-00c43339.js} +4 -4
  442. package/cjs/{MenuDivider-30f8193f.js.map → MenuDivider-00c43339.js.map} +1 -1
  443. package/cjs/{MenuItem-783fb134.js → MenuItem-21cec233.js} +19 -19
  444. package/cjs/{MenuItem-783fb134.js.map → MenuItem-21cec233.js.map} +1 -1
  445. package/cjs/{Message.types-26712e09.js → Message.types-6e393079.js} +2 -2
  446. package/cjs/{Message.types-26712e09.js.map → Message.types-6e393079.js.map} +1 -1
  447. package/cjs/{MessageCloseButton-5b583db5.js → MessageCloseButton-c9c1489b.js} +9 -9
  448. package/cjs/{MessageCloseButton-5b583db5.js.map → MessageCloseButton-c9c1489b.js.map} +1 -1
  449. package/cjs/{MessageDetail-1597d54c.js → MessageDetail-ad6384c9.js} +7 -7
  450. package/cjs/{MessageDetail-1597d54c.js.map → MessageDetail-ad6384c9.js.map} +1 -1
  451. package/cjs/{MessageFormattingUtils-4f6f379b.js → MessageFormattingUtils-7c2e00a0.js} +4 -4
  452. package/cjs/{MessageFormattingUtils-4f6f379b.js.map → MessageFormattingUtils-7c2e00a0.js.map} +1 -1
  453. package/cjs/{MessageLayer-a7099973.js → MessageLayer-17b3d41e.js} +11 -11
  454. package/cjs/{MessageLayer-a7099973.js.map → MessageLayer-17b3d41e.js.map} +1 -1
  455. package/cjs/{MessageStartIcon-332290c5.js → MessageStartIcon-8cdd83d6.js} +11 -11
  456. package/cjs/{MessageStartIcon-332290c5.js.map → MessageStartIcon-8cdd83d6.js.map} +1 -1
  457. package/cjs/{MessageSummary-f208a247.js → MessageSummary-fce38c49.js} +7 -7
  458. package/cjs/{MessageSummary-f208a247.js.map → MessageSummary-fce38c49.js.map} +1 -1
  459. package/cjs/{MessageTimestamp-8acc7447.js → MessageTimestamp-99b76c68.js} +5 -5
  460. package/cjs/{MessageTimestamp-8acc7447.js.map → MessageTimestamp-99b76c68.js.map} +1 -1
  461. package/cjs/{MessageToast-0452dfca.js → MessageToast-782252fe.js} +9 -9
  462. package/cjs/{MessageToast-0452dfca.js.map → MessageToast-782252fe.js.map} +1 -1
  463. package/cjs/{MessageUtils-059664ee.js → MessageUtils-22e1ec65.js} +3 -3
  464. package/cjs/{MessageUtils-059664ee.js.map → MessageUtils-22e1ec65.js.map} +1 -1
  465. package/cjs/{MessagesManager-d21e1b72.js → MessagesManager-8346222a.js} +4 -4
  466. package/cjs/{MessagesManager-d21e1b72.js.map → MessagesManager-8346222a.js.map} +1 -1
  467. package/cjs/{MeterCircle-ed7ab4c1.js → MeterCircle-84ccdd94.js} +50 -50
  468. package/cjs/{MeterCircle-ed7ab4c1.js.map → MeterCircle-84ccdd94.js.map} +1 -1
  469. package/cjs/{Modal-89af3015.js → Modal-4e69131b.js} +7 -7
  470. package/cjs/{Modal-89af3015.js.map → Modal-4e69131b.js.map} +1 -1
  471. package/cjs/{NumberInputText-61ace138.js → NumberInputText-5260e746.js} +7 -7
  472. package/cjs/{NumberInputText-61ace138.js.map → NumberInputText-5260e746.js.map} +1 -1
  473. package/cjs/PRIVATE_Collection/__tests__/Collection.spec.js +2 -2
  474. package/cjs/PRIVATE_Collection.js +2 -2
  475. package/cjs/PRIVATE_List/__tests__/List.spec.js +24 -24
  476. package/cjs/PRIVATE_List.js +23 -23
  477. package/cjs/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +17 -17
  478. package/cjs/PRIVATE_Message/__tests__/MessageDetail.spec.js +6 -6
  479. package/cjs/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +4 -4
  480. package/cjs/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +19 -19
  481. package/cjs/PRIVATE_Message/__tests__/MessageSummary.spec.js +3 -3
  482. package/cjs/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +6 -6
  483. package/cjs/PRIVATE_Message/__tests__/MessageUtils.spec.js +7 -7
  484. package/cjs/PRIVATE_Message/__tests__/MessagesManager.spec.js +4 -4
  485. package/cjs/PRIVATE_Message.js +41 -41
  486. package/cjs/PRIVATE_Message.js.map +1 -1
  487. package/cjs/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +12 -12
  488. package/cjs/PRIVATE_MessageLayer.js +12 -12
  489. package/cjs/PRIVATE_Meter.js +2 -2
  490. package/cjs/PRIVATE_SelectCommon.js +54 -54
  491. package/cjs/PRIVATE_SelectCommon.js.map +1 -1
  492. package/cjs/PRIVATE_TransitionGroup.js +1 -1
  493. package/cjs/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +3 -3
  494. package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
  495. package/cjs/{ReadonlyTextFieldInput-bd51f0be.js → ReadonlyTextFieldInput-e56b6845.js} +13 -13
  496. package/cjs/{ReadonlyTextFieldInput-bd51f0be.js.map → ReadonlyTextFieldInput-e56b6845.js.map} +1 -1
  497. package/cjs/{SelectMenuItem-fedc3a76.js → SelectMenuItem-d3bf2aba.js} +5 -5
  498. package/cjs/{SelectMenuItem-fedc3a76.js.map → SelectMenuItem-d3bf2aba.js.map} +1 -1
  499. package/cjs/{SelectMultiple-95f8d102.js → SelectMultiple-a4f95656.js} +8 -8
  500. package/cjs/{SelectMultiple-95f8d102.js.map → SelectMultiple-a4f95656.js.map} +1 -1
  501. package/cjs/{SelectSingle-e6022adb.js → SelectSingle-d010fbd3.js} +4 -4
  502. package/cjs/{SelectSingle-e6022adb.js.map → SelectSingle-d010fbd3.js.map} +1 -1
  503. package/cjs/{Skeleton-293b3946.js → Skeleton-02ed41de.js} +5 -5
  504. package/cjs/{Skeleton-293b3946.js.map → Skeleton-02ed41de.js.map} +1 -1
  505. package/cjs/{Spacer-54cee856.js → Spacer-9efbec87.js} +4 -4
  506. package/cjs/{Spacer-54cee856.js.map → Spacer-9efbec87.js.map} +1 -1
  507. package/cjs/{SplitMenuButton-18ee5f22.js → SplitMenuButton-1684e842.js} +14 -14
  508. package/cjs/{SplitMenuButton-18ee5f22.js.map → SplitMenuButton-1684e842.js.map} +1 -1
  509. package/cjs/{Subheading-1f3c82c5.js → Subheading-b37b33b3.js} +11 -11
  510. package/cjs/{Subheading-1f3c82c5.js.map → Subheading-b37b33b3.js.map} +1 -1
  511. package/cjs/{Text-429263d2.js → Text-9ddf7825.js} +28 -28
  512. package/cjs/{Text-429263d2.js.map → Text-9ddf7825.js.map} +1 -1
  513. package/cjs/{TextArea-d7110c6e.js → TextArea-5e4165d0.js} +8 -8
  514. package/cjs/{TextArea-d7110c6e.js.map → TextArea-5e4165d0.js.map} +1 -1
  515. package/cjs/{TextAreaAutosize-b7129c54.js → TextAreaAutosize-21cc597b.js} +5 -5
  516. package/cjs/{TextAreaAutosize-b7129c54.js.map → TextAreaAutosize-21cc597b.js.map} +1 -1
  517. package/cjs/{TextFieldInput-a8226638.js → TextFieldInput-1beff7e3.js} +33 -33
  518. package/cjs/{TextFieldInput-a8226638.js.map → TextFieldInput-1beff7e3.js.map} +1 -1
  519. package/cjs/UNSAFE_AspectRatio.js +8 -8
  520. package/cjs/UNSAFE_Avatar/__tests__/Avatar.spec.js +3 -3
  521. package/cjs/UNSAFE_Avatar.js +11 -11
  522. package/cjs/UNSAFE_Avatar.js.map +1 -1
  523. package/cjs/UNSAFE_Badge/__tests__/Badge.spec.js +3 -3
  524. package/cjs/UNSAFE_Badge.js +3 -3
  525. package/cjs/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +9 -9
  526. package/cjs/UNSAFE_BaseButton.js +9 -9
  527. package/cjs/UNSAFE_Button/__tests__/Button.spec.js +10 -10
  528. package/cjs/UNSAFE_Button.js +10 -10
  529. package/cjs/UNSAFE_Center.js +11 -11
  530. package/cjs/UNSAFE_Chip/__tests__/Chip.spec.js +3 -3
  531. package/cjs/UNSAFE_Chip.js +3 -3
  532. package/cjs/UNSAFE_Collapsible.js +26 -26
  533. package/cjs/UNSAFE_Collapsible.js.map +1 -1
  534. package/cjs/UNSAFE_Collection.js +1 -1
  535. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +32 -32
  536. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +33 -33
  537. package/cjs/UNSAFE_ComponentMessage.js +33 -33
  538. package/cjs/UNSAFE_Divider/__tests__/Divider.spec.js +7 -7
  539. package/cjs/UNSAFE_Divider.js +7 -7
  540. package/cjs/UNSAFE_EmptyList.js +1 -1
  541. package/cjs/UNSAFE_Environment/__tests__/Environment.spec.js +1 -1
  542. package/cjs/UNSAFE_Environment.js +1 -1
  543. package/cjs/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +14 -14
  544. package/cjs/UNSAFE_FilePicker.js +14 -14
  545. package/cjs/UNSAFE_Flex/__tests__/Flex.spec.js +11 -11
  546. package/cjs/UNSAFE_Flex.js +11 -11
  547. package/cjs/UNSAFE_Floating/__tests__/Floating.spec.js +3 -3
  548. package/cjs/UNSAFE_Floating.js +3 -3
  549. package/cjs/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +6 -6
  550. package/cjs/UNSAFE_FocusTrap.js +6 -6
  551. package/cjs/UNSAFE_Grid.js +9 -9
  552. package/cjs/UNSAFE_Heading/__test__/Heading.spec.js +11 -11
  553. package/cjs/UNSAFE_Heading.js +9 -9
  554. package/cjs/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +12 -12
  555. package/cjs/UNSAFE_HiddenAccessible.js +2 -2
  556. package/cjs/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +2 -2
  557. package/cjs/UNSAFE_HighlightText.js +2 -2
  558. package/cjs/UNSAFE_Icon/__tests__/Icon.spec.js +8 -8
  559. package/cjs/UNSAFE_Icon/__tests__/Icons.spec.js +9 -9
  560. package/cjs/UNSAFE_Icon.js +7 -7
  561. package/cjs/UNSAFE_Icons.js +8 -8
  562. package/cjs/UNSAFE_Indexer/__tests__/Indexer.spec.js +16 -16
  563. package/cjs/UNSAFE_Indexer.js +16 -16
  564. package/cjs/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +39 -39
  565. package/cjs/UNSAFE_InputPassword.js +40 -40
  566. package/cjs/UNSAFE_InputText.js +39 -39
  567. package/cjs/UNSAFE_Label.js +16 -16
  568. package/cjs/UNSAFE_Label.js.map +1 -1
  569. package/cjs/UNSAFE_LabelValueLayout.js +20 -20
  570. package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
  571. package/cjs/UNSAFE_Layer.js +1 -1
  572. package/cjs/UNSAFE_Link/__tests__/Link.spec.js +3 -3
  573. package/cjs/UNSAFE_Link.js +3 -3
  574. package/cjs/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +10 -10
  575. package/cjs/UNSAFE_ListItemLayout.js +10 -10
  576. package/cjs/UNSAFE_ListView/__tests__/ListView.spec.js +27 -27
  577. package/cjs/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +27 -27
  578. package/cjs/UNSAFE_ListView.js +24 -24
  579. package/cjs/UNSAFE_LiveRegion.js +2 -2
  580. package/cjs/UNSAFE_LiveRegion.js.map +1 -1
  581. package/cjs/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +3 -3
  582. package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
  583. package/cjs/UNSAFE_Menu/__tests__/Menu.spec.js +19 -19
  584. package/cjs/UNSAFE_Menu/__tests__/MenuItem.spec.js +11 -11
  585. package/cjs/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +18 -18
  586. package/cjs/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +22 -22
  587. package/cjs/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +22 -22
  588. package/cjs/UNSAFE_Menu.js +16 -16
  589. package/cjs/UNSAFE_MessageBanner.js +30 -30
  590. package/cjs/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +33 -33
  591. package/cjs/UNSAFE_MessageToast.js +33 -33
  592. package/cjs/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +7 -7
  593. package/cjs/UNSAFE_MeterBar.js +50 -50
  594. package/cjs/UNSAFE_MeterBar.js.map +1 -1
  595. package/cjs/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +8 -8
  596. package/cjs/UNSAFE_MeterCircle.js +7 -7
  597. package/cjs/UNSAFE_Modal/__tests__/Modal.spec.js +8 -8
  598. package/cjs/UNSAFE_Modal.js +8 -8
  599. package/cjs/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +39 -39
  600. package/cjs/UNSAFE_NumberInputText.js +39 -39
  601. package/cjs/UNSAFE_PrefixSuffix.js +10 -10
  602. package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
  603. package/cjs/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +3 -3
  604. package/cjs/UNSAFE_ProgressBar.js +9 -9
  605. package/cjs/UNSAFE_ProgressBar.js.map +1 -1
  606. package/cjs/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +3 -3
  607. package/cjs/UNSAFE_ProgressCircle.js +9 -9
  608. package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
  609. package/cjs/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +7 -7
  610. package/cjs/UNSAFE_RatingGauge.js +26 -26
  611. package/cjs/UNSAFE_RatingGauge.js.map +1 -1
  612. package/cjs/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +47 -47
  613. package/cjs/UNSAFE_SelectMultiple.js +47 -47
  614. package/cjs/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +46 -46
  615. package/cjs/UNSAFE_SelectSingle.js +46 -46
  616. package/cjs/UNSAFE_Selector.js +22 -22
  617. package/cjs/UNSAFE_Selector.js.map +1 -1
  618. package/cjs/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +8 -8
  619. package/cjs/UNSAFE_Skeleton.js +8 -8
  620. package/cjs/UNSAFE_Spacer/__tests__/Spacer.spec.js +10 -10
  621. package/cjs/UNSAFE_Spacer.js +10 -10
  622. package/cjs/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +23 -23
  623. package/cjs/UNSAFE_SplitMenuButton.js +23 -23
  624. package/cjs/UNSAFE_Subheading/__test__/Subheading.spec.js +10 -10
  625. package/cjs/UNSAFE_Subheading.js +8 -8
  626. package/cjs/UNSAFE_Text/__tests__/Text.spec.js +8 -8
  627. package/cjs/UNSAFE_Text.js +8 -8
  628. package/cjs/UNSAFE_TextArea/__tests__/TextArea.spec.js +39 -39
  629. package/cjs/UNSAFE_TextArea.js +39 -39
  630. package/cjs/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +40 -40
  631. package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
  632. package/cjs/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +10 -10
  633. package/cjs/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +11 -11
  634. package/cjs/UNSAFE_TextField.js +35 -35
  635. package/cjs/UNSAFE_TextField.js.map +1 -1
  636. package/cjs/UNSAFE_ThemedIcons.js +9 -9
  637. package/cjs/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +2 -2
  638. package/cjs/UNSAFE_UserAssistance.js +41 -41
  639. package/cjs/UNSAFE_UserAssistance.js.map +1 -1
  640. package/cjs/UNSAFE_View/__tests__/View.spec.js +9 -9
  641. package/cjs/UNSAFE_View.js +9 -9
  642. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +27 -27
  643. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +27 -27
  644. package/cjs/UNSAFE_VirtualizedListView.js +24 -24
  645. package/cjs/UNSAFE_WindowOverlay.js +1 -1
  646. package/cjs/{VirtualizedCollection-b4ff9efe.js → VirtualizedCollection-e8b04cee.js} +3 -3
  647. package/cjs/{VirtualizedCollection-b4ff9efe.js.map → VirtualizedCollection-e8b04cee.js.map} +1 -1
  648. package/cjs/{VirtualizedListView-5e391573.js → VirtualizedListView-e5fb6ffd.js} +3 -3
  649. package/cjs/{VirtualizedListView-5e391573.js.map → VirtualizedListView-e5fb6ffd.js.map} +1 -1
  650. package/cjs/__tests__/FormControls/FormControlAria.spec.js +52 -52
  651. package/cjs/__tests__/FormControls/FormControlClearIcon.spec.js +39 -39
  652. package/cjs/__tests__/FormControls/FormControlCommit.spec.js +42 -42
  653. package/cjs/__tests__/FormControls/FormControlPrefixSuffix.spec.js +40 -40
  654. package/cjs/{_curry1-35039e54.js → _curry1-f474d217.js} +2 -2
  655. package/cjs/{_curry1-35039e54.js.map → _curry1-f474d217.js.map} +1 -1
  656. package/cjs/{_curry2-76e523bc.js → _curry2-d9a7c1b6.js} +3 -3
  657. package/cjs/{_curry2-76e523bc.js.map → _curry2-d9a7c1b6.js.map} +1 -1
  658. package/cjs/{_curry3-e72b63d8.js → _curry3-bb64ee3f.js} +4 -4
  659. package/cjs/{_curry3-e72b63d8.js.map → _curry3-bb64ee3f.js.map} +1 -1
  660. package/cjs/{_has-75b68b14.js → _has-35a13c89.js} +3 -3
  661. package/cjs/{_has-75b68b14.js.map → _has-35a13c89.js.map} +1 -1
  662. package/cjs/{classNames-627e416b.js → classNames-91b1a4c2.js} +2 -2
  663. package/cjs/{classNames-627e416b.js.map → classNames-91b1a4c2.js.map} +1 -1
  664. package/cjs/{clientHints-12b76025.js → clientHints-f1b68e49.js} +2 -2
  665. package/cjs/{clientHints-12b76025.js.map → clientHints-f1b68e49.js.map} +1 -1
  666. package/cjs/{flexbox-344a4b6d.js → flexbox-7eddc8d8.js} +10 -10
  667. package/cjs/{flexbox-344a4b6d.js.map → flexbox-7eddc8d8.js.map} +1 -1
  668. package/cjs/{flexitem-79359f72.js → flexitem-59dc8b40.js} +10 -10
  669. package/cjs/{flexitem-79359f72.js.map → flexitem-59dc8b40.js.map} +1 -1
  670. package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  671. package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
  672. package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
  673. package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
  674. package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  675. package/cjs/hooks/PRIVATE_useSelection.js +1 -1
  676. package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
  677. package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  678. package/cjs/hooks/UNSAFE_useActionable.js +1 -1
  679. package/cjs/hooks/UNSAFE_useActive.js +1 -1
  680. package/cjs/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +3 -3
  681. package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
  682. package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
  683. package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
  684. package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
  685. package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
  686. package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  687. package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  688. package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  689. package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
  690. package/cjs/hooks/UNSAFE_useFloating.js +2 -2
  691. package/cjs/hooks/UNSAFE_useFocus.js +1 -1
  692. package/cjs/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +2 -2
  693. package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
  694. package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
  695. package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
  696. package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
  697. package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
  698. package/cjs/hooks/UNSAFE_useHover.js +1 -1
  699. package/cjs/hooks/UNSAFE_useId.js +1 -1
  700. package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
  701. package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  702. package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
  703. package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
  704. package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
  705. package/cjs/hooks/UNSAFE_usePan.js +1 -1
  706. package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
  707. package/cjs/hooks/UNSAFE_usePress.js +1 -1
  708. package/cjs/hooks/UNSAFE_useScale.js +1 -1
  709. package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
  710. package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
  711. package/cjs/hooks/UNSAFE_useTap.js +1 -1
  712. package/cjs/hooks/UNSAFE_useTextField.js +1 -1
  713. package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
  714. package/cjs/hooks/UNSAFE_useTheme.js +1 -1
  715. package/cjs/hooks/UNSAFE_useTimer.js +1 -1
  716. package/cjs/hooks/UNSAFE_useToggle.js +1 -1
  717. package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
  718. package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
  719. package/cjs/hooks/UNSAFE_useTouch.js +1 -1
  720. package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
  721. package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
  722. package/cjs/hooks/UNSAFE_useUser.js +1 -1
  723. package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
  724. package/cjs/{index-8716aaf0.js → index-28bd107b.js} +3 -3
  725. package/cjs/{index-8716aaf0.js.map → index-28bd107b.js.map} +1 -1
  726. package/cjs/{index-d1c91ef7.js → index-681a4e95.js} +2 -2
  727. package/cjs/{index-d1c91ef7.js.map → index-681a4e95.js.map} +1 -1
  728. package/cjs/{index-f0719a25.js → index-bb397696.js} +3 -3
  729. package/cjs/{index-f0719a25.js.map → index-bb397696.js.map} +1 -1
  730. package/cjs/{keys-ba04e49a.js → keys-2e26a8bd.js} +4 -4
  731. package/cjs/{keys-ba04e49a.js.map → keys-2e26a8bd.js.map} +1 -1
  732. package/cjs/{listViewSelectionTests-f28facbe.js → listViewSelectionTests-1763e9d7.js} +4 -4
  733. package/cjs/{listViewSelectionTests-f28facbe.js.map → listViewSelectionTests-1763e9d7.js.map} +1 -1
  734. package/cjs/{listViewTabbableModeTests-ecc6a1d6.js → listViewTabbableModeTests-ef0e83da.js} +4 -4
  735. package/cjs/{listViewTabbableModeTests-ecc6a1d6.js.map → listViewTabbableModeTests-ef0e83da.js.map} +1 -1
  736. package/cjs/{listViewTestFixtures-d77529d2.js → listViewTestFixtures-689db549.js} +2 -2
  737. package/cjs/{listViewTestFixtures-d77529d2.js.map → listViewTestFixtures-689db549.js.map} +1 -1
  738. package/cjs/{menuTestsUtils-4c537616.js → menuTestsUtils-2e148d67.js} +2 -2
  739. package/cjs/{menuTestsUtils-4c537616.js.map → menuTestsUtils-2e148d67.js.map} +1 -1
  740. package/cjs/resources/nls/ar/bundle.js +1 -1
  741. package/cjs/resources/nls/ar-XB/bundle.js +1 -1
  742. package/cjs/resources/nls/bg/bundle.js +1 -1
  743. package/cjs/resources/nls/bs/bundle.js +1 -1
  744. package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
  745. package/cjs/resources/nls/bundle.js +1 -1
  746. package/cjs/resources/nls/cs/bundle.js +1 -1
  747. package/cjs/resources/nls/da/bundle.js +1 -1
  748. package/cjs/resources/nls/de/bundle.js +1 -1
  749. package/cjs/resources/nls/el/bundle.js +1 -1
  750. package/cjs/resources/nls/en/bundle.js +1 -1
  751. package/cjs/resources/nls/en-XA/bundle.js +1 -1
  752. package/cjs/resources/nls/en-XC/bundle.js +1 -1
  753. package/cjs/resources/nls/es/bundle.js +1 -1
  754. package/cjs/resources/nls/et/bundle.js +1 -1
  755. package/cjs/resources/nls/fi/bundle.js +1 -1
  756. package/cjs/resources/nls/fr/bundle.js +1 -1
  757. package/cjs/resources/nls/fr-CA/bundle.js +1 -1
  758. package/cjs/resources/nls/he/bundle.js +1 -1
  759. package/cjs/resources/nls/hr/bundle.js +1 -1
  760. package/cjs/resources/nls/hu/bundle.js +1 -1
  761. package/cjs/resources/nls/is/bundle.js +1 -1
  762. package/cjs/resources/nls/it/bundle.js +1 -1
  763. package/cjs/resources/nls/ja/bundle.js +1 -1
  764. package/cjs/resources/nls/ko/bundle.js +1 -1
  765. package/cjs/resources/nls/lt/bundle.js +1 -1
  766. package/cjs/resources/nls/lv/bundle.js +1 -1
  767. package/cjs/resources/nls/ms/bundle.js +1 -1
  768. package/cjs/resources/nls/nl/bundle.js +1 -1
  769. package/cjs/resources/nls/no/bundle.js +1 -1
  770. package/cjs/resources/nls/pl/bundle.js +1 -1
  771. package/cjs/resources/nls/pt/bundle.js +1 -1
  772. package/cjs/resources/nls/pt-PT/bundle.js +1 -1
  773. package/cjs/resources/nls/ro/bundle.js +1 -1
  774. package/cjs/resources/nls/ru/bundle.js +1 -1
  775. package/cjs/resources/nls/sk/bundle.js +1 -1
  776. package/cjs/resources/nls/sl/bundle.js +1 -1
  777. package/cjs/resources/nls/sr/bundle.js +1 -1
  778. package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
  779. package/cjs/resources/nls/supportedLocales.js +1 -1
  780. package/cjs/resources/nls/sv/bundle.js +1 -1
  781. package/cjs/resources/nls/th/bundle.js +1 -1
  782. package/cjs/resources/nls/tr/bundle.js +1 -1
  783. package/cjs/resources/nls/uk/bundle.js +1 -1
  784. package/cjs/resources/nls/vi/bundle.js +1 -1
  785. package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
  786. package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
  787. package/cjs/{stringUtils-f686952b.js → stringUtils-df1f541d.js} +2 -2
  788. package/cjs/{stringUtils-f686952b.js.map → stringUtils-df1f541d.js.map} +1 -1
  789. package/cjs/{testHelpers-2de1fdf9.js → testHelpers-8a43f55a.js} +2 -2
  790. package/cjs/{testHelpers-2de1fdf9.js.map → testHelpers-8a43f55a.js.map} +1 -1
  791. package/cjs/translationBundle/__tests__/translationBundle.spec.js +1 -1
  792. package/cjs/translationBundle.js +1 -1
  793. package/cjs/{tslib.es6-6bcecd0b.js → tslib.es6-0959d395.js} +2 -2
  794. package/cjs/{tslib.es6-6bcecd0b.js.map → tslib.es6-0959d395.js.map} +1 -1
  795. package/cjs/{useAnimation-f159e7c6.js → useAnimation-4f399615.js} +3 -3
  796. package/cjs/{useAnimation-f159e7c6.js.map → useAnimation-4f399615.js.map} +1 -1
  797. package/cjs/{useFocusWithin-1337b63d.js → useFocusWithin-fb08429c.js} +2 -2
  798. package/cjs/{useFocusWithin-1337b63d.js.map → useFocusWithin-fb08429c.js.map} +1 -1
  799. package/cjs/{useModal-a71a6750.js → useModal-5f8e61e7.js} +2 -2
  800. package/cjs/{useModal-a71a6750.js.map → useModal-5f8e61e7.js.map} +1 -1
  801. package/cjs/{useSingleSelection-1abf7fcd.js → useSingleSelection-0d9d3af4.js} +2 -2
  802. package/cjs/{useSingleSelection-1abf7fcd.js.map → useSingleSelection-0d9d3af4.js.map} +1 -1
  803. package/cjs/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +2 -2
  804. package/cjs/utils/PRIVATE_clientHints.js +2 -2
  805. package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
  806. package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
  807. package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
  808. package/cjs/utils/PRIVATE_meterUtils.js +1 -1
  809. package/cjs/utils/PRIVATE_refUtils.js +1 -1
  810. package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
  811. package/cjs/utils/PRIVATE_timer.js +1 -1
  812. package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
  813. package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
  814. package/cjs/utils/UNSAFE_classNames/classNames.spec.js +2 -2
  815. package/cjs/utils/UNSAFE_classNames.js +2 -2
  816. package/cjs/utils/UNSAFE_componentUtils.js +1 -1
  817. package/cjs/utils/UNSAFE_dataProvider.js +1 -1
  818. package/cjs/utils/UNSAFE_dvtCommonUtils.js +1 -1
  819. package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
  820. package/cjs/utils/UNSAFE_getLocale.js +1 -1
  821. package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
  822. package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
  823. package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  824. package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  825. package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
  826. package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
  827. package/cjs/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +5 -5
  828. package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
  829. package/cjs/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +5 -5
  830. package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
  831. package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
  832. package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
  833. package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
  834. package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
  835. package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
  836. package/cjs/utils/UNSAFE_keys.js +1 -1
  837. package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
  838. package/cjs/utils/UNSAFE_logger.js +3 -3
  839. package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
  840. package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
  841. package/cjs/utils/UNSAFE_mergeProps.js +1 -1
  842. package/cjs/utils/UNSAFE_meterTypes.js +1 -1
  843. package/cjs/utils/UNSAFE_roles.js +1 -1
  844. package/cjs/utils/UNSAFE_selectUtils.js +1 -1
  845. package/cjs/utils/UNSAFE_size.js +1 -1
  846. package/cjs/utils/UNSAFE_soundUtils.js +1 -1
  847. package/cjs/utils/UNSAFE_stringUtils/stringUtils.spec.js +2 -2
  848. package/cjs/utils/UNSAFE_stringUtils.js +2 -2
  849. package/cjs/utils/UNSAFE_typeUtils.js +1 -1
  850. package/cjs/utils/UNSAFE_units.js +2 -2
  851. package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
  852. package/es/{ClearIcon-c7a7df6d.js → ClearIcon-e72d4a9c.js} +3 -3
  853. package/es/{ClearIcon-c7a7df6d.js.map → ClearIcon-e72d4a9c.js.map} +1 -1
  854. package/es/{LoadMoreCollection-b3269ff4.js → LoadMoreCollection-945e29df.js} +2 -2
  855. package/es/{LoadMoreCollection-b3269ff4.js.map → LoadMoreCollection-945e29df.js.map} +1 -1
  856. package/es/PRIVATE_Collection.js +1 -1
  857. package/es/PRIVATE_List.css +15 -15
  858. package/es/PRIVATE_List.js +24 -24
  859. package/es/PRIVATE_List.js.map +1 -1
  860. package/es/PRIVATE_Message.css +27 -27
  861. package/es/PRIVATE_Message.js +35 -35
  862. package/es/PRIVATE_Message.js.map +1 -1
  863. package/es/PRIVATE_MessageLayer.css +7 -7
  864. package/es/PRIVATE_MessageLayer.js +14 -14
  865. package/es/PRIVATE_MessageLayer.js.map +1 -1
  866. package/es/PRIVATE_Meter.js +2 -2
  867. package/es/PRIVATE_SelectCommon.css +13 -13
  868. package/es/PRIVATE_SelectCommon.js +22 -22
  869. package/es/PRIVATE_SelectCommon.js.map +1 -1
  870. package/es/PRIVATE_TransitionGroup.js +1 -1
  871. package/es/PRIVATE_VirtualizedCollection.js +1 -1
  872. package/es/UNSAFE_AspectRatio.css +1 -1
  873. package/es/UNSAFE_AspectRatio.js +7 -7
  874. package/es/UNSAFE_Avatar.css +8 -8
  875. package/es/UNSAFE_Avatar.js +10 -10
  876. package/es/UNSAFE_Avatar.js.map +1 -1
  877. package/es/UNSAFE_Badge.css +13 -13
  878. package/es/UNSAFE_Badge.js +14 -14
  879. package/es/UNSAFE_Badge.js.map +1 -1
  880. package/es/UNSAFE_BaseButton.css +15 -15
  881. package/es/UNSAFE_BaseButton.js +21 -21
  882. package/es/UNSAFE_BaseButton.js.map +1 -1
  883. package/es/UNSAFE_Button.css +7 -7
  884. package/es/UNSAFE_Button.js +13 -13
  885. package/es/UNSAFE_Button.js.map +1 -1
  886. package/es/UNSAFE_Center.js +7 -7
  887. package/es/UNSAFE_Chip.css +7 -7
  888. package/es/UNSAFE_Chip.js +8 -8
  889. package/es/UNSAFE_Chip.js.map +1 -1
  890. package/es/UNSAFE_Collapsible.css +8 -8
  891. package/es/UNSAFE_Collapsible.js +16 -16
  892. package/es/UNSAFE_Collapsible.js.map +1 -1
  893. package/es/UNSAFE_Collection.js +1 -1
  894. package/es/UNSAFE_ComponentMessage.css +2 -2
  895. package/es/UNSAFE_ComponentMessage.js +10 -10
  896. package/es/UNSAFE_ComponentMessage.js.map +1 -1
  897. package/es/UNSAFE_Divider.css +1 -1
  898. package/es/UNSAFE_Divider.js +6 -6
  899. package/es/UNSAFE_EmptyList.js +1 -1
  900. package/es/UNSAFE_Environment.js +1 -1
  901. package/es/UNSAFE_FilePicker.css +6 -6
  902. package/es/UNSAFE_FilePicker.js +13 -13
  903. package/es/UNSAFE_FilePicker.js.map +1 -1
  904. package/es/UNSAFE_Flex.css +2 -2
  905. package/es/UNSAFE_Flex.js +9 -9
  906. package/es/UNSAFE_Flex.js.map +1 -1
  907. package/es/UNSAFE_Floating.js +2 -2
  908. package/es/UNSAFE_FocusTrap.css +2 -2
  909. package/es/UNSAFE_FocusTrap.js +6 -6
  910. package/es/UNSAFE_FocusTrap.js.map +1 -1
  911. package/es/UNSAFE_Grid.css +1 -1
  912. package/es/UNSAFE_Grid.js +8 -8
  913. package/es/UNSAFE_Heading.css +9 -9
  914. package/es/UNSAFE_Heading.js +16 -16
  915. package/es/UNSAFE_Heading.js.map +1 -1
  916. package/es/UNSAFE_HiddenAccessible.css +1 -1
  917. package/es/UNSAFE_HiddenAccessible.js +2 -2
  918. package/es/UNSAFE_HiddenAccessible.js.map +1 -1
  919. package/es/UNSAFE_HighlightText.css +1 -1
  920. package/es/UNSAFE_HighlightText.js +2 -2
  921. package/es/UNSAFE_HighlightText.js.map +1 -1
  922. package/es/UNSAFE_Icon.css +8 -8
  923. package/es/UNSAFE_Icon.js +11 -11
  924. package/es/UNSAFE_Icon.js.map +1 -1
  925. package/es/UNSAFE_Icons.js +3 -3
  926. package/es/UNSAFE_Indexer.css +7 -7
  927. package/es/UNSAFE_Indexer.js +15 -15
  928. package/es/UNSAFE_Indexer.js.map +1 -1
  929. package/es/UNSAFE_InputPassword.css +1 -1
  930. package/es/UNSAFE_InputPassword.js +10 -10
  931. package/es/UNSAFE_InputText.css +1 -1
  932. package/es/UNSAFE_InputText.js +9 -9
  933. package/es/UNSAFE_Label.css +13 -13
  934. package/es/UNSAFE_Label.js +15 -15
  935. package/es/UNSAFE_Label.js.map +1 -1
  936. package/es/UNSAFE_LabelValueLayout.css +9 -9
  937. package/es/UNSAFE_LabelValueLayout.js +16 -16
  938. package/es/UNSAFE_LabelValueLayout.js.map +1 -1
  939. package/es/UNSAFE_Layer.js +1 -1
  940. package/es/UNSAFE_Link.css +5 -5
  941. package/es/UNSAFE_Link.js +6 -6
  942. package/es/UNSAFE_Link.js.map +1 -1
  943. package/es/UNSAFE_ListItemLayout.css +9 -9
  944. package/es/UNSAFE_ListItemLayout.js +16 -16
  945. package/es/UNSAFE_ListItemLayout.js.map +1 -1
  946. package/es/UNSAFE_ListView.js +9 -9
  947. package/es/UNSAFE_LiveRegion.css +1 -1
  948. package/es/UNSAFE_LiveRegion.js +2 -2
  949. package/es/UNSAFE_LiveRegion.js.map +1 -1
  950. package/es/UNSAFE_LoadMoreCollection.js +2 -2
  951. package/es/UNSAFE_Menu.css +23 -23
  952. package/es/UNSAFE_Menu.js +31 -31
  953. package/es/UNSAFE_Menu.js.map +1 -1
  954. package/es/UNSAFE_MessageBanner.js +8 -8
  955. package/es/UNSAFE_MessageToast.css +1 -1
  956. package/es/UNSAFE_MessageToast.js +9 -9
  957. package/es/UNSAFE_MeterBar.css +44 -44
  958. package/es/UNSAFE_MeterBar.js +47 -47
  959. package/es/UNSAFE_MeterBar.js.map +1 -1
  960. package/es/UNSAFE_MeterCircle.css +46 -46
  961. package/es/UNSAFE_MeterCircle.js +49 -49
  962. package/es/UNSAFE_MeterCircle.js.map +1 -1
  963. package/es/UNSAFE_Modal.css +3 -3
  964. package/es/UNSAFE_Modal.js +8 -8
  965. package/es/UNSAFE_NumberInputText.js +8 -8
  966. package/es/UNSAFE_PrefixSuffix.css +8 -8
  967. package/es/UNSAFE_PrefixSuffix.js +9 -9
  968. package/es/UNSAFE_PrefixSuffix.js.map +1 -1
  969. package/es/UNSAFE_ProgressBar.css +6 -6
  970. package/es/UNSAFE_ProgressBar.js +8 -8
  971. package/es/UNSAFE_ProgressBar.js.map +1 -1
  972. package/es/UNSAFE_ProgressCircle.css +6 -6
  973. package/es/UNSAFE_ProgressCircle.js +8 -8
  974. package/es/UNSAFE_ProgressCircle.js.map +1 -1
  975. package/es/UNSAFE_RatingGauge.css +20 -20
  976. package/es/UNSAFE_RatingGauge.js +23 -23
  977. package/es/UNSAFE_RatingGauge.js.map +1 -1
  978. package/es/UNSAFE_SelectMultiple.css +1 -1
  979. package/es/UNSAFE_SelectMultiple.js +10 -10
  980. package/es/UNSAFE_SelectMultiple.js.map +1 -1
  981. package/es/UNSAFE_SelectSingle.js +9 -9
  982. package/es/UNSAFE_Selector.css +5 -5
  983. package/es/UNSAFE_Selector.js +13 -13
  984. package/es/UNSAFE_Selector.js.map +1 -1
  985. package/es/UNSAFE_Skeleton.css +1 -1
  986. package/es/UNSAFE_Skeleton.js +7 -7
  987. package/es/UNSAFE_Spacer.js +7 -7
  988. package/es/UNSAFE_SplitMenuButton.css +5 -5
  989. package/es/UNSAFE_SplitMenuButton.js +13 -13
  990. package/es/UNSAFE_SplitMenuButton.js.map +1 -1
  991. package/es/UNSAFE_Subheading.css +8 -8
  992. package/es/UNSAFE_Subheading.js +14 -14
  993. package/es/UNSAFE_Subheading.js.map +1 -1
  994. package/es/UNSAFE_Text.css +25 -25
  995. package/es/UNSAFE_Text.js +31 -31
  996. package/es/UNSAFE_Text.js.map +1 -1
  997. package/es/UNSAFE_TextArea.css +3 -3
  998. package/es/UNSAFE_TextArea.js +11 -11
  999. package/es/UNSAFE_TextArea.js.map +1 -1
  1000. package/es/UNSAFE_TextAreaAutosize.js +8 -8
  1001. package/es/UNSAFE_TextField.css +58 -58
  1002. package/es/UNSAFE_TextField.js +65 -65
  1003. package/es/UNSAFE_TextField.js.map +1 -1
  1004. package/es/UNSAFE_ThemedIcons.js +3 -3
  1005. package/es/UNSAFE_UserAssistance.css +8 -8
  1006. package/es/UNSAFE_UserAssistance.js +16 -16
  1007. package/es/UNSAFE_UserAssistance.js.map +1 -1
  1008. package/es/UNSAFE_View.js +7 -7
  1009. package/es/UNSAFE_VirtualizedListView.js +9 -9
  1010. package/es/UNSAFE_WindowOverlay.js +1 -1
  1011. package/es/{_curry1-0c5ef247.js → _curry1-2a9333ec.js} +2 -2
  1012. package/es/{_curry1-0c5ef247.js.map → _curry1-2a9333ec.js.map} +1 -1
  1013. package/es/{_curry2-4aba9981.js → _curry2-07c02247.js} +3 -3
  1014. package/es/{_curry2-4aba9981.js.map → _curry2-07c02247.js.map} +1 -1
  1015. package/es/{_curry3-4ba62816.js → _curry3-aa3c73cf.js} +4 -4
  1016. package/es/{_curry3-4ba62816.js.map → _curry3-aa3c73cf.js.map} +1 -1
  1017. package/es/{_has-6b23f721.js → _has-eab86c92.js} +3 -3
  1018. package/es/{_has-6b23f721.js.map → _has-eab86c92.js.map} +1 -1
  1019. package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  1020. package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
  1021. package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
  1022. package/es/hooks/PRIVATE_useItemAction.js +1 -1
  1023. package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  1024. package/es/hooks/PRIVATE_useSelection.js +1 -1
  1025. package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
  1026. package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  1027. package/es/hooks/UNSAFE_useActionable.js +1 -1
  1028. package/es/hooks/UNSAFE_useActive.js +1 -1
  1029. package/es/hooks/UNSAFE_useAnimation.js +2 -2
  1030. package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
  1031. package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
  1032. package/es/hooks/UNSAFE_useClearIcon.js +1 -1
  1033. package/es/hooks/UNSAFE_useColorScheme.js +1 -1
  1034. package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  1035. package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  1036. package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  1037. package/es/hooks/UNSAFE_useDebounce.js +1 -1
  1038. package/es/hooks/UNSAFE_useFloating.js +2 -2
  1039. package/es/hooks/UNSAFE_useFocus.js +1 -1
  1040. package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
  1041. package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
  1042. package/es/hooks/UNSAFE_useFormContext.js +1 -1
  1043. package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
  1044. package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
  1045. package/es/hooks/UNSAFE_useHover.js +1 -1
  1046. package/es/hooks/UNSAFE_useId.js +1 -1
  1047. package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
  1048. package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  1049. package/es/hooks/UNSAFE_useLongPress.js +1 -1
  1050. package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
  1051. package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
  1052. package/es/hooks/UNSAFE_usePan.js +1 -1
  1053. package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  1054. package/es/hooks/UNSAFE_usePress.js +1 -1
  1055. package/es/hooks/UNSAFE_useScale.js +1 -1
  1056. package/es/hooks/UNSAFE_useSwipe.js +1 -1
  1057. package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
  1058. package/es/hooks/UNSAFE_useTap.js +1 -1
  1059. package/es/hooks/UNSAFE_useTextField.js +1 -1
  1060. package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  1061. package/es/hooks/UNSAFE_useTheme.js +1 -1
  1062. package/es/hooks/UNSAFE_useTimer.js +1 -1
  1063. package/es/hooks/UNSAFE_useToggle.js +1 -1
  1064. package/es/hooks/UNSAFE_useTooltip.css +4 -4
  1065. package/es/hooks/UNSAFE_useTooltip.js +7 -7
  1066. package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
  1067. package/es/hooks/UNSAFE_useTouch.js +1 -1
  1068. package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
  1069. package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
  1070. package/es/hooks/UNSAFE_useUser.js +1 -1
  1071. package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
  1072. package/es/{index-3b1fe1db.js → index-d05c2960.js} +2 -2
  1073. package/es/{index-3b1fe1db.js.map → index-d05c2960.js.map} +1 -1
  1074. package/es/{keys-59f06777.js → keys-f592c2a6.js} +4 -4
  1075. package/es/{keys-59f06777.js.map → keys-f592c2a6.js.map} +1 -1
  1076. package/es/resources/nls/ar/bundle.js +1 -1
  1077. package/es/resources/nls/ar-XB/bundle.js +1 -1
  1078. package/es/resources/nls/bg/bundle.js +1 -1
  1079. package/es/resources/nls/bs/bundle.js +1 -1
  1080. package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
  1081. package/es/resources/nls/bundle.js +1 -1
  1082. package/es/resources/nls/cs/bundle.js +1 -1
  1083. package/es/resources/nls/da/bundle.js +1 -1
  1084. package/es/resources/nls/de/bundle.js +1 -1
  1085. package/es/resources/nls/el/bundle.js +1 -1
  1086. package/es/resources/nls/en/bundle.js +1 -1
  1087. package/es/resources/nls/en-XA/bundle.js +1 -1
  1088. package/es/resources/nls/en-XC/bundle.js +1 -1
  1089. package/es/resources/nls/es/bundle.js +1 -1
  1090. package/es/resources/nls/et/bundle.js +1 -1
  1091. package/es/resources/nls/fi/bundle.js +1 -1
  1092. package/es/resources/nls/fr/bundle.js +1 -1
  1093. package/es/resources/nls/fr-CA/bundle.js +1 -1
  1094. package/es/resources/nls/he/bundle.js +1 -1
  1095. package/es/resources/nls/hr/bundle.js +1 -1
  1096. package/es/resources/nls/hu/bundle.js +1 -1
  1097. package/es/resources/nls/is/bundle.js +1 -1
  1098. package/es/resources/nls/it/bundle.js +1 -1
  1099. package/es/resources/nls/ja/bundle.js +1 -1
  1100. package/es/resources/nls/ko/bundle.js +1 -1
  1101. package/es/resources/nls/lt/bundle.js +1 -1
  1102. package/es/resources/nls/lv/bundle.js +1 -1
  1103. package/es/resources/nls/ms/bundle.js +1 -1
  1104. package/es/resources/nls/nl/bundle.js +1 -1
  1105. package/es/resources/nls/no/bundle.js +1 -1
  1106. package/es/resources/nls/pl/bundle.js +1 -1
  1107. package/es/resources/nls/pt/bundle.js +1 -1
  1108. package/es/resources/nls/pt-PT/bundle.js +1 -1
  1109. package/es/resources/nls/ro/bundle.js +1 -1
  1110. package/es/resources/nls/ru/bundle.js +1 -1
  1111. package/es/resources/nls/sk/bundle.js +1 -1
  1112. package/es/resources/nls/sl/bundle.js +1 -1
  1113. package/es/resources/nls/sr/bundle.js +1 -1
  1114. package/es/resources/nls/sr-Latn/bundle.js +1 -1
  1115. package/es/resources/nls/supportedLocales.js +1 -1
  1116. package/es/resources/nls/sv/bundle.js +1 -1
  1117. package/es/resources/nls/th/bundle.js +1 -1
  1118. package/es/resources/nls/tr/bundle.js +1 -1
  1119. package/es/resources/nls/uk/bundle.js +1 -1
  1120. package/es/resources/nls/vi/bundle.js +1 -1
  1121. package/es/resources/nls/zh-Hans/bundle.js +1 -1
  1122. package/es/resources/nls/zh-Hant/bundle.js +1 -1
  1123. package/es/translationBundle.js +1 -1
  1124. package/es/{tslib.es6-5dbdc1a2.js → tslib.es6-9b64a31a.js} +2 -2
  1125. package/es/{tslib.es6-5dbdc1a2.js.map → tslib.es6-9b64a31a.js.map} +1 -1
  1126. package/es/{useModal-77510702.js → useModal-733c53cc.js} +2 -2
  1127. package/es/{useModal-77510702.js.map → useModal-733c53cc.js.map} +1 -1
  1128. package/es/{useSingleSelection-66e46058.js → useSingleSelection-f2b8ada3.js} +2 -2
  1129. package/es/{useSingleSelection-66e46058.js.map → useSingleSelection-f2b8ada3.js.map} +1 -1
  1130. package/es/utils/PRIVATE_clientHints.js +1 -1
  1131. package/es/utils/PRIVATE_collectionUtils.js +1 -1
  1132. package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
  1133. package/es/utils/PRIVATE_floatingUtils.js +1 -1
  1134. package/es/utils/PRIVATE_meterUtils.js +1 -1
  1135. package/es/utils/PRIVATE_refUtils.js +1 -1
  1136. package/es/utils/PRIVATE_tabbableUtils.js +4 -4
  1137. package/es/utils/PRIVATE_timer.js +1 -1
  1138. package/es/utils/UNSAFE_arrayUtils.js +1 -1
  1139. package/es/utils/UNSAFE_attributeUtils.js +1 -1
  1140. package/es/utils/UNSAFE_classNames.js +1 -1
  1141. package/es/utils/UNSAFE_componentUtils.js +1 -1
  1142. package/es/utils/UNSAFE_dataProvider.js +1 -1
  1143. package/es/utils/UNSAFE_dvtCommonUtils.js +1 -1
  1144. package/es/utils/UNSAFE_filePickerUtils.js +1 -1
  1145. package/es/utils/UNSAFE_getLocale.js +1 -1
  1146. package/es/utils/UNSAFE_interpolations/aria.js +1 -1
  1147. package/es/utils/UNSAFE_interpolations/borders.js +1 -1
  1148. package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  1149. package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  1150. package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  1151. package/es/utils/UNSAFE_interpolations/colors.js +1 -1
  1152. package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
  1153. package/es/utils/UNSAFE_interpolations/flexbox.css +7 -7
  1154. package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
  1155. package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
  1156. package/es/utils/UNSAFE_interpolations/flexitem.css +7 -7
  1157. package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
  1158. package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
  1159. package/es/utils/UNSAFE_interpolations/grid.js +1 -1
  1160. package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
  1161. package/es/utils/UNSAFE_interpolations/padding.js +1 -1
  1162. package/es/utils/UNSAFE_interpolations/text.css +3 -3
  1163. package/es/utils/UNSAFE_interpolations/text.js +7 -7
  1164. package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
  1165. package/es/utils/UNSAFE_keys.js +1 -1
  1166. package/es/utils/UNSAFE_lengthFilter.js +1 -1
  1167. package/es/utils/UNSAFE_logger.js +3 -3
  1168. package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
  1169. package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
  1170. package/es/utils/UNSAFE_mergeProps.js +1 -1
  1171. package/es/utils/UNSAFE_meterTypes.js +1 -1
  1172. package/es/utils/UNSAFE_roles.js +1 -1
  1173. package/es/utils/UNSAFE_selectUtils.js +1 -1
  1174. package/es/utils/UNSAFE_size.js +1 -1
  1175. package/es/utils/UNSAFE_soundUtils.js +1 -1
  1176. package/es/utils/UNSAFE_stringUtils.js +1 -1
  1177. package/es/utils/UNSAFE_typeUtils.js +1 -1
  1178. package/es/utils/UNSAFE_units.js +1 -1
  1179. package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1180. package/package.json +1 -1
  1181. package/amd/Badge-8ff2cf94.js +0 -2
  1182. package/amd/BaseButton-ad209065.js +0 -2
  1183. package/amd/Button-91d1d81d.js +0 -2
  1184. package/amd/Chip-95103689.js +0 -2
  1185. package/amd/ClearIcon-c3d6d99c.js +0 -2
  1186. package/amd/ComponentMessage-fae17309.js +0 -2
  1187. package/amd/ComponentMessageContainer-76688ce8.js +0 -2
  1188. package/amd/Divider-f5cadc49.js +0 -2
  1189. package/amd/Flex-6371a66e.js +0 -2
  1190. package/amd/FocusTrap-fc22ca7f.js +0 -2
  1191. package/amd/FormControlUtils-89bbec0e.js +0 -2
  1192. package/amd/Heading-8a696583.js +0 -2
  1193. package/amd/HighlightText-de1bf4e2.js +0 -2
  1194. package/amd/Icon-74af3581.js +0 -2
  1195. package/amd/Indexer-8127ab0b.js +0 -2
  1196. package/amd/InlineHelpSource-875a4918.js +0 -2
  1197. package/amd/Link-5791e5d2.js +0 -2
  1198. package/amd/List-96b73e43.js +0 -2
  1199. package/amd/ListItemTextLayout-13f774d7.js +0 -2
  1200. package/amd/Menu-e2d86969.js +0 -2
  1201. package/amd/MenuDivider-4be95253.js +0 -2
  1202. package/amd/MenuItem-bfe0ea61.js +0 -2
  1203. package/amd/MessageCloseButton-9761b231.js +0 -2
  1204. package/amd/MessageDetail-231e34ef.js +0 -2
  1205. package/amd/MessageLayer-12ae4390.js +0 -2
  1206. package/amd/MessageStartIcon-8c35d9bf.js +0 -2
  1207. package/amd/MessageSummary-65ddf192.js +0 -2
  1208. package/amd/MessageTimestamp-28a44775.js +0 -2
  1209. package/amd/MessageToast-4091d475.js +0 -2
  1210. package/amd/MeterCircle-74c0eff3.js +0 -2
  1211. package/amd/Modal-f2d86779.js +0 -2
  1212. package/amd/ReadonlyTextFieldInput-11f5ee65.js +0 -2
  1213. package/amd/SelectMenuItem-4d6d9a13.js +0 -2
  1214. package/amd/SelectMultiple-190f6a20.js +0 -2
  1215. package/amd/Skeleton-68cdd7b6.js +0 -2
  1216. package/amd/SplitMenuButton-09096b77.js +0 -2
  1217. package/amd/Text-ab6d74dc.js +0 -2
  1218. package/amd/TextArea-dc934b4c.js +0 -2
  1219. package/amd/TextFieldInput-f500e158.js +0 -2
  1220. package/amd/_curry3-451f0a36.js +0 -2
  1221. package/amd/_has-a3b0d688.js +0 -2
  1222. package/amd/flexbox-1fede399.js +0 -2
  1223. package/amd/flexitem-88bf97c7.js +0 -2
  1224. package/amd/keys-c17276c4.js +0 -2
  1225. package/amd/useAnimation-ed7baee1.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"PRIVATE_Message.js","sources":["../../src/PRIVATE_Message/MessageCustomStartIcon.tsx","../../src/PRIVATE_Message/MessageHeader.tsx","../../src/PRIVATE_Message/Message.tsx"],"sourcesContent":["/**\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 { cssProps } from '@oracle/oraclejet-cssprops';\nimport { ComponentChildren } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { MessageRendererDataItem } from './Message.types';\n\nconst messageStartIconStyles = {\n base: cssProps`${{\n marginInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n alignSelf: 'flex-start',\n display: 'flex'\n }}`,\n toast: cssProps`${{\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-start-icon-size)',\n width: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-start-icon-size)'\n }}`\n};\n\n/**\n * Props for the StartIcon component\n */\ntype Props<K, D> = {\n /**\n * The data item for rendering the start icon\n */\n item: MessageRendererDataItem<K, D>;\n\n /**\n * A custom renderer for rendering the start icon\n */\n renderer: (item: MessageRendererDataItem<K, D>) => ComponentChildren;\n};\n\n/**\n * Component for rendering custom icon/content for start icon in Message\n */\nfunction MessageCustomStartIcon<K, D>({ item, renderer }: Props<K, D>) {\n const classes = classNames([\n messageStartIconStyles.base,\n // for now only toast has support for custom icon\n messageStartIconStyles.toast\n ]);\n return (\n <div class={classes} role=\"presentation\">\n {renderer(item)}\n </div>\n );\n}\n\nexport { MessageCustomStartIcon };\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 { cssProps } from '@oracle/oraclejet-cssprops';\nimport { ComponentChildren } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { MessageVariant } from './Message.types';\n\nconst messageHeaderStyles = {\n base: cssProps`${{\n boxSizing: 'border-box',\n\n // TODO: Replace with Flex and ResponsiveProps when creating oj-c-message-banner\n display: 'flex',\n flexWrap: 'wrap',\n flexDirection: 'row',\n '@media screen and (max-width: 599.9px)': {\n flexDirection: 'column'\n }\n }}`,\n banner: cssProps`${{\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-banner-summary-line-height)'\n }}`,\n inline: undefined,\n toast: cssProps`${{\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-start-icon-size)'\n }}`\n};\n\n/**\n * Props for the MessageHeader component\n */\ntype MessageHeaderProps = {\n variant?: MessageVariant;\n children?: ComponentChildren;\n};\n/**\n * A component that styles the header for the message component\n * @param param0 Props\n * @returns MessageHeader component instance\n */\nexport function MessageHeader({ children, variant = 'banner' }: MessageHeaderProps) {\n const rootClasses = classNames([messageHeaderStyles.base, messageHeaderStyles[variant]]);\n return (\n <div role=\"presentation\" class={rootClasses}>\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 */\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { ComponentChildren, Ref, VNode } from 'preact';\nimport { useCallback, useEffect, useRef } from 'preact/hooks';\nimport { Flex } from '../UNSAFE_Flex';\nimport { MessageToastItem } from '../UNSAFE_MessageToast';\nimport { Timer } from '../utils/PRIVATE_timer';\nimport { classNames as cx } from '../utils/UNSAFE_classNames';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { MessageRendererDataItem, MessageSeverity } from './Message.types';\nimport { MessageCloseButton } from './MessageCloseButton';\nimport { MessageCustomStartIcon } from './MessageCustomStartIcon';\nimport { MessageDetail } from './MessageDetail';\nimport { isValidValueForProp } from './MessageFormattingUtils';\nimport { MessageHeader } from './MessageHeader';\nimport { MessageStartIcon } from './MessageStartIcon';\nimport { MessageSummary } from './MessageSummary';\nimport { MessageTimestamp } from './MessageTimestamp';\nimport { playSound, severityBasedStyleClass } from './MessageUtils';\n\n// TODO: Refactor Message Item types\n// https://jira.oraclecorp.com/jira/browse/JET-54215\n\n/**\n * An object representing a single message in Message component.\n */\nexport type MessageItem = {\n /**\n * Defines whether or not to include the close icon for the message\n *\n * @default 'on'\n */\n closeAffordance?: 'on' | 'off';\n\n /**\n * Defines the detail text of the message\n */\n detail?: string;\n\n /**\n * Defines the severity of the message\n */\n severity?: MessageSeverity;\n\n /**\n * Defines the sound to be played when opening the message\n */\n sound?: 'default' | 'none' | string;\n\n /**\n * Defines the primary text of the message\n */\n summary?: string;\n\n /**\n * Defines the timestamp for the message in ISO format\n */\n timestamp?: string;\n};\n\n/**\n * Props for the Message Component\n */\ntype Props<Key, Data> = {\n /**\n * A ref object for holding reference to this component\n */\n messageRef?: Ref<HTMLDivElement>;\n\n /**\n * The index of the current message instance\n */\n index?: number;\n\n /**\n * The message item with all the necessary data in it\n */\n item: Item<Key, Data>;\n\n /**\n * A renderer that renders the close button in the message.\n */\n closeButtonRenderer?: (title: string, onAction: (event?: Event) => void) => VNode;\n\n /**\n * A custom renderer for rendering the detail content\n */\n detailRenderer?: (item: MessageRendererDataItem<Key, Data>) => ComponentChildren;\n\n /**\n * A custom renderer for rendering the start icon\n */\n iconRenderer?: (item: MessageRendererDataItem<Key, Data>) => ComponentChildren;\n\n /**\n * Triggered when a user tries to close a message through UI interaction. The parent\n * should listen to this event and remove the corresponding message item from the data\n * which would then result in the message to be removed from the DOM. If the parent\n * fails to remove the message item from the data, then no change will be done in the\n * UI by the component.\n */\n onClose?: (item: Item<Key, Data>) => void;\n\n /**\n * A message can be a Banner message or Toast message.\n *\n * Furthermore, a Banner message can have a different look and feel. For example, when using page-level\n * messaging the messages need to be rendered from edge to edge without any outline. On the other\n * hand, when they are being used in a section of a page or a dialog, they need to be rendered\n * with an outline. This attribute can be used to specify where the component is being used so that\n * it will render the messages accordingly.\n */\n variant?: 'pageBanner' | 'sectionBanner' | 'toast';\n\n /**\n * Translations resources\n */\n translations?: {\n /**\n * Label for the message close button\n */\n close?: string;\n\n /**\n * Text for 'error' severity level\n */\n error?: string;\n\n /**\n * Text for 'warning' severity level\n */\n warning?: string;\n\n /**\n * Text for 'info' severity level\n */\n info?: string;\n\n /**\n * Text for 'confirmation' severity level\n */\n confirmation?: string;\n };\n};\n\n/**\n * Determines the base variant of the message - banner or toast\n *\n * @param variant The message variant\n * @returns The base variant\n */\nfunction getBaseVariant(variant: 'pageBanner' | 'sectionBanner' | 'toast') {\n if (variant === 'pageBanner' || variant === 'sectionBanner') {\n return 'banner';\n }\n return 'toast';\n}\n\n/**\n * Determines if a severity icon is needed based on the component severity\n *\n * @param severity The component severity\n * @returns Whether or not to render the severity icon\n */\nfunction isSeverityIconNeeded(\n severity: MessageSeverity\n): severity is Exclude<MessageSeverity, 'none'> {\n const isValidSeverity = isValidValueForProp(severity, 'severity');\n return isValidSeverity && severity !== 'none';\n}\n\n/**\n * CSS styles for various components\n */\nconst messageStyles = {\n base: {\n banner: cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-banner-background-color)',\n borderBottom: '1px solid var(--oj-c-PRIVATE-DO-NOT-USE-core-divider-color)',\n\n '&:focus-visible': {\n outlineStyle: 'dotted',\n outlineWidth: '1px',\n outlineColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-focus-border-color)',\n outlineOffset: '1px'\n }\n }}`,\n toast: cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-background-color)',\n borderRadius: '6px',\n boxShadow: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-box-shadow-sm)',\n width: 'fit-content',\n\n '&:focus-visible': {\n outlineStyle: 'dotted',\n outlineWidth: '1px',\n outlineColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-focus-border-color)',\n outlineOffset: '1px'\n }\n }}`\n },\n section: cssProps`${{\n border: '1px solid var(--oj-c-PRIVATE-DO-NOT-USE-core-divider-color)',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-lg)'\n }}`,\n // TODO: Replace with Flex and View components to handle padding and flex\n content: {\n base: cssProps`${{\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexWrap: 'wrap',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)'\n }}`,\n banner: cssProps`${{\n paddingInlineStart:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-gutter-start, var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x))',\n paddingInlineEnd:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-gutter-end, var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x))'\n }}`,\n toast: cssProps`${{\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)',\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)'\n }}`\n }\n} as const;\n\n/**\n * Default timeout duration for autoTimeout in milliseconds\n */\nconst MIN_SECONDS = 5;\nconst DEFAULT_TIMEOUT = MIN_SECONDS * 1000;\n\n/**\n * Component that renders an individual message\n */\nfunction Message<K extends string | number = string | number, D extends MessageItem = MessageItem>({\n closeButtonRenderer,\n detailRenderer,\n iconRenderer,\n index = -1,\n item,\n onClose,\n messageRef = () => {},\n variant = 'pageBanner',\n translations\n}: Props<K, D>) {\n const { closeAffordance = 'on', severity = 'error', sound, summary, timestamp } = item.data;\n const { autoTimeout = 'off' } = item.data as MessageToastItem;\n const baseVariant = getBaseVariant(variant);\n\n /**\n * Handles clicking on the close icon of the message\n */\n const handleClose = useCallback(() => {\n onClose?.(item);\n }, [item, onClose]);\n\n /**\n * Handles closing the message on pressing Esc\n */\n const handleCloseOnEsc = useCallback(\n (event: KeyboardEvent) => {\n // Close the message only when closeAffordance is on\n if (event.key === 'Escape' && closeAffordance === 'on') {\n onClose?.(item);\n }\n },\n [closeAffordance, item, onClose]\n );\n\n /**\n * Set auto timeout for toast messages\n */\n const shouldTimeout = baseVariant === 'toast' && autoTimeout !== 'off';\n const currentTimerRef = useRef<Timer>();\n const timeout = typeof autoTimeout === 'number' ? autoTimeout : DEFAULT_TIMEOUT;\n const timeoutDuration = autoTimeout === 'on' ? DEFAULT_TIMEOUT : timeout;\n\n const startTimer = useCallback(() => {\n if (currentTimerRef.current) return;\n\n currentTimerRef.current = new Timer(handleClose, timeoutDuration);\n }, [handleClose, timeoutDuration]);\n\n const clearTimer = useCallback(() => {\n if (!currentTimerRef.current) return;\n\n currentTimerRef.current.clear();\n currentTimerRef.current = undefined;\n }, []);\n\n const pauseTimer = useCallback(() => {\n currentTimerRef.current?.pause();\n }, []);\n\n const resumeTimer = useCallback(() => {\n currentTimerRef.current?.resume();\n }, []);\n\n useEffect(() => {\n if (isValidValueForProp(sound)) {\n // It is sufficient to check for the value to be a\n // non-empty string. The playSound method takes care of the rest.\n playSound(sound);\n }\n\n // on mount, start timer for toast messages if needed\n if (shouldTimeout) {\n startTimer();\n }\n\n return () => {\n // clear out any pending timer\n clearTimer();\n };\n // eslint-disable-next-line\n }, []); // No deps to run this only on mount\n\n const rootClasses = cx([\n messageStyles.base[baseVariant],\n // for now, we do not have severity based styling on toast. So, we ignore this class for toasts\n variant !== 'toast' && severityBasedStyleClass(severity, baseVariant),\n variant === 'sectionBanner' && messageStyles.section\n ]);\n\n const contentClasses = cx([messageStyles.content.base, messageStyles.content[baseVariant]]);\n\n // We will be animating the root div, so add padding to an inner wrapper div so that\n // when animating height looks smooth. If padding were to be added to the root\n // div, the animation will not be smooth as height will never reach 0 due to the\n // padding.\n return (\n <div\n ref={messageRef}\n class={rootClasses}\n role=\"alert\"\n aria-atomic=\"true\"\n tabIndex={0}\n onKeyUp={handleCloseOnEsc}\n onfocusin={pauseTimer}\n onfocusout={resumeTimer}>\n <div class={contentClasses}>\n {iconRenderer ? (\n <MessageCustomStartIcon item={{ ...item, index }} renderer={iconRenderer} />\n ) : isSeverityIconNeeded(severity) ? (\n <MessageStartIcon severity={severity} variant={baseVariant} translations={translations} />\n ) : null}\n <Flex direction=\"column\" flex=\"1\" gap=\"--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x\">\n <MessageHeader variant={baseVariant}>\n <MessageSummary variant={baseVariant} text={summary} />\n {isValidValueForProp(timestamp, 'timestamp') && variant !== 'toast' && (\n <MessageTimestamp variant={baseVariant} value={timestamp!} />\n )}\n </MessageHeader>\n <MessageDetail\n variant={baseVariant}\n item={{ ...item, index }}\n renderer={detailRenderer}\n />\n </Flex>\n {closeAffordance === 'on' && (\n <MessageCloseButton\n buttonRenderer={closeButtonRenderer}\n title={translations?.close}\n variant={baseVariant}\n onAction={handleClose}\n />\n )}\n </div>\n </div>\n );\n}\n\nexport { Message };\n"],"names":["messageStartIconStyles","MessageCustomStartIcon","item","renderer","_jsx","Object","assign","class","classes","role","children","messageHeaderStyles","inline","undefined","MessageHeader","variant","rootClasses","classNames","base","isSeverityIconNeeded","severity","messageStyles","content","closeButtonRenderer","detailRenderer","iconRenderer","index","onClose","messageRef","translations","closeAffordance","sound","summary","timestamp","data","baseVariant","getBaseVariant","handleClose","useCallback","handleCloseOnEsc","event","currentTimerRef","useRef","timeoutDuration","autoTimeout","MIN_SECONDS","startTimer","clearTimer","current","clear","pauseTimer","_a","pause","resumeTimer","resume","isValidValueForProp","shouldTimeout","section","contentClasses","cx"],"mappings":"ugEAaA,MAAAA,GAAA,UAAAA,cA8BA,SAAAC,IAAAC,KAAAA,EAAAC,SAAAA,0BAEIH,GAEAA,KAEF,OAAAI,MAAA,MAAAC,OAAAC,OAAA,CAAAC,MAAAC,EAAAC,KAAA,gBAAA,CAAAC,SAAAP,EAAAD,MCpCF,MAAAS,GAAA,MAAA,iBAAA,WAeEC,YAAAC,oBAkBF,SAAAC,IAAAJ,SAAAA,EAAAK,QAAAA,EAAA,WACE,MAAAC,EAAAC,EAAAA,WAAA,CAAAN,GAAAO,KAAAP,GAAAI,KACA,OAAAX,MAAA,MAAAC,OAAAC,OAAA,CAAAG,KAAA,eAAAF,MAAAS,GAAA,CAAAN,SAAAA,KC0HF,SAAAS,GAAAC,GAIE,4CAAA,SAAAA,EAMF,MAAAC,GAAA,CACEH,KAAA,QAAA,oCADF,UAgCEI,QAAA,MAAA,iBAAA,glBA+BF,UAAAC,oBAAAA,EAAAC,eAAAA,EAAAC,aAAAA,EAAAC,MAAAA,GAAA,EAAAxB,KAAAA,EAAAyB,QAAAA,EAAAC,WAAAA,EAAA,SAAAb,QAAAA,EAAA,aAAAc,aAAAA,IAWE,MAAAC,gBAAAA,EAAA,KAAAV,SAAAA,EAAA,QAAAW,MAAAA,EAAAC,QAAAA,EAAAC,UAAAA,GAAA/B,EAAAgC,kCAEAC,EAnGF,SAAApB,GACE,MAAA,eAAAA,GAAA,kBAAAA,EACE,SAEF,QA+FAqB,CAAArB,GAKAsB,EAAAC,EAAAA,YAAA,KACEX,MAAAA,GAAAA,EAAAzB,IACF,CAAAA,EAAAyB,IAKAY,EAAAD,EAAAA,YAAAE,iCAIMb,MAAAA,GAAAA,EAAAzB,uCAUNuC,EAAAC,EAAAA,SAEAC,EAAA,OAAAC,EA9CFC,IA6CE,iBAAAD,EAAAA,EA7CFC,IAgDEC,EAAAR,EAAAA,YAAA,8CAIA,CAAAD,EAAAM,IAEAI,EAAAT,EAAAA,YAAA,iBAGEG,EAAAO,QAAAC,QACAR,EAAAO,aAAAnC,QAGFqC,EAAAZ,EAAAA,YAAA,WACE,QAAAa,EAAAV,EAAAO,eAAA,IAAAG,GAAAA,EAAAC,aAGFC,EAAAf,EAAAA,YAAA,WACE,QAAAa,EAAAV,EAAAO,eAAA,IAAAG,GAAAA,EAAAG,+BAIAC,EAAAA,oBAAAxB,mBAOAyB,GACEV,IAGF,KAEEC,MAGJ,0BAGE1B,GAAAH,KAAAiB,+CAGA,kBAAApB,GAAAM,GAAAoC,UAGFC,EAAAC,EAAAA,WAAA,CAAAtC,GAAAC,QAAAJ,KAAAG,GAAAC,QAAAa"}
1
+ {"version":3,"file":"PRIVATE_Message.js","sources":["../../src/PRIVATE_Message/MessageCustomStartIcon.tsx","../../src/PRIVATE_Message/MessageHeader.tsx","../../src/PRIVATE_Message/Message.tsx"],"sourcesContent":["/**\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 { cssProps } from '@oracle/oraclejet-cssprops';\nimport { ComponentChildren } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { MessageRendererDataItem } from './Message.types';\n\nconst messageStartIconStyles = {\n base: cssProps`${{\n marginInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n alignSelf: 'flex-start',\n display: 'flex'\n }}`,\n toast: cssProps`${{\n height: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-start-icon-size)',\n width: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-start-icon-size)'\n }}`\n};\n\n/**\n * Props for the StartIcon component\n */\ntype Props<K, D> = {\n /**\n * The data item for rendering the start icon\n */\n item: MessageRendererDataItem<K, D>;\n\n /**\n * A custom renderer for rendering the start icon\n */\n renderer: (item: MessageRendererDataItem<K, D>) => ComponentChildren;\n};\n\n/**\n * Component for rendering custom icon/content for start icon in Message\n */\nfunction MessageCustomStartIcon<K, D>({ item, renderer }: Props<K, D>) {\n const classes = classNames([\n messageStartIconStyles.base,\n // for now only toast has support for custom icon\n messageStartIconStyles.toast\n ]);\n return (\n <div class={classes} role=\"presentation\">\n {renderer(item)}\n </div>\n );\n}\n\nexport { MessageCustomStartIcon };\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 { cssProps } from '@oracle/oraclejet-cssprops';\nimport { ComponentChildren } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { MessageVariant } from './Message.types';\n\nconst messageHeaderStyles = {\n base: cssProps`${{\n boxSizing: 'border-box',\n\n // TODO: Replace with Flex and ResponsiveProps when creating oj-c-message-banner\n display: 'flex',\n flexWrap: 'wrap',\n flexDirection: 'row',\n '@media screen and (max-width: 599.9px)': {\n flexDirection: 'column'\n }\n }}`,\n banner: cssProps`${{\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-banner-summary-line-height)'\n }}`,\n inline: undefined,\n toast: cssProps`${{\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-start-icon-size)'\n }}`\n};\n\n/**\n * Props for the MessageHeader component\n */\ntype MessageHeaderProps = {\n variant?: MessageVariant;\n children?: ComponentChildren;\n};\n/**\n * A component that styles the header for the message component\n * @param param0 Props\n * @returns MessageHeader component instance\n */\nexport function MessageHeader({ children, variant = 'banner' }: MessageHeaderProps) {\n const rootClasses = classNames([messageHeaderStyles.base, messageHeaderStyles[variant]]);\n return (\n <div role=\"presentation\" class={rootClasses}>\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 */\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { ComponentChildren, Ref, VNode } from 'preact';\nimport { useCallback, useEffect, useRef } from 'preact/hooks';\nimport { Flex } from '../UNSAFE_Flex';\nimport { MessageToastItem } from '../UNSAFE_MessageToast';\nimport { Timer } from '../utils/PRIVATE_timer';\nimport { classNames as cx } from '../utils/UNSAFE_classNames';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { MessageRendererDataItem, MessageSeverity } from './Message.types';\nimport { MessageCloseButton } from './MessageCloseButton';\nimport { MessageCustomStartIcon } from './MessageCustomStartIcon';\nimport { MessageDetail } from './MessageDetail';\nimport { isValidValueForProp } from './MessageFormattingUtils';\nimport { MessageHeader } from './MessageHeader';\nimport { MessageStartIcon } from './MessageStartIcon';\nimport { MessageSummary } from './MessageSummary';\nimport { MessageTimestamp } from './MessageTimestamp';\nimport { playSound, severityBasedStyleClass } from './MessageUtils';\n\n// TODO: Refactor Message Item types\n// https://jira.oraclecorp.com/jira/browse/JET-54215\n\n/**\n * An object representing a single message in Message component.\n */\nexport type MessageItem = {\n /**\n * Defines whether or not to include the close icon for the message\n *\n * @default 'on'\n */\n closeAffordance?: 'on' | 'off';\n\n /**\n * Defines the detail text of the message\n */\n detail?: string;\n\n /**\n * Defines the severity of the message\n */\n severity?: MessageSeverity;\n\n /**\n * Defines the sound to be played when opening the message\n */\n sound?: 'default' | 'none' | string;\n\n /**\n * Defines the primary text of the message\n */\n summary?: string;\n\n /**\n * Defines the timestamp for the message in ISO format\n */\n timestamp?: string;\n};\n\n/**\n * Props for the Message Component\n */\ntype Props<Key, Data> = {\n /**\n * A ref object for holding reference to this component\n */\n messageRef?: Ref<HTMLDivElement>;\n\n /**\n * The index of the current message instance\n */\n index?: number;\n\n /**\n * The message item with all the necessary data in it\n */\n item: Item<Key, Data>;\n\n /**\n * A renderer that renders the close button in the message.\n */\n closeButtonRenderer?: (title: string, onAction: (event?: Event) => void) => VNode;\n\n /**\n * A custom renderer for rendering the detail content\n */\n detailRenderer?: (item: MessageRendererDataItem<Key, Data>) => ComponentChildren;\n\n /**\n * A custom renderer for rendering the start icon\n */\n iconRenderer?: (item: MessageRendererDataItem<Key, Data>) => ComponentChildren;\n\n /**\n * Triggered when a user tries to close a message through UI interaction. The parent\n * should listen to this event and remove the corresponding message item from the data\n * which would then result in the message to be removed from the DOM. If the parent\n * fails to remove the message item from the data, then no change will be done in the\n * UI by the component.\n */\n onClose?: (item: Item<Key, Data>) => void;\n\n /**\n * A message can be a Banner message or Toast message.\n *\n * Furthermore, a Banner message can have a different look and feel. For example, when using page-level\n * messaging the messages need to be rendered from edge to edge without any outline. On the other\n * hand, when they are being used in a section of a page or a dialog, they need to be rendered\n * with an outline. This attribute can be used to specify where the component is being used so that\n * it will render the messages accordingly.\n */\n variant?: 'pageBanner' | 'sectionBanner' | 'toast';\n\n /**\n * Translations resources\n */\n translations?: {\n /**\n * Label for the message close button\n */\n close?: string;\n\n /**\n * Text for 'error' severity level\n */\n error?: string;\n\n /**\n * Text for 'warning' severity level\n */\n warning?: string;\n\n /**\n * Text for 'info' severity level\n */\n info?: string;\n\n /**\n * Text for 'confirmation' severity level\n */\n confirmation?: string;\n };\n};\n\n/**\n * Determines the base variant of the message - banner or toast\n *\n * @param variant The message variant\n * @returns The base variant\n */\nfunction getBaseVariant(variant: 'pageBanner' | 'sectionBanner' | 'toast') {\n if (variant === 'pageBanner' || variant === 'sectionBanner') {\n return 'banner';\n }\n return 'toast';\n}\n\n/**\n * Determines if a severity icon is needed based on the component severity\n *\n * @param severity The component severity\n * @returns Whether or not to render the severity icon\n */\nfunction isSeverityIconNeeded(\n severity: MessageSeverity\n): severity is Exclude<MessageSeverity, 'none'> {\n const isValidSeverity = isValidValueForProp(severity, 'severity');\n return isValidSeverity && severity !== 'none';\n}\n\n/**\n * CSS styles for various components\n */\nconst messageStyles = {\n base: {\n banner: cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-banner-background-color)',\n borderBottom: '1px solid var(--oj-c-PRIVATE-DO-NOT-USE-core-divider-color)',\n\n '&:focus-visible': {\n outlineStyle: 'dotted',\n outlineWidth: '1px',\n outlineColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-focus-border-color)',\n outlineOffset: '1px'\n }\n }}`,\n toast: cssProps`${{\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-message-toast-background-color)',\n borderRadius: '6px',\n boxShadow: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-box-shadow-sm)',\n width: 'fit-content',\n\n '&:focus-visible': {\n outlineStyle: 'dotted',\n outlineWidth: '1px',\n outlineColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-focus-border-color)',\n outlineOffset: '1px'\n }\n }}`\n },\n section: cssProps`${{\n border: '1px solid var(--oj-c-PRIVATE-DO-NOT-USE-core-divider-color)',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-lg)'\n }}`,\n // TODO: Replace with Flex and View components to handle padding and flex\n content: {\n base: cssProps`${{\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexWrap: 'wrap',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)'\n }}`,\n banner: cssProps`${{\n paddingInlineStart:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-gutter-start, var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x))',\n paddingInlineEnd:\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-gutter-end, var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x))'\n }}`,\n toast: cssProps`${{\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)',\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x)'\n }}`\n }\n} as const;\n\n/**\n * Default timeout duration for autoTimeout in milliseconds\n */\nconst MIN_SECONDS = 5;\nconst DEFAULT_TIMEOUT = MIN_SECONDS * 1000;\n\n/**\n * Component that renders an individual message\n */\nfunction Message<K extends string | number = string | number, D extends MessageItem = MessageItem>({\n closeButtonRenderer,\n detailRenderer,\n iconRenderer,\n index = -1,\n item,\n onClose,\n messageRef = () => {},\n variant = 'pageBanner',\n translations\n}: Props<K, D>) {\n const { closeAffordance = 'on', severity = 'error', sound, summary, timestamp } = item.data;\n const { autoTimeout = 'off' } = item.data as MessageToastItem;\n const baseVariant = getBaseVariant(variant);\n\n /**\n * Handles clicking on the close icon of the message\n */\n const handleClose = useCallback(() => {\n onClose?.(item);\n }, [item, onClose]);\n\n /**\n * Handles closing the message on pressing Esc\n */\n const handleCloseOnEsc = useCallback(\n (event: KeyboardEvent) => {\n // Close the message only when closeAffordance is on\n if (event.key === 'Escape' && closeAffordance === 'on') {\n onClose?.(item);\n }\n },\n [closeAffordance, item, onClose]\n );\n\n /**\n * Set auto timeout for toast messages\n */\n const shouldTimeout = baseVariant === 'toast' && autoTimeout !== 'off';\n const currentTimerRef = useRef<Timer>();\n const timeout = typeof autoTimeout === 'number' ? autoTimeout : DEFAULT_TIMEOUT;\n const timeoutDuration = autoTimeout === 'on' ? DEFAULT_TIMEOUT : timeout;\n\n const startTimer = useCallback(() => {\n if (currentTimerRef.current) return;\n\n currentTimerRef.current = new Timer(handleClose, timeoutDuration);\n }, [handleClose, timeoutDuration]);\n\n const clearTimer = useCallback(() => {\n if (!currentTimerRef.current) return;\n\n currentTimerRef.current.clear();\n currentTimerRef.current = undefined;\n }, []);\n\n const pauseTimer = useCallback(() => {\n currentTimerRef.current?.pause();\n }, []);\n\n const resumeTimer = useCallback(() => {\n currentTimerRef.current?.resume();\n }, []);\n\n useEffect(() => {\n if (isValidValueForProp(sound)) {\n // It is sufficient to check for the value to be a\n // non-empty string. The playSound method takes care of the rest.\n playSound(sound);\n }\n\n // on mount, start timer for toast messages if needed\n if (shouldTimeout) {\n startTimer();\n }\n\n return () => {\n // clear out any pending timer\n clearTimer();\n };\n // eslint-disable-next-line\n }, []); // No deps to run this only on mount\n\n const rootClasses = cx([\n messageStyles.base[baseVariant],\n // for now, we do not have severity based styling on toast. So, we ignore this class for toasts\n variant !== 'toast' && severityBasedStyleClass(severity, baseVariant),\n variant === 'sectionBanner' && messageStyles.section\n ]);\n\n const contentClasses = cx([messageStyles.content.base, messageStyles.content[baseVariant]]);\n\n // We will be animating the root div, so add padding to an inner wrapper div so that\n // when animating height looks smooth. If padding were to be added to the root\n // div, the animation will not be smooth as height will never reach 0 due to the\n // padding.\n return (\n <div\n ref={messageRef}\n class={rootClasses}\n role=\"alert\"\n aria-atomic=\"true\"\n tabIndex={0}\n onKeyUp={handleCloseOnEsc}\n onfocusin={pauseTimer}\n onfocusout={resumeTimer}>\n <div class={contentClasses}>\n {iconRenderer ? (\n <MessageCustomStartIcon item={{ ...item, index }} renderer={iconRenderer} />\n ) : isSeverityIconNeeded(severity) ? (\n <MessageStartIcon severity={severity} variant={baseVariant} translations={translations} />\n ) : null}\n <Flex direction=\"column\" flex=\"1\" gap=\"--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x\">\n <MessageHeader variant={baseVariant}>\n <MessageSummary variant={baseVariant} text={summary} />\n {isValidValueForProp(timestamp, 'timestamp') && variant !== 'toast' && (\n <MessageTimestamp variant={baseVariant} value={timestamp!} />\n )}\n </MessageHeader>\n <MessageDetail\n variant={baseVariant}\n item={{ ...item, index }}\n renderer={detailRenderer}\n />\n </Flex>\n {closeAffordance === 'on' && (\n <MessageCloseButton\n buttonRenderer={closeButtonRenderer}\n title={translations?.close}\n variant={baseVariant}\n onAction={handleClose}\n />\n )}\n </div>\n </div>\n );\n}\n\nexport { Message };\n"],"names":["messageStartIconStyles","MessageCustomStartIcon","item","renderer","_jsx","Object","assign","class","classes","role","children","messageHeaderStyles","inline","undefined","MessageHeader","variant","rootClasses","classNames","base","isSeverityIconNeeded","severity","messageStyles","content","closeButtonRenderer","detailRenderer","iconRenderer","index","onClose","messageRef","translations","closeAffordance","sound","summary","timestamp","data","baseVariant","getBaseVariant","handleClose","useCallback","handleCloseOnEsc","event","currentTimerRef","useRef","timeoutDuration","autoTimeout","MIN_SECONDS","startTimer","clearTimer","current","clear","pauseTimer","_a","pause","resumeTimer","resume","isValidValueForProp","shouldTimeout","section","contentClasses","cx"],"mappings":"ugEAaA,MAAAA,GAAA,UAAAA,cA8BA,SAAAC,IAAAC,KAAAA,EAAAC,SAAAA,0BAEIH,GAEAA,KAEF,OAAAI,MAAA,MAAAC,OAAAC,OAAA,CAAAC,MAAAC,EAAAC,KAAA,gBAAA,CAAAC,SAAAP,EAAAD,MCpCF,MAAAS,GAAA,MAAA,kBAAA,WAeEC,YAAAC,kBAkBF,SAAAC,IAAAJ,SAAAA,EAAAK,QAAAA,EAAA,WACE,MAAAC,EAAAC,EAAAA,WAAA,CAAAN,GAAAO,KAAAP,GAAAI,KACA,OAAAX,MAAA,MAAAC,OAAAC,OAAA,CAAAG,KAAA,eAAAF,MAAAS,GAAA,CAAAN,SAAAA,KC0HF,SAAAS,GAAAC,GAIE,4CAAA,SAAAA,EAMF,MAAAC,GAAA,CACEH,KAAA,QAAA,mCADF,SAgCEI,QAAA,MAAA,kBAAA,glBA+BF,UAAAC,oBAAAA,EAAAC,eAAAA,EAAAC,aAAAA,EAAAC,MAAAA,GAAA,EAAAxB,KAAAA,EAAAyB,QAAAA,EAAAC,WAAAA,EAAA,SAAAb,QAAAA,EAAA,aAAAc,aAAAA,IAWE,MAAAC,gBAAAA,EAAA,KAAAV,SAAAA,EAAA,QAAAW,MAAAA,EAAAC,QAAAA,EAAAC,UAAAA,GAAA/B,EAAAgC,kCAEAC,EAnGF,SAAApB,GACE,MAAA,eAAAA,GAAA,kBAAAA,EACE,SAEF,QA+FAqB,CAAArB,GAKAsB,EAAAC,EAAAA,YAAA,KACEX,MAAAA,GAAAA,EAAAzB,IACF,CAAAA,EAAAyB,IAKAY,EAAAD,EAAAA,YAAAE,iCAIMb,MAAAA,GAAAA,EAAAzB,uCAUNuC,EAAAC,EAAAA,SAEAC,EAAA,OAAAC,EA9CFC,IA6CE,iBAAAD,EAAAA,EA7CFC,IAgDEC,EAAAR,EAAAA,YAAA,8CAIA,CAAAD,EAAAM,IAEAI,EAAAT,EAAAA,YAAA,iBAGEG,EAAAO,QAAAC,QACAR,EAAAO,aAAAnC,QAGFqC,EAAAZ,EAAAA,YAAA,WACE,QAAAa,EAAAV,EAAAO,eAAA,IAAAG,GAAAA,EAAAC,aAGFC,EAAAf,EAAAA,YAAA,WACE,QAAAa,EAAAV,EAAAO,eAAA,IAAAG,GAAAA,EAAAG,+BAIAC,EAAAA,oBAAAxB,mBAOAyB,GACEV,IAGF,KAEEC,MAGJ,0BAGE1B,GAAAH,KAAAiB,+CAGA,kBAAApB,GAAAM,GAAAoC,UAGFC,EAAAC,EAAAA,WAAA,CAAAtC,GAAAC,QAAAJ,KAAAG,GAAAC,QAAAa"}
@@ -1,2 +1,2 @@
1
- define(["require","preact/jsx-runtime","@testing-library/preact","chai","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_Environment","../../MessageLayer-12ae4390","preact","preact/hooks","../../UNSAFE_Layer","preact/compat","css!./../../PRIVATE_MessageLayer.css","../../hooks/UNSAFE_useUser","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_classNames","../../classNames-e23e522a","../../UNSAFE_Flex","../../Flex-6371a66e","../../tslib.es6-7e0f14ee","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_size","../../_curry1-b656408f","../../utils/UNSAFE_mergeInterpolations","../../_curry3-451f0a36","../../_curry2-a9053ee8","../../_has-a3b0d688","../../utils/UNSAFE_interpolations/boxalignment","../../keys-c17276c4","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-1fede399","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-88bf97c7","../../UNSAFE_WindowOverlay"],function(e,s,n,r,t,u,o,l,c,i,a,d,b,f,m,P,w,p,x,g,y,h,j,v,E,A,S,U,N,_,T,F,k){"use strict";const O="Test Message",B="MessageID",I=()=>s.jsx("div",{children:O}),L="--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset",M="--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset";describe("MessageLayer component",()=>{let l;before(async()=>{const s=t.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:n}=await function(s){switch(s){case"../../resources/nls/ar/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar/bundle"],s,n)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar-XB/bundle"],s,n)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bg/bundle"],s,n)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs/bundle"],s,n)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs-Cyrl/bundle"],s,n)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/cs/bundle"],s,n)});case"../../resources/nls/da/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/da/bundle"],s,n)});case"../../resources/nls/de/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/de/bundle"],s,n)});case"../../resources/nls/el/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/el/bundle"],s,n)});case"../../resources/nls/en/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en/bundle"],s,n)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XA/bundle"],s,n)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XC/bundle"],s,n)});case"../../resources/nls/es/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/es/bundle"],s,n)});case"../../resources/nls/et/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/et/bundle"],s,n)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fi/bundle"],s,n)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr/bundle"],s,n)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr-CA/bundle"],s,n)});case"../../resources/nls/he/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/he/bundle"],s,n)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hr/bundle"],s,n)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hu/bundle"],s,n)});case"../../resources/nls/is/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/is/bundle"],s,n)});case"../../resources/nls/it/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/it/bundle"],s,n)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ja/bundle"],s,n)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ko/bundle"],s,n)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lt/bundle"],s,n)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lv/bundle"],s,n)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ms/bundle"],s,n)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/nl/bundle"],s,n)});case"../../resources/nls/no/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/no/bundle"],s,n)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pl/bundle"],s,n)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt/bundle"],s,n)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt-PT/bundle"],s,n)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ro/bundle"],s,n)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ru/bundle"],s,n)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sk/bundle"],s,n)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sl/bundle"],s,n)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr/bundle"],s,n)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr-Latn/bundle"],s,n)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sv/bundle"],s,n)});case"../../resources/nls/th/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/th/bundle"],s,n)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/tr/bundle"],s,n)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/uk/bundle"],s,n)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/vi/bundle"],s,n)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hans/bundle"],s,n)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hant/bundle"],s,n)});default:return new Promise(function(e,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+s)))})}}(`../../resources/nls/${s}/bundle.ts`);l=l||{translations:{"@oracle/oraclejet-preact":n}}}),afterEach(n.cleanup),it("it renders",()=>{const{getByText:e}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,{children:s.jsx(I,{})})})));r.expect(e(O)).to.exist}),o.positions.map(e=>{it("it renders all positions: "+e,async()=>{const{getByText:t,getByTestId:c}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,Object.assign({position:e,testId:B},{children:s.jsx(I,{})}))}))),i=c(B);r.expect(t(O)).to.exist,r.expect(i.classList.length).to.equal(2)})}),it("it renders offset from number value",async()=>{const{getByTestId:e,getByText:t}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,Object.assign({offset:5,testId:B},{children:s.jsx(I,{})}))}))),c=e(B),i=getComputedStyle(c);r.expect(t(O)).to.exist,r.expect(i.getPropertyValue(L)).to.equal("5px"),r.expect(i.getPropertyValue(M)).to.equal("5px")}),it("it renders offset from object",()=>{const{getByTestId:e,getByText:t}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,Object.assign({offset:{horizontal:5,vertical:5},testId:B},{children:s.jsx(I,{})}))}))),c=e(B),i=getComputedStyle(c);r.expect(t(O)).to.exist,r.expect(i.getPropertyValue(L)).to.equal("5px"),r.expect(i.getPropertyValue(M)).to.equal("5px")})})});
1
+ define(["require","preact/jsx-runtime","@testing-library/preact","chai","../../utils/UNSAFE_matchTranslationBundle","../../UNSAFE_Environment","../../MessageLayer-0bf829da","preact","preact/hooks","../../UNSAFE_Layer","preact/compat","css!./../../PRIVATE_MessageLayer.css","../../hooks/UNSAFE_useUser","../../utils/UNSAFE_arrayUtils","../../utils/UNSAFE_classNames","../../classNames-f11010a7","../../UNSAFE_Flex","../../Flex-e3a46a36","../../tslib.es6-24bf3861","../../utils/UNSAFE_interpolations/dimensions","../../utils/UNSAFE_size","../../_curry1-f9717f1c","../../utils/UNSAFE_mergeInterpolations","../../_curry3-01167a7d","../../_curry2-c4648b65","../../_has-6f4fa2af","../../utils/UNSAFE_interpolations/boxalignment","../../keys-6231193b","../../utils/UNSAFE_interpolations/flexbox","../../flexbox-b6c222f9","../../utils/UNSAFE_interpolations/flexitem","../../flexitem-1405ebe5","../../UNSAFE_WindowOverlay"],function(e,s,n,r,t,u,o,l,c,i,a,d,b,f,m,P,w,p,x,g,y,h,j,v,E,A,S,U,N,_,T,F,k){"use strict";const O="Test Message",B="MessageID",I=()=>s.jsx("div",{children:O}),L="--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset",M="--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset";describe("MessageLayer component",()=>{let l;before(async()=>{const s=t.matchTranslationBundle(["en"],new Set(["en-US","en"])),{default:n}=await function(s){switch(s){case"../../resources/nls/ar/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar/bundle"],s,n)});case"../../resources/nls/ar-XB/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ar-XB/bundle"],s,n)});case"../../resources/nls/bg/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bg/bundle"],s,n)});case"../../resources/nls/bs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs/bundle"],s,n)});case"../../resources/nls/bs-Cyrl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/bs-Cyrl/bundle"],s,n)});case"../../resources/nls/cs/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/cs/bundle"],s,n)});case"../../resources/nls/da/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/da/bundle"],s,n)});case"../../resources/nls/de/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/de/bundle"],s,n)});case"../../resources/nls/el/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/el/bundle"],s,n)});case"../../resources/nls/en/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en/bundle"],s,n)});case"../../resources/nls/en-XA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XA/bundle"],s,n)});case"../../resources/nls/en-XC/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/en-XC/bundle"],s,n)});case"../../resources/nls/es/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/es/bundle"],s,n)});case"../../resources/nls/et/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/et/bundle"],s,n)});case"../../resources/nls/fi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fi/bundle"],s,n)});case"../../resources/nls/fr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr/bundle"],s,n)});case"../../resources/nls/fr-CA/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/fr-CA/bundle"],s,n)});case"../../resources/nls/he/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/he/bundle"],s,n)});case"../../resources/nls/hr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hr/bundle"],s,n)});case"../../resources/nls/hu/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/hu/bundle"],s,n)});case"../../resources/nls/is/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/is/bundle"],s,n)});case"../../resources/nls/it/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/it/bundle"],s,n)});case"../../resources/nls/ja/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ja/bundle"],s,n)});case"../../resources/nls/ko/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ko/bundle"],s,n)});case"../../resources/nls/lt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lt/bundle"],s,n)});case"../../resources/nls/lv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/lv/bundle"],s,n)});case"../../resources/nls/ms/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ms/bundle"],s,n)});case"../../resources/nls/nl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/nl/bundle"],s,n)});case"../../resources/nls/no/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/no/bundle"],s,n)});case"../../resources/nls/pl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pl/bundle"],s,n)});case"../../resources/nls/pt/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt/bundle"],s,n)});case"../../resources/nls/pt-PT/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/pt-PT/bundle"],s,n)});case"../../resources/nls/ro/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ro/bundle"],s,n)});case"../../resources/nls/ru/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/ru/bundle"],s,n)});case"../../resources/nls/sk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sk/bundle"],s,n)});case"../../resources/nls/sl/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sl/bundle"],s,n)});case"../../resources/nls/sr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr/bundle"],s,n)});case"../../resources/nls/sr-Latn/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sr-Latn/bundle"],s,n)});case"../../resources/nls/sv/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/sv/bundle"],s,n)});case"../../resources/nls/th/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/th/bundle"],s,n)});case"../../resources/nls/tr/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/tr/bundle"],s,n)});case"../../resources/nls/uk/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/uk/bundle"],s,n)});case"../../resources/nls/vi/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/vi/bundle"],s,n)});case"../../resources/nls/zh-Hans/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hans/bundle"],s,n)});case"../../resources/nls/zh-Hant/bundle.ts":return new Promise(function(s,n){e(["../../resources/nls/zh-Hant/bundle"],s,n)});default:return new Promise(function(e,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+s)))})}}(`../../resources/nls/${s}/bundle.ts`);l=l||{translations:{"@oracle/oraclejet-preact":n}}}),afterEach(n.cleanup),it("it renders",()=>{const{getByText:e}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,{children:s.jsx(I,{})})})));r.expect(e(O)).to.exist}),o.positions.map(e=>{it("it renders all positions: "+e,async()=>{const{getByText:t,getByTestId:c}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,Object.assign({position:e,testId:B},{children:s.jsx(I,{})}))}))),i=c(B);r.expect(t(O)).to.exist,r.expect(i.classList.length).to.equal(2)})}),it("it renders offset from number value",async()=>{const{getByTestId:e,getByText:t}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,Object.assign({offset:5,testId:B},{children:s.jsx(I,{})}))}))),c=e(B),i=getComputedStyle(c);r.expect(t(O)).to.exist,r.expect(i.getPropertyValue(L)).to.equal("5px"),r.expect(i.getPropertyValue(M)).to.equal("5px")}),it("it renders offset from object",()=>{const{getByTestId:e,getByText:t}=n.render(s.jsx(u.RootEnvironmentProvider,Object.assign({environment:l},{children:s.jsx(o.MessageLayer,Object.assign({offset:{horizontal:5,vertical:5},testId:B},{children:s.jsx(I,{})}))}))),c=e(B),i=getComputedStyle(c);r.expect(t(O)).to.exist,r.expect(i.getPropertyValue(L)).to.equal("5px"),r.expect(i.getPropertyValue(M)).to.equal("5px")})})});
2
2
  //# sourceMappingURL=MessageLayer.spec.js.map
@@ -1,7 +1,7 @@
1
- .cdc68f{position:absolute;pointer-events:initial;width:max-content;}
2
- .m7my4l{left:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);top:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
3
- .a7yteg{left:calc(50% + var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset));top:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);transform:translateX(-50%);}
4
- ._1lfgx5z{right:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);top:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
5
- ._1k468lj{left:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);bottom:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
6
- ._1i967gu{left:calc(50% + var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset));bottom:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);transform:translateX(-50%);}
7
- .xat008{right:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);bottom:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
1
+ .o0ak48{position:absolute;pointer-events:initial;width:max-content;}
2
+ ._1dog2tj{left:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);top:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
3
+ ._12sbqj7{left:calc(50% + var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset));top:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);transform:translateX(-50%);}
4
+ .fom6ld{right:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);top:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
5
+ .nchk5{left:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);bottom:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
6
+ ._5yfndt{left:calc(50% + var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset));bottom:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);transform:translateX(-50%);}
7
+ .qjudwy{right:var(--oj-c-PRIVATE-DO-NOT-USE-notification-horizontal-offset);bottom:var(--oj-c-PRIVATE-DO-NOT-USE-notification-vertical-offset);}
@@ -1,2 +1,2 @@
1
- define(["exports","./MessageLayer-12ae4390","preact/jsx-runtime","css!./PRIVATE_MessageLayer.css","./hooks/UNSAFE_useUser","preact/hooks","./UNSAFE_Environment","preact","./UNSAFE_Layer","preact/compat","./utils/UNSAFE_arrayUtils","./utils/UNSAFE_classNames","./classNames-e23e522a","./UNSAFE_Flex","./Flex-6371a66e","./tslib.es6-7e0f14ee","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./_curry1-b656408f","./utils/UNSAFE_mergeInterpolations","./_curry3-451f0a36","./_curry2-a9053ee8","./_has-a3b0d688","./utils/UNSAFE_interpolations/boxalignment","./keys-c17276c4","./utils/UNSAFE_interpolations/flexbox","./flexbox-1fede399","./utils/UNSAFE_interpolations/flexitem","./flexitem-88bf97c7","./UNSAFE_WindowOverlay"],function(e,s,i,t,a,r,o,l,n,_,u,c,F,N,U,p,E,A,S,f,x,y,m,b,d,g,L,M,h,k){"use strict";e.MessageLayer=s.MessageLayer,e.positions=s.positions,Object.defineProperty(e,"__esModule",{value:!0})});
1
+ define(["exports","./MessageLayer-0bf829da","preact/jsx-runtime","css!./PRIVATE_MessageLayer.css","./hooks/UNSAFE_useUser","preact/hooks","./UNSAFE_Environment","preact","./UNSAFE_Layer","preact/compat","./utils/UNSAFE_arrayUtils","./utils/UNSAFE_classNames","./classNames-f11010a7","./UNSAFE_Flex","./Flex-e3a46a36","./tslib.es6-24bf3861","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./_curry1-f9717f1c","./utils/UNSAFE_mergeInterpolations","./_curry3-01167a7d","./_curry2-c4648b65","./_has-6f4fa2af","./utils/UNSAFE_interpolations/boxalignment","./keys-6231193b","./utils/UNSAFE_interpolations/flexbox","./flexbox-b6c222f9","./utils/UNSAFE_interpolations/flexitem","./flexitem-1405ebe5","./UNSAFE_WindowOverlay"],function(e,s,i,t,a,r,o,l,n,_,u,c,f,F,N,U,p,E,A,S,b,x,y,m,d,g,L,M,h,k){"use strict";e.MessageLayer=s.MessageLayer,e.positions=s.positions,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=PRIVATE_MessageLayer.js.map
@@ -1,2 +1,2 @@
1
- define(["exports","./tslib.es6-7e0f14ee","preact/jsx-runtime","preact/compat"],function(r,t,o,i){"use strict";const e=i.forwardRef((r,i)=>{var{id:e,length:d="100%",children:s,color:l,orientation:a="horizontal",ariaProps:c}=r,h=t.__rest(r,["id","length","children","color","orientation","ariaProps"]);const n="horizontal"===a;return o.jsx("div",Object.assign({id:e,ref:i,class:h.class},c,{style:{width:n?d:void 0,height:n?void 0:d,backgroundColor:l}},{children:s}))}),d=i.forwardRef((r,i)=>{var{id:e,children:d,color:s,clipPath:l,borderWidth:a,ariaProps:c}=r,h=t.__rest(r,["id","children","color","clipPath","borderWidth","ariaProps"]);return o.jsx("div",Object.assign({id:e,ref:i},c,{class:h.class,style:{borderColor:s,borderWidth:a,clipPath:l}},{children:d}))});r.BarTrack=e,r.BarValue=r=>{var{length:i="100%",size:e="100%",orientation:d="horizontal",color:s}=r,l=t.__rest(r,["length","size","orientation","color"]);const a="horizontal"===d;return o.jsx("div",{class:l.class,style:{width:a?i:e,height:a?e:i,backgroundColor:s}})},r.CircleInner=r=>{var{clipPath:i,color:e,height:d,width:s,size:l,section:a="full"}=r,c=t.__rest(r,["clipPath","color","height","width","size","section"]);const h=function(r,t){const o={borderTopWidth:t,borderBottomWidth:t,borderRightWidth:t,borderLeftWidth:t};return"top"===r&&(o.borderBottomWidth=void 0),"bottom"===r&&(o.borderTopWidth=void 0),"left"===r&&(o.borderRightWidth=void 0),"right"===r&&(o.borderLeftWidth=void 0),o}(a,l);return o.jsx("div",{class:c.class,style:Object.assign({clipPath:i,borderColor:e,height:d,width:s},h)})},r.CircleWrapper=d,Object.defineProperty(r,"__esModule",{value:!0})});
1
+ define(["exports","./tslib.es6-24bf3861","preact/jsx-runtime","preact/compat"],function(r,t,o,i){"use strict";const e=i.forwardRef((r,i)=>{var{id:e,length:d="100%",children:s,color:l,orientation:a="horizontal",ariaProps:c}=r,h=t.__rest(r,["id","length","children","color","orientation","ariaProps"]);const n="horizontal"===a;return o.jsx("div",Object.assign({id:e,ref:i,class:h.class},c,{style:{width:n?d:void 0,height:n?void 0:d,backgroundColor:l}},{children:s}))}),d=i.forwardRef((r,i)=>{var{id:e,children:d,color:s,clipPath:l,borderWidth:a,ariaProps:c}=r,h=t.__rest(r,["id","children","color","clipPath","borderWidth","ariaProps"]);return o.jsx("div",Object.assign({id:e,ref:i},c,{class:h.class,style:{borderColor:s,borderWidth:a,clipPath:l}},{children:d}))});r.BarTrack=e,r.BarValue=r=>{var{length:i="100%",size:e="100%",orientation:d="horizontal",color:s}=r,l=t.__rest(r,["length","size","orientation","color"]);const a="horizontal"===d;return o.jsx("div",{class:l.class,style:{width:a?i:e,height:a?e:i,backgroundColor:s}})},r.CircleInner=r=>{var{clipPath:i,color:e,height:d,width:s,size:l,section:a="full"}=r,c=t.__rest(r,["clipPath","color","height","width","size","section"]);const h=function(r,t){const o={borderTopWidth:t,borderBottomWidth:t,borderRightWidth:t,borderLeftWidth:t};return"top"===r&&(o.borderBottomWidth=void 0),"bottom"===r&&(o.borderTopWidth=void 0),"left"===r&&(o.borderRightWidth=void 0),"right"===r&&(o.borderLeftWidth=void 0),o}(a,l);return o.jsx("div",{class:c.class,style:Object.assign({clipPath:i,borderColor:e,height:d,width:s},h)})},r.CircleWrapper=d,Object.defineProperty(r,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=PRIVATE_Meter.js.map
@@ -1,18 +1,18 @@
1
- ._53webu{padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);}
1
+ .nsqgqa{box-sizing:border-box;background-color:var(--oj-c-PRIVATE-DO-NOT-USE-popup-bg-color);border:1px solid var(--oj-c-PRIVATE-DO-NOT-USE-popup-border-color);border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md);box-shadow:var(--oj-c-PRIVATE-DO-NOT-USE-core-dropdown-box-shadow);max-height:inherit;display:flex;flex-direction:column;}
2
2
 
3
- ._1r7udd{display:inline-flex;align-items:center;justify-content:center;padding-inline:0;padding-block:0;border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md);color:var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary);font-size:var(--oj-c-PRIVATE-DO-NOT-USE-core-icon-size-lg);}
4
- ._19n1o87{width:2.75rem;height:2.75rem;line-height:2.75rem;}
5
- ._1ul7gpb{width:2.25rem;height:2.25rem;line-height:2.25rem;}
6
- ._1vkoex6{cursor:var(--oj-c-PRIVATE-DO-NOT-USE-core-cursor-clickable);}._1vkoex6:hover{color:var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary);background-color:var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-hover);border-color:transparent;}
7
- .l3t3f9{color:var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-disabled);}
3
+ .kr5to0{padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);}
8
4
 
9
- .x68szt{box-sizing:border-box;background-color:var(--oj-c-PRIVATE-DO-NOT-USE-popup-bg-color);border:1px solid var(--oj-c-PRIVATE-DO-NOT-USE-popup-border-color);border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md);box-shadow:var(--oj-c-PRIVATE-DO-NOT-USE-core-dropdown-box-shadow);max-height:inherit;display:flex;flex-direction:column;}
5
+ .xk8neb{display:inline-flex;align-items:center;justify-content:center;padding-inline:0;padding-block:0;border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md);color:var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary);font-size:var(--oj-c-PRIVATE-DO-NOT-USE-core-icon-size-lg);}
6
+ ._1wwkc5c{width:2.75rem;height:2.75rem;line-height:2.75rem;}
7
+ .buiwch{width:2.25rem;height:2.25rem;line-height:2.25rem;}
8
+ .bgzzum{cursor:var(--oj-c-PRIVATE-DO-NOT-USE-core-cursor-clickable);}.bgzzum:hover{color:var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary);background-color:var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-hover);border-color:transparent;}
9
+ ._1w93tr7{color:var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-disabled);}
10
10
 
11
- ._10m44ix{border-top-color:rgba(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190),0.1);border-top-style:solid;border-top-width:1px;padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);}
11
+ .x8qj2g{padding-left:0;padding-right:0;margin:1px 0 2px 0;position:relative;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;display:flex;flex-direction:column;}
12
+ ._10hk573{padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);}
13
+ ._58kovu{padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);}
14
+ ._3hzw5q{min-height:calc(10 * var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x));}
12
15
 
13
- ._15kn7c0{padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);}
16
+ ._1iwsitd{border-top-color:rgba(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190),0.1);border-top-style:solid;border-top-width:1px;padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);}
14
17
 
15
- ._12i4eng{padding-left:0;padding-right:0;margin:1px 0 2px 0;position:relative;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;display:flex;flex-direction:column;}
16
- .x2adue{padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);}
17
- ._9ei1ql{padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);}
18
- ._13n3mbr{min-height:calc(10 * var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x));}
18
+ .ullep4{padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x);}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/jsx-runtime","preact/hooks","css!./PRIVATE_SelectCommon.css","./UNSAFE_HighlightText","./PRIVATE_List","./UNSAFE_Flex","./UNSAFE_Skeleton","./utils/UNSAFE_logger","./Flex-6371a66e","./HighlightText-de1bf4e2","./List-96b73e43","./Skeleton-68cdd7b6","./UNSAFE_Floating","./UNSAFE_Layer","./utils/UNSAFE_arrayUtils","./Floating-fd3596ba","./hooks/UNSAFE_usePress","./index-365ddeb3","./utils/UNSAFE_classNames","./classNames-e23e522a","./index-8c322165","./hooks/UNSAFE_useFormFieldContext","./UNSAFE_UserAssistance","./hooks/UNSAFE_useTranslationBundle","./utils/PRIVATE_clientHints","./clientHints-cbf4b34f","./utils/UNSAFE_mergeProps","./utils/UNSAFE_keys","./LoadMoreCollection-5a3b8603","./PRIVATE_Collection","./Collection-4c905202","preact","./hooks/UNSAFE_useViewportIntersect","./PRIVATE_VirtualizedCollection","./VirtualizedCollection-ed812ab7","./hooks/UNSAFE_useTabbableMode","./UNSAFE_FocusTrap","./FocusTrap-fc22ca7f","preact/compat","./utils/PRIVATE_tabbableUtils","./_curry1-b656408f","./_curry2-a9053ee8","./_curry3-451f0a36","./hooks/UNSAFE_useId","./hooks/PRIVATE_useSelection","./hooks/PRIVATE_useCurrentKey","./hooks/PRIVATE_useCollectionFocusRing","./hooks/PRIVATE_useTabbableModeSet","./hooks/PRIVATE_useItemAction","./utils/PRIVATE_collectionUtils","./tslib.es6-7e0f14ee","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./utils/UNSAFE_mergeInterpolations","./_has-a3b0d688","./utils/UNSAFE_interpolations/borders","./utils/UNSAFE_interpolations/boxalignment","./keys-c17276c4","./utils/UNSAFE_interpolations/flexbox","./flexbox-1fede399","./utils/UNSAFE_interpolations/flexitem","./flexitem-88bf97c7","./UNSAFE_Selector","./UNSAFE_Icon","./Icon-74af3581","./hooks/UNSAFE_useTooltip","./hooks/UNSAFE_useHover","./hooks/UNSAFE_useToggle","./hooks/UNSAFE_useFocus","./hooks/UNSAFE_useTouch","./hooks/UNSAFE_useAnimation","./useAnimation-ed7baee1","./index-d7a7f3a5","./hooks/UNSAFE_useUser","./UNSAFE_Environment","./utils/PRIVATE_floatingUtils","./utils/PRIVATE_refUtils","./hooks/UNSAFE_useOutsideClick","./hooks/UNSAFE_useTheme","./InlineHelpSource-875a4918","./UNSAFE_ComponentMessage","./ComponentMessage-fae17309","./PRIVATE_Message","./utils/PRIVATE_timer","./MessageCloseButton-9761b231","./UNSAFE_Button","./Button-91d1d81d","./UNSAFE_BaseButton","./BaseButton-ad209065","./hooks/UNSAFE_useActive","./MessageDetail-231e34ef","./MessageFormattingUtils-daf0e8f9","./utils/UNSAFE_getLocale","./utils/UNSAFE_stringUtils","./stringUtils-dfe8de67","./Message.types-dc4dcc2b","./MessageStartIcon-8c35d9bf","./MessageSummary-65ddf192","./MessageTimestamp-28a44775","./MessageUtils-2a44c5f1","./utils/UNSAFE_soundUtils","./MessagesManager-3038f8bc","./PRIVATE_TransitionGroup","./hooks/UNSAFE_useMessagesContext","./UNSAFE_HiddenAccessible","./HiddenAccessible-5d3d6af2","./ComponentMessageContainer-76688ce8","./hooks/UNSAFE_useFormContext"],function(e,t,s,n,o,i,a,l,r,c,u,d,f,A,E,h,_,S,g,F,b,p,m,v,T,U,C,x,k,N,w,y,D,I,R,P,L,M,j,O,K,H,V,B,G,z,W,q,Y,$,J,Q,X,Z,ee,te,se,ne,oe,ie,ae,le,re,ce,ue,de,fe,Ae,Ee,he,_e,Se,ge,Fe,be,pe,me,ve,Te,Ue,Ce,xe,ke,Ne,we,ye,De,Ie,Re,Pe,Le,Me,je,Oe,Ke,He,Ve,Be,Ge,ze,We,qe,Ye,$e,Je,Qe,Xe,Ze,et){"use strict";function tt(e,t){var s;if("string"!=typeof t)return t(e);if(null===(s=e.data)||void 0===s?void 0:s.hasOwnProperty(t)){const s=e.data[t];return String(s)}r.Logger.error("SelectMultiple: itemText specifies field that does not exist: "+t)}const st=()=>{};const nt=t.jsx(d.SkeletonContainer,Object.assign({minimumCount:3},{children:()=>t.jsx(c.Flex,Object.assign({height:"12x",align:"center"},{children:t.jsx(f.Skeleton,{height:"4x"})}))})),ot={TAB:"Tab",ENTER:"Enter",ESC:"Escape",SPACE:"Space",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",SHIFT_LEFT:"ShiftLeft",SHIFT_RIGHT:"ShiftRight",CTRL_LEFT:"ControlLeft",CTRL_RIGHT:"ControlRight",ALT_LEFT:"AltLeft",ALT_RIGHT:"AltRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",HOME:"Home",END:"End",BACKSPACE:"Backspace",DELETE:"Delete"},it=e=>{switch(e.code){case ot.SHIFT_LEFT:case ot.SHIFT_RIGHT:case ot.CTRL_LEFT:case ot.CTRL_RIGHT:case ot.ALT_LEFT:case ot.ALT_RIGHT:return!0;default:return e.metaKey||e.ctrlKey}},at=e=>/\bF([1-9]|1[0-2])\b/i.test(e.code),lt=e=>it(e)||at(e),rt=e=>0===e.button&&!e.ctrlKey,ct=e=>{e.currentTarget===e.target&&e.preventDefault()},ut=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},dt=({isDisabled:e=!1,ref:t,handler:n})=>{s.useEffect(()=>{const s=h.coerceArray(t);if(!n||e||s.length>0&&s.findIndex(e=>null===e.current)>-1)return;const o=e=>{((e,t)=>{const s=e.target;if(s&&!ut(s).contains(s))return!1;return t.every(e=>{var t;return!(null===(t=e.current)||void 0===t?void 0:t.contains(s))})})(e,s)&&(null==n||n(e))},i=s[0],a=ut(i.current);return a?(a.addEventListener("mousedown",o,!0),()=>{a.removeEventListener("mousedown",o,!0)}):void 0},[e,n,t])},ft="x68szt",At="bottom-start";const Et="_1r7udd",ht="_19n1o87",_t="_1ul7gpb",St="_1vkoex6",gt="l3t3f9",Ft=()=>{};const bt="_12i4eng",pt="x2adue",mt="_9ei1ql",vt="_13n3mbr";e.DefaultList=function({accessibleSummary:e,currentItemVariant:n,currentKey:o,data:i,itemText:a,onCurrentKeyChange:l,onItemAction:r,onLoadRange:f=st,onSelectionChange:A,searchText:E,selectedKeys:h,selectionMode:_}){const S=s.useCallback(e=>{const s=tt({data:e.data,key:e.metadata.key,metadata:e.metadata},a);return t.jsxs(c.Flex,{children:[e.selector&&e.selector(),t.jsx("div",Object.assign({class:"_53webu"},{children:t.jsx(u.HighlightText,Object.assign({matchText:E},{children:s}))}))]})},[a,E]),g=s.useMemo(()=>({all:!1,keys:null!=h?h:new Set}),[h]);return t.jsx(d.List,Object.assign({accessibleSummary:e,allowTabbableMode:!1,currentItemVariant:n,currentKey:o,data:null!=i?i:null,loadingIndicator:nt,onCurrentKeyChange:l,onItemAction:r,onLoadRange:f,onSelectionChange:A,role:"listbox",selectedKeys:g,selectionMode:_},{children:e=>S(e)}))},e.Dropdown=function({anchorRef:e,children:n,dropdownRef:o,id:i,isOpen:a,onAutoDismiss:l,onPosition:r}){var c;const[u,d]=s.useState(At);s.useEffect(()=>{a||d(At)},[a,d]);const f=s.useCallback(e=>{d(e.placement),null==r||r(e)},[r,d]),A=s.useCallback(e=>{null==l||l(e)},[l]),h=s.useCallback(e=>{if(!e.defaultPrevented&&!lt(e))switch(e.code){case ot.ESC:case ot.TAB:A(e)}},[A]);dt({isDisabled:!a,ref:[e,o],handler:A});const S={minWidth:`${null===(c=e.current)||void 0===c?void 0:c.offsetWidth}px`};return a?t.jsx(E.Layer,Object.assign({logicalParentRef:e},{children:t.jsx(_.Floating,Object.assign({anchorRef:e,sizeOptions:{isMaxHeightAdjusted:!0,maxHeightCeiling:400},ref:o,placement:u,offsetValue:{mainAxis:4,crossAxis:0},onPosition:f},{children:t.jsx("div",Object.assign({class:ft,id:i,style:S,onKeyDown:h,onMouseDown:ct},{children:n}))}))})):null},e.DropdownArrow=function({isDisabled:e=!1,onClick:n,size:o="md"}){const i=s.useCallback(e=>{e.preventDefault()},[]),{pressProps:a}=S.usePress(null!=n?n:Ft,{isDisabled:e}),l=b.classNames([Et,"sm"===o?_t:ht,e?gt:St]);return t.jsx("span",Object.assign({"aria-hidden":"true",class:l,tabIndex:-1,onMouseDown:i},a,{children:t.jsx(p.SvgIcoCaretDown,{})}))},e.DropdownList=function({children:e,hasBottomGap:s=!0,isLoading:n=!1}){const o=b.classNames([bt,pt,s&&mt,n&&vt]);return t.jsx("div",Object.assign({class:o,onMouseDown:ct},{children:e}))},e.DropdownUserAssistance=function(e){const n=s.useCallback(e=>{var t;"A"!==(null===(t=e.target)||void 0===t?void 0:t.tagName)&&e.preventDefault()},[]);return t.jsx(m.FormFieldContext.Provider,Object.assign({value:{isFocused:!0}},{children:t.jsx("div",Object.assign({class:"_10m44ix",onMouseDown:n},{children:t.jsx(v.InlineUserAssistance,Object.assign({},e))}))}))},e.EmptyResults=function(){const e=T.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",Object.assign({class:"_15kn7c0",onMouseDown:ct},{children:e.select_noMatchesFound()}))},e.KEYS=ot,e.isBeforeDataFetch=function(e){return"atLeast"===e.sizePrecision&&0===e.totalSize},e.isControlKey=it,e.isControlOrFunctionKey=lt,e.isFunctionKey=at,e.isMobile=function(){const e=C.getClientHints().deviceType;return"phone"===e||"tablet"===e},e.isSimpleClick=rt,e.preventDefaultForCurrentTarget=ct,e.renderItemText=tt,e.useSelectCommon=function({data:e,inputRef:t,isFocused:n,onFilter:o}){const i=s.useRef(null),a=s.useRef(null),[l,r]=s.useState(!1),[c,u]=s.useState(!1),[d,f]=s.useState({rowKey:void 0}),[A,E]=s.useState(),[h,_]=s.useState(!1),[S,g]=s.useState(),[F,b]=s.useState(),p=s.useCallback(e=>{!e.defaultPrevented&&rt(e)&&(l||r(!0),setTimeout(function(){var e;null===(e=t.current)||void 0===e||e.focus()},0))},[l]),m=s.useCallback(()=>{var e;r(!l),null===(e=t.current)||void 0===e||e.focus()},[l]),v=s.useCallback(e=>{var s,n,o;if(l)switch(r(!1),null==e?void 0:e.type){case"keydown":if(e.code===ot.ESC)null===(s=t.current)||void 0===s||s.focus();break;case"mousedown":(null===(n=a.current)||void 0===n?void 0:n.contains(document.activeElement))&&(null===(o=t.current)||void 0===o||o.focus())}},[l]),T=s.useCallback(e=>{u(e.placement.startsWith("top"))},[]),U=s.useCallback(t=>{var s,n,o,i;if(l){const t=null===(s=a.current)||void 0===s?void 0:s.querySelector('[tabindex="0"]');null==t||t.focus(),void 0!==e&&void 0===d.rowKey&&f({rowKey:null===(i=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n[0])||void 0===o?void 0:o.metadata)||void 0===i?void 0:i.key})}else r(!0);t.preventDefault()},[d,e,l]),C=s.useCallback(e=>{if(!lt(e))switch(e.code){case ot.PAGE_UP:case ot.PAGE_DOWN:return void e.preventDefault();case ot.UP:case ot.DOWN:e.preventDefault();break;case ot.ESC:l&&(r(!1),e.preventDefault(),e.stopPropagation())}},[l]),x=s.useCallback(e=>{if(!lt(e))switch(e.code){case ot.UP:case ot.DOWN:U(e)}},[U]),k=s.useCallback(e=>{var t;l||r(!0),_(!0),g(e.value);const s=null===(t=e.value)||void 0===t?void 0:t.trim();b(s),null==o||o({searchText:s})},[l,o]),N=s.useCallback(e=>{f({rowKey:e.value})},[]),w=s.useCallback(()=>{_(!1),g(""),b("")},[]);return s.useEffect(()=>{l||n||!h||w()},[l,n,h]),s.useEffect(()=>{l&&!h&&(null==o||o({searchText:void 0}))},[l,h,o]),s.useEffect(()=>{l||u(!1)},[l]),{currentRow:d,dropdownRef:a,handleDropdownArrowClick:m,handleDropdownAutoDismiss:v,handleDropdownPosition:T,handleInput:k,handleMainFieldKeyDown:C,handleMainFieldKeyUp:x,handleUpDownArrowKeys:U,isDropdownAbove:c,isDropdownOpen:l,isFocused:n||l,isUserFiltering:h,mainFieldRef:i,onCurrentKeyChange:N,onMouseDown:p,searchText:F,selectedKeys:A,setCurrentRow:f,setDropdownOpen:r,setSelectedKeys:E,stopFiltering:w,userInput:S}},Object.defineProperty(e,"__esModule",{value:!0})});
1
+ define(["exports","preact/jsx-runtime","preact/hooks","css!./PRIVATE_SelectCommon.css","./UNSAFE_HighlightText","./PRIVATE_List","./UNSAFE_Flex","./UNSAFE_Skeleton","./utils/UNSAFE_logger","./Flex-e3a46a36","./HighlightText-f5e447be","./List-24031444","./Skeleton-65cc3876","./UNSAFE_Floating","./UNSAFE_Layer","./utils/UNSAFE_arrayUtils","./Floating-1e70bca1","./hooks/UNSAFE_usePress","./index-c7f647a1","./utils/UNSAFE_classNames","./classNames-f11010a7","./index-72f6069b","./hooks/UNSAFE_useFormFieldContext","./UNSAFE_UserAssistance","./hooks/UNSAFE_useTranslationBundle","./utils/PRIVATE_clientHints","./clientHints-33be1380","./utils/UNSAFE_mergeProps","./utils/UNSAFE_keys","./LoadMoreCollection-d53c66bf","./PRIVATE_Collection","./Collection-0700cc46","preact","./hooks/UNSAFE_useViewportIntersect","./PRIVATE_VirtualizedCollection","./VirtualizedCollection-8523118a","./hooks/UNSAFE_useTabbableMode","./UNSAFE_FocusTrap","./FocusTrap-5a3a8c7d","preact/compat","./utils/PRIVATE_tabbableUtils","./_curry1-f9717f1c","./_curry2-c4648b65","./_curry3-01167a7d","./hooks/UNSAFE_useId","./hooks/PRIVATE_useSelection","./hooks/PRIVATE_useCurrentKey","./hooks/PRIVATE_useCollectionFocusRing","./hooks/PRIVATE_useTabbableModeSet","./hooks/PRIVATE_useItemAction","./utils/PRIVATE_collectionUtils","./tslib.es6-24bf3861","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./utils/UNSAFE_mergeInterpolations","./_has-6f4fa2af","./utils/UNSAFE_interpolations/borders","./utils/UNSAFE_interpolations/boxalignment","./keys-6231193b","./utils/UNSAFE_interpolations/flexbox","./flexbox-b6c222f9","./utils/UNSAFE_interpolations/flexitem","./flexitem-1405ebe5","./UNSAFE_Selector","./UNSAFE_Icon","./Icon-7291b5d0","./hooks/UNSAFE_useTooltip","./hooks/UNSAFE_useHover","./hooks/UNSAFE_useToggle","./hooks/UNSAFE_useFocus","./hooks/UNSAFE_useTouch","./hooks/UNSAFE_useAnimation","./useAnimation-19a01c68","./index-66b69d43","./hooks/UNSAFE_useUser","./UNSAFE_Environment","./utils/PRIVATE_floatingUtils","./utils/PRIVATE_refUtils","./hooks/UNSAFE_useOutsideClick","./hooks/UNSAFE_useTheme","./InlineHelpSource-64823c0a","./UNSAFE_ComponentMessage","./ComponentMessage-998dad2a","./PRIVATE_Message","./utils/PRIVATE_timer","./MessageCloseButton-80019999","./UNSAFE_Button","./Button-6236e6b9","./UNSAFE_BaseButton","./BaseButton-6b15cf96","./hooks/UNSAFE_useActive","./MessageDetail-520bf217","./MessageFormattingUtils-522eafdf","./utils/UNSAFE_getLocale","./utils/UNSAFE_stringUtils","./stringUtils-b9c2724c","./Message.types-7cf67e6b","./MessageStartIcon-f0caac42","./MessageSummary-1fe58d25","./MessageTimestamp-0324ebac","./MessageUtils-83d741c6","./utils/UNSAFE_soundUtils","./MessagesManager-92a31926","./PRIVATE_TransitionGroup","./hooks/UNSAFE_useMessagesContext","./UNSAFE_HiddenAccessible","./HiddenAccessible-cc2e72c9","./ComponentMessageContainer-329000c3","./hooks/UNSAFE_useFormContext"],function(e,t,s,n,o,i,a,l,r,c,u,d,A,f,h,E,g,S,_,b,F,p,m,v,T,U,C,k,x,N,w,y,D,I,R,P,j,L,M,O,K,H,V,B,G,z,W,q,Y,$,J,Q,X,Z,ee,te,se,ne,oe,ie,ae,le,re,ce,ue,de,Ae,fe,he,Ee,ge,Se,_e,be,Fe,pe,me,ve,Te,Ue,Ce,ke,xe,Ne,we,ye,De,Ie,Re,Pe,je,Le,Me,Oe,Ke,He,Ve,Be,Ge,ze,We,qe,Ye,$e,Je,Qe,Xe,Ze,et){"use strict";function tt(e,t){var s;if("string"!=typeof t)return t(e);if(null===(s=e.data)||void 0===s?void 0:s.hasOwnProperty(t)){const s=e.data[t];return String(s)}r.Logger.error("SelectMultiple: itemText specifies field that does not exist: "+t)}const st=()=>{};const nt=t.jsx(d.SkeletonContainer,Object.assign({minimumCount:3},{children:()=>t.jsx(c.Flex,Object.assign({height:"12x",align:"center"},{children:t.jsx(A.Skeleton,{height:"4x"})}))})),ot={TAB:"Tab",ENTER:"Enter",ESC:"Escape",SPACE:"Space",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",SHIFT_LEFT:"ShiftLeft",SHIFT_RIGHT:"ShiftRight",CTRL_LEFT:"ControlLeft",CTRL_RIGHT:"ControlRight",ALT_LEFT:"AltLeft",ALT_RIGHT:"AltRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",HOME:"Home",END:"End",BACKSPACE:"Backspace",DELETE:"Delete"},it=e=>{switch(e.code){case ot.SHIFT_LEFT:case ot.SHIFT_RIGHT:case ot.CTRL_LEFT:case ot.CTRL_RIGHT:case ot.ALT_LEFT:case ot.ALT_RIGHT:return!0;default:return e.metaKey||e.ctrlKey}},at=e=>/\bF([1-9]|1[0-2])\b/i.test(e.code),lt=e=>it(e)||at(e),rt=e=>0===e.button&&!e.ctrlKey,ct=e=>{e.currentTarget===e.target&&e.preventDefault()},ut=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},dt=({isDisabled:e=!1,ref:t,handler:n})=>{s.useEffect(()=>{const s=E.coerceArray(t);if(!n||e||s.length>0&&s.findIndex(e=>null===e.current)>-1)return;const o=e=>{((e,t)=>{const s=e.target;if(s&&!ut(s).contains(s))return!1;return t.every(e=>{var t;return!(null===(t=e.current)||void 0===t?void 0:t.contains(s))})})(e,s)&&(null==n||n(e))},i=s[0],a=ut(i.current);return a?(a.addEventListener("mousedown",o,!0),()=>{a.removeEventListener("mousedown",o,!0)}):void 0},[e,n,t])},At="nsqgqa",ft="bottom-start";const ht="xk8neb",Et="_1wwkc5c",gt="buiwch",St="bgzzum",_t="_1w93tr7",bt=()=>{};const Ft="x8qj2g",pt="_10hk573",mt="_58kovu",vt="_3hzw5q";e.DefaultList=function({accessibleSummary:e,currentItemVariant:n,currentKey:o,data:i,itemText:a,onCurrentKeyChange:l,onItemAction:r,onLoadRange:A=st,onSelectionChange:f,searchText:h,selectedKeys:E,selectionMode:g}){const S=s.useCallback(e=>{const s=tt({data:e.data,key:e.metadata.key,metadata:e.metadata},a);return t.jsxs(c.Flex,{children:[e.selector&&e.selector(),t.jsx("div",Object.assign({class:"kr5to0"},{children:t.jsx(u.HighlightText,Object.assign({matchText:h},{children:s}))}))]})},[a,h]),_=s.useMemo(()=>({all:!1,keys:null!=E?E:new Set}),[E]);return t.jsx(d.List,Object.assign({accessibleSummary:e,allowTabbableMode:!1,currentItemVariant:n,currentKey:o,data:null!=i?i:null,loadingIndicator:nt,onCurrentKeyChange:l,onItemAction:r,onLoadRange:A,onSelectionChange:f,role:"listbox",selectedKeys:_,selectionMode:g},{children:e=>S(e)}))},e.Dropdown=function({anchorRef:e,children:n,dropdownRef:o,id:i,isOpen:a,onAutoDismiss:l,onPosition:r}){var c;const[u,d]=s.useState(ft);s.useEffect(()=>{a||d(ft)},[a,d]);const A=s.useCallback(e=>{d(e.placement),null==r||r(e)},[r,d]),f=s.useCallback(e=>{null==l||l(e)},[l]),E=s.useCallback(e=>{if(!e.defaultPrevented&&!lt(e))switch(e.code){case ot.ESC:case ot.TAB:f(e)}},[f]);dt({isDisabled:!a,ref:[e,o],handler:f});const S={minWidth:`${null===(c=e.current)||void 0===c?void 0:c.offsetWidth}px`};return a?t.jsx(h.Layer,Object.assign({logicalParentRef:e},{children:t.jsx(g.Floating,Object.assign({anchorRef:e,sizeOptions:{isMaxHeightAdjusted:!0,maxHeightCeiling:400},ref:o,placement:u,offsetValue:{mainAxis:4,crossAxis:0},onPosition:A},{children:t.jsx("div",Object.assign({class:At,id:i,style:S,onKeyDown:E,onMouseDown:ct},{children:n}))}))})):null},e.DropdownArrow=function({isDisabled:e=!1,onClick:n,size:o="md"}){const i=s.useCallback(e=>{e.preventDefault()},[]),{pressProps:a}=S.usePress(null!=n?n:bt,{isDisabled:e}),l=F.classNames([ht,"sm"===o?gt:Et,e?_t:St]);return t.jsx("span",Object.assign({"aria-hidden":"true",class:l,tabIndex:-1,onMouseDown:i},a,{children:t.jsx(p.SvgIcoCaretDown,{})}))},e.DropdownList=function({children:e,hasBottomGap:s=!0,isLoading:n=!1}){const o=F.classNames([Ft,pt,s&&mt,n&&vt]);return t.jsx("div",Object.assign({class:o,onMouseDown:ct},{children:e}))},e.DropdownUserAssistance=function(e){const n=s.useCallback(e=>{var t;"A"!==(null===(t=e.target)||void 0===t?void 0:t.tagName)&&e.preventDefault()},[]);return t.jsx(m.FormFieldContext.Provider,Object.assign({value:{isFocused:!0}},{children:t.jsx("div",Object.assign({class:"_1iwsitd",onMouseDown:n},{children:t.jsx(v.InlineUserAssistance,Object.assign({},e))}))}))},e.EmptyResults=function(){const e=T.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",Object.assign({class:"ullep4",onMouseDown:ct},{children:e.select_noMatchesFound()}))},e.KEYS=ot,e.isBeforeDataFetch=function(e){return"atLeast"===e.sizePrecision&&0===e.totalSize},e.isControlKey=it,e.isControlOrFunctionKey=lt,e.isFunctionKey=at,e.isMobile=function(){const e=C.getClientHints().deviceType;return"phone"===e||"tablet"===e},e.isSimpleClick=rt,e.preventDefaultForCurrentTarget=ct,e.renderItemText=tt,e.useSelectCommon=function({data:e,inputRef:t,isFocused:n,onFilter:o}){const i=s.useRef(null),a=s.useRef(null),[l,r]=s.useState(!1),[c,u]=s.useState(!1),[d,A]=s.useState({rowKey:void 0}),[f,h]=s.useState(),[E,g]=s.useState(!1),[S,_]=s.useState(),[b,F]=s.useState(),p=s.useCallback(e=>{!e.defaultPrevented&&rt(e)&&(l||r(!0),setTimeout(function(){var e;null===(e=t.current)||void 0===e||e.focus()},0))},[l]),m=s.useCallback(()=>{var e;r(!l),null===(e=t.current)||void 0===e||e.focus()},[l]),v=s.useCallback(e=>{var s,n,o;if(l)switch(r(!1),null==e?void 0:e.type){case"keydown":if(e.code===ot.ESC)null===(s=t.current)||void 0===s||s.focus();break;case"mousedown":(null===(n=a.current)||void 0===n?void 0:n.contains(document.activeElement))&&(null===(o=t.current)||void 0===o||o.focus())}},[l]),T=s.useCallback(e=>{u(e.placement.startsWith("top"))},[]),U=s.useCallback(t=>{var s,n,o,i;if(l){const t=null===(s=a.current)||void 0===s?void 0:s.querySelector('[tabindex="0"]');null==t||t.focus(),void 0!==e&&void 0===d.rowKey&&A({rowKey:null===(i=null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n[0])||void 0===o?void 0:o.metadata)||void 0===i?void 0:i.key})}else r(!0);t.preventDefault()},[d,e,l]),C=s.useCallback(e=>{if(!lt(e))switch(e.code){case ot.PAGE_UP:case ot.PAGE_DOWN:return void e.preventDefault();case ot.UP:case ot.DOWN:e.preventDefault();break;case ot.ESC:l&&(r(!1),e.preventDefault(),e.stopPropagation())}},[l]),k=s.useCallback(e=>{if(!lt(e))switch(e.code){case ot.UP:case ot.DOWN:U(e)}},[U]),x=s.useCallback(e=>{var t;l||r(!0),g(!0),_(e.value);const s=null===(t=e.value)||void 0===t?void 0:t.trim();F(s),null==o||o({searchText:s})},[l,o]),N=s.useCallback(e=>{A({rowKey:e.value})},[]),w=s.useCallback(()=>{g(!1),_(""),F("")},[]);return s.useEffect(()=>{l||n||!E||w()},[l,n,E]),s.useEffect(()=>{l&&!E&&(null==o||o({searchText:void 0}))},[l,E,o]),s.useEffect(()=>{l||u(!1)},[l]),{currentRow:d,dropdownRef:a,handleDropdownArrowClick:m,handleDropdownAutoDismiss:v,handleDropdownPosition:T,handleInput:x,handleMainFieldKeyDown:C,handleMainFieldKeyUp:k,handleUpDownArrowKeys:U,isDropdownAbove:c,isDropdownOpen:l,isFocused:n||l,isUserFiltering:E,mainFieldRef:i,onCurrentKeyChange:N,onMouseDown:p,searchText:b,selectedKeys:f,setCurrentRow:A,setDropdownOpen:r,setSelectedKeys:h,stopFiltering:w,userInput:S}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=PRIVATE_SelectCommon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PRIVATE_SelectCommon.js","sources":["../../src/PRIVATE_SelectCommon/itemTextUtils.ts","../../src/PRIVATE_SelectCommon/DefaultList.tsx","../../src/PRIVATE_SelectCommon/eventUtils.ts","../../src/PRIVATE_SelectCommon/useOutsideMousedown.ts","../../src/PRIVATE_SelectCommon/Dropdown.tsx","../../src/PRIVATE_SelectCommon/DropdownArrow.tsx","../../src/PRIVATE_SelectCommon/DropdownList.tsx","../../src/PRIVATE_SelectCommon/DropdownUserAssistance.tsx","../../src/PRIVATE_SelectCommon/EmptyResults.tsx","../../src/PRIVATE_SelectCommon/selectUtils.ts","../../src/PRIVATE_SelectCommon/useSelectCommon.ts"],"sourcesContent":["/**\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 { Item } from '../utils/UNSAFE_dataProvider';\nimport { Logger } from '../utils/UNSAFE_logger';\nimport { ItemTextFunctionType, ItemTextType } from '../utils/UNSAFE_selectUtils';\n\nexport function renderItemText<K, D>(item: Item<K, D>, itemText: ItemTextType<K, D>) {\n // if item-text is a string and the data has the specified field, return it;\n // otherwise log an error\n if (typeof itemText === 'string') {\n if ((item.data as any)?.hasOwnProperty(itemText)) {\n const retData = item.data[itemText];\n return String(retData);\n }\n Logger.error('SelectMultiple: itemText specifies field that does not exist: ' + itemText);\n // return undefined if the field doesn't exist\n return undefined;\n }\n // if item-text is a function, call it to create a display label\n return (itemText as ItemTextFunctionType<K, D>)(item);\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 } from 'preact';\nimport { useCallback, useMemo } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport {\n CurrentKeyDetail,\n DataState,\n ItemActionDetail,\n ListItemContext,\n SelectionDetail\n} from '../UNSAFE_Collection';\nimport { HighlightText } from '../UNSAFE_HighlightText';\nimport { List, SkeletonContainer } from '../PRIVATE_List';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Skeleton } from '../UNSAFE_Skeleton';\nimport { Keys } from '../utils/UNSAFE_keys';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { renderItemText } from './itemTextUtils';\n\nconst itemStyles = cssProps`${{\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)'\n}}`;\n\ntype PickedPropsFromList = Pick<\n ComponentProps<typeof List>,\n 'accessibleSummary' | 'currentItemVariant' | 'selectionMode'\n>;\n\ntype Props<K extends string | number, D extends Record<string, any>> = PickedPropsFromList & {\n itemText: ItemTextType<K, D>;\n // props from List that we constrain or unconstrain\n currentKey?: K;\n data?: DataState<K, D> | null;\n onCurrentKeyChange?: (detail: CurrentKeyDetail<K>) => void;\n onItemAction?: (detail: ItemActionDetail<K, D>) => void;\n onLoadRange?: ComponentProps<typeof List>['onLoadRange'];\n onSelectionChange?: (detail: SelectionDetail<K>) => void;\n searchText?: string;\n selectedKeys?: Set<K>;\n};\n\nconst noOp = () => {};\n\nexport function DefaultList<K extends string | number, D extends Record<string, any>>({\n accessibleSummary,\n currentItemVariant,\n currentKey,\n data,\n itemText,\n onCurrentKeyChange,\n onItemAction,\n onLoadRange = noOp,\n onSelectionChange,\n searchText,\n selectedKeys,\n selectionMode\n}: Props<K, D>) {\n const listItemRenderer = useCallback(\n (listItemContext: ListItemContext<K, D>) => {\n const itemContext = {\n data: listItemContext.data,\n key: listItemContext.metadata.key,\n metadata: listItemContext.metadata\n };\n const renderedItemText = renderItemText(itemContext, itemText) as string;\n return (\n <Flex>\n {listItemContext.selector && listItemContext.selector()}\n <div class={itemStyles}>\n <HighlightText matchText={searchText}>{renderedItemText}</HighlightText>\n </div>\n </Flex>\n );\n },\n [itemText, searchText]\n );\n\n const keys = useMemo(() => {\n return { all: false, keys: selectedKeys ?? new Set<K>() };\n }, [selectedKeys]) as Keys<K>;\n\n return (\n <List<K, D>\n accessibleSummary={accessibleSummary}\n allowTabbableMode={false}\n currentItemVariant={currentItemVariant}\n currentKey={currentKey}\n data={data ?? null}\n loadingIndicator={loadingIndicator}\n onCurrentKeyChange={onCurrentKeyChange}\n onItemAction={onItemAction}\n onLoadRange={onLoadRange}\n onSelectionChange={onSelectionChange}\n role=\"listbox\"\n selectedKeys={keys}\n selectionMode={selectionMode}>\n {(context: ListItemContext<K, D>) => listItemRenderer(context)}\n </List>\n );\n}\n\n/**\n * Custom 3 Skeleton loader for select multiple\n * TODO: to remove this once https://jira.oraclecorp.com/jira/browse/JET-51527 is solved\n */\nconst loadingIndicator = (\n <SkeletonContainer minimumCount={3}>\n {() => {\n return (\n <Flex height=\"12x\" align=\"center\">\n <Skeleton height=\"4x\" />\n </Flex>\n );\n }}\n </SkeletonContainer>\n);\n","export const KEYS = {\n TAB: 'Tab',\n ENTER: 'Enter',\n ESC: 'Escape',\n SPACE: 'Space',\n LEFT: 'ArrowLeft',\n UP: 'ArrowUp',\n RIGHT: 'ArrowRight',\n DOWN: 'ArrowDown',\n SHIFT_LEFT: 'ShiftLeft',\n SHIFT_RIGHT: 'ShiftRight',\n CTRL_LEFT: 'ControlLeft',\n CTRL_RIGHT: 'ControlRight',\n ALT_LEFT: 'AltLeft',\n ALT_RIGHT: 'AltRight',\n PAGE_UP: 'PageUp',\n PAGE_DOWN: 'PageDown',\n HOME: 'Home',\n END: 'End',\n BACKSPACE: 'Backspace',\n DELETE: 'Delete'\n};\n\nexport const isControlKey = (event: KeyboardEvent) => {\n switch (event.code) {\n case KEYS.SHIFT_LEFT:\n case KEYS.SHIFT_RIGHT:\n case KEYS.CTRL_LEFT:\n case KEYS.CTRL_RIGHT:\n case KEYS.ALT_LEFT:\n case KEYS.ALT_RIGHT:\n return true;\n default:\n return event.metaKey || event.ctrlKey;\n }\n};\n\nexport const isFunctionKey = (event: KeyboardEvent) => {\n return /\\bF([1-9]|1[0-2])\\b/i.test(event.code);\n};\n\nexport const isControlOrFunctionKey = (event: KeyboardEvent) => {\n return isControlKey(event) || isFunctionKey(event);\n};\n\nexport const isSimpleClick = (event: MouseEvent) => {\n return event.button === 0 && !event.ctrlKey;\n};\n\nexport const preventDefaultForCurrentTarget = (event: MouseEvent) => {\n if (event.currentTarget === event.target) {\n event.preventDefault();\n }\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\n/**\n * `useOutsideMousedown` hook for capturing mousedown outside of an element\n */\nimport { RefObject } from 'preact';\nimport { useEffect } from 'preact/hooks';\nimport { coerceArray } from '../utils/UNSAFE_arrayUtils';\n\ntype Props = {\n /**\n * If true outside mousedown is disabled\n */\n isDisabled?: boolean;\n /**\n * Reference to element or array of elements relative to which outside mousedown is performed\n */\n ref: RefObject<HTMLElement> | RefObject<HTMLElement>[];\n /**\n * Outside mousedown callback\n */\n handler?: (event: MouseEvent) => void;\n};\n\nconst isPointOutside = (event: Event, ref: RefObject<HTMLElement>[]) => {\n const target = event.target as HTMLElement;\n if (target) {\n const doc = getDocument(target);\n if (!doc.contains(target)) return false;\n }\n return ref.every((elRef) => !elRef.current?.contains(target));\n};\n\nconst getDocument = (node?: Node): Document => node?.ownerDocument ?? document;\n\nexport const useOutsideMousedown = ({ isDisabled: disabled = false, ref, handler }: Props) => {\n useEffect(() => {\n const refs = coerceArray(ref);\n if (\n !handler ||\n disabled ||\n (refs.length > 0 && refs.findIndex((elRef) => elRef.current === null) > -1)\n )\n return;\n\n const onMouseDown = (event: MouseEvent) => {\n if (isPointOutside(event, refs)) {\n handler?.(event);\n }\n };\n const firstElRef = refs[0];\n const doc = getDocument(firstElRef.current!);\n if (doc) {\n doc.addEventListener('mousedown', onMouseDown, true);\n\n return () => {\n doc.removeEventListener('mousedown', onMouseDown, true);\n };\n }\n return undefined;\n }, [disabled, handler, ref]);\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 { ComponentChildren, ComponentProps } from 'preact';\nimport { MutableRef, useCallback, useEffect, useState } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Floating, PositionData } from '../UNSAFE_Floating';\nimport { Layer } from '../UNSAFE_Layer';\nimport { isControlOrFunctionKey, KEYS, preventDefaultForCurrentTarget } from './eventUtils';\nimport { useOutsideMousedown } from './useOutsideMousedown';\n\nconst rootStyles = {\n base: cssProps`${{\n boxSizing: 'border-box',\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-popup-bg-color)',\n border: '1px solid var(--oj-c-PRIVATE-DO-NOT-USE-popup-border-color)',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md)',\n boxShadow: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-dropdown-box-shadow)',\n maxHeight: 'inherit',\n display: 'flex',\n flexDirection: 'column'\n }}`\n};\n\ntype FloatingProps = ComponentProps<typeof Floating>;\n\ntype Props = {\n anchorRef: MutableRef<HTMLElement | null>;\n children?: ComponentChildren;\n dropdownRef: MutableRef<HTMLElement | null>;\n id?: string;\n isOpen?: boolean;\n onAutoDismiss?: (event?: Event) => void;\n onPosition?: FloatingProps['onPosition'];\n};\n\nconst DEFAULT_PLACEMENT = 'bottom-start';\n\nexport function Dropdown({\n anchorRef,\n children,\n dropdownRef,\n id,\n isOpen,\n onAutoDismiss,\n onPosition\n}: Props) {\n const [placement, setPlacement] = useState<FloatingProps['placement']>(DEFAULT_PLACEMENT);\n\n useEffect(() => {\n // reset the placement to the default when the dropdown closes, not opens, so that it doesn't\n // initially open in the previous position and then move to the default position on the\n // rerender after the state is updated\n if (!isOpen) {\n setPlacement(DEFAULT_PLACEMENT);\n }\n }, [isOpen, setPlacement]);\n\n const handlePosition = useCallback(\n (positionData: PositionData) => {\n // update the placement so that the dropdown stays where it is until there is a collision,\n // i.e. it no longer fits, instead of letting it try to move back to the default position\n // on every render\n setPlacement(positionData.placement);\n\n // call the callback that was passed in through props\n onPosition?.(positionData);\n },\n [onPosition, setPlacement]\n );\n\n const handleAutoDismiss = useCallback(\n (event: Event) => {\n onAutoDismiss?.(event);\n },\n [onAutoDismiss]\n );\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.defaultPrevented || isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.ESC:\n case KEYS.TAB:\n handleAutoDismiss(event);\n break;\n }\n },\n [handleAutoDismiss]\n );\n\n // use the mousedown event to be consistent with legacy JET and so that we're hiding the dropdown\n // on the same event where focus will transfer\n useOutsideMousedown({\n isDisabled: !isOpen,\n ref: [anchorRef, dropdownRef],\n handler: handleAutoDismiss\n });\n\n // TODO: get dropdown y (mainAxis) offset from --oj-c-PRIVATE-DO-NOT-USE-private-core-global-dropdown-offset\n const offsetValue = { mainAxis: 4, crossAxis: 0 };\n\n const inlineStyle = {\n minWidth: `${anchorRef.current?.offsetWidth}px`\n };\n\n return !isOpen ? null : (\n <Layer logicalParentRef={anchorRef}>\n <Floating\n anchorRef={anchorRef}\n sizeOptions={{\n isMaxHeightAdjusted: true,\n maxHeightCeiling: 400\n }}\n ref={dropdownRef}\n placement={placement}\n offsetValue={offsetValue}\n onPosition={handlePosition}>\n <div\n class={rootStyles.base}\n id={id}\n style={inlineStyle}\n onKeyDown={handleKeyDown}\n onMouseDown={preventDefaultForCurrentTarget}>\n {children}\n </div>\n </Floating>\n </Layer>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useCallback } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { DropdownArrowIcon } from '../UNSAFE_ThemedIcons';\nimport { classNames } from '../utils/UNSAFE_classNames';\n\ntype Props = {\n isDisabled?: boolean;\n onClick?: () => void;\n size?: 'md' | 'sm';\n};\n\n// TODO: replace this with var(--oj-button-height) once it is available\nconst ojButtonHeight = '2.75rem';\n// TODO: replace this with var(--oj-button-sm-height) once it is available\nconst ojButtonSmHeight = '2.25rem';\n// TODO: replace this with var(--oj-button-border-radius) once it is available\nconst ojButtonBorderRadius = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md)';\n// TODO: replace this with var(--oj-button-borderless-chrome-text-color) once it is available\nconst ojButtonBorderlessChromeTextColor = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)';\n// TODO: replace this with var (--oj-button-borderless-chrome-text-color-disabled) once it is available\nconst ojButtonBorderlessChromeTextColorDisabled =\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-disabled)';\n// TODO: replace this with var(--oj-button-borderless-chrome-text-color-hover) once it is available\nconst ojButtonBorderlessChromeTextColorHover =\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)';\n// TODO: replace this with var(--oj-button-borderless-chrome-bg-color-hover) once it is available\nconst ojButtonBorderlessChromeBgColorHover = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-hover)';\n// TODO: replace this with var(--oj-button-borderless-chrome-border-color-hover) once it is available\nconst ojButtonBorderlessChromeBorderColorHover = 'transparent';\n// TODO: replace this with var(--oj-c-PRIVATE-DO-NOT-USE-button-icon-size) once it is available\nconst ojButtonIconSize = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-icon-size-lg)';\n\nconst rootStyles = {\n base: cssProps`${{\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n\n paddingInline: 0,\n paddingBlock: 0,\n borderRadius: ojButtonBorderRadius,\n color: ojButtonBorderlessChromeTextColor,\n fontSize: ojButtonIconSize\n }}`,\n\n sizeMd: cssProps`${{\n width: ojButtonHeight,\n height: ojButtonHeight,\n lineHeight: ojButtonHeight\n }}`,\n\n sizeSm: cssProps`${{\n width: ojButtonSmHeight,\n height: ojButtonSmHeight,\n lineHeight: ojButtonSmHeight\n }}`,\n\n enabled: cssProps`${{\n cursor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-cursor-clickable)',\n\n '&:hover': {\n color: ojButtonBorderlessChromeTextColorHover,\n backgroundColor: ojButtonBorderlessChromeBgColorHover,\n borderColor: ojButtonBorderlessChromeBorderColorHover\n }\n }}`,\n\n disabled: cssProps`${{\n color: ojButtonBorderlessChromeTextColorDisabled\n }}`\n};\n\nconst noop = () => {};\n\nexport function DropdownArrow({ isDisabled = false, onClick, size = 'md' }: Props) {\n const preventDefault = useCallback((event: Event) => {\n event.preventDefault();\n }, []);\n const { pressProps } = usePress(onClick ?? noop, { isDisabled });\n\n const styleClasses = classNames([\n rootStyles.base,\n size === 'sm' ? rootStyles.sizeSm : rootStyles.sizeMd,\n isDisabled ? rootStyles.disabled : rootStyles.enabled\n ]);\n\n return (\n <span\n aria-hidden=\"true\"\n class={styleClasses}\n tabIndex={-1}\n onMouseDown={preventDefault}\n {...pressProps}>\n <DropdownArrowIcon />\n </span>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChildren } from 'preact';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\n\nconst rootStyles = {\n base: cssProps`${{\n paddingLeft: '0',\n paddingRight: '0',\n margin: '1px 0 2px 0',\n position: 'relative',\n overflowX: 'hidden',\n overflowY: 'auto',\n // '-webkit-tap-highlight-color': 'transparent',\n boxSizing: 'border-box',\n\n display: 'flex',\n flexDirection: 'column'\n }}`,\n\n // TODO: These should really be applied directly to the child ListView so that the content\n // displays under the padding when scrolled, but we can't apply styles to the child collection.\n // TODO: Also need to figure out how to determine whether the collection is a ListView (in\n // the collectionRenderer case) in order to apply this styling.\n topGap: cssProps`${{\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)'\n }}`,\n bottomGap: cssProps`${{\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)'\n }}`,\n\n loading: cssProps`${{\n minHeight: 'calc(10 * var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x))'\n }}`\n};\n\ntype Props = {\n children?: ComponentChildren;\n hasBottomGap?: boolean;\n isLoading?: boolean;\n};\n\nexport function DropdownList({ children, hasBottomGap = true, isLoading = false }: Props) {\n const styleClasses = classNames([\n rootStyles.base,\n rootStyles.topGap,\n hasBottomGap && rootStyles.bottomGap,\n isLoading && rootStyles.loading\n ]);\n return (\n <div class={styleClasses} onMouseDown={preventDefaultForCurrentTarget}>\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 */\n\nimport { ComponentProps } from 'preact';\nimport { useCallback } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\n\ntype InlineUserAssistanceProps = Pick<\n ComponentProps<typeof InlineUserAssistance>,\n 'assistiveText' | 'fieldLabel' | 'helpSourceLink' | 'helpSourceText' | 'userAssistanceDensity'\n>;\n\nconst rootStyles = cssProps`${{\n borderTopColor: 'rgba(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190), 0.1)',\n borderTopStyle: 'solid',\n borderTopWidth: '1px',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)'\n}}`;\n\nexport function DropdownUserAssistance(props: InlineUserAssistanceProps) {\n // Prevent the focus from transferring when the user clicks on an empty/non-clickable area\n // of the user assistance\n const handleMouseDown = useCallback((event: MouseEvent) => {\n // Don't call preventDefault when the user clicks on the help source link, so that the\n // focus is allowed to transfer in that case.\n if ((event.target as Element)?.tagName !== 'A') {\n event.preventDefault();\n }\n }, []);\n\n return (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={rootStyles} onMouseDown={handleMouseDown}>\n <InlineUserAssistance {...props} />\n </div>\n </FormFieldContext.Provider>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\n\nconst rootStyles = cssProps`${{\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)'\n}}`;\n\nexport function EmptyResults() {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n // TODO: figure out whether we need a separate resource string for this message;\n // (JET-53984 - Preact Select* components: empty results message)\n\n // call preventDefault for mousedown on this div so that focus does not transfer from\n // the input\n return (\n <div class={rootStyles} onMouseDown={preventDefaultForCurrentTarget}>\n {translations.select_noMatchesFound()}\n </div>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { DataState } from '../UNSAFE_Collection';\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nexport function isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n\nexport function isBeforeDataFetch<K, D>(data: DataState<K, D>) {\n return data.sizePrecision === 'atLeast' && data.totalSize === 0;\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 { MutableRef, useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport { CurrentKeyDetail, DataState } from '../UNSAFE_Collection';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { isControlOrFunctionKey, isSimpleClick, KEYS } from './eventUtils';\n\ntype UseSelectCommonProps<K, D> = {\n data?: DataState<K, D> | null;\n inputRef: MutableRef<HTMLInputElement>;\n isFocused?: boolean;\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n};\n\n/**\n * Hook that manages state and behavior for a Select* component. This hook creates state\n * variables and event listeners, returning properties to apply to components internally\n * rendered by a Select* component, as well as state information.\n *\n * @param data Specifies data for the dropdown list.\n * @param inputRef Ref to the input element.\n * @param isFocused Specifies whether the component has focus.\n * @param onFilter Callback function to trigger loading data for the dropdown list,\n * which may or may not be filtered by user entered text.\n *\n * @returns Component state and event listeners.\n */\nexport function useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused,\n onFilter\n}: UseSelectCommonProps<K, D>) {\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const [isDropdownOpen, setDropdownOpen] = useState(false);\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [currentRow, setCurrentRow] = useState<{ rowKey?: K }>({\n rowKey: undefined\n });\n const [selectedKeys, setSelectedKeys] = useState<Set<K>>();\n const [isUserFiltering, setUserFiltering] = useState(false);\n const [userInput, setUserInput] = useState<string>();\n const [searchText, setSearchText] = useState<string>();\n\n const onMouseDown = useCallback(\n (event: MouseEvent) => {\n // const target = event.target as HTMLElement;\n if (event.defaultPrevented || !isSimpleClick(event)) {\n return;\n }\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n // this is needed to focus the input when clicking on the inside label when there is no\n // value; otherwise the component looks focused but doesn't actually have physical focus\n setTimeout(function () {\n inputRef.current?.focus();\n }, 0);\n },\n [isDropdownOpen]\n );\n\n const handleDropdownArrowClick = useCallback(() => {\n setDropdownOpen(!isDropdownOpen);\n\n // focus the input so that if the user Tabs afterwards, it loses focus and the dropdown closes\n inputRef.current?.focus();\n }, [isDropdownOpen]);\n\n const handleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n switch (event?.type) {\n case 'keydown':\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.ESC:\n // focus the input when the user cancels out of the dropdown\n inputRef.current?.focus();\n break;\n default:\n break;\n }\n break;\n case 'mousedown':\n // if focus is in the dropdown, focus the input before the dropdown is hidden so that\n // focus will transfer correctly when the target is not focusable;\n // otherwise the text cursor appears in the input again\n if (dropdownRef.current?.contains(document.activeElement)) {\n inputRef.current?.focus();\n }\n break;\n default:\n break;\n }\n }\n },\n [isDropdownOpen]\n );\n\n const handleDropdownPosition = useCallback((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n\n const handleUpDownArrowKeys = useCallback(\n (event: KeyboardEvent) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n } else {\n // transfer physical focus into the dropdown\n const firstFocusableElem = dropdownRef.current?.querySelector('[tabindex=\"0\"]');\n (firstFocusableElem as HTMLElement)?.focus();\n\n // if there is no current item set, make the first item current\n if (data !== undefined && currentRow.rowKey === undefined) {\n setCurrentRow({ rowKey: data?.data?.[0]?.metadata?.key });\n }\n }\n\n // prevent the page from scrolling\n event.preventDefault();\n },\n [currentRow, data, isDropdownOpen]\n );\n\n const handleMainFieldKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // const target = event.target as HTMLElement;\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.PAGE_UP:\n case KEYS.PAGE_DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n\n return;\n\n case KEYS.UP:\n case KEYS.DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n break;\n\n case KEYS.ESC:\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n event.preventDefault();\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to stop editing the row when we close\n // the dropdown\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleMainFieldKeyUp = useCallback(\n (event: KeyboardEvent) => {\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.UP:\n case KEYS.DOWN:\n handleUpDownArrowKeys(event);\n break;\n\n default:\n break;\n }\n },\n [handleUpDownArrowKeys]\n );\n\n const handleInput = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n setUserFiltering(true);\n setUserInput(detail.value);\n const str = detail.value?.trim();\n setSearchText(str);\n onFilter?.({ searchText: str });\n },\n [isDropdownOpen, onFilter]\n );\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K>) => {\n setCurrentRow({ rowKey: detail.value });\n }, []);\n\n const stopFiltering = useCallback(() => {\n setUserFiltering(false);\n setUserInput('');\n setSearchText('');\n }, []);\n\n // the user is not actively filtering if the dropdown is closed and the component doesn't\n // have focus\n useEffect(() => {\n if (!isDropdownOpen && !isFocused && isUserFiltering) {\n stopFiltering();\n }\n }, [isDropdownOpen, isFocused, isUserFiltering]);\n\n // need to call onFilter with undefined searchText when the dropdown opens and the\n // user is NOT filtering\n useEffect(() => {\n if (isDropdownOpen && !isUserFiltering) {\n onFilter?.({ searchText: undefined });\n }\n }, [isDropdownOpen, isUserFiltering, onFilter]);\n\n // when the dropdown closes, reset the isDropdownAbove flag\n useEffect(() => {\n if (!isDropdownOpen) {\n setDropdownAbove(false);\n }\n }, [isDropdownOpen]);\n\n return {\n currentRow,\n dropdownRef,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n // the field should remain to look focused while the dropdown is open,\n // in case physical focus is in the dropdown\n isFocused: isFocused || isDropdownOpen,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n selectedKeys,\n setCurrentRow,\n setDropdownOpen,\n setSelectedKeys,\n stopFiltering,\n userInput\n };\n}\n"],"names":["renderItemText","item","itemText","_a","data","hasOwnProperty","retData","String","Logger","error","noOp","loadingIndicator","_jsx","jsx","SkeletonContainer","Object","assign","minimumCount","children","KEYS","TAB","ENTER","ESC","SPACE","LEFT","UP","RIGHT","DOWN","SHIFT_LEFT","SHIFT_RIGHT","CTRL_LEFT","CTRL_RIGHT","ALT_LEFT","ALT_RIGHT","PAGE_UP","PAGE_DOWN","HOME","END","BACKSPACE","DELETE","isControlKey","event","code","metaKey","ctrlKey","isFunctionKey","test","isControlOrFunctionKey","isSimpleClick","button","preventDefaultForCurrentTarget","currentTarget","target","preventDefault","getDocument","node","ownerDocument","document","useOutsideMousedown","isDisabled","disabled","ref","handler","useEffect","refs","coerceArray","length","findIndex","elRef","current","onMouseDown","contains","every","isPointOutside","firstElRef","doc","addEventListener","removeEventListener","rootStyles","DEFAULT_PLACEMENT","noop","accessibleSummary","currentItemVariant","currentKey","onCurrentKeyChange","onItemAction","onLoadRange","onSelectionChange","searchText","selectedKeys","selectionMode","listItemRenderer","useCallback","listItemContext","key","metadata","_jsxs","Flex","selector","class","HighlightText","matchText","renderedItemText","keys","useMemo","all","Set","List","allowTabbableMode","role","context","anchorRef","dropdownRef","id","isOpen","onAutoDismiss","onPosition","setPlacement","handlePosition","positionData","placement","handleAutoDismiss","handleKeyDown","inlineStyle","isMaxHeightAdjusted","maxHeightCeiling","onClick","size","pressProps","usePress","hasBottomGap","isLoading","styleClasses","props","handleMouseDown","FormFieldContext","Provider","value","isFocused","InlineUserAssistance","translations","useTranslationBundle","select_noMatchesFound","sizePrecision","totalSize","deviceType","getClientHints","inputRef","onFilter","mainFieldRef","useRef","isDropdownOpen","setDropdownOpen","useState","isDropdownAbove","setDropdownAbove","currentRow","setCurrentRow","rowKey","undefined","setSelectedKeys","isUserFiltering","setUserFiltering","userInput","setUserInput","setSearchText","defaultPrevented","setTimeout","focus","handleDropdownArrowClick","handleDropdownAutoDismiss","type","_b","activeElement","_c","handleDropdownPosition","startsWith","handleUpDownArrowKeys","firstFocusableElem","querySelector","_d","handleMainFieldKeyDown","stopPropagation","handleMainFieldKeyUp","handleInput","detail","str","trim","stopFiltering"],"mappings":"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"}
1
+ {"version":3,"file":"PRIVATE_SelectCommon.js","sources":["../../src/PRIVATE_SelectCommon/itemTextUtils.ts","../../src/PRIVATE_SelectCommon/DefaultList.tsx","../../src/PRIVATE_SelectCommon/eventUtils.ts","../../src/PRIVATE_SelectCommon/useOutsideMousedown.ts","../../src/PRIVATE_SelectCommon/Dropdown.tsx","../../src/PRIVATE_SelectCommon/DropdownArrow.tsx","../../src/PRIVATE_SelectCommon/DropdownList.tsx","../../src/PRIVATE_SelectCommon/DropdownUserAssistance.tsx","../../src/PRIVATE_SelectCommon/EmptyResults.tsx","../../src/PRIVATE_SelectCommon/selectUtils.ts","../../src/PRIVATE_SelectCommon/useSelectCommon.ts"],"sourcesContent":["/**\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 { Item } from '../utils/UNSAFE_dataProvider';\nimport { Logger } from '../utils/UNSAFE_logger';\nimport { ItemTextFunctionType, ItemTextType } from '../utils/UNSAFE_selectUtils';\n\nexport function renderItemText<K, D>(item: Item<K, D>, itemText: ItemTextType<K, D>) {\n // if item-text is a string and the data has the specified field, return it;\n // otherwise log an error\n if (typeof itemText === 'string') {\n if ((item.data as any)?.hasOwnProperty(itemText)) {\n const retData = item.data[itemText];\n return String(retData);\n }\n Logger.error('SelectMultiple: itemText specifies field that does not exist: ' + itemText);\n // return undefined if the field doesn't exist\n return undefined;\n }\n // if item-text is a function, call it to create a display label\n return (itemText as ItemTextFunctionType<K, D>)(item);\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 } from 'preact';\nimport { useCallback, useMemo } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport {\n CurrentKeyDetail,\n DataState,\n ItemActionDetail,\n ListItemContext,\n SelectionDetail\n} from '../UNSAFE_Collection';\nimport { HighlightText } from '../UNSAFE_HighlightText';\nimport { List, SkeletonContainer } from '../PRIVATE_List';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Skeleton } from '../UNSAFE_Skeleton';\nimport { Keys } from '../utils/UNSAFE_keys';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { renderItemText } from './itemTextUtils';\n\nconst itemStyles = cssProps`${{\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)'\n}}`;\n\ntype PickedPropsFromList = Pick<\n ComponentProps<typeof List>,\n 'accessibleSummary' | 'currentItemVariant' | 'selectionMode'\n>;\n\ntype Props<K extends string | number, D extends Record<string, any>> = PickedPropsFromList & {\n itemText: ItemTextType<K, D>;\n // props from List that we constrain or unconstrain\n currentKey?: K;\n data?: DataState<K, D> | null;\n onCurrentKeyChange?: (detail: CurrentKeyDetail<K>) => void;\n onItemAction?: (detail: ItemActionDetail<K, D>) => void;\n onLoadRange?: ComponentProps<typeof List>['onLoadRange'];\n onSelectionChange?: (detail: SelectionDetail<K>) => void;\n searchText?: string;\n selectedKeys?: Set<K>;\n};\n\nconst noOp = () => {};\n\nexport function DefaultList<K extends string | number, D extends Record<string, any>>({\n accessibleSummary,\n currentItemVariant,\n currentKey,\n data,\n itemText,\n onCurrentKeyChange,\n onItemAction,\n onLoadRange = noOp,\n onSelectionChange,\n searchText,\n selectedKeys,\n selectionMode\n}: Props<K, D>) {\n const listItemRenderer = useCallback(\n (listItemContext: ListItemContext<K, D>) => {\n const itemContext = {\n data: listItemContext.data,\n key: listItemContext.metadata.key,\n metadata: listItemContext.metadata\n };\n const renderedItemText = renderItemText(itemContext, itemText) as string;\n return (\n <Flex>\n {listItemContext.selector && listItemContext.selector()}\n <div class={itemStyles}>\n <HighlightText matchText={searchText}>{renderedItemText}</HighlightText>\n </div>\n </Flex>\n );\n },\n [itemText, searchText]\n );\n\n const keys = useMemo(() => {\n return { all: false, keys: selectedKeys ?? new Set<K>() };\n }, [selectedKeys]) as Keys<K>;\n\n return (\n <List<K, D>\n accessibleSummary={accessibleSummary}\n allowTabbableMode={false}\n currentItemVariant={currentItemVariant}\n currentKey={currentKey}\n data={data ?? null}\n loadingIndicator={loadingIndicator}\n onCurrentKeyChange={onCurrentKeyChange}\n onItemAction={onItemAction}\n onLoadRange={onLoadRange}\n onSelectionChange={onSelectionChange}\n role=\"listbox\"\n selectedKeys={keys}\n selectionMode={selectionMode}>\n {(context: ListItemContext<K, D>) => listItemRenderer(context)}\n </List>\n );\n}\n\n/**\n * Custom 3 Skeleton loader for select multiple\n * TODO: to remove this once https://jira.oraclecorp.com/jira/browse/JET-51527 is solved\n */\nconst loadingIndicator = (\n <SkeletonContainer minimumCount={3}>\n {() => {\n return (\n <Flex height=\"12x\" align=\"center\">\n <Skeleton height=\"4x\" />\n </Flex>\n );\n }}\n </SkeletonContainer>\n);\n","export const KEYS = {\n TAB: 'Tab',\n ENTER: 'Enter',\n ESC: 'Escape',\n SPACE: 'Space',\n LEFT: 'ArrowLeft',\n UP: 'ArrowUp',\n RIGHT: 'ArrowRight',\n DOWN: 'ArrowDown',\n SHIFT_LEFT: 'ShiftLeft',\n SHIFT_RIGHT: 'ShiftRight',\n CTRL_LEFT: 'ControlLeft',\n CTRL_RIGHT: 'ControlRight',\n ALT_LEFT: 'AltLeft',\n ALT_RIGHT: 'AltRight',\n PAGE_UP: 'PageUp',\n PAGE_DOWN: 'PageDown',\n HOME: 'Home',\n END: 'End',\n BACKSPACE: 'Backspace',\n DELETE: 'Delete'\n};\n\nexport const isControlKey = (event: KeyboardEvent) => {\n switch (event.code) {\n case KEYS.SHIFT_LEFT:\n case KEYS.SHIFT_RIGHT:\n case KEYS.CTRL_LEFT:\n case KEYS.CTRL_RIGHT:\n case KEYS.ALT_LEFT:\n case KEYS.ALT_RIGHT:\n return true;\n default:\n return event.metaKey || event.ctrlKey;\n }\n};\n\nexport const isFunctionKey = (event: KeyboardEvent) => {\n return /\\bF([1-9]|1[0-2])\\b/i.test(event.code);\n};\n\nexport const isControlOrFunctionKey = (event: KeyboardEvent) => {\n return isControlKey(event) || isFunctionKey(event);\n};\n\nexport const isSimpleClick = (event: MouseEvent) => {\n return event.button === 0 && !event.ctrlKey;\n};\n\nexport const preventDefaultForCurrentTarget = (event: MouseEvent) => {\n if (event.currentTarget === event.target) {\n event.preventDefault();\n }\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\n/**\n * `useOutsideMousedown` hook for capturing mousedown outside of an element\n */\nimport { RefObject } from 'preact';\nimport { useEffect } from 'preact/hooks';\nimport { coerceArray } from '../utils/UNSAFE_arrayUtils';\n\ntype Props = {\n /**\n * If true outside mousedown is disabled\n */\n isDisabled?: boolean;\n /**\n * Reference to element or array of elements relative to which outside mousedown is performed\n */\n ref: RefObject<HTMLElement> | RefObject<HTMLElement>[];\n /**\n * Outside mousedown callback\n */\n handler?: (event: MouseEvent) => void;\n};\n\nconst isPointOutside = (event: Event, ref: RefObject<HTMLElement>[]) => {\n const target = event.target as HTMLElement;\n if (target) {\n const doc = getDocument(target);\n if (!doc.contains(target)) return false;\n }\n return ref.every((elRef) => !elRef.current?.contains(target));\n};\n\nconst getDocument = (node?: Node): Document => node?.ownerDocument ?? document;\n\nexport const useOutsideMousedown = ({ isDisabled: disabled = false, ref, handler }: Props) => {\n useEffect(() => {\n const refs = coerceArray(ref);\n if (\n !handler ||\n disabled ||\n (refs.length > 0 && refs.findIndex((elRef) => elRef.current === null) > -1)\n )\n return;\n\n const onMouseDown = (event: MouseEvent) => {\n if (isPointOutside(event, refs)) {\n handler?.(event);\n }\n };\n const firstElRef = refs[0];\n const doc = getDocument(firstElRef.current!);\n if (doc) {\n doc.addEventListener('mousedown', onMouseDown, true);\n\n return () => {\n doc.removeEventListener('mousedown', onMouseDown, true);\n };\n }\n return undefined;\n }, [disabled, handler, ref]);\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 { ComponentChildren, ComponentProps } from 'preact';\nimport { MutableRef, useCallback, useEffect, useState } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Floating, PositionData } from '../UNSAFE_Floating';\nimport { Layer } from '../UNSAFE_Layer';\nimport { isControlOrFunctionKey, KEYS, preventDefaultForCurrentTarget } from './eventUtils';\nimport { useOutsideMousedown } from './useOutsideMousedown';\n\nconst rootStyles = {\n base: cssProps`${{\n boxSizing: 'border-box',\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-popup-bg-color)',\n border: '1px solid var(--oj-c-PRIVATE-DO-NOT-USE-popup-border-color)',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md)',\n boxShadow: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-dropdown-box-shadow)',\n maxHeight: 'inherit',\n display: 'flex',\n flexDirection: 'column'\n }}`\n};\n\ntype FloatingProps = ComponentProps<typeof Floating>;\n\ntype Props = {\n anchorRef: MutableRef<HTMLElement | null>;\n children?: ComponentChildren;\n dropdownRef: MutableRef<HTMLElement | null>;\n id?: string;\n isOpen?: boolean;\n onAutoDismiss?: (event?: Event) => void;\n onPosition?: FloatingProps['onPosition'];\n};\n\nconst DEFAULT_PLACEMENT = 'bottom-start';\n\nexport function Dropdown({\n anchorRef,\n children,\n dropdownRef,\n id,\n isOpen,\n onAutoDismiss,\n onPosition\n}: Props) {\n const [placement, setPlacement] = useState<FloatingProps['placement']>(DEFAULT_PLACEMENT);\n\n useEffect(() => {\n // reset the placement to the default when the dropdown closes, not opens, so that it doesn't\n // initially open in the previous position and then move to the default position on the\n // rerender after the state is updated\n if (!isOpen) {\n setPlacement(DEFAULT_PLACEMENT);\n }\n }, [isOpen, setPlacement]);\n\n const handlePosition = useCallback(\n (positionData: PositionData) => {\n // update the placement so that the dropdown stays where it is until there is a collision,\n // i.e. it no longer fits, instead of letting it try to move back to the default position\n // on every render\n setPlacement(positionData.placement);\n\n // call the callback that was passed in through props\n onPosition?.(positionData);\n },\n [onPosition, setPlacement]\n );\n\n const handleAutoDismiss = useCallback(\n (event: Event) => {\n onAutoDismiss?.(event);\n },\n [onAutoDismiss]\n );\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.defaultPrevented || isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.ESC:\n case KEYS.TAB:\n handleAutoDismiss(event);\n break;\n }\n },\n [handleAutoDismiss]\n );\n\n // use the mousedown event to be consistent with legacy JET and so that we're hiding the dropdown\n // on the same event where focus will transfer\n useOutsideMousedown({\n isDisabled: !isOpen,\n ref: [anchorRef, dropdownRef],\n handler: handleAutoDismiss\n });\n\n // TODO: get dropdown y (mainAxis) offset from --oj-c-PRIVATE-DO-NOT-USE-private-core-global-dropdown-offset\n const offsetValue = { mainAxis: 4, crossAxis: 0 };\n\n const inlineStyle = {\n minWidth: `${anchorRef.current?.offsetWidth}px`\n };\n\n return !isOpen ? null : (\n <Layer logicalParentRef={anchorRef}>\n <Floating\n anchorRef={anchorRef}\n sizeOptions={{\n isMaxHeightAdjusted: true,\n maxHeightCeiling: 400\n }}\n ref={dropdownRef}\n placement={placement}\n offsetValue={offsetValue}\n onPosition={handlePosition}>\n <div\n class={rootStyles.base}\n id={id}\n style={inlineStyle}\n onKeyDown={handleKeyDown}\n onMouseDown={preventDefaultForCurrentTarget}>\n {children}\n </div>\n </Floating>\n </Layer>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useCallback } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { DropdownArrowIcon } from '../UNSAFE_ThemedIcons';\nimport { classNames } from '../utils/UNSAFE_classNames';\n\ntype Props = {\n isDisabled?: boolean;\n onClick?: () => void;\n size?: 'md' | 'sm';\n};\n\n// TODO: replace this with var(--oj-button-height) once it is available\nconst ojButtonHeight = '2.75rem';\n// TODO: replace this with var(--oj-button-sm-height) once it is available\nconst ojButtonSmHeight = '2.25rem';\n// TODO: replace this with var(--oj-button-border-radius) once it is available\nconst ojButtonBorderRadius = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md)';\n// TODO: replace this with var(--oj-button-borderless-chrome-text-color) once it is available\nconst ojButtonBorderlessChromeTextColor = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)';\n// TODO: replace this with var (--oj-button-borderless-chrome-text-color-disabled) once it is available\nconst ojButtonBorderlessChromeTextColorDisabled =\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-disabled)';\n// TODO: replace this with var(--oj-button-borderless-chrome-text-color-hover) once it is available\nconst ojButtonBorderlessChromeTextColorHover =\n 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)';\n// TODO: replace this with var(--oj-button-borderless-chrome-bg-color-hover) once it is available\nconst ojButtonBorderlessChromeBgColorHover = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-hover)';\n// TODO: replace this with var(--oj-button-borderless-chrome-border-color-hover) once it is available\nconst ojButtonBorderlessChromeBorderColorHover = 'transparent';\n// TODO: replace this with var(--oj-c-PRIVATE-DO-NOT-USE-button-icon-size) once it is available\nconst ojButtonIconSize = 'var(--oj-c-PRIVATE-DO-NOT-USE-core-icon-size-lg)';\n\nconst rootStyles = {\n base: cssProps`${{\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n\n paddingInline: 0,\n paddingBlock: 0,\n borderRadius: ojButtonBorderRadius,\n color: ojButtonBorderlessChromeTextColor,\n fontSize: ojButtonIconSize\n }}`,\n\n sizeMd: cssProps`${{\n width: ojButtonHeight,\n height: ojButtonHeight,\n lineHeight: ojButtonHeight\n }}`,\n\n sizeSm: cssProps`${{\n width: ojButtonSmHeight,\n height: ojButtonSmHeight,\n lineHeight: ojButtonSmHeight\n }}`,\n\n enabled: cssProps`${{\n cursor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-cursor-clickable)',\n\n '&:hover': {\n color: ojButtonBorderlessChromeTextColorHover,\n backgroundColor: ojButtonBorderlessChromeBgColorHover,\n borderColor: ojButtonBorderlessChromeBorderColorHover\n }\n }}`,\n\n disabled: cssProps`${{\n color: ojButtonBorderlessChromeTextColorDisabled\n }}`\n};\n\nconst noop = () => {};\n\nexport function DropdownArrow({ isDisabled = false, onClick, size = 'md' }: Props) {\n const preventDefault = useCallback((event: Event) => {\n event.preventDefault();\n }, []);\n const { pressProps } = usePress(onClick ?? noop, { isDisabled });\n\n const styleClasses = classNames([\n rootStyles.base,\n size === 'sm' ? rootStyles.sizeSm : rootStyles.sizeMd,\n isDisabled ? rootStyles.disabled : rootStyles.enabled\n ]);\n\n return (\n <span\n aria-hidden=\"true\"\n class={styleClasses}\n tabIndex={-1}\n onMouseDown={preventDefault}\n {...pressProps}>\n <DropdownArrowIcon />\n </span>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChildren } from 'preact';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\n\nconst rootStyles = {\n base: cssProps`${{\n paddingLeft: '0',\n paddingRight: '0',\n margin: '1px 0 2px 0',\n position: 'relative',\n overflowX: 'hidden',\n overflowY: 'auto',\n // '-webkit-tap-highlight-color': 'transparent',\n boxSizing: 'border-box',\n\n display: 'flex',\n flexDirection: 'column'\n }}`,\n\n // TODO: These should really be applied directly to the child ListView so that the content\n // displays under the padding when scrolled, but we can't apply styles to the child collection.\n // TODO: Also need to figure out how to determine whether the collection is a ListView (in\n // the collectionRenderer case) in order to apply this styling.\n topGap: cssProps`${{\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)'\n }}`,\n bottomGap: cssProps`${{\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)'\n }}`,\n\n loading: cssProps`${{\n minHeight: 'calc(10 * var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-4x))'\n }}`\n};\n\ntype Props = {\n children?: ComponentChildren;\n hasBottomGap?: boolean;\n isLoading?: boolean;\n};\n\nexport function DropdownList({ children, hasBottomGap = true, isLoading = false }: Props) {\n const styleClasses = classNames([\n rootStyles.base,\n rootStyles.topGap,\n hasBottomGap && rootStyles.bottomGap,\n isLoading && rootStyles.loading\n ]);\n return (\n <div class={styleClasses} onMouseDown={preventDefaultForCurrentTarget}>\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 */\n\nimport { ComponentProps } from 'preact';\nimport { useCallback } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\n\ntype InlineUserAssistanceProps = Pick<\n ComponentProps<typeof InlineUserAssistance>,\n 'assistiveText' | 'fieldLabel' | 'helpSourceLink' | 'helpSourceText' | 'userAssistanceDensity'\n>;\n\nconst rootStyles = cssProps`${{\n borderTopColor: 'rgba(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190), 0.1)',\n borderTopStyle: 'solid',\n borderTopWidth: '1px',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x)'\n}}`;\n\nexport function DropdownUserAssistance(props: InlineUserAssistanceProps) {\n // Prevent the focus from transferring when the user clicks on an empty/non-clickable area\n // of the user assistance\n const handleMouseDown = useCallback((event: MouseEvent) => {\n // Don't call preventDefault when the user clicks on the help source link, so that the\n // focus is allowed to transfer in that case.\n if ((event.target as Element)?.tagName !== 'A') {\n event.preventDefault();\n }\n }, []);\n\n return (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={rootStyles} onMouseDown={handleMouseDown}>\n <InlineUserAssistance {...props} />\n </div>\n </FormFieldContext.Provider>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\n\nconst rootStyles = cssProps`${{\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-3x)'\n}}`;\n\nexport function EmptyResults() {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n // TODO: figure out whether we need a separate resource string for this message;\n // (JET-53984 - Preact Select* components: empty results message)\n\n // call preventDefault for mousedown on this div so that focus does not transfer from\n // the input\n return (\n <div class={rootStyles} onMouseDown={preventDefaultForCurrentTarget}>\n {translations.select_noMatchesFound()}\n </div>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { DataState } from '../UNSAFE_Collection';\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nexport function isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n\nexport function isBeforeDataFetch<K, D>(data: DataState<K, D>) {\n return data.sizePrecision === 'atLeast' && data.totalSize === 0;\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 { MutableRef, useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport { CurrentKeyDetail, DataState } from '../UNSAFE_Collection';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { isControlOrFunctionKey, isSimpleClick, KEYS } from './eventUtils';\n\ntype UseSelectCommonProps<K, D> = {\n data?: DataState<K, D> | null;\n inputRef: MutableRef<HTMLInputElement>;\n isFocused?: boolean;\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n};\n\n/**\n * Hook that manages state and behavior for a Select* component. This hook creates state\n * variables and event listeners, returning properties to apply to components internally\n * rendered by a Select* component, as well as state information.\n *\n * @param data Specifies data for the dropdown list.\n * @param inputRef Ref to the input element.\n * @param isFocused Specifies whether the component has focus.\n * @param onFilter Callback function to trigger loading data for the dropdown list,\n * which may or may not be filtered by user entered text.\n *\n * @returns Component state and event listeners.\n */\nexport function useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused,\n onFilter\n}: UseSelectCommonProps<K, D>) {\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const [isDropdownOpen, setDropdownOpen] = useState(false);\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [currentRow, setCurrentRow] = useState<{ rowKey?: K }>({\n rowKey: undefined\n });\n const [selectedKeys, setSelectedKeys] = useState<Set<K>>();\n const [isUserFiltering, setUserFiltering] = useState(false);\n const [userInput, setUserInput] = useState<string>();\n const [searchText, setSearchText] = useState<string>();\n\n const onMouseDown = useCallback(\n (event: MouseEvent) => {\n // const target = event.target as HTMLElement;\n if (event.defaultPrevented || !isSimpleClick(event)) {\n return;\n }\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n // this is needed to focus the input when clicking on the inside label when there is no\n // value; otherwise the component looks focused but doesn't actually have physical focus\n setTimeout(function () {\n inputRef.current?.focus();\n }, 0);\n },\n [isDropdownOpen]\n );\n\n const handleDropdownArrowClick = useCallback(() => {\n setDropdownOpen(!isDropdownOpen);\n\n // focus the input so that if the user Tabs afterwards, it loses focus and the dropdown closes\n inputRef.current?.focus();\n }, [isDropdownOpen]);\n\n const handleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n switch (event?.type) {\n case 'keydown':\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.ESC:\n // focus the input when the user cancels out of the dropdown\n inputRef.current?.focus();\n break;\n default:\n break;\n }\n break;\n case 'mousedown':\n // if focus is in the dropdown, focus the input before the dropdown is hidden so that\n // focus will transfer correctly when the target is not focusable;\n // otherwise the text cursor appears in the input again\n if (dropdownRef.current?.contains(document.activeElement)) {\n inputRef.current?.focus();\n }\n break;\n default:\n break;\n }\n }\n },\n [isDropdownOpen]\n );\n\n const handleDropdownPosition = useCallback((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n\n const handleUpDownArrowKeys = useCallback(\n (event: KeyboardEvent) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n } else {\n // transfer physical focus into the dropdown\n const firstFocusableElem = dropdownRef.current?.querySelector('[tabindex=\"0\"]');\n (firstFocusableElem as HTMLElement)?.focus();\n\n // if there is no current item set, make the first item current\n if (data !== undefined && currentRow.rowKey === undefined) {\n setCurrentRow({ rowKey: data?.data?.[0]?.metadata?.key });\n }\n }\n\n // prevent the page from scrolling\n event.preventDefault();\n },\n [currentRow, data, isDropdownOpen]\n );\n\n const handleMainFieldKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // const target = event.target as HTMLElement;\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.PAGE_UP:\n case KEYS.PAGE_DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n\n return;\n\n case KEYS.UP:\n case KEYS.DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n break;\n\n case KEYS.ESC:\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n event.preventDefault();\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to stop editing the row when we close\n // the dropdown\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleMainFieldKeyUp = useCallback(\n (event: KeyboardEvent) => {\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.UP:\n case KEYS.DOWN:\n handleUpDownArrowKeys(event);\n break;\n\n default:\n break;\n }\n },\n [handleUpDownArrowKeys]\n );\n\n const handleInput = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n setUserFiltering(true);\n setUserInput(detail.value);\n const str = detail.value?.trim();\n setSearchText(str);\n onFilter?.({ searchText: str });\n },\n [isDropdownOpen, onFilter]\n );\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K>) => {\n setCurrentRow({ rowKey: detail.value });\n }, []);\n\n const stopFiltering = useCallback(() => {\n setUserFiltering(false);\n setUserInput('');\n setSearchText('');\n }, []);\n\n // the user is not actively filtering if the dropdown is closed and the component doesn't\n // have focus\n useEffect(() => {\n if (!isDropdownOpen && !isFocused && isUserFiltering) {\n stopFiltering();\n }\n }, [isDropdownOpen, isFocused, isUserFiltering]);\n\n // need to call onFilter with undefined searchText when the dropdown opens and the\n // user is NOT filtering\n useEffect(() => {\n if (isDropdownOpen && !isUserFiltering) {\n onFilter?.({ searchText: undefined });\n }\n }, [isDropdownOpen, isUserFiltering, onFilter]);\n\n // when the dropdown closes, reset the isDropdownAbove flag\n useEffect(() => {\n if (!isDropdownOpen) {\n setDropdownAbove(false);\n }\n }, [isDropdownOpen]);\n\n return {\n currentRow,\n dropdownRef,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n // the field should remain to look focused while the dropdown is open,\n // in case physical focus is in the dropdown\n isFocused: isFocused || isDropdownOpen,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n selectedKeys,\n setCurrentRow,\n setDropdownOpen,\n setSelectedKeys,\n stopFiltering,\n userInput\n };\n}\n"],"names":["renderItemText","item","itemText","_a","data","hasOwnProperty","retData","String","Logger","error","noOp","loadingIndicator","_jsx","jsx","SkeletonContainer","Object","assign","minimumCount","children","KEYS","TAB","ENTER","ESC","SPACE","LEFT","UP","RIGHT","DOWN","SHIFT_LEFT","SHIFT_RIGHT","CTRL_LEFT","CTRL_RIGHT","ALT_LEFT","ALT_RIGHT","PAGE_UP","PAGE_DOWN","HOME","END","BACKSPACE","DELETE","isControlKey","event","code","metaKey","ctrlKey","isFunctionKey","test","isControlOrFunctionKey","isSimpleClick","button","preventDefaultForCurrentTarget","currentTarget","target","preventDefault","getDocument","node","ownerDocument","document","useOutsideMousedown","isDisabled","disabled","ref","handler","useEffect","refs","coerceArray","length","findIndex","elRef","current","onMouseDown","contains","every","isPointOutside","firstElRef","doc","addEventListener","removeEventListener","rootStyles","DEFAULT_PLACEMENT","noop","accessibleSummary","currentItemVariant","currentKey","onCurrentKeyChange","onItemAction","onLoadRange","onSelectionChange","searchText","selectedKeys","selectionMode","listItemRenderer","useCallback","listItemContext","key","metadata","_jsxs","Flex","selector","class","HighlightText","matchText","renderedItemText","keys","useMemo","all","Set","List","allowTabbableMode","role","context","anchorRef","dropdownRef","id","isOpen","onAutoDismiss","onPosition","setPlacement","handlePosition","positionData","placement","handleAutoDismiss","handleKeyDown","inlineStyle","isMaxHeightAdjusted","maxHeightCeiling","onClick","size","pressProps","usePress","hasBottomGap","isLoading","styleClasses","props","handleMouseDown","FormFieldContext","Provider","value","isFocused","InlineUserAssistance","translations","useTranslationBundle","select_noMatchesFound","sizePrecision","totalSize","deviceType","getClientHints","inputRef","onFilter","mainFieldRef","useRef","isDropdownOpen","setDropdownOpen","useState","isDropdownAbove","setDropdownAbove","currentRow","setCurrentRow","rowKey","undefined","setSelectedKeys","isUserFiltering","setUserFiltering","userInput","setUserInput","setSearchText","defaultPrevented","setTimeout","focus","handleDropdownArrowClick","handleDropdownAutoDismiss","type","_b","activeElement","_c","handleDropdownPosition","startsWith","handleUpDownArrowKeys","firstFocusableElem","querySelector","_d","handleMainFieldKeyDown","stopPropagation","handleMainFieldKeyUp","handleInput","detail","str","trim","stopFiltering"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- define(["preact/jsx-runtime","preact/hooks","@testing-library/preact","chai","../../VirtualizedCollection-ed812ab7","../../PRIVATE_Collection","../../Collection-4c905202","preact","../../utils/UNSAFE_arrayUtils","../../hooks/UNSAFE_useViewportIntersect"],function(e,t,i,n,a,o,s,r,c,l){"use strict";function d({data:i}){const n=t.useRef(null),[o,s]=t.useState({offset:0,data:i.slice(0,25),totalSize:i.length,sizePrecision:"exact"});return e.jsx("div",Object.assign({style:"height: 200px;overflow: auto",ref:n},{children:e.jsx(a.VirtualizedCollection,Object.assign({data:o,itemSelector:".item",viewportConfig:{scroller:()=>n.current},onLoadRange:e=>{const t=e.offset,n=t+e.count,a=Object.assign(Object.assign({},o),{offset:t,data:i.slice(t,n)});s(a)}},{children:t=>e.jsx("div",Object.assign({className:"item",style:{height:"20px",padding:"0.75rem"}},{children:t.data.data.name}),t.data.metadata.key)}))}))}describe("Test VirtualizedCollection component",()=>{beforeEach(()=>{if(!window.IntersectionObserver){const e=jest.fn();e.mockReturnValue({observe:()=>null,unobserve:()=>null,disconnect:()=>null}),Object.defineProperty(global,"IntersectionObserver",{writable:!0,configurable:!0,value:e})}}),it("initial render",async function(){const t=function(e){const t=[];for(let i=0;i<e;i++)t.push({id:"i"+i,name:"Employee "+i});return t}(100).map(e=>({data:e,metadata:{key:e.id}})),a=i.render(e.jsx(d,{data:t})),o=await a.queryAllByText("Employee",{exact:!1});n.expect(o.length).eq(25)})})});
1
+ define(["preact/jsx-runtime","preact/hooks","@testing-library/preact","chai","../../VirtualizedCollection-8523118a","../../PRIVATE_Collection","../../Collection-0700cc46","preact","../../utils/UNSAFE_arrayUtils","../../hooks/UNSAFE_useViewportIntersect"],function(e,t,i,n,a,o,s,c,r,l){"use strict";function d({data:i}){const n=t.useRef(null),[o,s]=t.useState({offset:0,data:i.slice(0,25),totalSize:i.length,sizePrecision:"exact"});return e.jsx("div",Object.assign({style:"height: 200px;overflow: auto",ref:n},{children:e.jsx(a.VirtualizedCollection,Object.assign({data:o,itemSelector:".item",viewportConfig:{scroller:()=>n.current},onLoadRange:e=>{const t=e.offset,n=t+e.count,a=Object.assign(Object.assign({},o),{offset:t,data:i.slice(t,n)});s(a)}},{children:t=>e.jsx("div",Object.assign({className:"item",style:{height:"20px",padding:"0.75rem"}},{children:t.data.data.name}),t.data.metadata.key)}))}))}describe("Test VirtualizedCollection component",()=>{beforeEach(()=>{if(!window.IntersectionObserver){const e=jest.fn();e.mockReturnValue({observe:()=>null,unobserve:()=>null,disconnect:()=>null}),Object.defineProperty(global,"IntersectionObserver",{writable:!0,configurable:!0,value:e})}}),it("initial render",async function(){const t=function(e){const t=[];for(let i=0;i<e;i++)t.push({id:"i"+i,name:"Employee "+i});return t}(100).map(e=>({data:e,metadata:{key:e.id}})),a=i.render(e.jsx(d,{data:t})),o=await a.queryAllByText("Employee",{exact:!1});n.expect(o.length).eq(25)})})});
2
2
  //# sourceMappingURL=VirtualizedCollection.spec.js.map
@@ -1,2 +1,2 @@
1
- define(["exports","./VirtualizedCollection-ed812ab7","preact/jsx-runtime","preact/hooks","./PRIVATE_Collection","./Collection-4c905202","preact","./utils/UNSAFE_arrayUtils","./hooks/UNSAFE_useViewportIntersect"],function(e,t,i,o,r,l,a,c,n){"use strict";e.PLACEHOLDER_STYLE_CLASS=t.PLACEHOLDER_STYLE_CLASS,e.VirtualizedCollection=t.VirtualizedCollection,e.getVirtualizedRangeExtractor=t.getVirtualizedRangeExtractor,Object.defineProperty(e,"__esModule",{value:!0})});
1
+ define(["exports","./VirtualizedCollection-8523118a","preact/jsx-runtime","preact/hooks","./PRIVATE_Collection","./Collection-0700cc46","preact","./utils/UNSAFE_arrayUtils","./hooks/UNSAFE_useViewportIntersect"],function(e,t,i,o,r,l,a,c,n){"use strict";e.PLACEHOLDER_STYLE_CLASS=t.PLACEHOLDER_STYLE_CLASS,e.VirtualizedCollection=t.VirtualizedCollection,e.getVirtualizedRangeExtractor=t.getVirtualizedRangeExtractor,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=PRIVATE_VirtualizedCollection.js.map
@@ -0,0 +1,2 @@
1
+ define(["exports","./tslib.es6-24bf3861","preact/jsx-runtime","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useTabbableMode",'module',"./utils/UNSAFE_classNames","./utils/UNSAFE_interpolations/text","./utils/UNSAFE_mergeInterpolations","./hooks/UNSAFE_useFormFieldContext","./FormControlUtils-9994f9d8","./classNames-f11010a7"],function(e,a,s,t,i,l,r,o,n,b,d,c){"use strict";const u="_15abdsk",y="_1djn8ci",x="jy9q4d",F="_4md5dl",m="_1ilva8t",p="tp8vrc",f="_18p4bwj",_="_1m3n8eq";e.ReadonlyTextFieldInput=function(e){var{ariaDescribedBy:l,ariaLabel:r,ariaLabelledBy:j,autoFocus:v,as:L="div",elementRef:A,hasInsideLabel:N=!1,inlineUserAssistance:U,innerReadonlyField:g,rows:h,type:E,value:I="",variant:R}=e,S=a.__rest(e,["ariaDescribedBy","ariaLabel","ariaLabelledBy","autoFocus","as","elementRef","hasInsideLabel","inlineUserAssistance","innerReadonlyField","rows","type","value","variant"]);const{isFormLayout:C,isReadonly:k}=t.useFormContext(),{isLoading:w}=b.useFormFieldContext(),B=w?d.getLoadingAriaLabel():r,O=[...Object.values(o.textInterpolations)],T=n.mergeInterpolations(O),{class:M}=T(S),q=c.classNames(["textarea"!==L&&"oj-c-hide-scrollbar",u,"textarea"===L&&y,C&&!k&&x,"textarea"===R&&C&&!k&&F,C&&!k&&(N?m:f),"textarea"===R&&C&&!k&&N&&p,"textarea"!==R&&C&&!k&&_,M]),{isTabbable:D,tabbableModeProps:P}=i.useTabbableMode();return"input"===L?s.jsx("input",Object.assign({"aria-describedby":l,"aria-label":B,"aria-labelledby":j,autofocus:v,class:q,readonly:!0,ref:A,type:E,value:I},!D&&P)):"textarea"===L?s.jsx("textarea",Object.assign({"aria-describedby":l,"aria-label":B,"aria-labelledby":j,autofocus:v,class:q,readonly:!0,ref:A,rows:h},!D&&P,{children:I})):s.jsx("div",Object.assign({"aria-describedby":l,"aria-label":B,"aria-labelledby":j,"aria-readonly":!0,autofocus:v,class:q,ref:A,role:"textbox"},P,{children:I}))}});
2
+ //# sourceMappingURL=ReadonlyTextFieldInput-35c69ee9.js.map