@oracle/oraclejet-preact 18.1.9 → 18.1.10

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 (1083) hide show
  1. package/amd/ActionCard-5ae60cb4.js +1 -1
  2. package/amd/BarChart-0ad4ca6d.js +1 -1
  3. package/amd/BarGroup-d6909cb1.js +1 -1
  4. package/amd/BaseButton-c86afd54.js +1 -1
  5. package/amd/BaseCardView-4f88499c.js +1 -1
  6. package/amd/{BaseCardViewSelectionTest-00655472.js → BaseCardViewSelectionTest-36a03079.js} +2 -2
  7. package/amd/{BaseCardViewSelectionTest-00655472.js.map → BaseCardViewSelectionTest-36a03079.js.map} +1 -1
  8. package/amd/BaseNavigationListItem-84f4be5c.js +1 -1
  9. package/amd/BaseRichSelection-33a97275.js +1 -1
  10. package/amd/ButtonSet-7a7a63e8.js +1 -1
  11. package/amd/ButtonSetIconButton-9f171b1e.js +1 -1
  12. package/amd/Card-70e5f9f2.js +2 -0
  13. package/amd/{Card-4d47fe95.js.map → Card-70e5f9f2.js.map} +1 -1
  14. package/amd/{Center-05b00f39.js → Center-e552eb11.js} +2 -2
  15. package/amd/{Center-05b00f39.js.map → Center-e552eb11.js.map} +1 -1
  16. package/amd/Chart-79cfc878.js +1 -1
  17. package/amd/Checkbox-49753599.js +1 -1
  18. package/amd/CheckboxControl-c6a380b3.js +1 -1
  19. package/amd/CheckboxRadioField-1987c75d.js +1 -1
  20. package/amd/CheckboxSet-05423d28.js +2 -0
  21. package/amd/CheckboxSet-05423d28.js.map +1 -0
  22. package/amd/Chip-1bcbf57e.js +1 -1
  23. package/amd/ClearIcon-d73689cc.js +1 -1
  24. package/amd/CollapseIcon-a7f8693d.js +1 -1
  25. package/amd/Collapsible-ea0dca8a.js +1 -1
  26. package/amd/ComboChart-72eda15f.js +1 -1
  27. package/amd/CompactHelpSource-de995a7f.js +1 -1
  28. package/amd/CompactLabelAssistance-9f9f658d.js +2 -0
  29. package/amd/{CompactLabelAssistance-f3d093c7.js.map → CompactLabelAssistance-9f9f658d.js.map} +1 -1
  30. package/amd/CompactUserAssistance-3799998f.js +1 -1
  31. package/amd/ComponentMessageContainer-cf186eeb.js +1 -1
  32. package/amd/ConveyorBeltItem-e3002f4a.js +1 -1
  33. package/amd/{DatePicker-abe79055.js → DatePicker-9115226e.js} +2 -2
  34. package/amd/{DatePicker-abe79055.js.map → DatePicker-9115226e.js.map} +1 -1
  35. package/amd/DatePickerHeader-a0da70a0.js +1 -1
  36. package/amd/{Diagram-3d169c49.js → Diagram-14fa4924.js} +2 -2
  37. package/amd/{Diagram-3d169c49.js.map → Diagram-14fa4924.js.map} +1 -1
  38. package/amd/{Dialog-11e863b2.js → Dialog-896c0bfd.js} +2 -2
  39. package/amd/{Dialog-11e863b2.js.map → Dialog-896c0bfd.js.map} +1 -1
  40. package/amd/DirectionalCollapseArrowIcon-31539047.js +1 -1
  41. package/amd/DirectionalExpandArrowIcon-533fd2a0.js +1 -1
  42. package/amd/{DragHandle-7335845b.js → DragHandle-14ea6e74.js} +2 -2
  43. package/amd/{DragHandle-7335845b.js.map → DragHandle-14ea6e74.js.map} +1 -1
  44. package/amd/{DrawerPopup-8d5736fb.js → DrawerPopup-90b8ecf5.js} +2 -2
  45. package/amd/{DrawerPopup-8d5736fb.js.map → DrawerPopup-90b8ecf5.js.map} +1 -1
  46. package/amd/{Dropdown-3d2abe1f.js → Dropdown-73238fd5.js} +2 -2
  47. package/amd/{Dropdown-3d2abe1f.js.map → Dropdown-73238fd5.js.map} +1 -1
  48. package/amd/{EnvironmentProvider-bbf80843.js → EnvironmentProvider-806b8f3a.js} +2 -2
  49. package/amd/{EnvironmentProvider-bbf80843.js.map → EnvironmentProvider-806b8f3a.js.map} +1 -1
  50. package/amd/ExpandableList-daabc548.js +1 -1
  51. package/amd/FilePicker-7e31189e.js +1 -1
  52. package/amd/{Flex-b8764305.js → Flex-590160eb.js} +2 -2
  53. package/amd/{Flex-b8764305.js.map → Flex-590160eb.js.map} +1 -1
  54. package/amd/{Floating-f12b8739.js → Floating-ae9845d4.js} +2 -2
  55. package/amd/{Floating-f12b8739.js.map → Floating-ae9845d4.js.map} +1 -1
  56. package/amd/FormLayout-3d643cdf.js +1 -1
  57. package/amd/Gantt-7265d4ce.js +1 -1
  58. package/amd/Grid-a8a51c37.js +2 -0
  59. package/amd/{Grid-e6f0d4a6.js.map → Grid-a8a51c37.js.map} +1 -1
  60. package/amd/{Gridlines-efa5606a.js → Gridlines-8894882d.js} +2 -2
  61. package/amd/{Gridlines-efa5606a.js.map → Gridlines-8894882d.js.map} +1 -1
  62. package/amd/GroupLoadingIndicator-9fd33355.js +1 -1
  63. package/amd/HighlightText-ded0d51b.js +2 -0
  64. package/amd/{HighlightText-d1b13537.js.map → HighlightText-ded0d51b.js.map} +1 -1
  65. package/amd/Icon-383a68bb.js +1 -1
  66. package/amd/IconButton-368fba34.js +1 -1
  67. package/amd/IconMenuButton-3f3c2386.js +1 -1
  68. package/amd/IconProgressButton-11c44c28.js +1 -1
  69. package/amd/IconSwitchButton-1a400cdf.js +1 -1
  70. package/amd/IconToggleButton-ea46b246.js +1 -1
  71. package/amd/{IconUserAssistance-f5228b1d.js → IconUserAssistance-e496ab70.js} +2 -2
  72. package/amd/{IconUserAssistance-f5228b1d.js.map → IconUserAssistance-e496ab70.js.map} +1 -1
  73. package/amd/Indexer-510aaf3a.js +1 -1
  74. package/amd/InlineHelpSource-8277317c.js +1 -1
  75. package/amd/InlineUserAssistance-a97e0011.js +1 -1
  76. package/amd/InputDateMask-09989b51.js +1 -1
  77. package/amd/InputDatePicker-4c3c6bb4.js +2 -0
  78. package/amd/{InputDatePicker-03bdeb95.js.map → InputDatePicker-4c3c6bb4.js.map} +1 -1
  79. package/amd/InputPassword-57a5e072.js +1 -1
  80. package/amd/InputText-a72eb1c3.js +1 -1
  81. package/amd/Label-41b672b4.js +1 -1
  82. package/amd/LabelValueLayout-b6701ecf.js +1 -1
  83. package/amd/{Layer-69221878.js → Layer-139c23c4.js} +2 -2
  84. package/amd/{Layer-69221878.js.map → Layer-139c23c4.js.map} +1 -1
  85. package/amd/{LayerHost-27dfba9e.js → LayerHost-733ade2f.js} +2 -2
  86. package/amd/{LayerHost-27dfba9e.js.map → LayerHost-733ade2f.js.map} +1 -1
  87. package/amd/{LayerManager-7f82d3ce.js → LayerManager-9a628ce3.js} +2 -2
  88. package/amd/{LayerManager-7f82d3ce.js.map → LayerManager-9a628ce3.js.map} +1 -1
  89. package/amd/Legend-6fa54628.js +1 -1
  90. package/amd/{LineAreaChart-cacd5576.js → LineAreaChart-3aff0c1a.js} +2 -2
  91. package/amd/{LineAreaChart-cacd5576.js.map → LineAreaChart-3aff0c1a.js.map} +1 -1
  92. package/amd/{LineSeries-fe392d85.js → LineSeries-ce197af6.js} +2 -2
  93. package/amd/{LineSeries-fe392d85.js.map → LineSeries-ce197af6.js.map} +1 -1
  94. package/amd/Link-1f126248.js +1 -1
  95. package/amd/List-37e37948.js +1 -1
  96. package/amd/{ListItemLayout-60fc51b7.js → ListItemLayout-59986c55.js} +2 -2
  97. package/amd/{ListItemLayout-60fc51b7.js.map → ListItemLayout-59986c55.js.map} +1 -1
  98. package/amd/ListView-325e1814.js +1 -1
  99. package/amd/LiveRegion-1917f798.js +2 -0
  100. package/amd/{LiveRegion-17fea064.js.map → LiveRegion-1917f798.js.map} +1 -1
  101. package/amd/MaxLengthCounter-9a95922c.js +2 -0
  102. package/{cjs/MaxLengthCounter-9ab3f74b.js.map → amd/MaxLengthCounter-9a95922c.js.map} +1 -1
  103. package/amd/{MaxLengthLiveRegion-ecc0c894.js → MaxLengthLiveRegion-46bb45da.js} +2 -2
  104. package/amd/{MaxLengthLiveRegion-ecc0c894.js.map → MaxLengthLiveRegion-46bb45da.js.map} +1 -1
  105. package/amd/Menu-bb715ef5.js +1 -1
  106. package/amd/MenuButton-66e5430a.js +1 -1
  107. package/amd/MenuItem-1a324975.js +1 -1
  108. package/amd/Message-d66cc7e9.js +1 -1
  109. package/amd/{MessageLayer-d39be82d.js → MessageLayer-a439ce52.js} +2 -2
  110. package/amd/{MessageLayer-d39be82d.js.map → MessageLayer-a439ce52.js.map} +1 -1
  111. package/amd/MessageToast-19703f73.js +1 -1
  112. package/amd/MessagesManager-2c4c218f.js +1 -1
  113. package/amd/MeterBar-9f58cfad.js +1 -1
  114. package/amd/MeterCircle-c3138125.js +1 -1
  115. package/amd/{Modal-e4a033c8.js → Modal-9eaf8cd9.js} +2 -2
  116. package/amd/{Modal-e4a033c8.js.map → Modal-9eaf8cd9.js.map} +1 -1
  117. package/amd/{MonthView-ca0355b8.js → MonthView-67179db3.js} +2 -2
  118. package/amd/{MonthView-ca0355b8.js.map → MonthView-67179db3.js.map} +1 -1
  119. package/amd/NavigationListItem-32ded4a5.js +1 -1
  120. package/amd/NumberInputText-e2cf1795.js +1 -1
  121. package/amd/OverflowTabBarItem-f8128e3d.js +1 -1
  122. package/amd/PRIVATE_BaseCardView.js +1 -1
  123. package/amd/PRIVATE_Chart.js +1 -1
  124. package/amd/PRIVATE_CheckboxControl.js +1 -1
  125. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  126. package/amd/PRIVATE_ClearIcon.js +1 -1
  127. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  128. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  129. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  130. package/amd/PRIVATE_FormControls.js +1 -1
  131. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  132. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  133. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  134. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  135. package/amd/PRIVATE_Icons/DragV.js +1 -1
  136. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  137. package/amd/PRIVATE_List.js +1 -1
  138. package/amd/PRIVATE_Message.js +1 -1
  139. package/amd/PRIVATE_MessageLayer.js +1 -1
  140. package/amd/PRIVATE_MonthView.js +1 -1
  141. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  142. package/amd/PRIVATE_PlotArea.js +1 -1
  143. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  144. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  145. package/amd/PRIVATE_SelectCommon.js +1 -1
  146. package/amd/PRIVATE_StyledCard.js +1 -1
  147. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  148. package/amd/PRIVATE_Table.js +1 -1
  149. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  150. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  151. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  152. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  153. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  154. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  155. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  156. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  157. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  158. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  159. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  160. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  184. package/amd/PRIVATE_TimeComponent.js +1 -1
  185. package/amd/PRIVATE_VisOverview.js +1 -1
  186. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  187. package/amd/PictoChart-98b892fb.js +1 -1
  188. package/amd/PieChart-19890d12.js +1 -1
  189. package/amd/{Popup-b0704743.js → Popup-3e2566da.js} +2 -2
  190. package/amd/{Popup-b0704743.js.map → Popup-3e2566da.js.map} +1 -1
  191. package/amd/{ProgressBar-8ab08930.js → ProgressBar-99c0ff2a.js} +2 -2
  192. package/amd/{ProgressBar-8ab08930.js.map → ProgressBar-99c0ff2a.js.map} +1 -1
  193. package/amd/ProgressButton-cd0c21df.js +1 -1
  194. package/amd/ProgressButtonLabelLayout-76d8a3e7.js +1 -1
  195. package/amd/{ProgressCircle-9c36b39c.js → ProgressCircle-0046c4c8.js} +2 -2
  196. package/amd/{ProgressCircle-9c36b39c.js.map → ProgressCircle-0046c4c8.js.map} +1 -1
  197. package/amd/RadioItem-1a02d3dc.js +1 -1
  198. package/amd/RatingGauge-1c40dae3.js +1 -1
  199. package/amd/ReadonlyTextFieldInput-d6c6dbc4.js +1 -1
  200. package/amd/RemovableNavigationListItem-1f69907c.js +1 -1
  201. package/amd/RemovableTabBarItem-5c240801.js +1 -1
  202. package/amd/ReorderableTabBar-23f7e3c3.js +1 -1
  203. package/amd/RevealToggleIcon-c22626da.js +1 -1
  204. package/amd/{ScatterChart-5a9fe642.js → ScatterChart-e6f8d49a.js} +2 -2
  205. package/amd/{ScatterChart-5a9fe642.js.map → ScatterChart-e6f8d49a.js.map} +1 -1
  206. package/amd/SectionalLegend-713bdefb.js +1 -1
  207. package/amd/SectionedContent-ef1f844c.js +2 -0
  208. package/amd/{SectionedContent-f508dbae.js.map → SectionedContent-ef1f844c.js.map} +1 -1
  209. package/amd/SelectMultiple-19db7af2.js +1 -1
  210. package/amd/SelectSingle-7edde065.js +1 -1
  211. package/amd/SelectionCard-a8a3bb2d.js +2 -0
  212. package/amd/{SelectionCard-38a1007f.js.map → SelectionCard-a8a3bb2d.js.map} +1 -1
  213. package/amd/Selector-fcfe7801.js +1 -1
  214. package/amd/{SelectorAll-3f85b285.js → SelectorAll-de289397.js} +2 -2
  215. package/amd/{SelectorAll-3f85b285.js.map → SelectorAll-de289397.js.map} +1 -1
  216. package/amd/{Sheet-08578790.js → Sheet-404b38fa.js} +2 -2
  217. package/amd/{Sheet-08578790.js.map → Sheet-404b38fa.js.map} +1 -1
  218. package/amd/SplitMenuButton-a2001b04.js +1 -1
  219. package/amd/StyledCard-09c9f9c0.js +2 -0
  220. package/amd/{StyledCard-1f13531d.js.map → StyledCard-09c9f9c0.js.map} +1 -1
  221. package/amd/{StyledLabelValueLayout-0353a9b8.js → StyledLabelValueLayout-2524f5c3.js} +2 -2
  222. package/amd/{StyledLabelValueLayout-0353a9b8.js.map → StyledLabelValueLayout-2524f5c3.js.map} +1 -1
  223. package/amd/StyledTextField-5dcd2ff4.js +1 -1
  224. package/amd/TabBar-ca32462a.js +1 -1
  225. package/amd/TabBarItem-4ff2ef15.js +1 -1
  226. package/amd/TabBarLayout-95e78962.js +1 -1
  227. package/amd/TabBarMixed-dab4e4a2.js +1 -1
  228. package/amd/{TabBarMixedSeparator-b4c6eb9d.js → TabBarMixedSeparator-53d205c8.js} +2 -2
  229. package/amd/{TabBarMixedSeparator-b4c6eb9d.js.map → TabBarMixedSeparator-53d205c8.js.map} +1 -1
  230. package/amd/Table-f1101855.js +1 -1
  231. package/amd/TagCloud-39552a78.js +1 -1
  232. package/amd/TextArea-0ec1a311.js +2 -0
  233. package/{cjs/TextArea-d8516f11.js.map → amd/TextArea-0ec1a311.js.map} +1 -1
  234. package/amd/TextAreaAutosize-8cac0a54.js +2 -0
  235. package/amd/{TextAreaAutosize-c9c00a1c.js.map → TextAreaAutosize-8cac0a54.js.map} +1 -1
  236. package/amd/TextField-c16917d8.js +1 -1
  237. package/amd/TextFieldInput-e86a1d08.js +1 -1
  238. package/amd/Theme-redwood/theme.css +241 -241
  239. package/amd/Theme-stable/theme.css +322 -322
  240. package/amd/TimeComponentCanvas2D-82ebf0c7.js +1 -1
  241. package/amd/Toolbar-fe110698.js +1 -1
  242. package/amd/TruncatingBadge-1a265367.js +1 -1
  243. package/amd/TruncatingText-eb4bd8ab.js +1 -1
  244. package/amd/UNSAFE_ActionCard.js +1 -1
  245. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  246. package/amd/UNSAFE_BarChart.js +1 -1
  247. package/amd/UNSAFE_BaseButton.js +1 -1
  248. package/amd/UNSAFE_Button.js +1 -1
  249. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  250. package/amd/UNSAFE_ButtonSet.js +1 -1
  251. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  252. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  253. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  254. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  255. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  256. package/amd/UNSAFE_Card.js +1 -1
  257. package/amd/UNSAFE_CardFlexView.js +1 -1
  258. package/amd/UNSAFE_CardGridView.js +1 -1
  259. package/amd/UNSAFE_Center.js +1 -1
  260. package/amd/UNSAFE_Checkbox.js +1 -1
  261. package/amd/UNSAFE_CheckboxItem.js +1 -1
  262. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  263. package/amd/UNSAFE_CheckboxSet.js +1 -1
  264. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  265. package/amd/UNSAFE_Chip.js +1 -1
  266. package/amd/UNSAFE_Collapsible.js +1 -1
  267. package/amd/UNSAFE_ComboChart.js +1 -1
  268. package/amd/UNSAFE_ComponentMessage.js +1 -1
  269. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  270. package/amd/UNSAFE_DatePicker.js +1 -1
  271. package/amd/UNSAFE_Diagram.js +1 -1
  272. package/amd/UNSAFE_Dialog.js +1 -1
  273. package/amd/UNSAFE_DragHandle.js +1 -1
  274. package/amd/UNSAFE_DrawerLayout.js +1 -1
  275. package/amd/UNSAFE_DrawerPopup.js +1 -1
  276. package/amd/UNSAFE_Dropdown.js +1 -1
  277. package/amd/UNSAFE_Environment.js +1 -1
  278. package/amd/UNSAFE_ExpandableList.js +1 -1
  279. package/amd/UNSAFE_FilePicker.js +1 -1
  280. package/amd/UNSAFE_Flex.js +1 -1
  281. package/amd/UNSAFE_Floating.js +1 -1
  282. package/amd/UNSAFE_FormLayout.js +1 -1
  283. package/amd/UNSAFE_Gantt.js +1 -1
  284. package/amd/UNSAFE_Grid.js +1 -1
  285. package/amd/UNSAFE_HighlightText.js +1 -1
  286. package/amd/UNSAFE_Icon.js +1 -1
  287. package/amd/UNSAFE_IconButton.js +1 -1
  288. package/amd/UNSAFE_IconMenuButton.js +1 -1
  289. package/amd/UNSAFE_IconProgressButton.js +1 -1
  290. package/amd/UNSAFE_IconToggleButton.js +1 -1
  291. package/amd/UNSAFE_Indexer.js +1 -1
  292. package/amd/UNSAFE_InputDateMask.js +1 -1
  293. package/amd/UNSAFE_InputDatePicker.js +1 -1
  294. package/amd/UNSAFE_InputPassword.js +1 -1
  295. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  296. package/amd/UNSAFE_InputText.js +1 -1
  297. package/amd/UNSAFE_InputTimeMask.js +1 -1
  298. package/amd/UNSAFE_Label.js +1 -1
  299. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  300. package/amd/UNSAFE_LabelledLink.js +1 -1
  301. package/amd/UNSAFE_Layer.js +1 -1
  302. package/amd/UNSAFE_Legend.js +1 -1
  303. package/amd/UNSAFE_LineAreaChart.js +1 -1
  304. package/amd/UNSAFE_Link.js +1 -1
  305. package/amd/UNSAFE_ListItemLayout.js +1 -1
  306. package/amd/UNSAFE_ListView.js +1 -1
  307. package/amd/UNSAFE_LiveRegion.js +1 -1
  308. package/amd/UNSAFE_Menu.js +1 -1
  309. package/amd/UNSAFE_MenuButton.js +1 -1
  310. package/amd/UNSAFE_MessageBanner.js +1 -1
  311. package/amd/UNSAFE_MessageToast.js +1 -1
  312. package/amd/UNSAFE_MeterBar.js +1 -1
  313. package/amd/UNSAFE_MeterCircle.js +1 -1
  314. package/amd/UNSAFE_Modal.js +1 -1
  315. package/amd/UNSAFE_NavigationList.js +1 -1
  316. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  317. package/amd/UNSAFE_NumberInputText.js +1 -1
  318. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  319. package/amd/UNSAFE_PictoChart.js +1 -1
  320. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  321. package/amd/UNSAFE_PieChart.js +1 -1
  322. package/amd/UNSAFE_Popup.js +1 -1
  323. package/amd/UNSAFE_ProgressBar.js +1 -1
  324. package/amd/UNSAFE_ProgressButton.js +1 -1
  325. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  326. package/amd/UNSAFE_ProgressCircle.js +1 -1
  327. package/amd/UNSAFE_RadioItem.js +1 -1
  328. package/amd/UNSAFE_RadioSet.js +1 -1
  329. package/amd/UNSAFE_RatingGauge.js +1 -1
  330. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  331. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  332. package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
  333. package/amd/UNSAFE_RichRadioSet.js +1 -1
  334. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  335. package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
  336. package/amd/UNSAFE_ScatterChart.js +1 -1
  337. package/amd/UNSAFE_SectionalLegend.js +1 -1
  338. package/amd/UNSAFE_SelectMultiple.js +1 -1
  339. package/amd/UNSAFE_SelectSingle.js +1 -1
  340. package/amd/UNSAFE_SelectionCard.js +1 -1
  341. package/amd/UNSAFE_Selector.js +1 -1
  342. package/amd/UNSAFE_SelectorAll.js +1 -1
  343. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  344. package/amd/UNSAFE_Sheet.js +1 -1
  345. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  346. package/amd/UNSAFE_TabBar.js +1 -1
  347. package/amd/UNSAFE_TabBarCommon.js +1 -1
  348. package/amd/UNSAFE_TabBarMixed.js +1 -1
  349. package/amd/UNSAFE_TableView.js +1 -1
  350. package/amd/UNSAFE_TagCloud.js +1 -1
  351. package/amd/UNSAFE_TextArea.js +1 -1
  352. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  353. package/amd/UNSAFE_TextField.js +1 -1
  354. package/amd/UNSAFE_ToggleButton.js +1 -1
  355. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  356. package/amd/UNSAFE_Toolbar.js +1 -1
  357. package/amd/UNSAFE_Train.js +1 -1
  358. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  359. package/amd/UNSAFE_TruncatingText.js +1 -1
  360. package/amd/UNSAFE_UserAssistance.js +1 -1
  361. package/amd/UNSAFE_View.js +1 -1
  362. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  363. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  364. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  365. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  366. package/amd/UNSAFE_WindowOverlay.js +1 -1
  367. package/amd/{View-b5d6b669.js → View-db26162c.js} +2 -2
  368. package/amd/{View-b5d6b669.js.map → View-db26162c.js.map} +1 -1
  369. package/amd/{VisNoData-32b7088b.js → VisNoData-7090c864.js} +2 -2
  370. package/amd/{VisNoData-32b7088b.js.map → VisNoData-7090c864.js.map} +1 -1
  371. package/amd/{VisProgressiveLoader-8cf832a4.js → VisProgressiveLoader-6a3b479f.js} +2 -2
  372. package/amd/{VisProgressiveLoader-8cf832a4.js.map → VisProgressiveLoader-6a3b479f.js.map} +1 -1
  373. package/amd/{VisTabularDatatip-03ba9ae5.js → VisTabularDatatip-0b630f9d.js} +2 -2
  374. package/amd/{VisTabularDatatip-03ba9ae5.js.map → VisTabularDatatip-0b630f9d.js.map} +1 -1
  375. package/amd/{WindowOverlay-19cd633a.js → WindowOverlay-c390f525.js} +2 -2
  376. package/amd/{WindowOverlay-19cd633a.js.map → WindowOverlay-c390f525.js.map} +1 -1
  377. package/amd/{YearsGridView-84898309.js → YearsGridView-e645d5de.js} +2 -2
  378. package/amd/{YearsGridView-84898309.js.map → YearsGridView-e645d5de.js.map} +1 -1
  379. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  380. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  381. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  382. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  383. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  384. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  385. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  386. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  387. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  388. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  389. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  390. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  391. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  392. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  393. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  394. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  395. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  396. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  397. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  398. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  399. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  400. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  401. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  402. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  403. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  404. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  405. package/amd/hooks/UNSAFE_useScale.js +1 -1
  406. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  407. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  408. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  409. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  410. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  411. package/amd/hooks/UNSAFE_useUser.js +1 -1
  412. package/amd/{index-9fe6dba4.js → index-91628308.js} +2 -2
  413. package/amd/index-91628308.js.map +1 -0
  414. package/amd/listViewSelectionTests-cda5abdf.js +1 -1
  415. package/amd/{popupUtils-4c7037ca.js → popupUtils-97c14340.js} +2 -2
  416. package/amd/{popupUtils-4c7037ca.js.map → popupUtils-97c14340.js.map} +1 -1
  417. package/amd/{render-60c60d58.js → render-26bfba97.js} +2 -2
  418. package/amd/{render-60c60d58.js.map → render-26bfba97.js.map} +1 -1
  419. package/amd/{tabbableUtils-91cb6674.js → tabbableUtils-e35b5cb9.js} +2 -2
  420. package/amd/{tabbableUtils-91cb6674.js.map → tabbableUtils-e35b5cb9.js.map} +1 -1
  421. package/amd/{testData-752ed27b.js → testData-1796f319.js} +2 -2
  422. package/amd/{testData-752ed27b.js.map → testData-1796f319.js.map} +1 -1
  423. package/amd/tooltipUtils-30886397.js +2 -0
  424. package/amd/{tooltipUtils-36ddb881.js.map → tooltipUtils-30886397.js.map} +1 -1
  425. package/amd/useCellNavigation-4138513e.js +1 -1
  426. package/amd/useChartContextMenu-59a5f8c0.js +1 -1
  427. package/amd/useChartDatatip-b75883b6.js +2 -0
  428. package/amd/{useChartDatatip-777fcfb2.js.map → useChartDatatip-b75883b6.js.map} +1 -1
  429. package/amd/{useColorScheme-09a67d56.js → useColorScheme-6b864d5c.js} +2 -2
  430. package/amd/{useColorScheme-09a67d56.js.map → useColorScheme-6b864d5c.js.map} +1 -1
  431. package/amd/useContextMenu-dacffeb2.js +1 -1
  432. package/amd/useCssVars-cc825c54.js +2 -0
  433. package/amd/{useCssVars-311f2956.js.map → useCssVars-cc825c54.js.map} +1 -1
  434. package/amd/{useCurrentBgColor-dc922fe6.js → useCurrentBgColor-df47f8a8.js} +2 -2
  435. package/amd/{useCurrentBgColor-dc922fe6.js.map → useCurrentBgColor-df47f8a8.js.map} +1 -1
  436. package/amd/useCurrentKey-b0a79216.js +2 -0
  437. package/amd/{useCurrentKey-e8791885.js.map → useCurrentKey-b0a79216.js.map} +1 -1
  438. package/amd/{useDatatip-8a63fb35.js → useDatatip-be9b251b.js} +2 -2
  439. package/amd/{useDatatip-8a63fb35.js.map → useDatatip-be9b251b.js.map} +1 -1
  440. package/amd/{useDensity-90a49922.js → useDensity-27fffd88.js} +2 -2
  441. package/amd/{useDensity-90a49922.js.map → useDensity-27fffd88.js.map} +1 -1
  442. package/amd/{useFloating-4b145893.js → useFloating-f9bd3c51.js} +2 -2
  443. package/amd/{useFloating-4b145893.js.map → useFloating-f9bd3c51.js.map} +1 -1
  444. package/amd/useKeyboardEvents-ce9c81d0.js +2 -0
  445. package/amd/{useKeyboardEvents-f8b3ead1.js.map → useKeyboardEvents-ce9c81d0.js.map} +1 -1
  446. package/amd/useLegendContextMenu-c4a44c23.js +1 -1
  447. package/amd/useMeterDatatip-f8bca628.js +2 -0
  448. package/amd/{useMeterDatatip-5d0b02c1.js.map → useMeterDatatip-f8bca628.js.map} +1 -1
  449. package/amd/{useOutsideClick-8e7ab184.js → useOutsideClick-43ce7043.js} +2 -2
  450. package/amd/{useOutsideClick-8e7ab184.js.map → useOutsideClick-43ce7043.js.map} +1 -1
  451. package/amd/{usePopupAnimation-1be03bd7.js → usePopupAnimation-65dec4e2.js} +2 -2
  452. package/amd/{usePopupAnimation-1be03bd7.js.map → usePopupAnimation-65dec4e2.js.map} +1 -1
  453. package/amd/{usePrefixSuffix-2612edcd.js → usePrefixSuffix-5147bdc9.js} +2 -2
  454. package/amd/{usePrefixSuffix-2612edcd.js.map → usePrefixSuffix-5147bdc9.js.map} +1 -1
  455. package/amd/{useReorderableItem-41e78941.js → useReorderableItem-9e759302.js} +2 -2
  456. package/amd/{useReorderableItem-41e78941.js.map → useReorderableItem-9e759302.js.map} +1 -1
  457. package/amd/{useRovingTabIndexContainer-6ff38598.js → useRovingTabIndexContainer-cfc9aacb.js} +2 -2
  458. package/amd/{useRovingTabIndexContainer-6ff38598.js.map → useRovingTabIndexContainer-cfc9aacb.js.map} +1 -1
  459. package/amd/{useScale-b77dadab.js → useScale-716d3432.js} +2 -2
  460. package/amd/{useScale-b77dadab.js.map → useScale-716d3432.js.map} +1 -1
  461. package/amd/useSelectCommon-70527342.js +1 -1
  462. package/amd/{useSelectDrill-b64a92ea.js → useSelectDrill-113ae3ae.js} +2 -2
  463. package/amd/{useSelectDrill-b64a92ea.js.map → useSelectDrill-113ae3ae.js.map} +1 -1
  464. package/amd/{useSelection-5ea9a696.js → useSelection-5f192f9f.js} +2 -2
  465. package/amd/{useSelection-5ea9a696.js.map → useSelection-5f192f9f.js.map} +1 -1
  466. package/amd/{useSelection-6e62de17.js → useSelection-80e262f2.js} +2 -2
  467. package/amd/{useSelection-6e62de17.js.map → useSelection-80e262f2.js.map} +1 -1
  468. package/amd/useTabBar-7a16a1af.js +1 -1
  469. package/amd/{useTestId-0140aa44.js → useTestId-c286f212.js} +2 -2
  470. package/amd/{useTestId-0140aa44.js.map → useTestId-c286f212.js.map} +1 -1
  471. package/amd/{useTheme-4fb0ea9d.js → useTheme-9c1f6f33.js} +2 -2
  472. package/amd/{useTheme-4fb0ea9d.js.map → useTheme-9c1f6f33.js.map} +1 -1
  473. package/amd/useThemeInterpolations-f8cbec71.js +2 -0
  474. package/amd/{useThemeInterpolations-3ca974f9.js.map → useThemeInterpolations-f8cbec71.js.map} +1 -1
  475. package/amd/{useTooltip-682ae8ca.js → useTooltip-7b915f4c.js} +2 -2
  476. package/amd/{useTooltip-682ae8ca.js.map → useTooltip-7b915f4c.js.map} +1 -1
  477. package/amd/useTooltipOnTruncation-0310f431.js +2 -0
  478. package/amd/{useTooltipOnTruncation-7721f587.js.map → useTooltipOnTruncation-0310f431.js.map} +1 -1
  479. package/amd/{useTranslationBundle-68275657.js → useTranslationBundle-7c40cb58.js} +2 -2
  480. package/amd/{useTranslationBundle-68275657.js.map → useTranslationBundle-7c40cb58.js.map} +1 -1
  481. package/amd/{useUser-e8dd7f7c.js → useUser-797287de.js} +2 -2
  482. package/amd/{useUser-e8dd7f7c.js.map → useUser-797287de.js.map} +1 -1
  483. package/amd/useVisDragModeControls-f187d8b2.js +1 -1
  484. package/amd/{useVisEvents-1d3ca08e.js → useVisEvents-a8ea4ced.js} +2 -2
  485. package/amd/{useVisEvents-1d3ca08e.js.map → useVisEvents-a8ea4ced.js.map} +1 -1
  486. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  487. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  488. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  489. package/amd/{withDirectionIcon-754809be.js → withDirectionIcon-6df16f77.js} +2 -2
  490. package/amd/{withDirectionIcon-754809be.js.map → withDirectionIcon-6df16f77.js.map} +1 -1
  491. package/amd/withThemeProps-cab1ae08.js +1 -1
  492. package/cjs/BaseNavigationListItem-709591de.js +123 -0
  493. package/{es/BaseNavigationListItem-af84a9ee.js.map → cjs/BaseNavigationListItem-709591de.js.map} +1 -1
  494. package/cjs/{InputDatePicker-026ea769.js → InputDatePicker-7eb5931a.js} +2 -2
  495. package/cjs/{InputDatePicker-026ea769.js.map → InputDatePicker-7eb5931a.js.map} +1 -1
  496. package/cjs/{NavigationList-cd86b7a5.js → NavigationListItem-9b3d3258.js} +8 -3
  497. package/{es/NavigationListItem-07f041e6.js.map → cjs/NavigationListItem-9b3d3258.js.map} +1 -1
  498. package/cjs/{OverflowTabBar-95014877.js → OverflowTabBar-90cd282b.js} +3 -3
  499. package/cjs/{OverflowTabBar-95014877.js.map → OverflowTabBar-90cd282b.js.map} +1 -1
  500. package/cjs/{OverflowTabBarItem-7b383fbd.js → OverflowTabBarItem-359715a3.js} +4 -5
  501. package/cjs/{OverflowTabBarItem-7b383fbd.js.map → OverflowTabBarItem-359715a3.js.map} +1 -1
  502. package/cjs/{RemovableNavigationListItem-e7cd4dbf.js → RemovableNavigationListItem-f3ad6e8e.js} +3 -4
  503. package/cjs/{RemovableNavigationListItem-e7cd4dbf.js.map → RemovableNavigationListItem-f3ad6e8e.js.map} +1 -1
  504. package/cjs/{ReorderableTabBar-027413d9.js → ReorderableTabBar-0a94441d.js} +2 -2
  505. package/cjs/{ReorderableTabBar-027413d9.js.map → ReorderableTabBar-0a94441d.js.map} +1 -1
  506. package/cjs/{TabBar-fe7bc2c4.js → TabBar-ae497b21.js} +1 -6
  507. package/cjs/{TabBar-fe7bc2c4.js.map → TabBar-ae497b21.js.map} +1 -1
  508. package/cjs/{TabBarMixed-539d1779.js → TabBarMixed-d6b512da.js} +1 -6
  509. package/cjs/{TabBarMixed-539d1779.js.map → TabBarMixed-d6b512da.js.map} +1 -1
  510. package/cjs/{TextArea-d8516f11.js → TextArea-b51ac30d.js} +22 -4
  511. package/{amd/TextArea-fe8d9067.js.map → cjs/TextArea-b51ac30d.js.map} +1 -1
  512. package/cjs/{TextAreaAutosize-1797d5b7.js → TextAreaAutosize-ba85bce5.js} +3 -3
  513. package/cjs/{TextAreaAutosize-1797d5b7.js.map → TextAreaAutosize-ba85bce5.js.map} +1 -1
  514. package/cjs/Theme-redwood/theme.css +144 -144
  515. package/cjs/Theme-stable/theme.css +353 -353
  516. package/cjs/UNSAFE_InputDatePicker.js +90 -90
  517. package/cjs/UNSAFE_NavigationList.js +14 -16
  518. package/cjs/UNSAFE_NavigationList.js.map +1 -1
  519. package/cjs/UNSAFE_NavigationListCommon.js +57 -58
  520. package/cjs/UNSAFE_NavigationListCommon.js.map +1 -1
  521. package/cjs/UNSAFE_OverflowTabBar.js +27 -29
  522. package/cjs/UNSAFE_OverflowTabBar.js.map +1 -1
  523. package/cjs/UNSAFE_ReorderableTabBar.js +14 -25
  524. package/cjs/UNSAFE_ReorderableTabBar.js.map +1 -1
  525. package/cjs/UNSAFE_TabBar.js +26 -28
  526. package/cjs/UNSAFE_TabBar.js.map +1 -1
  527. package/cjs/UNSAFE_TabBarCommon.js +18 -20
  528. package/cjs/UNSAFE_TabBarCommon.js.map +1 -1
  529. package/cjs/UNSAFE_TabBarMixed.js +37 -39
  530. package/cjs/UNSAFE_TabBarMixed.js.map +1 -1
  531. package/cjs/UNSAFE_TextArea.js +3 -4
  532. package/cjs/UNSAFE_TextArea.js.map +1 -1
  533. package/cjs/UNSAFE_TextAreaAutosize.js +3 -3
  534. package/es/ActionCard-bac27bb9.js +1 -1
  535. package/es/BadgeVariants.styles.css +14 -14
  536. package/es/BadgeVariants.styles2.css +14 -14
  537. package/es/{BarChart-43dec3b7.js → BarChart-60ae846d.js} +3 -3
  538. package/es/{BarChart-43dec3b7.js.map → BarChart-60ae846d.js.map} +1 -1
  539. package/es/BarGroup-dbf70e2c.js +1 -1
  540. package/es/BaseButton-61f6baa8.js +2 -2
  541. package/es/BaseCardView-89398a60.js +7 -7
  542. package/es/{BaseCardViewSelectionTest-ef070684.js → BaseCardViewSelectionTest-ef8b024a.js} +7 -7
  543. package/es/{BaseCardViewSelectionTest-ef070684.js.map → BaseCardViewSelectionTest-ef8b024a.js.map} +1 -1
  544. package/es/BaseNavigationListItem-1c75c13f.js +47 -0
  545. package/{cjs/BaseNavigationListItem-3dbb8d31.js.map → es/BaseNavigationListItem-1c75c13f.js.map} +1 -1
  546. package/es/BaseRichSelection-72edca7c.js +9 -9
  547. package/es/ButtonLayoutVariants.styles.css +2 -2
  548. package/es/ButtonLayoutVariants.styles2.css +2 -2
  549. package/es/ButtonSet-9b2c41be.js +2 -2
  550. package/es/ButtonSetIconButton-0081167a.js +3 -3
  551. package/es/{Card-31dc8dc2.js → Card-f3b7c723.js} +2 -2
  552. package/es/{Card-31dc8dc2.js.map → Card-f3b7c723.js.map} +1 -1
  553. package/es/{Center-2be68188.js → Center-76b761ea.js} +2 -2
  554. package/es/{Center-2be68188.js.map → Center-76b761ea.js.map} +1 -1
  555. package/es/{Chart-4ec13697.js → Chart-a8efd5f1.js} +10 -10
  556. package/es/{Chart-4ec13697.js.map → Chart-a8efd5f1.js.map} +1 -1
  557. package/es/Checkbox-74259575.js +4 -4
  558. package/es/CheckboxControl-c3c34028.js +6 -6
  559. package/es/CheckboxRadioField-294463ba.js +7 -7
  560. package/es/Chip-8fd813ce.js +1 -1
  561. package/es/ClearIcon-acca9670.js +1 -1
  562. package/es/CollapseIcon-152e59b4.js +1 -1
  563. package/es/Collapsible-4dddc4f7.js +2 -2
  564. package/es/{ComboChart-d1c3e17a.js → ComboChart-644f1f8c.js} +4 -4
  565. package/es/{ComboChart-d1c3e17a.js.map → ComboChart-644f1f8c.js.map} +1 -1
  566. package/es/CompactHelpSource-c3044924.js +2 -2
  567. package/es/{CompactLabelAssistance-0d70fceb.js → CompactLabelAssistance-fd3fb481.js} +5 -5
  568. package/es/{CompactLabelAssistance-0d70fceb.js.map → CompactLabelAssistance-fd3fb481.js.map} +1 -1
  569. package/es/CompactUserAssistance-4f0ff3fc.js +4 -4
  570. package/es/ComponentMessageContainer-13005c12.js +4 -4
  571. package/es/ConveyorBeltItem-53f383e1.js +2 -2
  572. package/es/{DatePicker-a57b08b1.js → DatePicker-383fc43a.js} +6 -6
  573. package/es/{DatePicker-a57b08b1.js.map → DatePicker-383fc43a.js.map} +1 -1
  574. package/es/DatePickerHeader-8eee60aa.js +3 -3
  575. package/es/{Diagram-29d78c10.js → Diagram-7af64b34.js} +5 -5
  576. package/es/{Diagram-29d78c10.js.map → Diagram-7af64b34.js.map} +1 -1
  577. package/es/{Dialog-8a9a90a2.js → Dialog-fbbcc306.js} +8 -8
  578. package/es/{Dialog-8a9a90a2.js.map → Dialog-fbbcc306.js.map} +1 -1
  579. package/es/DirectionalCollapseArrowIcon-e1b04846.js +1 -1
  580. package/es/DirectionalExpandArrowIcon-c9218fa7.js +1 -1
  581. package/es/{DragHandle-198c3118.js → DragHandle-99d4c921.js} +2 -2
  582. package/es/{DragHandle-198c3118.js.map → DragHandle-99d4c921.js.map} +1 -1
  583. package/es/{DrawerPopup-5292bdfc.js → DrawerPopup-9cdb203a.js} +7 -7
  584. package/es/{DrawerPopup-5292bdfc.js.map → DrawerPopup-9cdb203a.js.map} +1 -1
  585. package/es/{Dropdown-698afbc6.js → Dropdown-60833900.js} +5 -5
  586. package/es/{Dropdown-698afbc6.js.map → Dropdown-60833900.js.map} +1 -1
  587. package/es/{EnvironmentProvider-713d0dec.js → EnvironmentProvider-bada8909.js} +3 -3
  588. package/es/{EnvironmentProvider-713d0dec.js.map → EnvironmentProvider-bada8909.js.map} +1 -1
  589. package/es/ExpandableList-27f4f0d4.js +3 -3
  590. package/es/FilePicker-c3f06d6f.js +2 -2
  591. package/es/{Flex-2d9ebee9.js → Flex-ce31b351.js} +2 -2
  592. package/es/{Flex-2d9ebee9.js.map → Flex-ce31b351.js.map} +1 -1
  593. package/es/{Floating-5191a9e6.js → Floating-f02677ba.js} +4 -4
  594. package/es/{Floating-5191a9e6.js.map → Floating-f02677ba.js.map} +1 -1
  595. package/es/FormLayout-b2993e0c.js +1 -1
  596. package/es/Gantt-e156bd33.js +9 -9
  597. package/es/{Grid-238d8757.js → Grid-421eb560.js} +2 -2
  598. package/es/{Grid-238d8757.js.map → Grid-421eb560.js.map} +1 -1
  599. package/es/{Gridlines-d37f55d2.js → Gridlines-6098cb5b.js} +2 -2
  600. package/es/{Gridlines-d37f55d2.js.map → Gridlines-6098cb5b.js.map} +1 -1
  601. package/es/GroupLoadingIndicator-93bcf33f.js +1 -1
  602. package/es/{HighlightText-fef35694.js → HighlightText-86d92552.js} +2 -2
  603. package/es/{HighlightText-fef35694.js.map → HighlightText-86d92552.js.map} +1 -1
  604. package/es/Icon-030b6dd4.js +3 -3
  605. package/es/IconButton-19fcf0a8.js +3 -3
  606. package/es/IconMenuButton-4118bde6.js +3 -3
  607. package/es/IconProgressButton-a595c052.js +3 -3
  608. package/es/IconSwitchButton-dcafa86c.js +3 -3
  609. package/es/IconToggleButton-94cbea2b.js +3 -3
  610. package/es/{IconUserAssistance-d9bc82d4.js → IconUserAssistance-92be9618.js} +3 -3
  611. package/es/{IconUserAssistance-d9bc82d4.js.map → IconUserAssistance-92be9618.js.map} +1 -1
  612. package/es/Indexer-01c03c68.js +4 -4
  613. package/es/InlineHelpSource-5ed4bb7d.js +1 -1
  614. package/es/InlineUserAssistance-65ca8810.js +5 -5
  615. package/es/InputDateMask-8258be53.js +7 -7
  616. package/es/{InputDatePicker-163d1e3f.js → InputDatePicker-a659ed3a.js} +10 -10
  617. package/es/{InputDatePicker-163d1e3f.js.map → InputDatePicker-a659ed3a.js.map} +1 -1
  618. package/es/InputPassword-65336899.js +4 -4
  619. package/es/InputText-21591785.js +6 -6
  620. package/es/Label-25eba25e.js +5 -5
  621. package/es/LabelValueLayout-1db91391.js +1 -1
  622. package/es/{Layer-1eb18747.js → Layer-446bf21e.js} +3 -3
  623. package/es/{Layer-1eb18747.js.map → Layer-446bf21e.js.map} +1 -1
  624. package/es/{LayerHost-8b98d97d.js → LayerHost-e6402730.js} +2 -2
  625. package/es/{LayerHost-8b98d97d.js.map → LayerHost-e6402730.js.map} +1 -1
  626. package/es/{LayerManager-221afe20.js → LayerManager-fa745cec.js} +2 -2
  627. package/es/{LayerManager-221afe20.js.map → LayerManager-fa745cec.js.map} +1 -1
  628. package/es/Legend-0e274097.js +3 -3
  629. package/es/{LineAreaChart-6fabda31.js → LineAreaChart-c996a967.js} +4 -4
  630. package/es/{LineAreaChart-6fabda31.js.map → LineAreaChart-c996a967.js.map} +1 -1
  631. package/es/{LineSeries-139bda1a.js → LineSeries-fc167ea2.js} +2 -2
  632. package/es/{LineSeries-139bda1a.js.map → LineSeries-fc167ea2.js.map} +1 -1
  633. package/es/Link-c7061441.js +1 -1
  634. package/es/List-7a0e20bb.js +5 -5
  635. package/es/{ListItemLayout-af86b17d.js → ListItemLayout-e9854821.js} +2 -2
  636. package/es/{ListItemLayout-af86b17d.js.map → ListItemLayout-e9854821.js.map} +1 -1
  637. package/es/ListView-66efb96e.js +3 -3
  638. package/es/{LiveRegion-c7bf2f21.js → LiveRegion-b56a1aa2.js} +2 -2
  639. package/es/{LiveRegion-c7bf2f21.js.map → LiveRegion-b56a1aa2.js.map} +1 -1
  640. package/es/{MaxLengthLiveRegion-d790e55c.js → MaxLengthLiveRegion-2f3d34cf.js} +3 -3
  641. package/es/{MaxLengthLiveRegion-d790e55c.js.map → MaxLengthLiveRegion-2f3d34cf.js.map} +1 -1
  642. package/es/Menu-a5bf756f.js +6 -6
  643. package/es/MenuButton-e012a909.js +2 -2
  644. package/es/MenuItem-54015ca3.js +1 -1
  645. package/es/Message-b0150c6f.js +2 -2
  646. package/es/{MessageLayer-d9129e22.js → MessageLayer-7e3184aa.js} +6 -6
  647. package/es/{MessageLayer-d9129e22.js.map → MessageLayer-7e3184aa.js.map} +1 -1
  648. package/es/MessageToast-933a0339.js +8 -8
  649. package/es/MessagesManager-91ade5dc.js +3 -3
  650. package/es/MeterBar-732e3b2c.js +5 -5
  651. package/es/MeterCircle-2156d7ff.js +5 -5
  652. package/es/{Modal-9980f6d1.js → Modal-24a0bf4b.js} +4 -4
  653. package/es/{Modal-9980f6d1.js.map → Modal-24a0bf4b.js.map} +1 -1
  654. package/es/{MonthView-d60a5df7.js → MonthView-21b2163a.js} +4 -4
  655. package/es/{MonthView-d60a5df7.js.map → MonthView-21b2163a.js.map} +1 -1
  656. package/es/{NavigationListItem-07f041e6.js → NavigationList-fb05e081.js} +8 -12
  657. package/{cjs/NavigationList-cd86b7a5.js.map → es/NavigationList-fb05e081.js.map} +1 -1
  658. package/es/NavigationListItem-193a315a.js +10 -0
  659. package/{cjs/NavigationListItem-bf607636.js.map → es/NavigationListItem-193a315a.js.map} +1 -1
  660. package/es/NumberInputText-2d1aef12.js +6 -6
  661. package/es/{OverflowTabBar-f0b62902.js → OverflowTabBar-894c7cd9.js} +3 -3
  662. package/es/{OverflowTabBar-f0b62902.js.map → OverflowTabBar-894c7cd9.js.map} +1 -1
  663. package/es/{OverflowTabBarItem-7acbcb71.js → OverflowTabBarItem-a578401b.js} +7 -6
  664. package/es/{OverflowTabBarItem-7acbcb71.js.map → OverflowTabBarItem-a578401b.js.map} +1 -1
  665. package/es/PRIVATE_BaseCardView.js +21 -21
  666. package/es/PRIVATE_Chart.js +35 -35
  667. package/es/PRIVATE_CheckboxControl.js +23 -23
  668. package/es/PRIVATE_CheckboxRadioField.js +25 -25
  669. package/es/PRIVATE_ClearIcon.js +17 -17
  670. package/es/PRIVATE_DatePickerHeader.js +18 -18
  671. package/es/PRIVATE_DatePickerLayout.js +4 -4
  672. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  673. package/es/PRIVATE_FormControls.js +19 -19
  674. package/es/PRIVATE_IconSwitchButton.js +15 -15
  675. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  676. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  677. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  678. package/es/PRIVATE_Icons/DragV.js +15 -15
  679. package/es/PRIVATE_Icons/WarningS.js +15 -15
  680. package/es/PRIVATE_List.js +19 -19
  681. package/es/PRIVATE_Message.js +18 -18
  682. package/es/PRIVATE_MessageLayer.js +12 -12
  683. package/es/PRIVATE_MonthView.js +7 -7
  684. package/es/PRIVATE_MonthYearGridView.js +7 -7
  685. package/es/PRIVATE_PlotArea.js +4 -4
  686. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  687. package/es/PRIVATE_RichSelectionCommon.js +26 -26
  688. package/es/PRIVATE_SelectCommon.js +28 -28
  689. package/es/PRIVATE_StyledCard.js +4 -4
  690. package/es/PRIVATE_StyledCheckbox.js +15 -15
  691. package/es/PRIVATE_Table.js +24 -24
  692. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  693. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  694. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  695. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  696. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  697. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  698. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  699. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  700. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  701. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  702. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  703. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  704. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  705. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  706. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  707. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
  708. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  709. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  710. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  711. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  712. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  713. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  714. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  715. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  716. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  717. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  718. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  719. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
  720. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  721. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  722. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  723. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  724. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  725. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  726. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  727. package/es/PRIVATE_TimeComponent.js +17 -17
  728. package/es/PRIVATE_VisOverview.js +15 -15
  729. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  730. package/es/PictoChart-9624c62e.js +6 -6
  731. package/es/PieChart-87a2913f.js +6 -6
  732. package/es/{Popup-f6774b40.js → Popup-d8bf7f4d.js} +9 -9
  733. package/es/{Popup-f6774b40.js.map → Popup-d8bf7f4d.js.map} +1 -1
  734. package/es/{ProgressBar-6d816723.js → ProgressBar-2fa99d6f.js} +3 -3
  735. package/es/{ProgressBar-6d816723.js.map → ProgressBar-2fa99d6f.js.map} +1 -1
  736. package/es/ProgressButton-bb52347a.js +3 -3
  737. package/es/ProgressButtonLabelLayout-f1d097d6.js +3 -3
  738. package/es/{ProgressCircle-bbcf67fd.js → ProgressCircle-faf79b79.js} +2 -2
  739. package/es/{ProgressCircle-bbcf67fd.js.map → ProgressCircle-faf79b79.js.map} +1 -1
  740. package/es/RadioItem-81e9e082.js +6 -6
  741. package/es/RatingGauge-5e1e75b4.js +8 -8
  742. package/es/ReadonlyTextFieldInput-f407b86c.js +1 -1
  743. package/es/{RemovableNavigationListItem-9cb23511.js → RemovableNavigationListItem-21cd36b7.js} +4 -3
  744. package/es/{RemovableNavigationListItem-9cb23511.js.map → RemovableNavigationListItem-21cd36b7.js.map} +1 -1
  745. package/es/RemovableTabBarItem-60574a52.js +2 -2
  746. package/es/{ReorderableTabBar-fc76a33b.js → ReorderableTabBar-c280e7d4.js} +5 -5
  747. package/es/{ReorderableTabBar-fc76a33b.js.map → ReorderableTabBar-c280e7d4.js.map} +1 -1
  748. package/es/RevealToggleIcon-8e650973.js +1 -1
  749. package/es/{ScatterChart-1f818935.js → ScatterChart-0ac04f9d.js} +4 -4
  750. package/es/{ScatterChart-1f818935.js.map → ScatterChart-0ac04f9d.js.map} +1 -1
  751. package/es/SectionalLegend-64670096.js +4 -4
  752. package/es/{SectionedContent-48fa242f.js → SectionedContent-3274d8f9.js} +5 -5
  753. package/es/{SectionedContent-48fa242f.js.map → SectionedContent-3274d8f9.js.map} +1 -1
  754. package/es/SegmentStyles.styles.css +11 -8
  755. package/es/SegmentStyles.styles2.css +8 -11
  756. package/es/SelectMultiple-a6799615.js +8 -8
  757. package/es/SelectSingle-ae14678c.js +7 -7
  758. package/es/{SelectionCard-ce3012e8.js → SelectionCard-1ed9cf08.js} +2 -2
  759. package/es/{SelectionCard-ce3012e8.js.map → SelectionCard-1ed9cf08.js.map} +1 -1
  760. package/es/Selector-41618991.js +1 -1
  761. package/es/{SelectorAll-27744634.js → SelectorAll-f52550a6.js} +7 -7
  762. package/es/{SelectorAll-27744634.js.map → SelectorAll-f52550a6.js.map} +1 -1
  763. package/es/{Sheet-924cfdab.js → Sheet-da412baf.js} +3 -3
  764. package/es/{Sheet-924cfdab.js.map → Sheet-da412baf.js.map} +1 -1
  765. package/es/SplitMenuButton-5cb6e8db.js +2 -2
  766. package/es/{StyledCard-c8d9836f.js → StyledCard-362bd74b.js} +2 -2
  767. package/es/{StyledCard-c8d9836f.js.map → StyledCard-362bd74b.js.map} +1 -1
  768. package/es/{StyledLabelValueLayout-5b9a731a.js → StyledLabelValueLayout-d4881d3b.js} +2 -2
  769. package/es/{StyledLabelValueLayout-5b9a731a.js.map → StyledLabelValueLayout-d4881d3b.js.map} +1 -1
  770. package/es/StyledTextField-6d6dd43e.js +3 -3
  771. package/es/{TabBar-2858ff9c.js → TabBar-4d7054f7.js} +11 -6
  772. package/es/{TabBar-2858ff9c.js.map → TabBar-4d7054f7.js.map} +1 -1
  773. package/es/TabBarItem-b97091e4.js +3 -3
  774. package/es/TabBarLayout-bb3f9f69.js +1 -1
  775. package/es/{TabBarMixed-a4beabce.js → TabBarMixed-b8e2427c.js} +11 -6
  776. package/es/{TabBarMixed-a4beabce.js.map → TabBarMixed-b8e2427c.js.map} +1 -1
  777. package/es/{TabBarMixedSeparator-7669e2f0.js → TabBarMixedSeparator-51c518a1.js} +2 -2
  778. package/es/{TabBarMixedSeparator-7669e2f0.js.map → TabBarMixedSeparator-51c518a1.js.map} +1 -1
  779. package/es/Table-527429e9.js +9 -9
  780. package/es/TagCloud-0fe9b648.js +8 -8
  781. package/es/TextArea-a888d849.js +5 -5
  782. package/es/TextAreaAutosize-c2a52cba.js +5 -5
  783. package/es/TextField-500c0227.js +3 -3
  784. package/es/TextFieldInput-cb551f4e.js +1 -1
  785. package/es/Theme-redwood/theme.css +454 -454
  786. package/es/Theme-stable/theme.css +348 -348
  787. package/es/TimeComponentCanvas2D-a5baa5f6.js +5 -5
  788. package/es/Toolbar-35426a1b.js +1 -1
  789. package/es/TruncatingBadge-69621d89.js +1 -1
  790. package/es/TruncatingText-fd66e0e0.js +1 -1
  791. package/es/UNSAFE_ActionCard.js +3 -3
  792. package/es/UNSAFE_Badge/themes/redwood/BadgeTheme.js +1 -1
  793. package/es/UNSAFE_Badge/themes/redwood/BadgeVariants.css.js +1 -1
  794. package/es/UNSAFE_Badge/themes/stable/BadgeTheme.js +1 -1
  795. package/es/UNSAFE_Badge/themes/stable/BadgeVariants.css.js +1 -1
  796. package/es/UNSAFE_Badge.js +1 -1
  797. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +36 -36
  798. package/es/UNSAFE_BarChart.js +36 -36
  799. package/es/UNSAFE_BaseButton.js +3 -3
  800. package/es/UNSAFE_Button.js +3 -3
  801. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +22 -22
  802. package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutTheme.js +1 -1
  803. package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutVariants.css.js +1 -1
  804. package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutTheme.js +1 -1
  805. package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutVariants.css.js +1 -1
  806. package/es/UNSAFE_ButtonLayout.js +1 -1
  807. package/es/UNSAFE_ButtonSet.js +4 -4
  808. package/es/UNSAFE_ButtonSetButton.js +3 -3
  809. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  810. package/es/UNSAFE_ButtonSetItem.js +15 -15
  811. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  812. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  813. package/es/UNSAFE_Card.js +5 -5
  814. package/es/UNSAFE_CardFlexView.js +21 -21
  815. package/es/UNSAFE_CardGridView.js +21 -21
  816. package/es/UNSAFE_Center.js +5 -5
  817. package/es/UNSAFE_Checkbox.js +23 -23
  818. package/es/UNSAFE_CheckboxItem.js +25 -25
  819. package/es/UNSAFE_CheckboxSet.js +24 -24
  820. package/es/UNSAFE_Chip.js +2 -2
  821. package/es/UNSAFE_Collapsible.js +17 -17
  822. package/es/UNSAFE_ComboChart.js +38 -38
  823. package/es/UNSAFE_ComponentMessage.js +18 -18
  824. package/es/UNSAFE_ConveyorBelt.js +15 -15
  825. package/es/UNSAFE_DatePicker.js +23 -23
  826. package/es/UNSAFE_Diagram.js +20 -20
  827. package/es/UNSAFE_Dialog.js +21 -21
  828. package/es/UNSAFE_DragHandle.js +17 -17
  829. package/es/UNSAFE_DrawerLayout.js +12 -12
  830. package/es/UNSAFE_DrawerPopup.js +13 -13
  831. package/es/UNSAFE_Dropdown.js +13 -13
  832. package/es/UNSAFE_Environment.js +4 -4
  833. package/es/UNSAFE_ExpandableList.js +22 -22
  834. package/es/UNSAFE_FilePicker.js +4 -4
  835. package/es/UNSAFE_Flex.js +4 -4
  836. package/es/UNSAFE_Floating.js +11 -11
  837. package/es/UNSAFE_FormLayout.js +2 -2
  838. package/es/UNSAFE_Gantt.js +22 -22
  839. package/es/UNSAFE_Grid.js +4 -4
  840. package/es/UNSAFE_HighlightText.js +4 -4
  841. package/es/UNSAFE_Icon.js +15 -15
  842. package/es/UNSAFE_IconButton.js +15 -15
  843. package/es/UNSAFE_IconMenuButton.js +21 -21
  844. package/es/UNSAFE_IconProgressButton.js +18 -18
  845. package/es/UNSAFE_IconToggleButton.js +15 -15
  846. package/es/UNSAFE_Indexer.js +6 -6
  847. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  848. package/es/UNSAFE_InputDateMask.js +26 -26
  849. package/es/UNSAFE_InputDatePicker.js +115 -115
  850. package/es/UNSAFE_InputPassword.js +24 -24
  851. package/es/UNSAFE_InputSensitiveText.js +26 -26
  852. package/es/UNSAFE_InputText.js +27 -27
  853. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  854. package/es/UNSAFE_InputTimeMask.js +26 -26
  855. package/es/UNSAFE_Label.js +23 -23
  856. package/es/UNSAFE_LabelValueLayout.js +4 -4
  857. package/es/UNSAFE_LabelledLink.js +25 -25
  858. package/es/UNSAFE_Layer.js +8 -8
  859. package/es/UNSAFE_Legend.js +25 -25
  860. package/es/UNSAFE_LineAreaChart.js +38 -38
  861. package/es/UNSAFE_Link.js +2 -2
  862. package/es/UNSAFE_ListItemLayout.js +5 -5
  863. package/es/UNSAFE_ListView.js +28 -28
  864. package/es/UNSAFE_LiveRegion.js +4 -4
  865. package/es/UNSAFE_Menu.js +23 -23
  866. package/es/UNSAFE_MenuButton.js +21 -21
  867. package/es/UNSAFE_MessageBanner.js +18 -18
  868. package/es/UNSAFE_MessageToast.js +21 -21
  869. package/es/UNSAFE_MeterBar.js +16 -16
  870. package/es/UNSAFE_MeterCircle.js +17 -17
  871. package/es/UNSAFE_Modal.js +9 -9
  872. package/es/UNSAFE_NavigationList.js +43 -41
  873. package/es/UNSAFE_NavigationList.js.map +1 -1
  874. package/es/UNSAFE_NavigationListCommon.js +71 -70
  875. package/es/UNSAFE_NavigationListCommon.js.map +1 -1
  876. package/es/UNSAFE_NumberInputText.js +26 -26
  877. package/es/UNSAFE_OverflowTabBar.js +53 -51
  878. package/es/UNSAFE_OverflowTabBar.js.map +1 -1
  879. package/es/UNSAFE_PictoChart.js +14 -14
  880. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
  881. package/es/UNSAFE_PieChart.js +22 -22
  882. package/es/UNSAFE_Popup.js +17 -17
  883. package/es/UNSAFE_ProgressBar.js +5 -5
  884. package/es/UNSAFE_ProgressButton.js +18 -18
  885. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  886. package/es/UNSAFE_ProgressCircle.js +4 -4
  887. package/es/UNSAFE_RadioItem.js +23 -23
  888. package/es/UNSAFE_RadioSet.js +24 -24
  889. package/es/UNSAFE_RatingGauge.js +17 -17
  890. package/es/UNSAFE_ReorderableTabBar.js +49 -38
  891. package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
  892. package/es/UNSAFE_RichCheckboxSet.js +26 -26
  893. package/es/UNSAFE_RichRadioSet.js +26 -26
  894. package/es/UNSAFE_RichSelectionItem.js +28 -28
  895. package/es/UNSAFE_ScatterChart.js +38 -38
  896. package/es/UNSAFE_SectionalLegend.js +26 -26
  897. package/es/UNSAFE_SelectMultiple.js +31 -31
  898. package/es/UNSAFE_SelectSingle.js +31 -31
  899. package/es/UNSAFE_SelectionCard.js +5 -5
  900. package/es/UNSAFE_Selector.js +15 -15
  901. package/es/UNSAFE_SelectorAll.js +19 -19
  902. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +15 -15
  903. package/es/UNSAFE_Sheet.js +12 -12
  904. package/es/UNSAFE_SplitMenuButton.js +21 -21
  905. package/es/UNSAFE_TabBar.js +53 -51
  906. package/es/UNSAFE_TabBar.js.map +1 -1
  907. package/es/UNSAFE_TabBarCommon.js +45 -43
  908. package/es/UNSAFE_TabBarCommon.js.map +1 -1
  909. package/es/UNSAFE_TabBarMixed.js +63 -61
  910. package/es/UNSAFE_TabBarMixed.js.map +1 -1
  911. package/es/UNSAFE_TableView.js +24 -24
  912. package/es/UNSAFE_TagCloud.js +24 -24
  913. package/es/UNSAFE_TextArea.js +26 -26
  914. package/es/UNSAFE_TextAreaAutosize.js +26 -26
  915. package/es/UNSAFE_TextField.js +8 -8
  916. package/es/UNSAFE_ToggleButton.js +3 -3
  917. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +24 -24
  918. package/es/UNSAFE_Toolbar.js +5 -5
  919. package/es/UNSAFE_Train.js +16 -16
  920. package/es/UNSAFE_TruncatingBadge.js +17 -17
  921. package/es/UNSAFE_TruncatingText.js +16 -16
  922. package/es/UNSAFE_UserAssistance.js +24 -24
  923. package/es/UNSAFE_View.js +7 -7
  924. package/es/UNSAFE_VirtualizedListView.js +19 -19
  925. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  926. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  927. package/es/UNSAFE_VisStatusMessage.js +6 -6
  928. package/es/UNSAFE_WindowOverlay.js +4 -4
  929. package/es/{View-cf6dfd8e.js → View-afe98b65.js} +5 -5
  930. package/es/{View-cf6dfd8e.js.map → View-afe98b65.js.map} +1 -1
  931. package/es/{VisNoData-d6e475d8.js → VisNoData-9ceb58f4.js} +3 -3
  932. package/es/{VisNoData-d6e475d8.js.map → VisNoData-9ceb58f4.js.map} +1 -1
  933. package/es/{VisProgressiveLoader-36053d5a.js → VisProgressiveLoader-36c728ac.js} +3 -3
  934. package/es/{VisProgressiveLoader-36053d5a.js.map → VisProgressiveLoader-36c728ac.js.map} +1 -1
  935. package/es/{VisTabularDatatip-3497f5ff.js → VisTabularDatatip-59629377.js} +2 -2
  936. package/es/{VisTabularDatatip-3497f5ff.js.map → VisTabularDatatip-59629377.js.map} +1 -1
  937. package/es/{WindowOverlay-ca2baa48.js → WindowOverlay-a07b2e24.js} +2 -2
  938. package/es/{WindowOverlay-ca2baa48.js.map → WindowOverlay-a07b2e24.js.map} +1 -1
  939. package/es/{YearsGridView-2c978d9f.js → YearsGridView-c5c58bf9.js} +4 -4
  940. package/es/{YearsGridView-2c978d9f.js.map → YearsGridView-c5c58bf9.js.map} +1 -1
  941. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  942. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  943. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  944. package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
  945. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  946. package/es/hooks/PRIVATE_useChartEvents.js +18 -18
  947. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  948. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  949. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  950. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  951. package/es/hooks/PRIVATE_useFloating.js +4 -4
  952. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  953. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  954. package/es/hooks/PRIVATE_useSelection.js +4 -4
  955. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  956. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
  957. package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
  958. package/es/hooks/PRIVATE_useVisDragModeControls.js +17 -17
  959. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  960. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  961. package/es/hooks/PRIVATE_useVisSelection.js +13 -13
  962. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  963. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  964. package/es/hooks/UNSAFE_useDensity.js +3 -3
  965. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  966. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  967. package/es/hooks/UNSAFE_useScale.js +3 -3
  968. package/es/hooks/UNSAFE_useTestId.js +3 -3
  969. package/es/hooks/UNSAFE_useTheme.js +3 -3
  970. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  971. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  972. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  973. package/es/hooks/UNSAFE_useUser.js +3 -3
  974. package/es/{index-3fdaba9a.js → index-e33bcd96.js} +2 -2
  975. package/es/index-e33bcd96.js.map +1 -0
  976. package/es/listViewSelectionTests-d1f64e6f.js +3 -3
  977. package/es/{popupUtils-24a723a0.js → popupUtils-58411a98.js} +2 -2
  978. package/es/{popupUtils-24a723a0.js.map → popupUtils-58411a98.js.map} +1 -1
  979. package/es/{render-4d96f0d2.js → render-343557e9.js} +3 -3
  980. package/es/{render-4d96f0d2.js.map → render-343557e9.js.map} +1 -1
  981. package/es/{tabbableUtils-070beeed.js → tabbableUtils-d6485f5e.js} +3 -3
  982. package/es/{tabbableUtils-070beeed.js.map → tabbableUtils-d6485f5e.js.map} +1 -1
  983. package/es/{testData-e1df8616.js → testData-d5181e9f.js} +3 -3
  984. package/es/{testData-e1df8616.js.map → testData-d5181e9f.js.map} +1 -1
  985. package/es/{tooltipUtils-35655bd6.js → tooltipUtils-768450a7.js} +5 -5
  986. package/es/{tooltipUtils-35655bd6.js.map → tooltipUtils-768450a7.js.map} +1 -1
  987. package/es/useCellNavigation-bdb3248d.js +1 -1
  988. package/es/useChartContextMenu-61fe46b8.js +2 -2
  989. package/es/{useChartDatatip-b0d35cfe.js → useChartDatatip-d6a6c5e1.js} +4 -4
  990. package/es/{useChartDatatip-b0d35cfe.js.map → useChartDatatip-d6a6c5e1.js.map} +1 -1
  991. package/es/{useColorScheme-8e5e458d.js → useColorScheme-c4e237ad.js} +2 -2
  992. package/es/{useColorScheme-8e5e458d.js.map → useColorScheme-c4e237ad.js.map} +1 -1
  993. package/es/useContextMenu-3c62d9eb.js +2 -2
  994. package/es/{useCssVars-608cb842.js → useCssVars-d72a8439.js} +5 -5
  995. package/es/{useCssVars-608cb842.js.map → useCssVars-d72a8439.js.map} +1 -1
  996. package/es/{useCurrentBgColor-ee671513.js → useCurrentBgColor-14745af3.js} +2 -2
  997. package/es/{useCurrentBgColor-ee671513.js.map → useCurrentBgColor-14745af3.js.map} +1 -1
  998. package/es/{useCurrentKey-b8e62707.js → useCurrentKey-7287061f.js} +2 -2
  999. package/es/{useCurrentKey-b8e62707.js.map → useCurrentKey-7287061f.js.map} +1 -1
  1000. package/es/{useDatatip-daec4346.js → useDatatip-9635bc2f.js} +4 -4
  1001. package/es/{useDatatip-daec4346.js.map → useDatatip-9635bc2f.js.map} +1 -1
  1002. package/es/{useDensity-556ca8b2.js → useDensity-c17603b2.js} +2 -2
  1003. package/es/{useDensity-556ca8b2.js.map → useDensity-c17603b2.js.map} +1 -1
  1004. package/es/{useFloating-abfd69eb.js → useFloating-953362cf.js} +2 -2
  1005. package/es/{useFloating-abfd69eb.js.map → useFloating-953362cf.js.map} +1 -1
  1006. package/es/{useKeyboardEvents-7202253d.js → useKeyboardEvents-2378a650.js} +2 -2
  1007. package/es/{useKeyboardEvents-7202253d.js.map → useKeyboardEvents-2378a650.js.map} +1 -1
  1008. package/es/useLegendContextMenu-66d6eb7e.js +4 -4
  1009. package/es/{useMeterDatatip-dcd2a05e.js → useMeterDatatip-834e67e1.js} +3 -3
  1010. package/es/{useMeterDatatip-dcd2a05e.js.map → useMeterDatatip-834e67e1.js.map} +1 -1
  1011. package/{cjs/useNavigationListItem-bf89c20b.js → es/useNavigationListItem-a28f2c34.js} +23 -27
  1012. package/{cjs/useNavigationListItem-bf89c20b.js.map → es/useNavigationListItem-a28f2c34.js.map} +1 -1
  1013. package/es/{useOutsideClick-817bf098.js → useOutsideClick-fd9ad806.js} +2 -2
  1014. package/es/{useOutsideClick-817bf098.js.map → useOutsideClick-fd9ad806.js.map} +1 -1
  1015. package/es/{usePopupAnimation-6e0781b5.js → usePopupAnimation-f017bc43.js} +2 -2
  1016. package/es/{usePopupAnimation-6e0781b5.js.map → usePopupAnimation-f017bc43.js.map} +1 -1
  1017. package/es/{usePrefixSuffix-0874343c.js → usePrefixSuffix-5a74f2c4.js} +2 -2
  1018. package/es/{usePrefixSuffix-0874343c.js.map → usePrefixSuffix-5a74f2c4.js.map} +1 -1
  1019. package/es/{useReorderableItem-99a9dbce.js → useReorderableItem-22ea4c46.js} +3 -3
  1020. package/es/{useReorderableItem-99a9dbce.js.map → useReorderableItem-22ea4c46.js.map} +1 -1
  1021. package/es/{useRovingTabIndexContainer-f7972085.js → useRovingTabIndexContainer-bc7ae447.js} +2 -2
  1022. package/es/{useRovingTabIndexContainer-f7972085.js.map → useRovingTabIndexContainer-bc7ae447.js.map} +1 -1
  1023. package/es/{useScale-1cdb639e.js → useScale-83881775.js} +2 -2
  1024. package/es/{useScale-1cdb639e.js.map → useScale-83881775.js.map} +1 -1
  1025. package/es/useSelectCommon-62eb8f41.js +11 -11
  1026. package/es/{useSelectDrill-5525e5a3.js → useSelectDrill-f4781439.js} +3 -3
  1027. package/es/{useSelectDrill-5525e5a3.js.map → useSelectDrill-f4781439.js.map} +1 -1
  1028. package/es/{useSelection-8be05a70.js → useSelection-0bd0618d.js} +5 -5
  1029. package/es/{useSelection-8be05a70.js.map → useSelection-0bd0618d.js.map} +1 -1
  1030. package/es/{useSelection-2d26ab04.js → useSelection-649fd4f1.js} +2 -2
  1031. package/es/{useSelection-2d26ab04.js.map → useSelection-649fd4f1.js.map} +1 -1
  1032. package/es/useTabBar-cbac0c2e.js +1 -1
  1033. package/es/{useTestId-474ac6ca.js → useTestId-9b504481.js} +2 -2
  1034. package/es/{useTestId-474ac6ca.js.map → useTestId-9b504481.js.map} +1 -1
  1035. package/es/{useTheme-5aa36f52.js → useTheme-93c07059.js} +2 -2
  1036. package/es/{useTheme-5aa36f52.js.map → useTheme-93c07059.js.map} +1 -1
  1037. package/es/{useThemeInterpolations-05e58770.js → useThemeInterpolations-8dd8029f.js} +5 -5
  1038. package/es/{useThemeInterpolations-05e58770.js.map → useThemeInterpolations-8dd8029f.js.map} +1 -1
  1039. package/es/{useTooltip-138c94ee.js → useTooltip-89ca3f3e.js} +5 -5
  1040. package/es/{useTooltip-138c94ee.js.map → useTooltip-89ca3f3e.js.map} +1 -1
  1041. package/es/{useTooltipOnTruncation-a97211b6.js → useTooltipOnTruncation-175bf8a6.js} +4 -4
  1042. package/es/{useTooltipOnTruncation-a97211b6.js.map → useTooltipOnTruncation-175bf8a6.js.map} +1 -1
  1043. package/es/{useTranslationBundle-2df40edf.js → useTranslationBundle-09302c20.js} +2 -2
  1044. package/es/{useTranslationBundle-2df40edf.js.map → useTranslationBundle-09302c20.js.map} +1 -1
  1045. package/es/{useUser-6b2e271a.js → useUser-1cd223a9.js} +2 -2
  1046. package/es/{useUser-6b2e271a.js.map → useUser-1cd223a9.js.map} +1 -1
  1047. package/es/useVisDragModeControls-ed260d12.js +1 -1
  1048. package/es/{useVisEvents-d8652100.js → useVisEvents-8877743b.js} +2 -2
  1049. package/es/{useVisEvents-d8652100.js.map → useVisEvents-8877743b.js.map} +1 -1
  1050. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  1051. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  1052. package/es/utils/UNSAFE_popupUtils.js +8 -8
  1053. package/es/{withDirectionIcon-fe0b69a7.js → withDirectionIcon-19a1d777.js} +2 -2
  1054. package/es/{withDirectionIcon-fe0b69a7.js.map → withDirectionIcon-19a1d777.js.map} +1 -1
  1055. package/es/withThemeProps-1621f692.js +2 -2
  1056. package/package.json +2 -2
  1057. package/amd/Card-4d47fe95.js +0 -2
  1058. package/amd/CheckboxSetContext-2e486ea8.js +0 -2
  1059. package/amd/CheckboxSetContext-2e486ea8.js.map +0 -1
  1060. package/amd/CompactLabelAssistance-f3d093c7.js +0 -2
  1061. package/amd/Grid-e6f0d4a6.js +0 -2
  1062. package/amd/HighlightText-d1b13537.js +0 -2
  1063. package/amd/InputDatePicker-03bdeb95.js +0 -2
  1064. package/amd/LiveRegion-17fea064.js +0 -2
  1065. package/amd/SectionedContent-f508dbae.js +0 -2
  1066. package/amd/SelectionCard-38a1007f.js +0 -2
  1067. package/amd/StyledCard-1f13531d.js +0 -2
  1068. package/amd/TextArea-fe8d9067.js +0 -2
  1069. package/amd/TextAreaAutosize-c9c00a1c.js +0 -2
  1070. package/amd/index-9fe6dba4.js.map +0 -1
  1071. package/amd/tooltipUtils-36ddb881.js +0 -2
  1072. package/amd/useChartDatatip-777fcfb2.js +0 -2
  1073. package/amd/useCssVars-311f2956.js +0 -2
  1074. package/amd/useCurrentKey-e8791885.js +0 -2
  1075. package/amd/useKeyboardEvents-f8b3ead1.js +0 -2
  1076. package/amd/useMeterDatatip-5d0b02c1.js +0 -2
  1077. package/amd/useThemeInterpolations-3ca974f9.js +0 -2
  1078. package/amd/useTooltipOnTruncation-7721f587.js +0 -2
  1079. package/cjs/BaseNavigationListItem-3dbb8d31.js +0 -49
  1080. package/cjs/MaxLengthCounter-9ab3f74b.js +0 -27
  1081. package/cjs/NavigationListItem-bf607636.js +0 -12
  1082. package/es/BaseNavigationListItem-af84a9ee.js +0 -119
  1083. package/es/index-3fdaba9a.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-c6b5de04', 'preact', 'preact/hooks', './UNSAFE_PictoChart/themes/PictoChartStyles.css', './classNames-08d99695', './useSelection-6e62de17', './useTranslationBundle-68275657', './mergeProps-bcfa6a92', './Common/themes/themeContract.css', './utils-32e81a13', './SvgSymbol-328be71d', './accUtils-93ee6f16', './useUser-e8dd7f7c', './layoutUtils-ba7693df', './eventsUtils-edf8f4e5', './useVisHover-28319fef', './useVisDrill-af6f9469', './useDatatip-8a63fb35', './useItemFocus-75d6510d', './LayerHost-27dfba9e', 'preact/compat', './datatipUtils-72a1fe48', './useTestId-0140aa44', './useVisTouchResponse-88a7bb09', './stringUtils-0ae982c2'], (function(e,t,o,n,r,i,s,a,c,l,d,u,f,m,h,p,g,I,b,C,x,v,S,w,y,R,F){"use strict";const P=n.createContext({}),k=.25;function M(e,t){return Math.ceil(e/t)*t}const D=e=>"bottomStart"===e||"bottomEnd"===e,T=e=>"topEnd"===e||"bottomEnd"===e,V=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)if(e[o+i][t+r])return!1;return!0},$=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)e[o+i][t+r]=!0},E=(e,t,o,n,r,i)=>{if(i){const i=E(e,o,t,r,n,!1);return i?{col:i.row,row:i.col}:void 0}for(let i=0;i<r-o+1;i++)for(let r=0;r<n-t+1;r++)if(V(e,r,i,t,o))return $(e,r,i,t,o),{col:r,row:i}};function U(e){const t=e.dataset.idx;if(void 0!==t)return{idx:Number(t)}}function H(e,t,o,n,r,i,s,a,c){let l=!1;if(!n){const e=!!s&&t===s.idx,o=!!r&&t===r.idx;l=!!(e&&s?.isCurrent||o&&r?.isCurrent)}const d=function(e,t){return!t||0===t.length||new Set(t).has(e)}(e.id,a),u=function(e,t){return!(!t||0===t.length)&&new Set(t).has(e)}(e.id,i);return{isCurrent:l,isHighlighted:d,isSelected:u,hasSelection:i&&0!==i.length,isFocused:!!s&&A(s,t),key:e.id,itemIdx:t,countIdx:o,activeId:l?c:void 0,isReadOnly:n,item:e}}function j(e,t){return e?.idx===t?.idx}function A(e,t){return!!e.isFocusVisible&&e.idx===t}function N(e,t,o){return`${o?.vis_labelCountWithTotal({itemCount:e.toString(),totalCount:t.toString()})}`}const B=({context:e,markerProps:o})=>{const{supportsSelection:n}=r.useContext(P),i=function(e,t,o,n,r,i){const s="human"===e,a=o||r&&i,c="ellipse"===e||"rectangle"===e;t=""!==t?t:u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const l=n?d.colorSchemeVars.textIcon.primary:a?t:"";return{markerShape:e,tx:s?70:void 0,ty:s?60:void 0,markerColor:t,borderColor:n||a?u.rgb(d.colorSchemeVars.palette.neutral[0]):t,outerBorderColor:l,markerScale:c&&!l?1:.85,setAspectRatioNone:!!c}}(o.shape,o.color,e.state.focused,e.state.selected,e.state.hovered,n);return t.jsx(f.SvgSymbol,{...i})};function L(e,t){const{idx:o}=e;return t[o]}function W(e){return{getItem:t=>L(t,e),getDetailFromInfo:t=>{if(!t)return{id:void 0,data:void 0};const o=L(t,e);return{id:o?o.id:void 0,data:o}},getPrevItemInfo:e=>function(e){let t=e.idx;return t=Math.max(0,t-1),{idx:t}}(e),getNextItemInfo:t=>function(e,t){let o=e.idx;return o=Math.min(t.length-1,o+1),{idx:o}}(t,e)}}const q=({touchResponse:e,content:t,borderColor:o,width:n,focusedItemRef:r,focusedItemInfo:i})=>{const{direction:s}=h.useUser(),a="rtl"===s,c=r.current?.getBoundingClientRect(),{datatipContent:l,datatipProps:d}=C.useDatatip({content:t,placement:"top-start",offset:p.calculateOffset(a,n,i.isCurrent?c:void 0),borderColor:o,anchor:i?.isCurrent?"element":"pointer",touchResponse:e});return{datatipContent:l,datatipProps:d}},O=e=>{const o=e.supportsSelection||e.supportsDrill,{dimmedItemStyle:n,interactiveItemStyle:r}=i.styles,a=s.classNames([o&&r,!e.isHighlighted&&n]),c=0===e.countIdx,l=c&&function(e,t,o,n,r,i,s,a,c){const l=r?N(e,t,r):"";return a=a||`${n?n+": ":""}${l}`,{"aria-label":m.generateAriaLabel(r,a,{isSelected:o||s?i:void 0})||void 0,role:"img",id:c}}(e.item.count||1,e.totalCount,!!e.supportsSelection,e.item.label,e.translations,e.isSelected,e.hasSelection,e.item.accessibleLabel,e.activeId)||{};return t.jsx("div",{ref:c?e.focusedItemRef:void 0,id:e.activeId,"data-idx":e.itemIdx,"data-count-idx":e.countIdx,style:{gridRow:`${e.row+1} / span ${e.item.rowSpan||1}`,gridColumn:`${e.column+1} / span ${e.item.columnSpan||1}`},class:a,...l,children:e.children})};function _({width:e,height:o,columnWidth:n,rowHeight:f,items:m,columnCount:C,rowCount:v,layout:S,layoutOrigin:w="topStart",selectionMode:P="none",highlightedIds:V=[],selectedIds:$=[],drilling:A="off",onItemDrill:B,onItemHover:L,isFlowingWidth:_,isFlowingHeight:z,onItemFocus:G,...K}){const Z=0!==m.length,J=function(e){let t=0;for(let o=0;o<e.length;o++)t+=e[o].count||1;return t}(m),Q=c.useTranslationBundle("@oracle/oraclejet-preact"),X=!(!P||"none"===P),Y=null!=B,ee=!X&&!Y&&null===L&&null===G,te=y.useTestId(K.testId),oe=new Map(m.map((e=>[e.id,e]))),{getItem:ne,getDetailFromInfo:re,getPrevItemInfo:ie,getNextItemInfo:se}=W(m),{touchResponse:ae,touchResponseStyle:ce}=R.useVisTouchResponse({type:"touchStart"}),{hoveredItemInfo:le,focusedItemInfo:de,activeId:ue,eventsProps:fe}=function(e,t,o,n,i,s,a,c,d,u){const[f,m]=r.useState({idx:0}),[C,x]=r.useState(),v=r.useRef(),{direction:S}=h.useUser(),w="rtl"===S,y=I.useVisHover((e=>{const o=U(e.target);j(o,C)||(x(o&&{...o,isCurrent:!0}),v.current=p.getRandomId(),t&&(m({...f,isCurrent:!1}),d?.(n(o))))}),void 0,(()=>{x(void 0),v.current=void 0,t&&d?.(n())}),e),R=r.useCallback((e=>{const{id:t,data:o}=n(e);null!=t&&o&&(c?.({id:t,data:o}),v.current=p.getRandomId())}),[n,c]),F=r.useCallback((e=>{"keydown"===e.type?"on"==a&&R(f):R(U(e.target))}),[a,f,R]),P=b.useVisDrill(o,F);if(!t)return{focusedItemInfo:f,hoveredItemInfo:C,eventsProps:y};function k(e){u?.(n(e)),v.current=p.getRandomId(),m(e)}function M(e){j(e,f)||(e.isCurrent=!0,e.isFocusVisible=!0,C&&x({...C,isCurrent:!1}),k(e))}return{focusedItemInfo:f,hoveredItemInfo:C,activeId:v.current,eventsProps:l.mergeProps(P,y,{onKeyUp:e=>{"Tab"===e.code&&(k({...f,isCurrent:!0,isFocusVisible:!0}),g.cancelEvent(e))},onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":M(s(f)),g.cancelEvent(e);break;case"ArrowUp":M(i(f)),g.cancelEvent(e);break;case"ArrowRight":M(w?i(f):s(f)),g.cancelEvent(e);break;case"ArrowLeft":M(w?s(f):i(f)),g.cancelEvent(e)}},onBlur:()=>{(null!=C||f.isCurrent)&&u?.(n(void 0));const e={...f,isCurrent:!1,isFocusVisible:!1};m(e)}})}}(ae,!ee&&Z,P,re,ie,se,A,B,L,G),{selectionContent:me,selectionProps:he}=a.useSelection({idExtracter:e=>{const t="keyup"===e.type?de:U(e.target);return re(t).id},isDrillEnabled:"off"!=A,selection:$,selectionMode:P,getDataById:e=>oe.get(e),onChange:K.onSelectionChange}),pe=n&&parseFloat(n),ge=f&&parseFloat(f),Ie=s.classNames([i.baseStyles]),{focusedItemRef:be}=x.useItemFocus(de),{content:Ce,borderColor:xe}=function(e,t,o,n,r,i,s){let a;const c=r?.isCurrent;let l,f;c&&null!=e[r.idx].id&&(a=r),n&&n.isCurrent&&(a=n);let m=u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const h=a&&t(a,e);if(h&&i){const e=h&&{data:h},{content:t,borderColor:n}=i(e);l=t,m=n||m,f=s?N(h.count||1,o,s):""}return{borderColor:m,content:l||a&&t(a,e)?.accessibleLabel||a&&t(a,e)?.label+": "+f||f}}(m,ne,J,de,le,K.datatip,Q),{calcColCount:ve,calcRowCount:Se,calcColWidth:we,calcRowHeight:ye,gridGap:Re}=function(e,t,o,n,r,s,a,c,l,d){let u=0,f=1,m=1,h=1/0;for(let t=0;t<e.length;t++){const o=e[t],n=o.columnSpan||1,r=o.rowSpan||1;n<=0||r<=0||(n>f&&(f=n),r>m&&(m=r),n<h&&(h=n),r<h&&(h=r),u+=n*r*(o.count||1))}if(0===u)return{};(r||s)&&(l||(l=d||i.DEFAULT_SIZE),d||(d=l)),a||c||(r||s?r?s?t?c=M(Math.sqrt(u),m):a=M(Math.sqrt(u),f):c=Math.max(Math.floor(n/(d||1)),1):a=Math.max(Math.floor(o/(l||1)),1):t?c=M(Math.sqrt(u*n/o),m):a=M(Math.sqrt(u*o/n),f)),a?c||(c=M(u/a,m)):a=M(u/(c||1),f);const p=k*h;return r||s||(l||(l=d||Math.min(o/a,n/(c||1))),d||(d=l)),a<=0||!c||c<=0||!l||l<=0||!d||d<=0?{}:{calcColCount:a,calcRowCount:c,calcColWidth:l?l-p:l,calcRowHeight:d?d-p:d,gridGap:p}}(m,"vertical"===S,e,o,_,z,C,v,pe,ge),{datatipContent:Fe,datatipProps:{"aria-describedby":Pe,...ke}}=q({touchResponse:ae,content:Ce,width:e,borderColor:xe,focusedItemRef:be,focusedItemInfo:de});if(!ve)return null;const Me=function(e,t,o,n,r){const i=t,s=o,a=D(n),c=T(n),l=[],d=new Array(i);for(let e=0;e<i;e++)d[e]=new Array(s).fill(!1);for(let t=0;t<e.length;t++){const o=e[t];let n=0;const u=o.rowSpan??1,f=o.columnSpan??1,m=o.count??1;for(;n<m;){const e=E(d,f,u,s,i,r);void 0!==e&&l.push({row:a?i-e.row-u:e.row,col:c?s-e.col-f:e.col,countIdx:n,itemIdx:t,item:o}),n+=1}}return l}(m,Se,ve,w,"vertical"===S),De=l.mergeProps(fe,ke,he);return t.jsxs("div",{tabIndex:0,"aria-label":K["aria-label"],"aria-describedby":F.merge([K["aria-describedby"],Pe]),"aria-labelledby":K["aria-labelledby"],"aria-activedescendant":ue,role:"application",style:{width:_?"max-content":`${e}px`,height:z?"max-content":`${o}px`,gridTemplateRows:`repeat(${Se}, ${ye}px)`,gridTemplateColumns:`repeat(${ve}, ${we}px)`,gap:`${Re}px`,...ce},class:Ie,...te,...De,children:[Me.map((e=>{const o=de.idx===e.itemIdx,n=H(e.item,e.itemIdx,e.countIdx,ee,le,$,de,V,ue),r={data:e.item,state:{selected:n.isSelected,focused:n.isFocused,hovered:n.isCurrent}};return t.jsx(O,{focusedItemRef:o?be:void 0,row:e.row,column:e.col,supportsSelection:X,supportsDrill:Y,translations:Q,totalCount:J,...n,children:K.children(r)})})),Fe,me]})}e.PictoChart=function({width:e,height:n,...r}){const i=!(!r.selectionMode||"none"===r.selectionMode),s=void 0===e,a=void 0===n;return t.jsx(P.Provider,{value:{supportsSelection:i},children:t.jsx(o.TrackResizeContainer,{width:s?"initial":e,height:a?"initial":n,children:(e,o)=>t.jsx(_,{width:e,height:o,isFlowingWidth:s,isFlowingHeight:a,...r})})})},e.getPictoDefaultRenderers=function(e){return{markerRenderer:o=>{const n=e(o.data);return t.jsx(B,{context:o,markerProps:n})},datatipRenderer:t=>({borderColor:e(t.data).color})}}}));
