@oracle/oraclejet-preact 19.0.3 → 19.0.4
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/{DatePicker-266c4b4e.js → DatePicker-568944a7.js} +2 -2
- package/amd/{DatePicker-266c4b4e.js.map → DatePicker-568944a7.js.map} +1 -1
- package/amd/{InputDatePicker-a1eea599.js → InputDatePicker-c5ceeb44.js} +2 -2
- package/amd/{InputDatePicker-a1eea599.js.map → InputDatePicker-c5ceeb44.js.map} +1 -1
- package/amd/MaxLengthCounter-cadff1c7.js +2 -0
- package/amd/MaxLengthCounter-cadff1c7.js.map +1 -0
- package/amd/{MonthView-48d59de4.js → MonthView-d2f8f3f1.js} +2 -2
- package/amd/{MonthView-48d59de4.js.map → MonthView-d2f8f3f1.js.map} +1 -1
- package/amd/PRIVATE_MonthView.js +1 -1
- package/amd/PRIVATE_MonthYearGridView.js +1 -1
- package/amd/PRIVATE_StyledDatePickerButton.js +1 -1
- package/amd/StyledDatePickerButton-5332fad7.js +2 -0
- package/amd/StyledDatePickerButton-5332fad7.js.map +1 -0
- package/amd/StyledDatePickerButtonStyles.styles.css +17 -0
- package/amd/TextArea-dfd1f679.js +2 -0
- package/amd/TextArea-dfd1f679.js.map +1 -0
- package/amd/TextAreaAutosize-cbdc9644.js +2 -0
- package/amd/{TextAreaAutosize-3cf8e06c.js.map → TextAreaAutosize-cbdc9644.js.map} +1 -1
- package/amd/Theme-redwood/theme.css +159 -159
- package/amd/Theme-stable/theme.css +183 -183
- package/amd/UNSAFE_DatePicker.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/{YearsGridView-eae67964.js → YearsGridView-f5c6d70d.js} +2 -2
- package/amd/{YearsGridView-eae67964.js.map → YearsGridView-f5c6d70d.js.map} +1 -1
- package/cjs/{BaseButton-acda944a.js → BaseButton-d48ce138.js} +2 -2
- package/cjs/{BaseButton-acda944a.js.map → BaseButton-d48ce138.js.map} +1 -1
- package/cjs/BaseCardView-43379b36.js +6 -6
- package/cjs/BaseRichSelection-9b1ada4d.js +9 -9
- package/cjs/BaseSwatchView-3d9dbf9a.js +2 -2
- package/cjs/{Button-170bea0b.js → Button-fd334204.js} +2 -2
- package/cjs/{Button-170bea0b.js.map → Button-fd334204.js.map} +1 -1
- package/cjs/ButtonSet-a1f0f8b9.js +2 -2
- package/cjs/ButtonSetButton-97ceb927.js +1 -1
- package/cjs/ButtonSetIconButton-5bad7aa5.js +4 -4
- package/cjs/{Center-8b52b781.js → Center-1098ae1b.js} +2 -2
- package/cjs/{Center-8b52b781.js.map → Center-1098ae1b.js.map} +1 -1
- package/cjs/{Chart-55c4cd8f.js → Chart-c07adbbd.js} +12 -12
- package/cjs/{Chart-55c4cd8f.js.map → Chart-c07adbbd.js.map} +1 -1
- package/cjs/CheckboxControl-45f11f7e.js +6 -6
- package/cjs/CheckboxRadioField-c707f81f.js +6 -6
- package/cjs/CheckboxRadioLabelValueLayout-e9110e5f.js +1 -1
- package/cjs/Chip-6d729286.js +1 -1
- package/cjs/ClearIcon-d2d959a1.js +1 -1
- package/cjs/CollapseIcon-7612943e.js +1 -1
- package/cjs/ColorPalette-ea5e1bed.js +2 -2
- package/cjs/{ColorPicker-30ee6033.js → ColorPicker-e3c74415.js} +3 -3
- package/cjs/{ColorPicker-30ee6033.js.map → ColorPicker-e3c74415.js.map} +1 -1
- package/cjs/ColorSwatch-590183e3.js +4 -4
- package/cjs/{CompactLabelAssistance-eb32e7f5.js → CompactLabelAssistance-d5bbeb5e.js} +6 -6
- package/cjs/{CompactLabelAssistance-eb32e7f5.js.map → CompactLabelAssistance-d5bbeb5e.js.map} +1 -1
- package/cjs/CompactUserAssistance-58a6899d.js +5 -5
- package/cjs/ComponentMessageContainer-1b9e8036.js +4 -4
- package/cjs/{DatePicker-0e143849.js → DatePicker-b46146c5.js} +8 -8
- package/cjs/{DatePicker-0e143849.js.map → DatePicker-b46146c5.js.map} +1 -1
- package/cjs/DatePickerHeader-305234ff.js +3 -3
- package/cjs/{Dialog-152ab89d.js → Dialog-be4d8900.js} +8 -8
- package/cjs/{Dialog-152ab89d.js.map → Dialog-be4d8900.js.map} +1 -1
- package/cjs/DirectionalCollapseArrowIcon-c6d6750f.js +1 -1
- package/cjs/DirectionalExpandArrowIcon-33ebe393.js +1 -1
- package/cjs/{Dropdown-08111f9d.js → Dropdown-b2579045.js} +6 -6
- package/cjs/{Dropdown-08111f9d.js.map → Dropdown-b2579045.js.map} +1 -1
- package/cjs/{EmbeddedIconButton-88b1a5cd.js → EmbeddedIconButton-79de5690.js} +2 -2
- package/cjs/{EmbeddedIconButton-88b1a5cd.js.map → EmbeddedIconButton-79de5690.js.map} +1 -1
- package/cjs/{EnvironmentProvider-5a401f32.js → EnvironmentProvider-8696a5b8.js} +3 -3
- package/cjs/{EnvironmentProvider-5a401f32.js.map → EnvironmentProvider-8696a5b8.js.map} +1 -1
- package/cjs/{Expander-96ce2888.js → Expander-01af6642.js} +2 -2
- package/cjs/{Expander-96ce2888.js.map → Expander-01af6642.js.map} +1 -1
- package/cjs/{Flex-a6d1c038.js → Flex-6ca216a7.js} +2 -2
- package/cjs/{Flex-a6d1c038.js.map → Flex-6ca216a7.js.map} +1 -1
- package/cjs/{Floating-a360e16a.js → Floating-5a704a27.js} +4 -4
- package/cjs/{Floating-a360e16a.js.map → Floating-5a704a27.js.map} +1 -1
- package/cjs/{Grid-44ca9332.js → Grid-57fb11dc.js} +2 -2
- package/cjs/{Grid-44ca9332.js.map → Grid-57fb11dc.js.map} +1 -1
- package/cjs/{Gridlines-7e6b9ff9.js → Gridlines-3bdce0b7.js} +2 -2
- package/cjs/{Gridlines-7e6b9ff9.js.map → Gridlines-3bdce0b7.js.map} +1 -1
- package/cjs/GroupLoadingIndicator-19c221cd.js +1 -1
- package/cjs/{HighlightText-188f85a6.js → HighlightText-e622ae4f.js} +2 -2
- package/cjs/{HighlightText-188f85a6.js.map → HighlightText-e622ae4f.js.map} +1 -1
- package/cjs/Icon-bc05e7bd.js +3 -3
- package/cjs/IconButton-7ebfcb64.js +4 -4
- package/cjs/IconSwitchButton-84e07848.js +4 -4
- package/cjs/IconToggleButton-5cb32026.js +4 -4
- package/cjs/{IconUserAssistance-65d6d06c.js → IconUserAssistance-b0f33cac.js} +3 -3
- package/cjs/{IconUserAssistance-65d6d06c.js.map → IconUserAssistance-b0f33cac.js.map} +1 -1
- package/cjs/InlineHelp-8097a102.js +1 -1
- package/cjs/InlineUserAssistance-74680664.js +5 -5
- package/cjs/InputDateMask-8a4b2660.js +7 -7
- package/cjs/Label-670472a7.js +8 -8
- package/cjs/LabelValueLayout-efc94d8e.js +1 -1
- package/cjs/{Layer-c8668ea4.js → Layer-28b1afce.js} +3 -3
- package/cjs/{Layer-c8668ea4.js.map → Layer-28b1afce.js.map} +1 -1
- package/cjs/{LayerHost-f1a1533f.js → LayerHost-aee0e070.js} +2 -2
- package/cjs/{LayerHost-f1a1533f.js.map → LayerHost-aee0e070.js.map} +1 -1
- package/cjs/{LayerManager-2a80307c.js → LayerManager-fc4df14f.js} +2 -2
- package/cjs/{LayerManager-2a80307c.js.map → LayerManager-fc4df14f.js.map} +1 -1
- package/cjs/Link-33dcecc2.js +1 -1
- package/cjs/List-d4904e56.js +5 -5
- package/cjs/{LiveRegion-a2c839ea.js → LiveRegion-e410e187.js} +2 -2
- package/cjs/{LiveRegion-a2c839ea.js.map → LiveRegion-e410e187.js.map} +1 -1
- package/cjs/MaxLengthCounter-39055ba1.js +27 -0
- package/cjs/MaxLengthCounter-39055ba1.js.map +1 -0
- package/cjs/{MaxLengthLiveRegion-cf615038.js → MaxLengthLiveRegion-bfb22b29.js} +3 -3
- package/cjs/{MaxLengthLiveRegion-cf615038.js.map → MaxLengthLiveRegion-bfb22b29.js.map} +1 -1
- package/cjs/Message-4dfcf417.js +2 -2
- package/cjs/{MessageLayer-29034032.js → MessageLayer-0b0feb51.js} +6 -6
- package/cjs/{MessageLayer-29034032.js.map → MessageLayer-0b0feb51.js.map} +1 -1
- package/cjs/MessagesManager-5f1e36da.js +3 -3
- package/cjs/{Modal-b00b9f5e.js → Modal-0cea796e.js} +4 -4
- package/cjs/{Modal-b00b9f5e.js.map → Modal-0cea796e.js.map} +1 -1
- package/cjs/{MonthView-cd65e44a.js → MonthView-044bcacb.js} +5 -5
- package/cjs/{MonthView-cd65e44a.js.map → MonthView-044bcacb.js.map} +1 -1
- package/cjs/{NavigationListItem-24abe2ab.js → NavigationListItem-d63c4cf7.js} +6 -19
- package/cjs/{NavigationListItem-24abe2ab.js.map → NavigationListItem-d63c4cf7.js.map} +1 -1
- package/cjs/{NavigationListLinkItem-35f33123.js → NavigationListLinkItem-0931af4d.js} +5 -5
- package/cjs/{NavigationListLinkItem-35f33123.js.map → NavigationListLinkItem-0931af4d.js.map} +1 -1
- package/cjs/NumberInputText-565c84b9.js +6 -6
- package/cjs/{OverflowTabBarItem-c8809159.js → OverflowTabBarItem-2bfac671.js} +10 -10
- package/cjs/{OverflowTabBarItem-c8809159.js.map → OverflowTabBarItem-2bfac671.js.map} +1 -1
- package/cjs/PRIVATE_BaseCardView.js +22 -22
- package/cjs/PRIVATE_BaseSwatchView.js +5 -5
- package/cjs/PRIVATE_Chart.js +40 -40
- package/cjs/PRIVATE_CheckboxControl.js +26 -26
- package/cjs/PRIVATE_CheckboxRadioField.js +28 -28
- package/cjs/PRIVATE_ClearIcon.js +19 -19
- package/cjs/PRIVATE_ContainerDiagram.js +30 -30
- package/cjs/PRIVATE_DatePickerHeader.js +20 -20
- package/cjs/PRIVATE_DatePickerLayout.js +4 -4
- package/cjs/PRIVATE_EmbeddedIconButton.js +6 -6
- package/cjs/PRIVATE_Expander.js +67 -67
- package/cjs/PRIVATE_FormControls.js +21 -21
- package/cjs/PRIVATE_IconSwitchButton.js +17 -17
- package/cjs/PRIVATE_Icons/CheckboxCrossed.js +16 -16
- package/cjs/PRIVATE_Icons/CheckboxMixed.js +16 -16
- package/cjs/PRIVATE_Icons/CheckboxOff.js +16 -16
- package/cjs/PRIVATE_Icons/CheckboxOn.js +16 -16
- package/cjs/PRIVATE_Icons/DragV.js +16 -16
- package/cjs/PRIVATE_Icons/None.js +16 -16
- package/cjs/PRIVATE_List.js +20 -20
- package/cjs/PRIVATE_Message.js +20 -20
- package/cjs/PRIVATE_MessageLayer.js +12 -12
- package/cjs/PRIVATE_MonthView.js +8 -9
- package/cjs/PRIVATE_MonthView.js.map +1 -1
- package/cjs/PRIVATE_MonthYearGridView.js +8 -9
- package/cjs/PRIVATE_MonthYearGridView.js.map +1 -1
- package/cjs/PRIVATE_PlotArea.js +4 -4
- package/cjs/PRIVATE_RevealToggleIcon.js +18 -18
- package/cjs/PRIVATE_RichSelectionCommon.js +29 -29
- package/cjs/PRIVATE_SelectCommon.js +32 -32
- package/cjs/PRIVATE_StyledCard.js +4 -4
- package/cjs/PRIVATE_StyledCheckbox.js +16 -16
- package/cjs/PRIVATE_StyledDatePickerButton.js +1 -2
- package/cjs/PRIVATE_StyledDatePickerButton.js.map +1 -1
- package/cjs/PRIVATE_SwatchFlexView.js +5 -5
- package/cjs/PRIVATE_Table.js +42 -42
- package/cjs/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
- package/cjs/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
- package/cjs/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
- package/cjs/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/None.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
- package/cjs/PRIVATE_TimeComponent.js +19 -19
- package/cjs/PRIVATE_VisOverview.js +16 -16
- package/cjs/PRIVATE_VisTabularDatatip.js +4 -4
- package/cjs/{Popup-91e33a1d.js → Popup-080e8f67.js} +11 -11
- package/cjs/{Popup-91e33a1d.js.map → Popup-080e8f67.js.map} +1 -1
- package/cjs/ProgressButtonLabelLayout-689a7a8d.js +3 -3
- package/cjs/{ProgressCircle-fb0abf95.js → ProgressCircle-dcd9f3e3.js} +2 -2
- package/cjs/{ProgressCircle-fb0abf95.js.map → ProgressCircle-dcd9f3e3.js.map} +1 -1
- package/cjs/ReadonlyTextFieldInput-00b3e796.js +1 -1
- package/cjs/RevealToggleIcon-98b44cc6.js +1 -1
- package/cjs/{SectionedContent-ac2d4bd2.js → SectionedContent-bece051b.js} +5 -5
- package/cjs/{SectionedContent-ac2d4bd2.js.map → SectionedContent-bece051b.js.map} +1 -1
- package/cjs/SelectMenuGroupContext-ae5e1373.js +7 -7
- package/cjs/SelectMobileFieldInput-33427c18.js +8 -8
- package/cjs/Selector-9b72f861.js +1 -1
- package/cjs/{SelectorAll-c497a428.js → SelectorAll-c7d87dc7.js} +7 -7
- package/cjs/{SelectorAll-c497a428.js.map → SelectorAll-c7d87dc7.js.map} +1 -1
- package/cjs/{Sheet-65ae604e.js → Sheet-44b25f1d.js} +4 -4
- package/cjs/{Sheet-65ae604e.js.map → Sheet-44b25f1d.js.map} +1 -1
- package/cjs/{SortControl-7be650eb.js → SortControl-5ca85c6b.js} +4 -4
- package/cjs/{SortControl-7be650eb.js.map → SortControl-5ca85c6b.js.map} +1 -1
- package/cjs/{StyledCard-acec9285.js → StyledCard-1767aa5b.js} +2 -2
- package/cjs/{StyledCard-acec9285.js.map → StyledCard-1767aa5b.js.map} +1 -1
- package/cjs/{StyledDatePickerButton-128e2a5d.js → StyledDatePickerButton-03b7e281.js} +2 -8
- package/cjs/StyledDatePickerButton-03b7e281.js.map +1 -0
- package/cjs/StyledDatePickerButtonStyles.styles.css +17 -0
- package/cjs/{StyledLabelValueLayout-dd89f379.js → StyledLabelValueLayout-d7705c97.js} +2 -2
- package/cjs/{StyledLabelValueLayout-dd89f379.js.map → StyledLabelValueLayout-d7705c97.js.map} +1 -1
- package/cjs/StyledTextField-d8c8a3bf.js +5 -5
- package/cjs/Submenu-416179ad.js +1 -1
- package/cjs/{TabBar-afd26c75.js → TabBar-1885c9c5.js} +9 -7
- package/cjs/{TabBar-afd26c75.js.map → TabBar-1885c9c5.js.map} +1 -1
- package/cjs/TabBarContextMenu-42fdbda0.js +2 -2
- package/cjs/TabBarLayout-b74e2f96.js +1 -1
- package/cjs/{TabBarLinkItem-4e4f8da0.js → TabBarLinkItem-662d0705.js} +2 -2
- package/cjs/{TabBarLinkItem-4e4f8da0.js.map → TabBarLinkItem-662d0705.js.map} +1 -1
- package/cjs/{Table-0bca32d4.js → Table-49575528.js} +13 -13
- package/cjs/{Table-0bca32d4.js.map → Table-49575528.js.map} +1 -1
- package/cjs/TextField-71dba81e.js +3 -3
- package/cjs/Theme-redwood/theme.css +241 -241
- package/cjs/Theme-stable/theme.css +221 -221
- package/cjs/TimeComponentCanvas2D-471abe04.js +6 -6
- package/cjs/ToggleButton-14cd62ef.js +1 -1
- package/cjs/TruncatingText-82495650.js +1 -1
- package/cjs/UNSAFE_ActionCard.js +3 -3
- package/cjs/UNSAFE_BarChart.js +41 -41
- package/cjs/UNSAFE_BareButton.js +2 -2
- package/cjs/UNSAFE_BaseButton.js +5 -5
- package/cjs/UNSAFE_Button.js +6 -6
- package/cjs/UNSAFE_ButtonSet.js +4 -4
- package/cjs/UNSAFE_ButtonSetButton.js +5 -5
- package/cjs/UNSAFE_ButtonSetIconButton.js +17 -17
- package/cjs/UNSAFE_ButtonSetItem.js +18 -18
- package/cjs/UNSAFE_ButtonSetMultiple.js +4 -4
- package/cjs/UNSAFE_ButtonSetSingle.js +4 -4
- package/cjs/UNSAFE_Card.js +4 -4
- package/cjs/UNSAFE_CardFlexView.js +22 -22
- package/cjs/UNSAFE_CardGridView.js +22 -22
- package/cjs/UNSAFE_Center.js +5 -5
- package/cjs/UNSAFE_Checkbox.js +26 -26
- package/cjs/UNSAFE_CheckboxItem.js +28 -28
- package/cjs/UNSAFE_CheckboxRadioField.js +4 -4
- package/cjs/UNSAFE_CheckboxSet.js +27 -27
- package/cjs/UNSAFE_Chip.js +2 -2
- package/cjs/UNSAFE_Collapsible.js +18 -18
- package/cjs/UNSAFE_ColorPalette.js +19 -19
- package/cjs/UNSAFE_ColorPicker.js +21 -21
- package/cjs/UNSAFE_ColorSwatch.js +17 -17
- package/cjs/UNSAFE_ComboChart.js +41 -41
- package/cjs/UNSAFE_ComponentMessage.js +20 -20
- package/cjs/UNSAFE_ConveyorBelt.js +18 -18
- package/cjs/UNSAFE_DatePicker.js +28 -28
- package/cjs/UNSAFE_Diagram.js +30 -30
- package/cjs/UNSAFE_Dialog.js +23 -23
- package/cjs/UNSAFE_DragHandle.js +17 -17
- package/cjs/UNSAFE_DrawerLayout.js +12 -12
- package/cjs/UNSAFE_DrawerPopup.js +12 -12
- package/cjs/UNSAFE_Dropdown.js +15 -15
- package/cjs/UNSAFE_Environment.js +4 -4
- package/cjs/UNSAFE_ExpandableList.js +25 -25
- package/cjs/UNSAFE_FilePicker.js +4 -4
- package/cjs/UNSAFE_FlatTreeView.js +52 -52
- package/cjs/UNSAFE_Flex.js +4 -4
- package/cjs/UNSAFE_Floating.js +11 -11
- package/cjs/UNSAFE_FormLayout.js +2 -2
- package/cjs/UNSAFE_Gantt.js +23 -23
- package/cjs/UNSAFE_Grid.js +4 -4
- package/cjs/UNSAFE_HighlightText.js +4 -4
- package/cjs/UNSAFE_Icon.js +16 -16
- package/cjs/UNSAFE_IconButton.js +17 -17
- package/cjs/UNSAFE_IconMenuButton.js +27 -27
- package/cjs/UNSAFE_IconProgressButton.js +20 -20
- package/cjs/UNSAFE_IconToggleButton.js +17 -17
- package/cjs/UNSAFE_Indexer.js +6 -6
- package/cjs/UNSAFE_InlineSelectSingle.js +33 -33
- package/cjs/UNSAFE_InputColor.js +34 -34
- package/cjs/UNSAFE_InputDateMask.js +27 -27
- package/cjs/UNSAFE_InputDatePicker.js +127 -127
- package/cjs/UNSAFE_InputPassword.js +27 -27
- package/cjs/UNSAFE_InputSensitiveText.js +28 -28
- package/cjs/UNSAFE_InputText.js +29 -29
- package/cjs/UNSAFE_InputTimeMask.js +27 -27
- package/cjs/UNSAFE_Label.js +26 -26
- package/cjs/UNSAFE_LabelValueLayout.js +4 -4
- package/cjs/UNSAFE_LabelledLink.js +28 -28
- package/cjs/UNSAFE_Layer.js +8 -8
- package/cjs/UNSAFE_Legend.js +29 -29
- package/cjs/UNSAFE_LineAreaChart.js +41 -41
- package/cjs/UNSAFE_Link.js +2 -2
- package/cjs/UNSAFE_ListItemLayout.js +4 -4
- package/cjs/UNSAFE_ListView.js +30 -30
- package/cjs/UNSAFE_LiveRegion.js +4 -4
- package/cjs/UNSAFE_Menu.js +28 -28
- package/cjs/UNSAFE_MenuButton.js +27 -27
- package/cjs/UNSAFE_MessageBanner.js +20 -20
- package/cjs/UNSAFE_MessageToast.js +22 -22
- package/cjs/UNSAFE_MeterBar.js +16 -16
- package/cjs/UNSAFE_MeterCircle.js +17 -17
- package/cjs/UNSAFE_Modal.js +9 -9
- package/cjs/UNSAFE_NavigationList.js +37 -37
- package/cjs/UNSAFE_NavigationListCommon.js +21 -21
- package/cjs/UNSAFE_NumberInputText.js +29 -29
- package/cjs/UNSAFE_OverflowTabBar.js +62 -62
- package/cjs/UNSAFE_PictoChart.js +27 -27
- package/cjs/UNSAFE_PieChart.js +28 -28
- package/cjs/UNSAFE_Popup.js +19 -19
- package/cjs/UNSAFE_ProgressBar.js +4 -4
- package/cjs/UNSAFE_ProgressButton.js +20 -20
- package/cjs/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/cjs/UNSAFE_ProgressCircle.js +4 -4
- package/cjs/UNSAFE_RadioItem.js +26 -26
- package/cjs/UNSAFE_RadioSet.js +27 -27
- package/cjs/UNSAFE_RatingGauge.js +18 -18
- package/cjs/UNSAFE_ReorderableTabBar.js +56 -35
- package/cjs/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/cjs/UNSAFE_RichCheckboxSet.js +29 -29
- package/cjs/UNSAFE_RichRadioSet.js +29 -29
- package/cjs/UNSAFE_RichSelectionItem.js +31 -31
- package/cjs/UNSAFE_ScatterChart.js +41 -41
- package/cjs/UNSAFE_SectionalLegend.js +29 -29
- package/cjs/UNSAFE_SelectMultiple.js +36 -36
- package/cjs/UNSAFE_SelectSingle.js +35 -35
- package/cjs/UNSAFE_SelectionCard.js +4 -4
- package/cjs/UNSAFE_Selector.js +16 -16
- package/cjs/UNSAFE_SelectorAll.js +20 -20
- package/cjs/UNSAFE_Sheet.js +13 -13
- package/cjs/UNSAFE_SortControl.js +63 -63
- package/cjs/UNSAFE_SplitMenuButton.js +27 -27
- package/cjs/UNSAFE_TabBar.js +63 -63
- package/cjs/UNSAFE_TabBarCommon.js +78 -78
- package/cjs/UNSAFE_TabBarMixed.js +62 -62
- package/cjs/UNSAFE_TableView.js +42 -42
- package/cjs/UNSAFE_TagCloud.js +28 -28
- package/cjs/UNSAFE_TextArea.js +228 -118
- package/cjs/UNSAFE_TextArea.js.map +1 -1
- package/cjs/UNSAFE_TextAreaAutosize.js +30 -30
- package/cjs/UNSAFE_TextAreaAutosize.js.map +1 -1
- package/cjs/UNSAFE_TextField.js +20 -20
- package/cjs/UNSAFE_ToggleButton.js +5 -5
- package/cjs/UNSAFE_Toolbar.js +4 -4
- package/cjs/UNSAFE_Train.js +17 -17
- package/cjs/UNSAFE_TruncatingBadge.js +17 -17
- package/cjs/UNSAFE_TruncatingText.js +17 -17
- package/cjs/UNSAFE_UserAssistance.js +27 -27
- package/cjs/UNSAFE_View.js +7 -7
- package/cjs/UNSAFE_VirtualizedListView.js +20 -20
- package/cjs/UNSAFE_VisProgressiveLoader.js +5 -5
- package/cjs/UNSAFE_VisStatusMessage.js +5 -5
- package/cjs/UNSAFE_WindowOverlay.js +4 -4
- package/cjs/{View-251db2a6.js → View-7d9034a7.js} +5 -5
- package/cjs/{View-251db2a6.js.map → View-7d9034a7.js.map} +1 -1
- package/cjs/{VisTabularDatatip-f9ba79d0.js → VisTabularDatatip-9e44a7dd.js} +2 -2
- package/cjs/{VisTabularDatatip-f9ba79d0.js.map → VisTabularDatatip-9e44a7dd.js.map} +1 -1
- package/cjs/{WindowOverlay-5a341d43.js → WindowOverlay-a10f995e.js} +2 -2
- package/cjs/{WindowOverlay-5a341d43.js.map → WindowOverlay-a10f995e.js.map} +1 -1
- package/cjs/{YearsGridView-804c9377.js → YearsGridView-6c18a6df.js} +5 -5
- package/cjs/{YearsGridView-804c9377.js.map → YearsGridView-6c18a6df.js.map} +1 -1
- package/cjs/hoc/PRIVATE_withDirectionIcon.js +4 -4
- package/cjs/hoc/PRIVATE_withThemeIcon.js +3 -3
- package/cjs/hoc/UNSAFE_withThemeProps.js +3 -3
- package/cjs/hooks/PRIVATE_useChartContextMenu.js +25 -25
- package/cjs/hooks/PRIVATE_useChartDatatip.js +14 -14
- package/cjs/hooks/PRIVATE_useChartEvents.js +19 -19
- package/cjs/hooks/PRIVATE_useChartMarquee.js +19 -19
- package/cjs/hooks/PRIVATE_useCssVars.js +7 -7
- package/cjs/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/cjs/hooks/PRIVATE_useDatatip.js +12 -12
- package/cjs/hooks/PRIVATE_useFloating.js +4 -4
- package/cjs/hooks/PRIVATE_useListCommon.js +5 -5
- package/cjs/hooks/PRIVATE_useOutsideMousedown.js +9 -9
- package/cjs/hooks/PRIVATE_useReorderable.js +5 -5
- package/cjs/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/cjs/hooks/PRIVATE_useSelection.js +4 -4
- package/cjs/hooks/PRIVATE_useTabBar.js +26 -26
- package/cjs/hooks/PRIVATE_useTooltipOnTruncation.js +17 -17
- package/cjs/hooks/PRIVATE_useVisContextMenu.js +25 -25
- package/cjs/hooks/PRIVATE_useVisDragModeControls.js +19 -19
- package/cjs/hooks/PRIVATE_useVisEvents.js +4 -4
- package/cjs/hooks/PRIVATE_useVisMeterEvents.js +14 -14
- package/cjs/hooks/PRIVATE_useVisSelection.js +15 -15
- package/cjs/hooks/UNSAFE_useBareButton.js +2 -2
- package/cjs/hooks/UNSAFE_useColorScheme.js +3 -3
- package/cjs/hooks/UNSAFE_useCurrentBgColor.js +2 -2
- package/cjs/hooks/UNSAFE_useDensity.js +3 -3
- package/cjs/hooks/UNSAFE_useHiddenTestMethod.js +3 -3
- package/cjs/hooks/UNSAFE_useOutsideClick.js +8 -8
- package/cjs/hooks/UNSAFE_usePrefixSuffix.js +4 -4
- package/cjs/hooks/UNSAFE_useScale.js +3 -3
- package/cjs/hooks/UNSAFE_useTestId.js +3 -3
- package/cjs/hooks/UNSAFE_useTheme.js +3 -3
- package/cjs/hooks/UNSAFE_useThemeInterpolations.js +6 -6
- package/cjs/hooks/UNSAFE_useTooltip.js +17 -17
- package/cjs/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/cjs/hooks/UNSAFE_useUser.js +3 -3
- package/cjs/{popupUtils-96acfe58.js → popupUtils-488fe8f7.js} +2 -2
- package/cjs/{popupUtils-96acfe58.js.map → popupUtils-488fe8f7.js.map} +1 -1
- package/cjs/{tooltipUtils-842e04c7.js → tooltipUtils-ae48fed6.js} +5 -5
- package/cjs/{tooltipUtils-842e04c7.js.map → tooltipUtils-ae48fed6.js.map} +1 -1
- package/cjs/useBareButton-3c8d1a5d.js +1 -1
- package/cjs/useCellNavigation-d5b07844.js +1 -1
- package/cjs/useChartContextMenu-a8c6d928.js +2 -2
- package/cjs/{useChartDatatip-488151ad.js → useChartDatatip-76d4aeaa.js} +4 -4
- package/cjs/{useChartDatatip-488151ad.js.map → useChartDatatip-76d4aeaa.js.map} +1 -1
- package/cjs/{useColorScheme-a379cdb9.js → useColorScheme-23e4aab4.js} +2 -2
- package/cjs/{useColorScheme-a379cdb9.js.map → useColorScheme-23e4aab4.js.map} +1 -1
- package/cjs/useContextMenu-e90f401c.js +2 -2
- package/cjs/{useCssVars-7a254269.js → useCssVars-cc025013.js} +5 -5
- package/cjs/{useCssVars-7a254269.js.map → useCssVars-cc025013.js.map} +1 -1
- package/cjs/{useCurrentKey-25fa7256.js → useCurrentKey-76fed320.js} +2 -2
- package/cjs/{useCurrentKey-25fa7256.js.map → useCurrentKey-76fed320.js.map} +1 -1
- package/cjs/{useDatatip-44a30e0a.js → useDatatip-4f6d3759.js} +4 -4
- package/cjs/{useDatatip-44a30e0a.js.map → useDatatip-4f6d3759.js.map} +1 -1
- package/cjs/{useDensity-a1ed72b0.js → useDensity-022a8f80.js} +2 -2
- package/cjs/{useDensity-a1ed72b0.js.map → useDensity-022a8f80.js.map} +1 -1
- package/cjs/useDisplayValue-981e83e0.js +5 -5
- package/cjs/{useExpandCollapse-6267248f.js → useExpandCollapse-336b4f0c.js} +2 -2
- package/cjs/{useExpandCollapse-6267248f.js.map → useExpandCollapse-336b4f0c.js.map} +1 -1
- package/cjs/{useFloating-768519ce.js → useFloating-13101293.js} +2 -2
- package/cjs/{useFloating-768519ce.js.map → useFloating-13101293.js.map} +1 -1
- package/cjs/{useHiddenTestMethod-07be6a8e.js → useHiddenTestMethod-51be5bf2.js} +2 -2
- package/cjs/{useHiddenTestMethod-07be6a8e.js.map → useHiddenTestMethod-51be5bf2.js.map} +1 -1
- package/cjs/{useKeyboardEvents-aeae6a28.js → useKeyboardEvents-caa4eb2d.js} +2 -2
- package/cjs/{useKeyboardEvents-aeae6a28.js.map → useKeyboardEvents-caa4eb2d.js.map} +1 -1
- package/cjs/useLegendContextMenu-2a905d60.js +4 -4
- package/cjs/{useMeterDatatip-05aea311.js → useMeterDatatip-45a314e6.js} +3 -3
- package/cjs/{useMeterDatatip-05aea311.js.map → useMeterDatatip-45a314e6.js.map} +1 -1
- package/cjs/useNavigation-49344b44.js +1 -1
- package/cjs/{useOutsideClick-0ad85b65.js → useOutsideClick-c3802f86.js} +2 -2
- package/cjs/{useOutsideClick-0ad85b65.js.map → useOutsideClick-c3802f86.js.map} +1 -1
- package/cjs/{useOutsideMousedown-fee3f752.js → useOutsideMousedown-8f913d1a.js} +2 -2
- package/cjs/{useOutsideMousedown-fee3f752.js.map → useOutsideMousedown-8f913d1a.js.map} +1 -1
- package/cjs/{usePopupAnimation-d24b74af.js → usePopupAnimation-18040396.js} +2 -2
- package/cjs/{usePopupAnimation-d24b74af.js.map → usePopupAnimation-18040396.js.map} +1 -1
- package/cjs/{usePrefixSuffix-aca06b3b.js → usePrefixSuffix-37dfbfbd.js} +2 -2
- package/cjs/{usePrefixSuffix-aca06b3b.js.map → usePrefixSuffix-37dfbfbd.js.map} +1 -1
- package/cjs/{useReorderableItem-cee284be.js → useReorderableItem-db13db70.js} +3 -3
- package/cjs/{useReorderableItem-cee284be.js.map → useReorderableItem-db13db70.js.map} +1 -1
- package/cjs/{useRovingTabIndexContainer-7474adbd.js → useRovingTabIndexContainer-a3594203.js} +2 -2
- package/cjs/{useRovingTabIndexContainer-7474adbd.js.map → useRovingTabIndexContainer-a3594203.js.map} +1 -1
- package/cjs/{useScale-349360cd.js → useScale-adc62f41.js} +2 -2
- package/cjs/{useScale-349360cd.js.map → useScale-adc62f41.js.map} +1 -1
- package/cjs/useSelectCommon-c3f3b7bc.js +5 -5
- package/cjs/{useSelectDrill-97935ff4.js → useSelectDrill-d6321bb7.js} +3 -3
- package/cjs/{useSelectDrill-97935ff4.js.map → useSelectDrill-d6321bb7.js.map} +1 -1
- package/cjs/{useSelection-1ffadc6e.js → useSelection-45d53f55.js} +6 -6
- package/cjs/{useSelection-1ffadc6e.js.map → useSelection-45d53f55.js.map} +1 -1
- package/cjs/{useSelection-ec8ed204.js → useSelection-e11d979f.js} +2 -2
- package/cjs/{useSelection-ec8ed204.js.map → useSelection-e11d979f.js.map} +1 -1
- package/cjs/useTabBar-6df595c7.js +3 -3
- package/cjs/{useTestId-15ee37d6.js → useTestId-9093a54b.js} +2 -2
- package/cjs/{useTestId-15ee37d6.js.map → useTestId-9093a54b.js.map} +1 -1
- package/cjs/{useTheme-9ced18e9.js → useTheme-09dfbb78.js} +2 -2
- package/cjs/{useTheme-9ced18e9.js.map → useTheme-09dfbb78.js.map} +1 -1
- package/cjs/{useThemeInterpolations-b29f0f7d.js → useThemeInterpolations-4faece98.js} +5 -5
- package/cjs/{useThemeInterpolations-b29f0f7d.js.map → useThemeInterpolations-4faece98.js.map} +1 -1
- package/cjs/{useTooltip-43bfe8a3.js → useTooltip-8728f2ff.js} +2 -2
- package/cjs/{useTooltip-43bfe8a3.js.map → useTooltip-8728f2ff.js.map} +1 -1
- package/cjs/{useTooltipControlled-4a59aaf5.js → useTooltipControlled-3c2afa53.js} +5 -5
- package/cjs/{useTooltipControlled-4a59aaf5.js.map → useTooltipControlled-3c2afa53.js.map} +1 -1
- package/cjs/{useTooltipOnTruncation-77728bdf.js → useTooltipOnTruncation-781972d7.js} +4 -4
- package/cjs/{useTooltipOnTruncation-77728bdf.js.map → useTooltipOnTruncation-781972d7.js.map} +1 -1
- package/cjs/{useTranslationBundle-24c593f4.js → useTranslationBundle-18b7bf8b.js} +2 -2
- package/cjs/{useTranslationBundle-24c593f4.js.map → useTranslationBundle-18b7bf8b.js.map} +1 -1
- package/cjs/{useUser-081e5bd5.js → useUser-f900ddf1.js} +2 -2
- package/cjs/{useUser-081e5bd5.js.map → useUser-f900ddf1.js.map} +1 -1
- package/cjs/useVisDragModeControls-6acfca25.js +1 -1
- package/cjs/{useVisEvents-c0863287.js → useVisEvents-9b21e260.js} +2 -2
- package/cjs/{useVisEvents-c0863287.js.map → useVisEvents-9b21e260.js.map} +1 -1
- package/cjs/utils/PRIVATE_tooltipUtils.js +14 -14
- package/cjs/utils/PRIVATE_visTestUtils.js +4 -4
- package/cjs/utils/UNSAFE_popupUtils.js +8 -8
- package/cjs/{withDirectionIcon-574c8e58.js → withDirectionIcon-edb93142.js} +2 -2
- package/cjs/{withDirectionIcon-574c8e58.js.map → withDirectionIcon-edb93142.js.map} +1 -1
- package/cjs/withThemeProps-59cfaa3e.js +2 -2
- package/es/CheckboxSetContext-1be56556.js +9 -0
- package/es/CheckboxSetContext-1be56556.js.map +1 -0
- package/es/{DatePicker-86c5eebd.js → DatePicker-eff769da.js} +3 -3
- package/es/{DatePicker-86c5eebd.js.map → DatePicker-eff769da.js.map} +1 -1
- package/es/DiagramStyles.styles.css +16 -10
- package/es/DiagramStyles.styles2.css +10 -16
- package/es/FormLayoutVariants.styles.css +14 -14
- package/es/FormLayoutVariants.styles2.css +14 -14
- package/es/MaxLengthCounter-d622f964.js +25 -0
- package/es/MaxLengthCounter-d622f964.js.map +1 -0
- package/es/{MonthView-04900992.js → MonthView-5dca34d1.js} +2 -2
- package/es/{MonthView-04900992.js.map → MonthView-5dca34d1.js.map} +1 -1
- package/es/PRIVATE_ContainerDiagram/themes/DiagramStyles.css.js +1 -1
- package/es/PRIVATE_ContainerDiagram.js +1 -1
- package/es/PRIVATE_MonthView.js +2 -3
- package/es/PRIVATE_MonthView.js.map +1 -1
- package/es/PRIVATE_MonthYearGridView.js +2 -3
- package/es/PRIVATE_MonthYearGridView.js.map +1 -1
- package/es/PRIVATE_StyledDatePickerButton.js +1 -2
- package/es/PRIVATE_StyledDatePickerButton.js.map +1 -1
- package/es/ProgressBarVariants.styles.css +1 -1
- package/es/ProgressBarVariants.styles2.css +1 -1
- package/es/SegmentStyles.styles.css +11 -8
- package/es/SegmentStyles.styles2.css +8 -11
- package/es/SplitMenuButtonTheme.styles.css +4 -4
- package/es/SplitMenuButtonTheme.styles2.css +4 -4
- package/es/{StyledDatePickerButton-444aa824.js → StyledDatePickerButton-ca54e491.js} +2 -8
- package/es/StyledDatePickerButton-ca54e491.js.map +1 -0
- package/es/StyledDatePickerButtonStyles.styles.css +17 -0
- package/es/Theme-redwood/theme.css +557 -557
- package/es/Theme-stable/theme.css +444 -444
- package/es/UNSAFE_CheckboxItem.js +47 -101
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +44 -10
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_DatePicker.js +4 -4
- package/es/UNSAFE_Diagram/themes/DiagramStyles.css.js +1 -1
- package/es/UNSAFE_Diagram.js +1 -1
- package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
- package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
- package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
- package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
- package/es/UNSAFE_FormLayout.js +1 -1
- package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputDateMask.js +1 -1
- package/es/UNSAFE_InputDatePicker.js +96 -96
- package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputTimeMask.js +1 -1
- package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme.js +1 -1
- package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarVariants.css.js +1 -1
- package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarTheme.js +1 -1
- package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarVariants.css.js +1 -1
- package/es/UNSAFE_ProgressBar.js +1 -1
- package/es/UNSAFE_RichCheckboxSet.js +25 -29
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichSelectionItem.js +29 -172
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
- package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
- package/es/UNSAFE_SplitMenuButton.js +1 -1
- package/es/UNSAFE_TextArea.js +219 -104
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +1 -1
- package/es/{YearsGridView-3858303c.js → YearsGridView-8e838e3d.js} +2 -2
- package/es/{YearsGridView-3858303c.js.map → YearsGridView-8e838e3d.js.map} +1 -1
- package/package.json +2 -2
- package/amd/StyledDatePickerButton-e886e52a.js +0 -2
- package/amd/StyledDatePickerButton-e886e52a.js.map +0 -1
- package/amd/TextArea-ddd1d6b9.js +0 -2
- package/amd/TextArea-ddd1d6b9.js.map +0 -1
- package/amd/TextAreaAutosize-3cf8e06c.js +0 -2
- package/cjs/StyledDatePickerButton-128e2a5d.js.map +0 -1
- package/cjs/TextArea-8608dba1.js +0 -187
- package/cjs/TextArea-8608dba1.js.map +0 -1
- package/es/CheckboxSet-751d4298.js +0 -49
- package/es/CheckboxSet-751d4298.js.map +0 -1
- package/es/StyledDatePickerButton-444aa824.js.map +0 -1
- package/es/TextArea-273e8ce4.js +0 -184
- package/es/TextArea-273e8ce4.js.map +0 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"devDependencies": {},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oracle/oraclejet-testing": "19.0.
|
|
8
|
+
"@oracle/oraclejet-testing": "19.0.4",
|
|
9
9
|
"csstype": "3.1.1"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"version": "19.0.
|
|
52
|
+
"version": "19.0.4"
|
|
53
53
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', './PRIVATE_StyledDatePickerButton/themes/StyledDatePickerButtonStyles.css', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', './classNames-08d99695', 'preact/compat'], (function(e,t,s,i,a,n){"use strict";const d=n.forwardRef((({isActivable:e=!1,isReadonly:n=!1,isAdjacentMonth:d=!1,isDimmed:o=!1,isHidden:c=!1,isHoverable:l=!1,isRestricted:r=!1,isSelected:m=!1,isToday:y=!1,tabIndex:u,label:b,variant:v,...S},h=null)=>{const A=s.multiVariantStyles({active:e?"isActivable":"notActiveable",dimmed:o?"isDimmed":"notDimmed",hidden:c?"isHidden":"notHidden",hover:l?"isHoverable":"notHoverable",adjacentMonth:d?"isAdjacentMonth":"notAdjacentMonth",restricted:r?"isRestricted":"notRestricted",selected:m?"isSelected":"notSelected",today:y?"isToday":"notToday",variant:v}),B=a.classNames([i.styles.base,i.styles.sizes.sm,i.styles.styled,A]);return t.jsx("span",{role:n?void 0:"button",class:B,ref:h,tabIndex:u,...S,children:b})}));e.StyledDatePickerButton=d}));
|
|
2
|
-
//# sourceMappingURL=StyledDatePickerButton-e886e52a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyledDatePickerButton-e886e52a.js","sources":["../../src/PRIVATE_StyledDatePickerButton/StyledDatePickerButton.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 { multiVariantStyles } from './themes/StyledDatePickerButtonStyles.css';\nimport { styles as baseButtonStyles } from '../UNSAFE_BaseButton/themes/BaseButtonStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { forwardRef } from 'preact/compat';\nimport type { Ref, JSX } from 'preact';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\n\ntype IntrinsicProps = Pick<UnpackSignals<JSX.HTMLAttributes<HTMLElement>>, 'onClick' | 'onKeyDown'>;\n\ntype AriaProps = {\n 'aria-label'?: UnpackSignals<JSX.AriaAttributes>['aria-label'];\n 'aria-disabled'?: UnpackSignals<JSX.AriaAttributes>['aria-disabled'];\n};\n\ntype Props = IntrinsicProps &\n AriaProps & {\n /**\n * Specifies that the button appears activated when the user activates the StyledDatePickerButton.\n * When true, adds the :active selector to the button so that it can show active styling.\n * Combine this property with the other properties to get the styling you want.\n */\n isActivable?: boolean;\n /**\n * Specifies the styling of the button to look dimmed.\n * Combine this property with the other properties to get the styling you want.\n */\n isDimmed?: boolean;\n /**\n * Specifies the styling of the button to look hidden, that is, visibility: hidden.\n */\n isHidden?: boolean;\n /**\n * Specifies that the button appears hovered when the user hovers over the StyledDatePickerButton.\n * When true, adds the :hover selector to the button so that it can show hover styling.\n * Combine this property with the other properties to get the styling you want.\n */\n isHoverable?: boolean;\n /**\n * Specifies the styling of the button to look like a day that is adjacent to the current month.\n * Combine this property with the other properties to get the styling you want.\n */\n isAdjacentMonth?: boolean;\n /**\n * Specifies the role of the day cell to be 'button' when isReadonly is false, or no role when isReadonly is true.\n * This helps the screenreader.\n */\n isReadonly?: boolean;\n /**\n * Specifies the styling of the button to look like it is restricted.\n * Combine this property with the other properties to get the styling you want.\n */\n isRestricted?: boolean;\n /**\n * Specifies the styling of the button to look like it is selected.\n * Combine this property with the other properties to get the styling you want.\n */\n isSelected?: boolean;\n /**\n * Specifies the styling of the button to look like it is today.\n * Combine this property with the other properties to get the styling you want.\n */\n isToday?: boolean;\n /**\n * Specifies the label of the day button. This will be the day of the month.\n */\n label: string;\n /**\n * Specifies the tabIndex.\n */\n tabIndex?: 0 | -1;\n /**\n * Specifies the visual variant for the StyledDatePickerButton.\n */\n variant?: 'day' | 'month' | 'year';\n };\n\n/**\n * StyledDatePickerButton is a controlled component that displays a stylized span for a button that goes into a DatePicker.\n */\nconst StyledDatePickerButton = forwardRef(\n (\n {\n isActivable = false,\n isReadonly = false,\n isAdjacentMonth = false,\n isDimmed = false,\n isHidden = false,\n isHoverable = false,\n isRestricted = false,\n isSelected = false,\n isToday = false,\n tabIndex,\n label,\n variant,\n ...props\n }: Props,\n ref: Ref<HTMLSpanElement> = null\n ) => {\n // The multiVariantStyles function is defined in StyledDatePickerButtonStyles.css.ts,\n // using the recipe utility provided by @vanilla-extract/recipes.\n // This function is used to merge the base styles, variants, and compound variants\n // into a single set of styles for components based on the component's properties.\n const variantClasses = multiVariantStyles({\n active: isActivable ? 'isActivable' : 'notActiveable',\n dimmed: isDimmed ? 'isDimmed' : 'notDimmed',\n hidden: isHidden ? 'isHidden' : 'notHidden',\n hover: isHoverable ? 'isHoverable' : 'notHoverable',\n adjacentMonth: isAdjacentMonth ? 'isAdjacentMonth' : 'notAdjacentMonth',\n restricted: isRestricted ? 'isRestricted' : 'notRestricted',\n selected: isSelected ? 'isSelected' : 'notSelected',\n today: isToday ? 'isToday' : 'notToday',\n variant\n });\n\n const classes = classNames([\n baseButtonStyles.base,\n baseButtonStyles.sizes.sm,\n baseButtonStyles.styled,\n variantClasses\n ]);\n return (\n <span\n role={!isReadonly ? 'button' : undefined}\n class={classes}\n ref={ref}\n tabIndex={tabIndex}\n {...props}>\n {label}\n </span>\n );\n }\n);\n\nexport { StyledDatePickerButton };\n"],"names":["StyledDatePickerButton","forwardRef","isActivable","isReadonly","isAdjacentMonth","isDimmed","isHidden","isHoverable","isRestricted","isSelected","isToday","tabIndex","label","variant","props","ref","variantClasses","multiVariantStyles","active","dimmed","hidden","hover","adjacentMonth","restricted","selected","today","classes","classNames","baseButtonStyles","base","styles","sizes","sm","styled","_jsx","role","undefined","class","children"],"mappings":"iPAuFM,MAAAA,EAAyBC,EAAAA,YAC7B,EAEIC,eAAc,EACdC,cAAa,EACbC,mBAAkB,EAClBC,YAAW,EACXC,YAAW,EACXC,eAAc,EACdC,gBAAe,EACfC,cAAa,EACbC,WAAU,EACVC,WACAC,QACAC,aACGC,GAELC,EAA4B,QAM5B,MAAMC,EAAiBC,EAAAA,mBAAmB,CACxCC,OAAQhB,EAAc,cAAgB,gBACtCiB,OAAQd,EAAW,WAAa,YAChCe,OAAQd,EAAW,WAAa,YAChCe,MAAOd,EAAc,cAAgB,eACrCe,cAAelB,EAAkB,kBAAoB,mBACrDmB,WAAYf,EAAe,eAAiB,gBAC5CgB,SAAUf,EAAa,aAAe,cACtCgB,MAAOf,EAAU,UAAY,WAC7BG,YAGIa,EAAUC,EAAAA,WAAW,CACzBC,EAAAA,OAAiBC,KACjBD,EAAgBE,OAACC,MAAMC,GACvBJ,EAAAA,OAAiBK,OACjBjB,IAEF,OACEkB,EAAAA,IAAA,OAAA,CACEC,KAAOhC,OAAwBiC,EAAX,SACpBC,MAAOX,EACPX,IAAKA,EACLJ,SAAUA,KACNG,EAAKwB,SACR1B,GAEH"}
|
package/amd/TextArea-ddd1d6b9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', 'preact/compat', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', 'preact/hooks', './useFocusableTextField-8b755b15', './Label-3c17bcc9', './keyboardUtils-fb6219eb', './TextFieldInput-eb40adaa', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-e5723c48', './StyledTextField-5e554e5b', './TextField-51b63f5f', './MaxLengthLiveRegion-1f30f975', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', './useTextField-3ab0a23b', './logger-0f873e29', './TabbableModeContext-a9c97640', './useId-c9578d26', './useTranslationBundle-27bf6340', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-e406e352', './CompactUserAssistance-5ef03b0a', './mergeProps-bcfa6a92', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', 'preact', 'css!./IconStyle.styles.css', './Popup-062b66ff', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', './HiddenAccessible-037ef42d', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './useLengthFilter-c05fd679', './classNames-08d99695', './usePress-949a0d03', './useFormFieldContext-9260f081', 'css!./MaxLengthCounterStyles.styles.css', './useCurrentValueReducer-faded381', './useSelectableTextField-900d2860', './formControlUtils-de035f75'], (function(e,s,t,a,n,l,i,o,r,d,c,u,x,m,h,p,b,F,y,f,g,L,T,C,S,A,v,R,U,I,j,_,E,w,P,k,M,N,D,V,B,H,q,z,W,$,G,O,X,J,K,Q,Y,Z,ee,se){"use strict";var te="MaxLengthCounterStyles_spanStyles__7dy9j72";const ae=()=>{};function ne({maxLength:e,valueLength:t=0,onClick:a}){const{isFocused:n}=Q.useFormFieldContext(),l=i.useCallback((e=>e.preventDefault()),[]),o=J.classNames([!n&&"MaxLengthCounterStyles_hide__7dy9j71"]),{pressProps:r}=K.usePress(a??ae);return s.jsx("div",{class:"MaxLengthCounterStyles_maxLengthCounterBase__7dy9j70",onMouseDown:l,...r,children:s.jsxs("span",{class:o,children:[s.jsx("span",{class:te,children:t}),s.jsx("span",{class:te,children:"/"}),s.jsx("span",{class:te,children:e})]})})}const le=t.forwardRef((({"aria-describedby":e,assistiveText:a,autoComplete:i="off",autoFocus:d=!1,columnSpan:u,helpSourceLink:b,helpSourceText:F,isDisabled:y,isReadonly:f,isRequired:g=!1,isRequiredShown:L,label:C,labelEdge:S,labelStartWidth:R,maxLength:U,maxLengthCounter:I="remaining",maxLengthUnit:w,messages:P,placeholder:k,resize:M,role:N,rows:D,textAlign:V,userAssistanceDensity:B,value:H,variant:q="default",onInput:z,onCommit:W,testId:G},O)=>{const J=v.useTranslationBundle("@oracle/oraclejet-preact"),K=U?J.formControl_limitReached({CHARACTER_LIMIT:U}):"",{currentCommitValue:Q,dispatch:Y}=Z.useCurrentValueReducer({value:H}),te=t.useCallback((e=>{Y({type:"input",payload:e.value}),z?.(e)}),[z,Y]),ae=t.useCallback((e=>{Y({type:"commit",payload:e.value}),W?.(e)}),[W,Y]),{isDisabled:le,isReadonly:ie,labelEdge:oe,labelStartWidth:re,textAlign:de,userAssistanceDensity:ce}=n.useFormContext(),ue=y??le,xe=f??ie,me=S??oe,he=R??re,pe=V??de??se.defaultTextAlignForVariant(q),be=B??ce,Fe=t.useRef(A.useId()),ye=e?`${e} ${Fe.current}`:Fe.current,fe=t.useRef(null),ge=t.useRef(null),{focusProps:Le,isFocused:Te,methods:Ce}=o.useFocusableTextField({isDisabled:ue,isReadonly:xe,enabledElementRef:fe,readonlyElementRef:ge}),{methods:Se}=ee.useSelectableTextField(fe);t.useImperativeHandle(O,(()=>E.mergeProps(Ce,Se)),[Ce,Se]);const{isMaxLengthExceeded:Ae,isMaxLengthReached:ve,valueLength:Re,onFilteredInput:Ue}=X.useLengthFilter({maxLength:U,maxLengthUnit:w,value:H,onInput:te,onCommit:ae}),Ie=[...P??[],...ve?[{detail:K,severity:"info"}]:[]],{formFieldContext:je,inputProps:_e,labelProps:Ee,textFieldProps:we,userAssistanceProps:Pe}=T.useTextField({ariaDescribedBy:xe||ue?e:ye,contentVariant:"textarea",helpSourceLink:b,helpSourceText:F,isDisabled:ue,isFocused:Te,isReadonly:xe,isRequiredShown:L,labelEdge:me,messages:Ie,styleVariant:q,userAssistanceDensity:be,value:H}),ke=t.useCallback((()=>{const e=fe.current,s=e?e.value.length:null;fe.current?.setSelectionRange(s,s),fe.current?.focus()}),[fe]),Me="none"!==me?s.jsx(r.Label,{...Ee,children:C}):void 0,Ne={label:"none"!==me?Me:void 0,labelEdge:"none"!==me?me:void 0,labelStartWidth:"none"!==me?he:void 0,labelText:"inside"!==me||ue?void 0:C},De="none"===me?C:void 0,Ve="efficient"===be||"reflow"===be?ue?"efficient"!==be?void 0:s.jsx(j.InlineUserAssistance,{userAssistanceDensity:be,...Pe}):xe?s.jsx(j.InlineUserAssistance,{fieldLabel:C,messages:P,userAssistanceDensity:be,...Pe}):s.jsx(j.InlineUserAssistance,{assistiveText:a,fieldLabel:C,helpSourceLink:b,helpSourceText:F,messages:Ie,isRequiredShown:L,userAssistanceDensity:be,...Pe}):void 0,Be=t.useRef(null),He="compact"===be?s.jsx(_.CompactUserAssistance,{anchorRef:Be,messages:Ie,assistiveText:a,...Pe}):void 0;if(xe){const e=s.jsx(x.ReadonlyTextFieldInput,{"aria-describedby":_e["aria-describedby"],"aria-label":De,"aria-labelledby":Ee.id,as:"textarea",elementRef:ge,formVariant:q,rows:D,autoFocus:d,textAlign:pe,value:H,variant:"textarea",hasEmptyLabel:""===C&&"none"===me,hasInsideLabel:void 0!==C&&"inside"===me,onBlur:_e.onBlur,onFocus:_e.onFocus});return s.jsx(l.FormFieldContext.Provider,{value:je,children:s.jsx(m.ReadonlyTextField,{role:"presentation",columnSpan:u,compactUserAssistance:He,inlineUserAssistance:Ve,ref:Be,testId:G,variant:"textarea",mainContent:e,resize:M,...Ne})})}const qe=void 0!==U,ze=s.jsxs(s.Fragment,{children:[s.jsx(c.TextFieldInput,{as:"textarea","aria-label":De,autoComplete:i,autoFocus:d,currentCommitValue:Q,hasEmptyLabel:""===C&&"none"===me,hasInsideLabel:void 0!==Me&&"inside"===me,isRequired:g,inputRef:fe,onCommit:ae,onInput:Ue,placeholder:k,role:N,rows:D,textAlign:pe,value:H,..._e}),"remaining"===I&&qe&&s.jsx(ne,{maxLength:U,valueLength:Re,onClick:ke}),qe&&s.jsx($.HiddenAccessible,{id:Fe.current,isHidden:!0,children:J.formControl_maxLength({MAX_LENGTH:`${U}`})}),qe&&Te&&s.jsx(p.MaxLengthLiveRegion,{isMaxLengthExceeded:Ae,maxLength:U,valueLength:Re,testId:G?G+"_maxLength":void 0})]});return s.jsx(l.FormFieldContext.Provider,{value:je,children:s.jsx(h.TextField,{mainContent:ze,columnSpan:u,compactUserAssistance:He,inlineUserAssistance:Ve,onBlur:Le?.onFocusOut,onFocus:Le?.onFocusIn,mainFieldRef:Be,resize:M,testId:G,...we,...Ne})})}));e.MaxLengthCounter=ne,e.TextArea=le}));
|
|
2
|
-
//# sourceMappingURL=TextArea-ddd1d6b9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea-ddd1d6b9.js","sources":["../../src/UNSAFE_TextArea/MaxLengthCounter.tsx","../../src/UNSAFE_TextArea/TextArea.tsx"],"sourcesContent":["import { useCallback } from 'preact/hooks';\n\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { hide, maxLengthCounterBase, spanStyles } from './MaxLengthCounterStyles.css';\n\ntype Props = {\n maxLength: number;\n valueLength?: number;\n onClick?: () => void; // the calling component should focus on the appropriate element when clicked.\n};\n\nconst noop = () => {};\n\nexport function MaxLengthCounter({ maxLength, valueLength = 0, onClick }: Props) {\n const { isFocused } = useFormFieldContext();\n // We don't want mousedown on this component to do anything, so prevent the default behavior.\n const killEvent = useCallback((event: Event) => event.preventDefault(), []);\n const textClasses = classNames([!isFocused && hide]);\n const { pressProps } = usePress(onClick ?? noop);\n return (\n <div class={maxLengthCounterBase} onMouseDown={killEvent} {...pressProps}>\n <span class={textClasses}>\n <span class={spanStyles}>{valueLength}</span>\n <span class={spanStyles}>/</span>\n <span class={spanStyles}>{maxLength}</span>\n </span>\n </div>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from 'preact/compat';\n\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { FocusableHandle, useFocusableTextField } from '#hooks/UNSAFE_useFocusableTextField';\nimport { Label } from '#UNSAFE_Label';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '#UNSAFE_TextField';\nimport { useTextField } from '#hooks/UNSAFE_useTextField';\nimport {\n CompactUserAssistance,\n InlineUserAssistance,\n UserAssistanceDensityType\n} from '#UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '#hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '#UNSAFE_TextField';\nimport { MaxLengthCounter } from './MaxLengthCounter';\nimport { Size } from '#utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '#hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { ComponentMessageItem } from '#UNSAFE_ComponentMessage';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { defaultTextAlignForVariant } from '#utils/PRIVATE_formControlUtils';\n\ntype TextFieldProps = ComponentProps<typeof TextField>;\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = TestIdProps & {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: TextFieldInputProps['aria-describedby'];\n\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Determines whether the remaining number of characters that can be entered is shown or not.\n */\n maxLengthCounter?: 'none' | 'remaining';\n /**\n * Specifies how the input text characters are to be counted when maxLength is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how the user is allowed to manually resize the TextArea component.\n */\n resize?: TextFieldProps['resize'];\n /**\n * Specifies the ARIA role type.\n */\n role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\n */\n rows?: TextFieldInputProps['rows'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'compact'</code>: Messages, help, hints, and required will not be shown inline; they will show in a mode that keeps the screen more compact, like a popup for the messages, and a required icon to indicate Required. </li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * Callback invoked when the user commits the entered value by blurring out of the field.\n */\n onCommit?: TextFieldInputProps['onCommit'];\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n};\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\n/**\n * A text area displays a field that allows a user to enter a multi-line text value.\n */\nexport const TextArea = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n columnSpan,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthCounter = 'remaining',\n maxLengthUnit,\n messages,\n placeholder,\n resize,\n role,\n rows,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit,\n testId\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const formControl_limitReached = maxLength\n ? translations.formControl_limitReached({\n CHARACTER_LIMIT: maxLength\n })\n : '';\n\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit, dispatch]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign ?? defaultTextAlignForVariant(variant);\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n const maxLengthDescribedByIdRef = useRef<string>(useId());\n // The enabledAriaDescribedBy includes the maxLengthDescribedById in addition to what was passed in to aria-describedby.\n // We don't need to announce the max length message for readonly, as it only applies when editing the value.\n const enabledAriaDescribedBy = ariaDescribedBy\n ? `${ariaDescribedBy} ${maxLengthDescribedByIdRef.current}`\n : maxLengthDescribedByIdRef.current;\n\n const enabledElementRef = useRef<HTMLTextAreaElement>(null);\n const readonlyElementRef = useRef<HTMLTextAreaElement>(null);\n\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLTextAreaElement, HTMLTextAreaElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef\n });\n\n const { methods: selectMethods } =\n useSelectableTextField<HTMLTextAreaElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, isMaxLengthReached, valueLength, onFilteredInput } =\n useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const limitMessage = [{ detail: formControl_limitReached, severity: 'info' }];\n const allMessages = [\n ...(messages ?? []),\n ...(isMaxLengthReached ? limitMessage : [])\n ] as ComponentMessageItem[];\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy: isReadonly || isDisabled ? ariaDescribedBy : enabledAriaDescribedBy,\n contentVariant: 'textarea',\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages: allMessages,\n styleVariant: variant,\n userAssistanceDensity,\n value\n });\n\n const onClickCounter = useCallback(() => {\n const elm = enabledElementRef.current;\n // for setSelectionRange(), len needs to be a number or null.\n const len = elm ? elm.value.length : null;\n // Since the counter element is after the text, clicking in this\n // should put the selection at the end of the text\n enabledElementRef.current?.setSelectionRange(len, len);\n // Clicking the counter should put the focus on the input field\n enabledElementRef.current?.focus();\n }, [enabledElementRef]);\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined,\n labelText: labelEdge === 'inside' && !isDisabled ? label : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : isReadonly ? (\n <InlineUserAssistance\n fieldLabel={label}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={allMessages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const anchorRef = useRef<HTMLDivElement>(null);\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={allMessages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n if (isReadonly) {\n const mainContent = (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"textarea\"\n elementRef={readonlyElementRef}\n formVariant={variant}\n rows={rows}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n onBlur={inputProps.onBlur}\n onFocus={inputProps.onFocus}\n />\n );\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n ref={anchorRef}\n testId={testId}\n variant=\"textarea\"\n mainContent={mainContent}\n resize={resize}\n {...fieldLabelProps}\n />\n </FormFieldContext.Provider>\n );\n }\n const hasMaxLength = maxLength !== undefined;\n const mainContent = (\n <>\n <TextFieldInput\n as=\"textarea\"\n aria-label={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n isRequired={isRequired}\n inputRef={enabledElementRef}\n onCommit={onCommitAndDispatch}\n onInput={onFilteredInput}\n placeholder={placeholder}\n role={role}\n rows={rows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && hasMaxLength && (\n <MaxLengthCounter\n maxLength={maxLength}\n valueLength={valueLength}\n onClick={onClickCounter}\n />\n )}\n {hasMaxLength && (\n <HiddenAccessible id={maxLengthDescribedByIdRef.current} isHidden={true}>\n {translations.formControl_maxLength({\n MAX_LENGTH: `${maxLength}`\n })}\n </HiddenAccessible>\n )}\n {hasMaxLength && isFocused && (\n <MaxLengthLiveRegion\n isMaxLengthExceeded={isMaxLengthExceeded}\n maxLength={maxLength}\n valueLength={valueLength}\n testId={testId ? testId + '_maxLength' : undefined}\n />\n )}\n </>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onFocusOut}\n onFocus={focusProps?.onFocusIn}\n mainFieldRef={anchorRef}\n resize={resize}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["noop","MaxLengthCounter","maxLength","valueLength","onClick","isFocused","useFormFieldContext","killEvent","useCallback","event","preventDefault","textClasses","classNames","pressProps","usePress","_jsx","jsx","class","onMouseDown","_jsxs","jsxs","children","spanStyles","TextArea","forwardRef","ariaDescribedBy","assistiveText","autoComplete","autoFocus","columnSpan","helpSourceLink","helpSourceText","isDisabled","propIsDisabled","isReadonly","propIsReadonly","isRequired","isRequiredShown","label","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","maxLengthCounter","maxLengthUnit","messages","placeholder","resize","role","rows","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","value","variant","onInput","onCommit","testId","ref","translations","useTranslationBundle","formControl_limitReached","CHARACTER_LIMIT","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","defaultTextAlignForVariant","maxLengthDescribedByIdRef","useRef","useId","enabledAriaDescribedBy","current","enabledElementRef","readonlyElementRef","focusProps","methods","focusMethods","useFocusableTextField","selectMethods","useSelectableTextField","useImperativeHandle","mergeProps","isMaxLengthExceeded","isMaxLengthReached","onFilteredInput","useLengthFilter","allMessages","severity","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","contentVariant","styleVariant","onClickCounter","elm","len","length","setSelectionRange","focus","labelComp","Label","undefined","fieldLabelProps","labelText","ariaLabel","inlineUserAssistance","InlineUserAssistance","fieldLabel","anchorRef","compactUserAssistance","CompactUserAssistance","mainContent","ReadonlyTextFieldInput","id","as","elementRef","formVariant","hasEmptyLabel","hasInsideLabel","onBlur","onFocus","FormFieldContext","Provider","ReadonlyTextField","hasMaxLength","_Fragment","Fragment","TextFieldInput","inputRef","HiddenAccessible","isHidden","formControl_maxLength","MAX_LENGTH","MaxLengthLiveRegion","TextField","onFocusOut","onFocusIn","mainFieldRef"],"mappings":"slEAaA,MAAMA,GAAO,OAEP,SAAUC,IAAiBC,UAAEA,EAASC,YAAEA,EAAc,EAACC,QAAEA,IAC7D,MAAMC,UAAEA,GAAcC,EAAAA,sBAEhBC,EAAYC,EAAAA,aAAaC,GAAiBA,EAAMC,kBAAkB,IAClEC,EAAcC,EAAAA,WAAW,EAAEP,6CAC3BQ,WAAEA,GAAeC,EAAQA,SAACV,GAAWJ,IAC3C,OACEe,EAAKC,IAAA,MAAA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H,EACf6H,GACJ5G,EAAAA,KAAA0H,EAAAC,SAAA,CAAAzH,SAAA,CACEN,EAACC,IAAA+H,iBACC,CAAAb,GAAG,WACS,aAAAV,GACZ7F,aAAcA,EACdC,UAAWA,EACXoC,mBAAoBA,EACpBqE,cAAyB,KAAV/F,GAA8B,SAAdC,GAC/B+F,oBAA8BjB,IAAdF,IAAyC,WAAd5E,GAC3CH,WAAYA,EACZ4G,SAAU3D,GACV5B,SAAUc,GACVf,QAASyC,GACTnD,YAAaA,EACbE,KAAMA,EACNC,KAAMA,EACNC,UAAWA,GACXI,MAAOA,KACHgD,KAEgB,cAArB3D,GAAoCiG,IACnC7H,EAAAA,IAACd,IACCC,UAAWA,EACXC,YAAaA,GACbC,QAASyG,KAGZ+B,IACC7H,MAACkI,EAAAA,iBAAgB,CAAChB,GAAIjD,GAA0BI,QAAS8D,UAAU,EAAI7H,SACpEuC,EAAauF,sBAAsB,CAClCC,WAAY,GAAGlJ,QAIpB0I,IAAgBvI,IACfU,MAACsI,EAAAA,oBAAmB,CAClBtD,oBAAqBA,GACrB7F,UAAWA,EACXC,YAAaA,GACbuD,OAAQA,EAASA,EAAS,kBAAe2D,OAMjD,OACEtG,EAAAA,IAAC0H,EAAAA,iBAAiBC,SAAS,CAAApF,MAAO+C,GAChChF,SAAAN,EAAAC,IAACsI,EAASA,UAAA,CACRvB,YAAaA,GACblG,WAAYA,EACZgG,sBAAuBA,GACvBJ,qBAAsBA,GACtBc,OAAQhD,IAAYgE,WACpBf,QAASjD,IAAYiE,UACrBC,aAAc7B,GACd7E,OAAQA,EACRW,OAAQA,KACJ8C,MACAc,MAER"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', 'preact/compat', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', 'preact/hooks', './useFocusableTextField-8b755b15', './Label-3c17bcc9', './keyboardUtils-fb6219eb', './TextFieldInput-eb40adaa', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-e5723c48', './StyledTextField-5e554e5b', './TextField-51b63f5f', './MaxLengthLiveRegion-1f30f975', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', './useTextField-3ab0a23b', './logger-0f873e29', './TabbableModeContext-a9c97640', './useId-c9578d26', './useTranslationBundle-27bf6340', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-e406e352', './CompactUserAssistance-5ef03b0a', './mergeProps-bcfa6a92', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', 'preact', 'css!./IconStyle.styles.css', './Popup-062b66ff', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', './HiddenAccessible-037ef42d', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './useLengthFilter-c05fd679', './useCurrentValueReducer-faded381', './TextArea-ddd1d6b9', './useSelectableTextField-900d2860', './formControlUtils-de035f75'], (function(e,s,t,n,a,o,l,i,r,d,c,u,m,x,p,b,h,F,f,y,g,T,A,v,L,R,S,C,U,E,w,I,j,_,P,B,H,V,k,D,N,M,q,W,$,z,G,O,X,J,K,Q,Y){"use strict";const Z=({isReadonly:e,enabledElementRef:s,readonlyElementRef:t,minRows:n=2,maxRows:a,value:o})=>{l.useLayoutEffect((()=>{const o=e?t:s;if(null===o.current)return;if(o.current instanceof HTMLDivElement)return;const l=o.current,i=(e=>{const s=window.getComputedStyle(e),t=s.lineHeight;if("normal"===t)return 1.2*parseFloat(s.fontSize);return parseFloat(t)})(l);l.style.height="0";const{paddingHeight:r,borderHeight:d}=(e=>{const s=window.getComputedStyle(e);return{paddingHeight:parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),borderHeight:parseFloat(s.borderTop)+parseFloat(s.borderBottom)}})(l),c=i*n+r+d,u=l.scrollHeight+d;let m=0;if(void 0===a)m=u<c?c:u;else if(a>n){const e=i*a+r+d;m=u>e?e:u<c?c:u}else m=c;l.style.height=m+.5+"px"}),[o,n,a,e,s,t])},ee=t.forwardRef((({"aria-describedby":e,assistiveText:n,autoComplete:l="off",autoFocus:d=!1,columnSpan:u,helpSourceLink:h,helpSourceText:F,isDisabled:f,isReadonly:y,isRequired:g=!1,isRequiredShown:T,label:v,labelEdge:L,labelStartWidth:C,maxLength:U,maxLengthCounter:E="remaining",maxLengthUnit:_,maxRows:P,messages:B,minRows:H=2,placeholder:V,role:k,textAlign:D,userAssistanceDensity:N,value:M,variant:q="default",onInput:W,onCommit:$,testId:G},O)=>{const ee=S.useTranslationBundle("@oracle/oraclejet-preact"),se=U?ee.formControl_limitReached({CHARACTER_LIMIT:U}):"",{currentCommitValue:te,dispatch:ne}=J.useCurrentValueReducer({value:M}),ae=t.useCallback((e=>{ne({type:"input",payload:e.value}),W?.(e)}),[W,ne]),oe=t.useCallback((e=>{ne({type:"commit",payload:e.value}),$?.(e)}),[$,ne]),{isDisabled:le,isReadonly:ie,labelEdge:re,labelStartWidth:de,textAlign:ce,userAssistanceDensity:ue}=a.useFormContext(),me=f??le,xe=y??ie,pe=L??re,be=C??de,he=D??ce??Y.defaultTextAlignForVariant(q),Fe=N??ue,fe=t.useRef(R.useId()),ye=e?`${e} ${fe.current}`:fe.current,ge=t.useRef(null),Te=t.useRef(null),{focusProps:Ae,isFocused:ve,methods:Le}=i.useFocusableTextField({isDisabled:me,isReadonly:xe,enabledElementRef:ge,readonlyElementRef:Te}),{methods:Re}=Q.useSelectableTextField(ge);t.useImperativeHandle(O,(()=>j.mergeProps(Le,Re)),[Le,Re]);const{isMaxLengthExceeded:Se,isMaxLengthReached:Ce,valueLength:Ue,onFilteredInput:Ee}=X.useLengthFilter({maxLength:U,maxLengthUnit:_,value:M,onInput:ae,onCommit:oe}),we=[...B??[],...Ce?[{detail:se,severity:"info"}]:[]],{formFieldContext:Ie,inputProps:je,labelProps:_e,textFieldProps:Pe,userAssistanceProps:Be}=A.useTextField({ariaDescribedBy:xe||me?e:ye,contentVariant:"textarea",helpSourceLink:h,helpSourceText:F,isDisabled:me,isFocused:ve,isReadonly:xe,isRequiredShown:T,labelEdge:pe,messages:we,styleVariant:q,userAssistanceDensity:Fe,value:M}),He=t.useCallback((()=>{const e=ge.current,s=e?e.value.length:null;ge.current?.setSelectionRange(s,s),ge.current?.focus()}),[ge]),Ve="none"!==pe?s.jsx(r.Label,{..._e,children:v}):void 0,ke={label:"none"!==pe?Ve:void 0,labelEdge:"none"!==pe?pe:void 0,labelStartWidth:"none"!==pe?be:void 0,labelText:"inside"!==pe||me?void 0:v},De="none"===pe?v:void 0,Ne="efficient"===Fe||"reflow"===Fe?me?"efficient"!==Fe?void 0:s.jsx(w.InlineUserAssistance,{userAssistanceDensity:Fe,...Be}):xe?s.jsx(w.InlineUserAssistance,{fieldLabel:v,messages:B,userAssistanceDensity:Fe,...Be}):s.jsx(w.InlineUserAssistance,{assistiveText:n,fieldLabel:v,helpSourceLink:h,helpSourceText:F,messages:we,isRequiredShown:T,userAssistanceDensity:Fe,...Be}):void 0,Me=t.useRef(null),qe="compact"===Fe?s.jsx(I.CompactUserAssistance,{anchorRef:Me,messages:we,assistiveText:n,...Be}):void 0;if(Z({isReadonly:xe,enabledElementRef:ge,readonlyElementRef:Te,minRows:H,maxRows:P,value:M}),xe){const e=s.jsx(m.ReadonlyTextFieldInput,{"aria-describedby":je["aria-describedby"],"aria-label":De,"aria-labelledby":_e.id,autoFocus:d,elementRef:Te,formVariant:q,...P?{as:"textarea",rows:H}:{as:"div"},onBlur:je.onBlur,onFocus:je.onFocus,textAlign:he,value:M,variant:"textarea",hasEmptyLabel:""===v&&"none"===pe,hasInsideLabel:void 0!==v&&"inside"===pe});return s.jsx(o.FormFieldContext.Provider,{value:Ie,children:s.jsx(x.ReadonlyTextField,{role:"presentation",columnSpan:u,compactUserAssistance:qe,inlineUserAssistance:Ne,variant:"textarea",mainContent:e,ref:Me,testId:G,...ke})})}const We=void 0!==U,$e=s.jsxs(s.Fragment,{children:[s.jsx(c.TextFieldInput,{as:"textarea","aria-label":De,autoComplete:l,autoFocus:d,currentCommitValue:te,hasEmptyLabel:""===v&&"none"===pe,hasInsideLabel:void 0!==Ve&&"inside"===pe,isRequired:g,inputRef:ge,onCommit:oe,onInput:Ee,placeholder:V,role:k,rows:H,textAlign:he,value:M,...je}),"remaining"===E&&We&&s.jsx(K.MaxLengthCounter,{maxLength:U,valueLength:Ue,onClick:He}),We&&s.jsx(z.HiddenAccessible,{id:fe.current,children:ee.formControl_maxLength({MAX_LENGTH:`${U}`})}),We&&ve&&s.jsx(b.MaxLengthLiveRegion,{isMaxLengthExceeded:Se,maxLength:U,valueLength:Ue,testId:G?G+"_maxLength":void 0})]});return s.jsx(o.FormFieldContext.Provider,{value:Ie,children:s.jsx(p.TextField,{mainContent:$e,columnSpan:u,compactUserAssistance:qe,inlineUserAssistance:Ne,onBlur:Ae?.onFocusOut,onFocus:Ae?.onFocusIn,mainFieldRef:Me,testId:G,...Pe,...ke})})}));e.TextAreaAutosize=ee}));
|
|
2
|
-
//# sourceMappingURL=TextAreaAutosize-3cf8e06c.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyledDatePickerButton-128e2a5d.js","sources":["../../src/PRIVATE_StyledDatePickerButton/StyledDatePickerButton.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 { multiVariantStyles } from './themes/StyledDatePickerButtonStyles.css';\nimport { styles as baseButtonStyles } from '../UNSAFE_BaseButton/themes/BaseButtonStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { forwardRef } from 'preact/compat';\nimport type { Ref, JSX } from 'preact';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\n\ntype IntrinsicProps = Pick<UnpackSignals<JSX.HTMLAttributes<HTMLElement>>, 'onClick' | 'onKeyDown'>;\n\ntype AriaProps = {\n 'aria-label'?: UnpackSignals<JSX.AriaAttributes>['aria-label'];\n 'aria-disabled'?: UnpackSignals<JSX.AriaAttributes>['aria-disabled'];\n};\n\ntype Props = IntrinsicProps &\n AriaProps & {\n /**\n * Specifies that the button appears activated when the user activates the StyledDatePickerButton.\n * When true, adds the :active selector to the button so that it can show active styling.\n * Combine this property with the other properties to get the styling you want.\n */\n isActivable?: boolean;\n /**\n * Specifies the styling of the button to look dimmed.\n * Combine this property with the other properties to get the styling you want.\n */\n isDimmed?: boolean;\n /**\n * Specifies the styling of the button to look hidden, that is, visibility: hidden.\n */\n isHidden?: boolean;\n /**\n * Specifies that the button appears hovered when the user hovers over the StyledDatePickerButton.\n * When true, adds the :hover selector to the button so that it can show hover styling.\n * Combine this property with the other properties to get the styling you want.\n */\n isHoverable?: boolean;\n /**\n * Specifies the styling of the button to look like a day that is adjacent to the current month.\n * Combine this property with the other properties to get the styling you want.\n */\n isAdjacentMonth?: boolean;\n /**\n * Specifies the role of the day cell to be 'button' when isReadonly is false, or no role when isReadonly is true.\n * This helps the screenreader.\n */\n isReadonly?: boolean;\n /**\n * Specifies the styling of the button to look like it is restricted.\n * Combine this property with the other properties to get the styling you want.\n */\n isRestricted?: boolean;\n /**\n * Specifies the styling of the button to look like it is selected.\n * Combine this property with the other properties to get the styling you want.\n */\n isSelected?: boolean;\n /**\n * Specifies the styling of the button to look like it is today.\n * Combine this property with the other properties to get the styling you want.\n */\n isToday?: boolean;\n /**\n * Specifies the label of the day button. This will be the day of the month.\n */\n label: string;\n /**\n * Specifies the tabIndex.\n */\n tabIndex?: 0 | -1;\n /**\n * Specifies the visual variant for the StyledDatePickerButton.\n */\n variant?: 'day' | 'month' | 'year';\n };\n\n/**\n * StyledDatePickerButton is a controlled component that displays a stylized span for a button that goes into a DatePicker.\n */\nconst StyledDatePickerButton = forwardRef(\n (\n {\n isActivable = false,\n isReadonly = false,\n isAdjacentMonth = false,\n isDimmed = false,\n isHidden = false,\n isHoverable = false,\n isRestricted = false,\n isSelected = false,\n isToday = false,\n tabIndex,\n label,\n variant,\n ...props\n }: Props,\n ref: Ref<HTMLSpanElement> = null\n ) => {\n // The multiVariantStyles function is defined in StyledDatePickerButtonStyles.css.ts,\n // using the recipe utility provided by @vanilla-extract/recipes.\n // This function is used to merge the base styles, variants, and compound variants\n // into a single set of styles for components based on the component's properties.\n const variantClasses = multiVariantStyles({\n active: isActivable ? 'isActivable' : 'notActiveable',\n dimmed: isDimmed ? 'isDimmed' : 'notDimmed',\n hidden: isHidden ? 'isHidden' : 'notHidden',\n hover: isHoverable ? 'isHoverable' : 'notHoverable',\n adjacentMonth: isAdjacentMonth ? 'isAdjacentMonth' : 'notAdjacentMonth',\n restricted: isRestricted ? 'isRestricted' : 'notRestricted',\n selected: isSelected ? 'isSelected' : 'notSelected',\n today: isToday ? 'isToday' : 'notToday',\n variant\n });\n\n const classes = classNames([\n baseButtonStyles.base,\n baseButtonStyles.sizes.sm,\n baseButtonStyles.styled,\n variantClasses\n ]);\n return (\n <span\n role={!isReadonly ? 'button' : undefined}\n class={classes}\n ref={ref}\n tabIndex={tabIndex}\n {...props}>\n {label}\n </span>\n );\n }\n);\n\nexport { StyledDatePickerButton };\n"],"names":["forwardRef","multiVariantStyles","classNames","baseButtonStyles","_jsx"],"mappings":";;;;;;;;;AAoFA;;AAEG;AACG,MAAA,sBAAsB,GAAGA,iBAAU,CACvC,CACE,EACE,WAAW,GAAG,KAAK,EACnB,UAAU,GAAG,KAAK,EAClB,eAAe,GAAG,KAAK,EACvB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GA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Runtime = require('preact/jsx-runtime');
|
|
5
|
-
var compat = require('preact/compat');
|
|
6
|
-
require('./FormContext-d1d05967.js');
|
|
7
|
-
var useFormContext = require('./useFormContext-a794f7b6.js');
|
|
8
|
-
var FormFieldContext = require('./FormFieldContext-69fe83d2.js');
|
|
9
|
-
var hooks = require('preact/hooks');
|
|
10
|
-
var useFocusableTextField = require('./useFocusableTextField-2c36840d.js');
|
|
11
|
-
var Label = require('./Label-670472a7.js');
|
|
12
|
-
require('./keyboardUtils-b42fe7d5.js');
|
|
13
|
-
var StyledTextField = require('./StyledTextField-d8c8a3bf.js');
|
|
14
|
-
|
|
15
|
-
var ReadonlyTextFieldInput = require('./ReadonlyTextFieldInput-00b3e796.js');
|
|
16
|
-
var TextField = require('./TextField-71dba81e.js');
|
|
17
|
-
var MaxLengthLiveRegion = require('./MaxLengthLiveRegion-cf615038.js');
|
|
18
|
-
require('./UNSAFE_TextField/themes/TextFieldStyles.css.js');
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
require('./UNSAFE_TextField/themes/redwood/TextFieldVariants.css.js');
|
|
24
|
-
var useTextField = require('./useTextField-6ecf97b7.js');
|
|
25
|
-
require('./logger-2b636482.js');
|
|
26
|
-
require('./TabbableModeContext-e99d527e.js');
|
|
27
|
-
var useId = require('./useId-6c0eeb27.js');
|
|
28
|
-
var useTranslationBundle = require('./useTranslationBundle-24c593f4.js');
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
require('./UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js');
|
|
32
|
-
var InlineUserAssistance = require('./InlineUserAssistance-74680664.js');
|
|
33
|
-
var CompactUserAssistance = require('./CompactUserAssistance-58a6899d.js');
|
|
34
|
-
var mergeProps = require('./mergeProps-e3da7237.js');
|
|
35
|
-
require('./LayerHost-f1a1533f.js');
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
require('./hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js');
|
|
39
|
-
require('./tooltipUtils-842e04c7.js');
|
|
40
|
-
require('preact');
|
|
41
|
-
|
|
42
|
-
require('./Popup-91e33a1d.js');
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
require('./UNSAFE_Label/themes/redwood/LabelVariants.css.js');
|
|
46
|
-
require('./InputGroupContext-05f2a46f.js');
|
|
47
|
-
var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
|
|
48
|
-
|
|
49
|
-
require('./UNSAFE_Popup/themes/redwood/PopupVariants.css.js');
|
|
50
|
-
var useLengthFilter = require('./useLengthFilter-d860b411.js');
|
|
51
|
-
var classNames = require('./classNames-c14c6ef3.js');
|
|
52
|
-
var usePress = require('./usePress-886180e4.js');
|
|
53
|
-
var useFormFieldContext = require('./useFormFieldContext-4632eb73.js');
|
|
54
|
-
|
|
55
|
-
var useCurrentValueReducer = require('./useCurrentValueReducer-f37ac024.js');
|
|
56
|
-
var useSelectableTextField = require('./useSelectableTextField-892b62db.js');
|
|
57
|
-
var formControlUtils = require('./formControlUtils-596c9dc3.js');
|
|
58
|
-
|
|
59
|
-
var hide = 'MaxLengthCounterStyles_hide__7dy9j71';
|
|
60
|
-
var maxLengthCounterBase = 'MaxLengthCounterStyles_maxLengthCounterBase__7dy9j70';
|
|
61
|
-
var spanStyles = 'MaxLengthCounterStyles_spanStyles__7dy9j72';
|
|
62
|
-
|
|
63
|
-
const noop = () => { };
|
|
64
|
-
function MaxLengthCounter({ maxLength, valueLength = 0, onClick }) {
|
|
65
|
-
const { isFocused } = useFormFieldContext.useFormFieldContext();
|
|
66
|
-
// We don't want mousedown on this component to do anything, so prevent the default behavior.
|
|
67
|
-
const killEvent = hooks.useCallback((event) => event.preventDefault(), []);
|
|
68
|
-
const textClasses = classNames.classNames([!isFocused && hide]);
|
|
69
|
-
const { pressProps } = usePress.usePress(onClick ?? noop);
|
|
70
|
-
return (jsxRuntime.jsx("div", { class: maxLengthCounterBase, onMouseDown: killEvent, ...pressProps, children: jsxRuntime.jsxs("span", { class: textClasses, children: [jsxRuntime.jsx("span", { class: spanStyles, children: valueLength }), jsxRuntime.jsx("span", { class: spanStyles, children: "/" }), jsxRuntime.jsx("span", { class: spanStyles, children: maxLength })] }) }));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* A text area displays a field that allows a user to enter a multi-line text value.
|
|
75
|
-
*/
|
|
76
|
-
const TextArea = compat.forwardRef(({ 'aria-describedby': ariaDescribedBy, assistiveText, autoComplete = 'off', autoFocus = false, columnSpan, helpSourceLink, helpSourceText, isDisabled: propIsDisabled, isReadonly: propIsReadonly, isRequired = false, isRequiredShown, label, labelEdge: propLabelEdge, labelStartWidth: propLabelStartWidth, maxLength, maxLengthCounter = 'remaining', maxLengthUnit, messages, placeholder, resize, role, rows, textAlign: propTextAlign, userAssistanceDensity: propUserAssistanceDensity, value, variant = 'default', onInput, onCommit, testId }, ref) => {
|
|
77
|
-
const translations = useTranslationBundle.useTranslationBundle('@oracle/oraclejet-preact');
|
|
78
|
-
const formControl_limitReached = maxLength
|
|
79
|
-
? translations.formControl_limitReached({
|
|
80
|
-
CHARACTER_LIMIT: maxLength
|
|
81
|
-
})
|
|
82
|
-
: '';
|
|
83
|
-
const { currentCommitValue, dispatch } = useCurrentValueReducer.useCurrentValueReducer({ value });
|
|
84
|
-
const onInputAndDispatch = compat.useCallback((detail) => {
|
|
85
|
-
// Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)
|
|
86
|
-
dispatch({ type: 'input', payload: detail.value });
|
|
87
|
-
onInput?.(detail);
|
|
88
|
-
}, [onInput, dispatch]);
|
|
89
|
-
const onCommitAndDispatch = compat.useCallback((detail) => {
|
|
90
|
-
// Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)
|
|
91
|
-
dispatch({ type: 'commit', payload: detail.value });
|
|
92
|
-
onCommit?.(detail);
|
|
93
|
-
}, [onCommit, dispatch]);
|
|
94
|
-
const { isDisabled: isFormDisabled, isReadonly: isFormReadonly, labelEdge: formLabelEdge, labelStartWidth: formLabelStartWidth, textAlign: formTextAlign, userAssistanceDensity: formUserAssistanceDensity } = useFormContext.useFormContext();
|
|
95
|
-
// default to FormContext values if component properties are not specified
|
|
96
|
-
const isDisabled = propIsDisabled ?? isFormDisabled;
|
|
97
|
-
const isReadonly = propIsReadonly ?? isFormReadonly;
|
|
98
|
-
const labelEdge = propLabelEdge ?? formLabelEdge;
|
|
99
|
-
const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;
|
|
100
|
-
const textAlign = propTextAlign ?? formTextAlign ?? formControlUtils.defaultTextAlignForVariant(variant);
|
|
101
|
-
const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;
|
|
102
|
-
const maxLengthDescribedByIdRef = compat.useRef(useId.useId());
|
|
103
|
-
// The enabledAriaDescribedBy includes the maxLengthDescribedById in addition to what was passed in to aria-describedby.
|
|
104
|
-
// We don't need to announce the max length message for readonly, as it only applies when editing the value.
|
|
105
|
-
const enabledAriaDescribedBy = ariaDescribedBy
|
|
106
|
-
? `${ariaDescribedBy} ${maxLengthDescribedByIdRef.current}`
|
|
107
|
-
: maxLengthDescribedByIdRef.current;
|
|
108
|
-
const enabledElementRef = compat.useRef(null);
|
|
109
|
-
const readonlyElementRef = compat.useRef(null);
|
|
110
|
-
const { focusProps, isFocused, methods: focusMethods } = useFocusableTextField.useFocusableTextField({
|
|
111
|
-
isDisabled,
|
|
112
|
-
isReadonly,
|
|
113
|
-
enabledElementRef,
|
|
114
|
-
readonlyElementRef
|
|
115
|
-
});
|
|
116
|
-
const { methods: selectMethods } = useSelectableTextField.useSelectableTextField(enabledElementRef);
|
|
117
|
-
compat.useImperativeHandle(ref, () => mergeProps.mergeProps(focusMethods, selectMethods), [
|
|
118
|
-
focusMethods,
|
|
119
|
-
selectMethods
|
|
120
|
-
]);
|
|
121
|
-
// Handle length filter for user-typed inputs and controlled inputs
|
|
122
|
-
const { isMaxLengthExceeded, isMaxLengthReached, valueLength, onFilteredInput } = useLengthFilter.useLengthFilter({
|
|
123
|
-
maxLength,
|
|
124
|
-
maxLengthUnit,
|
|
125
|
-
value,
|
|
126
|
-
onInput: onInputAndDispatch,
|
|
127
|
-
onCommit: onCommitAndDispatch
|
|
128
|
-
});
|
|
129
|
-
const limitMessage = [{ detail: formControl_limitReached, severity: 'info' }];
|
|
130
|
-
const allMessages = [
|
|
131
|
-
...(messages ?? []),
|
|
132
|
-
...(isMaxLengthReached ? limitMessage : [])
|
|
133
|
-
];
|
|
134
|
-
const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } = useTextField.useTextField({
|
|
135
|
-
ariaDescribedBy: isReadonly || isDisabled ? ariaDescribedBy : enabledAriaDescribedBy,
|
|
136
|
-
contentVariant: 'textarea',
|
|
137
|
-
helpSourceLink,
|
|
138
|
-
helpSourceText,
|
|
139
|
-
isDisabled,
|
|
140
|
-
isFocused,
|
|
141
|
-
isReadonly,
|
|
142
|
-
isRequiredShown,
|
|
143
|
-
labelEdge,
|
|
144
|
-
messages: allMessages,
|
|
145
|
-
styleVariant: variant,
|
|
146
|
-
userAssistanceDensity,
|
|
147
|
-
value
|
|
148
|
-
});
|
|
149
|
-
const onClickCounter = compat.useCallback(() => {
|
|
150
|
-
const elm = enabledElementRef.current;
|
|
151
|
-
// for setSelectionRange(), len needs to be a number or null.
|
|
152
|
-
const len = elm ? elm.value.length : null;
|
|
153
|
-
// Since the counter element is after the text, clicking in this
|
|
154
|
-
// should put the selection at the end of the text
|
|
155
|
-
enabledElementRef.current?.setSelectionRange(len, len);
|
|
156
|
-
// Clicking the counter should put the focus on the input field
|
|
157
|
-
enabledElementRef.current?.focus();
|
|
158
|
-
}, [enabledElementRef]);
|
|
159
|
-
const labelComp = labelEdge !== 'none' ? jsxRuntime.jsx(Label.Label, { ...labelProps, children: label }) : undefined;
|
|
160
|
-
const fieldLabelProps = {
|
|
161
|
-
label: labelEdge !== 'none' ? labelComp : undefined,
|
|
162
|
-
labelEdge: labelEdge !== 'none' ? labelEdge : undefined,
|
|
163
|
-
labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined,
|
|
164
|
-
labelText: labelEdge === 'inside' && !isDisabled ? label : undefined
|
|
165
|
-
};
|
|
166
|
-
const ariaLabel = labelEdge === 'none' ? label : undefined;
|
|
167
|
-
const isInlineDensity = userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';
|
|
168
|
-
const inlineUserAssistance = isInlineDensity ? (isDisabled ? (
|
|
169
|
-
// save space for user assistance if density is 'efficient', even though we don't
|
|
170
|
-
// render user assistance for disabled fields
|
|
171
|
-
userAssistanceDensity !== 'efficient' ? undefined : (jsxRuntime.jsx(InlineUserAssistance.InlineUserAssistance, { userAssistanceDensity: userAssistanceDensity, ...userAssistanceProps }))) : isReadonly ? (jsxRuntime.jsx(InlineUserAssistance.InlineUserAssistance, { fieldLabel: label, messages: messages, userAssistanceDensity: userAssistanceDensity, ...userAssistanceProps })) : (jsxRuntime.jsx(InlineUserAssistance.InlineUserAssistance, { assistiveText: assistiveText, fieldLabel: label, helpSourceLink: helpSourceLink, helpSourceText: helpSourceText, messages: allMessages, isRequiredShown: isRequiredShown, userAssistanceDensity: userAssistanceDensity, ...userAssistanceProps }))) : undefined;
|
|
172
|
-
const anchorRef = compat.useRef(null);
|
|
173
|
-
const compactUserAssistance = userAssistanceDensity === 'compact' ? (jsxRuntime.jsx(CompactUserAssistance.CompactUserAssistance, { anchorRef: anchorRef, messages: allMessages, assistiveText: assistiveText, ...userAssistanceProps })) : undefined;
|
|
174
|
-
if (isReadonly) {
|
|
175
|
-
const mainContent = (jsxRuntime.jsx(ReadonlyTextFieldInput.ReadonlyTextFieldInput, { "aria-describedby": inputProps['aria-describedby'], "aria-label": ariaLabel, "aria-labelledby": labelProps.id, as: "textarea", elementRef: readonlyElementRef, formVariant: variant, rows: rows, autoFocus: autoFocus, textAlign: textAlign, value: value, variant: "textarea", hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: label !== undefined && labelEdge === 'inside', onBlur: inputProps.onBlur, onFocus: inputProps.onFocus }));
|
|
176
|
-
return (jsxRuntime.jsx(FormFieldContext.FormFieldContext.Provider, { value: formFieldContext, children: jsxRuntime.jsx(StyledTextField.ReadonlyTextField, { role: "presentation", columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, ref: anchorRef, testId: testId, variant: "textarea", mainContent: mainContent, resize: resize, ...fieldLabelProps }) }));
|
|
177
|
-
}
|
|
178
|
-
const hasMaxLength = maxLength !== undefined;
|
|
179
|
-
const mainContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(StyledTextField.TextFieldInput, { as: "textarea", "aria-label": ariaLabel, autoComplete: autoComplete, autoFocus: autoFocus, currentCommitValue: currentCommitValue, hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: labelComp !== undefined && labelEdge === 'inside', isRequired: isRequired, inputRef: enabledElementRef, onCommit: onCommitAndDispatch, onInput: onFilteredInput, placeholder: placeholder, role: role, rows: rows, textAlign: textAlign, value: value, ...inputProps }), maxLengthCounter === 'remaining' && hasMaxLength && (jsxRuntime.jsx(MaxLengthCounter, { maxLength: maxLength, valueLength: valueLength, onClick: onClickCounter })), hasMaxLength && (jsxRuntime.jsx(HiddenAccessible.HiddenAccessible, { id: maxLengthDescribedByIdRef.current, isHidden: true, children: translations.formControl_maxLength({
|
|
180
|
-
MAX_LENGTH: `${maxLength}`
|
|
181
|
-
}) })), hasMaxLength && isFocused && (jsxRuntime.jsx(MaxLengthLiveRegion.MaxLengthLiveRegion, { isMaxLengthExceeded: isMaxLengthExceeded, maxLength: maxLength, valueLength: valueLength, testId: testId ? testId + '_maxLength' : undefined }))] }));
|
|
182
|
-
return (jsxRuntime.jsx(FormFieldContext.FormFieldContext.Provider, { value: formFieldContext, children: jsxRuntime.jsx(TextField.TextField, { mainContent: mainContent, columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, onBlur: focusProps?.onFocusOut, onFocus: focusProps?.onFocusIn, mainFieldRef: anchorRef, resize: resize, testId: testId, ...textFieldProps, ...fieldLabelProps }) }));
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
exports.MaxLengthCounter = MaxLengthCounter;
|
|
186
|
-
exports.TextArea = TextArea;
|
|
187
|
-
//# sourceMappingURL=TextArea-8608dba1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea-8608dba1.js","sources":["../../src/UNSAFE_TextArea/MaxLengthCounter.tsx","../../src/UNSAFE_TextArea/TextArea.tsx"],"sourcesContent":["import { useCallback } from 'preact/hooks';\n\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { hide, maxLengthCounterBase, spanStyles } from './MaxLengthCounterStyles.css';\n\ntype Props = {\n maxLength: number;\n valueLength?: number;\n onClick?: () => void; // the calling component should focus on the appropriate element when clicked.\n};\n\nconst noop = () => {};\n\nexport function MaxLengthCounter({ maxLength, valueLength = 0, onClick }: Props) {\n const { isFocused } = useFormFieldContext();\n // We don't want mousedown on this component to do anything, so prevent the default behavior.\n const killEvent = useCallback((event: Event) => event.preventDefault(), []);\n const textClasses = classNames([!isFocused && hide]);\n const { pressProps } = usePress(onClick ?? noop);\n return (\n <div class={maxLengthCounterBase} onMouseDown={killEvent} {...pressProps}>\n <span class={textClasses}>\n <span class={spanStyles}>{valueLength}</span>\n <span class={spanStyles}>/</span>\n <span class={spanStyles}>{maxLength}</span>\n </span>\n </div>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from 'preact/compat';\n\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { FocusableHandle, useFocusableTextField } from '#hooks/UNSAFE_useFocusableTextField';\nimport { Label } from '#UNSAFE_Label';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '#UNSAFE_TextField';\nimport { useTextField } from '#hooks/UNSAFE_useTextField';\nimport {\n CompactUserAssistance,\n InlineUserAssistance,\n UserAssistanceDensityType\n} from '#UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '#hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '#UNSAFE_TextField';\nimport { MaxLengthCounter } from './MaxLengthCounter';\nimport { Size } from '#utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '#hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { ComponentMessageItem } from '#UNSAFE_ComponentMessage';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { defaultTextAlignForVariant } from '#utils/PRIVATE_formControlUtils';\n\ntype TextFieldProps = ComponentProps<typeof TextField>;\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = TestIdProps & {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: TextFieldInputProps['aria-describedby'];\n\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Determines whether the remaining number of characters that can be entered is shown or not.\n */\n maxLengthCounter?: 'none' | 'remaining';\n /**\n * Specifies how the input text characters are to be counted when maxLength is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how the user is allowed to manually resize the TextArea component.\n */\n resize?: TextFieldProps['resize'];\n /**\n * Specifies the ARIA role type.\n */\n role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\n */\n rows?: TextFieldInputProps['rows'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'compact'</code>: Messages, help, hints, and required will not be shown inline; they will show in a mode that keeps the screen more compact, like a popup for the messages, and a required icon to indicate Required. </li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * Callback invoked when the user commits the entered value by blurring out of the field.\n */\n onCommit?: TextFieldInputProps['onCommit'];\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n};\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\n/**\n * A text area displays a field that allows a user to enter a multi-line text value.\n */\nexport const TextArea = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n columnSpan,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthCounter = 'remaining',\n maxLengthUnit,\n messages,\n placeholder,\n resize,\n role,\n rows,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit,\n testId\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const formControl_limitReached = maxLength\n ? translations.formControl_limitReached({\n CHARACTER_LIMIT: maxLength\n })\n : '';\n\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit, dispatch]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign ?? defaultTextAlignForVariant(variant);\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n const maxLengthDescribedByIdRef = useRef<string>(useId());\n // The enabledAriaDescribedBy includes the maxLengthDescribedById in addition to what was passed in to aria-describedby.\n // We don't need to announce the max length message for readonly, as it only applies when editing the value.\n const enabledAriaDescribedBy = ariaDescribedBy\n ? `${ariaDescribedBy} ${maxLengthDescribedByIdRef.current}`\n : maxLengthDescribedByIdRef.current;\n\n const enabledElementRef = useRef<HTMLTextAreaElement>(null);\n const readonlyElementRef = useRef<HTMLTextAreaElement>(null);\n\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLTextAreaElement, HTMLTextAreaElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef\n });\n\n const { methods: selectMethods } =\n useSelectableTextField<HTMLTextAreaElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, isMaxLengthReached, valueLength, onFilteredInput } =\n useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const limitMessage = [{ detail: formControl_limitReached, severity: 'info' }];\n const allMessages = [\n ...(messages ?? []),\n ...(isMaxLengthReached ? limitMessage : [])\n ] as ComponentMessageItem[];\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy: isReadonly || isDisabled ? ariaDescribedBy : enabledAriaDescribedBy,\n contentVariant: 'textarea',\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages: allMessages,\n styleVariant: variant,\n userAssistanceDensity,\n value\n });\n\n const onClickCounter = useCallback(() => {\n const elm = enabledElementRef.current;\n // for setSelectionRange(), len needs to be a number or null.\n const len = elm ? elm.value.length : null;\n // Since the counter element is after the text, clicking in this\n // should put the selection at the end of the text\n enabledElementRef.current?.setSelectionRange(len, len);\n // Clicking the counter should put the focus on the input field\n enabledElementRef.current?.focus();\n }, [enabledElementRef]);\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined,\n labelText: labelEdge === 'inside' && !isDisabled ? label : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : isReadonly ? (\n <InlineUserAssistance\n fieldLabel={label}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={allMessages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const anchorRef = useRef<HTMLDivElement>(null);\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={allMessages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n if (isReadonly) {\n const mainContent = (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"textarea\"\n elementRef={readonlyElementRef}\n formVariant={variant}\n rows={rows}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n onBlur={inputProps.onBlur}\n onFocus={inputProps.onFocus}\n />\n );\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n ref={anchorRef}\n testId={testId}\n variant=\"textarea\"\n mainContent={mainContent}\n resize={resize}\n {...fieldLabelProps}\n />\n </FormFieldContext.Provider>\n );\n }\n const hasMaxLength = maxLength !== undefined;\n const mainContent = (\n <>\n <TextFieldInput\n as=\"textarea\"\n aria-label={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n isRequired={isRequired}\n inputRef={enabledElementRef}\n onCommit={onCommitAndDispatch}\n onInput={onFilteredInput}\n placeholder={placeholder}\n role={role}\n rows={rows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && hasMaxLength && (\n <MaxLengthCounter\n maxLength={maxLength}\n valueLength={valueLength}\n onClick={onClickCounter}\n />\n )}\n {hasMaxLength && (\n <HiddenAccessible id={maxLengthDescribedByIdRef.current} isHidden={true}>\n {translations.formControl_maxLength({\n MAX_LENGTH: `${maxLength}`\n })}\n </HiddenAccessible>\n )}\n {hasMaxLength && isFocused && (\n <MaxLengthLiveRegion\n isMaxLengthExceeded={isMaxLengthExceeded}\n maxLength={maxLength}\n valueLength={valueLength}\n testId={testId ? testId + '_maxLength' : undefined}\n />\n )}\n </>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onFocusOut}\n onFocus={focusProps?.onFocusIn}\n mainFieldRef={anchorRef}\n resize={resize}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["useFormFieldContext","useCallback","classNames","usePress","_jsx","_jsxs","forwardRef","useTranslationBundle","useCurrentValueReducer","useFormContext","defaultTextAlignForVariant","useRef","useId","useFocusableTextField","useSelectableTextField","useImperativeHandle","mergeProps","useLengthFilter","useTextField","Label","InlineUserAssistance","CompactUserAssistance","ReadonlyTextFieldInput","FormFieldContext","ReadonlyTextField","_Fragment","TextFieldInput","HiddenAccessible","MaxLengthLiveRegion","TextField"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAM,IAAI,GAAG,MAAK,GAAG,CAAC;AAEhB,SAAU,gBAAgB,CAAC,EAAE,SAAS,EAAE,WAAW,GAAG,CAAC,EAAE,OAAO,EAAS,EAAA;AAC7E,IAAA,MAAM,EAAE,SAAS,EAAE,GAAGA,uCAAmB,EAAE,CAAC;;AAE5C,IAAA,MAAM,SAAS,GAAGC,iBAAW,CAAC,CAAC,KAAY,KAAK,KAAK,CAAC,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,MAAM,WAAW,GAAGC,qBAAU,CAAC,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC;IACrD,MAAM,EAAE,UAAU,EAAE,GAAGC,iBAAQ,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;AACjD,IAAA,QACEC,cAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAM,GAAA,UAAU,YACtEC,eAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,WAAW,EAAA,QAAA,EAAA,CACtBD,yBAAM,KAAK,EAAE,UAAU,EAAA,QAAA,EAAG,WAAW,EAAQ,CAAA,EAC7CA,yBAAM,KAAK,EAAE,UAAU,EAAU,QAAA,EAAA,GAAA,EAAA,CAAA,EACjCA,yBAAM,KAAK,EAAE,UAAU,EAAG,QAAA,EAAA,SAAS,GAAQ,CACtC,EAAA,CAAA,EAAA,CACH,EACN;AACJ;;AC2JA;;AAEG;MACU,QAA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G,EAAA,SAAS,CAAE,CAAA;AAC3B,iBAAA,CAAC,GACe,CACpB,EACA,YAAY,IAAI,SAAS,KACxBvB,cAAA,CAACwB,uCAAmB,EAAA,EAClB,mBAAmB,EAAE,mBAAmB,EACxC,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAClD,CACH,CAAA,EAAA,CACA,CACJ,CAAC;IAEF,QACExB,cAAC,CAAAmB,iCAAgB,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,gBAAgB,EAChD,QAAA,EAAAnB,cAAA,CAACyB,mBAAS,EAAA,EACR,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,EAC1C,MAAM,EAAE,UAAU,EAAE,UAAU,EAC9B,OAAO,EAAE,UAAU,EAAE,SAAS,EAC9B,YAAY,EAAE,SAAS,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EAAA,GACV,cAAc,EAAA,GACd,eAAe,EAAA,CAAc,EACT,CAAA,EAC5B;AACJ,CAAC;;;;;"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
import { jsx } from 'preact/jsx-runtime';
|
|
3
|
-
import { createContext, toChildArray } from 'preact';
|
|
4
|
-
import { useContext, useMemo } from 'preact/hooks';
|
|
5
|
-
import { forwardRef } from 'preact/compat';
|
|
6
|
-
import './FormContext-55fb8000.js';
|
|
7
|
-
import { u as useFormContext } from './useFormContext-bb9dc478.js';
|
|
8
|
-
import { F as FormFieldContext } from './FormFieldContext-47ca0c20.js';
|
|
9
|
-
import { u as useFormFieldContextProps } from './useFormFieldContextProps-31bbc12f.js';
|
|
10
|
-
import './CheckboxSetStyles.styles.css';
|
|
11
|
-
import { u as useId } from './useId-03dbfdf0.js';
|
|
12
|
-
import { C as CheckboxRadioField } from './CheckboxRadioField-4ca01498.js';
|
|
13
|
-
|
|
14
|
-
const CheckboxSetContext = createContext({});
|
|
15
|
-
const useCheckboxSetContext = () => useContext(CheckboxSetContext);
|
|
16
|
-
|
|
17
|
-
var styles = {ul:'CheckboxSetStyles_styles_ul__68p6630'};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A CheckboxSet allows the user to select one or more options from a set.
|
|
21
|
-
*/
|
|
22
|
-
const CheckboxSet = forwardRef(({ 'aria-describedby': ariaDescribedBy, assistiveText, columnSpan, direction = 'column', helpSourceLink, helpSourceText, isDisabled: propIsDisabled, isReadonly: propIsReadonly, isRequired = false, label, labelEdge: propLabelEdge, labelStartWidth: propLabelStartWidth, messages, onCommit, userAssistanceDensity: propUserAssistanceDensity, value, children, testId }, ref) => {
|
|
23
|
-
const hasValue = value !== undefined ? value.size > 0 : false;
|
|
24
|
-
const baseId = useId();
|
|
25
|
-
const { isDisabled: isFormDisabled, isReadonly: isFormReadonly, labelEdge: formLabelEdge, labelStartWidth: formLabelStartWidth, userAssistanceDensity: formUserAssistanceDensity } = useFormContext();
|
|
26
|
-
// default to FormContext values if component properties are not specified
|
|
27
|
-
const isDisabled = propIsDisabled ?? isFormDisabled;
|
|
28
|
-
const isReadonly = propIsReadonly ?? isFormReadonly;
|
|
29
|
-
const labelEdge = propLabelEdge ?? formLabelEdge;
|
|
30
|
-
const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;
|
|
31
|
-
const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;
|
|
32
|
-
const formFieldContext = useFormFieldContextProps({
|
|
33
|
-
hasValue,
|
|
34
|
-
isDisabled,
|
|
35
|
-
isReadonly
|
|
36
|
-
});
|
|
37
|
-
const checkboxSetContext = useMemo(() => ({
|
|
38
|
-
name: baseId,
|
|
39
|
-
value,
|
|
40
|
-
onCommit
|
|
41
|
-
}), [baseId, onCommit, value]);
|
|
42
|
-
// wrap each CheckboxItem in an <li> tag and the entire set with <ul>
|
|
43
|
-
const childrenArray = toChildArray(children).filter(Boolean);
|
|
44
|
-
const wrappedChildren = childrenArray.map((item) => jsx("li", { children: item }));
|
|
45
|
-
return (jsx(FormFieldContext.Provider, { value: formFieldContext, children: jsx(CheckboxRadioField, { "aria-describedby": ariaDescribedBy, assistiveText: assistiveText, baseId: baseId, columnSpan: columnSpan, direction: direction, helpSourceLink: helpSourceLink, helpSourceText: helpSourceText, isDisabled: isDisabled, isReadonly: isReadonly, isRequired: isRequired, label: label, labelEdge: labelEdge, labelStartWidth: labelStartWidth, parentComponentVariant: "checkboxSet", messages: messages, userAssistanceDensity: userAssistanceDensity, hasValue: hasValue, role: "group", testId: testId, ref: ref, children: jsx(CheckboxSetContext.Provider, { value: checkboxSetContext, children: jsx("ul", { className: styles.ul, children: wrappedChildren }) }) }) }));
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
export { CheckboxSet as C, CheckboxSetContext as a, useCheckboxSetContext as u };
|
|
49
|
-
//# sourceMappingURL=CheckboxSet-751d4298.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxSet-751d4298.js","sources":["../../src/UNSAFE_CheckboxSet/CheckboxSetContext.ts","../../src/UNSAFE_CheckboxSet/CheckboxSet.tsx"],"sourcesContent":["import { createContext } from 'preact';\nimport { useContext } from 'preact/hooks';\n\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\n\ntype CheckboxSetContextValue = {\n name: string;\n value?: Set<string | number>;\n onCommit?: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n};\n\nconst CheckboxSetContext = createContext<CheckboxSetContextValue>({} as CheckboxSetContextValue);\nconst useCheckboxSetContext = () => useContext(CheckboxSetContext);\n\nexport { CheckboxSetContext, useCheckboxSetContext };\n","import { ComponentChildren, ComponentProps, Ref, toChildArray, JSX } from 'preact';\nimport { useMemo } from 'preact/hooks';\nimport { forwardRef } from 'preact/compat';\n\nimport { CheckboxSetContext } from './CheckboxSetContext';\nimport { CheckboxRadioField } from '#PRIVATE_CheckboxRadioField';\nimport { InlineUserAssistance, UserAssistanceDensityType } from '#UNSAFE_UserAssistance';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useFormFieldContextProps } from '#hooks/UNSAFE_useFormFieldContextProps';\nimport { FlexboxProps } from '#utils/UNSAFE_interpolations/flexbox';\nimport { Size } from '#utils/UNSAFE_size';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport { styles } from './CheckboxSetStyles.css';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport { TestIdProps } from '#hooks/UNSAFE_useTestId';\n\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: UnpackSignals<JSX.AriaAttributes>['aria-describedby'];\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * set of CheckboxItems\n */\n children: ComponentChildren;\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * layout direction of the children elements\n */\n direction?: FlexboxProps['direction'];\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the checkbox set requires a selection to be made.\n */\n isRequired?: boolean;\n /**\n * Specifies if the checkbox set is read-only.\n */\n isReadonly?: boolean;\n /**\n * Specifies if the checkbox set is disabled.\n */\n isDisabled?: boolean;\n /**\n * Label text for the group of checkbox items.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'none' | 'top' | 'start' | 'inside';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>.\n */\n labelStartWidth?: Size;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Callback invoked each time the user changes selected option.\n */\n onCommit: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'compact'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * Value of the selected checkbox option.\n */\n value?: Set<string | number>;\n} & TestIdProps;\n/**\n * A CheckboxSet allows the user to select one or more options from a set.\n */\nexport const CheckboxSet = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n columnSpan,\n direction = 'column',\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n messages,\n onCommit,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n children,\n testId\n }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const hasValue = value !== undefined ? value.size > 0 : false;\n const baseId = useId();\n\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const formFieldContext = useFormFieldContextProps({\n hasValue,\n isDisabled,\n isReadonly\n });\n\n const checkboxSetContext = useMemo(\n () => ({\n name: baseId,\n value,\n onCommit\n }),\n [baseId, onCommit, value]\n );\n\n // wrap each CheckboxItem in an <li> tag and the entire set with <ul>\n const childrenArray = toChildArray(children).filter(Boolean);\n const wrappedChildren = childrenArray.map((item) => <li>{item}</li>);\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <CheckboxRadioField\n aria-describedby={ariaDescribedBy}\n assistiveText={assistiveText}\n baseId={baseId}\n columnSpan={columnSpan}\n direction={direction}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isRequired={isRequired}\n label={label}\n labelEdge={labelEdge}\n labelStartWidth={labelStartWidth}\n parentComponentVariant=\"checkboxSet\"\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n hasValue={hasValue}\n role=\"group\"\n testId={testId}\n ref={ref}>\n <CheckboxSetContext.Provider value={checkboxSetContext}>\n <ul className={styles.ul}>{wrappedChildren}</ul>\n </CheckboxSetContext.Provider>\n </CheckboxRadioField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;AAWA,MAAM,kBAAkB,GAAG,aAAa,CAA0B,EAA6B,EAAE;AAC3F,MAAA,qBAAqB,GAAG,MAAM,UAAU,CAAC,kBAAkB;;;;ACwFjE;;AAEG;AACI,MAAM,WAAW,GAAG,UAAU,CACnC,CACE,EACE,kBAAkB,EAAE,eAAe,EACnC,aAAa,EACb,UAAU,EACV,SAAS,GAAG,QAAQ,EACpB,cAAc,EACd,cAAc,EACd,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,cAAc,E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I,KAAKA,GAAA,CAAA,IAAA,EAAA,EAAA,QAAA,EAAK,IAAI,EAAA,CAAM,CAAC,CAAC;IAErE,QACEA,GAAC,CAAA,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,gBAAgB,EAAA,QAAA,EAChDA,GAAC,CAAA,kBAAkB,wBACC,eAAe,EACjC,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,sBAAsB,EAAC,aAAa,EACpC,QAAQ,EAAE,QAAQ,EAClB,qBAAqB,EAAE,qBAAqB,EAC5C,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,QAAA,EAAAA,GAAA,CAAC,kBAAkB,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE,kBAAkB,EAAA,QAAA,EACpDA,YAAI,SAAS,EAAE,MAAM,CAAC,EAAE,EAAA,QAAA,EAAG,eAAe,EAAA,CAAM,EACpB,CAAA,EAAA,CACX,EACK,CAAA,EAC5B;AACJ,CAAC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyledDatePickerButton-444aa824.js","sources":["../../src/PRIVATE_StyledDatePickerButton/StyledDatePickerButton.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 { multiVariantStyles } from './themes/StyledDatePickerButtonStyles.css';\nimport { styles as baseButtonStyles } from '../UNSAFE_BaseButton/themes/BaseButtonStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { forwardRef } from 'preact/compat';\nimport type { Ref, JSX } from 'preact';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\n\ntype IntrinsicProps = Pick<UnpackSignals<JSX.HTMLAttributes<HTMLElement>>, 'onClick' | 'onKeyDown'>;\n\ntype AriaProps = {\n 'aria-label'?: UnpackSignals<JSX.AriaAttributes>['aria-label'];\n 'aria-disabled'?: UnpackSignals<JSX.AriaAttributes>['aria-disabled'];\n};\n\ntype Props = IntrinsicProps &\n AriaProps & {\n /**\n * Specifies that the button appears activated when the user activates the StyledDatePickerButton.\n * When true, adds the :active selector to the button so that it can show active styling.\n * Combine this property with the other properties to get the styling you want.\n */\n isActivable?: boolean;\n /**\n * Specifies the styling of the button to look dimmed.\n * Combine this property with the other properties to get the styling you want.\n */\n isDimmed?: boolean;\n /**\n * Specifies the styling of the button to look hidden, that is, visibility: hidden.\n */\n isHidden?: boolean;\n /**\n * Specifies that the button appears hovered when the user hovers over the StyledDatePickerButton.\n * When true, adds the :hover selector to the button so that it can show hover styling.\n * Combine this property with the other properties to get the styling you want.\n */\n isHoverable?: boolean;\n /**\n * Specifies the styling of the button to look like a day that is adjacent to the current month.\n * Combine this property with the other properties to get the styling you want.\n */\n isAdjacentMonth?: boolean;\n /**\n * Specifies the role of the day cell to be 'button' when isReadonly is false, or no role when isReadonly is true.\n * This helps the screenreader.\n */\n isReadonly?: boolean;\n /**\n * Specifies the styling of the button to look like it is restricted.\n * Combine this property with the other properties to get the styling you want.\n */\n isRestricted?: boolean;\n /**\n * Specifies the styling of the button to look like it is selected.\n * Combine this property with the other properties to get the styling you want.\n */\n isSelected?: boolean;\n /**\n * Specifies the styling of the button to look like it is today.\n * Combine this property with the other properties to get the styling you want.\n */\n isToday?: boolean;\n /**\n * Specifies the label of the day button. This will be the day of the month.\n */\n label: string;\n /**\n * Specifies the tabIndex.\n */\n tabIndex?: 0 | -1;\n /**\n * Specifies the visual variant for the StyledDatePickerButton.\n */\n variant?: 'day' | 'month' | 'year';\n };\n\n/**\n * StyledDatePickerButton is a controlled component that displays a stylized span for a button that goes into a DatePicker.\n */\nconst StyledDatePickerButton = forwardRef(\n (\n {\n isActivable = false,\n isReadonly = false,\n isAdjacentMonth = false,\n isDimmed = false,\n isHidden = false,\n isHoverable = false,\n isRestricted = false,\n isSelected = false,\n isToday = false,\n tabIndex,\n label,\n variant,\n ...props\n }: Props,\n ref: Ref<HTMLSpanElement> = null\n ) => {\n // The multiVariantStyles function is defined in StyledDatePickerButtonStyles.css.ts,\n // using the recipe utility provided by @vanilla-extract/recipes.\n // This function is used to merge the base styles, variants, and compound variants\n // into a single set of styles for components based on the component's properties.\n const variantClasses = multiVariantStyles({\n active: isActivable ? 'isActivable' : 'notActiveable',\n dimmed: isDimmed ? 'isDimmed' : 'notDimmed',\n hidden: isHidden ? 'isHidden' : 'notHidden',\n hover: isHoverable ? 'isHoverable' : 'notHoverable',\n adjacentMonth: isAdjacentMonth ? 'isAdjacentMonth' : 'notAdjacentMonth',\n restricted: isRestricted ? 'isRestricted' : 'notRestricted',\n selected: isSelected ? 'isSelected' : 'notSelected',\n today: isToday ? 'isToday' : 'notToday',\n variant\n });\n\n const classes = classNames([\n baseButtonStyles.base,\n baseButtonStyles.sizes.sm,\n baseButtonStyles.styled,\n variantClasses\n ]);\n return (\n <span\n role={!isReadonly ? 'button' : undefined}\n class={classes}\n ref={ref}\n tabIndex={tabIndex}\n {...props}>\n {label}\n </span>\n );\n }\n);\n\nexport { StyledDatePickerButton };\n"],"names":["baseButtonStyles","_jsx"],"mappings":";;;;;;;AAoFA;;AAEG;AACG,MAAA,sBAAsB,GAAG,UAAU,CACvC,CACE,EACE,WAAW,GAAG,KAAK,EACnB,UAAU,GAAG,KAAK,EAClB,eAAe,GAAG,KAAK,EACvB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG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