@oracle/oraclejet-preact 20.0.0 → 20.0.1

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 (653) hide show
  1. package/amd/BaseCardView-16fda4c3.js +2 -0
  2. package/amd/{BaseCardView-b8119561.js.map → BaseCardView-16fda4c3.js.map} +1 -1
  3. package/amd/BaseTabBarItem-d7c2922b.js +2 -0
  4. package/amd/BaseTabBarItem-d7c2922b.js.map +1 -0
  5. package/amd/CardFlexView-d3eb7373.js +2 -0
  6. package/amd/{CardFlexView-aa2f3de8.js.map → CardFlexView-d3eb7373.js.map} +1 -1
  7. package/amd/CardGridView-842f70cd.js +2 -0
  8. package/amd/{CardGridView-85f90c75.js.map → CardGridView-842f70cd.js.map} +1 -1
  9. package/amd/{CollapsibleNavigationList-f0072c90.js → CollapsibleNavigationList-fdeccbfb.js} +2 -2
  10. package/amd/{CollapsibleNavigationList-f0072c90.js.map → CollapsibleNavigationList-fdeccbfb.js.map} +1 -1
  11. package/amd/ColorPicker-e3167e4c.js +2 -0
  12. package/amd/{ColorPicker-141fa49d.js.map → ColorPicker-e3167e4c.js.map} +1 -1
  13. package/amd/{DatePicker-88c5bbcd.js → DatePicker-bf521b1c.js} +2 -2
  14. package/amd/{DatePicker-88c5bbcd.js.map → DatePicker-bf521b1c.js.map} +1 -1
  15. package/amd/{FlatTreeView-9ecf2be6.js → FlatTreeView-15edd439.js} +2 -2
  16. package/amd/{FlatTreeView-9ecf2be6.js.map → FlatTreeView-15edd439.js.map} +1 -1
  17. package/amd/{InputColor-58e3fce3.js → InputColor-51d7e40c.js} +2 -2
  18. package/amd/{InputColor-58e3fce3.js.map → InputColor-51d7e40c.js.map} +1 -1
  19. package/amd/{InputDatePicker-48633486.js → InputDatePicker-030e345a.js} +2 -2
  20. package/amd/{InputDatePicker-48633486.js.map → InputDatePicker-030e345a.js.map} +1 -1
  21. package/amd/ListView-02a92d18.js +2 -0
  22. package/amd/{ListView-2678b2af.js.map → ListView-02a92d18.js.map} +1 -1
  23. package/amd/{MonthView-ea883c49.js → MonthView-96fafba4.js} +2 -2
  24. package/amd/{MonthView-ea883c49.js.map → MonthView-96fafba4.js.map} +1 -1
  25. package/amd/{OverflowTabBar-b142f8d4.js → OverflowTabBar-5ff68da7.js} +2 -2
  26. package/amd/{OverflowTabBar-b142f8d4.js.map → OverflowTabBar-5ff68da7.js.map} +1 -1
  27. package/amd/{OverflowTabBarItem-49a82149.js → OverflowTabBarItem-926b0c8a.js} +2 -2
  28. package/amd/{OverflowTabBarItem-49a82149.js.map → OverflowTabBarItem-926b0c8a.js.map} +1 -1
  29. package/amd/PRIVATE_BaseCardView.js +1 -1
  30. package/amd/PRIVATE_CollapsibleNavigationList.js +1 -1
  31. package/amd/PRIVATE_MonthView.js +1 -1
  32. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  33. package/amd/PRIVATE_StyledDatePickerButton.js +1 -1
  34. package/amd/PRIVATE_TableList.js +1 -1
  35. package/amd/{RemovableTabBarItem-e1bee7fa.js → RemovableTabBarItem-9ae273fe.js} +2 -2
  36. package/amd/{RemovableTabBarItem-e1bee7fa.js.map → RemovableTabBarItem-9ae273fe.js.map} +1 -1
  37. package/amd/ReorderableTabBar-0c69bfd4.js +2 -0
  38. package/amd/{ReorderableTabBar-46683bcb.js.map → ReorderableTabBar-0c69bfd4.js.map} +1 -1
  39. package/amd/StyledDatePickerButton-bceb62e1.js +2 -0
  40. package/amd/StyledDatePickerButton-bceb62e1.js.map +1 -0
  41. package/amd/StyledDatePickerButtonStyles.styles.css +17 -0
  42. package/amd/TabBar-de723fbc.js +2 -0
  43. package/amd/{TabBar-fcebb560.js.map → TabBar-de723fbc.js.map} +1 -1
  44. package/amd/TabBarItem-a39c5de3.js +2 -0
  45. package/amd/{TabBarItem-224bc6b3.js.map → TabBarItem-a39c5de3.js.map} +1 -1
  46. package/amd/TabBarLinkItem-944b1e8d.js +2 -0
  47. package/amd/{TabBarLinkItem-57587dbd.js.map → TabBarLinkItem-944b1e8d.js.map} +1 -1
  48. package/amd/TabBarMixed-cfd346bf.js +2 -0
  49. package/amd/{TabBarMixed-8cc4b4ed.js.map → TabBarMixed-cfd346bf.js.map} +1 -1
  50. package/amd/TextArea-345f89d4.js +2 -0
  51. package/{es/TextArea-93ce78a7.js.map → amd/TextArea-345f89d4.js.map} +1 -1
  52. package/amd/TextAreaAutosize-01dfd98e.js +2 -0
  53. package/amd/{TextAreaAutosize-3a13ebb2.js.map → TextAreaAutosize-01dfd98e.js.map} +1 -1
  54. package/amd/Theme-redwood/theme.css +211 -211
  55. package/amd/Theme-stable/theme.css +281 -281
  56. package/amd/UNSAFE_CardFlexView.js +1 -1
  57. package/amd/UNSAFE_CardGridView.js +1 -1
  58. package/amd/UNSAFE_ColorPicker.js +1 -1
  59. package/amd/UNSAFE_DatePicker.js +1 -1
  60. package/amd/UNSAFE_FlatTreeView.js +1 -1
  61. package/amd/UNSAFE_InputColor.js +1 -1
  62. package/amd/UNSAFE_InputDatePicker.js +1 -1
  63. package/amd/UNSAFE_ListView.js +1 -1
  64. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  65. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  66. package/amd/UNSAFE_TabBar.js +1 -1
  67. package/amd/UNSAFE_TabBarCommon.js +1 -1
  68. package/amd/UNSAFE_TabBarMixed.js +1 -1
  69. package/amd/UNSAFE_TextArea.js +1 -1
  70. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  71. package/amd/{YearsGridView-4aa7bc66.js → YearsGridView-561c3074.js} +2 -2
  72. package/amd/{YearsGridView-4aa7bc66.js.map → YearsGridView-561c3074.js.map} +1 -1
  73. package/cjs/CheckboxSet-6865f4fd.js +55 -0
  74. package/cjs/CheckboxSet-6865f4fd.js.map +1 -0
  75. package/cjs/{ColorPalette-9f041744.js → ColorPalette-b14114d8.js} +2 -2
  76. package/cjs/{ColorPalette-9f041744.js.map → ColorPalette-b14114d8.js.map} +1 -1
  77. package/cjs/{ColorPicker-9af6707c.js → ColorPicker-2c99c0fb.js} +2 -2
  78. package/cjs/{ColorPicker-9af6707c.js.map → ColorPicker-2c99c0fb.js.map} +1 -1
  79. package/cjs/{DatePicker-48c602ff.js → DatePicker-b60f8a7e.js} +3 -3
  80. package/cjs/{DatePicker-48c602ff.js.map → DatePicker-b60f8a7e.js.map} +1 -1
  81. package/cjs/{MonthView-59452edc.js → MonthView-a2661a58.js} +2 -2
  82. package/cjs/{MonthView-59452edc.js.map → MonthView-a2661a58.js.map} +1 -1
  83. package/cjs/{NavigationListItem-3b9eb0fb.js → NavigationListItem-cdfd0740.js} +19 -1
  84. package/cjs/{NavigationListItem-3b9eb0fb.js.map → NavigationListItem-cdfd0740.js.map} +1 -1
  85. package/cjs/{OverflowTabBarItem-2c967a89.js → OverflowTabBarItem-4bbd5830.js} +7 -4
  86. package/cjs/OverflowTabBarItem-4bbd5830.js.map +1 -0
  87. package/cjs/PRIVATE_MonthView.js +2 -3
  88. package/cjs/PRIVATE_MonthView.js.map +1 -1
  89. package/cjs/PRIVATE_MonthYearGridView.js +2 -3
  90. package/cjs/PRIVATE_MonthYearGridView.js.map +1 -1
  91. package/cjs/PRIVATE_StyledDatePickerButton.js +1 -2
  92. package/cjs/PRIVATE_StyledDatePickerButton.js.map +1 -1
  93. package/cjs/SegmentStyles.styles.css +12 -9
  94. package/cjs/SegmentStyles.styles2.css +9 -12
  95. package/cjs/{StyledDatePickerButton-cf4e4dc0.js → StyledDatePickerButton-becd2a7d.js} +2 -8
  96. package/cjs/StyledDatePickerButton-becd2a7d.js.map +1 -0
  97. package/cjs/StyledDatePickerButtonStyles.styles.css +17 -0
  98. package/cjs/{TabBarLinkItem-42785eb3.js → TabBarLinkItem-891a5f10.js} +2 -2
  99. package/cjs/{TabBarLinkItem-42785eb3.js.map → TabBarLinkItem-891a5f10.js.map} +1 -1
  100. package/cjs/Theme-redwood/theme.css +129 -129
  101. package/cjs/Theme-stable/theme.css +161 -161
  102. package/cjs/UNSAFE_CheckboxItem.js +117 -56
  103. package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
  104. package/cjs/UNSAFE_CheckboxSet.js +21 -50
  105. package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
  106. package/cjs/UNSAFE_ColorPalette.js +80 -80
  107. package/cjs/UNSAFE_ColorPicker.js +76 -76
  108. package/cjs/UNSAFE_DatePicker.js +4 -4
  109. package/cjs/UNSAFE_InputColor.js +12 -12
  110. package/cjs/UNSAFE_InputDatePicker.js +96 -96
  111. package/cjs/UNSAFE_NavigationList.js +12 -12
  112. package/cjs/UNSAFE_OverflowTabBar.js +3 -3
  113. package/cjs/UNSAFE_RichCheckboxSet.js +46 -42
  114. package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
  115. package/cjs/UNSAFE_RichSelectionItem.js +154 -91
  116. package/cjs/UNSAFE_RichSelectionItem.js.map +1 -1
  117. package/cjs/UNSAFE_TabBar.js +3 -3
  118. package/cjs/UNSAFE_TabBarCommon.js +5 -5
  119. package/cjs/UNSAFE_TabBarMixed.js +4 -4
  120. package/cjs/{YearsGridView-b56f7f42.js → YearsGridView-d0d4e8e1.js} +2 -2
  121. package/cjs/{YearsGridView-b56f7f42.js.map → YearsGridView-d0d4e8e1.js.map} +1 -1
  122. package/es/{BaseButton-41068c85.js → BaseButton-243d200f.js} +2 -2
  123. package/es/{BaseButton-41068c85.js.map → BaseButton-243d200f.js.map} +1 -1
  124. package/es/{BaseCardView-85b9a71e.js → BaseCardView-b3d8bae0.js} +10 -7
  125. package/es/{BaseCardView-85b9a71e.js.map → BaseCardView-b3d8bae0.js.map} +1 -1
  126. package/es/BaseDiagram-b5b22e53.js +7 -7
  127. package/es/BaseRichSelection-223d9830.js +9 -9
  128. package/es/BaseSelector-7cbc48bc.js +1 -1
  129. package/es/BaseSwatchView-2e1e6bd2.js +2 -2
  130. package/es/{Button-956f51c7.js → Button-a76ecfa8.js} +2 -2
  131. package/es/{Button-956f51c7.js.map → Button-a76ecfa8.js.map} +1 -1
  132. package/es/ButtonSet-b7464e9a.js +2 -2
  133. package/es/ButtonSetButton-8685c752.js +1 -1
  134. package/es/ButtonSetIconButton-c8ed85f9.js +4 -4
  135. package/es/{Center-71a03e65.js → Center-3860fe60.js} +2 -2
  136. package/es/{Center-71a03e65.js.map → Center-3860fe60.js.map} +1 -1
  137. package/es/Chart-b866a74c.js +10 -10
  138. package/es/CheckboxControl-c008372a.js +6 -6
  139. package/es/CheckboxRadioField-a387b3cb.js +6 -6
  140. package/es/CheckboxRadioLabelValueLayout-e3845f16.js +1 -1
  141. package/es/CheckboxSet-3aab5935.js +1 -1
  142. package/es/Chip-4efea02e.js +1 -1
  143. package/es/ClearIcon-f85ea340.js +1 -1
  144. package/es/CollapseIcon-84f6ba8e.js +1 -1
  145. package/es/Collapsible-2608ce3b.js +2 -2
  146. package/es/ColorPalette-950c6fc6.js +2 -2
  147. package/es/{ColorPicker-ae648c4c.js → ColorPicker-8c297849.js} +3 -3
  148. package/es/{ColorPicker-ae648c4c.js.map → ColorPicker-8c297849.js.map} +1 -1
  149. package/es/ColorSwatch-8339ee2f.js +4 -4
  150. package/es/{CompactLabelAssistance-e2fcfcab.js → CompactLabelAssistance-50ff3f7e.js} +6 -6
  151. package/es/{CompactLabelAssistance-e2fcfcab.js.map → CompactLabelAssistance-50ff3f7e.js.map} +1 -1
  152. package/es/CompactUserAssistance-6aa8894b.js +5 -5
  153. package/es/ComponentMessageContainer-d16c8b1f.js +4 -4
  154. package/es/{DatePicker-2ab05fbe.js → DatePicker-fa7d39a7.js} +8 -8
  155. package/es/{DatePicker-2ab05fbe.js.map → DatePicker-fa7d39a7.js.map} +1 -1
  156. package/es/DatePickerHeader-f8cf86bb.js +3 -3
  157. package/es/DiagramStyles.styles2.css +10 -16
  158. package/es/DiagramStyles.styles3.css +16 -10
  159. package/es/{Dialog-83368f52.js → Dialog-d1de5b06.js} +7 -7
  160. package/es/{Dialog-83368f52.js.map → Dialog-d1de5b06.js.map} +1 -1
  161. package/es/DirectionalCollapseArrowIcon-132761da.js +1 -1
  162. package/es/DirectionalExpandArrowIcon-5bc45cad.js +1 -1
  163. package/es/{Dropdown-019aba37.js → Dropdown-9d9813a9.js} +6 -6
  164. package/es/{Dropdown-019aba37.js.map → Dropdown-9d9813a9.js.map} +1 -1
  165. package/es/{EmbeddedIconButton-46434710.js → EmbeddedIconButton-9f0e56b7.js} +2 -2
  166. package/es/{EmbeddedIconButton-46434710.js.map → EmbeddedIconButton-9f0e56b7.js.map} +1 -1
  167. package/es/{EnvironmentProvider-6a0a8212.js → EnvironmentProvider-6cf8ed37.js} +3 -3
  168. package/es/{EnvironmentProvider-6a0a8212.js.map → EnvironmentProvider-6cf8ed37.js.map} +1 -1
  169. package/es/Expander-1347e769.js +1 -1
  170. package/es/{Flex-03129963.js → Flex-fc483125.js} +2 -2
  171. package/es/{Flex-03129963.js.map → Flex-fc483125.js.map} +1 -1
  172. package/es/{Floating-4a82db94.js → Floating-be4c0cb6.js} +4 -4
  173. package/es/{Floating-4a82db94.js.map → Floating-be4c0cb6.js.map} +1 -1
  174. package/es/{Grid-9e4b4f19.js → Grid-6f92d323.js} +2 -2
  175. package/es/{Grid-9e4b4f19.js.map → Grid-6f92d323.js.map} +1 -1
  176. package/es/GroupLoadingIndicator-19c6545a.js +1 -1
  177. package/es/{HighlightText-0205faef.js → HighlightText-dd484ffd.js} +2 -2
  178. package/es/{HighlightText-0205faef.js.map → HighlightText-dd484ffd.js.map} +1 -1
  179. package/es/Icon-4983d06e.js +3 -3
  180. package/es/IconButton-7f91481c.js +4 -4
  181. package/es/IconSwitchButton-05f1f602.js +4 -4
  182. package/es/IconToggleButton-808818f5.js +4 -4
  183. package/es/{IconUserAssistance-61978211.js → IconUserAssistance-6abc7837.js} +3 -3
  184. package/es/{IconUserAssistance-61978211.js.map → IconUserAssistance-6abc7837.js.map} +1 -1
  185. package/es/InlineHelp-9eaac91c.js +1 -1
  186. package/es/InlineUserAssistance-890293dd.js +5 -5
  187. package/es/InputDateMask-ec27aee7.js +7 -7
  188. package/es/Label-5d1ae8d7.js +8 -8
  189. package/es/LabelValueLayout-c6b9945a.js +1 -1
  190. package/es/{Layer-535577b5.js → Layer-6c27170e.js} +3 -3
  191. package/es/{Layer-535577b5.js.map → Layer-6c27170e.js.map} +1 -1
  192. package/es/{LayerHost-7931b424.js → LayerHost-3cf255a6.js} +2 -2
  193. package/es/{LayerHost-7931b424.js.map → LayerHost-3cf255a6.js.map} +1 -1
  194. package/es/{LayerManager-52a26c55.js → LayerManager-e30fbfd6.js} +2 -2
  195. package/es/{LayerManager-52a26c55.js.map → LayerManager-e30fbfd6.js.map} +1 -1
  196. package/es/Link-8503aab2.js +1 -1
  197. package/es/List-4636ba9b.js +5 -5
  198. package/es/{LiveRegion-cebac18d.js → LiveRegion-2e8830ae.js} +2 -2
  199. package/es/{LiveRegion-cebac18d.js.map → LiveRegion-2e8830ae.js.map} +1 -1
  200. package/es/{MaxLengthLiveRegion-8099fde5.js → MaxLengthLiveRegion-8f552ae2.js} +3 -3
  201. package/es/{MaxLengthLiveRegion-8099fde5.js.map → MaxLengthLiveRegion-8f552ae2.js.map} +1 -1
  202. package/es/Message-510c2db8.js +2 -2
  203. package/es/{MessageLayer-2a7fdec7.js → MessageLayer-1dbdc0b6.js} +6 -6
  204. package/es/{MessageLayer-2a7fdec7.js.map → MessageLayer-1dbdc0b6.js.map} +1 -1
  205. package/es/MessagesManager-47000438.js +3 -3
  206. package/es/Modal-c0f730b8.js +3 -3
  207. package/es/{MonthView-097171eb.js → MonthView-4e05e712.js} +5 -5
  208. package/es/{MonthView-097171eb.js.map → MonthView-4e05e712.js.map} +1 -1
  209. package/es/{NavigationListItem-dbd29973.js → NavigationListItem-340ab770.js} +23 -5
  210. package/es/{NavigationListItem-dbd29973.js.map → NavigationListItem-340ab770.js.map} +1 -1
  211. package/es/NavigationListLinkItem-e28fd846.js +5 -5
  212. package/es/NumberInputText-60be5757.js +6 -6
  213. package/es/{OverflowTabBarItem-6966fbc7.js → OverflowTabBarItem-aa0ce915.js} +12 -9
  214. package/es/OverflowTabBarItem-aa0ce915.js.map +1 -0
  215. package/es/PRIVATE_BaseCardView.js +23 -23
  216. package/es/PRIVATE_BaseDiagram.js +29 -29
  217. package/es/PRIVATE_BaseSelector.js +17 -17
  218. package/es/PRIVATE_BaseSwatchView.js +18 -18
  219. package/es/PRIVATE_Chart.js +34 -34
  220. package/es/PRIVATE_CheckboxControl.js +25 -25
  221. package/es/PRIVATE_CheckboxRadioField.js +27 -27
  222. package/es/PRIVATE_ClearIcon.js +18 -18
  223. package/es/PRIVATE_CollapsibleNavigationList.js +43 -43
  224. package/es/PRIVATE_DatePickerHeader.js +20 -20
  225. package/es/PRIVATE_DatePickerLayout.js +4 -4
  226. package/es/PRIVATE_EmbeddedIconButton.js +6 -6
  227. package/es/PRIVATE_Expander.js +19 -19
  228. package/es/PRIVATE_FormControls.js +21 -21
  229. package/es/PRIVATE_IconSwitchButton.js +17 -17
  230. package/es/PRIVATE_Icons/CheckboxCrossed.js +16 -16
  231. package/es/PRIVATE_Icons/CheckboxMixed.js +16 -16
  232. package/es/PRIVATE_Icons/CheckboxOff.js +16 -16
  233. package/es/PRIVATE_Icons/CheckboxOn.js +16 -16
  234. package/es/PRIVATE_Icons/DragV.js +16 -16
  235. package/es/PRIVATE_Icons/None.js +16 -16
  236. package/es/PRIVATE_List.js +21 -21
  237. package/es/PRIVATE_Message.js +20 -20
  238. package/es/PRIVATE_MessageLayer.js +12 -12
  239. package/es/PRIVATE_MonthView.js +8 -9
  240. package/es/PRIVATE_MonthView.js.map +1 -1
  241. package/es/PRIVATE_MonthYearGridView.js +8 -9
  242. package/es/PRIVATE_MonthYearGridView.js.map +1 -1
  243. package/es/PRIVATE_PlotArea.js +5 -5
  244. package/es/PRIVATE_RevealToggleIcon.js +18 -18
  245. package/es/PRIVATE_RichSelectionCommon.js +28 -28
  246. package/es/PRIVATE_SelectCommon.js +31 -31
  247. package/es/PRIVATE_StyledCard.js +3 -3
  248. package/es/PRIVATE_StyledCheckbox.js +16 -16
  249. package/es/PRIVATE_StyledDatePickerButton.js +1 -2
  250. package/es/PRIVATE_StyledDatePickerButton.js.map +1 -1
  251. package/es/PRIVATE_StyledSwitch.js +4 -4
  252. package/es/PRIVATE_SwatchFlexView.js +18 -18
  253. package/es/PRIVATE_Table.js +35 -35
  254. package/es/PRIVATE_TableDisplay.js +19 -19
  255. package/es/PRIVATE_TableList.js +30 -30
  256. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
  257. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
  258. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
  259. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
  260. package/es/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
  261. package/es/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +16 -16
  262. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
  263. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
  264. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
  265. package/es/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
  266. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
  267. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
  268. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
  269. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
  270. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
  271. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
  272. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
  273. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
  274. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
  275. package/es/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
  276. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
  277. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
  278. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
  279. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
  280. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
  281. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
  282. package/es/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
  283. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
  284. package/es/PRIVATE_ThemedIcons/None.js +16 -16
  285. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
  286. package/es/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
  287. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
  288. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
  289. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
  290. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
  291. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
  292. package/es/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
  293. package/es/PRIVATE_TimeComponent.js +19 -19
  294. package/es/PRIVATE_TruncatingLink.js +16 -16
  295. package/es/PRIVATE_VisOverview.js +16 -16
  296. package/es/PRIVATE_VisStatusMessage.js +5 -5
  297. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  298. package/es/{Popup-992b6c27.js → Popup-22d51095.js} +10 -10
  299. package/es/{Popup-992b6c27.js.map → Popup-22d51095.js.map} +1 -1
  300. package/es/ProgressButtonLabelLayout-69549cf9.js +3 -3
  301. package/es/{ProgressCircle-46084d0b.js → ProgressCircle-bce87dad.js} +2 -2
  302. package/es/{ProgressCircle-46084d0b.js.map → ProgressCircle-bce87dad.js.map} +1 -1
  303. package/es/RadioIconVariants.styles.css +3 -3
  304. package/es/RadioIconVariants.styles2.css +3 -3
  305. package/es/RadioItem-94909632.js +6 -6
  306. package/es/ReadonlyTextFieldInput-106ce959.js +1 -1
  307. package/es/{ReferenceLineArea-53129f72.js → ReferenceLineArea-cc72b070.js} +3 -3
  308. package/es/{ReferenceLineArea-53129f72.js.map → ReferenceLineArea-cc72b070.js.map} +1 -1
  309. package/es/RevealToggleIcon-2d622d8f.js +1 -1
  310. package/es/{SectionedContent-30e5bf98.js → SectionedContent-897e9c4e.js} +5 -5
  311. package/es/{SectionedContent-30e5bf98.js.map → SectionedContent-897e9c4e.js.map} +1 -1
  312. package/es/SegmentStyles.styles.css +9 -12
  313. package/es/SegmentStyles.styles2.css +12 -9
  314. package/es/SelectMenuGroupContext-aa1fe822.js +6 -6
  315. package/es/SelectMobileFieldInput-0a7c968c.js +8 -8
  316. package/es/{SelectorAll-de7ba2e1.js → SelectorAll-3d39196b.js} +5 -5
  317. package/es/{SelectorAll-de7ba2e1.js.map → SelectorAll-3d39196b.js.map} +1 -1
  318. package/es/Sheet-f9f8a4a4.js +2 -2
  319. package/es/SortControl-1044fcd9.js +3 -3
  320. package/es/SplitMenuButtonTheme.styles.css +4 -4
  321. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  322. package/es/StyledCard-77623731.js +1 -1
  323. package/es/{StyledDatePickerButton-f3971567.js → StyledDatePickerButton-78f2f6e8.js} +2 -8
  324. package/es/StyledDatePickerButton-78f2f6e8.js.map +1 -0
  325. package/es/StyledDatePickerButtonStyles.styles.css +17 -0
  326. package/es/{StyledLabelValueLayout-bb05f474.js → StyledLabelValueLayout-bddfb884.js} +2 -2
  327. package/es/{StyledLabelValueLayout-bb05f474.js.map → StyledLabelValueLayout-bddfb884.js.map} +1 -1
  328. package/es/StyledSwitch-dbf29d95.js +2 -2
  329. package/es/StyledTextField-7605d76a.js +5 -5
  330. package/es/Submenu-cbd77756.js +1 -1
  331. package/es/{TabBar-10488830.js → TabBar-67ca442c.js} +9 -7
  332. package/es/{TabBar-10488830.js.map → TabBar-67ca442c.js.map} +1 -1
  333. package/es/TabBarContextMenu-c3326d67.js +2 -2
  334. package/es/TabBarLayout-9b67d1b6.js +1 -1
  335. package/es/{TabBarLinkItem-a9c1072b.js → TabBarLinkItem-e7be54fa.js} +2 -2
  336. package/es/{TabBarLinkItem-a9c1072b.js.map → TabBarLinkItem-e7be54fa.js.map} +1 -1
  337. package/es/Table-2f197c6a.js +11 -11
  338. package/es/TableColGroup-d74bd4f5.js +1 -1
  339. package/es/TextField-7884fcd7.js +3 -3
  340. package/es/Theme-redwood/theme.css +396 -396
  341. package/es/Theme-stable/theme.css +467 -467
  342. package/es/TimeComponentCanvas2D-cfb0066d.js +6 -6
  343. package/es/ToggleButton-bb69cf10.js +1 -1
  344. package/es/TrainVariants.styles.css +6 -6
  345. package/es/TrainVariants.styles2.css +6 -6
  346. package/es/TruncatingLink-298c6343.js +4 -4
  347. package/es/TruncatingText-1bf00351.js +1 -1
  348. package/es/UNSAFE_AccordionItemMultiple.js +18 -18
  349. package/es/UNSAFE_AccordionItemSingle.js +18 -18
  350. package/es/UNSAFE_ActionCard.js +2 -2
  351. package/es/UNSAFE_BarChart.js +35 -35
  352. package/es/UNSAFE_BareButton.js +2 -2
  353. package/es/UNSAFE_BaseButton.js +5 -5
  354. package/es/UNSAFE_Button.js +6 -6
  355. package/es/UNSAFE_ButtonSet.js +4 -4
  356. package/es/UNSAFE_ButtonSetButton.js +5 -5
  357. package/es/UNSAFE_ButtonSetIconButton.js +17 -17
  358. package/es/UNSAFE_ButtonSetItem.js +18 -18
  359. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  360. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  361. package/es/UNSAFE_Card.js +3 -3
  362. package/es/UNSAFE_CardFlexView.js +23 -23
  363. package/es/UNSAFE_CardGridView.js +23 -23
  364. package/es/UNSAFE_Center.js +5 -5
  365. package/es/UNSAFE_Checkbox.js +25 -25
  366. package/es/UNSAFE_CheckboxItem.js +27 -27
  367. package/es/UNSAFE_CheckboxRadioField.js +4 -4
  368. package/es/UNSAFE_CheckboxSet.js +26 -26
  369. package/es/UNSAFE_Chip.js +2 -2
  370. package/es/UNSAFE_Collapsible.js +18 -18
  371. package/es/UNSAFE_ColorPalette.js +19 -19
  372. package/es/UNSAFE_ColorPicker.js +21 -21
  373. package/es/UNSAFE_ColorSwatch.js +17 -17
  374. package/es/UNSAFE_ComboChart.js +35 -35
  375. package/es/UNSAFE_ComponentMessage.js +20 -20
  376. package/es/UNSAFE_ContainerDiagram/themes/DiagramStyles.css.js +1 -1
  377. package/es/UNSAFE_ContainerDiagram.js +29 -29
  378. package/es/UNSAFE_ConveyorBelt.js +18 -18
  379. package/es/UNSAFE_DatePicker.js +28 -28
  380. package/es/UNSAFE_Diagram/themes/DiagramStyles.css.js +1 -1
  381. package/es/UNSAFE_Diagram.js +29 -29
  382. package/es/UNSAFE_Dialog.js +22 -22
  383. package/es/UNSAFE_DragHandle.js +17 -17
  384. package/es/UNSAFE_DrawerLayout.js +12 -12
  385. package/es/UNSAFE_DrawerPopup.js +11 -11
  386. package/es/UNSAFE_Dropdown.js +15 -15
  387. package/es/UNSAFE_Environment.js +4 -4
  388. package/es/UNSAFE_ExpandableList.js +25 -25
  389. package/es/UNSAFE_FilePicker.js +4 -4
  390. package/es/UNSAFE_FlatTreeView.js +39 -39
  391. package/es/UNSAFE_Flex.js +4 -4
  392. package/es/UNSAFE_Floating.js +11 -11
  393. package/es/UNSAFE_FormLayout.js +2 -2
  394. package/es/UNSAFE_Gantt.js +23 -23
  395. package/es/UNSAFE_Grid.js +4 -4
  396. package/es/UNSAFE_HighlightText.js +4 -4
  397. package/es/UNSAFE_Icon.js +16 -16
  398. package/es/UNSAFE_IconButton.js +17 -17
  399. package/es/UNSAFE_IconMenuButton.js +25 -25
  400. package/es/UNSAFE_IconProgressButton.js +21 -21
  401. package/es/UNSAFE_IconToggleButton.js +17 -17
  402. package/es/UNSAFE_Indexer.js +19 -19
  403. package/es/UNSAFE_InlineSelectSingle.js +32 -32
  404. package/es/UNSAFE_InputColor.js +32 -32
  405. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  406. package/es/UNSAFE_InputDateMask.js +27 -27
  407. package/es/UNSAFE_InputDatePicker.js +38 -38
  408. package/es/UNSAFE_InputPassword.js +26 -26
  409. package/es/UNSAFE_InputSensitiveText.js +27 -27
  410. package/es/UNSAFE_InputText.js +28 -28
  411. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  412. package/es/UNSAFE_InputTimeMask.js +27 -27
  413. package/es/UNSAFE_Label.js +25 -25
  414. package/es/UNSAFE_LabelValueLayout.js +4 -4
  415. package/es/UNSAFE_LabelledLink.js +27 -27
  416. package/es/UNSAFE_Layer.js +8 -8
  417. package/es/UNSAFE_Legend.js +27 -27
  418. package/es/UNSAFE_LineAreaChart.js +35 -35
  419. package/es/UNSAFE_Link.js +2 -2
  420. package/es/UNSAFE_ListItemLayout.js +4 -4
  421. package/es/UNSAFE_ListView.js +74 -74
  422. package/es/UNSAFE_LiveRegion.js +4 -4
  423. package/es/UNSAFE_Menu.js +26 -26
  424. package/es/UNSAFE_MenuButton.js +25 -25
  425. package/es/UNSAFE_MessageBanner.js +20 -20
  426. package/es/UNSAFE_MessageToast.js +22 -22
  427. package/es/UNSAFE_MeterBar.js +16 -16
  428. package/es/UNSAFE_MeterCircle.js +17 -17
  429. package/es/UNSAFE_Modal.js +8 -8
  430. package/es/UNSAFE_NavigationList.js +40 -40
  431. package/es/UNSAFE_NavigationListCommon.js +20 -20
  432. package/es/UNSAFE_NumberInputText.js +28 -28
  433. package/es/UNSAFE_OverflowTabBar.js +40 -40
  434. package/es/UNSAFE_PictoChart.js +25 -25
  435. package/es/UNSAFE_PieChart.js +26 -26
  436. package/es/UNSAFE_Popup.js +18 -18
  437. package/es/UNSAFE_ProgressBar.js +4 -4
  438. package/es/UNSAFE_ProgressButton.js +21 -21
  439. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  440. package/es/UNSAFE_ProgressCircle.js +4 -4
  441. package/es/UNSAFE_RadioItem/themes/redwood/RadioIconTheme.js +1 -1
  442. package/es/UNSAFE_RadioItem/themes/redwood/RadioIconVariants.css.js +1 -1
  443. package/es/UNSAFE_RadioItem/themes/stable/RadioIconTheme.js +1 -1
  444. package/es/UNSAFE_RadioItem/themes/stable/RadioIconVariants.css.js +1 -1
  445. package/es/UNSAFE_RadioItem.js +26 -26
  446. package/es/UNSAFE_RadioSet.js +27 -27
  447. package/es/UNSAFE_RatingGauge.js +18 -18
  448. package/es/UNSAFE_ReorderableTabBar.js +39 -39
  449. package/es/UNSAFE_RichCheckboxSet.js +28 -28
  450. package/es/UNSAFE_RichRadioSet.js +29 -29
  451. package/es/UNSAFE_RichSelectionItem.js +31 -31
  452. package/es/UNSAFE_ScatterChart.js +35 -35
  453. package/es/UNSAFE_SectionalLegend.js +27 -27
  454. package/es/UNSAFE_SelectMultiple.js +35 -35
  455. package/es/UNSAFE_SelectSingle.js +34 -34
  456. package/es/UNSAFE_SelectionCard.js +3 -3
  457. package/es/UNSAFE_Selector.js +17 -17
  458. package/es/UNSAFE_SelectorAll.js +19 -19
  459. package/es/UNSAFE_Sheet.js +11 -11
  460. package/es/UNSAFE_SortControl.js +20 -20
  461. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  462. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  463. package/es/UNSAFE_SplitMenuButton.js +26 -26
  464. package/es/UNSAFE_Switch.js +26 -26
  465. package/es/UNSAFE_TabBar.js +41 -41
  466. package/es/UNSAFE_TabBarCommon.js +33 -33
  467. package/es/UNSAFE_TabBarMixed.js +40 -40
  468. package/es/UNSAFE_TableView.js +35 -35
  469. package/es/UNSAFE_TagCloud.js +26 -26
  470. package/es/UNSAFE_TextArea.js +237 -117
  471. package/es/UNSAFE_TextArea.js.map +1 -1
  472. package/es/UNSAFE_TextAreaAutosize.js +28 -28
  473. package/es/UNSAFE_TextField.js +20 -20
  474. package/es/UNSAFE_ToggleButton.js +5 -5
  475. package/es/UNSAFE_Toolbar.js +4 -4
  476. package/es/UNSAFE_Train/themes/redwood/TrainTheme.js +1 -1
  477. package/es/UNSAFE_Train/themes/redwood/TrainVariants.css.js +1 -1
  478. package/es/UNSAFE_Train/themes/stable/TrainTheme.js +1 -1
  479. package/es/UNSAFE_Train/themes/stable/TrainVariants.css.js +1 -1
  480. package/es/UNSAFE_Train.js +18 -18
  481. package/es/UNSAFE_TruncatingBadge.js +17 -17
  482. package/es/UNSAFE_TruncatingText.js +17 -17
  483. package/es/UNSAFE_UserAssistance.js +26 -26
  484. package/es/UNSAFE_View.js +7 -7
  485. package/es/UNSAFE_VirtualizedListView.js +21 -21
  486. package/es/UNSAFE_VisInvalidDataMessage.js +6 -6
  487. package/es/UNSAFE_VisNoDataMessage.js +6 -6
  488. package/es/UNSAFE_VisProgressiveLoader.js +5 -5
  489. package/es/UNSAFE_WindowOverlay.js +4 -4
  490. package/es/{View-5bdd9b3c.js → View-818f2f31.js} +5 -5
  491. package/es/{View-5bdd9b3c.js.map → View-818f2f31.js.map} +1 -1
  492. package/es/{VisStatusMessage-e2d629bb.js → VisStatusMessage-09c532e3.js} +2 -2
  493. package/es/{VisStatusMessage-e2d629bb.js.map → VisStatusMessage-09c532e3.js.map} +1 -1
  494. package/es/{VisTabularDatatip-85b00c1b.js → VisTabularDatatip-f45069f1.js} +2 -2
  495. package/es/{VisTabularDatatip-85b00c1b.js.map → VisTabularDatatip-f45069f1.js.map} +1 -1
  496. package/es/{WindowOverlay-7264c44a.js → WindowOverlay-467c2d12.js} +2 -2
  497. package/es/{WindowOverlay-7264c44a.js.map → WindowOverlay-467c2d12.js.map} +1 -1
  498. package/es/{YearsGridView-cac4710a.js → YearsGridView-5286a756.js} +5 -5
  499. package/es/{YearsGridView-cac4710a.js.map → YearsGridView-5286a756.js.map} +1 -1
  500. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  501. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  502. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  503. package/es/hooks/PRIVATE_useChartContextMenu.js +23 -23
  504. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  505. package/es/hooks/PRIVATE_useChartEvents.js +19 -19
  506. package/es/hooks/PRIVATE_useChartMarquee.js +19 -19
  507. package/es/hooks/PRIVATE_useCollectionFocusRing.js +17 -17
  508. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  509. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  510. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  511. package/es/hooks/PRIVATE_useDetectHorizontalOverflow.js +16 -16
  512. package/es/hooks/PRIVATE_useFloating.js +4 -4
  513. package/es/hooks/PRIVATE_useItemAction.js +17 -17
  514. package/es/hooks/PRIVATE_useListCommon.js +19 -19
  515. package/es/hooks/PRIVATE_useOutsideMousedown.js +9 -9
  516. package/es/hooks/PRIVATE_useRadioFocusManager.js +4 -4
  517. package/es/hooks/PRIVATE_useReorderable.js +19 -19
  518. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  519. package/es/hooks/PRIVATE_useSelection.js +4 -4
  520. package/es/hooks/PRIVATE_useTabBar.js +26 -26
  521. package/es/hooks/PRIVATE_useTabbableModeSet.js +17 -17
  522. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +17 -17
  523. package/es/hooks/PRIVATE_useVisContextMenu.js +23 -23
  524. package/es/hooks/PRIVATE_useVisDragModeControls.js +19 -19
  525. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  526. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  527. package/es/hooks/PRIVATE_useVisSelection.js +15 -15
  528. package/es/hooks/UNSAFE_useBareButton.js +2 -2
  529. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  530. package/es/hooks/UNSAFE_useCurrentBgColor.js +2 -2
  531. package/es/hooks/UNSAFE_useDensity.js +3 -3
  532. package/es/hooks/UNSAFE_useHiddenTestMethod.js +3 -3
  533. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  534. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  535. package/es/hooks/UNSAFE_useScale.js +3 -3
  536. package/es/hooks/UNSAFE_useTestId.js +3 -3
  537. package/es/hooks/UNSAFE_useTheme.js +3 -3
  538. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  539. package/es/hooks/UNSAFE_useTooltip.js +17 -17
  540. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  541. package/es/hooks/UNSAFE_useUser.js +3 -3
  542. package/es/{popupUtils-51366a29.js → popupUtils-7774330e.js} +2 -2
  543. package/es/{popupUtils-51366a29.js.map → popupUtils-7774330e.js.map} +1 -1
  544. package/es/{tooltipUtils-af0abd38.js → tooltipUtils-90fb656f.js} +5 -5
  545. package/es/{tooltipUtils-af0abd38.js.map → tooltipUtils-90fb656f.js.map} +1 -1
  546. package/es/useBareButton-ff4bd21e.js +1 -1
  547. package/es/useCellNavigation-0565b6dd.js +1 -1
  548. package/es/useChartContextMenu-5de82cd7.js +2 -2
  549. package/es/{useChartDatatip-8dd22b71.js → useChartDatatip-cba78e0f.js} +4 -4
  550. package/es/{useChartDatatip-8dd22b71.js.map → useChartDatatip-cba78e0f.js.map} +1 -1
  551. package/es/{useColorScheme-c4f6caab.js → useColorScheme-67245285.js} +2 -2
  552. package/es/{useColorScheme-c4f6caab.js.map → useColorScheme-67245285.js.map} +1 -1
  553. package/es/useContextMenu-730d6c12.js +2 -2
  554. package/es/{useCssVars-bc2527ac.js → useCssVars-048a52d8.js} +5 -5
  555. package/es/{useCssVars-bc2527ac.js.map → useCssVars-048a52d8.js.map} +1 -1
  556. package/es/{useCurrentKey-5f865bbd.js → useCurrentKey-38e5f097.js} +2 -2
  557. package/es/{useCurrentKey-5f865bbd.js.map → useCurrentKey-38e5f097.js.map} +1 -1
  558. package/es/{useDatatip-4895a07a.js → useDatatip-ef5c47a7.js} +4 -4
  559. package/es/{useDatatip-4895a07a.js.map → useDatatip-ef5c47a7.js.map} +1 -1
  560. package/es/{useDensity-1acb0153.js → useDensity-969273f3.js} +2 -2
  561. package/es/{useDensity-1acb0153.js.map → useDensity-969273f3.js.map} +1 -1
  562. package/es/useDisplayValue-5bbf2830.js +5 -5
  563. package/es/{useExpandCollapse-5739cfd2.js → useExpandCollapse-51f9bb4b.js} +2 -2
  564. package/es/{useExpandCollapse-5739cfd2.js.map → useExpandCollapse-51f9bb4b.js.map} +1 -1
  565. package/es/{useFloating-b9d680f7.js → useFloating-c74a7f54.js} +2 -2
  566. package/es/{useFloating-b9d680f7.js.map → useFloating-c74a7f54.js.map} +1 -1
  567. package/es/{useHiddenTestMethod-f3f25093.js → useHiddenTestMethod-ec7b3989.js} +2 -2
  568. package/es/{useHiddenTestMethod-f3f25093.js.map → useHiddenTestMethod-ec7b3989.js.map} +1 -1
  569. package/es/{useKeyboardEvents-9aae7ea3.js → useKeyboardEvents-a1495728.js} +2 -2
  570. package/es/{useKeyboardEvents-9aae7ea3.js.map → useKeyboardEvents-a1495728.js.map} +1 -1
  571. package/es/useLegendContextMenu-a678b26f.js +4 -4
  572. package/es/{useMeterDatatip-538a4d53.js → useMeterDatatip-f61ca3e0.js} +3 -3
  573. package/es/{useMeterDatatip-538a4d53.js.map → useMeterDatatip-f61ca3e0.js.map} +1 -1
  574. package/es/useNavigation-b257c33a.js +1 -1
  575. package/es/{useOutsideClick-b777a43e.js → useOutsideClick-01f3d3e1.js} +2 -2
  576. package/es/{useOutsideClick-b777a43e.js.map → useOutsideClick-01f3d3e1.js.map} +1 -1
  577. package/es/{useOutsideMousedown-c45c22c0.js → useOutsideMousedown-e0866d58.js} +2 -2
  578. package/es/{useOutsideMousedown-c45c22c0.js.map → useOutsideMousedown-e0866d58.js.map} +1 -1
  579. package/es/{usePopupAnimation-96d2bc83.js → usePopupAnimation-7c5db425.js} +2 -2
  580. package/es/{usePopupAnimation-96d2bc83.js.map → usePopupAnimation-7c5db425.js.map} +1 -1
  581. package/es/{usePrefixSuffix-f981b65f.js → usePrefixSuffix-95fc00fd.js} +2 -2
  582. package/es/{usePrefixSuffix-f981b65f.js.map → usePrefixSuffix-95fc00fd.js.map} +1 -1
  583. package/es/{useRadioFocusManager-36eb283e.js → useRadioFocusManager-d9eecfb4.js} +2 -2
  584. package/es/{useRadioFocusManager-36eb283e.js.map → useRadioFocusManager-d9eecfb4.js.map} +1 -1
  585. package/es/{useReorderableItem-857636b7.js → useReorderableItem-06bd7a7b.js} +3 -3
  586. package/es/{useReorderableItem-857636b7.js.map → useReorderableItem-06bd7a7b.js.map} +1 -1
  587. package/es/{useRovingTabIndexContainer-5992e107.js → useRovingTabIndexContainer-c0356f5d.js} +2 -2
  588. package/es/{useRovingTabIndexContainer-5992e107.js.map → useRovingTabIndexContainer-c0356f5d.js.map} +1 -1
  589. package/es/{useScale-434ad939.js → useScale-93490e54.js} +2 -2
  590. package/es/{useScale-434ad939.js.map → useScale-93490e54.js.map} +1 -1
  591. package/es/useSelectCommon-309d0f07.js +5 -5
  592. package/es/{useSelectDrill-f669e729.js → useSelectDrill-2f855daa.js} +3 -3
  593. package/es/{useSelectDrill-f669e729.js.map → useSelectDrill-2f855daa.js.map} +1 -1
  594. package/es/{useSelection-82bec039.js → useSelection-10ed8060.js} +6 -6
  595. package/es/{useSelection-82bec039.js.map → useSelection-10ed8060.js.map} +1 -1
  596. package/es/{useSelection-65134722.js → useSelection-d6fefa3d.js} +2 -2
  597. package/es/{useSelection-65134722.js.map → useSelection-d6fefa3d.js.map} +1 -1
  598. package/es/useTabBar-c5558e77.js +3 -3
  599. package/es/{useTestId-f24ac480.js → useTestId-ab1bede6.js} +2 -2
  600. package/es/{useTestId-f24ac480.js.map → useTestId-ab1bede6.js.map} +1 -1
  601. package/es/useTextAreaAltEnter-ac460f4c.js +61 -0
  602. package/{amd/useTextAreaAltEnter-32272da6.js.map → es/useTextAreaAltEnter-ac460f4c.js.map} +1 -1
  603. package/es/{useTheme-0e7497db.js → useTheme-c2cfbc29.js} +2 -2
  604. package/es/{useTheme-0e7497db.js.map → useTheme-c2cfbc29.js.map} +1 -1
  605. package/es/{useThemeInterpolations-e144e8ec.js → useThemeInterpolations-5f358139.js} +5 -5
  606. package/es/{useThemeInterpolations-e144e8ec.js.map → useThemeInterpolations-5f358139.js.map} +1 -1
  607. package/es/{useTooltip-94af94d4.js → useTooltip-ab739df0.js} +2 -2
  608. package/es/{useTooltip-94af94d4.js.map → useTooltip-ab739df0.js.map} +1 -1
  609. package/es/{useTooltipControlled-f2cfa454.js → useTooltipControlled-b7f30aee.js} +5 -5
  610. package/es/{useTooltipControlled-f2cfa454.js.map → useTooltipControlled-b7f30aee.js.map} +1 -1
  611. package/es/{useTooltipOnTruncation-94282e75.js → useTooltipOnTruncation-31afc3f2.js} +4 -4
  612. package/es/{useTooltipOnTruncation-94282e75.js.map → useTooltipOnTruncation-31afc3f2.js.map} +1 -1
  613. package/es/{useTranslationBundle-4822502f.js → useTranslationBundle-bc6e0896.js} +2 -2
  614. package/es/{useTranslationBundle-4822502f.js.map → useTranslationBundle-bc6e0896.js.map} +1 -1
  615. package/es/{useUser-06d34d19.js → useUser-e543b73c.js} +2 -2
  616. package/es/{useUser-06d34d19.js.map → useUser-e543b73c.js.map} +1 -1
  617. package/es/useVisDragModeControls-af64848c.js +1 -1
  618. package/es/{useVisEvents-256dee29.js → useVisEvents-0edc925f.js} +2 -2
  619. package/es/{useVisEvents-256dee29.js.map → useVisEvents-0edc925f.js.map} +1 -1
  620. package/es/utils/PRIVATE_collectionUtils.js +17 -17
  621. package/es/utils/PRIVATE_tabBarUtils.js +17 -17
  622. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  623. package/es/utils/PRIVATE_visTestUtils.js +4 -4
  624. package/es/utils/UNSAFE_popupUtils.js +8 -8
  625. package/es/{withDirectionIcon-a8d84a3d.js → withDirectionIcon-b725a6d7.js} +2 -2
  626. package/es/{withDirectionIcon-a8d84a3d.js.map → withDirectionIcon-b725a6d7.js.map} +1 -1
  627. package/es/withThemeProps-dbd4fedf.js +2 -2
  628. package/package.json +2 -2
  629. package/amd/BaseCardView-b8119561.js +0 -2
  630. package/amd/BaseTabBarItem-03c91d3f.js +0 -2
  631. package/amd/BaseTabBarItem-03c91d3f.js.map +0 -1
  632. package/amd/CardFlexView-aa2f3de8.js +0 -2
  633. package/amd/CardGridView-85f90c75.js +0 -2
  634. package/amd/ColorPicker-141fa49d.js +0 -2
  635. package/amd/ListView-2678b2af.js +0 -2
  636. package/amd/ReorderableTabBar-46683bcb.js +0 -2
  637. package/amd/StyledDatePickerButton-b664f4f0.js +0 -2
  638. package/amd/StyledDatePickerButton-b664f4f0.js.map +0 -1
  639. package/amd/TabBar-fcebb560.js +0 -2
  640. package/amd/TabBarItem-224bc6b3.js +0 -2
  641. package/amd/TabBarLinkItem-57587dbd.js +0 -2
  642. package/amd/TabBarMixed-8cc4b4ed.js +0 -2
  643. package/amd/TextArea-4a3b8b56.js +0 -2
  644. package/amd/TextArea-4a3b8b56.js.map +0 -1
  645. package/amd/TextAreaAutosize-3a13ebb2.js +0 -2
  646. package/amd/useTextAreaAltEnter-32272da6.js +0 -2
  647. package/cjs/CheckboxSetContext-c62db26d.js +0 -12
  648. package/cjs/CheckboxSetContext-c62db26d.js.map +0 -1
  649. package/cjs/OverflowTabBarItem-2c967a89.js.map +0 -1
  650. package/cjs/StyledDatePickerButton-cf4e4dc0.js.map +0 -1
  651. package/es/OverflowTabBarItem-6966fbc7.js.map +0 -1
  652. package/es/StyledDatePickerButton-f3971567.js.map +0 -1
  653. package/es/TextArea-93ce78a7.js +0 -225
