@oracle/oraclejet-preact 17.1.4 → 17.1.6

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 (649) hide show
  1. package/amd/{BaseCardView-a11e4dec.js → BaseCardView-c5624c8a.js} +2 -2
  2. package/amd/{BaseCardView-a11e4dec.js.map → BaseCardView-c5624c8a.js.map} +1 -1
  3. package/amd/CardFlexView-14fada63.js +2 -0
  4. package/amd/{CardFlexView-9688d264.js.map → CardFlexView-14fada63.js.map} +1 -1
  5. package/amd/{CardGridView-b7f4f205.js → CardGridView-00ba53a9.js} +2 -2
  6. package/amd/{CardGridView-b7f4f205.js.map → CardGridView-00ba53a9.js.map} +1 -1
  7. package/amd/GroupLoadingIndicator-cd9192c9.js +1 -1
  8. package/amd/{Indexer-6833ad40.js → Indexer-74c989ce.js} +2 -2
  9. package/amd/{Indexer-6833ad40.js.map → Indexer-74c989ce.js.map} +1 -1
  10. package/amd/InputDatePicker-97756bcd.js +2 -0
  11. package/amd/{InputDatePicker-6167ff45.js.map → InputDatePicker-97756bcd.js.map} +1 -1
  12. package/amd/List-61d64cd6.js +2 -0
  13. package/amd/{List-3ebac3fc.js.map → List-61d64cd6.js.map} +1 -1
  14. package/amd/{ListView-c8082c0c.js → ListView-a49e52c3.js} +2 -2
  15. package/amd/{ListView-c8082c0c.js.map → ListView-a49e52c3.js.map} +1 -1
  16. package/amd/LoadMoreCollection-83413a59.js +2 -0
  17. package/amd/{LoadMoreCollection-a6adbc3f.js.map → LoadMoreCollection-83413a59.js.map} +1 -1
  18. package/amd/MaxLengthCounter-caafceef.js +2 -0
  19. package/amd/MaxLengthCounter-caafceef.js.map +1 -0
  20. package/amd/PRIVATE_BaseCardView.js +1 -1
  21. package/amd/PRIVATE_List.js +1 -1
  22. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  23. package/amd/PRIVATE_SelectCommon.js +1 -1
  24. package/amd/PRIVATE_Table.js +1 -1
  25. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  26. package/amd/{SelectMultiple-3eb4a268.js → SelectMultiple-1ff92cc3.js} +2 -2
  27. package/amd/{SelectMultiple-3eb4a268.js.map → SelectMultiple-1ff92cc3.js.map} +1 -1
  28. package/amd/{SelectSingle-9fcc38fc.js → SelectSingle-641a4cac.js} +2 -2
  29. package/amd/{SelectSingle-9fcc38fc.js.map → SelectSingle-641a4cac.js.map} +1 -1
  30. package/amd/{Table-611e08d5.js → Table-986ae70c.js} +2 -2
  31. package/amd/{Table-611e08d5.js.map → Table-986ae70c.js.map} +1 -1
  32. package/amd/{TableView-cf113195.js → TableView-452fa547.js} +2 -2
  33. package/amd/{TableView-cf113195.js.map → TableView-452fa547.js.map} +1 -1
  34. package/amd/TextArea-259d741c.js +2 -0
  35. package/amd/TextArea-259d741c.js.map +1 -0
  36. package/amd/TextAreaAutosize-e8dc13b4.js +2 -0
  37. package/amd/{TextAreaAutosize-1f47b470.js.map → TextAreaAutosize-e8dc13b4.js.map} +1 -1
  38. package/amd/Theme-redwood/theme.css +280 -280
  39. package/amd/Theme-stable/theme.css +332 -332
  40. package/amd/UNSAFE_CardFlexView.js +1 -1
  41. package/amd/UNSAFE_CardGridView.js +1 -1
  42. package/amd/UNSAFE_ExpandableList.js +1 -1
  43. package/amd/UNSAFE_Indexer.js +1 -1
  44. package/amd/UNSAFE_InputDatePicker.js +1 -1
  45. package/amd/UNSAFE_ListView.js +1 -1
  46. package/amd/UNSAFE_SelectMultiple.js +1 -1
  47. package/amd/UNSAFE_SelectSingle.js +1 -1
  48. package/amd/UNSAFE_TableView.js +1 -1
  49. package/amd/UNSAFE_TextArea.js +1 -1
  50. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  51. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  52. package/amd/{VirtualizedCollection-63223f5e.js → VirtualizedCollection-897516a5.js} +2 -2
  53. package/amd/{VirtualizedCollection-63223f5e.js.map → VirtualizedCollection-897516a5.js.map} +1 -1
  54. package/amd/VirtualizedListView-96ddfd98.js +2 -0
  55. package/amd/{VirtualizedListView-cf795207.js.map → VirtualizedListView-96ddfd98.js.map} +1 -1
  56. package/amd/{useSelectCommon-94d5e5bb.js → useSelectCommon-4e256cf0.js} +2 -2
  57. package/amd/{useSelectCommon-94d5e5bb.js.map → useSelectCommon-4e256cf0.js.map} +1 -1
  58. package/cjs/{BaseCardView-b5471a69.js → BaseCardView-55bc5e6f.js} +2 -2
  59. package/cjs/{BaseCardView-b5471a69.js.map → BaseCardView-55bc5e6f.js.map} +1 -1
  60. package/cjs/{CardFlexView-075d4013.js → CardFlexView-ae79f8f1.js} +2 -2
  61. package/cjs/{CardFlexView-075d4013.js.map → CardFlexView-ae79f8f1.js.map} +1 -1
  62. package/cjs/{CardGridView-3c07cf2a.js → CardGridView-4936ffd6.js} +2 -2
  63. package/cjs/{CardGridView-3c07cf2a.js.map → CardGridView-4936ffd6.js.map} +1 -1
  64. package/cjs/GroupLoadingIndicator-397feb37.js +1 -1
  65. package/cjs/{Indexer-8ba89fa5.js → Indexer-1dfa7ec4.js} +2 -2
  66. package/cjs/{Indexer-8ba89fa5.js.map → Indexer-1dfa7ec4.js.map} +1 -1
  67. package/cjs/{List-5374e621.js → List-2baf37ae.js} +4 -3
  68. package/cjs/{List-5374e621.js.map → List-2baf37ae.js.map} +1 -1
  69. package/cjs/{ListView-a8278334.js → ListView-4db96cfd.js} +2 -2
  70. package/cjs/{ListView-a8278334.js.map → ListView-4db96cfd.js.map} +1 -1
  71. package/cjs/{LoadMoreCollection-69bc038c.js → LoadMoreCollection-73112ff0.js} +2 -2
  72. package/cjs/{LoadMoreCollection-69bc038c.js.map → LoadMoreCollection-73112ff0.js.map} +1 -1
  73. package/cjs/{NavigationListItem-7550547a.js → NavigationListItem-d9228979.js} +1 -14
  74. package/cjs/{NavigationListItem-7550547a.js.map → NavigationListItem-d9228979.js.map} +1 -1
  75. package/cjs/{OverflowTabBar-76c75781.js → OverflowTabBar-081cc41e.js} +2 -2
  76. package/cjs/{OverflowTabBar-76c75781.js.map → OverflowTabBar-081cc41e.js.map} +1 -1
  77. package/cjs/{OverflowTabBarItem-76059bad.js → OverflowTabBarItem-57899880.js} +2 -2
  78. package/cjs/{OverflowTabBarItem-76059bad.js.map → OverflowTabBarItem-57899880.js.map} +1 -1
  79. package/cjs/PRIVATE_BaseCardView.js +3 -3
  80. package/cjs/PRIVATE_List.js +4 -4
  81. package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
  82. package/cjs/PRIVATE_SelectCommon.js +5 -5
  83. package/cjs/PRIVATE_Table.js +3 -3
  84. package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
  85. package/cjs/{SelectMultiple-79cebd04.js → SelectMultiple-2d4eba14.js} +2 -2
  86. package/cjs/{SelectMultiple-79cebd04.js.map → SelectMultiple-2d4eba14.js.map} +1 -1
  87. package/cjs/{SelectSingle-d8cf56db.js → SelectSingle-731c2ecd.js} +2 -2
  88. package/cjs/{SelectSingle-d8cf56db.js.map → SelectSingle-731c2ecd.js.map} +1 -1
  89. package/cjs/{Table-d70de040.js → Table-b137c360.js} +2 -2
  90. package/cjs/{Table-d70de040.js.map → Table-b137c360.js.map} +1 -1
  91. package/cjs/{TableView-d91ebb19.js → TableView-3a1f0c38.js} +2 -2
  92. package/cjs/{TableView-d91ebb19.js.map → TableView-3a1f0c38.js.map} +1 -1
  93. package/cjs/Theme-redwood/theme.css +136 -136
  94. package/cjs/Theme-stable/theme.css +373 -373
  95. package/cjs/UNSAFE_BaseButton/themes/stable/BaseButtonTheme.js +1 -0
  96. package/cjs/UNSAFE_BaseButton/themes/stable/BaseButtonTheme.js.map +1 -1
  97. package/cjs/UNSAFE_CardFlexView.js +4 -4
  98. package/cjs/UNSAFE_CardGridView.js +4 -4
  99. package/cjs/UNSAFE_ExpandableList.js +3 -3
  100. package/cjs/UNSAFE_Indexer.js +2 -2
  101. package/cjs/UNSAFE_ListView.js +5 -5
  102. package/cjs/UNSAFE_NavigationList.js +4 -4
  103. package/cjs/UNSAFE_OverflowTabBar.js +3 -3
  104. package/cjs/UNSAFE_SelectMultiple.js +6 -6
  105. package/cjs/UNSAFE_SelectSingle.js +6 -6
  106. package/cjs/UNSAFE_TabBar.js +2 -2
  107. package/cjs/UNSAFE_TabBarCommon.js +2 -2
  108. package/cjs/UNSAFE_TabBarMixed.js +2 -2
  109. package/cjs/UNSAFE_TableView.js +4 -4
  110. package/cjs/UNSAFE_VirtualizedListView.js +5 -5
  111. package/cjs/{VirtualizedCollection-9e8c48b9.js → VirtualizedCollection-00aedb8b.js} +2 -2
  112. package/cjs/{VirtualizedCollection-9e8c48b9.js.map → VirtualizedCollection-00aedb8b.js.map} +1 -1
  113. package/cjs/{VirtualizedListView-16222e22.js → VirtualizedListView-75610c90.js} +2 -2
  114. package/cjs/{VirtualizedListView-16222e22.js.map → VirtualizedListView-75610c90.js.map} +1 -1
  115. package/cjs/{useSelectCommon-309c1746.js → useSelectCommon-12313cdd.js} +2 -2
  116. package/cjs/{useSelectCommon-309c1746.js.map → useSelectCommon-12313cdd.js.map} +1 -1
  117. package/es/ActionCard-ba1c946e.js +1 -1
  118. package/es/AvatarVariants.styles.css +25 -25
  119. package/es/AvatarVariants.styles2.css +25 -25
  120. package/es/BadgeVariants.styles.css +14 -14
  121. package/es/BadgeVariants.styles2.css +14 -14
  122. package/es/{BarChart-cbd9c2bf.js → BarChart-c68a559c.js} +4 -4
  123. package/es/{BarChart-cbd9c2bf.js.map → BarChart-c68a559c.js.map} +1 -1
  124. package/es/BaseButton-5a3335d9.js +2 -2
  125. package/es/BaseCardView-e0e8a69b.js +6 -6
  126. package/es/{BaseCardViewSelectionTest-120542e8.js → BaseCardViewSelectionTest-2159b609.js} +6 -6
  127. package/es/{BaseCardViewSelectionTest-120542e8.js.map → BaseCardViewSelectionTest-2159b609.js.map} +1 -1
  128. package/es/BaseNavigationListItem-ac7ef3c3.js +1 -1
  129. package/es/ButtonLayoutVariants.styles.css +2 -2
  130. package/es/ButtonLayoutVariants.styles2.css +2 -2
  131. package/es/ButtonSet-ac76e6e2.js +2 -2
  132. package/es/ButtonSetIconButton-9241b9fb.js +3 -3
  133. package/es/{Center-8b48ab02.js → Center-9f355d44.js} +2 -2
  134. package/es/{Center-8b48ab02.js.map → Center-9f355d44.js.map} +1 -1
  135. package/es/{Chart-8922a0b3.js → Chart-f2438968.js} +11 -11
  136. package/es/{Chart-8922a0b3.js.map → Chart-f2438968.js.map} +1 -1
  137. package/es/CheckboxControl-f5e36d0d.js +6 -6
  138. package/es/CheckboxRadioField-bdda2573.js +6 -6
  139. package/es/Chip-f2df2078.js +1 -1
  140. package/es/ClearIcon-b5083cc8.js +1 -1
  141. package/es/CollapseIcon-de129943.js +1 -1
  142. package/es/Collapsible-09cc493a.js +2 -2
  143. package/es/CompactHelpSource-1686edf6.js +2 -2
  144. package/es/{CompactLabelAssistance-fa8264fa.js → CompactLabelAssistance-61df6dbf.js} +5 -5
  145. package/es/{CompactLabelAssistance-fa8264fa.js.map → CompactLabelAssistance-61df6dbf.js.map} +1 -1
  146. package/es/CompactUserAssistance-3a10afd4.js +4 -4
  147. package/es/ComponentMessageContainer-18e7fe34.js +4 -4
  148. package/es/ConveyorBeltItem-c8d4ba1b.js +2 -2
  149. package/es/ConveyorBeltVariants.styles.css +6 -6
  150. package/es/ConveyorBeltVariants.styles2.css +6 -6
  151. package/es/{DatePicker-4fb6d86d.js → DatePicker-d4e027c2.js} +6 -6
  152. package/es/{DatePicker-4fb6d86d.js.map → DatePicker-d4e027c2.js.map} +1 -1
  153. package/es/DatePickerHeader-79f0b61b.js +3 -3
  154. package/es/{Diagram-6f1ad2ea.js → Diagram-d7fdc75f.js} +5 -5
  155. package/es/{Diagram-6f1ad2ea.js.map → Diagram-d7fdc75f.js.map} +1 -1
  156. package/es/{Dialog-5e92dcd1.js → Dialog-cf69547f.js} +6 -6
  157. package/es/{Dialog-5e92dcd1.js.map → Dialog-cf69547f.js.map} +1 -1
  158. package/es/DirectionalCollapseArrowIcon-20259aab.js +1 -1
  159. package/es/DirectionalExpandArrowIcon-36ba273c.js +1 -1
  160. package/es/DragHandle-3b768189.js +1 -1
  161. package/es/{Dropdown-f45f823c.js → Dropdown-d017dd0a.js} +5 -5
  162. package/es/{Dropdown-f45f823c.js.map → Dropdown-d017dd0a.js.map} +1 -1
  163. package/es/{EnvironmentProvider-0fc2fd0c.js → EnvironmentProvider-a3819bde.js} +3 -3
  164. package/es/{EnvironmentProvider-0fc2fd0c.js.map → EnvironmentProvider-a3819bde.js.map} +1 -1
  165. package/es/FilePicker-f4582615.js +2 -2
  166. package/es/{Flex-8696b27b.js → Flex-2d51e914.js} +2 -2
  167. package/es/{Flex-8696b27b.js.map → Flex-2d51e914.js.map} +1 -1
  168. package/es/{Floating-f9bbd276.js → Floating-aebc0f85.js} +4 -4
  169. package/es/{Floating-f9bbd276.js.map → Floating-aebc0f85.js.map} +1 -1
  170. package/es/FormLayout-221e1aa8.js +1 -1
  171. package/es/Gantt-46f5f954.js +9 -9
  172. package/es/{Grid-7fd29a9e.js → Grid-c2385b22.js} +2 -2
  173. package/es/{Grid-7fd29a9e.js.map → Grid-c2385b22.js.map} +1 -1
  174. package/es/{Gridlines-dcdc34bc.js → Gridlines-0e7b33f5.js} +2 -2
  175. package/es/{Gridlines-dcdc34bc.js.map → Gridlines-0e7b33f5.js.map} +1 -1
  176. package/es/GroupLoadingIndicator-2bfdba44.js +1 -1
  177. package/es/{HighlightText-cc043982.js → HighlightText-d505bf35.js} +2 -2
  178. package/es/{HighlightText-cc043982.js.map → HighlightText-d505bf35.js.map} +1 -1
  179. package/es/Icon-4171c0d7.js +3 -3
  180. package/es/IconButton-451a225c.js +3 -3
  181. package/es/IconMenuButton-e46f8d54.js +4 -4
  182. package/es/IconProgressButton-8f2f6b27.js +3 -3
  183. package/es/IconSwitchButton-5ff7b0fe.js +3 -3
  184. package/es/IconToggleButton-375f006f.js +3 -3
  185. package/es/{IconUserAssistance-dd56b812.js → IconUserAssistance-7cfd1ed2.js} +3 -3
  186. package/es/{IconUserAssistance-dd56b812.js.map → IconUserAssistance-7cfd1ed2.js.map} +1 -1
  187. package/es/Indexer-658cee69.js +4 -4
  188. package/es/InlineHelpSource-fcdcd122.js +1 -1
  189. package/es/InlineUserAssistance-e6deb149.js +5 -5
  190. package/es/InputDateMask-3d511e39.js +7 -7
  191. package/es/InputDatePicker-fe26a952.js +8 -8
  192. package/es/InputPassword-47130b3c.js +4 -4
  193. package/es/InputText-4799b2ed.js +6 -6
  194. package/es/Label-ab276ca9.js +5 -5
  195. package/es/LabelValueLayout-bcf482be.js +1 -1
  196. package/es/{Layer-71fc666f.js → Layer-915d986a.js} +3 -3
  197. package/es/{Layer-71fc666f.js.map → Layer-915d986a.js.map} +1 -1
  198. package/es/{LayerHost-15b42a3e.js → LayerHost-7a2149f5.js} +2 -2
  199. package/es/{LayerHost-15b42a3e.js.map → LayerHost-7a2149f5.js.map} +1 -1
  200. package/es/{LayerManager-af39e736.js → LayerManager-be34be40.js} +2 -2
  201. package/es/{LayerManager-af39e736.js.map → LayerManager-be34be40.js.map} +1 -1
  202. package/es/Legend-ae0296f0.js +3 -3
  203. package/es/{LineAreaChart-cfb9b43d.js → LineAreaChart-e2e762e8.js} +4 -4
  204. package/es/{LineAreaChart-cfb9b43d.js.map → LineAreaChart-e2e762e8.js.map} +1 -1
  205. package/es/Link-9072aa54.js +1 -1
  206. package/es/LinkVariants.styles.css +14 -14
  207. package/es/LinkVariants.styles2.css +14 -14
  208. package/es/List-1d23e84f.js +5 -5
  209. package/es/{ListItemLayout-32895900.js → ListItemLayout-01286b56.js} +2 -2
  210. package/es/{ListItemLayout-32895900.js.map → ListItemLayout-01286b56.js.map} +1 -1
  211. package/es/ListView-8eba90e8.js +3 -3
  212. package/es/{LiveRegion-cb4f8a54.js → LiveRegion-5302331c.js} +2 -2
  213. package/es/{LiveRegion-cb4f8a54.js.map → LiveRegion-5302331c.js.map} +1 -1
  214. package/es/{MaxLengthLiveRegion-59087064.js → MaxLengthLiveRegion-9b386b63.js} +3 -3
  215. package/es/{MaxLengthLiveRegion-59087064.js.map → MaxLengthLiveRegion-9b386b63.js.map} +1 -1
  216. package/es/{Menu-b5deea24.js → Menu-e44a3e0b.js} +8 -8
  217. package/es/{Menu-b5deea24.js.map → Menu-e44a3e0b.js.map} +1 -1
  218. package/es/MenuButton-49b7965d.js +3 -3
  219. package/es/MenuItem-be46866f.js +1 -1
  220. package/es/Message-322f8d63.js +2 -2
  221. package/es/{MessageLayer-34a390eb.js → MessageLayer-f09b0a1b.js} +6 -6
  222. package/es/{MessageLayer-34a390eb.js.map → MessageLayer-f09b0a1b.js.map} +1 -1
  223. package/es/MessageToast-66bdffe6.js +8 -8
  224. package/es/MessagesManager-a1c3e92e.js +3 -3
  225. package/es/MeterBar-9ad34b98.js +5 -5
  226. package/es/MeterBarVariants.styles.css +4 -4
  227. package/es/MeterBarVariants.styles2.css +4 -4
  228. package/es/MeterCircle-6bd257c8.js +5 -5
  229. package/es/{Modal-3fd86d5a.js → Modal-862b8167.js} +3 -3
  230. package/es/{Modal-3fd86d5a.js.map → Modal-862b8167.js.map} +1 -1
  231. package/es/{MonthView-c3b82ace.js → MonthView-3d90f424.js} +4 -4
  232. package/es/{MonthView-c3b82ace.js.map → MonthView-3d90f424.js.map} +1 -1
  233. package/es/NavigationListItem-a336f06f.js +5 -5
  234. package/es/NavigationListItemVariants.styles.css +5 -5
  235. package/es/NavigationListItemVariants.styles2.css +5 -5
  236. package/es/NumberInputText-eca11601.js +6 -6
  237. package/es/OverflowTabBarItem-12249753.js +3 -3
  238. package/es/PRIVATE_BaseCardView.js +20 -20
  239. package/es/PRIVATE_Chart.js +34 -34
  240. package/es/PRIVATE_CheckboxControl.js +22 -22
  241. package/es/PRIVATE_CheckboxRadioField.js +23 -23
  242. package/es/PRIVATE_ClearIcon.js +17 -17
  243. package/es/PRIVATE_DatePickerHeader.js +19 -19
  244. package/es/PRIVATE_DatePickerLayout.js +4 -4
  245. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  246. package/es/PRIVATE_FormControls.js +19 -19
  247. package/es/PRIVATE_IconSwitchButton.js +15 -15
  248. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  249. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  250. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  251. package/es/PRIVATE_Icons/RadiobuttonOff.js +15 -15
  252. package/es/PRIVATE_Icons/RadiobuttonOn.js +15 -15
  253. package/es/PRIVATE_Icons/WarningS.js +15 -15
  254. package/es/PRIVATE_List.js +19 -19
  255. package/es/PRIVATE_Message.js +18 -18
  256. package/es/PRIVATE_MessageLayer.js +11 -11
  257. package/es/PRIVATE_MonthView.js +7 -7
  258. package/es/PRIVATE_MonthYearGridView.js +7 -7
  259. package/es/PRIVATE_PlotArea.js +4 -4
  260. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  261. package/es/PRIVATE_SelectCommon.js +28 -28
  262. package/es/PRIVATE_StyledCheckbox.js +15 -15
  263. package/es/PRIVATE_Table.js +18 -18
  264. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  265. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  266. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  267. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  268. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  269. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  270. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  271. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  272. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  273. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  274. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  275. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  276. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  277. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  278. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  279. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  280. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  281. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  282. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  283. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  284. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  285. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  286. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  287. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  288. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  289. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  290. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  291. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  292. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  293. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  294. package/es/PRIVATE_ThemedIcons/SortDefaultIcon.js +15 -15
  295. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  296. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  297. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  298. package/es/PRIVATE_TimeComponent.js +18 -18
  299. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  300. package/es/PictoChart-3dd90503.js +6 -6
  301. package/es/{PieChart-cdb56906.js → PieChart-d4f63bd8.js} +5 -5
  302. package/es/{PieChart-cdb56906.js.map → PieChart-d4f63bd8.js.map} +1 -1
  303. package/es/{Popup-8becd87a.js → Popup-7cc4028b.js} +9 -9
  304. package/es/{Popup-8becd87a.js.map → Popup-7cc4028b.js.map} +1 -1
  305. package/es/{ProgressBar-2565d814.js → ProgressBar-d647bba4.js} +3 -3
  306. package/es/{ProgressBar-2565d814.js.map → ProgressBar-d647bba4.js.map} +1 -1
  307. package/es/ProgressButton-645ce827.js +3 -3
  308. package/es/ProgressButtonLabelLayout-6cf150e0.js +3 -3
  309. package/es/{ProgressCircle-c7f945c0.js → ProgressCircle-13dc0e4f.js} +2 -2
  310. package/es/{ProgressCircle-c7f945c0.js.map → ProgressCircle-13dc0e4f.js.map} +1 -1
  311. package/es/ProgressCircleVariants.styles.css +4 -4
  312. package/es/ProgressCircleVariants.styles2.css +4 -4
  313. package/es/RadioItem-af1bbece.js +6 -6
  314. package/es/RatingGauge-82a6a416.js +7 -7
  315. package/es/RatingGaugeVariants.styles.css +15 -15
  316. package/es/RatingGaugeVariants.styles2.css +15 -15
  317. package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
  318. package/es/RemovableNavigationListItem-7032ce3e.js +1 -1
  319. package/es/RemovableTabBarItem-16d04210.js +2 -2
  320. package/es/ReorderableTabBar-981af0f2.js +2 -2
  321. package/es/RevealToggleIcon-563c241c.js +1 -1
  322. package/es/SectionalLegend-a9b719ff.js +4 -4
  323. package/es/{SectionedContent-237bf539.js → SectionedContent-7e36073f.js} +5 -5
  324. package/es/{SectionedContent-237bf539.js.map → SectionedContent-7e36073f.js.map} +1 -1
  325. package/es/SelectMultiple-c1264885.js +8 -8
  326. package/es/SelectSingle-8336ec24.js +7 -7
  327. package/es/{SelectionCard-1711aae6.js → SelectionCard-a27bce15.js} +2 -2
  328. package/es/{SelectionCard-1711aae6.js.map → SelectionCard-a27bce15.js.map} +1 -1
  329. package/es/Selector-9f40e909.js +1 -1
  330. package/es/{SelectorAll-42ce8707.js → SelectorAll-40c76f0b.js} +7 -7
  331. package/es/{SelectorAll-42ce8707.js.map → SelectorAll-40c76f0b.js.map} +1 -1
  332. package/es/{Sheet-f7117b12.js → Sheet-34f3bcb4.js} +3 -3
  333. package/es/{Sheet-f7117b12.js.map → Sheet-34f3bcb4.js.map} +1 -1
  334. package/es/SplitMenuButton-74913bcc.js +3 -3
  335. package/es/SplitMenuButtonTheme.styles.css +4 -4
  336. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  337. package/es/StyledTextField-9df27ab4.js +3 -3
  338. package/es/Submenu-c6663c1d.js +1 -1
  339. package/es/TabBar-90cea652.js +6 -6
  340. package/es/TabBarItem-ba695c75.js +3 -3
  341. package/es/TabBarLayout-8caaa060.js +1 -1
  342. package/es/TabBarMixed-52ac388e.js +6 -6
  343. package/es/{TabBarMixedSeparator-da56f4c0.js → TabBarMixedSeparator-16c88691.js} +2 -2
  344. package/es/{TabBarMixedSeparator-da56f4c0.js.map → TabBarMixedSeparator-16c88691.js.map} +1 -1
  345. package/es/Table-3d484e2c.js +8 -8
  346. package/es/TagCloud-823b3d82.js +9 -9
  347. package/es/TextArea-6f18b955.js +5 -5
  348. package/es/TextAreaAutosize-4cf2754b.js +5 -5
  349. package/es/TextField-d4b4661d.js +3 -3
  350. package/es/TextFieldInput-84280715.js +1 -1
  351. package/es/Theme-redwood/theme.css +515 -515
  352. package/es/Theme-stable/theme.css +881 -881
  353. package/es/TimeComponentCanvas2D-72f4af98.js +5 -5
  354. package/es/Toolbar-85379f64.js +1 -1
  355. package/es/TrainVariants.styles.css +6 -6
  356. package/es/TrainVariants.styles2.css +6 -6
  357. package/es/{TruncatingBadge-7eb77ed3.js → TruncatingBadge-e5f38bc8.js} +4 -4
  358. package/es/{TruncatingBadge-7eb77ed3.js.map → TruncatingBadge-e5f38bc8.js.map} +1 -1
  359. package/es/{TruncatingText-93807530.js → TruncatingText-c3719839.js} +4 -4
  360. package/es/{TruncatingText-93807530.js.map → TruncatingText-c3719839.js.map} +1 -1
  361. package/es/UNSAFE_ActionCard.js +2 -2
  362. package/es/UNSAFE_Avatar/themes/redwood/AvatarTheme.js +1 -1
  363. package/es/UNSAFE_Avatar/themes/redwood/AvatarVariants.css.js +1 -1
  364. package/es/UNSAFE_Avatar/themes/stable/AvatarTheme.js +1 -1
  365. package/es/UNSAFE_Avatar/themes/stable/AvatarVariants.css.js +1 -1
  366. package/es/UNSAFE_Avatar.js +1 -1
  367. package/es/UNSAFE_Badge/themes/redwood/BadgeTheme.js +1 -1
  368. package/es/UNSAFE_Badge/themes/redwood/BadgeVariants.css.js +1 -1
  369. package/es/UNSAFE_Badge/themes/stable/BadgeTheme.js +1 -1
  370. package/es/UNSAFE_Badge/themes/stable/BadgeVariants.css.js +1 -1
  371. package/es/UNSAFE_Badge.js +1 -1
  372. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +35 -35
  373. package/es/UNSAFE_BarChart.js +35 -35
  374. package/es/UNSAFE_BaseButton.js +3 -3
  375. package/es/UNSAFE_Button.js +3 -3
  376. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
  377. package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutTheme.js +1 -1
  378. package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutVariants.css.js +1 -1
  379. package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutTheme.js +1 -1
  380. package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutVariants.css.js +1 -1
  381. package/es/UNSAFE_ButtonLayout.js +1 -1
  382. package/es/UNSAFE_ButtonSet.js +4 -4
  383. package/es/UNSAFE_ButtonSetButton.js +3 -3
  384. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  385. package/es/UNSAFE_ButtonSetItem.js +15 -15
  386. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  387. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  388. package/es/UNSAFE_CardFlexView.js +20 -20
  389. package/es/UNSAFE_CardGridView.js +20 -20
  390. package/es/UNSAFE_Center.js +5 -5
  391. package/es/UNSAFE_ChartWithLegend.js +4 -4
  392. package/es/UNSAFE_Checkbox.js +22 -22
  393. package/es/UNSAFE_CheckboxItem.js +23 -23
  394. package/es/UNSAFE_CheckboxSet.js +22 -22
  395. package/es/UNSAFE_Chip.js +2 -2
  396. package/es/UNSAFE_Collapsible.js +17 -17
  397. package/es/UNSAFE_ComponentMessage.js +18 -18
  398. package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltTheme.js +1 -1
  399. package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltVariants.css.js +1 -1
  400. package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltTheme.js +1 -1
  401. package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltVariants.css.js +1 -1
  402. package/es/UNSAFE_ConveyorBelt.js +16 -16
  403. package/es/UNSAFE_DatePicker.js +24 -24
  404. package/es/UNSAFE_Diagram.js +15 -15
  405. package/es/UNSAFE_Dialog.js +11 -11
  406. package/es/UNSAFE_DragHandle.js +16 -16
  407. package/es/UNSAFE_DrawerLayout.js +11 -11
  408. package/es/UNSAFE_DrawerPopup.js +10 -10
  409. package/es/UNSAFE_Dropdown.js +12 -12
  410. package/es/UNSAFE_Environment.js +4 -4
  411. package/es/UNSAFE_ExpandableList.js +22 -22
  412. package/es/UNSAFE_FilePicker.js +4 -4
  413. package/es/UNSAFE_Flex.js +4 -4
  414. package/es/UNSAFE_Floating.js +10 -10
  415. package/es/UNSAFE_FormLayout.js +2 -2
  416. package/es/UNSAFE_Gantt.js +22 -22
  417. package/es/UNSAFE_Grid.js +4 -4
  418. package/es/UNSAFE_HighlightText.js +4 -4
  419. package/es/UNSAFE_Icon.js +15 -15
  420. package/es/UNSAFE_IconButton.js +15 -15
  421. package/es/UNSAFE_IconMenuButton.js +19 -19
  422. package/es/UNSAFE_IconProgressButton.js +20 -20
  423. package/es/UNSAFE_IconToggleButton.js +15 -15
  424. package/es/UNSAFE_Indexer.js +6 -6
  425. package/es/UNSAFE_InputDateMask.js +23 -23
  426. package/es/UNSAFE_InputDatePicker.js +32 -32
  427. package/es/UNSAFE_InputPassword.js +22 -22
  428. package/es/UNSAFE_InputSensitiveText.js +24 -24
  429. package/es/UNSAFE_InputText.js +25 -25
  430. package/es/UNSAFE_Label.js +22 -22
  431. package/es/UNSAFE_LabelValueLayout.js +4 -4
  432. package/es/UNSAFE_LabelledLink.js +25 -25
  433. package/es/UNSAFE_Layer.js +7 -7
  434. package/es/UNSAFE_Legend.js +22 -22
  435. package/es/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +34 -34
  436. package/es/UNSAFE_LineAreaChart.js +35 -35
  437. package/es/UNSAFE_Link/themes/redwood/LinkTheme.js +1 -1
  438. package/es/UNSAFE_Link/themes/redwood/LinkVariants.css.js +1 -1
  439. package/es/UNSAFE_Link/themes/stable/LinkTheme.js +1 -1
  440. package/es/UNSAFE_Link/themes/stable/LinkVariants.css.js +1 -1
  441. package/es/UNSAFE_Link.js +3 -3
  442. package/es/UNSAFE_ListItemLayout.js +5 -5
  443. package/es/UNSAFE_ListView.js +25 -25
  444. package/es/UNSAFE_LiveRegion.js +4 -4
  445. package/es/UNSAFE_Menu.js +21 -21
  446. package/es/UNSAFE_MenuButton.js +19 -19
  447. package/es/UNSAFE_MessageBanner.js +18 -18
  448. package/es/UNSAFE_MessageToast.js +21 -21
  449. package/es/UNSAFE_MeterBar/themes/redwood/MeterBarTheme.js +1 -1
  450. package/es/UNSAFE_MeterBar/themes/redwood/MeterBarVariants.css.js +1 -1
  451. package/es/UNSAFE_MeterBar/themes/stable/MeterBarTheme.js +1 -1
  452. package/es/UNSAFE_MeterBar/themes/stable/MeterBarVariants.css.js +1 -1
  453. package/es/UNSAFE_MeterBar.js +17 -17
  454. package/es/UNSAFE_MeterCircle.js +16 -16
  455. package/es/UNSAFE_Modal.js +7 -7
  456. package/es/UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js +1 -1
  457. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemTheme.js +1 -1
  458. package/es/UNSAFE_NavigationList/themes/stable/NavigationListItemVariants.css.js +1 -1
  459. package/es/UNSAFE_NavigationList.js +21 -21
  460. package/es/UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js +1 -1
  461. package/es/UNSAFE_NavigationListCommon.js +19 -19
  462. package/es/UNSAFE_NumberInputText.js +24 -24
  463. package/es/UNSAFE_OverflowTabBar.js +26 -26
  464. package/es/UNSAFE_PictoChart.js +13 -13
  465. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +14 -14
  466. package/es/UNSAFE_PieChart.js +14 -14
  467. package/es/UNSAFE_Popup.js +15 -15
  468. package/es/UNSAFE_ProgressBar.js +5 -5
  469. package/es/UNSAFE_ProgressButton.js +20 -20
  470. package/es/UNSAFE_ProgressButtonLabelLayout.js +11 -11
  471. package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme.js +1 -1
  472. package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleVariants.css.js +1 -1
  473. package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleTheme.js +1 -1
  474. package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleVariants.css.js +1 -1
  475. package/es/UNSAFE_ProgressCircle.js +5 -5
  476. package/es/UNSAFE_RadioItem.js +22 -22
  477. package/es/UNSAFE_RadioSet.js +22 -22
  478. package/es/UNSAFE_RatingGauge/themes/redwood/RatingGaugeTheme.js +1 -1
  479. package/es/UNSAFE_RatingGauge/themes/redwood/RatingGaugeVariants.css.js +1 -1
  480. package/es/UNSAFE_RatingGauge/themes/stable/RatingGaugeTheme.js +1 -1
  481. package/es/UNSAFE_RatingGauge/themes/stable/RatingGaugeVariants.css.js +1 -1
  482. package/es/UNSAFE_RatingGauge.js +17 -17
  483. package/es/UNSAFE_ReorderableTabBar.js +21 -21
  484. package/es/UNSAFE_SectionalLegend.js +23 -23
  485. package/es/UNSAFE_SelectMultiple.js +31 -31
  486. package/es/UNSAFE_SelectSingle.js +31 -31
  487. package/es/UNSAFE_SelectionCard.js +4 -4
  488. package/es/UNSAFE_Selector.js +15 -15
  489. package/es/UNSAFE_SelectorAll.js +19 -19
  490. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +13 -13
  491. package/es/UNSAFE_Sheet.js +10 -10
  492. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  493. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  494. package/es/UNSAFE_SplitMenuButton.js +20 -20
  495. package/es/UNSAFE_TabBar.js +27 -27
  496. package/es/UNSAFE_TabBarCommon.js +26 -26
  497. package/es/UNSAFE_TabBarMixed.js +30 -30
  498. package/es/UNSAFE_TableView.js +18 -18
  499. package/es/UNSAFE_TagCloud.js +22 -22
  500. package/es/UNSAFE_TextArea.js +24 -24
  501. package/es/UNSAFE_TextAreaAutosize.js +24 -24
  502. package/es/UNSAFE_TextField.js +7 -7
  503. package/es/UNSAFE_ToggleButton.js +3 -3
  504. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
  505. package/es/UNSAFE_Toolbar.js +5 -5
  506. package/es/UNSAFE_Train/themes/redwood/TrainTheme.js +1 -1
  507. package/es/UNSAFE_Train/themes/redwood/TrainVariants.css.js +1 -1
  508. package/es/UNSAFE_Train/themes/stable/TrainTheme.js +1 -1
  509. package/es/UNSAFE_Train/themes/stable/TrainVariants.css.js +1 -1
  510. package/es/UNSAFE_Train.js +17 -17
  511. package/es/UNSAFE_TruncatingBadge.js +18 -18
  512. package/es/UNSAFE_TruncatingText.js +17 -17
  513. package/es/UNSAFE_UserAssistance.js +23 -23
  514. package/es/UNSAFE_View.js +7 -7
  515. package/es/UNSAFE_VirtualizedListView.js +19 -19
  516. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  517. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  518. package/es/UNSAFE_VisStatusMessage.js +6 -6
  519. package/es/UNSAFE_WindowOverlay.js +4 -4
  520. package/es/{View-63980a9b.js → View-a8a64eb1.js} +5 -5
  521. package/es/{View-63980a9b.js.map → View-a8a64eb1.js.map} +1 -1
  522. package/es/{VisNoData-da540cbd.js → VisNoData-673b58e9.js} +3 -3
  523. package/es/{VisNoData-da540cbd.js.map → VisNoData-673b58e9.js.map} +1 -1
  524. package/es/{VisProgressiveLoader-2b2103c8.js → VisProgressiveLoader-66dde1ff.js} +3 -3
  525. package/es/{VisProgressiveLoader-2b2103c8.js.map → VisProgressiveLoader-66dde1ff.js.map} +1 -1
  526. package/es/{VisTabularDatatip-2ae7ee48.js → VisTabularDatatip-6aa607bb.js} +2 -2
  527. package/es/{VisTabularDatatip-2ae7ee48.js.map → VisTabularDatatip-6aa607bb.js.map} +1 -1
  528. package/es/{WindowOverlay-9b43e658.js → WindowOverlay-de5d0819.js} +2 -2
  529. package/es/{WindowOverlay-9b43e658.js.map → WindowOverlay-de5d0819.js.map} +1 -1
  530. package/es/{YearsGridView-37dfce0c.js → YearsGridView-5b5c1746.js} +4 -4
  531. package/es/{YearsGridView-37dfce0c.js.map → YearsGridView-5b5c1746.js.map} +1 -1
  532. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  533. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  534. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  535. package/es/hooks/PRIVATE_useChartContextMenu.js +18 -18
  536. package/es/hooks/PRIVATE_useChartDatatip.js +13 -13
  537. package/es/hooks/PRIVATE_useChartEvents.js +17 -17
  538. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  539. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  540. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  541. package/es/hooks/PRIVATE_useDatatip.js +11 -11
  542. package/es/hooks/PRIVATE_useFloating.js +4 -4
  543. package/es/hooks/PRIVATE_useReorderable.js +4 -4
  544. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  545. package/es/hooks/PRIVATE_useSelection.js +4 -4
  546. package/es/hooks/PRIVATE_useTabBar.js +5 -5
  547. package/es/hooks/PRIVATE_useVisContextMenu.js +18 -18
  548. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  549. package/es/hooks/PRIVATE_useVisMeterEvents.js +13 -13
  550. package/es/hooks/PRIVATE_useVisSelection.js +12 -12
  551. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  552. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  553. package/es/hooks/UNSAFE_useDensity.js +3 -3
  554. package/es/hooks/UNSAFE_useOutsideClick.js +7 -7
  555. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  556. package/es/hooks/UNSAFE_useScale.js +3 -3
  557. package/es/hooks/UNSAFE_useTestId.js +3 -3
  558. package/es/hooks/UNSAFE_useTheme.js +3 -3
  559. package/es/hooks/UNSAFE_useThemeInterpolations.js +5 -5
  560. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  561. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  562. package/es/hooks/UNSAFE_useUser.js +3 -3
  563. package/es/{index-e65c9009.js → index-fee93bf9.js} +2 -2
  564. package/es/index-fee93bf9.js.map +1 -0
  565. package/es/listViewSelectionTests-0dfdcc5d.js +4 -4
  566. package/es/{render-ff141a3d.js → render-d92a7051.js} +3 -3
  567. package/es/{render-ff141a3d.js.map → render-d92a7051.js.map} +1 -1
  568. package/es/{tabbableUtils-375a33ee.js → tabbableUtils-1b4c2eea.js} +3 -3
  569. package/es/{tabbableUtils-375a33ee.js.map → tabbableUtils-1b4c2eea.js.map} +1 -1
  570. package/es/{testData-748c19ef.js → testData-ca9503e6.js} +3 -3
  571. package/es/{testData-748c19ef.js.map → testData-ca9503e6.js.map} +1 -1
  572. package/es/{tooltipUtils-1131b3ca.js → tooltipUtils-06c93436.js} +5 -5
  573. package/es/{tooltipUtils-1131b3ca.js.map → tooltipUtils-06c93436.js.map} +1 -1
  574. package/es/useCellNavigation-00d575ca.js +1 -1
  575. package/es/useChartContextMenu-8c49f584.js +3 -3
  576. package/es/{useChartDatatip-25f6bc69.js → useChartDatatip-82dba484.js} +4 -4
  577. package/es/{useChartDatatip-25f6bc69.js.map → useChartDatatip-82dba484.js.map} +1 -1
  578. package/es/useChartMarquee-08025a83.js +1 -1
  579. package/es/{useColorScheme-d8a80e2b.js → useColorScheme-f69d53b5.js} +2 -2
  580. package/es/{useColorScheme-d8a80e2b.js.map → useColorScheme-f69d53b5.js.map} +1 -1
  581. package/es/useContextMenu-12845847.js +3 -3
  582. package/es/{useCssVars-8e6932f8.js → useCssVars-48595cd2.js} +5 -5
  583. package/es/{useCssVars-8e6932f8.js.map → useCssVars-48595cd2.js.map} +1 -1
  584. package/es/{useCurrentBgColor-5418492b.js → useCurrentBgColor-894d059b.js} +2 -2
  585. package/es/{useCurrentBgColor-5418492b.js.map → useCurrentBgColor-894d059b.js.map} +1 -1
  586. package/es/{useCurrentKey-76e7d7b1.js → useCurrentKey-55123e83.js} +2 -2
  587. package/es/{useCurrentKey-76e7d7b1.js.map → useCurrentKey-55123e83.js.map} +1 -1
  588. package/es/{useDatatip-73566627.js → useDatatip-01d7ddeb.js} +4 -4
  589. package/es/{useDatatip-73566627.js.map → useDatatip-01d7ddeb.js.map} +1 -1
  590. package/es/{useDensity-64ecb649.js → useDensity-04a01caf.js} +2 -2
  591. package/es/{useDensity-64ecb649.js.map → useDensity-04a01caf.js.map} +1 -1
  592. package/es/{useFloating-d60cc8b4.js → useFloating-c9278755.js} +2 -2
  593. package/es/{useFloating-d60cc8b4.js.map → useFloating-c9278755.js.map} +1 -1
  594. package/es/{useKeyboardEvents-5c311766.js → useKeyboardEvents-b02e5fda.js} +2 -2
  595. package/es/{useKeyboardEvents-5c311766.js.map → useKeyboardEvents-b02e5fda.js.map} +1 -1
  596. package/es/useLegendContextMenu-926aca66.js +5 -5
  597. package/es/{useMeterDatatip-2cedbd5c.js → useMeterDatatip-43e31c05.js} +3 -3
  598. package/es/{useMeterDatatip-2cedbd5c.js.map → useMeterDatatip-43e31c05.js.map} +1 -1
  599. package/es/{useOutsideClick-725542a2.js → useOutsideClick-388c62bd.js} +2 -2
  600. package/es/{useOutsideClick-725542a2.js.map → useOutsideClick-388c62bd.js.map} +1 -1
  601. package/es/{usePopupAnimation-340f04b6.js → usePopupAnimation-b4577940.js} +2 -2
  602. package/es/{usePopupAnimation-340f04b6.js.map → usePopupAnimation-b4577940.js.map} +1 -1
  603. package/es/{usePrefixSuffix-435a9c59.js → usePrefixSuffix-995d4cda.js} +2 -2
  604. package/es/{usePrefixSuffix-435a9c59.js.map → usePrefixSuffix-995d4cda.js.map} +1 -1
  605. package/es/useReorderableItem-c715c504.js +2 -2
  606. package/es/{useRovingTabIndexContainer-b9833086.js → useRovingTabIndexContainer-097f96a6.js} +2 -2
  607. package/es/{useRovingTabIndexContainer-b9833086.js.map → useRovingTabIndexContainer-097f96a6.js.map} +1 -1
  608. package/es/{useScale-c86ecc6e.js → useScale-3b323ab2.js} +2 -2
  609. package/es/{useScale-c86ecc6e.js.map → useScale-3b323ab2.js.map} +1 -1
  610. package/es/useSelectCommon-7ebc86eb.js +11 -11
  611. package/es/{useSelectDrill-fbe57d95.js → useSelectDrill-8b53d932.js} +3 -3
  612. package/es/{useSelectDrill-fbe57d95.js.map → useSelectDrill-8b53d932.js.map} +1 -1
  613. package/es/{useSelection-1e1e89df.js → useSelection-7c94a24f.js} +2 -2
  614. package/es/{useSelection-1e1e89df.js.map → useSelection-7c94a24f.js.map} +1 -1
  615. package/es/{useSelection-dfbd140d.js → useSelection-b7c3e75e.js} +5 -5
  616. package/es/{useSelection-dfbd140d.js.map → useSelection-b7c3e75e.js.map} +1 -1
  617. package/es/{useTabBar-b826570d.js → useTabBar-6c6847ef.js} +2 -2
  618. package/es/{useTabBar-b826570d.js.map → useTabBar-6c6847ef.js.map} +1 -1
  619. package/es/{useTestId-3bc3958c.js → useTestId-af32a9eb.js} +2 -2
  620. package/es/{useTestId-3bc3958c.js.map → useTestId-af32a9eb.js.map} +1 -1
  621. package/es/{useTheme-4b0f211c.js → useTheme-73aca0e4.js} +2 -2
  622. package/es/{useTheme-4b0f211c.js.map → useTheme-73aca0e4.js.map} +1 -1
  623. package/es/{useThemeInterpolations-41ac870d.js → useThemeInterpolations-4f6cc83c.js} +4 -4
  624. package/es/{useThemeInterpolations-41ac870d.js.map → useThemeInterpolations-4f6cc83c.js.map} +1 -1
  625. package/es/{useTooltip-227887ea.js → useTooltip-e258ea41.js} +2 -2
  626. package/es/{useTooltip-227887ea.js.map → useTooltip-e258ea41.js.map} +1 -1
  627. package/es/{useTooltipControlled-7ccb5919.js → useTooltipControlled-50d5dac9.js} +5 -5
  628. package/es/{useTooltipControlled-7ccb5919.js.map → useTooltipControlled-50d5dac9.js.map} +1 -1
  629. package/es/{useTranslationBundle-98df6291.js → useTranslationBundle-6da03e52.js} +2 -2
  630. package/es/{useTranslationBundle-98df6291.js.map → useTranslationBundle-6da03e52.js.map} +1 -1
  631. package/es/{useUser-a15426fc.js → useUser-bca8cf2d.js} +2 -2
  632. package/es/{useUser-a15426fc.js.map → useUser-bca8cf2d.js.map} +1 -1
  633. package/es/{useVisEvents-ff4204b5.js → useVisEvents-cd3616aa.js} +2 -2
  634. package/es/{useVisEvents-ff4204b5.js.map → useVisEvents-cd3616aa.js.map} +1 -1
  635. package/es/utils/PRIVATE_tooltipUtils.js +13 -13
  636. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  637. package/es/{withDirectionIcon-90d7c798.js → withDirectionIcon-389870a2.js} +2 -2
  638. package/es/{withDirectionIcon-90d7c798.js.map → withDirectionIcon-389870a2.js.map} +1 -1
  639. package/es/withThemeProps-6545df54.js +2 -2
  640. package/package.json +2 -2
  641. package/amd/CardFlexView-9688d264.js +0 -2
  642. package/amd/InputDatePicker-6167ff45.js +0 -2
  643. package/amd/List-3ebac3fc.js +0 -2
  644. package/amd/LoadMoreCollection-a6adbc3f.js +0 -2
  645. package/amd/TextArea-916c5bb1.js +0 -2
  646. package/amd/TextArea-916c5bb1.js.map +0 -1
  647. package/amd/TextAreaAutosize-1f47b470.js +0 -2
  648. package/amd/VirtualizedListView-cf795207.js +0 -2
  649. package/es/index-e65c9009.js.map +0 -1
