@oracle/oraclejet-preact 18.1.5 → 18.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amd/BarChart-0ad4ca6d.js +2 -0
- package/amd/BarChart-0ad4ca6d.js.map +1 -0
- package/amd/BaseButton-c86afd54.js +2 -0
- package/amd/BaseButton-c86afd54.js.map +1 -0
- package/amd/BaseCardView-a1c5a21d.js +2 -0
- package/amd/BaseCardView-a1c5a21d.js.map +1 -0
- package/amd/BaseCardViewSelectionTest-36a03079.js +2 -0
- package/amd/BaseCardViewSelectionTest-36a03079.js.map +1 -0
- package/amd/BaseRichSelection-33a97275.js +2 -0
- package/amd/BaseRichSelection-33a97275.js.map +1 -0
- package/amd/Button-cb88d20f.js +2 -0
- package/amd/Button-cb88d20f.js.map +1 -0
- package/amd/ButtonSetButton-819e99a8.js +2 -0
- package/amd/ButtonSetButton-819e99a8.js.map +1 -0
- package/amd/ButtonSetIconButton-9f171b1e.js +2 -0
- package/amd/ButtonSetIconButton-9f171b1e.js.map +1 -0
- package/amd/ButtonSetItem-8a51cd2a.js +2 -0
- package/amd/ButtonSetItem-8a51cd2a.js.map +1 -0
- package/amd/CardFlexView-f7fdfac8.js +2 -0
- package/amd/CardFlexView-f7fdfac8.js.map +1 -0
- package/amd/CardGridView-b8a60fae.js +2 -0
- package/amd/CardGridView-b8a60fae.js.map +1 -0
- package/amd/Chart-79cfc878.js +2 -0
- package/amd/Chart-79cfc878.js.map +1 -0
- package/amd/Checkbox-49753599.js +2 -0
- package/amd/Checkbox-49753599.js.map +1 -0
- package/amd/CheckboxControl-c6a380b3.js +2 -0
- package/amd/CheckboxControl-c6a380b3.js.map +1 -0
- package/amd/CheckboxRadioField-1987c75d.js +2 -0
- package/amd/CheckboxRadioField-1987c75d.js.map +1 -0
- package/amd/CheckboxSet-05423d28.js +2 -0
- package/amd/CheckboxSet-05423d28.js.map +1 -0
- package/amd/CheckboxStyles.styles.css +6 -0
- package/amd/ClearIcon-d73689cc.js +2 -0
- package/amd/ClearIcon-d73689cc.js.map +1 -0
- package/amd/ComboChart-72eda15f.js +2 -0
- package/amd/ComboChart-72eda15f.js.map +1 -0
- package/amd/CompactUserAssistance-3799998f.js +2 -0
- package/amd/CompactUserAssistance-3799998f.js.map +1 -0
- package/amd/ComponentMessageContainer-cf186eeb.js +2 -0
- package/amd/ComponentMessageContainer-cf186eeb.js.map +1 -0
- package/amd/ConveyorBeltItem-e3002f4a.js +2 -0
- package/amd/ConveyorBeltItem-e3002f4a.js.map +1 -0
- package/amd/DatePicker-9115226e.js +2 -0
- package/amd/DatePicker-9115226e.js.map +1 -0
- package/amd/DatePickerHeader-a0da70a0.js +2 -0
- package/amd/DatePickerHeader-a0da70a0.js.map +1 -0
- package/amd/Diagram-14fa4924.js +2 -0
- package/amd/Diagram-14fa4924.js.map +1 -0
- package/amd/Dialog-896c0bfd.js +2 -0
- package/amd/Dialog-896c0bfd.js.map +1 -0
- package/amd/EmbeddedIconButton-3608bfb4.js +2 -0
- package/amd/EmbeddedIconButton-3608bfb4.js.map +1 -0
- package/amd/ExpandableList-daabc548.js +2 -0
- package/amd/ExpandableList-daabc548.js.map +1 -0
- package/amd/Gantt-7265d4ce.js +2 -0
- package/amd/Gantt-7265d4ce.js.map +1 -0
- package/amd/GroupLoadingIndicator-9fd33355.js +1 -1
- package/amd/IconButton-368fba34.js +2 -0
- package/amd/IconButton-368fba34.js.map +1 -0
- package/amd/IconMenuButton-3f3c2386.js +2 -0
- package/amd/IconMenuButton-3f3c2386.js.map +1 -0
- package/amd/IconProgressButton-11c44c28.js +2 -0
- package/amd/IconProgressButton-11c44c28.js.map +1 -0
- package/amd/IconSwitchButton-1a400cdf.js +2 -0
- package/amd/IconSwitchButton-1a400cdf.js.map +1 -0
- package/amd/IconToggleButton-ea46b246.js +2 -0
- package/amd/IconToggleButton-ea46b246.js.map +1 -0
- package/amd/Indexer-5df524f2.js +2 -0
- package/amd/Indexer-5df524f2.js.map +1 -0
- package/amd/InlineUserAssistance-a97e0011.js +2 -0
- package/amd/InlineUserAssistance-a97e0011.js.map +1 -0
- package/amd/InputDateMask-09989b51.js +2 -0
- package/amd/InputDateMask-09989b51.js.map +1 -0
- package/amd/InputDatePicker-03bdeb95.js +2 -0
- package/amd/InputDatePicker-03bdeb95.js.map +1 -0
- package/amd/InputPassword-57a5e072.js +2 -0
- package/amd/InputPassword-57a5e072.js.map +1 -0
- package/amd/InputText-a72eb1c3.js +2 -0
- package/amd/InputText-a72eb1c3.js.map +1 -0
- package/amd/Label-41b672b4.js +2 -0
- package/amd/Label-41b672b4.js.map +1 -0
- package/amd/LineAreaChart-3aff0c1a.js +2 -0
- package/amd/LineAreaChart-3aff0c1a.js.map +1 -0
- package/amd/Link-1f126248.js +2 -0
- package/amd/Link-1f126248.js.map +1 -0
- package/amd/LinkVariants.styles.css +2 -1
- package/amd/LinkVariants.styles2.css +2 -1
- package/amd/List-0da6ee9c.js +2 -0
- package/amd/List-0da6ee9c.js.map +1 -0
- package/amd/ListView-cdfac903.js +2 -0
- package/amd/ListView-cdfac903.js.map +1 -0
- package/amd/LoadMoreCollection-a6adbc3f.js +2 -0
- package/amd/LoadMoreCollection-a6adbc3f.js.map +1 -0
- package/amd/MenuButton-66e5430a.js +2 -0
- package/amd/MenuButton-66e5430a.js.map +1 -0
- package/amd/Message-d66cc7e9.js +2 -0
- package/amd/Message-d66cc7e9.js.map +1 -0
- package/amd/MessageToast-19703f73.js +2 -0
- package/amd/MessageToast-19703f73.js.map +1 -0
- package/amd/MonthView-67179db3.js +2 -0
- package/amd/MonthView-67179db3.js.map +1 -0
- package/amd/NumberInputText-e2cf1795.js +2 -0
- package/amd/NumberInputText-e2cf1795.js.map +1 -0
- package/amd/OverflowTabBar-1dd5c327.js +2 -0
- package/amd/OverflowTabBar-1dd5c327.js.map +1 -0
- package/amd/OverflowTabBarItem-f8128e3d.js +2 -0
- package/amd/OverflowTabBarItem-f8128e3d.js.map +1 -0
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/PRIVATE_CheckboxControl.js +1 -1
- package/amd/PRIVATE_CheckboxRadioField.js +1 -1
- package/amd/PRIVATE_ClearIcon.js +1 -1
- package/amd/PRIVATE_DatePickerHeader.js +1 -1
- package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
- package/amd/PRIVATE_IconSwitchButton.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_LoadMoreCollection.js +1 -1
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_MonthView.js +1 -1
- package/amd/PRIVATE_MonthYearGridView.js +1 -1
- package/amd/PRIVATE_RevealToggleIcon.js +1 -1
- package/amd/PRIVATE_RichSelectionCommon.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_TimeComponent.js +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/PictoChart-98b892fb.js +2 -0
- package/amd/PictoChart-98b892fb.js.map +1 -0
- package/amd/ProgressButton-cd0c21df.js +2 -0
- package/amd/ProgressButton-cd0c21df.js.map +1 -0
- package/amd/RadioItem-1a02d3dc.js +2 -0
- package/amd/RadioItem-1a02d3dc.js.map +1 -0
- package/amd/RadioSet-94d12876.js +2 -0
- package/amd/RadioSet-94d12876.js.map +1 -0
- package/amd/RemovableNavigationListItem-1f69907c.js +2 -0
- package/amd/RemovableNavigationListItem-1f69907c.js.map +1 -0
- package/amd/RemovableTabBarItem-5c240801.js +2 -0
- package/amd/RemovableTabBarItem-5c240801.js.map +1 -0
- package/amd/RevealToggleIcon-c22626da.js +2 -0
- package/amd/RevealToggleIcon-c22626da.js.map +1 -0
- package/amd/ScatterChart-e6f8d49a.js +2 -0
- package/amd/ScatterChart-e6f8d49a.js.map +1 -0
- package/amd/SelectMultiple-a159ccbf.js +2 -0
- package/amd/SelectMultiple-a159ccbf.js.map +1 -0
- package/amd/SelectSingle-e3d0d8d2.js +2 -0
- package/amd/SelectSingle-e3d0d8d2.js.map +1 -0
- package/amd/SplitMenuButton-a2001b04.js +2 -0
- package/amd/SplitMenuButton-a2001b04.js.map +1 -0
- package/amd/Table-f5ebf3d4.js +2 -0
- package/amd/Table-f5ebf3d4.js.map +1 -0
- package/amd/TableView-e8cab364.js +2 -0
- package/amd/TableView-e8cab364.js.map +1 -0
- package/amd/TagCloud-39552a78.js +2 -0
- package/amd/TagCloud-39552a78.js.map +1 -0
- package/amd/TextArea-0ec1a311.js +2 -0
- package/amd/TextArea-0ec1a311.js.map +1 -0
- package/amd/TextAreaAutosize-8cac0a54.js +2 -0
- package/amd/TextAreaAutosize-8cac0a54.js.map +1 -0
- package/amd/Theme-redwood/theme.css +209 -209
- package/amd/Theme-stable/theme.css +415 -415
- package/amd/TimeComponentCanvas2D-82ebf0c7.js +2 -0
- package/amd/TimeComponentCanvas2D-82ebf0c7.js.map +1 -0
- package/amd/ToggleButton-f8845804.js +2 -0
- package/amd/ToggleButton-f8845804.js.map +1 -0
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_BaseButton.js +1 -1
- package/amd/UNSAFE_Button.js +1 -1
- package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
- package/amd/UNSAFE_ButtonSetButton.js +1 -1
- package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
- package/amd/UNSAFE_ButtonSetItem.js +1 -1
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
- package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
- package/amd/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -1
- package/amd/UNSAFE_Checkbox.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js.map +1 -1
- package/amd/UNSAFE_CheckboxSet.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js.map +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_ConveyorBelt.js +1 -1
- package/amd/UNSAFE_DatePicker.js +1 -1
- package/amd/UNSAFE_Diagram.js +1 -1
- package/amd/UNSAFE_Dialog.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_Gantt.js +1 -1
- package/amd/UNSAFE_IconButton.js +1 -1
- package/amd/UNSAFE_IconMenuButton.js +1 -1
- package/amd/UNSAFE_IconProgressButton.js +1 -1
- package/amd/UNSAFE_IconToggleButton.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDateMask.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputSensitiveText.js +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_InputTimeMask.js +1 -1
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_LabelledLink.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_MenuButton.js +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -1
- package/amd/UNSAFE_MessageToast.js +1 -1
- package/amd/UNSAFE_NavigationList.js +1 -1
- package/amd/UNSAFE_NavigationListCommon.js +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -1
- package/amd/UNSAFE_OverflowTabBar.js +1 -1
- package/amd/UNSAFE_PictoChart.js +1 -1
- package/amd/UNSAFE_ProgressButton.js +1 -1
- package/amd/UNSAFE_RadioItem.js +1 -1
- package/amd/UNSAFE_RadioSet.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/amd/UNSAFE_RichRadioSet.js +1 -1
- package/amd/UNSAFE_RichRadioSet.js.map +1 -1
- package/amd/UNSAFE_RichSelectionItem.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
- package/amd/UNSAFE_SplitMenuButton.js +1 -1
- package/amd/UNSAFE_TabBar.js +1 -1
- package/amd/UNSAFE_TabBarCommon.js +1 -1
- package/amd/UNSAFE_TabBarMixed.js +1 -1
- package/amd/UNSAFE_TableView.js +1 -1
- package/amd/UNSAFE_TagCloud.js +1 -1
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/UNSAFE_ToggleButton.js +1 -1
- package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/VirtualizedCollection-63223f5e.js +2 -0
- package/amd/VirtualizedCollection-63223f5e.js.map +1 -0
- package/amd/VirtualizedListView-d353d174.js +2 -0
- package/amd/VirtualizedListView-d353d174.js.map +1 -0
- package/amd/YearsGridView-e645d5de.js +2 -0
- package/amd/YearsGridView-e645d5de.js.map +1 -0
- package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
- package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
- package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
- package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
- package/amd/hooks/UNSAFE_usePressClick.js +1 -1
- package/amd/useCellNavigation-4138513e.js +2 -0
- package/amd/useCellNavigation-4138513e.js.map +1 -0
- package/amd/useChartMarquee-2f7d51c4.js +2 -0
- package/amd/useChartMarquee-2f7d51c4.js.map +1 -0
- package/amd/usePressClick-b5bf4243.js +2 -0
- package/amd/usePressClick-b5bf4243.js.map +1 -0
- package/amd/useSelectCommon-380baecd.js +2 -0
- package/amd/useSelectCommon-380baecd.js.map +1 -0
- package/amd/useSelectDrill-113ae3ae.js +2 -0
- package/amd/useSelectDrill-113ae3ae.js.map +1 -0
- package/amd/useSelection-80e262f2.js +2 -0
- package/amd/useSelection-80e262f2.js.map +1 -0
- package/amd/useVisDragModeControls-f187d8b2.js +2 -0
- package/amd/useVisDragModeControls-f187d8b2.js.map +1 -0
- package/cjs/BarChart-66dbe5be.js +181 -0
- package/cjs/BarChart-66dbe5be.js.map +1 -0
- package/cjs/BaseButton-590432e4.js +174 -0
- package/cjs/BaseButton-590432e4.js.map +1 -0
- package/cjs/BaseCardView-5c483f52.js +687 -0
- package/cjs/BaseCardView-5c483f52.js.map +1 -0
- package/cjs/BaseCardViewSelectionTest-f29b3ecf.js +734 -0
- package/cjs/BaseCardViewSelectionTest-f29b3ecf.js.map +1 -0
- package/cjs/BaseRichSelection-07d33b2a.js +344 -0
- package/cjs/BaseRichSelection-07d33b2a.js.map +1 -0
- package/cjs/Button-2427b7df.js +24 -0
- package/cjs/Button-2427b7df.js.map +1 -0
- package/cjs/ButtonSetButton-a23b6b7d.js +35 -0
- package/cjs/ButtonSetButton-a23b6b7d.js.map +1 -0
- package/cjs/ButtonSetIconButton-c632a294.js +42 -0
- package/cjs/ButtonSetIconButton-c632a294.js.map +1 -0
- package/cjs/ButtonSetItem-b260b6a5.js +67 -0
- package/cjs/ButtonSetItem-b260b6a5.js.map +1 -0
- package/cjs/CardFlexView-385f1b2d.js +29 -0
- package/cjs/CardFlexView-385f1b2d.js.map +1 -0
- package/cjs/CardGridView-d337b9f4.js +17 -0
- package/cjs/CardGridView-d337b9f4.js.map +1 -0
- package/cjs/Chart-13ccd345.js +493 -0
- package/cjs/Chart-13ccd345.js.map +1 -0
- package/cjs/Checkbox-07e4794b.js +106 -0
- package/cjs/Checkbox-07e4794b.js.map +1 -0
- package/cjs/CheckboxControl-697725cb.js +111 -0
- package/cjs/CheckboxControl-697725cb.js.map +1 -0
- package/cjs/CheckboxRadioField-1bb0d57d.js +185 -0
- package/cjs/CheckboxRadioField-1bb0d57d.js.map +1 -0
- package/cjs/CheckboxStyles.styles.css +6 -0
- package/cjs/ClearIcon-22a24975.js +23 -0
- package/cjs/ClearIcon-22a24975.js.map +1 -0
- package/cjs/ComboChart-7188af92.js +174 -0
- package/cjs/ComboChart-7188af92.js.map +1 -0
- package/cjs/CompactUserAssistance-54247e7e.js +49 -0
- package/cjs/CompactUserAssistance-54247e7e.js.map +1 -0
- package/cjs/ComponentMessageContainer-f8dc57aa.js +71 -0
- package/cjs/ComponentMessageContainer-f8dc57aa.js.map +1 -0
- package/cjs/ConveyorBeltItem-324014ba.js +641 -0
- package/cjs/ConveyorBeltItem-324014ba.js.map +1 -0
- package/cjs/DatePicker-9c362a68.js +566 -0
- package/cjs/DatePicker-9c362a68.js.map +1 -0
- package/cjs/DatePickerHeader-4223c919.js +46 -0
- package/cjs/DatePickerHeader-4223c919.js.map +1 -0
- package/cjs/Diagram-151103ac.js +2037 -0
- package/cjs/Diagram-151103ac.js.map +1 -0
- package/cjs/Dialog-40a1b708.js +346 -0
- package/cjs/Dialog-40a1b708.js.map +1 -0
- package/cjs/EmbeddedIconButton-f3f6e8f6.js +13 -0
- package/cjs/EmbeddedIconButton-f3f6e8f6.js.map +1 -0
- package/cjs/ExpandableList-0a0d75b3.js +169 -0
- package/cjs/ExpandableList-0a0d75b3.js.map +1 -0
- package/cjs/Gantt-aa6f41d6.js +3819 -0
- package/cjs/Gantt-aa6f41d6.js.map +1 -0
- package/cjs/GroupLoadingIndicator-824d658f.js +1 -1
- package/cjs/IconButton-fad4e4b2.js +39 -0
- package/cjs/IconButton-fad4e4b2.js.map +1 -0
- package/cjs/IconMenuButton-70ef4775.js +58 -0
- package/cjs/IconMenuButton-70ef4775.js.map +1 -0
- package/cjs/IconProgressButton-b4116a09.js +49 -0
- package/cjs/IconProgressButton-b4116a09.js.map +1 -0
- package/cjs/IconSwitchButton-2f946274.js +46 -0
- package/cjs/IconSwitchButton-2f946274.js.map +1 -0
- package/cjs/IconToggleButton-493cf27c.js +45 -0
- package/cjs/IconToggleButton-493cf27c.js.map +1 -0
- package/cjs/Indexer-a4a2d6b8.js +339 -0
- package/cjs/Indexer-a4a2d6b8.js.map +1 -0
- package/cjs/InlineUserAssistance-6c6d3250.js +85 -0
- package/cjs/InlineUserAssistance-6c6d3250.js.map +1 -0
- package/cjs/InputDateMask-d6b1a660.js +1060 -0
- package/cjs/InputDateMask-d6b1a660.js.map +1 -0
- package/cjs/InputDatePicker-7eb5931a.js +309 -0
- package/cjs/InputDatePicker-7eb5931a.js.map +1 -0
- package/cjs/InputPassword-e15aa37b.js +157 -0
- package/cjs/InputPassword-e15aa37b.js.map +1 -0
- package/cjs/InputText-6a6ae7e5.js +199 -0
- package/cjs/InputText-6a6ae7e5.js.map +1 -0
- package/cjs/Label-c51bd5de.js +85 -0
- package/cjs/Label-c51bd5de.js.map +1 -0
- package/cjs/LineAreaChart-05a58ac5.js +172 -0
- package/cjs/LineAreaChart-05a58ac5.js.map +1 -0
- package/cjs/Link-c928d5f1.js +35 -0
- package/cjs/Link-c928d5f1.js.map +1 -0
- package/cjs/LinkVariants.styles.css +2 -1
- package/cjs/LinkVariants.styles2.css +2 -1
- package/cjs/List-bad74e43.js +723 -0
- package/cjs/List-bad74e43.js.map +1 -0
- package/cjs/ListView-80a9c725.js +430 -0
- package/cjs/ListView-80a9c725.js.map +1 -0
- package/cjs/LoadMoreCollection-73112ff0.js +34 -0
- package/cjs/LoadMoreCollection-73112ff0.js.map +1 -0
- package/cjs/MenuButton-e6eb6e3e.js +63 -0
- package/cjs/MenuButton-e6eb6e3e.js.map +1 -0
- package/cjs/Message-20bc90cd.js +208 -0
- package/cjs/Message-20bc90cd.js.map +1 -0
- package/cjs/MessageToast-c0730ed5.js +243 -0
- package/cjs/MessageToast-c0730ed5.js.map +1 -0
- package/cjs/MonthView-03da0bd2.js +210 -0
- package/cjs/MonthView-03da0bd2.js.map +1 -0
- package/cjs/NavigationListItem-0a49d6b5.js +166 -0
- package/cjs/NavigationListItem-0a49d6b5.js.map +1 -0
- package/cjs/NumberInputText-c58f78da.js +223 -0
- package/cjs/NumberInputText-c58f78da.js.map +1 -0
- package/cjs/OverflowTabBar-c70fb3bf.js +71 -0
- package/cjs/OverflowTabBar-c70fb3bf.js.map +1 -0
- package/cjs/OverflowTabBarItem-70484f54.js +88 -0
- package/cjs/OverflowTabBarItem-70484f54.js.map +1 -0
- package/cjs/PRIVATE_BaseCardView.js +3 -3
- package/cjs/PRIVATE_Chart.js +14 -14
- package/cjs/PRIVATE_CheckboxControl.js +5 -4
- package/cjs/PRIVATE_CheckboxControl.js.map +1 -1
- package/cjs/PRIVATE_CheckboxRadioField.js +8 -7
- package/cjs/PRIVATE_CheckboxRadioField.js.map +1 -1
- package/cjs/PRIVATE_ClearIcon.js +4 -4
- package/cjs/PRIVATE_DatePickerHeader.js +5 -5
- package/cjs/PRIVATE_EmbeddedIconButton.js +3 -3
- package/cjs/PRIVATE_IconSwitchButton.js +3 -3
- package/cjs/PRIVATE_List.js +4 -4
- package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
- package/cjs/PRIVATE_Message.js +4 -4
- package/cjs/PRIVATE_MonthView.js +2 -2
- package/cjs/PRIVATE_MonthYearGridView.js +2 -2
- package/cjs/PRIVATE_RevealToggleIcon.js +4 -4
- package/cjs/PRIVATE_RichSelectionCommon.js +8 -7
- package/cjs/PRIVATE_RichSelectionCommon.js.map +1 -1
- package/cjs/PRIVATE_SelectCommon.js +11 -11
- package/cjs/PRIVATE_Table.js +6 -6
- package/cjs/PRIVATE_TimeComponent.js +3 -3
- package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
- package/cjs/PictoChart-fd613c80.js +747 -0
- package/cjs/PictoChart-fd613c80.js.map +1 -0
- package/cjs/ProgressButton-81474622.js +58 -0
- package/cjs/ProgressButton-81474622.js.map +1 -0
- package/cjs/RadioItem-3cc743ff.js +115 -0
- package/cjs/RadioItem-3cc743ff.js.map +1 -0
- package/cjs/RadioSet-f4ee4f80.js +45 -0
- package/cjs/RadioSet-f4ee4f80.js.map +1 -0
- package/cjs/RemovableNavigationListItem-f3ad6e8e.js +26 -0
- package/cjs/RemovableNavigationListItem-f3ad6e8e.js.map +1 -0
- package/cjs/RemovableTabBarItem-5c05fa32.js +38 -0
- package/cjs/RemovableTabBarItem-5c05fa32.js.map +1 -0
- package/cjs/RevealToggleIcon-4ec10dbe.js +28 -0
- package/cjs/RevealToggleIcon-4ec10dbe.js.map +1 -0
- package/cjs/ScatterChart-9226c20d.js +105 -0
- package/cjs/ScatterChart-9226c20d.js.map +1 -0
- package/cjs/SelectMultiple-3569988d.js +1299 -0
- package/cjs/SelectMultiple-3569988d.js.map +1 -0
- package/cjs/SelectSingle-43d6953e.js +732 -0
- package/cjs/SelectSingle-43d6953e.js.map +1 -0
- package/cjs/SplitMenuButton-9c1b081c.js +141 -0
- package/cjs/SplitMenuButton-9c1b081c.js.map +1 -0
- package/cjs/Table-6987731e.js +5499 -0
- package/cjs/Table-6987731e.js.map +1 -0
- package/cjs/TableView-1bed3e0b.js +33 -0
- package/cjs/TableView-1bed3e0b.js.map +1 -0
- package/cjs/TagCloud-2715c0e8.js +826 -0
- package/cjs/TagCloud-2715c0e8.js.map +1 -0
- package/cjs/TextArea-d8516f11.js +162 -0
- package/cjs/TextArea-d8516f11.js.map +1 -0
- package/cjs/TextAreaAutosize-1797d5b7.js +246 -0
- package/cjs/TextAreaAutosize-1797d5b7.js.map +1 -0
- package/cjs/Theme-redwood/theme.css +157 -157
- package/cjs/Theme-stable/theme.css +252 -252
- package/cjs/TimeComponentCanvas2D-13c06086.js +591 -0
- package/cjs/TimeComponentCanvas2D-13c06086.js.map +1 -0
- package/cjs/ToggleButton-c614bbec.js +30 -0
- package/cjs/ToggleButton-c614bbec.js.map +1 -0
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +15 -15
- package/cjs/UNSAFE_BarChart.js +15 -15
- package/cjs/UNSAFE_BaseButton.js +2 -2
- package/cjs/UNSAFE_Button.js +3 -3
- package/cjs/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +5 -5
- package/cjs/UNSAFE_ButtonSetButton.js +3 -3
- package/cjs/UNSAFE_ButtonSetIconButton.js +3 -3
- package/cjs/UNSAFE_ButtonSetItem.js +5 -5
- package/cjs/UNSAFE_CardFlexView.js +4 -4
- package/cjs/UNSAFE_CardGridView.js +4 -4
- package/cjs/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/CheckboxStyles.css.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js.map +1 -1
- package/cjs/UNSAFE_Checkbox.js +8 -7
- package/cjs/UNSAFE_Checkbox.js.map +1 -1
- package/cjs/UNSAFE_CheckboxItem.js +5 -4
- package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
- package/cjs/UNSAFE_CheckboxSet.js +8 -7
- package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_ComboChart.js +15 -15
- package/cjs/UNSAFE_ComponentMessage.js +4 -4
- package/cjs/UNSAFE_ConveyorBelt.js +3 -3
- package/cjs/UNSAFE_DatePicker.js +10 -10
- package/cjs/UNSAFE_Diagram.js +9 -9
- package/cjs/UNSAFE_Dialog.js +4 -4
- package/cjs/UNSAFE_ExpandableList.js +7 -7
- package/cjs/UNSAFE_Gantt.js +5 -5
- package/cjs/UNSAFE_IconButton.js +3 -3
- package/cjs/UNSAFE_IconMenuButton.js +3 -3
- package/cjs/UNSAFE_IconProgressButton.js +3 -3
- package/cjs/UNSAFE_IconToggleButton.js +3 -3
- package/cjs/UNSAFE_Indexer.js +2 -2
- package/cjs/UNSAFE_InputDateMask.js +8 -8
- package/cjs/UNSAFE_InputDatePicker.js +95 -95
- package/cjs/UNSAFE_InputPassword.js +11 -11
- package/cjs/UNSAFE_InputSensitiveText.js +10 -10
- package/cjs/UNSAFE_InputText.js +9 -9
- package/cjs/UNSAFE_InputTimeMask.js +7 -7
- package/cjs/UNSAFE_Label.js +4 -4
- package/cjs/UNSAFE_LabelledLink.js +7 -7
- package/cjs/UNSAFE_LineAreaChart.js +15 -15
- package/cjs/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
- package/cjs/UNSAFE_Link.js +2 -2
- package/cjs/UNSAFE_ListView.js +5 -5
- package/cjs/UNSAFE_MenuButton.js +3 -3
- package/cjs/UNSAFE_MessageBanner.js +4 -4
- package/cjs/UNSAFE_MessageToast.js +5 -5
- package/cjs/UNSAFE_NavigationList.js +8 -8
- package/cjs/UNSAFE_NavigationListCommon.js +4 -4
- package/cjs/UNSAFE_NumberInputText.js +8 -8
- package/cjs/UNSAFE_OverflowTabBar.js +8 -8
- package/cjs/UNSAFE_PictoChart.js +4 -4
- package/cjs/UNSAFE_ProgressButton.js +3 -3
- package/cjs/UNSAFE_RadioItem.js +4 -4
- package/cjs/UNSAFE_RadioSet.js +9 -8
- package/cjs/UNSAFE_RadioSet.js.map +1 -1
- package/cjs/UNSAFE_RichCheckboxSet.js +8 -7
- package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_RichRadioSet.js +8 -7
- package/cjs/UNSAFE_RichRadioSet.js.map +1 -1
- package/cjs/UNSAFE_ScatterChart.js +15 -15
- package/cjs/UNSAFE_SelectMultiple.js +15 -15
- package/cjs/UNSAFE_SelectSingle.js +14 -14
- package/cjs/UNSAFE_Sheet/__test__/Sheet.spec.js +3 -3
- package/cjs/UNSAFE_SplitMenuButton.js +3 -3
- package/cjs/UNSAFE_TabBar.js +7 -7
- package/cjs/UNSAFE_TabBarCommon.js +7 -7
- package/cjs/UNSAFE_TabBarMixed.js +7 -7
- package/cjs/UNSAFE_TableView.js +7 -7
- package/cjs/UNSAFE_TagCloud.js +4 -4
- package/cjs/UNSAFE_TextArea.js +8 -8
- package/cjs/UNSAFE_TextAreaAutosize.js +8 -8
- package/cjs/UNSAFE_ToggleButton.js +3 -3
- package/cjs/UNSAFE_Toolbar/tests/Toolbar.spec.js +5 -5
- package/cjs/UNSAFE_UserAssistance.js +6 -6
- package/cjs/UNSAFE_VirtualizedListView.js +5 -5
- package/cjs/VirtualizedCollection-00aedb8b.js +180 -0
- package/cjs/VirtualizedCollection-00aedb8b.js.map +1 -0
- package/cjs/VirtualizedListView-ad3219ba.js +16 -0
- package/cjs/VirtualizedListView-ad3219ba.js.map +1 -0
- package/cjs/YearsGridView-67ce0a3a.js +190 -0
- package/cjs/YearsGridView-67ce0a3a.js.map +1 -0
- package/cjs/hooks/PRIVATE_useChartEvents.js +4 -4
- package/cjs/hooks/PRIVATE_useChartMarquee.js +8 -8
- package/cjs/hooks/PRIVATE_useVisDragModeControls.js +7 -7
- package/cjs/hooks/PRIVATE_useVisSelection.js +3 -3
- package/cjs/hooks/UNSAFE_usePressClick.js +1 -1
- package/cjs/useCellNavigation-d503e35f.js +124 -0
- package/cjs/useCellNavigation-d503e35f.js.map +1 -0
- package/cjs/useChartMarquee-7ffcda9e.js +295 -0
- package/cjs/useChartMarquee-7ffcda9e.js.map +1 -0
- package/cjs/usePressClick-7a34624a.js +41 -0
- package/cjs/usePressClick-7a34624a.js.map +1 -0
- package/cjs/useSelectCommon-38a38427.js +709 -0
- package/cjs/useSelectCommon-38a38427.js.map +1 -0
- package/cjs/useSelectDrill-ad5864fd.js +107 -0
- package/cjs/useSelectDrill-ad5864fd.js.map +1 -0
- package/cjs/useSelection-8f68a23a.js +188 -0
- package/cjs/useSelection-8f68a23a.js.map +1 -0
- package/cjs/useVisDragModeControls-d3a7aa57.js +89 -0
- package/cjs/useVisDragModeControls-d3a7aa57.js.map +1 -0
- package/es/ActionCard-bac27bb9.js +1 -1
- package/es/BarChart-43dec3b7.js +179 -0
- package/es/BarChart-43dec3b7.js.map +1 -0
- package/es/BarGroup-dbf70e2c.js +1 -1
- package/es/BaseButton-61f6baa8.js +172 -0
- package/es/BaseButton-61f6baa8.js.map +1 -0
- package/es/BaseCardView-724422f3.js +7 -7
- package/es/BaseCardViewSelectionTest-ef070684.js +721 -0
- package/es/BaseCardViewSelectionTest-ef070684.js.map +1 -0
- package/es/BaseNavigationListItem-1c75c13f.js +47 -0
- package/es/BaseNavigationListItem-1c75c13f.js.map +1 -0
- package/es/BaseRichSelection-72edca7c.js +342 -0
- package/es/BaseRichSelection-72edca7c.js.map +1 -0
- package/es/Button-f90514b2.js +22 -0
- package/es/Button-f90514b2.js.map +1 -0
- package/es/ButtonSet-9b2c41be.js +2 -2
- package/es/ButtonSetButton-974fc462.js +33 -0
- package/es/ButtonSetButton-974fc462.js.map +1 -0
- package/es/ButtonSetIconButton-0081167a.js +40 -0
- package/es/ButtonSetIconButton-0081167a.js.map +1 -0
- package/es/ButtonSetItem-eb2d43d4.js +65 -0
- package/es/ButtonSetItem-eb2d43d4.js.map +1 -0
- package/es/Card-31dc8dc2.js +15 -0
- package/es/Card-31dc8dc2.js.map +1 -0
- package/es/Center-2be68188.js +16 -0
- package/es/Center-2be68188.js.map +1 -0
- package/es/Chart-4ec13697.js +491 -0
- package/es/Chart-4ec13697.js.map +1 -0
- package/es/Checkbox-74259575.js +104 -0
- package/es/Checkbox-74259575.js.map +1 -0
- package/es/CheckboxControl-c3c34028.js +109 -0
- package/es/CheckboxControl-c3c34028.js.map +1 -0
- package/es/CheckboxRadioField-294463ba.js +183 -0
- package/es/CheckboxRadioField-294463ba.js.map +1 -0
- package/es/CheckboxSetContext-1be56556.js +9 -0
- package/es/CheckboxSetContext-1be56556.js.map +1 -0
- package/es/CheckboxStyles.styles.css +6 -0
- package/es/Chip-8fd813ce.js +1 -1
- package/es/ClearIcon-acca9670.js +21 -0
- package/es/ClearIcon-acca9670.js.map +1 -0
- package/es/CollapseIcon-152e59b4.js +1 -1
- package/es/Collapsible-4dddc4f7.js +2 -2
- package/es/ComboChart-d1c3e17a.js +172 -0
- package/es/ComboChart-d1c3e17a.js.map +1 -0
- package/es/CompactHelpSource-c3044924.js +2 -2
- package/es/CompactLabelAssistance-0d70fceb.js +34 -0
- package/es/CompactLabelAssistance-0d70fceb.js.map +1 -0
- package/es/CompactUserAssistance-4f0ff3fc.js +47 -0
- package/es/CompactUserAssistance-4f0ff3fc.js.map +1 -0
- package/es/ComponentMessageContainer-13005c12.js +68 -0
- package/es/ComponentMessageContainer-13005c12.js.map +1 -0
- package/es/ConveyorBeltItem-53f383e1.js +638 -0
- package/es/ConveyorBeltItem-53f383e1.js.map +1 -0
- package/es/DatePicker-a57b08b1.js +564 -0
- package/es/DatePicker-a57b08b1.js.map +1 -0
- package/es/DatePickerHeader-8eee60aa.js +44 -0
- package/es/DatePickerHeader-8eee60aa.js.map +1 -0
- package/es/Diagram-29d78c10.js +2035 -0
- package/es/Diagram-29d78c10.js.map +1 -0
- package/es/Dialog-8a9a90a2.js +344 -0
- package/es/Dialog-8a9a90a2.js.map +1 -0
- package/es/DirectionalCollapseArrowIcon-e1b04846.js +1 -1
- package/es/DirectionalExpandArrowIcon-c9218fa7.js +1 -1
- package/es/DragHandle-198c3118.js +22 -0
- package/es/DragHandle-198c3118.js.map +1 -0
- package/es/DrawerPopup-5292bdfc.js +381 -0
- package/es/DrawerPopup-5292bdfc.js.map +1 -0
- package/es/Dropdown-698afbc6.js +80 -0
- package/es/Dropdown-698afbc6.js.map +1 -0
- package/es/EmbeddedIconButton-7215a912.js +11 -0
- package/es/EmbeddedIconButton-7215a912.js.map +1 -0
- package/es/EnvironmentProvider-713d0dec.js +58 -0
- package/es/EnvironmentProvider-713d0dec.js.map +1 -0
- package/es/ExpandableList-27f4f0d4.js +167 -0
- package/es/ExpandableList-27f4f0d4.js.map +1 -0
- package/es/FilePicker-c3f06d6f.js +2 -2
- package/es/Flex-2d9ebee9.js +30 -0
- package/es/Flex-2d9ebee9.js.map +1 -0
- package/es/Floating-5191a9e6.js +462 -0
- package/es/Floating-5191a9e6.js.map +1 -0
- package/es/FormLayout-b2993e0c.js +1 -1
- package/es/Gantt-e156bd33.js +3817 -0
- package/es/Gantt-e156bd33.js.map +1 -0
- package/es/Grid-238d8757.js +27 -0
- package/es/Grid-238d8757.js.map +1 -0
- package/es/Gridlines-d37f55d2.js +168 -0
- package/es/Gridlines-d37f55d2.js.map +1 -0
- package/es/GroupLoadingIndicator-93bcf33f.js +1 -1
- package/es/HighlightText-fef35694.js +31 -0
- package/es/HighlightText-fef35694.js.map +1 -0
- package/es/Icon-030b6dd4.js +3 -3
- package/es/IconButton-19fcf0a8.js +37 -0
- package/es/IconButton-19fcf0a8.js.map +1 -0
- package/es/IconMenuButton-4118bde6.js +56 -0
- package/es/IconMenuButton-4118bde6.js.map +1 -0
- package/es/IconProgressButton-a595c052.js +47 -0
- package/es/IconProgressButton-a595c052.js.map +1 -0
- package/es/IconSwitchButton-dcafa86c.js +44 -0
- package/es/IconSwitchButton-dcafa86c.js.map +1 -0
- package/es/IconToggleButton-94cbea2b.js +43 -0
- package/es/IconToggleButton-94cbea2b.js.map +1 -0
- package/es/IconUserAssistance-d9bc82d4.js +73 -0
- package/es/IconUserAssistance-d9bc82d4.js.map +1 -0
- package/es/Indexer-18ec7af3.js +4 -4
- package/es/InlineHelpSource-5ed4bb7d.js +1 -1
- package/es/InlineUserAssistance-65ca8810.js +81 -0
- package/es/InlineUserAssistance-65ca8810.js.map +1 -0
- package/es/InputDateMask-8258be53.js +1056 -0
- package/es/InputDateMask-8258be53.js.map +1 -0
- package/es/InputDatePicker-a659ed3a.js +307 -0
- package/es/InputDatePicker-a659ed3a.js.map +1 -0
- package/es/InputPassword-65336899.js +155 -0
- package/es/InputPassword-65336899.js.map +1 -0
- package/es/InputText-21591785.js +197 -0
- package/es/InputText-21591785.js.map +1 -0
- package/es/Label-25eba25e.js +83 -0
- package/es/Label-25eba25e.js.map +1 -0
- package/es/LabelValueLayout-1db91391.js +1 -1
- package/es/Layer-1eb18747.js +91 -0
- package/es/Layer-1eb18747.js.map +1 -0
- package/es/LayerHost-8b98d97d.js +41 -0
- package/es/LayerHost-8b98d97d.js.map +1 -0
- package/es/LayerManager-221afe20.js +34 -0
- package/es/LayerManager-221afe20.js.map +1 -0
- package/es/Legend-0e274097.js +3 -3
- package/es/LineAreaChart-6fabda31.js +170 -0
- package/es/LineAreaChart-6fabda31.js.map +1 -0
- package/es/LineSeries-139bda1a.js +109 -0
- package/es/LineSeries-139bda1a.js.map +1 -0
- package/es/Link-c7061441.js +33 -0
- package/es/Link-c7061441.js.map +1 -0
- package/es/LinkVariants.styles.css +2 -1
- package/es/LinkVariants.styles2.css +2 -1
- package/es/List-58b8d3c9.js +5 -5
- package/es/ListItemLayout-af86b17d.js +110 -0
- package/es/ListItemLayout-af86b17d.js.map +1 -0
- package/es/ListView-be2e2736.js +3 -3
- package/es/LiveRegion-c7bf2f21.js +39 -0
- package/es/LiveRegion-c7bf2f21.js.map +1 -0
- package/es/MaxLengthLiveRegion-d790e55c.js +23 -0
- package/es/MaxLengthLiveRegion-d790e55c.js.map +1 -0
- package/es/Menu-a5bf756f.js +6 -6
- package/es/MenuButton-e012a909.js +61 -0
- package/es/MenuButton-e012a909.js.map +1 -0
- package/es/MenuItem-54015ca3.js +1 -1
- package/es/Message-b0150c6f.js +203 -0
- package/es/Message-b0150c6f.js.map +1 -0
- package/es/MessageLayer-d9129e22.js +58 -0
- package/es/MessageLayer-d9129e22.js.map +1 -0
- package/es/MessageToast-933a0339.js +241 -0
- package/es/MessageToast-933a0339.js.map +1 -0
- package/es/MessagesManager-91ade5dc.js +3 -3
- package/es/MeterBar-732e3b2c.js +5 -5
- package/es/MeterCircle-2156d7ff.js +5 -5
- package/es/Modal-9980f6d1.js +288 -0
- package/es/Modal-9980f6d1.js.map +1 -0
- package/es/MonthView-d60a5df7.js +208 -0
- package/es/MonthView-d60a5df7.js.map +1 -0
- package/es/NavigationList-fb05e081.js +159 -0
- package/es/NavigationList-fb05e081.js.map +1 -0
- package/es/NavigationListItem-193a315a.js +10 -0
- package/es/NavigationListItem-193a315a.js.map +1 -0
- package/es/NumberInputText-2d1aef12.js +220 -0
- package/es/NumberInputText-2d1aef12.js.map +1 -0
- package/es/OverflowTabBar-894c7cd9.js +69 -0
- package/es/OverflowTabBar-894c7cd9.js.map +1 -0
- package/es/OverflowTabBarItem-a578401b.js +87 -0
- package/es/OverflowTabBarItem-a578401b.js.map +1 -0
- package/es/PRIVATE_BaseCardView.js +21 -21
- package/es/PRIVATE_Chart.js +43 -43
- package/es/PRIVATE_CheckboxControl.js +28 -27
- package/es/PRIVATE_CheckboxControl.js.map +1 -1
- package/es/PRIVATE_CheckboxRadioField.js +33 -32
- package/es/PRIVATE_CheckboxRadioField.js.map +1 -1
- package/es/PRIVATE_ClearIcon.js +21 -21
- package/es/PRIVATE_DatePickerHeader.js +23 -23
- package/es/PRIVATE_DatePickerLayout.js +4 -4
- package/es/PRIVATE_EmbeddedIconButton.js +6 -6
- package/es/PRIVATE_FormControls.js +19 -19
- package/es/PRIVATE_IconSwitchButton.js +18 -18
- package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
- package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
- package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
- package/es/PRIVATE_Icons/DragV.js +15 -15
- package/es/PRIVATE_Icons/WarningS.js +15 -15
- package/es/PRIVATE_List.js +19 -19
- package/es/PRIVATE_Message.js +22 -22
- package/es/PRIVATE_MessageLayer.js +12 -12
- package/es/PRIVATE_MonthView.js +8 -8
- package/es/PRIVATE_MonthYearGridView.js +8 -8
- package/es/PRIVATE_PlotArea.js +4 -4
- package/es/PRIVATE_RevealToggleIcon.js +20 -20
- package/es/PRIVATE_RichSelectionCommon.js +34 -33
- package/es/PRIVATE_RichSelectionCommon.js.map +1 -1
- package/es/PRIVATE_SelectCommon.js +35 -35
- package/es/PRIVATE_StyledCard.js +4 -4
- package/es/PRIVATE_StyledCheckbox.js +15 -15
- package/es/PRIVATE_Table.js +28 -28
- package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
- package/es/PRIVATE_TimeComponent.js +20 -20
- package/es/PRIVATE_VisOverview.js +15 -15
- package/es/PRIVATE_VisTabularDatatip.js +4 -4
- package/es/PictoChart-9624c62e.js +744 -0
- package/es/PictoChart-9624c62e.js.map +1 -0
- package/es/PieChart-87a2913f.js +6 -6
- package/es/Popup-f6774b40.js +258 -0
- package/es/Popup-f6774b40.js.map +1 -0
- package/es/ProgressBar-6d816723.js +62 -0
- package/es/ProgressBar-6d816723.js.map +1 -0
- package/es/ProgressButton-bb52347a.js +56 -0
- package/es/ProgressButton-bb52347a.js.map +1 -0
- package/es/ProgressButtonLabelLayout-f1d097d6.js +3 -3
- package/es/ProgressCircle-bbcf67fd.js +48 -0
- package/es/ProgressCircle-bbcf67fd.js.map +1 -0
- package/es/RadioItem-81e9e082.js +113 -0
- package/es/RadioItem-81e9e082.js.map +1 -0
- package/es/RadioSet-d2820846.js +43 -0
- package/es/RadioSet-d2820846.js.map +1 -0
- package/es/RatingGauge-5e1e75b4.js +8 -8
- package/es/ReadonlyTextFieldInput-f407b86c.js +1 -1
- package/es/RemovableNavigationListItem-21cd36b7.js +25 -0
- package/es/RemovableNavigationListItem-21cd36b7.js.map +1 -0
- package/es/RemovableTabBarItem-60574a52.js +36 -0
- package/es/RemovableTabBarItem-60574a52.js.map +1 -0
- package/es/ReorderableTabBar-c280e7d4.js +77 -0
- package/es/ReorderableTabBar-c280e7d4.js.map +1 -0
- package/es/RevealToggleIcon-8e650973.js +26 -0
- package/es/RevealToggleIcon-8e650973.js.map +1 -0
- package/es/ScatterChart-1f818935.js +103 -0
- package/es/ScatterChart-1f818935.js.map +1 -0
- package/es/SectionalLegend-64670096.js +4 -4
- package/es/SectionedContent-48fa242f.js +64 -0
- package/es/SectionedContent-48fa242f.js.map +1 -0
- package/es/SelectMultiple-c7f9e747.js +1297 -0
- package/es/SelectMultiple-c7f9e747.js.map +1 -0
- package/es/SelectSingle-75270526.js +730 -0
- package/es/SelectSingle-75270526.js.map +1 -0
- package/es/SelectionCard-ce3012e8.js +16 -0
- package/es/SelectionCard-ce3012e8.js.map +1 -0
- package/es/Selector-41618991.js +1 -1
- package/es/SelectorAll-27744634.js +69 -0
- package/es/SelectorAll-27744634.js.map +1 -0
- package/es/Sheet-924cfdab.js +158 -0
- package/es/Sheet-924cfdab.js.map +1 -0
- package/es/SplitMenuButton-5cb6e8db.js +139 -0
- package/es/SplitMenuButton-5cb6e8db.js.map +1 -0
- package/es/StyledCard-c8d9836f.js +105 -0
- package/es/StyledCard-c8d9836f.js.map +1 -0
- package/es/StyledLabelValueLayout-5b9a731a.js +18 -0
- package/es/StyledLabelValueLayout-5b9a731a.js.map +1 -0
- package/es/StyledTextField-6d6dd43e.js +3 -3
- package/es/TabBar-4d7054f7.js +82 -0
- package/es/TabBar-4d7054f7.js.map +1 -0
- package/es/TabBarItem-b97091e4.js +3 -3
- package/es/TabBarLayout-bb3f9f69.js +1 -1
- package/es/TabBarMixed-b8e2427c.js +83 -0
- package/es/TabBarMixed-b8e2427c.js.map +1 -0
- package/es/TabBarMixedSeparator-7669e2f0.js +19 -0
- package/es/TabBarMixedSeparator-7669e2f0.js.map +1 -0
- package/es/Table-b8c41429.js +5497 -0
- package/es/Table-b8c41429.js.map +1 -0
- package/es/TableView-2261b9de.js +31 -0
- package/es/TableView-2261b9de.js.map +1 -0
- package/es/TagCloud-0fe9b648.js +824 -0
- package/es/TagCloud-0fe9b648.js.map +1 -0
- package/es/TextArea-6584935d.js +177 -0
- package/es/TextArea-6584935d.js.map +1 -0
- package/es/TextAreaAutosize-2ca5256e.js +244 -0
- package/es/TextAreaAutosize-2ca5256e.js.map +1 -0
- package/es/TextField-500c0227.js +3 -3
- package/es/TextFieldInput-cb551f4e.js +1 -1
- package/es/Theme-redwood/theme.css +590 -590
- package/es/Theme-stable/theme.css +476 -476
- package/es/TimeComponentCanvas2D-a5baa5f6.js +568 -0
- package/es/TimeComponentCanvas2D-a5baa5f6.js.map +1 -0
- package/es/ToggleButton-c50ac048.js +28 -0
- package/es/ToggleButton-c50ac048.js.map +1 -0
- package/es/Toolbar-35426a1b.js +1 -1
- package/es/TruncatingBadge-69621d89.js +1 -1
- package/es/TruncatingText-fd66e0e0.js +1 -1
- package/es/UNSAFE_ActionCard.js +3 -3
- package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +44 -44
- package/es/UNSAFE_BarChart.js +44 -44
- package/es/UNSAFE_BaseButton.js +5 -5
- package/es/UNSAFE_Button.js +6 -6
- package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +26 -26
- package/es/UNSAFE_ButtonSet.js +4 -4
- package/es/UNSAFE_ButtonSetButton.js +6 -6
- package/es/UNSAFE_ButtonSetIconButton.js +18 -18
- package/es/UNSAFE_ButtonSetItem.js +20 -20
- package/es/UNSAFE_ButtonSetMultiple.js +4 -4
- package/es/UNSAFE_ButtonSetSingle.js +4 -4
- package/es/UNSAFE_Card.js +5 -5
- package/es/UNSAFE_CardFlexView.js +21 -21
- package/es/UNSAFE_CardGridView.js +21 -21
- package/es/UNSAFE_Center.js +5 -5
- package/es/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -0
- package/es/UNSAFE_Checkbox/themes/CheckboxStyles.css.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -0
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -0
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -0
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -0
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js.map +1 -1
- package/es/UNSAFE_Checkbox.js +31 -30
- package/es/UNSAFE_Checkbox.js.map +1 -1
- package/es/UNSAFE_CheckboxItem.js +57 -108
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +75 -40
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_Chip.js +2 -2
- package/es/UNSAFE_Collapsible.js +17 -17
- package/es/UNSAFE_ComboChart.js +46 -46
- package/es/UNSAFE_ComponentMessage.js +22 -22
- package/es/UNSAFE_ConveyorBelt.js +18 -18
- package/es/UNSAFE_DatePicker.js +30 -30
- package/es/UNSAFE_Diagram.js +27 -27
- package/es/UNSAFE_Dialog.js +24 -24
- package/es/UNSAFE_DragHandle.js +17 -17
- package/es/UNSAFE_DrawerLayout.js +12 -12
- package/es/UNSAFE_DrawerPopup.js +13 -13
- package/es/UNSAFE_Dropdown.js +13 -13
- package/es/UNSAFE_Environment.js +4 -4
- package/es/UNSAFE_ExpandableList.js +26 -26
- package/es/UNSAFE_FilePicker.js +4 -4
- package/es/UNSAFE_Flex.js +4 -4
- package/es/UNSAFE_Floating.js +11 -11
- package/es/UNSAFE_FormLayout.js +2 -2
- package/es/UNSAFE_Gantt.js +26 -26
- package/es/UNSAFE_Grid.js +4 -4
- package/es/UNSAFE_HighlightText.js +4 -4
- package/es/UNSAFE_Icon.js +15 -15
- package/es/UNSAFE_IconButton.js +18 -18
- package/es/UNSAFE_IconMenuButton.js +24 -24
- package/es/UNSAFE_IconProgressButton.js +21 -21
- package/es/UNSAFE_IconToggleButton.js +18 -18
- package/es/UNSAFE_Indexer.js +6 -6
- package/es/UNSAFE_InputDateMask.js +33 -33
- package/es/UNSAFE_InputDatePicker.js +119 -119
- package/es/UNSAFE_InputPassword.js +35 -35
- package/es/UNSAFE_InputSensitiveText.js +36 -36
- package/es/UNSAFE_InputText.js +36 -36
- package/es/UNSAFE_InputTimeMask.js +32 -32
- package/es/UNSAFE_Label.js +27 -27
- package/es/UNSAFE_LabelValueLayout.js +4 -4
- package/es/UNSAFE_LabelledLink.js +32 -32
- package/es/UNSAFE_Layer.js +8 -8
- package/es/UNSAFE_Legend.js +25 -25
- package/es/UNSAFE_LineAreaChart.js +46 -46
- package/es/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
- package/es/UNSAFE_Link.js +4 -4
- package/es/UNSAFE_ListItemLayout.js +5 -5
- package/es/UNSAFE_ListView.js +28 -28
- package/es/UNSAFE_LiveRegion.js +4 -4
- package/es/UNSAFE_Menu.js +23 -23
- package/es/UNSAFE_MenuButton.js +24 -24
- package/es/UNSAFE_MessageBanner.js +22 -22
- package/es/UNSAFE_MessageToast.js +26 -26
- package/es/UNSAFE_MeterBar.js +16 -16
- package/es/UNSAFE_MeterCircle.js +17 -17
- package/es/UNSAFE_Modal.js +9 -9
- package/es/UNSAFE_NavigationList.js +45 -43
- package/es/UNSAFE_NavigationList.js.map +1 -1
- package/es/UNSAFE_NavigationListCommon.js +74 -73
- package/es/UNSAFE_NavigationListCommon.js.map +1 -1
- package/es/UNSAFE_NumberInputText.js +34 -34
- package/es/UNSAFE_OverflowTabBar.js +56 -54
- package/es/UNSAFE_OverflowTabBar.js.map +1 -1
- package/es/UNSAFE_PictoChart.js +17 -17
- package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
- package/es/UNSAFE_PieChart.js +22 -22
- package/es/UNSAFE_Popup.js +17 -17
- package/es/UNSAFE_ProgressBar.js +5 -5
- package/es/UNSAFE_ProgressButton.js +21 -21
- package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/es/UNSAFE_ProgressCircle.js +4 -4
- package/es/UNSAFE_RadioItem.js +27 -27
- package/es/UNSAFE_RadioSet.js +33 -32
- package/es/UNSAFE_RadioSet.js.map +1 -1
- package/es/UNSAFE_RatingGauge.js +17 -17
- package/es/UNSAFE_ReorderableTabBar.js +49 -38
- package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/es/UNSAFE_RichCheckboxSet.js +54 -56
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichRadioSet.js +34 -33
- package/es/UNSAFE_RichRadioSet.js.map +1 -1
- package/es/UNSAFE_RichSelectionItem.js +58 -196
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +46 -46
- package/es/UNSAFE_SectionalLegend.js +26 -26
- package/es/UNSAFE_SelectMultiple.js +42 -42
- package/es/UNSAFE_SelectSingle.js +41 -41
- package/es/UNSAFE_SelectionCard.js +5 -5
- package/es/UNSAFE_Selector.js +15 -15
- package/es/UNSAFE_SelectorAll.js +19 -19
- package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +18 -18
- package/es/UNSAFE_Sheet.js +12 -12
- package/es/UNSAFE_SplitMenuButton.js +24 -24
- package/es/UNSAFE_TabBar.js +56 -54
- package/es/UNSAFE_TabBar.js.map +1 -1
- package/es/UNSAFE_TabBarCommon.js +48 -46
- package/es/UNSAFE_TabBarCommon.js.map +1 -1
- package/es/UNSAFE_TabBarMixed.js +66 -64
- package/es/UNSAFE_TabBarMixed.js.map +1 -1
- package/es/UNSAFE_TableView.js +29 -29
- package/es/UNSAFE_TagCloud.js +27 -27
- package/es/UNSAFE_TextArea.js +35 -36
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +36 -36
- package/es/UNSAFE_TextField.js +8 -8
- package/es/UNSAFE_ToggleButton.js +6 -6
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +28 -28
- package/es/UNSAFE_Toolbar.js +4 -4
- package/es/UNSAFE_Train.js +16 -16
- package/es/UNSAFE_TruncatingBadge.js +16 -16
- package/es/UNSAFE_TruncatingText.js +16 -16
- package/es/UNSAFE_UserAssistance.js +30 -30
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +19 -19
- package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
- package/es/UNSAFE_VisProgressiveLoader.js +6 -6
- package/es/UNSAFE_VisStatusMessage.js +6 -6
- package/es/UNSAFE_WindowOverlay.js +4 -4
- package/es/View-cf6dfd8e.js +167 -0
- package/es/View-cf6dfd8e.js.map +1 -0
- package/es/VisNoData-d6e475d8.js +32 -0
- package/es/VisNoData-d6e475d8.js.map +1 -0
- package/es/VisProgressiveLoader-36053d5a.js +51 -0
- package/es/VisProgressiveLoader-36053d5a.js.map +1 -0
- package/es/VisTabularDatatip-3497f5ff.js +24 -0
- package/es/VisTabularDatatip-3497f5ff.js.map +1 -0
- package/es/WindowOverlay-ca2baa48.js +110 -0
- package/es/WindowOverlay-ca2baa48.js.map +1 -0
- package/es/YearsGridView-2c978d9f.js +187 -0
- package/es/YearsGridView-2c978d9f.js.map +1 -0
- package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
- package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
- package/es/hoc/UNSAFE_withThemeProps.js +3 -3
- package/es/hooks/PRIVATE_useChartContextMenu.js +21 -21
- package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
- package/es/hooks/PRIVATE_useChartEvents.js +20 -20
- package/es/hooks/PRIVATE_useChartMarquee.js +25 -25
- package/es/hooks/PRIVATE_useCssVars.js +7 -7
- package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/es/hooks/PRIVATE_useDatatip.js +12 -12
- package/es/hooks/PRIVATE_useFloating.js +4 -4
- package/es/hooks/PRIVATE_useReorderable.js +5 -5
- package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/es/hooks/PRIVATE_useSelection.js +4 -4
- package/es/hooks/PRIVATE_useTabBar.js +4 -4
- package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
- package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
- package/es/hooks/PRIVATE_useVisDragModeControls.js +24 -24
- package/es/hooks/PRIVATE_useVisEvents.js +4 -4
- package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
- package/es/hooks/PRIVATE_useVisSelection.js +15 -15
- package/es/hooks/UNSAFE_useColorScheme.js +3 -3
- package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
- package/es/hooks/UNSAFE_useDensity.js +3 -3
- package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
- package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
- package/es/hooks/UNSAFE_usePressClick.js +1 -1
- package/es/hooks/UNSAFE_useScale.js +3 -3
- package/es/hooks/UNSAFE_useTestId.js +3 -3
- package/es/hooks/UNSAFE_useTheme.js +3 -3
- package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
- package/es/hooks/UNSAFE_useTooltip.js +16 -16
- package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/es/hooks/UNSAFE_useUser.js +3 -3
- package/es/index-3fdaba9a.js +11 -0
- package/es/index-3fdaba9a.js.map +1 -0
- package/es/listViewSelectionTests-d1f64e6f.js +3 -3
- package/es/popupUtils-24a723a0.js +29 -0
- package/es/popupUtils-24a723a0.js.map +1 -0
- package/es/render-4d96f0d2.js +34 -0
- package/es/render-4d96f0d2.js.map +1 -0
- package/es/tabbableUtils-070beeed.js +79 -0
- package/es/tabbableUtils-070beeed.js.map +1 -0
- package/es/testData-e1df8616.js +256 -0
- package/es/testData-e1df8616.js.map +1 -0
- package/es/tooltipUtils-35655bd6.js +93 -0
- package/es/tooltipUtils-35655bd6.js.map +1 -0
- package/es/useCellNavigation-bdb3248d.js +121 -0
- package/es/useCellNavigation-bdb3248d.js.map +1 -0
- package/es/useChartContextMenu-61fe46b8.js +2 -2
- package/es/useChartDatatip-b0d35cfe.js +165 -0
- package/es/useChartDatatip-b0d35cfe.js.map +1 -0
- package/es/useChartMarquee-7cd47205.js +293 -0
- package/es/useChartMarquee-7cd47205.js.map +1 -0
- package/es/useColorScheme-8e5e458d.js +19 -0
- package/es/useColorScheme-8e5e458d.js.map +1 -0
- package/es/useContextMenu-3c62d9eb.js +2 -2
- package/es/useCssVars-608cb842.js +58 -0
- package/es/useCssVars-608cb842.js.map +1 -0
- package/es/useCurrentBgColor-ee671513.js +19 -0
- package/es/useCurrentBgColor-ee671513.js.map +1 -0
- package/es/useCurrentKey-b8e62707.js +81 -0
- package/es/useCurrentKey-b8e62707.js.map +1 -0
- package/es/useDatatip-daec4346.js +90 -0
- package/es/useDatatip-daec4346.js.map +1 -0
- package/es/useDensity-556ca8b2.js +19 -0
- package/es/useDensity-556ca8b2.js.map +1 -0
- package/es/useFloating-abfd69eb.js +1916 -0
- package/es/useFloating-abfd69eb.js.map +1 -0
- package/es/useKeyboardEvents-7202253d.js +78 -0
- package/es/useKeyboardEvents-7202253d.js.map +1 -0
- package/es/useLegendContextMenu-66d6eb7e.js +4 -4
- package/es/useMeterDatatip-dcd2a05e.js +73 -0
- package/es/useMeterDatatip-dcd2a05e.js.map +1 -0
- package/es/useNavigationListItem-a28f2c34.js +81 -0
- package/es/useNavigationListItem-a28f2c34.js.map +1 -0
- package/es/useOutsideClick-817bf098.js +101 -0
- package/es/useOutsideClick-817bf098.js.map +1 -0
- package/es/usePopupAnimation-6e0781b5.js +85 -0
- package/es/usePopupAnimation-6e0781b5.js.map +1 -0
- package/es/usePrefixSuffix-0874343c.js +70 -0
- package/es/usePrefixSuffix-0874343c.js.map +1 -0
- package/es/usePressClick-945cc43b.js +39 -0
- package/es/usePressClick-945cc43b.js.map +1 -0
- package/es/useReorderableItem-99a9dbce.js +268 -0
- package/es/useReorderableItem-99a9dbce.js.map +1 -0
- package/es/useRovingTabIndexContainer-f7972085.js +98 -0
- package/es/useRovingTabIndexContainer-f7972085.js.map +1 -0
- package/es/useScale-1cdb639e.js +19 -0
- package/es/useScale-1cdb639e.js.map +1 -0
- package/es/useSelectCommon-896b594a.js +686 -0
- package/es/useSelectCommon-896b594a.js.map +1 -0
- package/es/useSelectDrill-5525e5a3.js +104 -0
- package/es/useSelectDrill-5525e5a3.js.map +1 -0
- package/es/useSelection-2d26ab04.js +239 -0
- package/es/useSelection-2d26ab04.js.map +1 -0
- package/es/useSelection-8be05a70.js +186 -0
- package/es/useSelection-8be05a70.js.map +1 -0
- package/es/useTabBar-cbac0c2e.js +1 -1
- package/es/useTestId-474ac6ca.js +21 -0
- package/es/useTestId-474ac6ca.js.map +1 -0
- package/es/useTheme-5aa36f52.js +19 -0
- package/es/useTheme-5aa36f52.js.map +1 -0
- package/es/useThemeInterpolations-05e58770.js +57 -0
- package/es/useThemeInterpolations-05e58770.js.map +1 -0
- package/es/useTooltip-138c94ee.js +424 -0
- package/es/useTooltip-138c94ee.js.map +1 -0
- package/es/useTooltipOnTruncation-a97211b6.js +27 -0
- package/es/useTooltipOnTruncation-a97211b6.js.map +1 -0
- package/es/useTranslationBundle-2df40edf.js +29 -0
- package/es/useTranslationBundle-2df40edf.js.map +1 -0
- package/es/useUser-6b2e271a.js +19 -0
- package/es/useUser-6b2e271a.js.map +1 -0
- package/es/useVisDragModeControls-ed260d12.js +87 -0
- package/es/useVisDragModeControls-ed260d12.js.map +1 -0
- package/es/useVisEvents-d8652100.js +153 -0
- package/es/useVisEvents-d8652100.js.map +1 -0
- package/es/utils/PRIVATE_tooltipUtils.js +14 -14
- package/es/utils/PRIVATE_visTestUtils.js +6 -6
- package/es/utils/UNSAFE_popupUtils.js +8 -8
- package/es/withDirectionIcon-fe0b69a7.js +14 -0
- package/es/withDirectionIcon-fe0b69a7.js.map +1 -0
- package/es/withThemeProps-1621f692.js +2 -2
- package/package.json +2 -2
- package/types/UNSAFE_DatePicker/useCellNavigation.d.ts +0 -1
- package/types/UNSAFE_Link/themes/LinkStyles.css.d.ts +2 -1
- package/types/UNSAFE_Link/themes/redwood/LinkVariants.css.d.ts +2 -1
- package/types/UNSAFE_Link/themes/stable/LinkVariants.css.d.ts +2 -1
- package/types/hooks/UNSAFE_usePressClick/usePressClick.d.ts +1 -0
- package/amd/BarChart-1be56919.js +0 -2
- package/amd/BarChart-1be56919.js.map +0 -1
- package/amd/BaseButton-771c5db8.js +0 -2
- package/amd/BaseButton-771c5db8.js.map +0 -1
- package/amd/BaseCardView-4f88499c.js +0 -2
- package/amd/BaseCardView-4f88499c.js.map +0 -1
- package/amd/BaseCardViewSelectionTest-adaca8ca.js +0 -2
- package/amd/BaseCardViewSelectionTest-adaca8ca.js.map +0 -1
- package/amd/BaseRichSelection-eb93f0e2.js +0 -2
- package/amd/BaseRichSelection-eb93f0e2.js.map +0 -1
- package/amd/Button-af88bb81.js +0 -2
- package/amd/Button-af88bb81.js.map +0 -1
- package/amd/ButtonSetButton-00612cdd.js +0 -2
- package/amd/ButtonSetButton-00612cdd.js.map +0 -1
- package/amd/ButtonSetIconButton-d0684966.js +0 -2
- package/amd/ButtonSetIconButton-d0684966.js.map +0 -1
- package/amd/ButtonSetItem-1d88a72d.js +0 -2
- package/amd/ButtonSetItem-1d88a72d.js.map +0 -1
- package/amd/CardFlexView-86cb369a.js +0 -2
- package/amd/CardFlexView-86cb369a.js.map +0 -1
- package/amd/CardGridView-b3f11290.js +0 -2
- package/amd/CardGridView-b3f11290.js.map +0 -1
- package/amd/Chart-0a3205dd.js +0 -2
- package/amd/Chart-0a3205dd.js.map +0 -1
- package/amd/Checkbox-3a25138e.js +0 -2
- package/amd/Checkbox-3a25138e.js.map +0 -1
- package/amd/CheckboxControl-232e227d.js +0 -2
- package/amd/CheckboxControl-232e227d.js.map +0 -1
- package/amd/CheckboxRadioField-9b73f66b.js +0 -2
- package/amd/CheckboxRadioField-9b73f66b.js.map +0 -1
- package/amd/CheckboxSetContext-2e486ea8.js +0 -2
- package/amd/CheckboxSetContext-2e486ea8.js.map +0 -1
- package/amd/ClearIcon-f1befe37.js +0 -2
- package/amd/ClearIcon-f1befe37.js.map +0 -1
- package/amd/ComboChart-5dba7db4.js +0 -2
- package/amd/ComboChart-5dba7db4.js.map +0 -1
- package/amd/CompactUserAssistance-f962b357.js +0 -2
- package/amd/CompactUserAssistance-f962b357.js.map +0 -1
- package/amd/ComponentMessageContainer-13e53260.js +0 -2
- package/amd/ComponentMessageContainer-13e53260.js.map +0 -1
- package/amd/ConveyorBeltItem-1dfb412e.js +0 -2
- package/amd/ConveyorBeltItem-1dfb412e.js.map +0 -1
- package/amd/DatePicker-b907fb97.js +0 -2
- package/amd/DatePicker-b907fb97.js.map +0 -1
- package/amd/DatePickerHeader-d95959a6.js +0 -2
- package/amd/DatePickerHeader-d95959a6.js.map +0 -1
- package/amd/Diagram-92f409e0.js +0 -2
- package/amd/Diagram-92f409e0.js.map +0 -1
- package/amd/Dialog-b9dd8533.js +0 -2
- package/amd/Dialog-b9dd8533.js.map +0 -1
- package/amd/EmbeddedIconButton-8635fed8.js +0 -2
- package/amd/EmbeddedIconButton-8635fed8.js.map +0 -1
- package/amd/ExpandableList-c372fe68.js +0 -2
- package/amd/ExpandableList-c372fe68.js.map +0 -1
- package/amd/Gantt-f6a53a90.js +0 -2
- package/amd/Gantt-f6a53a90.js.map +0 -1
- package/amd/IconButton-05c6b793.js +0 -2
- package/amd/IconButton-05c6b793.js.map +0 -1
- package/amd/IconMenuButton-82a7258c.js +0 -2
- package/amd/IconMenuButton-82a7258c.js.map +0 -1
- package/amd/IconProgressButton-3bff5384.js +0 -2
- package/amd/IconProgressButton-3bff5384.js.map +0 -1
- package/amd/IconSwitchButton-faf2b405.js +0 -2
- package/amd/IconSwitchButton-faf2b405.js.map +0 -1
- package/amd/IconToggleButton-d5112634.js +0 -2
- package/amd/IconToggleButton-d5112634.js.map +0 -1
- package/amd/Indexer-510aaf3a.js +0 -2
- package/amd/Indexer-510aaf3a.js.map +0 -1
- package/amd/InlineUserAssistance-3d3e72a9.js +0 -2
- package/amd/InlineUserAssistance-3d3e72a9.js.map +0 -1
- package/amd/InputDateMask-55fcbf50.js +0 -2
- package/amd/InputDateMask-55fcbf50.js.map +0 -1
- package/amd/InputDatePicker-ecd4a7ce.js +0 -2
- package/amd/InputDatePicker-ecd4a7ce.js.map +0 -1
- package/amd/InputPassword-61090b77.js +0 -2
- package/amd/InputPassword-61090b77.js.map +0 -1
- package/amd/InputText-32954a14.js +0 -2
- package/amd/InputText-32954a14.js.map +0 -1
- package/amd/Label-7cbbe3b7.js +0 -2
- package/amd/Label-7cbbe3b7.js.map +0 -1
- package/amd/LineAreaChart-190b3d46.js +0 -2
- package/amd/LineAreaChart-190b3d46.js.map +0 -1
- package/amd/Link-2dae4de2.js +0 -2
- package/amd/Link-2dae4de2.js.map +0 -1
- package/amd/List-37e37948.js +0 -2
- package/amd/List-37e37948.js.map +0 -1
- package/amd/ListView-325e1814.js +0 -2
- package/amd/ListView-325e1814.js.map +0 -1
- package/amd/LoadMoreCollection-83413a59.js +0 -2
- package/amd/LoadMoreCollection-83413a59.js.map +0 -1
- package/amd/MenuButton-233a631a.js +0 -2
- package/amd/MenuButton-233a631a.js.map +0 -1
- package/amd/Message-40182dfc.js +0 -2
- package/amd/Message-40182dfc.js.map +0 -1
- package/amd/MessageToast-236687bd.js +0 -2
- package/amd/MessageToast-236687bd.js.map +0 -1
- package/amd/MonthView-c8a6ab15.js +0 -2
- package/amd/MonthView-c8a6ab15.js.map +0 -1
- package/amd/NumberInputText-91b73dcb.js +0 -2
- package/amd/NumberInputText-91b73dcb.js.map +0 -1
- package/amd/OverflowTabBar-ef21bcd3.js +0 -2
- package/amd/OverflowTabBar-ef21bcd3.js.map +0 -1
- package/amd/OverflowTabBarItem-db77f3d3.js +0 -2
- package/amd/OverflowTabBarItem-db77f3d3.js.map +0 -1
- package/amd/PictoChart-d5bedf82.js +0 -2
- package/amd/PictoChart-d5bedf82.js.map +0 -1
- package/amd/ProgressButton-e30c909b.js +0 -2
- package/amd/ProgressButton-e30c909b.js.map +0 -1
- package/amd/RadioItem-7ebada33.js +0 -2
- package/amd/RadioItem-7ebada33.js.map +0 -1
- package/amd/RadioSet-5e4b6669.js +0 -2
- package/amd/RadioSet-5e4b6669.js.map +0 -1
- package/amd/RemovableNavigationListItem-9950c473.js +0 -2
- package/amd/RemovableNavigationListItem-9950c473.js.map +0 -1
- package/amd/RemovableTabBarItem-fcada993.js +0 -2
- package/amd/RemovableTabBarItem-fcada993.js.map +0 -1
- package/amd/RevealToggleIcon-411d7a73.js +0 -2
- package/amd/RevealToggleIcon-411d7a73.js.map +0 -1
- package/amd/ScatterChart-3f6024a2.js +0 -2
- package/amd/ScatterChart-3f6024a2.js.map +0 -1
- package/amd/SelectMultiple-d3196bcd.js +0 -2
- package/amd/SelectMultiple-d3196bcd.js.map +0 -1
- package/amd/SelectSingle-007ab01c.js +0 -2
- package/amd/SelectSingle-007ab01c.js.map +0 -1
- package/amd/SplitMenuButton-65acf4d4.js +0 -2
- package/amd/SplitMenuButton-65acf4d4.js.map +0 -1
- package/amd/Table-52c72d48.js +0 -2
- package/amd/Table-52c72d48.js.map +0 -1
- package/amd/TableView-dc0766a7.js +0 -2
- package/amd/TableView-dc0766a7.js.map +0 -1
- package/amd/TagCloud-6afc73f7.js +0 -2
- package/amd/TagCloud-6afc73f7.js.map +0 -1
- package/amd/TextArea-f6b13c73.js +0 -2
- package/amd/TextArea-f6b13c73.js.map +0 -1
- package/amd/TextAreaAutosize-af350c32.js +0 -2
- package/amd/TextAreaAutosize-af350c32.js.map +0 -1
- package/amd/TimeComponentCanvas2D-27e55de9.js +0 -2
- package/amd/TimeComponentCanvas2D-27e55de9.js.map +0 -1
- package/amd/ToggleButton-a999647d.js +0 -2
- package/amd/ToggleButton-a999647d.js.map +0 -1
- package/amd/VirtualizedCollection-897516a5.js +0 -2
- package/amd/VirtualizedCollection-897516a5.js.map +0 -1
- package/amd/VirtualizedListView-0b9e1c53.js +0 -2
- package/amd/VirtualizedListView-0b9e1c53.js.map +0 -1
- package/amd/YearsGridView-c09d1d19.js +0 -2
- package/amd/YearsGridView-c09d1d19.js.map +0 -1
- package/amd/useCellNavigation-47060bc3.js +0 -2
- package/amd/useCellNavigation-47060bc3.js.map +0 -1
- package/amd/useChartMarquee-8ce16d57.js +0 -2
- package/amd/useChartMarquee-8ce16d57.js.map +0 -1
- package/amd/usePressClick-b7b38da2.js +0 -2
- package/amd/usePressClick-b7b38da2.js.map +0 -1
- package/amd/useSelectCommon-fd0e7664.js +0 -2
- package/amd/useSelectCommon-fd0e7664.js.map +0 -1
- package/amd/useSelectDrill-332195a7.js +0 -2
- package/amd/useSelectDrill-332195a7.js.map +0 -1
- package/amd/useSelection-04d131fa.js +0 -2
- package/amd/useSelection-04d131fa.js.map +0 -1
- package/amd/useVisDragModeControls-69001c64.js +0 -2
- package/amd/useVisDragModeControls-69001c64.js.map +0 -1
- package/cjs/BarChart-fae84003.js +0 -181
- package/cjs/BarChart-fae84003.js.map +0 -1
- package/cjs/BaseButton-97ec7696.js +0 -174
- package/cjs/BaseButton-97ec7696.js.map +0 -1
- package/cjs/BaseCardView-0be36db0.js +0 -687
- package/cjs/BaseCardView-0be36db0.js.map +0 -1
- package/cjs/BaseCardViewSelectionTest-d91b3015.js +0 -734
- package/cjs/BaseCardViewSelectionTest-d91b3015.js.map +0 -1
- package/cjs/BaseRichSelection-e2a38380.js +0 -344
- package/cjs/BaseRichSelection-e2a38380.js.map +0 -1
- package/cjs/Button-371573d5.js +0 -24
- package/cjs/Button-371573d5.js.map +0 -1
- package/cjs/ButtonSetButton-c6621073.js +0 -35
- package/cjs/ButtonSetButton-c6621073.js.map +0 -1
- package/cjs/ButtonSetIconButton-8645f3a5.js +0 -42
- package/cjs/ButtonSetIconButton-8645f3a5.js.map +0 -1
- package/cjs/ButtonSetItem-aa4211b4.js +0 -67
- package/cjs/ButtonSetItem-aa4211b4.js.map +0 -1
- package/cjs/CardFlexView-2547fc13.js +0 -29
- package/cjs/CardFlexView-2547fc13.js.map +0 -1
- package/cjs/CardGridView-c355e9d4.js +0 -17
- package/cjs/CardGridView-c355e9d4.js.map +0 -1
- package/cjs/Chart-b79289a8.js +0 -493
- package/cjs/Chart-b79289a8.js.map +0 -1
- package/cjs/Checkbox-5bfd221f.js +0 -106
- package/cjs/Checkbox-5bfd221f.js.map +0 -1
- package/cjs/CheckboxControl-3be46530.js +0 -111
- package/cjs/CheckboxControl-3be46530.js.map +0 -1
- package/cjs/CheckboxRadioField-037cddb9.js +0 -185
- package/cjs/CheckboxRadioField-037cddb9.js.map +0 -1
- package/cjs/ClearIcon-02e093be.js +0 -23
- package/cjs/ClearIcon-02e093be.js.map +0 -1
- package/cjs/ComboChart-e17d5863.js +0 -174
- package/cjs/ComboChart-e17d5863.js.map +0 -1
- package/cjs/CompactUserAssistance-b3c3929e.js +0 -49
- package/cjs/CompactUserAssistance-b3c3929e.js.map +0 -1
- package/cjs/ComponentMessageContainer-1cea67f6.js +0 -71
- package/cjs/ComponentMessageContainer-1cea67f6.js.map +0 -1
- package/cjs/ConveyorBeltItem-2577c86d.js +0 -641
- package/cjs/ConveyorBeltItem-2577c86d.js.map +0 -1
- package/cjs/DatePicker-c770df48.js +0 -566
- package/cjs/DatePicker-c770df48.js.map +0 -1
- package/cjs/DatePickerHeader-da8173f7.js +0 -46
- package/cjs/DatePickerHeader-da8173f7.js.map +0 -1
- package/cjs/Diagram-c4064fd7.js +0 -2037
- package/cjs/Diagram-c4064fd7.js.map +0 -1
- package/cjs/Dialog-c6c8024c.js +0 -346
- package/cjs/Dialog-c6c8024c.js.map +0 -1
- package/cjs/EmbeddedIconButton-89616e5f.js +0 -13
- package/cjs/EmbeddedIconButton-89616e5f.js.map +0 -1
- package/cjs/ExpandableList-d1823448.js +0 -169
- package/cjs/ExpandableList-d1823448.js.map +0 -1
- package/cjs/Gantt-674a89f8.js +0 -3819
- package/cjs/Gantt-674a89f8.js.map +0 -1
- package/cjs/IconButton-e7a68b4b.js +0 -39
- package/cjs/IconButton-e7a68b4b.js.map +0 -1
- package/cjs/IconMenuButton-3e540f38.js +0 -58
- package/cjs/IconMenuButton-3e540f38.js.map +0 -1
- package/cjs/IconProgressButton-3aa70c31.js +0 -49
- package/cjs/IconProgressButton-3aa70c31.js.map +0 -1
- package/cjs/IconSwitchButton-6bab813f.js +0 -46
- package/cjs/IconSwitchButton-6bab813f.js.map +0 -1
- package/cjs/IconToggleButton-7ec8c084.js +0 -45
- package/cjs/IconToggleButton-7ec8c084.js.map +0 -1
- package/cjs/Indexer-099ecbad.js +0 -339
- package/cjs/Indexer-099ecbad.js.map +0 -1
- package/cjs/InlineUserAssistance-5d6bac7a.js +0 -85
- package/cjs/InlineUserAssistance-5d6bac7a.js.map +0 -1
- package/cjs/InputDateMask-946f6dfa.js +0 -1060
- package/cjs/InputDateMask-946f6dfa.js.map +0 -1
- package/cjs/InputDatePicker-3dace90c.js +0 -309
- package/cjs/InputDatePicker-3dace90c.js.map +0 -1
- package/cjs/InputPassword-564260d2.js +0 -157
- package/cjs/InputPassword-564260d2.js.map +0 -1
- package/cjs/InputText-a9d46813.js +0 -199
- package/cjs/InputText-a9d46813.js.map +0 -1
- package/cjs/Label-2e05c87f.js +0 -85
- package/cjs/Label-2e05c87f.js.map +0 -1
- package/cjs/LineAreaChart-523ae108.js +0 -172
- package/cjs/LineAreaChart-523ae108.js.map +0 -1
- package/cjs/Link-a829e7f1.js +0 -35
- package/cjs/Link-a829e7f1.js.map +0 -1
- package/cjs/List-24abb3df.js +0 -722
- package/cjs/List-24abb3df.js.map +0 -1
- package/cjs/ListView-7e894199.js +0 -430
- package/cjs/ListView-7e894199.js.map +0 -1
- package/cjs/LoadMoreCollection-69bc038c.js +0 -34
- package/cjs/LoadMoreCollection-69bc038c.js.map +0 -1
- package/cjs/MenuButton-b811e5e4.js +0 -63
- package/cjs/MenuButton-b811e5e4.js.map +0 -1
- package/cjs/Message-d1d5538e.js +0 -208
- package/cjs/Message-d1d5538e.js.map +0 -1
- package/cjs/MessageToast-9154f05f.js +0 -243
- package/cjs/MessageToast-9154f05f.js.map +0 -1
- package/cjs/MonthView-35623a0e.js +0 -210
- package/cjs/MonthView-35623a0e.js.map +0 -1
- package/cjs/NavigationListItem-9b3d3258.js +0 -153
- package/cjs/NavigationListItem-9b3d3258.js.map +0 -1
- package/cjs/NumberInputText-6032717d.js +0 -223
- package/cjs/NumberInputText-6032717d.js.map +0 -1
- package/cjs/OverflowTabBar-794b4c93.js +0 -71
- package/cjs/OverflowTabBar-794b4c93.js.map +0 -1
- package/cjs/OverflowTabBarItem-43956479.js +0 -88
- package/cjs/OverflowTabBarItem-43956479.js.map +0 -1
- package/cjs/PictoChart-b650c050.js +0 -747
- package/cjs/PictoChart-b650c050.js.map +0 -1
- package/cjs/ProgressButton-1a01d49b.js +0 -58
- package/cjs/ProgressButton-1a01d49b.js.map +0 -1
- package/cjs/RadioItem-68304596.js +0 -115
- package/cjs/RadioItem-68304596.js.map +0 -1
- package/cjs/RadioSet-a16f664b.js +0 -45
- package/cjs/RadioSet-a16f664b.js.map +0 -1
- package/cjs/RemovableNavigationListItem-b13b3516.js +0 -26
- package/cjs/RemovableNavigationListItem-b13b3516.js.map +0 -1
- package/cjs/RemovableTabBarItem-e71b7be3.js +0 -38
- package/cjs/RemovableTabBarItem-e71b7be3.js.map +0 -1
- package/cjs/RevealToggleIcon-06b0b035.js +0 -28
- package/cjs/RevealToggleIcon-06b0b035.js.map +0 -1
- package/cjs/ScatterChart-bd2e0ebb.js +0 -105
- package/cjs/ScatterChart-bd2e0ebb.js.map +0 -1
- package/cjs/SelectMultiple-0d809f25.js +0 -1299
- package/cjs/SelectMultiple-0d809f25.js.map +0 -1
- package/cjs/SelectSingle-f5dd375a.js +0 -732
- package/cjs/SelectSingle-f5dd375a.js.map +0 -1
- package/cjs/SplitMenuButton-e7fd9b79.js +0 -141
- package/cjs/SplitMenuButton-e7fd9b79.js.map +0 -1
- package/cjs/Table-65e94df9.js +0 -5499
- package/cjs/Table-65e94df9.js.map +0 -1
- package/cjs/TableView-dfc37f9f.js +0 -33
- package/cjs/TableView-dfc37f9f.js.map +0 -1
- package/cjs/TagCloud-0aee2c72.js +0 -826
- package/cjs/TagCloud-0aee2c72.js.map +0 -1
- package/cjs/TextArea-a11875f3.js +0 -162
- package/cjs/TextArea-a11875f3.js.map +0 -1
- package/cjs/TextAreaAutosize-5a8e8335.js +0 -246
- package/cjs/TextAreaAutosize-5a8e8335.js.map +0 -1
- package/cjs/TimeComponentCanvas2D-e6be22d4.js +0 -591
- package/cjs/TimeComponentCanvas2D-e6be22d4.js.map +0 -1
- package/cjs/ToggleButton-8ac0ff29.js +0 -30
- package/cjs/ToggleButton-8ac0ff29.js.map +0 -1
- package/cjs/VirtualizedCollection-9e8c48b9.js +0 -180
- package/cjs/VirtualizedCollection-9e8c48b9.js.map +0 -1
- package/cjs/VirtualizedListView-0a4f07ca.js +0 -16
- package/cjs/VirtualizedListView-0a4f07ca.js.map +0 -1
- package/cjs/YearsGridView-83c7e684.js +0 -190
- package/cjs/YearsGridView-83c7e684.js.map +0 -1
- package/cjs/useCellNavigation-7a24d0c0.js +0 -129
- package/cjs/useCellNavigation-7a24d0c0.js.map +0 -1
- package/cjs/useChartMarquee-7c09d6ef.js +0 -295
- package/cjs/useChartMarquee-7c09d6ef.js.map +0 -1
- package/cjs/usePressClick-421494df.js +0 -33
- package/cjs/usePressClick-421494df.js.map +0 -1
- package/cjs/useSelectCommon-d593ef26.js +0 -709
- package/cjs/useSelectCommon-d593ef26.js.map +0 -1
- package/cjs/useSelectDrill-ddca7003.js +0 -107
- package/cjs/useSelectDrill-ddca7003.js.map +0 -1
- package/cjs/useSelection-810ecdc6.js +0 -188
- package/cjs/useSelection-810ecdc6.js.map +0 -1
- package/cjs/useVisDragModeControls-388926ea.js +0 -89
- package/cjs/useVisDragModeControls-388926ea.js.map +0 -1
- package/es/BarChart-bbc688ef.js +0 -179
- package/es/BarChart-bbc688ef.js.map +0 -1
- package/es/BaseButton-a0534b4d.js +0 -172
- package/es/BaseButton-a0534b4d.js.map +0 -1
- package/es/BaseCardViewSelectionTest-2e5f019a.js +0 -721
- package/es/BaseCardViewSelectionTest-2e5f019a.js.map +0 -1
- package/es/BaseNavigationListItem-af84a9ee.js +0 -119
- package/es/BaseNavigationListItem-af84a9ee.js.map +0 -1
- package/es/BaseRichSelection-9f2f2b59.js +0 -342
- package/es/BaseRichSelection-9f2f2b59.js.map +0 -1
- package/es/Button-f55c264d.js +0 -22
- package/es/Button-f55c264d.js.map +0 -1
- package/es/ButtonSetButton-226c9e73.js +0 -33
- package/es/ButtonSetButton-226c9e73.js.map +0 -1
- package/es/ButtonSetIconButton-2a046c9c.js +0 -40
- package/es/ButtonSetIconButton-2a046c9c.js.map +0 -1
- package/es/ButtonSetItem-43ef9553.js +0 -65
- package/es/ButtonSetItem-43ef9553.js.map +0 -1
- package/es/Card-f3b7c723.js +0 -15
- package/es/Card-f3b7c723.js.map +0 -1
- package/es/Center-76b761ea.js +0 -16
- package/es/Center-76b761ea.js.map +0 -1
- package/es/Chart-6291ad48.js +0 -491
- package/es/Chart-6291ad48.js.map +0 -1
- package/es/Checkbox-34816a7d.js +0 -104
- package/es/Checkbox-34816a7d.js.map +0 -1
- package/es/CheckboxControl-a9d4d9d5.js +0 -109
- package/es/CheckboxControl-a9d4d9d5.js.map +0 -1
- package/es/CheckboxRadioField-922ab9ff.js +0 -183
- package/es/CheckboxRadioField-922ab9ff.js.map +0 -1
- package/es/CheckboxSet-28953b25.js +0 -49
- package/es/CheckboxSet-28953b25.js.map +0 -1
- package/es/ClearIcon-29781882.js +0 -21
- package/es/ClearIcon-29781882.js.map +0 -1
- package/es/ComboChart-4738f936.js +0 -172
- package/es/ComboChart-4738f936.js.map +0 -1
- package/es/CompactLabelAssistance-fd3fb481.js +0 -34
- package/es/CompactLabelAssistance-fd3fb481.js.map +0 -1
- package/es/CompactUserAssistance-bd24e31a.js +0 -47
- package/es/CompactUserAssistance-bd24e31a.js.map +0 -1
- package/es/ComponentMessageContainer-6c106a09.js +0 -68
- package/es/ComponentMessageContainer-6c106a09.js.map +0 -1
- package/es/ConveyorBeltItem-ce67a451.js +0 -638
- package/es/ConveyorBeltItem-ce67a451.js.map +0 -1
- package/es/DatePicker-e7f2ef3c.js +0 -564
- package/es/DatePicker-e7f2ef3c.js.map +0 -1
- package/es/DatePickerHeader-9c0d4332.js +0 -44
- package/es/DatePickerHeader-9c0d4332.js.map +0 -1
- package/es/Diagram-b1f6a590.js +0 -2035
- package/es/Diagram-b1f6a590.js.map +0 -1
- package/es/Dialog-0ca362cc.js +0 -344
- package/es/Dialog-0ca362cc.js.map +0 -1
- package/es/DragHandle-99d4c921.js +0 -22
- package/es/DragHandle-99d4c921.js.map +0 -1
- package/es/DrawerPopup-9cdb203a.js +0 -381
- package/es/DrawerPopup-9cdb203a.js.map +0 -1
- package/es/Dropdown-60833900.js +0 -80
- package/es/Dropdown-60833900.js.map +0 -1
- package/es/EmbeddedIconButton-0c3562a1.js +0 -11
- package/es/EmbeddedIconButton-0c3562a1.js.map +0 -1
- package/es/EnvironmentProvider-bada8909.js +0 -58
- package/es/EnvironmentProvider-bada8909.js.map +0 -1
- package/es/ExpandableList-cbf9ae2c.js +0 -167
- package/es/ExpandableList-cbf9ae2c.js.map +0 -1
- package/es/Flex-ce31b351.js +0 -30
- package/es/Flex-ce31b351.js.map +0 -1
- package/es/Floating-f02677ba.js +0 -462
- package/es/Floating-f02677ba.js.map +0 -1
- package/es/Gantt-5a395647.js +0 -3817
- package/es/Gantt-5a395647.js.map +0 -1
- package/es/Grid-421eb560.js +0 -27
- package/es/Grid-421eb560.js.map +0 -1
- package/es/Gridlines-6098cb5b.js +0 -168
- package/es/Gridlines-6098cb5b.js.map +0 -1
- package/es/HighlightText-86d92552.js +0 -31
- package/es/HighlightText-86d92552.js.map +0 -1
- package/es/IconButton-f3f7af21.js +0 -37
- package/es/IconButton-f3f7af21.js.map +0 -1
- package/es/IconMenuButton-48909b85.js +0 -56
- package/es/IconMenuButton-48909b85.js.map +0 -1
- package/es/IconProgressButton-1c4d65c3.js +0 -47
- package/es/IconProgressButton-1c4d65c3.js.map +0 -1
- package/es/IconSwitchButton-5db4ae26.js +0 -44
- package/es/IconSwitchButton-5db4ae26.js.map +0 -1
- package/es/IconToggleButton-be6c0ba1.js +0 -43
- package/es/IconToggleButton-be6c0ba1.js.map +0 -1
- package/es/IconUserAssistance-92be9618.js +0 -73
- package/es/IconUserAssistance-92be9618.js.map +0 -1
- package/es/InlineUserAssistance-2677a1eb.js +0 -81
- package/es/InlineUserAssistance-2677a1eb.js.map +0 -1
- package/es/InputDateMask-76493bee.js +0 -1056
- package/es/InputDateMask-76493bee.js.map +0 -1
- package/es/InputDatePicker-836ee6f7.js +0 -307
- package/es/InputDatePicker-836ee6f7.js.map +0 -1
- package/es/InputPassword-fa63ac17.js +0 -155
- package/es/InputPassword-fa63ac17.js.map +0 -1
- package/es/InputText-ce2272a8.js +0 -197
- package/es/InputText-ce2272a8.js.map +0 -1
- package/es/Label-56ca049f.js +0 -83
- package/es/Label-56ca049f.js.map +0 -1
- package/es/Layer-446bf21e.js +0 -91
- package/es/Layer-446bf21e.js.map +0 -1
- package/es/LayerHost-e6402730.js +0 -41
- package/es/LayerHost-e6402730.js.map +0 -1
- package/es/LayerManager-fa745cec.js +0 -34
- package/es/LayerManager-fa745cec.js.map +0 -1
- package/es/LineAreaChart-d3586935.js +0 -170
- package/es/LineAreaChart-d3586935.js.map +0 -1
- package/es/LineSeries-fc167ea2.js +0 -109
- package/es/LineSeries-fc167ea2.js.map +0 -1
- package/es/Link-98742013.js +0 -33
- package/es/Link-98742013.js.map +0 -1
- package/es/ListItemLayout-e9854821.js +0 -110
- package/es/ListItemLayout-e9854821.js.map +0 -1
- package/es/LiveRegion-b56a1aa2.js +0 -39
- package/es/LiveRegion-b56a1aa2.js.map +0 -1
- package/es/MaxLengthCounter-181b4fc9.js +0 -25
- package/es/MaxLengthCounter-181b4fc9.js.map +0 -1
- package/es/MaxLengthLiveRegion-2f3d34cf.js +0 -23
- package/es/MaxLengthLiveRegion-2f3d34cf.js.map +0 -1
- package/es/MenuButton-c00e269e.js +0 -61
- package/es/MenuButton-c00e269e.js.map +0 -1
- package/es/Message-b9e16c1c.js +0 -203
- package/es/Message-b9e16c1c.js.map +0 -1
- package/es/MessageLayer-7e3184aa.js +0 -58
- package/es/MessageLayer-7e3184aa.js.map +0 -1
- package/es/MessageToast-f9b0a234.js +0 -241
- package/es/MessageToast-f9b0a234.js.map +0 -1
- package/es/Modal-24a0bf4b.js +0 -288
- package/es/Modal-24a0bf4b.js.map +0 -1
- package/es/MonthView-5e633194.js +0 -208
- package/es/MonthView-5e633194.js.map +0 -1
- package/es/NavigationListItem-37edc23b.js +0 -150
- package/es/NavigationListItem-37edc23b.js.map +0 -1
- package/es/NumberInputText-f5d01daa.js +0 -220
- package/es/NumberInputText-f5d01daa.js.map +0 -1
- package/es/OverflowTabBar-87b36877.js +0 -69
- package/es/OverflowTabBar-87b36877.js.map +0 -1
- package/es/OverflowTabBarItem-a2684d2b.js +0 -86
- package/es/OverflowTabBarItem-a2684d2b.js.map +0 -1
- package/es/PictoChart-5b71908b.js +0 -744
- package/es/PictoChart-5b71908b.js.map +0 -1
- package/es/Popup-d8bf7f4d.js +0 -258
- package/es/Popup-d8bf7f4d.js.map +0 -1
- package/es/ProgressBar-2fa99d6f.js +0 -62
- package/es/ProgressBar-2fa99d6f.js.map +0 -1
- package/es/ProgressButton-9390070e.js +0 -56
- package/es/ProgressButton-9390070e.js.map +0 -1
- package/es/ProgressCircle-faf79b79.js +0 -48
- package/es/ProgressCircle-faf79b79.js.map +0 -1
- package/es/RadioItem-96cbf0ed.js +0 -113
- package/es/RadioItem-96cbf0ed.js.map +0 -1
- package/es/RadioSet-c51b3d56.js +0 -43
- package/es/RadioSet-c51b3d56.js.map +0 -1
- package/es/RemovableNavigationListItem-517d59b0.js +0 -24
- package/es/RemovableNavigationListItem-517d59b0.js.map +0 -1
- package/es/RemovableTabBarItem-87ba87ca.js +0 -36
- package/es/RemovableTabBarItem-87ba87ca.js.map +0 -1
- package/es/ReorderableTabBar-fc76a33b.js +0 -77
- package/es/ReorderableTabBar-fc76a33b.js.map +0 -1
- package/es/RevealToggleIcon-35baaadf.js +0 -26
- package/es/RevealToggleIcon-35baaadf.js.map +0 -1
- package/es/ScatterChart-449ec029.js +0 -103
- package/es/ScatterChart-449ec029.js.map +0 -1
- package/es/SectionedContent-3274d8f9.js +0 -64
- package/es/SectionedContent-3274d8f9.js.map +0 -1
- package/es/SelectMultiple-50995ef7.js +0 -1297
- package/es/SelectMultiple-50995ef7.js.map +0 -1
- package/es/SelectSingle-dcf0e9b1.js +0 -730
- package/es/SelectSingle-dcf0e9b1.js.map +0 -1
- package/es/SelectionCard-1ed9cf08.js +0 -16
- package/es/SelectionCard-1ed9cf08.js.map +0 -1
- package/es/SelectorAll-f52550a6.js +0 -69
- package/es/SelectorAll-f52550a6.js.map +0 -1
- package/es/Sheet-da412baf.js +0 -158
- package/es/Sheet-da412baf.js.map +0 -1
- package/es/SplitMenuButton-f44064de.js +0 -139
- package/es/SplitMenuButton-f44064de.js.map +0 -1
- package/es/StyledCard-362bd74b.js +0 -105
- package/es/StyledCard-362bd74b.js.map +0 -1
- package/es/StyledLabelValueLayout-d4881d3b.js +0 -18
- package/es/StyledLabelValueLayout-d4881d3b.js.map +0 -1
- package/es/TabBar-2858ff9c.js +0 -77
- package/es/TabBar-2858ff9c.js.map +0 -1
- package/es/TabBarMixed-a4beabce.js +0 -78
- package/es/TabBarMixed-a4beabce.js.map +0 -1
- package/es/TabBarMixedSeparator-51c518a1.js +0 -19
- package/es/TabBarMixedSeparator-51c518a1.js.map +0 -1
- package/es/Table-9919625b.js +0 -5497
- package/es/Table-9919625b.js.map +0 -1
- package/es/TableView-c97ef8ee.js +0 -31
- package/es/TableView-c97ef8ee.js.map +0 -1
- package/es/TagCloud-3f81d651.js +0 -824
- package/es/TagCloud-3f81d651.js.map +0 -1
- package/es/TextArea-2eb362ec.js +0 -160
- package/es/TextArea-2eb362ec.js.map +0 -1
- package/es/TextAreaAutosize-35a923c3.js +0 -244
- package/es/TextAreaAutosize-35a923c3.js.map +0 -1
- package/es/TimeComponentCanvas2D-9fd1f811.js +0 -568
- package/es/TimeComponentCanvas2D-9fd1f811.js.map +0 -1
- package/es/ToggleButton-cf8226d9.js +0 -28
- package/es/ToggleButton-cf8226d9.js.map +0 -1
- package/es/View-afe98b65.js +0 -167
- package/es/View-afe98b65.js.map +0 -1
- package/es/VisNoData-9ceb58f4.js +0 -32
- package/es/VisNoData-9ceb58f4.js.map +0 -1
- package/es/VisProgressiveLoader-36c728ac.js +0 -51
- package/es/VisProgressiveLoader-36c728ac.js.map +0 -1
- package/es/VisTabularDatatip-59629377.js +0 -24
- package/es/VisTabularDatatip-59629377.js.map +0 -1
- package/es/WindowOverlay-a07b2e24.js +0 -110
- package/es/WindowOverlay-a07b2e24.js.map +0 -1
- package/es/YearsGridView-d859edba.js +0 -187
- package/es/YearsGridView-d859edba.js.map +0 -1
- package/es/index-e33bcd96.js +0 -11
- package/es/index-e33bcd96.js.map +0 -1
- package/es/popupUtils-58411a98.js +0 -29
- package/es/popupUtils-58411a98.js.map +0 -1
- package/es/render-343557e9.js +0 -34
- package/es/render-343557e9.js.map +0 -1
- package/es/tabbableUtils-d6485f5e.js +0 -79
- package/es/tabbableUtils-d6485f5e.js.map +0 -1
- package/es/testData-d5181e9f.js +0 -256
- package/es/testData-d5181e9f.js.map +0 -1
- package/es/tooltipUtils-768450a7.js +0 -93
- package/es/tooltipUtils-768450a7.js.map +0 -1
- package/es/useCellNavigation-88a1754f.js +0 -126
- package/es/useCellNavigation-88a1754f.js.map +0 -1
- package/es/useChartDatatip-d6a6c5e1.js +0 -165
- package/es/useChartDatatip-d6a6c5e1.js.map +0 -1
- package/es/useChartMarquee-6587dbec.js +0 -293
- package/es/useChartMarquee-6587dbec.js.map +0 -1
- package/es/useColorScheme-c4e237ad.js +0 -19
- package/es/useColorScheme-c4e237ad.js.map +0 -1
- package/es/useCssVars-d72a8439.js +0 -58
- package/es/useCssVars-d72a8439.js.map +0 -1
- package/es/useCurrentBgColor-14745af3.js +0 -19
- package/es/useCurrentBgColor-14745af3.js.map +0 -1
- package/es/useCurrentKey-7287061f.js +0 -81
- package/es/useCurrentKey-7287061f.js.map +0 -1
- package/es/useDatatip-9635bc2f.js +0 -90
- package/es/useDatatip-9635bc2f.js.map +0 -1
- package/es/useDensity-c17603b2.js +0 -19
- package/es/useDensity-c17603b2.js.map +0 -1
- package/es/useFloating-953362cf.js +0 -1916
- package/es/useFloating-953362cf.js.map +0 -1
- package/es/useKeyboardEvents-2378a650.js +0 -78
- package/es/useKeyboardEvents-2378a650.js.map +0 -1
- package/es/useMeterDatatip-834e67e1.js +0 -73
- package/es/useMeterDatatip-834e67e1.js.map +0 -1
- package/es/useOutsideClick-fd9ad806.js +0 -101
- package/es/useOutsideClick-fd9ad806.js.map +0 -1
- package/es/usePopupAnimation-f017bc43.js +0 -85
- package/es/usePopupAnimation-f017bc43.js.map +0 -1
- package/es/usePrefixSuffix-5a74f2c4.js +0 -70
- package/es/usePrefixSuffix-5a74f2c4.js.map +0 -1
- package/es/usePressClick-2ec8e098.js +0 -31
- package/es/usePressClick-2ec8e098.js.map +0 -1
- package/es/useReorderableItem-22ea4c46.js +0 -268
- package/es/useReorderableItem-22ea4c46.js.map +0 -1
- package/es/useRovingTabIndexContainer-bc7ae447.js +0 -98
- package/es/useRovingTabIndexContainer-bc7ae447.js.map +0 -1
- package/es/useScale-83881775.js +0 -19
- package/es/useScale-83881775.js.map +0 -1
- package/es/useSelectCommon-34645d9a.js +0 -686
- package/es/useSelectCommon-34645d9a.js.map +0 -1
- package/es/useSelectDrill-88337c1a.js +0 -104
- package/es/useSelectDrill-88337c1a.js.map +0 -1
- package/es/useSelection-01b28be6.js +0 -186
- package/es/useSelection-01b28be6.js.map +0 -1
- package/es/useSelection-649fd4f1.js +0 -239
- package/es/useSelection-649fd4f1.js.map +0 -1
- package/es/useTestId-9b504481.js +0 -21
- package/es/useTestId-9b504481.js.map +0 -1
- package/es/useTheme-93c07059.js +0 -19
- package/es/useTheme-93c07059.js.map +0 -1
- package/es/useThemeInterpolations-8dd8029f.js +0 -57
- package/es/useThemeInterpolations-8dd8029f.js.map +0 -1
- package/es/useTooltip-89ca3f3e.js +0 -424
- package/es/useTooltip-89ca3f3e.js.map +0 -1
- package/es/useTooltipOnTruncation-175bf8a6.js +0 -27
- package/es/useTooltipOnTruncation-175bf8a6.js.map +0 -1
- package/es/useTranslationBundle-09302c20.js +0 -29
- package/es/useTranslationBundle-09302c20.js.map +0 -1
- package/es/useUser-1cd223a9.js +0 -19
- package/es/useUser-1cd223a9.js.map +0 -1
- package/es/useVisDragModeControls-40fc83b5.js +0 -87
- package/es/useVisDragModeControls-40fc83b5.js.map +0 -1
- package/es/useVisEvents-8877743b.js +0 -153
- package/es/useVisEvents-8877743b.js.map +0 -1
- package/es/withDirectionIcon-19a1d777.js +0 -14
- package/es/withDirectionIcon-19a1d777.js.map +0 -1
|
@@ -0,0 +1,1916 @@
|
|
|
1
|
+
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
+
import { useMemo, useRef, useState, useCallback, useLayoutEffect } from 'preact/hooks';
|
|
3
|
+
import { u as useUser } from './useUser-6b2e271a.js';
|
|
4
|
+
import { n as normalizePosition, r as reverseNormalizePosition } from './positionUtils-f26caad9.js';
|
|
5
|
+
|
|
6
|
+
const min = Math.min;
|
|
7
|
+
const max = Math.max;
|
|
8
|
+
const round = Math.round;
|
|
9
|
+
const floor = Math.floor;
|
|
10
|
+
const createCoords = v => ({
|
|
11
|
+
x: v,
|
|
12
|
+
y: v
|
|
13
|
+
});
|
|
14
|
+
const oppositeSideMap = {
|
|
15
|
+
left: 'right',
|
|
16
|
+
right: 'left',
|
|
17
|
+
bottom: 'top',
|
|
18
|
+
top: 'bottom'
|
|
19
|
+
};
|
|
20
|
+
const oppositeAlignmentMap = {
|
|
21
|
+
start: 'end',
|
|
22
|
+
end: 'start'
|
|
23
|
+
};
|
|
24
|
+
function clamp(start, value, end) {
|
|
25
|
+
return max(start, min(value, end));
|
|
26
|
+
}
|
|
27
|
+
function evaluate(value, param) {
|
|
28
|
+
return typeof value === 'function' ? value(param) : value;
|
|
29
|
+
}
|
|
30
|
+
function getSide(placement) {
|
|
31
|
+
return placement.split('-')[0];
|
|
32
|
+
}
|
|
33
|
+
function getAlignment(placement) {
|
|
34
|
+
return placement.split('-')[1];
|
|
35
|
+
}
|
|
36
|
+
function getOppositeAxis(axis) {
|
|
37
|
+
return axis === 'x' ? 'y' : 'x';
|
|
38
|
+
}
|
|
39
|
+
function getAxisLength(axis) {
|
|
40
|
+
return axis === 'y' ? 'height' : 'width';
|
|
41
|
+
}
|
|
42
|
+
function getSideAxis(placement) {
|
|
43
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
44
|
+
}
|
|
45
|
+
function getAlignmentAxis(placement) {
|
|
46
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
47
|
+
}
|
|
48
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
49
|
+
if (rtl === void 0) {
|
|
50
|
+
rtl = false;
|
|
51
|
+
}
|
|
52
|
+
const alignment = getAlignment(placement);
|
|
53
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
54
|
+
const length = getAxisLength(alignmentAxis);
|
|
55
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
56
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
57
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
58
|
+
}
|
|
59
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
60
|
+
}
|
|
61
|
+
function getExpandedPlacements(placement) {
|
|
62
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
63
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
64
|
+
}
|
|
65
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
66
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
67
|
+
}
|
|
68
|
+
function getSideList(side, isStart, rtl) {
|
|
69
|
+
const lr = ['left', 'right'];
|
|
70
|
+
const rl = ['right', 'left'];
|
|
71
|
+
const tb = ['top', 'bottom'];
|
|
72
|
+
const bt = ['bottom', 'top'];
|
|
73
|
+
switch (side) {
|
|
74
|
+
case 'top':
|
|
75
|
+
case 'bottom':
|
|
76
|
+
if (rtl) return isStart ? rl : lr;
|
|
77
|
+
return isStart ? lr : rl;
|
|
78
|
+
case 'left':
|
|
79
|
+
case 'right':
|
|
80
|
+
return isStart ? tb : bt;
|
|
81
|
+
default:
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
86
|
+
const alignment = getAlignment(placement);
|
|
87
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
88
|
+
if (alignment) {
|
|
89
|
+
list = list.map(side => side + "-" + alignment);
|
|
90
|
+
if (flipAlignment) {
|
|
91
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return list;
|
|
95
|
+
}
|
|
96
|
+
function getOppositePlacement(placement) {
|
|
97
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
98
|
+
}
|
|
99
|
+
function expandPaddingObject(padding) {
|
|
100
|
+
return {
|
|
101
|
+
top: 0,
|
|
102
|
+
right: 0,
|
|
103
|
+
bottom: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
...padding
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function getPaddingObject(padding) {
|
|
109
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
110
|
+
top: padding,
|
|
111
|
+
right: padding,
|
|
112
|
+
bottom: padding,
|
|
113
|
+
left: padding
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function rectToClientRect(rect) {
|
|
117
|
+
return {
|
|
118
|
+
...rect,
|
|
119
|
+
top: rect.y,
|
|
120
|
+
left: rect.x,
|
|
121
|
+
right: rect.x + rect.width,
|
|
122
|
+
bottom: rect.y + rect.height
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
127
|
+
let {
|
|
128
|
+
reference,
|
|
129
|
+
floating
|
|
130
|
+
} = _ref;
|
|
131
|
+
const sideAxis = getSideAxis(placement);
|
|
132
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
133
|
+
const alignLength = getAxisLength(alignmentAxis);
|
|
134
|
+
const side = getSide(placement);
|
|
135
|
+
const isVertical = sideAxis === 'y';
|
|
136
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
137
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
138
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
139
|
+
let coords;
|
|
140
|
+
switch (side) {
|
|
141
|
+
case 'top':
|
|
142
|
+
coords = {
|
|
143
|
+
x: commonX,
|
|
144
|
+
y: reference.y - floating.height
|
|
145
|
+
};
|
|
146
|
+
break;
|
|
147
|
+
case 'bottom':
|
|
148
|
+
coords = {
|
|
149
|
+
x: commonX,
|
|
150
|
+
y: reference.y + reference.height
|
|
151
|
+
};
|
|
152
|
+
break;
|
|
153
|
+
case 'right':
|
|
154
|
+
coords = {
|
|
155
|
+
x: reference.x + reference.width,
|
|
156
|
+
y: commonY
|
|
157
|
+
};
|
|
158
|
+
break;
|
|
159
|
+
case 'left':
|
|
160
|
+
coords = {
|
|
161
|
+
x: reference.x - floating.width,
|
|
162
|
+
y: commonY
|
|
163
|
+
};
|
|
164
|
+
break;
|
|
165
|
+
default:
|
|
166
|
+
coords = {
|
|
167
|
+
x: reference.x,
|
|
168
|
+
y: reference.y
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
switch (getAlignment(placement)) {
|
|
172
|
+
case 'start':
|
|
173
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
174
|
+
break;
|
|
175
|
+
case 'end':
|
|
176
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
return coords;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
184
|
+
* next to a reference element when it is given a certain positioning strategy.
|
|
185
|
+
*
|
|
186
|
+
* This export does not have any `platform` interface logic. You will need to
|
|
187
|
+
* write one for the platform you are using Floating UI with.
|
|
188
|
+
*/
|
|
189
|
+
const computePosition$1 = async (reference, floating, config) => {
|
|
190
|
+
const {
|
|
191
|
+
placement = 'bottom',
|
|
192
|
+
strategy = 'absolute',
|
|
193
|
+
middleware = [],
|
|
194
|
+
platform
|
|
195
|
+
} = config;
|
|
196
|
+
const validMiddleware = middleware.filter(Boolean);
|
|
197
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
198
|
+
let rects = await platform.getElementRects({
|
|
199
|
+
reference,
|
|
200
|
+
floating,
|
|
201
|
+
strategy
|
|
202
|
+
});
|
|
203
|
+
let {
|
|
204
|
+
x,
|
|
205
|
+
y
|
|
206
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
207
|
+
let statefulPlacement = placement;
|
|
208
|
+
let middlewareData = {};
|
|
209
|
+
let resetCount = 0;
|
|
210
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
|
211
|
+
const {
|
|
212
|
+
name,
|
|
213
|
+
fn
|
|
214
|
+
} = validMiddleware[i];
|
|
215
|
+
const {
|
|
216
|
+
x: nextX,
|
|
217
|
+
y: nextY,
|
|
218
|
+
data,
|
|
219
|
+
reset
|
|
220
|
+
} = await fn({
|
|
221
|
+
x,
|
|
222
|
+
y,
|
|
223
|
+
initialPlacement: placement,
|
|
224
|
+
placement: statefulPlacement,
|
|
225
|
+
strategy,
|
|
226
|
+
middlewareData,
|
|
227
|
+
rects,
|
|
228
|
+
platform,
|
|
229
|
+
elements: {
|
|
230
|
+
reference,
|
|
231
|
+
floating
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
x = nextX != null ? nextX : x;
|
|
235
|
+
y = nextY != null ? nextY : y;
|
|
236
|
+
middlewareData = {
|
|
237
|
+
...middlewareData,
|
|
238
|
+
[name]: {
|
|
239
|
+
...middlewareData[name],
|
|
240
|
+
...data
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
if (reset && resetCount <= 50) {
|
|
244
|
+
resetCount++;
|
|
245
|
+
if (typeof reset === 'object') {
|
|
246
|
+
if (reset.placement) {
|
|
247
|
+
statefulPlacement = reset.placement;
|
|
248
|
+
}
|
|
249
|
+
if (reset.rects) {
|
|
250
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
|
251
|
+
reference,
|
|
252
|
+
floating,
|
|
253
|
+
strategy
|
|
254
|
+
}) : reset.rects;
|
|
255
|
+
}
|
|
256
|
+
({
|
|
257
|
+
x,
|
|
258
|
+
y
|
|
259
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
260
|
+
}
|
|
261
|
+
i = -1;
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return {
|
|
266
|
+
x,
|
|
267
|
+
y,
|
|
268
|
+
placement: statefulPlacement,
|
|
269
|
+
strategy,
|
|
270
|
+
middlewareData
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
276
|
+
* element is overflowing a given clipping boundary on each side.
|
|
277
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
278
|
+
* - negative = how many pixels left before it will overflow
|
|
279
|
+
* - 0 = lies flush with the boundary
|
|
280
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
281
|
+
*/
|
|
282
|
+
async function detectOverflow(state, options) {
|
|
283
|
+
var _await$platform$isEle;
|
|
284
|
+
if (options === void 0) {
|
|
285
|
+
options = {};
|
|
286
|
+
}
|
|
287
|
+
const {
|
|
288
|
+
x,
|
|
289
|
+
y,
|
|
290
|
+
platform,
|
|
291
|
+
rects,
|
|
292
|
+
elements,
|
|
293
|
+
strategy
|
|
294
|
+
} = state;
|
|
295
|
+
const {
|
|
296
|
+
boundary = 'clippingAncestors',
|
|
297
|
+
rootBoundary = 'viewport',
|
|
298
|
+
elementContext = 'floating',
|
|
299
|
+
altBoundary = false,
|
|
300
|
+
padding = 0
|
|
301
|
+
} = evaluate(options, state);
|
|
302
|
+
const paddingObject = getPaddingObject(padding);
|
|
303
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
304
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
305
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
306
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
307
|
+
boundary,
|
|
308
|
+
rootBoundary,
|
|
309
|
+
strategy
|
|
310
|
+
}));
|
|
311
|
+
const rect = elementContext === 'floating' ? {
|
|
312
|
+
...rects.floating,
|
|
313
|
+
x,
|
|
314
|
+
y
|
|
315
|
+
} : rects.reference;
|
|
316
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
317
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
318
|
+
x: 1,
|
|
319
|
+
y: 1
|
|
320
|
+
} : {
|
|
321
|
+
x: 1,
|
|
322
|
+
y: 1
|
|
323
|
+
};
|
|
324
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
325
|
+
rect,
|
|
326
|
+
offsetParent,
|
|
327
|
+
strategy
|
|
328
|
+
}) : rect);
|
|
329
|
+
return {
|
|
330
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
331
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
332
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
333
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Provides data to position an inner element of the floating element so that it
|
|
339
|
+
* appears centered to the reference element.
|
|
340
|
+
* @see https://floating-ui.com/docs/arrow
|
|
341
|
+
*/
|
|
342
|
+
const arrow = options => ({
|
|
343
|
+
name: 'arrow',
|
|
344
|
+
options,
|
|
345
|
+
async fn(state) {
|
|
346
|
+
const {
|
|
347
|
+
x,
|
|
348
|
+
y,
|
|
349
|
+
placement,
|
|
350
|
+
rects,
|
|
351
|
+
platform,
|
|
352
|
+
elements
|
|
353
|
+
} = state;
|
|
354
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
355
|
+
const {
|
|
356
|
+
element,
|
|
357
|
+
padding = 0
|
|
358
|
+
} = evaluate(options, state) || {};
|
|
359
|
+
if (element == null) {
|
|
360
|
+
return {};
|
|
361
|
+
}
|
|
362
|
+
const paddingObject = getPaddingObject(padding);
|
|
363
|
+
const coords = {
|
|
364
|
+
x,
|
|
365
|
+
y
|
|
366
|
+
};
|
|
367
|
+
const axis = getAlignmentAxis(placement);
|
|
368
|
+
const length = getAxisLength(axis);
|
|
369
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
370
|
+
const isYAxis = axis === 'y';
|
|
371
|
+
const minProp = isYAxis ? 'top' : 'left';
|
|
372
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
373
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
374
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
375
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
376
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
377
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
378
|
+
|
|
379
|
+
// DOM platform can return `window` as the `offsetParent`.
|
|
380
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
381
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
382
|
+
}
|
|
383
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
384
|
+
|
|
385
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
|
386
|
+
// centered, modify the padding so that it is centered.
|
|
387
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
388
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
389
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
390
|
+
|
|
391
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
392
|
+
// point is outside the floating element's bounds.
|
|
393
|
+
const min$1 = minPadding;
|
|
394
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
395
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
396
|
+
const offset = clamp(min$1, center, max);
|
|
397
|
+
|
|
398
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
399
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
400
|
+
// floating element itself. This stops `shift()` from taking action, but can
|
|
401
|
+
// be worked around by calling it again after the `arrow()` if desired.
|
|
402
|
+
const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
403
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1 - center : max - center : 0;
|
|
404
|
+
return {
|
|
405
|
+
[axis]: coords[axis] - alignmentOffset,
|
|
406
|
+
data: {
|
|
407
|
+
[axis]: offset,
|
|
408
|
+
centerOffset: center - offset + alignmentOffset
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
416
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
417
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
418
|
+
* @see https://floating-ui.com/docs/flip
|
|
419
|
+
*/
|
|
420
|
+
const flip = function (options) {
|
|
421
|
+
if (options === void 0) {
|
|
422
|
+
options = {};
|
|
423
|
+
}
|
|
424
|
+
return {
|
|
425
|
+
name: 'flip',
|
|
426
|
+
options,
|
|
427
|
+
async fn(state) {
|
|
428
|
+
var _middlewareData$flip;
|
|
429
|
+
const {
|
|
430
|
+
placement,
|
|
431
|
+
middlewareData,
|
|
432
|
+
rects,
|
|
433
|
+
initialPlacement,
|
|
434
|
+
platform,
|
|
435
|
+
elements
|
|
436
|
+
} = state;
|
|
437
|
+
const {
|
|
438
|
+
mainAxis: checkMainAxis = true,
|
|
439
|
+
crossAxis: checkCrossAxis = true,
|
|
440
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
441
|
+
fallbackStrategy = 'bestFit',
|
|
442
|
+
fallbackAxisSideDirection = 'none',
|
|
443
|
+
flipAlignment = true,
|
|
444
|
+
...detectOverflowOptions
|
|
445
|
+
} = evaluate(options, state);
|
|
446
|
+
const side = getSide(placement);
|
|
447
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
448
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
449
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
450
|
+
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
|
451
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
452
|
+
}
|
|
453
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
454
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
455
|
+
const overflows = [];
|
|
456
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
457
|
+
if (checkMainAxis) {
|
|
458
|
+
overflows.push(overflow[side]);
|
|
459
|
+
}
|
|
460
|
+
if (checkCrossAxis) {
|
|
461
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
462
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
463
|
+
}
|
|
464
|
+
overflowsData = [...overflowsData, {
|
|
465
|
+
placement,
|
|
466
|
+
overflows
|
|
467
|
+
}];
|
|
468
|
+
|
|
469
|
+
// One or more sides is overflowing.
|
|
470
|
+
if (!overflows.every(side => side <= 0)) {
|
|
471
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
472
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
473
|
+
const nextPlacement = placements[nextIndex];
|
|
474
|
+
if (nextPlacement) {
|
|
475
|
+
// Try next placement and re-run the lifecycle.
|
|
476
|
+
return {
|
|
477
|
+
data: {
|
|
478
|
+
index: nextIndex,
|
|
479
|
+
overflows: overflowsData
|
|
480
|
+
},
|
|
481
|
+
reset: {
|
|
482
|
+
placement: nextPlacement
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
488
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
489
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
490
|
+
|
|
491
|
+
// Otherwise fallback.
|
|
492
|
+
if (!resetPlacement) {
|
|
493
|
+
switch (fallbackStrategy) {
|
|
494
|
+
case 'bestFit':
|
|
495
|
+
{
|
|
496
|
+
var _overflowsData$map$so;
|
|
497
|
+
const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
498
|
+
if (placement) {
|
|
499
|
+
resetPlacement = placement;
|
|
500
|
+
}
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
case 'initialPlacement':
|
|
504
|
+
resetPlacement = initialPlacement;
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
if (placement !== resetPlacement) {
|
|
509
|
+
return {
|
|
510
|
+
reset: {
|
|
511
|
+
placement: resetPlacement
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return {};
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
522
|
+
// Derivable.
|
|
523
|
+
async function convertValueToCoords(state, options) {
|
|
524
|
+
const {
|
|
525
|
+
placement,
|
|
526
|
+
platform,
|
|
527
|
+
elements
|
|
528
|
+
} = state;
|
|
529
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
530
|
+
const side = getSide(placement);
|
|
531
|
+
const alignment = getAlignment(placement);
|
|
532
|
+
const isVertical = getSideAxis(placement) === 'y';
|
|
533
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
534
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
535
|
+
const rawValue = evaluate(options, state);
|
|
536
|
+
|
|
537
|
+
// eslint-disable-next-line prefer-const
|
|
538
|
+
let {
|
|
539
|
+
mainAxis,
|
|
540
|
+
crossAxis,
|
|
541
|
+
alignmentAxis
|
|
542
|
+
} = typeof rawValue === 'number' ? {
|
|
543
|
+
mainAxis: rawValue,
|
|
544
|
+
crossAxis: 0,
|
|
545
|
+
alignmentAxis: null
|
|
546
|
+
} : {
|
|
547
|
+
mainAxis: 0,
|
|
548
|
+
crossAxis: 0,
|
|
549
|
+
alignmentAxis: null,
|
|
550
|
+
...rawValue
|
|
551
|
+
};
|
|
552
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
|
553
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
554
|
+
}
|
|
555
|
+
return isVertical ? {
|
|
556
|
+
x: crossAxis * crossAxisMulti,
|
|
557
|
+
y: mainAxis * mainAxisMulti
|
|
558
|
+
} : {
|
|
559
|
+
x: mainAxis * mainAxisMulti,
|
|
560
|
+
y: crossAxis * crossAxisMulti
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Modifies the placement by translating the floating element along the
|
|
566
|
+
* specified axes.
|
|
567
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
568
|
+
* object may be passed.
|
|
569
|
+
* @see https://floating-ui.com/docs/offset
|
|
570
|
+
*/
|
|
571
|
+
const offset$1 = function (options) {
|
|
572
|
+
if (options === void 0) {
|
|
573
|
+
options = 0;
|
|
574
|
+
}
|
|
575
|
+
return {
|
|
576
|
+
name: 'offset',
|
|
577
|
+
options,
|
|
578
|
+
async fn(state) {
|
|
579
|
+
const {
|
|
580
|
+
x,
|
|
581
|
+
y
|
|
582
|
+
} = state;
|
|
583
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
584
|
+
return {
|
|
585
|
+
x: x + diffCoords.x,
|
|
586
|
+
y: y + diffCoords.y,
|
|
587
|
+
data: diffCoords
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
595
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
596
|
+
* @see https://floating-ui.com/docs/shift
|
|
597
|
+
*/
|
|
598
|
+
const shift = function (options) {
|
|
599
|
+
if (options === void 0) {
|
|
600
|
+
options = {};
|
|
601
|
+
}
|
|
602
|
+
return {
|
|
603
|
+
name: 'shift',
|
|
604
|
+
options,
|
|
605
|
+
async fn(state) {
|
|
606
|
+
const {
|
|
607
|
+
x,
|
|
608
|
+
y,
|
|
609
|
+
placement
|
|
610
|
+
} = state;
|
|
611
|
+
const {
|
|
612
|
+
mainAxis: checkMainAxis = true,
|
|
613
|
+
crossAxis: checkCrossAxis = false,
|
|
614
|
+
limiter = {
|
|
615
|
+
fn: _ref => {
|
|
616
|
+
let {
|
|
617
|
+
x,
|
|
618
|
+
y
|
|
619
|
+
} = _ref;
|
|
620
|
+
return {
|
|
621
|
+
x,
|
|
622
|
+
y
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
...detectOverflowOptions
|
|
627
|
+
} = evaluate(options, state);
|
|
628
|
+
const coords = {
|
|
629
|
+
x,
|
|
630
|
+
y
|
|
631
|
+
};
|
|
632
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
633
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
634
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
635
|
+
let mainAxisCoord = coords[mainAxis];
|
|
636
|
+
let crossAxisCoord = coords[crossAxis];
|
|
637
|
+
if (checkMainAxis) {
|
|
638
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
639
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
640
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
641
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
642
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
643
|
+
}
|
|
644
|
+
if (checkCrossAxis) {
|
|
645
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
646
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
647
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
648
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
649
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
650
|
+
}
|
|
651
|
+
const limitedCoords = limiter.fn({
|
|
652
|
+
...state,
|
|
653
|
+
[mainAxis]: mainAxisCoord,
|
|
654
|
+
[crossAxis]: crossAxisCoord
|
|
655
|
+
});
|
|
656
|
+
return {
|
|
657
|
+
...limitedCoords,
|
|
658
|
+
data: {
|
|
659
|
+
x: limitedCoords.x - x,
|
|
660
|
+
y: limitedCoords.y - y
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
668
|
+
*/
|
|
669
|
+
const limitShift = function (options) {
|
|
670
|
+
if (options === void 0) {
|
|
671
|
+
options = {};
|
|
672
|
+
}
|
|
673
|
+
return {
|
|
674
|
+
options,
|
|
675
|
+
fn(state) {
|
|
676
|
+
const {
|
|
677
|
+
x,
|
|
678
|
+
y,
|
|
679
|
+
placement,
|
|
680
|
+
rects,
|
|
681
|
+
middlewareData
|
|
682
|
+
} = state;
|
|
683
|
+
const {
|
|
684
|
+
offset = 0,
|
|
685
|
+
mainAxis: checkMainAxis = true,
|
|
686
|
+
crossAxis: checkCrossAxis = true
|
|
687
|
+
} = evaluate(options, state);
|
|
688
|
+
const coords = {
|
|
689
|
+
x,
|
|
690
|
+
y
|
|
691
|
+
};
|
|
692
|
+
const crossAxis = getSideAxis(placement);
|
|
693
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
694
|
+
let mainAxisCoord = coords[mainAxis];
|
|
695
|
+
let crossAxisCoord = coords[crossAxis];
|
|
696
|
+
const rawOffset = evaluate(offset, state);
|
|
697
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
|
698
|
+
mainAxis: rawOffset,
|
|
699
|
+
crossAxis: 0
|
|
700
|
+
} : {
|
|
701
|
+
mainAxis: 0,
|
|
702
|
+
crossAxis: 0,
|
|
703
|
+
...rawOffset
|
|
704
|
+
};
|
|
705
|
+
if (checkMainAxis) {
|
|
706
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
707
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
708
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
709
|
+
if (mainAxisCoord < limitMin) {
|
|
710
|
+
mainAxisCoord = limitMin;
|
|
711
|
+
} else if (mainAxisCoord > limitMax) {
|
|
712
|
+
mainAxisCoord = limitMax;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
if (checkCrossAxis) {
|
|
716
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
|
717
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
718
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
719
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
720
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
721
|
+
if (crossAxisCoord < limitMin) {
|
|
722
|
+
crossAxisCoord = limitMin;
|
|
723
|
+
} else if (crossAxisCoord > limitMax) {
|
|
724
|
+
crossAxisCoord = limitMax;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
return {
|
|
728
|
+
[mainAxis]: mainAxisCoord,
|
|
729
|
+
[crossAxis]: crossAxisCoord
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Provides data that allows you to change the size of the floating element —
|
|
737
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
738
|
+
* width of the reference element.
|
|
739
|
+
* @see https://floating-ui.com/docs/size
|
|
740
|
+
*/
|
|
741
|
+
const size = function (options) {
|
|
742
|
+
if (options === void 0) {
|
|
743
|
+
options = {};
|
|
744
|
+
}
|
|
745
|
+
return {
|
|
746
|
+
name: 'size',
|
|
747
|
+
options,
|
|
748
|
+
async fn(state) {
|
|
749
|
+
const {
|
|
750
|
+
placement,
|
|
751
|
+
rects,
|
|
752
|
+
platform,
|
|
753
|
+
elements
|
|
754
|
+
} = state;
|
|
755
|
+
const {
|
|
756
|
+
apply = () => {},
|
|
757
|
+
...detectOverflowOptions
|
|
758
|
+
} = evaluate(options, state);
|
|
759
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
760
|
+
const side = getSide(placement);
|
|
761
|
+
const alignment = getAlignment(placement);
|
|
762
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
763
|
+
const {
|
|
764
|
+
width,
|
|
765
|
+
height
|
|
766
|
+
} = rects.floating;
|
|
767
|
+
let heightSide;
|
|
768
|
+
let widthSide;
|
|
769
|
+
if (side === 'top' || side === 'bottom') {
|
|
770
|
+
heightSide = side;
|
|
771
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
772
|
+
} else {
|
|
773
|
+
widthSide = side;
|
|
774
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
775
|
+
}
|
|
776
|
+
const overflowAvailableHeight = height - overflow[heightSide];
|
|
777
|
+
const overflowAvailableWidth = width - overflow[widthSide];
|
|
778
|
+
const noShift = !state.middlewareData.shift;
|
|
779
|
+
let availableHeight = overflowAvailableHeight;
|
|
780
|
+
let availableWidth = overflowAvailableWidth;
|
|
781
|
+
if (isYAxis) {
|
|
782
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
783
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
784
|
+
} else {
|
|
785
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
786
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
787
|
+
}
|
|
788
|
+
if (noShift && !alignment) {
|
|
789
|
+
const xMin = max(overflow.left, 0);
|
|
790
|
+
const xMax = max(overflow.right, 0);
|
|
791
|
+
const yMin = max(overflow.top, 0);
|
|
792
|
+
const yMax = max(overflow.bottom, 0);
|
|
793
|
+
if (isYAxis) {
|
|
794
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
795
|
+
} else {
|
|
796
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
await apply({
|
|
800
|
+
...state,
|
|
801
|
+
availableWidth,
|
|
802
|
+
availableHeight
|
|
803
|
+
});
|
|
804
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
805
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
806
|
+
return {
|
|
807
|
+
reset: {
|
|
808
|
+
rects: true
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
return {};
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
function getNodeName(node) {
|
|
818
|
+
if (isNode(node)) {
|
|
819
|
+
return (node.nodeName || '').toLowerCase();
|
|
820
|
+
}
|
|
821
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
822
|
+
// returning `#document` an infinite loop won't occur.
|
|
823
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
824
|
+
return '#document';
|
|
825
|
+
}
|
|
826
|
+
function getWindow(node) {
|
|
827
|
+
var _node$ownerDocument;
|
|
828
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
829
|
+
}
|
|
830
|
+
function getDocumentElement(node) {
|
|
831
|
+
var _ref;
|
|
832
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
833
|
+
}
|
|
834
|
+
function isNode(value) {
|
|
835
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
836
|
+
}
|
|
837
|
+
function isElement(value) {
|
|
838
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
839
|
+
}
|
|
840
|
+
function isHTMLElement(value) {
|
|
841
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
842
|
+
}
|
|
843
|
+
function isShadowRoot(value) {
|
|
844
|
+
// Browsers without `ShadowRoot` support.
|
|
845
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
846
|
+
return false;
|
|
847
|
+
}
|
|
848
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
849
|
+
}
|
|
850
|
+
function isOverflowElement(element) {
|
|
851
|
+
const {
|
|
852
|
+
overflow,
|
|
853
|
+
overflowX,
|
|
854
|
+
overflowY,
|
|
855
|
+
display
|
|
856
|
+
} = getComputedStyle(element);
|
|
857
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
858
|
+
}
|
|
859
|
+
function isTableElement(element) {
|
|
860
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
861
|
+
}
|
|
862
|
+
function isContainingBlock(element) {
|
|
863
|
+
const webkit = isWebKit();
|
|
864
|
+
const css = getComputedStyle(element);
|
|
865
|
+
|
|
866
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
867
|
+
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
868
|
+
}
|
|
869
|
+
function getContainingBlock(element) {
|
|
870
|
+
let currentNode = getParentNode(element);
|
|
871
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
872
|
+
if (isContainingBlock(currentNode)) {
|
|
873
|
+
return currentNode;
|
|
874
|
+
} else {
|
|
875
|
+
currentNode = getParentNode(currentNode);
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
return null;
|
|
879
|
+
}
|
|
880
|
+
function isWebKit() {
|
|
881
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
882
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
883
|
+
}
|
|
884
|
+
function isLastTraversableNode(node) {
|
|
885
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
886
|
+
}
|
|
887
|
+
function getComputedStyle(element) {
|
|
888
|
+
return getWindow(element).getComputedStyle(element);
|
|
889
|
+
}
|
|
890
|
+
function getNodeScroll(element) {
|
|
891
|
+
if (isElement(element)) {
|
|
892
|
+
return {
|
|
893
|
+
scrollLeft: element.scrollLeft,
|
|
894
|
+
scrollTop: element.scrollTop
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
return {
|
|
898
|
+
scrollLeft: element.pageXOffset,
|
|
899
|
+
scrollTop: element.pageYOffset
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
function getParentNode(node) {
|
|
903
|
+
if (getNodeName(node) === 'html') {
|
|
904
|
+
return node;
|
|
905
|
+
}
|
|
906
|
+
const result =
|
|
907
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
908
|
+
node.assignedSlot ||
|
|
909
|
+
// DOM Element detected.
|
|
910
|
+
node.parentNode ||
|
|
911
|
+
// ShadowRoot detected.
|
|
912
|
+
isShadowRoot(node) && node.host ||
|
|
913
|
+
// Fallback.
|
|
914
|
+
getDocumentElement(node);
|
|
915
|
+
return isShadowRoot(result) ? result.host : result;
|
|
916
|
+
}
|
|
917
|
+
function getNearestOverflowAncestor(node) {
|
|
918
|
+
const parentNode = getParentNode(node);
|
|
919
|
+
if (isLastTraversableNode(parentNode)) {
|
|
920
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
921
|
+
}
|
|
922
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
923
|
+
return parentNode;
|
|
924
|
+
}
|
|
925
|
+
return getNearestOverflowAncestor(parentNode);
|
|
926
|
+
}
|
|
927
|
+
function getOverflowAncestors(node, list) {
|
|
928
|
+
var _node$ownerDocument2;
|
|
929
|
+
if (list === void 0) {
|
|
930
|
+
list = [];
|
|
931
|
+
}
|
|
932
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
933
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
934
|
+
const win = getWindow(scrollableAncestor);
|
|
935
|
+
if (isBody) {
|
|
936
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
|
937
|
+
}
|
|
938
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
function getCssDimensions(element) {
|
|
942
|
+
const css = getComputedStyle(element);
|
|
943
|
+
// In testing environments, the `width` and `height` properties are empty
|
|
944
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
945
|
+
let width = parseFloat(css.width) || 0;
|
|
946
|
+
let height = parseFloat(css.height) || 0;
|
|
947
|
+
const hasOffset = isHTMLElement(element);
|
|
948
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
949
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
950
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
951
|
+
if (shouldFallback) {
|
|
952
|
+
width = offsetWidth;
|
|
953
|
+
height = offsetHeight;
|
|
954
|
+
}
|
|
955
|
+
return {
|
|
956
|
+
width,
|
|
957
|
+
height,
|
|
958
|
+
$: shouldFallback
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
function unwrapElement(element) {
|
|
963
|
+
return !isElement(element) ? element.contextElement : element;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
function getScale(element) {
|
|
967
|
+
const domElement = unwrapElement(element);
|
|
968
|
+
if (!isHTMLElement(domElement)) {
|
|
969
|
+
return createCoords(1);
|
|
970
|
+
}
|
|
971
|
+
const rect = domElement.getBoundingClientRect();
|
|
972
|
+
const {
|
|
973
|
+
width,
|
|
974
|
+
height,
|
|
975
|
+
$
|
|
976
|
+
} = getCssDimensions(domElement);
|
|
977
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
978
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
979
|
+
|
|
980
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
981
|
+
|
|
982
|
+
if (!x || !Number.isFinite(x)) {
|
|
983
|
+
x = 1;
|
|
984
|
+
}
|
|
985
|
+
if (!y || !Number.isFinite(y)) {
|
|
986
|
+
y = 1;
|
|
987
|
+
}
|
|
988
|
+
return {
|
|
989
|
+
x,
|
|
990
|
+
y
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
995
|
+
function getVisualOffsets(element) {
|
|
996
|
+
const win = getWindow(element);
|
|
997
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
998
|
+
return noOffsets;
|
|
999
|
+
}
|
|
1000
|
+
return {
|
|
1001
|
+
x: win.visualViewport.offsetLeft,
|
|
1002
|
+
y: win.visualViewport.offsetTop
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1006
|
+
if (isFixed === void 0) {
|
|
1007
|
+
isFixed = false;
|
|
1008
|
+
}
|
|
1009
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
1010
|
+
return false;
|
|
1011
|
+
}
|
|
1012
|
+
return isFixed;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1016
|
+
if (includeScale === void 0) {
|
|
1017
|
+
includeScale = false;
|
|
1018
|
+
}
|
|
1019
|
+
if (isFixedStrategy === void 0) {
|
|
1020
|
+
isFixedStrategy = false;
|
|
1021
|
+
}
|
|
1022
|
+
const clientRect = element.getBoundingClientRect();
|
|
1023
|
+
const domElement = unwrapElement(element);
|
|
1024
|
+
let scale = createCoords(1);
|
|
1025
|
+
if (includeScale) {
|
|
1026
|
+
if (offsetParent) {
|
|
1027
|
+
if (isElement(offsetParent)) {
|
|
1028
|
+
scale = getScale(offsetParent);
|
|
1029
|
+
}
|
|
1030
|
+
} else {
|
|
1031
|
+
scale = getScale(element);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
1035
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
1036
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1037
|
+
let width = clientRect.width / scale.x;
|
|
1038
|
+
let height = clientRect.height / scale.y;
|
|
1039
|
+
if (domElement) {
|
|
1040
|
+
const win = getWindow(domElement);
|
|
1041
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1042
|
+
let currentIFrame = win.frameElement;
|
|
1043
|
+
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
1044
|
+
const iframeScale = getScale(currentIFrame);
|
|
1045
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1046
|
+
const css = getComputedStyle(currentIFrame);
|
|
1047
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1048
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1049
|
+
x *= iframeScale.x;
|
|
1050
|
+
y *= iframeScale.y;
|
|
1051
|
+
width *= iframeScale.x;
|
|
1052
|
+
height *= iframeScale.y;
|
|
1053
|
+
x += left;
|
|
1054
|
+
y += top;
|
|
1055
|
+
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
return rectToClientRect({
|
|
1059
|
+
width,
|
|
1060
|
+
height,
|
|
1061
|
+
x,
|
|
1062
|
+
y
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1067
|
+
let {
|
|
1068
|
+
rect,
|
|
1069
|
+
offsetParent,
|
|
1070
|
+
strategy
|
|
1071
|
+
} = _ref;
|
|
1072
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1073
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1074
|
+
if (offsetParent === documentElement) {
|
|
1075
|
+
return rect;
|
|
1076
|
+
}
|
|
1077
|
+
let scroll = {
|
|
1078
|
+
scrollLeft: 0,
|
|
1079
|
+
scrollTop: 0
|
|
1080
|
+
};
|
|
1081
|
+
let scale = createCoords(1);
|
|
1082
|
+
const offsets = createCoords(0);
|
|
1083
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1084
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1085
|
+
scroll = getNodeScroll(offsetParent);
|
|
1086
|
+
}
|
|
1087
|
+
if (isHTMLElement(offsetParent)) {
|
|
1088
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1089
|
+
scale = getScale(offsetParent);
|
|
1090
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1091
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
return {
|
|
1095
|
+
width: rect.width * scale.x,
|
|
1096
|
+
height: rect.height * scale.y,
|
|
1097
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
1098
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
function getClientRects(element) {
|
|
1103
|
+
return Array.from(element.getClientRects());
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
function getWindowScrollBarX(element) {
|
|
1107
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1108
|
+
// incorrect for RTL.
|
|
1109
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
1113
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1114
|
+
function getDocumentRect(element) {
|
|
1115
|
+
const html = getDocumentElement(element);
|
|
1116
|
+
const scroll = getNodeScroll(element);
|
|
1117
|
+
const body = element.ownerDocument.body;
|
|
1118
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1119
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1120
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1121
|
+
const y = -scroll.scrollTop;
|
|
1122
|
+
if (getComputedStyle(body).direction === 'rtl') {
|
|
1123
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1124
|
+
}
|
|
1125
|
+
return {
|
|
1126
|
+
width,
|
|
1127
|
+
height,
|
|
1128
|
+
x,
|
|
1129
|
+
y
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
function getViewportRect(element, strategy) {
|
|
1134
|
+
const win = getWindow(element);
|
|
1135
|
+
const html = getDocumentElement(element);
|
|
1136
|
+
const visualViewport = win.visualViewport;
|
|
1137
|
+
let width = html.clientWidth;
|
|
1138
|
+
let height = html.clientHeight;
|
|
1139
|
+
let x = 0;
|
|
1140
|
+
let y = 0;
|
|
1141
|
+
if (visualViewport) {
|
|
1142
|
+
width = visualViewport.width;
|
|
1143
|
+
height = visualViewport.height;
|
|
1144
|
+
const visualViewportBased = isWebKit();
|
|
1145
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1146
|
+
x = visualViewport.offsetLeft;
|
|
1147
|
+
y = visualViewport.offsetTop;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
return {
|
|
1151
|
+
width,
|
|
1152
|
+
height,
|
|
1153
|
+
x,
|
|
1154
|
+
y
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1159
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
1160
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1161
|
+
const top = clientRect.top + element.clientTop;
|
|
1162
|
+
const left = clientRect.left + element.clientLeft;
|
|
1163
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1164
|
+
const width = element.clientWidth * scale.x;
|
|
1165
|
+
const height = element.clientHeight * scale.y;
|
|
1166
|
+
const x = left * scale.x;
|
|
1167
|
+
const y = top * scale.y;
|
|
1168
|
+
return {
|
|
1169
|
+
width,
|
|
1170
|
+
height,
|
|
1171
|
+
x,
|
|
1172
|
+
y
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1176
|
+
let rect;
|
|
1177
|
+
if (clippingAncestor === 'viewport') {
|
|
1178
|
+
rect = getViewportRect(element, strategy);
|
|
1179
|
+
} else if (clippingAncestor === 'document') {
|
|
1180
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
1181
|
+
} else if (isElement(clippingAncestor)) {
|
|
1182
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1183
|
+
} else {
|
|
1184
|
+
const visualOffsets = getVisualOffsets(element);
|
|
1185
|
+
rect = {
|
|
1186
|
+
...clippingAncestor,
|
|
1187
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
1188
|
+
y: clippingAncestor.y - visualOffsets.y
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
return rectToClientRect(rect);
|
|
1192
|
+
}
|
|
1193
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
1194
|
+
const parentNode = getParentNode(element);
|
|
1195
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1196
|
+
return false;
|
|
1197
|
+
}
|
|
1198
|
+
return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1202
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1203
|
+
// of the given element up the tree.
|
|
1204
|
+
function getClippingElementAncestors(element, cache) {
|
|
1205
|
+
const cachedResult = cache.get(element);
|
|
1206
|
+
if (cachedResult) {
|
|
1207
|
+
return cachedResult;
|
|
1208
|
+
}
|
|
1209
|
+
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1210
|
+
let currentContainingBlockComputedStyle = null;
|
|
1211
|
+
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1212
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1213
|
+
|
|
1214
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1215
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1216
|
+
const computedStyle = getComputedStyle(currentNode);
|
|
1217
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1218
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1219
|
+
currentContainingBlockComputedStyle = null;
|
|
1220
|
+
}
|
|
1221
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1222
|
+
if (shouldDropCurrentNode) {
|
|
1223
|
+
// Drop non-containing blocks.
|
|
1224
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1225
|
+
} else {
|
|
1226
|
+
// Record last containing block for next iteration.
|
|
1227
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
1228
|
+
}
|
|
1229
|
+
currentNode = getParentNode(currentNode);
|
|
1230
|
+
}
|
|
1231
|
+
cache.set(element, result);
|
|
1232
|
+
return result;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
1236
|
+
// clipping ancestors.
|
|
1237
|
+
function getClippingRect(_ref) {
|
|
1238
|
+
let {
|
|
1239
|
+
element,
|
|
1240
|
+
boundary,
|
|
1241
|
+
rootBoundary,
|
|
1242
|
+
strategy
|
|
1243
|
+
} = _ref;
|
|
1244
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1245
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1246
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
1247
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1248
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1249
|
+
accRect.top = max(rect.top, accRect.top);
|
|
1250
|
+
accRect.right = min(rect.right, accRect.right);
|
|
1251
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1252
|
+
accRect.left = max(rect.left, accRect.left);
|
|
1253
|
+
return accRect;
|
|
1254
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1255
|
+
return {
|
|
1256
|
+
width: clippingRect.right - clippingRect.left,
|
|
1257
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
1258
|
+
x: clippingRect.left,
|
|
1259
|
+
y: clippingRect.top
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
function getDimensions(element) {
|
|
1264
|
+
return getCssDimensions(element);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1268
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1269
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1270
|
+
const isFixed = strategy === 'fixed';
|
|
1271
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1272
|
+
let scroll = {
|
|
1273
|
+
scrollLeft: 0,
|
|
1274
|
+
scrollTop: 0
|
|
1275
|
+
};
|
|
1276
|
+
const offsets = createCoords(0);
|
|
1277
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1278
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1279
|
+
scroll = getNodeScroll(offsetParent);
|
|
1280
|
+
}
|
|
1281
|
+
if (isOffsetParentAnElement) {
|
|
1282
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1283
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1284
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1285
|
+
} else if (documentElement) {
|
|
1286
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
return {
|
|
1290
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1291
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1292
|
+
width: rect.width,
|
|
1293
|
+
height: rect.height
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
1298
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1299
|
+
return null;
|
|
1300
|
+
}
|
|
1301
|
+
if (polyfill) {
|
|
1302
|
+
return polyfill(element);
|
|
1303
|
+
}
|
|
1304
|
+
return element.offsetParent;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1308
|
+
// such as table ancestors and cross browser bugs.
|
|
1309
|
+
function getOffsetParent(element, polyfill) {
|
|
1310
|
+
const window = getWindow(element);
|
|
1311
|
+
if (!isHTMLElement(element)) {
|
|
1312
|
+
return window;
|
|
1313
|
+
}
|
|
1314
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1315
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
1316
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1317
|
+
}
|
|
1318
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1319
|
+
return window;
|
|
1320
|
+
}
|
|
1321
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
const getElementRects = async function (_ref) {
|
|
1325
|
+
let {
|
|
1326
|
+
reference,
|
|
1327
|
+
floating,
|
|
1328
|
+
strategy
|
|
1329
|
+
} = _ref;
|
|
1330
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1331
|
+
const getDimensionsFn = this.getDimensions;
|
|
1332
|
+
return {
|
|
1333
|
+
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
|
1334
|
+
floating: {
|
|
1335
|
+
x: 0,
|
|
1336
|
+
y: 0,
|
|
1337
|
+
...(await getDimensionsFn(floating))
|
|
1338
|
+
}
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
function isRTL(element) {
|
|
1343
|
+
return getComputedStyle(element).direction === 'rtl';
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
const platform = {
|
|
1347
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1348
|
+
getDocumentElement,
|
|
1349
|
+
getClippingRect,
|
|
1350
|
+
getOffsetParent,
|
|
1351
|
+
getElementRects,
|
|
1352
|
+
getClientRects,
|
|
1353
|
+
getDimensions,
|
|
1354
|
+
getScale,
|
|
1355
|
+
isElement,
|
|
1356
|
+
isRTL
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
// https://samthor.au/2021/observing-dom/
|
|
1360
|
+
function observeMove(element, onMove) {
|
|
1361
|
+
let io = null;
|
|
1362
|
+
let timeoutId;
|
|
1363
|
+
const root = getDocumentElement(element);
|
|
1364
|
+
function cleanup() {
|
|
1365
|
+
clearTimeout(timeoutId);
|
|
1366
|
+
io && io.disconnect();
|
|
1367
|
+
io = null;
|
|
1368
|
+
}
|
|
1369
|
+
function refresh(skip, threshold) {
|
|
1370
|
+
if (skip === void 0) {
|
|
1371
|
+
skip = false;
|
|
1372
|
+
}
|
|
1373
|
+
if (threshold === void 0) {
|
|
1374
|
+
threshold = 1;
|
|
1375
|
+
}
|
|
1376
|
+
cleanup();
|
|
1377
|
+
const {
|
|
1378
|
+
left,
|
|
1379
|
+
top,
|
|
1380
|
+
width,
|
|
1381
|
+
height
|
|
1382
|
+
} = element.getBoundingClientRect();
|
|
1383
|
+
if (!skip) {
|
|
1384
|
+
onMove();
|
|
1385
|
+
}
|
|
1386
|
+
if (!width || !height) {
|
|
1387
|
+
return;
|
|
1388
|
+
}
|
|
1389
|
+
const insetTop = floor(top);
|
|
1390
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
1391
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1392
|
+
const insetLeft = floor(left);
|
|
1393
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1394
|
+
const options = {
|
|
1395
|
+
rootMargin,
|
|
1396
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
1397
|
+
};
|
|
1398
|
+
let isFirstUpdate = true;
|
|
1399
|
+
function handleObserve(entries) {
|
|
1400
|
+
const ratio = entries[0].intersectionRatio;
|
|
1401
|
+
if (ratio !== threshold) {
|
|
1402
|
+
if (!isFirstUpdate) {
|
|
1403
|
+
return refresh();
|
|
1404
|
+
}
|
|
1405
|
+
if (!ratio) {
|
|
1406
|
+
timeoutId = setTimeout(() => {
|
|
1407
|
+
refresh(false, 1e-7);
|
|
1408
|
+
}, 100);
|
|
1409
|
+
} else {
|
|
1410
|
+
refresh(false, ratio);
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
isFirstUpdate = false;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
1417
|
+
// error.
|
|
1418
|
+
try {
|
|
1419
|
+
io = new IntersectionObserver(handleObserve, {
|
|
1420
|
+
...options,
|
|
1421
|
+
// Handle <iframe>s
|
|
1422
|
+
root: root.ownerDocument
|
|
1423
|
+
});
|
|
1424
|
+
} catch (e) {
|
|
1425
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
1426
|
+
}
|
|
1427
|
+
io.observe(element);
|
|
1428
|
+
}
|
|
1429
|
+
refresh(true);
|
|
1430
|
+
return cleanup;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Automatically updates the position of the floating element when necessary.
|
|
1435
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
1436
|
+
* visible on the screen.
|
|
1437
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
1438
|
+
* removed from the DOM or hidden from the screen.
|
|
1439
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
1440
|
+
*/
|
|
1441
|
+
function autoUpdate(reference, floating, update, options) {
|
|
1442
|
+
if (options === void 0) {
|
|
1443
|
+
options = {};
|
|
1444
|
+
}
|
|
1445
|
+
const {
|
|
1446
|
+
ancestorScroll = true,
|
|
1447
|
+
ancestorResize = true,
|
|
1448
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
1449
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
1450
|
+
animationFrame = false
|
|
1451
|
+
} = options;
|
|
1452
|
+
const referenceEl = unwrapElement(reference);
|
|
1453
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
1454
|
+
ancestors.forEach(ancestor => {
|
|
1455
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
1456
|
+
passive: true
|
|
1457
|
+
});
|
|
1458
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1459
|
+
});
|
|
1460
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1461
|
+
let reobserveFrame = -1;
|
|
1462
|
+
let resizeObserver = null;
|
|
1463
|
+
if (elementResize) {
|
|
1464
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
1465
|
+
let [firstEntry] = _ref;
|
|
1466
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
1467
|
+
// Prevent update loops when using the `size` middleware.
|
|
1468
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
1469
|
+
resizeObserver.unobserve(floating);
|
|
1470
|
+
cancelAnimationFrame(reobserveFrame);
|
|
1471
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
1472
|
+
resizeObserver && resizeObserver.observe(floating);
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
update();
|
|
1476
|
+
});
|
|
1477
|
+
if (referenceEl && !animationFrame) {
|
|
1478
|
+
resizeObserver.observe(referenceEl);
|
|
1479
|
+
}
|
|
1480
|
+
resizeObserver.observe(floating);
|
|
1481
|
+
}
|
|
1482
|
+
let frameId;
|
|
1483
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1484
|
+
if (animationFrame) {
|
|
1485
|
+
frameLoop();
|
|
1486
|
+
}
|
|
1487
|
+
function frameLoop() {
|
|
1488
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
1489
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1490
|
+
update();
|
|
1491
|
+
}
|
|
1492
|
+
prevRefRect = nextRefRect;
|
|
1493
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
1494
|
+
}
|
|
1495
|
+
update();
|
|
1496
|
+
return () => {
|
|
1497
|
+
ancestors.forEach(ancestor => {
|
|
1498
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1499
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1500
|
+
});
|
|
1501
|
+
cleanupIo && cleanupIo();
|
|
1502
|
+
resizeObserver && resizeObserver.disconnect();
|
|
1503
|
+
resizeObserver = null;
|
|
1504
|
+
if (animationFrame) {
|
|
1505
|
+
cancelAnimationFrame(frameId);
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1512
|
+
* next to a reference element when it is given a certain CSS positioning
|
|
1513
|
+
* strategy.
|
|
1514
|
+
*/
|
|
1515
|
+
const computePosition = (reference, floating, options) => {
|
|
1516
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1517
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1518
|
+
// single call. If other functions become expensive, we can add them as well.
|
|
1519
|
+
const cache = new Map();
|
|
1520
|
+
const mergedOptions = {
|
|
1521
|
+
platform,
|
|
1522
|
+
...options
|
|
1523
|
+
};
|
|
1524
|
+
const platformWithCache = {
|
|
1525
|
+
...mergedOptions.platform,
|
|
1526
|
+
_c: cache
|
|
1527
|
+
};
|
|
1528
|
+
return computePosition$1(reference, floating, {
|
|
1529
|
+
...mergedOptions,
|
|
1530
|
+
platform: platformWithCache
|
|
1531
|
+
});
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* @license
|
|
1536
|
+
* MIT License
|
|
1537
|
+
*
|
|
1538
|
+
* Copyright (c) 2021 Floating UI contributors
|
|
1539
|
+
*
|
|
1540
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1541
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
1542
|
+
* in the Software without restriction, including without limitation the rights
|
|
1543
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1544
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
1545
|
+
* furnished to do so, subject to the following conditions:
|
|
1546
|
+
*
|
|
1547
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
1548
|
+
* copies or substantial portions of the Software.
|
|
1549
|
+
*
|
|
1550
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1551
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1552
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1553
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1554
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1555
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1556
|
+
* SOFTWARE.
|
|
1557
|
+
*/
|
|
1558
|
+
const offset = (value) => {
|
|
1559
|
+
return {
|
|
1560
|
+
name: 'offset',
|
|
1561
|
+
options: value,
|
|
1562
|
+
async fn(middlewareArguments) {
|
|
1563
|
+
const newFn = (args) => {
|
|
1564
|
+
// flip middleware could be called several times, until the right space is found.
|
|
1565
|
+
// Every time flip is called and overflow is detected, a possible next placement
|
|
1566
|
+
// is chosen and the array of middleware (including the offset middleware) is called again
|
|
1567
|
+
// with the chosen next placement.
|
|
1568
|
+
// Here we detect that flip is needed and we should change the offset sign if needed.
|
|
1569
|
+
const overflowsData = args.middlewareData.flip?.overflows != undefined
|
|
1570
|
+
? args.middlewareData.flip?.overflows[0]
|
|
1571
|
+
: null;
|
|
1572
|
+
let offset;
|
|
1573
|
+
if (overflowsData != null && value != null && typeof value === 'object') {
|
|
1574
|
+
offset = flippedOffset(args.placement, args.initialPlacement, value);
|
|
1575
|
+
}
|
|
1576
|
+
if (!value) {
|
|
1577
|
+
return 0;
|
|
1578
|
+
}
|
|
1579
|
+
const rawValue = offset ?? value;
|
|
1580
|
+
return rawValue;
|
|
1581
|
+
};
|
|
1582
|
+
return offset$1(newFn).fn(middlewareArguments);
|
|
1583
|
+
}
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
const flippedOffset = (placement, initialPlacement, offset) => {
|
|
1587
|
+
const initialSide = initialPlacement.split('-')[0];
|
|
1588
|
+
const side = placement.split('-')[0];
|
|
1589
|
+
const initialAlignment = initialPlacement.split('-')[1];
|
|
1590
|
+
const alignment = placement.split('-')[1];
|
|
1591
|
+
// if flipped around crossAxis
|
|
1592
|
+
if (((initialSide === 'right' || initialSide === 'left') &&
|
|
1593
|
+
initialSide === side &&
|
|
1594
|
+
initialAlignment !== alignment) ||
|
|
1595
|
+
((initialSide === 'top' || initialSide === 'bottom') &&
|
|
1596
|
+
initialSide === side &&
|
|
1597
|
+
initialAlignment !== alignment)) {
|
|
1598
|
+
return {
|
|
1599
|
+
mainAxis: offset && typeof offset === 'object' && offset.mainAxis ? offset.mainAxis : 0,
|
|
1600
|
+
crossAxis: offset && typeof offset === 'object' && offset.crossAxis ? -offset.crossAxis : 0
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1603
|
+
else {
|
|
1604
|
+
return offset;
|
|
1605
|
+
}
|
|
1606
|
+
};
|
|
1607
|
+
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
1608
|
+
// functions
|
|
1609
|
+
function deepEqual(a, b) {
|
|
1610
|
+
if (a === b) {
|
|
1611
|
+
return true;
|
|
1612
|
+
}
|
|
1613
|
+
if (typeof a !== typeof b) {
|
|
1614
|
+
return false;
|
|
1615
|
+
}
|
|
1616
|
+
if (typeof a === 'function' && a.toString() === b.toString()) {
|
|
1617
|
+
return true;
|
|
1618
|
+
}
|
|
1619
|
+
let length, i, keys;
|
|
1620
|
+
if (a && b && typeof a == 'object') {
|
|
1621
|
+
if (Array.isArray(a)) {
|
|
1622
|
+
length = a.length;
|
|
1623
|
+
if (length != b.length)
|
|
1624
|
+
return false;
|
|
1625
|
+
for (i = length; i-- !== 0;) {
|
|
1626
|
+
if (!deepEqual(a[i], b[i])) {
|
|
1627
|
+
return false;
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
return true;
|
|
1631
|
+
}
|
|
1632
|
+
keys = Object.keys(a);
|
|
1633
|
+
length = keys.length;
|
|
1634
|
+
if (length !== Object.keys(b).length) {
|
|
1635
|
+
return false;
|
|
1636
|
+
}
|
|
1637
|
+
for (i = length; i-- !== 0;) {
|
|
1638
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) {
|
|
1639
|
+
return false;
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
for (i = length; i-- !== 0;) {
|
|
1643
|
+
const key = keys[i];
|
|
1644
|
+
if (key === '_owner' && a.$$typeof) {
|
|
1645
|
+
continue;
|
|
1646
|
+
}
|
|
1647
|
+
if (!deepEqual(a[key], b[key])) {
|
|
1648
|
+
return false;
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
return true;
|
|
1652
|
+
}
|
|
1653
|
+
return a !== a && b !== b;
|
|
1654
|
+
}
|
|
1655
|
+
function useLatestRef(value) {
|
|
1656
|
+
const ref = useRef(value);
|
|
1657
|
+
useLayoutEffect(() => {
|
|
1658
|
+
ref.current = value;
|
|
1659
|
+
});
|
|
1660
|
+
return ref;
|
|
1661
|
+
}
|
|
1662
|
+
const reverseLogicalSide = (placement, direction) => {
|
|
1663
|
+
const side = placement.split('-')[0];
|
|
1664
|
+
if (side === 'top' || side === 'bottom') {
|
|
1665
|
+
return placement;
|
|
1666
|
+
}
|
|
1667
|
+
const alignment = placement.split('-')[1];
|
|
1668
|
+
const reversedPhysicalSide = reverseNormalizePosition(side, direction);
|
|
1669
|
+
const alignmentSideHash = {
|
|
1670
|
+
start: 'top',
|
|
1671
|
+
end: 'bottom'
|
|
1672
|
+
};
|
|
1673
|
+
const alignmentMappedSide = alignment != null
|
|
1674
|
+
? alignment.replace(/start|end/g, (matched) => alignmentSideHash[matched])
|
|
1675
|
+
: null;
|
|
1676
|
+
const placements = [
|
|
1677
|
+
'top',
|
|
1678
|
+
'top-start',
|
|
1679
|
+
'top-end',
|
|
1680
|
+
'end',
|
|
1681
|
+
'end-top',
|
|
1682
|
+
'end-bottom',
|
|
1683
|
+
'bottom-start',
|
|
1684
|
+
'bottom-end',
|
|
1685
|
+
'bottom',
|
|
1686
|
+
'start',
|
|
1687
|
+
'start-top',
|
|
1688
|
+
'start-bottom'
|
|
1689
|
+
];
|
|
1690
|
+
const newPlacement = placements.filter((placement) => (alignmentMappedSide && placement === `${reversedPhysicalSide}-${alignmentMappedSide}`) ||
|
|
1691
|
+
(!alignmentMappedSide && placement === `${reversedPhysicalSide}`))[0];
|
|
1692
|
+
if (!newPlacement) {
|
|
1693
|
+
return 'bottom';
|
|
1694
|
+
}
|
|
1695
|
+
return newPlacement;
|
|
1696
|
+
};
|
|
1697
|
+
const logicalSide = (placement, direction) => {
|
|
1698
|
+
const side = placement.split('-')[0];
|
|
1699
|
+
const alignment = placement.split('-')[1];
|
|
1700
|
+
const physicalSide = normalizePosition(side, direction);
|
|
1701
|
+
let alignmentSideHash;
|
|
1702
|
+
let alignmentMappedSide;
|
|
1703
|
+
if (alignment) {
|
|
1704
|
+
alignmentSideHash = {
|
|
1705
|
+
top: 'start',
|
|
1706
|
+
bottom: 'end'
|
|
1707
|
+
};
|
|
1708
|
+
alignmentMappedSide = alignment.replace(/top|bottom/g, (matched) => alignmentSideHash[matched]);
|
|
1709
|
+
}
|
|
1710
|
+
const placements = [
|
|
1711
|
+
'top',
|
|
1712
|
+
'right',
|
|
1713
|
+
'bottom',
|
|
1714
|
+
'left',
|
|
1715
|
+
'top-start',
|
|
1716
|
+
'right-start',
|
|
1717
|
+
'bottom-start',
|
|
1718
|
+
'left-start',
|
|
1719
|
+
'top-end',
|
|
1720
|
+
'right-end',
|
|
1721
|
+
'bottom-end',
|
|
1722
|
+
'left-end'
|
|
1723
|
+
];
|
|
1724
|
+
const newPlacement = placements.filter((placement) => (alignmentMappedSide && placement === `${physicalSide}-${alignmentMappedSide}`) ||
|
|
1725
|
+
(!alignmentMappedSide && placement === `${physicalSide}`))[0];
|
|
1726
|
+
if (!newPlacement) {
|
|
1727
|
+
return 'bottom';
|
|
1728
|
+
}
|
|
1729
|
+
return newPlacement;
|
|
1730
|
+
};
|
|
1731
|
+
const cornerPlacement = (placement, floating) => {
|
|
1732
|
+
const side = placement.split('-')[0];
|
|
1733
|
+
const alignment = placement.split('-')[1];
|
|
1734
|
+
const corner = placement.split('-')[2];
|
|
1735
|
+
if (corner == null) {
|
|
1736
|
+
return { placement: placement, offset: undefined };
|
|
1737
|
+
}
|
|
1738
|
+
const placements = [
|
|
1739
|
+
'top-start',
|
|
1740
|
+
'start-top',
|
|
1741
|
+
'bottom-start',
|
|
1742
|
+
'start-bottom',
|
|
1743
|
+
'top-end',
|
|
1744
|
+
'end-top',
|
|
1745
|
+
'bottom-end',
|
|
1746
|
+
'end-bottom'
|
|
1747
|
+
];
|
|
1748
|
+
const newPlacement = placements.filter((placement) => placement === `${side}-${alignment}`)[0];
|
|
1749
|
+
if (alignment == 'start') {
|
|
1750
|
+
return { placement: newPlacement, offset: { crossAxis: -floating.offsetWidth } };
|
|
1751
|
+
}
|
|
1752
|
+
if (alignment == 'end') {
|
|
1753
|
+
return { placement: newPlacement, offset: { crossAxis: floating.offsetWidth } };
|
|
1754
|
+
}
|
|
1755
|
+
if (alignment == 'top') {
|
|
1756
|
+
return { placement: newPlacement, offset: { crossAxis: -floating.offsetHeight } };
|
|
1757
|
+
}
|
|
1758
|
+
// the last option should always be alignment == 'bottom'
|
|
1759
|
+
return { placement: newPlacement, offset: { crossAxis: floating.offsetHeight } };
|
|
1760
|
+
};
|
|
1761
|
+
const isOfPlacementType = (value) => {
|
|
1762
|
+
const placementTypeValues = [
|
|
1763
|
+
'top',
|
|
1764
|
+
'top-start',
|
|
1765
|
+
'top-end',
|
|
1766
|
+
'top-start-corner',
|
|
1767
|
+
'top-end-corner',
|
|
1768
|
+
'start',
|
|
1769
|
+
'start-top',
|
|
1770
|
+
'start-bottom',
|
|
1771
|
+
'start-top-corner',
|
|
1772
|
+
'start-bottom-corner',
|
|
1773
|
+
'bottom',
|
|
1774
|
+
'bottom-start',
|
|
1775
|
+
'bottom-end',
|
|
1776
|
+
'bottom-start-corner',
|
|
1777
|
+
'bottom-end-corner',
|
|
1778
|
+
'end',
|
|
1779
|
+
'end-top',
|
|
1780
|
+
'end-bottom',
|
|
1781
|
+
'end-top-corner',
|
|
1782
|
+
'end-bottom-corner'
|
|
1783
|
+
];
|
|
1784
|
+
return placementTypeValues.includes(value);
|
|
1785
|
+
};
|
|
1786
|
+
function useFloating({ middleware, placement, strategy, onPosition, whileElementsMounted }) {
|
|
1787
|
+
//this should not happen, checking to just to be safe
|
|
1788
|
+
if (!isOfPlacementType(placement)) {
|
|
1789
|
+
placement = 'bottom';
|
|
1790
|
+
}
|
|
1791
|
+
const referenceRef = useRef(null);
|
|
1792
|
+
const floatingRef = useRef(null);
|
|
1793
|
+
const [reference, _setReference] = useState(null);
|
|
1794
|
+
const [floating, _setFloating] = useState(null);
|
|
1795
|
+
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
1796
|
+
const isMountedRef = useRef(false);
|
|
1797
|
+
const { direction } = useUser();
|
|
1798
|
+
const [data, _setData] = useState({
|
|
1799
|
+
// Setting these to `null` will allow the consumer to determine if
|
|
1800
|
+
// `computePosition()` has run yet
|
|
1801
|
+
x: null,
|
|
1802
|
+
y: null,
|
|
1803
|
+
strategy: strategy ?? 'absolute',
|
|
1804
|
+
placement: 'bottom',
|
|
1805
|
+
middlewareData: {}
|
|
1806
|
+
});
|
|
1807
|
+
const dataRef = useRef(data);
|
|
1808
|
+
const setData = (data) => {
|
|
1809
|
+
dataRef.current = data;
|
|
1810
|
+
_setData(data);
|
|
1811
|
+
};
|
|
1812
|
+
const [latestMiddleware, setLatestMiddleware] = useState(middleware);
|
|
1813
|
+
if (!deepEqual(latestMiddleware, middleware)) {
|
|
1814
|
+
setLatestMiddleware(middleware);
|
|
1815
|
+
}
|
|
1816
|
+
const update = useCallback(() => {
|
|
1817
|
+
if (!referenceRef.current || !floatingRef.current) {
|
|
1818
|
+
return;
|
|
1819
|
+
}
|
|
1820
|
+
// map *-corner placement to normalized placement and offset
|
|
1821
|
+
const floatingCornerPlacement = cornerPlacement(placement, floatingRef.current);
|
|
1822
|
+
// map start/end placements to right/left depending on the reading direction
|
|
1823
|
+
const floatingUiPlacement = logicalSide(floatingCornerPlacement.placement, direction);
|
|
1824
|
+
// we need a summarized offset middleware
|
|
1825
|
+
const newMiddlewareArray = latestMiddleware?.map((m) => {
|
|
1826
|
+
if (m && m?.name === 'offset') {
|
|
1827
|
+
if (typeof m.options === 'function') {
|
|
1828
|
+
// ignore function if there are *-corner placements
|
|
1829
|
+
return floatingCornerPlacement.offset == null
|
|
1830
|
+
? m
|
|
1831
|
+
: offset(floatingCornerPlacement.offset);
|
|
1832
|
+
}
|
|
1833
|
+
const currentOffset = typeof m.options === 'number' ? { mainAxis: m.options, crossAxis: 0 } : m.options;
|
|
1834
|
+
return offset({
|
|
1835
|
+
mainAxis: (currentOffset && currentOffset.mainAxis) ?? 0,
|
|
1836
|
+
crossAxis: ((floatingCornerPlacement.offset && floatingCornerPlacement.offset.crossAxis) ?? 0) +
|
|
1837
|
+
((currentOffset && currentOffset.crossAxis) ?? 0)
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
else {
|
|
1841
|
+
return m;
|
|
1842
|
+
}
|
|
1843
|
+
});
|
|
1844
|
+
computePosition(referenceRef.current, floatingRef.current, {
|
|
1845
|
+
middleware: newMiddlewareArray,
|
|
1846
|
+
placement: floatingUiPlacement,
|
|
1847
|
+
strategy
|
|
1848
|
+
}).then((newData) => {
|
|
1849
|
+
if (isMountedRef.current) {
|
|
1850
|
+
if (newData.placement !== dataRef.current.placement ||
|
|
1851
|
+
newData.x !== dataRef.current.x ||
|
|
1852
|
+
newData.y !== dataRef.current.y ||
|
|
1853
|
+
newData.middlewareData.arrow?.x != dataRef.current.middlewareData.arrow?.x ||
|
|
1854
|
+
newData.middlewareData.arrow?.y != dataRef.current.middlewareData.arrow?.y ||
|
|
1855
|
+
newData.middlewareData.arrow?.centerOffset !=
|
|
1856
|
+
dataRef.current.middlewareData.arrow?.centerOffset) {
|
|
1857
|
+
const newMiddleware = newMiddlewareArray?.find((m) => m && m?.name === 'offset');
|
|
1858
|
+
const origOffset = newMiddleware?.options;
|
|
1859
|
+
const reversedNewPlacement = reverseLogicalSide(newData.placement, direction);
|
|
1860
|
+
const offset = newData.middlewareData.offset;
|
|
1861
|
+
const mappedData = {
|
|
1862
|
+
// we need to map right/left, returned from the computePosition, to start/end
|
|
1863
|
+
placement: reversedNewPlacement,
|
|
1864
|
+
origPlacement: placement,
|
|
1865
|
+
x: newData.x,
|
|
1866
|
+
y: newData.y,
|
|
1867
|
+
arrow: newData.middlewareData.arrow,
|
|
1868
|
+
offset: offset,
|
|
1869
|
+
origOffset: origOffset
|
|
1870
|
+
};
|
|
1871
|
+
onPosition?.(mappedData);
|
|
1872
|
+
}
|
|
1873
|
+
setData(newData);
|
|
1874
|
+
}
|
|
1875
|
+
});
|
|
1876
|
+
}, [latestMiddleware, placement, direction, strategy, onPosition]);
|
|
1877
|
+
useLayoutEffect(() => {
|
|
1878
|
+
isMountedRef.current = true;
|
|
1879
|
+
return () => {
|
|
1880
|
+
isMountedRef.current = false;
|
|
1881
|
+
};
|
|
1882
|
+
}, []);
|
|
1883
|
+
useLayoutEffect(() => {
|
|
1884
|
+
if (reference && floating) {
|
|
1885
|
+
if (whileElementsMountedRef.current) {
|
|
1886
|
+
return whileElementsMountedRef.current(reference, floating, update);
|
|
1887
|
+
}
|
|
1888
|
+
else {
|
|
1889
|
+
update();
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
}, [reference, floating, update, whileElementsMountedRef]);
|
|
1893
|
+
const setReference = useCallback((node) => {
|
|
1894
|
+
if (referenceRef.current !== node) {
|
|
1895
|
+
referenceRef.current = node;
|
|
1896
|
+
_setReference(node);
|
|
1897
|
+
}
|
|
1898
|
+
}, []);
|
|
1899
|
+
const setFloating = useCallback((node) => {
|
|
1900
|
+
if (floatingRef.current !== node) {
|
|
1901
|
+
floatingRef.current = node;
|
|
1902
|
+
_setFloating(node);
|
|
1903
|
+
}
|
|
1904
|
+
}, []);
|
|
1905
|
+
const refs = useMemo(() => ({ reference: referenceRef, floating: floatingRef }), []);
|
|
1906
|
+
return useMemo(() => ({
|
|
1907
|
+
...data,
|
|
1908
|
+
update,
|
|
1909
|
+
refs,
|
|
1910
|
+
reference: setReference,
|
|
1911
|
+
floating: setFloating
|
|
1912
|
+
}), [data, update, refs, setReference, setFloating]);
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
export { limitShift as a, arrow as b, size as c, autoUpdate as d, flip as f, logicalSide as l, offset as o, shift as s, useFloating as u };
|
|
1916
|
+
//# sourceMappingURL=useFloating-abfd69eb.js.map
|