@@ -8,23 +8,23 @@ import './FormContext-55fb8000.js';
8
8
  import { u as useFormContext } from './useFormContext-bb9dc478.js';
9
9
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
10
10
  import './TabbableModeContext-7d8ad946.js';
11
- import './LayerHost-7931b424.js';
11
+ import './LayerHost-3cf255a6.js';
12
12
  import 'preact/compat';
13
13
  import './UserAssistanceStyles.styles.css';
14
14
  import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
15
15
  import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
16
- import './Flex-03129963.js';
16
+ import './Flex-fc483125.js';
17
17
  import './MessageBannerStyles.styles.css';
18
18
  import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
19
19
  import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
20
20
  import 'preact';
21
- import { u as useTooltip } from './useTooltip-94af94d4.js';
22
- import { u as useScale } from './useScale-434ad939.js';
23
- import { u as useDensity } from './useDensity-1acb0153.js';
21
+ import { u as useTooltip } from './useTooltip-ab739df0.js';
22
+ import { u as useScale } from './useScale-93490e54.js';
23
+ import { u as useDensity } from './useDensity-969273f3.js';
24
24
  import './TooltipContentStyles.styles.css';
25
25
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
26
26
  import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
27
- import './tooltipUtils-af0abd38.js';
27
+ import './tooltipUtils-90fb656f.js';
28
28
  import './IconStyle.styles.css';