@@ -1,32 +1,32 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx, jsxs } from 'preact/jsx-runtime';
3
3
  import { useRef, useState, useImperativeHandle, useCallback, useEffect } from 'preact/hooks';
4
- import './LayerHost-15b42a3e.js';
5
- import { E as EnvironmentProvider } from './EnvironmentProvider-0fc2fd0c.js';
4
+ import './LayerHost-7a2149f5.js';
5
+ import { E as EnvironmentProvider } from './EnvironmentProvider-a3819bde.js';
6
6
  import { u as useMessageFocusManager } from './useMessagesFocusManager-da254907.js';
7
7
  import { u as useBreakpointValues } from './useBreakpointValues-de03c6fa.js';
8
8
  import './MessagesContext-76544845.js';
9
9
  import { u as useMessagesContext } from './useMessagesContext-9e1dbe91.js';
10
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
10
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
11
11
  import { M as Message } from './Message-322f8d63.js';
12
12
  import 'preact';
13
13
  import { x as xUnits } from './utils-d65cb4fb.js';
14
14
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
15
- import { u as useTestId } from './useTestId-3bc3958c.js';
15
+ import { u as useTestId } from './useTestId-af32a9eb.js';
16
16
  import './TooltipContentStyles.styles.css';
17
17
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
18
18
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
19
- import './tooltipUtils-1131b3ca.js';
19
+ import './tooltipUtils-06c93436.js';
20
20
  import './IconStyle.styles.css';
