@oracle/oraclejet-preact 18.0.13 → 18.0.14

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 (638) hide show
  1. package/amd/TextArea-6b4e1847.js +2 -0
  2. package/amd/TextArea-6b4e1847.js.map +1 -0
  3. package/amd/TextAreaAutosize-be8b4682.js +2 -0
  4. package/amd/{TextAreaAutosize-ac99cd39.js.map → TextAreaAutosize-be8b4682.js.map} +1 -1
  5. package/amd/Theme-redwood/theme.css +216 -216
  6. package/amd/Theme-stable/theme.css +262 -262
  7. package/amd/UNSAFE_TextArea.js +1 -1
  8. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  9. package/cjs/{BaseCardView-ade994f5.js → BaseCardView-5a45e588.js} +2 -2
  10. package/cjs/{BaseCardView-ade994f5.js.map → BaseCardView-5a45e588.js.map} +1 -1
  11. package/cjs/{CardFlexView-6492d995.js → CardFlexView-58228ce4.js} +2 -2
  12. package/cjs/{CardFlexView-6492d995.js.map → CardFlexView-58228ce4.js.map} +1 -1
  13. package/cjs/{CardGridView-d98aa089.js → CardGridView-17683602.js} +2 -2
  14. package/cjs/{CardGridView-d98aa089.js.map → CardGridView-17683602.js.map} +1 -1
  15. package/cjs/ExpandableList-eb37ee5c.js +1 -1
  16. package/cjs/GroupLoadingIndicator-5940d185.js +1 -1
  17. package/cjs/{Indexer-72430806.js → Indexer-b5ca1d0c.js} +2 -2
  18. package/cjs/{Indexer-72430806.js.map → Indexer-b5ca1d0c.js.map} +1 -1
  19. package/cjs/{List-0dc2c4c4.js → List-877077ab.js} +3 -4
  20. package/cjs/{List-0dc2c4c4.js.map → List-877077ab.js.map} +1 -1
  21. package/cjs/{ListView-17b8250d.js → ListView-98983aa2.js} +2 -2
  22. package/cjs/{ListView-17b8250d.js.map → ListView-98983aa2.js.map} +1 -1
  23. package/cjs/{LoadMoreCollection-73112ff0.js → LoadMoreCollection-69bc038c.js} +2 -2
  24. package/cjs/{LoadMoreCollection-73112ff0.js.map → LoadMoreCollection-69bc038c.js.map} +1 -1
  25. package/cjs/PRIVATE_BaseCardView.js +3 -3
  26. package/cjs/PRIVATE_List.js +4 -4
  27. package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
  28. package/cjs/PRIVATE_SelectCommon.js +5 -5
  29. package/cjs/PRIVATE_Table.js +3 -3
  30. package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
  31. package/cjs/{SelectMultiple-12261f4a.js → SelectMultiple-85f954ab.js} +2 -2
  32. package/cjs/{SelectMultiple-12261f4a.js.map → SelectMultiple-85f954ab.js.map} +1 -1
  33. package/cjs/{SelectSingle-382b9a03.js → SelectSingle-7665d165.js} +2 -2
  34. package/cjs/{SelectSingle-382b9a03.js.map → SelectSingle-7665d165.js.map} +1 -1
  35. package/cjs/{Table-42e84ff0.js → Table-c45cdb79.js} +2 -2
  36. package/cjs/{Table-42e84ff0.js.map → Table-c45cdb79.js.map} +1 -1
  37. package/cjs/{TableView-9e8d90d5.js → TableView-be307426.js} +2 -2
  38. package/cjs/{TableView-9e8d90d5.js.map → TableView-be307426.js.map} +1 -1
  39. package/cjs/{TextArea-aea6ecae.js → TextArea-3309d931.js} +22 -4
  40. package/cjs/TextArea-3309d931.js.map +1 -0
  41. package/cjs/{TextAreaAutosize-c01d61dc.js → TextAreaAutosize-ecd40b10.js} +3 -3
  42. package/cjs/{TextAreaAutosize-c01d61dc.js.map → TextAreaAutosize-ecd40b10.js.map} +1 -1
  43. package/cjs/Theme-redwood/theme.css +143 -143
  44. package/cjs/Theme-stable/theme.css +235 -235
  45. package/cjs/UNSAFE_CardFlexView.js +4 -4
  46. package/cjs/UNSAFE_CardGridView.js +4 -4
  47. package/cjs/UNSAFE_ExpandableList.js +3 -3
  48. package/cjs/UNSAFE_Indexer.js +2 -2
  49. package/cjs/UNSAFE_ListView.js +5 -5
  50. package/cjs/UNSAFE_SelectMultiple.js +6 -6
  51. package/cjs/UNSAFE_SelectSingle.js +6 -6
  52. package/cjs/UNSAFE_TableView.js +4 -4
  53. package/cjs/UNSAFE_TextArea.js +3 -4
  54. package/cjs/UNSAFE_TextArea.js.map +1 -1
  55. package/cjs/UNSAFE_TextAreaAutosize.js +3 -3
  56. package/cjs/UNSAFE_VirtualizedListView.js +5 -5
  57. package/cjs/{VirtualizedCollection-00aedb8b.js → VirtualizedCollection-9e8c48b9.js} +2 -2
  58. package/cjs/{VirtualizedCollection-00aedb8b.js.map → VirtualizedCollection-9e8c48b9.js.map} +1 -1
  59. package/cjs/{VirtualizedListView-9bfaf4e2.js → VirtualizedListView-03fa4758.js} +2 -2
  60. package/cjs/{VirtualizedListView-9bfaf4e2.js.map → VirtualizedListView-03fa4758.js.map} +1 -1
  61. package/cjs/{useSelectCommon-7f7b44d1.js → useSelectCommon-99197baf.js} +2 -2
  62. package/cjs/{useSelectCommon-7f7b44d1.js.map → useSelectCommon-99197baf.js.map} +1 -1
  63. package/es/ActionCard-e64b1771.js +1 -1
  64. package/es/{BarChart-e8909233.js → BarChart-2a994aa9.js} +3 -3
  65. package/es/{BarChart-e8909233.js.map → BarChart-2a994aa9.js.map} +1 -1
  66. package/es/BarGroup-740cd159.js +1 -1
  67. package/es/BaseButton-685bec17.js +2 -2
  68. package/es/{BaseCardView-c5a8ee6a.js → BaseCardView-229fa119.js} +9 -9
  69. package/es/{BaseCardView-c5a8ee6a.js.map → BaseCardView-229fa119.js.map} +1 -1
  70. package/es/{BaseCardViewSelectionTest-39113af4.js → BaseCardViewSelectionTest-0b9dd4c7.js} +7 -7
  71. package/es/{BaseCardViewSelectionTest-39113af4.js.map → BaseCardViewSelectionTest-0b9dd4c7.js.map} +1 -1
  72. package/es/BaseNavigationListItem-530bc3df.js +1 -1
  73. package/es/BaseRichSelection-1aaeab44.js +8 -8
  74. package/es/ButtonSet-51dcff96.js +2 -2
  75. package/es/ButtonSetIconButton-ead6566c.js +3 -3
  76. package/es/{Card-de0aef24.js → Card-44b7de2f.js} +2 -2
  77. package/es/{Card-de0aef24.js.map → Card-44b7de2f.js.map} +1 -1
  78. package/es/{CardFlexView-529906e0.js → CardFlexView-3ef6bf4d.js} +2 -2
  79. package/es/{CardFlexView-529906e0.js.map → CardFlexView-3ef6bf4d.js.map} +1 -1
  80. package/es/{CardGridView-ec18c929.js → CardGridView-e15226c9.js} +2 -2
  81. package/es/{CardGridView-ec18c929.js.map → CardGridView-e15226c9.js.map} +1 -1
  82. package/es/{Center-9f355d44.js → Center-8b48ab02.js} +2 -2
  83. package/es/{Center-9f355d44.js.map → Center-8b48ab02.js.map} +1 -1
  84. package/es/{Chart-000730bb.js → Chart-9dc97d8d.js} +10 -10
  85. package/es/{Chart-000730bb.js.map → Chart-9dc97d8d.js.map} +1 -1
  86. package/es/CheckboxControl-1692a8d6.js +6 -6
  87. package/es/CheckboxRadioField-99df3ba3.js +6 -6
  88. package/es/CheckboxSetContext-1be56556.js +9 -0
  89. package/es/CheckboxSetContext-1be56556.js.map +1 -0
  90. package/es/Chip-8554d3ff.js +1 -1
  91. package/es/ClearIcon-7af86099.js +1 -1
  92. package/es/CollapseIcon-4e943f42.js +1 -1
  93. package/es/Collapsible-cb2ba356.js +2 -2
  94. package/es/{ComboChart-7ea6cadd.js → ComboChart-59ad85f7.js} +4 -4
  95. package/es/{ComboChart-7ea6cadd.js.map → ComboChart-59ad85f7.js.map} +1 -1
  96. package/es/CompactHelpSource-9c0d4cb4.js +2 -2
  97. package/es/{CompactLabelAssistance-7912767d.js → CompactLabelAssistance-6a627bbb.js} +5 -5
  98. package/es/{CompactLabelAssistance-7912767d.js.map → CompactLabelAssistance-6a627bbb.js.map} +1 -1
  99. package/es/CompactUserAssistance-23347994.js +4 -4
  100. package/es/ComponentMessageContainer-35005056.js +4 -4
  101. package/es/ConveyorBeltItem-9ae80a84.js +2 -2
  102. package/es/ConveyorBeltVariants.styles.css +6 -6
  103. package/es/ConveyorBeltVariants.styles2.css +6 -6
  104. package/es/{DatePicker-54a2c9ee.js → DatePicker-32a62e73.js} +6 -6
  105. package/es/{DatePicker-54a2c9ee.js.map → DatePicker-32a62e73.js.map} +1 -1
  106. package/es/DatePickerHeader-1710c19d.js +3 -3
  107. package/es/{Diagram-9510ff87.js → Diagram-02d6a0e9.js} +5 -5
  108. package/es/{Diagram-9510ff87.js.map → Diagram-02d6a0e9.js.map} +1 -1
  109. package/es/{Dialog-c927bba0.js → Dialog-ded776a5.js} +8 -8
  110. package/es/{Dialog-c927bba0.js.map → Dialog-ded776a5.js.map} +1 -1
  111. package/es/DirectionalCollapseArrowIcon-daafb64c.js +1 -1
  112. package/es/DirectionalExpandArrowIcon-35def552.js +1 -1
  113. package/es/{DragHandle-5cba8c4b.js → DragHandle-d3a739f5.js} +2 -2
  114. package/es/{DragHandle-5cba8c4b.js.map → DragHandle-d3a739f5.js.map} +1 -1
  115. package/es/{Dropdown-f7fbfa81.js → Dropdown-f0cdaeae.js} +5 -5
  116. package/es/{Dropdown-f7fbfa81.js.map → Dropdown-f0cdaeae.js.map} +1 -1
  117. package/es/{EnvironmentProvider-a3819bde.js → EnvironmentProvider-0fc2fd0c.js} +3 -3
  118. package/es/{EnvironmentProvider-a3819bde.js.map → EnvironmentProvider-0fc2fd0c.js.map} +1 -1
  119. package/es/ExpandableList-2ff828d0.js +4 -4
  120. package/es/FilePicker-ecfad7d4.js +2 -2
  121. package/es/{Flex-2d51e914.js → Flex-8696b27b.js} +2 -2
  122. package/es/{Flex-2d51e914.js.map → Flex-8696b27b.js.map} +1 -1
  123. package/es/{Floating-c13f9f62.js → Floating-9bf456f9.js} +4 -4
  124. package/es/{Floating-c13f9f62.js.map → Floating-9bf456f9.js.map} +1 -1
  125. package/es/FormLayout-2efb00f6.js +1 -1
  126. package/es/Gantt-8b4d8f6e.js +9 -9
  127. package/es/{Grid-c2385b22.js → Grid-7fd29a9e.js} +2 -2
  128. package/es/{Grid-c2385b22.js.map → Grid-7fd29a9e.js.map} +1 -1
  129. package/es/{Gridlines-89b5506f.js → Gridlines-5ac89a84.js} +2 -2
  130. package/es/{Gridlines-89b5506f.js.map → Gridlines-5ac89a84.js.map} +1 -1
  131. package/es/GroupLoadingIndicator-63035d08.js +2 -2
  132. package/es/{HighlightText-d505bf35.js → HighlightText-cc043982.js} +2 -2
  133. package/es/{HighlightText-d505bf35.js.map → HighlightText-cc043982.js.map} +1 -1
  134. package/es/Icon-bdd49f29.js +3 -3
  135. package/es/IconButton-aed90302.js +3 -3
  136. package/es/IconMenuButton-772bdb3a.js +3 -3
  137. package/es/IconProgressButton-68f9bf65.js +3 -3
  138. package/es/IconSwitchButton-a8ccf655.js +3 -3
  139. package/es/IconToggleButton-a61a7d3c.js +3 -3
  140. package/es/{IconUserAssistance-2b494a2e.js → IconUserAssistance-627f9d18.js} +3 -3
  141. package/es/{IconUserAssistance-2b494a2e.js.map → IconUserAssistance-627f9d18.js.map} +1 -1
  142. package/es/{Indexer-ba2c7593.js → Indexer-eb00ba0b.js} +6 -6
  143. package/es/{Indexer-ba2c7593.js.map → Indexer-eb00ba0b.js.map} +1 -1
  144. package/es/InlineHelpSource-fcdcd122.js +1 -1
  145. package/es/InlineUserAssistance-87a0bc0e.js +5 -5
  146. package/es/InputDateMask-4b69db8b.js +7 -7
  147. package/es/{InputDatePicker-b2a89782.js → InputDatePicker-bf961886.js} +10 -10
  148. package/es/{InputDatePicker-b2a89782.js.map → InputDatePicker-bf961886.js.map} +1 -1
  149. package/es/InputPassword-4cc85d0a.js +4 -4
  150. package/es/InputText-224403da.js +6 -6
  151. package/es/Label-4f24dcde.js +5 -5
  152. package/es/LabelValueLayout-cc11e8ca.js +1 -1
  153. package/es/LabelledLinkVariants.styles.css +3 -3
  154. package/es/LabelledLinkVariants.styles2.css +3 -3
  155. package/es/{Layer-7497a324.js → Layer-12a734d1.js} +3 -3
  156. package/es/{Layer-7497a324.js.map → Layer-12a734d1.js.map} +1 -1
  157. package/es/{LayerHost-7a2149f5.js → LayerHost-15b42a3e.js} +2 -2
  158. package/es/{LayerHost-7a2149f5.js.map → LayerHost-15b42a3e.js.map} +1 -1
  159. package/es/{LayerManager-be34be40.js → LayerManager-af39e736.js} +2 -2
  160. package/es/{LayerManager-be34be40.js.map → LayerManager-af39e736.js.map} +1 -1
  161. package/es/Legend-588633b2.js +3 -3
  162. package/es/{LineAreaChart-a0393c8c.js → LineAreaChart-5ca41d3b.js} +4 -4
  163. package/es/{LineAreaChart-a0393c8c.js.map → LineAreaChart-5ca41d3b.js.map} +1 -1
  164. package/es/{LineSeries-00fa2ab7.js → LineSeries-ca5836e7.js} +2 -2
  165. package/es/{LineSeries-00fa2ab7.js.map → LineSeries-ca5836e7.js.map} +1 -1
  166. package/es/Link-e405608b.js +1 -1
  167. package/es/{List-97b7be70.js → List-e6886091.js} +8 -9
  168. package/es/{List-97b7be70.js.map → List-e6886091.js.map} +1 -1
  169. package/es/{ListItemLayout-b3d899d6.js → ListItemLayout-e87958e3.js} +2 -2
  170. package/es/{ListItemLayout-b3d899d6.js.map → ListItemLayout-e87958e3.js.map} +1 -1
  171. package/es/{ListView-936d8a4f.js → ListView-137e31fd.js} +5 -5
  172. package/es/{ListView-936d8a4f.js.map → ListView-137e31fd.js.map} +1 -1
  173. package/es/{LiveRegion-5302331c.js → LiveRegion-cb4f8a54.js} +2 -2
  174. package/es/{LiveRegion-5302331c.js.map → LiveRegion-cb4f8a54.js.map} +1 -1
  175. package/es/{LoadMoreCollection-95a49d2a.js → LoadMoreCollection-7df1be36.js} +2 -2
  176. package/es/{LoadMoreCollection-95a49d2a.js.map → LoadMoreCollection-7df1be36.js.map} +1 -1
  177. package/es/{MaxLengthLiveRegion-9b386b63.js → MaxLengthLiveRegion-59087064.js} +3 -3
  178. package/es/{MaxLengthLiveRegion-9b386b63.js.map → MaxLengthLiveRegion-59087064.js.map} +1 -1
  179. package/es/Menu-a37635b8.js +6 -6
  180. package/es/MenuButton-93a1b6b0.js +2 -2
  181. package/es/MenuItem-831dfd05.js +1 -1
  182. package/es/Message-dd158e41.js +2 -2
  183. package/es/{MessageLayer-9ea7cf82.js → MessageLayer-8bed437a.js} +6 -6
  184. package/es/{MessageLayer-9ea7cf82.js.map → MessageLayer-8bed437a.js.map} +1 -1
  185. package/es/MessageToast-73458c48.js +8 -8
  186. package/es/MessagesManager-9dd3eb3d.js +3 -3
  187. package/es/MeterBar-551d32db.js +5 -5
  188. package/es/MeterCircle-5e2ee267.js +5 -5
  189. package/es/MeterCircleVariants.styles.css +8 -8
  190. package/es/MeterCircleVariants.styles2.css +8 -8
  191. package/es/{Modal-1710fdd2.js → Modal-103da2aa.js} +3 -3
  192. package/es/{Modal-1710fdd2.js.map → Modal-103da2aa.js.map} +1 -1
  193. package/es/{MonthView-31d5ae25.js → MonthView-395c5a6a.js} +4 -4
  194. package/es/{MonthView-31d5ae25.js.map → MonthView-395c5a6a.js.map} +1 -1
  195. package/es/{NavigationListItem-57a7cf4b.js → NavigationListItem-5b25b2f5.js} +16 -3
  196. package/es/{NavigationListItem-57a7cf4b.js.map → NavigationListItem-5b25b2f5.js.map} +1 -1
  197. package/es/NavigationListItemVariants.styles.css +5 -5
  198. package/es/NavigationListItemVariants.styles2.css +5 -5
  199. package/es/NumberInputText-c74048e0.js +6 -6
  200. package/es/{OverflowTabBar-c7b52525.js → OverflowTabBar-3ddfd662.js} +2 -2
  201. package/es/{OverflowTabBar-c7b52525.js.map → OverflowTabBar-3ddfd662.js.map} +1 -1
  202. package/es/{OverflowTabBarItem-6ee5e024.js → OverflowTabBarItem-b18631ad.js} +5 -5
  203. package/es/{OverflowTabBarItem-6ee5e024.js.map → OverflowTabBarItem-b18631ad.js.map} +1 -1
  204. package/es/PRIVATE_BaseCardView.js +25 -25
  205. package/es/PRIVATE_Chart.js +36 -36
  206. package/es/PRIVATE_CheckboxControl.js +23 -23
  207. package/es/PRIVATE_CheckboxRadioField.js +25 -25
  208. package/es/PRIVATE_ClearIcon.js +18 -18
  209. package/es/PRIVATE_DatePickerHeader.js +19 -19
  210. package/es/PRIVATE_DatePickerLayout.js +4 -4
  211. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  212. package/es/PRIVATE_FormControls.js +20 -20
  213. package/es/PRIVATE_IconSwitchButton.js +16 -16
  214. package/es/PRIVATE_Icons/CheckboxMixed.js +16 -16
  215. package/es/PRIVATE_Icons/CheckboxOff.js +16 -16
  216. package/es/PRIVATE_Icons/CheckboxOn.js +16 -16
  217. package/es/PRIVATE_Icons/DragV.js +16 -16
  218. package/es/PRIVATE_Icons/WarningS.js +16 -16
  219. package/es/PRIVATE_List.js +24 -24
  220. package/es/PRIVATE_LoadMoreCollection.js +2 -2
  221. package/es/PRIVATE_Message.js +19 -19
  222. package/es/PRIVATE_MessageLayer.js +12 -12
  223. package/es/PRIVATE_MonthView.js +7 -7
  224. package/es/PRIVATE_MonthYearGridView.js +7 -7
  225. package/es/PRIVATE_PlotArea.js +4 -4
  226. package/es/PRIVATE_RevealToggleIcon.js +17 -17
  227. package/es/PRIVATE_RichSelectionCommon.js +26 -26
  228. package/es/PRIVATE_SelectCommon/themes/dropdownStyles.css.js +1 -1
  229. package/es/PRIVATE_SelectCommon.js +34 -34
  230. package/es/PRIVATE_StyledCard.js +4 -4
  231. package/es/PRIVATE_StyledCheckbox.js +16 -16
  232. package/es/PRIVATE_Table.js +28 -28
  233. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
  234. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
  235. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
  236. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
  237. package/es/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
  238. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
  239. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
  240. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
  241. package/es/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
  242. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
  243. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
  244. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
  245. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
  246. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
  247. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
  248. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
  249. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
  250. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
  251. package/es/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
  252. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
  253. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
  254. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
  255. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
  256. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
  257. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
  258. package/es/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
  259. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
  260. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
  261. package/es/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
  262. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
  263. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
  264. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
  265. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
  266. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
  267. package/es/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
  268. package/es/PRIVATE_TimeComponent.js +18 -18
  269. package/es/PRIVATE_VirtualizedCollection.js +2 -2
  270. package/es/PRIVATE_VisOverview.js +16 -16
  271. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  272. package/es/PictoChart-9d78c57d.js +6 -6
  273. package/es/PieChart-ca02932e.js +6 -6
  274. package/es/{Popup-a4be2769.js → Popup-6c3f0839.js} +9 -9
  275. package/es/{Popup-a4be2769.js.map → Popup-6c3f0839.js.map} +1 -1
  276. package/es/{ProgressBar-4fbb27ab.js → ProgressBar-95461222.js} +3 -3
  277. package/es/{ProgressBar-4fbb27ab.js.map → ProgressBar-95461222.js.map} +1 -1
  278. package/es/ProgressButton-30ae971f.js +3 -3
  279. package/es/ProgressButtonLabelLayout-bfc7c805.js +3 -3
  280. package/es/{ProgressCircle-2d3833fa.js → ProgressCircle-93c309cb.js} +2 -2
  281. package/es/{ProgressCircle-2d3833fa.js.map → ProgressCircle-93c309cb.js.map} +1 -1
  282. package/es/ProgressCircleVariants.styles.css +4 -4
  283. package/es/ProgressCircleVariants.styles2.css +4 -4
  284. package/es/RadioItem-4196378c.js +6 -6
  285. package/es/RatingGauge-5346d0bf.js +7 -7
  286. package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
  287. package/es/RemovableNavigationListItem-5a558e58.js +1 -1
  288. package/es/RemovableTabBarItem-2250a150.js +2 -2
  289. package/es/ReorderableTabBar-b9019d0a.js +3 -3
  290. package/es/RevealToggleIcon-c76245fd.js +1 -1
  291. package/es/{ScatterChart-22a6b15a.js → ScatterChart-829b9755.js} +4 -4
  292. package/es/{ScatterChart-22a6b15a.js.map → ScatterChart-829b9755.js.map} +1 -1
  293. package/es/SectionalLegend-c71d48a3.js +4 -4
  294. package/es/{SectionedContent-2d0a744d.js → SectionedContent-3fd063af.js} +5 -5
  295. package/es/{SectionedContent-2d0a744d.js.map → SectionedContent-3fd063af.js.map} +1 -1
  296. package/es/SegmentStyles.styles.css +8 -8
  297. package/es/SegmentStyles.styles2.css +8 -8
  298. package/es/{SelectMultiple-0b1a66db.js → SelectMultiple-f00b3232.js} +10 -10
  299. package/es/{SelectMultiple-0b1a66db.js.map → SelectMultiple-f00b3232.js.map} +1 -1
  300. package/es/{SelectSingle-c4761455.js → SelectSingle-375ef72f.js} +9 -9
  301. package/es/{SelectSingle-c4761455.js.map → SelectSingle-375ef72f.js.map} +1 -1
  302. package/es/{SelectionCard-792c249d.js → SelectionCard-1f8585cb.js} +2 -2
  303. package/es/{SelectionCard-792c249d.js.map → SelectionCard-1f8585cb.js.map} +1 -1
  304. package/es/Selector-5892544f.js +1 -1
  305. package/es/{SelectorAll-ab748274.js → SelectorAll-e833da6d.js} +7 -7
  306. package/es/{SelectorAll-ab748274.js.map → SelectorAll-e833da6d.js.map} +1 -1
  307. package/es/{Sheet-31e6970c.js → Sheet-0861fcc0.js} +3 -3
  308. package/es/{Sheet-31e6970c.js.map → Sheet-0861fcc0.js.map} +1 -1
  309. package/es/SplitMenuButton-afa523a8.js +2 -2
  310. package/es/SplitMenuButtonTheme.styles.css +4 -4
  311. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  312. package/es/{StyledCard-6913b45c.js → StyledCard-f5965d6d.js} +2 -2
  313. package/es/{StyledCard-6913b45c.js.map → StyledCard-f5965d6d.js.map} +1 -1
  314. package/es/StyledTextField-fba62818.js +3 -3
  315. package/es/TabBar-fb7f97d2.js +6 -6
  316. package/es/TabBarItem-252cba76.js +3 -3
  317. package/es/TabBarLayout-8caaa060.js +1 -1
  318. package/es/TabBarMixed-f60c2c7a.js +6 -6
  319. package/es/{TabBarMixedSeparator-16c88691.js → TabBarMixedSeparator-da56f4c0.js} +2 -2
  320. package/es/{TabBarMixedSeparator-16c88691.js.map → TabBarMixedSeparator-da56f4c0.js.map} +1 -1
  321. package/es/{Table-39429460.js → Table-424db6b2.js} +11 -11
  322. package/es/{Table-39429460.js.map → Table-424db6b2.js.map} +1 -1
  323. package/es/{TableView-fef873d4.js → TableView-1f193c4a.js} +2 -2
  324. package/es/{TableView-fef873d4.js.map → TableView-1f193c4a.js.map} +1 -1
  325. package/es/TagCloud-ef087101.js +8 -8
  326. package/es/{TextArea-e9bcb623.js → TextArea-f8a4620b.js} +30 -13
  327. package/es/TextArea-f8a4620b.js.map +1 -0
  328. package/es/{TextAreaAutosize-3b559450.js → TextAreaAutosize-6ff9bddb.js} +7 -7
  329. package/es/{TextAreaAutosize-3b559450.js.map → TextAreaAutosize-6ff9bddb.js.map} +1 -1
  330. package/es/TextField-1120a3c4.js +3 -3
  331. package/es/TextFieldInput-3c2e920d.js +1 -1
  332. package/es/TextFieldVariants.styles.css +29 -29
  333. package/es/TextFieldVariants.styles2.css +29 -29
  334. package/es/Theme-redwood/theme.css +582 -582
  335. package/es/Theme-stable/theme.css +522 -522
  336. package/es/TimeComponentCanvas2D-73b0b592.js +5 -5
  337. package/es/Toolbar-7676795b.js +1 -1
  338. package/es/{TruncatingBadge-0f04b894.js → TruncatingBadge-b69c1ceb.js} +4 -4
  339. package/es/{TruncatingBadge-0f04b894.js.map → TruncatingBadge-b69c1ceb.js.map} +1 -1
  340. package/es/{TruncatingText-ccad557f.js → TruncatingText-68acfafd.js} +4 -4
  341. package/es/{TruncatingText-ccad557f.js.map → TruncatingText-68acfafd.js.map} +1 -1
  342. package/es/UNSAFE_ActionCard.js +3 -3
  343. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +37 -37
  344. package/es/UNSAFE_BarChart.js +37 -37
  345. package/es/UNSAFE_BaseButton.js +3 -3
  346. package/es/UNSAFE_Button.js +3 -3
  347. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +23 -23
  348. package/es/UNSAFE_ButtonSet.js +4 -4
  349. package/es/UNSAFE_ButtonSetButton.js +3 -3
  350. package/es/UNSAFE_ButtonSetIconButton.js +16 -16
  351. package/es/UNSAFE_ButtonSetItem.js +16 -16
  352. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  353. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  354. package/es/UNSAFE_Card.js +5 -5
  355. package/es/UNSAFE_CardFlexView.js +26 -26
  356. package/es/UNSAFE_CardGridView.js +26 -26
  357. package/es/UNSAFE_Center.js +5 -5
  358. package/es/UNSAFE_ChartWithLegend.js +4 -4
  359. package/es/UNSAFE_Checkbox.js +23 -23
  360. package/es/UNSAFE_CheckboxItem.js +53 -104
  361. package/es/UNSAFE_CheckboxItem.js.map +1 -1
  362. package/es/UNSAFE_CheckboxSet.js +68 -34
  363. package/es/UNSAFE_CheckboxSet.js.map +1 -1
  364. package/es/UNSAFE_Chip.js +2 -2
  365. package/es/UNSAFE_Collapsible.js +18 -18
  366. package/es/UNSAFE_ComboChart.js +39 -39
  367. package/es/UNSAFE_ComponentMessage.js +19 -19
  368. package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltTheme.js +1 -1
  369. package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltVariants.css.js +1 -1
  370. package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltTheme.js +1 -1
  371. package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltVariants.css.js +1 -1
  372. package/es/UNSAFE_ConveyorBelt.js +17 -17
  373. package/es/UNSAFE_DatePicker.js +24 -24
  374. package/es/UNSAFE_Diagram.js +21 -21
  375. package/es/UNSAFE_Dialog.js +21 -21
  376. package/es/UNSAFE_DragHandle.js +18 -18
  377. package/es/UNSAFE_DrawerLayout.js +12 -12
  378. package/es/UNSAFE_DrawerPopup.js +11 -11
  379. package/es/UNSAFE_Dropdown/themes/dropdownStyles.css.js +1 -1
  380. package/es/UNSAFE_Dropdown.js +14 -14
  381. package/es/UNSAFE_Environment.js +4 -4
  382. package/es/UNSAFE_ExpandableList.js +26 -26
  383. package/es/UNSAFE_FilePicker.js +4 -4
  384. package/es/UNSAFE_Flex.js +4 -4
  385. package/es/UNSAFE_Floating.js +11 -11
  386. package/es/UNSAFE_FormLayout.js +2 -2
  387. package/es/UNSAFE_Gantt.js +23 -23
  388. package/es/UNSAFE_Grid.js +4 -4
  389. package/es/UNSAFE_HighlightText.js +4 -4
  390. package/es/UNSAFE_Icon.js +16 -16
  391. package/es/UNSAFE_IconButton.js +16 -16
  392. package/es/UNSAFE_IconMenuButton.js +22 -22
  393. package/es/UNSAFE_IconProgressButton.js +20 -20
  394. package/es/UNSAFE_IconToggleButton.js +16 -16
  395. package/es/UNSAFE_Indexer.js +8 -8
  396. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  397. package/es/UNSAFE_InputDateMask.js +26 -26
  398. package/es/UNSAFE_InputDatePicker.js +115 -115
  399. package/es/UNSAFE_InputPassword.js +24 -24
  400. package/es/UNSAFE_InputSensitiveText.js +26 -26
  401. package/es/UNSAFE_InputText.js +27 -27
  402. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  403. package/es/UNSAFE_InputTimeMask.js +26 -26
  404. package/es/UNSAFE_Label.js +24 -24
  405. package/es/UNSAFE_LabelValueLayout.js +5 -5
  406. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkTheme.js +1 -1
  407. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkVariants.css.js +1 -1
  408. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkTheme.js +1 -1
  409. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkVariants.css.js +1 -1
  410. package/es/UNSAFE_LabelledLink.js +26 -26
  411. package/es/UNSAFE_Layer.js +8 -8
  412. package/es/UNSAFE_Legend.js +25 -25
  413. package/es/UNSAFE_LineAreaChart.js +39 -39
  414. package/es/UNSAFE_Link.js +2 -2
  415. package/es/UNSAFE_ListItemLayout.js +5 -5
  416. package/es/UNSAFE_ListView.js +34 -34
  417. package/es/UNSAFE_LiveRegion.js +4 -4
  418. package/es/UNSAFE_Menu.js +24 -24
  419. package/es/UNSAFE_MenuButton.js +22 -22
  420. package/es/UNSAFE_MessageBanner.js +19 -19
  421. package/es/UNSAFE_MessageToast.js +22 -22
  422. package/es/UNSAFE_MeterBar.js +16 -16
  423. package/es/UNSAFE_MeterCircle/themes/redwood/MeterCircleTheme.js +1 -1
  424. package/es/UNSAFE_MeterCircle/themes/redwood/MeterCircleVariants.css.js +1 -1
  425. package/es/UNSAFE_MeterCircle/themes/stable/MeterCircleTheme.js +1 -1
  426. package/es/UNSAFE_MeterCircle/themes/stable/MeterCircleVariants.css.js +1 -1
  427. package/es/UNSAFE_MeterCircle.js +18 -18
  428. package/es/UNSAFE_Modal.js +8 -8
  429. package/es/UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js +1 -1
  430. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemTheme.js +1 -1
  431. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemVariants.css.js +1 -1
  432. package/es/UNSAFE_NavigationList.js +25 -25
  433. package/es/UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js +1 -1
  434. package/es/UNSAFE_NavigationListCommon.js +19 -19
  435. package/es/UNSAFE_NumberInputText.js +26 -26
  436. package/es/UNSAFE_OverflowTabBar.js +29 -29
  437. package/es/UNSAFE_PictoChart.js +14 -14
  438. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
  439. package/es/UNSAFE_PieChart.js +22 -22
  440. package/es/UNSAFE_Popup.js +16 -16
  441. package/es/UNSAFE_ProgressBar.js +5 -5
  442. package/es/UNSAFE_ProgressButton.js +20 -20
  443. package/es/UNSAFE_ProgressButtonLabelLayout.js +11 -11
  444. package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme.js +1 -1
  445. package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleVariants.css.js +1 -1
  446. package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleTheme.js +1 -1
  447. package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleVariants.css.js +1 -1
  448. package/es/UNSAFE_ProgressCircle.js +5 -5
  449. package/es/UNSAFE_RadioItem.js +23 -23
  450. package/es/UNSAFE_RadioSet.js +24 -24
  451. package/es/UNSAFE_RatingGauge.js +17 -17
  452. package/es/UNSAFE_ReorderableTabBar.js +25 -25
  453. package/es/UNSAFE_RichCheckboxSet.js +37 -39
  454. package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
  455. package/es/UNSAFE_RichRadioSet.js +26 -26
  456. package/es/UNSAFE_RichSelectionItem.js +57 -195
  457. package/es/UNSAFE_RichSelectionItem.js.map +1 -1
  458. package/es/UNSAFE_ScatterChart.js +39 -39
  459. package/es/UNSAFE_SectionalLegend.js +26 -26
  460. package/es/UNSAFE_SelectMultiple.js +38 -38
  461. package/es/UNSAFE_SelectSingle.js +38 -38
  462. package/es/UNSAFE_SelectionCard.js +5 -5
  463. package/es/UNSAFE_Selector.js +16 -16
  464. package/es/UNSAFE_SelectorAll.js +20 -20
  465. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +14 -14
  466. package/es/UNSAFE_Sheet.js +11 -11
  467. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  468. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  469. package/es/UNSAFE_SplitMenuButton.js +23 -23
  470. package/es/UNSAFE_TabBar.js +29 -29
  471. package/es/UNSAFE_TabBarCommon.js +29 -29
  472. package/es/UNSAFE_TabBarMixed.js +30 -30
  473. package/es/UNSAFE_TableView.js +29 -29
  474. package/es/UNSAFE_TagCloud.js +24 -24
  475. package/es/UNSAFE_TextArea.js +28 -29
  476. package/es/UNSAFE_TextArea.js.map +1 -1
  477. package/es/UNSAFE_TextAreaAutosize.js +29 -29
  478. package/es/UNSAFE_TextField/themes/redwood/TextFieldTheme.js +1 -1
  479. package/es/UNSAFE_TextField/themes/redwood/TextFieldVariants.css.js +1 -1
  480. package/es/UNSAFE_TextField/themes/stable/TextFieldTheme.js +1 -1
  481. package/es/UNSAFE_TextField/themes/stable/TextFieldVariants.css.js +1 -1
  482. package/es/UNSAFE_TextField.js +8 -8
  483. package/es/UNSAFE_ToggleButton.js +3 -3
  484. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +25 -25
  485. package/es/UNSAFE_Toolbar.js +4 -4
  486. package/es/UNSAFE_Train.js +17 -17
  487. package/es/UNSAFE_TruncatingBadge.js +18 -18
  488. package/es/UNSAFE_TruncatingText.js +17 -17
  489. package/es/UNSAFE_UserAssistance.js +24 -24
  490. package/es/UNSAFE_View.js +7 -7
  491. package/es/UNSAFE_VirtualizedListView.js +25 -25
  492. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  493. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  494. package/es/UNSAFE_VisStatusMessage.js +6 -6
  495. package/es/UNSAFE_WindowOverlay.js +4 -4
  496. package/es/{View-a8a64eb1.js → View-63980a9b.js} +5 -5
  497. package/es/{View-a8a64eb1.js.map → View-63980a9b.js.map} +1 -1
  498. package/es/{VirtualizedCollection-e73890a1.js → VirtualizedCollection-f048fbb8.js} +2 -2
  499. package/es/{VirtualizedCollection-e73890a1.js.map → VirtualizedCollection-f048fbb8.js.map} +1 -1
  500. package/es/{VirtualizedListView-3ef40bde.js → VirtualizedListView-0532e46c.js} +2 -2
  501. package/es/{VirtualizedListView-3ef40bde.js.map → VirtualizedListView-0532e46c.js.map} +1 -1
  502. package/es/{VisNoData-794ddc21.js → VisNoData-02cab8f6.js} +3 -3
  503. package/es/{VisNoData-794ddc21.js.map → VisNoData-02cab8f6.js.map} +1 -1
  504. package/es/{VisProgressiveLoader-66dde1ff.js → VisProgressiveLoader-2b2103c8.js} +3 -3
  505. package/es/{VisProgressiveLoader-66dde1ff.js.map → VisProgressiveLoader-2b2103c8.js.map} +1 -1
  506. package/es/{VisTabularDatatip-6aa607bb.js → VisTabularDatatip-2ae7ee48.js} +2 -2
  507. package/es/{VisTabularDatatip-6aa607bb.js.map → VisTabularDatatip-2ae7ee48.js.map} +1 -1
  508. package/es/{WindowOverlay-de5d0819.js → WindowOverlay-9b43e658.js} +2 -2
  509. package/es/{WindowOverlay-de5d0819.js.map → WindowOverlay-9b43e658.js.map} +1 -1
  510. package/es/{YearsGridView-d1bb65cf.js → YearsGridView-23ef4ced.js} +4 -4
  511. package/es/{YearsGridView-d1bb65cf.js.map → YearsGridView-23ef4ced.js.map} +1 -1
  512. package/es/dropdownStyles.styles.css +6 -90
  513. package/es/dropdownStyles.styles2.css +90 -6
  514. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  515. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  516. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  517. package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
  518. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  519. package/es/hooks/PRIVATE_useChartEvents.js +18 -18
  520. package/es/hooks/PRIVATE_useChartMarquee.js +18 -18
  521. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  522. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  523. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  524. package/es/hooks/PRIVATE_useFloating.js +4 -4
  525. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  526. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  527. package/es/hooks/PRIVATE_useSelection.js +4 -4
  528. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  529. package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
  530. package/es/hooks/PRIVATE_useVisDragModeControls.js +18 -18
  531. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  532. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  533. package/es/hooks/PRIVATE_useVisSelection.js +13 -13
  534. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  535. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  536. package/es/hooks/UNSAFE_useDensity.js +3 -3
  537. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  538. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  539. package/es/hooks/UNSAFE_useScale.js +3 -3
  540. package/es/hooks/UNSAFE_useTestId.js +3 -3
  541. package/es/hooks/UNSAFE_useTheme.js +3 -3
  542. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  543. package/es/hooks/UNSAFE_useTooltip.js +17 -17
  544. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  545. package/es/hooks/UNSAFE_useUser.js +3 -3
  546. package/es/{index-f4c1d6de.js → index-20f848bc.js} +2 -2
  547. package/es/index-20f848bc.js.map +1 -0
  548. package/es/listViewSelectionTests-79aa17b2.js +3 -3
  549. package/es/{render-9dce082a.js → render-2b908d4f.js} +3 -3
  550. package/es/{render-9dce082a.js.map → render-2b908d4f.js.map} +1 -1
  551. package/es/{tabbableUtils-93a7cd6f.js → tabbableUtils-20bbaf8d.js} +3 -3
  552. package/es/{tabbableUtils-93a7cd6f.js.map → tabbableUtils-20bbaf8d.js.map} +1 -1
  553. package/es/{testData-a9ced8ec.js → testData-70bebfae.js} +3 -3
  554. package/es/{testData-a9ced8ec.js.map → testData-70bebfae.js.map} +1 -1
  555. package/es/{tooltipUtils-fcfd7dbb.js → tooltipUtils-38192add.js} +5 -5
  556. package/es/{tooltipUtils-fcfd7dbb.js.map → tooltipUtils-38192add.js.map} +1 -1
  557. package/es/useCellNavigation-75c62516.js +1 -1
  558. package/es/useChartContextMenu-121a5f6d.js +2 -2
  559. package/es/{useChartDatatip-c929f857.js → useChartDatatip-977bc33d.js} +4 -4
  560. package/es/{useChartDatatip-c929f857.js.map → useChartDatatip-977bc33d.js.map} +1 -1
  561. package/es/{useColorScheme-f69d53b5.js → useColorScheme-d8a80e2b.js} +2 -2
  562. package/es/{useColorScheme-f69d53b5.js.map → useColorScheme-d8a80e2b.js.map} +1 -1
  563. package/es/useContextMenu-8c47333e.js +2 -2
  564. package/es/{useCssVars-48595cd2.js → useCssVars-8e6932f8.js} +5 -5
  565. package/es/{useCssVars-48595cd2.js.map → useCssVars-8e6932f8.js.map} +1 -1
  566. package/es/{useCurrentBgColor-894d059b.js → useCurrentBgColor-5418492b.js} +2 -2
  567. package/es/{useCurrentBgColor-894d059b.js.map → useCurrentBgColor-5418492b.js.map} +1 -1
  568. package/es/{useCurrentKey-aa75ec92.js → useCurrentKey-63f6afcc.js} +2 -2
  569. package/es/{useCurrentKey-aa75ec92.js.map → useCurrentKey-63f6afcc.js.map} +1 -1
  570. package/es/{useDatatip-40475371.js → useDatatip-bce558e2.js} +4 -4
  571. package/es/{useDatatip-40475371.js.map → useDatatip-bce558e2.js.map} +1 -1
  572. package/es/{useDensity-04a01caf.js → useDensity-64ecb649.js} +2 -2
  573. package/es/{useDensity-04a01caf.js.map → useDensity-64ecb649.js.map} +1 -1
  574. package/es/{useFloating-dad3f791.js → useFloating-41d21e7d.js} +2 -2
  575. package/es/{useFloating-dad3f791.js.map → useFloating-41d21e7d.js.map} +1 -1
  576. package/es/{useKeyboardEvents-b02e5fda.js → useKeyboardEvents-5c311766.js} +2 -2
  577. package/es/{useKeyboardEvents-b02e5fda.js.map → useKeyboardEvents-5c311766.js.map} +1 -1
  578. package/es/useLegendContextMenu-1043d63c.js +4 -4
  579. package/es/{useMeterDatatip-4adf64f2.js → useMeterDatatip-5268869e.js} +3 -3
  580. package/es/{useMeterDatatip-4adf64f2.js.map → useMeterDatatip-5268869e.js.map} +1 -1
  581. package/es/{useOutsideClick-c19a8d7f.js → useOutsideClick-8a582d08.js} +2 -2
  582. package/es/{useOutsideClick-c19a8d7f.js.map → useOutsideClick-8a582d08.js.map} +1 -1
  583. package/es/{usePopupAnimation-267b444c.js → usePopupAnimation-e2e6a2ca.js} +2 -2
  584. package/es/{usePopupAnimation-267b444c.js.map → usePopupAnimation-e2e6a2ca.js.map} +1 -1
  585. package/es/{usePrefixSuffix-995d4cda.js → usePrefixSuffix-435a9c59.js} +2 -2
  586. package/es/{usePrefixSuffix-995d4cda.js.map → usePrefixSuffix-435a9c59.js.map} +1 -1
  587. package/es/{useReorderableItem-7f7c13b5.js → useReorderableItem-96616318.js} +3 -3
  588. package/es/{useReorderableItem-7f7c13b5.js.map → useReorderableItem-96616318.js.map} +1 -1
  589. package/es/{useRovingTabIndexContainer-7ec9f36f.js → useRovingTabIndexContainer-9afe3ee0.js} +2 -2
  590. package/es/{useRovingTabIndexContainer-7ec9f36f.js.map → useRovingTabIndexContainer-9afe3ee0.js.map} +1 -1
  591. package/es/{useScale-3b323ab2.js → useScale-c86ecc6e.js} +2 -2
  592. package/es/{useScale-3b323ab2.js.map → useScale-c86ecc6e.js.map} +1 -1
  593. package/es/{useSelectCommon-573611ca.js → useSelectCommon-98d8d2dc.js} +13 -13
  594. package/es/{useSelectCommon-573611ca.js.map → useSelectCommon-98d8d2dc.js.map} +1 -1
  595. package/es/{useSelectDrill-14789a5e.js → useSelectDrill-776e616b.js} +3 -3
  596. package/es/{useSelectDrill-14789a5e.js.map → useSelectDrill-776e616b.js.map} +1 -1
  597. package/es/{useSelection-ffee622f.js → useSelection-40f44970.js} +5 -5
  598. package/es/{useSelection-ffee622f.js.map → useSelection-40f44970.js.map} +1 -1
  599. package/es/{useSelection-c46ba985.js → useSelection-879c64aa.js} +2 -2
  600. package/es/{useSelection-c46ba985.js.map → useSelection-879c64aa.js.map} +1 -1
  601. package/es/useTabBar-efad9075.js +1 -1
  602. package/es/{useTestId-af32a9eb.js → useTestId-3bc3958c.js} +2 -2
  603. package/es/{useTestId-af32a9eb.js.map → useTestId-3bc3958c.js.map} +1 -1
  604. package/es/{useTheme-73aca0e4.js → useTheme-4b0f211c.js} +2 -2
  605. package/es/{useTheme-73aca0e4.js.map → useTheme-4b0f211c.js.map} +1 -1
  606. package/es/{useThemeInterpolations-242b30ed.js → useThemeInterpolations-8bee52ac.js} +5 -5
  607. package/es/{useThemeInterpolations-242b30ed.js.map → useThemeInterpolations-8bee52ac.js.map} +1 -1
  608. package/es/{useTooltip-72f5cf2e.js → useTooltip-98b6d3b5.js} +2 -2
  609. package/es/{useTooltip-72f5cf2e.js.map → useTooltip-98b6d3b5.js.map} +1 -1
  610. package/es/{useTooltipControlled-97142fd1.js → useTooltipControlled-b565c75b.js} +5 -5
  611. package/es/{useTooltipControlled-97142fd1.js.map → useTooltipControlled-b565c75b.js.map} +1 -1
  612. package/es/{useTranslationBundle-6da03e52.js → useTranslationBundle-98df6291.js} +2 -2
  613. package/es/{useTranslationBundle-6da03e52.js.map → useTranslationBundle-98df6291.js.map} +1 -1
  614. package/es/{useUser-bca8cf2d.js → useUser-a15426fc.js} +2 -2
  615. package/es/{useUser-bca8cf2d.js.map → useUser-a15426fc.js.map} +1 -1
  616. package/es/useVisDragModeControls-228408bf.js +1 -1
  617. package/es/{useVisEvents-37c78cfe.js → useVisEvents-7d4753c4.js} +2 -2
  618. package/es/{useVisEvents-37c78cfe.js.map → useVisEvents-7d4753c4.js.map} +1 -1
  619. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  620. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  621. package/es/{withDirectionIcon-389870a2.js → withDirectionIcon-90d7c798.js} +2 -2
  622. package/es/{withDirectionIcon-389870a2.js.map → withDirectionIcon-90d7c798.js.map} +1 -1
  623. package/es/withThemeProps-6545df54.js +2 -2
  624. package/package.json +2 -2
  625. package/amd/MaxLengthCounter-9a95922c.js +0 -2
  626. package/amd/MaxLengthCounter-9a95922c.js.map +0 -1
  627. package/amd/TextArea-5bee11c8.js +0 -2
  628. package/amd/TextArea-5bee11c8.js.map +0 -1
  629. package/amd/TextAreaAutosize-ac99cd39.js +0 -2
  630. package/cjs/MaxLengthCounter-9ab3f74b.js +0 -27
  631. package/cjs/MaxLengthCounter-9ab3f74b.js.map +0 -1
  632. package/cjs/TextArea-aea6ecae.js.map +0 -1
  633. package/es/CheckboxSet-86252618.js +0 -49
  634. package/es/CheckboxSet-86252618.js.map +0 -1
  635. package/es/MaxLengthCounter-181b4fc9.js +0 -25
  636. package/es/MaxLengthCounter-181b4fc9.js.map +0 -1
  637. package/es/TextArea-e9bcb623.js.map +0 -1
  638. package/es/index-f4c1d6de.js.map +0 -1