1
+ define(['exports', 'preact/jsx-runtime', './TrackResizeContainer-c6b5de04', 'preact', 'preact/hooks', './UNSAFE_PictoChart/themes/PictoChartStyles.css', './classNames-08d99695', './useSelection-80e262f2', './useTranslationBundle-7c40cb58', './mergeProps-bcfa6a92', './Common/themes/themeContract.css', './utils-32e81a13', './SvgSymbol-328be71d', './accUtils-93ee6f16', './useUser-797287de', './layoutUtils-ba7693df', './eventsUtils-edf8f4e5', './useVisHover-28319fef', './useVisDrill-af6f9469', './useDatatip-be9b251b', './useItemFocus-75d6510d', './LayerHost-733ade2f', 'preact/compat', './datatipUtils-72a1fe48', './useTestId-c286f212', './useVisTouchResponse-88a7bb09', './stringUtils-0ae982c2'], (function(e,t,o,n,r,i,s,a,c,l,d,u,f,m,h,p,g,I,b,C,x,v,S,w,y,R,F){"use strict";const P=n.createContext({}),k=.25;function M(e,t){return Math.ceil(e/t)*t}const D=e=>"bottomStart"===e||"bottomEnd"===e,T=e=>"topEnd"===e||"bottomEnd"===e,V=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)if(e[o+i][t+r])return!1;return!0},$=(e,t,o,n,r)=>{for(let i=0;i<r;i++)for(let r=0;r<n;r++)e[o+i][t+r]=!0},E=(e,t,o,n,r,i)=>{if(i){const i=E(e,o,t,r,n,!1);return i?{col:i.row,row:i.col}:void 0}for(let i=0;i<r-o+1;i++)for(let r=0;r<n-t+1;r++)if(V(e,r,i,t,o))return $(e,r,i,t,o),{col:r,row:i}};function U(e){const t=e.dataset.idx;if(void 0!==t)return{idx:Number(t)}}function H(e,t,o,n,r,i,s,a,c){let l=!1;if(!n){const e=!!s&&t===s.idx,o=!!r&&t===r.idx;l=!!(e&&s?.isCurrent||o&&r?.isCurrent)}const d=function(e,t){return!t||0===t.length||new Set(t).has(e)}(e.id,a),u=function(e,t){return!(!t||0===t.length)&&new Set(t).has(e)}(e.id,i);return{isCurrent:l,isHighlighted:d,isSelected:u,hasSelection:i&&0!==i.length,isFocused:!!s&&A(s,t),key:e.id,itemIdx:t,countIdx:o,activeId:l?c:void 0,isReadOnly:n,item:e}}function j(e,t){return e?.idx===t?.idx}function A(e,t){return!!e.isFocusVisible&&e.idx===t}function N(e,t,o){return`${o?.vis_labelCountWithTotal({itemCount:e.toString(),totalCount:t.toString()})}`}const B=({context:e,markerProps:o})=>{const{supportsSelection:n}=r.useContext(P),i=function(e,t,o,n,r,i){const s="human"===e,a=o||r&&i,c="ellipse"===e||"rectangle"===e;t=""!==t?t:u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const l=n?d.colorSchemeVars.textIcon.primary:a?t:"";return{markerShape:e,tx:s?70:void 0,ty:s?60:void 0,markerColor:t,borderColor:n||a?u.rgb(d.colorSchemeVars.palette.neutral[0]):t,outerBorderColor:l,markerScale:c&&!l?1:.85,setAspectRatioNone:!!c}}(o.shape,o.color,e.state.focused,e.state.selected,e.state.hovered,n);return t.jsx(f.SvgSymbol,{...i})};function L(e,t){const{idx:o}=e;return t[o]}function W(e){return{getItem:t=>L(t,e),getDetailFromInfo:t=>{if(!t)return{id:void 0,data:void 0};const o=L(t,e);return{id:o?o.id:void 0,data:o}},getPrevItemInfo:e=>function(e){let t=e.idx;return t=Math.max(0,t-1),{idx:t}}(e),getNextItemInfo:t=>function(e,t){let o=e.idx;return o=Math.min(t.length-1,o+1),{idx:o}}(t,e)}}const q=({touchResponse:e,content:t,borderColor:o,width:n,focusedItemRef:r,focusedItemInfo:i})=>{const{direction:s}=h.useUser(),a="rtl"===s,c=r.current?.getBoundingClientRect(),{datatipContent:l,datatipProps:d}=C.useDatatip({content:t,placement:"top-start",offset:p.calculateOffset(a,n,i.isCurrent?c:void 0),borderColor:o,anchor:i?.isCurrent?"element":"pointer",touchResponse:e});return{datatipContent:l,datatipProps:d}},O=e=>{const o=e.supportsSelection||e.supportsDrill,{dimmedItemStyle:n,interactiveItemStyle:r}=i.styles,a=s.classNames([o&&r,!e.isHighlighted&&n]),c=0===e.countIdx,l=c&&function(e,t,o,n,r,i,s,a,c){const l=r?N(e,t,r):"";return a=a||`${n?n+": ":""}${l}`,{"aria-label":m.generateAriaLabel(r,a,{isSelected:o||s?i:void 0})||void 0,role:"img",id:c}}(e.item.count||1,e.totalCount,!!e.supportsSelection,e.item.label,e.translations,e.isSelected,e.hasSelection,e.item.accessibleLabel,e.activeId)||{};return t.jsx("div",{ref:c?e.focusedItemRef:void 0,id:e.activeId,"data-idx":e.itemIdx,"data-count-idx":e.countIdx,style:{gridRow:`${e.row+1} / span ${e.item.rowSpan||1}`,gridColumn:`${e.column+1} / span ${e.item.columnSpan||1}`},class:a,...l,children:e.children})};function _({width:e,height:o,columnWidth:n,rowHeight:f,items:m,columnCount:C,rowCount:v,layout:S,layoutOrigin:w="topStart",selectionMode:P="none",highlightedIds:V=[],selectedIds:$=[],drilling:A="off",onItemDrill:B,onItemHover:L,isFlowingWidth:_,isFlowingHeight:z,onItemFocus:G,...K}){const Z=0!==m.length,J=function(e){let t=0;for(let o=0;o<e.length;o++)t+=e[o].count||1;return t}(m),Q=c.useTranslationBundle("@oracle/oraclejet-preact"),X=!(!P||"none"===P),Y=null!=B,ee=!X&&!Y&&null===L&&null===G,te=y.useTestId(K.testId),oe=new Map(m.map((e=>[e.id,e]))),{getItem:ne,getDetailFromInfo:re,getPrevItemInfo:ie,getNextItemInfo:se}=W(m),{touchResponse:ae,touchResponseStyle:ce}=R.useVisTouchResponse({type:"touchStart"}),{hoveredItemInfo:le,focusedItemInfo:de,activeId:ue,eventsProps:fe}=function(e,t,o,n,i,s,a,c,d,u){const[f,m]=r.useState({idx:0}),[C,x]=r.useState(),v=r.useRef(),{direction:S}=h.useUser(),w="rtl"===S,y=I.useVisHover((e=>{const o=U(e.target);j(o,C)||(x(o&&{...o,isCurrent:!0}),v.current=p.getRandomId(),t&&(m({...f,isCurrent:!1}),d?.(n(o))))}),void 0,(()=>{x(void 0),v.current=void 0,t&&d?.(n())}),e),R=r.useCallback((e=>{const{id:t,data:o}=n(e);null!=t&&o&&(c?.({id:t,data:o}),v.current=p.getRandomId())}),[n,c]),F=r.useCallback((e=>{"keydown"===e.type?"on"==a&&R(f):R(U(e.target))}),[a,f,R]),P=b.useVisDrill(o,F);if(!t)return{focusedItemInfo:f,hoveredItemInfo:C,eventsProps:y};function k(e){u?.(n(e)),v.current=p.getRandomId(),m(e)}function M(e){j(e,f)||(e.isCurrent=!0,e.isFocusVisible=!0,C&&x({...C,isCurrent:!1}),k(e))}return{focusedItemInfo:f,hoveredItemInfo:C,activeId:v.current,eventsProps:l.mergeProps(P,y,{onKeyUp:e=>{"Tab"===e.code&&(k({...f,isCurrent:!0,isFocusVisible:!0}),g.cancelEvent(e))},onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":M(s(f)),g.cancelEvent(e);break;case"ArrowUp":M(i(f)),g.cancelEvent(e);break;case"ArrowRight":M(w?i(f):s(f)),g.cancelEvent(e);break;case"ArrowLeft":M(w?s(f):i(f)),g.cancelEvent(e)}},onBlur:()=>{(null!=C||f.isCurrent)&&u?.(n(void 0));const e={...f,isCurrent:!1,isFocusVisible:!1};m(e)}})}}(ae,!ee&&Z,P,re,ie,se,A,B,L,G),{selectionContent:me,selectionProps:he}=a.useSelection({idExtracter:e=>{const t="keyup"===e.type?de:U(e.target);return re(t).id},isDrillEnabled:"off"!=A,selection:$,selectionMode:P,getDataById:e=>oe.get(e),onChange:K.onSelectionChange}),pe=n&&parseFloat(n),ge=f&&parseFloat(f),Ie=s.classNames([i.baseStyles]),{focusedItemRef:be}=x.useItemFocus(de),{content:Ce,borderColor:xe}=function(e,t,o,n,r,i,s){let a;const c=r?.isCurrent;let l,f;c&&null!=e[r.idx].id&&(a=r),n&&n.isCurrent&&(a=n);let m=u.rgba(d.colorSchemeVars.palette.neutral[190],.15);const h=a&&t(a,e);if(h&&i){const e=h&&{data:h},{content:t,borderColor:n}=i(e);l=t,m=n||m,f=s?N(h.count||1,o,s):""}return{borderColor:m,content:l||a&&t(a,e)?.accessibleLabel||a&&t(a,e)?.label+": "+f||f}}(m,ne,J,de,le,K.datatip,Q),{calcColCount:ve,calcRowCount:Se,calcColWidth:we,calcRowHeight:ye,gridGap:Re}=function(e,t,o,n,r,s,a,c,l,d){let u=0,f=1,m=1,h=1/0;for(let t=0;t<e.length;t++){const o=e[t],n=o.columnSpan||1,r=o.rowSpan||1;n<=0||r<=0||(n>f&&(f=n),r>m&&(m=r),n<h&&(h=n),r<h&&(h=r),u+=n*r*(o.count||1))}if(0===u)return{};(r||s)&&(l||(l=d||i.DEFAULT_SIZE),d||(d=l)),a||c||(r||s?r?s?t?c=M(Math.sqrt(u),m):a=M(Math.sqrt(u),f):c=Math.max(Math.floor(n/(d||1)),1):a=Math.max(Math.floor(o/(l||1)),1):t?c=M(Math.sqrt(u*n/o),m):a=M(Math.sqrt(u*o/n),f)),a?c||(c=M(u/a,m)):a=M(u/(c||1),f);const p=k*h;return r||s||(l||(l=d||Math.min(o/a,n/(c||1))),d||(d=l)),a<=0||!c||c<=0||!l||l<=0||!d||d<=0?{}:{calcColCount:a,calcRowCount:c,calcColWidth:l?l-p:l,calcRowHeight:d?d-p:d,gridGap:p}}(m,"vertical"===S,e,o,_,z,C,v,pe,ge),{datatipContent:Fe,datatipProps:{"aria-describedby":Pe,...ke}}=q({touchResponse:ae,content:Ce,width:e,borderColor:xe,focusedItemRef:be,focusedItemInfo:de});if(!ve)return null;const Me=function(e,t,o,n,r){const i=t,s=o,a=D(n),c=T(n),l=[],d=new Array(i);for(let e=0;e<i;e++)d[e]=new Array(s).fill(!1);for(let t=0;t<e.length;t++){const o=e[t];let n=0;const u=o.rowSpan??1,f=o.columnSpan??1,m=o.count??1;for(;n<m;){const e=E(d,f,u,s,i,r);void 0!==e&&l.push({row:a?i-e.row-u:e.row,col:c?s-e.col-f:e.col,countIdx:n,itemIdx:t,item:o}),n+=1}}return l}(m,Se,ve,w,"vertical"===S),De=l.mergeProps(fe,ke,he);return t.jsxs("div",{tabIndex:0,"aria-label":K["aria-label"],"aria-describedby":F.merge([K["aria-describedby"],Pe]),"aria-labelledby":K["aria-labelledby"],"aria-activedescendant":ue,role:"application",style:{width:_?"max-content":`${e}px`,height:z?"max-content":`${o}px`,gridTemplateRows:`repeat(${Se}, ${ye}px)`,gridTemplateColumns:`repeat(${ve}, ${we}px)`,gap:`${Re}px`,...ce},class:Ie,...te,...De,children:[Me.map((e=>{const o=de.idx===e.itemIdx,n=H(e.item,e.itemIdx,e.countIdx,ee,le,$,de,V,ue),r={data:e.item,state:{selected:n.isSelected,focused:n.isFocused,hovered:n.isCurrent}};return t.jsx(O,{focusedItemRef:o?be:void 0,row:e.row,column:e.col,supportsSelection:X,supportsDrill:Y,translations:Q,totalCount:J,...n,children:K.children(r)})})),Fe,me]})}e.PictoChart=function({width:e,height:n,...r}){const i=!(!r.selectionMode||"none"===r.selectionMode),s=void 0===e,a=void 0===n;return t.jsx(P.Provider,{value:{supportsSelection:i},children:t.jsx(o.TrackResizeContainer,{width:s?"initial":e,height:a?"initial":n,children:(e,o)=>t.jsx(_,{width:e,height:o,isFlowingWidth:s,isFlowingHeight:a,...r})})})},e.getPictoDefaultRenderers=function(e){return{markerRenderer:o=>{const n=e(o.data);return t.jsx(B,{context:o,markerProps:n})},datatipRenderer:t=>({borderColor:e(t.data).color})}}}));
2
2
  //# sourceMappingURL=PictoChart-98b892fb.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './UNSAFE_PieChart/themes/PieChartStyles.css', './TrackResizeContainer-c6b5de04', './pathUtils-ec75f879', './layoutUtils-4304ffe4', './classNames-08d99695', './usePieChartNav-f5403629', './useDatatip-8a63fb35', './layoutUtils-ba7693df', './mergeProps-bcfa6a92', './VisTabularDatatip-03ba9ae5', './colorUtils-bc5b1d84', './accUtils-93ee6f16', './useUser-e8dd7f7c', './useTestId-0140aa44', './useVisTouchResponse-88a7bb09', 'preact/hooks', './stringUtils-0ae982c2', './useContextMenu-dacffeb2', './Menu-bb715ef5', './MenuItem-1a324975', 'preact', './logger-0f873e29', './LayerHost-27dfba9e', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-36ddb881', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', './eventsUtils-edf8f4e5'], (function(e,t,s,n,o,a,i,r,l,c,d,u,h,f,p,b,x,m,M,g,y,I,v,C,T,S,w,R,j,A,P,U,V,L,N,D,E){"use strict";const F=.45,k=.38,O=3,_=1.5,B=90;function q(e){return e*(Math.PI/180)}function H(e,t,s,n){const o=Math.atan2(n,s)-Math.atan2(t,e);return o<0?o+2*Math.PI:o}function z(e,t,s,n,a,i,r,l,c){const d=Math.max(n-e,0),u=Math.max(a-e,0),h=360==r||d<e?0:l+2*e,f=i?i+e:0,p=q(360==r?359.99:r),b=q(c),x=h/2,m=x<d?Math.asin(x/d):0,M=-p/2-b,g=Math.min(5*x,p>0?Math.abs(x/Math.sin(p/2)):0),y=0==d?g:g*u/d,I=t+Math.cos(M)*g,v=s+Math.sin(M)*y,C=t+Math.cos(-m-b)*d,T=s+Math.sin(-m-b)*u,S=t+Math.cos(-b-p+m)*d,w=s+Math.sin(-b-p+m)*u;let R,j=H(S-t,w-s,C-t,T-s);if(j=Math.min(j,p),f>0){const e=x<f?Math.asin(x/f):0,n=t+Math.cos(-e-b)*f,a=s+Math.sin(-e-b)*f,i=t+Math.cos(-b-p+e)*f,l=s+Math.sin(-b-p+e)*f;let c=H(i-t,l-s,n-t,a-s);c=Math.min(c,j,p),360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,p,1,C,T),R+=o.lineTo(S,w),R+=o.moveTo(n,a),R+=o.arcTo(f,f,p,0,i,l)):(R=o.moveTo(i,l),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T),R+=o.lineTo(n,a),R+=o.arcTo(f,f,c,0,i,l))}else 360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,p,1,C,T)):(R=o.moveTo(I,v),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T));return R+=o.closePath(),R}function G(e,t,s){return{innerBounds:{width:Math.sqrt(2)*s,height:Math.sqrt(2)*s,x:e-s/Math.sqrt(2),y:t-s/Math.sqrt(2)},outerBounds:{width:2*s,height:2*s,x:e-s,y:t-s}}}function J(e,t,s,n,o,a){return a?function(e,t,s,n,o,a){const i=(e+t/2)/180*Math.PI,r=(o+a)/2;return{x:s+r*Math.cos(i),y:n-r*Math.sin(i),width:0,height:0}}(e[a.itemIndex].startAngle,e[a.itemIndex].angleExtent,t,s,n,o):void 0}function K(e,t,s){return s?.color||null!=t?.itemIndex?e[t.itemIndex]:void 0}function Q({cx:e,cy:n,r:o,startAngle:a,angleExtent:r,gap:l,innerRadius:c,color:d,id:u,itemIndex:h,isFocused:f=!1,isHovered:p=!1,...b}){const x=z(0,e,n,o,o,c,r,l,a);let m;return f?(m=z(2,e,n,o,o,c,r,l,a),t.jsxs("g",{id:u,role:b.accessibleLabel?"img":void 0,"data-oj-item-index":h,"data-oj-object":"pieSlice","aria-label":b.accessibleLabel,children:[t.jsx("path",{d:x,fill:d,stroke:d,className:s.styles.innerShapes}),t.jsx("path",{d:m,fill:d,className:i.classNames([s.styles.contrastBorder,s.styles.innerShapes])})]})):t.jsx("path",{role:b.accessibleLabel?"img":void 0,"aria-label":b.accessibleLabel,d:x,"data-oj-object":"pieSlice",fill:d,id:u,"data-oj-item-index":h})}const W=({offset:e,rootRef:t,contextMenuConfig:s,focusedItemInfo:n,items:o,onContextMenuDismissed:a,width:i,isRtl:r})=>{const{contextMenuProps:l,contextMenuContent:c}=g.useContextMenu({onContextMenuHandler:({gesture:s,target:a})=>{if("keyboard"===s){const t=n.itemIndex;return{type:"offset",context:{type:"item",data:o[t]},offsetValue:e,isRtl:r,width:i}}const l=E.getInfo(t,a)?.itemIndex,c=void 0!==l?o[l]:null;let d;return d=c?{type:"item",data:c}:t.current?.children[1].contains(a)?{type:"centerLabel"}:{type:"background"},{type:"pointer",context:d}},contextMenuOptions:{isDisabled:!s},rootRef:t,contextMenuConfig:s,onContextMenuDismissed:a});return{contextMenuContent:c,contextMenuProps:l}},X=100;function Y({width:e,height:n,testId:o,innerRadius:i=0,contextMenuConfig:f,...g}){const y=m.useRef(null),I=h.getColorRamp(),{totalValue:v,isLabelOutside:C}=g.data.reduce((({totalValue:e,isLabelOutside:t},s)=>({totalValue:e+s.value,isLabelOutside:t})),{totalValue:0,isLabelOutside:!1});const T=function(e,t){let s,n=B;const o=[];for(let a=0;a<e.length;a++){const i=e[a],r=i.value;s=r===t?100:0===t?0:Math.min(r/t*100,99.99);const l=3.6*s;let c=n-l;c<0&&(c+=360),o.push({index:a,startAngle:c,angleExtent:l,...i}),n=c}return o}(g.data,v),S=g.data.length>0,w=function(e){return O*e}(.5),R=g.data.length>X,{direction:j}=p.useUser(),A=b.useTestId(o),P=a.getAvailSpace(e,n),{cx:U,cy:V}=function(e){return{cx:e.x+Math.floor(e.width/2),cy:e.y+Math.floor(e.height/2)}}(P),L=function(e,t){const s=t?k:F;return Math.floor(Math.min(e.width,e.height)*s)}(P,C),N=i*L,D=function(e,t,s){if(!t)return e;const n=2*Math.PI*s;let o=0;return e.filter((({startAngle:e,angleExtent:t})=>{const s=(t+e)/360*n;return!(t/360*n<_&&Math.abs(o-s)<_||(o=s,0))}))}(T,R,L),E=function(e,t){return({itemIndex:s},n)=>{let o=s;return o=t&&("ArrowRight"===n||"ArrowUp"===n)||!t&&("ArrowLeft"===n||"ArrowDown"===n)?s-1:s+1,{itemIndex:(o%e.length+e.length)%e.length}}}(D,"rtl"===j),{touchResponse:q,touchResponseStyle:H}=x.useVisTouchResponse({type:"auto",supportsTouchDragGestures:!1,rootRef:y}),{activeId:z,navProps:Y,focusedItemInfo:Z,hoveredItemInfo:$,onContextMenuDismissed:ee}=r.usePieChartNav({touchResponse:q,getNextChartItem:E}),te=Z.isFocusVisible?Z:$,se=te?g.data[D[te.itemIndex].index]:void 0,{content:ne,borderColor:oe}=se&&g.datatip?g.datatip({data:se}):((e,s)=>e?e.accessibleLabel?{content:e.accessibleLabel,borderColor:K(I,s,e)}:{content:t.jsx(u.VisTabularDatatip,{tableData:[{key:"Value",value:e.value}]}),borderColor:K(I,s,e)}:{content:void 0,borderColor:void 0})(se,te),ae=Z.isFocusVisible?"element":"pointer",ie=te?.isFocusVisible?J(D,U,V,N,L,te):void 0,re="rtl"===j,le=c.calculateOffset(re,e,ie),{datatipContent:ce,datatipProps:de}=l.useDatatip({content:ne,offset:le,anchor:ae,placement:"top-start",borderColor:oe,touchResponse:q});de["aria-describedby"]=M.merge([g["aria-describedby"],de["aria-describedby"]]);const{contextMenuContent:ue,contextMenuProps:he}=W({offset:le,rootRef:y,contextMenuConfig:S?f:void 0,onContextMenuDismissed:ee,focusedItemInfo:Z,items:T,width:e,isRtl:re}),fe=d.mergeProps(Y,de,he);return t.jsxs("div",{ref:y,tabIndex:0,"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],"aria-activedescendant":z,role:"application",...fe,...A,className:s.styles.chart,style:{width:e,height:n,...H},children:[D.length>0&&t.jsx("svg",{className:s.styles.svg,children:D.map(((e,s)=>t.jsx(Q,{cx:U,cy:V,itemIndex:s,id:te?.itemIndex===s?z:void 0,isFocused:Z?.itemIndex===s&&Z?.isFocusVisible,isHovered:$?.itemIndex===s,r:L,startAngle:e.startAngle,gap:w,innerRadius:N,angleExtent:e.angleExtent,color:e.color||I[s%I.length],accessibleLabel:e.accessibleLabel},e.id)))}),g.children?.(G(U,V,N)),ce,ue]})}e.PieChart=function({width:e,height:o,...a}){return t.jsx(n.TrackResizeContainer,{width:e,height:o,class:s.dimensionStyle,children:(e,s)=>t.jsx(Y,{width:e,height:s,...a})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './UNSAFE_PieChart/themes/PieChartStyles.css', './TrackResizeContainer-c6b5de04', './pathUtils-ec75f879', './layoutUtils-4304ffe4', './classNames-08d99695', './usePieChartNav-f5403629', './useDatatip-be9b251b', './layoutUtils-ba7693df', './mergeProps-bcfa6a92', './VisTabularDatatip-0b630f9d', './colorUtils-bc5b1d84', './accUtils-93ee6f16', './useUser-797287de', './useTestId-c286f212', './useVisTouchResponse-88a7bb09', 'preact/hooks', './stringUtils-0ae982c2', './useContextMenu-dacffeb2', './Menu-bb715ef5', './MenuItem-1a324975', 'preact', './logger-0f873e29', './LayerHost-733ade2f', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', './eventsUtils-edf8f4e5'], (function(e,t,s,n,o,a,i,r,l,c,d,u,h,f,p,b,x,m,M,g,y,I,v,C,T,S,w,R,j,A,P,U,V,L,N,D,E){"use strict";const F=.45,k=.38,O=3,_=1.5,B=90;function q(e){return e*(Math.PI/180)}function H(e,t,s,n){const o=Math.atan2(n,s)-Math.atan2(t,e);return o<0?o+2*Math.PI:o}function z(e,t,s,n,a,i,r,l,c){const d=Math.max(n-e,0),u=Math.max(a-e,0),h=360==r||d<e?0:l+2*e,f=i?i+e:0,p=q(360==r?359.99:r),b=q(c),x=h/2,m=x<d?Math.asin(x/d):0,M=-p/2-b,g=Math.min(5*x,p>0?Math.abs(x/Math.sin(p/2)):0),y=0==d?g:g*u/d,I=t+Math.cos(M)*g,v=s+Math.sin(M)*y,C=t+Math.cos(-m-b)*d,T=s+Math.sin(-m-b)*u,S=t+Math.cos(-b-p+m)*d,w=s+Math.sin(-b-p+m)*u;let R,j=H(S-t,w-s,C-t,T-s);if(j=Math.min(j,p),f>0){const e=x<f?Math.asin(x/f):0,n=t+Math.cos(-e-b)*f,a=s+Math.sin(-e-b)*f,i=t+Math.cos(-b-p+e)*f,l=s+Math.sin(-b-p+e)*f;let c=H(i-t,l-s,n-t,a-s);c=Math.min(c,j,p),360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,p,1,C,T),R+=o.lineTo(S,w),R+=o.moveTo(n,a),R+=o.arcTo(f,f,p,0,i,l)):(R=o.moveTo(i,l),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T),R+=o.lineTo(n,a),R+=o.arcTo(f,f,c,0,i,l))}else 360==r?(R=o.moveTo(S,w),R+=o.arcTo(d,u,p,1,C,T)):(R=o.moveTo(I,v),R+=o.lineTo(S,w),R+=o.arcTo(d,u,j,1,C,T));return R+=o.closePath(),R}function G(e,t,s){return{innerBounds:{width:Math.sqrt(2)*s,height:Math.sqrt(2)*s,x:e-s/Math.sqrt(2),y:t-s/Math.sqrt(2)},outerBounds:{width:2*s,height:2*s,x:e-s,y:t-s}}}function J(e,t,s,n,o,a){return a?function(e,t,s,n,o,a){const i=(e+t/2)/180*Math.PI,r=(o+a)/2;return{x:s+r*Math.cos(i),y:n-r*Math.sin(i),width:0,height:0}}(e[a.itemIndex].startAngle,e[a.itemIndex].angleExtent,t,s,n,o):void 0}function K(e,t,s){return s?.color||null!=t?.itemIndex?e[t.itemIndex]:void 0}function Q({cx:e,cy:n,r:o,startAngle:a,angleExtent:r,gap:l,innerRadius:c,color:d,id:u,itemIndex:h,isFocused:f=!1,isHovered:p=!1,...b}){const x=z(0,e,n,o,o,c,r,l,a);let m;return f?(m=z(2,e,n,o,o,c,r,l,a),t.jsxs("g",{id:u,role:b.accessibleLabel?"img":void 0,"data-oj-item-index":h,"data-oj-object":"pieSlice","aria-label":b.accessibleLabel,children:[t.jsx("path",{d:x,fill:d,stroke:d,className:s.styles.innerShapes}),t.jsx("path",{d:m,fill:d,className:i.classNames([s.styles.contrastBorder,s.styles.innerShapes])})]})):t.jsx("path",{role:b.accessibleLabel?"img":void 0,"aria-label":b.accessibleLabel,d:x,"data-oj-object":"pieSlice",fill:d,id:u,"data-oj-item-index":h})}const W=({offset:e,rootRef:t,contextMenuConfig:s,focusedItemInfo:n,items:o,onContextMenuDismissed:a,width:i,isRtl:r})=>{const{contextMenuProps:l,contextMenuContent:c}=g.useContextMenu({onContextMenuHandler:({gesture:s,target:a})=>{if("keyboard"===s){const t=n.itemIndex;return{type:"offset",context:{type:"item",data:o[t]},offsetValue:e,isRtl:r,width:i}}const l=E.getInfo(t,a)?.itemIndex,c=void 0!==l?o[l]:null;let d;return d=c?{type:"item",data:c}:t.current?.children[1].contains(a)?{type:"centerLabel"}:{type:"background"},{type:"pointer",context:d}},contextMenuOptions:{isDisabled:!s},rootRef:t,contextMenuConfig:s,onContextMenuDismissed:a});return{contextMenuContent:c,contextMenuProps:l}},X=100;function Y({width:e,height:n,testId:o,innerRadius:i=0,contextMenuConfig:f,...g}){const y=m.useRef(null),I=h.getColorRamp(),{totalValue:v,isLabelOutside:C}=g.data.reduce((({totalValue:e,isLabelOutside:t},s)=>({totalValue:e+s.value,isLabelOutside:t})),{totalValue:0,isLabelOutside:!1});const T=function(e,t){let s,n=B;const o=[];for(let a=0;a<e.length;a++){const i=e[a],r=i.value;s=r===t?100:0===t?0:Math.min(r/t*100,99.99);const l=3.6*s;let c=n-l;c<0&&(c+=360),o.push({index:a,startAngle:c,angleExtent:l,...i}),n=c}return o}(g.data,v),S=g.data.length>0,w=function(e){return O*e}(.5),R=g.data.length>X,{direction:j}=p.useUser(),A=b.useTestId(o),P=a.getAvailSpace(e,n),{cx:U,cy:V}=function(e){return{cx:e.x+Math.floor(e.width/2),cy:e.y+Math.floor(e.height/2)}}(P),L=function(e,t){const s=t?k:F;return Math.floor(Math.min(e.width,e.height)*s)}(P,C),N=i*L,D=function(e,t,s){if(!t)return e;const n=2*Math.PI*s;let o=0;return e.filter((({startAngle:e,angleExtent:t})=>{const s=(t+e)/360*n;return!(t/360*n<_&&Math.abs(o-s)<_||(o=s,0))}))}(T,R,L),E=function(e,t){return({itemIndex:s},n)=>{let o=s;return o=t&&("ArrowRight"===n||"ArrowUp"===n)||!t&&("ArrowLeft"===n||"ArrowDown"===n)?s-1:s+1,{itemIndex:(o%e.length+e.length)%e.length}}}(D,"rtl"===j),{touchResponse:q,touchResponseStyle:H}=x.useVisTouchResponse({type:"auto",supportsTouchDragGestures:!1,rootRef:y}),{activeId:z,navProps:Y,focusedItemInfo:Z,hoveredItemInfo:$,onContextMenuDismissed:ee}=r.usePieChartNav({touchResponse:q,getNextChartItem:E}),te=Z.isFocusVisible?Z:$,se=te?g.data[D[te.itemIndex].index]:void 0,{content:ne,borderColor:oe}=se&&g.datatip?g.datatip({data:se}):((e,s)=>e?e.accessibleLabel?{content:e.accessibleLabel,borderColor:K(I,s,e)}:{content:t.jsx(u.VisTabularDatatip,{tableData:[{key:"Value",value:e.value}]}),borderColor:K(I,s,e)}:{content:void 0,borderColor:void 0})(se,te),ae=Z.isFocusVisible?"element":"pointer",ie=te?.isFocusVisible?J(D,U,V,N,L,te):void 0,re="rtl"===j,le=c.calculateOffset(re,e,ie),{datatipContent:ce,datatipProps:de}=l.useDatatip({content:ne,offset:le,anchor:ae,placement:"top-start",borderColor:oe,touchResponse:q});de["aria-describedby"]=M.merge([g["aria-describedby"],de["aria-describedby"]]);const{contextMenuContent:ue,contextMenuProps:he}=W({offset:le,rootRef:y,contextMenuConfig:S?f:void 0,onContextMenuDismissed:ee,focusedItemInfo:Z,items:T,width:e,isRtl:re}),fe=d.mergeProps(Y,de,he);return t.jsxs("div",{ref:y,tabIndex:0,"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],"aria-activedescendant":z,role:"application",...fe,...A,className:s.styles.chart,style:{width:e,height:n,...H},children:[D.length>0&&t.jsx("svg",{className:s.styles.svg,children:D.map(((e,s)=>t.jsx(Q,{cx:U,cy:V,itemIndex:s,id:te?.itemIndex===s?z:void 0,isFocused:Z?.itemIndex===s&&Z?.isFocusVisible,isHovered:$?.itemIndex===s,r:L,startAngle:e.startAngle,gap:w,innerRadius:N,angleExtent:e.angleExtent,color:e.color||I[s%I.length],accessibleLabel:e.accessibleLabel},e.id)))}),g.children?.(G(U,V,N)),ce,ue]})}e.PieChart=function({width:e,height:o,...a}){return t.jsx(n.TrackResizeContainer,{width:e,height:o,class:s.dimensionStyle,children:(e,s)=>t.jsx(Y,{width:e,height:s,...a})})}}));
2
2
  //# sourceMappingURL=PieChart-19890d12.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-f12b8739', './tabbableUtils-428c264e', './refUtils-d354a169', './FocusTrap-d351e5c9', './Layer-69221878', 'preact/compat', './LayerHost-27dfba9e', './Modal-e4a033c8', './WindowOverlay-19cd633a', './usePopupAnimation-1be03bd7', './useTestId-0140aa44', './useOutsideClick-8e7ab184', './useComponentTheme-5aa41a8f', './UNSAFE_Popup/themes/PopupContract.css', './stringUtils-0ae982c2', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './dimensions-fda85d6b', './mergeInterpolations-9ede4cf7'], (function(e,n,t,s,o,r,a,i,c,u,l,d,p,m,f,b,h,y,A,g,x,E){"use strict";const O=c.forwardRef((({anchorRef:e,launcherRef:c,children:u,isOpen:O=!1,modality:v="modeless",offset:F={mainAxis:0,crossAxis:0},flipOptions:P={mainAxis:!0,crossAxis:!0},shiftOptions:C={mainAxis:!1,crossAxis:!1},onClickOutside:k,onClose:R,initialFocus:T="auto",placement:j=(e?"top":"center"),tail:w="none",onTransitionEnd:I,onFocusSet:L,variant:N="standard",role:S=("modeless"===v?"tooltip":"dialog"),"aria-label":U,"aria-labelledby":D,"aria-describedby":M,testId:V,...W},K)=>{const _=t.useRef(null),[H,q]=t.useState(),z=t.useRef(null),B=t.useRef("unmounted"),G=m.useTestId(V),J=[z];_.current&&_.current!==document.body&&J.push(_),f.useOutsideClick({isDisabled:!(O&&z.current),ref:J,handler:e=>{k?.(e)}});const Q=t.useCallback((e=>{_.current===o.getActiveElement()&&"F6"===e.code&&"modeless"===v&&(e.preventDefault(),e.stopPropagation(),o.focusWithin(z.current),L?.())}),[v]),{setAnimationElementRef:X,status:Y,onPosition:Z}=p.usePopupAnimation({isOpen:O,isAnimatedOnMount:!0,onTransitionEnd:e=>{e?(ne(),I?.(!0)):I?.(!1)},placement:j}),$=t.useMemo((()=>r.mergeRefs(z,K)),[z,K]),ee=t.useCallback((()=>{const n=_.current,t=e?.current;n?o.focusOn(n):t&&t instanceof Element&&o.focusOn(t)}),[_,e]);t.useEffect((()=>(O||"opening"!==Y||"modal"===v?O||"unmounted"!==Y||"modal"!==v||Y!==B.current&&ee():z.current?.contains(o.getActiveElement())&&ee(),()=>{B.current=Y})),[O,Y,ee,v]),t.useEffect((()=>(O&&(c?.current&&c.current instanceof Element?_.current=document.body.contains(c.current)?c.current:o.getActiveElement():_.current=o.getActiveElement(),_.current?.addEventListener("keydown",Q)),()=>{_.current?.removeEventListener("keydown",Q)})),[O,c,Q]);const ne=()=>{let e=T;"auto"===T&&(e="modal"===v?"firstFocusable":"none"),"popup"===e&&(o.focusOn(z.current),L?.(),I?.(!1)),"firstFocusable"===e&&(o.focusWithin(z.current),L?.())},te={mainAxis:(e=>{let n=0;return e&&(n="number"==typeof e?e:e.mainAxis||0,"simple"===w&&(n+=5)),n})(F),crossAxis:(e=>e?"number"==typeof e?0:e.crossAxis||0:0)(F)},se=e=>{const n=o.getActiveElement(),t=z.current,s=_.current;if(t===n||t?.contains(n))switch(e.code){case"Escape":R?.({reason:"escapeKey"});break;case"F6":e.preventDefault(),e.stopPropagation(),s&&"modeless"===v&&o.focusOn(s)}};t.useLayoutEffect((()=>{if("unmounted"===Y||null==z.current||null!=H||"none"===w)return;const e=y.getVarName(h.popupVars.backgroundColor),n=getComputedStyle(z.current);q(n.getPropertyValue(e))}),[Y,z,H,w]);const{baseTheme:oe,classes:re}=b.useComponentTheme(g.PopupRedwoodTheme),ae="unmounted"!==Y,ie=[...Object.values(x.dimensionInterpolations)],ce=E.mergeInterpolations(ie),{...ue}=ce(W),le=()=>n.jsx(a.FocusTrap,{restoreFocusRef:!1,children:n.jsx("div",{ref:$,tabIndex:-1,role:S,className:A.classNames([oe,"unstyled"===N?null:re]),style:ue,onKeyDown:se,"aria-label":U,"aria-labelledby":D,"aria-describedby":M,...G,children:u})}),de=()=>e&&e.current?n.jsx(s.Floating,{ref:X,backgroundColor:H,anchorRef:e,placement:j,offsetValue:te,flipOptions:P,shiftOptions:C,tail:w,onPosition:Z,children:le()}):n.jsx(d.WindowOverlay,{placement:j,offset:te,children:n.jsx("div",{ref:X,children:le()})});return ae?"modal"===v?n.jsx(l.Modal,{isOpen:ae,children:de()}):n.jsx(i.Layer,{children:de()}):null}));e.Popup=O}));
2
- //# sourceMappingURL=Popup-b0704743.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Floating-ae9845d4', './tabbableUtils-428c264e', './refUtils-d354a169', './FocusTrap-d351e5c9', './Layer-139c23c4', 'preact/compat', './LayerHost-733ade2f', './Modal-9eaf8cd9', './WindowOverlay-c390f525', './usePopupAnimation-65dec4e2', './useTestId-c286f212', './useOutsideClick-43ce7043', './useComponentTheme-5aa41a8f', './UNSAFE_Popup/themes/PopupContract.css', './stringUtils-0ae982c2', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './dimensions-fda85d6b', './mergeInterpolations-9ede4cf7'], (function(e,n,t,s,o,r,a,c,i,u,l,d,p,m,f,b,h,y,A,g,x,E){"use strict";const O=i.forwardRef((({anchorRef:e,launcherRef:i,children:u,isOpen:O=!1,modality:v="modeless",offset:F={mainAxis:0,crossAxis:0},flipOptions:P={mainAxis:!0,crossAxis:!0},shiftOptions:C={mainAxis:!1,crossAxis:!1},onClickOutside:k,onClose:R,initialFocus:T="auto",placement:j=(e?"top":"center"),tail:w="none",onTransitionEnd:I,onFocusSet:L,variant:N="standard",role:S=("modeless"===v?"tooltip":"dialog"),"aria-label":U,"aria-labelledby":D,"aria-describedby":M,testId:V,...W},K)=>{const _=t.useRef(null),[H,q]=t.useState(),z=t.useRef(null),B=t.useRef("unmounted"),G=m.useTestId(V),J=[z];_.current&&_.current!==document.body&&J.push(_),f.useOutsideClick({isDisabled:!(O&&z.current),ref:J,handler:e=>{k?.(e)}});const Q=t.useCallback((e=>{_.current===o.getActiveElement()&&"F6"===e.code&&"modeless"===v&&(e.preventDefault(),e.stopPropagation(),o.focusWithin(z.current),L?.())}),[v]),{setAnimationElementRef:X,status:Y,onPosition:Z}=p.usePopupAnimation({isOpen:O,isAnimatedOnMount:!0,onTransitionEnd:e=>{e?(ne(),I?.(!0)):I?.(!1)},placement:j}),$=t.useMemo((()=>r.mergeRefs(z,K)),[z,K]),ee=t.useCallback((()=>{const n=_.current,t=e?.current;n?o.focusOn(n):t&&t instanceof Element&&o.focusOn(t)}),[_,e]);t.useEffect((()=>(O||"opening"!==Y||"modal"===v?O||"unmounted"!==Y||"modal"!==v||Y!==B.current&&ee():z.current?.contains(o.getActiveElement())&&ee(),()=>{B.current=Y})),[O,Y,ee,v]),t.useEffect((()=>(O&&(i?.current&&i.current instanceof Element?_.current=document.body.contains(i.current)?i.current:o.getActiveElement():_.current=o.getActiveElement(),_.current?.addEventListener("keydown",Q)),()=>{_.current?.removeEventListener("keydown",Q)})),[O,i,Q]);const ne=()=>{let e=T;"auto"===T&&(e="modal"===v?"firstFocusable":"none"),"popup"===e&&(o.focusOn(z.current),L?.(),I?.(!1)),"firstFocusable"===e&&(o.focusWithin(z.current),L?.())},te={mainAxis:(e=>{let n=0;return e&&(n="number"==typeof e?e:e.mainAxis||0,"simple"===w&&(n+=5)),n})(F),crossAxis:(e=>e?"number"==typeof e?0:e.crossAxis||0:0)(F)},se=e=>{const n=o.getActiveElement(),t=z.current,s=_.current;if(t===n||t?.contains(n))switch(e.code){case"Escape":R?.({reason:"escapeKey"});break;case"F6":e.preventDefault(),e.stopPropagation(),s&&"modeless"===v&&o.focusOn(s)}};t.useLayoutEffect((()=>{if("unmounted"===Y||null==z.current||null!=H||"none"===w)return;const e=y.getVarName(h.popupVars.backgroundColor),n=getComputedStyle(z.current);q(n.getPropertyValue(e))}),[Y,z,H,w]);const{baseTheme:oe,classes:re}=b.useComponentTheme(g.PopupRedwoodTheme),ae="unmounted"!==Y,ce=[...Object.values(x.dimensionInterpolations)],ie=E.mergeInterpolations(ce),{...ue}=ie(W),le=()=>n.jsx(a.FocusTrap,{restoreFocusRef:!1,children:n.jsx("div",{ref:$,tabIndex:-1,role:S,className:A.classNames([oe,"unstyled"===N?null:re]),style:ue,onKeyDown:se,"aria-label":U,"aria-labelledby":D,"aria-describedby":M,...G,children:u})}),de=()=>e&&e.current?n.jsx(s.Floating,{ref:X,backgroundColor:H,anchorRef:e,placement:j,offsetValue:te,flipOptions:P,shiftOptions:C,tail:w,onPosition:Z,children:le()}):n.jsx(d.WindowOverlay,{placement:j,offset:te,children:n.jsx("div",{ref:X,children:le()})});return ae?"modal"===v?n.jsx(l.Modal,{isOpen:ae,children:de()}):n.jsx(c.Layer,{children:de()}):null}));e.Popup=O}));
2
+ //# sourceMappingURL=Popup-3e2566da.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popup-b0704743.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 { AnimationStatus } from '../hooks/PRIVATE_useAnimationStatus';\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';\nexport type Variant = 'standard' | 'unstyled';\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 styling variant. If <code>unstyled</code> is set, standard styles are not applied.\n */\n variant?: Variant;\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 variant = 'standard',\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 const prevStatusRef = useRef<AnimationStatus>('unmounted');\n\n // testId support\n const testIdProps = useTestId(testId);\n\n const insideRefs: RefObject<HTMLElement>[] = [contentWrapperRef];\n // launcher should be considered an \"inside\" element\n if (localLauncherRef.current && localLauncherRef.current !== document.body) {\n insideRefs.push(localLauncherRef);\n }\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: insideRefs,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n const launcherKeyDownCallback = useCallback(\n (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 // eslint-disable-next-line react-hooks/exhaustive-deps\n [modality]\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(() => mergeRefs(contentWrapperRef, ref), [contentWrapperRef, ref]);\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]);\n\n useEffect(() => {\n // Init closing\n if (!isOpen && status === 'opening' && modality !== 'modal') {\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 // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n else if (!isOpen && status === 'unmounted' && modality === 'modal') {\n // avoid returning focus on initial render\n if (status !== prevStatusRef.current) {\n returnFocus();\n }\n }\n return () => {\n prevStatusRef.current = status;\n };\n }, [isOpen, status, returnFocus, modality]);\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, launcherKeyDownCallback]);\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 <FocusTrap restoreFocusRef={false}>\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 <div\n ref={stableRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, variant === 'unstyled' ? null : classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {children}\n </div>\n </FocusTrap>\n );\n };\n\n const renderFloatingOrOverlayPopup = () => {\n if (!anchorRef || !anchorRef.current) {\n return (\n <WindowOverlay placement={placement as WindowOverlayPlacement} offset={finalOffset}>\n <div ref={setAnimationElementRef}>{renderPopup()}</div>\n </WindowOverlay>\n );\n } else {\n return (\n <Floating\n ref={setAnimationElementRef}\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":["Popup","forwardRef","anchorRef","launcherRef","children","isOpen","modality","offset","mainAxis","crossAxis","flipOptions","shiftOptions","onClickOutside","onClose","initialFocus","placement","tail","onTransitionEnd","onFocusSet","variant","role","ariaLabel","ariaLabelledBy","ariaDescribedBy","testId","props","ref","localLauncherRef","useRef","popupBgColor","setPopupBgColor","useState","contentWrapperRef","prevStatusRef","testIdProps","useTestId","insideRefs","current","document","body","push","useOutsideClick","isDisabled","handler","event","launcherKeyDownCallback","useCallback","getActiveElement","code","preventDefault","stopPropagation","focusWithin","setAnimationElementRef","status","onPosition","usePopupAnimation","isAnimatedOnMount","setInitialFocus","stableRef","useMemo","mergeRefs","returnFocus","launcherEl","anchorEl","focusOn","Element","useEffect","contains","addEventListener","removeEventListener","derivedInitialFocus","finalOffset","calcOffset","getMainAxisOffset","getCrossAxisOffset","handlePopupKeyDown","currentlyFocusedEl","wrapperEl","reason","useLayoutEffect","backgroundColorVar","getVarName","popupVars","backgroundColor","computedStyle","getComputedStyle","getPropertyValue","baseTheme","classes","useComponentTheme","PopupRedwoodTheme","isMounted","interpolations","Object","values","dimensionInterpolations","styleInterpolations","mergeInterpolations","styles","renderPopup","_jsx","jsx","FocusTrap","restoreFocusRef","tabIndex","className","classNames","style","onKeyDown","renderFloatingOrOverlayPopup","Floating","offsetValue","WindowOverlay","Modal","Layer"],"mappings":"knBAwJa,MAAAA,EAAQC,EAAAA,YACnB,EAEIC,YACAC,cACAC,WACAC,UAAS,EACTC,WAAW,WACXC,SAAS,CAAEC,SAAU,EAAGC,UAAW,GACnCC,cAAc,CAAEF,UAAU,EAAMC,WAAW,GAC3CE,eAAe,CAAEH,UAAU,EAAOC,WAAW,GAC7CG,iBACAC,UACAC,eAAe,OACfC,aAAYb,EAAY,MAAQ,UAChCc,OAAO,OACPC,kBACAC,aACAC,UAAU,WACVC,QAAoB,aAAbd,EAA0B,UAAY,UAC7C,aAAce,EACd,kBAAmBC,EACnB,mBAAoBC,EACpBC,YACGC,GAELC,KAEA,MAAMC,EAAmBC,SAA2B,OAC7CC,EAAcC,GAAmBC,EAAQA,WAE1CC,EAAoBJ,SAA8B,MAElDK,EAAgBL,SAAwB,aAGxCM,EAAcC,YAAUX,GAExBY,EAAuC,CAACJ,GAE1CL,EAAiBU,SAAWV,EAAiBU,UAAYC,SAASC,MACpEH,EAAWI,KAAKb,GAMlBc,kBAAgB,CACdC,aAAcrC,GAAU2B,EAAkBK,SAC1CX,IAAKU,EACLO,QAAUC,IACRhC,IAAiBgC,EAAM,IAI3B,MAAMC,EAA0BC,eAC7BF,IAEGjB,EAAiBU,UAAYU,sBACd,OAAfH,EAAMI,MACO,aAAb1C,IAIAsC,EAAMK,iBACNL,EAAMM,kBAENC,cAAYnB,EAAkBK,SAC9BnB,MACD,GAGH,CAACZ,KAaG8C,uBAAEA,EAAsBC,OAAEA,EAAMC,WAAEA,GAAeC,EAAAA,kBAAkB,CACvElD,SACAmD,mBAAmB,EACnBvC,gBAbwBZ,IACpBA,GACFoD,KACAxC,KAAkB,IAElBA,KAAkB,EACnB,EAQDF,UAAWA,IAEP2C,EAAYC,WAAQ,IAAMC,YAAU5B,EAAmBN,IAAM,CAACM,EAAmBN,IAEjFmC,GAAcf,EAAAA,aAAY,KAE9B,MAAMgB,EAAanC,EAAiBU,QAC9B0B,EAAW7D,GAAWmC,QAExByB,EACFE,EAAOA,QAACF,GAECC,GAAYA,aAAoBE,SACzCD,EAAOA,QAACD,EACT,GACA,CAACpC,EAAkBzB,IAEtBgE,EAAAA,WAAU,KAEH7D,GAAqB,YAAXgD,GAAqC,UAAb/C,EAU7BD,GAAqB,cAAXgD,GAAuC,UAAb/C,GAExC+C,IAAWpB,EAAcI,SAC3BwB,KARE7B,EAAkBK,SAAS8B,SAASpB,EAAAA,qBACtCc,KAUG,KACL5B,EAAcI,QAAUgB,CAAM,IAE/B,CAAChD,EAAQgD,EAAQQ,GAAavD,IAGjC4D,EAAAA,WAAU,KACJ7D,IACGF,GAAakC,SAIPlC,EAAYkC,mBAAmB4B,QAGxCtC,EAAiBU,QAAUC,SAASC,KAAK4B,SAAShE,EAAYkC,SAC1DlC,EAAYkC,QACXU,EAAAA,mBANLpB,EAAiBU,QAAUU,EAAAA,mBAW7BpB,EAAiBU,SAAS+B,iBAAiB,UAAWvB,IAEjD,KAELlB,EAAiBU,SAASgC,oBAAoB,UAAWxB,EAAwB,IAElF,CAACxC,EAAQF,EAAa0C,IAIzB,MAAMY,GAAkB,KACtB,IAAIa,EAAsBxD,EACL,SAAjBA,IAGAwD,EAFe,UAAbhE,EAEoB,iBAGA,QAME,UAAxBgE,IACFN,UAAQhC,EAAkBK,SAC1BnB,MACAD,KAAkB,IAKQ,mBAAxBqD,IACFnB,cAAYnB,EAAkBK,SAC9BnB,MACD,EA0BGqD,GAAc,CAClB/D,SAxBwB,CAACD,IACzB,IAAIiE,EAAa,EASjB,OARIjE,IAGFiE,EAA+B,iBAAXjE,EAAsBA,EAASA,EAAOC,UAAY,EACzD,WAATQ,IACFwD,GAAc,IAGXA,CAAU,EAcPC,CAAkBlE,GAC5BE,UAZyB,CAACF,GACrBA,EAKsB,iBAAXA,EAAsB,EAAIA,EAAOE,WAAa,EAJrD,EAUEiE,CAAmBnE,IAG1BoE,GAAsB/B,IAC1B,MAAMgC,EAAqB7B,EAAAA,mBACrB8B,EAAY7C,EAAkBK,QAC9ByB,EAAanC,EAAiBU,QACpC,GAAIwC,IAAcD,GAAsBC,GAAWV,SAASS,GAC1D,OAAQhC,EAAMI,MACZ,IAAK,SAEHnC,IAAU,CAAEiE,OAAQ,cACpB,MAEF,IAAK,KAGHlC,EAAMK,iBACNL,EAAMM,kBAGFY,GAA2B,aAAbxD,GAChB0D,EAAOA,QAACF,GAIf,EAGHiB,EAAAA,iBAAgB,KACd,GACa,cAAX1B,GAC6B,MAA7BrB,EAAkBK,SACF,MAAhBR,GACS,SAATb,EAEA,OAEF,MAAMgE,EAAqBC,EAAAA,WAAWC,EAASA,UAACC,iBAC1CC,EAAgBC,iBAAiBrD,EAAkBK,SACzDP,EAAgBsD,EAAcE,iBAAiBN,GAAoB,GAClE,CAAC3B,EAAQrB,EAAmBH,EAAcb,IAG7C,MAAMuE,UAAEA,GAASC,QAAEA,IAAYC,EAAiBA,kBAACC,EAAiBA,mBAC5DC,GAAuB,cAAXtC,EAEZuC,GAAiB,IAAIC,OAAOC,OAAOC,EAAAA,0BACnCC,GAAsBC,sBAAoCL,QACrDM,IAAWF,GAAoBvE,GAEpC0E,GAAc,IAEhBC,EAAAC,IAACC,EAASA,UAAA,CAACC,iBAAiB,EAAKnG,SAG/BgG,EAAAA,IACE,MAAA,CAAA1E,IAAKgC,EACL8C,UAAW,EACXpF,KAAMA,EACNqF,UAAWC,EAAAA,WAAW,CAACnB,GAAuB,aAAZpE,EAAyB,KAAOqE,KAClEmB,MAAOT,GACPU,UAAWjC,GACC,aAAAtD,EACK,kBAAAC,EACC,mBAAAC,KACdW,EACH9B,SAAAA,MAMHyG,GAA+B,IAC9B3G,GAAcA,EAAUmC,QAQzB+D,MAACU,EAAAA,SAAQ,CACPpF,IAAK0B,EACL+B,gBAAiBtD,EACjB3B,UAAWA,EACXa,UAAWA,EACXgG,YAAaxC,GACb7D,YAAaA,EACbC,aAAcA,EACdK,KAAMA,EACNsC,WAAYA,EAAUlD,SACrB+F,OAhBHC,EAAAA,IAACY,EAAAA,cAAa,CAACjG,UAAWA,EAAqCR,OAAQgE,YACrE6B,EAAKC,IAAA,MAAA,CAAA3E,IAAK0B,EAAsBhD,SAAG+F,SAqB3C,OAAIR,GACe,UAAbrF,EACK8F,EAAAC,IAACY,EAAKA,MAAA,CAAC5G,OAAQsF,GAAYvF,SAAAyG,OAE3BT,EAAAA,IAACc,EAAAA,MAAK,CAAA9G,SAAEyG,OAEL,IAAI"}
1
+ {"version":3,"file":"Popup-3e2566da.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 { AnimationStatus } from '../hooks/PRIVATE_useAnimationStatus';\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';\nexport type Variant = 'standard' | 'unstyled';\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 styling variant. If <code>unstyled</code> is set, standard styles are not applied.\n */\n variant?: Variant;\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 variant = 'standard',\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 const prevStatusRef = useRef<AnimationStatus>('unmounted');\n\n // testId support\n const testIdProps = useTestId(testId);\n\n const insideRefs: RefObject<HTMLElement>[] = [contentWrapperRef];\n // launcher should be considered an \"inside\" element\n if (localLauncherRef.current && localLauncherRef.current !== document.body) {\n insideRefs.push(localLauncherRef);\n }\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: insideRefs,\n handler: (event) => {\n onClickOutside?.(event);\n }\n });\n\n const launcherKeyDownCallback = useCallback(\n (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 // eslint-disable-next-line react-hooks/exhaustive-deps\n [modality]\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(() => mergeRefs(contentWrapperRef, ref), [contentWrapperRef, ref]);\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]);\n\n useEffect(() => {\n // Init closing\n if (!isOpen && status === 'opening' && modality !== 'modal') {\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 // JET-71010 - for modal popups, the focus cannot be moved until the modal overlay is gone\n else if (!isOpen && status === 'unmounted' && modality === 'modal') {\n // avoid returning focus on initial render\n if (status !== prevStatusRef.current) {\n returnFocus();\n }\n }\n return () => {\n prevStatusRef.current = status;\n };\n }, [isOpen, status, returnFocus, modality]);\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, launcherKeyDownCallback]);\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 <FocusTrap restoreFocusRef={false}>\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 <div\n ref={stableRef}\n tabIndex={-1}\n role={role}\n className={classNames([baseTheme, variant === 'unstyled' ? null : classes])}\n style={styles}\n onKeyDown={handlePopupKeyDown}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n {...testIdProps}>\n {children}\n </div>\n </FocusTrap>\n );\n };\n\n const renderFloatingOrOverlayPopup = () => {\n if (!anchorRef || !anchorRef.current) {\n return (\n <WindowOverlay placement={placement as WindowOverlayPlacement} offset={finalOffset}>\n <div ref={setAnimationElementRef}>{renderPopup()}</div>\n </WindowOverlay>\n );\n } else {\n return (\n <Floating\n ref={setAnimationElementRef}\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":["Popup","forwardRef","anchorRef","launcherRef","children","isOpen","modality","offset","mainAxis","crossAxis","flipOptions","shiftOptions","onClickOutside","onClose","initialFocus","placement","tail","onTransitionEnd","onFocusSet","variant","role","ariaLabel","ariaLabelledBy","ariaDescribedBy","testId","props","ref","localLauncherRef","useRef","popupBgColor","setPopupBgColor","useState","contentWrapperRef","prevStatusRef","testIdProps","useTestId","insideRefs","current","document","body","push","useOutsideClick","isDisabled","handler","event","launcherKeyDownCallback","useCallback","getActiveElement","code","preventDefault","stopPropagation","focusWithin","setAnimationElementRef","status","onPosition","usePopupAnimation","isAnimatedOnMount","setInitialFocus","stableRef","useMemo","mergeRefs","returnFocus","launcherEl","anchorEl","focusOn","Element","useEffect","contains","addEventListener","removeEventListener","derivedInitialFocus","finalOffset","calcOffset","getMainAxisOffset","getCrossAxisOffset","handlePopupKeyDown","currentlyFocusedEl","wrapperEl","reason","useLayoutEffect","backgroundColorVar","getVarName","popupVars","backgroundColor","computedStyle","getComputedStyle","getPropertyValue","baseTheme","classes","useComponentTheme","PopupRedwoodTheme","isMounted","interpolations","Object","values","dimensionInterpolations","styleInterpolations","mergeInterpolations","styles","renderPopup","_jsx","jsx","FocusTrap","restoreFocusRef","tabIndex","className","classNames","style","onKeyDown","renderFloatingOrOverlayPopup","Floating","offsetValue","WindowOverlay","Modal","Layer"],"mappings":"knBAwJa,MAAAA,EAAQC,EAAAA,YACnB,EAEIC,YACAC,cACAC,WACAC,UAAS,EACTC,WAAW,WACXC,SAAS,CAAEC,SAAU,EAAGC,UAAW,GACnCC,cAAc,CAAEF,UAAU,EAAMC,WAAW,GAC3CE,eAAe,CAAEH,UAAU,EAAOC,WAAW,GAC7CG,iBACAC,UACAC,eAAe,OACfC,aAAYb,EAAY,MAAQ,UAChCc,OAAO,OACPC,kBACAC,aACAC,UAAU,WACVC,QAAoB,aAAbd,EAA0B,UAAY,UAC7C,aAAce,EACd,kBAAmBC,EACnB,mBAAoBC,EACpBC,YACGC,GAELC,KAEA,MAAMC,EAAmBC,SAA2B,OAC7CC,EAAcC,GAAmBC,EAAQA,WAE1CC,EAAoBJ,SAA8B,MAElDK,EAAgBL,SAAwB,aAGxCM,EAAcC,YAAUX,GAExBY,EAAuC,CAACJ,GAE1CL,EAAiBU,SAAWV,EAAiBU,UAAYC,SAASC,MACpEH,EAAWI,KAAKb,GAMlBc,kBAAgB,CACdC,aAAcrC,GAAU2B,EAAkBK,SAC1CX,IAAKU,EACLO,QAAUC,IACRhC,IAAiBgC,EAAM,IAI3B,MAAMC,EAA0BC,eAC7BF,IAEGjB,EAAiBU,UAAYU,sBACd,OAAfH,EAAMI,MACO,aAAb1C,IAIAsC,EAAMK,iBACNL,EAAMM,kBAENC,cAAYnB,EAAkBK,SAC9BnB,MACD,GAGH,CAACZ,KAaG8C,uBAAEA,EAAsBC,OAAEA,EAAMC,WAAEA,GAAeC,EAAAA,kBAAkB,CACvElD,SACAmD,mBAAmB,EACnBvC,gBAbwBZ,IACpBA,GACFoD,KACAxC,KAAkB,IAElBA,KAAkB,EACnB,EAQDF,UAAWA,IAEP2C,EAAYC,WAAQ,IAAMC,YAAU5B,EAAmBN,IAAM,CAACM,EAAmBN,IAEjFmC,GAAcf,EAAAA,aAAY,KAE9B,MAAMgB,EAAanC,EAAiBU,QAC9B0B,EAAW7D,GAAWmC,QAExByB,EACFE,EAAOA,QAACF,GAECC,GAAYA,aAAoBE,SACzCD,EAAOA,QAACD,EACT,GACA,CAACpC,EAAkBzB,IAEtBgE,EAAAA,WAAU,KAEH7D,GAAqB,YAAXgD,GAAqC,UAAb/C,EAU7BD,GAAqB,cAAXgD,GAAuC,UAAb/C,GAExC+C,IAAWpB,EAAcI,SAC3BwB,KARE7B,EAAkBK,SAAS8B,SAASpB,EAAAA,qBACtCc,KAUG,KACL5B,EAAcI,QAAUgB,CAAM,IAE/B,CAAChD,EAAQgD,EAAQQ,GAAavD,IAGjC4D,EAAAA,WAAU,KACJ7D,IACGF,GAAakC,SAIPlC,EAAYkC,mBAAmB4B,QAGxCtC,EAAiBU,QAAUC,SAASC,KAAK4B,SAAShE,EAAYkC,SAC1DlC,EAAYkC,QACXU,EAAAA,mBANLpB,EAAiBU,QAAUU,EAAAA,mBAW7BpB,EAAiBU,SAAS+B,iBAAiB,UAAWvB,IAEjD,KAELlB,EAAiBU,SAASgC,oBAAoB,UAAWxB,EAAwB,IAElF,CAACxC,EAAQF,EAAa0C,IAIzB,MAAMY,GAAkB,KACtB,IAAIa,EAAsBxD,EACL,SAAjBA,IAGAwD,EAFe,UAAbhE,EAEoB,iBAGA,QAME,UAAxBgE,IACFN,UAAQhC,EAAkBK,SAC1BnB,MACAD,KAAkB,IAKQ,mBAAxBqD,IACFnB,cAAYnB,EAAkBK,SAC9BnB,MACD,EA0BGqD,GAAc,CAClB/D,SAxBwB,CAACD,IACzB,IAAIiE,EAAa,EASjB,OARIjE,IAGFiE,EAA+B,iBAAXjE,EAAsBA,EAASA,EAAOC,UAAY,EACzD,WAATQ,IACFwD,GAAc,IAGXA,CAAU,EAcPC,CAAkBlE,GAC5BE,UAZyB,CAACF,GACrBA,EAKsB,iBAAXA,EAAsB,EAAIA,EAAOE,WAAa,EAJrD,EAUEiE,CAAmBnE,IAG1BoE,GAAsB/B,IAC1B,MAAMgC,EAAqB7B,EAAAA,mBACrB8B,EAAY7C,EAAkBK,QAC9ByB,EAAanC,EAAiBU,QACpC,GAAIwC,IAAcD,GAAsBC,GAAWV,SAASS,GAC1D,OAAQhC,EAAMI,MACZ,IAAK,SAEHnC,IAAU,CAAEiE,OAAQ,cACpB,MAEF,IAAK,KAGHlC,EAAMK,iBACNL,EAAMM,kBAGFY,GAA2B,aAAbxD,GAChB0D,EAAOA,QAACF,GAIf,EAGHiB,EAAAA,iBAAgB,KACd,GACa,cAAX1B,GAC6B,MAA7BrB,EAAkBK,SACF,MAAhBR,GACS,SAATb,EAEA,OAEF,MAAMgE,EAAqBC,EAAAA,WAAWC,EAASA,UAACC,iBAC1CC,EAAgBC,iBAAiBrD,EAAkBK,SACzDP,EAAgBsD,EAAcE,iBAAiBN,GAAoB,GAClE,CAAC3B,EAAQrB,EAAmBH,EAAcb,IAG7C,MAAMuE,UAAEA,GAASC,QAAEA,IAAYC,EAAiBA,kBAACC,EAAiBA,mBAC5DC,GAAuB,cAAXtC,EAEZuC,GAAiB,IAAIC,OAAOC,OAAOC,EAAAA,0BACnCC,GAAsBC,sBAAoCL,QACrDM,IAAWF,GAAoBvE,GAEpC0E,GAAc,IAEhBC,EAAAC,IAACC,EAASA,UAAA,CAACC,iBAAiB,EAAKnG,SAG/BgG,EAAAA,IACE,MAAA,CAAA1E,IAAKgC,EACL8C,UAAW,EACXpF,KAAMA,EACNqF,UAAWC,EAAAA,WAAW,CAACnB,GAAuB,aAAZpE,EAAyB,KAAOqE,KAClEmB,MAAOT,GACPU,UAAWjC,GACC,aAAAtD,EACK,kBAAAC,EACC,mBAAAC,KACdW,EACH9B,SAAAA,MAMHyG,GAA+B,IAC9B3G,GAAcA,EAAUmC,QAQzB+D,MAACU,EAAAA,SAAQ,CACPpF,IAAK0B,EACL+B,gBAAiBtD,EACjB3B,UAAWA,EACXa,UAAWA,EACXgG,YAAaxC,GACb7D,YAAaA,EACbC,aAAcA,EACdK,KAAMA,EACNsC,WAAYA,EAAUlD,SACrB+F,OAhBHC,EAAAA,IAACY,EAAAA,cAAa,CAACjG,UAAWA,EAAqCR,OAAQgE,YACrE6B,EAAKC,IAAA,MAAA,CAAA3E,IAAK0B,EAAsBhD,SAAG+F,SAqB3C,OAAIR,GACe,UAAbrF,EACK8F,EAAAC,IAACY,EAAKA,MAAA,CAAC5G,OAAQsF,GAAYvF,SAAAyG,OAE3BT,EAAAA,IAACc,EAAAA,MAAK,CAAA9G,SAAEyG,OAEL,IAAI"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useUser-e8dd7f7c', './useTranslationBundle-68275657', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme', './LinearMeter-d1e744c1'], (function(e,a,r,s,l,o,n,t){"use strict";const i=({id:e,width:i,edge:d="none",...c})=>{const{classes:u,styles:{valueStyle:m,indeterminate:g,animationStyleLTR:h,animationStyleRTL:v,highContrastValueStyle:x,trackBorderEdgeNone:B,trackBorderEdgeTop:b}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===d?d:void 0}),{direction:T,forcedColors:p}=s.useUser(),y=r.classNames([m,g,"rtl"===T?v:h,"active"===p?x:""]),j=l.useTranslationBundle("@oracle/oraclejet-preact"),N={"aria-valuetext":c["aria-valuetext"]||j.progressIndeterminate(),"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],role:"progressbar"},f="active"===p?void 0:"none"===d?B:b;return a.jsx(t.BarTrack,{id:e,ariaProps:N,class:r.classNames([u,f]),length:i,children:a.jsx(t.BarValue,{class:y})})},d=({value:e=0,max:l=100,id:i,width:d,edge:c="none",...u})=>{const{forcedColors:m}=s.useUser(),{classes:g,styles:{valueStyle:h,highContrastValueStyle:v,trackBorderEdgeNone:x,trackBorderEdgeTop:B}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===c?c:void 0}),b=r.classNames([h,"active"===m?v:""]),T=100*Math.min(Math.max(0,e/l),1)+"%",p={};return p["aria-valuemin"]=null!=e?0:void 0,p["aria-valuemax"]=null!=e?l:void 0,p["aria-valuenow"]=null!=e?e:void 0,p.role="progressbar",p["aria-label"]=u["aria-label"],p["aria-labelledby"]=u["aria-labelledby"],a.jsx(t.BarTrack,{ariaProps:p,id:i,length:d,class:r.classNames([g,"none"===c?x:B]),children:a.jsx(t.BarValue,{class:b,length:T})})};e.ProgressBar=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(i,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
- //# sourceMappingURL=ProgressBar-8ab08930.js.map
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useUser-797287de', './useTranslationBundle-7c40cb58', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme', './LinearMeter-d1e744c1'], (function(e,a,r,s,l,o,n,t){"use strict";const i=({id:e,width:i,edge:d="none",...c})=>{const{classes:u,styles:{valueStyle:m,indeterminate:g,animationStyleLTR:h,animationStyleRTL:v,highContrastValueStyle:b,trackBorderEdgeNone:x,trackBorderEdgeTop:B}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===d?d:void 0}),{direction:T,forcedColors:p}=s.useUser(),y=r.classNames([m,g,"rtl"===T?v:h,"active"===p?b:""]),j=l.useTranslationBundle("@oracle/oraclejet-preact"),N={"aria-valuetext":c["aria-valuetext"]||j.progressIndeterminate(),"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],role:"progressbar"},C="active"===p?void 0:"none"===d?x:B;return a.jsx(t.BarTrack,{id:e,ariaProps:N,class:r.classNames([u,C]),length:i,children:a.jsx(t.BarValue,{class:y})})},d=({value:e=0,max:l=100,id:i,width:d,edge:c="none",...u})=>{const{forcedColors:m}=s.useUser(),{classes:g,styles:{valueStyle:h,highContrastValueStyle:v,trackBorderEdgeNone:b,trackBorderEdgeTop:x}}=o.useComponentTheme(n.ProgressBarRedwoodTheme,{edge:"none"===c?c:void 0}),B=r.classNames([h,"active"===m?v:""]),T=100*Math.min(Math.max(0,e/l),1)+"%",p={};return p["aria-valuemin"]=null!=e?0:void 0,p["aria-valuemax"]=null!=e?l:void 0,p["aria-valuenow"]=null!=e?e:void 0,p.role="progressbar",p["aria-label"]=u["aria-label"],p["aria-labelledby"]=u["aria-labelledby"],a.jsx(t.BarTrack,{ariaProps:p,id:i,length:d,class:r.classNames([g,"none"===c?b:x]),children:a.jsx(t.BarValue,{class:B,length:T})})};e.ProgressBar=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(i,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
+ //# sourceMappingURL=ProgressBar-99c0ff2a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar-8ab08930.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 * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: 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 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\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 ...props\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 (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\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":["IndeterminateProgressBar","id","width","edge","props","classes","styles","valueStyle","indeterminate","animationStyleLTR","animationStyleRTL","highContrastValueStyle","trackBorderEdgeNone","trackBorderEdgeTop","useComponentTheme","ProgressBarRedwoodTheme","undefined","direction","forcedColors","useUser","barValueClasses","classNames","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","trackBorderClass","_jsx","jsx","BarTrack","class","length","children","BarValue","DeterminateProgressBar","value","max","percentage","Math","min","otherProps"],"mappings":"8QA4EA,MAAMA,EAA2B,EAAGC,KAAIC,QAAOC,OAAO,UAAWC,MAC/D,MAAMC,QACJA,EACAC,QAAQC,WACNA,EAAUC,cACVA,EAAaC,kBACbA,EAAiBC,kBACjBA,EAAiBC,uBACjBA,EAAsBC,oBACtBA,EAAmBC,mBACnBA,IAEAC,EAAAA,kBAAgEC,EAAAA,wBAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,KAG3BC,UAAEA,EAASC,aAAEA,GAAiBC,EAAOA,UACrCC,EAAkBC,EAAAA,WAAW,CACjCd,EACAC,EACc,QAAdS,EAAsBP,EAAoBD,EACzB,WAAjBS,EAA4BP,EAAyB,KAEjDW,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBpB,EAAM,mBAAqBkB,EAAaG,wBAC1D,aAAcrB,EAAM,cACpB,kBAAmBA,EAAM,mBACzBsB,KAAM,eAEFC,EACa,WAAjBT,OACIF,EACS,SAATb,EACAS,EACAC,EACN,OACEe,EAACC,IAAAC,WACC,CAAA7B,GAAIA,EACJuB,UAAWA,EACXO,MAAOV,EAAUA,WAAC,CAAChB,EAASsB,IAC5BK,OAAQ9B,EACR+B,SAAAL,EAAAC,IAACK,WAAQ,CAACH,MAAOX,KAEnB,EAOEe,EAAyB,EAC7BC,QAAQ,EACRC,MAAM,IACNpC,KACAC,QACAC,OAAO,UACJC,MAEH,MAAMc,aAAEA,GAAiBC,EAAAA,WACnBd,QACJA,EACAC,QAAQC,WAAEA,EAAUI,uBAAEA,EAAsBC,oBAAEA,EAAmBC,mBAAEA,IACjEC,EAAiBA,kBAA+CC,0BAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,IAG3BI,EAAkBC,EAAAA,WAAW,CACjCd,EACiB,WAAjBW,EAA4BP,EAAyB,KAGjD2B,EAAwD,IAAxCC,KAAKC,IAAID,KAAKF,IAAI,EAAGD,EAAQC,GAAM,GAAtC,IACbb,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATY,EAAgB,OAAIpB,EACjDQ,EAAU,iBAA4B,MAATY,EAAgBC,OAAMrB,EACnDQ,EAAU,iBAA4B,MAATY,EAAgBA,OAAQpB,EACrDQ,EAAgB,KAAI,cACnBA,EAAU,cAAgBpB,EAAM,cAC9BoB,EAAU,mBAAqBpB,EAAM,mBAEtCwB,MAACE,EAAQA,SAAA,CACPN,UAAWA,EACXvB,GAAIA,EACJ+B,OAAQ9B,EACR6B,MAAOV,EAAUA,WAAC,CAAChB,EAAkB,SAATF,EAAkBS,EAAsBC,IACpEoB,SAAAL,EAAAA,IAACM,EAAAA,SAAS,CAAAH,MAAOX,EAAiBY,OAAQM,KAE5C,gBAlGE,UAAsBF,MAAEA,EAAKC,IAAEA,KAAQI,IAC3C,MAAiB,kBAAVL,EACLR,EAAAC,IAAC7B,EAAwB,IAAKyC,IAE9Bb,EAAAA,IAACO,EAAuB,CAAAC,MAAOA,EAAOC,IAAKA,KAASI,GAExD"}
1
+ {"version":3,"file":"ProgressBar-99c0ff2a.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 * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: 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 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\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 ...props\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 (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\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":["IndeterminateProgressBar","id","width","edge","props","classes","styles","valueStyle","indeterminate","animationStyleLTR","animationStyleRTL","highContrastValueStyle","trackBorderEdgeNone","trackBorderEdgeTop","useComponentTheme","ProgressBarRedwoodTheme","undefined","direction","forcedColors","useUser","barValueClasses","classNames","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","trackBorderClass","_jsx","jsx","BarTrack","class","length","children","BarValue","DeterminateProgressBar","value","max","percentage","Math","min","otherProps"],"mappings":"8QA4EA,MAAMA,EAA2B,EAAGC,KAAIC,QAAOC,OAAO,UAAWC,MAC/D,MAAMC,QACJA,EACAC,QAAQC,WACNA,EAAUC,cACVA,EAAaC,kBACbA,EAAiBC,kBACjBA,EAAiBC,uBACjBA,EAAsBC,oBACtBA,EAAmBC,mBACnBA,IAEAC,EAAAA,kBAAgEC,EAAAA,wBAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,KAG3BC,UAAEA,EAASC,aAAEA,GAAiBC,EAAOA,UACrCC,EAAkBC,EAAAA,WAAW,CACjCd,EACAC,EACc,QAAdS,EAAsBP,EAAoBD,EACzB,WAAjBS,EAA4BP,EAAyB,KAEjDW,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBpB,EAAM,mBAAqBkB,EAAaG,wBAC1D,aAAcrB,EAAM,cACpB,kBAAmBA,EAAM,mBACzBsB,KAAM,eAEFC,EACa,WAAjBT,OACIF,EACS,SAATb,EACAS,EACAC,EACN,OACEe,EAACC,IAAAC,WACC,CAAA7B,GAAIA,EACJuB,UAAWA,EACXO,MAAOV,EAAUA,WAAC,CAAChB,EAASsB,IAC5BK,OAAQ9B,EACR+B,SAAAL,EAAAC,IAACK,WAAQ,CAACH,MAAOX,KAEnB,EAOEe,EAAyB,EAC7BC,QAAQ,EACRC,MAAM,IACNpC,KACAC,QACAC,OAAO,UACJC,MAEH,MAAMc,aAAEA,GAAiBC,EAAAA,WACnBd,QACJA,EACAC,QAAQC,WAAEA,EAAUI,uBAAEA,EAAsBC,oBAAEA,EAAmBC,mBAAEA,IACjEC,EAAiBA,kBAA+CC,0BAAyB,CAC3FZ,KAAe,SAATA,EAAkBA,OAAOa,IAG3BI,EAAkBC,EAAAA,WAAW,CACjCd,EACiB,WAAjBW,EAA4BP,EAAyB,KAGjD2B,EAAwD,IAAxCC,KAAKC,IAAID,KAAKF,IAAI,EAAGD,EAAQC,GAAM,GAAtC,IACbb,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATY,EAAgB,OAAIpB,EACjDQ,EAAU,iBAA4B,MAATY,EAAgBC,OAAMrB,EACnDQ,EAAU,iBAA4B,MAATY,EAAgBA,OAAQpB,EACrDQ,EAAgB,KAAI,cACnBA,EAAU,cAAgBpB,EAAM,cAC9BoB,EAAU,mBAAqBpB,EAAM,mBAEtCwB,MAACE,EAAQA,SAAA,CACPN,UAAWA,EACXvB,GAAIA,EACJ+B,OAAQ9B,EACR6B,MAAOV,EAAUA,WAAC,CAAChB,EAAkB,SAATF,EAAkBS,EAAsBC,IACpEoB,SAAAL,EAAAA,IAACM,EAAAA,SAAS,CAAAH,MAAOX,EAAiBY,OAAQM,KAE5C,gBAlGE,UAAsBF,MAAEA,EAAKC,IAAEA,KAAQI,IAC3C,MAAiB,kBAAVL,EACLR,EAAAC,IAAC7B,EAAwB,IAAKyC,IAE9Bb,EAAAA,IAACO,EAAuB,CAAAC,MAAOA,EAAOC,IAAKA,KAASI,GAExD"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-c86afd54', './ProgressButtonLabelLayout-76d8a3e7', 'preact/compat', './useTooltip-682ae8ca', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-27dfba9e', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-36ddb881', './buttonUtils-97878e90', './resources/nls/en/bundle'], (function(e,t,o,s,a,l,i,n,r,d,c,b,u,p,g,y,m){"use strict";const f=l.forwardRef((({variant:e="outlined",isLoading:l=!1,isDisabled:n=!1,size:d="md",display:c="all",type:b="button",startIcon:u,edge:p,testId:g,onAction:f,label:L="",tooltip:h,"aria-describedby":B,width:P,...T},v)=>{const{globalEventProps:A}=y.processGlobals(T),x=!n&&l,C=m.default.accButtonProgressStatus({label:L}),w=m.default.accButtonProgressComplete({label:L}),j=x&&("label"==c||!u)?h||L:h,{tooltipContent:D,tooltipProps:I}=i.useTooltip({text:j,isDisabled:n}),S=!u||"label"===c,U={type:"button",buttonType:b},k=t.jsx(a.ProgressButtonLabelLayout,{display:c,isLoadingContrast:"callToAction"===e,startIcon:u,accessibleLoadedLabel:w,accessibleLoadingLabel:C,size:d,isLoading:x,children:L}),{"aria-describedby":z,...E}=I;return t.jsxs(o.Fragment,{children:[t.jsx(s.BaseButton,{...r.mergeProps(E,A),ref:v,elementDetails:U,isDisabled:n,isReadOnly:x,size:d,width:P,edge:p,variant:e,styling:S?x?["default","hiddenLabel","noHoverActive"]:["default"]:x?["noHoverActive","min"]:["min"],onAction:f,"aria-label":L,testId:g,children:k}),D]})}));f.displayName="ProgressButton",e.ProgressButton=f}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-c86afd54', './ProgressButtonLabelLayout-76d8a3e7', 'preact/compat', './useTooltip-7b915f4c', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-733ade2f', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', './buttonUtils-97878e90', './resources/nls/en/bundle'], (function(e,t,o,s,a,l,i,n,r,d,c,u,b,p,g,y,f){"use strict";const m=l.forwardRef((({variant:e="outlined",isLoading:l=!1,isDisabled:n=!1,size:d="md",display:c="all",type:u="button",startIcon:b,edge:p,testId:g,onAction:m,label:L="",tooltip:h,"aria-describedby":B,width:P,...T},v)=>{const{globalEventProps:A}=y.processGlobals(T),x=!n&&l,C=f.default.accButtonProgressStatus({label:L}),w=f.default.accButtonProgressComplete({label:L}),j=x&&("label"==c||!b)?h||L:h,{tooltipContent:D,tooltipProps:I}=i.useTooltip({text:j,isDisabled:n}),S=!b||"label"===c,U={type:"button",buttonType:u},k=t.jsx(a.ProgressButtonLabelLayout,{display:c,isLoadingContrast:"callToAction"===e,startIcon:b,accessibleLoadedLabel:w,accessibleLoadingLabel:C,size:d,isLoading:x,children:L}),{"aria-describedby":z,...E}=I;return t.jsxs(o.Fragment,{children:[t.jsx(s.BaseButton,{...r.mergeProps(E,A),ref:v,elementDetails:U,isDisabled:n,isReadOnly:x,size:d,width:P,edge:p,variant:e,styling:S?x?["default","hiddenLabel","noHoverActive"]:["default"]:x?["noHoverActive","min"]:["min"],onAction:m,"aria-label":L,testId:g,children:k}),D]})}));m.displayName="ProgressButton",e.ProgressButton=m}));
2
2
  //# sourceMappingURL=ProgressButton-cd0c21df.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useProgressButtonLabelLayoutTheme-8893dd91', './classNames-08d99695', './ProgressCircle-9c36b39c', './withThemeProps-cab1ae08', './View-b5d6b669', './useColorScheme-09a67d56', 'preact/hooks', './HiddenAccessible-037ef42d'], (function(s,e,a,i,t,n,r,o,l,c){"use strict";function d({isLoadingContrast:s=!1}){const a=n.withThemeProps(r.View),i=o.useColorScheme(),l=i&&"light"!==i?"light":"dark";return s?e.jsx(a,{colorScheme:l,children:e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}):e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}function h({size:s="md",display:t="all",styling:n="default",isLoadingContrast:r=!1,isLoading:o=!1,children:h,startIcon:u,accessibleLoadedLabel:g,accessibleLoadingLabel:m}){const{startIconClasses:L,labelClasses:b,labelStyles:p,progressIconClasses:x,containerClasses:C,isShowIcons:j,isShowText:y,hasTextStartIcon:P}=a.useProgressButtonLabelLayoutTheme({display:t,size:s,styling:n,isLoading:o,startIcon:u,children:h}),S="label"===t||!u,v=i.classNames([C,o?x:void 0]),[f,I]=l.useState(!1),[T,w]=l.useState(!1);return o&&!f&&w(!0),!o&&T&&(I(!0),w(!1),setTimeout((()=>{I(!1)}),500)),e.jsxs("span",{class:v,children:[j&&u&&e.jsx("span",{class:L,"aria-hidden":!0,children:o?e.jsx(d,{isLoadingContrast:r}):u}),y&&h&&e.jsxs("span",{"aria-hidden":!0,class:S?void 0:b,children:[" ",h," "]}),y&&h&&o&&!P&&e.jsx("span",{class:p.floatingIcon,"aria-hidden":!0,children:e.jsx(d,{isLoadingContrast:r})}),g?e.jsx("span",{"aria-live":"assertive",children:e.jsx(c.HiddenAccessible,{children:f?g:o?m:void 0})}):void 0]})}d.displayName="AdjustedProgressCircle",h.displayName="ProgressButtonLabelLayout",s.ProgressButtonLabelLayout=h}));
1
+ define(['exports', 'preact/jsx-runtime', './useProgressButtonLabelLayoutTheme-8893dd91', './classNames-08d99695', './ProgressCircle-0046c4c8', './withThemeProps-cab1ae08', './View-db26162c', './useColorScheme-6b864d5c', 'preact/hooks', './HiddenAccessible-037ef42d'], (function(s,e,a,i,t,n,r,o,l,c){"use strict";function d({isLoadingContrast:s=!1}){const a=n.withThemeProps(r.View),i=o.useColorScheme(),l=i&&"light"!==i?"light":"dark";return s?e.jsx(a,{colorScheme:l,children:e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}):e.jsx(t.ProgressCircle,{size:"sm",value:"indeterminate"})}function h({size:s="md",display:t="all",styling:n="default",isLoadingContrast:r=!1,isLoading:o=!1,children:h,startIcon:u,accessibleLoadedLabel:g,accessibleLoadingLabel:m}){const{startIconClasses:L,labelClasses:b,labelStyles:p,progressIconClasses:x,containerClasses:C,isShowIcons:j,isShowText:y,hasTextStartIcon:P}=a.useProgressButtonLabelLayoutTheme({display:t,size:s,styling:n,isLoading:o,startIcon:u,children:h}),S="label"===t||!u,v=i.classNames([C,o?x:void 0]),[f,I]=l.useState(!1),[T,w]=l.useState(!1);return o&&!f&&w(!0),!o&&T&&(I(!0),w(!1),setTimeout((()=>{I(!1)}),500)),e.jsxs("span",{class:v,children:[j&&u&&e.jsx("span",{class:L,"aria-hidden":!0,children:o?e.jsx(d,{isLoadingContrast:r}):u}),y&&h&&e.jsxs("span",{"aria-hidden":!0,class:S?void 0:b,children:[" ",h," "]}),y&&h&&o&&!P&&e.jsx("span",{class:p.floatingIcon,"aria-hidden":!0,children:e.jsx(d,{isLoadingContrast:r})}),g?e.jsx("span",{"aria-live":"assertive",children:e.jsx(c.HiddenAccessible,{children:f?g:o?m:void 0})}):void 0]})}d.displayName="AdjustedProgressCircle",h.displayName="ProgressButtonLabelLayout",s.ProgressButtonLabelLayout=h}));
2
2
  //# sourceMappingURL=ProgressButtonLabelLayout-76d8a3e7.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './meterUtils-775a2dde', './circleUtils-1886e5b4', './useTranslationBundle-68275657', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme', './CircularMeter-b754580a'], (function(e,a,r,s,l,i,t,n,o){"use strict";const c=({id:e,size:r,...s})=>{const{classes:l,styles:{indeterminate:c}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:r,type:"indeterminate"}),d=i.useTranslationBundle("@oracle/oraclejet-preact"),m={"aria-valuetext":s["aria-valuetext"]||d.progressIndeterminate(),"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"],role:"progressbar"};return a.jsx(o.CircleWrapper,{id:e,ariaProps:m,class:l,children:a.jsx(o.CircleInner,{class:c})})},d=({value:e=0,max:s=100,id:i,size:c,...d})=>{const{classes:m,styles:{determinate:u,track:p,valueStyle:b}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:c}),x=Math.min(Math.max(0,e/s),1),C=l.getProgressClipPath(x),h={};return h["aria-valuemin"]=null!=e?0:void 0,h["aria-valuemax"]=null!=e?s:void 0,h["aria-valuenow"]=null!=e?e:void 0,h.role="progressbar",h["aria-label"]=d["aria-label"],h["aria-labelledby"]=d["aria-labelledby"],a.jsxs(o.CircleWrapper,{id:i,ariaProps:h,class:m,children:[a.jsx(o.CircleInner,{class:r.classNames([u,p])}),a.jsx(o.CircleInner,{class:r.classNames([u,b]),clipPath:C})]})};e.ProgressCircle=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(c,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
- //# sourceMappingURL=ProgressCircle-9c36b39c.js.map
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './meterUtils-775a2dde', './circleUtils-1886e5b4', './useTranslationBundle-7c40cb58', './useComponentTheme-5aa41a8f', './UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme', './CircularMeter-b754580a'], (function(e,a,r,s,l,i,t,n,c){"use strict";const o=({id:e,size:r,...s})=>{const{classes:l,styles:{indeterminate:o}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:r,type:"indeterminate"}),d=i.useTranslationBundle("@oracle/oraclejet-preact"),m={"aria-valuetext":s["aria-valuetext"]||d.progressIndeterminate(),"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"],role:"progressbar"};return a.jsx(c.CircleWrapper,{id:e,ariaProps:m,class:l,children:a.jsx(c.CircleInner,{class:o})})},d=({value:e=0,max:s=100,id:i,size:o,...d})=>{const{classes:m,styles:{determinate:u,track:p,valueStyle:b}}=t.useComponentTheme(n.ProgressCircleRedwoodTheme,{size:o}),x=Math.min(Math.max(0,e/s),1),C=l.getProgressClipPath(x),h={};return h["aria-valuemin"]=null!=e?0:void 0,h["aria-valuemax"]=null!=e?s:void 0,h["aria-valuenow"]=null!=e?e:void 0,h.role="progressbar",h["aria-label"]=d["aria-label"],h["aria-labelledby"]=d["aria-labelledby"],a.jsxs(c.CircleWrapper,{id:i,ariaProps:h,class:m,children:[a.jsx(c.CircleInner,{class:r.classNames([u,p])}),a.jsx(c.CircleInner,{class:r.classNames([u,b]),clipPath:C})]})};e.ProgressCircle=function({value:e,max:r,...s}){return"indeterminate"===e?a.jsx(o,{...s}):a.jsx(d,{value:e,max:r,...s})}}));
2
+ //# sourceMappingURL=ProgressCircle-0046c4c8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCircle-9c36b39c.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 * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: string;\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 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\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 = ({\n value = 0,\n max = 100,\n id,\n size,\n ...props\n}: 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 (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\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":["IndeterminateProgressCircle","id","size","props","classes","styles","indeterminate","useComponentTheme","ProgressCircleRedwoodTheme","type","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","_jsx","CircleWrapper","class","children","jsx","CircleInner","DeterminateProgressCircle","value","max","determinate","track","valueStyle","percentage","Math","min","clipPath","getProgressClipPath","undefined","_jsxs","classNames","otherProps"],"mappings":"oTA0EA,MAAMA,EAA8B,EAAGC,KAAIC,UAASC,MAClD,MAAMC,QACJA,EACAC,QAAQC,cAAEA,IACRC,EAAiBA,kBACnBC,6BACA,CACEN,OACAO,KAAM,kBAIJC,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBT,EAAM,mBAAqBO,EAAaG,wBAC1D,aAAcV,EAAM,cACpB,kBAAmBA,EAAM,mBACzBW,KAAM,eAER,OACEC,EAAAA,IAACC,EAAAA,cAAc,CAAAf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAClDc,SAAAH,EAAAI,IAACC,cAAW,CAACH,MAAOX,KAEtB,EAOEe,EAA4B,EAChCC,QAAQ,EACRC,MAAM,IACNtB,KACAC,UACGC,MAEH,MAAMC,QACJA,EACAC,QAAQmB,YAAEA,EAAWC,MAAEA,EAAKC,WAAEA,IAC5BnB,EAAiBA,kBACnBC,6BACA,CACEN,SAIEyB,EAAaC,KAAKC,IAAID,KAAKL,IAAI,EAAGD,EAAQC,GAAM,GAChDO,EAAWC,sBAAoBJ,GAE/Bf,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATU,EAAgB,OAAIU,EACjDpB,EAAU,iBAA4B,MAATU,EAAgBC,OAAMS,EACnDpB,EAAU,iBAA4B,MAATU,EAAgBA,OAAQU,EACrDpB,EAAgB,KAAI,cACnBA,EAAU,cAAgBT,EAAM,cAC9BS,EAAU,mBAAqBT,EAAM,mBAEtC8B,EAAAA,KAACjB,EAAAA,cAAa,CAACf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAAOc,SAAA,CACzDH,EAAAA,IAACK,EAAAA,aAAYH,MAAOiB,aAAW,CAACV,EAAaC,MAC7CV,EAAAI,IAACC,EAAWA,YAAC,CAAAH,MAAOiB,EAAUA,WAAC,CAACV,EAAaE,IAAcI,SAAUA,MAEvE,mBAxEE,UAAyBR,MAAEA,EAAKC,IAAEA,KAAQY,IAC9C,MAAiB,kBAAVb,EACLP,EAAAI,IAACnB,EAA2B,IAAKmC,IAEjCpB,EAAAA,IAACM,EAA0B,CAAAC,MAAOA,EAAOC,IAAKA,KAASY,GAE3D"}
1
+ {"version":3,"file":"ProgressCircle-0046c4c8.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 * A label to be used for accessibility purposes. This will be used for the aria-label of the DOM element.\n */\n 'aria-label'?: string;\n\n /**\n * One or more ids (separated by spaces) of elements that label the progress bar. This will be used for the aria-labelledby of the DOM element.\n */\n 'aria-labelledby'?: string;\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 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\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 = ({\n value = 0,\n max = 100,\n id,\n size,\n ...props\n}: 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 (ariaProps['aria-label'] = props['aria-label']),\n (ariaProps['aria-labelledby'] = props['aria-labelledby']);\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":["IndeterminateProgressCircle","id","size","props","classes","styles","indeterminate","useComponentTheme","ProgressCircleRedwoodTheme","type","translations","useTranslationBundle","ariaProps","progressIndeterminate","role","_jsx","CircleWrapper","class","children","jsx","CircleInner","DeterminateProgressCircle","value","max","determinate","track","valueStyle","percentage","Math","min","clipPath","getProgressClipPath","undefined","_jsxs","classNames","otherProps"],"mappings":"oTA0EA,MAAMA,EAA8B,EAAGC,KAAIC,UAASC,MAClD,MAAMC,QACJA,EACAC,QAAQC,cAAEA,IACRC,EAAiBA,kBACnBC,6BACA,CACEN,OACAO,KAAM,kBAIJC,EAAeC,uBAAiC,4BAChDC,EAA2B,CAC/B,iBAAkBT,EAAM,mBAAqBO,EAAaG,wBAC1D,aAAcV,EAAM,cACpB,kBAAmBA,EAAM,mBACzBW,KAAM,eAER,OACEC,EAAAA,IAACC,EAAAA,cAAc,CAAAf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAClDc,SAAAH,EAAAI,IAACC,cAAW,CAACH,MAAOX,KAEtB,EAOEe,EAA4B,EAChCC,QAAQ,EACRC,MAAM,IACNtB,KACAC,UACGC,MAEH,MAAMC,QACJA,EACAC,QAAQmB,YAAEA,EAAWC,MAAEA,EAAKC,WAAEA,IAC5BnB,EAAiBA,kBACnBC,6BACA,CACEN,SAIEyB,EAAaC,KAAKC,IAAID,KAAKL,IAAI,EAAGD,EAAQC,GAAM,GAChDO,EAAWC,sBAAoBJ,GAE/Bf,EAA2B,CAAA,EAOjC,OANAA,EAAU,iBAA4B,MAATU,EAAgB,OAAIU,EACjDpB,EAAU,iBAA4B,MAATU,EAAgBC,OAAMS,EACnDpB,EAAU,iBAA4B,MAATU,EAAgBA,OAAQU,EACrDpB,EAAgB,KAAI,cACnBA,EAAU,cAAgBT,EAAM,cAC9BS,EAAU,mBAAqBT,EAAM,mBAEtC8B,EAAAA,KAACjB,EAAAA,cAAa,CAACf,GAAIA,EAAIW,UAAWA,EAAWK,MAAOb,EAAOc,SAAA,CACzDH,EAAAA,IAACK,EAAAA,aAAYH,MAAOiB,aAAW,CAACV,EAAaC,MAC7CV,EAAAI,IAACC,EAAWA,YAAC,CAAAH,MAAOiB,EAAUA,WAAC,CAACV,EAAaE,IAAcI,SAAUA,MAEvE,mBAxEE,UAAyBR,MAAEA,EAAKC,IAAEA,KAAQY,IAC9C,MAAiB,kBAAVb,EACLP,EAAAI,IAACnB,EAA2B,IAAKmC,IAEjCpB,EAAAA,IAACM,EAA0B,CAAAC,MAAOA,EAAOC,IAAKA,KAASY,GAE3D"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', './useComponentTheme-5aa41a8f', './useFocus-4194fc59', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useId-c9578d26', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useInteractionStyle-ee1dc0c0', './useTranslationBundle-68275657', './CheckboxRadioContext-6a0fead0', './Check-03759769', './RadioButtonOff-cc49ced4', './RadioButtonOn-37b2fe31', './HiddenAccessible-037ef42d', './RadioItemContext-70878de8', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', 'preact/hooks', './Flex-b8764305', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-27dfba9e', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-36ddb881', 'css!./IconStyle.styles.css', './IconButton-368fba34', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './logger-0f873e29', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './InputGroupContext-372087af', './Popup-b0704743', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './IconUserAssistance-f5228b1d', './UNSAFE_RadioItem/themes/RadioIconContract.css', './UNSAFE_RadioItem/themes/redwood/RadioIconTheme', './UNSAFE_RadioItem/themes/redwood/RadioTheme'], (function(e,s,o,t,a,n,d,i,c,l,r,u,m,b,h,p,S,y,C,x,F,A,R,T,f,g,U,I,v,B,w,M,E,_,N,j,k,L,V,D,H,O,P,z,G,$,q,J,K,Q,W,X,Y,Z){"use strict";e.RadioItem=({value:e,children:n,...i})=>{const{isReadonly:r,isDisabled:F}=d.useFormContext(),{isDisabled:A,isReadonly:R}=c.useFormFieldContext(),{name:T,value:f,onCommit:g}=x.useRadioSetContext(),{isFocusRingShown:U}=h.useCheckboxRadioContext(),{index:I}=x.useRadioItemContext(),{isTabbable:v}=u.useTabbableMode(),B=l.useId(),{isFocus:w,focusProps:M}=a.useFocus(),E=o.createRef(),_=f===e,N=A??F,j=R??r,{interactionProps:k,applyActiveStyle:L}=m.useInteractionStyle(),{classes:V,styles:{valueLabelStyle:D}}=t.useComponentTheme(Z.RadioRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",focused:w&&U?"isFocused":""}),{classes:H}=t.useComponentTheme(Y.RadioIconRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",selected:_?"isSelected":"notSelected",readonly:j?"isReadonly":"notReadonly",active:L?"isActive":"notActive"});o.useEffect((()=>{w&&U&&E?.current?.scrollIntoView({block:"nearest"})}),[w,U,E]);const{assistiveText:O,helpSourceLink:P}=i,z=!(N||j||!O&&!P),G=z?`${B}-help-available`:void 0,$=z?`${B}-icon-ua`:void 0,q=b.useTranslationBundle("@oracle/oraclejet-preact").formControl_helpAvailable(),J=j?_?p.SvgCheck:S.SvgRadioButtonOff:_?y.SvgRadioButtonOn:S.SvgRadioButtonOff,K=!1!==v&&(0===I&&!f||_)?0:-1;return s.jsx("div",{children:s.jsxs("label",{class:V,ref:E,children:[s.jsxs(C.HiddenAccessible,{children:[s.jsx("input",{type:"radio",name:T,id:B,value:e,...!j&&!N&&{onChange:s=>{s.stopPropagation(),g?.({previousValue:f,value:e})}},checked:_,disabled:N,"aria-describedby":G,tabIndex:K,...M}),z&&s.jsx(C.HiddenAccessible,{id:G,isHidden:!0,children:q})]}),s.jsx("span",{"aria-hidden":"true",class:H,...k,children:s.jsx(J,{size:X.radioIconVars.iconSize,color:"currentColor"})}),s.jsxs("span",{class:D,children:[s.jsx("span",{...k,children:n}),z&&s.jsx(W.IconUserAssistance,{...i,isTabbable:v&&w,id:$})]})]})})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', './useComponentTheme-5aa41a8f', './useFocus-4194fc59', './FormContext-5130e198', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useId-c9578d26', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useInteractionStyle-ee1dc0c0', './useTranslationBundle-7c40cb58', './CheckboxRadioContext-6a0fead0', './Check-03759769', './RadioButtonOff-cc49ced4', './RadioButtonOn-37b2fe31', './HiddenAccessible-037ef42d', './RadioItemContext-70878de8', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', 'preact/hooks', './Flex-590160eb', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-733ade2f', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', 'css!./IconStyle.styles.css', './IconButton-368fba34', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './logger-0f873e29', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './InputGroupContext-372087af', './Popup-3e2566da', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './IconUserAssistance-e496ab70', './UNSAFE_RadioItem/themes/RadioIconContract.css', './UNSAFE_RadioItem/themes/redwood/RadioIconTheme', './UNSAFE_RadioItem/themes/redwood/RadioTheme'], (function(e,s,o,t,a,n,i,d,c,l,r,u,m,b,h,p,S,y,C,x,F,A,R,T,f,g,U,I,v,B,w,M,E,_,N,j,k,L,V,D,H,O,P,z,G,$,q,J,K,Q,W,X,Y,Z){"use strict";e.RadioItem=({value:e,children:n,...d})=>{const{isReadonly:r,isDisabled:F}=i.useFormContext(),{isDisabled:A,isReadonly:R}=c.useFormFieldContext(),{name:T,value:f,onCommit:g}=x.useRadioSetContext(),{isFocusRingShown:U}=h.useCheckboxRadioContext(),{index:I}=x.useRadioItemContext(),{isTabbable:v}=u.useTabbableMode(),B=l.useId(),{isFocus:w,focusProps:M}=a.useFocus(),E=o.createRef(),_=f===e,N=A??F,j=R??r,{interactionProps:k,applyActiveStyle:L}=m.useInteractionStyle(),{classes:V,styles:{valueLabelStyle:D}}=t.useComponentTheme(Z.RadioRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",focused:w&&U?"isFocused":""}),{classes:H}=t.useComponentTheme(Y.RadioIconRedwoodTheme,{disabled:N?"isDisabled":"notDisabled",selected:_?"isSelected":"notSelected",readonly:j?"isReadonly":"notReadonly",active:L?"isActive":"notActive"});o.useEffect((()=>{w&&U&&E?.current?.scrollIntoView({block:"nearest"})}),[w,U,E]);const{assistiveText:O,helpSourceLink:P}=d,z=!(N||j||!O&&!P),G=z?`${B}-help-available`:void 0,$=z?`${B}-icon-ua`:void 0,q=b.useTranslationBundle("@oracle/oraclejet-preact").formControl_helpAvailable(),J=j?_?p.SvgCheck:S.SvgRadioButtonOff:_?y.SvgRadioButtonOn:S.SvgRadioButtonOff,K=!1!==v&&(0===I&&!f||_)?0:-1;return s.jsx("div",{children:s.jsxs("label",{class:V,ref:E,children:[s.jsxs(C.HiddenAccessible,{children:[s.jsx("input",{type:"radio",name:T,id:B,value:e,...!j&&!N&&{onChange:s=>{s.stopPropagation(),g?.({previousValue:f,value:e})}},checked:_,disabled:N,"aria-describedby":G,tabIndex:K,...M}),z&&s.jsx(C.HiddenAccessible,{id:G,isHidden:!0,children:q})]}),s.jsx("span",{"aria-hidden":"true",class:H,...k,children:s.jsx(J,{size:X.radioIconVars.iconSize,color:"currentColor"})}),s.jsxs("span",{class:D,children:[s.jsx("span",{...k,children:n}),z&&s.jsx(W.IconUserAssistance,{...d,isTabbable:v&&w,id:$})]})]})})}}));
2
2
  //# sourceMappingURL=RadioItem-1a02d3dc.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './classNames-08d99695', './UNSAFE_RatingGauge/themes/RatingGaugeContract.css', './useComponentTheme-5aa41a8f', './useUser-e8dd7f7c', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_RatingGauge/themes/redwood/RatingGaugeTheme', './useKeyboardEvents-f8b3ead1', 'preact/compat', './LayerHost-27dfba9e', 'css!./LayerStyles.styles.css', './Floating-f12b8739', 'css!./useDatatip.styles.css', './datatipUtils-72a1fe48', './meterUtils-775a2dde', './useDatatip-8a63fb35', './useTooltip-682ae8ca', './logger-0f873e29', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-36ddb881', './mergeProps-bcfa6a92', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useTestId-0140aa44'], (function(e,t,s,a,o,i,n,l,r,d,c,u,h,p,b,y,g,m,R,S,f,x,C,v,T,w,D,j,P){"use strict";function U(e,t,s,a,o){const i=a.current;if(!i||0===i.width)return-1;const n=e-i.x,l=t*(o?i.width-n:n)/i.width/s;return l<.5?0:Math.min(t,Math.ceil(l)*s)}function N(e){if(!e)return{width:0,x:0};const t=e.getBoundingClientRect();return{width:t.width,x:t.x+window.scrollX}}const M=({isSelected:e,isDisabled:s,isReadOnly:a,color:c="neutral"})=>{const{forcedColors:u}=l.useUser(),h="active"===u,p=h&&s,b=function(e){return"neutral"===e||"gold"===e||"danger"===e||"warning"===e||"success"===e?e:void 0}(c),y=r.assignInlineVars({[i.ratingGaugeVars.colorSelected]:c,[i.ratingGaugeVars.borderColorSelected]:c,[i.ratingGaugeVars.colorSelectedReadonly]:c}),{variantClasses:g,styles:{ratingStarBaseStyle:m,innerRatingStarColor:R,outerRatingStarColor:S,outerDisabledHighContrastBaseStyle:f,outerDisabledHighContrastSelectedStyle:x,outerDisabledHighContrastUnselectedStyle:C}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{color:b,selectionState:e?"isSelected":"isNotSelected",disabledState:s?"isDisabled":"isNotDisabled",readonlyState:a?"isReadonly":"isNotReadonly",highContrastState:h?"isHighContrast":"isNotHighContrast"});return t.jsx("svg",{viewBox:"0 0 36 36",height:"100%",width:"100%",style:b?void 0:y,class:o.classNames([m,b?g:""]),children:t.jsxs("g",{children:[t.jsx("path",{class:R,d:"m18 1 5.0061 11.9524 12.9939 1.0344-9.9 8.4215 3.0246 12.5917-11.1246-6.7476-11.12461 6.7476 3.02461-12.5917-9.9-8.4215 12.9939-1.0344z"}),t.jsx("path",{class:o.classNames([S,p?f:"",p?e?x:C:""]),d:"m23.0061 12.9524-5.0061-11.9524-5.0061 11.9524-12.9939 1.0344 9.9 8.4215-3.02461 12.5917 11.12461-6.7476 11.1246 6.7476-3.0246-12.5917 9.9-8.4215zm10.5043 1.8394-8.5262 7.2528 2.6077 10.8562-9.5919-5.818-9.59192 5.818 2.60772-10.8562-8.52615-7.2528 11.19115-.891 4.3192-10.31227 4.3192 10.31227z"})]})})},G=({fillRatio:e,isDisabled:a,isReadonly:o,color:i})=>{const{direction:r}=l.useUser(),c="rtl"===r,{styles:{fractionalStarBaseStyle:u}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme);return 1===e||0===e?t.jsx(M,{isSelected:1===e,isDisabled:a,isReadOnly:o,color:i}):t.jsxs(s.Fragment,{children:[t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?100*(1-e):0}% 0% ${c?0:100*e}%)`},children:t.jsx(M,{isSelected:!1,isDisabled:a,isReadOnly:o,color:i})}),t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?0:100*(1-e)}% 0% ${c?100*(1-e):0}%)`},children:t.jsx(M,{isSelected:!0,isDisabled:a,isReadOnly:o,color:i})})]})};e.RatingGauge=function({max:e=5,value:i=0,size:r,color:u="neutral",step:h=1,isReadonly:p,isDisabled:b,testId:y,...g}){const f=P.useTestId(y);m.validateRange(0,e,i,h);const x=a.useRef(null),C=a.useRef(N(null)),v=!p&&!b;a.useEffect((()=>{C.current=N(x.current)}),[r,e]);const T=((e,t,s,o,i,n,r,d)=>{const u=a.useRef(),{direction:h}=l.useUser(),p="rtl"===h,b=e=>{d?.({value:e}),u.current=e},y=c.useKeyboardEvents(s,0,e,t,u,r,d);return n?{onPointerUp:s=>{const a=U(s.pageX,e,t,i,p);-1!==a&&r?.({value:a})},onBlur:()=>{r?.({value:s})},onPointerMove:s=>{const a=U(s.pageX,e,t,i,p);-1!==a&&a!=u.current&&b(a)},onKeyUp:y.onKeyUp,onKeyDown:y.onKeyDown,onPointerLeave:()=>{b(void 0)},onPointerEnter:()=>{i.current=N(o.current)}}:{}})(e,h,i,x,C,v,g.onCommit,g.onInput),{datatipContent:D,datatipProps:M}=function({max:e,value:t,isDisabled:s,isReadonly:a,datatip:o,thresholds:i,width:n}){const l=(Math.max(1,Math.ceil(t))-Math.ceil(e/2))*n/e,r=o||!i||s?o:m.findThreshold(t,i)?.accessibleLabel,{datatipContent:d,datatipProps:c}=R.useDatatip({content:s||a?null:r,anchor:"element",offset:{mainAxis:8,crossAxis:l},placement:"bottom",touchResponse:"touchStart"});return{datatipContent:d,datatipProps:a&&!s?{"aria-describedby":void 0}:c}}({max:e,value:i,isDisabled:b,isReadonly:p,datatip:g.datatip,thresholds:g.thresholds,width:C.current.width}),{tooltipContent:A,tooltipProps:B}=function({isReadonly:e,isDisabled:t,tooltip:s}){const a=e&&!t?s:"",{tooltipContent:o,tooltipProps:i}=S.useTooltip({text:a,isDisabled:t});return{tooltipContent:o,tooltipProps:!t&&e?i:{"aria-describedby":void 0}}}({isReadonly:p,isDisabled:b,tooltip:g.tooltip}),E=m.getMeterAriaProps(i,0,e,g["aria-label"],g["aria-labelledby"],g.thresholds,b,p,g.tooltip),{"aria-describedby":F,...z}=M,{"aria-describedby":H,...I}=B,K=w.mergeProps(T,z,I),V=[F,H,g["aria-describedby"]].filter(Boolean).join(" ")||void 0,L=m.getThresholdColorFromValue(i,u,g.thresholds),{isTabbable:O}=j.useTabbableMode(),{classes:$,styles:{baseStyle:_,interactiveStyle:k,itemStyle:X,sizeStyle:q}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{size:r});return t.jsxs(s.Fragment,{children:[t.jsx("div",{...f,...E,ref:x,class:o.classNames([$,_,v?k:void 0]),tabIndex:O&&!b?0:-1,...K,"aria-describedby":V,children:[...Array(e)].map(((e,s)=>{const a=Math.min(Math.max(0,i-s),1);return t.jsx("div",{className:o.classNames([q,X]),children:t.jsx(G,{fillRatio:a,isDisabled:b,isReadonly:p,color:L})})}))}),D,A]})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './classNames-08d99695', './UNSAFE_RatingGauge/themes/RatingGaugeContract.css', './useComponentTheme-5aa41a8f', './useUser-797287de', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_RatingGauge/themes/redwood/RatingGaugeTheme', './useKeyboardEvents-ce9c81d0', 'preact/compat', './LayerHost-733ade2f', 'css!./LayerStyles.styles.css', './Floating-ae9845d4', 'css!./useDatatip.styles.css', './datatipUtils-72a1fe48', './meterUtils-775a2dde', './useDatatip-be9b251b', './useTooltip-7b915f4c', './logger-0f873e29', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', './mergeProps-bcfa6a92', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useTestId-c286f212'], (function(e,t,s,a,o,i,n,l,r,d,c,u,h,p,b,y,g,m,R,S,x,f,C,v,T,w,D,j,P){"use strict";function U(e,t,s,a,o){const i=a.current;if(!i||0===i.width)return-1;const n=e-i.x,l=t*(o?i.width-n:n)/i.width/s;return l<.5?0:Math.min(t,Math.ceil(l)*s)}function N(e){if(!e)return{width:0,x:0};const t=e.getBoundingClientRect();return{width:t.width,x:t.x+window.scrollX}}const M=({isSelected:e,isDisabled:s,isReadOnly:a,color:c="neutral"})=>{const{forcedColors:u}=l.useUser(),h="active"===u,p=h&&s,b=function(e){return"neutral"===e||"gold"===e||"danger"===e||"warning"===e||"success"===e?e:void 0}(c),y=r.assignInlineVars({[i.ratingGaugeVars.colorSelected]:c,[i.ratingGaugeVars.borderColorSelected]:c,[i.ratingGaugeVars.colorSelectedReadonly]:c}),{variantClasses:g,styles:{ratingStarBaseStyle:m,innerRatingStarColor:R,outerRatingStarColor:S,outerDisabledHighContrastBaseStyle:x,outerDisabledHighContrastSelectedStyle:f,outerDisabledHighContrastUnselectedStyle:C}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{color:b,selectionState:e?"isSelected":"isNotSelected",disabledState:s?"isDisabled":"isNotDisabled",readonlyState:a?"isReadonly":"isNotReadonly",highContrastState:h?"isHighContrast":"isNotHighContrast"});return t.jsx("svg",{viewBox:"0 0 36 36",height:"100%",width:"100%",style:b?void 0:y,class:o.classNames([m,b?g:""]),children:t.jsxs("g",{children:[t.jsx("path",{class:R,d:"m18 1 5.0061 11.9524 12.9939 1.0344-9.9 8.4215 3.0246 12.5917-11.1246-6.7476-11.12461 6.7476 3.02461-12.5917-9.9-8.4215 12.9939-1.0344z"}),t.jsx("path",{class:o.classNames([S,p?x:"",p?e?f:C:""]),d:"m23.0061 12.9524-5.0061-11.9524-5.0061 11.9524-12.9939 1.0344 9.9 8.4215-3.02461 12.5917 11.12461-6.7476 11.1246 6.7476-3.0246-12.5917 9.9-8.4215zm10.5043 1.8394-8.5262 7.2528 2.6077 10.8562-9.5919-5.818-9.59192 5.818 2.60772-10.8562-8.52615-7.2528 11.19115-.891 4.3192-10.31227 4.3192 10.31227z"})]})})},G=({fillRatio:e,isDisabled:a,isReadonly:o,color:i})=>{const{direction:r}=l.useUser(),c="rtl"===r,{styles:{fractionalStarBaseStyle:u}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme);return 1===e||0===e?t.jsx(M,{isSelected:1===e,isDisabled:a,isReadOnly:o,color:i}):t.jsxs(s.Fragment,{children:[t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?100*(1-e):0}% 0% ${c?0:100*e}%)`},children:t.jsx(M,{isSelected:!1,isDisabled:a,isReadOnly:o,color:i})}),t.jsx("div",{class:u,style:{clipPath:`inset(0% ${c?0:100*(1-e)}% 0% ${c?100*(1-e):0}%)`},children:t.jsx(M,{isSelected:!0,isDisabled:a,isReadOnly:o,color:i})})]})};e.RatingGauge=function({max:e=5,value:i=0,size:r,color:u="neutral",step:h=1,isReadonly:p,isDisabled:b,testId:y,...g}){const x=P.useTestId(y);m.validateRange(0,e,i,h);const f=a.useRef(null),C=a.useRef(N(null)),v=!p&&!b;a.useEffect((()=>{C.current=N(f.current)}),[r,e]);const T=((e,t,s,o,i,n,r,d)=>{const u=a.useRef(),{direction:h}=l.useUser(),p="rtl"===h,b=e=>{d?.({value:e}),u.current=e},y=c.useKeyboardEvents(s,0,e,t,u,r,d);return n?{onPointerUp:s=>{const a=U(s.pageX,e,t,i,p);-1!==a&&r?.({value:a})},onBlur:()=>{r?.({value:s})},onPointerMove:s=>{const a=U(s.pageX,e,t,i,p);-1!==a&&a!=u.current&&b(a)},onKeyUp:y.onKeyUp,onKeyDown:y.onKeyDown,onPointerLeave:()=>{b(void 0)},onPointerEnter:()=>{i.current=N(o.current)}}:{}})(e,h,i,f,C,v,g.onCommit,g.onInput),{datatipContent:D,datatipProps:M}=function({max:e,value:t,isDisabled:s,isReadonly:a,datatip:o,thresholds:i,width:n}){const l=(Math.max(1,Math.ceil(t))-Math.ceil(e/2))*n/e,r=o||!i||s?o:m.findThreshold(t,i)?.accessibleLabel,{datatipContent:d,datatipProps:c}=R.useDatatip({content:s||a?null:r,anchor:"element",offset:{mainAxis:8,crossAxis:l},placement:"bottom",touchResponse:"touchStart"});return{datatipContent:d,datatipProps:a&&!s?{"aria-describedby":void 0}:c}}({max:e,value:i,isDisabled:b,isReadonly:p,datatip:g.datatip,thresholds:g.thresholds,width:C.current.width}),{tooltipContent:A,tooltipProps:B}=function({isReadonly:e,isDisabled:t,tooltip:s}){const a=e&&!t?s:"",{tooltipContent:o,tooltipProps:i}=S.useTooltip({text:a,isDisabled:t});return{tooltipContent:o,tooltipProps:!t&&e?i:{"aria-describedby":void 0}}}({isReadonly:p,isDisabled:b,tooltip:g.tooltip}),E=m.getMeterAriaProps(i,0,e,g["aria-label"],g["aria-labelledby"],g.thresholds,b,p,g.tooltip),{"aria-describedby":F,...z}=M,{"aria-describedby":H,...I}=B,K=w.mergeProps(T,z,I),V=[F,H,g["aria-describedby"]].filter(Boolean).join(" ")||void 0,L=m.getThresholdColorFromValue(i,u,g.thresholds),{isTabbable:O}=j.useTabbableMode(),{classes:$,styles:{baseStyle:_,interactiveStyle:k,itemStyle:X,sizeStyle:q}}=n.useComponentTheme(d.RatingGaugeRedwoodTheme,{size:r});return t.jsxs(s.Fragment,{children:[t.jsx("div",{...x,...E,ref:f,class:o.classNames([$,_,v?k:void 0]),tabIndex:O&&!b?0:-1,...K,"aria-describedby":V,children:[...Array(e)].map(((e,s)=>{const a=Math.min(Math.max(0,i-s),1);return t.jsx("div",{className:o.classNames([q,X]),children:t.jsx(G,{fillRatio:a,isDisabled:b,isReadonly:p,color:L})})}))}),D,A]})}}));
2
2
  //# sourceMappingURL=RatingGauge-1c40dae3.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useAccessibleContext-23e8a333', './FormContext-5130e198', './useFormContext-30acdd33', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './classNames-08d99695', './textAlign-ef924afd', './mergeInterpolations-9ede4cf7', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useComponentTheme-5aa41a8f', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './useTranslationBundle-68275657'], (function(e,a,o,t,l,s,n,r,i,d,b,u,c,m,x){"use strict";e.ReadonlyTextFieldInput=function({"aria-describedby":e,"aria-label":t,"aria-labelledby":s,autoFocus:b,as:y="div",elementRef:F,hasEmptyLabel:f,hasInsideLabel:p=!1,inlineUserAssistance:T,innerReadonlyField:C,rows:L,type:h,value:I="",variant:R,...A}){const j=x.useTranslationBundle("@oracle/oraclejet-preact").formControl_loading(),{isFormLayout:v,isReadonly:g}=l.useFormContext(),{isLoading:w}=u.useFormFieldContext(),B=w?j:t,M=[...Object.values(i.textInterpolations)],N=d.mergeInterpolations(M),{class:E}=N(A),{classes:U}=c.useComponentTheme(m.ReadonlyTextFieldInputRedwoodTheme,{textarea:"textarea"===R?"isTextArea":"notTextArea",formLayout:v?"isFormLayout":"notFormLayout",readonlyForm:g?"isReadonlyForm":"notReadonlyForm",insideLabel:p?"hasInsideLabel":"noInsideLabel"}),_=r.classNames([U,E]),{isTabbable:S,tabbableModeProps:O}=n.useTabbableMode(),{UNSAFE_ariaLabelledBy:P}=o.useAccessibleContext(),k=f?function(...e){return e.filter(Boolean).join(" ")||void 0}(s,P):s;return"input"===y?a.jsx("input",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,type:h,value:I,...!S&&O}):"textarea"===y?a.jsx("textarea",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,rows:L,...!S&&O,children:I}):a.jsx("div",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,"aria-readonly":!0,autofocus:b,class:_,ref:F,role:"textbox",...O,children:I})}}));
1
+ define(['exports', 'preact/jsx-runtime', './useAccessibleContext-23e8a333', './FormContext-5130e198', './useFormContext-30acdd33', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './classNames-08d99695', './textAlign-ef924afd', './mergeInterpolations-9ede4cf7', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useComponentTheme-5aa41a8f', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './useTranslationBundle-7c40cb58'], (function(e,a,o,t,l,s,n,r,i,d,b,u,c,m,x){"use strict";e.ReadonlyTextFieldInput=function({"aria-describedby":e,"aria-label":t,"aria-labelledby":s,autoFocus:b,as:y="div",elementRef:F,hasEmptyLabel:f,hasInsideLabel:p=!1,inlineUserAssistance:T,innerReadonlyField:C,rows:L,type:h,value:I="",variant:R,...A}){const j=x.useTranslationBundle("@oracle/oraclejet-preact").formControl_loading(),{isFormLayout:v,isReadonly:g}=l.useFormContext(),{isLoading:w}=u.useFormFieldContext(),B=w?j:t,M=[...Object.values(i.textInterpolations)],N=d.mergeInterpolations(M),{class:E}=N(A),{classes:U}=c.useComponentTheme(m.ReadonlyTextFieldInputRedwoodTheme,{textarea:"textarea"===R?"isTextArea":"notTextArea",formLayout:v?"isFormLayout":"notFormLayout",readonlyForm:g?"isReadonlyForm":"notReadonlyForm",insideLabel:p?"hasInsideLabel":"noInsideLabel"}),_=r.classNames([U,E]),{isTabbable:S,tabbableModeProps:O}=n.useTabbableMode(),{UNSAFE_ariaLabelledBy:P}=o.useAccessibleContext(),k=f?function(...e){return e.filter(Boolean).join(" ")||void 0}(s,P):s;return"input"===y?a.jsx("input",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,type:h,value:I,...!S&&O}):"textarea"===y?a.jsx("textarea",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,autofocus:b,class:_,readonly:!0,ref:F,rows:L,...!S&&O,children:I}):a.jsx("div",{"aria-describedby":e,"aria-label":B,"aria-labelledby":k,"aria-readonly":!0,autofocus:b,class:_,ref:F,role:"textbox",...O,children:I})}}));
2
2
  //# sourceMappingURL=ReadonlyTextFieldInput-d6c6dbc4.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './BaseNavigationListItem-84f4be5c', './Close-a88a3dcf', 'preact/hooks', './useHover-7964884c', './useTranslationBundle-68275657', './EmbeddedIconButton-3608bfb4'], (function(e,t,a,i,o,n,s,r){"use strict";e.RemovableNavigationListItem=function({itemKey:e,label:c,badge:l,metadata:v,severity:d}){const{selection:u,currentKey:m,onRemove:b}=a.useNavigationListContext(),x=u===e,g=m===e,j=o.useCallback((()=>{b?.({value:e})}),[b,e]),{hoverProps:B,isHover:f}=n.useHover({}),p=s.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{...B,children:t.jsx(a.BaseNavigationListItem,{itemKey:e,label:c,badge:l,metadata:v,severity:d,removeIcon:t.jsx("span",{"data-oj-navigationlist-item-remove-icon":!0,children:t.jsx(r.EmbeddedIconButton,{"aria-label":p.tabBarNavigationList_removeCueText(),size:"xs",onAction:j,children:(f||x||g)&&t.jsx(i.SvgClose,{})})})})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './BaseNavigationListItem-84f4be5c', './Close-a88a3dcf', 'preact/hooks', './useHover-7964884c', './useTranslationBundle-7c40cb58', './EmbeddedIconButton-3608bfb4'], (function(e,t,a,i,o,n,s,r){"use strict";e.RemovableNavigationListItem=function({itemKey:e,label:c,badge:l,metadata:v,severity:d}){const{selection:u,currentKey:m,onRemove:b}=a.useNavigationListContext(),x=u===e,g=m===e,j=o.useCallback((()=>{b?.({value:e})}),[b,e]),{hoverProps:B,isHover:f}=n.useHover({}),p=s.useTranslationBundle("@oracle/oraclejet-preact");return t.jsx("div",{...B,children:t.jsx(a.BaseNavigationListItem,{itemKey:e,label:c,badge:l,metadata:v,severity:d,removeIcon:t.jsx("span",{"data-oj-navigationlist-item-remove-icon":!0,children:t.jsx(r.EmbeddedIconButton,{"aria-label":p.tabBarNavigationList_removeCueText(),size:"xs",onAction:j,children:(f||x||g)&&t.jsx(i.SvgClose,{})})})})})}}));
2
2
  //# sourceMappingURL=RemovableNavigationListItem-1f69907c.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useHover-7964884c', './Close-a88a3dcf', './Flex-b8764305', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './useTabBarContext-15a23bb6', './TabBarItem-4ff2ef15', './useTranslationBundle-68275657', './EmbeddedIconButton-3608bfb4'], (function(e,a,t,o,r,n,s,l,i,c,b,d){"use strict";e.RemovableTabBarItem=function({itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:f,labelMaxWidth:B,"aria-controls":j}){const{selection:h,currentKey:p,layout:I,onRemove:T}=i.useTabBarContext(),y=h===e,g=p===e,C=t.useCallback((()=>{T?.({value:e})}),[T,e]),{hoverProps:H,isHover:K}=o.useHover({}),k=s.mergeInterpolations([...Object.values(l.flexitemInterpolations)])({flex:"stretch"===I?"1 0 auto":"0 0 auto"}),E=b.useTranslationBundle("@oracle/oraclejet-preact");return a.jsx("div",{...H,style:k,children:a.jsx(n.Flex,{children:a.jsx(c.BaseTabBarItem,{"aria-controls":j,itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:f,labelMaxWidth:B,removeIcon:a.jsx("span",{"data-oj-tabbar-item-remove-icon":"true",children:a.jsx(d.EmbeddedIconButton,{"aria-label":E.tabBarNavigationList_removeCueText(),size:"xs",onAction:C,children:(K||y||g)&&a.jsx(r.SvgClose,{})})})})})})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useHover-7964884c', './Close-a88a3dcf', './Flex-590160eb', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './useTabBarContext-15a23bb6', './TabBarItem-4ff2ef15', './useTranslationBundle-7c40cb58', './EmbeddedIconButton-3608bfb4'], (function(e,a,t,o,r,n,s,l,i,c,b,d){"use strict";e.RemovableTabBarItem=function({itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:f,labelMaxWidth:B,"aria-controls":j}){const{selection:h,currentKey:p,layout:I,onRemove:T}=i.useTabBarContext(),y=h===e,g=p===e,C=t.useCallback((()=>{T?.({value:e})}),[T,e]),{hoverProps:H,isHover:K}=o.useHover({}),k=s.mergeInterpolations([...Object.values(l.flexitemInterpolations)])({flex:"stretch"===I?"1 0 auto":"0 0 auto"}),E=b.useTranslationBundle("@oracle/oraclejet-preact");return a.jsx("div",{...H,style:k,children:a.jsx(n.Flex,{children:a.jsx(c.BaseTabBarItem,{"aria-controls":j,itemKey:e,label:u,icon:m,badge:x,metadata:v,severity:f,labelMaxWidth:B,removeIcon:a.jsx("span",{"data-oj-tabbar-item-remove-icon":"true",children:a.jsx(d.EmbeddedIconButton,{"aria-label":E.tabBarNavigationList_removeCueText(),size:"xs",onAction:C,children:(K||y||g)&&a.jsx(r.SvgClose,{})})})})})})}}));
2
2
  //# sourceMappingURL=RemovableTabBarItem-5c240801.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', 'preact/hooks', './HiddenAccessible-037ef42d', './LiveRegion-17fea064', './TabBar-ca32462a', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './collectionUtils-f4de3e13', './LayerHost-27dfba9e', './useReorderableItem-41e78941', './ReorderableContext-6d10a1b7', './UNSAFE_ReorderableTabBar/themes/ReorderableTabBarItemStyles.css', './keys-4755c121', 'css!./DragAndDropStyles.styles.css', 'css!./ReorderableItemStyles.styles.css'], (function(e,r,t,a,s,o,l,d,n,i,c,b,y,u,f,R,m,g){"use strict";const p='[role="tab"]';function x({children:e,dragKey:t,setDragKey:a,onReorder:o,layout:l,rootRef:d}){const b=s.useRef(null),u=s.useCallback((()=>b?.current?.querySelector(p)),[]),m=s.useCallback((e=>{e.dataTransfer?.setData("text/tabbar-item-key",c.getKey(u())+"")}),[u]),{rootProps:g,isDragged:x,overlayZoneBeforeProps:h,overlayZoneAfterProps:v}=y.useReorderableItem({isDisabled:!o,dragKey:t,setDragKey:a,onReorder:o,rootRef:d,ref:b,getItem:u,setTransferData:m,itemStyles:f.styles,itemSelector:p}),j=n.mergeInterpolations([...Object.values(i.flexitemInterpolations)])({flex:"stretch"===l?"1 0 auto":"0 0 auto"});return r.jsxs("div",{...g,draggable:!!o,style:j,children:[e,!x&&R.isKeyDefined(t)&&r.jsxs(r.Fragment,{children:[r.jsx("div",{...h}),r.jsx("div",{...v})]})]})}const h=a.forwardRef((({"aria-label":e,"aria-labelledby":a,children:n,layout:i="stretch",display:c="standard",size:b="md",edge:f="top",selection:R,onSelect:m,onRemove:g,onReorder:h,testId:v},j)=>{const I=s.useRef(null),[S,D]=s.useState(void 0),K="stacked"===c?{display:c}:{display:c,size:b},{reorderProps:T,reorderContext:k,reorderInstructionsId:A,reorderStatus:B,reorderInstructions:C}=y.useReorderable({onReorder:h,rootRef:I,itemSelector:p});return r.jsxs("div",{ref:I,...T,children:[r.jsx(u.ReorderableContext.Provider,{value:k,children:r.jsx(d.TabBar,{ref:j,"aria-label":e,"aria-labelledby":a,layout:i,edge:f,selection:R,onSelect:m,onRemove:g,testId:v,...K,"aria-describedby":A,children:t.toChildArray(n).map((e=>r.jsx(x,{dragKey:S,setDragKey:D,onReorder:h,layout:i,rootRef:I,children:e})))})}),r.jsx("span",{id:A,children:r.jsx(o.HiddenAccessible,{children:C})}),r.jsx(l.LiveRegion,{children:B})]})}));e.ReorderableTabBar=h}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', 'preact/hooks', './HiddenAccessible-037ef42d', './LiveRegion-1917f798', './TabBar-ca32462a', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './collectionUtils-f4de3e13', './LayerHost-733ade2f', './useReorderableItem-9e759302', './ReorderableContext-6d10a1b7', './UNSAFE_ReorderableTabBar/themes/ReorderableTabBarItemStyles.css', './keys-4755c121', 'css!./DragAndDropStyles.styles.css', 'css!./ReorderableItemStyles.styles.css'], (function(e,r,t,a,s,o,l,d,n,i,c,b,y,u,f,R,m,g){"use strict";const p='[role="tab"]';function x({children:e,dragKey:t,setDragKey:a,onReorder:o,layout:l,rootRef:d}){const b=s.useRef(null),u=s.useCallback((()=>b?.current?.querySelector(p)),[]),m=s.useCallback((e=>{e.dataTransfer?.setData("text/tabbar-item-key",c.getKey(u())+"")}),[u]),{rootProps:g,isDragged:x,overlayZoneBeforeProps:h,overlayZoneAfterProps:v}=y.useReorderableItem({isDisabled:!o,dragKey:t,setDragKey:a,onReorder:o,rootRef:d,ref:b,getItem:u,setTransferData:m,itemStyles:f.styles,itemSelector:p}),j=n.mergeInterpolations([...Object.values(i.flexitemInterpolations)])({flex:"stretch"===l?"1 0 auto":"0 0 auto"});return r.jsxs("div",{...g,draggable:!!o,style:j,children:[e,!x&&R.isKeyDefined(t)&&r.jsxs(r.Fragment,{children:[r.jsx("div",{...h}),r.jsx("div",{...v})]})]})}const h=a.forwardRef((({"aria-label":e,"aria-labelledby":a,children:n,layout:i="stretch",display:c="standard",size:b="md",edge:f="top",selection:R,onSelect:m,onRemove:g,onReorder:h,testId:v},j)=>{const I=s.useRef(null),[S,D]=s.useState(void 0),K="stacked"===c?{display:c}:{display:c,size:b},{reorderProps:T,reorderContext:k,reorderInstructionsId:A,reorderStatus:B,reorderInstructions:C}=y.useReorderable({onReorder:h,rootRef:I,itemSelector:p});return r.jsxs("div",{ref:I,...T,children:[r.jsx(u.ReorderableContext.Provider,{value:k,children:r.jsx(d.TabBar,{ref:j,"aria-label":e,"aria-labelledby":a,layout:i,edge:f,selection:R,onSelect:m,onRemove:g,testId:v,...K,"aria-describedby":A,children:t.toChildArray(n).map((e=>r.jsx(x,{dragKey:S,setDragKey:D,onReorder:h,layout:i,rootRef:I,children:e})))})}),r.jsx("span",{id:A,children:r.jsx(o.HiddenAccessible,{children:C})}),r.jsx(l.LiveRegion,{children:B})]})}));e.ReorderableTabBar=h}));
2
2
  //# sourceMappingURL=ReorderableTabBar-23f7e3c3.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './ViewHide-cf39eb70', './View-79b43ebd', './useTranslationBundle-68275657', './IconSwitchButton-1a400cdf'], (function(e,o,t,i,n,s){"use strict";e.RevealToggleIcon=function({accessibleLabel:e,isRevealed:l,onToggle:c,testId:r,tooltipHide:a,tooltipShow:d}){const u=n.useTranslationBundle("@oracle/oraclejet-preact"),g=a||u.formControl_hide(),w=d||u.formControl_show();return o.jsx(s.IconSwitchButton,{tooltip:l?g:w,accessibleLabel:e,isSelected:!l,onToggle:c,testId:r,size:"sm",children:l?o.jsx(t.SvgViewHide,{}):o.jsx(i.SvgView,{})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './ViewHide-cf39eb70', './View-79b43ebd', './useTranslationBundle-7c40cb58', './IconSwitchButton-1a400cdf'], (function(e,o,t,i,n,c){"use strict";e.RevealToggleIcon=function({accessibleLabel:e,isRevealed:s,onToggle:l,testId:r,tooltipHide:a,tooltipShow:d}){const u=n.useTranslationBundle("@oracle/oraclejet-preact"),b=a||u.formControl_hide(),g=d||u.formControl_show();return o.jsx(c.IconSwitchButton,{tooltip:s?b:g,accessibleLabel:e,isSelected:!s,onToggle:l,testId:r,size:"sm",children:s?o.jsx(t.SvgViewHide,{}):o.jsx(i.SvgView,{})})}}));
2
2
  //# sourceMappingURL=RevealToggleIcon-c22626da.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './layoutUtils-4304ffe4', './useChartDnd-44674b7d', './LineSeries-fe392d85', './dataStyleUtils-a0ecedd5', './useUser-e8dd7f7c', './colorUtils-bc5b1d84', './accUtils-93ee6f16', './Chart-79cfc878'], (function(e,t,i,n,r,s,o,d,a,l){"use strict";e.ScatterChart=function({width:e,height:a,selectedIds:h=[],hiddenIds:g=[],highlightedIds:c,hideAndShowBehavior:f="none",orientation:I="vertical",yAxis:x,series:u,groups:m,getDataItem:S,selectionMode:v="none",drilling:y="off",dataLabelEffect:p="outline",lineType:C="none",...D}){const{direction:A,forcedColors:b}=o.useUser(),w="active"===b,L=void 0!==D.testId,M="rtl"===A,T="log"===x?.scale,U=D.xAxis?.timeAxisType,E=new Set(g),j=new Set(h),k=new Set(c),F="horizontal"===I,z=d.getColorRamp(),N=n.getSeriesData(u?.length,m?.length,S,E,T),P=(e,t)=>S(e,t),R=n.getMarkers();return t.jsx(l.Chart,{width:e,height:a,selectedIds:j,hiddenIds:g,hideAndShowBehavior:f,orientation:I,yAxis:x,series:u,groups:m,overview:"off",defaultOverviewContentRenderer:()=>null,selectionMode:v,drilling:y,getDataItem:S,findNearest:(e,t)=>i.findNearestDataPoint(u,m,e,t,P,!1,(()=>({offset:0,dataWidth:0})),((e,t)=>t.transform(e)),T,0,E,U),getDataItemPos:(e,t)=>(i,n)=>{const r=N[i][n];if(null==r?.x&&r?.y)return;return{x:e.transform(r?.x),y:t.transform(r?.y),height:0,width:0}},getMarkerInfo:(e,t)=>({color:s.getItemColor(e,t,u,S),type:s.getMarkerType(e,t,S)}),renderGridLinesInFront:!0,isDataXAxis:!0,getNavUtil:(e,t)=>s.getLineAreaChartNavUtil(S,u.length,e,t,!1,M,F),getGapRatio:()=>1,offset:.2,isRtl:M,...D,children:({xStartIndex:e,xEndIndex:i,xScale:s,yScale:o,activeId:d,focusedItemInfo:a,hoveredItemInfo:l,isPointInsideMarquee:h,defaultFontSize:g,getTextDimensions:f})=>t.jsx(t.Fragment,{children:N.map(((x,A)=>{if(0===x.length)return;const b=u[A],M="none"!==C,E=n.getLineAreaSegments(o,s,x,e,i,F,T,m,A,P,U,!0),N=void 0===c||0===c.length||k.has(b.id);return t.jsxs(t.Fragment,{children:[M&&t.jsx(r.LineSeries,{lineType:C,lineColor:b.lineColor,lineWidth:b.lineWidth,lineStyle:b.lineStyle,color:b.lineColor||z[A%z.length],lineSegmentCoords:E,isHorizontal:F,isHighlighted:N,seriesIndex:A}),t.jsx(r.MarkersWithLabel,{yScale:o,xScale:s,groups:m,series:b,timeAxisType:U,color:b.lineColor||z[A%z.length],seriesIndex:A,startIndex:e,endIndex:i,markerType:R[A%R.length],orientation:I,isLog:T,activeId:d,getDataItem:S,isPointInsideMarquee:h,selectedIds:j,highlightedIds:void 0!==c?k:void 0,focusedItemIndex:a.seriesIndex!==A||!a.isFocusVisible||D.isDataCursorEnabled&&D.dataCursorStyle?.isMarkerDisplayed?void 0:a.groupIndex,hoveredItemIndex:l?.isCurrent&&l.seriesIndex===A?l.groupIndex:void 0,isSelectionEnabled:"single"===v||"multiple"===v,isDrillEnabled:"on"===y,defaultFontSize:g,dataLabelEffect:p,isHighContrast:w,isTestEnv:L,isDataXAxis:!0,getTextDimensions:f})]})}))})})}}));
2
- //# sourceMappingURL=ScatterChart-5a9fe642.js.map
1
+ define(['exports', 'preact/jsx-runtime', './layoutUtils-4304ffe4', './useChartDnd-44674b7d', './LineSeries-ce197af6', './dataStyleUtils-a0ecedd5', './useUser-797287de', './colorUtils-bc5b1d84', './accUtils-93ee6f16', './Chart-79cfc878'], (function(e,t,i,n,r,s,o,a,d,l){"use strict";e.ScatterChart=function({width:e,height:d,selectedIds:h=[],hiddenIds:g=[],highlightedIds:c,hideAndShowBehavior:I="none",orientation:f="vertical",yAxis:x,series:u,groups:m,getDataItem:S,selectionMode:v="none",drilling:y="off",dataLabelEffect:p="outline",lineType:C="none",...D}){const{direction:A,forcedColors:b}=o.useUser(),w="active"===b,L=void 0!==D.testId,M="rtl"===A,T="log"===x?.scale,U=D.xAxis?.timeAxisType,E=new Set(g),j=new Set(h),k=new Set(c),F="horizontal"===f,z=a.getColorRamp(),N=n.getSeriesData(u?.length,m?.length,S,E,T),P=(e,t)=>S(e,t),R=n.getMarkers();return t.jsx(l.Chart,{width:e,height:d,selectedIds:j,hiddenIds:g,hideAndShowBehavior:I,orientation:f,yAxis:x,series:u,groups:m,overview:"off",defaultOverviewContentRenderer:()=>null,selectionMode:v,drilling:y,getDataItem:S,findNearest:(e,t)=>i.findNearestDataPoint(u,m,e,t,P,!1,(()=>({offset:0,dataWidth:0})),((e,t)=>t.transform(e)),T,0,E,U),getDataItemPos:(e,t)=>(i,n)=>{const r=N[i][n];if(null==r?.x&&r?.y)return;return{x:e.transform(r?.x),y:t.transform(r?.y),height:0,width:0}},getMarkerInfo:(e,t)=>({color:s.getItemColor(e,t,u,S),type:s.getMarkerType(e,t,S)}),renderGridLinesInFront:!0,isDataXAxis:!0,getNavUtil:(e,t)=>s.getLineAreaChartNavUtil(S,u.length,e,t,!1,M,F),getGapRatio:()=>1,offset:.2,isRtl:M,...D,children:({xStartIndex:e,xEndIndex:i,xScale:s,yScale:o,activeId:a,focusedItemInfo:d,hoveredItemInfo:l,isPointInsideMarquee:h,defaultFontSize:g,getTextDimensions:I})=>t.jsx(t.Fragment,{children:N.map(((x,A)=>{if(0===x.length)return;const b=u[A],M="none"!==C,E=n.getLineAreaSegments(o,s,x,e,i,F,T,m,A,P,U,!0),N=void 0===c||0===c.length||k.has(b.id);return t.jsxs(t.Fragment,{children:[M&&t.jsx(r.LineSeries,{lineType:C,lineColor:b.lineColor,lineWidth:b.lineWidth,lineStyle:b.lineStyle,color:b.lineColor||z[A%z.length],lineSegmentCoords:E,isHorizontal:F,isHighlighted:N,seriesIndex:A}),t.jsx(r.MarkersWithLabel,{yScale:o,xScale:s,groups:m,series:b,timeAxisType:U,color:b.lineColor||z[A%z.length],seriesIndex:A,startIndex:e,endIndex:i,markerType:R[A%R.length],orientation:f,isLog:T,activeId:a,getDataItem:S,isPointInsideMarquee:h,selectedIds:j,highlightedIds:void 0!==c?k:void 0,focusedItemIndex:d.seriesIndex!==A||!d.isFocusVisible||D.isDataCursorEnabled&&D.dataCursorStyle?.isMarkerDisplayed?void 0:d.groupIndex,hoveredItemIndex:l?.isCurrent&&l.seriesIndex===A?l.groupIndex:void 0,isSelectionEnabled:"single"===v||"multiple"===v,isDrillEnabled:"on"===y,defaultFontSize:g,dataLabelEffect:p,isHighContrast:w,isTestEnv:L,isDataXAxis:!0,getTextDimensions:I})]})}))})})}}));
2
+ //# sourceMappingURL=ScatterChart-e6f8d49a.js.map