@oracle/oraclejet-preact 18.1.9 → 18.1.10
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/ActionCard-5ae60cb4.js +1 -1
- package/amd/BarChart-0ad4ca6d.js +1 -1
- package/amd/BarGroup-d6909cb1.js +1 -1
- package/amd/BaseButton-c86afd54.js +1 -1
- package/amd/BaseCardView-4f88499c.js +1 -1
- package/amd/{BaseCardViewSelectionTest-00655472.js → BaseCardViewSelectionTest-36a03079.js} +2 -2
- package/amd/{BaseCardViewSelectionTest-00655472.js.map → BaseCardViewSelectionTest-36a03079.js.map} +1 -1
- package/amd/BaseNavigationListItem-84f4be5c.js +1 -1
- package/amd/BaseRichSelection-33a97275.js +1 -1
- package/amd/ButtonSet-7a7a63e8.js +1 -1
- package/amd/ButtonSetIconButton-9f171b1e.js +1 -1
- package/amd/Card-70e5f9f2.js +2 -0
- package/amd/{Card-4d47fe95.js.map → Card-70e5f9f2.js.map} +1 -1
- package/amd/{Center-05b00f39.js → Center-e552eb11.js} +2 -2
- package/amd/{Center-05b00f39.js.map → Center-e552eb11.js.map} +1 -1
- package/amd/Chart-79cfc878.js +1 -1
- package/amd/Checkbox-49753599.js +1 -1
- package/amd/CheckboxControl-c6a380b3.js +1 -1
- package/amd/CheckboxRadioField-1987c75d.js +1 -1
- package/amd/CheckboxSet-05423d28.js +2 -0
- package/amd/CheckboxSet-05423d28.js.map +1 -0
- package/amd/Chip-1bcbf57e.js +1 -1
- package/amd/ClearIcon-d73689cc.js +1 -1
- package/amd/CollapseIcon-a7f8693d.js +1 -1
- package/amd/Collapsible-ea0dca8a.js +1 -1
- package/amd/ComboChart-72eda15f.js +1 -1
- package/amd/CompactHelpSource-de995a7f.js +1 -1
- package/amd/CompactLabelAssistance-9f9f658d.js +2 -0
- package/amd/{CompactLabelAssistance-f3d093c7.js.map → CompactLabelAssistance-9f9f658d.js.map} +1 -1
- package/amd/CompactUserAssistance-3799998f.js +1 -1
- package/amd/ComponentMessageContainer-cf186eeb.js +1 -1
- package/amd/ConveyorBeltItem-e3002f4a.js +1 -1
- package/amd/{DatePicker-abe79055.js → DatePicker-9115226e.js} +2 -2
- package/amd/{DatePicker-abe79055.js.map → DatePicker-9115226e.js.map} +1 -1
- package/amd/DatePickerHeader-a0da70a0.js +1 -1
- package/amd/{Diagram-3d169c49.js → Diagram-14fa4924.js} +2 -2
- package/amd/{Diagram-3d169c49.js.map → Diagram-14fa4924.js.map} +1 -1
- package/amd/{Dialog-11e863b2.js → Dialog-896c0bfd.js} +2 -2
- package/amd/{Dialog-11e863b2.js.map → Dialog-896c0bfd.js.map} +1 -1
- package/amd/DirectionalCollapseArrowIcon-31539047.js +1 -1
- package/amd/DirectionalExpandArrowIcon-533fd2a0.js +1 -1
- package/amd/{DragHandle-7335845b.js → DragHandle-14ea6e74.js} +2 -2
- package/amd/{DragHandle-7335845b.js.map → DragHandle-14ea6e74.js.map} +1 -1
- package/amd/{DrawerPopup-8d5736fb.js → DrawerPopup-90b8ecf5.js} +2 -2
- package/amd/{DrawerPopup-8d5736fb.js.map → DrawerPopup-90b8ecf5.js.map} +1 -1
- package/amd/{Dropdown-3d2abe1f.js → Dropdown-73238fd5.js} +2 -2
- package/amd/{Dropdown-3d2abe1f.js.map → Dropdown-73238fd5.js.map} +1 -1
- package/amd/{EnvironmentProvider-bbf80843.js → EnvironmentProvider-806b8f3a.js} +2 -2
- package/amd/{EnvironmentProvider-bbf80843.js.map → EnvironmentProvider-806b8f3a.js.map} +1 -1
- package/amd/ExpandableList-daabc548.js +1 -1
- package/amd/FilePicker-7e31189e.js +1 -1
- package/amd/{Flex-b8764305.js → Flex-590160eb.js} +2 -2
- package/amd/{Flex-b8764305.js.map → Flex-590160eb.js.map} +1 -1
- package/amd/{Floating-f12b8739.js → Floating-ae9845d4.js} +2 -2
- package/amd/{Floating-f12b8739.js.map → Floating-ae9845d4.js.map} +1 -1
- package/amd/FormLayout-3d643cdf.js +1 -1
- package/amd/Gantt-7265d4ce.js +1 -1
- package/amd/Grid-a8a51c37.js +2 -0
- package/amd/{Grid-e6f0d4a6.js.map → Grid-a8a51c37.js.map} +1 -1
- package/amd/{Gridlines-efa5606a.js → Gridlines-8894882d.js} +2 -2
- package/amd/{Gridlines-efa5606a.js.map → Gridlines-8894882d.js.map} +1 -1
- package/amd/GroupLoadingIndicator-9fd33355.js +1 -1
- package/amd/HighlightText-ded0d51b.js +2 -0
- package/amd/{HighlightText-d1b13537.js.map → HighlightText-ded0d51b.js.map} +1 -1
- package/amd/Icon-383a68bb.js +1 -1
- package/amd/IconButton-368fba34.js +1 -1
- package/amd/IconMenuButton-3f3c2386.js +1 -1
- package/amd/IconProgressButton-11c44c28.js +1 -1
- package/amd/IconSwitchButton-1a400cdf.js +1 -1
- package/amd/IconToggleButton-ea46b246.js +1 -1
- package/amd/{IconUserAssistance-f5228b1d.js → IconUserAssistance-e496ab70.js} +2 -2
- package/amd/{IconUserAssistance-f5228b1d.js.map → IconUserAssistance-e496ab70.js.map} +1 -1
- package/amd/Indexer-510aaf3a.js +1 -1
- package/amd/InlineHelpSource-8277317c.js +1 -1
- package/amd/InlineUserAssistance-a97e0011.js +1 -1
- package/amd/InputDateMask-09989b51.js +1 -1
- package/amd/InputDatePicker-4c3c6bb4.js +2 -0
- package/amd/{InputDatePicker-03bdeb95.js.map → InputDatePicker-4c3c6bb4.js.map} +1 -1
- package/amd/InputPassword-57a5e072.js +1 -1
- package/amd/InputText-a72eb1c3.js +1 -1
- package/amd/Label-41b672b4.js +1 -1
- package/amd/LabelValueLayout-b6701ecf.js +1 -1
- package/amd/{Layer-69221878.js → Layer-139c23c4.js} +2 -2
- package/amd/{Layer-69221878.js.map → Layer-139c23c4.js.map} +1 -1
- package/amd/{LayerHost-27dfba9e.js → LayerHost-733ade2f.js} +2 -2
- package/amd/{LayerHost-27dfba9e.js.map → LayerHost-733ade2f.js.map} +1 -1
- package/amd/{LayerManager-7f82d3ce.js → LayerManager-9a628ce3.js} +2 -2
- package/amd/{LayerManager-7f82d3ce.js.map → LayerManager-9a628ce3.js.map} +1 -1
- package/amd/Legend-6fa54628.js +1 -1
- package/amd/{LineAreaChart-cacd5576.js → LineAreaChart-3aff0c1a.js} +2 -2
- package/amd/{LineAreaChart-cacd5576.js.map → LineAreaChart-3aff0c1a.js.map} +1 -1
- package/amd/{LineSeries-fe392d85.js → LineSeries-ce197af6.js} +2 -2
- package/amd/{LineSeries-fe392d85.js.map → LineSeries-ce197af6.js.map} +1 -1
- package/amd/Link-1f126248.js +1 -1
- package/amd/List-37e37948.js +1 -1
- package/amd/{ListItemLayout-60fc51b7.js → ListItemLayout-59986c55.js} +2 -2
- package/amd/{ListItemLayout-60fc51b7.js.map → ListItemLayout-59986c55.js.map} +1 -1
- package/amd/ListView-325e1814.js +1 -1
- package/amd/LiveRegion-1917f798.js +2 -0
- package/amd/{LiveRegion-17fea064.js.map → LiveRegion-1917f798.js.map} +1 -1
- package/amd/MaxLengthCounter-9a95922c.js +2 -0
- package/{cjs/MaxLengthCounter-9ab3f74b.js.map → amd/MaxLengthCounter-9a95922c.js.map} +1 -1
- package/amd/{MaxLengthLiveRegion-ecc0c894.js → MaxLengthLiveRegion-46bb45da.js} +2 -2
- package/amd/{MaxLengthLiveRegion-ecc0c894.js.map → MaxLengthLiveRegion-46bb45da.js.map} +1 -1
- package/amd/Menu-bb715ef5.js +1 -1
- package/amd/MenuButton-66e5430a.js +1 -1
- package/amd/MenuItem-1a324975.js +1 -1
- package/amd/Message-d66cc7e9.js +1 -1
- package/amd/{MessageLayer-d39be82d.js → MessageLayer-a439ce52.js} +2 -2
- package/amd/{MessageLayer-d39be82d.js.map → MessageLayer-a439ce52.js.map} +1 -1
- package/amd/MessageToast-19703f73.js +1 -1
- package/amd/MessagesManager-2c4c218f.js +1 -1
- package/amd/MeterBar-9f58cfad.js +1 -1
- package/amd/MeterCircle-c3138125.js +1 -1
- package/amd/{Modal-e4a033c8.js → Modal-9eaf8cd9.js} +2 -2
- package/amd/{Modal-e4a033c8.js.map → Modal-9eaf8cd9.js.map} +1 -1
- package/amd/{MonthView-ca0355b8.js → MonthView-67179db3.js} +2 -2
- package/amd/{MonthView-ca0355b8.js.map → MonthView-67179db3.js.map} +1 -1
- package/amd/NavigationListItem-32ded4a5.js +1 -1
- package/amd/NumberInputText-e2cf1795.js +1 -1
- package/amd/OverflowTabBarItem-f8128e3d.js +1 -1
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/PRIVATE_CheckboxControl.js +1 -1
- package/amd/PRIVATE_CheckboxRadioField.js +1 -1
- package/amd/PRIVATE_ClearIcon.js +1 -1
- package/amd/PRIVATE_DatePickerHeader.js +1 -1
- package/amd/PRIVATE_DatePickerLayout.js +1 -1
- package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
- package/amd/PRIVATE_FormControls.js +1 -1
- package/amd/PRIVATE_IconSwitchButton.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
- package/amd/PRIVATE_Icons/DragV.js +1 -1
- package/amd/PRIVATE_Icons/WarningS.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_MessageLayer.js +1 -1
- package/amd/PRIVATE_MonthView.js +1 -1
- package/amd/PRIVATE_MonthYearGridView.js +1 -1
- package/amd/PRIVATE_PlotArea.js +1 -1
- package/amd/PRIVATE_RevealToggleIcon.js +1 -1
- package/amd/PRIVATE_RichSelectionCommon.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_StyledCard.js +1 -1
- package/amd/PRIVATE_StyledCheckbox.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
- package/amd/PRIVATE_TimeComponent.js +1 -1
- package/amd/PRIVATE_VisOverview.js +1 -1
- package/amd/PRIVATE_VisTabularDatatip.js +1 -1
- package/amd/PictoChart-98b892fb.js +1 -1
- package/amd/PieChart-19890d12.js +1 -1
- package/amd/{Popup-b0704743.js → Popup-3e2566da.js} +2 -2
- package/amd/{Popup-b0704743.js.map → Popup-3e2566da.js.map} +1 -1
- package/amd/{ProgressBar-8ab08930.js → ProgressBar-99c0ff2a.js} +2 -2
- package/amd/{ProgressBar-8ab08930.js.map → ProgressBar-99c0ff2a.js.map} +1 -1
- package/amd/ProgressButton-cd0c21df.js +1 -1
- package/amd/ProgressButtonLabelLayout-76d8a3e7.js +1 -1
- package/amd/{ProgressCircle-9c36b39c.js → ProgressCircle-0046c4c8.js} +2 -2
- package/amd/{ProgressCircle-9c36b39c.js.map → ProgressCircle-0046c4c8.js.map} +1 -1
- package/amd/RadioItem-1a02d3dc.js +1 -1
- package/amd/RatingGauge-1c40dae3.js +1 -1
- package/amd/ReadonlyTextFieldInput-d6c6dbc4.js +1 -1
- package/amd/RemovableNavigationListItem-1f69907c.js +1 -1
- package/amd/RemovableTabBarItem-5c240801.js +1 -1
- package/amd/ReorderableTabBar-23f7e3c3.js +1 -1
- package/amd/RevealToggleIcon-c22626da.js +1 -1
- package/amd/{ScatterChart-5a9fe642.js → ScatterChart-e6f8d49a.js} +2 -2
- package/amd/{ScatterChart-5a9fe642.js.map → ScatterChart-e6f8d49a.js.map} +1 -1
- package/amd/SectionalLegend-713bdefb.js +1 -1
- package/amd/SectionedContent-ef1f844c.js +2 -0
- package/amd/{SectionedContent-f508dbae.js.map → SectionedContent-ef1f844c.js.map} +1 -1
- package/amd/SelectMultiple-19db7af2.js +1 -1
- package/amd/SelectSingle-7edde065.js +1 -1
- package/amd/SelectionCard-a8a3bb2d.js +2 -0
- package/amd/{SelectionCard-38a1007f.js.map → SelectionCard-a8a3bb2d.js.map} +1 -1
- package/amd/Selector-fcfe7801.js +1 -1
- package/amd/{SelectorAll-3f85b285.js → SelectorAll-de289397.js} +2 -2
- package/amd/{SelectorAll-3f85b285.js.map → SelectorAll-de289397.js.map} +1 -1
- package/amd/{Sheet-08578790.js → Sheet-404b38fa.js} +2 -2
- package/amd/{Sheet-08578790.js.map → Sheet-404b38fa.js.map} +1 -1
- package/amd/SplitMenuButton-a2001b04.js +1 -1
- package/amd/StyledCard-09c9f9c0.js +2 -0
- package/amd/{StyledCard-1f13531d.js.map → StyledCard-09c9f9c0.js.map} +1 -1
- package/amd/{StyledLabelValueLayout-0353a9b8.js → StyledLabelValueLayout-2524f5c3.js} +2 -2
- package/amd/{StyledLabelValueLayout-0353a9b8.js.map → StyledLabelValueLayout-2524f5c3.js.map} +1 -1
- package/amd/StyledTextField-5dcd2ff4.js +1 -1
- package/amd/TabBar-ca32462a.js +1 -1
- package/amd/TabBarItem-4ff2ef15.js +1 -1
- package/amd/TabBarLayout-95e78962.js +1 -1
- package/amd/TabBarMixed-dab4e4a2.js +1 -1
- package/amd/{TabBarMixedSeparator-b4c6eb9d.js → TabBarMixedSeparator-53d205c8.js} +2 -2
- package/amd/{TabBarMixedSeparator-b4c6eb9d.js.map → TabBarMixedSeparator-53d205c8.js.map} +1 -1
- package/amd/Table-f1101855.js +1 -1
- package/amd/TagCloud-39552a78.js +1 -1
- package/amd/TextArea-0ec1a311.js +2 -0
- package/{cjs/TextArea-d8516f11.js.map → amd/TextArea-0ec1a311.js.map} +1 -1
- package/amd/TextAreaAutosize-8cac0a54.js +2 -0
- package/amd/{TextAreaAutosize-c9c00a1c.js.map → TextAreaAutosize-8cac0a54.js.map} +1 -1
- package/amd/TextField-c16917d8.js +1 -1
- package/amd/TextFieldInput-e86a1d08.js +1 -1
- package/amd/Theme-redwood/theme.css +241 -241
- package/amd/Theme-stable/theme.css +322 -322
- package/amd/TimeComponentCanvas2D-82ebf0c7.js +1 -1
- package/amd/Toolbar-fe110698.js +1 -1
- package/amd/TruncatingBadge-1a265367.js +1 -1
- package/amd/TruncatingText-eb4bd8ab.js +1 -1
- package/amd/UNSAFE_ActionCard.js +1 -1
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_BaseButton.js +1 -1
- package/amd/UNSAFE_Button.js +1 -1
- package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
- package/amd/UNSAFE_ButtonSet.js +1 -1
- package/amd/UNSAFE_ButtonSetButton.js +1 -1
- package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
- package/amd/UNSAFE_ButtonSetItem.js +1 -1
- package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
- package/amd/UNSAFE_ButtonSetSingle.js +1 -1
- package/amd/UNSAFE_Card.js +1 -1
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_Center.js +1 -1
- package/amd/UNSAFE_Checkbox.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js.map +1 -1
- package/amd/UNSAFE_CheckboxSet.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js.map +1 -1
- package/amd/UNSAFE_Chip.js +1 -1
- package/amd/UNSAFE_Collapsible.js +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_ConveyorBelt.js +1 -1
- package/amd/UNSAFE_DatePicker.js +1 -1
- package/amd/UNSAFE_Diagram.js +1 -1
- package/amd/UNSAFE_Dialog.js +1 -1
- package/amd/UNSAFE_DragHandle.js +1 -1
- package/amd/UNSAFE_DrawerLayout.js +1 -1
- package/amd/UNSAFE_DrawerPopup.js +1 -1
- package/amd/UNSAFE_Dropdown.js +1 -1
- package/amd/UNSAFE_Environment.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_FilePicker.js +1 -1
- package/amd/UNSAFE_Flex.js +1 -1
- package/amd/UNSAFE_Floating.js +1 -1
- package/amd/UNSAFE_FormLayout.js +1 -1
- package/amd/UNSAFE_Gantt.js +1 -1
- package/amd/UNSAFE_Grid.js +1 -1
- package/amd/UNSAFE_HighlightText.js +1 -1
- package/amd/UNSAFE_Icon.js +1 -1
- package/amd/UNSAFE_IconButton.js +1 -1
- package/amd/UNSAFE_IconMenuButton.js +1 -1
- package/amd/UNSAFE_IconProgressButton.js +1 -1
- package/amd/UNSAFE_IconToggleButton.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDateMask.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputSensitiveText.js +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_InputTimeMask.js +1 -1
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_LabelValueLayout.js +1 -1
- package/amd/UNSAFE_LabelledLink.js +1 -1
- package/amd/UNSAFE_Layer.js +1 -1
- package/amd/UNSAFE_Legend.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListItemLayout.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_LiveRegion.js +1 -1
- package/amd/UNSAFE_Menu.js +1 -1
- package/amd/UNSAFE_MenuButton.js +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -1
- package/amd/UNSAFE_MessageToast.js +1 -1
- package/amd/UNSAFE_MeterBar.js +1 -1
- package/amd/UNSAFE_MeterCircle.js +1 -1
- package/amd/UNSAFE_Modal.js +1 -1
- package/amd/UNSAFE_NavigationList.js +1 -1
- package/amd/UNSAFE_NavigationListCommon.js +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -1
- package/amd/UNSAFE_OverflowTabBar.js +1 -1
- package/amd/UNSAFE_PictoChart.js +1 -1
- package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
- package/amd/UNSAFE_PieChart.js +1 -1
- package/amd/UNSAFE_Popup.js +1 -1
- package/amd/UNSAFE_ProgressBar.js +1 -1
- package/amd/UNSAFE_ProgressButton.js +1 -1
- package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
- package/amd/UNSAFE_ProgressCircle.js +1 -1
- package/amd/UNSAFE_RadioItem.js +1 -1
- package/amd/UNSAFE_RadioSet.js +1 -1
- package/amd/UNSAFE_RatingGauge.js +1 -1
- package/amd/UNSAFE_ReorderableTabBar.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/amd/UNSAFE_RichRadioSet.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SectionalLegend.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_SelectionCard.js +1 -1
- package/amd/UNSAFE_Selector.js +1 -1
- package/amd/UNSAFE_SelectorAll.js +1 -1
- package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
- package/amd/UNSAFE_Sheet.js +1 -1
- package/amd/UNSAFE_SplitMenuButton.js +1 -1
- package/amd/UNSAFE_TabBar.js +1 -1
- package/amd/UNSAFE_TabBarCommon.js +1 -1
- package/amd/UNSAFE_TabBarMixed.js +1 -1
- package/amd/UNSAFE_TableView.js +1 -1
- package/amd/UNSAFE_TagCloud.js +1 -1
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/UNSAFE_TextField.js +1 -1
- package/amd/UNSAFE_ToggleButton.js +1 -1
- package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
- package/amd/UNSAFE_Toolbar.js +1 -1
- package/amd/UNSAFE_Train.js +1 -1
- package/amd/UNSAFE_TruncatingBadge.js +1 -1
- package/amd/UNSAFE_TruncatingText.js +1 -1
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_View.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
- package/amd/UNSAFE_VisStatusMessage.js +1 -1
- package/amd/UNSAFE_WindowOverlay.js +1 -1
- package/amd/{View-b5d6b669.js → View-db26162c.js} +2 -2
- package/amd/{View-b5d6b669.js.map → View-db26162c.js.map} +1 -1
- package/amd/{VisNoData-32b7088b.js → VisNoData-7090c864.js} +2 -2
- package/amd/{VisNoData-32b7088b.js.map → VisNoData-7090c864.js.map} +1 -1
- package/amd/{VisProgressiveLoader-8cf832a4.js → VisProgressiveLoader-6a3b479f.js} +2 -2
- package/amd/{VisProgressiveLoader-8cf832a4.js.map → VisProgressiveLoader-6a3b479f.js.map} +1 -1
- package/amd/{VisTabularDatatip-03ba9ae5.js → VisTabularDatatip-0b630f9d.js} +2 -2
- package/amd/{VisTabularDatatip-03ba9ae5.js.map → VisTabularDatatip-0b630f9d.js.map} +1 -1
- package/amd/{WindowOverlay-19cd633a.js → WindowOverlay-c390f525.js} +2 -2
- package/amd/{WindowOverlay-19cd633a.js.map → WindowOverlay-c390f525.js.map} +1 -1
- package/amd/{YearsGridView-84898309.js → YearsGridView-e645d5de.js} +2 -2
- package/amd/{YearsGridView-84898309.js.map → YearsGridView-e645d5de.js.map} +1 -1
- package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
- package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
- package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
- package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
- package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
- package/amd/hooks/PRIVATE_useCssVars.js +1 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/amd/hooks/PRIVATE_useDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useFloating.js +1 -1
- package/amd/hooks/PRIVATE_useReorderable.js +1 -1
- package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
- package/amd/hooks/PRIVATE_useSelection.js +1 -1
- package/amd/hooks/PRIVATE_useTabBar.js +1 -1
- package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
- package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
- package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
- package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
- package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
- package/amd/hooks/UNSAFE_useDensity.js +1 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/amd/hooks/UNSAFE_useScale.js +1 -1
- package/amd/hooks/UNSAFE_useTestId.js +1 -1
- package/amd/hooks/UNSAFE_useTheme.js +1 -1
- package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
- package/amd/hooks/UNSAFE_useTooltip.js +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/amd/hooks/UNSAFE_useUser.js +1 -1
- package/amd/{index-9fe6dba4.js → index-91628308.js} +2 -2
- package/amd/index-91628308.js.map +1 -0
- package/amd/listViewSelectionTests-cda5abdf.js +1 -1
- package/amd/{popupUtils-4c7037ca.js → popupUtils-97c14340.js} +2 -2
- package/amd/{popupUtils-4c7037ca.js.map → popupUtils-97c14340.js.map} +1 -1
- package/amd/{render-60c60d58.js → render-26bfba97.js} +2 -2
- package/amd/{render-60c60d58.js.map → render-26bfba97.js.map} +1 -1
- package/amd/{tabbableUtils-91cb6674.js → tabbableUtils-e35b5cb9.js} +2 -2
- package/amd/{tabbableUtils-91cb6674.js.map → tabbableUtils-e35b5cb9.js.map} +1 -1
- package/amd/{testData-752ed27b.js → testData-1796f319.js} +2 -2
- package/amd/{testData-752ed27b.js.map → testData-1796f319.js.map} +1 -1
- package/amd/tooltipUtils-30886397.js +2 -0
- package/amd/{tooltipUtils-36ddb881.js.map → tooltipUtils-30886397.js.map} +1 -1
- package/amd/useCellNavigation-4138513e.js +1 -1
- package/amd/useChartContextMenu-59a5f8c0.js +1 -1
- package/amd/useChartDatatip-b75883b6.js +2 -0
- package/amd/{useChartDatatip-777fcfb2.js.map → useChartDatatip-b75883b6.js.map} +1 -1
- package/amd/{useColorScheme-09a67d56.js → useColorScheme-6b864d5c.js} +2 -2
- package/amd/{useColorScheme-09a67d56.js.map → useColorScheme-6b864d5c.js.map} +1 -1
- package/amd/useContextMenu-dacffeb2.js +1 -1
- package/amd/useCssVars-cc825c54.js +2 -0
- package/amd/{useCssVars-311f2956.js.map → useCssVars-cc825c54.js.map} +1 -1
- package/amd/{useCurrentBgColor-dc922fe6.js → useCurrentBgColor-df47f8a8.js} +2 -2
- package/amd/{useCurrentBgColor-dc922fe6.js.map → useCurrentBgColor-df47f8a8.js.map} +1 -1
- package/amd/useCurrentKey-b0a79216.js +2 -0
- package/amd/{useCurrentKey-e8791885.js.map → useCurrentKey-b0a79216.js.map} +1 -1
- package/amd/{useDatatip-8a63fb35.js → useDatatip-be9b251b.js} +2 -2
- package/amd/{useDatatip-8a63fb35.js.map → useDatatip-be9b251b.js.map} +1 -1
- package/amd/{useDensity-90a49922.js → useDensity-27fffd88.js} +2 -2
- package/amd/{useDensity-90a49922.js.map → useDensity-27fffd88.js.map} +1 -1
- package/amd/{useFloating-4b145893.js → useFloating-f9bd3c51.js} +2 -2
- package/amd/{useFloating-4b145893.js.map → useFloating-f9bd3c51.js.map} +1 -1
- package/amd/useKeyboardEvents-ce9c81d0.js +2 -0
- package/amd/{useKeyboardEvents-f8b3ead1.js.map → useKeyboardEvents-ce9c81d0.js.map} +1 -1
- package/amd/useLegendContextMenu-c4a44c23.js +1 -1
- package/amd/useMeterDatatip-f8bca628.js +2 -0
- package/amd/{useMeterDatatip-5d0b02c1.js.map → useMeterDatatip-f8bca628.js.map} +1 -1
- package/amd/{useOutsideClick-8e7ab184.js → useOutsideClick-43ce7043.js} +2 -2
- package/amd/{useOutsideClick-8e7ab184.js.map → useOutsideClick-43ce7043.js.map} +1 -1
- package/amd/{usePopupAnimation-1be03bd7.js → usePopupAnimation-65dec4e2.js} +2 -2
- package/amd/{usePopupAnimation-1be03bd7.js.map → usePopupAnimation-65dec4e2.js.map} +1 -1
- package/amd/{usePrefixSuffix-2612edcd.js → usePrefixSuffix-5147bdc9.js} +2 -2
- package/amd/{usePrefixSuffix-2612edcd.js.map → usePrefixSuffix-5147bdc9.js.map} +1 -1
- package/amd/{useReorderableItem-41e78941.js → useReorderableItem-9e759302.js} +2 -2
- package/amd/{useReorderableItem-41e78941.js.map → useReorderableItem-9e759302.js.map} +1 -1
- package/amd/{useRovingTabIndexContainer-6ff38598.js → useRovingTabIndexContainer-cfc9aacb.js} +2 -2
- package/amd/{useRovingTabIndexContainer-6ff38598.js.map → useRovingTabIndexContainer-cfc9aacb.js.map} +1 -1
- package/amd/{useScale-b77dadab.js → useScale-716d3432.js} +2 -2
- package/amd/{useScale-b77dadab.js.map → useScale-716d3432.js.map} +1 -1
- package/amd/useSelectCommon-70527342.js +1 -1
- package/amd/{useSelectDrill-b64a92ea.js → useSelectDrill-113ae3ae.js} +2 -2
- package/amd/{useSelectDrill-b64a92ea.js.map → useSelectDrill-113ae3ae.js.map} +1 -1
- package/amd/{useSelection-5ea9a696.js → useSelection-5f192f9f.js} +2 -2
- package/amd/{useSelection-5ea9a696.js.map → useSelection-5f192f9f.js.map} +1 -1
- package/amd/{useSelection-6e62de17.js → useSelection-80e262f2.js} +2 -2
- package/amd/{useSelection-6e62de17.js.map → useSelection-80e262f2.js.map} +1 -1
- package/amd/useTabBar-7a16a1af.js +1 -1
- package/amd/{useTestId-0140aa44.js → useTestId-c286f212.js} +2 -2
- package/amd/{useTestId-0140aa44.js.map → useTestId-c286f212.js.map} +1 -1
- package/amd/{useTheme-4fb0ea9d.js → useTheme-9c1f6f33.js} +2 -2
- package/amd/{useTheme-4fb0ea9d.js.map → useTheme-9c1f6f33.js.map} +1 -1
- package/amd/useThemeInterpolations-f8cbec71.js +2 -0
- package/amd/{useThemeInterpolations-3ca974f9.js.map → useThemeInterpolations-f8cbec71.js.map} +1 -1
- package/amd/{useTooltip-682ae8ca.js → useTooltip-7b915f4c.js} +2 -2
- package/amd/{useTooltip-682ae8ca.js.map → useTooltip-7b915f4c.js.map} +1 -1
- package/amd/useTooltipOnTruncation-0310f431.js +2 -0
- package/amd/{useTooltipOnTruncation-7721f587.js.map → useTooltipOnTruncation-0310f431.js.map} +1 -1
- package/amd/{useTranslationBundle-68275657.js → useTranslationBundle-7c40cb58.js} +2 -2
- package/amd/{useTranslationBundle-68275657.js.map → useTranslationBundle-7c40cb58.js.map} +1 -1
- package/amd/{useUser-e8dd7f7c.js → useUser-797287de.js} +2 -2
- package/amd/{useUser-e8dd7f7c.js.map → useUser-797287de.js.map} +1 -1
- package/amd/useVisDragModeControls-f187d8b2.js +1 -1
- package/amd/{useVisEvents-1d3ca08e.js → useVisEvents-a8ea4ced.js} +2 -2
- package/amd/{useVisEvents-1d3ca08e.js.map → useVisEvents-a8ea4ced.js.map} +1 -1
- package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
- package/amd/utils/PRIVATE_visTestUtils.js +1 -1
- package/amd/utils/UNSAFE_popupUtils.js +1 -1
- package/amd/{withDirectionIcon-754809be.js → withDirectionIcon-6df16f77.js} +2 -2
- package/amd/{withDirectionIcon-754809be.js.map → withDirectionIcon-6df16f77.js.map} +1 -1
- package/amd/withThemeProps-cab1ae08.js +1 -1
- package/cjs/BaseNavigationListItem-709591de.js +123 -0
- package/{es/BaseNavigationListItem-af84a9ee.js.map → cjs/BaseNavigationListItem-709591de.js.map} +1 -1
- package/cjs/{InputDatePicker-026ea769.js → InputDatePicker-7eb5931a.js} +2 -2
- package/cjs/{InputDatePicker-026ea769.js.map → InputDatePicker-7eb5931a.js.map} +1 -1
- package/cjs/{NavigationList-cd86b7a5.js → NavigationListItem-9b3d3258.js} +8 -3
- package/{es/NavigationListItem-07f041e6.js.map → cjs/NavigationListItem-9b3d3258.js.map} +1 -1
- package/cjs/{OverflowTabBar-95014877.js → OverflowTabBar-90cd282b.js} +3 -3
- package/cjs/{OverflowTabBar-95014877.js.map → OverflowTabBar-90cd282b.js.map} +1 -1
- package/cjs/{OverflowTabBarItem-7b383fbd.js → OverflowTabBarItem-359715a3.js} +4 -5
- package/cjs/{OverflowTabBarItem-7b383fbd.js.map → OverflowTabBarItem-359715a3.js.map} +1 -1
- package/cjs/{RemovableNavigationListItem-e7cd4dbf.js → RemovableNavigationListItem-f3ad6e8e.js} +3 -4
- package/cjs/{RemovableNavigationListItem-e7cd4dbf.js.map → RemovableNavigationListItem-f3ad6e8e.js.map} +1 -1
- package/cjs/{ReorderableTabBar-027413d9.js → ReorderableTabBar-0a94441d.js} +2 -2
- package/cjs/{ReorderableTabBar-027413d9.js.map → ReorderableTabBar-0a94441d.js.map} +1 -1
- package/cjs/{TabBar-fe7bc2c4.js → TabBar-ae497b21.js} +1 -6
- package/cjs/{TabBar-fe7bc2c4.js.map → TabBar-ae497b21.js.map} +1 -1
- package/cjs/{TabBarMixed-539d1779.js → TabBarMixed-d6b512da.js} +1 -6
- package/cjs/{TabBarMixed-539d1779.js.map → TabBarMixed-d6b512da.js.map} +1 -1
- package/cjs/{TextArea-d8516f11.js → TextArea-b51ac30d.js} +22 -4
- package/{amd/TextArea-fe8d9067.js.map → cjs/TextArea-b51ac30d.js.map} +1 -1
- package/cjs/{TextAreaAutosize-1797d5b7.js → TextAreaAutosize-ba85bce5.js} +3 -3
- package/cjs/{TextAreaAutosize-1797d5b7.js.map → TextAreaAutosize-ba85bce5.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +144 -144
- package/cjs/Theme-stable/theme.css +353 -353
- package/cjs/UNSAFE_InputDatePicker.js +90 -90
- package/cjs/UNSAFE_NavigationList.js +14 -16
- package/cjs/UNSAFE_NavigationList.js.map +1 -1
- package/cjs/UNSAFE_NavigationListCommon.js +57 -58
- package/cjs/UNSAFE_NavigationListCommon.js.map +1 -1
- package/cjs/UNSAFE_OverflowTabBar.js +27 -29
- package/cjs/UNSAFE_OverflowTabBar.js.map +1 -1
- package/cjs/UNSAFE_ReorderableTabBar.js +14 -25
- package/cjs/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/cjs/UNSAFE_TabBar.js +26 -28
- package/cjs/UNSAFE_TabBar.js.map +1 -1
- package/cjs/UNSAFE_TabBarCommon.js +18 -20
- package/cjs/UNSAFE_TabBarCommon.js.map +1 -1
- package/cjs/UNSAFE_TabBarMixed.js +37 -39
- package/cjs/UNSAFE_TabBarMixed.js.map +1 -1
- package/cjs/UNSAFE_TextArea.js +3 -4
- package/cjs/UNSAFE_TextArea.js.map +1 -1
- package/cjs/UNSAFE_TextAreaAutosize.js +3 -3
- package/es/ActionCard-bac27bb9.js +1 -1
- package/es/BadgeVariants.styles.css +14 -14
- package/es/BadgeVariants.styles2.css +14 -14
- package/es/{BarChart-43dec3b7.js → BarChart-60ae846d.js} +3 -3
- package/es/{BarChart-43dec3b7.js.map → BarChart-60ae846d.js.map} +1 -1
- package/es/BarGroup-dbf70e2c.js +1 -1
- package/es/BaseButton-61f6baa8.js +2 -2
- package/es/BaseCardView-89398a60.js +7 -7
- package/es/{BaseCardViewSelectionTest-ef070684.js → BaseCardViewSelectionTest-ef8b024a.js} +7 -7
- package/es/{BaseCardViewSelectionTest-ef070684.js.map → BaseCardViewSelectionTest-ef8b024a.js.map} +1 -1
- package/es/BaseNavigationListItem-1c75c13f.js +47 -0
- package/{cjs/BaseNavigationListItem-3dbb8d31.js.map → es/BaseNavigationListItem-1c75c13f.js.map} +1 -1
- package/es/BaseRichSelection-72edca7c.js +9 -9
- package/es/ButtonLayoutVariants.styles.css +2 -2
- package/es/ButtonLayoutVariants.styles2.css +2 -2
- package/es/ButtonSet-9b2c41be.js +2 -2
- package/es/ButtonSetIconButton-0081167a.js +3 -3
- package/es/{Card-31dc8dc2.js → Card-f3b7c723.js} +2 -2
- package/es/{Card-31dc8dc2.js.map → Card-f3b7c723.js.map} +1 -1
- package/es/{Center-2be68188.js → Center-76b761ea.js} +2 -2
- package/es/{Center-2be68188.js.map → Center-76b761ea.js.map} +1 -1
- package/es/{Chart-4ec13697.js → Chart-a8efd5f1.js} +10 -10
- package/es/{Chart-4ec13697.js.map → Chart-a8efd5f1.js.map} +1 -1
- package/es/Checkbox-74259575.js +4 -4
- package/es/CheckboxControl-c3c34028.js +6 -6
- package/es/CheckboxRadioField-294463ba.js +7 -7
- package/es/Chip-8fd813ce.js +1 -1
- package/es/ClearIcon-acca9670.js +1 -1
- package/es/CollapseIcon-152e59b4.js +1 -1
- package/es/Collapsible-4dddc4f7.js +2 -2
- package/es/{ComboChart-d1c3e17a.js → ComboChart-644f1f8c.js} +4 -4
- package/es/{ComboChart-d1c3e17a.js.map → ComboChart-644f1f8c.js.map} +1 -1
- package/es/CompactHelpSource-c3044924.js +2 -2
- package/es/{CompactLabelAssistance-0d70fceb.js → CompactLabelAssistance-fd3fb481.js} +5 -5
- package/es/{CompactLabelAssistance-0d70fceb.js.map → CompactLabelAssistance-fd3fb481.js.map} +1 -1
- package/es/CompactUserAssistance-4f0ff3fc.js +4 -4
- package/es/ComponentMessageContainer-13005c12.js +4 -4
- package/es/ConveyorBeltItem-53f383e1.js +2 -2
- package/es/{DatePicker-a57b08b1.js → DatePicker-383fc43a.js} +6 -6
- package/es/{DatePicker-a57b08b1.js.map → DatePicker-383fc43a.js.map} +1 -1
- package/es/DatePickerHeader-8eee60aa.js +3 -3
- package/es/{Diagram-29d78c10.js → Diagram-7af64b34.js} +5 -5
- package/es/{Diagram-29d78c10.js.map → Diagram-7af64b34.js.map} +1 -1
- package/es/{Dialog-8a9a90a2.js → Dialog-fbbcc306.js} +8 -8
- package/es/{Dialog-8a9a90a2.js.map → Dialog-fbbcc306.js.map} +1 -1
- package/es/DirectionalCollapseArrowIcon-e1b04846.js +1 -1
- package/es/DirectionalExpandArrowIcon-c9218fa7.js +1 -1
- package/es/{DragHandle-198c3118.js → DragHandle-99d4c921.js} +2 -2
- package/es/{DragHandle-198c3118.js.map → DragHandle-99d4c921.js.map} +1 -1
- package/es/{DrawerPopup-5292bdfc.js → DrawerPopup-9cdb203a.js} +7 -7
- package/es/{DrawerPopup-5292bdfc.js.map → DrawerPopup-9cdb203a.js.map} +1 -1
- package/es/{Dropdown-698afbc6.js → Dropdown-60833900.js} +5 -5
- package/es/{Dropdown-698afbc6.js.map → Dropdown-60833900.js.map} +1 -1
- package/es/{EnvironmentProvider-713d0dec.js → EnvironmentProvider-bada8909.js} +3 -3
- package/es/{EnvironmentProvider-713d0dec.js.map → EnvironmentProvider-bada8909.js.map} +1 -1
- package/es/ExpandableList-27f4f0d4.js +3 -3
- package/es/FilePicker-c3f06d6f.js +2 -2
- package/es/{Flex-2d9ebee9.js → Flex-ce31b351.js} +2 -2
- package/es/{Flex-2d9ebee9.js.map → Flex-ce31b351.js.map} +1 -1
- package/es/{Floating-5191a9e6.js → Floating-f02677ba.js} +4 -4
- package/es/{Floating-5191a9e6.js.map → Floating-f02677ba.js.map} +1 -1
- package/es/FormLayout-b2993e0c.js +1 -1
- package/es/Gantt-e156bd33.js +9 -9
- package/es/{Grid-238d8757.js → Grid-421eb560.js} +2 -2
- package/es/{Grid-238d8757.js.map → Grid-421eb560.js.map} +1 -1
- package/es/{Gridlines-d37f55d2.js → Gridlines-6098cb5b.js} +2 -2
- package/es/{Gridlines-d37f55d2.js.map → Gridlines-6098cb5b.js.map} +1 -1
- package/es/GroupLoadingIndicator-93bcf33f.js +1 -1
- package/es/{HighlightText-fef35694.js → HighlightText-86d92552.js} +2 -2
- package/es/{HighlightText-fef35694.js.map → HighlightText-86d92552.js.map} +1 -1
- package/es/Icon-030b6dd4.js +3 -3
- package/es/IconButton-19fcf0a8.js +3 -3
- package/es/IconMenuButton-4118bde6.js +3 -3
- package/es/IconProgressButton-a595c052.js +3 -3
- package/es/IconSwitchButton-dcafa86c.js +3 -3
- package/es/IconToggleButton-94cbea2b.js +3 -3
- package/es/{IconUserAssistance-d9bc82d4.js → IconUserAssistance-92be9618.js} +3 -3
- package/es/{IconUserAssistance-d9bc82d4.js.map → IconUserAssistance-92be9618.js.map} +1 -1
- package/es/Indexer-01c03c68.js +4 -4
- package/es/InlineHelpSource-5ed4bb7d.js +1 -1
- package/es/InlineUserAssistance-65ca8810.js +5 -5
- package/es/InputDateMask-8258be53.js +7 -7
- package/es/{InputDatePicker-163d1e3f.js → InputDatePicker-a659ed3a.js} +10 -10
- package/es/{InputDatePicker-163d1e3f.js.map → InputDatePicker-a659ed3a.js.map} +1 -1
- package/es/InputPassword-65336899.js +4 -4
- package/es/InputText-21591785.js +6 -6
- package/es/Label-25eba25e.js +5 -5
- package/es/LabelValueLayout-1db91391.js +1 -1
- package/es/{Layer-1eb18747.js → Layer-446bf21e.js} +3 -3
- package/es/{Layer-1eb18747.js.map → Layer-446bf21e.js.map} +1 -1
- package/es/{LayerHost-8b98d97d.js → LayerHost-e6402730.js} +2 -2
- package/es/{LayerHost-8b98d97d.js.map → LayerHost-e6402730.js.map} +1 -1
- package/es/{LayerManager-221afe20.js → LayerManager-fa745cec.js} +2 -2
- package/es/{LayerManager-221afe20.js.map → LayerManager-fa745cec.js.map} +1 -1
- package/es/Legend-0e274097.js +3 -3
- package/es/{LineAreaChart-6fabda31.js → LineAreaChart-c996a967.js} +4 -4
- package/es/{LineAreaChart-6fabda31.js.map → LineAreaChart-c996a967.js.map} +1 -1
- package/es/{LineSeries-139bda1a.js → LineSeries-fc167ea2.js} +2 -2
- package/es/{LineSeries-139bda1a.js.map → LineSeries-fc167ea2.js.map} +1 -1
- package/es/Link-c7061441.js +1 -1
- package/es/List-7a0e20bb.js +5 -5
- package/es/{ListItemLayout-af86b17d.js → ListItemLayout-e9854821.js} +2 -2
- package/es/{ListItemLayout-af86b17d.js.map → ListItemLayout-e9854821.js.map} +1 -1
- package/es/ListView-66efb96e.js +3 -3
- package/es/{LiveRegion-c7bf2f21.js → LiveRegion-b56a1aa2.js} +2 -2
- package/es/{LiveRegion-c7bf2f21.js.map → LiveRegion-b56a1aa2.js.map} +1 -1
- package/es/{MaxLengthLiveRegion-d790e55c.js → MaxLengthLiveRegion-2f3d34cf.js} +3 -3
- package/es/{MaxLengthLiveRegion-d790e55c.js.map → MaxLengthLiveRegion-2f3d34cf.js.map} +1 -1
- package/es/Menu-a5bf756f.js +6 -6
- package/es/MenuButton-e012a909.js +2 -2
- package/es/MenuItem-54015ca3.js +1 -1
- package/es/Message-b0150c6f.js +2 -2
- package/es/{MessageLayer-d9129e22.js → MessageLayer-7e3184aa.js} +6 -6
- package/es/{MessageLayer-d9129e22.js.map → MessageLayer-7e3184aa.js.map} +1 -1
- package/es/MessageToast-933a0339.js +8 -8
- package/es/MessagesManager-91ade5dc.js +3 -3
- package/es/MeterBar-732e3b2c.js +5 -5
- package/es/MeterCircle-2156d7ff.js +5 -5
- package/es/{Modal-9980f6d1.js → Modal-24a0bf4b.js} +4 -4
- package/es/{Modal-9980f6d1.js.map → Modal-24a0bf4b.js.map} +1 -1
- package/es/{MonthView-d60a5df7.js → MonthView-21b2163a.js} +4 -4
- package/es/{MonthView-d60a5df7.js.map → MonthView-21b2163a.js.map} +1 -1
- package/es/{NavigationListItem-07f041e6.js → NavigationList-fb05e081.js} +8 -12
- package/{cjs/NavigationList-cd86b7a5.js.map → es/NavigationList-fb05e081.js.map} +1 -1
- package/es/NavigationListItem-193a315a.js +10 -0
- package/{cjs/NavigationListItem-bf607636.js.map → es/NavigationListItem-193a315a.js.map} +1 -1
- package/es/NumberInputText-2d1aef12.js +6 -6
- package/es/{OverflowTabBar-f0b62902.js → OverflowTabBar-894c7cd9.js} +3 -3
- package/es/{OverflowTabBar-f0b62902.js.map → OverflowTabBar-894c7cd9.js.map} +1 -1
- package/es/{OverflowTabBarItem-7acbcb71.js → OverflowTabBarItem-a578401b.js} +7 -6
- package/es/{OverflowTabBarItem-7acbcb71.js.map → OverflowTabBarItem-a578401b.js.map} +1 -1
- package/es/PRIVATE_BaseCardView.js +21 -21
- package/es/PRIVATE_Chart.js +35 -35
- package/es/PRIVATE_CheckboxControl.js +23 -23
- package/es/PRIVATE_CheckboxRadioField.js +25 -25
- package/es/PRIVATE_ClearIcon.js +17 -17
- package/es/PRIVATE_DatePickerHeader.js +18 -18
- 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 +15 -15
- package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
- package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
- package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
- package/es/PRIVATE_Icons/DragV.js +15 -15
- package/es/PRIVATE_Icons/WarningS.js +15 -15
- package/es/PRIVATE_List.js +19 -19
- package/es/PRIVATE_Message.js +18 -18
- 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 +16 -16
- package/es/PRIVATE_RichSelectionCommon.js +26 -26
- package/es/PRIVATE_SelectCommon.js +28 -28
- package/es/PRIVATE_StyledCard.js +4 -4
- package/es/PRIVATE_StyledCheckbox.js +15 -15
- package/es/PRIVATE_Table.js +24 -24
- package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
- package/es/PRIVATE_TimeComponent.js +17 -17
- package/es/PRIVATE_VisOverview.js +15 -15
- package/es/PRIVATE_VisTabularDatatip.js +4 -4
- package/es/PictoChart-9624c62e.js +6 -6
- package/es/PieChart-87a2913f.js +6 -6
- package/es/{Popup-f6774b40.js → Popup-d8bf7f4d.js} +9 -9
- package/es/{Popup-f6774b40.js.map → Popup-d8bf7f4d.js.map} +1 -1
- package/es/{ProgressBar-6d816723.js → ProgressBar-2fa99d6f.js} +3 -3
- package/es/{ProgressBar-6d816723.js.map → ProgressBar-2fa99d6f.js.map} +1 -1
- package/es/ProgressButton-bb52347a.js +3 -3
- package/es/ProgressButtonLabelLayout-f1d097d6.js +3 -3
- package/es/{ProgressCircle-bbcf67fd.js → ProgressCircle-faf79b79.js} +2 -2
- package/es/{ProgressCircle-bbcf67fd.js.map → ProgressCircle-faf79b79.js.map} +1 -1
- package/es/RadioItem-81e9e082.js +6 -6
- package/es/RatingGauge-5e1e75b4.js +8 -8
- package/es/ReadonlyTextFieldInput-f407b86c.js +1 -1
- package/es/{RemovableNavigationListItem-9cb23511.js → RemovableNavigationListItem-21cd36b7.js} +4 -3
- package/es/{RemovableNavigationListItem-9cb23511.js.map → RemovableNavigationListItem-21cd36b7.js.map} +1 -1
- package/es/RemovableTabBarItem-60574a52.js +2 -2
- package/es/{ReorderableTabBar-fc76a33b.js → ReorderableTabBar-c280e7d4.js} +5 -5
- package/es/{ReorderableTabBar-fc76a33b.js.map → ReorderableTabBar-c280e7d4.js.map} +1 -1
- package/es/RevealToggleIcon-8e650973.js +1 -1
- package/es/{ScatterChart-1f818935.js → ScatterChart-0ac04f9d.js} +4 -4
- package/es/{ScatterChart-1f818935.js.map → ScatterChart-0ac04f9d.js.map} +1 -1
- package/es/SectionalLegend-64670096.js +4 -4
- package/es/{SectionedContent-48fa242f.js → SectionedContent-3274d8f9.js} +5 -5
- package/es/{SectionedContent-48fa242f.js.map → SectionedContent-3274d8f9.js.map} +1 -1
- package/es/SegmentStyles.styles.css +11 -8
- package/es/SegmentStyles.styles2.css +8 -11
- package/es/SelectMultiple-a6799615.js +8 -8
- package/es/SelectSingle-ae14678c.js +7 -7
- package/es/{SelectionCard-ce3012e8.js → SelectionCard-1ed9cf08.js} +2 -2
- package/es/{SelectionCard-ce3012e8.js.map → SelectionCard-1ed9cf08.js.map} +1 -1
- package/es/Selector-41618991.js +1 -1
- package/es/{SelectorAll-27744634.js → SelectorAll-f52550a6.js} +7 -7
- package/es/{SelectorAll-27744634.js.map → SelectorAll-f52550a6.js.map} +1 -1
- package/es/{Sheet-924cfdab.js → Sheet-da412baf.js} +3 -3
- package/es/{Sheet-924cfdab.js.map → Sheet-da412baf.js.map} +1 -1
- package/es/SplitMenuButton-5cb6e8db.js +2 -2
- package/es/{StyledCard-c8d9836f.js → StyledCard-362bd74b.js} +2 -2
- package/es/{StyledCard-c8d9836f.js.map → StyledCard-362bd74b.js.map} +1 -1
- package/es/{StyledLabelValueLayout-5b9a731a.js → StyledLabelValueLayout-d4881d3b.js} +2 -2
- package/es/{StyledLabelValueLayout-5b9a731a.js.map → StyledLabelValueLayout-d4881d3b.js.map} +1 -1
- package/es/StyledTextField-6d6dd43e.js +3 -3
- package/es/{TabBar-2858ff9c.js → TabBar-4d7054f7.js} +11 -6
- package/es/{TabBar-2858ff9c.js.map → TabBar-4d7054f7.js.map} +1 -1
- package/es/TabBarItem-b97091e4.js +3 -3
- package/es/TabBarLayout-bb3f9f69.js +1 -1
- package/es/{TabBarMixed-a4beabce.js → TabBarMixed-b8e2427c.js} +11 -6
- package/es/{TabBarMixed-a4beabce.js.map → TabBarMixed-b8e2427c.js.map} +1 -1
- package/es/{TabBarMixedSeparator-7669e2f0.js → TabBarMixedSeparator-51c518a1.js} +2 -2
- package/es/{TabBarMixedSeparator-7669e2f0.js.map → TabBarMixedSeparator-51c518a1.js.map} +1 -1
- package/es/Table-527429e9.js +9 -9
- package/es/TagCloud-0fe9b648.js +8 -8
- package/es/TextArea-a888d849.js +5 -5
- package/es/TextAreaAutosize-c2a52cba.js +5 -5
- package/es/TextField-500c0227.js +3 -3
- package/es/TextFieldInput-cb551f4e.js +1 -1
- package/es/Theme-redwood/theme.css +454 -454
- package/es/Theme-stable/theme.css +348 -348
- package/es/TimeComponentCanvas2D-a5baa5f6.js +5 -5
- package/es/Toolbar-35426a1b.js +1 -1
- package/es/TruncatingBadge-69621d89.js +1 -1
- package/es/TruncatingText-fd66e0e0.js +1 -1
- package/es/UNSAFE_ActionCard.js +3 -3
- package/es/UNSAFE_Badge/themes/redwood/BadgeTheme.js +1 -1
- package/es/UNSAFE_Badge/themes/redwood/BadgeVariants.css.js +1 -1
- package/es/UNSAFE_Badge/themes/stable/BadgeTheme.js +1 -1
- package/es/UNSAFE_Badge/themes/stable/BadgeVariants.css.js +1 -1
- package/es/UNSAFE_Badge.js +1 -1
- 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_ButtonLayout/themes/redwood/ButtonLayoutTheme.js +1 -1
- package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutVariants.css.js +1 -1
- package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutTheme.js +1 -1
- package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutVariants.css.js +1 -1
- package/es/UNSAFE_ButtonLayout.js +1 -1
- package/es/UNSAFE_ButtonSet.js +4 -4
- package/es/UNSAFE_ButtonSetButton.js +3 -3
- package/es/UNSAFE_ButtonSetIconButton.js +15 -15
- package/es/UNSAFE_ButtonSetItem.js +15 -15
- package/es/UNSAFE_ButtonSetMultiple.js +4 -4
- package/es/UNSAFE_ButtonSetSingle.js +4 -4
- package/es/UNSAFE_Card.js +5 -5
- package/es/UNSAFE_CardFlexView.js +21 -21
- package/es/UNSAFE_CardGridView.js +21 -21
- package/es/UNSAFE_Center.js +5 -5
- package/es/UNSAFE_Checkbox.js +23 -23
- package/es/UNSAFE_CheckboxItem.js +25 -25
- package/es/UNSAFE_CheckboxSet.js +24 -24
- package/es/UNSAFE_Chip.js +2 -2
- package/es/UNSAFE_Collapsible.js +17 -17
- package/es/UNSAFE_ComboChart.js +38 -38
- package/es/UNSAFE_ComponentMessage.js +18 -18
- package/es/UNSAFE_ConveyorBelt.js +15 -15
- package/es/UNSAFE_DatePicker.js +23 -23
- package/es/UNSAFE_Diagram.js +20 -20
- package/es/UNSAFE_Dialog.js +21 -21
- package/es/UNSAFE_DragHandle.js +17 -17
- package/es/UNSAFE_DrawerLayout.js +12 -12
- package/es/UNSAFE_DrawerPopup.js +13 -13
- package/es/UNSAFE_Dropdown.js +13 -13
- package/es/UNSAFE_Environment.js +4 -4
- package/es/UNSAFE_ExpandableList.js +22 -22
- 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 +22 -22
- package/es/UNSAFE_Grid.js +4 -4
- package/es/UNSAFE_HighlightText.js +4 -4
- package/es/UNSAFE_Icon.js +15 -15
- package/es/UNSAFE_IconButton.js +15 -15
- package/es/UNSAFE_IconMenuButton.js +21 -21
- package/es/UNSAFE_IconProgressButton.js +18 -18
- package/es/UNSAFE_IconToggleButton.js +15 -15
- package/es/UNSAFE_Indexer.js +6 -6
- package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputDateMask.js +26 -26
- package/es/UNSAFE_InputDatePicker.js +115 -115
- package/es/UNSAFE_InputPassword.js +24 -24
- package/es/UNSAFE_InputSensitiveText.js +26 -26
- package/es/UNSAFE_InputText.js +27 -27
- package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputTimeMask.js +26 -26
- package/es/UNSAFE_Label.js +23 -23
- package/es/UNSAFE_LabelValueLayout.js +4 -4
- package/es/UNSAFE_LabelledLink.js +25 -25
- package/es/UNSAFE_Layer.js +8 -8
- package/es/UNSAFE_Legend.js +25 -25
- 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 +18 -18
- package/es/UNSAFE_MessageToast.js +21 -21
- package/es/UNSAFE_MeterBar.js +16 -16
- package/es/UNSAFE_MeterCircle.js +17 -17
- package/es/UNSAFE_Modal.js +9 -9
- package/es/UNSAFE_NavigationList.js +43 -41
- package/es/UNSAFE_NavigationList.js.map +1 -1
- package/es/UNSAFE_NavigationListCommon.js +71 -70
- package/es/UNSAFE_NavigationListCommon.js.map +1 -1
- package/es/UNSAFE_NumberInputText.js +26 -26
- package/es/UNSAFE_OverflowTabBar.js +53 -51
- package/es/UNSAFE_OverflowTabBar.js.map +1 -1
- package/es/UNSAFE_PictoChart.js +14 -14
- package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
- package/es/UNSAFE_PieChart.js +22 -22
- package/es/UNSAFE_Popup.js +17 -17
- package/es/UNSAFE_ProgressBar.js +5 -5
- package/es/UNSAFE_ProgressButton.js +18 -18
- 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 +24 -24
- package/es/UNSAFE_RatingGauge.js +17 -17
- package/es/UNSAFE_ReorderableTabBar.js +49 -38
- package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/es/UNSAFE_RichCheckboxSet.js +26 -26
- package/es/UNSAFE_RichRadioSet.js +26 -26
- package/es/UNSAFE_RichSelectionItem.js +28 -28
- package/es/UNSAFE_ScatterChart.js +38 -38
- package/es/UNSAFE_SectionalLegend.js +26 -26
- package/es/UNSAFE_SelectMultiple.js +31 -31
- package/es/UNSAFE_SelectSingle.js +31 -31
- package/es/UNSAFE_SelectionCard.js +5 -5
- package/es/UNSAFE_Selector.js +15 -15
- package/es/UNSAFE_SelectorAll.js +19 -19
- package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +15 -15
- package/es/UNSAFE_Sheet.js +12 -12
- package/es/UNSAFE_SplitMenuButton.js +21 -21
- package/es/UNSAFE_TabBar.js +53 -51
- package/es/UNSAFE_TabBar.js.map +1 -1
- package/es/UNSAFE_TabBarCommon.js +45 -43
- package/es/UNSAFE_TabBarCommon.js.map +1 -1
- package/es/UNSAFE_TabBarMixed.js +63 -61
- package/es/UNSAFE_TabBarMixed.js.map +1 -1
- package/es/UNSAFE_TableView.js +24 -24
- package/es/UNSAFE_TagCloud.js +24 -24
- package/es/UNSAFE_TextArea.js +26 -26
- package/es/UNSAFE_TextAreaAutosize.js +26 -26
- package/es/UNSAFE_TextField.js +8 -8
- package/es/UNSAFE_ToggleButton.js +3 -3
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +24 -24
- package/es/UNSAFE_Toolbar.js +5 -5
- package/es/UNSAFE_Train.js +16 -16
- package/es/UNSAFE_TruncatingBadge.js +17 -17
- package/es/UNSAFE_TruncatingText.js +16 -16
- package/es/UNSAFE_UserAssistance.js +24 -24
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +19 -19
- package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
- package/es/UNSAFE_VisProgressiveLoader.js +6 -6
- package/es/UNSAFE_VisStatusMessage.js +6 -6
- package/es/UNSAFE_WindowOverlay.js +4 -4
- package/es/{View-cf6dfd8e.js → View-afe98b65.js} +5 -5
- package/es/{View-cf6dfd8e.js.map → View-afe98b65.js.map} +1 -1
- package/es/{VisNoData-d6e475d8.js → VisNoData-9ceb58f4.js} +3 -3
- package/es/{VisNoData-d6e475d8.js.map → VisNoData-9ceb58f4.js.map} +1 -1
- package/es/{VisProgressiveLoader-36053d5a.js → VisProgressiveLoader-36c728ac.js} +3 -3
- package/es/{VisProgressiveLoader-36053d5a.js.map → VisProgressiveLoader-36c728ac.js.map} +1 -1
- package/es/{VisTabularDatatip-3497f5ff.js → VisTabularDatatip-59629377.js} +2 -2
- package/es/{VisTabularDatatip-3497f5ff.js.map → VisTabularDatatip-59629377.js.map} +1 -1
- package/es/{WindowOverlay-ca2baa48.js → WindowOverlay-a07b2e24.js} +2 -2
- package/es/{WindowOverlay-ca2baa48.js.map → WindowOverlay-a07b2e24.js.map} +1 -1
- package/es/{YearsGridView-2c978d9f.js → YearsGridView-c5c58bf9.js} +4 -4
- package/es/{YearsGridView-2c978d9f.js.map → YearsGridView-c5c58bf9.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 +21 -21
- package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
- package/es/hooks/PRIVATE_useChartEvents.js +18 -18
- package/es/hooks/PRIVATE_useChartMarquee.js +17 -17
- package/es/hooks/PRIVATE_useCssVars.js +7 -7
- package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/es/hooks/PRIVATE_useDatatip.js +12 -12
- package/es/hooks/PRIVATE_useFloating.js +4 -4
- package/es/hooks/PRIVATE_useReorderable.js +5 -5
- package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/es/hooks/PRIVATE_useSelection.js +4 -4
- package/es/hooks/PRIVATE_useTabBar.js +4 -4
- package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
- package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
- package/es/hooks/PRIVATE_useVisDragModeControls.js +17 -17
- 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 +16 -16
- package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/es/hooks/UNSAFE_useUser.js +3 -3
- package/es/{index-3fdaba9a.js → index-e33bcd96.js} +2 -2
- package/es/index-e33bcd96.js.map +1 -0
- package/es/listViewSelectionTests-d1f64e6f.js +3 -3
- package/es/{popupUtils-24a723a0.js → popupUtils-58411a98.js} +2 -2
- package/es/{popupUtils-24a723a0.js.map → popupUtils-58411a98.js.map} +1 -1
- package/es/{render-4d96f0d2.js → render-343557e9.js} +3 -3
- package/es/{render-4d96f0d2.js.map → render-343557e9.js.map} +1 -1
- package/es/{tabbableUtils-070beeed.js → tabbableUtils-d6485f5e.js} +3 -3
- package/es/{tabbableUtils-070beeed.js.map → tabbableUtils-d6485f5e.js.map} +1 -1
- package/es/{testData-e1df8616.js → testData-d5181e9f.js} +3 -3
- package/es/{testData-e1df8616.js.map → testData-d5181e9f.js.map} +1 -1
- package/es/{tooltipUtils-35655bd6.js → tooltipUtils-768450a7.js} +5 -5
- package/es/{tooltipUtils-35655bd6.js.map → tooltipUtils-768450a7.js.map} +1 -1
- package/es/useCellNavigation-bdb3248d.js +1 -1
- package/es/useChartContextMenu-61fe46b8.js +2 -2
- package/es/{useChartDatatip-b0d35cfe.js → useChartDatatip-d6a6c5e1.js} +4 -4
- package/es/{useChartDatatip-b0d35cfe.js.map → useChartDatatip-d6a6c5e1.js.map} +1 -1
- package/es/{useColorScheme-8e5e458d.js → useColorScheme-c4e237ad.js} +2 -2
- package/es/{useColorScheme-8e5e458d.js.map → useColorScheme-c4e237ad.js.map} +1 -1
- package/es/useContextMenu-3c62d9eb.js +2 -2
- package/es/{useCssVars-608cb842.js → useCssVars-d72a8439.js} +5 -5
- package/es/{useCssVars-608cb842.js.map → useCssVars-d72a8439.js.map} +1 -1
- package/es/{useCurrentBgColor-ee671513.js → useCurrentBgColor-14745af3.js} +2 -2
- package/es/{useCurrentBgColor-ee671513.js.map → useCurrentBgColor-14745af3.js.map} +1 -1
- package/es/{useCurrentKey-b8e62707.js → useCurrentKey-7287061f.js} +2 -2
- package/es/{useCurrentKey-b8e62707.js.map → useCurrentKey-7287061f.js.map} +1 -1
- package/es/{useDatatip-daec4346.js → useDatatip-9635bc2f.js} +4 -4
- package/es/{useDatatip-daec4346.js.map → useDatatip-9635bc2f.js.map} +1 -1
- package/es/{useDensity-556ca8b2.js → useDensity-c17603b2.js} +2 -2
- package/es/{useDensity-556ca8b2.js.map → useDensity-c17603b2.js.map} +1 -1
- package/es/{useFloating-abfd69eb.js → useFloating-953362cf.js} +2 -2
- package/es/{useFloating-abfd69eb.js.map → useFloating-953362cf.js.map} +1 -1
- package/es/{useKeyboardEvents-7202253d.js → useKeyboardEvents-2378a650.js} +2 -2
- package/es/{useKeyboardEvents-7202253d.js.map → useKeyboardEvents-2378a650.js.map} +1 -1
- package/es/useLegendContextMenu-66d6eb7e.js +4 -4
- package/es/{useMeterDatatip-dcd2a05e.js → useMeterDatatip-834e67e1.js} +3 -3
- package/es/{useMeterDatatip-dcd2a05e.js.map → useMeterDatatip-834e67e1.js.map} +1 -1
- package/{cjs/useNavigationListItem-bf89c20b.js → es/useNavigationListItem-a28f2c34.js} +23 -27
- package/{cjs/useNavigationListItem-bf89c20b.js.map → es/useNavigationListItem-a28f2c34.js.map} +1 -1
- package/es/{useOutsideClick-817bf098.js → useOutsideClick-fd9ad806.js} +2 -2
- package/es/{useOutsideClick-817bf098.js.map → useOutsideClick-fd9ad806.js.map} +1 -1
- package/es/{usePopupAnimation-6e0781b5.js → usePopupAnimation-f017bc43.js} +2 -2
- package/es/{usePopupAnimation-6e0781b5.js.map → usePopupAnimation-f017bc43.js.map} +1 -1
- package/es/{usePrefixSuffix-0874343c.js → usePrefixSuffix-5a74f2c4.js} +2 -2
- package/es/{usePrefixSuffix-0874343c.js.map → usePrefixSuffix-5a74f2c4.js.map} +1 -1
- package/es/{useReorderableItem-99a9dbce.js → useReorderableItem-22ea4c46.js} +3 -3
- package/es/{useReorderableItem-99a9dbce.js.map → useReorderableItem-22ea4c46.js.map} +1 -1
- package/es/{useRovingTabIndexContainer-f7972085.js → useRovingTabIndexContainer-bc7ae447.js} +2 -2
- package/es/{useRovingTabIndexContainer-f7972085.js.map → useRovingTabIndexContainer-bc7ae447.js.map} +1 -1
- package/es/{useScale-1cdb639e.js → useScale-83881775.js} +2 -2
- package/es/{useScale-1cdb639e.js.map → useScale-83881775.js.map} +1 -1
- package/es/useSelectCommon-62eb8f41.js +11 -11
- package/es/{useSelectDrill-5525e5a3.js → useSelectDrill-f4781439.js} +3 -3
- package/es/{useSelectDrill-5525e5a3.js.map → useSelectDrill-f4781439.js.map} +1 -1
- package/es/{useSelection-8be05a70.js → useSelection-0bd0618d.js} +5 -5
- package/es/{useSelection-8be05a70.js.map → useSelection-0bd0618d.js.map} +1 -1
- package/es/{useSelection-2d26ab04.js → useSelection-649fd4f1.js} +2 -2
- package/es/{useSelection-2d26ab04.js.map → useSelection-649fd4f1.js.map} +1 -1
- package/es/useTabBar-cbac0c2e.js +1 -1
- package/es/{useTestId-474ac6ca.js → useTestId-9b504481.js} +2 -2
- package/es/{useTestId-474ac6ca.js.map → useTestId-9b504481.js.map} +1 -1
- package/es/{useTheme-5aa36f52.js → useTheme-93c07059.js} +2 -2
- package/es/{useTheme-5aa36f52.js.map → useTheme-93c07059.js.map} +1 -1
- package/es/{useThemeInterpolations-05e58770.js → useThemeInterpolations-8dd8029f.js} +5 -5
- package/es/{useThemeInterpolations-05e58770.js.map → useThemeInterpolations-8dd8029f.js.map} +1 -1
- package/es/{useTooltip-138c94ee.js → useTooltip-89ca3f3e.js} +5 -5
- package/es/{useTooltip-138c94ee.js.map → useTooltip-89ca3f3e.js.map} +1 -1
- package/es/{useTooltipOnTruncation-a97211b6.js → useTooltipOnTruncation-175bf8a6.js} +4 -4
- package/es/{useTooltipOnTruncation-a97211b6.js.map → useTooltipOnTruncation-175bf8a6.js.map} +1 -1
- package/es/{useTranslationBundle-2df40edf.js → useTranslationBundle-09302c20.js} +2 -2
- package/es/{useTranslationBundle-2df40edf.js.map → useTranslationBundle-09302c20.js.map} +1 -1
- package/es/{useUser-6b2e271a.js → useUser-1cd223a9.js} +2 -2
- package/es/{useUser-6b2e271a.js.map → useUser-1cd223a9.js.map} +1 -1
- package/es/useVisDragModeControls-ed260d12.js +1 -1
- package/es/{useVisEvents-d8652100.js → useVisEvents-8877743b.js} +2 -2
- package/es/{useVisEvents-d8652100.js.map → useVisEvents-8877743b.js.map} +1 -1
- package/es/utils/PRIVATE_tooltipUtils.js +14 -14
- package/es/utils/PRIVATE_visTestUtils.js +6 -6
- package/es/utils/UNSAFE_popupUtils.js +8 -8
- package/es/{withDirectionIcon-fe0b69a7.js → withDirectionIcon-19a1d777.js} +2 -2
- package/es/{withDirectionIcon-fe0b69a7.js.map → withDirectionIcon-19a1d777.js.map} +1 -1
- package/es/withThemeProps-1621f692.js +2 -2
- package/package.json +2 -2
- package/amd/Card-4d47fe95.js +0 -2
- package/amd/CheckboxSetContext-2e486ea8.js +0 -2
- package/amd/CheckboxSetContext-2e486ea8.js.map +0 -1
- package/amd/CompactLabelAssistance-f3d093c7.js +0 -2
- package/amd/Grid-e6f0d4a6.js +0 -2
- package/amd/HighlightText-d1b13537.js +0 -2
- package/amd/InputDatePicker-03bdeb95.js +0 -2
- package/amd/LiveRegion-17fea064.js +0 -2
- package/amd/SectionedContent-f508dbae.js +0 -2
- package/amd/SelectionCard-38a1007f.js +0 -2
- package/amd/StyledCard-1f13531d.js +0 -2
- package/amd/TextArea-fe8d9067.js +0 -2
- package/amd/TextAreaAutosize-c9c00a1c.js +0 -2
- package/amd/index-9fe6dba4.js.map +0 -1
- package/amd/tooltipUtils-36ddb881.js +0 -2
- package/amd/useChartDatatip-777fcfb2.js +0 -2
- package/amd/useCssVars-311f2956.js +0 -2
- package/amd/useCurrentKey-e8791885.js +0 -2
- package/amd/useKeyboardEvents-f8b3ead1.js +0 -2
- package/amd/useMeterDatatip-5d0b02c1.js +0 -2
- package/amd/useThemeInterpolations-3ca974f9.js +0 -2
- package/amd/useTooltipOnTruncation-7721f587.js +0 -2
- package/cjs/BaseNavigationListItem-3dbb8d31.js +0 -49
- package/cjs/MaxLengthCounter-9ab3f74b.js +0 -27
- package/cjs/NavigationListItem-bf607636.js +0 -12
- package/es/BaseNavigationListItem-af84a9ee.js +0 -119
- package/es/index-3fdaba9a.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVisEvents-
|
|
1
|
+
{"version":3,"file":"useVisEvents-a8ea4ced.js","sources":["../../src/hooks/PRIVATE_useVisEvents/useVisEvents.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useRef, useState } from 'preact/hooks';\nimport { useUser } from '#hooks/UNSAFE_useUser';\nimport type { gestureTypes } from '#hooks/PRIVATE_useVisContextMenu';\nimport { getRandomId } from '#utils/PRIVATE_visLayoutUtils/layoutUtils';\nimport { cancelEvent } from '#utils/UNSAFE_visUtils/eventsUtils';\nimport { useVisHover } from '#hooks/PRIVATE_useVisHover';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\ntype ItemInfo = { isCurrent?: boolean; isFocusVisible?: boolean };\n\ntype EventDetail<D> = { data?: D };\n\nexport function useVisEvent<\n I extends ItemInfo,\n J extends EventDetail<D>,\n L extends EventDetail<D>,\n D\n>(\n touchResponse: 'touchStart' | 'touchHold',\n isInteractive: boolean,\n isItemActionable: (itemInfo: I) => boolean,\n getKeyUpHandler: (\n triggerOnAction: () => void,\n updatefocusedItemInfo: (itemInfo: I) => void,\n focusedItemInfo: I,\n isHideShow?: boolean\n ) => (event: KeyboardEvent) => void,\n getDetailFromInfo: (info?: I) => J | L,\n getPrevItemInfo: (info: I) => I,\n getNextItemInfo: (info: I) => I,\n onItemAction: ((detail: J) => void) | undefined,\n onItemHover: ((detail: L) => void) | undefined,\n onItemFocus: ((detail: L) => void) | undefined,\n isEqualItem: (item1?: I, item2?: I) => boolean,\n getItemInfo: (element: HTMLElement) => I | undefined,\n initItemInfo: I,\n isHideShow?: boolean\n) {\n const activeIdRef = useRef<string>();\n\n const [focusedItemInfo, setfocusedItemInfo] = useState<I>(initItemInfo);\n const [hoveredItemInfo, sethoveredItemInfo] = useState<I>();\n\n const onHover = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (!isEqualItem(itemInfo, hoveredItemInfo)) {\n sethoveredItemInfo(itemInfo && { ...itemInfo, isCurrent: true });\n activeIdRef.current = getRandomId();\n if (isInteractive) {\n focusedItemInfo ? setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false }) : '';\n onItemHover?.(getDetailFromInfo(itemInfo) as L);\n }\n }\n };\n\n const onHoverLeave = () => {\n sethoveredItemInfo(undefined);\n activeIdRef.current = undefined;\n if (isInteractive) {\n onItemHover?.(getDetailFromInfo() as L);\n }\n };\n\n const hoverHandlers = useVisHover(onHover, undefined, onHoverLeave, touchResponse);\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n if (!isInteractive) {\n return {\n isInteractive: false,\n focusedItemInfo,\n hoveredItemInfo,\n // include relevant hover handlers for datatip\n eventsProps: hoverHandlers\n };\n }\n\n const updatefocusedItemInfo = (itemInfo: I) => {\n onItemFocus?.(getDetailFromInfo(itemInfo) as L);\n activeIdRef.current = getRandomId();\n setfocusedItemInfo(itemInfo);\n };\n\n const handleKeyboardInput = (item: I) => {\n if (!isEqualItem(item, focusedItemInfo)) {\n item.isCurrent = true;\n item.isFocusVisible = true;\n if (hoveredItemInfo) {\n sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });\n }\n updatefocusedItemInfo(item);\n }\n };\n\n const triggerOnAction = () => {\n const detail = getDetailFromInfo(focusedItemInfo) as J;\n if (detail && detail.data && isItemActionable(focusedItemInfo)) {\n onItemAction?.(detail);\n activeIdRef.current = getRandomId();\n }\n };\n\n const onPointerUp = (event: PointerEvent) => {\n const itemInfo = getItemInfo(event.target as HTMLElement);\n if (itemInfo != null && isItemActionable(itemInfo)) {\n setfocusedItemInfo(itemInfo);\n const detail = getDetailFromInfo(itemInfo);\n if (detail && isItemActionable(itemInfo)) {\n onItemAction?.(detail as J);\n activeIdRef.current = getRandomId();\n }\n }\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n const key = event.key;\n switch (key) {\n case 'Tab':\n return;\n case 'ArrowDown': {\n const nextItemInfo = getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowUp': {\n const nextItemInfo = getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowRight': {\n const nextItemInfo = isRtl\n ? getPrevItemInfo(focusedItemInfo)\n : getNextItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n case 'ArrowLeft': {\n const nextItemInfo = isRtl\n ? getNextItemInfo(focusedItemInfo)\n : getPrevItemInfo(focusedItemInfo);\n handleKeyboardInput(nextItemInfo);\n cancelEvent(event);\n break;\n }\n }\n };\n\n const onKeyUp = getKeyUpHandler(\n triggerOnAction,\n updatefocusedItemInfo,\n focusedItemInfo,\n isHideShow\n );\n\n const onContextMenuDismissed = (gesture: gestureTypes) => {\n if (gesture === 'keyboard') {\n updatefocusedItemInfo({\n ...focusedItemInfo,\n isCurrent: true,\n isFocusVisible: true\n });\n }\n };\n\n const onBlur = () => {\n const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false } as I;\n if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {\n onItemFocus?.(getDetailFromInfo(undefined) as L);\n }\n setfocusedItemInfo(itemInfo);\n };\n\n return {\n isInteractive: true,\n focusedItemInfo,\n hoveredItemInfo,\n activeId: activeIdRef.current,\n triggerOnAction,\n updatefocusedItemInfo,\n onContextMenuDismissed,\n eventsProps: mergeProps(hoverHandlers, {\n onPointerUp,\n onKeyUp,\n onKeyDown,\n onBlur\n })\n };\n}\n"],"names":["touchResponse","isInteractive","isItemActionable","getKeyUpHandler","getDetailFromInfo","getPrevItemInfo","getNextItemInfo","onItemAction","onItemHover","onItemFocus","isEqualItem","getItemInfo","initItemInfo","isHideShow","activeIdRef","useRef","focusedItemInfo","setfocusedItemInfo","useState","hoveredItemInfo","sethoveredItemInfo","hoverHandlers","useVisHover","event","itemInfo","target","isCurrent","current","getRandomId","undefined","direction","useUser","isRtl","eventsProps","updatefocusedItemInfo","handleKeyboardInput","item","isFocusVisible","triggerOnAction","detail","data","onKeyUp","activeId","onContextMenuDismissed","gesture","mergeProps","onPointerUp","onKeyDown","key","nextItemInfo","cancelEvent","onBlur"],"mappings":"8MAoBgB,SAMdA,EACAC,EACAC,EACAC,EAMAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAcC,EAAAA,UAEbC,EAAiBC,GAAsBC,EAAQA,SAAIN,IACnDO,EAAiBC,GAAsBF,EAAQA,WAsBhDG,EAAgBC,EAAAA,aApBLC,IACf,MAAMC,EAAWb,EAAYY,EAAME,QAC9Bf,EAAYc,EAAUL,KACzBC,EAAmBI,GAAY,IAAKA,EAAUE,WAAW,IACzDZ,EAAYa,QAAUC,EAAAA,cAClB3B,IACFe,GAAkBC,EAAmB,IAAKD,EAAiBU,WAAW,IACtElB,IAAcJ,EAAkBoB,KAEnC,QAWwCK,GARtB,KACnBT,OAAmBS,GACnBf,EAAYa,aAAUE,EAClB5B,GACFO,IAAcJ,IACf,GAGiEJ,IAE9D8B,UAAEA,GAAcC,EAAAA,UAChBC,EAAsB,QAAdF,EACd,IAAK7B,EACH,MAAO,CACLA,eAAe,EACfe,kBACAG,kBAEAc,YAAaZ,GAIjB,MAAMa,EAAyBV,IAC7Bf,IAAcL,EAAkBoB,IAChCV,EAAYa,QAAUC,EAAAA,cACtBX,EAAmBO,EAAS,EAGxBW,EAAuBC,IACtB1B,EAAY0B,EAAMpB,KACrBoB,EAAKV,WAAY,EACjBU,EAAKC,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iBU,WAAW,EAAOW,gBAAgB,IAClD,MAAnBlB,GAA2BH,EAAgBU,YAC7CjB,IAAcL,OAAkByB,IAElCZ,EAAmBO,EAAS,IAkBhC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', '../tooltipUtils-
|
|
1
|
+
define(['exports', '../tooltipUtils-30886397', 'preact/jsx-runtime', '../LayerHost-733ade2f', 'preact', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', 'preact/compat', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../EnvironmentProvider-806b8f3a', 'preact/hooks', '../LayerManager-9a628ce3', '../Floating-ae9845d4', '../useFloating-f9bd3c51', '../useUser-797287de', '../positionUtils-6e4daa31', '../refUtils-d354a169', '../useOutsideClick-43ce7043', '../arrayUtils-6ee96a35', '../Layer-139c23c4', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-f8cbec71', '../useColorScheme-6b864d5c', '../useScale-716d3432', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-27fffd88', '../useModal-536cb7ff', '../useComponentTheme-5aa41a8f', '../logger-0f873e29', '../utils-32e81a13', '../colorUtils-7c069766', '../UNSAFE_Floating/themes/redwood/FloatingTheme', '../UNSAFE_Floating/themes/FloatingStyles.css', 'css!./../FloatingStyles.styles.css', '../UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', '../UNSAFE_Floating/themes/redwood/FloatingVariants.css', '../vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', '../vanilla-extract-dynamic.esm-eceadd82', '../UNSAFE_Floating/themes/FloatingContract.css'], (function(e,t,s,a,o,l,r,c,i,n,d,m,y,g,F,h,p,_,f,u,S,T,L,E,U,O,b,A,C,N,D,I,H,P,v,w,M,W,x,Y,j,k,B,G,K,R,V,q,z,J){"use strict";e.HIDE_TOOLTIP_DELAY=t.HIDE_TOOLTIP_DELAY,e.SHOW_TOOLTIP_DELAY=t.SHOW_TOOLTIP_DELAY,e.getGlobalTooltipManager=t.getGlobalTooltipManager,e.getWrappedTooltipContent=t.getWrappedTooltipContent,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=PRIVATE_tooltipUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', '../tabbableUtils-
|
|
1
|
+
define(['exports', '../tabbableUtils-e35b5cb9', '../domUtil-b56997de', '../eventUtils-20dca9a8', 'preact/jsx-runtime', '@testing-library/preact', '../matchTranslationBundle-e243f90d', '../LayerHost-733ade2f', 'preact', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', 'preact/compat', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../EnvironmentProvider-806b8f3a', 'preact/hooks', '../LayerManager-9a628ce3', '../TabbableModeContext-a9c97640', 'chai'], (function(e,t,a,o,s,r,c,n,l,y,m,d,i,u,b,f,p,h,v){"use strict";e.default=t.setupTabbableComponent,e.checkTooltipText=a.checkTooltipText,e.queryAllBy=a.queryAllBy,e.queryById=a.queryById,e.mockMouseEventPageXYOffsetXY=o.mockMouseEventPageXYOffsetXY,e.restoreMouseEventPageXYOffsetXY=o.restoreMouseEventPageXYOffsetXY,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=PRIVATE_visTestUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', '../popupUtils-
|
|
1
|
+
define(['exports', '../popupUtils-97c14340', '../Layer-139c23c4', 'preact/jsx-runtime', 'preact/compat', '../LayerHost-733ade2f', 'preact', '../Common/themes/redwood/theme', '../Common/themes/themeContract.css', '../UNSAFE_Layer/themes/LayerHostStyles.css', 'css!./../LayerHostStyles.styles.css', '../classNames-08d99695', '../UNSAFE_Layer/themes/LayerStyles.css', 'css!./../LayerStyles.styles.css', '../useThemeInterpolations-f8cbec71', 'preact/hooks', '../useColorScheme-6b864d5c', '../useScale-716d3432', '../theme-a8f3d819', '../Theme-d945adae', '../mergeInterpolations-9ede4cf7', '../mergeDeepWithKey-aaab9019', '../_curry3-83878f86', '../_curry1-df649359', '../_curry2-86c52b86', '../_isObject-42bafc94', '../useDensity-27fffd88'], (function(e,s,t,c,r,a,o,y,m,l,d,i,n,f,p,u,h,L,S,_,b,g,A,C,j,H,N){"use strict";e.isLogicalAncestor=s.isLogicalAncestor,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=UNSAFE_popupUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', './useUser-
|
|
2
|
-
//# sourceMappingURL=withDirectionIcon-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', './useUser-797287de'], (function(e,t,r){"use strict";e.withDirectionIcon=(e,s)=>i=>{const{direction:n}=r.useUser();return"ltr"===n?t.jsx(e,{...i}):t.jsx(s,{...i})}}));
|
|
2
|
+
//# sourceMappingURL=withDirectionIcon-6df16f77.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withDirectionIcon-
|
|
1
|
+
{"version":3,"file":"withDirectionIcon-6df16f77.js","sources":["../../src/hoc/PRIVATE_withDirectionIcon/withDirectionIcon.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps } from 'preact';\nimport { Icon } from '#UNSAFE_Icon/Icon';\nimport { useUser } from '#hooks/UNSAFE_useUser';\n\ntype Props = Omit<ComponentProps<typeof Icon>, 'viewBox'>;\n\n// Returns a component that renders one of the given icon components based on reading direction\nexport const withDirectionIcon = (LtrIcon: typeof Icon, RtlIcon: typeof Icon) => {\n return (props: Props) => {\n const { direction } = useUser();\n return direction === 'ltr' ? <LtrIcon {...props} /> : <RtlIcon {...props} />;\n };\n};\n"],"names":["LtrIcon","RtlIcon","props","direction","useUser","_jsx","jsx"],"mappings":"+GAciC,CAACA,EAAsBC,IAC9CC,IACN,MAAMC,UAAEA,GAAcC,EAAAA,UACtB,MAAqB,QAAdD,EAAsBE,MAACL,EAAO,IAAKE,IAAYG,EAAAC,IAACL,EAAY,IAAAC,GAAS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './LayerHost-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './LayerHost-733ade2f', './EnvironmentProvider-806b8f3a', './Theme-d945adae'], (function(S,e,E,r,C,A,L){"use strict";S.withThemeProps=S=>{const C=S.displayName||S.name||"ComponentWithProvider",_=r.forwardRef((({colorScheme:C,scale:_,density:a,...d},t)=>{const n=t||E.createRef();return r.useEffect((()=>{if(n.current){const{classList:S}=n.current;if(!S)return;if(C){[L.LIGHT_CLASS,L.DARK_CLASS,L.INVERT_CLASS,L.COLORSCHEME_DEPENDENT_CLASS].map((e=>S.remove(e))),"dark"===C?(S.add(L.DARK_CLASS),S.add(L.INVERT_CLASS)):S.add(L.LIGHT_CLASS),S.add(L.COLORSCHEME_DEPENDENT_CLASS)}if(_){[L.SCALE_SM_CLASS,L.SCALE_MD_CLASS,L.SCALE_LG_CLASS,L.SCALE_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"sm"===_?L.SCALE_SM_CLASS:"md"===_?L.SCALE_MD_CLASS:L.SCALE_LG_CLASS}`),S.add(L.SCALE_DEPENDENT_CLASS)}if(a){[L.DENSITY_COMPACT_CLASS,L.DENSITY_STANDARD_CLASS,L.DENSITY_DEPENDENT_CLASS].map((e=>S.remove(e))),S.add(`${"compact"===a?L.DENSITY_COMPACT_CLASS:L.DENSITY_STANDARD_CLASS}`),S.add(L.DENSITY_DEPENDENT_CLASS)}}}),[n,C,_,a]),e.jsx(A.EnvironmentProvider,{environment:{colorScheme:C,scale:_,density:a},children:e.jsx(S,{...d,ref:n})})}));return _.displayName=`withThemeProps(${C})`,_}}));
|
|
2
2
|
//# sourceMappingURL=withThemeProps-cab1ae08.js.map
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('preact/jsx-runtime');
|
|
5
|
+
var hooks = require('preact/hooks');
|
|
6
|
+
var Text = require('./Text-15923d58.js');
|
|
7
|
+
var usePress = require('./usePress-886180e4.js');
|
|
8
|
+
var mergeProps = require('./mergeProps-e3da7237.js');
|
|
9
|
+
var classNames = require('./classNames-c14c6ef3.js');
|
|
10
|
+
var useInteractionStyle = require('./useInteractionStyle-379ee8fa.js');
|
|
11
|
+
var useComponentTheme = require('./useComponentTheme-082fc8e4.js');
|
|
12
|
+
var preact = require('preact');
|
|
13
|
+
var mergeInterpolations = require('./mergeInterpolations-6727b536.js');
|
|
14
|
+
var flexitem = require('./flexitem-fee13e26.js');
|
|
15
|
+
var UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme = require('./UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js');
|
|
16
|
+
var Flex = require('./Flex-1784952c.js');
|
|
17
|
+
var WarningS = require('./WarningS-2f402fac.js');
|
|
18
|
+
var ErrorS = require('./ErrorS-e9799ab5.js');
|
|
19
|
+
var InformationS = require('./InformationS-0605a80d.js');
|
|
20
|
+
var SuccessS = require('./SuccessS-035e292e.js');
|
|
21
|
+
var Badge = require('./Badge-0e522f12.js');
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
26
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
27
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
28
|
+
* @ignore
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Context used to pass navlist information without having to pass it to navlist children props.
|
|
32
|
+
* We want to communicate information down to any interested navlist item children.
|
|
33
|
+
*/
|
|
34
|
+
const NavigationListContext = preact.createContext(null);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
39
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
40
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
41
|
+
* @ignore
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Utility hook for consuming the NavigationListContext
|
|
45
|
+
*
|
|
46
|
+
* @returns The value of NavigationListContext provider
|
|
47
|
+
*/
|
|
48
|
+
function useNavigationListContext() {
|
|
49
|
+
return hooks.useContext(NavigationListContext);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const flexItemStyleInterpolations = mergeInterpolations.mergeInterpolations([
|
|
53
|
+
...Object.values(flexitem.flexitemInterpolations)
|
|
54
|
+
]);
|
|
55
|
+
const { class: labelContainerFlexItemClasses, ...labelContainerFlexItemStyle } = flexItemStyleInterpolations({
|
|
56
|
+
alignSelf: 'center'
|
|
57
|
+
});
|
|
58
|
+
function useNavigationListItem({ itemKey }) {
|
|
59
|
+
const { onSelectionChange, selection, currentKey, showFocusRing, navigationListItemPrefix } = useNavigationListContext();
|
|
60
|
+
//Selection and focus state
|
|
61
|
+
const isCurrent = currentKey === itemKey;
|
|
62
|
+
const isSelected = selection === itemKey;
|
|
63
|
+
//Styling
|
|
64
|
+
const { interactionProps, applyPseudoHoverStyle, applyHoverStyle, applyActiveStyle } = useInteractionStyle.useInteractionStyle();
|
|
65
|
+
const { classes: listItemClasses, styles: { labelContainerClasses } } = useComponentTheme.useComponentTheme(UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme.NavigationListItemRedwoodTheme, {
|
|
66
|
+
focusRing: showFocusRing ? 'isFocusRing' : 'notFocusRing',
|
|
67
|
+
current: isCurrent ? 'isCurrent' : 'notCurrtent',
|
|
68
|
+
selected: isSelected ? 'isSelected' : 'notSelected',
|
|
69
|
+
hybridHover: applyHoverStyle ? 'isHybridHover' : 'notHybridHover',
|
|
70
|
+
pseudoHover: applyPseudoHoverStyle ? 'isPseudoHover' : 'notPseudoHover',
|
|
71
|
+
active: applyActiveStyle ? 'isActive' : 'notActive'
|
|
72
|
+
});
|
|
73
|
+
//Item handlers
|
|
74
|
+
const handlePress = hooks.useCallback(() => {
|
|
75
|
+
onSelectionChange?.({ value: itemKey, reason: 'pointer' });
|
|
76
|
+
}, [itemKey, onSelectionChange]);
|
|
77
|
+
//Legacy navlist makes selection on keyDown, but since preact tabbar made selection after keyUp, will do the same
|
|
78
|
+
//for preact navlist
|
|
79
|
+
const { pressProps } = usePress.usePress(handlePress);
|
|
80
|
+
return {
|
|
81
|
+
itemId: navigationListItemPrefix + itemKey,
|
|
82
|
+
itemHandlers: mergeProps.mergeProps(interactionProps, pressProps /*,onFocusProps*/),
|
|
83
|
+
itemClasses: classNames.classNames([listItemClasses]),
|
|
84
|
+
isSelected,
|
|
85
|
+
labelContainerClasses: classNames.classNames([labelContainerClasses, labelContainerFlexItemClasses]),
|
|
86
|
+
labelContainerStyle: labelContainerFlexItemStyle
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/*TODO: JET-58535. Add ripple effect when touching navigationListItem. */
|
|
91
|
+
function BaseNavigationListItem({ itemKey, label, badge, metadata, severity = 'none', removeIcon }) {
|
|
92
|
+
const itemRef = hooks.useRef(null);
|
|
93
|
+
//Logic of the component handled here
|
|
94
|
+
const { itemId, itemHandlers, itemClasses, isSelected, labelContainerClasses, labelContainerStyle } = useNavigationListItem({
|
|
95
|
+
itemKey
|
|
96
|
+
});
|
|
97
|
+
const severityRequirement = !(severity === 'none' || severity === undefined);
|
|
98
|
+
const IconComponent = (severityValue) => {
|
|
99
|
+
switch (severityValue) {
|
|
100
|
+
case 'error':
|
|
101
|
+
return jsxRuntime.jsx(ErrorS.SvgErrorS, { color: "danger" });
|
|
102
|
+
case 'warning':
|
|
103
|
+
return jsxRuntime.jsx(WarningS.SvgWarningS, { color: "warning" });
|
|
104
|
+
case 'info':
|
|
105
|
+
return jsxRuntime.jsx(InformationS.SvgInformationS, { color: "info" });
|
|
106
|
+
case 'confirmation':
|
|
107
|
+
return jsxRuntime.jsx(SuccessS.SvgSuccessS, { color: "success" });
|
|
108
|
+
default:
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const { styles: { iconLabelContainer, iconContainer, navigationItemMetadata } } = useComponentTheme.useComponentTheme(UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme.NavigationListItemRedwoodTheme);
|
|
113
|
+
const navigationItemMatadata = classNames.classNames([navigationItemMetadata]);
|
|
114
|
+
const endIconContainerClasses = classNames.classNames([iconLabelContainer, iconContainer]);
|
|
115
|
+
const { styles: { navigationlistRemoveIcon } } = useComponentTheme.useComponentTheme(UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme.NavigationListItemRedwoodTheme);
|
|
116
|
+
const removeClass = classNames.classNames([navigationlistRemoveIcon]);
|
|
117
|
+
return (jsxRuntime.jsxs("li", { role: "tab", ...itemHandlers, "data-oj-key": itemKey, id: itemId, class: itemClasses, "aria-selected": isSelected, ref: itemRef, children: [label && (jsxRuntime.jsx("span", { class: labelContainerClasses, style: labelContainerStyle, children: jsxRuntime.jsx(Text.Text, { size: "inherit", weight: "inherit", variant: "inherit", children: label }) })), (metadata || severityRequirement || badge || removeIcon) && (jsxRuntime.jsxs(Flex.Flex, { gap: "2x", align: "center", justify: "end", flex: "1 1 auto", children: [' ', badge && (jsxRuntime.jsx("span", { class: endIconContainerClasses, children: jsxRuntime.jsx(Badge.Badge, { size: "md", variant: "neutralSubtle", children: badge }) })), metadata && (jsxRuntime.jsx("span", { class: navigationItemMatadata, children: jsxRuntime.jsx(Text.Text, { children: '( ' + metadata + ' )' }) })), severityRequirement && (jsxRuntime.jsx("span", { class: endIconContainerClasses, children: IconComponent(severity) })), removeIcon && jsxRuntime.jsx("span", { class: removeClass, children: removeIcon })] }))] }));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
exports.BaseNavigationListItem = BaseNavigationListItem;
|
|
121
|
+
exports.NavigationListContext = NavigationListContext;
|
|
122
|
+
exports.useNavigationListContext = useNavigationListContext;
|
|
123
|
+
//# sourceMappingURL=BaseNavigationListItem-709591de.js.map
|
package/{es/BaseNavigationListItem-af84a9ee.js.map → cjs/BaseNavigationListItem-709591de.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNavigationListItem-af84a9ee.js","sources":["../../src/UNSAFE_NavigationListCommon/NavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListItem.ts","../../src/UNSAFE_NavigationListCommon/BaseNavigationListItem.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { createContext } from 'preact';\nimport { NavigationListProps } from './NavigationListProps';\n\ntype CurrentKeyDetail<K> = {\n value: K;\n};\n\nexport type NavigationListContextProps<K extends string | number> = Pick<\n NavigationListProps<K>,\n 'selection' | 'onSelectionChange' | 'onRemove'\n> & {\n currentKey?: K;\n showFocusRing: boolean;\n onCurrentKeyChange:\n | (<K extends string | number>(detail: CurrentKeyDetail<K>) => void)\n | undefined;\n navigationListItemPrefix: string;\n};\n\n/**\n * Context used to pass navlist information without having to pass it to navlist children props.\n * We want to communicate information down to any interested navlist item children.\n */\n\nconst NavigationListContext = createContext<NavigationListContextProps<string | number>>(null!);\n\nexport { NavigationListContext };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useContext } from 'preact/hooks';\nimport { NavigationListContext } from './NavigationListContext';\n\n/**\n * Utility hook for consuming the NavigationListContext\n *\n * @returns The value of NavigationListContext provider\n */\nfunction useNavigationListContext() {\n return useContext(NavigationListContext);\n}\n\nexport { useNavigationListContext };\n","import { useCallback } from 'preact/hooks';\n\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useInteractionStyle } from '../hooks/UNSAFE_useInteractionStyle';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { useNavigationListContext } from './useNavigationListContext';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport {\n NavigationListItemStyles,\n NavigationListItemVariantOptions\n} from '../UNSAFE_NavigationList/themes/NavigationListItemStyles.css';\nimport { NavigationListItemRedwoodTheme } from './themes/redwood/NavigationListItemTheme';\n\nconst flexItemStyleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n]);\nconst { class: labelContainerFlexItemClasses, ...labelContainerFlexItemStyle } =\n flexItemStyleInterpolations({\n alignSelf: 'center'\n });\n\nexport function useNavigationListItem<K extends string | number>({ itemKey }: { itemKey: K }) {\n const { onSelectionChange, selection, currentKey, showFocusRing, navigationListItemPrefix } =\n useNavigationListContext();\n\n //Selection and focus state\n const isCurrent = currentKey === itemKey;\n\n const isSelected = selection === itemKey;\n\n //Styling\n const { interactionProps, applyPseudoHoverStyle, applyHoverStyle, applyActiveStyle } =\n useInteractionStyle();\n\n const {\n classes: listItemClasses,\n styles: { labelContainerClasses }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme,\n {\n focusRing: showFocusRing ? 'isFocusRing' : 'notFocusRing',\n current: isCurrent ? 'isCurrent' : 'notCurrtent',\n selected: isSelected ? 'isSelected' : 'notSelected',\n hybridHover: applyHoverStyle ? 'isHybridHover' : 'notHybridHover',\n pseudoHover: applyPseudoHoverStyle ? 'isPseudoHover' : 'notPseudoHover',\n active: applyActiveStyle ? 'isActive' : 'notActive'\n }\n );\n\n //Item handlers\n const handlePress = useCallback(() => {\n onSelectionChange?.({ value: itemKey as K, reason: 'pointer' });\n }, [itemKey, onSelectionChange]);\n\n //Legacy navlist makes selection on keyDown, but since preact tabbar made selection after keyUp, will do the same\n //for preact navlist\n const { pressProps } = usePress(handlePress);\n\n return {\n itemId: navigationListItemPrefix + itemKey,\n itemHandlers: mergeProps(interactionProps, pressProps /*,onFocusProps*/),\n itemClasses: classNames([listItemClasses]),\n isSelected,\n labelContainerClasses: classNames([labelContainerClasses, labelContainerFlexItemClasses]),\n labelContainerStyle: labelContainerFlexItemStyle\n };\n}\n","import { useRef } from 'preact/hooks';\n\nimport { Text } from '../UNSAFE_Text';\n\nimport { useNavigationListItem } from './useNavigationListItem';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Badge } from '../UNSAFE_Badge';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { WarningS } from '../UNSAFE_RedwoodIcons/WarningS';\nimport { ErrorS } from '../UNSAFE_RedwoodIcons/ErrorS';\nimport { InformationS } from '../UNSAFE_RedwoodIcons/InformationS';\nimport { SuccessS } from '../UNSAFE_RedwoodIcons/SuccessS';\nimport {\n NavigationListItemStyles,\n NavigationListItemVariantOptions\n} from '../UNSAFE_NavigationList/themes/NavigationListItemStyles.css';\nimport { NavigationListItemRedwoodTheme } from './themes/redwood/NavigationListItemTheme';\nimport { ComponentChildren } from 'preact';\n\ntype Severity = 'warning' | 'info' | 'none' | 'error' | 'confirmation';\n\nexport type BaseNavigationListItemProps<K extends string | number> = {\n /**\n * Key of the NavigationListItem.\n */\n itemKey: K;\n /**\n * Label of the NavigationListItem.\n */\n label?: string;\n /**\n * The content to be rendered inside the Badge component.\n */\n badge?: string;\n /**\n * The content to be rendered inside the Text component as a metadata.\n */\n metadata?: string;\n /**\n * The status icon to be rendered after the label.\n */\n severity?: Severity;\n /**\n * The content to be rendered for remove icon\n */\n removeIcon?: ComponentChildren;\n};\n\n/*TODO: JET-58535. Add ripple effect when touching navigationListItem. */\nexport function BaseNavigationListItem<K extends string | number>({\n itemKey,\n label,\n badge,\n metadata,\n severity = 'none',\n removeIcon\n}: BaseNavigationListItemProps<K>) {\n const itemRef = useRef<HTMLLIElement | null>(null);\n\n //Logic of the component handled here\n const {\n itemId,\n itemHandlers,\n itemClasses,\n isSelected,\n labelContainerClasses,\n labelContainerStyle\n } = useNavigationListItem({\n itemKey\n });\n\n const severityRequirement = !(severity === 'none' || severity === undefined);\n\n const IconComponent = (severityValue: Severity) => {\n switch (severityValue) {\n case 'error':\n return <ErrorS color=\"danger\" />;\n case 'warning':\n return <WarningS color=\"warning\" />;\n case 'info':\n return <InformationS color=\"info\" />;\n case 'confirmation':\n return <SuccessS color=\"success\" />;\n default:\n return null;\n }\n };\n\n const {\n styles: { iconLabelContainer, iconContainer, navigationItemMetadata }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme\n );\n\n const navigationItemMatadata = classNames([navigationItemMetadata]);\n\n const endIconContainerClasses = classNames([iconLabelContainer, iconContainer]);\n const {\n styles: { navigationlistRemoveIcon }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme\n );\n\n const removeClass = classNames([navigationlistRemoveIcon]);\n\n return (\n <li\n role=\"tab\"\n {...itemHandlers}\n data-oj-key={itemKey}\n id={itemId}\n class={itemClasses}\n aria-selected={isSelected}\n ref={itemRef}>\n {label && (\n <span class={labelContainerClasses} style={labelContainerStyle}>\n <Text size=\"inherit\" weight=\"inherit\" variant=\"inherit\">\n {label}\n </Text>\n </span>\n )}\n {(metadata || severityRequirement || badge || removeIcon) && (\n <Flex gap=\"2x\" align=\"center\" justify=\"end\" flex=\"1 1 auto\">\n {' '}\n {badge && (\n <span class={endIconContainerClasses}>\n <Badge size=\"md\" variant=\"neutralSubtle\">\n {badge}\n </Badge>\n </span>\n )}\n {metadata && (\n <span class={navigationItemMatadata}>\n <Text>{'( ' + metadata + ' )'}</Text>\n </span>\n )}\n {severityRequirement && (\n <span class={endIconContainerClasses}>{IconComponent(severity)}</span>\n )}\n {removeIcon && <span class={removeClass}>{removeIcon}</span>}\n </Flex>\n )}\n </li>\n );\n}\n"],"names":["_jsx","ErrorS","WarningS","InformationS","SuccessS","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAqBH;;;AAGG;AAEH,MAAM,qBAAqB,GAAG,aAAa,CAA8C,IAAK;;AChC9F;;;;;;AAMG;AAKH;;;;AAIG;AACH,SAAS,wBAAwB,GAAA;AAC/B,IAAA,OAAO,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C;;ACDA,MAAM,2BAA2B,GAAG,mBAAmB,CAAgB;AACrE,IAAA,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC;AACzC,CAAA,CAAC,CAAC;AACH,MAAM,EAAE,KAAK,EAAE,6BAA6B,EAAE,GAAG,2BAA2B,EAAE,GAC5E,2BAA2B,CAAC;AAC1B,IAAA,SAAS,EAAE,QAAQ;AACpB,CAAA,CAAC,CAAC;AAEW,SAAA,qBAAqB,CAA4B,EAAE,OAAO,EAAkB,EAAA;AAC1F,IAAA,MAAM,EAAE,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AAsB,EACjC,QAAA,EAAAA,GAAA,CAAC,IAAI,EAAA,EAAA,QAAA,EAAE,IAAI,GAAG,QAAQ,GAAG,IAAI,GAAQ,EAChC,CAAA,CACR,EACA,mBAAmB,KAClBA,GAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,uBAAuB,EAAG,QAAA,EAAA,aAAa,CAAC,QAAQ,CAAC,EAAQ,CAAA,CACvE,EACA,UAAU,IAAIA,GAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,WAAW,YAAG,UAAU,EAAA,CAAQ,IACvD,CACR,CAAA,EAAA,CACE,EACL;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"BaseNavigationListItem-709591de.js","sources":["../../src/UNSAFE_NavigationListCommon/NavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListItem.ts","../../src/UNSAFE_NavigationListCommon/BaseNavigationListItem.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { createContext } from 'preact';\nimport { NavigationListProps } from './NavigationListProps';\n\ntype CurrentKeyDetail<K> = {\n value: K;\n};\n\nexport type NavigationListContextProps<K extends string | number> = Pick<\n NavigationListProps<K>,\n 'selection' | 'onSelectionChange' | 'onRemove'\n> & {\n currentKey?: K;\n showFocusRing: boolean;\n onCurrentKeyChange:\n | (<K extends string | number>(detail: CurrentKeyDetail<K>) => void)\n | undefined;\n navigationListItemPrefix: string;\n};\n\n/**\n * Context used to pass navlist information without having to pass it to navlist children props.\n * We want to communicate information down to any interested navlist item children.\n */\n\nconst NavigationListContext = createContext<NavigationListContextProps<string | number>>(null!);\n\nexport { NavigationListContext };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useContext } from 'preact/hooks';\nimport { NavigationListContext } from './NavigationListContext';\n\n/**\n * Utility hook for consuming the NavigationListContext\n *\n * @returns The value of NavigationListContext provider\n */\nfunction useNavigationListContext() {\n return useContext(NavigationListContext);\n}\n\nexport { useNavigationListContext };\n","import { useCallback } from 'preact/hooks';\n\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useInteractionStyle } from '../hooks/UNSAFE_useInteractionStyle';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { useNavigationListContext } from './useNavigationListContext';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport {\n NavigationListItemStyles,\n NavigationListItemVariantOptions\n} from '../UNSAFE_NavigationList/themes/NavigationListItemStyles.css';\nimport { NavigationListItemRedwoodTheme } from './themes/redwood/NavigationListItemTheme';\n\nconst flexItemStyleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n]);\nconst { class: labelContainerFlexItemClasses, ...labelContainerFlexItemStyle } =\n flexItemStyleInterpolations({\n alignSelf: 'center'\n });\n\nexport function useNavigationListItem<K extends string | number>({ itemKey }: { itemKey: K }) {\n const { onSelectionChange, selection, currentKey, showFocusRing, navigationListItemPrefix } =\n useNavigationListContext();\n\n //Selection and focus state\n const isCurrent = currentKey === itemKey;\n\n const isSelected = selection === itemKey;\n\n //Styling\n const { interactionProps, applyPseudoHoverStyle, applyHoverStyle, applyActiveStyle } =\n useInteractionStyle();\n\n const {\n classes: listItemClasses,\n styles: { labelContainerClasses }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme,\n {\n focusRing: showFocusRing ? 'isFocusRing' : 'notFocusRing',\n current: isCurrent ? 'isCurrent' : 'notCurrtent',\n selected: isSelected ? 'isSelected' : 'notSelected',\n hybridHover: applyHoverStyle ? 'isHybridHover' : 'notHybridHover',\n pseudoHover: applyPseudoHoverStyle ? 'isPseudoHover' : 'notPseudoHover',\n active: applyActiveStyle ? 'isActive' : 'notActive'\n }\n );\n\n //Item handlers\n const handlePress = useCallback(() => {\n onSelectionChange?.({ value: itemKey as K, reason: 'pointer' });\n }, [itemKey, onSelectionChange]);\n\n //Legacy navlist makes selection on keyDown, but since preact tabbar made selection after keyUp, will do the same\n //for preact navlist\n const { pressProps } = usePress(handlePress);\n\n return {\n itemId: navigationListItemPrefix + itemKey,\n itemHandlers: mergeProps(interactionProps, pressProps /*,onFocusProps*/),\n itemClasses: classNames([listItemClasses]),\n isSelected,\n labelContainerClasses: classNames([labelContainerClasses, labelContainerFlexItemClasses]),\n labelContainerStyle: labelContainerFlexItemStyle\n };\n}\n","import { useRef } from 'preact/hooks';\n\nimport { Text } from '../UNSAFE_Text';\n\nimport { useNavigationListItem } from './useNavigationListItem';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Badge } from '../UNSAFE_Badge';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { WarningS } from '../UNSAFE_RedwoodIcons/WarningS';\nimport { ErrorS } from '../UNSAFE_RedwoodIcons/ErrorS';\nimport { InformationS } from '../UNSAFE_RedwoodIcons/InformationS';\nimport { SuccessS } from '../UNSAFE_RedwoodIcons/SuccessS';\nimport {\n NavigationListItemStyles,\n NavigationListItemVariantOptions\n} from '../UNSAFE_NavigationList/themes/NavigationListItemStyles.css';\nimport { NavigationListItemRedwoodTheme } from './themes/redwood/NavigationListItemTheme';\nimport { ComponentChildren } from 'preact';\n\ntype Severity = 'warning' | 'info' | 'none' | 'error' | 'confirmation';\n\nexport type BaseNavigationListItemProps<K extends string | number> = {\n /**\n * Key of the NavigationListItem.\n */\n itemKey: K;\n /**\n * Label of the NavigationListItem.\n */\n label?: string;\n /**\n * The content to be rendered inside the Badge component.\n */\n badge?: string;\n /**\n * The content to be rendered inside the Text component as a metadata.\n */\n metadata?: string;\n /**\n * The status icon to be rendered after the label.\n */\n severity?: Severity;\n /**\n * The content to be rendered for remove icon\n */\n removeIcon?: ComponentChildren;\n};\n\n/*TODO: JET-58535. Add ripple effect when touching navigationListItem. */\nexport function BaseNavigationListItem<K extends string | number>({\n itemKey,\n label,\n badge,\n metadata,\n severity = 'none',\n removeIcon\n}: BaseNavigationListItemProps<K>) {\n const itemRef = useRef<HTMLLIElement | null>(null);\n\n //Logic of the component handled here\n const {\n itemId,\n itemHandlers,\n itemClasses,\n isSelected,\n labelContainerClasses,\n labelContainerStyle\n } = useNavigationListItem({\n itemKey\n });\n\n const severityRequirement = !(severity === 'none' || severity === undefined);\n\n const IconComponent = (severityValue: Severity) => {\n switch (severityValue) {\n case 'error':\n return <ErrorS color=\"danger\" />;\n case 'warning':\n return <WarningS color=\"warning\" />;\n case 'info':\n return <InformationS color=\"info\" />;\n case 'confirmation':\n return <SuccessS color=\"success\" />;\n default:\n return null;\n }\n };\n\n const {\n styles: { iconLabelContainer, iconContainer, navigationItemMetadata }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme\n );\n\n const navigationItemMatadata = classNames([navigationItemMetadata]);\n\n const endIconContainerClasses = classNames([iconLabelContainer, iconContainer]);\n const {\n styles: { navigationlistRemoveIcon }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme\n );\n\n const removeClass = classNames([navigationlistRemoveIcon]);\n\n return (\n <li\n role=\"tab\"\n {...itemHandlers}\n data-oj-key={itemKey}\n id={itemId}\n class={itemClasses}\n aria-selected={isSelected}\n ref={itemRef}>\n {label && (\n <span class={labelContainerClasses} style={labelContainerStyle}>\n <Text size=\"inherit\" weight=\"inherit\" variant=\"inherit\">\n {label}\n </Text>\n </span>\n )}\n {(metadata || severityRequirement || badge || removeIcon) && (\n <Flex gap=\"2x\" align=\"center\" justify=\"end\" flex=\"1 1 auto\">\n {' '}\n {badge && (\n <span class={endIconContainerClasses}>\n <Badge size=\"md\" variant=\"neutralSubtle\">\n {badge}\n </Badge>\n </span>\n )}\n {metadata && (\n <span class={navigationItemMatadata}>\n <Text>{'( ' + metadata + ' )'}</Text>\n </span>\n )}\n {severityRequirement && (\n <span class={endIconContainerClasses}>{IconComponent(severity)}</span>\n )}\n {removeIcon && <span class={removeClass}>{removeIcon}</span>}\n </Flex>\n )}\n </li>\n );\n}\n"],"names":["createContext","useContext","mergeInterpolations","flexitemInterpolations","useInteractionStyle","useComponentTheme","NavigationListItemRedwoodTheme","useCallback","usePress","mergeProps","classNames","useRef","_jsx","ErrorS","WarningS","InformationS","SuccessS","_jsxs","Text","Flex","Badge"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAqBH;;;AAGG;AAEH,MAAM,qBAAqB,GAAGA,oBAAa,CAA8C,IAAK;;AChC9F;;;;;;AAMG;AAKH;;;;AAIG;AACH,SAAS,wBAAwB,GAAA;AAC/B,IAAA,OAAOC,gBAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C;;ACDA,MAAM,2BAA2B,GAAGC,uCAAmB,CAAgB;AACrE,IAAA,GAAG,MAAM,CAAC,MAAM,CAACC,+BAAsB,CAAC;AACzC,CAAA,CAAC,CAAC;AACH,MAAM,EAAE,KAAK,EAAE,6BAA6B,EAAE,GAAG,2BAA2B,EAAE,GAC5E,2BAA2B,CAAC;AAC1B,IAAA,SAAS,EAAE,QAAQ;AACpB,CAAA,CAAC,CAAC;AAEW,SAAA,qBAAqB,CAA4B,EAAE,OAAO,EAAkB,EAAA;AAC1F,IAAA,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,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AsB,EACjC,QAAA,EAAAA,cAAA,CAACM,SAAI,EAAA,EAAA,QAAA,EAAE,IAAI,GAAG,QAAQ,GAAG,IAAI,GAAQ,EAChC,CAAA,CACR,EACA,mBAAmB,KAClBN,cAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,uBAAuB,EAAG,QAAA,EAAA,aAAa,CAAC,QAAQ,CAAC,EAAQ,CAAA,CACvE,EACA,UAAU,IAAIA,cAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,WAAW,YAAG,UAAU,EAAA,CAAQ,IACvD,CACR,CAAA,EAAA,CACE,EACL;AACJ;;;;;;"}
|
|
@@ -5,7 +5,6 @@ var jsxRuntime = require('preact/jsx-runtime');
|
|
|
5
5
|
var compat = require('preact/compat');
|
|
6
6
|
var hooks = require('preact/hooks');
|
|
7
7
|
var Calendar = require('./Calendar-7a729072.js');
|
|
8
|
-
var InputDateMask = require('./InputDateMask-d6b1a660.js');
|
|
9
8
|
var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
|
|
10
9
|
var IconButton = require('./IconButton-fad4e4b2.js');
|
|
11
10
|
var clientHints = require('./clientHints-89c01238.js');
|
|
@@ -55,6 +54,7 @@ var useId = require('./useId-6c0eeb27.js');
|
|
|
55
54
|
require('./getFormatParse-54d91cb3.js');
|
|
56
55
|
var maskUtils = require('./maskUtils-64b38149.js');
|
|
57
56
|
var calendarDateUtils = require('./calendarDateUtils-6e7967c6.js');
|
|
57
|
+
var InputDateMask = require('./InputDateMask-d6b1a660.js');
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Component that renders DatePicker either inside a dropdown or sheet; at small screen
|
|
@@ -306,4 +306,4 @@ const InputDatePicker = compat.forwardRef(({ 'aria-describedby': propDescribedBy
|
|
|
306
306
|
});
|
|
307
307
|
|
|
308
308
|
exports.InputDatePicker = InputDatePicker;
|
|
309
|
-
//# sourceMappingURL=InputDatePicker-
|
|
309
|
+
//# sourceMappingURL=InputDatePicker-7eb5931a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputDatePicker-026ea769.js","sources":["../../src/UNSAFE_InputDatePicker/InputDatePickerDropdown.tsx","../../src/UNSAFE_InputDatePicker/useInputDatePickerState.ts","../../src/UNSAFE_InputDatePicker/useInputDatePicker.ts","../../src/UNSAFE_InputDatePicker/InputDatePicker.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { type CloseDetail as DropdownCloseDetail } from '#UNSAFE_Dropdown';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { InputDatePicker } from './InputDatePicker';\nimport { dropdownStyles, userAssistanceStyles } from './themes/InputDatePickerDropdownStyles.css';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { StickyPositioningDropdown } from '#PRIVATE_FormControls';\nimport { SectionedContent } from '#PRIVATE_FormControls';\nimport { type CloseDetail as SheetCloseDetail, Sheet } from '#UNSAFE_Sheet';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { SizeOptions } from '#UNSAFE_Floating/Floating'; \n\ntype StickyPositioningDropdownProps = ComponentProps<typeof StickyPositioningDropdown>;\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype PickedPropsFromInputDatePicker = Pick<\n InputDatePickerProps,\n | 'assistiveText'\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'label'\n | 'messages'\n | 'min'\n | 'max'\n | 'monthAndYearPicker'\n | 'todayButton'\n | 'todayTimeZone'\n | 'userAssistanceDensity'\n | 'value'\n | 'weekDisplay'\n>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<DatePickerProps, 'value' | 'onCommit'>;\ntype PickedPropsFromDropdown = Omit<StickyPositioningDropdownProps, 'onClose'>;\ntype CloseDetail = SheetCloseDetail | DropdownCloseDetail;\n\ntype Props = PickedPropsFromDatePicker &\n PickedPropsFromInputDatePicker &\n PickedPropsFromDropdown &\n TestIdProps & {\n /**\n * Called when the dropdown or sheet is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n };\n\n/**\n * Component that renders DatePicker either inside a dropdown or sheet; at small screen\n * widths, it renders inside a sheet. Additionally, when a dropdown is being shown beneath\n * the component, we also show any user assistance text or messages below the picker\n * because otherwise that information would be obscured from view. When a sheet is being\n * shown, it will always display UA and messages at the bottom of the sheet.\n */\nconst InputDatePickerDropdown = ({\n anchorRef,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isOpen,\n isReadonly,\n label,\n onClose,\n onCommit,\n max,\n messages,\n min,\n monthAndYearPicker,\n testId,\n todayButton,\n todayTimeZone,\n userAssistanceDensity,\n value,\n weekDisplay\n}: Props) => {\n // If the dropdown opens above the component, we don't want to show UA or messages.\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n const handleDropdownPosition = useCallback<\n NonNullable<StickyPositioningDropdownProps['onPosition']>\n >((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n // Reset the flag when the dropdown is closed.\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n if (!isOpen) {\n setDropdownAbove(false);\n }\n }\n\n const sizeOptions: SizeOptions = {\n isMaxWidthAdjusted: false,\n isMaxHeightAdjusted: true\n };\n\n // On mobile phones, the dropdown becomes a sheet.\n const shouldShowSheet = isPhone();\n\n const { datePicker_label } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const datePickerAriaLabel = datePicker_label();\n\n const datePickerMainContent = (\n <DatePicker\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n height={!shouldShowSheet ? 'auto' : undefined}\n onCommit={onCommit}\n max={max}\n min={min}\n // for sheet, we want the width to grow to the width of the sheet, otherwise it will use the theme default.\n maxWidth={shouldShowSheet ? '100%' : undefined}\n width=\"100%\"\n monthAndYearPicker={monthAndYearPicker}\n testId={testId}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n value={value}\n weekDisplay={weekDisplay}\n />\n );\n\n const inlineUserAssistanceFooter =\n isOpen &&\n (!isDropdownAbove || shouldShowSheet) &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink || (messages && messages.length > 0)) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={userAssistanceStyles}>\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n />\n </div>\n </FormFieldContext.Provider>\n ) : undefined;\n\n const contentTestId = testId ? testId + (shouldShowSheet ? '_sheet' : '_dropdown') : undefined;\n\n // The same content is displayed either in a dropdown or sheet: date picker and inline UA.\n // Add styling to the dropdown to enforce a fixed width.\n const dropdownContent = (\n <div class={dropdownStyles}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </div>\n );\n\n const dropdown = shouldShowSheet ? (\n <Sheet initialFocus=\"firstFocusable\" isOpen={isOpen} onClose={onClose}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </Sheet>\n ) : (\n <StickyPositioningDropdown\n anchorRef={anchorRef}\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={onClose}\n onPosition={handleDropdownPosition}\n sizeOptions={sizeOptions}>\n {dropdownContent}\n </StickyPositioningDropdown>\n );\n\n return dropdown;\n};\n\nconst isPhone = () => {\n return getClientHints().deviceType === 'phone';\n};\n\nexport { InputDatePickerDropdown, type CloseDetail };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useReducer } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { isCompleteCalendarDate } from '#utils/UNSAFE_calendarDateUtils';\n\ntype InputDatePickerState = {\n /**\n * If dateValue is a complete date, then completeDateValue is the same as dateValue\n * otherwise is is undefined. We need to maintain separate states because\n * InputDateMask uses CalendarDate, but DatePicker uses CalendarDateRequired.\n * If the user types a partial date then opens the picker, we treat that as\n * no selection. The picker opens to the current month showing today.\n */\n completeDateValue?: CalendarDateRequired;\n\n /**\n * Represents the current date value of the component. The user either selected\n * the date in the picker, or typed it into the date field.\n */\n dateValue?: CalendarDate;\n};\n\ntype DateChangedAction = { type: 'dateChanged'; data?: CalendarDate };\ntype DateResetAction = { type: 'reset'; data?: CalendarDate };\ntype DateSelectedAction = { type: 'dateSelected'; data?: CalendarDateRequired };\ntype InputDatePickerReducerAction = DateChangedAction | DateResetAction | DateSelectedAction;\n\n// If dateVal is a complete date, return it as a CalendarDateRequired\n// otherwise return undefined.\nconst convertToCalendarDateRequired = (dateVal?: CalendarDate) => {\n return !dateVal || !isCompleteCalendarDate(dateVal)\n ? undefined\n : (dateVal as CalendarDateRequired);\n};\n\n// Use a reducer function to manage InputDatePickerState.\nconst inputDatePickerReducer = (\n state: InputDatePickerState,\n action: InputDatePickerReducerAction\n): InputDatePickerState => {\n switch (action.type) {\n case 'dateChanged': {\n return {\n ...state,\n dateValue: action.data,\n completeDateValue: convertToCalendarDateRequired(action.data)\n };\n }\n case 'dateSelected': {\n return { ...state, dateValue: action.data, completeDateValue: action.data };\n }\n case 'reset': {\n return {\n completeDateValue: convertToCalendarDateRequired(action.data),\n dateValue: action.data\n };\n }\n default:\n return state;\n }\n};\n\ntype Props = {\n /**\n * The value of the InputDatePicker, or undefined.\n */\n value?: CalendarDate;\n};\n\n/**\n * useInputDatePickerState calls useReducer to determine the initial state. Any changes to that state\n * are managed by dispatching actions to the reducer function.\n */\nconst useInputDatePickerState = ({ value }: Props) => {\n const [state, dispatch] = useReducer(inputDatePickerReducer, {\n completeDateValue: convertToCalendarDateRequired(value),\n dateValue: value\n });\n\n return { state, dispatch };\n};\n\nexport { useInputDatePickerState };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { calendarDatesAreDifferent } from '#utils/PRIVATE_dayUtils';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { CloseDetail, InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDateMask } from '#UNSAFE_InputDateMask';\nimport { InputDatePicker } from './InputDatePicker';\nimport { useInputDatePickerState } from './useInputDatePickerState';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype IconButtonProps = ComponentProps<typeof IconButton>;\ntype DropdownProps = ComponentProps<typeof InputDatePickerDropdown>;\n\ntype Props = {\n onCommit: InputDatePickerProps['onCommit'];\n onInput: InputDatePickerProps['onInput'];\n value: InputDatePickerProps['value'];\n};\n\n/**\n * Hook that provides handlers and other functionality for InputDatePicker.\n */\nconst useInputDatePicker = ({ onCommit, onInput, value: currentValue }: Props) => {\n // Whether the dropdown is open.\n const [isOpen, setIsOpen] = useState(false);\n\n // Ref to the calendar icon button.\n const iconRef: RefObject<HTMLButtonElement> = useRef<HTMLButtonElement>(null);\n\n // Ref to the InputDateMask component.\n const maskRef: RefObject<HTMLElement> = useRef<HTMLElement>(null);\n\n // Keep track of whether the dropdown was just dismissed from an outside mousedown event.\n const outsideMousedownRef = useRef<boolean>(false);\n const outsideMousedownTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of the last date values passed to onInput and onCommit.\n const lastCommittedDateRef = useRef<CalendarDate | undefined>(currentValue);\n const lastDateRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of the last controlled value passed from the parent, so we can detect a programmatic change.\n const lastValueFromParentRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of whether a date was selected in the date picker.\n const dateSelectedRef = useRef<boolean>(false);\n\n const { state, dispatch } = useInputDatePickerState({ value: currentValue });\n\n // If a new value is being pushed from the parent, and that value differs from\n // the current value of the reducer, then this is a programmatic update\n // and we need to call 'reset' to update the reducer state. Otherwise, the only\n // time the reducer state is updated from the value is on mount.\n if (calendarDatesAreDifferent(lastValueFromParentRef.current, currentValue)) {\n lastValueFromParentRef.current = currentValue;\n if (calendarDatesAreDifferent(currentValue, state.dateValue)) {\n dispatch({ type: 'reset', data: currentValue });\n lastDateRef.current = currentValue;\n lastCommittedDateRef.current = currentValue;\n }\n }\n\n // Reducer updates are async, so wait until the state updates and then call our callbacks.\n useEffect(() => {\n if (calendarDatesAreDifferent(state.dateValue, lastDateRef.current)) {\n onInput({ previousValue: lastDateRef.current, value: state.dateValue });\n lastDateRef.current = state.dateValue;\n }\n if (\n dateSelectedRef.current &&\n calendarDatesAreDifferent(state.dateValue, lastCommittedDateRef.current)\n ) {\n onCommit?.({ previousValue: lastCommittedDateRef.current, value: state.dateValue });\n lastCommittedDateRef.current = state.dateValue;\n dateSelectedRef.current = false;\n }\n }, [onCommit, onInput, state.dateValue]);\n\n // Handle onInput from InputDateMask as segment values are being added or changed in the input field.\n // We wait for the state to update before calling onInput.\n const maskInputHandler = useCallback<InputDateMaskProps['onInput']>(\n (detail: ValueUpdateDetail<CalendarDate>) => {\n dispatch({ type: 'dateChanged', data: detail.value });\n },\n [dispatch]\n );\n\n // Handle onCommit from InputDateMask, which is called when the user presses Enter or the field is blurred.\n const maskCommitHandler = useCallback<NonNullable<InputDateMaskProps['onCommit']>>(() => {\n // If the current date value differs from the last committed value, then call onCommit.\n if (calendarDatesAreDifferent(lastCommittedDateRef.current, state.dateValue)) {\n onCommit?.({ value: state.dateValue, previousValue: lastCommittedDateRef.current });\n lastCommittedDateRef.current = state.dateValue;\n }\n }, [onCommit, state.dateValue]);\n\n // Respond to onAction event from the calendar icon button. Toggles the date picker dropdown.\n const calendarIconActionHandler = useCallback<NonNullable<IconButtonProps['onAction']>>(() => {\n // Only toggle the value of isOpen if we didn't just dismiss the dropdown.\n if (!outsideMousedownRef.current) {\n setIsOpen((prevIsOpen) => !prevIsOpen);\n }\n outsideMousedownRef.current = false;\n }, []);\n\n const dropdownCloseHandler = useCallback<NonNullable<DropdownProps['onClose']>>(\n (detail: CloseDetail) => {\n // Keep track of when the dropdown is closed via outside mousedown, including when the calendar icon\n // is clicked. We need this in order to toggle visibility of the picker and dropdown.\n if (detail.reason === 'outsideMousedown') {\n outsideMousedownRef.current = true;\n clearTimeout(outsideMousedownTimerRef.current);\n\n // Clear the flag after a short delay to ensure the dropdown can be opened again.\n outsideMousedownTimerRef.current = setTimeout(() => {\n outsideMousedownRef.current = false;\n }, 200);\n } else if (detail.reason === 'dismissed' || detail.reason === 'keyboardDismissed') {\n // Focus the calendar icon when the dropdown is closed.\n iconRef.current?.focus();\n }\n setIsOpen(false);\n },\n []\n );\n\n // Handle date selection in the picker.\n // - Updates the value in state.\n // - Closes the dropdown.\n // - Sets focus to the date field.\n const datePickerCommitHandler = useCallback<DatePickerProps['onCommit']>(\n (detail: ValueUpdateDetail<CalendarDateRequired>) => {\n // Set focus to the calendar icon when a date is selected.\n iconRef.current?.focus();\n\n // Set a ref indicating a date was selected.\n dateSelectedRef.current = true;\n dispatch({ type: 'dateSelected', data: detail.value });\n setIsOpen(false);\n },\n [dispatch]\n );\n\n return {\n calendarIconActionHandler,\n datePickerCommitHandler,\n dropdownCloseHandler,\n completeDateValue: state.completeDateValue,\n dateValue: state.dateValue,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n };\n};\n\nexport { useInputDatePicker };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useImperativeHandle, useRef } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { CalendarIcon } from '#PRIVATE_ThemedIcons/CalendarIcon';\nimport {\n CalendarDate,\n CalendarDatePlaceholders,\n InputDateMask,\n InputDateMaskContext\n} from '#UNSAFE_InputDateMask';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { merge } from '#utils/UNSAFE_stringUtils';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { useInputDatePicker } from './useInputDatePicker';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype PickedPropsFromInputDateMask = Pick<\n InputDateMaskProps,\n | 'aria-describedby'\n | 'assistiveText'\n | 'columnSpan'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'isRequired'\n | 'isRequiredShown'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'messages'\n | 'textAlign'\n | 'testId'\n | 'userAssistanceDensity'\n | 'variant'\n>;\n\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<\n DatePickerProps,\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'max'\n | 'min'\n | 'monthAndYearPicker'\n | 'todayTimeZone'\n | 'todayButton'\n | 'weekDisplay'\n>;\n\ntype Props = PickedPropsFromInputDateMask &\n PickedPropsFromDatePicker & {\n /**\n * If specified, overrides the locale specific order of the individual date segments\n * in the date field as well as the locale specific separator. The value of each placeholder\n * is only used when the type is 'literal', otherwise it is replaced with a translated\n * placeholder for month, day, or year. The placeholders must include month, day, and year.\n */\n masks?: CalendarDatePlaceholders;\n\n /**\n * The current display value of the component.\n * This is a CalendarDate, not CalendarDateRequired, because this is a controlled component and\n * the user may type the month, day, and year separately. If a selection is made in the date\n * picker, then the value is a complete date.\n */\n value?: CalendarDate;\n\n /**\n * Callback invoked when the user commits the entered value by blurring or hitting the enter key.\n * It is also called when a selection is made in the date picker.\n */\n onCommit?: (detail: ValueUpdateDetail<CalendarDate>) => void;\n\n /**\n * Callback invoked each time the user changes the value of a segment. For example, if the user\n * types '12' into the month segment, this callback will be called twice to change the month\n * first to '1' and then '12'.\n */\n onInput: (detail: ValueUpdateDetail<CalendarDate>) => void;\n };\n\n/**\n * InputDatePicker allows users to enter or select a single date using a calendar interface.\n */\nexport const InputDatePicker = forwardRef(\n (\n {\n 'aria-describedby': propDescribedBy,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isReadonly,\n label,\n max,\n messages,\n min,\n monthAndYearPicker,\n todayTimeZone,\n todayButton,\n value,\n onCommit,\n onInput,\n testId,\n userAssistanceDensity: propUserAssistanceDensity,\n weekDisplay,\n ...dateMaskProps\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const {\n calendarIconActionHandler,\n datePickerCommitHandler,\n completeDateValue,\n dateValue,\n dropdownCloseHandler,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n } = useInputDatePicker({\n onCommit,\n onInput,\n value\n });\n\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const { inputDatePicker_selectDate, inputDatePicker_instruction } =\n useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const calendarIconAriaLabel = inputDatePicker_selectDate();\n\n // We need this to determine if UA/messaging should be shown in the dropdown.\n const { userAssistanceDensity: formUserAssistanceDensity } = useFormContext();\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n useImperativeHandle(ref!, () => ({\n focus: () => {\n maskRef.current?.focus();\n },\n blur: () => {\n maskRef.current?.blur();\n }\n }));\n\n const maskFieldInstructionId = useId();\n const maskFieldInstructionText = inputDatePicker_instruction();\n const maskFieldInstruction =\n !isDisabled && !isReadonly ? (\n <HiddenAccessible id={maskFieldInstructionId} isHidden={true}>\n {maskFieldInstructionText}\n </HiddenAccessible>\n ) : undefined;\n const ariaDescribedBy =\n !isDisabled && !isReadonly\n ? merge([propDescribedBy, maskFieldInstructionId])\n : propDescribedBy;\n\n const endContent = (\n <IconButton\n aria-haspopup=\"dialog\"\n aria-label={calendarIconAriaLabel}\n isDisabled={isDisabled}\n ref={iconRef}\n size=\"sm\"\n testId={testId ? testId + '_calendarIcon' : undefined}\n variant=\"ghost\"\n onAction={calendarIconActionHandler}>\n <CalendarIcon />\n </IconButton>\n );\n\n const shouldShowDropdown = isOpen as boolean;\n\n return (\n <>\n <InputDateMaskContext.Provider\n value={{ isDropdownOpen: isOpen, isInputDatePickerParent: true }}>\n <InputDateMask\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n endContent={endContent}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n label={label}\n onCommit={maskCommitHandler}\n onInput={maskInputHandler}\n mainFieldRef={mainFieldRef}\n messages={messages}\n testId={testId}\n ref={maskRef}\n userAssistanceDensity={propUserAssistanceDensity}\n value={dateValue}\n {...dateMaskProps}\n />\n </InputDateMaskContext.Provider>\n\n {maskFieldInstruction}\n\n {shouldShowDropdown && (\n <InputDatePickerDropdown\n anchorRef={mainFieldRef}\n assistiveText={assistiveText}\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isOpen={isOpen}\n label={label}\n onClose={dropdownCloseHandler}\n onCommit={datePickerCommitHandler}\n max={max}\n messages={messages}\n min={min}\n monthAndYearPicker={monthAndYearPicker}\n testId={testId ? testId + '_datePicker' : undefined}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n userAssistanceDensity={userAssistanceDensity}\n value={completeDateValue}\n weekDisplay={weekDisplay}\n />\n )}\n </>\n );\n }\n);\n"],"names":["useState","useCallback","useTranslationBundle","_jsx","DatePicker","FormFieldContext","userAssistanceStyles","InlineUserAssistance","dropdownStyles","SectionedContent","Sheet","StickyPositioningDropdown","getClientHints","isCompleteCalendarDate","useReducer","useRef","calendarDatesAreDifferent","useEffect","forwardRef","useFormContext","useImperativeHandle","useId","HiddenAccessible","merge","IconButton","CalendarIcon","_jsxs","InputDateMask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,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,OAAO,EACZ,qBAAqB,EAAE,yBAAyB,EAChD,KAAK,EAAE,SAAS,EACZ,GAAA,aAAa,GACjB,EAC4B,CAAA,EAE/B,oBAAoB,EAEpB,kBAAkB,KACjBzB,cAAA,CAAC,uBAAuB,EAAA,EACtB,SAAS,EAAE,YAAY,EACvB,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,uBAAuB,EACjC,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,EACR,kBAAkB,EAAE,kBAAkB,EACtC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,EACnD,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,qBAAqB,EAAE,qBAAqB,EAC5C,KAAK,EAAE,iBAAiB,EACxB,WAAW,EAAE,WAAW,EACxB,CAAA,CACH,CACA,EAAA,CAAA,EACH;AACJ,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"InputDatePicker-7eb5931a.js","sources":["../../src/UNSAFE_InputDatePicker/InputDatePickerDropdown.tsx","../../src/UNSAFE_InputDatePicker/useInputDatePickerState.ts","../../src/UNSAFE_InputDatePicker/useInputDatePicker.ts","../../src/UNSAFE_InputDatePicker/InputDatePicker.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { type CloseDetail as DropdownCloseDetail } from '#UNSAFE_Dropdown';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { InputDatePicker } from './InputDatePicker';\nimport { dropdownStyles, userAssistanceStyles } from './themes/InputDatePickerDropdownStyles.css';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { StickyPositioningDropdown } from '#PRIVATE_FormControls';\nimport { SectionedContent } from '#PRIVATE_FormControls';\nimport { type CloseDetail as SheetCloseDetail, Sheet } from '#UNSAFE_Sheet';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { SizeOptions } from '#UNSAFE_Floating/Floating'; \n\ntype StickyPositioningDropdownProps = ComponentProps<typeof StickyPositioningDropdown>;\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype PickedPropsFromInputDatePicker = Pick<\n InputDatePickerProps,\n | 'assistiveText'\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'label'\n | 'messages'\n | 'min'\n | 'max'\n | 'monthAndYearPicker'\n | 'todayButton'\n | 'todayTimeZone'\n | 'userAssistanceDensity'\n | 'value'\n | 'weekDisplay'\n>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<DatePickerProps, 'value' | 'onCommit'>;\ntype PickedPropsFromDropdown = Omit<StickyPositioningDropdownProps, 'onClose'>;\ntype CloseDetail = SheetCloseDetail | DropdownCloseDetail;\n\ntype Props = PickedPropsFromDatePicker &\n PickedPropsFromInputDatePicker &\n PickedPropsFromDropdown &\n TestIdProps & {\n /**\n * Called when the dropdown or sheet is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n };\n\n/**\n * Component that renders DatePicker either inside a dropdown or sheet; at small screen\n * widths, it renders inside a sheet. Additionally, when a dropdown is being shown beneath\n * the component, we also show any user assistance text or messages below the picker\n * because otherwise that information would be obscured from view. When a sheet is being\n * shown, it will always display UA and messages at the bottom of the sheet.\n */\nconst InputDatePickerDropdown = ({\n anchorRef,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isOpen,\n isReadonly,\n label,\n onClose,\n onCommit,\n max,\n messages,\n min,\n monthAndYearPicker,\n testId,\n todayButton,\n todayTimeZone,\n userAssistanceDensity,\n value,\n weekDisplay\n}: Props) => {\n // If the dropdown opens above the component, we don't want to show UA or messages.\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n const handleDropdownPosition = useCallback<\n NonNullable<StickyPositioningDropdownProps['onPosition']>\n >((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n // Reset the flag when the dropdown is closed.\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n if (!isOpen) {\n setDropdownAbove(false);\n }\n }\n\n const sizeOptions: SizeOptions = {\n isMaxWidthAdjusted: false,\n isMaxHeightAdjusted: true\n };\n\n // On mobile phones, the dropdown becomes a sheet.\n const shouldShowSheet = isPhone();\n\n const { datePicker_label } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const datePickerAriaLabel = datePicker_label();\n\n const datePickerMainContent = (\n <DatePicker\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n height={!shouldShowSheet ? 'auto' : undefined}\n onCommit={onCommit}\n max={max}\n min={min}\n // for sheet, we want the width to grow to the width of the sheet, otherwise it will use the theme default.\n maxWidth={shouldShowSheet ? '100%' : undefined}\n width=\"100%\"\n monthAndYearPicker={monthAndYearPicker}\n testId={testId}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n value={value}\n weekDisplay={weekDisplay}\n />\n );\n\n const inlineUserAssistanceFooter =\n isOpen &&\n (!isDropdownAbove || shouldShowSheet) &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink || (messages && messages.length > 0)) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={userAssistanceStyles}>\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n />\n </div>\n </FormFieldContext.Provider>\n ) : undefined;\n\n const contentTestId = testId ? testId + (shouldShowSheet ? '_sheet' : '_dropdown') : undefined;\n\n // The same content is displayed either in a dropdown or sheet: date picker and inline UA.\n // Add styling to the dropdown to enforce a fixed width.\n const dropdownContent = (\n <div class={dropdownStyles}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </div>\n );\n\n const dropdown = shouldShowSheet ? (\n <Sheet initialFocus=\"firstFocusable\" isOpen={isOpen} onClose={onClose}>\n <SectionedContent\n aria-label={datePickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={datePickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </Sheet>\n ) : (\n <StickyPositioningDropdown\n anchorRef={anchorRef}\n initialFocus=\"firstFocusable\"\n isOpen={isOpen}\n onClose={onClose}\n onPosition={handleDropdownPosition}\n sizeOptions={sizeOptions}>\n {dropdownContent}\n </StickyPositioningDropdown>\n );\n\n return dropdown;\n};\n\nconst isPhone = () => {\n return getClientHints().deviceType === 'phone';\n};\n\nexport { InputDatePickerDropdown, type CloseDetail };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useReducer } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { isCompleteCalendarDate } from '#utils/UNSAFE_calendarDateUtils';\n\ntype InputDatePickerState = {\n /**\n * If dateValue is a complete date, then completeDateValue is the same as dateValue\n * otherwise is is undefined. We need to maintain separate states because\n * InputDateMask uses CalendarDate, but DatePicker uses CalendarDateRequired.\n * If the user types a partial date then opens the picker, we treat that as\n * no selection. The picker opens to the current month showing today.\n */\n completeDateValue?: CalendarDateRequired;\n\n /**\n * Represents the current date value of the component. The user either selected\n * the date in the picker, or typed it into the date field.\n */\n dateValue?: CalendarDate;\n};\n\ntype DateChangedAction = { type: 'dateChanged'; data?: CalendarDate };\ntype DateResetAction = { type: 'reset'; data?: CalendarDate };\ntype DateSelectedAction = { type: 'dateSelected'; data?: CalendarDateRequired };\ntype InputDatePickerReducerAction = DateChangedAction | DateResetAction | DateSelectedAction;\n\n// If dateVal is a complete date, return it as a CalendarDateRequired\n// otherwise return undefined.\nconst convertToCalendarDateRequired = (dateVal?: CalendarDate) => {\n return !dateVal || !isCompleteCalendarDate(dateVal)\n ? undefined\n : (dateVal as CalendarDateRequired);\n};\n\n// Use a reducer function to manage InputDatePickerState.\nconst inputDatePickerReducer = (\n state: InputDatePickerState,\n action: InputDatePickerReducerAction\n): InputDatePickerState => {\n switch (action.type) {\n case 'dateChanged': {\n return {\n ...state,\n dateValue: action.data,\n completeDateValue: convertToCalendarDateRequired(action.data)\n };\n }\n case 'dateSelected': {\n return { ...state, dateValue: action.data, completeDateValue: action.data };\n }\n case 'reset': {\n return {\n completeDateValue: convertToCalendarDateRequired(action.data),\n dateValue: action.data\n };\n }\n default:\n return state;\n }\n};\n\ntype Props = {\n /**\n * The value of the InputDatePicker, or undefined.\n */\n value?: CalendarDate;\n};\n\n/**\n * useInputDatePickerState calls useReducer to determine the initial state. Any changes to that state\n * are managed by dispatching actions to the reducer function.\n */\nconst useInputDatePickerState = ({ value }: Props) => {\n const [state, dispatch] = useReducer(inputDatePickerReducer, {\n completeDateValue: convertToCalendarDateRequired(value),\n dateValue: value\n });\n\n return { state, dispatch };\n};\n\nexport { useInputDatePickerState };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport type { CalendarDate, CalendarDateRequired } from '#utils/UNSAFE_calendarDateUtils';\nimport { calendarDatesAreDifferent } from '#utils/PRIVATE_dayUtils';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { CloseDetail, InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDateMask } from '#UNSAFE_InputDateMask';\nimport { InputDatePicker } from './InputDatePicker';\nimport { useInputDatePickerState } from './useInputDatePickerState';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDatePickerProps = ComponentProps<typeof InputDatePicker>;\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype IconButtonProps = ComponentProps<typeof IconButton>;\ntype DropdownProps = ComponentProps<typeof InputDatePickerDropdown>;\n\ntype Props = {\n onCommit: InputDatePickerProps['onCommit'];\n onInput: InputDatePickerProps['onInput'];\n value: InputDatePickerProps['value'];\n};\n\n/**\n * Hook that provides handlers and other functionality for InputDatePicker.\n */\nconst useInputDatePicker = ({ onCommit, onInput, value: currentValue }: Props) => {\n // Whether the dropdown is open.\n const [isOpen, setIsOpen] = useState(false);\n\n // Ref to the calendar icon button.\n const iconRef: RefObject<HTMLButtonElement> = useRef<HTMLButtonElement>(null);\n\n // Ref to the InputDateMask component.\n const maskRef: RefObject<HTMLElement> = useRef<HTMLElement>(null);\n\n // Keep track of whether the dropdown was just dismissed from an outside mousedown event.\n const outsideMousedownRef = useRef<boolean>(false);\n const outsideMousedownTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of the last date values passed to onInput and onCommit.\n const lastCommittedDateRef = useRef<CalendarDate | undefined>(currentValue);\n const lastDateRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of the last controlled value passed from the parent, so we can detect a programmatic change.\n const lastValueFromParentRef = useRef<CalendarDate | undefined>(currentValue);\n\n // Keep track of whether a date was selected in the date picker.\n const dateSelectedRef = useRef<boolean>(false);\n\n const { state, dispatch } = useInputDatePickerState({ value: currentValue });\n\n // If a new value is being pushed from the parent, and that value differs from\n // the current value of the reducer, then this is a programmatic update\n // and we need to call 'reset' to update the reducer state. Otherwise, the only\n // time the reducer state is updated from the value is on mount.\n if (calendarDatesAreDifferent(lastValueFromParentRef.current, currentValue)) {\n lastValueFromParentRef.current = currentValue;\n if (calendarDatesAreDifferent(currentValue, state.dateValue)) {\n dispatch({ type: 'reset', data: currentValue });\n lastDateRef.current = currentValue;\n lastCommittedDateRef.current = currentValue;\n }\n }\n\n // Reducer updates are async, so wait until the state updates and then call our callbacks.\n useEffect(() => {\n if (calendarDatesAreDifferent(state.dateValue, lastDateRef.current)) {\n onInput({ previousValue: lastDateRef.current, value: state.dateValue });\n lastDateRef.current = state.dateValue;\n }\n if (\n dateSelectedRef.current &&\n calendarDatesAreDifferent(state.dateValue, lastCommittedDateRef.current)\n ) {\n onCommit?.({ previousValue: lastCommittedDateRef.current, value: state.dateValue });\n lastCommittedDateRef.current = state.dateValue;\n dateSelectedRef.current = false;\n }\n }, [onCommit, onInput, state.dateValue]);\n\n // Handle onInput from InputDateMask as segment values are being added or changed in the input field.\n // We wait for the state to update before calling onInput.\n const maskInputHandler = useCallback<InputDateMaskProps['onInput']>(\n (detail: ValueUpdateDetail<CalendarDate>) => {\n dispatch({ type: 'dateChanged', data: detail.value });\n },\n [dispatch]\n );\n\n // Handle onCommit from InputDateMask, which is called when the user presses Enter or the field is blurred.\n const maskCommitHandler = useCallback<NonNullable<InputDateMaskProps['onCommit']>>(() => {\n // If the current date value differs from the last committed value, then call onCommit.\n if (calendarDatesAreDifferent(lastCommittedDateRef.current, state.dateValue)) {\n onCommit?.({ value: state.dateValue, previousValue: lastCommittedDateRef.current });\n lastCommittedDateRef.current = state.dateValue;\n }\n }, [onCommit, state.dateValue]);\n\n // Respond to onAction event from the calendar icon button. Toggles the date picker dropdown.\n const calendarIconActionHandler = useCallback<NonNullable<IconButtonProps['onAction']>>(() => {\n // Only toggle the value of isOpen if we didn't just dismiss the dropdown.\n if (!outsideMousedownRef.current) {\n setIsOpen((prevIsOpen) => !prevIsOpen);\n }\n outsideMousedownRef.current = false;\n }, []);\n\n const dropdownCloseHandler = useCallback<NonNullable<DropdownProps['onClose']>>(\n (detail: CloseDetail) => {\n // Keep track of when the dropdown is closed via outside mousedown, including when the calendar icon\n // is clicked. We need this in order to toggle visibility of the picker and dropdown.\n if (detail.reason === 'outsideMousedown') {\n outsideMousedownRef.current = true;\n clearTimeout(outsideMousedownTimerRef.current);\n\n // Clear the flag after a short delay to ensure the dropdown can be opened again.\n outsideMousedownTimerRef.current = setTimeout(() => {\n outsideMousedownRef.current = false;\n }, 200);\n } else if (detail.reason === 'dismissed' || detail.reason === 'keyboardDismissed') {\n // Focus the calendar icon when the dropdown is closed.\n iconRef.current?.focus();\n }\n setIsOpen(false);\n },\n []\n );\n\n // Handle date selection in the picker.\n // - Updates the value in state.\n // - Closes the dropdown.\n // - Sets focus to the date field.\n const datePickerCommitHandler = useCallback<DatePickerProps['onCommit']>(\n (detail: ValueUpdateDetail<CalendarDateRequired>) => {\n // Set focus to the calendar icon when a date is selected.\n iconRef.current?.focus();\n\n // Set a ref indicating a date was selected.\n dateSelectedRef.current = true;\n dispatch({ type: 'dateSelected', data: detail.value });\n setIsOpen(false);\n },\n [dispatch]\n );\n\n return {\n calendarIconActionHandler,\n datePickerCommitHandler,\n dropdownCloseHandler,\n completeDateValue: state.completeDateValue,\n dateValue: state.dateValue,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n };\n};\n\nexport { useInputDatePicker };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useImperativeHandle, useRef } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { CalendarIcon } from '#PRIVATE_ThemedIcons/CalendarIcon';\nimport {\n CalendarDate,\n CalendarDatePlaceholders,\n InputDateMask,\n InputDateMaskContext\n} from '#UNSAFE_InputDateMask';\nimport { DatePicker } from '#UNSAFE_DatePicker';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { IconButton } from '#UNSAFE_IconButton';\nimport { InputDatePickerDropdown } from './InputDatePickerDropdown';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { merge } from '#utils/UNSAFE_stringUtils';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { useInputDatePicker } from './useInputDatePicker';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\n\ntype InputDateMaskProps = ComponentProps<typeof InputDateMask>;\ntype PickedPropsFromInputDateMask = Pick<\n InputDateMaskProps,\n | 'aria-describedby'\n | 'assistiveText'\n | 'columnSpan'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'isRequired'\n | 'isRequiredShown'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'messages'\n | 'textAlign'\n | 'testId'\n | 'userAssistanceDensity'\n | 'variant'\n>;\n\ntype DatePickerProps = ComponentProps<typeof DatePicker>;\ntype PickedPropsFromDatePicker = Pick<\n DatePickerProps,\n | 'dayFormatter'\n | 'daysOutsideMonth'\n | 'max'\n | 'min'\n | 'monthAndYearPicker'\n | 'todayTimeZone'\n | 'todayButton'\n | 'weekDisplay'\n>;\n\ntype Props = PickedPropsFromInputDateMask &\n PickedPropsFromDatePicker & {\n /**\n * If specified, overrides the locale specific order of the individual date segments\n * in the date field as well as the locale specific separator. The value of each placeholder\n * is only used when the type is 'literal', otherwise it is replaced with a translated\n * placeholder for month, day, or year. The placeholders must include month, day, and year.\n */\n masks?: CalendarDatePlaceholders;\n\n /**\n * The current display value of the component.\n * This is a CalendarDate, not CalendarDateRequired, because this is a controlled component and\n * the user may type the month, day, and year separately. If a selection is made in the date\n * picker, then the value is a complete date.\n */\n value?: CalendarDate;\n\n /**\n * Callback invoked when the user commits the entered value by blurring or hitting the enter key.\n * It is also called when a selection is made in the date picker.\n */\n onCommit?: (detail: ValueUpdateDetail<CalendarDate>) => void;\n\n /**\n * Callback invoked each time the user changes the value of a segment. For example, if the user\n * types '12' into the month segment, this callback will be called twice to change the month\n * first to '1' and then '12'.\n */\n onInput: (detail: ValueUpdateDetail<CalendarDate>) => void;\n };\n\n/**\n * InputDatePicker allows users to enter or select a single date using a calendar interface.\n */\nexport const InputDatePicker = forwardRef(\n (\n {\n 'aria-describedby': propDescribedBy,\n assistiveText,\n dayFormatter,\n daysOutsideMonth,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isReadonly,\n label,\n max,\n messages,\n min,\n monthAndYearPicker,\n todayTimeZone,\n todayButton,\n value,\n onCommit,\n onInput,\n testId,\n userAssistanceDensity: propUserAssistanceDensity,\n weekDisplay,\n ...dateMaskProps\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const {\n calendarIconActionHandler,\n datePickerCommitHandler,\n completeDateValue,\n dateValue,\n dropdownCloseHandler,\n iconRef,\n isOpen,\n maskCommitHandler,\n maskInputHandler,\n maskRef\n } = useInputDatePicker({\n onCommit,\n onInput,\n value\n });\n\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const { inputDatePicker_selectDate, inputDatePicker_instruction } =\n useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const calendarIconAriaLabel = inputDatePicker_selectDate();\n\n // We need this to determine if UA/messaging should be shown in the dropdown.\n const { userAssistanceDensity: formUserAssistanceDensity } = useFormContext();\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n useImperativeHandle(ref!, () => ({\n focus: () => {\n maskRef.current?.focus();\n },\n blur: () => {\n maskRef.current?.blur();\n }\n }));\n\n const maskFieldInstructionId = useId();\n const maskFieldInstructionText = inputDatePicker_instruction();\n const maskFieldInstruction =\n !isDisabled && !isReadonly ? (\n <HiddenAccessible id={maskFieldInstructionId} isHidden={true}>\n {maskFieldInstructionText}\n </HiddenAccessible>\n ) : undefined;\n const ariaDescribedBy =\n !isDisabled && !isReadonly\n ? merge([propDescribedBy, maskFieldInstructionId])\n : propDescribedBy;\n\n const endContent = (\n <IconButton\n aria-haspopup=\"dialog\"\n aria-label={calendarIconAriaLabel}\n isDisabled={isDisabled}\n ref={iconRef}\n size=\"sm\"\n testId={testId ? testId + '_calendarIcon' : undefined}\n variant=\"ghost\"\n onAction={calendarIconActionHandler}>\n <CalendarIcon />\n </IconButton>\n );\n\n const shouldShowDropdown = isOpen as boolean;\n\n return (\n <>\n <InputDateMaskContext.Provider\n value={{ isDropdownOpen: isOpen, isInputDatePickerParent: true }}>\n <InputDateMask\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n endContent={endContent}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n label={label}\n onCommit={maskCommitHandler}\n onInput={maskInputHandler}\n mainFieldRef={mainFieldRef}\n messages={messages}\n testId={testId}\n ref={maskRef}\n userAssistanceDensity={propUserAssistanceDensity}\n value={dateValue}\n {...dateMaskProps}\n />\n </InputDateMaskContext.Provider>\n\n {maskFieldInstruction}\n\n {shouldShowDropdown && (\n <InputDatePickerDropdown\n anchorRef={mainFieldRef}\n assistiveText={assistiveText}\n dayFormatter={dayFormatter}\n daysOutsideMonth={daysOutsideMonth}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isOpen={isOpen}\n label={label}\n onClose={dropdownCloseHandler}\n onCommit={datePickerCommitHandler}\n max={max}\n messages={messages}\n min={min}\n monthAndYearPicker={monthAndYearPicker}\n testId={testId ? testId + '_datePicker' : undefined}\n todayTimeZone={todayTimeZone}\n todayButton={todayButton}\n userAssistanceDensity={userAssistanceDensity}\n value={completeDateValue}\n weekDisplay={weekDisplay}\n />\n )}\n </>\n );\n }\n);\n"],"names":["useState","useCallback","useTranslationBundle","_jsx","DatePicker","FormFieldContext","userAssistanceStyles","InlineUserAssistance","dropdownStyles","SectionedContent","Sheet","StickyPositioningDropdown","getClientHints","isCompleteCalendarDate","useReducer","useRef","calendarDatesAreDifferent","useEffect","forwardRef","useFormContext","useImperativeHandle","useId","HiddenAccessible","merge","IconButton","CalendarIcon","_jsxs","InputDateMaskContext","InputDateMask"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA;;;;;;AAMG;AACH,MAAM,uBAAuB,GAAG,CAAC,EAC/B,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,UAAU,EACV,MAAM,EACN,UAAU,EACV,KAAK,EACL,OAAO,EACP,QAAQ,EACR,GAAG,EACH,QAA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uB,EAAA,EACtB,SAAS,EAAE,YAAY,EACvB,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,uBAAuB,EACjC,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,EACR,kBAAkB,EAAE,kBAAkB,EACtC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,EACnD,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,qBAAqB,EAAE,qBAAqB,EAC5C,KAAK,EAAE,iBAAiB,EACxB,WAAW,EAAE,WAAW,EACxB,CAAA,CACH,CACA,EAAA,CAAA,EACH;AACJ,CAAC;;;;"}
|
|
@@ -12,7 +12,7 @@ var useCollectionFocusRing = require('./useCollectionFocusRing-8e16f3d9.js');
|
|
|
12
12
|
var useCurrentKey = require('./useCurrentKey-186268c7.js');
|
|
13
13
|
var compat = require('preact/compat');
|
|
14
14
|
var useTestId = require('./useTestId-1fac9baa.js');
|
|
15
|
-
var
|
|
15
|
+
var BaseNavigationListItem = require('./BaseNavigationListItem-709591de.js');
|
|
16
16
|
|
|
17
17
|
/*TODO: JET-58534. Create a hook to share some logic between navlist and tabbar. Hook will be used inside this one. */
|
|
18
18
|
function useNavigationList({ containerRef, selection, onRemove, onSelectionChange, children }) {
|
|
@@ -133,7 +133,7 @@ const NavigationList = compat.forwardRef(({ children, selection, onSelectionChan
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}));
|
|
136
|
-
return (jsxRuntime.jsx("ul", { "aria-label": ariaLabel, "aria-labelledby": ariaLabelLedBy, role: "tablist", ref: containerRef, "aria-orientation": 'vertical', tabIndex: 0, "aria-activedescendant": currentKey ? navigationListItemPrefix + currentKey : '', ...mergeProps.mergeProps(eventProps, containerHandlers), ...testIdProps, class: navigationListClass, children: jsxRuntime.jsx(
|
|
136
|
+
return (jsxRuntime.jsx("ul", { "aria-label": ariaLabel, "aria-labelledby": ariaLabelLedBy, role: "tablist", ref: containerRef, "aria-orientation": 'vertical', tabIndex: 0, "aria-activedescendant": currentKey ? navigationListItemPrefix + currentKey : '', ...mergeProps.mergeProps(eventProps, containerHandlers), ...testIdProps, class: navigationListClass, children: jsxRuntime.jsx(BaseNavigationListItem.NavigationListContext.Provider, { value: {
|
|
137
137
|
selection,
|
|
138
138
|
onSelectionChange,
|
|
139
139
|
onCurrentKeyChange,
|
|
@@ -144,5 +144,10 @@ const NavigationList = compat.forwardRef(({ children, selection, onSelectionChan
|
|
|
144
144
|
}, children: children }) }));
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
+
function NavigationListItem({ itemKey, label, badge, metadata, severity }) {
|
|
148
|
+
return (jsxRuntime.jsx(BaseNavigationListItem.BaseNavigationListItem, { itemKey: itemKey, label: label, badge: badge, metadata: metadata, severity: severity }));
|
|
149
|
+
}
|
|
150
|
+
|
|
147
151
|
exports.NavigationList = NavigationList;
|
|
148
|
-
|
|
152
|
+
exports.NavigationListItem = NavigationListItem;
|
|
153
|
+
//# sourceMappingURL=NavigationListItem-9b3d3258.js.map
|