@@ -17,7 +17,7 @@ var useUser = require('./useUser-8aaad5a7.js');
17
17
  var collectionUtils = require('./collectionUtils-d9fdec19.js');
18
18
  var Button = require('./Button-d43a3cd5.js');
19
19
  var GroupLoadingIndicator = require('./GroupLoadingIndicator-5940d185.js');
20
- var List = require('./List-0dc2c4c4.js');
20
+ var List = require('./List-877077ab.js');
21
21
 
22
22
  /**
23
23
  * @license
@@ -16,7 +16,7 @@ var PRIVATE_List_themes_ListStyles_css = require('./PRIVATE_List/themes/ListStyl
16
16
  var UNSAFE_GroupedList_themes_redwood_GroupedListTheme = require('./UNSAFE_GroupedList/themes/redwood/GroupedListTheme.js');
17
17
  var Flex = require('./Flex-ce16a2fa.js');
18
18
  var Skeleton = require('./Skeleton-ef5ed022.js');
19
- var List = require('./List-0dc2c4c4.js');
19
+ var List = require('./List-877077ab.js');
20
20
 
21
21
  // default style class for items in ListView
22
22
  const GROUP_SELECTOR = '[data-oj-listview-group]';
@@ -13,12 +13,12 @@ var collectionUtils = require('./collectionUtils-d9fdec19.js');
13
13
  var useId = require('./useId-6c0eeb27.js');
14
14
  var useTranslationBundle = require('./useTranslationBundle-6b0281a9.js');
15
15
  var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
16
- var Collection = require('./Collection-9880039f.js');
17
16
  var classNames = require('./classNames-c14c6ef3.js');
18
17
  var compat = require('preact/compat');
19
18
  var useComponentTheme = require('./useComponentTheme-082fc8e4.js');
20
19
  var UNSAFE_Indexer_themes_redwood_IndexerTheme = require('./UNSAFE_Indexer/themes/redwood/IndexerTheme.js');
21
20
  var useTestId = require('./useTestId-e267a39d.js');
21
+ var Collection = require('./Collection-9880039f.js');
22
22
 
23
23
  /**
24
24
  * The others section variable that application could use
@@ -336,4 +336,4 @@ function getIndexerDescription(translations) {
336
336
 
337
337
  exports.Indexer = Indexer;
338
338
  exports.SECTION_OTHERS = SECTION_OTHERS;
339
- //# sourceMappingURL=Indexer-72430806.js.map
339
+ //# sourceMappingURL=Indexer-b5ca1d0c.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Indexer-72430806.js","sources":["../../src/UNSAFE_Indexer/IndexerItems.tsx","../../src/UNSAFE_Indexer/Indexer.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { Fragment } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { Flex } from '../UNSAFE_Flex';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { ItemContext } from 'src/UNSAFE_Collection';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { IndexerStyles, IndexerItemVariantOptions } from './themes/IndexerStyles.css';\nimport { IndexerRedwoodTheme } from './themes/redwood/IndexerTheme';\n\n/**\n * Type of a section\n */\nexport type Section<K> = {\n /**\n * The key of each section\n */\n key: K;\n /**\n * The label of each section\n */\n label?: string;\n /**\n * A property that indicates whether the section\n * is disabled or not. Typically, when Indexer is\n * used with ListView, a disabled section implies\n * that there's no corresponding items in the ListView\n */\n isDisabled?: boolean;\n};\n\n/**\n * The others section variable that application could use\n * to compare value\n */\n// const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\nexport const SECTION_OTHERS: Section<string> = Object.freeze({\n key: '__others__',\n label: '#'\n});\n\nexport const ITEM_SELECTOR = '[data-oj-key]';\n\nexport type SectionProps<K> = {\n context: ItemContext<Section<K>>;\n currentKey: K;\n selectedKey: K;\n valueNow: number; // the index of an item within currently visible sections\n isFocusRingVisible: boolean;\n};\n\nexport const SectionItem = forwardRef(\n <K extends string | number>(props: SectionProps<K>, ref: ForwardedRef<HTMLLIElement>) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const { context, selectedKey } = props;\n const isSelected = context.data.key === selectedKey;\n const commonProps = getCommonProps(props, ref);\n\n const { classes } = useComponentTheme<IndexerItemVariantOptions, IndexerStyles>(\n IndexerRedwoodTheme,\n {\n focused: commonProps.ref && commonProps.isFocusRingVisible ? 'isFocused' : 'notFocused',\n disabled: context.data.isDisabled ? 'isDisabled' : 'notDisabled',\n selected: isSelected ? 'isSelected' : 'notSelected'\n }\n );\n const itemClasses = classNames([classes]);\n\n const sectionLabel = context.data.label || context.data.key;\n const valueText = context.data.isDisabled\n ? translations.indexer_disabledLabel({ SECTION: `${sectionLabel}` })\n : `${sectionLabel}`;\n\n return (\n <li\n {...commonProps}\n class={itemClasses}\n data-oj-valuetext={valueText}\n data-oj-disabled={context.data.isDisabled}>\n {context.data.label || context.data.key}\n </li>\n );\n }\n);\n\nfunction getCommonProps<K>(\n { context, currentKey, valueNow, isFocusRingVisible }: SectionProps<K>,\n ref: ForwardedRef<HTMLLIElement>\n) {\n const isCurrent = context.data.key === currentKey;\n return {\n ...(isCurrent && { ref }),\n key: context.data.key,\n 'data-oj-key': context.data.key,\n 'data-oj-key-type': typeof context.data.key,\n 'data-oj-valuenow': valueNow,\n isFocusRingVisible: !!isFocusRingVisible\n };\n}\n\ntype LastSectionProps<K> = SectionProps<K> & {\n lastValueNow: number;\n};\n\n// render the last section, that contains the last character and others character\nexport const LastSectionItem = forwardRef(\n <K extends string | number>(\n { lastValueNow, ...sectionProps }: LastSectionProps<K>,\n ref: ForwardedRef<HTMLLIElement>\n ) => {\n const commonProps = { ...sectionProps, ref };\n return (\n <Fragment>\n <SectionItem {...commonProps} />\n <OthersItem\n {...commonProps}\n ref={ref}\n context={{ index: -1, data: SECTION_OTHERS } as ItemContext<Section<K>>}\n valueNow={lastValueNow}\n />\n </Fragment>\n );\n }\n);\n\nconst OthersItem = forwardRef(<K,>(props: SectionProps<K>, ref: ForwardedRef<HTMLLIElement>) => {\n const { context, selectedKey } = props;\n const commonProps = getCommonProps(props, ref);\n\n const isSelected = context.data.key === selectedKey;\n const { classes } = useComponentTheme<IndexerItemVariantOptions>(IndexerRedwoodTheme, {\n focused: commonProps.ref && commonProps.isFocusRingVisible ? 'isFocused' : 'notFocused',\n selected: isSelected ? 'isSelected' : 'notSelected'\n });\n const othersClasses = classNames([classes]);\n const othersValueText = SECTION_OTHERS.label;\n\n return (\n <li {...commonProps} class={othersClasses} data-oj-valuetext={othersValueText}>\n {context.data.label}\n </li>\n );\n});\n\ntype SeparatorProps<K> = SectionProps<K> & {\n sectionsPerTruncation: number;\n last: number;\n sections: Section<K>[];\n};\n\nexport const SeparatorItem = forwardRef(\n <K extends string | number>(props: SeparatorProps<K>, ref: ForwardedRef<HTMLLIElement>) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const { context, sections } = props;\n const commonProps = getCommonProps(props, ref);\n const { from, to } = getSeparatorRange(props);\n const {\n classes,\n styles: { dotStyle }\n } = useComponentTheme<IndexerItemVariantOptions, IndexerStyles>(IndexerRedwoodTheme, {\n focused: commonProps.ref && commonProps.isFocusRingVisible ? 'isFocused' : 'notFocused'\n });\n\n if (!isInSeparatorMiddle(context.index, from, to)) {\n return null;\n }\n\n const fromText = sections[from].label || sections[from].key;\n const toText = sections[to].label || sections[to].key;\n\n const separatorClasses = classNames([classes]);\n\n const separatorValueText = translations.indexer_separatorLabel({\n FROM_SECTION: `${fromText}`,\n TO_SECTION: `${toText}`\n });\n\n return (\n <li {...commonProps} class={separatorClasses} data-oj-valuetext={separatorValueText}>\n <Flex align=\"center\" justify=\"center\">\n <div class={dotStyle}></div>\n </Flex>\n </li>\n );\n }\n);\n\nexport function hasSeparator<K>(props: SeparatorProps<K>) {\n const { from, to } = getSeparatorRange(props);\n return isInSeparatorMiddle(props.context.index, from, to);\n}\n\nfunction getSeparatorRange<K>({ context, sectionsPerTruncation, last }: SeparatorProps<K>) {\n const from = context.index - (context.index % sectionsPerTruncation) + 1;\n let to = from + sectionsPerTruncation - 2;\n to = to >= last ? last - 1 : to;\n\n return { from, to };\n}\n\nfunction isInSeparatorMiddle(index: number, from: number, to: number) {\n return index === Math.floor((from + to) / 2);\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 */\nimport { ComponentChildren, createRef, type RefObject } from 'preact';\nimport { useEffect, useRef, useState, StateUpdater, useCallback, Dispatch } from 'preact/hooks';\nimport { Flex } from '../UNSAFE_Flex';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { useSingleSelection } from '../hooks/PRIVATE_useSingleSelection/useSingleSelection';\nimport { useCurrentKey } from '../hooks/PRIVATE_useCurrentKey';\nimport { useCollectionFocusRing } from '../hooks/PRIVATE_useCollectionFocusRing';\nimport { keyExtractor, getPrevNextKey, isMobile } from '../utils/PRIVATE_collectionUtils';\nimport { useId } from '../hooks/UNSAFE_useId';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { ItemContext, CurrentKeyDetail, SingleSelectionDetail } from '../UNSAFE_Collection';\nimport { Collection } from '../PRIVATE_Collection';\nimport {\n Section,\n SectionItem,\n LastSectionItem,\n SeparatorItem,\n SECTION_OTHERS,\n hasSeparator,\n ITEM_SELECTOR\n} from './IndexerItems';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { IndexerStyles } from './themes/IndexerStyles.css';\nimport { IndexerRedwoodTheme } from './themes/redwood/IndexerTheme';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\n\nexport type CommitDetail<K> = {\n value: K;\n};\n\ntype Props<K> = {\n /**\n * An array of sections, the default sections is an\n * array of 26 English alphabets and the # others character\n */\n sections?: Section<K>[];\n\n /**\n * The currently selected Section\n */\n value?: K;\n\n /**\n * A function that will be invoked when selection happens,\n * no matter the Section was selected before or not.\n */\n onCommit?: (detail: CommitDetail<K>) => void;\n};\n\nconst defaultSections: Section<string>[] = [\n { key: 'A' },\n { key: 'B' },\n { key: 'C' },\n { key: 'D' },\n { key: 'E' },\n { key: 'F' },\n { key: 'G' },\n { key: 'H' },\n { key: 'I' },\n { key: 'J' },\n { key: 'K' },\n { key: 'L' },\n { key: 'M' },\n { key: 'N' },\n { key: 'O' },\n { key: 'P' },\n { key: 'Q' },\n { key: 'R' },\n { key: 'S' },\n { key: 'T' },\n { key: 'U' },\n { key: 'V' },\n { key: 'W' },\n { key: 'X' },\n { key: 'Y' },\n { key: 'Z' }\n];\n\n/**\n * Pure Preact based component that consumes Collection component\n * and renders an indexer.\n */\nexport function Indexer<K extends string | number>({\n sections = defaultSections as Section<K>[],\n value,\n onCommit = () => {},\n testId\n}: Props<K> & TestIdProps) {\n const rootRef = useRef<HTMLDivElement>(null);\n const ulRef = useRef<HTMLUListElement>(null);\n const currElementRef = createRef<HTMLLIElement>();\n const [current, setCurrent] = useState<K | undefined>(sections[0]?.key);\n // the number of sections in each truncation\n const [sectionsPerTruncation, setSectionsPerTruncation] = useState<number>(-1);\n // the total number of rendered sections and separators\n const renderedSectionsCount = useRef<number>(-1);\n const itemHeightRef = useRef<number>(0);\n // the id for aria describedby\n const uniqueId = useId();\n\n const [showFocusRing, focusRingProps] = useCollectionFocusRing(rootRef, ['ArrowUp', 'ArrowDown']);\n\n const { currentKeyProps } = useCurrentKey(\n (element) => keyExtractor(element, ITEM_SELECTOR),\n true,\n getPrevNextKey(rootRef.current, current, true, ITEM_SELECTOR),\n getPrevNextKey(rootRef.current, current, false, ITEM_SELECTOR),\n undefined,\n undefined,\n current,\n (detail: CurrentKeyDetail<K>) => setCurrent(detail.value)\n );\n\n const { selectionProps } = useSingleSelection(\n (element) => handleKeyExtract(element, ulRef, current as K),\n // pass in undefined so onCommit handler will be called\n // no matter whether the Section was selected before or not\n undefined,\n (detail: SingleSelectionDetail<K>) => handleSelection(detail, onCommit, sections)\n );\n\n /**\n * Item renderer that will return a section item or a section separator\n * based on the sectionsPerTruncation and item context index.\n * @param context item context\n */\n const itemRenderer = (context: ItemContext<Section<K>>): ComponentChildren => {\n const last = sections.length - 1;\n renderedSectionsCount.current += 1;\n\n const commonProps = {\n context,\n ref: currElementRef,\n currentKey: current as K,\n selectedKey: value as K,\n valueNow: renderedSectionsCount.current,\n isFocusRingVisible: !!showFocusRing\n };\n\n // render the last and the others character, they are always present\n if (context.index === last) {\n return <LastSectionItem {...commonProps} lastValueNow={renderedSectionsCount.current + 1} />;\n }\n\n // render a section, in the non-truncation case or when it is the first in a truncation\n if (sectionsPerTruncation <= 1 || context.index % sectionsPerTruncation === 0) {\n return <SectionItem {...commonProps} />;\n }\n\n // render the separator in the middle of a truncation\n const separatorProps = { ...commonProps, sectionsPerTruncation, last, sections };\n if (hasSeparator(separatorProps)) {\n return <SeparatorItem {...separatorProps} />;\n }\n\n // remove the count for truncated sections\n renderedSectionsCount.current -= 1;\n\n return null;\n };\n\n // truncate the Indexer during resize\n const handleResize = useCallback(\n (entries: ResizeObserverEntry[]) => {\n for (const entry of entries) {\n updateSectionsPerTruncation(\n entry.contentRect.height,\n itemHeightRef.current,\n sections.length,\n sections[0]?.key,\n sectionsPerTruncation,\n setSectionsPerTruncation,\n setCurrent\n );\n }\n },\n [sections, sectionsPerTruncation]\n );\n\n useEffect(() => {\n if (ulRef.current) {\n // Get aria values from IndexerItem to update aria values on Indexer ul element\n ulRef.current.setAttribute('aria-valuemax', renderedSectionsCount.current + 1 + '');\n ulRef.current.setAttribute(\n 'aria-valuetext',\n currElementRef.current?.dataset?.['ojValuetext'] || ''\n );\n ulRef.current.setAttribute(\n 'aria-valuenow',\n currElementRef.current?.dataset?.['ojValuenow'] || ''\n );\n }\n renderedSectionsCount.current = -1;\n });\n\n /**\n * Set up the initial values for sectionsPerTruncation and event listeners\n */\n useEffect(() => {\n const root = rootRef.current;\n if (root) {\n itemHeightRef.current = root.querySelector('li')?.offsetHeight || 0;\n updateSectionsPerTruncation(\n root.offsetHeight,\n itemHeightRef.current,\n sections.length,\n sections[0]?.key,\n sectionsPerTruncation,\n setSectionsPerTruncation,\n setCurrent\n );\n }\n }, [sections, sectionsPerTruncation]);\n\n /**\n * Set up resize observer and refresh the resize observer when\n * sectionsPerTruncation is changed, otherwise it will only have the\n * old copy of sectionsPerTruncation.\n */\n useEffect(() => {\n const root = rootRef.current;\n if (root) {\n const resizeObserver = new ResizeObserver((entries: ResizeObserverEntry[]) => {\n handleResize(entries);\n });\n resizeObserver.observe(root);\n return () => {\n resizeObserver.unobserve(root);\n };\n }\n return undefined;\n }, [sectionsPerTruncation, handleResize]);\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const {\n styles: { baseStyle, innerStyle }\n } = useComponentTheme<never, IndexerStyles>(IndexerRedwoodTheme);\n const testIdProps = useTestId(testId);\n\n return (\n <div ref={rootRef} class={baseStyle} {...testIdProps}>\n <Flex align=\"center\" width=\"6x\" height=\"100%\">\n <ul\n {...mergeProps(currentKeyProps, focusRingProps, selectionProps)}\n ref={ulRef}\n tabIndex={0}\n aria-label=\"Indexer\"\n aria-orientation=\"vertical\"\n aria-valuemin={0}\n aria-describedby={uniqueId}\n role=\"slider\"\n class={innerStyle}>\n <Collection items={sections}>{itemRenderer}</Collection>\n </ul>\n </Flex>\n <HiddenAccessible>\n <span id={uniqueId}>{getIndexerDescription(translations)}</span>\n </HiddenAccessible>\n </div>\n );\n}\n\n// A function to extract key for selection\nconst handleKeyExtract = <K extends string | number>(\n element: HTMLElement,\n rootRef: RefObject<HTMLElement>,\n current: K\n) => {\n if (element === rootRef.current) {\n return current === undefined ? null : current;\n }\n return keyExtractor(element, ITEM_SELECTOR) as K;\n};\n\nconst handleSelection = <K extends string | number>(\n detail: SingleSelectionDetail<K>,\n onCommit: (value: CommitDetail<K>) => void,\n sections: Section<K>[]\n) => {\n if (detail.value === SECTION_OTHERS.key) {\n onCommit({ value: SECTION_OTHERS.key as K });\n } else {\n const selectedSection = sections.find((section) => section.key === detail.value) as Section<K>;\n onCommit({ value: selectedSection.key as K });\n }\n};\n\n/**\n * A function that calculates the section count, based on\n * the container height and the number of sections\n * @param height height of Indexer container\n */\nconst updateSectionsPerTruncation = <K extends string | number>(\n height: number,\n itemHeight: number,\n sectionsLength: number,\n firstSectionKey: K,\n sectionsPerTruncation: number,\n setSectionsPerTruncation: Dispatch<StateUpdater<number>>,\n setCurrent: Dispatch<StateUpdater<K | undefined>>\n) => {\n if (height === 0 || itemHeight === 0) {\n return;\n }\n\n const maxSections = height / itemHeight;\n const last = sectionsLength - 1;\n\n // when the container size is too small to hold two sections\n if (maxSections < 2) {\n if (sectionsPerTruncation !== last) {\n setSectionsPerTruncation(last);\n setCurrent(firstSectionKey);\n }\n\n // no truncation\n // compare with < 0.01 for the deviation from calculation, when sectionsLength and maxSections\n // are about the same, maxNum === sectionsLength doesn't work\n } else if (maxSections > sectionsLength || sectionsLength - maxSections < 0.01) {\n if (sectionsPerTruncation > 1) {\n setSectionsPerTruncation(1);\n setCurrent(firstSectionKey);\n }\n\n // need truncation\n } else {\n const tempSectionCount = findSectionCount(maxSections, last);\n if (tempSectionCount !== sectionsPerTruncation && tempSectionCount < sectionsLength) {\n setSectionsPerTruncation(tempSectionCount);\n setCurrent(firstSectionKey);\n }\n }\n};\n\n/**\n * A helper function to find the best section count\n * in a truncation\n *\n * @param maxSections maximum number of sections allowed in a truncation\n * @param last the index of last section\n */\nconst findSectionCount = (maxSections: number, last: number) => {\n // need truncation\n maxSections -= 2; // minus the last character and the others character\n maxSections /= 2; // each truncation has a section and a separator\n\n const newSectionCount = Math.round(last / maxSections) + 1;\n const truncationLeftover = last % newSectionCount;\n const truncationCount = Math.floor(last / newSectionCount) + (truncationLeftover > 1 ? 1 : 0);\n\n // When the sectionCount becomes greater, it will result in\n // same truncations but with different sections appearing.\n // The following is to find the best sectionCount in this case\n // and prevent unnecessary truncations.\n let tempLeftover = last - (truncationCount - 1) * newSectionCount;\n let tempSectionCount = newSectionCount;\n while (tempSectionCount > tempLeftover) {\n tempSectionCount -= 1;\n tempLeftover = last - (truncationCount - 1) * tempSectionCount;\n }\n if (tempSectionCount != newSectionCount) {\n tempSectionCount += 1;\n }\n\n return tempSectionCount;\n};\n\n/**\n * Helper function to find the aria description for Indexer,\n * based on whether current device is a mobile device\n */\nfunction getIndexerDescription(translations: any) {\n if (isMobile()) {\n return translations.indexer_touchInstructionText();\n } else {\n return translations.indexer_keyboardInstructionText();\n }\n}\n"],"names":["forwardRef","useTranslationBundle","useComponentTheme","IndexerRedwoodTheme","classNames","_jsx","_jsxs","Fragment","Flex","useRef","createRef","useState","useId","useCollectionFocusRing","useCurrentKey","keyExtractor","getPrevNextKey","useSingleSelection","useCallback","useEffect","useTestId","mergeProps","Collection","HiddenAccessible","isMobile"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA;;;AAGG;AACH;AACa,MAAA,cAAc,GAAoB,MAAM,CAAC,MAAM,CAAC;AAC3D,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,KAAK,EAAE,GAAG;AACX,CAAA,EAAE;AAEI,MAAM,aAAa,GAAG,eAAe,CAAC;AAUtC,MAAM,WAAW,GAAGA,iBAAU,CACnC,CAA4B,KAAsB,EAAE,GAAgC,KAAI;AACtF,IAAA,MAAM,YAAY,GAAGC,yCAAoB,CAAa,0BAA0B,CAAC,CAAC;AAElF,IAAA,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,WAAW,CAAC;IACpD,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAE/C,IAAA,MAAM,EAAE,OAAO,EAAE,GAAGC,mCAAiB,CACnCC,8DAAmB,EACnB;AACE,QAAA,OAAO,EAAE,WAAW,CAAC,GAAG,IAAI,WAAW,CAAC,kBAAkB,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e,CAAC,IAAI,kBAAkB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;;;;;IAM9F,IAAI,YAAY,GAAG,IAAI,GAAG,CAAC,eAAe,GAAG,CAAC,IAAI,eAAe,CAAC;IAClE,IAAI,gBAAgB,GAAG,eAAe,CAAC;AACvC,IAAA,OAAO,gBAAgB,GAAG,YAAY,EAAE;QACtC,gBAAgB,IAAI,CAAC,CAAC;QACtB,YAAY,GAAG,IAAI,GAAG,CAAC,eAAe,GAAG,CAAC,IAAI,gBAAgB,CAAC;KAChE;AACD,IAAA,IAAI,gBAAgB,IAAI,eAAe,EAAE;QACvC,gBAAgB,IAAI,CAAC,CAAC;KACvB;AAED,IAAA,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAEF;;;AAGG;AACH,SAAS,qBAAqB,CAAC,YAAiB,EAAA;IAC9C,IAAIS,wBAAQ,EAAE,EAAE;AACd,QAAA,OAAO,YAAY,CAAC,4BAA4B,EAAE,CAAC;KACpD;SAAM;AACL,QAAA,OAAO,YAAY,CAAC,+BAA+B,EAAE,CAAC;KACvD;AACH;;;;;"}
1
+ {"version":3,"file":"Indexer-b5ca1d0c.js","sources":["../../src/UNSAFE_Indexer/IndexerItems.tsx","../../src/UNSAFE_Indexer/Indexer.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { Fragment } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { Flex } from '../UNSAFE_Flex';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { ItemContext } from 'src/UNSAFE_Collection';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { IndexerStyles, IndexerItemVariantOptions } from './themes/IndexerStyles.css';\nimport { IndexerRedwoodTheme } from './themes/redwood/IndexerTheme';\n\n/**\n * Type of a section\n */\nexport type Section<K> = {\n /**\n * The key of each section\n */\n key: K;\n /**\n * The label of each section\n */\n label?: string;\n /**\n * A property that indicates whether the section\n * is disabled or not. Typically, when Indexer is\n * used with ListView, a disabled section implies\n * that there's no corresponding items in the ListView\n */\n isDisabled?: boolean;\n};\n\n/**\n * The others section variable that application could use\n * to compare value\n */\n// const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\nexport const SECTION_OTHERS: Section<string> = Object.freeze({\n key: '__others__',\n label: '#'\n});\n\nexport const ITEM_SELECTOR = '[data-oj-key]';\n\nexport type SectionProps<K> = {\n context: ItemContext<Section<K>>;\n currentKey: K;\n selectedKey: K;\n valueNow: number; // the index of an item within currently visible sections\n isFocusRingVisible: boolean;\n};\n\nexport const SectionItem = forwardRef(\n <K extends string | number>(props: SectionProps<K>, ref: ForwardedRef<HTMLLIElement>) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const { context, selectedKey } = props;\n const isSelected = context.data.key === selectedKey;\n const commonProps = getCommonProps(props, ref);\n\n const { classes } = useComponentTheme<IndexerItemVariantOptions, IndexerStyles>(\n IndexerRedwoodTheme,\n {\n focused: commonProps.ref && commonProps.isFocusRingVisible ? 'isFocused' : 'notFocused',\n disabled: context.data.isDisabled ? 'isDisabled' : 'notDisabled',\n selected: isSelected ? 'isSelected' : 'notSelected'\n }\n );\n const itemClasses = classNames([classes]);\n\n const sectionLabel = context.data.label || context.data.key;\n const valueText = context.data.isDisabled\n ? translations.indexer_disabledLabel({ SECTION: `${sectionLabel}` })\n : `${sectionLabel}`;\n\n return (\n <li\n {...commonProps}\n class={itemClasses}\n data-oj-valuetext={valueText}\n data-oj-disabled={context.data.isDisabled}>\n {context.data.label || context.data.key}\n </li>\n );\n }\n);\n\nfunction getCommonProps<K>(\n { context, currentKey, valueNow, isFocusRingVisible }: SectionProps<K>,\n ref: ForwardedRef<HTMLLIElement>\n) {\n const isCurrent = context.data.key === currentKey;\n return {\n ...(isCurrent && { ref }),\n key: context.data.key,\n 'data-oj-key': context.data.key,\n 'data-oj-key-type': typeof context.data.key,\n 'data-oj-valuenow': valueNow,\n isFocusRingVisible: !!isFocusRingVisible\n };\n}\n\ntype LastSectionProps<K> = SectionProps<K> & {\n lastValueNow: number;\n};\n\n// render the last section, that contains the last character and others character\nexport const LastSectionItem = forwardRef(\n <K extends string | number>(\n { lastValueNow, ...sectionProps }: LastSectionProps<K>,\n ref: ForwardedRef<HTMLLIElement>\n ) => {\n const commonProps = { ...sectionProps, ref };\n return (\n <Fragment>\n <SectionItem {...commonProps} />\n <OthersItem\n {...commonProps}\n ref={ref}\n context={{ index: -1, data: SECTION_OTHERS } as ItemContext<Section<K>>}\n valueNow={lastValueNow}\n />\n </Fragment>\n );\n }\n);\n\nconst OthersItem = forwardRef(<K,>(props: SectionProps<K>, ref: ForwardedRef<HTMLLIElement>) => {\n const { context, selectedKey } = props;\n const commonProps = getCommonProps(props, ref);\n\n const isSelected = context.data.key === selectedKey;\n const { classes } = useComponentTheme<IndexerItemVariantOptions>(IndexerRedwoodTheme, {\n focused: commonProps.ref && commonProps.isFocusRingVisible ? 'isFocused' : 'notFocused',\n selected: isSelected ? 'isSelected' : 'notSelected'\n });\n const othersClasses = classNames([classes]);\n const othersValueText = SECTION_OTHERS.label;\n\n return (\n <li {...commonProps} class={othersClasses} data-oj-valuetext={othersValueText}>\n {context.data.label}\n </li>\n );\n});\n\ntype SeparatorProps<K> = SectionProps<K> & {\n sectionsPerTruncation: number;\n last: number;\n sections: Section<K>[];\n};\n\nexport const SeparatorItem = forwardRef(\n <K extends string | number>(props: SeparatorProps<K>, ref: ForwardedRef<HTMLLIElement>) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const { context, sections } = props;\n const commonProps = getCommonProps(props, ref);\n const { from, to } = getSeparatorRange(props);\n const {\n classes,\n styles: { dotStyle }\n } = useComponentTheme<IndexerItemVariantOptions, IndexerStyles>(IndexerRedwoodTheme, {\n focused: commonProps.ref && commonProps.isFocusRingVisible ? 'isFocused' : 'notFocused'\n });\n\n if (!isInSeparatorMiddle(context.index, from, to)) {\n return null;\n }\n\n const fromText = sections[from].label || sections[from].key;\n const toText = sections[to].label || sections[to].key;\n\n const separatorClasses = classNames([classes]);\n\n const separatorValueText = translations.indexer_separatorLabel({\n FROM_SECTION: `${fromText}`,\n TO_SECTION: `${toText}`\n });\n\n return (\n <li {...commonProps} class={separatorClasses} data-oj-valuetext={separatorValueText}>\n <Flex align=\"center\" justify=\"center\">\n <div class={dotStyle}></div>\n </Flex>\n </li>\n );\n }\n);\n\nexport function hasSeparator<K>(props: SeparatorProps<K>) {\n const { from, to } = getSeparatorRange(props);\n return isInSeparatorMiddle(props.context.index, from, to);\n}\n\nfunction getSeparatorRange<K>({ context, sectionsPerTruncation, last }: SeparatorProps<K>) {\n const from = context.index - (context.index % sectionsPerTruncation) + 1;\n let to = from + sectionsPerTruncation - 2;\n to = to >= last ? last - 1 : to;\n\n return { from, to };\n}\n\nfunction isInSeparatorMiddle(index: number, from: number, to: number) {\n return index === Math.floor((from + to) / 2);\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 */\nimport { ComponentChildren, createRef, type RefObject } from 'preact';\nimport { useEffect, useRef, useState, StateUpdater, useCallback, Dispatch } from 'preact/hooks';\nimport { Flex } from '../UNSAFE_Flex';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { useSingleSelection } from '../hooks/PRIVATE_useSingleSelection/useSingleSelection';\nimport { useCurrentKey } from '../hooks/PRIVATE_useCurrentKey';\nimport { useCollectionFocusRing } from '../hooks/PRIVATE_useCollectionFocusRing';\nimport { keyExtractor, getPrevNextKey, isMobile } from '../utils/PRIVATE_collectionUtils';\nimport { useId } from '../hooks/UNSAFE_useId';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { ItemContext, CurrentKeyDetail, SingleSelectionDetail } from '../UNSAFE_Collection';\nimport { Collection } from '../PRIVATE_Collection';\nimport {\n Section,\n SectionItem,\n LastSectionItem,\n SeparatorItem,\n SECTION_OTHERS,\n hasSeparator,\n ITEM_SELECTOR\n} from './IndexerItems';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { IndexerStyles } from './themes/IndexerStyles.css';\nimport { IndexerRedwoodTheme } from './themes/redwood/IndexerTheme';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\n\nexport type CommitDetail<K> = {\n value: K;\n};\n\ntype Props<K> = {\n /**\n * An array of sections, the default sections is an\n * array of 26 English alphabets and the # others character\n */\n sections?: Section<K>[];\n\n /**\n * The currently selected Section\n */\n value?: K;\n\n /**\n * A function that will be invoked when selection happens,\n * no matter the Section was selected before or not.\n */\n onCommit?: (detail: CommitDetail<K>) => void;\n};\n\nconst defaultSections: Section<string>[] = [\n { key: 'A' },\n { key: 'B' },\n { key: 'C' },\n { key: 'D' },\n { key: 'E' },\n { key: 'F' },\n { key: 'G' },\n { key: 'H' },\n { key: 'I' },\n { key: 'J' },\n { key: 'K' },\n { key: 'L' },\n { key: 'M' },\n { key: 'N' },\n { key: 'O' },\n { key: 'P' },\n { key: 'Q' },\n { key: 'R' },\n { key: 'S' },\n { key: 'T' },\n { key: 'U' },\n { key: 'V' },\n { key: 'W' },\n { key: 'X' },\n { key: 'Y' },\n { key: 'Z' }\n];\n\n/**\n * Pure Preact based component that consumes Collection component\n * and renders an indexer.\n */\nexport function Indexer<K extends string | number>({\n sections = defaultSections as Section<K>[],\n value,\n onCommit = () => {},\n testId\n}: Props<K> & TestIdProps) {\n const rootRef = useRef<HTMLDivElement>(null);\n const ulRef = useRef<HTMLUListElement>(null);\n const currElementRef = createRef<HTMLLIElement>();\n const [current, setCurrent] = useState<K | undefined>(sections[0]?.key);\n // the number of sections in each truncation\n const [sectionsPerTruncation, setSectionsPerTruncation] = useState<number>(-1);\n // the total number of rendered sections and separators\n const renderedSectionsCount = useRef<number>(-1);\n const itemHeightRef = useRef<number>(0);\n // the id for aria describedby\n const uniqueId = useId();\n\n const [showFocusRing, focusRingProps] = useCollectionFocusRing(rootRef, ['ArrowUp', 'ArrowDown']);\n\n const { currentKeyProps } = useCurrentKey(\n (element) => keyExtractor(element, ITEM_SELECTOR),\n true,\n getPrevNextKey(rootRef.current, current, true, ITEM_SELECTOR),\n getPrevNextKey(rootRef.current, current, false, ITEM_SELECTOR),\n undefined,\n undefined,\n current,\n (detail: CurrentKeyDetail<K>) => setCurrent(detail.value)\n );\n\n const { selectionProps } = useSingleSelection(\n (element) => handleKeyExtract(element, ulRef, current as K),\n // pass in undefined so onCommit handler will be called\n // no matter whether the Section was selected before or not\n undefined,\n (detail: SingleSelectionDetail<K>) => handleSelection(detail, onCommit, sections)\n );\n\n /**\n * Item renderer that will return a section item or a section separator\n * based on the sectionsPerTruncation and item context index.\n * @param context item context\n */\n const itemRenderer = (context: ItemContext<Section<K>>): ComponentChildren => {\n const last = sections.length - 1;\n renderedSectionsCount.current += 1;\n\n const commonProps = {\n context,\n ref: currElementRef,\n currentKey: current as K,\n selectedKey: value as K,\n valueNow: renderedSectionsCount.current,\n isFocusRingVisible: !!showFocusRing\n };\n\n // render the last and the others character, they are always present\n if (context.index === last) {\n return <LastSectionItem {...commonProps} lastValueNow={renderedSectionsCount.current + 1} />;\n }\n\n // render a section, in the non-truncation case or when it is the first in a truncation\n if (sectionsPerTruncation <= 1 || context.index % sectionsPerTruncation === 0) {\n return <SectionItem {...commonProps} />;\n }\n\n // render the separator in the middle of a truncation\n const separatorProps = { ...commonProps, sectionsPerTruncation, last, sections };\n if (hasSeparator(separatorProps)) {\n return <SeparatorItem {...separatorProps} />;\n }\n\n // remove the count for truncated sections\n renderedSectionsCount.current -= 1;\n\n return null;\n };\n\n // truncate the Indexer during resize\n const handleResize = useCallback(\n (entries: ResizeObserverEntry[]) => {\n for (const entry of entries) {\n updateSectionsPerTruncation(\n entry.contentRect.height,\n itemHeightRef.current,\n sections.length,\n sections[0]?.key,\n sectionsPerTruncation,\n setSectionsPerTruncation,\n setCurrent\n );\n }\n },\n [sections, sectionsPerTruncation]\n );\n\n useEffect(() => {\n if (ulRef.current) {\n // Get aria values from IndexerItem to update aria values on Indexer ul element\n ulRef.current.setAttribute('aria-valuemax', renderedSectionsCount.current + 1 + '');\n ulRef.current.setAttribute(\n 'aria-valuetext',\n currElementRef.current?.dataset?.['ojValuetext'] || ''\n );\n ulRef.current.setAttribute(\n 'aria-valuenow',\n currElementRef.current?.dataset?.['ojValuenow'] || ''\n );\n }\n renderedSectionsCount.current = -1;\n });\n\n /**\n * Set up the initial values for sectionsPerTruncation and event listeners\n */\n useEffect(() => {\n const root = rootRef.current;\n if (root) {\n itemHeightRef.current = root.querySelector('li')?.offsetHeight || 0;\n updateSectionsPerTruncation(\n root.offsetHeight,\n itemHeightRef.current,\n sections.length,\n sections[0]?.key,\n sectionsPerTruncation,\n setSectionsPerTruncation,\n setCurrent\n );\n }\n }, [sections, sectionsPerTruncation]);\n\n /**\n * Set up resize observer and refresh the resize observer when\n * sectionsPerTruncation is changed, otherwise it will only have the\n * old copy of sectionsPerTruncation.\n */\n useEffect(() => {\n const root = rootRef.current;\n if (root) {\n const resizeObserver = new ResizeObserver((entries: ResizeObserverEntry[]) => {\n handleResize(entries);\n });\n resizeObserver.observe(root);\n return () => {\n resizeObserver.unobserve(root);\n };\n }\n return undefined;\n }, [sectionsPerTruncation, handleResize]);\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const {\n styles: { baseStyle, innerStyle }\n } = useComponentTheme<never, IndexerStyles>(IndexerRedwoodTheme);\n const testIdProps = useTestId(testId);\n\n return (\n <div ref={rootRef} class={baseStyle} {...testIdProps}>\n <Flex align=\"center\" width=\"6x\" height=\"100%\">\n <ul\n {...mergeProps(currentKeyProps, focusRingProps, selectionProps)}\n ref={ulRef}\n tabIndex={0}\n aria-label=\"Indexer\"\n aria-orientation=\"vertical\"\n aria-valuemin={0}\n aria-describedby={uniqueId}\n role=\"slider\"\n class={innerStyle}>\n <Collection items={sections}>{itemRenderer}</Collection>\n </ul>\n </Flex>\n <HiddenAccessible>\n <span id={uniqueId}>{getIndexerDescription(translations)}</span>\n </HiddenAccessible>\n </div>\n );\n}\n\n// A function to extract key for selection\nconst handleKeyExtract = <K extends string | number>(\n element: HTMLElement,\n rootRef: RefObject<HTMLElement>,\n current: K\n) => {\n if (element === rootRef.current) {\n return current === undefined ? null : current;\n }\n return keyExtractor(element, ITEM_SELECTOR) as K;\n};\n\nconst handleSelection = <K extends string | number>(\n detail: SingleSelectionDetail<K>,\n onCommit: (value: CommitDetail<K>) => void,\n sections: Section<K>[]\n) => {\n if (detail.value === SECTION_OTHERS.key) {\n onCommit({ value: SECTION_OTHERS.key as K });\n } else {\n const selectedSection = sections.find((section) => section.key === detail.value) as Section<K>;\n onCommit({ value: selectedSection.key as K });\n }\n};\n\n/**\n * A function that calculates the section count, based on\n * the container height and the number of sections\n * @param height height of Indexer container\n */\nconst updateSectionsPerTruncation = <K extends string | number>(\n height: number,\n itemHeight: number,\n sectionsLength: number,\n firstSectionKey: K,\n sectionsPerTruncation: number,\n setSectionsPerTruncation: Dispatch<StateUpdater<number>>,\n setCurrent: Dispatch<StateUpdater<K | undefined>>\n) => {\n if (height === 0 || itemHeight === 0) {\n return;\n }\n\n const maxSections = height / itemHeight;\n const last = sectionsLength - 1;\n\n // when the container size is too small to hold two sections\n if (maxSections < 2) {\n if (sectionsPerTruncation !== last) {\n setSectionsPerTruncation(last);\n setCurrent(firstSectionKey);\n }\n\n // no truncation\n // compare with < 0.01 for the deviation from calculation, when sectionsLength and maxSections\n // are about the same, maxNum === sectionsLength doesn't work\n } else if (maxSections > sectionsLength || sectionsLength - maxSections < 0.01) {\n if (sectionsPerTruncation > 1) {\n setSectionsPerTruncation(1);\n setCurrent(firstSectionKey);\n }\n\n // need truncation\n } else {\n const tempSectionCount = findSectionCount(maxSections, last);\n if (tempSectionCount !== sectionsPerTruncation && tempSectionCount < sectionsLength) {\n setSectionsPerTruncation(tempSectionCount);\n setCurrent(firstSectionKey);\n }\n }\n};\n\n/**\n * A helper function to find the best section count\n * in a truncation\n *\n * @param maxSections maximum number of sections allowed in a truncation\n * @param last the index of last section\n */\nconst findSectionCount = (maxSections: number, last: number) => {\n // need truncation\n maxSections -= 2; // minus the last character and the others character\n maxSections /= 2; // each truncation has a section and a separator\n\n const newSectionCount = Math.round(last / maxSections) + 1;\n const truncationLeftover = last % newSectionCount;\n const truncationCount = Math.floor(last / newSectionCount) + (truncationLeftover > 1 ? 1 : 0);\n\n // When the sectionCount becomes greater, it will result in\n // same truncations but with different sections appearing.\n // The following is to find the best sectionCount in this case\n // and prevent unnecessary truncations.\n let tempLeftover = last - (truncationCount - 1) * newSectionCount;\n let tempSectionCount = newSectionCount;\n while (tempSectionCount > tempLeftover) {\n tempSectionCount -= 1;\n tempLeftover = last - (truncationCount - 1) * tempSectionCount;\n }\n if (tempSectionCount != newSectionCount) {\n tempSectionCount += 1;\n }\n\n return tempSectionCount;\n};\n\n/**\n * Helper function to find the aria description for Indexer,\n * based on whether current device is a mobile device\n */\nfunction getIndexerDescription(translations: any) {\n if (isMobile()) {\n return translations.indexer_touchInstructionText();\n } else {\n return translations.indexer_keyboardInstructionText();\n }\n}\n"],"names":["forwardRef","useTranslationBundle","useComponentTheme","IndexerRedwoodTheme","classNames","_jsx","_jsxs","Fragment","Flex","useRef","createRef","useState","useId","useCollectionFocusRing","useCurrentKey","keyExtractor","getPrevNextKey","useSingleSelection","useCallback","useEffect","useTestId","mergeProps","Collection","HiddenAccessible","isMobile"],"mappings":";;;;;;;;;;;;;;;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AQ,EAAE,EAAE;AACd,QAAA,OAAO,YAAY,CAAC,4BAA4B,EAAE,CAAC;KACpD;SAAM;AACL,QAAA,OAAO,YAAY,CAAC,+BAA+B,EAAE,CAAC;KACvD;AACH;;;;;"}
@@ -6,8 +6,8 @@ var hooks = require('preact/hooks');
6
6
  var classNames = require('./classNames-c14c6ef3.js');
