@oracle/oraclejet-preact 14.0.0 → 14.0.2

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 (1345) hide show
  1. package/amd/Badge-0beeb09e.js +2 -0
  2. package/amd/{Badge-0881d386.js.map → Badge-0beeb09e.js.map} +1 -1
  3. package/amd/BaseButton-a31275cc.js +2 -0
  4. package/amd/{BaseButton-c6deca8c.js.map → BaseButton-a31275cc.js.map} +1 -1
  5. package/amd/Button-26513e96.js +2 -0
  6. package/amd/{Button-18083439.js.map → Button-26513e96.js.map} +1 -1
  7. package/amd/Chip-a71f9224.js +2 -0
  8. package/amd/{Chip-d8fcbe0a.js.map → Chip-a71f9224.js.map} +1 -1
  9. package/amd/ClearIcon-ee6994a4.js +2 -0
  10. package/amd/{ClearIcon-7e5374d7.js.map → ClearIcon-ee6994a4.js.map} +1 -1
  11. package/amd/Collection-805cf4b4.js +2 -0
  12. package/amd/{Collection-0cd076bf.js.map → Collection-805cf4b4.js.map} +1 -1
  13. package/amd/ComponentMessage-9e802f39.js +2 -0
  14. package/amd/{ComponentMessage-3a247b9a.js.map → ComponentMessage-9e802f39.js.map} +1 -1
  15. package/amd/ComponentMessageContainer-2bfa2078.js +2 -0
  16. package/amd/{ComponentMessageContainer-eaa98f45.js.map → ComponentMessageContainer-2bfa2078.js.map} +1 -1
  17. package/amd/Divider-9262e69a.js +2 -0
  18. package/amd/{Divider-6855675c.js.map → Divider-9262e69a.js.map} +1 -1
  19. package/amd/FilePicker-18a92512.js +2 -0
  20. package/amd/{FilePicker-22dcb644.js.map → FilePicker-18a92512.js.map} +1 -1
  21. package/amd/{Flex-0dec0de8.js → Flex-bfc6c229.js} +2 -2
  22. package/amd/{Flex-0dec0de8.js.map → Flex-bfc6c229.js.map} +1 -1
  23. package/amd/Floating-863a4a52.js +2 -0
  24. package/amd/{Floating-a320db48.js.map → Floating-863a4a52.js.map} +1 -1
  25. package/amd/FocusTrap-4796ed88.js +2 -0
  26. package/amd/{FocusTrap-444cf340.js.map → FocusTrap-4796ed88.js.map} +1 -1
  27. package/amd/FormControlUtils-4236f687.js +2 -0
  28. package/amd/{FormControlUtils-d6f8680e.js.map → FormControlUtils-4236f687.js.map} +1 -1
  29. package/amd/Heading-2a0e8b5d.js +2 -0
  30. package/amd/{Heading-b2b87148.js.map → Heading-2a0e8b5d.js.map} +1 -1
  31. package/amd/HiddenAccessible-4801c573.js +2 -0
  32. package/amd/{HiddenAccessible-061a4f41.js.map → HiddenAccessible-4801c573.js.map} +1 -1
  33. package/amd/HighlightText-1bbd084b.js +2 -0
  34. package/amd/{HighlightText-a2b5f4e4.js.map → HighlightText-1bbd084b.js.map} +1 -1
  35. package/amd/Icon-66acac47.js +2 -0
  36. package/amd/{Icon-87f4ca0b.js.map → Icon-66acac47.js.map} +1 -1
  37. package/amd/Indexer-88e5debf.js +2 -0
  38. package/amd/{Indexer-2b266287.js.map → Indexer-88e5debf.js.map} +1 -1
  39. package/amd/InlineHelpSource-87132e33.js +2 -0
  40. package/amd/{InlineHelpSource-7fec4994.js.map → InlineHelpSource-87132e33.js.map} +1 -1
  41. package/amd/Link-f42b6199.js +2 -0
  42. package/amd/{Link-4a365734.js.map → Link-f42b6199.js.map} +1 -1
  43. package/amd/List-468ffcb6.js +2 -0
  44. package/amd/{List-56a1055e.js.map → List-468ffcb6.js.map} +1 -1
  45. package/amd/ListItemTextLayout-44f494ea.js +2 -0
  46. package/amd/{ListItemTextLayout-fb9952bb.js.map → ListItemTextLayout-44f494ea.js.map} +1 -1
  47. package/amd/ListView-a4690952.js +2 -0
  48. package/amd/{ListView-6a3088e3.js.map → ListView-a4690952.js.map} +1 -1
  49. package/amd/LoadMoreCollection-b395a4ad.js +2 -0
  50. package/amd/{LoadMoreCollection-60a7b2a5.js.map → LoadMoreCollection-b395a4ad.js.map} +1 -1
  51. package/amd/Menu-5a5220fc.js +2 -0
  52. package/amd/{Menu-7882480e.js.map → Menu-5a5220fc.js.map} +1 -1
  53. package/amd/MenuDivider-a325668f.js +2 -0
  54. package/amd/{MenuDivider-eafa71e0.js.map → MenuDivider-a325668f.js.map} +1 -1
  55. package/amd/MenuItem-884f0dd4.js +2 -0
  56. package/amd/{MenuItem-c03348c5.js.map → MenuItem-884f0dd4.js.map} +1 -1
  57. package/amd/Message.types-eb760bd7.js +2 -0
  58. package/amd/{Message.types-2209616d.js.map → Message.types-eb760bd7.js.map} +1 -1
  59. package/amd/MessageCloseButton-8366a158.js +2 -0
  60. package/amd/{MessageCloseButton-c76a52a8.js.map → MessageCloseButton-8366a158.js.map} +1 -1
  61. package/amd/MessageDetail-d500a9a3.js +2 -0
  62. package/amd/{MessageDetail-43b9aea2.js.map → MessageDetail-d500a9a3.js.map} +1 -1
  63. package/amd/MessageFormattingUtils-bdfaac26.js +2 -0
  64. package/amd/{MessageFormattingUtils-b6297ef3.js.map → MessageFormattingUtils-bdfaac26.js.map} +1 -1
  65. package/amd/MessageLayer-21a1fac3.js +2 -0
  66. package/amd/{MessageLayer-75166056.js.map → MessageLayer-21a1fac3.js.map} +1 -1
  67. package/amd/MessageStartIcon-20e17ea1.js +2 -0
  68. package/amd/{MessageStartIcon-6ef050cb.js.map → MessageStartIcon-20e17ea1.js.map} +1 -1
  69. package/amd/MessageSummary-c91f9b00.js +2 -0
  70. package/amd/{MessageSummary-6829e689.js.map → MessageSummary-c91f9b00.js.map} +1 -1
  71. package/amd/MessageTimestamp-de77475d.js +2 -0
  72. package/amd/{MessageTimestamp-663c8997.js.map → MessageTimestamp-de77475d.js.map} +1 -1
  73. package/amd/MessageToast-c1228272.js +2 -0
  74. package/amd/{MessageToast-104da69d.js.map → MessageToast-c1228272.js.map} +1 -1
  75. package/amd/MessageUtils-8216ac4e.js +2 -0
  76. package/amd/{MessageUtils-d33dd1be.js.map → MessageUtils-8216ac4e.js.map} +1 -1
  77. package/amd/MessagesManager-615b69fb.js +2 -0
  78. package/amd/MessagesManager-615b69fb.js.map +1 -0
  79. package/amd/MeterCircle-f142cd7b.js +2 -0
  80. package/amd/{MeterCircle-da06e4f7.js.map → MeterCircle-f142cd7b.js.map} +1 -1
  81. package/amd/Modal-ce6f32c7.js +2 -0
  82. package/amd/{Modal-b06cc4b4.js.map → Modal-ce6f32c7.js.map} +1 -1
  83. package/amd/NumberInputText-7d1a99a2.js +2 -0
  84. package/amd/{NumberInputText-bf17d6e8.js.map → NumberInputText-7d1a99a2.js.map} +1 -1
  85. package/amd/PRIVATE_Collection.js +1 -1
  86. package/amd/PRIVATE_List.css +15 -15
  87. package/amd/PRIVATE_List.js +1 -1
  88. package/amd/PRIVATE_Message.css +27 -27
  89. package/amd/PRIVATE_Message.js +1 -1
  90. package/amd/PRIVATE_Message.js.map +1 -1
  91. package/amd/PRIVATE_MessageLayer.css +7 -7
  92. package/amd/PRIVATE_MessageLayer.js +1 -1
  93. package/amd/PRIVATE_Meter.js +1 -1
  94. package/amd/PRIVATE_Meter.js.map +1 -1
  95. package/amd/PRIVATE_SelectCommon.css +13 -13
  96. package/amd/PRIVATE_SelectCommon.js +1 -1
  97. package/amd/PRIVATE_SelectCommon.js.map +1 -1
  98. package/amd/PRIVATE_TransitionGroup.js +1 -1
  99. package/amd/PRIVATE_TransitionGroup.js.map +1 -1
  100. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  101. package/amd/ReadonlyTextFieldInput-55011079.js +2 -0
  102. package/amd/{ReadonlyTextFieldInput-575ef738.js.map → ReadonlyTextFieldInput-55011079.js.map} +1 -1
  103. package/amd/{SelectMenuItem-9003f5f7.js → SelectMenuItem-0dccca8f.js} +2 -2
  104. package/amd/{SelectMenuItem-9003f5f7.js.map → SelectMenuItem-0dccca8f.js.map} +1 -1
  105. package/amd/SelectMultiple-19081cd1.js +2 -0
  106. package/amd/{SelectMultiple-b841e678.js.map → SelectMultiple-19081cd1.js.map} +1 -1
  107. package/amd/SelectSingle-fdcd29a7.js +2 -0
  108. package/amd/{SelectSingle-b6a88f0f.js.map → SelectSingle-fdcd29a7.js.map} +1 -1
  109. package/amd/{Skeleton-6261f735.js → Skeleton-3ccbc4fc.js} +2 -2
  110. package/amd/{Skeleton-6261f735.js.map → Skeleton-3ccbc4fc.js.map} +1 -1
  111. package/amd/{Spacer-e92cba7a.js → Spacer-da4de41b.js} +2 -2
  112. package/amd/{Spacer-e92cba7a.js.map → Spacer-da4de41b.js.map} +1 -1
  113. package/amd/SplitMenuButton-3ba67def.js +2 -0
  114. package/amd/{SplitMenuButton-238f2539.js.map → SplitMenuButton-3ba67def.js.map} +1 -1
  115. package/amd/Text-0f26039f.js +2 -0
  116. package/amd/{Text-4fcf43f2.js.map → Text-0f26039f.js.map} +1 -1
  117. package/amd/TextArea-5c9e42d9.js +2 -0
  118. package/amd/{TextArea-6a820048.js.map → TextArea-5c9e42d9.js.map} +1 -1
  119. package/amd/TextAreaAutosize-5e616225.js +2 -0
  120. package/amd/{TextAreaAutosize-f84225fb.js.map → TextAreaAutosize-5e616225.js.map} +1 -1
  121. package/amd/TextFieldInput-bc03d412.js +2 -0
  122. package/amd/{TextFieldInput-e0759ad6.js.map → TextFieldInput-bc03d412.js.map} +1 -1
  123. package/amd/UNSAFE_AspectRatio.css +1 -1
  124. package/amd/UNSAFE_AspectRatio.js +1 -1
  125. package/amd/UNSAFE_AspectRatio.js.map +1 -1
  126. package/amd/UNSAFE_Avatar.css +8 -8
  127. package/amd/UNSAFE_Avatar.js +1 -1
  128. package/amd/UNSAFE_Avatar.js.map +1 -1
  129. package/amd/UNSAFE_Badge.css +13 -13
  130. package/amd/UNSAFE_Badge.js +1 -1
  131. package/amd/UNSAFE_BaseButton.css +15 -15
  132. package/amd/UNSAFE_BaseButton.js +1 -1
  133. package/amd/UNSAFE_Button.css +8 -8
  134. package/amd/UNSAFE_Button.js +1 -1
  135. package/amd/UNSAFE_Center.js +1 -1
  136. package/amd/UNSAFE_Center.js.map +1 -1
  137. package/amd/UNSAFE_Chip.css +7 -7
  138. package/amd/UNSAFE_Chip.js +1 -1
  139. package/amd/UNSAFE_Collapsible.css +8 -8
  140. package/amd/UNSAFE_Collapsible.js +1 -1
  141. package/amd/UNSAFE_Collapsible.js.map +1 -1
  142. package/amd/UNSAFE_Collection.js +1 -1
  143. package/amd/UNSAFE_ComponentMessage.css +2 -2
  144. package/amd/UNSAFE_ComponentMessage.js +1 -1
  145. package/amd/UNSAFE_Divider.css +1 -1
  146. package/amd/UNSAFE_Divider.js +1 -1
  147. package/amd/UNSAFE_EmptyList.js +1 -1
  148. package/amd/UNSAFE_EmptyList.js.map +1 -1
  149. package/amd/UNSAFE_Environment.js +1 -1
  150. package/amd/UNSAFE_Environment.js.map +1 -1
  151. package/amd/UNSAFE_FilePicker.css +6 -6
  152. package/amd/UNSAFE_FilePicker.js +1 -1
  153. package/amd/UNSAFE_Flex.css +2 -2
  154. package/amd/UNSAFE_Flex.js +1 -1
  155. package/amd/UNSAFE_Floating.js +1 -1
  156. package/amd/UNSAFE_FocusTrap.css +2 -2
  157. package/amd/UNSAFE_FocusTrap.js +1 -1
  158. package/amd/UNSAFE_Grid.css +1 -1
  159. package/amd/UNSAFE_Grid.js +1 -1
  160. package/amd/UNSAFE_Grid.js.map +1 -1
  161. package/amd/UNSAFE_Heading.css +9 -9
  162. package/amd/UNSAFE_Heading.js +1 -1
  163. package/amd/UNSAFE_HiddenAccessible.css +1 -1
  164. package/amd/UNSAFE_HiddenAccessible.js +1 -1
  165. package/amd/UNSAFE_HighlightText.css +1 -1
  166. package/amd/UNSAFE_HighlightText.js +1 -1
  167. package/amd/UNSAFE_Icon.css +21 -21
  168. package/amd/UNSAFE_Icon.js +1 -1
  169. package/amd/UNSAFE_Icon.js.map +1 -1
  170. package/amd/UNSAFE_Icons.js +1 -1
  171. package/amd/UNSAFE_Indexer.css +7 -7
  172. package/amd/UNSAFE_Indexer.js +1 -1
  173. package/amd/UNSAFE_InputPassword.css +1 -1
  174. package/amd/UNSAFE_InputPassword.js +1 -1
  175. package/amd/UNSAFE_InputPassword.js.map +1 -1
  176. package/amd/UNSAFE_InputText.css +1 -1
  177. package/amd/UNSAFE_InputText.js +1 -1
  178. package/amd/UNSAFE_InputText.js.map +1 -1
  179. package/amd/UNSAFE_Label.css +13 -13
  180. package/amd/UNSAFE_Label.js +1 -1
  181. package/amd/UNSAFE_Label.js.map +1 -1
  182. package/amd/UNSAFE_LabelValueLayout.css +9 -9
  183. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  184. package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
  185. package/amd/UNSAFE_Layer.js +1 -1
  186. package/amd/UNSAFE_Layer.js.map +1 -1
  187. package/amd/UNSAFE_Link.css +5 -5
  188. package/amd/UNSAFE_Link.js +1 -1
  189. package/amd/UNSAFE_ListItemLayout.css +9 -9
  190. package/amd/UNSAFE_ListItemLayout.js +1 -1
  191. package/amd/UNSAFE_ListView.js +1 -1
  192. package/amd/UNSAFE_LiveRegion.css +1 -1
  193. package/amd/UNSAFE_LiveRegion.js +1 -1
  194. package/amd/UNSAFE_LiveRegion.js.map +1 -1
  195. package/amd/UNSAFE_LoadMoreCollection.js +1 -1
  196. package/amd/UNSAFE_Menu.css +17 -17
  197. package/amd/UNSAFE_Menu.js +1 -1
  198. package/amd/UNSAFE_MessageBanner.js +1 -1
  199. package/amd/UNSAFE_MessageBanner.js.map +1 -1
  200. package/amd/UNSAFE_MessageToast.css +1 -1
  201. package/amd/UNSAFE_MessageToast.js +1 -1
  202. package/amd/UNSAFE_MeterBar.css +43 -43
  203. package/amd/UNSAFE_MeterBar.js +1 -1
  204. package/amd/UNSAFE_MeterBar.js.map +1 -1
  205. package/amd/UNSAFE_MeterCircle.css +46 -46
  206. package/amd/UNSAFE_MeterCircle.js +1 -1
  207. package/amd/UNSAFE_Modal.css +3 -3
  208. package/amd/UNSAFE_Modal.js +1 -1
  209. package/amd/UNSAFE_NumberInputText.js +1 -1
  210. package/amd/UNSAFE_PrefixSuffix.css +8 -8
  211. package/amd/UNSAFE_PrefixSuffix.js +1 -1
  212. package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
  213. package/amd/UNSAFE_ProgressBar.css +6 -6
  214. package/amd/UNSAFE_ProgressBar.js +1 -1
  215. package/amd/UNSAFE_ProgressBar.js.map +1 -1
  216. package/amd/UNSAFE_ProgressCircle.css +6 -6
  217. package/amd/UNSAFE_ProgressCircle.js +1 -1
  218. package/amd/UNSAFE_ProgressCircle.js.map +1 -1
  219. package/amd/UNSAFE_RatingGauge.css +20 -20
  220. package/amd/UNSAFE_RatingGauge.js +1 -1
  221. package/amd/UNSAFE_RatingGauge.js.map +1 -1
  222. package/amd/UNSAFE_SelectMultiple.css +1 -1
  223. package/amd/UNSAFE_SelectMultiple.js +1 -1
  224. package/amd/UNSAFE_SelectSingle.js +1 -1
  225. package/amd/UNSAFE_Selector.css +5 -5
  226. package/amd/UNSAFE_Selector.js +1 -1
  227. package/amd/UNSAFE_Selector.js.map +1 -1
  228. package/amd/UNSAFE_Skeleton.css +1 -1
  229. package/amd/UNSAFE_Skeleton.js +1 -1
  230. package/amd/UNSAFE_Spacer.js +1 -1
  231. package/amd/UNSAFE_SplitMenuButton.css +5 -5
  232. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  233. package/amd/UNSAFE_Text.css +25 -25
  234. package/amd/UNSAFE_Text.js +1 -1
  235. package/amd/UNSAFE_TextArea.css +3 -3
  236. package/amd/UNSAFE_TextArea.js +1 -1
  237. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  238. package/amd/UNSAFE_TextField.css +58 -58
  239. package/amd/UNSAFE_TextField.js +1 -1
  240. package/amd/UNSAFE_TextField.js.map +1 -1
  241. package/amd/UNSAFE_ThemedIcons.js +1 -1
  242. package/amd/UNSAFE_UserAssistance.css +8 -8
  243. package/amd/UNSAFE_UserAssistance.js +1 -1
  244. package/amd/UNSAFE_UserAssistance.js.map +1 -1
  245. package/amd/UNSAFE_View.js +1 -1
  246. package/amd/UNSAFE_View.js.map +1 -1
  247. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  248. package/amd/UNSAFE_WindowOverlay.js +1 -1
  249. package/amd/UNSAFE_WindowOverlay.js.map +1 -1
  250. package/amd/VirtualizedCollection-83b0641b.js +2 -0
  251. package/amd/{VirtualizedCollection-45f2c32e.js.map → VirtualizedCollection-83b0641b.js.map} +1 -1
  252. package/amd/VirtualizedListView-c12f7343.js +2 -0
  253. package/amd/{VirtualizedListView-22a5c6af.js.map → VirtualizedListView-c12f7343.js.map} +1 -1
  254. package/amd/_curry1-9eeaf6ed.js +2 -0
  255. package/amd/{_curry1-b9493cf6.js.map → _curry1-9eeaf6ed.js.map} +1 -1
  256. package/amd/_curry2-466cc994.js +2 -0
  257. package/amd/{_curry2-b02f6247.js.map → _curry2-466cc994.js.map} +1 -1
  258. package/amd/_curry3-167fa665.js +2 -0
  259. package/amd/{_curry3-8ffdde1d.js.map → _curry3-167fa665.js.map} +1 -1
  260. package/amd/_has-aa07e02d.js +2 -0
  261. package/amd/{_has-fad415e9.js.map → _has-aa07e02d.js.map} +1 -1
  262. package/amd/classNames-e580c7c7.js +2 -0
  263. package/amd/{classNames-3c307969.js.map → classNames-e580c7c7.js.map} +1 -1
  264. package/amd/clientHints-914fecb1.js +2 -0
  265. package/amd/{clientHints-7d8b1c52.js.map → clientHints-914fecb1.js.map} +1 -1
  266. package/amd/flexbox-37da5c1b.js +2 -0
  267. package/amd/{flexbox-b8de8bb4.js.map → flexbox-37da5c1b.js.map} +1 -1
  268. package/amd/flexitem-f592cd81.js +2 -0
  269. package/amd/{flexitem-d8628091.js.map → flexitem-f592cd81.js.map} +1 -1
  270. package/amd/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  271. package/amd/hooks/PRIVATE_useCollectionFocusRing.js.map +1 -1
  272. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  273. package/amd/hooks/PRIVATE_useCurrentKey.js.map +1 -1
  274. package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -1
  275. package/amd/hooks/PRIVATE_useDvtMeterEvents.js.map +1 -1
  276. package/amd/hooks/PRIVATE_useItemAction.js +1 -1
  277. package/amd/hooks/PRIVATE_useItemAction.js.map +1 -1
  278. package/amd/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  279. package/amd/hooks/PRIVATE_useMessagesFocusManager.js.map +1 -1
  280. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  281. package/amd/hooks/PRIVATE_useSelection.js.map +1 -1
  282. package/amd/hooks/PRIVATE_useSingleSelection.js +1 -1
  283. package/amd/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  284. package/amd/hooks/PRIVATE_useTabbableModeSet.js.map +1 -1
  285. package/amd/hooks/UNSAFE_useActionable.js +1 -1
  286. package/amd/hooks/UNSAFE_useActionable.js.map +1 -1
  287. package/amd/hooks/UNSAFE_useActive.js +1 -1
  288. package/amd/hooks/UNSAFE_useActive.js.map +1 -1
  289. package/amd/hooks/UNSAFE_useAnimation.js +1 -1
  290. package/amd/hooks/UNSAFE_useBreakpointValues.js +1 -1
  291. package/amd/hooks/UNSAFE_useBreakpointValues.js.map +1 -1
  292. package/amd/hooks/UNSAFE_useBreakpoints.js +1 -1
  293. package/amd/hooks/UNSAFE_useBreakpoints.js.map +1 -1
  294. package/amd/hooks/UNSAFE_useClearIcon.js +1 -1
  295. package/amd/hooks/UNSAFE_useClearIcon.js.map +1 -1
  296. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  297. package/amd/hooks/UNSAFE_useColorScheme.js.map +1 -1
  298. package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  299. package/amd/hooks/UNSAFE_useContainerBreakpointValues.js.map +1 -1
  300. package/amd/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  301. package/amd/hooks/UNSAFE_useContainerBreakpoints.js.map +1 -1
  302. package/amd/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  303. package/amd/hooks/UNSAFE_useCurrentValueReducer.js.map +1 -1
  304. package/amd/hooks/UNSAFE_useDebounce.js +1 -1
  305. package/amd/hooks/UNSAFE_useDebounce.js.map +1 -1
  306. package/amd/hooks/UNSAFE_useFloating.js +1 -1
  307. package/amd/hooks/UNSAFE_useFocus.js +1 -1
  308. package/amd/hooks/UNSAFE_useFocus.js.map +1 -1
  309. package/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
  310. package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
  311. package/amd/hooks/UNSAFE_useFocusableTextField.js.map +1 -1
  312. package/amd/hooks/UNSAFE_useFormContext.js +1 -1
  313. package/amd/hooks/UNSAFE_useFormContext.js.map +1 -1
  314. package/amd/hooks/UNSAFE_useFormFieldContext.js +1 -1
  315. package/amd/hooks/UNSAFE_useFormFieldContext.js.map +1 -1
  316. package/amd/hooks/UNSAFE_useFormVariantContext.js +1 -1
  317. package/amd/hooks/UNSAFE_useFormVariantContext.js.map +1 -1
  318. package/amd/hooks/UNSAFE_useHover.js +1 -1
  319. package/amd/hooks/UNSAFE_useHover.js.map +1 -1
  320. package/amd/hooks/UNSAFE_useId.js +1 -1
  321. package/amd/hooks/UNSAFE_useId.js.map +1 -1
  322. package/amd/hooks/UNSAFE_useLengthFilter.js +1 -1
  323. package/amd/hooks/UNSAFE_useLengthFilter.js.map +1 -1
  324. package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  325. package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js.map +1 -1
  326. package/amd/hooks/UNSAFE_useLongPress.js +1 -1
  327. package/amd/hooks/UNSAFE_useLongPress.js.map +1 -1
  328. package/amd/hooks/UNSAFE_useMessagesContext.js +1 -1
  329. package/amd/hooks/UNSAFE_useMessagesContext.js.map +1 -1
  330. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  331. package/amd/hooks/UNSAFE_useOutsideClick.js.map +1 -1
  332. package/amd/hooks/UNSAFE_usePan.js +1 -1
  333. package/amd/hooks/UNSAFE_usePan.js.map +1 -1
  334. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  335. package/amd/hooks/UNSAFE_usePrefixSuffix.js.map +1 -1
  336. package/amd/hooks/UNSAFE_usePress.js +1 -1
  337. package/amd/hooks/UNSAFE_usePress.js.map +1 -1
  338. package/amd/hooks/UNSAFE_useScale.js +1 -1
  339. package/amd/hooks/UNSAFE_useScale.js.map +1 -1
  340. package/amd/hooks/UNSAFE_useSwipe.js +1 -1
  341. package/amd/hooks/UNSAFE_useSwipe.js.map +1 -1
  342. package/amd/hooks/UNSAFE_useTabbableMode.js +1 -1
  343. package/amd/hooks/UNSAFE_useTabbableMode.js.map +1 -1
  344. package/amd/hooks/UNSAFE_useTap.js +1 -1
  345. package/amd/hooks/UNSAFE_useTap.js.map +1 -1
  346. package/amd/hooks/UNSAFE_useTextField.js +1 -1
  347. package/amd/hooks/UNSAFE_useTextField.js.map +1 -1
  348. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  349. package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js.map +1 -1
  350. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  351. package/amd/hooks/UNSAFE_useTheme.js.map +1 -1
  352. package/amd/hooks/UNSAFE_useTimer.js +1 -1
  353. package/amd/hooks/UNSAFE_useTimer.js.map +1 -1
  354. package/amd/hooks/UNSAFE_useToggle.js +1 -1
  355. package/amd/hooks/UNSAFE_useToggle.js.map +1 -1
  356. package/amd/hooks/UNSAFE_useTooltip.css +4 -4
  357. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  358. package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
  359. package/amd/hooks/UNSAFE_useTouch.js +1 -1
  360. package/amd/hooks/UNSAFE_useTouch.js.map +1 -1
  361. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  362. package/amd/hooks/UNSAFE_useTranslationBundle.js.map +1 -1
  363. package/amd/hooks/UNSAFE_useUncontrolledState.js +1 -1
  364. package/amd/hooks/UNSAFE_useUncontrolledState.js.map +1 -1
  365. package/amd/hooks/UNSAFE_useUser.js +1 -1
  366. package/amd/hooks/UNSAFE_useUser.js.map +1 -1
  367. package/amd/hooks/UNSAFE_useViewportIntersect.js +1 -1
  368. package/amd/hooks/UNSAFE_useViewportIntersect.js.map +1 -1
  369. package/amd/index-03ab344e.js +2 -0
  370. package/amd/{index-55b2db15.js.map → index-03ab344e.js.map} +1 -1
  371. package/amd/index-17cde748.js +2 -0
  372. package/amd/{index-2f5333e8.js.map → index-17cde748.js.map} +1 -1
  373. package/amd/index-4d399da7.js +2 -0
  374. package/amd/{index-bd92b0b3.js.map → index-4d399da7.js.map} +1 -1
  375. package/amd/keys-992a0824.js +2 -0
  376. package/amd/{keys-9d7cdf1f.js.map → keys-992a0824.js.map} +1 -1
  377. package/amd/listViewSelectionTests-27c184ae.js +2 -0
  378. package/amd/{listViewSelectionTests-b85b7850.js.map → listViewSelectionTests-27c184ae.js.map} +1 -1
  379. package/amd/listViewTabbableModeTests-b40466e1.js +2 -0
  380. package/amd/{listViewTabbableModeTests-7c0d5a88.js.map → listViewTabbableModeTests-b40466e1.js.map} +1 -1
  381. package/amd/listViewTestFixtures-fb5fc936.js +2 -0
  382. package/amd/{listViewTestFixtures-027f1a07.js.map → listViewTestFixtures-fb5fc936.js.map} +1 -1
  383. package/amd/menuTestsUtils-22bd8f7b.js +2 -0
  384. package/amd/{menuTestsUtils-6cfb2d03.js.map → menuTestsUtils-22bd8f7b.js.map} +1 -1
  385. package/amd/resources/nls/ar/bundle.js +1 -1
  386. package/amd/resources/nls/ar/bundle.js.map +1 -1
  387. package/amd/resources/nls/ar-XB/bundle.js +1 -1
  388. package/amd/resources/nls/ar-XB/bundle.js.map +1 -1
  389. package/amd/resources/nls/bg/bundle.js +1 -1
  390. package/amd/resources/nls/bg/bundle.js.map +1 -1
  391. package/amd/resources/nls/bs/bundle.js +1 -1
  392. package/amd/resources/nls/bs/bundle.js.map +1 -1
  393. package/amd/resources/nls/bs-Cyrl/bundle.js +1 -1
  394. package/amd/resources/nls/bs-Cyrl/bundle.js.map +1 -1
  395. package/amd/resources/nls/bundle.js +1 -1
  396. package/amd/resources/nls/bundle.js.map +1 -1
  397. package/amd/resources/nls/cs/bundle.js +1 -1
  398. package/amd/resources/nls/cs/bundle.js.map +1 -1
  399. package/amd/resources/nls/da/bundle.js +1 -1
  400. package/amd/resources/nls/da/bundle.js.map +1 -1
  401. package/amd/resources/nls/de/bundle.js +1 -1
  402. package/amd/resources/nls/de/bundle.js.map +1 -1
  403. package/amd/resources/nls/el/bundle.js +1 -1
  404. package/amd/resources/nls/el/bundle.js.map +1 -1
  405. package/amd/resources/nls/en/bundle.js +1 -1
  406. package/amd/resources/nls/en/bundle.js.map +1 -1
  407. package/amd/resources/nls/en-XA/bundle.js +1 -1
  408. package/amd/resources/nls/en-XA/bundle.js.map +1 -1
  409. package/amd/resources/nls/en-XC/bundle.js +1 -1
  410. package/amd/resources/nls/en-XC/bundle.js.map +1 -1
  411. package/amd/resources/nls/es/bundle.js +1 -1
  412. package/amd/resources/nls/es/bundle.js.map +1 -1
  413. package/amd/resources/nls/et/bundle.js +1 -1
  414. package/amd/resources/nls/et/bundle.js.map +1 -1
  415. package/amd/resources/nls/fi/bundle.js +1 -1
  416. package/amd/resources/nls/fi/bundle.js.map +1 -1
  417. package/amd/resources/nls/fr/bundle.js +1 -1
  418. package/amd/resources/nls/fr/bundle.js.map +1 -1
  419. package/amd/resources/nls/fr-CA/bundle.js +1 -1
  420. package/amd/resources/nls/fr-CA/bundle.js.map +1 -1
  421. package/amd/resources/nls/he/bundle.js +1 -1
  422. package/amd/resources/nls/he/bundle.js.map +1 -1
  423. package/amd/resources/nls/hr/bundle.js +1 -1
  424. package/amd/resources/nls/hr/bundle.js.map +1 -1
  425. package/amd/resources/nls/hu/bundle.js +1 -1
  426. package/amd/resources/nls/hu/bundle.js.map +1 -1
  427. package/amd/resources/nls/is/bundle.js +1 -1
  428. package/amd/resources/nls/is/bundle.js.map +1 -1
  429. package/amd/resources/nls/it/bundle.js +1 -1
  430. package/amd/resources/nls/it/bundle.js.map +1 -1
  431. package/amd/resources/nls/ja/bundle.js +1 -1
  432. package/amd/resources/nls/ja/bundle.js.map +1 -1
  433. package/amd/resources/nls/ko/bundle.js +1 -1
  434. package/amd/resources/nls/ko/bundle.js.map +1 -1
  435. package/amd/resources/nls/lt/bundle.js +1 -1
  436. package/amd/resources/nls/lt/bundle.js.map +1 -1
  437. package/amd/resources/nls/lv/bundle.js +1 -1
  438. package/amd/resources/nls/lv/bundle.js.map +1 -1
  439. package/amd/resources/nls/ms/bundle.js +1 -1
  440. package/amd/resources/nls/ms/bundle.js.map +1 -1
  441. package/amd/resources/nls/nl/bundle.js +1 -1
  442. package/amd/resources/nls/nl/bundle.js.map +1 -1
  443. package/amd/resources/nls/no/bundle.js +1 -1
  444. package/amd/resources/nls/no/bundle.js.map +1 -1
  445. package/amd/resources/nls/pl/bundle.js +1 -1
  446. package/amd/resources/nls/pl/bundle.js.map +1 -1
  447. package/amd/resources/nls/pt/bundle.js +1 -1
  448. package/amd/resources/nls/pt/bundle.js.map +1 -1
  449. package/amd/resources/nls/pt-PT/bundle.js +1 -1
  450. package/amd/resources/nls/pt-PT/bundle.js.map +1 -1
  451. package/amd/resources/nls/ro/bundle.js +1 -1
  452. package/amd/resources/nls/ro/bundle.js.map +1 -1
  453. package/amd/resources/nls/ru/bundle.js +1 -1
  454. package/amd/resources/nls/ru/bundle.js.map +1 -1
  455. package/amd/resources/nls/sk/bundle.js +1 -1
  456. package/amd/resources/nls/sk/bundle.js.map +1 -1
  457. package/amd/resources/nls/sl/bundle.js +1 -1
  458. package/amd/resources/nls/sl/bundle.js.map +1 -1
  459. package/amd/resources/nls/sr/bundle.js +1 -1
  460. package/amd/resources/nls/sr/bundle.js.map +1 -1
  461. package/amd/resources/nls/sr-Latn/bundle.js +1 -1
  462. package/amd/resources/nls/sr-Latn/bundle.js.map +1 -1
  463. package/amd/resources/nls/supportedLocales.js +1 -1
  464. package/amd/resources/nls/supportedLocales.js.map +1 -1
  465. package/amd/resources/nls/sv/bundle.js +1 -1
  466. package/amd/resources/nls/sv/bundle.js.map +1 -1
  467. package/amd/resources/nls/th/bundle.js +1 -1
  468. package/amd/resources/nls/th/bundle.js.map +1 -1
  469. package/amd/resources/nls/tr/bundle.js +1 -1
  470. package/amd/resources/nls/tr/bundle.js.map +1 -1
  471. package/amd/resources/nls/uk/bundle.js +1 -1
  472. package/amd/resources/nls/uk/bundle.js.map +1 -1
  473. package/amd/resources/nls/vi/bundle.js +1 -1
  474. package/amd/resources/nls/vi/bundle.js.map +1 -1
  475. package/amd/resources/nls/zh-Hans/bundle.js +1 -1
  476. package/amd/resources/nls/zh-Hans/bundle.js.map +1 -1
  477. package/amd/resources/nls/zh-Hant/bundle.js +1 -1
  478. package/amd/resources/nls/zh-Hant/bundle.js.map +1 -1
  479. package/amd/stringUtils-e3a47803.js +2 -0
  480. package/amd/{stringUtils-48915fb5.js.map → stringUtils-e3a47803.js.map} +1 -1
  481. package/amd/testHelpers-5a1300a8.js +2 -0
  482. package/amd/{testHelpers-327fc97e.js.map → testHelpers-5a1300a8.js.map} +1 -1
  483. package/amd/translationBundle.js +1 -1
  484. package/amd/translationBundle.js.map +1 -1
  485. package/amd/tslib.es6-fa3971d7.js +2 -0
  486. package/amd/{tslib.es6-d070fafc.js.map → tslib.es6-fa3971d7.js.map} +1 -1
  487. package/amd/useAnimation-215b2be2.js +2 -0
  488. package/amd/{useAnimation-8e4e9999.js.map → useAnimation-215b2be2.js.map} +1 -1
  489. package/amd/useFocusWithin-d77d235f.js +2 -0
  490. package/amd/{useFocusWithin-7378d9c7.js.map → useFocusWithin-d77d235f.js.map} +1 -1
  491. package/amd/useSingleSelection-11aca1fe.js +2 -0
  492. package/amd/{useSingleSelection-089373da.js.map → useSingleSelection-11aca1fe.js.map} +1 -1
  493. package/amd/utils/PRIVATE_clientHints.js +1 -1
  494. package/amd/utils/PRIVATE_collectionUtils.js +1 -1
  495. package/amd/utils/PRIVATE_collectionUtils.js.map +1 -1
  496. package/amd/utils/PRIVATE_dvtTestUtils.js +1 -1
  497. package/amd/utils/PRIVATE_dvtTestUtils.js.map +1 -1
  498. package/amd/utils/PRIVATE_floatingUtils.js +1 -1
  499. package/amd/utils/PRIVATE_floatingUtils.js.map +1 -1
  500. package/amd/utils/PRIVATE_meterUtils.js +1 -1
  501. package/amd/utils/PRIVATE_meterUtils.js.map +1 -1
  502. package/amd/utils/PRIVATE_refUtils.js +1 -1
  503. package/amd/utils/PRIVATE_refUtils.js.map +1 -1
  504. package/amd/utils/PRIVATE_tabbableUtils.js +1 -1
  505. package/amd/utils/PRIVATE_tabbableUtils.js.map +1 -1
  506. package/amd/utils/PRIVATE_timer.js +1 -1
  507. package/amd/utils/PRIVATE_timer.js.map +1 -1
  508. package/amd/utils/UNSAFE_arrayUtils.js +1 -1
  509. package/amd/utils/UNSAFE_arrayUtils.js.map +1 -1
  510. package/amd/utils/UNSAFE_attributeUtils.js +1 -1
  511. package/amd/utils/UNSAFE_classNames.js +1 -1
  512. package/amd/utils/UNSAFE_componentUtils.js +1 -1
  513. package/amd/utils/UNSAFE_componentUtils.js.map +1 -1
  514. package/amd/utils/UNSAFE_dataProvider.js +1 -1
  515. package/amd/utils/UNSAFE_filePickerUtils.js +1 -1
  516. package/amd/utils/UNSAFE_filePickerUtils.js.map +1 -1
  517. package/amd/utils/UNSAFE_getLocale.js +1 -1
  518. package/amd/utils/UNSAFE_getLocale.js.map +1 -1
  519. package/amd/utils/UNSAFE_interpolations/aria.js +1 -1
  520. package/amd/utils/UNSAFE_interpolations/aria.js.map +1 -1
  521. package/amd/utils/UNSAFE_interpolations/borders.js +1 -1
  522. package/amd/utils/UNSAFE_interpolations/borders.js.map +1 -1
  523. package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  524. package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
  525. package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  526. package/amd/utils/UNSAFE_interpolations/colors.js +1 -1
  527. package/amd/utils/UNSAFE_interpolations/colors.js.map +1 -1
  528. package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
  529. package/amd/utils/UNSAFE_interpolations/dimensions.js.map +1 -1
  530. package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -7
  531. package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
  532. package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -7
  533. package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
  534. package/amd/utils/UNSAFE_interpolations/grid.js +1 -1
  535. package/amd/utils/UNSAFE_interpolations/grid.js.map +1 -1
  536. package/amd/utils/UNSAFE_interpolations/griditem.js +1 -1
  537. package/amd/utils/UNSAFE_interpolations/griditem.js.map +1 -1
  538. package/amd/utils/UNSAFE_interpolations/padding.js +1 -1
  539. package/amd/utils/UNSAFE_interpolations/padding.js.map +1 -1
  540. package/amd/utils/UNSAFE_interpolations/text.css +3 -3
  541. package/amd/utils/UNSAFE_interpolations/text.js +1 -1
  542. package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
  543. package/amd/utils/UNSAFE_keys.js +1 -1
  544. package/amd/utils/UNSAFE_keys.js.map +1 -1
  545. package/amd/utils/UNSAFE_lengthFilter.js +1 -1
  546. package/amd/utils/UNSAFE_lengthFilter.js.map +1 -1
  547. package/amd/utils/UNSAFE_logger.js +1 -1
  548. package/amd/utils/UNSAFE_logger.js.map +1 -1
  549. package/amd/utils/UNSAFE_matchTranslationBundle.js +1 -1
  550. package/amd/utils/UNSAFE_matchTranslationBundle.js.map +1 -1
  551. package/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
  552. package/amd/utils/UNSAFE_mergeInterpolations.js.map +1 -1
  553. package/amd/utils/UNSAFE_mergeProps.js +1 -1
  554. package/amd/utils/UNSAFE_mergeProps.js.map +1 -1
  555. package/amd/utils/UNSAFE_meterTypes.js +1 -1
  556. package/amd/utils/UNSAFE_roles.js +1 -1
  557. package/amd/utils/UNSAFE_roles.js.map +1 -1
  558. package/amd/utils/UNSAFE_selectUtils.js +1 -1
  559. package/amd/utils/UNSAFE_size.js +1 -1
  560. package/amd/utils/UNSAFE_size.js.map +1 -1
  561. package/amd/utils/UNSAFE_soundUtils.js +1 -1
  562. package/amd/utils/UNSAFE_soundUtils.js.map +1 -1
  563. package/amd/utils/UNSAFE_stringUtils.js +1 -1
  564. package/amd/utils/UNSAFE_typeUtils.js +1 -1
  565. package/amd/utils/UNSAFE_units.js +1 -1
  566. package/amd/utils/UNSAFE_units.js.map +1 -1
  567. package/amd/utils/UNSAFE_valueUpdateDetail.js +1 -1
  568. package/cjs/{Badge-f8614033.js → Badge-d9c4a8ba.js} +16 -16
  569. package/cjs/{Badge-f8614033.js.map → Badge-d9c4a8ba.js.map} +1 -1
  570. package/cjs/{BaseButton-82e1ea19.js → BaseButton-0ce055c6.js} +20 -20
  571. package/cjs/{BaseButton-82e1ea19.js.map → BaseButton-0ce055c6.js.map} +1 -1
  572. package/cjs/{Button-b68878ba.js → Button-b654ca4f.js} +13 -13
  573. package/cjs/{Button-b68878ba.js.map → Button-b654ca4f.js.map} +1 -1
  574. package/cjs/{Chip-81ae6291.js → Chip-d1e3870e.js} +10 -10
  575. package/cjs/{Chip-81ae6291.js.map → Chip-d1e3870e.js.map} +1 -1
  576. package/cjs/{ClearIcon-e69da23b.js → ClearIcon-b0e427ef.js} +3 -3
  577. package/cjs/{ClearIcon-e69da23b.js.map → ClearIcon-b0e427ef.js.map} +1 -1
  578. package/cjs/{Collection-1173258f.js → Collection-2344ca28.js} +2 -2
  579. package/cjs/{Collection-1173258f.js.map → Collection-2344ca28.js.map} +1 -1
  580. package/cjs/{ComponentMessage-f6262ee7.js → ComponentMessage-e7f71599.js} +8 -8
  581. package/cjs/{ComponentMessage-f6262ee7.js.map → ComponentMessage-e7f71599.js.map} +1 -1
  582. package/cjs/{ComponentMessageContainer-010eb00c.js → ComponentMessageContainer-57ba740f.js} +5 -5
  583. package/cjs/{ComponentMessageContainer-010eb00c.js.map → ComponentMessageContainer-57ba740f.js.map} +1 -1
  584. package/cjs/{Divider-0d44dde4.js → Divider-128e7986.js} +3 -3
  585. package/cjs/{Divider-0d44dde4.js.map → Divider-128e7986.js.map} +1 -1
  586. package/cjs/{FilePicker-e75b1b30.js → FilePicker-1e7c4f54.js} +14 -14
  587. package/cjs/{FilePicker-e75b1b30.js.map → FilePicker-1e7c4f54.js.map} +1 -1
  588. package/cjs/{Flex-71c6255f.js → Flex-d2368fa3.js} +8 -8
  589. package/cjs/{Flex-71c6255f.js.map → Flex-d2368fa3.js.map} +1 -1
  590. package/cjs/{Floating-3eb600a1.js → Floating-55a84bdd.js} +3 -3
  591. package/cjs/{Floating-3eb600a1.js.map → Floating-55a84bdd.js.map} +1 -1
  592. package/cjs/{FocusTrap-242f0347.js → FocusTrap-8c2da94b.js} +5 -5
  593. package/cjs/{FocusTrap-242f0347.js.map → FocusTrap-8c2da94b.js.map} +1 -1
  594. package/cjs/{FormControlUtils-29dd821c.js → FormControlUtils-47865359.js} +5 -5
  595. package/cjs/{FormControlUtils-29dd821c.js.map → FormControlUtils-47865359.js.map} +1 -1
  596. package/cjs/{Heading-6926146e.js → Heading-0786cfb3.js} +13 -13
  597. package/cjs/{Heading-6926146e.js.map → Heading-0786cfb3.js.map} +1 -1
  598. package/cjs/{HiddenAccessible-d796baa9.js → HiddenAccessible-e18c325a.js} +3 -3
  599. package/cjs/{HiddenAccessible-d796baa9.js.map → HiddenAccessible-e18c325a.js.map} +1 -1
  600. package/cjs/{HighlightText-5e28cc92.js → HighlightText-8b9be0b1.js} +3 -3
  601. package/cjs/{HighlightText-5e28cc92.js.map → HighlightText-8b9be0b1.js.map} +1 -1
  602. package/cjs/{Icon-a21be510.js → Icon-a2aa2ed8.js} +25 -25
  603. package/cjs/{Icon-a21be510.js.map → Icon-a2aa2ed8.js.map} +1 -1
  604. package/cjs/{Indexer-cef1060d.js → Indexer-f445ef4a.js} +16 -16
  605. package/cjs/{Indexer-cef1060d.js.map → Indexer-f445ef4a.js.map} +1 -1
  606. package/cjs/{InlineHelpSource-0b33db42.js → InlineHelpSource-960e2a27.js} +3 -3
  607. package/cjs/{InlineHelpSource-0b33db42.js.map → InlineHelpSource-960e2a27.js.map} +1 -1
  608. package/cjs/{Link-e6a1f8c7.js → Link-0d8e7193.js} +8 -8
  609. package/cjs/{Link-e6a1f8c7.js.map → Link-0d8e7193.js.map} +1 -1
  610. package/cjs/{List-007d77af.js → List-d11db60b.js} +23 -23
  611. package/cjs/{List-007d77af.js.map → List-d11db60b.js.map} +1 -1
  612. package/cjs/{ListItemTextLayout-b553ae5f.js → ListItemTextLayout-f9b59d80.js} +13 -13
  613. package/cjs/{ListItemTextLayout-b553ae5f.js.map → ListItemTextLayout-f9b59d80.js.map} +1 -1
  614. package/cjs/{ListView-af3d5f2c.js → ListView-0aa87d3e.js} +3 -3
  615. package/cjs/{ListView-af3d5f2c.js.map → ListView-0aa87d3e.js.map} +1 -1
  616. package/cjs/{LoadMoreCollection-903ca14c.js → LoadMoreCollection-2d77ac1d.js} +3 -3
  617. package/cjs/{LoadMoreCollection-903ca14c.js.map → LoadMoreCollection-2d77ac1d.js.map} +1 -1
  618. package/cjs/{Menu-5a37d850.js → Menu-88ab3ec5.js} +6 -6
  619. package/cjs/{Menu-5a37d850.js.map → Menu-88ab3ec5.js.map} +1 -1
  620. package/cjs/{MenuDivider-60c0b01a.js → MenuDivider-8c74ab59.js} +4 -4
  621. package/cjs/{MenuDivider-60c0b01a.js.map → MenuDivider-8c74ab59.js.map} +1 -1
  622. package/cjs/{MenuItem-e771b8f1.js → MenuItem-673c72fb.js} +19 -19
  623. package/cjs/{MenuItem-e771b8f1.js.map → MenuItem-673c72fb.js.map} +1 -1
  624. package/cjs/{Message.types-8369755d.js → Message.types-b9106e5b.js} +2 -2
  625. package/cjs/{Message.types-8369755d.js.map → Message.types-b9106e5b.js.map} +1 -1
  626. package/cjs/{MessageCloseButton-f11fb2d5.js → MessageCloseButton-1f5f7aac.js} +9 -9
  627. package/cjs/{MessageCloseButton-f11fb2d5.js.map → MessageCloseButton-1f5f7aac.js.map} +1 -1
  628. package/cjs/{MessageDetail-bc89f255.js → MessageDetail-d732615a.js} +7 -7
  629. package/cjs/{MessageDetail-bc89f255.js.map → MessageDetail-d732615a.js.map} +1 -1
  630. package/cjs/{MessageFormattingUtils-afa602f0.js → MessageFormattingUtils-a7183286.js} +4 -4
  631. package/cjs/{MessageFormattingUtils-afa602f0.js.map → MessageFormattingUtils-a7183286.js.map} +1 -1
  632. package/cjs/{MessageLayer-731f812d.js → MessageLayer-aee920a7.js} +11 -11
  633. package/cjs/{MessageLayer-731f812d.js.map → MessageLayer-aee920a7.js.map} +1 -1
  634. package/cjs/{MessageStartIcon-aab13995.js → MessageStartIcon-9ecadda6.js} +11 -11
  635. package/cjs/{MessageStartIcon-aab13995.js.map → MessageStartIcon-9ecadda6.js.map} +1 -1
  636. package/cjs/{MessageSummary-e3c976d2.js → MessageSummary-9eb64a8d.js} +7 -7
  637. package/cjs/{MessageSummary-e3c976d2.js.map → MessageSummary-9eb64a8d.js.map} +1 -1
  638. package/cjs/{MessageTimestamp-5c34afd5.js → MessageTimestamp-4d51dee5.js} +5 -5
  639. package/cjs/{MessageTimestamp-5c34afd5.js.map → MessageTimestamp-4d51dee5.js.map} +1 -1
  640. package/cjs/{MessageToast-17ddb1b5.js → MessageToast-648cd3bf.js} +9 -9
  641. package/cjs/{MessageToast-17ddb1b5.js.map → MessageToast-648cd3bf.js.map} +1 -1
  642. package/cjs/{MessageUtils-c41ab02b.js → MessageUtils-88bfa995.js} +3 -3
  643. package/cjs/{MessageUtils-c41ab02b.js.map → MessageUtils-88bfa995.js.map} +1 -1
  644. package/cjs/{MessagesManager-ae82966c.js → MessagesManager-f03aad11.js} +9 -5
  645. package/cjs/MessagesManager-f03aad11.js.map +1 -0
  646. package/cjs/{MeterCircle-e217b97c.js → MeterCircle-92cf7f9c.js} +50 -50
  647. package/cjs/{MeterCircle-e217b97c.js.map → MeterCircle-92cf7f9c.js.map} +1 -1
  648. package/cjs/{Modal-43091913.js → Modal-26fe663b.js} +6 -6
  649. package/cjs/{Modal-43091913.js.map → Modal-26fe663b.js.map} +1 -1
  650. package/cjs/{NumberInputText-29fc4803.js → NumberInputText-199739fd.js} +7 -7
  651. package/cjs/{NumberInputText-29fc4803.js.map → NumberInputText-199739fd.js.map} +1 -1
  652. package/cjs/PRIVATE_Collection.js +2 -2
  653. package/cjs/PRIVATE_List.js +23 -23
  654. package/cjs/PRIVATE_Message.js +41 -41
  655. package/cjs/PRIVATE_Message.js.map +1 -1
  656. package/cjs/PRIVATE_MessageLayer.js +12 -12
  657. package/cjs/PRIVATE_Meter.js +2 -2
  658. package/cjs/PRIVATE_SelectCommon.js +54 -54
  659. package/cjs/PRIVATE_SelectCommon.js.map +1 -1
  660. package/cjs/PRIVATE_TransitionGroup.js +1 -1
  661. package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
  662. package/cjs/{ReadonlyTextFieldInput-2eac69c6.js → ReadonlyTextFieldInput-4da477c8.js} +13 -13
  663. package/cjs/{ReadonlyTextFieldInput-2eac69c6.js.map → ReadonlyTextFieldInput-4da477c8.js.map} +1 -1
  664. package/cjs/{SelectMenuItem-708a66b4.js → SelectMenuItem-01396e5a.js} +5 -5
  665. package/cjs/{SelectMenuItem-708a66b4.js.map → SelectMenuItem-01396e5a.js.map} +1 -1
  666. package/cjs/{SelectMultiple-3f772a2e.js → SelectMultiple-489290e0.js} +8 -8
  667. package/cjs/{SelectMultiple-3f772a2e.js.map → SelectMultiple-489290e0.js.map} +1 -1
  668. package/cjs/{SelectSingle-8ffab794.js → SelectSingle-db2cfafc.js} +4 -4
  669. package/cjs/{SelectSingle-8ffab794.js.map → SelectSingle-db2cfafc.js.map} +1 -1
  670. package/cjs/{Skeleton-fac3589c.js → Skeleton-58492cd2.js} +5 -5
  671. package/cjs/{Skeleton-fac3589c.js.map → Skeleton-58492cd2.js.map} +1 -1
  672. package/cjs/{Spacer-a28e691d.js → Spacer-20952f09.js} +4 -4
  673. package/cjs/{Spacer-a28e691d.js.map → Spacer-20952f09.js.map} +1 -1
  674. package/cjs/{SplitMenuButton-bfe4f72b.js → SplitMenuButton-539d2d2f.js} +14 -14
  675. package/cjs/{SplitMenuButton-bfe4f72b.js.map → SplitMenuButton-539d2d2f.js.map} +1 -1
  676. package/cjs/{Text-ebbac0b0.js → Text-d4c94edb.js} +28 -28
  677. package/cjs/{Text-ebbac0b0.js.map → Text-d4c94edb.js.map} +1 -1
  678. package/cjs/{TextArea-fed51a13.js → TextArea-a8edca00.js} +8 -8
  679. package/cjs/{TextArea-fed51a13.js.map → TextArea-a8edca00.js.map} +1 -1
  680. package/cjs/{TextAreaAutosize-e4a6e231.js → TextAreaAutosize-bbf4974e.js} +5 -5
  681. package/cjs/{TextAreaAutosize-e4a6e231.js.map → TextAreaAutosize-bbf4974e.js.map} +1 -1
  682. package/cjs/{TextFieldInput-5cadbc52.js → TextFieldInput-8118ca3c.js} +33 -33
  683. package/cjs/{TextFieldInput-5cadbc52.js.map → TextFieldInput-8118ca3c.js.map} +1 -1
  684. package/cjs/UNSAFE_AspectRatio.js +8 -8
  685. package/cjs/UNSAFE_AspectRatio.js.map +1 -1
  686. package/cjs/UNSAFE_Avatar.js +11 -11
  687. package/cjs/UNSAFE_Avatar.js.map +1 -1
  688. package/cjs/UNSAFE_Badge.js +3 -3
  689. package/cjs/UNSAFE_BaseButton.js +9 -9
  690. package/cjs/UNSAFE_Button.js +10 -10
  691. package/cjs/UNSAFE_Center.js +11 -11
  692. package/cjs/UNSAFE_Chip.js +3 -3
  693. package/cjs/UNSAFE_Collapsible.js +26 -26
  694. package/cjs/UNSAFE_Collapsible.js.map +1 -1
  695. package/cjs/UNSAFE_Collection.js +1 -1
  696. package/cjs/UNSAFE_ComponentMessage.js +33 -33
  697. package/cjs/UNSAFE_Divider.js +7 -7
  698. package/cjs/UNSAFE_EmptyList.js +1 -1
  699. package/cjs/UNSAFE_Environment.js +1 -1
  700. package/cjs/UNSAFE_FilePicker.js +14 -14
  701. package/cjs/UNSAFE_Flex.js +11 -11
  702. package/cjs/UNSAFE_Floating.js +3 -3
  703. package/cjs/UNSAFE_FocusTrap.js +6 -6
  704. package/cjs/UNSAFE_Grid.js +9 -9
  705. package/cjs/UNSAFE_Grid.js.map +1 -1
  706. package/cjs/UNSAFE_Heading.js +9 -9
  707. package/cjs/UNSAFE_HiddenAccessible.js +2 -2
  708. package/cjs/UNSAFE_HighlightText.js +2 -2
  709. package/cjs/UNSAFE_Icon.js +7 -7
  710. package/cjs/UNSAFE_Icons.js +8 -8
  711. package/cjs/UNSAFE_Indexer.js +16 -16
  712. package/cjs/UNSAFE_InputPassword.js +40 -40
  713. package/cjs/UNSAFE_InputText.js +39 -39
  714. package/cjs/UNSAFE_Label.js +16 -16
  715. package/cjs/UNSAFE_Label.js.map +1 -1
  716. package/cjs/UNSAFE_LabelValueLayout.js +20 -20
  717. package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
  718. package/cjs/UNSAFE_Layer.js +1 -1
  719. package/cjs/UNSAFE_Link.js +3 -3
  720. package/cjs/UNSAFE_ListItemLayout.js +10 -10
  721. package/cjs/UNSAFE_ListView.js +24 -24
  722. package/cjs/UNSAFE_LiveRegion.js +2 -2
  723. package/cjs/UNSAFE_LiveRegion.js.map +1 -1
  724. package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
  725. package/cjs/UNSAFE_Menu.js +15 -15
  726. package/cjs/UNSAFE_MessageBanner.js +30 -30
  727. package/cjs/UNSAFE_MessageToast.js +33 -33
  728. package/cjs/UNSAFE_MeterBar.js +49 -49
  729. package/cjs/UNSAFE_MeterBar.js.map +1 -1
  730. package/cjs/UNSAFE_MeterCircle.js +7 -7
  731. package/cjs/UNSAFE_Modal.js +7 -7
  732. package/cjs/UNSAFE_NumberInputText.js +39 -39
  733. package/cjs/UNSAFE_PrefixSuffix.js +10 -10
  734. package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
  735. package/cjs/UNSAFE_ProgressBar.js +9 -9
  736. package/cjs/UNSAFE_ProgressBar.js.map +1 -1
  737. package/cjs/UNSAFE_ProgressCircle.js +9 -9
  738. package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
  739. package/cjs/UNSAFE_RatingGauge.js +26 -26
  740. package/cjs/UNSAFE_RatingGauge.js.map +1 -1
  741. package/cjs/UNSAFE_SelectMultiple.js +47 -47
  742. package/cjs/UNSAFE_SelectSingle.js +46 -46
  743. package/cjs/UNSAFE_Selector.js +22 -22
  744. package/cjs/UNSAFE_Selector.js.map +1 -1
  745. package/cjs/UNSAFE_Skeleton.js +8 -8
  746. package/cjs/UNSAFE_Spacer.js +10 -10
  747. package/cjs/UNSAFE_SplitMenuButton.js +22 -22
  748. package/cjs/UNSAFE_Text.js +8 -8
  749. package/cjs/UNSAFE_TextArea.js +39 -39
  750. package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
  751. package/cjs/UNSAFE_TextField.js +35 -35
  752. package/cjs/UNSAFE_TextField.js.map +1 -1
  753. package/cjs/UNSAFE_ThemedIcons.js +9 -9
  754. package/cjs/UNSAFE_UserAssistance.js +41 -41
  755. package/cjs/UNSAFE_UserAssistance.js.map +1 -1
  756. package/cjs/UNSAFE_View.js +9 -9
  757. package/cjs/UNSAFE_VirtualizedListView.js +24 -24
  758. package/cjs/UNSAFE_WindowOverlay.js +1 -1
  759. package/cjs/{VirtualizedCollection-4eb3b463.js → VirtualizedCollection-c655faa9.js} +3 -3
  760. package/cjs/{VirtualizedCollection-4eb3b463.js.map → VirtualizedCollection-c655faa9.js.map} +1 -1
  761. package/cjs/{VirtualizedListView-ccd34b64.js → VirtualizedListView-04c6993e.js} +3 -3
  762. package/cjs/{VirtualizedListView-ccd34b64.js.map → VirtualizedListView-04c6993e.js.map} +1 -1
  763. package/cjs/{_curry1-72279dc6.js → _curry1-6aa6ebe1.js} +2 -2
  764. package/cjs/{_curry1-72279dc6.js.map → _curry1-6aa6ebe1.js.map} +1 -1
  765. package/cjs/{_curry2-f77dcc57.js → _curry2-48faf280.js} +3 -3
  766. package/cjs/{_curry2-f77dcc57.js.map → _curry2-48faf280.js.map} +1 -1
  767. package/cjs/{_curry3-31dd4145.js → _curry3-7f3edffe.js} +4 -4
  768. package/cjs/{_curry3-31dd4145.js.map → _curry3-7f3edffe.js.map} +1 -1
  769. package/cjs/{_has-618da22b.js → _has-b546cb6d.js} +3 -3
  770. package/cjs/{_has-618da22b.js.map → _has-b546cb6d.js.map} +1 -1
  771. package/cjs/{classNames-825d80d7.js → classNames-fba7d551.js} +2 -2
  772. package/cjs/{classNames-825d80d7.js.map → classNames-fba7d551.js.map} +1 -1
  773. package/cjs/{clientHints-78b0e917.js → clientHints-c6decdec.js} +2 -2
  774. package/cjs/{clientHints-78b0e917.js.map → clientHints-c6decdec.js.map} +1 -1
  775. package/cjs/{flexbox-659a8cf1.js → flexbox-b42577ea.js} +10 -10
  776. package/cjs/{flexbox-659a8cf1.js.map → flexbox-b42577ea.js.map} +1 -1
  777. package/cjs/{flexitem-8d661117.js → flexitem-f78aa910.js} +10 -10
  778. package/cjs/{flexitem-8d661117.js.map → flexitem-f78aa910.js.map} +1 -1
  779. package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  780. package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
  781. package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
  782. package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
  783. package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  784. package/cjs/hooks/PRIVATE_useSelection.js +1 -1
  785. package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
  786. package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  787. package/cjs/hooks/UNSAFE_useActionable.js +1 -1
  788. package/cjs/hooks/UNSAFE_useActive.js +1 -1
  789. package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
  790. package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
  791. package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
  792. package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
  793. package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
  794. package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  795. package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  796. package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  797. package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
  798. package/cjs/hooks/UNSAFE_useFloating.js +2 -2
  799. package/cjs/hooks/UNSAFE_useFocus.js +1 -1
  800. package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
  801. package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
  802. package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
  803. package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
  804. package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
  805. package/cjs/hooks/UNSAFE_useHover.js +1 -1
  806. package/cjs/hooks/UNSAFE_useId.js +1 -1
  807. package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
  808. package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  809. package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
  810. package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
  811. package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
  812. package/cjs/hooks/UNSAFE_usePan.js +1 -1
  813. package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
  814. package/cjs/hooks/UNSAFE_usePress.js +1 -1
  815. package/cjs/hooks/UNSAFE_useScale.js +1 -1
  816. package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
  817. package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
  818. package/cjs/hooks/UNSAFE_useTap.js +1 -1
  819. package/cjs/hooks/UNSAFE_useTextField.js +1 -1
  820. package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
  821. package/cjs/hooks/UNSAFE_useTheme.js +1 -1
  822. package/cjs/hooks/UNSAFE_useTimer.js +1 -1
  823. package/cjs/hooks/UNSAFE_useToggle.js +1 -1
  824. package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
  825. package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
  826. package/cjs/hooks/UNSAFE_useTouch.js +1 -1
  827. package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
  828. package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
  829. package/cjs/hooks/UNSAFE_useUser.js +1 -1
  830. package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
  831. package/cjs/{index-94b1ff28.js → index-26367197.js} +2 -2
  832. package/cjs/{index-94b1ff28.js.map → index-26367197.js.map} +1 -1
  833. package/cjs/{index-5304d101.js → index-4e39f445.js} +3 -3
  834. package/cjs/{index-5304d101.js.map → index-4e39f445.js.map} +1 -1
  835. package/cjs/{index-ed6e3090.js → index-4f69022d.js} +3 -3
  836. package/cjs/{index-ed6e3090.js.map → index-4f69022d.js.map} +1 -1
  837. package/cjs/{keys-4d35cf5a.js → keys-4eba1653.js} +4 -4
  838. package/cjs/{keys-4d35cf5a.js.map → keys-4eba1653.js.map} +1 -1
  839. package/cjs/{listViewSelectionTests-0796a53a.js → listViewSelectionTests-2d57d5bb.js} +4 -4
  840. package/cjs/{listViewSelectionTests-0796a53a.js.map → listViewSelectionTests-2d57d5bb.js.map} +1 -1
  841. package/cjs/{listViewTabbableModeTests-34cee226.js → listViewTabbableModeTests-a6b386b0.js} +4 -4
  842. package/cjs/{listViewTabbableModeTests-34cee226.js.map → listViewTabbableModeTests-a6b386b0.js.map} +1 -1
  843. package/cjs/{listViewTestFixtures-3ae79c95.js → listViewTestFixtures-5d40a413.js} +2 -2
  844. package/cjs/{listViewTestFixtures-3ae79c95.js.map → listViewTestFixtures-5d40a413.js.map} +1 -1
  845. package/cjs/{menuTestsUtils-2cc9a6e7.js → menuTestsUtils-753f11db.js} +2 -2
  846. package/cjs/{menuTestsUtils-2cc9a6e7.js.map → menuTestsUtils-753f11db.js.map} +1 -1
  847. package/cjs/resources/nls/ar/bundle.js +1 -1
  848. package/cjs/resources/nls/ar-XB/bundle.js +1 -1
  849. package/cjs/resources/nls/bg/bundle.js +1 -1
  850. package/cjs/resources/nls/bs/bundle.js +1 -1
  851. package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
  852. package/cjs/resources/nls/bundle.js +1 -1
  853. package/cjs/resources/nls/cs/bundle.js +1 -1
  854. package/cjs/resources/nls/da/bundle.js +1 -1
  855. package/cjs/resources/nls/de/bundle.js +1 -1
  856. package/cjs/resources/nls/el/bundle.js +1 -1
  857. package/cjs/resources/nls/en/bundle.js +1 -1
  858. package/cjs/resources/nls/en-XA/bundle.js +1 -1
  859. package/cjs/resources/nls/en-XC/bundle.js +1 -1
  860. package/cjs/resources/nls/es/bundle.js +1 -1
  861. package/cjs/resources/nls/et/bundle.js +1 -1
  862. package/cjs/resources/nls/fi/bundle.js +1 -1
  863. package/cjs/resources/nls/fr/bundle.js +1 -1
  864. package/cjs/resources/nls/fr-CA/bundle.js +1 -1
  865. package/cjs/resources/nls/he/bundle.js +1 -1
  866. package/cjs/resources/nls/hr/bundle.js +1 -1
  867. package/cjs/resources/nls/hu/bundle.js +1 -1
  868. package/cjs/resources/nls/is/bundle.js +1 -1
  869. package/cjs/resources/nls/it/bundle.js +1 -1
  870. package/cjs/resources/nls/ja/bundle.js +1 -1
  871. package/cjs/resources/nls/ko/bundle.js +1 -1
  872. package/cjs/resources/nls/lt/bundle.js +1 -1
  873. package/cjs/resources/nls/lv/bundle.js +1 -1
  874. package/cjs/resources/nls/ms/bundle.js +1 -1
  875. package/cjs/resources/nls/nl/bundle.js +1 -1
  876. package/cjs/resources/nls/no/bundle.js +1 -1
  877. package/cjs/resources/nls/pl/bundle.js +1 -1
  878. package/cjs/resources/nls/pt/bundle.js +1 -1
  879. package/cjs/resources/nls/pt-PT/bundle.js +1 -1
  880. package/cjs/resources/nls/ro/bundle.js +1 -1
  881. package/cjs/resources/nls/ru/bundle.js +1 -1
  882. package/cjs/resources/nls/sk/bundle.js +1 -1
  883. package/cjs/resources/nls/sl/bundle.js +1 -1
  884. package/cjs/resources/nls/sr/bundle.js +1 -1
  885. package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
  886. package/cjs/resources/nls/supportedLocales.js +1 -1
  887. package/cjs/resources/nls/sv/bundle.js +1 -1
  888. package/cjs/resources/nls/th/bundle.js +1 -1
  889. package/cjs/resources/nls/tr/bundle.js +1 -1
  890. package/cjs/resources/nls/uk/bundle.js +1 -1
  891. package/cjs/resources/nls/vi/bundle.js +1 -1
  892. package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
  893. package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
  894. package/cjs/{stringUtils-d9b75b25.js → stringUtils-b6a5ad2c.js} +2 -2
  895. package/cjs/{stringUtils-d9b75b25.js.map → stringUtils-b6a5ad2c.js.map} +1 -1
  896. package/cjs/{testHelpers-057f567b.js → testHelpers-f56e69f0.js} +2 -2
  897. package/cjs/{testHelpers-057f567b.js.map → testHelpers-f56e69f0.js.map} +1 -1
  898. package/cjs/translationBundle.js +1 -1
  899. package/cjs/{tslib.es6-d7adde1f.js → tslib.es6-17ec4332.js} +2 -2
  900. package/cjs/{tslib.es6-d7adde1f.js.map → tslib.es6-17ec4332.js.map} +1 -1
  901. package/cjs/{useAnimation-9e794d84.js → useAnimation-17cb54a5.js} +3 -3
  902. package/cjs/{useAnimation-9e794d84.js.map → useAnimation-17cb54a5.js.map} +1 -1
  903. package/cjs/{useFocusWithin-e524661e.js → useFocusWithin-0b6e818e.js} +2 -2
  904. package/cjs/{useFocusWithin-e524661e.js.map → useFocusWithin-0b6e818e.js.map} +1 -1
  905. package/cjs/{useSingleSelection-46afe62c.js → useSingleSelection-9e6238f0.js} +2 -2
  906. package/cjs/{useSingleSelection-46afe62c.js.map → useSingleSelection-9e6238f0.js.map} +1 -1
  907. package/cjs/utils/PRIVATE_clientHints.js +2 -2
  908. package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
  909. package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
  910. package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
  911. package/cjs/utils/PRIVATE_meterUtils.js +1 -1
  912. package/cjs/utils/PRIVATE_refUtils.js +1 -1
  913. package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
  914. package/cjs/utils/PRIVATE_timer.js +1 -1
  915. package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
  916. package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
  917. package/cjs/utils/UNSAFE_classNames.js +2 -2
  918. package/cjs/utils/UNSAFE_componentUtils.js +1 -1
  919. package/cjs/utils/UNSAFE_dataProvider.js +1 -1
  920. package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
  921. package/cjs/utils/UNSAFE_getLocale.js +1 -1
  922. package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
  923. package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
  924. package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  925. package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  926. package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
  927. package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
  928. package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
  929. package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
  930. package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
  931. package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
  932. package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
  933. package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
  934. package/cjs/utils/UNSAFE_keys.js +1 -1
  935. package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
  936. package/cjs/utils/UNSAFE_logger.js +3 -3
  937. package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
  938. package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
  939. package/cjs/utils/UNSAFE_mergeProps.js +1 -1
  940. package/cjs/utils/UNSAFE_meterTypes.js +1 -1
  941. package/cjs/utils/UNSAFE_roles.js +1 -1
  942. package/cjs/utils/UNSAFE_selectUtils.js +1 -1
  943. package/cjs/utils/UNSAFE_size.js +1 -1
  944. package/cjs/utils/UNSAFE_soundUtils.js +1 -1
  945. package/cjs/utils/UNSAFE_stringUtils.js +2 -2
  946. package/cjs/utils/UNSAFE_typeUtils.js +1 -1
  947. package/cjs/utils/UNSAFE_units.js +2 -2
  948. package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
  949. package/es/{ClearIcon-93076ca9.js → ClearIcon-87cf07a3.js} +3 -3
  950. package/es/{ClearIcon-93076ca9.js.map → ClearIcon-87cf07a3.js.map} +1 -1
  951. package/es/{LoadMoreCollection-5d3b319f.js → LoadMoreCollection-d7ef9429.js} +2 -2
  952. package/es/{LoadMoreCollection-5d3b319f.js.map → LoadMoreCollection-d7ef9429.js.map} +1 -1
  953. package/es/PRIVATE_Collection.js +1 -1
  954. package/es/PRIVATE_List.css +15 -15
  955. package/es/PRIVATE_List.js +24 -24
  956. package/es/PRIVATE_List.js.map +1 -1
  957. package/es/PRIVATE_Message.css +27 -27
  958. package/es/PRIVATE_Message.js +41 -37
  959. package/es/PRIVATE_Message.js.map +1 -1
  960. package/es/PRIVATE_MessageLayer.css +7 -7
  961. package/es/PRIVATE_MessageLayer.js +14 -14
  962. package/es/PRIVATE_MessageLayer.js.map +1 -1
  963. package/es/PRIVATE_Meter.js +2 -2
  964. package/es/PRIVATE_SelectCommon.css +13 -13
  965. package/es/PRIVATE_SelectCommon.js +22 -22
  966. package/es/PRIVATE_SelectCommon.js.map +1 -1
  967. package/es/PRIVATE_TransitionGroup.js +1 -1
  968. package/es/PRIVATE_VirtualizedCollection.js +1 -1
  969. package/es/UNSAFE_AspectRatio.css +1 -1
  970. package/es/UNSAFE_AspectRatio.js +7 -7
  971. package/es/UNSAFE_AspectRatio.js.map +1 -1
  972. package/es/UNSAFE_Avatar.css +8 -8
  973. package/es/UNSAFE_Avatar.js +10 -10
  974. package/es/UNSAFE_Avatar.js.map +1 -1
  975. package/es/UNSAFE_Badge.css +13 -13
  976. package/es/UNSAFE_Badge.js +14 -14
  977. package/es/UNSAFE_Badge.js.map +1 -1
  978. package/es/UNSAFE_BaseButton.css +15 -15
  979. package/es/UNSAFE_BaseButton.js +21 -21
  980. package/es/UNSAFE_BaseButton.js.map +1 -1
  981. package/es/UNSAFE_Button.css +8 -8
  982. package/es/UNSAFE_Button.js +14 -14
  983. package/es/UNSAFE_Button.js.map +1 -1
  984. package/es/UNSAFE_Center.js +7 -7
  985. package/es/UNSAFE_Chip.css +7 -7
  986. package/es/UNSAFE_Chip.js +8 -8
  987. package/es/UNSAFE_Chip.js.map +1 -1
  988. package/es/UNSAFE_Collapsible.css +8 -8
  989. package/es/UNSAFE_Collapsible.js +16 -16
  990. package/es/UNSAFE_Collapsible.js.map +1 -1
  991. package/es/UNSAFE_Collection.js +1 -1
  992. package/es/UNSAFE_ComponentMessage.css +2 -2
  993. package/es/UNSAFE_ComponentMessage.js +10 -10
  994. package/es/UNSAFE_ComponentMessage.js.map +1 -1
  995. package/es/UNSAFE_Divider.css +1 -1
  996. package/es/UNSAFE_Divider.js +6 -6
  997. package/es/UNSAFE_EmptyList.js +1 -1
  998. package/es/UNSAFE_Environment.js +1 -1
  999. package/es/UNSAFE_FilePicker.css +6 -6
  1000. package/es/UNSAFE_FilePicker.js +13 -13
  1001. package/es/UNSAFE_Flex.css +2 -2
  1002. package/es/UNSAFE_Flex.js +9 -9
  1003. package/es/UNSAFE_Flex.js.map +1 -1
  1004. package/es/UNSAFE_Floating.js +2 -2
  1005. package/es/UNSAFE_FocusTrap.css +2 -2
  1006. package/es/UNSAFE_FocusTrap.js +6 -6
  1007. package/es/UNSAFE_FocusTrap.js.map +1 -1
  1008. package/es/UNSAFE_Grid.css +1 -1
  1009. package/es/UNSAFE_Grid.js +8 -8
  1010. package/es/UNSAFE_Grid.js.map +1 -1
  1011. package/es/UNSAFE_Heading.css +9 -9
  1012. package/es/UNSAFE_Heading.js +16 -16
  1013. package/es/UNSAFE_Heading.js.map +1 -1
  1014. package/es/UNSAFE_HiddenAccessible.css +1 -1
  1015. package/es/UNSAFE_HiddenAccessible.js +2 -2
  1016. package/es/UNSAFE_HiddenAccessible.js.map +1 -1
  1017. package/es/UNSAFE_HighlightText.css +1 -1
  1018. package/es/UNSAFE_HighlightText.js +2 -2
  1019. package/es/UNSAFE_HighlightText.js.map +1 -1
  1020. package/es/UNSAFE_Icon.css +21 -21
  1021. package/es/UNSAFE_Icon.js +24 -24
  1022. package/es/UNSAFE_Icon.js.map +1 -1
  1023. package/es/UNSAFE_Icons.js +3 -3
  1024. package/es/UNSAFE_Indexer.css +7 -7
  1025. package/es/UNSAFE_Indexer.js +15 -15
  1026. package/es/UNSAFE_Indexer.js.map +1 -1
  1027. package/es/UNSAFE_InputPassword.css +1 -1
  1028. package/es/UNSAFE_InputPassword.js +10 -10
  1029. package/es/UNSAFE_InputText.css +1 -1
  1030. package/es/UNSAFE_InputText.js +9 -9
  1031. package/es/UNSAFE_Label.css +13 -13
  1032. package/es/UNSAFE_Label.js +15 -15
  1033. package/es/UNSAFE_Label.js.map +1 -1
  1034. package/es/UNSAFE_LabelValueLayout.css +9 -9
  1035. package/es/UNSAFE_LabelValueLayout.js +16 -16
  1036. package/es/UNSAFE_LabelValueLayout.js.map +1 -1
  1037. package/es/UNSAFE_Layer.js +1 -1
  1038. package/es/UNSAFE_Link.css +5 -5
  1039. package/es/UNSAFE_Link.js +6 -6
  1040. package/es/UNSAFE_Link.js.map +1 -1
  1041. package/es/UNSAFE_ListItemLayout.css +9 -9
  1042. package/es/UNSAFE_ListItemLayout.js +16 -16
  1043. package/es/UNSAFE_ListItemLayout.js.map +1 -1
  1044. package/es/UNSAFE_ListView.js +9 -9
  1045. package/es/UNSAFE_LiveRegion.css +1 -1
  1046. package/es/UNSAFE_LiveRegion.js +2 -2
  1047. package/es/UNSAFE_LiveRegion.js.map +1 -1
  1048. package/es/UNSAFE_LoadMoreCollection.js +2 -2
  1049. package/es/UNSAFE_Menu.css +17 -17
  1050. package/es/UNSAFE_Menu.js +24 -24
  1051. package/es/UNSAFE_Menu.js.map +1 -1
  1052. package/es/UNSAFE_MessageBanner.js +8 -8
  1053. package/es/UNSAFE_MessageToast.css +1 -1
  1054. package/es/UNSAFE_MessageToast.js +9 -9
  1055. package/es/UNSAFE_MeterBar.css +43 -43
  1056. package/es/UNSAFE_MeterBar.js +46 -46
  1057. package/es/UNSAFE_MeterBar.js.map +1 -1
  1058. package/es/UNSAFE_MeterCircle.css +46 -46
  1059. package/es/UNSAFE_MeterCircle.js +49 -49
  1060. package/es/UNSAFE_MeterCircle.js.map +1 -1
  1061. package/es/UNSAFE_Modal.css +3 -3
  1062. package/es/UNSAFE_Modal.js +7 -7
  1063. package/es/UNSAFE_NumberInputText.js +8 -8
  1064. package/es/UNSAFE_PrefixSuffix.css +8 -8
  1065. package/es/UNSAFE_PrefixSuffix.js +9 -9
  1066. package/es/UNSAFE_PrefixSuffix.js.map +1 -1
  1067. package/es/UNSAFE_ProgressBar.css +6 -6
  1068. package/es/UNSAFE_ProgressBar.js +8 -8
  1069. package/es/UNSAFE_ProgressBar.js.map +1 -1
  1070. package/es/UNSAFE_ProgressCircle.css +6 -6
  1071. package/es/UNSAFE_ProgressCircle.js +8 -8
  1072. package/es/UNSAFE_ProgressCircle.js.map +1 -1
  1073. package/es/UNSAFE_RatingGauge.css +20 -20
  1074. package/es/UNSAFE_RatingGauge.js +23 -23
  1075. package/es/UNSAFE_RatingGauge.js.map +1 -1
  1076. package/es/UNSAFE_SelectMultiple.css +1 -1
  1077. package/es/UNSAFE_SelectMultiple.js +10 -10
  1078. package/es/UNSAFE_SelectSingle.js +9 -9
  1079. package/es/UNSAFE_Selector.css +5 -5
  1080. package/es/UNSAFE_Selector.js +13 -13
  1081. package/es/UNSAFE_Selector.js.map +1 -1
  1082. package/es/UNSAFE_Skeleton.css +1 -1
  1083. package/es/UNSAFE_Skeleton.js +7 -7
  1084. package/es/UNSAFE_Spacer.js +7 -7
  1085. package/es/UNSAFE_SplitMenuButton.css +5 -5
  1086. package/es/UNSAFE_SplitMenuButton.js +12 -12
  1087. package/es/UNSAFE_SplitMenuButton.js.map +1 -1
  1088. package/es/UNSAFE_Text.css +25 -25
  1089. package/es/UNSAFE_Text.js +31 -31
  1090. package/es/UNSAFE_Text.js.map +1 -1
  1091. package/es/UNSAFE_TextArea.css +3 -3
  1092. package/es/UNSAFE_TextArea.js +11 -11
  1093. package/es/UNSAFE_TextArea.js.map +1 -1
  1094. package/es/UNSAFE_TextAreaAutosize.js +8 -8
  1095. package/es/UNSAFE_TextField.css +58 -58
  1096. package/es/UNSAFE_TextField.js +65 -65
  1097. package/es/UNSAFE_TextField.js.map +1 -1
  1098. package/es/UNSAFE_ThemedIcons.js +3 -3
  1099. package/es/UNSAFE_UserAssistance.css +8 -8
  1100. package/es/UNSAFE_UserAssistance.js +16 -16
  1101. package/es/UNSAFE_UserAssistance.js.map +1 -1
  1102. package/es/UNSAFE_View.js +7 -7
  1103. package/es/UNSAFE_VirtualizedListView.js +9 -9
  1104. package/es/UNSAFE_WindowOverlay.js +1 -1
  1105. package/es/{_curry1-d822c6e1.js → _curry1-97ad07b6.js} +2 -2
  1106. package/es/{_curry1-d822c6e1.js.map → _curry1-97ad07b6.js.map} +1 -1
  1107. package/es/{_curry2-50442f66.js → _curry2-6b260916.js} +3 -3
  1108. package/es/{_curry2-50442f66.js.map → _curry2-6b260916.js.map} +1 -1
  1109. package/es/{_curry3-ddab9fe1.js → _curry3-9fad4075.js} +4 -4
  1110. package/es/{_curry3-ddab9fe1.js.map → _curry3-9fad4075.js.map} +1 -1
  1111. package/es/{_has-c4aaaf43.js → _has-c6212bd0.js} +3 -3
  1112. package/es/{_has-c4aaaf43.js.map → _has-c6212bd0.js.map} +1 -1
  1113. package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  1114. package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
  1115. package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
  1116. package/es/hooks/PRIVATE_useItemAction.js +1 -1
  1117. package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
  1118. package/es/hooks/PRIVATE_useSelection.js +1 -1
  1119. package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
  1120. package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  1121. package/es/hooks/UNSAFE_useActionable.js +1 -1
  1122. package/es/hooks/UNSAFE_useActive.js +1 -1
  1123. package/es/hooks/UNSAFE_useAnimation.js +2 -2
  1124. package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
  1125. package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
  1126. package/es/hooks/UNSAFE_useClearIcon.js +1 -1
  1127. package/es/hooks/UNSAFE_useColorScheme.js +1 -1
  1128. package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  1129. package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
  1130. package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
  1131. package/es/hooks/UNSAFE_useDebounce.js +1 -1
  1132. package/es/hooks/UNSAFE_useFloating.js +2 -2
  1133. package/es/hooks/UNSAFE_useFocus.js +1 -1
  1134. package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
  1135. package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
  1136. package/es/hooks/UNSAFE_useFormContext.js +1 -1
  1137. package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
  1138. package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
  1139. package/es/hooks/UNSAFE_useHover.js +1 -1
  1140. package/es/hooks/UNSAFE_useId.js +1 -1
  1141. package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
  1142. package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
  1143. package/es/hooks/UNSAFE_useLongPress.js +1 -1
  1144. package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
  1145. package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
  1146. package/es/hooks/UNSAFE_usePan.js +1 -1
  1147. package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  1148. package/es/hooks/UNSAFE_usePress.js +1 -1
  1149. package/es/hooks/UNSAFE_useScale.js +1 -1
  1150. package/es/hooks/UNSAFE_useSwipe.js +1 -1
  1151. package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
  1152. package/es/hooks/UNSAFE_useTap.js +1 -1
  1153. package/es/hooks/UNSAFE_useTextField.js +1 -1
  1154. package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
  1155. package/es/hooks/UNSAFE_useTheme.js +1 -1
  1156. package/es/hooks/UNSAFE_useTimer.js +1 -1
  1157. package/es/hooks/UNSAFE_useToggle.js +1 -1
  1158. package/es/hooks/UNSAFE_useTooltip.css +4 -4
  1159. package/es/hooks/UNSAFE_useTooltip.js +7 -7
  1160. package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
  1161. package/es/hooks/UNSAFE_useTouch.js +1 -1
  1162. package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
  1163. package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
  1164. package/es/hooks/UNSAFE_useUser.js +1 -1
  1165. package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
  1166. package/es/{index-14bba6f7.js → index-5584e60f.js} +2 -2
  1167. package/es/{index-14bba6f7.js.map → index-5584e60f.js.map} +1 -1
  1168. package/es/{keys-fed67954.js → keys-72a008ef.js} +4 -4
  1169. package/es/{keys-fed67954.js.map → keys-72a008ef.js.map} +1 -1
  1170. package/es/resources/nls/ar/bundle.js +1 -1
  1171. package/es/resources/nls/ar-XB/bundle.js +1 -1
  1172. package/es/resources/nls/bg/bundle.js +1 -1
  1173. package/es/resources/nls/bs/bundle.js +1 -1
  1174. package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
  1175. package/es/resources/nls/bundle.js +1 -1
  1176. package/es/resources/nls/cs/bundle.js +1 -1
  1177. package/es/resources/nls/da/bundle.js +1 -1
  1178. package/es/resources/nls/de/bundle.js +1 -1
  1179. package/es/resources/nls/el/bundle.js +1 -1
  1180. package/es/resources/nls/en/bundle.js +1 -1
  1181. package/es/resources/nls/en-XA/bundle.js +1 -1
  1182. package/es/resources/nls/en-XC/bundle.js +1 -1
  1183. package/es/resources/nls/es/bundle.js +1 -1
  1184. package/es/resources/nls/et/bundle.js +1 -1
  1185. package/es/resources/nls/fi/bundle.js +1 -1
  1186. package/es/resources/nls/fr/bundle.js +1 -1
  1187. package/es/resources/nls/fr-CA/bundle.js +1 -1
  1188. package/es/resources/nls/he/bundle.js +1 -1
  1189. package/es/resources/nls/hr/bundle.js +1 -1
  1190. package/es/resources/nls/hu/bundle.js +1 -1
  1191. package/es/resources/nls/is/bundle.js +1 -1
  1192. package/es/resources/nls/it/bundle.js +1 -1
  1193. package/es/resources/nls/ja/bundle.js +1 -1
  1194. package/es/resources/nls/ko/bundle.js +1 -1
  1195. package/es/resources/nls/lt/bundle.js +1 -1
  1196. package/es/resources/nls/lv/bundle.js +1 -1
  1197. package/es/resources/nls/ms/bundle.js +1 -1
  1198. package/es/resources/nls/nl/bundle.js +1 -1
  1199. package/es/resources/nls/no/bundle.js +1 -1
  1200. package/es/resources/nls/pl/bundle.js +1 -1
  1201. package/es/resources/nls/pt/bundle.js +1 -1
  1202. package/es/resources/nls/pt-PT/bundle.js +1 -1
  1203. package/es/resources/nls/ro/bundle.js +1 -1
  1204. package/es/resources/nls/ru/bundle.js +1 -1
  1205. package/es/resources/nls/sk/bundle.js +1 -1
  1206. package/es/resources/nls/sl/bundle.js +1 -1
  1207. package/es/resources/nls/sr/bundle.js +1 -1
  1208. package/es/resources/nls/sr-Latn/bundle.js +1 -1
  1209. package/es/resources/nls/supportedLocales.js +1 -1
  1210. package/es/resources/nls/sv/bundle.js +1 -1
  1211. package/es/resources/nls/th/bundle.js +1 -1
  1212. package/es/resources/nls/tr/bundle.js +1 -1
  1213. package/es/resources/nls/uk/bundle.js +1 -1
  1214. package/es/resources/nls/vi/bundle.js +1 -1
  1215. package/es/resources/nls/zh-Hans/bundle.js +1 -1
  1216. package/es/resources/nls/zh-Hant/bundle.js +1 -1
  1217. package/es/translationBundle.js +1 -1
  1218. package/es/{tslib.es6-8b94ba02.js → tslib.es6-b7e8fd27.js} +2 -2
  1219. package/es/{tslib.es6-8b94ba02.js.map → tslib.es6-b7e8fd27.js.map} +1 -1
  1220. package/es/{useSingleSelection-1e6a4315.js → useSingleSelection-d3312458.js} +2 -2
  1221. package/es/{useSingleSelection-1e6a4315.js.map → useSingleSelection-d3312458.js.map} +1 -1
  1222. package/es/utils/PRIVATE_clientHints.js +1 -1
  1223. package/es/utils/PRIVATE_collectionUtils.js +1 -1
  1224. package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
  1225. package/es/utils/PRIVATE_floatingUtils.js +1 -1
  1226. package/es/utils/PRIVATE_meterUtils.js +1 -1
  1227. package/es/utils/PRIVATE_refUtils.js +1 -1
  1228. package/es/utils/PRIVATE_tabbableUtils.js +4 -4
  1229. package/es/utils/PRIVATE_timer.js +1 -1
  1230. package/es/utils/UNSAFE_arrayUtils.js +1 -1
  1231. package/es/utils/UNSAFE_attributeUtils.js +1 -1
  1232. package/es/utils/UNSAFE_classNames.js +1 -1
  1233. package/es/utils/UNSAFE_componentUtils.js +1 -1
  1234. package/es/utils/UNSAFE_dataProvider.js +1 -1
  1235. package/es/utils/UNSAFE_filePickerUtils.js +1 -1
  1236. package/es/utils/UNSAFE_getLocale.js +1 -1
  1237. package/es/utils/UNSAFE_interpolations/aria.js +1 -1
  1238. package/es/utils/UNSAFE_interpolations/borders.js +1 -1
  1239. package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -15
  1240. package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
  1241. package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
  1242. package/es/utils/UNSAFE_interpolations/colors.js +1 -1
  1243. package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
  1244. package/es/utils/UNSAFE_interpolations/flexbox.css +7 -7
  1245. package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
  1246. package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
  1247. package/es/utils/UNSAFE_interpolations/flexitem.css +7 -7
  1248. package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
  1249. package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
  1250. package/es/utils/UNSAFE_interpolations/grid.js +1 -1
  1251. package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
  1252. package/es/utils/UNSAFE_interpolations/padding.js +1 -1
  1253. package/es/utils/UNSAFE_interpolations/text.css +3 -3
  1254. package/es/utils/UNSAFE_interpolations/text.js +7 -7
  1255. package/es/utils/UNSAFE_keys.js +1 -1
  1256. package/es/utils/UNSAFE_lengthFilter.js +1 -1
  1257. package/es/utils/UNSAFE_logger.js +3 -3
  1258. package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
  1259. package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
  1260. package/es/utils/UNSAFE_mergeProps.js +1 -1
  1261. package/es/utils/UNSAFE_meterTypes.js +1 -1
  1262. package/es/utils/UNSAFE_roles.js +1 -1
  1263. package/es/utils/UNSAFE_selectUtils.js +1 -1
  1264. package/es/utils/UNSAFE_size.js +1 -1
  1265. package/es/utils/UNSAFE_soundUtils.js +1 -1
  1266. package/es/utils/UNSAFE_stringUtils.js +1 -1
  1267. package/es/utils/UNSAFE_typeUtils.js +1 -1
  1268. package/es/utils/UNSAFE_units.js +1 -1
  1269. package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
  1270. package/package.json +1 -1
  1271. package/amd/Badge-0881d386.js +0 -2
  1272. package/amd/BaseButton-c6deca8c.js +0 -2
  1273. package/amd/Button-18083439.js +0 -2
  1274. package/amd/Chip-d8fcbe0a.js +0 -2
  1275. package/amd/ClearIcon-7e5374d7.js +0 -2
  1276. package/amd/Collection-0cd076bf.js +0 -2
  1277. package/amd/ComponentMessage-3a247b9a.js +0 -2
  1278. package/amd/ComponentMessageContainer-eaa98f45.js +0 -2
  1279. package/amd/Divider-6855675c.js +0 -2
  1280. package/amd/FilePicker-22dcb644.js +0 -2
  1281. package/amd/Floating-a320db48.js +0 -2
  1282. package/amd/FocusTrap-444cf340.js +0 -2
  1283. package/amd/FormControlUtils-d6f8680e.js +0 -2
  1284. package/amd/Heading-b2b87148.js +0 -2
  1285. package/amd/HiddenAccessible-061a4f41.js +0 -2
  1286. package/amd/HighlightText-a2b5f4e4.js +0 -2
  1287. package/amd/Icon-87f4ca0b.js +0 -2
  1288. package/amd/Indexer-2b266287.js +0 -2
  1289. package/amd/InlineHelpSource-7fec4994.js +0 -2
  1290. package/amd/Link-4a365734.js +0 -2
  1291. package/amd/List-56a1055e.js +0 -2
  1292. package/amd/ListItemTextLayout-fb9952bb.js +0 -2
  1293. package/amd/ListView-6a3088e3.js +0 -2
  1294. package/amd/LoadMoreCollection-60a7b2a5.js +0 -2
  1295. package/amd/Menu-7882480e.js +0 -2
  1296. package/amd/MenuDivider-eafa71e0.js +0 -2
  1297. package/amd/MenuItem-c03348c5.js +0 -2
  1298. package/amd/Message.types-2209616d.js +0 -2
  1299. package/amd/MessageCloseButton-c76a52a8.js +0 -2
  1300. package/amd/MessageDetail-43b9aea2.js +0 -2
  1301. package/amd/MessageFormattingUtils-b6297ef3.js +0 -2
  1302. package/amd/MessageLayer-75166056.js +0 -2
  1303. package/amd/MessageStartIcon-6ef050cb.js +0 -2
  1304. package/amd/MessageSummary-6829e689.js +0 -2
  1305. package/amd/MessageTimestamp-663c8997.js +0 -2
  1306. package/amd/MessageToast-104da69d.js +0 -2
  1307. package/amd/MessageUtils-d33dd1be.js +0 -2
  1308. package/amd/MessagesManager-d5b3671c.js +0 -2
  1309. package/amd/MessagesManager-d5b3671c.js.map +0 -1
  1310. package/amd/MeterCircle-da06e4f7.js +0 -2
  1311. package/amd/Modal-b06cc4b4.js +0 -2
  1312. package/amd/NumberInputText-bf17d6e8.js +0 -2
  1313. package/amd/ReadonlyTextFieldInput-575ef738.js +0 -2
  1314. package/amd/SelectMultiple-b841e678.js +0 -2
  1315. package/amd/SelectSingle-b6a88f0f.js +0 -2
  1316. package/amd/SplitMenuButton-238f2539.js +0 -2
  1317. package/amd/Text-4fcf43f2.js +0 -2
  1318. package/amd/TextArea-6a820048.js +0 -2
  1319. package/amd/TextAreaAutosize-f84225fb.js +0 -2
  1320. package/amd/TextFieldInput-e0759ad6.js +0 -2
  1321. package/amd/VirtualizedCollection-45f2c32e.js +0 -2
  1322. package/amd/VirtualizedListView-22a5c6af.js +0 -2
  1323. package/amd/_curry1-b9493cf6.js +0 -2
  1324. package/amd/_curry2-b02f6247.js +0 -2
  1325. package/amd/_curry3-8ffdde1d.js +0 -2
  1326. package/amd/_has-fad415e9.js +0 -2
  1327. package/amd/classNames-3c307969.js +0 -2
  1328. package/amd/clientHints-7d8b1c52.js +0 -2
  1329. package/amd/flexbox-b8de8bb4.js +0 -2
  1330. package/amd/flexitem-d8628091.js +0 -2
  1331. package/amd/index-2f5333e8.js +0 -2
  1332. package/amd/index-55b2db15.js +0 -2
  1333. package/amd/index-bd92b0b3.js +0 -2
  1334. package/amd/keys-9d7cdf1f.js +0 -2
  1335. package/amd/listViewSelectionTests-b85b7850.js +0 -2
  1336. package/amd/listViewTabbableModeTests-7c0d5a88.js +0 -2
  1337. package/amd/listViewTestFixtures-027f1a07.js +0 -2
  1338. package/amd/menuTestsUtils-6cfb2d03.js +0 -2
  1339. package/amd/stringUtils-48915fb5.js +0 -2
  1340. package/amd/testHelpers-327fc97e.js +0 -2
  1341. package/amd/tslib.es6-d070fafc.js +0 -2
  1342. package/amd/useAnimation-8e4e9999.js +0 -2
  1343. package/amd/useFocusWithin-7378d9c7.js +0 -2
  1344. package/amd/useSingleSelection-089373da.js +0 -2
  1345. package/cjs/MessagesManager-ae82966c.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks"],(function(e,n){"use strict";const t={pointerDownId:null,startTime:0};e.useLongPress=function(e,{isDisabled:o=!1,minimumTime:r=250}={isDisabled:!1,minimumTime:250}){const i=n.useRef(t),s=n.useCallback((e=>{"mouse"==e.pointerType&&0!=e.button||(i.current=i.current.pointerDownId?t:{pointerDownId:e.pointerId,startTime:e.timeStamp})}),[]),u=n.useCallback((n=>{if(n.pointerId===i.current.pointerDownId){n.timeStamp-i.current.startTime>r&&e({x:n.offsetX,y:n.offsetY})}a()}),[e]),a=n.useCallback((()=>{i.current=t}),[]);return{longPressProps:o?{}:{onPointerDown:s,onPointerUp:u,onPointerLeave:a,onPointerCancel:a}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks"],function(e,n){"use strict";const t={pointerDownId:null,startTime:0};e.useLongPress=function(e,{isDisabled:o=!1,minimumTime:r=250}={isDisabled:!1,minimumTime:250}){const i=n.useRef(t),s=n.useCallback(e=>{"mouse"==e.pointerType&&0!=e.button||(i.current=i.current.pointerDownId?t:{pointerDownId:e.pointerId,startTime:e.timeStamp})},[]),u=n.useCallback(n=>{if(n.pointerId===i.current.pointerDownId){n.timeStamp-i.current.startTime>r&&e({x:n.offsetX,y:n.offsetY})}a()},[e]),a=n.useCallback(()=>{i.current=t},[]);return{longPressProps:o?{}:{onPointerDown:s,onPointerUp:u,onPointerLeave:a,onPointerCancel:a}}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useLongPress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useLongPress.js","sources":["../../../src/hooks/UNSAFE_useLongPress/useLongPress.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\ntype LongPressOptions = {\n isDisabled?: boolean;\n minimumTime?: number;\n};\n\ntype LongPressInfo = {\n x: number;\n y: number;\n};\n\ntype LongPressState = {\n pointerDownId: number | null;\n startTime: number;\n};\n\nconst InitialPressState = {\n pointerDownId: null,\n startTime: 0\n};\n\nconst DefaultMinimumTime = 250;\n\nexport function useLongPress(\n onLongPress: (e: LongPressInfo) => void,\n { isDisabled = false, minimumTime = DefaultMinimumTime }: LongPressOptions = {\n isDisabled: false,\n minimumTime: DefaultMinimumTime\n }\n): { longPressProps: Record<string, any> } {\n const ref = useRef<LongPressState>(InitialPressState);\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n // return if it is not a left click\n if (e.pointerType == 'mouse' && e.button != 0) {\n return;\n }\n\n ref.current = ref.current.pointerDownId\n ? InitialPressState\n : { pointerDownId: e.pointerId, startTime: e.timeStamp };\n }, []);\n\n const onPointerUp = useCallback(\n (e: PointerEvent) => {\n if (e.pointerId === ref.current.pointerDownId) {\n const longPressTime = e.timeStamp - ref.current.startTime;\n // 250ms minimum longPress time based on numbers used in Hammer\n if (longPressTime > minimumTime) {\n onLongPress({ x: e.offsetX, y: e.offsetY });\n }\n }\n clearLongPress();\n },\n [onLongPress]\n );\n\n const clearLongPress = useCallback(() => {\n ref.current = InitialPressState;\n }, []);\n\n const longPressProps = isDisabled\n ? {}\n : {\n onPointerDown,\n onPointerUp,\n onPointerLeave: clearLongPress,\n onPointerCancel: clearLongPress\n };\n\n return {\n longPressProps\n };\n}\n"],"names":["InitialPressState","pointerDownId","startTime","onLongPress","isDisabled","minimumTime","ref","useRef","onPointerDown","useCallback","e","pointerType","button","current","pointerId","timeStamp","onPointerUp","x","offsetX","y","offsetY","clearLongPress","longPressProps","onPointerLeave","onPointerCancel"],"mappings":"8DAyBA,MAAMA,EAAoB,CACxBC,cAAe,KACfC,UAAW,kBAKG,SACdC,GACAC,WAAEA,GAAa,EAAfC,YAAsBA,EAJG,KAIoD,CAC3ED,YAAY,EACZC,YANuB,MASzB,MAAMC,EAAMC,SAAuBP,GAE7BQ,EAAgBC,eAAaC,IAEZ,SAAjBA,EAAEC,aAAsC,GAAZD,EAAEE,SAIlCN,EAAIO,QAAUP,EAAIO,QAAQZ,cACtBD,EACA,CAAEC,cAAeS,EAAEI,UAAWZ,UAAWQ,EAAEK,cAC9C,IAEGC,EAAcP,eACjBC,IACC,GAAIA,EAAEI,YAAcR,EAAIO,QAAQZ,cAAe,CACvBS,EAAEK,UAAYT,EAAIO,QAAQX,UAE5BG,GAClBF,EAAY,CAAEc,EAAGP,EAAEQ,QAASC,EAAGT,EAAEU,UAGrCC,MAEF,CAAClB,IAGGkB,EAAiBZ,EAAAA,aAAY,KACjCH,EAAIO,QAAUb,IACb,IAWH,MAAO,CACLsB,eAVqBlB,EACnB,GACA,CACEI,cAAAA,EACAQ,YAAAA,EACAO,eAAgBF,EAChBG,gBAAiBH"}
1
+ {"version":3,"file":"UNSAFE_useLongPress.js","sources":["../../../src/hooks/UNSAFE_useLongPress/useLongPress.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\ntype LongPressOptions = {\n isDisabled?: boolean;\n minimumTime?: number;\n};\n\ntype LongPressInfo = {\n x: number;\n y: number;\n};\n\ntype LongPressState = {\n pointerDownId: number | null;\n startTime: number;\n};\n\nconst InitialPressState = {\n pointerDownId: null,\n startTime: 0\n};\n\nconst DefaultMinimumTime = 250;\n\nexport function useLongPress(\n onLongPress: (e: LongPressInfo) => void,\n { isDisabled = false, minimumTime = DefaultMinimumTime }: LongPressOptions = {\n isDisabled: false,\n minimumTime: DefaultMinimumTime\n }\n): { longPressProps: Record<string, any> } {\n const ref = useRef<LongPressState>(InitialPressState);\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n // return if it is not a left click\n if (e.pointerType == 'mouse' && e.button != 0) {\n return;\n }\n\n ref.current = ref.current.pointerDownId\n ? InitialPressState\n : { pointerDownId: e.pointerId, startTime: e.timeStamp };\n }, []);\n\n const onPointerUp = useCallback(\n (e: PointerEvent) => {\n if (e.pointerId === ref.current.pointerDownId) {\n const longPressTime = e.timeStamp - ref.current.startTime;\n // 250ms minimum longPress time based on numbers used in Hammer\n if (longPressTime > minimumTime) {\n onLongPress({ x: e.offsetX, y: e.offsetY });\n }\n }\n clearLongPress();\n },\n [onLongPress]\n );\n\n const clearLongPress = useCallback(() => {\n ref.current = InitialPressState;\n }, []);\n\n const longPressProps = isDisabled\n ? {}\n : {\n onPointerDown,\n onPointerUp,\n onPointerLeave: clearLongPress,\n onPointerCancel: clearLongPress\n };\n\n return {\n longPressProps\n };\n}\n"],"names":["InitialPressState","pointerDownId","startTime","onLongPress","isDisabled","minimumTime","ref","useRef","onPointerDown","useCallback","e","pointerType","button","current","pointerId","timeStamp","onPointerUp","x","offsetX","y","offsetY","clearLongPress","longPressProps","onPointerLeave","onPointerCancel"],"mappings":"6DAyBA,MAAMA,EAAoB,CACxBC,cAAe,KACfC,UAAW,kBAKG,SACdC,GACAC,WAAEA,GAAa,EAAfC,YAAsBA,EAJG,KAIoD,CAC3ED,YAAY,EACZC,YANuB,MASzB,MAAMC,EAAMC,SAAuBP,GAE7BQ,EAAgBC,cAAaC,IAEZ,SAAjBA,EAAEC,aAAsC,GAAZD,EAAEE,SAIlCN,EAAIO,QAAUP,EAAIO,QAAQZ,cACtBD,EACA,CAAEC,cAAeS,EAAEI,UAAWZ,UAAWQ,EAAEK,aAC9C,IAEGC,EAAcP,cACjBC,IACC,GAAIA,EAAEI,YAAcR,EAAIO,QAAQZ,cAAe,CACvBS,EAAEK,UAAYT,EAAIO,QAAQX,UAE5BG,GAClBF,EAAY,CAAEc,EAAGP,EAAEQ,QAASC,EAAGT,EAAEU,UAGrCC,KAEF,CAAClB,IAGGkB,EAAiBZ,EAAAA,YAAY,KACjCH,EAAIO,QAAUb,GACb,IAWH,MAAO,CACLsB,eAVqBlB,EACnB,GACA,CACEI,cAAAA,EACAQ,YAAAA,EACAO,eAAgBF,EAChBG,gBAAiBH"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact","preact/hooks"],(function(e,t,s){"use strict";const n=t.createContext({});e.MessagesContext=n,e.useMessagesContext=function(){return s.useContext(n)},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact","preact/hooks"],function(e,t,s){"use strict";const n=t.createContext({});e.MessagesContext=n,e.useMessagesContext=function(){return s.useContext(n)},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useMessagesContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useMessagesContext.js","sources":["../../../src/hooks/UNSAFE_useMessagesContext/MessagesContext.ts","../../../src/hooks/UNSAFE_useMessagesContext/useMessagesContext.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 { createContext } from 'preact';\n\n/**\n * Messages Context\n */\ntype MessagesContextProps = {\n /**\n * An optional function that adds busy state to the root element\n */\n addBusyState?: (description?: string) => () => void;\n};\n\n/**\n * Context which the parent custom element components can use for passing down\n * the busy context\n */\nexport const MessagesContext = createContext<MessagesContextProps>({});\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 { useContext } from 'preact/hooks';\nimport { MessagesContext } from './MessagesContext';\n\n/**\n * Uses the MessagesContext if one is available.\n *\n * @returns The context from the closes provider\n */\nexport function useMessagesContext() {\n return useContext(MessagesContext);\n}\n"],"names":["MessagesContext","createContext","useContext"],"mappings":"+EAwBaA,EAAkBC,EAAaA,cAAuB,wDCPjE,OAAOC,EAAAA,WAAWF"}
1
+ {"version":3,"file":"UNSAFE_useMessagesContext.js","sources":["../../../src/hooks/UNSAFE_useMessagesContext/MessagesContext.ts","../../../src/hooks/UNSAFE_useMessagesContext/useMessagesContext.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 { createContext } from 'preact';\n\n/**\n * Messages Context\n */\ntype MessagesContextProps = {\n /**\n * An optional function that adds busy state to the root element\n */\n addBusyState?: (description?: string) => () => void;\n};\n\n/**\n * Context which the parent custom element components can use for passing down\n * the busy context\n */\nexport const MessagesContext = createContext<MessagesContextProps>({});\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 { useContext } from 'preact/hooks';\nimport { MessagesContext } from './MessagesContext';\n\n/**\n * Uses the MessagesContext if one is available.\n *\n * @returns The context from the closes provider\n */\nexport function useMessagesContext() {\n return useContext(MessagesContext);\n}\n"],"names":["MessagesContext","createContext","useContext"],"mappings":"8EAwBaA,EAAkBC,EAAaA,cAAuB,wDCPjE,OAAOC,EAAAA,WAAWF"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks","../utils/UNSAFE_arrayUtils"],(function(e,n,r){"use strict";const t=e=>{var n;return null!==(n=null==e?void 0:e.ownerDocument)&&void 0!==n?n:document};e.useOutsideClick=({isDisabled:e=!1,ref:o,handler:s})=>{const u=n.useRef({isMouseDown:!1}).current;n.useEffect((()=>{const n=r.coerceArray(o);if(!s||e||n.length>0&&n.findIndex((e=>null===e.current))>-1)return;const i=()=>{u.isMouseDown=!0},c=e=>{u.isMouseDown&&((e,n)=>{const r=e.target;if(r&&!t(r).contains(r))return!1;return n.every((e=>{var n;return!(null===(n=e.current)||void 0===n?void 0:n.contains(r))}))})(e,n)&&(u.isMouseDown=!1,null==s||s(e))},d=n[0],l=t(d.current);return l?(l.addEventListener("mousedown",i,!0),l.addEventListener("mouseup",c,!0),()=>{l.removeEventListener("mousedown",i,!0),l.removeEventListener("mouseup",c,!0)}):void 0}),[e,s,o,u])},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks","../utils/UNSAFE_arrayUtils"],function(e,n,r){"use strict";const t=e=>{var n;return null!==(n=null==e?void 0:e.ownerDocument)&&void 0!==n?n:document};e.useOutsideClick=({isDisabled:e=!1,ref:o,handler:s})=>{const u=n.useRef({isMouseDown:!1}).current;n.useEffect(()=>{const n=r.coerceArray(o);if(!s||e||n.length>0&&n.findIndex(e=>null===e.current)>-1)return;const i=()=>{u.isMouseDown=!0},c=e=>{u.isMouseDown&&((e,n)=>{const r=e.target;if(r&&!t(r).contains(r))return!1;return n.every(e=>{var n;return!(null===(n=e.current)||void 0===n?void 0:n.contains(r))})})(e,n)&&(u.isMouseDown=!1,null==s||s(e))},d=n[0],l=t(d.current);return l?(l.addEventListener("mousedown",i,!0),l.addEventListener("mouseup",c,!0),()=>{l.removeEventListener("mousedown",i,!0),l.removeEventListener("mouseup",c,!0)}):void 0},[e,s,o,u])},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useOutsideClick.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useOutsideClick.js","sources":["../../../src/hooks/UNSAFE_useOutsideClick/useOutsideClick.ts"],"sourcesContent":["/**\n * `useClickOutside` hook for capturing clicking outside of an element\n */\nimport { RefObject } from 'preact';\nimport { useEffect, useRef } from 'preact/hooks';\nimport { coerceArray } from '../../utils/UNSAFE_arrayUtils';\n\ntype Props = {\n /**\n * If true outside click is disabled\n */\n isDisabled?: boolean;\n /**\n * Reference to element or array of elements relative to which outside click is performed\n */\n ref: RefObject<HTMLElement> | RefObject<HTMLElement>[];\n /**\n * Outside click 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 useOutsideClick = ({ isDisabled: disabled = false, ref, handler }: Props) => {\n // use ref to store mutable data and not cause a re-render\n const stateRef = useRef({\n isMouseDown: false\n });\n\n const state = stateRef.current;\n\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 const onMouseDown = () => {\n state.isMouseDown = true;\n };\n\n const onMouseUp = (event: MouseEvent) => {\n if (state.isMouseDown && isPointOutside(event, refs)) {\n state.isMouseDown = false;\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 doc.addEventListener('mouseup', onMouseUp, true);\n\n return () => {\n doc.removeEventListener('mousedown', onMouseDown, true);\n doc.removeEventListener('mouseup', onMouseUp, true);\n };\n }\n return undefined;\n }, [disabled, handler, ref, state]);\n};\n"],"names":["getDocument","node","_a","ownerDocument","document","isDisabled","disabled","ref","handler","state","useRef","isMouseDown","current","useEffect","refs","coerceArray","length","findIndex","elRef","onMouseDown","onMouseUp","event","target","contains","every","isPointOutside","firstElRef","doc","addEventListener","removeEventListener"],"mappings":"6FAsBA,MASMA,EAAeC,IAAyB,IAAAC,EAAC,eAAAA,EAAAD,MAAAA,OAAI,EAAJA,EAAME,6BAAiBC,4BAEvC,EAAGC,WAAYC,GAAW,EAAOC,IAAAA,EAAKC,QAAAA,MAEnE,MAIMC,EAJWC,EAAAA,OAAO,CACtBC,aAAa,IAGQC,QAEvBC,EAAAA,WAAU,KACR,MAAMC,EAAOC,cAAYR,GACzB,IACGC,GACDF,GACCQ,EAAKE,OAAS,GAAKF,EAAKG,WAAWC,GAA4B,OAAlBA,EAAMN,WAAqB,EAEzE,OACF,MAAMO,EAAc,KAClBV,EAAME,aAAc,GAGhBS,EAAaC,IACbZ,EAAME,aAhCO,EAACU,EAAcd,KACpC,MAAMe,EAASD,EAAMC,OACrB,GAAIA,IACUtB,EAAYsB,GACfC,SAASD,GAAS,OAAO,EAEpC,OAAOf,EAAIiB,OAAON,IAAU,IAAAhB,EAAA,QAAc,UAAbgB,EAAMN,eAAO,IAAAV,OAAA,EAAAA,EAAEqB,SAASD,QA0BxBG,CAAeJ,EAAOP,KAC7CL,EAAME,aAAc,EACpBH,MAAAA,GAAAA,EAAUa,KAGRK,EAAaZ,EAAK,GAClBa,EAAM3B,EAAY0B,EAAWd,SACnC,OAAIe,GACFA,EAAIC,iBAAiB,YAAaT,GAAa,GAC/CQ,EAAIC,iBAAiB,UAAWR,GAAW,GAEpC,KACLO,EAAIE,oBAAoB,YAAaV,GAAa,GAClDQ,EAAIE,oBAAoB,UAAWT,GAAW,UANlD,IAUC,CAACd,EAAUE,EAASD,EAAKE"}
1
+ {"version":3,"file":"UNSAFE_useOutsideClick.js","sources":["../../../src/hooks/UNSAFE_useOutsideClick/useOutsideClick.ts"],"sourcesContent":["/**\n * `useClickOutside` hook for capturing clicking outside of an element\n */\nimport { RefObject } from 'preact';\nimport { useEffect, useRef } from 'preact/hooks';\nimport { coerceArray } from '../../utils/UNSAFE_arrayUtils';\n\ntype Props = {\n /**\n * If true outside click is disabled\n */\n isDisabled?: boolean;\n /**\n * Reference to element or array of elements relative to which outside click is performed\n */\n ref: RefObject<HTMLElement> | RefObject<HTMLElement>[];\n /**\n * Outside click 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 useOutsideClick = ({ isDisabled: disabled = false, ref, handler }: Props) => {\n // use ref to store mutable data and not cause a re-render\n const stateRef = useRef({\n isMouseDown: false\n });\n\n const state = stateRef.current;\n\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 const onMouseDown = () => {\n state.isMouseDown = true;\n };\n\n const onMouseUp = (event: MouseEvent) => {\n if (state.isMouseDown && isPointOutside(event, refs)) {\n state.isMouseDown = false;\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 doc.addEventListener('mouseup', onMouseUp, true);\n\n return () => {\n doc.removeEventListener('mousedown', onMouseDown, true);\n doc.removeEventListener('mouseup', onMouseUp, true);\n };\n }\n return undefined;\n }, [disabled, handler, ref, state]);\n};\n"],"names":["getDocument","node","_a","ownerDocument","document","isDisabled","disabled","ref","handler","state","useRef","isMouseDown","current","useEffect","refs","coerceArray","length","findIndex","elRef","onMouseDown","onMouseUp","event","target","contains","every","isPointOutside","firstElRef","doc","addEventListener","removeEventListener"],"mappings":"4FAsBA,MASMA,EAAeC,IAAyB,IAAAC,EAAC,eAAAA,EAAAD,MAAAA,OAAI,EAAJA,EAAME,6BAAiBC,4BAEvC,EAAGC,WAAYC,GAAW,EAAOC,IAAAA,EAAKC,QAAAA,MAEnE,MAIMC,EAJWC,EAAAA,OAAO,CACtBC,aAAa,IAGQC,QAEvBC,EAAAA,UAAU,KACR,MAAMC,EAAOC,cAAYR,GACzB,IACGC,GACDF,GACCQ,EAAKE,OAAS,GAAKF,EAAKG,UAAWC,GAA4B,OAAlBA,EAAMN,UAAqB,EAEzE,OACF,MAAMO,EAAc,KAClBV,EAAME,aAAc,GAGhBS,EAAaC,IACbZ,EAAME,aAhCO,EAACU,EAAcd,KACpC,MAAMe,EAASD,EAAMC,OACrB,GAAIA,IACUtB,EAAYsB,GACfC,SAASD,GAAS,OAAO,EAEpC,OAAOf,EAAIiB,MAAON,IAAU,IAAAhB,EAAA,QAAc,UAAbgB,EAAMN,eAAO,IAAAV,OAAA,EAAAA,EAAEqB,SAASD,OA0BxBG,CAAeJ,EAAOP,KAC7CL,EAAME,aAAc,EACpBH,MAAAA,GAAAA,EAAUa,KAGRK,EAAaZ,EAAK,GAClBa,EAAM3B,EAAY0B,EAAWd,SACnC,OAAIe,GACFA,EAAIC,iBAAiB,YAAaT,GAAa,GAC/CQ,EAAIC,iBAAiB,UAAWR,GAAW,GAEpC,KACLO,EAAIE,oBAAoB,YAAaV,GAAa,GAClDQ,EAAIE,oBAAoB,UAAWT,GAAW,UANlD,GAUC,CAACd,EAAUE,EAASD,EAAKE"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks"],(function(e,t){"use strict";e.usePan=function(e,{threshold:n=50,minimumTime:r=500,isDisabled:s=!1}={threshold:50,minimumTime:500,isDisabled:!1}){const f=t.useRef({pointerDownId:0,startTime:0,prevOffsetX:0,prevOffsetY:0}),o=t.useCallback((t=>{f.current.pointerDownId?u():(f.current={pointerDownId:t.pointerId,startTime:t.timeStamp,prevOffsetX:t.offsetX,prevOffsetY:t.offsetY},null==e||e({x:t.clientX,y:t.clientY,status:"start"}))}),[]),i=t.useCallback((t=>{if(t.pointerId===f.current.pointerDownId&&f.current.startTime&&t.timeStamp-f.current.startTime>=r){const r=t.offsetX-f.current.prevOffsetX,s=t.offsetY-f.current.prevOffsetY;Math.abs(r)>Math.abs(s)?(f.current.prevOffsetX-t.offsetX>n||t.offsetX-f.current.prevOffsetX>n)&&(null==e||e({x:t.clientX,y:t.clientY,status:"end"})):(f.current.prevOffsetY-t.offsetY>n||t.offsetY-f.current.prevOffsetY>n)&&(null==e||e({x:t.clientX,y:t.clientY,status:"end"}))}u()}),[n,e]),u=t.useCallback((()=>{f.current={pointerDownId:null,startTime:null,prevOffsetX:0,prevOffsetY:0}}),[]);return{panProps:s?{}:{onPointerDown:o,onPointerUp:i,onPointerMove:t=>{f.current.pointerDownId===t.pointerId&&(null==e||e({x:t.clientX,y:t.clientY,status:"move"}))},onPointerCancel:u}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks"],function(e,t){"use strict";e.usePan=function(e,{threshold:n=50,minimumTime:r=500,isDisabled:s=!1}={threshold:50,minimumTime:500,isDisabled:!1}){const f=t.useRef({pointerDownId:0,startTime:0,prevOffsetX:0,prevOffsetY:0}),o=t.useCallback(t=>{f.current.pointerDownId?u():(f.current={pointerDownId:t.pointerId,startTime:t.timeStamp,prevOffsetX:t.offsetX,prevOffsetY:t.offsetY},null==e||e({x:t.clientX,y:t.clientY,status:"start"}))},[]),i=t.useCallback(t=>{if(t.pointerId===f.current.pointerDownId&&f.current.startTime&&t.timeStamp-f.current.startTime>=r){const r=t.offsetX-f.current.prevOffsetX,s=t.offsetY-f.current.prevOffsetY;Math.abs(r)>Math.abs(s)?(f.current.prevOffsetX-t.offsetX>n||t.offsetX-f.current.prevOffsetX>n)&&(null==e||e({x:t.clientX,y:t.clientY,status:"end"})):(f.current.prevOffsetY-t.offsetY>n||t.offsetY-f.current.prevOffsetY>n)&&(null==e||e({x:t.clientX,y:t.clientY,status:"end"}))}u()},[n,e]),u=t.useCallback(()=>{f.current={pointerDownId:null,startTime:null,prevOffsetX:0,prevOffsetY:0}},[]);return{panProps:s?{}:{onPointerDown:o,onPointerUp:i,onPointerMove:t=>{f.current.pointerDownId===t.pointerId&&(null==e||e({x:t.clientX,y:t.clientY,status:"move"}))},onPointerCancel:u}}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_usePan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_usePan.js","sources":["../../../src/hooks/UNSAFE_usePan/usePan.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\n/*\nthreshold: Minimal distance in pixels required before recognizing\n*/\ntype PanOptions = {\n threshold?: number;\n minimumTime?: number;\n isDisabled?: boolean;\n};\n\ntype PanInfo = {\n x: number;\n y: number;\n status: 'start' | 'end' | 'move';\n};\n\ntype PanState = {\n pointerDownId: number | null;\n startTime: number | null;\n prevOffsetX: number;\n prevOffsetY: number;\n};\n\nexport function usePan(\n onPan: (e: PanInfo) => void,\n { threshold = 50, minimumTime = 500, isDisabled = false }: PanOptions = {\n threshold: 50,\n minimumTime: 500,\n isDisabled: false\n }\n): { panProps: Record<string, any> } {\n const ref = useRef<PanState>({\n pointerDownId: 0,\n startTime: 0,\n prevOffsetX: 0,\n prevOffsetY: 0\n });\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n if (!ref.current.pointerDownId) {\n ref.current = {\n pointerDownId: e.pointerId,\n startTime: e.timeStamp,\n prevOffsetX: e.offsetX,\n prevOffsetY: e.offsetY\n };\n onPan?.({ x: e.clientX, y: e.clientY, status: 'start' });\n } else {\n clearPan();\n }\n }, []);\n\n const onPointerMove = (e: PointerEvent) => {\n if (ref.current.pointerDownId === e.pointerId) {\n onPan?.({ x: e.clientX, y: e.clientY, status: 'move' });\n }\n };\n\n const onPointerUp = useCallback(\n (ev: PointerEvent) => {\n if (ev.pointerId === ref.current.pointerDownId) {\n if (ref.current.startTime && ev.timeStamp - ref.current.startTime >= minimumTime) {\n const horizontalThreshold = ev.offsetX - ref.current.prevOffsetX;\n const verticalThreshold = ev.offsetY - ref.current.prevOffsetY;\n if (Math.abs(horizontalThreshold) > Math.abs(verticalThreshold)) {\n // pan-left or pan-right\n if (ref.current.prevOffsetX - ev.offsetX > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n } else if (ev.offsetX - ref.current.prevOffsetX > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n }\n } else {\n // pan-up or pan-down\n if (ref.current.prevOffsetY - ev.offsetY > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n } else if (ev.offsetY - ref.current.prevOffsetY > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n }\n }\n }\n }\n // state would be reset to its original state whether pan is completed or cancelled\n clearPan();\n },\n [threshold, onPan]\n );\n\n const clearPan = useCallback(() => {\n ref.current = {\n pointerDownId: null,\n startTime: null,\n prevOffsetX: 0,\n prevOffsetY: 0\n };\n }, []);\n\n const panProps = isDisabled\n ? {}\n : {\n /** event handlers to spread on the target element. */\n onPointerDown,\n onPointerUp,\n onPointerMove,\n onPointerCancel: clearPan\n };\n\n return {\n panProps\n };\n}\n"],"names":["onPan","threshold","minimumTime","isDisabled","ref","useRef","pointerDownId","startTime","prevOffsetX","prevOffsetY","onPointerDown","useCallback","e","current","clearPan","pointerId","timeStamp","offsetX","offsetY","x","clientX","y","clientY","status","onPointerUp","ev","horizontalThreshold","verticalThreshold","Math","abs","panProps","onPointerMove","onPointerCancel"],"mappings":"gFAiCEA,GACAC,UAAEA,EAAY,GAAdC,YAAkBA,EAAc,IAAhCC,WAAqCA,GAAa,GAAsB,CACtEF,UAAW,GACXC,YAAa,IACbC,YAAY,IAGd,MAAMC,EAAMC,EAAAA,OAAiB,CAC3BC,cAAe,EACfC,UAAW,EACXC,YAAa,EACbC,YAAa,IAGTC,EAAgBC,eAAaC,IAC5BR,EAAIS,QAAQP,cASfQ,KARAV,EAAIS,QAAU,CACZP,cAAeM,EAAEG,UACjBR,UAAWK,EAAEI,UACbR,YAAaI,EAAEK,QACfR,YAAaG,EAAEM,SAEjBlB,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGP,EAAEQ,QAASC,EAAGT,EAAEU,QAASC,OAAQ,aAI/C,IAQGC,EAAcb,eACjBc,IACC,GAAIA,EAAGV,YAAcX,EAAIS,QAAQP,eAC3BF,EAAIS,QAAQN,WAAakB,EAAGT,UAAYZ,EAAIS,QAAQN,WAAaL,EAAa,CAChF,MAAMwB,EAAsBD,EAAGR,QAAUb,EAAIS,QAAQL,YAC/CmB,EAAoBF,EAAGP,QAAUd,EAAIS,QAAQJ,YAC/CmB,KAAKC,IAAIH,GAAuBE,KAAKC,IAAIF,IAEvCvB,EAAIS,QAAQL,YAAciB,EAAGR,QAAUhB,GAEhCwB,EAAGR,QAAUb,EAAIS,QAAQL,YAAcP,KADhDD,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGM,EAAGL,QAASC,EAAGI,EAAGH,QAASC,OAAQ,UAM9CnB,EAAIS,QAAQJ,YAAcgB,EAAGP,QAAUjB,GAEhCwB,EAAGP,QAAUd,EAAIS,QAAQJ,YAAcR,KADhDD,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGM,EAAGL,QAASC,EAAGI,EAAGH,QAASC,OAAQ,SAQxDT,MAEF,CAACb,EAAWD,IAGRc,EAAWH,EAAAA,aAAY,KAC3BP,EAAIS,QAAU,CACZP,cAAe,KACfC,UAAW,KACXC,YAAa,EACbC,YAAa,KAEd,IAYH,MAAO,CACLqB,SAXe3B,EACb,GACA,CAEEO,cAAAA,EACAc,YAAAA,EACAO,cAlDiBnB,IACjBR,EAAIS,QAAQP,gBAAkBM,EAAEG,YAClCf,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGP,EAAEQ,QAASC,EAAGT,EAAEU,QAASC,OAAQ,WAiD5CS,gBAAiBlB"}
1
+ {"version":3,"file":"UNSAFE_usePan.js","sources":["../../../src/hooks/UNSAFE_usePan/usePan.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\n/*\nthreshold: Minimal distance in pixels required before recognizing\n*/\ntype PanOptions = {\n threshold?: number;\n minimumTime?: number;\n isDisabled?: boolean;\n};\n\ntype PanInfo = {\n x: number;\n y: number;\n status: 'start' | 'end' | 'move';\n};\n\ntype PanState = {\n pointerDownId: number | null;\n startTime: number | null;\n prevOffsetX: number;\n prevOffsetY: number;\n};\n\nexport function usePan(\n onPan: (e: PanInfo) => void,\n { threshold = 50, minimumTime = 500, isDisabled = false }: PanOptions = {\n threshold: 50,\n minimumTime: 500,\n isDisabled: false\n }\n): { panProps: Record<string, any> } {\n const ref = useRef<PanState>({\n pointerDownId: 0,\n startTime: 0,\n prevOffsetX: 0,\n prevOffsetY: 0\n });\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n if (!ref.current.pointerDownId) {\n ref.current = {\n pointerDownId: e.pointerId,\n startTime: e.timeStamp,\n prevOffsetX: e.offsetX,\n prevOffsetY: e.offsetY\n };\n onPan?.({ x: e.clientX, y: e.clientY, status: 'start' });\n } else {\n clearPan();\n }\n }, []);\n\n const onPointerMove = (e: PointerEvent) => {\n if (ref.current.pointerDownId === e.pointerId) {\n onPan?.({ x: e.clientX, y: e.clientY, status: 'move' });\n }\n };\n\n const onPointerUp = useCallback(\n (ev: PointerEvent) => {\n if (ev.pointerId === ref.current.pointerDownId) {\n if (ref.current.startTime && ev.timeStamp - ref.current.startTime >= minimumTime) {\n const horizontalThreshold = ev.offsetX - ref.current.prevOffsetX;\n const verticalThreshold = ev.offsetY - ref.current.prevOffsetY;\n if (Math.abs(horizontalThreshold) > Math.abs(verticalThreshold)) {\n // pan-left or pan-right\n if (ref.current.prevOffsetX - ev.offsetX > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n } else if (ev.offsetX - ref.current.prevOffsetX > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n }\n } else {\n // pan-up or pan-down\n if (ref.current.prevOffsetY - ev.offsetY > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n } else if (ev.offsetY - ref.current.prevOffsetY > threshold) {\n onPan?.({ x: ev.clientX, y: ev.clientY, status: 'end' });\n }\n }\n }\n }\n // state would be reset to its original state whether pan is completed or cancelled\n clearPan();\n },\n [threshold, onPan]\n );\n\n const clearPan = useCallback(() => {\n ref.current = {\n pointerDownId: null,\n startTime: null,\n prevOffsetX: 0,\n prevOffsetY: 0\n };\n }, []);\n\n const panProps = isDisabled\n ? {}\n : {\n /** event handlers to spread on the target element. */\n onPointerDown,\n onPointerUp,\n onPointerMove,\n onPointerCancel: clearPan\n };\n\n return {\n panProps\n };\n}\n"],"names":["onPan","threshold","minimumTime","isDisabled","ref","useRef","pointerDownId","startTime","prevOffsetX","prevOffsetY","onPointerDown","useCallback","e","current","clearPan","pointerId","timeStamp","offsetX","offsetY","x","clientX","y","clientY","status","onPointerUp","ev","horizontalThreshold","verticalThreshold","Math","abs","panProps","onPointerMove","onPointerCancel"],"mappings":"+EAiCEA,GACAC,UAAEA,EAAY,GAAdC,YAAkBA,EAAc,IAAhCC,WAAqCA,GAAa,GAAsB,CACtEF,UAAW,GACXC,YAAa,IACbC,YAAY,IAGd,MAAMC,EAAMC,EAAAA,OAAiB,CAC3BC,cAAe,EACfC,UAAW,EACXC,YAAa,EACbC,YAAa,IAGTC,EAAgBC,cAAaC,IAC5BR,EAAIS,QAAQP,cASfQ,KARAV,EAAIS,QAAU,CACZP,cAAeM,EAAEG,UACjBR,UAAWK,EAAEI,UACbR,YAAaI,EAAEK,QACfR,YAAaG,EAAEM,SAEjBlB,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGP,EAAEQ,QAASC,EAAGT,EAAEU,QAASC,OAAQ,YAI/C,IAQGC,EAAcb,cACjBc,IACC,GAAIA,EAAGV,YAAcX,EAAIS,QAAQP,eAC3BF,EAAIS,QAAQN,WAAakB,EAAGT,UAAYZ,EAAIS,QAAQN,WAAaL,EAAa,CAChF,MAAMwB,EAAsBD,EAAGR,QAAUb,EAAIS,QAAQL,YAC/CmB,EAAoBF,EAAGP,QAAUd,EAAIS,QAAQJ,YAC/CmB,KAAKC,IAAIH,GAAuBE,KAAKC,IAAIF,IAEvCvB,EAAIS,QAAQL,YAAciB,EAAGR,QAAUhB,GAEhCwB,EAAGR,QAAUb,EAAIS,QAAQL,YAAcP,KADhDD,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGM,EAAGL,QAASC,EAAGI,EAAGH,QAASC,OAAQ,UAM9CnB,EAAIS,QAAQJ,YAAcgB,EAAGP,QAAUjB,GAEhCwB,EAAGP,QAAUd,EAAIS,QAAQJ,YAAcR,KADhDD,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGM,EAAGL,QAASC,EAAGI,EAAGH,QAASC,OAAQ,SAQxDT,KAEF,CAACb,EAAWD,IAGRc,EAAWH,EAAAA,YAAY,KAC3BP,EAAIS,QAAU,CACZP,cAAe,KACfC,UAAW,KACXC,YAAa,EACbC,YAAa,IAEd,IAYH,MAAO,CACLqB,SAXe3B,EACb,GACA,CAEEO,cAAAA,EACAc,YAAAA,EACAO,cAlDiBnB,IACjBR,EAAIS,QAAQP,gBAAkBM,EAAEG,YAClCf,MAAAA,GAAAA,EAAQ,CAAEmB,EAAGP,EAAEQ,QAASC,EAAGT,EAAEU,QAASC,OAAQ,WAiD5CS,gBAAiBlB"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/jsx-runtime","../UNSAFE_PrefixSuffix","./UNSAFE_useUser",'module',"../utils/UNSAFE_classNames","../classNames-3c307969","preact/hooks","../UNSAFE_Environment","preact","../UNSAFE_Layer","preact/compat"],(function(e,i,s,t,n,r,a,d,o,f,u,l){"use strict";e.usePrefixSuffix=({baseId:e,hasEndContent:n,hasInsideLabel:r,hasStartContent:a,hasValue:d,isDisabled:o,isFocused:f,labelId:u,prefix:l,suffix:x,value:c})=>{const{direction:v}=t.useUser(),$=`${e}-prefix`,h=`${e}-suffix`,S=void 0!==l&&""!==l,b=void 0!==x&&""!==x,p=S&&!o&&(d||f)?i.jsx(s.PrefixSuffix,{id:$,hasEndContent:n,hasInsideLabel:r,hasStartContent:a,isDisabled:o,isFocused:f,text:l,variant:"prefix"}):void 0,E=b&&!o&&(d||f)?i.jsx(s.PrefixSuffix,{id:h,hasInsideLabel:r,isDisabled:o,isFocused:f,text:x,variant:"suffix"}):void 0,F=S||b?function(e,i,s,t,n){if(!i)return n;const r="ltr"===e,a=void 0===s?"":r?`${s} `:` ${s}`,d=void 0===t?"":r?` ${t}`:`${t} `,o=`${a}${n}${d}`,f=`${d}${n}${a}`;return r?o:f}(v,d,l,x,c):c,N=S||b?function(e,i,s){const t=null!=e?e:"",n=void 0===i?"":0===t.length?i:` ${i}`,r=void 0===s?"":0===t.length&&0===n.length?s:` ${s}`,a=`${t}${n}${r}`;return 0===a.length?void 0:a}(u,S?$:void 0,b?h:void 0):void 0;return{renderedPrefix:p,renderedSuffix:E,text:F,ariaLabelledBy:N}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/jsx-runtime","../UNSAFE_PrefixSuffix","./UNSAFE_useUser",'module',"../utils/UNSAFE_classNames","../classNames-e580c7c7","preact/hooks","../UNSAFE_Environment","preact","../UNSAFE_Layer","preact/compat"],function(e,i,s,t,n,r,a,d,o,f,u,l){"use strict";e.usePrefixSuffix=({baseId:e,hasEndContent:n,hasInsideLabel:r,hasStartContent:a,hasValue:d,isDisabled:o,isFocused:f,labelId:u,prefix:l,suffix:x,value:c})=>{const{direction:v}=t.useUser(),$=`${e}-prefix`,h=`${e}-suffix`,S=void 0!==l&&""!==l,b=void 0!==x&&""!==x,p=S&&!o&&(d||f)?i.jsx(s.PrefixSuffix,{id:$,hasEndContent:n,hasInsideLabel:r,hasStartContent:a,isDisabled:o,isFocused:f,text:l,variant:"prefix"}):void 0,E=b&&!o&&(d||f)?i.jsx(s.PrefixSuffix,{id:h,hasInsideLabel:r,isDisabled:o,isFocused:f,text:x,variant:"suffix"}):void 0,F=S||b?function(e,i,s,t,n){if(!i)return n;const r="ltr"===e,a=void 0===s?"":r?`${s} `:` ${s}`,d=void 0===t?"":r?` ${t}`:`${t} `,o=`${a}${n}${d}`,f=`${d}${n}${a}`;return r?o:f}(v,d,l,x,c):c,N=S||b?function(e,i,s){const t=null!=e?e:"",n=void 0===i?"":0===t.length?i:` ${i}`,r=void 0===s?"":0===t.length&&0===n.length?s:` ${s}`,a=`${t}${n}${r}`;return 0===a.length?void 0:a}(u,S?$:void 0,b?h:void 0):void 0;return{renderedPrefix:p,renderedSuffix:E,text:F,ariaLabelledBy:N}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_usePrefixSuffix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_usePrefixSuffix.js","sources":["../../../src/hooks/UNSAFE_usePrefixSuffix/usePrefixSuffix.tsx"],"sourcesContent":["import { PrefixSuffix } from '../../UNSAFE_PrefixSuffix';\nimport { useUser } from '../UNSAFE_useUser';\n\ntype Props = {\n baseId: string;\n hasEndContent?: boolean;\n hasInsideLabel?: boolean;\n hasStartContent?: boolean;\n hasValue?: boolean;\n isDisabled?: boolean;\n isFocused?: boolean;\n labelId?: string;\n prefix?: string;\n suffix?: string;\n value?: string;\n};\n\n// returns the prefix and/or suffix components\n// if the condition in which they should be shown is met.\nexport const usePrefixSuffix = ({\n baseId,\n hasEndContent,\n hasInsideLabel,\n hasStartContent,\n hasValue,\n isDisabled,\n isFocused,\n labelId,\n prefix,\n suffix,\n value\n}: Props) => {\n const { direction } = useUser();\n // for accessibility, if you have a prefix, then you must have a prefixId\n const prefixId = `${baseId}-prefix`;\n const suffixId = `${baseId}-suffix`;\n const hasPrefixText = prefix !== undefined && prefix !== '';\n const hasSuffixText = suffix !== undefined && suffix !== '';\n\n const renderedPrefix =\n hasPrefixText && !isDisabled && (hasValue || isFocused) ? (\n <PrefixSuffix\n id={prefixId}\n hasEndContent={hasEndContent}\n hasInsideLabel={hasInsideLabel}\n hasStartContent={hasStartContent}\n isDisabled={isDisabled}\n isFocused={isFocused}\n text={prefix}\n variant=\"prefix\"\n />\n ) : undefined;\n\n const renderedSuffix =\n hasSuffixText && !isDisabled && (hasValue || isFocused) ? (\n <PrefixSuffix\n id={suffixId}\n hasInsideLabel={hasInsideLabel}\n isDisabled={isDisabled}\n isFocused={isFocused}\n text={suffix}\n variant=\"suffix\"\n />\n ) : undefined;\n\n // get value and prefix/suffix if available and return as plain text.\n const text =\n hasPrefixText || hasSuffixText ? getText(direction, hasValue, prefix, suffix, value) : value;\n // get aria-labelledby if there is a prefix or suffix\n const ariaLabelledBy =\n hasPrefixText || hasSuffixText\n ? getAriaLabelledBy(\n labelId,\n hasPrefixText ? prefixId : undefined,\n hasSuffixText ? suffixId : undefined\n )\n : undefined;\n\n return { renderedPrefix, renderedSuffix, text, ariaLabelledBy };\n};\n\n/**\n * Returns the value to render in plain text, taking into account the prefix and suffix\n * and reading direction. Do not add a prefix/suffix if the component doesn't have a value.\n * @returns string | undefined\n */\nfunction getText(\n direction: 'ltr' | 'rtl',\n hasValue?: boolean,\n prefix?: string,\n suffix?: string,\n value?: string\n) {\n // Do not add a prefix/suffix if the component doesn't have a value.\n if (!hasValue) {\n return value;\n }\n // TODO: direction is 'ltr' even though the storybook is rtl.\n // Test this when the storybook bug is fixed. https://jira.oraclecorp.com/jira/browse/JET-51816?src=confmacro\n const isLTR = direction === 'ltr';\n const plainPrefix = prefix === undefined ? `` : isLTR ? `${prefix} ` : ` ${prefix}`;\n const plainSuffix = suffix === undefined ? `` : isLTR ? ` ${suffix}` : `${suffix} `;\n\n const ltrPlainText = `${plainPrefix}${value}${plainSuffix}`;\n const rtlPlainText = `${plainSuffix}${value}${plainPrefix}`;\n return isLTR ? ltrPlainText : rtlPlainText;\n}\n\nfunction getAriaLabelledBy(labelId?: string, prefixId?: string, suffixId?: string) {\n const label = labelId ?? '';\n const prefix = prefixId === undefined ? '' : label.length === 0 ? prefixId : ` ${prefixId}`;\n const suffix =\n suffixId === undefined\n ? ''\n : label.length === 0 && prefix.length === 0\n ? suffixId\n : ` ${suffixId}`;\n const ariaLabelledBy = `${label}${prefix}${suffix}`;\n return ariaLabelledBy.length === 0 ? undefined : ariaLabelledBy;\n}\n"],"names":["baseId","hasEndContent","hasInsideLabel","hasStartContent","hasValue","isDisabled","isFocused","labelId","prefix","suffix","value","direction","useUser","prefixId","suffixId","hasPrefixText","undefined","hasSuffixText","renderedPrefix","_jsx","jsx","PrefixSuffix","id","text","variant","renderedSuffix","isLTR","plainPrefix","plainSuffix","ltrPlainText","rtlPlainText","getText","ariaLabelledBy","label","length","getAriaLabelledBy"],"mappings":"wSAmB+B,EAC7BA,OAAAA,EACAC,cAAAA,EACAC,eAAAA,EACAC,gBAAAA,EACAC,SAAAA,EACAC,WAAAA,EACAC,UAAAA,EACAC,QAAAA,EACAC,OAAAA,EACAC,OAAAA,EACAC,MAAAA,MAEA,MAAMC,UAAEA,GAAcC,EAAAA,UAEhBC,EAAc,GAAAb,WACdc,EAAc,GAAAd,WACde,OAA2BC,IAAXR,GAAmC,KAAXA,EACxCS,OAA2BD,IAAXP,GAAmC,KAAXA,EAExCS,EACJH,IAAkBV,IAAeD,GAAYE,GAC3Ca,EAACC,IAAAC,EAAYA,aACX,CAAAC,GAAIT,EACJZ,cAAeA,EACfC,eAAgBA,EAChBC,gBAAiBA,EACjBE,WAAYA,EACZC,UAAWA,EACXiB,KAAMf,EACNgB,QAAQ,gBAERR,EAEAS,EACJR,IAAkBZ,IAAeD,GAAYE,GAC3Ca,MAACE,EAAAA,aACC,CAAAC,GAAIR,EACJZ,eAAgBA,EAChBG,WAAYA,EACZC,UAAWA,EACXiB,KAAMd,EACNe,QAAQ,gBAERR,EAGAO,EACJR,GAAiBE,EAmBrB,SACEN,EACAP,EACAI,EACAC,EACAC,GAGA,IAAKN,EACH,OAAOM,EAIT,MAAMgB,EAAsB,QAAdf,EACRgB,OAAyBX,IAAXR,EAAyB,GAAGkB,EAAQ,GAAGlB,KAAY,IAAIA,IACrEoB,OAAyBZ,IAAXP,EAAyB,GAAGiB,EAAQ,IAAIjB,IAAW,GAAGA,KAEpEoB,EAAkB,GAAAF,IAAcjB,IAAQkB,IACxCE,EAAkB,GAAAF,IAAclB,IAAQiB,IAC9C,OAAOD,EAAQG,EAAeC,EAtCKC,CAAQpB,EAAWP,EAAUI,EAAQC,EAAQC,GAASA,EAEnFsB,EACJjB,GAAiBE,EAsCrB,SAA2BV,EAAkBM,EAAmBC,GAC9D,MAAMmB,EAAQ1B,MAAAA,EAAAA,EAAW,GACnBC,OAAsBQ,IAAbH,EAAyB,GAAsB,IAAjBoB,EAAMC,OAAerB,EAAW,IAAIA,IAC3EJ,OACSO,IAAbF,EACI,GACiB,IAAjBmB,EAAMC,QAAkC,IAAlB1B,EAAO0B,OAC7BpB,EACA,IAAIA,IACJkB,EAAoB,GAAAC,IAAQzB,IAASC,IAC3C,OAAiC,IAA1BuB,EAAeE,YAAelB,EAAYgB,EA/C3CG,CACE5B,EACAQ,EAAgBF,OAAWG,EAC3BC,EAAgBH,OAAWE,QAE7BA,EAEN,MAAO,CAAEE,eAAAA,EAAgBO,eAAAA,EAAgBF,KAAAA,EAAMS,eAAAA"}
1
+ {"version":3,"file":"UNSAFE_usePrefixSuffix.js","sources":["../../../src/hooks/UNSAFE_usePrefixSuffix/usePrefixSuffix.tsx"],"sourcesContent":["import { PrefixSuffix } from '../../UNSAFE_PrefixSuffix';\nimport { useUser } from '../UNSAFE_useUser';\n\ntype Props = {\n baseId: string;\n hasEndContent?: boolean;\n hasInsideLabel?: boolean;\n hasStartContent?: boolean;\n hasValue?: boolean;\n isDisabled?: boolean;\n isFocused?: boolean;\n labelId?: string;\n prefix?: string;\n suffix?: string;\n value?: string;\n};\n\n// returns the prefix and/or suffix components\n// if the condition in which they should be shown is met.\nexport const usePrefixSuffix = ({\n baseId,\n hasEndContent,\n hasInsideLabel,\n hasStartContent,\n hasValue,\n isDisabled,\n isFocused,\n labelId,\n prefix,\n suffix,\n value\n}: Props) => {\n const { direction } = useUser();\n // for accessibility, if you have a prefix, then you must have a prefixId\n const prefixId = `${baseId}-prefix`;\n const suffixId = `${baseId}-suffix`;\n const hasPrefixText = prefix !== undefined && prefix !== '';\n const hasSuffixText = suffix !== undefined && suffix !== '';\n\n const renderedPrefix =\n hasPrefixText && !isDisabled && (hasValue || isFocused) ? (\n <PrefixSuffix\n id={prefixId}\n hasEndContent={hasEndContent}\n hasInsideLabel={hasInsideLabel}\n hasStartContent={hasStartContent}\n isDisabled={isDisabled}\n isFocused={isFocused}\n text={prefix}\n variant=\"prefix\"\n />\n ) : undefined;\n\n const renderedSuffix =\n hasSuffixText && !isDisabled && (hasValue || isFocused) ? (\n <PrefixSuffix\n id={suffixId}\n hasInsideLabel={hasInsideLabel}\n isDisabled={isDisabled}\n isFocused={isFocused}\n text={suffix}\n variant=\"suffix\"\n />\n ) : undefined;\n\n // get value and prefix/suffix if available and return as plain text.\n const text =\n hasPrefixText || hasSuffixText ? getText(direction, hasValue, prefix, suffix, value) : value;\n // get aria-labelledby if there is a prefix or suffix\n const ariaLabelledBy =\n hasPrefixText || hasSuffixText\n ? getAriaLabelledBy(\n labelId,\n hasPrefixText ? prefixId : undefined,\n hasSuffixText ? suffixId : undefined\n )\n : undefined;\n\n return { renderedPrefix, renderedSuffix, text, ariaLabelledBy };\n};\n\n/**\n * Returns the value to render in plain text, taking into account the prefix and suffix\n * and reading direction. Do not add a prefix/suffix if the component doesn't have a value.\n * @returns string | undefined\n */\nfunction getText(\n direction: 'ltr' | 'rtl',\n hasValue?: boolean,\n prefix?: string,\n suffix?: string,\n value?: string\n) {\n // Do not add a prefix/suffix if the component doesn't have a value.\n if (!hasValue) {\n return value;\n }\n // TODO: direction is 'ltr' even though the storybook is rtl.\n // Test this when the storybook bug is fixed. https://jira.oraclecorp.com/jira/browse/JET-51816?src=confmacro\n const isLTR = direction === 'ltr';\n const plainPrefix = prefix === undefined ? `` : isLTR ? `${prefix} ` : ` ${prefix}`;\n const plainSuffix = suffix === undefined ? `` : isLTR ? ` ${suffix}` : `${suffix} `;\n\n const ltrPlainText = `${plainPrefix}${value}${plainSuffix}`;\n const rtlPlainText = `${plainSuffix}${value}${plainPrefix}`;\n return isLTR ? ltrPlainText : rtlPlainText;\n}\n\nfunction getAriaLabelledBy(labelId?: string, prefixId?: string, suffixId?: string) {\n const label = labelId ?? '';\n const prefix = prefixId === undefined ? '' : label.length === 0 ? prefixId : ` ${prefixId}`;\n const suffix =\n suffixId === undefined\n ? ''\n : label.length === 0 && prefix.length === 0\n ? suffixId\n : ` ${suffixId}`;\n const ariaLabelledBy = `${label}${prefix}${suffix}`;\n return ariaLabelledBy.length === 0 ? undefined : ariaLabelledBy;\n}\n"],"names":["baseId","hasEndContent","hasInsideLabel","hasStartContent","hasValue","isDisabled","isFocused","labelId","prefix","suffix","value","direction","useUser","prefixId","suffixId","hasPrefixText","undefined","hasSuffixText","renderedPrefix","_jsx","jsx","PrefixSuffix","id","text","variant","renderedSuffix","isLTR","plainPrefix","plainSuffix","ltrPlainText","rtlPlainText","getText","ariaLabelledBy","label","length","getAriaLabelledBy"],"mappings":"uSAmB+B,EAC7BA,OAAAA,EACAC,cAAAA,EACAC,eAAAA,EACAC,gBAAAA,EACAC,SAAAA,EACAC,WAAAA,EACAC,UAAAA,EACAC,QAAAA,EACAC,OAAAA,EACAC,OAAAA,EACAC,MAAAA,MAEA,MAAMC,UAAEA,GAAcC,EAAAA,UAEhBC,EAAc,GAAAb,WACdc,EAAc,GAAAd,WACde,OAA2BC,IAAXR,GAAmC,KAAXA,EACxCS,OAA2BD,IAAXP,GAAmC,KAAXA,EAExCS,EACJH,IAAkBV,IAAeD,GAAYE,GAC3Ca,EAACC,IAAAC,EAAYA,aACX,CAAAC,GAAIT,EACJZ,cAAeA,EACfC,eAAgBA,EAChBC,gBAAiBA,EACjBE,WAAYA,EACZC,UAAWA,EACXiB,KAAMf,EACNgB,QAAQ,gBAERR,EAEAS,EACJR,IAAkBZ,IAAeD,GAAYE,GAC3Ca,MAACE,EAAAA,aACC,CAAAC,GAAIR,EACJZ,eAAgBA,EAChBG,WAAYA,EACZC,UAAWA,EACXiB,KAAMd,EACNe,QAAQ,gBAERR,EAGAO,EACJR,GAAiBE,EAmBrB,SACEN,EACAP,EACAI,EACAC,EACAC,GAGA,IAAKN,EACH,OAAOM,EAIT,MAAMgB,EAAsB,QAAdf,EACRgB,OAAyBX,IAAXR,EAAyB,GAAGkB,EAAQ,GAAGlB,KAAY,IAAIA,IACrEoB,OAAyBZ,IAAXP,EAAyB,GAAGiB,EAAQ,IAAIjB,IAAW,GAAGA,KAEpEoB,EAAkB,GAAAF,IAAcjB,IAAQkB,IACxCE,EAAkB,GAAAF,IAAclB,IAAQiB,IAC9C,OAAOD,EAAQG,EAAeC,EAtCKC,CAAQpB,EAAWP,EAAUI,EAAQC,EAAQC,GAASA,EAEnFsB,EACJjB,GAAiBE,EAsCrB,SAA2BV,EAAkBM,EAAmBC,GAC9D,MAAMmB,EAAQ1B,MAAAA,EAAAA,EAAW,GACnBC,OAAsBQ,IAAbH,EAAyB,GAAsB,IAAjBoB,EAAMC,OAAerB,EAAW,IAAIA,IAC3EJ,OACSO,IAAbF,EACI,GACiB,IAAjBmB,EAAMC,QAAkC,IAAlB1B,EAAO0B,OAC7BpB,EACA,IAAIA,IACJkB,EAAoB,GAAAC,IAAQzB,IAASC,IAC3C,OAAiC,IAA1BuB,EAAeE,YAAelB,EAAYgB,EA/C3CG,CACE5B,EACAQ,EAAgBF,OAAWG,EAC3BC,EAAgBH,OAAWE,QAE7BA,EAEN,MAAO,CAAEE,eAAAA,EAAgBO,eAAAA,EAAgBF,KAAAA,EAAMS,eAAAA"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks"],(function(e,t){"use strict";const a={isDisabled:!1,isRepeat:!1,repeatDelay:500,repeatInterval:40};e.usePress=function(e,r=a){const n=Object.assign(Object.assign({},a),r),[s,c]=t.useState(!0),[l,o]=t.useState(!1),u=t.useRef(),p=t.useRef(!1),i=t=>{p.current&&e(t),u.current=setInterval(e,n.repeatInterval,t)},R=t.useCallback((t=>{"Space"!==t.code&&"Enter"!==t.code||!n.isRepeat&&t.repeat||(t.preventDefault(),o(!0),n.isRepeat&&e(t))}),[n.isRepeat,e,o]),b=t.useCallback((t=>{"Space"!==t.code&&"Enter"!==t.code||(o(!1),t.preventDefault(),n.isRepeat||e(t))}),[n.isRepeat,e,o]),C=t.useCallback((()=>{o(!1)}),[o]),k=t.useCallback((t=>{c(!1),n.isRepeat&&(p.current=!0,t.preventDefault(),e(t),u.current=setTimeout(i,n.repeatDelay,t))}),[n,e,u,c,i]),v=t.useCallback((t=>{n.isRepeat&&u.current?(p.current=!1,clearInterval(u.current),u.current=void 0):e(t)}),[n.isRepeat,u,e]),D=t.useCallback((t=>{t.stopPropagation(),s&&!l&&u.current&&e(t),c(!0)}),[c,e,s,u,l]),d=t.useCallback((t=>{t.stopPropagation(),l||e(t)}),[e,l]),f=t.useCallback((()=>{c(!0),n.isRepeat&&u.current&&clearInterval(u.current)}),[n.isRepeat,e,u,c]),P=t.useCallback((()=>{c(!0),n.isRepeat&&u.current&&clearInterval(u.current)}),[n.isRepeat,e,u,c]),y=t.useCallback((e=>{c(!0),n.isRepeat&&e.preventDefault()}),[n.isRepeat,e,c]);return{pressProps:n.isDisabled?{}:n.isRepeat?{onPointerUp:v,onPointerDown:k,onPointerOut:f,onPointerCancel:P,onKeyDown:R,onKeyUp:b,onContextMenu:y,onClick:D,onBlur:C}:{onKeyDown:R,onKeyUp:b,onBlur:C,onClick:d}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks"],function(e,t){"use strict";const a={isDisabled:!1,isRepeat:!1,repeatDelay:500,repeatInterval:40};e.usePress=function(e,r=a){const n=Object.assign(Object.assign({},a),r),[s,c]=t.useState(!0),[l,o]=t.useState(!1),u=t.useRef(),p=t.useRef(!1),i=t=>{p.current&&e(t),u.current=setInterval(e,n.repeatInterval,t)},R=t.useCallback(t=>{"Space"!==t.code&&"Enter"!==t.code||!n.isRepeat&&t.repeat||(t.preventDefault(),o(!0),n.isRepeat&&e(t))},[n.isRepeat,e,o]),b=t.useCallback(t=>{"Space"!==t.code&&"Enter"!==t.code||(o(!1),t.preventDefault(),n.isRepeat||e(t))},[n.isRepeat,e,o]),C=t.useCallback(()=>{o(!1)},[o]),k=t.useCallback(t=>{c(!1),n.isRepeat&&(p.current=!0,t.preventDefault(),e(t),u.current=setTimeout(i,n.repeatDelay,t))},[n,e,u,c,i]),v=t.useCallback(t=>{n.isRepeat&&u.current?(p.current=!1,clearInterval(u.current),u.current=void 0):e(t)},[n.isRepeat,u,e]),D=t.useCallback(t=>{t.stopPropagation(),s&&!l&&u.current&&e(t),c(!0)},[c,e,s,u,l]),d=t.useCallback(t=>{t.stopPropagation(),l||e(t)},[e,l]),f=t.useCallback(()=>{c(!0),n.isRepeat&&u.current&&clearInterval(u.current)},[n.isRepeat,e,u,c]),P=t.useCallback(()=>{c(!0),n.isRepeat&&u.current&&clearInterval(u.current)},[n.isRepeat,e,u,c]),y=t.useCallback(e=>{c(!0),n.isRepeat&&e.preventDefault()},[n.isRepeat,e,c]);return{pressProps:n.isDisabled?{}:n.isRepeat?{onPointerUp:v,onPointerDown:k,onPointerOut:f,onPointerCancel:P,onKeyDown:R,onKeyUp:b,onContextMenu:y,onClick:D,onBlur:C}:{onKeyDown:R,onKeyUp:b,onBlur:C,onClick:d}}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_usePress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_usePress.js","sources":["../../../src/hooks/UNSAFE_usePress/usePress.ts"],"sourcesContent":["import { useCallback, useState, useRef } from 'preact/hooks';\n\nexport type PressOptions = {\n isDisabled?: boolean;\n isRepeat?: boolean;\n repeatDelay?: number;\n repeatInterval?: number;\n};\n\nconst DefaultSettings = {\n isDisabled: false,\n isRepeat: false,\n repeatDelay: 500,\n repeatInterval: 40\n};\n\n/**\n * Returns a click handler that can make a target element either clickable or keyboard pressable.\n *\n * @param onPressHandler function\n * @param isRepeat boolean\n * @param repeatInterval number number of ms between events for mouse and touch\n * @param repeatDelay number number of ms before repeat events initiates\n * @param isDisabled boolean\n * @returns\n */\n\nexport function usePress(\n onPressHandler: (event: Event) => void,\n settings: PressOptions = DefaultSettings\n): { pressProps: Record<string, any> } {\n const mergedSettings = { ...DefaultSettings, ...settings };\n const [isClickable, setIsClickable] = useState<boolean>(true);\n const [isPressed, setIsPressed] = useState<boolean>(false);\n const intervalID = useRef<ReturnType<typeof setInterval>>();\n const isRepeating = useRef<boolean>(false);\n const repeatHandler = (event: Event) => {\n if (isRepeating.current) {\n onPressHandler(event);\n }\n intervalID.current = setInterval(onPressHandler, mergedSettings.repeatInterval, event); // @HTMLUpdateOK\n };\n\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (\n (event.code === 'Space' || event.code === 'Enter') &&\n (mergedSettings.isRepeat || !event.repeat)\n ) {\n event.preventDefault();\n setIsPressed(true);\n if (mergedSettings.isRepeat) {\n onPressHandler(event);\n }\n }\n },\n [mergedSettings.isRepeat, onPressHandler, setIsPressed]\n );\n\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n if (event.code === 'Space' || event.code === 'Enter') {\n setIsPressed(false);\n event.preventDefault();\n if (!mergedSettings.isRepeat) {\n onPressHandler(event);\n }\n }\n },\n [mergedSettings.isRepeat, onPressHandler, setIsPressed]\n );\n\n const onBlur = useCallback(() => {\n setIsPressed(false);\n }, [setIsPressed]);\n\n const onPointerDown = useCallback(\n (event: PointerEvent) => {\n setIsClickable(false);\n if (mergedSettings.isRepeat) {\n isRepeating.current = true;\n event.preventDefault();\n onPressHandler(event);\n intervalID.current = setTimeout(repeatHandler, mergedSettings.repeatDelay, event);\n }\n },\n [mergedSettings, onPressHandler, intervalID, setIsClickable, repeatHandler]\n );\n\n const onPointerUp = useCallback(\n (event: PointerEvent) => {\n if (mergedSettings.isRepeat && intervalID.current) {\n isRepeating.current = false;\n clearInterval(intervalID.current);\n intervalID.current = undefined;\n } else {\n onPressHandler(event);\n }\n },\n [mergedSettings.isRepeat, intervalID, onPressHandler]\n );\n\n // Keep this to permit automated invocation of target via click event\n // Need to ignore this for manual invocation whereby browser generates click\n // pointerdown/pointerup/click -> ignore click\n // keydown/keyup/click -> ignore click\n // click without pointerup or keyup -> invoke\n const onClick = useCallback(\n (event: Event) => {\n // There are use cases where pressable/clickable components (eg. Buttons) are nested inside of other\n // components that also process bubbling click events (eg. Collapsible). In order to avoid conflicting\n // processing of clicks (eg. in order to avoid the click both activating a Button as well as toggling the\n // ancestor Collapsible), we stop propagation here. That way, only the child component handles the\n // click and the ancestor component is oblivious to the fact that the click even occurred.\n event.stopPropagation();\n if (isClickable && !isPressed && intervalID.current) {\n onPressHandler(event);\n }\n setIsClickable(true);\n },\n [setIsClickable, onPressHandler, isClickable, intervalID, isPressed]\n );\n\n const onClickSingle = useCallback(\n (event: Event) => {\n // See note above about why propagation is stopped: to prevent nested component bubbling clicks issue\n event.stopPropagation();\n if (!isPressed) {\n onPressHandler(event);\n }\n },\n [onPressHandler, isPressed]\n );\n\n const onPointerOut = useCallback(() => {\n setIsClickable(true);\n if (mergedSettings.isRepeat && intervalID.current) {\n clearInterval(intervalID.current);\n }\n }, [mergedSettings.isRepeat, onPressHandler, intervalID, setIsClickable]);\n\n const onPointerCancel = useCallback(() => {\n setIsClickable(true);\n if (mergedSettings.isRepeat && intervalID.current) {\n clearInterval(intervalID.current);\n }\n }, [mergedSettings.isRepeat, onPressHandler, intervalID, setIsClickable]);\n\n const onContextMenu = useCallback(\n (event: PointerEvent) => {\n setIsClickable(true);\n if (mergedSettings.isRepeat) {\n event.preventDefault();\n }\n },\n [mergedSettings.isRepeat, onPressHandler, setIsClickable]\n );\n\n const pressProps = mergedSettings.isDisabled\n ? {}\n : mergedSettings.isRepeat\n ? {\n onPointerUp,\n onPointerDown,\n onPointerOut,\n onPointerCancel,\n onKeyDown,\n onKeyUp,\n onContextMenu,\n onClick,\n onBlur\n }\n : {\n onKeyDown,\n onKeyUp,\n onBlur,\n onClick: onClickSingle\n };\n\n return {\n pressProps\n };\n}\n"],"names":["DefaultSettings","isDisabled","isRepeat","repeatDelay","repeatInterval","onPressHandler","settings","mergedSettings","Object","assign","isClickable","setIsClickable","useState","isPressed","setIsPressed","intervalID","useRef","isRepeating","repeatHandler","event","current","setInterval","onKeyDown","useCallback","code","repeat","preventDefault","onKeyUp","onBlur","onPointerDown","setTimeout","onPointerUp","clearInterval","undefined","onClick","stopPropagation","onClickSingle","onPointerOut","onPointerCancel","onContextMenu","pressProps"],"mappings":"8DASA,MAAMA,EAAkB,CACtBC,YAAY,EACZC,UAAU,EACVC,YAAa,IACbC,eAAgB,wBAehBC,EACAC,EAAyBN,GAEzB,MAAMO,EAAsBC,OAAAC,OAAAD,OAAAC,OAAA,GAAAT,GAAoBM,IACzCI,EAAaC,GAAkBC,EAAQA,UAAU,IACjDC,EAAWC,GAAgBF,EAAQA,UAAU,GAC9CG,EAAaC,EAAAA,SACbC,EAAcD,UAAgB,GAC9BE,EAAiBC,IACjBF,EAAYG,SACdf,EAAec,GAEjBJ,EAAWK,QAAUC,YAAYhB,EAAgBE,EAAeH,eAAgBe,IAG5EG,EAAYC,eACfJ,IAEmB,UAAfA,EAAMK,MAAmC,UAAfL,EAAMK,OAChCjB,EAAeL,UAAaiB,EAAMM,SAEnCN,EAAMO,iBACNZ,GAAa,GACTP,EAAeL,UACjBG,EAAec,MAIrB,CAACZ,EAAeL,SAAUG,EAAgBS,IAGtCa,EAAUJ,eACbJ,IACoB,UAAfA,EAAMK,MAAmC,UAAfL,EAAMK,OAClCV,GAAa,GACbK,EAAMO,iBACDnB,EAAeL,UAClBG,EAAec,MAIrB,CAACZ,EAAeL,SAAUG,EAAgBS,IAGtCc,EAASL,EAAAA,aAAY,KACzBT,GAAa,KACZ,CAACA,IAEEe,EAAgBN,eACnBJ,IACCR,GAAe,GACXJ,EAAeL,WACjBe,EAAYG,SAAU,EACtBD,EAAMO,iBACNrB,EAAec,GACfJ,EAAWK,QAAUU,WAAWZ,EAAeX,EAAeJ,YAAagB,MAG/E,CAACZ,EAAgBF,EAAgBU,EAAYJ,EAAgBO,IAGzDa,EAAcR,eACjBJ,IACKZ,EAAeL,UAAYa,EAAWK,SACxCH,EAAYG,SAAU,EACtBY,cAAcjB,EAAWK,SACzBL,EAAWK,aAAUa,GAErB5B,EAAec,KAGnB,CAACZ,EAAeL,SAAUa,EAAYV,IAQlC6B,EAAUX,eACbJ,IAMCA,EAAMgB,kBACFzB,IAAgBG,GAAaE,EAAWK,SAC1Cf,EAAec,GAEjBR,GAAe,KAEjB,CAACA,EAAgBN,EAAgBK,EAAaK,EAAYF,IAGtDuB,EAAgBb,eACnBJ,IAECA,EAAMgB,kBACDtB,GACHR,EAAec,KAGnB,CAACd,EAAgBQ,IAGbwB,EAAed,EAAAA,aAAY,KAC/BZ,GAAe,GACXJ,EAAeL,UAAYa,EAAWK,SACxCY,cAAcjB,EAAWK,WAE1B,CAACb,EAAeL,SAAUG,EAAgBU,EAAYJ,IAEnD2B,EAAkBf,EAAAA,aAAY,KAClCZ,GAAe,GACXJ,EAAeL,UAAYa,EAAWK,SACxCY,cAAcjB,EAAWK,WAE1B,CAACb,EAAeL,SAAUG,EAAgBU,EAAYJ,IAEnD4B,EAAgBhB,eACnBJ,IACCR,GAAe,GACXJ,EAAeL,UACjBiB,EAAMO,mBAGV,CAACnB,EAAeL,SAAUG,EAAgBM,IAwB5C,MAAO,CACL6B,WAtBiBjC,EAAeN,WAC9B,GACAM,EAAeL,SACf,CACE6B,YAAAA,EACAF,cAAAA,EACAQ,aAAAA,EACAC,gBAAAA,EACAhB,UAAAA,EACAK,QAAAA,EACAY,cAAAA,EACAL,QAAAA,EACAN,OAAAA,GAEF,CACEN,UAAAA,EACAK,QAAAA,EACAC,OAAAA,EACAM,QAASE"}
1
+ {"version":3,"file":"UNSAFE_usePress.js","sources":["../../../src/hooks/UNSAFE_usePress/usePress.ts"],"sourcesContent":["import { useCallback, useState, useRef } from 'preact/hooks';\n\nexport type PressOptions = {\n isDisabled?: boolean;\n isRepeat?: boolean;\n repeatDelay?: number;\n repeatInterval?: number;\n};\n\nconst DefaultSettings = {\n isDisabled: false,\n isRepeat: false,\n repeatDelay: 500,\n repeatInterval: 40\n};\n\n/**\n * Returns a click handler that can make a target element either clickable or keyboard pressable.\n *\n * @param onPressHandler function\n * @param isRepeat boolean\n * @param repeatInterval number number of ms between events for mouse and touch\n * @param repeatDelay number number of ms before repeat events initiates\n * @param isDisabled boolean\n * @returns\n */\n\nexport function usePress(\n onPressHandler: (event: Event) => void,\n settings: PressOptions = DefaultSettings\n): { pressProps: Record<string, any> } {\n const mergedSettings = { ...DefaultSettings, ...settings };\n const [isClickable, setIsClickable] = useState<boolean>(true);\n const [isPressed, setIsPressed] = useState<boolean>(false);\n const intervalID = useRef<ReturnType<typeof setInterval>>();\n const isRepeating = useRef<boolean>(false);\n const repeatHandler = (event: Event) => {\n if (isRepeating.current) {\n onPressHandler(event);\n }\n intervalID.current = setInterval(onPressHandler, mergedSettings.repeatInterval, event); // @HTMLUpdateOK\n };\n\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (\n (event.code === 'Space' || event.code === 'Enter') &&\n (mergedSettings.isRepeat || !event.repeat)\n ) {\n event.preventDefault();\n setIsPressed(true);\n if (mergedSettings.isRepeat) {\n onPressHandler(event);\n }\n }\n },\n [mergedSettings.isRepeat, onPressHandler, setIsPressed]\n );\n\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n if (event.code === 'Space' || event.code === 'Enter') {\n setIsPressed(false);\n event.preventDefault();\n if (!mergedSettings.isRepeat) {\n onPressHandler(event);\n }\n }\n },\n [mergedSettings.isRepeat, onPressHandler, setIsPressed]\n );\n\n const onBlur = useCallback(() => {\n setIsPressed(false);\n }, [setIsPressed]);\n\n const onPointerDown = useCallback(\n (event: PointerEvent) => {\n setIsClickable(false);\n if (mergedSettings.isRepeat) {\n isRepeating.current = true;\n event.preventDefault();\n onPressHandler(event);\n intervalID.current = setTimeout(repeatHandler, mergedSettings.repeatDelay, event);\n }\n },\n [mergedSettings, onPressHandler, intervalID, setIsClickable, repeatHandler]\n );\n\n const onPointerUp = useCallback(\n (event: PointerEvent) => {\n if (mergedSettings.isRepeat && intervalID.current) {\n isRepeating.current = false;\n clearInterval(intervalID.current);\n intervalID.current = undefined;\n } else {\n onPressHandler(event);\n }\n },\n [mergedSettings.isRepeat, intervalID, onPressHandler]\n );\n\n // Keep this to permit automated invocation of target via click event\n // Need to ignore this for manual invocation whereby browser generates click\n // pointerdown/pointerup/click -> ignore click\n // keydown/keyup/click -> ignore click\n // click without pointerup or keyup -> invoke\n const onClick = useCallback(\n (event: Event) => {\n // There are use cases where pressable/clickable components (eg. Buttons) are nested inside of other\n // components that also process bubbling click events (eg. Collapsible). In order to avoid conflicting\n // processing of clicks (eg. in order to avoid the click both activating a Button as well as toggling the\n // ancestor Collapsible), we stop propagation here. That way, only the child component handles the\n // click and the ancestor component is oblivious to the fact that the click even occurred.\n event.stopPropagation();\n if (isClickable && !isPressed && intervalID.current) {\n onPressHandler(event);\n }\n setIsClickable(true);\n },\n [setIsClickable, onPressHandler, isClickable, intervalID, isPressed]\n );\n\n const onClickSingle = useCallback(\n (event: Event) => {\n // See note above about why propagation is stopped: to prevent nested component bubbling clicks issue\n event.stopPropagation();\n if (!isPressed) {\n onPressHandler(event);\n }\n },\n [onPressHandler, isPressed]\n );\n\n const onPointerOut = useCallback(() => {\n setIsClickable(true);\n if (mergedSettings.isRepeat && intervalID.current) {\n clearInterval(intervalID.current);\n }\n }, [mergedSettings.isRepeat, onPressHandler, intervalID, setIsClickable]);\n\n const onPointerCancel = useCallback(() => {\n setIsClickable(true);\n if (mergedSettings.isRepeat && intervalID.current) {\n clearInterval(intervalID.current);\n }\n }, [mergedSettings.isRepeat, onPressHandler, intervalID, setIsClickable]);\n\n const onContextMenu = useCallback(\n (event: PointerEvent) => {\n setIsClickable(true);\n if (mergedSettings.isRepeat) {\n event.preventDefault();\n }\n },\n [mergedSettings.isRepeat, onPressHandler, setIsClickable]\n );\n\n const pressProps = mergedSettings.isDisabled\n ? {}\n : mergedSettings.isRepeat\n ? {\n onPointerUp,\n onPointerDown,\n onPointerOut,\n onPointerCancel,\n onKeyDown,\n onKeyUp,\n onContextMenu,\n onClick,\n onBlur\n }\n : {\n onKeyDown,\n onKeyUp,\n onBlur,\n onClick: onClickSingle\n };\n\n return {\n pressProps\n };\n}\n"],"names":["DefaultSettings","isDisabled","isRepeat","repeatDelay","repeatInterval","onPressHandler","settings","mergedSettings","Object","assign","isClickable","setIsClickable","useState","isPressed","setIsPressed","intervalID","useRef","isRepeating","repeatHandler","event","current","setInterval","onKeyDown","useCallback","code","repeat","preventDefault","onKeyUp","onBlur","onPointerDown","setTimeout","onPointerUp","clearInterval","undefined","onClick","stopPropagation","onClickSingle","onPointerOut","onPointerCancel","onContextMenu","pressProps"],"mappings":"6DASA,MAAMA,EAAkB,CACtBC,YAAY,EACZC,UAAU,EACVC,YAAa,IACbC,eAAgB,wBAehBC,EACAC,EAAyBN,GAEzB,MAAMO,EAAsBC,OAAAC,OAAAD,OAAAC,OAAA,GAAAT,GAAoBM,IACzCI,EAAaC,GAAkBC,EAAQA,UAAU,IACjDC,EAAWC,GAAgBF,EAAQA,UAAU,GAC9CG,EAAaC,EAAAA,SACbC,EAAcD,UAAgB,GAC9BE,EAAiBC,IACjBF,EAAYG,SACdf,EAAec,GAEjBJ,EAAWK,QAAUC,YAAYhB,EAAgBE,EAAeH,eAAgBe,IAG5EG,EAAYC,cACfJ,IAEmB,UAAfA,EAAMK,MAAmC,UAAfL,EAAMK,OAChCjB,EAAeL,UAAaiB,EAAMM,SAEnCN,EAAMO,iBACNZ,GAAa,GACTP,EAAeL,UACjBG,EAAec,KAIrB,CAACZ,EAAeL,SAAUG,EAAgBS,IAGtCa,EAAUJ,cACbJ,IACoB,UAAfA,EAAMK,MAAmC,UAAfL,EAAMK,OAClCV,GAAa,GACbK,EAAMO,iBACDnB,EAAeL,UAClBG,EAAec,KAIrB,CAACZ,EAAeL,SAAUG,EAAgBS,IAGtCc,EAASL,EAAAA,YAAY,KACzBT,GAAa,IACZ,CAACA,IAEEe,EAAgBN,cACnBJ,IACCR,GAAe,GACXJ,EAAeL,WACjBe,EAAYG,SAAU,EACtBD,EAAMO,iBACNrB,EAAec,GACfJ,EAAWK,QAAUU,WAAWZ,EAAeX,EAAeJ,YAAagB,KAG/E,CAACZ,EAAgBF,EAAgBU,EAAYJ,EAAgBO,IAGzDa,EAAcR,cACjBJ,IACKZ,EAAeL,UAAYa,EAAWK,SACxCH,EAAYG,SAAU,EACtBY,cAAcjB,EAAWK,SACzBL,EAAWK,aAAUa,GAErB5B,EAAec,IAGnB,CAACZ,EAAeL,SAAUa,EAAYV,IAQlC6B,EAAUX,cACbJ,IAMCA,EAAMgB,kBACFzB,IAAgBG,GAAaE,EAAWK,SAC1Cf,EAAec,GAEjBR,GAAe,IAEjB,CAACA,EAAgBN,EAAgBK,EAAaK,EAAYF,IAGtDuB,EAAgBb,cACnBJ,IAECA,EAAMgB,kBACDtB,GACHR,EAAec,IAGnB,CAACd,EAAgBQ,IAGbwB,EAAed,EAAAA,YAAY,KAC/BZ,GAAe,GACXJ,EAAeL,UAAYa,EAAWK,SACxCY,cAAcjB,EAAWK,UAE1B,CAACb,EAAeL,SAAUG,EAAgBU,EAAYJ,IAEnD2B,EAAkBf,EAAAA,YAAY,KAClCZ,GAAe,GACXJ,EAAeL,UAAYa,EAAWK,SACxCY,cAAcjB,EAAWK,UAE1B,CAACb,EAAeL,SAAUG,EAAgBU,EAAYJ,IAEnD4B,EAAgBhB,cACnBJ,IACCR,GAAe,GACXJ,EAAeL,UACjBiB,EAAMO,kBAGV,CAACnB,EAAeL,SAAUG,EAAgBM,IAwB5C,MAAO,CACL6B,WAtBiBjC,EAAeN,WAC9B,GACAM,EAAeL,SACf,CACE6B,YAAAA,EACAF,cAAAA,EACAQ,aAAAA,EACAC,gBAAAA,EACAhB,UAAAA,EACAK,QAAAA,EACAY,cAAAA,EACAL,QAAAA,EACAN,OAAAA,GAEF,CACEN,UAAAA,EACAK,QAAAA,EACAC,OAAAA,EACAM,QAASE"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks","../UNSAFE_Environment","preact","preact/jsx-runtime","../UNSAFE_Layer","preact/compat"],(function(e,t,n,r,o,c,a){"use strict";e.useScale=function(){return t.useContext(n.EnvironmentContext).scale},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks","../UNSAFE_Environment","preact","preact/jsx-runtime","../UNSAFE_Layer","preact/compat"],function(e,t,n,r,o,c,a){"use strict";e.useScale=function(){return t.useContext(n.EnvironmentContext).scale},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useScale.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useScale.js","sources":["../../../src/hooks/UNSAFE_useScale/useScale.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 */\nimport { useContext } from 'preact/hooks';\nimport { EnvironmentContext } from '../../UNSAFE_Environment';\n\nexport function useScale() {\n return useContext(EnvironmentContext).scale;\n}\n"],"names":["useContext","EnvironmentContext","scale"],"mappings":"sLAWE,OAAOA,EAAUA,WAACC,sBAAoBC"}
1
+ {"version":3,"file":"UNSAFE_useScale.js","sources":["../../../src/hooks/UNSAFE_useScale/useScale.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 */\nimport { useContext } from 'preact/hooks';\nimport { EnvironmentContext } from '../../UNSAFE_Environment';\n\nexport function useScale() {\n return useContext(EnvironmentContext).scale;\n}\n"],"names":["useContext","EnvironmentContext","scale"],"mappings":"qLAWE,OAAOA,EAAUA,WAACC,sBAAoBC"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks"],(function(e,t){"use strict";e.useSwipe=function(e,{threshold:r=10,maximumTime:o=300,tolerance:n=50,isDisabled:f=!1}={threshold:10,maximumTime:300,tolerance:50,isDisabled:!1}){const s=t.useRef({pointerDownId:0,startTime:null,prevoffsetX:0,prevoffsetY:0}),i=t.useCallback((e=>{s.current.pointerDownId?p():s.current={pointerDownId:e.pointerId,startTime:e.timeStamp,prevoffsetX:e.offsetX,prevoffsetY:e.offsetY}}),[]),u=t.useCallback((t=>{t.pointerId===s.current.pointerDownId&&s.current.startTime&&t.timeStamp-s.current.startTime<o&&(s.current.prevoffsetX-t.offsetX>r&&Math.abs(t.offsetY-s.current.prevoffsetY)<=n?null==e||e({direction:"left"}):t.offsetX-s.current.prevoffsetX>r&&Math.abs(t.offsetY-s.current.prevoffsetY)<=n?null==e||e({direction:"right"}):s.current.prevoffsetY-t.offsetY>r&&Math.abs(t.offsetX-s.current.prevoffsetX)<=n?null==e||e({direction:"up"}):t.offsetY-s.current.prevoffsetY>r&&Math.abs(t.offsetX-s.current.prevoffsetX)<=n&&(null==e||e({direction:"down"}))),p()}),[r,e]),p=t.useCallback((()=>{s.current={pointerDownId:null,startTime:0,prevoffsetX:0,prevoffsetY:0}}),[]);return{swipeProps:f?{}:{onPointerDown:i,onPointerUp:u,onPointerCancel:p}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks"],function(e,t){"use strict";e.useSwipe=function(e,{threshold:r=10,maximumTime:o=300,tolerance:n=50,isDisabled:f=!1}={threshold:10,maximumTime:300,tolerance:50,isDisabled:!1}){const s=t.useRef({pointerDownId:0,startTime:null,prevoffsetX:0,prevoffsetY:0}),i=t.useCallback(e=>{s.current.pointerDownId?p():s.current={pointerDownId:e.pointerId,startTime:e.timeStamp,prevoffsetX:e.offsetX,prevoffsetY:e.offsetY}},[]),u=t.useCallback(t=>{t.pointerId===s.current.pointerDownId&&s.current.startTime&&t.timeStamp-s.current.startTime<o&&(s.current.prevoffsetX-t.offsetX>r&&Math.abs(t.offsetY-s.current.prevoffsetY)<=n?null==e||e({direction:"left"}):t.offsetX-s.current.prevoffsetX>r&&Math.abs(t.offsetY-s.current.prevoffsetY)<=n?null==e||e({direction:"right"}):s.current.prevoffsetY-t.offsetY>r&&Math.abs(t.offsetX-s.current.prevoffsetX)<=n?null==e||e({direction:"up"}):t.offsetY-s.current.prevoffsetY>r&&Math.abs(t.offsetX-s.current.prevoffsetX)<=n&&(null==e||e({direction:"down"}))),p()},[r,e]),p=t.useCallback(()=>{s.current={pointerDownId:null,startTime:0,prevoffsetX:0,prevoffsetY:0}},[]);return{swipeProps:f?{}:{onPointerDown:i,onPointerUp:u,onPointerCancel:p}}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useSwipe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useSwipe.js","sources":["../../../src/hooks/UNSAFE_useSwipe/useSwipe.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\n/*\n threshold: Minimal threshold required before recognizing\n tolerance: A tolerance value which allows the user to move their finger about a length measured in pixels.\n This allows the swipe gesture to be triggered more easily since a User might not move their finger\n in a straight line.\n*/\ntype SwipeOptions = {\n threshold?: number;\n maximumTime?: number;\n tolerance?: number;\n isDisabled?: boolean;\n};\n\ntype SwipeInfo = {\n direction: 'left' | 'right' | 'up' | 'down';\n};\n\ntype SwipeState = {\n pointerDownId: number | null;\n startTime: number | null;\n prevoffsetX: number;\n prevoffsetY: number;\n};\n\nexport function useSwipe(\n onSwipe: (e: SwipeInfo) => void,\n { threshold = 10, maximumTime = 300, tolerance = 50, isDisabled = false }: SwipeOptions = {\n threshold: 10,\n maximumTime: 300,\n tolerance: 50,\n isDisabled: false\n }\n): { swipeProps: Record<string, any> } {\n const ref = useRef<SwipeState>({\n pointerDownId: 0,\n startTime: null,\n prevoffsetX: 0,\n prevoffsetY: 0\n });\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n if (!ref.current.pointerDownId) {\n ref.current = {\n pointerDownId: e.pointerId,\n startTime: e.timeStamp,\n prevoffsetX: e.offsetX,\n prevoffsetY: e.offsetY\n };\n } else {\n clearSwipe();\n }\n }, []);\n\n const onPointerUp = useCallback(\n (ev: PointerEvent) => {\n if (ev.pointerId === ref.current.pointerDownId) {\n if (ref.current.startTime && ev.timeStamp - ref.current.startTime < maximumTime) {\n if (\n ref.current.prevoffsetX - ev.offsetX > threshold &&\n Math.abs(ev.offsetY - ref.current.prevoffsetY) <= tolerance\n ) {\n onSwipe?.({ direction: 'left' });\n } else if (\n ev.offsetX - ref.current.prevoffsetX > threshold &&\n Math.abs(ev.offsetY - ref.current.prevoffsetY) <= tolerance\n ) {\n onSwipe?.({ direction: 'right' });\n } else if (\n ref.current.prevoffsetY - ev.offsetY > threshold &&\n Math.abs(ev.offsetX - ref.current.prevoffsetX) <= tolerance\n ) {\n onSwipe?.({ direction: 'up' });\n } else if (\n ev.offsetY - ref.current.prevoffsetY > threshold &&\n Math.abs(ev.offsetX - ref.current.prevoffsetX) <= tolerance\n ) {\n onSwipe?.({ direction: 'down' });\n }\n }\n }\n // state would be reset to its original state whether swipe is completed or cancelled\n clearSwipe();\n },\n [threshold, onSwipe]\n );\n\n const clearSwipe = useCallback(() => {\n ref.current = {\n pointerDownId: null,\n startTime: 0,\n prevoffsetX: 0,\n prevoffsetY: 0\n };\n }, []);\n\n const swipeProps = isDisabled\n ? {}\n : {\n /** event handlers to spread on the target element. */\n onPointerDown,\n onPointerUp,\n onPointerCancel: clearSwipe\n };\n\n return {\n swipeProps\n };\n}\n"],"names":["onSwipe","threshold","maximumTime","tolerance","isDisabled","ref","useRef","pointerDownId","startTime","prevoffsetX","prevoffsetY","onPointerDown","useCallback","e","current","clearSwipe","pointerId","timeStamp","offsetX","offsetY","onPointerUp","ev","Math","abs","direction","swipeProps","onPointerCancel"],"mappings":"yEAkCM,SACJA,GACAC,UAAEA,EAAY,GAAdC,YAAkBA,EAAc,IAAhCC,UAAqCA,EAAY,GAAjDC,WAAqDA,GAAa,GAAwB,CACxFH,UAAW,GACXC,YAAa,IACbC,UAAW,GACXC,YAAY,IAGd,MAAMC,EAAMC,EAAAA,OAAmB,CAC7BC,cAAe,EACfC,UAAW,KACXC,YAAa,EACbC,YAAa,IAGTC,EAAgBC,eAAaC,IAC5BR,EAAIS,QAAQP,cAQfQ,IAPAV,EAAIS,QAAU,CACZP,cAAeM,EAAEG,UACjBR,UAAWK,EAAEI,UACbR,YAAaI,EAAEK,QACfR,YAAaG,EAAEM,WAKlB,IAEGC,EAAcR,eACjBS,IACKA,EAAGL,YAAcX,EAAIS,QAAQP,eAC3BF,EAAIS,QAAQN,WAAaa,EAAGJ,UAAYZ,EAAIS,QAAQN,UAAYN,IAEhEG,EAAIS,QAAQL,YAAcY,EAAGH,QAAUjB,GACvCqB,KAAKC,IAAIF,EAAGF,QAAUd,EAAIS,QAAQJ,cAAgBP,EAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,SAEvBH,EAAGH,QAAUb,EAAIS,QAAQL,YAAcR,GACvCqB,KAAKC,IAAIF,EAAGF,QAAUd,EAAIS,QAAQJ,cAAgBP,EAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,UAEvBnB,EAAIS,QAAQJ,YAAcW,EAAGF,QAAUlB,GACvCqB,KAAKC,IAAIF,EAAGH,QAAUb,EAAIS,QAAQL,cAAgBN,EAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,OAEvBH,EAAGF,QAAUd,EAAIS,QAAQJ,YAAcT,GACvCqB,KAAKC,IAAIF,EAAGH,QAAUb,EAAIS,QAAQL,cAAgBN,IAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,WAK7BT,MAEF,CAACd,EAAWD,IAGRe,EAAaH,EAAAA,aAAY,KAC7BP,EAAIS,QAAU,CACZP,cAAe,KACfC,UAAW,EACXC,YAAa,EACbC,YAAa,KAEd,IAWH,MAAO,CACLe,WAViBrB,EACf,GACA,CAEEO,cAAAA,EACAS,YAAAA,EACAM,gBAAiBX"}
1
+ {"version":3,"file":"UNSAFE_useSwipe.js","sources":["../../../src/hooks/UNSAFE_useSwipe/useSwipe.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\n/*\n threshold: Minimal threshold required before recognizing\n tolerance: A tolerance value which allows the user to move their finger about a length measured in pixels.\n This allows the swipe gesture to be triggered more easily since a User might not move their finger\n in a straight line.\n*/\ntype SwipeOptions = {\n threshold?: number;\n maximumTime?: number;\n tolerance?: number;\n isDisabled?: boolean;\n};\n\ntype SwipeInfo = {\n direction: 'left' | 'right' | 'up' | 'down';\n};\n\ntype SwipeState = {\n pointerDownId: number | null;\n startTime: number | null;\n prevoffsetX: number;\n prevoffsetY: number;\n};\n\nexport function useSwipe(\n onSwipe: (e: SwipeInfo) => void,\n { threshold = 10, maximumTime = 300, tolerance = 50, isDisabled = false }: SwipeOptions = {\n threshold: 10,\n maximumTime: 300,\n tolerance: 50,\n isDisabled: false\n }\n): { swipeProps: Record<string, any> } {\n const ref = useRef<SwipeState>({\n pointerDownId: 0,\n startTime: null,\n prevoffsetX: 0,\n prevoffsetY: 0\n });\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n if (!ref.current.pointerDownId) {\n ref.current = {\n pointerDownId: e.pointerId,\n startTime: e.timeStamp,\n prevoffsetX: e.offsetX,\n prevoffsetY: e.offsetY\n };\n } else {\n clearSwipe();\n }\n }, []);\n\n const onPointerUp = useCallback(\n (ev: PointerEvent) => {\n if (ev.pointerId === ref.current.pointerDownId) {\n if (ref.current.startTime && ev.timeStamp - ref.current.startTime < maximumTime) {\n if (\n ref.current.prevoffsetX - ev.offsetX > threshold &&\n Math.abs(ev.offsetY - ref.current.prevoffsetY) <= tolerance\n ) {\n onSwipe?.({ direction: 'left' });\n } else if (\n ev.offsetX - ref.current.prevoffsetX > threshold &&\n Math.abs(ev.offsetY - ref.current.prevoffsetY) <= tolerance\n ) {\n onSwipe?.({ direction: 'right' });\n } else if (\n ref.current.prevoffsetY - ev.offsetY > threshold &&\n Math.abs(ev.offsetX - ref.current.prevoffsetX) <= tolerance\n ) {\n onSwipe?.({ direction: 'up' });\n } else if (\n ev.offsetY - ref.current.prevoffsetY > threshold &&\n Math.abs(ev.offsetX - ref.current.prevoffsetX) <= tolerance\n ) {\n onSwipe?.({ direction: 'down' });\n }\n }\n }\n // state would be reset to its original state whether swipe is completed or cancelled\n clearSwipe();\n },\n [threshold, onSwipe]\n );\n\n const clearSwipe = useCallback(() => {\n ref.current = {\n pointerDownId: null,\n startTime: 0,\n prevoffsetX: 0,\n prevoffsetY: 0\n };\n }, []);\n\n const swipeProps = isDisabled\n ? {}\n : {\n /** event handlers to spread on the target element. */\n onPointerDown,\n onPointerUp,\n onPointerCancel: clearSwipe\n };\n\n return {\n swipeProps\n };\n}\n"],"names":["onSwipe","threshold","maximumTime","tolerance","isDisabled","ref","useRef","pointerDownId","startTime","prevoffsetX","prevoffsetY","onPointerDown","useCallback","e","current","clearSwipe","pointerId","timeStamp","offsetX","offsetY","onPointerUp","ev","Math","abs","direction","swipeProps","onPointerCancel"],"mappings":"wEAkCM,SACJA,GACAC,UAAEA,EAAY,GAAdC,YAAkBA,EAAc,IAAhCC,UAAqCA,EAAY,GAAjDC,WAAqDA,GAAa,GAAwB,CACxFH,UAAW,GACXC,YAAa,IACbC,UAAW,GACXC,YAAY,IAGd,MAAMC,EAAMC,EAAAA,OAAmB,CAC7BC,cAAe,EACfC,UAAW,KACXC,YAAa,EACbC,YAAa,IAGTC,EAAgBC,cAAaC,IAC5BR,EAAIS,QAAQP,cAQfQ,IAPAV,EAAIS,QAAU,CACZP,cAAeM,EAAEG,UACjBR,UAAWK,EAAEI,UACbR,YAAaI,EAAEK,QACfR,YAAaG,EAAEM,UAKlB,IAEGC,EAAcR,cACjBS,IACKA,EAAGL,YAAcX,EAAIS,QAAQP,eAC3BF,EAAIS,QAAQN,WAAaa,EAAGJ,UAAYZ,EAAIS,QAAQN,UAAYN,IAEhEG,EAAIS,QAAQL,YAAcY,EAAGH,QAAUjB,GACvCqB,KAAKC,IAAIF,EAAGF,QAAUd,EAAIS,QAAQJ,cAAgBP,EAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,SAEvBH,EAAGH,QAAUb,EAAIS,QAAQL,YAAcR,GACvCqB,KAAKC,IAAIF,EAAGF,QAAUd,EAAIS,QAAQJ,cAAgBP,EAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,UAEvBnB,EAAIS,QAAQJ,YAAcW,EAAGF,QAAUlB,GACvCqB,KAAKC,IAAIF,EAAGH,QAAUb,EAAIS,QAAQL,cAAgBN,EAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,OAEvBH,EAAGF,QAAUd,EAAIS,QAAQJ,YAAcT,GACvCqB,KAAKC,IAAIF,EAAGH,QAAUb,EAAIS,QAAQL,cAAgBN,IAElDH,MAAAA,GAAAA,EAAU,CAAEwB,UAAW,WAK7BT,KAEF,CAACd,EAAWD,IAGRe,EAAaH,EAAAA,YAAY,KAC7BP,EAAIS,QAAU,CACZP,cAAe,KACfC,UAAW,EACXC,YAAa,EACbC,YAAa,IAEd,IAWH,MAAO,CACLe,WAViBrB,EACf,GACA,CAEEO,cAAAA,EACAS,YAAAA,EACAM,gBAAiBX"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact","preact/hooks"],(function(e,t,b){"use strict";const a=t.createContext({isTabbable:!0});e.TabbableModeContext=a,e.useTabbableMode=function(){const{isTabbable:e}=b.useContext(a);return{isTabbable:e,tabbableModeProps:{tabIndex:!1===e?-1:0}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact","preact/hooks"],function(e,t,b){"use strict";const a=t.createContext({isTabbable:!0});e.TabbableModeContext=a,e.useTabbableMode=function(){const{isTabbable:e}=b.useContext(a);return{isTabbable:e,tabbableModeProps:{tabIndex:!1===e?-1:0}}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useTabbableMode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useTabbableMode.js","sources":["../../../src/hooks/UNSAFE_useTabbableMode/TabbableModeContext.tsx","../../../src/hooks/UNSAFE_useTabbableMode/useTabbableMode.ts"],"sourcesContent":["/**\n * Context for Tabbable Mode Consumer and Provider\n */\n\nimport { createContext } from 'preact';\n\n/**\n * Context props for Tabbable Mode\n */\ntype TabbableModeContextProps = {\n /**\n * State of Tabbable mode\n * @default true\n */\n isTabbable: boolean;\n};\n\nconst initialContext: TabbableModeContextProps = {\n isTabbable: true\n};\n\nconst TabbableModeContext = createContext<TabbableModeContextProps>(initialContext);\n\nexport { TabbableModeContext };\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 { useContext } from 'preact/hooks';\nimport { TabbableModeContext } from './TabbableModeContext';\n\n/**\n * Utility hook for consuming the TabbableModeContext\n */\nfunction useTabbableMode() {\n const { isTabbable } = useContext(TabbableModeContext);\n const tabbableModeProps = {\n tabIndex: isTabbable === false ? -1 : 0\n };\n return {\n isTabbable,\n tabbableModeProps\n };\n}\n\nexport { useTabbableMode };\n"],"names":["TabbableModeContext","createContext","isTabbable","useContext","tabbableModeProps","tabIndex"],"mappings":"yEAiBA,MAIMA,EAAsBC,EAAaA,cAJQ,CAC/CC,YAAY,8CCJd,WACE,MAAMA,WAAEA,GAAeC,EAAUA,WAACH,GAIlC,MAAO,CACLE,WAAAA,EACAE,kBALwB,CACxBC,UAAyB,IAAfH,GAAwB,EAAI"}
1
+ {"version":3,"file":"UNSAFE_useTabbableMode.js","sources":["../../../src/hooks/UNSAFE_useTabbableMode/TabbableModeContext.tsx","../../../src/hooks/UNSAFE_useTabbableMode/useTabbableMode.ts"],"sourcesContent":["/**\n * Context for Tabbable Mode Consumer and Provider\n */\n\nimport { createContext } from 'preact';\n\n/**\n * Context props for Tabbable Mode\n */\ntype TabbableModeContextProps = {\n /**\n * State of Tabbable mode\n * @default true\n */\n isTabbable: boolean;\n};\n\nconst initialContext: TabbableModeContextProps = {\n isTabbable: true\n};\n\nconst TabbableModeContext = createContext<TabbableModeContextProps>(initialContext);\n\nexport { TabbableModeContext };\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 { useContext } from 'preact/hooks';\nimport { TabbableModeContext } from './TabbableModeContext';\n\n/**\n * Utility hook for consuming the TabbableModeContext\n */\nfunction useTabbableMode() {\n const { isTabbable } = useContext(TabbableModeContext);\n const tabbableModeProps = {\n tabIndex: isTabbable === false ? -1 : 0\n };\n return {\n isTabbable,\n tabbableModeProps\n };\n}\n\nexport { useTabbableMode };\n"],"names":["TabbableModeContext","createContext","isTabbable","useContext","tabbableModeProps","tabIndex"],"mappings":"wEAiBA,MAIMA,EAAsBC,EAAaA,cAJQ,CAC/CC,YAAY,8CCJd,WACE,MAAMA,WAAEA,GAAeC,EAAUA,WAACH,GAIlC,MAAO,CACLE,WAAAA,EACAE,kBALwB,CACxBC,UAAyB,IAAfH,GAAwB,EAAI"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks"],(function(e,t){"use strict";e.useTap=function(e,{isDisabled:n}={isDisabled:!1}){const o=t.useRef({pointerDownId:null,startTime:0}),r=t.useCallback((e=>{"mouse"===e.pointerType&&0!==e.button||(o.current.pointerDownId?s():o.current={pointerDownId:e.pointerId,startTime:e.timeStamp})}),[]),i=t.useCallback((t=>{if(t.pointerId===o.current.pointerDownId){t.timeStamp-o.current.startTime<=250&&e({x:t.offsetX,y:t.offsetY})}s()}),[e]),s=t.useCallback((()=>{o.current={pointerDownId:null,startTime:0}}),[]);return{tapProps:n?{}:{onPointerDown:r,onPointerUp:i,onPointerLeave:s,onPointerCancel:s}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks"],function(e,t){"use strict";e.useTap=function(e,{isDisabled:n}={isDisabled:!1}){const o=t.useRef({pointerDownId:null,startTime:0}),r=t.useCallback(e=>{"mouse"===e.pointerType&&0!==e.button||(o.current.pointerDownId?s():o.current={pointerDownId:e.pointerId,startTime:e.timeStamp})},[]),i=t.useCallback(t=>{if(t.pointerId===o.current.pointerDownId){t.timeStamp-o.current.startTime<=250&&e({x:t.offsetX,y:t.offsetY})}s()},[e]),s=t.useCallback(()=>{o.current={pointerDownId:null,startTime:0}},[]);return{tapProps:n?{}:{onPointerDown:r,onPointerUp:i,onPointerLeave:s,onPointerCancel:s}}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useTap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useTap.js","sources":["../../../src/hooks/UNSAFE_useTap/useTap.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\ntype TapOptions = {\n isDisabled?: boolean;\n};\n\ntype TapInfo = {\n x: number;\n y: number;\n};\n\ntype TapState = {\n pointerDownId: number | null;\n startTime: number;\n};\n\n/**\n * Returns event handlers that can make a target element tapable.\n * useTap is used for non-keyboard elements.\n *\n * @param onTap function\n * @param settings object\n * @returns\n */\n\nexport function useTap(\n onTap: (e: TapInfo) => void,\n { isDisabled }: TapOptions = { isDisabled: false }\n): { tapProps: Record<string, any> } {\n const ref = useRef<TapState>({\n pointerDownId: null,\n startTime: 0\n });\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n // return if it is not a left click\n if (e.pointerType === 'mouse' && e.button !== 0) {\n return;\n }\n if (!ref.current.pointerDownId) {\n ref.current = { pointerDownId: e.pointerId, startTime: e.timeStamp };\n } else {\n clearTap();\n }\n }, []);\n\n const onPointerUp = useCallback(\n (e: PointerEvent) => {\n if (e.pointerId === ref.current.pointerDownId) {\n const tapTime = e.timeStamp - ref.current.startTime;\n // 250ms maximum tap time based on numbers used in Hammer\n if (tapTime <= 250) {\n onTap({ x: e.offsetX, y: e.offsetY });\n }\n }\n clearTap();\n },\n [onTap]\n );\n\n const clearTap = useCallback(() => {\n ref.current = { pointerDownId: null, startTime: 0 };\n }, []);\n\n const tapProps = isDisabled\n ? {}\n : {\n onPointerDown,\n onPointerUp,\n onPointerLeave: clearTap,\n onPointerCancel: clearTap\n };\n\n return {\n tapProps\n };\n}\n"],"names":["onTap","isDisabled","ref","useRef","pointerDownId","startTime","onPointerDown","useCallback","e","pointerType","button","current","clearTap","pointerId","timeStamp","onPointerUp","x","offsetX","y","offsetY","tapProps","onPointerLeave","onPointerCancel"],"mappings":"uEAiCgB,SACdA,GACAC,WAAEA,GAA2B,CAAEA,YAAY,IAE3C,MAAMC,EAAMC,EAAAA,OAAiB,CAC3BC,cAAe,KACfC,UAAW,IAGPC,EAAgBC,eAAaC,IAEX,UAAlBA,EAAEC,aAAwC,IAAbD,EAAEE,SAG9BR,EAAIS,QAAQP,cAGfQ,IAFAV,EAAIS,QAAU,CAAEP,cAAeI,EAAEK,UAAWR,UAAWG,EAAEM,cAI1D,IAEGC,EAAcR,eACjBC,IACC,GAAIA,EAAEK,YAAcX,EAAIS,QAAQP,cAAe,CAC7BI,EAAEM,UAAYZ,EAAIS,QAAQN,WAE3B,KACbL,EAAM,CAAEgB,EAAGR,EAAES,QAASC,EAAGV,EAAEW,UAG/BP,MAEF,CAACZ,IAGGY,EAAWL,EAAAA,aAAY,KAC3BL,EAAIS,QAAU,CAAEP,cAAe,KAAMC,UAAW,KAC/C,IAWH,MAAO,CACLe,SAVenB,EACb,GACA,CACEK,cAAAA,EACAS,YAAAA,EACAM,eAAgBT,EAChBU,gBAAiBV"}
1
+ {"version":3,"file":"UNSAFE_useTap.js","sources":["../../../src/hooks/UNSAFE_useTap/useTap.ts"],"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 { useRef, useCallback } from 'preact/hooks';\n\ntype TapOptions = {\n isDisabled?: boolean;\n};\n\ntype TapInfo = {\n x: number;\n y: number;\n};\n\ntype TapState = {\n pointerDownId: number | null;\n startTime: number;\n};\n\n/**\n * Returns event handlers that can make a target element tapable.\n * useTap is used for non-keyboard elements.\n *\n * @param onTap function\n * @param settings object\n * @returns\n */\n\nexport function useTap(\n onTap: (e: TapInfo) => void,\n { isDisabled }: TapOptions = { isDisabled: false }\n): { tapProps: Record<string, any> } {\n const ref = useRef<TapState>({\n pointerDownId: null,\n startTime: 0\n });\n\n const onPointerDown = useCallback((e: PointerEvent) => {\n // return if it is not a left click\n if (e.pointerType === 'mouse' && e.button !== 0) {\n return;\n }\n if (!ref.current.pointerDownId) {\n ref.current = { pointerDownId: e.pointerId, startTime: e.timeStamp };\n } else {\n clearTap();\n }\n }, []);\n\n const onPointerUp = useCallback(\n (e: PointerEvent) => {\n if (e.pointerId === ref.current.pointerDownId) {\n const tapTime = e.timeStamp - ref.current.startTime;\n // 250ms maximum tap time based on numbers used in Hammer\n if (tapTime <= 250) {\n onTap({ x: e.offsetX, y: e.offsetY });\n }\n }\n clearTap();\n },\n [onTap]\n );\n\n const clearTap = useCallback(() => {\n ref.current = { pointerDownId: null, startTime: 0 };\n }, []);\n\n const tapProps = isDisabled\n ? {}\n : {\n onPointerDown,\n onPointerUp,\n onPointerLeave: clearTap,\n onPointerCancel: clearTap\n };\n\n return {\n tapProps\n };\n}\n"],"names":["onTap","isDisabled","ref","useRef","pointerDownId","startTime","onPointerDown","useCallback","e","pointerType","button","current","clearTap","pointerId","timeStamp","onPointerUp","x","offsetX","y","offsetY","tapProps","onPointerLeave","onPointerCancel"],"mappings":"sEAiCgB,SACdA,GACAC,WAAEA,GAA2B,CAAEA,YAAY,IAE3C,MAAMC,EAAMC,EAAAA,OAAiB,CAC3BC,cAAe,KACfC,UAAW,IAGPC,EAAgBC,cAAaC,IAEX,UAAlBA,EAAEC,aAAwC,IAAbD,EAAEE,SAG9BR,EAAIS,QAAQP,cAGfQ,IAFAV,EAAIS,QAAU,CAAEP,cAAeI,EAAEK,UAAWR,UAAWG,EAAEM,aAI1D,IAEGC,EAAcR,cACjBC,IACC,GAAIA,EAAEK,YAAcX,EAAIS,QAAQP,cAAe,CAC7BI,EAAEM,UAAYZ,EAAIS,QAAQN,WAE3B,KACbL,EAAM,CAAEgB,EAAGR,EAAES,QAASC,EAAGV,EAAEW,UAG/BP,KAEF,CAACZ,IAGGY,EAAWL,EAAAA,YAAY,KAC3BL,EAAIS,QAAU,CAAEP,cAAe,KAAMC,UAAW,IAC/C,IAWH,MAAO,CACLe,SAVenB,EACb,GACA,CACEK,cAAAA,EACAS,YAAAA,EACAM,eAAgBT,EAChBU,gBAAiBV"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks","./UNSAFE_useId"],(function(e,i,n){"use strict";const r=["error","warning","confirmation","info","none"];function o(...e){return e.filter(Boolean).join(" ")||void 0}e.useTextField=function({ariaDescribedBy:e,contentVariant:s,isDisabled:a,isFocused:t,isLoading:d,isReadonly:u,labelEdge:l,messages:c,styleVariant:v,value:f}){const g=n.useId(),p="none"!==l?`${g}-label`:void 0,b=u?void 0:`${g}-input`,y=a||u?void 0:`${g}-ua`,V=i.useMemo((()=>{const e=void 0!==f&&("string"!=typeof f||""!==f);return u?{hasValue:e,isFocused:t,isLoading:d,isReadonly:!0}:a?{hasValue:e,isDisabled:!0,isLoading:d}:{hasValue:e,isFocused:t,isLoading:d}}),[a,t,d,u,f]),F=i.useMemo((()=>void 0===c?void 0:c.reduce(((e,i)=>{const n=i.severity||"error";return r.indexOf(e)<r.indexOf(n)?e:n}),"none")),[c]),x="inside"===l?"error"===F?"insideError":"warning"===F?"insideWarning":l:"none"!==l?l:void 0;return{baseId:g,formFieldContext:V,inputProps:{id:b,ariaDescribedBy:o(y,e),ariaInvalid:"error"===F?"true":void 0,variant:v},labelProps:{forId:b,id:p,variant:x},textFieldProps:{contentVariant:s,statusVariant:/error|warning/.test(null!=F?F:"")?F:void 0,styleVariant:v},userAssistanceProps:{id:y}}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks","./UNSAFE_useId"],function(e,i,n){"use strict";const r=["error","warning","confirmation","info","none"];function o(...e){return e.filter(Boolean).join(" ")||void 0}e.useTextField=function({ariaDescribedBy:e,contentVariant:s,isDisabled:a,isFocused:t,isLoading:d,isReadonly:u,labelEdge:l,messages:c,styleVariant:v,value:f}){const g=n.useId(),p="none"!==l?`${g}-label`:void 0,b=u?void 0:`${g}-input`,y=a||u?void 0:`${g}-ua`,V=i.useMemo(()=>{const e=void 0!==f&&("string"!=typeof f||""!==f);return u?{hasValue:e,isFocused:t,isLoading:d,isReadonly:!0}:a?{hasValue:e,isDisabled:!0,isLoading:d}:{hasValue:e,isFocused:t,isLoading:d}},[a,t,d,u,f]),F=i.useMemo(()=>void 0===c?void 0:c.reduce((e,i)=>{const n=i.severity||"error";return r.indexOf(e)<r.indexOf(n)?e:n},"none"),[c]),x="inside"===l?"error"===F?"insideError":"warning"===F?"insideWarning":l:"none"!==l?l:void 0;return{baseId:g,formFieldContext:V,inputProps:{id:b,ariaDescribedBy:o(y,e),ariaInvalid:"error"===F?"true":void 0,variant:v},labelProps:{forId:b,id:p,variant:x},textFieldProps:{contentVariant:s,statusVariant:/error|warning/.test(null!=F?F:"")?F:void 0,styleVariant:v},userAssistanceProps:{id:y}}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useTextField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useTextField.js","sources":["../../../src/hooks/UNSAFE_useTextField/useTextField.ts"],"sourcesContent":["import { ComponentProps } from 'preact';\nimport { useMemo } from 'preact/hooks';\nimport { Label } from '../../UNSAFE_Label';\nimport { TextField } from '../../UNSAFE_TextField';\nimport { InlineUserAssistance } from '../../UNSAFE_UserAssistance';\nimport { FormFieldContextProps } from '../UNSAFE_useFormFieldContext';\nimport { useId } from '../UNSAFE_useId';\n\ntype PickedUserAssistanceProps = Pick<ComponentProps<typeof InlineUserAssistance>, 'messages'>;\n\ntype UseTextFieldProps<V> = PickedUserAssistanceProps & {\n ariaDescribedBy?: string;\n contentVariant?: 'input' | 'textarea';\n isDisabled?: boolean;\n isFocused?: boolean;\n isLoading?: boolean;\n isReadonly?: boolean;\n labelEdge?: ComponentProps<typeof TextField>['labelEdge'] | 'none';\n styleVariant?: 'default' | 'embedded';\n value?: V;\n};\n\nconst rankedSeverities = ['error', 'warning', 'confirmation', 'info', 'none'] as const;\n\n/**\n * Merge multiple ids into a space-separated list\n * @param ids The ids to be merged\n * @returns The space separated string of ids\n */\nfunction mergeIDs(...ids: (string | undefined)[]) {\n return ids.filter(Boolean).join(' ') || undefined;\n}\n\n/**\n * A custom hook to determine the props for a component that renders\n * a text field\n */\nexport function useTextField<V>({\n ariaDescribedBy,\n contentVariant,\n isDisabled,\n isFocused,\n isLoading,\n isReadonly,\n labelEdge,\n messages,\n styleVariant,\n value\n}: UseTextFieldProps<V>) {\n const baseId = useId();\n const labelId = labelEdge !== 'none' ? `${baseId}-label` : undefined;\n const inputId = !isReadonly ? `${baseId}-input` : undefined;\n const uaId = !(isDisabled || isReadonly) ? `${baseId}-ua` : undefined;\n\n // Create the form field context\n const formFieldContext = useMemo<FormFieldContextProps>(() => {\n const hasValue = value !== undefined && (typeof value !== 'string' || value !== '');\n return isReadonly\n ? {\n hasValue: hasValue,\n isFocused: isFocused,\n isLoading,\n isReadonly: true\n }\n : isDisabled\n ? {\n hasValue: hasValue,\n isDisabled: true,\n isLoading\n }\n : {\n hasValue: hasValue,\n isFocused: isFocused,\n isLoading\n };\n }, [isDisabled, isFocused, isLoading, isReadonly, value]);\n\n // Determine the highest severity from the messages\n const messageSeverity = useMemo(() => {\n return messages === undefined\n ? undefined\n : messages.reduce<typeof rankedSeverities[number]>((accSeverity, currMessage) => {\n const currSeverity = currMessage.severity || 'error';\n return rankedSeverities.indexOf(accSeverity) < rankedSeverities.indexOf(currSeverity)\n ? accSeverity\n : currSeverity;\n }, 'none');\n }, [messages]);\n\n // Determine the label variant\n const labelVariant: ComponentProps<typeof Label>['variant'] =\n labelEdge === 'inside'\n ? messageSeverity === 'error'\n ? 'insideError'\n : messageSeverity === 'warning'\n ? 'insideWarning'\n : labelEdge\n : labelEdge !== 'none'\n ? labelEdge\n : undefined;\n\n return {\n baseId,\n formFieldContext,\n inputProps: {\n id: inputId,\n ariaDescribedBy: mergeIDs(uaId, ariaDescribedBy),\n ariaInvalid: messageSeverity === 'error' ? 'true' : undefined,\n variant: styleVariant\n },\n labelProps: {\n forId: inputId,\n id: labelId,\n variant: labelVariant\n },\n textFieldProps: {\n contentVariant,\n statusVariant: /error|warning/.test(messageSeverity ?? '')\n ? (messageSeverity as 'error' | 'warning')\n : undefined,\n styleVariant\n },\n userAssistanceProps: {\n id: uaId\n }\n };\n}\n"],"names":["rankedSeverities","mergeIDs","ids","filter","Boolean","join","undefined","ariaDescribedBy","contentVariant","isDisabled","isFocused","isLoading","isReadonly","labelEdge","messages","styleVariant","value","baseId","useId","labelId","inputId","uaId","formFieldContext","useMemo","hasValue","messageSeverity","reduce","accSeverity","currMessage","currSeverity","severity","indexOf","labelVariant","inputProps","id","ariaInvalid","variant","labelProps","forId","textFieldProps","statusVariant","test","userAssistanceProps"],"mappings":"iFAsBA,MAAMA,EAAmB,CAAC,QAAS,UAAW,eAAgB,OAAQ,QAOtE,SAASC,KAAYC,GACnB,OAAOA,EAAIC,OAAOC,SAASC,KAAK,WAAQC,iBAOpC,UAA0BC,gBAC9BA,EAD8BC,eAE9BA,EAF8BC,WAG9BA,EAH8BC,UAI9BA,EAJ8BC,UAK9BA,EAL8BC,WAM9BA,EAN8BC,UAO9BA,EAP8BC,SAQ9BA,EAR8BC,aAS9BA,EAT8BC,MAU9BA,IAEA,MAAMC,EAASC,EAAAA,QACTC,EAAwB,SAAdN,EAAuB,GAAGI,eAAiBX,EACrDc,EAAWR,OAAiCN,EAAjB,GAAAW,UAC3BI,EAASZ,GAAcG,OAA+BN,KAAdW,OAGxCK,EAAmBC,EAAAA,SAA+B,KACtD,MAAMC,OAAqBlB,IAAVU,IAAyC,iBAAVA,GAAgC,KAAVA,GACtE,OAAOJ,EACH,CACEY,SAAUA,EACVd,UAAWA,EACXC,UAAAA,EACAC,YAAY,GAEdH,EACA,CACEe,SAAUA,EACVf,YAAY,EACZE,UAAAA,GAEF,CACEa,SAAUA,EACVd,UAAWA,EACXC,UAAAA,KAEL,CAACF,EAAYC,EAAWC,EAAWC,EAAYI,IAG5CS,EAAkBF,EAAAA,SAAQ,SACVjB,IAAbQ,OACHR,EACAQ,EAASY,QAAwC,CAACC,EAAaC,KAC7D,MAAMC,EAAeD,EAAYE,UAAY,QAC7C,OAAO9B,EAAiB+B,QAAQJ,GAAe3B,EAAiB+B,QAAQF,GACpEF,EACAE,IACH,SACN,CAACf,IAGEkB,EACU,WAAdnB,EACwB,UAApBY,EACE,cACoB,YAApBA,EACA,gBACAZ,EACY,SAAdA,EACAA,OACAP,EAEN,MAAO,CACLW,OAAAA,EACAK,iBAAAA,EACAW,WAAY,CACVC,GAAId,EACJb,gBAAiBN,EAASoB,EAAMd,GAChC4B,YAAiC,UAApBV,EAA8B,YAASnB,EACpD8B,QAASrB,GAEXsB,WAAY,CACVC,MAAOlB,EACPc,GAAIf,EACJiB,QAASJ,GAEXO,eAAgB,CACd/B,eAAAA,EACAgC,cAAe,gBAAgBC,KAAKhB,MAAAA,EAAAA,EAAmB,IAClDA,OACDnB,EACJS,aAAAA,GAEF2B,oBAAqB,CACnBR,GAAIb"}
1
+ {"version":3,"file":"UNSAFE_useTextField.js","sources":["../../../src/hooks/UNSAFE_useTextField/useTextField.ts"],"sourcesContent":["import { ComponentProps } from 'preact';\nimport { useMemo } from 'preact/hooks';\nimport { Label } from '../../UNSAFE_Label';\nimport { TextField } from '../../UNSAFE_TextField';\nimport { InlineUserAssistance } from '../../UNSAFE_UserAssistance';\nimport { FormFieldContextProps } from '../UNSAFE_useFormFieldContext';\nimport { useId } from '../UNSAFE_useId';\n\ntype PickedUserAssistanceProps = Pick<ComponentProps<typeof InlineUserAssistance>, 'messages'>;\n\ntype UseTextFieldProps<V> = PickedUserAssistanceProps & {\n ariaDescribedBy?: string;\n contentVariant?: 'input' | 'textarea';\n isDisabled?: boolean;\n isFocused?: boolean;\n isLoading?: boolean;\n isReadonly?: boolean;\n labelEdge?: ComponentProps<typeof TextField>['labelEdge'] | 'none';\n styleVariant?: 'default' | 'embedded';\n value?: V;\n};\n\nconst rankedSeverities = ['error', 'warning', 'confirmation', 'info', 'none'] as const;\n\n/**\n * Merge multiple ids into a space-separated list\n * @param ids The ids to be merged\n * @returns The space separated string of ids\n */\nfunction mergeIDs(...ids: (string | undefined)[]) {\n return ids.filter(Boolean).join(' ') || undefined;\n}\n\n/**\n * A custom hook to determine the props for a component that renders\n * a text field\n */\nexport function useTextField<V>({\n ariaDescribedBy,\n contentVariant,\n isDisabled,\n isFocused,\n isLoading,\n isReadonly,\n labelEdge,\n messages,\n styleVariant,\n value\n}: UseTextFieldProps<V>) {\n const baseId = useId();\n const labelId = labelEdge !== 'none' ? `${baseId}-label` : undefined;\n const inputId = !isReadonly ? `${baseId}-input` : undefined;\n const uaId = !(isDisabled || isReadonly) ? `${baseId}-ua` : undefined;\n\n // Create the form field context\n const formFieldContext = useMemo<FormFieldContextProps>(() => {\n const hasValue = value !== undefined && (typeof value !== 'string' || value !== '');\n return isReadonly\n ? {\n hasValue: hasValue,\n isFocused: isFocused,\n isLoading,\n isReadonly: true\n }\n : isDisabled\n ? {\n hasValue: hasValue,\n isDisabled: true,\n isLoading\n }\n : {\n hasValue: hasValue,\n isFocused: isFocused,\n isLoading\n };\n }, [isDisabled, isFocused, isLoading, isReadonly, value]);\n\n // Determine the highest severity from the messages\n const messageSeverity = useMemo(() => {\n return messages === undefined\n ? undefined\n : messages.reduce<typeof rankedSeverities[number]>((accSeverity, currMessage) => {\n const currSeverity = currMessage.severity || 'error';\n return rankedSeverities.indexOf(accSeverity) < rankedSeverities.indexOf(currSeverity)\n ? accSeverity\n : currSeverity;\n }, 'none');\n }, [messages]);\n\n // Determine the label variant\n const labelVariant: ComponentProps<typeof Label>['variant'] =\n labelEdge === 'inside'\n ? messageSeverity === 'error'\n ? 'insideError'\n : messageSeverity === 'warning'\n ? 'insideWarning'\n : labelEdge\n : labelEdge !== 'none'\n ? labelEdge\n : undefined;\n\n return {\n baseId,\n formFieldContext,\n inputProps: {\n id: inputId,\n ariaDescribedBy: mergeIDs(uaId, ariaDescribedBy),\n ariaInvalid: messageSeverity === 'error' ? 'true' : undefined,\n variant: styleVariant\n },\n labelProps: {\n forId: inputId,\n id: labelId,\n variant: labelVariant\n },\n textFieldProps: {\n contentVariant,\n statusVariant: /error|warning/.test(messageSeverity ?? '')\n ? (messageSeverity as 'error' | 'warning')\n : undefined,\n styleVariant\n },\n userAssistanceProps: {\n id: uaId\n }\n };\n}\n"],"names":["rankedSeverities","mergeIDs","ids","filter","Boolean","join","undefined","ariaDescribedBy","contentVariant","isDisabled","isFocused","isLoading","isReadonly","labelEdge","messages","styleVariant","value","baseId","useId","labelId","inputId","uaId","formFieldContext","useMemo","hasValue","messageSeverity","reduce","accSeverity","currMessage","currSeverity","severity","indexOf","labelVariant","inputProps","id","ariaInvalid","variant","labelProps","forId","textFieldProps","statusVariant","test","userAssistanceProps"],"mappings":"gFAsBA,MAAMA,EAAmB,CAAC,QAAS,UAAW,eAAgB,OAAQ,QAOtE,SAASC,KAAYC,GACnB,OAAOA,EAAIC,OAAOC,SAASC,KAAK,WAAQC,iBAOpC,UAA0BC,gBAC9BA,EAD8BC,eAE9BA,EAF8BC,WAG9BA,EAH8BC,UAI9BA,EAJ8BC,UAK9BA,EAL8BC,WAM9BA,EAN8BC,UAO9BA,EAP8BC,SAQ9BA,EAR8BC,aAS9BA,EAT8BC,MAU9BA,IAEA,MAAMC,EAASC,EAAAA,QACTC,EAAwB,SAAdN,EAAuB,GAAGI,eAAiBX,EACrDc,EAAWR,OAAiCN,EAAjB,GAAAW,UAC3BI,EAASZ,GAAcG,OAA+BN,KAAdW,OAGxCK,EAAmBC,EAAAA,QAA+B,KACtD,MAAMC,OAAqBlB,IAAVU,IAAyC,iBAAVA,GAAgC,KAAVA,GACtE,OAAOJ,EACH,CACEY,SAAUA,EACVd,UAAWA,EACXC,UAAAA,EACAC,YAAY,GAEdH,EACA,CACEe,SAAUA,EACVf,YAAY,EACZE,UAAAA,GAEF,CACEa,SAAUA,EACVd,UAAWA,EACXC,UAAAA,IAEL,CAACF,EAAYC,EAAWC,EAAWC,EAAYI,IAG5CS,EAAkBF,EAAAA,QAAQ,SACVjB,IAAbQ,OACHR,EACAQ,EAASY,OAAwC,CAACC,EAAaC,KAC7D,MAAMC,EAAeD,EAAYE,UAAY,QAC7C,OAAO9B,EAAiB+B,QAAQJ,GAAe3B,EAAiB+B,QAAQF,GACpEF,EACAE,GACH,QACN,CAACf,IAGEkB,EACU,WAAdnB,EACwB,UAApBY,EACE,cACoB,YAApBA,EACA,gBACAZ,EACY,SAAdA,EACAA,OACAP,EAEN,MAAO,CACLW,OAAAA,EACAK,iBAAAA,EACAW,WAAY,CACVC,GAAId,EACJb,gBAAiBN,EAASoB,EAAMd,GAChC4B,YAAiC,UAApBV,EAA8B,YAASnB,EACpD8B,QAASrB,GAEXsB,WAAY,CACVC,MAAOlB,EACPc,GAAIf,EACJiB,QAASJ,GAEXO,eAAgB,CACd/B,eAAAA,EACAgC,cAAe,gBAAgBC,KAAKhB,MAAAA,EAAAA,EAAmB,IAClDA,OACDnB,EACJS,aAAAA,GAEF2B,oBAAqB,CACnBR,GAAIb"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks","../utils/PRIVATE_clientHints","../clientHints-7d8b1c52"],(function(e,n,t,u){"use strict";e.useTextFieldInputHandlers=function({currentCommitValue:e,value:t,onInput:l,onCommit:o,onKeyDown:r}){const a=n.useRef(!1),[,s]=n.useReducer((e=>e+1),0),c=n.useCallback((n=>{const t=n.target.value;e!==t&&(null==o||o({previousValue:e,value:t}))}),[o,e]),i=n.useCallback((e=>{null==r||r(e),"Enter"===e.key&&c(e)}),[c,r]),p=n.useCallback((()=>{a.current=!0}),[]),d=n.useCallback((e=>{a.current=!1,v(e)}),[]),v=n.useCallback((e=>{if(a.current&&"android"!==u.getClientHints().platform)return;const n=e.target.value;t!==n&&(null==l||l({previousValue:t,value:n}),s(null))}),[t,l]);return{onBlur:c,onKeyDown:i,oncompositionstart:p,oncompositionend:d,onInput:v}},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks","../utils/PRIVATE_clientHints","../clientHints-914fecb1"],function(e,n,t,u){"use strict";e.useTextFieldInputHandlers=function({currentCommitValue:e,value:t,onInput:l,onCommit:o,onKeyDown:r}){const a=n.useRef(!1),[,s]=n.useReducer(e=>e+1,0),c=n.useCallback(n=>{const t=n.target.value;e!==t&&(null==o||o({previousValue:e,value:t}))},[o,e]),i=n.useCallback(e=>{null==r||r(e),"Enter"===e.key&&c(e)},[c,r]),p=n.useCallback(()=>{a.current=!0},[]),d=n.useCallback(e=>{a.current=!1,f(e)},[]),f=n.useCallback(e=>{if(a.current&&"android"!==u.getClientHints().platform)return;const n=e.target.value;t!==n&&(null==l||l({previousValue:t,value:n}),s(null))},[t,l]);return{onBlur:c,onKeyDown:i,oncompositionstart:p,oncompositionend:d,onInput:f}},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useTextFieldInputHandlers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useTextFieldInputHandlers.js","sources":["../../../src/hooks/UNSAFE_useTextFieldInputHandlers/useTextFieldInputHandlers.ts"],"sourcesContent":["import { useCallback, useReducer, useRef } from 'preact/hooks';\nimport { getClientHints } from '../../utils/PRIVATE_clientHints';\nimport { ValueUpdateDetail } from '../../utils/UNSAFE_valueUpdateDetail';\n\ntype TextFieldInputProps = {\n currentCommitValue?: string;\n value?: string;\n onInput?: (detail: ValueUpdateDetail<string>) => void;\n onCommit?: (detail: ValueUpdateDetail<string>) => void;\n onKeyDown?: (event: KeyboardEvent) => void;\n};\n\nexport function useTextFieldInputHandlers({\n currentCommitValue,\n value,\n onInput,\n onCommit,\n onKeyDown\n}: TextFieldInputProps) {\n const isComposing = useRef(false);\n\n // preactjs/preact #1899 - https://github.com/preactjs/preact/issues/1899\n // Preact does not force the native input to be controlled, so we need to\n // trigger a rerender in order to keep it fully controlled.\n // Force update hack is from https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate\n const [, forceUpdate] = useReducer((x) => x + 1, 0);\n\n // TODO: Currently, this assumes that the input field is a text field\n // so that the change event can be simulated by capturing blur and enter keydown\n // event. We might have to make this generic to handle other input types\n // as well like radio, select, checkbox.\n const handleChange = useCallback(\n (event: Event) => {\n const currentValue = (event.target as HTMLInputElement).value;\n // When do we *not* want to call onCommit?\n // When the input's value\n // is the same as the currentCommitValue (like if the user hits Enter over and over,\n // or if the user focuses and blurs over and over).\n // Or when the component's value is programmatically changed.\n // (currentCommitValue is updated whenever we commit or get a programmatic change.\n // See component code and useCurrentValueReducer hook)\n\n // We only need to trigger an onCommit for user interacted changes, not programmatic changes\n if (currentCommitValue !== currentValue) {\n onCommit?.({ previousValue: currentCommitValue, value: currentValue });\n }\n },\n [onCommit, currentCommitValue]\n );\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n onKeyDown?.(event);\n\n if (event.key === 'Enter') {\n handleChange(event);\n }\n },\n [handleChange, onKeyDown]\n );\n const handleCompositionStart = useCallback(() => {\n isComposing.current = true;\n }, []);\n const handleCompositionEnd = useCallback((event: Event) => {\n isComposing.current = false;\n // On some browsers, compositionend event is fired before the final input event,\n // while it's the other way around on other browsers. Just call handleInput here\n // anyway since handleInput will compare the value before actually calling it.\n // When all browsers support the input event's isComposing property, we can use that.\n // https://w3c.github.io/uievents/#dom-inputevent-iscomposing\n handleInput(event);\n }, []);\n const handleInput = useCallback(\n (event: Event) => {\n // In android device we need to update input value even for composition events\n // See JET-39086 for more details.\n if (isComposing.current && getClientHints().platform !== 'android') return;\n\n const newValue = (event.target as HTMLInputElement).value;\n if (value === newValue) return;\n\n onInput?.({ previousValue: value, value: newValue });\n\n // preactjs/preact #1899 - https://github.com/preactjs/preact/issues/1899\n // Preact does not force the native input to be controlled, so we need to\n // trigger a rerender in order to keep it fully controlled.\n // Force a rerender here, so if the value was not pushed back, the input\n // will be reset to the old value mimicking a controlled input.\n // One minor issue here is that the cursor position will also be reverted\n // back to the end due to the forced value update. But this behavior should\n // be fine as it happens in our oj-input-text as well.\n forceUpdate(null);\n },\n [value, onInput]\n );\n\n return {\n // With preact/compat, we will not have an onChange event.\n // \"If you're using preact/compat, most onChange events are internally converted to onInput\n // to emulate React's behavior. This is one of the tricks we use to ensure maximum\n // compatibility with the React ecosystem.\"\n // Since we need the onChange event, we will be simulating this to match the native event\n // as best as we can. To do this, we will be capturing `blur` event and Enter `keydown` event.\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event\n onBlur: handleChange,\n onKeyDown: handleKeyDown,\n // Since, preact does not support onCompositionStart and onCompositionEnd events\n // we need to use all lowercase event name to use the native DOM events. Also,\n // currently we do not have any need for the event object in these two handlers\n // so ignored the arguments here.\n oncompositionstart: handleCompositionStart,\n oncompositionend: handleCompositionEnd,\n onInput: handleInput\n };\n}\n"],"names":["currentCommitValue","value","onInput","onCommit","onKeyDown","isComposing","useRef","forceUpdate","useReducer","x","handleChange","useCallback","event","currentValue","target","previousValue","handleKeyDown","key","handleCompositionStart","current","handleCompositionEnd","handleInput","getClientHints","platform","newValue","onBlur","oncompositionstart","oncompositionend"],"mappings":"uJAYgB,UAA0BA,mBACxCA,EADwCC,MAExCA,EAFwCC,QAGxCA,EAHwCC,SAIxCA,EAJwCC,UAKxCA,IAEA,MAAMC,EAAcC,UAAO,KAMlBC,GAAeC,cAAYC,GAAMA,EAAI,GAAG,GAM3CC,EAAeC,eAClBC,IACC,MAAMC,EAAgBD,EAAME,OAA4Bb,MAUpDD,IAAuBa,IACzBV,MAAAA,GAAAA,EAAW,CAAEY,cAAef,EAAoBC,MAAOY,OAG3D,CAACV,EAAUH,IAEPgB,EAAgBL,eACnBC,IACCR,MAAAA,GAAAA,EAAYQ,GAEM,UAAdA,EAAMK,KACRP,EAAaE,KAGjB,CAACF,EAAcN,IAEXc,EAAyBP,EAAAA,aAAY,KACzCN,EAAYc,SAAU,IACrB,IACGC,EAAuBT,eAAaC,IACxCP,EAAYc,SAAU,EAMtBE,EAAYT,KACX,IACGS,EAAcV,eACjBC,IAGC,GAAIP,EAAYc,SAAyC,YAA9BG,mBAAiBC,SAAwB,OAEpE,MAAMC,EAAYZ,EAAME,OAA4Bb,MAChDA,IAAUuB,IAEdtB,MAAAA,GAAAA,EAAU,CAAEa,cAAed,EAAOA,MAAOuB,IAUzCjB,EAAY,SAEd,CAACN,EAAOC,IAGV,MAAO,CAQLuB,OAAQf,EACRN,UAAWY,EAKXU,mBAAoBR,EACpBS,iBAAkBP,EAClBlB,QAASmB"}
1
+ {"version":3,"file":"UNSAFE_useTextFieldInputHandlers.js","sources":["../../../src/hooks/UNSAFE_useTextFieldInputHandlers/useTextFieldInputHandlers.ts"],"sourcesContent":["import { useCallback, useReducer, useRef } from 'preact/hooks';\nimport { getClientHints } from '../../utils/PRIVATE_clientHints';\nimport { ValueUpdateDetail } from '../../utils/UNSAFE_valueUpdateDetail';\n\ntype TextFieldInputProps = {\n currentCommitValue?: string;\n value?: string;\n onInput?: (detail: ValueUpdateDetail<string>) => void;\n onCommit?: (detail: ValueUpdateDetail<string>) => void;\n onKeyDown?: (event: KeyboardEvent) => void;\n};\n\nexport function useTextFieldInputHandlers({\n currentCommitValue,\n value,\n onInput,\n onCommit,\n onKeyDown\n}: TextFieldInputProps) {\n const isComposing = useRef(false);\n\n // preactjs/preact #1899 - https://github.com/preactjs/preact/issues/1899\n // Preact does not force the native input to be controlled, so we need to\n // trigger a rerender in order to keep it fully controlled.\n // Force update hack is from https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate\n const [, forceUpdate] = useReducer((x) => x + 1, 0);\n\n // TODO: Currently, this assumes that the input field is a text field\n // so that the change event can be simulated by capturing blur and enter keydown\n // event. We might have to make this generic to handle other input types\n // as well like radio, select, checkbox.\n const handleChange = useCallback(\n (event: Event) => {\n const currentValue = (event.target as HTMLInputElement).value;\n // When do we *not* want to call onCommit?\n // When the input's value\n // is the same as the currentCommitValue (like if the user hits Enter over and over,\n // or if the user focuses and blurs over and over).\n // Or when the component's value is programmatically changed.\n // (currentCommitValue is updated whenever we commit or get a programmatic change.\n // See component code and useCurrentValueReducer hook)\n\n // We only need to trigger an onCommit for user interacted changes, not programmatic changes\n if (currentCommitValue !== currentValue) {\n onCommit?.({ previousValue: currentCommitValue, value: currentValue });\n }\n },\n [onCommit, currentCommitValue]\n );\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n onKeyDown?.(event);\n\n if (event.key === 'Enter') {\n handleChange(event);\n }\n },\n [handleChange, onKeyDown]\n );\n const handleCompositionStart = useCallback(() => {\n isComposing.current = true;\n }, []);\n const handleCompositionEnd = useCallback((event: Event) => {\n isComposing.current = false;\n // On some browsers, compositionend event is fired before the final input event,\n // while it's the other way around on other browsers. Just call handleInput here\n // anyway since handleInput will compare the value before actually calling it.\n // When all browsers support the input event's isComposing property, we can use that.\n // https://w3c.github.io/uievents/#dom-inputevent-iscomposing\n handleInput(event);\n }, []);\n const handleInput = useCallback(\n (event: Event) => {\n // In android device we need to update input value even for composition events\n // See JET-39086 for more details.\n if (isComposing.current && getClientHints().platform !== 'android') return;\n\n const newValue = (event.target as HTMLInputElement).value;\n if (value === newValue) return;\n\n onInput?.({ previousValue: value, value: newValue });\n\n // preactjs/preact #1899 - https://github.com/preactjs/preact/issues/1899\n // Preact does not force the native input to be controlled, so we need to\n // trigger a rerender in order to keep it fully controlled.\n // Force a rerender here, so if the value was not pushed back, the input\n // will be reset to the old value mimicking a controlled input.\n // One minor issue here is that the cursor position will also be reverted\n // back to the end due to the forced value update. But this behavior should\n // be fine as it happens in our oj-input-text as well.\n forceUpdate(null);\n },\n [value, onInput]\n );\n\n return {\n // With preact/compat, we will not have an onChange event.\n // \"If you're using preact/compat, most onChange events are internally converted to onInput\n // to emulate React's behavior. This is one of the tricks we use to ensure maximum\n // compatibility with the React ecosystem.\"\n // Since we need the onChange event, we will be simulating this to match the native event\n // as best as we can. To do this, we will be capturing `blur` event and Enter `keydown` event.\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event\n onBlur: handleChange,\n onKeyDown: handleKeyDown,\n // Since, preact does not support onCompositionStart and onCompositionEnd events\n // we need to use all lowercase event name to use the native DOM events. Also,\n // currently we do not have any need for the event object in these two handlers\n // so ignored the arguments here.\n oncompositionstart: handleCompositionStart,\n oncompositionend: handleCompositionEnd,\n onInput: handleInput\n };\n}\n"],"names":["currentCommitValue","value","onInput","onCommit","onKeyDown","isComposing","useRef","forceUpdate","useReducer","x","handleChange","useCallback","event","currentValue","target","previousValue","handleKeyDown","key","handleCompositionStart","current","handleCompositionEnd","handleInput","getClientHints","platform","newValue","onBlur","oncompositionstart","oncompositionend"],"mappings":"sJAYgB,UAA0BA,mBACxCA,EADwCC,MAExCA,EAFwCC,QAGxCA,EAHwCC,SAIxCA,EAJwCC,UAKxCA,IAEA,MAAMC,EAAcC,UAAO,KAMlBC,GAAeC,aAAYC,GAAMA,EAAI,EAAG,GAM3CC,EAAeC,cAClBC,IACC,MAAMC,EAAgBD,EAAME,OAA4Bb,MAUpDD,IAAuBa,IACzBV,MAAAA,GAAAA,EAAW,CAAEY,cAAef,EAAoBC,MAAOY,MAG3D,CAACV,EAAUH,IAEPgB,EAAgBL,cACnBC,IACCR,MAAAA,GAAAA,EAAYQ,GAEM,UAAdA,EAAMK,KACRP,EAAaE,IAGjB,CAACF,EAAcN,IAEXc,EAAyBP,EAAAA,YAAY,KACzCN,EAAYc,SAAU,GACrB,IACGC,EAAuBT,cAAaC,IACxCP,EAAYc,SAAU,EAMtBE,EAAYT,IACX,IACGS,EAAcV,cACjBC,IAGC,GAAIP,EAAYc,SAAyC,YAA9BG,mBAAiBC,SAAwB,OAEpE,MAAMC,EAAYZ,EAAME,OAA4Bb,MAChDA,IAAUuB,IAEdtB,MAAAA,GAAAA,EAAU,CAAEa,cAAed,EAAOA,MAAOuB,IAUzCjB,EAAY,QAEd,CAACN,EAAOC,IAGV,MAAO,CAQLuB,OAAQf,EACRN,UAAWY,EAKXU,mBAAoBR,EACpBS,iBAAkBP,EAClBlB,QAASmB"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks","../UNSAFE_Environment","preact","preact/jsx-runtime","../UNSAFE_Layer","preact/compat"],(function(e,t,n,r,o,c,u){"use strict";e.useTheme=function(){return t.useContext(n.EnvironmentContext).theme},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks","../UNSAFE_Environment","preact","preact/jsx-runtime","../UNSAFE_Layer","preact/compat"],function(e,t,n,r,o,c,u){"use strict";e.useTheme=function(){return t.useContext(n.EnvironmentContext).theme},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useTheme.js","sources":["../../../src/hooks/UNSAFE_useTheme/useTheme.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 */\nimport { useContext } from 'preact/hooks';\nimport { EnvironmentContext } from '../../UNSAFE_Environment';\n\nexport function useTheme() {\n return useContext(EnvironmentContext).theme;\n}\n"],"names":["useContext","EnvironmentContext","theme"],"mappings":"sLAWE,OAAOA,EAAUA,WAACC,sBAAoBC"}
1
+ {"version":3,"file":"UNSAFE_useTheme.js","sources":["../../../src/hooks/UNSAFE_useTheme/useTheme.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 */\nimport { useContext } from 'preact/hooks';\nimport { EnvironmentContext } from '../../UNSAFE_Environment';\n\nexport function useTheme() {\n return useContext(EnvironmentContext).theme;\n}\n"],"names":["useContext","EnvironmentContext","theme"],"mappings":"qLAWE,OAAOA,EAAUA,WAACC,sBAAoBC"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks"],(function(e,r){"use strict";e.useTimer=function({isStarted:e,delay:t=0}){const u=r.useRef(null),[n,c]=r.useState(!1);return r.useEffect((()=>(e?u.current||(u.current=setTimeout((()=>{c(!0)}),t)):(u.current&&(clearTimeout(u.current),u.current=null),c(!1)),()=>{u.current&&(clearTimeout(u.current),u.current=null)})),[e,t]),n},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks"],function(e,r){"use strict";e.useTimer=function({isStarted:e,delay:t=0}){const u=r.useRef(null),[n,c]=r.useState(!1);return r.useEffect(()=>(e?u.current||(u.current=setTimeout(()=>{c(!0)},t)):(u.current&&(clearTimeout(u.current),u.current=null),c(!1)),()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[e,t]),n},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useTimer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useTimer.js","sources":["../../../src/hooks/UNSAFE_useTimer/useTimer.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 { useEffect, useRef, useState } from 'preact/hooks';\n\ntype Props = {\n isStarted: boolean;\n delay?: number;\n};\n\n/**\n * Hook for a timer.\n * @param isStarted Specifies whether the timer should be started: true to start it, false to stop\n * it.\n * @param delay Specifies the delay after which the timer should expire.\n * @returns True if the timer expires, false if it was stopped before that.\n *\n */\nexport function useTimer({ isStarted, delay = 0 }: Props): boolean {\n const timeoutId = useRef<ReturnType<typeof setTimeout> | null>(null);\n const [isExpired, setExpired] = useState(false);\n useEffect(() => {\n if (!isStarted) {\n // if not started, clear the current timeout\n if (timeoutId.current) {\n clearTimeout(timeoutId.current);\n timeoutId.current = null;\n }\n setExpired(false);\n } else {\n // if started, only create a new timeout if we don't already have one\n if (!timeoutId.current) {\n timeoutId.current = setTimeout(() => {\n setExpired(true);\n }, delay);\n }\n }\n return () => {\n if (timeoutId.current) {\n clearTimeout(timeoutId.current);\n timeoutId.current = null;\n }\n };\n }, [isStarted, delay]);\n\n return isExpired;\n}\n"],"names":["isStarted","delay","timeoutId","useRef","isExpired","setExpired","useState","useEffect","current","setTimeout","clearTimeout"],"mappings":"yEAuBM,UAAmBA,UAAEA,EAAFC,MAAaA,EAAQ,IAC5C,MAAMC,EAAYC,SAA6C,OACxDC,EAAWC,GAAcC,EAAQA,UAAC,GAyBzC,OAxBAC,EAAAA,WAAU,KACHP,EASEE,EAAUM,UACbN,EAAUM,QAAUC,YAAW,KAC7BJ,GAAW,KACVJ,KAVDC,EAAUM,UACZE,aAAaR,EAAUM,SACvBN,EAAUM,QAAU,MAEtBH,GAAW,IASN,KACDH,EAAUM,UACZE,aAAaR,EAAUM,SACvBN,EAAUM,QAAU,SAGvB,CAACR,EAAWC,IAERG"}
1
+ {"version":3,"file":"UNSAFE_useTimer.js","sources":["../../../src/hooks/UNSAFE_useTimer/useTimer.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 { useEffect, useRef, useState } from 'preact/hooks';\n\ntype Props = {\n isStarted: boolean;\n delay?: number;\n};\n\n/**\n * Hook for a timer.\n * @param isStarted Specifies whether the timer should be started: true to start it, false to stop\n * it.\n * @param delay Specifies the delay after which the timer should expire.\n * @returns True if the timer expires, false if it was stopped before that.\n *\n */\nexport function useTimer({ isStarted, delay = 0 }: Props): boolean {\n const timeoutId = useRef<ReturnType<typeof setTimeout> | null>(null);\n const [isExpired, setExpired] = useState(false);\n useEffect(() => {\n if (!isStarted) {\n // if not started, clear the current timeout\n if (timeoutId.current) {\n clearTimeout(timeoutId.current);\n timeoutId.current = null;\n }\n setExpired(false);\n } else {\n // if started, only create a new timeout if we don't already have one\n if (!timeoutId.current) {\n timeoutId.current = setTimeout(() => {\n setExpired(true);\n }, delay);\n }\n }\n return () => {\n if (timeoutId.current) {\n clearTimeout(timeoutId.current);\n timeoutId.current = null;\n }\n };\n }, [isStarted, delay]);\n\n return isExpired;\n}\n"],"names":["isStarted","delay","timeoutId","useRef","isExpired","setExpired","useState","useEffect","current","setTimeout","clearTimeout"],"mappings":"wEAuBM,UAAmBA,UAAEA,EAAFC,MAAaA,EAAQ,IAC5C,MAAMC,EAAYC,SAA6C,OACxDC,EAAWC,GAAcC,EAAQA,UAAC,GAyBzC,OAxBAC,EAAAA,UAAU,KACHP,EASEE,EAAUM,UACbN,EAAUM,QAAUC,WAAW,KAC7BJ,GAAW,IACVJ,KAVDC,EAAUM,UACZE,aAAaR,EAAUM,SACvBN,EAAUM,QAAU,MAEtBH,GAAW,IASN,KACDH,EAAUM,UACZE,aAAaR,EAAUM,SACvBN,EAAUM,QAAU,QAGvB,CAACR,EAAWC,IAERG"}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks"],(function(e,t){"use strict";e.useToggle=function(e=!1){const[s,o]=t.useState(e),u=t.useMemo((()=>({toggle:()=>o((e=>!e)),setTrue:()=>o(!0),setFalse:()=>o(!1)})),[]);return Object.assign({bool:s},u)},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks"],function(e,t){"use strict";e.useToggle=function(e=!1){const[s,o]=t.useState(e),u=t.useMemo(()=>({toggle:()=>o(e=>!e),setTrue:()=>o(!0),setFalse:()=>o(!1)}),[]);return Object.assign({bool:s},u)},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useToggle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_useToggle.js","sources":["../../../src/hooks/UNSAFE_useToggle/useToggle.ts"],"sourcesContent":["import { useState, useMemo } from 'preact/hooks';\n\n/**\n * useToggle is a state toggle hook\n *\n * @param defaultValue\n * @returns\n */\n\nexport function useToggle(defaultValue = false) {\n const [bool, setBool] = useState(defaultValue);\n const toggleHandlers = useMemo(() => {\n return {\n toggle: () => setBool((x) => !x),\n setTrue: () => setBool(true),\n setFalse: () => setBool(false)\n };\n }, []);\n\n return {\n bool,\n ...toggleHandlers\n };\n}\n"],"names":["defaultValue","bool","setBool","useState","toggleHandlers","useMemo","toggle","x","setTrue","setFalse","Object","assign"],"mappings":"0EASgB,SAAUA,GAAe,GACvC,MAAOC,EAAMC,GAAWC,EAAQA,SAACH,GAC3BI,EAAiBC,EAAAA,SAAQ,KACtB,CACLC,OAAQ,IAAMJ,GAASK,IAAOA,IAC9BC,QAAS,IAAMN,GAAQ,GACvBO,SAAU,IAAMP,GAAQ,MAEzB,IAEH,OACEQ,OAAAC,OAAA,CAAAV,KAAAA,GACGG"}
1
+ {"version":3,"file":"UNSAFE_useToggle.js","sources":["../../../src/hooks/UNSAFE_useToggle/useToggle.ts"],"sourcesContent":["import { useState, useMemo } from 'preact/hooks';\n\n/**\n * useToggle is a state toggle hook\n *\n * @param defaultValue\n * @returns\n */\n\nexport function useToggle(defaultValue = false) {\n const [bool, setBool] = useState(defaultValue);\n const toggleHandlers = useMemo(() => {\n return {\n toggle: () => setBool((x) => !x),\n setTrue: () => setBool(true),\n setFalse: () => setBool(false)\n };\n }, []);\n\n return {\n bool,\n ...toggleHandlers\n };\n}\n"],"names":["defaultValue","bool","setBool","useState","toggleHandlers","useMemo","toggle","x","setTrue","setFalse","Object","assign"],"mappings":"yEASgB,SAAUA,GAAe,GACvC,MAAOC,EAAMC,GAAWC,EAAQA,SAACH,GAC3BI,EAAiBC,EAAAA,QAAQ,KACtB,CACLC,OAAQ,IAAMJ,EAASK,IAAOA,GAC9BC,QAAS,IAAMN,GAAQ,GACvBO,SAAU,IAAMP,GAAQ,KAEzB,IAEH,OACEQ,OAAAC,OAAA,CAAAV,KAAAA,GACGG"}
@@ -1,4 +1,4 @@
1
- ._1071n2l{display:flex;align-items:flex-end;overflow-y:hidden;}
2
- .c3xikh{opacity:0;max-height:0;}
3
- ._1ntmaqk{color:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-text-color);background-color:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-bg-color);white-space:nowrap;padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-vertical);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-horizontal);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-horizontal);padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-vertical);border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-radius);border-color:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-color);font-size:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-font-size);border-width:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-width);border-style:solid;}
4
- ._16rlniq{--oj-c-PRIVATE-DO-NOT-USE-tooltip-bg-color:rgb(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-0));--oj-c-PRIVATE-DO-NOT-USE-tooltip-text-color:rgb(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190));--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-vertical:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md);--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-color:rgba(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190),0.65);--oj-c-PRIVATE-DO-NOT-USE-tooltip-font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-font-size);}
1
+ ._1jbm75u{display:flex;align-items:flex-end;overflow-y:hidden;}
2
+ ._105y3gz{opacity:0;max-height:0;}
3
+ ._1ta0xjx{color:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-text-color);background-color:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-bg-color);white-space:nowrap;padding-top:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-vertical);padding-left:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-horizontal);padding-right:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-horizontal);padding-bottom:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-vertical);border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-radius);border-color:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-color);font-size:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-font-size);border-width:var(--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-width);border-style:solid;}
4
+ .ldpzx5{--oj-c-PRIVATE-DO-NOT-USE-tooltip-bg-color:rgb(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-0));--oj-c-PRIVATE-DO-NOT-USE-tooltip-text-color:rgb(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190));--oj-c-PRIVATE-DO-NOT-USE-tooltip-padding-vertical:var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-2x);--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-radius:var(--oj-c-PRIVATE-DO-NOT-USE-core-border-radius-md);--oj-c-PRIVATE-DO-NOT-USE-tooltip-border-color:rgba(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-190),0.65);--oj-c-PRIVATE-DO-NOT-USE-tooltip-font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-font-size);}
@@ -1,2 +1,2 @@
1
- define(["exports","preact/hooks","preact/jsx-runtime","./UNSAFE_useId","../UNSAFE_Floating","../UNSAFE_Layer","./UNSAFE_useHover","./UNSAFE_useFocus","./UNSAFE_useTouch","../utils/UNSAFE_mergeProps","../utils/UNSAFE_arrayUtils","../tslib.es6-d070fafc","./UNSAFE_useAnimation","css!./UNSAFE_useTooltip.css","../utils/UNSAFE_classNames","../useAnimation-8e4e9999","../classNames-3c307969","../Floating-a320db48","preact/compat","preact","./UNSAFE_useToggle","../index-2f5333e8","./UNSAFE_useUser","../UNSAFE_Environment","../utils/PRIVATE_floatingUtils","../utils/PRIVATE_refUtils","./UNSAFE_useOutsideClick"],(function(e,t,n,o,s,i,u,r,a,l,c,d,m,p,g,f,v,h,b,E,A,P,x,_,T,y,F){"use strict";const N="_1071n2l",S="c3xikh",U="_1ntmaqk",R="_16rlniq",j=e=>{var{children:s,isOpen:i,isDatatip:u,onTransitionEnd:r}=e,a=d.__rest(e,["children","isOpen","isDatatip","onTransitionEnd"]);const l=o.useId(),c=t.useRef(null),m=t.useRef(null),{nodeRef:p}=f.useAnimation(i?"mounted":"unmounted",{animationStates:{mounted:e=>{const t=e.firstChild;return{from:{maxHeight:"0",opacity:"0%"},to:{maxHeight:`${null==t?void 0:t.offsetHeight}px`,opacity:u?"100%":"95%"},options:{duration:u?1:100,easing:[0,0,.2,1]}}},unmounted:e=>({from:{opacity:u?"100%":"95%"},to:{maxHeight:"0",opacity:"0%"},options:{duration:u?1:100,easing:[0,0,.2,1]}})},isAnimatedOnMount:!0,onAnimationEnd:()=>null==r?void 0:r()});return t.useEffect((()=>{var e,t;c.current&&(null===(e=m.current)||void 0===e?void 0:e.offsetHeight)&&(c.current.style.height=`${null===(t=m.current)||void 0===t?void 0:t.offsetHeight}px`)}),[]),n.jsx("div",Object.assign({ref:c,id:l,role:"tooltip",class:N},{children:n.jsx("div",Object.assign({ref:p,class:v.classNames([S])},a,{children:n.jsx("div",Object.assign({ref:m,class:v.classNames([U,u?R:""])},{children:s}))}))}))},O=(c.stringLiteralArray(["start","top-start","top","top-end","end","bottom-end","bottom","bottom-start"]),c.stringLiteralArray(["element","pointer"]),({text:e,isOpen:s=!1,variant:c="tooltip",position:d="bottom",isDisabled:m=!1,anchor:p={x:"element",y:"element"},offset:g={mainAxis:0,crossAxis:0},onToggle:f})=>{const v=m||!e,b=t.useRef(!0),[E,A]=t.useState(!v&&s?"mounting":"unmounted"),[P,x]=t.useState(!1);x(!1);const _="datatip"===c,T=t.useRef(!0),{hoverProps:y,isHover:F}=u.useHover({isDisabled:m}),{touchProps:N,isTouch:S}=a.useTouch({isDisabled:m}),{focusProps:U,isFocus:R}=r.useFocus({isDisabled:F||S}),{hoverProps:O,isHover:H}=u.useHover({isDisabled:m}),k="pointer"===p.x||"pointer"===p.y,B=o.useId(),D=t.useRef(null),L=t.useRef({x:0,y:0}),C=k&&!R?L:D,I=_?0:250,G=t.useRef(null),M=t.useRef(null),w=()=>{G.current&&clearTimeout(G.current)},V=t.useCallback((e=>{if(e)switch(E){case"unmounting":case"unmounted":A("mountPending");break;case"unmountPending":w(),A("mounted")}else switch(E){case"mounting":case"mounted":A("unmountPending");break;case"mountPending":w(),A("unmounted")}}),[E]);t.useEffect((()=>{b.current?b.current=!1:A(s?"mounting":"unmounting")}),[s]),t.useEffect((()=>{T.current?T.current=!1:k&&F&&"unmounted"===E||(M.current&&clearTimeout(M.current),M.current=setTimeout((()=>{V(F||R||H||S)}),20))}),[F,R,H,S,k,E,V]),t.useLayoutEffect((()=>{"mountPending"!==E&&"unmountPending"!==E||(G.current=setTimeout((()=>null==f?void 0:f({value:"mountPending"===E})),I))}),[E,I,f]);const q={onFocus:e=>{(e.eventPhase===Event.AT_TARGET||e.eventPhase===Event.BUBBLING_PHASE&&_)&&(D.current=e.target)}};let $;if(v)$=l.mergeProps(U,q);else{const e=Object.assign({"aria-describedby":B,onMouseEnter:e=>{(e.eventPhase===Event.AT_TARGET||e.eventPhase===Event.BUBBLING_PHASE&&_)&&(D.current=e.target)}},k&&{onMouseLeave:()=>{"mounting"!==E&&w()},onMouseMove:e=>{(e.eventPhase===Event.AT_TARGET||e.eventPhase===Event.BUBBLING_PHASE&&_)&&(e=>{var t;if("unmounted"!==E&&("datatip"!==c||"mounted"!==E))return;const n=null===(t=null==D?void 0:D.current)||void 0===t?void 0:t.getBoundingClientRect(),o=document.body.scrollLeft+((null==n?void 0:n.left)||0)+((null==n?void 0:n.width)||0),s=document.body.scrollTop+((null==n?void 0:n.top)||0)+((null==n?void 0:n.height)||0),i="pointer"===p.x?e.clientX:o,u="pointer"===p.y?e.clientY:s;"mounted"===E?(L.current={x:i,y:u},!0!==P&&x(!0)):"unmounted"===E&&(w(),G.current=setTimeout((()=>{"unmounted"===E&&(L.current={x:i,y:u},null==f||f({value:!0}))}),I))})(e)}});$=l.mergeProps(y,U,N,q,e)}if(v)return w(),{tooltipContent:null,tooltipProps:$};const X=(e=>{let t="bottom";switch(e){case"top":case"end":case"bottom":case"start":t=e;break;case"top-end":t="top-end-corner";break;case"bottom-end":t="bottom-end-corner";break;case"bottom-start":t="bottom-start-corner";break;case"top-start":t="top-start-corner"}return t})(d),Y=n.jsx(i.Layer,Object.assign({logicalParentRef:D},{children:n.jsx(h.Floating,Object.assign({anchorRef:C,placement:X,offsetValue:g},{children:n.jsx(j,Object.assign({isOpen:["mounting","mounted","unmountPending"].includes(E)},O,{isDatatip:_,onTransitionEnd:()=>{"mounting"===E&&A("mounted"),"unmounting"===E&&A("unmounted")}},{children:e}))}))}));return{tooltipContent:!["unmounted","mountPending"].includes(E)&&Y,tooltipProps:$}});e.useTooltip=({text:e,position:n="bottom",isDisabled:o=!1,anchor:s={x:"element",y:"element"},offset:i={mainAxis:0,crossAxis:0},variant:u="tooltip"})=>{const[r,a]=t.useState(!1),l=o||!e,{tooltipContent:c,tooltipProps:d}=O({text:e,isOpen:r,position:n,isDisabled:l,offset:i,anchor:s,variant:u,onToggle:({value:e})=>a(e)});return{tooltipContent:c,tooltipProps:d}},e.useTooltipControlled=O,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(["exports","preact/hooks","preact/jsx-runtime","./UNSAFE_useId","../UNSAFE_Floating","../UNSAFE_Layer","./UNSAFE_useHover","./UNSAFE_useFocus","./UNSAFE_useTouch","../utils/UNSAFE_mergeProps","../utils/UNSAFE_arrayUtils","../tslib.es6-fa3971d7","./UNSAFE_useAnimation","css!./UNSAFE_useTooltip.css","../utils/UNSAFE_classNames","../useAnimation-215b2be2","../classNames-e580c7c7","../Floating-863a4a52","preact/compat","preact","./UNSAFE_useToggle","../index-17cde748","./UNSAFE_useUser","../UNSAFE_Environment","../utils/PRIVATE_floatingUtils","../utils/PRIVATE_refUtils","./UNSAFE_useOutsideClick"],function(e,t,n,o,s,i,u,r,a,l,c,d,m,p,g,f,v,b,h,E,A,P,x,_,T,y,F){"use strict";const N="_1jbm75u",S="_105y3gz",U="_1ta0xjx",j="ldpzx5",R=e=>{var{children:s,isOpen:i,isDatatip:u,onTransitionEnd:r}=e,a=d.__rest(e,["children","isOpen","isDatatip","onTransitionEnd"]);const l=o.useId(),c=t.useRef(null),m=t.useRef(null),{nodeRef:p}=f.useAnimation(i?"mounted":"unmounted",{animationStates:{mounted:e=>{const t=e.firstChild;return{from:{maxHeight:"0",opacity:"0%"},to:{maxHeight:`${null==t?void 0:t.offsetHeight}px`,opacity:u?"100%":"95%"},options:{duration:u?1:100,easing:[0,0,.2,1]}}},unmounted:e=>({from:{opacity:u?"100%":"95%"},to:{maxHeight:"0",opacity:"0%"},options:{duration:u?1:100,easing:[0,0,.2,1]}})},isAnimatedOnMount:!0,onAnimationEnd:()=>null==r?void 0:r()});return t.useEffect(()=>{var e,t;c.current&&(null===(e=m.current)||void 0===e?void 0:e.offsetHeight)&&(c.current.style.height=`${null===(t=m.current)||void 0===t?void 0:t.offsetHeight}px`)},[]),n.jsx("div",Object.assign({ref:c,id:l,role:"tooltip",class:N},{children:n.jsx("div",Object.assign({ref:p,class:v.classNames([S])},a,{children:n.jsx("div",Object.assign({ref:m,class:v.classNames([U,u?j:""])},{children:s}))}))}))},O=(c.stringLiteralArray(["start","top-start","top","top-end","end","bottom-end","bottom","bottom-start"]),c.stringLiteralArray(["element","pointer"]),({text:e,isOpen:s=!1,variant:c="tooltip",position:d="bottom",isDisabled:m=!1,anchor:p={x:"element",y:"element"},offset:g={mainAxis:0,crossAxis:0},onToggle:f})=>{const v=m||!e,h=t.useRef(!0),[E,A]=t.useState(!v&&s?"mounting":"unmounted"),[P,x]=t.useState(!1);x(!1);const _="datatip"===c,T=t.useRef(!0),{hoverProps:y,isHover:F}=u.useHover({isDisabled:m}),{touchProps:N,isTouch:S}=a.useTouch({isDisabled:m}),{focusProps:U,isFocus:j}=r.useFocus({isDisabled:F||S}),{hoverProps:O,isHover:H}=u.useHover({isDisabled:m}),B="pointer"===p.x||"pointer"===p.y,D=o.useId(),L=t.useRef(null),k=t.useRef({x:0,y:0}),C=B&&!j?k:L,I=_?0:250,G=t.useRef(null),M=t.useRef(null),w=()=>{G.current&&clearTimeout(G.current)},V=t.useCallback(e=>{if(e)switch(E){case"unmounting":case"unmounted":A("mountPending");break;case"unmountPending":w(),A("mounted")}else switch(E){case"mounting":case"mounted":A("unmountPending");break;case"mountPending":w(),A("unmounted")}},[E]);t.useEffect(()=>{h.current?h.current=!1:A(s?"mounting":"unmounting")},[s]),t.useEffect(()=>{T.current?T.current=!1:B&&F&&"unmounted"===E||(M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{V(F||j||H||S)},20))},[F,j,H,S,B,E,V]),t.useLayoutEffect(()=>{"mountPending"!==E&&"unmountPending"!==E||(G.current=setTimeout(()=>null==f?void 0:f({value:"mountPending"===E}),I))},[E,I,f]);const z={onFocus:e=>{(e.eventPhase===Event.AT_TARGET||e.eventPhase===Event.BUBBLING_PHASE&&_)&&(L.current=e.target)}};let $;if(v)$=l.mergeProps(U,z);else{const e=Object.assign({"aria-describedby":D,onMouseEnter:e=>{(e.eventPhase===Event.AT_TARGET||e.eventPhase===Event.BUBBLING_PHASE&&_)&&(L.current=e.target)}},B&&{onMouseLeave:()=>{"mounting"!==E&&w()},onMouseMove:e=>{(e.eventPhase===Event.AT_TARGET||e.eventPhase===Event.BUBBLING_PHASE&&_)&&(e=>{var t;if("unmounted"!==E&&("datatip"!==c||"mounted"!==E))return;const n=null===(t=null==L?void 0:L.current)||void 0===t?void 0:t.getBoundingClientRect(),o=document.body.scrollLeft+((null==n?void 0:n.left)||0)+((null==n?void 0:n.width)||0),s=document.body.scrollTop+((null==n?void 0:n.top)||0)+((null==n?void 0:n.height)||0),i="pointer"===p.x?e.clientX:o,u="pointer"===p.y?e.clientY:s;"mounted"===E?(k.current={x:i,y:u},!0!==P&&x(!0)):"unmounted"===E&&(w(),G.current=setTimeout(()=>{"unmounted"===E&&(k.current={x:i,y:u},null==f||f({value:!0}))},I))})(e)}});$=l.mergeProps(y,U,N,z,e)}if(v)return w(),{tooltipContent:null,tooltipProps:$};const X=(e=>{let t="bottom";switch(e){case"top":case"end":case"bottom":case"start":t=e;break;case"top-end":t="top-end-corner";break;case"bottom-end":t="bottom-end-corner";break;case"bottom-start":t="bottom-start-corner";break;case"top-start":t="top-start-corner"}return t})(d),Y=n.jsx(i.Layer,Object.assign({logicalParentRef:L},{children:n.jsx(b.Floating,Object.assign({anchorRef:C,placement:X,offsetValue:g},{children:n.jsx(R,Object.assign({isOpen:["mounting","mounted","unmountPending"].includes(E)},O,{isDatatip:_,onTransitionEnd:()=>{"mounting"===E&&A("mounted"),"unmounting"===E&&A("unmounted")}},{children:e}))}))}));return{tooltipContent:!["unmounted","mountPending"].includes(E)&&Y,tooltipProps:$}});e.useTooltip=({text:e,position:n="bottom",isDisabled:o=!1,anchor:s={x:"element",y:"element"},offset:i={mainAxis:0,crossAxis:0},variant:u="tooltip"})=>{const[r,a]=t.useState(!1),l=o||!e,{tooltipContent:c,tooltipProps:d}=O({text:e,isOpen:r,position:n,isDisabled:l,offset:i,anchor:s,variant:u,onToggle:({value:e})=>a(e)});return{tooltipContent:c,tooltipProps:d}},e.useTooltipControlled=O,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=UNSAFE_useTooltip.js.map