21
21
  import './IconButton-451a225c.js';
22
22
  import './MessageStyles.styles.css';
23
23
  import './MessageFormattingUtils-34c9b1aa.js';
24
24
  import { b as MessagesManager, g as getRenderer } from './MessagesManager-a1c3e92e.js';
25
- import { F as Flex } from './Flex-8696b27b.js';
25
+ import { F as Flex } from './Flex-2d51e914.js';
26
26
  import { F as FocusTrap } from './FocusTrap-552ebe63.js';
27
- import { L as LiveRegion } from './LiveRegion-cb4f8a54.js';
27
+ import { L as LiveRegion } from './LiveRegion-5302331c.js';
28
28
  import { MessageToastRedwoodTheme } from './UNSAFE_MessageToast/themes/redwood/MessageToastTheme.js';
29
- import { M as MessageLayer } from './MessageLayer-34a390eb.js';
29
+ import { M as MessageLayer } from './MessageLayer-f09b0a1b.js';
30
30
 
31
31
  /**
32
32
  * Animation states for toast messages
@@ -5,10 +5,10 @@ import { S as SvgSuccessS } from './SuccessS-2ec87939.js';
5
5
  import { S as SvgErrorS } from './ErrorS-988a89e6.js';
6
6
  import { S as SvgInformationS } from './InformationS-8b708877.js';
7
7
  import { S as SvgWarningS } from './WarningS-beea3870.js';
8
- import { F as Flex } from './Flex-8696b27b.js';
8
+ import { F as Flex } from './Flex-2d51e914.js';
9
9
  import { startIconContainerStyles, messageStartIconStyles, severityIconStyles, messageSummaryStyles } from './PRIVATE_Message/themes/MessageStyles.css.js';
10
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
11
- import { u as useTestId } from './useTestId-3bc3958c.js';
10
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
11
+ import { u as useTestId } from './useTestId-af32a9eb.js';
12
12
  import { w as warn, e as error, i as info, l as log } from './logger-c92f309c.js';
13
13
  import { p as playDefaultNotificationSound, a as playAudioFromURL } from './soundUtils-88264cb5.js';
14
14
  import { i as isValidValueForProp } from './MessageFormattingUtils-34c9b1aa.js';
@@ -4,9 +4,9 @@ import { T as TrackResizeContainer } from './TrackResizeContainer-6a6eb330.js';
4
4
  import { c as classNames } from './classNames-4e12b00d.js';
5
5
  import { m as mergeProps } from './mergeProps-88ea8306.js';
6
6
  import { useRef, useEffect, useMemo } from 'preact/hooks';
7
- import { u as useUser } from './useUser-a15426fc.js';
8
- import { u as usePointerEvents, a as useMeterDatatip } from './useMeterDatatip-2cedbd5c.js';
9
- import { u as useKeyboardEvents } from './useKeyboardEvents-5c311766.js';
7
+ import { u as useUser } from './useUser-bca8cf2d.js';
8
+ import { u as usePointerEvents, a as useMeterDatatip } from './useMeterDatatip-43e31c05.js';
9
+ import { u as useKeyboardEvents } from './useKeyboardEvents-b02e5fda.js';
10
10
  import { v as validateRange, g as getMeterAriaProps, a as getTrackAndIndicatorColor, h as hasLabelledReferenceLine, b as getDefaultReferenceLineLabelFontSize, c as getMaxRefLabelDims } from './meterUtils-a917450b.js';
11
11
  import { x as xUnits } from './utils-d65cb4fb.js';
12
12
  import { meterBarVars } from './UNSAFE_MeterBar/themes/MeterBarContract.css.js';
@@ -17,9 +17,9 @@ import './TabbableModeContext-7d8ad946.js';
17
17
  import { u as useTabbableMode } from './useTabbableMode-a3a351d0.js';
18
18
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
19
19
  import { MeterBarRedwoodTheme } from './UNSAFE_MeterBar/themes/redwood/MeterBarTheme.js';
20
- import { u as useTestId } from './useTestId-3bc3958c.js';
20
+ import { u as useTestId } from './useTestId-af32a9eb.js';
21
21
  import { u as useTextDimensions } from './useTextDimensions-e48f2781.js';
22
- import { u as useCssVars } from './useCssVars-8e6932f8.js';
22
+ import { u as useCssVars } from './useCssVars-48595cd2.js';
23
23
  import { typographyVars } from './Common/themes/themeContract.css.js';
24
24
  import { B as BarTrack, a as BarValue } from './LinearMeter-268f7b2f.js';
25
25
 
@@ -1,12 +1,12 @@
1
- .MeterBarVariants_multiVariantStyles_size_sm__1ulsein0 {
1
+ .MeterBarVariants_multiVariantStyles_size_sm__sickf80 {
2
2
  --size__saju1q0: var(--sizes-sm__saju1q3);
3
3
  }
4
- .MeterBarVariants_multiVariantStyles_size_md__1ulsein1 {
4
+ .MeterBarVariants_multiVariantStyles_size_md__sickf81 {
5
5
  --size__saju1q0: var(--sizes-md__saju1q2);
6
6
  }
7
- .MeterBarVariants_multiVariantStyles_size_lg__1ulsein2 {
7
+ .MeterBarVariants_multiVariantStyles_size_lg__sickf82 {
8
8
  --size__saju1q0: var(--sizes-lg__saju1q1);
9
9
  }
10
- .MeterBarVariants_multiVariantStyles_size_fit__1ulsein3 {
10
+ .MeterBarVariants_multiVariantStyles_size_fit__sickf83 {
11
11
  --size__saju1q0: var(--sizes-fit__saju1q4);
12
12
  }
@@ -1,12 +1,12 @@
1
- .MeterBarVariants_multiVariantStyles_size_sm__sickf80 {
1
+ .MeterBarVariants_multiVariantStyles_size_sm__1ulsein0 {
2
2
  --size__saju1q0: var(--sizes-sm__saju1q3);
3
3
  }
4
- .MeterBarVariants_multiVariantStyles_size_md__sickf81 {
4
+ .MeterBarVariants_multiVariantStyles_size_md__1ulsein1 {
5
5
  --size__saju1q0: var(--sizes-md__saju1q2);
6
6
  }
7
- .MeterBarVariants_multiVariantStyles_size_lg__sickf82 {
7
+ .MeterBarVariants_multiVariantStyles_size_lg__1ulsein2 {
8
8
  --size__saju1q0: var(--sizes-lg__saju1q1);
9
9
  }
10
- .MeterBarVariants_multiVariantStyles_size_fit__sickf83 {
10
+ .MeterBarVariants_multiVariantStyles_size_fit__1ulsein3 {
11
11
  --size__saju1q0: var(--sizes-fit__saju1q4);
12
12
  }
@@ -1,6 +1,6 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsxs, Fragment, jsx } from 'preact/jsx-runtime';
3
- import { u as useUser } from './useUser-a15426fc.js';
3
+ import { u as useUser } from './useUser-bca8cf2d.js';
4
4
  import { useMemo, useRef, useState, useEffect } from 'preact/hooks';
5
5
  import { m as mergeProps } from './mergeProps-88ea8306.js';
6
6
  import { c as classNames } from './classNames-4e12b00d.js';
@@ -12,14 +12,14 @@ import { meterCircleVars } from './UNSAFE_MeterCircle/themes/MeterCircleContract
12
12
  import { colorSchemeVars, typographyVars } from './Common/themes/themeContract.css.js';
13
13
  import { x as xUnits } from './utils-d65cb4fb.js';
14
14
  import { T as TrackResizeContainer } from './TrackResizeContainer-6a6eb330.js';
15
- import { u as usePointerEvents, a as useMeterDatatip } from './useMeterDatatip-2cedbd5c.js';
16
- import { u as useKeyboardEvents } from './useKeyboardEvents-5c311766.js';
15
+ import { u as usePointerEvents, a as useMeterDatatip } from './useMeterDatatip-43e31c05.js';
16
+ import { u as useKeyboardEvents } from './useKeyboardEvents-b02e5fda.js';
17
17
  import './TabbableModeContext-7d8ad946.js';
18
18
  import { u as useTabbableMode } from './useTabbableMode-a3a351d0.js';
19
19
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
20
20
  import { MeterCircleRedwoodTheme } from './UNSAFE_MeterCircle/themes/redwood/MeterCircleTheme.js';
21
- import { u as useTestId } from './useTestId-3bc3958c.js';
22
- import { u as useCssVars } from './useCssVars-8e6932f8.js';
21
+ import { u as useTestId } from './useTestId-af32a9eb.js';
22
+ import { u as useCssVars } from './useCssVars-48595cd2.js';
23
23
  import { u as useTextDimensions } from './useTextDimensions-e48f2781.js';
24
24
  import { C as CircleWrapper, a as CircleInner } from './CircularMeter-f2c0ae34.js';
25
25
 
@@ -1,8 +1,8 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx, jsxs } from 'preact/jsx-runtime';
3
3
  import { useRef, useCallback, useEffect, forwardRef } from 'preact/compat';
4
- import { L as Layer } from './Layer-71fc666f.js';
5
- import './LayerHost-15b42a3e.js';
4
+ import { L as Layer } from './Layer-915d986a.js';
5
+ import './LayerHost-7a2149f5.js';
6
6
  import { multiVariantStyles, baseStyle } from './UNSAFE_Modal/themes/ModalStyles.css.js';
7
7
 
8
8
  /**
@@ -252,4 +252,4 @@ const Modal = ({ children, isOpen, onBackdropClick, backdropVariant }) => {
252
252
  };
253
253
 
254
254
  export { Modal as M, useModal as u };
255
- //# sourceMappingURL=Modal-3fd86d5a.js.map
255
+ //# sourceMappingURL=Modal-862b8167.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal-3fd86d5a.js","sources":["../../src/UNSAFE_Modal/hooks/useModal.ts","../../src/UNSAFE_Modal/ModalBackdrop.tsx","../../src/UNSAFE_Modal/ModalManager.ts","../../src/UNSAFE_Modal/Modal.tsx"],"sourcesContent":["import { useRef, useCallback, useEffect } from 'preact/compat';\n\nexport type UseModalProps = Readonly<{\n /**\n * Determines whether the Modal is open.\n */\n isOpen: boolean;\n /**\n * On backdrop click callback.\n */\n onBackdropClick?: (event: MouseEvent) => void;\n}>;\n\n/**\n *\n * @param props\n */\nexport const useModal = (props: UseModalProps) => {\n const { isOpen, onBackdropClick: onBackdropClickProp } = props;\n\n const backdropRef = useRef<HTMLDivElement>(null);\n\n const mouseDownTarget = useRef<EventTarget | null>(null);\n\n const onMouseDown = useCallback((event: MouseEvent) => {\n if (backdropRef.current === event.target) {\n mouseDownTarget.current = event.target;\n }\n }, []);\n\n const onBackdropClick = useCallback(\n (event: MouseEvent) => {\n if (backdropRef.current === event.target) {\n event.stopPropagation();\n // event should originate on the same target\n if (mouseDownTarget.current === event.target) {\n onBackdropClickProp?.(event);\n }\n }\n },\n [onBackdropClickProp]\n );\n\n useEffect(() => {\n const modal = backdropRef.current;\n\n if (modal) {\n modal.addEventListener('mousedown', onMouseDown);\n modal.addEventListener('click', onBackdropClick);\n\n return () => {\n modal.removeEventListener('mousedown', onMouseDown);\n modal.removeEventListener('click', onBackdropClick);\n };\n }\n\n return () => {};\n }, [isOpen, onMouseDown, onBackdropClick]);\n\n return {\n backdropRef\n };\n};\n\nexport default useModal;\n","import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { multiVariantStyles } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\n\ntype Props = IntrinsicProps & {\n /**\n * Specifies the backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n variant?: 'scrim' | 'transparent';\n};\n\nconst ModalBackdrop = forwardRef<HTMLDivElement, Props>(\n ({ variant = 'scrim' }, ref: ForwardedRef<HTMLDivElement | null>) => {\n const variantClasses = multiVariantStyles({\n backdrop: variant === 'transparent' ? 'transparent' : 'scrim'\n });\n\n return <div ref={ref} class={variantClasses} />;\n }\n);\n\nexport default ModalBackdrop;\n","interface Modal {\n modalRef?: HTMLDivElement | null;\n}\n\n/**\n * CSS property backup type.\n */\ntype StyleBackup = Array<{\n property: string;\n value: string;\n}>;\n\n/**\n * ModalDescriptor. Associates an open Modal with overlayed aria-hidden children.\n */\ntype ModalDescriptor = {\n modal: Modal;\n ariaHiddenChildren: Element[];\n};\n\n/**\n * Returns an array of element's siblings.\n *\n * @param elem\n * @returns\n */\nfunction getSiblings(elem: Element): Element[] {\n const siblings: Element[] = [];\n let sibling = elem.previousSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.previousSibling;\n }\n sibling = elem.nextSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.nextSibling;\n }\n return siblings;\n}\n\n/**\n * Sets aria-hidden=true on Modal ancestors and siblings.\n *\n * @param modal\n * @returns An array of modified elements.\n */\nfunction setAriaHiddenOnBackgroundElements(modal: Modal) {\n if (!modal.modalRef) {\n return [];\n }\n const ariaHiddenElements: Element[] = [];\n let node: Element | null = modal.modalRef.parentElement as Element;\n\n do {\n if (!node) {\n break;\n }\n const siblings = getSiblings(node);\n siblings.forEach((elem: Element) => {\n if (elem.tagName.toLowerCase() !== 'script' && elem.getAttribute('aria-hidden') !== 'true') {\n ariaHiddenElements.push(elem);\n elem.setAttribute('aria-hidden', 'true');\n }\n });\n node = node.parentElement;\n } while (node && node.tagName.toLowerCase() !== 'body');\n\n return ariaHiddenElements;\n}\n\n/**\n * Resets the aria-hidden state on previously aria-hidden elements.\n *\n * @param elements\n */\nfunction resetAriaHiddenOnBackgroundElements(elements: Element[]) {\n elements.forEach((elem) => {\n elem.removeAttribute('aria-hidden');\n });\n}\n\nexport default class ModalManager {\n /**\n * Array of ModalDescriptors managed by ModalManager\n */\n private modals: ModalDescriptor[];\n /**\n * Backup of the main container's (body) CSS props potentially altered by Modal.\n */\n private styleBackup: StyleBackup;\n\n constructor() {\n this.modals = [];\n this.styleBackup = [];\n }\n\n /**\n * Registers a modal with ModalManager\n *\n * @param modal\n * @returns\n */\n push(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex !== -1) {\n // Do not try to register the same modal multiple times\n return;\n }\n\n this.modals.push({\n modal: modal,\n ariaHiddenChildren: setAriaHiddenOnBackgroundElements(modal)\n });\n\n // if this is the first modal in the container, block container scrolling\n if (this.modals.length === 1) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n const scrollBarWidth = window.innerWidth - document.documentElement.clientWidth;\n if (scrollBarWidth > 1) {\n // in RTL, scrollbar is on the left\n const scrollBarLeft =\n Math.round(document.documentElement.getBoundingClientRect().left) +\n document.documentElement.scrollLeft;\n\n if (scrollBarLeft) {\n this.styleBackup.push({\n property: 'padding-left',\n value: scrollContainer.style.paddingLeft\n });\n scrollContainer.style.paddingLeft = `${scrollBarWidth}px`;\n } else {\n this.styleBackup.push({\n property: 'padding-right',\n value: scrollContainer.style.paddingRight\n });\n scrollContainer.style.paddingRight = `${scrollBarWidth}px`;\n }\n }\n\n this.styleBackup.push({ property: 'overflow', value: scrollContainer.style.overflow });\n this.styleBackup.push({ property: 'overflow-x', value: scrollContainer.style.overflowX });\n this.styleBackup.push({ property: 'overflow-y', value: scrollContainer.style.overflowY });\n\n scrollContainer.style.overflow = 'hidden';\n }\n }\n\n /**\n * Unegisters a modal from ModalManager\n *\n * @param modal\n * @returns\n */\n pop(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex === -1) {\n // modal to be removed not found!'\n return;\n }\n\n if (modalIndex !== this.modals.length - 1) {\n // trying to remove modal out of order!\n return;\n }\n\n const modalDescriptor = this.modals.pop();\n\n if (modalDescriptor) {\n resetAriaHiddenOnBackgroundElements(modalDescriptor?.ariaHiddenChildren);\n }\n\n // if this was the last modal in the container, restore its overflow props\n if (this.modals.length === 0) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n this.styleBackup.forEach(({ property, value }) => {\n scrollContainer.style.setProperty(property, value);\n });\n }\n }\n\n isTopModal(modal: Modal): boolean {\n return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n }\n\n private _findModalIndex(modal: Modal): number {\n let index = -1;\n this.modals.forEach((elem, idx) => {\n if (elem.modal === modal) {\n index = idx;\n return;\n }\n });\n return index;\n }\n\n private _getOwnerDocument(node: Node | null | undefined): Document {\n return (node && node.ownerDocument) || document;\n }\n}\n","import { useEffect, useRef } from 'preact/compat';\nimport { useModal } from './hooks/useModal';\nimport { Layer } from '../UNSAFE_Layer';\nimport ModalBackdrop from './ModalBackdrop';\nimport ModalManager from './ModalManager';\nimport { baseStyle } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\n// Global ModalManager singleton instance\nconst globalModalManager = new ModalManager();\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\ntype UseModalProps = Parameters<typeof useModal>[0];\ntype Props = UseModalProps &\n IntrinsicProps & {\n /**\n * Determines if the modal is active.\n */\n isOpen: boolean;\n /**\n * Specifies if modal backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n backdropVariant?: 'scrim' | 'transparent';\n /**\n * A callback to be invoked when a click on the modal backdrop occurs.\n */\n onBackdropClick?: (event: MouseEvent) => void;\n };\n\n/**\n * Modal is a low-level component that provides the 'modality' feature with built-in overlay (scrim).\n * It is typically used for building higher-level components (such as 'Dialog' or 'Popup') that need\n * to support modal behavior preventing interaction with the rest of the page while the modal is open.\n */\nconst Modal = ({ children, isOpen, onBackdropClick, backdropVariant }: Props) => {\n // get the global ModalContext instance\n const modalManager = globalModalManager;\n\n const { backdropRef } = useModal({ isOpen, onBackdropClick });\n // main modal element ref\n const modalRef = useRef<HTMLDivElement>(null);\n\n // modal ref cache, required to lookup the item in modal manger when the actual ref is unmounted\n const modal = useRef<{\n modalRef?: typeof modalRef.current;\n }>({});\n\n // populates and returns the modal ref cache\n const getModal = () => {\n modal.current.modalRef = modalRef.current;\n return modal.current;\n };\n\n useEffect(() => {\n if (isOpen && modalRef.current) {\n modalManager?.push(getModal());\n } else {\n if (modal.current.modalRef) {\n modalManager?.pop(getModal());\n }\n }\n }, [isOpen, modalManager]);\n\n useEffect(() => {\n const modalRef = modal.current.modalRef;\n return () => {\n if (modalRef) {\n modalManager?.pop(getModal());\n }\n };\n }, [modalManager]);\n\n return isOpen ? (\n <Layer>\n <div ref={modalRef} class={baseStyle}>\n <ModalBackdrop ref={backdropRef} variant={backdropVariant} />\n {children}\n </div>\n </Layer>\n ) : null;\n};\n\nexport default Modal;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AAaA;;;AAGG;AACU,MAAA,QAAQ,GAAG,CAAC,KAAoB,KAAI;IAC/C,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;AAE/D,IAAA,MAAM,WAAW,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAEjD,IAAA,MAAM,eAAe,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;AAEzD,IAAA,MAAM,WAAW,GAAG,WAAW,CAAC,CAAC,KAAiB,KAAI;QACpD,IAAI,WAAW,CAAC,OAAO,KAAK,KAAK,CAAC,MAAM,EAAE;AACxC,YAAA,eAAe,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC;SACxC;KACF,EAAE,EAAE,CAAC,CAAC;AAEP,IAAA,MAAM,eAAe,GAAG,WAAW,CACjC,CAAC,KAAiB,KAAI;QACpB,IAAI,WAAW,CAAC,OAAO,KAAK,KAAK,CAAC,MAAM,EAAE;YACxC,KAAK,CAAC,eAAe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AAG,CAAC,QAAQ,EAAE,CAAC,CAAC;aAC/B;AACH,SAAC,CAAC;AACJ,KAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;AAEnB,IAAA,OAAO,MAAM,IACXA,IAAC,KAAK,EAAA,EAAA,QAAA,EACJC,IAAK,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAClC,QAAA,EAAA,CAAAD,GAAA,CAAC,aAAa,EAAA,EAAC,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAA,CAAI,EAC5D,QAAQ,IACL,EACA,CAAA,IACN,IAAI,CAAC;AACX;;;;"}
1
+ {"version":3,"file":"Modal-862b8167.js","sources":["../../src/UNSAFE_Modal/hooks/useModal.ts","../../src/UNSAFE_Modal/ModalBackdrop.tsx","../../src/UNSAFE_Modal/ModalManager.ts","../../src/UNSAFE_Modal/Modal.tsx"],"sourcesContent":["import { useRef, useCallback, useEffect } from 'preact/compat';\n\nexport type UseModalProps = Readonly<{\n /**\n * Determines whether the Modal is open.\n */\n isOpen: boolean;\n /**\n * On backdrop click callback.\n */\n onBackdropClick?: (event: MouseEvent) => void;\n}>;\n\n/**\n *\n * @param props\n */\nexport const useModal = (props: UseModalProps) => {\n const { isOpen, onBackdropClick: onBackdropClickProp } = props;\n\n const backdropRef = useRef<HTMLDivElement>(null);\n\n const mouseDownTarget = useRef<EventTarget | null>(null);\n\n const onMouseDown = useCallback((event: MouseEvent) => {\n if (backdropRef.current === event.target) {\n mouseDownTarget.current = event.target;\n }\n }, []);\n\n const onBackdropClick = useCallback(\n (event: MouseEvent) => {\n if (backdropRef.current === event.target) {\n event.stopPropagation();\n // event should originate on the same target\n if (mouseDownTarget.current === event.target) {\n onBackdropClickProp?.(event);\n }\n }\n },\n [onBackdropClickProp]\n );\n\n useEffect(() => {\n const modal = backdropRef.current;\n\n if (modal) {\n modal.addEventListener('mousedown', onMouseDown);\n modal.addEventListener('click', onBackdropClick);\n\n return () => {\n modal.removeEventListener('mousedown', onMouseDown);\n modal.removeEventListener('click', onBackdropClick);\n };\n }\n\n return () => {};\n }, [isOpen, onMouseDown, onBackdropClick]);\n\n return {\n backdropRef\n };\n};\n\nexport default useModal;\n","import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { multiVariantStyles } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\n\ntype Props = IntrinsicProps & {\n /**\n * Specifies the backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n variant?: 'scrim' | 'transparent';\n};\n\nconst ModalBackdrop = forwardRef<HTMLDivElement, Props>(\n ({ variant = 'scrim' }, ref: ForwardedRef<HTMLDivElement | null>) => {\n const variantClasses = multiVariantStyles({\n backdrop: variant === 'transparent' ? 'transparent' : 'scrim'\n });\n\n return <div ref={ref} class={variantClasses} />;\n }\n);\n\nexport default ModalBackdrop;\n","interface Modal {\n modalRef?: HTMLDivElement | null;\n}\n\n/**\n * CSS property backup type.\n */\ntype StyleBackup = Array<{\n property: string;\n value: string;\n}>;\n\n/**\n * ModalDescriptor. Associates an open Modal with overlayed aria-hidden children.\n */\ntype ModalDescriptor = {\n modal: Modal;\n ariaHiddenChildren: Element[];\n};\n\n/**\n * Returns an array of element's siblings.\n *\n * @param elem\n * @returns\n */\nfunction getSiblings(elem: Element): Element[] {\n const siblings: Element[] = [];\n let sibling = elem.previousSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.previousSibling;\n }\n sibling = elem.nextSibling;\n while (sibling != null) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling as Element);\n }\n sibling = sibling.nextSibling;\n }\n return siblings;\n}\n\n/**\n * Sets aria-hidden=true on Modal ancestors and siblings.\n *\n * @param modal\n * @returns An array of modified elements.\n */\nfunction setAriaHiddenOnBackgroundElements(modal: Modal) {\n if (!modal.modalRef) {\n return [];\n }\n const ariaHiddenElements: Element[] = [];\n let node: Element | null = modal.modalRef.parentElement as Element;\n\n do {\n if (!node) {\n break;\n }\n const siblings = getSiblings(node);\n siblings.forEach((elem: Element) => {\n if (elem.tagName.toLowerCase() !== 'script' && elem.getAttribute('aria-hidden') !== 'true') {\n ariaHiddenElements.push(elem);\n elem.setAttribute('aria-hidden', 'true');\n }\n });\n node = node.parentElement;\n } while (node && node.tagName.toLowerCase() !== 'body');\n\n return ariaHiddenElements;\n}\n\n/**\n * Resets the aria-hidden state on previously aria-hidden elements.\n *\n * @param elements\n */\nfunction resetAriaHiddenOnBackgroundElements(elements: Element[]) {\n elements.forEach((elem) => {\n elem.removeAttribute('aria-hidden');\n });\n}\n\nexport default class ModalManager {\n /**\n * Array of ModalDescriptors managed by ModalManager\n */\n private modals: ModalDescriptor[];\n /**\n * Backup of the main container's (body) CSS props potentially altered by Modal.\n */\n private styleBackup: StyleBackup;\n\n constructor() {\n this.modals = [];\n this.styleBackup = [];\n }\n\n /**\n * Registers a modal with ModalManager\n *\n * @param modal\n * @returns\n */\n push(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex !== -1) {\n // Do not try to register the same modal multiple times\n return;\n }\n\n this.modals.push({\n modal: modal,\n ariaHiddenChildren: setAriaHiddenOnBackgroundElements(modal)\n });\n\n // if this is the first modal in the container, block container scrolling\n if (this.modals.length === 1) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n const scrollBarWidth = window.innerWidth - document.documentElement.clientWidth;\n if (scrollBarWidth > 1) {\n // in RTL, scrollbar is on the left\n const scrollBarLeft =\n Math.round(document.documentElement.getBoundingClientRect().left) +\n document.documentElement.scrollLeft;\n\n if (scrollBarLeft) {\n this.styleBackup.push({\n property: 'padding-left',\n value: scrollContainer.style.paddingLeft\n });\n scrollContainer.style.paddingLeft = `${scrollBarWidth}px`;\n } else {\n this.styleBackup.push({\n property: 'padding-right',\n value: scrollContainer.style.paddingRight\n });\n scrollContainer.style.paddingRight = `${scrollBarWidth}px`;\n }\n }\n\n this.styleBackup.push({ property: 'overflow', value: scrollContainer.style.overflow });\n this.styleBackup.push({ property: 'overflow-x', value: scrollContainer.style.overflowX });\n this.styleBackup.push({ property: 'overflow-y', value: scrollContainer.style.overflowY });\n\n scrollContainer.style.overflow = 'hidden';\n }\n }\n\n /**\n * Unegisters a modal from ModalManager\n *\n * @param modal\n * @returns\n */\n pop(modal: Modal) {\n const modalIndex = this._findModalIndex(modal);\n\n if (modalIndex === -1) {\n // modal to be removed not found!'\n return;\n }\n\n if (modalIndex !== this.modals.length - 1) {\n // trying to remove modal out of order!\n return;\n }\n\n const modalDescriptor = this.modals.pop();\n\n if (modalDescriptor) {\n resetAriaHiddenOnBackgroundElements(modalDescriptor?.ariaHiddenChildren);\n }\n\n // if this was the last modal in the container, restore its overflow props\n if (this.modals.length === 0) {\n const ownerDocument = this._getOwnerDocument(modal.modalRef);\n const scrollContainer = ownerDocument.body;\n\n this.styleBackup.forEach(({ property, value }) => {\n scrollContainer.style.setProperty(property, value);\n });\n }\n }\n\n isTopModal(modal: Modal): boolean {\n return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n }\n\n private _findModalIndex(modal: Modal): number {\n let index = -1;\n this.modals.forEach((elem, idx) => {\n if (elem.modal === modal) {\n index = idx;\n return;\n }\n });\n return index;\n }\n\n private _getOwnerDocument(node: Node | null | undefined): Document {\n return (node && node.ownerDocument) || document;\n }\n}\n","import { useEffect, useRef } from 'preact/compat';\nimport { useModal } from './hooks/useModal';\nimport { Layer } from '../UNSAFE_Layer';\nimport ModalBackdrop from './ModalBackdrop';\nimport ModalManager from './ModalManager';\nimport { baseStyle } from './themes/ModalStyles.css';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\n// Global ModalManager singleton instance\nconst globalModalManager = new ModalManager();\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children'>;\ntype UseModalProps = Parameters<typeof useModal>[0];\ntype Props = UseModalProps &\n IntrinsicProps & {\n /**\n * Determines if the modal is active.\n */\n isOpen: boolean;\n /**\n * Specifies if modal backdrop is visible or transparent. Default is 'scrim' (visible).\n */\n backdropVariant?: 'scrim' | 'transparent';\n /**\n * A callback to be invoked when a click on the modal backdrop occurs.\n */\n onBackdropClick?: (event: MouseEvent) => void;\n };\n\n/**\n * Modal is a low-level component that provides the 'modality' feature with built-in overlay (scrim).\n * It is typically used for building higher-level components (such as 'Dialog' or 'Popup') that need\n * to support modal behavior preventing interaction with the rest of the page while the modal is open.\n */\nconst Modal = ({ children, isOpen, onBackdropClick, backdropVariant }: Props) => {\n // get the global ModalContext instance\n const modalManager = globalModalManager;\n\n const { backdropRef } = useModal({ isOpen, onBackdropClick });\n // main modal element ref\n const modalRef = useRef<HTMLDivElement>(null);\n\n // modal ref cache, required to lookup the item in modal manger when the actual ref is unmounted\n const modal = useRef<{\n modalRef?: typeof modalRef.current;\n }>({});\n\n // populates and returns the modal ref cache\n const getModal = () => {\n modal.current.modalRef = modalRef.current;\n return modal.current;\n };\n\n useEffect(() => {\n if (isOpen && modalRef.current) {\n modalManager?.push(getModal());\n } else {\n if (modal.current.modalRef) {\n modalManager?.pop(getModal());\n }\n }\n }, [isOpen, modalManager]);\n\n useEffect(() => {\n const modalRef = modal.current.modalRef;\n return () => {\n if (modalRef) {\n modalManager?.pop(getModal());\n }\n };\n }, [modalManager]);\n\n return isOpen ? (\n <Layer>\n <div ref={modalRef} class={baseStyle}>\n <ModalBackdrop ref={backdropRef} variant={backdropVariant} />\n {children}\n </div>\n </Layer>\n ) : null;\n};\n\nexport default Modal;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AAaA;;;AAGG;AACU,MAAA,QAAQ,GAAG,CAAC,KAAoB,KAAI;IAC/C,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAA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AAK;AACb,QAAA,IAAI,MAAM,IAAI,QAAQ,CAAC,OAAO,EAAE;AAC9B,YAAA,YAAY,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;SAChC;aAAM;AACL,YAAA,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE;AAC1B,gBAAA,YAAY,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;aAC/B;SACF;AACH,KAAC,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAE3B,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;AACxC,QAAA,OAAO,MAAK;YACV,IAAI,QAAQ,EAAE;AACZ,gBAAA,YAAY,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;aAC/B;AACH,SAAC,CAAC;AACJ,KAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;AAEnB,IAAA,OAAO,MAAM,IACXA,IAAC,KAAK,EAAA,EAAA,QAAA,EACJC,IAAK,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAClC,QAAA,EAAA,CAAAD,GAAA,CAAC,aAAa,EAAA,EAAC,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAA,CAAI,EAC5D,QAAQ,IACL,EACA,CAAA,IACN,IAAI,CAAC;AACX;;;;"}
@@ -5,12 +5,12 @@ import './getFormatParse-4721cf15.js';
5
5
  import './logger-c92f309c.js';
6
6
  import { f as formatFullCalendarDate, t as toJSDate, i as isDateOutOfRange } from './calendarDateUtils-97ee2944.js';
7
7
  import { S as StyledDatePickerButton } from './StyledDatePickerButton-aede0e3c.js';
8
- import { u as useUser } from './useUser-a15426fc.js';
8
+ import { u as useUser } from './useUser-bca8cf2d.js';
9
9
  import { useCallback } from 'preact/compat';
10
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
10
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
11
11
  import { u as useFocusableCell, a as useCellNavigation } from './useCellNavigation-00d575ca.js';
12
12
  import { dayCellStyles } from './PRIVATE_MonthView/themes/DayCellStyles.css.js';
13
- import { G as Grid } from './Grid-7fd29a9e.js';
13
+ import { G as Grid } from './Grid-c2385b22.js';
14
14
  import { MonthViewRedwoodTheme } from './PRIVATE_MonthView/themes/redwood/MonthViewTheme.js';
15
15
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
16
16
  import { monthViewScaleVars } from './PRIVATE_MonthView/themes/MonthViewContract.css.js';
@@ -183,4 +183,4 @@ function isOutOfMonth(date1, currentMonthDate) {
183
183
  }
184
184
 
185
185
  export { MonthView as M };
186
- //# sourceMappingURL=MonthView-c3b82ace.js.map
186
+ //# sourceMappingURL=MonthView-3d90f424.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MonthView-c3b82ace.js","sources":["../../src/PRIVATE_MonthView/useDayCell.ts","../../src/PRIVATE_MonthView/DayCell.tsx","../../src/PRIVATE_MonthView/WeekNumberCell.tsx","../../src/PRIVATE_MonthView/MonthView.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { formatFullCalendarDate, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { ComponentProps, useCallback } from 'preact/compat';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { useFocusableCell } from '#UNSAFE_DatePicker/useFocusableCell';\nimport { useCellNavigation } from '#UNSAFE_DatePicker/useCellNavigation';\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\n\ntype NavigationDirections =\n | 'previousDay'\n | 'nextDay'\n | 'previousWeek'\n | 'nextWeek'\n | 'previousMonth'\n | 'nextMonth'\n | 'previousYear'\n | 'nextYear'\n | 'firstDayOfMonth'\n | 'lastDayOfMonth'\n | 'today';\n\nexport type DayFormatOptions = {\n state: 'enabled' | 'disabled' | 'restricted';\n};\n\n// These are the properties the useDayCell hook takes.\nexport type UseDayCellProps = {\n /**\n * Date of the day cell. This will be formatted as a full date and put in the aria-label.\n */\n date: CalendarDateRequired;\n /**\n * A function that receives a date and returns an object specifying how to format the provided date.\n * This function is called for each date that is rendered and this can be used to control how individual\n * dates are rendered - disabled, restricted, or enabled.\n * @param date The date to format\n * @returns The format options\n */\n dayFormatter?: (date: CalendarDateRequired) => DayFormatOptions;\n /**\n * Whether the day cell is in an adjacent month, not the current month.\n */\n isAdjacentMonth: boolean;\n /**\n * Whether the day cell is disabled, like if it is out of the min/max range.\n */\n isDisabled?: boolean;\n /**\n * Whether the day cell is focusable, meaning it will have tabIndex 0.\n */\n isFocusable: boolean;\n /**\n * Whether the day cell has focus.\n */\n isFocused: boolean;\n /**\n * Whether the day cell is hidden. For example, days outside of the current month are hidden by default.\n */\n isHidden: boolean;\n /**\n * Whether the day cell is readonly. It is not activeable.\n */\n isReadonly: boolean;\n /**\n * Whether the day cell looks selected.\n */\n isSelected: boolean;\n /**\n * Whether the day cell's date is today.\n */\n isToday: boolean;\n /**\n * A callback that will be invoked when the user selects the date by clicking on a day cell or selecting the enter or space key on a day cell.\n * @param payload The payload containing the date represented by this cell.\n */\n onAction: (payload: { date: CalendarDateRequired }) => void;\n /**\n * A callback that will be invoked when the user navigates.\n */\n onNavigation: (detail: { direction: NavigationDirections; date: CalendarDateRequired }) => void;\n};\n\n/**\n * The useDayCell hook returns properties for an individual DayCell. The properties returned should be spread on the StyledDatePickerButton.\n * These include the event handlers for keydown and click.\n */\nexport const useDayCell = ({\n date,\n dayFormatter = defaultDayFormatter,\n isAdjacentMonth,\n isDisabled,\n isFocusable,\n isFocused,\n isHidden,\n isReadonly,\n isSelected,\n isToday,\n onAction,\n onNavigation\n}: UseDayCellProps) => {\n const { locale } = useUser();\n\n // apply day formatting\n const { state } = dayFormatter(date);\n const isDisabledFormat = state === 'disabled';\n const isRestrictedFormat = state === 'restricted';\n\n // Focus the day cell with isFocused true when the state updates.\n const buttonProps = useFocusableCell({ isFocusable, isFocused });\n // Override onAction to not call it if disabled, readonly or restricted\n const handleAction: UseDayCellProps['onAction'] = useCallback(\n (payload) => {\n if (isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat) return;\n onAction(payload);\n },\n [isDisabled, isDisabledFormat, isReadonly, isRestrictedFormat, onAction]\n );\n const buttonEventHandlers = useCellNavigation({\n navigationMap: {\n ArrowLeft: { ltr: 'previousDay', rtl: 'nextDay' },\n ArrowRight: { ltr: 'nextDay', rtl: 'previousDay' },\n ArrowDown: 'nextWeek',\n ArrowUp: 'previousWeek',\n PageDown: 'nextMonth',\n PageUp: 'previousMonth',\n Home: 'firstDayOfMonth',\n End: 'lastDayOfMonth',\n ShiftPageDown: 'nextYear',\n ShiftPageUp: 'previousYear',\n CtrlAltT: 'today'\n },\n payload: { date },\n onAction: handleAction,\n onNavigation\n });\n\n // For accessibility, we want a full date.\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const today = translations.datePicker_today();\n const selected = translations.datePicker_selected();\n const restricted = translations.datePicker_restricted();\n\n const formattedDate = formatFullCalendarDate(locale, date, 'day');\n let ariaLabel = isToday ? `${today}, ${formattedDate}` : formattedDate;\n ariaLabel = isRestrictedFormat ? `${ariaLabel}, ${restricted}` : ariaLabel;\n ariaLabel = isSelected ? `${ariaLabel}, ${selected}` : ariaLabel;\n const dayOfMonth = toJSDate(date.year, date.month, date.day).getDate().toString();\n\n return {\n buttonProps: {\n 'aria-label': ariaLabel,\n ...((isHidden || isDisabled || isDisabledFormat || isRestrictedFormat) && {\n 'aria-disabled': true\n }),\n isActivable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isAdjacentMonth,\n isDimmed: isDisabled || isDisabledFormat,\n isHidden,\n isHoverable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isReadonly,\n isSelected,\n isRestricted: isRestrictedFormat,\n isToday,\n label: dayOfMonth,\n ...buttonProps,\n ...buttonEventHandlers\n } as ComponentProps<typeof StyledDatePickerButton>\n };\n};\n\n/**\n * A default day formatter that always formats as enabled state.\n */\nconst defaultDayFormatter = () => ({ state: 'enabled' }) as DayFormatOptions;\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 */\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\nimport { UseDayCellProps, useDayCell } from './useDayCell';\nimport { dayCellStyles } from './themes/DayCellStyles.css';\n\ntype PickedUseDayCellProps = Pick<\n UseDayCellProps,\n | 'date'\n | 'dayFormatter'\n | 'isAdjacentMonth'\n | 'isDisabled'\n | 'isFocusable'\n | 'isFocused'\n | 'isHidden'\n | 'isReadonly'\n | 'isSelected'\n | 'isToday'\n | 'onAction'\n | 'onNavigation'\n>;\n\ntype DayCellProps = PickedUseDayCellProps;\n\n/**\n * The DayCell is the cell within the DatePicker's month view that contains the day in the month view.\n * This component will format the date for the aria-label.\n * The DayCell components uses the useDayCell hook to handle the user interactions with the day cell.\n */\nexport const DayCell = (props: DayCellProps) => {\n const { buttonProps } = useDayCell(props);\n // buttonProps, e.g., tabIndex, aria-label, onclick, onkeydown and visual states\n return (\n <div role=\"gridcell\" class={dayCellStyles}>\n <StyledDatePickerButton {...buttonProps} />\n </div>\n );\n};\n","import { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { CalendarDateRequired, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { weekNumberCellStyles, weekNumberStyles } from './themes/WeekNumberCellStyle.css'; \n\ntype Props = {\n /**\n * startDateOfWeek is the first date of the week row\n */\n startDateOfWeek: CalendarDateRequired;\n};\n\n/**\n * The ISO 8601 definition for week 01 is the week with the first Thursday of the Gregorian year (i.e. of January) in it.\n * https://en.wikipedia.org/wiki/ISO_week_date\n * @param date The first date of the week row to be used to calculate the week number\n * @returns the number of week in the year\n */\nconst calculateWeekNumber = (date: CalendarDateRequired) => {\n const checkDate = toJSDate(date.year, date.month, date.day);\n const dayNumber = checkDate.getUTCDay();\n\n // For ISO week, we set the start of the week to Monday\n if (dayNumber !== 1) {\n checkDate.setUTCDate(checkDate.getUTCDate() + (dayNumber === 0 ? 1 : 2));\n }\n\n // Find Thursday (day value of 4) of this week\n checkDate.setUTCDate(checkDate.getUTCDate() + 3);\n\n // Create the start of the year date\n const janFirst = toJSDate(checkDate.getUTCFullYear(), 1, 1);\n\n return Math.floor(Math.round((checkDate.getTime() - janFirst.getTime()) / 86400000) / 7) + 1;\n};\n\n/**\n * The WeekNumberCell is the cell at the start of a week's row within the DatePicker's\n * month view that contains the week's number within the year. This displays when\n * the DatePicker's 'weekDisplay' prop is set to 'number'.\n * This component will format the week number for the aria-label.\n */\nconst WeekNumberCell = ({ startDateOfWeek }: Props) => {\n const weekNumber = calculateWeekNumber(startDateOfWeek);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n return (\n <div\n aria-label={translations.datePicker_weekNum({ NUM: String(weekNumber) })}\n class={weekNumberCellStyles}\n role=\"rowheader\">\n <span class={weekNumberStyles}>{weekNumber}</span>\n </div>\n );\n};\n\nexport { WeekNumberCell };\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 */\nimport {\n getWeeksInMonth,\n getDatesInWeek,\n getStartOfWeek,\n getDaysOfWeekNames,\n WeekInMonthIndex\n} from '#utils/PRIVATE_dayUtils';\nimport { ComponentProps } from 'preact/compat';\nimport {\n CalendarDateRequired,\n formatFullCalendarDate,\n isDateOutOfRange\n} from '#utils/UNSAFE_calendarDateUtils';\nimport { DayCell } from './DayCell';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { Grid } from '#UNSAFE_Grid';\nimport {\n MonthViewStyles,\n MonthViewVariantOptions\n} from '#PRIVATE_MonthView/themes/MonthViewStyles.css';\nimport { MonthViewRedwoodTheme } from '#PRIVATE_MonthView/themes/redwood/MonthViewTheme';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { monthViewScaleVars } from '#PRIVATE_MonthView/themes/MonthViewContract.css';\nimport { WeekNumberCell } from './WeekNumberCell';\n\ntype PickedDayCellProps = Pick<\n ComponentProps<typeof DayCell>,\n 'dayFormatter' | 'onAction' | 'onNavigation'\n>;\n\ntype MonthViewProps = TestIdProps &\n PickedDayCellProps & {\n /**\n * The daysOutsideMonth property affects the day cells that are outside of the current month.\n * If set to 'hidden', then the days outside of the current month will be hidden.\n * If set to 'selectable', then the days outside of the current month will be visible and selectable.\n * This defaults to 'hidden'.\n */\n daysOutsideMonth?: 'hidden' | 'selectable';\n /**\n * The MonthView renders with the month of the focusableDate.\n * The focusableDate is the only day in the MonthView that has tabIndex: 0 on it.\n * The focusableDate doesn't have focus until the user tabs in to the Month View.\n * The focusableDate is never undefined.\n */\n focusableDate: CalendarDateRequired;\n /**\n * If set to true, the focusableDate will be focused and you will see the focus ring. It will be\n * false when no date has focus.\n * @default false\n */\n isFocused?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * The maximum selectable date. The max must be greater than the min if they are both specified.\n */\n max?: CalendarDateRequired;\n /**\n * The minimum selectable date. The min must be less than the max if they are both specified.\n */\n min?: CalendarDateRequired;\n /**\n * The selected date of the MonthView, or undefined is there is no selected date. This\n * is used to highlight the selected day cell if it is within the min/max range.\n */\n selectedDate?: CalendarDateRequired;\n /**\n * Today's date. This is used to highlight the Today day cell.\n */\n todaysDate: CalendarDateRequired;\n /**\n * Whether week of the year will be shown in the DatePicker. The default calculation follows the\n * ISO 8601 definition: the first week of the year contains the first Thursday of the year.\n * This means that some days from one year may be placed into weeks 'belonging' to another year.\n */\n weekDisplay?: 'none' | 'number';\n };\n\n/**\n * A MonthView is a month interface that allows users to select a single date. The MonthView is the week day header\n * abbreviations and the days of the month. A MonthView is used inside of a DatePicker\n * along with the DatePickerHeader and the MonthGridView and YearGridView.\n */\nexport const MonthView = ({\n dayFormatter,\n daysOutsideMonth = 'hidden',\n isReadonly = false,\n max,\n min,\n onAction,\n onNavigation,\n selectedDate,\n focusableDate,\n isFocused = false,\n testId,\n todaysDate,\n weekDisplay = 'none'\n}: MonthViewProps) => {\n const { locale } = useUser();\n const weeksInMonth = getWeeksInMonth(focusableDate.year, focusableDate.month, locale);\n const { baseTheme, styles } = useComponentTheme<MonthViewVariantOptions, MonthViewStyles>(\n MonthViewRedwoodTheme,\n {}\n );\n const isWeekNumberDisplayed = weekDisplay === 'number';\n const gridTemplateColumns = `repeat(${isWeekNumberDisplayed ? 8 : 7}, 1fr)`;\n\n const renderMonthViewHeaderRow = () => {\n const weekDays = getDaysOfWeekNames(locale, 'short');\n\n return (\n <Grid\n role=\"row\"\n aria-hidden=\"true\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <div role=\"presentation\" />}\n {weekDays.map((day) => (\n <div role=\"columnheader\" class={styles.dayOfTheWeek}>\n <span>{day}</span>\n </div>\n ))}\n </Grid>\n );\n };\n\n const renderMonthView = () => {\n const calendarGrid: JSX.Element[] = [];\n\n for (let weekIndex = 0; weekIndex < weeksInMonth; weekIndex++) {\n const startDateOfWeek = getStartOfWeek(focusableDate.year, focusableDate.month, 1, locale);\n\n const weekDates = getDatesInWeek(\n weekIndex as WeekInMonthIndex,\n startDateOfWeek.year,\n startDateOfWeek.month,\n startDateOfWeek.day\n );\n\n const weekCells = weekDates.map((dayCellDate) => {\n // This figures out the visual state of the DayCell.\n const isDisabled = isDateOutOfRange(dayCellDate, min, max);\n\n // Even if the selected date is out of range, the UX design shows it as selected.\n const isSelected = selectedDate ? isSameDate(dayCellDate, selectedDate) : false;\n const isToday = isSameDate(dayCellDate, todaysDate);\n const isFocusable = isSameDate(dayCellDate, focusableDate);\n const isAdjacentMonth = isOutOfMonth(dayCellDate, focusableDate);\n const isHidden = isAdjacentMonth && daysOutsideMonth === 'hidden';\n\n return (\n <DayCell\n key={`${dayCellDate.year}-${dayCellDate.month}-${dayCellDate.day}`}\n date={dayCellDate}\n dayFormatter={dayFormatter}\n isAdjacentMonth={isAdjacentMonth}\n isDisabled={isDisabled}\n isFocusable={isFocusable}\n isFocused={isFocusable && isFocused}\n isHidden={isHidden}\n isReadonly={isReadonly}\n isSelected={isSelected}\n isToday={isToday}\n onAction={onAction}\n onNavigation={onNavigation}></DayCell>\n );\n });\n\n calendarGrid.push(\n <Grid\n key={weekIndex}\n role=\"row\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <WeekNumberCell startDateOfWeek={weekDates[0]} />}\n {weekCells}\n </Grid>\n );\n }\n\n return calendarGrid;\n };\n\n const monthViewAriaLabel = formatFullCalendarDate(locale, focusableDate, 'month');\n return (\n <div class={baseTheme}>\n <Grid\n gap={monthViewScaleVars.rowGap}\n aria-label={monthViewAriaLabel}\n role=\"grid\"\n testId={testId}>\n {renderMonthViewHeaderRow()}\n {renderMonthView()}\n </Grid>\n </div>\n );\n};\n\nfunction isSameDate(date1: CalendarDateRequired, date2: CalendarDateRequired) {\n return date1.year === date2.year && date1.month === date2.month && date1.day === date2.day;\n}\n\nfunction isOutOfMonth(date1: CalendarDateRequired, currentMonthDate: CalendarDateRequired) {\n return date1.month !== currentMonthDate.month;\n}\n"],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,CAAC,IAAI,CACfC,IAAC,CAAA,IAAI,IAEH,IAAI,EAAC,KAAK,EACV,mBAAmB,EAAE,mBAAmB,EACxC,GAAG,EAAE,kBAAkB,CAAC,SAAS,EAChC,QAAA,EAAA,CAAA,qBAAqB,IAAID,GAAC,CAAA,cAAc,EAAC,EAAA,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC,GAAI,EAC1E,SAAS,KALL,SAAS,CAMT,CACR,CAAC;SACH;AAED,QAAA,OAAO,YAAY,CAAC;AACtB,KAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;AAClF,IAAA,QACEA,GAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,SAAS,EACnB,QAAA,EAAAC,IAAA,CAAC,IAAI,EAAA,EACH,GAAG,EAAE,kBAAkB,CAAC,MAAM,EAClB,YAAA,EAAA,kBAAkB,EAC9B,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,EAAA,QAAA,EAAA,CACb,wBAAwB,EAAE,EAC1B,eAAe,EAAE,CACb,EAAA,CAAA,EAAA,CACH,EACN;AACJ,EAAE;AAEF,SAAS,UAAU,CAAC,KAA2B,EAAE,KAA2B,EAAA;IAC1E,OAAO,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC;AAC7F,CAAC;AAED,SAAS,YAAY,CAAC,KAA2B,EAAE,gBAAsC,EAAA;AACvF,IAAA,OAAO,KAAK,CAAC,KAAK,KAAK,gBAAgB,CAAC,KAAK,CAAC;AAChD;;;;"}
1
+ {"version":3,"file":"MonthView-3d90f424.js","sources":["../../src/PRIVATE_MonthView/useDayCell.ts","../../src/PRIVATE_MonthView/DayCell.tsx","../../src/PRIVATE_MonthView/WeekNumberCell.tsx","../../src/PRIVATE_MonthView/MonthView.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { formatFullCalendarDate, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { ComponentProps, useCallback } from 'preact/compat';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { useFocusableCell } from '#UNSAFE_DatePicker/useFocusableCell';\nimport { useCellNavigation } from '#UNSAFE_DatePicker/useCellNavigation';\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\n\ntype NavigationDirections =\n | 'previousDay'\n | 'nextDay'\n | 'previousWeek'\n | 'nextWeek'\n | 'previousMonth'\n | 'nextMonth'\n | 'previousYear'\n | 'nextYear'\n | 'firstDayOfMonth'\n | 'lastDayOfMonth'\n | 'today';\n\nexport type DayFormatOptions = {\n state: 'enabled' | 'disabled' | 'restricted';\n};\n\n// These are the properties the useDayCell hook takes.\nexport type UseDayCellProps = {\n /**\n * Date of the day cell. This will be formatted as a full date and put in the aria-label.\n */\n date: CalendarDateRequired;\n /**\n * A function that receives a date and returns an object specifying how to format the provided date.\n * This function is called for each date that is rendered and this can be used to control how individual\n * dates are rendered - disabled, restricted, or enabled.\n * @param date The date to format\n * @returns The format options\n */\n dayFormatter?: (date: CalendarDateRequired) => DayFormatOptions;\n /**\n * Whether the day cell is in an adjacent month, not the current month.\n */\n isAdjacentMonth: boolean;\n /**\n * Whether the day cell is disabled, like if it is out of the min/max range.\n */\n isDisabled?: boolean;\n /**\n * Whether the day cell is focusable, meaning it will have tabIndex 0.\n */\n isFocusable: boolean;\n /**\n * Whether the day cell has focus.\n */\n isFocused: boolean;\n /**\n * Whether the day cell is hidden. For example, days outside of the current month are hidden by default.\n */\n isHidden: boolean;\n /**\n * Whether the day cell is readonly. It is not activeable.\n */\n isReadonly: boolean;\n /**\n * Whether the day cell looks selected.\n */\n isSelected: boolean;\n /**\n * Whether the day cell's date is today.\n */\n isToday: boolean;\n /**\n * A callback that will be invoked when the user selects the date by clicking on a day cell or selecting the enter or space key on a day cell.\n * @param payload The payload containing the date represented by this cell.\n */\n onAction: (payload: { date: CalendarDateRequired }) => void;\n /**\n * A callback that will be invoked when the user navigates.\n */\n onNavigation: (detail: { direction: NavigationDirections; date: CalendarDateRequired }) => void;\n};\n\n/**\n * The useDayCell hook returns properties for an individual DayCell. The properties returned should be spread on the StyledDatePickerButton.\n * These include the event handlers for keydown and click.\n */\nexport const useDayCell = ({\n date,\n dayFormatter = defaultDayFormatter,\n isAdjacentMonth,\n isDisabled,\n isFocusable,\n isFocused,\n isHidden,\n isReadonly,\n isSelected,\n isToday,\n onAction,\n onNavigation\n}: UseDayCellProps) => {\n const { locale } = useUser();\n\n // apply day formatting\n const { state } = dayFormatter(date);\n const isDisabledFormat = state === 'disabled';\n const isRestrictedFormat = state === 'restricted';\n\n // Focus the day cell with isFocused true when the state updates.\n const buttonProps = useFocusableCell({ isFocusable, isFocused });\n // Override onAction to not call it if disabled, readonly or restricted\n const handleAction: UseDayCellProps['onAction'] = useCallback(\n (payload) => {\n if (isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat) return;\n onAction(payload);\n },\n [isDisabled, isDisabledFormat, isReadonly, isRestrictedFormat, onAction]\n );\n const buttonEventHandlers = useCellNavigation({\n navigationMap: {\n ArrowLeft: { ltr: 'previousDay', rtl: 'nextDay' },\n ArrowRight: { ltr: 'nextDay', rtl: 'previousDay' },\n ArrowDown: 'nextWeek',\n ArrowUp: 'previousWeek',\n PageDown: 'nextMonth',\n PageUp: 'previousMonth',\n Home: 'firstDayOfMonth',\n End: 'lastDayOfMonth',\n ShiftPageDown: 'nextYear',\n ShiftPageUp: 'previousYear',\n CtrlAltT: 'today'\n },\n payload: { date },\n onAction: handleAction,\n onNavigation\n });\n\n // For accessibility, we want a full date.\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const today = translations.datePicker_today();\n const selected = translations.datePicker_selected();\n const restricted = translations.datePicker_restricted();\n\n const formattedDate = formatFullCalendarDate(locale, date, 'day');\n let ariaLabel = isToday ? `${today}, ${formattedDate}` : formattedDate;\n ariaLabel = isRestrictedFormat ? `${ariaLabel}, ${restricted}` : ariaLabel;\n ariaLabel = isSelected ? `${ariaLabel}, ${selected}` : ariaLabel;\n const dayOfMonth = toJSDate(date.year, date.month, date.day).getDate().toString();\n\n return {\n buttonProps: {\n 'aria-label': ariaLabel,\n ...((isHidden || isDisabled || isDisabledFormat || isRestrictedFormat) && {\n 'aria-disabled': true\n }),\n isActivable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isAdjacentMonth,\n isDimmed: isDisabled || isDisabledFormat,\n isHidden,\n isHoverable: !(isDisabled || isReadonly || isDisabledFormat || isRestrictedFormat),\n isReadonly,\n isSelected,\n isRestricted: isRestrictedFormat,\n isToday,\n label: dayOfMonth,\n ...buttonProps,\n ...buttonEventHandlers\n } as ComponentProps<typeof StyledDatePickerButton>\n };\n};\n\n/**\n * A default day formatter that always formats as enabled state.\n */\nconst defaultDayFormatter = () => ({ state: 'enabled' }) as DayFormatOptions;\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 */\nimport { StyledDatePickerButton } from '#PRIVATE_StyledDatePickerButton';\nimport { UseDayCellProps, useDayCell } from './useDayCell';\nimport { dayCellStyles } from './themes/DayCellStyles.css';\n\ntype PickedUseDayCellProps = Pick<\n UseDayCellProps,\n | 'date'\n | 'dayFormatter'\n | 'isAdjacentMonth'\n | 'isDisabled'\n | 'isFocusable'\n | 'isFocused'\n | 'isHidden'\n | 'isReadonly'\n | 'isSelected'\n | 'isToday'\n | 'onAction'\n | 'onNavigation'\n>;\n\ntype DayCellProps = PickedUseDayCellProps;\n\n/**\n * The DayCell is the cell within the DatePicker's month view that contains the day in the month view.\n * This component will format the date for the aria-label.\n * The DayCell components uses the useDayCell hook to handle the user interactions with the day cell.\n */\nexport const DayCell = (props: DayCellProps) => {\n const { buttonProps } = useDayCell(props);\n // buttonProps, e.g., tabIndex, aria-label, onclick, onkeydown and visual states\n return (\n <div role=\"gridcell\" class={dayCellStyles}>\n <StyledDatePickerButton {...buttonProps} />\n </div>\n );\n};\n","import { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { CalendarDateRequired, toJSDate } from '#utils/UNSAFE_calendarDateUtils';\nimport { weekNumberCellStyles, weekNumberStyles } from './themes/WeekNumberCellStyle.css'; \n\ntype Props = {\n /**\n * startDateOfWeek is the first date of the week row\n */\n startDateOfWeek: CalendarDateRequired;\n};\n\n/**\n * The ISO 8601 definition for week 01 is the week with the first Thursday of the Gregorian year (i.e. of January) in it.\n * https://en.wikipedia.org/wiki/ISO_week_date\n * @param date The first date of the week row to be used to calculate the week number\n * @returns the number of week in the year\n */\nconst calculateWeekNumber = (date: CalendarDateRequired) => {\n const checkDate = toJSDate(date.year, date.month, date.day);\n const dayNumber = checkDate.getUTCDay();\n\n // For ISO week, we set the start of the week to Monday\n if (dayNumber !== 1) {\n checkDate.setUTCDate(checkDate.getUTCDate() + (dayNumber === 0 ? 1 : 2));\n }\n\n // Find Thursday (day value of 4) of this week\n checkDate.setUTCDate(checkDate.getUTCDate() + 3);\n\n // Create the start of the year date\n const janFirst = toJSDate(checkDate.getUTCFullYear(), 1, 1);\n\n return Math.floor(Math.round((checkDate.getTime() - janFirst.getTime()) / 86400000) / 7) + 1;\n};\n\n/**\n * The WeekNumberCell is the cell at the start of a week's row within the DatePicker's\n * month view that contains the week's number within the year. This displays when\n * the DatePicker's 'weekDisplay' prop is set to 'number'.\n * This component will format the week number for the aria-label.\n */\nconst WeekNumberCell = ({ startDateOfWeek }: Props) => {\n const weekNumber = calculateWeekNumber(startDateOfWeek);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n return (\n <div\n aria-label={translations.datePicker_weekNum({ NUM: String(weekNumber) })}\n class={weekNumberCellStyles}\n role=\"rowheader\">\n <span class={weekNumberStyles}>{weekNumber}</span>\n </div>\n );\n};\n\nexport { WeekNumberCell };\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 */\nimport {\n getWeeksInMonth,\n getDatesInWeek,\n getStartOfWeek,\n getDaysOfWeekNames,\n WeekInMonthIndex\n} from '#utils/PRIVATE_dayUtils';\nimport { ComponentProps } from 'preact/compat';\nimport {\n CalendarDateRequired,\n formatFullCalendarDate,\n isDateOutOfRange\n} from '#utils/UNSAFE_calendarDateUtils';\nimport { DayCell } from './DayCell';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { Grid } from '#UNSAFE_Grid';\nimport {\n MonthViewStyles,\n MonthViewVariantOptions\n} from '#PRIVATE_MonthView/themes/MonthViewStyles.css';\nimport { MonthViewRedwoodTheme } from '#PRIVATE_MonthView/themes/redwood/MonthViewTheme';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { monthViewScaleVars } from '#PRIVATE_MonthView/themes/MonthViewContract.css';\nimport { WeekNumberCell } from './WeekNumberCell';\n\ntype PickedDayCellProps = Pick<\n ComponentProps<typeof DayCell>,\n 'dayFormatter' | 'onAction' | 'onNavigation'\n>;\n\ntype MonthViewProps = TestIdProps &\n PickedDayCellProps & {\n /**\n * The daysOutsideMonth property affects the day cells that are outside of the current month.\n * If set to 'hidden', then the days outside of the current month will be hidden.\n * If set to 'selectable', then the days outside of the current month will be visible and selectable.\n * This defaults to 'hidden'.\n */\n daysOutsideMonth?: 'hidden' | 'selectable';\n /**\n * The MonthView renders with the month of the focusableDate.\n * The focusableDate is the only day in the MonthView that has tabIndex: 0 on it.\n * The focusableDate doesn't have focus until the user tabs in to the Month View.\n * The focusableDate is never undefined.\n */\n focusableDate: CalendarDateRequired;\n /**\n * If set to true, the focusableDate will be focused and you will see the focus ring. It will be\n * false when no date has focus.\n * @default false\n */\n isFocused?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * The maximum selectable date. The max must be greater than the min if they are both specified.\n */\n max?: CalendarDateRequired;\n /**\n * The minimum selectable date. The min must be less than the max if they are both specified.\n */\n min?: CalendarDateRequired;\n /**\n * The selected date of the MonthView, or undefined is there is no selected date. This\n * is used to highlight the selected day cell if it is within the min/max range.\n */\n selectedDate?: CalendarDateRequired;\n /**\n * Today's date. This is used to highlight the Today day cell.\n */\n todaysDate: CalendarDateRequired;\n /**\n * Whether week of the year will be shown in the DatePicker. The default calculation follows the\n * ISO 8601 definition: the first week of the year contains the first Thursday of the year.\n * This means that some days from one year may be placed into weeks 'belonging' to another year.\n */\n weekDisplay?: 'none' | 'number';\n };\n\n/**\n * A MonthView is a month interface that allows users to select a single date. The MonthView is the week day header\n * abbreviations and the days of the month. A MonthView is used inside of a DatePicker\n * along with the DatePickerHeader and the MonthGridView and YearGridView.\n */\nexport const MonthView = ({\n dayFormatter,\n daysOutsideMonth = 'hidden',\n isReadonly = false,\n max,\n min,\n onAction,\n onNavigation,\n selectedDate,\n focusableDate,\n isFocused = false,\n testId,\n todaysDate,\n weekDisplay = 'none'\n}: MonthViewProps) => {\n const { locale } = useUser();\n const weeksInMonth = getWeeksInMonth(focusableDate.year, focusableDate.month, locale);\n const { baseTheme, styles } = useComponentTheme<MonthViewVariantOptions, MonthViewStyles>(\n MonthViewRedwoodTheme,\n {}\n );\n const isWeekNumberDisplayed = weekDisplay === 'number';\n const gridTemplateColumns = `repeat(${isWeekNumberDisplayed ? 8 : 7}, 1fr)`;\n\n const renderMonthViewHeaderRow = () => {\n const weekDays = getDaysOfWeekNames(locale, 'short');\n\n return (\n <Grid\n role=\"row\"\n aria-hidden=\"true\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <div role=\"presentation\" />}\n {weekDays.map((day) => (\n <div role=\"columnheader\" class={styles.dayOfTheWeek}>\n <span>{day}</span>\n </div>\n ))}\n </Grid>\n );\n };\n\n const renderMonthView = () => {\n const calendarGrid: JSX.Element[] = [];\n\n for (let weekIndex = 0; weekIndex < weeksInMonth; weekIndex++) {\n const startDateOfWeek = getStartOfWeek(focusableDate.year, focusableDate.month, 1, locale);\n\n const weekDates = getDatesInWeek(\n weekIndex as WeekInMonthIndex,\n startDateOfWeek.year,\n startDateOfWeek.month,\n startDateOfWeek.day\n );\n\n const weekCells = weekDates.map((dayCellDate) => {\n // This figures out the visual state of the DayCell.\n const isDisabled = isDateOutOfRange(dayCellDate, min, max);\n\n // Even if the selected date is out of range, the UX design shows it as selected.\n const isSelected = selectedDate ? isSameDate(dayCellDate, selectedDate) : false;\n const isToday = isSameDate(dayCellDate, todaysDate);\n const isFocusable = isSameDate(dayCellDate, focusableDate);\n const isAdjacentMonth = isOutOfMonth(dayCellDate, focusableDate);\n const isHidden = isAdjacentMonth && daysOutsideMonth === 'hidden';\n\n return (\n <DayCell\n key={`${dayCellDate.year}-${dayCellDate.month}-${dayCellDate.day}`}\n date={dayCellDate}\n dayFormatter={dayFormatter}\n isAdjacentMonth={isAdjacentMonth}\n isDisabled={isDisabled}\n isFocusable={isFocusable}\n isFocused={isFocusable && isFocused}\n isHidden={isHidden}\n isReadonly={isReadonly}\n isSelected={isSelected}\n isToday={isToday}\n onAction={onAction}\n onNavigation={onNavigation}></DayCell>\n );\n });\n\n calendarGrid.push(\n <Grid\n key={weekIndex}\n role=\"row\"\n gridTemplateColumns={gridTemplateColumns}\n gap={monthViewScaleVars.columnGap}>\n {isWeekNumberDisplayed && <WeekNumberCell startDateOfWeek={weekDates[0]} />}\n {weekCells}\n </Grid>\n );\n }\n\n return calendarGrid;\n };\n\n const monthViewAriaLabel = formatFullCalendarDate(locale, focusableDate, 'month');\n return (\n <div class={baseTheme}>\n <Grid\n gap={monthViewScaleVars.rowGap}\n aria-label={monthViewAriaLabel}\n role=\"grid\"\n testId={testId}>\n {renderMonthViewHeaderRow()}\n {renderMonthView()}\n </Grid>\n </div>\n );\n};\n\nfunction isSameDate(date1: CalendarDateRequired, date2: CalendarDateRequired) {\n return date1.year === date2.year && date1.month === date2.month && date1.day === date2.day;\n}\n\nfunction isOutOfMonth(date1: CalendarDateRequired, currentMonthDate: CalendarDateRequired) {\n return date1.month !== currentMonthDate.month;\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAuFH;;;AAGG;AACI,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,EACJ,YAAY,GAAG,mBAAmB,EAClC,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,EACP,QAAQ,EACR,YAAY,EACI,KAAI;AACpB,IAAA,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC;;IAG7B,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;AACrC,IAAA,MAAM,gBAAgB,GAAG,KAAK,KAAK,UAAU,CAAC;AAC9C,IAAA,MAAM,kBAAkB,GAAG,KAAK,KAAK,YAAY,CAAC;;IAGlD,MAAM,WAAW,GAAG,gBAAgB,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;;AAEjE,IAAA,MAAM,YAAY,GAAgC,WAAW,CAC3D,CAAC,OAAO,KAAI;AACV,QAAA,IAAI,UAAU,IAAI,UAA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b,EAAA,CAAA,EAAA,CACH,EACN;AACJ,EAAE;AAEF,SAAS,UAAU,CAAC,KAA2B,EAAE,KAA2B,EAAA;IAC1E,OAAO,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC;AAC7F,CAAC;AAED,SAAS,YAAY,CAAC,KAA2B,EAAE,gBAAsC,EAAA;AACvF,IAAA,OAAO,KAAK,CAAC,KAAK,KAAK,gBAAgB,CAAC,KAAK,CAAC;AAChD;;;;"}
@@ -7,19 +7,19 @@ import { u as useId } from './useId-03dbfdf0.js';
7
7
  import { navigationListStyles } from './UNSAFE_NavigationList/themes/NavigationListStyles.css.js';
8
8
  import { c as getPrevNextKeyUsingRef, k as keyExtractor, d as getFirstVisibleKey, b as getKey, f as findElementByKey } from './collectionUtils-d72c7c40.js';
9
9
  import { u as useCollectionFocusRing } from './useCollectionFocusRing-d0c80397.js';
10
- import { u as useCurrentKey } from './useCurrentKey-76e7d7b1.js';
10
+ import { u as useCurrentKey } from './useCurrentKey-55123e83.js';
11
11
  import { forwardRef, useImperativeHandle } from 'preact/compat';
12
- import { u as useTestId } from './useTestId-3bc3958c.js';
12
+ import { u as useTestId } from './useTestId-af32a9eb.js';
13
13
  import './UNSAFE_Text/themes/TextStyles.css.js';
14
14
  import { N as NavigationListContext, B as BaseNavigationListItem } from './BaseNavigationListItem-ac7ef3c3.js';
15
- import './Flex-8696b27b.js';
15
+ import './Flex-2d51e914.js';
16
16
  import './logger-c92f309c.js';
17
17
  import 'preact';
18
- import './LayerHost-15b42a3e.js';
18
+ import './LayerHost-7a2149f5.js';
19
19
  import './TooltipContentStyles.styles.css';
20
20
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
21
21
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
22
- import './tooltipUtils-1131b3ca.js';
22
+ import './tooltipUtils-06c93436.js';
23
23
  import './IconStyle.styles.css';
24
24
  import './UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js';
25
25
  import './UNSAFE_NavigationList/themes/redwood/NavigationListItemBaseTheme.styles.css';
@@ -1,26 +1,26 @@
1
- .NavigationListItemVariants_multiVariantStyles_selected_isSelected__13shj7v4 {
1
+ .NavigationListItemVariants_multiVariantStyles_selected_isSelected__16ggl234 {
2
2
  background-color: var(--backgroundColorSelected__1497t56b);
3
3
  border-color: var(--borderColorSelected__1497t56c);
4
4
  color: var(--labelColorSelected__1497t56a);
5
5
  }
6
- .NavigationListItemVariants_multiVariantStyles_compound_0__13shj7vc:not(:active) {
6
+ .NavigationListItemVariants_multiVariantStyles_compound_0__16ggl23c:not(:active) {
7
7
  background-color: var(--backgroundColorHover__1497t568);
8
8
  border-color: var(--borderColorHover__1497t569);
9
9
  color: var(--labelColorHover__1497t567);
10
10
  }
11
- .NavigationListItemVariants_multiVariantStyles_compound_2__13shj7ve {
11
+ .NavigationListItemVariants_multiVariantStyles_compound_2__16ggl23e {
12
12
  background-color: var(--backgroundColorHover__1497t568);
13
13
  border-color: var(--borderColorHover__1497t569);
14
14
  color: var(--labelColorHover__1497t567);
15
15
  }
16
- .NavigationListItemVariants_multiVariantStyles_compound_3__13shj7vf {
16
+ .NavigationListItemVariants_multiVariantStyles_compound_3__16ggl23f {
17
17
  outline-style: dotted;
18
18
  outline-offset: -1px;
19
19
  outline-width: 1px;
20
20
  outline-color: var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-keyboard-focus);
21
21
  }
22
22
  @media (hover: hover) {
23
- .NavigationListItemVariants_multiVariantStyles_compound_1__13shj7vd:hover:not(:active) {
23
+ .NavigationListItemVariants_multiVariantStyles_compound_1__16ggl23d:hover:not(:active) {
24
24
  background-color: var(--backgroundColorHover__1497t568);
25
25
  border-color: var(--borderColorHover__1497t569);
26
26
  color: var(--labelColorHover__1497t567);
@@ -1,26 +1,26 @@
1
- .NavigationListItemVariants_multiVariantStyles_selected_isSelected__16ggl234 {
1
+ .NavigationListItemVariants_multiVariantStyles_selected_isSelected__13shj7v4 {
2
2
  background-color: var(--backgroundColorSelected__1497t56b);
3
3
  border-color: var(--borderColorSelected__1497t56c);
4
4
  color: var(--labelColorSelected__1497t56a);
5
5
  }
6
- .NavigationListItemVariants_multiVariantStyles_compound_0__16ggl23c:not(:active) {
6
+ .NavigationListItemVariants_multiVariantStyles_compound_0__13shj7vc:not(:active) {
7
7
  background-color: var(--backgroundColorHover__1497t568);
8
8
  border-color: var(--borderColorHover__1497t569);
9
9
  color: var(--labelColorHover__1497t567);
10
10
  }
11
- .NavigationListItemVariants_multiVariantStyles_compound_2__16ggl23e {
11
+ .NavigationListItemVariants_multiVariantStyles_compound_2__13shj7ve {
12
12
  background-color: var(--backgroundColorHover__1497t568);
13
13
  border-color: var(--borderColorHover__1497t569);
14
14
  color: var(--labelColorHover__1497t567);
15
15
  }
16
- .NavigationListItemVariants_multiVariantStyles_compound_3__16ggl23f {
16
+ .NavigationListItemVariants_multiVariantStyles_compound_3__13shj7vf {
17
17
  outline-style: dotted;
18
18
  outline-offset: -1px;
19
19
  outline-width: 1px;
20
20
  outline-color: var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-keyboard-focus);
21
21
  }
22
22
  @media (hover: hover) {
23
- .NavigationListItemVariants_multiVariantStyles_compound_1__16ggl23d:hover:not(:active) {
23
+ .NavigationListItemVariants_multiVariantStyles_compound_1__13shj7vd:hover:not(:active) {
24
24
  background-color: var(--backgroundColorHover__1497t568);
25
25
  border-color: var(--borderColorHover__1497t569);
26
26
  color: var(--labelColorHover__1497t567);
@@ -9,14 +9,14 @@ import { F as FormFieldContext } from './FormFieldContext-68eb5946.js';
9
9
  import { u as useTextField } from './useTextField-f57cfb8d.js';
10
10
  import { L as Label } from './Label-ab276ca9.js';
11
11
  import { P as PrefixSuffix } from './PrefixSuffix-73361db2.js';
12
- import { u as usePrefixSuffix } from './usePrefixSuffix-435a9c59.js';
12
+ import { u as usePrefixSuffix } from './usePrefixSuffix-995d4cda.js';
13
13
  import { g as getClientHints } from './clientHints-c76a913b.js';
14
14
  import { T as TextFieldInput } from './TextFieldInput-84280715.js';
15
15
  import './ObfuscatedTextFieldInputStyles.styles.css';
16
16
  import { R as ReadonlyTextFieldInput } from './ReadonlyTextFieldInput-a15badb6.js';
17
17
  import { R as ReadonlyTextField } from './StyledTextField-9df27ab4.js';
18
18
  import { T as TextField } from './TextField-d4b4661d.js';
19
- import './LayerHost-15b42a3e.js';
19
+ import './LayerHost-7a2149f5.js';
20
20
  import './LiveRegionStyles.styles.css';
21
21
  import './logger-c92f309c.js';
22
22
  import { T as TabbableModeContext } from './TabbableModeContext-7d8ad946.js';
@@ -29,10 +29,10 @@ import { m as mergeProps } from './mergeProps-88ea8306.js';
29
29
  import './TooltipContentStyles.styles.css';
30
30
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
31
31
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
32
- import './tooltipUtils-1131b3ca.js';
32
+ import './tooltipUtils-06c93436.js';
33
33
  import 'preact';
34
34
  import './IconStyle.styles.css';
35
- import './Popup-8becd87a.js';
35
+ import './Popup-7cc4028b.js';
36
36
  import './LabelStyles.styles.css';
37
37
  import './UNSAFE_Label/themes/redwood/LabelBaseTheme.styles.css';
38
38
  import './UNSAFE_Label/themes/redwood/LabelVariants.css.js';
@@ -46,8 +46,8 @@ import { S as SvgChevronUp } from './ChevronUp-96451348.js';
46
46
  import { S as SvgMinus } from './Minus-54288a2c.js';
47
47
  import { S as SvgPlus } from './Plus-fea15bf2.js';
48
48
  import { I as IconButton } from './IconButton-451a225c.js';
49
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
50
- import { G as Grid } from './Grid-7fd29a9e.js';
49
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
50
+ import { G as Grid } from './Grid-c2385b22.js';
51
51
  import { u as useSpinning } from './useSpinning-c2c54c7c.js';
52
52
  import { u as useSelectableTextField } from './useSelectableTextField-949184a5.js';
53
53
 
@@ -2,15 +2,15 @@
2
2
  import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
3
3
  import { createRef } from 'preact';
4
4
  import { useRef, useCallback } from 'preact/hooks';
5
- import { u as useTranslationBundle } from './useTranslationBundle-98df6291.js';
5
+ import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
6
6
  import { g as getClientHints } from './clientHints-c76a913b.js';
7
7
  import { m as mergeInterpolations } from './mergeInterpolations-e2db2a66.js';
8
8
  import { f as flexitemInterpolations } from './flexitem-7b7f7920.js';
9
9
  import { c as classNames } from './classNames-4e12b00d.js';
10
10
  import { I as Icon } from './Icon-4171c0d7.js';
11
11
  import { u as useTabBarContext } from './useTabBarContext-0071d2a7.js';
12
- import { D as Dropdown } from './Dropdown-f45f823c.js';
13
- import { S as Sheet } from './Sheet-f7117b12.js';
12
+ import { D as Dropdown } from './Dropdown-d017dd0a.js';
13
+ import { S as Sheet } from './Sheet-34f3bcb4.js';
14
14
  import { B as BaseTabBarItem } from './TabBarItem-ba695c75.js';
15
15
  import { styles } from './UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css.js';
16
16
  import { N as NavigationList, a as NavigationListItem } from './NavigationListItem-a336f06f.js';