29
29
  import { g as getClientHints } from './clientHints-a42b510c.js';
30
30
  import './IconButton-7f91481c.js';
@@ -38,9 +38,9 @@ import './ComponentMessageStyles.styles.css';
38
38
  import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.styles.css';
39
39
  import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css.js';
40
40
  import './InputGroupContext-20bdbd6e.js';
41
- import './Popup-992b6c27.js';
41
+ import './Popup-22d51095.js';
42
42
  import './UNSAFE_Separator/themes/SeparatorStyles.css.js';
43
- import { C as CompactLabelAssistance } from './CompactLabelAssistance-e2fcfcab.js';
43
+ import { C as CompactLabelAssistance } from './CompactLabelAssistance-50ff3f7e.js';
44
44
  import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.styles.css';
45
45
  import './UNSAFE_Popup/themes/redwood/PopupVariants.css.js';
46
46
  import { d as detectTruncation } from './truncationUtils-e37f95ee.js';
@@ -5,7 +5,7 @@ import './FormContext-55fb8000.js';
5
5
  import { u as useFormContext } from './useFormContext-bb9dc478.js';
6
6
  import './FormFieldContext-47ca0c20.js';
7
7
  import { u as useFormFieldContext } from './useFormFieldContext-daf7a676.js';
8
- import { l as labelSlotStyles, a as labelInnerStyles, S as StyledLabelValueLayout } from './StyledLabelValueLayout-bb05f474.js';
8
+ import { l as labelSlotStyles, a as labelInnerStyles, S as StyledLabelValueLayout } from './StyledLabelValueLayout-bddfb884.js';
9
9
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
10
10
  import { TextFieldRedwoodTheme } from './UNSAFE_TextField/themes/redwood/TextFieldTheme.js';
