@oracle/oraclejet-preact 20.0.1 → 20.0.3

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 (632) hide show
  1. package/amd/BaseCardView-b8119561.js +2 -0
  2. package/amd/{BaseCardView-16fda4c3.js.map → BaseCardView-b8119561.js.map} +1 -1
  3. package/amd/CardFlexView-aa2f3de8.js +2 -0
  4. package/amd/{CardFlexView-d3eb7373.js.map → CardFlexView-aa2f3de8.js.map} +1 -1
  5. package/amd/CardGridView-85f90c75.js +2 -0
  6. package/amd/{CardGridView-842f70cd.js.map → CardGridView-85f90c75.js.map} +1 -1
  7. package/amd/ColorPicker-141fa49d.js +2 -0
  8. package/amd/{ColorPicker-e3167e4c.js.map → ColorPicker-141fa49d.js.map} +1 -1
  9. package/amd/{InlineSelectSingle-f4438110.js → InlineSelectSingle-87bc8a45.js} +2 -2
  10. package/amd/{InlineSelectSingle-f4438110.js.map → InlineSelectSingle-87bc8a45.js.map} +1 -1
  11. package/amd/{InputColor-51d7e40c.js → InputColor-58e3fce3.js} +2 -2
  12. package/amd/{InputColor-51d7e40c.js.map → InputColor-58e3fce3.js.map} +1 -1
  13. package/amd/InputDatePicker-7227a858.js +2 -0
  14. package/amd/{InputDatePicker-030e345a.js.map → InputDatePicker-7227a858.js.map} +1 -1
  15. package/amd/ListView-2678b2af.js +2 -0
  16. package/amd/{ListView-02a92d18.js.map → ListView-2678b2af.js.map} +1 -1
  17. package/amd/NavigationList-a6bb123d.js +2 -0
  18. package/amd/NavigationList-a6bb123d.js.map +1 -0
  19. package/amd/NavigationListItem-10bf6656.js +2 -0
  20. package/amd/NavigationListItem-10bf6656.js.map +1 -0
  21. package/amd/NavigationListLinkItem-df1826e6.js +2 -0
  22. package/amd/NavigationListLinkItem-df1826e6.js.map +1 -0
  23. package/amd/{OverflowTabBar-5ff68da7.js → OverflowTabBar-f8bf9356.js} +2 -2
  24. package/amd/{OverflowTabBar-5ff68da7.js.map → OverflowTabBar-f8bf9356.js.map} +1 -1
  25. package/amd/OverflowTabBarItem-0aa39512.js +2 -0
  26. package/amd/{OverflowTabBarItem-926b0c8a.js.map → OverflowTabBarItem-0aa39512.js.map} +1 -1
  27. package/amd/PRIVATE_BaseCardView.js +1 -1
  28. package/amd/PRIVATE_SelectCommon.js +1 -1
  29. package/amd/PRIVATE_TableList.js +1 -1
  30. package/amd/RemovableNavigationListItem-60593d4c.js +2 -0
  31. package/amd/{RemovableNavigationListItem-e298c5de.js.map → RemovableNavigationListItem-60593d4c.js.map} +1 -1
  32. package/amd/ReorderableTabBar-19a503c7.js +2 -0
  33. package/amd/{ReorderableTabBar-0c69bfd4.js.map → ReorderableTabBar-19a503c7.js.map} +1 -1
  34. package/amd/{SelectMobileFieldInput-83f56b22.js → SelectMobileFieldInput-4795a794.js} +2 -2
  35. package/amd/{SelectMobileFieldInput-83f56b22.js.map → SelectMobileFieldInput-4795a794.js.map} +1 -1
  36. package/amd/{SelectMultiple-cb5fdd20.js → SelectMultiple-e216b16c.js} +2 -2
  37. package/amd/{SelectMultiple-cb5fdd20.js.map → SelectMultiple-e216b16c.js.map} +1 -1
  38. package/amd/{SelectSingle-02e85b6e.js → SelectSingle-d53cf202.js} +2 -2
  39. package/amd/{SelectSingle-02e85b6e.js.map → SelectSingle-d53cf202.js.map} +1 -1
  40. package/amd/TabBar-92bac52f.js +2 -0
  41. package/amd/{TabBar-de723fbc.js.map → TabBar-92bac52f.js.map} +1 -1
  42. package/amd/TabBarMixed-5b5a5047.js +2 -0
  43. package/amd/{TabBarMixed-cfd346bf.js.map → TabBarMixed-5b5a5047.js.map} +1 -1
  44. package/amd/Theme-redwood/theme.css +80 -80
  45. package/amd/Theme-stable/theme.css +276 -276
  46. package/amd/UNSAFE_CardFlexView.js +1 -1
  47. package/amd/UNSAFE_CardGridView.js +1 -1
  48. package/amd/UNSAFE_ColorPicker.js +1 -1
  49. package/amd/UNSAFE_InlineSelectSingle.js +1 -1
  50. package/amd/UNSAFE_InputColor.js +1 -1
  51. package/amd/UNSAFE_InputDatePicker.js +1 -1
  52. package/amd/UNSAFE_ListView.js +1 -1
  53. package/amd/UNSAFE_NavigationList.js +1 -1
  54. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  55. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  56. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  57. package/amd/UNSAFE_SelectMultiple.js +1 -1
  58. package/amd/UNSAFE_SelectSingle.js +1 -1
  59. package/amd/UNSAFE_TabBar.js +1 -1
  60. package/amd/UNSAFE_TabBarCommon.js +1 -1
  61. package/amd/UNSAFE_TabBarMixed.js +1 -1
  62. package/amd/{useDisplayValue-e70c76d8.js → useDisplayValue-9b671893.js} +2 -2
  63. package/amd/{useDisplayValue-e70c76d8.js.map → useDisplayValue-9b671893.js.map} +1 -1
  64. package/amd/useNavigationListItem-582f5564.js +2 -0
  65. package/amd/useNavigationListItem-582f5564.js.map +1 -0
  66. package/amd/useSelectCommon-f33709d2.js +2 -0
  67. package/amd/useSelectCommon-f33709d2.js.map +1 -0
  68. package/cjs/{BaseCardView-c0909427.js → BaseCardView-ba63723a.js} +4 -1
  69. package/cjs/{BaseCardView-c0909427.js.map → BaseCardView-ba63723a.js.map} +1 -1
  70. package/cjs/{Chart-13a198f3.js → Chart-966da017.js} +2 -2
  71. package/cjs/{Chart-13a198f3.js.map → Chart-966da017.js.map} +1 -1
  72. package/cjs/{ColorPicker-2c99c0fb.js → ColorPicker-8f0b6000.js} +2 -2
  73. package/cjs/{ColorPicker-2c99c0fb.js.map → ColorPicker-8f0b6000.js.map} +1 -1
  74. package/cjs/{NavigationListItem-cdfd0740.js → NavigationList-d0d74565.js} +3 -8
  75. package/cjs/NavigationList-d0d74565.js.map +1 -0
  76. package/cjs/NavigationListItem-b0b03089.js +12 -0
  77. package/cjs/NavigationListItem-b0b03089.js.map +1 -0
  78. package/cjs/{NavigationListLinkItem-62c3912e.js → NavigationListLinkItem-317a5200.js} +8 -99
  79. package/cjs/NavigationListLinkItem-317a5200.js.map +1 -0
  80. package/cjs/{OverflowTabBarItem-4bbd5830.js → OverflowTabBarItem-19ad4971.js} +6 -4
  81. package/cjs/{OverflowTabBarItem-4bbd5830.js.map → OverflowTabBarItem-19ad4971.js.map} +1 -1
  82. package/cjs/PRIVATE_BaseCardView.js +1 -1
  83. package/cjs/PRIVATE_Chart.js +4 -4
  84. package/cjs/PRIVATE_SelectCommon.js +2 -2
  85. package/cjs/PRIVATE_TableList.js +4 -4
  86. package/cjs/SegmentStyles.styles.css +9 -12
  87. package/cjs/SegmentStyles.styles2.css +12 -9
  88. package/cjs/{SelectMobileFieldInput-111a95a5.js → SelectMobileFieldInput-cbf57541.js} +2 -2
  89. package/cjs/{SelectMobileFieldInput-111a95a5.js.map → SelectMobileFieldInput-cbf57541.js.map} +1 -1
  90. package/cjs/{TabBar-27ae2c21.js → TabBar-d84e222e.js} +9 -1
  91. package/cjs/{TabBar-27ae2c21.js.map → TabBar-d84e222e.js.map} +1 -1
  92. package/cjs/{TabBarLinkItem-891a5f10.js → TabBarLinkItem-e924f83b.js} +2 -2
  93. package/cjs/{TabBarLinkItem-891a5f10.js.map → TabBarLinkItem-e924f83b.js.map} +1 -1
  94. package/cjs/Theme-redwood/theme.css +160 -160
  95. package/cjs/Theme-stable/theme.css +150 -150
  96. package/cjs/UNSAFE_BarChart.js +4 -4
  97. package/cjs/UNSAFE_CardFlexView.js +1 -1
  98. package/cjs/UNSAFE_CardGridView.js +1 -1
  99. package/cjs/UNSAFE_ColorPicker.js +25 -25
  100. package/cjs/UNSAFE_ComboChart.js +4 -4
  101. package/cjs/UNSAFE_InlineSelectSingle.js +2 -2
  102. package/cjs/UNSAFE_InputColor.js +2 -2
  103. package/cjs/UNSAFE_LineAreaChart.js +4 -4
  104. package/cjs/UNSAFE_ListView.js +53 -53
  105. package/cjs/UNSAFE_NavigationList.js +10 -8
  106. package/cjs/UNSAFE_NavigationList.js.map +1 -1
  107. package/cjs/UNSAFE_NavigationListCommon.js +14 -13
  108. package/cjs/UNSAFE_NavigationListCommon.js.map +1 -1
  109. package/cjs/UNSAFE_OverflowTabBar.js +56 -53
  110. package/cjs/UNSAFE_OverflowTabBar.js.map +1 -1
  111. package/cjs/UNSAFE_ReorderableTabBar.js +43 -30
  112. package/cjs/UNSAFE_ReorderableTabBar.js.map +1 -1
  113. package/cjs/UNSAFE_ScatterChart.js +4 -4
  114. package/cjs/UNSAFE_SelectMultiple.js +2 -2
  115. package/cjs/UNSAFE_SelectSingle.js +3 -3
  116. package/cjs/UNSAFE_TabBar.js +57 -54
  117. package/cjs/UNSAFE_TabBar.js.map +1 -1
  118. package/cjs/UNSAFE_TabBarCommon.js +78 -75
  119. package/cjs/UNSAFE_TabBarCommon.js.map +1 -1
  120. package/cjs/UNSAFE_TabBarMixed.js +38 -35
  121. package/cjs/UNSAFE_TabBarMixed.js.map +1 -1
  122. package/cjs/{useDisplayValue-60dbe1c3.js → useDisplayValue-4ace417c.js} +2 -2
  123. package/cjs/{useDisplayValue-60dbe1c3.js.map → useDisplayValue-4ace417c.js.map} +1 -1
  124. package/cjs/useNavigationListItem-b97e76d5.js +104 -0
  125. package/cjs/useNavigationListItem-b97e76d5.js.map +1 -0
  126. package/cjs/{useSelectCommon-b0d7feb3.js → useSelectCommon-27afecfa.js} +8 -3
  127. package/cjs/useSelectCommon-27afecfa.js.map +1 -0
  128. package/es/{BaseButton-243d200f.js → BaseButton-41068c85.js} +2 -2
  129. package/es/{BaseButton-243d200f.js.map → BaseButton-41068c85.js.map} +1 -1
  130. package/es/BaseCardView-b3d8bae0.js +6 -6
  131. package/es/BaseDiagram-b5b22e53.js +7 -7
  132. package/es/BaseRichSelection-223d9830.js +9 -9
  133. package/es/BaseSelector-7cbc48bc.js +1 -1
  134. package/es/BaseSwatchView-2e1e6bd2.js +2 -2
  135. package/es/{Button-a76ecfa8.js → Button-956f51c7.js} +2 -2
  136. package/es/{Button-a76ecfa8.js.map → Button-956f51c7.js.map} +1 -1
  137. package/es/ButtonSet-b7464e9a.js +2 -2
  138. package/es/ButtonSetButton-8685c752.js +1 -1
  139. package/es/ButtonSetIconButton-c8ed85f9.js +4 -4
  140. package/es/{Center-3860fe60.js → Center-71a03e65.js} +2 -2
  141. package/es/{Center-3860fe60.js.map → Center-71a03e65.js.map} +1 -1
  142. package/es/{Chart-b866a74c.js → Chart-8c63da28.js} +12 -12
  143. package/es/{Chart-b866a74c.js.map → Chart-8c63da28.js.map} +1 -1
  144. package/es/CheckboxControl-c008372a.js +6 -6
  145. package/es/CheckboxRadioField-a387b3cb.js +6 -6
  146. package/es/CheckboxRadioLabelValueLayout-e3845f16.js +1 -1
  147. package/es/CheckboxSet-3aab5935.js +1 -1
  148. package/es/Chip-4efea02e.js +1 -1
  149. package/es/ClearIcon-f85ea340.js +1 -1
  150. package/es/CollapseIcon-84f6ba8e.js +1 -1
  151. package/es/Collapsible-2608ce3b.js +2 -2
  152. package/es/ColorPalette-950c6fc6.js +2 -2
  153. package/es/{ColorPicker-8c297849.js → ColorPicker-ae648c4c.js} +3 -3
  154. package/es/{ColorPicker-8c297849.js.map → ColorPicker-ae648c4c.js.map} +1 -1
  155. package/es/ColorSwatch-8339ee2f.js +4 -4
  156. package/es/{CompactLabelAssistance-50ff3f7e.js → CompactLabelAssistance-e2fcfcab.js} +6 -6
  157. package/es/{CompactLabelAssistance-50ff3f7e.js.map → CompactLabelAssistance-e2fcfcab.js.map} +1 -1
  158. package/es/CompactUserAssistance-6aa8894b.js +5 -5
  159. package/es/ComponentMessageContainer-d16c8b1f.js +4 -4
  160. package/es/{DatePicker-fa7d39a7.js → DatePicker-7287f0f9.js} +8 -8
  161. package/es/{DatePicker-fa7d39a7.js.map → DatePicker-7287f0f9.js.map} +1 -1
  162. package/es/DatePickerHeader-f8cf86bb.js +3 -3
  163. package/es/DiagramStyles.styles2.css +16 -10
  164. package/es/DiagramStyles.styles3.css +10 -16
  165. package/es/{Dialog-d1de5b06.js → Dialog-83368f52.js} +7 -7
  166. package/es/{Dialog-d1de5b06.js.map → Dialog-83368f52.js.map} +1 -1
  167. package/es/DirectionalCollapseArrowIcon-132761da.js +1 -1
  168. package/es/DirectionalExpandArrowIcon-5bc45cad.js +1 -1
  169. package/es/{Dropdown-9d9813a9.js → Dropdown-019aba37.js} +6 -6
  170. package/es/{Dropdown-9d9813a9.js.map → Dropdown-019aba37.js.map} +1 -1
  171. package/es/{EmbeddedIconButton-9f0e56b7.js → EmbeddedIconButton-46434710.js} +2 -2
  172. package/es/{EmbeddedIconButton-9f0e56b7.js.map → EmbeddedIconButton-46434710.js.map} +1 -1
  173. package/es/{EnvironmentProvider-6cf8ed37.js → EnvironmentProvider-6a0a8212.js} +3 -3
  174. package/es/{EnvironmentProvider-6cf8ed37.js.map → EnvironmentProvider-6a0a8212.js.map} +1 -1
  175. package/es/Expander-1347e769.js +1 -1
  176. package/es/{Flex-fc483125.js → Flex-03129963.js} +2 -2
  177. package/es/{Flex-fc483125.js.map → Flex-03129963.js.map} +1 -1
  178. package/es/{Floating-be4c0cb6.js → Floating-4a82db94.js} +4 -4
  179. package/es/{Floating-be4c0cb6.js.map → Floating-4a82db94.js.map} +1 -1
  180. package/es/{Grid-6f92d323.js → Grid-9e4b4f19.js} +2 -2
  181. package/es/{Grid-6f92d323.js.map → Grid-9e4b4f19.js.map} +1 -1
  182. package/es/GroupLoadingIndicator-19c6545a.js +1 -1
  183. package/es/{HighlightText-dd484ffd.js → HighlightText-0205faef.js} +2 -2
  184. package/es/{HighlightText-dd484ffd.js.map → HighlightText-0205faef.js.map} +1 -1
  185. package/es/Icon-4983d06e.js +3 -3
  186. package/es/IconButton-7f91481c.js +4 -4
  187. package/es/IconSwitchButton-05f1f602.js +4 -4
  188. package/es/IconToggleButton-808818f5.js +4 -4
  189. package/es/{IconUserAssistance-6abc7837.js → IconUserAssistance-61978211.js} +3 -3
  190. package/es/{IconUserAssistance-6abc7837.js.map → IconUserAssistance-61978211.js.map} +1 -1
  191. package/es/InlineHelp-9eaac91c.js +1 -1
  192. package/es/InlineUserAssistance-890293dd.js +5 -5
  193. package/es/InputDateMask-ec27aee7.js +7 -7
  194. package/es/Label-5d1ae8d7.js +8 -8
  195. package/es/LabelValueLayout-c6b9945a.js +1 -1
  196. package/es/{Layer-6c27170e.js → Layer-535577b5.js} +3 -3
  197. package/es/{Layer-6c27170e.js.map → Layer-535577b5.js.map} +1 -1
  198. package/es/{LayerHost-3cf255a6.js → LayerHost-7931b424.js} +2 -2
  199. package/es/{LayerHost-3cf255a6.js.map → LayerHost-7931b424.js.map} +1 -1
  200. package/es/{LayerManager-e30fbfd6.js → LayerManager-52a26c55.js} +2 -2
  201. package/es/{LayerManager-e30fbfd6.js.map → LayerManager-52a26c55.js.map} +1 -1
  202. package/es/Link-8503aab2.js +1 -1
  203. package/es/List-4636ba9b.js +5 -5
  204. package/es/{LiveRegion-2e8830ae.js → LiveRegion-cebac18d.js} +2 -2
  205. package/es/{LiveRegion-2e8830ae.js.map → LiveRegion-cebac18d.js.map} +1 -1
  206. package/es/{MaxLengthLiveRegion-8f552ae2.js → MaxLengthLiveRegion-8099fde5.js} +3 -3
  207. package/es/{MaxLengthLiveRegion-8f552ae2.js.map → MaxLengthLiveRegion-8099fde5.js.map} +1 -1
  208. package/es/Message-510c2db8.js +2 -2
  209. package/es/{MessageLayer-1dbdc0b6.js → MessageLayer-2a7fdec7.js} +6 -6
  210. package/es/{MessageLayer-1dbdc0b6.js.map → MessageLayer-2a7fdec7.js.map} +1 -1
  211. package/es/MessagesManager-47000438.js +3 -3
  212. package/es/Modal-c0f730b8.js +3 -3
  213. package/es/{MonthView-4e05e712.js → MonthView-4b2b483a.js} +4 -4
  214. package/es/{MonthView-4e05e712.js.map → MonthView-4b2b483a.js.map} +1 -1
  215. package/es/NavigationListItem-340ab770.js +8 -8
  216. package/es/NavigationListLinkItem-e28fd846.js +5 -5
  217. package/es/NumberInputText-60be5757.js +6 -6
  218. package/es/OverflowTabBarItem-aa0ce915.js +5 -5
  219. package/es/PRIVATE_BaseCardView.js +22 -22
  220. package/es/PRIVATE_BaseDiagram.js +29 -29
  221. package/es/PRIVATE_BaseSelector.js +17 -17
  222. package/es/PRIVATE_BaseSwatchView.js +18 -18
  223. package/es/PRIVATE_Chart.js +38 -38
  224. package/es/PRIVATE_CheckboxControl.js +25 -25
  225. package/es/PRIVATE_CheckboxRadioField.js +27 -27
  226. package/es/PRIVATE_ClearIcon.js +18 -18
  227. package/es/PRIVATE_CollapsibleNavigationList.js +20 -20
  228. package/es/PRIVATE_DatePickerHeader.js +20 -20
  229. package/es/PRIVATE_DatePickerLayout.js +4 -4
  230. package/es/PRIVATE_EmbeddedIconButton.js +6 -6
  231. package/es/PRIVATE_Expander.js +19 -19
  232. package/es/PRIVATE_FormControls.js +21 -21
  233. package/es/PRIVATE_IconSwitchButton.js +17 -17
  234. package/es/PRIVATE_Icons/CheckboxCrossed.js +16 -16
  235. package/es/PRIVATE_Icons/CheckboxMixed.js +16 -16
  236. package/es/PRIVATE_Icons/CheckboxOff.js +16 -16
  237. package/es/PRIVATE_Icons/CheckboxOn.js +16 -16
  238. package/es/PRIVATE_Icons/DragV.js +16 -16
  239. package/es/PRIVATE_Icons/None.js +16 -16
  240. package/es/PRIVATE_List.js +21 -21
  241. package/es/PRIVATE_Message.js +20 -20
  242. package/es/PRIVATE_MessageLayer.js +12 -12
  243. package/es/PRIVATE_MonthView.js +7 -7
  244. package/es/PRIVATE_MonthYearGridView.js +7 -7
  245. package/es/PRIVATE_PlotArea.js +5 -5
  246. package/es/PRIVATE_RevealToggleIcon.js +18 -18
  247. package/es/PRIVATE_RichSelectionCommon.js +28 -28
  248. package/es/PRIVATE_SelectCommon.js +33 -33
  249. package/es/PRIVATE_StyledCard.js +3 -3
  250. package/es/PRIVATE_StyledCheckbox.js +16 -16
  251. package/es/PRIVATE_StyledSwitch.js +4 -4
  252. package/es/PRIVATE_SwatchFlexView.js +18 -18
  253. package/es/PRIVATE_Table.js +35 -35
  254. package/es/PRIVATE_TableDisplay.js +19 -19
  255. package/es/PRIVATE_TableList.js +26 -26
  256. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
  257. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
  258. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
  259. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
  260. package/es/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
  261. package/es/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +16 -16
  262. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
  263. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
  264. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
  265. package/es/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
  266. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
  267. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
  268. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
  269. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
  270. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
  271. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
  272. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
  273. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
  274. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
  275. package/es/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
  276. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
  277. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
  278. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
  279. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
  280. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
  281. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
  282. package/es/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
  283. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
  284. package/es/PRIVATE_ThemedIcons/None.js +16 -16
  285. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
  286. package/es/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
  287. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
  288. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
  289. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
  290. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
  291. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
  292. package/es/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
  293. package/es/PRIVATE_TimeComponent.js +19 -19
  294. package/es/PRIVATE_TruncatingLink.js +16 -16
  295. package/es/PRIVATE_VisOverview.js +16 -16
  296. package/es/PRIVATE_VisStatusMessage.js +5 -5
  297. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  298. package/es/{Popup-22d51095.js → Popup-992b6c27.js} +10 -10
  299. package/es/{Popup-22d51095.js.map → Popup-992b6c27.js.map} +1 -1
  300. package/es/ProgressButtonLabelLayout-69549cf9.js +3 -3
  301. package/es/{ProgressCircle-bce87dad.js → ProgressCircle-46084d0b.js} +2 -2
  302. package/es/{ProgressCircle-bce87dad.js.map → ProgressCircle-46084d0b.js.map} +1 -1
  303. package/es/RadioItem-94909632.js +6 -6
  304. package/es/ReadonlyTextFieldInput-106ce959.js +1 -1
  305. package/es/{ReferenceLineArea-cc72b070.js → ReferenceLineArea-53129f72.js} +3 -3
  306. package/es/{ReferenceLineArea-cc72b070.js.map → ReferenceLineArea-53129f72.js.map} +1 -1
  307. package/es/RevealToggleIcon-2d622d8f.js +1 -1
  308. package/es/{SectionedContent-897e9c4e.js → SectionedContent-30e5bf98.js} +5 -5
  309. package/es/{SectionedContent-897e9c4e.js.map → SectionedContent-30e5bf98.js.map} +1 -1
  310. package/es/SelectMenuGroupContext-aa1fe822.js +6 -6
  311. package/es/{SelectMobileFieldInput-0a7c968c.js → SelectMobileFieldInput-345c4d45.js} +10 -10
  312. package/es/{SelectMobileFieldInput-0a7c968c.js.map → SelectMobileFieldInput-345c4d45.js.map} +1 -1
  313. package/es/{SelectorAll-3d39196b.js → SelectorAll-de7ba2e1.js} +5 -5
  314. package/es/{SelectorAll-3d39196b.js.map → SelectorAll-de7ba2e1.js.map} +1 -1
  315. package/es/Sheet-f9f8a4a4.js +2 -2
  316. package/es/SortControl-1044fcd9.js +3 -3
  317. package/es/SplitMenuButtonTheme.styles.css +4 -4
  318. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  319. package/es/StyledCard-77623731.js +1 -1
  320. package/es/{StyledLabelValueLayout-bddfb884.js → StyledLabelValueLayout-bb05f474.js} +2 -2
  321. package/es/{StyledLabelValueLayout-bddfb884.js.map → StyledLabelValueLayout-bb05f474.js.map} +1 -1
  322. package/es/StyledSwitch-dbf29d95.js +2 -2
  323. package/es/StyledTextField-7605d76a.js +5 -5
  324. package/es/Submenu-cbd77756.js +1 -1
  325. package/es/TabBar-67ca442c.js +6 -6
  326. package/es/TabBarContextMenu-c3326d67.js +2 -2
  327. package/es/TabBarLayout-9b67d1b6.js +1 -1
  328. package/es/Table-2f197c6a.js +11 -11
  329. package/es/TableColGroup-d74bd4f5.js +1 -1
  330. package/es/TextArea-93ce78a7.js +225 -0
  331. package/es/TextArea-93ce78a7.js.map +1 -0
  332. package/es/TextField-7884fcd7.js +3 -3
  333. package/es/Theme-redwood/theme.css +465 -465
  334. package/es/Theme-stable/theme.css +481 -481
  335. package/es/TimeComponentCanvas2D-cfb0066d.js +6 -6
  336. package/es/ToggleButton-bb69cf10.js +1 -1
  337. package/es/TruncatingLink-298c6343.js +4 -4
  338. package/es/TruncatingText-1bf00351.js +1 -1
  339. package/es/UNSAFE_AccordionItemMultiple.js +18 -18
  340. package/es/UNSAFE_AccordionItemSingle.js +18 -18
  341. package/es/UNSAFE_ActionCard.js +2 -2
  342. package/es/UNSAFE_BarChart.js +39 -39
  343. package/es/UNSAFE_BareButton.js +2 -2
  344. package/es/UNSAFE_BaseButton.js +5 -5
  345. package/es/UNSAFE_Button.js +6 -6
  346. package/es/UNSAFE_ButtonSet.js +4 -4
  347. package/es/UNSAFE_ButtonSetButton.js +5 -5
  348. package/es/UNSAFE_ButtonSetIconButton.js +17 -17
  349. package/es/UNSAFE_ButtonSetItem.js +18 -18
  350. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  351. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  352. package/es/UNSAFE_Card.js +3 -3
  353. package/es/UNSAFE_CardFlexView.js +22 -22
  354. package/es/UNSAFE_CardGridView.js +22 -22
  355. package/es/UNSAFE_Center.js +5 -5
  356. package/es/UNSAFE_Checkbox.js +25 -25
  357. package/es/UNSAFE_CheckboxItem.js +27 -27
  358. package/es/UNSAFE_CheckboxRadioField.js +4 -4
  359. package/es/UNSAFE_CheckboxSet.js +26 -26
  360. package/es/UNSAFE_Chip.js +2 -2
  361. package/es/UNSAFE_Collapsible.js +18 -18
  362. package/es/UNSAFE_ColorPalette.js +19 -19
  363. package/es/UNSAFE_ColorPicker.js +21 -21
  364. package/es/UNSAFE_ColorSwatch.js +17 -17
  365. package/es/UNSAFE_ComboChart.js +39 -39
  366. package/es/UNSAFE_ComponentMessage.js +20 -20
  367. package/es/UNSAFE_ContainerDiagram/themes/DiagramStyles.css.js +1 -1
  368. package/es/UNSAFE_ContainerDiagram.js +29 -29
  369. package/es/UNSAFE_ConveyorBelt.js +18 -18
  370. package/es/UNSAFE_DatePicker.js +27 -27
  371. package/es/UNSAFE_Diagram/themes/DiagramStyles.css.js +1 -1
  372. package/es/UNSAFE_Diagram.js +29 -29
  373. package/es/UNSAFE_Dialog.js +22 -22
  374. package/es/UNSAFE_DragHandle.js +17 -17
  375. package/es/UNSAFE_DrawerLayout.js +12 -12
  376. package/es/UNSAFE_DrawerPopup.js +11 -11
  377. package/es/UNSAFE_Dropdown.js +15 -15
  378. package/es/UNSAFE_Environment.js +4 -4
  379. package/es/UNSAFE_ExpandableList.js +25 -25
  380. package/es/UNSAFE_FilePicker.js +4 -4
  381. package/es/UNSAFE_FlatTreeView.js +25 -25
  382. package/es/UNSAFE_Flex.js +4 -4
  383. package/es/UNSAFE_Floating.js +11 -11
  384. package/es/UNSAFE_FormLayout.js +2 -2
  385. package/es/UNSAFE_Gantt.js +23 -23
  386. package/es/UNSAFE_Grid.js +4 -4
  387. package/es/UNSAFE_HighlightText.js +4 -4
  388. package/es/UNSAFE_Icon.js +16 -16
  389. package/es/UNSAFE_IconButton.js +17 -17
  390. package/es/UNSAFE_IconMenuButton.js +25 -25
  391. package/es/UNSAFE_IconProgressButton.js +21 -21
  392. package/es/UNSAFE_IconToggleButton.js +17 -17
  393. package/es/UNSAFE_Indexer.js +19 -19
  394. package/es/UNSAFE_InlineSelectSingle.js +34 -34
  395. package/es/UNSAFE_InputColor.js +32 -32
  396. package/es/UNSAFE_InputDateMask.js +26 -26
  397. package/es/UNSAFE_InputDatePicker.js +36 -36
  398. package/es/UNSAFE_InputPassword.js +26 -26
  399. package/es/UNSAFE_InputSensitiveText.js +27 -27
  400. package/es/UNSAFE_InputText.js +28 -28
  401. package/es/UNSAFE_InputTimeMask.js +26 -26
  402. package/es/UNSAFE_Label.js +25 -25
  403. package/es/UNSAFE_LabelValueLayout.js +4 -4
  404. package/es/UNSAFE_LabelledLink.js +27 -27
  405. package/es/UNSAFE_Layer.js +8 -8
  406. package/es/UNSAFE_Legend.js +27 -27
  407. package/es/UNSAFE_LineAreaChart.js +39 -39
  408. package/es/UNSAFE_Link.js +2 -2
  409. package/es/UNSAFE_ListItemLayout.js +4 -4
  410. package/es/UNSAFE_ListView.js +28 -28
  411. package/es/UNSAFE_LiveRegion.js +4 -4
  412. package/es/UNSAFE_Menu.js +26 -26
  413. package/es/UNSAFE_MenuButton.js +25 -25
  414. package/es/UNSAFE_MessageBanner.js +20 -20
  415. package/es/UNSAFE_MessageToast.js +22 -22
  416. package/es/UNSAFE_MeterBar.js +16 -16
  417. package/es/UNSAFE_MeterCircle.js +17 -17
  418. package/es/UNSAFE_Modal.js +8 -8
  419. package/es/UNSAFE_NavigationList.js +28 -28
  420. package/es/UNSAFE_NavigationListCommon.js +20 -20
  421. package/es/UNSAFE_NumberInputText.js +28 -28
  422. package/es/UNSAFE_OverflowTabBar.js +27 -27
  423. package/es/UNSAFE_PictoChart.js +25 -25
  424. package/es/UNSAFE_PieChart.js +26 -26
  425. package/es/UNSAFE_Popup.js +18 -18
  426. package/es/UNSAFE_ProgressBar.js +4 -4
  427. package/es/UNSAFE_ProgressButton.js +21 -21
  428. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  429. package/es/UNSAFE_ProgressCircle.js +4 -4
  430. package/es/UNSAFE_RadioItem.js +25 -25
  431. package/es/UNSAFE_RadioSet.js +27 -27
  432. package/es/UNSAFE_RatingGauge.js +18 -18
  433. package/es/UNSAFE_ReorderableTabBar.js +27 -27
  434. package/es/UNSAFE_RichCheckboxSet.js +28 -28
  435. package/es/UNSAFE_RichRadioSet.js +29 -29
  436. package/es/UNSAFE_RichSelectionItem.js +30 -30
  437. package/es/UNSAFE_ScatterChart.js +39 -39
  438. package/es/UNSAFE_SectionalLegend.js +27 -27
  439. package/es/UNSAFE_SelectMultiple.js +37 -37
  440. package/es/UNSAFE_SelectSingle.js +37 -37
  441. package/es/UNSAFE_SelectionCard.js +3 -3
  442. package/es/UNSAFE_Selector.js +17 -17
  443. package/es/UNSAFE_SelectorAll.js +19 -19
  444. package/es/UNSAFE_Sheet.js +11 -11
  445. package/es/UNSAFE_SortControl.js +20 -20
  446. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  447. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  448. package/es/UNSAFE_SplitMenuButton.js +26 -26
  449. package/es/UNSAFE_Switch.js +26 -26
  450. package/es/UNSAFE_TabBar.js +28 -28
  451. package/es/UNSAFE_TabBarCommon.js +28 -28
  452. package/es/UNSAFE_TabBarMixed.js +28 -28
  453. package/es/UNSAFE_TableView.js +35 -35
  454. package/es/UNSAFE_TagCloud.js +26 -26
  455. package/es/UNSAFE_TextArea.js +117 -237
  456. package/es/UNSAFE_TextArea.js.map +1 -1
  457. package/es/UNSAFE_TextAreaAutosize.js +28 -28
  458. package/es/UNSAFE_TextField.js +20 -20
  459. package/es/UNSAFE_ToggleButton.js +5 -5
  460. package/es/UNSAFE_Toolbar.js +4 -4
  461. package/es/UNSAFE_Train.js +17 -17
  462. package/es/UNSAFE_TruncatingBadge.js +17 -17
  463. package/es/UNSAFE_TruncatingText.js +17 -17
  464. package/es/UNSAFE_UserAssistance.js +26 -26
  465. package/es/UNSAFE_View.js +7 -7
  466. package/es/UNSAFE_VirtualizedListView.js +21 -21
  467. package/es/UNSAFE_VisInvalidDataMessage.js +6 -6
  468. package/es/UNSAFE_VisNoDataMessage.js +6 -6
  469. package/es/UNSAFE_VisProgressiveLoader.js +5 -5
  470. package/es/UNSAFE_WindowOverlay.js +4 -4
  471. package/es/{View-818f2f31.js → View-5bdd9b3c.js} +5 -5
  472. package/es/{View-818f2f31.js.map → View-5bdd9b3c.js.map} +1 -1
  473. package/es/{VisStatusMessage-09c532e3.js → VisStatusMessage-e2d629bb.js} +2 -2
  474. package/es/{VisStatusMessage-09c532e3.js.map → VisStatusMessage-e2d629bb.js.map} +1 -1
  475. package/es/{VisTabularDatatip-f45069f1.js → VisTabularDatatip-85b00c1b.js} +2 -2
  476. package/es/{VisTabularDatatip-f45069f1.js.map → VisTabularDatatip-85b00c1b.js.map} +1 -1
  477. package/es/{WindowOverlay-467c2d12.js → WindowOverlay-7264c44a.js} +2 -2
  478. package/es/{WindowOverlay-467c2d12.js.map → WindowOverlay-7264c44a.js.map} +1 -1
  479. package/es/{YearsGridView-5286a756.js → YearsGridView-6c18094a.js} +4 -4
  480. package/es/{YearsGridView-5286a756.js.map → YearsGridView-6c18094a.js.map} +1 -1
  481. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  482. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  483. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  484. package/es/hooks/PRIVATE_useChartContextMenu.js +23 -23
  485. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  486. package/es/hooks/PRIVATE_useChartEvents.js +19 -19
  487. package/es/hooks/PRIVATE_useChartMarquee.js +19 -19
  488. package/es/hooks/PRIVATE_useCollectionFocusRing.js +17 -17
  489. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  490. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  491. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  492. package/es/hooks/PRIVATE_useDetectHorizontalOverflow.js +16 -16
  493. package/es/hooks/PRIVATE_useFloating.js +4 -4
  494. package/es/hooks/PRIVATE_useItemAction.js +17 -17
  495. package/es/hooks/PRIVATE_useListCommon.js +19 -19
  496. package/es/hooks/PRIVATE_useOutsideMousedown.js +9 -9
  497. package/es/hooks/PRIVATE_useRadioFocusManager.js +4 -4
  498. package/es/hooks/PRIVATE_useReorderable.js +19 -19
  499. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  500. package/es/hooks/PRIVATE_useSelection.js +4 -4
  501. package/es/hooks/PRIVATE_useTabBar.js +26 -26
  502. package/es/hooks/PRIVATE_useTabbableModeSet.js +17 -17
  503. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +17 -17
  504. package/es/hooks/PRIVATE_useVisContextMenu.js +23 -23
  505. package/es/hooks/PRIVATE_useVisDragModeControls.js +19 -19
  506. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  507. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  508. package/es/hooks/PRIVATE_useVisSelection.js +15 -15
  509. package/es/hooks/UNSAFE_useBareButton.js +2 -2
  510. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  511. package/es/hooks/UNSAFE_useCurrentBgColor.js +2 -2
  512. package/es/hooks/UNSAFE_useDensity.js +3 -3
  513. package/es/hooks/UNSAFE_useHiddenTestMethod.js +3 -3
  514. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  515. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  516. package/es/hooks/UNSAFE_useScale.js +3 -3
  517. package/es/hooks/UNSAFE_useTestId.js +3 -3
  518. package/es/hooks/UNSAFE_useTheme.js +3 -3
  519. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  520. package/es/hooks/UNSAFE_useTooltip.js +17 -17
  521. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  522. package/es/hooks/UNSAFE_useUser.js +3 -3
  523. package/es/{popupUtils-7774330e.js → popupUtils-51366a29.js} +2 -2
  524. package/es/{popupUtils-7774330e.js.map → popupUtils-51366a29.js.map} +1 -1
  525. package/es/{tooltipUtils-90fb656f.js → tooltipUtils-af0abd38.js} +5 -5
  526. package/es/{tooltipUtils-90fb656f.js.map → tooltipUtils-af0abd38.js.map} +1 -1
  527. package/es/useBareButton-ff4bd21e.js +1 -1
  528. package/es/useCellNavigation-0565b6dd.js +1 -1
  529. package/es/useChartContextMenu-5de82cd7.js +2 -2
  530. package/es/{useChartDatatip-cba78e0f.js → useChartDatatip-8dd22b71.js} +4 -4
  531. package/es/{useChartDatatip-cba78e0f.js.map → useChartDatatip-8dd22b71.js.map} +1 -1
  532. package/es/{useColorScheme-67245285.js → useColorScheme-c4f6caab.js} +2 -2
  533. package/es/{useColorScheme-67245285.js.map → useColorScheme-c4f6caab.js.map} +1 -1
  534. package/es/useContextMenu-730d6c12.js +2 -2
  535. package/es/{useCssVars-048a52d8.js → useCssVars-bc2527ac.js} +5 -5
  536. package/es/{useCssVars-048a52d8.js.map → useCssVars-bc2527ac.js.map} +1 -1
  537. package/es/{useCurrentKey-38e5f097.js → useCurrentKey-5f865bbd.js} +2 -2
  538. package/es/{useCurrentKey-38e5f097.js.map → useCurrentKey-5f865bbd.js.map} +1 -1
  539. package/es/{useDatatip-ef5c47a7.js → useDatatip-4895a07a.js} +4 -4
  540. package/es/{useDatatip-ef5c47a7.js.map → useDatatip-4895a07a.js.map} +1 -1
  541. package/es/{useDensity-969273f3.js → useDensity-1acb0153.js} +2 -2
  542. package/es/{useDensity-969273f3.js.map → useDensity-1acb0153.js.map} +1 -1
  543. package/es/{useDisplayValue-5bbf2830.js → useDisplayValue-65bbc74e.js} +7 -7
  544. package/es/{useDisplayValue-5bbf2830.js.map → useDisplayValue-65bbc74e.js.map} +1 -1
  545. package/es/{useExpandCollapse-51f9bb4b.js → useExpandCollapse-5739cfd2.js} +2 -2
  546. package/es/{useExpandCollapse-51f9bb4b.js.map → useExpandCollapse-5739cfd2.js.map} +1 -1
  547. package/es/{useFloating-c74a7f54.js → useFloating-b9d680f7.js} +2 -2
  548. package/es/{useFloating-c74a7f54.js.map → useFloating-b9d680f7.js.map} +1 -1
  549. package/es/{useHiddenTestMethod-ec7b3989.js → useHiddenTestMethod-f3f25093.js} +2 -2
  550. package/es/{useHiddenTestMethod-ec7b3989.js.map → useHiddenTestMethod-f3f25093.js.map} +1 -1
  551. package/es/{useKeyboardEvents-a1495728.js → useKeyboardEvents-9aae7ea3.js} +2 -2
  552. package/es/{useKeyboardEvents-a1495728.js.map → useKeyboardEvents-9aae7ea3.js.map} +1 -1
  553. package/es/useLegendContextMenu-a678b26f.js +4 -4
  554. package/es/{useMeterDatatip-f61ca3e0.js → useMeterDatatip-538a4d53.js} +3 -3
  555. package/es/{useMeterDatatip-f61ca3e0.js.map → useMeterDatatip-538a4d53.js.map} +1 -1
  556. package/es/useNavigation-b257c33a.js +1 -1
  557. package/es/{useOutsideClick-01f3d3e1.js → useOutsideClick-b777a43e.js} +2 -2
  558. package/es/{useOutsideClick-01f3d3e1.js.map → useOutsideClick-b777a43e.js.map} +1 -1
  559. package/es/{useOutsideMousedown-e0866d58.js → useOutsideMousedown-c45c22c0.js} +2 -2
  560. package/es/{useOutsideMousedown-e0866d58.js.map → useOutsideMousedown-c45c22c0.js.map} +1 -1
  561. package/es/{usePopupAnimation-7c5db425.js → usePopupAnimation-96d2bc83.js} +2 -2
  562. package/es/{usePopupAnimation-7c5db425.js.map → usePopupAnimation-96d2bc83.js.map} +1 -1
  563. package/es/{usePrefixSuffix-95fc00fd.js → usePrefixSuffix-f981b65f.js} +2 -2
  564. package/es/{usePrefixSuffix-95fc00fd.js.map → usePrefixSuffix-f981b65f.js.map} +1 -1
  565. package/es/{useRadioFocusManager-d9eecfb4.js → useRadioFocusManager-36eb283e.js} +2 -2
  566. package/es/{useRadioFocusManager-d9eecfb4.js.map → useRadioFocusManager-36eb283e.js.map} +1 -1
  567. package/es/{useReorderableItem-06bd7a7b.js → useReorderableItem-857636b7.js} +3 -3
  568. package/es/{useReorderableItem-06bd7a7b.js.map → useReorderableItem-857636b7.js.map} +1 -1
  569. package/es/{useRovingTabIndexContainer-c0356f5d.js → useRovingTabIndexContainer-5992e107.js} +2 -2
  570. package/es/{useRovingTabIndexContainer-c0356f5d.js.map → useRovingTabIndexContainer-5992e107.js.map} +1 -1
  571. package/es/{useScale-93490e54.js → useScale-434ad939.js} +2 -2
  572. package/es/{useScale-93490e54.js.map → useScale-434ad939.js.map} +1 -1
  573. package/es/{useSelectCommon-309d0f07.js → useSelectCommon-a3c69d60.js} +13 -8
  574. package/es/useSelectCommon-a3c69d60.js.map +1 -0
  575. package/es/{useSelectDrill-2f855daa.js → useSelectDrill-f669e729.js} +3 -3
  576. package/es/{useSelectDrill-2f855daa.js.map → useSelectDrill-f669e729.js.map} +1 -1
  577. package/es/{useSelection-d6fefa3d.js → useSelection-65134722.js} +2 -2
  578. package/es/{useSelection-d6fefa3d.js.map → useSelection-65134722.js.map} +1 -1
  579. package/es/{useSelection-10ed8060.js → useSelection-82bec039.js} +6 -6
  580. package/es/{useSelection-10ed8060.js.map → useSelection-82bec039.js.map} +1 -1
  581. package/es/useTabBar-c5558e77.js +3 -3
  582. package/es/{useTestId-ab1bede6.js → useTestId-f24ac480.js} +2 -2
  583. package/es/{useTestId-ab1bede6.js.map → useTestId-f24ac480.js.map} +1 -1
  584. package/es/{useTheme-c2cfbc29.js → useTheme-0e7497db.js} +2 -2
  585. package/es/{useTheme-c2cfbc29.js.map → useTheme-0e7497db.js.map} +1 -1
  586. package/es/{useThemeInterpolations-5f358139.js → useThemeInterpolations-e144e8ec.js} +5 -5
  587. package/es/{useThemeInterpolations-5f358139.js.map → useThemeInterpolations-e144e8ec.js.map} +1 -1
  588. package/es/{useTooltip-ab739df0.js → useTooltip-94af94d4.js} +2 -2
  589. package/es/{useTooltip-ab739df0.js.map → useTooltip-94af94d4.js.map} +1 -1
  590. package/es/{useTooltipControlled-b7f30aee.js → useTooltipControlled-f2cfa454.js} +5 -5
  591. package/es/{useTooltipControlled-b7f30aee.js.map → useTooltipControlled-f2cfa454.js.map} +1 -1
  592. package/es/{useTooltipOnTruncation-31afc3f2.js → useTooltipOnTruncation-94282e75.js} +4 -4
  593. package/es/{useTooltipOnTruncation-31afc3f2.js.map → useTooltipOnTruncation-94282e75.js.map} +1 -1
  594. package/es/{useTranslationBundle-bc6e0896.js → useTranslationBundle-4822502f.js} +2 -2
  595. package/es/{useTranslationBundle-bc6e0896.js.map → useTranslationBundle-4822502f.js.map} +1 -1
  596. package/es/{useUser-e543b73c.js → useUser-06d34d19.js} +2 -2
  597. package/es/{useUser-e543b73c.js.map → useUser-06d34d19.js.map} +1 -1
  598. package/es/useVisDragModeControls-af64848c.js +1 -1
  599. package/es/{useVisEvents-0edc925f.js → useVisEvents-256dee29.js} +2 -2
  600. package/es/{useVisEvents-0edc925f.js.map → useVisEvents-256dee29.js.map} +1 -1
  601. package/es/utils/PRIVATE_collectionUtils.js +17 -17
  602. package/es/utils/PRIVATE_tabBarUtils.js +17 -17
  603. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  604. package/es/utils/PRIVATE_visTestUtils.js +4 -4
  605. package/es/utils/UNSAFE_popupUtils.js +8 -8
  606. package/es/{withDirectionIcon-b725a6d7.js → withDirectionIcon-a8d84a3d.js} +2 -2
  607. package/es/{withDirectionIcon-b725a6d7.js.map → withDirectionIcon-a8d84a3d.js.map} +1 -1
  608. package/es/withThemeProps-dbd4fedf.js +2 -2
  609. package/package.json +2 -2
  610. package/amd/BaseCardView-16fda4c3.js +0 -2
  611. package/amd/CardFlexView-d3eb7373.js +0 -2
  612. package/amd/CardGridView-842f70cd.js +0 -2
  613. package/amd/ColorPicker-e3167e4c.js +0 -2
  614. package/amd/InputDatePicker-030e345a.js +0 -2
  615. package/amd/ListView-02a92d18.js +0 -2
  616. package/amd/NavigationListItem-9df5446c.js +0 -2
  617. package/amd/NavigationListItem-9df5446c.js.map +0 -1
  618. package/amd/NavigationListLinkItem-161049bb.js +0 -2
  619. package/amd/NavigationListLinkItem-161049bb.js.map +0 -1
  620. package/amd/OverflowTabBarItem-926b0c8a.js +0 -2
  621. package/amd/RemovableNavigationListItem-e298c5de.js +0 -2
  622. package/amd/ReorderableTabBar-0c69bfd4.js +0 -2
  623. package/amd/TabBar-de723fbc.js +0 -2
  624. package/amd/TabBarMixed-cfd346bf.js +0 -2
  625. package/amd/useSelectCommon-28307b63.js +0 -2
  626. package/amd/useSelectCommon-28307b63.js.map +0 -1
  627. package/cjs/NavigationListItem-cdfd0740.js.map +0 -1
  628. package/cjs/NavigationListLinkItem-62c3912e.js.map +0 -1
  629. package/cjs/useSelectCommon-b0d7feb3.js.map +0 -1
  630. package/es/useSelectCommon-309d0f07.js.map +0 -1
  631. package/es/useTextAreaAltEnter-ac460f4c.js +0 -61
  632. package/es/useTextAreaAltEnter-ac460f4c.js.map +0 -1