7
7
  var mergeProps = require('./mergeProps-e3da7237.js');
8
8
  var keys = require('./keys-25710458.js');
9
- var LoadMoreCollection = require('./LoadMoreCollection-73112ff0.js');
10
- var VirtualizedCollection = require('./VirtualizedCollection-00aedb8b.js');
9
+ var LoadMoreCollection = require('./LoadMoreCollection-69bc038c.js');
10
+ var VirtualizedCollection = require('./VirtualizedCollection-9e8c48b9.js');
11
11
  var compat = require('preact/compat');
12
12
  var TabbableModeContext = require('./TabbableModeContext-e99d527e.js');
13
13
  var useId = require('./useId-6c0eeb27.js');
@@ -25,7 +25,6 @@ var useTheme = require('./useTheme-6cedf9c8.js');
25
25
  var useTestId = require('./useTestId-e267a39d.js');
26
26
  require('./CollectionInteractionContext-f84ff7a1.js');
27
27
  var useCollectionInteractionContext = require('./useCollectionInteractionContext-6fc0200e.js');
28
- require('preact');
29
28
  var useSelection = require('./useSelection-0dbc2f40.js');
30
29
  var useDropDownSelection = require('./useDropDownSelection-b5e635dc.js');
31
30
  var useCurrentKey = require('./useCurrentKey-d8d41864.js');
@@ -720,4 +719,4 @@ exports.List = List;
720
719
  exports.SkeletonContainer = SkeletonContainer;
721
720
  exports.excludeGroup = excludeGroup;
722
721
  exports.scrollToVisible = scrollToVisible;
723
- //# sourceMappingURL=List-0dc2c4c4.js.map
722
+ //# sourceMappingURL=List-877077ab.js.map