@oracle/oraclejet-preact 17.1.3 → 17.1.5

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 (561) hide show
  1. package/amd/CheckboxSet-e523552e.js +2 -0
  2. package/amd/CheckboxSet-e523552e.js.map +1 -0
  3. package/amd/Theme-redwood/theme.css +288 -288
  4. package/amd/Theme-stable/theme.css +320 -320
  5. package/amd/UNSAFE_CheckboxItem.js +1 -1
  6. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  7. package/amd/UNSAFE_CheckboxSet.js +1 -1
  8. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  9. package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  10. package/cjs/{NavigationListItem-7550547a.js → NavigationListItem-d9228979.js} +1 -14
  11. package/cjs/{NavigationListItem-7550547a.js.map → NavigationListItem-d9228979.js.map} +1 -1
  12. package/cjs/{OverflowTabBar-76c75781.js → OverflowTabBar-081cc41e.js} +2 -2
  13. package/cjs/{OverflowTabBar-76c75781.js.map → OverflowTabBar-081cc41e.js.map} +1 -1
  14. package/cjs/{OverflowTabBarItem-76059bad.js → OverflowTabBarItem-57899880.js} +2 -2
  15. package/cjs/{OverflowTabBarItem-76059bad.js.map → OverflowTabBarItem-57899880.js.map} +1 -1
  16. package/cjs/Theme-redwood/theme.css +267 -267
  17. package/cjs/Theme-stable/theme.css +323 -323
  18. package/cjs/UNSAFE_NavigationList.js +4 -4
  19. package/cjs/UNSAFE_OverflowTabBar.js +3 -3
  20. package/cjs/UNSAFE_TabBar.js +2 -2
  21. package/cjs/UNSAFE_TabBarCommon.js +2 -2
  22. package/cjs/UNSAFE_TabBarMixed.js +2 -2
  23. package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  24. package/es/ActionCard-ba1c946e.js +1 -1
  25. package/es/BadgeVariants.styles.css +14 -14
  26. package/es/BadgeVariants.styles2.css +14 -14
  27. package/es/{BarChart-cbd9c2bf.js → BarChart-c68a559c.js} +4 -4
  28. package/es/{BarChart-cbd9c2bf.js.map → BarChart-c68a559c.js.map} +1 -1
  29. package/es/BaseButton-5a3335d9.js +2 -2
  30. package/es/BaseCardView-e0e8a69b.js +7 -7
  31. package/es/{BaseCardViewSelectionTest-120542e8.js → BaseCardViewSelectionTest-2159b609.js} +6 -6
  32. package/es/{BaseCardViewSelectionTest-120542e8.js.map → BaseCardViewSelectionTest-2159b609.js.map} +1 -1
  33. package/es/BaseNavigationListItem-ac7ef3c3.js +1 -1
  34. package/es/ButtonSet-ac76e6e2.js +2 -2
  35. package/es/ButtonSetIconButton-9241b9fb.js +3 -3
  36. package/es/{Center-8b48ab02.js → Center-9f355d44.js} +2 -2
  37. package/es/{Center-8b48ab02.js.map → Center-9f355d44.js.map} +1 -1
  38. package/es/{Chart-8922a0b3.js → Chart-f2438968.js} +11 -11
  39. package/es/{Chart-8922a0b3.js.map → Chart-f2438968.js.map} +1 -1
  40. package/es/CheckboxControl-f5e36d0d.js +6 -6
  41. package/es/CheckboxRadioField-bdda2573.js +6 -6
  42. package/es/Chip-f2df2078.js +1 -1
  43. package/es/ClearIcon-b5083cc8.js +1 -1
  44. package/es/CollapseIcon-de129943.js +1 -1
  45. package/es/Collapsible-09cc493a.js +2 -2
  46. package/es/CollapsibleVariants.styles.css +3 -3
  47. package/es/CollapsibleVariants.styles2.css +3 -3
  48. package/es/CompactHelpSource-1686edf6.js +2 -2
  49. package/es/{CompactLabelAssistance-fa8264fa.js → CompactLabelAssistance-61df6dbf.js} +5 -5
  50. package/es/{CompactLabelAssistance-fa8264fa.js.map → CompactLabelAssistance-61df6dbf.js.map} +1 -1
  51. package/es/CompactUserAssistance-3a10afd4.js +4 -4
  52. package/es/ComponentMessageContainer-18e7fe34.js +4 -4
  53. package/es/ConveyorBeltItem-c8d4ba1b.js +2 -2
  54. package/es/ConveyorBeltVariants.styles.css +6 -6
  55. package/es/ConveyorBeltVariants.styles2.css +6 -6
  56. package/es/{DatePicker-4fb6d86d.js → DatePicker-d4e027c2.js} +6 -6
  57. package/es/{DatePicker-4fb6d86d.js.map → DatePicker-d4e027c2.js.map} +1 -1
  58. package/es/DatePickerHeader-79f0b61b.js +3 -3
  59. package/es/{Diagram-6f1ad2ea.js → Diagram-d7fdc75f.js} +5 -5
  60. package/es/{Diagram-6f1ad2ea.js.map → Diagram-d7fdc75f.js.map} +1 -1
  61. package/es/{Dialog-5e92dcd1.js → Dialog-cf69547f.js} +6 -6
  62. package/es/{Dialog-5e92dcd1.js.map → Dialog-cf69547f.js.map} +1 -1
  63. package/es/DirectionalCollapseArrowIcon-20259aab.js +1 -1
  64. package/es/DirectionalExpandArrowIcon-36ba273c.js +1 -1
  65. package/es/DragHandle-3b768189.js +1 -1
  66. package/es/{Dropdown-f45f823c.js → Dropdown-d017dd0a.js} +5 -5
  67. package/es/{Dropdown-f45f823c.js.map → Dropdown-d017dd0a.js.map} +1 -1
  68. package/es/{EnvironmentProvider-0fc2fd0c.js → EnvironmentProvider-a3819bde.js} +3 -3
  69. package/es/{EnvironmentProvider-0fc2fd0c.js.map → EnvironmentProvider-a3819bde.js.map} +1 -1
  70. package/es/FilePicker-f4582615.js +2 -2
  71. package/es/{Flex-8696b27b.js → Flex-2d51e914.js} +2 -2
  72. package/es/{Flex-8696b27b.js.map → Flex-2d51e914.js.map} +1 -1
  73. package/es/{Floating-f9bbd276.js → Floating-aebc0f85.js} +4 -4
  74. package/es/{Floating-f9bbd276.js.map → Floating-aebc0f85.js.map} +1 -1
  75. package/es/FormLayout-221e1aa8.js +1 -1
  76. package/es/Gantt-46f5f954.js +9 -9
  77. package/es/{Grid-7fd29a9e.js → Grid-c2385b22.js} +2 -2
  78. package/es/{Grid-7fd29a9e.js.map → Grid-c2385b22.js.map} +1 -1
  79. package/es/{Gridlines-dcdc34bc.js → Gridlines-0e7b33f5.js} +2 -2
  80. package/es/{Gridlines-dcdc34bc.js.map → Gridlines-0e7b33f5.js.map} +1 -1
  81. package/es/GroupLoadingIndicator-2bfdba44.js +1 -1
  82. package/es/{HighlightText-cc043982.js → HighlightText-d505bf35.js} +2 -2
  83. package/es/{HighlightText-cc043982.js.map → HighlightText-d505bf35.js.map} +1 -1
  84. package/es/Icon-4171c0d7.js +3 -3
  85. package/es/IconButton-451a225c.js +3 -3
  86. package/es/IconMenuButton-e46f8d54.js +4 -4
  87. package/es/IconProgressButton-8f2f6b27.js +3 -3
  88. package/es/IconSwitchButton-5ff7b0fe.js +3 -3
  89. package/es/IconToggleButton-375f006f.js +3 -3
  90. package/es/{IconUserAssistance-dd56b812.js → IconUserAssistance-7cfd1ed2.js} +3 -3
  91. package/es/{IconUserAssistance-dd56b812.js.map → IconUserAssistance-7cfd1ed2.js.map} +1 -1
  92. package/es/Indexer-658cee69.js +4 -4
  93. package/es/InlineHelpSource-fcdcd122.js +1 -1
  94. package/es/InlineUserAssistance-e6deb149.js +5 -5
  95. package/es/InputDateMask-3d511e39.js +7 -7
  96. package/es/InputDatePicker-fe26a952.js +8 -8
  97. package/es/InputPassword-47130b3c.js +4 -4
  98. package/es/InputText-4799b2ed.js +6 -6
  99. package/es/Label-ab276ca9.js +5 -5
  100. package/es/LabelValueLayout-bcf482be.js +1 -1
  101. package/es/LabelledLinkVariants.styles.css +3 -3
  102. package/es/LabelledLinkVariants.styles2.css +3 -3
  103. package/es/{Layer-71fc666f.js → Layer-915d986a.js} +3 -3
  104. package/es/{Layer-71fc666f.js.map → Layer-915d986a.js.map} +1 -1
  105. package/es/{LayerHost-15b42a3e.js → LayerHost-7a2149f5.js} +2 -2
  106. package/es/{LayerHost-15b42a3e.js.map → LayerHost-7a2149f5.js.map} +1 -1
  107. package/es/{LayerManager-af39e736.js → LayerManager-be34be40.js} +2 -2
  108. package/es/{LayerManager-af39e736.js.map → LayerManager-be34be40.js.map} +1 -1
  109. package/es/Legend-ae0296f0.js +3 -3
  110. package/es/{LineAreaChart-cfb9b43d.js → LineAreaChart-e2e762e8.js} +4 -4
  111. package/es/{LineAreaChart-cfb9b43d.js.map → LineAreaChart-e2e762e8.js.map} +1 -1
  112. package/es/Link-9072aa54.js +1 -1
  113. package/es/LinkVariants.styles.css +14 -14
  114. package/es/LinkVariants.styles2.css +14 -14
  115. package/es/List-1d23e84f.js +5 -5
  116. package/es/{ListItemLayout-32895900.js → ListItemLayout-01286b56.js} +2 -2
  117. package/es/{ListItemLayout-32895900.js.map → ListItemLayout-01286b56.js.map} +1 -1
  118. package/es/ListView-8eba90e8.js +3 -3
  119. package/es/{LiveRegion-cb4f8a54.js → LiveRegion-5302331c.js} +2 -2
  120. package/es/{LiveRegion-cb4f8a54.js.map → LiveRegion-5302331c.js.map} +1 -1
  121. package/es/{MaxLengthLiveRegion-59087064.js → MaxLengthLiveRegion-9b386b63.js} +3 -3
  122. package/es/{MaxLengthLiveRegion-59087064.js.map → MaxLengthLiveRegion-9b386b63.js.map} +1 -1
  123. package/es/{Menu-b5deea24.js → Menu-e44a3e0b.js} +8 -8
  124. package/es/{Menu-b5deea24.js.map → Menu-e44a3e0b.js.map} +1 -1
  125. package/es/MenuButton-49b7965d.js +3 -3
  126. package/es/MenuItem-be46866f.js +1 -1
  127. package/es/Message-322f8d63.js +2 -2
  128. package/es/MessageBannerVariants.styles.css +2 -2
  129. package/es/MessageBannerVariants.styles2.css +2 -2
  130. package/es/{MessageLayer-34a390eb.js → MessageLayer-f09b0a1b.js} +6 -6
  131. package/es/{MessageLayer-34a390eb.js.map → MessageLayer-f09b0a1b.js.map} +1 -1
  132. package/es/MessageToast-66bdffe6.js +8 -8
  133. package/es/MessagesManager-a1c3e92e.js +3 -3
  134. package/es/MeterBar-9ad34b98.js +5 -5
  135. package/es/MeterCircle-6bd257c8.js +5 -5
  136. package/es/{Modal-3fd86d5a.js → Modal-862b8167.js} +3 -3
  137. package/es/{Modal-3fd86d5a.js.map → Modal-862b8167.js.map} +1 -1
  138. package/es/{MonthView-c3b82ace.js → MonthView-3d90f424.js} +4 -4
  139. package/es/{MonthView-c3b82ace.js.map → MonthView-3d90f424.js.map} +1 -1
  140. package/es/NavigationListItem-a336f06f.js +5 -5
  141. package/es/NavigationListItemVariants.styles.css +5 -5
  142. package/es/NavigationListItemVariants.styles2.css +5 -5
  143. package/es/NumberInputText-eca11601.js +6 -6
  144. package/es/OverflowTabBarItem-12249753.js +3 -3
  145. package/es/PRIVATE_BaseCardView/themes/redwood/BaseCardViewBaseTheme.css.js +1 -1
  146. package/es/PRIVATE_BaseCardView/themes/stable/BaseCardViewBaseTheme.css.js +1 -1
  147. package/es/PRIVATE_BaseCardView.js +21 -21
  148. package/es/PRIVATE_Chart.js +34 -34
  149. package/es/PRIVATE_CheckboxControl.js +23 -23
  150. package/es/PRIVATE_CheckboxRadioField.js +25 -25
  151. package/es/PRIVATE_ClearIcon.js +17 -17
  152. package/es/PRIVATE_DatePickerHeader.js +19 -19
  153. package/es/PRIVATE_DatePickerLayout.js +4 -4
  154. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  155. package/es/PRIVATE_FormControls.js +20 -20
  156. package/es/PRIVATE_IconSwitchButton.js +15 -15
  157. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  158. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  159. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  160. package/es/PRIVATE_Icons/RadiobuttonOff.js +15 -15
  161. package/es/PRIVATE_Icons/RadiobuttonOn.js +15 -15
  162. package/es/PRIVATE_Icons/WarningS.js +15 -15
  163. package/es/PRIVATE_List.js +19 -19
  164. package/es/PRIVATE_Message.js +19 -19
  165. package/es/PRIVATE_MessageLayer.js +11 -11
  166. package/es/PRIVATE_MonthView.js +7 -7
  167. package/es/PRIVATE_MonthYearGridView.js +7 -7
  168. package/es/PRIVATE_PlotArea.js +4 -4
  169. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  170. package/es/PRIVATE_SelectCommon/themes/dropdownStyles.css.js +1 -1
  171. package/es/PRIVATE_SelectCommon.js +30 -30
  172. package/es/PRIVATE_StyledCheckbox.js +15 -15
  173. package/es/PRIVATE_Table.js +18 -18
  174. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  175. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  176. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  177. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  178. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  179. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  180. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  181. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  182. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  183. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  184. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  185. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  186. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  187. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  188. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  189. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  190. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  191. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  192. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  193. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  194. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  195. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  196. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  197. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  198. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  199. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  200. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  201. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  202. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  203. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  204. package/es/PRIVATE_ThemedIcons/SortDefaultIcon.js +15 -15
  205. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  206. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  207. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  208. package/es/PRIVATE_TimeComponent.js +18 -18
  209. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  210. package/es/PictoChart-3dd90503.js +6 -6
  211. package/es/{PieChart-cdb56906.js → PieChart-d4f63bd8.js} +5 -5
  212. package/es/{PieChart-cdb56906.js.map → PieChart-d4f63bd8.js.map} +1 -1
  213. package/es/{Popup-8becd87a.js → Popup-7cc4028b.js} +9 -9
  214. package/es/{Popup-8becd87a.js.map → Popup-7cc4028b.js.map} +1 -1
  215. package/es/{ProgressBar-2565d814.js → ProgressBar-d647bba4.js} +3 -3
  216. package/es/{ProgressBar-2565d814.js.map → ProgressBar-d647bba4.js.map} +1 -1
  217. package/es/ProgressBarVariants.styles.css +1 -1
  218. package/es/ProgressBarVariants.styles2.css +1 -1
  219. package/es/ProgressButton-645ce827.js +3 -3
  220. package/es/ProgressButtonLabelLayout-6cf150e0.js +3 -3
  221. package/es/{ProgressCircle-c7f945c0.js → ProgressCircle-13dc0e4f.js} +2 -2
  222. package/es/{ProgressCircle-c7f945c0.js.map → ProgressCircle-13dc0e4f.js.map} +1 -1
  223. package/es/ProgressCircleVariants.styles.css +4 -4
  224. package/es/ProgressCircleVariants.styles2.css +4 -4
  225. package/es/RadioIconVariants.styles.css +1 -1
  226. package/es/RadioIconVariants.styles2.css +1 -1
  227. package/es/RadioItem-af1bbece.js +6 -6
  228. package/es/RatingGauge-82a6a416.js +7 -7
  229. package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
  230. package/es/RemovableNavigationListItem-7032ce3e.js +1 -1
  231. package/es/RemovableTabBarItem-16d04210.js +2 -2
  232. package/es/ReorderableTabBar-981af0f2.js +2 -2
  233. package/es/RevealToggleIcon-563c241c.js +1 -1
  234. package/es/SectionalLegend-a9b719ff.js +4 -4
  235. package/es/{SectionedContent-237bf539.js → SectionedContent-7e36073f.js} +5 -5
  236. package/es/{SectionedContent-237bf539.js.map → SectionedContent-7e36073f.js.map} +1 -1
  237. package/es/SelectMultiple-c1264885.js +8 -8
  238. package/es/SelectSingle-8336ec24.js +7 -7
  239. package/es/{SelectionCard-1711aae6.js → SelectionCard-a27bce15.js} +2 -2
  240. package/es/{SelectionCard-1711aae6.js.map → SelectionCard-a27bce15.js.map} +1 -1
  241. package/es/Selector-9f40e909.js +1 -1
  242. package/es/{SelectorAll-42ce8707.js → SelectorAll-40c76f0b.js} +7 -7
  243. package/es/{SelectorAll-42ce8707.js.map → SelectorAll-40c76f0b.js.map} +1 -1
  244. package/es/{Sheet-f7117b12.js → Sheet-34f3bcb4.js} +3 -3
  245. package/es/{Sheet-f7117b12.js.map → Sheet-34f3bcb4.js.map} +1 -1
  246. package/es/SplitMenuButton-74913bcc.js +3 -3
  247. package/es/SplitMenuButtonTheme.styles.css +4 -4
  248. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  249. package/es/StyledTextField-9df27ab4.js +3 -3
  250. package/es/Submenu-c6663c1d.js +1 -1
  251. package/es/TabBar-90cea652.js +7 -7
  252. package/es/TabBarItem-ba695c75.js +3 -3
  253. package/es/TabBarLayout-8caaa060.js +1 -1
  254. package/es/TabBarMixed-52ac388e.js +7 -7
  255. package/es/{TabBarMixedSeparator-da56f4c0.js → TabBarMixedSeparator-16c88691.js} +2 -2
  256. package/es/{TabBarMixedSeparator-da56f4c0.js.map → TabBarMixedSeparator-16c88691.js.map} +1 -1
  257. package/es/Table-3d484e2c.js +8 -8
  258. package/es/TagCloud-823b3d82.js +9 -9
  259. package/es/TextArea-6f18b955.js +5 -5
  260. package/es/TextAreaAutosize-4cf2754b.js +5 -5
  261. package/es/TextField-d4b4661d.js +3 -3
  262. package/es/TextFieldInput-84280715.js +1 -1
  263. package/es/TextFieldVariants.styles.css +29 -29
  264. package/es/TextFieldVariants.styles2.css +29 -29
  265. package/es/Theme-redwood/theme.css +495 -504
  266. package/es/Theme-stable/theme.css +479 -470
  267. package/es/TimeComponentCanvas2D-72f4af98.js +5 -5
  268. package/es/Toolbar-85379f64.js +1 -1
  269. package/es/{TruncatingBadge-7eb77ed3.js → TruncatingBadge-e5f38bc8.js} +4 -4
  270. package/es/{TruncatingBadge-7eb77ed3.js.map → TruncatingBadge-e5f38bc8.js.map} +1 -1
  271. package/es/{TruncatingText-93807530.js → TruncatingText-c3719839.js} +4 -4
  272. package/es/{TruncatingText-93807530.js.map → TruncatingText-c3719839.js.map} +1 -1
  273. package/es/UNSAFE_ActionCard.js +2 -2
  274. package/es/UNSAFE_Badge/themes/redwood/BadgeTheme.js +1 -1
  275. package/es/UNSAFE_Badge/themes/redwood/BadgeVariants.css.js +1 -1
  276. package/es/UNSAFE_Badge/themes/stable/BadgeTheme.js +1 -1
  277. package/es/UNSAFE_Badge/themes/stable/BadgeVariants.css.js +1 -1
  278. package/es/UNSAFE_Badge.js +1 -1
  279. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +35 -35
  280. package/es/UNSAFE_BarChart.js +35 -35
  281. package/es/UNSAFE_BaseButton.js +3 -3
  282. package/es/UNSAFE_Button.js +3 -3
  283. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +20 -20
  284. package/es/UNSAFE_ButtonSet.js +4 -4
  285. package/es/UNSAFE_ButtonSetButton.js +3 -3
  286. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  287. package/es/UNSAFE_ButtonSetItem.js +15 -15
  288. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  289. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  290. package/es/UNSAFE_CardFlexView.js +21 -21
  291. package/es/UNSAFE_CardGridView.js +21 -21
  292. package/es/UNSAFE_Center.js +5 -5
  293. package/es/UNSAFE_ChartWithLegend.js +4 -4
  294. package/es/UNSAFE_Checkbox.js +23 -23
  295. package/es/UNSAFE_CheckboxItem.js +23 -23
  296. package/es/UNSAFE_CheckboxSet.js +24 -24
  297. package/es/UNSAFE_Chip.js +2 -2
  298. package/es/UNSAFE_Collapsible/themes/redwood/CollapsibleTheme.js +1 -1
  299. package/es/UNSAFE_Collapsible/themes/redwood/CollapsibleVariants.css.js +1 -1
  300. package/es/UNSAFE_Collapsible/themes/stable/CollapsibleTheme.js +1 -1
  301. package/es/UNSAFE_Collapsible/themes/stable/CollapsibleVariants.css.js +1 -1
  302. package/es/UNSAFE_Collapsible.js +18 -18
  303. package/es/UNSAFE_ComponentMessage.js +19 -19
  304. package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltTheme.js +1 -1
  305. package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltVariants.css.js +1 -1
  306. package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltTheme.js +1 -1
  307. package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltVariants.css.js +1 -1
  308. package/es/UNSAFE_ConveyorBelt.js +16 -16
  309. package/es/UNSAFE_DatePicker.js +24 -24
  310. package/es/UNSAFE_Diagram.js +15 -15
  311. package/es/UNSAFE_Dialog.js +11 -11
  312. package/es/UNSAFE_DragHandle.js +16 -16
  313. package/es/UNSAFE_DrawerLayout.js +11 -11
  314. package/es/UNSAFE_DrawerPopup.js +10 -10
  315. package/es/UNSAFE_Dropdown/themes/dropdownStyles.css.js +1 -1
  316. package/es/UNSAFE_Dropdown.js +13 -13
  317. package/es/UNSAFE_Environment.js +4 -4
  318. package/es/UNSAFE_ExpandableList.js +22 -22
  319. package/es/UNSAFE_FilePicker.js +4 -4
  320. package/es/UNSAFE_Flex.js +4 -4
  321. package/es/UNSAFE_Floating.js +10 -10
  322. package/es/UNSAFE_FormLayout.js +2 -2
  323. package/es/UNSAFE_Gantt.js +22 -22
  324. package/es/UNSAFE_Grid.js +4 -4
  325. package/es/UNSAFE_HighlightText.js +4 -4
  326. package/es/UNSAFE_Icon.js +15 -15
  327. package/es/UNSAFE_IconButton.js +15 -15
  328. package/es/UNSAFE_IconMenuButton.js +19 -19
  329. package/es/UNSAFE_IconProgressButton.js +20 -20
  330. package/es/UNSAFE_IconToggleButton.js +15 -15
  331. package/es/UNSAFE_Indexer.js +6 -6
  332. package/es/UNSAFE_InputDateMask.js +25 -25
  333. package/es/UNSAFE_InputDatePicker.js +35 -35
  334. package/es/UNSAFE_InputPassword.js +24 -24
  335. package/es/UNSAFE_InputSensitiveText.js +26 -26
  336. package/es/UNSAFE_InputText.js +27 -27
  337. package/es/UNSAFE_Label.js +24 -24
  338. package/es/UNSAFE_LabelValueLayout.js +5 -5
  339. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkTheme.js +1 -1
  340. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkVariants.css.js +1 -1
  341. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkTheme.js +1 -1
  342. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkVariants.css.js +1 -1
  343. package/es/UNSAFE_LabelledLink.js +28 -28
  344. package/es/UNSAFE_Layer.js +7 -7
  345. package/es/UNSAFE_Legend.js +22 -22
  346. package/es/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +34 -34
  347. package/es/UNSAFE_LineAreaChart.js +35 -35
  348. package/es/UNSAFE_Link/themes/redwood/LinkTheme.js +1 -1
  349. package/es/UNSAFE_Link/themes/redwood/LinkVariants.css.js +1 -1
  350. package/es/UNSAFE_Link/themes/stable/LinkTheme.js +1 -1
  351. package/es/UNSAFE_Link/themes/stable/LinkVariants.css.js +1 -1
  352. package/es/UNSAFE_Link.js +3 -3
  353. package/es/UNSAFE_ListItemLayout.js +5 -5
  354. package/es/UNSAFE_ListView.js +25 -25
  355. package/es/UNSAFE_LiveRegion.js +4 -4
  356. package/es/UNSAFE_Menu.js +21 -21
  357. package/es/UNSAFE_MenuButton.js +19 -19
  358. package/es/UNSAFE_MessageBanner/themes/redwood/MessageBannerTheme.js +1 -1
  359. package/es/UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js +1 -1
  360. package/es/UNSAFE_MessageBanner/themes/stable/MessageBannerTheme.js +1 -1
  361. package/es/UNSAFE_MessageBanner/themes/stable/MessageBannerVariants.css.js +1 -1
  362. package/es/UNSAFE_MessageBanner.js +19 -19
  363. package/es/UNSAFE_MessageToast.js +22 -22
  364. package/es/UNSAFE_MeterBar.js +16 -16
  365. package/es/UNSAFE_MeterCircle.js +16 -16
  366. package/es/UNSAFE_Modal.js +7 -7
  367. package/es/UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js +1 -1
  368. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemTheme.js +1 -1
  369. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemVariants.css.js +1 -1
  370. package/es/UNSAFE_NavigationList.js +21 -21
  371. package/es/UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js +1 -1
  372. package/es/UNSAFE_NavigationListCommon.js +19 -19
  373. package/es/UNSAFE_NumberInputText.js +26 -26
  374. package/es/UNSAFE_OverflowTabBar.js +27 -27
  375. package/es/UNSAFE_PictoChart.js +13 -13
  376. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +14 -14
  377. package/es/UNSAFE_PieChart.js +14 -14
  378. package/es/UNSAFE_Popup.js +15 -15
  379. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme.js +1 -1
  380. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarVariants.css.js +1 -1
  381. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarTheme.js +1 -1
  382. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarVariants.css.js +1 -1
  383. package/es/UNSAFE_ProgressBar.js +6 -6
  384. package/es/UNSAFE_ProgressButton.js +20 -20
  385. package/es/UNSAFE_ProgressButtonLabelLayout.js +11 -11
  386. package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme.js +1 -1
  387. package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleVariants.css.js +1 -1
  388. package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleTheme.js +1 -1
  389. package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleVariants.css.js +1 -1
  390. package/es/UNSAFE_ProgressCircle.js +5 -5
  391. package/es/UNSAFE_RadioItem/themes/redwood/RadioIconTheme.js +1 -1
  392. package/es/UNSAFE_RadioItem/themes/redwood/RadioIconVariants.css.js +1 -1
  393. package/es/UNSAFE_RadioItem/themes/stable/RadioIconTheme.js +1 -1
  394. package/es/UNSAFE_RadioItem/themes/stable/RadioIconVariants.css.js +1 -1
  395. package/es/UNSAFE_RadioItem.js +24 -24
  396. package/es/UNSAFE_RadioSet.js +24 -24
  397. package/es/UNSAFE_RatingGauge.js +16 -16
  398. package/es/UNSAFE_ReorderableTabBar.js +22 -22
  399. package/es/UNSAFE_SectionalLegend.js +23 -23
  400. package/es/UNSAFE_SelectMultiple.js +34 -34
  401. package/es/UNSAFE_SelectSingle.js +34 -34
  402. package/es/UNSAFE_SelectionCard.js +4 -4
  403. package/es/UNSAFE_Selector.js +15 -15
  404. package/es/UNSAFE_SelectorAll.js +19 -19
  405. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +13 -13
  406. package/es/UNSAFE_Sheet.js +10 -10
  407. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  408. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  409. package/es/UNSAFE_SplitMenuButton.js +20 -20
  410. package/es/UNSAFE_TabBar.js +28 -28
  411. package/es/UNSAFE_TabBarCommon.js +27 -27
  412. package/es/UNSAFE_TabBarMixed.js +31 -31
  413. package/es/UNSAFE_TableView.js +18 -18
  414. package/es/UNSAFE_TagCloud.js +22 -22
  415. package/es/UNSAFE_TextArea.js +26 -26
  416. package/es/UNSAFE_TextAreaAutosize.js +26 -26
  417. package/es/UNSAFE_TextField/themes/redwood/TextFieldTheme.js +1 -1
  418. package/es/UNSAFE_TextField/themes/redwood/TextFieldVariants.css.js +1 -1
  419. package/es/UNSAFE_TextField/themes/stable/TextFieldTheme.js +1 -1
  420. package/es/UNSAFE_TextField/themes/stable/TextFieldVariants.css.js +1 -1
  421. package/es/UNSAFE_TextField.js +8 -8
  422. package/es/UNSAFE_ToggleButton.js +3 -3
  423. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +22 -22
  424. package/es/UNSAFE_Toolbar.js +4 -4
  425. package/es/UNSAFE_Train.js +16 -16
  426. package/es/UNSAFE_TruncatingBadge.js +18 -18
  427. package/es/UNSAFE_TruncatingText.js +17 -17
  428. package/es/UNSAFE_UserAssistance.js +24 -24
  429. package/es/UNSAFE_View.js +7 -7
  430. package/es/UNSAFE_VirtualizedListView.js +19 -19
  431. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  432. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  433. package/es/UNSAFE_VisStatusMessage.js +6 -6
  434. package/es/UNSAFE_WindowOverlay.js +4 -4
  435. package/es/{View-63980a9b.js → View-a8a64eb1.js} +5 -5
  436. package/es/{View-63980a9b.js.map → View-a8a64eb1.js.map} +1 -1
  437. package/es/{VisNoData-da540cbd.js → VisNoData-673b58e9.js} +3 -3
  438. package/es/{VisNoData-da540cbd.js.map → VisNoData-673b58e9.js.map} +1 -1
  439. package/es/{VisProgressiveLoader-2b2103c8.js → VisProgressiveLoader-66dde1ff.js} +3 -3
  440. package/es/{VisProgressiveLoader-2b2103c8.js.map → VisProgressiveLoader-66dde1ff.js.map} +1 -1
  441. package/es/{VisTabularDatatip-2ae7ee48.js → VisTabularDatatip-6aa607bb.js} +2 -2
  442. package/es/{VisTabularDatatip-2ae7ee48.js.map → VisTabularDatatip-6aa607bb.js.map} +1 -1
  443. package/es/{WindowOverlay-9b43e658.js → WindowOverlay-de5d0819.js} +2 -2
  444. package/es/{WindowOverlay-9b43e658.js.map → WindowOverlay-de5d0819.js.map} +1 -1
  445. package/es/{YearsGridView-37dfce0c.js → YearsGridView-5b5c1746.js} +4 -4
  446. package/es/{YearsGridView-37dfce0c.js.map → YearsGridView-5b5c1746.js.map} +1 -1
  447. package/es/dropdownStyles.styles.css +90 -6
  448. package/es/dropdownStyles.styles2.css +6 -90
  449. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  450. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  451. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  452. package/es/hooks/PRIVATE_useChartContextMenu.js +18 -18
  453. package/es/hooks/PRIVATE_useChartDatatip.js +13 -13
  454. package/es/hooks/PRIVATE_useChartEvents.js +17 -17
  455. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  456. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  457. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  458. package/es/hooks/PRIVATE_useDatatip.js +11 -11
  459. package/es/hooks/PRIVATE_useFloating.js +4 -4
  460. package/es/hooks/PRIVATE_useReorderable.js +4 -4
  461. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  462. package/es/hooks/PRIVATE_useSelection.js +4 -4
  463. package/es/hooks/PRIVATE_useTabBar.js +5 -5
  464. package/es/hooks/PRIVATE_useVisContextMenu.js +18 -18
  465. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  466. package/es/hooks/PRIVATE_useVisMeterEvents.js +13 -13
  467. package/es/hooks/PRIVATE_useVisSelection.js +12 -12
  468. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  469. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  470. package/es/hooks/UNSAFE_useDensity.js +3 -3
  471. package/es/hooks/UNSAFE_useOutsideClick.js +7 -7
  472. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  473. package/es/hooks/UNSAFE_useScale.js +3 -3
  474. package/es/hooks/UNSAFE_useTestId.js +3 -3
  475. package/es/hooks/UNSAFE_useTheme.js +3 -3
  476. package/es/hooks/UNSAFE_useThemeInterpolations.js +5 -5
  477. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  478. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  479. package/es/hooks/UNSAFE_useUser.js +3 -3
  480. package/es/{index-e65c9009.js → index-fee93bf9.js} +2 -2
  481. package/es/index-fee93bf9.js.map +1 -0
  482. package/es/listViewSelectionTests-0dfdcc5d.js +4 -4
  483. package/es/{render-ff141a3d.js → render-d92a7051.js} +3 -3
  484. package/es/{render-ff141a3d.js.map → render-d92a7051.js.map} +1 -1
  485. package/es/{tabbableUtils-375a33ee.js → tabbableUtils-1b4c2eea.js} +3 -3
  486. package/es/{tabbableUtils-375a33ee.js.map → tabbableUtils-1b4c2eea.js.map} +1 -1
  487. package/es/{testData-748c19ef.js → testData-ca9503e6.js} +3 -3
  488. package/es/{testData-748c19ef.js.map → testData-ca9503e6.js.map} +1 -1
  489. package/es/{tooltipUtils-1131b3ca.js → tooltipUtils-06c93436.js} +5 -5
  490. package/es/{tooltipUtils-1131b3ca.js.map → tooltipUtils-06c93436.js.map} +1 -1
  491. package/es/useCellNavigation-00d575ca.js +1 -1
  492. package/es/useChartContextMenu-8c49f584.js +3 -3
  493. package/es/{useChartDatatip-25f6bc69.js → useChartDatatip-82dba484.js} +4 -4
  494. package/es/{useChartDatatip-25f6bc69.js.map → useChartDatatip-82dba484.js.map} +1 -1
  495. package/es/useChartMarquee-08025a83.js +1 -1
  496. package/es/{useColorScheme-d8a80e2b.js → useColorScheme-f69d53b5.js} +2 -2
  497. package/es/{useColorScheme-d8a80e2b.js.map → useColorScheme-f69d53b5.js.map} +1 -1
  498. package/es/useContextMenu-12845847.js +3 -3
  499. package/es/{useCssVars-8e6932f8.js → useCssVars-48595cd2.js} +5 -5
  500. package/es/{useCssVars-8e6932f8.js.map → useCssVars-48595cd2.js.map} +1 -1
  501. package/es/{useCurrentBgColor-5418492b.js → useCurrentBgColor-894d059b.js} +2 -2
  502. package/es/{useCurrentBgColor-5418492b.js.map → useCurrentBgColor-894d059b.js.map} +1 -1
  503. package/es/{useCurrentKey-76e7d7b1.js → useCurrentKey-55123e83.js} +2 -2
  504. package/es/{useCurrentKey-76e7d7b1.js.map → useCurrentKey-55123e83.js.map} +1 -1
  505. package/es/{useDatatip-73566627.js → useDatatip-01d7ddeb.js} +4 -4
  506. package/es/{useDatatip-73566627.js.map → useDatatip-01d7ddeb.js.map} +1 -1
  507. package/es/{useDensity-64ecb649.js → useDensity-04a01caf.js} +2 -2
  508. package/es/{useDensity-64ecb649.js.map → useDensity-04a01caf.js.map} +1 -1
  509. package/es/{useFloating-d60cc8b4.js → useFloating-c9278755.js} +2 -2
  510. package/es/{useFloating-d60cc8b4.js.map → useFloating-c9278755.js.map} +1 -1
  511. package/es/{useKeyboardEvents-5c311766.js → useKeyboardEvents-b02e5fda.js} +2 -2
  512. package/es/{useKeyboardEvents-5c311766.js.map → useKeyboardEvents-b02e5fda.js.map} +1 -1
  513. package/es/useLegendContextMenu-926aca66.js +5 -5
  514. package/es/{useMeterDatatip-2cedbd5c.js → useMeterDatatip-43e31c05.js} +3 -3
  515. package/es/{useMeterDatatip-2cedbd5c.js.map → useMeterDatatip-43e31c05.js.map} +1 -1
  516. package/es/{useOutsideClick-725542a2.js → useOutsideClick-388c62bd.js} +2 -2
  517. package/es/{useOutsideClick-725542a2.js.map → useOutsideClick-388c62bd.js.map} +1 -1
  518. package/es/{usePopupAnimation-340f04b6.js → usePopupAnimation-b4577940.js} +2 -2
  519. package/es/{usePopupAnimation-340f04b6.js.map → usePopupAnimation-b4577940.js.map} +1 -1
  520. package/es/{usePrefixSuffix-435a9c59.js → usePrefixSuffix-995d4cda.js} +2 -2
  521. package/es/{usePrefixSuffix-435a9c59.js.map → usePrefixSuffix-995d4cda.js.map} +1 -1
  522. package/es/useReorderableItem-c715c504.js +2 -2
  523. package/es/{useRovingTabIndexContainer-b9833086.js → useRovingTabIndexContainer-097f96a6.js} +2 -2
  524. package/es/{useRovingTabIndexContainer-b9833086.js.map → useRovingTabIndexContainer-097f96a6.js.map} +1 -1
  525. package/es/{useScale-c86ecc6e.js → useScale-3b323ab2.js} +2 -2
  526. package/es/{useScale-c86ecc6e.js.map → useScale-3b323ab2.js.map} +1 -1
  527. package/es/useSelectCommon-7ebc86eb.js +11 -11
  528. package/es/{useSelectDrill-fbe57d95.js → useSelectDrill-8b53d932.js} +3 -3
  529. package/es/{useSelectDrill-fbe57d95.js.map → useSelectDrill-8b53d932.js.map} +1 -1
  530. package/es/{useSelection-1e1e89df.js → useSelection-7c94a24f.js} +2 -2
  531. package/es/{useSelection-1e1e89df.js.map → useSelection-7c94a24f.js.map} +1 -1
  532. package/es/{useSelection-dfbd140d.js → useSelection-b7c3e75e.js} +5 -5
  533. package/es/{useSelection-dfbd140d.js.map → useSelection-b7c3e75e.js.map} +1 -1
  534. package/es/{useTabBar-b826570d.js → useTabBar-6c6847ef.js} +2 -2
  535. package/es/{useTabBar-b826570d.js.map → useTabBar-6c6847ef.js.map} +1 -1
  536. package/es/{useTestId-3bc3958c.js → useTestId-af32a9eb.js} +2 -2
  537. package/es/{useTestId-3bc3958c.js.map → useTestId-af32a9eb.js.map} +1 -1
  538. package/es/{useTheme-4b0f211c.js → useTheme-73aca0e4.js} +2 -2
  539. package/es/{useTheme-4b0f211c.js.map → useTheme-73aca0e4.js.map} +1 -1
  540. package/es/{useThemeInterpolations-41ac870d.js → useThemeInterpolations-4f6cc83c.js} +4 -4
  541. package/es/{useThemeInterpolations-41ac870d.js.map → useThemeInterpolations-4f6cc83c.js.map} +1 -1
  542. package/es/{useTooltip-227887ea.js → useTooltip-e258ea41.js} +2 -2
  543. package/es/{useTooltip-227887ea.js.map → useTooltip-e258ea41.js.map} +1 -1
  544. package/es/{useTooltipControlled-7ccb5919.js → useTooltipControlled-50d5dac9.js} +5 -5
  545. package/es/{useTooltipControlled-7ccb5919.js.map → useTooltipControlled-50d5dac9.js.map} +1 -1
  546. package/es/{useTranslationBundle-98df6291.js → useTranslationBundle-6da03e52.js} +2 -2
  547. package/es/{useTranslationBundle-98df6291.js.map → useTranslationBundle-6da03e52.js.map} +1 -1
  548. package/es/{useUser-a15426fc.js → useUser-bca8cf2d.js} +2 -2
  549. package/es/{useUser-a15426fc.js.map → useUser-bca8cf2d.js.map} +1 -1
  550. package/es/{useVisEvents-ff4204b5.js → useVisEvents-cd3616aa.js} +2 -2
  551. package/es/{useVisEvents-ff4204b5.js.map → useVisEvents-cd3616aa.js.map} +1 -1
  552. package/es/utils/PRIVATE_tooltipUtils.js +13 -13
  553. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  554. package/es/{withDirectionIcon-90d7c798.js → withDirectionIcon-389870a2.js} +2 -2
  555. package/es/{withDirectionIcon-90d7c798.js.map → withDirectionIcon-389870a2.js.map} +1 -1
  556. package/es/withThemeProps-6545df54.js +2 -2
  557. package/package.json +2 -2
  558. package/amd/CheckboxSetContext-2e486ea8.js +0 -2
  559. package/amd/CheckboxSetContext-2e486ea8.js.map +0 -1
  560. package/es/index-e65c9009.js.map +0 -1
  561. /package/es/PRIVATE_BaseCardView/themes/{redwood → stable}/BaseCardViewBaseTheme.styles.css +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Popup-8becd87a.js","sources":["../../src/UNSAFE_Popup/Popup.tsx"],"sourcesContent":["import { JSX, RefObject } from 'preact';\nimport { useState, useEffect, useLayoutEffect, useMemo, useRef, useCallback } from 'preact/hooks';\nimport { Floating, Offset, Placement, Coords, FlipOptions, ShiftOptions } from '../UNSAFE_Floating';\nimport {\n FocusableElement,\n focusOn,\n focusWithin,\n getActiveElement\n} from '../utils/PRIVATE_tabbableUtils';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { FocusTrap } from '../UNSAFE_FocusTrap';\nimport { Layer } from '../UNSAFE_Layer';\nimport { Modal } from '../UNSAFE_Modal';\nimport { WindowOverlay, WindowOverlayPlacement } from '../UNSAFE_WindowOverlay';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { usePopupAnimation } from './usePopupAnimation';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\n\n// Style imports\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { popupVars } from './themes/PopupContract.css';\nimport { getVarName } from '../utils/UNSAFE_stringUtils';\nimport { Property } from 'csstype';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { PopupRedwoodTheme } from './themes/redwood/PopupTheme';\nimport { dimensionInterpolations, DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nexport type PopupPlacement = Placement | WindowOverlayPlacement;\nexport type OnCloseDetail = {\n reason: 'escapeKey';\n};\nexport type InitialFocus = 'auto' | 'none' | 'popup' | 'firstFocusable';\nexport type Tail = 'none' | 'simple';\nexport type Modality = 'modal' | 'modeless';\n\ntype Props = IntrinsicProps &\n DimensionProps &\n TestIdProps & {\n /**\n * Specifies whether the Popup is open.\n */\n isOpen: boolean;\n /**\n * Specifies Popup's anchor. Popup is placed relatively to its anchor.\n */\n anchorRef?: RefObject<Element | Coords>;\n /**\n * Specifies Popup's launcher. After Popup closes, it returns focus to the launcher.\n */\n launcherRef?: RefObject<HTMLElement>;\n /**\n * Specifies placement of the Popup relative to the anchor.\n */\n placement?: PopupPlacement;\n /**\n * Specifies displacement of the Popup from the anchor element placement along the specified axes.\n * The offset object consists of mainAxis and crossAxis properties. The direction in which these properties\n * are applied depends on the current value of the position property.\n *\n * The <code>mainAxis</code> property represents the distance between the Popup and the anchor.\n * The <code>crossAxis</code> property represents the deviation in the opposite axis to the main axis - the skidding between the Popup and the anchor.\n */\n offset?: Offset;\n /**\n * Specifies modality of the Popup.\n */\n modality?: Modality;\n /**\n * Specifies whether a floating Popup changes placement to the opposite side to be kept in view when a collision is detected.\n *\n * The flipOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n flipOptions?: FlipOptions;\n /**\n * Specifies whether a floating Popup shifts along axis to be kept in view when a collision is detected.\n * Note that if both 'flip' and 'shift' are enabled on respective axis, the flip will take precedence.\n *\n * The shiftOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n shiftOptions?: ShiftOptions;\n /**\n * Specifies if the Popup sets focus to its content when initially open.\n * A value of none prevents the popup from setting focus when open.\n *\n * <code>auto</code> in modeless mode resolves to none.\n * <code>none</code> prevents the popup from setting focus when open.\n * <code>popup</code> sets focus to the root popup container (good choice for touch platforms).\n * <code>firstFocusable</code> defines that a popup should set focus to the first focusable element within the popup's content.\n */\n initialFocus?: InitialFocus;\n /**\n * Specifies callback triggered when a user clicks outside Popup.\n */\n onClickOutside?: (event: MouseEvent) => void;\n /**\n * Specifies callback triggered when a user tries to close a Popup through UI interaction.\n * The parent should listen to this event and close the Popup. If the parent fails to remove\n * the Popup, then no change will be done in the UI by the component.\n */\n onClose?: (detail: OnCloseDetail) => void;\n /**\n * Specifies callback triggered when initial focus is set or when Popup receives it via F6 key.\n */\n onFocusSet?: () => void;\n /**\n * Specifies Popup's tail. Simple tail is an arrow pointing to Popup's anchor.\n */\n tail?: Tail;\n /**\n * Specifies callback triggered after the animation ends.\n */\n onTransitionEnd?: (value: boolean) => void;\n /**\n * Specifies the ARIA role type. Depending on how the popup is used in the page, the page developer should choose from the following:\n * <code>tooltip</code> defines contextual popup that displays a description for an element. This is added automatically if not already specified.\n * <code>dialog</code> defines an application window that is designed to interrupt the current processing of an application in order to prompt the user to enter information or require a response.\n * <code>alertdialog</code> defines type of dialog that contains an alert message, where initial focus goes to an element within the dialog.\n */\n role?: HTMLAttributesSignalExcluded['role'];\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 };\n\n/**\n * A popup temporarily 'pops up' content in the foreground.\n */\nexport const Popup = forwardRef(\n (\n {\n anchorRef,\n launcherRef,\n children,\n isOpen = false,\n modality = 'modeless',\n offset = { mainAxis: 0, crossAxis: 0 },\n flipOptions = { mainAxis: true, crossAxis: true },\n shiftOptions = { mainAxis: false, crossAxis: false },\n onClickOutside,\n onClose,\n initialFocus = 'auto',\n placement = anchorRef ? 'top' : 'center',\n tail = 'none',\n onTransitionEnd,\n onFocusSet,\n role = modality === 'modeless' ? 'tooltip' : 'dialog',\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 const localLauncherRef = useRef<HTMLElement | null>(null);\n const [popupBgColor, setPopupBgColor] = useState<Property.BackgroundColor>();\n\n const contentWrapperRef = useRef<HTMLDivElement | null>(null);\n\n // testId support\n const testIdProps = useTestId(testId);\n\n // We can not merge outsideClick to onClose event with {reason: 'outsideClick'} payload\n // The reason is that we allow outsideClick/autodismiss in modeless mode and\n // we need to detect outsideClick which is\n useOutsideClick({\n isDisabled: !(isOpen && contentWrapperRef.current),\n ref: contentWrapperRef,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n function launcherKeyDownCallback(event: KeyboardEvent): void {\n if (\n localLauncherRef.current === getActiveElement() &&\n event.code === 'F6' &&\n modality === 'modeless'\n ) {\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n }\n\n const _onTransitionEnd = (isOpen: boolean) => {\n if (isOpen) {\n setInitialFocus();\n onTransitionEnd?.(true);\n } else {\n onTransitionEnd?.(false);\n }\n };\n\n // Animation\n const { setAnimationElementRef, status, onPosition } = usePopupAnimation({\n isOpen,\n isAnimatedOnMount: true,\n onTransitionEnd: _onTransitionEnd,\n placement: placement\n });\n const stableRef = useMemo(\n () => mergeRefs(setAnimationElementRef, ref),\n [setAnimationElementRef, ref]\n );\n\n const returnFocus = useCallback((): void => {\n // Try to return focus to 1.launcher or 2.anchor\n const launcherEl = localLauncherRef.current;\n const anchorEl = anchorRef?.current;\n\n if (launcherEl) {\n focusOn(launcherEl);\n // Checking instanceof to avoid Coords type that can not be focused\n } else if (anchorEl && anchorEl instanceof Element) {\n focusOn(anchorEl as FocusableElement);\n }\n }, [localLauncherRef, anchorRef?.current]);\n\n useEffect(() => {\n // Init closing\n if (!isOpen && status === 'opening') {\n // Only actively return focus to the launcher or anchor if the popup contained focus.\n // Otherwise, focus is already elsewhere on the page and should not be forced back\n // because that could reopen the popup again, which essentially prevents the user from\n // moving focus out of the launcher.\n if (contentWrapperRef.current?.contains(getActiveElement())) {\n returnFocus();\n }\n }\n }, [isOpen, status, returnFocus]);\n\n // Initialize launcher\n useEffect(() => {\n if (isOpen) {\n if (!launcherRef?.current) {\n // 1. If launcher is not defined, most frequent scenario is,\n // that element, that has focus before opening a popup is considered launcher\n localLauncherRef.current = getActiveElement() as HTMLElement;\n } else if (launcherRef.current instanceof Element) {\n // 2. launcherRef element was provided.\n // Verify, if it exists in DOM, otherwise use the last active element\n localLauncherRef.current = document.body.contains(launcherRef.current)\n ? launcherRef.current\n : (getActiveElement() as HTMLElement);\n } else {\n localLauncherRef.current = getActiveElement() as HTMLElement;\n }\n // Register F6 key handler to enter the Popup\n localLauncherRef.current?.addEventListener('keydown', launcherKeyDownCallback);\n }\n return () => {\n // Deregister F6 key handler\n localLauncherRef.current?.removeEventListener('keydown', launcherKeyDownCallback);\n };\n }, [isOpen, launcherRef]);\n // Note: unlike oj-c-popup we do not default anchorRef to launcherRef in Preact Popup\n // If anchorRef is undefined, we use WindowOverlay as anchor\n\n const setInitialFocus = () => {\n let derivedInitialFocus = initialFocus;\n if (initialFocus === 'auto') {\n if (modality === 'modal') {\n // modal mode - set focus to first focusable\n derivedInitialFocus = 'firstFocusable';\n } else {\n // modeless mode - do not steal focus by default\n derivedInitialFocus = 'none';\n }\n }\n\n // Case: 'popup'\n // Focus on Popup container\n if (derivedInitialFocus === 'popup') {\n focusOn(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n onTransitionEnd?.(false);\n }\n\n // Case: 'firstFocusable'\n // Focus on first tabbable in the Popup container or container itself if there is none\n if (derivedInitialFocus === 'firstFocusable') {\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n };\n\n const getMainAxisOffset = (offset?: Offset) => {\n let calcOffset = 0;\n if (offset) {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'mainAxis' does not exist on type 'OffsetFunction'.\n calcOffset = typeof offset === 'number' ? offset : offset.mainAxis || 0;\n if (tail === 'simple') {\n calcOffset += 5;\n }\n }\n return calcOffset;\n };\n\n const getCrossAxisOffset = (offset?: Offset) => {\n if (!offset) {\n return 0;\n } else {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'crossAxis' does not exist on type 'OffsetFunction'.\n return typeof offset === 'number' ? 0 : offset.crossAxis || 0;\n }\n };\n\n const finalOffset = {\n mainAxis: getMainAxisOffset(offset),\n crossAxis: getCrossAxisOffset(offset)\n };\n\n const handlePopupKeyDown = (event: KeyboardEvent) => {\n const currentlyFocusedEl = getActiveElement();\n const wrapperEl = contentWrapperRef.current;\n const launcherEl = localLauncherRef.current;\n if (wrapperEl === currentlyFocusedEl || wrapperEl?.contains(currentlyFocusedEl)) {\n switch (event.code) {\n case 'Escape': {\n // Trigger onClose event with outside click detail\n onClose?.({ reason: 'escapeKey' });\n break;\n }\n case '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 launcher\n if (launcherEl && modality === 'modeless') {\n focusOn(launcherEl);\n }\n break;\n }\n }\n };\n\n useLayoutEffect(() => {\n if (\n status === 'unmounted' ||\n contentWrapperRef.current == null ||\n popupBgColor != null ||\n tail === 'none'\n )\n return;\n\n const backgroundColorVar = getVarName(popupVars.backgroundColor);\n const computedStyle = getComputedStyle(contentWrapperRef.current!);\n setPopupBgColor(computedStyle.getPropertyValue(backgroundColorVar));\n }, [status, contentWrapperRef, popupBgColor, tail]);\n\n // Styles\n const { baseTheme, classes } = useComponentTheme(PopupRedwoodTheme);\n const isMounted = status !== 'unmounted';\n\n const interpolations = [...Object.values(dimensionInterpolations)];\n const styleInterpolations = mergeInterpolations<DimensionProps>(interpolations);\n const { ...styles } = styleInterpolations(props);\n\n const renderPopup = () => {\n return (\n <div\n ref={contentWrapperRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {/*Setting restoreFocusRef to false because otherwise FocusTrap is stealing the focus back when :*/}\n {/*we click outside of modeless Popup (that keeps being open).*/}\n <FocusTrap restoreFocusRef={false}>{children}</FocusTrap>\n </div>\n );\n };\n\n const renderFloatingOrOverlayPopup = () => {\n if (!anchorRef || !anchorRef.current) {\n return (\n <WindowOverlay placement={placement as WindowOverlayPlacement} offset={finalOffset}>\n <div ref={stableRef}>{renderPopup()}</div>\n </WindowOverlay>\n );\n } else {\n return (\n <Floating\n ref={stableRef}\n backgroundColor={popupBgColor}\n anchorRef={anchorRef}\n placement={placement as Placement}\n offsetValue={finalOffset}\n flipOptions={flipOptions}\n shiftOptions={shiftOptions}\n tail={tail}\n onPosition={onPosition}>\n {renderPopup()}\n </Floating>\n );\n }\n };\n\n if (isMounted) {\n if (modality === 'modal') {\n return <Modal isOpen={isMounted}>{renderFloatingOrOverlayPopup()}</Modal>;\n } else {\n return <Layer>{renderFloatingOrOverlayPopup()}</Layer>;\n }\n } else return null;\n }\n);\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA+IA;;AAEG;AACU,MAAA,KAAK,GAAG,UAAU,CAC7B,CACE,EACE,SAAS,EACT,WAAW,EACX,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,QAAQ,GAAG,UAAU,EACrB,MAAM,GAAG,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EACtC,WAAW,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EACjD,YAAY,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EACpD,cAAc,EACd,OAAO,EACP,YAAY,GAAG,MAAM,EACrB,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,EACxC,IAAI,GAAG,MAAM,EACb,eAAe,EACf,UAAU,EACV,IAAI,GAAG,QAAQ,KAAK,UAAU,GAAG,SAAS,GAAG,QAAQ,EACrD,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,MAAM,EACN,GAAG,KAAK,EACF,EACR,GAAqC,KACnC;AACF,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IAC1D,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,EAA4B,CAAC;A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AE,WAAW,YAChFA,GAAK,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,SAAS,EAAA,QAAA,EAAG,WAAW,EAAE,EAAA,CAAO,EAC5B,CAAA,EAChB;SACH;aAAM;YACL,QACEA,IAAC,QAAQ,EAAA,EACP,GAAG,EAAE,SAAS,EACd,eAAe,EAAE,YAAY,EAC7B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAsB,EACjC,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EAAA,QAAA,EACrB,WAAW,EAAE,EAAA,CACL,EACX;SACH;AACH,KAAC,CAAC;IAEF,IAAI,SAAS,EAAE;AACb,QAAA,IAAI,QAAQ,KAAK,OAAO,EAAE;YACxB,OAAOA,GAAA,CAAC,KAAK,EAAA,EAAC,MAAM,EAAE,SAAS,EAAG,QAAA,EAAA,4BAA4B,EAAE,EAAA,CAAS,CAAC;SAC3E;aAAM;AACL,YAAA,OAAOA,IAAC,KAAK,EAAA,EAAA,QAAA,EAAE,4BAA4B,EAAE,GAAS,CAAC;SACxD;KACF;;AAAM,QAAA,OAAO,IAAI,CAAC;AACrB,CAAC;;;;"}
