@oracle/oraclejet-preact 18.1.0 → 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 (1479) 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-e75594df.js +1 -1
  6. package/amd/BaseCardViewSelectionTest-b3d54b34.js +2 -0
  7. package/amd/BaseCardViewSelectionTest-b3d54b34.js.map +1 -0
  8. package/amd/BaseNavigationListItem-f2b9ae77.js +2 -0
  9. package/amd/BaseNavigationListItem-f2b9ae77.js.map +1 -0
  10. package/amd/BaseRichSelection-65bb6f89.js +1 -1
  11. package/amd/ButtonSet-3459b0e6.js +1 -1
  12. package/amd/ButtonSetIconButton-5b13a4c9.js +1 -1
  13. package/amd/Card-8fd9b2c8.js +2 -0
  14. package/amd/Card-8fd9b2c8.js.map +1 -0
  15. package/amd/Center-567b111f.js +2 -0
  16. package/amd/Center-567b111f.js.map +1 -0
  17. package/amd/Chart-c3a5a93d.js +1 -1
  18. package/amd/CheckboxControl-f3a606fe.js +1 -1
  19. package/amd/CheckboxRadioField-48d4dc4e.js +1 -1
  20. package/amd/Chip-e007a488.js +1 -1
  21. package/amd/ClearIcon-d0412ffa.js +1 -1
  22. package/amd/CollapseIcon-6d62b080.js +1 -1
  23. package/amd/Collapsible-8608500c.js +1 -1
  24. package/amd/ComboChart-cec2713a.js +1 -1
  25. package/amd/CompactHelpSource-e5b889f6.js +1 -1
  26. package/amd/CompactLabelAssistance-cd404d92.js +2 -0
  27. package/amd/CompactLabelAssistance-cd404d92.js.map +1 -0
  28. package/amd/CompactUserAssistance-eb849bc5.js +1 -1
  29. package/amd/ComponentMessageContainer-8198785a.js +1 -1
  30. package/amd/ConveyorBeltItem-297444a1.js +1 -1
  31. package/amd/DatePicker-e0e728f9.js +2 -0
  32. package/amd/DatePicker-e0e728f9.js.map +1 -0
  33. package/amd/DatePickerHeader-1f419e06.js +1 -1
  34. package/amd/Diagram-eb0ab8fb.js +2 -0
  35. package/amd/Diagram-eb0ab8fb.js.map +1 -0
  36. package/amd/Dialog-cd6713a4.js +2 -0
  37. package/amd/Dialog-cd6713a4.js.map +1 -0
  38. package/amd/DirectionalCollapseArrowIcon-58352e0f.js +1 -1
  39. package/amd/DirectionalExpandArrowIcon-56420acb.js +1 -1
  40. package/amd/DragHandle-0798a29c.js +2 -0
  41. package/amd/DragHandle-0798a29c.js.map +1 -0
  42. package/amd/DrawerPopup-439787de.js +2 -0
  43. package/amd/DrawerPopup-439787de.js.map +1 -0
  44. package/amd/Dropdown-fb803c67.js +2 -0
  45. package/amd/Dropdown-fb803c67.js.map +1 -0
  46. package/amd/EnvironmentProvider-d423bca9.js +2 -0
  47. package/amd/EnvironmentProvider-d423bca9.js.map +1 -0
  48. package/amd/ExpandableList-81f7f34d.js +1 -1
  49. package/amd/FilePicker-e0b7a348.js +1 -1
  50. package/amd/Flex-a208520e.js +2 -0
  51. package/amd/Flex-a208520e.js.map +1 -0
  52. package/amd/Floating-043a207a.js +2 -0
  53. package/amd/Floating-043a207a.js.map +1 -0
  54. package/amd/FormLayout-d7998ba5.js +1 -1
  55. package/amd/Gantt-a286e1a6.js +1 -1
  56. package/amd/Grid-3dd364a1.js +2 -0
  57. package/amd/Grid-3dd364a1.js.map +1 -0
  58. package/amd/Gridlines-3c00961a.js +2 -0
  59. package/amd/Gridlines-3c00961a.js.map +1 -0
  60. package/amd/GroupLoadingIndicator-6c6743b0.js +1 -1
  61. package/amd/HighlightText-b3c31e12.js +2 -0
  62. package/amd/HighlightText-b3c31e12.js.map +1 -0
  63. package/amd/Icon-906e4e3c.js +1 -1
  64. package/amd/IconButton-c2e5c1c5.js +1 -1
  65. package/amd/IconMenuButton-caf797c1.js +1 -1
  66. package/amd/IconProgressButton-d8c0c306.js +1 -1
  67. package/amd/IconSwitchButton-e6c5b20f.js +1 -1
  68. package/amd/IconToggleButton-e6c77f31.js +1 -1
  69. package/amd/IconUserAssistance-456f4b11.js +2 -0
  70. package/amd/IconUserAssistance-456f4b11.js.map +1 -0
  71. package/amd/Indexer-21549baf.js +1 -1
  72. package/amd/InlineHelpSource-80327d99.js +1 -1
  73. package/amd/InlineUserAssistance-d208ce7b.js +1 -1
  74. package/amd/InputDateMask-4157ef60.js +1 -1
  75. package/amd/InputDatePicker-84b302ea.js +2 -0
  76. package/amd/InputDatePicker-84b302ea.js.map +1 -0
  77. package/amd/InputPassword-868ad3bb.js +1 -1
  78. package/amd/InputText-2cd1e067.js +1 -1
  79. package/amd/Label-a53aabb9.js +1 -1
  80. package/amd/LabelValueLayout-6da5829a.js +1 -1
  81. package/amd/Layer-2ca542c2.js +2 -0
  82. package/amd/Layer-2ca542c2.js.map +1 -0
  83. package/amd/LayerHost-a36b1781.js +2 -0
  84. package/amd/LayerHost-a36b1781.js.map +1 -0
  85. package/amd/LayerManager-543c0bce.js +2 -0
  86. package/amd/LayerManager-543c0bce.js.map +1 -0
  87. package/amd/Legend-75b03ff3.js +1 -1
  88. package/amd/LineAreaChart-a6914d16.js +2 -0
  89. package/amd/LineAreaChart-a6914d16.js.map +1 -0
  90. package/amd/LineSeries-9ddf061e.js +2 -0
  91. package/amd/LineSeries-9ddf061e.js.map +1 -0
  92. package/amd/Link-ded379d9.js +1 -1
  93. package/amd/List-5797be06.js +1 -1
  94. package/amd/ListItemLayout-853acaaf.js +2 -0
  95. package/amd/ListItemLayout-853acaaf.js.map +1 -0
  96. package/amd/ListView-51898222.js +1 -1
  97. package/amd/LiveRegion-38fa0df8.js +2 -0
  98. package/amd/LiveRegion-38fa0df8.js.map +1 -0
  99. package/amd/MaxLengthLiveRegion-40be44ee.js +2 -0
  100. package/amd/MaxLengthLiveRegion-40be44ee.js.map +1 -0
  101. package/amd/Menu-bdd771bf.js +1 -1
  102. package/amd/MenuButton-da59eed0.js +1 -1
  103. package/amd/MenuItem-dc85fcad.js +1 -1
  104. package/amd/Message-d34eaeb6.js +1 -1
  105. package/amd/MessageLayer-4d17f62f.js +2 -0
  106. package/amd/MessageLayer-4d17f62f.js.map +1 -0
  107. package/amd/MessageToast-39315d42.js +1 -1
  108. package/amd/MessagesManager-8af1b1ee.js +1 -1
  109. package/amd/MeterBar-10ec0c50.js +1 -1
  110. package/amd/MeterCircle-cce2cb51.js +1 -1
  111. package/amd/Modal-21aed044.js +2 -0
  112. package/amd/Modal-21aed044.js.map +1 -0
  113. package/amd/MonthView-d4c06203.js +2 -0
  114. package/amd/MonthView-d4c06203.js.map +1 -0
  115. package/amd/NavigationList-6ca9cfba.js +2 -0
  116. package/amd/NavigationList-6ca9cfba.js.map +1 -0
  117. package/amd/NavigationListItem-43b6130b.js +2 -0
  118. package/amd/NavigationListItem-43b6130b.js.map +1 -0
  119. package/amd/NumberInputText-66e2d7d1.js +1 -1
  120. package/amd/OverflowTabBar-127659f1.js +2 -0
  121. package/amd/OverflowTabBar-127659f1.js.map +1 -0
  122. package/amd/OverflowTabBarItem-5404d133.js +2 -0
  123. package/amd/OverflowTabBarItem-5404d133.js.map +1 -0
  124. package/amd/PRIVATE_BaseCardView.js +1 -1
  125. package/amd/PRIVATE_Chart.js +1 -1
  126. package/amd/PRIVATE_CheckboxControl.js +1 -1
  127. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  128. package/amd/PRIVATE_ClearIcon.js +1 -1
  129. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  130. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  131. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  132. package/amd/PRIVATE_FormControls.js +1 -1
  133. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  134. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  135. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  136. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  137. package/amd/PRIVATE_Icons/DragV.js +1 -1
  138. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  139. package/amd/PRIVATE_List.js +1 -1
  140. package/amd/PRIVATE_Message.js +1 -1
  141. package/amd/PRIVATE_MessageLayer.js +1 -1
  142. package/amd/PRIVATE_MonthView.js +1 -1
  143. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  144. package/amd/PRIVATE_PlotArea.js +1 -1
  145. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  146. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  147. package/amd/PRIVATE_SelectCommon.js +1 -1
  148. package/amd/PRIVATE_StyledCard.js +1 -1
  149. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  150. package/amd/PRIVATE_Table.js +1 -1
  151. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  152. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  153. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  154. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  155. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  156. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  157. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  158. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  159. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  160. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  186. package/amd/PRIVATE_TimeComponent.js +1 -1
  187. package/amd/PRIVATE_VisOverview.js +1 -1
  188. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  189. package/amd/PictoChart-952582dd.js +1 -1
  190. package/amd/PieChart-7826bf45.js +1 -1
  191. package/amd/Popup-92dfc51f.js +2 -0
  192. package/amd/Popup-92dfc51f.js.map +1 -0
  193. package/amd/ProgressBar-2087dde3.js +2 -0
  194. package/amd/ProgressBar-2087dde3.js.map +1 -0
  195. package/amd/ProgressButton-b830eead.js +1 -1
  196. package/amd/ProgressButtonLabelLayout-5404f190.js +1 -1
  197. package/amd/ProgressCircle-5709a095.js +2 -0
  198. package/amd/ProgressCircle-5709a095.js.map +1 -0
  199. package/amd/RadioItem-b159fce3.js +1 -1
  200. package/amd/RatingGauge-27c01e2c.js +1 -1
  201. package/amd/ReadonlyTextFieldInput-b8ee28da.js +1 -1
  202. package/amd/RemovableNavigationListItem-110f19ed.js +2 -0
  203. package/amd/RemovableNavigationListItem-110f19ed.js.map +1 -0
  204. package/amd/RemovableTabBarItem-3792c8fd.js +1 -1
  205. package/amd/ReorderableTabBar-d6720955.js +2 -0
  206. package/amd/ReorderableTabBar-d6720955.js.map +1 -0
  207. package/amd/RevealToggleIcon-e5bc966f.js +1 -1
  208. package/amd/ScatterChart-a7d49c89.js +2 -0
  209. package/amd/ScatterChart-a7d49c89.js.map +1 -0
  210. package/amd/SectionalLegend-e9c72ba8.js +1 -1
  211. package/amd/SectionedContent-5d5ff5b9.js +2 -0
  212. package/amd/SectionedContent-5d5ff5b9.js.map +1 -0
  213. package/amd/SelectMultiple-05de2e07.js +1 -1
  214. package/amd/SelectSingle-9e6bde58.js +1 -1
  215. package/amd/SelectionCard-977be789.js +2 -0
  216. package/amd/SelectionCard-977be789.js.map +1 -0
  217. package/amd/Selector-b67fe1ef.js +1 -1
  218. package/amd/SelectorAll-face9708.js +2 -0
  219. package/amd/SelectorAll-face9708.js.map +1 -0
  220. package/amd/Sheet-23307184.js +2 -0
  221. package/amd/Sheet-23307184.js.map +1 -0
  222. package/amd/SplitMenuButton-8d873373.js +1 -1
  223. package/amd/StyledCard-5c9cee13.js +2 -0
  224. package/amd/StyledCard-5c9cee13.js.map +1 -0
  225. package/amd/StyledLabelValueLayout-ddf48667.js +2 -0
  226. package/amd/StyledLabelValueLayout-ddf48667.js.map +1 -0
  227. package/amd/StyledTextField-3398bf94.js +1 -1
  228. package/amd/TabBar-3a35b525.js +2 -0
  229. package/amd/TabBar-3a35b525.js.map +1 -0
  230. package/amd/TabBarItem-04031938.js +1 -1
  231. package/amd/TabBarLayout-de1e43f5.js +1 -1
  232. package/amd/TabBarMixed-28b62328.js +2 -0
  233. package/amd/TabBarMixed-28b62328.js.map +1 -0
  234. package/amd/TabBarMixedSeparator-bd0668c3.js +2 -0
  235. package/amd/TabBarMixedSeparator-bd0668c3.js.map +1 -0
  236. package/amd/Table-d8edded4.js +1 -1
  237. package/amd/TagCloud-057fa603.js +1 -1
  238. package/amd/TextArea-8dcf6809.js +1 -1
  239. package/amd/TextAreaAutosize-97aba344.js +1 -1
  240. package/amd/TextField-80908a0d.js +1 -1
  241. package/amd/TextFieldInput-ca306ad6.js +1 -1
  242. package/amd/Theme-redwood/theme.css +249 -249
  243. package/amd/Theme-stable/theme.css +369 -369
  244. package/amd/TimeComponentCanvas2D-9a091053.js +1 -1
  245. package/amd/Toolbar-250d0ce7.js +1 -1
  246. package/amd/TruncatingBadge-6c7674e0.js +1 -1
  247. package/amd/TruncatingText-24914f42.js +1 -1
  248. package/amd/UNSAFE_ActionCard.js +1 -1
  249. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  250. package/amd/UNSAFE_BarChart.js +1 -1
  251. package/amd/UNSAFE_BaseButton.js +1 -1
  252. package/amd/UNSAFE_Button.js +1 -1
  253. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  254. package/amd/UNSAFE_ButtonSet.js +1 -1
  255. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  256. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  257. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  258. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  259. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  260. package/amd/UNSAFE_Card.js +1 -1
  261. package/amd/UNSAFE_CardFlexView.js +1 -1
  262. package/amd/UNSAFE_CardGridView.js +1 -1
  263. package/amd/UNSAFE_Center.js +1 -1
  264. package/amd/UNSAFE_Checkbox.js +1 -1
  265. package/amd/UNSAFE_CheckboxItem.js +1 -1
  266. package/amd/UNSAFE_CheckboxSet.js +1 -1
  267. package/amd/UNSAFE_Chip.js +1 -1
  268. package/amd/UNSAFE_Collapsible.js +1 -1
  269. package/amd/UNSAFE_ComboChart.js +1 -1
  270. package/amd/UNSAFE_ComponentMessage.js +1 -1
  271. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  272. package/amd/UNSAFE_DatePicker.js +1 -1
  273. package/amd/UNSAFE_Diagram.js +1 -1
  274. package/amd/UNSAFE_Dialog.js +1 -1
  275. package/amd/UNSAFE_DragHandle.js +1 -1
  276. package/amd/UNSAFE_DrawerLayout.js +1 -1
  277. package/amd/UNSAFE_DrawerPopup.js +1 -1
  278. package/amd/UNSAFE_Dropdown.js +1 -1
  279. package/amd/UNSAFE_Environment.js +1 -1
  280. package/amd/UNSAFE_ExpandableList.js +1 -1
  281. package/amd/UNSAFE_FilePicker.js +1 -1
  282. package/amd/UNSAFE_Flex.js +1 -1
  283. package/amd/UNSAFE_Floating.js +1 -1
  284. package/amd/UNSAFE_FormLayout.js +1 -1
  285. package/amd/UNSAFE_Gantt.js +1 -1
  286. package/amd/UNSAFE_Grid.js +1 -1
  287. package/amd/UNSAFE_HighlightText.js +1 -1
  288. package/amd/UNSAFE_Icon.js +1 -1
  289. package/amd/UNSAFE_IconButton.js +1 -1
  290. package/amd/UNSAFE_IconMenuButton.js +1 -1
  291. package/amd/UNSAFE_IconProgressButton.js +1 -1
  292. package/amd/UNSAFE_IconToggleButton.js +1 -1
  293. package/amd/UNSAFE_Indexer.js +1 -1
  294. package/amd/UNSAFE_InputDateMask.js +1 -1
  295. package/amd/UNSAFE_InputDatePicker.js +1 -1
  296. package/amd/UNSAFE_InputPassword.js +1 -1
  297. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  298. package/amd/UNSAFE_InputText.js +1 -1
  299. package/amd/UNSAFE_InputTimeMask.js +1 -1
  300. package/amd/UNSAFE_Label.js +1 -1
  301. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  302. package/amd/UNSAFE_LabelledLink.js +1 -1
  303. package/amd/UNSAFE_Layer.js +1 -1
  304. package/amd/UNSAFE_Legend.js +1 -1
  305. package/amd/UNSAFE_LineAreaChart.js +1 -1
  306. package/amd/UNSAFE_Link.js +1 -1
  307. package/amd/UNSAFE_ListItemLayout.js +1 -1
  308. package/amd/UNSAFE_ListView.js +1 -1
  309. package/amd/UNSAFE_LiveRegion.js +1 -1
  310. package/amd/UNSAFE_Menu.js +1 -1
  311. package/amd/UNSAFE_MenuButton.js +1 -1
  312. package/amd/UNSAFE_MessageBanner.js +1 -1
  313. package/amd/UNSAFE_MessageToast.js +1 -1
  314. package/amd/UNSAFE_MeterBar.js +1 -1
  315. package/amd/UNSAFE_MeterCircle.js +1 -1
  316. package/amd/UNSAFE_Modal.js +1 -1
  317. package/amd/UNSAFE_NavigationList.js +1 -1
  318. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  319. package/amd/UNSAFE_NumberInputText.js +1 -1
  320. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  321. package/amd/UNSAFE_PictoChart.js +1 -1
  322. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  323. package/amd/UNSAFE_PieChart.js +1 -1
  324. package/amd/UNSAFE_Popup.js +1 -1
  325. package/amd/UNSAFE_ProgressBar.js +1 -1
  326. package/amd/UNSAFE_ProgressButton.js +1 -1
  327. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  328. package/amd/UNSAFE_ProgressCircle.js +1 -1
  329. package/amd/UNSAFE_RadioItem.js +1 -1
  330. package/amd/UNSAFE_RadioSet.js +1 -1
  331. package/amd/UNSAFE_RatingGauge.js +1 -1
  332. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  333. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  334. package/amd/UNSAFE_RichRadioSet.js +1 -1
  335. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  336. package/amd/UNSAFE_ScatterChart.js +1 -1
  337. package/amd/UNSAFE_SectionalLegend.js +1 -1
  338. package/amd/UNSAFE_SelectMultiple.js +1 -1
  339. package/amd/UNSAFE_SelectSingle.js +1 -1
  340. package/amd/UNSAFE_SelectionCard.js +1 -1
  341. package/amd/UNSAFE_Selector.js +1 -1
  342. package/amd/UNSAFE_SelectorAll.js +1 -1
  343. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  344. package/amd/UNSAFE_Sheet.js +1 -1
  345. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  346. package/amd/UNSAFE_TabBar.js +1 -1
  347. package/amd/UNSAFE_TabBarCommon.js +1 -1
  348. package/amd/UNSAFE_TabBarMixed.js +1 -1
  349. package/amd/UNSAFE_TableView.js +1 -1
  350. package/amd/UNSAFE_TagCloud.js +1 -1
  351. package/amd/UNSAFE_TextArea.js +1 -1
  352. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  353. package/amd/UNSAFE_TextField.js +1 -1
  354. package/amd/UNSAFE_ToggleButton.js +1 -1
  355. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  356. package/amd/UNSAFE_Toolbar.js +1 -1
  357. package/amd/UNSAFE_Train.js +1 -1
  358. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  359. package/amd/UNSAFE_TruncatingText.js +1 -1
  360. package/amd/UNSAFE_UserAssistance.js +1 -1
  361. package/amd/UNSAFE_View.js +1 -1
  362. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  363. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  364. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  365. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  366. package/amd/UNSAFE_WindowOverlay.js +1 -1
  367. package/amd/View-e15784b7.js +2 -0
  368. package/amd/View-e15784b7.js.map +1 -0
  369. package/amd/VisNoData-ac5880b9.js +2 -0
  370. package/amd/VisNoData-ac5880b9.js.map +1 -0
  371. package/amd/VisProgressiveLoader-01e7a1a8.js +2 -0
  372. package/amd/VisProgressiveLoader-01e7a1a8.js.map +1 -0
  373. package/amd/VisTabularDatatip-8e572ce2.js +2 -0
  374. package/amd/VisTabularDatatip-8e572ce2.js.map +1 -0
  375. package/amd/WindowOverlay-3d31f35a.js +2 -0
  376. package/amd/WindowOverlay-3d31f35a.js.map +1 -0
  377. package/amd/YearsGridView-f7ae554d.js +2 -0
  378. package/amd/YearsGridView-f7ae554d.js.map +1 -0
  379. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  380. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  381. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  382. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  383. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  384. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  385. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  386. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  387. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  388. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  389. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  390. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  391. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  392. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  393. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  394. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  395. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  396. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  397. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  398. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  399. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  400. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  401. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  402. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  403. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  404. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  405. package/amd/hooks/UNSAFE_useScale.js +1 -1
  406. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  407. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  408. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  409. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  410. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  411. package/amd/hooks/UNSAFE_useUser.js +1 -1
  412. package/amd/index-191c944d.js +2 -0
  413. package/amd/index-191c944d.js.map +1 -0
  414. package/amd/listViewSelectionTests-338c9a81.js +1 -1
  415. package/amd/popupUtils-2308a848.js +2 -0
  416. package/amd/popupUtils-2308a848.js.map +1 -0
  417. package/amd/render-436a0489.js +2 -0
  418. package/amd/render-436a0489.js.map +1 -0
  419. package/amd/tabbableUtils-dcf7c977.js +2 -0
  420. package/amd/tabbableUtils-dcf7c977.js.map +1 -0
  421. package/amd/testData-69541e84.js +2 -0
  422. package/amd/testData-69541e84.js.map +1 -0
  423. package/amd/tooltipUtils-cf586837.js +2 -0
  424. package/amd/tooltipUtils-cf586837.js.map +1 -0
  425. package/amd/useCellNavigation-dcf1584f.js +1 -1
  426. package/amd/useChartContextMenu-79ff2c41.js +1 -1
  427. package/amd/useChartDatatip-f3574090.js +2 -0
  428. package/amd/useChartDatatip-f3574090.js.map +1 -0
  429. package/amd/useColorScheme-47c8be99.js +2 -0
  430. package/amd/useColorScheme-47c8be99.js.map +1 -0
  431. package/amd/useContextMenu-599ada89.js +1 -1
  432. package/amd/useCssVars-0b95ef7d.js +2 -0
  433. package/amd/useCssVars-0b95ef7d.js.map +1 -0
  434. package/amd/useCurrentBgColor-7e1d99fb.js +2 -0
  435. package/amd/useCurrentBgColor-7e1d99fb.js.map +1 -0
  436. package/amd/useCurrentKey-6e7057d0.js +2 -0
  437. package/amd/useCurrentKey-6e7057d0.js.map +1 -0
  438. package/amd/useDatatip-0c425460.js +2 -0
  439. package/amd/useDatatip-0c425460.js.map +1 -0
  440. package/amd/useDensity-5cfdc56a.js +2 -0
  441. package/amd/useDensity-5cfdc56a.js.map +1 -0
  442. package/amd/useFloating-3f7a017b.js +2 -0
  443. package/amd/useFloating-3f7a017b.js.map +1 -0
  444. package/amd/useKeyboardEvents-f1abb59c.js +2 -0
  445. package/amd/useKeyboardEvents-f1abb59c.js.map +1 -0
  446. package/amd/useLegendContextMenu-e050a6ec.js +1 -1
  447. package/amd/useMeterDatatip-d4ac4181.js +2 -0
  448. package/amd/useMeterDatatip-d4ac4181.js.map +1 -0
  449. package/amd/useNavigationListItem-d79484b7.js +2 -0
  450. package/amd/useNavigationListItem-d79484b7.js.map +1 -0
  451. package/amd/useOutsideClick-fc4dc457.js +2 -0
  452. package/amd/useOutsideClick-fc4dc457.js.map +1 -0
  453. package/amd/usePopupAnimation-b6303252.js +2 -0
  454. package/amd/usePopupAnimation-b6303252.js.map +1 -0
  455. package/amd/usePrefixSuffix-582e16a2.js +2 -0
  456. package/amd/usePrefixSuffix-582e16a2.js.map +1 -0
  457. package/amd/useReorderableItem-fd5a7b07.js +2 -0
  458. package/amd/useReorderableItem-fd5a7b07.js.map +1 -0
  459. package/amd/useRovingTabIndexContainer-f72b17ab.js +2 -0
  460. package/amd/useRovingTabIndexContainer-f72b17ab.js.map +1 -0
  461. package/amd/useScale-b2f29348.js +2 -0
  462. package/amd/useScale-b2f29348.js.map +1 -0
  463. package/amd/useSelectCommon-736de0ee.js +1 -1
  464. package/amd/useSelectDrill-6b0b6da7.js +2 -0
  465. package/amd/useSelectDrill-6b0b6da7.js.map +1 -0
  466. package/amd/useSelection-02c4c0c0.js +2 -0
  467. package/amd/useSelection-02c4c0c0.js.map +1 -0
  468. package/amd/useSelection-5128f1e7.js +2 -0
  469. package/amd/useSelection-5128f1e7.js.map +1 -0
  470. package/amd/useTabBar-b1536c9a.js +1 -1
  471. package/amd/useTestId-efb1c8f9.js +2 -0
  472. package/amd/useTestId-efb1c8f9.js.map +1 -0
  473. package/amd/useTheme-a99513fe.js +2 -0
  474. package/amd/useTheme-a99513fe.js.map +1 -0
  475. package/amd/useThemeInterpolations-93c8c4c0.js +2 -0
  476. package/amd/useThemeInterpolations-93c8c4c0.js.map +1 -0
  477. package/amd/useTooltip-c10bcc4e.js +2 -0
  478. package/amd/useTooltip-c10bcc4e.js.map +1 -0
  479. package/amd/useTooltipOnTruncation-a913ba8a.js +2 -0
  480. package/amd/useTooltipOnTruncation-a913ba8a.js.map +1 -0
  481. package/amd/useTranslationBundle-33399171.js +2 -0
  482. package/amd/useTranslationBundle-33399171.js.map +1 -0
  483. package/amd/useUser-33136570.js +2 -0
  484. package/amd/useUser-33136570.js.map +1 -0
  485. package/amd/useVisDragModeControls-120076e9.js +1 -1
  486. package/amd/useVisEvents-bc470edf.js +2 -0
  487. package/amd/useVisEvents-bc470edf.js.map +1 -0
  488. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  489. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  490. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  491. package/amd/withDirectionIcon-56788c71.js +2 -0
  492. package/amd/withDirectionIcon-56788c71.js.map +1 -0
  493. package/amd/withThemeProps-5ba8f3bc.js +1 -1
  494. package/cjs/BaseCardView-dc51267e.js +687 -0
  495. package/cjs/BaseCardView-dc51267e.js.map +1 -0
  496. package/cjs/CardFlexView-9393e48c.js +29 -0
  497. package/cjs/CardFlexView-9393e48c.js.map +1 -0
  498. package/cjs/CardGridView-e796ff9d.js +17 -0
  499. package/cjs/CardGridView-e796ff9d.js.map +1 -0
  500. package/cjs/CheckboxSetContext-c62db26d.js +12 -0
  501. package/cjs/CheckboxSetContext-c62db26d.js.map +1 -0
  502. package/cjs/ExpandableList-2182c2f3.js +1 -1
  503. package/cjs/GroupLoadingIndicator-eea4bd1d.js +1 -1
  504. package/cjs/Indexer-034ba277.js +339 -0
  505. package/cjs/Indexer-034ba277.js.map +1 -0
  506. package/cjs/List-46cdf470.js +723 -0
  507. package/cjs/List-46cdf470.js.map +1 -0
  508. package/cjs/ListView-0ec2afbc.js +430 -0
  509. package/cjs/ListView-0ec2afbc.js.map +1 -0
  510. package/cjs/LoadMoreCollection-73112ff0.js +34 -0
  511. package/cjs/LoadMoreCollection-73112ff0.js.map +1 -0
  512. package/cjs/PRIVATE_BaseCardView.js +3 -3
  513. package/cjs/PRIVATE_List.js +4 -4
  514. package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
  515. package/cjs/PRIVATE_SelectCommon.js +5 -5
  516. package/cjs/PRIVATE_Table.js +3 -3
  517. package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
  518. package/cjs/SelectMultiple-f12df023.js +1299 -0
  519. package/cjs/SelectMultiple-f12df023.js.map +1 -0
  520. package/cjs/SelectSingle-244f066d.js +732 -0
  521. package/cjs/SelectSingle-244f066d.js.map +1 -0
  522. package/cjs/Table-687c28a1.js +5499 -0
  523. package/cjs/Table-687c28a1.js.map +1 -0
  524. package/cjs/TableView-8a2c3a0a.js +33 -0
  525. package/cjs/TableView-8a2c3a0a.js.map +1 -0
  526. package/cjs/TextArea-dcfbeab0.js +180 -0
  527. package/cjs/TextArea-dcfbeab0.js.map +1 -0
  528. package/cjs/TextAreaAutosize-fa21ae31.js +246 -0
  529. package/cjs/TextAreaAutosize-fa21ae31.js.map +1 -0
  530. package/cjs/Theme-redwood/theme.css +186 -186
  531. package/cjs/Theme-stable/theme.css +380 -380
  532. package/cjs/UNSAFE_CardFlexView.js +4 -4
  533. package/cjs/UNSAFE_CardGridView.js +4 -4
  534. package/cjs/UNSAFE_CheckboxItem.js +30 -82
  535. package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
  536. package/cjs/UNSAFE_CheckboxSet.js +44 -15
  537. package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
  538. package/cjs/UNSAFE_ExpandableList.js +3 -3
  539. package/cjs/UNSAFE_Indexer.js +2 -2
  540. package/cjs/UNSAFE_ListView.js +5 -5
  541. package/cjs/UNSAFE_RichCheckboxSet.js +26 -29
  542. package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
  543. package/cjs/UNSAFE_RichSelectionItem.js +46 -184
  544. package/cjs/UNSAFE_RichSelectionItem.js.map +1 -1
  545. package/cjs/UNSAFE_SelectMultiple.js +6 -6
  546. package/cjs/UNSAFE_SelectSingle.js +6 -6
  547. package/cjs/UNSAFE_TableView.js +4 -4
  548. package/cjs/UNSAFE_TextArea.js +3 -4
  549. package/cjs/UNSAFE_TextArea.js.map +1 -1
  550. package/cjs/UNSAFE_TextAreaAutosize.js +3 -3
  551. package/cjs/UNSAFE_VirtualizedListView.js +5 -5
  552. package/cjs/VirtualizedCollection-00aedb8b.js +180 -0
  553. package/cjs/VirtualizedCollection-00aedb8b.js.map +1 -0
  554. package/cjs/VirtualizedListView-c5df76ea.js +16 -0
  555. package/cjs/VirtualizedListView-c5df76ea.js.map +1 -0
  556. package/cjs/useSelectCommon-a00fdf8e.js +709 -0
  557. package/cjs/useSelectCommon-a00fdf8e.js.map +1 -0
  558. package/es/ActionCard-9f4e3613.js +1 -1
  559. package/es/BarChart-49c7f6bb.js +179 -0
  560. package/es/BarChart-49c7f6bb.js.map +1 -0
  561. package/es/BarGroup-ac152c88.js +1 -1
  562. package/es/BaseButton-b5fc41a8.js +2 -2
  563. package/es/BaseCardView-5e0a327f.js +683 -0
  564. package/es/BaseCardView-5e0a327f.js.map +1 -0
  565. package/es/BaseCardViewSelectionTest-b3b001e6.js +721 -0
  566. package/es/BaseCardViewSelectionTest-b3b001e6.js.map +1 -0
  567. package/es/BaseNavigationListItem-44157da8.js +1 -1
  568. package/es/BaseRichSelection-908a6bc3.js +9 -9
  569. package/es/ButtonSet-474e170e.js +2 -2
  570. package/es/ButtonSetIconButton-34b24ad4.js +3 -3
  571. package/es/Card-31a1cb19.js +15 -0
  572. package/es/Card-31a1cb19.js.map +1 -0
  573. package/es/CardFlexView-36492791.js +27 -0
  574. package/es/CardFlexView-36492791.js.map +1 -0
  575. package/es/CardGridView-64f31130.js +15 -0
  576. package/es/CardGridView-64f31130.js.map +1 -0
  577. package/es/Center-903e6ea1.js +16 -0
  578. package/es/Center-903e6ea1.js.map +1 -0
  579. package/es/Chart-649fdf1c.js +491 -0
  580. package/es/Chart-649fdf1c.js.map +1 -0
  581. package/es/CheckboxControl-1e686657.js +6 -6
  582. package/es/CheckboxRadioField-201ef340.js +7 -7
  583. package/es/Chip-9540ef60.js +1 -1
  584. package/es/ClearIcon-215c5c34.js +1 -1
  585. package/es/CollapseIcon-43663109.js +1 -1
  586. package/es/Collapsible-757eaed6.js +2 -2
  587. package/es/ComboChart-8ca6f857.js +172 -0
  588. package/es/ComboChart-8ca6f857.js.map +1 -0
  589. package/es/CompactHelpSource-20f20c17.js +2 -2
  590. package/es/CompactLabelAssistance-d92b17d1.js +34 -0
  591. package/es/CompactLabelAssistance-d92b17d1.js.map +1 -0
  592. package/es/CompactUserAssistance-c2fafab0.js +4 -4
  593. package/es/ComponentMessageContainer-a06ceb16.js +4 -4
  594. package/es/ConveyorBeltItem-2a7cfd15.js +2 -2
  595. package/es/DatePicker-2838c573.js +564 -0
  596. package/es/DatePicker-2838c573.js.map +1 -0
  597. package/es/DatePickerHeader-151355b3.js +3 -3
  598. package/es/Diagram-7236c495.js +2035 -0
  599. package/es/Diagram-7236c495.js.map +1 -0
  600. package/es/Dialog-4a0cb90c.js +344 -0
  601. package/es/Dialog-4a0cb90c.js.map +1 -0
  602. package/es/DirectionalCollapseArrowIcon-24020989.js +1 -1
  603. package/es/DirectionalExpandArrowIcon-28f288ca.js +1 -1
  604. package/es/DragHandle-f9b35377.js +22 -0
  605. package/es/DragHandle-f9b35377.js.map +1 -0
  606. package/es/DrawerPopup-dd60ef68.js +381 -0
  607. package/es/DrawerPopup-dd60ef68.js.map +1 -0
  608. package/es/Dropdown-ab7ecd4b.js +80 -0
  609. package/es/Dropdown-ab7ecd4b.js.map +1 -0
  610. package/es/EnvironmentProvider-1580c879.js +58 -0
  611. package/es/EnvironmentProvider-1580c879.js.map +1 -0
  612. package/es/ExpandableList-84f08709.js +4 -4
  613. package/es/FilePicker-74669308.js +2 -2
  614. package/es/Flex-ba379500.js +30 -0
  615. package/es/Flex-ba379500.js.map +1 -0
  616. package/es/Floating-94a06a14.js +462 -0
  617. package/es/Floating-94a06a14.js.map +1 -0
  618. package/es/FormLayout-2fba104e.js +1 -1
  619. package/es/Gantt-f95290cd.js +9 -9
  620. package/es/Grid-48e5c78c.js +27 -0
  621. package/es/Grid-48e5c78c.js.map +1 -0
  622. package/es/Gridlines-bb3b92f4.js +168 -0
  623. package/es/Gridlines-bb3b92f4.js.map +1 -0
  624. package/es/GroupLoadingIndicator-2a294121.js +2 -2
  625. package/es/HighlightText-a2f81a44.js +31 -0
  626. package/es/HighlightText-a2f81a44.js.map +1 -0
  627. package/es/Icon-43d05084.js +3 -3
  628. package/es/IconButton-b78b5ace.js +3 -3
  629. package/es/IconMenuButton-441b34f8.js +3 -3
  630. package/es/IconProgressButton-cb75faa2.js +3 -3
  631. package/es/IconSwitchButton-4febde18.js +3 -3
  632. package/es/IconToggleButton-299d5d98.js +3 -3
  633. package/es/IconUserAssistance-264032b1.js +73 -0
  634. package/es/IconUserAssistance-264032b1.js.map +1 -0
  635. package/es/Indexer-6c39ddf3.js +336 -0
  636. package/es/Indexer-6c39ddf3.js.map +1 -0
  637. package/es/InlineHelpSource-e0c901ba.js +1 -1
  638. package/es/InlineUserAssistance-9b70db5b.js +5 -5
  639. package/es/InputDateMask-0b2a46b5.js +7 -7
  640. package/es/InputDatePicker-60465b12.js +8 -8
  641. package/es/InputPassword-106c544f.js +4 -4
  642. package/es/InputText-2bf2ce27.js +6 -6
  643. package/es/Label-4503b935.js +5 -5
  644. package/es/LabelValueLayout-fa08943c.js +1 -1
  645. package/es/Layer-d4aca92e.js +91 -0
  646. package/es/Layer-d4aca92e.js.map +1 -0
  647. package/es/LayerHost-f7ef254c.js +40 -0
  648. package/es/LayerHost-f7ef254c.js.map +1 -0
  649. package/es/LayerManager-4ad387dc.js +34 -0
  650. package/es/LayerManager-4ad387dc.js.map +1 -0
  651. package/es/Legend-449e7201.js +3 -3
  652. package/es/LineAreaChart-9a46dce5.js +170 -0
  653. package/es/LineAreaChart-9a46dce5.js.map +1 -0
  654. package/es/LineSeries-e71ae377.js +109 -0
  655. package/es/LineSeries-e71ae377.js.map +1 -0
  656. package/es/Link-9803ca5b.js +1 -1
  657. package/es/List-da0ce081.js +718 -0
  658. package/es/List-da0ce081.js.map +1 -0
  659. package/es/ListItemLayout-1207112f.js +110 -0
  660. package/es/ListItemLayout-1207112f.js.map +1 -0
  661. package/es/ListView-5cada8e6.js +428 -0
  662. package/es/ListView-5cada8e6.js.map +1 -0
  663. package/es/LiveRegion-d9f2bbdb.js +39 -0
  664. package/es/LiveRegion-d9f2bbdb.js.map +1 -0
  665. package/es/LoadMoreCollection-95a49d2a.js +31 -0
  666. package/es/LoadMoreCollection-95a49d2a.js.map +1 -0
  667. package/es/MaxLengthLiveRegion-db713260.js +23 -0
  668. package/es/MaxLengthLiveRegion-db713260.js.map +1 -0
  669. package/es/Menu-aa21f75f.js +6 -6
  670. package/es/MenuButton-fe7e2d06.js +2 -2
  671. package/es/MenuItem-01343558.js +1 -1
  672. package/es/Message-98038159.js +2 -2
  673. package/es/MessageLayer-7650c582.js +58 -0
  674. package/es/MessageLayer-7650c582.js.map +1 -0
  675. package/es/MessageToast-2b7922be.js +8 -8
  676. package/es/MessagesManager-9efc5d44.js +3 -3
  677. package/es/MeterBar-1319327c.js +5 -5
  678. package/es/MeterCircle-b52c28b1.js +5 -5
  679. package/es/Modal-7efd2f81.js +274 -0
  680. package/es/Modal-7efd2f81.js.map +1 -0
  681. package/es/MonthView-df043775.js +208 -0
  682. package/es/MonthView-df043775.js.map +1 -0
  683. package/es/NavigationListItem-bdf7a2ab.js +5 -5
  684. package/es/NumberInputText-c71b0b51.js +6 -6
  685. package/es/OverflowTabBarItem-b643a574.js +3 -3
  686. package/es/PRIVATE_BaseCardView.js +24 -24
  687. package/es/PRIVATE_Chart.js +35 -35
  688. package/es/PRIVATE_CheckboxControl.js +23 -23
  689. package/es/PRIVATE_CheckboxRadioField.js +25 -25
  690. package/es/PRIVATE_ClearIcon.js +17 -17
  691. package/es/PRIVATE_DatePickerHeader.js +18 -18
  692. package/es/PRIVATE_DatePickerLayout.js +4 -4
  693. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  694. package/es/PRIVATE_FormControls.js +19 -19
  695. package/es/PRIVATE_IconSwitchButton.js +15 -15
  696. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  697. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  698. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  699. package/es/PRIVATE_Icons/DragV.js +15 -15
  700. package/es/PRIVATE_Icons/WarningS.js +15 -15
  701. package/es/PRIVATE_List.js +23 -23
  702. package/es/PRIVATE_LoadMoreCollection.js +2 -2
  703. package/es/PRIVATE_Message.js +18 -18
  704. package/es/PRIVATE_MessageLayer.js +12 -12
  705. package/es/PRIVATE_MonthView.js +7 -7
  706. package/es/PRIVATE_MonthYearGridView.js +7 -7
  707. package/es/PRIVATE_PlotArea.js +4 -4
  708. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  709. package/es/PRIVATE_RichSelectionCommon.js +26 -26
  710. package/es/PRIVATE_SelectCommon.js +33 -33
  711. package/es/PRIVATE_StyledCard.js +4 -4
  712. package/es/PRIVATE_StyledCheckbox.js +15 -15
  713. package/es/PRIVATE_Table.js +27 -27
  714. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  715. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  716. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  717. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  718. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  719. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  720. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  721. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  722. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  723. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  724. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  725. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  726. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  727. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  728. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  729. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
  730. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  731. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  732. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  733. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  734. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  735. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  736. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  737. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  738. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  739. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  740. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  741. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
  742. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  743. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  744. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  745. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  746. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  747. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  748. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  749. package/es/PRIVATE_TimeComponent.js +17 -17
  750. package/es/PRIVATE_VirtualizedCollection.js +2 -2
  751. package/es/PRIVATE_VisOverview.js +15 -15
  752. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  753. package/es/PictoChart-b3fc22fd.js +6 -6
  754. package/es/PieChart-b54696a5.js +6 -6
  755. package/es/Popup-67ec4db2.js +258 -0
  756. package/es/Popup-67ec4db2.js.map +1 -0
  757. package/es/ProgressBar-cad7d04b.js +62 -0
  758. package/es/ProgressBar-cad7d04b.js.map +1 -0
  759. package/es/ProgressButton-40c3b504.js +3 -3
  760. package/es/ProgressButtonLabelLayout-8c64cece.js +3 -3
  761. package/es/ProgressCircle-7d883146.js +48 -0
  762. package/es/ProgressCircle-7d883146.js.map +1 -0
  763. package/es/RadioItem-a1599b77.js +6 -6
  764. package/es/RatingGauge-6c13b141.js +8 -8
  765. package/es/ReadonlyTextFieldInput-d6b1fac1.js +1 -1
  766. package/es/RemovableNavigationListItem-84fad399.js +1 -1
  767. package/es/RemovableTabBarItem-42735820.js +2 -2
  768. package/es/ReorderableTabBar-1b2c9ebe.js +3 -3
  769. package/es/RevealToggleIcon-abf5f233.js +1 -1
  770. package/es/ScatterChart-59c7f1d7.js +103 -0
  771. package/es/ScatterChart-59c7f1d7.js.map +1 -0
  772. package/es/SectionalLegend-fb0128ae.js +4 -4
  773. package/es/SectionedContent-db1b2e44.js +64 -0
  774. package/es/SectionedContent-db1b2e44.js.map +1 -0
  775. package/es/SegmentStyles.styles.css +11 -8
  776. package/es/SegmentStyles.styles2.css +8 -11
  777. package/es/SelectMultiple-48af2264.js +1297 -0
  778. package/es/SelectMultiple-48af2264.js.map +1 -0
  779. package/es/SelectSingle-56ff2907.js +730 -0
  780. package/es/SelectSingle-56ff2907.js.map +1 -0
  781. package/es/SelectionCard-f4e6f6f4.js +16 -0
  782. package/es/SelectionCard-f4e6f6f4.js.map +1 -0
  783. package/es/Selector-cc435916.js +1 -1
  784. package/es/SelectorAll-fb5a5a47.js +69 -0
  785. package/es/SelectorAll-fb5a5a47.js.map +1 -0
  786. package/es/Sheet-2d9c641b.js +158 -0
  787. package/es/Sheet-2d9c641b.js.map +1 -0
  788. package/es/SplitMenuButton-1c556d1d.js +2 -2
  789. package/es/StyledCard-75bcdad7.js +105 -0
  790. package/es/StyledCard-75bcdad7.js.map +1 -0
  791. package/es/StyledLabelValueLayout-1b0b4a96.js +18 -0
  792. package/es/StyledLabelValueLayout-1b0b4a96.js.map +1 -0
  793. package/es/StyledTextField-21e8afef.js +3 -3
  794. package/es/TabBar-ef456a2c.js +5 -5
  795. package/es/TabBarItem-af8b903f.js +3 -3
  796. package/es/TabBarLayout-d7d27c34.js +1 -1
  797. package/es/TabBarMixed-71314dd9.js +5 -5
  798. package/es/TabBarMixedSeparator-1aacc254.js +19 -0
  799. package/es/TabBarMixedSeparator-1aacc254.js.map +1 -0
  800. package/es/Table-895c20ae.js +5497 -0
  801. package/es/Table-895c20ae.js.map +1 -0
  802. package/es/TableView-7eaa6c96.js +31 -0
  803. package/es/TableView-7eaa6c96.js.map +1 -0
  804. package/es/TagCloud-ed095030.js +8 -8
  805. package/es/TextArea-f411ff47.js +177 -0
  806. package/es/TextArea-f411ff47.js.map +1 -0
  807. package/es/TextAreaAutosize-163b776f.js +244 -0
  808. package/es/TextAreaAutosize-163b776f.js.map +1 -0
  809. package/es/TextField-28d425d6.js +3 -3
  810. package/es/TextFieldInput-c9239b1e.js +1 -1
  811. package/es/Theme-redwood/theme.css +488 -488
  812. package/es/Theme-stable/theme.css +316 -316
  813. package/es/TimeComponentCanvas2D-70d21419.js +5 -5
  814. package/es/Toolbar-4fe755d3.js +1 -1
  815. package/es/TruncatingBadge-a6ead29d.js +1 -1
  816. package/es/TruncatingText-107fcc48.js +1 -1
  817. package/es/UNSAFE_ActionCard.js +3 -3
  818. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +36 -36
  819. package/es/UNSAFE_BarChart.js +36 -36
  820. package/es/UNSAFE_BaseButton.js +3 -3
  821. package/es/UNSAFE_Button.js +3 -3
  822. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
  823. package/es/UNSAFE_ButtonSet.js +4 -4
  824. package/es/UNSAFE_ButtonSetButton.js +3 -3
  825. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  826. package/es/UNSAFE_ButtonSetItem.js +15 -15
  827. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  828. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  829. package/es/UNSAFE_Card.js +5 -5
  830. package/es/UNSAFE_CardFlexView.js +25 -25
  831. package/es/UNSAFE_CardGridView.js +25 -25
  832. package/es/UNSAFE_Center.js +5 -5
  833. package/es/UNSAFE_Checkbox.js +23 -23
  834. package/es/UNSAFE_CheckboxItem.js +23 -23
  835. package/es/UNSAFE_CheckboxSet.js +24 -24
  836. package/es/UNSAFE_Chip.js +2 -2
  837. package/es/UNSAFE_Collapsible.js +17 -17
  838. package/es/UNSAFE_ComboChart.js +38 -38
  839. package/es/UNSAFE_ComponentMessage.js +18 -18
  840. package/es/UNSAFE_ConveyorBelt.js +15 -15
  841. package/es/UNSAFE_DatePicker.js +23 -23
  842. package/es/UNSAFE_Diagram.js +20 -20
  843. package/es/UNSAFE_Dialog.js +21 -21
  844. package/es/UNSAFE_DragHandle.js +17 -17
  845. package/es/UNSAFE_DrawerLayout.js +12 -12
  846. package/es/UNSAFE_DrawerPopup.js +13 -13
  847. package/es/UNSAFE_Dropdown.js +13 -13
  848. package/es/UNSAFE_Environment.js +4 -4
  849. package/es/UNSAFE_ExpandableList.js +25 -25
  850. package/es/UNSAFE_FilePicker.js +4 -4
  851. package/es/UNSAFE_Flex.js +4 -4
  852. package/es/UNSAFE_Floating.js +11 -11
  853. package/es/UNSAFE_FormLayout.js +2 -2
  854. package/es/UNSAFE_Gantt.js +22 -22
  855. package/es/UNSAFE_Grid.js +4 -4
  856. package/es/UNSAFE_HighlightText.js +4 -4
  857. package/es/UNSAFE_Icon.js +15 -15
  858. package/es/UNSAFE_IconButton.js +15 -15
  859. package/es/UNSAFE_IconMenuButton.js +21 -21
  860. package/es/UNSAFE_IconProgressButton.js +18 -18
  861. package/es/UNSAFE_IconToggleButton.js +15 -15
  862. package/es/UNSAFE_Indexer.js +8 -8
  863. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  864. package/es/UNSAFE_InputDateMask.js +26 -26
  865. package/es/UNSAFE_InputDatePicker.js +34 -34
  866. package/es/UNSAFE_InputPassword.js +24 -24
  867. package/es/UNSAFE_InputSensitiveText.js +26 -26
  868. package/es/UNSAFE_InputText.js +27 -27
  869. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  870. package/es/UNSAFE_InputTimeMask.js +26 -26
  871. package/es/UNSAFE_Label.js +23 -23
  872. package/es/UNSAFE_LabelValueLayout.js +4 -4
  873. package/es/UNSAFE_LabelledLink.js +25 -25
  874. package/es/UNSAFE_Layer.js +8 -8
  875. package/es/UNSAFE_Legend.js +25 -25
  876. package/es/UNSAFE_LineAreaChart.js +38 -38
  877. package/es/UNSAFE_Link.js +2 -2
  878. package/es/UNSAFE_ListItemLayout.js +5 -5
  879. package/es/UNSAFE_ListView.js +33 -33
  880. package/es/UNSAFE_LiveRegion.js +4 -4
  881. package/es/UNSAFE_Menu.js +23 -23
  882. package/es/UNSAFE_MenuButton.js +21 -21
  883. package/es/UNSAFE_MessageBanner.js +18 -18
  884. package/es/UNSAFE_MessageToast.js +21 -21
  885. package/es/UNSAFE_MeterBar.js +16 -16
  886. package/es/UNSAFE_MeterCircle.js +17 -17
  887. package/es/UNSAFE_Modal.js +9 -9
  888. package/es/UNSAFE_NavigationList.js +19 -19
  889. package/es/UNSAFE_NavigationListCommon.js +17 -17
  890. package/es/UNSAFE_NumberInputText.js +26 -26
  891. package/es/UNSAFE_OverflowTabBar.js +24 -24
  892. package/es/UNSAFE_PictoChart.js +14 -14
  893. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
  894. package/es/UNSAFE_PieChart.js +22 -22
  895. package/es/UNSAFE_Popup.js +17 -17
  896. package/es/UNSAFE_ProgressBar.js +5 -5
  897. package/es/UNSAFE_ProgressButton.js +18 -18
  898. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  899. package/es/UNSAFE_ProgressCircle.js +4 -4
  900. package/es/UNSAFE_RadioItem.js +23 -23
  901. package/es/UNSAFE_RadioSet.js +24 -24
  902. package/es/UNSAFE_RatingGauge.js +17 -17
  903. package/es/UNSAFE_ReorderableTabBar.js +25 -25
  904. package/es/UNSAFE_RichCheckboxSet.js +26 -26
  905. package/es/UNSAFE_RichRadioSet.js +26 -26
  906. package/es/UNSAFE_RichSelectionItem.js +20 -20
  907. package/es/UNSAFE_ScatterChart.js +38 -38
  908. package/es/UNSAFE_SectionalLegend.js +26 -26
  909. package/es/UNSAFE_SelectMultiple.js +37 -37
  910. package/es/UNSAFE_SelectSingle.js +37 -37
  911. package/es/UNSAFE_SelectionCard.js +5 -5
  912. package/es/UNSAFE_Selector.js +15 -15
  913. package/es/UNSAFE_SelectorAll.js +19 -19
  914. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +15 -15
  915. package/es/UNSAFE_Sheet.js +12 -12
  916. package/es/UNSAFE_SplitMenuButton.js +21 -21
  917. package/es/UNSAFE_TabBar.js +25 -25
  918. package/es/UNSAFE_TabBarCommon.js +25 -25
  919. package/es/UNSAFE_TabBarMixed.js +26 -26
  920. package/es/UNSAFE_TableView.js +28 -28
  921. package/es/UNSAFE_TagCloud.js +24 -24
  922. package/es/UNSAFE_TextArea.js +28 -29
  923. package/es/UNSAFE_TextArea.js.map +1 -1
  924. package/es/UNSAFE_TextAreaAutosize.js +29 -29
  925. package/es/UNSAFE_TextField.js +8 -8
  926. package/es/UNSAFE_ToggleButton.js +3 -3
  927. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
  928. package/es/UNSAFE_Toolbar.js +4 -4
  929. package/es/UNSAFE_Train.js +16 -16
  930. package/es/UNSAFE_TruncatingBadge.js +16 -16
  931. package/es/UNSAFE_TruncatingText.js +16 -16
  932. package/es/UNSAFE_UserAssistance.js +24 -24
  933. package/es/UNSAFE_View.js +7 -7
  934. package/es/UNSAFE_VirtualizedListView.js +24 -24
  935. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  936. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  937. package/es/UNSAFE_VisStatusMessage.js +6 -6
  938. package/es/UNSAFE_WindowOverlay.js +4 -4
  939. package/es/View-79162397.js +167 -0
  940. package/es/View-79162397.js.map +1 -0
  941. package/es/VirtualizedCollection-e73890a1.js +176 -0
  942. package/es/VirtualizedCollection-e73890a1.js.map +1 -0
  943. package/es/VirtualizedListView-d9cb25e1.js +14 -0
  944. package/es/VirtualizedListView-d9cb25e1.js.map +1 -0
  945. package/es/VisNoData-f70e7c57.js +32 -0
  946. package/es/VisNoData-f70e7c57.js.map +1 -0
  947. package/es/VisProgressiveLoader-4fe41bcb.js +51 -0
  948. package/es/VisProgressiveLoader-4fe41bcb.js.map +1 -0
  949. package/es/VisTabularDatatip-24b65098.js +24 -0
  950. package/es/VisTabularDatatip-24b65098.js.map +1 -0
  951. package/es/WindowOverlay-8fbe3e1c.js +110 -0
  952. package/es/WindowOverlay-8fbe3e1c.js.map +1 -0
  953. package/es/YearsGridView-52c0d22c.js +187 -0
  954. package/es/YearsGridView-52c0d22c.js.map +1 -0
  955. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  956. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  957. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  958. package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
  959. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  960. package/es/hooks/PRIVATE_useChartEvents.js +18 -18
  961. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  962. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  963. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  964. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  965. package/es/hooks/PRIVATE_useFloating.js +4 -4
  966. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  967. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  968. package/es/hooks/PRIVATE_useSelection.js +4 -4
  969. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  970. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
  971. package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
  972. package/es/hooks/PRIVATE_useVisDragModeControls.js +17 -17
  973. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  974. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  975. package/es/hooks/PRIVATE_useVisSelection.js +13 -13
  976. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  977. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  978. package/es/hooks/UNSAFE_useDensity.js +3 -3
  979. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  980. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  981. package/es/hooks/UNSAFE_useScale.js +3 -3
  982. package/es/hooks/UNSAFE_useTestId.js +3 -3
  983. package/es/hooks/UNSAFE_useTheme.js +3 -3
  984. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  985. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  986. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  987. package/es/hooks/UNSAFE_useUser.js +3 -3
  988. package/es/index-5d0fe60d.js +11 -0
  989. package/es/index-5d0fe60d.js.map +1 -0
  990. package/es/listViewSelectionTests-cd66d645.js +3 -3
  991. package/es/popupUtils-a7caf5e4.js +29 -0
  992. package/es/popupUtils-a7caf5e4.js.map +1 -0
  993. package/es/render-c7ce760e.js +34 -0
  994. package/es/render-c7ce760e.js.map +1 -0
  995. package/es/tabbableUtils-b22dbd92.js +79 -0
  996. package/es/tabbableUtils-b22dbd92.js.map +1 -0
  997. package/es/testData-a52937d8.js +256 -0
  998. package/es/testData-a52937d8.js.map +1 -0
  999. package/es/tooltipUtils-179de68d.js +93 -0
  1000. package/es/tooltipUtils-179de68d.js.map +1 -0
  1001. package/es/useCellNavigation-1a33b90e.js +1 -1
  1002. package/es/useChartContextMenu-bedf2f88.js +2 -2
  1003. package/es/useChartDatatip-652d9595.js +165 -0
  1004. package/es/useChartDatatip-652d9595.js.map +1 -0
  1005. package/es/useColorScheme-4414c0b2.js +19 -0
  1006. package/es/useColorScheme-4414c0b2.js.map +1 -0
  1007. package/es/useContextMenu-006e82dd.js +2 -2
  1008. package/es/useCssVars-0788f28c.js +58 -0
  1009. package/es/useCssVars-0788f28c.js.map +1 -0
  1010. package/es/useCurrentBgColor-cc39a2b0.js +19 -0
  1011. package/es/useCurrentBgColor-cc39a2b0.js.map +1 -0
  1012. package/es/useCurrentKey-b88513bf.js +81 -0
  1013. package/es/useCurrentKey-b88513bf.js.map +1 -0
  1014. package/es/useDatatip-f80a8b4e.js +90 -0
  1015. package/es/useDatatip-f80a8b4e.js.map +1 -0
  1016. package/es/useDensity-575ebaf2.js +19 -0
  1017. package/es/useDensity-575ebaf2.js.map +1 -0
  1018. package/es/useFloating-85ac3a8e.js +1916 -0
  1019. package/es/useFloating-85ac3a8e.js.map +1 -0
  1020. package/es/useKeyboardEvents-8d2a44b1.js +78 -0
  1021. package/es/useKeyboardEvents-8d2a44b1.js.map +1 -0
  1022. package/es/useLegendContextMenu-30eaa291.js +4 -4
  1023. package/es/useMeterDatatip-ea50f0f1.js +73 -0
  1024. package/es/useMeterDatatip-ea50f0f1.js.map +1 -0
  1025. package/es/useOutsideClick-866db9b2.js +101 -0
  1026. package/es/useOutsideClick-866db9b2.js.map +1 -0
  1027. package/es/usePopupAnimation-93950404.js +85 -0
  1028. package/es/usePopupAnimation-93950404.js.map +1 -0
  1029. package/es/usePrefixSuffix-2741adb3.js +70 -0
  1030. package/es/usePrefixSuffix-2741adb3.js.map +1 -0
  1031. package/es/useReorderableItem-2a361fd4.js +268 -0
  1032. package/es/useReorderableItem-2a361fd4.js.map +1 -0
  1033. package/es/useRovingTabIndexContainer-7b1d563b.js +98 -0
  1034. package/es/useRovingTabIndexContainer-7b1d563b.js.map +1 -0
  1035. package/es/useScale-54f14cdc.js +19 -0
  1036. package/es/useScale-54f14cdc.js.map +1 -0
  1037. package/es/useSelectCommon-b5028a6e.js +686 -0
  1038. package/es/useSelectCommon-b5028a6e.js.map +1 -0
  1039. package/es/useSelectDrill-9f0f793e.js +104 -0
  1040. package/es/useSelectDrill-9f0f793e.js.map +1 -0
  1041. package/es/useSelection-3c8cd738.js +239 -0
  1042. package/es/useSelection-3c8cd738.js.map +1 -0
  1043. package/es/useSelection-82fe842d.js +186 -0
  1044. package/es/useSelection-82fe842d.js.map +1 -0
  1045. package/es/useTabBar-d9412667.js +1 -1
  1046. package/es/useTestId-8b32167f.js +21 -0
  1047. package/es/useTestId-8b32167f.js.map +1 -0
  1048. package/es/useTheme-858b119b.js +19 -0
  1049. package/es/useTheme-858b119b.js.map +1 -0
  1050. package/es/useThemeInterpolations-2531ab6d.js +57 -0
  1051. package/es/useThemeInterpolations-2531ab6d.js.map +1 -0
  1052. package/es/useTooltip-0a3e4842.js +424 -0
  1053. package/es/useTooltip-0a3e4842.js.map +1 -0
  1054. package/es/useTooltipOnTruncation-f5d75b1b.js +27 -0
  1055. package/es/useTooltipOnTruncation-f5d75b1b.js.map +1 -0
  1056. package/es/useTranslationBundle-0dff3ab2.js +29 -0
  1057. package/es/useTranslationBundle-0dff3ab2.js.map +1 -0
  1058. package/es/useUser-6a7f6df3.js +19 -0
  1059. package/es/useUser-6a7f6df3.js.map +1 -0
  1060. package/es/useVisDragModeControls-13a8e826.js +1 -1
  1061. package/es/useVisEvents-8d888727.js +153 -0
  1062. package/es/useVisEvents-8d888727.js.map +1 -0
  1063. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  1064. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  1065. package/es/utils/UNSAFE_popupUtils.js +8 -8
  1066. package/es/withDirectionIcon-938d7cdf.js +14 -0
  1067. package/es/withDirectionIcon-938d7cdf.js.map +1 -0
  1068. package/es/withThemeProps-49e8a2b5.js +2 -2
  1069. package/package.json +2 -2
  1070. package/amd/BaseCardViewSelectionTest-e0356b8b.js +0 -2
  1071. package/amd/BaseCardViewSelectionTest-e0356b8b.js.map +0 -1
  1072. package/amd/BaseNavigationListItem-ef8bf611.js +0 -2
  1073. package/amd/BaseNavigationListItem-ef8bf611.js.map +0 -1
  1074. package/amd/Card-7acfbca5.js +0 -2
  1075. package/amd/Card-7acfbca5.js.map +0 -1
  1076. package/amd/Center-5d2e4d34.js +0 -2
  1077. package/amd/Center-5d2e4d34.js.map +0 -1
  1078. package/amd/CompactLabelAssistance-82361ea6.js +0 -2
  1079. package/amd/CompactLabelAssistance-82361ea6.js.map +0 -1
  1080. package/amd/DatePicker-20e9a255.js +0 -2
  1081. package/amd/DatePicker-20e9a255.js.map +0 -1
  1082. package/amd/Diagram-03be2ca5.js +0 -2
  1083. package/amd/Diagram-03be2ca5.js.map +0 -1
  1084. package/amd/Dialog-dc55a669.js +0 -2
  1085. package/amd/Dialog-dc55a669.js.map +0 -1
  1086. package/amd/DragHandle-d89ea5fd.js +0 -2
  1087. package/amd/DragHandle-d89ea5fd.js.map +0 -1
  1088. package/amd/DrawerPopup-772c8c22.js +0 -2
  1089. package/amd/DrawerPopup-772c8c22.js.map +0 -1
  1090. package/amd/Dropdown-37339c89.js +0 -2
  1091. package/amd/Dropdown-37339c89.js.map +0 -1
  1092. package/amd/EnvironmentProvider-4597f540.js +0 -2
  1093. package/amd/EnvironmentProvider-4597f540.js.map +0 -1
  1094. package/amd/Flex-69dc7af4.js +0 -2
  1095. package/amd/Flex-69dc7af4.js.map +0 -1
  1096. package/amd/Floating-28ad0903.js +0 -2
  1097. package/amd/Floating-28ad0903.js.map +0 -1
  1098. package/amd/Grid-49beb801.js +0 -2
  1099. package/amd/Grid-49beb801.js.map +0 -1
  1100. package/amd/Gridlines-9ec65953.js +0 -2
  1101. package/amd/Gridlines-9ec65953.js.map +0 -1
  1102. package/amd/HighlightText-b020d84d.js +0 -2
  1103. package/amd/HighlightText-b020d84d.js.map +0 -1
  1104. package/amd/IconUserAssistance-b5075ca1.js +0 -2
  1105. package/amd/IconUserAssistance-b5075ca1.js.map +0 -1
  1106. package/amd/InputDatePicker-6af2a6a4.js +0 -2
  1107. package/amd/InputDatePicker-6af2a6a4.js.map +0 -1
  1108. package/amd/Layer-9fb9ca67.js +0 -2
  1109. package/amd/Layer-9fb9ca67.js.map +0 -1
  1110. package/amd/LayerHost-1b4d03f0.js +0 -2
  1111. package/amd/LayerHost-1b4d03f0.js.map +0 -1
  1112. package/amd/LayerManager-6c0b0eed.js +0 -2
  1113. package/amd/LayerManager-6c0b0eed.js.map +0 -1
  1114. package/amd/LineAreaChart-d6300aad.js +0 -2
  1115. package/amd/LineAreaChart-d6300aad.js.map +0 -1
  1116. package/amd/LineSeries-6b2d5fc5.js +0 -2
  1117. package/amd/LineSeries-6b2d5fc5.js.map +0 -1
  1118. package/amd/ListItemLayout-51e98343.js +0 -2
  1119. package/amd/ListItemLayout-51e98343.js.map +0 -1
  1120. package/amd/LiveRegion-345ac2a4.js +0 -2
  1121. package/amd/LiveRegion-345ac2a4.js.map +0 -1
  1122. package/amd/MaxLengthLiveRegion-7723b0df.js +0 -2
  1123. package/amd/MaxLengthLiveRegion-7723b0df.js.map +0 -1
  1124. package/amd/MessageLayer-4238a197.js +0 -2
  1125. package/amd/MessageLayer-4238a197.js.map +0 -1
  1126. package/amd/Modal-991f1310.js +0 -2
  1127. package/amd/Modal-991f1310.js.map +0 -1
  1128. package/amd/MonthView-1a60836e.js +0 -2
  1129. package/amd/MonthView-1a60836e.js.map +0 -1
  1130. package/amd/NavigationListItem-4a6857ae.js +0 -2
  1131. package/amd/NavigationListItem-4a6857ae.js.map +0 -1
  1132. package/amd/OverflowTabBar-d465fab5.js +0 -2
  1133. package/amd/OverflowTabBar-d465fab5.js.map +0 -1
  1134. package/amd/OverflowTabBarItem-e8bb4c0f.js +0 -2
  1135. package/amd/OverflowTabBarItem-e8bb4c0f.js.map +0 -1
  1136. package/amd/Popup-bba2ea15.js +0 -2
  1137. package/amd/Popup-bba2ea15.js.map +0 -1
  1138. package/amd/ProgressBar-4c24733e.js +0 -2
  1139. package/amd/ProgressBar-4c24733e.js.map +0 -1
  1140. package/amd/ProgressCircle-57ce7b94.js +0 -2
  1141. package/amd/ProgressCircle-57ce7b94.js.map +0 -1
  1142. package/amd/RemovableNavigationListItem-87e208e1.js +0 -2
  1143. package/amd/RemovableNavigationListItem-87e208e1.js.map +0 -1
  1144. package/amd/ReorderableTabBar-cdafd5b2.js +0 -2
  1145. package/amd/ReorderableTabBar-cdafd5b2.js.map +0 -1
  1146. package/amd/ScatterChart-de870222.js +0 -2
  1147. package/amd/ScatterChart-de870222.js.map +0 -1
  1148. package/amd/SectionedContent-d75017a3.js +0 -2
  1149. package/amd/SectionedContent-d75017a3.js.map +0 -1
  1150. package/amd/SelectionCard-baeadf9f.js +0 -2
  1151. package/amd/SelectionCard-baeadf9f.js.map +0 -1
  1152. package/amd/SelectorAll-344e3366.js +0 -2
  1153. package/amd/SelectorAll-344e3366.js.map +0 -1
  1154. package/amd/Sheet-f4665056.js +0 -2
  1155. package/amd/Sheet-f4665056.js.map +0 -1
  1156. package/amd/StyledCard-420ef03c.js +0 -2
  1157. package/amd/StyledCard-420ef03c.js.map +0 -1
  1158. package/amd/StyledLabelValueLayout-16380e6b.js +0 -2
  1159. package/amd/StyledLabelValueLayout-16380e6b.js.map +0 -1
  1160. package/amd/TabBar-8a0cbff2.js +0 -2
  1161. package/amd/TabBar-8a0cbff2.js.map +0 -1
  1162. package/amd/TabBarMixed-d4482b12.js +0 -2
  1163. package/amd/TabBarMixed-d4482b12.js.map +0 -1
  1164. package/amd/TabBarMixedSeparator-84722127.js +0 -2
  1165. package/amd/TabBarMixedSeparator-84722127.js.map +0 -1
  1166. package/amd/View-59fe568d.js +0 -2
  1167. package/amd/View-59fe568d.js.map +0 -1
  1168. package/amd/VisNoData-b60000bf.js +0 -2
  1169. package/amd/VisNoData-b60000bf.js.map +0 -1
  1170. package/amd/VisProgressiveLoader-c90f62c3.js +0 -2
  1171. package/amd/VisProgressiveLoader-c90f62c3.js.map +0 -1
  1172. package/amd/VisTabularDatatip-23cf3cfc.js +0 -2
  1173. package/amd/VisTabularDatatip-23cf3cfc.js.map +0 -1
  1174. package/amd/WindowOverlay-00523782.js +0 -2
  1175. package/amd/WindowOverlay-00523782.js.map +0 -1
  1176. package/amd/YearsGridView-b0b18b18.js +0 -2
  1177. package/amd/YearsGridView-b0b18b18.js.map +0 -1
  1178. package/amd/index-32a870a0.js +0 -2
  1179. package/amd/index-32a870a0.js.map +0 -1
  1180. package/amd/popupUtils-710dc910.js +0 -2
  1181. package/amd/popupUtils-710dc910.js.map +0 -1
  1182. package/amd/render-6d2dc229.js +0 -2
  1183. package/amd/render-6d2dc229.js.map +0 -1
  1184. package/amd/tabbableUtils-140cad66.js +0 -2
  1185. package/amd/tabbableUtils-140cad66.js.map +0 -1
  1186. package/amd/testData-bd34f137.js +0 -2
  1187. package/amd/testData-bd34f137.js.map +0 -1
  1188. package/amd/tooltipUtils-304eef18.js +0 -2
  1189. package/amd/tooltipUtils-304eef18.js.map +0 -1
  1190. package/amd/useChartDatatip-1f138781.js +0 -2
  1191. package/amd/useChartDatatip-1f138781.js.map +0 -1
  1192. package/amd/useColorScheme-8358a6c9.js +0 -2
  1193. package/amd/useColorScheme-8358a6c9.js.map +0 -1
  1194. package/amd/useCssVars-4d0eeaa3.js +0 -2
  1195. package/amd/useCssVars-4d0eeaa3.js.map +0 -1
  1196. package/amd/useCurrentBgColor-24e98c84.js +0 -2
  1197. package/amd/useCurrentBgColor-24e98c84.js.map +0 -1
  1198. package/amd/useCurrentKey-5a5ffb1e.js +0 -2
  1199. package/amd/useCurrentKey-5a5ffb1e.js.map +0 -1
  1200. package/amd/useDatatip-db874c22.js +0 -2
  1201. package/amd/useDatatip-db874c22.js.map +0 -1
  1202. package/amd/useDensity-2b757d02.js +0 -2
  1203. package/amd/useDensity-2b757d02.js.map +0 -1
  1204. package/amd/useFloating-c8c92f6f.js +0 -2
  1205. package/amd/useFloating-c8c92f6f.js.map +0 -1
  1206. package/amd/useKeyboardEvents-e66373bb.js +0 -2
  1207. package/amd/useKeyboardEvents-e66373bb.js.map +0 -1
  1208. package/amd/useMeterDatatip-8702ee6e.js +0 -2
  1209. package/amd/useMeterDatatip-8702ee6e.js.map +0 -1
  1210. package/amd/useOutsideClick-39a81428.js +0 -2
  1211. package/amd/useOutsideClick-39a81428.js.map +0 -1
  1212. package/amd/usePopupAnimation-7023407f.js +0 -2
  1213. package/amd/usePopupAnimation-7023407f.js.map +0 -1
  1214. package/amd/usePrefixSuffix-19a86824.js +0 -2
  1215. package/amd/usePrefixSuffix-19a86824.js.map +0 -1
  1216. package/amd/useReorderableItem-fa5fd0f4.js +0 -2
  1217. package/amd/useReorderableItem-fa5fd0f4.js.map +0 -1
  1218. package/amd/useRovingTabIndexContainer-6b89c886.js +0 -2
  1219. package/amd/useRovingTabIndexContainer-6b89c886.js.map +0 -1
  1220. package/amd/useScale-0fb08a15.js +0 -2
  1221. package/amd/useScale-0fb08a15.js.map +0 -1
  1222. package/amd/useSelectDrill-03c65602.js +0 -2
  1223. package/amd/useSelectDrill-03c65602.js.map +0 -1
  1224. package/amd/useSelection-4c8e905b.js +0 -2
  1225. package/amd/useSelection-4c8e905b.js.map +0 -1
  1226. package/amd/useSelection-569188b3.js +0 -2
  1227. package/amd/useSelection-569188b3.js.map +0 -1
  1228. package/amd/useTestId-d0c49456.js +0 -2
  1229. package/amd/useTestId-d0c49456.js.map +0 -1
  1230. package/amd/useTheme-915016ef.js +0 -2
  1231. package/amd/useTheme-915016ef.js.map +0 -1
  1232. package/amd/useThemeInterpolations-95e6f849.js +0 -2
  1233. package/amd/useThemeInterpolations-95e6f849.js.map +0 -1
  1234. package/amd/useTooltip-f7c1ad5c.js +0 -2
  1235. package/amd/useTooltip-f7c1ad5c.js.map +0 -1
  1236. package/amd/useTooltipOnTruncation-7a2a7106.js +0 -2
  1237. package/amd/useTooltipOnTruncation-7a2a7106.js.map +0 -1
  1238. package/amd/useTranslationBundle-652e08a6.js +0 -2
  1239. package/amd/useTranslationBundle-652e08a6.js.map +0 -1
  1240. package/amd/useUser-abae2493.js +0 -2
  1241. package/amd/useUser-abae2493.js.map +0 -1
  1242. package/amd/useVisEvents-a2e7394b.js +0 -2
  1243. package/amd/useVisEvents-a2e7394b.js.map +0 -1
  1244. package/amd/withDirectionIcon-194f3242.js +0 -2
  1245. package/amd/withDirectionIcon-194f3242.js.map +0 -1
  1246. package/cjs/BaseCardView-5ce88700.js +0 -687
  1247. package/cjs/BaseCardView-5ce88700.js.map +0 -1
  1248. package/cjs/CardFlexView-7cb060a4.js +0 -29
  1249. package/cjs/CardFlexView-7cb060a4.js.map +0 -1
  1250. package/cjs/CardGridView-619b8576.js +0 -17
  1251. package/cjs/CardGridView-619b8576.js.map +0 -1
  1252. package/cjs/CheckboxSet-3509aa56.js +0 -53
  1253. package/cjs/CheckboxSet-3509aa56.js.map +0 -1
  1254. package/cjs/Indexer-6f687670.js +0 -339
  1255. package/cjs/Indexer-6f687670.js.map +0 -1
  1256. package/cjs/List-9cf30b46.js +0 -722
  1257. package/cjs/List-9cf30b46.js.map +0 -1
  1258. package/cjs/ListView-1c7cb647.js +0 -430
  1259. package/cjs/ListView-1c7cb647.js.map +0 -1
  1260. package/cjs/LoadMoreCollection-69bc038c.js +0 -34
  1261. package/cjs/LoadMoreCollection-69bc038c.js.map +0 -1
  1262. package/cjs/MaxLengthCounter-9ab3f74b.js +0 -27
  1263. package/cjs/MaxLengthCounter-9ab3f74b.js.map +0 -1
  1264. package/cjs/SelectMultiple-bc3a3333.js +0 -1299
  1265. package/cjs/SelectMultiple-bc3a3333.js.map +0 -1
  1266. package/cjs/SelectSingle-0292841f.js +0 -732
  1267. package/cjs/SelectSingle-0292841f.js.map +0 -1
  1268. package/cjs/Table-cac0f4b6.js +0 -5499
  1269. package/cjs/Table-cac0f4b6.js.map +0 -1
  1270. package/cjs/TableView-edd7e48c.js +0 -33
  1271. package/cjs/TableView-edd7e48c.js.map +0 -1
  1272. package/cjs/TextArea-43ba72b8.js +0 -162
  1273. package/cjs/TextArea-43ba72b8.js.map +0 -1
  1274. package/cjs/TextAreaAutosize-05e6644a.js +0 -246
  1275. package/cjs/TextAreaAutosize-05e6644a.js.map +0 -1
  1276. package/cjs/VirtualizedCollection-9e8c48b9.js +0 -180
  1277. package/cjs/VirtualizedCollection-9e8c48b9.js.map +0 -1
  1278. package/cjs/VirtualizedListView-d9fce8ed.js +0 -16
  1279. package/cjs/VirtualizedListView-d9fce8ed.js.map +0 -1
  1280. package/cjs/useSelectCommon-78871095.js +0 -709
  1281. package/cjs/useSelectCommon-78871095.js.map +0 -1
  1282. package/es/BarChart-a39136c2.js +0 -179
  1283. package/es/BarChart-a39136c2.js.map +0 -1
  1284. package/es/BaseCardView-87a16541.js +0 -683
  1285. package/es/BaseCardView-87a16541.js.map +0 -1
  1286. package/es/BaseCardViewSelectionTest-639276bd.js +0 -721
  1287. package/es/BaseCardViewSelectionTest-639276bd.js.map +0 -1
  1288. package/es/Card-48705b23.js +0 -15
  1289. package/es/Card-48705b23.js.map +0 -1
  1290. package/es/CardFlexView-8149a998.js +0 -27
  1291. package/es/CardFlexView-8149a998.js.map +0 -1
  1292. package/es/CardGridView-4e967eaa.js +0 -15
  1293. package/es/CardGridView-4e967eaa.js.map +0 -1
  1294. package/es/Center-f5a074ea.js +0 -16
  1295. package/es/Center-f5a074ea.js.map +0 -1
  1296. package/es/Chart-cd1c9eb2.js +0 -491
  1297. package/es/Chart-cd1c9eb2.js.map +0 -1
  1298. package/es/ComboChart-1d1d46cc.js +0 -172
  1299. package/es/ComboChart-1d1d46cc.js.map +0 -1
  1300. package/es/CompactLabelAssistance-e6df8b6f.js +0 -34
  1301. package/es/CompactLabelAssistance-e6df8b6f.js.map +0 -1
  1302. package/es/DatePicker-f149bde7.js +0 -564
  1303. package/es/DatePicker-f149bde7.js.map +0 -1
  1304. package/es/Diagram-32842af8.js +0 -2035
  1305. package/es/Diagram-32842af8.js.map +0 -1
  1306. package/es/Dialog-dbd00dbd.js +0 -344
  1307. package/es/Dialog-dbd00dbd.js.map +0 -1
  1308. package/es/DragHandle-3010d22c.js +0 -22
  1309. package/es/DragHandle-3010d22c.js.map +0 -1
  1310. package/es/DrawerPopup-90be1472.js +0 -381
  1311. package/es/DrawerPopup-90be1472.js.map +0 -1
  1312. package/es/Dropdown-8936afb0.js +0 -80
  1313. package/es/Dropdown-8936afb0.js.map +0 -1
  1314. package/es/EnvironmentProvider-e6ce326b.js +0 -58
  1315. package/es/EnvironmentProvider-e6ce326b.js.map +0 -1
  1316. package/es/Flex-dce7c423.js +0 -30
  1317. package/es/Flex-dce7c423.js.map +0 -1
  1318. package/es/Floating-bd10e1bb.js +0 -462
  1319. package/es/Floating-bd10e1bb.js.map +0 -1
  1320. package/es/Grid-a92f6ff7.js +0 -27
  1321. package/es/Grid-a92f6ff7.js.map +0 -1
  1322. package/es/Gridlines-14e60b77.js +0 -168
  1323. package/es/Gridlines-14e60b77.js.map +0 -1
  1324. package/es/HighlightText-6fb192ee.js +0 -31
  1325. package/es/HighlightText-6fb192ee.js.map +0 -1
  1326. package/es/IconUserAssistance-bb4f169d.js +0 -73
  1327. package/es/IconUserAssistance-bb4f169d.js.map +0 -1
  1328. package/es/Indexer-80254b3c.js +0 -336
  1329. package/es/Indexer-80254b3c.js.map +0 -1
  1330. package/es/Layer-f309effc.js +0 -91
  1331. package/es/Layer-f309effc.js.map +0 -1
  1332. package/es/LayerHost-ca080d9a.js +0 -40
  1333. package/es/LayerHost-ca080d9a.js.map +0 -1
  1334. package/es/LayerManager-3e4e8d1a.js +0 -34
  1335. package/es/LayerManager-3e4e8d1a.js.map +0 -1
  1336. package/es/LineAreaChart-16cf6356.js +0 -170
  1337. package/es/LineAreaChart-16cf6356.js.map +0 -1
  1338. package/es/LineSeries-89d507a5.js +0 -109
  1339. package/es/LineSeries-89d507a5.js.map +0 -1
  1340. package/es/List-4e5ab994.js +0 -717
  1341. package/es/List-4e5ab994.js.map +0 -1
  1342. package/es/ListItemLayout-b580a2cb.js +0 -110
  1343. package/es/ListItemLayout-b580a2cb.js.map +0 -1
  1344. package/es/ListView-c8de746b.js +0 -428
  1345. package/es/ListView-c8de746b.js.map +0 -1
  1346. package/es/LiveRegion-7d6e9b93.js +0 -39
  1347. package/es/LiveRegion-7d6e9b93.js.map +0 -1
  1348. package/es/LoadMoreCollection-7df1be36.js +0 -31
  1349. package/es/LoadMoreCollection-7df1be36.js.map +0 -1
  1350. package/es/MaxLengthCounter-181b4fc9.js +0 -25
  1351. package/es/MaxLengthCounter-181b4fc9.js.map +0 -1
  1352. package/es/MaxLengthLiveRegion-3d6867c3.js +0 -23
  1353. package/es/MaxLengthLiveRegion-3d6867c3.js.map +0 -1
  1354. package/es/MessageLayer-707a3302.js +0 -58
  1355. package/es/MessageLayer-707a3302.js.map +0 -1
  1356. package/es/Modal-9bdb87a4.js +0 -274
  1357. package/es/Modal-9bdb87a4.js.map +0 -1
  1358. package/es/MonthView-7f913bb2.js +0 -208
  1359. package/es/MonthView-7f913bb2.js.map +0 -1
  1360. package/es/Popup-0b60095e.js +0 -258
  1361. package/es/Popup-0b60095e.js.map +0 -1
  1362. package/es/ProgressBar-717be5e8.js +0 -62
  1363. package/es/ProgressBar-717be5e8.js.map +0 -1
  1364. package/es/ProgressCircle-d75b0848.js +0 -48
  1365. package/es/ProgressCircle-d75b0848.js.map +0 -1
  1366. package/es/ScatterChart-8fa8ea38.js +0 -103
  1367. package/es/ScatterChart-8fa8ea38.js.map +0 -1
  1368. package/es/SectionedContent-89fd6108.js +0 -64
  1369. package/es/SectionedContent-89fd6108.js.map +0 -1
  1370. package/es/SelectMultiple-1e8a183a.js +0 -1297
  1371. package/es/SelectMultiple-1e8a183a.js.map +0 -1
  1372. package/es/SelectSingle-b66c3ae5.js +0 -730
  1373. package/es/SelectSingle-b66c3ae5.js.map +0 -1
  1374. package/es/SelectionCard-4cf71979.js +0 -16
  1375. package/es/SelectionCard-4cf71979.js.map +0 -1
  1376. package/es/SelectorAll-401564d3.js +0 -69
  1377. package/es/SelectorAll-401564d3.js.map +0 -1
  1378. package/es/Sheet-754bd0f0.js +0 -158
  1379. package/es/Sheet-754bd0f0.js.map +0 -1
  1380. package/es/StyledCard-2dc6d348.js +0 -105
  1381. package/es/StyledCard-2dc6d348.js.map +0 -1
  1382. package/es/StyledLabelValueLayout-f3d69ee8.js +0 -18
  1383. package/es/StyledLabelValueLayout-f3d69ee8.js.map +0 -1
  1384. package/es/TabBarMixedSeparator-dd80c7f2.js +0 -19
  1385. package/es/TabBarMixedSeparator-dd80c7f2.js.map +0 -1
  1386. package/es/Table-970adc38.js +0 -5497
  1387. package/es/Table-970adc38.js.map +0 -1
  1388. package/es/TableView-28ac0166.js +0 -31
  1389. package/es/TableView-28ac0166.js.map +0 -1
  1390. package/es/TextArea-9da8decd.js +0 -160
  1391. package/es/TextArea-9da8decd.js.map +0 -1
  1392. package/es/TextAreaAutosize-2e043744.js +0 -244
  1393. package/es/TextAreaAutosize-2e043744.js.map +0 -1
  1394. package/es/View-6941c4ec.js +0 -167
  1395. package/es/View-6941c4ec.js.map +0 -1
  1396. package/es/VirtualizedCollection-f048fbb8.js +0 -176
  1397. package/es/VirtualizedCollection-f048fbb8.js.map +0 -1
  1398. package/es/VirtualizedListView-aa8e6003.js +0 -14
  1399. package/es/VirtualizedListView-aa8e6003.js.map +0 -1
  1400. package/es/VisNoData-6c9dff1d.js +0 -32
  1401. package/es/VisNoData-6c9dff1d.js.map +0 -1
  1402. package/es/VisProgressiveLoader-af51c524.js +0 -51
  1403. package/es/VisProgressiveLoader-af51c524.js.map +0 -1
  1404. package/es/VisTabularDatatip-1aba2c3f.js +0 -24
  1405. package/es/VisTabularDatatip-1aba2c3f.js.map +0 -1
  1406. package/es/WindowOverlay-77a01a5a.js +0 -110
  1407. package/es/WindowOverlay-77a01a5a.js.map +0 -1
  1408. package/es/YearsGridView-38b7d276.js +0 -187
  1409. package/es/YearsGridView-38b7d276.js.map +0 -1
  1410. package/es/index-b52817d6.js +0 -11
  1411. package/es/index-b52817d6.js.map +0 -1
  1412. package/es/popupUtils-0d643529.js +0 -29
  1413. package/es/popupUtils-0d643529.js.map +0 -1
  1414. package/es/render-f43f5632.js +0 -34
  1415. package/es/render-f43f5632.js.map +0 -1
  1416. package/es/tabbableUtils-07dfa9ce.js +0 -79
  1417. package/es/tabbableUtils-07dfa9ce.js.map +0 -1
  1418. package/es/testData-75eb4f26.js +0 -256
  1419. package/es/testData-75eb4f26.js.map +0 -1
  1420. package/es/tooltipUtils-ae6aba72.js +0 -93
  1421. package/es/tooltipUtils-ae6aba72.js.map +0 -1
  1422. package/es/useChartDatatip-ae7cffcb.js +0 -165
  1423. package/es/useChartDatatip-ae7cffcb.js.map +0 -1
  1424. package/es/useColorScheme-831abf37.js +0 -19
  1425. package/es/useColorScheme-831abf37.js.map +0 -1
  1426. package/es/useCssVars-6295c03a.js +0 -58
  1427. package/es/useCssVars-6295c03a.js.map +0 -1
  1428. package/es/useCurrentBgColor-93b70106.js +0 -19
  1429. package/es/useCurrentBgColor-93b70106.js.map +0 -1
  1430. package/es/useCurrentKey-30089ba4.js +0 -81
  1431. package/es/useCurrentKey-30089ba4.js.map +0 -1
  1432. package/es/useDatatip-3f284ad3.js +0 -90
  1433. package/es/useDatatip-3f284ad3.js.map +0 -1
  1434. package/es/useDensity-2ca5177c.js +0 -19
  1435. package/es/useDensity-2ca5177c.js.map +0 -1
  1436. package/es/useFloating-b1378797.js +0 -1916
  1437. package/es/useFloating-b1378797.js.map +0 -1
  1438. package/es/useKeyboardEvents-7a19700e.js +0 -78
  1439. package/es/useKeyboardEvents-7a19700e.js.map +0 -1
  1440. package/es/useMeterDatatip-814ca87d.js +0 -73
  1441. package/es/useMeterDatatip-814ca87d.js.map +0 -1
  1442. package/es/useOutsideClick-d0b44256.js +0 -101
  1443. package/es/useOutsideClick-d0b44256.js.map +0 -1
  1444. package/es/usePopupAnimation-0c5517c7.js +0 -85
  1445. package/es/usePopupAnimation-0c5517c7.js.map +0 -1
  1446. package/es/usePrefixSuffix-28d8172f.js +0 -70
  1447. package/es/usePrefixSuffix-28d8172f.js.map +0 -1
  1448. package/es/useReorderableItem-abc9c68c.js +0 -268
  1449. package/es/useReorderableItem-abc9c68c.js.map +0 -1
  1450. package/es/useRovingTabIndexContainer-d8dcffff.js +0 -98
  1451. package/es/useRovingTabIndexContainer-d8dcffff.js.map +0 -1
  1452. package/es/useScale-c315e304.js +0 -19
  1453. package/es/useScale-c315e304.js.map +0 -1
  1454. package/es/useSelectCommon-410eeffd.js +0 -686
  1455. package/es/useSelectCommon-410eeffd.js.map +0 -1
  1456. package/es/useSelectDrill-9eb9b7fa.js +0 -104
  1457. package/es/useSelectDrill-9eb9b7fa.js.map +0 -1
  1458. package/es/useSelection-534b1fa0.js +0 -186
  1459. package/es/useSelection-534b1fa0.js.map +0 -1
  1460. package/es/useSelection-5375aa2e.js +0 -239
  1461. package/es/useSelection-5375aa2e.js.map +0 -1
  1462. package/es/useTestId-014cca7c.js +0 -21
  1463. package/es/useTestId-014cca7c.js.map +0 -1
  1464. package/es/useTheme-a4243428.js +0 -19
  1465. package/es/useTheme-a4243428.js.map +0 -1
  1466. package/es/useThemeInterpolations-93048af6.js +0 -57
  1467. package/es/useThemeInterpolations-93048af6.js.map +0 -1
  1468. package/es/useTooltip-d4dfd848.js +0 -424
  1469. package/es/useTooltip-d4dfd848.js.map +0 -1
  1470. package/es/useTooltipOnTruncation-82d93e22.js +0 -27
  1471. package/es/useTooltipOnTruncation-82d93e22.js.map +0 -1
  1472. package/es/useTranslationBundle-29a1abb3.js +0 -29
  1473. package/es/useTranslationBundle-29a1abb3.js.map +0 -1
  1474. package/es/useUser-9c8d0e57.js +0 -19
  1475. package/es/useUser-9c8d0e57.js.map +0 -1
  1476. package/es/useVisEvents-45115f09.js +0 -153
  1477. package/es/useVisEvents-45115f09.js.map +0 -1
  1478. package/es/withDirectionIcon-70ce263c.js +0 -14
  1479. package/es/withDirectionIcon-70ce263c.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawerPopup-772c8c22.js","sources":["../../src/UNSAFE_DrawerPopup/DrawerPopup.tsx"],"sourcesContent":["import { JSX, RefObject } from 'preact';\nimport { useState, useRef, useEffect, useCallback, useMemo } from 'preact/hooks';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { Layer } from '../UNSAFE_Layer';\nimport { Modal } from '../UNSAFE_Modal';\nimport { FocusTrap } from '../UNSAFE_FocusTrap';\nimport {\n getAutofocusFocusables,\n focusOn,\n focusWithin,\n getActiveElement,\n focusOnElementOrNearestAncestor\n} from '../utils/PRIVATE_tabbableUtils';\nimport { normalizePosition } from '../utils/PRIVATE_floatingUtils';\nimport { RtlSide } from '../UNSAFE_Floating';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\n\n// Hooks\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { useAnimation } from '../hooks/UNSAFE_useAnimation';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useSwipe } from '../hooks/UNSAFE_useSwipe';\n\n// Style imports\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { DrawerPopupVariantOptions } from './themes/DrawerPopupStyles.css';\nimport { colorInterpolations, ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { DrawerPopupRedwoodTheme } from './themes/redwood/DrawerPopupTheme';\n\n// Types\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\ntype Placement = 'start' | 'end' | 'bottom';\ntype NormalizedPlacement = 'left' | 'right' | 'bottom';\ntype Status = 'unmounted' | 'initial' | 'opening' | 'closing';\ntype VisibilityStatus = 'hidden' | 'visible';\ntype DisplayModeHorizontal = 'overlay' | 'fullOverlay';\ntype OnCloseDetail = {\n reason: 'outsideClick' | 'escapeKey' | 'swipe';\n};\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> & {\n /**\n * Specifies whether the Drawer is open.\n */\n isOpen: boolean;\n /**\n * Specifies at what edge the Drawer opens.\n * Supported values are:\n * <p><code>start</code>, <code>end</code>, <code>bottom</code></p>\n * Default is <code>start</code>.\n */\n placement?: Placement;\n /**\n * Specifies modality of the Darwer.\n * Supported values are:\n * <p><code>modal</code>, <code>modeless</code></p>\n * Default is <code>modal</code>.\n */\n modality?: 'modal' | 'modeless';\n /**\n * Specifies callback triggered when a user tries to close a Drawer through UI interaction.\n * The parent should listen to this event and close the Drawer. If the parent fails to remove\n * the Popup, then no change will be done in the UI by the component.\n * Supported detail values are:\n * <p><code>outsideClick</code>, <code>escapeKey</code></p>, <code>swipe</code>\n */\n onClose?: (detail: OnCloseDetail) => void;\n /**\n * Specifies callback triggered after the animation ends.\n */\n onTransitionEnd?: (value: boolean) => void;\n /**\n * Optional ref for an element to focus on when component mounts.\n */\n autoFocusRef?: RefObject<HTMLElement>;\n /**\n * Specifies guidance for screen readers.\n */\n 'aria-label'?: string;\n /**\n * Specifies ID of an element used for guidance for screen readers.\n */\n 'aria-labelledby'?: string;\n /**\n * Specifies ID of an element (or space separated IDs of multiple elements) that\n * describes the Drawer.\n */\n 'aria-describedby'?: string;\n } & TestIdProps;\n\n// Constants\nconst displayModefullWidthThreshold = 600;\nconst zero = '0px';\nconst duration = 250;\n\nconst getElementHeight = (element: HTMLDivElement): number => {\n return Math.round(element.offsetHeight);\n};\n\nconst getElementWidth = (element: HTMLDivElement): number => {\n return Math.round(element.getBoundingClientRect().width);\n};\n\n/**\n * A drawer popup adds a single slide-in side content alongside some primary content to an application window.\n *\n * This drawer always overlays the page and can be placed at the 'start', 'end' or 'bottom' edge.\n */\nexport const DrawerPopup = forwardRef(\n (\n {\n children,\n isOpen = false,\n autoFocusRef,\n placement = 'start',\n modality = 'modal',\n onClose,\n onTransitionEnd,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n testId,\n ...props\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n // Initialize states\n const [status, setStatus] = useState<Status>(isOpen ? 'initial' : 'unmounted');\n const [visibility, setVisibility] = useState<VisibilityStatus>('hidden');\n const [isOutsideClickDisabled, setIsOutsideClickDisabled] = useState<boolean>(!isOpen);\n const [displayModeHorizontal, setDisplayModeHorizontal] =\n useState<DisplayModeHorizontal>('overlay');\n\n const prevStatusRef = useRef<Status>('unmounted');\n\n const rootRef = useRef<HTMLDivElement>(null);\n const launcherRef = useRef<HTMLElement | null>(null);\n\n const mergedRef = useMemo(() => mergeRefs(rootRef, ref), [rootRef, ref]);\n\n const isBottomPlacement = placement === 'bottom';\n const shouldReturnFocus = useRef<boolean>(false);\n\n // Animation config\n const animationStates = {\n opening: () => {\n if (isBottomPlacement) {\n return {\n from: {\n translateY: getTranslateY()\n },\n to: {\n translateY: zero\n },\n options: {\n duration: duration\n }\n };\n } else {\n return {\n from: {\n translateX: getTranslateX()\n },\n to: {\n translateX: zero\n },\n options: {\n duration: duration\n }\n };\n }\n },\n closing: () => {\n if (isBottomPlacement) {\n return {\n from: {\n translateY: zero\n },\n to: {\n translateY: getTranslateY()\n },\n options: {\n duration: duration\n }\n };\n } else {\n return {\n from: {\n translateX: zero\n },\n to: {\n translateX: getTranslateX()\n },\n options: {\n duration: duration\n }\n };\n }\n }\n };\n\n // testId support\n const testIdProps = useTestId(testId);\n\n // Normalizing position\n const { direction } = useUser();\n const getNormalizedPlacement = (): RtlSide => {\n return normalizePosition(placement, direction);\n };\n\n const getTranslateX = (): string => {\n return `${getNormalizedPlacement() === 'right' ? '' : '-'}${getElementWidth(\n rootRef.current as HTMLDivElement\n )}px`;\n };\n\n const getTranslateY = (): string => {\n return `${getElementHeight(rootRef.current as HTMLDivElement)}px`;\n };\n\n const setInitialFocus = () => {\n // Set focus to the first match:\n // 1. First element inside the drawer matching [autofocus]\n const autofocusItems: HTMLElement[] = getAutofocusFocusables(rootRef.current as HTMLElement);\n if (autofocusItems.length > 0) {\n focusOn(autofocusItems[0]);\n return;\n }\n // 2. Tabbable element inside the content element\n // 3. The drawer itself\n focusWithin(rootRef.current as HTMLElement);\n };\n\n const returnFocusToLauncher = (): void => {\n if (shouldReturnFocus.current) {\n focusOnElementOrNearestAncestor(launcherRef.current as HTMLElement);\n shouldReturnFocus.current = false;\n }\n };\n\n // Remove style attribute left on the element by the Animation util\n const removeAnimationInlineStyles = useCallback(() => {\n rootRef.current?.style?.removeProperty('transform');\n }, []);\n\n // Animation\n const { nodeRef } = useAnimation<Status, HTMLDivElement>(status, {\n animationStates,\n isAnimatedOnMount: true,\n onAnimationEnd: () => {\n if (status === 'opening') {\n removeAnimationInlineStyles();\n setInitialFocus();\n onTransitionEnd?.(true);\n } else if (!isOpen) {\n shouldReturnFocus.current =\n rootRef.current?.contains(getActiveElement() as HTMLElement) || false;\n nodeRef(null);\n setVisibility('hidden');\n setStatus('unmounted');\n onTransitionEnd?.(false);\n }\n }\n });\n\n useEffect(() => {\n // 1. Ignore status update on initial render\n if (status === 'unmounted' && !isOpen && status !== prevStatusRef.current) {\n returnFocusToLauncher();\n }\n\n // 2. Mount visually hidden component\n // Component gets mounted, but will be visually hidden to avoid flickering\n // Flickering happens because it gets rendered before animation hook repositions\n // it in next render cycle\n else if (status === 'unmounted' && isOpen) {\n setStatus('initial');\n }\n\n // 3. Setup animation\n // Component has been mounted.\n // We will kick out animation as node is already present in DOM.\n // To avoid flickering, we still keep it visually hidden until the next render cycle.\n else if (status === 'initial' && isOpen) {\n nodeRef(rootRef.current);\n setIsOutsideClickDisabled(false);\n setStatus('opening');\n }\n\n // 3. Unhide component. It becomes visible.\n else if (status === 'opening' && isOpen) {\n setVisibility('visible');\n }\n\n // 4. Closing\n else if (!isOpen && status !== 'unmounted') {\n setIsOutsideClickDisabled(true);\n setStatus('closing');\n }\n\n return () => {\n // remember the previous status\n prevStatusRef.current = status;\n };\n }, [isOpen, status, nodeRef]);\n\n // Destroy case handler\n useEffect(() => {\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n if (rootRef.current?.contains(getActiveElement() as HTMLElement) || false) {\n // In destroy case ModalManager is blocking returning of the focus.\n // We need to reschedule it to workaround that\n setTimeout(() => {\n focusOnElementOrNearestAncestor(launcherRef.current as HTMLElement);\n }, 0);\n }\n };\n }, []);\n\n // Launcher handler\n useEffect(() => {\n if (status === 'opening') {\n // Remember launcher\n launcherRef.current = getActiveElement() as HTMLElement;\n\n // Register F6 key handler. It is modeless only feature.\n if (modality === 'modeless') {\n launcherRef.current?.addEventListener('keydown', launcherKeyDownCallback);\n }\n }\n if (status === 'closing' && modality === 'modeless') {\n return () => {\n // Deregister F6 key handler\n launcherRef.current?.removeEventListener('keydown', launcherKeyDownCallback);\n };\n }\n return;\n }, [modality, status]);\n\n const launcherKeyDownCallback = (event: KeyboardEvent): void => {\n // Moves focus from launcher (must have focus) back to the Drawer\n if (launcherRef.current === getActiveElement() && event.code === 'F6') {\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n\n // Focus on first tabbable in a container or container itself if there is none\n focusWithin(rootRef.current as HTMLElement);\n }\n };\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n const launcherEl = launcherRef.current;\n switch (event.code) {\n case 'Escape': {\n onClose?.({ reason: 'escapeKey' });\n break;\n }\n case 'F6':\n if (modality === 'modeless') {\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n // Focus launcher\n if (launcherEl) {\n focusOn(launcherEl);\n }\n break;\n }\n }\n },\n [onClose, modality]\n );\n\n // OutsideClick handler\n const handleOutsideClick = useCallback(() => {\n // Trigger onClose event with outside click detail\n onClose?.({ reason: 'outsideClick' });\n }, [onClose]);\n\n const insideRefs: RefObject<HTMLElement>[] = [rootRef];\n // launcher should be considered an \"inside\" element\n if (launcherRef.current && launcherRef.current !== document.body) {\n insideRefs.push(launcherRef);\n }\n\n useOutsideClick({\n isDisabled: isOutsideClickDisabled,\n ref: insideRefs,\n handler: handleOutsideClick\n });\n\n // Drawer placement\n const getDrawerPlacement = (): NormalizedPlacement => {\n if (isBottomPlacement) {\n return placement;\n } else {\n if (direction === 'rtl') {\n return placement === 'start' ? 'right' : 'left';\n } else {\n return placement === 'start' ? 'left' : 'right';\n }\n }\n };\n\n const clientHints = getClientHints();\n\n const getViewportWidth = useCallback((): number => {\n if (clientHints.platform === 'ios') {\n // On ios window.innerWidth is not recommended way of measuring the viewport\n return document.documentElement.clientWidth;\n }\n return window.innerWidth;\n }, [clientHints.platform]);\n\n // Window resize handler\n // Handles display mode: Overlay <> Full overlay (full width side drawers)\n const handleResize = useCallback(() => {\n const viewportWidth = getViewportWidth();\n if (displayModeHorizontal === 'overlay' && viewportWidth < displayModefullWidthThreshold) {\n setDisplayModeHorizontal('fullOverlay');\n }\n if (\n displayModeHorizontal === 'fullOverlay' &&\n viewportWidth > displayModefullWidthThreshold\n ) {\n setDisplayModeHorizontal('overlay');\n }\n }, [getViewportWidth, displayModeHorizontal]);\n\n useEffect(() => {\n const root = rootRef.current;\n if (root && status === 'opening') {\n const resizeObserver = new ResizeObserver(() => {\n handleResize();\n });\n resizeObserver.observe(document.body);\n return () => {\n resizeObserver.unobserve(document.body);\n };\n }\n return undefined;\n }, [status, handleResize]);\n\n const dispatchSwipeOnClose = useCallback(() => {\n onClose?.({ reason: 'swipe' });\n }, [onClose]);\n\n // OutsideClick handler\n const swipeHandler = useCallback(\n (event: any): void => {\n const swipeDir = event.direction;\n // LTR\n if (direction === 'ltr') {\n if (\n (placement === 'start' && swipeDir === 'left') ||\n (placement === 'end' && swipeDir === 'right')\n ) {\n dispatchSwipeOnClose();\n }\n }\n // RTL\n if (direction === 'rtl') {\n if (\n (placement === 'start' && swipeDir === 'right') ||\n (placement === 'end' && swipeDir === 'left')\n ) {\n dispatchSwipeOnClose();\n }\n }\n // Bottom\n if (placement === 'bottom' && swipeDir === 'down') {\n dispatchSwipeOnClose();\n }\n },\n [direction, placement, dispatchSwipeOnClose]\n );\n\n const swipeOptions = {\n threshold: 50,\n maximumTime: 750,\n tolerance: 40\n };\n const { swipeProps } = useSwipe(swipeHandler, swipeOptions);\n\n // Styles\n const { classes } = useComponentTheme<DrawerPopupVariantOptions>(DrawerPopupRedwoodTheme, {\n placement: getDrawerPlacement(),\n visibility,\n displayModeHorizontal:\n ['start', 'end'].indexOf(placement) > -1 ? displayModeHorizontal : undefined\n });\n\n const interpolations = [...Object.values(colorInterpolations)];\n const styleInterpolations = mergeInterpolations<ColorProps>(interpolations);\n const { ...styles } = styleInterpolations(props);\n\n const renderDrawer = () => {\n return (\n <FocusTrap autoFocusRef={autoFocusRef} restoreFocusRef={false}>\n <div\n ref={mergedRef}\n className={classes}\n style={styles}\n tabIndex={-1}\n role=\"dialog\"\n onKeyDown={handleKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...swipeProps}\n {...testIdProps}>\n {children}\n </div>\n </FocusTrap>\n );\n };\n\n const isMounted = status !== 'unmounted';\n if (isMounted) {\n // Modal vs. modelss upper wrapper\n if (modality === 'modal') {\n return <Modal isOpen={isMounted}>{renderDrawer()}</Modal>;\n } else {\n return <Layer>{renderDrawer()}</Layer>;\n }\n }\n\n return null;\n }\n);\n"],"names":["zero","duration","DrawerPopup","forwardRef","children","isOpen","autoFocusRef","placement","modality","onClose","onTransitionEnd","ariaLabel","ariaLabelledBy","ariaDescribedBy","testId","props","ref","status","setStatus","useState","visibility","setVisibility","isOutsideClickDisabled","setIsOutsideClickDisabled","displayModeHorizontal","setDisplayModeHorizontal","prevStatusRef","useRef","rootRef","launcherRef","mergedRef","useMemo","mergeRefs","isBottomPlacement","shouldReturnFocus","animationStates","opening","from","translateY","getTranslateY","to","options","translateX","getTranslateX","closing","testIdProps","useTestId","direction","useUser","normalizePosition","element","current","Math","round","getBoundingClientRect","width","offsetHeight","removeAnimationInlineStyles","useCallback","style","removeProperty","nodeRef","useAnimation","isAnimatedOnMount","onAnimationEnd","autofocusItems","getAutofocusFocusables","length","focusOn","focusWithin","setInitialFocus","contains","getActiveElement","useEffect","focusOnElementOrNearestAncestor","setTimeout","addEventListener","launcherKeyDownCallback","removeEventListener","event","code","preventDefault","stopPropagation","handleKeyDown","launcherEl","reason","handleOutsideClick","insideRefs","document","body","push","useOutsideClick","isDisabled","handler","clientHints","getClientHints","getViewportWidth","platform","documentElement","clientWidth","window","innerWidth","handleResize","viewportWidth","resizeObserver","ResizeObserver","observe","unobserve","dispatchSwipeOnClose","swipeHandler","swipeDir","swipeProps","useSwipe","threshold","maximumTime","tolerance","classes","useComponentTheme","DrawerPopupRedwoodTheme","indexOf","undefined","interpolations","Object","values","colorInterpolations","styleInterpolations","mergeInterpolations","styles","renderDrawer","_jsx","FocusTrap","restoreFocusRef","className","tabIndex","role","onKeyDown","isMounted","jsx","Modal","Layer"],"mappings":"skBA+FA,MACMA,EAAO,MACPC,EAAW,IAeJC,EAAcC,EAAUA,YACnC,EA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ating-28ad0903', './Layer-9fb9ca67', 'preact/compat', './LayerHost-1b4d03f0', './keyboardUtils-71bc5d84', './tabbableUtils-428c264e', './usePopupAnimation-7023407f', './popupAnimationUtils-49b93365', './CollectionInteractionContext-0b4ed98b', './UNSAFE_Dropdown/themes/dropdownStyles.css', './useOutsideMousedown-73d5a78a', './animationUtils-716a9aa6'], (function(e,n,t,i,o,s,a,r,d,l,c,u,p,f,m){"use strict";const b={mainAxis:4,crossAxis:0},h={isMaxWidthAdjusted:!0,isMaxHeightAdjusted:!0},O={mainAxis:!0,crossAxis:!0},g={opening:e=>m.mergeAnimationStateObjects([m.SCALE_UP_FULL,{from:{transformOrigin:c.getTransformOrigin(e.placement,e.direction)},to:{transformOrigin:c.getTransformOrigin(e.placement,e.direction)}}],{duration:m.DURATION_LARGE})};e.Dropdown=function({isOpen:e=!1,anchorRef:s,children:a,id:c,onClose:m,minWidth:A,placement:x="bottom-start",offset:C=b,onPosition:P,flipOptions:j=O,sizeOptions:w=h,shiftOptions:y,initialFocus:S="none"}){const E=t.useRef(null),U=t.useCallback((e=>{if(e&&"firstFocusable"===S){const e=E.current;e&&d.focusWithin(e)}}),[S]),{status:F,setAnimationElementRef:L,onPosition:R}=l.usePopupAnimation({isOpen:e,placement:x,isAnimatedOnMount:!0,animationStates:g,onPosition:P,onTransitionEnd:U}),M=t.useCallback((e=>{m?.({reason:"outsideMousedown",target:e.target})}),[m]),k=t.useCallback((e=>{if(!e.defaultPrevented)switch(e.code){case r.KEYS.ESC:case r.KEYS.TAB:m?.({reason:"dismissed"})}}),[m]);return f.useOutsideMousedown({isDisabled:!1,ref:[E],handler:M}),n.jsx(n.Fragment,{children:"unmounted"!==F?n.jsx(o.Layer,{logicalParentRef:s,children:n.jsx(i.Floating,{anchorRef:s,ref:L,placement:x,flipOptions:j,shiftOptions:y,sizeOptions:w,offsetValue:C,onPosition:R,boundaryOptions:{padding:{top:8,bottom:8,left:0,right:0}},children:n.jsx("div",{ref:E,id:c,class:p.dropdownStyles.base,style:{minWidth:`${A||0}px`},onKeyDown:k,children:n.jsx(u.CollectionInteractionContext.Provider,{value:"embedded",children:a})})})}):null})}}));
