@oracle/oraclejet-preact 14.0.10 → 14.1.1

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 (1908) hide show
  1. package/amd/Badge-1c3c4b6e.js +2 -0
  2. package/amd/Badge-1c3c4b6e.js.map +1 -0
  3. package/amd/BaseButton-cc1e314c.js +2 -0
  4. package/amd/BaseButton-cc1e314c.js.map +1 -0
  5. package/amd/Button-95c272b3.js +2 -0
  6. package/amd/Button-95c272b3.js.map +1 -0
  7. package/amd/Chip-51a40115.js +2 -0
  8. package/amd/Chip-51a40115.js.map +1 -0
  9. package/amd/ClearIcon-a4a3313c.js +2 -0
  10. package/amd/ClearIcon-a4a3313c.js.map +1 -0
  11. package/amd/Collection-b7c3d993.js +2 -0
  12. package/amd/Collection-b7c3d993.js.map +1 -0
  13. package/amd/ComponentMessage-2985b387.js +2 -0
  14. package/amd/ComponentMessage-2985b387.js.map +1 -0
  15. package/amd/ComponentMessageContainer-a274e23d.js +2 -0
  16. package/amd/ComponentMessageContainer-a274e23d.js.map +1 -0
  17. package/amd/Divider-7f5777f5.js +2 -0
  18. package/amd/Divider-7f5777f5.js.map +1 -0
  19. package/amd/FilePicker-ad8e39d8.js +2 -0
  20. package/amd/FilePicker-ad8e39d8.js.map +1 -0
  21. package/amd/Flex-6a69bc2a.js +2 -0
  22. package/amd/Flex-6a69bc2a.js.map +1 -0
  23. package/amd/Floating-fe475c26.js +2 -0
  24. package/amd/Floating-fe475c26.js.map +1 -0
  25. package/amd/FocusTrap-0a63cd07.js +2 -0
  26. package/amd/FocusTrap-0a63cd07.js.map +1 -0
  27. package/amd/FormControlUtils-9bf59f59.js +2 -0
  28. package/amd/FormControlUtils-9bf59f59.js.map +1 -0
  29. package/amd/Heading-f095427d.js +2 -0
  30. package/amd/Heading-f095427d.js.map +1 -0
  31. package/amd/HiddenAccessible-51ce05e2.js +2 -0
  32. package/amd/HiddenAccessible-51ce05e2.js.map +1 -0
  33. package/amd/HighlightText-ebb31a1f.js +2 -0
  34. package/amd/HighlightText-ebb31a1f.js.map +1 -0
  35. package/amd/Icon-bf3f7959.js +2 -0
  36. package/amd/Icon-bf3f7959.js.map +1 -0
  37. package/amd/Indexer-23af6e3c.js +2 -0
  38. package/amd/Indexer-23af6e3c.js.map +1 -0
  39. package/amd/InlineHelpSource-a16712df.js +2 -0
  40. package/amd/InlineHelpSource-a16712df.js.map +1 -0
  41. package/amd/Link-86794d1e.js +2 -0
  42. package/amd/Link-86794d1e.js.map +1 -0
  43. package/amd/List-5d60b09d.js +2 -0
  44. package/amd/List-5d60b09d.js.map +1 -0
  45. package/amd/ListItemTextLayout-0d059eb6.js +2 -0
  46. package/amd/ListItemTextLayout-0d059eb6.js.map +1 -0
  47. package/amd/ListView-25762e93.js +2 -0
  48. package/amd/ListView-25762e93.js.map +1 -0
  49. package/amd/LoadMoreCollection-bd98d014.js +2 -0
  50. package/amd/LoadMoreCollection-bd98d014.js.map +1 -0
  51. package/amd/Menu-4156c20f.js +2 -0
  52. package/amd/Menu-4156c20f.js.map +1 -0
  53. package/amd/MenuDivider-70a48737.js +2 -0
  54. package/amd/MenuDivider-70a48737.js.map +1 -0
  55. package/amd/MenuItem-4065d4c1.js +2 -0
  56. package/amd/MenuItem-4065d4c1.js.map +1 -0
  57. package/amd/Message.types-ba802f0d.js +2 -0
  58. package/amd/Message.types-ba802f0d.js.map +1 -0
  59. package/amd/MessageCloseButton-6fd750b0.js +2 -0
  60. package/amd/MessageCloseButton-6fd750b0.js.map +1 -0
  61. package/amd/MessageDetail-49daadc3.js +2 -0
  62. package/amd/MessageDetail-49daadc3.js.map +1 -0
  63. package/amd/MessageFormattingUtils-eb594b6a.js +2 -0
  64. package/amd/MessageFormattingUtils-eb594b6a.js.map +1 -0
  65. package/amd/MessageLayer-2ce2cf6c.js +2 -0
  66. package/amd/MessageLayer-2ce2cf6c.js.map +1 -0
  67. package/amd/MessageStartIcon-36c31428.js +2 -0
  68. package/amd/MessageStartIcon-36c31428.js.map +1 -0
  69. package/amd/MessageSummary-31da06a2.js +2 -0
  70. package/amd/MessageSummary-31da06a2.js.map +1 -0
  71. package/amd/MessageTimestamp-a8b2f726.js +2 -0
  72. package/amd/MessageTimestamp-a8b2f726.js.map +1 -0
  73. package/amd/MessageToast-97822e7c.js +2 -0
  74. package/amd/MessageToast-97822e7c.js.map +1 -0
  75. package/amd/MessageUtils-7a134473.js +2 -0
  76. package/amd/MessageUtils-7a134473.js.map +1 -0
  77. package/amd/MessagesManager-fabd2ebf.js +2 -0
  78. package/amd/MessagesManager-fabd2ebf.js.map +1 -0
  79. package/amd/MeterCircle-fe1ef984.js +2 -0
  80. package/amd/MeterCircle-fe1ef984.js.map +1 -0
  81. package/amd/Modal-ee17e873.js +2 -0
  82. package/amd/Modal-ee17e873.js.map +1 -0
  83. package/amd/NumberInputText-a6edc8a2.js +2 -0
  84. package/amd/NumberInputText-a6edc8a2.js.map +1 -0
  85. package/amd/PRIVATE_Collection/__tests__/Collection.spec.js +2 -0
  86. package/amd/PRIVATE_Collection/__tests__/Collection.spec.js.map +1 -0
  87. package/amd/PRIVATE_Collection.js +1 -1
  88. package/amd/PRIVATE_List/__tests__/List.spec.js +2 -0
  89. package/amd/PRIVATE_List/__tests__/List.spec.js.map +1 -0
  90. package/amd/PRIVATE_List.css +15 -15
  91. package/amd/PRIVATE_List.js +1 -1
  92. package/amd/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +2 -0
  93. package/amd/PRIVATE_Message/__tests__/MessageCloseButton.spec.js.map +1 -0
  94. package/amd/PRIVATE_Message/__tests__/MessageDetail.spec.js +2 -0
  95. package/amd/PRIVATE_Message/__tests__/MessageDetail.spec.js.map +1 -0
  96. package/amd/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +2 -0
  97. package/amd/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js.map +1 -0
  98. package/amd/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +2 -0
  99. package/amd/PRIVATE_Message/__tests__/MessageStartIcon.spec.js.map +1 -0
  100. package/amd/PRIVATE_Message/__tests__/MessageSummary.spec.js +2 -0
  101. package/amd/PRIVATE_Message/__tests__/MessageSummary.spec.js.map +1 -0
  102. package/amd/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +2 -0
  103. package/amd/PRIVATE_Message/__tests__/MessageTimestamp.spec.js.map +1 -0
  104. package/amd/PRIVATE_Message/__tests__/MessageUtils.spec.js +2 -0
  105. package/amd/PRIVATE_Message/__tests__/MessageUtils.spec.js.map +1 -0
  106. package/amd/PRIVATE_Message/__tests__/MessagesManager.spec.js +2 -0
  107. package/amd/PRIVATE_Message/__tests__/MessagesManager.spec.js.map +1 -0
  108. package/amd/PRIVATE_Message.css +27 -27
  109. package/amd/PRIVATE_Message.js +1 -1
  110. package/amd/PRIVATE_Message.js.map +1 -1
  111. package/amd/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +2 -0
  112. package/amd/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js.map +1 -0
  113. package/amd/PRIVATE_MessageLayer.css +7 -7
  114. package/amd/PRIVATE_MessageLayer.js +1 -1
  115. package/amd/PRIVATE_Meter.js +1 -1
  116. package/amd/PRIVATE_SelectCommon.css +13 -13
  117. package/amd/PRIVATE_SelectCommon.js +1 -1
  118. package/amd/PRIVATE_SelectCommon.js.map +1 -1
  119. package/amd/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +2 -0
  120. package/amd/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js.map +1 -0
  121. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  122. package/amd/ReadonlyTextFieldInput-589b89be.js +2 -0
  123. package/amd/ReadonlyTextFieldInput-589b89be.js.map +1 -0
  124. package/amd/SelectMenuItem-f2d3178a.js +2 -0
  125. package/amd/SelectMenuItem-f2d3178a.js.map +1 -0
  126. package/amd/SelectMultiple-38f7bbc0.js +2 -0
  127. package/amd/SelectMultiple-38f7bbc0.js.map +1 -0
  128. package/amd/SelectSingle-742ec1fb.js +2 -0
  129. package/amd/SelectSingle-742ec1fb.js.map +1 -0
  130. package/amd/Skeleton-64ad9097.js +2 -0
  131. package/amd/Skeleton-64ad9097.js.map +1 -0
  132. package/amd/Spacer-1de486f2.js +2 -0
  133. package/amd/Spacer-1de486f2.js.map +1 -0
  134. package/amd/SplitMenuButton-76c271c6.js +2 -0
  135. package/amd/SplitMenuButton-76c271c6.js.map +1 -0
  136. package/amd/Subheading-443bb6fd.js +2 -0
  137. package/amd/Subheading-443bb6fd.js.map +1 -0
  138. package/amd/Text-3c659af2.js +2 -0
  139. package/amd/Text-3c659af2.js.map +1 -0
  140. package/amd/TextArea-82fe8d67.js +2 -0
  141. package/amd/TextArea-82fe8d67.js.map +1 -0
  142. package/amd/TextAreaAutosize-d224dd49.js +2 -0
  143. package/amd/TextAreaAutosize-d224dd49.js.map +1 -0
  144. package/amd/TextFieldInput-c2d1aefc.js +2 -0
  145. package/amd/TextFieldInput-c2d1aefc.js.map +1 -0
  146. package/amd/Theme-redwood/theme.css +45 -9
  147. package/amd/Theme-stable/theme.css +65 -5
  148. package/amd/UNSAFE_AspectRatio.css +1 -1
  149. package/amd/UNSAFE_AspectRatio.js +1 -1
  150. package/amd/UNSAFE_Avatar/__tests__/Avatar.spec.js +2 -0
  151. package/amd/UNSAFE_Avatar/__tests__/Avatar.spec.js.map +1 -0
  152. package/amd/UNSAFE_Avatar.css +8 -8
  153. package/amd/UNSAFE_Avatar.js +1 -1
  154. package/amd/UNSAFE_Avatar.js.map +1 -1
  155. package/amd/UNSAFE_Badge/__tests__/Badge.spec.js +2 -0
  156. package/amd/UNSAFE_Badge/__tests__/Badge.spec.js.map +1 -0
  157. package/amd/UNSAFE_Badge.css +13 -13
  158. package/amd/UNSAFE_Badge.js +1 -1
  159. package/amd/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +2 -0
  160. package/amd/UNSAFE_BaseButton/__tests__/BaseButton.spec.js.map +1 -0
  161. package/amd/UNSAFE_BaseButton.css +15 -15
  162. package/amd/UNSAFE_BaseButton.js +1 -1
  163. package/amd/UNSAFE_Button/__tests__/Button.spec.js +2 -0
  164. package/amd/UNSAFE_Button/__tests__/Button.spec.js.map +1 -0
  165. package/amd/UNSAFE_Button.css +7 -8
  166. package/amd/UNSAFE_Button.js +1 -1
  167. package/amd/UNSAFE_Center.js +1 -1
  168. package/amd/UNSAFE_Chip/__tests__/Chip.spec.js +2 -0
  169. package/amd/UNSAFE_Chip/__tests__/Chip.spec.js.map +1 -0
  170. package/amd/UNSAFE_Chip.css +7 -7
  171. package/amd/UNSAFE_Chip.js +1 -1
  172. package/amd/UNSAFE_Collapsible.css +8 -8
  173. package/amd/UNSAFE_Collapsible.js +1 -1
  174. package/amd/UNSAFE_Collapsible.js.map +1 -1
  175. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +2 -0
  176. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js.map +1 -0
  177. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +2 -0
  178. package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js.map +1 -0
  179. package/amd/UNSAFE_ComponentMessage.css +2 -2
  180. package/amd/UNSAFE_ComponentMessage.js +1 -1
  181. package/amd/UNSAFE_Divider/__tests__/Divider.spec.js +2 -0
  182. package/amd/UNSAFE_Divider/__tests__/Divider.spec.js.map +1 -0
  183. package/amd/UNSAFE_Divider.css +1 -1
  184. package/amd/UNSAFE_Divider.js +1 -1
  185. package/amd/UNSAFE_Environment/__tests__/Environment.spec.js +2 -0
  186. package/amd/UNSAFE_Environment/__tests__/Environment.spec.js.map +1 -0
  187. package/amd/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +2 -0
  188. package/amd/UNSAFE_FilePicker/__tests__/FilePicker.spec.js.map +1 -0
  189. package/amd/UNSAFE_FilePicker.css +6 -6
  190. package/amd/UNSAFE_FilePicker.js +1 -1
  191. package/amd/UNSAFE_Flex/__tests__/Flex.spec.js +2 -0
  192. package/amd/UNSAFE_Flex/__tests__/Flex.spec.js.map +1 -0
  193. package/amd/UNSAFE_Flex.css +2 -2
  194. package/amd/UNSAFE_Flex.js +1 -1
  195. package/amd/UNSAFE_Floating/__tests__/Floating.spec.js +2 -0
  196. package/amd/UNSAFE_Floating/__tests__/Floating.spec.js.map +1 -0
  197. package/amd/UNSAFE_Floating.js +1 -1
  198. package/amd/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +2 -0
  199. package/amd/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js.map +1 -0
  200. package/amd/UNSAFE_FocusTrap.css +2 -2
  201. package/amd/UNSAFE_FocusTrap.js +1 -1
  202. package/amd/UNSAFE_Grid.css +1 -1
  203. package/amd/UNSAFE_Grid.js +1 -1
  204. package/amd/UNSAFE_Grid.js.map +1 -1
  205. package/amd/UNSAFE_Heading/__test__/Heading.spec.js +2 -0
  206. package/amd/UNSAFE_Heading/__test__/Heading.spec.js.map +1 -0
  207. package/amd/UNSAFE_Heading.css +9 -9
  208. package/amd/UNSAFE_Heading.js +1 -1
  209. package/amd/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +2 -0
  210. package/amd/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js.map +1 -0
  211. package/amd/UNSAFE_HiddenAccessible.css +1 -1
  212. package/amd/UNSAFE_HiddenAccessible.js +1 -1
  213. package/amd/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +2 -0
  214. package/amd/UNSAFE_HighlightText/__tests__/HighlightText.spec.js.map +1 -0
  215. package/amd/UNSAFE_HighlightText.css +1 -1
  216. package/amd/UNSAFE_HighlightText.js +1 -1
  217. package/amd/UNSAFE_Icon/__tests__/Icon.spec.js +2 -0
  218. package/amd/UNSAFE_Icon/__tests__/Icon.spec.js.map +1 -0
  219. package/amd/UNSAFE_Icon/__tests__/Icons.spec.js +2 -0
  220. package/amd/UNSAFE_Icon/__tests__/Icons.spec.js.map +1 -0
  221. package/amd/UNSAFE_Icon.css +8 -21
  222. package/amd/UNSAFE_Icon.js +1 -1
  223. package/amd/UNSAFE_Icon.js.map +1 -1
  224. package/amd/UNSAFE_Icons.js +1 -1
  225. package/amd/UNSAFE_Indexer/__tests__/Indexer.spec.js +2 -0
  226. package/amd/UNSAFE_Indexer/__tests__/Indexer.spec.js.map +1 -0
  227. package/amd/UNSAFE_Indexer.css +7 -7
  228. package/amd/UNSAFE_Indexer.js +1 -1
  229. package/amd/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +2 -0
  230. package/amd/UNSAFE_InputPassword/__tests__/InputPassword.spec.js.map +1 -0
  231. package/amd/UNSAFE_InputPassword.css +1 -1
  232. package/amd/UNSAFE_InputPassword.js +1 -1
  233. package/amd/UNSAFE_InputText.css +1 -1
  234. package/amd/UNSAFE_InputText.js +1 -1
  235. package/amd/UNSAFE_Label.css +13 -13
  236. package/amd/UNSAFE_Label.js +1 -1
  237. package/amd/UNSAFE_Label.js.map +1 -1
  238. package/amd/UNSAFE_LabelValueLayout.css +9 -9
  239. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  240. package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
  241. package/amd/UNSAFE_Link/__tests__/Link.spec.js +2 -0
  242. package/amd/UNSAFE_Link/__tests__/Link.spec.js.map +1 -0
  243. package/amd/UNSAFE_Link.css +5 -5
  244. package/amd/UNSAFE_Link.js +1 -1
  245. package/amd/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +2 -0
  246. package/amd/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js.map +1 -0
  247. package/amd/UNSAFE_ListItemLayout.css +9 -9
  248. package/amd/UNSAFE_ListItemLayout.js +1 -1
  249. package/amd/UNSAFE_ListView/__tests__/ListView.spec.js +2 -0
  250. package/amd/UNSAFE_ListView/__tests__/ListView.spec.js.map +1 -0
  251. package/amd/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +2 -0
  252. package/amd/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js.map +1 -0
  253. package/amd/UNSAFE_ListView.js +1 -1
  254. package/amd/UNSAFE_LiveRegion.css +1 -1
  255. package/amd/UNSAFE_LiveRegion.js +1 -1
  256. package/amd/UNSAFE_LiveRegion.js.map +1 -1
  257. package/amd/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +2 -0
  258. package/amd/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js.map +1 -0
  259. package/amd/UNSAFE_LoadMoreCollection.js +1 -1
  260. package/amd/UNSAFE_Menu/__tests__/Menu.spec.js +2 -0
  261. package/amd/UNSAFE_Menu/__tests__/Menu.spec.js.map +1 -0
  262. package/amd/UNSAFE_Menu/__tests__/MenuItem.spec.js +2 -0
  263. package/amd/UNSAFE_Menu/__tests__/MenuItem.spec.js.map +1 -0
  264. package/amd/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +2 -0
  265. package/amd/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js.map +1 -0
  266. package/amd/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +2 -0
  267. package/amd/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js.map +1 -0
  268. package/amd/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +2 -0
  269. package/amd/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js.map +1 -0
  270. package/amd/UNSAFE_Menu.css +25 -17
  271. package/amd/UNSAFE_Menu.js +1 -1
  272. package/amd/UNSAFE_MessageBanner.js +1 -1
  273. package/amd/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +2 -0
  274. package/amd/UNSAFE_MessageToast/__tests__/MessageToast.spec.js.map +1 -0
  275. package/amd/UNSAFE_MessageToast.css +1 -1
  276. package/amd/UNSAFE_MessageToast.js +1 -1
  277. package/amd/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +2 -0
  278. package/amd/UNSAFE_MeterBar/__tests__/MeterBar.spec.js.map +1 -0
  279. package/amd/UNSAFE_MeterBar.css +44 -43
  280. package/amd/UNSAFE_MeterBar.js +1 -1
  281. package/amd/UNSAFE_MeterBar.js.map +1 -1
  282. package/amd/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +2 -0
  283. package/amd/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js.map +1 -0
  284. package/amd/UNSAFE_MeterCircle.css +46 -46
  285. package/amd/UNSAFE_MeterCircle.js +1 -1
  286. package/amd/UNSAFE_Modal/__tests__/Modal.spec.js +2 -0
  287. package/amd/UNSAFE_Modal/__tests__/Modal.spec.js.map +1 -0
  288. package/amd/UNSAFE_Modal.css +3 -3
  289. package/amd/UNSAFE_Modal.js +1 -1
  290. package/amd/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +2 -0
  291. package/amd/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js.map +1 -0
  292. package/amd/UNSAFE_NumberInputText.js +1 -1
  293. package/amd/UNSAFE_PrefixSuffix.css +8 -8
  294. package/amd/UNSAFE_PrefixSuffix.js +1 -1
  295. package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
  296. package/amd/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +2 -0
  297. package/amd/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js.map +1 -0
  298. package/amd/UNSAFE_ProgressBar.css +6 -6
  299. package/amd/UNSAFE_ProgressBar.js +1 -1
  300. package/amd/UNSAFE_ProgressBar.js.map +1 -1
  301. package/amd/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +2 -0
  302. package/amd/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js.map +1 -0
  303. package/amd/UNSAFE_ProgressCircle.css +6 -6
  304. package/amd/UNSAFE_ProgressCircle.js +1 -1
  305. package/amd/UNSAFE_ProgressCircle.js.map +1 -1
  306. package/amd/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +2 -0
  307. package/amd/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js.map +1 -0
  308. package/amd/UNSAFE_RatingGauge.css +20 -20
  309. package/amd/UNSAFE_RatingGauge.js +1 -1
  310. package/amd/UNSAFE_RatingGauge.js.map +1 -1
  311. package/amd/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +2 -0
  312. package/amd/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js.map +1 -0
  313. package/amd/UNSAFE_SelectMultiple.css +1 -1
  314. package/amd/UNSAFE_SelectMultiple.js +1 -1
  315. package/amd/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +2 -0
  316. package/amd/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js.map +1 -0
  317. package/amd/UNSAFE_SelectSingle.js +1 -1
  318. package/amd/UNSAFE_Selector.css +5 -5
  319. package/amd/UNSAFE_Selector.js +1 -1
  320. package/amd/UNSAFE_Selector.js.map +1 -1
  321. package/amd/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +2 -0
  322. package/amd/UNSAFE_Skeleton/__tests__/Skeleton.spec.js.map +1 -0
  323. package/amd/UNSAFE_Skeleton.css +1 -1
  324. package/amd/UNSAFE_Skeleton.js +1 -1
  325. package/amd/UNSAFE_Spacer/__tests__/Spacer.spec.js +2 -0
  326. package/amd/UNSAFE_Spacer/__tests__/Spacer.spec.js.map +1 -0
  327. package/amd/UNSAFE_Spacer.js +1 -1
  328. package/amd/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +2 -0
  329. package/amd/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js.map +1 -0
  330. package/amd/UNSAFE_SplitMenuButton.css +5 -5
  331. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  332. package/amd/UNSAFE_Subheading/__test__/Subheading.spec.js +2 -0
  333. package/amd/UNSAFE_Subheading/__test__/Subheading.spec.js.map +1 -0
  334. package/amd/UNSAFE_Subheading.css +8 -0
  335. package/amd/UNSAFE_Subheading.js +2 -0
  336. package/amd/UNSAFE_Subheading.js.map +1 -0
  337. package/amd/UNSAFE_Text/__tests__/Text.spec.js +2 -0
  338. package/amd/UNSAFE_Text/__tests__/Text.spec.js.map +1 -0
  339. package/amd/UNSAFE_Text.css +25 -25
  340. package/amd/UNSAFE_Text.js +1 -1
  341. package/amd/UNSAFE_TextArea/__tests__/TextArea.spec.js +2 -0
  342. package/amd/UNSAFE_TextArea/__tests__/TextArea.spec.js.map +1 -0
  343. package/amd/UNSAFE_TextArea.css +3 -3
  344. package/amd/UNSAFE_TextArea.js +1 -1
  345. package/amd/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +2 -0
  346. package/amd/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js.map +1 -0
  347. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  348. package/amd/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +2 -0
  349. package/amd/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js.map +1 -0
  350. package/amd/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +2 -0
  351. package/amd/UNSAFE_TextField/__tests__/TextFieldInput.spec.js.map +1 -0
  352. package/amd/UNSAFE_TextField.css +58 -58
  353. package/amd/UNSAFE_TextField.js +1 -1
  354. package/amd/UNSAFE_TextField.js.map +1 -1
  355. package/amd/UNSAFE_ThemedIcons.js +1 -1
  356. package/amd/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +2 -0
  357. package/amd/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js.map +1 -0
  358. package/amd/UNSAFE_UserAssistance.css +8 -8
  359. package/amd/UNSAFE_UserAssistance.js +1 -1
  360. package/amd/UNSAFE_UserAssistance.js.map +1 -1
  361. package/amd/UNSAFE_View/__tests__/View.spec.js +2 -0
  362. package/amd/UNSAFE_View/__tests__/View.spec.js.map +1 -0
  363. package/amd/UNSAFE_View.js +1 -1
  364. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +2 -0
  365. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js.map +1 -0
  366. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +2 -0
  367. package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js.map +1 -0
  368. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  369. package/amd/VirtualizedCollection-e9cc859f.js +2 -0
  370. package/amd/VirtualizedCollection-e9cc859f.js.map +1 -0
  371. package/amd/VirtualizedListView-11727b41.js +2 -0
  372. package/amd/VirtualizedListView-11727b41.js.map +1 -0
  373. package/amd/__tests__/FormControls/FormControlAria.spec.js +2 -0
  374. package/amd/__tests__/FormControls/FormControlAria.spec.js.map +1 -0
  375. package/amd/__tests__/FormControls/FormControlClearIcon.spec.js +2 -0
  376. package/amd/__tests__/FormControls/FormControlClearIcon.spec.js.map +1 -0
  377. package/amd/__tests__/FormControls/FormControlCommit.spec.js +2 -0
  378. package/amd/__tests__/FormControls/FormControlCommit.spec.js.map +1 -0
  379. package/amd/__tests__/FormControls/FormControlPrefixSuffix.spec.js +2 -0
  380. package/amd/__tests__/FormControls/FormControlPrefixSuffix.spec.js.map +1 -0
  381. package/amd/_curry1-4048f3ff.js +2 -0
  382. package/amd/_curry1-4048f3ff.js.map +1 -0
  383. package/amd/_curry2-386569fb.js +2 -0
  384. package/amd/_curry2-386569fb.js.map +1 -0
  385. package/amd/_curry3-1f16eff2.js +2 -0
  386. package/amd/_curry3-1f16eff2.js.map +1 -0
  387. package/amd/_has-4e29ea27.js +2 -0
  388. package/amd/_has-4e29ea27.js.map +1 -0
  389. package/amd/classNames-77e465af.js +2 -0
  390. package/amd/classNames-77e465af.js.map +1 -0
  391. package/amd/clientHints-6cd92723.js +2 -0
  392. package/amd/clientHints-6cd92723.js.map +1 -0
  393. package/amd/flexbox-d4e8bc5d.js +2 -0
  394. package/amd/flexbox-d4e8bc5d.js.map +1 -0
  395. package/amd/flexitem-a81fbe8b.js +2 -0
  396. package/amd/flexitem-a81fbe8b.js.map +1 -0
  397. package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -1
  398. package/amd/hooks/PRIVATE_useSingleSelection.js +1 -1
  399. package/amd/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +2 -0
  400. package/amd/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js.map +1 -0
  401. package/amd/hooks/UNSAFE_useAnimation.js +1 -1
  402. package/amd/hooks/UNSAFE_useFloating.js +1 -1
  403. package/amd/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +2 -0
  404. package/amd/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js.map +1 -0
  405. package/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
  406. package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
  407. package/amd/hooks/UNSAFE_useHover.js.map +1 -1
  408. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  409. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  410. package/amd/hooks/UNSAFE_useTooltip.css +4 -4
  411. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  412. package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
  413. package/amd/index-8637c972.js +2 -0
  414. package/amd/index-8637c972.js.map +1 -0
  415. package/amd/index-c2b403d2.js +2 -0
  416. package/amd/index-c2b403d2.js.map +1 -0
  417. package/amd/index-f095628b.js +2 -0
  418. package/amd/index-f095628b.js.map +1 -0
  419. package/amd/keys-dde22c13.js +2 -0
  420. package/amd/keys-dde22c13.js.map +1 -0
  421. package/amd/listViewSelectionTests-7340be05.js +2 -0
  422. package/amd/listViewSelectionTests-7340be05.js.map +1 -0
  423. package/amd/listViewTabbableModeTests-3b9051b7.js +2 -0
  424. package/amd/listViewTabbableModeTests-3b9051b7.js.map +1 -0
  425. package/amd/listViewTestFixtures-8ef57c72.js +2 -0
  426. package/amd/listViewTestFixtures-8ef57c72.js.map +1 -0
  427. package/amd/menuTestsUtils-bb540b47.js +2 -0
  428. package/amd/menuTestsUtils-bb540b47.js.map +1 -0
  429. package/amd/resources/nls/ar/bundle.js +1 -1
  430. package/amd/resources/nls/ar/bundle.js.map +1 -1
  431. package/amd/resources/nls/ar-XB/bundle.js +1 -1
  432. package/amd/resources/nls/ar-XB/bundle.js.map +1 -1
  433. package/amd/resources/nls/bg/bundle.js +1 -1
  434. package/amd/resources/nls/bg/bundle.js.map +1 -1
  435. package/amd/resources/nls/bs/bundle.js +1 -1
  436. package/amd/resources/nls/bs/bundle.js.map +1 -1
  437. package/amd/resources/nls/bs-Cyrl/bundle.js +1 -1
  438. package/amd/resources/nls/bs-Cyrl/bundle.js.map +1 -1
  439. package/amd/resources/nls/bundle.js +1 -1
  440. package/amd/resources/nls/bundle.js.map +1 -1
  441. package/amd/resources/nls/cs/bundle.js +1 -1
  442. package/amd/resources/nls/cs/bundle.js.map +1 -1
  443. package/amd/resources/nls/da/bundle.js +1 -1
  444. package/amd/resources/nls/da/bundle.js.map +1 -1
  445. package/amd/resources/nls/de/bundle.js +1 -1
  446. package/amd/resources/nls/de/bundle.js.map +1 -1
  447. package/amd/resources/nls/el/bundle.js +1 -1
  448. package/amd/resources/nls/el/bundle.js.map +1 -1
  449. package/amd/resources/nls/en/bundle.js +1 -1
  450. package/amd/resources/nls/en/bundle.js.map +1 -1
  451. package/amd/resources/nls/en-XA/bundle.js +1 -1
  452. package/amd/resources/nls/en-XA/bundle.js.map +1 -1
  453. package/amd/resources/nls/en-XC/bundle.js +1 -1
  454. package/amd/resources/nls/en-XC/bundle.js.map +1 -1
  455. package/amd/resources/nls/es/bundle.js +1 -1
  456. package/amd/resources/nls/es/bundle.js.map +1 -1
  457. package/amd/resources/nls/et/bundle.js +1 -1
  458. package/amd/resources/nls/et/bundle.js.map +1 -1
  459. package/amd/resources/nls/fi/bundle.js +1 -1
  460. package/amd/resources/nls/fi/bundle.js.map +1 -1
  461. package/amd/resources/nls/fr/bundle.js +1 -1
  462. package/amd/resources/nls/fr/bundle.js.map +1 -1
  463. package/amd/resources/nls/fr-CA/bundle.js +1 -1
  464. package/amd/resources/nls/fr-CA/bundle.js.map +1 -1
  465. package/amd/resources/nls/he/bundle.js +1 -1
  466. package/amd/resources/nls/he/bundle.js.map +1 -1
  467. package/amd/resources/nls/hr/bundle.js +1 -1
  468. package/amd/resources/nls/hr/bundle.js.map +1 -1
  469. package/amd/resources/nls/hu/bundle.js +1 -1
  470. package/amd/resources/nls/hu/bundle.js.map +1 -1
  471. package/amd/resources/nls/is/bundle.js +1 -1
  472. package/amd/resources/nls/is/bundle.js.map +1 -1
  473. package/amd/resources/nls/it/bundle.js +1 -1
  474. package/amd/resources/nls/it/bundle.js.map +1 -1
  475. package/amd/resources/nls/ja/bundle.js +1 -1
  476. package/amd/resources/nls/ja/bundle.js.map +1 -1
  477. package/amd/resources/nls/ko/bundle.js +1 -1
  478. package/amd/resources/nls/ko/bundle.js.map +1 -1
  479. package/amd/resources/nls/lt/bundle.js +1 -1
  480. package/amd/resources/nls/lt/bundle.js.map +1 -1
  481. package/amd/resources/nls/lv/bundle.js +1 -1
  482. package/amd/resources/nls/lv/bundle.js.map +1 -1
  483. package/amd/resources/nls/ms/bundle.js +1 -1
  484. package/amd/resources/nls/ms/bundle.js.map +1 -1
  485. package/amd/resources/nls/nl/bundle.js +1 -1
  486. package/amd/resources/nls/nl/bundle.js.map +1 -1
  487. package/amd/resources/nls/no/bundle.js +1 -1
  488. package/amd/resources/nls/no/bundle.js.map +1 -1
  489. package/amd/resources/nls/pl/bundle.js +1 -1
  490. package/amd/resources/nls/pl/bundle.js.map +1 -1
  491. package/amd/resources/nls/pt/bundle.js +1 -1
  492. package/amd/resources/nls/pt/bundle.js.map +1 -1
  493. package/amd/resources/nls/pt-PT/bundle.js +1 -1
  494. package/amd/resources/nls/pt-PT/bundle.js.map +1 -1
  495. package/amd/resources/nls/ro/bundle.js +1 -1
  496. package/amd/resources/nls/ro/bundle.js.map +1 -1
  497. package/amd/resources/nls/ru/bundle.js +1 -1
  498. package/amd/resources/nls/ru/bundle.js.map +1 -1
  499. package/amd/resources/nls/sk/bundle.js +1 -1
  500. package/amd/resources/nls/sk/bundle.js.map +1 -1
  501. package/amd/resources/nls/sl/bundle.js +1 -1
  502. package/amd/resources/nls/sl/bundle.js.map +1 -1
  503. package/amd/resources/nls/sr/bundle.js +1 -1
  504. package/amd/resources/nls/sr/bundle.js.map +1 -1
  505. package/amd/resources/nls/sr-Latn/bundle.js +1 -1
  506. package/amd/resources/nls/sr-Latn/bundle.js.map +1 -1
  507. package/amd/resources/nls/sv/bundle.js +1 -1
  508. package/amd/resources/nls/sv/bundle.js.map +1 -1
  509. package/amd/resources/nls/th/bundle.js +1 -1
  510. package/amd/resources/nls/th/bundle.js.map +1 -1
  511. package/amd/resources/nls/tr/bundle.js +1 -1
  512. package/amd/resources/nls/tr/bundle.js.map +1 -1
  513. package/amd/resources/nls/uk/bundle.js +1 -1
  514. package/amd/resources/nls/uk/bundle.js.map +1 -1
  515. package/amd/resources/nls/vi/bundle.js +1 -1
  516. package/amd/resources/nls/vi/bundle.js.map +1 -1
  517. package/amd/resources/nls/zh-Hans/bundle.js +1 -1
  518. package/amd/resources/nls/zh-Hans/bundle.js.map +1 -1
  519. package/amd/resources/nls/zh-Hant/bundle.js +1 -1
  520. package/amd/resources/nls/zh-Hant/bundle.js.map +1 -1
  521. package/amd/stringUtils-e17f4469.js +2 -0
  522. package/amd/stringUtils-e17f4469.js.map +1 -0
  523. package/amd/testHelpers-4620c633.js +2 -0
  524. package/amd/testHelpers-4620c633.js.map +1 -0
  525. package/amd/translationBundle/__tests__/translationBundle.spec.js +2 -0
  526. package/amd/translationBundle/__tests__/translationBundle.spec.js.map +1 -0
  527. package/amd/tslib.es6-f169f6f6.js +2 -0
  528. package/amd/tslib.es6-f169f6f6.js.map +1 -0
  529. package/amd/useAnimation-5d52bb49.js +2 -0
  530. package/amd/useAnimation-5d52bb49.js.map +1 -0
  531. package/amd/useFocusWithin-75cd1481.js +2 -0
  532. package/amd/useFocusWithin-75cd1481.js.map +1 -0
  533. package/amd/useModal-60dd158a.js +2 -0
  534. package/amd/useModal-60dd158a.js.map +1 -0
  535. package/amd/useSingleSelection-3b245d3b.js +2 -0
  536. package/amd/useSingleSelection-3b245d3b.js.map +1 -0
  537. package/amd/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +2 -0
  538. package/amd/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js.map +1 -0
  539. package/amd/utils/PRIVATE_clientHints.js +1 -1
  540. package/amd/utils/PRIVATE_meterUtils.js +1 -1
  541. package/amd/utils/PRIVATE_meterUtils.js.map +1 -1
  542. package/amd/utils/PRIVATE_tabbableUtils.js +1 -1
  543. package/amd/utils/UNSAFE_classNames/classNames.spec.js +2 -0
  544. package/amd/utils/UNSAFE_classNames/classNames.spec.js.map +1 -0
  545. package/amd/utils/UNSAFE_classNames.js +1 -1
  546. package/amd/utils/UNSAFE_dvtCommonUtils.js +2 -0
  547. package/amd/utils/UNSAFE_dvtCommonUtils.js.map +1 -0
  548. package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  549. package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
  550. package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  551. package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
  552. package/amd/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +2 -0
  553. package/amd/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js.map +1 -0
  554. package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -7
  555. package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
  556. package/amd/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +2 -0
  557. package/amd/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js.map +1 -0
  558. package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -7
  559. package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
  560. package/amd/utils/UNSAFE_interpolations/text.css +3 -3
  561. package/amd/utils/UNSAFE_interpolations/text.js +1 -1
  562. package/amd/utils/UNSAFE_logger.js +1 -1
  563. package/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
  564. package/amd/utils/UNSAFE_stringUtils/stringUtils.spec.js +2 -0
  565. package/amd/utils/UNSAFE_stringUtils/stringUtils.spec.js.map +1 -0
  566. package/amd/utils/UNSAFE_stringUtils.js +1 -1
  567. package/amd/utils/UNSAFE_units.js +1 -1
  568. package/cjs/Badge-20d11e9f.js +43 -0
  569. package/cjs/Badge-20d11e9f.js.map +1 -0
  570. package/cjs/BaseButton-3d18e665.js +178 -0
  571. package/cjs/BaseButton-3d18e665.js.map +1 -0
  572. package/cjs/Button-6445c7e0.js +74 -0
  573. package/cjs/Button-6445c7e0.js.map +1 -0
  574. package/cjs/Chip-45930c46.js +61 -0
  575. package/cjs/Chip-45930c46.js.map +1 -0
  576. package/cjs/ClearIcon-76cb0289.js +62 -0
  577. package/cjs/ClearIcon-76cb0289.js.map +1 -0
  578. package/cjs/Collection-4f785d2f.js +19 -0
  579. package/cjs/Collection-4f785d2f.js.map +1 -0
  580. package/cjs/ComponentMessage-7dfa8503.js +54 -0
  581. package/cjs/ComponentMessage-7dfa8503.js.map +1 -0
  582. package/cjs/ComponentMessageContainer-3c22e7ef.js +54 -0
  583. package/cjs/ComponentMessageContainer-3c22e7ef.js.map +1 -0
  584. package/cjs/Divider-01102a48.js +36 -0
  585. package/cjs/Divider-01102a48.js.map +1 -0
  586. package/cjs/FilePicker-812df3ed.js +594 -0
  587. package/cjs/FilePicker-812df3ed.js.map +1 -0
  588. package/cjs/Flex-d73eb41d.js +46 -0
  589. package/cjs/Flex-d73eb41d.js.map +1 -0
  590. package/cjs/Floating-939d2a3b.js +337 -0
  591. package/cjs/Floating-939d2a3b.js.map +1 -0
  592. package/cjs/FocusTrap-e848638a.js +149 -0
  593. package/cjs/FocusTrap-e848638a.js.map +1 -0
  594. package/cjs/FormControlUtils-7539b8f1.js +24 -0
  595. package/cjs/FormControlUtils-7539b8f1.js.map +1 -0
  596. package/cjs/Heading-129a1d70.js +77 -0
  597. package/cjs/Heading-129a1d70.js.map +1 -0
  598. package/cjs/HiddenAccessible-88a41d06.js +26 -0
  599. package/cjs/HiddenAccessible-88a41d06.js.map +1 -0
  600. package/cjs/HighlightText-6a279efe.js +50 -0
  601. package/cjs/HighlightText-6a279efe.js.map +1 -0
  602. package/cjs/Icon-bbcfe43f.js +89 -0
  603. package/cjs/Icon-bbcfe43f.js.map +1 -0
  604. package/cjs/Indexer-f032ef08.js +534 -0
  605. package/cjs/Indexer-f032ef08.js.map +1 -0
  606. package/cjs/InlineHelpSource-20c3c60a.js +35 -0
  607. package/cjs/InlineHelpSource-20c3c60a.js.map +1 -0
  608. package/cjs/Link-9c197075.js +50 -0
  609. package/cjs/Link-9c197075.js.map +1 -0
  610. package/cjs/List-f609db3f.js +694 -0
  611. package/cjs/List-f609db3f.js.map +1 -0
  612. package/cjs/ListItemTextLayout-5fbd8f83.js +218 -0
  613. package/cjs/ListItemTextLayout-5fbd8f83.js.map +1 -0
  614. package/cjs/ListView-adcd758c.js +18 -0
  615. package/cjs/ListView-adcd758c.js.map +1 -0
  616. package/cjs/LoadMoreCollection-0b7e3fad.js +67 -0
  617. package/cjs/LoadMoreCollection-0b7e3fad.js.map +1 -0
  618. package/cjs/Menu-561b0103.js +488 -0
  619. package/cjs/Menu-561b0103.js.map +1 -0
  620. package/cjs/MenuDivider-2607be21.js +22 -0
  621. package/cjs/MenuDivider-2607be21.js.map +1 -0
  622. package/cjs/MenuItem-883eb10c.js +167 -0
  623. package/cjs/MenuItem-883eb10c.js.map +1 -0
  624. package/cjs/Message.types-4f6f7327.js +11 -0
  625. package/cjs/Message.types-4f6f7327.js.map +1 -0
  626. package/cjs/MessageCloseButton-a8bd364b.js +51 -0
  627. package/cjs/MessageCloseButton-a8bd364b.js.map +1 -0
  628. package/cjs/MessageDetail-b28bd9ad.js +66 -0
  629. package/cjs/MessageDetail-b28bd9ad.js.map +1 -0
  630. package/cjs/MessageFormattingUtils-a039de2b.js +106 -0
  631. package/cjs/MessageFormattingUtils-a039de2b.js.map +1 -0
  632. package/cjs/MessageLayer-a35b10b9.js +88 -0
  633. package/cjs/MessageLayer-a35b10b9.js.map +1 -0
  634. package/cjs/MessageStartIcon-862d55ff.js +70 -0
  635. package/cjs/MessageStartIcon-862d55ff.js.map +1 -0
  636. package/cjs/MessageSummary-7a4248a7.js +40 -0
  637. package/cjs/MessageSummary-7a4248a7.js.map +1 -0
  638. package/cjs/MessageTimestamp-5d131ec4.js +40 -0
  639. package/cjs/MessageTimestamp-5d131ec4.js.map +1 -0
  640. package/cjs/MessageToast-7b2f4a0d.js +326 -0
  641. package/cjs/MessageToast-7b2f4a0d.js.map +1 -0
  642. package/cjs/MessageUtils-3abefcfc.js +139 -0
  643. package/cjs/MessageUtils-3abefcfc.js.map +1 -0
  644. package/cjs/MessagesManager-4ef3c3fe.js +117 -0
  645. package/cjs/MessagesManager-4ef3c3fe.js.map +1 -0
  646. package/cjs/MeterCircle-a572b681.js +559 -0
  647. package/cjs/MeterCircle-a572b681.js.map +1 -0
  648. package/cjs/Modal-9b05f600.js +76 -0
  649. package/cjs/Modal-9b05f600.js.map +1 -0
  650. package/cjs/NumberInputText-2f911020.js +276 -0
  651. package/cjs/NumberInputText-2f911020.js.map +1 -0
  652. package/cjs/PRIVATE_Collection/__tests__/Collection.spec.js +24 -0
  653. package/cjs/PRIVATE_Collection/__tests__/Collection.spec.js.map +1 -0
  654. package/cjs/PRIVATE_Collection.js +2 -2
  655. package/cjs/PRIVATE_List/__tests__/List.spec.js +217 -0
  656. package/cjs/PRIVATE_List/__tests__/List.spec.js.map +1 -0
  657. package/cjs/PRIVATE_List.js +23 -23
  658. package/cjs/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +92 -0
  659. package/cjs/PRIVATE_Message/__tests__/MessageCloseButton.spec.js.map +1 -0
  660. package/cjs/PRIVATE_Message/__tests__/MessageDetail.spec.js +50 -0
  661. package/cjs/PRIVATE_Message/__tests__/MessageDetail.spec.js.map +1 -0
  662. package/cjs/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +49 -0
  663. package/cjs/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js.map +1 -0
  664. package/cjs/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +69 -0
  665. package/cjs/PRIVATE_Message/__tests__/MessageStartIcon.spec.js.map +1 -0
  666. package/cjs/PRIVATE_Message/__tests__/MessageSummary.spec.js +20 -0
  667. package/cjs/PRIVATE_Message/__tests__/MessageSummary.spec.js.map +1 -0
  668. package/cjs/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +47 -0
  669. package/cjs/PRIVATE_Message/__tests__/MessageTimestamp.spec.js.map +1 -0
  670. package/cjs/PRIVATE_Message/__tests__/MessageUtils.spec.js +76 -0
  671. package/cjs/PRIVATE_Message/__tests__/MessageUtils.spec.js.map +1 -0
  672. package/cjs/PRIVATE_Message/__tests__/MessagesManager.spec.js +74 -0
  673. package/cjs/PRIVATE_Message/__tests__/MessagesManager.spec.js.map +1 -0
  674. package/cjs/PRIVATE_Message.js +41 -41
  675. package/cjs/PRIVATE_Message.js.map +1 -1
  676. package/cjs/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +142 -0
  677. package/cjs/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js.map +1 -0
  678. package/cjs/PRIVATE_MessageLayer.js +12 -12
  679. package/cjs/PRIVATE_Meter.js +2 -2
  680. package/cjs/PRIVATE_SelectCommon.js +93 -57
  681. package/cjs/PRIVATE_SelectCommon.js.map +1 -1
  682. package/cjs/PRIVATE_TransitionGroup.js +1 -1
  683. package/cjs/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +73 -0
  684. package/cjs/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js.map +1 -0
  685. package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
  686. package/cjs/ReadonlyTextFieldInput-fc320579.js +121 -0
  687. package/cjs/ReadonlyTextFieldInput-fc320579.js.map +1 -0
  688. package/cjs/SelectMenuItem-1939fa9b.js +65 -0
  689. package/cjs/SelectMenuItem-1939fa9b.js.map +1 -0
  690. package/cjs/SelectMultiple-d7d309cb.js +513 -0
  691. package/cjs/SelectMultiple-d7d309cb.js.map +1 -0
  692. package/cjs/SelectSingle-3732de97.js +376 -0
  693. package/cjs/SelectSingle-3732de97.js.map +1 -0
  694. package/cjs/Skeleton-a0dbf74a.js +47 -0
  695. package/cjs/Skeleton-a0dbf74a.js.map +1 -0
  696. package/cjs/Spacer-53d576ec.js +21 -0
  697. package/cjs/Spacer-53d576ec.js.map +1 -0
  698. package/cjs/SplitMenuButton-dde55f21.js +203 -0
  699. package/cjs/SplitMenuButton-dde55f21.js.map +1 -0
  700. package/cjs/Subheading-7c883c24.js +11007 -0
  701. package/cjs/Subheading-7c883c24.js.map +1 -0
  702. package/cjs/Text-4f6998f4.js +103 -0
  703. package/cjs/Text-4f6998f4.js.map +1 -0
  704. package/cjs/TextArea-2017b229.js +151 -0
  705. package/cjs/TextArea-2017b229.js.map +1 -0
  706. package/cjs/TextAreaAutosize-2a3808f5.js +177 -0
  707. package/cjs/TextAreaAutosize-2a3808f5.js.map +1 -0
  708. package/cjs/TextFieldInput-1b78e77e.js +182 -0
  709. package/cjs/TextFieldInput-1b78e77e.js.map +1 -0
  710. package/cjs/Theme-redwood/theme.css +45 -9
  711. package/cjs/Theme-stable/theme.css +65 -5
  712. package/cjs/UNSAFE_AspectRatio.js +8 -8
  713. package/cjs/UNSAFE_Avatar/__tests__/Avatar.spec.js +146 -0
  714. package/cjs/UNSAFE_Avatar/__tests__/Avatar.spec.js.map +1 -0
  715. package/cjs/UNSAFE_Avatar.js +11 -11
  716. package/cjs/UNSAFE_Avatar.js.map +1 -1
  717. package/cjs/UNSAFE_Badge/__tests__/Badge.spec.js +48 -0
  718. package/cjs/UNSAFE_Badge/__tests__/Badge.spec.js.map +1 -0
  719. package/cjs/UNSAFE_Badge.js +3 -3
  720. package/cjs/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +164 -0
  721. package/cjs/UNSAFE_BaseButton/__tests__/BaseButton.spec.js.map +1 -0
  722. package/cjs/UNSAFE_BaseButton.js +9 -9
  723. package/cjs/UNSAFE_Button/__tests__/Button.spec.js +236 -0
  724. package/cjs/UNSAFE_Button/__tests__/Button.spec.js.map +1 -0
  725. package/cjs/UNSAFE_Button.js +10 -10
  726. package/cjs/UNSAFE_Center.js +11 -11
  727. package/cjs/UNSAFE_Chip/__tests__/Chip.spec.js +70 -0
  728. package/cjs/UNSAFE_Chip/__tests__/Chip.spec.js.map +1 -0
  729. package/cjs/UNSAFE_Chip.js +3 -3
  730. package/cjs/UNSAFE_Collapsible.js +26 -26
  731. package/cjs/UNSAFE_Collapsible.js.map +1 -1
  732. package/cjs/UNSAFE_Collection.js +1 -1
  733. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +168 -0
  734. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js.map +1 -0
  735. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +178 -0
  736. package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js.map +1 -0
  737. package/cjs/UNSAFE_ComponentMessage.js +33 -33
  738. package/cjs/UNSAFE_Divider/__tests__/Divider.spec.js +27 -0
  739. package/cjs/UNSAFE_Divider/__tests__/Divider.spec.js.map +1 -0
  740. package/cjs/UNSAFE_Divider.js +7 -7
  741. package/cjs/UNSAFE_EmptyList.js +1 -1
  742. package/cjs/UNSAFE_Environment/__tests__/Environment.spec.js +208 -0
  743. package/cjs/UNSAFE_Environment/__tests__/Environment.spec.js.map +1 -0
  744. package/cjs/UNSAFE_Environment.js +1 -1
  745. package/cjs/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +555 -0
  746. package/cjs/UNSAFE_FilePicker/__tests__/FilePicker.spec.js.map +1 -0
  747. package/cjs/UNSAFE_FilePicker.js +14 -14
  748. package/cjs/UNSAFE_Flex/__tests__/Flex.spec.js +35 -0
  749. package/cjs/UNSAFE_Flex/__tests__/Flex.spec.js.map +1 -0
  750. package/cjs/UNSAFE_Flex.js +11 -11
  751. package/cjs/UNSAFE_Floating/__tests__/Floating.spec.js +54 -0
  752. package/cjs/UNSAFE_Floating/__tests__/Floating.spec.js.map +1 -0
  753. package/cjs/UNSAFE_Floating.js +3 -3
  754. package/cjs/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +135 -0
  755. package/cjs/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js.map +1 -0
  756. package/cjs/UNSAFE_FocusTrap.js +6 -6
  757. package/cjs/UNSAFE_Grid.js +9 -9
  758. package/cjs/UNSAFE_Grid.js.map +1 -1
  759. package/cjs/UNSAFE_Heading/__test__/Heading.spec.js +90 -0
  760. package/cjs/UNSAFE_Heading/__test__/Heading.spec.js.map +1 -0
  761. package/cjs/UNSAFE_Heading.js +9 -9
  762. package/cjs/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +42 -0
  763. package/cjs/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js.map +1 -0
  764. package/cjs/UNSAFE_HiddenAccessible.js +2 -2
  765. package/cjs/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +25 -0
  766. package/cjs/UNSAFE_HighlightText/__tests__/HighlightText.spec.js.map +1 -0
  767. package/cjs/UNSAFE_HighlightText.js +2 -2
  768. package/cjs/UNSAFE_Icon/__tests__/Icon.spec.js +109 -0
  769. package/cjs/UNSAFE_Icon/__tests__/Icon.spec.js.map +1 -0
  770. package/cjs/UNSAFE_Icon/__tests__/Icons.spec.js +66 -0
  771. package/cjs/UNSAFE_Icon/__tests__/Icons.spec.js.map +1 -0
  772. package/cjs/UNSAFE_Icon.js +9 -8
  773. package/cjs/UNSAFE_Icon.js.map +1 -1
  774. package/cjs/UNSAFE_Icons.js +10 -9
  775. package/cjs/UNSAFE_Icons.js.map +1 -1
  776. package/cjs/UNSAFE_Indexer/__tests__/Indexer.spec.js +861 -0
  777. package/cjs/UNSAFE_Indexer/__tests__/Indexer.spec.js.map +1 -0
  778. package/cjs/UNSAFE_Indexer.js +16 -16
  779. package/cjs/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +184 -0
  780. package/cjs/UNSAFE_InputPassword/__tests__/InputPassword.spec.js.map +1 -0
  781. package/cjs/UNSAFE_InputPassword.js +40 -40
  782. package/cjs/UNSAFE_InputText.js +39 -39
  783. package/cjs/UNSAFE_Label.js +16 -16
  784. package/cjs/UNSAFE_Label.js.map +1 -1
  785. package/cjs/UNSAFE_LabelValueLayout.js +20 -20
  786. package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
  787. package/cjs/UNSAFE_Layer.js +1 -1
  788. package/cjs/UNSAFE_Link/__tests__/Link.spec.js +79 -0
  789. package/cjs/UNSAFE_Link/__tests__/Link.spec.js.map +1 -0
  790. package/cjs/UNSAFE_Link.js +3 -3
  791. package/cjs/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +55 -0
  792. package/cjs/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js.map +1 -0
  793. package/cjs/UNSAFE_ListItemLayout.js +10 -10
  794. package/cjs/UNSAFE_ListView/__tests__/ListView.spec.js +130 -0
  795. package/cjs/UNSAFE_ListView/__tests__/ListView.spec.js.map +1 -0
  796. package/cjs/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +127 -0
  797. package/cjs/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js.map +1 -0
  798. package/cjs/UNSAFE_ListView.js +24 -24
  799. package/cjs/UNSAFE_LiveRegion.js +2 -2
  800. package/cjs/UNSAFE_LiveRegion.js.map +1 -1
  801. package/cjs/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +72 -0
  802. package/cjs/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js.map +1 -0
  803. package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
  804. package/cjs/UNSAFE_Menu/__tests__/Menu.spec.js +247 -0
  805. package/cjs/UNSAFE_Menu/__tests__/Menu.spec.js.map +1 -0
  806. package/cjs/UNSAFE_Menu/__tests__/MenuItem.spec.js +112 -0
  807. package/cjs/UNSAFE_Menu/__tests__/MenuItem.spec.js.map +1 -0
  808. package/cjs/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +83 -0
  809. package/cjs/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js.map +1 -0
  810. package/cjs/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +157 -0
  811. package/cjs/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js.map +1 -0
  812. package/cjs/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +157 -0
  813. package/cjs/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js.map +1 -0
  814. package/cjs/UNSAFE_Menu.js +23 -22
  815. package/cjs/UNSAFE_Menu.js.map +1 -1
  816. package/cjs/UNSAFE_MessageBanner.js +30 -30
  817. package/cjs/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +661 -0
  818. package/cjs/UNSAFE_MessageToast/__tests__/MessageToast.spec.js.map +1 -0
  819. package/cjs/UNSAFE_MessageToast.js +33 -33
  820. package/cjs/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +920 -0
  821. package/cjs/UNSAFE_MeterBar/__tests__/MeterBar.spec.js.map +1 -0
  822. package/cjs/UNSAFE_MeterBar.js +57 -52
  823. package/cjs/UNSAFE_MeterBar.js.map +1 -1
  824. package/cjs/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +813 -0
  825. package/cjs/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js.map +1 -0
  826. package/cjs/UNSAFE_MeterCircle.js +8 -7
  827. package/cjs/UNSAFE_MeterCircle.js.map +1 -1
  828. package/cjs/UNSAFE_Modal/__tests__/Modal.spec.js +89 -0
  829. package/cjs/UNSAFE_Modal/__tests__/Modal.spec.js.map +1 -0
  830. package/cjs/UNSAFE_Modal.js +8 -7
  831. package/cjs/UNSAFE_Modal.js.map +1 -1
  832. package/cjs/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +769 -0
  833. package/cjs/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js.map +1 -0
  834. package/cjs/UNSAFE_NumberInputText.js +39 -39
  835. package/cjs/UNSAFE_PrefixSuffix.js +10 -10
  836. package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
  837. package/cjs/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +276 -0
  838. package/cjs/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js.map +1 -0
  839. package/cjs/UNSAFE_ProgressBar.js +9 -9
  840. package/cjs/UNSAFE_ProgressBar.js.map +1 -1
  841. package/cjs/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +214 -0
  842. package/cjs/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js.map +1 -0
  843. package/cjs/UNSAFE_ProgressCircle.js +10 -9
  844. package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
  845. package/cjs/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +732 -0
  846. package/cjs/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js.map +1 -0
  847. package/cjs/UNSAFE_RatingGauge.js +120 -75
  848. package/cjs/UNSAFE_RatingGauge.js.map +1 -1
  849. package/cjs/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +1487 -0
  850. package/cjs/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js.map +1 -0
  851. package/cjs/UNSAFE_SelectMultiple.js +47 -47
  852. package/cjs/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +528 -0
  853. package/cjs/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js.map +1 -0
  854. package/cjs/UNSAFE_SelectSingle.js +46 -46
  855. package/cjs/UNSAFE_Selector.js +23 -23
  856. package/cjs/UNSAFE_Selector.js.map +1 -1
  857. package/cjs/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +37 -0
  858. package/cjs/UNSAFE_Skeleton/__tests__/Skeleton.spec.js.map +1 -0
  859. package/cjs/UNSAFE_Skeleton.js +8 -8
  860. package/cjs/UNSAFE_Spacer/__tests__/Spacer.spec.js +33 -0
  861. package/cjs/UNSAFE_Spacer/__tests__/Spacer.spec.js.map +1 -0
  862. package/cjs/UNSAFE_Spacer.js +10 -10
  863. package/cjs/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +132 -0
  864. package/cjs/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js.map +1 -0
  865. package/cjs/UNSAFE_SplitMenuButton.js +23 -22
  866. package/cjs/UNSAFE_SplitMenuButton.js.map +1 -1
  867. package/cjs/UNSAFE_Subheading/__test__/Subheading.spec.js +87 -0
  868. package/cjs/UNSAFE_Subheading/__test__/Subheading.spec.js.map +1 -0
  869. package/cjs/UNSAFE_Subheading.js +25 -0
  870. package/cjs/UNSAFE_Subheading.js.map +1 -0
  871. package/cjs/UNSAFE_Text/__tests__/Text.spec.js +50 -0
  872. package/cjs/UNSAFE_Text/__tests__/Text.spec.js.map +1 -0
  873. package/cjs/UNSAFE_Text.js +8 -8
  874. package/cjs/UNSAFE_TextArea/__tests__/TextArea.spec.js +207 -0
  875. package/cjs/UNSAFE_TextArea/__tests__/TextArea.spec.js.map +1 -0
  876. package/cjs/UNSAFE_TextArea.js +39 -39
  877. package/cjs/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +285 -0
  878. package/cjs/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js.map +1 -0
  879. package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
  880. package/cjs/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +172 -0
  881. package/cjs/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js.map +1 -0
  882. package/cjs/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +282 -0
  883. package/cjs/UNSAFE_TextField/__tests__/TextFieldInput.spec.js.map +1 -0
  884. package/cjs/UNSAFE_TextField.js +35 -35
  885. package/cjs/UNSAFE_TextField.js.map +1 -1
  886. package/cjs/UNSAFE_ThemedIcons.js +11 -10
  887. package/cjs/UNSAFE_ThemedIcons.js.map +1 -1
  888. package/cjs/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +111 -0
  889. package/cjs/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js.map +1 -0
  890. package/cjs/UNSAFE_UserAssistance.js +41 -41
  891. package/cjs/UNSAFE_UserAssistance.js.map +1 -1
  892. package/cjs/UNSAFE_View/__tests__/View.spec.js +48 -0
  893. package/cjs/UNSAFE_View/__tests__/View.spec.js.map +1 -0
  894. package/cjs/UNSAFE_View.js +9 -9
  895. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +128 -0
  896. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js.map +1 -0
  897. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +127 -0
  898. package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js.map +1 -0
  899. package/cjs/UNSAFE_VirtualizedListView.js +24 -24
  900. package/cjs/UNSAFE_WindowOverlay.js +1 -1
  901. package/cjs/VirtualizedCollection-9696bfc9.js +186 -0
  902. package/cjs/VirtualizedCollection-9696bfc9.js.map +1 -0
  903. package/cjs/VirtualizedListView-38c683cd.js +18 -0
  904. package/cjs/VirtualizedListView-38c683cd.js.map +1 -0
  905. package/cjs/__tests__/FormControls/FormControlAria.spec.js +476 -0
  906. package/cjs/__tests__/FormControls/FormControlAria.spec.js.map +1 -0
  907. package/cjs/__tests__/FormControls/FormControlClearIcon.spec.js +379 -0
  908. package/cjs/__tests__/FormControls/FormControlClearIcon.spec.js.map +1 -0
  909. package/cjs/__tests__/FormControls/FormControlCommit.spec.js +470 -0
  910. package/cjs/__tests__/FormControls/FormControlCommit.spec.js.map +1 -0
  911. package/cjs/__tests__/FormControls/FormControlPrefixSuffix.spec.js +455 -0
  912. package/cjs/__tests__/FormControls/FormControlPrefixSuffix.spec.js.map +1 -0
  913. package/cjs/_curry1-3251b1fd.js +71 -0
  914. package/cjs/_curry1-3251b1fd.js.map +1 -0
  915. package/cjs/_curry2-44662556.js +48 -0
  916. package/cjs/_curry2-44662556.js.map +1 -0
  917. package/cjs/_curry3-047e03f4.js +70 -0
  918. package/cjs/_curry3-047e03f4.js.map +1 -0
  919. package/cjs/_has-c5b8419a.js +14 -0
  920. package/cjs/_has-c5b8419a.js.map +1 -0
  921. package/cjs/classNames-28108b7d.js +17 -0
  922. package/cjs/classNames-28108b7d.js.map +1 -0
  923. package/cjs/clientHints-5c8adda8.js +188 -0
  924. package/cjs/clientHints-5c8adda8.js.map +1 -0
  925. package/cjs/flexbox-5a021af6.js +42 -0
  926. package/cjs/flexbox-5a021af6.js.map +1 -0
  927. package/cjs/flexitem-382affea.js +42 -0
  928. package/cjs/flexitem-382affea.js.map +1 -0
  929. package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  930. package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
  931. package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
  932. package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
  933. package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  934. package/cjs/hooks/PRIVATE_useSelection.js +1 -1
  935. package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
  936. package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  937. package/cjs/hooks/UNSAFE_useActionable.js +1 -1
  938. package/cjs/hooks/UNSAFE_useActive.js +1 -1
  939. package/cjs/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +67 -0
  940. package/cjs/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js.map +1 -0
  941. package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
  942. package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
  943. package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
  944. package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
  945. package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
  946. package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  947. package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  948. package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  949. package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
  950. package/cjs/hooks/UNSAFE_useFloating.js +2 -2
  951. package/cjs/hooks/UNSAFE_useFocus.js +1 -1
  952. package/cjs/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +62 -0
  953. package/cjs/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js.map +1 -0
  954. package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
  955. package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
  956. package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
  957. package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
  958. package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
  959. package/cjs/hooks/UNSAFE_useHover.js +3 -3
  960. package/cjs/hooks/UNSAFE_useHover.js.map +1 -1
  961. package/cjs/hooks/UNSAFE_useId.js +1 -1
  962. package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
  963. package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  964. package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
  965. package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
  966. package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
  967. package/cjs/hooks/UNSAFE_usePan.js +1 -1
  968. package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
  969. package/cjs/hooks/UNSAFE_usePress.js +1 -1
  970. package/cjs/hooks/UNSAFE_useScale.js +1 -1
  971. package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
  972. package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
  973. package/cjs/hooks/UNSAFE_useTap.js +1 -1
  974. package/cjs/hooks/UNSAFE_useTextField.js +1 -1
  975. package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
  976. package/cjs/hooks/UNSAFE_useTheme.js +1 -1
  977. package/cjs/hooks/UNSAFE_useTimer.js +1 -1
  978. package/cjs/hooks/UNSAFE_useToggle.js +1 -1
  979. package/cjs/hooks/UNSAFE_useTooltip.js +22 -19
  980. package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
  981. package/cjs/hooks/UNSAFE_useTouch.js +1 -1
  982. package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
  983. package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
  984. package/cjs/hooks/UNSAFE_useUser.js +1 -1
  985. package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
  986. package/cjs/index-411b8231.js +78 -0
  987. package/cjs/index-411b8231.js.map +1 -0
  988. package/cjs/index-81333995.js +409 -0
  989. package/cjs/index-81333995.js.map +1 -0
  990. package/cjs/index-e82ec2db.js +66 -0
  991. package/cjs/index-e82ec2db.js.map +1 -0
  992. package/cjs/keys-dc35838f.js +128 -0
  993. package/cjs/keys-dc35838f.js.map +1 -0
  994. package/cjs/listViewSelectionTests-616afefc.js +1391 -0
  995. package/cjs/listViewSelectionTests-616afefc.js.map +1 -0
  996. package/cjs/listViewTabbableModeTests-0eeaca2b.js +117 -0
  997. package/cjs/listViewTabbableModeTests-0eeaca2b.js.map +1 -0
  998. package/cjs/listViewTestFixtures-74465d6d.js +44 -0
  999. package/cjs/listViewTestFixtures-74465d6d.js.map +1 -0
  1000. package/cjs/menuTestsUtils-1aa69ec7.js +39 -0
  1001. package/cjs/menuTestsUtils-1aa69ec7.js.map +1 -0
  1002. package/cjs/resources/nls/ar/bundle.js +4 -2
  1003. package/cjs/resources/nls/ar/bundle.js.map +1 -1
  1004. package/cjs/resources/nls/ar-XB/bundle.js +4 -2
  1005. package/cjs/resources/nls/ar-XB/bundle.js.map +1 -1
  1006. package/cjs/resources/nls/bg/bundle.js +4 -2
  1007. package/cjs/resources/nls/bg/bundle.js.map +1 -1
  1008. package/cjs/resources/nls/bs/bundle.js +4 -2
  1009. package/cjs/resources/nls/bs/bundle.js.map +1 -1
  1010. package/cjs/resources/nls/bs-Cyrl/bundle.js +4 -2
  1011. package/cjs/resources/nls/bs-Cyrl/bundle.js.map +1 -1
  1012. package/cjs/resources/nls/bundle.js +3 -1
  1013. package/cjs/resources/nls/bundle.js.map +1 -1
  1014. package/cjs/resources/nls/cs/bundle.js +4 -2
  1015. package/cjs/resources/nls/cs/bundle.js.map +1 -1
  1016. package/cjs/resources/nls/da/bundle.js +5 -3
  1017. package/cjs/resources/nls/da/bundle.js.map +1 -1
  1018. package/cjs/resources/nls/de/bundle.js +4 -2
  1019. package/cjs/resources/nls/de/bundle.js.map +1 -1
  1020. package/cjs/resources/nls/el/bundle.js +4 -2
  1021. package/cjs/resources/nls/el/bundle.js.map +1 -1
  1022. package/cjs/resources/nls/en/bundle.js +3 -1
  1023. package/cjs/resources/nls/en/bundle.js.map +1 -1
  1024. package/cjs/resources/nls/en-XA/bundle.js +4 -2
  1025. package/cjs/resources/nls/en-XA/bundle.js.map +1 -1
  1026. package/cjs/resources/nls/en-XC/bundle.js +4 -2
  1027. package/cjs/resources/nls/en-XC/bundle.js.map +1 -1
  1028. package/cjs/resources/nls/es/bundle.js +4 -2
  1029. package/cjs/resources/nls/es/bundle.js.map +1 -1
  1030. package/cjs/resources/nls/et/bundle.js +4 -2
  1031. package/cjs/resources/nls/et/bundle.js.map +1 -1
  1032. package/cjs/resources/nls/fi/bundle.js +4 -2
  1033. package/cjs/resources/nls/fi/bundle.js.map +1 -1
  1034. package/cjs/resources/nls/fr/bundle.js +4 -2
  1035. package/cjs/resources/nls/fr/bundle.js.map +1 -1
  1036. package/cjs/resources/nls/fr-CA/bundle.js +4 -2
  1037. package/cjs/resources/nls/fr-CA/bundle.js.map +1 -1
  1038. package/cjs/resources/nls/he/bundle.js +4 -2
  1039. package/cjs/resources/nls/he/bundle.js.map +1 -1
  1040. package/cjs/resources/nls/hr/bundle.js +4 -2
  1041. package/cjs/resources/nls/hr/bundle.js.map +1 -1
  1042. package/cjs/resources/nls/hu/bundle.js +6 -4
  1043. package/cjs/resources/nls/hu/bundle.js.map +1 -1
  1044. package/cjs/resources/nls/is/bundle.js +4 -2
  1045. package/cjs/resources/nls/is/bundle.js.map +1 -1
  1046. package/cjs/resources/nls/it/bundle.js +4 -2
  1047. package/cjs/resources/nls/it/bundle.js.map +1 -1
  1048. package/cjs/resources/nls/ja/bundle.js +4 -2
  1049. package/cjs/resources/nls/ja/bundle.js.map +1 -1
  1050. package/cjs/resources/nls/ko/bundle.js +4 -2
  1051. package/cjs/resources/nls/ko/bundle.js.map +1 -1
  1052. package/cjs/resources/nls/lt/bundle.js +4 -2
  1053. package/cjs/resources/nls/lt/bundle.js.map +1 -1
  1054. package/cjs/resources/nls/lv/bundle.js +4 -2
  1055. package/cjs/resources/nls/lv/bundle.js.map +1 -1
  1056. package/cjs/resources/nls/ms/bundle.js +4 -2
  1057. package/cjs/resources/nls/ms/bundle.js.map +1 -1
  1058. package/cjs/resources/nls/nl/bundle.js +4 -2
  1059. package/cjs/resources/nls/nl/bundle.js.map +1 -1
  1060. package/cjs/resources/nls/no/bundle.js +4 -2
  1061. package/cjs/resources/nls/no/bundle.js.map +1 -1
  1062. package/cjs/resources/nls/pl/bundle.js +4 -2
  1063. package/cjs/resources/nls/pl/bundle.js.map +1 -1
  1064. package/cjs/resources/nls/pt/bundle.js +4 -2
  1065. package/cjs/resources/nls/pt/bundle.js.map +1 -1
  1066. package/cjs/resources/nls/pt-PT/bundle.js +4 -2
  1067. package/cjs/resources/nls/pt-PT/bundle.js.map +1 -1
  1068. package/cjs/resources/nls/ro/bundle.js +4 -2
  1069. package/cjs/resources/nls/ro/bundle.js.map +1 -1
  1070. package/cjs/resources/nls/ru/bundle.js +4 -2
  1071. package/cjs/resources/nls/ru/bundle.js.map +1 -1
  1072. package/cjs/resources/nls/sk/bundle.js +4 -2
  1073. package/cjs/resources/nls/sk/bundle.js.map +1 -1
  1074. package/cjs/resources/nls/sl/bundle.js +4 -2
  1075. package/cjs/resources/nls/sl/bundle.js.map +1 -1
  1076. package/cjs/resources/nls/sr/bundle.js +4 -2
  1077. package/cjs/resources/nls/sr/bundle.js.map +1 -1
  1078. package/cjs/resources/nls/sr-Latn/bundle.js +4 -2
  1079. package/cjs/resources/nls/sr-Latn/bundle.js.map +1 -1
  1080. package/cjs/resources/nls/supportedLocales.js +1 -1
  1081. package/cjs/resources/nls/sv/bundle.js +4 -2
  1082. package/cjs/resources/nls/sv/bundle.js.map +1 -1
  1083. package/cjs/resources/nls/th/bundle.js +4 -2
  1084. package/cjs/resources/nls/th/bundle.js.map +1 -1
  1085. package/cjs/resources/nls/tr/bundle.js +4 -2
  1086. package/cjs/resources/nls/tr/bundle.js.map +1 -1
  1087. package/cjs/resources/nls/uk/bundle.js +4 -2
  1088. package/cjs/resources/nls/uk/bundle.js.map +1 -1
  1089. package/cjs/resources/nls/vi/bundle.js +4 -2
  1090. package/cjs/resources/nls/vi/bundle.js.map +1 -1
  1091. package/cjs/resources/nls/zh-Hans/bundle.js +4 -2
  1092. package/cjs/resources/nls/zh-Hans/bundle.js.map +1 -1
  1093. package/cjs/resources/nls/zh-Hant/bundle.js +4 -2
  1094. package/cjs/resources/nls/zh-Hant/bundle.js.map +1 -1
  1095. package/cjs/stringUtils-95025658.js +90 -0
  1096. package/cjs/stringUtils-95025658.js.map +1 -0
  1097. package/cjs/testHelpers-a1b59f4e.js +37 -0
  1098. package/cjs/testHelpers-a1b59f4e.js.map +1 -0
  1099. package/cjs/translationBundle/__tests__/translationBundle.spec.js +20 -0
  1100. package/cjs/translationBundle/__tests__/translationBundle.spec.js.map +1 -0
  1101. package/cjs/translationBundle.js +1 -1
  1102. package/cjs/tslib.es6-337905dc.js +246 -0
  1103. package/cjs/tslib.es6-337905dc.js.map +1 -0
  1104. package/cjs/useAnimation-4166b248.js +248 -0
  1105. package/cjs/useAnimation-4166b248.js.map +1 -0
  1106. package/cjs/useFocusWithin-e520c4be.js +50 -0
  1107. package/cjs/useFocusWithin-e520c4be.js.map +1 -0
  1108. package/cjs/useModal-3b1084ae.js +47 -0
  1109. package/cjs/useModal-3b1084ae.js.map +1 -0
  1110. package/cjs/useSingleSelection-4378132f.js +43 -0
  1111. package/cjs/useSingleSelection-4378132f.js.map +1 -0
  1112. package/cjs/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +23 -0
  1113. package/cjs/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js.map +1 -0
  1114. package/cjs/utils/PRIVATE_clientHints.js +2 -2
  1115. package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
  1116. package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
  1117. package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
  1118. package/cjs/utils/PRIVATE_meterUtils.js +21 -3
  1119. package/cjs/utils/PRIVATE_meterUtils.js.map +1 -1
  1120. package/cjs/utils/PRIVATE_refUtils.js +1 -1
  1121. package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
  1122. package/cjs/utils/PRIVATE_timer.js +1 -1
  1123. package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
  1124. package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
  1125. package/cjs/utils/UNSAFE_classNames/classNames.spec.js +15 -0
  1126. package/cjs/utils/UNSAFE_classNames/classNames.spec.js.map +1 -0
  1127. package/cjs/utils/UNSAFE_classNames.js +2 -2
  1128. package/cjs/utils/UNSAFE_componentUtils.js +1 -1
  1129. package/cjs/utils/UNSAFE_dataProvider.js +1 -1
  1130. package/cjs/utils/UNSAFE_dvtCommonUtils.js +20 -0
  1131. package/cjs/utils/UNSAFE_dvtCommonUtils.js.map +1 -0
  1132. package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
  1133. package/cjs/utils/UNSAFE_getLocale.js +1 -1
  1134. package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
  1135. package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
  1136. package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  1137. package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  1138. package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
  1139. package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
  1140. package/cjs/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +63 -0
  1141. package/cjs/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js.map +1 -0
  1142. package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
  1143. package/cjs/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +28 -0
  1144. package/cjs/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js.map +1 -0
  1145. package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
  1146. package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
  1147. package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
  1148. package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
  1149. package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
  1150. package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
  1151. package/cjs/utils/UNSAFE_keys.js +1 -1
  1152. package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
  1153. package/cjs/utils/UNSAFE_logger.js +3 -3
  1154. package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
  1155. package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
  1156. package/cjs/utils/UNSAFE_mergeProps.js +1 -1
  1157. package/cjs/utils/UNSAFE_meterTypes.js +1 -1
  1158. package/cjs/utils/UNSAFE_roles.js +1 -1
  1159. package/cjs/utils/UNSAFE_selectUtils.js +1 -1
  1160. package/cjs/utils/UNSAFE_size.js +1 -1
  1161. package/cjs/utils/UNSAFE_soundUtils.js +1 -1
  1162. package/cjs/utils/UNSAFE_stringUtils/stringUtils.spec.js +83 -0
  1163. package/cjs/utils/UNSAFE_stringUtils/stringUtils.spec.js.map +1 -0
  1164. package/cjs/utils/UNSAFE_stringUtils.js +2 -2
  1165. package/cjs/utils/UNSAFE_typeUtils.js +1 -1
  1166. package/cjs/utils/UNSAFE_units.js +2 -2
  1167. package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1168. package/es/ClearIcon-14e26c73.js +60 -0
  1169. package/es/ClearIcon-14e26c73.js.map +1 -0
  1170. package/es/LoadMoreCollection-5d52230f.js +64 -0
  1171. package/es/LoadMoreCollection-5d52230f.js.map +1 -0
  1172. package/es/PRIVATE_Collection.js +1 -1
  1173. package/es/PRIVATE_List.css +15 -15
  1174. package/es/PRIVATE_List.js +24 -24
  1175. package/es/PRIVATE_List.js.map +1 -1
  1176. package/es/PRIVATE_Message.css +27 -27
  1177. package/es/PRIVATE_Message.js +35 -35
  1178. package/es/PRIVATE_Message.js.map +1 -1
  1179. package/es/PRIVATE_MessageLayer.css +7 -7
  1180. package/es/PRIVATE_MessageLayer.js +14 -14
  1181. package/es/PRIVATE_MessageLayer.js.map +1 -1
  1182. package/es/PRIVATE_Meter.js +2 -2
  1183. package/es/PRIVATE_SelectCommon.css +13 -13
  1184. package/es/PRIVATE_SelectCommon.js +63 -27
  1185. package/es/PRIVATE_SelectCommon.js.map +1 -1
  1186. package/es/PRIVATE_TransitionGroup.js +1 -1
  1187. package/es/PRIVATE_VirtualizedCollection.js +1 -1
  1188. package/es/Theme-redwood/theme.css +45 -9
  1189. package/es/Theme-stable/theme.css +65 -5
  1190. package/es/UNSAFE_AspectRatio.css +1 -1
  1191. package/es/UNSAFE_AspectRatio.js +7 -7
  1192. package/es/UNSAFE_Avatar.css +8 -8
  1193. package/es/UNSAFE_Avatar.js +10 -10
  1194. package/es/UNSAFE_Avatar.js.map +1 -1
  1195. package/es/UNSAFE_Badge.css +13 -13
  1196. package/es/UNSAFE_Badge.js +14 -14
  1197. package/es/UNSAFE_Badge.js.map +1 -1
  1198. package/es/UNSAFE_BaseButton.css +15 -15
  1199. package/es/UNSAFE_BaseButton.js +41 -25
  1200. package/es/UNSAFE_BaseButton.js.map +1 -1
  1201. package/es/UNSAFE_Button.css +7 -8
  1202. package/es/UNSAFE_Button.js +16 -17
  1203. package/es/UNSAFE_Button.js.map +1 -1
  1204. package/es/UNSAFE_Center.js +7 -7
  1205. package/es/UNSAFE_Chip.css +7 -7
  1206. package/es/UNSAFE_Chip.js +8 -8
  1207. package/es/UNSAFE_Chip.js.map +1 -1
  1208. package/es/UNSAFE_Collapsible.css +8 -8
  1209. package/es/UNSAFE_Collapsible.js +16 -16
  1210. package/es/UNSAFE_Collapsible.js.map +1 -1
  1211. package/es/UNSAFE_Collection.js +1 -1
  1212. package/es/UNSAFE_ComponentMessage.css +2 -2
  1213. package/es/UNSAFE_ComponentMessage.js +10 -10
  1214. package/es/UNSAFE_Divider.css +1 -1
  1215. package/es/UNSAFE_Divider.js +6 -6
  1216. package/es/UNSAFE_EmptyList.js +1 -1
  1217. package/es/UNSAFE_Environment.js +1 -1
  1218. package/es/UNSAFE_FilePicker.css +6 -6
  1219. package/es/UNSAFE_FilePicker.js +17 -25
  1220. package/es/UNSAFE_FilePicker.js.map +1 -1
  1221. package/es/UNSAFE_Flex.css +2 -2
  1222. package/es/UNSAFE_Flex.js +9 -9
  1223. package/es/UNSAFE_Flex.js.map +1 -1
  1224. package/es/UNSAFE_Floating.js +47 -26
  1225. package/es/UNSAFE_Floating.js.map +1 -1
  1226. package/es/UNSAFE_FocusTrap.css +2 -2
  1227. package/es/UNSAFE_FocusTrap.js +6 -6
  1228. package/es/UNSAFE_Grid.css +1 -1
  1229. package/es/UNSAFE_Grid.js +8 -8
  1230. package/es/UNSAFE_Grid.js.map +1 -1
  1231. package/es/UNSAFE_Heading.css +9 -9
  1232. package/es/UNSAFE_Heading.js +16 -16
  1233. package/es/UNSAFE_Heading.js.map +1 -1
  1234. package/es/UNSAFE_HiddenAccessible.css +1 -1
  1235. package/es/UNSAFE_HiddenAccessible.js +2 -2
  1236. package/es/UNSAFE_HiddenAccessible.js.map +1 -1
  1237. package/es/UNSAFE_HighlightText.css +1 -1
  1238. package/es/UNSAFE_HighlightText.js +2 -2
  1239. package/es/UNSAFE_HighlightText.js.map +1 -1
  1240. package/es/UNSAFE_Icon.css +8 -21
  1241. package/es/UNSAFE_Icon.js +18 -32
  1242. package/es/UNSAFE_Icon.js.map +1 -1
  1243. package/es/UNSAFE_Icons.js +5 -4
  1244. package/es/UNSAFE_Icons.js.map +1 -1
  1245. package/es/UNSAFE_Indexer.css +7 -7
  1246. package/es/UNSAFE_Indexer.js +15 -15
  1247. package/es/UNSAFE_Indexer.js.map +1 -1
  1248. package/es/UNSAFE_InputPassword.css +1 -1
  1249. package/es/UNSAFE_InputPassword.js +10 -10
  1250. package/es/UNSAFE_InputText.css +1 -1
  1251. package/es/UNSAFE_InputText.js +9 -9
  1252. package/es/UNSAFE_Label.css +13 -13
  1253. package/es/UNSAFE_Label.js +15 -15
  1254. package/es/UNSAFE_Label.js.map +1 -1
  1255. package/es/UNSAFE_LabelValueLayout.css +9 -9
  1256. package/es/UNSAFE_LabelValueLayout.js +16 -16
  1257. package/es/UNSAFE_LabelValueLayout.js.map +1 -1
  1258. package/es/UNSAFE_Layer.js +1 -1
  1259. package/es/UNSAFE_Link.css +5 -5
  1260. package/es/UNSAFE_Link.js +10 -6
  1261. package/es/UNSAFE_Link.js.map +1 -1
  1262. package/es/UNSAFE_ListItemLayout.css +9 -9
  1263. package/es/UNSAFE_ListItemLayout.js +16 -16
  1264. package/es/UNSAFE_ListItemLayout.js.map +1 -1
  1265. package/es/UNSAFE_ListView.js +9 -9
  1266. package/es/UNSAFE_LiveRegion.css +1 -1
  1267. package/es/UNSAFE_LiveRegion.js +2 -2
  1268. package/es/UNSAFE_LiveRegion.js.map +1 -1
  1269. package/es/UNSAFE_LoadMoreCollection.js +2 -2
  1270. package/es/UNSAFE_Menu.css +25 -17
  1271. package/es/UNSAFE_Menu.js +278 -107
  1272. package/es/UNSAFE_Menu.js.map +1 -1
  1273. package/es/UNSAFE_MessageBanner.js +8 -8
  1274. package/es/UNSAFE_MessageToast.css +1 -1
  1275. package/es/UNSAFE_MessageToast.js +9 -9
  1276. package/es/UNSAFE_MeterBar.css +44 -43
  1277. package/es/UNSAFE_MeterBar.js +54 -49
  1278. package/es/UNSAFE_MeterBar.js.map +1 -1
  1279. package/es/UNSAFE_MeterCircle.css +46 -46
  1280. package/es/UNSAFE_MeterCircle.js +52 -51
  1281. package/es/UNSAFE_MeterCircle.js.map +1 -1
  1282. package/es/UNSAFE_Modal.css +3 -3
  1283. package/es/UNSAFE_Modal.js +9 -47
  1284. package/es/UNSAFE_Modal.js.map +1 -1
  1285. package/es/UNSAFE_NumberInputText.js +8 -8
  1286. package/es/UNSAFE_PrefixSuffix.css +8 -8
  1287. package/es/UNSAFE_PrefixSuffix.js +9 -9
  1288. package/es/UNSAFE_PrefixSuffix.js.map +1 -1
  1289. package/es/UNSAFE_ProgressBar.css +6 -6
  1290. package/es/UNSAFE_ProgressBar.js +8 -8
  1291. package/es/UNSAFE_ProgressBar.js.map +1 -1
  1292. package/es/UNSAFE_ProgressCircle.css +6 -6
  1293. package/es/UNSAFE_ProgressCircle.js +9 -8
  1294. package/es/UNSAFE_ProgressCircle.js.map +1 -1
  1295. package/es/UNSAFE_RatingGauge.css +20 -20
  1296. package/es/UNSAFE_RatingGauge.js +117 -72
  1297. package/es/UNSAFE_RatingGauge.js.map +1 -1
  1298. package/es/UNSAFE_SelectMultiple.css +1 -1
  1299. package/es/UNSAFE_SelectMultiple.js +19 -14
  1300. package/es/UNSAFE_SelectMultiple.js.map +1 -1
  1301. package/es/UNSAFE_SelectSingle.js +18 -13
  1302. package/es/UNSAFE_SelectSingle.js.map +1 -1
  1303. package/es/UNSAFE_Selector.css +5 -5
  1304. package/es/UNSAFE_Selector.js +14 -14
  1305. package/es/UNSAFE_Selector.js.map +1 -1
  1306. package/es/UNSAFE_Skeleton.css +1 -1
  1307. package/es/UNSAFE_Skeleton.js +7 -7
  1308. package/es/UNSAFE_Spacer.js +7 -7
  1309. package/es/UNSAFE_SplitMenuButton.css +5 -5
  1310. package/es/UNSAFE_SplitMenuButton.js +17 -14
  1311. package/es/UNSAFE_SplitMenuButton.js.map +1 -1
  1312. package/es/UNSAFE_Subheading.css +8 -0
  1313. package/es/UNSAFE_Subheading.js +11008 -0
  1314. package/es/UNSAFE_Subheading.js.map +1 -0
  1315. package/es/UNSAFE_Text.css +25 -25
  1316. package/es/UNSAFE_Text.js +31 -31
  1317. package/es/UNSAFE_Text.js.map +1 -1
  1318. package/es/UNSAFE_TextArea.css +3 -3
  1319. package/es/UNSAFE_TextArea.js +11 -11
  1320. package/es/UNSAFE_TextArea.js.map +1 -1
  1321. package/es/UNSAFE_TextAreaAutosize.js +8 -8
  1322. package/es/UNSAFE_TextField.css +58 -58
  1323. package/es/UNSAFE_TextField.js +65 -65
  1324. package/es/UNSAFE_TextField.js.map +1 -1
  1325. package/es/UNSAFE_ThemedIcons.js +5 -4
  1326. package/es/UNSAFE_ThemedIcons.js.map +1 -1
  1327. package/es/UNSAFE_UserAssistance.css +8 -8
  1328. package/es/UNSAFE_UserAssistance.js +16 -16
  1329. package/es/UNSAFE_UserAssistance.js.map +1 -1
  1330. package/es/UNSAFE_View.js +7 -7
  1331. package/es/UNSAFE_VirtualizedListView.js +9 -9
  1332. package/es/UNSAFE_WindowOverlay.js +1 -1
  1333. package/es/_curry1-2e8e0d03.js +68 -0
  1334. package/es/_curry1-2e8e0d03.js.map +1 -0
  1335. package/es/_curry2-881202fe.js +46 -0
  1336. package/es/_curry2-881202fe.js.map +1 -0
  1337. package/es/_curry3-41970884.js +68 -0
  1338. package/es/_curry3-41970884.js.map +1 -0
  1339. package/es/_has-f0e635df.js +12 -0
  1340. package/es/_has-f0e635df.js.map +1 -0
  1341. package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  1342. package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
  1343. package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
  1344. package/es/hooks/PRIVATE_useItemAction.js +1 -1
  1345. package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  1346. package/es/hooks/PRIVATE_useSelection.js +1 -1
  1347. package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
  1348. package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  1349. package/es/hooks/UNSAFE_useActionable.js +1 -1
  1350. package/es/hooks/UNSAFE_useActive.js +1 -1
  1351. package/es/hooks/UNSAFE_useAnimation.js +2 -2
  1352. package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
  1353. package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
  1354. package/es/hooks/UNSAFE_useClearIcon.js +1 -1
  1355. package/es/hooks/UNSAFE_useColorScheme.js +1 -1
  1356. package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  1357. package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  1358. package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  1359. package/es/hooks/UNSAFE_useDebounce.js +1 -1
  1360. package/es/hooks/UNSAFE_useFloating.js +2 -2
  1361. package/es/hooks/UNSAFE_useFocus.js +1 -1
  1362. package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
  1363. package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
  1364. package/es/hooks/UNSAFE_useFormContext.js +1 -1
  1365. package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
  1366. package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
  1367. package/es/hooks/UNSAFE_useHover.js +3 -3
  1368. package/es/hooks/UNSAFE_useHover.js.map +1 -1
  1369. package/es/hooks/UNSAFE_useId.js +1 -1
  1370. package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
  1371. package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  1372. package/es/hooks/UNSAFE_useLongPress.js +1 -1
  1373. package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
  1374. package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
  1375. package/es/hooks/UNSAFE_usePan.js +1 -1
  1376. package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  1377. package/es/hooks/UNSAFE_usePress.js +1 -1
  1378. package/es/hooks/UNSAFE_useScale.js +1 -1
  1379. package/es/hooks/UNSAFE_useSwipe.js +1 -1
  1380. package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
  1381. package/es/hooks/UNSAFE_useTap.js +1 -1
  1382. package/es/hooks/UNSAFE_useTextField.js +1 -1
  1383. package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  1384. package/es/hooks/UNSAFE_useTheme.js +1 -1
  1385. package/es/hooks/UNSAFE_useTimer.js +1 -1
  1386. package/es/hooks/UNSAFE_useToggle.js +1 -1
  1387. package/es/hooks/UNSAFE_useTooltip.css +4 -4
  1388. package/es/hooks/UNSAFE_useTooltip.js +19 -16
  1389. package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
  1390. package/es/hooks/UNSAFE_useTouch.js +1 -1
  1391. package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
  1392. package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
  1393. package/es/hooks/UNSAFE_useUser.js +1 -1
  1394. package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
  1395. package/es/index-e46c8745.js +396 -0
  1396. package/es/index-e46c8745.js.map +1 -0
  1397. package/es/keys-80e99f26.js +126 -0
  1398. package/es/keys-80e99f26.js.map +1 -0
  1399. package/es/resources/nls/ar/bundle.js +4 -2
  1400. package/es/resources/nls/ar/bundle.js.map +1 -1
  1401. package/es/resources/nls/ar-XB/bundle.js +4 -2
  1402. package/es/resources/nls/ar-XB/bundle.js.map +1 -1
  1403. package/es/resources/nls/bg/bundle.js +4 -2
  1404. package/es/resources/nls/bg/bundle.js.map +1 -1
  1405. package/es/resources/nls/bs/bundle.js +4 -2
  1406. package/es/resources/nls/bs/bundle.js.map +1 -1
  1407. package/es/resources/nls/bs-Cyrl/bundle.js +4 -2
  1408. package/es/resources/nls/bs-Cyrl/bundle.js.map +1 -1
  1409. package/es/resources/nls/bundle.js +3 -1
  1410. package/es/resources/nls/bundle.js.map +1 -1
  1411. package/es/resources/nls/cs/bundle.js +4 -2
  1412. package/es/resources/nls/cs/bundle.js.map +1 -1
  1413. package/es/resources/nls/da/bundle.js +5 -3
  1414. package/es/resources/nls/da/bundle.js.map +1 -1
  1415. package/es/resources/nls/de/bundle.js +4 -2
  1416. package/es/resources/nls/de/bundle.js.map +1 -1
  1417. package/es/resources/nls/el/bundle.js +4 -2
  1418. package/es/resources/nls/el/bundle.js.map +1 -1
  1419. package/es/resources/nls/en/bundle.js +3 -1
  1420. package/es/resources/nls/en/bundle.js.map +1 -1
  1421. package/es/resources/nls/en-XA/bundle.js +4 -2
  1422. package/es/resources/nls/en-XA/bundle.js.map +1 -1
  1423. package/es/resources/nls/en-XC/bundle.js +4 -2
  1424. package/es/resources/nls/en-XC/bundle.js.map +1 -1
  1425. package/es/resources/nls/es/bundle.js +4 -2
  1426. package/es/resources/nls/es/bundle.js.map +1 -1
  1427. package/es/resources/nls/et/bundle.js +4 -2
  1428. package/es/resources/nls/et/bundle.js.map +1 -1
  1429. package/es/resources/nls/fi/bundle.js +4 -2
  1430. package/es/resources/nls/fi/bundle.js.map +1 -1
  1431. package/es/resources/nls/fr/bundle.js +4 -2
  1432. package/es/resources/nls/fr/bundle.js.map +1 -1
  1433. package/es/resources/nls/fr-CA/bundle.js +4 -2
  1434. package/es/resources/nls/fr-CA/bundle.js.map +1 -1
  1435. package/es/resources/nls/he/bundle.js +4 -2
  1436. package/es/resources/nls/he/bundle.js.map +1 -1
  1437. package/es/resources/nls/hr/bundle.js +4 -2
  1438. package/es/resources/nls/hr/bundle.js.map +1 -1
  1439. package/es/resources/nls/hu/bundle.js +6 -4
  1440. package/es/resources/nls/hu/bundle.js.map +1 -1
  1441. package/es/resources/nls/is/bundle.js +4 -2
  1442. package/es/resources/nls/is/bundle.js.map +1 -1
  1443. package/es/resources/nls/it/bundle.js +4 -2
  1444. package/es/resources/nls/it/bundle.js.map +1 -1
  1445. package/es/resources/nls/ja/bundle.js +4 -2
  1446. package/es/resources/nls/ja/bundle.js.map +1 -1
  1447. package/es/resources/nls/ko/bundle.js +4 -2
  1448. package/es/resources/nls/ko/bundle.js.map +1 -1
  1449. package/es/resources/nls/lt/bundle.js +4 -2
  1450. package/es/resources/nls/lt/bundle.js.map +1 -1
  1451. package/es/resources/nls/lv/bundle.js +4 -2
  1452. package/es/resources/nls/lv/bundle.js.map +1 -1
  1453. package/es/resources/nls/ms/bundle.js +4 -2
  1454. package/es/resources/nls/ms/bundle.js.map +1 -1
  1455. package/es/resources/nls/nl/bundle.js +4 -2
  1456. package/es/resources/nls/nl/bundle.js.map +1 -1
  1457. package/es/resources/nls/no/bundle.js +4 -2
  1458. package/es/resources/nls/no/bundle.js.map +1 -1
  1459. package/es/resources/nls/pl/bundle.js +4 -2
  1460. package/es/resources/nls/pl/bundle.js.map +1 -1
  1461. package/es/resources/nls/pt/bundle.js +4 -2
  1462. package/es/resources/nls/pt/bundle.js.map +1 -1
  1463. package/es/resources/nls/pt-PT/bundle.js +4 -2
  1464. package/es/resources/nls/pt-PT/bundle.js.map +1 -1
  1465. package/es/resources/nls/ro/bundle.js +4 -2
  1466. package/es/resources/nls/ro/bundle.js.map +1 -1
  1467. package/es/resources/nls/ru/bundle.js +4 -2
  1468. package/es/resources/nls/ru/bundle.js.map +1 -1
  1469. package/es/resources/nls/sk/bundle.js +4 -2
  1470. package/es/resources/nls/sk/bundle.js.map +1 -1
  1471. package/es/resources/nls/sl/bundle.js +4 -2
  1472. package/es/resources/nls/sl/bundle.js.map +1 -1
  1473. package/es/resources/nls/sr/bundle.js +4 -2
  1474. package/es/resources/nls/sr/bundle.js.map +1 -1
  1475. package/es/resources/nls/sr-Latn/bundle.js +4 -2
  1476. package/es/resources/nls/sr-Latn/bundle.js.map +1 -1
  1477. package/es/resources/nls/supportedLocales.js +1 -1
  1478. package/es/resources/nls/sv/bundle.js +4 -2
  1479. package/es/resources/nls/sv/bundle.js.map +1 -1
  1480. package/es/resources/nls/th/bundle.js +4 -2
  1481. package/es/resources/nls/th/bundle.js.map +1 -1
  1482. package/es/resources/nls/tr/bundle.js +4 -2
  1483. package/es/resources/nls/tr/bundle.js.map +1 -1
  1484. package/es/resources/nls/uk/bundle.js +4 -2
  1485. package/es/resources/nls/uk/bundle.js.map +1 -1
  1486. package/es/resources/nls/vi/bundle.js +4 -2
  1487. package/es/resources/nls/vi/bundle.js.map +1 -1
  1488. package/es/resources/nls/zh-Hans/bundle.js +4 -2
  1489. package/es/resources/nls/zh-Hans/bundle.js.map +1 -1
  1490. package/es/resources/nls/zh-Hant/bundle.js +4 -2
  1491. package/es/resources/nls/zh-Hant/bundle.js.map +1 -1
  1492. package/es/translationBundle.js +1 -1
  1493. package/es/tslib.es6-724d273f.js +244 -0
  1494. package/es/tslib.es6-724d273f.js.map +1 -0
  1495. package/es/useModal-4f7b29ea.js +45 -0
  1496. package/es/useModal-4f7b29ea.js.map +1 -0
  1497. package/es/useSingleSelection-088d4e4c.js +41 -0
  1498. package/es/useSingleSelection-088d4e4c.js.map +1 -0
  1499. package/es/utils/PRIVATE_clientHints.js +49 -15
  1500. package/es/utils/PRIVATE_clientHints.js.map +1 -1
  1501. package/es/utils/PRIVATE_collectionUtils.js +1 -1
  1502. package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
  1503. package/es/utils/PRIVATE_floatingUtils.js +1 -1
  1504. package/es/utils/PRIVATE_meterUtils.js +20 -4
  1505. package/es/utils/PRIVATE_meterUtils.js.map +1 -1
  1506. package/es/utils/PRIVATE_refUtils.js +1 -1
  1507. package/es/utils/PRIVATE_tabbableUtils.js +4 -4
  1508. package/es/utils/PRIVATE_timer.js +1 -1
  1509. package/es/utils/UNSAFE_arrayUtils.js +1 -1
  1510. package/es/utils/UNSAFE_attributeUtils.js +1 -1
  1511. package/es/utils/UNSAFE_classNames.js +1 -1
  1512. package/es/utils/UNSAFE_componentUtils.js +1 -1
  1513. package/es/utils/UNSAFE_dataProvider.js +1 -1
  1514. package/es/utils/UNSAFE_dvtCommonUtils.js +16 -0
  1515. package/es/utils/UNSAFE_dvtCommonUtils.js.map +1 -0
  1516. package/es/utils/UNSAFE_filePickerUtils.js +1 -1
  1517. package/es/utils/UNSAFE_getLocale.js +1 -1
  1518. package/es/utils/UNSAFE_interpolations/aria.js +1 -1
  1519. package/es/utils/UNSAFE_interpolations/borders.js +1 -1
  1520. package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  1521. package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  1522. package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  1523. package/es/utils/UNSAFE_interpolations/colors.js +1 -1
  1524. package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
  1525. package/es/utils/UNSAFE_interpolations/flexbox.css +7 -7
  1526. package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
  1527. package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
  1528. package/es/utils/UNSAFE_interpolations/flexitem.css +7 -7
  1529. package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
  1530. package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
  1531. package/es/utils/UNSAFE_interpolations/grid.js +1 -1
  1532. package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
  1533. package/es/utils/UNSAFE_interpolations/padding.js +1 -1
  1534. package/es/utils/UNSAFE_interpolations/text.css +3 -3
  1535. package/es/utils/UNSAFE_interpolations/text.js +7 -7
  1536. package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
  1537. package/es/utils/UNSAFE_keys.js +1 -1
  1538. package/es/utils/UNSAFE_lengthFilter.js +1 -1
  1539. package/es/utils/UNSAFE_logger.js +3 -3
  1540. package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
  1541. package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
  1542. package/es/utils/UNSAFE_mergeProps.js +1 -1
  1543. package/es/utils/UNSAFE_meterTypes.js +1 -1
  1544. package/es/utils/UNSAFE_roles.js +1 -1
  1545. package/es/utils/UNSAFE_selectUtils.js +1 -1
  1546. package/es/utils/UNSAFE_size.js +1 -1
  1547. package/es/utils/UNSAFE_soundUtils.js +1 -1
  1548. package/es/utils/UNSAFE_stringUtils.js +1 -1
  1549. package/es/utils/UNSAFE_typeUtils.js +1 -1
  1550. package/es/utils/UNSAFE_units.js +1 -1
  1551. package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1552. package/package.json +1 -1
  1553. package/types/UNSAFE_BaseButton/BaseButton.d.ts +12 -5
  1554. package/types/UNSAFE_Button/Button.d.ts +11 -4
  1555. package/types/UNSAFE_Button/ButtonLayout.d.ts +0 -1
  1556. package/types/UNSAFE_Floating/Floating.d.ts +38 -0
  1557. package/types/UNSAFE_Heading/Heading.d.ts +1 -1
  1558. package/types/UNSAFE_Icon/Icon.d.ts +2 -16
  1559. package/types/UNSAFE_Link/Link.d.ts +9 -1
  1560. package/types/UNSAFE_Menu/DropdownMenu.d.ts +3 -0
  1561. package/types/UNSAFE_Menu/Menu.d.ts +2 -2
  1562. package/types/UNSAFE_Menu/MenuContainer.d.ts +15 -0
  1563. package/types/UNSAFE_Menu/SheetMenu.d.ts +3 -0
  1564. package/types/UNSAFE_Menu/useMenuContext.d.ts +1 -1
  1565. package/types/UNSAFE_Menu/useMenuSwipe.d.ts +20 -0
  1566. package/types/UNSAFE_MeterBar/ReferenceLines.d.ts +2 -1
  1567. package/types/UNSAFE_MeterBar/ThresholdBar.d.ts +2 -1
  1568. package/types/UNSAFE_MeterCircle/CircularReferenceLine.d.ts +2 -1
  1569. package/types/UNSAFE_Popup/Popup.d.ts +46 -9
  1570. package/types/UNSAFE_RatingGauge/RatingGauge.d.ts +6 -0
  1571. package/types/UNSAFE_RatingGauge/RatingUtils.d.ts +28 -0
  1572. package/types/UNSAFE_RatingGauge/useTooltipOrDatatip.d.ts +3 -1
  1573. package/types/UNSAFE_SelectMultiple/useSelectMultiple.d.ts +2 -0
  1574. package/types/UNSAFE_SelectSingle/useSelectSingle.d.ts +2 -0
  1575. package/types/UNSAFE_Subheading/Subheading.d.ts +23 -0
  1576. package/types/UNSAFE_Subheading/index.d.ts +1 -0
  1577. package/types/resources/nls/bundle.d.ts +2 -0
  1578. package/types/utils/UNSAFE_dvtCommonUtils/dvtCommonUtils.d.ts +8 -0
  1579. package/types/utils/UNSAFE_dvtCommonUtils/index.d.ts +1 -0
  1580. package/types/utils/UNSAFE_meterTypes/meterTypes.d.ts +7 -3
  1581. package/amd/Badge-ca074748.js +0 -2
  1582. package/amd/Badge-ca074748.js.map +0 -1
  1583. package/amd/BaseButton-3dd95cea.js +0 -2
  1584. package/amd/BaseButton-3dd95cea.js.map +0 -1
  1585. package/amd/Button-22b5f903.js +0 -2
  1586. package/amd/Button-22b5f903.js.map +0 -1
  1587. package/amd/Chip-780c2567.js +0 -2
  1588. package/amd/Chip-780c2567.js.map +0 -1
  1589. package/amd/ClearIcon-5c5df812.js +0 -2
  1590. package/amd/ClearIcon-5c5df812.js.map +0 -1
  1591. package/amd/Collection-6621d74c.js +0 -2
  1592. package/amd/Collection-6621d74c.js.map +0 -1
  1593. package/amd/ComponentMessage-b7f25750.js +0 -2
  1594. package/amd/ComponentMessage-b7f25750.js.map +0 -1
  1595. package/amd/ComponentMessageContainer-31c64104.js +0 -2
  1596. package/amd/ComponentMessageContainer-31c64104.js.map +0 -1
  1597. package/amd/Divider-b2c88668.js +0 -2
  1598. package/amd/Divider-b2c88668.js.map +0 -1
  1599. package/amd/FilePicker-b868d7da.js +0 -2
  1600. package/amd/FilePicker-b868d7da.js.map +0 -1
  1601. package/amd/Flex-ab401fac.js +0 -2
  1602. package/amd/Flex-ab401fac.js.map +0 -1
  1603. package/amd/Floating-31fb8ae6.js +0 -2
  1604. package/amd/Floating-31fb8ae6.js.map +0 -1
  1605. package/amd/FocusTrap-0d5cde5d.js +0 -2
  1606. package/amd/FocusTrap-0d5cde5d.js.map +0 -1
  1607. package/amd/FormControlUtils-749b1053.js +0 -2
  1608. package/amd/FormControlUtils-749b1053.js.map +0 -1
  1609. package/amd/Heading-13567578.js +0 -2
  1610. package/amd/Heading-13567578.js.map +0 -1
  1611. package/amd/HiddenAccessible-3ad00300.js +0 -2
  1612. package/amd/HiddenAccessible-3ad00300.js.map +0 -1
  1613. package/amd/HighlightText-9a0eda6f.js +0 -2
  1614. package/amd/HighlightText-9a0eda6f.js.map +0 -1
  1615. package/amd/Icon-b5346fcc.js +0 -2
  1616. package/amd/Icon-b5346fcc.js.map +0 -1
  1617. package/amd/Indexer-09f2131a.js +0 -2
  1618. package/amd/Indexer-09f2131a.js.map +0 -1
  1619. package/amd/InlineHelpSource-f63a8bfb.js +0 -2
  1620. package/amd/InlineHelpSource-f63a8bfb.js.map +0 -1
  1621. package/amd/Link-dc266497.js +0 -2
  1622. package/amd/Link-dc266497.js.map +0 -1
  1623. package/amd/List-ad5c8aaa.js +0 -2
  1624. package/amd/List-ad5c8aaa.js.map +0 -1
  1625. package/amd/ListItemTextLayout-e004bb3a.js +0 -2
  1626. package/amd/ListItemTextLayout-e004bb3a.js.map +0 -1
  1627. package/amd/ListView-95009f62.js +0 -2
  1628. package/amd/ListView-95009f62.js.map +0 -1
  1629. package/amd/LoadMoreCollection-22a0bb0f.js +0 -2
  1630. package/amd/LoadMoreCollection-22a0bb0f.js.map +0 -1
  1631. package/amd/Menu-d6235f42.js +0 -2
  1632. package/amd/Menu-d6235f42.js.map +0 -1
  1633. package/amd/MenuDivider-16357ec0.js +0 -2
  1634. package/amd/MenuDivider-16357ec0.js.map +0 -1
  1635. package/amd/MenuItem-5cb2925c.js +0 -2
  1636. package/amd/MenuItem-5cb2925c.js.map +0 -1
  1637. package/amd/Message.types-693a69c2.js +0 -2
  1638. package/amd/Message.types-693a69c2.js.map +0 -1
  1639. package/amd/MessageCloseButton-f315afc4.js +0 -2
  1640. package/amd/MessageCloseButton-f315afc4.js.map +0 -1
  1641. package/amd/MessageDetail-43d9a644.js +0 -2
  1642. package/amd/MessageDetail-43d9a644.js.map +0 -1
  1643. package/amd/MessageFormattingUtils-0860b6cc.js +0 -2
  1644. package/amd/MessageFormattingUtils-0860b6cc.js.map +0 -1
  1645. package/amd/MessageLayer-bf67d28b.js +0 -2
  1646. package/amd/MessageLayer-bf67d28b.js.map +0 -1
  1647. package/amd/MessageStartIcon-b7c0ed92.js +0 -2
  1648. package/amd/MessageStartIcon-b7c0ed92.js.map +0 -1
  1649. package/amd/MessageSummary-142352fa.js +0 -2
  1650. package/amd/MessageSummary-142352fa.js.map +0 -1
  1651. package/amd/MessageTimestamp-c36cb04b.js +0 -2
  1652. package/amd/MessageTimestamp-c36cb04b.js.map +0 -1
  1653. package/amd/MessageToast-596b1e37.js +0 -2
  1654. package/amd/MessageToast-596b1e37.js.map +0 -1
  1655. package/amd/MessageUtils-4fe36e53.js +0 -2
  1656. package/amd/MessageUtils-4fe36e53.js.map +0 -1
  1657. package/amd/MessagesManager-11baf986.js +0 -2
  1658. package/amd/MessagesManager-11baf986.js.map +0 -1
  1659. package/amd/MeterCircle-a4686770.js +0 -2
  1660. package/amd/MeterCircle-a4686770.js.map +0 -1
  1661. package/amd/Modal-447b1ab4.js +0 -2
  1662. package/amd/Modal-447b1ab4.js.map +0 -1
  1663. package/amd/NumberInputText-650e068f.js +0 -2
  1664. package/amd/NumberInputText-650e068f.js.map +0 -1
  1665. package/amd/ReadonlyTextFieldInput-31c39788.js +0 -2
  1666. package/amd/ReadonlyTextFieldInput-31c39788.js.map +0 -1
  1667. package/amd/SelectMenuItem-e251525f.js +0 -2
  1668. package/amd/SelectMenuItem-e251525f.js.map +0 -1
  1669. package/amd/SelectMultiple-a0c3ffa4.js +0 -2
  1670. package/amd/SelectMultiple-a0c3ffa4.js.map +0 -1
  1671. package/amd/SelectSingle-69ae8cf0.js +0 -2
  1672. package/amd/SelectSingle-69ae8cf0.js.map +0 -1
  1673. package/amd/Skeleton-30541092.js +0 -2
  1674. package/amd/Skeleton-30541092.js.map +0 -1
  1675. package/amd/Spacer-9b0015e1.js +0 -2
  1676. package/amd/Spacer-9b0015e1.js.map +0 -1
  1677. package/amd/SplitMenuButton-05d30eec.js +0 -2
  1678. package/amd/SplitMenuButton-05d30eec.js.map +0 -1
  1679. package/amd/Text-5c91907e.js +0 -2
  1680. package/amd/Text-5c91907e.js.map +0 -1
  1681. package/amd/TextArea-a49e80a2.js +0 -2
  1682. package/amd/TextArea-a49e80a2.js.map +0 -1
  1683. package/amd/TextAreaAutosize-17c41542.js +0 -2
  1684. package/amd/TextAreaAutosize-17c41542.js.map +0 -1
  1685. package/amd/TextFieldInput-4ca045e3.js +0 -2
  1686. package/amd/TextFieldInput-4ca045e3.js.map +0 -1
  1687. package/amd/VirtualizedCollection-81572543.js +0 -2
  1688. package/amd/VirtualizedCollection-81572543.js.map +0 -1
  1689. package/amd/VirtualizedListView-e41db6f5.js +0 -2
  1690. package/amd/VirtualizedListView-e41db6f5.js.map +0 -1
  1691. package/amd/_curry1-804b6f8c.js +0 -2
  1692. package/amd/_curry1-804b6f8c.js.map +0 -1
  1693. package/amd/_curry2-1a6a3c9f.js +0 -2
  1694. package/amd/_curry2-1a6a3c9f.js.map +0 -1
  1695. package/amd/_curry3-f4ff846a.js +0 -2
  1696. package/amd/_curry3-f4ff846a.js.map +0 -1
  1697. package/amd/_has-68a93609.js +0 -2
  1698. package/amd/_has-68a93609.js.map +0 -1
  1699. package/amd/classNames-efacaca1.js +0 -2
  1700. package/amd/classNames-efacaca1.js.map +0 -1
  1701. package/amd/clientHints-ff85cc63.js +0 -2
  1702. package/amd/clientHints-ff85cc63.js.map +0 -1
  1703. package/amd/flexbox-a0839c33.js +0 -2
  1704. package/amd/flexbox-a0839c33.js.map +0 -1
  1705. package/amd/flexitem-a10cde90.js +0 -2
  1706. package/amd/flexitem-a10cde90.js.map +0 -1
  1707. package/amd/index-1318fb6a.js +0 -2
  1708. package/amd/index-1318fb6a.js.map +0 -1
  1709. package/amd/index-235e3f2f.js +0 -2
  1710. package/amd/index-235e3f2f.js.map +0 -1
  1711. package/amd/index-b8e5d729.js +0 -2
  1712. package/amd/index-b8e5d729.js.map +0 -1
  1713. package/amd/keys-a890be37.js +0 -2
  1714. package/amd/keys-a890be37.js.map +0 -1
  1715. package/amd/listViewSelectionTests-8a0bcbe0.js +0 -2
  1716. package/amd/listViewSelectionTests-8a0bcbe0.js.map +0 -1
  1717. package/amd/listViewTabbableModeTests-eae05c0b.js +0 -2
  1718. package/amd/listViewTabbableModeTests-eae05c0b.js.map +0 -1
  1719. package/amd/listViewTestFixtures-2ed542fc.js +0 -2
  1720. package/amd/listViewTestFixtures-2ed542fc.js.map +0 -1
  1721. package/amd/menuTestsUtils-7be67fc5.js +0 -2
  1722. package/amd/menuTestsUtils-7be67fc5.js.map +0 -1
  1723. package/amd/stringUtils-b50295bb.js +0 -2
  1724. package/amd/stringUtils-b50295bb.js.map +0 -1
  1725. package/amd/testHelpers-960949eb.js +0 -2
  1726. package/amd/testHelpers-960949eb.js.map +0 -1
  1727. package/amd/tslib.es6-0620c488.js +0 -2
  1728. package/amd/tslib.es6-0620c488.js.map +0 -1
  1729. package/amd/useAnimation-e0b7ba57.js +0 -2
  1730. package/amd/useAnimation-e0b7ba57.js.map +0 -1
  1731. package/amd/useFocusWithin-37ff3610.js +0 -2
  1732. package/amd/useFocusWithin-37ff3610.js.map +0 -1
  1733. package/amd/useSingleSelection-4986b9d2.js +0 -2
  1734. package/amd/useSingleSelection-4986b9d2.js.map +0 -1
  1735. package/cjs/Badge-744200aa.js +0 -43
  1736. package/cjs/Badge-744200aa.js.map +0 -1
  1737. package/cjs/BaseButton-226b2c2c.js +0 -162
  1738. package/cjs/BaseButton-226b2c2c.js.map +0 -1
  1739. package/cjs/Button-dd6bb7d8.js +0 -75
  1740. package/cjs/Button-dd6bb7d8.js.map +0 -1
  1741. package/cjs/Chip-ffd25798.js +0 -61
  1742. package/cjs/Chip-ffd25798.js.map +0 -1
  1743. package/cjs/ClearIcon-58fe58f6.js +0 -62
  1744. package/cjs/ClearIcon-58fe58f6.js.map +0 -1
  1745. package/cjs/Collection-6a25bfbe.js +0 -19
  1746. package/cjs/Collection-6a25bfbe.js.map +0 -1
  1747. package/cjs/ComponentMessage-1203d9ca.js +0 -54
  1748. package/cjs/ComponentMessage-1203d9ca.js.map +0 -1
  1749. package/cjs/ComponentMessageContainer-dad38b84.js +0 -54
  1750. package/cjs/ComponentMessageContainer-dad38b84.js.map +0 -1
  1751. package/cjs/Divider-50ec7f3a.js +0 -36
  1752. package/cjs/Divider-50ec7f3a.js.map +0 -1
  1753. package/cjs/FilePicker-b7ff1876.js +0 -602
  1754. package/cjs/FilePicker-b7ff1876.js.map +0 -1
  1755. package/cjs/Flex-a6d5e94c.js +0 -46
  1756. package/cjs/Flex-a6d5e94c.js.map +0 -1
  1757. package/cjs/Floating-46f59df8.js +0 -316
  1758. package/cjs/Floating-46f59df8.js.map +0 -1
  1759. package/cjs/FocusTrap-db1972cf.js +0 -149
  1760. package/cjs/FocusTrap-db1972cf.js.map +0 -1
  1761. package/cjs/FormControlUtils-e9e11ef7.js +0 -24
  1762. package/cjs/FormControlUtils-e9e11ef7.js.map +0 -1
  1763. package/cjs/Heading-0ac8b32d.js +0 -77
  1764. package/cjs/Heading-0ac8b32d.js.map +0 -1
  1765. package/cjs/HiddenAccessible-6ce33bf2.js +0 -26
  1766. package/cjs/HiddenAccessible-6ce33bf2.js.map +0 -1
  1767. package/cjs/HighlightText-51efdc48.js +0 -50
  1768. package/cjs/HighlightText-51efdc48.js.map +0 -1
  1769. package/cjs/Icon-61857d56.js +0 -105
  1770. package/cjs/Icon-61857d56.js.map +0 -1
  1771. package/cjs/Indexer-b6674758.js +0 -534
  1772. package/cjs/Indexer-b6674758.js.map +0 -1
  1773. package/cjs/InlineHelpSource-94f0f5d2.js +0 -35
  1774. package/cjs/InlineHelpSource-94f0f5d2.js.map +0 -1
  1775. package/cjs/Link-1750e761.js +0 -46
  1776. package/cjs/Link-1750e761.js.map +0 -1
  1777. package/cjs/List-b4a35fa2.js +0 -694
  1778. package/cjs/List-b4a35fa2.js.map +0 -1
  1779. package/cjs/ListItemTextLayout-0ea9c299.js +0 -218
  1780. package/cjs/ListItemTextLayout-0ea9c299.js.map +0 -1
  1781. package/cjs/ListView-460e6755.js +0 -18
  1782. package/cjs/ListView-460e6755.js.map +0 -1
  1783. package/cjs/LoadMoreCollection-dfd2adbf.js +0 -67
  1784. package/cjs/LoadMoreCollection-dfd2adbf.js.map +0 -1
  1785. package/cjs/Menu-15fe481a.js +0 -311
  1786. package/cjs/Menu-15fe481a.js.map +0 -1
  1787. package/cjs/MenuDivider-12f2a02e.js +0 -22
  1788. package/cjs/MenuDivider-12f2a02e.js.map +0 -1
  1789. package/cjs/MenuItem-6e542ed4.js +0 -167
  1790. package/cjs/MenuItem-6e542ed4.js.map +0 -1
  1791. package/cjs/Message.types-87463820.js +0 -11
  1792. package/cjs/Message.types-87463820.js.map +0 -1
  1793. package/cjs/MessageCloseButton-692a8c5c.js +0 -51
  1794. package/cjs/MessageCloseButton-692a8c5c.js.map +0 -1
  1795. package/cjs/MessageDetail-432460d5.js +0 -66
  1796. package/cjs/MessageDetail-432460d5.js.map +0 -1
  1797. package/cjs/MessageFormattingUtils-88f46956.js +0 -106
  1798. package/cjs/MessageFormattingUtils-88f46956.js.map +0 -1
  1799. package/cjs/MessageLayer-13fb8fdf.js +0 -88
  1800. package/cjs/MessageLayer-13fb8fdf.js.map +0 -1
  1801. package/cjs/MessageStartIcon-6cf48ec6.js +0 -70
  1802. package/cjs/MessageStartIcon-6cf48ec6.js.map +0 -1
  1803. package/cjs/MessageSummary-b217aae0.js +0 -40
  1804. package/cjs/MessageSummary-b217aae0.js.map +0 -1
  1805. package/cjs/MessageTimestamp-f07e8f15.js +0 -40
  1806. package/cjs/MessageTimestamp-f07e8f15.js.map +0 -1
  1807. package/cjs/MessageToast-8401a600.js +0 -326
  1808. package/cjs/MessageToast-8401a600.js.map +0 -1
  1809. package/cjs/MessageUtils-94a2b928.js +0 -139
  1810. package/cjs/MessageUtils-94a2b928.js.map +0 -1
  1811. package/cjs/MessagesManager-f6d1a3cc.js +0 -117
  1812. package/cjs/MessagesManager-f6d1a3cc.js.map +0 -1
  1813. package/cjs/MeterCircle-df603d56.js +0 -558
  1814. package/cjs/MeterCircle-df603d56.js.map +0 -1
  1815. package/cjs/Modal-18a4fe4d.js +0 -114
  1816. package/cjs/Modal-18a4fe4d.js.map +0 -1
  1817. package/cjs/NumberInputText-4196e408.js +0 -276
  1818. package/cjs/NumberInputText-4196e408.js.map +0 -1
  1819. package/cjs/ReadonlyTextFieldInput-6f3d70b8.js +0 -121
  1820. package/cjs/ReadonlyTextFieldInput-6f3d70b8.js.map +0 -1
  1821. package/cjs/SelectMenuItem-c935013f.js +0 -65
  1822. package/cjs/SelectMenuItem-c935013f.js.map +0 -1
  1823. package/cjs/SelectMultiple-abbb4498.js +0 -508
  1824. package/cjs/SelectMultiple-abbb4498.js.map +0 -1
  1825. package/cjs/SelectSingle-a2db7a61.js +0 -371
  1826. package/cjs/SelectSingle-a2db7a61.js.map +0 -1
  1827. package/cjs/Skeleton-720e6abe.js +0 -47
  1828. package/cjs/Skeleton-720e6abe.js.map +0 -1
  1829. package/cjs/Spacer-d7798f56.js +0 -21
  1830. package/cjs/Spacer-d7798f56.js.map +0 -1
  1831. package/cjs/SplitMenuButton-64cda976.js +0 -201
  1832. package/cjs/SplitMenuButton-64cda976.js.map +0 -1
  1833. package/cjs/Text-ee3a3409.js +0 -103
  1834. package/cjs/Text-ee3a3409.js.map +0 -1
  1835. package/cjs/TextArea-ba62c914.js +0 -151
  1836. package/cjs/TextArea-ba62c914.js.map +0 -1
  1837. package/cjs/TextAreaAutosize-96db1439.js +0 -177
  1838. package/cjs/TextAreaAutosize-96db1439.js.map +0 -1
  1839. package/cjs/TextFieldInput-8cdaa6a6.js +0 -182
  1840. package/cjs/TextFieldInput-8cdaa6a6.js.map +0 -1
  1841. package/cjs/VirtualizedCollection-566d0c99.js +0 -186
  1842. package/cjs/VirtualizedCollection-566d0c99.js.map +0 -1
  1843. package/cjs/VirtualizedListView-c98ab716.js +0 -18
  1844. package/cjs/VirtualizedListView-c98ab716.js.map +0 -1
  1845. package/cjs/_curry1-60ff2cd2.js +0 -71
  1846. package/cjs/_curry1-60ff2cd2.js.map +0 -1
  1847. package/cjs/_curry2-735704b3.js +0 -48
  1848. package/cjs/_curry2-735704b3.js.map +0 -1
  1849. package/cjs/_curry3-c0edc5d7.js +0 -70
  1850. package/cjs/_curry3-c0edc5d7.js.map +0 -1
  1851. package/cjs/_has-15002155.js +0 -14
  1852. package/cjs/_has-15002155.js.map +0 -1
  1853. package/cjs/classNames-27243499.js +0 -17
  1854. package/cjs/classNames-27243499.js.map +0 -1
  1855. package/cjs/clientHints-fe9f5782.js +0 -154
  1856. package/cjs/clientHints-fe9f5782.js.map +0 -1
  1857. package/cjs/flexbox-60cc4198.js +0 -42
  1858. package/cjs/flexbox-60cc4198.js.map +0 -1
  1859. package/cjs/flexitem-c1a7b47f.js +0 -42
  1860. package/cjs/flexitem-c1a7b47f.js.map +0 -1
  1861. package/cjs/index-4d7b10cb.js +0 -66
  1862. package/cjs/index-4d7b10cb.js.map +0 -1
  1863. package/cjs/index-a2f673ec.js +0 -407
  1864. package/cjs/index-a2f673ec.js.map +0 -1
  1865. package/cjs/index-cbca41dd.js +0 -78
  1866. package/cjs/index-cbca41dd.js.map +0 -1
  1867. package/cjs/keys-e2b4166b.js +0 -128
  1868. package/cjs/keys-e2b4166b.js.map +0 -1
  1869. package/cjs/listViewSelectionTests-b4110913.js +0 -1391
  1870. package/cjs/listViewSelectionTests-b4110913.js.map +0 -1
  1871. package/cjs/listViewTabbableModeTests-a32573c5.js +0 -117
  1872. package/cjs/listViewTabbableModeTests-a32573c5.js.map +0 -1
  1873. package/cjs/listViewTestFixtures-e29b8854.js +0 -44
  1874. package/cjs/listViewTestFixtures-e29b8854.js.map +0 -1
  1875. package/cjs/menuTestsUtils-b606f08e.js +0 -39
  1876. package/cjs/menuTestsUtils-b606f08e.js.map +0 -1
  1877. package/cjs/stringUtils-1253ae3a.js +0 -90
  1878. package/cjs/stringUtils-1253ae3a.js.map +0 -1
  1879. package/cjs/testHelpers-f44baa39.js +0 -37
  1880. package/cjs/testHelpers-f44baa39.js.map +0 -1
  1881. package/cjs/tslib.es6-9714acb3.js +0 -246
  1882. package/cjs/tslib.es6-9714acb3.js.map +0 -1
  1883. package/cjs/useAnimation-2784700e.js +0 -248
  1884. package/cjs/useAnimation-2784700e.js.map +0 -1
  1885. package/cjs/useFocusWithin-6d679223.js +0 -50
  1886. package/cjs/useFocusWithin-6d679223.js.map +0 -1
  1887. package/cjs/useSingleSelection-1c6c6051.js +0 -43
  1888. package/cjs/useSingleSelection-1c6c6051.js.map +0 -1
  1889. package/es/ClearIcon-f4e8f752.js +0 -60
  1890. package/es/ClearIcon-f4e8f752.js.map +0 -1
  1891. package/es/LoadMoreCollection-9157c437.js +0 -64
  1892. package/es/LoadMoreCollection-9157c437.js.map +0 -1
  1893. package/es/_curry1-b6de3166.js +0 -68
  1894. package/es/_curry1-b6de3166.js.map +0 -1
  1895. package/es/_curry2-410644b2.js +0 -46
  1896. package/es/_curry2-410644b2.js.map +0 -1
  1897. package/es/_curry3-677965a8.js +0 -68
  1898. package/es/_curry3-677965a8.js.map +0 -1
  1899. package/es/_has-e3120790.js +0 -12
  1900. package/es/_has-e3120790.js.map +0 -1
  1901. package/es/index-6ba31f42.js +0 -394
  1902. package/es/index-6ba31f42.js.map +0 -1
  1903. package/es/keys-8ad3954b.js +0 -126
  1904. package/es/keys-8ad3954b.js.map +0 -1
  1905. package/es/tslib.es6-b6983924.js +0 -244
  1906. package/es/tslib.es6-b6983924.js.map +0 -1
  1907. package/es/useSingleSelection-0f3a6feb.js +0 -41
  1908. package/es/useSingleSelection-0f3a6feb.js.map +0 -1