1
+ {"version":3,"file":"Popup-7cc4028b.js","sources":["../../src/UNSAFE_Popup/Popup.tsx"],"sourcesContent":["import { JSX, RefObject } from 'preact';\nimport { useState, useEffect, useLayoutEffect, useMemo, useRef, useCallback } from 'preact/hooks';\nimport { Floating, Offset, Placement, Coords, FlipOptions, ShiftOptions } from '../UNSAFE_Floating';\nimport {\n FocusableElement,\n focusOn,\n focusWithin,\n getActiveElement\n} from '../utils/PRIVATE_tabbableUtils';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { FocusTrap } from '../UNSAFE_FocusTrap';\nimport { Layer } from '../UNSAFE_Layer';\nimport { Modal } from '../UNSAFE_Modal';\nimport { WindowOverlay, WindowOverlayPlacement } from '../UNSAFE_WindowOverlay';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { usePopupAnimation } from './usePopupAnimation';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\n\n// Style imports\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { popupVars } from './themes/PopupContract.css';\nimport { getVarName } from '../utils/UNSAFE_stringUtils';\nimport { Property } from 'csstype';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { PopupRedwoodTheme } from './themes/redwood/PopupTheme';\nimport { dimensionInterpolations, DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\ntype IntrinsicProps = Pick<JSX.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nexport type PopupPlacement = Placement | WindowOverlayPlacement;\nexport type OnCloseDetail = {\n reason: 'escapeKey';\n};\nexport type InitialFocus = 'auto' | 'none' | 'popup' | 'firstFocusable';\nexport type Tail = 'none' | 'simple';\nexport type Modality = 'modal' | 'modeless';\n\ntype Props = IntrinsicProps &\n DimensionProps &\n TestIdProps & {\n /**\n * Specifies whether the Popup is open.\n */\n isOpen: boolean;\n /**\n * Specifies Popup's anchor. Popup is placed relatively to its anchor.\n */\n anchorRef?: RefObject<Element | Coords>;\n /**\n * Specifies Popup's launcher. After Popup closes, it returns focus to the launcher.\n */\n launcherRef?: RefObject<HTMLElement>;\n /**\n * Specifies placement of the Popup relative to the anchor.\n */\n placement?: PopupPlacement;\n /**\n * Specifies displacement of the Popup from the anchor element placement along the specified axes.\n * The offset object consists of mainAxis and crossAxis properties. The direction in which these properties\n * are applied depends on the current value of the position property.\n *\n * The <code>mainAxis</code> property represents the distance between the Popup and the anchor.\n * The <code>crossAxis</code> property represents the deviation in the opposite axis to the main axis - the skidding between the Popup and the anchor.\n */\n offset?: Offset;\n /**\n * Specifies modality of the Popup.\n */\n modality?: Modality;\n /**\n * Specifies whether a floating Popup changes placement to the opposite side to be kept in view when a collision is detected.\n *\n * The flipOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n flipOptions?: FlipOptions;\n /**\n * Specifies whether a floating Popup shifts along axis to be kept in view when a collision is detected.\n * Note that if both 'flip' and 'shift' are enabled on respective axis, the flip will take precedence.\n *\n * The shiftOptions object consists of mainAxis and crossAxis properties.\n * The <code>mainAxis</code> runs along the side of the Popup element.\n * The <code>crossAxis</code> runs along the alignment of the Popup element.\n */\n shiftOptions?: ShiftOptions;\n /**\n * Specifies if the Popup sets focus to its content when initially open.\n * A value of none prevents the popup from setting focus when open.\n *\n * <code>auto</code> in modeless mode resolves to none.\n * <code>none</code> prevents the popup from setting focus when open.\n * <code>popup</code> sets focus to the root popup container (good choice for touch platforms).\n * <code>firstFocusable</code> defines that a popup should set focus to the first focusable element within the popup's content.\n */\n initialFocus?: InitialFocus;\n /**\n * Specifies callback triggered when a user clicks outside Popup.\n */\n onClickOutside?: (event: MouseEvent) => void;\n /**\n * Specifies callback triggered when a user tries to close a Popup through UI interaction.\n * The parent should listen to this event and close the Popup. If the parent fails to remove\n * the Popup, then no change will be done in the UI by the component.\n */\n onClose?: (detail: OnCloseDetail) => void;\n /**\n * Specifies callback triggered when initial focus is set or when Popup receives it via F6 key.\n */\n onFocusSet?: () => void;\n /**\n * Specifies Popup's tail. Simple tail is an arrow pointing to Popup's anchor.\n */\n tail?: Tail;\n /**\n * Specifies callback triggered after the animation ends.\n */\n onTransitionEnd?: (value: boolean) => void;\n /**\n * Specifies the ARIA role type. Depending on how the popup is used in the page, the page developer should choose from the following:\n * <code>tooltip</code> defines contextual popup that displays a description for an element. This is added automatically if not already specified.\n * <code>dialog</code> defines an application window that is designed to interrupt the current processing of an application in order to prompt the user to enter information or require a response.\n * <code>alertdialog</code> defines type of dialog that contains an alert message, where initial focus goes to an element within the dialog.\n */\n role?: HTMLAttributesSignalExcluded['role'];\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 };\n\n/**\n * A popup temporarily 'pops up' content in the foreground.\n */\nexport const Popup = forwardRef(\n (\n {\n anchorRef,\n launcherRef,\n children,\n isOpen = false,\n modality = 'modeless',\n offset = { mainAxis: 0, crossAxis: 0 },\n flipOptions = { mainAxis: true, crossAxis: true },\n shiftOptions = { mainAxis: false, crossAxis: false },\n onClickOutside,\n onClose,\n initialFocus = 'auto',\n placement = anchorRef ? 'top' : 'center',\n tail = 'none',\n onTransitionEnd,\n onFocusSet,\n role = modality === 'modeless' ? 'tooltip' : 'dialog',\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 const localLauncherRef = useRef<HTMLElement | null>(null);\n const [popupBgColor, setPopupBgColor] = useState<Property.BackgroundColor>();\n\n const contentWrapperRef = useRef<HTMLDivElement | null>(null);\n\n // testId support\n const testIdProps = useTestId(testId);\n\n // We can not merge outsideClick to onClose event with {reason: 'outsideClick'} payload\n // The reason is that we allow outsideClick/autodismiss in modeless mode and\n // we need to detect outsideClick which is\n useOutsideClick({\n isDisabled: !(isOpen && contentWrapperRef.current),\n ref: contentWrapperRef,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n function launcherKeyDownCallback(event: KeyboardEvent): void {\n if (\n localLauncherRef.current === getActiveElement() &&\n event.code === 'F6' &&\n modality === 'modeless'\n ) {\n // Prevent default F6 handlers.\n // F6 is a standard Chrome address bar shortcut on Windows.\n event.preventDefault();\n event.stopPropagation();\n\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n }\n\n const _onTransitionEnd = (isOpen: boolean) => {\n if (isOpen) {\n setInitialFocus();\n onTransitionEnd?.(true);\n } else {\n onTransitionEnd?.(false);\n }\n };\n\n // Animation\n const { setAnimationElementRef, status, onPosition } = usePopupAnimation({\n isOpen,\n isAnimatedOnMount: true,\n onTransitionEnd: _onTransitionEnd,\n placement: placement\n });\n const stableRef = useMemo(\n () => mergeRefs(setAnimationElementRef, ref),\n [setAnimationElementRef, ref]\n );\n\n const returnFocus = useCallback((): void => {\n // Try to return focus to 1.launcher or 2.anchor\n const launcherEl = localLauncherRef.current;\n const anchorEl = anchorRef?.current;\n\n if (launcherEl) {\n focusOn(launcherEl);\n // Checking instanceof to avoid Coords type that can not be focused\n } else if (anchorEl && anchorEl instanceof Element) {\n focusOn(anchorEl as FocusableElement);\n }\n }, [localLauncherRef, anchorRef?.current]);\n\n useEffect(() => {\n // Init closing\n if (!isOpen && status === 'opening') {\n // Only actively return focus to the launcher or anchor if the popup contained focus.\n // Otherwise, focus is already elsewhere on the page and should not be forced back\n // because that could reopen the popup again, which essentially prevents the user from\n // moving focus out of the launcher.\n if (contentWrapperRef.current?.contains(getActiveElement())) {\n returnFocus();\n }\n }\n }, [isOpen, status, returnFocus]);\n\n // Initialize launcher\n useEffect(() => {\n if (isOpen) {\n if (!launcherRef?.current) {\n // 1. If launcher is not defined, most frequent scenario is,\n // that element, that has focus before opening a popup is considered launcher\n localLauncherRef.current = getActiveElement() as HTMLElement;\n } else if (launcherRef.current instanceof Element) {\n // 2. launcherRef element was provided.\n // Verify, if it exists in DOM, otherwise use the last active element\n localLauncherRef.current = document.body.contains(launcherRef.current)\n ? launcherRef.current\n : (getActiveElement() as HTMLElement);\n } else {\n localLauncherRef.current = getActiveElement() as HTMLElement;\n }\n // Register F6 key handler to enter the Popup\n localLauncherRef.current?.addEventListener('keydown', launcherKeyDownCallback);\n }\n return () => {\n // Deregister F6 key handler\n localLauncherRef.current?.removeEventListener('keydown', launcherKeyDownCallback);\n };\n }, [isOpen, launcherRef]);\n // Note: unlike oj-c-popup we do not default anchorRef to launcherRef in Preact Popup\n // If anchorRef is undefined, we use WindowOverlay as anchor\n\n const setInitialFocus = () => {\n let derivedInitialFocus = initialFocus;\n if (initialFocus === 'auto') {\n if (modality === 'modal') {\n // modal mode - set focus to first focusable\n derivedInitialFocus = 'firstFocusable';\n } else {\n // modeless mode - do not steal focus by default\n derivedInitialFocus = 'none';\n }\n }\n\n // Case: 'popup'\n // Focus on Popup container\n if (derivedInitialFocus === 'popup') {\n focusOn(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n onTransitionEnd?.(false);\n }\n\n // Case: 'firstFocusable'\n // Focus on first tabbable in the Popup container or container itself if there is none\n if (derivedInitialFocus === 'firstFocusable') {\n focusWithin(contentWrapperRef.current as HTMLElement);\n onFocusSet?.();\n }\n };\n\n const getMainAxisOffset = (offset?: Offset) => {\n let calcOffset = 0;\n if (offset) {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'mainAxis' does not exist on type 'OffsetFunction'.\n calcOffset = typeof offset === 'number' ? offset : offset.mainAxis || 0;\n if (tail === 'simple') {\n calcOffset += 5;\n }\n }\n return calcOffset;\n };\n\n const getCrossAxisOffset = (offset?: Offset) => {\n if (!offset) {\n return 0;\n } else {\n // @ts-ignore as OffsetFunction is going to be removed\n // Property 'crossAxis' does not exist on type 'OffsetFunction'.\n return typeof offset === 'number' ? 0 : offset.crossAxis || 0;\n }\n };\n\n const finalOffset = {\n mainAxis: getMainAxisOffset(offset),\n crossAxis: getCrossAxisOffset(offset)\n };\n\n const handlePopupKeyDown = (event: KeyboardEvent) => {\n const currentlyFocusedEl = getActiveElement();\n const wrapperEl = contentWrapperRef.current;\n const launcherEl = localLauncherRef.current;\n if (wrapperEl === currentlyFocusedEl || wrapperEl?.contains(currentlyFocusedEl)) {\n switch (event.code) {\n case 'Escape': {\n // Trigger onClose event with outside click detail\n onClose?.({ reason: 'escapeKey' });\n break;\n }\n case '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 launcher\n if (launcherEl && modality === 'modeless') {\n focusOn(launcherEl);\n }\n break;\n }\n }\n };\n\n useLayoutEffect(() => {\n if (\n status === 'unmounted' ||\n contentWrapperRef.current == null ||\n popupBgColor != null ||\n tail === 'none'\n )\n return;\n\n const backgroundColorVar = getVarName(popupVars.backgroundColor);\n const computedStyle = getComputedStyle(contentWrapperRef.current!);\n setPopupBgColor(computedStyle.getPropertyValue(backgroundColorVar));\n }, [status, contentWrapperRef, popupBgColor, tail]);\n\n // Styles\n const { baseTheme, classes } = useComponentTheme(PopupRedwoodTheme);\n const isMounted = status !== 'unmounted';\n\n const interpolations = [...Object.values(dimensionInterpolations)];\n const styleInterpolations = mergeInterpolations<DimensionProps>(interpolations);\n const { ...styles } = styleInterpolations(props);\n\n const renderPopup = () => {\n return (\n <div\n ref={contentWrapperRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {/*Setting restoreFocusRef to false because otherwise FocusTrap is stealing the focus back when :*/}\n {/*we click outside of modeless Popup (that keeps being open).*/}\n <FocusTrap restoreFocusRef={false}>{children}</FocusTrap>\n </div>\n );\n };\n\n const renderFloatingOrOverlayPopup = () => {\n if (!anchorRef || !anchorRef.current) {\n return (\n <WindowOverlay placement={placement as WindowOverlayPlacement} offset={finalOffset}>\n <div ref={stableRef}>{renderPopup()}</div>\n </WindowOverlay>\n );\n } else {\n return (\n <Floating\n ref={stableRef}\n backgroundColor={popupBgColor}\n anchorRef={anchorRef}\n placement={placement as Placement}\n offsetValue={finalOffset}\n flipOptions={flipOptions}\n shiftOptions={shiftOptions}\n tail={tail}\n onPosition={onPosition}>\n {renderPopup()}\n </Floating>\n );\n }\n };\n\n if (isMounted) {\n if (modality === 'modal') {\n return <Modal isOpen={isMounted}>{renderFloatingOrOverlayPopup()}</Modal>;\n } else {\n return <Layer>{renderFloatingOrOverlayPopup()}</Layer>;\n }\n } else return null;\n }\n);\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA+IA;;AAEG;AACU,MAAA,KAAK,GAAG,UAAU,CAC7B,CACE,EACE,SAAS,EACT,WAAW,EACX,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,QAAQ,GAAG,UAAU,EACrB,MAAM,GAAG,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EACtC,WAAW,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EACjD,YAAY,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EACpD,cAAc,EACd,OAAO,EACP,YAAY,GAAG,MAAM,EACrB,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,EACxC,IAAI,GAAG,MAAM,EACb,eAAe,EACf,UAAU,EACV,IAAI,GAAG,QAAQ,KAAK,UAAU,GAAG,SAAS,GAAG,QAAQ,EACrD,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,MAAM,EACN,GAAG,KAAK,EACF,EACR,GAAqC,KACnC;AACF,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IAC1D,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,EAA4B,CAAC;AAE7E,IAAA,MAAM,iBAAiB,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;;AAG9D,IAAA,MAAM,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;;;;AAKtC,IAAA,eAAe,CAAC;QACd,UAAU,EAAE,EAAE,MAAM,IAAI,iBA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,eAAe,EAAE,YAAY,EAC7B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAsB,EACjC,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EAAA,QAAA,EACrB,WAAW,EAAE,EAAA,CACL,EACX;SACH;AACH,KAAC,CAAC;IAEF,IAAI,SAAS,EAAE;AACb,QAAA,IAAI,QAAQ,KAAK,OAAO,EAAE;YACxB,OAAOA,GAAA,CAAC,KAAK,EAAA,EAAC,MAAM,EAAE,SAAS,EAAG,QAAA,EAAA,4BAA4B,EAAE,EAAA,CAAS,CAAC;SAC3E;aAAM;AACL,YAAA,OAAOA,IAAC,KAAK,EAAA,EAAA,QAAA,EAAE,4BAA4B,EAAE,GAAS,CAAC;SACxD;KACF;;AAAM,QAAA,OAAO,IAAI,CAAC;AACrB,CAAC;;;;"}
@@ -1,8 +1,8 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx } from 'preact/jsx-runtime';
3
3
  import { c as classNames } from './classNames-4e12b00d.js';