@@ -33,6 +33,12 @@ require('./tooltipUtils-2bc15136.js');
33
33
  var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
34
34
  require('./BaseButton-d8f96bfa.js');
35
35
  require('./ButtonLabelLayout-c876923f.js');
36
+ require('./NavigationList-d0d74565.js');
37
+ require('./useNavigationListItem-b97e76d5.js');
38
+ require('./UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js');
39
+
40
+ require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js');
41
+
36
42
  require('./Floating-79cbe5ad.js');
37
43
 
38
44
  require('./keyboardUtils-b42fe7d5.js');
@@ -41,6 +47,8 @@ require('./CollectionInteractionContext-f84ff7a1.js');
41
47
 
42
48
  require('./Sheet-1d6e8cf8.js');
43
49
 
50
+ require('./StyledCheckbox-9047ed7d.js');
51
+
44
52
  var clientUtils = require('./clientUtils-ef5e20ce.js');
45
53
  var UNSAFE_TabBarMixed_themes_TabBarMixedStyles_css = require('./UNSAFE_TabBarMixed/themes/TabBarMixedStyles.css.js');
46
54
  var useTabBar = require('./useTabBar-35b73d10.js');
@@ -49,7 +57,7 @@ var TabBarContextMenu = require('./TabBarContextMenu-d9bf65c2.js');
49
57
  var ConveyorBeltFocusContext = require('./ConveyorBeltFocusContext-0e08d043.js');