@@ -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-ab401fac","./HighlightText-9a0eda6f","./List-ad5c8aaa","./Skeleton-30541092","./UNSAFE_Floating","./UNSAFE_Layer","./utils/UNSAFE_arrayUtils","./Floating-31fb8ae6","./hooks/UNSAFE_usePress","./index-b8e5d729","./utils/UNSAFE_classNames","./classNames-efacaca1","./index-1318fb6a","./hooks/UNSAFE_useFormFieldContext","./UNSAFE_UserAssistance","./hooks/UNSAFE_useTranslationBundle","./utils/PRIVATE_clientHints","./clientHints-ff85cc63","./utils/UNSAFE_mergeProps","./utils/UNSAFE_keys","./LoadMoreCollection-22a0bb0f","./PRIVATE_Collection","./Collection-6621d74c","preact","./hooks/UNSAFE_useViewportIntersect","./PRIVATE_VirtualizedCollection","./VirtualizedCollection-81572543","./hooks/UNSAFE_useTabbableMode","./UNSAFE_FocusTrap","./FocusTrap-0d5cde5d","preact/compat","./utils/PRIVATE_tabbableUtils","./_curry1-804b6f8c","./_curry2-1a6a3c9f","./_curry3-f4ff846a","./hooks/UNSAFE_useId","./hooks/PRIVATE_useSelection","./hooks/PRIVATE_useCurrentKey","./hooks/PRIVATE_useCollectionFocusRing","./hooks/PRIVATE_useTabbableModeSet","./hooks/PRIVATE_useItemAction","./utils/PRIVATE_collectionUtils","./tslib.es6-0620c488","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./utils/UNSAFE_mergeInterpolations","./_has-68a93609","./utils/UNSAFE_interpolations/borders","./utils/UNSAFE_interpolations/boxalignment","./keys-a890be37","./utils/UNSAFE_interpolations/flexbox","./flexbox-a0839c33","./utils/UNSAFE_interpolations/flexitem","./flexitem-a10cde90","./UNSAFE_Selector","./UNSAFE_Icon","./Icon-b5346fcc","./hooks/UNSAFE_useTooltip","./hooks/UNSAFE_useHover","./hooks/UNSAFE_useToggle","./hooks/UNSAFE_useFocus","./hooks/UNSAFE_useTouch","./hooks/UNSAFE_useAnimation","./useAnimation-e0b7ba57","./index-235e3f2f","./hooks/UNSAFE_useUser","./UNSAFE_Environment","./utils/PRIVATE_floatingUtils","./utils/PRIVATE_refUtils","./hooks/UNSAFE_useOutsideClick","./hooks/UNSAFE_useTheme","./InlineHelpSource-f63a8bfb","./UNSAFE_ComponentMessage","./ComponentMessage-b7f25750","./PRIVATE_Message","./utils/PRIVATE_timer","./MessageCloseButton-f315afc4","./UNSAFE_Button","./Button-22b5f903","./UNSAFE_BaseButton","./BaseButton-3dd95cea","./hooks/UNSAFE_useActive","./MessageDetail-43d9a644","./MessageFormattingUtils-0860b6cc","./utils/UNSAFE_getLocale","./utils/UNSAFE_stringUtils","./stringUtils-b50295bb","./Message.types-693a69c2","./MessageStartIcon-b7c0ed92","./MessageSummary-142352fa","./MessageTimestamp-c36cb04b","./MessageUtils-4fe36e53","./utils/UNSAFE_soundUtils","./MessagesManager-11baf986","./PRIVATE_TransitionGroup","./hooks/UNSAFE_useMessagesContext","./UNSAFE_HiddenAccessible","./HiddenAccessible-3ad00300","./ComponentMessageContainer-31c64104","./hooks/UNSAFE_useFormContext"],function(e,t,s,n,o,a,i,l,r,c,u,d,f,A,E,h,_,b,F,S,g,p,m,v,T,U,C,k,x,N,w,y,I,R,D,P,j,L,M,O,K,H,V,B,G,z,W,q,Y,$,J,Q,X,Z,ee,te,se,ne,oe,ae,ie,le,re,ce,ue,de,fe,Ae,Ee,he,_e,be,Fe,Se,ge,pe,me,ve,Te,Ue,Ce,ke,xe,Ne,we,ye,Ie,Re,De,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(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"},at=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}},it=e=>/\bF([1-9]|1[0-2])\b/i.test(e.code),lt=e=>at(e)||it(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))},a=s[0],i=ut(a.current);return i?(i.addEventListener("mousedown",o,!0),()=>{i.removeEventListener("mousedown",o,!0)}):void 0},[e,n,t])},ft="_161pz8j";const At="_1pxzmar",Et="_106ht1k",ht="_1qroa49",_t="_1rg7j0g",bt="_1f6lrnu",Ft=()=>{};const St="_1nciirw",gt="pvpdlw",pt="_2fewcp",mt="er93pw";e.DefaultList=function({accessibleSummary:e,currentItemVariant:n,currentKey:o,data:a,itemText:i,onCurrentKeyChange:l,onItemAction:r,onLoadRange:f=st,onSelectionChange:A,searchText:E,selectedKeys:h,selectionMode:_}){const b=s.useCallback(e=>{const s=tt({data:e.data,key:e.metadata.key,metadata:e.metadata},i);return t.jsxs(c.Flex,{children:[e.selector&&e.selector(),t.jsx("div",Object.assign({class:"do48mk"},{children:t.jsx(u.HighlightText,Object.assign({matchText:E},{children:s}))}))]})},[i,E]),F=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!=a?a:null,loadingIndicator:nt,onCurrentKeyChange:l,onItemAction:r,onLoadRange:f,onSelectionChange:A,role:"listbox",selectedKeys:F,selectionMode:_},{children:e=>b(e)}))},e.Dropdown=function({anchorRef:e,children:n,dropdownRef:o,id:a,isOpen:i,onAutoDismiss:l}){var r;const c=s.useCallback(e=>{null==l||l(e)},[l]),u=s.useCallback(e=>{if(!e.defaultPrevented&&!lt(e))switch(e.code){case ot.ESC:case ot.TAB:c(e)}},[c]);dt({isDisabled:!i,ref:[e,o],handler:c});const d={minWidth:`${null===(r=e.current)||void 0===r?void 0:r.offsetWidth}px`};return i?t.jsx(E.Layer,Object.assign({logicalParentRef:e},{children:t.jsx(_.Floating,Object.assign({anchorRef:e,ref:o,placement:"bottom-start",offsetValue:{mainAxis:4,crossAxis:0}},{children:t.jsx("div",Object.assign({class:ft,id:a,style:d,onKeyDown:u,onMouseDown:ct},{children:n}))}))})):null},e.DropdownArrow=function({isDisabled:e=!1,onClick:n,size:o="md"}){const a=s.useCallback(e=>{e.preventDefault()},[]),{pressProps:i}=b.usePress(null!=n?n:Ft,{isDisabled:e}),l=g.classNames([At,"sm"===o?ht:Et,e?bt:_t]);return t.jsx("span",Object.assign({"aria-hidden":"true",class:l,tabIndex:-1,onMouseDown:a},i,{children:t.jsx(p.SvgIcoCaretDown,{})}))},e.DropdownList=function({children:e,hasBottomGap:s=!0,isLoading:n=!1}){const o=g.classNames([St,gt,s&&pt,n&&mt]);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:"h8vcw0",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:"_1ykebbe",onMouseDown:ct},{children:e.select_noMatchesFound()}))},e.KEYS=ot,e.isBeforeDataFetch=function(e){return"atLeast"===e.sizePrecision&&0===e.totalSize},e.isControlKey=at,e.isControlOrFunctionKey=lt,e.isFunctionKey=it,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 a=s.useRef(null),i=s.useRef(null),[l,r]=s.useState(!1),[c,u]=s.useState({rowKey:void 0}),[d,f]=s.useState(),[A,E]=s.useState(!1),[h,_]=s.useState(),[b,F]=s.useState(),S=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]),g=s.useCallback(()=>{var e;r(!l),null===(e=t.current)||void 0===e||e.focus()},[l]),p=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=i.current)||void 0===n?void 0:n.contains(document.activeElement))&&(null===(o=t.current)||void 0===o||o.focus())}},[l]),m=s.useCallback(t=>{var s,n,o,a;if(l){const t=null===(s=i.current)||void 0===s?void 0:s.querySelector('[tabindex="0"]');null==t||t.focus(),void 0!==e&&void 0===c.rowKey&&u({rowKey:null===(a=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===a?void 0:a.key})}else r(!0);t.preventDefault()},[c,e,l]),v=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]),T=s.useCallback(e=>{if(!lt(e))switch(e.code){case ot.UP:case ot.DOWN:m(e)}},[m]),U=s.useCallback(e=>{var t;l||r(!0),E(!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]),C=s.useCallback(e=>{u({rowKey:e.value})},[]),k=s.useCallback(()=>{E(!1),_(""),F("")},[]);return s.useEffect(()=>{l||n||!A||k()},[l,n,A]),s.useEffect(()=>{l&&!A&&(null==o||o({searchText:void 0}))},[l,A,o]),{currentRow:c,dropdownRef:i,handleDropdownArrowClick:g,handleDropdownAutoDismiss:p,handleInput:U,handleMainFieldKeyDown:v,handleMainFieldKeyUp:T,handleUpDownArrowKeys:m,isDropdownOpen:l,isFocused:n||l,isUserFiltering:A,mainFieldRef:a,onCurrentKeyChange:C,onMouseDown:S,searchText:b,selectedKeys:d,setCurrentRow:u,setDropdownOpen:r,setSelectedKeys:f,stopFiltering:k,userInput:h}},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-6a69bc2a","./HighlightText-ebb31a1f","./List-5d60b09d","./Skeleton-64ad9097","./UNSAFE_Floating","./UNSAFE_Layer","./utils/UNSAFE_arrayUtils","./Floating-fe475c26","./hooks/UNSAFE_usePress","./index-f095628b","./utils/UNSAFE_classNames","./classNames-77e465af","./index-c2b403d2","./hooks/UNSAFE_useFormFieldContext","./UNSAFE_UserAssistance","./hooks/UNSAFE_useTranslationBundle","./utils/PRIVATE_clientHints","./clientHints-6cd92723","./utils/UNSAFE_mergeProps","./utils/UNSAFE_keys","./LoadMoreCollection-bd98d014","./PRIVATE_Collection","./Collection-b7c3d993","preact","./hooks/UNSAFE_useViewportIntersect","./PRIVATE_VirtualizedCollection","./VirtualizedCollection-e9cc859f","./hooks/UNSAFE_useTabbableMode","./UNSAFE_FocusTrap","./FocusTrap-0a63cd07","preact/compat","./utils/PRIVATE_tabbableUtils","./_curry1-4048f3ff","./_curry2-386569fb","./_curry3-1f16eff2","./hooks/UNSAFE_useId","./hooks/PRIVATE_useSelection","./hooks/PRIVATE_useCurrentKey","./hooks/PRIVATE_useCollectionFocusRing","./hooks/PRIVATE_useTabbableModeSet","./hooks/PRIVATE_useItemAction","./utils/PRIVATE_collectionUtils","./tslib.es6-f169f6f6","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_size","./utils/UNSAFE_mergeInterpolations","./_has-4e29ea27","./utils/UNSAFE_interpolations/borders","./utils/UNSAFE_interpolations/boxalignment","./keys-dde22c13","./utils/UNSAFE_interpolations/flexbox","./flexbox-d4e8bc5d","./utils/UNSAFE_interpolations/flexitem","./flexitem-a81fbe8b","./UNSAFE_Selector","./UNSAFE_Icon","./Icon-bf3f7959","./hooks/UNSAFE_useTooltip","./hooks/UNSAFE_useHover","./hooks/UNSAFE_useToggle","./hooks/UNSAFE_useFocus","./hooks/UNSAFE_useTouch","./hooks/UNSAFE_useAnimation","./useAnimation-5d52bb49","./index-8637c972","./hooks/UNSAFE_useUser","./UNSAFE_Environment","./utils/PRIVATE_floatingUtils","./utils/PRIVATE_refUtils","./hooks/UNSAFE_useOutsideClick","./hooks/UNSAFE_useTheme","./InlineHelpSource-a16712df","./UNSAFE_ComponentMessage","./ComponentMessage-2985b387","./PRIVATE_Message","./utils/PRIVATE_timer","./MessageCloseButton-6fd750b0","./UNSAFE_Button","./Button-95c272b3","./UNSAFE_BaseButton","./BaseButton-cc1e314c","./hooks/UNSAFE_useActive","./MessageDetail-49daadc3","./MessageFormattingUtils-eb594b6a","./utils/UNSAFE_getLocale","./utils/UNSAFE_stringUtils","./stringUtils-e17f4469","./Message.types-ba802f0d","./MessageStartIcon-36c31428","./MessageSummary-31da06a2","./MessageTimestamp-a8b2f726","./MessageUtils-7a134473","./utils/UNSAFE_soundUtils","./MessagesManager-fabd2ebf","./PRIVATE_TransitionGroup","./hooks/UNSAFE_useMessagesContext","./UNSAFE_HiddenAccessible","./HiddenAccessible-51ce05e2","./ComponentMessageContainer-a274e23d","./hooks/UNSAFE_useFormContext"],function(e,t,s,n,o,i,a,l,r,c,u,d,f,A,h,E,b,S,_,g,F,p,m,v,T,U,C,x,N,k,w,y,D,I,R,P,j,L,M,O,K,H,V,B,G,W,z,q,Y,$,J,Q,X,Z,ee,te,se,ne,oe,ie,ae,le,re,ce,ue,de,fe,Ae,he,Ee,be,Se,_e,ge,Fe,pe,me,ve,Te,Ue,Ce,xe,Ne,ke,we,ye,De,Ie,Re,Pe,je,Le,Me,Oe,Ke,He,Ve,Be,Ge,We,ze,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=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])},ft="ttxexn",At="bottom-start";const ht="_1rq7sx",Et="d4ufa4",bt="_1lf26uw",St="_1ytqfr2",_t="s14ju2",gt=()=>{};const Ft="clcdpq",pt="_2ga9ee",mt="_1waxsh3",vt="wnfh76";e.DefaultList=function({accessibleSummary:e,currentItemVariant:n,currentKey:o,data:i,itemText:a,onCurrentKeyChange:l,onItemAction:r,onLoadRange:f=st,onSelectionChange:A,searchText:h,selectedKeys:E,selectionMode:b}){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:"qq4hhf"},{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:f,onSelectionChange:A,role:"listbox",selectedKeys:_,selectionMode:b},{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]),E=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(h.Layer,Object.assign({logicalParentRef:e},{children:t.jsx(b.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: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:gt,{isDisabled:e}),l=F.classNames([ht,"sm"===o?bt: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:"_5ilpao",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:"ssweag",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,h]=s.useState(),[E,b]=s.useState(!1),[S,_]=s.useState(),[g,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&&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]),N=s.useCallback(e=>{var t;l||r(!0),b(!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]),k=s.useCallback(e=>{f({rowKey:e.value})},[]),w=s.useCallback(()=>{b(!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:N,handleMainFieldKeyDown:C,handleMainFieldKeyUp:x,handleUpDownArrowKeys:U,isDropdownAbove:c,isDropdownOpen:l,isFocused:n||l,isUserFiltering:E,mainFieldRef:i,onCurrentKeyChange:k,onMouseDown:p,searchText:g,selectedKeys:A,setCurrentRow:f,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 } from 'preact';\nimport { MutableRef, useCallback } from 'preact/hooks';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Floating } 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\n display: 'flex',\n flexDirection: 'column',\n\n maxHeight: '400px'\n }}`\n};\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};\n\nexport function Dropdown({ anchorRef, children, dropdownRef, id, isOpen, onAutoDismiss }: Props) {\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 ref={dropdownRef}\n placement=\"bottom-start\"\n offsetValue={offsetValue}>\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 { 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 [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 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 return {\n currentRow,\n dropdownRef,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss,\n handleInput,\n handleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\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","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","handleAutoDismiss","handleKeyDown","inlineStyle","Layer","logicalParentRef","Floating","placement","offsetValue","style","onKeyDown","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","currentRow","setCurrentRow","rowKey","undefined","setSelectedKeys","isUserFiltering","setUserFiltering","userInput","setUserInput","setSearchText","defaultPrevented","setTimeout","focus","handleDropdownArrowClick","handleDropdownAutoDismiss","type","_b","activeElement","_c","handleUpDownArrowKeys","firstFocusableElem","querySelector","_d","handleMainFieldKeyDown","stopPropagation","handleMainFieldKeyUp","handleInput","detail","str","trim","stopFiltering"],"mappings":"0mGAYgB,SAAAA,GAAqBC,EAAkBC,SAGrD,GAAwB,iBAAbA,EAUX,OAAQA,EAAwCD,GAT9C,WAAIE,EAACF,EAAKG,2BAAcC,eAAeH,GAAW,CAChD,MAAMI,EAAUL,EAAKG,KAAKF,GAC1B,OAAOK,OAAOD,GAEhBE,EAAAA,OAAOC,MAAM,iEAAmEP,GCMpF,MAyBAQ,GAAA,OAgEA,MAAAC,GAAAC,EAAAC,IAAAC,oBAAAC,OAAAC,OAAA,CAAAC,aAAA,GAAA,CAAAC,SAAA,6GCnHaC,GAAO,CAClBC,IAAK,MACLC,MAAO,QACPC,IAAK,SACLC,MAAO,QACPC,KAAM,YACNC,GAAI,UACJC,MAAO,aACPC,KAAM,YACNC,WAAY,YACZC,YAAa,aACbC,UAAW,cACXC,WAAY,eACZC,SAAU,UACVC,UAAW,WACXC,QAAS,SACTC,UAAW,WACXC,KAAM,OACNC,IAAK,MACLC,UAAW,YACXC,OAAQ,UAGGC,GAAgBC,IAC3B,OAAQA,EAAMC,MACZ,KAAKvB,GAAKS,WACV,KAAKT,GAAKU,YACV,KAAKV,GAAKW,UACV,KAAKX,GAAKY,WACV,KAAKZ,GAAKa,SACV,KAAKb,GAAKc,UACR,OAAO,EACT,QACE,OAAOQ,EAAME,SAAWF,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mBQ,IACrBX,MAAAA,GAAAA,EAAW,CAAE5D,gBAAYqE,MAE1B,CAACN,EAAgBQ,EAAiBX,IAE9B,CACLM,WAAAA,EACA1C,YAAAA,EACAuD,yBAAAA,EACAC,0BAAAA,EACAY,YAAAA,EACAH,uBAAAA,EACAE,qBAAAA,EACAN,sBAAAA,EACAtB,eAAAA,EAGAb,UAAWA,GAAaa,EACxBQ,gBAAAA,EACAV,aAAAA,EACAjE,mBAAAA,EACAb,YAAAA,EACAiB,WAAAA,EACAC,aAAAA,EACAkE,cAAAA,EACAH,gBAAAA,EACAM,gBAAAA,EACA0B,cAAAA,EACAvB,UAAAA"}
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":"0mGAYgB,SAAAA,GAAqBC,EAAkBC,SAGrD,GAAwB,iBAAbA,EAUX,OAAQA,EAAwCD,GAT9C,WAAIE,EAACF,EAAKG,2BAAcC,eAAeH,GAAW,CAChD,MAAMI,EAAUL,EAAKG,KAAKF,GAC1B,OAAOK,OAAOD,GAEhBE,EAAAA,OAAOC,MAAM,iEAAmEP,GCMpF,MAyBAQ,GAAA,OAgEA,MAAAC,GAAAC,EAAAC,IAAAC,oBAAAC,OAAAC,OAAA,CAAAC,aAAA,GAAA,CAAAC,SAAA,6GCnHaC,GAAO,CAClBC,IAAK,MACLC,MAAO,QACPC,IAAK,SACLC,MAAO,QACPC,KAAM,YACNC,GAAI,UACJC,MAAO,aACPC,KAAM,YACNC,WAAY,YACZC,YAAa,aACbC,UAAW,cACXC,WAAY,eACZC,SAAU,UACVC,UAAW,WACXC,QAAS,SACTC,UAAW,WACXC,KAAM,OACNC,IAAK,MACLC,UAAW,YACXC,OAAQ,UAGGC,GAAgBC,IAC3B,OAAQA,EAAMC,MACZ,KAAKvB,GAAKS,WACV,KAAKT,GAAKU,YACV,KAAKV,GAAKW,UACV,KAAKX,GAAKY,WACV,KAAKZ,GAAKa,SACV,KAAKb,GAAKc,UACR,OAAO,EACT,QACE,OAAOQ,EAAME,SAAWF,EAAMG,UAIvBC,GAAi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,EAAgBU,EAAiBb,IAGrCrF,EAAAA,UAAU,KACHwF,GACHI,GAAiB,IAElB,CAACJ,IAEG,CACLK,WAAAA,EACA5C,YAAAA,EACAyD,yBAAAA,EACAC,0BAAAA,EACAK,uBAAAA,EACAS,YAAAA,EACAH,uBAAAA,EACAE,qBAAAA,EACAN,sBAAAA,EACAvB,gBAAAA,EACAH,eAAAA,EAGAb,UAAWA,GAAaa,EACxBU,gBAAAA,EACAZ,aAAAA,EACAjE,mBAAAA,EACAd,YAAAA,EACAkB,WAAAA,EACAC,aAAAA,EACAoE,cAAAA,EACAL,gBAAAA,EACAQ,gBAAAA,EACA4B,cAAAA,EACAzB,UAAAA"}
@@ -0,0 +1,2 @@
1
+ define(["preact/jsx-runtime","preact/hooks","@testing-library/preact","chai","../../VirtualizedCollection-e9cc859f","../../PRIVATE_Collection","../../Collection-b7c3d993","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
+ //# sourceMappingURL=VirtualizedCollection.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualizedCollection.spec.js","sources":["../../../../src/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.tsx"],"sourcesContent":["import { useRef, useState } from 'preact/hooks';\nimport { render } from '@testing-library/preact';\nimport { expect } from 'chai';\nimport { DataState, ItemContext, Range, Metadata } from '../../UNSAFE_Collection';\nimport { VirtualizedCollection } from '../VirtualizedCollection';\n\ntype Employee = {\n id: string;\n name: string;\n};\n\ntype Props = {\n data: { data: Employee; metadata: Metadata<string> }[];\n};\nfunction TestComponent({ data }: Props) {\n const rootRef = useRef(null);\n const [dataState, setDataState] = useState<DataState<string, Employee>>({\n offset: 0,\n data: data.slice(0, 25),\n totalSize: data.length,\n sizePrecision: 'exact'\n });\n\n const loadRange = (range: Range) => {\n const startIndex = range.offset;\n const endIndex = startIndex + range.count;\n const newDataState = {\n ...dataState,\n offset: startIndex,\n data: data.slice(startIndex, endIndex)\n };\n setDataState(newDataState);\n };\n\n const getConfig = () => {\n return {\n scroller: () => {\n return rootRef.current;\n }\n };\n };\n\n return (\n <div style=\"height: 200px;overflow: auto\" ref={rootRef}>\n <VirtualizedCollection\n data={dataState}\n itemSelector=\".item\"\n viewportConfig={getConfig()}\n onLoadRange={loadRange}>\n {(context: ItemContext<{ data: Employee; metadata: Metadata<string> }>) => (\n <div\n key={context.data.metadata.key}\n className=\"item\"\n style={{ height: '20px', padding: '0.75rem' }}>\n {context.data.data.name}\n </div>\n )}\n </VirtualizedCollection>\n </div>\n );\n}\n\nfunction populateData(count: number): Employee[] {\n const data: Employee[] = [];\n for (let i = 0; i < count; i++) {\n data.push({ id: 'i' + i, name: 'Employee ' + i });\n }\n return data;\n}\n\ndescribe('Test VirtualizedCollection component', () => {\n beforeEach(() => {\n if (!window.IntersectionObserver) {\n // IntersectionObserver isn't available in test environment\n const MockIntersectionObserver = jest.fn();\n MockIntersectionObserver.mockReturnValue({\n observe: () => null,\n unobserve: () => null,\n disconnect: () => null\n });\n\n Object.defineProperty(global, 'IntersectionObserver', {\n writable: true,\n configurable: true,\n value: MockIntersectionObserver\n });\n }\n });\n\n it('initial render', async function () {\n const data = populateData(100);\n const dataMetadata: { data: Employee; metadata: Metadata<string> }[] = data.map((data) => {\n return { data: data, metadata: { key: data.id } };\n });\n const content = render(<TestComponent data={dataMetadata}></TestComponent>);\n const emps = await content.queryAllByText('Employee', { exact: false });\n expect(emps.length).eq(25);\n });\n});\n"],"names":["TestComponent","data","rootRef","useRef","dataState","setDataState","useState","offset","slice","totalSize","length","sizePrecision","_jsx","jsx","Object","assign","style","ref","VirtualizedCollection","itemSelector","viewportConfig","scroller","current","onLoadRange","range","startIndex","endIndex","count","newDataState","children","context","className","height","padding","name","metadata","key","describe","beforeEach","window","IntersectionObserver","MockIntersectionObserver","jest","fn","mockReturnValue","observe","unobserve","disconnect","defineProperty","global","writable","configurable","value","it","async","dataMetadata","i","push","id","populateData","map","content","render","emps","queryAllByText","exact","expect","eq"],"mappings":"0SAcA,SAASA,GAAcC,KAAEA,IACvB,MAAMC,EAAUC,SAAO,OAChBC,EAAWC,GAAgBC,WAAsC,CACtEC,OAAQ,EACRN,KAAMA,EAAKO,MAAM,EAAG,IACpBC,UAAWR,EAAKS,OAChBC,cAAe,UAsBjB,OACEC,EAAAC,IAAA,MAAAC,OAAAC,OAAA,CAAKC,MAAM,+BAA+BC,IAAKf,aAC7CU,EAACC,IAAAK,EAAqBA,sBACpBJ,OAAAC,OAAA,CAAAd,KAAMG,EACNe,aAAa,QACbC,eAZG,CACLC,SAAU,IACDnB,EAAQoB,SAWfC,YAzBaC,IACjB,MAAMC,EAAaD,EAAMjB,OACnBmB,EAAWD,EAAaD,EAAMG,MAC9BC,EACDd,OAAAC,OAAAD,OAAAC,OAAA,GAAAX,IACHG,OAAQkB,EACRxB,KAAMA,EAAKO,MAAMiB,EAAYC,KAE/BrB,EAAauB,KAkBR,CAAAC,SAACC,GACAlB,EAEEC,IAAA,MAAAC,OAAAC,OAAA,CAAAgB,UAAU,OACVf,MAAO,CAAEgB,OAAQ,OAAQC,QAAS,sBACjCH,EAAQ7B,KAAKA,KAAKiC,OAHdJ,EAAQ7B,KAAKkC,SAASC,WAmBvCC,SAAS,uCAAwC,KAC/CC,WAAW,KACT,IAAKC,OAAOC,qBAAsB,CAEhC,MAAMC,EAA2BC,KAAKC,KACtCF,EAAyBG,gBAAgB,CACvCC,QAAS,IAAM,KACfC,UAAW,IAAM,KACjBC,WAAY,IAAM,OAGpBjC,OAAOkC,eAAeC,OAAQ,uBAAwB,CACpDC,UAAU,EACVC,cAAc,EACdC,MAAOX,OAKbY,GAAG,iBAAkBC,iBACnB,MACMC,EA7BV,SAAsB5B,GACpB,MAAM1B,EAAmB,GACzB,IAAK,IAAIuD,EAAI,EAAGA,EAAI7B,EAAO6B,IACzBvD,EAAKwD,KAAK,CAAEC,GAAI,IAAMF,EAAGtB,KAAM,YAAcsB,IAE/C,OAAOvD,EAuBQ0D,CAAa,KACkDC,IAAK3D,IACxE,CAAEA,KAAMA,EAAMkC,SAAU,CAAEC,IAAKnC,EAAKyD,OAEvCG,EAAUC,EAAMA,OAAClD,MAACZ,EAAc,CAAAC,KAAMsD,KACtCQ,QAAaF,EAAQG,eAAe,WAAY,CAAEC,OAAO,IAC/DC,EAAAA,OAAOH,EAAKrD,QAAQyD,GAAG"}
@@ -1,2 +1,2 @@
1
- define(["exports","./VirtualizedCollection-81572543","preact/jsx-runtime","preact/hooks","./PRIVATE_Collection","./Collection-6621d74c","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-e9cc859f","preact/jsx-runtime","preact/hooks","./PRIVATE_Collection","./Collection-b7c3d993","preact","./utils/UNSAFE_arrayUtils","./hooks/UNSAFE_useViewportIntersect"],function(e,t,i,o,r,l,c,a,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-f169f6f6","preact/jsx-runtime","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useTabbableMode",'module',"./utils/UNSAFE_classNames","./utils/UNSAFE_interpolations/text","./utils/UNSAFE_mergeInterpolations","./hooks/UNSAFE_useFormFieldContext","./FormControlUtils-9bf59f59","./classNames-77e465af"],function(e,a,s,t,r,i,l,o,n,b,d,u){"use strict";const c="ojjsbz",y="igp663",x="_1hr7oqu",F="_1jbkmp0",f="_6opyfz",p="_1rku0lt",m="ds2j1t",j="_10l70e0";e.ReadonlyTextFieldInput=function(e){var{ariaDescribedBy:i,ariaLabel:l,ariaLabelledBy:_,autoFocus:L,as:g="div",elementRef:h,hasInsideLabel:v=!1,inlineUserAssistance:A,innerReadonlyField:N,rows:U,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:k,isReadonly:C}=t.useFormContext(),{isLoading:B}=b.useFormFieldContext(),O=B?d.getLoadingAriaLabel():l,T=[...Object.values(o.textInterpolations)],w=n.mergeInterpolations(T),{class:M}=w(S),z=u.classNames(["textarea"!==g&&"oj-c-hide-scrollbar",c,"textarea"===g&&y,k&&!C&&x,"textarea"===R&&k&&!C&&F,k&&!C&&(v?f:m),"textarea"===R&&k&&!C&&v&&p,"textarea"!==R&&k&&!C&&j,M]),{isTabbable:D,tabbableModeProps:q}=r.useTabbableMode();return"input"===g?s.jsx("input",Object.assign({"aria-describedby":i,"aria-label":O,"aria-labelledby":_,autofocus:L,class:z,readonly:!0,ref:h,type:E,value:I},!D&&q)):"textarea"===g?s.jsx("textarea",Object.assign({"aria-describedby":i,"aria-label":O,"aria-labelledby":_,autofocus:L,class:z,readonly:!0,ref:h,rows:U},!D&&q,{children:I})):s.jsx("div",Object.assign({"aria-describedby":i,"aria-label":O,"aria-labelledby":_,"aria-readonly":!0,autofocus:L,class:z,ref:h,role:"textbox"},q,{children:I}))}});
2
+ //# sourceMappingURL=ReadonlyTextFieldInput-589b89be.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadonlyTextFieldInput-589b89be.js","sources":["../../src/UNSAFE_TextField/ReadonlyTextFieldInput.tsx"],"sourcesContent":["import { ComponentChildren, Ref } from 'preact';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { textInterpolations } from '../utils/UNSAFE_interpolations/text';\nimport type { TextProps } from '../utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { getLoadingAriaLabel } from './FormControlUtils';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype AutoFocusProp = HTMLAttributesSignalExcluded<HTMLInputElement>['autofocus'];\n\ntype ReadonlyAsInputProps = {\n as: 'input';\n type: HTMLAttributesSignalExcluded<HTMLInputElement>['type'];\n elementRef?: Ref<HTMLInputElement>;\n rows?: never;\n};\n\ntype ReadonlyAsTextAreaProps = {\n as: 'textarea';\n elementRef?: Ref<HTMLTextAreaElement | HTMLDivElement>;\n type?: never;\n rows?: number;\n};\n\ntype ReadonlyAsDivProps = {\n as?: 'div';\n elementRef?: Ref<HTMLTextAreaElement | HTMLDivElement>;\n type?: never;\n rows?: never;\n};\n\ntype Props = TextProps &\n (ReadonlyAsDivProps | ReadonlyAsInputProps | ReadonlyAsTextAreaProps) & {\n ariaDescribedBy?: string;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n autoFocus?: AutoFocusProp;\n hasInsideLabel?: boolean;\n inlineUserAssistance?: ComponentChildren;\n innerReadonlyField?: ComponentChildren;\n value?: string;\n variant?: 'textarea';\n };\n\n// In readonly textarea, we need some margin between the border container element\n// and the textarea, so the the textarea's focus outline doesn't get truncated.\n// The 0.25rem is an aesthetically pleasing amount of margin to make the readonly\n// focus ring visible.\nconst borderToTextAreaContentMargin = '0.25rem';\n\nconst readOnlyTextFieldStyles = {\n base: cssProps`${{\n minHeight:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height) * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size))',\n // TODO: Use Text component instead of CSS\n wordBreak: 'break-word',\n whiteSpace: 'pre-wrap',\n // TODO: Cleanup the border and background CSS\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n borderWidth: '0',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)',\n boxSizing: 'border-box',\n // TODO: Use the Flex component instead of CSS\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n fontFamily: 'inherit',\n fontSize: '100%',\n fontWeight: 'inherit',\n lineHeight: 'inherit',\n outlineWidth: '0',\n\n '&:focus': {\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 textareaBase: cssProps`${{\n resize: 'none',\n paddingBlockStart: '0',\n paddingInlineStart: '0'\n }}`,\n inEnabledFormBase: cssProps`${{\n whiteSpace: 'nowrap',\n overflowX: 'scroll',\n overflowY: 'hidden',\n scrollbarWidth: 'none'\n }}`,\n\n textareaInEnabledFormBase: cssProps`${{\n marginTop:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n marginBottom:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n marginLeft: borderToTextAreaContentMargin,\n marginRight: borderToTextAreaContentMargin,\n paddingLeft: `calc(var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding) - ${borderToTextAreaContentMargin})`,\n paddingRight: '0',\n overflowX: 'auto',\n overflowY: 'auto',\n whiteSpace: 'pre-wrap'\n }}`,\n\n inEnabledFormLabelInside: cssProps`${{\n // TODO: Look into why we need this hacky CSS\n marginTop:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-padding-top) + 0.1875rem)',\n paddingTop: '0',\n minHeight:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height) * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size))'\n }}`,\n\n textareaInEnabledFormLabelInside: cssProps`${{\n paddingTop: 0,\n paddingBottom: 0,\n // We are using a transparent border here instead of padding, due to how textarea scrolls the padding off the screen\n // and the text content will clash with the inside label.\n borderColor: 'transparent',\n borderStyle: 'solid',\n marginTop:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-font-size) * var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-line-height) + var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-position-top))',\n marginBottom: borderToTextAreaContentMargin\n }}`,\n\n inEnabledFormNoLabelInside: cssProps`${{\n // TODO: Remove if this is not needed.\n justifyContent: 'center'\n }}`,\n\n // don't apply this for textarea\n inEnabledFormNoStartContent: cssProps`${{\n marginLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n marginRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n paddingLeft: '0',\n paddingRight: '0'\n }}`\n};\n\nexport function ReadonlyTextFieldInput({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n autoFocus,\n as = 'div',\n elementRef,\n hasInsideLabel = false,\n inlineUserAssistance,\n innerReadonlyField,\n rows,\n type,\n value = '',\n variant,\n ...props\n}: Props) {\n const { isFormLayout, isReadonly: isReadonlyForm } = useFormContext();\n const { isLoading } = useFormFieldContext();\n const ariaLabelForReadonly = isLoading ? getLoadingAriaLabel() : ariaLabel;\n\n // get classes for text align\n const interpolations = [...Object.values(textInterpolations)];\n const styleInterpolations = mergeInterpolations<Props>(interpolations);\n const { class: styleInterpolationClasses } = styleInterpolations(props);\n\n const readonlyDivClasses = classNames([\n as !== 'textarea' && 'oj-c-hide-scrollbar', // TODO: Temp workaround for using --webkit-scrollbar to hide the scrollbar\n readOnlyTextFieldStyles.base,\n as === 'textarea' && readOnlyTextFieldStyles.textareaBase,\n isFormLayout && !isReadonlyForm && readOnlyTextFieldStyles.inEnabledFormBase,\n variant === 'textarea' &&\n isFormLayout &&\n !isReadonlyForm &&\n readOnlyTextFieldStyles.textareaInEnabledFormBase,\n isFormLayout &&\n !isReadonlyForm &&\n (hasInsideLabel\n ? readOnlyTextFieldStyles.inEnabledFormLabelInside\n : readOnlyTextFieldStyles.inEnabledFormNoLabelInside),\n variant === 'textarea' &&\n isFormLayout &&\n !isReadonlyForm &&\n hasInsideLabel &&\n readOnlyTextFieldStyles.textareaInEnabledFormLabelInside,\n variant !== 'textarea' && // not for textarea\n isFormLayout &&\n !isReadonlyForm &&\n readOnlyTextFieldStyles.inEnabledFormNoStartContent,\n styleInterpolationClasses\n ]);\n\n // JET-52914 - Implement Tabbable mode API contract in InputText\n // spread tabbableModeProps on component\n const { isTabbable, tabbableModeProps } = useTabbableMode();\n\n if (as === 'input') {\n return (\n <input\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n readonly={true}\n // @ts-ignore\n ref={elementRef}\n type={type}\n value={value}\n {...(!isTabbable && tabbableModeProps)}\n />\n );\n }\n if (as === 'textarea') {\n return (\n <textarea\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n readonly={true}\n // @ts-ignore\n ref={elementRef}\n rows={rows}\n {...(!isTabbable && tabbableModeProps)}>\n {value}\n </textarea>\n );\n }\n return (\n <div\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n aria-readonly={true}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n // @ts-ignore\n ref={elementRef}\n role=\"textbox\"\n {...tabbableModeProps}>\n {value}\n </div>\n );\n}\n"],"names":["readOnlyTextFieldStyles","_a","ariaDescribedBy","ariaLabel","ariaLabelledBy","autoFocus","as","elementRef","hasInsideLabel","inlineUserAssistance","innerReadonlyField","rows","type","value","variant","props","__rest","isLoading","useFormFieldContext","ariaLabelForReadonly","getLoadingAriaLabel","styleInterpolations","mergeInterpolations","interpolations","isFormLayout","isReadonlyForm","_jsx","Object","assign","autofocus","class","readonlyDivClasses","readonly","ref","isTabbable","tabbableModeProps","children","role"],"mappings":"0XAoDA,MAEAA,EAAA,SAAAA,EAAA,SAAAA,EAAA,WAAAA,EAAA,WAAAA,EAAA,UAAAA,EAAA,WAAAA,EAAA,SAAAA,sCA2FA,SAAAC,GAAuC,IAAAC,gBAAAA,EAAAC,UAAAA,EAAAC,eAAAA,EAAAC,UAAAA,EAAAC,GAAAA,EAAA,MAAAC,WAAAA,EAAAC,eAAAA,GAAA,EAAAC,qBAAAA,EAAAC,mBAAAA,EAAAC,KAAAA,EAAAC,KAAAA,EAAAC,MAAAA,EAAA,GAAAC,QAAAA,GAAAb,EAAAc,EAAAC,EAAAA,OAAAf,EAAA,CAAA,kBAAA,YAAA,iBAAA,YAAA,KAAA,aAAA,iBAAA,uBAAA,qBAAA,OAAA,OAAA,QAAA,mEAiBrCgB,UAAAA,GAAAC,EAAAA,sBACAC,EAAAF,EAAAG,EAAAA,sBAAAjB,6CAIAkB,EAAAC,sBAAAC,wEAKEvB,EACA,aAAAM,GAAAN,EACAwB,IAAAC,GAAAzB,EACA,aAAAc,OAEEW,GACAzB,MAEAyB,IACAjB,IAEER,GACJ,aAAAc,OAEEW,MAEAzB,sBAGAyB,GACAzB,+EASF0B,MAAA,QAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAAyB,UAAAxB,EAAAyB,MAAAC,EAAAC,UAAA,EASIC,IAAA1B,EAAAK,KAAAA,EAAAC,MAAAA,IAAAqB,GAAAC,mBAQJT,MAAA,WAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAAyB,UAAAxB,EAAAyB,MAAAC,EAAAC,UAAA,EASIC,IAAA1B,EAAAI,KAAAA,IAAAuB,GAAAC,EAAA,CAAAC,SAAAvB,KAONa,MAAA,MAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAA,iBAAA,EAAAyB,UAAAxB,EAAAyB,MAAAC,EASIE,IAAA1B,EAAA8B,KAAA,WAAAF,EAAA,CAAAC,SAAAvB"}
@@ -0,0 +1,2 @@
1
+ define(["exports","preact/jsx-runtime","preact/hooks","./index-f095628b","./MenuItem-4065d4c1","preact","./index-c2b403d2"],function(e,t,n,i,o,l,s){"use strict";const u=l.createContext({isMultiple:!1});e.SelectMenuGroupContext=u,e.SelectMenuItem=function({value:e,label:i,isDisabled:l,endIcon:c}){const{isMultiple:m,value:d,onCommit:a}=n.useContext(u),{isSelected:r,memoizedOnCommit:x}=n.useMemo(()=>m?{isSelected:!!(null==d?void 0:d.includes(e)),memoizedOnCommit:()=>{const t=r?(null==d?void 0:d.filter(t=>t!==e))||[]:[...d||[],e];null==a||a({value:t,previousValue:d})}}:{isSelected:d===e,memoizedOnCommit:()=>{null==a||a({value:e,previousValue:d})}},[d,e,a,m]);return t.jsx(o.BaseMenuItem,{role:m?"menuitemcheckbox":"menuitemradio",isChecked:r,isDisabled:l,startIcon:r?t.jsx(s.SvgIcoCheck,{}):t.jsx("span",{}),label:i,onAction:x,endIcon:c})}});
2
+ //# sourceMappingURL=SelectMenuItem-f2d3178a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectMenuItem-f2d3178a.js","sources":["../../src/UNSAFE_Menu/SelectMenuGroupContext.tsx","../../src/UNSAFE_Menu/SelectMenuItem.tsx","../../src/UNSAFE_Menu/useSelectMenuGroupContext.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { createContext } from 'preact';\n\nimport { MenuValueUpdateDetail } from './menuUtils';\n\ntype SelectSingleMenuGroupContextProps = {\n isMultiple: false;\n value?: string;\n onCommit?: (detail: MenuValueUpdateDetail<string>) => void;\n};\ntype SelectMultipleMenuGroupContextProps = {\n isMultiple: true;\n value?: string[];\n onCommit?: (detail: MenuValueUpdateDetail<string[]>) => void;\n};\n\ntype SelectMenuGroupContextProps =\n | SelectSingleMenuGroupContextProps\n | SelectMultipleMenuGroupContextProps;\n\nconst SelectMenuGroupContext = createContext<SelectMenuGroupContextProps>({\n isMultiple: false\n});\n\nexport { SelectMenuGroupContext, SelectMenuGroupContextProps };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChildren } from 'preact';\nimport { useMemo } from 'preact/hooks';\n\nimport { CheckIcon } from '../UNSAFE_ThemedIcons';\n\nimport { BaseMenuItem } from './MenuItem';\nimport { useSelectMenuGroupContext } from './useSelectMenuGroupContext';\n\ntype SelectMenuItemProps = {\n value: string;\n label: string;\n isDisabled?: boolean;\n endIcon?: ComponentChildren;\n};\n\nexport function SelectMenuItem({ value, label, isDisabled, endIcon }: SelectMenuItemProps) {\n const { isMultiple, value: selectedValue, onCommit } = useSelectMenuGroupContext();\n\n const { isSelected, memoizedOnCommit } = useMemo(() => {\n if (!isMultiple) {\n return {\n isSelected: selectedValue === value,\n memoizedOnCommit: () => {\n onCommit?.({ value, previousValue: selectedValue });\n }\n };\n }\n return {\n isSelected: !!selectedValue?.includes(value),\n memoizedOnCommit: () => {\n const proposedValue = isSelected\n ? selectedValue?.filter((val) => val !== value) || []\n : [...(selectedValue || []), value];\n onCommit?.({ value: proposedValue, previousValue: selectedValue });\n }\n };\n }, [selectedValue, value, onCommit, isMultiple]);\n\n return (\n <BaseMenuItem\n role={isMultiple ? 'menuitemcheckbox' : 'menuitemradio'}\n isChecked={isSelected}\n isDisabled={isDisabled}\n startIcon={isSelected ? <CheckIcon /> : <span></span>}\n label={label}\n onAction={memoizedOnCommit}\n endIcon={endIcon}\n />\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useContext } from 'preact/hooks';\nimport { SelectMenuGroupContext } from './SelectMenuGroupContext';\n\n/**\n * Utility hook for consuming the MenuContext\n *\n * @returns The value of MenuContext provider\n */\nfunction useSelectMenuGroupContext() {\n return useContext(SelectMenuGroupContext);\n}\n\nexport { useSelectMenuGroupContext };\n"],"names":["SelectMenuGroupContext","createContext","isMultiple","value","label","isDisabled","endIcon","selectedValue","onCommit","useContext","isSelected","memoizedOnCommit","useMemo","includes","proposedValue","filter","val","previousValue","_jsx","BaseMenuItem","role","isChecked","startIcon","CheckIcon","onAction"],"mappings":"iKA2BM,MAAAA,EAAyBC,EAAAA,cAA2C,CACxEC,YAAY,gDCLR,UAAyBC,MAAEA,EAAKC,MAAEA,EAAKC,WAAEA,EAAUC,QAAEA,IACzD,MAAMJ,WAAEA,EAAYC,MAAOI,EAAaC,SAAEA,GCPnCC,EAAAA,WAAWT,IDSZU,WAAEA,EAAUC,iBAAEA,GAAqBC,EAAOA,QAAC,IAC1CV,EAQE,CACLQ,cAAcH,MAAAA,OAAA,EAAAA,EAAeM,SAASV,IACtCQ,iBAAkB,KAChB,MAAMG,EAAgBJ,GAClBH,MAAAA,OAAA,EAAAA,EAAeQ,OAAQC,GAAQA,IAAQb,KAAU,GACjD,IAAKI,GAAiB,GAAKJ,GAC/BK,MAAAA,GAAAA,EAAW,CAAEL,MAAOW,EAAeG,cAAeV,MAb7C,CACLG,WAAYH,IAAkBJ,EAC9BQ,iBAAkB,KAChBH,MAAAA,GAAAA,EAAW,CAAEL,MAAAA,EAAOc,cAAeV,MAaxC,CAACA,EAAeJ,EAAOK,EAAUN,IAEpC,OACEgB,MAACC,EAAYA,aAAA,CACXC,KAAMlB,EAAa,mBAAqB,gBACxCmB,UAAWX,EACXL,WAAYA,EACZiB,UAAWZ,EAAaQ,MAACK,EAAAA,gBAAeL,MAAA,OAAA,IACxCd,MAAOA,EACPoB,SAAUb,EACVL,QAASA"}
@@ -0,0 +1,2 @@
1
+ define(["exports","preact/jsx-runtime","preact","preact/compat","./hooks/UNSAFE_useFocusableTextField","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useLoadingIndicatorTimer","./hooks/UNSAFE_useTextField","./UNSAFE_Flex","./UNSAFE_Label","./UNSAFE_LiveRegion","./UNSAFE_TextField","./UNSAFE_UserAssistance","./PRIVATE_SelectCommon","./tslib.es6-f169f6f6",'module',"./UNSAFE_Chip","./hooks/UNSAFE_useTranslationBundle","./Chip-51a40115","preact/hooks","./utils/UNSAFE_mergeProps","./ReadonlyTextFieldInput-589b89be","./TextFieldInput-c2d1aefc","./Flex-6a69bc2a"],function(e,n,o,s,t,i,l,a,r,d,u,c,p,v,f,b,h,F,m,x,g,w,y,S,D){"use strict";function A(e){var{accessibleLabel:o,count:s=0,onKeyDown:t,onKeyUp:i,onMouseDown:l}=e,a=b.__rest(e,["accessibleLabel","count","onKeyDown","onKeyUp","onMouseDown"]);const r=m.useTranslationBundle("@oracle/oraclejet-preact"),d=r.selectMultiple_showSelectedValues(),u=o?`${o}. `:"",c=r.selectMultiple_countPlus({COUNT:"99"}),p=s>99?`${c}`:`${s}`,v=`${u}${r.selectMultiple_valuesSelected({VALUE_COUNT:`${s}`})} ${d}`;return n.jsx("div",Object.assign({class:"_8fextn",onKeyDown:t,onKeyUp:i,onMouseDown:l},{children:n.jsx(x.Chip,Object.assign({accessibleLabel:v},a,{children:p}))}))}function E(e,n){const o=m.useTranslationBundle("@oracle/oraclejet-preact").plural_separator(),s=g.useMemo(()=>{if(void 0===n)return"";const s=function(e,n){const o=n?[...null==n?void 0:n.values()]:[],s=n=>f.renderItemText(n,e),t=o.map(s);return new Set(t)}(e,n),t=function(e,n){return Array.from(e.values()).join(n)}(s,o);return t},[n,e]);return s}function R({data:e,inputRef:n,isDisabled:o,isFocused:s,isReadonly:t,onCommit:i,onFilter:l,onLoadRange:a,valueItems:r}){const[d,u]=g.useState(!1),c=null==r?void 0:r.length,p=void 0!==c&&c>0||d,v=function({isDropdownSelectedOnlyView:e,valueItems:n}){return{data:g.useMemo(()=>{var o;return e&&n&&0!==n.length?{offset:0,totalSize:null!==(o=null==n?void 0:n.length)&&void 0!==o?o:0,sizePrecision:"exact",data:n.map(e=>{var n;return{data:e.data,metadata:null!==(n=e.metadata)&&void 0!==n?n:{key:e.key}}})}:void 0},[e]),onLoadRange:void 0}}({isDropdownSelectedOnlyView:d,valueItems:r}),b=d?v.data:e,h=d?v.onLoadRange:a,{currentRow:F,dropdownRef:m,handleDropdownArrowClick:x,handleDropdownAutoDismiss:y,handleDropdownPosition:S,handleInput:D,handleMainFieldKeyDown:A,handleMainFieldKeyUp:E,handleUpDownArrowKeys:R,isDropdownAbove:j,isDropdownOpen:C,isFocused:T,isUserFiltering:K,mainFieldRef:L,onCurrentKeyChange:U,onMouseDown:O,searchText:k,selectedKeys:P,setCurrentRow:_,setDropdownOpen:I,setSelectedKeys:M,userInput:N}=f.useSelectCommon({data:b,inputRef:n,isFocused:s,onFilter:l}),B=g.useCallback(()=>{var e,n;null===(n=null===(e=m.current)||void 0===e?void 0:e.parentElement)||void 0===n||n.removeChild(m.current)},[]),V=g.useCallback(e=>{var o,s;if(C&&"keydown"===(null==e?void 0:e.type)){const t=e;if(t.code===f.KEYS.TAB)t.shiftKey||!p?null===(o=n.current)||void 0===o||o.focus():null===(s=$.current)||void 0===s||s.focus(),B()}},[p,C]),z=g.useCallback(e=>{if(!f.isControlOrFunctionKey(e)&&e.code===f.KEYS.TAB)C&&(e.shiftKey||!p&&!e.shiftKey)&&(B(),I(!1)),p&&!e.shiftKey&&e.stopPropagation()},[p,C]);g.useEffect(()=>{const e=null==r?void 0:r.reduce((e,n)=>(e.add(n.key),e),new Set);M(e)},[r]);const $=g.useRef(null);g.useEffect(()=>{$.current=p&&L.current?L.current.querySelector('[role="switch"]'):null},[p,o,t]);const Y=g.useCallback(e=>{switch(e.code){case f.KEYS.TAB:C&&!e.shiftKey&&(B(),I(!1)),e.shiftKey&&e.stopPropagation();break;case f.KEYS.UP:case f.KEYS.DOWN:e.preventDefault();break;case f.KEYS.ESC:C&&(I(!1),e.preventDefault(),e.stopPropagation());break;case f.KEYS.ENTER:e.stopPropagation()}},[C]),H=g.useCallback(e=>{switch(e.code){case f.KEYS.UP:case f.KEYS.DOWN:R(e)}},[R]),q=g.useCallback(e=>{var o;e.preventDefault(),null===(o=n.current)||void 0===o||o.focus()},[]),W=g.useCallback(e=>{var n;C||I(!0);const o=null!==(n=e.value)&&void 0!==n&&n;o!==d&&u(o)},[C,d]);g.useEffect(()=>{!C&&d&&u(!1)},[C,d]);const Z=g.useCallback(e=>{var n;const o=new Set(null===(n=e.value.keys)||void 0===n?void 0:n.values());M(o),null==i||i({value:o,previousValue:P})},[i,P]),G=g.useMemo(()=>w.mergeProps({onAutoDismiss:y,onPosition:S},{onAutoDismiss:V}),[y,S,V]),J=g.useMemo(()=>w.mergeProps({onInput:D,onKeyDown:A,onKeyUp:E},{onKeyDown:z}),[A,D,E,z]);return g.useEffect(()=>{C&&_({rowKey:void 0})},[C]),{collectionProps:{currentKey:F.rowKey,onCurrentKeyChange:U,onSelectionChange:Z,selectedKeys:P},data:b,dropdownArrowEventHandlers:{onClick:x},dropdownEventHandlers:G,dropdownRef:m,hasSelectedValuesCount:p,inputEventHandlers:J,inputRef:n,isDropdownAbove:j,isDropdownOpen:C,isDropdownSelectedOnlyView:d,isFocused:T,isUserFiltering:K,mainFieldRef:L,mouseProps:o||t?{}:{onMouseDown:O},onLoadRange:h,searchText:k,selectedValuesCountProps:{onKeyDown:Y,onKeyUp:H,onMouseDown:q,onToggle:W},userInput:N}}const j=s.forwardRef(({ariaDescribedBy:e,assistiveText:s,data:d,helpSourceLink:b,helpSourceText:h,isDisabled:F,isLoading:x,isReadonly:g,isRequired:w,isRequiredShown:j,itemText:C,label:T,labelEdge:K,labelStartWidth:L,messages:U,onCommit:O,onFilter:k,onLoadRange:P,placeholder:_,textAlign:I,userAssistanceDensity:M,valueItems:N,variant:B="default",virtualKeyboard:V},z)=>{const{isDisabled:$,isReadonly:Y,labelEdge:H,labelStartWidth:q,textAlign:W,userAssistanceDensity:Z}=i.useFormContext(),G=null!=F?F:$,J=null!=g?g:Y,Q=null!=K?K:H,X=null!=L?L:q,ee=null!=I?I:W,ne=null!=M?M:Z,{enabledElementRef:oe,focusProps:se,isFocused:te,readonlyElementRef:ie}=t.useFocusableTextField({isDisabled:G,isReadonly:J,ref:z}),{collectionProps:le,data:ae,dropdownArrowEventHandlers:re,dropdownEventHandlers:de,dropdownRef:ue,hasSelectedValuesCount:ce,inputEventHandlers:pe,isDropdownAbove:ve,isDropdownOpen:fe,isDropdownSelectedOnlyView:be,isFocused:he,isUserFiltering:Fe,mainFieldRef:me,mouseProps:xe,onLoadRange:ge,searchText:we,selectedValuesCountProps:ye,userInput:Se}=R({data:d,inputRef:oe,isDisabled:G,isFocused:te,isReadonly:J,onCommit:O,onFilter:k,onLoadRange:P,valueItems:N}),De=a.useLoadingIndicatorTimer(null!=x&&x),{baseId:Ae,formFieldContext:Ee,inputProps:Re,labelProps:je,textFieldProps:Ce,userAssistanceProps:Te}=r.useTextField({ariaDescribedBy:e,isDisabled:G,isFocused:he,isLoading:De,isReadonly:J,labelEdge:Q,messages:U,styleVariant:B,value:void 0!==N&&N.length>0||void 0}),Ke=`${Ae}-dropdown`,Le=E(C,N),Ue="none"!==Q?n.jsx(u.Label,Object.assign({},je,{children:T})):void 0,Oe={label:"none"!==Q?Ue:void 0,labelEdge:"none"!==Q?Q:void 0,labelStartWidth:"none"!==Q?X:void 0},ke="none"===Q?T:void 0,Pe=G||J?"efficient"!==ne?void 0:n.jsx(v.InlineUserAssistance,Object.assign({userAssistanceDensity:ne},Te)):n.jsx(v.InlineUserAssistance,Object.assign({assistiveText:s,fieldLabel:T,helpSourceLink:b,helpSourceText:h,messages:U,isRequiredShown:j,userAssistanceDensity:ne},Te)),_e=m.useTranslationBundle("@oracle/oraclejet-preact");if(J)return n.jsx(l.FormFieldContext.Provider,Object.assign({value:Ee},{children:n.jsx(p.ReadonlyTextField,Object.assign({role:"presentation",inlineUserAssistance:Pe,onBlur:se.onfocusout,onFocus:se.onfocusin},Oe,{children:n.jsx(y.ReadonlyTextFieldInput,{ariaDescribedBy:e,ariaLabel:ke,ariaLabelledBy:je.id,as:"div",elementRef:ie,hasInsideLabel:void 0!==T&&"inside"===Q,textAlign:ee,value:Le})}))}));const Ie=null!=ae&&!f.isBeforeDataFetch(ae),Me=void 0!==Ue&&"inside"===Q,Ne=fe&&Ie?0===(null==ae?void 0:ae.totalSize)?_e.select_noMatchesFound():1===(null==ae?void 0:ae.totalSize)?_e.select_oneMatchFound():"exact"===(null==ae?void 0:ae.sizePrecision)?_e.select_sizeMatchesFound({TOTAL_SIZE:`${null==ae?void 0:ae.totalSize}`}):_e.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${null==ae?void 0:ae.totalSize}`}):"",Be=n.jsxs(o.Fragment,{children:[n.jsx(S.TextFieldInput,Object.assign({ariaAutoComplete:"list",ariaControls:Ke,ariaExpanded:fe,ariaLabel:ke,autoComplete:"off",hasInsideLabel:Me,inputRef:oe,isRequired:w},pe,{placeholder:_,role:"combobox",spellcheck:!1,textAlign:ee,type:f.isMobile()?"auto"===V?"search":V:void 0,value:Fe?Se:Le},Re)),n.jsx(c.LiveRegion,{children:Ne})]}),Ve=n.jsx(f.DropdownArrow,Object.assign({isDisabled:G,size:Me?"md":"sm"},re)),ze=null==N?void 0:N.length,$e=De?void 0:ce?n.jsxs(D.Flex,Object.assign({align:"center",justify:"center",gap:[0,"1x"]},{children:[n.jsx(A,Object.assign({accessibleLabel:T,count:ze,isDisabled:G,isSelected:be},ye)),Ve]})):Ve,Ye=!fe||ve||G||J||!s&&!b||"efficient"!==ne&&"reflow"!==ne?void 0:n.jsx(f.DropdownUserAssistance,{assistiveText:s,fieldLabel:T,helpSourceLink:b,helpSourceText:h,userAssistanceDensity:ne}),He=Ie&&0===(null==ae?void 0:ae.totalSize),qe=He?n.jsx(f.EmptyResults,{}):n.jsx(f.DefaultList,Object.assign({},le,{accessibleSummary:null!=T?T:"",data:ae,itemText:C,onLoadRange:ge,searchText:be?void 0:Fe?we:void 0,selectionMode:"multiple"}));return n.jsxs(o.Fragment,{children:[n.jsx(l.FormFieldContext.Provider,Object.assign({value:Ee},{children:n.jsx(p.TextField,Object.assign({endContent:$e,inlineUserAssistance:Pe,mainContent:Be,mainFieldRef:me,onBlur:null==se?void 0:se.onfocusout,onFocus:null==se?void 0:se.onfocusin},Ce,Oe,xe))})),n.jsxs(f.Dropdown,Object.assign({dropdownRef:ue,id:Ke,isOpen:fe&&void 0!==ae&&(null===ae||ae.totalSize>0||f.isBeforeDataFetch(ae)||He),anchorRef:me},de,{children:[n.jsx(f.DropdownList,Object.assign({hasBottomGap:void 0===Ye,isLoading:null===ae},{children:qe})),Ye]}))]})});e.SelectMultiple=j});
2
+ //# sourceMappingURL=SelectMultiple-38f7bbc0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectMultiple-38f7bbc0.js","sources":["../../src/UNSAFE_SelectMultiple/SelectedValuesCount.tsx","../../src/UNSAFE_SelectMultiple/useDisplayValues.ts","../../src/UNSAFE_SelectMultiple/useSelectMultiple.ts","../../src/UNSAFE_SelectMultiple/useSelectedOnlyData.ts","../../src/UNSAFE_SelectMultiple/SelectMultiple.tsx"],"sourcesContent":["import { ComponentProps } from 'preact';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Chip } from '../UNSAFE_Chip';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\n\nconst rootStyles = cssProps`${{\n display: 'inline-flex'\n}}`;\n\ntype PickedPropsFromChip = Pick<\n ComponentProps<typeof Chip>,\n 'accessibleLabel' | 'isDisabled' | 'isSelected' | 'onToggle'\n>;\n\ntype Props = PickedPropsFromChip & {\n count?: number;\n onKeyDown?: (event: KeyboardEvent) => void;\n onKeyUp?: (event: KeyboardEvent) => void;\n onMouseDown?: (event: MouseEvent) => void;\n};\n\n// This component renders a badge showing the number of selected values\nexport function SelectedValuesCount({\n accessibleLabel,\n count = 0,\n onKeyDown,\n onKeyUp,\n onMouseDown,\n ...passThroughProps\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const instructions = translations.selectMultiple_showSelectedValues();\n const accLabel = accessibleLabel ? `${accessibleLabel}. ` : '';\n\n const ninetyNinePlus = translations.selectMultiple_countPlus({ COUNT: `99` });\n // The Chip shows the number of values selected or 99+ if the number is over 99.\n const chipCount = count > 99 ? `${ninetyNinePlus}` : `${count}`;\n // The screenreader will hear what the number of selected values is along with instructions\n // like Click to see the full list.\n const valuesSelectedText = translations.selectMultiple_valuesSelected({\n VALUE_COUNT: `${count}`\n });\n const label = `${accLabel}${valuesSelectedText} ${instructions}`;\n return (\n <div class={rootStyles} onKeyDown={onKeyDown} onKeyUp={onKeyUp} onMouseDown={onMouseDown}>\n <Chip accessibleLabel={label} {...passThroughProps}>\n {chipCount}\n </Chip>\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 { useMemo } from 'preact/hooks';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { renderItemText } from '../PRIVATE_SelectCommon';\n\nexport function useDisplayValues<K, D>(\n itemText: ItemTextType<K, D>,\n valueItems?: Item<K, D>[]\n): string {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const separator = translations.plural_separator();\n\n // create the text displayed in the field from the selected values\n const concatenatedDisplayValues = useMemo(() => {\n if (valueItems === undefined) {\n return '';\n }\n const displayValues = _createDisplayValues(itemText, valueItems);\n const concatDisplayValues = _concatDisplayValues(displayValues, separator);\n return concatDisplayValues;\n }, [valueItems, itemText]);\n\n return concatenatedDisplayValues;\n}\n\nfunction _concatDisplayValues(displayValues: Set<string>, separator: string) {\n return Array.from(displayValues.values()).join(separator);\n}\n\nfunction _createDisplayValues<K, D>(itemText: ItemTextType<K, D>, selectedItems?: Item<K, D>[]) {\n const arValues = selectedItems ? [...selectedItems?.values()] : [];\n const mapFunc = (itemContext: Item<K, D>) => renderItemText(itemContext, itemText);\n const mappedArray = arValues.map(mapFunc);\n return new Set<string>(mappedArray as string[]);\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 { MutableRef, useCallback, useEffect, useMemo, useRef, useState } from 'preact/hooks';\nimport { DataState, SelectionDetail } from '../UNSAFE_Collection';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { isControlOrFunctionKey, KEYS, useSelectCommon } from '../PRIVATE_SelectCommon';\nimport { SelectMultiple } from './SelectMultiple';\nimport { SelectedValuesCount } from './SelectedValuesCount';\nimport { useSelectedOnlyData } from './useSelectedOnlyData';\n\ntype PickedPropsFromSelectMultiple = Pick<\n ComponentProps<typeof SelectMultiple>,\n 'isDisabled' | 'isReadonly' | 'onFilter' | 'onLoadRange'\n>;\ntype UseSelectMultipleProps<K, D> = PickedPropsFromSelectMultiple & {\n data?: DataState<K, D> | null;\n inputRef: MutableRef<HTMLInputElement>;\n isFocused?: boolean;\n onCommit: (detail: ValueUpdateDetail<Set<K>>) => void;\n valueItems?: Item<K, D>[];\n};\n\ntype SelectedValuesCountToggleType = ComponentProps<typeof SelectedValuesCount>['onToggle'];\ntype SelectedValuesCountToggleDetailType = Parameters<\n Exclude<SelectedValuesCountToggleType, undefined>\n>[0];\n\n/**\n * Hook that manages SelectMultiple state and behavior. This hook creates state variables and\n * event listeners, returning properties to apply to components internally rendered by\n * SelectMultiple, 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 isDisabled Specifies whether the component is disabled.\n * @param isFocused Specifies whether the component has focus.\n * @param isReadonly Specifies whether the component is readonly.\n * @param onCommit Callback invoked when the selected values are committed.\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 * @param onLoadRange Callback function to handle when the viewport of the dropdown list has\n * changed, including the case where the user scrolls to the end of the list and there are more\n * items to load. The function should set a new DataState on the component for the specified\n * range.\n * @param valueItems Specifies the keys, data, and optional metadata for the selected values.\n *\n * @returns Properties to apply to internal components that SelectMultiple renders, and component\n * state.\n */\nexport function useSelectMultiple<K, D>({\n data: propData,\n inputRef,\n isDisabled,\n isFocused: propIsFocused,\n isReadonly,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n valueItems\n}: UseSelectMultipleProps<K, D>) {\n const [isDropdownSelectedOnlyView, setDropdownSelectedOnlyView] = useState(false);\n\n const selectedValuesCount = valueItems?.length;\n const hasSelectedValuesCount =\n (selectedValuesCount !== undefined && selectedValuesCount > 0) || isDropdownSelectedOnlyView;\n\n // show only the selected values in the dropdown if isDropdownSelectedOnlyView is true,\n // otherwise show the full data set\n // TODO: We may need to revisit this for hierarchical data because the selected valueItems\n // won't have any information about ancestor group nodes, and we should probably show selected\n // items in context within the hierarchy. Also, the order of the items in the selected-only\n // view right now follows the order in which they were selected, not the order in which they\n // would appear in the full data set. This may be more of a problem for hierarchical data\n // if items have to appear within the correct group ancestors. We may need to move\n // construction of the selected-only DataState out of the component to the consuming code,\n // and take a callback that we can call as a notification that the app should provide this\n // special DataState to us (kind of like onLoadRange). Note that we may also need an\n // enhancement on the DataProvider API to be able to specify a filterCriterion to filter by\n // the selected keys through a fetchFirst call, because a regular fetchByKeys call would\n // still return results in the order in which the keys were specified and would not return\n // data for the ancestor group nodes.\n const selectedOnlyDataProps = useSelectedOnlyData<K, D>({\n isDropdownSelectedOnlyView,\n valueItems\n });\n const data = isDropdownSelectedOnlyView ? selectedOnlyDataProps.data : propData;\n const onLoadRange = isDropdownSelectedOnlyView\n ? selectedOnlyDataProps.onLoadRange\n : propOnLoadRange;\n\n const {\n currentRow,\n dropdownRef,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss: baseHandleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown: baseHandleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n selectedKeys,\n setCurrentRow,\n setDropdownOpen,\n setSelectedKeys,\n userInput\n } = useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused: propIsFocused,\n onFilter\n });\n\n const removeDropdown = useCallback(() => {\n dropdownRef.current?.parentElement?.removeChild(dropdownRef.current);\n }, []);\n\n const myHandleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n if (event?.type === 'keydown') {\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.TAB:\n // Put focus on an element in the main field, but don't kill the event, so that\n // the browser can naturally transfer focus to the next focusable item relative\n // to the element in the main field.\n if (keyboardEvent.shiftKey || !hasSelectedValuesCount) {\n inputRef.current?.focus();\n } else {\n chipRef.current?.focus();\n }\n\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n break;\n default:\n break;\n }\n }\n }\n },\n [hasSelectedValuesCount, isDropdownOpen]\n );\n\n const myHandleMainFieldKeyDown = 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.TAB:\n if (isDropdownOpen && (event.shiftKey || (!hasSelectedValuesCount && !event.shiftKey))) {\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n\n setDropdownOpen(false);\n }\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to jump focus to the next cell and skip\n // over the selected values count chip\n if (hasSelectedValuesCount && !event.shiftKey) {\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [hasSelectedValuesCount, isDropdownOpen]\n );\n\n // when the array of valueItems changes, pull out the new set of selectedKeys\n useEffect(() => {\n const keys = valueItems?.reduce((accumKeys, currentItem) => {\n accumKeys.add(currentItem.key);\n return accumKeys;\n }, new Set<K>());\n setSelectedKeys(keys);\n }, [valueItems]);\n\n const chipRef = useRef<HTMLElement | null>(null);\n useEffect(() => {\n chipRef.current =\n hasSelectedValuesCount && mainFieldRef.current\n ? mainFieldRef.current.querySelector('[role=\"switch\"]')\n : null;\n }, [hasSelectedValuesCount, isDisabled, isReadonly]);\n\n const handleSelectedValuesCountKeyDown = useCallback(\n (event: KeyboardEvent) => {\n switch (event.code) {\n case KEYS.TAB:\n if (isDropdownOpen && !event.shiftKey) {\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n\n setDropdownOpen(false);\n }\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to jump focus to the next cell and skip\n // over the input\n if (event.shiftKey) {\n event.stopPropagation();\n }\n break;\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 case KEYS.ENTER:\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to move focus to the next row when\n // we toggle between the full and selected only list in the dropdown\n event.stopPropagation();\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleSelectedValuesCountKeyUp = useCallback(\n (event: KeyboardEvent) => {\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 handleSelectedValuesCountMouseDown = useCallback((event: MouseEvent) => {\n // call preventDefault so that the dropdown doesn't open showing the full list on mousedown\n // on the chip before switching to show only the selected values on mouseup when the click\n // is handled\n event.preventDefault();\n // explicitly focus the input because it won't happen naturally due to preventDefault()\n inputRef.current?.focus();\n }, []);\n\n const handleSelectedValuesCountToggle = useCallback(\n (detail: SelectedValuesCountToggleDetailType) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n\n const value = detail.value ?? false;\n if (value !== isDropdownSelectedOnlyView) {\n setDropdownSelectedOnlyView(value);\n }\n },\n [isDropdownOpen, isDropdownSelectedOnlyView]\n );\n\n // when the dropdown closes, automatically turn off isDropdownSelectedOnlyView\n useEffect(() => {\n if (!isDropdownOpen && isDropdownSelectedOnlyView) {\n setDropdownSelectedOnlyView(false);\n }\n }, [isDropdownOpen, isDropdownSelectedOnlyView]);\n\n const onSelectionChange = useCallback(\n (detail: SelectionDetail<K>) => {\n const newKeys = new Set(detail.value.keys?.values());\n // update the selectedKeys so that the selection visual state of the collection\n // updates immediately while waiting for new valueItems to be set\n setSelectedKeys(newKeys);\n // call the onCommit callback so that the consuming code can update the valueItems\n onCommit?.({ value: newKeys, previousValue: selectedKeys });\n },\n [onCommit, selectedKeys]\n );\n\n const dropdownEventHandlers = useMemo(() => {\n return mergeProps(\n {\n onAutoDismiss: baseHandleDropdownAutoDismiss,\n onPosition: handleDropdownPosition\n },\n { onAutoDismiss: myHandleDropdownAutoDismiss }\n );\n }, [baseHandleDropdownAutoDismiss, handleDropdownPosition, myHandleDropdownAutoDismiss]);\n\n const inputEventHandlers = useMemo(() => {\n return mergeProps(\n {\n onInput: handleInput,\n onKeyDown: baseHandleMainFieldKeyDown,\n onKeyUp: handleMainFieldKeyUp\n },\n { onKeyDown: myHandleMainFieldKeyDown }\n );\n }, [baseHandleMainFieldKeyDown, handleInput, handleMainFieldKeyUp, myHandleMainFieldKeyDown]);\n\n useEffect(() => {\n // clear the current item when the dropdown opens\n if (isDropdownOpen) {\n setCurrentRow({ rowKey: undefined });\n }\n }, [isDropdownOpen]);\n\n return {\n collectionProps: {\n currentKey: currentRow.rowKey,\n onCurrentKeyChange,\n onSelectionChange,\n selectedKeys\n },\n data,\n dropdownArrowEventHandlers: {\n onClick: handleDropdownArrowClick\n },\n dropdownEventHandlers,\n dropdownRef,\n hasSelectedValuesCount,\n inputEventHandlers,\n inputRef,\n isDropdownAbove,\n isDropdownOpen,\n isDropdownSelectedOnlyView,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n mouseProps: isDisabled || isReadonly ? {} : { onMouseDown },\n onLoadRange,\n searchText,\n selectedValuesCountProps: {\n onKeyDown: handleSelectedValuesCountKeyDown,\n onKeyUp: handleSelectedValuesCountKeyUp,\n onMouseDown: handleSelectedValuesCountMouseDown,\n onToggle: handleSelectedValuesCountToggle\n },\n userInput\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 { useMemo } from 'preact/hooks';\nimport { DataState } from 'src/UNSAFE_Collection';\nimport { Item } from '../utils/UNSAFE_dataProvider';\n\ntype Props<K, D> = {\n isDropdownSelectedOnlyView?: boolean;\n valueItems?: Item<K, D>[];\n};\n\n/**\n * Get the data to show in the dropdown for the selected-only view.\n * @param isDropdownSelectedOnlyView Whether the component is showing only selected\n * values in the dropdown: true if so, false if not.\n * @param valueItems The keys, data, and optional metadata for the selected values.\n * @returns An object with data and onLoadRange properties that can be passed on to the\n * list in the dropdown.\n */\nexport function useSelectedOnlyData<K, D>({ isDropdownSelectedOnlyView, valueItems }: Props<K, D>) {\n // Need to specify type of useMemo here so the return statement below doesn't show a type error\n // related to the sizePrecision prop on DataState:\n // Type 'string' is not assignable to type '\"exact\" | \"atLeast\"'.\n // Note that useMemo here only depends on isDropdownSelectedOnlyView because we only want to\n // recalculate when that value changes. While the selected only view is shown, we want the\n // data set to remain static with the set of valueItems as of the time the view was changed to\n // only show selected items so that the user can deselect and reselect items.\n // If useMemo depended on the valueItems too, then the data set would change as the user\n // deselected items, which means those items would disappear from the dropdown and the user\n // could not reselect them.\n const selectedOnlyViewDataState = useMemo<DataState<K, D> | undefined>(() => {\n return !isDropdownSelectedOnlyView || !valueItems || valueItems.length === 0\n ? undefined\n : {\n offset: 0,\n totalSize: valueItems?.length ?? 0,\n sizePrecision: 'exact',\n data: valueItems.map((valueItem: Item<K, D>) => {\n return { data: valueItem.data, metadata: valueItem.metadata ?? { key: valueItem.key } };\n })\n };\n }, [isDropdownSelectedOnlyView]);\n\n return {\n data: selectedOnlyViewDataState,\n onLoadRange: undefined\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Fragment, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { MutableRef } from 'preact/hooks';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useLoadingIndicatorTimer } from '../hooks/UNSAFE_useLoadingIndicatorTimer';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { DataState } from '../UNSAFE_Collection';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Label } from '../UNSAFE_Label';\nimport { ListView } from '../UNSAFE_ListView';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { Size } from '../utils/UNSAFE_size';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport {\n DefaultList,\n Dropdown,\n DropdownArrow,\n DropdownList,\n DropdownUserAssistance,\n EmptyResults,\n isBeforeDataFetch,\n isMobile\n} from '../PRIVATE_SelectCommon';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { SelectedValuesCount } from './SelectedValuesCount';\nimport { useDisplayValues } from './useDisplayValues';\nimport { useSelectMultiple } from './useSelectMultiple';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props<K extends string | number, D extends Record<string, any>> = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\n /**\n * Text to provide guidance to help the user understand what data to enter or select.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Specifies data for the dropdown list.\n *\n * Note that the <code>itemText</code> property allows for customizing the rendering\n * of each data item.\n */\n data?: DataState<K, D> | null;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is waiting for <code>valueItems</code> to load.\n * While loading, SelectMultiple will show the progressive loading indicator in the text field.\n */\n isLoading?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * selected by the user. Setting this property to <code>true</code> means that a value\n * is required to be selected by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has selected a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies how to get the text string to render for a data item.\n * This property can be set to either:\n * <ul>\n * <li>a string that specifies the name of a top level data attribute to render as text, or</li>\n * <li>a callback function that takes a properties object and returns the text string to\n * display.</li>\n * </ul>\n *\n * This text will be rendered for the selected <code>valueItems</code> of the component.\n * It will also be rendered for each item in the dropdown. When rendered for the\n * dropdown items, default matching search term highlighting will still be applied.\n */\n itemText: ItemTextType<K, D>;\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user selects or enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\n /**\n * Specifies the keys, data, and optional metadata for the selected values.\n */\n valueItems?: Item<K, D>[];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * The type of virtual keyboard to display for entering a value on mobile browsers.\n * This property has no effect on desktop browsers.\n */\n virtualKeyboard?: 'auto' | 'email' | 'number' | 'search' | 'tel' | 'text' | 'url';\n /**\n * Callback invoked when the user commits the selected values.\n *\n * The function should set a new array as the <code>valueItems</code> property.\n */\n onCommit: (detail: ValueUpdateDetail<Set<K>>) => void;\n /**\n * Callback function to trigger loading data for the dropdown list, which may or may not be\n * filtered by user entered search text.\n *\n * The function should set a new <code>DataState</code> as the <code>data</code> property.\n */\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n /**\n * Callback function to handle when the viewport of the dropdown list has changed, for example\n * by scrolling, including the case where the user scrolls to the end of the list and there are\n * more items to load.\n *\n * The function should set a new <code>DataState</code> for the specified range as the\n * <code>data</code> property.\n */\n onLoadRange?: ComponentProps<typeof ListView>['onLoadRange'];\n};\n\n/**\n * A SelectMultiple is a dropdown list that supports multiple selection and search filtering.\n */\nexport const SelectMultiple = forwardRef(\n <K extends string | number, D extends Record<string, any>>(\n {\n ariaDescribedBy,\n assistiveText,\n data: propData,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isLoading: propIsLoading,\n isReadonly: propIsReadonly,\n isRequired,\n isRequiredShown,\n itemText,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n messages,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n placeholder,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n valueItems,\n variant = 'default',\n virtualKeyboard\n }: Props<K, D>,\n ref?: Ref<FocusableHandle>\n ) => {\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const {\n enabledElementRef,\n focusProps,\n isFocused: origIsFocused,\n readonlyElementRef\n } = useFocusableTextField<HTMLInputElement, HTMLDivElement>({ isDisabled, isReadonly, ref });\n\n const {\n collectionProps,\n data,\n dropdownArrowEventHandlers,\n dropdownEventHandlers,\n dropdownRef,\n hasSelectedValuesCount,\n inputEventHandlers,\n isDropdownAbove,\n isDropdownOpen,\n isDropdownSelectedOnlyView,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n mouseProps,\n onLoadRange,\n searchText,\n selectedValuesCountProps,\n userInput\n } = useSelectMultiple<K, D>({\n data: propData,\n inputRef: enabledElementRef as MutableRef<HTMLInputElement>,\n isDisabled,\n isFocused: origIsFocused,\n isReadonly,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n valueItems\n });\n\n // The incoming propIsLoading tells us that we are in a loading state, but we don't want to\n // show the loading indicator until after a delay, because showing it immediately could result\n // in unwanted flashing. The isLoading var below will be set to true by useLoadingIndicatorTimer\n // after the delay, when the timer expires, at which point we should show the loading indicator.\n // If propIsLoading is set to false before the timer expires, then the timer will be cancelled\n // and no loading indicator will be shown.\n // (ListView detects its loading state by checking data === null. While it would be nice for\n // us to be consistent and check valueItems === null, we need to use a separate isLoading prop.\n // If valueItems === null triggers our loading state, then the selections in the dropdown\n // are cleared for that period of time, which is undesirable.)\n const isLoading = useLoadingIndicatorTimer(propIsLoading ?? false);\n\n const {\n baseId,\n formFieldContext,\n inputProps,\n labelProps,\n textFieldProps,\n userAssistanceProps\n } = useTextField({\n ariaDescribedBy,\n isDisabled,\n isFocused,\n isLoading,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value: valueItems !== undefined && valueItems.length > 0 ? true : undefined\n });\n\n const dropdownId = `${baseId}-dropdown`;\n\n const displayValue = useDisplayValues(itemText, valueItems);\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n if (isReadonly) {\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps.onfocusout}\n onFocus={focusProps.onfocusin}\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n as=\"div\"\n elementRef={readonlyElementRef}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n textAlign={textAlign}\n value={displayValue}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n const isDataFetched = data !== undefined && data !== null && !isBeforeDataFetch<K, D>(data);\n const hasInsideLabel = labelComp !== undefined && labelEdge === 'inside';\n const liveRegionText =\n isDropdownOpen && isDataFetched\n ? data?.totalSize === 0\n ? translations.select_noMatchesFound()\n : data?.totalSize === 1\n ? translations.select_oneMatchFound()\n : data?.sizePrecision === 'exact'\n ? translations.select_sizeMatchesFound({ TOTAL_SIZE: `${data?.totalSize}` })\n : translations.select_sizeOrMoreMatchesFound({ TOTAL_SIZE: `${data?.totalSize}` })\n : '';\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n ariaAutoComplete=\"list\"\n ariaControls={dropdownId}\n ariaExpanded={isDropdownOpen}\n ariaLabel={ariaLabel}\n autoComplete=\"off\"\n hasInsideLabel={hasInsideLabel}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n // onCommit={handleCommit}\n {...inputEventHandlers}\n placeholder={placeholder}\n role=\"combobox\"\n spellcheck={false}\n textAlign={textAlign}\n type={isMobile() ? (virtualKeyboard === 'auto' ? 'search' : virtualKeyboard) : undefined}\n value={isUserFiltering ? userInput : displayValue}\n {...inputProps}\n />\n <LiveRegion>{liveRegionText}</LiveRegion>\n </Fragment>\n );\n\n const dropdownArrow = (\n <DropdownArrow\n isDisabled={isDisabled}\n size={hasInsideLabel ? 'md' : 'sm'}\n {...dropdownArrowEventHandlers}\n />\n );\n const selectedValuesCount = valueItems?.length;\n const endContent = isLoading ? undefined : !hasSelectedValuesCount ? (\n dropdownArrow\n ) : (\n <Flex align=\"center\" justify=\"center\" gap={[0, '1x']}>\n <SelectedValuesCount\n accessibleLabel={label}\n count={selectedValuesCount}\n isDisabled={isDisabled}\n isSelected={isDropdownSelectedOnlyView}\n {...selectedValuesCountProps}\n />\n {dropdownArrow}\n </Flex>\n );\n\n const dropdownInlineUserAssistance =\n isDropdownOpen &&\n !isDropdownAbove &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <DropdownUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n userAssistanceDensity={userAssistanceDensity}\n />\n ) : undefined;\n\n const isEmptyResults = isDataFetched && data?.totalSize === 0;\n const dropdownListContent = isEmptyResults ? (\n <EmptyResults />\n ) : (\n <DefaultList<K, D>\n {...collectionProps}\n accessibleSummary={label ?? ''}\n data={data}\n itemText={itemText}\n onLoadRange={onLoadRange}\n searchText={\n isDropdownSelectedOnlyView ? undefined : isUserFiltering ? searchText : undefined\n }\n selectionMode=\"multiple\"\n />\n );\n\n return (\n <Fragment>\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n endContent={endContent}\n inlineUserAssistance={inlineUserAssistance}\n mainContent={mainContent}\n mainFieldRef={mainFieldRef}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n {...textFieldProps}\n {...fieldLabelProps}\n {...mouseProps}></TextField>\n </FormFieldContext.Provider>\n <Dropdown\n dropdownRef={dropdownRef}\n id={dropdownId}\n isOpen={\n isDropdownOpen &&\n data !== undefined &&\n (data === null || data.totalSize > 0 || isBeforeDataFetch<K, D>(data) || isEmptyResults)\n }\n anchorRef={mainFieldRef}\n {...dropdownEventHandlers}>\n <DropdownList\n hasBottomGap={dropdownInlineUserAssistance === undefined}\n isLoading={data === null}>\n {dropdownListContent}\n </DropdownList>\n {dropdownInlineUserAssistance}\n </Dropdown>\n </Fragment>\n );\n }\n);\n"],"names":["SelectedValuesCount","_a","accessibleLabel","count","onKeyDown","onKeyUp","onMouseDown","passThroughProps","__rest","translations","useTranslationBundle","instructions","selectMultiple_showSelectedValues","accLabel","ninetyNinePlus","selectMultiple_countPlus","COUNT","chipCount","selectMultiple_valuesSelected","_jsx","Object","assign","class","children","jsx","Chip","label","useDisplayValues","itemText","valueItems","separator","plural_separator","concatenatedDisplayValues","useMemo","undefined","displayValues","selectedItems","arValues","values","mapFunc","itemContext","renderItemText","mappedArray","map","Set","_createDisplayValues","concatDisplayValues","Array","from","join","_concatDisplayValues","useSelectMultiple","data","propData","inputRef","isDisabled","isFocused","propIsFocused","isReadonly","onCommit","onFilter","onLoadRange","propOnLoadRange","isDropdownSelectedOnlyView","setDropdownSelectedOnlyView","useState","selectedValuesCount","length","hasSelectedValuesCount","selectedOnlyDataProps","offset","totalSize","sizePrecision","valueItem","metadata","key","useSelectedOnlyData","currentRow","dropdownRef","handleDropdownArrowClick","handleDropdownAutoDismiss","baseHandleDropdownAutoDismiss","handleDropdownPosition","handleInput","handleMainFieldKeyDown","baseHandleMainFieldKeyDown","handleMainFieldKeyUp","handleUpDownArrowKeys","isDropdownAbove","isDropdownOpen","isUserFiltering","mainFieldRef","onCurrentKeyChange","searchText","selectedKeys","setCurrentRow","setDropdownOpen","setSelectedKeys","userInput","useSelectCommon","removeDropdown","useCallback","_b","current","parentElement","removeChild","myHandleDropdownAutoDismiss","event","type","keyboardEvent","code","KEYS","TAB","shiftKey","focus","chipRef","myHandleMainFieldKeyDown","isControlOrFunctionKey","stopPropagation","useEffect","keys","reduce","accumKeys","currentItem","add","useRef","querySelector","handleSelectedValuesCountKeyDown","UP","DOWN","preventDefault","ESC","ENTER","handleSelectedValuesCountKeyUp","handleSelectedValuesCountMouseDown","handleSelectedValuesCountToggle","detail","value","onSelectionChange","newKeys","previousValue","dropdownEventHandlers","mergeProps","onAutoDismiss","onPosition","inputEventHandlers","onInput","rowKey","collectionProps","currentKey","dropdownArrowEventHandlers","onClick","mouseProps","selectedValuesCountProps","onToggle","SelectMultiple","forwardRef","ariaDescribedBy","assistiveText","helpSourceLink","helpSourceText","propIsDisabled","isLoading","propIsLoading","propIsReadonly","isRequired","isRequiredShown","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","messages","placeholder","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","variant","virtualKeyboard","ref","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","enabledElementRef","focusProps","origIsFocused","readonlyElementRef","useFocusableTextField","useLoadingIndicatorTimer","baseId","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","dropdownId","displayValue","labelComp","Label","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","fieldLabel","FormFieldContext","Provider","ReadonlyTextField","role","onBlur","onfocusout","onFocus","onfocusin","ReadonlyTextFieldInput","ariaLabelledBy","id","as","elementRef","hasInsideLabel","isDataFetched","isBeforeDataFetch","liveRegionText","select_noMatchesFound","select_oneMatchFound","select_sizeMatchesFound","TOTAL_SIZE","select_sizeOrMoreMatchesFound","mainContent","_jsxs","jsxs","Fragment","TextFieldInput","ariaAutoComplete","ariaControls","ariaExpanded","autoComplete","spellcheck","isMobile","LiveRegion","dropdownArrow","DropdownArrow","size","endContent","Flex","align","justify","gap","isSelected","dropdownInlineUserAssistance","DropdownUserAssistance","isEmptyResults","dropdownListContent","EmptyResults","DefaultList","accessibleSummary","selectionMode","TextField","Dropdown","isOpen","anchorRef","DropdownList","hasBottomGap"],"mappings":"mqBAuBA,SAAAA,EAAAC,GAAoC,IAAAC,gBAAAA,EAAAC,MAAAA,EAAA,EAAAC,UAAAA,EAAAC,QAAAA,EAAAC,YAAAA,GAAAL,EAAAM,EAAAC,EAAAA,OAAAP,EAAA,CAAA,kBAAA,QAAA,YAAA,UAAA,gBAQlC,MAAAQ,EAAAC,uBAAA,4BACAC,EAAAF,EAAAG,oCACAC,EAAAX,EAAA,GAAAA,MAAA,GAEAY,EAAAL,EAAAM,yBAAA,CAAAC,MAAA,OAEAC,EAAAd,EAAA,GAAA,GAAAW,IAAA,GAAAX,aAGAM,EAAAS,8BAAA,6BAIA,OAAAC,MAAA,MAAAC,OAAAC,OAAA,CAAAC,MAtCF,UAsCElB,UAAAA,EAAAC,QAAAA,EAAAC,YAAAA,GAAA,CAAAiB,SAAAJ,EAAAK,IAAAC,OAAAL,OAAAC,OAAA,CAAAnB,gBAAAwB,GAAAnB,EAAA,CAAAgB,SAAAN,QC7Bc,SAAAU,EACdC,EACAC,GAEA,MACMC,EADepB,uBAAiC,4BACvBqB,mBAGzBC,EAA4BC,EAAAA,QAAQ,KACxC,QAAmBC,IAAfL,EACF,MAAO,GAET,MAAMM,EAYV,SAAoCP,EAA8BQ,GAChE,MAAMC,EAAWD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AAiBC,GACS,cAA1BgB,IAAmE,WAA1BA,QAQtC7I,EAPFf,EAAAA,IAAC2O,EAAsBA,wBACrBhG,cAAeA,EACfmD,WAAYvL,EACZqI,eAAgBA,EAChBC,eAAgBA,EAChBe,sBAAuBA,KAIvBgF,GAAiB/B,IAAqC,KAApB5K,MAAAA,QAAI,EAAJA,GAAMmB,WACxCyL,GAAsBD,GAC1B5O,EAAAK,IAACyO,EAAYA,aAAA,IAEb9O,EAAAA,IAAC+O,EAAWA,YACN9O,OAAAC,OAAA,GAAA+H,GACJ,CAAA+G,kBAAmBzO,MAAAA,EAAAA,EAAS,GAC5B0B,KAAMA,GACNxB,SAAUA,EACViC,YAAaA,GACbgC,WACE9B,QAA6B7B,EAAYwD,GAAkBG,QAAa3D,EAE1EkO,cAAc,cAIlB,OACE3B,EAAAC,KAACC,EAAQA,SAAA,CAAApN,SAAA,CACPJ,MAAC+L,EAAgBA,iBAACC,SAAQ/L,OAAAC,OAAA,CAACoH,MAAOyD,IAChC,CAAA3K,SAAAJ,EAAAA,IAACkP,EAASA,UACRjP,OAAAC,OAAA,CAAAkO,WAAYA,GACZxC,qBAAsBA,GACtByB,YAAaA,GACb7I,aAAcA,GACd2H,OAAQ1B,MAAAA,QAAU,EAAVA,GAAY2B,WACpBC,QAAS5B,MAAAA,UAAAA,GAAY6B,WACjBpB,GACAQ,GACArD,QAERiF,EAAAA,KAAC6B,EAAAA,wBACCxL,YAAaA,GACb8I,GAAInB,GACJ8D,OACE9K,SACSvD,IAATkB,KACU,OAATA,IAAiBA,GAAKmB,UAAY,GAAK0J,EAAiBA,kBAAO7K,KAAS2M,IAE3ES,UAAW7K,IACPkD,cACJ1H,EAAAA,IAACsP,EAAYA,4BACXC,kBAA+CxO,IAAjC2N,GACd3F,UAAoB,OAAT9G,cACV4M,MAEFH"}
@@ -0,0 +1,2 @@
1
+ define(["exports","preact/jsx-runtime","preact","preact/compat","./hooks/UNSAFE_useFocusableTextField","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useLoadingIndicatorTimer","./hooks/UNSAFE_useTextField","./UNSAFE_Label","./UNSAFE_LiveRegion","./UNSAFE_TextField","./UNSAFE_UserAssistance","./PRIVATE_SelectCommon","preact/hooks","./utils/UNSAFE_mergeProps","./hooks/UNSAFE_useTranslationBundle","./ReadonlyTextFieldInput-589b89be","./TextFieldInput-c2d1aefc"],function(e,o,n,s,i,t,l,a,r,d,u,c,v,p,F,m,b,h,f){"use strict";const x=s.forwardRef(({ariaDescribedBy:e,assistiveText:s,data:x,helpSourceLink:w,helpSourceText:y,isDisabled:g,isLoading:S,isReadonly:A,isRequired:R,isRequiredShown:D,itemText:E,label:T,labelEdge:C,labelStartWidth:j,messages:k,onCommit:K,onFilter:I,onLoadRange:L,placeholder:U,textAlign:O,userAssistanceDensity:P,valueItem:_,variant:M="default",virtualKeyboard:B},N)=>{const{isDisabled:z,isReadonly:H,labelEdge:q,labelStartWidth:V,textAlign:W,userAssistanceDensity:Y}=t.useFormContext(),$=null!=g?g:z,Z=null!=A?A:H,G=null!=C?C:q,J=null!=j?j:V,Q=null!=O?O:W,X=null!=P?P:Y,{enabledElementRef:ee,focusProps:oe,isFocused:ne,readonlyElementRef:se}=i.useFocusableTextField({isDisabled:$,isReadonly:Z,ref:N}),{collectionProps:ie,dropdownArrowEventHandlers:te,dropdownEventHandlers:le,dropdownRef:ae,inputEventHandlers:re,isDropdownAbove:de,isDropdownOpen:ue,isFocused:ce,isUserFiltering:ve,mainFieldRef:pe,mouseProps:Fe,searchText:me,userInput:be}=function({data:e,inputRef:o,isDisabled:n,isFocused:s,isReadonly:i,onCommit:t,onFilter:l,valueItem:a}){const{currentRow:r,dropdownRef:d,handleDropdownArrowClick:u,handleDropdownAutoDismiss:c,handleDropdownPosition:v,handleInput:b,handleMainFieldKeyDown:h,handleMainFieldKeyUp:f,isDropdownAbove:x,isDropdownOpen:w,isFocused:y,isUserFiltering:g,mainFieldRef:S,onCurrentKeyChange:A,onMouseDown:R,searchText:D,selectedKeys:E,setCurrentRow:T,setDropdownOpen:C,setSelectedKeys:j,stopFiltering:k,userInput:K}=p.useSelectCommon({data:e,inputRef:o,isFocused:s,onFilter:l}),I=F.useRef(e),L=F.useRef(w),U=F.useRef(D),O=F.useCallback(e=>{null==t||t({value:e,previousValue:void 0!==a?a.key:void 0})},[t,a]),P=F.useCallback(()=>{C(!1),j(new Set),O(void 0)},[O]),_=F.useCallback(()=>!(!g||""!==K||void 0===a||(P(),0)),[P,g,K,a]);F.useEffect(()=>{y||_()},[y]);const M=F.useCallback(()=>{var e;null===(e=o.current)||void 0===e||e.focus()},[]),B=F.useCallback(()=>{var e,o;null===(o=null===(e=d.current)||void 0===e?void 0:e.parentElement)||void 0===o||o.removeChild(d.current)},[]),N=F.useCallback(e=>{w&&"keydown"===(null==e?void 0:e.type)&&e.code===p.KEYS.TAB&&(void 0!==r&&void 0!==r.rowKey&&(j(new Set([r.rowKey])),O(r.rowKey)),M(),B())},[r,M,w,O]),z=F.useCallback(o=>{var n,s;if(!p.isControlOrFunctionKey(o))switch(o.code){case p.KEYS.TAB:!_()&&w&&null!=e&&e.data.length>0&&(void 0!==r&&void 0!==r.rowKey?(j(new Set([r.rowKey])),O(r.rowKey)):O(null!==(n=null==a?void 0:a.key)&&void 0!==n?n:void 0)),B(),C(!1);break;case p.KEYS.ENTER:!_()&&w&&null!=e&&e.data.length>0&&(C(!1),k(),void 0!==r&&void 0!==r.rowKey?(j(new Set([r.rowKey])),O(r.rowKey)):O(null!==(s=null==a?void 0:a.key)&&void 0!==s?s:void 0))}},[_,r,e,w,O,a]);F.useEffect(()=>{j(void 0===a?void 0:new Set([a.key]))},[a]);const H=F.useCallback(e=>{M(),C(!1),k();const o=e.context.metadata.key;j(new Set([o])),O(o)},[M,O]);F.useEffect(()=>{e!==I.current&&w&&g&&null!=e&&0===e.offset&&e.data.length>0&&T({rowKey:void 0!==D&&(null==D?void 0:D.length)>0?e.data[0].metadata.key:void 0})},[e,w,g,D]),F.useEffect(()=>{w!==L.current&&(!w||g&&void 0!==D&&0!==D.length||T({rowKey:void 0}))},[w,g,D]);const q=F.useMemo(()=>m.mergeProps({onAutoDismiss:c,onPosition:v},{onAutoDismiss:N}),[c,v,N]),V=F.useMemo(()=>m.mergeProps({onInput:b,onKeyDown:h,onKeyUp:f},{onKeyDown:z}),[h,b,f,z]);return F.useEffect(()=>{I.current=e,L.current=w,U.current=D}),{collectionProps:{currentKey:r.rowKey,onCurrentKeyChange:A,onItemAction:H,selectedKeys:E},dropdownArrowEventHandlers:{onClick:u},dropdownEventHandlers:q,dropdownRef:d,inputEventHandlers:V,inputRef:o,isDropdownAbove:x,isDropdownOpen:w,isFocused:y,isUserFiltering:g,mainFieldRef:S,mouseProps:n||i?{}:{onMouseDown:R},searchText:D,userInput:K}}({data:x,inputRef:ee,isDisabled:$,isFocused:ne,isReadonly:Z,onCommit:K,onFilter:I,valueItem:_}),he=a.useLoadingIndicatorTimer(null!=S&&S),{baseId:fe,formFieldContext:xe,inputProps:we,labelProps:ye,textFieldProps:ge,userAssistanceProps:Se}=r.useTextField({ariaDescribedBy:e,isDisabled:$,isFocused:ce,isLoading:he,isReadonly:Z,labelEdge:G,messages:k,styleVariant:M,value:void 0!==_||void 0}),Ae=`${fe}-dropdown`,Re=function(e,o){return F.useMemo(()=>{var n;return void 0===o?"":null!==(n=p.renderItemText(o,e))&&void 0!==n?n:""},[o,e])}(E,_),De="none"!==G?o.jsx(d.Label,Object.assign({},ye,{children:T})):void 0,Ee={label:"none"!==G?De:void 0,labelEdge:"none"!==G?G:void 0,labelStartWidth:"none"!==G?J:void 0},Te="none"===G?T:void 0,Ce=$||Z?"efficient"!==X?void 0:o.jsx(v.InlineUserAssistance,Object.assign({userAssistanceDensity:X},Se)):o.jsx(v.InlineUserAssistance,Object.assign({assistiveText:s,fieldLabel:T,helpSourceLink:w,helpSourceText:y,messages:k,isRequiredShown:D,userAssistanceDensity:X},Se)),je=b.useTranslationBundle("@oracle/oraclejet-preact");if(Z)return o.jsx(l.FormFieldContext.Provider,Object.assign({value:xe},{children:o.jsx(c.ReadonlyTextField,Object.assign({role:"presentation",inlineUserAssistance:Ce,onBlur:oe.onfocusout,onFocus:oe.onfocusin},Ee,{children:o.jsx(h.ReadonlyTextFieldInput,{ariaDescribedBy:e,ariaLabel:Te,ariaLabelledBy:ye.id,as:"div",elementRef:se,hasInsideLabel:void 0!==T&&"inside"===G,textAlign:Q,value:Re})}))}));const ke=null!=x&&!p.isBeforeDataFetch(x),Ke=void 0!==De&&"inside"===G,Ie=ue&&ke?0===(null==x?void 0:x.totalSize)?je.select_noMatchesFound():1===(null==x?void 0:x.totalSize)?je.select_oneMatchFound():"exact"===(null==x?void 0:x.sizePrecision)?je.select_sizeMatchesFound({TOTAL_SIZE:`${null==x?void 0:x.totalSize}`}):je.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${null==x?void 0:x.totalSize}`}):"",Le=o.jsxs(n.Fragment,{children:[o.jsx(f.TextFieldInput,Object.assign({ariaAutoComplete:"list",ariaControls:Ae,ariaExpanded:ue,ariaLabel:Te,autoComplete:"off",hasInsideLabel:Ke,inputRef:ee,isRequired:R},re,{placeholder:U,role:"combobox",spellcheck:!1,textAlign:Q,type:p.isMobile()?"auto"===B?"search":B:void 0,value:ve?be:Re},we)),o.jsx(u.LiveRegion,{children:Ie})]}),Ue=o.jsx(p.DropdownArrow,Object.assign({isDisabled:$,size:Ke?"md":"sm"},te)),Oe=!ue||de||$||Z||!s&&!w||"efficient"!==X&&"reflow"!==X?void 0:o.jsx(p.DropdownUserAssistance,{assistiveText:s,fieldLabel:T,helpSourceLink:w,helpSourceText:y,userAssistanceDensity:X}),Pe=ke&&0===(null==x?void 0:x.totalSize),_e=Pe?o.jsx(p.EmptyResults,{}):o.jsx(p.DefaultList,Object.assign({},ie,{accessibleSummary:null!=T?T:"",currentItemVariant:"highlight",data:x,itemText:E,onLoadRange:L,searchText:ve?me:void 0,selectionMode:"single"}));return o.jsxs(n.Fragment,{children:[o.jsx(l.FormFieldContext.Provider,Object.assign({value:xe},{children:o.jsx(c.TextField,Object.assign({endContent:he?void 0:Ue,inlineUserAssistance:Ce,mainContent:Le,mainFieldRef:pe,onBlur:null==oe?void 0:oe.onfocusout,onFocus:null==oe?void 0:oe.onfocusin},ge,Ee,Fe))})),o.jsxs(p.Dropdown,Object.assign({dropdownRef:ae,id:Ae,isOpen:ue&&void 0!==x&&(null===x||x.totalSize>0||p.isBeforeDataFetch(x)||Pe),anchorRef:pe},le,{children:[o.jsx(p.DropdownList,Object.assign({hasBottomGap:void 0===Oe,isLoading:null===x},{children:_e})),Oe]}))]})});e.SelectSingle=x});
2
+ //# sourceMappingURL=SelectSingle-742ec1fb.js.map