@oracle/oraclejet-preact 18.1.1 → 18.1.2

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 (1057) hide show
  1. package/amd/ActionCard-e560d08b.js +1 -1
  2. package/amd/BarChart-c0ba5b12.js +1 -1
  3. package/amd/BarGroup-b02506a8.js +1 -1
  4. package/amd/BaseButton-c6563bf2.js +1 -1
  5. package/amd/{BaseCardView-df2ace26.js → BaseCardView-e75594df.js} +2 -2
  6. package/amd/{BaseCardView-df2ace26.js.map → BaseCardView-e75594df.js.map} +1 -1
  7. package/amd/{BaseCardViewSelectionTest-e0356b8b.js → BaseCardViewSelectionTest-b3d54b34.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-e0356b8b.js.map → BaseCardViewSelectionTest-b3d54b34.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-f2b9ae77.js +2 -0
  10. package/amd/BaseNavigationListItem-f2b9ae77.js.map +1 -0
  11. package/amd/BaseRichSelection-65bb6f89.js +1 -1
  12. package/amd/ButtonSet-3459b0e6.js +1 -1
  13. package/amd/ButtonSetIconButton-5b13a4c9.js +1 -1
  14. package/amd/{Card-7acfbca5.js → Card-8fd9b2c8.js} +2 -2
  15. package/amd/{Card-7acfbca5.js.map → Card-8fd9b2c8.js.map} +1 -1
  16. package/amd/{CardFlexView-a1fbf75e.js → CardFlexView-15801fe6.js} +2 -2
  17. package/amd/{CardFlexView-a1fbf75e.js.map → CardFlexView-15801fe6.js.map} +1 -1
  18. package/amd/{CardGridView-06ad40c5.js → CardGridView-05349c11.js} +2 -2
  19. package/amd/{CardGridView-06ad40c5.js.map → CardGridView-05349c11.js.map} +1 -1
  20. package/amd/{Center-5d2e4d34.js → Center-567b111f.js} +2 -2
  21. package/amd/{Center-5d2e4d34.js.map → Center-567b111f.js.map} +1 -1
  22. package/amd/Chart-c3a5a93d.js +1 -1
  23. package/amd/CheckboxControl-f3a606fe.js +1 -1
  24. package/amd/CheckboxRadioField-48d4dc4e.js +1 -1
  25. package/amd/Chip-e007a488.js +1 -1
  26. package/amd/ClearIcon-d0412ffa.js +1 -1
  27. package/amd/CollapseIcon-6d62b080.js +1 -1
  28. package/amd/Collapsible-8608500c.js +1 -1
  29. package/amd/ComboChart-cec2713a.js +1 -1
  30. package/amd/CompactHelpSource-e5b889f6.js +1 -1
  31. package/amd/CompactLabelAssistance-cd404d92.js +2 -0
  32. package/amd/{CompactLabelAssistance-82361ea6.js.map → CompactLabelAssistance-cd404d92.js.map} +1 -1
  33. package/amd/CompactUserAssistance-eb849bc5.js +1 -1
  34. package/amd/ComponentMessageContainer-8198785a.js +1 -1
  35. package/amd/ConveyorBeltItem-297444a1.js +1 -1
  36. package/amd/{DatePicker-20e9a255.js → DatePicker-e0e728f9.js} +2 -2
  37. package/amd/{DatePicker-20e9a255.js.map → DatePicker-e0e728f9.js.map} +1 -1
  38. package/amd/DatePickerHeader-1f419e06.js +1 -1
  39. package/amd/{Diagram-03be2ca5.js → Diagram-eb0ab8fb.js} +2 -2
  40. package/amd/{Diagram-03be2ca5.js.map → Diagram-eb0ab8fb.js.map} +1 -1
  41. package/amd/{Dialog-dc55a669.js → Dialog-cd6713a4.js} +2 -2
  42. package/amd/{Dialog-dc55a669.js.map → Dialog-cd6713a4.js.map} +1 -1
  43. package/amd/DirectionalCollapseArrowIcon-58352e0f.js +1 -1
  44. package/amd/DirectionalExpandArrowIcon-56420acb.js +1 -1
  45. package/amd/DragHandle-0798a29c.js +2 -0
  46. package/amd/{DragHandle-d89ea5fd.js.map → DragHandle-0798a29c.js.map} +1 -1
  47. package/amd/{DrawerPopup-772c8c22.js → DrawerPopup-439787de.js} +2 -2
  48. package/amd/{DrawerPopup-772c8c22.js.map → DrawerPopup-439787de.js.map} +1 -1
  49. package/amd/Dropdown-fb803c67.js +2 -0
  50. package/amd/{Dropdown-37339c89.js.map → Dropdown-fb803c67.js.map} +1 -1
  51. package/amd/{EnvironmentProvider-4597f540.js → EnvironmentProvider-d423bca9.js} +2 -2
  52. package/amd/{EnvironmentProvider-4597f540.js.map → EnvironmentProvider-d423bca9.js.map} +1 -1
  53. package/amd/ExpandableList-81f7f34d.js +1 -1
  54. package/amd/FilePicker-e0b7a348.js +1 -1
  55. package/amd/{Flex-69dc7af4.js → Flex-a208520e.js} +2 -2
  56. package/amd/{Flex-69dc7af4.js.map → Flex-a208520e.js.map} +1 -1
  57. package/amd/{Floating-28ad0903.js → Floating-043a207a.js} +2 -2
  58. package/amd/{Floating-28ad0903.js.map → Floating-043a207a.js.map} +1 -1
  59. package/amd/FormLayout-d7998ba5.js +1 -1
  60. package/amd/Gantt-a286e1a6.js +1 -1
  61. package/amd/{Grid-49beb801.js → Grid-3dd364a1.js} +2 -2
  62. package/amd/{Grid-49beb801.js.map → Grid-3dd364a1.js.map} +1 -1
  63. package/amd/{Gridlines-9ec65953.js → Gridlines-3c00961a.js} +2 -2
  64. package/amd/{Gridlines-9ec65953.js.map → Gridlines-3c00961a.js.map} +1 -1
  65. package/amd/GroupLoadingIndicator-6c6743b0.js +1 -1
  66. package/amd/{HighlightText-b020d84d.js → HighlightText-b3c31e12.js} +2 -2
  67. package/amd/{HighlightText-b020d84d.js.map → HighlightText-b3c31e12.js.map} +1 -1
  68. package/amd/Icon-906e4e3c.js +1 -1
  69. package/amd/IconButton-c2e5c1c5.js +1 -1
  70. package/amd/IconMenuButton-caf797c1.js +1 -1
  71. package/amd/IconProgressButton-d8c0c306.js +1 -1
  72. package/amd/IconSwitchButton-e6c5b20f.js +1 -1
  73. package/amd/IconToggleButton-e6c77f31.js +1 -1
  74. package/amd/{IconUserAssistance-b5075ca1.js → IconUserAssistance-456f4b11.js} +2 -2
  75. package/amd/{IconUserAssistance-b5075ca1.js.map → IconUserAssistance-456f4b11.js.map} +1 -1
  76. package/amd/{Indexer-2d8f61ab.js → Indexer-21549baf.js} +2 -2
  77. package/amd/{Indexer-2d8f61ab.js.map → Indexer-21549baf.js.map} +1 -1
  78. package/amd/InlineHelpSource-80327d99.js +1 -1
  79. package/amd/InlineUserAssistance-d208ce7b.js +1 -1
  80. package/amd/InputDateMask-4157ef60.js +1 -1
  81. package/amd/InputDatePicker-84b302ea.js +1 -1
  82. package/amd/InputPassword-868ad3bb.js +1 -1
  83. package/amd/InputText-2cd1e067.js +1 -1
  84. package/amd/Label-a53aabb9.js +1 -1
  85. package/amd/LabelValueLayout-6da5829a.js +1 -1
  86. package/amd/{Layer-9fb9ca67.js → Layer-2ca542c2.js} +2 -2
  87. package/amd/{Layer-9fb9ca67.js.map → Layer-2ca542c2.js.map} +1 -1
  88. package/amd/{LayerHost-1b4d03f0.js → LayerHost-a36b1781.js} +2 -2
  89. package/amd/{LayerHost-1b4d03f0.js.map → LayerHost-a36b1781.js.map} +1 -1
  90. package/amd/LayerManager-543c0bce.js +2 -0
  91. package/amd/{LayerManager-6c0b0eed.js.map → LayerManager-543c0bce.js.map} +1 -1
  92. package/amd/Legend-75b03ff3.js +1 -1
  93. package/amd/{LineAreaChart-d6300aad.js → LineAreaChart-a6914d16.js} +2 -2
  94. package/amd/{LineAreaChart-d6300aad.js.map → LineAreaChart-a6914d16.js.map} +1 -1
  95. package/amd/{LineSeries-6b2d5fc5.js → LineSeries-9ddf061e.js} +2 -2
  96. package/amd/{LineSeries-6b2d5fc5.js.map → LineSeries-9ddf061e.js.map} +1 -1
  97. package/amd/Link-ded379d9.js +1 -1
  98. package/amd/List-5797be06.js +2 -0
  99. package/amd/{List-cf09a2fb.js.map → List-5797be06.js.map} +1 -1
  100. package/amd/{ListItemLayout-51e98343.js → ListItemLayout-853acaaf.js} +2 -2
  101. package/amd/{ListItemLayout-51e98343.js.map → ListItemLayout-853acaaf.js.map} +1 -1
  102. package/amd/{ListView-29e03fea.js → ListView-51898222.js} +2 -2
  103. package/amd/{ListView-29e03fea.js.map → ListView-51898222.js.map} +1 -1
  104. package/amd/{LiveRegion-345ac2a4.js → LiveRegion-38fa0df8.js} +2 -2
  105. package/amd/{LiveRegion-345ac2a4.js.map → LiveRegion-38fa0df8.js.map} +1 -1
  106. package/amd/LoadMoreCollection-83413a59.js +2 -0
  107. package/amd/{LoadMoreCollection-a6adbc3f.js.map → LoadMoreCollection-83413a59.js.map} +1 -1
  108. package/amd/MaxLengthLiveRegion-40be44ee.js +2 -0
  109. package/amd/{MaxLengthLiveRegion-7723b0df.js.map → MaxLengthLiveRegion-40be44ee.js.map} +1 -1
  110. package/amd/Menu-bdd771bf.js +1 -1
  111. package/amd/MenuButton-da59eed0.js +1 -1
  112. package/amd/MenuItem-dc85fcad.js +1 -1
  113. package/amd/Message-d34eaeb6.js +1 -1
  114. package/amd/{MessageLayer-4238a197.js → MessageLayer-4d17f62f.js} +2 -2
  115. package/amd/{MessageLayer-4238a197.js.map → MessageLayer-4d17f62f.js.map} +1 -1
  116. package/amd/MessageToast-39315d42.js +1 -1
  117. package/amd/MessagesManager-8af1b1ee.js +1 -1
  118. package/amd/MeterBar-10ec0c50.js +1 -1
  119. package/amd/MeterCircle-cce2cb51.js +1 -1
  120. package/amd/{Modal-991f1310.js → Modal-21aed044.js} +2 -2
  121. package/amd/{Modal-991f1310.js.map → Modal-21aed044.js.map} +1 -1
  122. package/amd/{MonthView-1a60836e.js → MonthView-d4c06203.js} +2 -2
  123. package/amd/{MonthView-1a60836e.js.map → MonthView-d4c06203.js.map} +1 -1
  124. package/amd/NavigationList-6ca9cfba.js +2 -0
  125. package/amd/NavigationList-6ca9cfba.js.map +1 -0
  126. package/amd/NavigationListItem-43b6130b.js +2 -0
  127. package/amd/NavigationListItem-43b6130b.js.map +1 -0
  128. package/amd/NumberInputText-66e2d7d1.js +1 -1
  129. package/amd/{OverflowTabBar-6b2d76c0.js → OverflowTabBar-127659f1.js} +2 -2
  130. package/amd/{OverflowTabBar-6b2d76c0.js.map → OverflowTabBar-127659f1.js.map} +1 -1
  131. package/amd/OverflowTabBarItem-5404d133.js +2 -0
  132. package/amd/{OverflowTabBarItem-4c54927d.js.map → OverflowTabBarItem-5404d133.js.map} +1 -1
  133. package/amd/PRIVATE_BaseCardView.js +1 -1
  134. package/amd/PRIVATE_Chart.js +1 -1
  135. package/amd/PRIVATE_CheckboxControl.js +1 -1
  136. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  137. package/amd/PRIVATE_ClearIcon.js +1 -1
  138. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  139. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  140. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  141. package/amd/PRIVATE_FormControls.js +1 -1
  142. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  143. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  144. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  145. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  146. package/amd/PRIVATE_Icons/DragV.js +1 -1
  147. package/amd/PRIVATE_Icons/WarningS.js +1 -1
  148. package/amd/PRIVATE_List.js +1 -1
  149. package/amd/PRIVATE_LoadMoreCollection.js +1 -1
  150. package/amd/PRIVATE_Message.js +1 -1
  151. package/amd/PRIVATE_MessageLayer.js +1 -1
  152. package/amd/PRIVATE_MonthView.js +1 -1
  153. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  154. package/amd/PRIVATE_PlotArea.js +1 -1
  155. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  156. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  157. package/amd/PRIVATE_SelectCommon.js +1 -1
  158. package/amd/PRIVATE_StyledCard.js +1 -1
  159. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  160. package/amd/PRIVATE_Table.js +1 -1
  161. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  162. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  163. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  164. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  165. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  166. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  167. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  190. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  191. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  192. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  193. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  194. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  195. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  196. package/amd/PRIVATE_TimeComponent.js +1 -1
  197. package/amd/PRIVATE_VirtualizedCollection.js +1 -1
  198. package/amd/PRIVATE_VisOverview.js +1 -1
  199. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  200. package/amd/PictoChart-952582dd.js +1 -1
  201. package/amd/PieChart-7826bf45.js +1 -1
  202. package/amd/{Popup-bba2ea15.js → Popup-92dfc51f.js} +2 -2
  203. package/amd/{Popup-bba2ea15.js.map → Popup-92dfc51f.js.map} +1 -1
  204. package/amd/{ProgressBar-4c24733e.js → ProgressBar-2087dde3.js} +2 -2
  205. package/amd/{ProgressBar-4c24733e.js.map → ProgressBar-2087dde3.js.map} +1 -1
  206. package/amd/ProgressButton-b830eead.js +1 -1
  207. package/amd/ProgressButtonLabelLayout-5404f190.js +1 -1
  208. package/amd/{ProgressCircle-57ce7b94.js → ProgressCircle-5709a095.js} +2 -2
  209. package/amd/{ProgressCircle-57ce7b94.js.map → ProgressCircle-5709a095.js.map} +1 -1
  210. package/amd/RadioItem-b159fce3.js +1 -1
  211. package/amd/RatingGauge-27c01e2c.js +1 -1
  212. package/amd/ReadonlyTextFieldInput-b8ee28da.js +1 -1
  213. package/amd/RemovableNavigationListItem-110f19ed.js +2 -0
  214. package/amd/{RemovableNavigationListItem-87e208e1.js.map → RemovableNavigationListItem-110f19ed.js.map} +1 -1
  215. package/amd/RemovableTabBarItem-3792c8fd.js +1 -1
  216. package/amd/{ReorderableTabBar-cdafd5b2.js → ReorderableTabBar-d6720955.js} +2 -2
  217. package/amd/{ReorderableTabBar-cdafd5b2.js.map → ReorderableTabBar-d6720955.js.map} +1 -1
  218. package/amd/RevealToggleIcon-e5bc966f.js +1 -1
  219. package/amd/{ScatterChart-de870222.js → ScatterChart-a7d49c89.js} +2 -2
  220. package/amd/{ScatterChart-de870222.js.map → ScatterChart-a7d49c89.js.map} +1 -1
  221. package/amd/SectionalLegend-e9c72ba8.js +1 -1
  222. package/amd/SectionedContent-5d5ff5b9.js +2 -0
  223. package/amd/{SectionedContent-d75017a3.js.map → SectionedContent-5d5ff5b9.js.map} +1 -1
  224. package/amd/{SelectMultiple-bd6c10ec.js → SelectMultiple-05de2e07.js} +2 -2
  225. package/amd/{SelectMultiple-bd6c10ec.js.map → SelectMultiple-05de2e07.js.map} +1 -1
  226. package/amd/{SelectSingle-7df4a6fc.js → SelectSingle-9e6bde58.js} +2 -2
  227. package/amd/{SelectSingle-7df4a6fc.js.map → SelectSingle-9e6bde58.js.map} +1 -1
  228. package/amd/SelectionCard-977be789.js +2 -0
  229. package/amd/{SelectionCard-baeadf9f.js.map → SelectionCard-977be789.js.map} +1 -1
  230. package/amd/Selector-b67fe1ef.js +1 -1
  231. package/amd/{SelectorAll-344e3366.js → SelectorAll-face9708.js} +2 -2
  232. package/amd/{SelectorAll-344e3366.js.map → SelectorAll-face9708.js.map} +1 -1
  233. package/amd/{Sheet-f4665056.js → Sheet-23307184.js} +2 -2
  234. package/amd/{Sheet-f4665056.js.map → Sheet-23307184.js.map} +1 -1
  235. package/amd/SplitMenuButton-8d873373.js +1 -1
  236. package/amd/{StyledCard-420ef03c.js → StyledCard-5c9cee13.js} +2 -2
  237. package/amd/{StyledCard-420ef03c.js.map → StyledCard-5c9cee13.js.map} +1 -1
  238. package/amd/{StyledLabelValueLayout-16380e6b.js → StyledLabelValueLayout-ddf48667.js} +2 -2
  239. package/amd/{StyledLabelValueLayout-16380e6b.js.map → StyledLabelValueLayout-ddf48667.js.map} +1 -1
  240. package/amd/StyledTextField-3398bf94.js +1 -1
  241. package/amd/TabBar-3a35b525.js +2 -0
  242. package/amd/{TabBar-8a0cbff2.js.map → TabBar-3a35b525.js.map} +1 -1
  243. package/amd/TabBarItem-04031938.js +1 -1
  244. package/amd/TabBarLayout-de1e43f5.js +1 -1
  245. package/amd/TabBarMixed-28b62328.js +2 -0
  246. package/amd/{TabBarMixed-d4482b12.js.map → TabBarMixed-28b62328.js.map} +1 -1
  247. package/amd/{TabBarMixedSeparator-84722127.js → TabBarMixedSeparator-bd0668c3.js} +2 -2
  248. package/amd/{TabBarMixedSeparator-84722127.js.map → TabBarMixedSeparator-bd0668c3.js.map} +1 -1
  249. package/amd/{Table-10903596.js → Table-d8edded4.js} +2 -2
  250. package/amd/{Table-10903596.js.map → Table-d8edded4.js.map} +1 -1
  251. package/amd/{TableView-1f5264e6.js → TableView-eb139e29.js} +2 -2
  252. package/amd/{TableView-1f5264e6.js.map → TableView-eb139e29.js.map} +1 -1
  253. package/amd/TagCloud-057fa603.js +1 -1
  254. package/amd/TextArea-8dcf6809.js +1 -1
  255. package/amd/TextAreaAutosize-97aba344.js +1 -1
  256. package/amd/TextField-80908a0d.js +1 -1
  257. package/amd/TextFieldInput-ca306ad6.js +1 -1
  258. package/amd/Theme-redwood/theme.css +237 -237
  259. package/amd/Theme-stable/theme.css +236 -236
  260. package/amd/TimeComponentCanvas2D-9a091053.js +1 -1
  261. package/amd/Toolbar-250d0ce7.js +1 -1
  262. package/amd/TruncatingBadge-6c7674e0.js +1 -1
  263. package/amd/TruncatingText-24914f42.js +1 -1
  264. package/amd/UNSAFE_ActionCard.js +1 -1
  265. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  266. package/amd/UNSAFE_BarChart.js +1 -1
  267. package/amd/UNSAFE_BaseButton.js +1 -1
  268. package/amd/UNSAFE_Button.js +1 -1
  269. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  270. package/amd/UNSAFE_ButtonSet.js +1 -1
  271. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  272. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  273. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  274. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  275. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  276. package/amd/UNSAFE_Card.js +1 -1
  277. package/amd/UNSAFE_CardFlexView.js +1 -1
  278. package/amd/UNSAFE_CardGridView.js +1 -1
  279. package/amd/UNSAFE_Center.js +1 -1
  280. package/amd/UNSAFE_Checkbox.js +1 -1
  281. package/amd/UNSAFE_CheckboxItem.js +1 -1
  282. package/amd/UNSAFE_CheckboxSet.js +1 -1
  283. package/amd/UNSAFE_Chip.js +1 -1
  284. package/amd/UNSAFE_Collapsible.js +1 -1
  285. package/amd/UNSAFE_ComboChart.js +1 -1
  286. package/amd/UNSAFE_ComponentMessage.js +1 -1
  287. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  288. package/amd/UNSAFE_DatePicker.js +1 -1
  289. package/amd/UNSAFE_Diagram.js +1 -1
  290. package/amd/UNSAFE_Dialog.js +1 -1
  291. package/amd/UNSAFE_DragHandle.js +1 -1
  292. package/amd/UNSAFE_DrawerLayout.js +1 -1
  293. package/amd/UNSAFE_DrawerPopup.js +1 -1
  294. package/amd/UNSAFE_Dropdown.js +1 -1
  295. package/amd/UNSAFE_Environment.js +1 -1
  296. package/amd/UNSAFE_ExpandableList.js +1 -1
  297. package/amd/UNSAFE_FilePicker.js +1 -1
  298. package/amd/UNSAFE_Flex.js +1 -1
  299. package/amd/UNSAFE_Floating.js +1 -1
  300. package/amd/UNSAFE_FormLayout.js +1 -1
  301. package/amd/UNSAFE_Gantt.js +1 -1
  302. package/amd/UNSAFE_Grid.js +1 -1
  303. package/amd/UNSAFE_HighlightText.js +1 -1
  304. package/amd/UNSAFE_Icon.js +1 -1
  305. package/amd/UNSAFE_IconButton.js +1 -1
  306. package/amd/UNSAFE_IconMenuButton.js +1 -1
  307. package/amd/UNSAFE_IconProgressButton.js +1 -1
  308. package/amd/UNSAFE_IconToggleButton.js +1 -1
  309. package/amd/UNSAFE_Indexer.js +1 -1
  310. package/amd/UNSAFE_InputDateMask.js +1 -1
  311. package/amd/UNSAFE_InputDatePicker.js +1 -1
  312. package/amd/UNSAFE_InputPassword.js +1 -1
  313. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  314. package/amd/UNSAFE_InputText.js +1 -1
  315. package/amd/UNSAFE_InputTimeMask.js +1 -1
  316. package/amd/UNSAFE_Label.js +1 -1
  317. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  318. package/amd/UNSAFE_LabelledLink.js +1 -1
  319. package/amd/UNSAFE_Layer.js +1 -1
  320. package/amd/UNSAFE_Legend.js +1 -1
  321. package/amd/UNSAFE_LineAreaChart.js +1 -1
  322. package/amd/UNSAFE_Link.js +1 -1
  323. package/amd/UNSAFE_ListItemLayout.js +1 -1
  324. package/amd/UNSAFE_ListView.js +1 -1
  325. package/amd/UNSAFE_LiveRegion.js +1 -1
  326. package/amd/UNSAFE_Menu.js +1 -1
  327. package/amd/UNSAFE_MenuButton.js +1 -1
  328. package/amd/UNSAFE_MessageBanner.js +1 -1
  329. package/amd/UNSAFE_MessageToast.js +1 -1
  330. package/amd/UNSAFE_MeterBar.js +1 -1
  331. package/amd/UNSAFE_MeterCircle.js +1 -1
  332. package/amd/UNSAFE_Modal.js +1 -1
  333. package/amd/UNSAFE_NavigationList.js +1 -1
  334. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  335. package/amd/UNSAFE_NumberInputText.js +1 -1
  336. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  337. package/amd/UNSAFE_PictoChart.js +1 -1
  338. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  339. package/amd/UNSAFE_PieChart.js +1 -1
  340. package/amd/UNSAFE_Popup.js +1 -1
  341. package/amd/UNSAFE_ProgressBar.js +1 -1
  342. package/amd/UNSAFE_ProgressButton.js +1 -1
  343. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  344. package/amd/UNSAFE_ProgressCircle.js +1 -1
  345. package/amd/UNSAFE_RadioItem.js +1 -1
  346. package/amd/UNSAFE_RadioSet.js +1 -1
  347. package/amd/UNSAFE_RatingGauge.js +1 -1
  348. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  349. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  350. package/amd/UNSAFE_RichRadioSet.js +1 -1
  351. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  352. package/amd/UNSAFE_ScatterChart.js +1 -1
  353. package/amd/UNSAFE_SectionalLegend.js +1 -1
  354. package/amd/UNSAFE_SelectMultiple.js +1 -1
  355. package/amd/UNSAFE_SelectSingle.js +1 -1
  356. package/amd/UNSAFE_SelectionCard.js +1 -1
  357. package/amd/UNSAFE_Selector.js +1 -1
  358. package/amd/UNSAFE_SelectorAll.js +1 -1
  359. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  360. package/amd/UNSAFE_Sheet.js +1 -1
  361. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  362. package/amd/UNSAFE_TabBar.js +1 -1
  363. package/amd/UNSAFE_TabBarCommon.js +1 -1
  364. package/amd/UNSAFE_TabBarMixed.js +1 -1
  365. package/amd/UNSAFE_TableView.js +1 -1
  366. package/amd/UNSAFE_TagCloud.js +1 -1
  367. package/amd/UNSAFE_TextArea.js +1 -1
  368. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  369. package/amd/UNSAFE_TextField.js +1 -1
  370. package/amd/UNSAFE_ToggleButton.js +1 -1
  371. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  372. package/amd/UNSAFE_Toolbar.js +1 -1
  373. package/amd/UNSAFE_Train.js +1 -1
  374. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  375. package/amd/UNSAFE_TruncatingText.js +1 -1
  376. package/amd/UNSAFE_UserAssistance.js +1 -1
  377. package/amd/UNSAFE_View.js +1 -1
  378. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  379. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  380. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  381. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  382. package/amd/UNSAFE_WindowOverlay.js +1 -1
  383. package/amd/{View-59fe568d.js → View-e15784b7.js} +2 -2
  384. package/amd/{View-59fe568d.js.map → View-e15784b7.js.map} +1 -1
  385. package/amd/{VirtualizedCollection-63223f5e.js → VirtualizedCollection-897516a5.js} +2 -2
  386. package/amd/{VirtualizedCollection-63223f5e.js.map → VirtualizedCollection-897516a5.js.map} +1 -1
  387. package/amd/VirtualizedListView-7cfd200d.js +2 -0
  388. package/amd/{VirtualizedListView-061057dd.js.map → VirtualizedListView-7cfd200d.js.map} +1 -1
  389. package/amd/{VisNoData-b60000bf.js → VisNoData-ac5880b9.js} +2 -2
  390. package/amd/{VisNoData-b60000bf.js.map → VisNoData-ac5880b9.js.map} +1 -1
  391. package/amd/VisProgressiveLoader-01e7a1a8.js +2 -0
  392. package/amd/{VisProgressiveLoader-c90f62c3.js.map → VisProgressiveLoader-01e7a1a8.js.map} +1 -1
  393. package/amd/{VisTabularDatatip-23cf3cfc.js → VisTabularDatatip-8e572ce2.js} +2 -2
  394. package/amd/{VisTabularDatatip-23cf3cfc.js.map → VisTabularDatatip-8e572ce2.js.map} +1 -1
  395. package/amd/{WindowOverlay-00523782.js → WindowOverlay-3d31f35a.js} +2 -2
  396. package/amd/{WindowOverlay-00523782.js.map → WindowOverlay-3d31f35a.js.map} +1 -1
  397. package/amd/{YearsGridView-b0b18b18.js → YearsGridView-f7ae554d.js} +2 -2
  398. package/amd/{YearsGridView-b0b18b18.js.map → YearsGridView-f7ae554d.js.map} +1 -1
  399. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  400. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  401. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  402. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  403. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  404. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  405. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  406. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  407. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  408. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  409. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  410. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  411. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  412. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  413. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  414. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  415. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  416. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  417. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  418. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  419. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  420. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  421. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  422. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  423. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  424. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  425. package/amd/hooks/UNSAFE_useScale.js +1 -1
  426. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  427. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  428. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  429. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  430. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  431. package/amd/hooks/UNSAFE_useUser.js +1 -1
  432. package/amd/{index-32a870a0.js → index-191c944d.js} +2 -2
  433. package/amd/index-191c944d.js.map +1 -0
  434. package/amd/listViewSelectionTests-338c9a81.js +1 -1
  435. package/amd/{popupUtils-710dc910.js → popupUtils-2308a848.js} +2 -2
  436. package/amd/{popupUtils-710dc910.js.map → popupUtils-2308a848.js.map} +1 -1
  437. package/amd/render-436a0489.js +2 -0
  438. package/amd/{render-6d2dc229.js.map → render-436a0489.js.map} +1 -1
  439. package/amd/{tabbableUtils-140cad66.js → tabbableUtils-dcf7c977.js} +2 -2
  440. package/amd/{tabbableUtils-140cad66.js.map → tabbableUtils-dcf7c977.js.map} +1 -1
  441. package/amd/{testData-bd34f137.js → testData-69541e84.js} +2 -2
  442. package/amd/{testData-bd34f137.js.map → testData-69541e84.js.map} +1 -1
  443. package/amd/tooltipUtils-cf586837.js +2 -0
  444. package/amd/{tooltipUtils-304eef18.js.map → tooltipUtils-cf586837.js.map} +1 -1
  445. package/amd/useCellNavigation-dcf1584f.js +1 -1
  446. package/amd/useChartContextMenu-79ff2c41.js +1 -1
  447. package/amd/{useChartDatatip-1f138781.js → useChartDatatip-f3574090.js} +2 -2
  448. package/amd/{useChartDatatip-1f138781.js.map → useChartDatatip-f3574090.js.map} +1 -1
  449. package/amd/{useColorScheme-8358a6c9.js → useColorScheme-47c8be99.js} +2 -2
  450. package/amd/{useColorScheme-8358a6c9.js.map → useColorScheme-47c8be99.js.map} +1 -1
  451. package/amd/useContextMenu-599ada89.js +1 -1
  452. package/amd/{useCssVars-4d0eeaa3.js → useCssVars-0b95ef7d.js} +2 -2
  453. package/amd/{useCssVars-4d0eeaa3.js.map → useCssVars-0b95ef7d.js.map} +1 -1
  454. package/amd/{useCurrentBgColor-24e98c84.js → useCurrentBgColor-7e1d99fb.js} +2 -2
  455. package/amd/{useCurrentBgColor-24e98c84.js.map → useCurrentBgColor-7e1d99fb.js.map} +1 -1
  456. package/amd/useCurrentKey-6e7057d0.js +2 -0
  457. package/amd/{useCurrentKey-5a5ffb1e.js.map → useCurrentKey-6e7057d0.js.map} +1 -1
  458. package/amd/{useDatatip-db874c22.js → useDatatip-0c425460.js} +2 -2
  459. package/amd/{useDatatip-db874c22.js.map → useDatatip-0c425460.js.map} +1 -1
  460. package/amd/{useDensity-2b757d02.js → useDensity-5cfdc56a.js} +2 -2
  461. package/amd/{useDensity-2b757d02.js.map → useDensity-5cfdc56a.js.map} +1 -1
  462. package/amd/{useFloating-c8c92f6f.js → useFloating-3f7a017b.js} +2 -2
  463. package/amd/{useFloating-c8c92f6f.js.map → useFloating-3f7a017b.js.map} +1 -1
  464. package/amd/{useKeyboardEvents-e66373bb.js → useKeyboardEvents-f1abb59c.js} +2 -2
  465. package/amd/{useKeyboardEvents-e66373bb.js.map → useKeyboardEvents-f1abb59c.js.map} +1 -1
  466. package/amd/useLegendContextMenu-e050a6ec.js +1 -1
  467. package/amd/useMeterDatatip-d4ac4181.js +2 -0
  468. package/amd/{useMeterDatatip-8702ee6e.js.map → useMeterDatatip-d4ac4181.js.map} +1 -1
  469. package/amd/useNavigationListItem-d79484b7.js +2 -0
  470. package/amd/useNavigationListItem-d79484b7.js.map +1 -0
  471. package/amd/{useOutsideClick-39a81428.js → useOutsideClick-fc4dc457.js} +2 -2
  472. package/amd/{useOutsideClick-39a81428.js.map → useOutsideClick-fc4dc457.js.map} +1 -1
  473. package/amd/usePopupAnimation-b6303252.js +2 -0
  474. package/amd/{usePopupAnimation-7023407f.js.map → usePopupAnimation-b6303252.js.map} +1 -1
  475. package/amd/usePrefixSuffix-582e16a2.js +2 -0
  476. package/amd/{usePrefixSuffix-19a86824.js.map → usePrefixSuffix-582e16a2.js.map} +1 -1
  477. package/amd/{useReorderableItem-fa5fd0f4.js → useReorderableItem-fd5a7b07.js} +2 -2
  478. package/amd/{useReorderableItem-fa5fd0f4.js.map → useReorderableItem-fd5a7b07.js.map} +1 -1
  479. package/amd/{useRovingTabIndexContainer-6b89c886.js → useRovingTabIndexContainer-f72b17ab.js} +2 -2
  480. package/amd/{useRovingTabIndexContainer-6b89c886.js.map → useRovingTabIndexContainer-f72b17ab.js.map} +1 -1
  481. package/amd/{useScale-0fb08a15.js → useScale-b2f29348.js} +2 -2
  482. package/amd/{useScale-0fb08a15.js.map → useScale-b2f29348.js.map} +1 -1
  483. package/amd/{useSelectCommon-dfd17adb.js → useSelectCommon-736de0ee.js} +2 -2
  484. package/amd/{useSelectCommon-dfd17adb.js.map → useSelectCommon-736de0ee.js.map} +1 -1
  485. package/amd/{useSelectDrill-03c65602.js → useSelectDrill-6b0b6da7.js} +2 -2
  486. package/amd/{useSelectDrill-03c65602.js.map → useSelectDrill-6b0b6da7.js.map} +1 -1
  487. package/amd/{useSelection-569188b3.js → useSelection-02c4c0c0.js} +2 -2
  488. package/amd/{useSelection-569188b3.js.map → useSelection-02c4c0c0.js.map} +1 -1
  489. package/amd/{useSelection-4c8e905b.js → useSelection-5128f1e7.js} +2 -2
  490. package/amd/{useSelection-4c8e905b.js.map → useSelection-5128f1e7.js.map} +1 -1
  491. package/amd/useTabBar-b1536c9a.js +1 -1
  492. package/amd/{useTestId-d0c49456.js → useTestId-efb1c8f9.js} +2 -2
  493. package/amd/{useTestId-d0c49456.js.map → useTestId-efb1c8f9.js.map} +1 -1
  494. package/amd/{useTheme-915016ef.js → useTheme-a99513fe.js} +2 -2
  495. package/amd/{useTheme-915016ef.js.map → useTheme-a99513fe.js.map} +1 -1
  496. package/amd/useThemeInterpolations-93c8c4c0.js +2 -0
  497. package/amd/{useThemeInterpolations-95e6f849.js.map → useThemeInterpolations-93c8c4c0.js.map} +1 -1
  498. package/amd/{useTooltip-f7c1ad5c.js → useTooltip-c10bcc4e.js} +2 -2
  499. package/amd/{useTooltip-f7c1ad5c.js.map → useTooltip-c10bcc4e.js.map} +1 -1
  500. package/amd/{useTooltipOnTruncation-7a2a7106.js → useTooltipOnTruncation-a913ba8a.js} +2 -2
  501. package/amd/{useTooltipOnTruncation-7a2a7106.js.map → useTooltipOnTruncation-a913ba8a.js.map} +1 -1
  502. package/amd/{useTranslationBundle-652e08a6.js → useTranslationBundle-33399171.js} +2 -2
  503. package/amd/{useTranslationBundle-652e08a6.js.map → useTranslationBundle-33399171.js.map} +1 -1
  504. package/amd/{useUser-abae2493.js → useUser-33136570.js} +2 -2
  505. package/amd/{useUser-abae2493.js.map → useUser-33136570.js.map} +1 -1
  506. package/amd/useVisDragModeControls-120076e9.js +1 -1
  507. package/amd/{useVisEvents-a2e7394b.js → useVisEvents-bc470edf.js} +2 -2
  508. package/amd/{useVisEvents-a2e7394b.js.map → useVisEvents-bc470edf.js.map} +1 -1
  509. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  510. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  511. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  512. package/amd/{withDirectionIcon-194f3242.js → withDirectionIcon-56788c71.js} +2 -2
  513. package/amd/{withDirectionIcon-194f3242.js.map → withDirectionIcon-56788c71.js.map} +1 -1
  514. package/amd/withThemeProps-5ba8f3bc.js +1 -1
  515. package/cjs/{BarChart-a07c8a22.js → BarChart-af620cec.js} +2 -2
  516. package/cjs/{BarChart-a07c8a22.js.map → BarChart-af620cec.js.map} +1 -1
  517. package/cjs/{Chart-6e0cf724.js → Chart-6b63bb0b.js} +2 -2
  518. package/cjs/{Chart-6e0cf724.js.map → Chart-6b63bb0b.js.map} +1 -1
  519. package/cjs/{ComboChart-3d1bb4e9.js → ComboChart-58116ae8.js} +2 -2
  520. package/cjs/{ComboChart-3d1bb4e9.js.map → ComboChart-58116ae8.js.map} +1 -1
  521. package/cjs/{LineAreaChart-c6143d4b.js → LineAreaChart-b32fcb7b.js} +2 -2
  522. package/cjs/{LineAreaChart-c6143d4b.js.map → LineAreaChart-b32fcb7b.js.map} +1 -1
  523. package/cjs/PRIVATE_Chart.js +4 -4
  524. package/cjs/{ScatterChart-9a324d67.js → ScatterChart-0ec451fd.js} +2 -2
  525. package/cjs/{ScatterChart-9a324d67.js.map → ScatterChart-0ec451fd.js.map} +1 -1
  526. package/cjs/Theme-redwood/theme.css +230 -230
  527. package/cjs/Theme-stable/theme.css +256 -256
  528. package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
  529. package/cjs/UNSAFE_BarChart.js +5 -5
  530. package/cjs/UNSAFE_ComboChart.js +5 -5
  531. package/cjs/UNSAFE_LineAreaChart.js +5 -5
  532. package/cjs/UNSAFE_ScatterChart.js +5 -5
  533. package/es/ActionCard-9f4e3613.js +1 -1
  534. package/es/BarChart-49c7f6bb.js +1 -1
  535. package/es/BarGroup-ac152c88.js +1 -1
  536. package/es/BaseButton-b5fc41a8.js +2 -2
  537. package/es/BaseCardView-5e0a327f.js +7 -7
  538. package/es/{BaseCardViewSelectionTest-639276bd.js → BaseCardViewSelectionTest-b3b001e6.js} +7 -7
  539. package/es/{BaseCardViewSelectionTest-639276bd.js.map → BaseCardViewSelectionTest-b3b001e6.js.map} +1 -1
  540. package/es/BaseNavigationListItem-44157da8.js +1 -1
  541. package/es/BaseRichSelection-908a6bc3.js +9 -9
  542. package/es/ButtonSet-474e170e.js +2 -2
  543. package/es/ButtonSetIconButton-34b24ad4.js +3 -3
  544. package/es/{Card-48705b23.js → Card-31a1cb19.js} +2 -2
  545. package/es/{Card-48705b23.js.map → Card-31a1cb19.js.map} +1 -1
  546. package/es/{Center-f5a074ea.js → Center-903e6ea1.js} +2 -2
  547. package/es/{Center-f5a074ea.js.map → Center-903e6ea1.js.map} +1 -1
  548. package/es/Chart-649fdf1c.js +8 -8
  549. package/es/CheckboxControl-1e686657.js +6 -6
  550. package/es/CheckboxRadioField-201ef340.js +7 -7
  551. package/es/Chip-9540ef60.js +1 -1
  552. package/es/ClearIcon-215c5c34.js +1 -1
  553. package/es/CollapseIcon-43663109.js +1 -1
  554. package/es/Collapsible-757eaed6.js +2 -2
  555. package/es/ComboChart-8ca6f857.js +2 -2
  556. package/es/CompactHelpSource-20f20c17.js +2 -2
  557. package/es/{CompactLabelAssistance-e6df8b6f.js → CompactLabelAssistance-d92b17d1.js} +5 -5
  558. package/es/{CompactLabelAssistance-e6df8b6f.js.map → CompactLabelAssistance-d92b17d1.js.map} +1 -1
  559. package/es/CompactUserAssistance-c2fafab0.js +4 -4
  560. package/es/ComponentMessageContainer-a06ceb16.js +4 -4
  561. package/es/ConveyorBeltItem-2a7cfd15.js +2 -2
  562. package/es/{DatePicker-f149bde7.js → DatePicker-2838c573.js} +6 -6
  563. package/es/{DatePicker-f149bde7.js.map → DatePicker-2838c573.js.map} +1 -1
  564. package/es/DatePickerHeader-151355b3.js +3 -3
  565. package/es/{Diagram-32842af8.js → Diagram-7236c495.js} +5 -5
  566. package/es/{Diagram-32842af8.js.map → Diagram-7236c495.js.map} +1 -1
  567. package/es/{Dialog-dbd00dbd.js → Dialog-4a0cb90c.js} +8 -8
  568. package/es/{Dialog-dbd00dbd.js.map → Dialog-4a0cb90c.js.map} +1 -1
  569. package/es/DirectionalCollapseArrowIcon-24020989.js +1 -1
  570. package/es/DirectionalExpandArrowIcon-28f288ca.js +1 -1
  571. package/es/{DragHandle-3010d22c.js → DragHandle-f9b35377.js} +2 -2
  572. package/es/{DragHandle-3010d22c.js.map → DragHandle-f9b35377.js.map} +1 -1
  573. package/es/{DrawerPopup-90be1472.js → DrawerPopup-dd60ef68.js} +7 -7
  574. package/es/{DrawerPopup-90be1472.js.map → DrawerPopup-dd60ef68.js.map} +1 -1
  575. package/es/DrawerPopupVariants.styles.css +5 -5
  576. package/es/DrawerPopupVariants.styles2.css +5 -5
  577. package/es/{Dropdown-8936afb0.js → Dropdown-ab7ecd4b.js} +5 -5
  578. package/es/{Dropdown-8936afb0.js.map → Dropdown-ab7ecd4b.js.map} +1 -1
  579. package/es/{EnvironmentProvider-e6ce326b.js → EnvironmentProvider-1580c879.js} +3 -3
  580. package/es/{EnvironmentProvider-e6ce326b.js.map → EnvironmentProvider-1580c879.js.map} +1 -1
  581. package/es/ExpandableList-84f08709.js +3 -3
  582. package/es/FilePicker-74669308.js +2 -2
  583. package/es/{Flex-dce7c423.js → Flex-ba379500.js} +2 -2
  584. package/es/{Flex-dce7c423.js.map → Flex-ba379500.js.map} +1 -1
  585. package/es/{Floating-bd10e1bb.js → Floating-94a06a14.js} +4 -4
  586. package/es/{Floating-bd10e1bb.js.map → Floating-94a06a14.js.map} +1 -1
  587. package/es/FormLayout-2fba104e.js +1 -1
  588. package/es/FormLayoutVariants.styles.css +14 -14
  589. package/es/FormLayoutVariants.styles2.css +14 -14
  590. package/es/Gantt-f95290cd.js +9 -9
  591. package/es/{Grid-a92f6ff7.js → Grid-48e5c78c.js} +2 -2
  592. package/es/{Grid-a92f6ff7.js.map → Grid-48e5c78c.js.map} +1 -1
  593. package/es/{Gridlines-14e60b77.js → Gridlines-bb3b92f4.js} +2 -2
  594. package/es/{Gridlines-14e60b77.js.map → Gridlines-bb3b92f4.js.map} +1 -1
  595. package/es/GroupLoadingIndicator-2a294121.js +1 -1
  596. package/es/{HighlightText-6fb192ee.js → HighlightText-a2f81a44.js} +2 -2
  597. package/es/{HighlightText-6fb192ee.js.map → HighlightText-a2f81a44.js.map} +1 -1
  598. package/es/Icon-43d05084.js +3 -3
  599. package/es/IconButton-b78b5ace.js +3 -3
  600. package/es/IconMenuButton-441b34f8.js +3 -3
  601. package/es/IconProgressButton-cb75faa2.js +3 -3
  602. package/es/IconSwitchButton-4febde18.js +3 -3
  603. package/es/IconToggleButton-299d5d98.js +3 -3
  604. package/es/{IconUserAssistance-bb4f169d.js → IconUserAssistance-264032b1.js} +3 -3
  605. package/es/{IconUserAssistance-bb4f169d.js.map → IconUserAssistance-264032b1.js.map} +1 -1
  606. package/es/Indexer-6c39ddf3.js +4 -4
  607. package/es/InlineHelpSource-e0c901ba.js +1 -1
  608. package/es/InlineUserAssistance-9b70db5b.js +5 -5
  609. package/es/InputDateMask-0b2a46b5.js +7 -7
  610. package/es/{InputDatePicker-2d3be3a0.js → InputDatePicker-60465b12.js} +10 -10
  611. package/es/{InputDatePicker-2d3be3a0.js.map → InputDatePicker-60465b12.js.map} +1 -1
  612. package/es/InputPassword-106c544f.js +4 -4
  613. package/es/InputText-2bf2ce27.js +6 -6
  614. package/es/Label-4503b935.js +5 -5
  615. package/es/LabelValueLayout-fa08943c.js +1 -1
  616. package/es/{Layer-f309effc.js → Layer-d4aca92e.js} +3 -3
  617. package/es/{Layer-f309effc.js.map → Layer-d4aca92e.js.map} +1 -1
  618. package/es/{LayerHost-ca080d9a.js → LayerHost-f7ef254c.js} +2 -2
  619. package/es/{LayerHost-ca080d9a.js.map → LayerHost-f7ef254c.js.map} +1 -1
  620. package/es/{LayerManager-3e4e8d1a.js → LayerManager-4ad387dc.js} +2 -2
  621. package/es/{LayerManager-3e4e8d1a.js.map → LayerManager-4ad387dc.js.map} +1 -1
  622. package/es/Legend-449e7201.js +3 -3
  623. package/es/{LineAreaChart-edf11a57.js → LineAreaChart-9a46dce5.js} +3 -3
  624. package/es/{LineAreaChart-edf11a57.js.map → LineAreaChart-9a46dce5.js.map} +1 -1
  625. package/es/{LineSeries-89d507a5.js → LineSeries-e71ae377.js} +2 -2
  626. package/es/{LineSeries-89d507a5.js.map → LineSeries-e71ae377.js.map} +1 -1
  627. package/es/Link-9803ca5b.js +1 -1
  628. package/es/List-da0ce081.js +5 -5
  629. package/es/{ListItemLayout-b580a2cb.js → ListItemLayout-1207112f.js} +2 -2
  630. package/es/{ListItemLayout-b580a2cb.js.map → ListItemLayout-1207112f.js.map} +1 -1
  631. package/es/ListView-5cada8e6.js +3 -3
  632. package/es/{LiveRegion-7d6e9b93.js → LiveRegion-d9f2bbdb.js} +2 -2
  633. package/es/{LiveRegion-7d6e9b93.js.map → LiveRegion-d9f2bbdb.js.map} +1 -1
  634. package/es/{MaxLengthLiveRegion-3d6867c3.js → MaxLengthLiveRegion-db713260.js} +3 -3
  635. package/es/{MaxLengthLiveRegion-3d6867c3.js.map → MaxLengthLiveRegion-db713260.js.map} +1 -1
  636. package/es/Menu-aa21f75f.js +6 -6
  637. package/es/MenuButton-fe7e2d06.js +2 -2
  638. package/es/MenuItem-01343558.js +1 -1
  639. package/es/Message-98038159.js +2 -2
  640. package/es/{MessageLayer-707a3302.js → MessageLayer-7650c582.js} +6 -6
  641. package/es/{MessageLayer-707a3302.js.map → MessageLayer-7650c582.js.map} +1 -1
  642. package/es/MessageToast-2b7922be.js +8 -8
  643. package/es/MessagesManager-9efc5d44.js +3 -3
  644. package/es/MeterBar-1319327c.js +5 -5
  645. package/es/MeterCircle-b52c28b1.js +5 -5
  646. package/es/{Modal-9bdb87a4.js → Modal-7efd2f81.js} +4 -4
  647. package/es/{Modal-9bdb87a4.js.map → Modal-7efd2f81.js.map} +1 -1
  648. package/es/{MonthView-7f913bb2.js → MonthView-df043775.js} +4 -4
  649. package/es/{MonthView-7f913bb2.js.map → MonthView-df043775.js.map} +1 -1
  650. package/es/{NavigationListItem-7e0a2d00.js → NavigationListItem-bdf7a2ab.js} +16 -3
  651. package/{amd/NavigationListItem-4e832bbf.js.map → es/NavigationListItem-bdf7a2ab.js.map} +1 -1
  652. package/es/NumberInputText-c71b0b51.js +6 -6
  653. package/es/{OverflowTabBar-8dbc44bf.js → OverflowTabBar-732d37e5.js} +2 -2
  654. package/es/{OverflowTabBar-8dbc44bf.js.map → OverflowTabBar-732d37e5.js.map} +1 -1
  655. package/es/{OverflowTabBarItem-63bd56a4.js → OverflowTabBarItem-b643a574.js} +5 -5
  656. package/es/{OverflowTabBarItem-63bd56a4.js.map → OverflowTabBarItem-b643a574.js.map} +1 -1
  657. package/es/PRIVATE_BaseCardView.js +21 -21
  658. package/es/PRIVATE_Chart.js +31 -31
  659. package/es/PRIVATE_CheckboxControl.js +23 -23
  660. package/es/PRIVATE_CheckboxRadioField.js +25 -25
  661. package/es/PRIVATE_ClearIcon.js +17 -17
  662. package/es/PRIVATE_DatePickerHeader.js +18 -18
  663. package/es/PRIVATE_DatePickerLayout.js +4 -4
  664. package/es/PRIVATE_EmbeddedIconButton.js +3 -3
  665. package/es/PRIVATE_FormControls.js +19 -19
  666. package/es/PRIVATE_IconSwitchButton.js +15 -15
  667. package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
  668. package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
  669. package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
  670. package/es/PRIVATE_Icons/DragV.js +15 -15
  671. package/es/PRIVATE_Icons/WarningS.js +15 -15
  672. package/es/PRIVATE_List.js +19 -19
  673. package/es/PRIVATE_Message.js +18 -18
  674. package/es/PRIVATE_MessageLayer.js +12 -12
  675. package/es/PRIVATE_MonthView.js +7 -7
  676. package/es/PRIVATE_MonthYearGridView.js +7 -7
  677. package/es/PRIVATE_PlotArea.js +4 -4
  678. package/es/PRIVATE_RevealToggleIcon.js +16 -16
  679. package/es/PRIVATE_RichSelectionCommon.js +26 -26
  680. package/es/PRIVATE_SelectCommon.js +28 -28
  681. package/es/PRIVATE_StyledCard.js +4 -4
  682. package/es/PRIVATE_StyledCheckbox.js +15 -15
  683. package/es/PRIVATE_Table.js +24 -24
  684. package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
  685. package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
  686. package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
  687. package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
  688. package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
  689. package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
  690. package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
  691. package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
  692. package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
  693. package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
  694. package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
  695. package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
  696. package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
  697. package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
  698. package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
  699. package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
  700. package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
  701. package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
  702. package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
  703. package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
  704. package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
  705. package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
  706. package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
  707. package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
  708. package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
  709. package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
  710. package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
  711. package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
  712. package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
  713. package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
  714. package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
  715. package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
  716. package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
  717. package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
  718. package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
  719. package/es/PRIVATE_TimeComponent.js +17 -17
  720. package/es/PRIVATE_VisOverview.js +15 -15
  721. package/es/PRIVATE_VisTabularDatatip.js +4 -4
  722. package/es/PictoChart-b3fc22fd.js +6 -6
  723. package/es/PieChart-b54696a5.js +6 -6
  724. package/es/{Popup-0b60095e.js → Popup-67ec4db2.js} +9 -9
  725. package/es/{Popup-0b60095e.js.map → Popup-67ec4db2.js.map} +1 -1
  726. package/es/{ProgressBar-717be5e8.js → ProgressBar-cad7d04b.js} +3 -3
  727. package/es/{ProgressBar-717be5e8.js.map → ProgressBar-cad7d04b.js.map} +1 -1
  728. package/es/ProgressButton-40c3b504.js +3 -3
  729. package/es/ProgressButtonLabelLayout-8c64cece.js +3 -3
  730. package/es/{ProgressCircle-d75b0848.js → ProgressCircle-7d883146.js} +2 -2
  731. package/es/{ProgressCircle-d75b0848.js.map → ProgressCircle-7d883146.js.map} +1 -1
  732. package/es/RadioItem-a1599b77.js +6 -6
  733. package/es/RatingGauge-6c13b141.js +8 -8
  734. package/es/ReadonlyTextFieldInput-d6b1fac1.js +1 -1
  735. package/es/RemovableNavigationListItem-84fad399.js +1 -1
  736. package/es/RemovableTabBarItem-42735820.js +2 -2
  737. package/es/ReorderableTabBar-1b2c9ebe.js +3 -3
  738. package/es/RevealToggleIcon-abf5f233.js +1 -1
  739. package/es/{ScatterChart-622aac36.js → ScatterChart-59c7f1d7.js} +3 -3
  740. package/es/{ScatterChart-622aac36.js.map → ScatterChart-59c7f1d7.js.map} +1 -1
  741. package/es/SectionalLegend-fb0128ae.js +4 -4
  742. package/es/{SectionedContent-89fd6108.js → SectionedContent-db1b2e44.js} +5 -5
  743. package/es/{SectionedContent-89fd6108.js.map → SectionedContent-db1b2e44.js.map} +1 -1
  744. package/es/SelectMultiple-48af2264.js +8 -8
  745. package/es/SelectSingle-56ff2907.js +7 -7
  746. package/es/{SelectionCard-4cf71979.js → SelectionCard-f4e6f6f4.js} +2 -2
  747. package/es/{SelectionCard-4cf71979.js.map → SelectionCard-f4e6f6f4.js.map} +1 -1
  748. package/es/Selector-cc435916.js +1 -1
  749. package/es/{SelectorAll-401564d3.js → SelectorAll-fb5a5a47.js} +7 -7
  750. package/es/{SelectorAll-401564d3.js.map → SelectorAll-fb5a5a47.js.map} +1 -1
  751. package/es/{Sheet-754bd0f0.js → Sheet-2d9c641b.js} +3 -3
  752. package/es/{Sheet-754bd0f0.js.map → Sheet-2d9c641b.js.map} +1 -1
  753. package/es/SplitMenuButton-1c556d1d.js +2 -2
  754. package/es/{StyledCard-2dc6d348.js → StyledCard-75bcdad7.js} +2 -2
  755. package/es/{StyledCard-2dc6d348.js.map → StyledCard-75bcdad7.js.map} +1 -1
  756. package/es/{StyledLabelValueLayout-f3d69ee8.js → StyledLabelValueLayout-1b0b4a96.js} +2 -2
  757. package/es/{StyledLabelValueLayout-f3d69ee8.js.map → StyledLabelValueLayout-1b0b4a96.js.map} +1 -1
  758. package/es/StyledTextField-21e8afef.js +3 -3
  759. package/es/TabBar-ef456a2c.js +5 -5
  760. package/es/TabBarItem-af8b903f.js +3 -3
  761. package/es/TabBarLayout-d7d27c34.js +1 -1
  762. package/es/TabBarMixed-71314dd9.js +5 -5
  763. package/es/{TabBarMixedSeparator-dd80c7f2.js → TabBarMixedSeparator-1aacc254.js} +2 -2
  764. package/es/{TabBarMixedSeparator-dd80c7f2.js.map → TabBarMixedSeparator-1aacc254.js.map} +1 -1
  765. package/es/Table-895c20ae.js +9 -9
  766. package/es/TagCloud-ed095030.js +8 -8
  767. package/es/TextArea-f411ff47.js +5 -5
  768. package/es/TextAreaAutosize-163b776f.js +5 -5
  769. package/es/TextField-28d425d6.js +3 -3
  770. package/es/TextFieldInput-c9239b1e.js +1 -1
  771. package/es/Theme-redwood/theme.css +426 -426
  772. package/es/Theme-stable/theme.css +311 -311
  773. package/es/TimeComponentCanvas2D-70d21419.js +5 -5
  774. package/es/Toolbar-4fe755d3.js +1 -1
  775. package/es/TruncatingBadge-a6ead29d.js +1 -1
  776. package/es/TruncatingText-107fcc48.js +1 -1
  777. package/es/UNSAFE_ActionCard.js +3 -3
  778. package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +31 -31
  779. package/es/UNSAFE_BarChart.js +31 -31
  780. package/es/UNSAFE_BaseButton.js +3 -3
  781. package/es/UNSAFE_Button.js +3 -3
  782. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
  783. package/es/UNSAFE_ButtonSet.js +4 -4
  784. package/es/UNSAFE_ButtonSetButton.js +3 -3
  785. package/es/UNSAFE_ButtonSetIconButton.js +15 -15
  786. package/es/UNSAFE_ButtonSetItem.js +15 -15
  787. package/es/UNSAFE_ButtonSetMultiple.js +4 -4
  788. package/es/UNSAFE_ButtonSetSingle.js +4 -4
  789. package/es/UNSAFE_Card.js +5 -5
  790. package/es/UNSAFE_CardFlexView.js +21 -21
  791. package/es/UNSAFE_CardGridView.js +21 -21
  792. package/es/UNSAFE_Center.js +5 -5
  793. package/es/UNSAFE_Checkbox.js +23 -23
  794. package/es/UNSAFE_CheckboxItem.js +23 -23
  795. package/es/UNSAFE_CheckboxSet.js +24 -24
  796. package/es/UNSAFE_Chip.js +2 -2
  797. package/es/UNSAFE_Collapsible.js +17 -17
  798. package/es/UNSAFE_ComboChart.js +33 -33
  799. package/es/UNSAFE_ComponentMessage.js +18 -18
  800. package/es/UNSAFE_ConveyorBelt.js +15 -15
  801. package/es/UNSAFE_DatePicker.js +23 -23
  802. package/es/UNSAFE_Diagram.js +20 -20
  803. package/es/UNSAFE_Dialog.js +21 -21
  804. package/es/UNSAFE_DragHandle.js +17 -17
  805. package/es/UNSAFE_DrawerLayout.js +12 -12
  806. package/es/UNSAFE_DrawerPopup/themes/redwood/DrawerPopupTheme.js +1 -1
  807. package/es/UNSAFE_DrawerPopup/themes/redwood/DrawerPopupVariants.css.js +1 -1
  808. package/es/UNSAFE_DrawerPopup/themes/stable/DrawerPopupTheme.js +1 -1
  809. package/es/UNSAFE_DrawerPopup/themes/stable/DrawerPopupVariants.css.js +1 -1
  810. package/es/UNSAFE_DrawerPopup.js +14 -14
  811. package/es/UNSAFE_Dropdown.js +13 -13
  812. package/es/UNSAFE_Environment.js +4 -4
  813. package/es/UNSAFE_ExpandableList.js +22 -22
  814. package/es/UNSAFE_FilePicker.js +4 -4
  815. package/es/UNSAFE_Flex.js +4 -4
  816. package/es/UNSAFE_Floating.js +11 -11
  817. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
  818. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
  819. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
  820. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
  821. package/es/UNSAFE_FormLayout.js +3 -3
  822. package/es/UNSAFE_Gantt.js +22 -22
  823. package/es/UNSAFE_Grid.js +4 -4
  824. package/es/UNSAFE_HighlightText.js +4 -4
  825. package/es/UNSAFE_Icon.js +15 -15
  826. package/es/UNSAFE_IconButton.js +15 -15
  827. package/es/UNSAFE_IconMenuButton.js +21 -21
  828. package/es/UNSAFE_IconProgressButton.js +18 -18
  829. package/es/UNSAFE_IconToggleButton.js +15 -15
  830. package/es/UNSAFE_Indexer.js +6 -6
  831. package/es/UNSAFE_InputDateMask.js +25 -25
  832. package/es/UNSAFE_InputDatePicker.js +114 -114
  833. package/es/UNSAFE_InputPassword.js +24 -24
  834. package/es/UNSAFE_InputSensitiveText.js +26 -26
  835. package/es/UNSAFE_InputText.js +27 -27
  836. package/es/UNSAFE_InputTimeMask.js +25 -25
  837. package/es/UNSAFE_Label.js +23 -23
  838. package/es/UNSAFE_LabelValueLayout.js +4 -4
  839. package/es/UNSAFE_LabelledLink.js +25 -25
  840. package/es/UNSAFE_Layer.js +8 -8
  841. package/es/UNSAFE_Legend.js +25 -25
  842. package/es/UNSAFE_LineAreaChart.js +34 -34
  843. package/es/UNSAFE_Link.js +2 -2
  844. package/es/UNSAFE_ListItemLayout.js +5 -5
  845. package/es/UNSAFE_ListView.js +28 -28
  846. package/es/UNSAFE_LiveRegion.js +4 -4
  847. package/es/UNSAFE_Menu.js +23 -23
  848. package/es/UNSAFE_MenuButton.js +21 -21
  849. package/es/UNSAFE_MessageBanner.js +18 -18
  850. package/es/UNSAFE_MessageToast.js +21 -21
  851. package/es/UNSAFE_MeterBar.js +16 -16
  852. package/es/UNSAFE_MeterCircle.js +17 -17
  853. package/es/UNSAFE_Modal.js +9 -9
  854. package/es/UNSAFE_NavigationList.js +23 -23
  855. package/es/UNSAFE_NavigationListCommon.js +17 -17
  856. package/es/UNSAFE_NumberInputText.js +26 -26
  857. package/es/UNSAFE_OverflowTabBar.js +27 -27
  858. package/es/UNSAFE_PictoChart.js +14 -14
  859. package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
  860. package/es/UNSAFE_PieChart.js +22 -22
  861. package/es/UNSAFE_Popup.js +17 -17
  862. package/es/UNSAFE_ProgressBar.js +5 -5
  863. package/es/UNSAFE_ProgressButton.js +18 -18
  864. package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
  865. package/es/UNSAFE_ProgressCircle.js +4 -4
  866. package/es/UNSAFE_RadioItem.js +23 -23
  867. package/es/UNSAFE_RadioSet.js +24 -24
  868. package/es/UNSAFE_RatingGauge.js +17 -17
  869. package/es/UNSAFE_ReorderableTabBar.js +25 -25
  870. package/es/UNSAFE_RichCheckboxSet.js +26 -26
  871. package/es/UNSAFE_RichRadioSet.js +26 -26
  872. package/es/UNSAFE_RichSelectionItem.js +20 -20
  873. package/es/UNSAFE_ScatterChart.js +34 -34
  874. package/es/UNSAFE_SectionalLegend.js +26 -26
  875. package/es/UNSAFE_SelectMultiple.js +31 -31
  876. package/es/UNSAFE_SelectSingle.js +31 -31
  877. package/es/UNSAFE_SelectionCard.js +5 -5
  878. package/es/UNSAFE_Selector.js +15 -15
  879. package/es/UNSAFE_SelectorAll.js +19 -19
  880. package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +15 -15
  881. package/es/UNSAFE_Sheet.js +12 -12
  882. package/es/UNSAFE_SplitMenuButton.js +21 -21
  883. package/es/UNSAFE_TabBar.js +27 -27
  884. package/es/UNSAFE_TabBarCommon.js +27 -27
  885. package/es/UNSAFE_TabBarMixed.js +28 -28
  886. package/es/UNSAFE_TableView.js +24 -24
  887. package/es/UNSAFE_TagCloud.js +24 -24
  888. package/es/UNSAFE_TextArea.js +26 -26
  889. package/es/UNSAFE_TextAreaAutosize.js +26 -26
  890. package/es/UNSAFE_TextField.js +8 -8
  891. package/es/UNSAFE_ToggleButton.js +3 -3
  892. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
  893. package/es/UNSAFE_Toolbar.js +4 -4
  894. package/es/UNSAFE_Train.js +16 -16
  895. package/es/UNSAFE_TruncatingBadge.js +16 -16
  896. package/es/UNSAFE_TruncatingText.js +16 -16
  897. package/es/UNSAFE_UserAssistance.js +24 -24
  898. package/es/UNSAFE_View.js +7 -7
  899. package/es/UNSAFE_VirtualizedListView.js +19 -19
  900. package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
  901. package/es/UNSAFE_VisProgressiveLoader.js +6 -6
  902. package/es/UNSAFE_VisStatusMessage.js +6 -6
  903. package/es/UNSAFE_WindowOverlay.js +4 -4
  904. package/es/{View-6941c4ec.js → View-79162397.js} +5 -5
  905. package/es/{View-6941c4ec.js.map → View-79162397.js.map} +1 -1
  906. package/es/{VisNoData-6c9dff1d.js → VisNoData-f70e7c57.js} +3 -3
  907. package/es/{VisNoData-6c9dff1d.js.map → VisNoData-f70e7c57.js.map} +1 -1
  908. package/es/{VisProgressiveLoader-af51c524.js → VisProgressiveLoader-4fe41bcb.js} +3 -3
  909. package/es/{VisProgressiveLoader-af51c524.js.map → VisProgressiveLoader-4fe41bcb.js.map} +1 -1
  910. package/es/{VisTabularDatatip-1aba2c3f.js → VisTabularDatatip-24b65098.js} +2 -2
  911. package/es/{VisTabularDatatip-1aba2c3f.js.map → VisTabularDatatip-24b65098.js.map} +1 -1
  912. package/es/{WindowOverlay-77a01a5a.js → WindowOverlay-8fbe3e1c.js} +2 -2
  913. package/es/{WindowOverlay-77a01a5a.js.map → WindowOverlay-8fbe3e1c.js.map} +1 -1
  914. package/es/{YearsGridView-38b7d276.js → YearsGridView-52c0d22c.js} +4 -4
  915. package/es/{YearsGridView-38b7d276.js.map → YearsGridView-52c0d22c.js.map} +1 -1
  916. package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
  917. package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
  918. package/es/hoc/UNSAFE_withThemeProps.js +3 -3
  919. package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
  920. package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
  921. package/es/hooks/PRIVATE_useChartEvents.js +18 -18
  922. package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
  923. package/es/hooks/PRIVATE_useCssVars.js +7 -7
  924. package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
  925. package/es/hooks/PRIVATE_useDatatip.js +12 -12
  926. package/es/hooks/PRIVATE_useFloating.js +4 -4
  927. package/es/hooks/PRIVATE_useReorderable.js +5 -5
  928. package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
  929. package/es/hooks/PRIVATE_useSelection.js +4 -4
  930. package/es/hooks/PRIVATE_useTabBar.js +4 -4
  931. package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
  932. package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
  933. package/es/hooks/PRIVATE_useVisDragModeControls.js +17 -17
  934. package/es/hooks/PRIVATE_useVisEvents.js +4 -4
  935. package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
  936. package/es/hooks/PRIVATE_useVisSelection.js +13 -13
  937. package/es/hooks/UNSAFE_useColorScheme.js +3 -3
  938. package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
  939. package/es/hooks/UNSAFE_useDensity.js +3 -3
  940. package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
  941. package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
  942. package/es/hooks/UNSAFE_useScale.js +3 -3
  943. package/es/hooks/UNSAFE_useTestId.js +3 -3
  944. package/es/hooks/UNSAFE_useTheme.js +3 -3
  945. package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
  946. package/es/hooks/UNSAFE_useTooltip.js +16 -16
  947. package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
  948. package/es/hooks/UNSAFE_useUser.js +3 -3
  949. package/es/{index-b52817d6.js → index-5d0fe60d.js} +2 -2
  950. package/es/index-5d0fe60d.js.map +1 -0
  951. package/es/listViewSelectionTests-cd66d645.js +3 -3
  952. package/es/{popupUtils-0d643529.js → popupUtils-a7caf5e4.js} +2 -2
  953. package/es/{popupUtils-0d643529.js.map → popupUtils-a7caf5e4.js.map} +1 -1
  954. package/es/{render-f43f5632.js → render-c7ce760e.js} +3 -3
  955. package/es/{render-f43f5632.js.map → render-c7ce760e.js.map} +1 -1
  956. package/es/{tabbableUtils-07dfa9ce.js → tabbableUtils-b22dbd92.js} +3 -3
  957. package/es/{tabbableUtils-07dfa9ce.js.map → tabbableUtils-b22dbd92.js.map} +1 -1
  958. package/es/{testData-75eb4f26.js → testData-a52937d8.js} +3 -3
  959. package/es/{testData-75eb4f26.js.map → testData-a52937d8.js.map} +1 -1
  960. package/es/{tooltipUtils-ae6aba72.js → tooltipUtils-179de68d.js} +5 -5
  961. package/es/{tooltipUtils-ae6aba72.js.map → tooltipUtils-179de68d.js.map} +1 -1
  962. package/es/useCellNavigation-1a33b90e.js +1 -1
  963. package/es/useChartContextMenu-bedf2f88.js +2 -2
  964. package/es/{useChartDatatip-ae7cffcb.js → useChartDatatip-652d9595.js} +4 -4
  965. package/es/{useChartDatatip-ae7cffcb.js.map → useChartDatatip-652d9595.js.map} +1 -1
  966. package/es/{useColorScheme-831abf37.js → useColorScheme-4414c0b2.js} +2 -2
  967. package/es/{useColorScheme-831abf37.js.map → useColorScheme-4414c0b2.js.map} +1 -1
  968. package/es/useContextMenu-006e82dd.js +2 -2
  969. package/es/{useCssVars-6295c03a.js → useCssVars-0788f28c.js} +5 -5
  970. package/es/{useCssVars-6295c03a.js.map → useCssVars-0788f28c.js.map} +1 -1
  971. package/es/{useCurrentBgColor-93b70106.js → useCurrentBgColor-cc39a2b0.js} +2 -2
  972. package/es/{useCurrentBgColor-93b70106.js.map → useCurrentBgColor-cc39a2b0.js.map} +1 -1
  973. package/es/{useCurrentKey-30089ba4.js → useCurrentKey-b88513bf.js} +2 -2
  974. package/es/{useCurrentKey-30089ba4.js.map → useCurrentKey-b88513bf.js.map} +1 -1
  975. package/es/{useDatatip-3f284ad3.js → useDatatip-f80a8b4e.js} +4 -4
  976. package/es/{useDatatip-3f284ad3.js.map → useDatatip-f80a8b4e.js.map} +1 -1
  977. package/es/{useDensity-2ca5177c.js → useDensity-575ebaf2.js} +2 -2
  978. package/es/{useDensity-2ca5177c.js.map → useDensity-575ebaf2.js.map} +1 -1
  979. package/es/{useFloating-b1378797.js → useFloating-85ac3a8e.js} +2 -2
  980. package/es/{useFloating-b1378797.js.map → useFloating-85ac3a8e.js.map} +1 -1
  981. package/es/{useKeyboardEvents-7a19700e.js → useKeyboardEvents-8d2a44b1.js} +2 -2
  982. package/es/{useKeyboardEvents-7a19700e.js.map → useKeyboardEvents-8d2a44b1.js.map} +1 -1
  983. package/es/useLegendContextMenu-30eaa291.js +4 -4
  984. package/es/{useMeterDatatip-814ca87d.js → useMeterDatatip-ea50f0f1.js} +3 -3
  985. package/es/{useMeterDatatip-814ca87d.js.map → useMeterDatatip-ea50f0f1.js.map} +1 -1
  986. package/es/{useOutsideClick-d0b44256.js → useOutsideClick-866db9b2.js} +2 -2
  987. package/es/{useOutsideClick-d0b44256.js.map → useOutsideClick-866db9b2.js.map} +1 -1
  988. package/es/{usePopupAnimation-0c5517c7.js → usePopupAnimation-93950404.js} +2 -2
  989. package/es/{usePopupAnimation-0c5517c7.js.map → usePopupAnimation-93950404.js.map} +1 -1
  990. package/es/{usePrefixSuffix-28d8172f.js → usePrefixSuffix-2741adb3.js} +2 -2
  991. package/es/{usePrefixSuffix-28d8172f.js.map → usePrefixSuffix-2741adb3.js.map} +1 -1
  992. package/es/{useReorderableItem-abc9c68c.js → useReorderableItem-2a361fd4.js} +3 -3
  993. package/es/{useReorderableItem-abc9c68c.js.map → useReorderableItem-2a361fd4.js.map} +1 -1
  994. package/es/{useRovingTabIndexContainer-d8dcffff.js → useRovingTabIndexContainer-7b1d563b.js} +2 -2
  995. package/es/{useRovingTabIndexContainer-d8dcffff.js.map → useRovingTabIndexContainer-7b1d563b.js.map} +1 -1
  996. package/es/{useScale-c315e304.js → useScale-54f14cdc.js} +2 -2
  997. package/es/{useScale-c315e304.js.map → useScale-54f14cdc.js.map} +1 -1
  998. package/es/useSelectCommon-b5028a6e.js +11 -11
  999. package/es/{useSelectDrill-9eb9b7fa.js → useSelectDrill-9f0f793e.js} +3 -3
  1000. package/es/{useSelectDrill-9eb9b7fa.js.map → useSelectDrill-9f0f793e.js.map} +1 -1
  1001. package/es/{useSelection-5375aa2e.js → useSelection-3c8cd738.js} +2 -2
  1002. package/es/{useSelection-5375aa2e.js.map → useSelection-3c8cd738.js.map} +1 -1
  1003. package/es/{useSelection-534b1fa0.js → useSelection-82fe842d.js} +5 -5
  1004. package/es/{useSelection-534b1fa0.js.map → useSelection-82fe842d.js.map} +1 -1
  1005. package/es/useTabBar-d9412667.js +1 -1
  1006. package/es/{useTestId-014cca7c.js → useTestId-8b32167f.js} +2 -2
  1007. package/es/{useTestId-014cca7c.js.map → useTestId-8b32167f.js.map} +1 -1
  1008. package/es/{useTheme-a4243428.js → useTheme-858b119b.js} +2 -2
  1009. package/es/{useTheme-a4243428.js.map → useTheme-858b119b.js.map} +1 -1
  1010. package/es/{useThemeInterpolations-93048af6.js → useThemeInterpolations-2531ab6d.js} +5 -5
  1011. package/es/{useThemeInterpolations-93048af6.js.map → useThemeInterpolations-2531ab6d.js.map} +1 -1
  1012. package/es/{useTooltip-d4dfd848.js → useTooltip-0a3e4842.js} +5 -5
  1013. package/es/{useTooltip-d4dfd848.js.map → useTooltip-0a3e4842.js.map} +1 -1
  1014. package/es/{useTooltipOnTruncation-82d93e22.js → useTooltipOnTruncation-f5d75b1b.js} +4 -4
  1015. package/es/{useTooltipOnTruncation-82d93e22.js.map → useTooltipOnTruncation-f5d75b1b.js.map} +1 -1
  1016. package/es/{useTranslationBundle-29a1abb3.js → useTranslationBundle-0dff3ab2.js} +2 -2
  1017. package/es/{useTranslationBundle-29a1abb3.js.map → useTranslationBundle-0dff3ab2.js.map} +1 -1
  1018. package/es/{useUser-9c8d0e57.js → useUser-6a7f6df3.js} +2 -2
  1019. package/es/{useUser-9c8d0e57.js.map → useUser-6a7f6df3.js.map} +1 -1
  1020. package/es/useVisDragModeControls-13a8e826.js +1 -1
  1021. package/es/{useVisEvents-45115f09.js → useVisEvents-8d888727.js} +2 -2
  1022. package/es/{useVisEvents-45115f09.js.map → useVisEvents-8d888727.js.map} +1 -1
  1023. package/es/utils/PRIVATE_tooltipUtils.js +14 -14
  1024. package/es/utils/PRIVATE_visTestUtils.js +6 -6
  1025. package/es/utils/UNSAFE_popupUtils.js +8 -8
  1026. package/es/{withDirectionIcon-70ce263c.js → withDirectionIcon-938d7cdf.js} +2 -2
  1027. package/es/{withDirectionIcon-70ce263c.js.map → withDirectionIcon-938d7cdf.js.map} +1 -1
  1028. package/es/withThemeProps-49e8a2b5.js +2 -2
  1029. package/package.json +2 -2
  1030. package/amd/BaseNavigationListItem-ef8bf611.js +0 -2
  1031. package/amd/BaseNavigationListItem-ef8bf611.js.map +0 -1
  1032. package/amd/CompactLabelAssistance-82361ea6.js +0 -2
  1033. package/amd/DragHandle-d89ea5fd.js +0 -2
  1034. package/amd/Dropdown-37339c89.js +0 -2
  1035. package/amd/LayerManager-6c0b0eed.js +0 -2
  1036. package/amd/List-cf09a2fb.js +0 -2
  1037. package/amd/LoadMoreCollection-a6adbc3f.js +0 -2
  1038. package/amd/MaxLengthLiveRegion-7723b0df.js +0 -2
  1039. package/amd/NavigationListItem-4e832bbf.js +0 -2
  1040. package/amd/OverflowTabBarItem-4c54927d.js +0 -2
  1041. package/amd/RemovableNavigationListItem-87e208e1.js +0 -2
  1042. package/amd/SectionedContent-d75017a3.js +0 -2
  1043. package/amd/SelectionCard-baeadf9f.js +0 -2
  1044. package/amd/TabBar-8a0cbff2.js +0 -2
  1045. package/amd/TabBarMixed-d4482b12.js +0 -2
  1046. package/amd/VirtualizedListView-061057dd.js +0 -2
  1047. package/amd/VisProgressiveLoader-c90f62c3.js +0 -2
  1048. package/amd/index-32a870a0.js.map +0 -1
  1049. package/amd/render-6d2dc229.js +0 -2
  1050. package/amd/tooltipUtils-304eef18.js +0 -2
  1051. package/amd/useCurrentKey-5a5ffb1e.js +0 -2
  1052. package/amd/useMeterDatatip-8702ee6e.js +0 -2
  1053. package/amd/usePopupAnimation-7023407f.js +0 -2
  1054. package/amd/usePrefixSuffix-19a86824.js +0 -2
  1055. package/amd/useThemeInterpolations-95e6f849.js +0 -2
  1056. package/es/NavigationListItem-7e0a2d00.js.map +0 -1
  1057. package/es/index-b52817d6.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './mergeProps-bcfa6a92', './classNames-08d99695', './useTranslationBundle-652e08a6', './size-f0e638ec', './stringUtils-0ae982c2', './filePickerUtils-e4392bf2', './clientHints-fff66be9', './usePress-949a0d03', 'preact/hooks', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useTestId-d0c49456', './useComponentTheme-5aa41a8f', './useInteractionStyle-ee1dc0c0', './UNSAFE_FilePicker/themes/redwood/FilePickerTheme'], (function(e,t,r,s,i,n,a,l,o,d,c,u,p,y,f,h,m){"use strict";const v=({ariaLabel:e,isDisabled:t,translations:r,primaryText:s,secondaryText:i,selectionMode:n})=>e||`${t?"":r.filePicker_addFiles()+". "}${T(s,r)}. ${g(i,r,n)}`,b=(e,t)=>({width:e?n.sizeToCSS(e):void 0,height:t?n.sizeToCSS(t):void 0}),T=(e,t)=>e||t.filePicker_dropzonePrimaryText(),g=(e,t,r)=>{const s="multiple"===r?t.filePicker_dropzoneSecondaryTextMultiple():t.filePicker_dropzoneSecondaryText();return e||s},x=(e,t,r)=>{const s=[],i=[];let n,a;if(e)for(let l=0;l<e.length;l++){n=e[l];const o=n.name;if(a=r.filePicker_unknownFileTypeUploadError(),o){const e=o.split(".");a=e.length>1?"."+e.pop():a}a=n.type?n.type:a,-1===s.indexOf(a)&&-1===i.indexOf(a)&&(k(n,t)?s.push(a):i.push(a))}return{accepted:s,rejected:i}},P=e=>{const t={length:{value:e.length},item:{value(e){return this[e]}}};for(let r=0;r<e.length;r++)t[r]={value:e[r],enumerable:!0};return Object.create(FileList.prototype,t)},D=(e,t)=>"single"!==t||1===e.length,S=(e,t)=>{const r=[];return 1===e.length?r.push({severity:"error",summary:t.filePicker_singleTypeUploadError({fileType:e[0]})}):r.push({severity:"error",summary:t.filePicker_multipleFileTypeUploadError({fileTypes:e.join(t.plural_separator())})}),r},k=(e,t)=>{const r=t;if(!r||0===r.length||!e)return!0;let s;for(let t=0;t<r.length;t++){if(s=a.trim(r[t]),!s)return!0;if(s.startsWith(".",0)){if(!e.name||e.name&&e.name.toLowerCase().endsWith(s.toLowerCase()))return!0}else{if(!e.type)return!1;if("image/*"===s){if(e.type.startsWith("image/",0))return!0}else if("video/*"===s){if(e.type.startsWith("video/",0))return!0}else if("audio/*"===s){if(e.type.startsWith("audio/",0))return!0}else if(e.type===s)return!0}}return!1},j=(e,t,r)=>{let s;const i=t?new Promise((e=>{s=e})):null;return r?.({messages:e,until:i}),s},H=(e,t)=>{const r=P(e);t?.({files:r})},M=(e,t,r)=>{const{callback:s,validation:i}=w(e),{pressProps:n}=d.usePress(s);return{validation:i,dragAndDropProps:C(e.accept,e.selectionMode,j,H,t,e.translations,e.onCommit,e.onReject,r),pressProps:n}},w=e=>{const t=t=>{if(t.length>0){const r=x(t,e.accept,e.translations).rejected;r.length>0?j(S(r,e.translations),!1,e.onReject):H(t,e.onCommit)}};return{callback:r=>{("click"===r.type||"keyup"===r.type&&"Enter"===r.code)&&(r.preventDefault(),l.pickFiles(t,{accept:e.accept,selectionMode:e.selectionMode??"multiple",capture:e.capture??"none"}))},validation:t}},C=(e,t,r,s,i,n,a,l,d)=>{const u=c.useRef(!1),p=c.useRef(!1),y=c.useRef(),f=(e,t=!1)=>{u.current&&(e.preventDefault(),e.stopPropagation(),i.current?.contains(e.relatedTarget)||(u.current=!1,d?.("NA"),p.current||t||y.current?.()))};return{onDragEnter:e=>{e.preventDefault(),e.stopPropagation()},onDragOver:s=>{if(s.preventDefault(),s.stopPropagation(),u.current)return;const i=o.getClientHints().browser;if(u.current=!0,p.current=!0,"safari"!==i){if(!s.dataTransfer)return;const i=P(s.dataTransfer.items);let a=[];const o=D(i,t),c=x(i,e,n);o&&0===c.rejected.length?d?.("valid"):(p.current=!1,o?a=S(c.rejected,n):a.push({severity:"error",summary:n.filePicker_singleFileUploadError()}),d?.("invalid"),y.current=r(a,!0,l))}else d?.("valid")},onDragLeave:f,onDrop:i=>{if(u.current){if(i.preventDefault(),i.stopPropagation(),!i.dataTransfer)return void(u.current=!1);const o=P(i.dataTransfer.files);let d=!1;if(p.current){let i=[];if(D(o,t)){const t=x(o,e,n);t.rejected.length>0&&(i=S(t.rejected,n),d=!0)}else i.push({severity:"error",summary:n.filePicker_singleFileUploadError()});i.length>0&&(p.current=!1,r(i,!1,l)),p.current&&s(o,a)}f(i,d)}}}},F=({isDisabled:e,primaryText:r,secondaryText:s,translations:i,selectionMode:n})=>{const{styles:{disabledPrimaryTextStyle:a,primaryTextStyle:l,disabledSecondaryTextStyle:o,secondaryTextStyle:d}}=f.useComponentTheme(m.FilePickerRedwoodTheme);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:e?a:l,children:T(r,i)}),t.jsx("div",{class:e?o:d,children:g(s,i,n)})]})};const R=e=>{const i=y.useTestId(e.testId),{interactionProps:n,applyActiveStyle:a,applyHoverStyle:l,applyPseudoHoverStyle:o}=h.useInteractionStyle({isDisabled:!1}),{classes:d,styles:{maxWidth:u,inner:T,activeStyle:g,innerNeedsEventsHoverStyle:x,innerPseudoHoverStyle:P,invalidDrop:D,validDrop:S}}=f.useComponentTheme(m.FilePickerRedwoodTheme,{hoveredState:l?"isHover":void 0,pseudoHoveredState:o?"isPseudoHover":void 0}),k=[a?g:"",l?x:"",o?P:""],[j,H]=c.useState("NA"),w="valid"===j?S:"invalid"===j?D:void 0,C=c.useRef(null),{validation:R,dragAndDropProps:I,pressProps:_}=M(e,C,H),L=r.mergeProps(_,n);E(I,R,e.testHandlersRef||null);const N=s.classNames([d,void 0===e.width&&u]),{isTabbable:U}=p.useTabbableMode(),{primaryText:W,secondaryText:A,translations:z,selectionMode:O,width:$,height:B}=e;return t.jsx("div",{...i,...L,class:N,tabIndex:U?0:-1,role:"button","aria-label":v({ariaLabel:e["aria-label"],isDisabled:!1,translations:z,primaryText:W,secondaryText:A,selectionMode:O}),ref:C,style:b($,B),children:t.jsx("div",{class:s.classNames([T,w,...k]),...I,children:t.jsx(F,{...e,isDisabled:!1})})})},I=({children:e,primaryText:r,secondaryText:i,translations:n,width:a,height:l,testId:o,...d})=>{const c=y.useTestId(o),{classes:u,styles:{maxWidth:p,inner:h,noChildrenMargin:T}}=f.useComponentTheme(m.FilePickerRedwoodTheme,{disabledState:"isDisabled"});return t.jsx("div",{class:s.classNames([u,h,T,void 0===a&&p]),role:"button","aria-label":v({ariaLabel:d["aria-label"],isDisabled:!0,translations:n,primaryText:r,secondaryText:i}),"aria-hidden":"true",...c,style:b(a,l),children:e||t.jsx(F,{secondaryText:i,primaryText:r,...d,isDisabled:!0,translations:n})})},_=e=>{const i=y.useTestId(e.testId),{interactionProps:n,applyHoverStyle:a,applyPseudoHoverStyle:l}=h.useInteractionStyle({isDisabled:!1}),{classes:o,styles:{maxWidth:d,noChildrenMargin:u}}=f.useComponentTheme(m.FilePickerRedwoodTheme,{hoveredState:a?"isHover":void 0,pseudoHoveredState:l?"isPseudoHover":void 0}),T=c.useRef(null),{validation:g,dragAndDropProps:x,pressProps:P}=M(e,T),D=r.mergeProps(P,x,n);E(x,g,e.testHandlersRef||null);const S=s.classNames([o,u,void 0===e.width&&d]),{translations:k,selectionMode:j}=e,{isTabbable:H}=p.useTabbableMode();return t.jsx("div",{class:s.classNames([S]),tabIndex:H?void 0:-1,role:"button","aria-label":v({ariaLabel:e["aria-label"],isDisabled:!1,translations:k,selectionMode:j}),ref:T,style:b(e.width,e.height),...i,...D,children:e.children})},E=(e,t,r)=>{c.useImperativeHandle(r,(()=>({onDragEnter:e.onDragEnter,onDragOver:e.onDragOver,onDrop:e.onDrop,onDragLeave:e.onDragLeave,onClickSelected:t})))};e.FilePicker=function({capture:e="none",isDisabled:r=!1,selectionMode:s="multiple",children:n,...a}){const l=a.__testHandlerSymbol,o={capture:e,selectionMode:s,translations:i.useTranslationBundle("@oracle/oraclejet-preact"),...a};return r?t.jsx(I,{...o,children:n}):n?t.jsx(_,{testHandlersRef:l,...o,children:n}):t.jsx(R,{testHandlersRef:l,...o})}}));
1
+ define(['exports', 'preact/jsx-runtime', './mergeProps-bcfa6a92', './classNames-08d99695', './useTranslationBundle-33399171', './size-f0e638ec', './stringUtils-0ae982c2', './filePickerUtils-e4392bf2', './clientHints-fff66be9', './usePress-949a0d03', 'preact/hooks', './TabbableModeContext-a9c97640', './useTabbableMode-dc440317', './useTestId-efb1c8f9', './useComponentTheme-5aa41a8f', './useInteractionStyle-ee1dc0c0', './UNSAFE_FilePicker/themes/redwood/FilePickerTheme'], (function(e,t,r,s,i,n,a,l,o,d,c,u,p,f,y,h,m){"use strict";const v=({ariaLabel:e,isDisabled:t,translations:r,primaryText:s,secondaryText:i,selectionMode:n})=>e||`${t?"":r.filePicker_addFiles()+". "}${T(s,r)}. ${g(i,r,n)}`,b=(e,t)=>({width:e?n.sizeToCSS(e):void 0,height:t?n.sizeToCSS(t):void 0}),T=(e,t)=>e||t.filePicker_dropzonePrimaryText(),g=(e,t,r)=>{const s="multiple"===r?t.filePicker_dropzoneSecondaryTextMultiple():t.filePicker_dropzoneSecondaryText();return e||s},x=(e,t,r)=>{const s=[],i=[];let n,a;if(e)for(let l=0;l<e.length;l++){n=e[l];const o=n.name;if(a=r.filePicker_unknownFileTypeUploadError(),o){const e=o.split(".");a=e.length>1?"."+e.pop():a}a=n.type?n.type:a,-1===s.indexOf(a)&&-1===i.indexOf(a)&&(k(n,t)?s.push(a):i.push(a))}return{accepted:s,rejected:i}},P=e=>{const t={length:{value:e.length},item:{value(e){return this[e]}}};for(let r=0;r<e.length;r++)t[r]={value:e[r],enumerable:!0};return Object.create(FileList.prototype,t)},D=(e,t)=>"single"!==t||1===e.length,S=(e,t)=>{const r=[];return 1===e.length?r.push({severity:"error",summary:t.filePicker_singleTypeUploadError({fileType:e[0]})}):r.push({severity:"error",summary:t.filePicker_multipleFileTypeUploadError({fileTypes:e.join(t.plural_separator())})}),r},k=(e,t)=>{const r=t;if(!r||0===r.length||!e)return!0;let s;for(let t=0;t<r.length;t++){if(s=a.trim(r[t]),!s)return!0;if(s.startsWith(".",0)){if(!e.name||e.name&&e.name.toLowerCase().endsWith(s.toLowerCase()))return!0}else{if(!e.type)return!1;if("image/*"===s){if(e.type.startsWith("image/",0))return!0}else if("video/*"===s){if(e.type.startsWith("video/",0))return!0}else if("audio/*"===s){if(e.type.startsWith("audio/",0))return!0}else if(e.type===s)return!0}}return!1},j=(e,t,r)=>{let s;const i=t?new Promise((e=>{s=e})):null;return r?.({messages:e,until:i}),s},H=(e,t)=>{const r=P(e);t?.({files:r})},M=(e,t,r)=>{const{callback:s,validation:i}=w(e),{pressProps:n}=d.usePress(s);return{validation:i,dragAndDropProps:C(e.accept,e.selectionMode,j,H,t,e.translations,e.onCommit,e.onReject,r),pressProps:n}},w=e=>{const t=t=>{if(t.length>0){const r=x(t,e.accept,e.translations).rejected;r.length>0?j(S(r,e.translations),!1,e.onReject):H(t,e.onCommit)}};return{callback:r=>{("click"===r.type||"keyup"===r.type&&"Enter"===r.code)&&(r.preventDefault(),l.pickFiles(t,{accept:e.accept,selectionMode:e.selectionMode??"multiple",capture:e.capture??"none"}))},validation:t}},C=(e,t,r,s,i,n,a,l,d)=>{const u=c.useRef(!1),p=c.useRef(!1),f=c.useRef(),y=(e,t=!1)=>{u.current&&(e.preventDefault(),e.stopPropagation(),i.current?.contains(e.relatedTarget)||(u.current=!1,d?.("NA"),p.current||t||f.current?.()))};return{onDragEnter:e=>{e.preventDefault(),e.stopPropagation()},onDragOver:s=>{if(s.preventDefault(),s.stopPropagation(),u.current)return;const i=o.getClientHints().browser;if(u.current=!0,p.current=!0,"safari"!==i){if(!s.dataTransfer)return;const i=P(s.dataTransfer.items);let a=[];const o=D(i,t),c=x(i,e,n);o&&0===c.rejected.length?d?.("valid"):(p.current=!1,o?a=S(c.rejected,n):a.push({severity:"error",summary:n.filePicker_singleFileUploadError()}),d?.("invalid"),f.current=r(a,!0,l))}else d?.("valid")},onDragLeave:y,onDrop:i=>{if(u.current){if(i.preventDefault(),i.stopPropagation(),!i.dataTransfer)return void(u.current=!1);const o=P(i.dataTransfer.files);let d=!1;if(p.current){let i=[];if(D(o,t)){const t=x(o,e,n);t.rejected.length>0&&(i=S(t.rejected,n),d=!0)}else i.push({severity:"error",summary:n.filePicker_singleFileUploadError()});i.length>0&&(p.current=!1,r(i,!1,l)),p.current&&s(o,a)}y(i,d)}}}},F=({isDisabled:e,primaryText:r,secondaryText:s,translations:i,selectionMode:n})=>{const{styles:{disabledPrimaryTextStyle:a,primaryTextStyle:l,disabledSecondaryTextStyle:o,secondaryTextStyle:d}}=y.useComponentTheme(m.FilePickerRedwoodTheme);return t.jsxs(t.Fragment,{children:[t.jsx("div",{class:e?a:l,children:T(r,i)}),t.jsx("div",{class:e?o:d,children:g(s,i,n)})]})};const R=e=>{const i=f.useTestId(e.testId),{interactionProps:n,applyActiveStyle:a,applyHoverStyle:l,applyPseudoHoverStyle:o}=h.useInteractionStyle({isDisabled:!1}),{classes:d,styles:{maxWidth:u,inner:T,activeStyle:g,innerNeedsEventsHoverStyle:x,innerPseudoHoverStyle:P,invalidDrop:D,validDrop:S}}=y.useComponentTheme(m.FilePickerRedwoodTheme,{hoveredState:l?"isHover":void 0,pseudoHoveredState:o?"isPseudoHover":void 0}),k=[a?g:"",l?x:"",o?P:""],[j,H]=c.useState("NA"),w="valid"===j?S:"invalid"===j?D:void 0,C=c.useRef(null),{validation:R,dragAndDropProps:I,pressProps:_}=M(e,C,H),L=r.mergeProps(_,n);E(I,R,e.testHandlersRef||null);const N=s.classNames([d,void 0===e.width&&u]),{isTabbable:U}=p.useTabbableMode(),{primaryText:W,secondaryText:A,translations:z,selectionMode:O,width:$,height:B}=e;return t.jsx("div",{...i,...L,class:N,tabIndex:U?0:-1,role:"button","aria-label":v({ariaLabel:e["aria-label"],isDisabled:!1,translations:z,primaryText:W,secondaryText:A,selectionMode:O}),ref:C,style:b($,B),children:t.jsx("div",{class:s.classNames([T,w,...k]),...I,children:t.jsx(F,{...e,isDisabled:!1})})})},I=({children:e,primaryText:r,secondaryText:i,translations:n,width:a,height:l,testId:o,...d})=>{const c=f.useTestId(o),{classes:u,styles:{maxWidth:p,inner:h,noChildrenMargin:T}}=y.useComponentTheme(m.FilePickerRedwoodTheme,{disabledState:"isDisabled"});return t.jsx("div",{class:s.classNames([u,h,T,void 0===a&&p]),role:"button","aria-label":v({ariaLabel:d["aria-label"],isDisabled:!0,translations:n,primaryText:r,secondaryText:i}),"aria-hidden":"true",...c,style:b(a,l),children:e||t.jsx(F,{secondaryText:i,primaryText:r,...d,isDisabled:!0,translations:n})})},_=e=>{const i=f.useTestId(e.testId),{interactionProps:n,applyHoverStyle:a,applyPseudoHoverStyle:l}=h.useInteractionStyle({isDisabled:!1}),{classes:o,styles:{maxWidth:d,noChildrenMargin:u}}=y.useComponentTheme(m.FilePickerRedwoodTheme,{hoveredState:a?"isHover":void 0,pseudoHoveredState:l?"isPseudoHover":void 0}),T=c.useRef(null),{validation:g,dragAndDropProps:x,pressProps:P}=M(e,T),D=r.mergeProps(P,x,n);E(x,g,e.testHandlersRef||null);const S=s.classNames([o,u,void 0===e.width&&d]),{translations:k,selectionMode:j}=e,{isTabbable:H}=p.useTabbableMode();return t.jsx("div",{class:s.classNames([S]),tabIndex:H?void 0:-1,role:"button","aria-label":v({ariaLabel:e["aria-label"],isDisabled:!1,translations:k,selectionMode:j}),ref:T,style:b(e.width,e.height),...i,...D,children:e.children})},E=(e,t,r)=>{c.useImperativeHandle(r,(()=>({onDragEnter:e.onDragEnter,onDragOver:e.onDragOver,onDrop:e.onDrop,onDragLeave:e.onDragLeave,onClickSelected:t})))};e.FilePicker=function({capture:e="none",isDisabled:r=!1,selectionMode:s="multiple",children:n,...a}){const l=a.__testHandlerSymbol,o={capture:e,selectionMode:s,translations:i.useTranslationBundle("@oracle/oraclejet-preact"),...a};return r?t.jsx(I,{...o,children:n}):n?t.jsx(_,{testHandlersRef:l,...o,children:n}):t.jsx(R,{testHandlersRef:l,...o})}}));
2
2
  //# sourceMappingURL=FilePicker-e0b7a348.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './useTestId-d0c49456', './classNames-08d99695', './boxalignment-50db1e3a', './dimensions-fda85d6b', './flexbox-8521f6aa', './flexitem-5db48325', './mergeInterpolations-9ede4cf7', 'css!./FlexStyles.styles.css'], (function(e,s,t,l,n,a,o,i,r,c){"use strict";var d="FlexStyles_marginZeroStyles__10p93f61";const x=[...Object.values(a.dimensionInterpolations),...Object.values(o.flexboxInterpolations),...Object.values(i.flexitemInterpolations),...Object.values(n.boxAlignmentInterpolations)],m=r.mergeInterpolations(x);e.Flex=({children:e,hasZeroMargins:n=!0,testId:a,...o})=>{const i=l.classNames(["FlexStyles_baseStyles__10p93f60",n&&d]),{class:r,...c}=m(o),x=t.useTestId(a);return s.jsx("div",{class:`${i} ${r}`,style:c,...x,children:e})},e.marginZeroStyles=d}));
2
- //# sourceMappingURL=Flex-69dc7af4.js.map
1
+ define(['exports', 'preact/jsx-runtime', './useTestId-efb1c8f9', './classNames-08d99695', './boxalignment-50db1e3a', './dimensions-fda85d6b', './flexbox-8521f6aa', './flexitem-5db48325', './mergeInterpolations-9ede4cf7', 'css!./FlexStyles.styles.css'], (function(e,s,t,l,n,a,o,i,r,c){"use strict";var d="FlexStyles_marginZeroStyles__10p93f61";const x=[...Object.values(a.dimensionInterpolations),...Object.values(o.flexboxInterpolations),...Object.values(i.flexitemInterpolations),...Object.values(n.boxAlignmentInterpolations)],b=r.mergeInterpolations(x);e.Flex=({children:e,hasZeroMargins:n=!0,testId:a,...o})=>{const i=l.classNames(["FlexStyles_baseStyles__10p93f60",n&&d]),{class:r,...c}=b(o),x=t.useTestId(a);return s.jsx("div",{class:`${i} ${r}`,style:c,...x,children:e})},e.marginZeroStyles=d}));
2
+ //# sourceMappingURL=Flex-a208520e.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Flex-69dc7af4.js","sources":["../../src/UNSAFE_Flex/Flex.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 */\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { ComponentChildren } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { FlexboxProps } from '../utils/UNSAFE_interpolations/flexbox';\nimport { flexboxInterpolations } from '../utils/UNSAFE_interpolations/flexbox';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { baseStyles, marginZeroStyles } from './FlexStyles.css';\n\ntype StyleProps = DimensionProps & FlexboxProps & FlexitemProps & BoxAlignmentProps;\n\ntype Props = StyleProps &\n TestIdProps & {\n children?: ComponentChildren;\n /**\n * @default true\n */\n hasZeroMargins?: boolean;\n };\n\nconst interpolations = [\n ...Object.values(dimensionInterpolations),\n ...Object.values(flexboxInterpolations),\n ...Object.values(flexitemInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\nexport const Flex = ({ children, hasZeroMargins = true, testId, ...props }: Props) => {\n const flexComponentClasses = classNames([baseStyles, hasZeroMargins && marginZeroStyles]);\n const { class: cls, ...styles } = styleInterpolations(props);\n const testIdProps = useTestId(testId);\n return (\n <div class={`${flexComponentClasses} ${cls}`} style={styles} {...testIdProps}>\n {children}\n </div>\n );\n};\n"],"names":["interpolations","Object","values","dimensionInterpolations","flexboxInterpolations","flexitemInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","children","hasZeroMargins","testId","props","flexComponentClasses","classNames","marginZeroStyles","class","cls","styles","testIdProps","useTestId","_jsx","style"],"mappings":"yUAgCA,MAAMA,EAAiB,IAClBC,OAAOC,OAAOC,8BACdF,OAAOC,OAAOE,4BACdH,OAAOC,OAAOG,6BACdJ,OAAOC,OAAOI,+BAGbC,EAAsBC,EAAAA,oBAA2BR,UAEnC,EAAGS,WAAUC,kBAAiB,EAAMC,YAAWC,MACjE,MAAMC,EAAuBC,EAAAA,WAAW,mCAAaJ,GAAkBK,KAC/DC,MAAOC,KAAQC,GAAWX,EAAoBK,GAChDO,EAAcC,YAAUT,GAC9B,OACEU,EAAAA,IAAK,MAAA,CAAAL,MAAO,GAAGH,KAAwBI,IAAOK,MAAOJ,KAAYC,WAC9DV,GAEH"}
1
+ {"version":3,"file":"Flex-a208520e.js","sources":["../../src/UNSAFE_Flex/Flex.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 */\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { ComponentChildren } from 'preact';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { FlexboxProps } from '../utils/UNSAFE_interpolations/flexbox';\nimport { flexboxInterpolations } from '../utils/UNSAFE_interpolations/flexbox';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { baseStyles, marginZeroStyles } from './FlexStyles.css';\n\ntype StyleProps = DimensionProps & FlexboxProps & FlexitemProps & BoxAlignmentProps;\n\ntype Props = StyleProps &\n TestIdProps & {\n children?: ComponentChildren;\n /**\n * @default true\n */\n hasZeroMargins?: boolean;\n };\n\nconst interpolations = [\n ...Object.values(dimensionInterpolations),\n ...Object.values(flexboxInterpolations),\n ...Object.values(flexitemInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\nexport const Flex = ({ children, hasZeroMargins = true, testId, ...props }: Props) => {\n const flexComponentClasses = classNames([baseStyles, hasZeroMargins && marginZeroStyles]);\n const { class: cls, ...styles } = styleInterpolations(props);\n const testIdProps = useTestId(testId);\n return (\n <div class={`${flexComponentClasses} ${cls}`} style={styles} {...testIdProps}>\n {children}\n </div>\n );\n};\n"],"names":["interpolations","Object","values","dimensionInterpolations","flexboxInterpolations","flexitemInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","children","hasZeroMargins","testId","props","flexComponentClasses","classNames","marginZeroStyles","class","cls","styles","testIdProps","useTestId","_jsx","style"],"mappings":"yUAgCA,MAAMA,EAAiB,IAClBC,OAAOC,OAAOC,8BACdF,OAAOC,OAAOE,4BACdH,OAAOC,OAAOG,6BACdJ,OAAOC,OAAOI,+BAGbC,EAAsBC,EAAAA,oBAA2BR,UAEnC,EAAGS,WAAUC,kBAAiB,EAAMC,YAAWC,MACjE,MAAMC,EAAuBC,EAAAA,WAAW,mCAAaJ,GAAkBK,KAC/DC,MAAOC,KAAQC,GAAWX,EAAoBK,GAChDO,EAAcC,YAAUT,GAC9B,OACEU,EAAAA,IAAK,MAAA,CAAAL,MAAO,GAAGH,KAAwBI,IAAOK,MAAOJ,KAAYC,WAC9DV,GAEH"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', 'preact/compat', './useFloating-c8c92f6f', './refUtils-d354a169', './useOutsideClick-39a81428', './useUser-abae2493', './useComponentTheme-5aa41a8f', './classNames-08d99695', './utils-32e81a13', './Common/themes/themeContract.css', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css'], (function(t,e,n,i,s,o,r,a,l,c,u,f,d,m,h,g){"use strict";const x=i.forwardRef((({data:t,anchorRef:i,tail:s,isRtl:r,backgroundColor:a},m)=>{const{styles:h,baseTheme:g}=l.useComponentTheme(d.FloatingRedwoodTheme),x=n.useRef(null),[p,b]=n.useState({arrowStyle:{visibility:"hidden"},arrowInnerStyle:{visibility:"hidden"}});n.useLayoutEffect((()=>{if(null==x.current)return;const{isCornerVerticalPlacement:e,isCornerHorizontalPlacement:n}=function(t,e,n){if("simple"===e&&n&&n.arrow){const{centerOffset:e}=n.arrow,i=7;let s=0,o=0;const r=t.current,a=void 0===r?.x&&void 0===r?.y;a&&(s=Math.round(r.getBoundingClientRect().height),o=Math.round(t.current?.getBoundingClientRect().width));return{isCornerVerticalPlacement:a?Math.abs(e)>=s/2-i/2:["start-top-corner","start-bottom-corner","end-top-corner","end-bottom-corner"].includes(n.origPlacement),isCornerHorizontalPlacement:a?Math.abs(e)>=o/2-i/2:["top-start-corner","top-end-corner","bottom-start-corner","bottom-end-corner"].includes(n.origPlacement)}}return{isCornerVerticalPlacement:!1,isCornerHorizontalPlacement:!1}}(i,s,t);b(function(t,e,n,i,s,o){const r={visibility:"visible"},a={visibility:"visible"};if("simple"===t&&s&&s.arrow){const{x:l,y:c,centerOffset:d}=s.arrow,m=7,h=6,g=5,x=5,p=0===d,b=d>0;function y(t){const e=t?h:m;C({borderTop:`${S(e)} solid ${u.rgba(f.colorSchemeVars.palette.neutral[90],.1)}`,borderRight:R(e),borderLeft:R(e)},r);const n=t?x:g;w({borderTop:`${S(n)} solid ${o}`,borderRight:`${R(n)}`,borderLeft:`${R(n)}`},a)}function C(t,e){Object.assign(e,t)}function w(t,e){Object.assign(e,t)}function A(t){return`rotate(${45*t}deg)`}function S(t){return`${t}px`}function R(t){return`${S(t)} solid transparent`}y(n||i);switch(s.placement.split("-")[0]){case"top":v();break;case"end":e?F():j();break;case"bottom":k();break;case"start":e?j():F()}function v(){null!=l&&(i?(C({top:"",bottom:S(2-m),left:S(l+(b?5:-5)),transform:A(b?5:3)},r),M()):(C({top:"",bottom:S(-m),left:S(p?l:l+(b?1:-1)),transform:A(0)},r),O()))}function j(){null!=c&&(n?(C({top:S(c+(b?2:-2)),right:"",left:S(-m-1),transform:A(b?7:5)},r),M()):(C({top:S(p?c:c+(b?-2:2)),right:"",left:S(1.5*-m),transform:A(2)},r),O()))}function k(){null!=l&&(i?(C({top:S(3-m),bottom:"",left:S(l+(b?4:-4)),transform:A(b?2:6)},r),w({top:S(-g),left:S((b?1:-1)-g)},a)):(C({top:S(-m),bottom:"",left:S(p?l:l+(b?1:-1)),transform:A(4)},r),O()))}function F(){null!=c&&(n?(C({top:S(c+(b?2:-2)),right:S(-m-1),left:"",transform:A(b?1:3)},r),w({top:S(-g),left:S((b?-2:2)-g)},a)):(C({top:S(p?c:c+(b?-2:2)),right:S(1.5*-m),left:"",transform:A(6)},r),O()))}function M(){w({top:S(-g),left:S((b?2:-2)-g)},a)}function O(){w({top:S(-g-2),left:S(-g)},a)}}return{arrowStyle:r,arrowInnerStyle:a}}(s,r,e,n,t,a))}),[t,a,t?.placement,t?.x,t?.y,t?.offset,t?.arrow,s,r,i]);const y=n.useMemo((()=>o.mergeRefs(m,x)),[m,x]);return"simple"===s&&e.jsxs("div",{ref:y,class:c.classNames([g,h.floatingTailBaseStyle]),style:p.arrowStyle,children:[" ",e.jsx("div",{class:c.classNames([h.floatingTailBaseStyle]),style:p.arrowInnerStyle})," "]})}));const p=i.forwardRef((({children:t,backgroundColor:i,onClickOutside:u,placement:f="bottom",anchorRef:p,offsetValue:b,class:y,tail:C="none",flipOptions:w={mainAxis:!0,crossAxis:!1},shiftOptions:A={mainAxis:!0,crossAxis:!1},sizeOptions:S={isMaxHeightAdjusted:!1,isMaxWidthAdjusted:!1},boundaryOptions:R={padding:0},onPosition:v},j)=>{const k=n.useRef(null),[F,M]=n.useState(),[O,E]=n.useState(null),{styles:P,baseTheme:T}=l.useComponentTheme(d.FloatingRedwoodTheme);n.useLayoutEffect((()=>{E(p.current)}),[p]),p.current!==O&&E(p.current);const{direction:$}=a.useUser(),H="rtl"===$,V=n.useCallback((t=>{M(t),v?.(t)}),[v]),B=[s.offset(b),s.flip({mainAxis:w.mainAxis,crossAxis:w.crossAxis,fallbackPlacements:w.fallbackPlacements?.map((t=>s.logicalSide(t,$))),padding:R.padding}),s.shift({mainAxis:A.mainAxis,crossAxis:A.crossAxis,limiter:s.limitShift({mainAxis:A.mainAxis,crossAxis:A.crossAxis})}),...k.current?[s.arrow({element:k.current})]:[]];(S.isMaxHeightAdjusted||S.isMaxWidthAdjusted)&&B.push(s.size({apply({availableWidth:t,availableHeight:e,elements:n}){S.isMaxHeightAdjusted&&parseInt(n.floating.style.maxHeight)!==e&&Object.assign(n.floating.style,{maxHeight:`${Math.min(e,S.maxHeightCeiling||e)}px`}),S.isMaxWidthAdjusted&&parseInt(n.floating.style.maxWidth)!==t&&Object.assign(n.floating.style,{maxWidth:`${Math.min(t,S.maxWidthCeiling||t)}px`})},padding:R.padding}));const{x:N,y:U,reference:W,floating:I,refs:z,update:L}=s.useFloating({placement:f,middleware:B,onPosition:V}),[_,D]=n.useState(!1);n.useEffect((()=>{if(z.reference.current&&z.floating.current&&!0===_)return s.autoUpdate(z.reference.current,z.floating.current,L)}),[z.floating,z.reference,L,_]),n.useEffect((()=>{null!=N&&null!=U&&D(!0)}),[N,U]),r.useOutsideClick({isDisabled:!1,ref:z.floating,handler:u}),n.useLayoutEffect((()=>{if(O instanceof Element){return void W(O)}const t=O;if(null!=t&&null!=t.contextElement){const e=function(t,e){let n=null,i=null,s=!1;return{contextElement:t||void 0,getBoundingClientRect(){const o=t?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},r="x"===e.axis||"both"===e.axis,a="y"===e.axis||"both"===e.axis;let l=o.width,c=o.height,u=o.x,f=o.y;return null==n&&e.x&&r&&(n=o.x-e.x),null==i&&e.y&&a&&(i=o.y-e.y),u-=n||0,f-=i||0,l=0,c=0,s?s&&(c="x"===e.axis?o.height:c,l="y"===e.axis?o.width:l):(l="y"===e.axis?o.width:0,c="x"===e.axis?o.height:0,u=r&&null!=e.x?e.x:u,f=a&&null!=e.y?e.y:f),s=!0,{width:l,height:c,x:u,y:f,top:f,right:u+l,bottom:f+c,left:u}}}}(t.contextElement,{axis:"both",x:t.x,y:t.y});return void W(e)}const e={getBoundingClientRect:()=>({width:0,height:0,x:t.x,y:t.y,top:t.y,left:t.x,right:t.x,bottom:t.y})};t&&null!=t.x&&W(e)}),[O,W]);const q=n.useMemo((()=>o.mergeRefs(j,I)),[j,I]),G={top:U,left:N};let J={};i&&(J=h.assignInlineVars({[g.floatingVars.backgroundColor]:i}));const K=null==N&&null==U?m.floatingVisibilityStyles.hidden:m.floatingVisibilityStyles.visible,Q=c.classNames([y,T,P.baseStyle,K]),X=p&&p.current;return e.jsxs("div",{class:Q,ref:q,style:{...G,...J},children:[t,X&&e.jsx(x,{ref:k,backgroundColor:i,data:F,anchorRef:p,tail:C,isRtl:H})]})}));t.Floating=p}));
2
- //# sourceMappingURL=Floating-28ad0903.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', 'preact/compat', './useFloating-3f7a017b', './refUtils-d354a169', './useOutsideClick-fc4dc457', './useUser-33136570', './useComponentTheme-5aa41a8f', './classNames-08d99695', './utils-32e81a13', './Common/themes/themeContract.css', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css'], (function(t,e,n,i,s,o,r,a,l,c,u,f,d,m,h,g){"use strict";const x=i.forwardRef((({data:t,anchorRef:i,tail:s,isRtl:r,backgroundColor:a},m)=>{const{styles:h,baseTheme:g}=l.useComponentTheme(d.FloatingRedwoodTheme),x=n.useRef(null),[p,b]=n.useState({arrowStyle:{visibility:"hidden"},arrowInnerStyle:{visibility:"hidden"}});n.useLayoutEffect((()=>{if(null==x.current)return;const{isCornerVerticalPlacement:e,isCornerHorizontalPlacement:n}=function(t,e,n){if("simple"===e&&n&&n.arrow){const{centerOffset:e}=n.arrow,i=7;let s=0,o=0;const r=t.current,a=void 0===r?.x&&void 0===r?.y;a&&(s=Math.round(r.getBoundingClientRect().height),o=Math.round(t.current?.getBoundingClientRect().width));return{isCornerVerticalPlacement:a?Math.abs(e)>=s/2-i/2:["start-top-corner","start-bottom-corner","end-top-corner","end-bottom-corner"].includes(n.origPlacement),isCornerHorizontalPlacement:a?Math.abs(e)>=o/2-i/2:["top-start-corner","top-end-corner","bottom-start-corner","bottom-end-corner"].includes(n.origPlacement)}}return{isCornerVerticalPlacement:!1,isCornerHorizontalPlacement:!1}}(i,s,t);b(function(t,e,n,i,s,o){const r={visibility:"visible"},a={visibility:"visible"};if("simple"===t&&s&&s.arrow){const{x:l,y:c,centerOffset:d}=s.arrow,m=7,h=6,g=5,x=5,p=0===d,b=d>0;function y(t){const e=t?h:m;C({borderTop:`${S(e)} solid ${u.rgba(f.colorSchemeVars.palette.neutral[90],.1)}`,borderRight:R(e),borderLeft:R(e)},r);const n=t?x:g;w({borderTop:`${S(n)} solid ${o}`,borderRight:`${R(n)}`,borderLeft:`${R(n)}`},a)}function C(t,e){Object.assign(e,t)}function w(t,e){Object.assign(e,t)}function A(t){return`rotate(${45*t}deg)`}function S(t){return`${t}px`}function R(t){return`${S(t)} solid transparent`}y(n||i);switch(s.placement.split("-")[0]){case"top":v();break;case"end":e?F():j();break;case"bottom":k();break;case"start":e?j():F()}function v(){null!=l&&(i?(C({top:"",bottom:S(2-m),left:S(l+(b?5:-5)),transform:A(b?5:3)},r),M()):(C({top:"",bottom:S(-m),left:S(p?l:l+(b?1:-1)),transform:A(0)},r),O()))}function j(){null!=c&&(n?(C({top:S(c+(b?2:-2)),right:"",left:S(-m-1),transform:A(b?7:5)},r),M()):(C({top:S(p?c:c+(b?-2:2)),right:"",left:S(1.5*-m),transform:A(2)},r),O()))}function k(){null!=l&&(i?(C({top:S(3-m),bottom:"",left:S(l+(b?4:-4)),transform:A(b?2:6)},r),w({top:S(-g),left:S((b?1:-1)-g)},a)):(C({top:S(-m),bottom:"",left:S(p?l:l+(b?1:-1)),transform:A(4)},r),O()))}function F(){null!=c&&(n?(C({top:S(c+(b?2:-2)),right:S(-m-1),left:"",transform:A(b?1:3)},r),w({top:S(-g),left:S((b?-2:2)-g)},a)):(C({top:S(p?c:c+(b?-2:2)),right:S(1.5*-m),left:"",transform:A(6)},r),O()))}function M(){w({top:S(-g),left:S((b?2:-2)-g)},a)}function O(){w({top:S(-g-2),left:S(-g)},a)}}return{arrowStyle:r,arrowInnerStyle:a}}(s,r,e,n,t,a))}),[t,a,t?.placement,t?.x,t?.y,t?.offset,t?.arrow,s,r,i]);const y=n.useMemo((()=>o.mergeRefs(m,x)),[m,x]);return"simple"===s&&e.jsxs("div",{ref:y,class:c.classNames([g,h.floatingTailBaseStyle]),style:p.arrowStyle,children:[" ",e.jsx("div",{class:c.classNames([h.floatingTailBaseStyle]),style:p.arrowInnerStyle})," "]})}));const p=i.forwardRef((({children:t,backgroundColor:i,onClickOutside:u,placement:f="bottom",anchorRef:p,offsetValue:b,class:y,tail:C="none",flipOptions:w={mainAxis:!0,crossAxis:!1},shiftOptions:A={mainAxis:!0,crossAxis:!1},sizeOptions:S={isMaxHeightAdjusted:!1,isMaxWidthAdjusted:!1},boundaryOptions:R={padding:0},onPosition:v},j)=>{const k=n.useRef(null),[F,M]=n.useState(),[O,E]=n.useState(null),{styles:P,baseTheme:T}=l.useComponentTheme(d.FloatingRedwoodTheme);n.useLayoutEffect((()=>{E(p.current)}),[p]),p.current!==O&&E(p.current);const{direction:$}=a.useUser(),H="rtl"===$,V=n.useCallback((t=>{M(t),v?.(t)}),[v]),B=[s.offset(b),s.flip({mainAxis:w.mainAxis,crossAxis:w.crossAxis,fallbackPlacements:w.fallbackPlacements?.map((t=>s.logicalSide(t,$))),padding:R.padding}),s.shift({mainAxis:A.mainAxis,crossAxis:A.crossAxis,limiter:s.limitShift({mainAxis:A.mainAxis,crossAxis:A.crossAxis})}),...k.current?[s.arrow({element:k.current})]:[]];(S.isMaxHeightAdjusted||S.isMaxWidthAdjusted)&&B.push(s.size({apply({availableWidth:t,availableHeight:e,elements:n}){S.isMaxHeightAdjusted&&parseInt(n.floating.style.maxHeight)!==e&&Object.assign(n.floating.style,{maxHeight:`${Math.min(e,S.maxHeightCeiling||e)}px`}),S.isMaxWidthAdjusted&&parseInt(n.floating.style.maxWidth)!==t&&Object.assign(n.floating.style,{maxWidth:`${Math.min(t,S.maxWidthCeiling||t)}px`})},padding:R.padding}));const{x:N,y:U,reference:W,floating:I,refs:z,update:L}=s.useFloating({placement:f,middleware:B,onPosition:V}),[_,D]=n.useState(!1);n.useEffect((()=>{if(z.reference.current&&z.floating.current&&!0===_)return s.autoUpdate(z.reference.current,z.floating.current,L)}),[z.floating,z.reference,L,_]),n.useEffect((()=>{null!=N&&null!=U&&D(!0)}),[N,U]),r.useOutsideClick({isDisabled:!1,ref:z.floating,handler:u}),n.useLayoutEffect((()=>{if(O instanceof Element){return void W(O)}const t=O;if(null!=t&&null!=t.contextElement){const e=function(t,e){let n=null,i=null,s=!1;return{contextElement:t||void 0,getBoundingClientRect(){const o=t?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},r="x"===e.axis||"both"===e.axis,a="y"===e.axis||"both"===e.axis;let l=o.width,c=o.height,u=o.x,f=o.y;return null==n&&e.x&&r&&(n=o.x-e.x),null==i&&e.y&&a&&(i=o.y-e.y),u-=n||0,f-=i||0,l=0,c=0,s?s&&(c="x"===e.axis?o.height:c,l="y"===e.axis?o.width:l):(l="y"===e.axis?o.width:0,c="x"===e.axis?o.height:0,u=r&&null!=e.x?e.x:u,f=a&&null!=e.y?e.y:f),s=!0,{width:l,height:c,x:u,y:f,top:f,right:u+l,bottom:f+c,left:u}}}}(t.contextElement,{axis:"both",x:t.x,y:t.y});return void W(e)}const e={getBoundingClientRect:()=>({width:0,height:0,x:t.x,y:t.y,top:t.y,left:t.x,right:t.x,bottom:t.y})};t&&null!=t.x&&W(e)}),[O,W]);const q=n.useMemo((()=>o.mergeRefs(j,I)),[j,I]),G={top:U,left:N};let J={};i&&(J=h.assignInlineVars({[g.floatingVars.backgroundColor]:i}));const K=null==N&&null==U?m.floatingVisibilityStyles.hidden:m.floatingVisibilityStyles.visible,Q=c.classNames([y,T,P.baseStyle,K]),X=p&&p.current;return e.jsxs("div",{class:Q,ref:q,style:{...G,...J},children:[t,X&&e.jsx(x,{ref:k,backgroundColor:i,data:F,anchorRef:p,tail:C,isRtl:H})]})}));t.Floating=p}));
2
+ //# sourceMappingURL=Floating-043a207a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Floating-28ad0903.js","sources":["../../src/UNSAFE_Floating/FloatingTail.tsx","../../src/UNSAFE_Floating/Floating.tsx"],"sourcesContent":["import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useMemo, useLayoutEffect, useRef, useState } from 'preact/hooks';\nimport type { RefObject } from 'preact';\nimport { PositionData, Coords } from './Floating.types';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles } from './themes/FloatingStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Property } from 'csstype';\nimport { rgba } from '../UNSAFE_Theme/utils';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\n\ntype Props = Pick<ColorProps, 'backgroundColor'> & {\n data?: PositionData;\n anchorRef: RefObject<Element | Coords>;\n tail: 'none' | 'simple';\n isRtl: boolean;\n};\n\nconst ARROW_SIZE = 7;\nconst ARROW_SIZE_CORNER = 6;\nconst ARROW_INNER_SIZE = 5;\nconst ARROW_INNER_SIZE_CORNER = 5;\n\nconst FloatingTail = forwardRef(\n (\n { data, anchorRef, tail, isRtl, backgroundColor }: Props,\n ref: ForwardedRef<HTMLDivElement | null>\n ) => {\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n const arrowRef = useRef<HTMLDivElement | null>(null);\n const [arrowStyles, setArrowStyles] = useState({\n arrowStyle: { visibility: 'hidden' },\n arrowInnerStyle: { visibility: 'hidden' }\n });\n\n useLayoutEffect(() => {\n if (arrowRef.current == null) return;\n const { isCornerVerticalPlacement, isCornerHorizontalPlacement } = isCorner(\n anchorRef,\n tail,\n data\n );\n setArrowStyles(\n setStyles(\n tail,\n isRtl,\n isCornerVerticalPlacement,\n isCornerHorizontalPlacement,\n data,\n backgroundColor\n )\n );\n }, [\n data,\n backgroundColor,\n data?.placement,\n data?.x,\n data?.y,\n data?.offset,\n data?.arrow,\n tail,\n isRtl,\n anchorRef\n ]);\n\n const stableRef = useMemo(() => mergeRefs(ref, arrowRef), [ref, arrowRef]);\n return (\n tail === 'simple' && (\n <div\n ref={stableRef}\n class={classNames([baseTheme, styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowStyle}>\n {' '}\n {/*Outer arrow - shadow*/}\n <div\n class={classNames([styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowInnerStyle}></div>{' '}\n {/*Inner arrow - body*/}\n </div>\n )\n );\n }\n);\n\nfunction isCorner(\n anchorRef: RefObject<Element | Coords>,\n tail: 'none' | 'simple',\n data?: PositionData\n) {\n if (tail === 'simple' && data && data.arrow) {\n const { centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n let anchorRefHeight = 0;\n let anchorRefWidth = 0;\n const current = anchorRef.current;\n // @ts-ignore. Type 'Element | Coords' issues\n // Property 'x' does not exist on type 'Element'.\n // Property 'y' does not exist on type 'Element'.\n const isAnchorRefElement = current?.x === undefined && current?.y === undefined;\n if (isAnchorRefElement) {\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefHeight = Math.round(current.getBoundingClientRect().height);\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefWidth = Math.round(anchorRef.current?.getBoundingClientRect().width);\n }\n const isCornerVerticalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefHeight / 2 - arrowSize / 2\n : ['start-top-corner', 'start-bottom-corner', 'end-top-corner', 'end-bottom-corner'].includes(\n data.origPlacement\n );\n const isCornerHorizontalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefWidth / 2 - arrowSize / 2\n : ['top-start-corner', 'top-end-corner', 'bottom-start-corner', 'bottom-end-corner'].includes(\n data.origPlacement\n );\n\n return { isCornerVerticalPlacement, isCornerHorizontalPlacement };\n } else return { isCornerVerticalPlacement: false, isCornerHorizontalPlacement: false };\n}\n\nfunction setStyles(\n //arrowEl: HTMLDivElement,\n tail: 'none' | 'simple',\n isRtl: boolean,\n isCornerVerticalPlacement: boolean,\n isCornerHorizontalPlacement: boolean,\n data?: PositionData,\n backgroundColor?: Property.BackgroundColor\n) {\n const result = { visibility: 'visible' };\n const innerResult = { visibility: 'visible' };\n if (tail === 'simple' && data && data.arrow) {\n const { x, y, centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n const arrowSizeCorner = ARROW_SIZE_CORNER;\n //const arrowInnerEl = arrowEl.querySelector('div') as Element;\n const arrowInnerSize = ARROW_INNER_SIZE;\n const arrowInnerSizeCorner = ARROW_INNER_SIZE_CORNER;\n\n const isCenter = centerOffset === 0;\n const isCenterOffsetPositive = centerOffset > 0;\n\n // Set sizes of the arrow\n setArrowSizes(isCornerVerticalPlacement || isCornerHorizontalPlacement);\n\n // Corner vs. normal arrow\n function setArrowSizes(isCornerPlacement?: boolean) {\n // Outer arrow (shadow)\n const arrowFinalSize = isCornerPlacement ? arrowSizeCorner : arrowSize;\n setArrowStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowFinalSize)} solid ${rgba(\n colorSchemeVars.palette.neutral[90],\n 0.1\n )}`,\n borderRight: getTransparentBorder(arrowFinalSize),\n borderLeft: getTransparentBorder(arrowFinalSize)\n },\n result\n );\n // Inner arrow\n const arrowInnerFinalSize = isCornerPlacement ? arrowInnerSizeCorner : arrowInnerSize;\n setArrowInnerStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowInnerFinalSize)} solid ${backgroundColor}`,\n borderRight: `${getTransparentBorder(arrowInnerFinalSize)}`,\n borderLeft: `${getTransparentBorder(arrowInnerFinalSize)}`\n },\n innerResult\n );\n }\n\n function setArrowStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function setArrowInnerStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function getTurn(eighth: number) {\n return `rotate(${eighth * 45}deg)`;\n }\n\n function getSize(size: number) {\n return `${size}px`;\n }\n\n function getTransparentBorder(size: number) {\n return `${getSize(size)} solid transparent`;\n }\n\n const placementArr = data.placement.split('-');\n const side = placementArr[0];\n\n switch (side) {\n case 'top':\n setArrowTop();\n break;\n case 'end':\n isRtl ? setArrowStart() : setArrowEnd();\n break;\n case 'bottom':\n setArrowBottom();\n break;\n case 'start':\n isRtl ? setArrowEnd() : setArrowStart();\n break;\n }\n\n function setArrowTop() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Top corners\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize + 2),\n left: getSize(x + (isCenterOffsetPositive ? 5 : -5)),\n transform: getTurn(isCenterOffsetPositive ? 5 : 3)\n },\n result\n );\n setCornerArrowInner();\n } else {\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize),\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(0)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowEnd() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // End corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize - 1),\n transform: getTurn(isCenterOffsetPositive ? 7 : 5)\n },\n result\n );\n setCornerArrowInner();\n } else {\n // End\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize * 1.5),\n transform: getTurn(2)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowBottom() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Bottom corners\n setArrowStyle(\n {\n top: getSize(-arrowSize + 3),\n bottom: '', // flip 'reset'\n left: getSize(x + (isCenterOffsetPositive ? 4 : -4)),\n transform: getTurn(isCenterOffsetPositive ? 2 : 6)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 1 : -1))\n },\n innerResult\n );\n } else {\n setArrowStyle(\n {\n top: getSize(-arrowSize),\n bottom: '', // flip 'reset'\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(4)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowStart() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // Start corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: getSize(-arrowSize - 1),\n left: '', // flip 'reset'\n transform: getTurn(isCenterOffsetPositive ? 1 : 3)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? -2 : 2))\n },\n innerResult\n );\n } else {\n // Start\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: getSize(-arrowSize * 1.5),\n left: '', // flip 'reset'\n transform: getTurn(6)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 2 : -2))\n },\n innerResult\n );\n }\n\n function setNonCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize - 2),\n left: getSize(-arrowInnerSize)\n },\n innerResult\n );\n }\n }\n return { arrowStyle: result, arrowInnerStyle: innerResult };\n}\n\nexport { FloatingTail };\n","import type { RefObject } from 'preact';\nimport { useLayoutEffect, useEffect, useMemo, useState, useRef, useCallback } from 'preact/hooks';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { autoUpdate, arrow } from '@floating-ui/dom';\nimport {\n useFloating,\n shift,\n flip,\n size,\n offset,\n limitShift,\n VirtualElement,\n logicalSide\n} from '../hooks/PRIVATE_useFloating';\nimport { Offset, Placement, Coords, PositionData } from './Floating.types';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { FloatingTail } from './FloatingTail';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles, floatingVisibilityStyles } from './themes/FloatingStyles.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { floatingVars } from './themes/FloatingContract.css';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children' | 'class'>;\n/**\n * Specifies the flipping behavior along the respective axis.\n */\nexport type FlipOptions = {\n /**\n * If set to true, enables collision detection on the main axis,\n * which runs along the floating placement side.\n */\n mainAxis?: boolean;\n /**\n * If set to true, enables collision detection on the cross axis,\n * which runs along the floating placement side.\n */\n crossAxis?: boolean;\n /**\n * Specifies an array of placements to try\n * if the preferred initial placement doesn’t fit on the axes\n * in which collision is detected.\n */\n fallbackPlacements?: Array<Placement>;\n};\n\n/**\n * Specifies the shift behavior along the respective axis.\n * When true, the floating element will shift to prevent overflow.\n */\nexport type ShiftOptions = {\n /**\n * main axis in which shifting is applied. Default <code>true</code>.\n */\n mainAxis?: boolean;\n /**\n * cross axis in which shifting is applied. Default <code>false</code>.\n */\n crossAxis?: boolean;\n};\n\n/**\n * This describes the virtual padding around the collision boundary (currently the view port).\n * This could be extended in the future,\n * i.e. property to define what is a boundary ( a view port, a document, some other html element)\n */\nexport type BoundaryOptions = {\n padding?:\n | number\n | {\n top: number;\n right: number;\n bottom: number;\n left: number;\n };\n};\n/**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * The floating element will change the size depending on the available space.\n * isMaxHeightAdjusted/isMaxWidthAdjusted - sets the max-height/max-width of the floating to the available space till the collision.\n * maxHeightCeiling/maxWidthCeiling - this is the limit for max-height/max-width that should not be exceeded, even if there is more available space till the collision.\n */\nexport type SizeOptions = {\n isMaxWidthAdjusted?: boolean;\n isMaxHeightAdjusted?: boolean;\n maxHeightCeiling?: number;\n maxWidthCeiling?: number;\n};\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> & {\n /**\n * <p>Placement of the floating element relative to its reference element.</p>\n * <p>Placement consists of two parts, the first part is the side, the second is the alignment.</p>\n * <p>Possible values are:</p>\n * <p> <code>'top' </code> <code>'top-start' </code> <code> 'top-end' </code> <code> 'top-start-corner' </code> <code> 'top-end-corner' </code>\n * <code> 'end' </code> <code> 'end-top' </code> <code> 'end-bottom' </code> <code> 'end-top-corner' </code> <code> 'end-bottom-corner' </code>\n * <code> 'bottom' </code> <code> 'bottom-start' </code> <code> 'bottom-end' </code> <code> 'bottom-start-corner' </code> <code> 'bottom-end-corner' </code>\n * <code> 'start' </code> <code> 'start-top' </code> <code> 'start-bottom' </code> <code> 'start-top-corner' </code> <code> 'start-bottom-corner' </code>\n * </p>\n */\n placement?: Placement;\n\n /**\n * Trigger element reference.\n */\n anchorRef: RefObject<Element | Coords>;\n\n /**\n * Placement offset.\n * Offset displaces the floating element from its core placement along the specified axes.\n * Offset could be a number or an object\n * A number represents the distance (gutter or margin) between the floating element and the reference element.\n * This is shorthand for mainAxis.\n * <pre>\n * {\n * mainAxis?: number;\n * crossAxis?: number;\n * }\n * </pre>\n * <p><code>mainAxis</code> - represents the distance (gutter or margin) between the floating element and the reference element.</p>\n * <p><code>crossAxis</code> - represents the shifting between the floating element and the reference element.<p>\n */\n offsetValue?: Offset;\n\n /**\n * Click outside callback.\n */\n onClickOutside?: (event: MouseEvent) => void;\n\n /**\n * FlipOptions object\n * <pre>\n * type FlipOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * fallbackPlacements?: Array<Placement>;\n * }\n * </pre>\n * <p>Specifies the flipping behavior along the respective axis.<p>\n * <p><code>mainAxis</code> - If set to true, enables collision detection on the main axis, which runs along the floating placement side.\n * Default is <code>true</code>.\n * </p>\n * <p><code>crossAxis</code> - If set to true, enables collision detection on the cross axis, which runs along the floating placement alignment.\n * Default is <code>false</code>.\n * </p>\n * <p><code>fallbackPlacements</code> - specifies an array of placements to try if the preferred initial placement doesn’t fit on the axes in which collision is detected.\n * The fallback placements will be tried in the order they are specified in the array.\n * The following placements are allowed as values of the array:\n * <code>'top'</code>, <code>'top-start'</code>, <code>'top-end'</code>, <code>'start'</code>, <code>'start-top'</code>, <code>'start-bottom'</code>, <code>'bottom'</code>,\n * <code>'bottom-start'</code>, <code>'bottom-end'</code>, <code>'end'</code>, <code>'end-top'</code>, <code>'end-bottom'</code>.\n * <p>\n * If not specified, the default behaviour is to flip to the side <code>opposite</code> to the one in which collision is detected\n * </p>\n * </p>\n */\n flipOptions?: FlipOptions;\n\n /**\n * Specifies the shift behavior along the respective axis. When true, the floating element will shift to prevent overflow.\n * <pre>\n * type ShiftOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * };\n * </pre>\n * <p><code>mainAxis</code> - main axis in which shifting is applied. Default <code>true</code>.</p>\n * <p><code>crossAxis</code> - cross axis in which shifting is applied. Default <code>false</code>.</p>\n */\n shiftOptions?: ShiftOptions;\n\n /**\n * Triggered when placement or coordinates are changed after collision is detected\n */\n onPosition?: (data: PositionData) => void;\n\n /**\n * Tail\n */\n tail?: 'none' | 'simple';\n\n /**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * <pre>\n * type SizeOptions = {\n * isMaxWidthAdjusted?: boolean;\n * isMaxHeightAdjusted?: boolean;\n * maxHeightCeiling?: number;\n * maxWidthCeiling?: number;\n * }\n * </pre>\n * <p><code>isMaxHeightAdjusted</code> and <code>isMaxWidthAdjusted</code> - sets the max-height/max-width of the floating to the available space till the collision.\n * When either of the options isMaxHeightAdjusted, isMaxWidthAdjusted is true, the floating element will change the size depending on the available space.\n * Default values are <code>'false'</code>.</p>\n * <p><code>maxHeightCeiling</code> and <code>maxWidthCeiling</code> - are maximal values that could not be exceeded.\n * Defaults are undefined and it means to use full available width/height.</p>\n */\n sizeOptions?: SizeOptions;\n\n /**\n * <p>This describes the virtual padding around the collision boundary (currently the view port).</p>\n * <p>This could be extended in the future,\n * i.e. property to define what is a boundary\n * ( a view port, a document, some other html element)</p>\n * <pre>\n * type BoundaryOptions = {\n * padding?: number | {\n * top: number;\n * right: number;\n * bottom: number;\n * left: number;\n * };\n * }\n * </pre>\n * Default value for padding is 0.\n */\n boundaryOptions?: BoundaryOptions;\n };\n\nfunction isElement(value: any): value is Element {\n return value instanceof Element;\n}\n\n/**\n * A floating component allows the user to create a floating element that is displayed relative to an anchor element or pointer coordinates\n * and at the same time on the \"top layer\" of all other elements.\n * The Floating component is a base component and is often used by such components as Popup, Tooltip, SelectMultiple, Menu and other components.\n */\nexport const Floating = forwardRef(\n (\n {\n children,\n backgroundColor,\n onClickOutside,\n placement = 'bottom',\n anchorRef,\n offsetValue,\n class: className,\n tail = 'none',\n flipOptions = { mainAxis: true, crossAxis: false },\n shiftOptions = { mainAxis: true, crossAxis: false },\n sizeOptions = { isMaxHeightAdjusted: false, isMaxWidthAdjusted: false },\n boundaryOptions = { padding: 0 },\n onPosition\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n const arrowRef = useRef<HTMLDivElement>(null);\n const [positionData, setPositionData] = useState<PositionData>();\n\n const [previousAnchor, setPreviousAnchor] = useState<Element | Coords | null>(null);\n\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n\n // we need to be sure anchorRef.current exists in first call\n // to be able to set the previousAnchor state\n useLayoutEffect(() => {\n setPreviousAnchor(anchorRef.current);\n }, [anchorRef]);\n\n // In case anchorRef.current changes and we need to update floating position\n // when it changes, we need to have copy in the state.\n // For example when anchorRef is Coords( virtual element)\n if (anchorRef.current !== previousAnchor) {\n setPreviousAnchor(anchorRef.current);\n }\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const _onPosition = useCallback(\n (data: PositionData) => {\n setPositionData(data);\n onPosition?.(data);\n },\n [onPosition]\n );\n\n const middleware = [\n offset(offsetValue),\n flip({\n mainAxis: flipOptions.mainAxis,\n crossAxis: flipOptions.crossAxis,\n fallbackPlacements: flipOptions.fallbackPlacements?.map((placement) =>\n logicalSide(placement, direction)\n ),\n padding: boundaryOptions.padding\n }),\n shift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis,\n limiter: limitShift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis\n })\n }),\n ...(arrowRef.current\n ? [\n arrow({\n element: arrowRef.current\n })\n ]\n : [])\n ];\n if (sizeOptions.isMaxHeightAdjusted || sizeOptions.isMaxWidthAdjusted) {\n middleware.push(\n size({\n apply({ availableWidth, availableHeight, elements }) {\n if (sizeOptions.isMaxHeightAdjusted) {\n if (parseInt(elements.floating.style.maxHeight) !== availableHeight) {\n Object.assign(elements.floating.style, {\n maxHeight: `${Math.min(\n availableHeight,\n sizeOptions.maxHeightCeiling || availableHeight\n )}px`\n });\n }\n }\n\n if (sizeOptions.isMaxWidthAdjusted) {\n if (parseInt(elements.floating.style.maxWidth) !== availableWidth) {\n Object.assign(elements.floating.style, {\n maxWidth: `${Math.min(\n availableWidth,\n sizeOptions.maxWidthCeiling || availableWidth\n )}px`\n });\n }\n }\n },\n\n padding: boundaryOptions.padding\n })\n );\n }\n\n const { x, y, reference, floating, refs, update } = useFloating({\n placement: placement,\n middleware: middleware,\n onPosition: _onPosition\n });\n\n // To solve \"loop limit exceeds\" problem from the ResizeObserver in autoUpdate\n // we need to make sure that we utilize autoUpdate function\n // after the Floating component is positioned and has x, y coordinates.\n const [isPositioned, setIsPositioned] = useState(false);\n\n // here autoUpdate should be called only once during the Component lifecycle,\n // if the floating, reference, placement and middleware do not change\n useEffect(() => {\n if (!refs.reference.current || !refs.floating.current || isPositioned !== true) {\n return;\n }\n\n return autoUpdate(refs.reference.current, refs.floating.current, update);\n }, [refs.floating, refs.reference, update, isPositioned]);\n\n // here we should know when the Floating is positioned\n useEffect(() => {\n if (x != null && y != null) {\n setIsPositioned(true);\n }\n }, [x, y]);\n\n useOutsideClick({ isDisabled: false, ref: refs.floating, handler: onClickOutside });\n\n function createVirtualElement(\n domRef: Element | null,\n data: {\n axis: 'x' | 'y' | 'both';\n x: number | null;\n y: number | null;\n }\n ) {\n let offsetX: number | null = null;\n let offsetY: number | null = null;\n let isAutoUpdateEvent = false;\n\n return {\n contextElement: domRef || undefined,\n getBoundingClientRect() {\n const domRect = domRef?.getBoundingClientRect() || {\n width: 0,\n height: 0,\n x: 0,\n y: 0\n };\n\n const isXAxis = data.axis === 'x' || data.axis === 'both';\n const isYAxis = data.axis === 'y' || data.axis === 'both';\n\n let width = domRect.width;\n let height = domRect.height;\n let x = domRect.x;\n let y = domRect.y;\n\n if (offsetX == null && data.x && isXAxis) {\n offsetX = domRect.x - data.x;\n }\n\n if (offsetY == null && data.y && isYAxis) {\n offsetY = domRect.y - data.y;\n }\n\n x -= offsetX || 0;\n y -= offsetY || 0;\n width = 0;\n height = 0;\n\n if (!isAutoUpdateEvent) {\n width = data.axis === 'y' ? domRect.width : 0;\n height = data.axis === 'x' ? domRect.height : 0;\n x = isXAxis && data.x != null ? data.x : x;\n y = isYAxis && data.y != null ? data.y : y;\n } else if (isAutoUpdateEvent) {\n height = data.axis === 'x' ? domRect.height : height;\n width = data.axis === 'y' ? domRect.width : width;\n }\n\n isAutoUpdateEvent = true;\n const virtEl = {\n width,\n height,\n x,\n y,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x\n };\n\n return virtEl;\n }\n };\n }\n\n useLayoutEffect(() => {\n if (isElement(previousAnchor)) {\n const element = previousAnchor as Element;\n reference(element);\n return;\n }\n const coords = previousAnchor as Coords;\n if (coords != null && coords.contextElement != null) {\n const virtualEl = createVirtualElement(coords.contextElement, {\n axis: 'both',\n x: coords.x,\n y: coords.y\n });\n reference(virtualEl);\n return;\n }\n const virtualEl: VirtualElement = {\n getBoundingClientRect() {\n return {\n width: 0,\n height: 0,\n x: coords!.x,\n y: coords!.y,\n top: coords!.y,\n left: coords!.x,\n right: coords!.x,\n bottom: coords!.y\n };\n }\n };\n if (coords && coords.x != null) {\n reference(virtualEl);\n }\n }, [previousAnchor, reference]);\n\n const stableRef = useMemo(() => mergeRefs(ref, floating), [ref, floating]);\n const positionStyle = { top: y, left: x };\n\n let assignedVars = {}; // empty var override unless background is specified\n if (backgroundColor) {\n assignedVars = assignInlineVars({\n [floatingVars.backgroundColor]: backgroundColor\n });\n }\n\n const visibilityStyles =\n x == null && y == null ? floatingVisibilityStyles.hidden : floatingVisibilityStyles.visible;\n const floatingClasses = classNames([className, baseTheme, styles.baseStyle, visibilityStyles]);\n const isAnchorMounted = anchorRef && anchorRef.current;\n const content = (\n <div class={floatingClasses} ref={stableRef} style={{ ...positionStyle, ...assignedVars }}>\n {children}\n {isAnchorMounted && (\n <FloatingTail\n ref={arrowRef}\n backgroundColor={backgroundColor}\n data={positionData}\n anchorRef={anchorRef}\n tail={tail}\n isRtl={isRtl}\n />\n )}\n </div>\n );\n return content;\n }\n);\n"],"names":["FloatingTail","forwardRef","data","anchorRef","tail","isRtl","backgroundColor","ref","styles","baseTheme","useComponentTheme","FloatingRedwoodTheme","arrowRef","useRef","arrowStyles","setArrowStyles","useState","arrowStyle","visibility","arrowInnerStyle","useLayoutEffect","current","isCornerVerticalPlacement","isCornerHorizontalPlacement","arrow","centerOffset","arrowSize","anchorRefHeight","anchorRefWidth","isAnchorRefElement","undefined","x","y","Math","round","getBoundingClientRect","height","width","abs","includes","origPlacement","isCorner","result","innerResult","arrowSizeCorner","arrowInnerSize","arrowInnerSizeCorner","isCenter","isCenterOffsetPositive","setArrowSizes","isCornerPlacement","arrowFinalSize","setArrowStyle","borderTop","getSize","rgba","colorSchemeVars","palette","neutral","borderRight","getTransparentBorder","borderLeft","arrowInnerFinalSize","setArrowInnerStyle","style","Object","assign","getTurn","eighth","size","placement","split","setArrowTop","setArrowStart","setArrowEnd","setArrowBottom","top","bottom","left","transform","setCornerArrowInner","setNonCornerArrowInner","right","setStyles","offset","stableRef","useMemo","mergeRefs","_jsxs","class","classNames","floatingTailBaseStyle","children","_jsx","Floating","onClickOutside","offsetValue","className","flipOptions","mainAxis","crossAxis","shiftOptions","sizeOptions","isMaxHeightAdjusted","isMaxWidthAdjusted","boundaryOptions","padding","onPosition","positionData","setPositionData","previousAnchor","setPreviousAnchor","direction","useUser","_onPosition","useCallback","middleware","flip","fallbackPlacements","map","logicalSide","shift","limiter","limitShift","element","push","apply","availableWidth","availableHeight","elements","parseInt","floating","maxHeight","min","maxHeightCeiling","maxWidth","maxWidthCeiling","reference","refs","update","useFloating","isPositioned","setIsPositioned","useEffect","autoUpdate","useOutsideClick","isDisabled","handler","Element","coords","contextElement","virtualEl","domRef","offsetX","offsetY","isAutoUpdateEvent","domRect","isXAxis","axis","isYAxis","createVirtualElement","positionStyle","assignedVars","assignInlineVars","floatingVars","visibilityStyles","floatingVisibilityStyles","hidden","visible","floatingClasses","baseStyle","isAnchorMounted"],"mappings":"sgBAqBA,MAKMA,EAAeC,EAAAA,YACnB,EACIC,OAAMC,YAAWC,OAAMC,QAAOC,mBAChCC,KAEA,MAAMC,OAAEA,EAAMC,UAAEA,GAAcC,EAAiBA,kBAAwBC,EAAoBA,sBACrFC,EAAWC,SAA8B,OACxCC,EAAaC,GAAkBC,WAAS,CAC7CC,WAAY,CAAEC,WAAY,UAC1BC,gBAAiB,CAAED,WAAY,YAGjCE,EAAAA,iBAAgB,KACd,GAAwB,MAApBR,EAASS,QAAiB,OAC9B,MAAMC,0BAAEA,EAAyBC,4BAAEA,GA+CzC,SACEpB,EACAC,EACAF,GAEA,GAAa,WAATE,GAAqBF,GAAQA,EAAKsB,MAAO,CAC3C,MAAMC,aAAEA,GAAiBvB,EAAKsB,MACxBE,EAzES,EA0Ef,IAAIC,EAAkB,E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MA,EACNC,MAAOA,MAKD"}
1
+ {"version":3,"file":"Floating-043a207a.js","sources":["../../src/UNSAFE_Floating/FloatingTail.tsx","../../src/UNSAFE_Floating/Floating.tsx"],"sourcesContent":["import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useMemo, useLayoutEffect, useRef, useState } from 'preact/hooks';\nimport type { RefObject } from 'preact';\nimport { PositionData, Coords } from './Floating.types';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles } from './themes/FloatingStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Property } from 'csstype';\nimport { rgba } from '../UNSAFE_Theme/utils';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\n\ntype Props = Pick<ColorProps, 'backgroundColor'> & {\n data?: PositionData;\n anchorRef: RefObject<Element | Coords>;\n tail: 'none' | 'simple';\n isRtl: boolean;\n};\n\nconst ARROW_SIZE = 7;\nconst ARROW_SIZE_CORNER = 6;\nconst ARROW_INNER_SIZE = 5;\nconst ARROW_INNER_SIZE_CORNER = 5;\n\nconst FloatingTail = forwardRef(\n (\n { data, anchorRef, tail, isRtl, backgroundColor }: Props,\n ref: ForwardedRef<HTMLDivElement | null>\n ) => {\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n const arrowRef = useRef<HTMLDivElement | null>(null);\n const [arrowStyles, setArrowStyles] = useState({\n arrowStyle: { visibility: 'hidden' },\n arrowInnerStyle: { visibility: 'hidden' }\n });\n\n useLayoutEffect(() => {\n if (arrowRef.current == null) return;\n const { isCornerVerticalPlacement, isCornerHorizontalPlacement } = isCorner(\n anchorRef,\n tail,\n data\n );\n setArrowStyles(\n setStyles(\n tail,\n isRtl,\n isCornerVerticalPlacement,\n isCornerHorizontalPlacement,\n data,\n backgroundColor\n )\n );\n }, [\n data,\n backgroundColor,\n data?.placement,\n data?.x,\n data?.y,\n data?.offset,\n data?.arrow,\n tail,\n isRtl,\n anchorRef\n ]);\n\n const stableRef = useMemo(() => mergeRefs(ref, arrowRef), [ref, arrowRef]);\n return (\n tail === 'simple' && (\n <div\n ref={stableRef}\n class={classNames([baseTheme, styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowStyle}>\n {' '}\n {/*Outer arrow - shadow*/}\n <div\n class={classNames([styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowInnerStyle}></div>{' '}\n {/*Inner arrow - body*/}\n </div>\n )\n );\n }\n);\n\nfunction isCorner(\n anchorRef: RefObject<Element | Coords>,\n tail: 'none' | 'simple',\n data?: PositionData\n) {\n if (tail === 'simple' && data && data.arrow) {\n const { centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n let anchorRefHeight = 0;\n let anchorRefWidth = 0;\n const current = anchorRef.current;\n // @ts-ignore. Type 'Element | Coords' issues\n // Property 'x' does not exist on type 'Element'.\n // Property 'y' does not exist on type 'Element'.\n const isAnchorRefElement = current?.x === undefined && current?.y === undefined;\n if (isAnchorRefElement) {\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefHeight = Math.round(current.getBoundingClientRect().height);\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefWidth = Math.round(anchorRef.current?.getBoundingClientRect().width);\n }\n const isCornerVerticalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefHeight / 2 - arrowSize / 2\n : ['start-top-corner', 'start-bottom-corner', 'end-top-corner', 'end-bottom-corner'].includes(\n data.origPlacement\n );\n const isCornerHorizontalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefWidth / 2 - arrowSize / 2\n : ['top-start-corner', 'top-end-corner', 'bottom-start-corner', 'bottom-end-corner'].includes(\n data.origPlacement\n );\n\n return { isCornerVerticalPlacement, isCornerHorizontalPlacement };\n } else return { isCornerVerticalPlacement: false, isCornerHorizontalPlacement: false };\n}\n\nfunction setStyles(\n //arrowEl: HTMLDivElement,\n tail: 'none' | 'simple',\n isRtl: boolean,\n isCornerVerticalPlacement: boolean,\n isCornerHorizontalPlacement: boolean,\n data?: PositionData,\n backgroundColor?: Property.BackgroundColor\n) {\n const result = { visibility: 'visible' };\n const innerResult = { visibility: 'visible' };\n if (tail === 'simple' && data && data.arrow) {\n const { x, y, centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n const arrowSizeCorner = ARROW_SIZE_CORNER;\n //const arrowInnerEl = arrowEl.querySelector('div') as Element;\n const arrowInnerSize = ARROW_INNER_SIZE;\n const arrowInnerSizeCorner = ARROW_INNER_SIZE_CORNER;\n\n const isCenter = centerOffset === 0;\n const isCenterOffsetPositive = centerOffset > 0;\n\n // Set sizes of the arrow\n setArrowSizes(isCornerVerticalPlacement || isCornerHorizontalPlacement);\n\n // Corner vs. normal arrow\n function setArrowSizes(isCornerPlacement?: boolean) {\n // Outer arrow (shadow)\n const arrowFinalSize = isCornerPlacement ? arrowSizeCorner : arrowSize;\n setArrowStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowFinalSize)} solid ${rgba(\n colorSchemeVars.palette.neutral[90],\n 0.1\n )}`,\n borderRight: getTransparentBorder(arrowFinalSize),\n borderLeft: getTransparentBorder(arrowFinalSize)\n },\n result\n );\n // Inner arrow\n const arrowInnerFinalSize = isCornerPlacement ? arrowInnerSizeCorner : arrowInnerSize;\n setArrowInnerStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowInnerFinalSize)} solid ${backgroundColor}`,\n borderRight: `${getTransparentBorder(arrowInnerFinalSize)}`,\n borderLeft: `${getTransparentBorder(arrowInnerFinalSize)}`\n },\n innerResult\n );\n }\n\n function setArrowStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function setArrowInnerStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function getTurn(eighth: number) {\n return `rotate(${eighth * 45}deg)`;\n }\n\n function getSize(size: number) {\n return `${size}px`;\n }\n\n function getTransparentBorder(size: number) {\n return `${getSize(size)} solid transparent`;\n }\n\n const placementArr = data.placement.split('-');\n const side = placementArr[0];\n\n switch (side) {\n case 'top':\n setArrowTop();\n break;\n case 'end':\n isRtl ? setArrowStart() : setArrowEnd();\n break;\n case 'bottom':\n setArrowBottom();\n break;\n case 'start':\n isRtl ? setArrowEnd() : setArrowStart();\n break;\n }\n\n function setArrowTop() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Top corners\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize + 2),\n left: getSize(x + (isCenterOffsetPositive ? 5 : -5)),\n transform: getTurn(isCenterOffsetPositive ? 5 : 3)\n },\n result\n );\n setCornerArrowInner();\n } else {\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize),\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(0)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowEnd() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // End corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize - 1),\n transform: getTurn(isCenterOffsetPositive ? 7 : 5)\n },\n result\n );\n setCornerArrowInner();\n } else {\n // End\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize * 1.5),\n transform: getTurn(2)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowBottom() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Bottom corners\n setArrowStyle(\n {\n top: getSize(-arrowSize + 3),\n bottom: '', // flip 'reset'\n left: getSize(x + (isCenterOffsetPositive ? 4 : -4)),\n transform: getTurn(isCenterOffsetPositive ? 2 : 6)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 1 : -1))\n },\n innerResult\n );\n } else {\n setArrowStyle(\n {\n top: getSize(-arrowSize),\n bottom: '', // flip 'reset'\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(4)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowStart() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // Start corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: getSize(-arrowSize - 1),\n left: '', // flip 'reset'\n transform: getTurn(isCenterOffsetPositive ? 1 : 3)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? -2 : 2))\n },\n innerResult\n );\n } else {\n // Start\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: getSize(-arrowSize * 1.5),\n left: '', // flip 'reset'\n transform: getTurn(6)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 2 : -2))\n },\n innerResult\n );\n }\n\n function setNonCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize - 2),\n left: getSize(-arrowInnerSize)\n },\n innerResult\n );\n }\n }\n return { arrowStyle: result, arrowInnerStyle: innerResult };\n}\n\nexport { FloatingTail };\n","import type { RefObject } from 'preact';\nimport { useLayoutEffect, useEffect, useMemo, useState, useRef, useCallback } from 'preact/hooks';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { autoUpdate, arrow } from '@floating-ui/dom';\nimport {\n useFloating,\n shift,\n flip,\n size,\n offset,\n limitShift,\n VirtualElement,\n logicalSide\n} from '../hooks/PRIVATE_useFloating';\nimport { Offset, Placement, Coords, PositionData } from './Floating.types';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { FloatingTail } from './FloatingTail';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles, floatingVisibilityStyles } from './themes/FloatingStyles.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { floatingVars } from './themes/FloatingContract.css';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children' | 'class'>;\n/**\n * Specifies the flipping behavior along the respective axis.\n */\nexport type FlipOptions = {\n /**\n * If set to true, enables collision detection on the main axis,\n * which runs along the floating placement side.\n */\n mainAxis?: boolean;\n /**\n * If set to true, enables collision detection on the cross axis,\n * which runs along the floating placement side.\n */\n crossAxis?: boolean;\n /**\n * Specifies an array of placements to try\n * if the preferred initial placement doesn’t fit on the axes\n * in which collision is detected.\n */\n fallbackPlacements?: Array<Placement>;\n};\n\n/**\n * Specifies the shift behavior along the respective axis.\n * When true, the floating element will shift to prevent overflow.\n */\nexport type ShiftOptions = {\n /**\n * main axis in which shifting is applied. Default <code>true</code>.\n */\n mainAxis?: boolean;\n /**\n * cross axis in which shifting is applied. Default <code>false</code>.\n */\n crossAxis?: boolean;\n};\n\n/**\n * This describes the virtual padding around the collision boundary (currently the view port).\n * This could be extended in the future,\n * i.e. property to define what is a boundary ( a view port, a document, some other html element)\n */\nexport type BoundaryOptions = {\n padding?:\n | number\n | {\n top: number;\n right: number;\n bottom: number;\n left: number;\n };\n};\n/**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * The floating element will change the size depending on the available space.\n * isMaxHeightAdjusted/isMaxWidthAdjusted - sets the max-height/max-width of the floating to the available space till the collision.\n * maxHeightCeiling/maxWidthCeiling - this is the limit for max-height/max-width that should not be exceeded, even if there is more available space till the collision.\n */\nexport type SizeOptions = {\n isMaxWidthAdjusted?: boolean;\n isMaxHeightAdjusted?: boolean;\n maxHeightCeiling?: number;\n maxWidthCeiling?: number;\n};\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> & {\n /**\n * <p>Placement of the floating element relative to its reference element.</p>\n * <p>Placement consists of two parts, the first part is the side, the second is the alignment.</p>\n * <p>Possible values are:</p>\n * <p> <code>'top' </code> <code>'top-start' </code> <code> 'top-end' </code> <code> 'top-start-corner' </code> <code> 'top-end-corner' </code>\n * <code> 'end' </code> <code> 'end-top' </code> <code> 'end-bottom' </code> <code> 'end-top-corner' </code> <code> 'end-bottom-corner' </code>\n * <code> 'bottom' </code> <code> 'bottom-start' </code> <code> 'bottom-end' </code> <code> 'bottom-start-corner' </code> <code> 'bottom-end-corner' </code>\n * <code> 'start' </code> <code> 'start-top' </code> <code> 'start-bottom' </code> <code> 'start-top-corner' </code> <code> 'start-bottom-corner' </code>\n * </p>\n */\n placement?: Placement;\n\n /**\n * Trigger element reference.\n */\n anchorRef: RefObject<Element | Coords>;\n\n /**\n * Placement offset.\n * Offset displaces the floating element from its core placement along the specified axes.\n * Offset could be a number or an object\n * A number represents the distance (gutter or margin) between the floating element and the reference element.\n * This is shorthand for mainAxis.\n * <pre>\n * {\n * mainAxis?: number;\n * crossAxis?: number;\n * }\n * </pre>\n * <p><code>mainAxis</code> - represents the distance (gutter or margin) between the floating element and the reference element.</p>\n * <p><code>crossAxis</code> - represents the shifting between the floating element and the reference element.<p>\n */\n offsetValue?: Offset;\n\n /**\n * Click outside callback.\n */\n onClickOutside?: (event: MouseEvent) => void;\n\n /**\n * FlipOptions object\n * <pre>\n * type FlipOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * fallbackPlacements?: Array<Placement>;\n * }\n * </pre>\n * <p>Specifies the flipping behavior along the respective axis.<p>\n * <p><code>mainAxis</code> - If set to true, enables collision detection on the main axis, which runs along the floating placement side.\n * Default is <code>true</code>.\n * </p>\n * <p><code>crossAxis</code> - If set to true, enables collision detection on the cross axis, which runs along the floating placement alignment.\n * Default is <code>false</code>.\n * </p>\n * <p><code>fallbackPlacements</code> - specifies an array of placements to try if the preferred initial placement doesn’t fit on the axes in which collision is detected.\n * The fallback placements will be tried in the order they are specified in the array.\n * The following placements are allowed as values of the array:\n * <code>'top'</code>, <code>'top-start'</code>, <code>'top-end'</code>, <code>'start'</code>, <code>'start-top'</code>, <code>'start-bottom'</code>, <code>'bottom'</code>,\n * <code>'bottom-start'</code>, <code>'bottom-end'</code>, <code>'end'</code>, <code>'end-top'</code>, <code>'end-bottom'</code>.\n * <p>\n * If not specified, the default behaviour is to flip to the side <code>opposite</code> to the one in which collision is detected\n * </p>\n * </p>\n */\n flipOptions?: FlipOptions;\n\n /**\n * Specifies the shift behavior along the respective axis. When true, the floating element will shift to prevent overflow.\n * <pre>\n * type ShiftOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * };\n * </pre>\n * <p><code>mainAxis</code> - main axis in which shifting is applied. Default <code>true</code>.</p>\n * <p><code>crossAxis</code> - cross axis in which shifting is applied. Default <code>false</code>.</p>\n */\n shiftOptions?: ShiftOptions;\n\n /**\n * Triggered when placement or coordinates are changed after collision is detected\n */\n onPosition?: (data: PositionData) => void;\n\n /**\n * Tail\n */\n tail?: 'none' | 'simple';\n\n /**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * <pre>\n * type SizeOptions = {\n * isMaxWidthAdjusted?: boolean;\n * isMaxHeightAdjusted?: boolean;\n * maxHeightCeiling?: number;\n * maxWidthCeiling?: number;\n * }\n * </pre>\n * <p><code>isMaxHeightAdjusted</code> and <code>isMaxWidthAdjusted</code> - sets the max-height/max-width of the floating to the available space till the collision.\n * When either of the options isMaxHeightAdjusted, isMaxWidthAdjusted is true, the floating element will change the size depending on the available space.\n * Default values are <code>'false'</code>.</p>\n * <p><code>maxHeightCeiling</code> and <code>maxWidthCeiling</code> - are maximal values that could not be exceeded.\n * Defaults are undefined and it means to use full available width/height.</p>\n */\n sizeOptions?: SizeOptions;\n\n /**\n * <p>This describes the virtual padding around the collision boundary (currently the view port).</p>\n * <p>This could be extended in the future,\n * i.e. property to define what is a boundary\n * ( a view port, a document, some other html element)</p>\n * <pre>\n * type BoundaryOptions = {\n * padding?: number | {\n * top: number;\n * right: number;\n * bottom: number;\n * left: number;\n * };\n * }\n * </pre>\n * Default value for padding is 0.\n */\n boundaryOptions?: BoundaryOptions;\n };\n\nfunction isElement(value: any): value is Element {\n return value instanceof Element;\n}\n\n/**\n * A floating component allows the user to create a floating element that is displayed relative to an anchor element or pointer coordinates\n * and at the same time on the \"top layer\" of all other elements.\n * The Floating component is a base component and is often used by such components as Popup, Tooltip, SelectMultiple, Menu and other components.\n */\nexport const Floating = forwardRef(\n (\n {\n children,\n backgroundColor,\n onClickOutside,\n placement = 'bottom',\n anchorRef,\n offsetValue,\n class: className,\n tail = 'none',\n flipOptions = { mainAxis: true, crossAxis: false },\n shiftOptions = { mainAxis: true, crossAxis: false },\n sizeOptions = { isMaxHeightAdjusted: false, isMaxWidthAdjusted: false },\n boundaryOptions = { padding: 0 },\n onPosition\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n const arrowRef = useRef<HTMLDivElement>(null);\n const [positionData, setPositionData] = useState<PositionData>();\n\n const [previousAnchor, setPreviousAnchor] = useState<Element | Coords | null>(null);\n\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n\n // we need to be sure anchorRef.current exists in first call\n // to be able to set the previousAnchor state\n useLayoutEffect(() => {\n setPreviousAnchor(anchorRef.current);\n }, [anchorRef]);\n\n // In case anchorRef.current changes and we need to update floating position\n // when it changes, we need to have copy in the state.\n // For example when anchorRef is Coords( virtual element)\n if (anchorRef.current !== previousAnchor) {\n setPreviousAnchor(anchorRef.current);\n }\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const _onPosition = useCallback(\n (data: PositionData) => {\n setPositionData(data);\n onPosition?.(data);\n },\n [onPosition]\n );\n\n const middleware = [\n offset(offsetValue),\n flip({\n mainAxis: flipOptions.mainAxis,\n crossAxis: flipOptions.crossAxis,\n fallbackPlacements: flipOptions.fallbackPlacements?.map((placement) =>\n logicalSide(placement, direction)\n ),\n padding: boundaryOptions.padding\n }),\n shift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis,\n limiter: limitShift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis\n })\n }),\n ...(arrowRef.current\n ? [\n arrow({\n element: arrowRef.current\n })\n ]\n : [])\n ];\n if (sizeOptions.isMaxHeightAdjusted || sizeOptions.isMaxWidthAdjusted) {\n middleware.push(\n size({\n apply({ availableWidth, availableHeight, elements }) {\n if (sizeOptions.isMaxHeightAdjusted) {\n if (parseInt(elements.floating.style.maxHeight) !== availableHeight) {\n Object.assign(elements.floating.style, {\n maxHeight: `${Math.min(\n availableHeight,\n sizeOptions.maxHeightCeiling || availableHeight\n )}px`\n });\n }\n }\n\n if (sizeOptions.isMaxWidthAdjusted) {\n if (parseInt(elements.floating.style.maxWidth) !== availableWidth) {\n Object.assign(elements.floating.style, {\n maxWidth: `${Math.min(\n availableWidth,\n sizeOptions.maxWidthCeiling || availableWidth\n )}px`\n });\n }\n }\n },\n\n padding: boundaryOptions.padding\n })\n );\n }\n\n const { x, y, reference, floating, refs, update } = useFloating({\n placement: placement,\n middleware: middleware,\n onPosition: _onPosition\n });\n\n // To solve \"loop limit exceeds\" problem from the ResizeObserver in autoUpdate\n // we need to make sure that we utilize autoUpdate function\n // after the Floating component is positioned and has x, y coordinates.\n const [isPositioned, setIsPositioned] = useState(false);\n\n // here autoUpdate should be called only once during the Component lifecycle,\n // if the floating, reference, placement and middleware do not change\n useEffect(() => {\n if (!refs.reference.current || !refs.floating.current || isPositioned !== true) {\n return;\n }\n\n return autoUpdate(refs.reference.current, refs.floating.current, update);\n }, [refs.floating, refs.reference, update, isPositioned]);\n\n // here we should know when the Floating is positioned\n useEffect(() => {\n if (x != null && y != null) {\n setIsPositioned(true);\n }\n }, [x, y]);\n\n useOutsideClick({ isDisabled: false, ref: refs.floating, handler: onClickOutside });\n\n function createVirtualElement(\n domRef: Element | null,\n data: {\n axis: 'x' | 'y' | 'both';\n x: number | null;\n y: number | null;\n }\n ) {\n let offsetX: number | null = null;\n let offsetY: number | null = null;\n let isAutoUpdateEvent = false;\n\n return {\n contextElement: domRef || undefined,\n getBoundingClientRect() {\n const domRect = domRef?.getBoundingClientRect() || {\n width: 0,\n height: 0,\n x: 0,\n y: 0\n };\n\n const isXAxis = data.axis === 'x' || data.axis === 'both';\n const isYAxis = data.axis === 'y' || data.axis === 'both';\n\n let width = domRect.width;\n let height = domRect.height;\n let x = domRect.x;\n let y = domRect.y;\n\n if (offsetX == null && data.x && isXAxis) {\n offsetX = domRect.x - data.x;\n }\n\n if (offsetY == null && data.y && isYAxis) {\n offsetY = domRect.y - data.y;\n }\n\n x -= offsetX || 0;\n y -= offsetY || 0;\n width = 0;\n height = 0;\n\n if (!isAutoUpdateEvent) {\n width = data.axis === 'y' ? domRect.width : 0;\n height = data.axis === 'x' ? domRect.height : 0;\n x = isXAxis && data.x != null ? data.x : x;\n y = isYAxis && data.y != null ? data.y : y;\n } else if (isAutoUpdateEvent) {\n height = data.axis === 'x' ? domRect.height : height;\n width = data.axis === 'y' ? domRect.width : width;\n }\n\n isAutoUpdateEvent = true;\n const virtEl = {\n width,\n height,\n x,\n y,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x\n };\n\n return virtEl;\n }\n };\n }\n\n useLayoutEffect(() => {\n if (isElement(previousAnchor)) {\n const element = previousAnchor as Element;\n reference(element);\n return;\n }\n const coords = previousAnchor as Coords;\n if (coords != null && coords.contextElement != null) {\n const virtualEl = createVirtualElement(coords.contextElement, {\n axis: 'both',\n x: coords.x,\n y: coords.y\n });\n reference(virtualEl);\n return;\n }\n const virtualEl: VirtualElement = {\n getBoundingClientRect() {\n return {\n width: 0,\n height: 0,\n x: coords!.x,\n y: coords!.y,\n top: coords!.y,\n left: coords!.x,\n right: coords!.x,\n bottom: coords!.y\n };\n }\n };\n if (coords && coords.x != null) {\n reference(virtualEl);\n }\n }, [previousAnchor, reference]);\n\n const stableRef = useMemo(() => mergeRefs(ref, floating), [ref, floating]);\n const positionStyle = { top: y, left: x };\n\n let assignedVars = {}; // empty var override unless background is specified\n if (backgroundColor) {\n assignedVars = assignInlineVars({\n [floatingVars.backgroundColor]: backgroundColor\n });\n }\n\n const visibilityStyles =\n x == null && y == null ? floatingVisibilityStyles.hidden : floatingVisibilityStyles.visible;\n const floatingClasses = classNames([className, baseTheme, styles.baseStyle, visibilityStyles]);\n const isAnchorMounted = anchorRef && anchorRef.current;\n const content = (\n <div class={floatingClasses} ref={stableRef} style={{ ...positionStyle, ...assignedVars }}>\n {children}\n {isAnchorMounted && (\n <FloatingTail\n ref={arrowRef}\n backgroundColor={backgroundColor}\n data={positionData}\n anchorRef={anchorRef}\n tail={tail}\n isRtl={isRtl}\n />\n )}\n </div>\n );\n return content;\n }\n);\n"],"names":["FloatingTail","forwardRef","data","anchorRef","tail","isRtl","backgroundColor","ref","styles","baseTheme","useComponentTheme","FloatingRedwoodTheme","arrowRef","useRef","arrowStyles","setArrowStyles","useState","arrowStyle","visibility","arrowInnerStyle","useLayoutEffect","current","isCornerVerticalPlacement","isCornerHorizontalPlacement","arrow","centerOffset","arrowSize","anchorRefHeight","anchorRefWidth","isAnchorRefElement","undefined","x","y","Math","round","getBoundingClientRect","height","width","abs","includes","origPlacement","isCorner","result","innerResult","arrowSizeCorner","arrowInnerSize","arrowInnerSizeCorner","isCenter","isCenterOffsetPositive","setArrowSizes","isCornerPlacement","arrowFinalSize","setArrowStyle","borderTop","getSize","rgba","colorSchemeVars","palette","neutral","borderRight","getTransparentBorder","borderLeft","arrowInnerFinalSize","setArrowInnerStyle","style","Object","assign","getTurn","eighth","size","placement","split","setArrowTop","setArrowStart","setArrowEnd","setArrowBottom","top","bottom","left","transform","setCornerArrowInner","setNonCornerArrowInner","right","setStyles","offset","stableRef","useMemo","mergeRefs","_jsxs","class","classNames","floatingTailBaseStyle","children","_jsx","Floating","onClickOutside","offsetValue","className","flipOptions","mainAxis","crossAxis","shiftOptions","sizeOptions","isMaxHeightAdjusted","isMaxWidthAdjusted","boundaryOptions","padding","onPosition","positionData","setPositionData","previousAnchor","setPreviousAnchor","direction","useUser","_onPosition","useCallback","middleware","flip","fallbackPlacements","map","logicalSide","shift","limiter","limitShift","element","push","apply","availableWidth","availableHeight","elements","parseInt","floating","maxHeight","min","maxHeightCeiling","maxWidth","maxWidthCeiling","reference","refs","update","useFloating","isPositioned","setIsPositioned","useEffect","autoUpdate","useOutsideClick","isDisabled","handler","Element","coords","contextElement","virtualEl","domRef","offsetX","offsetY","isAutoUpdateEvent","domRect","isXAxis","axis","isYAxis","createVirtualElement","positionStyle","assignedVars","assignInlineVars","floatingVars","visibilityStyles","floatingVisibilityStyles","hidden","visible","floatingClasses","baseStyle","isAnchorMounted"],"mappings":"sgBAqBA,MAKMA,EAAeC,EAAAA,YACnB,EACIC,OAAMC,YAAWC,OAAMC,QAAOC,mBAChCC,KAEA,MAAMC,OAAEA,EAAMC,UAAEA,GAAcC,EAAiBA,kBAAwBC,EAAoBA,sBACrFC,EAAWC,SAA8B,OACxCC,EAAaC,GAAkBC,WAAS,CAC7CC,WAAY,CAAEC,WAAY,UAC1BC,gBAAiB,CAAED,WAAY,YAGjCE,EAAAA,iBAAgB,KACd,GAAwB,MAApBR,EAASS,QAAiB,OAC9B,MAAMC,0BAAEA,EAAyBC,4BAAEA,GA+CzC,SAC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IAAKiG,KAAkBC,GAActE,SAAA,CACtFA,EACA+E,GACC9E,EAAAA,IAAC7F,EACC,CAAAO,IAAKK,EACLN,gBAAiBA,EACjBJ,KAAM0G,EACNzG,UAAWA,EACXC,KAAMA,EACNC,MAAOA,MAKD"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './vanilla-extract-dynamic.esm-eceadd82', './useComponentTheme-5aa41a8f', './FormContext-5130e198', './useFormContext-30acdd33', './UNSAFE_FormLayout/themes/FormLayoutStyles.css', './LayoutStyles.css-c8bc984d', './UNSAFE_FormLayout/themes/redwood/FormLayoutTheme', './classNames-08d99695', './useTestId-d0c49456'], (function(e,s,t,a,o,l,n,i,r,u,d){"use strict";e.FormLayout=({columns:e=1,columnBehavior:m="responsive",columnSpan:c=1,direction:y="row",isFullWidth:p,isReadonly:h,labelEdge:F,labelStartWidth:b,labelWrapping:x,userAssistanceDensity:S,children:C,testId:L})=>{const{isDisabled:W,isFormLayout:g,isReadonly:v,labelEdge:T,labelStartWidth:A,labelWrapping:f,textAlign:D,userAssistanceDensity:E}=l.useFormContext(),I=d.useTestId(L),j=d.useTestId(`${L}_layout`),N=h??v,R=F??T,w=b??A,V=x??f,$=S??(g?E:"efficient"),_=t.assignInlineVars({[i.layoutLocalVars.maxColumnCount]:`${e}`,[i.layoutLocalVars.minColumnCount]:`${"responsive"===m?1:e}`}),{baseTheme:B,classes:U}=a.useComponentTheme(r.FormLayoutRedwoodTheme,{columnBehavior:m,direction:y});return s.jsx(o.FormContext.Provider,{value:{isDisabled:W,isFormLayout:!0,isReadonly:N,labelEdge:R,labelStartWidth:w,labelWrapping:V,textAlign:D,userAssistanceDensity:$},children:s.jsx("div",{class:u.classNames([B,n.styles.rootWrapperStyle,p&&n.styles.rootWrapperFullWidthStyle,i.layoutSpanStyles.layoutSpanColumn[c]]),...I,style:_,children:s.jsx("div",{class:U,...j,children:C})})})}}));
1
+ define(['exports', 'preact/jsx-runtime', './vanilla-extract-dynamic.esm-eceadd82', './useComponentTheme-5aa41a8f', './FormContext-5130e198', './useFormContext-30acdd33', './UNSAFE_FormLayout/themes/FormLayoutStyles.css', './LayoutStyles.css-c8bc984d', './UNSAFE_FormLayout/themes/redwood/FormLayoutTheme', './classNames-08d99695', './useTestId-efb1c8f9'], (function(e,s,t,a,o,l,n,i,r,u,d){"use strict";e.FormLayout=({columns:e=1,columnBehavior:m="responsive",columnSpan:c=1,direction:y="row",isFullWidth:p,isReadonly:h,labelEdge:F,labelStartWidth:b,labelWrapping:x,userAssistanceDensity:S,children:C,testId:L})=>{const{isDisabled:W,isFormLayout:g,isReadonly:v,labelEdge:T,labelStartWidth:f,labelWrapping:A,textAlign:D,userAssistanceDensity:E}=l.useFormContext(),I=d.useTestId(L),j=d.useTestId(`${L}_layout`),N=h??v,R=F??T,w=b??f,V=x??A,$=S??(g?E:"efficient"),_=t.assignInlineVars({[i.layoutLocalVars.maxColumnCount]:`${e}`,[i.layoutLocalVars.minColumnCount]:`${"responsive"===m?1:e}`}),{baseTheme:B,classes:U}=a.useComponentTheme(r.FormLayoutRedwoodTheme,{columnBehavior:m,direction:y});return s.jsx(o.FormContext.Provider,{value:{isDisabled:W,isFormLayout:!0,isReadonly:N,labelEdge:R,labelStartWidth:w,labelWrapping:V,textAlign:D,userAssistanceDensity:$},children:s.jsx("div",{class:u.classNames([B,n.styles.rootWrapperStyle,p&&n.styles.rootWrapperFullWidthStyle,i.layoutSpanStyles.layoutSpanColumn[c]]),...I,style:_,children:s.jsx("div",{class:U,...j,children:C})})})}}));
2
2
  //# sourceMappingURL=FormLayout-d7998ba5.js.map