2
- //# sourceMappingURL=Dropdown-37339c89.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dropdown-37339c89.js","sources":["../../src/UNSAFE_Dropdown/Dropdown.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, RefObject, JSX } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\n\nimport { Floating } from '../UNSAFE_Floating';\nimport { Layer } from '../UNSAFE_Layer';\nimport { KEYS } from '../utils/PRIVATE_keyboardUtils';\nimport { focusWithin } from '../utils/PRIVATE_tabbableUtils';\nimport { usePopupAnimation } from '#UNSAFE_Popup/usePopupAnimation';\nimport { getTransformOrigin } from '#utils/PRIVATE_popupAnimationUtils';\nimport { AnimationPopupElement } from '../UNSAFE_Popup/usePopupAnimation';\nimport { CollectionInteractionContext } from '#hooks/UNSAFE_useCollectionInteractionContext';\n\nimport { dropdownStyles } from './themes/dropdownStyles.css';\nimport { useOutsideMousedown } from '../hooks/PRIVATE_useOutsideMousedown';\nimport {\n DURATION_LARGE,\n SCALE_UP_FULL,\n mergeAnimationStateObjects\n} from '#utils/PRIVATE_animationUtils';\n\ntype FloatingProps = ComponentProps<typeof Floating>;\n\n//Same as Menu onClose, only difference is mouseDown instead of outside click\n//Once menu consumes dropdown is going to start using mouseDown\nexport type CloseDetail = { reason: 'dismissed' } | { reason: 'outsideMousedown'; target: Element };\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\ntype Props = IntrinsicProps & {\n /**\n *Specifies whether Dropdown is open.\n */\n isOpen?: boolean;\n /**\n * Trigger element reference.\n */\n anchorRef: FloatingProps['anchorRef'];\n /**\n * Id of the dropdown container.\n * Used usually for accesibility reasons.\n */\n id?: string;\n /**\n * Called when dropdown is supposed to be closed.\n * Called when user tab/esc or mouseDown outside the dropdown.\n */\n onClose?: (detail: CloseDetail) => void;\n /**\n *Min width represented in pixels of the dropdown container.\n */\n minWidth?: number;\n /**\n * Placement of the floating element relative to its reference element.\n */\n placement?: FloatingProps['placement'];\n /**\n * Offset displaces the floating element from its core placement along the specified axes.\n */\n offset?: FloatingProps['offsetValue'];\n /**\n * Triggered when placement or coordinates are changed after collision is detected.\n */\n onPosition?: FloatingProps['onPosition'];\n /**\n * Specifies the flipping behavior along the respective axis.\n */\n flipOptions?: FloatingProps['flipOptions'];\n /**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n */\n sizeOptions?: FloatingProps['sizeOptions'];\n\n /**\n * Specifies the shift behavior along the respective axis\n */\n shiftOptions?: FloatingProps['shiftOptions'];\n /**\n * Specifies initial focus.\n */\n initialFocus?: 'none' | 'firstFocusable';\n};\n\nconst DEFAULT_PLACEMENT = 'bottom-start';\nconst DEFAULT_OFFSET = { mainAxis: 4, crossAxis: 0 };\nconst DEFAULT_SIZE_OPTIONS = { isMaxWidthAdjusted: true, isMaxHeightAdjusted: true };\nconst DEFAULT_FLIP_OPTIONS = { mainAxis: true, crossAxis: true };\n\nconst animationStates: Parameters<typeof usePopupAnimation>[0]['animationStates'] = {\n opening: (node: AnimationPopupElement) => {\n return mergeAnimationStateObjects(\n [\n SCALE_UP_FULL,\n {\n from: { transformOrigin: getTransformOrigin(node.placement, node.direction) },\n to: { transformOrigin: getTransformOrigin(node.placement, node.direction) }\n }\n ],\n {\n duration: DURATION_LARGE\n }\n );\n }\n};\n\n//TODO: Add animation to dropdown. JET-62628\n//TODO: Investigate best approach to have different virtual padding depending on the position and implement it.JET-57950\nexport function Dropdown({\n isOpen = false,\n anchorRef,\n children,\n id,\n onClose,\n minWidth,\n placement = DEFAULT_PLACEMENT,\n offset = DEFAULT_OFFSET,\n onPosition,\n flipOptions = DEFAULT_FLIP_OPTIONS,\n sizeOptions = DEFAULT_SIZE_OPTIONS,\n shiftOptions,\n initialFocus = 'none'\n}: Props) {\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const onTransitionEnd = useCallback(\n (isOpen: boolean) => {\n if (isOpen && initialFocus === 'firstFocusable') {\n const dropdownElement = dropdownRef.current;\n if (dropdownElement) {\n focusWithin(dropdownElement);\n }\n }\n },\n [initialFocus]\n );\n\n const {\n status,\n setAnimationElementRef,\n onPosition: onPositionAnimated\n } = usePopupAnimation({\n isOpen,\n placement,\n isAnimatedOnMount: true,\n animationStates,\n onPosition,\n onTransitionEnd\n });\n\n const handleMousedownClose = useCallback(\n (event: MouseEvent) => {\n onClose?.({ reason: 'outsideMousedown', target: event.target as Element });\n },\n [onClose]\n );\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.defaultPrevented) {\n return;\n }\n switch (event.code) {\n case KEYS.ESC:\n onClose?.({ reason: 'dismissed' });\n break;\n case KEYS.TAB:\n onClose?.({ reason: 'dismissed' });\n break;\n default:\n break;\n }\n },\n [onClose]\n );\n\n // use the mousedown event to be consistent with legacy JET\n useOutsideMousedown({\n isDisabled: false,\n ref: [dropdownRef],\n handler: handleMousedownClose\n });\n\n return (\n <>\n {status !== 'unmounted' ? (\n <Layer logicalParentRef={anchorRef as RefObject<Element>}>\n <Floating\n anchorRef={anchorRef}\n ref={setAnimationElementRef}\n placement={placement}\n flipOptions={flipOptions}\n shiftOptions={shiftOptions}\n sizeOptions={sizeOptions}\n offsetValue={offset}\n onPosition={onPositionAnimated}\n boundaryOptions={{ padding: { top: 8, bottom: 8, left: 0, right: 0 } }}>\n <div\n ref={dropdownRef}\n id={id}\n class={dropdownStyles.base}\n style={{ minWidth: `${minWidth || 0}px` }}\n onKeyDown={handleKeyDown}>\n <CollectionInteractionContext.Provider value={'embedded'}>\n {children}\n </CollectionInteractionContext.Provider>\n </div>\n </Floating>\n </Layer>\n ) : null}\n </>\n );\n}\n"],"names":["DEFAULT_OFFSET","mainAxis","crossAxis","DEFAULT_SIZE_OPTIONS","isMaxWidthAdjusted","isMaxHeightAdjusted","DEFAULT_FLIP_OPTIONS","animationStates","opening","node","mergeAnimationStateObjects","SCALE_UP_FULL","from","transformOrigin","getTransformOrigin","placement","direction","to","duration","DURATION_LARGE","isOpen","anchorRef","children","id","onClose","minWidth","offset","onPosition","flipOptions","sizeOptions","shiftOptions","initialFocus","dropdownRef","useRef","onTransitionEnd","useCallback","dropdownElement","current","focusWithin","status","setAnimationElementRef","onPositionAnimated","usePopupAnimation","isAnimatedOnMount","handleMousedownClose","event","reason","target","handleKeyDown","defaultPrevented","code","KEYS","ESC","TAB","useOutsideMousedown","isDisabled","ref","handler","_jsx","_Fragment","jsx","Layer","logicalParentRef","Floating","offsetValue","boundaryOptions","padding","top","bottom","left","right","class","dropdownStyles","base","style","onKeyDown","CollectionInteractionContext","Provider","value"],"mappings":"wcA0FA,MACMA,EAAiB,CAAEC,SAAU,EAAGC,UAAW,GAC3CC,EAAuB,CAAEC,oBAAoB,EAAMC,qBAAqB,GACxEC,EAAuB,CAAEL,UAAU,EAAMC,WAAW,GAEpDK,EAA8E,CAClFC,QAAUC,GACDC,6BACL,CACEC,EAAaA,cACb,CACEC,KAAM,CAAEC,gBAAiBC,EAAkBA,mBAACL,EAAKM,UAAWN,EAAKO,YACjEC,GAAI,CAAEJ,gBAAiBC,EAAkBA,mBAACL,EAAKM,UAAWN,EAAKO,cAGnE,CACEE,SAAUC,EAAcA,uCAQPC,OACvBA,GAAS,EAAKC,UACdA,EAASC,SACTA,EAAQC,GACRA,EAAEC,QACFA,EAAOC,SACPA,EAAQV,UACRA,EA/BwB,eA+BKW,OAC7BA,EAAS1B,EAAc2B,WACvBA,EAAUC,YACVA,EAActB,EAAoBuB,YAClCA,EAAc1B,EAAoB2B,aAClCA,EAAYC,aACZA,EAAe,SAEf,MAAMC,EAAcC,SAAuB,MAErCC,EAAkBC,eACrBf,IACC,GAAIA,GAA2B,mBAAjBW,EAAmC,CAC/C,MAAMK,EAAkBJ,EAAYK,QAChCD,GACFE,EAAWA,YAACF,EAEf,IAEH,CAACL,KAGGQ,OACJA,EAAMC,uBACNA,EACAb,WAAYc,GACVC,EAAAA,kBAAkB,CACpBtB,SACAL,YACA4B,mBAAmB,EACnBpC,kBACAoB,aACAO,oBAGIU,EAAuBT,eAC1BU,IACCrB,IAAU,CAAEsB,OAAQ,mBAAoBC,OAAQF,EAAME,QAAoB,GAE5E,CAACvB,IAGGwB,EAAgBb,eACnBU,IACC,IAAIA,EAAMI,iBAGV,OAAQJ,EAAMK,MACZ,KAAKC,EAAIA,KAACC,IAGV,KAAKD,EAAIA,KAACE,IACR7B,IAAU,CAAEsB,OAAQ,cAIvB,GAEH,CAACtB,IAUH,OANA8B,sBAAoB,CAClBC,YAAY,EACZC,IAAK,CAACxB,GACNyB,QAASb,IAITc,EAAAA,IAAAC,EAAAA,SAAA,CAAArC,SACc,cAAXiB,EACCmB,EAAAE,IAACC,QAAK,CAACC,iBAAkBzC,EAA+BC,SACtDoC,EAAAA,IAACK,EAAQA,SACP,CAAA1C,UAAWA,EACXmC,IAAKhB,EACLzB,UAAWA,EACXa,YAAaA,EACbE,aAAcA,EACdD,YAAaA,EACbmC,YAAatC,EACbC,WAAYc,EACZwB,gBAAiB,CAAEC,QAAS,CAAEC,IAAK,EAAGC,OAAQ,EAAGC,KAAM,EAAGC,MAAO,IAAKhD,SACtEoC,EAAAA,IACE,MAAA,CAAAF,IAAKxB,EACLT,GAAIA,EACJgD,MAAOC,EAAAA,eAAeC,KACtBC,MAAO,CAAEjD,SAAU,GAAGA,GAAY,OAClCkD,UAAW3B,EAAa1B,SACxBoC,MAACkB,EAAAA,6BAA6BC,SAAS,CAAAC,MAAO,WAC3CxD,SAAAA,UAKP,MAGV"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', './LayerHost-1b4d03f0', 'preact/hooks', './LayerManager-6c0b0eed'], (function(e,n,r,t,o){"use strict";function s(e,n){const r=Object.assign({},e.user,n?.user),t=Object.assign({},e.theme,n?.theme),o=Object.assign({},e.translations),s=n?.translations||{};return Object.keys(s).forEach((e=>{let n=s[e];o[e]&&(n=Object.assign({},o[e],n)),o[e]=n})),{user:r,theme:t,translations:o,colorScheme:n?.colorScheme??e.colorScheme,scale:n?.scale??e.scale,currentBgColor:n?.currentBgColor??e.currentBgColor,mode:n?.mode??e.mode,density:n?.density??e.density}}e.EnvironmentProvider=function({children:e,environment:o}){const c=t.useContext(r.EnvironmentContext),i=t.useMemo((()=>s(c,o)),[c,o]);return n.jsx(r.EnvironmentContext.Provider,{value:i,children:e})},e.RootEnvironmentProvider=function({children:e,environment:c}){const i=t.useMemo((()=>s(r.DefaultEnvironment,c)),[c]);return n.jsx(r.EnvironmentContext.Provider,{value:i,children:n.jsx(o.LayerManager,{children:e})})}}));
2
- //# sourceMappingURL=EnvironmentProvider-4597f540.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnvironmentProvider-4597f540.js","sources":["../../src/UNSAFE_Environment/EnvironmentProvider.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport {\n CompleteEnvironmentType,\n DefaultEnvironment,\n Environment,\n EnvironmentContext,\n RootEnvironment\n} from './EnvironmentContext';\nimport { useContext, useMemo } from 'preact/hooks';\n\nimport { ComponentChildren } from 'preact';\nimport { LayerManager } from '../UNSAFE_Layer/LayerManager';\n\n// EnvironmentProvider properties\nexport declare type ProviderProperties<Env extends RootEnvironment | Environment> = {\n environment?: Env;\n children?: ComponentChildren;\n};\n\n// Custom merge function\nfunction mergeEnvironment(\n env1: CompleteEnvironmentType,\n env2: Partial<RootEnvironment> | undefined\n) {\n const userValue = Object.assign({}, env1.user, env2?.user);\n const themeValue = Object.assign({}, env1.theme, env2?.theme);\n\n // Merge translation values - one level merge\n const targetTranslations = Object.assign({}, env1.translations);\n const sourceTranslations = env2?.translations || {};\n Object.keys(sourceTranslations).forEach((key) => {\n let newVal = sourceTranslations[key];\n if (targetTranslations[key]) {\n // merge is needed\n newVal = Object.assign({}, targetTranslations[key], newVal);\n }\n targetTranslations[key] = newVal;\n });\n\n return {\n user: userValue,\n theme: themeValue,\n translations: targetTranslations,\n colorScheme: env2?.colorScheme ?? env1.colorScheme,\n scale: env2?.scale ?? env1.scale,\n currentBgColor: env2?.currentBgColor ?? env1.currentBgColor,\n mode: env2?.mode ?? env1.mode,\n density: env2?.density ?? env1.density\n };\n}\n\n/**\n * The RootEnvironmentProvider component bootstraps essential services and\n * must be placed at the root of any application using components from '@oracle/oraclejet-preact'.\n * Minimally, the application must load the appropriate translation bundle for the user's locale\n * and set it on the RootEnvironmentProvider.\n */\nexport function RootEnvironmentProvider({\n children,\n environment\n}: ProviderProperties<RootEnvironment>) {\n const mergedEnvironment = useMemo(\n () => mergeEnvironment(DefaultEnvironment, environment),\n [environment]\n );\n return (\n <EnvironmentContext.Provider value={mergedEnvironment}>\n <LayerManager>{children}</LayerManager>\n </EnvironmentContext.Provider>\n );\n}\n\n/**\n * The EnvironmentProvider is a component that should be used by the application when there is a need to overwrite\n * environment values for a subtree.\n * The component receives an Environment object that will be merged into the values provided by the nearest ancestor Provider.\n * The new environment will be passed to the component's children.\n * Note that some environment values cannot be overwritten. See the description of the Environment type for the list of values\n * that can be replaced.\n */\nexport function EnvironmentProvider({ children, environment }: ProviderProperties<Environment>) {\n const consumerEnv = useContext(EnvironmentContext);\n const mergedEnvironment = useMemo(\n () => mergeEnvironment(consumerEnv, environment),\n [consumerEnv, environment]\n );\n\n return (\n <EnvironmentContext.Provider value={mergedEnvironment}>{children}</EnvironmentContext.Provider>\n );\n}\n"],"names":["mergeEnvironment","env1","env2","userValue","Object","assign","user","themeValue","theme","targetTranslations","translations","sourceTranslations","keys","forEach","key","newVal","colorScheme","scale","currentBgColor","mode","density","children","environment","consumerEnv","useContext","EnvironmentContext","mergedEnvironment","useMemo","_jsx","jsx","Provider","value","DefaultEnvironment","LayerManager"],"mappings":"0IA2BA,SAASA,EACPC,EACAC,GAEA,MAAMC,EAAYC,OAAOC,OAAO,CAAA,EAAIJ,EAAKK,KAAMJ,GAAMI,MAC/CC,EAAaH,OAAOC,OAAO,CAAA,EAAIJ,EAAKO,MAAON,GAAMM,OAGjDC,EAAqBL,OAAOC,OAAO,CAAA,EAAIJ,EAAKS,cAC5CC,EAAqBT,GAAMQ,cAAgB,GAUjD,OATAN,OAAOQ,KAAKD,GAAoBE,SAASC,IACvC,IAAIC,EAASJ,EAAmBG,GAC5BL,EAAmBK,KAErBC,EAASX,OAAOC,OAAO,CAAA,EAAII,EAAmBK,GAAMC,IAEtDN,EAAmBK,GAAOC,CAAM,IAG3B,CACLT,KAAMH,EACNK,MAAOD,EACPG,aAAcD,EACdO,YAAad,GAAMc,aAAef,EAAKe,YACvCC,MAAOf,GAAMe,OAAShB,EAAKgB,MAC3BC,eAAgBhB,GAAMgB,gBAAkBjB,EAAKiB,eAC7CC,KAAMjB,GAAMiB,MAAQlB,EAAKkB,KACzBC,QAASlB,GAAMkB,SAAWnB,EAAKmB,QAEnC,iCA+BoCC,SAAEA,EAAQC,YAAEA,IAC9C,MAAMC,EAAcC,aAAWC,EAAAA,oBACzBC,EAAoBC,WACxB,IAAM3B,EAAiBuB,EAAaD,IACpC,CAACC,EAAaD,IAGhB,OACEM,EAAAC,IAACJ,EAAkBA,mBAACK,SAAQ,CAACC,MAAOL,EAAiBL,SAAGA,GAE5D,sCAjCwCA,SACtCA,EAAQC,YACRA,IAEA,MAAMI,EAAoBC,EAAOA,SAC/B,IAAM3B,EAAiBgC,EAAkBA,mBAAEV,IAC3C,CAACA,IAEH,OACEM,EAACC,IAAAJ,EAAkBA,mBAACK,UAASC,MAAOL,EAAiBL,SACnDO,MAACK,EAAYA,aAAA,CAAAZ,SAAEA,KAGrB"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', './useTestId-d0c49456', './classNames-08d99695', './boxalignment-50db1e3a', './dimensions-fda85d6b', './flexbox-8521f6aa', './flexitem-5db48325', './mergeInterpolations-9ede4cf7', 'css!./FlexStyles.styles.css'], (function(e,s,t,l,n,a,o,i,r,c){"use strict";var d="FlexStyles_marginZeroStyles__10p93f61";const x=[...Object.values(a.dimensionInterpolations),...Object.values(o.flexboxInterpolations),...Object.values(i.flexitemInterpolations),...Object.values(n.boxAlignmentInterpolations)],m=r.mergeInterpolations(x);e.Flex=({children:e,hasZeroMargins:n=!0,testId:a,...o})=>{const i=l.classNames(["FlexStyles_baseStyles__10p93f60",n&&d]),{class:r,...c}=m(o),x=t.useTestId(a);return s.jsx("div",{class:`${i} ${r}`,style:c,...x,children:e})},e.marginZeroStyles=d}));
2
- //# sourceMappingURL=Flex-69dc7af4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Flex-69dc7af4.js","sources":["../../src/UNSAFE_Flex/Flex.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 { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { ComponentChildren } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { FlexboxProps } from '../utils/UNSAFE_interpolations/flexbox';\nimport { flexboxInterpolations } from '../utils/UNSAFE_interpolations/flexbox';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { baseStyles, marginZeroStyles } from './FlexStyles.css';\n\ntype StyleProps = DimensionProps & FlexboxProps & FlexitemProps & BoxAlignmentProps;\n\ntype Props = StyleProps &\n TestIdProps & {\n children?: ComponentChildren;\n /**\n * @default true\n */\n hasZeroMargins?: boolean;\n };\n\nconst interpolations = [\n ...Object.values(dimensionInterpolations),\n ...Object.values(flexboxInterpolations),\n ...Object.values(flexitemInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\nexport const Flex = ({ children, hasZeroMargins = true, testId, ...props }: Props) => {\n const flexComponentClasses = classNames([baseStyles, hasZeroMargins && marginZeroStyles]);\n const { class: cls, ...styles } = styleInterpolations(props);\n const testIdProps = useTestId(testId);\n return (\n <div class={`${flexComponentClasses} ${cls}`} style={styles} {...testIdProps}>\n {children}\n </div>\n );\n};\n"],"names":["interpolations","Object","values","dimensionInterpolations","flexboxInterpolations","flexitemInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","children","hasZeroMargins","testId","props","flexComponentClasses","classNames","marginZeroStyles","class","cls","styles","testIdProps","useTestId","_jsx","style"],"mappings":"yUAgCA,MAAMA,EAAiB,IAClBC,OAAOC,OAAOC,8BACdF,OAAOC,OAAOE,4BACdH,OAAOC,OAAOG,6BACdJ,OAAOC,OAAOI,+BAGbC,EAAsBC,EAAAA,oBAA2BR,UAEnC,EAAGS,WAAUC,kBAAiB,EAAMC,YAAWC,MACjE,MAAMC,EAAuBC,EAAAA,WAAW,mCAAaJ,GAAkBK,KAC/DC,MAAOC,KAAQC,GAAWX,EAAoBK,GAChDO,EAAcC,YAAUT,GAC9B,OACEU,EAAAA,IAAK,MAAA,CAAAL,MAAO,GAAGH,KAAwBI,IAAOK,MAAOJ,KAAYC,WAC9DV,GAEH"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', 'preact/compat', './useFloating-c8c92f6f', './refUtils-d354a169', './useOutsideClick-39a81428', './useUser-abae2493', './useComponentTheme-5aa41a8f', './classNames-08d99695', './utils-32e81a13', './Common/themes/themeContract.css', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css'], (function(t,e,n,i,s,o,r,a,l,c,u,f,d,m,h,g){"use strict";const x=i.forwardRef((({data:t,anchorRef:i,tail:s,isRtl:r,backgroundColor:a},m)=>{const{styles:h,baseTheme:g}=l.useComponentTheme(d.FloatingRedwoodTheme),x=n.useRef(null),[p,b]=n.useState({arrowStyle:{visibility:"hidden"},arrowInnerStyle:{visibility:"hidden"}});n.useLayoutEffect((()=>{if(null==x.current)return;const{isCornerVerticalPlacement:e,isCornerHorizontalPlacement:n}=function(t,e,n){if("simple"===e&&n&&n.arrow){const{centerOffset:e}=n.arrow,i=7;let s=0,o=0;const r=t.current,a=void 0===r?.x&&void 0===r?.y;a&&(s=Math.round(r.getBoundingClientRect().height),o=Math.round(t.current?.getBoundingClientRect().width));return{isCornerVerticalPlacement:a?Math.abs(e)>=s/2-i/2:["start-top-corner","start-bottom-corner","end-top-corner","end-bottom-corner"].includes(n.origPlacement),isCornerHorizontalPlacement:a?Math.abs(e)>=o/2-i/2:["top-start-corner","top-end-corner","bottom-start-corner","bottom-end-corner"].includes(n.origPlacement)}}return{isCornerVerticalPlacement:!1,isCornerHorizontalPlacement:!1}}(i,s,t);b(function(t,e,n,i,s,o){const r={visibility:"visible"},a={visibility:"visible"};if("simple"===t&&s&&s.arrow){const{x:l,y:c,centerOffset:d}=s.arrow,m=7,h=6,g=5,x=5,p=0===d,b=d>0;function y(t){const e=t?h:m;C({borderTop:`${S(e)} solid ${u.rgba(f.colorSchemeVars.palette.neutral[90],.1)}`,borderRight:R(e),borderLeft:R(e)},r);const n=t?x:g;w({borderTop:`${S(n)} solid ${o}`,borderRight:`${R(n)}`,borderLeft:`${R(n)}`},a)}function C(t,e){Object.assign(e,t)}function w(t,e){Object.assign(e,t)}function A(t){return`rotate(${45*t}deg)`}function S(t){return`${t}px`}function R(t){return`${S(t)} solid transparent`}y(n||i);switch(s.placement.split("-")[0]){case"top":v();break;case"end":e?F():j();break;case"bottom":k();break;case"start":e?j():F()}function v(){null!=l&&(i?(C({top:"",bottom:S(2-m),left:S(l+(b?5:-5)),transform:A(b?5:3)},r),M()):(C({top:"",bottom:S(-m),left:S(p?l:l+(b?1:-1)),transform:A(0)},r),O()))}function j(){null!=c&&(n?(C({top:S(c+(b?2:-2)),right:"",left:S(-m-1),transform:A(b?7:5)},r),M()):(C({top:S(p?c:c+(b?-2:2)),right:"",left:S(1.5*-m),transform:A(2)},r),O()))}function k(){null!=l&&(i?(C({top:S(3-m),bottom:"",left:S(l+(b?4:-4)),transform:A(b?2:6)},r),w({top:S(-g),left:S((b?1:-1)-g)},a)):(C({top:S(-m),bottom:"",left:S(p?l:l+(b?1:-1)),transform:A(4)},r),O()))}function F(){null!=c&&(n?(C({top:S(c+(b?2:-2)),right:S(-m-1),left:"",transform:A(b?1:3)},r),w({top:S(-g),left:S((b?-2:2)-g)},a)):(C({top:S(p?c:c+(b?-2:2)),right:S(1.5*-m),left:"",transform:A(6)},r),O()))}function M(){w({top:S(-g),left:S((b?2:-2)-g)},a)}function O(){w({top:S(-g-2),left:S(-g)},a)}}return{arrowStyle:r,arrowInnerStyle:a}}(s,r,e,n,t,a))}),[t,a,t?.placement,t?.x,t?.y,t?.offset,t?.arrow,s,r,i]);const y=n.useMemo((()=>o.mergeRefs(m,x)),[m,x]);return"simple"===s&&e.jsxs("div",{ref:y,class:c.classNames([g,h.floatingTailBaseStyle]),style:p.arrowStyle,children:[" ",e.jsx("div",{class:c.classNames([h.floatingTailBaseStyle]),style:p.arrowInnerStyle})," "]})}));const p=i.forwardRef((({children:t,backgroundColor:i,onClickOutside:u,placement:f="bottom",anchorRef:p,offsetValue:b,class:y,tail:C="none",flipOptions:w={mainAxis:!0,crossAxis:!1},shiftOptions:A={mainAxis:!0,crossAxis:!1},sizeOptions:S={isMaxHeightAdjusted:!1,isMaxWidthAdjusted:!1},boundaryOptions:R={padding:0},onPosition:v},j)=>{const k=n.useRef(null),[F,M]=n.useState(),[O,E]=n.useState(null),{styles:P,baseTheme:T}=l.useComponentTheme(d.FloatingRedwoodTheme);n.useLayoutEffect((()=>{E(p.current)}),[p]),p.current!==O&&E(p.current);const{direction:$}=a.useUser(),H="rtl"===$,V=n.useCallback((t=>{M(t),v?.(t)}),[v]),B=[s.offset(b),s.flip({mainAxis:w.mainAxis,crossAxis:w.crossAxis,fallbackPlacements:w.fallbackPlacements?.map((t=>s.logicalSide(t,$))),padding:R.padding}),s.shift({mainAxis:A.mainAxis,crossAxis:A.crossAxis,limiter:s.limitShift({mainAxis:A.mainAxis,crossAxis:A.crossAxis})}),...k.current?[s.arrow({element:k.current})]:[]];(S.isMaxHeightAdjusted||S.isMaxWidthAdjusted)&&B.push(s.size({apply({availableWidth:t,availableHeight:e,elements:n}){S.isMaxHeightAdjusted&&parseInt(n.floating.style.maxHeight)!==e&&Object.assign(n.floating.style,{maxHeight:`${Math.min(e,S.maxHeightCeiling||e)}px`}),S.isMaxWidthAdjusted&&parseInt(n.floating.style.maxWidth)!==t&&Object.assign(n.floating.style,{maxWidth:`${Math.min(t,S.maxWidthCeiling||t)}px`})},padding:R.padding}));const{x:N,y:U,reference:W,floating:I,refs:z,update:L}=s.useFloating({placement:f,middleware:B,onPosition:V}),[_,D]=n.useState(!1);n.useEffect((()=>{if(z.reference.current&&z.floating.current&&!0===_)return s.autoUpdate(z.reference.current,z.floating.current,L)}),[z.floating,z.reference,L,_]),n.useEffect((()=>{null!=N&&null!=U&&D(!0)}),[N,U]),r.useOutsideClick({isDisabled:!1,ref:z.floating,handler:u}),n.useLayoutEffect((()=>{if(O instanceof Element){return void W(O)}const t=O;if(null!=t&&null!=t.contextElement){const e=function(t,e){let n=null,i=null,s=!1;return{contextElement:t||void 0,getBoundingClientRect(){const o=t?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},r="x"===e.axis||"both"===e.axis,a="y"===e.axis||"both"===e.axis;let l=o.width,c=o.height,u=o.x,f=o.y;return null==n&&e.x&&r&&(n=o.x-e.x),null==i&&e.y&&a&&(i=o.y-e.y),u-=n||0,f-=i||0,l=0,c=0,s?s&&(c="x"===e.axis?o.height:c,l="y"===e.axis?o.width:l):(l="y"===e.axis?o.width:0,c="x"===e.axis?o.height:0,u=r&&null!=e.x?e.x:u,f=a&&null!=e.y?e.y:f),s=!0,{width:l,height:c,x:u,y:f,top:f,right:u+l,bottom:f+c,left:u}}}}(t.contextElement,{axis:"both",x:t.x,y:t.y});return void W(e)}const e={getBoundingClientRect:()=>({width:0,height:0,x:t.x,y:t.y,top:t.y,left:t.x,right:t.x,bottom:t.y})};t&&null!=t.x&&W(e)}),[O,W]);const q=n.useMemo((()=>o.mergeRefs(j,I)),[j,I]),G={top:U,left:N};let J={};i&&(J=h.assignInlineVars({[g.floatingVars.backgroundColor]:i}));const K=null==N&&null==U?m.floatingVisibilityStyles.hidden:m.floatingVisibilityStyles.visible,Q=c.classNames([y,T,P.baseStyle,K]),X=p&&p.current;return e.jsxs("div",{class:Q,ref:q,style:{...G,...J},children:[t,X&&e.jsx(x,{ref:k,backgroundColor:i,data:F,anchorRef:p,tail:C,isRtl:H})]})}));t.Floating=p}));
2
- //# sourceMappingURL=Floating-28ad0903.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Floating-28ad0903.js","sources":["../../src/UNSAFE_Floating/FloatingTail.tsx","../../src/UNSAFE_Floating/Floating.tsx"],"sourcesContent":["import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useMemo, useLayoutEffect, useRef, useState } from 'preact/hooks';\nimport type { RefObject } from 'preact';\nimport { PositionData, Coords } from './Floating.types';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles } from './themes/FloatingStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Property } from 'csstype';\nimport { rgba } from '../UNSAFE_Theme/utils';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\n\ntype Props = Pick<ColorProps, 'backgroundColor'> & {\n data?: PositionData;\n anchorRef: RefObject<Element | Coords>;\n tail: 'none' | 'simple';\n isRtl: boolean;\n};\n\nconst ARROW_SIZE = 7;\nconst ARROW_SIZE_CORNER = 6;\nconst ARROW_INNER_SIZE = 5;\nconst ARROW_INNER_SIZE_CORNER = 5;\n\nconst FloatingTail = forwardRef(\n (\n { data, anchorRef, tail, isRtl, backgroundColor }: Props,\n ref: ForwardedRef<HTMLDivElement | null>\n ) => {\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n const arrowRef = useRef<HTMLDivElement | null>(null);\n const [arrowStyles, setArrowStyles] = useState({\n arrowStyle: { visibility: 'hidden' },\n arrowInnerStyle: { visibility: 'hidden' }\n });\n\n useLayoutEffect(() => {\n if (arrowRef.current == null) return;\n const { isCornerVerticalPlacement, isCornerHorizontalPlacement } = isCorner(\n anchorRef,\n tail,\n data\n );\n setArrowStyles(\n setStyles(\n tail,\n isRtl,\n isCornerVerticalPlacement,\n isCornerHorizontalPlacement,\n data,\n backgroundColor\n )\n );\n }, [\n data,\n backgroundColor,\n data?.placement,\n data?.x,\n data?.y,\n data?.offset,\n data?.arrow,\n tail,\n isRtl,\n anchorRef\n ]);\n\n const stableRef = useMemo(() => mergeRefs(ref, arrowRef), [ref, arrowRef]);\n return (\n tail === 'simple' && (\n <div\n ref={stableRef}\n class={classNames([baseTheme, styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowStyle}>\n {' '}\n {/*Outer arrow - shadow*/}\n <div\n class={classNames([styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowInnerStyle}></div>{' '}\n {/*Inner arrow - body*/}\n </div>\n )\n );\n }\n);\n\nfunction isCorner(\n anchorRef: RefObject<Element | Coords>,\n tail: 'none' | 'simple',\n data?: PositionData\n) {\n if (tail === 'simple' && data && data.arrow) {\n const { centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n let anchorRefHeight = 0;\n let anchorRefWidth = 0;\n const current = anchorRef.current;\n // @ts-ignore. Type 'Element | Coords' issues\n // Property 'x' does not exist on type 'Element'.\n // Property 'y' does not exist on type 'Element'.\n const isAnchorRefElement = current?.x === undefined && current?.y === undefined;\n if (isAnchorRefElement) {\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefHeight = Math.round(current.getBoundingClientRect().height);\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefWidth = Math.round(anchorRef.current?.getBoundingClientRect().width);\n }\n const isCornerVerticalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefHeight / 2 - arrowSize / 2\n : ['start-top-corner', 'start-bottom-corner', 'end-top-corner', 'end-bottom-corner'].includes(\n data.origPlacement\n );\n const isCornerHorizontalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefWidth / 2 - arrowSize / 2\n : ['top-start-corner', 'top-end-corner', 'bottom-start-corner', 'bottom-end-corner'].includes(\n data.origPlacement\n );\n\n return { isCornerVerticalPlacement, isCornerHorizontalPlacement };\n } else return { isCornerVerticalPlacement: false, isCornerHorizontalPlacement: false };\n}\n\nfunction setStyles(\n //arrowEl: HTMLDivElement,\n tail: 'none' | 'simple',\n isRtl: boolean,\n isCornerVerticalPlacement: boolean,\n isCornerHorizontalPlacement: boolean,\n data?: PositionData,\n backgroundColor?: Property.BackgroundColor\n) {\n const result = { visibility: 'visible' };\n const innerResult = { visibility: 'visible' };\n if (tail === 'simple' && data && data.arrow) {\n const { x, y, centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n const arrowSizeCorner = ARROW_SIZE_CORNER;\n //const arrowInnerEl = arrowEl.querySelector('div') as Element;\n const arrowInnerSize = ARROW_INNER_SIZE;\n const arrowInnerSizeCorner = ARROW_INNER_SIZE_CORNER;\n\n const isCenter = centerOffset === 0;\n const isCenterOffsetPositive = centerOffset > 0;\n\n // Set sizes of the arrow\n setArrowSizes(isCornerVerticalPlacement || isCornerHorizontalPlacement);\n\n // Corner vs. normal arrow\n function setArrowSizes(isCornerPlacement?: boolean) {\n // Outer arrow (shadow)\n const arrowFinalSize = isCornerPlacement ? arrowSizeCorner : arrowSize;\n setArrowStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowFinalSize)} solid ${rgba(\n colorSchemeVars.palette.neutral[90],\n 0.1\n )}`,\n borderRight: getTransparentBorder(arrowFinalSize),\n borderLeft: getTransparentBorder(arrowFinalSize)\n },\n result\n );\n // Inner arrow\n const arrowInnerFinalSize = isCornerPlacement ? arrowInnerSizeCorner : arrowInnerSize;\n setArrowInnerStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowInnerFinalSize)} solid ${backgroundColor}`,\n borderRight: `${getTransparentBorder(arrowInnerFinalSize)}`,\n borderLeft: `${getTransparentBorder(arrowInnerFinalSize)}`\n },\n innerResult\n );\n }\n\n function setArrowStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function setArrowInnerStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function getTurn(eighth: number) {\n return `rotate(${eighth * 45}deg)`;\n }\n\n function getSize(size: number) {\n return `${size}px`;\n }\n\n function getTransparentBorder(size: number) {\n return `${getSize(size)} solid transparent`;\n }\n\n const placementArr = data.placement.split('-');\n const side = placementArr[0];\n\n switch (side) {\n case 'top':\n setArrowTop();\n break;\n case 'end':\n isRtl ? setArrowStart() : setArrowEnd();\n break;\n case 'bottom':\n setArrowBottom();\n break;\n case 'start':\n isRtl ? setArrowEnd() : setArrowStart();\n break;\n }\n\n function setArrowTop() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Top corners\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize + 2),\n left: getSize(x + (isCenterOffsetPositive ? 5 : -5)),\n transform: getTurn(isCenterOffsetPositive ? 5 : 3)\n },\n result\n );\n setCornerArrowInner();\n } else {\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize),\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(0)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowEnd() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // End corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize - 1),\n transform: getTurn(isCenterOffsetPositive ? 7 : 5)\n },\n result\n );\n setCornerArrowInner();\n } else {\n // End\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize * 1.5),\n transform: getTurn(2)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowBottom() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Bottom corners\n setArrowStyle(\n {\n top: getSize(-arrowSize + 3),\n bottom: '', // flip 'reset'\n left: getSize(x + (isCenterOffsetPositive ? 4 : -4)),\n transform: getTurn(isCenterOffsetPositive ? 2 : 6)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 1 : -1))\n },\n innerResult\n );\n } else {\n setArrowStyle(\n {\n top: getSize(-arrowSize),\n bottom: '', // flip 'reset'\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(4)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowStart() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // Start corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: getSize(-arrowSize - 1),\n left: '', // flip 'reset'\n transform: getTurn(isCenterOffsetPositive ? 1 : 3)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? -2 : 2))\n },\n innerResult\n );\n } else {\n // Start\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: getSize(-arrowSize * 1.5),\n left: '', // flip 'reset'\n transform: getTurn(6)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 2 : -2))\n },\n innerResult\n );\n }\n\n function setNonCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize - 2),\n left: getSize(-arrowInnerSize)\n },\n innerResult\n );\n }\n }\n return { arrowStyle: result, arrowInnerStyle: innerResult };\n}\n\nexport { FloatingTail };\n","import type { RefObject } from 'preact';\nimport { useLayoutEffect, useEffect, useMemo, useState, useRef, useCallback } from 'preact/hooks';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { autoUpdate, arrow } from '@floating-ui/dom';\nimport {\n useFloating,\n shift,\n flip,\n size,\n offset,\n limitShift,\n VirtualElement,\n logicalSide\n} from '../hooks/PRIVATE_useFloating';\nimport { Offset, Placement, Coords, PositionData } from './Floating.types';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { FloatingTail } from './FloatingTail';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles, floatingVisibilityStyles } from './themes/FloatingStyles.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { floatingVars } from './themes/FloatingContract.css';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children' | 'class'>;\n/**\n * Specifies the flipping behavior along the respective axis.\n */\nexport type FlipOptions = {\n /**\n * If set to true, enables collision detection on the main axis,\n * which runs along the floating placement side.\n */\n mainAxis?: boolean;\n /**\n * If set to true, enables collision detection on the cross axis,\n * which runs along the floating placement side.\n */\n crossAxis?: boolean;\n /**\n * Specifies an array of placements to try\n * if the preferred initial placement doesn’t fit on the axes\n * in which collision is detected.\n */\n fallbackPlacements?: Array<Placement>;\n};\n\n/**\n * Specifies the shift behavior along the respective axis.\n * When true, the floating element will shift to prevent overflow.\n */\nexport type ShiftOptions = {\n /**\n * main axis in which shifting is applied. Default <code>true</code>.\n */\n mainAxis?: boolean;\n /**\n * cross axis in which shifting is applied. Default <code>false</code>.\n */\n crossAxis?: boolean;\n};\n\n/**\n * This describes the virtual padding around the collision boundary (currently the view port).\n * This could be extended in the future,\n * i.e. property to define what is a boundary ( a view port, a document, some other html element)\n */\nexport type BoundaryOptions = {\n padding?:\n | number\n | {\n top: number;\n right: number;\n bottom: number;\n left: number;\n };\n};\n/**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * The floating element will change the size depending on the available space.\n * isMaxHeightAdjusted/isMaxWidthAdjusted - sets the max-height/max-width of the floating to the available space till the collision.\n * maxHeightCeiling/maxWidthCeiling - this is the limit for max-height/max-width that should not be exceeded, even if there is more available space till the collision.\n */\nexport type SizeOptions = {\n isMaxWidthAdjusted?: boolean;\n isMaxHeightAdjusted?: boolean;\n maxHeightCeiling?: number;\n maxWidthCeiling?: number;\n};\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> & {\n /**\n * <p>Placement of the floating element relative to its reference element.</p>\n * <p>Placement consists of two parts, the first part is the side, the second is the alignment.</p>\n * <p>Possible values are:</p>\n * <p> <code>'top' </code> <code>'top-start' </code> <code> 'top-end' </code> <code> 'top-start-corner' </code> <code> 'top-end-corner' </code>\n * <code> 'end' </code> <code> 'end-top' </code> <code> 'end-bottom' </code> <code> 'end-top-corner' </code> <code> 'end-bottom-corner' </code>\n * <code> 'bottom' </code> <code> 'bottom-start' </code> <code> 'bottom-end' </code> <code> 'bottom-start-corner' </code> <code> 'bottom-end-corner' </code>\n * <code> 'start' </code> <code> 'start-top' </code> <code> 'start-bottom' </code> <code> 'start-top-corner' </code> <code> 'start-bottom-corner' </code>\n * </p>\n */\n placement?: Placement;\n\n /**\n * Trigger element reference.\n */\n anchorRef: RefObject<Element | Coords>;\n\n /**\n * Placement offset.\n * Offset displaces the floating element from its core placement along the specified axes.\n * Offset could be a number or an object\n * A number represents the distance (gutter or margin) between the floating element and the reference element.\n * This is shorthand for mainAxis.\n * <pre>\n * {\n * mainAxis?: number;\n * crossAxis?: number;\n * }\n * </pre>\n * <p><code>mainAxis</code> - represents the distance (gutter or margin) between the floating element and the reference element.</p>\n * <p><code>crossAxis</code> - represents the shifting between the floating element and the reference element.<p>\n */\n offsetValue?: Offset;\n\n /**\n * Click outside callback.\n */\n onClickOutside?: (event: MouseEvent) => void;\n\n /**\n * FlipOptions object\n * <pre>\n * type FlipOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * fallbackPlacements?: Array<Placement>;\n * }\n * </pre>\n * <p>Specifies the flipping behavior along the respective axis.<p>\n * <p><code>mainAxis</code> - If set to true, enables collision detection on the main axis, which runs along the floating placement side.\n * Default is <code>true</code>.\n * </p>\n * <p><code>crossAxis</code> - If set to true, enables collision detection on the cross axis, which runs along the floating placement alignment.\n * Default is <code>false</code>.\n * </p>\n * <p><code>fallbackPlacements</code> - specifies an array of placements to try if the preferred initial placement doesn’t fit on the axes in which collision is detected.\n * The fallback placements will be tried in the order they are specified in the array.\n * The following placements are allowed as values of the array:\n * <code>'top'</code>, <code>'top-start'</code>, <code>'top-end'</code>, <code>'start'</code>, <code>'start-top'</code>, <code>'start-bottom'</code>, <code>'bottom'</code>,\n * <code>'bottom-start'</code>, <code>'bottom-end'</code>, <code>'end'</code>, <code>'end-top'</code>, <code>'end-bottom'</code>.\n * <p>\n * If not specified, the default behaviour is to flip to the side <code>opposite</code> to the one in which collision is detected\n * </p>\n * </p>\n */\n flipOptions?: FlipOptions;\n\n /**\n * Specifies the shift behavior along the respective axis. When true, the floating element will shift to prevent overflow.\n * <pre>\n * type ShiftOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * };\n * </pre>\n * <p><code>mainAxis</code> - main axis in which shifting is applied. Default <code>true</code>.</p>\n * <p><code>crossAxis</code> - cross axis in which shifting is applied. Default <code>false</code>.</p>\n */\n shiftOptions?: ShiftOptions;\n\n /**\n * Triggered when placement or coordinates are changed after collision is detected\n */\n onPosition?: (data: PositionData) => void;\n\n /**\n * Tail\n */\n tail?: 'none' | 'simple';\n\n /**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * <pre>\n * type SizeOptions = {\n * isMaxWidthAdjusted?: boolean;\n * isMaxHeightAdjusted?: boolean;\n * maxHeightCeiling?: number;\n * maxWidthCeiling?: number;\n * }\n * </pre>\n * <p><code>isMaxHeightAdjusted</code> and <code>isMaxWidthAdjusted</code> - sets the max-height/max-width of the floating to the available space till the collision.\n * When either of the options isMaxHeightAdjusted, isMaxWidthAdjusted is true, the floating element will change the size depending on the available space.\n * Default values are <code>'false'</code>.</p>\n * <p><code>maxHeightCeiling</code> and <code>maxWidthCeiling</code> - are maximal values that could not be exceeded.\n * Defaults are undefined and it means to use full available width/height.</p>\n */\n sizeOptions?: SizeOptions;\n\n /**\n * <p>This describes the virtual padding around the collision boundary (currently the view port).</p>\n * <p>This could be extended in the future,\n * i.e. property to define what is a boundary\n * ( a view port, a document, some other html element)</p>\n * <pre>\n * type BoundaryOptions = {\n * padding?: number | {\n * top: number;\n * right: number;\n * bottom: number;\n * left: number;\n * };\n * }\n * </pre>\n * Default value for padding is 0.\n */\n boundaryOptions?: BoundaryOptions;\n };\n\nfunction isElement(value: any): value is Element {\n return value instanceof Element;\n}\n\n/**\n * A floating component allows the user to create a floating element that is displayed relative to an anchor element or pointer coordinates\n * and at the same time on the \"top layer\" of all other elements.\n * The Floating component is a base component and is often used by such components as Popup, Tooltip, SelectMultiple, Menu and other components.\n */\nexport const Floating = forwardRef(\n (\n {\n children,\n backgroundColor,\n onClickOutside,\n placement = 'bottom',\n anchorRef,\n offsetValue,\n class: className,\n tail = 'none',\n flipOptions = { mainAxis: true, crossAxis: false },\n shiftOptions = { mainAxis: true, crossAxis: false },\n sizeOptions = { isMaxHeightAdjusted: false, isMaxWidthAdjusted: false },\n boundaryOptions = { padding: 0 },\n onPosition\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n const arrowRef = useRef<HTMLDivElement>(null);\n const [positionData, setPositionData] = useState<PositionData>();\n\n const [previousAnchor, setPreviousAnchor] = useState<Element | Coords | null>(null);\n\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n\n // we need to be sure anchorRef.current exists in first call\n // to be able to set the previousAnchor state\n useLayoutEffect(() => {\n setPreviousAnchor(anchorRef.current);\n }, [anchorRef]);\n\n // In case anchorRef.current changes and we need to update floating position\n // when it changes, we need to have copy in the state.\n // For example when anchorRef is Coords( virtual element)\n if (anchorRef.current !== previousAnchor) {\n setPreviousAnchor(anchorRef.current);\n }\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const _onPosition = useCallback(\n (data: PositionData) => {\n setPositionData(data);\n onPosition?.(data);\n },\n [onPosition]\n );\n\n const middleware = [\n offset(offsetValue),\n flip({\n mainAxis: flipOptions.mainAxis,\n crossAxis: flipOptions.crossAxis,\n fallbackPlacements: flipOptions.fallbackPlacements?.map((placement) =>\n logicalSide(placement, direction)\n ),\n padding: boundaryOptions.padding\n }),\n shift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis,\n limiter: limitShift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis\n })\n }),\n ...(arrowRef.current\n ? [\n arrow({\n element: arrowRef.current\n })\n ]\n : [])\n ];\n if (sizeOptions.isMaxHeightAdjusted || sizeOptions.isMaxWidthAdjusted) {\n middleware.push(\n size({\n apply({ availableWidth, availableHeight, elements }) {\n if (sizeOptions.isMaxHeightAdjusted) {\n if (parseInt(elements.floating.style.maxHeight) !== availableHeight) {\n Object.assign(elements.floating.style, {\n maxHeight: `${Math.min(\n availableHeight,\n sizeOptions.maxHeightCeiling || availableHeight\n )}px`\n });\n }\n }\n\n if (sizeOptions.isMaxWidthAdjusted) {\n if (parseInt(elements.floating.style.maxWidth) !== availableWidth) {\n Object.assign(elements.floating.style, {\n maxWidth: `${Math.min(\n availableWidth,\n sizeOptions.maxWidthCeiling || availableWidth\n )}px`\n });\n }\n }\n },\n\n padding: boundaryOptions.padding\n })\n );\n }\n\n const { x, y, reference, floating, refs, update } = useFloating({\n placement: placement,\n middleware: middleware,\n onPosition: _onPosition\n });\n\n // To solve \"loop limit exceeds\" problem from the ResizeObserver in autoUpdate\n // we need to make sure that we utilize autoUpdate function\n // after the Floating component is positioned and has x, y coordinates.\n const [isPositioned, setIsPositioned] = useState(false);\n\n // here autoUpdate should be called only once during the Component lifecycle,\n // if the floating, reference, placement and middleware do not change\n useEffect(() => {\n if (!refs.reference.current || !refs.floating.current || isPositioned !== true) {\n return;\n }\n\n return autoUpdate(refs.reference.current, refs.floating.current, update);\n }, [refs.floating, refs.reference, update, isPositioned]);\n\n // here we should know when the Floating is positioned\n useEffect(() => {\n if (x != null && y != null) {\n setIsPositioned(true);\n }\n }, [x, y]);\n\n useOutsideClick({ isDisabled: false, ref: refs.floating, handler: onClickOutside });\n\n function createVirtualElement(\n domRef: Element | null,\n data: {\n axis: 'x' | 'y' | 'both';\n x: number | null;\n y: number | null;\n }\n ) {\n let offsetX: number | null = null;\n let offsetY: number | null = null;\n let isAutoUpdateEvent = false;\n\n return {\n contextElement: domRef || undefined,\n getBoundingClientRect() {\n const domRect = domRef?.getBoundingClientRect() || {\n width: 0,\n height: 0,\n x: 0,\n y: 0\n };\n\n const isXAxis = data.axis === 'x' || data.axis === 'both';\n const isYAxis = data.axis === 'y' || data.axis === 'both';\n\n let width = domRect.width;\n let height = domRect.height;\n let x = domRect.x;\n let y = domRect.y;\n\n if (offsetX == null && data.x && isXAxis) {\n offsetX = domRect.x - data.x;\n }\n\n if (offsetY == null && data.y && isYAxis) {\n offsetY = domRect.y - data.y;\n }\n\n x -= offsetX || 0;\n y -= offsetY || 0;\n width = 0;\n height = 0;\n\n if (!isAutoUpdateEvent) {\n width = data.axis === 'y' ? domRect.width : 0;\n height = data.axis === 'x' ? domRect.height : 0;\n x = isXAxis && data.x != null ? data.x : x;\n y = isYAxis && data.y != null ? data.y : y;\n } else if (isAutoUpdateEvent) {\n height = data.axis === 'x' ? domRect.height : height;\n width = data.axis === 'y' ? domRect.width : width;\n }\n\n isAutoUpdateEvent = true;\n const virtEl = {\n width,\n height,\n x,\n y,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x\n };\n\n return virtEl;\n }\n };\n }\n\n useLayoutEffect(() => {\n if (isElement(previousAnchor)) {\n const element = previousAnchor as Element;\n reference(element);\n return;\n }\n const coords = previousAnchor as Coords;\n if (coords != null && coords.contextElement != null) {\n const virtualEl = createVirtualElement(coords.contextElement, {\n axis: 'both',\n x: coords.x,\n y: coords.y\n });\n reference(virtualEl);\n return;\n }\n const virtualEl: VirtualElement = {\n getBoundingClientRect() {\n return {\n width: 0,\n height: 0,\n x: coords!.x,\n y: coords!.y,\n top: coords!.y,\n left: coords!.x,\n right: coords!.x,\n bottom: coords!.y\n };\n }\n };\n if (coords && coords.x != null) {\n reference(virtualEl);\n }\n }, [previousAnchor, reference]);\n\n const stableRef = useMemo(() => mergeRefs(ref, floating), [ref, floating]);\n const positionStyle = { top: y, left: x };\n\n let assignedVars = {}; // empty var override unless background is specified\n if (backgroundColor) {\n assignedVars = assignInlineVars({\n [floatingVars.backgroundColor]: backgroundColor\n });\n }\n\n const visibilityStyles =\n x == null && y == null ? floatingVisibilityStyles.hidden : floatingVisibilityStyles.visible;\n const floatingClasses = classNames([className, baseTheme, styles.baseStyle, visibilityStyles]);\n const isAnchorMounted = anchorRef && anchorRef.current;\n const content = (\n <div class={floatingClasses} ref={stableRef} style={{ ...positionStyle, ...assignedVars }}>\n {children}\n {isAnchorMounted && (\n <FloatingTail\n ref={arrowRef}\n backgroundColor={backgroundColor}\n data={positionData}\n anchorRef={anchorRef}\n tail={tail}\n isRtl={isRtl}\n />\n )}\n </div>\n );\n return content;\n }\n);\n"],"names":["FloatingTail","forwardRef","data","anchorRef","tail","isRtl","backgroundColor","ref","styles","baseTheme","useComponentTheme","FloatingRedwoodTheme","arrowRef","useRef","arrowStyles","setArrowStyles","useState","arrowStyle","visibility","arrowInnerStyle","useLayoutEffect","current","isCornerVerticalPlacement","isCornerHorizontalPlacement","arrow","centerOffset","arrowSize","anchorRefHeight","anchorRefWidth","isAnchorRefElement","undefined","x","y","Math","round","getBoundingClientRect","height","width","abs","includes","origPlacement","isCorner","result","innerResult","arrowSizeCorner","arrowInnerSize","arrowInnerSizeCorner","isCenter","isCenterOffsetPositive","setArrowSizes","isCornerPlacement","arrowFinalSize","setArrowStyle","borderTop","getSize","rgba","colorSchemeVars","palette","neutral","borderRight","getTransparentBorder","borderLeft","arrowInnerFinalSize","setArrowInnerStyle","style","Object","assign","getTurn","eighth","size","placement","split","setArrowTop","setArrowStart","setArrowEnd","setArrowBottom","top","bottom","left","transform","setCornerArrowInner","setNonCornerArrowInner","right","setStyles","offset","stableRef","useMemo","mergeRefs","_jsxs","class","classNames","floatingTailBaseStyle","children","_jsx","Floating","onClickOutside","offsetValue","className","flipOptions","mainAxis","crossAxis","shiftOptions","sizeOptions","isMaxHeightAdjusted","isMaxWidthAdjusted","boundaryOptions","padding","onPosition","positionData","setPositionData","previousAnchor","setPreviousAnchor","direction","useUser","_onPosition","useCallback","middleware","flip","fallbackPlacements","map","logicalSide","shift","limiter","limitShift","element","push","apply","availableWidth","availableHeight","elements","parseInt","floating","maxHeight","min","maxHeightCeiling","maxWidth","maxWidthCeiling","reference","refs","update","useFloating","isPositioned","setIsPositioned","useEffect","autoUpdate","useOutsideClick","isDisabled","handler","Element","coords","contextElement","virtualEl","domRef","offsetX","offsetY","isAutoUpdateEvent","domRect","isXAxis","axis","isYAxis","createVirtualElement","positionStyle","assignedVars","assignInlineVars","floatingVars","visibilityStyles","floatingVisibilityStyles","hidden","visible","floatingClasses","baseStyle","isAnchorMounted"],"mappings":"sgBAqBA,MAKMA,EAAeC,EAAAA,YACnB,EACIC,OAAMC,YAAWC,OAAMC,QAAOC,mBAChCC,KAEA,MAAMC,OAAEA,EAAMC,UAAEA,GAAcC,EAAiBA,kBAAwBC,EAAoBA,sBACrFC,EAAWC,SAA8B,OACxCC,EAAaC,GAAkBC,WAAS,CAC7CC,WAAY,CAAEC,WAAY,UAC1BC,gBAAiB,CAAED,WAAY,YAGjCE,EAAAA,iBAAgB,KACd,GAAwB,MAApBR,EAASS,QAAiB,OAC9B,MAAMC,0BAAEA,EAAyBC,4BAAEA,GA+CzC,SACEpB,EACAC,EACAF,GAEA,GAAa,WAATE,GAAqBF,GAAQA,EAAKsB,MAAO,CAC3C,MAAMC,aAAEA,GAAiBvB,EAAKsB,MACxBE,EAzES,EA0Ef,IAAIC,EAAkB,EAClBC,EAAiB,EACrB,MAAMP,EAAUlB,EAAUkB,QAIpBQ,OAAoCC,IAAfT,GAASU,QAAkCD,IAAfT,GAASW,EAC5DH,IAEFF,EAAkBM,KAAKC,MAAMb,EAAQ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XwC,OAAQ7C,EAAII,EACZ0C,KAAM/C,EAIT,EAEJ,CAUqBiI,CAAqBX,EAAOC,eAAgB,CAC5DQ,KAAM,OACN/H,EAAGsH,EAAOtH,EACVC,EAAGqH,EAAOrH,IAGZ,YADAyG,EAAUc,EAEX,CACD,MAAMA,EAA4B,CAChCpH,sBAAqB,KACZ,CACLE,MAAO,EACPD,OAAQ,EACRL,EAAGsH,EAAQtH,EACXC,EAAGqH,EAAQrH,EACX4C,IAAKyE,EAAQrH,EACb8C,KAAMuE,EAAQtH,EACdmD,MAAOmE,EAAQtH,EACf8C,OAAQwE,EAAQrH,KAIlBqH,GAAsB,MAAZA,EAAOtH,GACnB0G,EAAUc,EACX,GACA,CAACzC,EAAgB2B,IAEpB,MAAMpD,EAAYC,WAAQ,IAAMC,YAAUhF,EAAK4H,IAAW,CAAC5H,EAAK4H,IAC1D8B,EAAgB,CAAErF,IAAK5C,EAAG8C,KAAM/C,GAEtC,IAAImI,EAAe,CAAA,EACf5J,IACF4J,EAAeC,EAAAA,iBAAiB,CAC9B,CAACC,EAAAA,aAAa9J,iBAAkBA,KAIpC,MAAM+J,EACC,MAALtI,GAAkB,MAALC,EAAYsI,2BAAyBC,OAASD,EAAwBA,yBAACE,QAChFC,EAAkB/E,EAAUA,WAAC,CAACO,EAAWxF,EAAWD,EAAOkK,UAAWL,IACtEM,EAAkBxK,GAAaA,EAAUkB,QAgB/C,OAdEmE,EAAAA,KAAK,MAAA,CAAAC,MAAOgF,EAAiBlK,IAAK8E,EAAWrB,MAAO,IAAKiG,KAAkBC,GAActE,SAAA,CACtFA,EACA+E,GACC9E,EAAAA,IAAC7F,EACC,CAAAO,IAAKK,EACLN,gBAAiBA,EACjBJ,KAAM0G,EACNzG,UAAWA,EACXC,KAAMA,EACNC,MAAOA,MAKD"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', './grid-767b4587', './boxalignment-50db1e3a', './mergeInterpolations-9ede4cf7', 'css!./GridStyles.styles.css', './useTestId-d0c49456'], (function(e,s,t,r,i,n,l){"use strict";const a=[...Object.values(t.gridInterpolations),...Object.values(r.boxAlignmentInterpolations)],d=i.mergeInterpolations(a);e.Grid=({"aria-label":e,"aria-hidden":t,children:r,testId:i,role:n,...a})=>{const{class:o,...c}=d(a),b=l.useTestId(i),u={...c};return s.jsx("div",{class:`GridStyles_baseStyles__11rn47i0 ${o||""}`,style:u,role:n,"aria-label":e,"aria-hidden":t,...b,children:r})}}));
2
- //# sourceMappingURL=Grid-49beb801.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Grid-49beb801.js","sources":["../../src/UNSAFE_Grid/Grid.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 { ComponentChildren } from 'preact';\n\nimport { gridInterpolations } from '../utils/UNSAFE_interpolations/grid';\nimport type { GridProps } from '../utils/UNSAFE_interpolations/grid';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { baseStyles } from './GridStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { HTMLAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\n\ntype Props = GridProps &\n BoxAlignmentProps &\n TestIdProps & {\n /**\n * The aria role for the Grid\n */\n role?: HTMLAttributesSignalExcluded['role'];\n /**\n * aria-label for this Grid\n */\n 'aria-label'?: HTMLAttributesSignalExcluded['aria-label'];\n /**\n * aria-hidden for this Grid\n */\n 'aria-hidden'?: HTMLAttributesSignalExcluded['aria-hidden'];\n /**\n * The children to put in the grid.\n */\n children?: ComponentChildren;\n };\n\nconst interpolations = [\n ...Object.values(gridInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * An implicit grid. Resize your browser to see how items reflow.\n */\nexport const Grid = ({\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n children,\n testId,\n role,\n ...props\n}: Props) => {\n const { class: cls, ...styles } = styleInterpolations(props);\n const testIdProps = useTestId(testId);\n const allStyles = { ...styles };\n return (\n <div\n class={`${baseStyles} ${cls ? cls : ''}`}\n style={allStyles}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n {...testIdProps}>\n {children}\n </div>\n );\n};\n"],"names":["interpolations","Object","values","gridInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","ariaLabel","ariaHidden","children","testId","role","props","class","cls","styles","testIdProps","useTestId","allStyles","_jsx","style"],"mappings":"4MAuCA,MAAMA,EAAiB,IAClBC,OAAOC,OAAOC,yBACdF,OAAOC,OAAOE,+BAGbC,EAAsBC,EAAAA,oBAA2BN,UAKnC,EAClB,aAAcO,EACd,cAAeC,EACfC,WACAC,SACAC,UACGC,MAEH,MAAQC,MAAOC,KAAQC,GAAWV,EAAoBO,GAChDI,EAAcC,YAAUP,GACxBQ,EAAY,IAAKH,GACvB,OACEI,MAAA,MAAA,CACEN,MAAO,mCAAiBC,GAAY,KACpCM,MAAOF,EACPP,KAAMA,EACM,aAAAJ,EACC,cAAAC,KACTQ,EAAWP,SACdA,GAEH"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', './PRIVATE_PlotArea/themes/PlotAreaStyles.css', './hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css', './classNames-08d99695', './useColorScheme-8358a6c9'], (function(e,s,t,i,n,l){"use strict";function o(e,s,t){return{x1:s?e.x+e.width:e.x,x2:s?e.x+e.width:e.x,y1:e.y,y2:e.y+e.height,stroke:t?.lineColor,strokeWidth:t?.lineWidth}}const r={yMajorTick:{isRendered:!0},yMinorTick:{isRendered:!1},xMajorTick:{isRendered:!1},xMinorTick:{isRendered:!1}};e.Gridlines=function({plotArea:e=r,yMinorTicks:i,xMinorTicks:o,xScale:d,yScale:a,isLog:c,yTicks:y,xTicks:h,yAxisPosition:k,isDataXAxis:x}){const S="top"===k||"bottom"===k,[$,L]=d.range(),[m,M]=a.range();let T="",g="",f="",u="";const{yMajorTick:j,yMinorTick:p,xMajorTick:v,xMinorTick:R}=e,A={...r.yMajorTick,...j},W={...r.yMinorTick,...p},P={...r.xMinorTick,...R},C={...r.xMajorTick,...v},b=!0===W?.isRendered||c,w=!0===C?.isRendered||!1===v?.isRendered&&x;if(A?.isRendered)for(let e=1;e<y.length;e++){let s=a.transform(y[e]);e===y.length-1&&(s+=S?-1:1),T+=S?`M${s},${$}L${s},${L}`:`M${$},${s}L${L},${s}`}if(w&&h)for(let e=1;e<h.length;e++){const s=d.transform(h[e]);g+=S?`M${m},${s}L${M},${s}`:`M${s},${m}L${s},${M}`}if(b)for(let e=0;e<i.length;e++){const s=a.transform(i[e]);f+=S?`M${s},${$}L${s},${L}`:`M${$},${s}L${L},${s}`}if(P.isRendered&&o)for(let e=0;e<o.length;e++){const s=d.transform(o[e]);u+=S?`M${m},${s}L${M},${s}`:`M${s},${m}L${s},${M}`}const E=l.useColorScheme();return s.jsxs(s.Fragment,{children:[A?.isRendered&&s.jsx("path",{d:T,class:n.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===A?.lineStyle?t.styles.dashedLine:void 0,"dotted"===A?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:A.lineColor,strokeWidth:A.lineWidth}}),w&&s.jsx("path",{d:g,class:n.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===C?.lineStyle?t.styles.dashedLine:void 0,"dotted"===C?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:C.lineColor,strokeWidth:C.lineWidth}}),b&&s.jsx("path",{d:f,class:n.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===E?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===W?.lineStyle?t.styles.dashedLine:void 0,"dotted"===W?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:W?.lineColor,strokeWidth:W?.lineWidth}}),P.isRendered&&s.jsx("path",{d:u,class:n.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===E?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===P?.lineStyle?t.styles.dashedLine:void 0,"dotted"===P?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:P?.lineColor,strokeWidth:P?.lineWidth}})]})},e.PlotArea=function({color:e,yScale:l,isLog:r,availSpace:d,xAxisPosition:a,cursor:c,isDataXAxis:y,isRtl:h,hasAxisLine:k,dragOverStyle:x}){const S=!r&&l.domain()[0]<0&&l.domain()[1]>0,$=function(e,s,t){return{x1:"right"===s?e.x+e.width:e.x,x2:"left"===s?e.x:e.x+e.width,y1:"bottom"===s?e.y+e.height:e.y,y2:"top"===s?e.y:e.y+e.height,stroke:t?.lineColor,strokeWidth:t?.lineWidth}}(d,a),L=function(e,s,t){let i,n,l,o;return"bottom"===t?(i=e.x,n=e.x+e.width,l=s,o=s):(i=s,n=s,l=e.y,o=e.y+e.height),{x1:i,x2:n,y1:l,y2:o}}(d,l.transform(0),a),m=[];switch(x){case"accept":m.push(i.styles.dndDragOverSvgStyle);break;case"reject":m.push(i.styles.dndRejectedStyle),m.push(t.styles.plotAreaStyle);break;case"none":m.push(t.styles.plotAreaStyle)}return s.jsxs(s.Fragment,{children:[s.jsx("rect",{...d,class:n.classNames(m),style:{fill:"accept"===x?void 0:e,cursor:c}}),y&&s.jsx("line",{...o(d,h),class:t.styles.axisLineStyle}),k&&s.jsx("line",{...$,class:t.styles.axisLineStyle}),S&&s.jsx("line",{...L,class:t.styles.baseLineStyle})]})}}));
2
- //# sourceMappingURL=Gridlines-9ec65953.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Gridlines-9ec65953.js","sources":["../../src/PRIVATE_PlotArea/utils.ts","../../src/PRIVATE_PlotArea/Gridlines.tsx","../../src/PRIVATE_PlotArea/PlotArea.tsx"],"sourcesContent":["import { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Dimension } from '../utils/UNSAFE_visTypes/common';\n\nexport function getXAxisLineProps(\n availSpace: Dimension,\n axisPosition: 'left' | 'right' | 'top' | 'bottom',\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n return {\n x1: axisPosition === 'right' ? availSpace.x + availSpace.width : availSpace.x,\n x2: axisPosition === 'left' ? availSpace.x : availSpace.x + availSpace.width,\n y1: axisPosition === 'bottom' ? availSpace.y + availSpace.height : availSpace.y,\n y2: axisPosition === 'top' ? availSpace.y : availSpace.y + availSpace.height,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getYAxisLineProps(\n availSpace: Dimension,\n isRtl?: boolean,\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n return {\n x1: isRtl ? availSpace.x + availSpace.width : availSpace.x,\n x2: isRtl ? availSpace.x + availSpace.width : availSpace.x,\n y1: availSpace.y,\n y2: availSpace.y + availSpace.height,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getBaseLineProps(\n availSpace: Dimension,\n coord: number,\n axisPosition: 'left' | 'right' | 'top' | 'bottom'\n) {\n let x1, x2, y1, y2: number;\n if (axisPosition === 'bottom') {\n x1 = availSpace.x;\n x2 = availSpace.x + availSpace.width;\n y1 = coord;\n y2 = coord;\n } else {\n x1 = coord;\n x2 = coord;\n y1 = availSpace.y;\n y2 = availSpace.y + availSpace.height;\n }\n\n return { x1, x2, y1, y2 };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { styles } from './themes/PlotAreaStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { ChartPlotArea, Scale } from '../utils/UNSAFE_visTypes/chart';\nimport { useColorScheme } from '../hooks/UNSAFE_useColorScheme';\n\ntype Props = {\n xScale: Scale;\n yScale: Scale;\n isLog: boolean;\n yTicks: number[];\n xTicks?: number[];\n yMinorTicks: number[];\n xMinorTicks?: number[];\n plotArea?: ChartPlotArea;\n yAxisPosition: 'left' | 'right' | 'top' | 'bottom';\n isDataXAxis?: boolean;\n};\n\nconst TICK_DEFAULT = {\n yMajorTick: {\n isRendered: true\n },\n yMinorTick: {\n isRendered: false\n },\n xMajorTick: {\n isRendered: false\n },\n xMinorTick: {\n isRendered: false\n }\n};\n\nexport function Gridlines({\n plotArea = TICK_DEFAULT,\n yMinorTicks,\n xMinorTicks,\n xScale,\n yScale,\n isLog,\n yTicks,\n xTicks,\n yAxisPosition,\n isDataXAxis\n}: Props) {\n const isHoriz = yAxisPosition === 'top' || yAxisPosition === 'bottom';\n const [x1, x2] = xScale.range();\n const [y1, y2] = yScale.range();\n\n let yLinesPath = '';\n let xLinesPath = '';\n let yMinorPath = '';\n let xMinorPath = '';\n const {\n yMajorTick: _yMajorTick,\n yMinorTick: _yMinorTick,\n xMajorTick: _xMajorTick,\n xMinorTick: _xMinorTick\n } = plotArea;\n const yMajorTick = { ...TICK_DEFAULT.yMajorTick, ..._yMajorTick };\n const yMinorTick = { ...TICK_DEFAULT.yMinorTick, ..._yMinorTick };\n const xMinorTick = { ...TICK_DEFAULT.xMinorTick, ..._xMinorTick };\n const xMajorTick = { ...TICK_DEFAULT.xMajorTick, ..._xMajorTick };\n const isYMinorRendered = yMinorTick?.isRendered === true || isLog;\n const isXMajorRendered =\n xMajorTick?.isRendered === true || (_xMajorTick?.isRendered === false && isDataXAxis);\n\n if (yMajorTick?.isRendered) {\n for (let i = 1; i < yTicks.length; i++) {\n let y = yScale.transform(yTicks[i]);\n // last grid line get's clipped due to plot area clippath. Slightly adjust\n // coord so that it's not clipped.\n if (i === yTicks.length - 1) {\n y += isHoriz ? -1 : 1;\n }\n yLinesPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (isXMajorRendered) {\n if (xTicks) {\n for (let i = 1; i < xTicks.length; i++) {\n const x = xScale.transform(xTicks[i]);\n xLinesPath += isHoriz ? `M${y1},${x}L${y2},${x}` : `M${x},${y1}L${x},${y2}`;\n }\n }\n }\n\n if (isYMinorRendered) {\n for (let i = 0; i < yMinorTicks.length; i++) {\n const y = yScale.transform(yMinorTicks[i]);\n yMinorPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (xMinorTick.isRendered && xMinorTicks) {\n for (let i = 0; i < xMinorTicks.length; i++) {\n const x = xScale.transform(xMinorTicks[i]);\n xMinorPath += isHoriz ? `M${y1},${x}L${y2},${x}` : `M${x},${y1}L${x},${y2}`;\n }\n }\n\n const colorScheme = useColorScheme();\n\n return (\n <>\n {yMajorTick?.isRendered && (\n <path\n d={yLinesPath}\n class={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n yMajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n yMajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: yMajorTick.lineColor,\n strokeWidth: yMajorTick.lineWidth\n }}\n />\n )}\n {isXMajorRendered && (\n <path\n d={xLinesPath}\n class={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n xMajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n xMajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: xMajorTick.lineColor,\n strokeWidth: xMajorTick.lineWidth\n }}\n />\n )}\n {isYMinorRendered && (\n <path\n d={yMinorPath}\n class={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n yMinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n yMinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: yMinorTick?.lineColor,\n strokeWidth: yMinorTick?.lineWidth\n }}\n />\n )}\n {xMinorTick.isRendered && (\n <path\n d={xMinorPath}\n class={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n xMinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n xMinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: xMinorTick?.lineColor,\n strokeWidth: xMinorTick?.lineWidth\n }}\n />\n )}\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { styles } from './themes/PlotAreaStyles.css';\nimport { Dimension } from '../utils/UNSAFE_visTypes/common';\nimport { getXAxisLineProps, getBaseLineProps, getYAxisLineProps } from './utils';\nimport { Scale } from '../utils/UNSAFE_visTypes/chart';\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { styles as VisStyles } from '#hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css';\nimport { classNames } from '#utils/UNSAFE_classNames';\n\ntype Props = {\n yScale: Scale;\n isLog: boolean;\n color?: ColorProps['color'];\n availSpace: Dimension;\n xAxisPosition: 'left' | 'right' | 'top' | 'bottom';\n cursor?: string;\n dragOverStyle: 'accept' | 'reject' | 'none';\n isDataXAxis?: boolean;\n isRtl?: boolean;\n hasAxisLine: boolean;\n};\n\nexport function PlotArea({\n color,\n yScale,\n isLog,\n availSpace,\n xAxisPosition,\n cursor,\n isDataXAxis,\n isRtl,\n hasAxisLine,\n dragOverStyle\n}: Props) {\n const hasBaseLine = !isLog && yScale.domain()[0] < 0 && yScale.domain()[1] > 0;\n const xAxisLineProps = getXAxisLineProps(availSpace, xAxisPosition);\n const baseLineProps = getBaseLineProps(availSpace, yScale.transform(0), xAxisPosition);\n const dragClass = [];\n switch (dragOverStyle) {\n case 'accept':\n dragClass.push(VisStyles.dndDragOverSvgStyle);\n break;\n case 'reject':\n dragClass.push(VisStyles.dndRejectedStyle);\n dragClass.push(styles.plotAreaStyle);\n break;\n case 'none':\n dragClass.push(styles.plotAreaStyle);\n break;\n }\n\n return (\n <>\n <rect\n {...availSpace}\n class={classNames(dragClass)}\n style={{ fill: dragOverStyle === 'accept' ? undefined : color, cursor }}></rect>\n {isDataXAxis && (\n <line {...getYAxisLineProps(availSpace, isRtl)} class={styles.axisLineStyle} />\n )}\n {hasAxisLine && <line {...xAxisLineProps} class={styles.axisLineStyle} />}\n {hasBaseLine && <line {...baseLineProps} class={styles.baseLineStyle} />}\n </>\n );\n}\n"],"names":["getYAxisLineProps","availSpace","isRtl","axisLine","x1","x","width","x2","y1","y","y2","height","stroke","lineColor","strokeWidth","lineWidth","TICK_DEFAULT","yMajorTick","isRendered","yMinorTick","xMajorTick","xMinorTick","plotArea","yMinorTicks","xMinorTicks","xScale","yScale","isLog","yTicks","xTicks","yAxisPosition","isDataXAxis","isHoriz","range","yLinesPath","xLinesPath","yMinorPath","xMinorPath","_yMajorTick","_yMinorTick","_xMajorTick","_xMinorTick","isYMinorRendered","isXMajorRendered","i","length","transform","colorScheme","useColorScheme","_jsxs","jsxs","_Fragment","Fragment","children","_jsx","jsx","d","class","classNames","styles","noPointerEvents","majorTickLineStyles","lineStyle","dashedLine","undefined","dottedLine","style","minorTickLineStyles","lightMinorTickLineStroke","darkMinorTickLineStroke","color","xAxisPosition","cursor","hasAxisLine","dragOverStyle","hasBaseLine","domain","xAxisLineProps","axisPosition","getXAxisLineProps","baseLineProps","coord","getBaseLineProps","dragClass","push","VisStyles","dndDragOverSvgStyle","dndRejectedStyle","plotAreaStyle","fill","axisLineStyle","baseLineStyle"],"mappings":"4OAsBgBA,EACdC,EACAC,EACAC,GAMA,MAAO,CACLC,GAAIF,EAAQD,EAAWI,EAAIJ,EAAWK,MAAQL,EAAWI,EACzDE,GAAIL,EAAQD,EAAWI,EAAIJ,EAAWK,MAAQL,EAAWI,EACzDG,GAAIP,EAAWQ,EACfC,GAAIT,EAAWQ,EAAIR,EAAWU,OAC9BC,OAAQT,GAAUU,UAClBC,YAAaX,GAAUY,UAE3B,CCbA,MAAMC,EAAe,CACnBC,WAAY,CACVC,YAAY,GAEdC,WAAY,CACVD,YAAY,GAEdE,WAAY,CACVF,YAAY,GAEdG,WAAY,CACVH,YAAY,gBAIV,UAAoBI,SACxBA,EAAWN,EAAYO,YACvBA,EAAWC,YACXA,EAAWC,OACXA,EAAMC,OACNA,EAAMC,MACNA,EAAKC,OACLA,EAAMC,OACNA,EAAMC,cACNA,EAAaC,YACbA,IAEA,MAAMC,EAA4B,QAAlBF,GAA6C,WAAlBA,GACpC1B,EAAIG,GAAMkB,EAAOQ,SACjBzB,EAAIE,GAAMgB,EAAOO,QAExB,IAAIC,EAAa,GACbC,EAAa,GACbC,EAAa,GACbC,EAAa,GACjB,MACEpB,WAAYqB,EACZnB,WAAYoB,EACZnB,WAAYoB,EACZnB,WAAYoB,GACVnB,EACEL,EAAa,IAAKD,EAAaC,cAAeqB,GAC9CnB,EAAa,IAAKH,EAAaG,cAAeoB,GAC9ClB,EAAa,IAAKL,EAAaK,cAAeoB,GAC9CrB,EAAa,IAAKJ,EAAaI,cAAeoB,GAC9CE,GAA8C,IAA3BvB,GAAYD,YAAuBS,EACtDgB,GACuB,IAA3BvB,GAAYF,aAAoD,IAA5BsB,GAAatB,YAAwBa,EAE3E,GAAId,GAAYC,WACd,IAAK,IAAI0B,EAAI,EAAGA,EAAIhB,EAAOiB,OAAQD,IAAK,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AA,IAAUsB,EAAgBpB,MAAOE,EAAAA,OAAO+B,gBACvDf,GAAerB,EAAUC,IAAA,OAAA,IAAAyB,EAAevB,MAAOE,EAAAA,OAAOgC,kBAG7D"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'css!./HighlightTextStyles.styles.css', './useTestId-d0c49456'], (function(e,t,s,n){"use strict";const i="__@@__",c=`${i}$&${i}`;e.HighlightText=function({children:e="",matchText:s="",testId:l}){const h=n.useTestId(l);if(s.length>0&&e.length>0){const n=s.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),l=e.replace(new RegExp(n,"gi"),c).split(i).map(((e,s)=>s%2==0?e:t.jsx("span",{class:"HighlightTextStyles_highlightStyles__6s5c4p0",children:e})));return t.jsx("span",{...h,children:l})}return t.jsx("span",{...h,children:e})}}));
2
- //# sourceMappingURL=HighlightText-b020d84d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HighlightText-b020d84d.js","sources":["../../src/UNSAFE_HighlightText/HighlightText.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { highlightStyles } from './HighlightTextStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\n\ntype Props = TestIdProps & {\n /**\n * The text string to apply highlighting to.\n */\n children?: string;\n /**\n * The text string to match.\n */\n matchText?: string;\n};\n\nconst HIGHLIGHT_TOKEN = '__@@__';\nconst HIGHLIGHT_PATTERN = `${HIGHLIGHT_TOKEN}$&${HIGHLIGHT_TOKEN}`;\n\n/**\n * Renders a text string with highlighting applied to the given text to match.\n */\nexport function HighlightText({ children = '', matchText = '', testId }: Props) {\n const testIdProps = useTestId(testId);\n if (matchText.length > 0 && children.length > 0) {\n const escapedMatchText = escapeRegExp(matchText);\n const highlightedText = children.replace(new RegExp(escapedMatchText, 'gi'), HIGHLIGHT_PATTERN);\n const tokens = highlightedText.split(HIGHLIGHT_TOKEN);\n const nodes = tokens.map((current, index) =>\n index % 2 == 0 ? current : <span class={highlightStyles}>{current}</span>\n );\n\n return <span {...testIdProps}>{nodes}</span>;\n }\n return <span {...testIdProps}>{children}</span>;\n}\n\nfunction escapeRegExp(str: string) {\n // copied from:\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\n return str.replace(/[.*+\\-?^${}()|[\\]\\\\]/g, '\\\\$&'); // $& means the whole matched string\n}\n"],"names":["HIGHLIGHT_TOKEN","HIGHLIGHT_PATTERN","children","matchText","testId","testIdProps","useTestId","length","escapedMatchText","replace","nodes","RegExp","split","map","current","index","_jsx","jsx","class"],"mappings":"kIAsBA,MAAMA,EAAkB,SAClBC,EAAoB,GAAGD,MAAoBA,oBAKjC,UAAcE,SAAEA,EAAW,GAAEC,UAAEA,EAAY,GAAEC,OAAEA,IAC7D,MAAMC,EAAcC,YAAUF,GAC9B,GAAID,EAAUI,OAAS,GAAKL,EAASK,OAAS,EAAG,CAC/C,MAAMC,EAAgCL,EAe7BM,QAAQ,wBAAyB,QAZpCC,EAFkBR,EAASO,QAAQ,IAAIE,OAAOH,EAAkB,MAAOP,GAC9CW,MAAMZ,GAChBa,KAAI,CAACC,EAASC,IACjCA,EAAQ,GAAK,EAAID,EAAUE,EAAMC,IAAA,OAAA,CAAAC,qDAAsBhB,SAAGY,MAG5D,OAAOE,EAAAA,IAAU,OAAA,IAAAX,EAAcH,SAAAQ,GAChC,CACD,OAAOM,EAAAA,IAAU,OAAA,IAAAX,EAAcH,SAAAA,GACjC"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useTranslationBundle-652e08a6', './Help-7200f40e', './Popup-bba2ea15', './HiddenAccessible-037ef42d', './InlineHelp-da5cabec', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './useComponentTheme-5aa41a8f', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './useToggle-a29f97af'], (function(e,s,n,a,o,t,c,i,l,r,u,p,d){"use strict";e.IconUserAssistance=({assistiveText:e,helpSourceLink:h,helpSourceText:m,isTabbable:b=!0,id:x})=>{const{bool:f,setFalse:T,toggle:g}=d.useToggle(!1),A=a.useTranslationBundle("@oracle/oraclejet-preact"),k=A.userAssistance_learnMore(),C=h&&(m||k),j=A.radio_helpForRadio(),U=`${x}-help-string`,H=n.useRef(null),S=n.useCallback((e=>{const s=e?.target;(s instanceof Element||s instanceof Document)&&!H.current?.contains(s)&&f&&T()}),[f,T]),v=n.useCallback((e=>{const{key:s}=e;if(s&&"Enter"!==s)return;const{tagName:n}=e.target;"a"===n?.toLowerCase()&&(T(),setTimeout((()=>H.current?.focus())))}),[T]),E=n.useCallback((e=>{["Tab","Escape"].includes(e.code)&&f&&T(),["Space","Enter"].includes(e.code)&&(e.preventDefault(),g())}),[f,T,g]),F=n.useCallback((e=>{e.preventDefault(),g()}),[g]),{baseTheme:I}=r.useComponentTheme(p.PopupRedwoodTheme),P=u.classNames([I,l.iconUserAssistancePopupFocus]);return h||e?s.jsxs(s.Fragment,{children:[s.jsx("span",{onKeyDown:E,onClick:F,role:"link","aria-describedby":U,"aria-haspopup":"dialog",ref:H,tabIndex:b?0:-1,class:l.iconUserAssistanceIcon,id:`${x}-help-icon`,children:s.jsx(o.SvgHelp,{})}),s.jsx(c.HiddenAccessible,{id:U,isHidden:!0,children:j}),s.jsx(t.Popup,{placement:"top",isOpen:f,anchorRef:H,onClose:T,onClickOutside:S,shiftOptions:{mainAxis:!0,crossAxis:!1},maxWidth:"296px",children:s.jsx("div",{id:x,tabIndex:0,class:P,onMouseUp:v,onKeyDown:v,children:s.jsx(i.InlineHelp,{assistiveText:e,sourceLink:h,sourceText:C})})})]}):null}}));
2
- //# sourceMappingURL=IconUserAssistance-b5075ca1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconUserAssistance-b5075ca1.js","sources":["../../src/UNSAFE_UserAssistance/IconUserAssistance.tsx"],"sourcesContent":["import { useCallback, useRef } from 'preact/hooks';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\n\nimport { HelpIcon } from '#PRIVATE_ThemedIcons/HelpIcon';\nimport { Popup } from '#UNSAFE_Popup';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { InlineHelp } from './InlineHelp';\nimport {\n iconUserAssistanceIcon,\n iconUserAssistancePopupFocus\n} from './themes/UserAssistanceStyles.css';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { PopupRedwoodTheme } from '#UNSAFE_Popup/themes/redwood/PopupTheme';\nimport { useToggle } from '#hooks/UNSAFE_useToggle';\n\ntype Props = {\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: string;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: string;\n /**\n * Custom text to be rendered for the `helpSourceLink`. \"Learn more\" will be used if no custom text is provided.\n */\n helpSourceText?: string;\n /**\n * Whether the trigger element is in tab sequence\n */\n isTabbable?: boolean;\n /**\n * ID of the pop up content that can be used for aria-describedby\n */\n id?: string;\n};\n\n/**\n * Created to match icon user assistance spec for use with radio option, pending design review\n * of inline UA assistance.\n */\nconst IconUserAssistance = ({\n assistiveText,\n helpSourceLink,\n helpSourceText,\n isTabbable = true,\n id\n}: Props) => {\n const { bool: isOpen, setFalse: setIsOpenFalse, toggle } = useToggle(false);\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const userAssistance_learnMoreStr = translations.userAssistance_learnMore();\n const sourceText = helpSourceLink && (helpSourceText || userAssistance_learnMoreStr);\n const helpForRadioString = translations.radio_helpForRadio();\n const helpStringId = `${id}-help-string`;\n const anchorRef = useRef<HTMLSpanElement>(null);\n\n const handleOutsideClick = useCallback(\n (event: MouseEvent) => {\n const target = event?.target;\n // We need to filter out anchor click events, because anchor is responsible for the toggling\n if (\n (target instanceof Element || target instanceof Document) &&\n !anchorRef.current?.contains(target) &&\n isOpen\n ) {\n setIsOpenFalse();\n }\n },\n [isOpen, setIsOpenFalse]\n );\n\n const handleLinkEvent = useCallback(\n (e: Event) => {\n // if it's a key event that is not \"enter\", return early\n const { key } = e as KeyboardEvent;\n if (key && key !== 'Enter') {\n return;\n }\n\n // We want to close the pop up if a link is triggered with mouse or keyboard\n const { tagName } = e.target as Element;\n\n if (tagName?.toLowerCase() === 'a') {\n setIsOpenFalse();\n\n // we want to refocus to the help icon after the browser has launched the link\n // prematurely doing so prevents keyboard events from firing\n setTimeout(() => anchorRef.current?.focus());\n }\n },\n [setIsOpenFalse]\n );\n\n const handleOnKeyDown = useCallback(\n (e: KeyboardEvent) => {\n // allow user to close popup without having to focus it\n if (['Tab', 'Escape'].includes(e.code) && isOpen) {\n setIsOpenFalse();\n }\n\n // toggle and prevent scroll jump\n if (['Space', 'Enter'].includes(e.code)) {\n e.preventDefault();\n toggle();\n }\n },\n [isOpen, setIsOpenFalse, toggle]\n );\n\n const onClickHandler = useCallback(\n (e: Event) => {\n e.preventDefault();\n toggle();\n },\n [toggle]\n );\n\n // We are referencing popup vars, so we need to bring in the baseTheme for popup\n const { baseTheme: popupBaseTheme } = useComponentTheme(PopupRedwoodTheme);\n const iconUserAssistanceClasses = classNames([popupBaseTheme, iconUserAssistancePopupFocus]);\n\n return helpSourceLink || assistiveText ? (\n <>\n <span\n onKeyDown={handleOnKeyDown}\n onClick={onClickHandler}\n role=\"link\"\n aria-describedby={helpStringId}\n aria-haspopup=\"dialog\"\n ref={anchorRef}\n tabIndex={isTabbable ? 0 : -1}\n class={iconUserAssistanceIcon}\n id={`${id}-help-icon`}>\n <HelpIcon />\n </span>\n <HiddenAccessible id={helpStringId} isHidden={true}>\n {helpForRadioString}\n </HiddenAccessible>\n <Popup\n placement=\"top\"\n isOpen={isOpen}\n anchorRef={anchorRef}\n onClose={setIsOpenFalse}\n onClickOutside={handleOutsideClick}\n shiftOptions={{ mainAxis: true, crossAxis: false }}\n maxWidth={'296px'}>\n <div\n id={id}\n tabIndex={0}\n class={iconUserAssistanceClasses}\n onMouseUp={handleLinkEvent}\n onKeyDown={handleLinkEvent}>\n <InlineHelp\n assistiveText={assistiveText}\n sourceLink={helpSourceLink}\n sourceText={sourceText}\n />\n </div>\n </Popup>\n </>\n ) : null;\n};\n\nexport { IconUserAssistance };\n"],"names":["assistiveText","helpSourceLink","helpSourceText","isTabbable","id","bool","isOpen","setFalse","setIsOpenFalse","toggle","useToggle","translations","useTranslationBundle","userAssistance_learnMoreStr","userAssistance_learnMore","sourceText","helpForRadioString","radio_helpForRadio","helpStringId","anchorRef","useRef","handleOutsideClick","useCallback","event","target","Element","Document","current","contains","handleLinkEvent","e","key","tagName","toLowerCase","setTimeout","focus","handleOnKeyDown","includes","code","preventDefault","onClickHandler","baseTheme","popupBaseTheme","useComponentTheme","PopupRedwoodTheme","iconUserAssistanceClasses","classNames","iconUserAssistancePopupFocus","_jsxs","jsxs","_Fragment","children","_jsx","onKeyDown","onClick","role","ref","tabIndex","class","iconUserAssistanceIcon","HelpIcon","SvgHelp","HiddenAccessible","isHidden","Popup","placement","onClose","onClickOutside","shiftOptions","mainAxis","crossAxis","maxWidth","onMouseUp","InlineHelp","sourceLink"],"mappings":"8aA6C2B,EACzBA,gBACAC,iBACAC,iBACAC,cAAa,EACbC,SAEA,MAAQC,KAAMC,EAAQC,SAAUC,EAAcC,OAAEA,GAAWC,aAAU,GAE/DC,EAAeC,uBAAiC,4BAChDC,EAA8BF,EAAaG,2BAC3CC,EAAad,IAAmBC,GAAkBW,GAClDG,EAAqBL,EAAaM,qBAClCC,EAAe,GAAGd,gBAClBe,EAAYC,SAAwB,MAEpCC,EAAqBC,eACxBC,IACC,MAAMC,EAASD,GAAOC,QAGnBA,aAAkBC,SAAWD,aAAkBE,YAC/CP,EAAUQ,SAASC,SAASJ,IA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ACqB,EAAUA,YACTzE,cAAeA,EACf0E,WAAYzE,EACZc,WAAYA,WAKlB,IAAI"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './Calendar-d7e92951', './InputDateMask-4157ef60', './HiddenAccessible-037ef42d', './IconButton-c2e5c1c5', './clientHints-fff66be9', './FormFieldContext-3c44aaaa', './logger-0f873e29', './TabbableModeContext-a9c97640', './useTranslationBundle-652e08a6', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-d208ce7b', './Flex-69dc7af4', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-1b4d03f0', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-304eef18', 'css!./IconStyle.styles.css', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './Popup-bba2ea15', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './UNSAFE_InputDatePicker/themes/InputDatePickerDropdownStyles.css', './Sheet-f4665056', './DatePicker-20e9a255', './SectionedContent-d75017a3', './stringUtils-0ae982c2', './FormContext-5130e198', './useFormContext-30acdd33', './useId-c9578d26', './getFormatParse-3d7186b3', './maskUtils-9370948f', './calendarDateUtils-5e25297c'], (function(e,s,t,a,n,o,r,i,l,d,c,u,m,p,h,y,f,C,D,S,b,k,x,A,v,g,F,T,V,I,w,P,U,M,R,j,_,B,H,E,N,L,O,Y,Z,W,z,G,q,J,K,Q,X,$,ee){"use strict";const se=({anchorRef:e,assistiveText:t,dayFormatter:n,daysOutsideMonth:o,helpSourceLink:r,helpSourceText:i,isDisabled:l,isOpen:c,isReadonly:u,label:p,onClose:h,onCommit:y,max:C,messages:D,min:S,monthAndYearPicker:b,testId:k,todayButton:x,todayTimeZone:A,userAssistanceDensity:v,value:g,weekDisplay:F})=>{const[T,V]=a.useState(!1),[I,w]=a.useState(c),P=a.useCallback((e=>{V(e.placement.startsWith("top"))}),[]);I!==c&&(w(c),c||V(!1));const U=te(),{datePicker_label:M}=m.useTranslationBundle("@oracle/oraclejet-preact"),R=M(),j=s.jsx(z.DatePicker,{dayFormatter:n,daysOutsideMonth:o,height:U?void 0:"auto",onCommit:y,max:C,min:S,maxWidth:U?"100%":void 0,width:"100%",monthAndYearPicker:b,testId:k,todayTimeZone:A,todayButton:x,value:g,weekDisplay:F}),_=!c||T&&!U||l||u||!(t||r||D&&D.length>0)||"efficient"!==v&&"reflow"!==v?void 0:s.jsx(d.FormFieldContext.Provider,{value:{isFocused:!0},children:s.jsx("div",{class:Z.userAssistanceStyles,children:s.jsx(f.InlineUserAssistance,{assistiveText:t,fieldLabel:p,helpSourceLink:r,helpSourceText:i,messages:D,userAssistanceDensity:v})})}),B=k?k+(U?"_sheet":"_dropdown"):void 0,H=s.jsx("div",{class:Z.dropdownStyles,children:s.jsx(G.SectionedContent,{"aria-label":R,footer:_,hasFocusTrap:!0,main:j,role:"dialog",testId:B})});return U?s.jsx(W.Sheet,{initialFocus:"firstFocusable",isOpen:c,onClose:h,children:s.jsx(G.SectionedContent,{"aria-label":R,footer:_,hasFocusTrap:!0,main:j,role:"dialog",testId:B})}):s.jsx(G.StickyPositioningDropdown,{anchorRef:e,initialFocus:"firstFocusable",isOpen:c,onClose:h,onPosition:P,sizeOptions:{isMaxWidthAdjusted:!1,isMaxHeightAdjusted:!0},children:H})},te=()=>"phone"===l.getClientHints().deviceType,ae=e=>e&&ee.isCompleteCalendarDate(e)?e:void 0,ne=(e,s)=>{switch(s.type){case"dateChanged":return{...e,dateValue:s.data,completeDateValue:ae(s.data)};case"dateSelected":return{...e,dateValue:s.data,completeDateValue:s.data};case"reset":return{completeDateValue:ae(s.data),dateValue:s.data};default:return e}},oe=({onCommit:e,onInput:s,value:t})=>{const[n,o]=a.useState(!1),r=a.useRef(null),i=a.useRef(null),l=a.useRef(!1),d=a.useRef(),c=a.useRef(t),u=a.useRef(t),m=a.useRef(t),p=a.useRef(!1),{state:h,dispatch:y}=(({value:e})=>{const[s,t]=a.useReducer(ne,{completeDateValue:ae(e),dateValue:e});return{state:s,dispatch:t}})({value:t});$.calendarDatesAreDifferent(m.current,t)&&(m.current=t,$.calendarDatesAreDifferent(t,h.dateValue)&&(y({type:"reset",data:t}),u.current=t,c.current=t)),a.useEffect((()=>{$.calendarDatesAreDifferent(h.dateValue,u.current)&&(s({previousValue:u.current,value:h.dateValue}),u.current=h.dateValue),p.current&&$.calendarDatesAreDifferent(h.dateValue,c.current)&&(e?.({previousValue:c.current,value:h.dateValue}),c.current=h.dateValue,p.current=!1)}),[e,s,h.dateValue]);const f=a.useCallback((e=>{y({type:"dateChanged",data:e.value})}),[y]),C=a.useCallback((()=>{$.calendarDatesAreDifferent(c.current,h.dateValue)&&(e?.({value:h.dateValue,previousValue:c.current}),c.current=h.dateValue)}),[e,h.dateValue]),D=a.useCallback((()=>{l.current||o((e=>!e)),l.current=!1}),[]),S=a.useCallback((e=>{"outsideMousedown"===e.reason?(l.current=!0,clearTimeout(d.current),d.current=setTimeout((()=>{l.current=!1}),200)):"dismissed"!==e.reason&&"keyboardDismissed"!==e.reason||r.current?.focus(),o(!1)}),[]);return{calendarIconActionHandler:D,datePickerCommitHandler:a.useCallback((e=>{r.current?.focus(),p.current=!0,y({type:"dateSelected",data:e.value}),o(!1)}),[y]),dropdownCloseHandler:S,completeDateValue:h.completeDateValue,dateValue:h.dateValue,iconRef:r,isOpen:n,maskCommitHandler:C,maskInputHandler:f,maskRef:i}},re=t.forwardRef((({"aria-describedby":e,assistiveText:t,dayFormatter:l,daysOutsideMonth:d,helpSourceLink:c,helpSourceText:u,isDisabled:p,isReadonly:h,label:y,max:f,messages:C,min:D,monthAndYearPicker:S,todayTimeZone:b,todayButton:k,value:x,onCommit:A,onInput:v,testId:g,userAssistanceDensity:F,weekDisplay:T,...V},I)=>{const{calendarIconActionHandler:w,datePickerCommitHandler:P,completeDateValue:U,dateValue:M,dropdownCloseHandler:R,iconRef:j,isOpen:_,maskCommitHandler:B,maskInputHandler:H,maskRef:E}=oe({onCommit:A,onInput:v,value:x}),N=a.useRef(null),{inputDatePicker_selectDate:L,inputDatePicker_instruction:O}=m.useTranslationBundle("@oracle/oraclejet-preact"),Y=L(),{userAssistanceDensity:Z}=K.useFormContext(),W=F??Z;a.useImperativeHandle(I,(()=>({focus:()=>{E.current?.focus()},blur:()=>{E.current?.blur()}})));const z=Q.useId(),G=O(),J=p||h?void 0:s.jsx(r.HiddenAccessible,{id:z,isHidden:!0,children:G}),X=p||h?e:q.merge([e,z]),$=s.jsx(i.IconButton,{"aria-haspopup":"dialog","aria-label":Y,isDisabled:p,ref:j,size:"sm",testId:g?g+"_calendarIcon":void 0,variant:"ghost",onAction:w,children:s.jsx(n.SvgCalendar,{})}),ee=_;return s.jsxs(s.Fragment,{children:[s.jsx(o.InputDateMaskContext.Provider,{value:{isDropdownOpen:_,isInputDatePickerParent:!0},children:s.jsx(o.InputDateMask,{"aria-describedby":X,assistiveText:t,endContent:$,helpSourceLink:c,helpSourceText:u,isDisabled:p,isReadonly:h,label:y,onCommit:B,onInput:H,mainFieldRef:N,messages:C,testId:g,ref:E,userAssistanceDensity:F,value:M,...V})}),J,ee&&s.jsx(se,{anchorRef:N,assistiveText:t,dayFormatter:l,daysOutsideMonth:d,helpSourceLink:c,helpSourceText:u,isDisabled:p,isReadonly:h,isOpen:_,label:y,onClose:R,onCommit:P,max:f,messages:C,min:D,monthAndYearPicker:S,testId:g?g+"_datePicker":void 0,todayTimeZone:b,todayButton:k,userAssistanceDensity:W,value:U,weekDisplay:T})]})}));e.InputDatePicker=re}));
2
- //# sourceMappingURL=InputDatePicker-6af2a6a4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InputDatePicker-6af2a6a4.js","sources":["../../src/UNSAFE_InputDatePicker/InputDatePickerDropdown.tsx","../../src/UNSAFE_InputDatePicker/useInputDatePickerState.ts","../../src/UNSAFE_InputDatePicker/useInputDatePicker.ts","../../src/UNSAFE_InputDatePicker/InputDatePicker.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { type CloseDetail as DropdownCloseDetail } from '#UNSAFE_Dropdown';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { InputDatePicker } from './InputDatePicker';\nimport { dropdownStyles, userAssistanceStyles } from './themes/InputDatePickerDropdownStyles.css';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { StickyPositioningDropdown } from '#PRIVATE_FormControls';\nimport { SectionedContent } from '#PRIVATE_FormControls';\nimport { type CloseDetail as SheetCloseDetail, Sheet } from '#UNSAFE_Sheet';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { SizeOptions } from '#UNSAFE_Floating/Floating'; \n\ntype StickyPositioningDropdownProps = ComponentProps<typeof StickyPositioningDropdown>;\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype PickedPropsFromInputDatePicker = Pick<\n InputDatePickerProps,\n | 'assistiveText'\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'label'\n | 'messages'\n | 'min'\n | 'max'\n | 'monthAndYearPicker'\n | 'todayButton'\n | 'todayTimeZone'\n | 'userAssistanceDensity'\n | 'value'\n | 'weekDisplay'\n>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<DatePickerProps, 'value' | 'onCommit'>;\ntype PickedPropsFromDropdown = Omit<StickyPositioningDropdownProps, 'onClose'>;\ntype CloseDetail = SheetCloseDetail | DropdownCloseDetail;\n\ntype Props = PickedPropsFromDatePicker &\n PickedPropsFromInputDatePicker &\n PickedPropsFromDropdown &\n TestIdProps & {\n /**\n * Called when the dropdown or sheet is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n };\n\n/**\n * Component that renders DatePicker either inside a dropdown or sheet; at small screen\n * widths, it renders inside a sheet. Additionally, when a dropdown is being shown beneath\n * the component, we also show any user assistance text or messages below the picker\n * because otherwise that information would be obscured from view. When a sheet is being\n * shown, it will always display UA and messages at the bottom of the sheet.\n */\nconst InputDatePickerDropdown = ({\n anchorRef,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isOpen,\n isReadonly,\n label,\n onClose,\n onCommit,\n max,\n messages,\n min,\n monthAndYearPicker,\n testId,\n todayButton,\n todayTimeZone,\n userAssistanceDensity,\n value,\n weekDisplay\n}: Props) => {\n // If the dropdown opens above the component, we don't want to show UA or messages.\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n const handleDropdownPosition = useCallback<\n NonNullable<StickyPositioningDropdownProps['onPosition']>\n >((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n // Reset the flag when the dropdown is closed.\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n if (!isOpen) {\n setDropdownAbove(false);\n }\n }\n\n const sizeOptions: SizeOptions = {\n isMaxWidthAdjusted: false,\n isMaxHeightAdjusted: true\n };\n\n // On mobile phones, the dropdown becomes a sheet.\n const shouldShowSheet = isPhone();\n\n const { datePicker_label } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const datePickerAriaLabel = datePicker_label();\n\n const datePickerMainContent = (\n <DatePicker\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n height={!shouldShowSheet ? 'auto' : undefined}\n onCommit={onCommit}\n max={max}\n min={min}\n // for sheet, we want the width to grow to the width of the sheet, otherwise it will use the theme default.\n maxWidth={shouldShowSheet ? '100%' : undefined}\n width=\"100%\"\n monthAndYearPicker={monthAndYearPicker}\n testId={testId}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n value={value}\n weekDisplay={weekDisplay}\n />\n );\n\n const inlineUserAssistanceFooter =\n isOpen &&\n (!isDropdownAbove || shouldShowSheet) &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink || (messages && messages.length > 0)) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={userAssistanceStyles}>\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n />\n </div>\n </FormFieldContext.Provider>\n ) : undefined;\n\n const contentTestId = testId ? testId + (shouldShowSheet ? '_sheet' : '_dropdown') : undefined;\n\n // The same content is displayed either in a dropdown or sheet: date picker and inline UA.\n // Add styling to the dropdown to enforce a fixed width.\n const dropdownContent = (\n <div class={dropdownStyles}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </div>\n );\n\n const dropdown = shouldShowSheet ? (\n <Sheet initialFocus=\"firstFocusable\" isOpen={isOpen} onClose={onClose}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </Sheet>\n ) : (\n <StickyPositioningDropdown\n anchorRef={anchorRef}\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={onClose}\n onPosition={handleDropdownPosition}\n sizeOptions={sizeOptions}>\n {dropdownContent}\n </StickyPositioningDropdown>\n );\n\n return dropdown;\n};\n\nconst isPhone = () => {\n return getClientHints().deviceType === 'phone';\n};\n\nexport { InputDatePickerDropdown, type CloseDetail };\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 { useReducer } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { isCompleteCalendarDate } from '#utils/UNSAFE_calendarDateUtils';\n\ntype InputDatePickerState = {\n /**\n * If dateValue is a complete date, then completeDateValue is the same as dateValue\n * otherwise is is undefined. We need to maintain separate states because\n * InputDateMask uses CalendarDate, but DatePicker uses CalendarDateRequired.\n * If the user types a partial date then opens the picker, we treat that as\n * no selection. The picker opens to the current month showing today.\n */\n completeDateValue?: CalendarDateRequired;\n\n /**\n * Represents the current date value of the component. The user either selected\n * the date in the picker, or typed it into the date field.\n */\n dateValue?: CalendarDate;\n};\n\ntype DateChangedAction = { type: 'dateChanged'; data?: CalendarDate };\ntype DateResetAction = { type: 'reset'; data?: CalendarDate };\ntype DateSelectedAction = { type: 'dateSelected'; data?: CalendarDateRequired };\ntype InputDatePickerReducerAction = DateChangedAction | DateResetAction | DateSelectedAction;\n\n// If dateVal is a complete date, return it as a CalendarDateRequired\n// otherwise return undefined.\nconst convertToCalendarDateRequired = (dateVal?: CalendarDate) => {\n return !dateVal || !isCompleteCalendarDate(dateVal)\n ? undefined\n : (dateVal as CalendarDateRequired);\n};\n\n// Use a reducer function to manage InputDatePickerState.\nconst inputDatePickerReducer = (\n state: InputDatePickerState,\n action: InputDatePickerReducerAction\n): InputDatePickerState => {\n switch (action.type) {\n case 'dateChanged': {\n return {\n ...state,\n dateValue: action.data,\n completeDateValue: convertToCalendarDateRequired(action.data)\n };\n }\n case 'dateSelected': {\n return { ...state, dateValue: action.data, completeDateValue: action.data };\n }\n case 'reset': {\n return {\n completeDateValue: convertToCalendarDateRequired(action.data),\n dateValue: action.data\n };\n }\n default:\n return state;\n }\n};\n\ntype Props = {\n /**\n * The value of the InputDatePicker, or undefined.\n */\n value?: CalendarDate;\n};\n\n/**\n * useInputDatePickerState calls useReducer to determine the initial state. Any changes to that state\n * are managed by dispatching actions to the reducer function.\n */\nconst useInputDatePickerState = ({ value }: Props) => {\n const [state, dispatch] = useReducer(inputDatePickerReducer, {\n completeDateValue: convertToCalendarDateRequired(value),\n dateValue: value\n });\n\n return { state, dispatch };\n};\n\nexport { useInputDatePickerState };\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 type { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { calendarDatesAreDifferent } from '#utils/PRIVATE_dayUtils';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { CloseDetail, InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDateMask } from '#UNSAFE_InputDateMask';\nimport { InputDatePicker } from './InputDatePicker';\nimport { useInputDatePickerState } from './useInputDatePickerState';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype IconButtonProps = ComponentProps<typeof IconButton>;\ntype DropdownProps = ComponentProps<typeof InputDatePickerDropdown>;\n\ntype Props = {\n onCommit: InputDatePickerProps['onCommit'];\n onInput: InputDatePickerProps['onInput'];\n value: InputDatePickerProps['value'];\n};\n\n/**\n * Hook that provides handlers and other functionality for InputDatePicker.\n */\nconst useInputDatePicker = ({ onCommit, onInput, value: currentValue }: Props) => {\n // Whether the dropdown is open.\n const [isOpen, setIsOpen] = useState(false);\n\n // Ref to the calendar icon button.\n const iconRef: RefObject<HTMLButtonElement> = useRef<HTMLButtonElement>(null);\n\n // Ref to the InputDateMask component.\n const maskRef: RefObject<HTMLElement> = useRef<HTMLElement>(null);\n\n // Keep track of whether the dropdown was just dismissed from an outside mousedown event.\n const outsideMousedownRef = useRef<boolean>(false);\n const outsideMousedownTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of the last date values passed to onInput and onCommit.\n const lastCommittedDateRef = useRef<CalendarDate | undefined>(currentValue);\n const lastDateRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of the last controlled value passed from the parent, so we can detect a programmatic change.\n const lastValueFromParentRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of whether a date was selected in the date picker.\n const dateSelectedRef = useRef<boolean>(false);\n\n const { state, dispatch } = useInputDatePickerState({ value: currentValue });\n\n // If a new value is being pushed from the parent, and that value differs from\n // the current value of the reducer, then this is a programmatic update\n // and we need to call 'reset' to update the reducer state. Otherwise, the only\n // time the reducer state is updated from the value is on mount.\n if (calendarDatesAreDifferent(lastValueFromParentRef.current, currentValue)) {\n lastValueFromParentRef.current = currentValue;\n if (calendarDatesAreDifferent(currentValue, state.dateValue)) {\n dispatch({ type: 'reset', data: currentValue });\n lastDateRef.current = currentValue;\n lastCommittedDateRef.current = currentValue;\n }\n }\n\n // Reducer updates are async, so wait until the state updates and then call our callbacks.\n useEffect(() => {\n if (calendarDatesAreDifferent(state.dateValue, lastDateRef.current)) {\n onInput({ previousValue: lastDateRef.current, value: state.dateValue });\n lastDateRef.current = state.dateValue;\n }\n if (\n dateSelectedRef.current &&\n calendarDatesAreDifferent(state.dateValue, lastCommittedDateRef.current)\n ) {\n onCommit?.({ previousValue: lastCommittedDateRef.current, value: state.dateValue });\n lastCommittedDateRef.current = state.dateValue;\n dateSelectedRef.current = false;\n }\n }, [onCommit, onInput, state.dateValue]);\n\n // Handle onInput from InputDateMask as segment values are being added or changed in the input field.\n // We wait for the state to update before calling onInput.\n const maskInputHandler = useCallback<InputDateMaskProps['onInput']>(\n (detail: ValueUpdateDetail<CalendarDate>) => {\n dispatch({ type: 'dateChanged', data: detail.value });\n },\n [dispatch]\n );\n\n // Handle onCommit from InputDateMask, which is called when the user presses Enter or the field is blurred.\n const maskCommitHandler = useCallback<NonNullable<InputDateMaskProps['onCommit']>>(() => {\n // If the current date value differs from the last committed value, then call onCommit.\n if (calendarDatesAreDifferent(lastCommittedDateRef.current, state.dateValue)) {\n onCommit?.({ value: state.dateValue, previousValue: lastCommittedDateRef.current });\n lastCommittedDateRef.current = state.dateValue;\n }\n }, [onCommit, state.dateValue]);\n\n // Respond to onAction event from the calendar icon button. Toggles the date picker dropdown.\n const calendarIconActionHandler = useCallback<NonNullable<IconButtonProps['onAction']>>(() => {\n // Only toggle the value of isOpen if we didn't just dismiss the dropdown.\n if (!outsideMousedownRef.current) {\n setIsOpen((prevIsOpen) => !prevIsOpen);\n }\n outsideMousedownRef.current = false;\n }, []);\n\n const dropdownCloseHandler = useCallback<NonNullable<DropdownProps['onClose']>>(\n (detail: CloseDetail) => {\n // Keep track of when the dropdown is closed via outside mousedown, including when the calendar icon\n // is clicked. We need this in order to toggle visibility of the picker and dropdown.\n if (detail.reason === 'outsideMousedown') {\n outsideMousedownRef.current = true;\n clearTimeout(outsideMousedownTimerRef.current);\n\n // Clear the flag after a short delay to ensure the dropdown can be opened again.\n outsideMousedownTimerRef.current = setTimeout(() => {\n outsideMousedownRef.current = false;\n }, 200);\n } else if (detail.reason === 'dismissed' || detail.reason === 'keyboardDismissed') {\n // Focus the calendar icon when the dropdown is closed.\n iconRef.current?.focus();\n }\n setIsOpen(false);\n },\n []\n );\n\n // Handle date selection in the picker.\n // - Updates the value in state.\n // - Closes the dropdown.\n // - Sets focus to the date field.\n const datePickerCommitHandler = useCallback<DatePickerProps['onCommit']>(\n (detail: ValueUpdateDetail<CalendarDateRequired>) => {\n // Set focus to the calendar icon when a date is selected.\n iconRef.current?.focus();\n\n // Set a ref indicating a date was selected.\n dateSelectedRef.current = true;\n dispatch({ type: 'dateSelected', data: detail.value });\n setIsOpen(false);\n },\n [dispatch]\n );\n\n return {\n calendarIconActionHandler,\n datePickerCommitHandler,\n dropdownCloseHandler,\n completeDateValue: state.completeDateValue,\n dateValue: state.dateValue,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n };\n};\n\nexport { useInputDatePicker };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useImperativeHandle, useRef } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { CalendarIcon } from '#PRIVATE_ThemedIcons/CalendarIcon';\nimport {\n CalendarDate,\n CalendarDatePlaceholders,\n InputDateMask,\n InputDateMaskContext\n} from '#UNSAFE_InputDateMask';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { merge } from '#utils/UNSAFE_stringUtils';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { useInputDatePicker } from './useInputDatePicker';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype PickedPropsFromInputDateMask = Pick<\n InputDateMaskProps,\n | 'aria-describedby'\n | 'assistiveText'\n | 'columnSpan'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'isRequired'\n | 'isRequiredShown'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'messages'\n | 'textAlign'\n | 'testId'\n | 'userAssistanceDensity'\n | 'variant'\n>;\n\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<\n DatePickerProps,\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'max'\n | 'min'\n | 'monthAndYearPicker'\n | 'todayTimeZone'\n | 'todayButton'\n | 'weekDisplay'\n>;\n\ntype Props = PickedPropsFromInputDateMask &\n PickedPropsFromDatePicker & {\n /**\n * If specified, overrides the locale specific order of the individual date segments\n * in the date field as well as the locale specific separator. The value of each placeholder\n * is only used when the type is 'literal', otherwise it is replaced with a translated\n * placeholder for month, day, or year. The placeholders must include month, day, and year.\n */\n masks?: CalendarDatePlaceholders;\n\n /**\n * The current display value of the component.\n * This is a CalendarDate, not CalendarDateRequired, because this is a controlled component and\n * the user may type the month, day, and year separately. If a selection is made in the date\n * picker, then the value is a complete date.\n */\n value?: CalendarDate;\n\n /**\n * Callback invoked when the user commits the entered value by blurring or hitting the enter key.\n * It is also called when a selection is made in the date picker.\n */\n onCommit?: (detail: ValueUpdateDetail<CalendarDate>) => void;\n\n /**\n * Callback invoked each time the user changes the value of a segment. For example, if the user\n * types '12' into the month segment, this callback will be called twice to change the month\n * first to '1' and then '12'.\n */\n onInput: (detail: ValueUpdateDetail<CalendarDate>) => void;\n };\n\n/**\n * InputDatePicker allows users to enter or select a single date using a calendar interface.\n */\nexport const InputDatePicker = forwardRef(\n (\n {\n 'aria-describedby': propDescribedBy,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isReadonly,\n label,\n max,\n messages,\n min,\n monthAndYearPicker,\n todayTimeZone,\n todayButton,\n value,\n onCommit,\n onInput,\n testId,\n userAssistanceDensity: propUserAssistanceDensity,\n weekDisplay,\n ...dateMaskProps\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const {\n calendarIconActionHandler,\n datePickerCommitHandler,\n completeDateValue,\n dateValue,\n dropdownCloseHandler,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n } = useInputDatePicker({\n onCommit,\n onInput,\n value\n });\n\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const { inputDatePicker_selectDate, inputDatePicker_instruction } =\n useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const calendarIconAriaLabel = inputDatePicker_selectDate();\n\n // We need this to determine if UA/messaging should be shown in the dropdown.\n const { userAssistanceDensity: formUserAssistanceDensity } = useFormContext();\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n useImperativeHandle(ref!, () => ({\n focus: () => {\n maskRef.current?.focus();\n },\n blur: () => {\n maskRef.current?.blur();\n }\n }));\n\n const maskFieldInstructionId = useId();\n const maskFieldInstructionText = inputDatePicker_instruction();\n const maskFieldInstruction =\n !isDisabled && !isReadonly ? (\n <HiddenAccessible id={maskFieldInstructionId} isHidden={true}>\n {maskFieldInstructionText}\n </HiddenAccessible>\n ) : undefined;\n const ariaDescribedBy =\n !isDisabled && !isReadonly\n ? merge([propDescribedBy, maskFieldInstructionId])\n : propDescribedBy;\n\n const endContent = (\n <IconButton\n aria-haspopup=\"dialog\"\n aria-label={calendarIconAriaLabel}\n isDisabled={isDisabled}\n ref={iconRef}\n size=\"sm\"\n testId={testId ? testId + '_calendarIcon' : undefined}\n variant=\"ghost\"\n onAction={calendarIconActionHandler}>\n <CalendarIcon />\n </IconButton>\n );\n\n const shouldShowDropdown = isOpen as boolean;\n\n return (\n <>\n <InputDateMaskContext.Provider\n value={{ isDropdownOpen: isOpen, isInputDatePickerParent: true }}>\n <InputDateMask\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n endContent={endContent}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n label={label}\n onCommit={maskCommitHandler}\n onInput={maskInputHandler}\n mainFieldRef={mainFieldRef}\n messages={messages}\n testId={testId}\n ref={maskRef}\n userAssistanceDensity={propUserAssistanceDensity}\n value={dateValue}\n {...dateMaskProps}\n />\n </InputDateMaskContext.Provider>\n\n {maskFieldInstruction}\n\n {shouldShowDropdown && (\n <InputDatePickerDropdown\n anchorRef={mainFieldRef}\n assistiveText={assistiveText}\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isOpen={isOpen}\n label={label}\n onClose={dropdownCloseHandler}\n onCommit={datePickerCommitHandler}\n max={max}\n messages={messages}\n min={min}\n monthAndYearPicker={monthAndYearPicker}\n testId={testId ? testId + '_datePicker' : undefined}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n userAssistanceDensity={userAssistanceDensity}\n value={completeDateValue}\n weekDisplay={weekDisplay}\n />\n )}\n </>\n );\n }\n);\n"],"names":["InputDatePickerDropdown","anchorRef","assistiveText","dayFormatter","daysOutsideMonth","helpSourceLink","helpSourceText","isDisabled","isOpen","isReadonly","label","onClose","onCommit","max","messages","min","monthAndYearPicker","testId","todayButton","todayTimeZone","userAssistanceDensity","value","weekDisplay","isDropdownAbove","setDropdownAbove","useState","prevIsOpen","setPrevIsOpen","handleDropdownPosition","useCallback","data","placement","startsWith","shouldShowSheet","isPhone","datePicker_label","useTranslationBundle","datePickerAriaLabel","datePickerMainContent","_jsx","DatePicker","height","undefined","maxWidth","width","inlineUserAssistanceFooter","length","FormFieldContext","Provider","isFocused","children","jsx","class","userAssistanceStyles","InlineUserAssistance","fieldLabel","contentTestId","dropdownContent","dropdownStyles","SectionedContent","footer","hasFocusTrap","main","role","Sheet","initialFocus","StickyPositioningDropdown","onPosition","sizeOptions","isMaxWidthAdjusted","isMaxHeightAdjusted","getClientHints","deviceType","convertToCalendarDateRequired","dateVal","isCompleteCalendarDate","inputDatePickerReducer","state","action","type","dateValue","completeDateValue","useInputDatePicker","onInput","currentValue","setIsOpen","iconRef","useRef","maskRef","outsideMousedownRef","outsideMousedownTimerRef","lastCommittedDateRef","lastDateRef","lastValueFromParentRef","dateSelectedRef","dispatch","useReducer","useInputDatePickerState","calendarDatesAreDifferent","current","useEffect","previousValue","maskInputHandler","detail","maskCommitHandler","calendarIconActionHandler","dropdownCloseHandler","reason","clearTimeout","setTimeout","focus","datePickerCommitHandler","InputDatePicker","forwardRef","propDescribedBy","propUserAssistanceDensity","dateMaskProps","ref","mainFieldRef","inputDatePicker_selectDate","inputDatePicker_instruction","calendarIconAriaLabel","formUserAssistanceDensity","useFormContext","useImperativeHandle","blur","maskFieldInstructionId","useId","maskFieldInstructionText","maskFieldInstruction","HiddenAccessible","id","isHidden","ariaDescribedBy","merge","endContent","IconButton","size","variant","onAction","CalendarIcon","shouldShowDropdown","_jsxs","InputDateMaskContext","isDropdownOpen","isInputDatePickerParent","InputDateMask"],"mappings":"ylEAsEA,MAAMA,GAA0B,EAC9BC,YACAC,gBACAC,eACAC,mBACAC,iBACAC,iBACAC,aACAC,SACAC,aACAC,QACAC,UACAC,WACAC,MACAC,WACAC,MACAC,qBACAC,SACA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AiBY,IAGxBS,EACJhG,EAAAY,IAACqF,EAAUA,WACK,CAAA,gBAAA,SACF,aAAAf,EACZlH,WAAYA,EACZ8G,IAAK/B,EACLmD,KAAK,KACLxH,OAAQA,EAASA,EAAS,qBAAkByB,EAC5CgG,QAAQ,QACRC,SAAUlC,EAAyBvD,SACnCX,EAAAA,IAACqG,EAAAA,YAAY,CAAA,KAIXC,GAAqBrI,EAE3B,OACEsI,6BACEvG,EAACY,IAAA4F,uBAAqB/F,SAAQ,CAC5B3B,MAAO,CAAE2H,eAAgBxI,EAAQyI,yBAAyB,GAAM/F,SAChEX,EAAAA,IAAC2G,EAAaA,cACM,CAAA,mBAAAb,EAClBnI,cAAeA,EACfqI,WAAYA,EACZlI,eAAgBA,EAChBC,eAAgBA,EAChBC,WAAYA,EACZE,WAAYA,EACZC,MAAOA,EACPE,SAAU4F,EACVrB,QAASmB,EACTgB,aAAcA,EACdxG,SAAUA,EACVG,OAAQA,EACRoG,IAAK7B,EACLpE,sBAAuB+F,EACvB9F,MAAO2D,KACHoC,MAIPa,EAEAY,IACCtG,MAACvC,GAAuB,CACtBC,UAAWqH,EACXpH,cAAeA,EACfC,aAAcA,EACdC,iBAAkBA,EAClBC,eAAgBA,EAChBC,eAAgBA,EAChBC,WAAYA,EACZE,WAAYA,EACZD,OAAQA,EACRE,MAAOA,EACPC,QAAS+F,EACT9F,SAAUmG,EACVlG,IAAKA,EACLC,SAAUA,EACVC,IAAKA,EACLC,mBAAoBA,EACpBC,OAAQA,EAASA,EAAS,mBAAgByB,EAC1CvB,cAAeA,EACfD,YAAaA,EACbE,sBAAuBA,EACvBC,MAAO4D,EACP3D,YAAaA,MAInB"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', './LayerHost-1b4d03f0', './classNames-08d99695', './UNSAFE_Layer/themes/LayerStyles.css', './useThemeInterpolations-95e6f849'], (function(e,t,o,s,r,a,l){"use strict";const n=Symbol.for("oj-logical-parent");e.LOGICAL_PARENT=n,e.Layer=({children:e,logicalParentRef:i,isModal:y=!1,priority:c="popup",level:u="nearestAncestor"})=>{const[p,d]=o.useState(null),m=o.useRef(null),L=o.useContext(s.LayerContext),g=e=>{m.current=e,d(e)},f=l.useThemeInterpolations(i);let b=a.styles.popupPriorityStyle;switch(c){case"dialog":b=a.styles.dialogPriorityStyle;break;case"messages":b=a.styles.messagesPriorityStyle;break;case"tooltip":b=a.styles.tooltipPriorityStyle;break;default:b=a.styles.popupPriorityStyle}const S=r.classNames([f,a.baseStyle,b]);o.useLayoutEffect((()=>{const e="topLevel"===u?L.getRootLayerHost?.(c):L.getLayerHost?.(c);if(!e)return;const t=(e.ownerDocument??document).createElement("div");return t.setAttribute("data-oj-layer",y?"modal":"modeless"),i&&(t[n]=i.current),e.appendChild(t),g(t),()=>{e&&t&&e.contains(t)&&(delete t[n],e.removeChild(t)),L.onLayerUnmount&&L.onLayerUnmount(t),g(null)}}),[i,L,u,c,y]),p&&(p.className=S);const H=o.useCallback((()=>p),[p]),P=o.useMemo((()=>L.getLayerHost?{getRootLayerHost:L.getRootLayerHost?.bind(null,c),getLayerHost:H.bind(null)}:{}),[L.getLayerHost,L.getRootLayerHost,H,c]);return t.jsx(s.LayerContext.Provider,{value:P,children:p&&o.createPortal(e,p)})}}));
2
- //# sourceMappingURL=Layer-9fb9ca67.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Layer-9fb9ca67.js","sources":["../../src/UNSAFE_Layer/Layer.tsx"],"sourcesContent":["import { VNode, type RefObject } from 'preact';\nimport {\n createPortal,\n useContext,\n useLayoutEffect,\n useState,\n useRef,\n useMemo,\n useCallback\n} from 'preact/compat';\nimport { LayerContext, LayerContextProps, LayerLevel, LayerPriority } from './LayerContext';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { baseStyle, styles } from './themes/LayerStyles.css';\nimport { useThemeInterpolations } from '../hooks/UNSAFE_useThemeInterpolations/useThemeInterpolations';\n\nexport const LOGICAL_PARENT = Symbol.for('oj-logical-parent');\n\ntype Props = {\n /**\n * The content to be re-parented using Portal\n */\n children: VNode;\n /**\n * Logical parent of the re-parented content. Typically the 'launcher' associated\n * with the popup.\n */\n logicalParentRef?: RefObject<Element> | null;\n /**\n * Determines if this layer contains a Modal.\n */\n isModal?: boolean;\n /**\n * Determines Layer's stacking context. Components that always need to render on top of other popup\n * elements (such as Messages) should use respective priority value. The default priority level is 'popup'.\n */\n priority?: LayerPriority;\n /**\n * Determines Layer's nesting context. By default, new layers will render in the context of a parent Layer,\n * if it exists (nearestAncestor)). Some popup components (such as Dialog and Message) may need to set up\n * a new nesting context as(topLevel).\n */\n level?: LayerLevel;\n};\n\nexport type LayerElement = HTMLElement & {\n [LOGICAL_PARENT]?: Element | null;\n};\n\nconst Layer = ({\n children,\n logicalParentRef,\n isModal = false,\n priority = 'popup',\n level = 'nearestAncestor'\n}: Props) => {\n const [layerContainer, _setLayerContainer] = useState<Element | null>(null);\n const layerContainerRef = useRef<Element | null>(null);\n\n const context = useContext(LayerContext);\n\n const setLayerContainer = (elem: Element | null) => {\n layerContainerRef.current = elem;\n _setLayerContainer(elem);\n };\n\n // because the children are being rendered into a portal that is out of the flow of parent dom,\n // we need to specify the colorScheme and scale class names here to pick up the correct CSS styles.\n const themeClasses = useThemeInterpolations(logicalParentRef);\n\n let priorityStyle = styles.popupPriorityStyle;\n\n switch (priority) {\n case 'dialog': {\n priorityStyle = styles.dialogPriorityStyle;\n break;\n }\n case 'messages': {\n priorityStyle = styles.messagesPriorityStyle;\n break;\n }\n case 'tooltip': {\n priorityStyle = styles.tooltipPriorityStyle;\n break;\n }\n default: {\n priorityStyle = styles.popupPriorityStyle;\n break;\n }\n }\n\n const classes = classNames([themeClasses, baseStyle, priorityStyle]);\n\n // Really need useLayoutEffect instead of useEffect here. Otherwise the re-parented\n // content does not get re-rendered with valid ref's\n useLayoutEffect(() => {\n const host =\n level === 'topLevel'\n ? context.getRootLayerHost?.(priority)\n : context.getLayerHost?.(priority);\n\n if (!host) return;\n const doc = host.ownerDocument ?? document;\n const layer: LayerElement = doc.createElement('div');\n\n layer.setAttribute('data-oj-layer', isModal ? 'modal' : 'modeless');\n\n if (logicalParentRef) {\n layer[LOGICAL_PARENT] = logicalParentRef.current;\n }\n host.appendChild(layer);\n setLayerContainer(layer);\n\n return () => {\n if (host && layer && host.contains(layer)) {\n delete layer[LOGICAL_PARENT];\n host.removeChild(layer);\n }\n if (context.onLayerUnmount) {\n context.onLayerUnmount(layer);\n }\n setLayerContainer(null);\n };\n }, [logicalParentRef, context, level, priority, isModal]);\n\n // add the colorScheme and scale classes if there is a layerContainer\n if (layerContainer) {\n // use the theme interpolations to set the appropriate style classes for colorScheme and scale\n layerContainer.className = classes;\n }\n\n const getLayerHost = useCallback(() => {\n return layerContainer;\n }, [layerContainer]);\n\n const newLayerContext = useMemo(() => {\n if (context.getLayerHost) {\n return {\n getRootLayerHost: context.getRootLayerHost?.bind(null, priority),\n getLayerHost: getLayerHost.bind(null)\n };\n } else {\n return {};\n }\n }, [context.getLayerHost, context.getRootLayerHost, getLayerHost, priority]);\n\n return (\n <LayerContext.Provider value={newLayerContext as LayerContextProps}>\n {layerContainer && createPortal(children, layerContainer)}\n </LayerContext.Provider>\n );\n};\n\nexport default Layer;\n"],"names":["LOGICAL_PARENT","Symbol","for","children","logicalParentRef","isModal","priority","level","layerContainer","_setLayerContainer","useState","layerContainerRef","useRef","context","useContext","LayerContext","setLayerContainer","elem","current","themeClasses","useThemeInterpolations","priorityStyle","styles","popupPriorityStyle","dialogPriorityStyle","messagesPriorityStyle","tooltipPriorityStyle","classes","classNames","baseStyle","useLayoutEffect","host","getRootLayerHost","getLayerHost","layer","ownerDocument","document","createElement","setAttribute","appendChild","contains","removeChild","onLayerUnmount","className","useCallback","newLayerContext","useMemo","bind","_jsx","Provider","value","createPortal"],"mappings":"yNAea,MAAAA,EAAiBC,OAAOC,IAAI,gDAiC3B,EACZC,WACAC,mBACAC,WAAU,EACVC,WAAW,QACXC,QAAQ,sBAER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EAAc3B,IAElE,OACE0C,MAACjC,EAAYA,aAACkC,SAAS,CAAAC,MAAOL,EAAoC1C,SAC/DK,GAAkB2C,EAAAA,aAAahD,EAAUK,IAE5C"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact', './Common/themes/redwood/theme', 'preact/jsx-runtime', 'preact/compat'], (function(e,t,o,r,n){"use strict";const c={user:{locale:document.documentElement.getAttribute("lang")||"en",direction:"rtl"===document.documentElement.getAttribute("dir")?.toLowerCase()?"rtl":"ltr",forcedColors:window.matchMedia?.("(forced-colors: active)")?.matches?"active":"none"},theme:o.Redwood,colorScheme:"light",scale:"lg",currentBgColor:void 0,mode:"production",density:"standard"},d=t.createContext(c),a=t.createContext({}),i=n.forwardRef(((e,t)=>r.jsx("div",{id:"__root_layer_host",ref:t})));i.displayName="Forwarded<LayerHost>",e.DefaultEnvironment=c,e.EnvironmentContext=d,e.LayerContext=a,e.LayerHost=i}));
2
- //# sourceMappingURL=LayerHost-1b4d03f0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LayerHost-1b4d03f0.js","sources":["../../src/UNSAFE_Environment/EnvironmentContext.tsx","../../src/UNSAFE_Layer/LayerContext.ts","../../src/UNSAFE_Layer/LayerHost.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { Theme, ThemeModifiers } from '../UNSAFE_Theme';\n\nimport { Redwood } from '../Common';\nimport { createContext } from 'preact';\n\n/**\n * Defines user specific environment\n */\ntype User = {\n locale: string;\n direction: 'rtl' | 'ltr';\n forcedColors: 'none' | 'active';\n};\n\n/**\n * Defines translation bundle type.\n */\nexport type TranslationBundle = Record<string, (...args: any[]) => string>;\n\n/**\n * Defines a type for translation property which is an object where\n * - key - string - bundle id\n * - value - object - strings to functions of the type (options?: object)=>string\n *\n * Translation bundle example:\n * const bundle = {\n * @oracle/oracle-preact-bundle: {\n * welcome: () => 'bienvenido',\n * success: () => 'éxito'\n * }\n * }\n */\ntype Translations = { [bundleId: string]: TranslationBundle };\n\n/**\n * Defines the mode in which the application is running. For \"test\" mode, UNSAFE_useTestId hook will\n * return a set of attributes to be rendered on the component DOM for testing purposes. Default is\n * \"production\"\n */\ntype Mode = 'test' | 'production';\n\n/**\n * Environment specified at the root level\n */\nexport type RootEnvironment = Partial<ThemeModifiers> & {\n /**\n * user - supports user preferences\n */\n user?: Partial<User>;\n /**\n * theme - supports theme settings\n */\n theme?: Theme;\n /**\n * translations - supports translation bundles\n */\n translations?: Translations;\n /**\n * mode - the application's configured mode\n */\n mode?: Mode;\n};\n\n/**\n * Environment specified at the component level\n */\nexport type Environment = Partial<ThemeModifiers> & {\n translations?: Translations;\n};\n\nexport type CompleteEnvironmentType = ThemeModifiers & {\n user: User;\n theme: Theme;\n translations?: Translations;\n mode: Mode;\n};\n\n/**\n * Default environment created for the application\n */\nexport const DefaultEnvironment: CompleteEnvironmentType = {\n user: {\n locale: document.documentElement.getAttribute('lang') || 'en',\n direction:\n document.documentElement.getAttribute('dir')?.toLowerCase() === 'rtl' ? 'rtl' : 'ltr',\n forcedColors: window.matchMedia?.('(forced-colors: active)')?.matches ? 'active' : 'none'\n },\n theme: Redwood,\n colorScheme: 'light',\n scale: 'lg',\n currentBgColor: undefined,\n mode: 'production',\n density: 'standard'\n};\n\nexport const EnvironmentContext = createContext<CompleteEnvironmentType>(DefaultEnvironment);\n","import { createContext } from 'preact';\n\nexport type LayerLevel = 'nearestAncestor' | 'topLevel';\nexport type LayerPriority = 'popup' | 'dialog' | 'messages' | 'tooltip';\n\nexport type LayerContextProps = {\n getRootLayerHost?: (priority?: LayerPriority) => Element;\n getLayerHost?: (priority?: LayerPriority) => Element;\n onLayerUnmount?: (element: HTMLElement) => void;\n};\n\nexport const LayerContext = createContext<LayerContextProps>({});\n","/**\n * The LayerHost is a div which is created in place\n * where you want to \"house\" a portaled content\n */\nimport { forwardRef } from 'preact/compat';\n\nconst LayerHost = forwardRef<HTMLDivElement>((_props, ref) => {\n return <div id=\"__root_layer_host\" ref={ref} />;\n});\n\nLayerHost.displayName = 'Forwarded<LayerHost>';\n\nexport default LayerHost;\n"],"names":["DefaultEnvironment","user","locale","document","documentElement","getAttribute","direction","toLowerCase","forcedColors","window","matchMedia","matches","theme","Redwood","colorScheme","scale","currentBgColor","undefined","mode","density","EnvironmentContext","createContext","LayerContext","LayerHost","forwardRef","_props","ref","_jsx","id","displayName"],"mappings":"mIAwFa,MAAAA,EAA8C,CACzDC,KAAM,CACJC,OAAQC,SAASC,gBAAgBC,aAAa,SAAW,KACzDC,UACkE,QAAhEH,SAASC,gBAAgBC,aAAa,QAAQE,cAA0B,MAAQ,MAClFC,aAAcC,OAAOC,aAAa,4BAA4BC,QAAU,SAAW,QAErFC,MAAOC,EAAOA,QACdC,YAAa,QACbC,MAAO,KACPC,oBAAgBC,EAChBC,KAAM,aACNC,QAAS,YAGEC,EAAqBC,EAAaA,cAA0BrB,GC5F5DsB,EAAeD,EAAaA,cAAoB,CAAE,GCLzDE,EAAYC,EAAUA,YAAiB,CAACC,EAAQC,IAC7CC,EAAAA,IAAA,MAAA,CAAKC,GAAG,oBAAoBF,IAAKA,MAG1CH,EAAUM,YAAc"}
@@ -1,2 +0,0 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', './LayerHost-1b4d03f0'], (function(e,t,r,s){"use strict";e.LayerManager=function({children:e}){const[a,n]=r.useState(),o=r.useCallback((e=>{null!==e&&n(e)}),[]);return t.jsx(s.LayerContext.Consumer,{children:r=>{let n={};a&&(n={getRootLayerHost:()=>a,getLayerHost:()=>a});const c=r.getLayerHost?r:n;return t.jsxs(s.LayerContext.Provider,{value:c,children:[e,!r.getLayerHost&&t.jsx(s.LayerHost,{ref:o})]})}})}}));
2
- //# sourceMappingURL=LayerManager-6c0b0eed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LayerManager-6c0b0eed.js","sources":["../../src/UNSAFE_Layer/LayerManager.tsx"],"sourcesContent":["/**\n * The LayerManager wraps your application and creates two adjacent divs for\n * rendering your application and housing Layers.\n */\nimport { ComponentChildren } from 'preact';\nimport { useCallback, useState } from 'preact/compat';\nimport { LayerContext, LayerContextProps } from './LayerContext';\nimport LayerHost from './LayerHost';\n\ntype LayerManagerProps = {\n children?: ComponentChildren;\n};\n\nexport function LayerManager({ children }: LayerManagerProps) {\n const [defaultHost, setDefaultHost] = useState<Element>();\n //const context = useContext(LayerContext);\n const defaultHostRef = useCallback((el: Element | null) => {\n // ref callbacks fire after the component has been unnmounted so we do not\n // want to set state in this use-case\n if (el !== null) {\n setDefaultHost(el);\n }\n }, []);\n\n return (\n <LayerContext.Consumer>\n {(value: LayerContextProps) => {\n let defaultHostContext = {};\n if (defaultHost) {\n defaultHostContext = {\n getRootLayerHost: () => {\n return defaultHost;\n },\n getLayerHost: () => {\n return defaultHost;\n }\n };\n }\n const layerContext = value.getLayerHost ? value : defaultHostContext;\n return (\n <LayerContext.Provider value={layerContext}>\n {children}\n {!value.getLayerHost && <LayerHost ref={defaultHostRef} />}\n </LayerContext.Provider>\n );\n }}\n </LayerContext.Consumer>\n );\n}\n"],"names":["children","defaultHost","setDefaultHost","useState","defaultHostRef","useCallback","el","_jsx","LayerContext","Consumer","value","defaultHostContext","getRootLayerHost","getLayerHost","layerContext","_jsxs","Provider","jsx","LayerHost","ref"],"mappings":"8HAagB,UAAaA,SAAEA,IAC7B,MAAOC,EAAaC,GAAkBC,EAAQA,WAExCC,EAAiBC,eAAaC,IAGvB,OAAPA,GACFJ,EAAeI,EAChB,GACA,IAEH,OACEC,EAAAA,IAACC,EAAAA,aAAaC,SACX,CAAAT,SAACU,IACA,IAAIC,EAAqB,CAAA,EACrBV,IACFU,EAAqB,CACnBC,iBAAkB,IACTX,EAETY,aAAc,IACLZ,IAIb,MAAMa,EAAeJ,EAAMG,aAAeH,EAAQC,EAClD,OACEI,EAAAA,KAACP,EAAAA,aAAaQ,SAAS,CAAAN,MAAOI,EAC3Bd,SAAA,CAAAA,GACCU,EAAMG,cAAgBN,EAAAU,IAACC,YAAS,CAACC,IAAKf,MAE1C,GAIV"}