@oracle/oraclejet-preact 18.0.4 → 18.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amd/{BaseCardView-ab799b69.js → BaseCardView-70b177ed.js} +2 -2
- package/amd/{BaseCardView-ab799b69.js.map → BaseCardView-70b177ed.js.map} +1 -1
- package/amd/CardFlexView-bb5c4369.js +2 -0
- package/amd/{CardFlexView-296f97f5.js.map → CardFlexView-bb5c4369.js.map} +1 -1
- package/amd/{CardGridView-054ffc3f.js → CardGridView-c28ff2f7.js} +2 -2
- package/amd/{CardGridView-054ffc3f.js.map → CardGridView-c28ff2f7.js.map} +1 -1
- package/amd/ExpandableList-dd3a05b4.js +1 -1
- package/amd/GroupLoadingIndicator-6b2ab709.js +1 -1
- package/amd/{Indexer-1531dbc3.js → Indexer-357554c4.js} +2 -2
- package/amd/{Indexer-1531dbc3.js.map → Indexer-357554c4.js.map} +1 -1
- package/amd/InputDatePicker-fc39f0a6.js +2 -0
- package/amd/{InputDatePicker-18e2546b.js.map → InputDatePicker-fc39f0a6.js.map} +1 -1
- package/amd/{LineAreaChart-d0941475.js → LineAreaChart-4140d004.js} +2 -2
- package/amd/{LineAreaChart-d0941475.js.map → LineAreaChart-4140d004.js.map} +1 -1
- package/amd/List-04c4fed0.js +2 -0
- package/amd/{List-0b764e84.js.map → List-04c4fed0.js.map} +1 -1
- package/amd/{ListView-5bb45f81.js → ListView-bf740071.js} +2 -2
- package/amd/{ListView-5bb45f81.js.map → ListView-bf740071.js.map} +1 -1
- package/amd/LoadMoreCollection-a6adbc3f.js +2 -0
- package/amd/{LoadMoreCollection-83413a59.js.map → LoadMoreCollection-a6adbc3f.js.map} +1 -1
- package/amd/NavigationListItem-044a79fd.js +2 -0
- package/amd/{NavigationListItem-021b2d58.js.map → NavigationListItem-044a79fd.js.map} +1 -1
- package/amd/{OverflowTabBar-ea3a4742.js → OverflowTabBar-339f34cf.js} +2 -2
- package/amd/{OverflowTabBar-ea3a4742.js.map → OverflowTabBar-339f34cf.js.map} +1 -1
- package/amd/{OverflowTabBarItem-763773c9.js → OverflowTabBarItem-c59db4a2.js} +2 -2
- package/amd/{OverflowTabBarItem-763773c9.js.map → OverflowTabBarItem-c59db4a2.js.map} +1 -1
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_LoadMoreCollection.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/{SelectMultiple-7e9bd455.js → SelectMultiple-e3a6732b.js} +2 -2
- package/amd/{SelectMultiple-7e9bd455.js.map → SelectMultiple-e3a6732b.js.map} +1 -1
- package/amd/{SelectSingle-466bcd67.js → SelectSingle-9d0dca8f.js} +2 -2
- package/amd/{SelectSingle-466bcd67.js.map → SelectSingle-9d0dca8f.js.map} +1 -1
- package/amd/{Table-87f7e3c4.js → Table-31cc83c6.js} +2 -2
- package/amd/{Table-87f7e3c4.js.map → Table-31cc83c6.js.map} +1 -1
- package/amd/{TableView-2b884e2c.js → TableView-ab5d0c12.js} +2 -2
- package/amd/{TableView-2b884e2c.js.map → TableView-ab5d0c12.js.map} +1 -1
- package/amd/Theme-redwood/theme.css +149 -149
- package/amd/Theme-stable/theme.css +277 -277
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_NavigationList.js +1 -1
- package/amd/UNSAFE_OverflowTabBar.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.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_VirtualizedListView.js +1 -1
- package/amd/{VirtualizedCollection-897516a5.js → VirtualizedCollection-63223f5e.js} +2 -2
- package/amd/{VirtualizedCollection-897516a5.js.map → VirtualizedCollection-63223f5e.js.map} +1 -1
- package/amd/{VirtualizedListView-cbe87ec2.js → VirtualizedListView-554eaee6.js} +2 -2
- package/amd/{VirtualizedListView-cbe87ec2.js.map → VirtualizedListView-554eaee6.js.map} +1 -1
- package/amd/{useSelectCommon-d9c4a7bd.js → useSelectCommon-e7f123ce.js} +2 -2
- package/amd/{useSelectCommon-d9c4a7bd.js.map → useSelectCommon-e7f123ce.js.map} +1 -1
- package/cjs/{BarChart-93a3813c.js → BarChart-ca7f8ed5.js} +2 -2
- package/cjs/{BarChart-93a3813c.js.map → BarChart-ca7f8ed5.js.map} +1 -1
- package/cjs/{Chart-40d95d14.js → Chart-fbbd3329.js} +2 -2
- package/cjs/{Chart-40d95d14.js.map → Chart-fbbd3329.js.map} +1 -1
- package/cjs/CheckboxSet-1bdbc419.js +53 -0
- package/cjs/CheckboxSet-1bdbc419.js.map +1 -0
- package/cjs/{ComboChart-cffd0759.js → ComboChart-95863e7a.js} +2 -2
- package/cjs/{ComboChart-cffd0759.js.map → ComboChart-95863e7a.js.map} +1 -1
- package/cjs/{LineAreaChart-57408e94.js → LineAreaChart-46dde5d3.js} +3 -3
- package/cjs/{LineAreaChart-57408e94.js.map → LineAreaChart-46dde5d3.js.map} +1 -1
- package/cjs/PRIVATE_Chart.js +4 -4
- package/cjs/{ScatterChart-763e1f3e.js → ScatterChart-0497f41a.js} +2 -2
- package/cjs/{ScatterChart-763e1f3e.js.map → ScatterChart-0497f41a.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +242 -242
- package/cjs/Theme-stable/theme.css +295 -295
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
- package/cjs/UNSAFE_BarChart.js +5 -5
- package/cjs/UNSAFE_CheckboxItem.js +81 -30
- package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
- package/cjs/UNSAFE_CheckboxSet.js +15 -44
- package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_ComboChart.js +5 -5
- package/cjs/UNSAFE_LineAreaChart.js +5 -5
- package/cjs/UNSAFE_RichCheckboxSet.js +15 -13
- package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_RichSelectionItem.js +181 -44
- package/cjs/UNSAFE_RichSelectionItem.js.map +1 -1
- package/cjs/UNSAFE_ScatterChart.js +5 -5
- package/es/ActionCard-e64b1771.js +1 -1
- package/es/{BarChart-dd37d569.js → BarChart-a3209793.js} +3 -3
- package/es/{BarChart-dd37d569.js.map → BarChart-a3209793.js.map} +1 -1
- package/es/BarGroup-740cd159.js +1 -1
- package/es/BaseButton-3ce1f027.js +2 -2
- package/es/BaseCardView-c5a8ee6a.js +7 -7
- package/es/{BaseCardViewSelectionTest-1a6585af.js → BaseCardViewSelectionTest-cf72be09.js} +7 -7
- package/es/{BaseCardViewSelectionTest-1a6585af.js.map → BaseCardViewSelectionTest-cf72be09.js.map} +1 -1
- package/es/BaseNavigationListItem-530bc3df.js +1 -1
- package/es/BaseRichSelection-9fa49816.js +8 -8
- package/es/ButtonSet-51dcff96.js +2 -2
- package/es/ButtonSetIconButton-536c1045.js +3 -3
- package/es/{Card-44b7de2f.js → Card-de0aef24.js} +2 -2
- package/es/{Card-44b7de2f.js.map → Card-de0aef24.js.map} +1 -1
- package/es/{Center-8b48ab02.js → Center-9f355d44.js} +2 -2
- package/es/{Center-8b48ab02.js.map → Center-9f355d44.js.map} +1 -1
- package/es/{Chart-b046fb6a.js → Chart-b97e00f1.js} +10 -10
- package/es/{Chart-b046fb6a.js.map → Chart-b97e00f1.js.map} +1 -1
- package/es/CheckboxControl-ee327a6d.js +6 -6
- package/es/CheckboxRadioField-a4db2c10.js +6 -6
- package/es/CheckboxSet-3c3b7c71.js +49 -0
- package/es/CheckboxSet-3c3b7c71.js.map +1 -0
- package/es/Chip-8554d3ff.js +1 -1
- package/es/ClearIcon-95064ad6.js +1 -1
- package/es/CollapseIcon-4e943f42.js +1 -1
- package/es/Collapsible-cb2ba356.js +2 -2
- package/es/{ComboChart-58ac07b4.js → ComboChart-b8c2be4d.js} +4 -4
- package/es/{ComboChart-58ac07b4.js.map → ComboChart-b8c2be4d.js.map} +1 -1
- package/es/CompactHelpSource-9c0d4cb4.js +2 -2
- package/es/{CompactLabelAssistance-6a627bbb.js → CompactLabelAssistance-7912767d.js} +5 -5
- package/es/{CompactLabelAssistance-6a627bbb.js.map → CompactLabelAssistance-7912767d.js.map} +1 -1
- package/es/CompactUserAssistance-12950e48.js +4 -4
- package/es/ComponentMessageContainer-f2837e7f.js +4 -4
- package/es/ConveyorBeltItem-188fcaf0.js +2 -2
- package/es/{DatePicker-d4c3ec06.js → DatePicker-38a71007.js} +6 -6
- package/es/{DatePicker-d4c3ec06.js.map → DatePicker-38a71007.js.map} +1 -1
- package/es/DatePickerHeader-5806fbea.js +3 -3
- package/es/{Diagram-a6348a41.js → Diagram-ee9ec4a9.js} +5 -5
- package/es/{Diagram-a6348a41.js.map → Diagram-ee9ec4a9.js.map} +1 -1
- package/es/{Dialog-d64dd573.js → Dialog-2248109e.js} +8 -8
- package/es/{Dialog-d64dd573.js.map → Dialog-2248109e.js.map} +1 -1
- package/es/DirectionalCollapseArrowIcon-daafb64c.js +1 -1
- package/es/DirectionalExpandArrowIcon-35def552.js +1 -1
- package/es/{DragHandle-d3a739f5.js → DragHandle-5cba8c4b.js} +2 -2
- package/es/{DragHandle-d3a739f5.js.map → DragHandle-5cba8c4b.js.map} +1 -1
- package/es/{Dropdown-f0cdaeae.js → Dropdown-f7fbfa81.js} +5 -5
- package/es/{Dropdown-f0cdaeae.js.map → Dropdown-f7fbfa81.js.map} +1 -1
- package/es/{EnvironmentProvider-0fc2fd0c.js → EnvironmentProvider-a3819bde.js} +3 -3
- package/es/{EnvironmentProvider-0fc2fd0c.js.map → EnvironmentProvider-a3819bde.js.map} +1 -1
- package/es/ExpandableList-478db30a.js +3 -3
- package/es/FilePicker-ecfad7d4.js +2 -2
- package/es/{Flex-8696b27b.js → Flex-2d51e914.js} +2 -2
- package/es/{Flex-8696b27b.js.map → Flex-2d51e914.js.map} +1 -1
- package/es/{Floating-9bf456f9.js → Floating-c13f9f62.js} +4 -4
- package/es/{Floating-9bf456f9.js.map → Floating-c13f9f62.js.map} +1 -1
- package/es/FormLayout-2efb00f6.js +1 -1
- package/es/Gantt-0adf9527.js +9 -9
- package/es/{Grid-7fd29a9e.js → Grid-c2385b22.js} +2 -2
- package/es/{Grid-7fd29a9e.js.map → Grid-c2385b22.js.map} +1 -1
- package/es/{Gridlines-5ac89a84.js → Gridlines-89b5506f.js} +2 -2
- package/es/{Gridlines-5ac89a84.js.map → Gridlines-89b5506f.js.map} +1 -1
- package/es/GroupLoadingIndicator-63035d08.js +1 -1
- package/es/{HighlightText-cc043982.js → HighlightText-d505bf35.js} +2 -2
- package/es/{HighlightText-cc043982.js.map → HighlightText-d505bf35.js.map} +1 -1
- package/es/Icon-bdd49f29.js +3 -3
- package/es/IconButton-62cd1cf9.js +3 -3
- package/es/IconMenuButton-242dc102.js +3 -3
- package/es/IconProgressButton-193d58bf.js +3 -3
- package/es/IconSwitchButton-a92911d0.js +3 -3
- package/es/IconToggleButton-fb7ccce9.js +3 -3
- package/es/{IconUserAssistance-627f9d18.js → IconUserAssistance-2b494a2e.js} +3 -3
- package/es/{IconUserAssistance-627f9d18.js.map → IconUserAssistance-2b494a2e.js.map} +1 -1
- package/es/Indexer-ba2c7593.js +4 -4
- package/es/InlineHelpSource-fcdcd122.js +1 -1
- package/es/InlineUserAssistance-04cce83e.js +5 -5
- package/es/InputDateMask-23aef570.js +7 -7
- package/es/{InputDatePicker-dd3b6c89.js → InputDatePicker-59bbd31d.js} +10 -10
- package/es/{InputDatePicker-dd3b6c89.js.map → InputDatePicker-59bbd31d.js.map} +1 -1
- package/es/InputPassword-2c87ceb9.js +4 -4
- package/es/InputText-3701adf8.js +6 -6
- package/es/Label-6d90e627.js +5 -5
- package/es/LabelValueLayout-bcf482be.js +1 -1
- package/es/{Layer-12a734d1.js → Layer-7497a324.js} +3 -3
- package/es/{Layer-12a734d1.js.map → Layer-7497a324.js.map} +1 -1
- package/es/{LayerHost-15b42a3e.js → LayerHost-7a2149f5.js} +2 -2
- package/es/{LayerHost-15b42a3e.js.map → LayerHost-7a2149f5.js.map} +1 -1
- package/es/{LayerManager-af39e736.js → LayerManager-be34be40.js} +2 -2
- package/es/{LayerManager-af39e736.js.map → LayerManager-be34be40.js.map} +1 -1
- package/es/Legend-588633b2.js +3 -3
- package/es/{LineAreaChart-b136ad7b.js → LineAreaChart-d6924882.js} +5 -5
- package/es/{LineAreaChart-b136ad7b.js.map → LineAreaChart-d6924882.js.map} +1 -1
- package/es/{LineSeries-ca5836e7.js → LineSeries-00fa2ab7.js} +2 -2
- package/es/{LineSeries-ca5836e7.js.map → LineSeries-00fa2ab7.js.map} +1 -1
- package/es/Link-9f8b5c41.js +1 -1
- package/es/List-97b7be70.js +5 -5
- package/es/{ListItemLayout-e87958e3.js → ListItemLayout-b3d899d6.js} +2 -2
- package/es/{ListItemLayout-e87958e3.js.map → ListItemLayout-b3d899d6.js.map} +1 -1
- package/es/ListView-936d8a4f.js +3 -3
- package/es/{LiveRegion-cb4f8a54.js → LiveRegion-5302331c.js} +2 -2
- package/es/{LiveRegion-cb4f8a54.js.map → LiveRegion-5302331c.js.map} +1 -1
- package/es/{MaxLengthLiveRegion-59087064.js → MaxLengthLiveRegion-9b386b63.js} +3 -3
- package/es/{MaxLengthLiveRegion-59087064.js.map → MaxLengthLiveRegion-9b386b63.js.map} +1 -1
- package/es/Menu-a37635b8.js +6 -6
- package/es/MenuButton-422a74de.js +2 -2
- package/es/MenuItem-831dfd05.js +1 -1
- package/es/Message-9d1504b6.js +2 -2
- package/es/{MessageLayer-8bed437a.js → MessageLayer-9ea7cf82.js} +6 -6
- package/es/{MessageLayer-8bed437a.js.map → MessageLayer-9ea7cf82.js.map} +1 -1
- package/es/MessageToast-7058b181.js +8 -8
- package/es/MessagesManager-9dd3eb3d.js +3 -3
- package/es/MeterBar-551d32db.js +5 -5
- package/es/MeterCircle-5e2ee267.js +5 -5
- package/es/{Modal-103da2aa.js → Modal-1710fdd2.js} +3 -3
- package/es/{Modal-103da2aa.js.map → Modal-1710fdd2.js.map} +1 -1
- package/es/{MonthView-3f86e858.js → MonthView-9c0b40f1.js} +4 -4
- package/es/{MonthView-3f86e858.js.map → MonthView-9c0b40f1.js.map} +1 -1
- package/es/{NavigationListItem-57a7cf4b.js → NavigationListItem-5b25b2f5.js} +16 -3
- package/es/{NavigationListItem-57a7cf4b.js.map → NavigationListItem-5b25b2f5.js.map} +1 -1
- package/es/NumberInputText-58e80ab7.js +6 -6
- package/es/{OverflowTabBar-9df72c15.js → OverflowTabBar-47a03b1f.js} +2 -2
- package/es/{OverflowTabBar-9df72c15.js.map → OverflowTabBar-47a03b1f.js.map} +1 -1
- package/es/{OverflowTabBarItem-0d925d02.js → OverflowTabBarItem-08625093.js} +5 -5
- package/es/{OverflowTabBarItem-0d925d02.js.map → OverflowTabBarItem-08625093.js.map} +1 -1
- package/es/PRIVATE_BaseCardView.js +22 -22
- package/es/PRIVATE_Chart.js +35 -35
- package/es/PRIVATE_CheckboxControl.js +23 -23
- package/es/PRIVATE_CheckboxRadioField.js +24 -24
- package/es/PRIVATE_ClearIcon.js +18 -18
- package/es/PRIVATE_DatePickerHeader.js +19 -19
- package/es/PRIVATE_DatePickerLayout.js +4 -4
- package/es/PRIVATE_EmbeddedIconButton.js +3 -3
- package/es/PRIVATE_FormControls.js +19 -19
- package/es/PRIVATE_IconSwitchButton.js +16 -16
- package/es/PRIVATE_Icons/CheckboxMixed.js +16 -16
- package/es/PRIVATE_Icons/CheckboxOff.js +16 -16
- package/es/PRIVATE_Icons/CheckboxOn.js +16 -16
- package/es/PRIVATE_Icons/DragV.js +16 -16
- package/es/PRIVATE_Icons/WarningS.js +16 -16
- package/es/PRIVATE_List.js +20 -20
- package/es/PRIVATE_Message.js +19 -19
- package/es/PRIVATE_MessageLayer.js +12 -12
- package/es/PRIVATE_MonthView.js +7 -7
- package/es/PRIVATE_MonthYearGridView.js +7 -7
- package/es/PRIVATE_PlotArea.js +4 -4
- package/es/PRIVATE_RevealToggleIcon.js +17 -17
- package/es/PRIVATE_RichSelectionCommon.js +25 -25
- package/es/PRIVATE_SelectCommon.js +28 -28
- package/es/PRIVATE_StyledCard.js +4 -4
- package/es/PRIVATE_StyledCheckbox.js +16 -16
- package/es/PRIVATE_Table.js +24 -24
- package/es/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
- package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
- package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
- package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
- package/es/PRIVATE_TimeComponent.js +18 -18
- package/es/PRIVATE_VisOverview.js +16 -16
- package/es/PRIVATE_VisTabularDatatip.js +4 -4
- package/es/PictoChart-3f059ad1.js +6 -6
- package/es/PieChart-ca02932e.js +6 -6
- package/es/{Popup-6c3f0839.js → Popup-a4be2769.js} +9 -9
- package/es/{Popup-6c3f0839.js.map → Popup-a4be2769.js.map} +1 -1
- package/es/{ProgressBar-95461222.js → ProgressBar-4fbb27ab.js} +3 -3
- package/es/{ProgressBar-95461222.js.map → ProgressBar-4fbb27ab.js.map} +1 -1
- package/es/ProgressButton-2497c81b.js +3 -3
- package/es/ProgressButtonLabelLayout-bfc7c805.js +3 -3
- package/es/{ProgressCircle-93c309cb.js → ProgressCircle-2d3833fa.js} +2 -2
- package/es/{ProgressCircle-93c309cb.js.map → ProgressCircle-2d3833fa.js.map} +1 -1
- package/es/RadioItem-35f68420.js +6 -6
- package/es/RatingGauge-5346d0bf.js +7 -7
- package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
- package/es/RemovableNavigationListItem-29fdaddc.js +1 -1
- package/es/RemovableTabBarItem-1cc7a0ca.js +2 -2
- package/es/ReorderableTabBar-b9019d0a.js +3 -3
- package/es/RevealToggleIcon-51514e37.js +1 -1
- package/es/{ScatterChart-0cbabd0f.js → ScatterChart-d26d4ea9.js} +4 -4
- package/es/{ScatterChart-0cbabd0f.js.map → ScatterChart-d26d4ea9.js.map} +1 -1
- package/es/SectionalLegend-c71d48a3.js +4 -4
- package/es/{SectionedContent-3fd063af.js → SectionedContent-2d0a744d.js} +5 -5
- package/es/{SectionedContent-3fd063af.js.map → SectionedContent-2d0a744d.js.map} +1 -1
- package/es/SelectMultiple-ad8fc99a.js +8 -8
- package/es/SelectSingle-abaf271c.js +7 -7
- package/es/{SelectionCard-1f8585cb.js → SelectionCard-792c249d.js} +2 -2
- package/es/{SelectionCard-1f8585cb.js.map → SelectionCard-792c249d.js.map} +1 -1
- package/es/Selector-5892544f.js +1 -1
- package/es/{SelectorAll-e833da6d.js → SelectorAll-ab748274.js} +7 -7
- package/es/{SelectorAll-e833da6d.js.map → SelectorAll-ab748274.js.map} +1 -1
- package/es/{Sheet-0861fcc0.js → Sheet-31e6970c.js} +3 -3
- package/es/{Sheet-0861fcc0.js.map → Sheet-31e6970c.js.map} +1 -1
- package/es/SplitMenuButton-3dbd83b7.js +2 -2
- package/es/SplitMenuButtonTheme.styles.css +4 -4
- package/es/SplitMenuButtonTheme.styles2.css +4 -4
- package/es/{StyledCard-f5965d6d.js → StyledCard-6913b45c.js} +2 -2
- package/es/{StyledCard-f5965d6d.js.map → StyledCard-6913b45c.js.map} +1 -1
- package/es/StyledTextField-ebb5409d.js +3 -3
- package/es/TabBar-fb7f97d2.js +5 -5
- package/es/TabBarItem-252cba76.js +3 -3
- package/es/TabBarLayout-8caaa060.js +1 -1
- package/es/TabBarMixed-f60c2c7a.js +5 -5
- package/es/{TabBarMixedSeparator-da56f4c0.js → TabBarMixedSeparator-16c88691.js} +2 -2
- package/es/{TabBarMixedSeparator-da56f4c0.js.map → TabBarMixedSeparator-16c88691.js.map} +1 -1
- package/es/Table-1ba124ec.js +9 -9
- package/es/TagCloud-f7e50ac4.js +8 -8
- package/es/TextArea-7230675f.js +5 -5
- package/es/TextAreaAutosize-0d293016.js +5 -5
- package/es/TextField-cb494638.js +3 -3
- package/es/TextFieldInput-3c2e920d.js +1 -1
- package/es/Theme-redwood/theme.css +467 -467
- package/es/Theme-stable/theme.css +560 -560
- package/es/TimeComponentCanvas2D-2a4a0c94.js +5 -5
- package/es/Toolbar-7676795b.js +1 -1
- package/es/{TruncatingBadge-b69c1ceb.js → TruncatingBadge-0f04b894.js} +4 -4
- package/es/{TruncatingBadge-b69c1ceb.js.map → TruncatingBadge-0f04b894.js.map} +1 -1
- package/es/{TruncatingText-68acfafd.js → TruncatingText-ccad557f.js} +4 -4
- package/es/{TruncatingText-68acfafd.js.map → TruncatingText-ccad557f.js.map} +1 -1
- package/es/UNSAFE_ActionCard.js +3 -3
- package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +36 -36
- package/es/UNSAFE_BarChart.js +36 -36
- package/es/UNSAFE_BaseButton.js +3 -3
- package/es/UNSAFE_Button.js +3 -3
- package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +22 -22
- package/es/UNSAFE_ButtonSet.js +4 -4
- package/es/UNSAFE_ButtonSetButton.js +3 -3
- package/es/UNSAFE_ButtonSetIconButton.js +16 -16
- package/es/UNSAFE_ButtonSetItem.js +16 -16
- package/es/UNSAFE_ButtonSetMultiple.js +4 -4
- package/es/UNSAFE_ButtonSetSingle.js +4 -4
- package/es/UNSAFE_Card.js +5 -5
- package/es/UNSAFE_CardFlexView.js +22 -22
- package/es/UNSAFE_CardGridView.js +22 -22
- package/es/UNSAFE_Center.js +5 -5
- package/es/UNSAFE_ChartWithLegend.js +4 -4
- package/es/UNSAFE_Checkbox.js +23 -23
- package/es/UNSAFE_CheckboxItem.js +103 -52
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +33 -67
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_Chip.js +2 -2
- package/es/UNSAFE_Collapsible.js +18 -18
- package/es/UNSAFE_ComboChart.js +38 -38
- package/es/UNSAFE_ComponentMessage.js +19 -19
- package/es/UNSAFE_ConveyorBelt.js +16 -16
- package/es/UNSAFE_DatePicker.js +24 -24
- package/es/UNSAFE_Diagram.js +21 -21
- package/es/UNSAFE_Dialog.js +21 -21
- package/es/UNSAFE_DragHandle.js +18 -18
- package/es/UNSAFE_DrawerLayout.js +12 -12
- package/es/UNSAFE_DrawerPopup.js +11 -11
- package/es/UNSAFE_Dropdown.js +13 -13
- package/es/UNSAFE_Environment.js +4 -4
- package/es/UNSAFE_ExpandableList.js +23 -23
- package/es/UNSAFE_FilePicker.js +4 -4
- package/es/UNSAFE_Flex.js +4 -4
- package/es/UNSAFE_Floating.js +11 -11
- package/es/UNSAFE_FormLayout.js +2 -2
- package/es/UNSAFE_Gantt.js +23 -23
- package/es/UNSAFE_Grid.js +4 -4
- package/es/UNSAFE_HighlightText.js +4 -4
- package/es/UNSAFE_Icon.js +16 -16
- package/es/UNSAFE_IconButton.js +16 -16
- package/es/UNSAFE_IconMenuButton.js +21 -21
- package/es/UNSAFE_IconProgressButton.js +19 -19
- package/es/UNSAFE_IconToggleButton.js +16 -16
- package/es/UNSAFE_Indexer.js +6 -6
- package/es/UNSAFE_InputDateMask.js +24 -24
- package/es/UNSAFE_InputDatePicker.js +113 -113
- package/es/UNSAFE_InputPassword.js +23 -23
- package/es/UNSAFE_InputSensitiveText.js +25 -25
- package/es/UNSAFE_InputText.js +26 -26
- package/es/UNSAFE_InputTimeMask.js +24 -24
- package/es/UNSAFE_Label.js +23 -23
- package/es/UNSAFE_LabelValueLayout.js +4 -4
- package/es/UNSAFE_LabelledLink.js +24 -24
- package/es/UNSAFE_Layer.js +8 -8
- package/es/UNSAFE_Legend.js +24 -24
- package/es/UNSAFE_LineAreaChart.js +38 -38
- package/es/UNSAFE_Link.js +2 -2
- package/es/UNSAFE_ListItemLayout.js +5 -5
- package/es/UNSAFE_ListView.js +28 -28
- package/es/UNSAFE_LiveRegion.js +4 -4
- package/es/UNSAFE_Menu.js +23 -23
- package/es/UNSAFE_MenuButton.js +21 -21
- package/es/UNSAFE_MessageBanner.js +19 -19
- package/es/UNSAFE_MessageToast.js +22 -22
- package/es/UNSAFE_MeterBar.js +16 -16
- package/es/UNSAFE_MeterCircle.js +17 -17
- package/es/UNSAFE_Modal.js +8 -8
- package/es/UNSAFE_NavigationList.js +24 -24
- package/es/UNSAFE_NavigationListCommon.js +18 -18
- package/es/UNSAFE_NumberInputText.js +25 -25
- package/es/UNSAFE_OverflowTabBar.js +27 -27
- package/es/UNSAFE_PictoChart.js +14 -14
- package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +21 -21
- package/es/UNSAFE_PieChart.js +21 -21
- package/es/UNSAFE_Popup.js +16 -16
- package/es/UNSAFE_ProgressBar.js +5 -5
- package/es/UNSAFE_ProgressButton.js +19 -19
- package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/es/UNSAFE_ProgressCircle.js +4 -4
- package/es/UNSAFE_RadioItem.js +23 -23
- package/es/UNSAFE_RadioSet.js +23 -23
- package/es/UNSAFE_RatingGauge.js +17 -17
- package/es/UNSAFE_ReorderableTabBar.js +24 -24
- package/es/UNSAFE_RichCheckboxSet.js +38 -36
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichRadioSet.js +25 -25
- package/es/UNSAFE_RichSelectionItem.js +194 -57
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +38 -38
- package/es/UNSAFE_SectionalLegend.js +25 -25
- package/es/UNSAFE_SelectMultiple.js +30 -30
- package/es/UNSAFE_SelectSingle.js +30 -30
- package/es/UNSAFE_SelectionCard.js +5 -5
- package/es/UNSAFE_Selector.js +16 -16
- package/es/UNSAFE_SelectorAll.js +20 -20
- package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +14 -14
- package/es/UNSAFE_Sheet.js +11 -11
- package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
- package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
- package/es/UNSAFE_SplitMenuButton.js +22 -22
- package/es/UNSAFE_TabBar.js +27 -27
- package/es/UNSAFE_TabBarCommon.js +27 -27
- package/es/UNSAFE_TabBarMixed.js +28 -28
- package/es/UNSAFE_TableView.js +24 -24
- package/es/UNSAFE_TagCloud.js +23 -23
- package/es/UNSAFE_TextArea.js +25 -25
- package/es/UNSAFE_TextAreaAutosize.js +25 -25
- package/es/UNSAFE_TextField.js +7 -7
- package/es/UNSAFE_ToggleButton.js +3 -3
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +24 -24
- package/es/UNSAFE_Toolbar.js +4 -4
- package/es/UNSAFE_Train.js +17 -17
- package/es/UNSAFE_TruncatingBadge.js +18 -18
- package/es/UNSAFE_TruncatingText.js +17 -17
- package/es/UNSAFE_UserAssistance.js +24 -24
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +20 -20
- package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
- package/es/UNSAFE_VisProgressiveLoader.js +6 -6
- package/es/UNSAFE_VisStatusMessage.js +6 -6
- package/es/UNSAFE_WindowOverlay.js +4 -4
- package/es/{View-63980a9b.js → View-a8a64eb1.js} +5 -5
- package/es/{View-63980a9b.js.map → View-a8a64eb1.js.map} +1 -1
- package/es/{VisNoData-02cab8f6.js → VisNoData-794ddc21.js} +3 -3
- package/es/{VisNoData-02cab8f6.js.map → VisNoData-794ddc21.js.map} +1 -1
- package/es/{VisProgressiveLoader-2b2103c8.js → VisProgressiveLoader-66dde1ff.js} +3 -3
- package/es/{VisProgressiveLoader-2b2103c8.js.map → VisProgressiveLoader-66dde1ff.js.map} +1 -1
- package/es/{VisTabularDatatip-2ae7ee48.js → VisTabularDatatip-6aa607bb.js} +2 -2
- package/es/{VisTabularDatatip-2ae7ee48.js.map → VisTabularDatatip-6aa607bb.js.map} +1 -1
- package/es/{WindowOverlay-9b43e658.js → WindowOverlay-de5d0819.js} +2 -2
- package/es/{WindowOverlay-9b43e658.js.map → WindowOverlay-de5d0819.js.map} +1 -1
- package/es/{YearsGridView-cc0574f2.js → YearsGridView-cb510d1e.js} +4 -4
- package/es/{YearsGridView-cc0574f2.js.map → YearsGridView-cb510d1e.js.map} +1 -1
- package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
- package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
- package/es/hoc/UNSAFE_withThemeProps.js +3 -3
- package/es/hooks/PRIVATE_useChartContextMenu.js +20 -20
- package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
- package/es/hooks/PRIVATE_useChartEvents.js +18 -18
- package/es/hooks/PRIVATE_useChartMarquee.js +18 -18
- package/es/hooks/PRIVATE_useCssVars.js +7 -7
- package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/es/hooks/PRIVATE_useDatatip.js +12 -12
- package/es/hooks/PRIVATE_useFloating.js +4 -4
- package/es/hooks/PRIVATE_useReorderable.js +5 -5
- package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/es/hooks/PRIVATE_useSelection.js +4 -4
- package/es/hooks/PRIVATE_useTabBar.js +4 -4
- package/es/hooks/PRIVATE_useVisContextMenu.js +20 -20
- package/es/hooks/PRIVATE_useVisDragModeControls.js +18 -18
- package/es/hooks/PRIVATE_useVisEvents.js +4 -4
- package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
- package/es/hooks/PRIVATE_useVisSelection.js +13 -13
- package/es/hooks/UNSAFE_useColorScheme.js +3 -3
- package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
- package/es/hooks/UNSAFE_useDensity.js +3 -3
- package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
- package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
- package/es/hooks/UNSAFE_useScale.js +3 -3
- package/es/hooks/UNSAFE_useTestId.js +3 -3
- package/es/hooks/UNSAFE_useTheme.js +3 -3
- package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
- package/es/hooks/UNSAFE_useTooltip.js +17 -17
- package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/es/hooks/UNSAFE_useUser.js +3 -3
- package/es/{index-20f848bc.js → index-f4c1d6de.js} +2 -2
- package/es/index-f4c1d6de.js.map +1 -0
- package/es/listViewSelectionTests-79aa17b2.js +3 -3
- package/es/{render-2b908d4f.js → render-9dce082a.js} +3 -3
- package/es/{render-2b908d4f.js.map → render-9dce082a.js.map} +1 -1
- package/es/{tabbableUtils-20bbaf8d.js → tabbableUtils-93a7cd6f.js} +3 -3
- package/es/{tabbableUtils-20bbaf8d.js.map → tabbableUtils-93a7cd6f.js.map} +1 -1
- package/es/{testData-70bebfae.js → testData-a9ced8ec.js} +3 -3
- package/es/{testData-70bebfae.js.map → testData-a9ced8ec.js.map} +1 -1
- package/es/{tooltipUtils-38192add.js → tooltipUtils-fcfd7dbb.js} +5 -5
- package/es/{tooltipUtils-38192add.js.map → tooltipUtils-fcfd7dbb.js.map} +1 -1
- package/es/useCellNavigation-00d575ca.js +1 -1
- package/es/useChartContextMenu-121a5f6d.js +2 -2
- package/es/{useChartDatatip-977bc33d.js → useChartDatatip-c929f857.js} +4 -4
- package/es/{useChartDatatip-977bc33d.js.map → useChartDatatip-c929f857.js.map} +1 -1
- package/es/{useColorScheme-d8a80e2b.js → useColorScheme-f69d53b5.js} +2 -2
- package/es/{useColorScheme-d8a80e2b.js.map → useColorScheme-f69d53b5.js.map} +1 -1
- package/es/useContextMenu-8c47333e.js +2 -2
- package/es/{useCssVars-8e6932f8.js → useCssVars-48595cd2.js} +5 -5
- package/es/{useCssVars-8e6932f8.js.map → useCssVars-48595cd2.js.map} +1 -1
- package/es/{useCurrentBgColor-5418492b.js → useCurrentBgColor-894d059b.js} +2 -2
- package/es/{useCurrentBgColor-5418492b.js.map → useCurrentBgColor-894d059b.js.map} +1 -1
- package/es/{useCurrentKey-63f6afcc.js → useCurrentKey-aa75ec92.js} +2 -2
- package/es/{useCurrentKey-63f6afcc.js.map → useCurrentKey-aa75ec92.js.map} +1 -1
- package/es/{useDatatip-bce558e2.js → useDatatip-40475371.js} +4 -4
- package/es/{useDatatip-bce558e2.js.map → useDatatip-40475371.js.map} +1 -1
- package/es/{useDensity-64ecb649.js → useDensity-04a01caf.js} +2 -2
- package/es/{useDensity-64ecb649.js.map → useDensity-04a01caf.js.map} +1 -1
- package/es/{useFloating-41d21e7d.js → useFloating-dad3f791.js} +2 -2
- package/es/{useFloating-41d21e7d.js.map → useFloating-dad3f791.js.map} +1 -1
- package/es/{useKeyboardEvents-5c311766.js → useKeyboardEvents-b02e5fda.js} +2 -2
- package/es/{useKeyboardEvents-5c311766.js.map → useKeyboardEvents-b02e5fda.js.map} +1 -1
- package/es/useLegendContextMenu-1043d63c.js +4 -4
- package/es/{useMeterDatatip-5268869e.js → useMeterDatatip-4adf64f2.js} +3 -3
- package/es/{useMeterDatatip-5268869e.js.map → useMeterDatatip-4adf64f2.js.map} +1 -1
- package/es/{useOutsideClick-8a582d08.js → useOutsideClick-c19a8d7f.js} +2 -2
- package/es/{useOutsideClick-8a582d08.js.map → useOutsideClick-c19a8d7f.js.map} +1 -1
- package/es/{usePopupAnimation-e2e6a2ca.js → usePopupAnimation-267b444c.js} +2 -2
- package/es/{usePopupAnimation-e2e6a2ca.js.map → usePopupAnimation-267b444c.js.map} +1 -1
- package/es/{usePrefixSuffix-435a9c59.js → usePrefixSuffix-995d4cda.js} +2 -2
- package/es/{usePrefixSuffix-435a9c59.js.map → usePrefixSuffix-995d4cda.js.map} +1 -1
- package/es/{useReorderableItem-96616318.js → useReorderableItem-7f7c13b5.js} +3 -3
- package/es/{useReorderableItem-96616318.js.map → useReorderableItem-7f7c13b5.js.map} +1 -1
- package/es/{useRovingTabIndexContainer-9afe3ee0.js → useRovingTabIndexContainer-7ec9f36f.js} +2 -2
- package/es/{useRovingTabIndexContainer-9afe3ee0.js.map → useRovingTabIndexContainer-7ec9f36f.js.map} +1 -1
- package/es/{useScale-c86ecc6e.js → useScale-3b323ab2.js} +2 -2
- package/es/{useScale-c86ecc6e.js.map → useScale-3b323ab2.js.map} +1 -1
- package/es/useSelectCommon-1dafa6f9.js +11 -11
- package/es/{useSelectDrill-24264e6b.js → useSelectDrill-232b571c.js} +3 -3
- package/es/{useSelectDrill-24264e6b.js.map → useSelectDrill-232b571c.js.map} +1 -1
- package/es/{useSelection-1b256f77.js → useSelection-bbd2320f.js} +5 -5
- package/es/{useSelection-1b256f77.js.map → useSelection-bbd2320f.js.map} +1 -1
- package/es/{useSelection-879c64aa.js → useSelection-c46ba985.js} +2 -2
- package/es/{useSelection-879c64aa.js.map → useSelection-c46ba985.js.map} +1 -1
- package/es/useTabBar-efad9075.js +1 -1
- package/es/{useTestId-3bc3958c.js → useTestId-af32a9eb.js} +2 -2
- package/es/{useTestId-3bc3958c.js.map → useTestId-af32a9eb.js.map} +1 -1
- package/es/{useTheme-4b0f211c.js → useTheme-73aca0e4.js} +2 -2
- package/es/{useTheme-4b0f211c.js.map → useTheme-73aca0e4.js.map} +1 -1
- package/es/{useThemeInterpolations-8bee52ac.js → useThemeInterpolations-242b30ed.js} +5 -5
- package/es/{useThemeInterpolations-8bee52ac.js.map → useThemeInterpolations-242b30ed.js.map} +1 -1
- package/es/{useTooltip-98b6d3b5.js → useTooltip-72f5cf2e.js} +2 -2
- package/es/{useTooltip-98b6d3b5.js.map → useTooltip-72f5cf2e.js.map} +1 -1
- package/es/{useTooltipControlled-b565c75b.js → useTooltipControlled-97142fd1.js} +5 -5
- package/es/{useTooltipControlled-b565c75b.js.map → useTooltipControlled-97142fd1.js.map} +1 -1
- package/es/{useTranslationBundle-98df6291.js → useTranslationBundle-6da03e52.js} +2 -2
- package/es/{useTranslationBundle-98df6291.js.map → useTranslationBundle-6da03e52.js.map} +1 -1
- package/es/{useUser-a15426fc.js → useUser-bca8cf2d.js} +2 -2
- package/es/{useUser-a15426fc.js.map → useUser-bca8cf2d.js.map} +1 -1
- package/es/useVisDragModeControls-4d8d8a3b.js +1 -1
- package/es/{useVisEvents-7d4753c4.js → useVisEvents-37c78cfe.js} +2 -2
- package/es/{useVisEvents-7d4753c4.js.map → useVisEvents-37c78cfe.js.map} +1 -1
- package/es/utils/PRIVATE_tooltipUtils.js +14 -14
- package/es/utils/PRIVATE_visTestUtils.js +6 -6
- package/es/{withDirectionIcon-90d7c798.js → withDirectionIcon-389870a2.js} +2 -2
- package/es/{withDirectionIcon-90d7c798.js.map → withDirectionIcon-389870a2.js.map} +1 -1
- package/es/withThemeProps-6545df54.js +2 -2
- package/package.json +2 -2
- package/amd/CardFlexView-296f97f5.js +0 -2
- package/amd/InputDatePicker-18e2546b.js +0 -2
- package/amd/List-0b764e84.js +0 -2
- package/amd/LoadMoreCollection-83413a59.js +0 -2
- package/amd/NavigationListItem-021b2d58.js +0 -2
- package/cjs/CheckboxSetContext-c62db26d.js +0 -12
- package/cjs/CheckboxSetContext-c62db26d.js.map +0 -1
- package/es/CheckboxSetContext-1be56556.js +0 -9
- package/es/CheckboxSetContext-1be56556.js.map +0 -1
- package/es/index-20f848bc.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationListItem-57a7cf4b.js","sources":["../../src/UNSAFE_NavigationList/useNavigationList.ts","../../src/UNSAFE_NavigationList/NavigationList.tsx","../../src/UNSAFE_NavigationList/NavigationListItem.tsx"],"sourcesContent":["import { useState, useCallback, MutableRef, useRef, useEffect } from 'preact/hooks';\nimport {\n keyExtractor,\n getFirstVisibleKey,\n getKey,\n getPrevNextKeyUsingRef,\n findElementByKey\n} from '../utils/PRIVATE_collectionUtils';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { useCollectionFocusRing } from '../hooks/PRIVATE_useCollectionFocusRing';\nimport { useCurrentKey } from '../hooks/PRIVATE_useCurrentKey';\nimport { NavigationListContextProps } from '../UNSAFE_NavigationListCommon';\n\nimport { ComponentChildren } from 'preact';\n\n/**\n * type for payload of current key change event handler\n */\ntype CurrentKeyDetail<K> = {\n value: K;\n};\n/**\n * type for payload of selection change event handler\n */\ntype SelectionDetail<K> = {\n value: K;\n reason: 'pointer' | 'keyboard';\n};\n/**\n * type for payload of remove event handler\n */\ntype RemoveDetail<K> = {\n value: K;\n};\n\n/*TODO: JET-58534. Create a hook to share some logic between navlist and tabbar. Hook will be used inside this one. */\nexport function useNavigationList<K extends string | number>({\n containerRef,\n selection,\n onRemove,\n onSelectionChange,\n children\n}: {\n containerRef: MutableRef<HTMLUListElement>;\n selection?: K;\n onRemove?: <K extends string | number>(detail: RemoveDetail<K>) => void;\n onSelectionChange?: <K extends string | number>(detail: SelectionDetail<K>) => void;\n children: ComponentChildren;\n}) {\n const ITEM_SELECTOR = '[role=\"tab\"]';\n const REMOVAL_ICON_SELECTOR = '[data-oj-navigationlist-item-remove-icon]';\n const [currentKey, setCurrentKey] = useState<K | undefined>(selection);\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K | undefined>) => {\n setCurrentKey(detail.value);\n }, []) as NavigationListContextProps<K>['onCurrentKeyChange'];\n\n const { currentKeyProps } = useCurrentKey(\n (element) =>\n onRemove\n ? (extractOnlyItemKey(element, ITEM_SELECTOR, REMOVAL_ICON_SELECTOR) as K)\n : keyExtractor(element, ITEM_SELECTOR),\n false,\n getPrevNextKeyUsingRef(containerRef, currentKey, true, ITEM_SELECTOR),\n getPrevNextKeyUsingRef(containerRef, currentKey, false, ITEM_SELECTOR),\n undefined,\n undefined,\n currentKey,\n onCurrentKeyChange\n );\n\n const [showFocusRing, focusRingProps] = useCollectionFocusRing(containerRef, [\n 'Home',\n 'End',\n 'ArrowUp',\n 'ArrowDown'\n ]);\n\n const onFocus = useCallback(() => {\n if (containerRef.current && currentKey === undefined) {\n const key = getFirstVisibleKey(containerRef.current, ITEM_SELECTOR);\n if (key) {\n setCurrentKey(key as K);\n }\n }\n }, [currentKey, containerRef]);\n\n const onFocusProps = { onFocus };\n const prevNavItems = useRef<K[]>();\n\n useEffect(() => {\n if (containerRef.current) {\n const navListItemKeys = Array.from(\n containerRef.current.querySelectorAll(ITEM_SELECTOR),\n (elem) => getKey(elem as HTMLElement) as K\n );\n if (currentKey != null && navListItemKeys.indexOf(currentKey) !== -1) {\n const navListItem = findElementByKey(\n containerRef.current,\n currentKey,\n ITEM_SELECTOR\n ) as any;\n if (navListItem.scrollIntoViewIfNeeded) {\n // for some browsers, we'll need the non-standard scrollIntoViewIfNeeded\n navListItem.scrollIntoViewIfNeeded();\n } else {\n navListItem.scrollIntoView({ block: 'nearest' });\n }\n } else {\n if (currentKey && navListItemKeys.indexOf(currentKey) === -1) {\n prevNavItems.current\n ? setCurrentKey(findNextCurrentKey(currentKey, navListItemKeys, prevNavItems.current))\n : setCurrentKey(navListItemKeys[0] as K);\n }\n prevNavItems.current = navListItemKeys;\n }\n }\n }, [children, currentKey, containerRef]);\n\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if ((event.key === 'Home' || event.key === 'End') && containerRef.current && currentKey) {\n const navListItemKey = Array.from(\n containerRef.current.querySelectorAll(ITEM_SELECTOR),\n (elem) => getKey(elem as HTMLElement) as K\n );\n onCurrentKeyChange?.({\n value: navListItemKey[event.key === 'Home' ? 0 : navListItemKey.length - 1] as K\n });\n }\n if (currentKey && (event.key === 'Enter' || event.key === ' ')) {\n onSelectionChange?.({\n value: currentKey as K,\n reason: 'keyboard'\n });\n }\n if (currentKey && event.key === 'Delete') {\n onRemove?.({ value: currentKey as K });\n }\n },\n [currentKey, onSelectionChange, onRemove, onCurrentKeyChange, containerRef]\n );\n\n return {\n showFocusRing,\n currentKey,\n onCurrentKeyChange,\n onKeyDown,\n containerHandlers: mergeProps(focusRingProps, currentKeyProps, onFocusProps)\n };\n}\n\nconst extractOnlyItemKey = (element: HTMLElement, itemSelector: string, itemEliminator: string) => {\n const navigationListItem = element.closest(itemSelector);\n const removeButton = element.closest(itemEliminator);\n return navigationListItem?.contains(removeButton) ? null : keyExtractor(element, itemSelector);\n};\n\nconst findNextCurrentKey = <K>(currentKey: K, currNavs: K[], prevNavs: K[]) => {\n const index = prevNavs.indexOf(currentKey);\n if (index > 0) {\n const nextIndex = index === prevNavs.length - 1 ? index - 1 : index + 1;\n const nextKey = prevNavs[nextIndex];\n if (currNavs.indexOf(nextKey) !== -1) {\n return nextKey;\n }\n }\n // update current key to be the first one if we can't find a suitable next key\n return currNavs[0];\n};\n","import { Ref } from 'preact';\nimport { MutableRef, useRef } from 'preact/hooks';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useId } from '../hooks/UNSAFE_useId';\nimport { navigationListStyles } from './themes/NavigationListStyles.css';\nimport { useNavigationList } from './useNavigationList';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { NavigationListProps, NavigationListContext } from '../UNSAFE_NavigationListCommon';\nexport { RemovableNavigationListItem } from '../UNSAFE_NavigationListCommon';\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\nexport const NavigationList = forwardRef(\n <K extends string | number>(\n {\n children,\n selection,\n onSelectionChange,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelLedBy,\n testId\n }: NavigationListProps<K> & TestIdProps,\n ref?: Ref<FocusableHandle>\n ) => {\n const containerRef = useRef<HTMLUListElement>(null);\n\n const { showFocusRing, currentKey, onCurrentKeyChange, containerHandlers, onKeyDown } =\n useNavigationList({\n containerRef: containerRef as MutableRef<HTMLUListElement>,\n selection,\n onRemove,\n onSelectionChange,\n children\n });\n\n const eventProps = { onKeyDown };\n const navigationListClass = classNames([navigationListStyles.uListStyle]);\n const navigationListItemPrefix = useId() + '_';\n const testIdProps = useTestId(testId);\n\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(ref!, () => ({\n focus: () => {\n if (containerRef.current) {\n containerRef.current.focus();\n }\n },\n blur: () => {\n if (containerRef.current) {\n containerRef.current.focus();\n }\n }\n }));\n\n return (\n <ul\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelLedBy}\n role=\"tablist\"\n ref={containerRef}\n aria-orientation={'vertical'}\n tabIndex={0}\n aria-activedescendant={currentKey ? navigationListItemPrefix + currentKey : ''}\n {...mergeProps(eventProps, containerHandlers)}\n {...testIdProps}\n class={navigationListClass}>\n <NavigationListContext.Provider\n value={{\n selection,\n onSelectionChange,\n onCurrentKeyChange,\n currentKey,\n showFocusRing,\n navigationListItemPrefix,\n onRemove\n }}>\n {children}\n </NavigationListContext.Provider>\n </ul>\n );\n }\n);\n","import {\n BaseNavigationListItem,\n BaseNavigationListItemProps\n} from '../UNSAFE_NavigationListCommon/BaseNavigationListItem';\n\nexport type NavigationListItemProps<K extends string | number> = Omit<\n BaseNavigationListItemProps<K>,\n 'removeIcon'\n>;\n\nexport function NavigationListItem<K extends string | number>({\n itemKey,\n label,\n badge,\n metadata,\n severity\n}: NavigationListItemProps<K>) {\n return (\n <BaseNavigationListItem\n itemKey={itemKey}\n label={label}\n badge={badge}\n metadata={metadata}\n severity={severity}\n />\n );\n}\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;AAmCA;AACgB,SAAA,iBAAiB,CAA4B,EAC3D,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,iBAAiB,EACj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,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,CAAA,EACF;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"NavigationListItem-5b25b2f5.js","sources":["../../src/UNSAFE_NavigationList/useNavigationList.ts","../../src/UNSAFE_NavigationList/NavigationList.tsx","../../src/UNSAFE_NavigationList/NavigationListItem.tsx"],"sourcesContent":["import { useState, useCallback, MutableRef, useRef, useEffect } from 'preact/hooks';\nimport {\n keyExtractor,\n getFirstVisibleKey,\n getKey,\n getPrevNextKeyUsingRef,\n findElementByKey\n} from '../utils/PRIVATE_collectionUtils';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { useCollectionFocusRing } from '../hooks/PRIVATE_useCollectionFocusRing';\nimport { useCurrentKey } from '../hooks/PRIVATE_useCurrentKey';\nimport { NavigationListContextProps } from '../UNSAFE_NavigationListCommon';\n\nimport { ComponentChildren } from 'preact';\n\n/**\n * type for payload of current key change event handler\n */\ntype CurrentKeyDetail<K> = {\n value: K;\n};\n/**\n * type for payload of selection change event handler\n */\ntype SelectionDetail<K> = {\n value: K;\n reason: 'pointer' | 'keyboard';\n};\n/**\n * type for payload of remove event handler\n */\ntype RemoveDetail<K> = {\n value: K;\n};\n\n/*TODO: JET-58534. Create a hook to share some logic between navlist and tabbar. Hook will be used inside this one. */\nexport function useNavigationList<K extends string | number>({\n containerRef,\n selection,\n onRemove,\n onSelectionChange,\n children\n}: {\n containerRef: MutableRef<HTMLUListElement>;\n selection?: K;\n onRemove?: <K extends string | number>(detail: RemoveDetail<K>) => void;\n onSelectionChange?: <K extends string | number>(detail: SelectionDetail<K>) => void;\n children: ComponentChildren;\n}) {\n const ITEM_SELECTOR = '[role=\"tab\"]';\n const REMOVAL_ICON_SELECTOR = '[data-oj-navigationlist-item-remove-icon]';\n const [currentKey, setCurrentKey] = useState<K | undefined>(selection);\n\n const onCurrentKeyChange = useCallback((detail: CurrentKeyDetail<K | undefined>) => {\n setCurrentKey(detail.value);\n }, []) as NavigationListContextProps<K>['onCurrentKeyChange'];\n\n const { currentKeyProps } = useCurrentKey(\n (element) =>\n onRemove\n ? (extractOnlyItemKey(element, ITEM_SELECTOR, REMOVAL_ICON_SELECTOR) as K)\n : keyExtractor(element, ITEM_SELECTOR),\n false,\n getPrevNextKeyUsingRef(containerRef, currentKey, true, ITEM_SELECTOR),\n getPrevNextKeyUsingRef(containerRef, currentKey, false, ITEM_SELECTOR),\n undefined,\n undefined,\n currentKey,\n onCurrentKeyChange\n );\n\n const [showFocusRing, focusRingProps] = useCollectionFocusRing(containerRef, [\n 'Home',\n 'End',\n 'ArrowUp',\n 'ArrowDown'\n ]);\n\n const onFocus = useCallback(() => {\n if (containerRef.current && currentKey === undefined) {\n const key = getFirstVisibleKey(containerRef.current, ITEM_SELECTOR);\n if (key) {\n setCurrentKey(key as K);\n }\n }\n }, [currentKey, containerRef]);\n\n const onFocusProps = { onFocus };\n const prevNavItems = useRef<K[]>();\n\n useEffect(() => {\n if (containerRef.current) {\n const navListItemKeys = Array.from(\n containerRef.current.querySelectorAll(ITEM_SELECTOR),\n (elem) => getKey(elem as HTMLElement) as K\n );\n if (currentKey != null && navListItemKeys.indexOf(currentKey) !== -1) {\n const navListItem = findElementByKey(\n containerRef.current,\n currentKey,\n ITEM_SELECTOR\n ) as any;\n if (navListItem.scrollIntoViewIfNeeded) {\n // for some browsers, we'll need the non-standard scrollIntoViewIfNeeded\n navListItem.scrollIntoViewIfNeeded();\n } else {\n navListItem.scrollIntoView({ block: 'nearest' });\n }\n } else {\n if (currentKey && navListItemKeys.indexOf(currentKey) === -1) {\n prevNavItems.current\n ? setCurrentKey(findNextCurrentKey(currentKey, navListItemKeys, prevNavItems.current))\n : setCurrentKey(navListItemKeys[0] as K);\n }\n prevNavItems.current = navListItemKeys;\n }\n }\n }, [children, currentKey, containerRef]);\n\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if ((event.key === 'Home' || event.key === 'End') && containerRef.current && currentKey) {\n const navListItemKey = Array.from(\n containerRef.current.querySelectorAll(ITEM_SELECTOR),\n (elem) => getKey(elem as HTMLElement) as K\n );\n onCurrentKeyChange?.({\n value: navListItemKey[event.key === 'Home' ? 0 : navListItemKey.length - 1] as K\n });\n }\n if (currentKey && (event.key === 'Enter' || event.key === ' ')) {\n onSelectionChange?.({\n value: currentKey as K,\n reason: 'keyboard'\n });\n }\n if (currentKey && event.key === 'Delete') {\n onRemove?.({ value: currentKey as K });\n }\n },\n [currentKey, onSelectionChange, onRemove, onCurrentKeyChange, containerRef]\n );\n\n return {\n showFocusRing,\n currentKey,\n onCurrentKeyChange,\n onKeyDown,\n containerHandlers: mergeProps(focusRingProps, currentKeyProps, onFocusProps)\n };\n}\n\nconst extractOnlyItemKey = (element: HTMLElement, itemSelector: string, itemEliminator: string) => {\n const navigationListItem = element.closest(itemSelector);\n const removeButton = element.closest(itemEliminator);\n return navigationListItem?.contains(removeButton) ? null : keyExtractor(element, itemSelector);\n};\n\nconst findNextCurrentKey = <K>(currentKey: K, currNavs: K[], prevNavs: K[]) => {\n const index = prevNavs.indexOf(currentKey);\n if (index > 0) {\n const nextIndex = index === prevNavs.length - 1 ? index - 1 : index + 1;\n const nextKey = prevNavs[nextIndex];\n if (currNavs.indexOf(nextKey) !== -1) {\n return nextKey;\n }\n }\n // update current key to be the first one if we can't find a suitable next key\n return currNavs[0];\n};\n","import { Ref } from 'preact';\nimport { MutableRef, useRef } from 'preact/hooks';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useId } from '../hooks/UNSAFE_useId';\nimport { navigationListStyles } from './themes/NavigationListStyles.css';\nimport { useNavigationList } from './useNavigationList';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { useTestId, TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { NavigationListProps, NavigationListContext } from '../UNSAFE_NavigationListCommon';\nexport { RemovableNavigationListItem } from '../UNSAFE_NavigationListCommon';\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\nexport const NavigationList = forwardRef(\n <K extends string | number>(\n {\n children,\n selection,\n onSelectionChange,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelLedBy,\n testId\n }: NavigationListProps<K> & TestIdProps,\n ref?: Ref<FocusableHandle>\n ) => {\n const containerRef = useRef<HTMLUListElement>(null);\n\n const { showFocusRing, currentKey, onCurrentKeyChange, containerHandlers, onKeyDown } =\n useNavigationList({\n containerRef: containerRef as MutableRef<HTMLUListElement>,\n selection,\n onRemove,\n onSelectionChange,\n children\n });\n\n const eventProps = { onKeyDown };\n const navigationListClass = classNames([navigationListStyles.uListStyle]);\n const navigationListItemPrefix = useId() + '_';\n const testIdProps = useTestId(testId);\n\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(ref!, () => ({\n focus: () => {\n if (containerRef.current) {\n containerRef.current.focus();\n }\n },\n blur: () => {\n if (containerRef.current) {\n containerRef.current.focus();\n }\n }\n }));\n\n return (\n <ul\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelLedBy}\n role=\"tablist\"\n ref={containerRef}\n aria-orientation={'vertical'}\n tabIndex={0}\n aria-activedescendant={currentKey ? navigationListItemPrefix + currentKey : ''}\n {...mergeProps(eventProps, containerHandlers)}\n {...testIdProps}\n class={navigationListClass}>\n <NavigationListContext.Provider\n value={{\n selection,\n onSelectionChange,\n onCurrentKeyChange,\n currentKey,\n showFocusRing,\n navigationListItemPrefix,\n onRemove\n }}>\n {children}\n </NavigationListContext.Provider>\n </ul>\n );\n }\n);\n","import {\n BaseNavigationListItem,\n BaseNavigationListItemProps\n} from '../UNSAFE_NavigationListCommon/BaseNavigationListItem';\n\nexport type NavigationListItemProps<K extends string | number> = Omit<\n BaseNavigationListItemProps<K>,\n 'removeIcon'\n>;\n\nexport function NavigationListItem<K extends string | number>({\n itemKey,\n label,\n badge,\n metadata,\n severity\n}: NavigationListItemProps<K>) {\n return (\n <BaseNavigationListItem\n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AA,kBAAkB,CAA4B,EAC5D,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACmB,EAAA;IAC3B,QACEA,GAAC,CAAA,sBAAsB,EACrB,EAAA,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,CAAA,EACF;AACJ;;;;"}
|
|
@@ -9,14 +9,14 @@ import { F as FormFieldContext } from './FormFieldContext-68eb5946.js';
|
|
|
9
9
|
import { u as useTextField } from './useTextField-f57cfb8d.js';
|
|
10
10
|
import { L as Label } from './Label-6d90e627.js';
|
|
11
11
|
import { P as PrefixSuffix } from './PrefixSuffix-73361db2.js';
|
|
12
|
-
import { u as usePrefixSuffix } from './usePrefixSuffix-
|
|
12
|
+
import { u as usePrefixSuffix } from './usePrefixSuffix-995d4cda.js';
|
|
13
13
|
import './keyboardUtils-40eea0a6.js';
|
|
14
14
|
import { T as TextFieldInput } from './TextFieldInput-3c2e920d.js';
|
|
15
15
|
import './ObfuscatedTextFieldInputStyles.styles.css';
|
|
16
16
|
import { R as ReadonlyTextFieldInput } from './ReadonlyTextFieldInput-a15badb6.js';
|
|
17
17
|
import { R as ReadonlyTextField } from './StyledTextField-ebb5409d.js';
|
|
18
18
|
import { T as TextField } from './TextField-cb494638.js';
|
|
19
|
-
import './LayerHost-
|
|
19
|
+
import './LayerHost-7a2149f5.js';
|
|
20
20
|
import './LiveRegionStyles.styles.css';
|
|
21
21
|
import './logger-c92f309c.js';
|
|
22
22
|
import { T as TabbableModeContext } from './TabbableModeContext-7d8ad946.js';
|
|
@@ -29,10 +29,10 @@ import { m as mergeProps } from './mergeProps-88ea8306.js';
|
|
|
29
29
|
import './TooltipContentStyles.styles.css';
|
|
30
30
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
|
|
31
31
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
|
|
32
|
-
import './tooltipUtils-
|
|
32
|
+
import './tooltipUtils-fcfd7dbb.js';
|
|
33
33
|
import 'preact';
|
|
34
34
|
import './IconStyle.styles.css';
|
|
35
|
-
import './Popup-
|
|
35
|
+
import './Popup-a4be2769.js';
|
|
36
36
|
import './LabelStyles.styles.css';
|
|
37
37
|
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.styles.css';
|
|
38
38
|
import './UNSAFE_Label/themes/redwood/LabelVariants.css.js';
|
|
@@ -47,8 +47,8 @@ import { S as SvgChevronUp } from './ChevronUp-afc86a92.js';
|
|
|
47
47
|
import { S as SvgMinus } from './Minus-e6e25f40.js';
|
|
48
48
|
import { S as SvgPlus } from './Plus-d25bec30.js';
|
|
49
49
|
import { I as IconButton } from './IconButton-62cd1cf9.js';
|
|
50
|
-
import { u as useTranslationBundle } from './useTranslationBundle-
|
|
51
|
-
import { G as Grid } from './Grid-
|
|
50
|
+
import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
|
|
51
|
+
import { G as Grid } from './Grid-c2385b22.js';
|
|
52
52
|
import { u as useSpinning } from './useSpinning-c2c54c7c.js';
|
|
53
53
|
import { u as useSelectableTextField } from './useSelectableTextField-949184a5.js';
|
|
54
54
|
|
|
@@ -8,7 +8,7 @@ import { styles } from './UNSAFE_OverflowTabBar/themes/OverflowTabBarStyles.css.
|
|
|
8
8
|
import { u as useDetectHorizontalOverflow } from './useDetectHorizontalOverflow-2780b7d1.js';
|
|
9
9
|
import { R as RemovableTabBarItem } from './RemovableTabBarItem-1cc7a0ca.js';
|
|
10
10
|
import { T as TabBarItem } from './TabBarItem-252cba76.js';
|
|
11
|
-
import { O as OverflowTabBarItem } from './OverflowTabBarItem-
|
|
11
|
+
import { O as OverflowTabBarItem } from './OverflowTabBarItem-08625093.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* OverflowTabBar handles the rendering of overflowing tab items.
|
|
@@ -66,4 +66,4 @@ function OverflowTabBar({ items, layout = 'stretch', display = 'standard', size
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export { OverflowTabBar as O };
|
|
69
|
-
//# sourceMappingURL=OverflowTabBar-
|
|
69
|
+
//# sourceMappingURL=OverflowTabBar-47a03b1f.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverflowTabBar-
|
|
1
|
+
{"version":3,"file":"OverflowTabBar-47a03b1f.js","sources":["../../src/UNSAFE_OverflowTabBar/OverflowTabBar.tsx"],"sourcesContent":["import { ComponentProps, createRef } from 'preact';\nimport { useCallback, useMemo, useRef, useState } from 'preact/hooks';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { OverflowTabBarItem, RemovableTabBarItem, TabBar, TabBarItem } from '../UNSAFE_TabBar';\nimport { CloseDetail, Item } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/OverflowTabBarStyles.css';\nimport { useDetectHorizontalOverflow } from '../hooks/PRIVATE_useDetectHorizontalOverflow';\n\ntype OverflowTabBarProps<K extends string | number> = {\n /**\n * An array of data to render individual tabs\n */\n items: Item<K>[];\n /**\n * The truncation configuration for tab labels.\n * 'progressive' will restrict the width of each tab label to allow all tabs to fit if enough space is not available to display all of the tabs.\n * Labels that are truncated are displayed with ellipses. However the width of each tab label will not be truncated below a specific threshold.\n * 'none' tabs always take up the space needed by the labels even if enough space is not available to display all of the tabs.\n */\n truncation?: 'none' | 'progressive';\n} & Omit<ComponentProps<typeof TabBar>, 'children' | 'aria-describedby' | 'ref'>;\n\n/**\n * OverflowTabBar handles the rendering of overflowing tab items.\n */\nexport function OverflowTabBar<K extends string | number>({\n items,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n truncation,\n onSelect,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n testId\n}: OverflowTabBarProps<K> & TestIdProps) {\n const displayStackProps = {\n display: display\n };\n const displayNonStackProps = {\n display: display,\n size: size\n };\n\n const displayProps = display === 'stacked' ? displayStackProps : displayNonStackProps;\n const rootRef = useRef<HTMLDivElement>(null);\n const tabBarRef = createRef<HTMLDivElement>();\n\n const [isDropDownOpen, setIsDropDownOpen] = useState<boolean>(false);\n\n const isOutsideMouseDown = useRef<boolean>(false);\n\n const handleClose = (e: CloseDetail) => {\n if (tabBarRef.current && ['itemAction', 'dismissed'].includes(e.reason)) {\n tabBarRef?.current?.focus();\n }\n if (e.reason === 'outsideMousedown') {\n isOutsideMouseDown.current = true;\n }\n setIsDropDownOpen(false);\n };\n\n const handleSelect = useCallback<Required<ComponentProps<typeof TabBar>>['onSelect']>(\n (e: { value: string | number }) => {\n if (e.value === 'more') {\n //If overflow item is clicked after dropdown is open, the reason is outsideMouseDown and it needs to be closed\n if (isOutsideMouseDown.current) {\n setIsDropDownOpen(false);\n } else {\n setIsDropDownOpen(true);\n }\n } else {\n onSelect?.(e);\n }\n isOutsideMouseDown.current = false;\n },\n [onSelect]\n );\n\n const overflowItemKey = 'more' as K;\n\n const keysArray = useMemo(() => items.map((item) => item.itemKey) as K[], [items]);\n\n const { visibleItemKeys, overflowItemKeys, maxWidths } = useDetectHorizontalOverflow({\n rootRef: tabBarRef,\n keysArray,\n isTruncationDisabled: !(truncation && truncation === 'progressive')\n });\n\n const overflowTabBarClass = classNames([styles.overflowTabBarBase]);\n\n return (\n <div ref={rootRef} class={overflowTabBarClass}>\n <TabBar\n ref={tabBarRef}\n selection={selection}\n onSelect={handleSelect}\n {...displayProps}\n layout={layout}\n edge={edge}\n onRemove={onRemove}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n testId={testId}>\n {visibleItemKeys != null &&\n visibleItemKeys.length > 0 &&\n items\n .filter((item) => visibleItemKeys?.includes(item.itemKey))\n .map((item: Item<K>) =>\n item.isRemovable ? (\n <RemovableTabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n labelMaxWidth={maxWidths?.get(item.itemKey)}\n />\n ) : (\n <TabBarItem\n itemKey={item.itemKey}\n label={item.label}\n icon={item.icon}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n aria-controls={item.tabPanelId}\n labelMaxWidth={maxWidths?.get(item.itemKey)}\n />\n )\n )}\n {overflowItemKeys != null && overflowItemKeys.length > 0 && (\n <OverflowTabBarItem\n isOpen={isDropDownOpen}\n onClose={handleClose}\n overflowItemKey={overflowItemKey}\n overflowItems={items.filter((item) => overflowItemKeys?.includes(item.itemKey))}\n />\n )}\n </TabBar>\n </div>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;AAuBA;;AAEG;SACa,cAAc,CAA4B,EACxD,KAAK,EACL,MAAM,GAAG,SAAS,EAClB,OAAO,GAAG,UAAU,EACpB,IAAI,GAAG,IAAI,EACX,IAAI,GAAG,KAAK,EACZ,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,MAAM,EAC+B,EAAA;AACrC,IAAA,MAAM,iBAAiB,GAAG;AACxB,QAAA,OAAO,EAAE,OAAO;KACjB,CAAC;AACF,IAAA,MAAM,oBAAoB,GAAG;AAC3B,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,IAAI,EAAE,IAAI;KACX,CAAC;AAEF,IAAA,MAAM,YAAY,GAAG,OAAO,KAAK,SAAS,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AACtF,IAAA,MAAM,OAAO,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAC7C,IAAA,MAAM,SAAS,GAAG,SAAS,EAAkB,CAAC;IAE9C,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;AAErE,IAAA,MAAM,kBAAkB,GAAG,MAAM,CAAU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EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,mBACR,IAAI,CAAC,UAAU,EAC9B,aAAa,EAAE,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,EAC3C,CAAA,CACH,CACF,EACJ,gBAAgB,IAAI,IAAI,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,KACtDA,GAAA,CAAC,kBAAkB,EACjB,EAAA,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,WAAW,EACpB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,gBAAgB,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAA,CAC/E,CACH,CACM,EAAA,CAAA,EAAA,CACL,EACN;AACJ;;;;"}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
|
|
3
3
|
import { createRef } from 'preact';
|
|
4
4
|
import { useRef, useCallback } from 'preact/hooks';
|
|
5
|
-
import { u as useTranslationBundle } from './useTranslationBundle-
|
|
5
|
+
import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
|
|
6
6
|
import { g as getClientHints } from './clientHints-05a97aba.js';
|
|
7
7
|
import { m as mergeInterpolations } from './mergeInterpolations-e2db2a66.js';
|
|
8
8
|
import { f as flexitemInterpolations } from './flexitem-7b7f7920.js';
|
|
9
9
|
import { c as classNames } from './classNames-4e12b00d.js';
|
|
10
10
|
import { I as Icon } from './Icon-bdd49f29.js';
|
|
11
11
|
import { u as useTabBarContext } from './useTabBarContext-0071d2a7.js';
|
|
12
|
-
import { D as Dropdown } from './Dropdown-
|
|
13
|
-
import { S as Sheet } from './Sheet-
|
|
12
|
+
import { D as Dropdown } from './Dropdown-f7fbfa81.js';
|
|
13
|
+
import { S as Sheet } from './Sheet-31e6970c.js';
|
|
14
14
|
import { B as BaseTabBarItem } from './TabBarItem-252cba76.js';
|
|
15
15
|
import { styles } from './UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css.js';
|
|
16
|
-
import { N as NavigationList, a as NavigationListItem } from './NavigationListItem-
|
|
16
|
+
import { N as NavigationList, a as NavigationListItem } from './NavigationListItem-5b25b2f5.js';
|
|
17
17
|
import { R as RemovableNavigationListItem } from './RemovableNavigationListItem-29fdaddc.js';
|
|
18
18
|
|
|
19
19
|
const SvgOverflowH = (props) => (jsx(Icon, { viewBox: "0 0 24 24", ...props, children: jsx("g", { fill: "none", children: jsx("path", { d: "M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z", fill: "currentcolor" }) }) }));
|
|
@@ -83,4 +83,4 @@ const getIsMobile = () => {
|
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
export { OverflowTabBarItem as O };
|
|
86
|
-
//# sourceMappingURL=OverflowTabBarItem-
|
|
86
|
+
//# sourceMappingURL=OverflowTabBarItem-08625093.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverflowTabBarItem-0d925d02.js","sources":["../../src/UNSAFE_RedwoodIcons/OverflowH/OverflowH.tsx","../../src/UNSAFE_TabBarCommon/OverflowTabBarItem.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates. All rights reserved.\n * https://www.oracle.com/contracts/docs/cloud_csa_online_v062223_us_eng.pdf?download=false&er=221886\n * @ignore\n */\n// DO NOT MODIFY THIS FILE MANUALLY!\n// This file is automatically generated based on the corresponding SVG image in\n// the packages/oraclejet-preact/resources/icons folder.\nimport { ComponentProps } from 'preact';\nimport { Icon } from '../../UNSAFE_Icon';\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox' | 'children'>;\nconst SvgOverflowH = (props: Props) => (\n <Icon viewBox=\"0 0 24 24\" {...props}>\n <g fill=\"none\">\n <path\n d=\"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z\"\n fill=\"currentcolor\"\n />\n </g>\n </Icon>\n);\nexport { SvgOverflowH as OverflowH };\n","import { ComponentChild, ComponentProps, createRef } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport {\n NavigationListItem,\n NavigationList,\n RemovableNavigationListItem,\n FocusableHandle\n} from '../UNSAFE_NavigationList';\nimport { OverflowH } from '../UNSAFE_RedwoodIcons/OverflowH';\nimport { useTabBarContext } from './useTabBarContext';\nimport { Dropdown } from '../UNSAFE_Dropdown';\nimport { Sheet } from '../UNSAFE_Sheet';\nimport { BaseTabBarItem } from './BaseTabBarItem';\nimport { styles } from './themes/OverflowTabBarItemStyles.css';\nimport { TabBarItem } from './TabBarItem';\n\nexport type OverflowSelectionDetail<K> = {\n value: K;\n};\n\nexport type CloseDetail = {\n /**\n * dismissed represents dismissing the DropDown\n */\n reason: 'dismissed' | 'itemAction' | 'outsideMousedown';\n};\n\nexport type Item<K extends string | number> = Omit<\n ComponentProps<typeof TabBarItem<K>>,\n 'testId' | 'aria-controls'\n> & {\n isRemovable?: boolean;\n /**\n * Accepts the tabpanel element's ID associated with the tab item\n **/\n tabPanelId?: string;\n};\n\nexport type OverflowTabBarItemProps<K extends string | number> = {\n /**\n * Key of the TabBarItem\n */\n overflowItemKey: K;\n /**\n * Whether to open the popup\n */\n isOpen: boolean;\n /**\n * Property that triggers a callback when DropDown is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n /**\n * The icon of the OverflowTabBarItem\n */\n icon?: ComponentChild;\n /**\n * The content to be rendered inside the Badge component.\n */\n badge?: string;\n /**\n * An array of data used by NavigationList to render individual overflow items.\n */\n overflowItems?: Item<K>[];\n};\n\n/**\n * An OverflowTabBarItem renders TabBarItems in a device appropriate popup. OverflowTabBarItem is used internally in an OverflowTabBar.\n */\n\nexport function OverflowTabBarItem<K extends string | number>({\n overflowItemKey,\n icon,\n badge,\n overflowItems,\n isOpen,\n onClose\n}: OverflowTabBarItemProps<K>) {\n const { selection, showFocusRing, isEdgeBottom, onSelect, onRemove, layout } = useTabBarContext();\n\n const isPointerSelection = useRef<boolean>(false);\n\n const overflowTabBarItemRef = useRef<HTMLDivElement>(null);\n const navigationListRef = createRef<FocusableHandle>();\n\n const handleSelectionChange = useCallback<\n Required<ComponentProps<typeof NavigationList>>['onSelectionChange']\n >(\n (detail: { value: string | number; reason?: 'pointer' | 'keyboard' }) => {\n if (detail.reason === 'pointer') {\n isPointerSelection.current = true;\n }\n onSelect?.({ value: detail.value });\n onClose?.({ reason: 'itemAction' });\n },\n [onSelect, onClose]\n );\n\n const handleDropdownClose = useCallback(\n (e: CloseDetail) => {\n onClose?.({ reason: e.reason });\n },\n [onClose]\n );\n\n const handleSheetClose = useCallback(() => {\n onClose?.({ reason: 'dismissed' });\n }, [onClose]);\n\n //When NavigationList steals focus the app resets it. Not always would it be reset to\n //parent of OverflowTabBarItem. Though currentKey would be correct, but focusRing would would not be visible\n //Hence we check for isPointerSelection.current\n\n const focusRingRequirement = showFocusRing && !isPointerSelection.current && !getIsMobile();\n\n const overflowContainsKey = (searchKey: K) => {\n return overflowItems?.find((item) => item.itemKey === searchKey) != null;\n };\n\n const currentPanelId = overflowItems?.find((item) => item.itemKey === selection)?.tabPanelId;\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const isSelected = selection !== undefined && overflowContainsKey(selection as K);\n\n //instead of specifying flex: '1 0 auto' in cssProps var\n const styleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n ]);\n const flexDimensions = styleInterpolations({\n flex: layout === 'stretch' ? '1 0 auto' : '0 0 auto'\n });\n\n const navContainerClasses = classNames([styles.navContainerBase]);\n\n const navContainerRef = useRef<HTMLDivElement>(null);\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n navigationListRef.current?.focus();\n }\n },\n [navigationListRef]\n );\n const getNavigationList = useCallback(() => {\n return (\n <div onKeyDown={handleKeyDown} tabIndex={0} ref={navContainerRef} class={navContainerClasses}>\n <NavigationList\n ref={navigationListRef}\n selection={selection}\n onSelectionChange={handleSelectionChange}\n onRemove={onRemove}>\n {overflowItems?.map((item) =>\n item.isRemovable ? (\n <RemovableNavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n ) : (\n <NavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n )\n )}\n </NavigationList>\n </div>\n );\n }, [\n handleKeyDown,\n navContainerClasses,\n navigationListRef,\n selection,\n handleSelectionChange,\n onRemove,\n overflowItems\n ]);\n\n return (\n <>\n {overflowItems && overflowItems.length > 0 && (\n <div ref={overflowTabBarItemRef} style={flexDimensions}>\n <BaseTabBarItem\n aria-controls={currentPanelId}\n itemKey={overflowItemKey}\n label={translations.overflowItemLabel()}\n icon={icon ? icon : <OverflowH />}\n badge={badge}\n showFocusRingOverride={focusRingRequirement}\n selectionOverride={isSelected}\n displayOverride={'icons'}\n aria-haspopup={true}\n />\n </div>\n )}\n {getIsMobile() ? (\n <Sheet isOpen={isOpen} onClose={handleSheetClose}>\n {getNavigationList()}\n </Sheet>\n ) : (\n <Dropdown\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={handleDropdownClose}\n placement={isEdgeBottom ? 'top-end' : 'bottom-end'}\n anchorRef={overflowTabBarItemRef}>\n {getNavigationList()}\n </Dropdown>\n )}\n </>\n );\n}\n\nconst getIsMobile = () => {\n const { deviceType } = getClientHints();\n return deviceType === 'phone';\n};\n"],"names":["_jsx","_jsxs","_Fragment","OverflowH"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,MAAM,YAAY,GAAG,CAAC,KAAY,MAChCA,GAAA,CAAC,IAAI,EAAC,EAAA,OAAO,EAAC,WAAW,KAAK,KAAK,EAAA,QAAA,EACjCA,GAAG,CAAA,GAAA,EAAA,EAAA,IAAI,EAAC,MAAM,EACZ,QAAA,EAAAA,GAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,sGAAsG,EACxG,IAAI,EAAC,cAAc,EAAA,CACnB,EACA,CAAA,EAAA,CACC,CACR;;ACmDD;;AAEG;AAEa,SAAA,kBAAkB,CAA4B,EAC5D,eAAe,EACf,IAAI,EACJ,KAAK,EACL,aAAa,EACb,MAAM,EACN,OAAO,EACoB,EAAA;AAC3B,IAAA,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;AAElG,IAAA,MAAM,kBAAkB,GAAG,MAAM,CAAU,KAAK,CAAC,CAAC;AAElD,IAAA,MAAM,qBAAqB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAC3D,IAAA,MAAM,iBAAiB,GAAG,SAAS,EAAmB,CAAC;AAEvD,IAAA,MAAM,qBAAqB,GAAG,WAAW,CAGvC,CAAC,MAAmE,KAAI;AACtE,QAAA,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;AAC/B,YAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC;SACnC;QACD,QAAQ,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QACpC,OAA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W,GAAG,MAAK;AACvB,IAAA,MAAM,EAAE,UAAU,EAAE,GAAG,cAAc,EAAE,CAAC;IACxC,OAAO,UAAU,KAAK,OAAO,CAAC;AAChC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"OverflowTabBarItem-08625093.js","sources":["../../src/UNSAFE_RedwoodIcons/OverflowH/OverflowH.tsx","../../src/UNSAFE_TabBarCommon/OverflowTabBarItem.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates. All rights reserved.\n * https://www.oracle.com/contracts/docs/cloud_csa_online_v062223_us_eng.pdf?download=false&er=221886\n * @ignore\n */\n// DO NOT MODIFY THIS FILE MANUALLY!\n// This file is automatically generated based on the corresponding SVG image in\n// the packages/oraclejet-preact/resources/icons folder.\nimport { ComponentProps } from 'preact';\nimport { Icon } from '../../UNSAFE_Icon';\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox' | 'children'>;\nconst SvgOverflowH = (props: Props) => (\n <Icon viewBox=\"0 0 24 24\" {...props}>\n <g fill=\"none\">\n <path\n d=\"M6 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z\"\n fill=\"currentcolor\"\n />\n </g>\n </Icon>\n);\nexport { SvgOverflowH as OverflowH };\n","import { ComponentChild, ComponentProps, createRef } from 'preact';\nimport { useCallback, useRef } from 'preact/hooks';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport {\n NavigationListItem,\n NavigationList,\n RemovableNavigationListItem,\n FocusableHandle\n} from '../UNSAFE_NavigationList';\nimport { OverflowH } from '../UNSAFE_RedwoodIcons/OverflowH';\nimport { useTabBarContext } from './useTabBarContext';\nimport { Dropdown } from '../UNSAFE_Dropdown';\nimport { Sheet } from '../UNSAFE_Sheet';\nimport { BaseTabBarItem } from './BaseTabBarItem';\nimport { styles } from './themes/OverflowTabBarItemStyles.css';\nimport { TabBarItem } from './TabBarItem';\n\nexport type OverflowSelectionDetail<K> = {\n value: K;\n};\n\nexport type CloseDetail = {\n /**\n * dismissed represents dismissing the DropDown\n */\n reason: 'dismissed' | 'itemAction' | 'outsideMousedown';\n};\n\nexport type Item<K extends string | number> = Omit<\n ComponentProps<typeof TabBarItem<K>>,\n 'testId' | 'aria-controls'\n> & {\n isRemovable?: boolean;\n /**\n * Accepts the tabpanel element's ID associated with the tab item\n **/\n tabPanelId?: string;\n};\n\nexport type OverflowTabBarItemProps<K extends string | number> = {\n /**\n * Key of the TabBarItem\n */\n overflowItemKey: K;\n /**\n * Whether to open the popup\n */\n isOpen: boolean;\n /**\n * Property that triggers a callback when DropDown is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n /**\n * The icon of the OverflowTabBarItem\n */\n icon?: ComponentChild;\n /**\n * The content to be rendered inside the Badge component.\n */\n badge?: string;\n /**\n * An array of data used by NavigationList to render individual overflow items.\n */\n overflowItems?: Item<K>[];\n};\n\n/**\n * An OverflowTabBarItem renders TabBarItems in a device appropriate popup. OverflowTabBarItem is used internally in an OverflowTabBar.\n */\n\nexport function OverflowTabBarItem<K extends string | number>({\n overflowItemKey,\n icon,\n badge,\n overflowItems,\n isOpen,\n onClose\n}: OverflowTabBarItemProps<K>) {\n const { selection, showFocusRing, isEdgeBottom, onSelect, onRemove, layout } = useTabBarContext();\n\n const isPointerSelection = useRef<boolean>(false);\n\n const overflowTabBarItemRef = useRef<HTMLDivElement>(null);\n const navigationListRef = createRef<FocusableHandle>();\n\n const handleSelectionChange = useCallback<\n Required<ComponentProps<typeof NavigationList>>['onSelectionChange']\n >(\n (detail: { value: string | number; reason?: 'pointer' | 'keyboard' }) => {\n if (detail.reason === 'pointer') {\n isPointerSelection.current = true;\n }\n onSelect?.({ value: detail.value });\n onClose?.({ reason: 'itemAction' });\n },\n [onSelect, onClose]\n );\n\n const handleDropdownClose = useCallback(\n (e: CloseDetail) => {\n onClose?.({ reason: e.reason });\n },\n [onClose]\n );\n\n const handleSheetClose = useCallback(() => {\n onClose?.({ reason: 'dismissed' });\n }, [onClose]);\n\n //When NavigationList steals focus the app resets it. Not always would it be reset to\n //parent of OverflowTabBarItem. Though currentKey would be correct, but focusRing would would not be visible\n //Hence we check for isPointerSelection.current\n\n const focusRingRequirement = showFocusRing && !isPointerSelection.current && !getIsMobile();\n\n const overflowContainsKey = (searchKey: K) => {\n return overflowItems?.find((item) => item.itemKey === searchKey) != null;\n };\n\n const currentPanelId = overflowItems?.find((item) => item.itemKey === selection)?.tabPanelId;\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const isSelected = selection !== undefined && overflowContainsKey(selection as K);\n\n //instead of specifying flex: '1 0 auto' in cssProps var\n const styleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n ]);\n const flexDimensions = styleInterpolations({\n flex: layout === 'stretch' ? '1 0 auto' : '0 0 auto'\n });\n\n const navContainerClasses = classNames([styles.navContainerBase]);\n\n const navContainerRef = useRef<HTMLDivElement>(null);\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n navigationListRef.current?.focus();\n }\n },\n [navigationListRef]\n );\n const getNavigationList = useCallback(() => {\n return (\n <div onKeyDown={handleKeyDown} tabIndex={0} ref={navContainerRef} class={navContainerClasses}>\n <NavigationList\n ref={navigationListRef}\n selection={selection}\n onSelectionChange={handleSelectionChange}\n onRemove={onRemove}>\n {overflowItems?.map((item) =>\n item.isRemovable ? (\n <RemovableNavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n ) : (\n <NavigationListItem\n itemKey={item.itemKey}\n label={item.label}\n badge={item.badge}\n metadata={item.metadata}\n severity={item.severity}\n />\n )\n )}\n </NavigationList>\n </div>\n );\n }, [\n handleKeyDown,\n navContainerClasses,\n navigationListRef,\n selection,\n handleSelectionChange,\n onRemove,\n overflowItems\n ]);\n\n return (\n <>\n {overflowItems && overflowItems.length > 0 && (\n <div ref={overflowTabBarItemRef} style={flexDimensions}>\n <BaseTabBarItem\n aria-controls={currentPanelId}\n itemKey={overflowItemKey}\n label={translations.overflowItemLabel()}\n icon={icon ? icon : <OverflowH />}\n badge={badge}\n showFocusRingOverride={focusRingRequirement}\n selectionOverride={isSelected}\n displayOverride={'icons'}\n aria-haspopup={true}\n />\n </div>\n )}\n {getIsMobile() ? (\n <Sheet isOpen={isOpen} onClose={handleSheetClose}>\n {getNavigationList()}\n </Sheet>\n ) : (\n <Dropdown\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={handleDropdownClose}\n placement={isEdgeBottom ? 'top-end' : 'bottom-end'}\n anchorRef={overflowTabBarItemRef}>\n {getNavigationList()}\n </Dropdown>\n )}\n </>\n );\n}\n\nconst getIsMobile = () => {\n const { deviceType } = getClientHints();\n return deviceType === 'phone';\n};\n"],"names":["_jsx","_jsxs","_Fragment","OverflowH"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,MAAM,YAAY,GAAG,CAAC,KAAY,MAChCA,GAAA,CAAC,IAAI,EAAC,EAAA,OAAO,EAAC,WAAW,KAAK,KAAK,EAAA,QAAA,EACjCA,GAAG,CAAA,GAAA,EAAA,EAAA,IAAI,EAAC,MAAM,EACZ,QAAA,EAAAA,GAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,sGAAsG,EACxG,IAAI,EAAC,cAAc,EAAA,CACnB,EACA,CAAA,EAAA,CACC,CACR;;ACmDD;;AAEG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,CAAC,iBAAiB,EAAE,EACvC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAGA,IAACG,YAAS,EAAA,EAAA,CAAG,EACjC,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,oBAAoB,EAC3C,iBAAiB,EAAE,UAAU,EAC7B,eAAe,EAAE,OAAO,EAAA,eAAA,EACT,IAAI,EAAA,CACnB,EACE,CAAA,CACP,EACA,WAAW,EAAE,IACZH,GAAA,CAAC,KAAK,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAC7C,QAAA,EAAA,iBAAiB,EAAE,EAAA,CACd,KAERA,GAAA,CAAC,QAAQ,EACP,EAAA,YAAY,EAAC,gBAAgB,EAC7B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,YAAY,GAAG,SAAS,GAAG,YAAY,EAClD,SAAS,EAAE,qBAAqB,EAC/B,QAAA,EAAA,iBAAiB,EAAE,EAAA,CACX,CACZ,CAAA,EAAA,CACA,EACH;AACJ,CAAC;AAED,MAAM,WAAW,GAAG,MAAK;AACvB,IAAA,MAAM,EAAE,UAAU,EAAE,GAAG,cAAc,EAAE,CAAC;IACxC,OAAO,UAAU,KAAK,OAAO,CAAC;AAChC,CAAC;;;;"}
|
|
@@ -8,14 +8,14 @@ import './mergeProps-88ea8306.js';
|
|
|
8
8
|
import './keys-49c92dbb.js';
|
|
9
9
|
import './collectionUtils-ccfce5b4.js';
|
|
10
10
|
import './clientHints-05a97aba.js';
|
|
11
|
-
import './useCurrentKey-
|
|
12
|
-
import './useUser-
|
|
13
|
-
import './LayerHost-
|
|
11
|
+
import './useCurrentKey-aa75ec92.js';
|
|
12
|
+
import './useUser-bca8cf2d.js';
|
|
13
|
+
import './LayerHost-7a2149f5.js';
|
|
14
14
|
import './Common/themes/redwood/theme.js';
|
|
15
15
|
import './Common/themes/themeContract.css.js';
|
|
16
16
|
import './useCollectionFocusRing-0395110a.js';
|
|
17
17
|
import './useTabbableModeSet-92034cf1.js';
|
|
18
|
-
import './useSelection-
|
|
18
|
+
import './useSelection-c46ba985.js';
|
|
19
19
|
import './textSelectionUtils-a6554a42.js';
|
|
20
20
|
import './DragAndDropStyles.styles.css';
|
|
21
21
|
import './ReorderableItemStyles.styles.css';
|
|
@@ -31,8 +31,8 @@ import './size-88f26574.js';
|
|
|
31
31
|
import './utils-d65cb4fb.js';
|
|
32
32
|
import './colorUtils-16eb823f.js';
|
|
33
33
|
import './_curry1-25297e59.js';
|
|
34
|
-
import './useTooltip-
|
|
35
|
-
import './useTooltipControlled-
|
|
34
|
+
import './useTooltip-72f5cf2e.js';
|
|
35
|
+
import './useTooltipControlled-97142fd1.js';
|
|
36
36
|
import './useId-03dbfdf0.js';
|
|
37
37
|
import './useHover-19340c22.js';
|
|
38
38
|
import './useToggle-8b7fcefe.js';
|
|
@@ -41,10 +41,10 @@ import './useTouch-4828df25.js';
|
|
|
41
41
|
import './useAnimation-a5eb7604.js';
|
|
42
42
|
import './useComponentTheme-d2f9e47f.js';
|
|
43
43
|
import './logger-c92f309c.js';
|
|
44
|
-
import './useTestId-
|
|
45
|
-
import './useThemeInterpolations-
|
|
46
|
-
import './useColorScheme-
|
|
47
|
-
import './useScale-
|
|
44
|
+
import './useTestId-af32a9eb.js';
|
|
45
|
+
import './useThemeInterpolations-242b30ed.js';
|
|
46
|
+
import './useColorScheme-f69d53b5.js';
|
|
47
|
+
import './useScale-3b323ab2.js';
|
|
48
48
|
import './theme-63551f30.js';
|
|
49
49
|
import './Theme-e6dec6db.js';
|
|
50
50
|
import './mergeInterpolations-e2db2a66.js';
|
|
@@ -53,7 +53,7 @@ import './mergeDeepWithKey-08531060.js';
|
|
|
53
53
|
import './_curry3-0b4222d7.js';
|
|
54
54
|
import './_curry2-34316bcf.js';
|
|
55
55
|
import './_isObject-1fab0f5b.js';
|
|
56
|
-
import './useDensity-
|
|
56
|
+
import './useDensity-04a01caf.js';
|
|
57
57
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme.js';
|
|
58
58
|
import './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css.js';
|
|
59
59
|
import './TooltipContentStyles.styles.css';
|
|
@@ -61,16 +61,16 @@ import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css.js'
|
|
|
61
61
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
|
|
62
62
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
|
|
63
63
|
import './TooltipContentVariants.styles.css';
|
|
64
|
-
import './tooltipUtils-
|
|
65
|
-
import './EnvironmentProvider-
|
|
66
|
-
import './LayerManager-
|
|
67
|
-
import './Floating-
|
|
68
|
-
import './useFloating-
|
|
64
|
+
import './tooltipUtils-fcfd7dbb.js';
|
|
65
|
+
import './EnvironmentProvider-a3819bde.js';
|
|
66
|
+
import './LayerManager-be34be40.js';
|
|
67
|
+
import './Floating-c13f9f62.js';
|
|
68
|
+
import './useFloating-dad3f791.js';
|
|
69
69
|
import './positionUtils-f26caad9.js';
|
|
70
70
|
import './refUtils-b9d8d91a.js';
|
|
71
|
-
import './useOutsideClick-
|
|
71
|
+
import './useOutsideClick-c19a8d7f.js';
|
|
72
72
|
import './arrayUtils-35a58161.js';
|
|
73
|
-
import './Layer-
|
|
73
|
+
import './Layer-7497a324.js';
|
|
74
74
|
import './UNSAFE_Layer/themes/LayerStyles.css.js';
|
|
75
75
|
import './LayerStyles.styles.css';
|
|
76
76
|
import './useModal-953082f2.js';
|
|
@@ -121,18 +121,18 @@ import './FocusTrap-c31d16c5.js';
|
|
|
121
121
|
import './FocusTracker-88c49895.js';
|
|
122
122
|
import './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css.js';
|
|
123
123
|
import './FocusTrackerStyles.styles.css';
|
|
124
|
-
import './useReorderableItem-
|
|
125
|
-
import './useTranslationBundle-
|
|
124
|
+
import './useReorderableItem-7f7c13b5.js';
|
|
125
|
+
import './useTranslationBundle-6da03e52.js';
|
|
126
126
|
import './dndUtils-deb68797.js';
|
|
127
127
|
import './hooks/PRIVATE_useReorderable/themes/ReorderableItemStyles.css.js';
|
|
128
128
|
import './useReorderableContext-79b1c941.js';
|
|
129
|
-
import './Grid-
|
|
129
|
+
import './Grid-c2385b22.js';
|
|
130
130
|
import './grid-65aa641c.js';
|
|
131
131
|
import './boxalignment-7d41dd5e.js';
|
|
132
132
|
import './boxalignment.styles.css';
|
|
133
133
|
import './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-2d655d37.js';
|
|
134
134
|
import './GridStyles.styles.css';
|
|
135
|
-
import './Flex-
|
|
135
|
+
import './Flex-2d51e914.js';
|
|
136
136
|
import './dimensions-e4b8a67e.js';
|
|
137
137
|
import './flexbox-529f25da.js';
|
|
138
138
|
import './flexbox.styles.css';
|
package/es/PRIVATE_Chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
export { C as Chart } from './Chart-
|
|
2
|
+
export { C as Chart } from './Chart-b97e00f1.js';
|
|
3
3
|
import 'preact/jsx-runtime';
|
|
4
4
|
import './PRIVATE_Chart/themes/ChartStyles.css.js';
|
|
5
5
|
import './ChartStyles.styles.css';
|
|
@@ -18,15 +18,15 @@ import './colorUtils-16eb823f.js';
|
|
|
18
18
|
import './_curry1-25297e59.js';
|
|
19
19
|
import './useTextDimensions-d73a1bf9.js';
|
|
20
20
|
import './clientHints-05a97aba.js';
|
|
21
|
-
import './useCssVars-
|
|
22
|
-
import './useUser-
|
|
23
|
-
import './LayerHost-
|
|
21
|
+
import './useCssVars-48595cd2.js';
|
|
22
|
+
import './useUser-bca8cf2d.js';
|
|
23
|
+
import './LayerHost-7a2149f5.js';
|
|
24
24
|
import './Common/themes/redwood/theme.js';
|
|
25
25
|
import 'preact/compat';
|
|
26
|
-
import './useTheme-
|
|
27
|
-
import './useColorScheme-
|
|
28
|
-
import './useScale-
|
|
29
|
-
import './Gridlines-
|
|
26
|
+
import './useTheme-73aca0e4.js';
|
|
27
|
+
import './useColorScheme-f69d53b5.js';
|
|
28
|
+
import './useScale-3b323ab2.js';
|
|
29
|
+
import './Gridlines-89b5506f.js';
|
|
30
30
|
import './PRIVATE_PlotArea/themes/PlotAreaStyles.css.js';
|
|
31
31
|
import './PlotAreaStyles.styles.css';
|
|
32
32
|
import './hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css.js';
|
|
@@ -63,21 +63,18 @@ import './stringUtils-16f617bc.js';
|
|
|
63
63
|
import './useChartNav-3f0e3881.js';
|
|
64
64
|
import './layoutUtils-6725789c.js';
|
|
65
65
|
import './useVisHover-d7a0b2f3.js';
|
|
66
|
-
import './
|
|
67
|
-
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
68
|
-
import './ScrollBarStyles.styles.css';
|
|
69
|
-
import './useSelectDrill-24264e6b.js';
|
|
66
|
+
import './useSelectDrill-232b571c.js';
|
|
70
67
|
import './useChartDataCursor-8d53123d.js';
|
|
71
68
|
import './hooks/PRIVATE_useChartDataCursor/themes/DataCursorStyles.css.js';
|
|
72
69
|
import './DataCursorStyles.styles.css';
|
|
73
70
|
import './Marker-147d98cf.js';
|
|
74
71
|
import './SvgShapesStyles.styles.css';
|
|
75
|
-
import './useChartDatatip-
|
|
76
|
-
import './useDatatip-
|
|
77
|
-
import './Layer-
|
|
72
|
+
import './useChartDatatip-c929f857.js';
|
|
73
|
+
import './useDatatip-40475371.js';
|
|
74
|
+
import './Layer-7497a324.js';
|
|
78
75
|
import './UNSAFE_Layer/themes/LayerStyles.css.js';
|
|
79
76
|
import './LayerStyles.styles.css';
|
|
80
|
-
import './useThemeInterpolations-
|
|
77
|
+
import './useThemeInterpolations-242b30ed.js';
|
|
81
78
|
import './theme-63551f30.js';
|
|
82
79
|
import './Theme-e6dec6db.js';
|
|
83
80
|
import './mergeInterpolations-e2db2a66.js';
|
|
@@ -85,12 +82,12 @@ import './mergeDeepWithKey-08531060.js';
|
|
|
85
82
|
import './_curry3-0b4222d7.js';
|
|
86
83
|
import './_curry2-34316bcf.js';
|
|
87
84
|
import './_isObject-1fab0f5b.js';
|
|
88
|
-
import './useDensity-
|
|
89
|
-
import './Floating-
|
|
90
|
-
import './useFloating-
|
|
85
|
+
import './useDensity-04a01caf.js';
|
|
86
|
+
import './Floating-c13f9f62.js';
|
|
87
|
+
import './useFloating-dad3f791.js';
|
|
91
88
|
import './positionUtils-f26caad9.js';
|
|
92
89
|
import './refUtils-b9d8d91a.js';
|
|
93
|
-
import './useOutsideClick-
|
|
90
|
+
import './useOutsideClick-c19a8d7f.js';
|
|
94
91
|
import './arrayUtils-35a58161.js';
|
|
95
92
|
import './useModal-953082f2.js';
|
|
96
93
|
import './UNSAFE_Floating/themes/redwood/FloatingTheme.js';
|
|
@@ -103,14 +100,14 @@ import './vanilla-extract-dynamic.esm-2955d60a.js';
|
|
|
103
100
|
import './UNSAFE_Floating/themes/FloatingContract.css.js';
|
|
104
101
|
import './hooks/PRIVATE_useDatatip/themes/useDatatip.css.js';
|
|
105
102
|
import './useDatatip.styles.css';
|
|
106
|
-
import './VisTabularDatatip-
|
|
103
|
+
import './VisTabularDatatip-6aa607bb.js';
|
|
107
104
|
import './PRIVATE_VisTabularDatatip/themes/VisTabularDatatipStyles.css.js';
|
|
108
105
|
import './VisTabularDatatipStyles.styles.css';
|
|
109
106
|
import './colorUtils-c462ff3b.js';
|
|
110
107
|
import './useChartDrill-a21ba67a.js';
|
|
111
108
|
import './useVisDrill-f61d3768.js';
|
|
112
109
|
import './useDoubleTap-4e290707.js';
|
|
113
|
-
import './useSelection-
|
|
110
|
+
import './useSelection-bbd2320f.js';
|
|
114
111
|
import './BaseButton-3ce1f027.js';
|
|
115
112
|
import './usePress-051f5adb.js';
|
|
116
113
|
import './usePressClick-2ec8e098.js';
|
|
@@ -125,25 +122,25 @@ import './UNSAFE_BaseButton/themes/BaseButtonStyles.css.js';
|
|
|
125
122
|
import './BaseButtonStyles.styles.css';
|
|
126
123
|
import './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css.js';
|
|
127
124
|
import './UNSAFE_BaseButton/themes/redwood/BaseButtonBaseTheme.styles.css';
|
|
128
|
-
import './useTestId-
|
|
125
|
+
import './useTestId-af32a9eb.js';
|
|
129
126
|
import './Text-fab01b91.js';
|
|
130
127
|
import './UNSAFE_Text/themes/TextStyles.css.js';
|
|
131
128
|
import './TextStyles.styles.css';
|
|
132
|
-
import './useTranslationBundle-
|
|
129
|
+
import './useTranslationBundle-6da03e52.js';
|
|
133
130
|
import './hooks/PRIVATE_useVisSelection/themes/ClearSelection.css.js';
|
|
134
131
|
import './ClearSelection.styles.css';
|
|
135
132
|
import './cssUtils-2fcdd912.js';
|
|
136
133
|
import './useChartContextMenu-121a5f6d.js';
|
|
137
134
|
import './useContextMenu-8c47333e.js';
|
|
138
135
|
import './Menu-a37635b8.js';
|
|
139
|
-
import './Dropdown-
|
|
136
|
+
import './Dropdown-f7fbfa81.js';
|
|
140
137
|
import './keyboardUtils-40eea0a6.js';
|
|
141
138
|
import './tabbableUtils-b4fa6fe6.js';
|
|
142
139
|
import './head-6f17c50c.js';
|
|
143
140
|
import './_arity-be492b9e.js';
|
|
144
141
|
import './_isArray-694cc52d.js';
|
|
145
142
|
import './_isString-675f1de9.js';
|
|
146
|
-
import './usePopupAnimation-
|
|
143
|
+
import './usePopupAnimation-267b444c.js';
|
|
147
144
|
import './useAnimationStatus-a9337dd8.js';
|
|
148
145
|
import './useAnimation-a5eb7604.js';
|
|
149
146
|
import './popupAnimationUtils-175151d9.js';
|
|
@@ -168,11 +165,11 @@ import './UNSAFE_Menu/themes/MenuStyles.css.js';
|
|
|
168
165
|
import './MenuStyles.styles.css';
|
|
169
166
|
import './UNSAFE_Menu/themes/DropdownMenuStyles.css.js';
|
|
170
167
|
import './DropdownMenuStyles.styles.css';
|
|
171
|
-
import './Sheet-
|
|
172
|
-
import './Modal-
|
|
168
|
+
import './Sheet-31e6970c.js';
|
|
169
|
+
import './Modal-1710fdd2.js';
|
|
173
170
|
import './UNSAFE_Modal/themes/ModalStyles.css.js';
|
|
174
171
|
import './ModalStyles.styles.css';
|
|
175
|
-
import './WindowOverlay-
|
|
172
|
+
import './WindowOverlay-de5d0819.js';
|
|
176
173
|
import './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css.js';
|
|
177
174
|
import './WindowOverlayStyles.styles.css';
|
|
178
175
|
import './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css.js';
|
|
@@ -188,9 +185,9 @@ import './TooltipContentStyles.styles.css';
|
|
|
188
185
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
|
|
189
186
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
|
|
190
187
|
import './TooltipContentVariants.styles.css';
|
|
191
|
-
import './tooltipUtils-
|
|
192
|
-
import './EnvironmentProvider-
|
|
193
|
-
import './LayerManager-
|
|
188
|
+
import './tooltipUtils-fcfd7dbb.js';
|
|
189
|
+
import './EnvironmentProvider-a3819bde.js';
|
|
190
|
+
import './LayerManager-be34be40.js';
|
|
194
191
|
import './IconStyle.styles.css';
|
|
195
192
|
import './SelectMenuGroupContext-b56cf5d4.js';
|
|
196
193
|
import './UNSAFE_Separator/themes/SeparatorStyles.css.js';
|
|
@@ -204,8 +201,8 @@ import './useChartDnd-9cf28aba.js';
|
|
|
204
201
|
import './utils-43235750.js';
|
|
205
202
|
import './pathUtils-1a478322.js';
|
|
206
203
|
import './useDnd-c5ae190c.js';
|
|
207
|
-
import './useTooltip-
|
|
208
|
-
import './useTooltipControlled-
|
|
204
|
+
import './useTooltip-72f5cf2e.js';
|
|
205
|
+
import './useTooltipControlled-97142fd1.js';
|
|
209
206
|
import './useFocus-38c95977.js';
|
|
210
207
|
import './useTouch-4828df25.js';
|
|
211
208
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme.js';
|
|
@@ -227,7 +224,7 @@ import './UNSAFE_ButtonSet/themes/ButtonSetStyles.css.js';
|
|
|
227
224
|
import './ButtonSetStyles.styles.css';
|
|
228
225
|
import './ButtonSetPositionContext-5730d367.js';
|
|
229
226
|
import './toggleButtonUtils-db5d5d21.js';
|
|
230
|
-
import './useRovingTabIndexContainer-
|
|
227
|
+
import './useRovingTabIndexContainer-7ec9f36f.js';
|
|
231
228
|
import './buttonUtils-be059939.js';
|
|
232
229
|
import './id-83adac50.js';
|
|
233
230
|
import './ButtonSetItem-5de226e8.js';
|
|
@@ -256,4 +253,7 @@ import './OverviewSlidingWindow-9e38aaaa.js';
|
|
|
256
253
|
import './PRIVATE_VisOverview/themes/VisOverview.css.js';
|
|
257
254
|
import './VisOverview.styles.css';
|
|
258
255
|
import './DragH-748254cd.js';
|
|
256
|
+
import './ScrollBar-a431a4f0.js';
|
|
257
|
+
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
258
|
+
import './ScrollBarStyles.styles.css';
|
|
259
259
|
//# sourceMappingURL=PRIVATE_Chart.js.map
|