@oracle/oraclejet-preact 20.1.1 → 20.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amd/AccordionItemMultiple-7cfecf03.js +1 -1
- package/amd/AccordionItemSingle-6c70951e.js +1 -1
- package/amd/BarChart-379e0e10.js +1 -1
- package/amd/{BaseButton-9bf908ec.js → BaseButton-5a0ad529.js} +2 -2
- package/amd/{BaseButton-9bf908ec.js.map → BaseButton-5a0ad529.js.map} +1 -1
- package/amd/BaseCardView-825b1327.js +1 -1
- package/amd/{BaseCardViewSelectionTest-ac780d4f.js → BaseCardViewSelectionTest-66f166ce.js} +2 -2
- package/amd/{BaseCardViewSelectionTest-ac780d4f.js.map → BaseCardViewSelectionTest-66f166ce.js.map} +1 -1
- package/amd/BaseDiagram-7757c344.js +1 -1
- package/amd/BaseRichSelection-57e02c2d.js +1 -1
- package/amd/BaseSelector-3c7b8b87.js +1 -1
- package/amd/BaseSwatchView-2c401b4d.js +1 -1
- package/amd/BaseTabBarItem-6e22fcbc.js +1 -1
- package/amd/Button-e5d7c0e3.js +2 -0
- package/amd/{Button-d541cd67.js.map → Button-e5d7c0e3.js.map} +1 -1
- package/amd/ButtonSet-9f26cc51.js +1 -1
- package/amd/ButtonSetButton-ded680bb.js +1 -1
- package/amd/ButtonSetIconButton-b64b0830.js +1 -1
- package/amd/{Center-27a71002.js → Center-17925696.js} +2 -2
- package/amd/{Center-27a71002.js.map → Center-17925696.js.map} +1 -1
- package/amd/Chart-57d1c518.js +1 -1
- package/amd/Checkbox-3e80f017.js +1 -1
- package/amd/CheckboxControl-0746682f.js +1 -1
- package/amd/CheckboxRadioField-03179844.js +1 -1
- package/amd/CheckboxRadioLabelValueLayout-b728e6ec.js +1 -1
- package/amd/CheckboxSetContext-2e486ea8.js +2 -0
- package/{es/CheckboxSetContext-1be56556.js.map → amd/CheckboxSetContext-2e486ea8.js.map} +1 -1
- package/amd/Chip-8280de2e.js +1 -1
- package/amd/ClearIcon-a066df59.js +1 -1
- package/amd/CollapseIcon-a62fd41c.js +1 -1
- package/amd/Collapsible-0bf0c371.js +1 -1
- package/amd/CollapsibleNavigationList-91858994.js +1 -1
- package/amd/ColorPalette-43ffde6d.js +2 -0
- package/amd/{ColorPalette-f05a9dad.js.map → ColorPalette-43ffde6d.js.map} +1 -1
- package/amd/ColorPicker-3b4180e9.js +2 -0
- package/amd/{ColorPicker-236d84f0.js.map → ColorPicker-3b4180e9.js.map} +1 -1
- package/amd/ColorSwatch-52a06d25.js +1 -1
- package/amd/ComboChart-9cc157af.js +1 -1
- package/amd/CompactHelpSource-09ac9fe1.js +1 -1
- package/amd/CompactLabelAssistance-65c63769.js +2 -0
- package/amd/{CompactLabelAssistance-7bb76228.js.map → CompactLabelAssistance-65c63769.js.map} +1 -1
- package/amd/CompactUserAssistance-2fc90192.js +1 -1
- package/amd/ComponentMessageContainer-d5d70f71.js +1 -1
- package/amd/ConveyorBelt-e54ce1f7.js +1 -1
- package/amd/{DatePicker-89255880.js → DatePicker-ed971798.js} +2 -2
- package/amd/{DatePicker-89255880.js.map → DatePicker-ed971798.js.map} +1 -1
- package/amd/DatePickerHeader-b75e4c72.js +1 -1
- package/amd/{Dialog-ed9c4105.js → Dialog-9a4dbe57.js} +2 -2
- package/amd/{Dialog-ed9c4105.js.map → Dialog-9a4dbe57.js.map} +1 -1
- package/amd/DirectionalCollapseArrowIcon-ddc18f4b.js +1 -1
- package/amd/DirectionalExpandArrowIcon-9c710193.js +1 -1
- package/amd/DragHandle-29eba15d.js +2 -0
- package/amd/{DragHandle-652ffa0f.js.map → DragHandle-29eba15d.js.map} +1 -1
- package/amd/{DrawerPopup-ff31d785.js → DrawerPopup-c9e6374e.js} +2 -2
- package/amd/{DrawerPopup-ff31d785.js.map → DrawerPopup-c9e6374e.js.map} +1 -1
- package/amd/{Dropdown-d1438b58.js → Dropdown-9eed614a.js} +2 -2
- package/amd/{Dropdown-d1438b58.js.map → Dropdown-9eed614a.js.map} +1 -1
- package/amd/EmbeddedIconButton-d1472ac1.js +2 -0
- package/amd/{EmbeddedIconButton-c3cb14c0.js.map → EmbeddedIconButton-d1472ac1.js.map} +1 -1
- package/amd/{EnvironmentProvider-75ba928e.js → EnvironmentProvider-403bf554.js} +2 -2
- package/amd/{EnvironmentProvider-75ba928e.js.map → EnvironmentProvider-403bf554.js.map} +1 -1
- package/amd/ExpandableList-d7b3d65c.js +1 -1
- package/amd/Expander-683df228.js +1 -1
- package/amd/FilePicker-9e24c421.js +1 -1
- package/amd/FlatTreeView-5de96ffd.js +1 -1
- package/amd/Flex-4b81b412.js +2 -0
- package/amd/{Flex-71f83c12.js.map → Flex-4b81b412.js.map} +1 -1
- package/amd/{Floating-08c98ebd.js → Floating-9d6ab071.js} +2 -2
- package/amd/{Floating-08c98ebd.js.map → Floating-9d6ab071.js.map} +1 -1
- package/amd/FormLayout-023ab8de.js +1 -1
- package/amd/Gantt-cdd9d3cb.js +1 -1
- package/amd/{Grid-5324e17b.js → Grid-caac1c86.js} +2 -2
- package/amd/{Grid-5324e17b.js.map → Grid-caac1c86.js.map} +1 -1
- package/amd/GroupLoadingIndicator-4daed099.js +1 -1
- package/amd/HighlightText-ee76c447.js +2 -0
- package/amd/{HighlightText-365ba020.js.map → HighlightText-ee76c447.js.map} +1 -1
- package/amd/Icon-b9a01da9.js +1 -1
- package/amd/IconButton-d78fe636.js +1 -1
- package/amd/IconMenuButton-74b41e62.js +1 -1
- package/amd/IconProgressButton-28f72faa.js +1 -1
- package/amd/IconSwitchButton-22893e1f.js +1 -1
- package/amd/IconToggleButton-9f1c8265.js +1 -1
- package/amd/{IconUserAssistance-e80bf779.js → IconUserAssistance-682b85a2.js} +2 -2
- package/amd/{IconUserAssistance-e80bf779.js.map → IconUserAssistance-682b85a2.js.map} +1 -1
- package/amd/Indexer-27340b0e.js +1 -1
- package/amd/InlineHelpSource-8d8b6a8b.js +1 -1
- package/amd/InlineSelectSingle-4e6a631c.js +1 -1
- package/amd/InlineUserAssistance-91f9ace1.js +1 -1
- package/amd/InputColor-3eca248b.js +2 -0
- package/amd/{InputColor-a1fcd3b3.js.map → InputColor-3eca248b.js.map} +1 -1
- package/amd/InputDateMask-acdfc589.js +1 -1
- package/amd/InputDatePicker-22518a24.js +2 -0
- package/amd/{InputDatePicker-b16a1592.js.map → InputDatePicker-22518a24.js.map} +1 -1
- package/amd/InputPassword-9a1d268d.js +1 -1
- package/amd/InputSensitiveText-e6519508.js +1 -1
- package/amd/InputText-8712623e.js +1 -1
- package/amd/Label-286bacb8.js +1 -1
- package/amd/LabelValueLayout-36bc12e2.js +1 -1
- package/amd/{Layer-64bf71ad.js → Layer-1971eddb.js} +2 -2
- package/amd/{Layer-64bf71ad.js.map → Layer-1971eddb.js.map} +1 -1
- package/amd/{LayerHost-1a734852.js → LayerHost-0b288129.js} +2 -2
- package/amd/{LayerHost-1a734852.js.map → LayerHost-0b288129.js.map} +1 -1
- package/amd/LayerManager-426c669d.js +2 -0
- package/amd/{LayerManager-5ba8e6ed.js.map → LayerManager-426c669d.js.map} +1 -1
- package/amd/Legend-e09a1733.js +1 -1
- package/amd/LineAreaChart-08247f99.js +1 -1
- package/amd/Link-20f7e72d.js +1 -1
- package/amd/List-8d95a024.js +1 -1
- package/amd/{ListItemLayout-23390b90.js → ListItemLayout-2dbba38a.js} +2 -2
- package/amd/{ListItemLayout-23390b90.js.map → ListItemLayout-2dbba38a.js.map} +1 -1
- package/amd/ListView-fe5d340a.js +1 -1
- package/amd/LiveRegion-dbefb95b.js +2 -0
- package/amd/{LiveRegion-1553833d.js.map → LiveRegion-dbefb95b.js.map} +1 -1
- package/amd/{MaxLengthLiveRegion-5172c87a.js → MaxLengthLiveRegion-8f9f7247.js} +2 -2
- package/amd/{MaxLengthLiveRegion-5172c87a.js.map → MaxLengthLiveRegion-8f9f7247.js.map} +1 -1
- package/amd/Menu-4b445ba5.js +1 -1
- package/amd/MenuButton-8428a792.js +1 -1
- package/amd/MenuItem-f3de5e35.js +1 -1
- package/amd/Message-bbea21c4.js +1 -1
- package/amd/MessageBanner-5c18f23c.js +1 -1
- package/amd/MessageLayer-cb7cbb34.js +2 -0
- package/amd/{MessageLayer-24870def.js.map → MessageLayer-cb7cbb34.js.map} +1 -1
- package/amd/MessageToast-9e27adaa.js +1 -1
- package/amd/MessagesManager-4d5f6217.js +1 -1
- package/amd/MeterBar-e8e95881.js +1 -1
- package/amd/MeterCircle-46d479de.js +1 -1
- package/amd/Modal-95bf034f.js +1 -1
- package/amd/{MonthView-15e7e2cc.js → MonthView-93a866a6.js} +2 -2
- package/amd/{MonthView-15e7e2cc.js.map → MonthView-93a866a6.js.map} +1 -1
- package/amd/NavigationListItem-dea4c9e9.js +1 -1
- package/amd/NavigationListLinkItem-e376a039.js +1 -1
- package/amd/NumberInputText-4a58ed41.js +1 -1
- package/amd/OverflowTabBarItem-f23d35fd.js +1 -1
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_BaseDiagram.js +1 -1
- package/amd/PRIVATE_BaseSelector.js +1 -1
- package/amd/PRIVATE_BaseSwatchView.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_CollapsibleNavigationList.js +1 -1
- package/amd/PRIVATE_DatePickerHeader.js +1 -1
- package/amd/PRIVATE_DatePickerLayout.js +1 -1
- package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
- package/amd/PRIVATE_Expander.js +1 -1
- package/amd/PRIVATE_FormControls.js +1 -1
- package/amd/PRIVATE_IconSwitchButton.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxCrossed.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
- package/amd/PRIVATE_Icons/DragV.js +1 -1
- package/amd/PRIVATE_Icons/None.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_MessageLayer.js +1 -1
- package/amd/PRIVATE_MonthView.js +1 -1
- package/amd/PRIVATE_MonthYearGridView.js +1 -1
- package/amd/PRIVATE_PlotArea.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_StyledCard.js +1 -1
- package/amd/PRIVATE_StyledCheckbox.js +1 -1
- package/amd/PRIVATE_StyledSwitch.js +1 -1
- package/amd/PRIVATE_SwatchFlexView.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_TableDisplay.js +1 -1
- package/amd/PRIVATE_TableList.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/None.js +1 -1
- package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
- package/amd/PRIVATE_TimeComponent.js +1 -1
- package/amd/PRIVATE_TruncatingLink.js +1 -1
- package/amd/PRIVATE_VisOverview.js +1 -1
- package/amd/PRIVATE_VisStatusMessage.js +1 -1
- package/amd/PRIVATE_VisTabularDatatip.js +1 -1
- package/amd/PictoChart-1262b65e.js +1 -1
- package/amd/PieChart-0e4eacd7.js +1 -1
- package/amd/{Popup-575d49f7.js → Popup-feb5bf60.js} +2 -2
- package/amd/{Popup-575d49f7.js.map → Popup-feb5bf60.js.map} +1 -1
- package/amd/{ProgressBar-4074bb67.js → ProgressBar-d7aa356a.js} +2 -2
- package/amd/{ProgressBar-4074bb67.js.map → ProgressBar-d7aa356a.js.map} +1 -1
- package/amd/ProgressButton-71c1dda9.js +1 -1
- package/amd/ProgressButtonLabelLayout-4f7aa87d.js +1 -1
- package/amd/{ProgressCircle-df7641ef.js → ProgressCircle-8a94e670.js} +2 -2
- package/amd/{ProgressCircle-df7641ef.js.map → ProgressCircle-8a94e670.js.map} +1 -1
- package/amd/RadioItem-c5f0676c.js +1 -1
- package/amd/RadioSet-c3ad77d7.js +1 -1
- package/amd/RatingGauge-d0e95f46.js +1 -1
- package/amd/ReadonlyTextFieldInput-41384d7e.js +1 -1
- package/amd/{ReferenceLineArea-27698a8f.js → ReferenceLineArea-450530dd.js} +2 -2
- package/amd/{ReferenceLineArea-27698a8f.js.map → ReferenceLineArea-450530dd.js.map} +1 -1
- package/amd/RemovableNavigationListItem-5e5a9068.js +1 -1
- package/amd/RemovableTabBarItem-ce314e8b.js +1 -1
- package/amd/ReorderableTabBar-3ff37ba7.js +1 -1
- package/amd/RevealToggleIcon-bd35b257.js +1 -1
- package/amd/ScatterChart-af0d8118.js +1 -1
- package/amd/SectionalLegend-aa7254ff.js +1 -1
- package/amd/{SectionedContent-32ec078e.js → SectionedContent-a89bafc6.js} +2 -2
- package/amd/{SectionedContent-32ec078e.js.map → SectionedContent-a89bafc6.js.map} +1 -1
- package/amd/SegmentStyles.styles.css +12 -9
- package/amd/SegmentStyles.styles2.css +9 -12
- package/amd/SelectMobileFieldInput-b1524b1e.js +1 -1
- package/amd/SelectMultiple-f70618cf.js +1 -1
- package/amd/SelectSingle-971886ab.js +1 -1
- package/amd/{SelectorAll-e9acae58.js → SelectorAll-6652fd3f.js} +2 -2
- package/amd/{SelectorAll-e9acae58.js.map → SelectorAll-6652fd3f.js.map} +1 -1
- package/amd/Sheet-1d02491d.js +1 -1
- package/amd/SortControl-ec2db600.js +1 -1
- package/amd/SplitMenuButton-bf59897c.js +1 -1
- package/amd/StyledCard-4baafee3.js +1 -1
- package/amd/{StyledLabelValueLayout-16ac9a5e.js → StyledLabelValueLayout-907bc2d3.js} +2 -2
- package/amd/{StyledLabelValueLayout-16ac9a5e.js.map → StyledLabelValueLayout-907bc2d3.js.map} +1 -1
- package/amd/StyledSwitch-0881e505.js +1 -1
- package/amd/StyledTextField-f533c9e9.js +1 -1
- package/amd/Submenu-99c05da1.js +1 -1
- package/amd/TabBar-8ab0fd0d.js +1 -1
- package/amd/TabBarContextMenu-06f7beb2.js +1 -1
- package/amd/TabBarLayout-4eb6c732.js +1 -1
- package/amd/TabBarMixed-41258b80.js +1 -1
- package/amd/{TabBarMixedSeparator-c77d8e96.js → TabBarMixedSeparator-019d266b.js} +2 -2
- package/amd/{TabBarMixedSeparator-c77d8e96.js.map → TabBarMixedSeparator-019d266b.js.map} +1 -1
- package/amd/Table-2d35f829.js +1 -1
- package/amd/TableColGroup-30abc1ce.js +1 -1
- package/amd/TableDisplay-e3a86f26.js +1 -1
- package/amd/TagCloud-4970d243.js +1 -1
- package/amd/TextArea-6b324b42.js +1 -1
- package/amd/TextAreaAutosize-5d9bf2b2.js +1 -1
- package/amd/TextField-1da09ebc.js +1 -1
- package/amd/TextFieldInput-f8635c62.js +1 -1
- package/amd/Theme-redwood/theme.css +147 -147
- package/amd/Theme-stable/theme.css +255 -255
- package/amd/TimeComponentCanvas2D-a17f51f1.js +1 -1
- package/amd/ToggleButton-c9e433d4.js +1 -1
- package/amd/Toolbar-663b9254.js +1 -1
- package/amd/TruncatingBadge-80a8c903.js +1 -1
- package/amd/TruncatingLink-aa577ffc.js +1 -1
- package/amd/TruncatingText-bdbdd4d4.js +1 -1
- package/amd/UNSAFE_AccordionItemMultiple.js +1 -1
- package/amd/UNSAFE_AccordionItemSingle.js +1 -1
- package/amd/UNSAFE_ActionCard.js +1 -1
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_BareButton.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_ButtonSet.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_ButtonSetMultiple.js +1 -1
- package/amd/UNSAFE_ButtonSetSingle.js +1 -1
- package/amd/UNSAFE_Card.js +1 -1
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_Center.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_CheckboxRadioField.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js.map +1 -1
- package/amd/UNSAFE_Chip.js +1 -1
- package/amd/UNSAFE_Collapsible.js +1 -1
- package/amd/UNSAFE_ColorPalette.js +1 -1
- package/amd/UNSAFE_ColorPicker.js +1 -1
- package/amd/UNSAFE_ColorSwatch.js +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_ContainerDiagram.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_DragHandle.js +1 -1
- package/amd/UNSAFE_DrawerLayout.js +1 -1
- package/amd/UNSAFE_DrawerPopup.js +1 -1
- package/amd/UNSAFE_Dropdown.js +1 -1
- package/amd/UNSAFE_Environment.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_FilePicker.js +1 -1
- package/amd/UNSAFE_FlatTreeView.js +1 -1
- package/amd/UNSAFE_Flex.js +1 -1
- package/amd/UNSAFE_Floating.js +1 -1
- package/amd/UNSAFE_FormLayout.js +1 -1
- package/amd/UNSAFE_Gantt.js +1 -1
- package/amd/UNSAFE_Grid.js +1 -1
- package/amd/UNSAFE_HighlightText.js +1 -1
- package/amd/UNSAFE_Icon.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_InlineSelectSingle.js +1 -1
- package/amd/UNSAFE_InputColor.js +1 -1
- package/amd/UNSAFE_InputDateMask/themes/SegmentStyles.css.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/themes/SegmentStyles.css.js +1 -1
- package/amd/UNSAFE_InputTimeMask.js +1 -1
- package/amd/UNSAFE_InputTimeMask.js.map +1 -1
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_LabelValueLayout.js +1 -1
- package/amd/UNSAFE_LabelledLink.js +1 -1
- package/amd/UNSAFE_Layer.js +1 -1
- package/amd/UNSAFE_Legend.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListItemLayout.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_LiveRegion.js +1 -1
- package/amd/UNSAFE_Menu.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_MeterBar.js +1 -1
- package/amd/UNSAFE_MeterCircle.js +1 -1
- package/amd/UNSAFE_Modal.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_PieChart/__test__/PieChart.spec.js +1 -1
- package/amd/UNSAFE_PieChart.js +1 -1
- package/amd/UNSAFE_Popup.js +1 -1
- package/amd/UNSAFE_ProgressBar.js +1 -1
- package/amd/UNSAFE_ProgressButton.js +1 -1
- package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
- package/amd/UNSAFE_ProgressCircle.js +1 -1
- package/amd/UNSAFE_RadioItem.js +1 -1
- package/amd/UNSAFE_RadioSet.js +1 -1
- package/amd/UNSAFE_RatingGauge.js +1 -1
- package/amd/UNSAFE_ReorderableTabBar.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_RichSelectionItem.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SectionalLegend.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_SelectionCard.js +1 -1
- package/amd/UNSAFE_Selector.js +1 -1
- package/amd/UNSAFE_SelectorAll.js +1 -1
- package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
- package/amd/UNSAFE_Sheet.js +1 -1
- package/amd/UNSAFE_SortControl.js +1 -1
- package/amd/UNSAFE_SplitMenuButton.js +1 -1
- package/amd/UNSAFE_Switch.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_TextField.js +1 -1
- package/amd/UNSAFE_ToggleButton.js +1 -1
- package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
- package/amd/UNSAFE_Toolbar.js +1 -1
- package/amd/UNSAFE_Train.js +1 -1
- package/amd/UNSAFE_TruncatingBadge.js +1 -1
- package/amd/UNSAFE_TruncatingText.js +1 -1
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_View.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/UNSAFE_VisInvalidDataMessage.js +1 -1
- package/amd/UNSAFE_VisNoDataMessage.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
- package/amd/UNSAFE_WindowOverlay.js +1 -1
- package/amd/{View-215ec211.js → View-35699bb2.js} +2 -2
- package/amd/{View-215ec211.js.map → View-35699bb2.js.map} +1 -1
- package/amd/{VisInvalidDataMessage-139a0bf8.js → VisInvalidDataMessage-8e7534a7.js} +2 -2
- package/amd/{VisInvalidDataMessage-139a0bf8.js.map → VisInvalidDataMessage-8e7534a7.js.map} +1 -1
- package/amd/VisNoDataMessage-fc41dae3.js +2 -0
- package/amd/{VisNoDataMessage-e4eb08f6.js.map → VisNoDataMessage-fc41dae3.js.map} +1 -1
- package/amd/{VisPlaceholder-a7cac338.js → VisPlaceholder-1bbfb2f0.js} +2 -2
- package/amd/{VisPlaceholder-a7cac338.js.map → VisPlaceholder-1bbfb2f0.js.map} +1 -1
- package/amd/{VisProgressiveLoader-10192b41.js → VisProgressiveLoader-eeac2e00.js} +2 -2
- package/amd/{VisProgressiveLoader-10192b41.js.map → VisProgressiveLoader-eeac2e00.js.map} +1 -1
- package/amd/{VisStatusMessage-307f20e9.js → VisStatusMessage-ac3a90aa.js} +2 -2
- package/amd/{VisStatusMessage-307f20e9.js.map → VisStatusMessage-ac3a90aa.js.map} +1 -1
- package/amd/{VisTabularDatatip-d6b9f28f.js → VisTabularDatatip-93d56ae8.js} +2 -2
- package/amd/{VisTabularDatatip-d6b9f28f.js.map → VisTabularDatatip-93d56ae8.js.map} +1 -1
- package/amd/{WindowOverlay-55232139.js → WindowOverlay-11d88211.js} +2 -2
- package/amd/{WindowOverlay-55232139.js.map → WindowOverlay-11d88211.js.map} +1 -1
- package/amd/{YearsGridView-ef191926.js → YearsGridView-09b45b4e.js} +2 -2
- package/amd/{YearsGridView-ef191926.js.map → YearsGridView-09b45b4e.js.map} +1 -1
- package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
- package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
- package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
- package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
- package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
- package/amd/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
- package/amd/hooks/PRIVATE_useCssVars.js +1 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/amd/hooks/PRIVATE_useDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useDetectHorizontalOverflow.js +1 -1
- package/amd/hooks/PRIVATE_useFloating.js +1 -1
- package/amd/hooks/PRIVATE_useItemAction.js +1 -1
- package/amd/hooks/PRIVATE_useListCommon.js +1 -1
- package/amd/hooks/PRIVATE_useOutsideMousedown.js +1 -1
- package/amd/hooks/PRIVATE_useRadioFocusManager.js +1 -1
- package/amd/hooks/PRIVATE_useReorderable.js +1 -1
- package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
- package/amd/hooks/PRIVATE_useSelection.js +1 -1
- package/amd/hooks/PRIVATE_useTabBar.js +1 -1
- package/amd/hooks/PRIVATE_useTabbableModeSet.js +1 -1
- package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
- package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
- package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
- package/amd/hooks/UNSAFE_useBareButton.js +1 -1
- package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
- package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
- package/amd/hooks/UNSAFE_useDensity.js +1 -1
- package/amd/hooks/UNSAFE_useHiddenTestMethod.js +1 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/amd/hooks/UNSAFE_useScale.js +1 -1
- package/amd/hooks/UNSAFE_useTestId.js +1 -1
- package/amd/hooks/UNSAFE_useTheme.js +1 -1
- package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
- package/amd/hooks/UNSAFE_useTooltip.js +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/amd/hooks/UNSAFE_useUser.js +1 -1
- package/amd/{index-4f562976.js → index-5899fd61.js} +2 -2
- package/amd/index-5899fd61.js.map +1 -0
- package/amd/listViewSelectionTests-c5492828.js +1 -1
- package/amd/popupUtils-d42db8bf.js +2 -0
- package/amd/{popupUtils-71ea5dd1.js.map → popupUtils-d42db8bf.js.map} +1 -1
- package/amd/render-0e124b25.js +2 -0
- package/amd/{render-40923005.js.map → render-0e124b25.js.map} +1 -1
- package/amd/{tabbableUtils-7fa099af.js → tabbableUtils-0f5a148a.js} +2 -2
- package/amd/{tabbableUtils-7fa099af.js.map → tabbableUtils-0f5a148a.js.map} +1 -1
- package/amd/{testData-db08ddc1.js → testData-0ee09770.js} +2 -2
- package/amd/{testData-db08ddc1.js.map → testData-0ee09770.js.map} +1 -1
- package/amd/{testData-d92d6bdb.js → testData-c84b4335.js} +2 -2
- package/amd/{testData-d92d6bdb.js.map → testData-c84b4335.js.map} +1 -1
- package/amd/{tooltipUtils-0761844d.js → tooltipUtils-66f3844a.js} +2 -2
- package/amd/{tooltipUtils-0761844d.js.map → tooltipUtils-66f3844a.js.map} +1 -1
- package/amd/useBareButton-0afa84c2.js +1 -1
- package/amd/useCellNavigation-fe5a7be7.js +1 -1
- package/amd/useChartContextMenu-1490ade6.js +1 -1
- package/amd/{useChartDatatip-1255260f.js → useChartDatatip-1dc977ae.js} +2 -2
- package/amd/{useChartDatatip-1255260f.js.map → useChartDatatip-1dc977ae.js.map} +1 -1
- package/amd/{useColorScheme-6cb3a3b7.js → useColorScheme-097c31ff.js} +2 -2
- package/amd/{useColorScheme-6cb3a3b7.js.map → useColorScheme-097c31ff.js.map} +1 -1
- package/amd/useContextMenu-c4fc924d.js +1 -1
- package/amd/{useCssVars-d0c0bfa2.js → useCssVars-3194b2f6.js} +2 -2
- package/amd/{useCssVars-d0c0bfa2.js.map → useCssVars-3194b2f6.js.map} +1 -1
- package/amd/{useCurrentBgColor-3044b50a.js → useCurrentBgColor-6f440613.js} +2 -2
- package/amd/{useCurrentBgColor-3044b50a.js.map → useCurrentBgColor-6f440613.js.map} +1 -1
- package/amd/useCurrentKey-5749e7fb.js +2 -0
- package/amd/{useCurrentKey-05038cac.js.map → useCurrentKey-5749e7fb.js.map} +1 -1
- package/amd/{useDatatip-656c8df6.js → useDatatip-df022581.js} +2 -2
- package/amd/{useDatatip-656c8df6.js.map → useDatatip-df022581.js.map} +1 -1
- package/amd/{useDensity-622a2d34.js → useDensity-8a10fc70.js} +2 -2
- package/amd/{useDensity-622a2d34.js.map → useDensity-8a10fc70.js.map} +1 -1
- package/amd/useDisplayValue-a15b1a34.js +1 -1
- package/amd/{useExpandCollapse-d8799966.js → useExpandCollapse-41860b2a.js} +2 -2
- package/amd/{useExpandCollapse-d8799966.js.map → useExpandCollapse-41860b2a.js.map} +1 -1
- package/amd/{useFloating-0bdf9133.js → useFloating-5cb85d2b.js} +2 -2
- package/amd/{useFloating-0bdf9133.js.map → useFloating-5cb85d2b.js.map} +1 -1
- package/amd/{useHiddenTestMethod-6bbe8a43.js → useHiddenTestMethod-8321d341.js} +2 -2
- package/amd/{useHiddenTestMethod-6bbe8a43.js.map → useHiddenTestMethod-8321d341.js.map} +1 -1
- package/amd/useKeyboardEvents-f0419128.js +2 -0
- package/amd/{useKeyboardEvents-191a444a.js.map → useKeyboardEvents-f0419128.js.map} +1 -1
- package/amd/useLegendContextMenu-9b6f6083.js +1 -1
- package/amd/useMeterDatatip-5598534c.js +2 -0
- package/amd/{useMeterDatatip-d6977d41.js.map → useMeterDatatip-5598534c.js.map} +1 -1
- package/amd/useNavigation-8d7dae30.js +1 -1
- package/amd/{useOutsideClick-ace4f686.js → useOutsideClick-b9b661a4.js} +2 -2
- package/amd/{useOutsideClick-ace4f686.js.map → useOutsideClick-b9b661a4.js.map} +1 -1
- package/amd/{useOutsideMousedown-62fa309c.js → useOutsideMousedown-cb88da60.js} +2 -2
- package/amd/{useOutsideMousedown-62fa309c.js.map → useOutsideMousedown-cb88da60.js.map} +1 -1
- package/amd/usePopupAnimation-dc282b02.js +2 -0
- package/amd/{usePopupAnimation-389749fc.js.map → usePopupAnimation-dc282b02.js.map} +1 -1
- package/amd/usePrefixSuffix-dd2cae55.js +2 -0
- package/amd/{usePrefixSuffix-7371ec52.js.map → usePrefixSuffix-dd2cae55.js.map} +1 -1
- package/amd/useRadioFocusManager-462e28eb.js +2 -0
- package/amd/{useRadioFocusManager-c613d2fc.js.map → useRadioFocusManager-462e28eb.js.map} +1 -1
- package/amd/{useReorderableItem-6ab59e42.js → useReorderableItem-0f9d7742.js} +2 -2
- package/amd/{useReorderableItem-6ab59e42.js.map → useReorderableItem-0f9d7742.js.map} +1 -1
- package/amd/{useRovingTabIndexContainer-a8b8ab8f.js → useRovingTabIndexContainer-9aa2fbcf.js} +2 -2
- package/amd/{useRovingTabIndexContainer-a8b8ab8f.js.map → useRovingTabIndexContainer-9aa2fbcf.js.map} +1 -1
- package/amd/{useScale-404175fb.js → useScale-04a448c3.js} +2 -2
- package/amd/{useScale-404175fb.js.map → useScale-04a448c3.js.map} +1 -1
- package/amd/useSelectCommon-be138f8d.js +1 -1
- package/amd/{useSelectDrill-a749b7f8.js → useSelectDrill-2a3c2b81.js} +2 -2
- package/amd/{useSelectDrill-a749b7f8.js.map → useSelectDrill-2a3c2b81.js.map} +1 -1
- package/amd/{useSelection-8f66e2ab.js → useSelection-00add7e4.js} +2 -2
- package/amd/{useSelection-8f66e2ab.js.map → useSelection-00add7e4.js.map} +1 -1
- package/amd/{useSelection-48cb7bdf.js → useSelection-aecb6b23.js} +2 -2
- package/amd/{useSelection-48cb7bdf.js.map → useSelection-aecb6b23.js.map} +1 -1
- package/amd/useTabBar-50c4da2d.js +1 -1
- package/amd/{useTabBarItemTooltip-0c13e9b4.js → useTabBarItemTooltip-fac844e2.js} +2 -2
- package/amd/{useTabBarItemTooltip-0c13e9b4.js.map → useTabBarItemTooltip-fac844e2.js.map} +1 -1
- package/amd/{useTestId-6160e7a2.js → useTestId-f4240cbd.js} +2 -2
- package/amd/{useTestId-6160e7a2.js.map → useTestId-f4240cbd.js.map} +1 -1
- package/amd/{useTheme-59bafcbb.js → useTheme-da27e1d1.js} +2 -2
- package/amd/{useTheme-59bafcbb.js.map → useTheme-da27e1d1.js.map} +1 -1
- package/amd/useThemeInterpolations-cc05b0f0.js +2 -0
- package/amd/{useThemeInterpolations-53e9343f.js.map → useThemeInterpolations-cc05b0f0.js.map} +1 -1
- package/amd/useTooltip-c8aaf38a.js +2 -0
- package/amd/{useTooltip-5615359f.js.map → useTooltip-c8aaf38a.js.map} +1 -1
- package/amd/{useTooltipControlled-0e181f1a.js → useTooltipControlled-af5409d4.js} +2 -2
- package/amd/{useTooltipControlled-0e181f1a.js.map → useTooltipControlled-af5409d4.js.map} +1 -1
- package/amd/useTooltipOnTruncation-129d7663.js +2 -0
- package/amd/{useTooltipOnTruncation-5c26fe42.js.map → useTooltipOnTruncation-129d7663.js.map} +1 -1
- package/amd/{useTranslationBundle-db326955.js → useTranslationBundle-e4dd341e.js} +2 -2
- package/amd/{useTranslationBundle-db326955.js.map → useTranslationBundle-e4dd341e.js.map} +1 -1
- package/amd/{useUser-e0677e8d.js → useUser-08901aba.js} +2 -2
- package/amd/{useUser-e0677e8d.js.map → useUser-08901aba.js.map} +1 -1
- package/amd/useVisDragModeControls-47a4f754.js +1 -1
- package/amd/{useVisEvents-4860cd24.js → useVisEvents-5f18ab46.js} +2 -2
- package/amd/{useVisEvents-4860cd24.js.map → useVisEvents-5f18ab46.js.map} +1 -1
- package/amd/utils/PRIVATE_collectionUtils.js +1 -1
- package/amd/utils/PRIVATE_tabBarUtils.js +1 -1
- package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
- package/amd/utils/PRIVATE_visTestUtils.js +1 -1
- package/amd/utils/UNSAFE_popupUtils.js +1 -1
- package/amd/{withDirectionIcon-07d1a4ee.js → withDirectionIcon-cea07c6e.js} +2 -2
- package/amd/{withDirectionIcon-07d1a4ee.js.map → withDirectionIcon-cea07c6e.js.map} +1 -1
- package/amd/withThemeProps-88ad9dea.js +1 -1
- package/cjs/{BaseCardView-b34fe51b.js → BaseCardView-5690e60a.js} +1 -4
- package/cjs/{BaseCardView-b34fe51b.js.map → BaseCardView-5690e60a.js.map} +1 -1
- package/cjs/{ColorPicker-24ef1a81.js → ColorPicker-3e500453.js} +2 -2
- package/cjs/{ColorPicker-24ef1a81.js.map → ColorPicker-3e500453.js.map} +1 -1
- package/cjs/PRIVATE_BaseCardView.js +1 -1
- package/cjs/PRIVATE_TableList.js +4 -4
- package/cjs/{TabBar-ab270d09.js → TabBar-a6629ef8.js} +1 -3
- package/cjs/{TabBar-ab270d09.js.map → TabBar-a6629ef8.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +152 -152
- package/cjs/Theme-stable/theme.css +164 -164
- package/cjs/UNSAFE_CardFlexView.js +1 -1
- package/cjs/UNSAFE_CardGridView.js +1 -1
- package/cjs/UNSAFE_ColorPicker.js +25 -25
- package/cjs/UNSAFE_InputColor.js +2 -2
- package/cjs/UNSAFE_ListView.js +53 -53
- package/cjs/UNSAFE_OverflowTabBar.js +10 -10
- package/cjs/UNSAFE_ReorderableTabBar.js +12 -12
- package/cjs/UNSAFE_TabBar.js +10 -10
- package/cjs/UNSAFE_TabBarMixed.js +8 -8
- package/es/{Chart-c9ad6478.js → Chart-ec6a48d2.js} +2 -2
- package/es/{Chart-c9ad6478.js.map → Chart-ec6a48d2.js.map} +1 -1
- package/es/CheckboxSet-ac2fc1ca.js +51 -0
- package/{amd/CheckboxSet-2242fd14.js.map → es/CheckboxSet-ac2fc1ca.js.map} +1 -1
- package/es/FormLayoutVariants.styles.css +14 -14
- package/es/FormLayoutVariants.styles2.css +14 -14
- package/es/PRIVATE_Chart.js +4 -4
- package/es/Theme-redwood/theme.css +435 -435
- package/es/Theme-stable/theme.css +552 -552
- package/es/UNSAFE_BarChart.js +4 -4
- package/es/UNSAFE_CheckboxItem.js +122 -61
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +15 -49
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_ComboChart.js +4 -4
- package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
- package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
- package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
- package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
- package/es/UNSAFE_FormLayout.js +1 -1
- package/es/UNSAFE_InputDatePicker.js +92 -92
- package/es/UNSAFE_LineAreaChart.js +4 -4
- package/es/UNSAFE_RichCheckboxSet.js +46 -42
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichSelectionItem.js +152 -89
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +4 -4
- package/es/UNSAFE_TextArea.js +226 -106
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +1 -1
- package/es/useTextAreaAltEnter-ac460f4c.js +61 -0
- package/es/useTextAreaAltEnter-ac460f4c.js.map +1 -0
- package/package.json +2 -2
- package/amd/Button-d541cd67.js +0 -2
- package/amd/CheckboxSet-2242fd14.js +0 -2
- package/amd/ColorPalette-f05a9dad.js +0 -2
- package/amd/ColorPicker-236d84f0.js +0 -2
- package/amd/CompactLabelAssistance-7bb76228.js +0 -2
- package/amd/DragHandle-652ffa0f.js +0 -2
- package/amd/EmbeddedIconButton-c3cb14c0.js +0 -2
- package/amd/Flex-71f83c12.js +0 -2
- package/amd/HighlightText-365ba020.js +0 -2
- package/amd/InputColor-a1fcd3b3.js +0 -2
- package/amd/InputDatePicker-b16a1592.js +0 -2
- package/amd/LayerManager-5ba8e6ed.js +0 -2
- package/amd/LiveRegion-1553833d.js +0 -2
- package/amd/MessageLayer-24870def.js +0 -2
- package/amd/VisNoDataMessage-e4eb08f6.js +0 -2
- package/amd/index-4f562976.js.map +0 -1
- package/amd/popupUtils-71ea5dd1.js +0 -2
- package/amd/render-40923005.js +0 -2
- package/amd/useCurrentKey-05038cac.js +0 -2
- package/amd/useKeyboardEvents-191a444a.js +0 -2
- package/amd/useMeterDatatip-d6977d41.js +0 -2
- package/amd/usePopupAnimation-389749fc.js +0 -2
- package/amd/usePrefixSuffix-7371ec52.js +0 -2
- package/amd/useRadioFocusManager-c613d2fc.js +0 -2
- package/amd/useThemeInterpolations-53e9343f.js +0 -2
- package/amd/useTooltip-5615359f.js +0 -2
- package/amd/useTooltipOnTruncation-5c26fe42.js +0 -2
- package/es/CheckboxSetContext-1be56556.js +0 -9
- package/es/TextArea-72682112.js +0 -225
- package/es/TextArea-72682112.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTooltipControlled-0e181f1a.js","sources":["../../src/hooks/UNSAFE_useTooltip/TooltipContent.tsx","../../src/hooks/UNSAFE_useTooltip/useTooltipControlled.tsx"],"sourcesContent":["import type { JSX } from 'preact';\nimport { useAnimation } from '../UNSAFE_useAnimation';\nimport { useComponentTheme } from '../UNSAFE_useComponentTheme';\nimport { useEffect, useRef } from 'preact/hooks';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\nimport {\n TooltipContentVariantOptions,\n TooltipContentStyles\n} from './themes/TooltipContentStyles.css';\n\nimport { useTestId, TestIdProps } from '../UNSAFE_useTestId';\nimport { useThemeInterpolations } from '../UNSAFE_useThemeInterpolations';\nimport { classNames } from '../../utils/UNSAFE_classNames';\nimport { TooltipContentRedwoodTheme } from './themes/redwood/TooltipContentTheme';\n\ntype IntrinsicProps = Pick<UnpackSignals<JSX.IntrinsicElements['div']>, 'children'>;\n\ntype Status = 'mounted' | 'unmounted';\n\ntype ContentProps = IntrinsicProps & {\n id: string;\n isOpen: boolean;\n isDatatip: boolean;\n onTransitionEnd?: () => void;\n} & TestIdProps;\n\nexport const TooltipContent = ({\n children,\n id,\n isOpen,\n isDatatip,\n onTransitionEnd,\n testId,\n ...props\n}: ContentProps) => {\n const wrapperRef = useRef<HTMLDivElement>(null);\n const popoverRef = useRef<HTMLDivElement>(null);\n\n const testIdProps = useTestId(testId);\n\n const { baseTheme, variantClasses, styles } = useComponentTheme<\n TooltipContentVariantOptions,\n TooltipContentStyles\n >(TooltipContentRedwoodTheme, {\n variant: isDatatip ? 'datatip' : 'tooltip'\n });\n\n const schemeClass = useThemeInterpolations();\n\n const { nodeRef } = useAnimation<Status, HTMLDivElement>(isOpen ? 'mounted' : 'unmounted', {\n animationStates: {\n mounted: (_node) => {\n const childNode = _node.firstChild as HTMLDivElement;\n return {\n from: {\n maxHeight: '0',\n opacity: '0%'\n },\n to: {\n maxHeight: `${childNode?.offsetHeight}px`,\n opacity: isDatatip ? '100%' : '95%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n },\n unmounted: (_node) => {\n return {\n from: {\n opacity: isDatatip ? '100%' : '95%'\n },\n to: {\n maxHeight: '0',\n opacity: '0%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n }\n },\n isAnimatedOnMount: true,\n onAnimationEnd: () => onTransitionEnd?.()\n });\n\n // Set up initial wrapper height so Tooltip can animate from the bottom to the top\n useEffect(() => {\n if (wrapperRef.current && popoverRef.current?.offsetHeight) {\n wrapperRef.current.style.height = `${popoverRef.current?.offsetHeight}px`;\n }\n }, []);\n\n return (\n <div\n ref={wrapperRef}\n id={id}\n role=\"tooltip\"\n class={classNames([styles.wrapper, schemeClass, baseTheme])}\n {...testIdProps}>\n <div ref={nodeRef} class={styles.inner} {...props}>\n <div ref={popoverRef} class={classNames([variantClasses, styles.content])}>\n {children}\n </div>\n </div>\n </div>\n );\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChild } from 'preact';\nimport { useState, useRef, useEffect, useCallback } from 'preact/hooks';\nimport { useId } from '../UNSAFE_useId';\nimport { Placement, Coords } from '../../UNSAFE_Floating';\nimport { useHover } from '../UNSAFE_useHover';\nimport { useFocus } from '../UNSAFE_useFocus';\nimport { useTouch } from '../UNSAFE_useTouch';\nimport { mergeProps } from '../../utils/UNSAFE_mergeProps';\nimport { TooltipContent } from './TooltipContent';\nimport { useColorScheme } from '../UNSAFE_useColorScheme';\nimport { TestIdProps } from '../UNSAFE_useTestId';\nimport {\n getGlobalTooltipManager,\n getWrappedTooltipContent,\n SHOW_TOOLTIP_DELAY,\n HIDE_TOOLTIP_DELAY\n} from '../../utils/PRIVATE_tooltipUtils';\n\nexport type Position = Omit<Placement, 'center'>;\n\nexport const anchorTos = ['element', 'pointer'] as const;\ntype AnchorTo = (typeof anchorTos)[number];\n\ntype AnchorModel = { x: AnchorTo; y: AnchorTo };\n\ntype Props = {\n text?: string;\n variant?: 'tooltip' | 'datatip';\n isOpen: boolean;\n position?: Position;\n isDisabled?: boolean;\n focusStrategy?: 'browser' | 'logical';\n anchor?: AnchorModel;\n offset?: { mainAxis?: number; crossAxis?: number };\n onToggle?: (details: { value: boolean }) => void;\n displayOnHover?: boolean;\n dismissOnClick?: boolean;\n} & TestIdProps;\n\n/**\n * The 'mounting' and 'unmounting' states are related to the animation. The 'unmounted' state\n * is used for conditional rendering. In this state, the Tooltip content is completely removed\n * from the DOM. The 'mountPending' and 'unmountPending' are used when timeout is active.\n * The 'reposition' state is used to trigger a transition with new coordinates within\n * the same element.\n */\ntype Status =\n | 'unmounted'\n | 'mountPending'\n | 'mounting'\n | 'mounted'\n | 'unmountPending'\n | 'unmounting';\n\nexport const useTooltipControlled = ({\n text,\n isOpen = false,\n variant = 'tooltip',\n position = 'bottom',\n displayOnHover = true,\n dismissOnClick = true,\n focusStrategy = 'browser',\n isDisabled = false,\n anchor = { x: 'element', y: 'element' },\n offset,\n onToggle,\n testId\n}: Props): {\n tooltipContent: ComponentChild;\n tooltipProps: Record<string, any>;\n} => {\n // Global TooltipManager singleton instance\n const globalTooltipManager = getGlobalTooltipManager();\n\n const disabled = isDisabled || !text;\n const isInitialRenderState = useRef<boolean>(true);\n\n const [state, _setState] = useState<Status>(!disabled && isOpen ? 'mounting' : 'unmounted');\n const stateRef = useRef<Status>(state);\n const setState = (newState: Status) => {\n stateRef.current = newState;\n _setState(newState);\n };\n\n // const tooltipId = useRef<string>(useId());\n\n const [needsUpdate, setNeedsUpdate] = useState<boolean>(false);\n setNeedsUpdate(false);\n\n const isDatatip = variant === 'datatip';\n\n const [isLogicalFocus, setLogicalFocus] = useState<boolean>(false);\n const isLogicalFocusStrategy = focusStrategy === 'logical';\n const isInitialRenderTrigger = useRef<boolean>(true);\n const { hoverProps, isHover } = useHover({ isDisabled: !displayOnHover });\n const { touchProps, isTouch } = useTouch({ isDisabled }); // TODO replace by useLongPress actionhook\n // we only care about keyboard focus, don't enable useFocus hook if isHover or isTouch are active\n const { focusProps, isFocus } = useFocus({\n isDisabled: isLogicalFocusStrategy\n });\n // only enable the popoverHover hook if the tooltip is actually open\n const { hoverProps: popoverHoverProps, isHover: popoverIsHover } = useHover({\n isDisabled: isDisabled || !isOpen\n });\n\n const isPointer = anchor.x === 'pointer' || anchor.y === 'pointer';\n\n const uniqueIdRef = useRef<string>(useId());\n const targetRef = useRef<HTMLElement | null>(null);\n const coordsRef = useRef<Coords>({ x: -9999, y: -9999 });\n // if anchor is set to pointer and target does not have keyboard focus, use coords\n const usedRef = isPointer && !isFocus ? coordsRef : targetRef;\n const showDelay = isDatatip ? 0 : SHOW_TOOLTIP_DELAY;\n const hideDelay = isDatatip ? 0 : HIDE_TOOLTIP_DELAY;\n const toggleTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const currentColorScheme = useColorScheme();\n\n const focusActive = useRef<boolean>(false);\n const hoverActive = useRef<boolean>(false);\n\n const toggleTimeoutClear = () => {\n if (toggleTimeoutRef.current) {\n clearTimeout(toggleTimeoutRef.current);\n toggleTimeoutRef.current = null;\n }\n };\n\n /*\n * This effect executes when isFocus/isLogicalFocus changes\n * - focusActive ref is set if the focus change follows a Tab key\n * - hoverActive ref is reset, if focusActive becomes true\n */\n useEffect(() => {\n if (isLogicalFocusStrategy) {\n focusActive.current = isLogicalFocus;\n } else {\n focusActive.current = isFocus && globalTooltipManager.isTabKeyActive();\n }\n if (focusActive.current) {\n hoverActive.current = false;\n }\n }, [isFocus, isLogicalFocus, isLogicalFocusStrategy, globalTooltipManager]);\n\n /*\n * This effect executes when isHover state changes\n * - focusActive ref is reset, if hoverActive becomes true\n */\n useEffect(() => {\n hoverActive.current = isHover;\n }, [isHover]);\n\n useEffect(() => {\n // inner function for state transitions on various trigger changes\n const updateState = (open: boolean) => {\n if (open && text) {\n // At least one toggle event is set to true\n switch (state) {\n case 'unmounted':\n setState('mountPending'); // Set mount pending state if tooltip is unmounted\n break;\n case 'unmounting': // Switch back to mounting when unmounting was in progress and the tooltip should stay on\n setState('mounting');\n onToggle?.({ value: true });\n break;\n case 'unmountPending':\n toggleTimeoutClear();\n setState('mounted'); // Clear timers immediately and keep the tooltip mounted\n break;\n }\n } else {\n // No toggle events are set to true\n switch (state) {\n case 'mounting':\n case 'mounted':\n setState('unmountPending'); // Set unmount pending state if tooltip is mounted or in mounting transition\n break;\n case 'mountPending':\n toggleTimeoutClear();\n __resetCoords();\n setState('unmounted'); // Unmount tooltip immediately if mounting is pending\n break;\n }\n }\n };\n\n if (isInitialRenderTrigger.current) {\n // On onitial render do not trigger rerender\n isInitialRenderTrigger.current = false;\n return;\n }\n // When pointer is used, handleMouseMove method is responsible for state updates\n // until the tooltip is mounted\n if (isPointer && isHover && state === 'unmounted') {\n return;\n }\n updateState(\n (isHover && hoverActive.current) ||\n ((isFocus || isLogicalFocus) && focusActive.current) ||\n popoverIsHover ||\n isTouch\n );\n }, [isHover, isFocus, isLogicalFocus, popoverIsHover, isTouch, isPointer, state, onToggle, text]);\n\n const destroyCallback = useCallback(() => {\n focusActive.current = false;\n hoverActive.current = false;\n onToggle?.({ value: false });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []); // don't want to depend on the 'onToggle' prop as some clients tend to pass a new callback on each render\n\n /*\n * Global mousedown handler to dismiss the tooltip on anchor click. This is especially needed\n * for Safari which does not fire mouse events during animations when the anchor moves (JET-72605).\n */\n const mouseDownHandler = useCallback(\n (event: MouseEvent) => {\n if (\n usedRef.current instanceof Element &&\n usedRef.current.contains(event.target as Element) &&\n dismissOnClick\n ) {\n toggleTimeoutClear();\n document.removeEventListener('mousedown', mouseDownHandler, true);\n destroyCallback();\n }\n },\n [dismissOnClick, usedRef, destroyCallback]\n );\n\n useEffect(() => {\n if (isInitialRenderState.current) {\n // On onitial render do not trigger rerender\n isInitialRenderState.current = false;\n return;\n }\n setState(isOpen ? 'mounting' : 'unmounting');\n }, [isOpen]);\n\n useEffect(() => {\n return () => {\n // make sure to clear the toggle timeout on unmount\n toggleTimeoutClear();\n // reset focusActive and hoverActive refs\n focusActive.current = false;\n hoverActive.current = false;\n };\n }, []);\n\n /*\n * This effect executes when the component state changes.\n * On 'mounted' state, the tooltip registers itself with the global tooltip manager.\n * On 'unmounted', the tooltip unregisters from the global tooltip manager.\n */\n useEffect(() => {\n if (state === 'mounting') {\n globalTooltipManager.register(destroyCallback);\n } else if (state === 'unmounted') {\n globalTooltipManager.unregister(destroyCallback);\n // clean up the mousedown handler just in case\n document.removeEventListener('mousedown', mouseDownHandler, true);\n }\n }, [state, destroyCallback, globalTooltipManager, mouseDownHandler]);\n\n /*\n * Set a timer to toggle the state afer the 'pending' period expires\n */\n useEffect(() => {\n if (!toggleTimeoutRef.current && (state === 'mountPending' || state === 'unmountPending')) {\n if (state === 'mountPending') {\n document.addEventListener('mousedown', mouseDownHandler, true);\n }\n toggleTimeoutRef.current = setTimeout(\n () => {\n toggleTimeoutClear();\n // make sure the state has not changed in the mean time before onToggle\n if (\n (state === 'mountPending' || state === 'unmountPending') &&\n state === stateRef.current\n ) {\n onToggle?.({ value: state === 'mountPending' });\n }\n },\n state === 'mountPending' ? showDelay : hideDelay\n );\n }\n return () => {\n toggleTimeoutClear();\n };\n }, [state, showDelay, hideDelay, onToggle, mouseDownHandler]);\n\n const handleMouseMove = (event: MouseEvent) => {\n // we only want track mouse move while the state is 'unmounted' or when moving a 'mounted' datatip\n if (state !== 'unmounted' && !(variant === 'datatip' && state === 'mounted')) {\n return;\n }\n const targetRect = targetRef?.current?.getBoundingClientRect();\n\n // Tooltip maintains static offset from left side of window\n const distanceX = document.body.scrollLeft + (targetRect?.left || 0) + (targetRect?.width || 0);\n\n // Tooltip maintains static offset from top side of the window\n const distanceY = document.body.scrollTop + (targetRect?.top || 0) + (targetRect?.height || 0);\n\n // Display tooltip at the mouse position if both anchors are set to pointer\n const x = anchor.x === 'pointer' ? event.clientX : distanceX;\n const y = anchor.y === 'pointer' ? event.clientY : distanceY;\n\n if (state === 'mounted') {\n coordsRef.current = { x, y };\n if (needsUpdate !== true) setNeedsUpdate(true);\n } else if (state === 'unmounted') {\n toggleTimeoutClear();\n toggleTimeoutRef.current = setTimeout(() => {\n if (state === 'unmounted') {\n coordsRef.current = { x, y };\n onToggle?.({ value: true });\n }\n }, hideDelay);\n }\n };\n\n const onLogicalFocus = (target: HTMLElement) => {\n setLogicalFocus(true);\n targetRef.current = target;\n usedRef.current = target;\n };\n\n const onLogicalBlur = () => {\n setLogicalFocus(false);\n };\n\n const onFocusCallback = useCallback((event: FocusEvent) => {\n targetRef.current = event.currentTarget as HTMLElement;\n }, []);\n\n const onBlurCallback = useCallback((event: FocusEvent) => {\n if (event.eventPhase === Event.AT_TARGET) {\n // reset focusActive flag\n focusActive.current = false;\n }\n }, []);\n\n const focusInitProps = isLogicalFocusStrategy\n ? {}\n : {\n onFocus: onFocusCallback,\n onBlur: onBlurCallback\n };\n\n const hoverInitProps = {\n onMouseEnter: useCallback((event: MouseEvent) => {\n targetRef.current = event.target as HTMLElement;\n }, [])\n };\n\n let actionableProps;\n\n const __resetCoords = () => {\n coordsRef.current = { x: -9999, y: -9999 };\n };\n\n if (disabled) {\n actionableProps = mergeProps(hoverProps, focusProps, hoverInitProps, focusInitProps);\n } else {\n const anchorInitProps = {\n 'aria-describedby': uniqueIdRef.current,\n\n ...(isPointer && {\n onMouseLeave: () => {\n if (state === 'mounting') {\n return;\n }\n toggleTimeoutClear();\n },\n onMouseMove: (event: MouseEvent) => {\n handleMouseMove(event);\n }\n })\n };\n actionableProps = mergeProps(\n hoverProps,\n focusProps,\n touchProps,\n hoverInitProps,\n focusInitProps,\n anchorInitProps,\n isLogicalFocusStrategy ? { onLogicalFocus, onLogicalBlur } : {}\n );\n }\n\n // No need to process tooltip if disabled or no text is provided\n // Include actionableProps to detect mouseenter in components\n // hovered state won't update unless actionableProps are already present in the component when mouse enters\n if (disabled) {\n toggleTimeoutClear();\n __resetCoords();\n return {\n tooltipContent: null,\n tooltipProps: actionableProps\n };\n }\n\n const placement = position as Placement;\n\n const handleTransitionEnd = () => {\n if (state === 'mounting') {\n setState('mounted');\n }\n if (state === 'unmounting') {\n __resetCoords();\n setState('unmounted');\n }\n };\n\n const renderRawContent = (\n <TooltipContent\n id={uniqueIdRef.current}\n testId={testId}\n isOpen={['mounting', 'mounted', 'unmountPending'].includes(state)}\n {...popoverHoverProps}\n isDatatip={isDatatip}\n onTransitionEnd={handleTransitionEnd}>\n {text}\n </TooltipContent>\n );\n\n const renderContent = getWrappedTooltipContent(\n renderRawContent,\n variant,\n currentColorScheme,\n usedRef,\n placement,\n offset\n );\n\n return {\n tooltipContent: !['unmounted', 'mountPending'].includes(state) && renderContent,\n tooltipProps: actionableProps\n };\n};\n"],"names":["TooltipContent","children","id","isOpen","isDatatip","onTransitionEnd","testId","props","wrapperRef","useRef","popoverRef","testIdProps","useTestId","baseTheme","variantClasses","styles","useComponentTheme","TooltipContentRedwoodTheme","variant","schemeClass","useThemeInterpolations","nodeRef","useAnimation","animationStates","mounted","_node","childNode","firstChild","from","maxHeight","opacity","to","offsetHeight","options","duration","easing","unmounted","isAnimatedOnMount","onAnimationEnd","useEffect","current","style","height","_jsx","jsx","ref","role","class","classNames","wrapper","inner","content","text","position","displayOnHover","dismissOnClick","focusStrategy","isDisabled","anchor","x","y","offset","onToggle","globalTooltipManager","getGlobalTooltipManager","disabled","isInitialRenderState","state","_setState","useState","stateRef","setState","newState","needsUpdate","setNeedsUpdate","isLogicalFocus","setLogicalFocus","isLogicalFocusStrategy","isInitialRenderTrigger","hoverProps","isHover","useHover","touchProps","isTouch","useTouch","focusProps","isFocus","useFocus","popoverHoverProps","popoverIsHover","isPointer","uniqueIdRef","useId","targetRef","coordsRef","usedRef","showDelay","SHOW_TOOLTIP_DELAY","hideDelay","HIDE_TOOLTIP_DELAY","toggleTimeoutRef","currentColorScheme","useColorScheme","focusActive","hoverActive","toggleTimeoutClear","clearTimeout","isTabKeyActive","open","value","__resetCoords","updateState","destroyCallback","useCallback","mouseDownHandler","event","Element","contains","target","document","removeEventListener","register","unregister","addEventListener","setTimeout","onLogicalFocus","onLogicalBlur","onFocusCallback","currentTarget","onBlurCallback","eventPhase","Event","AT_TARGET","focusInitProps","onFocus","onBlur","hoverInitProps","onMouseEnter","actionableProps","mergeProps","anchorInitProps","onMouseLeave","onMouseMove","targetRect","getBoundingClientRect","distanceX","body","scrollLeft","left","width","distanceY","scrollTop","top","clientX","clientY","handleMouseMove","tooltipContent","tooltipProps","placement","renderRawContent","includes","renderContent","getWrappedTooltipContent"],"mappings":"meA0BaA,EAAiB,EAC5BC,WACAC,KACAC,SACAC,YACAC,kBACAC,YACGC,MAEH,MAAMC,EAAaC,SAAuB,MACpCC,EAAaD,SAAuB,MAEpCE,EAAcC,YAAUN,IAExBO,UAAEA,EAASC,eAAEA,EAAcC,OAAEA,GAAWC,EAAAA,kBAG5CC,EAAAA,2BAA4B,CAC5BC,QAASd,EAAY,UAAY,YAG7Be,EAAcC,EAAAA,0BAEdC,QAAEA,GAAYC,EAAAA,aAAqCnB,EAAS,UAAY,YAAa,CACzFoB,gBAAiB,CACfC,QAAUC,IACR,MAAMC,EAAYD,EAAME,WACxB,MAAO,CACLC,KAAM,CACJC,UAAW,IACXC,QAAS,MAEXC,GAAI,CACFF,UA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,EAAiB,YAAbD,EAAOC,EAAkBwD,EAAMsC,QAAUR,EAC7CrF,EAAiB,YAAbF,EAAOE,EAAkBuD,EAAMuC,QAAUJ,EAErC,YAAVnF,GACF2B,EAAUtD,QAAU,CAAEmB,IAAGC,MACL,IAAhBa,GAAsBC,GAAe,IACtB,cAAVP,IACTsC,KACAL,EAAiB5D,QAAUoF,YAAW,KACtB,cAAVzD,IACF2B,EAAUtD,QAAU,CAAEmB,IAAGC,KACzBE,IAAW,CAAE+C,OAAO,IACrB,GACAX,GACJ,EAyDKyD,CAAgBxC,EAAM,IAI5BuB,GAAkBC,EAAAA,WAChB5D,EACAM,EACAH,EACAsD,GACAH,GACAO,EACA/D,EAAyB,CAAEgD,kBAAgBC,kBAAkB,CAAE,EAElE,CAKD,GAAI7D,EAGF,OAFAwC,KACAK,KACO,CACL8C,eAAgB,KAChBC,aAAcnB,IAIlB,MAAMoB,GAAYzG,EAYZ0G,GACJpH,EAAAA,IAAC3C,EACC,CAAAE,GAAIyF,EAAYnD,QAChBlC,OAAQA,EACRH,OAAQ,CAAC,WAAY,UAAW,kBAAkB6J,SAAS7F,MACvDqB,EACJpF,UAAWA,EACXC,gBAjBwB,KACZ,aAAV8D,GACFI,EAAS,WAEG,eAAVJ,IACF2C,KACAvC,EAAS,aACV,WAWEnB,IAIC6G,GAAgBC,EAAwBA,yBAC5CH,GACA7I,EACAmF,EACAN,EACA+D,GACAjG,GAGF,MAAO,CACL+F,gBAAiB,CAAC,YAAa,gBAAgBI,SAAS7F,IAAU8F,GAClEJ,aAAcnB,GACf"}
|
|
1
|
+
{"version":3,"file":"useTooltipControlled-af5409d4.js","sources":["../../src/hooks/UNSAFE_useTooltip/TooltipContent.tsx","../../src/hooks/UNSAFE_useTooltip/useTooltipControlled.tsx"],"sourcesContent":["import type { JSX } from 'preact';\nimport { useAnimation } from '../UNSAFE_useAnimation';\nimport { useComponentTheme } from '../UNSAFE_useComponentTheme';\nimport { useEffect, useRef } from 'preact/hooks';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\nimport {\n TooltipContentVariantOptions,\n TooltipContentStyles\n} from './themes/TooltipContentStyles.css';\n\nimport { useTestId, TestIdProps } from '../UNSAFE_useTestId';\nimport { useThemeInterpolations } from '../UNSAFE_useThemeInterpolations';\nimport { classNames } from '../../utils/UNSAFE_classNames';\nimport { TooltipContentRedwoodTheme } from './themes/redwood/TooltipContentTheme';\n\ntype IntrinsicProps = Pick<UnpackSignals<JSX.IntrinsicElements['div']>, 'children'>;\n\ntype Status = 'mounted' | 'unmounted';\n\ntype ContentProps = IntrinsicProps & {\n id: string;\n isOpen: boolean;\n isDatatip: boolean;\n onTransitionEnd?: () => void;\n} & TestIdProps;\n\nexport const TooltipContent = ({\n children,\n id,\n isOpen,\n isDatatip,\n onTransitionEnd,\n testId,\n ...props\n}: ContentProps) => {\n const wrapperRef = useRef<HTMLDivElement>(null);\n const popoverRef = useRef<HTMLDivElement>(null);\n\n const testIdProps = useTestId(testId);\n\n const { baseTheme, variantClasses, styles } = useComponentTheme<\n TooltipContentVariantOptions,\n TooltipContentStyles\n >(TooltipContentRedwoodTheme, {\n variant: isDatatip ? 'datatip' : 'tooltip'\n });\n\n const schemeClass = useThemeInterpolations();\n\n const { nodeRef } = useAnimation<Status, HTMLDivElement>(isOpen ? 'mounted' : 'unmounted', {\n animationStates: {\n mounted: (_node) => {\n const childNode = _node.firstChild as HTMLDivElement;\n return {\n from: {\n maxHeight: '0',\n opacity: '0%'\n },\n to: {\n maxHeight: `${childNode?.offsetHeight}px`,\n opacity: isDatatip ? '100%' : '95%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n },\n unmounted: (_node) => {\n return {\n from: {\n opacity: isDatatip ? '100%' : '95%'\n },\n to: {\n maxHeight: '0',\n opacity: '0%'\n },\n options: {\n duration: isDatatip ? 1 : 150,\n easing: [0.0, 0.0, 0.2, 1]\n }\n };\n }\n },\n isAnimatedOnMount: true,\n onAnimationEnd: () => onTransitionEnd?.()\n });\n\n // Set up initial wrapper height so Tooltip can animate from the bottom to the top\n useEffect(() => {\n if (wrapperRef.current && popoverRef.current?.offsetHeight) {\n wrapperRef.current.style.height = `${popoverRef.current?.offsetHeight}px`;\n }\n }, []);\n\n return (\n <div\n ref={wrapperRef}\n id={id}\n role=\"tooltip\"\n class={classNames([styles.wrapper, schemeClass, baseTheme])}\n {...testIdProps}>\n <div ref={nodeRef} class={styles.inner} {...props}>\n <div ref={popoverRef} class={classNames([variantClasses, styles.content])}>\n {children}\n </div>\n </div>\n </div>\n );\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChild } from 'preact';\nimport { useState, useRef, useEffect, useCallback } from 'preact/hooks';\nimport { useId } from '../UNSAFE_useId';\nimport { Placement, Coords } from '../../UNSAFE_Floating';\nimport { useHover } from '../UNSAFE_useHover';\nimport { useFocus } from '../UNSAFE_useFocus';\nimport { useTouch } from '../UNSAFE_useTouch';\nimport { mergeProps } from '../../utils/UNSAFE_mergeProps';\nimport { TooltipContent } from './TooltipContent';\nimport { useColorScheme } from '../UNSAFE_useColorScheme';\nimport { TestIdProps } from '../UNSAFE_useTestId';\nimport {\n getGlobalTooltipManager,\n getWrappedTooltipContent,\n SHOW_TOOLTIP_DELAY,\n HIDE_TOOLTIP_DELAY\n} from '../../utils/PRIVATE_tooltipUtils';\n\nexport type Position = Omit<Placement, 'center'>;\n\nexport const anchorTos = ['element', 'pointer'] as const;\ntype AnchorTo = (typeof anchorTos)[number];\n\ntype AnchorModel = { x: AnchorTo; y: AnchorTo };\n\ntype Props = {\n text?: string;\n variant?: 'tooltip' | 'datatip';\n isOpen: boolean;\n position?: Position;\n isDisabled?: boolean;\n focusStrategy?: 'browser' | 'logical';\n anchor?: AnchorModel;\n offset?: { mainAxis?: number; crossAxis?: number };\n onToggle?: (details: { value: boolean }) => void;\n displayOnHover?: boolean;\n dismissOnClick?: boolean;\n} & TestIdProps;\n\n/**\n * The 'mounting' and 'unmounting' states are related to the animation. The 'unmounted' state\n * is used for conditional rendering. In this state, the Tooltip content is completely removed\n * from the DOM. The 'mountPending' and 'unmountPending' are used when timeout is active.\n * The 'reposition' state is used to trigger a transition with new coordinates within\n * the same element.\n */\ntype Status =\n | 'unmounted'\n | 'mountPending'\n | 'mounting'\n | 'mounted'\n | 'unmountPending'\n | 'unmounting';\n\nexport const useTooltipControlled = ({\n text,\n isOpen = false,\n variant = 'tooltip',\n position = 'bottom',\n displayOnHover = true,\n dismissOnClick = true,\n focusStrategy = 'browser',\n isDisabled = false,\n anchor = { x: 'element', y: 'element' },\n offset,\n onToggle,\n testId\n}: Props): {\n tooltipContent: ComponentChild;\n tooltipProps: Record<string, any>;\n} => {\n // Global TooltipManager singleton instance\n const globalTooltipManager = getGlobalTooltipManager();\n\n const disabled = isDisabled || !text;\n const isInitialRenderState = useRef<boolean>(true);\n\n const [state, _setState] = useState<Status>(!disabled && isOpen ? 'mounting' : 'unmounted');\n const stateRef = useRef<Status>(state);\n const setState = (newState: Status) => {\n stateRef.current = newState;\n _setState(newState);\n };\n\n // const tooltipId = useRef<string>(useId());\n\n const [needsUpdate, setNeedsUpdate] = useState<boolean>(false);\n setNeedsUpdate(false);\n\n const isDatatip = variant === 'datatip';\n\n const [isLogicalFocus, setLogicalFocus] = useState<boolean>(false);\n const isLogicalFocusStrategy = focusStrategy === 'logical';\n const isInitialRenderTrigger = useRef<boolean>(true);\n const { hoverProps, isHover } = useHover({ isDisabled: !displayOnHover });\n const { touchProps, isTouch } = useTouch({ isDisabled }); // TODO replace by useLongPress actionhook\n // we only care about keyboard focus, don't enable useFocus hook if isHover or isTouch are active\n const { focusProps, isFocus } = useFocus({\n isDisabled: isLogicalFocusStrategy\n });\n // only enable the popoverHover hook if the tooltip is actually open\n const { hoverProps: popoverHoverProps, isHover: popoverIsHover } = useHover({\n isDisabled: isDisabled || !isOpen\n });\n\n const isPointer = anchor.x === 'pointer' || anchor.y === 'pointer';\n\n const uniqueIdRef = useRef<string>(useId());\n const targetRef = useRef<HTMLElement | null>(null);\n const coordsRef = useRef<Coords>({ x: -9999, y: -9999 });\n // if anchor is set to pointer and target does not have keyboard focus, use coords\n const usedRef = isPointer && !isFocus ? coordsRef : targetRef;\n const showDelay = isDatatip ? 0 : SHOW_TOOLTIP_DELAY;\n const hideDelay = isDatatip ? 0 : HIDE_TOOLTIP_DELAY;\n const toggleTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const currentColorScheme = useColorScheme();\n\n const focusActive = useRef<boolean>(false);\n const hoverActive = useRef<boolean>(false);\n\n const toggleTimeoutClear = () => {\n if (toggleTimeoutRef.current) {\n clearTimeout(toggleTimeoutRef.current);\n toggleTimeoutRef.current = null;\n }\n };\n\n /*\n * This effect executes when isFocus/isLogicalFocus changes\n * - focusActive ref is set if the focus change follows a Tab key\n * - hoverActive ref is reset, if focusActive becomes true\n */\n useEffect(() => {\n if (isLogicalFocusStrategy) {\n focusActive.current = isLogicalFocus;\n } else {\n focusActive.current = isFocus && globalTooltipManager.isTabKeyActive();\n }\n if (focusActive.current) {\n hoverActive.current = false;\n }\n }, [isFocus, isLogicalFocus, isLogicalFocusStrategy, globalTooltipManager]);\n\n /*\n * This effect executes when isHover state changes\n * - focusActive ref is reset, if hoverActive becomes true\n */\n useEffect(() => {\n hoverActive.current = isHover;\n }, [isHover]);\n\n useEffect(() => {\n // inner function for state transitions on various trigger changes\n const updateState = (open: boolean) => {\n if (open && text) {\n // At least one toggle event is set to true\n switch (state) {\n case 'unmounted':\n setState('mountPending'); // Set mount pending state if tooltip is unmounted\n break;\n case 'unmounting': // Switch back to mounting when unmounting was in progress and the tooltip should stay on\n setState('mounting');\n onToggle?.({ value: true });\n break;\n case 'unmountPending':\n toggleTimeoutClear();\n setState('mounted'); // Clear timers immediately and keep the tooltip mounted\n break;\n }\n } else {\n // No toggle events are set to true\n switch (state) {\n case 'mounting':\n case 'mounted':\n setState('unmountPending'); // Set unmount pending state if tooltip is mounted or in mounting transition\n break;\n case 'mountPending':\n toggleTimeoutClear();\n __resetCoords();\n setState('unmounted'); // Unmount tooltip immediately if mounting is pending\n break;\n }\n }\n };\n\n if (isInitialRenderTrigger.current) {\n // On onitial render do not trigger rerender\n isInitialRenderTrigger.current = false;\n return;\n }\n // When pointer is used, handleMouseMove method is responsible for state updates\n // until the tooltip is mounted\n if (isPointer && isHover && state === 'unmounted') {\n return;\n }\n updateState(\n (isHover && hoverActive.current) ||\n ((isFocus || isLogicalFocus) && focusActive.current) ||\n popoverIsHover ||\n isTouch\n );\n }, [isHover, isFocus, isLogicalFocus, popoverIsHover, isTouch, isPointer, state, onToggle, text]);\n\n const destroyCallback = useCallback(() => {\n focusActive.current = false;\n hoverActive.current = false;\n onToggle?.({ value: false });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []); // don't want to depend on the 'onToggle' prop as some clients tend to pass a new callback on each render\n\n /*\n * Global mousedown handler to dismiss the tooltip on anchor click. This is especially needed\n * for Safari which does not fire mouse events during animations when the anchor moves (JET-72605).\n */\n const mouseDownHandler = useCallback(\n (event: MouseEvent) => {\n if (\n usedRef.current instanceof Element &&\n usedRef.current.contains(event.target as Element) &&\n dismissOnClick\n ) {\n toggleTimeoutClear();\n document.removeEventListener('mousedown', mouseDownHandler, true);\n destroyCallback();\n }\n },\n [dismissOnClick, usedRef, destroyCallback]\n );\n\n useEffect(() => {\n if (isInitialRenderState.current) {\n // On onitial render do not trigger rerender\n isInitialRenderState.current = false;\n return;\n }\n setState(isOpen ? 'mounting' : 'unmounting');\n }, [isOpen]);\n\n useEffect(() => {\n return () => {\n // make sure to clear the toggle timeout on unmount\n toggleTimeoutClear();\n // reset focusActive and hoverActive refs\n focusActive.current = false;\n hoverActive.current = false;\n };\n }, []);\n\n /*\n * This effect executes when the component state changes.\n * On 'mounted' state, the tooltip registers itself with the global tooltip manager.\n * On 'unmounted', the tooltip unregisters from the global tooltip manager.\n */\n useEffect(() => {\n if (state === 'mounting') {\n globalTooltipManager.register(destroyCallback);\n } else if (state === 'unmounted') {\n globalTooltipManager.unregister(destroyCallback);\n // clean up the mousedown handler just in case\n document.removeEventListener('mousedown', mouseDownHandler, true);\n }\n }, [state, destroyCallback, globalTooltipManager, mouseDownHandler]);\n\n /*\n * Set a timer to toggle the state afer the 'pending' period expires\n */\n useEffect(() => {\n if (!toggleTimeoutRef.current && (state === 'mountPending' || state === 'unmountPending')) {\n if (state === 'mountPending') {\n document.addEventListener('mousedown', mouseDownHandler, true);\n }\n toggleTimeoutRef.current = setTimeout(\n () => {\n toggleTimeoutClear();\n // make sure the state has not changed in the mean time before onToggle\n if (\n (state === 'mountPending' || state === 'unmountPending') &&\n state === stateRef.current\n ) {\n onToggle?.({ value: state === 'mountPending' });\n }\n },\n state === 'mountPending' ? showDelay : hideDelay\n );\n }\n return () => {\n toggleTimeoutClear();\n };\n }, [state, showDelay, hideDelay, onToggle, mouseDownHandler]);\n\n const handleMouseMove = (event: MouseEvent) => {\n // we only want track mouse move while the state is 'unmounted' or when moving a 'mounted' datatip\n if (state !== 'unmounted' && !(variant === 'datatip' && state === 'mounted')) {\n return;\n }\n const targetRect = targetRef?.current?.getBoundingClientRect();\n\n // Tooltip maintains static offset from left side of window\n const distanceX = document.body.scrollLeft + (targetRect?.left || 0) + (targetRect?.width || 0);\n\n // Tooltip maintains static offset from top side of the window\n const distanceY = document.body.scrollTop + (targetRect?.top || 0) + (targetRect?.height || 0);\n\n // Display tooltip at the mouse position if both anchors are set to pointer\n const x = anchor.x === 'pointer' ? event.clientX : distanceX;\n const y = anchor.y === 'pointer' ? event.clientY : distanceY;\n\n if (state === 'mounted') {\n coordsRef.current = { x, y };\n if (needsUpdate !== true) setNeedsUpdate(true);\n } else if (state === 'unmounted') {\n toggleTimeoutClear();\n toggleTimeoutRef.current = setTimeout(() => {\n if (state === 'unmounted') {\n coordsRef.current = { x, y };\n onToggle?.({ value: true });\n }\n }, hideDelay);\n }\n };\n\n const onLogicalFocus = (target: HTMLElement) => {\n setLogicalFocus(true);\n targetRef.current = target;\n usedRef.current = target;\n };\n\n const onLogicalBlur = () => {\n setLogicalFocus(false);\n };\n\n const onFocusCallback = useCallback((event: FocusEvent) => {\n targetRef.current = event.currentTarget as HTMLElement;\n }, []);\n\n const onBlurCallback = useCallback((event: FocusEvent) => {\n if (event.eventPhase === Event.AT_TARGET) {\n // reset focusActive flag\n focusActive.current = false;\n }\n }, []);\n\n const focusInitProps = isLogicalFocusStrategy\n ? {}\n : {\n onFocus: onFocusCallback,\n onBlur: onBlurCallback\n };\n\n const hoverInitProps = {\n onMouseEnter: useCallback((event: MouseEvent) => {\n targetRef.current = event.target as HTMLElement;\n }, [])\n };\n\n let actionableProps;\n\n const __resetCoords = () => {\n coordsRef.current = { x: -9999, y: -9999 };\n };\n\n if (disabled) {\n actionableProps = mergeProps(hoverProps, focusProps, hoverInitProps, focusInitProps);\n } else {\n const anchorInitProps = {\n 'aria-describedby': uniqueIdRef.current,\n\n ...(isPointer && {\n onMouseLeave: () => {\n if (state === 'mounting') {\n return;\n }\n toggleTimeoutClear();\n },\n onMouseMove: (event: MouseEvent) => {\n handleMouseMove(event);\n }\n })\n };\n actionableProps = mergeProps(\n hoverProps,\n focusProps,\n touchProps,\n hoverInitProps,\n focusInitProps,\n anchorInitProps,\n isLogicalFocusStrategy ? { onLogicalFocus, onLogicalBlur } : {}\n );\n }\n\n // No need to process tooltip if disabled or no text is provided\n // Include actionableProps to detect mouseenter in components\n // hovered state won't update unless actionableProps are already present in the component when mouse enters\n if (disabled) {\n toggleTimeoutClear();\n __resetCoords();\n return {\n tooltipContent: null,\n tooltipProps: actionableProps\n };\n }\n\n const placement = position as Placement;\n\n const handleTransitionEnd = () => {\n if (state === 'mounting') {\n setState('mounted');\n }\n if (state === 'unmounting') {\n __resetCoords();\n setState('unmounted');\n }\n };\n\n const renderRawContent = (\n <TooltipContent\n id={uniqueIdRef.current}\n testId={testId}\n isOpen={['mounting', 'mounted', 'unmountPending'].includes(state)}\n {...popoverHoverProps}\n isDatatip={isDatatip}\n onTransitionEnd={handleTransitionEnd}>\n {text}\n </TooltipContent>\n );\n\n const renderContent = getWrappedTooltipContent(\n renderRawContent,\n variant,\n currentColorScheme,\n usedRef,\n placement,\n offset\n );\n\n return {\n tooltipContent: !['unmounted', 'mountPending'].includes(state) && renderContent,\n tooltipProps: actionableProps\n };\n};\n"],"names":["TooltipContent","children","id","isOpen","isDatatip","onTransitionEnd","testId","props","wrapperRef","useRef","popoverRef","testIdProps","useTestId","baseTheme","variantClasses","styles","useComponentTheme","TooltipContentRedwoodTheme","variant","schemeClass","useThemeInterpolations","nodeRef","useAnimation","animationStates","mounted","_node","childNode","firstChild","from","maxHeight","opacity","to","offsetHeight","options","duration","easing","unmounted","isAnimatedOnMount","onAnimationEnd","useEffect","current","style","height","_jsx","jsx","ref","role","class","classNames","wrapper","inner","content","text","position","displayOnHover","dismissOnClick","focusStrategy","isDisabled","anchor","x","y","offset","onToggle","globalTooltipManager","getGlobalTooltipManager","disabled","isInitialRenderState","state","_setState","useState","stateRef","setState","newState","needsUpdate","setNeedsUpdate","isLogicalFocus","setLogicalFocus","isLogicalFocusStrategy","isInitialRenderTrigger","hoverProps","isHover","useHover","touchProps","isTouch","useTouch","focusProps","isFocus","useFocus","popoverHoverProps","popoverIsHover","isPointer","uniqueIdRef","useId","targetRef","coordsRef","usedRef","showDelay","SHOW_TOOLTIP_DELAY","hideDelay","HIDE_TOOLTIP_DELAY","toggleTimeoutRef","currentColorScheme","useColorScheme","focusActive","hoverActive","toggleTimeoutClear","clearTimeout","isTabKeyActive","open","value","__resetCoords","updateState","destroyCallback","useCallback","mouseDownHandler","event","Element","contains","target","document","removeEventListener","register","unregister","addEventListener","setTimeout","onLogicalFocus","onLogicalBlur","onFocusCallback","currentTarget","onBlurCallback","eventPhase","Event","AT_TARGET","focusInitProps","onFocus","onBlur","hoverInitProps","onMouseEnter","actionableProps","mergeProps","anchorInitProps","onMouseLeave","onMouseMove","targetRect","getBoundingClientRect","distanceX","body","scrollLeft","left","width","distanceY","scrollTop","top","clientX","clientY","handleMouseMove","tooltipContent","tooltipProps","placement","renderRawContent","includes","renderContent","getWrappedTooltipContent"],"mappings":"meA0BaA,EAAiB,EAC5BC,WACAC,KACAC,SACAC,YACAC,kBACAC,YACGC,MAEH,MAAMC,EAAaC,SAAuB,MACpCC,EAAaD,SAAuB,MAEpCE,EAAcC,YAAUN,IAExBO,UAAEA,EAASC,eAAEA,EAAcC,OAAEA,GAAWC,EAAAA,kBAG5CC,EAAAA,2BAA4B,CAC5BC,QAASd,EAAY,UAAY,YAG7Be,EAAcC,EAAAA,0BAEdC,QAAEA,GAAYC,EAAAA,aAAqCnB,EAAS,UAAY,YAAa,CACzFoB,gBAAiB,CACfC,QAAUC,IACR,MAAMC,EAAYD,EAAME,WACxB,MAAO,CACLC,KAAM,CACJC,UAAW,IACXC,QAAS,MAEXC,GAAI,CACFF,UAAW,GAAGH,GAAWM,iBACzBF,QAAS1B,EAAY,OAAS,OAEhC6B,QAAS,CACPC,SAAU9B,EAAY,EAAI,IAC1B+B,OAAQ,CAAC,EAAK,EAAK,GAAK,IAE3B,EAEHC,UAAYX,IACH,CACLG,KAAM,CACJE,QAAS1B,EAAY,OAAS,OAEhC2B,GAAI,CACFF,UAAW,IACXC,QAAS,MAEXG,QAAS,CACPC,SAAU9B,EAAY,EAAI,IAC1B+B,OAAQ,CAAC,EAAK,EAAK,GAAK,OAKhCE,mBAAmB,EACnBC,eAAgB,IAAMjC,QAUxB,OANAkC,EAAAA,WAAU,KACJ/B,EAAWgC,SAAW9B,EAAW8B,SAASR,eAC5CxB,EAAWgC,QAAQC,MAAMC,OAAS,GAAGhC,EAAW8B,SAASR,iBAC1D,GACA,IAGDW,EAAAC,IAAA,MAAA,CACEC,IAAKrC,EACLN,GAAIA,EACJ4C,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B,GAAYzG,EAYZ0G,GACJpH,EAAAA,IAAC3C,EACC,CAAAE,GAAIyF,EAAYnD,QAChBlC,OAAQA,EACRH,OAAQ,CAAC,WAAY,UAAW,kBAAkB6J,SAAS7F,MACvDqB,EACJpF,UAAWA,EACXC,gBAjBwB,KACZ,aAAV8D,GACFI,EAAS,WAEG,eAAVJ,IACF2C,KACAvC,EAAS,aACV,WAWEnB,IAIC6G,GAAgBC,EAAwBA,yBAC5CH,GACA7I,EACAmF,EACAN,EACA+D,GACAjG,GAGF,MAAO,CACL+F,gBAAiB,CAAC,YAAa,gBAAgBI,SAAS7F,IAAU8F,GAClEJ,aAAcnB,GACf"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(['exports', './useDetectTruncation-74f48ddc', './useTooltip-c8aaf38a', 'preact/jsx-runtime', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-0b288129', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a'], (function(t,o,e,s,n,i,r,a,c,p,l,u,T){"use strict";t.useTooltipOnTruncation=(t,s=!1)=>{const{detectTruncationProps:n,isTextTruncated:r}=o.useDetectTruncation(s),{tooltipContent:a,tooltipProps:c}=e.useTooltip({text:t,isDisabled:!r||s}),{"aria-describedby":p,...l}=c;return{tooltipOnTruncationProps:i.mergeProps(n,l),tooltipContent:a,isTextTruncated:r}}}));
|
|
2
|
+
//# sourceMappingURL=useTooltipOnTruncation-129d7663.js.map
|
package/amd/{useTooltipOnTruncation-5c26fe42.js.map → useTooltipOnTruncation-129d7663.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTooltipOnTruncation-
|
|
1
|
+
{"version":3,"file":"useTooltipOnTruncation-129d7663.js","sources":["../../src/hooks/PRIVATE_useTooltipOnTruncation/useTooltipOnTruncation.tsx"],"sourcesContent":["import { useDetectTruncation } from '#hooks/PRIVATE_useDetectTruncation';\nimport { useTooltip } from '#hooks/UNSAFE_useTooltip';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\nconst useTooltipOnTruncation = (tooltipText?: string, isDisabled = false) => {\n const { detectTruncationProps, isTextTruncated } = useDetectTruncation(isDisabled);\n const { tooltipContent, tooltipProps } = useTooltip({\n text: tooltipText,\n isDisabled: !isTextTruncated || isDisabled\n });\n\n const { 'aria-describedby': notNeeded, ...validTooltipProps } = tooltipProps; //remove aria-describedby to prevent screen readers from reading the same text multiple times\n\n const tooltipOnTruncationProps = mergeProps(detectTruncationProps, validTooltipProps);\n\n return { tooltipOnTruncationProps, tooltipContent, isTextTruncated };\n};\n\nexport { useTooltipOnTruncation };\n"],"names":["tooltipText","isDisabled","detectTruncationProps","isTextTruncated","useDetectTruncation","tooltipContent","tooltipProps","useTooltip","text","notNeeded","validTooltipProps","tooltipOnTruncationProps","mergeProps"],"mappings":"geAI+B,CAACA,EAAsBC,GAAa,KACjE,MAAMC,sBAAEA,EAAqBC,gBAAEA,GAAoBC,EAAmBA,oBAACH,IACjEI,eAAEA,EAAcC,aAAEA,GAAiBC,aAAW,CAClDC,KAAMR,EACNC,YAAaE,GAAmBF,KAG1B,mBAAoBQ,KAAcC,GAAsBJ,EAIhE,MAAO,CAAEK,yBAFwBC,EAAAA,WAAWV,EAAuBQ,GAEhCL,iBAAgBF,kBAAiB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/hooks', './LayerHost-
|
|
2
|
-
//# sourceMappingURL=useTranslationBundle-
|
|
1
|
+
define(['exports', 'preact/hooks', './LayerHost-0b288129', 'preact/jsx-runtime', 'preact/compat'], (function(t,n,e,o,r){"use strict";t.useTranslationBundle=function(t){const o=n.useContext(e.EnvironmentContext).translations,r=o?.[t];if(!r)throw new Error(`Translation bundle ${t} is not loaded.`);return r}}));
|
|
2
|
+
//# sourceMappingURL=useTranslationBundle-e4dd341e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslationBundle-
|
|
1
|
+
{"version":3,"file":"useTranslationBundle-e4dd341e.js","sources":["../../src/hooks/UNSAFE_useTranslationBundle/useTranslationBundle.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { useContext } from 'preact/hooks';\nimport { EnvironmentContext } from '../../UNSAFE_Environment';\nimport type { TranslationBundle } from '../../UNSAFE_Environment';\n\n/**\n * useTranslationBundle is a hook to get a translation bundle from the EnvironmentProvider\n * @param bundleId\n * @returns a translation bundle of type T\n */\nexport function useTranslationBundle<T extends TranslationBundle>(bundleId: string) {\n const translations = useContext(EnvironmentContext).translations;\n const bundle = translations?.[bundleId];\n if (!bundle) {\n throw new Error(`Translation bundle ${bundleId} is not loaded.`);\n }\n return bundle as T;\n}\n"],"names":["bundleId","translations","useContext","EnvironmentContext","bundle","Error"],"mappings":"uJAgBM,SAA4DA,GAChE,MAAMC,EAAeC,EAAAA,WAAWC,EAAkBA,oBAAEF,aAC9CG,EAASH,IAAeD,GAC9B,IAAKI,EACH,MAAM,IAAIC,MAAM,sBAAsBL,oBAExC,OAAOI,CACT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/hooks', './LayerHost-
|
|
2
|
-
//# sourceMappingURL=useUser-
|
|
1
|
+
define(['exports', 'preact/hooks', './LayerHost-0b288129', 'preact/jsx-runtime', 'preact/compat'], (function(e,t,n,r,o){"use strict";e.useUser=function(){return t.useContext(n.EnvironmentContext).user}}));
|
|
2
|
+
//# sourceMappingURL=useUser-08901aba.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUser-
|
|
1
|
+
{"version":3,"file":"useUser-08901aba.js","sources":["../../src/hooks/UNSAFE_useUser/useUser.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { useContext } from 'preact/hooks';\nimport { EnvironmentContext } from '../../UNSAFE_Environment';\n\nexport function useUser() {\n return useContext(EnvironmentContext).user;\n}\n"],"names":["useContext","EnvironmentContext","user"],"mappings":"qJAWE,OAAOA,EAAUA,WAACC,sBAAoBC,IACxC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Button-508fc029', './Move-8435dad7', './hooks/PRIVATE_useVisDragModeControls/themes/useVisDragModeControls.css', './useTranslationBundle-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', 'preact/hooks', './Button-508fc029', './Move-8435dad7', './hooks/PRIVATE_useVisDragModeControls/themes/useVisDragModeControls.css', './useTranslationBundle-e4dd341e', './ZoomAlt-cb72bad9', './ButtonSetSingle-bf1b8c68', './ButtonSetItem-b0445cb4', './IconToggleButton-9f1c8265'], (function(e,o,t,n,s,l,a,i,u,r,c){"use strict";function d({position:e,divRef:t,dragMode:d,onDragModeChange:g,showZoomButton:v,showPanButton:m,showSelectButton:p}){const{right:B,left:h,top:x,bottom:S}=e,b=m&&!p&&!v||!m&&!p&&v||!m&&p&&!v,f=a.useTranslationBundle("@oracle/oraclejet-preact"),j=f.vis_marqueeZoomTooltip(),M=f.vis_panTooltip(),T=f.vis_marqueeSelectTooltip();return v||m||p?o.jsx("div",{ref:t,class:l.styles.background,"data-oj-private-object":"dragModeControls",style:{right:B,left:h,top:x,bottom:S},children:b?o.jsxs(o.Fragment,{children:[m&&o.jsx(c.IconToggleButton,{accessibleLabel:M,isSelected:"pan"===d,onToggle:()=>{g("pan"===d?void 0:"pan")},variant:"outlined",size:"sm",children:o.jsx(s.SvgMove,{})}),v&&o.jsx(c.IconToggleButton,{accessibleLabel:j,isSelected:"zoom"===d,onToggle:()=>{g("zoom"===d?void 0:"zoom")},variant:"outlined",size:"sm",children:o.jsx(i.SvgZoomAlt,{})}),p&&o.jsx(c.IconToggleButton,{accessibleLabel:T,isSelected:"select"===d,onToggle:()=>{g("select"===d?void 0:"select")},variant:"outlined",size:"sm",children:o.jsx(n.SvgButton,{})})]}):o.jsxs(u.ButtonSetSingle,{size:"sm",value:d,onCommit:({value:e})=>{g(e===d?void 0:e)},display:"icons",variant:"outlined",children:[m&&o.jsx(r.ButtonSetItem,{value:"pan",label:M,startIcon:o.jsx(s.SvgMove,{})}),v&&o.jsx(r.ButtonSetItem,{value:"zoom",label:j,startIcon:o.jsx(i.SvgZoomAlt,{})}),p&&o.jsx(r.ButtonSetItem,{value:"select",label:T,startIcon:o.jsx(n.SvgButton,{})})]})}):null}e.useVisDragModeControls=function({componentWidth:e,plotAreaSpace:n,isRtl:s,showPanButton:l,showZoomButton:a,showSelectButton:i,isDisabled:u=!1,dragMode:r}){const c=t.useRef(null),g=t.useRef(r),v=t.useRef(!0);t.useEffect((()=>{v.current=!1}),[]);const[m,p]=t.useState(),B=function(e,o,t,n){return!o||"pan"!==e&&"user"!==e?t&&"zoom"===e?"zoom":n&&"select"===e?"select":void 0:"pan"}(r,l,a,i);return(g.current!=r||v.current)&&(g.current=r,p(B)),{dragButtonDivRef:c,toggleButtonContent:u?void 0:o.jsx(d,{position:{top:`${n.y}px`,right:s?void 0:e-n.x-n.width+"px",left:s?`${n.x}px`:void 0},divRef:c,showSelectButton:i,showZoomButton:a,showPanButton:l,dragMode:m,onDragModeChange:p}),userDragMode:m}}}));
|
|
2
2
|
//# sourceMappingURL=useVisDragModeControls-47a4f754.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/hooks', './useUser-
|
|
2
|
-
//# sourceMappingURL=useVisEvents-
|
|
1
|
+
define(['exports', 'preact/hooks', './useUser-08901aba', './layoutUtils-517a546d', './eventsUtils-1f5dc91a', './useVisHover-28319fef', './mergeProps-bcfa6a92'], (function(e,t,n,r,s,o,c){"use strict";e.useVisEvent=function(e,i,u,a,d,f,v,I,l,m,b,g,p,C){const k=t.useRef(),[w,U]=t.useState(p),[R,V]=t.useState(),h=o.useVisHover((e=>{const t=g(e.target);b(t,R)||(V(t&&{...t,isCurrent:!0}),k.current=r.getRandomId(),i&&(w&&U({...w,isCurrent:!1}),l?.(d(t))))}),void 0,(()=>{V(void 0),k.current=void 0,i&&l?.(d())}),e),{direction:y}=n.useUser(),A="rtl"===y;if(!i)return{isInteractive:!1,focusedItemInfo:w,hoveredItemInfo:R,eventsProps:h};const E=e=>{m?.(d(e)),k.current=r.getRandomId(),U(e)},P=e=>{b(e,w)||(e.isCurrent=!0,e.isFocusVisible=!0,R&&V({...R,isCurrent:!1}),E(e))},D=()=>{const e=d(w);e&&e.data&&u(w)&&(I?.(e),k.current=r.getRandomId())},F=a(D,E,w,C);return{isInteractive:!0,focusedItemInfo:w,hoveredItemInfo:R,activeId:k.current,triggerOnAction:D,updatefocusedItemInfo:E,onContextMenuDismissed:e=>{"keyboard"===e&&E({...w,isCurrent:!0,isFocusVisible:!0})},eventsProps:c.mergeProps(h,{onPointerUp:e=>{const t=g(e.target);if(null!=t&&u(t)){U(t);const e=d(t);e&&u(t)&&(I?.(e),k.current=r.getRandomId())}},onKeyUp:F,onKeyDown:e=>{switch(e.key){case"Tab":return;case"ArrowDown":{const t=v(w);P(t),s.cancelEvent(e);break}case"ArrowUp":{const t=f(w);P(t),s.cancelEvent(e);break}case"ArrowRight":{const t=A?f(w):v(w);P(t),s.cancelEvent(e);break}case"ArrowLeft":{const t=A?v(w):f(w);P(t),s.cancelEvent(e);break}}},onBlur:()=>{const e={...w,isCurrent:!1,isFocusVisible:!1};(null!=R||w.isCurrent)&&m?.(d(void 0)),U(e)}})}}}));
|
|
2
|
+
//# sourceMappingURL=useVisEvents-5f18ab46.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVisEvents-
|
|
1
|
+
{"version":3,"file":"useVisEvents-5f18ab46.js","sources":["../../src/hooks/PRIVATE_useVisEvents/useVisEvents.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useRef, useState } from 'preact/hooks';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport type { gestureTypes } from '#hooks/PRIVATE_useVisContextMenu';\nimport { getRandomId } from '#utils/PRIVATE_visLayoutUtils/layoutUtils';\nimport { cancelEvent } from '#utils/UNSAFE_visUtils/eventsUtils';\nimport { useVisHover } from '#hooks/PRIVATE_useVisHover';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\ntype ItemInfo = { isCurrent?: boolean; isFocusVisible?: boolean };\n\ntype EventDetail<D> = { data?: D };\n\nexport function useVisEvent<\n I extends ItemInfo,\n J extends EventDetail<D>,\n L extends EventDetail<D>,\n D\n>(\n touchResponse: 'touchStart' | 'touchHold',\n isInteractive: boolean,\n isItemActionable: (itemInfo: I) => boolean,\n getKeyUpHandler: (\n triggerOnAction: () => void,\n updatefocusedItemInfo: (itemInfo: I) => void,\n focusedItemInfo: I,\n isHideShow?: boolean\n ) => (event: KeyboardEvent) => void,\n getDetailFromInfo: (info?: I) => J | L,\n getPrevItemInfo: (info: I) => I,\n getNextItemInfo: (info: I) => I,\n onItemAction: ((detail: J) => void) | undefined,\n onItemHover: ((detail: L) => void) | undefined,\n onItemFocus: ((detail: L) => void) | undefined,\n isEqualItem: (item1?: I, item2?: I) => boolean,\n getItemInfo: (element: HTMLElement) => I | undefined,\n initItemInfo: I,\n isHideShow?: boolean\n) {\n const activeIdRef = useRef<string>();\n\n const [focusedItemInfo, setfocusedItemInfo] = useState<I>(initItemInfo);\n const [hoveredItemInfo, sethoveredItemInfo] = useState<I>();\n\n const onHover = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (!isEqualItem(itemInfo, hoveredItemInfo)) {\n sethoveredItemInfo(itemInfo && { ...itemInfo, isCurrent: true });\n activeIdRef.current = getRandomId();\n if (isInteractive) {\n focusedItemInfo ? setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false }) : '';\n onItemHover?.(getDetailFromInfo(itemInfo) as L);\n }\n }\n };\n\n const onHoverLeave = () => {\n sethoveredItemInfo(undefined);\n activeIdRef.current = undefined;\n if (isInteractive) {\n onItemHover?.(getDetailFromInfo() as L);\n }\n };\n\n const hoverHandlers = useVisHover(onHover, undefined, onHoverLeave, touchResponse);\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n if (!isInteractive) {\n return {\n isInteractive: false,\n focusedItemInfo,\n hoveredItemInfo,\n // include relevant hover handlers for datatip\n eventsProps: hoverHandlers\n };\n }\n\n const updatefocusedItemInfo = (itemInfo: I) => {\n onItemFocus?.(getDetailFromInfo(itemInfo) as L);\n activeIdRef.current = getRandomId();\n setfocusedItemInfo(itemInfo);\n };\n\n const handleKeyboardInput = (item: I) => {\n if (!isEqualItem(item, focusedItemInfo)) {\n item.isCurrent = true;\n item.isFocusVisible = true;\n if (hoveredItemInfo) {\n sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });\n }\n updatefocusedItemInfo(item);\n }\n };\n\n const triggerOnAction = () => {\n const detail = getDetailFromInfo(focusedItemInfo) as J;\n if (detail && detail.data && isItemActionable(focusedItemInfo)) {\n onItemAction?.(detail);\n activeIdRef.current = getRandomId();\n }\n };\n\n const onPointerUp = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (itemInfo != null && isItemActionable(itemInfo)) {\n setfocusedItemInfo(itemInfo);\n const detail = getDetailFromInfo(itemInfo);\n if (detail && isItemActionable(itemInfo)) {\n onItemAction?.(detail as J);\n activeIdRef.current = getRandomId();\n }\n }\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n const key = event.key;\n switch (key) {\n case 'Tab':\n return;\n case 'ArrowDown': {\n const nextItemInfo = getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowUp': {\n const nextItemInfo = getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowRight': {\n const nextItemInfo = isRtl\n ? getPrevItemInfo(focusedItemInfo)\n : getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowLeft': {\n const nextItemInfo = isRtl\n ? getNextItemInfo(focusedItemInfo)\n : getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n }\n };\n\n const onKeyUp = getKeyUpHandler(\n triggerOnAction,\n updatefocusedItemInfo,\n focusedItemInfo,\n isHideShow\n );\n\n const onContextMenuDismissed = (gesture: gestureTypes) => {\n if (gesture === 'keyboard') {\n updatefocusedItemInfo({\n ...focusedItemInfo,\n isCurrent: true,\n isFocusVisible: true\n });\n }\n };\n\n const onBlur = () => {\n const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false } as I;\n if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {\n onItemFocus?.(getDetailFromInfo(undefined) as L);\n }\n setfocusedItemInfo(itemInfo);\n };\n\n return {\n isInteractive: true,\n focusedItemInfo,\n hoveredItemInfo,\n activeId: activeIdRef.current,\n triggerOnAction,\n updatefocusedItemInfo,\n onContextMenuDismissed,\n eventsProps: mergeProps(hoverHandlers, {\n onPointerUp,\n onKeyUp,\n onKeyDown,\n onBlur\n })\n };\n}\n"],"names":["touchResponse","isInteractive","isItemActionable","getKeyUpHandler","getDetailFromInfo","getPrevItemInfo","getNextItemInfo","onItemAction","onItemHover","onItemFocus","isEqualItem","getItemInfo","initItemInfo","isHideShow","activeIdRef","useRef","focusedItemInfo","setfocusedItemInfo","useState","hoveredItemInfo","sethoveredItemInfo","hoverHandlers","useVisHover","event","itemInfo","target","isCurrent","current","getRandomId","undefined","direction","useUser","isRtl","eventsProps","updatefocusedItemInfo","handleKeyboardInput","item","isFocusVisible","triggerOnAction","detail","data","onKeyUp","activeId","onContextMenuDismissed","gesture","mergeProps","onPointerUp","onKeyDown","key","nextItemInfo","cancelEvent","onBlur"],"mappings":"8MAoBgB,SAMdA,EACAC,EACAC,EACAC,EAMAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAcC,EAAAA,UAEbC,EAAiBC,GAAsBC,EAAQA,SAAIN,IACnDO,EAAiBC,GAAsBF,EAAQA,WAsBhDG,EAAgBC,EAAAA,aApBLC,IACf,MAAMC,EAAWb,EAAYY,EAAME,QAC9Bf,EAAYc,EAAUL,KACzBC,EAAmBI,GAAY,IAAKA,EAAUE,WAAW,IACzDZ,EAAYa,QAAUC,EAAAA,cAClB3B,IACFe,GAAkBC,EAAmB,IAAKD,EAAiBU,WAAW,IACtElB,IAAcJ,EAAkBoB,KAEnC,QAWwCK,GARtB,KACnBT,OAAmBS,GACnBf,EAAYa,aAAUE,EAClB5B,GACFO,IAAcJ,IACf,GAGiEJ,IAE9D8B,UAAEA,GAAcC,EAAAA,UAChBC,EAAsB,QAAdF,EACd,IAAK7B,EACH,MAAO,CACLA,eAAe,EACfe,kBACAG,kBAEAc,YAAaZ,GAIjB,MAAMa,EAAyBV,IAC7Bf,IAAcL,EAAkBoB,IAChCV,EAAYa,QAAUC,EAAAA,cACtBX,EAAmBO,EAAS,EAGxBW,EAAuBC,IACtB1B,EAAY0B,EAAMpB,KACrBoB,EAAKV,WAAY,EACjBU,EAAKC,gBAAiB,EAClBlB,GACFC,EAAmB,IAAKD,EAAiBO,WAAW,IAEtDQ,EAAsBE,GACvB,EAGGE,EAAkB,KACtB,MAAMC,EAASnC,EAAkBY,GAC7BuB,GAAUA,EAAOC,MAAQtC,EAAiBc,KAC5CT,IAAegC,GACfzB,E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act/jsx-runtime', '../keys-4755c121', '../clientHints-6d361eaa', '../Selector-a1e32cb9', 'preact/hooks', '../BaseSelector-3c7b8b87', '../useActive-bb5dc069', '../useToggle-a29f97af', '../useFocus-4194fc59', '../useTestId-
|
|
1
|
+
define(['exports', '../collectionUtils-3951928f', 'preact/jsx-runtime', '../keys-4755c121', '../clientHints-6d361eaa', '../Selector-a1e32cb9', 'preact/hooks', '../BaseSelector-3c7b8b87', '../useActive-bb5dc069', '../useToggle-a29f97af', '../useFocus-4194fc59', '../useTestId-f4240cbd', '../LayerHost-0b288129', 'preact', '../index-055933ab', 'preact/compat', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../useHover-8b8a1496', '../mergeProps-bcfa6a92', '../StyledCheckbox-76fc99f0', '../Check-847d5a61', '../Icon-b9a01da9', '../size-114c63df', '../utils-9a3f9606', '../themeContract.css-b6ec3943', '../colorUtils-b9dc1bd1', '../_curry1-df649359', '../useTooltip-c8aaf38a', '../useTooltipControlled-af5409d4', '../useId-c9578d26', '../useTouch-37489bb5', '../useAnimation-d90c433f', '../useComponentTheme-5aa41a8f', '../logger-0f873e29', '../useThemeInterpolations-cc05b0f0', '../useColorScheme-097c31ff', '../useScale-04a448c3', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../classNames-08d99695', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-8a10fc70', '../unsafeDomAccess-602c5dde', '../hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', '../hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./../TooltipContentStyles.styles.css', '../hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', '../hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./../TooltipContentVariants.styles.css', '../vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', '../tooltipUtils-66f3844a', '../EnvironmentProvider-403bf554', '../LayerManager-426c669d', '../Floating-9d6ab071', '../useFloating-5cb85d2b', '../useUser-08901aba', '../positionUtils-6e4daa31', '../refUtils-77e97004', '../useOutsideClick-b9b661a4', '../arrayUtils-6ee96a35', '../Layer-1971eddb', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useModal-536cb7ff', '../UNSAFE_Floating/themes/redwood/FloatingTheme', '../UNSAFE_Floating/themes/FloatingStyles.css', 'css!./../FloatingStyles.styles.css', '../UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', '../UNSAFE_Floating/themes/redwood/FloatingVariants.css', '../vanilla-extract-dynamic.esm-6065bbd7', '../UNSAFE_Floating/themes/FloatingContract.css', '../useUnsafeDomElementRef-75afb461', '../UNSAFE_Icon/themes/IconStyle.css', 'css!./../IconStyle.styles.css', '../CheckboxOff-e595c7da', '../CheckboxOn-cd9518e8', '../CheckboxMixed-a1932c37', '../HiddenAccessible-037ef42d', 'css!./../HiddenAccessibleStyles.styles.css', '../UNSAFE_Checkbox/themes/CheckboxIconContract.css', '../UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme', '../UNSAFE_Checkbox/themes/CheckboxIconStyles.css', 'css!./../CheckboxIconStyles.styles.css', '../UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css', 'module', '../UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css', 'css!./../CheckboxIconVariants.styles.css', '../TabbableModeContext-a9c97640', '../useTabbableMode-0a9ef009', 'css!./../StyledCheckbox.styles.css', '../PRIVATE_BaseSelector/themes/SelectorStyles.css', 'css!./../SelectorStyles.styles.css', '../CollectionInteractionContext-0b4ed98b', '../useCollectionInteractionContext-f345e8f7'], (function(e,t,s,o,c,a,n,l,i,r,d,b,y,h,m,g,C,f,S,u,F,x,p,T,A,E,k,U,N,_,I,K,w,v,B,L,M,P,V,H,R,O,D,j,W,z,q,G,J,Q,X,Y,Z,$,ee,te,se,oe,ce,ae,ne,le,ie,re,de,be,ye,he,me,ge,Ce,fe,Se,ue,Fe,xe,pe,Te,Ae,Ee,ke,Ue,Ne,_e,Ie,Ke,we,ve,Be,Le,Me,Pe,Ve,He,Re,Oe,De,je,We,ze,qe){"use strict";e.compareListItemContext=t.compareListItemContext,e.dragToScroll=t.dragToScroll,e.findElementByKey=t.findElementByKey,e.getElementContainsFunc=t.getElementContainsFunc,e.getFirstVisibleKey=t.getFirstVisibleKey,e.getItemContext=t.getItemContext,e.getItemKeysArray=t.getItemKeysArray,e.getKey=t.getKey,e.getPrevNextKey=t.getPrevNextKey,e.getPrevNextKeyByCount=t.getPrevNextKeyByCount,e.getPrevNextKeyUsingRef=t.getPrevNextKeyUsingRef,e.getViewportConfig=t.getViewportConfig,e.handleEnterActionableMode=t.handleEnterActionableMode,e.handleSelectionRange=t.handleSelectionRange,e.handleWrapActionableFocus=t.handleWrapActionableFocus,e.isMobile=t.isMobile,e.keyExtractor=t.keyExtractor,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=PRIVATE_collectionUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', '../tabBarUtils-f4abb0af', '../collectionUtils-3951928f', 'preact/jsx-runtime', '../keys-4755c121', '../clientHints-6d361eaa', '../Selector-a1e32cb9', 'preact/hooks', '../BaseSelector-3c7b8b87', '../useActive-bb5dc069', '../useToggle-a29f97af', '../useFocus-4194fc59', '../useTestId-
|
|
1
|
+
define(['exports', '../tabBarUtils-f4abb0af', '../collectionUtils-3951928f', 'preact/jsx-runtime', '../keys-4755c121', '../clientHints-6d361eaa', '../Selector-a1e32cb9', 'preact/hooks', '../BaseSelector-3c7b8b87', '../useActive-bb5dc069', '../useToggle-a29f97af', '../useFocus-4194fc59', '../useTestId-f4240cbd', '../LayerHost-0b288129', 'preact', '../index-055933ab', 'preact/compat', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../useHover-8b8a1496', '../mergeProps-bcfa6a92', '../StyledCheckbox-76fc99f0', '../Check-847d5a61', '../Icon-b9a01da9', '../size-114c63df', '../utils-9a3f9606', '../themeContract.css-b6ec3943', '../colorUtils-b9dc1bd1', '../_curry1-df649359', '../useTooltip-c8aaf38a', '../useTooltipControlled-af5409d4', '../useId-c9578d26', '../useTouch-37489bb5', '../useAnimation-d90c433f', '../useComponentTheme-5aa41a8f', '../logger-0f873e29', '../useThemeInterpolations-cc05b0f0', '../useColorScheme-097c31ff', '../useScale-04a448c3', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../classNames-08d99695', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-8a10fc70', '../unsafeDomAccess-602c5dde', '../hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', '../hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', 'css!./../TooltipContentStyles.styles.css', '../hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'module', '../hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./../TooltipContentVariants.styles.css', '../vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', '../tooltipUtils-66f3844a', '../EnvironmentProvider-403bf554', '../LayerManager-426c669d', '../Floating-9d6ab071', '../useFloating-5cb85d2b', '../useUser-08901aba', '../positionUtils-6e4daa31', '../refUtils-77e97004', '../useOutsideClick-b9b661a4', '../arrayUtils-6ee96a35', '../Layer-1971eddb', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useModal-536cb7ff', '../UNSAFE_Floating/themes/redwood/FloatingTheme', '../UNSAFE_Floating/themes/FloatingStyles.css', 'css!./../FloatingStyles.styles.css', '../UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', '../UNSAFE_Floating/themes/redwood/FloatingVariants.css', '../vanilla-extract-dynamic.esm-6065bbd7', '../UNSAFE_Floating/themes/FloatingContract.css', '../useUnsafeDomElementRef-75afb461', '../UNSAFE_Icon/themes/IconStyle.css', 'css!./../IconStyle.styles.css', '../CheckboxOff-e595c7da', '../CheckboxOn-cd9518e8', '../CheckboxMixed-a1932c37', '../HiddenAccessible-037ef42d', 'css!./../HiddenAccessibleStyles.styles.css', '../UNSAFE_Checkbox/themes/CheckboxIconContract.css', '../UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme', '../UNSAFE_Checkbox/themes/CheckboxIconStyles.css', 'css!./../CheckboxIconStyles.styles.css', '../UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css', 'module', '../UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css', 'css!./../CheckboxIconVariants.styles.css', '../TabbableModeContext-a9c97640', '../useTabbableMode-0a9ef009', 'css!./../StyledCheckbox.styles.css', '../PRIVATE_BaseSelector/themes/SelectorStyles.css', 'css!./../SelectorStyles.styles.css', '../CollectionInteractionContext-0b4ed98b', '../useCollectionInteractionContext-f345e8f7'], (function(e,s,t,o,c,a,l,n,i,d,r,b,h,m,y,f,S,u,C,F,T,p,U,k,x,_,A,g,E,N,I,w,v,B,L,M,H,V,O,D,P,j,R,W,z,K,q,G,J,Q,X,Y,Z,$,ee,se,te,oe,ce,ae,le,ne,ie,de,re,be,he,me,ye,fe,Se,ue,Ce,Fe,Te,pe,Ue,ke,xe,_e,Ae,ge,Ee,Ne,Ie,we,ve,Be,Le,Me,He,Ve,Oe,De,Pe,je,Re,We,ze,Ke,qe,Ge){"use strict";e.getTabWidths=s.getTabWidths,e.handleMove=s.handleMove,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=PRIVATE_tabBarUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', '../tooltipUtils-
|
|
1
|
+
define(['exports', '../tooltipUtils-66f3844a', 'preact/jsx-runtime', '../LayerHost-0b288129', 'preact', '../index-055933ab', 'preact/compat', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../EnvironmentProvider-403bf554', 'preact/hooks', '../LayerManager-426c669d', '../Floating-9d6ab071', '../useFloating-5cb85d2b', '../useUser-08901aba', '../positionUtils-6e4daa31', '../refUtils-77e97004', '../useOutsideClick-b9b661a4', '../arrayUtils-6ee96a35', '../Layer-1971eddb', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-cc05b0f0', '../useColorScheme-097c31ff', '../useScale-04a448c3', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-8a10fc70', '../unsafeDomAccess-602c5dde', '../useModal-536cb7ff', '../useComponentTheme-5aa41a8f', '../logger-0f873e29', '../utils-9a3f9606', '../themeContract.css-b6ec3943', '../colorUtils-b9dc1bd1', '../UNSAFE_Floating/themes/redwood/FloatingTheme', '../UNSAFE_Floating/themes/FloatingStyles.css', 'css!./../FloatingStyles.styles.css', '../UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', '../UNSAFE_Floating/themes/redwood/FloatingVariants.css', '../vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', '../vanilla-extract-dynamic.esm-6065bbd7', '../UNSAFE_Floating/themes/FloatingContract.css', '../useUnsafeDomElementRef-75afb461'], (function(e,t,s,a,o,l,r,c,n,i,d,m,y,g,b,f,F,p,u,_,h,S,T,L,E,U,A,O,D,N,I,C,H,P,v,x,M,W,w,Y,j,k,B,G,R,K,V,q,z,J,Q,X){"use strict";e.HIDE_TOOLTIP_DELAY=t.HIDE_TOOLTIP_DELAY,e.SHOW_TOOLTIP_DELAY=t.SHOW_TOOLTIP_DELAY,e.getGlobalTooltipManager=t.getGlobalTooltipManager,e.getWrappedTooltipContent=t.getWrappedTooltipContent,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=PRIVATE_tooltipUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', '../tabbableUtils-
|
|
1
|
+
define(['exports', '../tabbableUtils-0f5a148a', '../domUtil-383ca9df', '../eventUtils-7a561e3c', '@testing-library/user-event', '@testing-library/preact', 'chai', '../menuTestsUtils-8c7ded1d', 'preact/jsx-runtime', '../matchTranslationBundle-e243f90d', '../LayerHost-0b288129', 'preact', '../index-055933ab', 'preact/compat', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../EnvironmentProvider-403bf554', 'preact/hooks', '../LayerManager-426c669d', '../TabbableModeContext-a9c97640', '../resources/nls/en/bundle'], (function(e,t,n,a,o,l,s,r,u,c,i,y,d,f,b,m,p,g,x,M,v){"use strict";function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var T=E(o);e.default=t.setupTabbableComponent,e.checkStringContent=n.checkStringContent,e.checkTooltipText=n.checkTooltipText,e.queryAllBy=n.queryAllBy,e.queryById=n.queryById,e.getEventCoords=a.getEventCoords,e.mockMouseEventPageXYOffsetXY=a.mockMouseEventPageXYOffsetXY,e.restoreMouseEventPageXYOffsetXY=a.restoreMouseEventPageXYOffsetXY,e.getTestContextMenuForNoData=e=>async()=>{await T.default.tab(),await T.default.keyboard("[ENTER]"),l.fireEvent.keyDown(e,{key:"F10",shiftKey:!0});const t=l.screen.queryByRole("menu");s.expect(t).to.be.null},e.getTestContextMenuViaKeyboard=(e,t,n)=>async()=>{s.expect(e).not.null,await T.default.tab(),await T.default.keyboard("[ENTER]"),l.fireEvent.keyDown(e,{key:"F10",shiftKey:!0});const a=r.getMenuItemByRole("menu"),o=r.getAllMenuItemsByRole("menuitem"),u=r.getLabel("MenuItem1");s.expect(a).not.null,s.expect(o.length).equals(3),s.expect(u).not.null,await l.waitFor((()=>{s.expect(t).not.null})),await l.waitFor((()=>{s.expect(n).equals("item")})),"item"===t.type&&await l.waitFor((()=>{s.expect(t?.data).not.null}))},e.getTestContextMenuViaMouse=e=>async()=>{const t=e;l.fireEvent.contextMenu(t,{clientX:50,clientY:50,currentTarget:t});const n=r.getMenuItemByRole("menu"),a=r.getAllMenuItemsByRole("menuitem"),o=r.getLabel("MenuItem1");s.expect(n).not.null,s.expect(a.length).equals(3),s.expect(o).not.null},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=PRIVATE_visTestUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', '../popupUtils-
|
|
1
|
+
define(['exports', '../popupUtils-d42db8bf', '../Layer-1971eddb', 'preact/jsx-runtime', 'preact/compat', '../LayerHost-0b288129', 'preact', '../index-055933ab', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-cc05b0f0', 'preact/hooks', '../useColorScheme-097c31ff', '../useScale-04a448c3', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-8a10fc70', '../unsafeDomAccess-602c5dde'], (function(e,s,c,t,a,r,o,y,d,i,l,f,n,u,p,m,b,L,h,S,_,A,g,j,x,D,H){"use strict";e.isLogicalAncestor=s.isLogicalAncestor,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=UNSAFE_popupUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', './useUser-
|
|
2
|
-
//# sourceMappingURL=withDirectionIcon-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', './useUser-08901aba'], (function(e,t,r){"use strict";e.withDirectionIcon=(e,s)=>i=>{const{direction:n}=r.useUser();return"ltr"===n?t.jsx(e,{...i}):t.jsx(s,{...i})}}));
|
|
2
|
+
//# sourceMappingURL=withDirectionIcon-cea07c6e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withDirectionIcon-
|
|
1
|
+
{"version":3,"file":"withDirectionIcon-cea07c6e.js","sources":["../../src/hoc/PRIVATE_withDirectionIcon/withDirectionIcon.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { Icon } from '#UNSAFE_Icon/Icon';\nimport { useUser } from '#hooks/UNSAFE_useUser';\n\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox'>;\n\n// Returns a component that renders one of the given icon components based on reading direction\nexport const withDirectionIcon = (LtrIcon: typeof Icon, RtlIcon: typeof Icon) => {\n return (props: Props) => {\n const { direction } = useUser();\n return direction === 'ltr' ? <LtrIcon {...props} /> : <RtlIcon {...props} />;\n };\n};\n"],"names":["LtrIcon","RtlIcon","props","direction","useUser","_jsx","jsx"],"mappings":"+GAciC,CAACA,EAAsBC,IAC9CC,IACN,MAAMC,UAAEA,GAAcC,EAAAA,UACtB,MAAqB,QAAdD,EAAsBE,MAACL,EAAO,IAAKE,IAAYG,EAAAC,IAACL,EAAY,IAAAC,GAAS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './LayerHost-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './LayerHost-0b288129', './EnvironmentProvider-403bf554', './Theme-d945adae'], (function(S,e,E,r,C,A,L){"use strict";S.withThemeProps=S=>{const C=S.displayName||S.name||"ComponentWithProvider",_=r.forwardRef((({colorScheme:C,scale:_,density:t,...a},d)=>{const n=d||E.createRef();return r.useEffect((()=>{if(n.current){const{classList:S}=n.current;if(!S)return;if(C){[L.LIGHT_CLASS,L.DARK_CLASS,L.INVERT_CLASS,L.COLORSCHEME_DEPENDENT_CLASS].map((e=>S.remove(e))),"dark"===C?(S.add(L.DARK_CLASS),S.add(L.INVERT_CLASS)):S.add(L.LIGHT_CLASS),S.add(L.COLORSCHEME_DEPENDENT_CLASS)}if(_){[L.SCALE_SM_CLASS,L.SCALE_MD_CLASS,L.SCALE_LG_CLASS,L.SCALE_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"sm"===_?L.SCALE_SM_CLASS:"md"===_?L.SCALE_MD_CLASS:L.SCALE_LG_CLASS}`),S.add(L.SCALE_DEPENDENT_CLASS)}if(t){[L.DENSITY_COMPACT_CLASS,L.DENSITY_STANDARD_CLASS,L.DENSITY_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"compact"===t?L.DENSITY_COMPACT_CLASS:L.DENSITY_STANDARD_CLASS}`),S.add(L.DENSITY_DEPENDENT_CLASS)}}}),[n,C,_,t]),e.jsx(A.EnvironmentProvider,{environment:{colorScheme:C,scale:_,density:t},children:e.jsx(S,{...a,ref:n})})}));return _.displayName=`withThemeProps(${C})`,_}}));
|
|
2
2
|
//# sourceMappingURL=withThemeProps-88ad9dea.js.map
|
|
@@ -28,9 +28,6 @@ var TabbableModeContext = require('./TabbableModeContext-e99d527e.js');
|
|
|
28
28
|
var FocusTrap = require('./FocusTrap-4873a3f2.js');
|
|
29
29
|
var useUser = require('./useUser-1295b5cb.js');
|
|
30
30
|
var keys = require('./keys-25710458.js');
|
|
31
|
-
require('./StyledCheckbox-2535cb54.js');
|
|
32
|
-
|
|
33
|
-
require('./CollectionInteractionContext-f84ff7a1.js');
|
|
34
31
|
var useReorderableItem = require('./useReorderableItem-d6081e65.js');
|
|
35
32
|
var useReorderableContext = require('./useReorderableContext-92514102.js');
|
|
36
33
|
var Grid = require('./Grid-cef20569.js');
|
|
@@ -635,4 +632,4 @@ const BaseCardView = BaseCardViewImpl;
|
|
|
635
632
|
exports.BaseCardView = BaseCardView;
|
|
636
633
|
exports.getColCount = getColCount;
|
|
637
634
|
exports.gutterSizeToPX = gutterSizeToPX;
|
|
638
|
-
//# sourceMappingURL=BaseCardView-
|
|
635
|
+
//# sourceMappingURL=BaseCardView-5690e60a.js.map
|