50
58
  var View = require('./View-ed116d78.js');
51
59
  var UNSAFE_TabBarMixed_themes_TabBarMixedSeparator_css = require('./UNSAFE_TabBarMixed/themes/TabBarMixedSeparator.css.js');
52
- var OverflowTabBarItem = require('./OverflowTabBarItem-4bbd5830.js');
60
+ var OverflowTabBarItem = require('./OverflowTabBarItem-19ad4971.js');
53
61
 
54
62
  require('./index-0aa99b92.js');
55
63
  require('./UNSAFE_Layer/themes/LayerHostStyles.css.js');
@@ -116,8 +124,27 @@ require('./UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.cs
116
124
 
117
125
  require('./UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css.js');
118
126
 
119
- require('./useFloating-c753a7f9.js');
127
+ require('./UNSAFE_NavigationList/themes/NavigationListStyles.css.js');
128
+
129
+ require('./collectionUtils-f1d3183f.js');
130
+ require('./keys-25710458.js');
131
+ require('./Selector-6550b8e0.js');
132
+ require('./BaseSelector-2dc69917.js');
133
+ require('./useFocus-1b288fb9.js');
134
+ require('./PRIVATE_BaseSelector/themes/SelectorStyles.css.js');
135
+ require('./useCollectionInteractionContext-6fc0200e.js');
136
+ require('./useCollectionFocusRing-bed0aa16.js');
137
+ require('./useCurrentKey-1b9e3382.js');
120
138
  require('./useUser-1295b5cb.js');
139
+ require('./useContextMenuGesture-530ef8dd.js');
140
+ require('./textSelectionUtils-57082239.js');
141
+ require('./useTranslationBundle-12dd087d.js');
142
+ require('./useInteractionStyle-c203a8a0.js');
143
+ require('./UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js');
144
+ require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemBaseTheme.css.js');
145
+
146
+
147
+ require('./useFloating-c753a7f9.js');
121
148
  require('./positionUtils-a780137e.js');
122
149
  require('./refUtils-a9872e75.js');
123
150
  require('./useOutsideClick-dbf3d604.js');
@@ -152,14 +179,6 @@ require('./UNSAFE_Sheet/themes/SheetStyles.css.js');
152
179
  require('./useAnimationStatus-8075dc19.js');
153
180
  require('./useAnimation-65c0e455.js');
154
181
  require('./animationUtils-54852d03.js');
155
- require('./useTranslationBundle-12dd087d.js');
156
-
157
- require('./collectionUtils-f1d3183f.js');
158
- require('./keys-25710458.js');
159
- require('./Selector-6550b8e0.js');
160
- require('./BaseSelector-2dc69917.js');
161
- require('./useFocus-1b288fb9.js');
162
- require('./StyledCheckbox-9047ed7d.js');
163
182
  require('./Check-1272bb86.js');
164
183
  require('./Icon-56789beb.js');
165
184
  require('./useTooltip-34accecc.js');
@@ -181,15 +200,9 @@ require('./UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css.js');
181
200
  require('./UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js');
182
201
 
183
202
 
184
- require('./PRIVATE_BaseSelector/themes/SelectorStyles.css.js');
185
203
 
186
- require('./useCollectionInteractionContext-6fc0200e.js');
187
- require('./useCollectionFocusRing-bed0aa16.js');
188
- require('./useCurrentKey-1b9e3382.js');
189
204
  require('./useReorderableContext-92514102.js');
190
205
  require('./ReorderableContext-16396e17.js');
191
- require('./useContextMenuGesture-530ef8dd.js');
192
- require('./textSelectionUtils-57082239.js');
193
206
 
194
207
  require('./SelectMenuGroupContext-a349d259.js');
195
208
  require('./Dropdown-1ba432a8.js');
@@ -219,7 +232,6 @@ require('./UNSAFE_Menu/themes/redwood/MenuItemBaseTheme.css.js');
219
232
 
220
233
  require('./UNSAFE_Menu/themes/redwood/MenuItemVariants.css.js');
221
234
 
222
- require('./useInteractionStyle-c203a8a0.js');
223
235
  require('./Separator-85962472.js');
224
236
  require('./UNSAFE_Separator/themes/SeparatorStyles.css.js');
225
237
 
@@ -234,36 +246,27 @@ require('./equals-098f7781.js');
234
246
 
235
247
  require('./EmbeddedIconButton-cc159a01.js');
236
248
  require('./Close-d99c20a7.js');
237
- require('./UNSAFE_TabBarCommon/themes/redwood/TabBarItemTheme.js');
238
- require('./UNSAFE_TabBarCommon/themes/TabBarItemStyles.css.js');
239
- require('./UNSAFE_TabBarCommon/themes/redwood/TabBarItemBaseTheme.css.js');
249
+ require('./NavigationListItem-b0b03089.js');
250
+ require('./NavigationListLinkItem-317a5200.js');
240
251
  require('./Badge-0e522f12.js');
241
252
  require('./UNSAFE_Badge/themes/redwood/BadgeTheme.js');
242
253
  require('./UNSAFE_Badge/themes/BadgeStyles.css.js');
243
254
  require('./UNSAFE_Badge/themes/redwood/BadgeThemeBaseTheme.css.js');
255
+ require('./WarningS-cdb0a7ad.js');
256
+ require('./ErrorS-b027f7ad.js');
257
+ require('./InformationS-b0bb102b.js');
258
+ require('./SuccessS-b6757c64.js');
259
+ require('./UNSAFE_TabBarCommon/themes/redwood/TabBarItemTheme.js');
260
+ require('./UNSAFE_TabBarCommon/themes/TabBarItemStyles.css.js');
261
+ require('./UNSAFE_TabBarCommon/themes/redwood/TabBarItemBaseTheme.css.js');
244
262
  require('./useConveyorBeltItem-6c1771e5.js');
245
263
  require('./useDetectTruncation-a5b9dd16.js');
246
264
  require('./truncationUtils-2d44b04b.js');
247
265
  require('./useResizeObserver-a9e97180.js');
248
266
  require('./useAddBusyState-d19ae1fa.js');
249
267
  require('./useBusyStateContext-362eee2a.js');
250
- require('./WarningS-cdb0a7ad.js');
251
- require('./ErrorS-b027f7ad.js');
252
- require('./InformationS-b0bb102b.js');
253
- require('./SuccessS-b6757c64.js');
254
- require('./NavigationListLinkItem-62c3912e.js');
255
- require('./UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js');
256
- require('./UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js');
257
-
258
- require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemBaseTheme.css.js');
259
-
260
- require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js');
261
-
262
268
  require('./UNSAFE_TabBarCommon/themes/TabBarItemContract.css.js');
263
269
  require('./UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css.js');
264
- require('./NavigationListItem-cdfd0740.js');
265
- require('./UNSAFE_NavigationList/themes/NavigationListStyles.css.js');
266
-
267
270
 
268
271
  /**
269
272
  * A thin wrapper around useTabBar hook
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_TabBarMixed.js","sources":["../../src/UNSAFE_TabBarMixed/useTabBarMixed.ts","../../src/UNSAFE_TabBarMixed/TabBarMixed.tsx","../../src/UNSAFE_TabBarMixed/TabBarMixedSeparator.tsx"],"sourcesContent":["import type { ComponentProps, ContextType, RefObject } from 'preact';\nimport type { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\nimport { TabBar } from '../UNSAFE_TabBar/TabBar';\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 contextMenuConfig?: ComponentProps<typeof TabBar>['contextMenuConfig'];\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 { useMemo, useRef, useCallback, useState } from 'preact/hooks';\nimport { Ref } from 'preact';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { TabBarContext, TabBarContextMenuConfig } from '../UNSAFE_TabBarCommon';\nimport { isMobile } from '#utils/UNSAFE_clientUtils';\nimport { styles } from './themes/TabBarMixedStyles.css';\nimport { useTabBarMixed as useTabBar } from './useTabBarMixed';\nimport { REMOVABLE_ITEM_ATTRIBUTE, getItemAttribute } from '../hooks/PRIVATE_useTabBar/useTabBar';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { TabBarContextMenu } from '../UNSAFE_TabBar/TabBarContextMenu';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps/mergeProps';\nimport { ConveyorBeltFocusContext } from '../UNSAFE_ConveyorBelt';\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 isMobileDevice = isMobile();\n const defaultContextMenuConfig = useMemo<TabBarContextMenuConfig<string | number>>(() => {\n return {\n itemsRenderer: (context) => {\n //Only if context is available, it is a mobile device and it is removable item, we will return remove context menu item\n if (context) {\n const isRemovableItem =\n getItemAttribute(context.itemKey, rootRef.current!, REMOVABLE_ITEM_ATTRIBUTE) != null;\n if (isRemovableItem && isMobileDevice) {\n const defaultItems = context.defaultMenuItems;\n return <>{defaultItems}</>;\n }\n }\n return null;\n }\n };\n }, []);\n\n const {\n rootProps,\n tabBarContext,\n menuProps,\n contextMenuContext,\n contextMenuDescription,\n contextMenuDescriptionId,\n accStatusInfo\n } = useTabBar({\n class: styles.tabBarBase,\n edge: 'bottom',\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children,\n contextMenuConfig: defaultContextMenuConfig\n });\n\n const isContextMenuAvailable = defaultContextMenuConfig != null && isMobileDevice;\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 const [isSuppressOverflowFocus, setIsSuppressOverflowFocus] = useState(false);\n\n const focusTabbarRoot = useCallback(() => {\n rootRef.current?.focus();\n }, []);\n\n // Begin a short window where overflow div should not be focusable.\n const beginTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(true);\n }, []);\n\n // End that window after focus moves away.\n const endTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(false);\n }, []);\n\n const onKeyDown = useCallback(\n (e: KeyboardEvent) => {\n // We only want to suppress overflow focus when the user is tabbing.\n if (e.key === 'Tab' && !e.shiftKey) {\n // Tell conveyor to make its overflow non-focusable (tabIndex = -1)\n beginTabPass?.();\n }\n },\n [beginTabPass]\n );\n\n const onBlur = useCallback(() => {\n // End that suppress overflow after focus moves away.\n endTabPass?.();\n }, [endTabPass]);\n\n const focusContext = useMemo(\n () => ({\n focusTabbarRoot,\n isSuppressOverflowFocus,\n beginTabPass,\n endTabPass\n }),\n [isSuppressOverflowFocus, focusTabbarRoot, beginTabPass, endTabPass]\n );\n\n const mergedRootProps = mergeProps(rootProps, { onKeyDown, onBlur });\n\n return (\n <ConveyorBeltFocusContext.Provider value={focusContext}>\n <TabBarContext.Provider value={tabBarContext}>\n <div aria-label={ariaLabel} aria-labelledby={ariaLabelledby} {...mergedRootProps}>\n {children}\n </div>\n </TabBarContext.Provider>\n {isContextMenuAvailable && contextMenuDescriptionId && contextMenuDescription && (\n <span id={contextMenuDescriptionId}>\n <HiddenAccessible>{contextMenuDescription}</HiddenAccessible>\n </span>\n )}\n {isContextMenuAvailable && accStatusInfo && <LiveRegion>{accStatusInfo}</LiveRegion>}\n {isContextMenuAvailable && (\n <TabBarContextMenu\n {...menuProps}\n contextMenuConfig={defaultContextMenuConfig}\n contextMenuContext={contextMenuContext!}\n />\n )}\n </ConveyorBeltFocusContext.Provider>\n );\n }\n);\n","import { View } from '../UNSAFE_View';\nimport { styles } from './themes/TabBarMixedSeparator.css';\n\nimport type { Size } from '../utils/UNSAFE_size';\n\ntype TabBarMixedSeparatorProps = {\n /**\n * Padding around the visual Separator line.\n */\n padding?: Size;\n};\n\n/**\n * TabBarMixedSeparator is a component that renders a visual separator (displayed\n * as a vertical line) between collections of tabs within TabBarMixed.\n *\n * @param {TabBarMixedSeparatorProps} props Component props for TabBarMixedSeparator.\n * @returns {JSX.Element} Component element for TabBarMixedSeparator.\n */\nexport function TabBarMixedSeparator(props: TabBarMixedSeparatorProps) {\n const { padding = 0 } = props;\n\n return (\n <View padding={[0, padding, 0, padding]}>\n <div class={styles.separator} role=\"presentation\" />\n </View>\n );\n}\n"],"names":["useTabBar","forwardRef","useRef","isMobile","useMemo","getItemAttribute","REMOVABLE_ITEM_ATTRIBUTE","_jsx","_Fragment","styles","useImperativeHandle","useState","useCallback","mergeProps","_jsxs","ConveyorBeltFocusContext","TabBarContext","HiddenAccessible","LiveRegion","TabBarContextMenu","View"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA;;AAEG;AACG,SAAU,cAAc,CAAC,OAAyB,EAAA;AACtD,IAAA,OAAOA,mBAAS,CAAC,OAAO,CAAC,CAAC;AAC5B;;AC2CA;;;;;AAKG;AACU,MAAA,WAAW,GAAGC,iBAAU,CACnC,CACE,KAA0B,EAC1B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A,EAAA,EAAA,KAAK,EAAEE,yDAAM,CAAC,SAAS,EAAE,IAAI,EAAC,cAAc,EAAG,CAAA,EAAA,CAC/C,EACP;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"UNSAFE_TabBarMixed.js","sources":["../../src/UNSAFE_TabBarMixed/useTabBarMixed.ts","../../src/UNSAFE_TabBarMixed/TabBarMixed.tsx","../../src/UNSAFE_TabBarMixed/TabBarMixedSeparator.tsx"],"sourcesContent":["import type { ComponentProps, ContextType, RefObject } from 'preact';\nimport type { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\nimport { TabBar } from '../UNSAFE_TabBar/TabBar';\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 contextMenuConfig?: ComponentProps<typeof TabBar>['contextMenuConfig'];\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 { useMemo, useRef, useCallback, useState } from 'preact/hooks';\nimport { Ref } from 'preact';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { TabBarContext, TabBarContextMenuConfig } from '../UNSAFE_TabBarCommon';\nimport { isMobile } from '#utils/UNSAFE_clientUtils';\nimport { styles } from './themes/TabBarMixedStyles.css';\nimport { useTabBarMixed as useTabBar } from './useTabBarMixed';\nimport { REMOVABLE_ITEM_ATTRIBUTE, getItemAttribute } from '../hooks/PRIVATE_useTabBar/useTabBar';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { TabBarContextMenu } from '../UNSAFE_TabBar/TabBarContextMenu';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps/mergeProps';\nimport { ConveyorBeltFocusContext } from '../UNSAFE_ConveyorBelt';\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 isMobileDevice = isMobile();\n const defaultContextMenuConfig = useMemo<TabBarContextMenuConfig<string | number>>(() => {\n return {\n itemsRenderer: (context) => {\n //Only if context is available, it is a mobile device and it is removable item, we will return remove context menu item\n if (context) {\n const isRemovableItem =\n getItemAttribute(context.itemKey, rootRef.current!, REMOVABLE_ITEM_ATTRIBUTE) != null;\n if (isRemovableItem && isMobileDevice) {\n const defaultItems = context.defaultMenuItems;\n return <>{defaultItems}</>;\n }\n }\n return null;\n }\n };\n }, []);\n\n const {\n rootProps,\n tabBarContext,\n menuProps,\n contextMenuContext,\n contextMenuDescription,\n contextMenuDescriptionId,\n accStatusInfo\n } = useTabBar({\n class: styles.tabBarBase,\n edge: 'bottom',\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children,\n contextMenuConfig: defaultContextMenuConfig\n });\n\n const isContextMenuAvailable = defaultContextMenuConfig != null && isMobileDevice;\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 const [isSuppressOverflowFocus, setIsSuppressOverflowFocus] = useState(false);\n\n const focusTabbarRoot = useCallback(() => {\n rootRef.current?.focus();\n }, []);\n\n // Begin a short window where overflow div should not be focusable.\n const beginTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(true);\n }, []);\n\n // End that window after focus moves away.\n const endTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(false);\n }, []);\n\n const onKeyDown = useCallback(\n (e: KeyboardEvent) => {\n // We only want to suppress overflow focus when the user is tabbing.\n if (e.key === 'Tab' && !e.shiftKey) {\n // Tell conveyor to make its overflow non-focusable (tabIndex = -1)\n beginTabPass?.();\n }\n },\n [beginTabPass]\n );\n\n const onBlur = useCallback(() => {\n // End that suppress overflow after focus moves away.\n endTabPass?.();\n }, [endTabPass]);\n\n const focusContext = useMemo(\n () => ({\n focusTabbarRoot,\n isSuppressOverflowFocus,\n beginTabPass,\n endTabPass\n }),\n [isSuppressOverflowFocus, focusTabbarRoot, beginTabPass, endTabPass]\n );\n\n const mergedRootProps = mergeProps(rootProps, { onKeyDown, onBlur });\n\n return (\n <ConveyorBeltFocusContext.Provider value={focusContext}>\n <TabBarContext.Provider value={tabBarContext}>\n <div aria-label={ariaLabel} aria-labelledby={ariaLabelledby} {...mergedRootProps}>\n {children}\n </div>\n </TabBarContext.Provider>\n {isContextMenuAvailable && contextMenuDescriptionId && contextMenuDescription && (\n <span id={contextMenuDescriptionId}>\n <HiddenAccessible>{contextMenuDescription}</HiddenAccessible>\n </span>\n )}\n {isContextMenuAvailable && accStatusInfo && <LiveRegion>{accStatusInfo}</LiveRegion>}\n {isContextMenuAvailable && (\n <TabBarContextMenu\n {...menuProps}\n contextMenuConfig={defaultContextMenuConfig}\n contextMenuContext={contextMenuContext!}\n />\n )}\n </ConveyorBeltFocusContext.Provider>\n );\n }\n);\n","import { View } from '../UNSAFE_View';\nimport { styles } from './themes/TabBarMixedSeparator.css';\n\nimport type { Size } from '../utils/UNSAFE_size';\n\ntype TabBarMixedSeparatorProps = {\n /**\n * Padding around the visual Separator line.\n */\n padding?: Size;\n};\n\n/**\n * TabBarMixedSeparator is a component that renders a visual separator (displayed\n * as a vertical line) between collections of tabs within TabBarMixed.\n *\n * @param {TabBarMixedSeparatorProps} props Component props for TabBarMixedSeparator.\n * @returns {JSX.Element} Component element for TabBarMixedSeparator.\n */\nexport function TabBarMixedSeparator(props: TabBarMixedSeparatorProps) {\n const { padding = 0 } = props;\n\n return (\n <View padding={[0, padding, 0, padding]}>\n <div class={styles.separator} role=\"presentation\" />\n </View>\n );\n}\n"],"names":["useTabBar","forwardRef","useRef","isMobile","useMemo","getItemAttribute","REMOVABLE_ITEM_ATTRIBUTE","_jsx","_Fragment","styles","useImperativeHandle","useState","useCallback","mergeProps","_jsxs","ConveyorBeltFocusContext","TabB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EACxD,CAAA,CACR,EACA,sBAAsB,IAAI,aAAa,IAAIV,eAACW,qBAAU,EAAA,EAAA,QAAA,EAAE,aAAa,EAAc,CAAA,EACnF,sBAAsB,KACrBX,cAAC,CAAAY,mCAAiB,EACZ,EAAA,GAAA,SAAS,EACb,iBAAiB,EAAE,wBAAwB,EAC3C,kBAAkB,EAAE,kBAAmB,GACvC,CACH,CAAA,EAAA,CACiC,EACpC;AACJ,CAAC;;ACtMH;;;;;;AAMG;AACG,SAAU,oBAAoB,CAAC,KAAgC,EAAA;AACnE,IAAA,MAAM,EAAE,OAAO,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC;AAE9B,IAAA,QACEZ,cAAA,CAACa,SAAI,EAAA,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,CAAC,EAAA,QAAA,EACrCb,cAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAEE,yDAAM,CAAC,SAAS,EAAE,IAAI,EAAC,cAAc,EAAG,CAAA,EAAA,CAC/C,EACP;AACJ;;;;;;;;;"}
@@ -29,7 +29,7 @@ require('./UNSAFE_TextField/themes/TextFieldStyles.css.js');
29
29
 
30
30
 
31
31
  require('./UNSAFE_TextField/themes/redwood/TextFieldVariants.css.js');
32
- var useSelectCommon = require('./useSelectCommon-b0d7feb3.js');
32
+ var useSelectCommon = require('./useSelectCommon-27afecfa.js');
33
33
  var LiveRegion = require('./LiveRegion-62ce9ac7.js');
34
34
 
35
35
 
@@ -79,4 +79,4 @@ function useDisplayValue(itemText, valueItem, componentName = 'SelectSingle') {
79
79
  exports.SelectSingleField = SelectSingleField;
80
80
  exports.SelectSingleFieldInput = SelectSingleFieldInput;
81
81
  exports.useDisplayValue = useDisplayValue;
82
- //# sourceMappingURL=useDisplayValue-60dbe1c3.js.map
82
+ //# sourceMappingURL=useDisplayValue-4ace417c.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDisplayValue-60dbe1c3.js","sources":["../../src/UNSAFE_SelectSingle/SelectSingleField.tsx","../../src/UNSAFE_SelectSingle/SelectSingleFieldInput.tsx","../../src/UNSAFE_SelectSingle/useDisplayValue.ts"],"sourcesContent":["import { DropdownArrow } from '#PRIVATE_SelectCommon';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { CancelS } from '#UNSAFE_RedwoodIcons/CancelS';\nimport { NavLeft } from '#UNSAFE_RedwoodIcons/NavLeft';\nimport { TextField } from '#UNSAFE_TextField';\nimport { useFormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { ComponentProps } from 'preact';\n\ntype PickedTextFieldProps = Pick<\n ComponentProps<typeof TextField>,\n | 'columnSpan'\n | 'compactUserAssistance'\n | 'contentVariant'\n | 'endContent'\n | 'hasZeroStartMargin'\n | 'id'\n | 'inlineUserAssistance'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'mainFieldRef'\n | 'onBlur'\n | 'onFocus'\n | 'onKeyDown'\n | 'onMouseDown'\n | 'onMouseEnter'\n | 'onMouseLeave'\n | 'resize'\n | 'rootRef'\n | 'startContent'\n | 'statusVariant'\n | 'styleVariant'\n | 'testId'\n> & {\n children: ComponentProps<typeof TextField>['mainContent'];\n};\n\ntype Props = PickedTextFieldProps & {\n hasInsideLabel?: boolean;\n isBackButtonShown?: boolean;\n isClearButtonShown?: boolean;\n isDropdownArrowShown?: boolean;\n onBackButtonClick?: ComponentProps<typeof IconButton>['onAction'];\n onClearButtonClick?: ComponentProps<typeof IconButton>['onAction'];\n onDropdownArrowClick?: ComponentProps<typeof DropdownArrow>['onClick'];\n};\n\nexport function SelectSingleField({\n children,\n hasInsideLabel,\n isBackButtonShown,\n isClearButtonShown,\n isDropdownArrowShown,\n onBackButtonClick,\n onClearButtonClick,\n onDropdownArrowClick,\n ...passThroughTextFieldProps\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const { isDisabled, isLoading } = useFormFieldContext();\n\n const startContent = isBackButtonShown ? (\n <IconButton\n aria-label={translations.selectMultiple_back()}\n size=\"xs\"\n variant=\"ghost\"\n onAction={onBackButtonClick}>\n <NavLeft />\n </IconButton>\n ) : null;\n\n const endContent = isLoading ? undefined : (\n <>\n {isClearButtonShown && (\n <IconButton\n aria-label={translations.formControl_clear()}\n size=\"sm\"\n variant=\"ghost\"\n onAction={onClearButtonClick}>\n <CancelS />\n </IconButton>\n )}\n {isDropdownArrowShown && (\n <DropdownArrow\n isDisabled={isDisabled}\n onClick={onDropdownArrowClick}\n testId={`${passThroughTextFieldProps.testId}_dropdownarrow`}\n />\n )}\n </>\n );\n\n return (\n <TextField\n startContent={startContent}\n mainContent={children}\n endContent={endContent}\n {...passThroughTextFieldProps}\n />\n );\n}\n","import { LiveRegion } from '#UNSAFE_LiveRegion';\nimport { TextFieldInput } from '#UNSAFE_TextField';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { ComponentProps, Ref } from 'preact';\n\ntype PickedTextFieldInputProps = Pick<\n ComponentProps<typeof TextFieldInput>,\n | 'aria-controls'\n | 'aria-describedby'\n | 'aria-expanded'\n | 'aria-invalid'\n | 'aria-label'\n | 'hasEmptyLabel'\n | 'hasInsideLabel'\n | 'id'\n | 'isRequired'\n | 'onBlur'\n | 'onFocus'\n | 'onInput'\n | 'onKeyDown'\n | 'onKeyUp'\n | 'placeholder'\n | 'textAlign'\n | 'variant'\n> & {\n inputRef?: Ref<HTMLInputElement>;\n};\n\ntype Props = PickedTextFieldInputProps & {\n displayValue: string;\n isAddToListShown: boolean;\n isAdvancedSearchShown: boolean;\n isUserFiltering: boolean;\n liveRegionText?: string;\n userInput?: string;\n virtualKeyboard?: 'auto' | 'email' | 'number' | 'search' | 'tel' | 'text' | 'url';\n};\n\nexport function SelectSingleFieldInput({\n displayValue,\n isAddToListShown,\n isAdvancedSearchShown,\n isUserFiltering,\n liveRegionText,\n userInput,\n virtualKeyboard,\n ...passThroughTextFieldInputProps\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const addToListAccText = translations.select_addToListAvailable();\n const advancedSearchAccText = translations.select_moreSearchOptionsAvailable();\n const combinedLiveRegionText = `${liveRegionText} ${isAddToListShown ? addToListAccText : ''} ${\n isAdvancedSearchShown ? advancedSearchAccText : ''\n }`;\n\n return (\n <>\n <TextFieldInput\n {...passThroughTextFieldInputProps}\n hasEndContent={true}\n aria-autocomplete=\"list\"\n autoComplete=\"off\"\n role=\"combobox\"\n spellcheck={false}\n type={virtualKeyboard === 'auto' ? 'search' : virtualKeyboard}\n value={isUserFiltering ? userInput : displayValue}\n />\n <LiveRegion>{combinedLiveRegionText}</LiveRegion>\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useMemo } from 'preact/hooks';\n\nimport { renderItemText } from '#PRIVATE_SelectCommon';\nimport { Item } from '#utils/UNSAFE_dataProvider';\nimport { ItemTextType } from '#utils/UNSAFE_selectUtils';\n\nexport function useDisplayValue<K, D>(\n itemText: ItemTextType<K, D>,\n valueItem?: Item<K, D>,\n componentName: 'SelectSingle' | 'InlineSelectSingle' = 'SelectSingle'\n): string {\n // create the text displayed in the field from the selected value\n const displayValue = useMemo(() => {\n return valueItem === undefined ? '' : renderItemText(valueItem, itemText, componentName) ?? '';\n }, [valueItem, itemText, componentName]);\n\n return displayValue;\n}\n"],"names":["useTranslationBundle","useFormFieldContext","_jsx","IconButton","NavLeft","_jsxs","_Fragment","CancelS","DropdownArrow","TextField","TextFieldInput","LiveRegion","useMemo","renderItemText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDM,SAAU,iBAAi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,IAAI,EAAE,CAAC;KAChG,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;AAEzC,IAAA,OAAO,YAAY,CAAC;AACtB;;;;;;"}
1
+ {"version":3,"file":"useDisplayValue-4ace417c.js","sources":["../../src/UNSAFE_SelectSingle/SelectSingleField.tsx","../../src/UNSAFE_SelectSingle/SelectSingleFieldInput.tsx","../../src/UNSAFE_SelectSingle/useDisplayValue.ts"],"sourcesContent":["import { DropdownArrow } from '#PRIVATE_SelectCommon';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { CancelS } from '#UNSAFE_RedwoodIcons/CancelS';\nimport { NavLeft } from '#UNSAFE_RedwoodIcons/NavLeft';\nimport { TextField } from '#UNSAFE_TextField';\nimport { useFormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { ComponentProps } from 'preact';\n\ntype PickedTextFieldProps = Pick<\n ComponentProps<typeof TextField>,\n | 'columnSpan'\n | 'compactUserAssistance'\n | 'contentVariant'\n | 'endContent'\n | 'hasZeroStartMargin'\n | 'id'\n | 'inlineUserAssistance'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'mainFieldRef'\n | 'onBlur'\n | 'onFocus'\n | 'onKeyDown'\n | 'onMouseDown'\n | 'onMouseEnter'\n | 'onMouseLeave'\n | 'resize'\n | 'rootRef'\n | 'startContent'\n | 'statusVariant'\n | 'styleVariant'\n | 'testId'\n> & {\n children: ComponentProps<typeof TextField>['mainContent'];\n};\n\ntype Props = PickedTextFieldProps & {\n hasInsideLabel?: boolean;\n isBackButtonShown?: boolean;\n isClearButtonShown?: boolean;\n isDropdownArrowShown?: boolean;\n onBackButtonClick?: ComponentProps<typeof IconButton>['onAction'];\n onClearButtonClick?: ComponentProps<typeof IconButton>['onAction'];\n onDropdownArrowClick?: ComponentProps<typeof DropdownArrow>['onClick'];\n};\n\nexport function SelectSingleField({\n children,\n hasInsideLabel,\n isBackButtonShown,\n isClearButtonShown,\n isDropdownArrowShown,\n onBackButtonClick,\n onClearButtonClick,\n onDropdownArrowClick,\n ...passThroughTextFieldProps\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const { isDisabled, isLoading } = useFormFieldContext();\n\n const startContent = isBackButtonShown ? (\n <IconButton\n aria-label={translations.selectMultiple_back()}\n size=\"xs\"\n variant=\"ghost\"\n onAction={onBackButtonClick}>\n <NavLeft />\n </IconButton>\n ) : null;\n\n const endContent = isLoading ? undefined : (\n <>\n {isClearButtonShown && (\n <IconButton\n aria-label={translations.formControl_clear()}\n size=\"sm\"\n variant=\"ghost\"\n onAction={onClearButtonClick}>\n <CancelS />\n </IconButton>\n )}\n {isDropdownArrowShown && (\n <DropdownArrow\n isDisabled={isDisabled}\n onClick={onDropdownArrowClick}\n testId={`${passThroughTextFieldProps.testId}_dropdownarrow`}\n />\n )}\n </>\n );\n\n return (\n <TextField\n startContent={startContent}\n mainContent={children}\n endContent={endContent}\n {...passThroughTextFieldProps}\n />\n );\n}\n","import { LiveRegion } from '#UNSAFE_LiveRegion';\nimport { TextFieldInput } from '#UNSAFE_TextField';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { ComponentProps, Ref } from 'preact';\n\ntype PickedTextFieldInputProps = Pick<\n ComponentProps<typeof TextFieldInput>,\n | 'aria-controls'\n | 'aria-describedby'\n | 'aria-expanded'\n | 'aria-invalid'\n | 'aria-label'\n | 'hasEmptyLabel'\n | 'hasInsideLabel'\n | 'id'\n | 'isRequired'\n | 'onBlur'\n | 'onFocus'\n | 'onInput'\n | 'onKeyDown'\n | 'onKeyUp'\n | 'placeholder'\n | 'textAlign'\n | 'variant'\n> & {\n inputRef?: Ref<HTMLInputElement>;\n};\n\ntype Props = PickedTextFieldInputProps & {\n displayValue: string;\n isAddToListShown: boolean;\n isAdvancedSearchShown: boolean;\n isUserFiltering: boolean;\n liveRegionText?: string;\n userInput?: string;\n virtualKeyboard?: 'auto' | 'email' | 'number' | 'search' | 'tel' | 'text' | 'url';\n};\n\nexport function SelectSingleFieldInput({\n displayValue,\n isAddToListShown,\n isAdvancedSearchShown,\n isUserFiltering,\n liveRegionText,\n userInput,\n virtualKeyboard,\n ...passThroughTextFieldInputProps\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const addToListAccText = translations.select_addToListAvailable();\n const advancedSearchAccText = translations.select_moreSearchOptionsAvailable();\n const combinedLiveRegionText = `${liveRegionText} ${isAddToListShown ? addToListAccText : ''} ${\n isAdvancedSearchShown ? advancedSearchAccText : ''\n }`;\n\n return (\n <>\n <TextFieldInput\n {...passThroughTextFieldInputProps}\n hasEndContent={true}\n aria-autocomplete=\"list\"\n autoComplete=\"off\"\n role=\"combobox\"\n spellcheck={false}\n type={virtualKeyboard === 'auto' ? 'search' : virtualKeyboard}\n value={isUserFiltering ? userInput : displayValue}\n />\n <LiveRegion>{combinedLiveRegionText}</LiveRegion>\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useMemo } from 'preact/hooks';\n\nimport { renderItemText } from '#PRIVATE_SelectCommon';\nimport { Item } from '#utils/UNSAFE_dataProvider';\nimport { ItemTextType } from '#utils/UNSAFE_selectUtils';\n\nexport function useDisplayValue<K, D>(\n itemText: ItemTextType<K, D>,\n valueItem?: Item<K, D>,\n componentName: 'SelectSingle' | 'InlineSelectSingle' = 'SelectSingle'\n): string {\n // create the text displayed in the field from the selected value\n const displayValue = useMemo(() => {\n return valueItem === undefined ? '' : renderItemText(valueItem, itemText, componentName) ?? '';\n }, [valueItem, itemText, componentName]);\n\n return displayValue;\n}\n"],"names":["useTranslationBundle","useFormFieldContext","_jsx","IconButton","NavLeft","_jsxs","_Fragment","CancelS","DropdownArrow","TextField","TextFieldInput","LiveRegion","useMemo","renderItemText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDM,SAAU,iBAAiB,CAAC,EAChC,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,GAAG,yBAAyB,EACtB,EAAA;AACN,IAAA,MAAM,YAAY,GAAGA,yCAAoB,CAAa,0BAA0B,CAAC,CAAC;IAClF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAGC,uCAAmB,EAAE,CAAC;AAExD,IAAA,MAAM,YAAY,GAAG,iBAAiB,IACpCC,cAAA,CAACC,qBAAU,EAAA,EAAA,YAAA,EACG,YAAY,CAAC,mBAAmB,EAAE,EAC9C,IAAI,EAAC,IAAI,EACT,OAAO,EAAC,OAAO,EACf,QAAQ,EAAE,iBAAiB,EAC3B,QAAA,EAAAD,cAAA,CAACE,kBAAO,EAAA,EAAA,CAAG,GACA,IACX,IAAI,CAAC;AAET,IAAA,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,IACtCC,eAAA,CAAAC,mBAAA,EAAA,EAAA,QAAA,EAAA,CACG,kBAAkB,KACjBJ,cAAC,CAAAC,qBAAU,EACG,EAAA,YAAA,EAAA,YAAY,CAAC,iBAAiB,EAAE,EAC5C,IAAI,EAAC,IAAI,EACT,OAAO,EAAC,OAAO,EACf,QAAQ,EAAE,kBAAkB,EAAA,QAAA,EAC5BD,cAAC,CAAAK,kBAAO,EAAG,EAAA,CAAA,EAAA,CACA,CACd,EACA,oBAAoB,KACnBL,cAAA,CAACM,6BAAa,EAAA,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,oBAAoB,EAC7B,MAAM,EAAE,CAAG,EAAA,yBAAyB,CAAC,MAAM,CAAgB,cA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AsB,EACtB,gBAAuD,cAAc,EAAA;;AAGrE,IAAA,MAAM,YAAY,GAAGC,aAAO,CAAC,MAAK;QAChC,OAAO,SAAS,KAAK,SAAS,GAAG,EAAE,GAAGC,8BAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;KAChG,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;AAEzC,IAAA,OAAO,YAAY,CAAC;AACtB;;;;;;"}
@@ -0,0 +1,104 @@
1
+ /* @oracle/oraclejet-preact: undefined */
2
+ 'use strict';
3
+
4
+ var hooks = require('preact/hooks');
5
+ var usePress = require('./usePress-886180e4.js');
6
+ var mergeProps = require('./mergeProps-e3da7237.js');
7
+ var classNames = require('./classNames-c14c6ef3.js');
8
+ var useInteractionStyle = require('./useInteractionStyle-c203a8a0.js');
9
+ var useComponentTheme = require('./useComponentTheme-082fc8e4.js');
10
+ var preact = require('preact');
11
+ var mergeInterpolations = require('./mergeInterpolations-6727b536.js');
12
+ var flexitem = require('./flexitem-fee13e26.js');
13
+ var UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme = require('./UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js');
14
+ var useUser = require('./useUser-1295b5cb.js');
15
+
16
+ /**
17
+ * @license
18
+ * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
19
+ * Licensed under The Universal Permissive License (UPL), Version 1.0
20
+ * as shown at https://oss.oracle.com/licenses/upl/
21
+ * @ignore
22
+ */
23
+ /**
24
+ * Context used to pass navlist information without having to pass it to navlist children props.
25
+ * We want to communicate information down to any interested navlist item children.
26
+ */
27
+ const NavigationListContext = preact.createContext(null);
28
+
29
+ /**
30
+ * @license
31
+ * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
32
+ * Licensed under The Universal Permissive License (UPL), Version 1.0
33
+ * as shown at https://oss.oracle.com/licenses/upl/
34
+ * @ignore
35
+ */
36
+ /**
37
+ * Utility hook for consuming the NavigationListContext
38
+ *
39
+ * @returns The value of NavigationListContext provider
40
+ */
41
+ function useNavigationListContext() {
42
+ return hooks.useContext(NavigationListContext);
43
+ }
44
+
45
+ const flexItemStyleInterpolations = mergeInterpolations.mergeInterpolations([
46
+ ...Object.values(flexitem.flexitemInterpolations)
47
+ ]);
48
+ const { class: labelContainerFlexItemClasses, ...labelContainerFlexItemStyle } = flexItemStyleInterpolations({
49
+ alignSelf: 'center'
50
+ });
51
+ function useNavigationListItem({ itemKey }) {
52
+ const { onSelectionChange, selection, currentKey, showFocusRing, navigationListItemPrefix, edge, display } = useNavigationListContext();
53
+ //Selection and focus state
54
+ const isCurrent = currentKey === itemKey;
55
+ const isSelected = selection === itemKey;
56
+ const isIconOnly = display === 'icons' ? true : false;
57
+ const isEdgeEnd = edge === 'end' ? true : false;
58
+ //Styling
59
+ const { interactionProps, applyPseudoHoverStyle, applyHoverStyle, applyActiveStyle } = useInteractionStyle.useInteractionStyle();
60
+ const { direction } = useUser.useUser();
61
+ const isRtl = direction === 'rtl';
62
+ const { classes: listItemClasses, styles: { labelContainerClasses, navigationItemStackedBadge, navigationItemStackedBadgeRtl, startIconStacked } } = useComponentTheme.useComponentTheme(UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme.NavigationListItemRedwoodTheme, {
63
+ focusRing: showFocusRing ? 'isFocusRing' : 'notFocusRing',
64
+ current: isCurrent ? 'isCurrent' : 'notCurrtent',
65
+ selected: isSelected ? 'isSelected' : 'notSelected',
66
+ direction: isRtl ? 'isRtl' : 'notRtl',
67
+ hybridHover: applyHoverStyle ? 'isHybridHover' : 'notHybridHover',
68
+ pseudoHover: applyPseudoHoverStyle ? 'isPseudoHover' : 'notPseudoHover',
69
+ active: applyActiveStyle ? 'isActive' : 'notActive',
70
+ edgeEnd: edge === 'end' ? 'isEnd' : 'notEnd',
71
+ iconOnly: isIconOnly ? 'isIconOnly' : 'notIconOnly'
72
+ });
73
+ const navigationItemIconOnlyClasses = classNames.classNames([startIconStacked]);
74
+ const navigationItemStackedBadgeClasses = classNames.classNames([
75
+ navigationItemStackedBadge,
76
+ direction === 'rtl' && navigationItemStackedBadgeRtl
77
+ ]);
78
+ //Item handlers
79
+ const handlePress = hooks.useCallback(() => {
80
+ onSelectionChange?.({ value: itemKey, reason: 'pointer' });
81
+ }, [itemKey, onSelectionChange]);
82
+ //Legacy navlist makes selection on keyDown, but since preact tabbar made selection after keyUp, will do the same
83
+ //for preact navlist
84
+ const { pressProps } = usePress.usePress(handlePress);
85
+ return {
86
+ itemId: navigationListItemPrefix + itemKey,
87
+ itemHandlers: mergeProps.mergeProps(interactionProps, pressProps /*,onFocusProps*/),
88
+ itemClasses: classNames.classNames([listItemClasses]),
89
+ isSelected,
90
+ labelContainerClasses: classNames.classNames([labelContainerClasses, labelContainerFlexItemClasses]),
91
+ labelContainerStyle: labelContainerFlexItemStyle,
92
+ isIconOnly,
93
+ isEdgeEnd,
94
+ stackedBadgeClasses: classNames.classNames([navigationItemStackedBadgeClasses]),
95
+ iconOnlyClasses: classNames.classNames([navigationItemIconOnlyClasses]),
96
+ isCurrent,
97
+ showFocusRing
98
+ };
99
+ }
100
+
101
+ exports.NavigationListContext = NavigationListContext;
102
+ exports.useNavigationListContext = useNavigationListContext;
103
+ exports.useNavigationListItem = useNavigationListItem;
104
+ //# sourceMappingURL=useNavigationListItem-b97e76d5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavigationListItem-b97e76d5.js","sources":["../../src/UNSAFE_NavigationListCommon/NavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListItem.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { createContext } from 'preact';\nimport { NavigationListProps } from './NavigationListProps';\n\ntype CurrentKeyDetail<K> = {\n value: K;\n};\n\nexport type NavigationListContextProps<K extends string | number> = Pick<\n NavigationListProps<K>,\n 'selection' | 'onSelectionChange' | 'onRemove' | 'edge' | 'display'\n> & {\n currentKey?: K;\n showFocusRing: boolean;\n onCurrentKeyChange:\n | (<K extends string | number>(detail: CurrentKeyDetail<K>) => void)\n | undefined;\n navigationListItemPrefix: string;\n};\n\n/**\n * Context used to pass navlist information without having to pass it to navlist children props.\n * We want to communicate information down to any interested navlist item children.\n */\n\nconst NavigationListContext = createContext<NavigationListContextProps<string | number>>(null!);\n\nexport { NavigationListContext };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useContext } from 'preact/hooks';\nimport { NavigationListContext } from './NavigationListContext';\n\n/**\n * Utility hook for consuming the NavigationListContext\n *\n * @returns The value of NavigationListContext provider\n */\nfunction useNavigationListContext() {\n return useContext(NavigationListContext);\n}\n\nexport { useNavigationListContext };\n","import { useCallback } from 'preact/hooks';\n\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useInteractionStyle } from '../hooks/UNSAFE_useInteractionStyle';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { useNavigationListContext } from './useNavigationListContext';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport {\n NavigationListItemStyles,\n NavigationListItemVariantOptions\n} from '../UNSAFE_NavigationList/themes/NavigationListItemStyles.css';\nimport { NavigationListItemRedwoodTheme } from './themes/redwood/NavigationListItemTheme';\nimport { useUser } from '../hooks/UNSAFE_useUser';\n\nconst flexItemStyleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n]);\nconst { class: labelContainerFlexItemClasses, ...labelContainerFlexItemStyle } =\n flexItemStyleInterpolations({\n alignSelf: 'center'\n });\n\nexport function useNavigationListItem<K extends string | number>({ itemKey }: { itemKey: K }) {\n const {\n onSelectionChange,\n selection,\n currentKey,\n showFocusRing,\n navigationListItemPrefix,\n edge,\n display\n } = useNavigationListContext();\n\n //Selection and focus state\n const isCurrent = currentKey === itemKey;\n\n const isSelected = selection === itemKey;\n\n const isIconOnly = display === 'icons' ? true : false;\n const isEdgeEnd = edge === 'end' ? true : false;\n\n //Styling\n const { interactionProps, applyPseudoHoverStyle, applyHoverStyle, applyActiveStyle } =\n useInteractionStyle();\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const {\n classes: listItemClasses,\n styles: {\n labelContainerClasses,\n navigationItemStackedBadge,\n navigationItemStackedBadgeRtl,\n startIconStacked\n }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme,\n {\n focusRing: showFocusRing ? 'isFocusRing' : 'notFocusRing',\n current: isCurrent ? 'isCurrent' : 'notCurrtent',\n selected: isSelected ? 'isSelected' : 'notSelected',\n direction: isRtl ? 'isRtl' : 'notRtl',\n hybridHover: applyHoverStyle ? 'isHybridHover' : 'notHybridHover',\n pseudoHover: applyPseudoHoverStyle ? 'isPseudoHover' : 'notPseudoHover',\n active: applyActiveStyle ? 'isActive' : 'notActive',\n edgeEnd: edge === 'end' ? 'isEnd' : 'notEnd',\n iconOnly: isIconOnly ? 'isIconOnly' : 'notIconOnly'\n }\n );\n\n const navigationItemIconOnlyClasses = classNames([startIconStacked]);\n\n const navigationItemStackedBadgeClasses = classNames([\n navigationItemStackedBadge,\n direction === 'rtl' && navigationItemStackedBadgeRtl\n ]);\n\n //Item handlers\n const handlePress = useCallback(() => {\n onSelectionChange?.({ value: itemKey as K, reason: 'pointer' });\n }, [itemKey, onSelectionChange]);\n\n //Legacy navlist makes selection on keyDown, but since preact tabbar made selection after keyUp, will do the same\n //for preact navlist\n const { pressProps } = usePress(handlePress);\n\n return {\n itemId: navigationListItemPrefix + itemKey,\n itemHandlers: mergeProps(interactionProps, pressProps /*,onFocusProps*/),\n itemClasses: classNames([listItemClasses]),\n isSelected,\n labelContainerClasses: classNames([labelContainerClasses, labelContainerFlexItemClasses]),\n labelContainerStyle: labelContainerFlexItemStyle,\n isIconOnly,\n isEdgeEnd,\n stackedBadgeClasses: classNames([navigationItemStackedBadgeClasses]),\n iconOnlyClasses: classNames([navigationItemIconOnlyClasses]),\n isCurrent,\n showFocusRing\n };\n}\n"],"names":["createContext","useContext","mergeInterpolations","flexitemInterpolations","useInteractionStyle","useUser","useComponentTheme","NavigationListItemRedwoodTheme","classNames","useCallback","usePress","mergeProps"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAqBH;;;AAGG;AAEH,MAAM,qBAAqB,GAAGA,oBAAa,CAA8C,IAAK;;AChC9F;;;;;;AAMG;AAKH;;;;AAIG;AACH,SAAS,wBAAwB,GAAA;AAC/B,IAAA,OAAOC,gBAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C;;ACAA,MAAM,2BAA2B,GAAGC,uCAAmB,CAAgB;AACrE,IAAA,GAAG,MAAM,CAAC,MAAM,CAACC,+BAAsB,CAAC;AACzC,CAAA,CAAC,CAAC;AACH,MAAM,EAAE,KAAK,EAAE,6BAA6B,EAAE,GAAG,2BAA2B,EAAE,GAC5E,2BAA2B,CAAC;AAC1B,IAAA,SAAS,EAAE,QAAQ;AACpB,CAAA,CAAC,CAAC;AAEW,SAAA,qBAAqB,CAA4B,EAAE,OAAO,EAAkB,EAAA;AAC1F,IAAA,MAAM,EACJ,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,aAAa,EACb,wBAAwB,EACxB,IAAI,EACJ,OAA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C,CAAC,CAAC;IAErE,MAAM,iCAAiC,GAAGA,qBAAU,CAAC;QACnD,0BAA0B;QAC1B,SAAS,KAAK,KAAK,IAAI,6BAA6B;AACrD,KAAA,CAAC,CAAC;;AAGH,IAAA,MAAM,WAAW,GAAGC,iBAAW,CAAC,MAAK;AACnC,QAAA,iBAAiB,GAAG,EAAE,KAAK,EAAE,OAAY,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAClE,KAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;;;IAIjC,MAAM,EAAE,UAAU,EAAE,GAAGC,iBAAQ,CAAC,WAAW,CAAC,CAAC;IAE7C,OAAO;QACL,MAAM,EAAE,wBAAwB,GAAG,OAAO;QAC1C,YAAY,EAAEC,qBAAU,CAAC,gBAAgB,EAAE,UAAU,mBAAmB;AACxE,QAAA,WAAW,EAAEH,qBAAU,CAAC,CAAC,eAAe,CAAC,CAAC;QAC1C,UAAU;QACV,qBAAqB,EAAEA,qBAAU,CAAC,CAAC,qBAAqB,EAAE,6BAA6B,CAAC,CAAC;AACzF,QAAA,mBAAmB,EAAE,2BAA2B;QAChD,UAAU;QACV,SAAS;AACT,QAAA,mBAAmB,EAAEA,qBAAU,CAAC,CAAC,iCAAiC,CAAC,CAAC;AACpE,QAAA,eAAe,EAAEA,qBAAU,CAAC,CAAC,6BAA6B,CAAC,CAAC;QAC5D,SAAS;QACT,aAAa;KACd,CAAC;AACJ;;;;;;"}
@@ -37,8 +37,13 @@ function renderItemText(item, itemText, componentName) {
37
37
  // if item-text is a string and the data has the specified field, return it;
38
38
  // otherwise log an error
39
39
  if (typeof itemText === 'string') {
40
- if (Object.prototype.hasOwnProperty.call(item.data, itemText)) {
41
- const retData = item.data[itemText];
40
+ // JET-78134: in 26C rc0 preflight, line type is not editable in PRC
41
+ // Some JS applications incorrectly pass {} as valueItem/value-item instead of null
42
+ // or leaving it unset for the empty state. Older releases already handled that misconfiguration
43
+ // by logging this custom error; keep that behavior and avoid throwing when item.data is missing.
44
+ const itemData = item.data;
45
+ if (itemData != null && Object.prototype.hasOwnProperty.call(itemData, itemText)) {
46
+ const retData = itemData[itemText];
42
47
  return String(retData);
43
48
  }
44
49
  logger.error(`${componentName}: itemText specifies field that does not exist: ${itemText}`);
@@ -499,4 +504,4 @@ exports.preventDefaultForCurrentTarget = preventDefaultForCurrentTarget;
499
504
  exports.renderItemText = renderItemText;
500
505
  exports.useCollectionRenderer = useCollectionRenderer;
501
506
  exports.useSelectCommon = useSelectCommon;
502
- //# sourceMappingURL=useSelectCommon-b0d7feb3.js.map
507
+ //# sourceMappingURL=useSelectCommon-27afecfa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSelectCommon-27afecfa.js","sources":["../../src/PRIVATE_SelectCommon/itemTextUtils.ts","../../src/PRIVATE_SelectCommon/DefaultList.tsx","../../src/PRIVATE_SelectCommon/eventUtils.ts","../../src/PRIVATE_SelectCommon/DropdownArrow.tsx","../../src/PRIVATE_SelectCommon/DropdownList.tsx","../../src/PRIVATE_SelectCommon/EmptyResults.tsx","../../src/PRIVATE_SelectCommon/selectUtils.ts","../../src/PRIVATE_SelectCommon/useCollectionRenderer.ts","../../src/PRIVATE_SelectCommon/useSelectCommon.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { Item } from '#utils/UNSAFE_dataProvider';\nimport { error } from '#utils/UNSAFE_logger';\nimport { ItemTextFunctionType, ItemTextType } from '#utils/UNSAFE_selectUtils';\n\nexport type ComponentName = 'InlineSelectSingle' | 'SelectSingle' | 'SelectMultiple';\n\nexport function renderItemText<K, D>(\n item: Item<K, D>,\n itemText: ItemTextType<K, D>,\n componentName: ComponentName\n) {\n // if item-text is a string and the data has the specified field, return it;\n // otherwise log an error\n if (typeof itemText === 'string') {\n // JET-78134: in 26C rc0 preflight, line type is not editable in PRC\n // Some JS applications incorrectly pass {} as valueItem/value-item instead of null\n // or leaving it unset for the empty state. Older releases already handled that misconfiguration\n // by logging this custom error; keep that behavior and avoid throwing when item.data is missing.\n const itemData = item.data;\n if (itemData != null && Object.prototype.hasOwnProperty.call(itemData, itemText)) {\n const retData = itemData[itemText];\n return String(retData);\n }\n error(`${componentName}: itemText specifies field that does not exist: ${itemText}`);\n // return undefined if the field doesn't exist\n return undefined;\n }\n // if item-text is a function, call it to create a display label\n return (itemText as ItemTextFunctionType<K, D>)(item);\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentChildren, ComponentProps } from 'preact';\n\nimport { List } from '#PRIVATE_List';\nimport type { DataState, ListItemRendererContext, Metadata } from '#UNSAFE_Collection';\nimport { Flex } from '#UNSAFE_Flex';\nimport { HighlightText } from '#UNSAFE_HighlightText';\nimport { ListItemText } from '#UNSAFE_ListItemLayout';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\nimport type { Keys } from '#utils/UNSAFE_keys';\nimport type { ItemTextType } from '#utils/UNSAFE_selectUtils';\nimport { useCallback, useMemo } from 'preact/hooks';\nimport { type ComponentName, renderItemText } from './itemTextUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype ListProps<K extends string | number, D> = ComponentProps<typeof List<K, D>>;\ntype PickedPropsFromList = Pick<\n ComponentProps<typeof List>,\n 'aria-label' | 'currentItemVariant' | 'selectionMode'\n>;\n\n// pick the props from the ListItemContext instead of extending it directly so that we\n// don't automatically expose any new props that may be added to it\ntype PickedPropsFromListItemContext<K, D> = Pick<\n ListItemRendererContext<K, D>,\n 'data' | 'index' | 'selector'\n>;\ntype ItemRendererSelectionDetail<K> = {\n value: Set<K>;\n target: EventTarget | null;\n};\ntype ItemRendererMetadata<K> = Pick<Metadata<K>, 'key' | 'suggestion'>;\ntype ItemRendererProps<K, D> = PickedPropsFromListItemContext<K, D> & {\n metadata: ItemRendererMetadata<K>;\n searchText?: string;\n selectedKeys?: Set<K>;\n onSelectionChange: (detail: ItemRendererSelectionDetail<K>) => void;\n};\n\ntype DefaultListCurrentKeyDetail<K> = { value: K };\ntype DefaultListItemActionDetail<K, D> = { context: Item<K, D> };\ntype DefaultListSelectionDetail<K> = { value: Set<K> };\n\ntype Props<K extends string | number, D extends Record<string, any>> = PickedPropsFromList & {\n itemRenderer?: (itemRendererProps: ItemRendererProps<K, D>) => ComponentChildren;\n itemText: ItemTextType<K, D>;\n // props from List that we constrain or unconstrain\n currentKey?: K;\n data?: DataState<K, D> | null;\n onCurrentKeyChange: (detail: DefaultListCurrentKeyDetail<K>) => void;\n onItemAction?: (detail: DefaultListItemActionDetail<K, D>) => void;\n onLoadRange?: ComponentProps<typeof List>['onLoadRange'];\n onSelectionChange?: (detail: DefaultListSelectionDetail<K>) => void;\n searchText?: string;\n selectedKeys?: Set<K>;\n // props for logging purposes\n componentName: ComponentName;\n};\n\nconst noOp = () => {};\n\nexport function DefaultList<K extends string | number, D extends Record<string, any>>({\n 'aria-label': ariaLabel,\n componentName,\n currentItemVariant,\n currentKey,\n data,\n itemRenderer,\n itemText,\n onCurrentKeyChange,\n onItemAction,\n onLoadRange = noOp,\n onSelectionChange,\n searchText,\n selectedKeys,\n selectionMode\n}: Props<K, D>) {\n const listItemRenderer = useCallback(\n (listItemContext: ListItemRendererContext<K, D>) => {\n // specify the listItemContext props that we want to expose individually instead of\n // spreading the whole object so that we don't automatically include any new props that\n // may be added to it\n const itemRendererProps: ItemRendererProps<K, D> = {\n data: listItemContext.data,\n index: listItemContext.index,\n metadata: listItemContext.metadata,\n selector: listItemContext.selector,\n searchText,\n selectedKeys,\n onSelectionChange: ({ value }) => {\n onSelectionChange?.({ value });\n }\n };\n const itemContext = {\n data: listItemContext.data,\n key: listItemContext.metadata.key,\n metadata: listItemContext.metadata\n };\n return itemRenderer ? (\n itemRenderer(itemRendererProps)\n ) : (\n <Flex align=\"center\">\n {listItemContext.selector && (\n <div class={dropdownStyles.selectorWrapper}>{listItemContext.selector()}</div>\n )}\n <div\n class={\n selectionMode === 'single'\n ? dropdownStyles.singleSelectItem\n : dropdownStyles.multiSelectItem\n }>\n <ListItemText variant=\"primary\">\n <HighlightText matchText={searchText}>\n {renderItemText(itemContext, itemText, componentName) as string}\n </HighlightText>\n </ListItemText>\n </div>\n </Flex>\n );\n },\n [\n componentName,\n itemRenderer,\n itemText,\n onSelectionChange,\n searchText,\n selectedKeys,\n selectionMode\n ]\n );\n\n const keys = useMemo(() => {\n return { all: false, keys: selectedKeys ?? new Set<K>() };\n }, [selectedKeys]) as Keys<K>;\n\n const currentItemOverride = useMemo(\n () => (currentKey !== undefined ? { rowKey: currentKey } : undefined),\n [currentKey]\n );\n const handleItemAction = useCallback<NonNullable<ListProps<K, D>['onItemAction']>>(\n ({ context: { data, metadata } }) => {\n onItemAction?.({ context: { data, key: metadata.key, metadata } });\n },\n [onItemAction]\n );\n const handleSelectionChange = useCallback<NonNullable<ListProps<K, D>['onSelectionChange']>>(\n ({ value }) => {\n onSelectionChange?.({ value: new Set(value.keys?.values()) });\n },\n [onSelectionChange]\n );\n\n return (\n <List<K, D>\n aria-label={ariaLabel}\n allowTabbableMode={false}\n currentItemVariant={currentItemVariant}\n currentItemOverride={currentItemOverride}\n data={data ?? null}\n onPersistCurrentItem={onCurrentKeyChange}\n onItemAction={handleItemAction}\n onLoadRange={onLoadRange}\n onSelectionChange={handleSelectionChange}\n role=\"listbox\"\n selectedKeys={keys}\n selectionMode={selectionMode}>\n {(context: ListItemRendererContext<K, D>) => listItemRenderer(context)}\n </List>\n );\n}\n","export const isSimpleClick = (event: MouseEvent) => {\n return event.button === 0 && !event.ctrlKey;\n};\n\nexport const preventDefault = (event: Event) => {\n event.preventDefault();\n};\n\nexport const preventDefaultForCurrentTarget = (event: MouseEvent) => {\n if (event.currentTarget === event.target) {\n event.preventDefault();\n }\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useCallback } from 'preact/hooks';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { DropdownArrowIcon } from '../PRIVATE_ThemedIcons/DropdownArrowIcon';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { ButtonLabelLayoutRedwoodTheme } from '#UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme';\nimport type { ButtonLabelLayoutVariantOptions } from '#UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { BaseButtonRedwoodTheme } from '#UNSAFE_BaseButton/themes/redwood/BaseButtonTheme';\n\ntype Props = TestIdProps & {\n isDisabled?: boolean;\n onClick?: () => void;\n};\n\nconst noop = () => {};\n\nexport function DropdownArrow({ isDisabled = false, onClick, testId }: Props) {\n const { classes } = useComponentTheme<ButtonLabelLayoutVariantOptions>(\n ButtonLabelLayoutRedwoodTheme,\n { size: 'sm' }\n );\n const { baseTheme } = useComponentTheme(BaseButtonRedwoodTheme);\n\n const preventDefault = useCallback((event: Event) => {\n event.preventDefault();\n }, []);\n const { pressProps } = usePress(onClick ?? noop, { isDisabled });\n\n // TODO: JET-67410 replace this with a icon button\n const styleClasses = classNames([\n classes,\n baseTheme,\n dropdownStyles.arrow.base,\n isDisabled ? dropdownStyles.arrow.disabled : dropdownStyles.arrow.enabled\n ]);\n\n const testIdProps = useTestId(testId);\n\n return (\n <span\n aria-hidden=\"true\"\n class={styleClasses}\n tabIndex={-1}\n onMouseDown={preventDefault}\n {...testIdProps}\n {...pressProps}>\n <DropdownArrowIcon />\n </span>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentChildren, ComponentProps, Ref } from 'preact';\n\nimport { CollectionInteractionContext } from '#hooks/UNSAFE_useCollectionInteractionContext';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\ntype Props = Pick<ComponentProps<'div'>, 'id' | 'onKeyDown'> & {\n children?: ComponentChildren;\n dropdownListRef?: Ref<HTMLDivElement>;\n hasTopGap?: boolean;\n hasBottomGap?: boolean;\n isLoading?: boolean;\n};\n\nexport function DropdownList({\n children,\n id,\n dropdownListRef,\n hasTopGap = true,\n hasBottomGap = true,\n isLoading = false,\n onKeyDown\n}: Props) {\n const styleClasses = classNames([\n dropdownStyles.list.base,\n hasTopGap && dropdownStyles.list.topGap,\n hasBottomGap && dropdownStyles.list.bottomGap,\n isLoading && dropdownStyles.list.loading\n ]);\n return (\n <CollectionInteractionContext.Provider value={'embedded'}>\n <div\n ref={dropdownListRef}\n class={styleClasses}\n id={id}\n onMouseDown={preventDefaultForCurrentTarget}\n onKeyDown={onKeyDown}>\n {children}\n </div>\n </CollectionInteractionContext.Provider>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { Text } from '#UNSAFE_Text';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { preventDefaultForCurrentTarget } from './eventUtils';\nimport { dropdownStyles } from './themes/dropdownStyles.css';\n\nexport function EmptyResults() {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n // call preventDefault for mousedown on this div so that focus does not transfer from\n // the input\n return (\n <div class={dropdownStyles.results.extraItem} onMouseDown={preventDefaultForCurrentTarget}>\n <Text variant=\"primary\">{translations.select_noMatchesFound()}</Text>\n </div>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { DataState } from '#UNSAFE_Collection';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nexport function isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n\n/**\n * Helper function to determine whether the current device is a phone\n * @returns true if running on a phone, false otherwise\n */\nexport function isPhone() {\n return getClientHints().deviceType === 'phone';\n}\n\n/**\n * Helper function to determine whether the current device is a tablet\n * @returns true if running on a tablet, false otherwise\n */\nexport function isTablet() {\n return getClientHints().deviceType === 'tablet';\n}\n\nexport function isBeforeDataFetch<K, D>(data: DataState<K, D>) {\n return data.sizePrecision === 'atLeast' && data.totalSize === 0;\n}\n\nexport function isSearchTextEmptyOrUndefined(searchText?: string) {\n return searchText === undefined || searchText.length === 0;\n}\n\nexport function isSearchClearedFirstTime(prevSearchText?: string, searchText?: string) {\n return prevSearchText === undefined && searchText === '';\n}\n\n/**\n * Extract keys from a value items array.\n *\n * @param valueItems The value items from which the keys are to be extracted\n * @returns The set of keys\n */\nexport function createKeysFromValueItems<K, D>(valueItems?: Item<K, D>[]) {\n const keys = valueItems?.reduce((accumKeys, currentItem) => {\n accumKeys.add(currentItem.key);\n return accumKeys;\n }, new Set<K>());\n return keys;\n}\n","import type { DataState } from '#UNSAFE_Collection';\nimport type { Item } from '#utils/UNSAFE_dataProvider';\nimport { useMemo } from 'preact/compat';\n\ntype Key = string | number;\ntype Data = Record<string, any>;\n\ntype UseCollectionRendererCommonParams<K> = {\n currentKey?: K;\n searchText?: string;\n selectedKeys?: Set<K>;\n onCurrentKeyChange: (detail: { value?: K }) => void;\n};\n\nexport type UseCollectionRendererSelectSingleParams<K, D> = UseCollectionRendererCommonParams<K> & {\n onItemAction: (detail: { context: Item<K, D> }) => void;\n onSelectedKeysChange?: never;\n selectedOnlyData?: never;\n};\n\nexport type UseCollectionRendererSelectMultipleParams<K, D> =\n UseCollectionRendererCommonParams<K> & {\n onItemAction?: never;\n onSelectedKeysChange: (detail: { value: Set<K> }) => void;\n selectedOnlyData?: DataState<K, D>;\n };\n\ntype UseCollectionRendererParams<K, D> =\n | UseCollectionRendererSelectSingleParams<K, D>\n | UseCollectionRendererSelectMultipleParams<K, D>;\n\ntype CommonCollectionRendererContext<K extends Key> = {\n searchText?: string;\n currentRowKeyOverride?: K;\n onPersistCurrentRowKey: (detail: { value?: K }) => void;\n selected?: Set<K>;\n};\n\nexport type SelectSingleCollectionRendererContext<\n K extends Key,\n D extends Data\n> = CommonCollectionRendererContext<K> & {\n onRowAction: (detail: { context: Item<K, D> }) => void;\n};\n\nexport type SelectMultipleCollectionRendererContext<\n K extends Key,\n D extends Data\n> = CommonCollectionRendererContext<K> & {\n onSelectedChange: (detail: { value: Set<K> }) => void;\n selectedOnlyData?: DataState<K, D>;\n};\n\ntype CollectionRendererContext<K extends Key, D extends Data> =\n | SelectSingleCollectionRendererContext<K, D>\n | SelectMultipleCollectionRendererContext<K, D>;\n\n// NOTE: We will using a single hook that constructs the collection renderer context for both select single and\n// select multiple. This is ok as they both share most of the properties and differ only in a few areas. So, we will\n// be using function overloading to determine which component is calling the hook (based on the args) and return the\n// correct context.\n\n/**\n * A custom hook that constructs the context for SelectSingle's collectionRenderer.\n * @param params Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>(\n params: UseCollectionRendererSelectSingleParams<K, D>\n): SelectSingleCollectionRendererContext<K, D>;\n\n/**\n * A custom hook that constructs the context for SelectMultiple's collectionRenderer.\n * @param params Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>(\n params: UseCollectionRendererSelectMultipleParams<K, D>\n): SelectMultipleCollectionRendererContext<K, D>;\n\n/**\n * A custom hook that constructs the context for SelectSingle/SelectMultiple's collectionRenderer.\n * @param param0 Parameters for constructing the collection renderer context\n * @returns the CollectionRendererContext object\n */\nexport function useCollectionRenderer<K extends Key, D extends Data>({\n currentKey,\n onCurrentKeyChange,\n onItemAction,\n onSelectedKeysChange,\n searchText,\n selectedKeys,\n selectedOnlyData\n}: UseCollectionRendererParams<K, D>) {\n return useMemo<CollectionRendererContext<K, D>>(() => {\n const common = {\n searchText,\n currentRowKeyOverride: currentKey,\n onPersistCurrentRowKey: onCurrentKeyChange,\n selected: selectedKeys\n } satisfies CommonCollectionRendererContext<K>;\n\n // If onItemAction is present, then we are constructing context for SelectSingle. So,\n // return the context satisfying SelectSingleCollectionRendererContext type.\n if (onItemAction !== undefined)\n return {\n ...common,\n onRowAction: onItemAction\n } satisfies SelectSingleCollectionRendererContext<K, D>;\n\n // If onItemAction is not present, then we are constructing context for SelectMultiple. So,\n // return the context satisfying SelectMultipleCollectionRendererContext type.\n return {\n ...common,\n onSelectedChange: onSelectedKeysChange,\n selectedOnlyData\n } satisfies SelectMultipleCollectionRendererContext<K, D>;\n }, [\n currentKey,\n onCurrentKeyChange,\n onItemAction,\n onSelectedKeysChange,\n searchText,\n selectedKeys,\n selectedOnlyData\n ]);\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\n\nimport type { DataState } from '#UNSAFE_Collection';\nimport type { PositionData } from '#UNSAFE_Floating';\nimport { KEYS, isControlOrFunctionKey } from '#utils/PRIVATE_keyboardUtils';\nimport { allTabbableElements } from '#utils/PRIVATE_tabbableUtils';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { isSimpleClick } from './eventUtils';\n\ntype UseSelectCommonProps<K, D> = {\n data?: DataState<K, D> | null;\n inputRef: RefObject<HTMLElement>;\n isFocused?: boolean;\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n};\n\nexport type CurrentKeyDetail<K> = {\n value?: K;\n};\n\n/**\n * Hook that manages state and behavior for a Select* component. This hook creates state\n * variables and event listeners, returning properties to apply to components internally\n * rendered by a Select* component, as well as state information.\n *\n * @param data Specifies data for the dropdown list.\n * @param inputRef Ref to the input element.\n * @param isFocused Specifies whether the component has focus.\n * @param onFilter Callback function to trigger loading data for the dropdown list,\n * which may or may not be filtered by user entered text.\n *\n * @returns Component state and event listeners.\n */\nexport function useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused,\n onFilter\n}: UseSelectCommonProps<K, D>) {\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const [isDropdownOpen, setDropdownOpen] = useState(false);\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n\n // We only need to push currentRow when we need to override the\n // current row, like when the dropdown is opened and we want to set the initial\n // focused row or when filtering and we want to focus the first row.\n const [currentRowOverride, _setCurrentRowOverride] = useState<{ rowKey?: K }>({\n rowKey: undefined\n });\n // We still need information on what the current row actually is, but we do not need\n // to react to it until certain scenarios like pressing Tab from the dropdown. So, we\n // just store this in a ref.\n const currentRowKeyRef = useRef<K>();\n // When we want to update the currentRowOverride, we also want to keep the currentRowKeyRef\n // in sync as the collection will not call onChanged for this change.\n const setCurrentRowOverride = useCallback((currentRow: { rowKey?: K }) => {\n currentRowKeyRef.current = currentRow.rowKey;\n _setCurrentRowOverride(currentRow);\n }, []);\n const [isUserFiltering, setUserFiltering] = useState(false);\n const [userInput, setUserInput] = useState<string>();\n const [searchText, setSearchText] = useState<string>();\n\n const [prevIsDropdownOpen, setPrevIsDropdownOpen] = useState(isDropdownOpen);\n const [prevIsFocused, setPrevIsFocused] = useState(isFocused);\n const [prevIsUserFiltering, setPrevIsUserFiltering] = useState(isUserFiltering);\n\n const onMouseDown = useCallback(\n (event: MouseEvent) => {\n // const target = event.target as HTMLElement;\n if (event.defaultPrevented || !isSimpleClick(event)) {\n return;\n }\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n // this is needed to focus the input when clicking on the inside label when there is no\n // value; otherwise the component looks focused but doesn't actually have physical focus\n setTimeout(function () {\n inputRef.current?.focus();\n }, 0);\n },\n [inputRef, isDropdownOpen]\n );\n\n const handleDropdownArrowClick = useCallback(() => {\n setDropdownOpen(!isDropdownOpen);\n\n // focus the input so that if the user Tabs afterwards, it loses focus and the dropdown closes\n inputRef.current?.focus();\n }, [inputRef, isDropdownOpen]);\n\n const handleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n switch (event?.type) {\n case 'keydown': {\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.ESC:\n // focus the input when the user cancels out of the dropdown\n inputRef.current?.focus();\n break;\n default:\n break;\n }\n break;\n }\n case 'mousedown':\n // if focus is in the dropdown, focus the input before the dropdown is hidden so that\n // focus will transfer correctly when the target is not focusable;\n // otherwise the text cursor appears in the input again\n if (dropdownRef.current?.contains(document.activeElement)) {\n inputRef.current?.focus();\n }\n break;\n default:\n break;\n }\n }\n },\n [inputRef, isDropdownOpen]\n );\n\n const handleDropdownPosition = useCallback((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n\n const getDropdownTabbableElems = useCallback(() => {\n return isDropdownOpen && dropdownRef.current\n ? allTabbableElements(dropdownRef.current)\n : undefined;\n }, [isDropdownOpen]);\n\n const handleUpDownArrowKeys = useCallback(\n (event: KeyboardEvent) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n } else {\n // JET-64909 - focus / 'current' dropped when arrow keying during loading\n // Transfer physical focus into the dropdown only if the data is present and the dropdown\n // has rendered the data. Otherwise, keep the focus in the field.\n if (data != null) {\n const tabbableElems = getDropdownTabbableElems();\n tabbableElems?.[0]?.focus();\n\n // if there is no current item set, make the first item current\n if (currentRowOverride.rowKey === undefined) {\n setCurrentRowOverride({ rowKey: data.data[0]?.metadata?.key });\n }\n }\n }\n\n // prevent the page from scrolling\n event.preventDefault();\n },\n [currentRowOverride, data, getDropdownTabbableElems, isDropdownOpen, setCurrentRowOverride]\n );\n\n const handleMainFieldKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // const target = event.target as HTMLElement;\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.PAGE_UP:\n case KEYS.PAGE_DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n\n return;\n\n case KEYS.UP:\n case KEYS.DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n break;\n\n case KEYS.ESC:\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n event.preventDefault();\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to stop editing the row when we close\n // the dropdown\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleMainFieldKeyUp = useCallback(\n (event: KeyboardEvent) => {\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.UP:\n case KEYS.DOWN:\n handleUpDownArrowKeys(event);\n break;\n\n default:\n break;\n }\n },\n [handleUpDownArrowKeys]\n );\n\n const handleInput = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n setUserFiltering(true);\n setUserInput(detail.value);\n const str = detail.value;\n setSearchText(str);\n onFilter?.({ searchText: str });\n },\n [isDropdownOpen, onFilter]\n );\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K>) => {\n // when the collection changes the current key, we only want to store the information\n // and not do anything.\n currentRowKeyRef.current = detail.value;\n }, []);\n\n const stopFiltering = useCallback(() => {\n setUserFiltering(false);\n setUserInput('');\n // Set this to `undefined` as this represents the initial state.\n // We need to do this for select-single as we need to highlight different\n // rows based on whether it is the initial dropdown navigation or empty filter navigation.\n setSearchText(undefined);\n }, []);\n\n const updateFiltering = useCallback((value?: string) => {\n setUserFiltering(true);\n setUserInput(value);\n setSearchText(value);\n }, []);\n\n // the user is not actively filtering if the dropdown is closed and the component doesn't\n // have focus\n if (\n prevIsDropdownOpen !== isDropdownOpen ||\n prevIsFocused !== isFocused ||\n prevIsUserFiltering !== isUserFiltering\n ) {\n if (!isDropdownOpen && !isFocused && isUserFiltering) {\n stopFiltering();\n }\n }\n\n // need to call onFilter with undefined searchText when the dropdown opens and the\n // user is NOT filtering\n useEffect(() => {\n if (isDropdownOpen && !isUserFiltering) {\n onFilter?.({ searchText: undefined });\n }\n }, [isDropdownOpen, isUserFiltering, onFilter]);\n\n // when the dropdown closes, reset the isDropdownAbove flag\n if (prevIsDropdownOpen !== isDropdownOpen) {\n if (!isDropdownOpen) {\n setDropdownAbove(false);\n }\n setPrevIsDropdownOpen(isDropdownOpen);\n }\n\n if (prevIsFocused !== isFocused) {\n setPrevIsFocused(isFocused);\n }\n if (prevIsUserFiltering !== isUserFiltering) {\n setPrevIsUserFiltering(isUserFiltering);\n }\n\n return {\n currentRowKeyRef,\n currentRowOverride,\n dropdownRef,\n getDropdownTabbableElems,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n // the field should remain to look focused while the dropdown is open,\n // in case physical focus is in the dropdown\n isFocused: isFocused || isDropdownOpen,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n setCurrentRowOverride,\n setDropdownOpen,\n setUserInput,\n stopFiltering,\n updateFiltering,\n userInput\n };\n}\n"],"names":["error","useCallback","_jsxs","Flex","_jsx","dropdownStyles","ListItemText","HighlightText","useMemo","List","useComponentTheme","ButtonLabelLayoutRedwoodTheme","BaseButtonRedwoodTheme","usePress","classNames","useTestId","DropdownArrowIcon","CollectionInteractionContext","useTranslationBundle","Text","getClientHints","useRef","useState","KEYS","allTabbableElements","isControlOrFunctionKey","useEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;SAQa,cAAc,CAC5B,IAAgB,EAChB,QAA4B,EAC5B,aAA4B,EAAA;;;AAI5B,IAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;;;;;AAKhC,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,QAAQ,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;AAChF,YAAA,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACnC,YAAA,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;SACxB;AACD,QAAAA,YAAK,CAAC,CAAG,EAAA,aAAa,mDAAmD,QAAQ,CAAA,CAAE,CAAC,CAAC;;AAErF,QAAA,OAAO,SAAS,CAAC;KAClB;;AAED,IAAA,OAAQ,QAAuC,CAAC,IAAI,CAAC,CAAC;AACxD;;AC6BA,MAAM,IAAI,GAAG,MAAK,GAAG,CAAC;AAEN,SAAA,WAAW,CAA2D,EACpF,YAAY,EAAE,SAAS,EACvB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,YAA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AChB,kBAAkB;QAClB,WAAW;QACX,wBAAwB;QACxB,wBAAwB;QACxB,yBAAyB;QACzB,sBAAsB;QACtB,WAAW;QACX,sBAAsB;QACtB,oBAAoB;QACpB,qBAAqB;QACrB,eAAe;QACf,cAAc;;;QAGd,SAAS,EAAE,SAAS,IAAI,cAAc;QACtC,eAAe;QACf,YAAY;QACZ,kBAAkB;QAClB,WAAW;QACX,UAAU;QACV,qBAAqB;QACrB,eAAe;QACf,YAAY;QACZ,aAAa;QACb,eAAe;QACf,SAAS;KACV,CAAC;AACJ;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@ import { jsx } from 'preact/jsx-runtime';
3
3
  import { forwardRef } from 'preact/compat';
4
4
  import { u as useHover } from './useHover-85077adb.js';
5
5
  import { u as useActive } from './useActive-fb6d4d52.js';
6
- import { u as useColorScheme } from './useColorScheme-67245285.js';
6
+ import { u as useColorScheme } from './useColorScheme-c4f6caab.js';
7
7
  import { c as classNames } from './classNames-4e12b00d.js';
8
8
  import { d as dimensionInterpolations } from './dimensions-e4fbc23d.js';
9
9
  import { m as mergeInterpolations } from './mergeInterpolations-30cd9a69.js';
@@ -81,4 +81,4 @@ const BaseButton = forwardRef(({ variant, isReadOnly = false, isDisabled = false
81
81
  BaseButton.displayName = 'BaseButton';
82
82
 
83
83
  export { BaseButton as B };
84
- //# sourceMappingURL=BaseButton-243d200f.js.map
84
+ //# sourceMappingURL=BaseButton-41068c85.js.map