@oracle/oraclejet-preact 18.1.1 → 18.1.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 (1057) hide show
  1. package/amd/ActionCard-e560d08b.js +1 -1
  2. package/amd/BarChart-c0ba5b12.js +1 -1
  3. package/amd/BarGroup-b02506a8.js +1 -1
  4. package/amd/BaseButton-c6563bf2.js +1 -1
  5. package/amd/{BaseCardView-df2ace26.js → BaseCardView-e75594df.js} +2 -2
  6. package/amd/{BaseCardView-df2ace26.js.map → BaseCardView-e75594df.js.map} +1 -1
  7. package/amd/{BaseCardViewSelectionTest-e0356b8b.js → BaseCardViewSelectionTest-b3d54b34.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-e0356b8b.js.map → BaseCardViewSelectionTest-b3d54b34.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-f2b9ae77.js +2 -0
  10. package/amd/BaseNavigationListItem-f2b9ae77.js.map +1 -0
  11. package/amd/BaseRichSelection-65bb6f89.js +1 -1
  12. package/amd/ButtonSet-3459b0e6.js +1 -1
  13. package/amd/ButtonSetIconButton-5b13a4c9.js +1 -1
  14. package/amd/{Card-7acfbca5.js → Card-8fd9b2c8.js} +2 -2
  15. package/amd/{Card-7acfbca5.js.map → Card-8fd9b2c8.js.map} +1 -1
  16. package/amd/{CardFlexView-a1fbf75e.js → CardFlexView-15801fe6.js} +2 -2
  17. package/amd/{CardFlexView-a1fbf75e.js.map → CardFlexView-15801fe6.js.map} +1 -1
  18. package/amd/{CardGridView-06ad40c5.js → CardGridView-05349c11.js} +2 -2
  19. package/amd/{CardGridView-06ad40c5.js.map → CardGridView-05349c11.js.map} +1 -1
  20. package/amd/{Center-5d2e4d34.js → Center-567b111f.js} +2 -2
  21. package/amd/{Center-5d2e4d34.js.map → Center-567b111f.js.map} +1 -1
  22. package/amd/Chart-c3a5a93d.js +1 -1
  23. package/amd/CheckboxControl-f3a606fe.js +1 -1
  24. package/amd/CheckboxRadioField-48d4dc4e.js +1 -1
  25. package/amd/Chip-e007a488.js +1 -1
  26. package/amd/ClearIcon-d0412ffa.js +1 -1
  27. package/amd/CollapseIcon-6d62b080.js +1 -1
  28. package/amd/Collapsible-8608500c.js +1 -1
  29. package/amd/ComboChart-cec2713a.js +1 -1
  30. package/amd/CompactHelpSource-e5b889f6.js +1 -1
  31. package/amd/CompactLabelAssistance-cd404d92.js +2 -0
  32. package/amd/{CompactLabelAssistance-82361ea6.js.map → CompactLabelAssistance-cd404d92.js.map} +1 -1
  33. package/amd/CompactUserAssistance-eb849bc5.js +1 -1
  34. package/amd/ComponentMessageContainer-8198785a.js +1 -1
  35. package/amd/ConveyorBeltItem-297444a1.js +1 -1
  36. package/amd/{DatePicker-20e9a255.js → DatePicker-e0e728f9.js} +2 -2
  37. package/amd/{DatePicker-20e9a255.js.map → DatePicker-e0e728f9.js.map} +1 -1
  38. package/amd/DatePickerHeader-1f419e06.js +1 -1
  39. package/amd/{Diagram-03be2ca5.js → Diagram-eb0ab8fb.js} +2 -2
  40. package/amd/{Diagram-03be2ca5.js.map → Diagram-eb0ab8fb.js.map} +1 -1
  41. package/amd/{Dialog-dc55a669.js → Dialog-cd6713a4.js} +2 -2
  42. package/amd/{Dialog-dc55a669.js.map → Dialog-cd6713a4.js.map} +1 -1
  43. package/amd/DirectionalCollapseArrowIcon-58352e0f.js +1 -1
  44. package/amd/DirectionalExpandArrowIcon-56420acb.js +1 -1
  45. package/amd/DragHandle-0798a29c.js +2 -0
  46. package/amd/{DragHandle-d89ea5fd.js.map → DragHandle-0798a29c.js.map} +1 -1
  47. package/amd/{DrawerPopup-772c8c22.js → DrawerPopup-439787de.js} +2 -2
  48. package/amd/{DrawerPopup-772c8c22.js.map → DrawerPopup-439787de.js.map} +1 -1
  49. package/amd/Dropdown-fb803c67.js +2 -0
  50. package/amd/{Dropdown-37339c89.js.map → Dropdown-fb803c67.js.map} +1 -1
  51. package/amd/{EnvironmentProvider-4597f540.js → EnvironmentProvider-d423bca9.js} +2 -2
  52. package/amd/{EnvironmentProvider-4597f540.js.map → EnvironmentProvider-d423bca9.js.map} +1 -1
  53. package/amd/ExpandableList-81f7f34d.js +1 -1
  54. package/amd/FilePicker-e0b7a348.js +1 -1
  55. package/amd/{Flex-69dc7af4.js → Flex-a208520e.js} +2 -2
  56. package/amd/{Flex-69dc7af4.js.map → Flex-a208520e.js.map} +1 -1
  57. package/amd/{Floating-28ad0903.js → Floating-043a207a.js} +2 -2
  58. package/amd/{Floating-28ad0903.js.map → Floating-043a207a.js.map} +1 -1
  59. package/amd/FormLayout-d7998ba5.js +1 -1
  60. package/amd/Gantt-a286e1a6.js +1 -1
  61. package/amd/{Grid-49beb801.js → Grid-3dd364a1.js} +2 -2
  62. package/amd/{Grid-49beb801.js.map → Grid-3dd364a1.js.map} +1 -1
  63. package/amd/{Gridlines-9ec65953.js → Gridlines-3c00961a.js} +2 -2
  64. package/amd/{Gridlines-9ec65953.js.map → Gridlines-3c00961a.js.map} +1 -1
  65. package/amd/GroupLoadingIndicator-6c6743b0.js +1 -1
  66. package/amd/{HighlightText-b020d84d.js → HighlightText-b3c31e12.js} +2 -2
  67. package/amd/{HighlightText-b020d84d.js.map → HighlightText-b3c31e12.js.map} +1 -1
  68. package/amd/Icon-906e4e3c.js +1 -1
  69. package/amd/IconButton-c2e5c1c5.js +1 -1
  70. package/amd/IconMenuButton-caf797c1.js +1 -1
  71. package/amd/IconProgressButton-d8c0c306.js +1 -1
  72. package/amd/IconSwitchButton-e6c5b20f.js +1 -1
  73. package/amd/IconToggleButton-e6c77f31.js +1 -1
  74. package/amd/{IconUserAssistance-b5075ca1.js → IconUserAssistance-456f4b11.js} +2 -2
  75. package/amd/{IconUserAssistance-b5075ca1.js.map → IconUserAssistance-456f4b11.js.map} +1 -1
  76. package/amd/{Indexer-2d8f61ab.js → Indexer-21549baf.js} +2 -2
  77. package/amd/{Indexer-2d8f61ab.js.map → Indexer-21549baf.js.map} +1 -1
  78. package/amd/InlineHelpSource-80327d99.js +1 -1
  79. package/amd/InlineUserAssistance-d208ce7b.js +1 -1
  80. package/amd/InputDateMask-4157ef60.js +1 -1
  81. package/amd/InputDatePicker-84b302ea.js +1 -1
  82. package/amd/InputPassword-868ad3bb.js +1 -1
  83. package/amd/InputText-2cd1e067.js +1 -1
  84. package/amd/Label-a53aabb9.js +1 -1
  85. package/amd/LabelValueLayout-6da5829a.js +1 -1
  86. package/amd/{Layer-9fb9ca67.js → Layer-2ca542c2.js} +2 -2
  87. package/amd/{Layer-9fb9ca67.js.map → Layer-2ca542c2.js.map} +1 -1
  88. package/amd/{LayerHost-1b4d03f0.js → LayerHost-a36b1781.js} +2 -2
  89. package/amd/{LayerHost-1b4d03f0.js.map → LayerHost-a36b1781.js.map} +1 -1
  90. package/amd/LayerManager-543c0bce.js +2 -0
  91. package/amd/{LayerManager-6c0b0eed.js.map → LayerManager-543c0bce.js.map} +1 -1
  92. package/amd/Legend-75b03ff3.js +1 -1
  93. package/amd/{LineAreaChart-d6300aad.js → LineAreaChart-a6914d16.js} +2 -2
  94. package/amd/{LineAreaChart-d6300aad.js.map → LineAreaChart-a6914d16.js.map} +1 -1
  95. package/amd/{LineSeries-6b2d5fc5.js → LineSeries-9ddf061e.js} +2 -2
  96. package/amd/{LineSeries-6b2d5fc5.js.map → LineSeries-9ddf061e.js.map} +1 -1
  97. package/amd/Link-ded379d9.js +1 -1
  98. package/amd/List-5797be06.js +2 -0
  99. package/amd/{List-cf09a2fb.js.map → List-5797be06.js.map} +1 -1
  100. package/amd/{ListItemLayout-51e98343.js → ListItemLayout-853acaaf.js} +2 -2
  101. package/amd/{ListItemLayout-51e98343.js.map → ListItemLayout-853acaaf.js.map} +1 -1
  102. package/amd/{ListView-29e03fea.js → ListView-51898222.js} +2 -2
  103. package/amd/{ListView-29e03fea.js.map → ListView-51898222.js.map} +1 -1
  104. package/amd/{LiveRegion-345ac2a4.js → LiveRegion-38fa0df8.js} +2 -2
  105. package/amd/{LiveRegion-345ac2a4.js.map → LiveRegion-38fa0df8.js.map} +1 -1
  106. package/amd/LoadMoreCollection-83413a59.js +2 -0
  107. package/amd/{LoadMoreCollection-a6adbc3f.js.map → LoadMoreCollection-83413a59.js.map} +1 -1
  108. package/amd/MaxLengthLiveRegion-40be44ee.js +2 -0
  109. package/amd/{MaxLengthLiveRegion-7723b0df.js.map → MaxLengthLiveRegion-40be44ee.js.map} +1 -1
  110. package/amd/Menu-bdd771bf.js +1 -1
  111. package/amd/MenuButton-da59eed0.js +1 -1
  112. package/amd/MenuItem-dc85fcad.js +1 -1
  113. package/amd/Message-d34eaeb6.js +1 -1
  114. package/amd/{MessageLayer-4238a197.js → MessageLayer-4d17f62f.js} +2 -2
  115. package/amd/{MessageLayer-4238a197.js.map → MessageLayer-4d17f62f.js.map} +1 -1
  116. package/amd/MessageToast-39315d42.js +1 -1
  117. package/amd/MessagesManager-8af1b1ee.js +1 -1
  118. package/amd/MeterBar-10ec0c50.js +1 -1
  119. package/amd/MeterCircle-cce2cb51.js +1 -1
  120. package/amd/{Modal-991f1310.js → Modal-21aed044.js} +2 -2
  121. package/amd/{Modal-991f1310.js.map → Modal-21aed044.js.map} +1 -1
  122. package/amd/{MonthView-1a60836e.js → MonthView-d4c06203.js} +2 -2
  123. package/amd/{MonthView-1a60836e.js.map → MonthView-d4c06203.js.map} +1 -1
  124. package/amd/NavigationList-6ca9cfba.js +2 -0
  125. package/amd/NavigationList-6ca9cfba.js.map +1 -0
  126. package/amd/NavigationListItem-43b6130b.js +2 -0
  127. package/amd/NavigationListItem-43b6130b.js.map +1 -0
  128. package/amd/NumberInputText-66e2d7d1.js +1 -1
  129. package/amd/{OverflowTabBar-6b2d76c0.js → OverflowTabBar-127659f1.js} +2 -2
  130. package/amd/{OverflowTabBar-6b2d76c0.js.map → OverflowTabBar-127659f1.js.map} +1 -1
  131. package/amd/OverflowTabBarItem-5404d133.js +2 -0
  132. package/amd/{OverflowTabBarItem-4c54927d.js.map → OverflowTabBarItem-5404d133.js.map} +1 -1
  133. package/amd/PRIVATE_BaseCardView.js +1 -1
  134. package/amd/PRIVATE_Chart.js +1 -1
  135. package/amd/PRIVATE_CheckboxControl.js +1 -1
  136. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  137. package/amd/PRIVATE_ClearIcon.js +1 -1
  138. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  139. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  140. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  141. package/amd/PRIVATE_FormControls.js +1 -1
  142. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  143. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  144. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  145. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  146. package/amd/PRIVATE_Icons/DragV.js +1 -1
  147. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  148. package/amd/PRIVATE_List.js +1 -1
  149. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  150. package/amd/PRIVATE_Message.js +1 -1
  151. package/amd/PRIVATE_MessageLayer.js +1 -1
  152. package/amd/PRIVATE_MonthView.js +1 -1
  153. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  154. package/amd/PRIVATE_PlotArea.js +1 -1
  155. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  156. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  157. package/amd/PRIVATE_SelectCommon.js +1 -1
  158. package/amd/PRIVATE_StyledCard.js +1 -1
  159. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  160. package/amd/PRIVATE_Table.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  190. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  191. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  192. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  193. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  194. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  195. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  196. package/amd/PRIVATE_TimeComponent.js +1 -1
  197. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  198. package/amd/PRIVATE_VisOverview.js +1 -1
  199. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  200. package/amd/PictoChart-952582dd.js +1 -1
  201. package/amd/PieChart-7826bf45.js +1 -1
  202. package/amd/{Popup-bba2ea15.js → Popup-92dfc51f.js} +2 -2
  203. package/amd/{Popup-bba2ea15.js.map → Popup-92dfc51f.js.map} +1 -1
  204. package/amd/{ProgressBar-4c24733e.js → ProgressBar-2087dde3.js} +2 -2
  205. package/amd/{ProgressBar-4c24733e.js.map → ProgressBar-2087dde3.js.map} +1 -1
  206. package/amd/ProgressButton-b830eead.js +1 -1
  207. package/amd/ProgressButtonLabelLayout-5404f190.js +1 -1
  208. package/amd/{ProgressCircle-57ce7b94.js → ProgressCircle-5709a095.js} +2 -2
  209. package/amd/{ProgressCircle-57ce7b94.js.map → ProgressCircle-5709a095.js.map} +1 -1
  210. package/amd/RadioItem-b159fce3.js +1 -1
  211. package/amd/RatingGauge-27c01e2c.js +1 -1
  212. package/amd/ReadonlyTextFieldInput-b8ee28da.js +1 -1
  213. package/amd/RemovableNavigationListItem-110f19ed.js +2 -0
  214. package/amd/{RemovableNavigationListItem-87e208e1.js.map → RemovableNavigationListItem-110f19ed.js.map} +1 -1
  215. package/amd/RemovableTabBarItem-3792c8fd.js +1 -1
  216. package/amd/{ReorderableTabBar-cdafd5b2.js → ReorderableTabBar-d6720955.js} +2 -2
  217. package/amd/{ReorderableTabBar-cdafd5b2.js.map → ReorderableTabBar-d6720955.js.map} +1 -1
  218. package/amd/RevealToggleIcon-e5bc966f.js +1 -1
  219. package/amd/{ScatterChart-de870222.js → ScatterChart-a7d49c89.js} +2 -2
  220. package/amd/{ScatterChart-de870222.js.map → ScatterChart-a7d49c89.js.map} +1 -1
  221. package/amd/SectionalLegend-e9c72ba8.js +1 -1
  222. package/amd/SectionedContent-5d5ff5b9.js +2 -0
  223. package/amd/{SectionedContent-d75017a3.js.map → SectionedContent-5d5ff5b9.js.map} +1 -1
  224. package/amd/{SelectMultiple-bd6c10ec.js → SelectMultiple-05de2e07.js} +2 -2
  225. package/amd/{SelectMultiple-bd6c10ec.js.map → SelectMultiple-05de2e07.js.map} +1 -1
  226. package/amd/{SelectSingle-7df4a6fc.js → SelectSingle-9e6bde58.js} +2 -2
  227. package/amd/{SelectSingle-7df4a6fc.js.map → SelectSingle-9e6bde58.js.map} +1 -1
  228. package/amd/SelectionCard-977be789.js +2 -0
  229. package/amd/{SelectionCard-baeadf9f.js.map → SelectionCard-977be789.js.map} +1 -1
  230. package/amd/Selector-b67fe1ef.js +1 -1
  231. package/amd/{SelectorAll-344e3366.js → SelectorAll-face9708.js} +2 -2
  232. package/amd/{SelectorAll-344e3366.js.map → SelectorAll-face9708.js.map} +1 -1
  233. package/amd/{Sheet-f4665056.js → Sheet-23307184.js} +2 -2
  234. package/amd/{Sheet-f4665056.js.map → Sheet-23307184.js.map} +1 -1
  235. package/amd/SplitMenuButton-8d873373.js +1 -1
  236. package/amd/{StyledCard-420ef03c.js → StyledCard-5c9cee13.js} +2 -2
  237. package/amd/{StyledCard-420ef03c.js.map → StyledCard-5c9cee13.js.map} +1 -1
  238. package/amd/{StyledLabelValueLayout-16380e6b.js → StyledLabelValueLayout-ddf48667.js} +2 -2
  239. package/amd/{StyledLabelValueLayout-16380e6b.js.map → StyledLabelValueLayout-ddf48667.js.map} +1 -1
  240. package/amd/StyledTextField-3398bf94.js +1 -1
  241. package/amd/TabBar-3a35b525.js +2 -0
  242. package/amd/{TabBar-8a0cbff2.js.map → TabBar-3a35b525.js.map} +1 -1
  243. package/amd/TabBarItem-04031938.js +1 -1
  244. package/amd/TabBarLayout-de1e43f5.js +1 -1
  245. package/amd/TabBarMixed-28b62328.js +2 -0
  246. package/amd/{TabBarMixed-d4482b12.js.map → TabBarMixed-28b62328.js.map} +1 -1
  247. package/amd/{TabBarMixedSeparator-84722127.js → TabBarMixedSeparator-bd0668c3.js} +2 -2
  248. package/amd/{TabBarMixedSeparator-84722127.js.map → TabBarMixedSeparator-bd0668c3.js.map} +1 -1
  249. package/amd/{Table-10903596.js → Table-d8edded4.js} +2 -2
  250. package/amd/{Table-10903596.js.map → Table-d8edded4.js.map} +1 -1
  251. package/amd/{TableView-1f5264e6.js → TableView-eb139e29.js} +2 -2
  252. package/amd/{TableView-1f5264e6.js.map → TableView-eb139e29.js.map} +1 -1
  253. package/amd/TagCloud-057fa603.js +1 -1
  254. package/amd/TextArea-8dcf6809.js +1 -1
  255. package/amd/TextAreaAutosize-97aba344.js +1 -1
  256. package/amd/TextField-80908a0d.js +1 -1
  257. package/amd/TextFieldInput-ca306ad6.js +1 -1
  258. package/amd/Theme-redwood/theme.css +237 -237
  259. package/amd/Theme-stable/theme.css +236 -236
  260. package/amd/TimeComponentCanvas2D-9a091053.js +1 -1
  261. package/amd/Toolbar-250d0ce7.js +1 -1
  262. package/amd/TruncatingBadge-6c7674e0.js +1 -1
  263. package/amd/TruncatingText-24914f42.js +1 -1
  264. package/amd/UNSAFE_ActionCard.js +1 -1
  265. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  266. package/amd/UNSAFE_BarChart.js +1 -1
  267. package/amd/UNSAFE_BaseButton.js +1 -1
  268. package/amd/UNSAFE_Button.js +1 -1
  269. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  270. package/amd/UNSAFE_ButtonSet.js +1 -1
  271. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  272. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  273. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  274. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  275. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  276. package/amd/UNSAFE_Card.js +1 -1
  277. package/amd/UNSAFE_CardFlexView.js +1 -1
  278. package/amd/UNSAFE_CardGridView.js +1 -1
  279. package/amd/UNSAFE_Center.js +1 -1
  280. package/amd/UNSAFE_Checkbox.js +1 -1
  281. package/amd/UNSAFE_CheckboxItem.js +1 -1
  282. package/amd/UNSAFE_CheckboxSet.js +1 -1
  283. package/amd/UNSAFE_Chip.js +1 -1
  284. package/amd/UNSAFE_Collapsible.js +1 -1
  285. package/amd/UNSAFE_ComboChart.js +1 -1
  286. package/amd/UNSAFE_ComponentMessage.js +1 -1
  287. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  288. package/amd/UNSAFE_DatePicker.js +1 -1
  289. package/amd/UNSAFE_Diagram.js +1 -1
  290. package/amd/UNSAFE_Dialog.js +1 -1
  291. package/amd/UNSAFE_DragHandle.js +1 -1
  292. package/amd/UNSAFE_DrawerLayout.js +1 -1
  293. package/amd/UNSAFE_DrawerPopup.js +1 -1
  294. package/amd/UNSAFE_Dropdown.js +1 -1
  295. package/amd/UNSAFE_Environment.js +1 -1
  296. package/amd/UNSAFE_ExpandableList.js +1 -1
  297. package/amd/UNSAFE_FilePicker.js +1 -1
  298. package/amd/UNSAFE_Flex.js +1 -1
  299. package/amd/UNSAFE_Floating.js +1 -1
  300. package/amd/UNSAFE_FormLayout.js +1 -1
  301. package/amd/UNSAFE_Gantt.js +1 -1
  302. package/amd/UNSAFE_Grid.js +1 -1
  303. package/amd/UNSAFE_HighlightText.js +1 -1
  304. package/amd/UNSAFE_Icon.js +1 -1
  305. package/amd/UNSAFE_IconButton.js +1 -1
  306. package/amd/UNSAFE_IconMenuButton.js +1 -1
  307. package/amd/UNSAFE_IconProgressButton.js +1 -1
  308. package/amd/UNSAFE_IconToggleButton.js +1 -1
  309. package/amd/UNSAFE_Indexer.js +1 -1
  310. package/amd/UNSAFE_InputDateMask.js +1 -1
  311. package/amd/UNSAFE_InputDatePicker.js +1 -1
  312. package/amd/UNSAFE_InputPassword.js +1 -1
  313. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  314. package/amd/UNSAFE_InputText.js +1 -1
  315. package/amd/UNSAFE_InputTimeMask.js +1 -1
  316. package/amd/UNSAFE_Label.js +1 -1
  317. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  318. package/amd/UNSAFE_LabelledLink.js +1 -1
  319. package/amd/UNSAFE_Layer.js +1 -1
  320. package/amd/UNSAFE_Legend.js +1 -1
  321. package/amd/UNSAFE_LineAreaChart.js +1 -1
  322. package/amd/UNSAFE_Link.js +1 -1
  323. package/amd/UNSAFE_ListItemLayout.js +1 -1
  324. package/amd/UNSAFE_ListView.js +1 -1
  325. package/amd/UNSAFE_LiveRegion.js +1 -1
  326. package/amd/UNSAFE_Menu.js +1 -1
  327. package/amd/UNSAFE_MenuButton.js +1 -1
  328. package/amd/UNSAFE_MessageBanner.js +1 -1
  329. package/amd/UNSAFE_MessageToast.js +1 -1
  330. package/amd/UNSAFE_MeterBar.js +1 -1
  331. package/amd/UNSAFE_MeterCircle.js +1 -1
  332. package/amd/UNSAFE_Modal.js +1 -1
  333. package/amd/UNSAFE_NavigationList.js +1 -1
  334. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  335. package/amd/UNSAFE_NumberInputText.js +1 -1
  336. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  337. package/amd/UNSAFE_PictoChart.js +1 -1
  338. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  339. package/amd/UNSAFE_PieChart.js +1 -1
  340. package/amd/UNSAFE_Popup.js +1 -1
  341. package/amd/UNSAFE_ProgressBar.js +1 -1
  342. package/amd/UNSAFE_ProgressButton.js +1 -1
  343. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  344. package/amd/UNSAFE_ProgressCircle.js +1 -1
  345. package/amd/UNSAFE_RadioItem.js +1 -1
  346. package/amd/UNSAFE_RadioSet.js +1 -1
  347. package/amd/UNSAFE_RatingGauge.js +1 -1
  348. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  349. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  350. package/amd/UNSAFE_RichRadioSet.js +1 -1
  351. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  352. package/amd/UNSAFE_ScatterChart.js +1 -1
  353. package/amd/UNSAFE_SectionalLegend.js +1 -1
  354. package/amd/UNSAFE_SelectMultiple.js +1 -1
  355. package/amd/UNSAFE_SelectSingle.js +1 -1
  356. package/amd/UNSAFE_SelectionCard.js +1 -1
  357. package/amd/UNSAFE_Selector.js +1 -1
  358. package/amd/UNSAFE_SelectorAll.js +1 -1
  359. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  360. package/amd/UNSAFE_Sheet.js +1 -1
  361. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  362. package/amd/UNSAFE_TabBar.js +1 -1
  363. package/amd/UNSAFE_TabBarCommon.js +1 -1
  364. package/amd/UNSAFE_TabBarMixed.js +1 -1
  365. package/amd/UNSAFE_TableView.js +1 -1
  366. package/amd/UNSAFE_TagCloud.js +1 -1
  367. package/amd/UNSAFE_TextArea.js +1 -1
  368. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  369. package/amd/UNSAFE_TextField.js +1 -1
  370. package/amd/UNSAFE_ToggleButton.js +1 -1
  371. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  372. package/amd/UNSAFE_Toolbar.js +1 -1
  373. package/amd/UNSAFE_Train.js +1 -1
  374. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  375. package/amd/UNSAFE_TruncatingText.js +1 -1
  376. package/amd/UNSAFE_UserAssistance.js +1 -1
  377. package/amd/UNSAFE_View.js +1 -1
  378. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  379. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  380. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  381. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  382. package/amd/UNSAFE_WindowOverlay.js +1 -1
  383. package/amd/{View-59fe568d.js → View-e15784b7.js} +2 -2
  384. package/amd/{View-59fe568d.js.map → View-e15784b7.js.map} +1 -1
  385. package/amd/{VirtualizedCollection-63223f5e.js → VirtualizedCollection-897516a5.js} +2 -2
  386. package/amd/{VirtualizedCollection-63223f5e.js.map → VirtualizedCollection-897516a5.js.map} +1 -1
  387. package/amd/VirtualizedListView-7cfd200d.js +2 -0
  388. package/amd/{VirtualizedListView-061057dd.js.map → VirtualizedListView-7cfd200d.js.map} +1 -1
  389. package/amd/{VisNoData-b60000bf.js → VisNoData-ac5880b9.js} +2 -2
  390. package/amd/{VisNoData-b60000bf.js.map → VisNoData-ac5880b9.js.map} +1 -1
  391. package/amd/VisProgressiveLoader-01e7a1a8.js +2 -0
  392. package/amd/{VisProgressiveLoader-c90f62c3.js.map → VisProgressiveLoader-01e7a1a8.js.map} +1 -1
  393. package/amd/{VisTabularDatatip-23cf3cfc.js → VisTabularDatatip-8e572ce2.js} +2 -2
  394. package/amd/{VisTabularDatatip-23cf3cfc.js.map → VisTabularDatatip-8e572ce2.js.map} +1 -1
  395. package/amd/{WindowOverlay-00523782.js → WindowOverlay-3d31f35a.js} +2 -2
  396. package/amd/{WindowOverlay-00523782.js.map → WindowOverlay-3d31f35a.js.map} +1 -1
  397. package/amd/{YearsGridView-b0b18b18.js → YearsGridView-f7ae554d.js} +2 -2
  398. package/amd/{YearsGridView-b0b18b18.js.map → YearsGridView-f7ae554d.js.map} +1 -1
  399. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  400. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  401. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  402. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  403. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  404. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  405. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  406. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  407. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  408. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  409. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  410. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  411. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  412. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  413. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  414. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  415. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  416. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  417. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  418. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  419. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  420. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  421. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  422. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  423. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  424. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  425. package/amd/hooks/UNSAFE_useScale.js +1 -1
  426. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  427. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  428. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  429. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  430. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  431. package/amd/hooks/UNSAFE_useUser.js +1 -1
  432. package/amd/{index-32a870a0.js → index-191c944d.js} +2 -2
  433. package/amd/index-191c944d.js.map +1 -0
  434. package/amd/listViewSelectionTests-338c9a81.js +1 -1
  435. package/amd/{popupUtils-710dc910.js → popupUtils-2308a848.js} +2 -2
  436. package/amd/{popupUtils-710dc910.js.map → popupUtils-2308a848.js.map} +1 -1
  437. package/amd/render-436a0489.js +2 -0
  438. package/amd/{render-6d2dc229.js.map → render-436a0489.js.map} +1 -1
  439. package/amd/{tabbableUtils-140cad66.js → tabbableUtils-dcf7c977.js} +2 -2
  440. package/amd/{tabbableUtils-140cad66.js.map → tabbableUtils-dcf7c977.js.map} +1 -1
  441. package/amd/{testData-bd34f137.js → testData-69541e84.js} +2 -2
  442. package/amd/{testData-bd34f137.js.map → testData-69541e84.js.map} +1 -1
  443. package/amd/tooltipUtils-cf586837.js +2 -0
  444. package/amd/{tooltipUtils-304eef18.js.map → tooltipUtils-cf586837.js.map} +1 -1
  445. package/amd/useCellNavigation-dcf1584f.js +1 -1
  446. package/amd/useChartContextMenu-79ff2c41.js +1 -1
  447. package/amd/{useChartDatatip-1f138781.js → useChartDatatip-f3574090.js} +2 -2
  448. package/amd/{useChartDatatip-1f138781.js.map → useChartDatatip-f3574090.js.map} +1 -1
  449. package/amd/{useColorScheme-8358a6c9.js → useColorScheme-47c8be99.js} +2 -2
  450. package/amd/{useColorScheme-8358a6c9.js.map → useColorScheme-47c8be99.js.map} +1 -1
  451. package/amd/useContextMenu-599ada89.js +1 -1
  452. package/amd/{useCssVars-4d0eeaa3.js → useCssVars-0b95ef7d.js} +2 -2
  453. package/amd/{useCssVars-4d0eeaa3.js.map → useCssVars-0b95ef7d.js.map} +1 -1
  454. package/amd/{useCurrentBgColor-24e98c84.js → useCurrentBgColor-7e1d99fb.js} +2 -2
  455. package/amd/{useCurrentBgColor-24e98c84.js.map → useCurrentBgColor-7e1d99fb.js.map} +1 -1
  456. package/amd/useCurrentKey-6e7057d0.js +2 -0
  457. package/amd/{useCurrentKey-5a5ffb1e.js.map → useCurrentKey-6e7057d0.js.map} +1 -1
  458. package/amd/{useDatatip-db874c22.js → useDatatip-0c425460.js} +2 -2
  459. package/amd/{useDatatip-db874c22.js.map → useDatatip-0c425460.js.map} +1 -1
  460. package/amd/{useDensity-2b757d02.js → useDensity-5cfdc56a.js} +2 -2
  461. package/amd/{useDensity-2b757d02.js.map → useDensity-5cfdc56a.js.map} +1 -1
  462. package/amd/{useFloating-c8c92f6f.js → useFloating-3f7a017b.js} +2 -2
  463. package/amd/{useFloating-c8c92f6f.js.map → useFloating-3f7a017b.js.map} +1 -1
  464. package/amd/{useKeyboardEvents-e66373bb.js → useKeyboardEvents-f1abb59c.js} +2 -2
  465. package/amd/{useKeyboardEvents-e66373bb.js.map → useKeyboardEvents-f1abb59c.js.map} +1 -1
  466. package/amd/useLegendContextMenu-e050a6ec.js +1 -1
  467. package/amd/useMeterDatatip-d4ac4181.js +2 -0
  468. package/amd/{useMeterDatatip-8702ee6e.js.map → useMeterDatatip-d4ac4181.js.map} +1 -1
  469. package/amd/useNavigationListItem-d79484b7.js +2 -0
  470. package/amd/useNavigationListItem-d79484b7.js.map +1 -0
  471. package/amd/{useOutsideClick-39a81428.js → useOutsideClick-fc4dc457.js} +2 -2
  472. package/amd/{useOutsideClick-39a81428.js.map → useOutsideClick-fc4dc457.js.map} +1 -1
  473. package/amd/usePopupAnimation-b6303252.js +2 -0
  474. package/amd/{usePopupAnimation-7023407f.js.map → usePopupAnimation-b6303252.js.map} +1 -1
  475. package/amd/usePrefixSuffix-582e16a2.js +2 -0
  476. package/amd/{usePrefixSuffix-19a86824.js.map → usePrefixSuffix-582e16a2.js.map} +1 -1
  477. package/amd/{useReorderableItem-fa5fd0f4.js → useReorderableItem-fd5a7b07.js} +2 -2
  478. package/amd/{useReorderableItem-fa5fd0f4.js.map → useReorderableItem-fd5a7b07.js.map} +1 -1
  479. package/amd/{useRovingTabIndexContainer-6b89c886.js → useRovingTabIndexContainer-f72b17ab.js} +2 -2
  480. package/amd/{useRovingTabIndexContainer-6b89c886.js.map → useRovingTabIndexContainer-f72b17ab.js.map} +1 -1
  481. package/amd/{useScale-0fb08a15.js → useScale-b2f29348.js} +2 -2
  482. package/amd/{useScale-0fb08a15.js.map → useScale-b2f29348.js.map} +1 -1
  483. package/amd/{useSelectCommon-dfd17adb.js → useSelectCommon-736de0ee.js} +2 -2
  484. package/amd/{useSelectCommon-dfd17adb.js.map → useSelectCommon-736de0ee.js.map} +1 -1
  485. package/amd/{useSelectDrill-03c65602.js → useSelectDrill-6b0b6da7.js} +2 -2
  486. package/amd/{useSelectDrill-03c65602.js.map → useSelectDrill-6b0b6da7.js.map} +1 -1
  487. package/amd/{useSelection-569188b3.js → useSelection-02c4c0c0.js} +2 -2
  488. package/amd/{useSelection-569188b3.js.map → useSelection-02c4c0c0.js.map} +1 -1
  489. package/amd/{useSelection-4c8e905b.js → useSelection-5128f1e7.js} +2 -2
  490. package/amd/{useSelection-4c8e905b.js.map → useSelection-5128f1e7.js.map} +1 -1
  491. package/amd/useTabBar-b1536c9a.js +1 -1
  492. package/amd/{useTestId-d0c49456.js → useTestId-efb1c8f9.js} +2 -2
  493. package/amd/{useTestId-d0c49456.js.map → useTestId-efb1c8f9.js.map} +1 -1
  494. package/amd/{useTheme-915016ef.js → useTheme-a99513fe.js} +2 -2
  495. package/amd/{useTheme-915016ef.js.map → useTheme-a99513fe.js.map} +1 -1
  496. package/amd/useThemeInterpolations-93c8c4c0.js +2 -0
  497. package/amd/{useThemeInterpolations-95e6f849.js.map → useThemeInterpolations-93c8c4c0.js.map} +1 -1
  498. package/amd/{useTooltip-f7c1ad5c.js → useTooltip-c10bcc4e.js} +2 -2
  499. package/amd/{useTooltip-f7c1ad5c.js.map → useTooltip-c10bcc4e.js.map} +1 -1
  500. package/amd/{useTooltipOnTruncation-7a2a7106.js → useTooltipOnTruncation-a913ba8a.js} +2 -2
  501. package/amd/{useTooltipOnTruncation-7a2a7106.js.map → useTooltipOnTruncation-a913ba8a.js.map} +1 -1
  502. package/amd/{useTranslationBundle-652e08a6.js → useTranslationBundle-33399171.js} +2 -2
  503. package/amd/{useTranslationBundle-652e08a6.js.map → useTranslationBundle-33399171.js.map} +1 -1
  504. package/amd/{useUser-abae2493.js → useUser-33136570.js} +2 -2
  505. package/amd/{useUser-abae2493.js.map → useUser-33136570.js.map} +1 -1
  506. package/amd/useVisDragModeControls-120076e9.js +1 -1
  507. package/amd/{useVisEvents-a2e7394b.js → useVisEvents-bc470edf.js} +2 -2
  508. package/amd/{useVisEvents-a2e7394b.js.map → useVisEvents-bc470edf.js.map} +1 -1
  509. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  510. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  511. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  512. package/amd/{withDirectionIcon-194f3242.js → withDirectionIcon-56788c71.js} +2 -2
  513. package/amd/{withDirectionIcon-194f3242.js.map → withDirectionIcon-56788c71.js.map} +1 -1
  514. package/amd/withThemeProps-5ba8f3bc.js +1 -1
  515. package/cjs/{BarChart-a07c8a22.js → BarChart-af620cec.js} +2 -2
  516. package/cjs/{BarChart-a07c8a22.js.map → BarChart-af620cec.js.map} +1 -1
  517. package/cjs/{Chart-6e0cf724.js → Chart-6b63bb0b.js} +2 -2
  518. package/cjs/{Chart-6e0cf724.js.map → Chart-6b63bb0b.js.map} +1 -1
  519. package/cjs/{ComboChart-3d1bb4e9.js → ComboChart-58116ae8.js} +2 -2
  520. package/cjs/{ComboChart-3d1bb4e9.js.map → ComboChart-58116ae8.js.map} +1 -1
  521. package/cjs/{LineAreaChart-c6143d4b.js → LineAreaChart-b32fcb7b.js} +2 -2
  522. package/cjs/{LineAreaChart-c6143d4b.js.map → LineAreaChart-b32fcb7b.js.map} +1 -1
  523. package/cjs/PRIVATE_Chart.js +4 -4
  524. package/cjs/{ScatterChart-9a324d67.js → ScatterChart-0ec451fd.js} +2 -2
  525. package/cjs/{ScatterChart-9a324d67.js.map → ScatterChart-0ec451fd.js.map} +1 -1
  526. package/cjs/Theme-redwood/theme.css +230 -230
  527. package/cjs/Theme-stable/theme.css +256 -256
  528. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  529. package/cjs/UNSAFE_BarChart.js +5 -5
  530. package/cjs/UNSAFE_ComboChart.js +5 -5
  531. package/cjs/UNSAFE_LineAreaChart.js +5 -5
  532. package/cjs/UNSAFE_ScatterChart.js +5 -5
  533. package/es/ActionCard-9f4e3613.js +1 -1
  534. package/es/BarChart-49c7f6bb.js +1 -1
  535. package/es/BarGroup-ac152c88.js +1 -1
  536. package/es/BaseButton-b5fc41a8.js +2 -2
  537. package/es/BaseCardView-5e0a327f.js +7 -7
  538. package/es/{BaseCardViewSelectionTest-639276bd.js → BaseCardViewSelectionTest-b3b001e6.js} +7 -7
  539. package/es/{BaseCardViewSelectionTest-639276bd.js.map → BaseCardViewSelectionTest-b3b001e6.js.map} +1 -1
  540. package/es/BaseNavigationListItem-44157da8.js +1 -1
  541. package/es/BaseRichSelection-908a6bc3.js +9 -9
  542. package/es/ButtonSet-474e170e.js +2 -2
  543. package/es/ButtonSetIconButton-34b24ad4.js +3 -3
  544. package/es/{Card-48705b23.js → Card-31a1cb19.js} +2 -2
  545. package/es/{Card-48705b23.js.map → Card-31a1cb19.js.map} +1 -1
  546. package/es/{Center-f5a074ea.js → Center-903e6ea1.js} +2 -2
  547. package/es/{Center-f5a074ea.js.map → Center-903e6ea1.js.map} +1 -1
  548. package/es/Chart-649fdf1c.js +8 -8
  549. package/es/CheckboxControl-1e686657.js +6 -6
  550. package/es/CheckboxRadioField-201ef340.js +7 -7
  551. package/es/Chip-9540ef60.js +1 -1
  552. package/es/ClearIcon-215c5c34.js +1 -1
  553. package/es/CollapseIcon-43663109.js +1 -1
  554. package/es/Collapsible-757eaed6.js +2 -2
  555. package/es/ComboChart-8ca6f857.js +2 -2
  556. package/es/CompactHelpSource-20f20c17.js +2 -2
  557. package/es/{CompactLabelAssistance-e6df8b6f.js → CompactLabelAssistance-d92b17d1.js} +5 -5
  558. package/es/{CompactLabelAssistance-e6df8b6f.js.map → CompactLabelAssistance-d92b17d1.js.map} +1 -1
  559. package/es/CompactUserAssistance-c2fafab0.js +4 -4
  560. package/es/ComponentMessageContainer-a06ceb16.js +4 -4
  561. package/es/ConveyorBeltItem-2a7cfd15.js +2 -2
  562. package/es/{DatePicker-f149bde7.js → DatePicker-2838c573.js} +6 -6
  563. package/es/{DatePicker-f149bde7.js.map → DatePicker-2838c573.js.map} +1 -1
  564. package/es/DatePickerHeader-151355b3.js +3 -3
  565. package/es/{Diagram-32842af8.js → Diagram-7236c495.js} +5 -5
  566. package/es/{Diagram-32842af8.js.map → Diagram-7236c495.js.map} +1 -1
  567. package/es/{Dialog-dbd00dbd.js → Dialog-4a0cb90c.js} +8 -8
  568. package/es/{Dialog-dbd00dbd.js.map → Dialog-4a0cb90c.js.map} +1 -1
  569. package/es/DirectionalCollapseArrowIcon-24020989.js +1 -1
  570. package/es/DirectionalExpandArrowIcon-28f288ca.js +1 -1
  571. package/es/{DragHandle-3010d22c.js → DragHandle-f9b35377.js} +2 -2
  572. package/es/{DragHandle-3010d22c.js.map → DragHandle-f9b35377.js.map} +1 -1
  573. package/es/{DrawerPopup-90be1472.js → DrawerPopup-dd60ef68.js} +7 -7
  574. package/es/{DrawerPopup-90be1472.js.map → DrawerPopup-dd60ef68.js.map} +1 -1
  575. package/es/DrawerPopupVariants.styles.css +5 -5
  576. package/es/DrawerPopupVariants.styles2.css +5 -5
  577. package/es/{Dropdown-8936afb0.js → Dropdown-ab7ecd4b.js} +5 -5
  578. package/es/{Dropdown-8936afb0.js.map → Dropdown-ab7ecd4b.js.map} +1 -1
  579. package/es/{EnvironmentProvider-e6ce326b.js → EnvironmentProvider-1580c879.js} +3 -3
  580. package/es/{EnvironmentProvider-e6ce326b.js.map → EnvironmentProvider-1580c879.js.map} +1 -1
  581. package/es/ExpandableList-84f08709.js +3 -3
  582. package/es/FilePicker-74669308.js +2 -2
  583. package/es/{Flex-dce7c423.js → Flex-ba379500.js} +2 -2
  584. package/es/{Flex-dce7c423.js.map → Flex-ba379500.js.map} +1 -1
  585. package/es/{Floating-bd10e1bb.js → Floating-94a06a14.js} +4 -4
  586. package/es/{Floating-bd10e1bb.js.map → Floating-94a06a14.js.map} +1 -1
  587. package/es/FormLayout-2fba104e.js +1 -1
  588. package/es/FormLayoutVariants.styles.css +14 -14
  589. package/es/FormLayoutVariants.styles2.css +14 -14
  590. package/es/Gantt-f95290cd.js +9 -9
  591. package/es/{Grid-a92f6ff7.js → Grid-48e5c78c.js} +2 -2
  592. package/es/{Grid-a92f6ff7.js.map → Grid-48e5c78c.js.map} +1 -1
  593. package/es/{Gridlines-14e60b77.js → Gridlines-bb3b92f4.js} +2 -2
  594. package/es/{Gridlines-14e60b77.js.map → Gridlines-bb3b92f4.js.map} +1 -1
  595. package/es/GroupLoadingIndicator-2a294121.js +1 -1
  596. package/es/{HighlightText-6fb192ee.js → HighlightText-a2f81a44.js} +2 -2
  597. package/es/{HighlightText-6fb192ee.js.map → HighlightText-a2f81a44.js.map} +1 -1
  598. package/es/Icon-43d05084.js +3 -3
  599. package/es/IconButton-b78b5ace.js +3 -3
  600. package/es/IconMenuButton-441b34f8.js +3 -3
  601. package/es/IconProgressButton-cb75faa2.js +3 -3
  602. package/es/IconSwitchButton-4febde18.js +3 -3
  603. package/es/IconToggleButton-299d5d98.js +3 -3
  604. package/es/{IconUserAssistance-bb4f169d.js → IconUserAssistance-264032b1.js} +3 -3
  605. package/es/{IconUserAssistance-bb4f169d.js.map → IconUserAssistance-264032b1.js.map} +1 -1
  606. package/es/Indexer-6c39ddf3.js +4 -4
  607. package/es/InlineHelpSource-e0c901ba.js +1 -1
  608. package/es/InlineUserAssistance-9b70db5b.js +5 -5
  609. package/es/InputDateMask-0b2a46b5.js +7 -7
  610. package/es/{InputDatePicker-2d3be3a0.js → InputDatePicker-60465b12.js} +10 -10
  611. package/es/{InputDatePicker-2d3be3a0.js.map → InputDatePicker-60465b12.js.map} +1 -1
  612. package/es/InputPassword-106c544f.js +4 -4
  613. package/es/InputText-2bf2ce27.js +6 -6
  614. package/es/Label-4503b935.js +5 -5
  615. package/es/LabelValueLayout-fa08943c.js +1 -1
  616. package/es/{Layer-f309effc.js → Layer-d4aca92e.js} +3 -3
  617. package/es/{Layer-f309effc.js.map → Layer-d4aca92e.js.map} +1 -1
  618. package/es/{LayerHost-ca080d9a.js → LayerHost-f7ef254c.js} +2 -2
  619. package/es/{LayerHost-ca080d9a.js.map → LayerHost-f7ef254c.js.map} +1 -1
  620. package/es/{LayerManager-3e4e8d1a.js → LayerManager-4ad387dc.js} +2 -2
  621. package/es/{LayerManager-3e4e8d1a.js.map → LayerManager-4ad387dc.js.map} +1 -1
  622. package/es/Legend-449e7201.js +3 -3
  623. package/es/{LineAreaChart-edf11a57.js → LineAreaChart-9a46dce5.js} +3 -3
  624. package/es/{LineAreaChart-edf11a57.js.map → LineAreaChart-9a46dce5.js.map} +1 -1
  625. package/es/{LineSeries-89d507a5.js → LineSeries-e71ae377.js} +2 -2
  626. package/es/{LineSeries-89d507a5.js.map → LineSeries-e71ae377.js.map} +1 -1
  627. package/es/Link-9803ca5b.js +1 -1
  628. package/es/List-da0ce081.js +5 -5
  629. package/es/{ListItemLayout-b580a2cb.js → ListItemLayout-1207112f.js} +2 -2
  630. package/es/{ListItemLayout-b580a2cb.js.map → ListItemLayout-1207112f.js.map} +1 -1
  631. package/es/ListView-5cada8e6.js +3 -3
  632. package/es/{LiveRegion-7d6e9b93.js → LiveRegion-d9f2bbdb.js} +2 -2
  633. package/es/{LiveRegion-7d6e9b93.js.map → LiveRegion-d9f2bbdb.js.map} +1 -1
  634. package/es/{MaxLengthLiveRegion-3d6867c3.js → MaxLengthLiveRegion-db713260.js} +3 -3
  635. package/es/{MaxLengthLiveRegion-3d6867c3.js.map → MaxLengthLiveRegion-db713260.js.map} +1 -1
  636. package/es/Menu-aa21f75f.js +6 -6
  637. package/es/MenuButton-fe7e2d06.js +2 -2
  638. package/es/MenuItem-01343558.js +1 -1
  639. package/es/Message-98038159.js +2 -2
  640. package/es/{MessageLayer-707a3302.js → MessageLayer-7650c582.js} +6 -6
  641. package/es/{MessageLayer-707a3302.js.map → MessageLayer-7650c582.js.map} +1 -1
  642. package/es/MessageToast-2b7922be.js +8 -8
  643. package/es/MessagesManager-9efc5d44.js +3 -3
  644. package/es/MeterBar-1319327c.js +5 -5
  645. package/es/MeterCircle-b52c28b1.js +5 -5
  646. package/es/{Modal-9bdb87a4.js → Modal-7efd2f81.js} +4 -4
  647. package/es/{Modal-9bdb87a4.js.map → Modal-7efd2f81.js.map} +1 -1
  648. package/es/{MonthView-7f913bb2.js → MonthView-df043775.js} +4 -4
  649. package/es/{MonthView-7f913bb2.js.map → MonthView-df043775.js.map} +1 -1
  650. package/es/{NavigationListItem-7e0a2d00.js → NavigationListItem-bdf7a2ab.js} +16 -3
  651. package/{amd/NavigationListItem-4e832bbf.js.map → es/NavigationListItem-bdf7a2ab.js.map} +1 -1
  652. package/es/NumberInputText-c71b0b51.js +6 -6
  653. package/es/{OverflowTabBar-8dbc44bf.js → OverflowTabBar-732d37e5.js} +2 -2
  654. package/es/{OverflowTabBar-8dbc44bf.js.map → OverflowTabBar-732d37e5.js.map} +1 -1
  655. package/es/{OverflowTabBarItem-63bd56a4.js → OverflowTabBarItem-b643a574.js} +5 -5
  656. package/es/{OverflowTabBarItem-63bd56a4.js.map → OverflowTabBarItem-b643a574.js.map} +1 -1
  657. package/es/PRIVATE_BaseCardView.js +21 -21
  658. package/es/PRIVATE_Chart.js +31 -31
  659. package/es/PRIVATE_CheckboxControl.js +23 -23
  660. package/es/PRIVATE_CheckboxRadioField.js +25 -25
  661. package/es/PRIVATE_ClearIcon.js +17 -17
  662. package/es/PRIVATE_DatePickerHeader.js +18 -18
  663. package/es/PRIVATE_DatePickerLayout.js +4 -4
  664. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  665. package/es/PRIVATE_FormControls.js +19 -19
  666. package/es/PRIVATE_IconSwitchButton.js +15 -15
  667. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  668. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  669. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  670. package/es/PRIVATE_Icons/DragV.js +15 -15
  671. package/es/PRIVATE_Icons/WarningS.js +15 -15
  672. package/es/PRIVATE_List.js +19 -19
  673. package/es/PRIVATE_Message.js +18 -18
  674. package/es/PRIVATE_MessageLayer.js +12 -12
  675. package/es/PRIVATE_MonthView.js +7 -7
  676. package/es/PRIVATE_MonthYearGridView.js +7 -7
  677. package/es/PRIVATE_PlotArea.js +4 -4
  678. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  679. package/es/PRIVATE_RichSelectionCommon.js +26 -26
  680. package/es/PRIVATE_SelectCommon.js +28 -28
  681. package/es/PRIVATE_StyledCard.js +4 -4
  682. package/es/PRIVATE_StyledCheckbox.js +15 -15
  683. package/es/PRIVATE_Table.js +24 -24
  684. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  685. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  686. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  687. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  688. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  689. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  690. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  691. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  692. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  693. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  694. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  695. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  696. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  697. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  698. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  699. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
  700. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  701. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  702. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  703. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  704. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  705. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  706. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  707. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  708. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  709. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  710. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  711. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
  712. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  713. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  714. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  715. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  716. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  717. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  718. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  719. package/es/PRIVATE_TimeComponent.js +17 -17
  720. package/es/PRIVATE_VisOverview.js +15 -15
  721. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  722. package/es/PictoChart-b3fc22fd.js +6 -6
  723. package/es/PieChart-b54696a5.js +6 -6
  724. package/es/{Popup-0b60095e.js → Popup-67ec4db2.js} +9 -9
  725. package/es/{Popup-0b60095e.js.map → Popup-67ec4db2.js.map} +1 -1
  726. package/es/{ProgressBar-717be5e8.js → ProgressBar-cad7d04b.js} +3 -3
  727. package/es/{ProgressBar-717be5e8.js.map → ProgressBar-cad7d04b.js.map} +1 -1
  728. package/es/ProgressButton-40c3b504.js +3 -3
  729. package/es/ProgressButtonLabelLayout-8c64cece.js +3 -3
  730. package/es/{ProgressCircle-d75b0848.js → ProgressCircle-7d883146.js} +2 -2
  731. package/es/{ProgressCircle-d75b0848.js.map → ProgressCircle-7d883146.js.map} +1 -1
  732. package/es/RadioItem-a1599b77.js +6 -6
  733. package/es/RatingGauge-6c13b141.js +8 -8
  734. package/es/ReadonlyTextFieldInput-d6b1fac1.js +1 -1
  735. package/es/RemovableNavigationListItem-84fad399.js +1 -1
  736. package/es/RemovableTabBarItem-42735820.js +2 -2
  737. package/es/ReorderableTabBar-1b2c9ebe.js +3 -3
  738. package/es/RevealToggleIcon-abf5f233.js +1 -1
  739. package/es/{ScatterChart-622aac36.js → ScatterChart-59c7f1d7.js} +3 -3
  740. package/es/{ScatterChart-622aac36.js.map → ScatterChart-59c7f1d7.js.map} +1 -1
  741. package/es/SectionalLegend-fb0128ae.js +4 -4
  742. package/es/{SectionedContent-89fd6108.js → SectionedContent-db1b2e44.js} +5 -5
  743. package/es/{SectionedContent-89fd6108.js.map → SectionedContent-db1b2e44.js.map} +1 -1
  744. package/es/SelectMultiple-48af2264.js +8 -8
  745. package/es/SelectSingle-56ff2907.js +7 -7
  746. package/es/{SelectionCard-4cf71979.js → SelectionCard-f4e6f6f4.js} +2 -2
  747. package/es/{SelectionCard-4cf71979.js.map → SelectionCard-f4e6f6f4.js.map} +1 -1
  748. package/es/Selector-cc435916.js +1 -1
  749. package/es/{SelectorAll-401564d3.js → SelectorAll-fb5a5a47.js} +7 -7
  750. package/es/{SelectorAll-401564d3.js.map → SelectorAll-fb5a5a47.js.map} +1 -1
  751. package/es/{Sheet-754bd0f0.js → Sheet-2d9c641b.js} +3 -3
  752. package/es/{Sheet-754bd0f0.js.map → Sheet-2d9c641b.js.map} +1 -1
  753. package/es/SplitMenuButton-1c556d1d.js +2 -2
  754. package/es/{StyledCard-2dc6d348.js → StyledCard-75bcdad7.js} +2 -2
  755. package/es/{StyledCard-2dc6d348.js.map → StyledCard-75bcdad7.js.map} +1 -1
  756. package/es/{StyledLabelValueLayout-f3d69ee8.js → StyledLabelValueLayout-1b0b4a96.js} +2 -2
  757. package/es/{StyledLabelValueLayout-f3d69ee8.js.map → StyledLabelValueLayout-1b0b4a96.js.map} +1 -1
  758. package/es/StyledTextField-21e8afef.js +3 -3
  759. package/es/TabBar-ef456a2c.js +5 -5
  760. package/es/TabBarItem-af8b903f.js +3 -3
  761. package/es/TabBarLayout-d7d27c34.js +1 -1
  762. package/es/TabBarMixed-71314dd9.js +5 -5
  763. package/es/{TabBarMixedSeparator-dd80c7f2.js → TabBarMixedSeparator-1aacc254.js} +2 -2
  764. package/es/{TabBarMixedSeparator-dd80c7f2.js.map → TabBarMixedSeparator-1aacc254.js.map} +1 -1
  765. package/es/Table-895c20ae.js +9 -9
  766. package/es/TagCloud-ed095030.js +8 -8
  767. package/es/TextArea-f411ff47.js +5 -5
  768. package/es/TextAreaAutosize-163b776f.js +5 -5
  769. package/es/TextField-28d425d6.js +3 -3
  770. package/es/TextFieldInput-c9239b1e.js +1 -1
  771. package/es/Theme-redwood/theme.css +426 -426
  772. package/es/Theme-stable/theme.css +311 -311
  773. package/es/TimeComponentCanvas2D-70d21419.js +5 -5
  774. package/es/Toolbar-4fe755d3.js +1 -1
  775. package/es/TruncatingBadge-a6ead29d.js +1 -1
  776. package/es/TruncatingText-107fcc48.js +1 -1
  777. package/es/UNSAFE_ActionCard.js +3 -3
  778. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +31 -31
  779. package/es/UNSAFE_BarChart.js +31 -31
  780. package/es/UNSAFE_BaseButton.js +3 -3
  781. package/es/UNSAFE_Button.js +3 -3
  782. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
  783. package/es/UNSAFE_ButtonSet.js +4 -4
  784. package/es/UNSAFE_ButtonSetButton.js +3 -3
  785. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  786. package/es/UNSAFE_ButtonSetItem.js +15 -15
  787. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  788. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  789. package/es/UNSAFE_Card.js +5 -5
  790. package/es/UNSAFE_CardFlexView.js +21 -21
  791. package/es/UNSAFE_CardGridView.js +21 -21
  792. package/es/UNSAFE_Center.js +5 -5
  793. package/es/UNSAFE_Checkbox.js +23 -23
  794. package/es/UNSAFE_CheckboxItem.js +23 -23
  795. package/es/UNSAFE_CheckboxSet.js +24 -24
  796. package/es/UNSAFE_Chip.js +2 -2
  797. package/es/UNSAFE_Collapsible.js +17 -17
  798. package/es/UNSAFE_ComboChart.js +33 -33
  799. package/es/UNSAFE_ComponentMessage.js +18 -18
  800. package/es/UNSAFE_ConveyorBelt.js +15 -15
  801. package/es/UNSAFE_DatePicker.js +23 -23
  802. package/es/UNSAFE_Diagram.js +20 -20
  803. package/es/UNSAFE_Dialog.js +21 -21
  804. package/es/UNSAFE_DragHandle.js +17 -17
  805. package/es/UNSAFE_DrawerLayout.js +12 -12
  806. package/es/UNSAFE_DrawerPopup/themes/redwood/DrawerPopupTheme.js +1 -1
  807. package/es/UNSAFE_DrawerPopup/themes/redwood/DrawerPopupVariants.css.js +1 -1
  808. package/es/UNSAFE_DrawerPopup/themes/stable/DrawerPopupTheme.js +1 -1
  809. package/es/UNSAFE_DrawerPopup/themes/stable/DrawerPopupVariants.css.js +1 -1
  810. package/es/UNSAFE_DrawerPopup.js +14 -14
  811. package/es/UNSAFE_Dropdown.js +13 -13
  812. package/es/UNSAFE_Environment.js +4 -4
  813. package/es/UNSAFE_ExpandableList.js +22 -22
  814. package/es/UNSAFE_FilePicker.js +4 -4
  815. package/es/UNSAFE_Flex.js +4 -4
  816. package/es/UNSAFE_Floating.js +11 -11
  817. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
  818. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
  819. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
  820. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
  821. package/es/UNSAFE_FormLayout.js +3 -3
  822. package/es/UNSAFE_Gantt.js +22 -22
  823. package/es/UNSAFE_Grid.js +4 -4
  824. package/es/UNSAFE_HighlightText.js +4 -4
  825. package/es/UNSAFE_Icon.js +15 -15
  826. package/es/UNSAFE_IconButton.js +15 -15
  827. package/es/UNSAFE_IconMenuButton.js +21 -21
  828. package/es/UNSAFE_IconProgressButton.js +18 -18
  829. package/es/UNSAFE_IconToggleButton.js +15 -15
  830. package/es/UNSAFE_Indexer.js +6 -6
  831. package/es/UNSAFE_InputDateMask.js +25 -25
  832. package/es/UNSAFE_InputDatePicker.js +114 -114
  833. package/es/UNSAFE_InputPassword.js +24 -24
  834. package/es/UNSAFE_InputSensitiveText.js +26 -26
  835. package/es/UNSAFE_InputText.js +27 -27
  836. package/es/UNSAFE_InputTimeMask.js +25 -25
  837. package/es/UNSAFE_Label.js +23 -23
  838. package/es/UNSAFE_LabelValueLayout.js +4 -4
  839. package/es/UNSAFE_LabelledLink.js +25 -25
  840. package/es/UNSAFE_Layer.js +8 -8
  841. package/es/UNSAFE_Legend.js +25 -25
  842. package/es/UNSAFE_LineAreaChart.js +34 -34
  843. package/es/UNSAFE_Link.js +2 -2
  844. package/es/UNSAFE_ListItemLayout.js +5 -5
  845. package/es/UNSAFE_ListView.js +28 -28
  846. package/es/UNSAFE_LiveRegion.js +4 -4
  847. package/es/UNSAFE_Menu.js +23 -23
  848. package/es/UNSAFE_MenuButton.js +21 -21
  849. package/es/UNSAFE_MessageBanner.js +18 -18
  850. package/es/UNSAFE_MessageToast.js +21 -21
  851. package/es/UNSAFE_MeterBar.js +16 -16
  852. package/es/UNSAFE_MeterCircle.js +17 -17
  853. package/es/UNSAFE_Modal.js +9 -9
  854. package/es/UNSAFE_NavigationList.js +23 -23
  855. package/es/UNSAFE_NavigationListCommon.js +17 -17
  856. package/es/UNSAFE_NumberInputText.js +26 -26
  857. package/es/UNSAFE_OverflowTabBar.js +27 -27
  858. package/es/UNSAFE_PictoChart.js +14 -14
  859. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
  860. package/es/UNSAFE_PieChart.js +22 -22
  861. package/es/UNSAFE_Popup.js +17 -17
  862. package/es/UNSAFE_ProgressBar.js +5 -5
  863. package/es/UNSAFE_ProgressButton.js +18 -18
  864. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  865. package/es/UNSAFE_ProgressCircle.js +4 -4
  866. package/es/UNSAFE_RadioItem.js +23 -23
  867. package/es/UNSAFE_RadioSet.js +24 -24
  868. package/es/UNSAFE_RatingGauge.js +17 -17
  869. package/es/UNSAFE_ReorderableTabBar.js +25 -25
  870. package/es/UNSAFE_RichCheckboxSet.js +26 -26
  871. package/es/UNSAFE_RichRadioSet.js +26 -26
  872. package/es/UNSAFE_RichSelectionItem.js +20 -20
  873. package/es/UNSAFE_ScatterChart.js +34 -34
  874. package/es/UNSAFE_SectionalLegend.js +26 -26
  875. package/es/UNSAFE_SelectMultiple.js +31 -31
  876. package/es/UNSAFE_SelectSingle.js +31 -31
  877. package/es/UNSAFE_SelectionCard.js +5 -5
  878. package/es/UNSAFE_Selector.js +15 -15
  879. package/es/UNSAFE_SelectorAll.js +19 -19
  880. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +15 -15
  881. package/es/UNSAFE_Sheet.js +12 -12
  882. package/es/UNSAFE_SplitMenuButton.js +21 -21
  883. package/es/UNSAFE_TabBar.js +27 -27
  884. package/es/UNSAFE_TabBarCommon.js +27 -27
  885. package/es/UNSAFE_TabBarMixed.js +28 -28
  886. package/es/UNSAFE_TableView.js +24 -24
  887. package/es/UNSAFE_TagCloud.js +24 -24
  888. package/es/UNSAFE_TextArea.js +26 -26
  889. package/es/UNSAFE_TextAreaAutosize.js +26 -26
  890. package/es/UNSAFE_TextField.js +8 -8
  891. package/es/UNSAFE_ToggleButton.js +3 -3
  892. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
  893. package/es/UNSAFE_Toolbar.js +4 -4
  894. package/es/UNSAFE_Train.js +16 -16
  895. package/es/UNSAFE_TruncatingBadge.js +16 -16
  896. package/es/UNSAFE_TruncatingText.js +16 -16
  897. package/es/UNSAFE_UserAssistance.js +24 -24
  898. package/es/UNSAFE_View.js +7 -7
  899. package/es/UNSAFE_VirtualizedListView.js +19 -19
  900. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  901. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  902. package/es/UNSAFE_VisStatusMessage.js +6 -6
  903. package/es/UNSAFE_WindowOverlay.js +4 -4
  904. package/es/{View-6941c4ec.js → View-79162397.js} +5 -5
  905. package/es/{View-6941c4ec.js.map → View-79162397.js.map} +1 -1
  906. package/es/{VisNoData-6c9dff1d.js → VisNoData-f70e7c57.js} +3 -3
  907. package/es/{VisNoData-6c9dff1d.js.map → VisNoData-f70e7c57.js.map} +1 -1
  908. package/es/{VisProgressiveLoader-af51c524.js → VisProgressiveLoader-4fe41bcb.js} +3 -3
  909. package/es/{VisProgressiveLoader-af51c524.js.map → VisProgressiveLoader-4fe41bcb.js.map} +1 -1
  910. package/es/{VisTabularDatatip-1aba2c3f.js → VisTabularDatatip-24b65098.js} +2 -2
  911. package/es/{VisTabularDatatip-1aba2c3f.js.map → VisTabularDatatip-24b65098.js.map} +1 -1
  912. package/es/{WindowOverlay-77a01a5a.js → WindowOverlay-8fbe3e1c.js} +2 -2
  913. package/es/{WindowOverlay-77a01a5a.js.map → WindowOverlay-8fbe3e1c.js.map} +1 -1
  914. package/es/{YearsGridView-38b7d276.js → YearsGridView-52c0d22c.js} +4 -4
  915. package/es/{YearsGridView-38b7d276.js.map → YearsGridView-52c0d22c.js.map} +1 -1
  916. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  917. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  918. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  919. package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
  920. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  921. package/es/hooks/PRIVATE_useChartEvents.js +18 -18
  922. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  923. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  924. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  925. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  926. package/es/hooks/PRIVATE_useFloating.js +4 -4
  927. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  928. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  929. package/es/hooks/PRIVATE_useSelection.js +4 -4
  930. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  931. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
  932. package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
  933. package/es/hooks/PRIVATE_useVisDragModeControls.js +17 -17
  934. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  935. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  936. package/es/hooks/PRIVATE_useVisSelection.js +13 -13
  937. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  938. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  939. package/es/hooks/UNSAFE_useDensity.js +3 -3
  940. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  941. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  942. package/es/hooks/UNSAFE_useScale.js +3 -3
  943. package/es/hooks/UNSAFE_useTestId.js +3 -3
  944. package/es/hooks/UNSAFE_useTheme.js +3 -3
  945. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  946. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  947. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  948. package/es/hooks/UNSAFE_useUser.js +3 -3
  949. package/es/{index-b52817d6.js → index-5d0fe60d.js} +2 -2
  950. package/es/index-5d0fe60d.js.map +1 -0
  951. package/es/listViewSelectionTests-cd66d645.js +3 -3
  952. package/es/{popupUtils-0d643529.js → popupUtils-a7caf5e4.js} +2 -2
  953. package/es/{popupUtils-0d643529.js.map → popupUtils-a7caf5e4.js.map} +1 -1
  954. package/es/{render-f43f5632.js → render-c7ce760e.js} +3 -3
  955. package/es/{render-f43f5632.js.map → render-c7ce760e.js.map} +1 -1
  956. package/es/{tabbableUtils-07dfa9ce.js → tabbableUtils-b22dbd92.js} +3 -3
  957. package/es/{tabbableUtils-07dfa9ce.js.map → tabbableUtils-b22dbd92.js.map} +1 -1
  958. package/es/{testData-75eb4f26.js → testData-a52937d8.js} +3 -3
  959. package/es/{testData-75eb4f26.js.map → testData-a52937d8.js.map} +1 -1
  960. package/es/{tooltipUtils-ae6aba72.js → tooltipUtils-179de68d.js} +5 -5
  961. package/es/{tooltipUtils-ae6aba72.js.map → tooltipUtils-179de68d.js.map} +1 -1
  962. package/es/useCellNavigation-1a33b90e.js +1 -1
  963. package/es/useChartContextMenu-bedf2f88.js +2 -2
  964. package/es/{useChartDatatip-ae7cffcb.js → useChartDatatip-652d9595.js} +4 -4
  965. package/es/{useChartDatatip-ae7cffcb.js.map → useChartDatatip-652d9595.js.map} +1 -1
  966. package/es/{useColorScheme-831abf37.js → useColorScheme-4414c0b2.js} +2 -2
  967. package/es/{useColorScheme-831abf37.js.map → useColorScheme-4414c0b2.js.map} +1 -1
  968. package/es/useContextMenu-006e82dd.js +2 -2
  969. package/es/{useCssVars-6295c03a.js → useCssVars-0788f28c.js} +5 -5
  970. package/es/{useCssVars-6295c03a.js.map → useCssVars-0788f28c.js.map} +1 -1
  971. package/es/{useCurrentBgColor-93b70106.js → useCurrentBgColor-cc39a2b0.js} +2 -2
  972. package/es/{useCurrentBgColor-93b70106.js.map → useCurrentBgColor-cc39a2b0.js.map} +1 -1
  973. package/es/{useCurrentKey-30089ba4.js → useCurrentKey-b88513bf.js} +2 -2
  974. package/es/{useCurrentKey-30089ba4.js.map → useCurrentKey-b88513bf.js.map} +1 -1
  975. package/es/{useDatatip-3f284ad3.js → useDatatip-f80a8b4e.js} +4 -4
  976. package/es/{useDatatip-3f284ad3.js.map → useDatatip-f80a8b4e.js.map} +1 -1
  977. package/es/{useDensity-2ca5177c.js → useDensity-575ebaf2.js} +2 -2
  978. package/es/{useDensity-2ca5177c.js.map → useDensity-575ebaf2.js.map} +1 -1
  979. package/es/{useFloating-b1378797.js → useFloating-85ac3a8e.js} +2 -2
  980. package/es/{useFloating-b1378797.js.map → useFloating-85ac3a8e.js.map} +1 -1
  981. package/es/{useKeyboardEvents-7a19700e.js → useKeyboardEvents-8d2a44b1.js} +2 -2
  982. package/es/{useKeyboardEvents-7a19700e.js.map → useKeyboardEvents-8d2a44b1.js.map} +1 -1
  983. package/es/useLegendContextMenu-30eaa291.js +4 -4
  984. package/es/{useMeterDatatip-814ca87d.js → useMeterDatatip-ea50f0f1.js} +3 -3
  985. package/es/{useMeterDatatip-814ca87d.js.map → useMeterDatatip-ea50f0f1.js.map} +1 -1
  986. package/es/{useOutsideClick-d0b44256.js → useOutsideClick-866db9b2.js} +2 -2
  987. package/es/{useOutsideClick-d0b44256.js.map → useOutsideClick-866db9b2.js.map} +1 -1
  988. package/es/{usePopupAnimation-0c5517c7.js → usePopupAnimation-93950404.js} +2 -2
  989. package/es/{usePopupAnimation-0c5517c7.js.map → usePopupAnimation-93950404.js.map} +1 -1
  990. package/es/{usePrefixSuffix-28d8172f.js → usePrefixSuffix-2741adb3.js} +2 -2
  991. package/es/{usePrefixSuffix-28d8172f.js.map → usePrefixSuffix-2741adb3.js.map} +1 -1
  992. package/es/{useReorderableItem-abc9c68c.js → useReorderableItem-2a361fd4.js} +3 -3
  993. package/es/{useReorderableItem-abc9c68c.js.map → useReorderableItem-2a361fd4.js.map} +1 -1
  994. package/es/{useRovingTabIndexContainer-d8dcffff.js → useRovingTabIndexContainer-7b1d563b.js} +2 -2
  995. package/es/{useRovingTabIndexContainer-d8dcffff.js.map → useRovingTabIndexContainer-7b1d563b.js.map} +1 -1
  996. package/es/{useScale-c315e304.js → useScale-54f14cdc.js} +2 -2
  997. package/es/{useScale-c315e304.js.map → useScale-54f14cdc.js.map} +1 -1
  998. package/es/useSelectCommon-b5028a6e.js +11 -11
  999. package/es/{useSelectDrill-9eb9b7fa.js → useSelectDrill-9f0f793e.js} +3 -3
  1000. package/es/{useSelectDrill-9eb9b7fa.js.map → useSelectDrill-9f0f793e.js.map} +1 -1
  1001. package/es/{useSelection-5375aa2e.js → useSelection-3c8cd738.js} +2 -2
  1002. package/es/{useSelection-5375aa2e.js.map → useSelection-3c8cd738.js.map} +1 -1
  1003. package/es/{useSelection-534b1fa0.js → useSelection-82fe842d.js} +5 -5
  1004. package/es/{useSelection-534b1fa0.js.map → useSelection-82fe842d.js.map} +1 -1
  1005. package/es/useTabBar-d9412667.js +1 -1
  1006. package/es/{useTestId-014cca7c.js → useTestId-8b32167f.js} +2 -2
  1007. package/es/{useTestId-014cca7c.js.map → useTestId-8b32167f.js.map} +1 -1
  1008. package/es/{useTheme-a4243428.js → useTheme-858b119b.js} +2 -2
  1009. package/es/{useTheme-a4243428.js.map → useTheme-858b119b.js.map} +1 -1
  1010. package/es/{useThemeInterpolations-93048af6.js → useThemeInterpolations-2531ab6d.js} +5 -5
  1011. package/es/{useThemeInterpolations-93048af6.js.map → useThemeInterpolations-2531ab6d.js.map} +1 -1
  1012. package/es/{useTooltip-d4dfd848.js → useTooltip-0a3e4842.js} +5 -5
  1013. package/es/{useTooltip-d4dfd848.js.map → useTooltip-0a3e4842.js.map} +1 -1
  1014. package/es/{useTooltipOnTruncation-82d93e22.js → useTooltipOnTruncation-f5d75b1b.js} +4 -4
  1015. package/es/{useTooltipOnTruncation-82d93e22.js.map → useTooltipOnTruncation-f5d75b1b.js.map} +1 -1
  1016. package/es/{useTranslationBundle-29a1abb3.js → useTranslationBundle-0dff3ab2.js} +2 -2
  1017. package/es/{useTranslationBundle-29a1abb3.js.map → useTranslationBundle-0dff3ab2.js.map} +1 -1
  1018. package/es/{useUser-9c8d0e57.js → useUser-6a7f6df3.js} +2 -2
  1019. package/es/{useUser-9c8d0e57.js.map → useUser-6a7f6df3.js.map} +1 -1
  1020. package/es/useVisDragModeControls-13a8e826.js +1 -1
  1021. package/es/{useVisEvents-45115f09.js → useVisEvents-8d888727.js} +2 -2
  1022. package/es/{useVisEvents-45115f09.js.map → useVisEvents-8d888727.js.map} +1 -1
  1023. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  1024. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  1025. package/es/utils/UNSAFE_popupUtils.js +8 -8
  1026. package/es/{withDirectionIcon-70ce263c.js → withDirectionIcon-938d7cdf.js} +2 -2
  1027. package/es/{withDirectionIcon-70ce263c.js.map → withDirectionIcon-938d7cdf.js.map} +1 -1
  1028. package/es/withThemeProps-49e8a2b5.js +2 -2
  1029. package/package.json +2 -2
  1030. package/amd/BaseNavigationListItem-ef8bf611.js +0 -2
  1031. package/amd/BaseNavigationListItem-ef8bf611.js.map +0 -1
  1032. package/amd/CompactLabelAssistance-82361ea6.js +0 -2
  1033. package/amd/DragHandle-d89ea5fd.js +0 -2
  1034. package/amd/Dropdown-37339c89.js +0 -2
  1035. package/amd/LayerManager-6c0b0eed.js +0 -2
  1036. package/amd/List-cf09a2fb.js +0 -2
  1037. package/amd/LoadMoreCollection-a6adbc3f.js +0 -2
  1038. package/amd/MaxLengthLiveRegion-7723b0df.js +0 -2
  1039. package/amd/NavigationListItem-4e832bbf.js +0 -2
  1040. package/amd/OverflowTabBarItem-4c54927d.js +0 -2
  1041. package/amd/RemovableNavigationListItem-87e208e1.js +0 -2
  1042. package/amd/SectionedContent-d75017a3.js +0 -2
  1043. package/amd/SelectionCard-baeadf9f.js +0 -2
  1044. package/amd/TabBar-8a0cbff2.js +0 -2
  1045. package/amd/TabBarMixed-d4482b12.js +0 -2
  1046. package/amd/VirtualizedListView-061057dd.js +0 -2
  1047. package/amd/VisProgressiveLoader-c90f62c3.js +0 -2
  1048. package/amd/index-32a870a0.js.map +0 -1
  1049. package/amd/render-6d2dc229.js +0 -2
  1050. package/amd/tooltipUtils-304eef18.js +0 -2
  1051. package/amd/useCurrentKey-5a5ffb1e.js +0 -2
  1052. package/amd/useMeterDatatip-8702ee6e.js +0 -2
  1053. package/amd/usePopupAnimation-7023407f.js +0 -2
  1054. package/amd/usePrefixSuffix-19a86824.js +0 -2
  1055. package/amd/useThemeInterpolations-95e6f849.js +0 -2
  1056. package/es/NavigationListItem-7e0a2d00.js.map +0 -1
  1057. package/es/index-b52817d6.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useSelection-4c8e905b.js","sources":["../../src/hooks/PRIVATE_useVisSelection/ClearSelectionButton.tsx","../../src/hooks/PRIVATE_useVisSelection/useClearSelection.tsx","../../src/hooks/PRIVATE_useVisSelection/useSelection.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { BaseButton } from '#UNSAFE_BaseButton';\nimport { Text } from '#UNSAFE_Text';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '#resources/nls/bundle';\nimport { clearButtonStyles } from './themes/ClearSelection.css';\n\ntype Props = {\n onAction: () => void;\n};\n\n/**\n * Clear selection button component\n */\nexport const ClearSelectionButton = ({ onAction }: Props) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const clearSelectionLabel = `${translations.vis_clearSelection()}`;\n return (\n <div class={clearButtonStyles.base}>\n <BaseButton\n styling={['default']}\n elementDetails={{ type: 'span', isFocusable: false, isLabel: true }}\n variant=\"outlined\"\n onAction={onAction}>\n <Text truncation={'ellipsis'} weight={'inherit'}>\n {clearSelectionLabel}\n </Text>\n </BaseButton>\n </div>\n );\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useRef, useState } from 'preact/hooks';\nimport { ClearSelectionButton } from './ClearSelectionButton';\nimport { Layer } from '#UNSAFE_Layer';\nimport { Floating } from '#UNSAFE_Floating';\n\n/**\n * The default offset for clear selection mainAxis.\n */\nconst DEFAULT_OFFSET = 18;\ntype Props = {\n clearSelection: () => void;\n};\ntype SelectionMode = 'none' | 'single' | 'multiple';\n\nexport function useClearSelection<K>({ clearSelection }: Props) {\n const [isVisible, setIsVisible] = useState(false);\n const coordinates = useRef({ x: 0, y: 0 });\n\n const tryToggleClearButton = (\n event: PointerEvent,\n key: K | undefined,\n selectionMode: SelectionMode,\n selectedIds: Set<K>\n ) => {\n if (\n event.pointerType === 'touch' &&\n key === undefined &&\n selectionMode === 'multiple' &&\n selectedIds.size > 1\n ) {\n setIsVisible(!isVisible);\n coordinates.current = { x: event.clientX, y: event.clientY };\n return true;\n }\n return false;\n };\n\n const offsetValue = { mainAxis: 2 * DEFAULT_OFFSET };\n const anchorRef = { current: coordinates.current };\n\n const clearSelectionContent = isVisible ? (\n <Layer>\n <Floating\n anchorRef={anchorRef}\n offsetValue={offsetValue}\n placement=\"top\"\n flipOptions={{ crossAxis: false, mainAxis: false }}\n shiftOptions={{ crossAxis: true, mainAxis: true }}>\n <ClearSelectionButton\n onAction={() => {\n setIsVisible(false);\n clearSelection();\n }}\n />\n </Floating>\n </Layer>\n ) : null;\n\n return {\n clearSelectionContent,\n tryToggleClearButton\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useCallback, useRef } from 'preact/hooks';\nimport { isEqual } from '#utils/UNSAFE_visUtils/eventsUtils';\nimport { useClearSelection } from './useClearSelection';\n\nexport type SelectionMode = 'none' | 'single' | 'multiple';\nexport type SelectionDetail<K, D> = {\n ids: K[];\n data: (D | undefined)[];\n};\ntype SelectionBehavior = 'toggle' | 'replace';\n\nconst NAVKEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n\n/**\n * The constant that defines time to wait to change selection after pointer up is fired.\n * If double click didn't happen\n */\nconst DBLCLICK_THRESHOLD = 250;\n\n/**\n * Handles the selection.\n * @param itemId The id of the item.\n * @param selectedIds The set of selected item ids.\n * @param selectionMode The selection mode.\n * @param selectionBehavior The selection behavior. If 'toggle', unselected item will be selected and\n * vice versa. If 'replace', the item will replace the previous selection.\n * @param getDataById The callback to get item data from idDataMap.\n * @param onChange The callback to trigger when selection changes.\n */\nconst handleSelect = <K, D>(\n itemId: K | undefined,\n selectedIds: Set<K>,\n selectionMode: SelectionMode,\n selectionBehavior: SelectionBehavior,\n getDataById: (id: K) => D | undefined,\n onChange?: (detail: SelectionDetail<K, D>) => void\n) => {\n let ids = new Set<K>([]);\n if (itemId != null) {\n ids = new Set(selectedIds);\n const isSelected = selectedIds.has(itemId);\n\n if (selectionBehavior === 'toggle') {\n if (isSelected) {\n ids.delete(itemId);\n } else if (selectionMode === 'single') {\n ids = new Set([itemId]); // only selection\n } else {\n ids.add(itemId); // add to selection in \"multiple\" selectionMode\n }\n } else if (!isSelected) {\n // In \"multiple\" selection mode, only replace selection if unselected item is selected.\n // In \"single\" selection mode, only need to replace if unselected item is selected.\n ids = new Set([itemId]);\n }\n }\n\n if (!isEqual<K>(ids, selectedIds)) {\n onChange?.({ ids: [...ids], data: [...ids].map(getDataById) });\n }\n};\n\ntype Props<K, D> = {\n selection?: K[];\n selectionMode?: SelectionMode;\n idExtracter: (event: Event) => K | undefined;\n onChange?: (detail: SelectionDetail<K, D>) => void;\n isKeyboardSelection?: (event: KeyboardEvent) => boolean;\n isDrillEnabled?: boolean;\n getDataById: (id: K) => D | undefined;\n ignoreAsTrigger?: (element: EventTarget | null) => boolean;\n};\n\n/**\n * The hook to handle the selection behavior in vizualization components.\n */\nexport function useSelection<K, D>({\n selection = [],\n selectionMode = 'none',\n idExtracter,\n onChange,\n isDrillEnabled,\n isKeyboardSelection,\n getDataById,\n ignoreAsTrigger\n}: Props<K, D>) {\n const setTimeOutRef = useRef<ReturnType<typeof setTimeout>>();\n\n const clearSelection = () => {\n handleSelect<K, D>(\n undefined,\n new Set(selection),\n selectionMode,\n 'replace',\n getDataById,\n onChange\n );\n };\n\n const { clearSelectionContent, tryToggleClearButton } = useClearSelection<K>({ clearSelection });\n\n const onPointerUp = useCallback(\n (event: PointerEvent) => {\n // ignore pointer up when marquee is released\n if (ignoreAsTrigger && ignoreAsTrigger(event.target)) {\n return;\n }\n\n const selectedIds = new Set(selection);\n if (setTimeOutRef.current && isDrillEnabled) {\n clearTimeout(setTimeOutRef.current);\n setTimeOutRef.current = undefined;\n // doubleClick happened\n return;\n }\n\n const key = idExtracter(event);\n\n if (tryToggleClearButton(event, key, selectionMode, selectedIds)) {\n return;\n }\n\n const isMeta = event.metaKey;\n const isCtrl = event.ctrlKey;\n // If there was a previous pointerUp event that occurred that should prevent selection,\n // event.preventDefault was called\n if (event.defaultPrevented || (key == null && (isMeta || isCtrl))) {\n return;\n }\n\n // TODO: Encorporate more logic of dvt.EventManager.prototype._onClick\n // this is a simple version of EventManager.prototype._onClick. Currently we are not checking\n // for event.pageX, event.pageY to determine if they are exactly clicked on the same point.\n // for now, the assumption is that if the pointerups are within 250ms, they are for a same double click.\n if (isDrillEnabled) {\n setTimeOutRef.current = setTimeout(() => {\n // double pointer up didn't happen\n handleSelect<K, D>(\n key,\n selectedIds,\n selectionMode,\n isMeta || isCtrl || event.pointerType === 'touch' ? 'toggle' : 'replace',\n getDataById,\n onChange\n );\n setTimeOutRef.current = undefined;\n }, DBLCLICK_THRESHOLD);\n } else {\n handleSelect<K, D>(\n key,\n selectedIds,\n selectionMode,\n isMeta || isCtrl || event.pointerType === 'touch' ? 'toggle' : 'replace',\n getDataById,\n onChange\n );\n }\n },\n [\n selection,\n selectionMode,\n onChange,\n idExtracter,\n isDrillEnabled,\n getDataById,\n tryToggleClearButton,\n ignoreAsTrigger\n ]\n );\n\n const onContextMenu = useCallback(\n (event: MouseEvent) => {\n const key = idExtracter(event);\n const isCtrl = event.ctrlKey;\n handleSelect<K, D>(\n key,\n new Set(selection),\n selectionMode,\n isCtrl ? 'toggle' : 'replace',\n getDataById,\n onChange\n );\n },\n [selection, selectionMode, onChange, idExtracter, getDataById]\n );\n\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n const isShift = event.shiftKey;\n const isSpaceCtrl = event.ctrlKey && event.key === ' ';\n const isArrowKey = NAVKEYS.indexOf(event.key) !== -1;\n const itemKey = idExtracter(event);\n\n if (isArrowKey || isSpaceCtrl || (isKeyboardSelection && isKeyboardSelection(event))) {\n const behavior = isShift || isSpaceCtrl ? 'toggle' : 'replace';\n handleSelect<K, D>(\n itemKey,\n new Set(selection),\n selectionMode,\n behavior,\n getDataById,\n onChange\n );\n }\n },\n [selection, selectionMode, onChange, idExtracter, isKeyboardSelection, getDataById]\n );\n\n return {\n selectionContent: clearSelectionContent,\n selectionProps:\n selectionMode === 'none' || onChange == null\n ? {}\n : {\n onKeyUp,\n onContextMenu,\n onPointerUp\n }\n };\n}\n"],"names":["ClearSelectionButton","onAction","clearSelectionLabel","useTranslationBundle","vis_clearSelection","_jsx","class","clearButtonStyles","base","children","BaseButton","styling","elementDetails","type","isFocusable","isLabel","variant","Text","truncation","weight","DEFAULT_OFFSET","NAVKEYS","handleSelect","itemId","selectedIds","selectionMode","selectionBehavior","getDataById","onChange","ids","Set","isSelected","has","delete","add","isEqual","data","map","selection","idExtracter","isDrillEnabled","isKeyboardSelection","ignoreAsTrigger","setTimeOutRef","useRef","clearSelectionContent","tryToggleClearButton","clearSelection","isVisible","setIsVisible","useState","coordinates","x","y","offsetValue","mainAxis","anchorRef","current","Layer","jsx","Floating","placement","flipOptions","crossAxis","shiftOptions","event","key","pointerType","undefined","size","clientX","clientY","useClearSelection","onPointerUp","useCallback","target","clearTimeout","isMeta","metaKey","isCtrl","ctrlKey","defaultPrevented","setTimeout","onContextMenu","onKeyUp","isShift","shiftKey","isSpaceCtrl","isArrowKey","indexOf","itemKey","behavior","selectionContent","selectionProps"],"mappings":"wVAoBO,MAAMA,EAAuB,EAAGC,eACrC,MACMC,EAAsB,GADPC,uBAAiC,4BACVC,uBAC5C,OACEC,EAAAA,IAAK,MAAA,CAAAC,MAAOC,EAAAA,kBAAkBC,KAC5BC,SAAAJ,MAACK,EAAAA,WAAU,CACTC,QAAS,CAAC,WACVC,eAAgB,CAAEC,KAAM,OAAQC,aAAa,EAAOC,SAAS,GAC7DC,QAAQ,WACRf,SAAUA,EAAQQ,SAClBJ,EAAAA,IAACY,EAAIA,KAAC,CAAAC,WAAY,WAAYC,OAAQ,UACnCV,SAAAP,OAIP,ECnBEkB,EAAiB,GCGvB,MAAMC,EAAU,CAAC,UAAW,YAAa,YAAa,cAkBhDC,EAAe,CACnBC,EACAC,EACAC,EACAC,EACAC,EACAC,KAEA,IAAIC,EAAM,IAAIC,IAAO,IACrB,GAAc,MAAVP,EAAgB,CAClBM,EAAM,IAAIC,IAAIN,GACd,MAAMO,EAAaP,EAAYQ,IAAIT,GAET,WAAtBG,EACEK,EACFF,EAAII,OAAOV,GACgB,WAAlBE,EACTI,EAAM,IAAIC,IAAI,CAACP,IAEfM,EAAIK,IAAIX,GAEAQ,IAGVF,EAAM,IAAIC,IAAI,CAACP,IAElB,CAEIY,EAAOA,QAAIN,EAAKL,IACnBI,IAAW,CAAEC,IAAK,IAAIA,GAAMO,KAAM,IAAIP,GAAKQ,IAAIV,IAChD,iBAiBG,UAA6BW,UACjCA,E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C,EAAKzC,EAAeD,GAClD,OAGF,MAAMqD,EAASZ,EAAMa,QACfC,EAASd,EAAMe,QAGjBf,EAAMgB,kBAA4B,MAAPf,IAAgBW,GAAUE,KAQrDvC,EACFG,EAAcc,QAAUyB,YAAW,KAEjC5D,EACE4C,EACA1C,EACAC,EACAoD,GAAUE,GAAgC,UAAtBd,EAAME,YAA0B,SAAW,UAC/DxC,EACAC,GAEFe,EAAcc,aAAUW,CAAS,GAhIhB,KAmInB9C,EACE4C,EACA1C,EACAC,EACAoD,GAAUE,GAAgC,UAAtBd,EAAME,YAA0B,SAAW,UAC/DxC,EACAC,GAEH,GAEH,CACEU,EACAb,EACAG,EACAW,EACAC,EACAb,EACAmB,EACAJ,IAIEyC,EAAgBT,eACnBT,IACC,MAAMC,EAAM3B,EAAY0B,GAClBc,EAASd,EAAMe,QACrB1D,EACE4C,EACA,IAAIpC,IAAIQ,GACRb,EACAsD,EAAS,SAAW,UACpBpD,EACAC,EACD,GAEH,CAACU,EAAWb,EAAeG,EAAUW,EAAaZ,IAG9CyD,EAAUV,eACbT,IACC,MAAMoB,EAAUpB,EAAMqB,SAChBC,EAActB,EAAMe,SAAyB,MAAdf,EAAMC,IACrCsB,GAA6C,IAAhCnE,EAAQoE,QAAQxB,EAAMC,KACnCwB,EAAUnD,EAAY0B,GAE5B,GAAIuB,GAAcD,GAAgB9C,GAAuBA,EAAoBwB,GAAS,CACpF,MAAM0B,EAAWN,GAAWE,EAAc,SAAW,UACrDjE,EACEoE,EACA,IAAI5D,IAAIQ,GACRb,EACAkE,EACAhE,EACAC,EAEH,IAEH,CAACU,EAAWb,EAAeG,EAAUW,EAAaE,EAAqBd,IAGzE,MAAO,CACLiE,iBAAkB/C,EAClBgD,eACoB,SAAlBpE,GAAwC,MAAZG,EACxB,CAAE,EACF,CACEwD,UACAD,gBACAV,eAGZ"}