11
11
  import { LabelRedwoodTheme } from './UNSAFE_Label/themes/redwood/LabelTheme.js';
@@ -1,10 +1,10 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx } from 'preact/jsx-runtime';
3
3
  import { useState, useRef, useContext, useLayoutEffect, useCallback, useMemo, createPortal } from 'preact/compat';
4
- import { L as LayerContext } from './LayerHost-7931b424.js';
4
+ import { L as LayerContext } from './LayerHost-3cf255a6.js';
5
5
  import { c as classNames } from './classNames-4e12b00d.js';
6
6
  import { styles, baseStyle } from './UNSAFE_Layer/themes/LayerStyles.css.js';
7
- import { u as useThemeInterpolations, t as toUnsafeDomElement } from './useThemeInterpolations-e144e8ec.js';
7
+ import { u as useThemeInterpolations, t as toUnsafeDomElement } from './useThemeInterpolations-5f358139.js';
8
8
 
9
9
  const LOGICAL_PARENT = Symbol.for('oj-logical-parent');
10
10
  const Layer = ({ children, logicalParentRef, isModal = false, priority = 'popup', level = 'nearestAncestor' }) => {
@@ -88,4 +88,4 @@ const Layer = ({ children, logicalParentRef, isModal = false, priority = 'popup'
88
88
  };
89
89
 
90
90
  export { Layer as L, LOGICAL_PARENT as a };
91
- //# sourceMappingURL=Layer-535577b5.js.map
91
+ //# sourceMappingURL=Layer-6c27170e.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Layer-535577b5.js","sources":["../../src/UNSAFE_Layer/Layer.tsx"],"sourcesContent":["import { VNode, type RefObject } from 'preact';\nimport {\n createPortal,\n useContext,\n useLayoutEffect,\n useState,\n useRef,\n useMemo,\n useCallback\n} from 'preact/compat';\nimport { LayerContext, LayerContextProps, LayerLevel, LayerPriority } from './LayerContext';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { baseStyle, styles } from './themes/LayerStyles.css';\nimport { useThemeInterpolations } from '../hooks/UNSAFE_useThemeInterpolations/useThemeInterpolations';\nimport { toUnsafeDomElement } from '#utils/PRIVATE_unsafeDomRefUtils/unsafeDomRefUtils';\nimport { UnsafeDomHandle } from '#utils/UNSAFE_unsafeDomAccess';\n\nexport const LOGICAL_PARENT = Symbol.for('oj-logical-parent');\n\ntype Props = {\n /**\n * The content to be re-parented using Portal\n */\n children: VNode;\n /**\n * Logical parent of the re-parented content. Typically the 'launcher' associated\n * with the popup.\n */\n logicalParentRef?: RefObject<Element> | RefObject<UnsafeDomHandle<Element>> | null;\n /**\n * Determines if this layer contains a Modal.\n */\n isModal?: boolean;\n /**\n * Determines Layer's stacking context. Components that always need to render on top of other popup\n * elements (such as Messages) should use respective priority value. The default priority level is 'popup'.\n */\n priority?: LayerPriority;\n /**\n * Determines Layer's nesting context. By default, new layers will render in the context of a parent Layer,\n * if it exists (nearestAncestor)). Some popup components (such as Dialog and Message) may need to set up\n * a new nesting context as(topLevel).\n */\n level?: LayerLevel;\n};\n\nexport type LayerElement = HTMLElement & {\n [LOGICAL_PARENT]?: Element | null;\n};\n\nconst Layer = ({\n children,\n logicalParentRef,\n isModal = false,\n priority = 'popup',\n level = 'nearestAncestor'\n}: Props) => {\n const [layerContainer, _setLayerContainer] = useState<Element | null>(null);\n const layerContainerRef = useRef<Element | null>(null);\n\n const context = useContext(LayerContext);\n\n const setLayerContainer = (elem: Element | null) => {\n layerContainerRef.current = elem;\n _setLayerContainer(elem);\n };\n\n // because the children are being rendered into a portal that is out of the flow of parent dom,\n // we need to specify the colorScheme and scale class names here to pick up the correct CSS styles.\n const themeClasses = useThemeInterpolations(logicalParentRef);\n\n let priorityStyle = styles.popupPriorityStyle;\n\n switch (priority) {\n case 'dialog': {\n priorityStyle = styles.dialogPriorityStyle;\n break;\n }\n case 'messages': {\n priorityStyle = styles.messagesPriorityStyle;\n break;\n }\n case 'tooltip': {\n priorityStyle = styles.tooltipPriorityStyle;\n break;\n }\n default: {\n priorityStyle = styles.popupPriorityStyle;\n break;\n }\n }\n\n const classes = classNames([themeClasses, baseStyle, priorityStyle]);\n\n // Really need useLayoutEffect instead of useEffect here. Otherwise the re-parented\n // content does not get re-rendered with valid ref's\n useLayoutEffect(() => {\n const host =\n level === 'topLevel'\n ? context.getRootLayerHost?.(priority)\n : context.getLayerHost?.(priority);\n\n if (!host) return;\n const doc = host.ownerDocument ?? document;\n const layer: LayerElement = doc.createElement('div');\n\n layer.setAttribute('data-oj-layer', isModal ? 'modal' : 'modeless');\n\n if (logicalParentRef) {\n layer[LOGICAL_PARENT] = toUnsafeDomElement(logicalParentRef);\n }\n host.appendChild(layer);\n setLayerContainer(layer);\n\n return () => {\n if (host && layer && host.contains(layer)) {\n delete layer[LOGICAL_PARENT];\n host.removeChild(layer);\n }\n if (context.onLayerUnmount) {\n context.onLayerUnmount(layer);\n }\n setLayerContainer(null);\n };\n }, [logicalParentRef, context, level, priority, isModal]);\n\n // add the colorScheme and scale classes if there is a layerContainer\n if (layerContainer) {\n // use the theme interpolations to set the appropriate style classes for colorScheme and scale\n layerContainer.className = classes;\n }\n\n const getLayerHost = useCallback(() => {\n return layerContainer;\n }, [layerContainer]);\n\n const newLayerContext = useMemo(() => {\n if (context.getLayerHost) {\n return {\n getRootLayerHost: context.getRootLayerHost?.bind(null, priority),\n getLayerHost: getLayerHost.bind(null)\n };\n } else {\n return {};\n }\n }, [context.getLayerHost, context.getRootLayerHost, getLayerHost, priority]);\n\n return (\n <LayerContext.Provider value={newLayerContext as LayerContextProps}>\n {layerContainer && createPortal(children, layerContainer)}\n </LayerContext.Provider>\n );\n};\n\nexport default Layer;\n"],"names":["_jsx"],"mappings":";;;;;;;;AAiBa,MAAA,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE;AAiCxD,MAAA,KAAK,GAAG,CAAC,EACb,QAAQ,EACR,gBAAgB,EAChB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,OAAO,EAClB,KAAK,GAAG,iBAAiB,EACnB,KAAI;IACV,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,CAAC;AAC5E,IAAA,MAAM,iBAAiB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAEvD,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;AAEzC,IAAA,MAAM,iBAAiB,GAAG,CAAC,IAAoB,KAAI;AACjD,QAAA,iBAAiB,CAAC,OAAO,GAAG,IAAI,CAAC;QACjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC3B,KAAC,CAAC;;;AAIF,IAAA,MAAM,YAAY,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;AAE9D,IAAA,IAAI,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAE9C,QAAQ,QAAQ;QACd,KAAK,QAAQ,EAAE;AACb,YAAA,aAAa,GAAG,MAAM,CAAC,mBAAmB,CAAC;YAC3C,MAAM;SACP;QACD,KAAK,UAAU,EAAE;AACf,YAAA,aAAa,GAAG,MAAM,CAAC,qBAAqB,CAAC;YAC7C,MAAM;SACP;QACD,KAAK,SAAS,EAAE;AACd,YAAA,aAAa,GAAG,MAAM,CAAC,oBAAoB,CAAC;YAC5C,MAAM;SACP;QACD,SAAS;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AAE,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;;IAG1D,IAAI,cAAc,EAAE;;AAElB,QAAA,cAAc,CAAC,SAAS,GAAG,OAAO,CAAC;KACpC;AAED,IAAA,MAAM,YAAY,GAAG,WAAW,CAAC,MAAK;AACpC,QAAA,OAAO,cAAc,CAAC;AACxB,KAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;AAErB,IAAA,MAAM,eAAe,GAAG,OAAO,CAAC,MAAK;AACnC,QAAA,IAAI,OAAO,CAAC,YAAY,EAAE;YACxB,OAAO;gBACL,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AAChE,gBAAA,YAAY,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;aACtC,CAAC;SACH;aAAM;AACL,YAAA,OAAO,EAAE,CAAC;SACX;AACH,KAAC,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,gBAAgB,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE7E,QACEA,IAAC,YAAY,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,eAAoC,EAAA,QAAA,EAC/D,cAAc,IAAI,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAA,CACnC,EACxB;AACJ;;;;"}
1
+ {"version":3,"file":"Layer-6c27170e.js","sources":["../../src/UNSAFE_Layer/Layer.tsx"],"sourcesContent":["import { VNode, type RefObject } from 'preact';\nimport {\n createPortal,\n useContext,\n useLayoutEffect,\n useState,\n useRef,\n useMemo,\n useCallback\n} from 'preact/compat';\nimport { LayerContext, LayerContextProps, LayerLevel, LayerPriority } from './LayerContext';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { baseStyle, styles } from './themes/LayerStyles.css';\nimport { useThemeInterpolations } from '../hooks/UNSAFE_useThemeInterpolations/useThemeInterpolations';\nimport { toUnsafeDomElement } from '#utils/PRIVATE_unsafeDomRefUtils/unsafeDomRefUtils';\nimport { UnsafeDomHandle } from '#utils/UNSAFE_unsafeDomAccess';\n\nexport const LOGICAL_PARENT = Symbol.for('oj-logical-parent');\n\ntype Props = {\n /**\n * The content to be re-parented using Portal\n */\n children: VNode;\n /**\n * Logical parent of the re-parented content. Typically the 'launcher' associated\n * with the popup.\n */\n logicalParentRef?: RefObject<Element> | RefObject<UnsafeDomHandle<Element>> | null;\n /**\n * Determines if this layer contains a Modal.\n */\n isModal?: boolean;\n /**\n * Determines Layer's stacking context. Components that always need to render on top of other popup\n * elements (such as Messages) should use respective priority value. The default priority level is 'popup'.\n */\n priority?: LayerPriority;\n /**\n * Determines Layer's nesting context. By default, new layers will render in the context of a parent Layer,\n * if it exists (nearestAncestor)). Some popup components (such as Dialog and Message) may need to set up\n * a new nesting context as(topLevel).\n */\n level?: LayerLevel;\n};\n\nexport type LayerElement = HTMLElement & {\n [LOGICAL_PARENT]?: Element | null;\n};\n\nconst Layer = ({\n children,\n logicalParentRef,\n isModal = false,\n priority = 'popup',\n level = 'nearestAncestor'\n}: Props) => {\n const [layerContainer, _setLayerContainer] = useState<Element | null>(null);\n const layerContainerRef = useRef<Element | null>(null);\n\n const context = useContext(LayerContext);\n\n const setLayerContainer = (elem: Element | null) => {\n layerContainerRef.current = elem;\n _setLayerContainer(elem);\n };\n\n // because the children are being rendered into a portal that is out of the flow of parent dom,\n // we need to specify the colorScheme and scale class names here to pick up the correct CSS styles.\n const themeClasses = useThemeInterpolations(logicalParentRef);\n\n let priorityStyle = styles.popupPriorityStyle;\n\n switch (priority) {\n case 'dialog': {\n priorityStyle = styles.dialogPriorityStyle;\n break;\n }\n case 'messages': {\n priorityStyle = styles.messagesPriorityStyle;\n break;\n }\n case 'tooltip': {\n priorityStyle = styles.tooltipPriorityStyle;\n break;\n }\n default: {\n priorityStyle = styles.popupPriorityStyle;\n break;\n }\n }\n\n const classes = classNames([themeClasses, baseStyle, priorityStyle]);\n\n // Really need useLayoutEffect instead of useEffect here. Otherwise the re-parented\n // content does not get re-rendered with valid ref's\n useLayoutEffect(() => {\n const host =\n level === 'topLevel'\n ? context.getRootLayerHost?.(priority)\n : context.getLayerHost?.(priority);\n\n if (!host) return;\n const doc = host.ownerDocument ?? document;\n const layer: LayerElement = doc.createElement('div');\n\n layer.setAttribute('data-oj-layer', isModal ? 'modal' : 'modeless');\n\n if (logicalParentRef) {\n layer[LOGICAL_PARENT] = toUnsafeDomElement(logicalParentRef);\n }\n host.appendChild(layer);\n setLayerContainer(layer);\n\n return () => {\n if (host && layer && host.contains(layer)) {\n delete layer[LOGICAL_PARENT];\n host.removeChild(layer);\n }\n if (context.onLayerUnmount) {\n context.onLayerUnmount(layer);\n }\n setLayerContainer(null);\n };\n }, [logicalParentRef, context, level, priority, isModal]);\n\n // add the colorScheme and scale classes if there is a layerContainer\n if (layerContainer) {\n // use the theme interpolations to set the appropriate style classes for colorScheme and scale\n layerContainer.className = classes;\n }\n\n const getLayerHost = useCallback(() => {\n return layerContainer;\n }, [layerContainer]);\n\n const newLayerContext = useMemo(() => {\n if (context.getLayerHost) {\n return {\n getRootLayerHost: context.getRootLayerHost?.bind(null, priority),\n getLayerHost: getLayerHost.bind(null)\n };\n } else {\n return {};\n }\n }, [context.getLayerHost, context.getRootLayerHost, getLayerHost, priority]);\n\n return (\n <LayerContext.Provider value={newLayerContext as LayerContextProps}>\n {layerContainer && createPortal(children, layerContainer)}\n </LayerContext.Provider>\n );\n};\n\nexport default Layer;\n"],"names":["_jsx"],"mappings":";;;;;;;;AAiBa,MAAA,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE;AAiCxD,MAAA,KAAK,GAAG,CAAC,EACb,QAAQ,EACR,gBAAgB,EAChB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,OAAO,EAClB,KAAK,GAAG,iBAAiB,EACnB,KAAI;IACV,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,CA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tC,CAAC;SACH;aAAM;AACL,YAAA,OAAO,EAAE,CAAC;SACX;AACH,KAAC,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,gBAAgB,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE7E,QACEA,IAAC,YAAY,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,eAAoC,EAAA,QAAA,EAC/D,cAAc,IAAI,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAA,CACnC,EACxB;AACJ;;;;"}
@@ -1,6 +1,6 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
- import { o } from './index-aec1cc7f.js';
3
2
  import { createContext } from 'preact';
3
+ import { o } from './index-aec1cc7f.js';
4
4
  import { jsx } from 'preact/jsx-runtime';
5
5
  import { forwardRef } from 'preact/compat';
6
6
  import { baseStyle } from './UNSAFE_Layer/themes/LayerHostStyles.css.js';
@@ -38,4 +38,4 @@ const LayerHost = forwardRef((_props, ref) => {
38
38
  LayerHost.displayName = 'Forwarded<LayerHost>';
39
39
 
40
40
  export { DefaultEnvironment as D, EnvironmentContext as E, LayerContext as L, LayerHost as a };
41
- //# sourceMappingURL=LayerHost-7931b424.js.map
41
+ //# sourceMappingURL=LayerHost-3cf255a6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayerHost-7931b424.js","sources":["../../src/UNSAFE_Environment/EnvironmentContext.tsx","../../src/UNSAFE_Layer/LayerContext.ts","../../src/UNSAFE_Layer/LayerHost.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { Theme, ThemeModifiers } from '../UNSAFE_Theme';\n\nimport { Redwood } from '../Common';\nimport { createContext } from 'preact';\n\n/**\n * Defines user specific environment\n */\ntype User = {\n locale: string;\n direction: 'rtl' | 'ltr';\n forcedColors: 'none' | 'active';\n};\n\n/**\n * Defines translation bundle type.\n */\nexport type TranslationBundle = Record<string, (...args: any[]) => string>;\n\n/**\n * Defines a type for translation property which is an object where\n * - key - string - bundle id\n * - value - object - strings to functions of the type (options?: object)=>string\n *\n * Translation bundle example:\n * const bundle = {\n * @oracle/oracle-preact-bundle: {\n * welcome: () => 'bienvenido',\n * success: () => 'éxito'\n * }\n * }\n */\ntype Translations = { [bundleId: string]: TranslationBundle };\n\n/**\n * Defines the mode in which the application is running. For \"test\" mode, UNSAFE_useTestId hook will\n * return a set of attributes to be rendered on the component DOM for testing purposes. Default is\n * \"production\"\n */\ntype Mode = 'test' | 'production';\n\n/**\n * Environment specified at the root level\n */\nexport type RootEnvironment = Partial<ThemeModifiers> & {\n /**\n * user - supports user preferences\n */\n user?: Partial<User>;\n /**\n * theme - supports theme settings\n */\n theme?: Theme;\n /**\n * translations - supports translation bundles\n */\n translations?: Translations;\n /**\n * mode - the application's configured mode\n */\n mode?: Mode;\n};\n\n/**\n * Environment specified at the component level\n */\nexport type Environment = Partial<ThemeModifiers> & {\n translations?: Translations;\n};\n\nexport type CompleteEnvironmentType = ThemeModifiers & {\n user: User;\n theme: Theme;\n translations?: Translations;\n mode: Mode;\n};\n\n/**\n * Default environment created for the application\n */\nexport const DefaultEnvironment: CompleteEnvironmentType = {\n user: {\n locale: document.documentElement.getAttribute('lang') || 'en',\n direction:\n document.documentElement.getAttribute('dir')?.toLowerCase() === 'rtl' ? 'rtl' : 'ltr',\n forcedColors: window.matchMedia?.('(forced-colors: active)')?.matches ? 'active' : 'none'\n },\n theme: Redwood,\n colorScheme: 'light',\n scale: 'lg',\n currentBgColor: undefined,\n mode: 'production',\n density: 'standard'\n};\n\nexport const EnvironmentContext = createContext<CompleteEnvironmentType>(DefaultEnvironment);\n","import { createContext } from 'preact';\n\nexport type LayerLevel = 'nearestAncestor' | 'topLevel';\nexport type LayerPriority = 'popup' | 'dialog' | 'messages' | 'tooltip';\n\nexport type LayerContextProps = {\n getRootLayerHost?: (priority?: LayerPriority) => Element;\n getLayerHost?: (priority?: LayerPriority) => Element;\n onLayerUnmount?: (element: HTMLElement) => void;\n};\n\nexport const LayerContext = createContext<LayerContextProps>({});\n","/**\n * The LayerHost is a div which is created in place\n * where you want to \"house\" a portaled content\n */\nimport { forwardRef } from 'preact/compat';\nimport { baseStyle } from './themes/LayerHostStyles.css';\n\nconst LayerHost = forwardRef<HTMLDivElement>((_props, ref) => {\n return <div id=\"__root_layer_host\" role=\"presentation\" ref={ref} class={baseStyle} />;\n});\n\nLayerHost.displayName = 'Forwarded<LayerHost>';\n\nexport default LayerHost;\n"],"names":["Redwood","_jsx"],"mappings":";;;;;;;AAAA;;;;;;AAMG;AA+EH;;AAEG;AACU,MAAA,kBAAkB,GAA4B;AACzD,IAAA,IAAI,EAAE;QACJ,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,IAAI;QAC7D,SAAS,EACP,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,KAAK,KAAK,GAAG,KAAK,GAAG,KAAK;AACvF,QAAA,YAAY,EAAE,MAAM,CAAC,UAAU,GAAG,yBAAyB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM;AAC1F,KAAA;AACD,IAAA,KAAK,EAAEA,CAAO;AACd,IAAA,WAAW,EAAE,OAAO;AACpB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,cAAc,EAAE,SAAS;AACzB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,OAAO,EAAE,UAAU;EACnB;MAEW,kBAAkB,GAAG,aAAa,CAA0B,kBAAkB;;MC5F9E,YAAY,GAAG,aAAa,CAAoB,EAAE;;ACJzD,MAAA,SAAS,GAAG,UAAU,CAAiB,CAAC,MAAM,EAAE,GAAG,KAAI;AAC3D,IAAA,OAAOC,aAAK,EAAE,EAAC,mBAAmB,EAAC,IAAI,EAAC,cAAc,EAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,GAAI,CAAC;AACxF,CAAC,EAAE;AAEH,SAAS,CAAC,WAAW,GAAG,sBAAsB;;;;"}
1
+ {"version":3,"file":"LayerHost-3cf255a6.js","sources":["../../src/UNSAFE_Environment/EnvironmentContext.tsx","../../src/UNSAFE_Layer/LayerContext.ts","../../src/UNSAFE_Layer/LayerHost.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { Theme, ThemeModifiers } from '../UNSAFE_Theme';\n\nimport { Redwood } from '../Common';\nimport { createContext } from 'preact';\n\n/**\n * Defines user specific environment\n */\ntype User = {\n locale: string;\n direction: 'rtl' | 'ltr';\n forcedColors: 'none' | 'active';\n};\n\n/**\n * Defines translation bundle type.\n */\nexport type TranslationBundle = Record<string, (...args: any[]) => string>;\n\n/**\n * Defines a type for translation property which is an object where\n * - key - string - bundle id\n * - value - object - strings to functions of the type (options?: object)=>string\n *\n * Translation bundle example:\n * const bundle = {\n * @oracle/oracle-preact-bundle: {\n * welcome: () => 'bienvenido',\n * success: () => 'éxito'\n * }\n * }\n */\ntype Translations = { [bundleId: string]: TranslationBundle };\n\n/**\n * Defines the mode in which the application is running. For \"test\" mode, UNSAFE_useTestId hook will\n * return a set of attributes to be rendered on the component DOM for testing purposes. Default is\n * \"production\"\n */\ntype Mode = 'test' | 'production';\n\n/**\n * Environment specified at the root level\n */\nexport type RootEnvironment = Partial<ThemeModifiers> & {\n /**\n * user - supports user preferences\n */\n user?: Partial<User>;\n /**\n * theme - supports theme settings\n */\n theme?: Theme;\n /**\n * translations - supports translation bundles\n */\n translations?: Translations;\n /**\n * mode - the application's configured mode\n */\n mode?: Mode;\n};\n\n/**\n * Environment specified at the component level\n */\nexport type Environment = Partial<ThemeModifiers> & {\n translations?: Translations;\n};\n\nexport type CompleteEnvironmentType = ThemeModifiers & {\n user: User;\n theme: Theme;\n translations?: Translations;\n mode: Mode;\n};\n\n/**\n * Default environment created for the application\n */\nexport const DefaultEnvironment: CompleteEnvironmentType = {\n user: {\n locale: document.documentElement.getAttribute('lang') || 'en',\n direction:\n document.documentElement.getAttribute('dir')?.toLowerCase() === 'rtl' ? 'rtl' : 'ltr',\n forcedColors: window.matchMedia?.('(forced-colors: active)')?.matches ? 'active' : 'none'\n },\n theme: Redwood,\n colorScheme: 'light',\n scale: 'lg',\n currentBgColor: undefined,\n mode: 'production',\n density: 'standard'\n};\n\nexport const EnvironmentContext = createContext<CompleteEnvironmentType>(DefaultEnvironment);\n","import { createContext } from 'preact';\n\nexport type LayerLevel = 'nearestAncestor' | 'topLevel';\nexport type LayerPriority = 'popup' | 'dialog' | 'messages' | 'tooltip';\n\nexport type LayerContextProps = {\n getRootLayerHost?: (priority?: LayerPriority) => Element;\n getLayerHost?: (priority?: LayerPriority) => Element;\n onLayerUnmount?: (element: HTMLElement) => void;\n};\n\nexport const LayerContext = createContext<LayerContextProps>({});\n","/**\n * The LayerHost is a div which is created in place\n * where you want to \"house\" a portaled content\n */\nimport { forwardRef } from 'preact/compat';\nimport { baseStyle } from './themes/LayerHostStyles.css';\n\nconst LayerHost = forwardRef<HTMLDivElement>((_props, ref) => {\n return <div id=\"__root_layer_host\" role=\"presentation\" ref={ref} class={baseStyle} />;\n});\n\nLayerHost.displayName = 'Forwarded<LayerHost>';\n\nexport default LayerHost;\n"],"names":["Redwood","_jsx"],"mappings":";;;;;;;AAAA;;;;;;AAMG;AA+EH;;AAEG;AACU,MAAA,kBAAkB,GAA4B;AACzD,IAAA,IAAI,EAAE;QACJ,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,IAAI;QAC7D,SAAS,EACP,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,KAAK,KAAK,GAAG,KAAK,GAAG,KAAK;AACvF,QAAA,YAAY,EAAE,MAAM,CAAC,UAAU,GAAG,yBAAyB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM;AAC1F,KAAA;AACD,IAAA,KAAK,EAAEA,CAAO;AACd,IAAA,WAAW,EAAE,OAAO;AACpB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,cAAc,EAAE,SAAS;AACzB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,OAAO,EAAE,UAAU;EACnB;MAEW,kBAAkB,GAAG,aAAa,CAA0B,kBAAkB;;MC5F9E,YAAY,GAAG,aAAa,CAAoB,EAAE;;ACJzD,MAAA,SAAS,GAAG,UAAU,CAAiB,CAAC,MAAM,EAAE,GAAG,KAAI;AAC3D,IAAA,OAAOC,aAAK,EAAE,EAAC,mBAAmB,EAAC,IAAI,EAAC,cAAc,EAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,GAAI,CAAC;AACxF,CAAC,EAAE;AAEH,SAAS,CAAC,WAAW,GAAG,sBAAsB;;;;"}
@@ -1,7 +1,7 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx, jsxs } from 'preact/jsx-runtime';
3
3
  import { useState, useCallback } from 'preact/compat';
4
- import { L as LayerContext, a as LayerHost } from './LayerHost-7931b424.js';
4
+ import { L as LayerContext, a as LayerHost } from './LayerHost-3cf255a6.js';
5
5
 
6
6
  function LayerManager({ children }) {
7
7
  const [defaultHost, setDefaultHost] = useState();
@@ -31,4 +31,4 @@ function LayerManager({ children }) {
31
31
  }
32
32
 
33
33
  export { LayerManager as L };
34
- //# sourceMappingURL=LayerManager-52a26c55.js.map
34
+ //# sourceMappingURL=LayerManager-e30fbfd6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayerManager-52a26c55.js","sources":["../../src/UNSAFE_Layer/LayerManager.tsx"],"sourcesContent":["/**\n * The LayerManager wraps your application and creates two adjacent divs for\n * rendering your application and housing Layers.\n */\nimport { ComponentChildren } from 'preact';\nimport { useCallback, useState } from 'preact/compat';\nimport { LayerContext, LayerContextProps } from './LayerContext';\nimport LayerHost from './LayerHost';\n\ntype LayerManagerProps = {\n children?: ComponentChildren;\n};\n\nexport function LayerManager({ children }: LayerManagerProps) {\n const [defaultHost, setDefaultHost] = useState<Element>();\n //const context = useContext(LayerContext);\n const defaultHostRef = useCallback((el: Element | null) => {\n // ref callbacks fire after the component has been unnmounted so we do not\n // want to set state in this use-case\n if (el !== null) {\n setDefaultHost(el);\n }\n }, []);\n\n return (\n <LayerContext.Consumer>\n {(value: LayerContextProps) => {\n let defaultHostContext = {};\n if (defaultHost) {\n defaultHostContext = {\n getRootLayerHost: () => {\n return defaultHost;\n },\n getLayerHost: () => {\n return defaultHost;\n }\n };\n }\n const layerContext = value.getLayerHost ? value : defaultHostContext;\n return (\n <LayerContext.Provider value={layerContext}>\n {children}\n {!value.getLayerHost && <LayerHost ref={defaultHostRef} />}\n </LayerContext.Provider>\n );\n }}\n </LayerContext.Consumer>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;AAagB,SAAA,YAAY,CAAC,EAAE,QAAQ,EAAqB,EAAA;IAC1D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAW,CAAC;;AAE1D,IAAA,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,EAAkB,KAAI;;;AAGxD,QAAA,IAAI,EAAE,KAAK,IAAI,EAAE;YACf,cAAc,CAAC,EAAE,CAAC,CAAC;SACpB;KACF,EAAE,EAAE,CAAC,CAAC;IAEP,QACEA,IAAC,YAAY,CAAC,QAAQ,EACnB,EAAA,QAAA,EAAA,CAAC,KAAwB,KAAI;YAC5B,IAAI,kBAAkB,GAAG,EAAE,CAAC;YAC5B,IAAI,WAAW,EAAE;AACf,gBAAA,kBAAkB,GAAG;oBACnB,gBAAgB,EAAE,MAAK;AACrB,wBAAA,OAAO,WAAW,CAAC;qBACpB;oBACD,YAAY,EAAE,MAAK;AACjB,wBAAA,OAAO,WAAW,CAAC;qBACpB;iBACF,CAAC;aACH;AACD,YAAA,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,GAAG,KAAK,GAAG,kBAAkB,CAAC;YACrE,QACEC,IAAC,CAAA,YAAY,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,YAAY,EACvC,QAAA,EAAA,CAAA,QAAQ,EACR,CAAC,KAAK,CAAC,YAAY,IAAID,GAAA,CAAC,SAAS,EAAA,EAAC,GAAG,EAAE,cAAc,EAAA,CAAI,CACpC,EAAA,CAAA,EACxB;SACH,EAAA,CACqB,EACxB;AACJ;;;;"}
1
+ {"version":3,"file":"LayerManager-e30fbfd6.js","sources":["../../src/UNSAFE_Layer/LayerManager.tsx"],"sourcesContent":["/**\n * The LayerManager wraps your application and creates two adjacent divs for\n * rendering your application and housing Layers.\n */\nimport { ComponentChildren } from 'preact';\nimport { useCallback, useState } from 'preact/compat';\nimport { LayerContext, LayerContextProps } from './LayerContext';\nimport LayerHost from './LayerHost';\n\ntype LayerManagerProps = {\n children?: ComponentChildren;\n};\n\nexport function LayerManager({ children }: LayerManagerProps) {\n const [defaultHost, setDefaultHost] = useState<Element>();\n //const context = useContext(LayerContext);\n const defaultHostRef = useCallback((el: Element | null) => {\n // ref callbacks fire after the component has been unnmounted so we do not\n // want to set state in this use-case\n if (el !== null) {\n setDefaultHost(el);\n }\n }, []);\n\n return (\n <LayerContext.Consumer>\n {(value: LayerContextProps) => {\n let defaultHostContext = {};\n if (defaultHost) {\n defaultHostContext = {\n getRootLayerHost: () => {\n return defaultHost;\n },\n getLayerHost: () => {\n return defaultHost;\n }\n };\n }\n const layerContext = value.getLayerHost ? value : defaultHostContext;\n return (\n <LayerContext.Provider value={layerContext}>\n {children}\n {!value.getLayerHost && <LayerHost ref={defaultHostRef} />}\n </LayerContext.Provider>\n );\n }}\n </LayerContext.Consumer>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;AAagB,SAAA,YAAY,CAAC,EAAE,QAAQ,EAAqB,EAAA;IAC1D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAW,CAAC;;AAE1D,IAAA,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,EAAkB,KAAI;;;AAGxD,QAAA,IAAI,EAAE,KAAK,IAAI,EAAE;YACf,cAAc,CAAC,EAAE,CAAC,CAAC;SACpB;KACF,EAAE,EAAE,CAAC,CAAC;IAEP,QACEA,IAAC,YAAY,CAAC,QAAQ,EACnB,EAAA,QAAA,EAAA,CAAC,KAAwB,KAAI;YAC5B,IAAI,kBAAkB,GAAG,EAAE,CAAC;YAC5B,IAAI,WAAW,EAAE;AACf,gBAAA,kBAAkB,GAAG;oBACnB,gBAAgB,EAAE,MAAK;AACrB,wBAAA,OAAO,WAAW,CAAC;qBACpB;oBACD,YAAY,EAAE,MAAK;AACjB,wBAAA,OAAO,WAAW,CAAC;qBACpB;iBACF,CAAC;aACH;AACD,YAAA,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,GAAG,KAAK,GAAG,kBAAkB,CAAC;YACrE,QACEC,IAAC,CAAA,YAAY,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,YAAY,EACvC,QAAA,EAAA,CAAA,QAAQ,EACR,CAAC,KAAK,CAAC,YAAY,IAAID,GAAA,CAAC,SAAS,EAAA,EAAC,GAAG,EAAE,cAAc,EAAA,CAAI,CACpC,EAAA,CAAA,EACxB;SACH,EAAA,CACqB,EACxB;AACJ;;;;"}
@@ -7,7 +7,7 @@ import { u as useInteractionStyle } from './useInteractionStyle-99e32c23.js';
7
7
  import { LinkRedwoodTheme } from './UNSAFE_Link/themes/redwood/LinkTheme.js';
8
8
  import './TabbableModeContext-7d8ad946.js';
9
9
  import { u as useTabbableMode } from './useTabbableMode-090ed4b5.js';
10
- import { u as useTestId } from './useTestId-f24ac480.js';
10
+ import { u as useTestId } from './useTestId-ab1bede6.js';
11
11
 
12
12
  const noop = () => { };
13
13
  /**
@@ -17,16 +17,16 @@ import { m as mergeInterpolations } from './mergeInterpolations-30cd9a69.js';
17
17
  import { f as flexitemInterpolations } from './flexitem-7b7f7920.js';
18
18
  import { listItemMultiVariantStyles, paddingStyles, listItemStyles, skeletonStyles, sparkleStyles, listStyles } from './PRIVATE_List/themes/ListStyles.css.js';
19
19
  import { S as Skeleton } from './Skeleton-d6f0969e.js';
20
- import { F as Flex } from './Flex-03129963.js';
20
+ import { F as Flex } from './Flex-fc483125.js';
21
21
  import { g as globalImages } from './ImageVars.css-7b3180c8.js';
22
- import { u as useTheme } from './useTheme-0e7497db.js';
23
- import { u as useTestId } from './useTestId-f24ac480.js';
22
+ import { u as useTheme } from './useTheme-c2cfbc29.js';
23
+ import { u as useTestId } from './useTestId-ab1bede6.js';
24
24
  import './ReorderableContext-0daeea89.js';
25
- import './LayerHost-7931b424.js';
25
+ import './LayerHost-3cf255a6.js';
26
26
  import './CollectionInteractionContext-7cf19abc.js';
27
27
  import { u as useCollectionInteractionContext } from './useCollectionInteractionContext-3895c632.js';
28
28
  import 'preact';
29
- import { u as useSelection } from './useSelection-65134722.js';
29
+ import { u as useSelection } from './useSelection-d6fefa3d.js';
30
30
  import { u as useAdditiveSelection } from './useAdditiveSelection-3ba8e3e3.js';
31
31
  import { u as useItemAction } from './useItemAction-27b29f5c.js';
32
32
  import { I as Inset } from './Inset-8afb9876.js';
@@ -2,7 +2,7 @@
2
2
  import { jsx } from 'preact/jsx-runtime';
3
3
  import { useState, useCallback, useEffect } from 'preact/hooks';
4
4
  import './LiveRegionStyles.styles.css';
5
- import { u as useTestId } from './useTestId-f24ac480.js';
5
+ import { u as useTestId } from './useTestId-ab1bede6.js';
6
6
 
7
7
  var offScreenStyle = 'LiveRegionStyles_offScreenStyle__1uvpdtw0';
8
8
 
@@ -36,4 +36,4 @@ function useLiveText(text, timeout) {
36
36
  }
37
37
 
38
38
  export { LiveRegion as L };
39
- //# sourceMappingURL=LiveRegion-cebac18d.js.map
39
+ //# sourceMappingURL=LiveRegion-2e8830ae.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LiveRegion-cebac18d.js","sources":["../../src/UNSAFE_LiveRegion/LiveRegion.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'preact/hooks';\nimport { offScreenStyle } from './LiveRegionStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\n\ntype Props = TestIdProps & {\n /**\n * Whether this live region is atomic\n */\n atomic?: 'true' | 'false';\n\n /**\n * The text to be read out in the live region\n */\n children?: string;\n\n /**\n * Timeout for updating the text\n */\n timeout?: number;\n\n /**\n * The value for the aria-live attribute\n */\n type?: 'assertive' | 'polite' | 'off';\n};\n\n/**\n * A helper component that renders an aria-live region\n *\n * TODO: Create a more centralized component that can handle aria-live region for\n * the whole application and use context api to communicate\n */\nfunction LiveRegion({\n testId,\n atomic = 'false',\n children = '',\n timeout = 100,\n type = 'polite'\n}: Props) {\n const ariaLiveText = useLiveText(children, timeout);\n const testIdProps = useTestId(testId);\n\n return (\n <span aria-live={type} aria-atomic={atomic} class={offScreenStyle} {...testIdProps}>\n {ariaLiveText}\n </span>\n );\n}\n\n/**\n * A custom hook for handling the aria-live region\n *\n * @param text The aria-live text to use\n * @param timeout The timeout for setting the aria-live text async\n * @returns The aria-live text\n */\nfunction useLiveText(text: string, timeout: number) {\n const [liveText, setLiveText] = useState('');\n const updateText = useCallback(() => setLiveText(text), [text]);\n const updateTextAsync = useCallback(() => setTimeout(updateText, timeout), [updateText, timeout]);\n\n useEffect(() => {\n const timeoutId = updateTextAsync();\n\n return () => clearTimeout(timeoutId);\n }, [updateTextAsync]);\n\n return liveText;\n}\n\nexport { LiveRegion };\n"],"names":["_jsx"],"mappings":";;;;;;;;AA0BA;;;;;AAKG;AACH,SAAS,UAAU,CAAC,EAClB,MAAM,EACN,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,EAAE,EACb,OAAO,GAAG,GAAG,EACb,IAAI,GAAG,QAAQ,EACT,EAAA;IACN,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpD,IAAA,MAAM,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;AAEtC,IAAA,QACEA,GAAA,CAAA,MAAA,EAAA,EAAA,WAAA,EAAiB,IAAI,EAAA,aAAA,EAAe,MAAM,EAAE,KAAK,EAAE,cAAc,KAAM,WAAW,EAAA,QAAA,EAC/E,YAAY,EAAA,CACR,EACP;AACJ,CAAC;AAED;;;;;;AAMG;AACH,SAAS,WAAW,CAAC,IAAY,EAAE,OAAe,EAAA;IAChD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC7C,IAAA,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAChE,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;IAElG,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,SAAS,GAAG,eAAe,EAAE,CAAC;AAEpC,QAAA,OAAO,MAAM,YAAY,CAAC,SAAS,CAAC,CAAC;AACvC,KAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;AAEtB,IAAA,OAAO,QAAQ,CAAC;AAClB;;;;"}
1
+ {"version":3,"file":"LiveRegion-2e8830ae.js","sources":["../../src/UNSAFE_LiveRegion/LiveRegion.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'preact/hooks';\nimport { offScreenStyle } from './LiveRegionStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\n\ntype Props = TestIdProps & {\n /**\n * Whether this live region is atomic\n */\n atomic?: 'true' | 'false';\n\n /**\n * The text to be read out in the live region\n */\n children?: string;\n\n /**\n * Timeout for updating the text\n */\n timeout?: number;\n\n /**\n * The value for the aria-live attribute\n */\n type?: 'assertive' | 'polite' | 'off';\n};\n\n/**\n * A helper component that renders an aria-live region\n *\n * TODO: Create a more centralized component that can handle aria-live region for\n * the whole application and use context api to communicate\n */\nfunction LiveRegion({\n testId,\n atomic = 'false',\n children = '',\n timeout = 100,\n type = 'polite'\n}: Props) {\n const ariaLiveText = useLiveText(children, timeout);\n const testIdProps = useTestId(testId);\n\n return (\n <span aria-live={type} aria-atomic={atomic} class={offScreenStyle} {...testIdProps}>\n {ariaLiveText}\n </span>\n );\n}\n\n/**\n * A custom hook for handling the aria-live region\n *\n * @param text The aria-live text to use\n * @param timeout The timeout for setting the aria-live text async\n * @returns The aria-live text\n */\nfunction useLiveText(text: string, timeout: number) {\n const [liveText, setLiveText] = useState('');\n const updateText = useCallback(() => setLiveText(text), [text]);\n const updateTextAsync = useCallback(() => setTimeout(updateText, timeout), [updateText, timeout]);\n\n useEffect(() => {\n const timeoutId = updateTextAsync();\n\n return () => clearTimeout(timeoutId);\n }, [updateTextAsync]);\n\n return liveText;\n}\n\nexport { LiveRegion };\n"],"names":["_jsx"],"mappings":";;;;;;;;AA0BA;;;;;AAKG;AACH,SAAS,UAAU,CAAC,EAClB,MAAM,EACN,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,EAAE,EACb,OAAO,GAAG,GAAG,EACb,IAAI,GAAG,QAAQ,EACT,EAAA;IACN,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpD,IAAA,MAAM,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;AAEtC,IAAA,QACEA,GAAA,CAAA,MAAA,EAAA,EAAA,WAAA,EAAiB,IAAI,EAAA,aAAA,EAAe,MAAM,EAAE,KAAK,EAAE,cAAc,KAAM,WAAW,EAAA,QAAA,EAC/E,YAAY,EAAA,CACR,EACP;AACJ,CAAC;AAED;;;;;;AAMG;AACH,SAAS,WAAW,CAAC,IAAY,EAAE,OAAe,EAAA;IAChD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC7C,IAAA,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAChE,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;IAElG,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,SAAS,GAAG,eAAe,EAAE,CAAC;AAEpC,QAAA,OAAO,MAAM,YAAY,CAAC,SAAS,CAAC,CAAC;AACvC,KAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;AAEtB,IAAA,OAAO,QAAQ,CAAC;AAClB;;;;"}
@@ -1,8 +1,8 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsxs, Fragment, jsx } from 'preact/jsx-runtime';
3
3
  import { u as useDebounce } from './useDebounce-fa5a80e9.js';
4
- import { u as useTranslationBundle } from './useTranslationBundle-4822502f.js';
5
- import { L as LiveRegion } from './LiveRegion-cebac18d.js';
4
+ import { u as useTranslationBundle } from './useTranslationBundle-bc6e0896.js';
5
+ import { L as LiveRegion } from './LiveRegion-2e8830ae.js';
6
6
 
7
7
  const MAX_LENGTH_UPDATE_DELAY = 500;
8
8
  function MaxLengthLiveRegion({ isMaxLengthExceeded, maxLength, testId, valueLength = 0 }) {
@@ -23,4 +23,4 @@ function MaxLengthLiveRegion({ isMaxLengthExceeded, maxLength, testId, valueLeng
23
23
  }
24
24
 
25
25
  export { MaxLengthLiveRegion as M };
26
- //# sourceMappingURL=MaxLengthLiveRegion-8099fde5.js.map
26
+ //# sourceMappingURL=MaxLengthLiveRegion-8f552ae2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MaxLengthLiveRegion-8099fde5.js","sources":["../../src/UNSAFE_TextField/MaxLengthLiveRegion.tsx"],"sourcesContent":["import { useDebounce } from '../hooks/UNSAFE_useDebounce';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\n\ntype Props = TestIdProps & {\n isMaxLengthExceeded: boolean;\n maxLength: number;\n valueLength?: number;\n};\n\nconst MAX_LENGTH_UPDATE_DELAY = 500;\n\nexport function MaxLengthLiveRegion({\n isMaxLengthExceeded,\n maxLength,\n testId,\n valueLength = 0\n}: Props) {\n // Comment copied from InputBase.js in Big JET:\n // Only update the aria-live div when the user has paused for more than\n // 500 milliseconds. That way, we avoid queued up aria-live messages which\n // would be annoying and not helpful. The 500ms was agreed upon in the\n // accessibility review meeting.\n const debouncedRemainingChars = useDebounce(maxLength - valueLength, MAX_LENGTH_UPDATE_DELAY);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const maxLengthExceededTranslatedString = translations.formControl_maxLengthExceeded({\n MAX_LENGTH: `${maxLength}`\n });\n const remainingCharsTranslatedString = translations.formControl_maxLengthRemaining({\n CHARACTER_COUNT: `${debouncedRemainingChars}`\n });\n\n return (\n <>\n <LiveRegion testId={testId ? testId + '_remainingChars' : undefined}>\n {remainingCharsTranslatedString}\n </LiveRegion>\n {isMaxLengthExceeded && (\n <LiveRegion testId={testId ? testId + '_exceeded' : undefined} type=\"assertive\">\n {maxLengthExceededTranslatedString}\n </LiveRegion>\n )}\n </>\n );\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAYA,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpB,SAAA,mBAAmB,CAAC,EAClC,mBAAmB,EACnB,SAAS,EACT,MAAM,EACN,WAAW,GAAG,CAAC,EACT,EAAA;;;;;;IAMN,MAAM,uBAAuB,GAAG,WAAW,CAAC,SAAS,GAAG,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAC9F,IAAA,MAAM,YAAY,GAAG,oBAAoB,CAAa,0BAA0B,CAAC,CAAC;AAClF,IAAA,MAAM,iCAAiC,GAAG,YAAY,CAAC,6BAA6B,CAAC;QACnF,UAAU,EAAE,CAAG,EAAA,SAAS,CAAE,CAAA;AAC3B,KAAA,CAAC,CAAC;AACH,IAAA,MAAM,8BAA8B,GAAG,YAAY,CAAC,8BAA8B,CAAC;QACjF,eAAe,EAAE,CAAG,EAAA,uBAAuB,CAAE,CAAA;AAC9C,KAAA,CAAC,CAAC;IAEH,QACEA,4BACEC,GAAC,CAAA,UAAU,IAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,iBAAiB,GAAG,SAAS,YAChE,8BAA8B,EAAA,CACpB,EACZ,mBAAmB,KAClBA,IAAC,UAAU,EAAA,EAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,EAAE,IAAI,EAAC,WAAW,EAAA,QAAA,EAC5E,iCAAiC,EACvB,CAAA,CACd,CACA,EAAA,CAAA,EACH;AACJ;;;;"}
1
+ {"version":3,"file":"MaxLengthLiveRegion-8f552ae2.js","sources":["../../src/UNSAFE_TextField/MaxLengthLiveRegion.tsx"],"sourcesContent":["import { useDebounce } from '../hooks/UNSAFE_useDebounce';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\n\ntype Props = TestIdProps & {\n isMaxLengthExceeded: boolean;\n maxLength: number;\n valueLength?: number;\n};\n\nconst MAX_LENGTH_UPDATE_DELAY = 500;\n\nexport function MaxLengthLiveRegion({\n isMaxLengthExceeded,\n maxLength,\n testId,\n valueLength = 0\n}: Props) {\n // Comment copied from InputBase.js in Big JET:\n // Only update the aria-live div when the user has paused for more than\n // 500 milliseconds. That way, we avoid queued up aria-live messages which\n // would be annoying and not helpful. The 500ms was agreed upon in the\n // accessibility review meeting.\n const debouncedRemainingChars = useDebounce(maxLength - valueLength, MAX_LENGTH_UPDATE_DELAY);\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const maxLengthExceededTranslatedString = translations.formControl_maxLengthExceeded({\n MAX_LENGTH: `${maxLength}`\n });\n const remainingCharsTranslatedString = translations.formControl_maxLengthRemaining({\n CHARACTER_COUNT: `${debouncedRemainingChars}`\n });\n\n return (\n <>\n <LiveRegion testId={testId ? testId + '_remainingChars' : undefined}>\n {remainingCharsTranslatedString}\n </LiveRegion>\n {isMaxLengthExceeded && (\n <LiveRegion testId={testId ? testId + '_exceeded' : undefined} type=\"assertive\">\n {maxLengthExceededTranslatedString}\n </LiveRegion>\n )}\n </>\n );\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAYA,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpB,SAAA,mBAAmB,CAAC,EAClC,mBAAmB,EACnB,SAAS,EACT,MAAM,EACN,WAAW,GAAG,CAAC,EACT,EAAA;;;;;;IAMN,MAAM,uBAAuB,GAAG,WAAW,CAAC,SAAS,GAAG,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAC9F,IAAA,MAAM,YAAY,GAAG,oBAAoB,CAAa,0BAA0B,CAAC,CAAC;AAClF,IAAA,MAAM,iCAAiC,GAAG,YAAY,CAAC,6BAA6B,CAAC;QACnF,UAAU,EAAE,CAAG,EAAA,SAAS,CAAE,CAAA;AAC3B,KAAA,CAAC,CAAC;AACH,IAAA,MAAM,8BAA8B,GAAG,YAAY,CAAC,8BAA8B,CAAC;QACjF,eAAe,EAAE,CAAG,EAAA,uBAAuB,CAAE,CAAA;AAC9C,KAAA,CAAC,CAAC;IAEH,QACEA,4BACEC,GAAC,CAAA,UAAU,IAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,iBAAiB,GAAG,SAAS,YAChE,8BAA8B,EAAA,CACpB,EACZ,mBAAmB,KAClBA,IAAC,UAAU,EAAA,EAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,EAAE,IAAI,EAAC,WAAW,EAAA,QAAA,EAC5E,iCAAiC,EACvB,CAAA,CACd,CACA,EAAA,CAAA,EACH;AACJ;;;;"}
@@ -1,14 +1,14 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx, jsxs, Fragment as Fragment$1 } from 'preact/jsx-runtime';
3
3
  import { useCallback, useRef, useEffect } from 'preact/hooks';
4
- import { F as Flex } from './Flex-03129963.js';
4
+ import { F as Flex } from './Flex-fc483125.js';
5
5
  import { MessageBannerRedwoodTheme } from './UNSAFE_MessageBanner/themes/redwood/MessageBannerTheme.js';
6
6
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
7
7
  import { T as Timer } from './timer-f45a7e92.js';
8
8
  import { c as classNames } from './classNames-4e12b00d.js';
9
9
  import { S as SvgClose } from './Close-5a460764.js';
10
10
  import { I as IconButton } from './IconButton-7f91481c.js';
11
- import { u as useTranslationBundle } from './useTranslationBundle-4822502f.js';
11
+ import { u as useTranslationBundle } from './useTranslationBundle-bc6e0896.js';
12
12
  import { messageCloseButtonStyles, messageStartIconStyles, messageDetailStyles, messageHeaderStyles, messageTimestampStyles, messageStyles } from './PRIVATE_Message/themes/MessageStyles.css.js';
13
13
  import { Fragment } from 'preact';
14
14
  import { i as isValidValueForProp, f as formatTimestamp } from './MessageFormattingUtils-cdb25115.js';
@@ -1,11 +1,11 @@
1
1
  /* @oracle/oraclejet-preact: undefined */
2
2
  import { jsx } from 'preact/jsx-runtime';
3
- import { F as Flex } from './Flex-03129963.js';
4
- import { W as WindowOverlay } from './WindowOverlay-7264c44a.js';
5
- import { u as useUser } from './useUser-06d34d19.js';
6
- import { L as Layer } from './Layer-535577b5.js';
3
+ import { F as Flex } from './Flex-fc483125.js';
4
+ import { W as WindowOverlay } from './WindowOverlay-467c2d12.js';
5
+ import { u as useUser } from './useUser-e543b73c.js';
6
+ import { L as Layer } from './Layer-6c27170e.js';
7
7
  import 'preact/compat';
8
- import './LayerHost-7931b424.js';
8
+ import './LayerHost-3cf255a6.js';
9
9
 
10
10
  const positions = [
11
11
  'top',
@@ -55,4 +55,4 @@ const MessageLayer = ({ children, offset, testId, position = 'bottom' }) => {
55
55
  };
56
56
 
57
57
  export { MessageLayer as M, positions as p };
58
- //# sourceMappingURL=MessageLayer-2a7fdec7.js.map
58
+ //# sourceMappingURL=MessageLayer-1dbdc0b6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageLayer-2a7fdec7.js","sources":["../../src/PRIVATE_MessageLayer/MessageLayer.tsx"],"sourcesContent":["import { ComponentChildren } from 'preact';\nimport { Flex } from '../UNSAFE_Flex';\nimport { WindowOverlay, WindowOverlayPlacement } from '../UNSAFE_WindowOverlay';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { Layer } from '../UNSAFE_Layer';\n\nconst positions = [\n 'top',\n 'top-left',\n 'top-right',\n 'top-start',\n 'top-end',\n 'bottom',\n 'bottom-left',\n 'bottom-right',\n 'bottom-start',\n 'bottom-end'\n] as const;\n\ntype Position = (typeof positions)[number];\n\ntype Offset =\n | number\n | {\n horizontal?: number;\n vertical?: number;\n };\n\ntype Props = {\n children: ComponentChildren;\n\n /**\n * Defines the fixed position where the notifications will to be placed on the screen.\n * - top-start resolves to top-left in LTR (top-right in RTL)\n * - top-end resolves to top-right in LTR (top-left in RTL)\n * - bottom-start resolves to bottom-left in LTR (bottom-right in RTL)\n * - bottom-end resolves to bottom-right in LTR (bottom-left in RTL)\n *\n * default bottom\n */\n position?: Position;\n\n /**\n * Defines an offset (in pixels) in the placement. Value can be supplied as a number or\n * an object with horizontal and vertical values.\n *\n * default 0\n */\n offset?: Offset;\n\n /**\n * The test id which is assigned to the \"data-testid\" for the component's element.\n * Used for test automation, it is assigned to the wrapper element rendered by the component.\n */\n testId?: string;\n};\n\nconst MessageLayer = ({ children, offset, testId, position = 'bottom' }: Props) => {\n const side = position.split('-')[0];\n let windowOverlayOffset;\n if (typeof offset === 'number') {\n windowOverlayOffset = { mainAxis: offset, crossAxis: offset };\n } else if (side == 'top' || side == 'bottom') {\n windowOverlayOffset = { mainAxis: offset?.vertical, crossAxis: offset?.horizontal };\n } else {\n windowOverlayOffset = { mainAxis: offset?.horizontal, crossAxis: offset?.vertical };\n }\n\n const { direction } = useUser();\n const isLtr = direction === 'ltr';\n let windowOverlayPlacement: WindowOverlayPlacement | undefined;\n switch (position) {\n case 'top-left':\n windowOverlayPlacement = isLtr ? 'top-start' : 'top-end';\n break;\n case 'top-right':\n windowOverlayPlacement = isLtr ? 'top-end' : 'top-start';\n break;\n case 'bottom-left':\n windowOverlayPlacement = isLtr ? 'bottom-start' : 'bottom-end';\n break;\n case 'bottom-right':\n windowOverlayPlacement = isLtr ? 'bottom-end' : 'bottom-start';\n break;\n default:\n windowOverlayPlacement = position;\n break;\n }\n return (\n <Layer priority=\"messages\" level=\"topLevel\">\n <WindowOverlay placement={windowOverlayPlacement} offset={windowOverlayOffset}>\n <div data-testid={testId}>\n <Flex direction=\"column\" gap=\"2x\">\n {children}\n </Flex>\n </div>\n </WindowOverlay>\n </Layer>\n );\n};\n\nexport type { Position, Offset };\nexport { MessageLayer, positions };\n"],"names":["_jsx"],"mappings":";;;;;;;;;AAMA,MAAM,SAAS,GAAG;IAChB,KAAK;IACL,UAAU;IACV,WAAW;IACX,WAAW;IACX,SAAS;IACT,QAAQ;IACR,aAAa;IACb,cAAc;IACd,cAAc;IACd,YAAY;EACH;AAwCX,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAS,KAAI;IAChF,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,IAAA,IAAI,mBAAmB,CAAC;AACxB,IAAA,IAAI,OAAO,MAAM,KAAK,QA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AAkB,MAAM,EACtB,QAAA,EAAAA,GAAA,CAAC,IAAI,EAAC,EAAA,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,IAAI,YAC9B,QAAQ,EAAA,CACJ,GACH,EACQ,CAAA,EAAA,CACV,EACR;AACJ;;;;"}
1
+ {"version":3,"file":"MessageLayer-1dbdc0b6.js","sources":["../../src/PRIVATE_MessageLayer/MessageLayer.tsx"],"sourcesContent":["import { ComponentChildren } from 'preact';\nimport { Flex } from '../UNSAFE_Flex';\nimport { WindowOverlay, WindowOverlayPlacement } from '../UNSAFE_WindowOverlay';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { Layer } from '../UNSAFE_Layer';\n\nconst positions = [\n 'top',\n 'top-left',\n 'top-right',\n 'top-start',\n 'top-end',\n 'bottom',\n 'bottom-left',\n 'bottom-right',\n 'bottom-start',\n 'bottom-end'\n] as const;\n\ntype Position = (typeof positions)[number];\n\ntype Offset =\n | number\n | {\n horizontal?: number;\n vertical?: number;\n };\n\ntype Props = {\n children: ComponentChildren;\n\n /**\n * Defines the fixed position where the notifications will to be placed on the screen.\n * - top-start resolves to top-left in LTR (top-right in RTL)\n * - top-end resolves to top-right in LTR (top-left in RTL)\n * - bottom-start resolves to bottom-left in LTR (bottom-right in RTL)\n * - bottom-end resolves to bottom-right in LTR (bottom-left in RTL)\n *\n * default bottom\n */\n position?: Position;\n\n /**\n * Defines an offset (in pixels) in the placement. Value can be supplied as a number or\n * an object with horizontal and vertical values.\n *\n * default 0\n */\n offset?: Offset;\n\n /**\n * The test id which is assigned to the \"data-testid\" for the component's element.\n * Used for test automation, it is assigned to the wrapper element rendered by the component.\n */\n testId?: string;\n};\n\nconst MessageLayer = ({ children, offset, testId, position = 'bottom' }: Props) => {\n const side = position.split('-')[0];\n let windowOverlayOffset;\n if (typeof offset === 'number') {\n windowOverlayOffset = { mainAxis: offset, crossAxis: offset };\n } else if (side == 'top' || side == 'bottom') {\n windowOverlayOffset = { mainAxis: offset?.vertical, crossAxis: offset?.horizontal };\n } else {\n windowOverlayOffset = { mainAxis: offset?.horizontal, crossAxis: offset?.vertical };\n }\n\n const { direction } = useUser();\n const isLtr = direction === 'ltr';\n let windowOverlayPlacement: WindowOverlayPlacement | undefined;\n switch (position) {\n case 'top-left':\n windowOverlayPlacement = isLtr ? 'top-start' : 'top-end';\n break;\n case 'top-right':\n windowOverlayPlacement = isLtr ? 'top-end' : 'top-start';\n break;\n case 'bottom-left':\n windowOverlayPlacement = isLtr ? 'bottom-start' : 'bottom-end';\n break;\n case 'bottom-right':\n windowOverlayPlacement = isLtr ? 'bottom-end' : 'bottom-start';\n break;\n default:\n windowOverlayPlacement = position;\n break;\n }\n return (\n <Layer priority=\"messages\" level=\"topLevel\">\n <WindowOverlay placement={windowOverlayPlacement} offset={windowOverlayOffset}>\n <div data-testid={testId}>\n <Flex direction=\"column\" gap=\"2x\">\n {children}\n </Flex>\n </div>\n </WindowOverlay>\n </Layer>\n );\n};\n\nexport type { Position, Offset };\nexport { MessageLayer, positions };\n"],"names":["_jsx"],"mappings":";;;;;;;;;AAMA,MAAM,SAAS,GAAG;IAChB,KAAK;IACL,UAAU;IACV,WAAW;IACX,WAAW;IACX,SAAS;IACT,QAAQ;IACR,aAAa;IACb,cAAc;IACd,cAAc;IACd,YAAY;EACH;AAwCX,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAS,KAAI;IAChF,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,IAAA,IAAI,mBAAmB,CAAC;AACxB,IAAA,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC9B,mBAAmB,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;KAC/D;SAAM,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,QAAQ,EAAE;AA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ACJ;;;;"}
@@ -5,10 +5,10 @@ import { S as SvgSuccessS } from './SuccessS-b5192d40.js';
5
5
  import { S as SvgErrorS } from './ErrorS-3a890bf6.js';
6
6
  import { S as SvgInformationS } from './InformationS-d53c2a91.js';
7
7
  import { S as SvgWarningS } from './WarningS-3e53d87e.js';
8
- import { F as Flex } from './Flex-03129963.js';
8
+ import { F as Flex } from './Flex-fc483125.js';
9
9
  import { startIconContainerStyles, messageStartIconStyles, severityIconStyles, messageSummaryStyles } from './PRIVATE_Message/themes/MessageStyles.css.js';
10
- import { u as useTranslationBundle } from './useTranslationBundle-4822502f.js';
11
- import { u as useTestId } from './useTestId-f24ac480.js';
10
+ import { u as useTranslationBundle } from './useTranslationBundle-bc6e0896.js';
11
+ import { u as useTestId } from './useTestId-ab1bede6.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-cdb25115.js';
@@ -2,12 +2,12 @@
2
2
  import { jsx, jsxs } from 'preact/jsx-runtime';
3
3
  import { forwardRef, useRef, useEffect, useContext } from 'preact/compat';
4
4
  import { u as useModal } from './useModal-953082f2.js';
5
- import { L as Layer } from './Layer-535577b5.js';
6
- import './LayerHost-7931b424.js';
5
+ import { L as Layer } from './Layer-6c27170e.js';
6
+ import './LayerHost-3cf255a6.js';
7
7
  import { createContext } from 'preact';
8
8
  import { multiVariantStyles, baseStyle } from './UNSAFE_Modal/themes/ModalStyles.css.js';
9
9
  import { a as allTabbableElements, f as focusWithin } from './tabbableUtils-c8311ec6.js';
10
- import { i as isLogicalAncestor } from './popupUtils-51366a29.js';
10
+ import { i as isLogicalAncestor } from './popupUtils-7774330e.js';
11
11
  import { g as getClientHints } from './clientHints-a42b510c.js';
12
12
 
13
13
  const LogicalParentRefContext = createContext(undefined);
@@ -5,13 +5,13 @@ import { a as getFormatParse } from './getFormatParse-6d6fdd4d.js';
5
5
  import { w as warn } from './logger-c92f309c.js';
6
6
  import { d as getIsoDateStr, t as toJSDate, e as toJSDateUTC, b as checkNoCalendarExtension, f as formatFullCalendarDate, i as isDateOutOfRange } from './calendarDateUtils-30611c35.js';
7
7
  import { useMemo } from 'preact/hooks';
8
- import { S as StyledDatePickerButton } from './StyledDatePickerButton-f3971567.js';
8
+ import { S as StyledDatePickerButton } from './StyledDatePickerButton-78f2f6e8.js';
9
9
  import { useCallback } from 'preact/compat';
10
- import { u as useTranslationBundle } from './useTranslationBundle-4822502f.js';
10
+ import { u as useTranslationBundle } from './useTranslationBundle-bc6e0896.js';
11
11
  import { u as useFocusableCell, a as useCellNavigation } from './useCellNavigation-0565b6dd.js';
12
12
  import { dayCellStyles } from './PRIVATE_MonthView/themes/DayCellStyles.css.js';
13
- import { u as useUser } from './useUser-06d34d19.js';
14
- import { G as Grid } from './Grid-9e4b4f19.js';
13
+ import { u as useUser } from './useUser-e543b73c.js';
14
+ import { G as Grid } from './Grid-6f92d323.js';
15
15
  import { MonthViewRedwoodTheme } from './PRIVATE_MonthView/themes/redwood/MonthViewTheme.js';
16
16
  import { u as useComponentTheme } from './useComponentTheme-d2f9e47f.js';
17
17
  import { monthViewScaleVars } from './PRIVATE_MonthView/themes/MonthViewContract.css.js';
@@ -205,4 +205,4 @@ function isOutOfMonth(date1, currentMonthDate) {
205
205
  }
206
206
 
207
207
  export { MonthView as M };
208
- //# sourceMappingURL=MonthView-097171eb.js.map
208
+ //# sourceMappingURL=MonthView-4e05e712.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MonthView-097171eb.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 { DateISOStr } from '#UNSAFE_IntlDateTime';\nimport { FormatterFunc } from '#UNSAFE_IntlFormatParse';\nimport { getIsoDateStr, 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 used to format the day cell date as a full date.\n */\n dateFormatter: FormatterFunc<DateISOStr>;\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 /**\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 dateFormatter,\n isAdjacentMonth,\n isDisabled,\n isFocusable,\n isFocused,\n isHidden,\n isReadonly,\n isSelected,\n isToday,\n onAction,\n onNavigation\n}: UseDayCellProps) => {\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 dateIsoStr = getIsoDateStr(date.year, date.month, date.day);\n const formattedDate = dateFormatter(dateIsoStr);\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 | 'dateFormatter'\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, toJSDateUTC } from '#utils/UNSAFE_calendarDateUtils';\nimport { weekNumberCellStyles, weekNumberStyles } from './themes/WeekNumberCellStyle.css';\nimport * as Logger from '../utils/UNSAFE_logger';\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 * The date must be a Saturday, Sunday, or Monday. We assume this because the week for\n * all the locales we support start on one of these days.\n * @returns the number of week in the year\n */\nconst calculateWeekNumber = (date: CalendarDateRequired) => {\n const checkDate = toJSDateUTC(date.year, date.month, date.day);\n const dayNumber = checkDate.getUTCDay(); // 0 for Sunday, 1 for Monday, 2 for Tuesday, etc.\n\n if (dayNumber !== 0 && dayNumber !== 1 && dayNumber !== 6) {\n // This message is for internal JET developers. We should never see this message. In all locales the day of the\n // week starts on Sunday, Monday or Saturday.\n Logger.warn(`calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports.`);\n }\n\n // For ISO week, we set the start of the week to Monday\n if (dayNumber !== 1) {\n // If it is already Monday, do nothing.\n // If it is Sunday (0), add 1 to move it up to Monday.\n // If it is Saturday (6), move it up two days to Monday.\n checkDate.setUTCDate(checkDate.getUTCDate() + (dayNumber === 0 ? 1 : 2));\n }\n\n // Find Thursday (day value of 4) of this week. Since we know checkDate at this point is a Monday,\n // we move it up 3 days.\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 { useMemo } from 'preact/hooks';\nimport {\n CalendarDateRequired,\n checkNoCalendarExtension,\n formatFullCalendarDate,\n isDateOutOfRange\n} from '#utils/UNSAFE_calendarDateUtils';\nimport { getFormatParse, NativeDateTimeOptions } from '#UNSAFE_IntlDateTime';\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 dateFormatter = useMemo(() => {\n checkNoCalendarExtension(locale);\n const dateFormatOptions: NativeDateTimeOptions = {\n locale,\n dateStyle: 'full'\n };\n const { format } = getFormatParse(dateFormatOptions);\n return format;\n }, [locale]);\n\n const renderMonthViewHeaderRow = () => {\n const weekDays = getDaysOfWeekNames(locale, 'short');\n\n return (\n <div class={styles.sticky}>\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 </div>\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 dateFormatter={dateFormatter}\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}\n />\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","Logger.warn","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AA6FH;;;AAGG;AACI,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,EACJ,YAAY,GAAG,mBAAmB,EAClC,aAAa,EACb,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,EACP,QAAQ,EACR,YAAY,EACI,KAAI;;IAEpB,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,UAAU,IAAI,gBAAgB,IAAI,kBAAkB;YAAE,OAAO;QAC/E,QAAQ,CAAC,OAAO,CAAC,CAAC;AACpB,KAAC,EACD,CAAC,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,CAAC,CACzE,CAAC;IACF,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAC5C,QAAA,aAAa,EAAE;YACb,SAAS,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE;YACjD,UAAU,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,EAAE;AAClD,YAAA,SAAS,EAAE,UAAU;AACrB,YAAA,OAAO,EAAE,cAAc;AACvB,YAAA,QAAQ,EAAE,WAAW;AACrB,YAAA,MAAM,EAAE,eAA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AC,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-4e05e712.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 { DateISOStr } from '#UNSAFE_IntlDateTime';\nimport { FormatterFunc } from '#UNSAFE_IntlFormatParse';\nimport { getIsoDateStr, 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 used to format the day cell date as a full date.\n */\n dateFormatter: FormatterFunc<DateISOStr>;\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 /**\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 dateFormatter,\n isAdjacentMonth,\n isDisabled,\n isFocusable,\n isFocused,\n isHidden,\n isReadonly,\n isSelected,\n isToday,\n onAction,\n onNavigation\n}: UseDayCellProps) => {\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 dateIsoStr = getIsoDateStr(date.year, date.month, date.day);\n const formattedDate = dateFormatter(dateIsoStr);\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 | 'dateFormatter'\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, toJSDateUTC } from '#utils/UNSAFE_calendarDateUtils';\nimport { weekNumberCellStyles, weekNumberStyles } from './themes/WeekNumberCellStyle.css';\nimport * as Logger from '../utils/UNSAFE_logger';\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 * The date must be a Saturday, Sunday, or Monday. We assume this because the week for\n * all the locales we support start on one of these days.\n * @returns the number of week in the year\n */\nconst calculateWeekNumber = (date: CalendarDateRequired) => {\n const checkDate = toJSDateUTC(date.year, date.month, date.day);\n const dayNumber = checkDate.getUTCDay(); // 0 for Sunday, 1 for Monday, 2 for Tuesday, etc.\n\n if (dayNumber !== 0 && dayNumber !== 1 && dayNumber !== 6) {\n // This message is for internal JET developers. We should never see this message. In all locales the day of the\n // week starts on Sunday, Monday or Saturday.\n Logger.warn(`calculateWeekNumber's date property's getUTCDay() is assumed to be 0 (Sunday), 1 (Monday) or 6 (Saturday)\n since that is the first day of the week for the locale's JET supports.`);\n }\n\n // For ISO week, we set the start of the week to Monday\n if (dayNumber !== 1) {\n // If it is already Monday, do nothing.\n // If it is Sunday (0), add 1 to move it up to Monday.\n // If it is Saturday (6), move it up two days to Monday.\n checkDate.setUTCDate(checkDate.getUTCDate() + (dayNumber === 0 ? 1 : 2));\n }\n\n // Find Thursday (day value of 4) of this week. Since we know checkDate at this point is a Monday,\n // we move it up 3 days.\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 { useMemo } from 'preact/hooks';\nimport {\n CalendarDateRequired,\n checkNoCalendarExtension,\n formatFullCalendarDate,\n isDateOutOfRange\n} from '#utils/UNSAFE_calendarDateUtils';\nimport { getFormatParse, NativeDateTimeOptions } from '#UNSAFE_IntlDateTime';\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 dateFormatter = useMemo(() => {\n checkNoCalendarExtension(locale);\n const dateFormatOptions: NativeDateTimeOptions = {\n locale,\n dateStyle: 'full'\n };\n const { format } = getFormatParse(dateFormatOptions);\n return format;\n }, [locale]);\n\n const renderMonthViewHeaderRow = () => {\n const weekDays = getDaysOfWeekNames(locale, 'short');\n\n return (\n <div class={styles.sticky}>\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 </div>\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 dateFormatter={dateFormatter}\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}\n />\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","Logger.warn","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AA6FH;;;AAGG;AACI,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,EACJ,YAAY,GAAG,mBAAmB,EAClC,aAAa,EACb,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,EACP,QAAQ,EACR,YAAY,EACI,KAAI;;IAEpB,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;A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