@oracle/oraclejet-preact 17.1.8 → 17.1.9

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 (546) hide show
  1. package/amd/AvatarVariants.styles.css +25 -25
  2. package/amd/AvatarVariants.styles2.css +25 -25
  3. package/amd/InputDatePicker-6167ff45.js +2 -0
  4. package/amd/{InputDatePicker-97756bcd.js.map → InputDatePicker-6167ff45.js.map} +1 -1
  5. package/amd/MaxLengthCounter-caafceef.js +2 -0
  6. package/{cjs/MaxLengthCounter-a5370f66.js.map → amd/MaxLengthCounter-caafceef.js.map} +1 -1
  7. package/amd/RadioIconVariants.styles.css +1 -1
  8. package/amd/RadioIconVariants.styles2.css +1 -1
  9. package/amd/TextArea-259d741c.js +2 -0
  10. package/{cjs/TextArea-096f18ad.js.map → amd/TextArea-259d741c.js.map} +1 -1
  11. package/amd/TextAreaAutosize-e8dc13b4.js +2 -0
  12. package/amd/{TextAreaAutosize-1f47b470.js.map → TextAreaAutosize-e8dc13b4.js.map} +1 -1
  13. package/amd/Theme-redwood/theme.css +411 -411
  14. package/amd/Theme-stable/theme.css +364 -364
  15. package/amd/UNSAFE_Avatar/themes/redwood/AvatarTheme.js +1 -1
  16. package/amd/UNSAFE_Avatar/themes/redwood/AvatarTheme.js.map +1 -1
  17. package/amd/UNSAFE_Avatar/themes/redwood/AvatarVariants.css.js +1 -1
  18. package/amd/UNSAFE_Avatar/themes/stable/AvatarTheme.js +1 -1
  19. package/amd/UNSAFE_Avatar/themes/stable/AvatarTheme.js.map +1 -1
  20. package/amd/UNSAFE_Avatar/themes/stable/AvatarVariants.css.js +1 -1
  21. package/amd/UNSAFE_Avatar.js +1 -1
  22. package/amd/UNSAFE_InputDatePicker.js +1 -1
  23. package/amd/UNSAFE_RadioItem/themes/redwood/RadioIconTheme.js +1 -1
  24. package/amd/UNSAFE_RadioItem/themes/redwood/RadioIconTheme.js.map +1 -1
  25. package/amd/UNSAFE_RadioItem/themes/redwood/RadioIconVariants.css.js +1 -1
  26. package/amd/UNSAFE_RadioItem/themes/stable/RadioIconTheme.js +1 -1
  27. package/amd/UNSAFE_RadioItem/themes/stable/RadioIconTheme.js.map +1 -1
  28. package/amd/UNSAFE_RadioItem/themes/stable/RadioIconVariants.css.js +1 -1
  29. package/amd/UNSAFE_RadioItem.js +1 -1
  30. package/amd/UNSAFE_TextArea.js +1 -1
  31. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  32. package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  33. package/cjs/{useNavigationListItem-0a5c6a11.js → BaseNavigationListItem-4b28f14e.js} +40 -2
  34. package/cjs/BaseNavigationListItem-4b28f14e.js.map +1 -0
  35. package/cjs/CheckboxSetContext-c62db26d.js +12 -0
  36. package/cjs/CheckboxSetContext-c62db26d.js.map +1 -0
  37. package/cjs/{NavigationList-9e2a1115.js → NavigationListItem-7550547a.js} +21 -3
  38. package/cjs/NavigationListItem-7550547a.js.map +1 -0
  39. package/cjs/{OverflowTabBar-0122125c.js → OverflowTabBar-76c75781.js} +3 -3
  40. package/cjs/{OverflowTabBar-0122125c.js.map → OverflowTabBar-76c75781.js.map} +1 -1
  41. package/cjs/{OverflowTabBarItem-7e4a284a.js → OverflowTabBarItem-76059bad.js} +4 -5
  42. package/cjs/{OverflowTabBarItem-7e4a284a.js.map → OverflowTabBarItem-76059bad.js.map} +1 -1
  43. package/cjs/{RemovableNavigationListItem-1235bf1c.js → RemovableNavigationListItem-727e53e8.js} +3 -4
  44. package/cjs/{RemovableNavigationListItem-1235bf1c.js.map → RemovableNavigationListItem-727e53e8.js.map} +1 -1
  45. package/cjs/{ReorderableTabBar-49f32413.js → ReorderableTabBar-ded69f11.js} +2 -2
  46. package/cjs/{ReorderableTabBar-49f32413.js.map → ReorderableTabBar-ded69f11.js.map} +1 -1
  47. package/cjs/{TabBar-d9f6d3c3.js → TabBar-c13ce35f.js} +1 -6
  48. package/cjs/{TabBar-d9f6d3c3.js.map → TabBar-c13ce35f.js.map} +1 -1
  49. package/cjs/{TabBarMixed-13a02a56.js → TabBarMixed-81309400.js} +1 -6
  50. package/cjs/{TabBarMixed-13a02a56.js.map → TabBarMixed-81309400.js.map} +1 -1
  51. package/cjs/{TextArea-096f18ad.js → TextArea-792069d7.js} +22 -4
  52. package/{amd/TextArea-916c5bb1.js.map → cjs/TextArea-792069d7.js.map} +1 -1
  53. package/cjs/{TextAreaAutosize-4d30faec.js → TextAreaAutosize-1989de68.js} +3 -3
  54. package/cjs/{TextAreaAutosize-4d30faec.js.map → TextAreaAutosize-1989de68.js.map} +1 -1
  55. package/cjs/Theme-redwood/theme.css +203 -203
  56. package/cjs/Theme-stable/theme.css +379 -379
  57. package/cjs/UNSAFE_CheckboxItem.js +30 -80
  58. package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
  59. package/cjs/UNSAFE_CheckboxSet.js +44 -15
  60. package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
  61. package/cjs/UNSAFE_NavigationList.js +14 -16
  62. package/cjs/UNSAFE_NavigationList.js.map +1 -1
  63. package/cjs/UNSAFE_NavigationListCommon.js +54 -55
  64. package/cjs/UNSAFE_NavigationListCommon.js.map +1 -1
  65. package/cjs/UNSAFE_OverflowTabBar.js +27 -29
  66. package/cjs/UNSAFE_OverflowTabBar.js.map +1 -1
  67. package/cjs/UNSAFE_ReorderableTabBar.js +9 -25
  68. package/cjs/UNSAFE_ReorderableTabBar.js.map +1 -1
  69. package/cjs/UNSAFE_TabBar.js +26 -28
  70. package/cjs/UNSAFE_TabBar.js.map +1 -1
  71. package/cjs/UNSAFE_TabBarCommon.js +18 -20
  72. package/cjs/UNSAFE_TabBarCommon.js.map +1 -1
  73. package/cjs/UNSAFE_TabBarMixed.js +26 -28
  74. package/cjs/UNSAFE_TabBarMixed.js.map +1 -1
  75. package/cjs/UNSAFE_TextArea.js +3 -4
  76. package/cjs/UNSAFE_TextArea.js.map +1 -1
  77. package/cjs/UNSAFE_TextAreaAutosize.js +3 -3
  78. package/es/ActionCard-ba1c946e.js +1 -1
  79. package/es/BarChart-c68a559c.js +2 -2
  80. package/es/BaseButton-5a3335d9.js +2 -2
  81. package/es/BaseCardView-e0e8a69b.js +6 -6
  82. package/es/{BaseCardViewSelectionTest-120542e8.js → BaseCardViewSelectionTest-2159b609.js} +6 -6
  83. package/es/{BaseCardViewSelectionTest-120542e8.js.map → BaseCardViewSelectionTest-2159b609.js.map} +1 -1
  84. package/es/BaseNavigationListItem-ac7ef3c3.js +1 -1
  85. package/es/ButtonSet-ac76e6e2.js +2 -2
  86. package/es/ButtonSetIconButton-9241b9fb.js +3 -3
  87. package/es/{Center-8b48ab02.js → Center-9f355d44.js} +2 -2
  88. package/es/{Center-8b48ab02.js.map → Center-9f355d44.js.map} +1 -1
  89. package/es/Chart-f2438968.js +9 -9
  90. package/es/CheckboxControl-f5e36d0d.js +6 -6
  91. package/es/CheckboxRadioField-bdda2573.js +6 -6
  92. package/es/Chip-f2df2078.js +1 -1
  93. package/es/ClearIcon-b5083cc8.js +1 -1
  94. package/es/CollapseIcon-de129943.js +1 -1
  95. package/es/Collapsible-09cc493a.js +2 -2
  96. package/es/CompactHelpSource-1686edf6.js +2 -2
  97. package/es/{CompactLabelAssistance-fa8264fa.js → CompactLabelAssistance-61df6dbf.js} +5 -5
  98. package/es/{CompactLabelAssistance-fa8264fa.js.map → CompactLabelAssistance-61df6dbf.js.map} +1 -1
  99. package/es/CompactUserAssistance-3a10afd4.js +4 -4
  100. package/es/ComponentMessageContainer-18e7fe34.js +4 -4
  101. package/es/ConveyorBeltItem-c8d4ba1b.js +2 -2
  102. package/es/{DatePicker-4fb6d86d.js → DatePicker-d4e027c2.js} +6 -6
  103. package/es/{DatePicker-4fb6d86d.js.map → DatePicker-d4e027c2.js.map} +1 -1
  104. package/es/DatePickerHeader-79f0b61b.js +3 -3
  105. package/es/{Diagram-6f1ad2ea.js → Diagram-d7fdc75f.js} +5 -5
  106. package/es/{Diagram-6f1ad2ea.js.map → Diagram-d7fdc75f.js.map} +1 -1
  107. package/es/{Dialog-5e92dcd1.js → Dialog-cf69547f.js} +6 -6
  108. package/es/{Dialog-5e92dcd1.js.map → Dialog-cf69547f.js.map} +1 -1
  109. package/es/DirectionalCollapseArrowIcon-20259aab.js +1 -1
  110. package/es/DirectionalExpandArrowIcon-36ba273c.js +1 -1
  111. package/es/DragHandle-3b768189.js +1 -1
  112. package/es/{Dropdown-f45f823c.js → Dropdown-d017dd0a.js} +5 -5
  113. package/es/{Dropdown-f45f823c.js.map → Dropdown-d017dd0a.js.map} +1 -1
  114. package/es/{EnvironmentProvider-0fc2fd0c.js → EnvironmentProvider-a3819bde.js} +3 -3
  115. package/es/{EnvironmentProvider-0fc2fd0c.js.map → EnvironmentProvider-a3819bde.js.map} +1 -1
  116. package/es/FilePicker-f4582615.js +2 -2
  117. package/es/{Flex-8696b27b.js → Flex-2d51e914.js} +2 -2
  118. package/es/{Flex-8696b27b.js.map → Flex-2d51e914.js.map} +1 -1
  119. package/es/{Floating-f9bbd276.js → Floating-aebc0f85.js} +4 -4
  120. package/es/{Floating-f9bbd276.js.map → Floating-aebc0f85.js.map} +1 -1
  121. package/es/FormLayout-221e1aa8.js +1 -1
  122. package/es/Gantt-46f5f954.js +9 -9
  123. package/es/{Grid-7fd29a9e.js → Grid-c2385b22.js} +2 -2
  124. package/es/{Grid-7fd29a9e.js.map → Grid-c2385b22.js.map} +1 -1
  125. package/es/{Gridlines-dcdc34bc.js → Gridlines-0e7b33f5.js} +2 -2
  126. package/es/{Gridlines-dcdc34bc.js.map → Gridlines-0e7b33f5.js.map} +1 -1
  127. package/es/GroupLoadingIndicator-2bfdba44.js +1 -1
  128. package/es/{HighlightText-cc043982.js → HighlightText-d505bf35.js} +2 -2
  129. package/es/{HighlightText-cc043982.js.map → HighlightText-d505bf35.js.map} +1 -1
  130. package/es/Icon-4171c0d7.js +3 -3
  131. package/es/IconButton-451a225c.js +3 -3
  132. package/es/IconMenuButton-e46f8d54.js +4 -4
  133. package/es/IconProgressButton-8f2f6b27.js +3 -3
  134. package/es/IconSwitchButton-5ff7b0fe.js +3 -3
  135. package/es/IconToggleButton-375f006f.js +3 -3
  136. package/es/{IconUserAssistance-dd56b812.js → IconUserAssistance-7cfd1ed2.js} +3 -3
  137. package/es/{IconUserAssistance-dd56b812.js.map → IconUserAssistance-7cfd1ed2.js.map} +1 -1
  138. package/es/Indexer-658cee69.js +4 -4
  139. package/es/InlineHelpSource-fcdcd122.js +1 -1
  140. package/es/InlineUserAssistance-e6deb149.js +5 -5
  141. package/es/InputDateMask-3d511e39.js +7 -7
  142. package/es/InputDatePicker-fe26a952.js +8 -8
  143. package/es/InputPassword-47130b3c.js +4 -4
  144. package/es/InputText-4799b2ed.js +6 -6
  145. package/es/Label-ab276ca9.js +5 -5
  146. package/es/LabelValueLayout-bcf482be.js +1 -1
  147. package/es/{Layer-71fc666f.js → Layer-915d986a.js} +3 -3
  148. package/es/{Layer-71fc666f.js.map → Layer-915d986a.js.map} +1 -1
  149. package/es/{LayerHost-15b42a3e.js → LayerHost-7a2149f5.js} +2 -2
  150. package/es/{LayerHost-15b42a3e.js.map → LayerHost-7a2149f5.js.map} +1 -1
  151. package/es/{LayerManager-af39e736.js → LayerManager-be34be40.js} +2 -2
  152. package/es/{LayerManager-af39e736.js.map → LayerManager-be34be40.js.map} +1 -1
  153. package/es/Legend-ae0296f0.js +3 -3
  154. package/es/{LineAreaChart-3a7bc509.js → LineAreaChart-e2e762e8.js} +3 -3
  155. package/es/{LineAreaChart-3a7bc509.js.map → LineAreaChart-e2e762e8.js.map} +1 -1
  156. package/es/Link-9072aa54.js +1 -1
  157. package/es/List-1d23e84f.js +5 -5
  158. package/es/{ListItemLayout-32895900.js → ListItemLayout-01286b56.js} +2 -2
  159. package/es/{ListItemLayout-32895900.js.map → ListItemLayout-01286b56.js.map} +1 -1
  160. package/es/ListView-8eba90e8.js +3 -3
  161. package/es/{LiveRegion-cb4f8a54.js → LiveRegion-5302331c.js} +2 -2
  162. package/es/{LiveRegion-cb4f8a54.js.map → LiveRegion-5302331c.js.map} +1 -1
  163. package/es/{MaxLengthLiveRegion-59087064.js → MaxLengthLiveRegion-9b386b63.js} +3 -3
  164. package/es/{MaxLengthLiveRegion-59087064.js.map → MaxLengthLiveRegion-9b386b63.js.map} +1 -1
  165. package/es/{Menu-b5deea24.js → Menu-e44a3e0b.js} +8 -8
  166. package/es/{Menu-b5deea24.js.map → Menu-e44a3e0b.js.map} +1 -1
  167. package/es/MenuButton-49b7965d.js +3 -3
  168. package/es/MenuItem-be46866f.js +1 -1
  169. package/es/Message-322f8d63.js +2 -2
  170. package/es/{MessageLayer-34a390eb.js → MessageLayer-f09b0a1b.js} +6 -6
  171. package/es/{MessageLayer-34a390eb.js.map → MessageLayer-f09b0a1b.js.map} +1 -1
  172. package/es/MessageToast-66bdffe6.js +8 -8
  173. package/es/MessagesManager-a1c3e92e.js +3 -3
  174. package/es/MeterBar-9ad34b98.js +5 -5
  175. package/es/MeterCircle-6bd257c8.js +5 -5
  176. package/es/{Modal-3fd86d5a.js → Modal-862b8167.js} +3 -3
  177. package/es/{Modal-3fd86d5a.js.map → Modal-862b8167.js.map} +1 -1
  178. package/es/{MonthView-c3b82ace.js → MonthView-3d90f424.js} +4 -4
  179. package/es/{MonthView-c3b82ace.js.map → MonthView-3d90f424.js.map} +1 -1
  180. package/es/NavigationListItem-a336f06f.js +5 -5
  181. package/es/NumberInputText-eca11601.js +6 -6
  182. package/es/OverflowTabBarItem-12249753.js +3 -3
  183. package/es/PRIVATE_BaseCardView.js +20 -20
  184. package/es/PRIVATE_Chart.js +30 -30
  185. package/es/PRIVATE_CheckboxControl.js +22 -22
  186. package/es/PRIVATE_CheckboxRadioField.js +23 -23
  187. package/es/PRIVATE_ClearIcon.js +17 -17
  188. package/es/PRIVATE_DatePickerHeader.js +19 -19
  189. package/es/PRIVATE_DatePickerLayout.js +4 -4
  190. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  191. package/es/PRIVATE_FormControls.js +19 -19
  192. package/es/PRIVATE_IconSwitchButton.js +15 -15
  193. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  194. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  195. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  196. package/es/PRIVATE_Icons/RadiobuttonOff.js +15 -15
  197. package/es/PRIVATE_Icons/RadiobuttonOn.js +15 -15
  198. package/es/PRIVATE_Icons/WarningS.js +15 -15
  199. package/es/PRIVATE_List.js +19 -19
  200. package/es/PRIVATE_Message.js +18 -18
  201. package/es/PRIVATE_MessageLayer.js +11 -11
  202. package/es/PRIVATE_MonthView.js +7 -7
  203. package/es/PRIVATE_MonthYearGridView.js +7 -7
  204. package/es/PRIVATE_PlotArea.js +4 -4
  205. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  206. package/es/PRIVATE_SelectCommon.js +27 -27
  207. package/es/PRIVATE_StyledCheckbox.js +15 -15
  208. package/es/PRIVATE_Table.js +18 -18
  209. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  210. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  211. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  212. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  213. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  214. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  215. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  216. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  217. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  218. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  219. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  220. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  221. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  222. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  223. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  224. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  225. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  226. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  227. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  228. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  229. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  230. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  231. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  232. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  233. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  234. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  235. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  236. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  237. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  238. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  239. package/es/PRIVATE_ThemedIcons/SortDefaultIcon.js +15 -15
  240. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  241. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  242. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  243. package/es/PRIVATE_TimeComponent.js +18 -18
  244. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  245. package/es/PictoChart-3dd90503.js +6 -6
  246. package/es/{PieChart-cdb56906.js → PieChart-d4f63bd8.js} +5 -5
  247. package/es/{PieChart-cdb56906.js.map → PieChart-d4f63bd8.js.map} +1 -1
  248. package/es/{Popup-8becd87a.js → Popup-7cc4028b.js} +9 -9
  249. package/es/{Popup-8becd87a.js.map → Popup-7cc4028b.js.map} +1 -1
  250. package/es/{ProgressBar-2565d814.js → ProgressBar-d647bba4.js} +3 -3
  251. package/es/{ProgressBar-2565d814.js.map → ProgressBar-d647bba4.js.map} +1 -1
  252. package/es/ProgressButton-645ce827.js +3 -3
  253. package/es/ProgressButtonLabelLayout-6cf150e0.js +3 -3
  254. package/es/{ProgressCircle-c7f945c0.js → ProgressCircle-13dc0e4f.js} +2 -2
  255. package/es/{ProgressCircle-c7f945c0.js.map → ProgressCircle-13dc0e4f.js.map} +1 -1
  256. package/es/RadioItem-af1bbece.js +6 -6
  257. package/es/RatingGauge-82a6a416.js +7 -7
  258. package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
  259. package/es/RemovableNavigationListItem-7032ce3e.js +1 -1
  260. package/es/RemovableTabBarItem-16d04210.js +2 -2
  261. package/es/ReorderableTabBar-981af0f2.js +2 -2
  262. package/es/RevealToggleIcon-563c241c.js +1 -1
  263. package/es/SectionalLegend-a9b719ff.js +4 -4
  264. package/es/{SectionedContent-237bf539.js → SectionedContent-7e36073f.js} +5 -5
  265. package/es/{SectionedContent-237bf539.js.map → SectionedContent-7e36073f.js.map} +1 -1
  266. package/es/SelectMultiple-c1264885.js +8 -8
  267. package/es/SelectSingle-8336ec24.js +7 -7
  268. package/es/{SelectionCard-1711aae6.js → SelectionCard-a27bce15.js} +2 -2
  269. package/es/{SelectionCard-1711aae6.js.map → SelectionCard-a27bce15.js.map} +1 -1
  270. package/es/Selector-9f40e909.js +1 -1
  271. package/es/{SelectorAll-42ce8707.js → SelectorAll-40c76f0b.js} +7 -7
  272. package/es/{SelectorAll-42ce8707.js.map → SelectorAll-40c76f0b.js.map} +1 -1
  273. package/es/{Sheet-f7117b12.js → Sheet-34f3bcb4.js} +3 -3
  274. package/es/{Sheet-f7117b12.js.map → Sheet-34f3bcb4.js.map} +1 -1
  275. package/es/SplitMenuButton-74913bcc.js +3 -3
  276. package/es/StyledTextField-9df27ab4.js +3 -3
  277. package/es/Submenu-c6663c1d.js +1 -1
  278. package/es/TabBar-90cea652.js +6 -6
  279. package/es/TabBarItem-ba695c75.js +3 -3
  280. package/es/TabBarLayout-8caaa060.js +1 -1
  281. package/es/TabBarMixed-52ac388e.js +6 -6
  282. package/es/{TabBarMixedSeparator-da56f4c0.js → TabBarMixedSeparator-16c88691.js} +2 -2
  283. package/es/{TabBarMixedSeparator-da56f4c0.js.map → TabBarMixedSeparator-16c88691.js.map} +1 -1
  284. package/es/Table-3d484e2c.js +8 -8
  285. package/es/TagCloud-823b3d82.js +9 -9
  286. package/es/TextArea-6f18b955.js +5 -5
  287. package/es/TextAreaAutosize-4cf2754b.js +5 -5
  288. package/es/TextField-d4b4661d.js +3 -3
  289. package/es/TextFieldInput-84280715.js +1 -1
  290. package/es/Theme-redwood/theme.css +569 -569
  291. package/es/Theme-stable/theme.css +1043 -1043
  292. package/es/TimeComponentCanvas2D-72f4af98.js +5 -5
  293. package/es/Toolbar-85379f64.js +1 -1
  294. package/es/{TruncatingBadge-7eb77ed3.js → TruncatingBadge-e5f38bc8.js} +4 -4
  295. package/es/{TruncatingBadge-7eb77ed3.js.map → TruncatingBadge-e5f38bc8.js.map} +1 -1
  296. package/es/{TruncatingText-93807530.js → TruncatingText-c3719839.js} +4 -4
  297. package/es/{TruncatingText-93807530.js.map → TruncatingText-c3719839.js.map} +1 -1
  298. package/es/UNSAFE_ActionCard.js +2 -2
  299. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +30 -30
  300. package/es/UNSAFE_BarChart.js +30 -30
  301. package/es/UNSAFE_BaseButton.js +3 -3
  302. package/es/UNSAFE_Button.js +3 -3
  303. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +19 -19
  304. package/es/UNSAFE_ButtonSet.js +4 -4
  305. package/es/UNSAFE_ButtonSetButton.js +3 -3
  306. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  307. package/es/UNSAFE_ButtonSetItem.js +15 -15
  308. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  309. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  310. package/es/UNSAFE_CardFlexView.js +20 -20
  311. package/es/UNSAFE_CardGridView.js +20 -20
  312. package/es/UNSAFE_Center.js +5 -5
  313. package/es/UNSAFE_ChartWithLegend.js +4 -4
  314. package/es/UNSAFE_Checkbox.js +22 -22
  315. package/es/UNSAFE_CheckboxItem.js +23 -23
  316. package/es/UNSAFE_CheckboxSet.js +22 -22
  317. package/es/UNSAFE_Chip.js +2 -2
  318. package/es/UNSAFE_Collapsible.js +17 -17
  319. package/es/UNSAFE_ComponentMessage.js +18 -18
  320. package/es/UNSAFE_ConveyorBelt.js +15 -15
  321. package/es/UNSAFE_DatePicker.js +24 -24
  322. package/es/UNSAFE_Diagram.js +15 -15
  323. package/es/UNSAFE_Dialog.js +11 -11
  324. package/es/UNSAFE_DragHandle.js +16 -16
  325. package/es/UNSAFE_DrawerLayout.js +11 -11
  326. package/es/UNSAFE_DrawerPopup.js +10 -10
  327. package/es/UNSAFE_Dropdown.js +12 -12
  328. package/es/UNSAFE_Environment.js +4 -4
  329. package/es/UNSAFE_ExpandableList.js +22 -22
  330. package/es/UNSAFE_FilePicker.js +4 -4
  331. package/es/UNSAFE_Flex.js +4 -4
  332. package/es/UNSAFE_Floating.js +10 -10
  333. package/es/UNSAFE_FormLayout.js +2 -2
  334. package/es/UNSAFE_Gantt.js +22 -22
  335. package/es/UNSAFE_Grid.js +4 -4
  336. package/es/UNSAFE_HighlightText.js +4 -4
  337. package/es/UNSAFE_Icon.js +15 -15
  338. package/es/UNSAFE_IconButton.js +15 -15
  339. package/es/UNSAFE_IconMenuButton.js +19 -19
  340. package/es/UNSAFE_IconProgressButton.js +19 -19
  341. package/es/UNSAFE_IconToggleButton.js +15 -15
  342. package/es/UNSAFE_Indexer.js +6 -6
  343. package/es/UNSAFE_InputDateMask.js +23 -23
  344. package/es/UNSAFE_InputDatePicker.js +32 -32
  345. package/es/UNSAFE_InputPassword.js +22 -22
  346. package/es/UNSAFE_InputSensitiveText.js +24 -24
  347. package/es/UNSAFE_InputText.js +25 -25
  348. package/es/UNSAFE_Label.js +22 -22
  349. package/es/UNSAFE_LabelValueLayout.js +4 -4
  350. package/es/UNSAFE_LabelledLink.js +24 -24
  351. package/es/UNSAFE_Layer.js +7 -7
  352. package/es/UNSAFE_Legend.js +22 -22
  353. package/es/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +30 -30
  354. package/es/UNSAFE_LineAreaChart.js +31 -31
  355. package/es/UNSAFE_Link.js +2 -2
  356. package/es/UNSAFE_ListItemLayout.js +5 -5
  357. package/es/UNSAFE_ListView.js +25 -25
  358. package/es/UNSAFE_LiveRegion.js +4 -4
  359. package/es/UNSAFE_Menu.js +21 -21
  360. package/es/UNSAFE_MenuButton.js +19 -19
  361. package/es/UNSAFE_MessageBanner.js +18 -18
  362. package/es/UNSAFE_MessageToast.js +21 -21
  363. package/es/UNSAFE_MeterBar.js +16 -16
  364. package/es/UNSAFE_MeterCircle.js +16 -16
  365. package/es/UNSAFE_Modal.js +7 -7
  366. package/es/UNSAFE_NavigationList.js +19 -19
  367. package/es/UNSAFE_NavigationListCommon.js +17 -17
  368. package/es/UNSAFE_NumberInputText.js +24 -24
  369. package/es/UNSAFE_OverflowTabBar.js +24 -24
  370. package/es/UNSAFE_PictoChart.js +13 -13
  371. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +14 -14
  372. package/es/UNSAFE_PieChart.js +14 -14
  373. package/es/UNSAFE_Popup.js +15 -15
  374. package/es/UNSAFE_ProgressBar.js +5 -5
  375. package/es/UNSAFE_ProgressButton.js +19 -19
  376. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  377. package/es/UNSAFE_ProgressCircle.js +4 -4
  378. package/es/UNSAFE_RadioItem.js +22 -22
  379. package/es/UNSAFE_RadioSet.js +22 -22
  380. package/es/UNSAFE_RatingGauge.js +16 -16
  381. package/es/UNSAFE_ReorderableTabBar.js +21 -21
  382. package/es/UNSAFE_SectionalLegend.js +23 -23
  383. package/es/UNSAFE_SelectMultiple.js +30 -30
  384. package/es/UNSAFE_SelectSingle.js +30 -30
  385. package/es/UNSAFE_SelectionCard.js +4 -4
  386. package/es/UNSAFE_Selector.js +15 -15
  387. package/es/UNSAFE_SelectorAll.js +19 -19
  388. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +13 -13
  389. package/es/UNSAFE_Sheet.js +10 -10
  390. package/es/UNSAFE_SplitMenuButton.js +19 -19
  391. package/es/UNSAFE_TabBar.js +25 -25
  392. package/es/UNSAFE_TabBarCommon.js +24 -24
  393. package/es/UNSAFE_TabBarMixed.js +28 -28
  394. package/es/UNSAFE_TableView.js +18 -18
  395. package/es/UNSAFE_TagCloud.js +22 -22
  396. package/es/UNSAFE_TextArea.js +24 -24
  397. package/es/UNSAFE_TextAreaAutosize.js +24 -24
  398. package/es/UNSAFE_TextField.js +7 -7
  399. package/es/UNSAFE_ToggleButton.js +3 -3
  400. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +21 -21
  401. package/es/UNSAFE_Toolbar.js +4 -4
  402. package/es/UNSAFE_Train.js +16 -16
  403. package/es/UNSAFE_TruncatingBadge.js +17 -17
  404. package/es/UNSAFE_TruncatingText.js +17 -17
  405. package/es/UNSAFE_UserAssistance.js +23 -23
  406. package/es/UNSAFE_View.js +7 -7
  407. package/es/UNSAFE_VirtualizedListView.js +19 -19
  408. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  409. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  410. package/es/UNSAFE_VisStatusMessage.js +6 -6
  411. package/es/UNSAFE_WindowOverlay.js +4 -4
  412. package/es/{View-63980a9b.js → View-a8a64eb1.js} +5 -5
  413. package/es/{View-63980a9b.js.map → View-a8a64eb1.js.map} +1 -1
  414. package/es/{VisNoData-da540cbd.js → VisNoData-673b58e9.js} +3 -3
  415. package/es/{VisNoData-da540cbd.js.map → VisNoData-673b58e9.js.map} +1 -1
  416. package/es/{VisProgressiveLoader-2b2103c8.js → VisProgressiveLoader-66dde1ff.js} +3 -3
  417. package/es/{VisProgressiveLoader-2b2103c8.js.map → VisProgressiveLoader-66dde1ff.js.map} +1 -1
  418. package/es/{VisTabularDatatip-2ae7ee48.js → VisTabularDatatip-6aa607bb.js} +2 -2
  419. package/es/{VisTabularDatatip-2ae7ee48.js.map → VisTabularDatatip-6aa607bb.js.map} +1 -1
  420. package/es/{WindowOverlay-9b43e658.js → WindowOverlay-de5d0819.js} +2 -2
  421. package/es/{WindowOverlay-9b43e658.js.map → WindowOverlay-de5d0819.js.map} +1 -1
  422. package/es/{YearsGridView-37dfce0c.js → YearsGridView-5b5c1746.js} +4 -4
  423. package/es/{YearsGridView-37dfce0c.js.map → YearsGridView-5b5c1746.js.map} +1 -1
  424. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  425. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  426. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  427. package/es/hooks/PRIVATE_useChartContextMenu.js +18 -18
  428. package/es/hooks/PRIVATE_useChartDatatip.js +13 -13
  429. package/es/hooks/PRIVATE_useChartEvents.js +17 -17
  430. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  431. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  432. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  433. package/es/hooks/PRIVATE_useDatatip.js +11 -11
  434. package/es/hooks/PRIVATE_useFloating.js +4 -4
  435. package/es/hooks/PRIVATE_useReorderable.js +4 -4
  436. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  437. package/es/hooks/PRIVATE_useSelection.js +4 -4
  438. package/es/hooks/PRIVATE_useTabBar.js +5 -5
  439. package/es/hooks/PRIVATE_useVisContextMenu.js +18 -18
  440. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  441. package/es/hooks/PRIVATE_useVisMeterEvents.js +13 -13
  442. package/es/hooks/PRIVATE_useVisSelection.js +12 -12
  443. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  444. package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
  445. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  446. package/es/hooks/UNSAFE_useDensity.js +3 -3
  447. package/es/hooks/UNSAFE_useOutsideClick.js +7 -7
  448. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  449. package/es/hooks/UNSAFE_useScale.js +3 -3
  450. package/es/hooks/UNSAFE_useTestId.js +3 -3
  451. package/es/hooks/UNSAFE_useTheme.js +3 -3
  452. package/es/hooks/UNSAFE_useThemeInterpolations.js +5 -5
  453. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  454. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  455. package/es/hooks/UNSAFE_useUser.js +3 -3
  456. package/es/{index-e65c9009.js → index-fee93bf9.js} +2 -2
  457. package/es/index-fee93bf9.js.map +1 -0
  458. package/es/listViewSelectionTests-0dfdcc5d.js +4 -4
  459. package/es/{render-ff141a3d.js → render-d92a7051.js} +3 -3
  460. package/es/{render-ff141a3d.js.map → render-d92a7051.js.map} +1 -1
  461. package/es/{tabbableUtils-375a33ee.js → tabbableUtils-1b4c2eea.js} +3 -3
  462. package/es/{tabbableUtils-375a33ee.js.map → tabbableUtils-1b4c2eea.js.map} +1 -1
  463. package/es/{testData-748c19ef.js → testData-ca9503e6.js} +3 -3
  464. package/es/{testData-748c19ef.js.map → testData-ca9503e6.js.map} +1 -1
  465. package/es/{tooltipUtils-1131b3ca.js → tooltipUtils-06c93436.js} +5 -5
  466. package/es/{tooltipUtils-1131b3ca.js.map → tooltipUtils-06c93436.js.map} +1 -1
  467. package/es/useCellNavigation-00d575ca.js +1 -1
  468. package/es/useChartContextMenu-8c49f584.js +3 -3
  469. package/es/{useChartDatatip-25f6bc69.js → useChartDatatip-82dba484.js} +4 -4
  470. package/es/{useChartDatatip-25f6bc69.js.map → useChartDatatip-82dba484.js.map} +1 -1
  471. package/es/useChartMarquee-08025a83.js +1 -1
  472. package/es/{useColorScheme-d8a80e2b.js → useColorScheme-f69d53b5.js} +2 -2
  473. package/es/{useColorScheme-d8a80e2b.js.map → useColorScheme-f69d53b5.js.map} +1 -1
  474. package/es/useContextMenu-12845847.js +3 -3
  475. package/es/{useCssVars-8e6932f8.js → useCssVars-48595cd2.js} +5 -5
  476. package/es/{useCssVars-8e6932f8.js.map → useCssVars-48595cd2.js.map} +1 -1
  477. package/es/{useCurrentBgColor-5418492b.js → useCurrentBgColor-894d059b.js} +2 -2
  478. package/es/{useCurrentBgColor-5418492b.js.map → useCurrentBgColor-894d059b.js.map} +1 -1
  479. package/es/{useCurrentKey-76e7d7b1.js → useCurrentKey-55123e83.js} +2 -2
  480. package/es/{useCurrentKey-76e7d7b1.js.map → useCurrentKey-55123e83.js.map} +1 -1
  481. package/es/{useDatatip-73566627.js → useDatatip-01d7ddeb.js} +4 -4
  482. package/es/{useDatatip-73566627.js.map → useDatatip-01d7ddeb.js.map} +1 -1
  483. package/es/{useDensity-64ecb649.js → useDensity-04a01caf.js} +2 -2
  484. package/es/{useDensity-64ecb649.js.map → useDensity-04a01caf.js.map} +1 -1
  485. package/es/{useFloating-d60cc8b4.js → useFloating-c9278755.js} +2 -2
  486. package/es/{useFloating-d60cc8b4.js.map → useFloating-c9278755.js.map} +1 -1
  487. package/es/{useKeyboardEvents-5c311766.js → useKeyboardEvents-b02e5fda.js} +2 -2
  488. package/es/{useKeyboardEvents-5c311766.js.map → useKeyboardEvents-b02e5fda.js.map} +1 -1
  489. package/es/useLegendContextMenu-926aca66.js +5 -5
  490. package/es/{useMeterDatatip-2cedbd5c.js → useMeterDatatip-43e31c05.js} +3 -3
  491. package/es/{useMeterDatatip-2cedbd5c.js.map → useMeterDatatip-43e31c05.js.map} +1 -1
  492. package/es/{useOutsideClick-725542a2.js → useOutsideClick-388c62bd.js} +2 -2
  493. package/es/{useOutsideClick-725542a2.js.map → useOutsideClick-388c62bd.js.map} +1 -1
  494. package/es/{usePopupAnimation-340f04b6.js → usePopupAnimation-b4577940.js} +2 -2
  495. package/es/{usePopupAnimation-340f04b6.js.map → usePopupAnimation-b4577940.js.map} +1 -1
  496. package/es/{usePrefixSuffix-435a9c59.js → usePrefixSuffix-995d4cda.js} +2 -2
  497. package/es/{usePrefixSuffix-435a9c59.js.map → usePrefixSuffix-995d4cda.js.map} +1 -1
  498. package/es/useReorderableItem-c715c504.js +2 -2
  499. package/es/{useRovingTabIndexContainer-b9833086.js → useRovingTabIndexContainer-097f96a6.js} +2 -2
  500. package/es/{useRovingTabIndexContainer-b9833086.js.map → useRovingTabIndexContainer-097f96a6.js.map} +1 -1
  501. package/es/{useScale-c86ecc6e.js → useScale-3b323ab2.js} +2 -2
  502. package/es/{useScale-c86ecc6e.js.map → useScale-3b323ab2.js.map} +1 -1
  503. package/es/useSelectCommon-7ebc86eb.js +11 -11
  504. package/es/{useSelectDrill-fbe57d95.js → useSelectDrill-8b53d932.js} +3 -3
  505. package/es/{useSelectDrill-fbe57d95.js.map → useSelectDrill-8b53d932.js.map} +1 -1
  506. package/es/{useSelection-1e1e89df.js → useSelection-7c94a24f.js} +2 -2
  507. package/es/{useSelection-1e1e89df.js.map → useSelection-7c94a24f.js.map} +1 -1
  508. package/es/{useSelection-dfbd140d.js → useSelection-b7c3e75e.js} +5 -5
  509. package/es/{useSelection-dfbd140d.js.map → useSelection-b7c3e75e.js.map} +1 -1
  510. package/es/{useTabBar-b826570d.js → useTabBar-6c6847ef.js} +2 -2
  511. package/es/{useTabBar-b826570d.js.map → useTabBar-6c6847ef.js.map} +1 -1
  512. package/es/{useTestId-3bc3958c.js → useTestId-af32a9eb.js} +2 -2
  513. package/es/{useTestId-3bc3958c.js.map → useTestId-af32a9eb.js.map} +1 -1
  514. package/es/{useTheme-4b0f211c.js → useTheme-73aca0e4.js} +2 -2
  515. package/es/{useTheme-4b0f211c.js.map → useTheme-73aca0e4.js.map} +1 -1
  516. package/es/{useThemeInterpolations-41ac870d.js → useThemeInterpolations-4f6cc83c.js} +4 -4
  517. package/es/{useThemeInterpolations-41ac870d.js.map → useThemeInterpolations-4f6cc83c.js.map} +1 -1
  518. package/es/{useTooltip-227887ea.js → useTooltip-e258ea41.js} +2 -2
  519. package/es/{useTooltip-227887ea.js.map → useTooltip-e258ea41.js.map} +1 -1
  520. package/es/{useTooltipControlled-7ccb5919.js → useTooltipControlled-50d5dac9.js} +5 -5
  521. package/es/{useTooltipControlled-7ccb5919.js.map → useTooltipControlled-50d5dac9.js.map} +1 -1
  522. package/es/{useTranslationBundle-98df6291.js → useTranslationBundle-6da03e52.js} +2 -2
  523. package/es/{useTranslationBundle-98df6291.js.map → useTranslationBundle-6da03e52.js.map} +1 -1
  524. package/es/{useUser-a15426fc.js → useUser-bca8cf2d.js} +2 -2
  525. package/es/{useUser-a15426fc.js.map → useUser-bca8cf2d.js.map} +1 -1
  526. package/es/{useVisEvents-ff4204b5.js → useVisEvents-cd3616aa.js} +2 -2
  527. package/es/{useVisEvents-ff4204b5.js.map → useVisEvents-cd3616aa.js.map} +1 -1
  528. package/es/utils/PRIVATE_tooltipUtils.js +13 -13
  529. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  530. package/es/{withDirectionIcon-90d7c798.js → withDirectionIcon-389870a2.js} +2 -2
  531. package/es/{withDirectionIcon-90d7c798.js.map → withDirectionIcon-389870a2.js.map} +1 -1
  532. package/es/withThemeProps-6545df54.js +2 -2
  533. package/package.json +2 -2
  534. package/amd/InputDatePicker-97756bcd.js +0 -2
  535. package/amd/TextArea-916c5bb1.js +0 -2
  536. package/amd/TextAreaAutosize-1f47b470.js +0 -2
  537. package/cjs/BaseNavigationListItem-62f24d1b.js +0 -49
  538. package/cjs/BaseNavigationListItem-62f24d1b.js.map +0 -1
  539. package/cjs/CheckboxSet-368b907b.js +0 -53
  540. package/cjs/CheckboxSet-368b907b.js.map +0 -1
  541. package/cjs/MaxLengthCounter-a5370f66.js +0 -27
  542. package/cjs/NavigationList-9e2a1115.js.map +0 -1
  543. package/cjs/NavigationListItem-4f5dc28a.js +0 -12
  544. package/cjs/NavigationListItem-4f5dc28a.js.map +0 -1
  545. package/cjs/useNavigationListItem-0a5c6a11.js.map +0 -1
  546. package/es/index-e65c9009.js.map +0 -1