1
+ {"version":3,"file":"useSelection-5128f1e7.js","sources":["../../src/hooks/PRIVATE_useVisSelection/ClearSelectionButton.tsx","../../src/hooks/PRIVATE_useVisSelection/useClearSelection.tsx","../../src/hooks/PRIVATE_useVisSelection/useSelection.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { BaseButton } from '#UNSAFE_BaseButton';\nimport { Text } from '#UNSAFE_Text';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '#resources/nls/bundle';\nimport { clearButtonStyles } from './themes/ClearSelection.css';\n\ntype Props = {\n onAction: () => void;\n};\n\n/**\n * Clear selection button component\n */\nexport const ClearSelectionButton = ({ onAction }: Props) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const clearSelectionLabel = `${translations.vis_clearSelection()}`;\n return (\n <div class={clearButtonStyles.base}>\n <BaseButton\n styling={['default']}\n elementDetails={{ type: 'span', isFocusable: false, isLabel: true }}\n variant=\"outlined\"\n onAction={onAction}>\n <Text truncation={'ellipsis'} weight={'inherit'}>\n {clearSelectionLabel}\n </Text>\n </BaseButton>\n </div>\n );\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useRef, useState } from 'preact/hooks';\nimport { ClearSelectionButton } from './ClearSelectionButton';\nimport { Layer } from '#UNSAFE_Layer';\nimport { Floating } from '#UNSAFE_Floating';\n\n/**\n * The default offset for clear selection mainAxis.\n */\nconst DEFAULT_OFFSET = 18;\ntype Props = {\n clearSelection: () => void;\n};\ntype SelectionMode = 'none' | 'single' | 'multiple';\n\nexport function useClearSelection<K>({ clearSelection }: Props) {\n const [isVisible, setIsVisible] = useState(false);\n const coordinates = useRef({ x: 0, y: 0 });\n\n const tryToggleClearButton = (\n event: PointerEvent,\n key: K | undefined,\n selectionMode: SelectionMode,\n selectedIds: Set<K>\n ) => {\n if (\n event.pointerType === 'touch' &&\n key === undefined &&\n selectionMode === 'multiple' &&\n selectedIds.size > 1\n ) {\n setIsVisible(!isVisible);\n coordinates.current = { x: event.clientX, y: event.clientY };\n return true;\n }\n return false;\n };\n\n const offsetValue = { mainAxis: 2 * DEFAULT_OFFSET };\n const anchorRef = { current: coordinates.current };\n\n const clearSelectionContent = isVisible ? (\n <Layer>\n <Floating\n anchorRef={anchorRef}\n offsetValue={offsetValue}\n placement=\"top\"\n flipOptions={{ crossAxis: false, mainAxis: false }}\n shiftOptions={{ crossAxis: true, mainAxis: true }}>\n <ClearSelectionButton\n onAction={() => {\n setIsVisible(false);\n clearSelection();\n }}\n />\n </Floating>\n </Layer>\n ) : null;\n\n return {\n clearSelectionContent,\n tryToggleClearButton\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useCallback, useRef } from 'preact/hooks';\nimport { isEqual } from '#utils/UNSAFE_visUtils/eventsUtils';\nimport { useClearSelection } from './useClearSelection';\n\nexport type SelectionMode = 'none' | 'single' | 'multiple';\nexport type SelectionDetail<K, D> = {\n ids: K[];\n data: (D | undefined)[];\n};\ntype SelectionBehavior = 'toggle' | 'replace';\n\nconst NAVKEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n\n/**\n * The constant that defines time to wait to change selection after pointer up is fired.\n * If double click didn't happen\n */\nconst DBLCLICK_THRESHOLD = 250;\n\n/**\n * Handles the selection.\n * @param itemId The id of the item.\n * @param selectedIds The set of selected item ids.\n * @param selectionMode The selection mode.\n * @param selectionBehavior The selection behavior. If 'toggle', unselected item will be selected and\n * vice versa. If 'replace', the item will replace the previous selection.\n * @param getDataById The callback to get item data from idDataMap.\n * @param onChange The callback to trigger when selection changes.\n */\nconst handleSelect = <K, D>(\n itemId: K | undefined,\n selectedIds: Set<K>,\n selectionMode: SelectionMode,\n selectionBehavior: SelectionBehavior,\n getDataById: (id: K) => D | undefined,\n onChange?: (detail: SelectionDetail<K, D>) => void\n) => {\n let ids = new Set<K>([]);\n if (itemId != null) {\n ids = new Set(selectedIds);\n const isSelected = selectedIds.has(itemId);\n\n if (selectionBehavior === 'toggle') {\n if (isSelected) {\n ids.delete(itemId);\n } else if (selectionMode === 'single') {\n ids = new Set([itemId]); // only selection\n } else {\n ids.add(itemId); // add to selection in \"multiple\" selectionMode\n }\n } else if (!isSelected) {\n // In \"multiple\" selection mode, only replace selection if unselected item is selected.\n // In \"single\" selection mode, only need to replace if unselected item is selected.\n ids = new Set([itemId]);\n }\n }\n\n if (!isEqual<K>(ids, selectedIds)) {\n onChange?.({ ids: [...ids], data: [...ids].map(getDataById) });\n }\n};\n\ntype Props<K, D> = {\n selection?: K[];\n selectionMode?: SelectionMode;\n idExtracter: (event: Event) => K | undefined;\n onChange?: (detail: SelectionDetail<K, D>) => void;\n isKeyboardSelection?: (event: KeyboardEvent) => boolean;\n isDrillEnabled?: boolean;\n getDataById: (id: K) => D | undefined;\n ignoreAsTrigger?: (element: EventTarget | null) => boolean;\n};\n\n/**\n * The hook to handle the selection behavior in vizualization components.\n */\nexport function useSelection<K, D>({\n selection = [],\n selectionMode = 'none',\n idExtracter,\n onChange,\n isDrillEnabled,\n isKeyboardSelection,\n getDataById,\n ignoreAsTrigger\n}: Props<K, D>) {\n const setTimeOutRef = useRef<ReturnType<typeof setTimeout>>();\n\n const clearSelection = () => {\n handleSelect<K, D>(\n undefined,\n new Set(selection),\n selectionMode,\n 'replace',\n getDataById,\n onChange\n );\n };\n\n const { clearSelectionContent, tryToggleClearButton } = useClearSelection<K>({ clearSelection });\n\n const onPointerUp = useCallback(\n (event: PointerEvent) => {\n // ignore pointer up when marquee is released\n if (ignoreAsTrigger && ignoreAsTrigger(event.target)) {\n return;\n }\n\n const selectedIds = new Set(selection);\n if (setTimeOutRef.current && isDrillEnabled) {\n clearTimeout(setTimeOutRef.current);\n setTimeOutRef.current = undefined;\n // doubleClick happened\n return;\n }\n\n const key = idExtracter(event);\n\n if (tryToggleClearButton(event, key, selectionMode, selectedIds)) {\n return;\n }\n\n const isMeta = event.metaKey;\n const isCtrl = event.ctrlKey;\n // If there was a previous pointerUp event that occurred that should prevent selection,\n // event.preventDefault was called\n if (event.defaultPrevented || (key == null && (isMeta || isCtrl))) {\n return;\n }\n\n // TODO: Encorporate more logic of dvt.EventManager.prototype._onClick\n // this is a simple version of EventManager.prototype._onClick. Currently we are not checking\n // for event.pageX, event.pageY to determine if they are exactly clicked on the same point.\n // for now, the assumption is that if the pointerups are within 250ms, they are for a same double click.\n if (isDrillEnabled) {\n setTimeOutRef.current = setTimeout(() => {\n // double pointer up didn't happen\n handleSelect<K, D>(\n key,\n selectedIds,\n selectionMode,\n isMeta || isCtrl || event.pointerType === 'touch' ? 'toggle' : 'replace',\n getDataById,\n onChange\n );\n setTimeOutRef.current = undefined;\n }, DBLCLICK_THRESHOLD);\n } else {\n handleSelect<K, D>(\n key,\n selectedIds,\n selectionMode,\n isMeta || isCtrl || event.pointerType === 'touch' ? 'toggle' : 'replace',\n getDataById,\n onChange\n );\n }\n },\n [\n selection,\n selectionMode,\n onChange,\n idExtracter,\n isDrillEnabled,\n getDataById,\n tryToggleClearButton,\n ignoreAsTrigger\n ]\n );\n\n const onContextMenu = useCallback(\n (event: MouseEvent) => {\n const key = idExtracter(event);\n const isCtrl = event.ctrlKey;\n handleSelect<K, D>(\n key,\n new Set(selection),\n selectionMode,\n isCtrl ? 'toggle' : 'replace',\n getDataById,\n onChange\n );\n },\n [selection, selectionMode, onChange, idExtracter, getDataById]\n );\n\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n const isShift = event.shiftKey;\n const isSpaceCtrl = event.ctrlKey && event.key === ' ';\n const isArrowKey = NAVKEYS.indexOf(event.key) !== -1;\n const itemKey = idExtracter(event);\n\n if (isArrowKey || isSpaceCtrl || (isKeyboardSelection && isKeyboardSelection(event))) {\n const behavior = isShift || isSpaceCtrl ? 'toggle' : 'replace';\n handleSelect<K, D>(\n itemKey,\n new Set(selection),\n selectionMode,\n behavior,\n getDataById,\n onChange\n );\n }\n },\n [selection, selectionMode, onChange, idExtracter, isKeyboardSelection, getDataById]\n );\n\n return {\n selectionContent: clearSelectionContent,\n selectionProps:\n selectionMode === 'none' || onChange == null\n ? {}\n : {\n onKeyUp,\n onContextMenu,\n onPointerUp\n }\n };\n}\n"],"names":["ClearSelectionButton","onAction","clearSelectionLabel","useTranslationBundle","vis_clearSelection","_jsx","class","clearButtonStyles","base","children","BaseButton","styling","elementDetails","type","isFocusable","isLabel","variant","Text","truncation","weight","DEFAULT_OFFSET","NAVKEYS","handleSelect","itemId","selectedIds","selectionMode","selectionBehavior","getDataById","onChange","ids","Set","isSelected","has","delete","add","isEqual","data","map","selection","idExtracter","isDrillEnabled","isKeyboardSelection","ignoreAsTrigger","setTimeOutRef","useRef","clearSelectionContent","tryToggleClearButton","clearSelection","isVisible","setIsVisible","useState","coordinates","x","y","offsetValue","mainAxis","anchorRef","current","Layer","jsx","Floating","placement","flipOptions","crossAxis","shiftOptions","event","key","pointerType","undefined","size","clientX","clientY","useClearSelection","onPointerUp","useCallback","target","clearTimeout","isMeta","metaKey","isCtrl","ctrlKey","defaultPrevented","setTimeout","onContextMenu","onKeyUp","isShift","shiftKey","isSpaceCtrl","isArrowKey","indexOf","itemKey","behavior","selectionContent","selectionProps"],"mappings":"wVAoBO,MAAMA,EAAuB,EAAGC,eACrC,MACMC,EAAsB,GADPC,uBAAiC,4BACVC,uBAC5C,OACEC,EAAAA,IAAK,MAAA,CAAAC,MAAOC,EAAAA,kBAAkBC,KAC5BC,SAAAJ,MAACK,EAAAA,WAAU,CACTC,QAAS,CAAC,WACVC,eAAgB,CAAEC,KAAM,OAAQC,aAAa,EAAOC,SAAS,GAC7DC,QAA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H,CAACU,EAAWb,EAAeG,EAAUW,EAAaZ,IAG9CyD,EAAUV,eACbT,IACC,MAAMoB,EAAUpB,EAAMqB,SAChBC,EAActB,EAAMe,SAAyB,MAAdf,EAAMC,IACrCsB,GAA6C,IAAhCnE,EAAQoE,QAAQxB,EAAMC,KACnCwB,EAAUnD,EAAY0B,GAE5B,GAAIuB,GAAcD,GAAgB9C,GAAuBA,EAAoBwB,GAAS,CACpF,MAAM0B,EAAWN,GAAWE,EAAc,SAAW,UACrDjE,EACEoE,EACA,IAAI5D,IAAIQ,GACRb,EACAkE,EACAhE,EACAC,EAEH,IAEH,CAACU,EAAWb,EAAeG,EAAUW,EAAaE,EAAqBd,IAGzE,MAAO,CACLiE,iBAAkB/C,EAClBgD,eACoB,SAAlBpE,GAAwC,MAAZG,EACxB,CAAE,EACF,CACEwD,UACAD,gBACAV,eAGZ"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', './mergeProps-bcfa6a92', './collectionUtils-f4de3e13', './useCollectionFocusRing-9dab85a9', './useCurrentKey-5a5ffb1e', './useId-c9578d26', './useReorderableContext-a5453bd7', './useContextMenuGesture-754ead1b'], (function(e,t,r,n,o,s,u,c,i){"use strict";const a='[role="tab"]',l="data-oj-removable",f={mouse:{initialFocus:"menu",placement:"bottom-start",offsetValue:0},keyboard:{initialFocus:"firstItem",placement:"bottom-start",offsetValue:0},touch:{initialFocus:"menu",placement:"end",offsetValue:40}},m={isOpen:!1,initialFocus:"menu",placement:"bottom-start",offsetValue:0,anchorRef:{current:null}};const d=(e,t,r)=>{const o=e.closest(t);if(o){if(o.hasAttribute(l)){const t=e.closest(r);if(t&&o?.contains(t))return null}return n.getKey(o)}return null},y=(e,t,r)=>{const n=r.indexOf(e);if(-1===n)return t[0];let o=0,s=!1;for(n===r.length-1?(o=n-1,s=!0):o=n+1;o!==n&&o>-1&&o<r.length;){const e=r[o];if(-1!==t.indexOf(e))return e;s?o--:o++}return t[0]};e.useTabBar=function(e){const{children:b,class:g,display:p,edge:K="top",selection:x,onSelect:v,onRemove:h,ref:R,size:k,contextMenuConfig:C}=e,E=t.useRef(null),P=R||E,A=u.useId(),[F,S]=t.useState(x),[I,B]=t.useState(!1),D=A+"_",V=t.useRef();t.useEffect((()=>{if(P.current){const e=Array.from(P.current.querySelectorAll(a)).map((e=>n.getKey(e)));F&&!e.includes(F)&&(V.current?S(y(F,e,V.current)):S(e[0])),V.current=e}}),[b,F,P]);const[w,M]=o.useCollectionFocusRing(P,["ArrowRight","ArrowLeft","Home","End"]),O=c.useReorderableContext(),{currentKeyProps:H}=s.useCurrentKey((e=>h?d(e,a,'[data-oj-tabbar-item-remove-icon="true"]'):n.keyExtractor(e,a)),!1,void 0,void 0,n.getPrevNextKeyUsingRef(P,F,!0,a),n.getPrevNextKeyUsingRef(P,F,!1,a),F,(e=>{const t=e.value;S(t),B(!1)}));t.useEffect((()=>{O&&(O.currentItemKey.current=F)}),[F,O]);const[U,j]=t.useState(),[q,z]=t.useState(m),{triggerProps:G}=i.useContextMenuGesture((({gesture:e,anchor:t,target:r})=>{let o=t;if("keyboard"===e){const e=n.findElementByKey(P.current,F,a);o=e||t;j({itemKey:F})}else{const e=n.keyExtractor(r,a);j({itemKey:e})}z({...f[e],anchorRef:{current:o},isOpen:!0})}),{isDisabled:!C}),N=t.useCallback((e=>{"dismissed"!==e.reason&&"itemAction"!==e.reason||(S(U?.itemKey),P.current?.focus()),z({...m})}),[P,U?.itemKey]),T=r.mergeProps({onKeyDown:e=>{if(P.current&&F){if("Home"===e.key||"End"===e.key){const t=Array.from(P.current.querySelectorAll(a),(e=>n.getKey(e)));e.preventDefault(),S?.(t["Home"===e.key?0:t.length-1])}if("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v?.({value:F})),"Delete"===e.key){n.findElementByKey(P.current,F,a).hasAttribute(l)&&h?.({value:F})}"Escape"===e.key&&B(!0)}},onFocus:()=>{if(P.current&&void 0===F){const e=n.getFirstVisibleKey(P.current,a);e&&S(e)}}},G);return{rootProps:r.mergeProps({"aria-activedescendant":F?D+F:"","aria-multiselectable":!1,class:g,ref:P,role:"tablist",tabIndex:0},H,M,T),tabBarContext:{currentKey:F,display:p,isEdgeBottom:"bottom"===K,layout:"condense",onRemove:h,onSelect:v,showFocusRing:w,hideTooltip:I,selection:x,size:k,tabItemPrefix:D},menuProps:{...q,onClose:N},contextMenuContext:U}}}));
1
+ define(['exports', 'preact/hooks', './mergeProps-bcfa6a92', './collectionUtils-f4de3e13', './useCollectionFocusRing-9dab85a9', './useCurrentKey-6e7057d0', './useId-c9578d26', './useReorderableContext-a5453bd7', './useContextMenuGesture-754ead1b'], (function(e,t,r,n,o,s,u,c,i){"use strict";const a='[role="tab"]',l="data-oj-removable",f={mouse:{initialFocus:"menu",placement:"bottom-start",offsetValue:0},keyboard:{initialFocus:"firstItem",placement:"bottom-start",offsetValue:0},touch:{initialFocus:"menu",placement:"end",offsetValue:40}},m={isOpen:!1,initialFocus:"menu",placement:"bottom-start",offsetValue:0,anchorRef:{current:null}};const d=(e,t,r)=>{const o=e.closest(t);if(o){if(o.hasAttribute(l)){const t=e.closest(r);if(t&&o?.contains(t))return null}return n.getKey(o)}return null},y=(e,t,r)=>{const n=r.indexOf(e);if(-1===n)return t[0];let o=0,s=!1;for(n===r.length-1?(o=n-1,s=!0):o=n+1;o!==n&&o>-1&&o<r.length;){const e=r[o];if(-1!==t.indexOf(e))return e;s?o--:o++}return t[0]};e.useTabBar=function(e){const{children:b,class:g,display:p,edge:K="top",selection:x,onSelect:v,onRemove:h,ref:R,size:k,contextMenuConfig:C}=e,E=t.useRef(null),P=R||E,A=u.useId(),[F,S]=t.useState(x),[I,B]=t.useState(!1),D=A+"_",V=t.useRef();t.useEffect((()=>{if(P.current){const e=Array.from(P.current.querySelectorAll(a)).map((e=>n.getKey(e)));F&&!e.includes(F)&&(V.current?S(y(F,e,V.current)):S(e[0])),V.current=e}}),[b,F,P]);const[w,M]=o.useCollectionFocusRing(P,["ArrowRight","ArrowLeft","Home","End"]),O=c.useReorderableContext(),{currentKeyProps:H}=s.useCurrentKey((e=>h?d(e,a,'[data-oj-tabbar-item-remove-icon="true"]'):n.keyExtractor(e,a)),!1,void 0,void 0,n.getPrevNextKeyUsingRef(P,F,!0,a),n.getPrevNextKeyUsingRef(P,F,!1,a),F,(e=>{const t=e.value;S(t),B(!1)}));t.useEffect((()=>{O&&(O.currentItemKey.current=F)}),[F,O]);const[U,j]=t.useState(),[q,z]=t.useState(m),{triggerProps:G}=i.useContextMenuGesture((({gesture:e,anchor:t,target:r})=>{let o=t;if("keyboard"===e){const e=n.findElementByKey(P.current,F,a);o=e||t;j({itemKey:F})}else{const e=n.keyExtractor(r,a);j({itemKey:e})}z({...f[e],anchorRef:{current:o},isOpen:!0})}),{isDisabled:!C}),N=t.useCallback((e=>{"dismissed"!==e.reason&&"itemAction"!==e.reason||(S(U?.itemKey),P.current?.focus()),z({...m})}),[P,U?.itemKey]),T=r.mergeProps({onKeyDown:e=>{if(P.current&&F){if("Home"===e.key||"End"===e.key){const t=Array.from(P.current.querySelectorAll(a),(e=>n.getKey(e)));e.preventDefault(),S?.(t["Home"===e.key?0:t.length-1])}if("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v?.({value:F})),"Delete"===e.key){n.findElementByKey(P.current,F,a).hasAttribute(l)&&h?.({value:F})}"Escape"===e.key&&B(!0)}},onFocus:()=>{if(P.current&&void 0===F){const e=n.getFirstVisibleKey(P.current,a);e&&S(e)}}},G);return{rootProps:r.mergeProps({"aria-activedescendant":F?D+F:"","aria-multiselectable":!1,class:g,ref:P,role:"tablist",tabIndex:0},H,M,T),tabBarContext:{currentKey:F,display:p,isEdgeBottom:"bottom"===K,layout:"condense",onRemove:h,onSelect:v,showFocusRing:w,hideTooltip:I,selection:x,size:k,tabItemPrefix:D},menuProps:{...q,onClose:N},contextMenuContext:U}}}));
2
2
  //# sourceMappingURL=useTabBar-b1536c9a.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', './LayerHost-1b4d03f0', 'preact/jsx-runtime', 'preact/hooks', 'preact/compat'], (function(t,e,n,o,r){"use strict";t.useTestId=function(t){return"production"===o.useContext(e.EnvironmentContext).mode||""===t?{}:{"data-testid":t}}}));
2
- //# sourceMappingURL=useTestId-d0c49456.js.map
1
+ define(['exports', './LayerHost-a36b1781', 'preact/jsx-runtime', 'preact/hooks', 'preact/compat'], (function(t,e,n,o,r){"use strict";t.useTestId=function(t){return"production"===o.useContext(e.EnvironmentContext).mode||""===t?{}:{"data-testid":t}}}));
2
+ //# sourceMappingURL=useTestId-efb1c8f9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTestId-d0c49456.js","sources":["../../src/hooks/UNSAFE_useTestId/useTestId.ts"],"sourcesContent":["import { EnvironmentContext } from '../../UNSAFE_Environment';\nimport { useContext } from 'preact/hooks';\n\nexport type TestIdProps = {\n testId?: string;\n};\n/**\n * Returns the set of attributes to be applied to the DOM node if the application's mode is not\n * set to \"production\".\n */\nexport function useTestId(testId?: string) {\n const context = useContext(EnvironmentContext);\n return context.mode === 'production' || testId === ''\n ? {}\n : {\n 'data-testid': testId\n };\n}\n"],"names":["testId","useContext","EnvironmentContext","mode"],"mappings":"4IAUM,SAAoBA,GAExB,MAAwB,eADRC,aAAWC,EAAAA,oBACZC,MAAoC,KAAXH,EACpC,CAAE,EACF,CACE,cAAeA,EAEvB"}
1
+ {"version":3,"file":"useTestId-efb1c8f9.js","sources":["../../src/hooks/UNSAFE_useTestId/useTestId.ts"],"sourcesContent":["import { EnvironmentContext } from '../../UNSAFE_Environment';\nimport { useContext } from 'preact/hooks';\n\nexport type TestIdProps = {\n testId?: string;\n};\n/**\n * Returns the set of attributes to be applied to the DOM node if the application's mode is not\n * set to \"production\".\n */\nexport function useTestId(testId?: string) {\n const context = useContext(EnvironmentContext);\n return context.mode === 'production' || testId === ''\n ? {}\n : {\n 'data-testid': testId\n };\n}\n"],"names":["testId","useContext","EnvironmentContext","mode"],"mappings":"4IAUM,SAAoBA,GAExB,MAAwB,eADRC,aAAWC,EAAAA,oBACZC,MAAoC,KAAXH,EACpC,CAAE,EACF,CACE,cAAeA,EAEvB"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', './LayerHost-1b4d03f0', 'preact/jsx-runtime', 'preact/compat'], (function(e,t,n,o,r){"use strict";e.useTheme=function(){return t.useContext(n.EnvironmentContext).theme}}));
2
- //# sourceMappingURL=useTheme-915016ef.js.map
1
+ define(['exports', 'preact/hooks', './LayerHost-a36b1781', 'preact/jsx-runtime', 'preact/compat'], (function(e,t,n,o,r){"use strict";e.useTheme=function(){return t.useContext(n.EnvironmentContext).theme}}));
2
+ //# sourceMappingURL=useTheme-a99513fe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme-915016ef.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 */\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":"sJAYE,OAAOA,EAAUA,WAACC,sBAAoBC,KACxC"}
1
+ {"version":3,"file":"useTheme-a99513fe.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 */\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":"sJAYE,OAAOA,EAAUA,WAACC,sBAAoBC,KACxC"}
@@ -0,0 +1,2 @@
1
+ define(['exports', 'preact/hooks', './useColorScheme-47c8be99', './useScale-b2f29348', './theme-a8f3d819', './mergeInterpolations-9ede4cf7', './LayerHost-a36b1781', './Theme-d945adae', './useDensity-5cfdc56a'], (function(e,t,o,n,s,c,r,a,u){"use strict";e.useThemeInterpolations=function(e){const[l,i]=t.useState(void 0),f=o.useColorScheme(),d=u.useDensity(),m=n.useScale(),S=d!==r.DefaultEnvironment.density?d:void 0,h=m!==r.DefaultEnvironment.scale?m:void 0;t.useLayoutEffect((()=>{const t=e&&e.current&&"function"==typeof e.current.closest?e.current.closest(`.${a.INVERT_CLASS}:not(.${a.DARK_CLASS})`):null;i(f!==r.DefaultEnvironment.colorScheme?f:t?"dark":void 0)}),[e,f]);const v=c.mergeInterpolations([...Object.values(s.themeInterpolations)]),{class:p}=v({colorScheme:l,scale:h,density:S});return p}}));
2
+ //# sourceMappingURL=useThemeInterpolations-93c8c4c0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeInterpolations-95e6f849.js","sources":["../../src/hooks/UNSAFE_useThemeInterpolations/useThemeInterpolations.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 type { RefObject } from 'preact';\nimport { useLayoutEffect, useState } from 'preact/hooks';\nimport { useColorScheme } from '../UNSAFE_useColorScheme';\nimport { useScale } from '../UNSAFE_useScale';\nimport { themeInterpolations } from '../../utils/UNSAFE_interpolations/theme';\nimport type { ThemeProps } from '../../utils/UNSAFE_interpolations/theme';\nimport { mergeInterpolations } from '../../utils/UNSAFE_mergeInterpolations';\nimport { DefaultEnvironment } from '../../UNSAFE_Environment/EnvironmentContext';\nimport { DARK_CLASS, INVERT_CLASS } from '../../UNSAFE_Theme';\nimport { useDensity } from '#hooks/UNSAFE_useDensity';\n\n/**\n * The logical parent of the re-parented content that 'launched' it in the popup/dropdown.\n */\ntype LogicalParentRef = RefObject<Element> | null;\n\n// This hook encapsulates the logic required to determine which theme style classes are needed\n// for the current environment context's colorScheme, density, and scale value. This would be used when\n// rendering dom outside of the current dom tree, but desire to match the colorScheme, density, and scale\n// of the original dom tree.\nexport function useThemeInterpolations(logicalParentRef?: LogicalParentRef) {\n const [colorScheme, setColorScheme] = useState<'light' | 'dark' | undefined>(undefined);\n\n const currentColorScheme = useColorScheme();\n const currentDensity = useDensity();\n const currentScale = useScale();\n // We don't want to interpolate the default environment values for scale or density. Those should get picked up by default.\n // This fixes an issue for core pack components that utilize the Layer component, when in a legacy cookbook page.\n const density = currentDensity !== DefaultEnvironment.density ? currentDensity : undefined;\n const scale = currentScale !== DefaultEnvironment.scale ? currentScale : undefined;\n\n // We want to use useLayoutEffect instead of useEffect here. Otherwise there could be\n // flashing due to light colorScheme initial render then dark colorScheme after useEffect.\n useLayoutEffect(() => {\n // for colorScheme in Legacy, things are a bit more complicated because unlike scale which is always applied to\n // the root dom element, we can switch to dark theme by adding the .oj-color-invert class to any dom element where\n // we want the dark theme to start. In Legacy, you can't switch back to light theme once you switch to dark (no nesting).\n // The problem with our core pack Components that use Layer to display the dropdown, it is not in the same dom\n // tree as the parent component. It is in its own dom tree off of the root dom element, so it won't see the\n // .oj-color-invert class in the dom tree of the select single.\n // Since in legacy .oj-color-invert can appear anywhere, not just on the root dom element, if the colorScheme\n // is the same as the default colorScheme then we need to look at the ref to determine if it or any of its\n // ancestors has the .oj-color-invert class. If it does(and doesn't have the preact .oj-c-colorscheme-dark class),\n // use 'dark' colorScheme.\n // We only want to do this for legacy, so if the closest element that has the .oj-color-invert also has .oj-c-colorscheme-dark,\n // then we don't want to override since this isn't a legacy color change and we already handle it in our environment context\n // so the color scheme nesting will work in Preact/Core Pack.\n const closestElementWithColorInvertClass =\n logicalParentRef &&\n logicalParentRef.current &&\n typeof logicalParentRef.current.closest === 'function'\n ? logicalParentRef.current.closest(`.${INVERT_CLASS}:not(.${DARK_CLASS})`)\n : null;\n setColorScheme(\n currentColorScheme !== DefaultEnvironment.colorScheme\n ? currentColorScheme\n : closestElementWithColorInvertClass\n ? 'dark'\n : undefined\n );\n }, [logicalParentRef, currentColorScheme]);\n\n const interpolations = mergeInterpolations<ThemeProps>([...Object.values(themeInterpolations)]);\n const { class: classes } = interpolations({ colorScheme, scale, density });\n return classes;\n}\n"],"names":["logicalParentRef","colorScheme","setColorScheme","useState","undefined","currentColorScheme","useColorScheme","currentDensity","useDensity","currentScale","useScale","density","DefaultEnvironment","scale","useLayoutEffect","closestElementWithColorInvertClass","current","closest","INVERT_CLASS","DARK_CLASS","interpolations","mergeInterpolations","Object","values","themeInterpolations","class","classes"],"mappings":"6QA2BM,SAAiCA,GACrC,MAAOC,EAAaC,GAAkBC,EAAQA,cAA+BC,GAEvEC,EAAqBC,EAAAA,iBACrBC,EAAiBC,EAAAA,aACjBC,EAAeC,EAAAA,WAGfC,EAAUJ,IAAmBK,EAAAA,mBAAmBD,QAAUJ,OAAiBH,EAC3ES,EAAQJ,IAAiBG,EAAAA,mBAAmBC,MAAQJ,OAAeL,EAIzEU,EAAAA,iBAAgB,KAcd,MAAMC,EACJf,GACAA,EAAiBgB,SAC2B,mBAArChB,EAAiBgB,QAAQC,QAC5BjB,EAAiBgB,QAAQC,QAAQ,IAAIC,EAAAA,qBAAqBC,iBAC1D,KACNjB,EACEG,IAAuBO,EAAAA,mBAAmBX,YACtCI,EACAU,EACA,YACAX,EACL,GACA,CAACJ,EAAkBK,IAEtB,MAAMe,EAAiBC,EAAAA,oBAAgC,IAAIC,OAAOC,OAAOC,EAAAA,wBACjEC,MAAOC,GAAYN,EAAe,CAAEnB,cAAaY,QAAOF,YAChE,OAAOe,CACT"}
1
+ {"version":3,"file":"useThemeInterpolations-93c8c4c0.js","sources":["../../src/hooks/UNSAFE_useThemeInterpolations/useThemeInterpolations.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 type { RefObject } from 'preact';\nimport { useLayoutEffect, useState } from 'preact/hooks';\nimport { useColorScheme } from '../UNSAFE_useColorScheme';\nimport { useScale } from '../UNSAFE_useScale';\nimport { themeInterpolations } from '../../utils/UNSAFE_interpolations/theme';\nimport type { ThemeProps } from '../../utils/UNSAFE_interpolations/theme';\nimport { mergeInterpolations } from '../../utils/UNSAFE_mergeInterpolations';\nimport { DefaultEnvironment } from '../../UNSAFE_Environment/EnvironmentContext';\nimport { DARK_CLASS, INVERT_CLASS } from '../../UNSAFE_Theme';\nimport { useDensity } from '#hooks/UNSAFE_useDensity';\n\n/**\n * The logical parent of the re-parented content that 'launched' it in the popup/dropdown.\n */\ntype LogicalParentRef = RefObject<Element> | null;\n\n// This hook encapsulates the logic required to determine which theme style classes are needed\n// for the current environment context's colorScheme, density, and scale value. This would be used when\n// rendering dom outside of the current dom tree, but desire to match the colorScheme, density, and scale\n// of the original dom tree.\nexport function useThemeInterpolations(logicalParentRef?: LogicalParentRef) {\n const [colorScheme, setColorScheme] = useState<'light' | 'dark' | undefined>(undefined);\n\n const currentColorScheme = useColorScheme();\n const currentDensity = useDensity();\n const currentScale = useScale();\n // We don't want to interpolate the default environment values for scale or density. Those should get picked up by default.\n // This fixes an issue for core pack components that utilize the Layer component, when in a legacy cookbook page.\n const density = currentDensity !== DefaultEnvironment.density ? currentDensity : undefined;\n const scale = currentScale !== DefaultEnvironment.scale ? currentScale : undefined;\n\n // We want to use useLayoutEffect instead of useEffect here. Otherwise there could be\n // flashing due to light colorScheme initial render then dark colorScheme after useEffect.\n useLayoutEffect(() => {\n // for colorScheme in Legacy, things are a bit more complicated because unlike scale which is always applied to\n // the root dom element, we can switch to dark theme by adding the .oj-color-invert class to any dom element where\n // we want the dark theme to start. In Legacy, you can't switch back to light theme once you switch to dark (no nesting).\n // The problem with our core pack Components that use Layer to display the dropdown, it is not in the same dom\n // tree as the parent component. It is in its own dom tree off of the root dom element, so it won't see the\n // .oj-color-invert class in the dom tree of the select single.\n // Since in legacy .oj-color-invert can appear anywhere, not just on the root dom element, if the colorScheme\n // is the same as the default colorScheme then we need to look at the ref to determine if it or any of its\n // ancestors has the .oj-color-invert class. If it does(and doesn't have the preact .oj-c-colorscheme-dark class),\n // use 'dark' colorScheme.\n // We only want to do this for legacy, so if the closest element that has the .oj-color-invert also has .oj-c-colorscheme-dark,\n // then we don't want to override since this isn't a legacy color change and we already handle it in our environment context\n // so the color scheme nesting will work in Preact/Core Pack.\n const closestElementWithColorInvertClass =\n logicalParentRef &&\n logicalParentRef.current &&\n typeof logicalParentRef.current.closest === 'function'\n ? logicalParentRef.current.closest(`.${INVERT_CLASS}:not(.${DARK_CLASS})`)\n : null;\n setColorScheme(\n currentColorScheme !== DefaultEnvironment.colorScheme\n ? currentColorScheme\n : closestElementWithColorInvertClass\n ? 'dark'\n : undefined\n );\n }, [logicalParentRef, currentColorScheme]);\n\n const interpolations = mergeInterpolations<ThemeProps>([...Object.values(themeInterpolations)]);\n const { class: classes } = interpolations({ colorScheme, scale, density });\n return classes;\n}\n"],"names":["logicalParentRef","colorScheme","setColorScheme","useState","undefined","currentColorScheme","useColorScheme","currentDensity","useDensity","currentScale","useScale","density","DefaultEnvironment","scale","useLayoutEffect","closestElementWithColorInvertClass","current","closest","INVERT_CLASS","DARK_CLASS","interpolations","mergeInterpolations","Object","values","themeInterpolations","class","classes"],"mappings":"6QA2BM,SAAiCA,GACrC,MAAOC,EAAaC,GAAkBC,EAAQA,cAA+BC,GAEvEC,EAAqBC,EAAAA,iBACrBC,EAAiBC,EAAAA,aACjBC,EAAeC,EAAAA,WAGfC,EAAUJ,IAAmBK,EAAAA,mBAAmBD,QAAUJ,OAAiBH,EAC3ES,EAAQJ,IAAiBG,EAAAA,mBAAmBC,MAAQJ,OAAeL,EAIzEU,EAAAA,iBAAgB,KAcd,MAAMC,EACJf,GACAA,EAAiBgB,SAC2B,mBAArChB,EAAiBgB,QAAQC,QAC5BjB,EAAiBgB,QAAQC,QAAQ,IAAIC,EAAAA,qBAAqBC,iBAC1D,KACNjB,EACEG,IAAuBO,EAAAA,mBAAmBX,YACtCI,EACAU,EACA,YACAX,EACL,GACA,CAACJ,EAAkBK,IAEtB,MAAMe,EAAiBC,EAAAA,oBAAgC,IAAIC,OAAOC,OAAOC,EAAAA,wBACjEC,MAAOC,GAAYN,EAAe,CAAEnB,cAAaY,QAAOF,YAChE,OAAOe,CACT"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', 'preact/jsx-runtime', './useId-c9578d26', './useHover-7964884c', './useFocus-4194fc59', './useTouch-37489bb5', './mergeProps-bcfa6a92', './useAnimation-5a74955f', './useComponentTheme-5aa41a8f', './useTestId-d0c49456', './useThemeInterpolations-95e6f849', './classNames-08d99695', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './useColorScheme-8358a6c9', './tooltipUtils-304eef18'], (function(e,t,n,o,u,s,r,i,c,a,l,d,m,p,f,g){"use strict";const h=({children:e,id:o,isOpen:u,isDatatip:s,onTransitionEnd:r,testId:i,...f})=>{const g=t.useRef(null),h=t.useRef(null),T=l.useTestId(i),{baseTheme:v,variantClasses:b,styles:P}=a.useComponentTheme(p.TooltipContentRedwoodTheme,{variant:s?"datatip":"tooltip"}),C=d.useThemeInterpolations(),{nodeRef:E}=c.useAnimation(u?"mounted":"unmounted",{animationStates:{mounted:e=>{const t=e.firstChild;return{from:{maxHeight:"0",opacity:"0%"},to:{maxHeight:`${t?.offsetHeight}px`,opacity:s?"100%":"95%"},options:{duration:s?1:150,easing:[0,0,.2,1]}}},unmounted:e=>({from:{opacity:s?"100%":"95%"},to:{maxHeight:"0",opacity:"0%"},options:{duration:s?1:150,easing:[0,0,.2,1]}})},isAnimatedOnMount:!0,onAnimationEnd:()=>r?.()});return t.useEffect((()=>{g.current&&h.current?.offsetHeight&&(g.current.style.height=`${h.current?.offsetHeight}px`)}),[]),n.jsx("div",{ref:g,id:o,role:"tooltip",class:m.classNames([P.wrapper,C,v]),...T,children:n.jsx("div",{ref:E,class:P.inner,...f,children:n.jsx("div",{ref:h,class:m.classNames([b,P.content]),children:e})})})},T=({text:e,isOpen:c=!1,variant:a="tooltip",position:l="bottom",focusStrategy:d="browser",isDisabled:m=!1,anchor:p={x:"element",y:"element"},offset:T,onToggle:v,testId:b})=>{const P=g.getGlobalTooltipManager(),C=m||!e,E=t.useRef(!0),[x,y]=t.useState(!C&&c?"mounting":"unmounted"),R=t.useRef(x),I=e=>{R.current=e,y(e)},[D,H]=t.useState(!1);H(!1);const k="datatip"===a,[w,L]=t.useState(!1),A="logical"===d,O=t.useRef(!0),{hoverProps:S,isHover:F}=u.useHover({}),{touchProps:M,isTouch:_}=r.useTouch({isDisabled:m}),{focusProps:j,isFocus:N}=s.useFocus({isDisabled:A}),{hoverProps:B,isHover:Y}=u.useHover({isDisabled:m||!c}),G="pointer"===p.x||"pointer"===p.y,K=t.useRef(o.useId()),U=t.useRef(null),W=t.useRef({x:-9999,y:-9999}),$=G&&!N?W:U,X=k?0:g.SHOW_TOOLTIP_DELAY,q=k?0:g.HIDE_TOOLTIP_DELAY,z=t.useRef(null),J=f.useColorScheme(),Q=t.useRef(!1),V=t.useRef(!1),Z=()=>{z.current&&(clearTimeout(z.current),z.current=null)};t.useEffect((()=>{Q.current=A?w:N&&P.isTabKeyActive(),Q.current&&(V.current=!1)}),[N,w,A,P]),t.useEffect((()=>{V.current=F}),[F]),t.useEffect((()=>{O.current?O.current=!1:G&&F&&"unmounted"===x||(e=>{if(e)switch(x){case"unmounted":I("mountPending");break;case"unmounting":I("mounting"),v?.({value:!0});break;case"unmountPending":Z(),I("mounted")}else switch(x){case"mounting":case"mounted":I("unmountPending");break;case"mountPending":Z(),le(),I("unmounted")}})(F&&V.current||(N||w)&&Q.current||Y||_)}),[F,N,w,Y,_,G,x,v]);const ee=t.useCallback((()=>{Q.current=!1,V.current=!1,v?.({value:!1})}),[]),te=t.useCallback((e=>{$.current instanceof Element&&$.current.contains(e.target)&&(Z(),document.removeEventListener("mousedown",te,!0),ee())}),[$,ee]);t.useEffect((()=>{E.current?E.current=!1:I(c?"mounting":"unmounting")}),[c]),t.useEffect((()=>()=>{Z(),Q.current=!1,V.current=!1}),[]),t.useEffect((()=>{"mounted"===x?P.register(ee):"unmounted"===x&&(P.unregister(ee),document.removeEventListener("mousedown",te,!0))}),[x,ee,P,te]),t.useEffect((()=>(z.current||"mountPending"!==x&&"unmountPending"!==x||("mountPending"===x&&document.addEventListener("mousedown",te,!0),z.current=setTimeout((()=>{Z(),"mountPending"!==x&&"unmountPending"!==x||x!==R.current||v?.({value:"mountPending"===x})}),"mountPending"===x?X:q)),()=>{Z()})),[x,X,q,v,te]);const ne=e=>{L(!0),U.current=e,$.current=e},oe=()=>{L(!1)},ue=t.useCallback((e=>{U.current=e.currentTarget}),[]),se=t.useCallback((e=>{e.eventPhase===Event.AT_TARGET&&(Q.current=!1)}),[]),re=A?{}:{onFocus:ue,onBlur:se},ie={onMouseEnter:t.useCallback((e=>{U.current=e.target}),[])},ce={onKeyDown:t.useCallback((e=>{"Escape"===e.code&&Q.current&&(e.preventDefault(),Q.current=!1,v?.({value:!1}))}),[v])};let ae;const le=()=>{W.current={x:-9999,y:-9999}};if(C)ae=i.mergeProps(S,j,ie,re);else{const e={"aria-describedby":K.current,...G&&{onMouseLeave:()=>{"mounting"!==x&&Z()},onMouseMove:e=>{(e=>{if("unmounted"!==x&&("datatip"!==a||"mounted"!==x))return;const t=U?.current?.getBoundingClientRect(),n=document.body.scrollLeft+(t?.left||0)+(t?.width||0),o=document.body.scrollTop+(t?.top||0)+(t?.height||0),u="pointer"===p.x?e.clientX:n,s="pointer"===p.y?e.clientY:o;"mounted"===x?(W.current={x:u,y:s},!0!==D&&H(!0)):"unmounted"===x&&(Z(),z.current=setTimeout((()=>{"unmounted"===x&&(W.current={x:u,y:s},v?.({value:!0}))}),q))})(e)}}};ae=i.mergeProps(S,j,M,ie,re,e,ce,A?{onLogicalFocus:ne,onLogicalBlur:oe}:{})}if(C)return Z(),le(),{tooltipContent:null,tooltipProps:ae};const de=l,me=n.jsx(h,{id:K.current,testId:b,isOpen:["mounting","mounted","unmountPending"].includes(x),...B,isDatatip:k,onTransitionEnd:()=>{"mounting"===x&&I("mounted"),"unmounting"===x&&(le(),I("unmounted"))},children:e}),pe=g.getWrappedTooltipContent(me,a,J,$,de,T);return{tooltipContent:!["unmounted","mountPending"].includes(x)&&pe,tooltipProps:ae}};e.TooltipContent=h,e.useTooltip=({text:e,position:n="bottom",isDisabled:o=!1,anchor:u={x:"element",y:"element"},offset:s,variant:r="tooltip",testId:i})=>{const[c,a]=t.useState(!1),l=o||!e,d=t.useCallback((e=>{a(e.value)}),[]),{tooltipContent:m,tooltipProps:p}=T({text:e,isOpen:c,position:n,isDisabled:l,offset:s,anchor:u,variant:r,onToggle:d,testId:i});return{tooltipContent:m,tooltipProps:p}},e.useTooltipControlled=T}));
2
- //# sourceMappingURL=useTooltip-f7c1ad5c.js.map
1
+ define(['exports', 'preact/hooks', 'preact/jsx-runtime', './useId-c9578d26', './useHover-7964884c', './useFocus-4194fc59', './useTouch-37489bb5', './mergeProps-bcfa6a92', './useAnimation-5a74955f', './useComponentTheme-5aa41a8f', './useTestId-efb1c8f9', './useThemeInterpolations-93c8c4c0', './classNames-08d99695', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './useColorScheme-47c8be99', './tooltipUtils-cf586837'], (function(e,t,n,o,u,s,r,i,c,a,l,d,m,p,f,g){"use strict";const h=({children:e,id:o,isOpen:u,isDatatip:s,onTransitionEnd:r,testId:i,...f})=>{const g=t.useRef(null),h=t.useRef(null),T=l.useTestId(i),{baseTheme:v,variantClasses:b,styles:P}=a.useComponentTheme(p.TooltipContentRedwoodTheme,{variant:s?"datatip":"tooltip"}),C=d.useThemeInterpolations(),{nodeRef:E}=c.useAnimation(u?"mounted":"unmounted",{animationStates:{mounted:e=>{const t=e.firstChild;return{from:{maxHeight:"0",opacity:"0%"},to:{maxHeight:`${t?.offsetHeight}px`,opacity:s?"100%":"95%"},options:{duration:s?1:150,easing:[0,0,.2,1]}}},unmounted:e=>({from:{opacity:s?"100%":"95%"},to:{maxHeight:"0",opacity:"0%"},options:{duration:s?1:150,easing:[0,0,.2,1]}})},isAnimatedOnMount:!0,onAnimationEnd:()=>r?.()});return t.useEffect((()=>{g.current&&h.current?.offsetHeight&&(g.current.style.height=`${h.current?.offsetHeight}px`)}),[]),n.jsx("div",{ref:g,id:o,role:"tooltip",class:m.classNames([P.wrapper,C,v]),...T,children:n.jsx("div",{ref:E,class:P.inner,...f,children:n.jsx("div",{ref:h,class:m.classNames([b,P.content]),children:e})})})},T=({text:e,isOpen:c=!1,variant:a="tooltip",position:l="bottom",focusStrategy:d="browser",isDisabled:m=!1,anchor:p={x:"element",y:"element"},offset:T,onToggle:v,testId:b})=>{const P=g.getGlobalTooltipManager(),C=m||!e,E=t.useRef(!0),[x,y]=t.useState(!C&&c?"mounting":"unmounted"),R=t.useRef(x),I=e=>{R.current=e,y(e)},[D,H]=t.useState(!1);H(!1);const k="datatip"===a,[w,L]=t.useState(!1),A="logical"===d,O=t.useRef(!0),{hoverProps:S,isHover:F}=u.useHover({}),{touchProps:M,isTouch:_}=r.useTouch({isDisabled:m}),{focusProps:j,isFocus:N}=s.useFocus({isDisabled:A}),{hoverProps:B,isHover:Y}=u.useHover({isDisabled:m||!c}),G="pointer"===p.x||"pointer"===p.y,K=t.useRef(o.useId()),U=t.useRef(null),W=t.useRef({x:-9999,y:-9999}),$=G&&!N?W:U,X=k?0:g.SHOW_TOOLTIP_DELAY,q=k?0:g.HIDE_TOOLTIP_DELAY,z=t.useRef(null),J=f.useColorScheme(),Q=t.useRef(!1),V=t.useRef(!1),Z=()=>{z.current&&(clearTimeout(z.current),z.current=null)};t.useEffect((()=>{Q.current=A?w:N&&P.isTabKeyActive(),Q.current&&(V.current=!1)}),[N,w,A,P]),t.useEffect((()=>{V.current=F}),[F]),t.useEffect((()=>{O.current?O.current=!1:G&&F&&"unmounted"===x||(e=>{if(e)switch(x){case"unmounted":I("mountPending");break;case"unmounting":I("mounting"),v?.({value:!0});break;case"unmountPending":Z(),I("mounted")}else switch(x){case"mounting":case"mounted":I("unmountPending");break;case"mountPending":Z(),le(),I("unmounted")}})(F&&V.current||(N||w)&&Q.current||Y||_)}),[F,N,w,Y,_,G,x,v]);const ee=t.useCallback((()=>{Q.current=!1,V.current=!1,v?.({value:!1})}),[]),te=t.useCallback((e=>{$.current instanceof Element&&$.current.contains(e.target)&&(Z(),document.removeEventListener("mousedown",te,!0),ee())}),[$,ee]);t.useEffect((()=>{E.current?E.current=!1:I(c?"mounting":"unmounting")}),[c]),t.useEffect((()=>()=>{Z(),Q.current=!1,V.current=!1}),[]),t.useEffect((()=>{"mounted"===x?P.register(ee):"unmounted"===x&&(P.unregister(ee),document.removeEventListener("mousedown",te,!0))}),[x,ee,P,te]),t.useEffect((()=>(z.current||"mountPending"!==x&&"unmountPending"!==x||("mountPending"===x&&document.addEventListener("mousedown",te,!0),z.current=setTimeout((()=>{Z(),"mountPending"!==x&&"unmountPending"!==x||x!==R.current||v?.({value:"mountPending"===x})}),"mountPending"===x?X:q)),()=>{Z()})),[x,X,q,v,te]);const ne=e=>{L(!0),U.current=e,$.current=e},oe=()=>{L(!1)},ue=t.useCallback((e=>{U.current=e.currentTarget}),[]),se=t.useCallback((e=>{e.eventPhase===Event.AT_TARGET&&(Q.current=!1)}),[]),re=A?{}:{onFocus:ue,onBlur:se},ie={onMouseEnter:t.useCallback((e=>{U.current=e.target}),[])},ce={onKeyDown:t.useCallback((e=>{"Escape"===e.code&&Q.current&&(e.preventDefault(),Q.current=!1,v?.({value:!1}))}),[v])};let ae;const le=()=>{W.current={x:-9999,y:-9999}};if(C)ae=i.mergeProps(S,j,ie,re);else{const e={"aria-describedby":K.current,...G&&{onMouseLeave:()=>{"mounting"!==x&&Z()},onMouseMove:e=>{(e=>{if("unmounted"!==x&&("datatip"!==a||"mounted"!==x))return;const t=U?.current?.getBoundingClientRect(),n=document.body.scrollLeft+(t?.left||0)+(t?.width||0),o=document.body.scrollTop+(t?.top||0)+(t?.height||0),u="pointer"===p.x?e.clientX:n,s="pointer"===p.y?e.clientY:o;"mounted"===x?(W.current={x:u,y:s},!0!==D&&H(!0)):"unmounted"===x&&(Z(),z.current=setTimeout((()=>{"unmounted"===x&&(W.current={x:u,y:s},v?.({value:!0}))}),q))})(e)}}};ae=i.mergeProps(S,j,M,ie,re,e,ce,A?{onLogicalFocus:ne,onLogicalBlur:oe}:{})}if(C)return Z(),le(),{tooltipContent:null,tooltipProps:ae};const de=l,me=n.jsx(h,{id:K.current,testId:b,isOpen:["mounting","mounted","unmountPending"].includes(x),...B,isDatatip:k,onTransitionEnd:()=>{"mounting"===x&&I("mounted"),"unmounting"===x&&(le(),I("unmounted"))},children:e}),pe=g.getWrappedTooltipContent(me,a,J,$,de,T);return{tooltipContent:!["unmounted","mountPending"].includes(x)&&pe,tooltipProps:ae}};e.TooltipContent=h,e.useTooltip=({text:e,position:n="bottom",isDisabled:o=!1,anchor:u={x:"element",y:"element"},offset:s,variant:r="tooltip",testId:i})=>{const[c,a]=t.useState(!1),l=o||!e,d=t.useCallback((e=>{a(e.value)}),[]),{tooltipContent:m,tooltipProps:p}=T({text:e,isOpen:c,position:n,isDisabled:l,offset:s,anchor:u,variant:r,onToggle:d,testId:i});return{tooltipContent:m,tooltipProps:p}},e.useTooltipControlled=T}));
2
+ //# sourceMappingURL=useTooltip-c10bcc4e.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTooltip-f7c1ad5c.js","sources":["../../src/hooks/UNSAFE_useTooltip/TooltipContent.tsx","../../src/hooks/UNSAFE_useTooltip/useTooltipControlled.tsx","../../src/hooks/UNSAFE_useTooltip/useTooltip.tsx"],"sourcesContent":["import { useAnimation } from '../UNSAFE_useAnimation';\nimport { useComponentTheme } from '../UNSAFE_useComponentTheme';\nimport { useEffect, useRef } from 'preact/hooks';\nimport { HTMLAttributesSignalExcluded } from '../../utils/UNSAFE_attributeUtils';\nimport {\n TooltipContentVariantOptions,\n TooltipContentStyles\n} from './themes/TooltipContentStyles.css';\n\nimport { useTestId, TestIdProps } from '../UNSAFE_useTestId';\nimport { useThemeInterpolations } from '../UNSAFE_useThemeInterpolations';\nimport { classNames } from '../../utils/UNSAFE_classNames';\nimport { TooltipContentRedwoodTheme } from './themes/redwood/TooltipContentTheme';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\n\ntype Status = 'mounted' | 'unmounted';\n\ntype ContentProps = IntrinsicProps & {\n id: string;\n isOpen: boolean;\n isDatatip: boolean;\n onTransitionEnd?: () => void;\n} & TestIdProps;\n\nexport const TooltipContent = ({\n children,\n id,\n isOpen,\n isDatatip,\n onTransitionEnd,\n testId,\n ...props\n}: ContentProps) => {\n const wrapperRef = useRef<HTMLDivElement>(null);\n const popoverRef = useRef<HTMLDivElement>(null);\n\n const testIdProps = useTestId(testId);\n\n const { baseTheme, variantClasses, styles } = useComponentTheme<\n TooltipContentVariantOptions,\n TooltipContentStyles\n >(TooltipContentRedwoodTheme, {\n variant: isDatatip ? 'datatip' : 'tooltip'\n });\n\n const schemeClass = useThemeInterpolations();\n\n const { nodeRef } = useAnimation<Status, HTMLDivElement>(isOpen ? 'mounted' : 'unmounted', {\n animationStates: {\n mounted: (_node) => {\n const childNode = _node.firstChild as HTMLDivElement;\n return {\n from: {\n maxHeight: '0',\n opacity: '0%'\n },\n to: {\n maxHeight: `${childNode?.offsetHeight}px`,\n opacity: isDatatip ? '100%' : '95%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n },\n unmounted: (_node) => {\n return {\n from: {\n opacity: isDatatip ? '100%' : '95%'\n },\n to: {\n maxHeight: '0',\n opacity: '0%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n }\n },\n isAnimatedOnMount: true,\n onAnimationEnd: () => onTransitionEnd?.()\n });\n\n // Set up initial wrapper height so Tooltip can animate from the bottom to the top\n useEffect(() => {\n if (wrapperRef.current && popoverRef.current?.offsetHeight) {\n wrapperRef.current.style.height = `${popoverRef.current?.offsetHeight}px`;\n }\n }, []);\n\n return (\n <div\n ref={wrapperRef}\n id={id}\n role=\"tooltip\"\n class={classNames([styles.wrapper, schemeClass, baseTheme])}\n {...testIdProps}>\n <div ref={nodeRef} class={styles.inner} {...props}>\n <div ref={popoverRef} class={classNames([variantClasses, styles.content])}>\n {children}\n </div>\n </div>\n </div>\n );\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChild } from 'preact';\nimport { useState, useRef, useEffect, useCallback } from 'preact/hooks';\nimport { useId } from '../UNSAFE_useId';\nimport { Placement, Coords } from '../../UNSAFE_Floating';\nimport { useHover } from '../UNSAFE_useHover';\nimport { useFocus } from '../UNSAFE_useFocus';\nimport { useTouch } from '../UNSAFE_useTouch';\nimport { mergeProps } from '../../utils/UNSAFE_mergeProps';\nimport { TooltipContent } from './TooltipContent';\nimport { useColorScheme } from '../UNSAFE_useColorScheme';\nimport { TestIdProps } from '../UNSAFE_useTestId';\nimport {\n getGlobalTooltipManager,\n getWrappedTooltipContent,\n SHOW_TOOLTIP_DELAY,\n HIDE_TOOLTIP_DELAY\n} from '../../utils/PRIVATE_tooltipUtils';\n\nexport type Position = Omit<Placement, 'center'>;\n\nexport const anchorTos = ['element', 'pointer'] as const;\ntype AnchorTo = (typeof anchorTos)[number];\n\ntype AnchorModel = { x: AnchorTo; y: AnchorTo };\n\ntype Props = {\n text?: string;\n variant?: 'tooltip' | 'datatip';\n isOpen: boolean;\n position?: Position;\n isDisabled?: boolean;\n focusStrategy?: 'browser' | 'logical';\n anchor?: AnchorModel;\n offset?: { mainAxis?: number; crossAxis?: number };\n onToggle?: (details: { value: boolean }) => void;\n} & TestIdProps;\n\n/**\n * The 'mounting' and 'unmounting' states are related to the animation. The 'unmounted' state\n * is used for conditional rendering. In this state, the Tooltip content is completely removed\n * from the DOM. The 'mountPending' and 'unmountPending' are used when timeout is active.\n * The 'reposition' state is used to trigger a transition with new coordinates within\n * the same element.\n */\ntype Status =\n | 'unmounted'\n | 'mountPending'\n | 'mounting'\n | 'mounted'\n | 'unmountPending'\n | 'unmounting';\n\nexport const useTooltipControlled = ({\n text,\n isOpen = false,\n variant = 'tooltip',\n position = 'bottom',\n focusStrategy = 'browser',\n isDisabled = false,\n anchor = { x: 'element', y: 'element' },\n offset,\n onToggle,\n testId\n}: Props): {\n tooltipContent: ComponentChild;\n tooltipProps: Record<string, any>;\n} => {\n // Global TooltipManager singleton instance\n const globalTooltipManager = getGlobalTooltipManager();\n\n const disabled = isDisabled || !text;\n const isInitialRenderState = useRef<boolean>(true);\n\n const [state, _setState] = useState<Status>(!disabled && isOpen ? 'mounting' : 'unmounted');\n const stateRef = useRef<Status>(state);\n const setState = (newState: Status) => {\n stateRef.current = newState;\n _setState(newState);\n };\n\n // const tooltipId = useRef<string>(useId());\n\n const [needsUpdate, setNeedsUpdate] = useState<boolean>(false);\n setNeedsUpdate(false);\n\n const isDatatip = variant === 'datatip';\n\n const [isLogicalFocus, setLogicalFocus] = useState<boolean>(false);\n const isLogicalFocusStrategy = focusStrategy === 'logical';\n const isInitialRenderTrigger = useRef<boolean>(true);\n const { hoverProps, isHover } = useHover({});\n const { touchProps, isTouch } = useTouch({ isDisabled }); // TODO replace by useLongPress actionhook\n // we only care about keyboard focus, don't enable useFocus hook if isHover or isTouch are active\n const { focusProps, isFocus } = useFocus({\n isDisabled: isLogicalFocusStrategy\n });\n // only enable the popoverHover hook if the tooltip is actually open\n const { hoverProps: popoverHoverProps, isHover: popoverIsHover } = useHover({\n isDisabled: isDisabled || !isOpen\n });\n\n const isPointer = anchor.x === 'pointer' || anchor.y === 'pointer';\n\n const uniqueIdRef = useRef<string>(useId());\n const targetRef = useRef<HTMLElement | null>(null);\n const coordsRef = useRef<Coords>({ x: -9999, y: -9999 });\n // if anchor is set to pointer and target does not have keyboard focus, use coords\n const usedRef = isPointer && !isFocus ? coordsRef : targetRef;\n const showDelay = isDatatip ? 0 : SHOW_TOOLTIP_DELAY;\n const hideDelay = isDatatip ? 0 : HIDE_TOOLTIP_DELAY;\n const toggleTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const currentColorScheme = useColorScheme();\n\n const focusActive = useRef<boolean>(false);\n const hoverActive = useRef<boolean>(false);\n\n const toggleTimeoutClear = () => {\n if (toggleTimeoutRef.current) {\n clearTimeout(toggleTimeoutRef.current);\n toggleTimeoutRef.current = null;\n }\n };\n\n /*\n * This effect executes when isFocus/isLogicalFocus changes\n * - focusActive ref is set if the focus change follows a Tab key\n * - hoverActive ref is reset, if focusActive becomes true\n */\n useEffect(() => {\n if (isLogicalFocusStrategy) {\n focusActive.current = isLogicalFocus;\n } else {\n focusActive.current = isFocus && globalTooltipManager.isTabKeyActive();\n }\n if (focusActive.current) {\n hoverActive.current = false;\n }\n }, [isFocus, isLogicalFocus, isLogicalFocusStrategy, globalTooltipManager]);\n\n /*\n * This effect executes when isHover state changes\n * - focusActive ref is reset, if hoverActive becomes true\n */\n useEffect(() => {\n hoverActive.current = isHover;\n }, [isHover]);\n\n useEffect(() => {\n // inner function for state transitions on various trigger changes\n const updateState = (open: boolean) => {\n if (open) {\n // At least one toggle event is set to true\n switch (state) {\n case 'unmounted':\n setState('mountPending'); // Set mount pending state if tooltip is unmounted\n break;\n case 'unmounting': // Switch back to mounting when unmounting was in progress and the tooltip should stay on\n setState('mounting');\n onToggle?.({ value: true });\n break;\n case 'unmountPending':\n toggleTimeoutClear();\n setState('mounted'); // Clear timers immediately and keep the tooltip mounted\n break;\n }\n } else {\n // No toggle events are set to true\n switch (state) {\n case 'mounting':\n case 'mounted':\n setState('unmountPending'); // Set unmount pending state if tooltip is mounted or in mounting transition\n break;\n case 'mountPending':\n toggleTimeoutClear();\n __resetCoords();\n setState('unmounted'); // Unmount tooltip immediately if mounting is pending\n break;\n }\n }\n };\n\n if (isInitialRenderTrigger.current) {\n // On onitial render do not trigger rerender\n isInitialRenderTrigger.current = false;\n return;\n }\n // When pointer is used, handleMouseMove method is responsible for state updates\n // until the tooltip is mounted\n if (isPointer && isHover && state === 'unmounted') {\n return;\n }\n updateState(\n (isHover && hoverActive.current) ||\n ((isFocus || isLogicalFocus) && focusActive.current) ||\n popoverIsHover ||\n isTouch\n );\n }, [isHover, isFocus, isLogicalFocus, popoverIsHover, isTouch, isPointer, state, onToggle]);\n\n const destroyCallback = useCallback(() => {\n focusActive.current = false;\n hoverActive.current = false;\n onToggle?.({ value: false });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []); // don't want to depend on the 'onToggle' prop as some clients tend to pass a new callback on each render\n\n /*\n * Global mousedown handler to dismiss the tooltip on anchor click. This is especially needed\n * for Safari which does not fire mouse events during animations when the anchor moves (JET-72605).\n */\n const mouseDownHandler = useCallback(\n (event: MouseEvent) => {\n if (usedRef.current instanceof Element && usedRef.current.contains(event.target as Element)) {\n toggleTimeoutClear();\n document.removeEventListener('mousedown', mouseDownHandler, true);\n destroyCallback();\n }\n },\n [usedRef, destroyCallback]\n );\n\n useEffect(() => {\n if (isInitialRenderState.current) {\n // On onitial render do not trigger rerender\n isInitialRenderState.current = false;\n return;\n }\n setState(isOpen ? 'mounting' : 'unmounting');\n }, [isOpen]);\n\n useEffect(() => {\n return () => {\n // make sure to clear the toggle timeout on unmount\n toggleTimeoutClear();\n // reset focusActive and hoverActive refs\n focusActive.current = false;\n hoverActive.current = false;\n };\n }, []);\n\n /*\n * This effect executes when the component state changes.\n * On 'mounted' state, the tooltip registers itself with the global tooltip manager.\n * On 'unmounted', the tooltip unregisters from the global tooltip manager.\n */\n useEffect(() => {\n if (state === 'mounted') {\n globalTooltipManager.register(destroyCallback);\n } else if (state === 'unmounted') {\n globalTooltipManager.unregister(destroyCallback);\n // clean up the mousedown handler just in case\n document.removeEventListener('mousedown', mouseDownHandler, true);\n }\n }, [state, destroyCallback, globalTooltipManager, mouseDownHandler]);\n\n /*\n * Set a timer to toggle the state afer the 'pending' period expires\n */\n useEffect(() => {\n if (!toggleTimeoutRef.current && (state === 'mountPending' || state === 'unmountPending')) {\n if (state === 'mountPending') {\n document.addEventListener('mousedown', mouseDownHandler, true);\n }\n toggleTimeoutRef.current = setTimeout(\n () => {\n toggleTimeoutClear();\n // make sure the state has not changed in the mean time before onToggle\n if (\n (state === 'mountPending' || state === 'unmountPending') &&\n state === stateRef.current\n ) {\n onToggle?.({ value: state === 'mountPending' });\n }\n },\n state === 'mountPending' ? showDelay : hideDelay\n );\n }\n return () => {\n toggleTimeoutClear();\n };\n }, [state, showDelay, hideDelay, onToggle, mouseDownHandler]);\n\n const handleMouseMove = (event: MouseEvent) => {\n // we only want track mouse move while the state is 'unmounted' or when moving a 'mounted' datatip\n if (state !== 'unmounted' && !(variant === 'datatip' && state === 'mounted')) {\n return;\n }\n const targetRect = targetRef?.current?.getBoundingClientRect();\n\n // Tooltip maintains static offset from left side of window\n const distanceX = document.body.scrollLeft + (targetRect?.left || 0) + (targetRect?.width || 0);\n\n // Tooltip maintains static offset from top side of the window\n const distanceY = document.body.scrollTop + (targetRect?.top || 0) + (targetRect?.height || 0);\n\n // Display tooltip at the mouse position if both anchors are set to pointer\n const x = anchor.x === 'pointer' ? event.clientX : distanceX;\n const y = anchor.y === 'pointer' ? event.clientY : distanceY;\n\n if (state === 'mounted') {\n coordsRef.current = { x, y };\n if (needsUpdate !== true) setNeedsUpdate(true);\n } else if (state === 'unmounted') {\n toggleTimeoutClear();\n toggleTimeoutRef.current = setTimeout(() => {\n if (state === 'unmounted') {\n coordsRef.current = { x, y };\n onToggle?.({ value: true });\n }\n }, hideDelay);\n }\n };\n\n const onLogicalFocus = (target: HTMLElement) => {\n setLogicalFocus(true);\n targetRef.current = target;\n usedRef.current = target;\n };\n\n const onLogicalBlur = () => {\n setLogicalFocus(false);\n };\n\n const onFocusCallback = useCallback((event: FocusEvent) => {\n targetRef.current = event.currentTarget as HTMLElement;\n }, []);\n\n const onBlurCallback = useCallback((event: FocusEvent) => {\n if (event.eventPhase === Event.AT_TARGET) {\n // reset focusActive flag\n focusActive.current = false;\n }\n }, []);\n\n const focusInitProps = isLogicalFocusStrategy\n ? {}\n : {\n onFocus: onFocusCallback,\n onBlur: onBlurCallback\n };\n\n const hoverInitProps = {\n onMouseEnter: useCallback((event: MouseEvent) => {\n targetRef.current = event.target as HTMLElement;\n }, [])\n };\n\n const keyInitProps = {\n onKeyDown: useCallback(\n (event: KeyboardEvent) => {\n if (event.code === 'Escape' && focusActive.current) {\n event.preventDefault();\n // focus no longer active after Escape\n focusActive.current = false;\n onToggle?.({ value: false });\n }\n },\n [onToggle]\n )\n };\n\n let actionableProps;\n\n const __resetCoords = () => {\n coordsRef.current = { x: -9999, y: -9999 };\n };\n\n if (disabled) {\n actionableProps = mergeProps(hoverProps, focusProps, hoverInitProps, focusInitProps);\n } else {\n const anchorInitProps = {\n 'aria-describedby': uniqueIdRef.current,\n\n ...(isPointer && {\n onMouseLeave: () => {\n if (state === 'mounting') {\n return;\n }\n toggleTimeoutClear();\n },\n onMouseMove: (event: MouseEvent) => {\n handleMouseMove(event);\n }\n })\n };\n actionableProps = mergeProps(\n hoverProps,\n focusProps,\n touchProps,\n hoverInitProps,\n focusInitProps,\n anchorInitProps,\n keyInitProps,\n isLogicalFocusStrategy ? { onLogicalFocus, onLogicalBlur } : {}\n );\n }\n\n // No need to process tooltip if disabled or no text is provided\n // Include actionableProps to detect mouseenter in components\n // hovered state won't update unless actionableProps are already present in the component when mouse enters\n if (disabled) {\n toggleTimeoutClear();\n __resetCoords();\n return {\n tooltipContent: null,\n tooltipProps: actionableProps\n };\n }\n\n const placement = position as Placement;\n\n const handleTransitionEnd = () => {\n if (state === 'mounting') {\n setState('mounted');\n }\n if (state === 'unmounting') {\n __resetCoords();\n setState('unmounted');\n }\n };\n\n const renderRawContent = (\n <TooltipContent\n id={uniqueIdRef.current}\n testId={testId}\n isOpen={['mounting', 'mounted', 'unmountPending'].includes(state)}\n {...popoverHoverProps}\n isDatatip={isDatatip}\n onTransitionEnd={handleTransitionEnd}>\n {text}\n </TooltipContent>\n );\n\n const renderContent = getWrappedTooltipContent(\n renderRawContent,\n variant,\n currentColorScheme,\n usedRef,\n placement,\n offset\n );\n\n return {\n tooltipContent: !['unmounted', 'mountPending'].includes(state) && renderContent,\n tooltipProps: actionableProps\n };\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useState, useCallback } from 'preact/hooks';\nimport { useTooltipControlled } from './useTooltipControlled';\nimport { TestIdProps } from '../UNSAFE_useTestId';\n\ntype tooltipParameters = Parameters<typeof useTooltipControlled>[0];\n\ntype Props = {\n text?: string;\n position?: tooltipParameters['position'];\n isDisabled?: boolean;\n anchor?: tooltipParameters['anchor'];\n offset?: { mainAxis?: number; crossAxis?: number };\n variant?: tooltipParameters['variant'];\n} & TestIdProps;\n\n/**\n * A hook with tooltip implementation.\n * Returns event handlers that can enhance the target element with a tooltip displayed\n * on hover and focus.\n *\n * @param text tooltip text\n * @param position tooltip placement relative to the target element\n * @param isDisabled determines if the tooltip is disabled\n * @param anchor determines if the target is an element or the pointer\n * @param offset offset from the placement\n * @param variant specifies if the rendered popup should have 'tooltip' or 'datatip' look and behavior\n * @returns an object with the 'tooltipContent' and 'tooltipProps' properties.\n */\nexport const useTooltip = ({\n text,\n position = 'bottom',\n isDisabled = false,\n anchor = { x: 'element', y: 'element' },\n offset,\n variant = 'tooltip',\n testId\n}: Props): ReturnType<typeof useTooltipControlled> => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const disabled = isDisabled || !text;\n const onToggleHandler = useCallback((details: { value: boolean }) => {\n setIsOpen(details.value);\n }, []);\n\n const { tooltipContent, tooltipProps } = useTooltipControlled({\n text,\n isOpen,\n position,\n isDisabled: disabled,\n offset,\n anchor,\n variant,\n onToggle: onToggleHandler,\n testId\n });\n\n return {\n tooltipContent,\n tooltipProps\n };\n};\n"],"names":["TooltipContent","children","id","isOpen","isDatatip","onTransitionEnd","testId","props","wrapperRef","useRef","popoverRef","testIdProps","useTestId","baseTheme","variantClasses","styles","useComponentTheme","TooltipContentRedwoodTheme","variant","schemeClass","useThemeInterpolations","nodeRef","useAnimation","animationStates","mounted","_node","childNode","firstChild","from","maxHeight","opacity","to","offsetHeight","options","duration","easing","unmounted","isAnimatedOnMount","onAnimationEnd","useEffect","current","style","height","_jsx","jsx","ref","role","class","classNames","wrapper","inner","content","useTooltipControlled","text","position","focusStrategy","isDisabled","anchor","x","y","offset","onToggle","globalTooltipManager","getGlobalTooltipManager","disabled","isInitialRenderState","state","_setState","useState","stateRef","setState","newState","needsUpdate","setNeedsUpdate","isLogicalFocus","setLogicalFocus","isLogicalFocusStrategy","isInitialRenderTrigger","hoverProps","isHover","useHover","touchProps","isTouch","useTouch","focusProps","isFocus","useFocus","popoverHoverProps","popoverIsHover","isPointer","uniqueIdRef","useId","targetRef","coordsRef","usedRef","showDelay","SHOW_TOOLTIP_DELAY","hideDelay","HIDE_TOOLTIP_DELAY","toggleTimeoutRef","currentColorScheme","useColorScheme","focusActive","hoverActive","toggleTimeoutClear","clearTimeout","isTabKeyActive","open","value","__resetCoords","updateState","destroyCallback","useCallback","mouseDownHandler","event","Element","contains","target","document","removeEventListener","register","unregister","addEventListener","setTimeout","onLogicalFocus","onLogicalBlur","onFocusCallback","currentTarget","onBlurCallback","eventPhase","Event","AT_TARGET","focusInitProps","onFocus","onBlur","hoverInitProps","onMouseEnter","keyInitProps","onKeyDown","code","preventDefault","actionableProps","mergeProps","anchorInitProps","onMouseLeave","onMouseMove","targetRect","getBoundingClientRect","distanceX","body","scrollLeft","left","width","distanceY","scrollTop","top","clientX","clientY","handleMouseMove","tooltipContent","tooltipProps","placement","renderRawContent","includes","renderContent","getWrappedTooltipContent","setIsOpen","onToggleHandler","details"],"mappings":"meAyBaA,EAAiB,EAC5BC,WACAC,KACAC,SACAC,YACAC,kBACAC,YACGC,MAEH,MAAMC,EAAaC,SAAuB,MACpCC,EAAaD,SAAuB,MAEpCE,EAAcC,YAAUN,IAExBO,UAAEA,EAASC,eAAEA,EAAcC,OAAEA,GAAWC,EAAAA,kBAG5CC,EAAAA,2BAA4B,CAC5BC,QAASd,EAAY,UAAY,YAG7Be,EAAcC,EAAAA,0BAEdC,QAAEA,GAAYC,EAAAA,aAAqCnB,EAAS,UAAY,YAAa,CACzFoB,gBAAiB,CACfC,QAAUC,IACR,MAAMC,EAAYD,EAAME,WACxB,MAAO,CACLC,KAAM,CACJC,UAAW,IACXC,QAAS,MAEXC,GAAI,CACFF,UAAW,GAAGH,GAAWM,iBACzBF,QAAS1B,EAAY,OAAS,OAEhC6B,QAAS,CACPC,SAAU9B,EAAY,EAAI,IAC1B+B,OAAQ,CAAC,EAAK,EAAK,GAAK,IAE3B,EAEHC,UAAYX,IACH,CACLG,KAAM,CACJE,QAAS1B,EAAY,OAAS,OAEhC2B,GAAI,CACFF,UAAW,IACXC,QAAS,MAEXG,QAAS,CACPC,SAAU9B,EAAY,EAAI,IAC1B+B,OAAQ,CAAC,EAAK,EAAK,GAAK,OAKhCE,mBAAmB,EACnBC,eAAgB,IAAMjC,QAUxB,OANAkC,EAAAA,WAAU,KACJ/B,EAAWgC,SAAW9B,EAAW8B,SAASR,eAC5CxB,EAAWgC,QAAQC,MAAMC,OAAS,GAAGhC,EAAW8B,SAASR,iBAC1D,GACA,IAGDW,EAAAC,IAAA,MAAA,CACEC,IAAKrC,EACLN,GAAIA,EACJ4C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gBC,kBAAkB,CAAE,EAElE,CAKD,GAAI7D,EAGF,OAFAwC,IACAK,KACO,CACLkD,eAAgB,KAChBC,aAAcnB,IAIlB,MAAMoB,GAAY3G,EAYZ4G,GACJvH,EAAAA,IAAC3C,EACC,CAAAE,GAAIwF,EAAYlD,QAChBlC,OAAQA,EACRH,OAAQ,CAAC,WAAY,UAAW,kBAAkBgK,SAASjG,MACvDqB,EACJnF,UAAWA,EACXC,gBAjBwB,KACZ,aAAV6D,GACFI,EAAS,WAEG,eAAVJ,IACF2C,KACAvC,EAAS,aACV,WAWEjB,IAIC+G,GAAgBC,EAAwBA,yBAC5CH,GACAhJ,EACAkF,EACAN,EACAmE,GACArG,GAGF,MAAO,CACLmG,gBAAiB,CAAC,YAAa,gBAAgBI,SAASjG,IAAUkG,GAClEJ,aAAcnB,GACf,kCClauB,EACxBxF,OACAC,WAAW,SACXE,cAAa,EACbC,SAAS,CAAEC,EAAG,UAAWC,EAAG,WAC5BC,SACA1C,UAAU,UACVZ,aAEA,MAAOH,EAAQmK,GAAalG,EAAQA,UAAU,GACxCJ,EAAWR,IAAeH,EAC1BkH,EAAkBvD,eAAawD,IACnCF,EAAUE,EAAQ5D,MAAM,GACvB,KAEGmD,eAAEA,EAAcC,aAAEA,GAAiB5G,EAAqB,CAC5DC,OACAlD,SACAmD,WACAE,WAAYQ,EACZJ,SACAH,SACAvC,UACA2C,SAAU0G,EACVjK,WAGF,MAAO,CACLyJ,iBACAC,eACD"}
1
+ {"version":3,"file":"useTooltip-c10bcc4e.js","sources":["../../src/hooks/UNSAFE_useTooltip/TooltipContent.tsx","../../src/hooks/UNSAFE_useTooltip/useTooltipControlled.tsx","../../src/hooks/UNSAFE_useTooltip/useTooltip.tsx"],"sourcesContent":["import { useAnimation } from '../UNSAFE_useAnimation';\nimport { useComponentTheme } from '../UNSAFE_useComponentTheme';\nimport { useEffect, useRef } from 'preact/hooks';\nimport { HTMLAttributesSignalExcluded } from '../../utils/UNSAFE_attributeUtils';\nimport {\n TooltipContentVariantOptions,\n TooltipContentStyles\n} from './themes/TooltipContentStyles.css';\n\nimport { useTestId, TestIdProps } from '../UNSAFE_useTestId';\nimport { useThemeInterpolations } from '../UNSAFE_useThemeInterpolations';\nimport { classNames } from '../../utils/UNSAFE_classNames';\nimport { TooltipContentRedwoodTheme } from './themes/redwood/TooltipContentTheme';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\n\ntype Status = 'mounted' | 'unmounted';\n\ntype ContentProps = IntrinsicProps & {\n id: string;\n isOpen: boolean;\n isDatatip: boolean;\n onTransitionEnd?: () => void;\n} & TestIdProps;\n\nexport const TooltipContent = ({\n children,\n id,\n isOpen,\n isDatatip,\n onTransitionEnd,\n testId,\n ...props\n}: ContentProps) => {\n const wrapperRef = useRef<HTMLDivElement>(null);\n const popoverRef = useRef<HTMLDivElement>(null);\n\n const testIdProps = useTestId(testId);\n\n const { baseTheme, variantClasses, styles } = useComponentTheme<\n TooltipContentVariantOptions,\n TooltipContentStyles\n >(TooltipContentRedwoodTheme, {\n variant: isDatatip ? 'datatip' : 'tooltip'\n });\n\n const schemeClass = useThemeInterpolations();\n\n const { nodeRef } = useAnimation<Status, HTMLDivElement>(isOpen ? 'mounted' : 'unmounted', {\n animationStates: {\n mounted: (_node) => {\n const childNode = _node.firstChild as HTMLDivElement;\n return {\n from: {\n maxHeight: '0',\n opacity: '0%'\n },\n to: {\n maxHeight: `${childNode?.offsetHeight}px`,\n opacity: isDatatip ? '100%' : '95%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n },\n unmounted: (_node) => {\n return {\n from: {\n opacity: isDatatip ? '100%' : '95%'\n },\n to: {\n maxHeight: '0',\n opacity: '0%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n }\n },\n isAnimatedOnMount: true,\n onAnimationEnd: () => onTransitionEnd?.()\n });\n\n // Set up initial wrapper height so Tooltip can animate from the bottom to the top\n useEffect(() => {\n if (wrapperRef.current && popoverRef.current?.offsetHeight) {\n wrapperRef.current.style.height = `${popoverRef.current?.offsetHeight}px`;\n }\n }, []);\n\n return (\n <div\n ref={wrapperRef}\n id={id}\n role=\"tooltip\"\n class={classNames([styles.wrapper, schemeClass, baseTheme])}\n {...testIdProps}>\n <div ref={nodeRef} class={styles.inner} {...props}>\n <div ref={popoverRef} class={classNames([variantClasses, styles.content])}>\n {children}\n </div>\n </div>\n </div>\n );\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChild } from 'preact';\nimport { useState, useRef, useEffect, useCallback } from 'preact/hooks';\nimport { useId } from '../UNSAFE_useId';\nimport { Placement, Coords } from '../../UNSAFE_Floating';\nimport { useHover } from '../UNSAFE_useHover';\nimport { useFocus } from '../UNSAFE_useFocus';\nimport { useTouch } from '../UNSAFE_useTouch';\nimport { mergeProps } from '../../utils/UNSAFE_mergeProps';\nimport { TooltipContent } from './TooltipContent';\nimport { useColorScheme } from '../UNSAFE_useColorScheme';\nimport { TestIdProps } from '../UNSAFE_useTestId';\nimport {\n getGlobalTooltipManager,\n getWrappedTooltipContent,\n SHOW_TOOLTIP_DELAY,\n HIDE_TOOLTIP_DELAY\n} from '../../utils/PRIVATE_tooltipUtils';\n\nexport type Position = Omit<Placement, 'center'>;\n\nexport const anchorTos = ['element', 'pointer'] as const;\ntype AnchorTo = (typeof anchorTos)[number];\n\ntype AnchorModel = { x: AnchorTo; y: AnchorTo };\n\ntype Props = {\n text?: string;\n variant?: 'tooltip' | 'datatip';\n isOpen: boolean;\n position?: Position;\n isDisabled?: boolean;\n focusStrategy?: 'browser' | 'logical';\n anchor?: AnchorModel;\n offset?: { mainAxis?: number; crossAxis?: number };\n onToggle?: (details: { value: boolean }) => void;\n} & TestIdProps;\n\n/**\n * The 'mounting' and 'unmounting' states are related to the animation. The 'unmounted' state\n * is used for conditional rendering. In this state, the Tooltip content is completely removed\n * from the DOM. The 'mountPending' and 'unmountPending' are used when timeout is active.\n * The 'reposition' state is used to trigger a transition with new coordinates within\n * the same element.\n */\ntype Status =\n | 'unmounted'\n | 'mountPending'\n | 'mounting'\n | 'mounted'\n | 'unmountPending'\n | 'unmounting';\n\nexport const useTooltipControlled = ({\n text,\n isOpen = false,\n variant = 'tooltip',\n position = 'bottom',\n focusStrategy = 'browser',\n isDisabled = false,\n anchor = { x: 'element', y: 'element' },\n offset,\n onToggle,\n testId\n}: Props): {\n tooltipContent: ComponentChild;\n tooltipProps: Record<string, any>;\n} => {\n // Global TooltipManager singleton instance\n const globalTooltipManager = getGlobalTooltipManager();\n\n const disabled = isDisabled || !text;\n const isInitialRenderState = useRef<boolean>(true);\n\n const [state, _setState] = useState<Status>(!disabled && isOpen ? 'mounting' : 'unmounted');\n const stateRef = useRef<Status>(state);\n const setState = (newState: Status) => {\n stateRef.current = newState;\n _setState(newState);\n };\n\n // const tooltipId = useRef<string>(useId());\n\n const [needsUpdate, setNeedsUpdate] = useState<boolean>(false);\n setNeedsUpdate(false);\n\n const isDatatip = variant === 'datatip';\n\n const [isLogicalFocus, setLogicalFocus] = useState<boolean>(false);\n const isLogicalFocusStrategy = focusStrategy === 'logical';\n const isInitialRenderTrigger = useRef<boolean>(true);\n const { hoverProps, isHover } = useHover({});\n const { touchProps, isTouch } = useTouch({ isDisabled }); // TODO replace by useLongPress actionhook\n // we only care about keyboard focus, don't enable useFocus hook if isHover or isTouch are active\n const { focusProps, isFocus } = useFocus({\n isDisabled: isLogicalFocusStrategy\n });\n // only enable the popoverHover hook if the tooltip is actually open\n const { hoverProps: popoverHoverProps, isHover: popoverIsHover } = useHover({\n isDisabled: isDisabled || !isOpen\n });\n\n const isPointer = anchor.x === 'pointer' || anchor.y === 'pointer';\n\n const uniqueIdRef = useRef<string>(useId());\n const targetRef = useRef<HTMLElement | null>(null);\n const coordsRef = useRef<Coords>({ x: -9999, y: -9999 });\n // if anchor is set to pointer and target does not have keyboard focus, use coords\n const usedRef = isPointer && !isFocus ? coordsRef : targetRef;\n const showDelay = isDatatip ? 0 : SHOW_TOOLTIP_DELAY;\n const hideDelay = isDatatip ? 0 : HIDE_TOOLTIP_DELAY;\n const toggleTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const currentColorScheme = useColorScheme();\n\n const focusActive = useRef<boolean>(false);\n const hoverActive = useRef<boolean>(false);\n\n const toggleTimeoutClear = () => {\n if (toggleTimeoutRef.current) {\n clearTimeout(toggleTimeoutRef.current);\n toggleTimeoutRef.current = null;\n }\n };\n\n /*\n * This effect executes when isFocus/isLogicalFocus changes\n * - focusActive ref is set if the focus change follows a Tab key\n * - hoverActive ref is reset, if focusActive becomes true\n */\n useEffect(() => {\n if (isLogicalFocusStrategy) {\n focusActive.current = isLogicalFocus;\n } else {\n focusActive.current = isFocus && globalTooltipManager.isTabKeyActive();\n }\n if (focusActive.current) {\n hoverActive.current = false;\n }\n }, [isFocus, isLogicalFocus, isLogicalFocusStrategy, globalTooltipManager]);\n\n /*\n * This effect executes when isHover state changes\n * - focusActive ref is reset, if hoverActive becomes true\n */\n useEffect(() => {\n hoverActive.current = isHover;\n }, [isHover]);\n\n useEffect(() => {\n // inner function for state transitions on various trigger changes\n const updateState = (open: boolean) => {\n if (open) {\n // At least one toggle event is set to true\n switch (state) {\n case 'unmounted':\n setState('mountPending'); // Set mount pending state if tooltip is unmounted\n break;\n case 'unmounting': // Switch back to mounting when unmounting was in progress and the tooltip should stay on\n setState('mounting');\n onToggle?.({ value: true });\n break;\n case 'unmountPending':\n toggleTimeoutClear();\n setState('mounted'); // Clear timers immediately and keep the tooltip mounted\n break;\n }\n } else {\n // No toggle events are set to true\n switch (state) {\n case 'mounting':\n case 'mounted':\n setState('unmountPending'); // Set unmount pending state if tooltip is mounted or in mounting transition\n break;\n case 'mountPending':\n toggleTimeoutClear();\n __resetCoords();\n setState('unmounted'); // Unmount tooltip immediately if mounting is pending\n break;\n }\n }\n };\n\n if (isInitialRenderTrigger.current) {\n // On onitial render do not trigger rerender\n isInitialRenderTrigger.current = false;\n return;\n }\n // When pointer is used, handleMouseMove method is responsible for state updates\n // until the tooltip is mounted\n if (isPointer && isHover && state === 'unmounted') {\n return;\n }\n updateState(\n (isHover && hoverActive.current) ||\n ((isFocus || isLogicalFocus) && focusActive.current) ||\n popoverIsHover ||\n isTouch\n );\n }, [isHover, isFocus, isLogicalFocus, popoverIsHover, isTouch, isPointer, state, onToggle]);\n\n const destroyCallback = useCallback(() => {\n focusActive.current = false;\n hoverActive.current = false;\n onToggle?.({ value: false });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []); // don't want to depend on the 'onToggle' prop as some clients tend to pass a new callback on each render\n\n /*\n * Global mousedown handler to dismiss the tooltip on anchor click. This is especially needed\n * for Safari which does not fire mouse events during animations when the anchor moves (JET-72605).\n */\n const mouseDownHandler = useCallback(\n (event: MouseEvent) => {\n if (usedRef.current instanceof Element && usedRef.current.contains(event.target as Element)) {\n toggleTimeoutClear();\n document.removeEventListener('mousedown', mouseDownHandler, true);\n destroyCallback();\n }\n },\n [usedRef, destroyCallback]\n );\n\n useEffect(() => {\n if (isInitialRenderState.current) {\n // On onitial render do not trigger rerender\n isInitialRenderState.current = false;\n return;\n }\n setState(isOpen ? 'mounting' : 'unmounting');\n }, [isOpen]);\n\n useEffect(() => {\n return () => {\n // make sure to clear the toggle timeout on unmount\n toggleTimeoutClear();\n // reset focusActive and hoverActive refs\n focusActive.current = false;\n hoverActive.current = false;\n };\n }, []);\n\n /*\n * This effect executes when the component state changes.\n * On 'mounted' state, the tooltip registers itself with the global tooltip manager.\n * On 'unmounted', the tooltip unregisters from the global tooltip manager.\n */\n useEffect(() => {\n if (state === 'mounted') {\n globalTooltipManager.register(destroyCallback);\n } else if (state === 'unmounted') {\n globalTooltipManager.unregister(destroyCallback);\n // clean up the mousedown handler just in case\n document.removeEventListener('mousedown', mouseDownHandler, true);\n }\n }, [state, destroyCallback, globalTooltipManager, mouseDownHandler]);\n\n /*\n * Set a timer to toggle the state afer the 'pending' period expires\n */\n useEffect(() => {\n if (!toggleTimeoutRef.current && (state === 'mountPending' || state === 'unmountPending')) {\n if (state === 'mountPending') {\n document.addEventListener('mousedown', mouseDownHandler, true);\n }\n toggleTimeoutRef.current = setTimeout(\n () => {\n toggleTimeoutClear();\n // make sure the state has not changed in the mean time before onToggle\n if (\n (state === 'mountPending' || state === 'unmountPending') &&\n state === stateRef.current\n ) {\n onToggle?.({ value: state === 'mountPending' });\n }\n },\n state === 'mountPending' ? showDelay : hideDelay\n );\n }\n return () => {\n toggleTimeoutClear();\n };\n }, [state, showDelay, hideDelay, onToggle, mouseDownHandler]);\n\n const handleMouseMove = (event: MouseEvent) => {\n // we only want track mouse move while the state is 'unmounted' or when moving a 'mounted' datatip\n if (state !== 'unmounted' && !(variant === 'datatip' && state === 'mounted')) {\n return;\n }\n const targetRect = targetRef?.current?.getBoundingClientRect();\n\n // Tooltip maintains static offset from left side of window\n const distanceX = document.body.scrollLeft + (targetRect?.left || 0) + (targetRect?.width || 0);\n\n // Tooltip maintains static offset from top side of the window\n const distanceY = document.body.scrollTop + (targetRect?.top || 0) + (targetRect?.height || 0);\n\n // Display tooltip at the mouse position if both anchors are set to pointer\n const x = anchor.x === 'pointer' ? event.clientX : distanceX;\n const y = anchor.y === 'pointer' ? event.clientY : distanceY;\n\n if (state === 'mounted') {\n coordsRef.current = { x, y };\n if (needsUpdate !== true) setNeedsUpdate(true);\n } else if (state === 'unmounted') {\n toggleTimeoutClear();\n toggleTimeoutRef.current = setTimeout(() => {\n if (state === 'unmounted') {\n coordsRef.current = { x, y };\n onToggle?.({ value: true });\n }\n }, hideDelay);\n }\n };\n\n const onLogicalFocus = (target: HTMLElement) => {\n setLogicalFocus(true);\n targetRef.current = target;\n usedRef.current = target;\n };\n\n const onLogicalBlur = () => {\n setLogicalFocus(false);\n };\n\n const onFocusCallback = useCallback((event: FocusEvent) => {\n targetRef.current = event.currentTarget as HTMLElement;\n }, []);\n\n const onBlurCallback = useCallback((event: FocusEvent) => {\n if (event.eventPhase === Event.AT_TARGET) {\n // reset focusActive flag\n focusActive.current = false;\n }\n }, []);\n\n const focusInitProps = isLogicalFocusStrategy\n ? {}\n : {\n onFocus: onFocusCallback,\n onBlur: onBlurCallback\n };\n\n const hoverInitProps = {\n onMouseEnter: useCallback((event: MouseEvent) => {\n targetRef.current = event.target as HTMLElement;\n }, [])\n };\n\n const keyInitProps = {\n onKeyDown: useCallback(\n (event: KeyboardEvent) => {\n if (event.code === 'Escape' && focusActive.current) {\n event.preventDefault();\n // focus no longer active after Escape\n focusActive.current = false;\n onToggle?.({ value: false });\n }\n },\n [onToggle]\n )\n };\n\n let actionableProps;\n\n const __resetCoords = () => {\n coordsRef.current = { x: -9999, y: -9999 };\n };\n\n if (disabled) {\n actionableProps = mergeProps(hoverProps, focusProps, hoverInitProps, focusInitProps);\n } else {\n const anchorInitProps = {\n 'aria-describedby': uniqueIdRef.current,\n\n ...(isPointer && {\n onMouseLeave: () => {\n if (state === 'mounting') {\n return;\n }\n toggleTimeoutClear();\n },\n onMouseMove: (event: MouseEvent) => {\n handleMouseMove(event);\n }\n })\n };\n actionableProps = mergeProps(\n hoverProps,\n focusProps,\n touchProps,\n hoverInitProps,\n focusInitProps,\n anchorInitProps,\n keyInitProps,\n isLogicalFocusStrategy ? { onLogicalFocus, onLogicalBlur } : {}\n );\n }\n\n // No need to process tooltip if disabled or no text is provided\n // Include actionableProps to detect mouseenter in components\n // hovered state won't update unless actionableProps are already present in the component when mouse enters\n if (disabled) {\n toggleTimeoutClear();\n __resetCoords();\n return {\n tooltipContent: null,\n tooltipProps: actionableProps\n };\n }\n\n const placement = position as Placement;\n\n const handleTransitionEnd = () => {\n if (state === 'mounting') {\n setState('mounted');\n }\n if (state === 'unmounting') {\n __resetCoords();\n setState('unmounted');\n }\n };\n\n const renderRawContent = (\n <TooltipContent\n id={uniqueIdRef.current}\n testId={testId}\n isOpen={['mounting', 'mounted', 'unmountPending'].includes(state)}\n {...popoverHoverProps}\n isDatatip={isDatatip}\n onTransitionEnd={handleTransitionEnd}>\n {text}\n </TooltipContent>\n );\n\n const renderContent = getWrappedTooltipContent(\n renderRawContent,\n variant,\n currentColorScheme,\n usedRef,\n placement,\n offset\n );\n\n return {\n tooltipContent: !['unmounted', 'mountPending'].includes(state) && renderContent,\n tooltipProps: actionableProps\n };\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useState, useCallback } from 'preact/hooks';\nimport { useTooltipControlled } from './useTooltipControlled';\nimport { TestIdProps } from '../UNSAFE_useTestId';\n\ntype tooltipParameters = Parameters<typeof useTooltipControlled>[0];\n\ntype Props = {\n text?: string;\n position?: tooltipParameters['position'];\n isDisabled?: boolean;\n anchor?: tooltipParameters['anchor'];\n offset?: { mainAxis?: number; crossAxis?: number };\n variant?: tooltipParameters['variant'];\n} & TestIdProps;\n\n/**\n * A hook with tooltip implementation.\n * Returns event handlers that can enhance the target element with a tooltip displayed\n * on hover and focus.\n *\n * @param text tooltip text\n * @param position tooltip placement relative to the target element\n * @param isDisabled determines if the tooltip is disabled\n * @param anchor determines if the target is an element or the pointer\n * @param offset offset from the placement\n * @param variant specifies if the rendered popup should have 'tooltip' or 'datatip' look and behavior\n * @returns an object with the 'tooltipContent' and 'tooltipProps' properties.\n */\nexport const useTooltip = ({\n text,\n position = 'bottom',\n isDisabled = false,\n anchor = { x: 'element', y: 'element' },\n offset,\n variant = 'tooltip',\n testId\n}: Props): ReturnType<typeof useTooltipControlled> => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const disabled = isDisabled || !text;\n const onToggleHandler = useCallback((details: { value: boolean }) => {\n setIsOpen(details.value);\n }, []);\n\n const { tooltipContent, tooltipProps } = useTooltipControlled({\n text,\n isOpen,\n position,\n isDisabled: disabled,\n offset,\n anchor,\n variant,\n onToggle: onToggleHandler,\n testId\n });\n\n return {\n tooltipContent,\n tooltipProps\n };\n};\n"],"names":["TooltipContent","children","id","isOpen","isDatatip","onTransitionEnd","testId","props","wrapperRef","useRef","popoverRef","testIdProps","useTestId","baseTheme","variantClasses","styles","useComponentTheme","TooltipContentRedwoodTheme","variant","schemeClass","useThemeInterpolations","nodeRef","useAnimation","animationStates","mounted","_node","childNode","firstChild","from","maxHeight","opacity","to","offsetHeight","options","duration","easing","unmounted","isAnimatedOnMount","onAnimationEnd","useEffect","current","style","height","_jsx","jsx","ref","role","class","classNames","wrapper","inner","content","useTooltipControlled","text","position","focusStrategy","isDisabled","anchor","x","y","offset","onToggle","globalTooltipManager","getGlobalTooltipManager","disabled","isInitialRenderState","state","_setState","useState","stateRef","setState","newState","needsUpdate","setNeedsUpdate","isLogicalFocus","setLogicalFocus","isLogicalFocusStrategy","isInitialRenderTrigger","hoverProps","isHover","useHover","touchProps","isTouch","useTouch","focusProps","isFocus","useFocus","popoverHoverProps","popoverIsHover","isPointer","uniqueIdRef","useId","targetRef","coordsRef","usedRef","showDelay","SHOW_TOOLTIP_DELAY","hideDelay","HIDE_TOOLTIP_DELAY","toggleTimeoutRef","currentColorScheme","useColorScheme","focusActive","hoverActive","toggleTimeoutClear","clearTimeout","isTabKeyActive","open","value","__resetCoords","updateState","destroyCallback","useCallback","mouseDownHandler","event","Element","contains","target","document","removeEventListener","register","unregister","addEventListener","setTimeout","onLogicalFocus","onLogicalBlur","onFocusCallback","currentTarget","onBlurCallback","eventPhase","Event","AT_TARGET","focusInitProps","onFocus","onBlur","hoverInitProps","onMouseEnter","keyInitProps","onKeyDown","code","preventDefault","actionableProps","mergeProps","anchorInitProps","onMouseLeave","onMouseMove","targetRect","getBoundingClientRect","distanceX","body","scrollLeft","left","width","distanceY","scrollTop","top","clientX","clientY","handleMouseMove","tooltipContent","tooltipProps","placement","renderRawContent","includes","renderContent","getWrappedTooltipContent","setIsOpen","onToggleHandler","details"],"mappings":"meAyBaA,EAAiB,EAC5BC,WACAC,KACAC,SACAC,YACAC,kBACAC,YACGC,MAEH,MAAMC,EAAaC,SAAuB,MACpCC,EAAaD,SAAuB,MAEpCE,EAAcC,YAAUN,IAExBO,UAAEA,EAASC,eAAEA,EAAcC,OAAEA,GAAWC,EAAAA,kBAG5CC,EAAAA,2BAA4B,CAC5BC,QAASd,EAAY,UAAY,YAG7Be,EAAcC,EAAAA,0BAEdC,QAAEA,GAAYC,EAAAA,aAAqCnB,EAAS,UAAY,YAAa,CACzFoB,gBAAiB,CACfC,QAAUC,IACR,MAAMC,EAAYD,EAAME,WACxB,MAAO,CACLC,KAAM,CACJC,UAAW,IACXC,QAAS,MAEXC,GAAI,CACFF,UAAW,GAAGH,GAAWM,iBACzBF,QAAS1B,EAAY,OAAS,OAEhC6B,QAAS,CACPC,SAAU9B,EAAY,EAAI,IAC1B+B,OAAQ,CAAC,EAAK,EAAK,GAAK,IAE3B,EAEHC,UAAYX,IACH,CACLG,KAAM,CACJE,QAAS1B,EAAY,OAAS,OAEhC2B,GAAI,CACFF,UAAW,IACXC,QAAS,MAEXG,QAAS,CACPC,SAAU9B,EAAY,EAAI,IAC1B+B,OAAQ,CAAC,EAAK,EAAK,GAAK,OAKhCE,mBAAmB,EACnBC,eAAgB,IAAMjC,QAUxB,OANAkC,EAAAA,WAAU,KACJ/B,EAAWgC,SAAW9B,EAAW8B,SAASR,eAC5CxB,EAAWgC,QAAQC,MAAMC,OAAS,GAAGhC,EAAW8B,SAASR,iBAC1D,GACA,IAGDW,EAAAC,IAAA,MAAA,CACEC,IAAKrC,EACLN,GAAIA,EACJ4C,KAAK,UACLC,MAAOC,EAAAA,WAAW,CAACjC,EAAOkC,QAAS9B,EAAaN,OAC5CF,WACJgC,MAAK,MAAA,CAAAE,IAAKxB,EAAS0B,MAAO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YZ4G,GACJvH,EAAAA,IAAC3C,EACC,CAAAE,GAAIwF,EAAYlD,QAChBlC,OAAQA,EACRH,OAAQ,CAAC,WAAY,UAAW,kBAAkBgK,SAASjG,MACvDqB,EACJnF,UAAWA,EACXC,gBAjBwB,KACZ,aAAV6D,GACFI,EAAS,WAEG,eAAVJ,IACF2C,KACAvC,EAAS,aACV,WAWEjB,IAIC+G,GAAgBC,EAAwBA,yBAC5CH,GACAhJ,EACAkF,EACAN,EACAmE,GACArG,GAGF,MAAO,CACLmG,gBAAiB,CAAC,YAAa,gBAAgBI,SAASjG,IAAUkG,GAClEJ,aAAcnB,GACf,kCClauB,EACxBxF,OACAC,WAAW,SACXE,cAAa,EACbC,SAAS,CAAEC,EAAG,UAAWC,EAAG,WAC5BC,SACA1C,UAAU,UACVZ,aAEA,MAAOH,EAAQmK,GAAalG,EAAQA,UAAU,GACxCJ,EAAWR,IAAeH,EAC1BkH,EAAkBvD,eAAawD,IACnCF,EAAUE,EAAQ5D,MAAM,GACvB,KAEGmD,eAAEA,EAAcC,aAAEA,GAAiB5G,EAAqB,CAC5DC,OACAlD,SACAmD,WACAE,WAAYQ,EACZJ,SACAH,SACAvC,UACA2C,SAAU0G,EACVjK,WAGF,MAAO,CACLyJ,iBACAC,eACD"}
@@ -1,2 +1,2 @@
1
- define(['exports', './useDetectTruncation-dc12ec23', './useTooltip-f7c1ad5c', 'preact/jsx-runtime', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-1b4d03f0', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-304eef18'], (function(t,e,o,s,n,i,r,c,p,a,l,u,T){"use strict";t.useTooltipOnTruncation=(t,s=!1)=>{const{detectTruncationProps:n,isTextTruncated:r}=e.useDetectTruncation(s),{tooltipContent:c,tooltipProps:p}=o.useTooltip({text:t,isDisabled:!r||s}),{"aria-describedby":a,...l}=p;return{tooltipOnTruncationProps:i.mergeProps(n,l),tooltipContent:c,isTextTruncated:r}}}));
2
- //# sourceMappingURL=useTooltipOnTruncation-7a2a7106.js.map
1
+ define(['exports', './useDetectTruncation-dc12ec23', './useTooltip-c10bcc4e', 'preact/jsx-runtime', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-a36b1781', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-cf586837'], (function(t,o,e,s,n,i,r,c,p,a,l,u,T){"use strict";t.useTooltipOnTruncation=(t,s=!1)=>{const{detectTruncationProps:n,isTextTruncated:r}=o.useDetectTruncation(s),{tooltipContent:c,tooltipProps:p}=e.useTooltip({text:t,isDisabled:!r||s}),{"aria-describedby":a,...l}=p;return{tooltipOnTruncationProps:i.mergeProps(n,l),tooltipContent:c,isTextTruncated:r}}}));
2
+ //# sourceMappingURL=useTooltipOnTruncation-a913ba8a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTooltipOnTruncation-7a2a7106.js","sources":["../../src/hooks/PRIVATE_useTooltipOnTruncation/useTooltipOnTruncation.tsx"],"sourcesContent":["import { useDetectTruncation } from '#hooks/PRIVATE_useDetectTruncation';\nimport { useTooltip } from '#hooks/UNSAFE_useTooltip';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\nconst useTooltipOnTruncation = (tooltipText?: string, isDisabled = false) => {\n const { detectTruncationProps, isTextTruncated } = useDetectTruncation(isDisabled);\n const { tooltipContent, tooltipProps } = useTooltip({\n text: tooltipText,\n isDisabled: !isTextTruncated || isDisabled\n });\n\n const { 'aria-describedby': notNeeded, ...validTooltipProps } = tooltipProps; //remove aria-describedby to prevent screen readers from reading the same text multiple times\n\n const tooltipOnTruncationProps = mergeProps(detectTruncationProps, validTooltipProps);\n\n return { tooltipOnTruncationProps, tooltipContent, isTextTruncated };\n};\n\nexport { useTooltipOnTruncation };\n"],"names":["tooltipText","isDisabled","detectTruncationProps","isTextTruncated","useDetectTruncation","tooltipContent","tooltipProps","useTooltip","text","notNeeded","validTooltipProps","tooltipOnTruncationProps","mergeProps"],"mappings":"geAI+B,CAACA,EAAsBC,GAAa,KACjE,MAAMC,sBAAEA,EAAqBC,gBAAEA,GAAoBC,EAAmBA,oBAACH,IACjEI,eAAEA,EAAcC,aAAEA,GAAiBC,aAAW,CAClDC,KAAMR,EACNC,YAAaE,GAAmBF,KAG1B,mBAAoBQ,KAAcC,GAAsBJ,EAIhE,MAAO,CAAEK,yBAFwBC,EAAAA,WAAWV,EAAuBQ,GAEhCL,iBAAgBF,kBAAiB"}
1
+ {"version":3,"file":"useTooltipOnTruncation-a913ba8a.js","sources":["../../src/hooks/PRIVATE_useTooltipOnTruncation/useTooltipOnTruncation.tsx"],"sourcesContent":["import { useDetectTruncation } from '#hooks/PRIVATE_useDetectTruncation';\nimport { useTooltip } from '#hooks/UNSAFE_useTooltip';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\nconst useTooltipOnTruncation = (tooltipText?: string, isDisabled = false) => {\n const { detectTruncationProps, isTextTruncated } = useDetectTruncation(isDisabled);\n const { tooltipContent, tooltipProps } = useTooltip({\n text: tooltipText,\n isDisabled: !isTextTruncated || isDisabled\n });\n\n const { 'aria-describedby': notNeeded, ...validTooltipProps } = tooltipProps; //remove aria-describedby to prevent screen readers from reading the same text multiple times\n\n const tooltipOnTruncationProps = mergeProps(detectTruncationProps, validTooltipProps);\n\n return { tooltipOnTruncationProps, tooltipContent, isTextTruncated };\n};\n\nexport { useTooltipOnTruncation };\n"],"names":["tooltipText","isDisabled","detectTruncationProps","isTextTruncated","useDetectTruncation","tooltipContent","tooltipProps","useTooltip","text","notNeeded","validTooltipProps","tooltipOnTruncationProps","mergeProps"],"mappings":"geAI+B,CAACA,EAAsBC,GAAa,KACjE,MAAMC,sBAAEA,EAAqBC,gBAAEA,GAAoBC,EAAmBA,oBAACH,IACjEI,eAAEA,EAAcC,aAAEA,GAAiBC,aAAW,CAClDC,KAAMR,EACNC,YAAaE,GAAmBF,KAG1B,mBAAoBQ,KAAcC,GAAsBJ,EAIhE,MAAO,CAAEK,yBAFwBC,EAAAA,WAAWV,EAAuBQ,GAEhCL,iBAAgBF,kBAAiB"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', './LayerHost-1b4d03f0', 'preact/jsx-runtime', 'preact/compat'], (function(t,n,e,o,r){"use strict";t.useTranslationBundle=function(t){const o=n.useContext(e.EnvironmentContext).translations,r=o?.[t];if(!r)throw new Error(`Translation bundle ${t} is not loaded.`);return r}}));
2
- //# sourceMappingURL=useTranslationBundle-652e08a6.js.map
1
+ define(['exports', 'preact/hooks', './LayerHost-a36b1781', 'preact/jsx-runtime', 'preact/compat'], (function(t,n,e,o,r){"use strict";t.useTranslationBundle=function(t){const o=n.useContext(e.EnvironmentContext).translations,r=o?.[t];if(!r)throw new Error(`Translation bundle ${t} is not loaded.`);return r}}));
2
+ //# sourceMappingURL=useTranslationBundle-33399171.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTranslationBundle-652e08a6.js","sources":["../../src/hooks/UNSAFE_useTranslationBundle/useTranslationBundle.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';\nimport type { TranslationBundle } from '../../UNSAFE_Environment';\n\n/**\n * useTranslationBundle is a hook to get a translation bundle from the EnvironmentProvider\n * @param bundleId\n * @returns a translation bundle of type T\n */\nexport function useTranslationBundle<T extends TranslationBundle>(bundleId: string) {\n const translations = useContext(EnvironmentContext).translations;\n const bundle = translations?.[bundleId];\n if (!bundle) {\n throw new Error(`Translation bundle ${bundleId} is not loaded.`);\n }\n return bundle as T;\n}\n"],"names":["bundleId","translations","useContext","EnvironmentContext","bundle","Error"],"mappings":"uJAgBM,SAA4DA,GAChE,MAAMC,EAAeC,EAAAA,WAAWC,EAAkBA,oBAAEF,aAC9CG,EAASH,IAAeD,GAC9B,IAAKI,EACH,MAAM,IAAIC,MAAM,sBAAsBL,oBAExC,OAAOI,CACT"}
1
+ {"version":3,"file":"useTranslationBundle-33399171.js","sources":["../../src/hooks/UNSAFE_useTranslationBundle/useTranslationBundle.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';\nimport type { TranslationBundle } from '../../UNSAFE_Environment';\n\n/**\n * useTranslationBundle is a hook to get a translation bundle from the EnvironmentProvider\n * @param bundleId\n * @returns a translation bundle of type T\n */\nexport function useTranslationBundle<T extends TranslationBundle>(bundleId: string) {\n const translations = useContext(EnvironmentContext).translations;\n const bundle = translations?.[bundleId];\n if (!bundle) {\n throw new Error(`Translation bundle ${bundleId} is not loaded.`);\n }\n return bundle as T;\n}\n"],"names":["bundleId","translations","useContext","EnvironmentContext","bundle","Error"],"mappings":"uJAgBM,SAA4DA,GAChE,MAAMC,EAAeC,EAAAA,WAAWC,EAAkBA,oBAAEF,aAC9CG,EAASH,IAAeD,GAC9B,IAAKI,EACH,MAAM,IAAIC,MAAM,sBAAsBL,oBAExC,OAAOI,CACT"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', './LayerHost-1b4d03f0', 'preact/jsx-runtime', 'preact/compat'], (function(e,t,n,r,o){"use strict";e.useUser=function(){return t.useContext(n.EnvironmentContext).user}}));
2
- //# sourceMappingURL=useUser-abae2493.js.map
1
+ define(['exports', 'preact/hooks', './LayerHost-a36b1781', 'preact/jsx-runtime', 'preact/compat'], (function(e,t,n,r,o){"use strict";e.useUser=function(){return t.useContext(n.EnvironmentContext).user}}));
2
+ //# sourceMappingURL=useUser-33136570.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUser-abae2493.js","sources":["../../src/hooks/UNSAFE_useUser/useUser.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 useUser() {\n return useContext(EnvironmentContext).user;\n}\n"],"names":["useContext","EnvironmentContext","user"],"mappings":"qJAWE,OAAOA,EAAUA,WAACC,sBAAoBC,IACxC"}
1
+ {"version":3,"file":"useUser-33136570.js","sources":["../../src/hooks/UNSAFE_useUser/useUser.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 useUser() {\n return useContext(EnvironmentContext).user;\n}\n"],"names":["useContext","EnvironmentContext","user"],"mappings":"qJAWE,OAAOA,EAAUA,WAACC,sBAAoBC,IACxC"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Button-9428dee3', './Move-77ae95a8', './hooks/PRIVATE_useVisDragModeControls/themes/useVisDragModeControls.css', './useTranslationBundle-652e08a6', './ZoomAlt-d74a4e7a', './ButtonSetSingle-8a74be2a', './ButtonSetItem-f4d199bd', './IconToggleButton-e6c77f31'], (function(e,o,t,n,s,l,a,i,u,r,c){"use strict";function d({position:e,divRef:t,dragMode:d,onDragModeChange:g,showZoomButton:v,showPanButton:m,showSelectButton:p}){const{right:B,left:h,top:x,bottom:S}=e,j=m&&!p&&!v||!m&&!p&&v||!m&&p&&!v,f=a.useTranslationBundle("@oracle/oraclejet-preact"),b=f.vis_marqueeZoomTooltip(),M=f.vis_panTooltip(),T=f.vis_marqueeSelectTooltip();return v||m||p?o.jsx("div",{ref:t,class:l.styles.background,"data-oj-private-object":"dragModeControls",style:{right:B,left:h,top:x,bottom:S},children:j?o.jsxs(o.Fragment,{children:[m&&o.jsx(c.IconToggleButton,{accessibleLabel:M,isSelected:"pan"===d,onToggle:()=>{g("pan"===d?void 0:"pan")},variant:"outlined",size:"sm",children:o.jsx(s.SvgMove,{})}),v&&o.jsx(c.IconToggleButton,{accessibleLabel:b,isSelected:"zoom"===d,onToggle:()=>{g("zoom"===d?void 0:"zoom")},variant:"outlined",size:"sm",children:o.jsx(i.SvgZoomAlt,{})}),p&&o.jsx(c.IconToggleButton,{accessibleLabel:T,isSelected:"select"===d,onToggle:()=>{g("select"===d?void 0:"select")},variant:"outlined",size:"sm",children:o.jsx(n.SvgButton,{})})]}):o.jsxs(u.ButtonSetSingle,{size:"sm",value:d,onCommit:({value:e})=>{g(e===d?void 0:e)},display:"icons",variant:"outlined",children:[m&&o.jsx(r.ButtonSetItem,{value:"pan",label:M,startIcon:o.jsx(s.SvgMove,{})}),v&&o.jsx(r.ButtonSetItem,{value:"zoom",label:b,startIcon:o.jsx(i.SvgZoomAlt,{})}),p&&o.jsx(r.ButtonSetItem,{value:"select",label:T,startIcon:o.jsx(n.SvgButton,{})})]})}):null}e.useVisDragModeControls=function({componentWidth:e,plotAreaSpace:n,isRtl:s,showPanButton:l,showZoomButton:a,showSelectButton:i,isDisabled:u=!1,dragMode:r}){const c=t.useRef(null),g=t.useRef(r),v=t.useRef(!0);t.useEffect((()=>{v.current=!1}),[]);const[m,p]=t.useState(),B=function(e,o,t,n){return!o||"pan"!==e&&"user"!==e?t&&"zoom"===e?"zoom":n&&"select"===e?"select":void 0:"pan"}(r,l,a,i);return(g.current!=r||v.current)&&(g.current=r,p(B)),{dragButtonDivRef:c,toggleButtonContent:u?void 0:o.jsx(d,{position:{top:`${n.y}px`,right:s?void 0:e-n.x-n.width+"px",left:s?`${n.x}px`:void 0},divRef:c,showSelectButton:i,showZoomButton:a,showPanButton:l,dragMode:m,onDragModeChange:p}),userDragMode:m}}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Button-9428dee3', './Move-77ae95a8', './hooks/PRIVATE_useVisDragModeControls/themes/useVisDragModeControls.css', './useTranslationBundle-33399171', './ZoomAlt-d74a4e7a', './ButtonSetSingle-8a74be2a', './ButtonSetItem-f4d199bd', './IconToggleButton-e6c77f31'], (function(e,o,t,n,s,l,a,i,u,r,c){"use strict";function d({position:e,divRef:t,dragMode:d,onDragModeChange:g,showZoomButton:v,showPanButton:m,showSelectButton:p}){const{right:B,left:h,top:x,bottom:S}=e,j=m&&!p&&!v||!m&&!p&&v||!m&&p&&!v,f=a.useTranslationBundle("@oracle/oraclejet-preact"),b=f.vis_marqueeZoomTooltip(),M=f.vis_panTooltip(),T=f.vis_marqueeSelectTooltip();return v||m||p?o.jsx("div",{ref:t,class:l.styles.background,"data-oj-private-object":"dragModeControls",style:{right:B,left:h,top:x,bottom:S},children:j?o.jsxs(o.Fragment,{children:[m&&o.jsx(c.IconToggleButton,{accessibleLabel:M,isSelected:"pan"===d,onToggle:()=>{g("pan"===d?void 0:"pan")},variant:"outlined",size:"sm",children:o.jsx(s.SvgMove,{})}),v&&o.jsx(c.IconToggleButton,{accessibleLabel:b,isSelected:"zoom"===d,onToggle:()=>{g("zoom"===d?void 0:"zoom")},variant:"outlined",size:"sm",children:o.jsx(i.SvgZoomAlt,{})}),p&&o.jsx(c.IconToggleButton,{accessibleLabel:T,isSelected:"select"===d,onToggle:()=>{g("select"===d?void 0:"select")},variant:"outlined",size:"sm",children:o.jsx(n.SvgButton,{})})]}):o.jsxs(u.ButtonSetSingle,{size:"sm",value:d,onCommit:({value:e})=>{g(e===d?void 0:e)},display:"icons",variant:"outlined",children:[m&&o.jsx(r.ButtonSetItem,{value:"pan",label:M,startIcon:o.jsx(s.SvgMove,{})}),v&&o.jsx(r.ButtonSetItem,{value:"zoom",label:b,startIcon:o.jsx(i.SvgZoomAlt,{})}),p&&o.jsx(r.ButtonSetItem,{value:"select",label:T,startIcon:o.jsx(n.SvgButton,{})})]})}):null}e.useVisDragModeControls=function({componentWidth:e,plotAreaSpace:n,isRtl:s,showPanButton:l,showZoomButton:a,showSelectButton:i,isDisabled:u=!1,dragMode:r}){const c=t.useRef(null),g=t.useRef(r),v=t.useRef(!0);t.useEffect((()=>{v.current=!1}),[]);const[m,p]=t.useState(),B=function(e,o,t,n){return!o||"pan"!==e&&"user"!==e?t&&"zoom"===e?"zoom":n&&"select"===e?"select":void 0:"pan"}(r,l,a,i);return(g.current!=r||v.current)&&(g.current=r,p(B)),{dragButtonDivRef:c,toggleButtonContent:u?void 0:o.jsx(d,{position:{top:`${n.y}px`,right:s?void 0:e-n.x-n.width+"px",left:s?`${n.x}px`:void 0},divRef:c,showSelectButton:i,showZoomButton:a,showPanButton:l,dragMode:m,onDragModeChange:p}),userDragMode:m}}}));
2
2
  //# sourceMappingURL=useVisDragModeControls-120076e9.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/hooks', './useUser-abae2493', './layoutUtils-ba7693df', './eventsUtils-edf8f4e5', './useVisHover-28319fef', './mergeProps-bcfa6a92'], (function(e,t,n,r,s,o,c){"use strict";e.useVisEvent=function(e,i,u,a,d,f,v,I,l,b,m,g,p,C){const k=t.useRef(),[w,U]=t.useState(p),[R,V]=t.useState(),h=o.useVisHover((e=>{const t=g(e.target);m(t,R)||(V(t&&{...t,isCurrent:!0}),k.current=r.getRandomId(),i&&(w&&U({...w,isCurrent:!1}),l?.(d(t))))}),void 0,(()=>{V(void 0),k.current=void 0,i&&l?.(d())}),e),{direction:y}=n.useUser(),A="rtl"===y;if(!i)return{isInteractive:!1,focusedItemInfo:w,hoveredItemInfo:R,eventsProps:h};const E=e=>{b?.(d(e)),k.current=r.getRandomId(),U(e)},P=e=>{m(e,w)||(e.isCurrent=!0,e.isFocusVisible=!0,R&&V({...R,isCurrent:!1}),E(e))},D=()=>{const e=d(w);e&&e.data&&u(w)&&(I?.(e),k.current=r.getRandomId())},F=a(D,E,w,C);return{isInteractive:!0,focusedItemInfo:w,hoveredItemInfo:R,activeId:k.current,triggerOnAction:D,updatefocusedItemInfo:E,onContextMenuDismissed:e=>{"keyboard"===e&&E({...w,isCurrent:!0,isFocusVisible:!0})},eventsProps:c.mergeProps(h,{onPointerUp:e=>{const t=g(e.target);if(null!=t&&u(t)){U(t);const e=d(t);e&&u(t)&&(I?.(e),k.current=r.getRandomId())}},onKeyUp:F,onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":{const t=v(w);P(t),s.cancelEvent(e);break}case"ArrowUp":{const t=f(w);P(t),s.cancelEvent(e);break}case"ArrowRight":{const t=A?f(w):v(w);P(t),s.cancelEvent(e);break}case"ArrowLeft":{const t=A?v(w):f(w);P(t),s.cancelEvent(e);break}}},onBlur:()=>{const e={...w,isCurrent:!1,isFocusVisible:!1};(null!=R||w.isCurrent)&&b?.(d(void 0)),U(e)}})}}}));
2
- //# sourceMappingURL=useVisEvents-a2e7394b.js.map
1
+ define(['exports', 'preact/hooks', './useUser-33136570', './layoutUtils-ba7693df', './eventsUtils-edf8f4e5', './useVisHover-28319fef', './mergeProps-bcfa6a92'], (function(e,t,n,r,s,o,c){"use strict";e.useVisEvent=function(e,i,u,a,d,f,v,I,l,m,b,g,p,C){const k=t.useRef(),[w,U]=t.useState(p),[R,V]=t.useState(),h=o.useVisHover((e=>{const t=g(e.target);b(t,R)||(V(t&&{...t,isCurrent:!0}),k.current=r.getRandomId(),i&&(w&&U({...w,isCurrent:!1}),l?.(d(t))))}),void 0,(()=>{V(void 0),k.current=void 0,i&&l?.(d())}),e),{direction:y}=n.useUser(),A="rtl"===y;if(!i)return{isInteractive:!1,focusedItemInfo:w,hoveredItemInfo:R,eventsProps:h};const E=e=>{m?.(d(e)),k.current=r.getRandomId(),U(e)},P=e=>{b(e,w)||(e.isCurrent=!0,e.isFocusVisible=!0,R&&V({...R,isCurrent:!1}),E(e))},D=()=>{const e=d(w);e&&e.data&&u(w)&&(I?.(e),k.current=r.getRandomId())},F=a(D,E,w,C);return{isInteractive:!0,focusedItemInfo:w,hoveredItemInfo:R,activeId:k.current,triggerOnAction:D,updatefocusedItemInfo:E,onContextMenuDismissed:e=>{"keyboard"===e&&E({...w,isCurrent:!0,isFocusVisible:!0})},eventsProps:c.mergeProps(h,{onPointerUp:e=>{const t=g(e.target);if(null!=t&&u(t)){U(t);const e=d(t);e&&u(t)&&(I?.(e),k.current=r.getRandomId())}},onKeyUp:F,onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":{const t=v(w);P(t),s.cancelEvent(e);break}case"ArrowUp":{const t=f(w);P(t),s.cancelEvent(e);break}case"ArrowRight":{const t=A?f(w):v(w);P(t),s.cancelEvent(e);break}case"ArrowLeft":{const t=A?v(w):f(w);P(t),s.cancelEvent(e);break}}},onBlur:()=>{const e={...w,isCurrent:!1,isFocusVisible:!1};(null!=R||w.isCurrent)&&m?.(d(void 0)),U(e)}})}}}));
2
+ //# sourceMappingURL=useVisEvents-bc470edf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useVisEvents-a2e7394b.js","sources":["../../src/hooks/PRIVATE_useVisEvents/useVisEvents.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, useState } from 'preact/hooks';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport type { gestureTypes } from '#hooks/PRIVATE_useVisContextMenu';\nimport { getRandomId } from '#utils/PRIVATE_visLayoutUtils/layoutUtils';\nimport { cancelEvent } from '#utils/UNSAFE_visUtils/eventsUtils';\nimport { useVisHover } from '#hooks/PRIVATE_useVisHover';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\ntype ItemInfo = { isCurrent?: boolean; isFocusVisible?: boolean };\n\ntype EventDetail<D> = { data?: D };\n\nexport function useVisEvent<\n I extends ItemInfo,\n J extends EventDetail<D>,\n L extends EventDetail<D>,\n D\n>(\n touchResponse: 'touchStart' | 'touchHold',\n isInteractive: boolean,\n isItemActionable: (itemInfo: I) => boolean,\n getKeyUpHandler: (\n triggerOnAction: () => void,\n updatefocusedItemInfo: (itemInfo: I) => void,\n focusedItemInfo: I,\n isHideShow?: boolean\n ) => (event: KeyboardEvent) => void,\n getDetailFromInfo: (info?: I) => J | L,\n getPrevItemInfo: (info: I) => I,\n getNextItemInfo: (info: I) => I,\n onItemAction: ((detail: J) => void) | undefined,\n onItemHover: ((detail: L) => void) | undefined,\n onItemFocus: ((detail: L) => void) | undefined,\n isEqualItem: (item1?: I, item2?: I) => boolean,\n getItemInfo: (element: HTMLElement) => I | undefined,\n initItemInfo: I,\n isHideShow?: boolean\n) {\n const activeIdRef = useRef<string>();\n\n const [focusedItemInfo, setfocusedItemInfo] = useState<I>(initItemInfo);\n const [hoveredItemInfo, sethoveredItemInfo] = useState<I>();\n\n const onHover = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (!isEqualItem(itemInfo, hoveredItemInfo)) {\n sethoveredItemInfo(itemInfo && { ...itemInfo, isCurrent: true });\n activeIdRef.current = getRandomId();\n if (isInteractive) {\n focusedItemInfo ? setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false }) : '';\n onItemHover?.(getDetailFromInfo(itemInfo) as L);\n }\n }\n };\n\n const onHoverLeave = () => {\n sethoveredItemInfo(undefined);\n activeIdRef.current = undefined;\n if (isInteractive) {\n onItemHover?.(getDetailFromInfo() as L);\n }\n };\n\n const hoverHandlers = useVisHover(onHover, undefined, onHoverLeave, touchResponse);\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n if (!isInteractive) {\n return {\n isInteractive: false,\n focusedItemInfo,\n hoveredItemInfo,\n // include relevant hover handlers for datatip\n eventsProps: hoverHandlers\n };\n }\n\n const updatefocusedItemInfo = (itemInfo: I) => {\n onItemFocus?.(getDetailFromInfo(itemInfo) as L);\n activeIdRef.current = getRandomId();\n setfocusedItemInfo(itemInfo);\n };\n\n const handleKeyboardInput = (item: I) => {\n if (!isEqualItem(item, focusedItemInfo)) {\n item.isCurrent = true;\n item.isFocusVisible = true;\n if (hoveredItemInfo) {\n sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });\n }\n updatefocusedItemInfo(item);\n }\n };\n\n const triggerOnAction = () => {\n const detail = getDetailFromInfo(focusedItemInfo) as J;\n if (detail && detail.data && isItemActionable(focusedItemInfo)) {\n onItemAction?.(detail);\n activeIdRef.current = getRandomId();\n }\n };\n\n const onPointerUp = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (itemInfo != null && isItemActionable(itemInfo)) {\n setfocusedItemInfo(itemInfo);\n const detail = getDetailFromInfo(itemInfo);\n if (detail && isItemActionable(itemInfo)) {\n onItemAction?.(detail as J);\n activeIdRef.current = getRandomId();\n }\n }\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n const key = event.key;\n switch (key) {\n case 'Tab':\n return;\n case 'ArrowDown': {\n const nextItemInfo = getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowUp': {\n const nextItemInfo = getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowRight': {\n const nextItemInfo = isRtl\n ? getPrevItemInfo(focusedItemInfo)\n : getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowLeft': {\n const nextItemInfo = isRtl\n ? getNextItemInfo(focusedItemInfo)\n : getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n }\n };\n\n const onKeyUp = getKeyUpHandler(\n triggerOnAction,\n updatefocusedItemInfo,\n focusedItemInfo,\n isHideShow\n );\n\n const onContextMenuDismissed = (gesture: gestureTypes) => {\n if (gesture === 'keyboard') {\n updatefocusedItemInfo({\n ...focusedItemInfo,\n isCurrent: true,\n isFocusVisible: true\n });\n }\n };\n\n const onBlur = () => {\n const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false } as I;\n if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {\n onItemFocus?.(getDetailFromInfo(undefined) as L);\n }\n setfocusedItemInfo(itemInfo);\n };\n\n return {\n isInteractive: true,\n focusedItemInfo,\n hoveredItemInfo,\n activeId: activeIdRef.current,\n triggerOnAction,\n updatefocusedItemInfo,\n onContextMenuDismissed,\n eventsProps: mergeProps(hoverHandlers, {\n onPointerUp,\n onKeyUp,\n onKeyDown,\n onBlur\n })\n };\n}\n"],"names":["touchResponse","isInteractive","isItemActionable","getKeyUpHandler","getDetailFromInfo","getPrevItemInfo","getNextItemInfo","onItemAction","onItemHover","onItemFocus","isEqualItem","getItemInfo","initItemInfo","isHideShow","activeIdRef","useRef","focusedItemInfo","setfocusedItemInfo","useState","hoveredItemInfo","sethoveredItemInfo","hoverHandlers","useVisHover","event","itemInfo","target","isCurrent","current","getRandomId","undefined","direction","useUser","isRtl","eventsProps","updatefocusedItemInfo","handleKeyboardInput","item","isFocusVisible","triggerOnAction","detail","data","onKeyUp","activeId","onContextMenuDismissed","gesture","mergeProps","onPointerUp","onKeyDown","key","nextItemInfo","cancelEvent","onBlur"],"mappings":"8MAoBgB,SAMdA,EACAC,EACAC,EACAC,EAMAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAcC,EAAAA,UAEbC,EAAiBC,GAAsBC,EAAQA,SAAIN,IACnDO,EAAiBC,GAAsBF,EAAQA,WAsBhDG,EAAgBC,EAAAA,aApBLC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7BjB,IAAegC,GACfzB,EAAYa,QAAUC,EAAAA,cAEzB,GA0ECa,UACAM,UAxEexB,IAEjB,OADYA,EAAMyB,KAEhB,IAAK,MACH,OACF,IAAK,YAAa,CAChB,MAAMC,EAAe3C,EAAgBU,GACrCmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,CACD,IAAK,UAAW,CACd,MAAM0B,EAAe5C,EAAgBW,GACrCmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,CACD,IAAK,aAAc,CACjB,MAAM0B,EAAejB,EACjB3B,EAAgBW,GAChBV,EAAgBU,GACpBmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,CACD,IAAK,YAAa,CAChB,MAAM0B,EAAejB,EACjB1B,EAAgBU,GAChBX,EAAgBW,GACpBmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,EACF,EAwCC4B,OApBW,KACb,MAAM3B,EAAW,IAAKR,EAAiBU,WAAW,EAAOW,gBAAgB,IAClD,MAAnBlB,GAA2BH,EAAgBU,YAC7CjB,IAAcL,OAAkByB,IAElCZ,EAAmBO,EAAS,IAkBhC"}
1
+ {"version":3,"file":"useVisEvents-bc470edf.js","sources":["../../src/hooks/PRIVATE_useVisEvents/useVisEvents.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, useState } from 'preact/hooks';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport type { gestureTypes } from '#hooks/PRIVATE_useVisContextMenu';\nimport { getRandomId } from '#utils/PRIVATE_visLayoutUtils/layoutUtils';\nimport { cancelEvent } from '#utils/UNSAFE_visUtils/eventsUtils';\nimport { useVisHover } from '#hooks/PRIVATE_useVisHover';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\ntype ItemInfo = { isCurrent?: boolean; isFocusVisible?: boolean };\n\ntype EventDetail<D> = { data?: D };\n\nexport function useVisEvent<\n I extends ItemInfo,\n J extends EventDetail<D>,\n L extends EventDetail<D>,\n D\n>(\n touchResponse: 'touchStart' | 'touchHold',\n isInteractive: boolean,\n isItemActionable: (itemInfo: I) => boolean,\n getKeyUpHandler: (\n triggerOnAction: () => void,\n updatefocusedItemInfo: (itemInfo: I) => void,\n focusedItemInfo: I,\n isHideShow?: boolean\n ) => (event: KeyboardEvent) => void,\n getDetailFromInfo: (info?: I) => J | L,\n getPrevItemInfo: (info: I) => I,\n getNextItemInfo: (info: I) => I,\n onItemAction: ((detail: J) => void) | undefined,\n onItemHover: ((detail: L) => void) | undefined,\n onItemFocus: ((detail: L) => void) | undefined,\n isEqualItem: (item1?: I, item2?: I) => boolean,\n getItemInfo: (element: HTMLElement) => I | undefined,\n initItemInfo: I,\n isHideShow?: boolean\n) {\n const activeIdRef = useRef<string>();\n\n const [focusedItemInfo, setfocusedItemInfo] = useState<I>(initItemInfo);\n const [hoveredItemInfo, sethoveredItemInfo] = useState<I>();\n\n const onHover = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (!isEqualItem(itemInfo, hoveredItemInfo)) {\n sethoveredItemInfo(itemInfo && { ...itemInfo, isCurrent: true });\n activeIdRef.current = getRandomId();\n if (isInteractive) {\n focusedItemInfo ? setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false }) : '';\n onItemHover?.(getDetailFromInfo(itemInfo) as L);\n }\n }\n };\n\n const onHoverLeave = () => {\n sethoveredItemInfo(undefined);\n activeIdRef.current = undefined;\n if (isInteractive) {\n onItemHover?.(getDetailFromInfo() as L);\n }\n };\n\n const hoverHandlers = useVisHover(onHover, undefined, onHoverLeave, touchResponse);\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n if (!isInteractive) {\n return {\n isInteractive: false,\n focusedItemInfo,\n hoveredItemInfo,\n // include relevant hover handlers for datatip\n eventsProps: hoverHandlers\n };\n }\n\n const updatefocusedItemInfo = (itemInfo: I) => {\n onItemFocus?.(getDetailFromInfo(itemInfo) as L);\n activeIdRef.current = getRandomId();\n setfocusedItemInfo(itemInfo);\n };\n\n const handleKeyboardInput = (item: I) => {\n if (!isEqualItem(item, focusedItemInfo)) {\n item.isCurrent = true;\n item.isFocusVisible = true;\n if (hoveredItemInfo) {\n sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });\n }\n updatefocusedItemInfo(item);\n }\n };\n\n const triggerOnAction = () => {\n const detail = getDetailFromInfo(focusedItemInfo) as J;\n if (detail && detail.data && isItemActionable(focusedItemInfo)) {\n onItemAction?.(detail);\n activeIdRef.current = getRandomId();\n }\n };\n\n const onPointerUp = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (itemInfo != null && isItemActionable(itemInfo)) {\n setfocusedItemInfo(itemInfo);\n const detail = getDetailFromInfo(itemInfo);\n if (detail && isItemActionable(itemInfo)) {\n onItemAction?.(detail as J);\n activeIdRef.current = getRandomId();\n }\n }\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n const key = event.key;\n switch (key) {\n case 'Tab':\n return;\n case 'ArrowDown': {\n const nextItemInfo = getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowUp': {\n const nextItemInfo = getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowRight': {\n const nextItemInfo = isRtl\n ? getPrevItemInfo(focusedItemInfo)\n : getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowLeft': {\n const nextItemInfo = isRtl\n ? getNextItemInfo(focusedItemInfo)\n : getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n }\n };\n\n const onKeyUp = getKeyUpHandler(\n triggerOnAction,\n updatefocusedItemInfo,\n focusedItemInfo,\n isHideShow\n );\n\n const onContextMenuDismissed = (gesture: gestureTypes) => {\n if (gesture === 'keyboard') {\n updatefocusedItemInfo({\n ...focusedItemInfo,\n isCurrent: true,\n isFocusVisible: true\n });\n }\n };\n\n const onBlur = () => {\n const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false } as I;\n if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {\n onItemFocus?.(getDetailFromInfo(undefined) as L);\n }\n setfocusedItemInfo(itemInfo);\n };\n\n return {\n isInteractive: true,\n focusedItemInfo,\n hoveredItemInfo,\n activeId: activeIdRef.current,\n triggerOnAction,\n updatefocusedItemInfo,\n onContextMenuDismissed,\n eventsProps: mergeProps(hoverHandlers, {\n onPointerUp,\n onKeyUp,\n onKeyDown,\n onBlur\n })\n };\n}\n"],"names":["touchResponse","isInteractive","isItemActionable","getKeyUpHandler","getDetailFromInfo","getPrevItemInfo","getNextItemInfo","onItemAction","onItemHover","onItemFocus","isEqualItem","getItemInfo","initItemInfo","isHideShow","activeIdRef","useRef","focusedItemInfo","setfocusedItemInfo","useState","hoveredItemInfo","sethoveredItemInfo","hoverHandlers","useVisHover","event","itemInfo","target","isCurrent","current","getRandomId","undefined","direction","useUser","isRtl","eventsProps","updatefocusedItemInfo","handleKeyboardInput","item","isFocusVisible","triggerOnAction","detail","data","onKeyUp","activeId","onContextMenuDismissed","gesture","mergeProps","onPointerUp","onKeyDown","key","nextItemInfo","cancelEvent","onBlur"],"mappings":"8MAoBgB,SAMdA,EACAC,EACAC,EACAC,EAMAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAcC,EAAAA,UAEbC,EAAiBC,GAAsBC,EAAQA,SAAIN,IACnDO,EAAiBC,GAAsBF,EAAQA,WAsBhDG,EAAgBC,EAAAA,aApBLC,IACf,MAAMC,EAAWb,EAAYY,EAAME,QAC9Bf,EAAYc,EAAUL,KACzB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,UAxEexB,IAEjB,OADYA,EAAMyB,KAEhB,IAAK,MACH,OACF,IAAK,YAAa,CAChB,MAAMC,EAAe3C,EAAgBU,GACrCmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,CACD,IAAK,UAAW,CACd,MAAM0B,EAAe5C,EAAgBW,GACrCmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,CACD,IAAK,aAAc,CACjB,MAAM0B,EAAejB,EACjB3B,EAAgBW,GAChBV,EAAgBU,GACpBmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,CACD,IAAK,YAAa,CAChB,MAAM0B,EAAejB,EACjB1B,EAAgBU,GAChBX,EAAgBW,GACpBmB,EAAoBc,GACpBC,EAAWA,YAAC3B,GACZ,KACD,EACF,EAwCC4B,OApBW,KACb,MAAM3B,EAAW,IAAKR,EAAiBU,WAAW,EAAOW,gBAAgB,IAClD,MAAnBlB,GAA2BH,EAAgBU,YAC7CjB,IAAcL,OAAkByB,IAElCZ,EAAmBO,EAAS,IAkBhC"}
@@ -1,2 +1,2 @@
1
- define(['exports', '../tooltipUtils-304eef18', 'preact/jsx-runtime', '../LayerHost-1b4d03f0', 'preact', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', 'preact/compat', '../EnvironmentProvider-4597f540', 'preact/hooks', '../LayerManager-6c0b0eed', '../Floating-28ad0903', '../useFloating-c8c92f6f', '../useUser-abae2493', '../positionUtils-6e4daa31', '../refUtils-d354a169', '../useOutsideClick-39a81428', '../arrayUtils-6ee96a35', '../Layer-9fb9ca67', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-95e6f849', '../useColorScheme-8358a6c9', '../useScale-0fb08a15', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-2b757d02', '../useModal-536cb7ff', '../useComponentTheme-5aa41a8f', '../logger-0f873e29', '../utils-32e81a13', '../colorUtils-7c069766', '../UNSAFE_Floating/themes/redwood/FloatingTheme', '../UNSAFE_Floating/themes/FloatingStyles.css', 'css!./../FloatingStyles.styles.css', '../UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', '../UNSAFE_Floating/themes/redwood/FloatingVariants.css', '../vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', '../vanilla-extract-dynamic.esm-eceadd82', '../UNSAFE_Floating/themes/FloatingContract.css'], (function(e,t,a,s,o,l,r,i,n,c,d,m,g,F,p,f,h,y,_,u,T,S,b,E,L,O,U,A,C,D,I,N,P,v,w,H,M,W,x,Y,j,k,B,G,K,R,V,q){"use strict";e.HIDE_TOOLTIP_DELAY=t.HIDE_TOOLTIP_DELAY,e.SHOW_TOOLTIP_DELAY=t.SHOW_TOOLTIP_DELAY,e.getGlobalTooltipManager=t.getGlobalTooltipManager,e.getWrappedTooltipContent=t.getWrappedTooltipContent,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', '../tooltipUtils-cf586837', 'preact/jsx-runtime', '../LayerHost-a36b1781', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', 'preact', 'preact/compat', '../EnvironmentProvider-d423bca9', 'preact/hooks', '../LayerManager-543c0bce', '../Floating-043a207a', '../useFloating-3f7a017b', '../useUser-33136570', '../positionUtils-6e4daa31', '../refUtils-d354a169', '../useOutsideClick-fc4dc457', '../arrayUtils-6ee96a35', '../Layer-2ca542c2', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-93c8c4c0', '../useColorScheme-47c8be99', '../useScale-b2f29348', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-5cfdc56a', '../useModal-536cb7ff', '../useComponentTheme-5aa41a8f', '../logger-0f873e29', '../utils-32e81a13', '../colorUtils-7c069766', '../UNSAFE_Floating/themes/redwood/FloatingTheme', '../UNSAFE_Floating/themes/FloatingStyles.css', 'css!./../FloatingStyles.styles.css', '../UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', '../UNSAFE_Floating/themes/redwood/FloatingVariants.css', '../vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', '../vanilla-extract-dynamic.esm-eceadd82', '../UNSAFE_Floating/themes/FloatingContract.css'], (function(e,t,a,s,o,c,l,r,i,n,m,d,g,F,p,h,y,_,u,f,T,S,b,E,L,O,U,A,C,D,I,N,P,v,w,H,M,W,x,Y,j,k,B,G,K,R,V,q){"use strict";e.HIDE_TOOLTIP_DELAY=t.HIDE_TOOLTIP_DELAY,e.SHOW_TOOLTIP_DELAY=t.SHOW_TOOLTIP_DELAY,e.getGlobalTooltipManager=t.getGlobalTooltipManager,e.getWrappedTooltipContent=t.getWrappedTooltipContent,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=PRIVATE_tooltipUtils.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', '../tabbableUtils-140cad66', '../domUtil-b56997de', '../eventUtils-20dca9a8', 'preact/jsx-runtime', '@testing-library/preact', '../matchTranslationBundle-e243f90d', '../LayerHost-1b4d03f0', 'preact', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', 'preact/compat', '../EnvironmentProvider-4597f540', 'preact/hooks', '../LayerManager-6c0b0eed', '../TabbableModeContext-a9c97640', 'chai'], (function(e,t,o,a,r,s,n,c,d,l,i,m,u,f,b,p,y){"use strict";e.default=t.setupTabbableComponent,e.checkTooltipText=o.checkTooltipText,e.queryAllBy=o.queryAllBy,e.queryById=o.queryById,e.mockMouseEventPageXYOffsetXY=a.mockMouseEventPageXYOffsetXY,e.restoreMouseEventPageXYOffsetXY=a.restoreMouseEventPageXYOffsetXY,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', '../tabbableUtils-dcf7c977', '../domUtil-b56997de', '../eventUtils-20dca9a8', 'preact/jsx-runtime', '@testing-library/preact', '../matchTranslationBundle-e243f90d', '../LayerHost-a36b1781', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', 'preact', 'preact/compat', '../EnvironmentProvider-d423bca9', 'preact/hooks', '../LayerManager-543c0bce', '../TabbableModeContext-a9c97640', 'chai'], (function(e,t,o,a,r,c,s,n,l,d,i,m,u,b,f,p,y){"use strict";e.default=t.setupTabbableComponent,e.checkTooltipText=o.checkTooltipText,e.queryAllBy=o.queryAllBy,e.queryById=o.queryById,e.mockMouseEventPageXYOffsetXY=a.mockMouseEventPageXYOffsetXY,e.restoreMouseEventPageXYOffsetXY=a.restoreMouseEventPageXYOffsetXY,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=PRIVATE_visTestUtils.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', '../popupUtils-710dc910', '../Layer-9fb9ca67', 'preact/jsx-runtime', 'preact/compat', '../LayerHost-1b4d03f0', 'preact', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-95e6f849', 'preact/hooks', '../useColorScheme-8358a6c9', '../useScale-0fb08a15', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-2b757d02'], (function(e,s,t,a,c,r,o,m,i,n,d,y,l,p,u,f,h,b,L,_,S,g,C,j,A){"use strict";e.isLogicalAncestor=s.isLogicalAncestor,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', '../popupUtils-2308a848', '../Layer-2ca542c2', 'preact/jsx-runtime', 'preact/compat', '../LayerHost-a36b1781', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', 'preact', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-93c8c4c0', 'preact/hooks', '../useColorScheme-47c8be99', '../useScale-b2f29348', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-5cfdc56a'], (function(e,s,c,t,a,r,o,m,i,n,y,l,p,u,d,h,f,b,L,_,S,g,C,j,A){"use strict";e.isLogicalAncestor=s.isLogicalAncestor,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=UNSAFE_popupUtils.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useUser-abae2493'], (function(e,t,r){"use strict";e.withDirectionIcon=(e,s)=>i=>{const{direction:n}=r.useUser();return"ltr"===n?t.jsx(e,{...i}):t.jsx(s,{...i})}}));
2
- //# sourceMappingURL=withDirectionIcon-194f3242.js.map
1
+ define(['exports', 'preact/jsx-runtime', './useUser-33136570'], (function(e,t,r){"use strict";e.withDirectionIcon=(e,s)=>i=>{const{direction:n}=r.useUser();return"ltr"===n?t.jsx(e,{...i}):t.jsx(s,{...i})}}));
2
+ //# sourceMappingURL=withDirectionIcon-56788c71.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withDirectionIcon-194f3242.js","sources":["../../src/hoc/PRIVATE_withDirectionIcon/withDirectionIcon.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { Icon } from '#UNSAFE_Icon/Icon';\nimport { useUser } from '#hooks/UNSAFE_useUser';\n\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox'>;\n\n// Returns a component that renders one of the given icon components based on reading direction\nexport const withDirectionIcon = (LtrIcon: typeof Icon, RtlIcon: typeof Icon) => {\n return (props: Props) => {\n const { direction } = useUser();\n return direction === 'ltr' ? <LtrIcon {...props} /> : <RtlIcon {...props} />;\n };\n};\n"],"names":["LtrIcon","RtlIcon","props","direction","useUser","_jsx","jsx"],"mappings":"+GAciC,CAACA,EAAsBC,IAC9CC,IACN,MAAMC,UAAEA,GAAcC,EAAAA,UACtB,MAAqB,QAAdD,EAAsBE,MAACL,EAAO,IAAKE,IAAYG,EAAAC,IAACL,EAAY,IAAAC,GAAS"}
1
+ {"version":3,"file":"withDirectionIcon-56788c71.js","sources":["../../src/hoc/PRIVATE_withDirectionIcon/withDirectionIcon.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { Icon } from '#UNSAFE_Icon/Icon';\nimport { useUser } from '#hooks/UNSAFE_useUser';\n\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox'>;\n\n// Returns a component that renders one of the given icon components based on reading direction\nexport const withDirectionIcon = (LtrIcon: typeof Icon, RtlIcon: typeof Icon) => {\n return (props: Props) => {\n const { direction } = useUser();\n return direction === 'ltr' ? <LtrIcon {...props} /> : <RtlIcon {...props} />;\n };\n};\n"],"names":["LtrIcon","RtlIcon","props","direction","useUser","_jsx","jsx"],"mappings":"+GAciC,CAACA,EAAsBC,IAC9CC,IACN,MAAMC,UAAEA,GAAcC,EAAAA,UACtB,MAAqB,QAAdD,EAAsBE,MAACL,EAAO,IAAKE,IAAYG,EAAAC,IAACL,EAAY,IAAAC,GAAS"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './LayerHost-1b4d03f0', './EnvironmentProvider-4597f540', './Theme-d945adae'], (function(S,e,E,r,C,A,L){"use strict";S.withThemeProps=S=>{const C=S.displayName||S.name||"ComponentWithProvider",_=r.forwardRef((({colorScheme:C,scale:_,density:d,...t},a)=>{const n=a||E.createRef();return r.useEffect((()=>{if(n.current){const{classList:S}=n.current;if(!S)return;if(C){[L.LIGHT_CLASS,L.DARK_CLASS,L.INVERT_CLASS,L.COLORSCHEME_DEPENDENT_CLASS].map((e=>S.remove(e))),"dark"===C?(S.add(L.DARK_CLASS),S.add(L.INVERT_CLASS)):S.add(L.LIGHT_CLASS),S.add(L.COLORSCHEME_DEPENDENT_CLASS)}if(_){[L.SCALE_SM_CLASS,L.SCALE_MD_CLASS,L.SCALE_LG_CLASS,L.SCALE_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"sm"===_?L.SCALE_SM_CLASS:"md"===_?L.SCALE_MD_CLASS:L.SCALE_LG_CLASS}`),S.add(L.SCALE_DEPENDENT_CLASS)}if(d){[L.DENSITY_COMPACT_CLASS,L.DENSITY_STANDARD_CLASS,L.DENSITY_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"compact"===d?L.DENSITY_COMPACT_CLASS:L.DENSITY_STANDARD_CLASS}`),S.add(L.DENSITY_DEPENDENT_CLASS)}}}),[n,C,_,d]),e.jsx(A.EnvironmentProvider,{environment:{colorScheme:C,scale:_,density:d},children:e.jsx(S,{...t,ref:n})})}));return _.displayName=`withThemeProps(${C})`,_}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './LayerHost-a36b1781', './EnvironmentProvider-d423bca9', './Theme-d945adae'], (function(S,e,E,r,C,A,L){"use strict";S.withThemeProps=S=>{const C=S.displayName||S.name||"ComponentWithProvider",_=r.forwardRef((({colorScheme:C,scale:_,density:a,...d},t)=>{const n=t||E.createRef();return r.useEffect((()=>{if(n.current){const{classList:S}=n.current;if(!S)return;if(C){[L.LIGHT_CLASS,L.DARK_CLASS,L.INVERT_CLASS,L.COLORSCHEME_DEPENDENT_CLASS].map((e=>S.remove(e))),"dark"===C?(S.add(L.DARK_CLASS),S.add(L.INVERT_CLASS)):S.add(L.LIGHT_CLASS),S.add(L.COLORSCHEME_DEPENDENT_CLASS)}if(_){[L.SCALE_SM_CLASS,L.SCALE_MD_CLASS,L.SCALE_LG_CLASS,L.SCALE_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"sm"===_?L.SCALE_SM_CLASS:"md"===_?L.SCALE_MD_CLASS:L.SCALE_LG_CLASS}`),S.add(L.SCALE_DEPENDENT_CLASS)}if(a){[L.DENSITY_COMPACT_CLASS,L.DENSITY_STANDARD_CLASS,L.DENSITY_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"compact"===a?L.DENSITY_COMPACT_CLASS:L.DENSITY_STANDARD_CLASS}`),S.add(L.DENSITY_DEPENDENT_CLASS)}}}),[n,C,_,a]),e.jsx(A.EnvironmentProvider,{environment:{colorScheme:C,scale:_,density:a},children:e.jsx(S,{...d,ref:n})})}));return _.displayName=`withThemeProps(${C})`,_}}));
2
2
  //# sourceMappingURL=withThemeProps-5ba8f3bc.js.map