4
- import { u as useUser } from './useUser-a15426fc.js';
5
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
4
+ import { u as useUser } from './useUser-bca8cf2d.js';
5
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
6
6
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
7
7
  import { ProgressBarRedwoodTheme } from './UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme.js';
8
8
  import { B as BarTrack, a as BarValue } from './LinearMeter-268f7b2f.js';
@@ -55,4 +55,4 @@ const DeterminateProgressBar = ({ value = 0, max = 100, id, width, edge = 'none'
55
55
  };
56
56
 
57
57
  export { ProgressBar as P };
58
- //# sourceMappingURL=ProgressBar-2565d814.js.map
58
+ //# sourceMappingURL=ProgressBar-d647bba4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar-2565d814.js","sources":["../../src/UNSAFE_ProgressBar/ProgressBar.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { BarTrack, BarValue } from '../PRIVATE_Meter';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { ProgressBarStyles, ProgressBarVariantOptions } from './themes/ProgressBarStyles.css';\nimport { ProgressBarRedwoodTheme } from './themes/redwood/ProgressBarTheme';\n\ntype ariaPropsType = ComponentProps<typeof BarTrack>['ariaProps'];\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressBarProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress bar. If the progress bar is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressBar\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress bar. If the value is 'indeterminate', an indeterminate progress bar will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * Whether the progress bar is positioned at the top edge of a container or not.\n * If set to 'top', the curved borders will be removed.\n */\n edge?: 'none' | 'top';\n\n /**\n * The maximum value of the progress bar.\n */\n max?: number;\n /**\n * The width of the progress bar. This will use the CSS lengths styling.\n */\n // TODO: use the dimensions work the Jeanne is doing JET-49961\n width?: string;\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n};\n/**\n * A progress bar allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressBar({ value, max, ...otherProps }: ProgressBarProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressBar {...otherProps} />\n ) : (\n <DeterminateProgressBar value={value} max={max} {...otherProps} />\n );\n}\n\ntype IndeterminateProps = Omit<ProgressBarProps, 'value' | 'max'>;\n\nconst IndeterminateProgressBar = ({ id, width, edge = 'none', ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: {\n valueStyle,\n indeterminate,\n animationStyleLTR,\n animationStyleRTL,\n highContrastValueStyle,\n trackBorderEdgeNone,\n trackBorderEdgeTop\n }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const { direction, forcedColors } = useUser();\n const barValueClasses = classNames([\n valueStyle,\n indeterminate,\n direction === 'rtl' ? animationStyleRTL : animationStyleLTR,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n role: 'progressbar'\n };\n const trackBorderClass =\n forcedColors === 'active'\n ? undefined\n : edge === 'none'\n ? trackBorderEdgeNone\n : trackBorderEdgeTop;\n return (\n <BarTrack\n id={id}\n ariaProps={ariaProps}\n class={classNames([classes, trackBorderClass])}\n length={width}>\n <BarValue class={barValueClasses} />\n </BarTrack>\n );\n};\n\ntype DeterminateProps = Omit<ProgressBarProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressBar = ({\n value = 0,\n max = 100,\n id,\n width,\n edge = 'none'\n}: DeterminateProps) => {\n const { forcedColors } = useUser();\n const {\n classes,\n styles: { valueStyle, highContrastValueStyle, trackBorderEdgeNone, trackBorderEdgeTop }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const barValueClasses = classNames([\n valueStyle,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n\n const percentage = `${Math.min(Math.max(0, value / max), 1) * 100}%`;\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n return (\n <BarTrack\n ariaProps={ariaProps}\n id={id}\n length={width}\n class={classNames([classes, edge === 'none' ? trackBorderEdgeNone : trackBorderEdgeTop])}>\n <BarValue class={barValueClasses} length={percentage} />\n </BarTrack>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;;;;AAsDA;;AAEG;AACG,SAAU,WAAW,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,UAAU,EAAoB,EAAA;AACzE,IAAA,OAAO,KAAK,KAAK,eAAe,IAC9BA,GAAA,CAAC,wBAAwB,EAAA,EAAA,GAAK,UAAU,EAAA,CAAI,KAE5CA,GAAC,CAAA,sBAAsB,EAAC,EAAA,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,GAAM,UAAU,EAAA,CAAI,CACnE,CAAC;AACJ,CAAC;AAID,MAAM,wBAAwB,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,GAAG,MAAM,EAAE,GAAG,KAAK,EAAsB,KAAI;IAC9F,MAAM,EACJ,OAAO,EACP,MAAM,EAAE,EACN,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EACnB,EACF,GAAG,iBAAiB,CAA+C,uBAAuB,EAAE;QAC3F,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS;AACzC,KAAA,CAAC,CAAC;IAEH,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO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M,GAAG,IAAI,GAAG,SAAS;AACzC,KAAA,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,UAAU,CAAC;QACjC,UAAU;QACV,YAAY,KAAK,QAAQ,GAAG,sBAAsB,GAAG,EAAE;AACxD,KAAA,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,CAAG,EAAA,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAA,CAAA,CAAG,CAAC;IACrE,MAAM,SAAS,GAAkB,EAAE,CAAC;AACpC,IAAA,SAAS,CAAC,eAAe,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,SAAS,CAAC;AAC3D,IAAA,SAAS,CAAC,eAAe,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,GAAG,GAAG,SAAS,CAAC;AAC7D,IAAA,SAAS,CAAC,eAAe,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC;AAC/D,IAAA,SAAS,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC;IAClC,QACEA,IAAC,QAAQ,EAAA,EACP,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,IAAI,KAAK,MAAM,GAAG,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,EACxF,QAAA,EAAAA,GAAA,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAA,CAAI,EAC/C,CAAA,EACX;AACJ,CAAC;;;;"}
1
+ {"version":3,"file":"ProgressBar-d647bba4.js","sources":["../../src/UNSAFE_ProgressBar/ProgressBar.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { BarTrack, BarValue } from '../PRIVATE_Meter';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { ProgressBarStyles, ProgressBarVariantOptions } from './themes/ProgressBarStyles.css';\nimport { ProgressBarRedwoodTheme } from './themes/redwood/ProgressBarTheme';\n\ntype ariaPropsType = ComponentProps<typeof BarTrack>['ariaProps'];\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressBarProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress bar. If the progress bar is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressBar\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress bar. If the value is 'indeterminate', an indeterminate progress bar will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * Whether the progress bar is positioned at the top edge of a container or not.\n * If set to 'top', the curved borders will be removed.\n */\n edge?: 'none' | 'top';\n\n /**\n * The maximum value of the progress bar.\n */\n max?: number;\n /**\n * The width of the progress bar. This will use the CSS lengths styling.\n */\n // TODO: use the dimensions work the Jeanne is doing JET-49961\n width?: string;\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n};\n/**\n * A progress bar allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressBar({ value, max, ...otherProps }: ProgressBarProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressBar {...otherProps} />\n ) : (\n <DeterminateProgressBar value={value} max={max} {...otherProps} />\n );\n}\n\ntype IndeterminateProps = Omit<ProgressBarProps, 'value' | 'max'>;\n\nconst IndeterminateProgressBar = ({ id, width, edge = 'none', ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: {\n valueStyle,\n indeterminate,\n animationStyleLTR,\n animationStyleRTL,\n highContrastValueStyle,\n trackBorderEdgeNone,\n trackBorderEdgeTop\n }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const { direction, forcedColors } = useUser();\n const barValueClasses = classNames([\n valueStyle,\n indeterminate,\n direction === 'rtl' ? animationStyleRTL : animationStyleLTR,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n role: 'progressbar'\n };\n const trackBorderClass =\n forcedColors === 'active'\n ? undefined\n : edge === 'none'\n ? trackBorderEdgeNone\n : trackBorderEdgeTop;\n return (\n <BarTrack\n id={id}\n ariaProps={ariaProps}\n class={classNames([classes, trackBorderClass])}\n length={width}>\n <BarValue class={barValueClasses} />\n </BarTrack>\n );\n};\n\ntype DeterminateProps = Omit<ProgressBarProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressBar = ({\n value = 0,\n max = 100,\n id,\n width,\n edge = 'none'\n}: DeterminateProps) => {\n const { forcedColors } = useUser();\n const {\n classes,\n styles: { valueStyle, highContrastValueStyle, trackBorderEdgeNone, trackBorderEdgeTop }\n } = useComponentTheme<ProgressBarVariantOptions, ProgressBarStyles>(ProgressBarRedwoodTheme, {\n edge: edge === 'none' ? edge : undefined\n });\n\n const barValueClasses = classNames([\n valueStyle,\n forcedColors === 'active' ? highContrastValueStyle : ''\n ]);\n\n const percentage = `${Math.min(Math.max(0, value / max), 1) * 100}%`;\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n return (\n <BarTrack\n ariaProps={ariaProps}\n id={id}\n length={width}\n class={classNames([classes, edge === 'none' ? trackBorderEdgeNone : trackBorderEdgeTop])}>\n <BarValue class={barValueClasses} length={percentage} />\n </BarTrack>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;;;;AAsDA;;AAEG;AACG,SAAU,WAAW,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,UAAU,EAAoB,EAAA;AACzE,IAAA,OAAO,KAAK,KAAK,eAAe,IAC9BA,GAAA,CAAC,wBAAwB,EAAA,EAAA,GAAK,UAAU,EAAA,CAAI,KAE5CA,GAAC,CAAA,sBAAsB,EAAC,EAAA,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,GAAM,UAAU,EAAA,CAAI,CACnE,CAAC;AACJ,CAAC;AAID,MAAM,wBAAwB,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,GAAG,MAAM,EAAE,GAAG,KAAK,EAAsB,KAAI;IAC9F,MAAM,EACJ,OAAO,EACP,MAAM,EAAE,EACN,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EACnB,EACF,GAAG,iBAAiB,CAA+C,uBAAuB,EAAE;QAC3F,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS;AACzC,KAAA,CAAC,CAAC;IAEH,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC;IAC9C,MAAM,eAAe,GAAG,UAAU,CAAC;QACjC,UAAU;QACV,aAAa;QACb,SAAS,KAAK,KAAK,GAAG,iBAAiB,GAAG,iBAAiB;QAC3D,YAAY,KAAK,QAAQ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AACxD,KAAA,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,CAAG,EAAA,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAA,CAAA,CAAG,CAAC;IACrE,MAAM,SAAS,GAAkB,EAAE,CAAC;AACpC,IAAA,SAAS,CAAC,eAAe,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,SAAS,CAAC;AAC3D,IAAA,SAAS,CAAC,eAAe,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,GAAG,GAAG,SAAS,CAAC;AAC7D,IAAA,SAAS,CAAC,eAAe,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC;AAC/D,IAAA,SAAS,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC;IAClC,QACEA,IAAC,QAAQ,EAAA,EACP,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,IAAI,KAAK,MAAM,GAAG,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,EACxF,QAAA,EAAAA,GAAA,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAA,CAAI,EAC/C,CAAA,EACX;AACJ,CAAC;;;;"}
@@ -1,3 +1,3 @@
1
- .ProgressBarVariants_multiVariantStyles_edge_none__5ab1t30 {
1
+ .ProgressBarVariants_multiVariantStyles_edge_none__1nfhaj90 {
2
2
  border-radius: var(--borderRadius__irxz4j1);
3
3
  }
@@ -1,3 +1,3 @@
1
- .ProgressBarVariants_multiVariantStyles_edge_none__1nfhaj90 {
1
+ .ProgressBarVariants_multiVariantStyles_edge_none__5ab1t30 {
2
2
  border-radius: var(--borderRadius__irxz4j1);
3
3
  }
@@ -4,15 +4,15 @@ import { Fragment } from 'preact';
4
4
  import { B as BaseButton } from './BaseButton-5a3335d9.js';
5
5
  import { P as ProgressButtonLabelLayout } from './ProgressButtonLabelLayout-6cf150e0.js';
6
6
  import { forwardRef } from 'preact/compat';
7
- import { u as useTooltip } from './useTooltip-227887ea.js';
7
+ import { u as useTooltip } from './useTooltip-e258ea41.js';
8
8
  import 'preact/hooks';
9
9
  import { m as mergeProps } from './mergeProps-88ea8306.js';
10
10
  import './logger-c92f309c.js';
11
- import './LayerHost-15b42a3e.js';
11
+ import './LayerHost-7a2149f5.js';
12
12
  import './TooltipContentStyles.styles.css';
13
13
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
14
14
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
15
- import './tooltipUtils-1131b3ca.js';
15
+ import './tooltipUtils-06c93436.js';
16
16
  import { p as processGlobals } from './buttonUtils-be059939.js';
17
17
  import bundle from './resources/nls/en/bundle.js';
18
18
 
@@ -2,10 +2,10 @@
2
2
  import { jsx, jsxs } from 'preact/jsx-runtime';
3
3
  import { u as useProgressButtonLabelLayoutTheme } from './useProgressButtonLabelLayoutTheme-7ce1cf07.js';
4
4
  import { c as classNames } from './classNames-4e12b00d.js';
5
- import { P as ProgressCircle } from './ProgressCircle-c7f945c0.js';
5
+ import { P as ProgressCircle } from './ProgressCircle-13dc0e4f.js';
6
6
  import { w as withThemeProps } from './withThemeProps-6545df54.js';
7
- import { V as View } from './View-63980a9b.js';
8
- import { u as useColorScheme } from './useColorScheme-d8a80e2b.js';
7
+ import { V as View } from './View-a8a64eb1.js';
8
+ import { u as useColorScheme } from './useColorScheme-f69d53b5.js';
9
9
  import { useState } from 'preact/hooks';
10
10
  import { H as HiddenAccessible } from './HiddenAccessible-61197e7c.js';
11
11
 
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'preact/jsx-runtime';
3
3
  import { c as classNames } from './classNames-4e12b00d.js';
4
4
  import './meterUtils-a917450b.js';
5
5
  import { g as getProgressClipPath } from './circleUtils-90dae0a2.js';
6
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
6
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
7
7
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
8
8
  import { ProgressCircleRedwoodTheme } from './UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme.js';
9
9
  import { C as CircleWrapper, a as CircleInner } from './CircularMeter-f2c0ae34.js';
@@ -41,4 +41,4 @@ const DeterminateProgressCircle = ({ value = 0, max = 100, id, size }) => {
41
41
  };
42
42
 
43
43
  export { ProgressCircle as P };
44
- //# sourceMappingURL=ProgressCircle-c7f945c0.js.map
44
+ //# sourceMappingURL=ProgressCircle-13dc0e4f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCircle-c7f945c0.js","sources":["../../src/UNSAFE_ProgressCircle/ProgressCircle.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, ComponentProps } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { CircleWrapper, CircleInner } from '../PRIVATE_Meter';\nimport { getProgressClipPath } from '../utils/PRIVATE_meterUtils';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport {\n ProgressCircleStyles,\n ProgressCircleVariantOptions\n} from './themes/ProgressCircleStyles.css';\nimport { ProgressCircleRedwoodTheme } from './themes/redwood/ProgressCircleTheme';\ntype ariaPropsType = ComponentProps<typeof CircleWrapper>['ariaProps'];\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressCircleProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress circle. If the progress circle is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressCircle\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress circle. If the value is 'indeterminate', an indeterminate progress circle will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * The maximum value of the progress circle.\n */\n max?: number;\n /**\n * The size of the progress circle. The default value of this property is theme driven.\n */\n size?: 'sm' | 'md' | 'lg';\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n /**\n * Specifies the children.\n */\n children?: ComponentChildren;\n};\n/**\n * A progress circle allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressCircle({ value, max, ...otherProps }: ProgressCircleProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressCircle {...otherProps}></IndeterminateProgressCircle>\n ) : (\n <DeterminateProgressCircle value={value} max={max} {...otherProps}></DeterminateProgressCircle>\n );\n}\n\ntype IndeterminateProps = Omit<ProgressCircleProps, 'value' | 'max'>;\n\nconst IndeterminateProgressCircle = ({ id, size, ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: { indeterminate }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size,\n type: 'indeterminate'\n }\n );\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n role: 'progressbar'\n };\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={indeterminate} />\n </CircleWrapper>\n );\n};\n\ntype DeterminateProps = Omit<ProgressCircleProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressCircle = ({ value = 0, max = 100, id, size }: DeterminateProps) => {\n const {\n classes,\n styles: { determinate, track, valueStyle }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size\n }\n );\n\n const percentage = Math.min(Math.max(0, value / max), 1);\n const clipPath = getProgressClipPath(percentage);\n\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={classNames([determinate, track])} />\n <CircleInner class={classNames([determinate, valueStyle])} clipPath={clipPath} />\n </CircleWrapper>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;AAoDA;;AAEG;AACG,SAAU,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,UAAU,EAAuB,EAAA;AAC/E,IAAA,OAAO,KAAK,KAAK,eAAe,IAC9BA,GAAA,CAAC,2BAA2B,EAAA,EAAA,GAAK,UAAU,EAAA,CAAgC,KAE3EA,GAAC,CAAA,yBAAyB,EAAC,EAAA,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,GAAM,UAAU,EAAA,CAA8B,CAChG,CAAC;AACJ,CAAC;AAID,MAAM,2BAA2B,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,EAAsB,KAAI;AACjF,IAAA,MAAM,EACJ,OAAO,EACP,MAAM,EAAE,EAAE,aAAa,EAAE,EAC1B,GAAG,iBAAiB,CACnB,0BAA0B,EAC1B;QACE,IAAI;AACJ,QAAA,IAAI,EAAE,eAAe;AACtB,KAAA,CACF,CAAC;AAEF,IAAA,MAAM,YAAY,GAAG,oBAAoB,CAAa,0BAA0B,CAAC,CAAC;AAClF,IAAA,MAAM,SAAS,GAAkB;QAC/B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,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAA,QAAA,EAAA,CACzDD,GAAC,CAAA,WAAW,IAAC,KAAK,EAAE,UAAU,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,EAAA,CAAI,EACxDA,GAAA,CAAC,WAAW,EAAC,EAAA,KAAK,EAAE,UAAU,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,CACnE,EAAA,CAAA,EAChB;AACJ,CAAC;;;;"}
1
+ {"version":3,"file":"ProgressCircle-13dc0e4f.js","sources":["../../src/UNSAFE_ProgressCircle/ProgressCircle.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, ComponentProps } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { CircleWrapper, CircleInner } from '../PRIVATE_Meter';\nimport { getProgressClipPath } from '../utils/PRIVATE_meterUtils';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport {\n ProgressCircleStyles,\n ProgressCircleVariantOptions\n} from './themes/ProgressCircleStyles.css';\nimport { ProgressCircleRedwoodTheme } from './themes/redwood/ProgressCircleTheme';\ntype ariaPropsType = ComponentProps<typeof CircleWrapper>['ariaProps'];\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'class'>;\n\ntype ProgressCircleProps = IntrinsicProps & {\n /**\n * Specifies the id of the progress circle. If the progress circle is being used to describe the loading process of a particular region\n * of the page, then the aria-describedby attribute of the region must point to the id of the ProgressCircle\n */\n id?: HTMLAttributesSignalExcluded<HTMLDivElement>['id'];\n /**\n * The value of the progress circle. If the value is 'indeterminate', an indeterminate progress circle will be shown.\n */\n value?: 'indeterminate' | number;\n\n /**\n * The maximum value of the progress circle.\n */\n max?: number;\n /**\n * The size of the progress circle. The default value of this property is theme driven.\n */\n size?: 'sm' | 'md' | 'lg';\n\n /**\n * A label to be used for accessibility purposes when value is set to 'indeterminate'. This will be used for the aria-valuetext of the DOM element.\n */\n 'aria-valuetext'?: string;\n /**\n * Specifies the children.\n */\n children?: ComponentChildren;\n};\n/**\n * A progress circle allows the user to visualize the progression of an extended computer operation.\n */\nexport function ProgressCircle({ value, max, ...otherProps }: ProgressCircleProps) {\n return value === 'indeterminate' ? (\n <IndeterminateProgressCircle {...otherProps}></IndeterminateProgressCircle>\n ) : (\n <DeterminateProgressCircle value={value} max={max} {...otherProps}></DeterminateProgressCircle>\n );\n}\n\ntype IndeterminateProps = Omit<ProgressCircleProps, 'value' | 'max'>;\n\nconst IndeterminateProgressCircle = ({ id, size, ...props }: IndeterminateProps) => {\n const {\n classes,\n styles: { indeterminate }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size,\n type: 'indeterminate'\n }\n );\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const ariaProps: ariaPropsType = {\n 'aria-valuetext': props['aria-valuetext'] || translations.progressIndeterminate(),\n role: 'progressbar'\n };\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={indeterminate} />\n </CircleWrapper>\n );\n};\n\ntype DeterminateProps = Omit<ProgressCircleProps, 'aria-valuetext'> & {\n value?: number;\n};\n\nconst DeterminateProgressCircle = ({ value = 0, max = 100, id, size }: DeterminateProps) => {\n const {\n classes,\n styles: { determinate, track, valueStyle }\n } = useComponentTheme<ProgressCircleVariantOptions, ProgressCircleStyles>(\n ProgressCircleRedwoodTheme,\n {\n size\n }\n );\n\n const percentage = Math.min(Math.max(0, value / max), 1);\n const clipPath = getProgressClipPath(percentage);\n\n const ariaProps: ariaPropsType = {};\n ariaProps['aria-valuemin'] = value != null ? 0 : undefined;\n ariaProps['aria-valuemax'] = value != null ? max : undefined;\n ariaProps['aria-valuenow'] = value != null ? value : undefined;\n ariaProps['role'] = 'progressbar';\n return (\n <CircleWrapper id={id} ariaProps={ariaProps} class={classes}>\n <CircleInner class={classNames([determinate, track])} />\n <CircleInner class={classNames([determinate, valueStyle])} clipPath={clipPath} />\n </CircleWrapper>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;AAoDA;;AAEG;AACG,SAAU,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,UAAU,EAAuB,EAAA;AAC/E,IAAA,OAAO,KAAK,KAAK,eAAe,IAC9BA,GAAA,CAAC,2BAA2B,EAAA,EAAA,GAAK,UAAU,EAAA,CAAgC,KAE3EA,GAAC,CAAA,yBAAyB,EAAC,EAAA,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,GAAM,UAAU,EAAA,CAA8B,CAChG,CAAC;AACJ,CAAC;AAID,MAAM,2BAA2B,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,EAAsB,KAAI;AACjF,IAAA,MAAM,EACJ,OAAO,EACP,MAAM,EAAE,EAAE,aAAa,EAAE,EAC1B,GAAG,iBAAiB,CACnB,0BAA0B,EAC1B;QACE,IAAI;AACJ,QAAA,IAAI,EAAE,eAAe;AACtB,KAAA,CACF,CAAC;AAEF,IAAA,MAAM,YAAY,GAAG,oBAAoB,CAAa,0BAA0B,CAAC,CAAC;AAClF,IAAA,MAAM,SAAS,GAAkB;QAC/B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,YAAY,CAAC,qBAAqB,EAAE;AACjF,QAAA,IAAI,EAAE,aAAa;KACpB,CAAC;IACF,QACEA,GAAC,CAAA,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,WAAW,EAAE,KAAK,CAAC,CAAC,EAAA,CAAI,EACxDA,GAAA,CAAC,WAAW,EAAC,EAAA,KAAK,EAAE,UAAU,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAA,CAAI,CACnE,EAAA,CAAA,EAChB;AACJ,CAAC;;;;"}
@@ -1,16 +1,16 @@
1
- .ProgressCircleVariants_multiVariantStyles_size_sm__18za6ef0 {
1
+ .ProgressCircleVariants_multiVariantStyles_size_sm__8ngr9h0 {
2
2
  --size__lborgv0: var(--sizes-sm-size__lborgv2);
3
3
  --trackWidth__lborgv1: var(--sizes-sm-trackWidth__lborgv3);
4
4
  }
5
- .ProgressCircleVariants_multiVariantStyles_size_md__18za6ef1 {
5
+ .ProgressCircleVariants_multiVariantStyles_size_md__8ngr9h1 {
6
6
  --size__lborgv0: var(--sizes-md-size__lborgv4);
7
7
  --trackWidth__lborgv1: var(--sizes-md-trackWidth__lborgv5);
8
8
  }
9
- .ProgressCircleVariants_multiVariantStyles_size_lg__18za6ef2 {
9
+ .ProgressCircleVariants_multiVariantStyles_size_lg__8ngr9h2 {
10
10
  --size__lborgv0: var(--sizes-lg-size__lborgv6);
11
11
  --trackWidth__lborgv1: var(--sizes-lg-trackWidth__lborgv7);
12
12
  }
13
- .ProgressCircleVariants_multiVariantStyles_type_indeterminate__18za6ef3 {
13
+ .ProgressCircleVariants_multiVariantStyles_type_indeterminate__8ngr9h3 {
14
14
  animation-name: ProgressCircleStyles_circleRotation__o65man0;
15
15
  animation-duration: 1s;
16
16
  animation-timing-function: linear;
@@ -1,16 +1,16 @@
1
- .ProgressCircleVariants_multiVariantStyles_size_sm__8ngr9h0 {
1
+ .ProgressCircleVariants_multiVariantStyles_size_sm__18za6ef0 {
2
2
  --size__lborgv0: var(--sizes-sm-size__lborgv2);
3
3
  --trackWidth__lborgv1: var(--sizes-sm-trackWidth__lborgv3);
4
4
  }
5
- .ProgressCircleVariants_multiVariantStyles_size_md__8ngr9h1 {
5
+ .ProgressCircleVariants_multiVariantStyles_size_md__18za6ef1 {
6
6
  --size__lborgv0: var(--sizes-md-size__lborgv4);
7
7
  --trackWidth__lborgv1: var(--sizes-md-trackWidth__lborgv5);
8
8
  }
9
- .ProgressCircleVariants_multiVariantStyles_size_lg__8ngr9h2 {
9
+ .ProgressCircleVariants_multiVariantStyles_size_lg__18za6ef2 {
10
10
  --size__lborgv0: var(--sizes-lg-size__lborgv6);
11
11
  --trackWidth__lborgv1: var(--sizes-lg-trackWidth__lborgv7);
12
12
  }
13
- .ProgressCircleVariants_multiVariantStyles_type_indeterminate__8ngr9h3 {
13
+ .ProgressCircleVariants_multiVariantStyles_type_indeterminate__18za6ef3 {
14
14
  animation-name: ProgressCircleStyles_circleRotation__o65man0;
15
15
  animation-duration: 1s;
16
16
  animation-timing-function: linear;
@@ -1,3 +1,3 @@
1
- .RadioIconVariants_multiVariantStyles_iconSize_4xUnits__vfef778 {
1
+ .RadioIconVariants_multiVariantStyles_iconSize_4xUnits__ykyxsd8 {
2
2
  --iconSize__bwcdcl0: calc(4 * var(--oj-c-EXPERIMENTAL-DO-NOT-USE-size-units, 0.25rem));
3
3
  }
@@ -1,3 +1,3 @@
1
- .RadioIconVariants_multiVariantStyles_iconSize_4xUnits__ykyxsd8 {
1
+ .RadioIconVariants_multiVariantStyles_iconSize_4xUnits__vfef778 {
2
2
  --iconSize__bwcdcl0: calc(4 * var(--oj-c-EXPERIMENTAL-DO-NOT-USE-size-units, 0.25rem));
3
3
  }
@@ -10,7 +10,7 @@ import { u as useId } from './useId-03dbfdf0.js';
10
10
  import './TabbableModeContext-7d8ad946.js';
11
11
  import { u as useTabbableMode } from './useTabbableMode-a3a351d0.js';
12
12
  import { u as useInteractionStyle } from './useInteractionStyle-3d1f9e21.js';
13
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
13
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
14
14
  import { u as useCheckboxRadioContext } from './CheckboxRadioContext-fe425383.js';
15
15
  import { S as SvgCheck } from './Check-ee5ae8f6.js';
16
16
  import { S as SvgRadiobuttonOff } from './RadiobuttonOff-fef8ae8e.js';
@@ -21,17 +21,17 @@ import './UserAssistanceStyles.styles.css';
21
21
  import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
22
22
  import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
23
23
  import 'preact/hooks';
24
- import './Flex-8696b27b.js';
24
+ import './Flex-2d51e914.js';
25
25
  import './MessageBannerStyles.styles.css';
26
26
  import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
27
27
  import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
28
28
  import 'preact';
29
- import './LayerHost-15b42a3e.js';
29
+ import './LayerHost-7a2149f5.js';
30
30
  import 'preact/compat';
31
31
  import './TooltipContentStyles.styles.css';
32
32
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
33
33
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
34
- import './tooltipUtils-1131b3ca.js';
34
+ import './tooltipUtils-06c93436.js';
35
35
  import './IconStyle.styles.css';
36
36
  import './IconButton-451a225c.js';
37
37
  import './MessageStyles.styles.css';
@@ -43,12 +43,12 @@ import './ComponentMessageStyles.styles.css';
43
43
  import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.styles.css';
44
44
  import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css.js';
45
45
  import './InputGroupContext-20bdbd6e.js';
46
- import './Popup-8becd87a.js';
46
+ import './Popup-7cc4028b.js';
47
47
  import './UNSAFE_Separator/themes/SeparatorStyles.css.js';
48
48
  import './LabelStyles.styles.css';
49
49
  import './UNSAFE_Label/themes/redwood/LabelBaseTheme.styles.css';
50
50
  import './UNSAFE_Label/themes/redwood/LabelVariants.css.js';
51
- import { I as IconUserAssistance } from './IconUserAssistance-dd56b812.js';
51
+ import { I as IconUserAssistance } from './IconUserAssistance-7cfd1ed2.js';
52
52
  import { radioIconVars } from './UNSAFE_RadioItem/themes/RadioIconContract.css.js';
53
53
  import { RadioIconRedwoodTheme } from './UNSAFE_RadioItem/themes/redwood/RadioIconTheme.js';
54
54
  import { RadioRedwoodTheme } from './UNSAFE_RadioItem/themes/redwood/RadioTheme.js';
@@ -5,23 +5,23 @@ import { useRef, useState, useEffect } from 'preact/hooks';
5
5
  import { c as classNames } from './classNames-4e12b00d.js';
6
6
  import { ratingGaugeVars } from './UNSAFE_RatingGauge/themes/RatingGaugeContract.css.js';
7
7
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
8
- import { u as useUser } from './useUser-a15426fc.js';
8
+ import { u as useUser } from './useUser-bca8cf2d.js';
9
9
  import { a as assignInlineVars } from './vanilla-extract-dynamic.esm-2955d60a.js';
10
10
  import { RatingGaugeRedwoodTheme } from './UNSAFE_RatingGauge/themes/redwood/RatingGaugeTheme.js';
11
- import { u as useKeyboardEvents } from './useKeyboardEvents-5c311766.js';
11
+ import { u as useKeyboardEvents } from './useKeyboardEvents-b02e5fda.js';
12
12
  import 'preact/compat';
13
- import './LayerHost-15b42a3e.js';
13
+ import './LayerHost-7a2149f5.js';
14
14
  import './LayerStyles.styles.css';
15
- import './Floating-f9bbd276.js';
15
+ import './Floating-aebc0f85.js';
16
16
  import './useDatatip.styles.css';
17
17
  import './datatipUtils-5cb22909.js';
18
18
  import { f as findThreshold, v as validateRange, g as getMeterAriaProps, d as getThresholdColorFromValue } from './meterUtils-a917450b.js';
19
- import { u as useDatatip } from './useDatatip-73566627.js';
20
- import { u as useTooltipControlled } from './useTooltipControlled-7ccb5919.js';
19
+ import { u as useDatatip } from './useDatatip-01d7ddeb.js';
20
+ import { u as useTooltipControlled } from './useTooltipControlled-50d5dac9.js';
21
21
  import { m as mergeProps } from './mergeProps-88ea8306.js';
22
22
  import './TabbableModeContext-7d8ad946.js';
23
23
  import { u as useTabbableMode } from './useTabbableMode-a3a351d0.js';
24
- import { u as useTestId } from './useTestId-3bc3958c.js';
24
+ import { u as useTestId } from './useTestId-af32a9eb.js';
25
25
 
26
26
  function getValue(pageX, max, step, dimensionsRef, isRtl) {
27
27
  const dimensions = dimensionsRef.current;
@@ -12,7 +12,7 @@ import './FormFieldContext-68eb5946.js';
12
12
  import { u as useFormFieldContext } from './useFormFieldContext-626574fd.js';
13
13
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
14
14
  import { ReadonlyTextFieldInputRedwoodTheme } from './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme.js';
15
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
15
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
16
16
 
17
17
  /**
18
18
  * Merge multiple ids into a space-separated list
@@ -4,7 +4,7 @@ import { u as useNavigationListContext, B as BaseNavigationListItem } from './Ba
4
4
  import { S as SvgClose } from './Close-3c7298cf.js';
5
5
  import { useCallback } from 'preact/hooks';
6
6
  import { u as useHover } from './useHover-19340c22.js';
7
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
7
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
8
8
  import { E as EmbeddedIconButton } from './EmbeddedIconButton-c95e2e11.js';
9
9
 
10
10
  function RemovableNavigationListItem({ itemKey, label, badge, metadata, severity }) {
@@ -3,12 +3,12 @@ import { jsx } from 'preact/jsx-runtime';
3
3
  import { useCallback } from 'preact/hooks';
4
4
  import { u as useHover } from './useHover-19340c22.js';
5
5
  import { S as SvgClose } from './Close-3c7298cf.js';
6
- import { F as Flex } from './Flex-8696b27b.js';
6
+ import { F as Flex } from './Flex-2d51e914.js';
7
7
  import { m as mergeInterpolations } from './mergeInterpolations-e2db2a66.js';
8
8
  import { f as flexitemInterpolations } from './flexitem-7b7f7920.js';
9
9
  import { u as useTabBarContext } from './useTabBarContext-0071d2a7.js';
10
10
  import { B as BaseTabBarItem } from './TabBarItem-ba695c75.js';
11
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
11
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
12
12
  import { E as EmbeddedIconButton } from './EmbeddedIconButton-c95e2e11.js';
13
13
 
14
14
  function RemovableTabBarItem({ itemKey, label, icon, badge, metadata, severity, 'aria-controls': ariaControls }) {
@@ -3,12 +3,12 @@ import { jsxs, Fragment, jsx } from 'preact/jsx-runtime';
3
3
  import { toChildArray } from 'preact';
4
4
  import { useRef, useCallback, useState } from 'preact/hooks';
5
5
  import { H as HiddenAccessible } from './HiddenAccessible-61197e7c.js';
6
- import { L as LiveRegion } from './LiveRegion-cb4f8a54.js';
6
+ import { L as LiveRegion } from './LiveRegion-5302331c.js';
7
7
  import { T as TabBar } from './TabBar-90cea652.js';
8
8
  import { m as mergeInterpolations } from './mergeInterpolations-e2db2a66.js';
9
9
  import { f as flexitemInterpolations } from './flexitem-7b7f7920.js';
10
10
  import { b as getKey } from './collectionUtils-d72c7c40.js';
11
- import './LayerHost-15b42a3e.js';
11
+ import './LayerHost-7a2149f5.js';
12
12
  import 'preact/compat';
13
13
  import { a as useReorderableItem, u as useReorderable } from './useReorderableItem-c715c504.js';
14
14
  import { R as ReorderableContext } from './useReorderableContext-67ba58f7.js';
@@ -2,7 +2,7 @@
2
2
  import { jsx } from 'preact/jsx-runtime';
3
3
  import { S as SvgViewHide } from './ViewHide-6060fa41.js';
4
4
  import { S as SvgView } from './View-e4ef9547.js';
5
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
5
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
6
6
  import { I as IconSwitchButton } from './IconSwitchButton-5ff7b0fe.js';
7
7
 
8
8
  /**
@@ -1,16 +1,16 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsxs, jsx } from 'preact/jsx-runtime';
3
3
  import { useRef } from 'preact/hooks';
4
- import { u as useVisEvent } from './useVisEvents-ff4204b5.js';
4
+ import { u as useVisEvent } from './useVisEvents-cd3616aa.js';
5
5
  import { m as mergeProps } from './mergeProps-88ea8306.js';
6
6
  import { g as getRandomId } from './layoutUtils-2374ab3e.js';
7
7
  import { l as legendVars, g as getLegendTextStyle, u as useLegendLayout, a as getItemInfo, i as isEqualItem, j as getKeyUpHandler, b as getDatatipText, c as useLegendDatatip, d as getAriaProps, e as useLegendContextMenu, f as getGridNums, L as LegendText, B as BaseLegend, h as getIsLegendItemActionable } from './useLegendContextMenu-926aca66.js';
8
8
  import { u as useItemFocus } from './useItemFocus-c12e2756.js';
9
- import { F as Flex } from './Flex-8696b27b.js';
9
+ import { F as Flex } from './Flex-2d51e914.js';
10
10
  import { styles } from './UNSAFE_Legend/themes/LegendStyles.css.js';
11
- import { u as useCssVars } from './useCssVars-8e6932f8.js';
11
+ import { u as useCssVars } from './useCssVars-48595cd2.js';
12
12
  import { c as classNames } from './classNames-4e12b00d.js';
13
- import { u as useTestId } from './useTestId-3bc3958c.js';
13
+ import { u as useTestId } from './useTestId-af32a9eb.js';
14
14
  import { u as useVisTouchResponse } from './useVisTouchResponse-e9ca4766.js';
15
15
  import { m as merge } from './stringUtils-16f617bc.js';
16
16
 
@@ -1,12 +1,12 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx, jsxs } from 'preact/jsx-runtime';
3
3
  import { useState, useCallback, useRef } from 'preact/hooks';
4
- import { D as Dropdown } from './Dropdown-f45f823c.js';
5
- import { F as Flex } from './Flex-8696b27b.js';
4
+ import { D as Dropdown } from './Dropdown-d017dd0a.js';
5
+ import { F as Flex } from './Flex-2d51e914.js';
6
6
  import { F as FocusTrap } from './FocusTrap-552ebe63.js';
7
7
  import { K as KEYS } from './keyboardUtils-4db21770.js';
8
- import { u as useTestId } from './useTestId-3bc3958c.js';
9
- import { V as View } from './View-63980a9b.js';
8
+ import { u as useTestId } from './useTestId-af32a9eb.js';
9
+ import { V as View } from './View-a8a64eb1.js';
10
10
 
11
11
  const DEFAULT_PLACEMENT = 'bottom-start';
12
12
  /**
@@ -61,4 +61,4 @@ const SectionedContent = ({ 'aria-label': ariaLabel, contentRef: propRef, gap, f
61
61
  };
62
62
 
63
63
  export { StickyPositioningDropdown as S, SectionedContent as a };
64
- //# sourceMappingURL=SectionedContent-237bf539.js.map
64
+ //# sourceMappingURL=SectionedContent-7e36073f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionedContent-237bf539.js","sources":["../../src/PRIVATE_FormControls/StickyPositioningDropdown.tsx","../../src/PRIVATE_FormControls/SectionedContent.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 } from 'preact/hooks';\nimport { useState } from 'preact/hooks';\nimport { Dropdown } from '#UNSAFE_Dropdown';\nimport { PositionData } from '../UNSAFE_Floating';\n\ntype DropdownProps = ComponentProps<typeof Dropdown>;\ntype Props = Pick<\n DropdownProps,\n | 'anchorRef'\n | 'children'\n | 'flipOptions'\n | 'id'\n | 'initialFocus'\n | 'isOpen'\n | 'minWidth'\n | 'offset'\n | 'onClose'\n | 'onPosition'\n | 'sizeOptions'\n>;\n\nconst DEFAULT_PLACEMENT = 'bottom-start';\n\n/**\n * StickyPositioningDropdown is used to display content which supports conditional rendering,\n * or other cases where the size of the content can change and cause the dropdown to rerender\n * in a different placement. This component ensures the repositioning happens only once,\n * until there is a collision, instead of allowing the dropdown to keep trying to\n * move back to its default position on every render.\n */\nconst StickyPositioningDropdown = ({ children, isOpen, onPosition, ...rest }: Props) => {\n const [placement, setPlacement] = useState<DropdownProps['placement']>(DEFAULT_PLACEMENT);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n\n // reset the placement to the default when the dropdown closes, not opens, so that it doesn't\n // initially open in the previous position and then move to the default position on the\n // rerender after the state is updated\n if (!isOpen) {\n setPlacement(DEFAULT_PLACEMENT);\n }\n }\n const handlePosition = useCallback(\n (positionData: PositionData) => {\n // update the placement so that the dropdown stays where it is until there is a collision,\n // i.e. it no longer fits, instead of letting it try to move back to the default position\n // on every render\n setPlacement(positionData.placement);\n\n // call the callback that was passed in through props\n onPosition?.(positionData);\n },\n [onPosition, setPlacement]\n );\n\n return (\n <Dropdown isOpen={isOpen} onPosition={handlePosition} placement={placement} {...rest}>\n {children}\n </Dropdown>\n );\n};\n\nexport { StickyPositioningDropdown };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChildren, ComponentProps, RefObject } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport {\n AriaAttributesSignalExcluded,\n HTMLAttributesSignalExcluded\n} from '#utils/UNSAFE_attributeUtils';\nimport { Flex } from '#UNSAFE_Flex';\nimport { FocusTrap } from '#UNSAFE_FocusTrap';\nimport { KEYS } from '#utils/PRIVATE_keyboardUtils';\nimport { PaddingProps } from '#utils/UNSAFE_interpolations/padding';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { View } from '#UNSAFE_View';\n\ntype FlexProps = ComponentProps<typeof Flex>;\n\ntype Props = TestIdProps & {\n /**\n * An accessible label that describes the content.\n */\n 'aria-label'?: AriaAttributesSignalExcluded['aria-label'];\n\n /**\n * A ref to the content container.\n */\n contentRef?: RefObject<HTMLDivElement>;\n\n /**\n * Child content in the footer section.\n */\n footer?: ComponentChildren;\n\n /**\n * The spacing between the sections.\n */\n gap?: FlexProps['gap'];\n\n /**\n * True if the tab key should cycle focus within the content.\n * @default false\n */\n hasFocusTrap?: boolean;\n\n /**\n * Child content in the header section.\n */\n header?: ComponentChildren;\n\n /**\n * Child content in the main section.\n */\n main?: ComponentChildren;\n\n /**\n * The padding between the footer or bottom edge and the main content.\n * @default '4x'\n */\n paddingBlockEnd?: PaddingProps['paddingBlockEnd'];\n\n /**\n * The padding between the header or top edge and the main content.\n * @default '4x'\n */\n paddingBlockStart?: PaddingProps['paddingBlockStart'];\n\n /**\n * The padding between the right edge and the main content.\n * @default '4x'\n */\n paddingInlineEnd?: PaddingProps['paddingInlineEnd'];\n\n /**\n * The padding between the left edge and the main content.\n * @default '4x'\n */\n paddingInlineStart?: PaddingProps['paddingInlineStart'];\n\n /**\n * The aria role applied to the content container. For example, if the \"launcher\" element\n * includes aria-haspopup=\"dialog\", then the associated content should have role \"dialog\"\n * and an aria-label that describes it. If the launcher element has role \"combobox\", then\n * it controls an element with a role such as listbox or grid.\n */\n role?: HTMLAttributesSignalExcluded['role'];\n};\n\n/**\n * The SectionedContent component has slots for header, main, and footer content.\n * It is meant to be used in a floating or modal type container and includes\n * conditional support for focus trapping, so that you can tab between components\n * and sections while the container remains open.\n */\nexport const SectionedContent = ({\n 'aria-label': ariaLabel,\n contentRef: propRef,\n gap,\n footer,\n hasFocusTrap = false,\n header,\n main,\n paddingBlockEnd = '4x',\n paddingBlockStart = '4x',\n paddingInlineEnd = '4x',\n paddingInlineStart = '4x',\n role,\n testId\n}: Props) => {\n const testIdProps = useTestId(testId);\n\n const cRef = useRef<HTMLDivElement>(null);\n const contentRef = propRef ?? cRef;\n\n const handleKeyDown = useCallback((event: KeyboardEvent) => {\n if (event.code === KEYS.TAB) {\n event.stopPropagation();\n }\n }, []);\n\n const sections = (\n <Flex direction=\"column\" gap={gap}>\n {header}\n <View\n paddingBlockEnd={paddingBlockEnd}\n paddingBlockStart={paddingBlockStart}\n paddingInlineEnd={paddingInlineEnd}\n paddingInlineStart={paddingInlineStart}>\n {main}\n </View>\n {footer}\n </Flex>\n );\n\n // Use a FocusTrap around the content if hasFocusTrap is true.\n const childContent = hasFocusTrap ? (\n <FocusTrap restoreFocusRef={false}>{sections}</FocusTrap>\n ) : (\n { sections }\n );\n\n return (\n <div\n aria-label={ariaLabel}\n onKeyDown={hasFocusTrap ? handleKeyDown : undefined}\n ref={contentRef}\n role={role}\n {...testIdProps}>\n {childContent}\n </div>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;AA8BA,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAEzC;;;;;;AAMG;AACH,MAAM,yBAAyB,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAS,KAAI;IACrF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAA6B,iBAAiB,CAAC,CAAC;IAC1F,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AAErD,IAAA,IAAI,UAAU,KAAK,MAAM,EAAE;QACzB,aAAa,CAAC,MAAM,CAAC,CAAC;;;;QAKtB,IAAI,CAAC,MAAM,EAAE;YACX,YAAY,CAAC,iBAAiB,CAAC,CAAC;SACjC;KACF;AACD,IAAA,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,YAA0B,KAAI;;;;AAI7B,QAAA,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;;AAGrC,QAAA,UAAU,GAAG,YAAY,CAAC,CAAC;AAC7B,KAAC,EACD,CAAC,UAAU,EAAE,YAAY,CAAC,CAC3B,CAAC;IAEF,QACEA,IAAC,QAAQ,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAA,GAAM,IAAI,EACjF,QAAA,EAAA,QAAQ,EACA,CAAA,EACX;AACJ;;ACsBA;;;;;AAKG;MACU,gBAAgB,GAAG,CAAC,EAC/B,YAAY,EAAE,SAAS,EACvB,UAAU,EAAE,OAAO,EACnB,GAAG,EACH,MAAM,EACN,YAAY,GAAG,KAAK,EACpB,MAAM,EACN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;;;"}
1
+ {"version":3,"file":"SectionedContent-7e36073f.js","sources":["../../src/PRIVATE_FormControls/StickyPositioningDropdown.tsx","../../src/PRIVATE_FormControls/SectionedContent.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 } from 'preact/hooks';\nimport { useState } from 'preact/hooks';\nimport { Dropdown } from '#UNSAFE_Dropdown';\nimport { PositionData } from '../UNSAFE_Floating';\n\ntype DropdownProps = ComponentProps<typeof Dropdown>;\ntype Props = Pick<\n DropdownProps,\n | 'anchorRef'\n | 'children'\n | 'flipOptions'\n | 'id'\n | 'initialFocus'\n | 'isOpen'\n | 'minWidth'\n | 'offset'\n | 'onClose'\n | 'onPosition'\n | 'sizeOptions'\n>;\n\nconst DEFAULT_PLACEMENT = 'bottom-start';\n\n/**\n * StickyPositioningDropdown is used to display content which supports conditional rendering,\n * or other cases where the size of the content can change and cause the dropdown to rerender\n * in a different placement. This component ensures the repositioning happens only once,\n * until there is a collision, instead of allowing the dropdown to keep trying to\n * move back to its default position on every render.\n */\nconst StickyPositioningDropdown = ({ children, isOpen, onPosition, ...rest }: Props) => {\n const [placement, setPlacement] = useState<DropdownProps['placement']>(DEFAULT_PLACEMENT);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n\n // reset the placement to the default when the dropdown closes, not opens, so that it doesn't\n // initially open in the previous position and then move to the default position on the\n // rerender after the state is updated\n if (!isOpen) {\n setPlacement(DEFAULT_PLACEMENT);\n }\n }\n const handlePosition = useCallback(\n (positionData: PositionData) => {\n // update the placement so that the dropdown stays where it is until there is a collision,\n // i.e. it no longer fits, instead of letting it try to move back to the default position\n // on every render\n setPlacement(positionData.placement);\n\n // call the callback that was passed in through props\n onPosition?.(positionData);\n },\n [onPosition, setPlacement]\n );\n\n return (\n <Dropdown isOpen={isOpen} onPosition={handlePosition} placement={placement} {...rest}>\n {children}\n </Dropdown>\n );\n};\n\nexport { StickyPositioningDropdown };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChildren, ComponentProps, RefObject } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport {\n AriaAttributesSignalExcluded,\n HTMLAttributesSignalExcluded\n} from '#utils/UNSAFE_attributeUtils';\nimport { Flex } from '#UNSAFE_Flex';\nimport { FocusTrap } from '#UNSAFE_FocusTrap';\nimport { KEYS } from '#utils/PRIVATE_keyboardUtils';\nimport { PaddingProps } from '#utils/UNSAFE_interpolations/padding';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { View } from '#UNSAFE_View';\n\ntype FlexProps = ComponentProps<typeof Flex>;\n\ntype Props = TestIdProps & {\n /**\n * An accessible label that describes the content.\n */\n 'aria-label'?: AriaAttributesSignalExcluded['aria-label'];\n\n /**\n * A ref to the content container.\n */\n contentRef?: RefObject<HTMLDivElement>;\n\n /**\n * Child content in the footer section.\n */\n footer?: ComponentChildren;\n\n /**\n * The spacing between the sections.\n */\n gap?: FlexProps['gap'];\n\n /**\n * True if the tab key should cycle focus within the content.\n * @default false\n */\n hasFocusTrap?: boolean;\n\n /**\n * Child content in the header section.\n */\n header?: ComponentChildren;\n\n /**\n * Child content in the main section.\n */\n main?: ComponentChildren;\n\n /**\n * The padding between the footer or bottom edge and the main content.\n * @default '4x'\n */\n paddingBlockEnd?: PaddingProps['paddingBlockEnd'];\n\n /**\n * The padding between the header or top edge and the main content.\n * @default '4x'\n */\n paddingBlockStart?: PaddingProps['paddingBlockStart'];\n\n /**\n * The padding between the right edge and the main content.\n * @default '4x'\n */\n paddingInlineEnd?: PaddingProps['paddingInlineEnd'];\n\n /**\n * The padding between the left edge and the main content.\n * @default '4x'\n */\n paddingInlineStart?: PaddingProps['paddingInlineStart'];\n\n /**\n * The aria role applied to the content container. For example, if the \"launcher\" element\n * includes aria-haspopup=\"dialog\", then the associated content should have role \"dialog\"\n * and an aria-label that describes it. If the launcher element has role \"combobox\", then\n * it controls an element with a role such as listbox or grid.\n */\n role?: HTMLAttributesSignalExcluded['role'];\n};\n\n/**\n * The SectionedContent component has slots for header, main, and footer content.\n * It is meant to be used in a floating or modal type container and includes\n * conditional support for focus trapping, so that you can tab between components\n * and sections while the container remains open.\n */\nexport const SectionedContent = ({\n 'aria-label': ariaLabel,\n contentRef: propRef,\n gap,\n footer,\n hasFocusTrap = false,\n header,\n main,\n paddingBlockEnd = '4x',\n paddingBlockStart = '4x',\n paddingInlineEnd = '4x',\n paddingInlineStart = '4x',\n role,\n testId\n}: Props) => {\n const testIdProps = useTestId(testId);\n\n const cRef = useRef<HTMLDivElement>(null);\n const contentRef = propRef ?? cRef;\n\n const handleKeyDown = useCallback((event: KeyboardEvent) => {\n if (event.code === KEYS.TAB) {\n event.stopPropagation();\n }\n }, []);\n\n const sections = (\n <Flex direction=\"column\" gap={gap}>\n {header}\n <View\n paddingBlockEnd={paddingBlockEnd}\n paddingBlockStart={paddingBlockStart}\n paddingInlineEnd={paddingInlineEnd}\n paddingInlineStart={paddingInlineStart}>\n {main}\n </View>\n {footer}\n </Flex>\n );\n\n // Use a FocusTrap around the content if hasFocusTrap is true.\n const childContent = hasFocusTrap ? (\n <FocusTrap restoreFocusRef={false}>{sections}</FocusTrap>\n ) : (\n { sections }\n );\n\n return (\n <div\n aria-label={ariaLabel}\n onKeyDown={hasFocusTrap ? handleKeyDown : undefined}\n ref={contentRef}\n role={role}\n {...testIdProps}>\n {childContent}\n </div>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;AA8BA,MAAM,iBAAiB,GAAG,cAAc,CAAC;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