@@ -12,7 +12,20 @@ var useCollectionFocusRing = require('./useCollectionFocusRing-ca37785b.js');
12
12
  var useCurrentKey = require('./useCurrentKey-3c1736a2.js');
13
13
  var compat = require('preact/compat');
14
14
  var useTestId = require('./useTestId-e267a39d.js');
15
- var useNavigationListItem = require('./useNavigationListItem-0a5c6a11.js');
15
+ require('./UNSAFE_Text/themes/TextStyles.css.js');
16
+ var BaseNavigationListItem = require('./BaseNavigationListItem-4b28f14e.js');
17
+ require('./Flex-ce16a2fa.js');
18
+ require('./logger-2b636482.js');
19
+ require('preact');
20
+ require('./LayerHost-7182bfaf.js');
21
+
22
+
23
+ require('./hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js');
24
+ require('./tooltipUtils-7857f698.js');
25
+
26
+ require('./UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js');
27
+
28
+ require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js');
16
29
 
17
30
  /*TODO: JET-58534. Create a hook to share some logic between navlist and tabbar. Hook will be used inside this one. */
18
31
  function useNavigationList({ containerRef, selection, onRemove, onSelectionChange, children }) {
@@ -133,7 +146,7 @@ const NavigationList = compat.forwardRef(({ children, selection, onSelectionChan
133
146
  }
134
147
  }
135
148
  }));
136
- return (jsxRuntime.jsx("ul", { "aria-label": ariaLabel, "aria-labelledby": ariaLabelLedBy, role: "tablist", ref: containerRef, "aria-orientation": 'vertical', tabIndex: 0, "aria-activedescendant": currentKey ? navigationListItemPrefix + currentKey : '', ...mergeProps.mergeProps(eventProps, containerHandlers), ...testIdProps, class: navigationListClass, children: jsxRuntime.jsx(useNavigationListItem.NavigationListContext.Provider, { value: {
149
+ return (jsxRuntime.jsx("ul", { "aria-label": ariaLabel, "aria-labelledby": ariaLabelLedBy, role: "tablist", ref: containerRef, "aria-orientation": 'vertical', tabIndex: 0, "aria-activedescendant": currentKey ? navigationListItemPrefix + currentKey : '', ...mergeProps.mergeProps(eventProps, containerHandlers), ...testIdProps, class: navigationListClass, children: jsxRuntime.jsx(BaseNavigationListItem.NavigationListContext.Provider, { value: {
137
150
  selection,
138
151
  onSelectionChange,
139
152
  onCurrentKeyChange,
@@ -144,5 +157,10 @@ const NavigationList = compat.forwardRef(({ children, selection, onSelectionChan
144
157
  }, children: children }) }));
145
158
  });
146
159
 
160
+ function NavigationListItem({ itemKey, label, badge, metadata, severity }) {
161
+ return (jsxRuntime.jsx(BaseNavigationListItem.BaseNavigationListItem, { itemKey: itemKey, label: label, badge: badge, metadata: metadata, severity: severity }));
162
+ }
163
+
147
164
  exports.NavigationList = NavigationList;
148
- //# sourceMappingURL=NavigationList-9e2a1115.js.map
165
+ exports.NavigationListItem = NavigationListItem;
166
+ //# sourceMappingURL=NavigationListItem-7550547a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationListItem-7550547a.js","sources":["../../src/UNSAFE_NavigationList/useNavigationList.ts","../../src/UNSAFE_NavigationList/NavigationList.tsx","../../src/UNSAFE_NavigationList/NavigationListItem.tsx"],"sourcesContent":["import { useState, useCallback, MutableRef, useRef, useEffect } from 'preact/hooks';\nimport {\n keyExtractor,\n getFirstVisibleKey,\n getKey,\n getPrevNextKeyUsingRef,\n findElementByKey\n} from '../utils/PRIVATE_collectionUtils';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { useCollectionFocusRing } from '../hooks/PRIVATE_useCollectionFocusRing';\nimport { useCurrentKey } from '../hooks/PRIVATE_useCurrentKey';\nimport { NavigationListContextProps } from '../UNSAFE_NavigationListCommon';\n\nimport { ComponentChildren } from 'preact';\n\n/**\n * type for payload of current key change event handler\n */\ntype CurrentKeyDetail<K> = {\n value: K;\n};\n/**\n * type for payload of selection change event handler\n */\ntype SelectionDetail<K> = {\n value: K;\n reason: 'pointer' | 'keyboard';\n};\n/**\n * type for payload of remove event handler\n */\ntype RemoveDetail<K> = {\n value: K;\n};\n\n/*TODO: JET-58534. Create a hook to share some logic between navlist and tabbar. Hook will be used inside this one. */\nexport function useNavigationList<K extends string | number>({\n containerRef,\n selection,\n onRemove,\n onSelectionChange,\n children\n}: {\n containerRef: MutableRef<HTMLUListElement>;\n selection?: K;\n onRemove?: <K extends string | number>(detail: RemoveDetail<K>) => void;\n onSelectionChange?: <K extends string | number>(detail: SelectionDetail<K>) => void;\n children: ComponentChildren;\n}) {\n const ITEM_SELECTOR = '[role=\"tab\"]';\n const REMOVAL_ICON_SELECTOR = '[data-oj-navigationlist-item-remove-icon]';\n const [currentKey, setCurrentKey] = useState<K | undefined>(selection);\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K | undefined>) => {\n setCurrentKey(detail.value);\n }, []) as NavigationListContextProps<K>['onCurrentKeyChange'];\n\n const { currentKeyProps } = useCurrentKey(\n (element) =>\n onRemove\n ? (extractOnlyItemKey(element, ITEM_SELECTOR, REMOVAL_ICON_SELECTOR) as K)\n : keyExtractor(element, ITEM_SELECTOR),\n false,\n getPrevNextKeyUsingRef(containerRef, currentKey, true, ITEM_SELECTOR),\n getPrevNextKeyUsingRef(containerRef, currentKey, false, ITEM_SELECTOR),\n undefined,\n undefined,\n currentKey,\n onCurrentKeyChange\n );\n\n const [showFocusRing, focusRingProps] = useCollectionFocusRing(containerRef, [\n 'Home',\n 'End',\n 'ArrowUp',\n 'ArrowDown'\n ]);\n\n const onFocus = useCallback(() => {\n if (containerRef.current && currentKey === undefined) {\n const key = getFirstVisibleKey(containerRef.current, ITEM_SELECTOR);\n if (key) {\n setCurrentKey(key as K);\n }\n }\n }, [currentKey, containerRef]);\n\n const onFocusProps = { onFocus };\n const prevNavItems = useRef<K[]>();\n\n useEffect(() => {\n if (containerRef.current) {\n const navListItemKeys = Array.from(\n containerRef.current.querySelectorAll(ITEM_SELECTOR),\n (elem) => getKey(elem as HTMLElement) as K\n );\n if (currentKey != null && navListItemKeys.indexOf(currentKey) !== -1) {\n const navListItem = findElementByKey(\n containerRef.current,\n currentKey,\n ITEM_SELECTOR\n ) as any;\n if (navListItem.scrollIntoViewIfNeeded) {\n // for some browsers, we'll need the non-standard scrollIntoViewIfNeeded\n navListItem.scrollIntoViewIfNeeded();\n } else {\n navListItem.scrollIntoView({ block: 'nearest' });\n }\n } else {\n if (currentKey && navListItemKeys.indexOf(currentKey) === -1) {\n prevNavItems.current\n ? setCurrentKey(findNextCurrentKey(currentKey, navListItemKeys, prevNavItems.current))\n : setCurrentKey(navListItemKeys[0] as K);\n }\n prevNavItems.current = navListItemKeys;\n }\n }\n }, [children, currentKey, containerRef]);\n\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if ((event.key === 'Home' || event.key === 'End') && containerRef.current && currentKey) {\n const navListItemKey = Array.from(\n containerRef.current.querySelectorAll(ITEM_SELECTOR),\n (elem) => getKey(elem as HTMLElement) as K\n );\n onCurrentKeyChange?.({\n value: navListItemKey[event.key === 'Home' ? 0 : navListItemKey.length - 1] as K\n });\n }\n if (currentKey && event.key === 'Enter') {\n onSelectionChange?.({\n value: currentKey as K,\n reason: 'keyboard'\n });\n }\n if (currentKey && event.key === 'Delete') {\n onRemove?.({ value: currentKey as K });\n }\n },\n [currentKey, onSelectionChange, onRemove, onCurrentKeyChange, containerRef]\n );\n\n return {\n showFocusRing,\n currentKey,\n onCurrentKeyChange,\n onKeyDown,\n containerHandlers: mergeProps(focusRingProps, currentKeyProps, onFocusProps)\n };\n}\n\nconst extractOnlyItemKey = (element: HTMLElement, itemSelector: string, itemEliminator: string) => {\n const navigationListItem = element.closest(itemSelector);\n const removeButton = element.closest(itemEliminator);\n return navigationListItem?.contains(removeButton) ? null : keyExtractor(element, itemSelector);\n};\n\nconst findNextCurrentKey = <K>(currentKey: K, currNavs: K[], prevNavs: K[]) => {\n const index = prevNavs.indexOf(currentKey);\n if (index > 0) {\n const nextIndex = index === prevNavs.length - 1 ? index - 1 : index + 1;\n const nextKey = prevNavs[nextIndex];\n if (currNavs.indexOf(nextKey) !== -1) {\n return nextKey;\n }\n }\n // update current key to be the first one if we can't find a suitable next key\n return currNavs[0];\n};\n","import { Ref } from 'preact';\nimport { MutableRef, useRef } from 'preact/hooks';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useId } from '../hooks/UNSAFE_useId';\nimport { navigationListStyles } from './themes/NavigationListStyles.css';\nimport { useNavigationList } from './useNavigationList';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { NavigationListProps, NavigationListContext } from '../UNSAFE_NavigationListCommon';\nexport { RemovableNavigationListItem } from '../UNSAFE_NavigationListCommon';\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\nexport const NavigationList = forwardRef(\n <K extends string | number>(\n {\n children,\n selection,\n onSelectionChange,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelLedBy,\n testId\n }: NavigationListProps<K> & TestIdProps,\n ref?: Ref<FocusableHandle>\n ) => {\n const containerRef = useRef<HTMLUListElement>(null);\n\n const { showFocusRing, currentKey, onCurrentKeyChange, containerHandlers, onKeyDown } =\n useNavigationList({\n containerRef: containerRef as MutableRef<HTMLUListElement>,\n selection,\n onRemove,\n onSelectionChange,\n children\n });\n\n const eventProps = { onKeyDown };\n const navigationListClass = classNames([navigationListStyles.uListStyle]);\n const navigationListItemPrefix = useId() + '_';\n const testIdProps = useTestId(testId);\n\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(ref!, () => ({\n focus: () => {\n if (containerRef.current) {\n containerRef.current.focus();\n }\n },\n blur: () => {\n if (containerRef.current) {\n containerRef.current.focus();\n }\n }\n }));\n\n return (\n <ul\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelLedBy}\n role=\"tablist\"\n ref={containerRef}\n aria-orientation={'vertical'}\n tabIndex={0}\n aria-activedescendant={currentKey ? navigationListItemPrefix + currentKey : ''}\n {...mergeProps(eventProps, containerHandlers)}\n {...testIdProps}\n class={navigationListClass}>\n <NavigationListContext.Provider\n value={{\n selection,\n onSelectionChange,\n onCurrentKeyChange,\n currentKey,\n showFocusRing,\n navigationListItemPrefix,\n onRemove\n }}>\n {children}\n </NavigationListContext.Provider>\n </ul>\n );\n }\n);\n","import {\n BaseNavigationListItem,\n BaseNavigationListItemProps\n} from '../UNSAFE_NavigationListCommon/BaseNavigationListItem';\n\nexport type NavigationListItemProps<K extends string | number> = Omit<\n BaseNavigationListItemProps<K>,\n 'removeIcon'\n>;\n\nexport function NavigationListItem<K extends string | number>({\n itemKey,\n label,\n badge,\n metadata,\n severity\n}: NavigationListItemProps<K>) {\n return (\n <BaseNavigationListItem\n itemKey={itemKey}\n label={label}\n badge={badge}\n metadata={metadata}\n severity={severity}\n />\n );\n}\n"],"names":["useState","useCallback","useCurrentKey","keyExtractor","getPrevNextKeyUsingRef","useCollectionFocusRing","getFirstVisibleKey","useRef","useEffect","getKey","findElementByKey","mergeProps","forwardRef","classNames","navigationListStyles","useId","useTestId","useImperativeHandle","_jsx","NavigationListContext","BaseNavigationListItem"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA;AACgB,SAAA,iBAAiB,CAA4B,EAC3D,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EAOT,EAAA;IACC,MAAM,aAAa,GAAG,cAAc,CAAC;IACrC,MAAM,qBAAqB,GAAG,2CAA2C,CAAC;IAC1E,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAGA,cAAQ,CAAgB,SAAS,CAAC,CAAC;AAEvE,IAAA,MAAM,kBAAkB,GAAGC,iBAAW,CAAC,CAAC,MAAuC,KAAI;AACjF,QAAA,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,C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AI,EAAE,MAAK;AACT,YAAA,IAAI,YAAY,CAAC,OAAO,EAAE;AACxB,gBAAA,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;aAC9B;SACF;AACF,KAAA,CAAC,CAAC,CAAC;IAEJ,QACEC,qCACc,SAAS,EAAA,iBAAA,EACJ,cAAc,EAC/B,IAAI,EAAC,SAAS,EACd,GAAG,EAAE,YAAY,EAAA,kBAAA,EACC,UAAU,EAC5B,QAAQ,EAAE,CAAC,EACY,uBAAA,EAAA,UAAU,GAAG,wBAAwB,GAAG,UAAU,GAAG,EAAE,EAAA,GAC1EP,qBAAU,CAAC,UAAU,EAAE,iBAAiB,CAAC,EAAA,GACzC,WAAW,EACf,KAAK,EAAE,mBAAmB,EAC1B,QAAA,EAAAO,cAAA,CAACC,4CAAqB,CAAC,QAAQ,EAC7B,EAAA,KAAK,EAAE;gBACL,SAAS;gBACT,iBAAiB;gBACjB,kBAAkB;gBAClB,UAAU;gBACV,aAAa;gBACb,wBAAwB;gBACxB,QAAQ;AACT,aAAA,EAAA,QAAA,EACA,QAAQ,EAAA,CACsB,EAC9B,CAAA,EACL;AACJ,CAAC;;AC5Ea,SAAA,kBAAkB,CAA4B,EAC5D,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACmB,EAAA;IAC3B,QACED,cAAC,CAAAE,6CAAsB,EACrB,EAAA,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,CAAA,EACF;AACJ;;;;;"}
@@ -5,13 +5,13 @@ var jsxRuntime = require('preact/jsx-runtime');
5
5
  var preact = require('preact');
6
6
  var hooks = require('preact/hooks');
7
7
  var classNames = require('./classNames-c14c6ef3.js');
8
- var TabBar = require('./TabBar-d9f6d3c3.js');
8
+ var TabBar = require('./TabBar-c13ce35f.js');
9
9
  var UNSAFE_OverflowTabBar_themes_OverflowTabBarStyles_css = require('./UNSAFE_OverflowTabBar/themes/OverflowTabBarStyles.css.js');
10
10
  var useDetectHorizontalOverflow = require('./useDetectHorizontalOverflow-ceb85a31.js');
11
11
  var collectionUtils = require('./collectionUtils-1535080e.js');
12
12
  var RemovableTabBarItem = require('./RemovableTabBarItem-da075122.js');
13
13
  var TabBarItem = require('./TabBarItem-5a7d5d03.js');
14
- var OverflowTabBarItem = require('./OverflowTabBarItem-7e4a284a.js');
14
+ var OverflowTabBarItem = require('./OverflowTabBarItem-76059bad.js');
15
15
 
16
16
  /**
17
17
  * OverflowTabBar handles the rendering of overflowing tab items.
@@ -77,4 +77,4 @@ function OverflowTabBar({ items, layout = 'stretch', display = 'standard', size
77
77
  }
78
78
 
79
79
  exports.OverflowTabBar = OverflowTabBar;
80
- //# sourceMappingURL=OverflowTabBar-0122125c.js.map
80
+ //# sourceMappingURL=OverflowTabBar-76c75781.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OverflowTabBar-0122125c.js","sources":["../../src/UNSAFE_OverflowTabBar/OverflowTabBar.tsx"],"sourcesContent":["import { ComponentProps, createRef } from 'preact';\nimport { useCallback, useMemo, useRef, useState } from 'preact/hooks';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { OverflowTabBarItem, RemovableTabBarItem, TabBar, TabBarItem } from '../UNSAFE_TabBar';\nimport { CloseDetail, Item } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/OverflowTabBarStyles.css';\nimport { useDetectHorizontalOverflow } from '../hooks/PRIVATE_useDetectHorizontalOverflow';\nimport { findElementByKey } from '../utils/PRIVATE_collectionUtils';\n\ntype OverflowTabBarProps<K extends string | number> = {\n /**\n * An array of data to render individual tabs\n */\n items: Item<K>[];\n} & Omit<ComponentProps<typeof TabBar>, 'children' | 'aria-describedby' | 'ref'>;\n\n/**\n * OverflowTabBar handles the rendering of overflowing tab items.\n */\nexport function OverflowTabBar<K extends string | number>({\n items,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n onSelect,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n testId\n}: OverflowTabBarProps<K> & TestIdProps) {\n const displayStackProps = {\n display: display\n };\n const displayNonStackProps = {\n display: display,\n size: size\n };\n const itemSelector = '[role=\"tab\"]';\n const displayProps = display === 'stacked' ? displayStackProps : displayNonStackProps;\n const rootRef = useRef<HTMLDivElement>(null);\n const tabBarRef = createRef<HTMLDivElement>();\n\n const [isDropDownOpen, setIsDropDownOpen] = useState<boolean>(false);\n\n const isOutsideMouseDown = useRef<boolean>(false);\n\n const handleClose = (e: CloseDetail) => {\n if (tabBarRef.current && ['itemAction', 'dismissed'].includes(e.reason)) {\n tabBarRef?.current?.focus();\n }\n if (e.reason === 'outsideMousedown') {\n isOutsideMouseDown.current = true;\n }\n setIsDropDownOpen(false);\n };\n\n const handleSelect = useCallback<Required<ComponentProps<typeof TabBar>>['onSelect']>(\n (e: { value: string | number }) => {\n if (e.value === 'more') {\n //If overflow item is clicked after dropdown is open, the reason is outsideMouseDown and it needs to be closed\n if (isOutsideMouseDown.current) {\n setIsDropDownOpen(false);\n } else {\n setIsDropDownOpen(true);\n }\n } else {\n onSelect?.(e);\n }\n isOutsideMouseDown.current = false;\n },\n [onSelect]\n );\n\n const overflowItemKey = 'more' as K;\n\n const keysArray = useMemo(() => items.map((item) => item.itemKey) as K[], [items]);\n\n const getWidth = useCallback(\n <K extends string | number>(itemKey: K | undefined) => {\n const elem = findElementByKey(rootRef.current as HTMLElement, itemKey as K, itemSelector);\n const isLastKey = itemKey === (keysArray[keysArray.length - 1] as string | number);\n //If it is lastKey we need not account for gap after it\n const gapBetweenItems = !isLastKey ? 32 : 0;\n return elem! ? elem.getBoundingClientRect().width + gapBetweenItems : 0;\n },\n [keysArray]\n );\n\n const { visibleItemKeys, overflowItemKeys } = useDetectHorizontalOverflow({\n rootRef,\n getWidth,\n keysArray\n });\n\n const overflowTabBarClass = classNames([styles.overflowTabBarBase]);\n\n return (\n <div ref={rootRef} class={overflowTabBarClass}>\n <TabBar\n ref={tabBarRef}\n selection={selection}\n onSelect={handleSelect}\n {...displayProps}\n layout={layout}\n edge={edge}\n onRemove={onRemove}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n testId={testId}>\n {visibleItemKeys != null &&\n visibleItemKeys.length > 0 &&\n items\n .filter((item) => visibleItemKeys?.includes(item.itemKey))\n .map((item: Item<K>) =>\n item.isRemovable ? (\n <RemovableTabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n />\n ) : (\n <TabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n />\n )\n )}\n {overflowItemKeys != null && overflowItemKeys.length > 0 && (\n <OverflowTabBarItem\n isOpen={isDropDownOpen}\n onClose={handleClose}\n overflowItemKey={overflowItemKey}\n overflowItems={items.filter((item) => overflowItemKeys?.includes(item.itemKey))}\n />\n )}\n </TabBar>\n </div>\n );\n}\n"],"names":["useRef","createRef","useState","useCallback","useMemo","findElementByKey","useDetectHorizontalOverflow","classNames","styles","_jsx","_jsxs","TabBar","RemovableTabBarItem","TabBarItem","OverflowTabBarItem"],"mappings":";;;;;;;;;;;;;;;AAiBA;;AAEG;SACa,cAAc,CAA4B,EACxD,KAAK,EACL,MAAM,GAAG,SAAS,EAClB,OAAO,GAAG,UAAU,EACpB,IAAI,GAAG,IAAI,EACX,IAAI,GAAG,KAAK,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,MAAM,EAC+B,EAAA;AACrC,IAAA,MAAM,iBAAiB,GAAG;AACxB,QAAA,OAAO,EAAE,OAAO;KACjB,CAAC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ACM,EAAA,CAAA,EAAA,CACL,EACN;AACJ;;;;"}
1
+ {"version":3,"file":"OverflowTabBar-76c75781.js","sources":["../../src/UNSAFE_OverflowTabBar/OverflowTabBar.tsx"],"sourcesContent":["import { ComponentProps, createRef } from 'preact';\nimport { useCallback, useMemo, useRef, useState } from 'preact/hooks';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { OverflowTabBarItem, RemovableTabBarItem, TabBar, TabBarItem } from '../UNSAFE_TabBar';\nimport { CloseDetail, Item } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/OverflowTabBarStyles.css';\nimport { useDetectHorizontalOverflow } from '../hooks/PRIVATE_useDetectHorizontalOverflow';\nimport { findElementByKey } from '../utils/PRIVATE_collectionUtils';\n\ntype OverflowTabBarProps<K extends string | number> = {\n /**\n * An array of data to render individual tabs\n */\n items: Item<K>[];\n} & Omit<ComponentProps<typeof TabBar>, 'children' | 'aria-describedby' | 'ref'>;\n\n/**\n * OverflowTabBar handles the rendering of overflowing tab items.\n */\nexport function OverflowTabBar<K extends string | number>({\n items,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n onSelect,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n testId\n}: OverflowTabBarProps<K> & TestIdProps) {\n const displayStackProps = {\n display: display\n };\n const displayNonStackProps = {\n display: display,\n size: size\n };\n const itemSelector = '[role=\"tab\"]';\n const displayProps = display === 'stacked' ? displayStackProps : displayNonStackProps;\n const rootRef = useRef<HTMLDivElement>(null);\n const tabBarRef = createRef<HTMLDivElement>();\n\n const [isDropDownOpen, setIsDropDownOpen] = useState<boolean>(false);\n\n const isOutsideMouseDown = useRef<boolean>(false);\n\n const handleClose = (e: CloseDetail) => {\n if (tabBarRef.current && ['itemAction', 'dismissed'].includes(e.reason)) {\n tabBarRef?.current?.focus();\n }\n if (e.reason === 'outsideMousedown') {\n isOutsideMouseDown.current = true;\n }\n setIsDropDownOpen(false);\n };\n\n const handleSelect = useCallback<Required<ComponentProps<typeof TabBar>>['onSelect']>(\n (e: { value: string | number }) => {\n if (e.value === 'more') {\n //If overflow item is clicked after dropdown is open, the reason is outsideMouseDown and it needs to be closed\n if (isOutsideMouseDown.current) {\n setIsDropDownOpen(false);\n } else {\n setIsDropDownOpen(true);\n }\n } else {\n onSelect?.(e);\n }\n isOutsideMouseDown.current = false;\n },\n [onSelect]\n );\n\n const overflowItemKey = 'more' as K;\n\n const keysArray = useMemo(() => items.map((item) => item.itemKey) as K[], [items]);\n\n const getWidth = useCallback(\n <K extends string | number>(itemKey: K | undefined) => {\n const elem = findElementByKey(rootRef.current as HTMLElement, itemKey as K, itemSelector);\n const isLastKey = itemKey === (keysArray[keysArray.length - 1] as string | number);\n //If it is lastKey we need not account for gap after it\n const gapBetweenItems = !isLastKey ? 32 : 0;\n return elem! ? elem.getBoundingClientRect().width + gapBetweenItems : 0;\n },\n [keysArray]\n );\n\n const { visibleItemKeys, overflowItemKeys } = useDetectHorizontalOverflow({\n rootRef,\n getWidth,\n keysArray\n });\n\n const overflowTabBarClass = classNames([styles.overflowTabBarBase]);\n\n return (\n <div ref={rootRef} class={overflowTabBarClass}>\n <TabBar\n ref={tabBarRef}\n selection={selection}\n onSelect={handleSelect}\n {...displayProps}\n layout={layout}\n edge={edge}\n onRemove={onRemove}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n testId={testId}>\n {visibleItemKeys != null &&\n visibleItemKeys.length > 0 &&\n items\n .filter((item) => visibleItemKeys?.includes(item.itemKey))\n .map((item: Item<K>) =>\n item.isRemovable ? (\n <RemovableTabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n />\n ) : (\n <TabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n />\n )\n )}\n {overflowItemKeys != null && overflowItemKeys.length > 0 && (\n <OverflowTabBarItem\n isOpen={isDropDownOpen}\n onClose={handleClose}\n overflowItemKey={overflowItemKey}\n overflowItems={items.filter((item) => overflowItemKeys?.includes(item.itemKey))}\n />\n )}\n </TabBar>\n </div>\n );\n}\n"],"names":["useRef","createRef","useState","useCallback","useMemo","findElementByKey","useDetectHorizontalOverflow","classNames","styles","_jsx","_jsxs","TabBar","RemovableTabBarItem","TabBarItem","OverflowTabBarItem"],"mappings":";;;;;;;;;;;;;;;AAiBA;;AAEG;SACa,cAAc,CAA4B,EACxD,KAAK,EACL,MAAM,GAAG,SAAS,EAClB,OAAO,GAAG,UAAU,EACpB,IAAI,GAAG,IAAI,EACX,IAAI,GAAG,KAAK,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,MAAM,EAC+B,EAAA;AACrC,IAAA,MAAM,iBAAiB,GAAG;AACxB,QAAA,OAAO,EAAE,OAAO;KACjB,CAAC;AACF,IAAA,MAAM,oBAAoB,GAAG;AAC3B,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,IAAI,EAAE,IAAI;KACX,CAAC;IACF,MAAM,YAAY,GAAG,cAAc,CAAC;AACpC,IAAA,MAAM,YAAY,GAAG,OAAO,KAAK,SAAS,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AACtF,IAAA,MAAM,OAAO,GAAGA,YAAM,CAAiB,IAAI,CAAC,CAAC;AAC7C,IAAA,MAAM,SAAS,GAAGC,gBAAS,EAAkB,CAAC;IAE9C,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAGC,cAAQ,CAAU,KAAK,CAAC,CAAC;AAErE,IAAA,MAAM,kBAAkB,GAAGF,YAAM,CAAU,KAAK,CAAC,CAAC;AAElD,IAAA,MAAM,WAAW,GAAG,CAAC,CAAc,KAAI;AACrC,QAA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,EAAE,IAAI,CAAC,QAAQ,EACR,eAAA,EAAA,IAAI,CAAC,UAAU,GAC9B,KAEFH,cAAC,CAAAI,qBAAU,EACT,EAAA,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACR,eAAA,EAAA,IAAI,CAAC,UAAU,EAAA,CAC9B,CACH,CACF,EACJ,gBAAgB,IAAI,IAAI,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,KACtDJ,cAAA,CAACK,qCAAkB,EAAA,EACjB,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,WAAW,EACpB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,gBAAgB,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAA,CAC/E,CACH,CACM,EAAA,CAAA,EAAA,CACL,EACN;AACJ;;;;"}
@@ -9,15 +9,14 @@ var clientHints = require('./clientHints-9e411b6e.js');
9
9
  var mergeInterpolations = require('./mergeInterpolations-6727b536.js');
10
10
  var flexitem = require('./flexitem-fee13e26.js');
11
11
  var classNames = require('./classNames-c14c6ef3.js');
12
- var NavigationList = require('./NavigationList-9e2a1115.js');
13
- var NavigationListItem = require('./NavigationListItem-4f5dc28a.js');
14
12
  var Icon = require('./Icon-0420d662.js');
15
13
  var useTabBarContext = require('./useTabBarContext-2a6a796c.js');
16
14
  var Dropdown = require('./Dropdown-62cd15ca.js');
17
15
  var Sheet = require('./Sheet-1650f94c.js');
18
16
  var TabBarItem = require('./TabBarItem-5a7d5d03.js');
19
17
  var UNSAFE_TabBarCommon_themes_OverflowTabBarItemStyles_css = require('./UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css.js');
20
- var RemovableNavigationListItem = require('./RemovableNavigationListItem-1235bf1c.js');
18
+ var NavigationListItem = require('./NavigationListItem-7550547a.js');
19
+ var RemovableNavigationListItem = require('./RemovableNavigationListItem-727e53e8.js');
21
20
 
22
21
  const SvgOverflowH = (props) => (jsxRuntime.jsx(Icon.Icon, { viewBox: "0 0 24 24", ...props, children: jsxRuntime.jsx("g", { fill: "none", children: jsxRuntime.jsx("path", { d: "M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z", fill: "currentcolor" }) }) }));
23
22
 
@@ -68,7 +67,7 @@ function OverflowTabBarItem({ overflowItemKey, icon, badge, overflowItems, isOpe
68
67
  }
69
68
  }, [navigationListRef]);
70
69
  const getNavigationList = hooks.useCallback(() => {
71
- return (jsxRuntime.jsx("div", { onKeyDown: handleKeyDown, tabIndex: 0, ref: navContainerRef, class: navContainerClasses, children: jsxRuntime.jsx(NavigationList.NavigationList, { ref: navigationListRef, selection: selection, onSelectionChange: handleSelectionChange, onRemove: onRemove, children: overflowItems?.map((item) => item.isRemovable ? (jsxRuntime.jsx(RemovableNavigationListItem.RemovableNavigationListItem, { itemKey: item.itemKey, label: item.label, badge: item.badge, metadata: item.metadata, severity: item.severity })) : (jsxRuntime.jsx(NavigationListItem.NavigationListItem, { itemKey: item.itemKey, label: item.label, badge: item.badge, metadata: item.metadata, severity: item.severity }))) }) }));
70
+ return (jsxRuntime.jsx("div", { onKeyDown: handleKeyDown, tabIndex: 0, ref: navContainerRef, class: navContainerClasses, children: jsxRuntime.jsx(NavigationListItem.NavigationList, { ref: navigationListRef, selection: selection, onSelectionChange: handleSelectionChange, onRemove: onRemove, children: overflowItems?.map((item) => item.isRemovable ? (jsxRuntime.jsx(RemovableNavigationListItem.RemovableNavigationListItem, { itemKey: item.itemKey, label: item.label, badge: item.badge, metadata: item.metadata, severity: item.severity })) : (jsxRuntime.jsx(NavigationListItem.NavigationListItem, { itemKey: item.itemKey, label: item.label, badge: item.badge, metadata: item.metadata, severity: item.severity }))) }) }));
72
71
  }, [
73
72
  handleKeyDown,
74
73
  navContainerClasses,
@@ -86,4 +85,4 @@ const getIsMobile = () => {
86
85
  };
87
86
 
88
87
  exports.OverflowTabBarItem = OverflowTabBarItem;
89
- //# sourceMappingURL=OverflowTabBarItem-7e4a284a.js.map
88
+ //# sourceMappingURL=OverflowTabBarItem-76059bad.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OverflowTabBarItem-7e4a284a.js","sources":["../../src/UNSAFE_RedwoodIcons/OverflowH/OverflowH.tsx","../../src/UNSAFE_TabBarCommon/OverflowTabBarItem.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates. All rights reserved.\n * https://www.oracle.com/contracts/docs/cloud_csa_online_v062223_us_eng.pdf?download=false&er=221886\n * @ignore\n */\n// DO NOT MODIFY THIS FILE MANUALLY!\n// This file is automatically generated based on the corresponding SVG image in\n// the packages/oraclejet-preact/resources/icons folder.\nimport { ComponentProps } from 'preact';\nimport { Icon } from '../../UNSAFE_Icon';\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox' | 'children'>;\nconst SvgOverflowH = (props: Props) => (\n <Icon viewBox=\"0 0 24 24\" {...props}>\n <g fill=\"none\">\n <path\n d=\"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z\"\n fill=\"currentcolor\"\n />\n </g>\n </Icon>\n);\nexport { SvgOverflowH as OverflowH };\n","import { ComponentChild, ComponentProps, createRef } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport {\n NavigationListItem,\n NavigationList,\n RemovableNavigationListItem,\n FocusableHandle\n} from '../UNSAFE_NavigationList';\nimport { OverflowH } from '../UNSAFE_RedwoodIcons/OverflowH';\nimport { useTabBarContext } from './useTabBarContext';\nimport { Dropdown } from '../UNSAFE_Dropdown';\nimport { Sheet } from '../UNSAFE_Sheet';\nimport { BaseTabBarItem } from './BaseTabBarItem';\nimport { styles } from './themes/OverflowTabBarItemStyles.css';\nimport { TabBarItem } from './TabBarItem';\n\nexport type OverflowSelectionDetail<K> = {\n value: K;\n};\n\nexport type CloseDetail = {\n /**\n * dismissed represents dismissing the DropDown\n */\n reason: 'dismissed' | 'itemAction' | 'outsideMousedown';\n};\n\nexport type Item<K extends string | number> = Omit<\n ComponentProps<typeof TabBarItem<K>>,\n 'testId' | 'aria-controls'\n> & {\n isRemovable?: boolean;\n /**\n * Accepts the tabpanel element's ID associated with the tab item\n **/\n tabPanelId?: string;\n};\n\nexport type OverflowTabBarItemProps<K extends string | number> = {\n /**\n * Key of the TabBarItem\n */\n overflowItemKey: K;\n /**\n * Whether to open the popup\n */\n isOpen: boolean;\n /**\n * Property that triggers a callback when DropDown is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n /**\n * The icon of the OverflowTabBarItem\n */\n icon?: ComponentChild;\n /**\n * The content to be rendered inside the Badge component.\n */\n badge?: string;\n /**\n * An array of data used by NavigationList to render individual overflow items.\n */\n overflowItems?: Item<K>[];\n};\n\n/**\n * An OverflowTabBarItem renders TabBarItems in a device appropriate popup. OverflowTabBarItem is used internally in an OverflowTabBar.\n */\n\nexport function OverflowTabBarItem<K extends string | number>({\n overflowItemKey,\n icon,\n badge,\n overflowItems,\n isOpen,\n onClose\n}: OverflowTabBarItemProps<K>) {\n const { selection, showFocusRing, isEdgeBottom, onSelect, onRemove, layout } = useTabBarContext();\n\n const isPointerSelection = useRef<boolean>(false);\n\n const overflowTabBarItemRef = useRef<HTMLDivElement>(null);\n const navigationListRef = createRef<FocusableHandle>();\n\n const handleSelectionChange = useCallback<\n Required<ComponentProps<typeof NavigationList>>['onSelectionChange']\n >(\n (detail: { value: string | number; reason?: 'pointer' | 'keyboard' }) => {\n if (detail.reason === 'pointer') {\n isPointerSelection.current = true;\n }\n onSelect?.({ value: detail.value });\n onClose?.({ reason: 'itemAction' });\n },\n [onSelect, onClose]\n );\n\n const handleDropdownClose = useCallback(\n (e: CloseDetail) => {\n onClose?.({ reason: e.reason });\n },\n [onClose]\n );\n\n const handleSheetClose = useCallback(() => {\n onClose?.({ reason: 'dismissed' });\n }, [onClose]);\n\n //When NavigationList steals focus the app resets it. Not always would it be reset to\n //parent of OverflowTabBarItem. Though currentKey would be correct, but focusRing would would not be visible\n //Hence we check for isPointerSelection.current\n\n const focusRingRequirement = showFocusRing && !isPointerSelection.current && !getIsMobile();\n\n const overflowContainsKey = (searchKey: K) => {\n return overflowItems?.find((item) => item.itemKey === searchKey) != null;\n };\n\n const currentPanelId = overflowItems?.find((item) => item.itemKey === selection)?.tabPanelId;\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const isSelected = selection !== undefined && overflowContainsKey(selection as K);\n\n //instead of specifying flex: '1 0 auto' in cssProps var\n const styleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n ]);\n const flexDimensions = styleInterpolations({\n flex: layout === 'stretch' ? '1 0 auto' : '0 0 auto'\n });\n\n const navContainerClasses = classNames([styles.navContainerBase]);\n\n const navContainerRef = useRef<HTMLDivElement>(null);\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n navigationListRef.current?.focus();\n }\n },\n [navigationListRef]\n );\n const getNavigationList = useCallback(() => {\n return (\n <div onKeyDown={handleKeyDown} tabIndex={0} ref={navContainerRef} class={navContainerClasses}>\n <NavigationList\n ref={navigationListRef}\n selection={selection}\n onSelectionChange={handleSelectionChange}\n onRemove={onRemove}>\n {overflowItems?.map((item) =>\n item.isRemovable ? (\n <RemovableNavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n ) : (\n <NavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n )\n )}\n </NavigationList>\n </div>\n );\n }, [\n handleKeyDown,\n navContainerClasses,\n navigationListRef,\n selection,\n handleSelectionChange,\n onRemove,\n overflowItems\n ]);\n\n return (\n <>\n {overflowItems && overflowItems.length > 0 && (\n <div ref={overflowTabBarItemRef} style={flexDimensions}>\n <BaseTabBarItem\n aria-controls={currentPanelId}\n itemKey={overflowItemKey}\n label={translations.overflowItemLabel()}\n icon={icon ? icon : <OverflowH />}\n badge={badge}\n showFocusRingOverride={focusRingRequirement}\n selectionOverride={isSelected}\n displayOverride={'icons'}\n aria-haspopup={true}\n />\n </div>\n )}\n {getIsMobile() ? (\n <Sheet isOpen={isOpen} onClose={handleSheetClose}>\n {getNavigationList()}\n </Sheet>\n ) : (\n <Dropdown\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={handleDropdownClose}\n placement={isEdgeBottom ? 'top-end' : 'bottom-end'}\n anchorRef={overflowTabBarItemRef}>\n {getNavigationList()}\n </Dropdown>\n )}\n </>\n );\n}\n\nconst getIsMobile = () => {\n const { deviceType } = getClientHints();\n return deviceType === 'phone';\n};\n"],"names":["_jsx","Icon","useTabBarContext","useRef","createRef","useCallback","useTranslationBundle","mergeInterpolations","flexitemInterpolations","classNames","styles","NavigationList","RemovableNavigationListItem","NavigationListItem","_jsxs","_Fragment","BaseTabBarItem","OverflowH","Sheet","Dropdown","getClientHints"],"mappings":";;;;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src/UNSAFE_RedwoodIcons/OverflowH/OverflowH.tsx","../../src/UNSAFE_TabBarCommon/OverflowTabBarItem.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates. All rights reserved.\n * https://www.oracle.com/contracts/docs/cloud_csa_online_v062223_us_eng.pdf?download=false&er=221886\n * @ignore\n */\n// DO NOT MODIFY THIS FILE MANUALLY!\n// This file is automatically generated based on the corresponding SVG image in\n// the packages/oraclejet-preact/resources/icons folder.\nimport { ComponentProps } from 'preact';\nimport { Icon } from '../../UNSAFE_Icon';\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox' | 'children'>;\nconst SvgOverflowH = (props: Props) => (\n <Icon viewBox=\"0 0 24 24\" {...props}>\n <g fill=\"none\">\n <path\n d=\"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z\"\n fill=\"currentcolor\"\n />\n </g>\n </Icon>\n);\nexport { SvgOverflowH as OverflowH };\n","import { ComponentChild, ComponentProps, createRef } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport {\n NavigationListItem,\n NavigationList,\n RemovableNavigationListItem,\n FocusableHandle\n} from '../UNSAFE_NavigationList';\nimport { OverflowH } from '../UNSAFE_RedwoodIcons/OverflowH';\nimport { useTabBarContext } from './useTabBarContext';\nimport { Dropdown } from '../UNSAFE_Dropdown';\nimport { Sheet } from '../UNSAFE_Sheet';\nimport { BaseTabBarItem } from './BaseTabBarItem';\nimport { styles } from './themes/OverflowTabBarItemStyles.css';\nimport { TabBarItem } from './TabBarItem';\n\nexport type OverflowSelectionDetail<K> = {\n value: K;\n};\n\nexport type CloseDetail = {\n /**\n * dismissed represents dismissing the DropDown\n */\n reason: 'dismissed' | 'itemAction' | 'outsideMousedown';\n};\n\nexport type Item<K extends string | number> = Omit<\n ComponentProps<typeof TabBarItem<K>>,\n 'testId' | 'aria-controls'\n> & {\n isRemovable?: boolean;\n /**\n * Accepts the tabpanel element's ID associated with the tab item\n **/\n tabPanelId?: string;\n};\n\nexport type OverflowTabBarItemProps<K extends string | number> = {\n /**\n * Key of the TabBarItem\n */\n overflowItemKey: K;\n /**\n * Whether to open the popup\n */\n isOpen: boolean;\n /**\n * Property that triggers a callback when DropDown is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n /**\n * The icon of the OverflowTabBarItem\n */\n icon?: ComponentChild;\n /**\n * The content to be rendered inside the Badge component.\n */\n badge?: string;\n /**\n * An array of data used by NavigationList to render individual overflow items.\n */\n overflowItems?: Item<K>[];\n};\n\n/**\n * An OverflowTabBarItem renders TabBarItems in a device appropriate popup. OverflowTabBarItem is used internally in an OverflowTabBar.\n */\n\nexport function OverflowTabBarItem<K extends string | number>({\n overflowItemKey,\n icon,\n badge,\n overflowItems,\n isOpen,\n onClose\n}: OverflowTabBarItemProps<K>) {\n const { selection, showFocusRing, isEdgeBottom, onSelect, onRemove, layout } = useTabBarContext();\n\n const isPointerSelection = useRef<boolean>(false);\n\n const overflowTabBarItemRef = useRef<HTMLDivElement>(null);\n const navigationListRef = createRef<FocusableHandle>();\n\n const handleSelectionChange = useCallback<\n Required<ComponentProps<typeof NavigationList>>['onSelectionChange']\n >(\n (detail: { value: string | number; reason?: 'pointer' | 'keyboard' }) => {\n if (detail.reason === 'pointer') {\n isPointerSelection.current = true;\n }\n onSelect?.({ value: detail.value });\n onClose?.({ reason: 'itemAction' });\n },\n [onSelect, onClose]\n );\n\n const handleDropdownClose = useCallback(\n (e: CloseDetail) => {\n onClose?.({ reason: e.reason });\n },\n [onClose]\n );\n\n const handleSheetClose = useCallback(() => {\n onClose?.({ reason: 'dismissed' });\n }, [onClose]);\n\n //When NavigationList steals focus the app resets it. Not always would it be reset to\n //parent of OverflowTabBarItem. Though currentKey would be correct, but focusRing would would not be visible\n //Hence we check for isPointerSelection.current\n\n const focusRingRequirement = showFocusRing && !isPointerSelection.current && !getIsMobile();\n\n const overflowContainsKey = (searchKey: K) => {\n return overflowItems?.find((item) => item.itemKey === searchKey) != null;\n };\n\n const currentPanelId = overflowItems?.find((item) => item.itemKey === selection)?.tabPanelId;\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const isSelected = selection !== undefined && overflowContainsKey(selection as K);\n\n //instead of specifying flex: '1 0 auto' in cssProps var\n const styleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n ]);\n const flexDimensions = styleInterpolations({\n flex: layout === 'stretch' ? '1 0 auto' : '0 0 auto'\n });\n\n const navContainerClasses = classNames([styles.navContainerBase]);\n\n const navContainerRef = useRef<HTMLDivElement>(null);\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n navigationListRef.current?.focus();\n }\n },\n [navigationListRef]\n );\n const getNavigationList = useCallback(() => {\n return (\n <div onKeyDown={handleKeyDown} tabIndex={0} ref={navContainerRef} class={navContainerClasses}>\n <NavigationList\n ref={navigationListRef}\n selection={selection}\n onSelectionChange={handleSelectionChange}\n onRemove={onRemove}>\n {overflowItems?.map((item) =>\n item.isRemovable ? (\n <RemovableNavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n ) : (\n <NavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n )\n )}\n </NavigationList>\n </div>\n );\n }, [\n handleKeyDown,\n navContainerClasses,\n navigationListRef,\n selection,\n handleSelectionChange,\n onRemove,\n overflowItems\n ]);\n\n return (\n <>\n {overflowItems && overflowItems.length > 0 && (\n <div ref={overflowTabBarItemRef} style={flexDimensions}>\n <BaseTabBarItem\n aria-controls={currentPanelId}\n itemKey={overflowItemKey}\n label={translations.overflowItemLabel()}\n icon={icon ? icon : <OverflowH />}\n badge={badge}\n showFocusRingOverride={focusRingRequirement}\n selectionOverride={isSelected}\n displayOverride={'icons'}\n aria-haspopup={true}\n />\n </div>\n )}\n {getIsMobile() ? (\n <Sheet isOpen={isOpen} onClose={handleSheetClose}>\n {getNavigationList()}\n </Sheet>\n ) : (\n <Dropdown\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={handleDropdownClose}\n placement={isEdgeBottom ? 'top-end' : 'bottom-end'}\n anchorRef={overflowTabBarItemRef}>\n {getNavigationList()}\n </Dropdown>\n )}\n </>\n );\n}\n\nconst getIsMobile = () => {\n const { deviceType } = getClientHints();\n return deviceType === 'phone';\n};\n"],"names":["_jsx","Icon","useTabBarContext","useRef","createRef","useCallback","useTranslationBundle","mergeInterpolations","flexitemInterpolations","classNames","styles","NavigationList","RemovableNavigationListItem","NavigationListItem","_jsxs","_Fragment","BaseTabBarItem","OverflowH","Sheet","Dropdown","getClientHints"],"mappings":";;;;;;;;;;;;;;;;;;;;AAYA,MAAM,YAAY,GAAG,CAAC,KAAY,MAChCA,cAAA,CAACC,SAAI,EAAC,EAAA,OAAO,EAAC,WAAW,KAAK,KAAK,EAAA,QAAA,EACjCD,cAAG,CAAA,GAAA,EAAA,EAAA,IAAI,EAAC,MAAM,EACZ,QAAA,EAAAA,cAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,sGAAsG,EACxG,IAAI,EAAC,cAAc,EAAA,CACnB,EACA,CAAA,EAAA,CACC,CACR;;ACmDD;;AAEG;AAEa,SAAA,kBAAkB,CAA4B,EAC5D,eAAe,E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AAiB,EAAE,EACvC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAGhB,eAACiB,YAAS,EAAA,EAAA,CAAG,EACjC,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,oBAAoB,EAC3C,iBAAiB,EAAE,UAAU,EAC7B,eAAe,EAAE,OAAO,EAAA,eAAA,EACT,IAAI,EAAA,CACnB,EACE,CAAA,CACP,EACA,WAAW,EAAE,IACZjB,cAAA,CAACkB,WAAK,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAC7C,QAAA,EAAA,iBAAiB,EAAE,EAAA,CACd,KAERlB,cAAA,CAACmB,iBAAQ,EACP,EAAA,YAAY,EAAC,gBAAgB,EAC7B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,YAAY,GAAG,SAAS,GAAG,YAAY,EAClD,SAAS,EAAE,qBAAqB,EAC/B,QAAA,EAAA,iBAAiB,EAAE,EAAA,CACX,CACZ,CAAA,EAAA,CACA,EACH;AACJ,CAAC;AAED,MAAM,WAAW,GAAG,MAAK;AACvB,IAAA,MAAM,EAAE,UAAU,EAAE,GAAGC,0BAAc,EAAE,CAAC;IACxC,OAAO,UAAU,KAAK,OAAO,CAAC;AAChC,CAAC;;;;"}
@@ -2,8 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  var jsxRuntime = require('preact/jsx-runtime');
5
- var BaseNavigationListItem = require('./BaseNavigationListItem-62f24d1b.js');
6
- var useNavigationListItem = require('./useNavigationListItem-0a5c6a11.js');
5
+ var BaseNavigationListItem = require('./BaseNavigationListItem-4b28f14e.js');
7
6
  var Close = require('./Close-031ab06e.js');
8
7
  var hooks = require('preact/hooks');
9
8
  var useHover = require('./useHover-c099039f.js');
@@ -11,7 +10,7 @@ var useTranslationBundle = require('./useTranslationBundle-6b0281a9.js');
11
10
  var EmbeddedIconButton = require('./EmbeddedIconButton-66cfd9e2.js');
12
11
 
13
12
  function RemovableNavigationListItem({ itemKey, label, badge, metadata, severity }) {
14
- const { selection, currentKey, onRemove } = useNavigationListItem.useNavigationListContext();
13
+ const { selection, currentKey, onRemove } = BaseNavigationListItem.useNavigationListContext();
15
14
  const isSelected = selection === itemKey;
16
15
  const isCurrent = currentKey === itemKey;
17
16
  const handleRemove = hooks.useCallback(() => {
@@ -24,4 +23,4 @@ function RemovableNavigationListItem({ itemKey, label, badge, metadata, severity
24
23
  }
25
24
 
26
25
  exports.RemovableNavigationListItem = RemovableNavigationListItem;
27
- //# sourceMappingURL=RemovableNavigationListItem-1235bf1c.js.map
26
+ //# sourceMappingURL=RemovableNavigationListItem-727e53e8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemovableNavigationListItem-1235bf1c.js","sources":["../../src/UNSAFE_NavigationListCommon/RemovableNavigationListItem.tsx"],"sourcesContent":["import { BaseNavigationListItem, BaseNavigationListItemProps } from './BaseNavigationListItem';\nimport { useNavigationListContext } from './useNavigationListContext';\nimport { Close } from '../UNSAFE_RedwoodIcons/Close';\nimport { EmbeddedIconButton } from '../PRIVATE_EmbeddedIconButton';\nimport { useCallback } from 'preact/hooks';\nimport { useHover } from '#hooks/UNSAFE_useHover';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\n\ntype RemovableNavigationListItemProps<K extends string | number> = Omit<\n BaseNavigationListItemProps<K>,\n 'removeIcon'\n>;\n\nexport function RemovableNavigationListItem<K extends string | number>({\n itemKey,\n label,\n badge,\n metadata,\n severity\n}: RemovableNavigationListItemProps<K>) {\n const { selection, currentKey, onRemove } = useNavigationListContext();\n const isSelected = selection === itemKey;\n const isCurrent = currentKey === itemKey;\n\n const handleRemove = useCallback(() => {\n onRemove?.({ value: itemKey as K });\n }, [onRemove, itemKey]);\n\n const { hoverProps, isHover } = useHover({});\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n //instead of specifying flex: '1 0 auto' in cssProps var\n return (\n <div {...hoverProps}>\n <BaseNavigationListItem\n itemKey={itemKey}\n label={label}\n badge={badge}\n metadata={metadata}\n severity={severity}\n removeIcon={\n <span data-oj-navigationlist-item-remove-icon={true}>\n <EmbeddedIconButton\n aria-label={translations.tabBarNavigationList_removeCueText()}\n size=\"xs\"\n onAction={handleRemove}>\n {(isHover || isSelected || isCurrent) && <Close />}\n </EmbeddedIconButton>\n </span>\n }\n />\n </div>\n );\n}\n"],"names":["useNavigationListContext","useCallback","useHover","useTranslationBundle","_jsx","BaseNavigationListItem","EmbeddedIconButton","Close"],"mappings":";;;;;;;;;;;;AAcgB,SAAA,2BAA2B,CAA4B,EACrE,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EAC4B,EAAA;IACpC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAGA,8CAAwB,EAAE,CAAC;AACvE,IAAA,MAAM,UAAU,GAAG,SAAS,KAAK,OAAO,CAAC;AACzC,IAAA,MAAM,SAAS,GAAG,UAAU,KAAK,OAAO,CAAC;AAEzC,IAAA,MAAM,YAAY,GAAGC,iBAAW,CAAC,MAAK;QACpC,QAAQ,GAAG,EAAE,KAAK,EAAE,OAAY,EAAE,CAAC,CAAC;AACtC,KAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAExB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAGC,iBAAQ,CAAC,EAAE,CAAC,CAAC;AAE7C,IAAA,MAAM,YAAY,GAAGC,yCAAoB,CAAa,0BAA0B,CAAC,CAAC;;AAGlF,IAAA,QACEC,cAAA,CAAA,KAAA,EAAA,EAAA,GAAS,UAAU,EAAA,QAAA,EACjBA,cAAC,CAAAC,6CAAsB,EACrB,EAAA,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EACRD,oEAA+C,IAAI,EAAA,QAAA,EACjDA,cAAC,CAAAE,qCAAkB,EACL,EAAA,YAAA,EAAA,YAAY,CAAC,kCAAkC,EAAE,EAC7D,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,YAAY,EACrB,QAAA,EAAA,CAAC,OAAO,IAAI,UAAU,IAAI,SAAS,KAAKF,cAAA,CAACG,cAAK,EAAA,EAAA,CAAG,EAC/B,CAAA,EAAA,CAChB,EAET,CAAA,EAAA,CACE,EACN;AACJ;;;;"}
1
+ {"version":3,"file":"RemovableNavigationListItem-727e53e8.js","sources":["../../src/UNSAFE_NavigationListCommon/RemovableNavigationListItem.tsx"],"sourcesContent":["import { BaseNavigationListItem, BaseNavigationListItemProps } from './BaseNavigationListItem';\nimport { useNavigationListContext } from './useNavigationListContext';\nimport { Close } from '../UNSAFE_RedwoodIcons/Close';\nimport { EmbeddedIconButton } from '../PRIVATE_EmbeddedIconButton';\nimport { useCallback } from 'preact/hooks';\nimport { useHover } from '#hooks/UNSAFE_useHover';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\n\ntype RemovableNavigationListItemProps<K extends string | number> = Omit<\n BaseNavigationListItemProps<K>,\n 'removeIcon'\n>;\n\nexport function RemovableNavigationListItem<K extends string | number>({\n itemKey,\n label,\n badge,\n metadata,\n severity\n}: RemovableNavigationListItemProps<K>) {\n const { selection, currentKey, onRemove } = useNavigationListContext();\n const isSelected = selection === itemKey;\n const isCurrent = currentKey === itemKey;\n\n const handleRemove = useCallback(() => {\n onRemove?.({ value: itemKey as K });\n }, [onRemove, itemKey]);\n\n const { hoverProps, isHover } = useHover({});\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n //instead of specifying flex: '1 0 auto' in cssProps var\n return (\n <div {...hoverProps}>\n <BaseNavigationListItem\n itemKey={itemKey}\n label={label}\n badge={badge}\n metadata={metadata}\n severity={severity}\n removeIcon={\n <span data-oj-navigationlist-item-remove-icon={true}>\n <EmbeddedIconButton\n aria-label={translations.tabBarNavigationList_removeCueText()}\n size=\"xs\"\n onAction={handleRemove}>\n {(isHover || isSelected || isCurrent) && <Close />}\n </EmbeddedIconButton>\n </span>\n }\n />\n </div>\n );\n}\n"],"names":["useNavigationListContext","useCallback","useHover","useTranslationBundle","_jsx","BaseNavigationListItem","EmbeddedIconButton","Close"],"mappings":";;;;;;;;;;;AAcgB,SAAA,2BAA2B,CAA4B,EACrE,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EAC4B,EAAA;IACpC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAGA,+CAAwB,EAAE,CAAC;AACvE,IAAA,MAAM,UAAU,GAAG,SAAS,KAAK,OAAO,CAAC;AACzC,IAAA,MAAM,SAAS,GAAG,UAAU,KAAK,OAAO,CAAC;AAEzC,IAAA,MAAM,YAAY,GAAGC,iBAAW,CAAC,MAAK;QACpC,QAAQ,GAAG,EAAE,KAAK,EAAE,OAAY,EAAE,CAAC,CAAC;AACtC,KAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAExB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAGC,iBAAQ,CAAC,EAAE,CAAC,CAAC;AAE7C,IAAA,MAAM,YAAY,GAAGC,yCAAoB,CAAa,0BAA0B,CAAC,CAAC;;AAGlF,IAAA,QACEC,cAAA,CAAA,KAAA,EAAA,EAAA,GAAS,UAAU,EAAA,QAAA,EACjBA,cAAC,CAAAC,6CAAsB,EACrB,EAAA,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EACRD,oEAA+C,IAAI,EAAA,QAAA,EACjDA,cAAC,CAAAE,qCAAkB,EACL,EAAA,YAAA,EAAA,YAAY,CAAC,kCAAkC,EAAE,EAC7D,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,YAAY,EACrB,QAAA,EAAA,CAAC,OAAO,IAAI,UAAU,IAAI,SAAS,KAAKF,cAAA,CAACG,cAAK,EAAA,EAAA,CAAG,EAC/B,CAAA,EAAA,CAChB,EAET,CAAA,EAAA,CACE,EACN;AACJ;;;;"}
@@ -6,7 +6,7 @@ var preact = require('preact');
6
6
  var hooks = require('preact/hooks');
7
7
  var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
8
8
  var LiveRegion = require('./LiveRegion-3bc583c6.js');
9
- var TabBar = require('./TabBar-d9f6d3c3.js');
9
+ var TabBar = require('./TabBar-c13ce35f.js');
10
10
  var mergeInterpolations = require('./mergeInterpolations-6727b536.js');
11
11
  var flexitem = require('./flexitem-fee13e26.js');
12
12
  var collectionUtils = require('./collectionUtils-1535080e.js');
@@ -79,4 +79,4 @@ function ReorderableTabBar({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLab
79
79
  }
80
80
 
81
81
  exports.ReorderableTabBar = ReorderableTabBar;
82
- //# sourceMappingURL=ReorderableTabBar-49f32413.js.map
82
+ //# sourceMappingURL=ReorderableTabBar-ded69f11.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReorderableTabBar-49f32413.js","sources":["../../src/UNSAFE_ReorderableTabBar/ReorderableTabBarItem.tsx","../../src/UNSAFE_ReorderableTabBar/ReorderableTabBar.tsx"],"sourcesContent":["import { useRef, useCallback } from 'preact/hooks';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { getKey } from '../utils/PRIVATE_collectionUtils';\nimport { useReorderableItem } from '../hooks/PRIVATE_useReorderable';\nimport { ReorderableItemProps } from '../UNSAFE_Collection/Reorderable.types';\nimport { useTabBarContext } from '../UNSAFE_TabBar';\nimport { styles } from './themes/ReorderableTabBarItemStyles.css';\n\nexport const ITEM_SELECTOR = '[role=\"tab\"]';\n\ntype ReorderableTabBarItem<K extends string | number> = ReorderableItemProps<K> & {\n layout: 'stretch' | 'condense' | undefined;\n};\n\n/**\n * A private item that will be used by ReorderableTabBar, location TBD (could be moved to PRIVATE_TabBar)\n */\nexport function ReorderableTabBarItem<K extends string | number>({\n children,\n dragKey,\n setDragKey,\n onReorder,\n layout,\n rootRef\n}: ReorderableTabBarItem<K>) {\n const tabBarItemRef = useRef<HTMLDivElement | null>(null);\n const getItem = useCallback(\n () => tabBarItemRef?.current?.querySelector(ITEM_SELECTOR) as HTMLElement,\n []\n );\n const setTransferData = useCallback(\n (event: DragEvent) => {\n event.dataTransfer?.setData('text/tabbar-item-key', getKey(getItem()) + '');\n },\n [getItem]\n );\n\n const { currentKey } = useTabBarContext();\n const { rootProps, isDragged, overlayZoneBeforeProps, overlayZoneAfterProps } =\n useReorderableItem({\n currentKey: currentKey as K,\n isDisabled: onReorder ? false : true,\n draggable: onReorder ? true : false,\n dragKey,\n setDragKey,\n onReorder,\n rootRef,\n ref: tabBarItemRef,\n getItem,\n setTransferData,\n itemStyles: styles,\n itemSelector: ITEM_SELECTOR\n });\n\n //instead of specifying flex: '1 0 auto' in style\n const styleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n ]);\n const flexDimensions = styleInterpolations({\n flex: layout === 'stretch' ? '1 0 auto' : '0 0 auto'\n });\n\n return (\n <div {...rootProps} style={flexDimensions}>\n {children}\n {!isDragged && dragKey && (\n <>\n <div {...overlayZoneBeforeProps}></div>\n <div {...overlayZoneAfterProps}></div>\n </>\n )}\n </div>\n );\n}\n","import { toChildArray } from 'preact';\nimport { useRef, useState } from 'preact/hooks';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { TabBar, TabBarProps } from '../UNSAFE_TabBar';\nimport { ReorderableTabBarItem, ITEM_SELECTOR } from './ReorderableTabBarItem';\nimport { ReorderableContext, useReorderable } from '../hooks/PRIVATE_useReorderable';\nimport { ReorderProps } from '../UNSAFE_Collection/Reorderable.types';\n\nexport type ReorderableTabBarProps<K extends string | number> = Omit<\n TabBarProps<K>,\n 'aria-describedby'\n> &\n ReorderProps<K> &\n TestIdProps;\n\n/**\n * A component that allows reordering of tabs within a TabBar.\n */\nexport function ReorderableTabBar<K extends string | number>({\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n children,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n onSelect,\n onRemove,\n onReorder,\n testId\n}: ReorderableTabBarProps<K>) {\n const rootRef = useRef<HTMLDivElement>(null);\n const [dragKey, setDragKey] = useState<K | undefined>(undefined);\n\n const displayStackProps = {\n display: display\n };\n const displayNonStackProps = {\n display: display,\n size: size\n };\n const displayProps = display === 'stacked' ? displayStackProps : displayNonStackProps;\n\n const {\n reorderProps,\n reorderContext,\n reorderInstructionsId,\n reorderStatus,\n reorderInstructions\n } = useReorderable({\n onReorder,\n rootRef,\n itemSelector: ITEM_SELECTOR\n });\n\n return (\n <div ref={rootRef} {...reorderProps}>\n <ReorderableContext.Provider value={reorderContext}>\n <TabBar\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n layout={layout}\n edge={edge}\n selection={selection}\n onSelect={onSelect}\n onRemove={onRemove}\n testId={testId}\n {...displayProps}\n aria-describedby={reorderInstructionsId}>\n {toChildArray(children).map((child) => {\n return (\n <ReorderableTabBarItem\n dragKey={dragKey}\n setDragKey={setDragKey}\n onReorder={onReorder}\n layout={layout}\n rootRef={rootRef}>\n {child}\n </ReorderableTabBarItem>\n );\n })}\n </TabBar>\n </ReorderableContext.Provider>\n <span id={reorderInstructionsId}>\n <HiddenAccessible>{reorderInstructions}</HiddenAccessible>\n </span>\n <LiveRegion>{reorderStatus}</LiveRegion>\n </div>\n );\n}\n"],"names":["useRef","useCallback","getKey","useTabBarContext","useReorderableItem","styles","mergeInterpolations","flexitemInterpolations","_jsxs","_Fragment","_jsx","useState","useReorderable","ReorderableContext","TabBar","toChildArray","HiddenAccessible","LiveRegion"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,aAAa,GAAG,cAAc,CAAC;AAM5C;;AAEG;AACa,SAAA,qBAAqB,CAA4B,EAC/D,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,MAAM,EACN,OAAO,EACkB,EAAA;AACzB,IAAA,MAAM,aAAa,GAAGA,YAAM,CAAwB,IAAI,CAAC,CAAC;AAC1D,IAAA,MAAM,OAAO,GAAGC,iBAAW,CACzB,MAAM,aAAa,EAAE,OAAO,EAAE,aAAa,CAAC,aAAa,CAAgB,EACzE,EAAE,CACH,CAAC;AACF,IAAA,MAAM,eAAe,GAAGA,iBAAW,CACjC,CAAC,KAAgB,KAAI;AACnB,QAAA,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC,sBAAsB,EAAEC,sBAAM,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;AAC9E,KAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAC;AAEF,IAAA,MAAM,EAAE,UAAU,EAAE,GAAGC,iCAAgB,EAAE,CAAC;IAC1C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,GAC3EC,qCAAkB,CAAC;AACjB,QAAA,UAAU,EAAE,UAAe;QAC3B,UAAU,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI;QACpC,SAAS,EAAE,SAAS,GAAG,IAAI,GAAG,KAAK;QACnC,OAAO;QACP,UAAU;QACV,SAAS;QACT,OAAO;AACP,QAAA,GAAG,EAAE,aAAa;QAClB,OAAO;QACP,eAAe;AACf,QAAA,UAAU,EAAEC,sEAAM;AAClB,QAAA,YAAY,EAAE,aAAa;AAC5B,KAAA,CAAC,CAAC;;IAGL,MAAM,mBAA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ar-ded69f11.js","sources":["../../src/UNSAFE_ReorderableTabBar/ReorderableTabBarItem.tsx","../../src/UNSAFE_ReorderableTabBar/ReorderableTabBar.tsx"],"sourcesContent":["import { useRef, useCallback } from 'preact/hooks';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { getKey } from '../utils/PRIVATE_collectionUtils';\nimport { useReorderableItem } from '../hooks/PRIVATE_useReorderable';\nimport { ReorderableItemProps } from '../UNSAFE_Collection/Reorderable.types';\nimport { useTabBarContext } from '../UNSAFE_TabBar';\nimport { styles } from './themes/ReorderableTabBarItemStyles.css';\n\nexport const ITEM_SELECTOR = '[role=\"tab\"]';\n\ntype ReorderableTabBarItem<K extends string | number> = ReorderableItemProps<K> & {\n layout: 'stretch' | 'condense' | undefined;\n};\n\n/**\n * A private item that will be used by ReorderableTabBar, location TBD (could be moved to PRIVATE_TabBar)\n */\nexport function ReorderableTabBarItem<K extends string | number>({\n children,\n dragKey,\n setDragKey,\n onReorder,\n layout,\n rootRef\n}: ReorderableTabBarItem<K>) {\n const tabBarItemRef = useRef<HTMLDivElement | null>(null);\n const getItem = useCallback(\n () => tabBarItemRef?.current?.querySelector(ITEM_SELECTOR) as HTMLElement,\n []\n );\n const setTransferData = useCallback(\n (event: DragEvent) => {\n event.dataTransfer?.setData('text/tabbar-item-key', getKey(getItem()) + '');\n },\n [getItem]\n );\n\n const { currentKey } = useTabBarContext();\n const { rootProps, isDragged, overlayZoneBeforeProps, overlayZoneAfterProps } =\n useReorderableItem({\n currentKey: currentKey as K,\n isDisabled: onReorder ? false : true,\n draggable: onReorder ? true : false,\n dragKey,\n setDragKey,\n onReorder,\n rootRef,\n ref: tabBarItemRef,\n getItem,\n setTransferData,\n itemStyles: styles,\n itemSelector: ITEM_SELECTOR\n });\n\n //instead of specifying flex: '1 0 auto' in style\n const styleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n ]);\n const flexDimensions = styleInterpolations({\n flex: layout === 'stretch' ? '1 0 auto' : '0 0 auto'\n });\n\n return (\n <div {...rootProps} style={flexDimensions}>\n {children}\n {!isDragged && dragKey && (\n <>\n <div {...overlayZoneBeforeProps}></div>\n <div {...overlayZoneAfterProps}></div>\n </>\n )}\n </div>\n );\n}\n","import { toChildArray } from 'preact';\nimport { useRef, useState } from 'preact/hooks';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { TabBar, TabBarProps } from '../UNSAFE_TabBar';\nimport { ReorderableTabBarItem, ITEM_SELECTOR } from './ReorderableTabBarItem';\nimport { ReorderableContext, useReorderable } from '../hooks/PRIVATE_useReorderable';\nimport { ReorderProps } from '../UNSAFE_Collection/Reorderable.types';\n\nexport type ReorderableTabBarProps<K extends string | number> = Omit<\n TabBarProps<K>,\n 'aria-describedby'\n> &\n ReorderProps<K> &\n TestIdProps;\n\n/**\n * A component that allows reordering of tabs within a TabBar.\n */\nexport function ReorderableTabBar<K extends string | number>({\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n children,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n onSelect,\n onRemove,\n onReorder,\n testId\n}: ReorderableTabBarProps<K>) {\n const rootRef = useRef<HTMLDivElement>(null);\n const [dragKey, setDragKey] = useState<K | undefined>(undefined);\n\n const displayStackProps = {\n display: display\n };\n const displayNonStackProps = {\n display: display,\n size: size\n };\n const displayProps = display === 'stacked' ? displayStackProps : displayNonStackProps;\n\n const {\n reorderProps,\n reorderContext,\n reorderInstructionsId,\n reorderStatus,\n reorderInstructions\n } = useReorderable({\n onReorder,\n rootRef,\n itemSelector: ITEM_SELECTOR\n });\n\n return (\n <div ref={rootRef} {...reorderProps}>\n <ReorderableContext.Provider value={reorderContext}>\n <TabBar\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n layout={layout}\n edge={edge}\n selection={selection}\n onSelect={onSelect}\n onRemove={onRemove}\n testId={testId}\n {...displayProps}\n aria-describedby={reorderInstructionsId}>\n {toChildArray(children).map((child) => {\n return (\n <ReorderableTabBarItem\n dragKey={dragKey}\n setDragKey={setDragKey}\n onReorder={onReorder}\n layout={layout}\n rootRef={rootRef}>\n {child}\n </ReorderableTabBarItem>\n );\n })}\n </TabBar>\n </ReorderableContext.Provider>\n <span id={reorderInstructionsId}>\n <HiddenAccessible>{reorderInstructions}</HiddenAccessible>\n </span>\n <LiveRegion>{reorderStatus}</LiveRegion>\n </div>\n );\n}\n"],"names":["useRef","useCallback","getKey","useTabBarContext","useReorderableItem","styles","mergeInterpolations","flexitemInterpolations","_jsxs","_Fragment","_jsx","useState","useReorderable","ReorderableContext","TabBar","toChildArray","HiddenAccessible","LiveRegion"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,aAAa,GAAG,cAAc,CAAC;AAM5C;;AAEG;AACa,SAAA,qBAAqB,CAA4B,EAC/D,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,MAAM,EACN,OAAO,EACkB,EAAA;AACzB,IAAA,MAAM,aAAa,GAAGA,YAAM,CAAwB,IAAI,CAAC,CAAC;AAC1D,IAAA,MAAM,OAAO,GAAGC,iBAAW,CACzB,MAAM,aAAa,EAAE,OAAO,EAAE,aAAa,CAAC,aAAa,CAAgB,EACzE,EAAE,CACH,CAAC;AACF,IAAA,MAAM,eAAe,GAAGA,iBAAW,CACjC,CAAC,KAAgB,KAAI;AACnB,QAAA,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC,sBAAsB,EAAEC,sBAAM,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;AAC9E,KAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAC;AAEF,IAAA,MAAM,EAAE,UAAU,EAAE,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ACEL,cAAC,CAAA,qBAAqB,EACpB,EAAA,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EACf,QAAA,EAAA,KAAK,EACgB,CAAA,EACxB;qBACH,CAAC,GACK,EACmB,CAAA,EAC9BA,yBAAM,EAAE,EAAE,qBAAqB,EAAA,QAAA,EAC7BA,cAAC,CAAAM,iCAAgB,cAAE,mBAAmB,EAAA,CAAoB,EACrD,CAAA,EACPN,cAAC,CAAAO,qBAAU,cAAE,aAAa,EAAA,CAAc,CACpC,EAAA,CAAA,EACN;AACJ;;;;"}
@@ -22,11 +22,6 @@ require('preact');
22
22
  require('./hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js');
23
23
  require('./tooltipUtils-7857f698.js');
24
24
 
25
- require('./NavigationList-9e2a1115.js');
26
- require('./useNavigationListItem-0a5c6a11.js');
27
- require('./UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js');
28
-
29
- require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js');
30
25
  require('./Floating-43033e19.js');
31
26
 
32
27
  require('./keyboardUtils-f835e1ee.js');
@@ -70,4 +65,4 @@ const TabBar = compat.forwardRef(({ children, layout = 'stretch', display = 'sta
70
65
  });
71
66
 
72
67
  exports.TabBar = TabBar;
73
- //# sourceMappingURL=TabBar-d9f6d3c3.js.map
68
+ //# sourceMappingURL=TabBar-c13ce35f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabBar-d9f6d3c3.js","sources":["../../src/UNSAFE_TabBar/TabBar.tsx"],"sourcesContent":["import { ComponentChildren, Ref } from 'preact';\nimport { useImperativeHandle, useRef } from 'preact/hooks';\nimport { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/TabBarStyles.css';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useTabBar } from '../hooks/PRIVATE_useTabBar';\nimport { forwardRef } from 'preact/compat';\nexport {\n TabBarItem,\n RemovableTabBarItem,\n OverflowTabBarItem,\n TabBarContext,\n useTabBarContext,\n TabBarLayout\n} from '../UNSAFE_TabBarCommon';\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\n/**\n * type for payload of current key change event handler\n */\nexport type CurrentKeyDetail<K> = {\n value: K;\n};\n\n/**\n * type for payload of selection change event handler\n */\ntype SelectionDetail<K> = {\n value: K;\n};\n\n/**\n * type for payload of remove event handler\n */\ntype RemoveDetail<K> = {\n value: K;\n};\n\ntype DisplayProps =\n | {\n /**\n * Controls the content layout of the TabBarItem: 'standard' lays out the contents horizontally,\n *'icons' hides the label,\n */\n display?: 'standard' | 'icons';\n /**\n * The size indicates how tall the TabBarItem is rendered.\n * Note: It is not possible to specify 'size' when 'display=\"stacked\".\n */\n size?: 'md' | 'lg';\n }\n | {\n /**\n *'stacked' stacks the icon on top of the label.\n * Note: It is not possible to specify 'size' when 'display=\"stacked\".\n */\n display?: 'stacked';\n size?: 'never';\n };\n\nexport type TabBarProps<K extends string | number> = DisplayProps & {\n /**\n * A set of TabBarItem(s) that TabBar will hold\n */\n children: ComponentChildren;\n /**\n * Whether to stretch the tab bar items to occupy available space or to condense items\n */\n layout?: 'stretch' | 'condense';\n /**\n * The position of the TabBar. Valid Values: top and bottom.\n * 'top' is used when TabBar is placed on top of content section and the selection\n * indicator would be placed below the TabBarItem.\n * 'bottom' is used when TabBar is placed on bottom of content section and the selection\n * indicator would be placed above the TabBarItem.\n */\n edge?: 'top' | 'bottom';\n /**\n * Key of the selected item.\n */\n selection?: K;\n /**\n * Callback function to handle when user selects a tab.\n * The callback is also invoked when a user selects a tab that is already selected.\n */\n onSelect?: <K extends string | number>(detail: SelectionDetail<K>) => void;\n /**\n * Callback function to handle remove\n */\n onRemove?: <K extends string | number>(detail: RemoveDetail<K>) => void;\n /**\n * Accepts the ID of an element that provides instructions for interaction with the TabBar.\n */\n 'aria-describedby'?: string;\n /**\n * An aria-label which defines a string value that labels this TabBar.\n * Either aria-label or aria-labelledby should be specified in order to make TabBar accessible.\n */\n 'aria-label'?: string;\n\n /**\n * An aria-labelledby which identifies the element(s) that labels this TabBar.\n * Either aria-label or aria-labelledby should be specified in order to make TabBar accessible.\n */\n 'aria-labelledby'?: string;\n};\n/**\n * A tab bar allows navigation between different content sections.\n */\nexport const TabBar = forwardRef(\n <K extends string | number>(\n {\n children,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n onSelect,\n onRemove,\n 'aria-describedby': ariaDescribedBy,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n }: TabBarProps<K> & TestIdProps,\n ref?: Ref<FocusableHandle>\n ) => {\n const rootRef = useRef<HTMLDivElement>(null);\n\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(ref!, () => ({\n focus: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n },\n blur: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n }\n }));\n\n const { rootProps, tabBarContext } = useTabBar({\n class: styles.tabBarBase,\n edge: edge,\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children\n });\n return (\n <TabBarContext.Provider value={tabBarContext}>\n <div\n {...rootProps}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedBy}>\n <TabBarLayout layout={layout} display={display}>\n {children}\n </TabBarLayout>\n </div>\n </TabBarContext.Provider>\n );\n }\n);\n"],"names":["forwardRef","useRef","useImperativeHandle","useTabBar","styles","_jsx","TabBarContext","TabBarLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA;;AAEG;MACU,MAAM,GAAGA,iBAAU,CAC9B,CACE,EACE,QAAQ,EACR,MAAM,GAAG,SAAS,EAClB,OAAO,GAAG,UAAU,EACpB,IAAI,GAAG,IAAI,EACX,IAAI,GAAG,KAAK,EACZ,SAAS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';\nimport { useImperativeHandle, useRef } from 'preact/hooks';\nimport { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/TabBarStyles.css';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useTabBar } from '../hooks/PRIVATE_useTabBar';\nimport { forwardRef } from 'preact/compat';\nexport {\n TabBarItem,\n RemovableTabBarItem,\n OverflowTabBarItem,\n TabBarContext,\n useTabBarContext,\n TabBarLayout\n} from '../UNSAFE_TabBarCommon';\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\n/**\n * type for payload of current key change event handler\n */\nexport type CurrentKeyDetail<K> = {\n value: K;\n};\n\n/**\n * type for payload of selection change event handler\n */\ntype SelectionDetail<K> = {\n value: K;\n};\n\n/**\n * type for payload of remove event handler\n */\ntype RemoveDetail<K> = {\n value: K;\n};\n\ntype DisplayProps =\n | {\n /**\n * Controls the content layout of the TabBarItem: 'standard' lays out the contents horizontally,\n *'icons' hides the label,\n */\n display?: 'standard' | 'icons';\n /**\n * The size indicates how tall the TabBarItem is rendered.\n * Note: It is not possible to specify 'size' when 'display=\"stacked\".\n */\n size?: 'md' | 'lg';\n }\n | {\n /**\n *'stacked' stacks the icon on top of the label.\n * Note: It is not possible to specify 'size' when 'display=\"stacked\".\n */\n display?: 'stacked';\n size?: 'never';\n };\n\nexport type TabBarProps<K extends string | number> = DisplayProps & {\n /**\n * A set of TabBarItem(s) that TabBar will hold\n */\n children: ComponentChildren;\n /**\n * Whether to stretch the tab bar items to occupy available space or to condense items\n */\n layout?: 'stretch' | 'condense';\n /**\n * The position of the TabBar. Valid Values: top and bottom.\n * 'top' is used when TabBar is placed on top of content section and the selection\n * indicator would be placed below the TabBarItem.\n * 'bottom' is used when TabBar is placed on bottom of content section and the selection\n * indicator would be placed above the TabBarItem.\n */\n edge?: 'top' | 'bottom';\n /**\n * Key of the selected item.\n */\n selection?: K;\n /**\n * Callback function to handle when user selects a tab.\n * The callback is also invoked when a user selects a tab that is already selected.\n */\n onSelect?: <K extends string | number>(detail: SelectionDetail<K>) => void;\n /**\n * Callback function to handle remove\n */\n onRemove?: <K extends string | number>(detail: RemoveDetail<K>) => void;\n /**\n * Accepts the ID of an element that provides instructions for interaction with the TabBar.\n */\n 'aria-describedby'?: string;\n /**\n * An aria-label which defines a string value that labels this TabBar.\n * Either aria-label or aria-labelledby should be specified in order to make TabBar accessible.\n */\n 'aria-label'?: string;\n\n /**\n * An aria-labelledby which identifies the element(s) that labels this TabBar.\n * Either aria-label or aria-labelledby should be specified in order to make TabBar accessible.\n */\n 'aria-labelledby'?: string;\n};\n/**\n * A tab bar allows navigation between different content sections.\n */\nexport const TabBar = forwardRef(\n <K extends string | number>(\n {\n children,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n onSelect,\n onRemove,\n 'aria-describedby': ariaDescribedBy,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n }: TabBarProps<K> & TestIdProps,\n ref?: Ref<FocusableHandle>\n ) => {\n const rootRef = useRef<HTMLDivElement>(null);\n\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(ref!, () => ({\n focus: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n },\n blur: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n }\n }));\n\n const { rootProps, tabBarContext } = useTabBar({\n class: styles.tabBarBase,\n edge: edge,\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children\n });\n return (\n <TabBarContext.Provider value={tabBarContext}>\n <div\n {...rootProps}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedBy}>\n <TabBarLayout layout={layout} display={display}>\n {children}\n </TabBarLayout>\n </div>\n </TabBarContext.Provider>\n );\n }\n);\n"],"names":["forwardRef","useRef","useImperativeHandle","useTabBar","styles","_jsx","TabBarContext","TabBarLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA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Q,EAAA,CACI,EACX,CAAA,EAAA,CACiB,EACzB;AACJ,CAAC;;;;"}
@@ -22,11 +22,6 @@ require('preact');
22
22
  require('./hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js');
23
23
  require('./tooltipUtils-7857f698.js');
24
24
 
25
- require('./NavigationList-9e2a1115.js');
26
- require('./useNavigationListItem-0a5c6a11.js');
27
- require('./UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js');
28
-
29
- require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js');
30
25
  require('./Floating-43033e19.js');
31
26
 
32
27
  require('./keyboardUtils-f835e1ee.js');
@@ -80,4 +75,4 @@ const TabBarMixed = compat.forwardRef((props, focusHandleRef) => {
80
75
  });
81
76
 
82
77
  exports.TabBarMixed = TabBarMixed;
83
- //# sourceMappingURL=TabBarMixed-13a02a56.js.map
78
+ //# sourceMappingURL=TabBarMixed-81309400.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabBarMixed-13a02a56.js","sources":["../../src/UNSAFE_TabBarMixed/useTabBarMixed.ts","../../src/UNSAFE_TabBarMixed/TabBarMixed.tsx"],"sourcesContent":["import { ComponentProps, ContextType, RefObject } from 'preact';\nimport type { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\n\nimport { useTabBar } from '../hooks/PRIVATE_useTabBar';\n\ntype TabBarContextValue = ContextType<typeof TabBarContext>;\n\nexport type useTabBarOptions = {\n class?: string;\n display?: TabBarContextValue['display'];\n edge?: 'bottom' | 'top';\n onRemove?: TabBarContextValue['onRemove'];\n onSelect?: TabBarContextValue['onSelect'];\n ref?: RefObject<HTMLDivElement>;\n selection?: TabBarContextValue['selection'];\n size?: TabBarContextValue['size'];\n children?: ComponentProps<typeof TabBarLayout>['children'];\n};\n\n/**\n * A thin wrapper around useTabBar hook\n */\nexport function useTabBarMixed(options: useTabBarOptions) {\n return useTabBar(options);\n}\n","import type { ComponentChildren } from 'preact';\nimport { useRef } from 'preact/hooks';\nimport { Ref } from 'preact';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { TabBarContext } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/TabBarMixedStyles.css';\nimport { useTabBarMixed as useTabBar } from './useTabBarMixed';\n\ntype UseTabBarOptions = Parameters<typeof useTabBar>[0];\n\n/**\n * Component props expected to be pased to **TabBarMixed**.\n *\n * @see {@link TabBarMixed}\n */\ntype TabBarMixedProps<K extends string | number> = {\n /**\n * Component children that will be rendered within the **TabBarMixed**\n * root element.\n *\n * It is expected that **TabBarLayout** and **ConveyorBelt** elements are\n * provided. The same **TabBarItem**, **RemovableTabBarItem**,\n * and **OverflowTabBarItem** elements should also be used.\n */\n children?: ComponentChildren;\n /**\n * Callback fired when a tab item is removed.\n */\n onRemove?: UseTabBarOptions['onRemove'];\n /**\n * Callback fired when a tab item is selected.\n */\n onSelect?: UseTabBarOptions['onSelect'];\n /**\n * The item key of the selected tab item.\n */\n selection?: K;\n /**\n * The height of the the tab bar.\n *\n * @default \"md\"\n */\n size?: UseTabBarOptions['size'];\n /**\n * An aria-label which defines a string value that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-label'?: string;\n\n /**\n * An aria-labelledby which identifies the element(s) that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-labelledby'?: string;\n};\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\n/**\n * A navigation component that enables horizontal navigation between distinct content with a mixture of static and dynamic tabs.\n *\n * @param {TabBarMixedProps} props TabBarMixed component props.\n * @returns {JSX.Element} TabBarMixed component element.\n */\nexport const TabBarMixed = forwardRef(\n <K extends string | number>(\n props: TabBarMixedProps<K>,\n focusHandleRef?: Ref<FocusableHandle>\n ) => {\n const {\n children,\n onRemove,\n onSelect,\n selection,\n size,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n } = props;\n\n const rootRef = useRef<HTMLDivElement>(null);\n\n const { rootProps, tabBarContext } = useTabBar({\n class: styles.tabBarBase,\n edge: 'bottom',\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children\n });\n\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(focusHandleRef!, () => ({\n focus: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n },\n blur: () => {\n if (rootRef.current) {\n rootRef.current.blur();\n }\n }\n }));\n\n return (\n <TabBarContext.Provider value={tabBarContext}>\n <div aria-label={ariaLabel} aria-labelledby={ariaLabelledby} {...rootProps}>\n {children}\n </div>\n </TabBarContext.Provider>\n );\n }\n);\n"],"names":["useTabBar","forwardRef","useRef","styles","useImperativeHandle","_jsx","TabBarContext"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA;;AAEG;AACG,SAAU,cAAc,CAAC,OAAyB,EAAA;AACtD,IAAA,OAAOA,mBAAS,CAAC,OAAO,CAAC,CAAC;AAC5B;;ACqCA;;;;;AAKG;AACU,MAAA,WAAW,GAAGC,iBAAU,CACnC,CACE,KAA0B,EAC1B,cAAqC,KACnC;IACF,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EAClC,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,OAAO,GAAGC,YAAM,CAAiB,IAAI,CAAC,CAAC;AAE7C,IAAA,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAGF,cAAS,CAAC;QAC7C,KAAK,EAAEG,sDAAM,CAAC,UAAU;AACxB,QAAA,IAAI,EAAE,QAAQ;QACd,QAAQ;QACR,QAAQ;AACR,QAAA,GAAG,EAAE,OAAO;QACZ,SAAS;QACT,IAAI;QACJ,QAAQ;AACT,KAAA,CAAC,CAAC;;AAGH,IAAAC,0BAAmB,CAAC,cAAe,EAAE,OAAO;QAC1C,KAAK,EAAE,MAAK;AACV,YAAA,IAAI,OAAO,CAAC,OAAO,EAAE;AACnB,gBAAA,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;aACzB;SACF;QACD,IAAI,EAAE,MAAK;AACT,YAAA,IAAI,OAAO,CAAC,OAAO,EAAE;AACnB,gBAAA,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;aACxB;SACF;AACF,KAAA,CAAC,CAAC,CAAC;IAEJ,QACEC,eAACC,8BAAa,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,aAAa,EAAA,QAAA,EAC1CD,sCAAiB,SAAS,EAAA,iBAAA,EAAmB,cAAc,EAAM,GAAA,SAAS,YACvE,QAAQ,EAAA,CACL,EACiB,CAAA,EACzB;AACJ,CAAC;;;;"}
1
+ {"version":3,"file":"TabBarMixed-81309400.js","sources":["../../src/UNSAFE_TabBarMixed/useTabBarMixed.ts","../../src/UNSAFE_TabBarMixed/TabBarMixed.tsx"],"sourcesContent":["import { ComponentProps, ContextType, RefObject } from 'preact';\nimport type { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\n\nimport { useTabBar } from '../hooks/PRIVATE_useTabBar';\n\ntype TabBarContextValue = ContextType<typeof TabBarContext>;\n\nexport type useTabBarOptions = {\n class?: string;\n display?: TabBarContextValue['display'];\n edge?: 'bottom' | 'top';\n onRemove?: TabBarContextValue['onRemove'];\n onSelect?: TabBarContextValue['onSelect'];\n ref?: RefObject<HTMLDivElement>;\n selection?: TabBarContextValue['selection'];\n size?: TabBarContextValue['size'];\n children?: ComponentProps<typeof TabBarLayout>['children'];\n};\n\n/**\n * A thin wrapper around useTabBar hook\n */\nexport function useTabBarMixed(options: useTabBarOptions) {\n return useTabBar(options);\n}\n","import type { ComponentChildren } from 'preact';\nimport { useRef } from 'preact/hooks';\nimport { Ref } from 'preact';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { TabBarContext } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/TabBarMixedStyles.css';\nimport { useTabBarMixed as useTabBar } from './useTabBarMixed';\n\ntype UseTabBarOptions = Parameters<typeof useTabBar>[0];\n\n/**\n * Component props expected to be pased to **TabBarMixed**.\n *\n * @see {@link TabBarMixed}\n */\ntype TabBarMixedProps<K extends string | number> = {\n /**\n * Component children that will be rendered within the **TabBarMixed**\n * root element.\n *\n * It is expected that **TabBarLayout** and **ConveyorBelt** elements are\n * provided. The same **TabBarItem**, **RemovableTabBarItem**,\n * and **OverflowTabBarItem** elements should also be used.\n */\n children?: ComponentChildren;\n /**\n * Callback fired when a tab item is removed.\n */\n onRemove?: UseTabBarOptions['onRemove'];\n /**\n * Callback fired when a tab item is selected.\n */\n onSelect?: UseTabBarOptions['onSelect'];\n /**\n * The item key of the selected tab item.\n */\n selection?: K;\n /**\n * The height of the the tab bar.\n *\n * @default \"md\"\n */\n size?: UseTabBarOptions['size'];\n /**\n * An aria-label which defines a string value that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-label'?: string;\n\n /**\n * An aria-labelledby which identifies the element(s) that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-labelledby'?: string;\n};\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\n/**\n * A navigation component that enables horizontal navigation between distinct content with a mixture of static and dynamic tabs.\n *\n * @param {TabBarMixedProps} props TabBarMixed component props.\n * @returns {JSX.Element} TabBarMixed component element.\n */\nexport const TabBarMixed = forwardRef(\n <K extends string | number>(\n props: TabBarMixedProps<K>,\n focusHandleRef?: Ref<FocusableHandle>\n ) => {\n const {\n children,\n onRemove,\n onSelect,\n selection,\n size,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n } = props;\n\n const rootRef = useRef<HTMLDivElement>(null);\n\n const { rootProps, tabBarContext } = useTabBar({\n class: styles.tabBarBase,\n edge: 'bottom',\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children\n });\n\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(focusHandleRef!, () => ({\n focus: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n },\n blur: () => {\n if (rootRef.current) {\n rootRef.current.blur();\n }\n }\n }));\n\n return (\n <TabBarContext.Provider value={tabBarContext}>\n <div aria-label={ariaLabel} aria-labelledby={ariaLabelledby} {...rootProps}>\n {children}\n </div>\n </TabBarContext.Provider>\n );\n }\n);\n"],"names":["useTabBar","forwardRef","useRef","styles","useImperativeHandle","_jsx","TabBarContext"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA;;AAEG;AACG,SAAU,cAAc,CAAC,OAAyB,EAAA;AACtD,IAAA,OAAOA,mBAAS,CAAC,OAAO,CAAC,CAAC;AAC5B;;ACqCA;;;;;AAKG;AACU,MAAA,WAAW,GAAGC,iBAAU,CACnC,CACE,KAA0B,EAC1B,cAAqC,KACnC;IACF,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EAClC,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,OAAO,GAAGC,YAAM,CAAiB,IAAI,CAAC,CAAC;AAE7C,IAAA,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAGF,cAAS,CAAC;QAC7C,KAAK,EAAEG,sDAAM,CAAC,UAAU;AACxB,QAAA,IAAI,EAAE,QAAQ;QACd,QAAQ;QACR,QAAQ;AACR,QAAA,GAAG,EAAE,OAAO;QACZ,SAAS;QACT,IAAI;QACJ,QAAQ;AACT,KAAA,CAAC,CAAC;;AAGH,IAAAC,0BAAmB,CAAC,cAAe,EAAE,OAAO;QAC1C,KAAK,EAAE,MAAK;AACV,YAAA,IAAI,OAAO,CAAC,OAAO,EAAE;AACnB,gBAAA,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;aACzB;SACF;QACD,IAAI,EAAE,MAAK;AACT,YAAA,IAAI,OAAO,CAAC,OAAO,EAAE;AACnB,gBAAA,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;aACxB;SACF;AACF,KAAA,CAAC,CAAC,CAAC;IAEJ,QACEC,eAACC,8BAAa,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,aAAa,EAAA,QAAA,EAC1CD,sCAAiB,SAAS,EAAA,iBAAA,EAAmB,cAAc,EAAM,GAAA,SAAS,YACvE,QAAQ,EAAA,CACL,EACiB,CAAA,EACzB;AACJ,CAAC;;;;"}
@@ -6,7 +6,7 @@ var compat = require('preact/compat');
6
6
  require('./FormContext-9452bd30.js');
7
7
  var useFormContext = require('./useFormContext-4c3091dc.js');
8
8
  var FormFieldContext = require('./FormFieldContext-8418dc68.js');
9
- require('preact/hooks');
9
+ var hooks = require('preact/hooks');
10
10
  var useFocusableTextField = require('./useFocusableTextField-2c36840d.js');
11
11
  var Label = require('./Label-47446013.js');
12
12
  var TextFieldInput = require('./TextFieldInput-a2e8dd01.js');
@@ -42,10 +42,27 @@ var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
42
42
 
43
43
  require('./UNSAFE_Popup/themes/redwood/PopupVariants.css.js');
44
44
  var useLengthFilter = require('./useLengthFilter-d4cb6f47.js');
45
- var MaxLengthCounter = require('./MaxLengthCounter-a5370f66.js');
45
+ var classNames = require('./classNames-c14c6ef3.js');
46
+ var usePress = require('./usePress-00deca01.js');
47
+ var useFormFieldContext = require('./useFormFieldContext-20f419ef.js');
48
+
46
49
  var useCurrentValueReducer = require('./useCurrentValueReducer-f37ac024.js');
47
50
  var useSelectableTextField = require('./useSelectableTextField-892b62db.js');
48
51
 
52
+ var hide = 'MaxLengthCounterStyles_hide__7dy9j71';
53
+ var maxLengthCounterBase = 'MaxLengthCounterStyles_maxLengthCounterBase__7dy9j70';
54
+ var spanStyles = 'MaxLengthCounterStyles_spanStyles__7dy9j72';
55
+
56
+ const noop = () => { };
57
+ function MaxLengthCounter({ maxLength, valueLength = 0, onClick }) {
58
+ const { isFocused } = useFormFieldContext.useFormFieldContext();
59
+ // We don't want mousedown on this component to do anything, so prevent the default behavior.
60
+ const killEvent = hooks.useCallback((event) => event.preventDefault(), []);
61
+ const textClasses = classNames.classNames([!isFocused && hide]);
62
+ const { pressProps } = usePress.usePress(onClick ?? noop);
63
+ return (jsxRuntime.jsx("div", { class: maxLengthCounterBase, onMouseDown: killEvent, ...pressProps, children: jsxRuntime.jsxs("span", { class: textClasses, children: [jsxRuntime.jsx("span", { class: spanStyles, children: valueLength }), jsxRuntime.jsx("span", { class: spanStyles, children: "/" }), jsxRuntime.jsx("span", { class: spanStyles, children: maxLength })] }) }));
64
+ }
65
+
49
66
  /**
50
67
  * A text area displays a field that allows a user to enter a multi-line text value.
51
68
  */
@@ -151,11 +168,12 @@ const TextArea = compat.forwardRef(({ 'aria-describedby': ariaDescribedBy, assis
151
168
  return (jsxRuntime.jsx(FormFieldContext.FormFieldContext.Provider, { value: formFieldContext, children: jsxRuntime.jsx(StyledTextField.ReadonlyTextField, { role: "presentation", columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, ref: anchorRef, testId: testId, variant: "textarea", mainContent: mainContent, resize: resize, ...fieldLabelProps }) }));
152
169
  }
153
170
  const hasMaxLength = maxLength !== undefined;
154
- const mainContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TextFieldInput.TextFieldInput, { as: "textarea", "aria-label": ariaLabel, autoComplete: autoComplete, autoFocus: autoFocus, currentCommitValue: currentCommitValue, hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: labelComp !== undefined && labelEdge === 'inside', isRequired: isRequired, inputRef: enabledElementRef, onCommit: onCommitAndDispatch, onInput: onFilteredInput, placeholder: placeholder, role: role, rows: rows, textAlign: textAlign, value: value, ...inputProps }), maxLengthCounter === 'remaining' && hasMaxLength && (jsxRuntime.jsx(MaxLengthCounter.MaxLengthCounter, { maxLength: maxLength, valueLength: valueLength, onClick: onClickCounter })), hasMaxLength && (jsxRuntime.jsx(HiddenAccessible.HiddenAccessible, { id: maxLengthDescribedByIdRef.current, isHidden: true, children: translations.formControl_maxLength({
171
+ const mainContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TextFieldInput.TextFieldInput, { as: "textarea", "aria-label": ariaLabel, autoComplete: autoComplete, autoFocus: autoFocus, currentCommitValue: currentCommitValue, hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: labelComp !== undefined && labelEdge === 'inside', isRequired: isRequired, inputRef: enabledElementRef, onCommit: onCommitAndDispatch, onInput: onFilteredInput, placeholder: placeholder, role: role, rows: rows, textAlign: textAlign, value: value, ...inputProps }), maxLengthCounter === 'remaining' && hasMaxLength && (jsxRuntime.jsx(MaxLengthCounter, { maxLength: maxLength, valueLength: valueLength, onClick: onClickCounter })), hasMaxLength && (jsxRuntime.jsx(HiddenAccessible.HiddenAccessible, { id: maxLengthDescribedByIdRef.current, isHidden: true, children: translations.formControl_maxLength({
155
172
  MAX_LENGTH: `${maxLength}`
156
173
  }) })), hasMaxLength && isFocused && (jsxRuntime.jsx(MaxLengthLiveRegion.MaxLengthLiveRegion, { maxLength: maxLength, valueLength: valueLength, testId: testId + '_remainingChars' }))] }));
157
174
  return (jsxRuntime.jsx(FormFieldContext.FormFieldContext.Provider, { value: formFieldContext, children: jsxRuntime.jsx(TextField.TextField, { mainContent: mainContent, columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, onBlur: focusProps?.onFocusOut, onFocus: focusProps?.onFocusIn, mainFieldRef: anchorRef, resize: resize, testId: testId, ...textFieldProps, ...fieldLabelProps }) }));
158
175
  });
159
176
 
177
+ exports.MaxLengthCounter = MaxLengthCounter;
160
178
  exports.TextArea = TextArea;
161
- //# sourceMappingURL=TextArea-096f18ad.js.map
179
+ //# sourceMappingURL=TextArea-792069d7.js.map