@oracle/oraclejet-preact 14.0.7 → 14.0.8
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/Badge-5724474e.js +2 -0
- package/amd/{Badge-3a3bc336.js.map → Badge-5724474e.js.map} +1 -1
- package/amd/BaseButton-19147e28.js +2 -0
- package/amd/{BaseButton-20a653f3.js.map → BaseButton-19147e28.js.map} +1 -1
- package/amd/Button-a416ba53.js +2 -0
- package/{cjs/Button-6d645302.js.map → amd/Button-a416ba53.js.map} +1 -1
- package/amd/Chip-131e9a76.js +2 -0
- package/{cjs/Chip-a6ecbefc.js.map → amd/Chip-131e9a76.js.map} +1 -1
- package/amd/ClearIcon-598a77ae.js +2 -0
- package/amd/{ClearIcon-27a5c275.js.map → ClearIcon-598a77ae.js.map} +1 -1
- package/amd/Collection-ee1012a2.js +2 -0
- package/amd/{Collection-55b75a82.js.map → Collection-ee1012a2.js.map} +1 -1
- package/amd/ComponentMessage-630becdf.js +2 -0
- package/amd/{ComponentMessage-5603259e.js.map → ComponentMessage-630becdf.js.map} +1 -1
- package/amd/ComponentMessageContainer-11b0304c.js +2 -0
- package/{cjs/ComponentMessageContainer-c0c21e1b.js.map → amd/ComponentMessageContainer-11b0304c.js.map} +1 -1
- package/amd/Divider-09385658.js +2 -0
- package/amd/{Divider-8cd412fd.js.map → Divider-09385658.js.map} +1 -1
- package/amd/FilePicker-8bf23b98.js +2 -0
- package/amd/{FilePicker-bb70dacb.js.map → FilePicker-8bf23b98.js.map} +1 -1
- package/amd/Flex-1da2d394.js +2 -0
- package/amd/{Flex-7762d39c.js.map → Flex-1da2d394.js.map} +1 -1
- package/amd/Floating-de2b8be5.js +2 -0
- package/amd/{Floating-08ac18d2.js.map → Floating-de2b8be5.js.map} +1 -1
- package/amd/FocusTrap-e0295e15.js +2 -0
- package/amd/{FocusTrap-420f2714.js.map → FocusTrap-e0295e15.js.map} +1 -1
- package/amd/FormControlUtils-32ad4902.js +2 -0
- package/amd/{FormControlUtils-802d298a.js.map → FormControlUtils-32ad4902.js.map} +1 -1
- package/amd/Heading-120a3ae0.js +2 -0
- package/amd/{Heading-431829e1.js.map → Heading-120a3ae0.js.map} +1 -1
- package/amd/HiddenAccessible-f6ee2f4a.js +2 -0
- package/amd/{HiddenAccessible-1dadf91a.js.map → HiddenAccessible-f6ee2f4a.js.map} +1 -1
- package/amd/HighlightText-a38e20af.js +2 -0
- package/{cjs/HighlightText-10042675.js.map → amd/HighlightText-a38e20af.js.map} +1 -1
- package/amd/Icon-4e765cae.js +2 -0
- package/amd/{Icon-a6ef6699.js.map → Icon-4e765cae.js.map} +1 -1
- package/amd/Indexer-8b8eb94e.js +2 -0
- package/amd/{Indexer-81bf2fe0.js.map → Indexer-8b8eb94e.js.map} +1 -1
- package/amd/InlineHelpSource-3291084b.js +2 -0
- package/amd/{InlineHelpSource-8a22f914.js.map → InlineHelpSource-3291084b.js.map} +1 -1
- package/amd/Link-306d51c0.js +2 -0
- package/amd/{Link-3169fd72.js.map → Link-306d51c0.js.map} +1 -1
- package/amd/List-83ce5c9c.js +2 -0
- package/amd/{List-26b59d92.js.map → List-83ce5c9c.js.map} +1 -1
- package/amd/ListItemTextLayout-8798fb7e.js +2 -0
- package/amd/{ListItemTextLayout-f6a3d721.js.map → ListItemTextLayout-8798fb7e.js.map} +1 -1
- package/amd/ListView-8087b353.js +2 -0
- package/amd/{ListView-3b9a3235.js.map → ListView-8087b353.js.map} +1 -1
- package/amd/LoadMoreCollection-5b5f55ef.js +2 -0
- package/amd/{LoadMoreCollection-b7513141.js.map → LoadMoreCollection-5b5f55ef.js.map} +1 -1
- package/amd/Menu-4dd5d2e3.js +2 -0
- package/amd/Menu-4dd5d2e3.js.map +1 -0
- package/amd/MenuDivider-464a70a6.js +2 -0
- package/amd/{MenuDivider-b9309ceb.js.map → MenuDivider-464a70a6.js.map} +1 -1
- package/amd/MenuItem-ffc681a1.js +2 -0
- package/amd/MenuItem-ffc681a1.js.map +1 -0
- package/amd/Message.types-4b8afc3d.js +2 -0
- package/amd/{Message.types-3ff18727.js.map → Message.types-4b8afc3d.js.map} +1 -1
- package/amd/MessageCloseButton-60db7be7.js +2 -0
- package/{cjs/MessageCloseButton-a8d04f54.js.map → amd/MessageCloseButton-60db7be7.js.map} +1 -1
- package/amd/MessageDetail-7918d7e4.js +2 -0
- package/amd/{MessageDetail-dd86fa2b.js.map → MessageDetail-7918d7e4.js.map} +1 -1
- package/amd/MessageFormattingUtils-4063485a.js +2 -0
- package/amd/{MessageFormattingUtils-0ffdac02.js.map → MessageFormattingUtils-4063485a.js.map} +1 -1
- package/amd/MessageLayer-4140b1c0.js +2 -0
- package/amd/{MessageLayer-6da93adb.js.map → MessageLayer-4140b1c0.js.map} +1 -1
- package/amd/MessageStartIcon-637c962e.js +2 -0
- package/amd/{MessageStartIcon-1b57b659.js.map → MessageStartIcon-637c962e.js.map} +1 -1
- package/amd/MessageSummary-6fe541fe.js +2 -0
- package/amd/{MessageSummary-cf0af1b2.js.map → MessageSummary-6fe541fe.js.map} +1 -1
- package/amd/MessageTimestamp-6dc78d5b.js +2 -0
- package/amd/{MessageTimestamp-0e995235.js.map → MessageTimestamp-6dc78d5b.js.map} +1 -1
- package/amd/MessageToast-3b6c3553.js +2 -0
- package/amd/{MessageToast-e0f94cbe.js.map → MessageToast-3b6c3553.js.map} +1 -1
- package/amd/MessageUtils-e57bb07e.js +2 -0
- package/amd/{MessageUtils-0bf10cfa.js.map → MessageUtils-e57bb07e.js.map} +1 -1
- package/amd/MessagesManager-e92eb23e.js +2 -0
- package/amd/{MessagesManager-da52103a.js.map → MessagesManager-e92eb23e.js.map} +1 -1
- package/amd/MeterCircle-29aed493.js +2 -0
- package/amd/{MeterCircle-bb948163.js.map → MeterCircle-29aed493.js.map} +1 -1
- package/amd/Modal-f5c8b81a.js +2 -0
- package/amd/{Modal-be0762b5.js.map → Modal-f5c8b81a.js.map} +1 -1
- package/amd/NumberInputText-d2242856.js +2 -0
- package/amd/{NumberInputText-d762d134.js.map → NumberInputText-d2242856.js.map} +1 -1
- package/amd/PRIVATE_Collection.js +1 -17
- package/amd/PRIVATE_Collection.js.map +1 -1
- package/amd/PRIVATE_List.css +17 -18
- package/amd/PRIVATE_List.js +1 -18
- package/amd/PRIVATE_List.js.map +1 -1
- package/amd/PRIVATE_Message.css +34 -35
- package/amd/PRIVATE_Message.js +1 -278
- package/amd/PRIVATE_Message.js.map +1 -1
- package/amd/PRIVATE_MessageLayer.css +7 -8
- package/amd/PRIVATE_MessageLayer.js +1 -12
- package/amd/PRIVATE_MessageLayer.js.map +1 -1
- package/amd/PRIVATE_Meter.js +1 -66
- package/amd/PRIVATE_Meter.js.map +1 -1
- package/amd/PRIVATE_SelectCommon.css +18 -19
- package/amd/PRIVATE_SelectCommon.js +1 -632
- package/amd/PRIVATE_SelectCommon.js.map +1 -1
- package/amd/PRIVATE_TransitionGroup.js +1 -414
- package/amd/PRIVATE_TransitionGroup.js.map +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -19
- package/amd/PRIVATE_VirtualizedCollection.js.map +1 -1
- package/amd/ReadonlyTextFieldInput-09a96f71.js +2 -0
- package/amd/{ReadonlyTextFieldInput-4583f049.js.map → ReadonlyTextFieldInput-09a96f71.js.map} +1 -1
- package/amd/SelectMenuItem-b51f3b63.js +2 -0
- package/amd/SelectMenuItem-b51f3b63.js.map +1 -0
- package/amd/SelectMultiple-9482da87.js +2 -0
- package/amd/SelectMultiple-9482da87.js.map +1 -0
- package/amd/SelectSingle-890f5264.js +2 -0
- package/amd/SelectSingle-890f5264.js.map +1 -0
- package/amd/Skeleton-748d8598.js +2 -0
- package/amd/{Skeleton-d0383726.js.map → Skeleton-748d8598.js.map} +1 -1
- package/amd/Spacer-0a0ef1ce.js +2 -0
- package/amd/{Spacer-165e178f.js.map → Spacer-0a0ef1ce.js.map} +1 -1
- package/amd/SplitMenuButton-e90e3154.js +2 -0
- package/amd/{SplitMenuButton-df0ee526.js.map → SplitMenuButton-e90e3154.js.map} +1 -1
- package/amd/Text-75ed9308.js +2 -0
- package/amd/{Text-de291c3f.js.map → Text-75ed9308.js.map} +1 -1
- package/amd/TextArea-ee29bc17.js +2 -0
- package/amd/{TextArea-25fa8171.js.map → TextArea-ee29bc17.js.map} +1 -1
- package/amd/TextAreaAutosize-0ce799de.js +2 -0
- package/amd/{TextAreaAutosize-370b4a47.js.map → TextAreaAutosize-0ce799de.js.map} +1 -1
- package/amd/TextFieldInput-794a6202.js +2 -0
- package/{cjs/TextFieldInput-f2f3f0a0.js.map → amd/TextFieldInput-794a6202.js.map} +1 -1
- package/amd/UNSAFE_AspectRatio.css +1 -2
- package/amd/UNSAFE_AspectRatio.js +1 -79
- package/amd/UNSAFE_AspectRatio.js.map +1 -1
- package/amd/UNSAFE_Avatar.css +8 -9
- package/amd/UNSAFE_Avatar.js +1 -106
- package/amd/UNSAFE_Avatar.js.map +1 -1
- package/amd/UNSAFE_Badge.css +13 -14
- package/amd/UNSAFE_Badge.js +1 -11
- package/amd/UNSAFE_Badge.js.map +1 -1
- package/amd/UNSAFE_BaseButton.css +15 -16
- package/amd/UNSAFE_BaseButton.js +1 -11
- package/amd/UNSAFE_BaseButton.js.map +1 -1
- package/amd/UNSAFE_Button.css +8 -9
- package/amd/UNSAFE_Button.js +1 -12
- package/amd/UNSAFE_Button.js.map +1 -1
- package/amd/UNSAFE_Center.js +1 -28
- package/amd/UNSAFE_Center.js.map +1 -1
- package/amd/UNSAFE_Chip.css +7 -8
- package/amd/UNSAFE_Chip.js +1 -11
- package/amd/UNSAFE_Chip.js.map +1 -1
- package/amd/UNSAFE_Collapsible.css +9 -10
- package/amd/UNSAFE_Collapsible.js +1 -226
- package/amd/UNSAFE_Collapsible.js.map +1 -1
- package/amd/UNSAFE_Collection.js +1 -13
- package/amd/UNSAFE_Collection.js.map +1 -1
- package/amd/UNSAFE_ComponentMessage.css +3 -4
- package/amd/UNSAFE_ComponentMessage.js +1 -12
- package/amd/UNSAFE_ComponentMessage.js.map +1 -1
- package/amd/UNSAFE_Divider.css +1 -2
- package/amd/UNSAFE_Divider.js +1 -11
- package/amd/UNSAFE_Divider.js.map +1 -1
- package/amd/UNSAFE_EmptyList.js +1 -16
- package/amd/UNSAFE_EmptyList.js.map +1 -1
- package/amd/UNSAFE_Environment.js +1 -84
- package/amd/UNSAFE_Environment.js.map +1 -1
- package/amd/UNSAFE_FilePicker.css +6 -7
- package/amd/UNSAFE_FilePicker.js +1 -11
- package/amd/UNSAFE_FilePicker.js.map +1 -1
- package/amd/UNSAFE_Flex.css +2 -3
- package/amd/UNSAFE_Flex.js +1 -11
- package/amd/UNSAFE_Flex.js.map +1 -1
- package/amd/UNSAFE_Floating.js +1 -11
- package/amd/UNSAFE_Floating.js.map +1 -1
- package/amd/UNSAFE_FocusTrap.css +3 -4
- package/amd/UNSAFE_FocusTrap.js +1 -17
- package/amd/UNSAFE_FocusTrap.js.map +1 -1
- package/amd/UNSAFE_Grid.css +1 -2
- package/amd/UNSAFE_Grid.js +1 -37
- package/amd/UNSAFE_Grid.js.map +1 -1
- package/amd/UNSAFE_Heading.css +9 -10
- package/amd/UNSAFE_Heading.js +1 -13
- package/amd/UNSAFE_Heading.js.map +1 -1
- package/amd/UNSAFE_HiddenAccessible.css +1 -2
- package/amd/UNSAFE_HiddenAccessible.js +1 -17
- package/amd/UNSAFE_HiddenAccessible.js.map +1 -1
- package/amd/UNSAFE_HighlightText.css +1 -2
- package/amd/UNSAFE_HighlightText.js +1 -17
- package/amd/UNSAFE_HighlightText.js.map +1 -1
- package/amd/UNSAFE_Icon.css +21 -22
- package/amd/UNSAFE_Icon.js +1 -28
- package/amd/UNSAFE_Icon.js.map +1 -1
- package/amd/UNSAFE_Icons.js +1 -26
- package/amd/UNSAFE_Icons.js.map +1 -1
- package/amd/UNSAFE_Indexer.css +8 -9
- package/amd/UNSAFE_Indexer.js +1 -18
- package/amd/UNSAFE_Indexer.js.map +1 -1
- package/amd/UNSAFE_InputPassword.css +1 -2
- package/amd/UNSAFE_InputPassword.js +1 -139
- package/amd/UNSAFE_InputPassword.js.map +1 -1
- package/amd/UNSAFE_InputText.css +1 -2
- package/amd/UNSAFE_InputText.js +1 -114
- package/amd/UNSAFE_InputText.js.map +1 -1
- package/amd/UNSAFE_Label.css +13 -14
- package/amd/UNSAFE_Label.js +1 -77
- package/amd/UNSAFE_Label.js.map +1 -1
- package/amd/UNSAFE_LabelValueLayout.css +9 -10
- package/amd/UNSAFE_LabelValueLayout.js +1 -85
- package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
- package/amd/UNSAFE_Layer.js +1 -66
- package/amd/UNSAFE_Layer.js.map +1 -1
- package/amd/UNSAFE_Link.css +5 -6
- package/amd/UNSAFE_Link.js +1 -11
- package/amd/UNSAFE_Link.js.map +1 -1
- package/amd/UNSAFE_ListItemLayout.css +10 -11
- package/amd/UNSAFE_ListItemLayout.js +1 -13
- package/amd/UNSAFE_ListItemLayout.js.map +1 -1
- package/amd/UNSAFE_ListView.js +1 -17
- package/amd/UNSAFE_ListView.js.map +1 -1
- package/amd/UNSAFE_LiveRegion.css +1 -2
- package/amd/UNSAFE_LiveRegion.js +1 -60
- package/amd/UNSAFE_LiveRegion.js.map +1 -1
- package/amd/UNSAFE_LoadMoreCollection.js +1 -17
- package/amd/UNSAFE_LoadMoreCollection.js.map +1 -1
- package/amd/UNSAFE_Menu.css +19 -20
- package/amd/UNSAFE_Menu.js +1 -13
- package/amd/UNSAFE_Menu.js.map +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -183
- package/amd/UNSAFE_MessageBanner.js.map +1 -1
- package/amd/UNSAFE_MessageToast.css +1 -2
- package/amd/UNSAFE_MessageToast.js +1 -17
- package/amd/UNSAFE_MessageToast.js.map +1 -1
- package/amd/UNSAFE_MeterBar.css +45 -46
- package/amd/UNSAFE_MeterBar.js +1 -327
- package/amd/UNSAFE_MeterBar.js.map +1 -1
- package/amd/UNSAFE_MeterCircle.css +47 -48
- package/amd/UNSAFE_MeterCircle.js +1 -11
- package/amd/UNSAFE_MeterCircle.js.map +1 -1
- package/amd/UNSAFE_Modal.css +5 -6
- package/amd/UNSAFE_Modal.js +1 -11
- package/amd/UNSAFE_Modal.js.map +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -17
- package/amd/UNSAFE_NumberInputText.js.map +1 -1
- package/amd/UNSAFE_PrefixSuffix.css +8 -9
- package/amd/UNSAFE_PrefixSuffix.js +1 -50
- package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
- package/amd/UNSAFE_ProgressBar.css +6 -7
- package/amd/UNSAFE_ProgressBar.js +1 -90
- package/amd/UNSAFE_ProgressBar.js.map +1 -1
- package/amd/UNSAFE_ProgressCircle.css +6 -7
- package/amd/UNSAFE_ProgressCircle.js +1 -85
- package/amd/UNSAFE_ProgressCircle.js.map +1 -1
- package/amd/UNSAFE_RatingGauge.css +22 -23
- package/amd/UNSAFE_RatingGauge.js +1 -358
- package/amd/UNSAFE_RatingGauge.js.map +1 -1
- package/amd/UNSAFE_SelectMultiple.css +1 -2
- package/amd/UNSAFE_SelectMultiple.js +1 -17
- package/amd/UNSAFE_SelectMultiple.js.map +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -17
- package/amd/UNSAFE_SelectSingle.js.map +1 -1
- package/amd/UNSAFE_Selector.css +5 -6
- package/amd/UNSAFE_Selector.js +1 -107
- package/amd/UNSAFE_Selector.js.map +1 -1
- package/amd/UNSAFE_Skeleton.css +1 -2
- package/amd/UNSAFE_Skeleton.js +1 -17
- package/amd/UNSAFE_Skeleton.js.map +1 -1
- package/amd/UNSAFE_Spacer.js +1 -11
- package/amd/UNSAFE_Spacer.js.map +1 -1
- package/amd/UNSAFE_SplitMenuButton.css +5 -6
- package/amd/UNSAFE_SplitMenuButton.js +1 -11
- package/amd/UNSAFE_SplitMenuButton.js.map +1 -1
- package/amd/UNSAFE_Text.css +25 -26
- package/amd/UNSAFE_Text.js +1 -11
- package/amd/UNSAFE_Text.js.map +1 -1
- package/amd/UNSAFE_TextArea.css +3 -4
- package/amd/UNSAFE_TextArea.js +1 -12
- package/amd/UNSAFE_TextArea.js.map +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -11
- package/amd/UNSAFE_TextAreaAutosize.js.map +1 -1
- package/amd/UNSAFE_TextField.css +62 -63
- package/amd/UNSAFE_TextField.js +1 -190
- package/amd/UNSAFE_TextField.js.map +1 -1
- package/amd/UNSAFE_ThemedIcons.js +1 -26
- package/amd/UNSAFE_ThemedIcons.js.map +1 -1
- package/amd/UNSAFE_UserAssistance.css +11 -12
- package/amd/UNSAFE_UserAssistance.js +1 -85
- package/amd/UNSAFE_UserAssistance.js.map +1 -1
- package/amd/UNSAFE_View.js +1 -29
- package/amd/UNSAFE_View.js.map +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -17
- package/amd/UNSAFE_VirtualizedListView.js.map +1 -1
- package/amd/UNSAFE_WindowOverlay.js +1 -20
- package/amd/UNSAFE_WindowOverlay.js.map +1 -1
- package/amd/VirtualizedCollection-3e679d7c.js +2 -0
- package/amd/{VirtualizedCollection-63815bce.js.map → VirtualizedCollection-3e679d7c.js.map} +1 -1
- package/amd/VirtualizedListView-c67c59cc.js +2 -0
- package/amd/{VirtualizedListView-fb2a18dd.js.map → VirtualizedListView-c67c59cc.js.map} +1 -1
- package/amd/_curry1-bee77b02.js +2 -0
- package/amd/_curry1-bee77b02.js.map +1 -0
- package/amd/_curry2-fcaaab1b.js +2 -0
- package/amd/_curry2-fcaaab1b.js.map +1 -0
- package/amd/_curry3-e03383af.js +2 -0
- package/amd/_curry3-e03383af.js.map +1 -0
- package/amd/_has-cc9d7306.js +2 -0
- package/amd/_has-cc9d7306.js.map +1 -0
- package/amd/classNames-d0ddb6e6.js +2 -0
- package/amd/{classNames-027de734.js.map → classNames-d0ddb6e6.js.map} +1 -1
- package/amd/clientHints-688646f4.js +2 -0
- package/amd/{clientHints-361cde40.js.map → clientHints-688646f4.js.map} +1 -1
- package/amd/flexbox-0663919c.js +2 -0
- package/amd/{flexbox-4dd0bbb4.js.map → flexbox-0663919c.js.map} +1 -1
- package/amd/flexitem-323dec38.js +2 -0
- package/amd/{flexitem-7363d040.js.map → flexitem-323dec38.js.map} +1 -1
- package/amd/hooks/PRIVATE_useCollectionFocusRing.js +1 -72
- package/amd/hooks/PRIVATE_useCollectionFocusRing.js.map +1 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js +1 -68
- package/amd/hooks/PRIVATE_useCurrentKey.js.map +1 -1
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -162
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js.map +1 -1
- package/amd/hooks/PRIVATE_useItemAction.js +1 -62
- package/amd/hooks/PRIVATE_useItemAction.js.map +1 -1
- package/amd/hooks/PRIVATE_useMessagesFocusManager.js +1 -351
- package/amd/hooks/PRIVATE_useMessagesFocusManager.js.map +1 -1
- package/amd/hooks/PRIVATE_useSelection.js +1 -173
- package/amd/hooks/PRIVATE_useSelection.js.map +1 -1
- package/amd/hooks/PRIVATE_useSingleSelection.js +1 -11
- package/amd/hooks/PRIVATE_useSingleSelection.js.map +1 -1
- package/amd/hooks/PRIVATE_useTabbableModeSet.js +1 -85
- package/amd/hooks/PRIVATE_useTabbableModeSet.js.map +1 -1
- package/amd/hooks/UNSAFE_useActionable.js +1 -39
- package/amd/hooks/UNSAFE_useActionable.js.map +1 -1
- package/amd/hooks/UNSAFE_useActive.js +1 -83
- package/amd/hooks/UNSAFE_useActive.js.map +1 -1
- package/amd/hooks/UNSAFE_useAnimation.js +1 -11
- package/amd/hooks/UNSAFE_useAnimation.js.map +1 -1
- package/amd/hooks/UNSAFE_useBreakpointValues.js +1 -25
- package/amd/hooks/UNSAFE_useBreakpointValues.js.map +1 -1
- package/amd/hooks/UNSAFE_useBreakpoints.js +1 -52
- package/amd/hooks/UNSAFE_useBreakpoints.js.map +1 -1
- package/amd/hooks/UNSAFE_useClearIcon.js +1 -22
- package/amd/hooks/UNSAFE_useClearIcon.js.map +1 -1
- package/amd/hooks/UNSAFE_useColorScheme.js +1 -28
- package/amd/hooks/UNSAFE_useColorScheme.js.map +1 -1
- package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +1 -23
- package/amd/hooks/UNSAFE_useContainerBreakpointValues.js.map +1 -1
- package/amd/hooks/UNSAFE_useContainerBreakpoints.js +1 -45
- package/amd/hooks/UNSAFE_useContainerBreakpoints.js.map +1 -1
- package/amd/hooks/UNSAFE_useCurrentValueReducer.js +1 -60
- package/amd/hooks/UNSAFE_useCurrentValueReducer.js.map +1 -1
- package/amd/hooks/UNSAFE_useDebounce.js +1 -46
- package/amd/hooks/UNSAFE_useDebounce.js.map +1 -1
- package/amd/hooks/UNSAFE_useFloating.js +1 -20
- package/amd/hooks/UNSAFE_useFloating.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocus.js +1 -35
- package/amd/hooks/UNSAFE_useFocus.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocusWithin.js +1 -11
- package/amd/hooks/UNSAFE_useFocusWithin.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -68
- package/amd/hooks/UNSAFE_useFocusableTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormContext.js +1 -38
- package/amd/hooks/UNSAFE_useFormContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormFieldContext.js +1 -31
- package/amd/hooks/UNSAFE_useFormFieldContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormVariantContext.js +1 -25
- package/amd/hooks/UNSAFE_useFormVariantContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useHover.js +1 -64
- package/amd/hooks/UNSAFE_useHover.js.map +1 -1
- package/amd/hooks/UNSAFE_useId.js +1 -31
- package/amd/hooks/UNSAFE_useId.js.map +1 -1
- package/amd/hooks/UNSAFE_useLengthFilter.js +1 -56
- package/amd/hooks/UNSAFE_useLengthFilter.js.map +1 -1
- package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -39
- package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js.map +1 -1
- package/amd/hooks/UNSAFE_useLongPress.js +1 -69
- package/amd/hooks/UNSAFE_useLongPress.js.map +1 -1
- package/amd/hooks/UNSAFE_useMessagesContext.js +1 -47
- package/amd/hooks/UNSAFE_useMessagesContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js +1 -54
- package/amd/hooks/UNSAFE_useOutsideClick.js.map +1 -1
- package/amd/hooks/UNSAFE_usePan.js +1 -104
- package/amd/hooks/UNSAFE_usePan.js.map +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -59
- package/amd/hooks/UNSAFE_usePrefixSuffix.js.map +1 -1
- package/amd/hooks/UNSAFE_usePress.js +1 -153
- package/amd/hooks/UNSAFE_usePress.js.map +1 -1
- package/amd/hooks/UNSAFE_useScale.js +1 -28
- package/amd/hooks/UNSAFE_useScale.js.map +1 -1
- package/amd/hooks/UNSAFE_useSwipe.js +1 -94
- package/amd/hooks/UNSAFE_useSwipe.js.map +1 -1
- package/amd/hooks/UNSAFE_useTabbableMode.js +1 -47
- package/amd/hooks/UNSAFE_useTabbableMode.js.map +1 -1
- package/amd/hooks/UNSAFE_useTap.js +1 -75
- package/amd/hooks/UNSAFE_useTap.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextField.js +1 -97
- package/amd/hooks/UNSAFE_useTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -91
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js.map +1 -1
- package/amd/hooks/UNSAFE_useTheme.js +1 -28
- package/amd/hooks/UNSAFE_useTheme.js.map +1 -1
- package/amd/hooks/UNSAFE_useTimer.js +1 -62
- package/amd/hooks/UNSAFE_useTimer.js.map +1 -1
- package/amd/hooks/UNSAFE_useToggle.js +1 -35
- package/amd/hooks/UNSAFE_useToggle.js.map +1 -1
- package/amd/hooks/UNSAFE_useTooltip.css +4 -5
- package/amd/hooks/UNSAFE_useTooltip.js +1 -350
- package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/amd/hooks/UNSAFE_useTouch.js +1 -35
- package/amd/hooks/UNSAFE_useTouch.js.map +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -38
- package/amd/hooks/UNSAFE_useTranslationBundle.js.map +1 -1
- package/amd/hooks/UNSAFE_useUncontrolledState.js +1 -72
- package/amd/hooks/UNSAFE_useUncontrolledState.js.map +1 -1
- package/amd/hooks/UNSAFE_useUser.js +1 -28
- package/amd/hooks/UNSAFE_useUser.js.map +1 -1
- package/amd/hooks/UNSAFE_useViewportIntersect.js +1 -70
- package/amd/hooks/UNSAFE_useViewportIntersect.js.map +1 -1
- package/amd/index-2f61a0e0.js +2 -0
- package/amd/index-2f61a0e0.js.map +1 -0
- package/amd/index-6871cdf1.js +2 -0
- package/amd/index-6871cdf1.js.map +1 -0
- package/amd/index-d54f6449.js +2 -0
- package/amd/{index-5920700b.js.map → index-d54f6449.js.map} +1 -1
- package/amd/keys-fc8999ee.js +2 -0
- package/amd/{keys-a09501ab.js.map → keys-fc8999ee.js.map} +1 -1
- package/amd/listViewSelectionTests-aa9ca732.js +2 -0
- package/amd/listViewSelectionTests-aa9ca732.js.map +1 -0
- package/amd/listViewTabbableModeTests-ef3b4208.js +2 -0
- package/amd/listViewTabbableModeTests-ef3b4208.js.map +1 -0
- package/amd/listViewTestFixtures-c3b87a89.js +2 -0
- package/amd/listViewTestFixtures-c3b87a89.js.map +1 -0
- package/amd/menuTestsUtils-b874ce47.js +2 -0
- package/amd/{menuTestsUtils-6da02810.js.map → menuTestsUtils-b874ce47.js.map} +1 -1
- package/amd/resources/nls/ar/bundle.js +1 -57
- package/amd/resources/nls/ar/bundle.js.map +1 -1
- package/amd/resources/nls/ar-XB/bundle.js +1 -57
- package/amd/resources/nls/ar-XB/bundle.js.map +1 -1
- package/amd/resources/nls/bg/bundle.js +1 -57
- package/amd/resources/nls/bg/bundle.js.map +1 -1
- package/amd/resources/nls/bs/bundle.js +1 -57
- package/amd/resources/nls/bs/bundle.js.map +1 -1
- package/amd/resources/nls/bs-Cyrl/bundle.js +1 -57
- package/amd/resources/nls/bs-Cyrl/bundle.js.map +1 -1
- package/amd/resources/nls/bundle.js +1 -57
- package/amd/resources/nls/bundle.js.map +1 -1
- package/amd/resources/nls/cs/bundle.js +1 -57
- package/amd/resources/nls/cs/bundle.js.map +1 -1
- package/amd/resources/nls/da/bundle.js +1 -57
- package/amd/resources/nls/da/bundle.js.map +1 -1
- package/amd/resources/nls/de/bundle.js +1 -57
- package/amd/resources/nls/de/bundle.js.map +1 -1
- package/amd/resources/nls/el/bundle.js +1 -57
- package/amd/resources/nls/el/bundle.js.map +1 -1
- package/amd/resources/nls/en/bundle.js +1 -57
- package/amd/resources/nls/en/bundle.js.map +1 -1
- package/amd/resources/nls/en-XA/bundle.js +1 -57
- package/amd/resources/nls/en-XA/bundle.js.map +1 -1
- package/amd/resources/nls/en-XC/bundle.js +1 -77
- package/amd/resources/nls/en-XC/bundle.js.map +1 -1
- package/amd/resources/nls/es/bundle.js +1 -57
- package/amd/resources/nls/es/bundle.js.map +1 -1
- package/amd/resources/nls/et/bundle.js +1 -57
- package/amd/resources/nls/et/bundle.js.map +1 -1
- package/amd/resources/nls/fi/bundle.js +1 -57
- package/amd/resources/nls/fi/bundle.js.map +1 -1
- package/amd/resources/nls/fr/bundle.js +1 -57
- package/amd/resources/nls/fr/bundle.js.map +1 -1
- package/amd/resources/nls/fr-CA/bundle.js +1 -57
- package/amd/resources/nls/fr-CA/bundle.js.map +1 -1
- package/amd/resources/nls/he/bundle.js +1 -57
- package/amd/resources/nls/he/bundle.js.map +1 -1
- package/amd/resources/nls/hr/bundle.js +1 -57
- package/amd/resources/nls/hr/bundle.js.map +1 -1
- package/amd/resources/nls/hu/bundle.js +1 -57
- package/amd/resources/nls/hu/bundle.js.map +1 -1
- package/amd/resources/nls/is/bundle.js +1 -57
- package/amd/resources/nls/is/bundle.js.map +1 -1
- package/amd/resources/nls/it/bundle.js +1 -57
- package/amd/resources/nls/it/bundle.js.map +1 -1
- package/amd/resources/nls/ja/bundle.js +1 -57
- package/amd/resources/nls/ja/bundle.js.map +1 -1
- package/amd/resources/nls/ko/bundle.js +1 -57
- package/amd/resources/nls/ko/bundle.js.map +1 -1
- package/amd/resources/nls/lt/bundle.js +1 -57
- package/amd/resources/nls/lt/bundle.js.map +1 -1
- package/amd/resources/nls/lv/bundle.js +1 -57
- package/amd/resources/nls/lv/bundle.js.map +1 -1
- package/amd/resources/nls/ms/bundle.js +1 -57
- package/amd/resources/nls/ms/bundle.js.map +1 -1
- package/amd/resources/nls/nl/bundle.js +1 -57
- package/amd/resources/nls/nl/bundle.js.map +1 -1
- package/amd/resources/nls/no/bundle.js +1 -57
- package/amd/resources/nls/no/bundle.js.map +1 -1
- package/amd/resources/nls/pl/bundle.js +1 -57
- package/amd/resources/nls/pl/bundle.js.map +1 -1
- package/amd/resources/nls/pt/bundle.js +1 -57
- package/amd/resources/nls/pt/bundle.js.map +1 -1
- package/amd/resources/nls/pt-PT/bundle.js +1 -57
- package/amd/resources/nls/pt-PT/bundle.js.map +1 -1
- package/amd/resources/nls/ro/bundle.js +1 -57
- package/amd/resources/nls/ro/bundle.js.map +1 -1
- package/amd/resources/nls/ru/bundle.js +1 -57
- package/amd/resources/nls/ru/bundle.js.map +1 -1
- package/amd/resources/nls/sk/bundle.js +1 -57
- package/amd/resources/nls/sk/bundle.js.map +1 -1
- package/amd/resources/nls/sl/bundle.js +1 -57
- package/amd/resources/nls/sl/bundle.js.map +1 -1
- package/amd/resources/nls/sr/bundle.js +1 -57
- package/amd/resources/nls/sr/bundle.js.map +1 -1
- package/amd/resources/nls/sr-Latn/bundle.js +1 -57
- package/amd/resources/nls/sr-Latn/bundle.js.map +1 -1
- package/amd/resources/nls/supportedLocales.js +1 -57
- package/amd/resources/nls/supportedLocales.js.map +1 -1
- package/amd/resources/nls/sv/bundle.js +1 -57
- package/amd/resources/nls/sv/bundle.js.map +1 -1
- package/amd/resources/nls/th/bundle.js +1 -57
- package/amd/resources/nls/th/bundle.js.map +1 -1
- package/amd/resources/nls/tr/bundle.js +1 -57
- package/amd/resources/nls/tr/bundle.js.map +1 -1
- package/amd/resources/nls/uk/bundle.js +1 -57
- package/amd/resources/nls/uk/bundle.js.map +1 -1
- package/amd/resources/nls/vi/bundle.js +1 -57
- package/amd/resources/nls/vi/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hans/bundle.js +1 -57
- package/amd/resources/nls/zh-Hans/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hant/bundle.js +1 -57
- package/amd/resources/nls/zh-Hant/bundle.js.map +1 -1
- package/amd/stringUtils-51e08a5f.js +2 -0
- package/amd/{stringUtils-9311a716.js.map → stringUtils-51e08a5f.js.map} +1 -1
- package/amd/testHelpers-05b2968d.js +2 -0
- package/amd/{testHelpers-9267074b.js.map → testHelpers-05b2968d.js.map} +1 -1
- package/amd/translationBundle.js +1 -73
- package/amd/translationBundle.js.map +1 -1
- package/amd/tslib.es6-f5cdfdde.js +2 -0
- package/amd/tslib.es6-f5cdfdde.js.map +1 -0
- package/amd/useAnimation-5f1db993.js +2 -0
- package/amd/{useAnimation-2f572e0c.js.map → useAnimation-5f1db993.js.map} +1 -1
- package/amd/useFocusWithin-d0e9c924.js +2 -0
- package/amd/{useFocusWithin-a88e3e32.js.map → useFocusWithin-d0e9c924.js.map} +1 -1
- package/amd/useSingleSelection-50253b6a.js +2 -0
- package/amd/{useSingleSelection-7081cc84.js.map → useSingleSelection-50253b6a.js.map} +1 -1
- package/amd/utils/PRIVATE_clientHints.js +1 -11
- package/amd/utils/PRIVATE_clientHints.js.map +1 -1
- package/amd/utils/PRIVATE_collectionUtils.js +1 -83
- package/amd/utils/PRIVATE_collectionUtils.js.map +1 -1
- package/amd/utils/PRIVATE_dvtTestUtils.js +1 -77
- package/amd/utils/PRIVATE_dvtTestUtils.js.map +1 -1
- package/amd/utils/PRIVATE_floatingUtils.js +1 -70
- package/amd/utils/PRIVATE_floatingUtils.js.map +1 -1
- package/amd/utils/PRIVATE_meterUtils.js +1 -340
- package/amd/utils/PRIVATE_meterUtils.js.map +1 -1
- package/amd/utils/PRIVATE_refUtils.js +1 -38
- package/amd/utils/PRIVATE_refUtils.js.map +1 -1
- package/amd/utils/PRIVATE_tabbableUtils.js +1 -669
- package/amd/utils/PRIVATE_tabbableUtils.js.map +1 -1
- package/amd/utils/PRIVATE_timer.js +1 -101
- package/amd/utils/PRIVATE_timer.js.map +1 -1
- package/amd/utils/UNSAFE_arrayUtils.js +1 -28
- package/amd/utils/UNSAFE_arrayUtils.js.map +1 -1
- package/amd/utils/UNSAFE_attributeUtils.js +1 -13
- package/amd/utils/UNSAFE_attributeUtils.js.map +1 -1
- package/amd/utils/UNSAFE_classNames.js +1 -11
- package/amd/utils/UNSAFE_classNames.js.map +1 -1
- package/amd/utils/UNSAFE_componentUtils.js +1 -32
- package/amd/utils/UNSAFE_componentUtils.js.map +1 -1
- package/amd/utils/UNSAFE_dataProvider.js +1 -21
- package/amd/utils/UNSAFE_dataProvider.js.map +1 -1
- package/amd/utils/UNSAFE_filePickerUtils.js +1 -37
- package/amd/utils/UNSAFE_filePickerUtils.js.map +1 -1
- package/amd/utils/UNSAFE_getLocale.js +1 -33
- package/amd/utils/UNSAFE_getLocale.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/aria.js +1 -22
- package/amd/utils/UNSAFE_interpolations/aria.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/borders.js +1 -42
- package/amd/utils/UNSAFE_interpolations/borders.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -16
- package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -62
- package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/colors.js +1 -22
- package/amd/utils/UNSAFE_interpolations/colors.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -89
- package/amd/utils/UNSAFE_interpolations/dimensions.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -8
- package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -14
- package/amd/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -8
- package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -13
- package/amd/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/grid.js +1 -22
- package/amd/utils/UNSAFE_interpolations/grid.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/griditem.js +1 -17
- package/amd/utils/UNSAFE_interpolations/griditem.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/padding.js +1 -50
- package/amd/utils/UNSAFE_interpolations/padding.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/text.css +3 -4
- package/amd/utils/UNSAFE_interpolations/text.js +1 -29
- package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/amd/utils/UNSAFE_keys.js +1 -80
- package/amd/utils/UNSAFE_keys.js.map +1 -1
- package/amd/utils/UNSAFE_lengthFilter.js +1 -71
- package/amd/utils/UNSAFE_lengthFilter.js.map +1 -1
- package/amd/utils/UNSAFE_logger.js +1 -64
- package/amd/utils/UNSAFE_logger.js.map +1 -1
- package/amd/utils/UNSAFE_matchTranslationBundle.js +1 -57
- package/amd/utils/UNSAFE_matchTranslationBundle.js.map +1 -1
- package/amd/utils/UNSAFE_mergeInterpolations.js +1 -111
- package/amd/utils/UNSAFE_mergeInterpolations.js.map +1 -1
- package/amd/utils/UNSAFE_mergeProps.js +1 -91
- package/amd/utils/UNSAFE_mergeProps.js.map +1 -1
- package/amd/utils/UNSAFE_meterTypes.js +1 -13
- package/amd/utils/UNSAFE_meterTypes.js.map +1 -1
- package/amd/utils/UNSAFE_roles.js +1 -107
- package/amd/utils/UNSAFE_roles.js.map +1 -1
- package/amd/utils/UNSAFE_selectUtils.js +1 -13
- package/amd/utils/UNSAFE_selectUtils.js.map +1 -1
- package/amd/utils/UNSAFE_size.js +1 -53
- package/amd/utils/UNSAFE_size.js.map +1 -1
- package/amd/utils/UNSAFE_soundUtils.js +1 -98
- package/amd/utils/UNSAFE_soundUtils.js.map +1 -1
- package/amd/utils/UNSAFE_stringUtils.js +1 -21
- package/amd/utils/UNSAFE_stringUtils.js.map +1 -1
- package/amd/utils/UNSAFE_typeUtils.js +1 -7
- package/amd/utils/UNSAFE_typeUtils.js.map +1 -1
- package/amd/utils/UNSAFE_units.js +1 -22
- package/amd/utils/UNSAFE_units.js.map +1 -1
- package/amd/utils/UNSAFE_valueUpdateDetail.js +1 -7
- package/amd/utils/UNSAFE_valueUpdateDetail.js.map +1 -1
- package/cjs/{Badge-a39fc1b1.js → Badge-45a5c41c.js} +16 -16
- package/cjs/{Badge-a39fc1b1.js.map → Badge-45a5c41c.js.map} +1 -1
- package/cjs/{BaseButton-15adcc04.js → BaseButton-d8abe97c.js} +20 -20
- package/cjs/{BaseButton-15adcc04.js.map → BaseButton-d8abe97c.js.map} +1 -1
- package/cjs/{Button-6d645302.js → Button-ab4e7bfd.js} +13 -13
- package/{amd/Button-87280b4a.js.map → cjs/Button-ab4e7bfd.js.map} +1 -1
- package/cjs/{Chip-a6ecbefc.js → Chip-936edd4e.js} +10 -10
- package/{amd/Chip-8cd23568.js.map → cjs/Chip-936edd4e.js.map} +1 -1
- package/cjs/{ClearIcon-f04de939.js → ClearIcon-c555c76b.js} +3 -3
- package/cjs/{ClearIcon-f04de939.js.map → ClearIcon-c555c76b.js.map} +1 -1
- package/cjs/{Collection-134eaf28.js → Collection-8154de56.js} +2 -2
- package/cjs/{Collection-134eaf28.js.map → Collection-8154de56.js.map} +1 -1
- package/cjs/{ComponentMessage-d765b28b.js → ComponentMessage-0a03714e.js} +8 -8
- package/cjs/{ComponentMessage-d765b28b.js.map → ComponentMessage-0a03714e.js.map} +1 -1
- package/cjs/{ComponentMessageContainer-c0c21e1b.js → ComponentMessageContainer-19ea5452.js} +5 -5
- package/{amd/ComponentMessageContainer-a00ec42c.js.map → cjs/ComponentMessageContainer-19ea5452.js.map} +1 -1
- package/cjs/{Divider-2042aba9.js → Divider-0a07ce80.js} +3 -3
- package/cjs/{Divider-2042aba9.js.map → Divider-0a07ce80.js.map} +1 -1
- package/cjs/{FilePicker-d7a4de7a.js → FilePicker-7727424f.js} +14 -14
- package/cjs/{FilePicker-d7a4de7a.js.map → FilePicker-7727424f.js.map} +1 -1
- package/cjs/{Flex-260323e0.js → Flex-e8364ea2.js} +8 -8
- package/cjs/{Flex-260323e0.js.map → Flex-e8364ea2.js.map} +1 -1
- package/cjs/{Floating-d2046aed.js → Floating-fc130f9e.js} +3 -3
- package/cjs/{Floating-d2046aed.js.map → Floating-fc130f9e.js.map} +1 -1
- package/cjs/{FocusTrap-df4bf064.js → FocusTrap-6e5c36e5.js} +5 -5
- package/cjs/{FocusTrap-df4bf064.js.map → FocusTrap-6e5c36e5.js.map} +1 -1
- package/cjs/{FormControlUtils-c6a4dc4b.js → FormControlUtils-234c8b45.js} +5 -5
- package/cjs/{FormControlUtils-c6a4dc4b.js.map → FormControlUtils-234c8b45.js.map} +1 -1
- package/cjs/{Heading-aa545fbc.js → Heading-f594b629.js} +13 -13
- package/cjs/{Heading-aa545fbc.js.map → Heading-f594b629.js.map} +1 -1
- package/cjs/{HiddenAccessible-f8c4113f.js → HiddenAccessible-130e8b30.js} +3 -3
- package/cjs/{HiddenAccessible-f8c4113f.js.map → HiddenAccessible-130e8b30.js.map} +1 -1
- package/cjs/{HighlightText-10042675.js → HighlightText-d30cac54.js} +3 -3
- package/{amd/HighlightText-9d200a5d.js.map → cjs/HighlightText-d30cac54.js.map} +1 -1
- package/cjs/{Icon-742d4479.js → Icon-acbc21a8.js} +25 -25
- package/cjs/{Icon-742d4479.js.map → Icon-acbc21a8.js.map} +1 -1
- package/cjs/{Indexer-0c98d91e.js → Indexer-a81ed1f9.js} +16 -16
- package/cjs/{Indexer-0c98d91e.js.map → Indexer-a81ed1f9.js.map} +1 -1
- package/cjs/{InlineHelpSource-e98e803d.js → InlineHelpSource-10adb22d.js} +3 -3
- package/cjs/{InlineHelpSource-e98e803d.js.map → InlineHelpSource-10adb22d.js.map} +1 -1
- package/cjs/{Link-a955e5a1.js → Link-12fe652f.js} +8 -8
- package/cjs/{Link-a955e5a1.js.map → Link-12fe652f.js.map} +1 -1
- package/cjs/{List-d9e06dfd.js → List-26cf47b1.js} +23 -23
- package/cjs/{List-d9e06dfd.js.map → List-26cf47b1.js.map} +1 -1
- package/cjs/{ListItemTextLayout-7fefca37.js → ListItemTextLayout-d309c3a9.js} +13 -13
- package/cjs/{ListItemTextLayout-7fefca37.js.map → ListItemTextLayout-d309c3a9.js.map} +1 -1
- package/cjs/{ListView-05ed6c8a.js → ListView-30ef9d52.js} +3 -3
- package/cjs/{ListView-05ed6c8a.js.map → ListView-30ef9d52.js.map} +1 -1
- package/cjs/{LoadMoreCollection-9479dcd1.js → LoadMoreCollection-60ec118d.js} +3 -3
- package/cjs/{LoadMoreCollection-9479dcd1.js.map → LoadMoreCollection-60ec118d.js.map} +1 -1
- package/cjs/{Menu-7a63d78b.js → Menu-8ee7cb3f.js} +6 -6
- package/cjs/{Menu-7a63d78b.js.map → Menu-8ee7cb3f.js.map} +1 -1
- package/cjs/{MenuDivider-164b9d81.js → MenuDivider-8ba18718.js} +4 -4
- package/cjs/{MenuDivider-164b9d81.js.map → MenuDivider-8ba18718.js.map} +1 -1
- package/cjs/{MenuItem-068e6546.js → MenuItem-67d1c17e.js} +19 -19
- package/cjs/{MenuItem-068e6546.js.map → MenuItem-67d1c17e.js.map} +1 -1
- package/cjs/{Message.types-cb49247a.js → Message.types-4050b933.js} +2 -2
- package/cjs/{Message.types-cb49247a.js.map → Message.types-4050b933.js.map} +1 -1
- package/cjs/{MessageCloseButton-a8d04f54.js → MessageCloseButton-a88ec1f0.js} +9 -9
- package/{amd/MessageCloseButton-51697635.js.map → cjs/MessageCloseButton-a88ec1f0.js.map} +1 -1
- package/cjs/{MessageDetail-ccca445b.js → MessageDetail-3b7b1e71.js} +7 -7
- package/cjs/{MessageDetail-ccca445b.js.map → MessageDetail-3b7b1e71.js.map} +1 -1
- package/cjs/{MessageFormattingUtils-221fcd80.js → MessageFormattingUtils-d2e689ee.js} +4 -4
- package/cjs/{MessageFormattingUtils-221fcd80.js.map → MessageFormattingUtils-d2e689ee.js.map} +1 -1
- package/cjs/{MessageLayer-b1319d82.js → MessageLayer-0569119f.js} +11 -11
- package/cjs/{MessageLayer-b1319d82.js.map → MessageLayer-0569119f.js.map} +1 -1
- package/cjs/{MessageStartIcon-b8097181.js → MessageStartIcon-8b6bb219.js} +11 -11
- package/cjs/{MessageStartIcon-b8097181.js.map → MessageStartIcon-8b6bb219.js.map} +1 -1
- package/cjs/{MessageSummary-3f9315a9.js → MessageSummary-e6f5a488.js} +7 -7
- package/cjs/{MessageSummary-3f9315a9.js.map → MessageSummary-e6f5a488.js.map} +1 -1
- package/cjs/{MessageTimestamp-d54dc4a3.js → MessageTimestamp-42957e93.js} +5 -5
- package/cjs/{MessageTimestamp-d54dc4a3.js.map → MessageTimestamp-42957e93.js.map} +1 -1
- package/cjs/{MessageToast-ac565264.js → MessageToast-bca9cd41.js} +9 -9
- package/cjs/{MessageToast-ac565264.js.map → MessageToast-bca9cd41.js.map} +1 -1
- package/cjs/{MessageUtils-3dcdf495.js → MessageUtils-0835327e.js} +3 -3
- package/cjs/{MessageUtils-3dcdf495.js.map → MessageUtils-0835327e.js.map} +1 -1
- package/cjs/{MessagesManager-c3a0893a.js → MessagesManager-644faed4.js} +4 -4
- package/cjs/{MessagesManager-c3a0893a.js.map → MessagesManager-644faed4.js.map} +1 -1
- package/cjs/{MeterCircle-7ec0b5f5.js → MeterCircle-4445b848.js} +50 -50
- package/cjs/{MeterCircle-7ec0b5f5.js.map → MeterCircle-4445b848.js.map} +1 -1
- package/cjs/{Modal-0c4cc690.js → Modal-a33c4ea6.js} +6 -6
- package/cjs/{Modal-0c4cc690.js.map → Modal-a33c4ea6.js.map} +1 -1
- package/cjs/{NumberInputText-40fe1cbf.js → NumberInputText-3aae98e5.js} +7 -7
- package/cjs/{NumberInputText-40fe1cbf.js.map → NumberInputText-3aae98e5.js.map} +1 -1
- package/cjs/PRIVATE_Collection.js +2 -2
- package/cjs/PRIVATE_List.js +23 -23
- package/cjs/PRIVATE_Message.js +41 -41
- package/cjs/PRIVATE_Message.js.map +1 -1
- package/cjs/PRIVATE_MessageLayer.js +12 -12
- package/cjs/PRIVATE_Meter.js +2 -2
- package/cjs/PRIVATE_SelectCommon.js +54 -54
- package/cjs/PRIVATE_SelectCommon.js.map +1 -1
- package/cjs/PRIVATE_TransitionGroup.js +1 -1
- package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
- package/cjs/{ReadonlyTextFieldInput-45dae724.js → ReadonlyTextFieldInput-ae8ca3d3.js} +13 -13
- package/cjs/{ReadonlyTextFieldInput-45dae724.js.map → ReadonlyTextFieldInput-ae8ca3d3.js.map} +1 -1
- package/cjs/{SelectMenuItem-fa0edf72.js → SelectMenuItem-2f4daaa1.js} +5 -5
- package/cjs/{SelectMenuItem-fa0edf72.js.map → SelectMenuItem-2f4daaa1.js.map} +1 -1
- package/cjs/{SelectMultiple-c809adb7.js → SelectMultiple-2384c07d.js} +8 -8
- package/cjs/{SelectMultiple-c809adb7.js.map → SelectMultiple-2384c07d.js.map} +1 -1
- package/cjs/{SelectSingle-e7cd9118.js → SelectSingle-11856321.js} +4 -4
- package/cjs/{SelectSingle-e7cd9118.js.map → SelectSingle-11856321.js.map} +1 -1
- package/cjs/{Skeleton-f60eec1f.js → Skeleton-6deacbc3.js} +5 -5
- package/cjs/{Skeleton-f60eec1f.js.map → Skeleton-6deacbc3.js.map} +1 -1
- package/cjs/{Spacer-f9d398f3.js → Spacer-5841ebd4.js} +4 -4
- package/cjs/{Spacer-f9d398f3.js.map → Spacer-5841ebd4.js.map} +1 -1
- package/cjs/{SplitMenuButton-f67550f5.js → SplitMenuButton-8a3edcbe.js} +14 -14
- package/cjs/{SplitMenuButton-f67550f5.js.map → SplitMenuButton-8a3edcbe.js.map} +1 -1
- package/cjs/{Text-4f2d62c9.js → Text-7302d155.js} +28 -28
- package/cjs/{Text-4f2d62c9.js.map → Text-7302d155.js.map} +1 -1
- package/cjs/{TextArea-e12574f9.js → TextArea-d378b949.js} +8 -8
- package/cjs/{TextArea-e12574f9.js.map → TextArea-d378b949.js.map} +1 -1
- package/cjs/{TextAreaAutosize-c0bf9ebd.js → TextAreaAutosize-3fcd1605.js} +5 -5
- package/cjs/{TextAreaAutosize-c0bf9ebd.js.map → TextAreaAutosize-3fcd1605.js.map} +1 -1
- package/cjs/{TextFieldInput-f2f3f0a0.js → TextFieldInput-890e3951.js} +33 -33
- package/{amd/TextFieldInput-312fb211.js.map → cjs/TextFieldInput-890e3951.js.map} +1 -1
- package/cjs/UNSAFE_AspectRatio.js +8 -8
- package/cjs/UNSAFE_AspectRatio.js.map +1 -1
- package/cjs/UNSAFE_Avatar.js +11 -11
- package/cjs/UNSAFE_Avatar.js.map +1 -1
- package/cjs/UNSAFE_Badge.js +3 -3
- package/cjs/UNSAFE_BaseButton.js +9 -9
- package/cjs/UNSAFE_Button.js +10 -10
- package/cjs/UNSAFE_Center.js +11 -11
- package/cjs/UNSAFE_Chip.js +3 -3
- package/cjs/UNSAFE_Collapsible.js +26 -26
- package/cjs/UNSAFE_Collapsible.js.map +1 -1
- package/cjs/UNSAFE_Collection.js +1 -1
- package/cjs/UNSAFE_ComponentMessage.js +33 -33
- package/cjs/UNSAFE_Divider.js +7 -7
- package/cjs/UNSAFE_EmptyList.js +1 -1
- package/cjs/UNSAFE_Environment.js +1 -1
- package/cjs/UNSAFE_FilePicker.js +14 -14
- package/cjs/UNSAFE_Flex.js +11 -11
- package/cjs/UNSAFE_Floating.js +3 -3
- package/cjs/UNSAFE_FocusTrap.js +6 -6
- package/cjs/UNSAFE_Grid.js +9 -9
- package/cjs/UNSAFE_Grid.js.map +1 -1
- package/cjs/UNSAFE_Heading.js +9 -9
- package/cjs/UNSAFE_HiddenAccessible.js +2 -2
- package/cjs/UNSAFE_HighlightText.js +2 -2
- package/cjs/UNSAFE_Icon.js +7 -7
- package/cjs/UNSAFE_Icons.js +8 -8
- package/cjs/UNSAFE_Indexer.js +16 -16
- package/cjs/UNSAFE_InputPassword.js +40 -40
- package/cjs/UNSAFE_InputText.js +39 -39
- package/cjs/UNSAFE_Label.js +16 -16
- package/cjs/UNSAFE_Label.js.map +1 -1
- package/cjs/UNSAFE_LabelValueLayout.js +20 -20
- package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
- package/cjs/UNSAFE_Layer.js +1 -1
- package/cjs/UNSAFE_Link.js +3 -3
- package/cjs/UNSAFE_ListItemLayout.js +10 -10
- package/cjs/UNSAFE_ListView.js +24 -24
- package/cjs/UNSAFE_LiveRegion.js +2 -2
- package/cjs/UNSAFE_LiveRegion.js.map +1 -1
- package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
- package/cjs/UNSAFE_Menu.js +15 -15
- package/cjs/UNSAFE_MessageBanner.js +30 -30
- package/cjs/UNSAFE_MessageToast.js +33 -33
- package/cjs/UNSAFE_MeterBar.js +49 -49
- package/cjs/UNSAFE_MeterBar.js.map +1 -1
- package/cjs/UNSAFE_MeterCircle.js +7 -7
- package/cjs/UNSAFE_Modal.js +7 -7
- package/cjs/UNSAFE_NumberInputText.js +39 -39
- package/cjs/UNSAFE_PrefixSuffix.js +10 -10
- package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
- package/cjs/UNSAFE_ProgressBar.js +9 -9
- package/cjs/UNSAFE_ProgressBar.js.map +1 -1
- package/cjs/UNSAFE_ProgressCircle.js +9 -9
- package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
- package/cjs/UNSAFE_RatingGauge.js +26 -26
- package/cjs/UNSAFE_RatingGauge.js.map +1 -1
- package/cjs/UNSAFE_SelectMultiple.js +47 -47
- package/cjs/UNSAFE_SelectSingle.js +46 -46
- package/cjs/UNSAFE_Selector.js +22 -22
- package/cjs/UNSAFE_Selector.js.map +1 -1
- package/cjs/UNSAFE_Skeleton.js +8 -8
- package/cjs/UNSAFE_Spacer.js +10 -10
- package/cjs/UNSAFE_SplitMenuButton.js +22 -22
- package/cjs/UNSAFE_Text.js +8 -8
- package/cjs/UNSAFE_TextArea.js +39 -39
- package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
- package/cjs/UNSAFE_TextField.js +35 -35
- package/cjs/UNSAFE_TextField.js.map +1 -1
- package/cjs/UNSAFE_ThemedIcons.js +9 -9
- package/cjs/UNSAFE_UserAssistance.js +41 -41
- package/cjs/UNSAFE_UserAssistance.js.map +1 -1
- package/cjs/UNSAFE_View.js +9 -9
- package/cjs/UNSAFE_VirtualizedListView.js +24 -24
- package/cjs/UNSAFE_WindowOverlay.js +1 -1
- package/cjs/{VirtualizedCollection-b345dec7.js → VirtualizedCollection-0a9f9c5f.js} +3 -3
- package/cjs/{VirtualizedCollection-b345dec7.js.map → VirtualizedCollection-0a9f9c5f.js.map} +1 -1
- package/cjs/{VirtualizedListView-b13ea090.js → VirtualizedListView-2c7d2a50.js} +3 -3
- package/cjs/{VirtualizedListView-b13ea090.js.map → VirtualizedListView-2c7d2a50.js.map} +1 -1
- package/cjs/{_curry1-8d2120e1.js → _curry1-13802dcb.js} +2 -2
- package/cjs/{_curry1-8d2120e1.js.map → _curry1-13802dcb.js.map} +1 -1
- package/cjs/{_curry2-e0541fa2.js → _curry2-d9882f03.js} +3 -3
- package/cjs/{_curry2-e0541fa2.js.map → _curry2-d9882f03.js.map} +1 -1
- package/cjs/{_curry3-4bf8f0ff.js → _curry3-b2cf661d.js} +4 -4
- package/cjs/{_curry3-4bf8f0ff.js.map → _curry3-b2cf661d.js.map} +1 -1
- package/cjs/{_has-0c6632fb.js → _has-7e450434.js} +3 -3
- package/cjs/{_has-0c6632fb.js.map → _has-7e450434.js.map} +1 -1
- package/cjs/{classNames-da349ca2.js → classNames-ce915c07.js} +2 -2
- package/cjs/{classNames-da349ca2.js.map → classNames-ce915c07.js.map} +1 -1
- package/cjs/{clientHints-1ea8f1df.js → clientHints-429ec118.js} +2 -2
- package/cjs/{clientHints-1ea8f1df.js.map → clientHints-429ec118.js.map} +1 -1
- package/cjs/{flexbox-f40d228f.js → flexbox-08bfdfa8.js} +10 -10
- package/cjs/{flexbox-f40d228f.js.map → flexbox-08bfdfa8.js.map} +1 -1
- package/cjs/{flexitem-540999d4.js → flexitem-44fbf03a.js} +10 -10
- package/cjs/{flexitem-540999d4.js.map → flexitem-44fbf03a.js.map} +1 -1
- package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
- package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
- package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
- package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
- package/cjs/hooks/PRIVATE_useSelection.js +1 -1
- package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
- package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
- package/cjs/hooks/UNSAFE_useActionable.js +1 -1
- package/cjs/hooks/UNSAFE_useActive.js +1 -1
- package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
- package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
- package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
- package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
- package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
- package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
- package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
- package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
- package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
- package/cjs/hooks/UNSAFE_useFloating.js +2 -2
- package/cjs/hooks/UNSAFE_useFocus.js +1 -1
- package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
- package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
- package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
- package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
- package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
- package/cjs/hooks/UNSAFE_useHover.js +1 -1
- package/cjs/hooks/UNSAFE_useId.js +1 -1
- package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
- package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
- package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
- package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
- package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/cjs/hooks/UNSAFE_usePan.js +1 -1
- package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
- package/cjs/hooks/UNSAFE_usePress.js +1 -1
- package/cjs/hooks/UNSAFE_useScale.js +1 -1
- package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
- package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
- package/cjs/hooks/UNSAFE_useTap.js +1 -1
- package/cjs/hooks/UNSAFE_useTextField.js +1 -1
- package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
- package/cjs/hooks/UNSAFE_useTheme.js +1 -1
- package/cjs/hooks/UNSAFE_useTimer.js +1 -1
- package/cjs/hooks/UNSAFE_useToggle.js +1 -1
- package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
- package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/cjs/hooks/UNSAFE_useTouch.js +1 -1
- package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/cjs/hooks/UNSAFE_useUser.js +1 -1
- package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
- package/cjs/{index-6cd66e43.js → index-11d50917.js} +3 -3
- package/cjs/{index-6cd66e43.js.map → index-11d50917.js.map} +1 -1
- package/cjs/{index-1a8d3228.js → index-3ccf46fc.js} +2 -2
- package/cjs/{index-1a8d3228.js.map → index-3ccf46fc.js.map} +1 -1
- package/cjs/{index-f35479e8.js → index-95880e1d.js} +3 -3
- package/cjs/{index-f35479e8.js.map → index-95880e1d.js.map} +1 -1
- package/cjs/{keys-dcecff11.js → keys-18213309.js} +4 -4
- package/cjs/{keys-dcecff11.js.map → keys-18213309.js.map} +1 -1
- package/cjs/{listViewSelectionTests-8543d0be.js → listViewSelectionTests-a8960d17.js} +4 -4
- package/cjs/{listViewSelectionTests-8543d0be.js.map → listViewSelectionTests-a8960d17.js.map} +1 -1
- package/cjs/{listViewTabbableModeTests-088e3919.js → listViewTabbableModeTests-a1a93b4a.js} +4 -4
- package/cjs/{listViewTabbableModeTests-088e3919.js.map → listViewTabbableModeTests-a1a93b4a.js.map} +1 -1
- package/cjs/{listViewTestFixtures-78bedae0.js → listViewTestFixtures-abead9a6.js} +2 -2
- package/cjs/{listViewTestFixtures-78bedae0.js.map → listViewTestFixtures-abead9a6.js.map} +1 -1
- package/cjs/{menuTestsUtils-216ea1a0.js → menuTestsUtils-f1fdf60d.js} +2 -2
- package/cjs/{menuTestsUtils-216ea1a0.js.map → menuTestsUtils-f1fdf60d.js.map} +1 -1
- package/cjs/resources/nls/ar/bundle.js +1 -1
- package/cjs/resources/nls/ar-XB/bundle.js +1 -1
- package/cjs/resources/nls/bg/bundle.js +1 -1
- package/cjs/resources/nls/bs/bundle.js +1 -1
- package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
- package/cjs/resources/nls/bundle.js +1 -1
- package/cjs/resources/nls/cs/bundle.js +1 -1
- package/cjs/resources/nls/da/bundle.js +1 -1
- package/cjs/resources/nls/de/bundle.js +1 -1
- package/cjs/resources/nls/el/bundle.js +1 -1
- package/cjs/resources/nls/en/bundle.js +1 -1
- package/cjs/resources/nls/en-XA/bundle.js +1 -1
- package/cjs/resources/nls/en-XC/bundle.js +1 -1
- package/cjs/resources/nls/es/bundle.js +1 -1
- package/cjs/resources/nls/et/bundle.js +1 -1
- package/cjs/resources/nls/fi/bundle.js +1 -1
- package/cjs/resources/nls/fr/bundle.js +1 -1
- package/cjs/resources/nls/fr-CA/bundle.js +1 -1
- package/cjs/resources/nls/he/bundle.js +1 -1
- package/cjs/resources/nls/hr/bundle.js +1 -1
- package/cjs/resources/nls/hu/bundle.js +1 -1
- package/cjs/resources/nls/is/bundle.js +1 -1
- package/cjs/resources/nls/it/bundle.js +1 -1
- package/cjs/resources/nls/ja/bundle.js +1 -1
- package/cjs/resources/nls/ko/bundle.js +1 -1
- package/cjs/resources/nls/lt/bundle.js +1 -1
- package/cjs/resources/nls/lv/bundle.js +1 -1
- package/cjs/resources/nls/ms/bundle.js +1 -1
- package/cjs/resources/nls/nl/bundle.js +1 -1
- package/cjs/resources/nls/no/bundle.js +1 -1
- package/cjs/resources/nls/pl/bundle.js +1 -1
- package/cjs/resources/nls/pt/bundle.js +1 -1
- package/cjs/resources/nls/pt-PT/bundle.js +1 -1
- package/cjs/resources/nls/ro/bundle.js +1 -1
- package/cjs/resources/nls/ru/bundle.js +1 -1
- package/cjs/resources/nls/sk/bundle.js +1 -1
- package/cjs/resources/nls/sl/bundle.js +1 -1
- package/cjs/resources/nls/sr/bundle.js +1 -1
- package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
- package/cjs/resources/nls/supportedLocales.js +1 -1
- package/cjs/resources/nls/sv/bundle.js +1 -1
- package/cjs/resources/nls/th/bundle.js +1 -1
- package/cjs/resources/nls/tr/bundle.js +1 -1
- package/cjs/resources/nls/uk/bundle.js +1 -1
- package/cjs/resources/nls/vi/bundle.js +1 -1
- package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
- package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
- package/cjs/{stringUtils-4323b5f4.js → stringUtils-124d71a2.js} +2 -2
- package/cjs/{stringUtils-4323b5f4.js.map → stringUtils-124d71a2.js.map} +1 -1
- package/cjs/{testHelpers-6f2545dd.js → testHelpers-19c0f230.js} +2 -2
- package/cjs/{testHelpers-6f2545dd.js.map → testHelpers-19c0f230.js.map} +1 -1
- package/cjs/translationBundle.js +1 -1
- package/cjs/{tslib.es6-cd419f8d.js → tslib.es6-269818ea.js} +2 -2
- package/cjs/{tslib.es6-cd419f8d.js.map → tslib.es6-269818ea.js.map} +1 -1
- package/cjs/{useAnimation-64f648d2.js → useAnimation-a1133121.js} +3 -3
- package/cjs/{useAnimation-64f648d2.js.map → useAnimation-a1133121.js.map} +1 -1
- package/cjs/{useFocusWithin-4b3e579b.js → useFocusWithin-78dc5295.js} +2 -2
- package/cjs/{useFocusWithin-4b3e579b.js.map → useFocusWithin-78dc5295.js.map} +1 -1
- package/cjs/{useSingleSelection-e0d38657.js → useSingleSelection-b4e1d32b.js} +2 -2
- package/cjs/{useSingleSelection-e0d38657.js.map → useSingleSelection-b4e1d32b.js.map} +1 -1
- package/cjs/utils/PRIVATE_clientHints.js +2 -2
- package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
- package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
- package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
- package/cjs/utils/PRIVATE_meterUtils.js +1 -1
- package/cjs/utils/PRIVATE_refUtils.js +1 -1
- package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
- package/cjs/utils/PRIVATE_timer.js +1 -1
- package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
- package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
- package/cjs/utils/UNSAFE_classNames.js +2 -2
- package/cjs/utils/UNSAFE_componentUtils.js +1 -1
- package/cjs/utils/UNSAFE_dataProvider.js +1 -1
- package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
- package/cjs/utils/UNSAFE_getLocale.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
- package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
- package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
- package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/cjs/utils/UNSAFE_keys.js +1 -1
- package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
- package/cjs/utils/UNSAFE_logger.js +3 -3
- package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
- package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
- package/cjs/utils/UNSAFE_mergeProps.js +1 -1
- package/cjs/utils/UNSAFE_meterTypes.js +1 -1
- package/cjs/utils/UNSAFE_roles.js +1 -1
- package/cjs/utils/UNSAFE_selectUtils.js +1 -1
- package/cjs/utils/UNSAFE_size.js +1 -1
- package/cjs/utils/UNSAFE_soundUtils.js +1 -1
- package/cjs/utils/UNSAFE_stringUtils.js +2 -2
- package/cjs/utils/UNSAFE_typeUtils.js +1 -1
- package/cjs/utils/UNSAFE_units.js +2 -2
- package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
- package/es/{ClearIcon-82a14f55.js → ClearIcon-07fe2eb7.js} +3 -3
- package/es/{ClearIcon-82a14f55.js.map → ClearIcon-07fe2eb7.js.map} +1 -1
- package/es/{LoadMoreCollection-f47b4050.js → LoadMoreCollection-069b9e84.js} +2 -2
- package/es/{LoadMoreCollection-f47b4050.js.map → LoadMoreCollection-069b9e84.js.map} +1 -1
- package/es/PRIVATE_Collection.js +1 -1
- package/es/PRIVATE_List.css +17 -18
- package/es/PRIVATE_List.js +24 -24
- package/es/PRIVATE_List.js.map +1 -1
- package/es/PRIVATE_Message.css +34 -35
- package/es/PRIVATE_Message.js +35 -35
- package/es/PRIVATE_Message.js.map +1 -1
- package/es/PRIVATE_MessageLayer.css +7 -8
- package/es/PRIVATE_MessageLayer.js +14 -14
- package/es/PRIVATE_MessageLayer.js.map +1 -1
- package/es/PRIVATE_Meter.js +2 -2
- package/es/PRIVATE_SelectCommon.css +18 -19
- package/es/PRIVATE_SelectCommon.js +22 -22
- package/es/PRIVATE_SelectCommon.js.map +1 -1
- package/es/PRIVATE_TransitionGroup.js +1 -1
- package/es/PRIVATE_VirtualizedCollection.js +1 -1
- package/es/UNSAFE_AspectRatio.css +1 -2
- package/es/UNSAFE_AspectRatio.js +7 -7
- package/es/UNSAFE_AspectRatio.js.map +1 -1
- package/es/UNSAFE_Avatar.css +8 -9
- package/es/UNSAFE_Avatar.js +10 -10
- package/es/UNSAFE_Avatar.js.map +1 -1
- package/es/UNSAFE_Badge.css +13 -14
- package/es/UNSAFE_Badge.js +14 -14
- package/es/UNSAFE_Badge.js.map +1 -1
- package/es/UNSAFE_BaseButton.css +15 -16
- package/es/UNSAFE_BaseButton.js +21 -21
- package/es/UNSAFE_BaseButton.js.map +1 -1
- package/es/UNSAFE_Button.css +8 -9
- package/es/UNSAFE_Button.js +14 -14
- package/es/UNSAFE_Button.js.map +1 -1
- package/es/UNSAFE_Center.js +7 -7
- package/es/UNSAFE_Chip.css +7 -8
- package/es/UNSAFE_Chip.js +8 -8
- package/es/UNSAFE_Chip.js.map +1 -1
- package/es/UNSAFE_Collapsible.css +9 -10
- package/es/UNSAFE_Collapsible.js +16 -16
- package/es/UNSAFE_Collapsible.js.map +1 -1
- package/es/UNSAFE_Collection.js +1 -1
- package/es/UNSAFE_ComponentMessage.css +3 -4
- package/es/UNSAFE_ComponentMessage.js +10 -10
- package/es/UNSAFE_ComponentMessage.js.map +1 -1
- package/es/UNSAFE_Divider.css +1 -2
- package/es/UNSAFE_Divider.js +6 -6
- package/es/UNSAFE_EmptyList.js +1 -1
- package/es/UNSAFE_Environment.js +1 -1
- package/es/UNSAFE_FilePicker.css +6 -7
- package/es/UNSAFE_FilePicker.js +13 -13
- package/es/UNSAFE_FilePicker.js.map +1 -1
- package/es/UNSAFE_Flex.css +2 -3
- package/es/UNSAFE_Flex.js +9 -9
- package/es/UNSAFE_Flex.js.map +1 -1
- package/es/UNSAFE_Floating.js +2 -2
- package/es/UNSAFE_FocusTrap.css +3 -4
- package/es/UNSAFE_FocusTrap.js +6 -6
- package/es/UNSAFE_FocusTrap.js.map +1 -1
- package/es/UNSAFE_Grid.css +1 -2
- package/es/UNSAFE_Grid.js +8 -8
- package/es/UNSAFE_Grid.js.map +1 -1
- package/es/UNSAFE_Heading.css +9 -10
- package/es/UNSAFE_Heading.js +16 -16
- package/es/UNSAFE_Heading.js.map +1 -1
- package/es/UNSAFE_HiddenAccessible.css +1 -2
- package/es/UNSAFE_HiddenAccessible.js +2 -2
- package/es/UNSAFE_HiddenAccessible.js.map +1 -1
- package/es/UNSAFE_HighlightText.css +1 -2
- package/es/UNSAFE_HighlightText.js +2 -2
- package/es/UNSAFE_HighlightText.js.map +1 -1
- package/es/UNSAFE_Icon.css +21 -22
- package/es/UNSAFE_Icon.js +24 -24
- package/es/UNSAFE_Icon.js.map +1 -1
- package/es/UNSAFE_Icons.js +3 -3
- package/es/UNSAFE_Indexer.css +8 -9
- package/es/UNSAFE_Indexer.js +15 -15
- package/es/UNSAFE_Indexer.js.map +1 -1
- package/es/UNSAFE_InputPassword.css +1 -2
- package/es/UNSAFE_InputPassword.js +10 -10
- package/es/UNSAFE_InputText.css +1 -2
- package/es/UNSAFE_InputText.js +9 -9
- package/es/UNSAFE_Label.css +13 -14
- package/es/UNSAFE_Label.js +15 -15
- package/es/UNSAFE_Label.js.map +1 -1
- package/es/UNSAFE_LabelValueLayout.css +9 -10
- package/es/UNSAFE_LabelValueLayout.js +16 -16
- package/es/UNSAFE_LabelValueLayout.js.map +1 -1
- package/es/UNSAFE_Layer.js +1 -1
- package/es/UNSAFE_Link.css +5 -6
- package/es/UNSAFE_Link.js +6 -6
- package/es/UNSAFE_Link.js.map +1 -1
- package/es/UNSAFE_ListItemLayout.css +10 -11
- package/es/UNSAFE_ListItemLayout.js +16 -16
- package/es/UNSAFE_ListItemLayout.js.map +1 -1
- package/es/UNSAFE_ListView.js +9 -9
- package/es/UNSAFE_LiveRegion.css +1 -2
- package/es/UNSAFE_LiveRegion.js +2 -2
- package/es/UNSAFE_LiveRegion.js.map +1 -1
- package/es/UNSAFE_LoadMoreCollection.js +2 -2
- package/es/UNSAFE_Menu.css +19 -20
- package/es/UNSAFE_Menu.js +24 -24
- package/es/UNSAFE_Menu.js.map +1 -1
- package/es/UNSAFE_MessageBanner.js +8 -8
- package/es/UNSAFE_MessageToast.css +1 -2
- package/es/UNSAFE_MessageToast.js +9 -9
- package/es/UNSAFE_MeterBar.css +45 -46
- package/es/UNSAFE_MeterBar.js +46 -46
- package/es/UNSAFE_MeterBar.js.map +1 -1
- package/es/UNSAFE_MeterCircle.css +47 -48
- package/es/UNSAFE_MeterCircle.js +49 -49
- package/es/UNSAFE_MeterCircle.js.map +1 -1
- package/es/UNSAFE_Modal.css +5 -6
- package/es/UNSAFE_Modal.js +7 -7
- package/es/UNSAFE_NumberInputText.js +8 -8
- package/es/UNSAFE_PrefixSuffix.css +8 -9
- package/es/UNSAFE_PrefixSuffix.js +9 -9
- package/es/UNSAFE_PrefixSuffix.js.map +1 -1
- package/es/UNSAFE_ProgressBar.css +6 -7
- package/es/UNSAFE_ProgressBar.js +8 -8
- package/es/UNSAFE_ProgressBar.js.map +1 -1
- package/es/UNSAFE_ProgressCircle.css +6 -7
- package/es/UNSAFE_ProgressCircle.js +8 -8
- package/es/UNSAFE_ProgressCircle.js.map +1 -1
- package/es/UNSAFE_RatingGauge.css +22 -23
- package/es/UNSAFE_RatingGauge.js +23 -23
- package/es/UNSAFE_RatingGauge.js.map +1 -1
- package/es/UNSAFE_SelectMultiple.css +1 -2
- package/es/UNSAFE_SelectMultiple.js +10 -10
- package/es/UNSAFE_SelectMultiple.js.map +1 -1
- package/es/UNSAFE_SelectSingle.js +9 -9
- package/es/UNSAFE_Selector.css +5 -6
- package/es/UNSAFE_Selector.js +13 -13
- package/es/UNSAFE_Selector.js.map +1 -1
- package/es/UNSAFE_Skeleton.css +1 -2
- package/es/UNSAFE_Skeleton.js +7 -7
- package/es/UNSAFE_Spacer.js +7 -7
- package/es/UNSAFE_SplitMenuButton.css +5 -6
- package/es/UNSAFE_SplitMenuButton.js +12 -12
- package/es/UNSAFE_SplitMenuButton.js.map +1 -1
- package/es/UNSAFE_Text.css +25 -26
- package/es/UNSAFE_Text.js +31 -31
- package/es/UNSAFE_Text.js.map +1 -1
- package/es/UNSAFE_TextArea.css +3 -4
- package/es/UNSAFE_TextArea.js +11 -11
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +8 -8
- package/es/UNSAFE_TextField.css +62 -63
- package/es/UNSAFE_TextField.js +65 -65
- package/es/UNSAFE_TextField.js.map +1 -1
- package/es/UNSAFE_ThemedIcons.js +3 -3
- package/es/UNSAFE_UserAssistance.css +11 -12
- package/es/UNSAFE_UserAssistance.js +16 -16
- package/es/UNSAFE_UserAssistance.js.map +1 -1
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +9 -9
- package/es/UNSAFE_WindowOverlay.js +1 -1
- package/es/{_curry1-dfb64835.js → _curry1-5c89b5f3.js} +2 -2
- package/es/{_curry1-dfb64835.js.map → _curry1-5c89b5f3.js.map} +1 -1
- package/es/{_curry2-b60c1ab2.js → _curry2-507af694.js} +3 -3
- package/es/{_curry2-b60c1ab2.js.map → _curry2-507af694.js.map} +1 -1
- package/es/{_curry3-645b514e.js → _curry3-fe4078e6.js} +4 -4
- package/es/{_curry3-645b514e.js.map → _curry3-fe4078e6.js.map} +1 -1
- package/es/{_has-47f27295.js → _has-54177c6b.js} +3 -3
- package/es/{_has-47f27295.js.map → _has-54177c6b.js.map} +1 -1
- package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
- package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
- package/es/hooks/PRIVATE_useItemAction.js +1 -1
- package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
- package/es/hooks/PRIVATE_useSelection.js +1 -1
- package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
- package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
- package/es/hooks/UNSAFE_useActionable.js +1 -1
- package/es/hooks/UNSAFE_useActive.js +1 -1
- package/es/hooks/UNSAFE_useAnimation.js +2 -2
- package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
- package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
- package/es/hooks/UNSAFE_useClearIcon.js +1 -1
- package/es/hooks/UNSAFE_useColorScheme.js +1 -1
- package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
- package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
- package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
- package/es/hooks/UNSAFE_useDebounce.js +1 -1
- package/es/hooks/UNSAFE_useFloating.js +2 -2
- package/es/hooks/UNSAFE_useFocus.js +1 -1
- package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
- package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
- package/es/hooks/UNSAFE_useFormContext.js +1 -1
- package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
- package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
- package/es/hooks/UNSAFE_useHover.js +1 -1
- package/es/hooks/UNSAFE_useId.js +1 -1
- package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
- package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
- package/es/hooks/UNSAFE_useLongPress.js +1 -1
- package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
- package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/es/hooks/UNSAFE_usePan.js +1 -1
- package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/es/hooks/UNSAFE_usePress.js +1 -1
- package/es/hooks/UNSAFE_useScale.js +1 -1
- package/es/hooks/UNSAFE_useSwipe.js +1 -1
- package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
- package/es/hooks/UNSAFE_useTap.js +1 -1
- package/es/hooks/UNSAFE_useTextField.js +1 -1
- package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
- package/es/hooks/UNSAFE_useTheme.js +1 -1
- package/es/hooks/UNSAFE_useTimer.js +1 -1
- package/es/hooks/UNSAFE_useToggle.js +1 -1
- package/es/hooks/UNSAFE_useTooltip.css +4 -5
- package/es/hooks/UNSAFE_useTooltip.js +7 -7
- package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/es/hooks/UNSAFE_useTouch.js +1 -1
- package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/es/hooks/UNSAFE_useUser.js +1 -1
- package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
- package/es/{index-4d0e7777.js → index-0a1ecf07.js} +2 -2
- package/es/{index-4d0e7777.js.map → index-0a1ecf07.js.map} +1 -1
- package/es/{keys-1907eb95.js → keys-79ba493e.js} +4 -4
- package/es/{keys-1907eb95.js.map → keys-79ba493e.js.map} +1 -1
- package/es/resources/nls/ar/bundle.js +1 -1
- package/es/resources/nls/ar-XB/bundle.js +1 -1
- package/es/resources/nls/bg/bundle.js +1 -1
- package/es/resources/nls/bs/bundle.js +1 -1
- package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
- package/es/resources/nls/bundle.js +1 -1
- package/es/resources/nls/cs/bundle.js +1 -1
- package/es/resources/nls/da/bundle.js +1 -1
- package/es/resources/nls/de/bundle.js +1 -1
- package/es/resources/nls/el/bundle.js +1 -1
- package/es/resources/nls/en/bundle.js +1 -1
- package/es/resources/nls/en-XA/bundle.js +1 -1
- package/es/resources/nls/en-XC/bundle.js +1 -1
- package/es/resources/nls/es/bundle.js +1 -1
- package/es/resources/nls/et/bundle.js +1 -1
- package/es/resources/nls/fi/bundle.js +1 -1
- package/es/resources/nls/fr/bundle.js +1 -1
- package/es/resources/nls/fr-CA/bundle.js +1 -1
- package/es/resources/nls/he/bundle.js +1 -1
- package/es/resources/nls/hr/bundle.js +1 -1
- package/es/resources/nls/hu/bundle.js +1 -1
- package/es/resources/nls/is/bundle.js +1 -1
- package/es/resources/nls/it/bundle.js +1 -1
- package/es/resources/nls/ja/bundle.js +1 -1
- package/es/resources/nls/ko/bundle.js +1 -1
- package/es/resources/nls/lt/bundle.js +1 -1
- package/es/resources/nls/lv/bundle.js +1 -1
- package/es/resources/nls/ms/bundle.js +1 -1
- package/es/resources/nls/nl/bundle.js +1 -1
- package/es/resources/nls/no/bundle.js +1 -1
- package/es/resources/nls/pl/bundle.js +1 -1
- package/es/resources/nls/pt/bundle.js +1 -1
- package/es/resources/nls/pt-PT/bundle.js +1 -1
- package/es/resources/nls/ro/bundle.js +1 -1
- package/es/resources/nls/ru/bundle.js +1 -1
- package/es/resources/nls/sk/bundle.js +1 -1
- package/es/resources/nls/sl/bundle.js +1 -1
- package/es/resources/nls/sr/bundle.js +1 -1
- package/es/resources/nls/sr-Latn/bundle.js +1 -1
- package/es/resources/nls/supportedLocales.js +1 -1
- package/es/resources/nls/sv/bundle.js +1 -1
- package/es/resources/nls/th/bundle.js +1 -1
- package/es/resources/nls/tr/bundle.js +1 -1
- package/es/resources/nls/uk/bundle.js +1 -1
- package/es/resources/nls/vi/bundle.js +1 -1
- package/es/resources/nls/zh-Hans/bundle.js +1 -1
- package/es/resources/nls/zh-Hant/bundle.js +1 -1
- package/es/translationBundle.js +1 -1
- package/es/{tslib.es6-bf96b795.js → tslib.es6-b2c04651.js} +2 -2
- package/es/{tslib.es6-bf96b795.js.map → tslib.es6-b2c04651.js.map} +1 -1
- package/es/{useSingleSelection-8eaee995.js → useSingleSelection-a8b0f6cc.js} +2 -2
- package/es/{useSingleSelection-8eaee995.js.map → useSingleSelection-a8b0f6cc.js.map} +1 -1
- package/es/utils/PRIVATE_clientHints.js +1 -1
- package/es/utils/PRIVATE_collectionUtils.js +1 -1
- package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
- package/es/utils/PRIVATE_floatingUtils.js +1 -1
- package/es/utils/PRIVATE_meterUtils.js +1 -1
- package/es/utils/PRIVATE_refUtils.js +1 -1
- package/es/utils/PRIVATE_tabbableUtils.js +4 -4
- package/es/utils/PRIVATE_timer.js +1 -1
- package/es/utils/UNSAFE_arrayUtils.js +1 -1
- package/es/utils/UNSAFE_attributeUtils.js +1 -1
- package/es/utils/UNSAFE_classNames.js +1 -1
- package/es/utils/UNSAFE_componentUtils.js +1 -1
- package/es/utils/UNSAFE_dataProvider.js +1 -1
- package/es/utils/UNSAFE_filePickerUtils.js +1 -1
- package/es/utils/UNSAFE_getLocale.js +1 -1
- package/es/utils/UNSAFE_interpolations/aria.js +1 -1
- package/es/utils/UNSAFE_interpolations/borders.js +1 -1
- package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -16
- package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
- package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/colors.js +1 -1
- package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
- package/es/utils/UNSAFE_interpolations/flexbox.css +7 -8
- package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/flexitem.css +7 -8
- package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/grid.js +1 -1
- package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
- package/es/utils/UNSAFE_interpolations/padding.js +1 -1
- package/es/utils/UNSAFE_interpolations/text.css +3 -4
- package/es/utils/UNSAFE_interpolations/text.js +7 -7
- package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/es/utils/UNSAFE_keys.js +1 -1
- package/es/utils/UNSAFE_lengthFilter.js +1 -1
- package/es/utils/UNSAFE_logger.js +3 -3
- package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
- package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
- package/es/utils/UNSAFE_mergeProps.js +1 -1
- package/es/utils/UNSAFE_meterTypes.js +1 -1
- package/es/utils/UNSAFE_roles.js +1 -1
- package/es/utils/UNSAFE_selectUtils.js +1 -1
- package/es/utils/UNSAFE_size.js +1 -1
- package/es/utils/UNSAFE_soundUtils.js +1 -1
- package/es/utils/UNSAFE_stringUtils.js +1 -1
- package/es/utils/UNSAFE_typeUtils.js +1 -1
- package/es/utils/UNSAFE_units.js +1 -1
- package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
- package/package.json +1 -1
- package/amd/Badge-3a3bc336.js +0 -40
- package/amd/BaseButton-20a653f3.js +0 -148
- package/amd/Button-87280b4a.js +0 -68
- package/amd/Chip-8cd23568.js +0 -55
- package/amd/ClearIcon-27a5c275.js +0 -58
- package/amd/Collection-55b75a82.js +0 -18
- package/amd/ComponentMessage-5603259e.js +0 -44
- package/amd/ComponentMessageContainer-a00ec42c.js +0 -50
- package/amd/Divider-8cd412fd.js +0 -34
- package/amd/FilePicker-bb70dacb.js +0 -582
- package/amd/Flex-7762d39c.js +0 -35
- package/amd/Floating-08ac18d2.js +0 -310
- package/amd/FocusTrap-420f2714.js +0 -143
- package/amd/FormControlUtils-802d298a.js +0 -21
- package/amd/Heading-431829e1.js +0 -72
- package/amd/HiddenAccessible-1dadf91a.js +0 -25
- package/amd/HighlightText-9d200a5d.js +0 -48
- package/amd/Icon-a6ef6699.js +0 -99
- package/amd/Indexer-81bf2fe0.js +0 -512
- package/amd/InlineHelpSource-8a22f914.js +0 -32
- package/amd/Link-3169fd72.js +0 -42
- package/amd/List-26b59d92.js +0 -670
- package/amd/ListItemTextLayout-f6a3d721.js +0 -211
- package/amd/ListView-3b9a3235.js +0 -16
- package/amd/LoadMoreCollection-b7513141.js +0 -63
- package/amd/Menu-94ddd429.js +0 -302
- package/amd/Menu-94ddd429.js.map +0 -1
- package/amd/MenuDivider-b9309ceb.js +0 -19
- package/amd/MenuItem-c263a7c0.js +0 -154
- package/amd/MenuItem-c263a7c0.js.map +0 -1
- package/amd/Message.types-3ff18727.js +0 -11
- package/amd/MessageCloseButton-51697635.js +0 -44
- package/amd/MessageDetail-dd86fa2b.js +0 -61
- package/amd/MessageFormattingUtils-0ffdac02.js +0 -103
- package/amd/MessageLayer-6da93adb.js +0 -80
- package/amd/MessageStartIcon-1b57b659.js +0 -63
- package/amd/MessageSummary-cf0af1b2.js +0 -37
- package/amd/MessageTimestamp-0e995235.js +0 -36
- package/amd/MessageToast-e0f94cbe.js +0 -307
- package/amd/MessageUtils-0bf10cfa.js +0 -137
- package/amd/MessagesManager-da52103a.js +0 -110
- package/amd/MeterCircle-bb948163.js +0 -547
- package/amd/Modal-be0762b5.js +0 -109
- package/amd/NumberInputText-d762d134.js +0 -252
- package/amd/ReadonlyTextFieldInput-4583f049.js +0 -111
- package/amd/SelectMenuItem-2412de22.js +0 -60
- package/amd/SelectMenuItem-2412de22.js.map +0 -1
- package/amd/SelectMultiple-d1b4cc77.js +0 -485
- package/amd/SelectMultiple-d1b4cc77.js.map +0 -1
- package/amd/SelectSingle-01b25bff.js +0 -354
- package/amd/SelectSingle-01b25bff.js.map +0 -1
- package/amd/Skeleton-d0383726.js +0 -39
- package/amd/Spacer-165e178f.js +0 -16
- package/amd/SplitMenuButton-df0ee526.js +0 -184
- package/amd/Text-de291c3f.js +0 -100
- package/amd/TextArea-25fa8171.js +0 -133
- package/amd/TextAreaAutosize-370b4a47.js +0 -161
- package/amd/TextFieldInput-312fb211.js +0 -172
- package/amd/VirtualizedCollection-63815bce.js +0 -181
- package/amd/VirtualizedListView-fb2a18dd.js +0 -16
- package/amd/_curry1-645b9927.js +0 -70
- package/amd/_curry1-645b9927.js.map +0 -1
- package/amd/_curry2-93924f19.js +0 -42
- package/amd/_curry2-93924f19.js.map +0 -1
- package/amd/_curry3-4cc6f6ba.js +0 -60
- package/amd/_curry3-4cc6f6ba.js.map +0 -1
- package/amd/_has-cce283ad.js +0 -14
- package/amd/_has-cce283ad.js.map +0 -1
- package/amd/classNames-027de734.js +0 -19
- package/amd/clientHints-361cde40.js +0 -156
- package/amd/flexbox-4dd0bbb4.js +0 -41
- package/amd/flexitem-7363d040.js +0 -41
- package/amd/index-5920700b.js +0 -76
- package/amd/index-e9199379.js +0 -1661
- package/amd/index-e9199379.js.map +0 -1
- package/amd/index-f54bad63.js +0 -64
- package/amd/index-f54bad63.js.map +0 -1
- package/amd/keys-a09501ab.js +0 -105
- package/amd/listViewSelectionTests-70a5b510.js +0 -1385
- package/amd/listViewSelectionTests-70a5b510.js.map +0 -1
- package/amd/listViewTabbableModeTests-a91e8816.js +0 -112
- package/amd/listViewTabbableModeTests-a91e8816.js.map +0 -1
- package/amd/listViewTestFixtures-98d95a1d.js +0 -46
- package/amd/listViewTestFixtures-98d95a1d.js.map +0 -1
- package/amd/menuTestsUtils-6da02810.js +0 -41
- package/amd/stringUtils-9311a716.js +0 -92
- package/amd/testHelpers-9267074b.js +0 -37
- package/amd/tslib.es6-71b1ba5b.js +0 -437
- package/amd/tslib.es6-71b1ba5b.js.map +0 -1
- package/amd/useAnimation-2f572e0c.js +0 -247
- package/amd/useFocusWithin-a88e3e32.js +0 -50
- package/amd/useSingleSelection-7081cc84.js +0 -43
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton-
|
|
1
|
+
{"version":3,"file":"Skeleton-748d8598.js","sources":["../../src/UNSAFE_Skeleton/Skeleton.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { borderInterpolations } from '../utils/UNSAFE_interpolations/borders';\nimport type { BorderProps } from '../utils/UNSAFE_interpolations/borders';\nimport { stringLiteralArray } from '../utils/UNSAFE_arrayUtils';\nimport { WithRequired } from '../utils/UNSAFE_typeUtils';\n\nconst dimensions = stringLiteralArray(['height', 'width']);\ntype Dimension = typeof dimensions[number];\nconst border = stringLiteralArray(['borderRadius']);\ntype BorderRadius = typeof border[number];\n\n// This component has some StyleInterpolationProps. Those are the height and width properties of the SkeletonProps.\ntype StyleInterpolationProps = Pick<DimensionProps, Dimension>;\n// This component has some BorderRadiusProps, which is the borderRadius property of the SkeletonProps.\ntype BorderRadiusProps = Pick<BorderProps, BorderRadius>;\n//This type has StyleInterpolationProps and BorderRadiusProps with the height prop made required.\ntype SkeletonProps = WithRequired<StyleInterpolationProps, 'height'> & BorderRadiusProps;\n\n// Create an array [dimensionInterpolations['height'], dimensionInterpolations['width']]\nconst skeletonDimensionInterpolation = Array.from(dimensions, (x) => dimensionInterpolations[x]);\nconst borderRadiusInterpolation = Array.from(border, (x) => borderInterpolations[x]);\nconst interpolations = [\n ...Object.values(borderRadiusInterpolation),\n ...Object.values(skeletonDimensionInterpolation)\n];\n\nconst SkeletonInterpolations = mergeInterpolations<SkeletonProps>(interpolations);\n\n/* Styling for skeleton main (loop) animation */\nconst animationSkeletonStyle = {\n base: cssProps`${{\n animationName: 'var(--oj-c-PRIVATE-DO-NOT-USE-private-preact-skeleton-animation-name)',\n animationIterationCount: 'infinite',\n animationDirection: 'alternate',\n animationDuration: '1.5s'\n }}`\n};\n\n/**\n * Skeleton component allows the appropriate skeleton to be rendered based on the\n * property values\n **/\nexport function Skeleton({ ...props }: SkeletonProps) {\n const skeletonDimensions = SkeletonInterpolations({ width: '100%', borderRadius: 0, ...props });\n const itemClasses = classNames([animationSkeletonStyle.base]);\n return <div style={skeletonDimensions} class={itemClasses} />;\n}\n"],"names":["dimensions","stringLiteralArray","border","skeletonDimensionInterpolation","Array","from","x","dimensionInterpolations","borderRadiusInterpolation","borderInterpolations","interpolations","Object","values","SkeletonInterpolations","mergeInterpolations","animationSkeletonStyle","_a","skeletonDimensions","assign","width","borderRadius","props"],"mappings":"4TAiBA,MAAAA,EAAAC,EAAAA,mBAAA,CAAA,SAAA,UAEAC,EAAAD,EAAAA,mBAAA,CAAA,iBAWAE,EAAAC,MAAAC,KAAAL,EAAAM,GAAAC,EAAAA,wBAAAD,IACAE,EAAAJ,MAAAC,KAAAH,EAAAI,GAAAG,EAAAA,qBAAAH,IACAI,EAAA,IACEC,OAAAC,OAAAJ,MACAG,OAAAC,OAAAT,IAGFU,EAAAC,EAAAA,oBAAAJ,GAGAK,sBAaA,SAAAC,wBACE,MAAAC,EAAAJ,EAAAF,OAAAO,OAAA,CAAAC,MAAA,OAAAC,aAAA,GAAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(["exports","./tslib.es6-f5cdfdde","preact/jsx-runtime","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_mergeInterpolations","./utils/UNSAFE_interpolations/flexitem","./flexitem-323dec38"],function(e,t,s,i,n,l,o){"use strict";const r=[...Object.values(i.dimensionInterpolations),o.flexitemInterpolations.flex],a=n.mergeInterpolations(r);e.Spacer=e=>{var i=t.__rest(e,[]);const n=a(i),{class:l}=n,o=t.__rest(n,["class"]);return s.jsx("div",{class:l,style:o})}});
|
|
2
|
+
//# sourceMappingURL=Spacer-0a0ef1ce.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer-
|
|
1
|
+
{"version":3,"file":"Spacer-0a0ef1ce.js","sources":["../../src/UNSAFE_Spacer/Spacer.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\n\ntype StyleProps = DimensionProps & Pick<FlexitemProps, 'flex'>;\n\ntype Props = StyleProps;\n\nconst interpolations = [...Object.values(dimensionInterpolations), flexitemInterpolations.flex];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\nexport const Spacer = ({ ...props }: Props) => {\n const { class: cls, ...styles } = styleInterpolations(props);\n return <div class={cls} style={styles}></div>;\n};\n"],"names":["interpolations","Object","values","dimensionInterpolations","flexitemInterpolations","flex","styleInterpolations","mergeInterpolations","_a","props","__rest","_b","class","cls","styles","_jsx","style"],"mappings":"mPAiBA,MAAMA,EAAiB,IAAIC,OAAOC,OAAOC,EAAAA,yBAA0BC,EAAAA,uBAAuBC,MAEpFC,EAAsBC,EAAAA,oBAA2BP,YAEhCQ,QAAKC,EAAKC,EAAAA,OAAAF,EAAV,IACrB,MAAMG,EAA4BL,EAAoBG,IAA9CG,MAAOC,KAAQC,EAAjBJ,EAAAA,OAAAC,EAAA,CAAA,UACN,OAAOI,EAAAA,IAAA,MAAA,CAAKH,MAAOC,EAAKG,MAAOF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(["exports","./tslib.es6-f5cdfdde","preact/jsx-runtime","./UNSAFE_Button","./index-2f61a0e0","./UNSAFE_Menu","./UNSAFE_BaseButton","./utils/UNSAFE_classNames","./hooks/UNSAFE_useTabbableMode","./utils/UNSAFE_interpolations/dimensions","./utils/UNSAFE_mergeInterpolations",'module',"preact/compat","preact/hooks","./classNames-d0ddb6e6","./BaseButton-19147e28","./Button-a416ba53","./index-d54f6449","./Menu-4dd5d2e3"],function(e,s,n,a,t,i,l,o,r,d,c,u,b,p,j,m,v,x,y){"use strict";const B="_1lrj8ng",f="hwtb7v",g="_1qjpm2v",h="qjixu4",N=["embedded","min","noBorderRadiusStart"],_=[...N,"active"],A=["embedded","fill","noBorderRadiusEnd"],D=[...A,"active"],S=[...Object.values(d.dimensionInterpolations)],k=c.mergeInterpolations(S),E=b.forwardRef((e,a)=>{var{children:t,label:i="",variant:l="outlined",isDisabled:o=!1,size:d="md",onAction:c}=e,u=s.__rest(e,["children","label","variant","isDisabled","size","onAction"]);const[b,N]=p.useState(!1),[_,A]=p.useState(!1),D=k(u),{class:S}=D,E=s.__rest(D,["class"]),U=p.useCallback(e=>{" "===e.key||"Enter"===e.key?A(!0):"ArrowDown"==e.key&&(!o&&N(e=>!e),e.preventDefault())},[o,N,A]),F=p.useCallback(e=>{" "!==e.key&&"Enter"!==e.key||(!o&&c&&c(),A(!1))},[o,c,A]),z=p.useCallback(()=>{A(!1)},[A]),I=p.useRef(null);p.useImperativeHandle(a,()=>I.current,[I]);const M=()=>{N(!b)},R=e=>{var s;e.reason,null===(s=I.current)||void 0===s||s.focus(),N(!1)},C=j.classNames([B,o&&f]),$=j.classNames([g]),H=()=>n.jsx(m.BaseButton,Object.assign({elementDetails:{type:"span"},ref:I,isDisabled:o,styling:["container","min"],variant:l,size:d,accessibleLabel:i,ariaRoledescription:"split menu button, press down arrow to invoke menu",ariaExpanded:b},{children:n.jsxs(r.TabbableModeContext.Provider,Object.assign({value:{isTabbable:!1}},{children:[n.jsx(m.BaseButton,Object.assign({elementDetails:{type:"span"},variant:l,styling:w(_),size:d,isDisabled:o,ariaHidden:!0,onAction:c},{children:i})),n.jsx("div",{class:`${C}`}),n.jsx(m.BaseButton,Object.assign({elementDetails:{type:"span"},variant:l,styling:O(b),size:d,isDisabled:o,ariaHidden:!0,onAction:M},{children:n.jsx(v.ButtonLayout,{display:"icons",startIcon:n.jsx(x.SvgIcoNavDown,{}),size:d,styling:"embedded"})}))]}))}));return o?n.jsx("span",Object.assign({role:"toolbar",class:`${$} ${S}`,style:E},{children:H()})):n.jsxs("span",Object.assign({role:"toolbar",class:`${$} ${S}`,style:E,onKeyDown:!o&&U,onKeyUp:F,onBlur:z},{children:[H(),n.jsx(y.Menu,Object.assign({anchorRef:I,isOpen:b,onClose:R},{children:n.jsx("span",Object.assign({className:h},{children:t}))}))]}))});function O(e){return e?_:N}function w(e){return e?D:A}e.SplitMenuButton=E});
|
|
2
|
+
//# sourceMappingURL=SplitMenuButton-e90e3154.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitMenuButton-df0ee526.js","sources":["../../src/UNSAFE_SplitMenuButton/SplitMenuButton.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ButtonLayout } from '../UNSAFE_Button';\nimport { NavDownIcon } from '../UNSAFE_ThemedIcons';\nimport { Menu } from '../UNSAFE_Menu';\n\nimport { BaseButton, StylingOptions } from '../UNSAFE_BaseButton';\n\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { TabbableModeContext } from '../hooks/UNSAFE_useTabbableMode';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\nimport { ComponentChildren } from 'preact';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useCallback, useState, useRef, useImperativeHandle } from 'preact/hooks';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLElement>, 'title'>;\n\ntype WidthInterpolationProps = Pick<DimensionProps, 'width'>;\n\nexport type Props = IntrinsicProps &\n WidthInterpolationProps & {\n /**\n * children - One or more MenuItems\n */\n children?: ComponentChildren;\n\n /**\n * Specifies that the button element should be disabled.\n */\n isDisabled?: boolean;\n\n /**\n * The label rendered on the action side of the button. Used\n * to identify which child MenuItem action is invoked.\n */\n label?: string;\n\n /**\n * Indicates in what states the button has chrome (background and border).\n * \"outlined\"': \"Outlined buttons are salient, but lighter weight than\n * solid buttons. Outlined buttons are useful for secondary actions.\",\n * \"solid\"': \"Solid buttons stand out, and direct the user's attention to the\n * most important actions in the UI.\",\n * \"callToAction\"': \"A Call To Action (CTA) button guides the user to take or\n * complete the action that is the main goal of the page or page section. There\n * should only be one CTA button on a page at any given time.\",\n \n */\n variant?: 'outlined' | 'solid' | 'callToAction';\n\n /**\n * The size indicates how large the button is rendered: \"sm\", \"md\" (default), \"lg\".\n */\n size?: 'sm' | 'md' | 'lg';\n\n /**\n * Triggered when a button is clicked, whether by keyboard, mouse, or touch events.\n */\n onAction?: () => void;\n };\n\nexport const compStyles = {\n divider: cssProps`${{\n borderTopWidth: '0px',\n borderBottomWidth: '0px',\n borderRightWidth: '0px',\n borderLeftWidth: '1px',\n borderStyle: 'solid',\n height: '100%',\n display: 'inline-flex',\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-base-button-border-color)'\n }}`,\n\n disabledDivider: cssProps`${{\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-base-button-border-color-disabled)'\n }}`,\n\n icon: cssProps`${{\n display: 'contents'\n }}`,\n\n root: cssProps`${{\n display: 'inline-block'\n }}`,\n\n childrenMargins: cssProps`${{\n /* @ts-ignore */\n '& > *': {\n marginTop: '0 !important',\n marginBottom: '0 !important',\n marginLeft: '0 !important',\n marginRight: '0 !important'\n }\n }}`\n};\n\nconst menuButtonStyling = ['embedded', 'min', 'noBorderRadiusStart'] as StylingOptions[];\nconst menuButtonActiveStyling = [...menuButtonStyling, 'active'] as StylingOptions[];\n\nconst actionbuttonStyling = ['embedded', 'fill', 'noBorderRadiusEnd'] as StylingOptions[];\nconst actionButtonActiveStyling = [...actionbuttonStyling, 'active'] as StylingOptions[];\n\nconst interpolations = [...Object.values(dimensionInterpolations)];\n\nconst styleInterpolations = mergeInterpolations<DimensionProps>(interpolations);\n\n/**\n * A SplitMenuButton is a combined action and menu button.\n */\nexport const SplitMenuButton = forwardRef(\n (\n {\n children,\n label = '',\n variant = 'outlined',\n isDisabled = false,\n size = 'md',\n onAction,\n ...props\n }: Props,\n ref?: ForwardedRef<HTMLSpanElement>\n ) => {\n const [isMenuOpen, setIsMenuOpen] = useState<boolean>(false);\n const [isActive, setIsActive] = useState<boolean>(false);\n const { class: cls, ...styles } = styleInterpolations(props);\n\n // SPACE or ENTER on root area invokes action, as does CLICK/TAP on LEFT SIDE ACTION AREA\n // DOWN ARROW invokes menu, as does CLICK/TAP on RIGHT SIDE MENU AREA\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === ' ' || event.key === 'Enter') {\n setIsActive(true);\n } else if (event.key == 'ArrowDown') {\n !isDisabled && setIsMenuOpen((menuOpen: boolean) => !menuOpen);\n // Prevent page scroll for down arrow, user definitely wanted to show menu in this case.\n // Don't prevent other keypress defaults, as user may want to hold SPACE down to scroll page.\n event.preventDefault();\n }\n },\n [isDisabled, setIsMenuOpen, setIsActive]\n );\n\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === ' ' || event.key === 'Enter') {\n !isDisabled && onAction && onAction();\n setIsActive(false);\n }\n },\n [isDisabled, onAction, setIsActive]\n );\n\n const onBlur = useCallback(() => {\n setIsActive(false);\n }, [setIsActive]);\n\n const _ref = useRef<HTMLSpanElement>(null);\n useImperativeHandle(ref!, () => _ref.current!, [_ref]);\n\n const menuHandler = () => {\n setIsMenuOpen(!isMenuOpen);\n };\n\n const handleClose = (e: any) => {\n if (e.reason === 'cancel' || 'focusLoss') {\n _ref.current?.focus();\n }\n setIsMenuOpen(false);\n };\n\n const dividerStyles = classNames([\n compStyles.divider,\n isDisabled && compStyles.disabledDivider\n ]);\n\n const rootStyles = classNames([compStyles.root]);\n\n // Using Span for top button allows us to avoid :hover state rendering by\n // taking advantage of :enabled not on spans\n const rootButton = () => {\n return (\n <BaseButton\n elementDetails={{ type: 'span' }}\n ref={\n _ref as ForwardedRef<HTMLButtonElement> &\n ForwardedRef<HTMLAnchorElement> &\n ForwardedRef<HTMLSpanElement>\n }\n isDisabled={isDisabled}\n styling={['container', 'min']}\n variant={variant}\n size={size}\n accessibleLabel={label}\n ariaRoledescription=\"split menu button, press down arrow to invoke menu\"\n ariaExpanded={isMenuOpen}>\n <TabbableModeContext.Provider value={{ isTabbable: false }}>\n <BaseButton\n elementDetails={{ type: 'span' }}\n variant={variant}\n styling={getActionButtonStyling(isActive)}\n size={size}\n isDisabled={isDisabled}\n ariaHidden={true}\n onAction={onAction}>\n {label}\n </BaseButton>\n <div class={`${dividerStyles}`} />\n <BaseButton\n elementDetails={{ type: 'span' }}\n variant={variant}\n styling={getMenuButtonStyling(isMenuOpen)}\n size={size}\n isDisabled={isDisabled}\n ariaHidden={true}\n onAction={menuHandler}>\n <ButtonLayout\n display=\"icons\"\n startIcon={<NavDownIcon />}\n size={size}\n styling=\"embedded\"></ButtonLayout>\n </BaseButton>\n </TabbableModeContext.Provider>\n </BaseButton>\n );\n };\n\n if (isDisabled) {\n return (\n <span role=\"toolbar\" class={`${rootStyles} ${cls}`} style={styles}>\n {rootButton()}\n </span>\n );\n } else {\n return (\n <span\n role=\"toolbar\"\n class={`${rootStyles} ${cls}`}\n style={styles}\n onKeyDown={!isDisabled && onKeyDown}\n onKeyUp={onKeyUp}\n onBlur={onBlur}>\n {rootButton()}\n <Menu anchorRef={_ref} isOpen={isMenuOpen} onClose={handleClose}>\n <span className={compStyles.childrenMargins}>{children}</span>\n </Menu>\n </span>\n );\n }\n }\n);\n\nfunction getMenuButtonStyling(isActive: boolean) {\n return isActive ? menuButtonActiveStyling : menuButtonStyling;\n}\n\nfunction getActionButtonStyling(isActive: boolean) {\n return isActive ? actionButtonActiveStyling : actionbuttonStyling;\n}\n"],"names":["compStyles","menuButtonStyling","menuButtonActiveStyling","actionbuttonStyling","actionButtonActiveStyling","interpolations","Object","values","dimensionInterpolations","styleInterpolations","mergeInterpolations","SplitMenuButton","forwardRef","_a","ref","_b","props","class","cls","styles","__rest","onKeyDown","useCallback","event","key","isDisabled","setIsMenuOpen","menuOpen","onKeyUp","onAction","onBlur","setIsActive","_ref","useRef","useImperativeHandle","current","isMenuOpen","handleClose","e","reason","focus","divider","_jsx","BaseButton","assign","elementDetails","type","styling","variant","size","accessibleLabel","label","ariaRoledescription","ariaExpanded","children","_jsxs","TabbableModeContext","Provider","value","isTabbable","getActionButtonStyling","isActive","ariaHidden","dividerStyles","getMenuButtonStyling","menuHandler","ButtonLayout","display","startIcon","NavDownIcon","role","rootStyles","style","rootButton","Menu","anchorRef","isOpen","onClose","className","childrenMargins"],"mappings":";;;IAwEA,MAAAA,UAAA,GAAA;eAAA,iBAAA;uBAAA,wBAAA;YAAA,cAAA;YAAA,aAAA;;IAAA,CAAA,CAAA;IAmCA,MAAAC,iBAAA,GAAA,CAAA,UAAA,EAAA,KAAA,EAAA,qBAAA,CAAA,CAAA;IACA,MAAAC,uBAAA,GAAA,CAAA,GAAAD,iBAAA,EAAA,QAAA,CAAA,CAAA;IAEA,MAAAE,mBAAA,GAAA,CAAA,UAAA,EAAA,MAAA,EAAA,mBAAA,CAAA,CAAA;IACA,MAAAC,yBAAA,GAAA,CAAA,GAAAD,mBAAA,EAAA,QAAA,CAAA,CAAA;IAEA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AA;IAAAO,MAAAA,OAAA,EAAAA,OAAA;IAAAE,MAAAA,MAAA,EAAAA,MAAAA;IAAA,KAAA,EAAA;IAAAwB,MAAAA,QAAA,EAAA,CAAAmB,UAAA,EAAA,EAAA/B,cAAA,CAAAgC,SAAA,EAAApE,MAAA,CAAAsC,MAAA,CAAA;IAAA+B,QAAAA,SAAA,EAAA3C,IAAA;IAAA4C,QAAAA,MAAA,EAAAxC,UAAA;IAAAyC,QAAAA,OAAA,EAAAxC,WAAAA;IAAA,OAAA,EAAA;YAAAiB,QAAA,EAAAZ,cAAA,CAAA,MAAA,EAAApC,MAAA,CAAAsC,MAAA,CAAA;cAAAkC,SAAA,EAAA9E,UAAA,CAAA+E,eAAAA;IAAA,SAAA,EAAA;IAAAzB,UAAAA,QAAA,EAAAA,QAAAA;IAAA,SAAA,CAAA,CAAA;IAAA,OAAA,CAAA,CAAA,CAAA;IAAA,KAAA,CAAA,CAAA,CAAA;IAcD,GAAA;IACH,CA3IF,EAAA;;IA8IA,SAAAU,oBAAA,CAAAH,QAAA,EAAA;;IAEA,CAAA;;IAEA,SAAAD,sBAAA,CAAAC,QAAA,EAAA;;IAEA;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"SplitMenuButton-e90e3154.js","sources":["../../src/UNSAFE_SplitMenuButton/SplitMenuButton.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ButtonLayout } from '../UNSAFE_Button';\nimport { NavDownIcon } from '../UNSAFE_ThemedIcons';\nimport { Menu } from '../UNSAFE_Menu';\n\nimport { BaseButton, StylingOptions } from '../UNSAFE_BaseButton';\n\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { TabbableModeContext } from '../hooks/UNSAFE_useTabbableMode';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\nimport { ComponentChildren } from 'preact';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useCallback, useState, useRef, useImperativeHandle } from 'preact/hooks';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLElement>, 'title'>;\n\ntype WidthInterpolationProps = Pick<DimensionProps, 'width'>;\n\nexport type Props = IntrinsicProps &\n WidthInterpolationProps & {\n /**\n * children - One or more MenuItems\n */\n children?: ComponentChildren;\n\n /**\n * Specifies that the button element should be disabled.\n */\n isDisabled?: boolean;\n\n /**\n * The label rendered on the action side of the button. Used\n * to identify which child MenuItem action is invoked.\n */\n label?: string;\n\n /**\n * Indicates in what states the button has chrome (background and border).\n * \"outlined\"': \"Outlined buttons are salient, but lighter weight than\n * solid buttons. Outlined buttons are useful for secondary actions.\",\n * \"solid\"': \"Solid buttons stand out, and direct the user's attention to the\n * most important actions in the UI.\",\n * \"callToAction\"': \"A Call To Action (CTA) button guides the user to take or\n * complete the action that is the main goal of the page or page section. There\n * should only be one CTA button on a page at any given time.\",\n \n */\n variant?: 'outlined' | 'solid' | 'callToAction';\n\n /**\n * The size indicates how large the button is rendered: \"sm\", \"md\" (default), \"lg\".\n */\n size?: 'sm' | 'md' | 'lg';\n\n /**\n * Triggered when a button is clicked, whether by keyboard, mouse, or touch events.\n */\n onAction?: () => void;\n };\n\nexport const compStyles = {\n divider: cssProps`${{\n borderTopWidth: '0px',\n borderBottomWidth: '0px',\n borderRightWidth: '0px',\n borderLeftWidth: '1px',\n borderStyle: 'solid',\n height: '100%',\n display: 'inline-flex',\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-base-button-border-color)'\n }}`,\n\n disabledDivider: cssProps`${{\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-base-button-border-color-disabled)'\n }}`,\n\n icon: cssProps`${{\n display: 'contents'\n }}`,\n\n root: cssProps`${{\n display: 'inline-block'\n }}`,\n\n childrenMargins: cssProps`${{\n /* @ts-ignore */\n '& > *': {\n marginTop: '0 !important',\n marginBottom: '0 !important',\n marginLeft: '0 !important',\n marginRight: '0 !important'\n }\n }}`\n};\n\nconst menuButtonStyling = ['embedded', 'min', 'noBorderRadiusStart'] as StylingOptions[];\nconst menuButtonActiveStyling = [...menuButtonStyling, 'active'] as StylingOptions[];\n\nconst actionbuttonStyling = ['embedded', 'fill', 'noBorderRadiusEnd'] as StylingOptions[];\nconst actionButtonActiveStyling = [...actionbuttonStyling, 'active'] as StylingOptions[];\n\nconst interpolations = [...Object.values(dimensionInterpolations)];\n\nconst styleInterpolations = mergeInterpolations<DimensionProps>(interpolations);\n\n/**\n * A SplitMenuButton is a combined action and menu button.\n */\nexport const SplitMenuButton = forwardRef(\n (\n {\n children,\n label = '',\n variant = 'outlined',\n isDisabled = false,\n size = 'md',\n onAction,\n ...props\n }: Props,\n ref?: ForwardedRef<HTMLSpanElement>\n ) => {\n const [isMenuOpen, setIsMenuOpen] = useState<boolean>(false);\n const [isActive, setIsActive] = useState<boolean>(false);\n const { class: cls, ...styles } = styleInterpolations(props);\n\n // SPACE or ENTER on root area invokes action, as does CLICK/TAP on LEFT SIDE ACTION AREA\n // DOWN ARROW invokes menu, as does CLICK/TAP on RIGHT SIDE MENU AREA\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === ' ' || event.key === 'Enter') {\n setIsActive(true);\n } else if (event.key == 'ArrowDown') {\n !isDisabled && setIsMenuOpen((menuOpen: boolean) => !menuOpen);\n // Prevent page scroll for down arrow, user definitely wanted to show menu in this case.\n // Don't prevent other keypress defaults, as user may want to hold SPACE down to scroll page.\n event.preventDefault();\n }\n },\n [isDisabled, setIsMenuOpen, setIsActive]\n );\n\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === ' ' || event.key === 'Enter') {\n !isDisabled && onAction && onAction();\n setIsActive(false);\n }\n },\n [isDisabled, onAction, setIsActive]\n );\n\n const onBlur = useCallback(() => {\n setIsActive(false);\n }, [setIsActive]);\n\n const _ref = useRef<HTMLSpanElement>(null);\n useImperativeHandle(ref!, () => _ref.current!, [_ref]);\n\n const menuHandler = () => {\n setIsMenuOpen(!isMenuOpen);\n };\n\n const handleClose = (e: any) => {\n if (e.reason === 'cancel' || 'focusLoss') {\n _ref.current?.focus();\n }\n setIsMenuOpen(false);\n };\n\n const dividerStyles = classNames([\n compStyles.divider,\n isDisabled && compStyles.disabledDivider\n ]);\n\n const rootStyles = classNames([compStyles.root]);\n\n // Using Span for top button allows us to avoid :hover state rendering by\n // taking advantage of :enabled not on spans\n const rootButton = () => {\n return (\n <BaseButton\n elementDetails={{ type: 'span' }}\n ref={\n _ref as ForwardedRef<HTMLButtonElement> &\n ForwardedRef<HTMLAnchorElement> &\n ForwardedRef<HTMLSpanElement>\n }\n isDisabled={isDisabled}\n styling={['container', 'min']}\n variant={variant}\n size={size}\n accessibleLabel={label}\n ariaRoledescription=\"split menu button, press down arrow to invoke menu\"\n ariaExpanded={isMenuOpen}>\n <TabbableModeContext.Provider value={{ isTabbable: false }}>\n <BaseButton\n elementDetails={{ type: 'span' }}\n variant={variant}\n styling={getActionButtonStyling(isActive)}\n size={size}\n isDisabled={isDisabled}\n ariaHidden={true}\n onAction={onAction}>\n {label}\n </BaseButton>\n <div class={`${dividerStyles}`} />\n <BaseButton\n elementDetails={{ type: 'span' }}\n variant={variant}\n styling={getMenuButtonStyling(isMenuOpen)}\n size={size}\n isDisabled={isDisabled}\n ariaHidden={true}\n onAction={menuHandler}>\n <ButtonLayout\n display=\"icons\"\n startIcon={<NavDownIcon />}\n size={size}\n styling=\"embedded\"></ButtonLayout>\n </BaseButton>\n </TabbableModeContext.Provider>\n </BaseButton>\n );\n };\n\n if (isDisabled) {\n return (\n <span role=\"toolbar\" class={`${rootStyles} ${cls}`} style={styles}>\n {rootButton()}\n </span>\n );\n } else {\n return (\n <span\n role=\"toolbar\"\n class={`${rootStyles} ${cls}`}\n style={styles}\n onKeyDown={!isDisabled && onKeyDown}\n onKeyUp={onKeyUp}\n onBlur={onBlur}>\n {rootButton()}\n <Menu anchorRef={_ref} isOpen={isMenuOpen} onClose={handleClose}>\n <span className={compStyles.childrenMargins}>{children}</span>\n </Menu>\n </span>\n );\n }\n }\n);\n\nfunction getMenuButtonStyling(isActive: boolean) {\n return isActive ? menuButtonActiveStyling : menuButtonStyling;\n}\n\nfunction getActionButtonStyling(isActive: boolean) {\n return isActive ? actionButtonActiveStyling : actionbuttonStyling;\n}\n"],"names":["compStyles","menuButtonStyling","menuButtonActiveStyling","actionbuttonStyling","actionButtonActiveStyling","interpolations","Object","values","dimensionInterpolations","styleInterpolations","mergeInterpolations","SplitMenuButton","forwardRef","_a","ref","_b","props","class","cls","styles","__rest","onKeyDown","useCallback","event","key","isDisabled","setIsMenuOpen","menuOpen","onKeyUp","onAction","onBlur","setIsActive","_ref","useRef","useImperativeHandle","current","isMenuOpen","handleClose","e","reason","focus","_jsx","BaseButton","assign","elementDetails","type","styling","variant","size","accessibleLabel","label","ariaRoledescription","ariaExpanded","children","_jsxs","TabbableModeContext","Provider","value","isTabbable","jsx","getActionButtonStyling","isActive","ariaHidden","dividerStyles","getMenuButtonStyling","menuHandler","ButtonLayout","display","startIcon","NavDownIcon","SvgIcoNavDown","role","rootStyles","style","rootButton","Menu","anchorRef","isOpen","onClose","className"],"mappings":"seAwEA,MAAAA,EAAA,WAAAA,EAAA,SAAAA,EAAA,WAAAA,WAmCAC,EAAA,CAAA,WAAA,MAAA,uBACAC,EAAA,IAAAD,EAAA,UAEAE,EAAA,CAAA,WAAA,OAAA,qBACAC,EAAA,IAAAD,EAAA,UAEAE,EAAA,IAAAC,OAAAC,OAAAC,EAAAA,0BAEAC,EAAAC,EAAAA,oBAAAL,GAKAM,EAAA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AZ,EAAAkB,IAAAO,eAAA,CAAAC,QAAA,QAAAC,UAAA3B,EAAAA,IAAA4B,EAAAC,cAAA,IAAAtB,KAAAA,EAAAF,QAAA,uBA8CF,OAAArB,yFAOE6B,OAAA,OAAAhD,OAAAqC,OAAA,CAAA4B,KAAA,UAAAtD,MAAA,GAAAuD,KAAAtD,IAAAuD,MAAAtD,EAAAE,WAAAI,GAAAJ,EAAAO,QAAAA,EAAAE,OAAAA,GAAA,CAAAuB,SAAA,CAAAqB,IAAAjC,EAAAkB,IAAAgB,EAAAA,KAAArE,OAAAqC,OAAA,CAAAiC,UAAA5C,EAAA6C,OAAAzC,EAAA0C,QAAAzC,GAAA,CAAAgB,SAAAZ,EAAAkB,IAAA,OAAArD,OAAAqC,OAAA,CAAAoC,UAAA/E,GAAA,CAAAqD,SAAAA,cAkBN,SAAAW,EAAAH,gBAIA,SAAAD,EAAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(["exports","./tslib.es6-f5cdfdde","preact/jsx-runtime",'module',"./utils/UNSAFE_mergeInterpolations"],function(s,i,n,e,a){"use strict";const t={base:"_1kp6as7",lineClamp:"_8wzor8",truncation:{none:"",clip:"_1sjs4jn",ellipsis:"f6wjx2"},variant:{primary:"jbw7k7",secondary:"xkdd9l",disabled:"_18gnc4i",danger:"_10r00xw",warning:"_11d2lt5",success:"_931s66",inherit:"_1io1jm6"},size:{"2xs":"w93zba",xs:"_1n8ohxs",sm:"_1mfudgu",md:"_14pjsj0",lg:"wxs0a5",xl:"oetbv",inherit:"_10gna6c"},weight:{normal:"_1p1mv95",semiBold:"_10o46oz",bold:"_11a734y",inherit:"_1u7jxzp"},hyphens:{auto:"_85ycz5",none:"bivqtt"}},l=[()=>({class:t.base}),({size:s="inherit"})=>({class:t.size[s]}),({weight:s="inherit"})=>({class:t.weight[s]}),({variant:s="inherit"})=>({class:t.variant[s]}),({hyphens:s="auto"})=>({class:t.hyphens[s]}),({truncation:s="none"})=>({class:t.truncation[s]}),({lineClamp:s})=>s?{class:t.lineClamp,webkitLineClamp:s}:{}],r=a.mergeInterpolations(l);s.Text=function(s){var{children:e}=s,a=i.__rest(s,["children"]);const t=r(a),{class:l}=t,c=i.__rest(t,["class"]);return n.jsx("span",Object.assign({class:l,style:c,id:a.id},{children:n.jsx("span",Object.assign({className:"_1fi4iwy"},{children:e}))}))}});
|
|
2
|
+
//# sourceMappingURL=Text-75ed9308.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text-
|
|
1
|
+
{"version":3,"file":"Text-75ed9308.js","sources":["../../src/UNSAFE_Text/Text.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\ntype StylePropsWithOutTruncate = {\n /**\n * Specifies text color. If set as \"inherit\", takes text color from its parent element.\n */\n variant?: 'primary' | 'secondary' | 'disabled' | 'danger' | 'warning' | 'success' | 'inherit';\n\n /**\n * Specifies font size and line height. If set as \"inherit\", takes font size and line height from its parent element.\n */\n size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'inherit';\n\n /**\n * Specifies the font weight. If set as \"inherit\", takes font weight from its parent element.\n */\n weight?: 'normal' | 'semiBold' | 'bold' | 'inherit';\n\n /**\n * Specifies if hyphens should be included when handling long words with no spaces.\n */\n hyphens?: 'auto' | 'none';\n};\ntype TruncateProps =\n | {\n /**\n * Truncates text at a specific number of lines and then displays an ellipsis (…) at the end of the last line. Parent of the element needs to have a specific width so text starts overflowing and produce a truncation.\n */\n lineClamp?: number;\n /**\n * Determines text behavior when text is truncated. Be aware of setting either lineClamp or truncation. Setting both props would produce a type error. In most cases, lineClamp=1 tries to put the ellipsis at the end of a \"word\". On the other hand, using truncation=\"ellipsis\" will show as much as possible text, then put the ellipsis at the end.\n */\n truncation?: never;\n }\n | {\n lineClamp?: never;\n truncation?: 'none' | 'clip' | 'ellipsis';\n };\ntype AdditionalProps = {\n /**\n * Specifies the text id\n */\n id?: string;\n\n /**\n * Specifies the children.\n */\n children?: string;\n};\ntype Props = StylePropsWithOutTruncate & TruncateProps & AdditionalProps;\n\nconst styles = {\n base: cssProps`${{\n overflowX: 'hidden',\n overflowY: 'hidden',\n overflowWrap: 'anywhere',\n display: 'inline'\n }}`,\n lineClamp: cssProps`${{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical'\n }}`,\n truncation: {\n none: '',\n clip: cssProps`${{\n textOverflow: 'clip',\n whiteSpace: 'nowrap',\n width: '100%',\n display: 'inline-block'\n }}`,\n ellipsis: cssProps`${{\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n width: '100%',\n display: 'inline-block'\n }}`\n },\n variant: {\n primary: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)'\n }}`,\n secondary: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-secondary)'\n }}`,\n disabled: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-disabled)'\n }}`,\n danger: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-danger-3)'\n }}`,\n warning: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-warning-3)'\n }}`,\n success: cssProps`${{\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-success-3)'\n }}`,\n inherit: cssProps`${{\n color: 'inherit'\n }}`\n },\n size: {\n '2xs': cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-2xs-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-2xs-line-height)'\n }}`,\n xs: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-line-height)'\n }}`,\n sm: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-sm-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-sm-line-height)'\n }}`,\n md: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height)'\n }}`,\n lg: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-lg-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-lg-line-height)'\n }}`,\n xl: cssProps`${{\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xl-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xl-line-height)'\n }}`,\n inherit: cssProps`${{\n fontSize: 'inherit',\n lineHeight: 'inherit'\n }}`\n },\n weight: {\n normal: cssProps`${{\n fontWeight: 'normal'\n }}`,\n semiBold: cssProps`${{\n fontWeight: '600'\n }}`,\n bold: cssProps`${{\n fontWeight: '700'\n }}`,\n inherit: cssProps`${{\n fontWeight: 'inherit'\n }}`\n },\n hyphens: {\n auto: cssProps`${{\n hyphens: 'auto'\n }}`,\n none: cssProps`${{\n hyphens: 'none'\n }}`\n }\n};\nconst interpolations = [\n () => ({ class: styles.base }),\n ({ size = 'inherit' }: Pick<StylePropsWithOutTruncate, 'size'>) => ({\n class: styles.size[size]\n }),\n ({ weight = 'inherit' }: Pick<StylePropsWithOutTruncate, 'weight'>) => ({\n class: styles.weight[weight]\n }),\n ({ variant = 'inherit' }: Pick<StylePropsWithOutTruncate, 'variant'>) => ({\n class: styles.variant[variant]\n }),\n ({ hyphens = 'auto' }: Pick<StylePropsWithOutTruncate, 'hyphens'>) => ({\n class: styles.hyphens[hyphens]\n }),\n ({ truncation = 'none' }: Pick<TruncateProps, 'truncation'>) => ({\n class: styles.truncation[truncation]\n }),\n ({ lineClamp }: Pick<TruncateProps, 'lineClamp'>) =>\n !lineClamp ? {} : { class: styles.lineClamp, webkitLineClamp: lineClamp }\n];\nconst styleInterpolations = mergeInterpolations<Omit<Props, 'children'>>(interpolations);\nconst childrenStyles = cssProps`${{\n /* @ts-ignore */\n '& > *': {\n marginTop: '0 !important',\n marginBottom: '0 !important',\n marginLeft: '0 !important',\n marginRight: '0 !important'\n }\n}}`;\n\nexport function Text({ children, ...props }: Props) {\n const { class: cls, ...styles } = styleInterpolations(props);\n return (\n <span class={cls} style={styles} id={props.id}>\n <span className={childrenStyles}>{children}</span>\n </span>\n );\n}\n"],"names":["styles","truncation","none","variant","size","weight","hyphens","interpolations","class","styleInterpolations","mergeInterpolations","_a","children","props","__rest","_b","cls"],"mappings":"+IA2DA,MAAAA,EAAA,MAAA,qBAAA,UAWEC,WAAA,CACEC,KAAA,QADF,8BAeAC,QAAA,SAAA,mBAAA,kBAAA,kBAAA,mBAAA,mBAAA,8BAuBAC,KAAA,OAAA,YAAA,cAAA,cAAA,cAAA,YAAA,4BA8BAC,OAAA,QAAA,oBAAA,gBAAA,+BAcAC,QAAA,MAAA,0BASFC,EAAA,8CAGIC,MAAAR,EAAAI,KAAAA,+BAGAI,MAAAR,EAAAK,OAAAA,gCAGAG,MAAAR,EAAAG,QAAAA,6BAGAK,MAAAR,EAAAM,QAAAA,gCAGAE,MAAAR,EAAAC,WAAAA,kEAKJQ,EAAAC,EAAAA,oBAAAH,UAWA,SAAAI,GAAqB,IAAAC,SAAAA,GAAAD,EAAAE,EAAAC,EAAAA,OAAAH,EAAA,CAAA,aACnB,MAAAI,EAAAN,EAAAI,IAAAL,MAAAQ,GAAAD,EAAAf,EAAAc,EAAAA,OAAAC,EAAA,CAAA,sHAXF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(["exports","preact/jsx-runtime","preact","preact/compat","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useFocusableTextField","./UNSAFE_Label","./UNSAFE_TextField","./hooks/UNSAFE_useTextField","./UNSAFE_UserAssistance","./hooks/UNSAFE_useLengthFilter",'module',"./utils/UNSAFE_classNames","preact/hooks","./hooks/UNSAFE_usePress","./classNames-d0ddb6e6","./hooks/UNSAFE_useCurrentValueReducer","./ReadonlyTextFieldInput-09a96f71","./TextFieldInput-794a6202"],function(e,s,n,t,a,i,l,o,r,u,c,d,x,h,g,b,F,p,m,v){"use strict";const j="_13ohr88",L="_1ldfn8p",A="_8jvksk",f=()=>{};function C({maxLength:e,valueLength:n=0,onClick:t}){const{isFocused:a}=i.useFormFieldContext(),l=g.useCallback(e=>{e.preventDefault()},[]),o=F.classNames([!a&&L]),{pressProps:r}=b.usePress(null!=t?t:f);return s.jsx("div",Object.assign({class:j,onMouseDown:l},r,{children:s.jsxs("span",Object.assign({class:o},{children:[s.jsx("span",Object.assign({class:A},{children:n})),s.jsx("span",Object.assign({class:A},{children:"/"})),s.jsx("span",Object.assign({class:A},{children:e}))]}))}))}const y=t.forwardRef(({ariaDescribedBy:e,assistiveText:x,autoComplete:h="off",autoFocus:g=!1,helpSourceLink:b,helpSourceText:F,isDisabled:j,isReadonly:L,isRequired:A=!1,isRequiredShown:f,label:y,labelEdge:S,labelStartWidth:R,maxLength:E,maxLengthCounter:k="remaining",maxLengthUnit:U,messages:T,placeholder:O,resize:N,role:_,rows:D,textAlign:I,userAssistanceDensity:P,value:w,variant:V="default",onInput:B,onCommit:M},q)=>{const{currentCommitValue:W,dispatch:z}=p.useCurrentValueReducer({value:w}),H=t.useCallback(e=>{z({type:"input",payload:e.value}),null==B||B(e)},[B]),G=t.useCallback(e=>{z({type:"commit",payload:e.value}),null==M||M(e)},[M]),{isDisabled:J,isReadonly:K,labelEdge:Q,labelStartWidth:X,textAlign:Y,userAssistanceDensity:Z}=a.useFormContext(),$=null!=j?j:J,ee=null!=L?L:K,se=null!=S?S:Q,ne=null!=R?R:X,te=null!=I?I:Y,ae=null!=P?P:Z,{enabledElementRef:ie,readonlyElementRef:le,focusProps:oe,isFocused:re}=l.useFocusableTextField({isDisabled:$,isReadonly:ee,ref:q}),{formFieldContext:ue,inputProps:ce,labelProps:de,textFieldProps:xe,userAssistanceProps:he}=u.useTextField({ariaDescribedBy:e,contentVariant:"textarea",isDisabled:$,isFocused:re,isReadonly:ee,labelEdge:se,messages:T,styleVariant:V,value:w}),{isMaxLengthExceeded:ge,valueLength:be,onFilteredInput:Fe}=d.useLengthFilter({maxLength:E,maxLengthUnit:U,value:w,onInput:H,onCommit:G}),pe="none"!==se?s.jsx(o.Label,Object.assign({},de,{children:y})):void 0,me={label:"none"!==se?pe:void 0,labelEdge:"none"!==se?se:void 0,labelStartWidth:"none"!==se?ne:void 0},ve="none"===se?y:void 0,je=$||ee?"efficient"!==ae?void 0:s.jsx(c.InlineUserAssistance,Object.assign({userAssistanceDensity:ae},he)):s.jsx(c.InlineUserAssistance,Object.assign({assistiveText:x,fieldLabel:y,helpSourceLink:b,helpSourceText:F,messages:T,isRequiredShown:f,userAssistanceDensity:ae},he));if(ee)return s.jsx(i.FormFieldContext.Provider,Object.assign({value:ue},{children:s.jsx(r.ReadonlyTextField,Object.assign({role:"presentation",inlineUserAssistance:je,variant:"textarea"},me,{children:s.jsx(m.ReadonlyTextFieldInput,{ariaDescribedBy:e,ariaLabel:ve,ariaLabelledBy:de.id,as:"textarea",elementRef:le,rows:D,autoFocus:g,textAlign:te,value:w,variant:"textarea",hasInsideLabel:void 0!==y&&"inside"===se})}))}));const Le=t.useCallback(()=>{var e,s;const n=ie.current,t=n?n.value.length:null;null===(e=ie.current)||void 0===e||e.setSelectionRange(t,t),null===(s=ie.current)||void 0===s||s.focus()},[]),Ae=s.jsxs(n.Fragment,{children:[s.jsx(v.TextFieldInput,Object.assign({as:"textarea",ariaLabel:ve,autoComplete:h,autoFocus:g,currentCommitValue:W,hasInsideLabel:void 0!==pe&&"inside"===se,isRequired:A,inputRef:ie,onCommit:G,onInput:Fe,placeholder:O,role:_,rows:D,textAlign:te,value:w},ce)),"remaining"===k&&void 0!==E&&s.jsx(C,Object.assign({},{maxLength:E,valueLength:be,parentHasFocus:re,onClick:Le})),void 0!==E&&s.jsx(r.MaxLengthLiveRegion,Object.assign({},{isMaxLengthExceeded:ge,maxLength:E,valueLength:be}))]});return s.jsx(i.FormFieldContext.Provider,Object.assign({value:ue},{children:s.jsx(r.TextField,Object.assign({mainContent:Ae,inlineUserAssistance:je,onBlur:null==oe?void 0:oe.onfocusout,onFocus:null==oe?void 0:oe.onfocusin,resize:N},xe,me))}))});e.MaxLengthCounter=C,e.TextArea=y});
|
|
2
|
+
//# sourceMappingURL=TextArea-ee29bc17.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea-25fa8171.js","sources":["../../src/UNSAFE_TextArea/MaxLengthCounter.tsx","../../src/UNSAFE_TextArea/TextArea.tsx"],"sourcesContent":["import { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useCallback } from 'preact/hooks';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\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 rootStyles = {\n base: cssProps`${{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n cursor: 'text',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-line-height)',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-secondary)',\n textDecorationLine: 'none',\n paddingTop: '0',\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-1x)',\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`\n};\nconst remainingTextStyles = {\n hide: cssProps`${{\n visibility: 'hidden'\n }}`\n};\n// the spans surrounding the {valueLength}, / and {maxlength} need to be display: inline-block\n// so that the order is flipped horizontally in RTL.\nconst spanStyles = cssProps`${{\n display: 'inline-block'\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) => {\n event.preventDefault();\n }, []);\n const textClasses = classNames([!isFocused && remainingTextStyles.hide]);\n const { pressProps } = usePress(onClick ?? noop);\n return (\n <div class={rootStyles.base} 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, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\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 { InlineUserAssistance } 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';\n\ntype TextFieldProps = ComponentProps<typeof TextField>;\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\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 ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\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 * 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 * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\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\nexport const TextArea = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\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 }: Props,\n ref?: Ref<FocusableHandle>\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]\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]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\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;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\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 };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n if (isReadonly) {\n // TODO: We need to conditionally render the readonly innerReadonlyField as a textarea or div\n // also, the div will need to use white-space: pre-wrap so that the text will wrap like textarea\n // see JET-50636\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n as=\"textarea\"\n elementRef={readonlyElementRef}\n rows={rows}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\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 }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\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' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n resize={resize}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["rootStyles","remainingTextStyles","spanStyles","noop","MaxLengthCounter","maxLength","valueLength","onClick","isFocused","useFormFieldContext","killEvent","useCallback","event","textClasses","classNames","hide","pressProps","usePress","_jsx","Object","assign","class","base","onMouseDown","children","_jsxs","forwardRef","useCurrentValueReducer","useFormContext","useFocusableTextField","useTextField","useLengthFilter","Label","InlineUserAss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EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA,CAClF,CACH,EACA,SAAS,KAAK,SAAS,KACtBA,cAAA,CAACqB,oCAAmB,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,WAAW,EAAE,CAAA,CAAI,CAC7E,CAAA,EAAA,CACQ,CACZ,CAAC;QAEF,QACErB,eAACgB,iDAAgB,CAAC,QAAQ,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,gBAAgB,EAChD,EAAA,EAAA,QAAA,EAAAhB,cAAA,CAACsB,0BAAS,EACR,MAAA,CAAA,MAAA,CAAA,EAAA,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,MAAM,EAAE,UAAU,KAAA,IAAA,IAAV,UAAU,KAAV,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,UAAU,CAAE,UAAU,EAC9B,OAAO,EAAE,UAAU,KAAA,IAAA,IAAV,UAAU,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAV,UAAU,CAAE,SAAS,EAC9B,MAAM,EAAE,MAAM,EACV,EAAA,cAAc,EACd,eAAe,CAAA,CAAc,EACT,CAAA,CAAA,EAC5B;IACJ,CAAC;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"TextArea-ee29bc17.js","sources":["../../src/UNSAFE_TextArea/MaxLengthCounter.tsx","../../src/UNSAFE_TextArea/TextArea.tsx"],"sourcesContent":["import { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useCallback } from 'preact/hooks';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\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 rootStyles = {\n base: cssProps`${{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n cursor: 'text',\n fontSize: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-font-size)',\n lineHeight: 'var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-xs-line-height)',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-secondary)',\n textDecorationLine: 'none',\n paddingTop: '0',\n paddingInlineEnd: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-spacing-1x)',\n paddingInlineStart: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)'\n }}`\n};\nconst remainingTextStyles = {\n hide: cssProps`${{\n visibility: 'hidden'\n }}`\n};\n// the spans surrounding the {valueLength}, / and {maxlength} need to be display: inline-block\n// so that the order is flipped horizontally in RTL.\nconst spanStyles = cssProps`${{\n display: 'inline-block'\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) => {\n event.preventDefault();\n }, []);\n const textClasses = classNames([!isFocused && remainingTextStyles.hide]);\n const { pressProps } = usePress(onClick ?? noop);\n return (\n <div class={rootStyles.base} 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, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\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 { InlineUserAssistance } 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';\n\ntype TextFieldProps = ComponentProps<typeof TextField>;\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\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 ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\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 * 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 * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\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\nexport const TextArea = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\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 }: Props,\n ref?: Ref<FocusableHandle>\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]\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]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\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;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\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 };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n if (isReadonly) {\n // TODO: We need to conditionally render the readonly innerReadonlyField as a textarea or div\n // also, the div will need to use white-space: pre-wrap so that the text will wrap like textarea\n // see JET-50636\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n as=\"textarea\"\n elementRef={readonlyElementRef}\n rows={rows}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\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 }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\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' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n resize={resize}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["rootStyles","remainingTextStyles","spanStyles","noop","MaxLengthCounter","maxLength","valueLength","onClick","isFocused","useFormFieldContext","killEvent","useCallback","event","textClasses","classNames","pressProps","usePress","_jsx","Object","assign","class","onMouseDown","children","_jsxs","jsxs","jsx","TextArea","forwardRef","ariaDescribedBy","assistiveText","autoComplete","autoFocus","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","ref","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","enabledElementRef","readonlyElementRef","focusProps","useFocusableTextField","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","contentVariant","styleVariant","isMaxLengthExceeded","onFilteredInput","useLengthFilter","labelComp","Label","undefined","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","fieldLabel","FormFieldContext","Provider","ReadonlyTextField","ReadonlyTextFieldInput","ariaLabelledBy","id","as","elementRef","hasInsideLabel","onClickCounter","elm","current","len","length","_a","setSelectionRange","_b","focus","mainContent","Fragment","TextFieldInput","inputRef","parentHasFocus","MaxLengthLiveRegion","TextField","onBlur","onfocusout","onFocus","onfocusin"],"mappings":"0jBAYA,MAAAA,aAgBAC,aAOAC,EAAA,UAIAC,EAAA,OAEA,SAAAC,GAAAC,UAAAA,EAAAC,YAAAA,EAAA,EAAAC,QAAAA,IACE,MAAAC,UAAAA,GAAAC,EAAAA,sBAEAC,EAAAC,EAAAA,YAAAC,4BAGAC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EACVV,QAAS+B,GACTzC,YAAaA,EACbE,KAAMA,EACNC,KAAMA,EACNC,UAAWA,GACXI,MAAOA,GACHyB,KAEgB,cAArBpC,QAAkDgD,IAAdxF,GACnCY,EAAAQ,IAACrB,EAAgBc,OAAAC,OAAA,GACX,CAAEd,UAAAA,EAAWC,YAAAA,GAAamH,eAAgBjH,GAAWD,QAASqG,WAGvDf,IAAdxF,GACCY,EAAAA,IAACyG,EAAAA,oBAAmBxG,OAAAC,OAAA,GAAK,CAAEqE,oBAAAA,GAAqBnF,UAAAA,EAAWC,YAAAA,SAKjE,OACEW,MAACkF,mBAAiBC,SAASlF,OAAAC,OAAA,CAAAqC,MAAOwB,IAChC,CAAA1D,SAAAL,EAAAQ,IAACkG,YACCzG,OAAAC,OAAA,CAAAkG,YAAaA,GACbrB,qBAAsBA,GACtB4B,OAAQ9C,MAAAA,QAAA,EAAAA,GAAY+C,WACpBC,QAAShD,MAAAA,QAAU,EAAVA,GAAYiD,UACrB9E,OAAQA,GACJkC,GACAW"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(["exports","preact/jsx-runtime","preact","preact/compat","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useFocusableTextField","./UNSAFE_Label","./UNSAFE_TextField","./hooks/UNSAFE_useTextField","./UNSAFE_UserAssistance","./hooks/UNSAFE_useLengthFilter","preact/hooks","./hooks/UNSAFE_useCurrentValueReducer","./UNSAFE_TextArea","./ReadonlyTextFieldInput-09a96f71","./TextFieldInput-794a6202","./TextArea-ee29bc17"],function(e,t,n,s,a,i,l,o,r,u,d,c,x,g,m,h,p,F){"use strict";const b=({isReadonly:e,enabledElementRef:t,readonlyElementRef:n,minRows:s=2,maxRows:a,value:i})=>{x.useLayoutEffect(()=>{const i=e?n:t;if(null===i.current)return;if(i.current instanceof HTMLDivElement)return;const l=i.current,o=(e=>{const t=window.getComputedStyle(e),n=t.lineHeight;if("normal"===n)return 1.2*parseFloat(t.fontSize);return parseFloat(n)})(l);l.style.height="0";const{paddingHeight:r,borderHeight:u}=(e=>{const t=window.getComputedStyle(e);return{paddingHeight:parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),borderHeight:parseFloat(t.borderTop)+parseFloat(t.borderBottom)}})(l),d=o*s+r+u,c=l.scrollHeight+u;let x=0;if(void 0===a)x=c<d?d:c;else if(a>s){const e=o*a+r+u;x=c>e?e:c<d?d:c}else x=d;l.style.height=x+.5+"px"},[i,s,a,e])},v=s.forwardRef(({ariaDescribedBy:e,assistiveText:x,autoComplete:m="off",autoFocus:v=!1,helpSourceLink:f,helpSourceText:R,isDisabled:y,isReadonly:L,isRequired:A=!1,isRequiredShown:j,label:C,labelEdge:E,labelStartWidth:S,maxLength:T,maxLengthCounter:U="remaining",maxLengthUnit:w,maxRows:k,messages:D,minRows:I=2,placeholder:O,role:N,textAlign:_,userAssistanceDensity:H,value:B,variant:P="default",onInput:V,onCommit:M},q)=>{const{currentCommitValue:W,dispatch:z}=g.useCurrentValueReducer({value:B}),G=s.useCallback(e=>{z({type:"input",payload:e.value}),null==V||V(e)},[V]),J=s.useCallback(e=>{z({type:"commit",payload:e.value}),null==M||M(e)},[M]),{isDisabled:K,isReadonly:Q,labelEdge:X,labelStartWidth:Y,textAlign:Z,userAssistanceDensity:$}=a.useFormContext(),ee=null!=y?y:K,te=null!=L?L:Q,ne=null!=E?E:X,se=null!=S?S:Y,ae=null!=_?_:Z,ie=null!=H?H:$,{enabledElementRef:le,readonlyElementRef:oe,focusProps:re,isFocused:ue}=l.useFocusableTextField({isDisabled:ee,isReadonly:te,ref:q}),{formFieldContext:de,inputProps:ce,labelProps:xe,textFieldProps:ge,userAssistanceProps:me}=u.useTextField({ariaDescribedBy:e,contentVariant:"textarea",isDisabled:ee,isFocused:ue,isReadonly:te,labelEdge:ne,messages:D,styleVariant:P,value:B}),{isMaxLengthExceeded:he,valueLength:pe,onFilteredInput:Fe}=c.useLengthFilter({maxLength:T,maxLengthUnit:w,value:B,onInput:G,onCommit:J}),be="none"!==ne?t.jsx(o.Label,Object.assign({},xe,{children:C})):void 0,ve={label:"none"!==ne?be:void 0,labelEdge:"none"!==ne?ne:void 0,labelStartWidth:"none"!==ne?se:void 0},fe="none"===ne?C:void 0,Re=ee||te?"efficient"!==ie?void 0:t.jsx(d.InlineUserAssistance,Object.assign({userAssistanceDensity:ie},me)):t.jsx(d.InlineUserAssistance,Object.assign({assistiveText:x,fieldLabel:C,helpSourceLink:f,helpSourceText:R,messages:D,isRequiredShown:j,userAssistanceDensity:ie},me));if(b({isReadonly:te,enabledElementRef:le,readonlyElementRef:oe,minRows:I,maxRows:k,value:B}),te)return t.jsx(i.FormFieldContext.Provider,Object.assign({value:de},{children:t.jsx(r.ReadonlyTextField,Object.assign({role:"presentation",inlineUserAssistance:Re,variant:"textarea"},ve,{children:t.jsx(h.ReadonlyTextFieldInput,Object.assign({ariaDescribedBy:e,ariaLabel:fe,ariaLabelledBy:xe.id,elementRef:oe},k?{as:"textarea",rows:I}:{as:"div"},{autoFocus:v,textAlign:ae,value:B,variant:"textarea",hasInsideLabel:void 0!==C&&"inside"===ne}))}))}));const ye=s.useCallback(()=>{var e,t;const n=le.current,s=n?n.value.length:null;null===(e=le.current)||void 0===e||e.setSelectionRange(s,s),null===(t=le.current)||void 0===t||t.focus()},[]),Le=t.jsxs(n.Fragment,{children:[t.jsx(p.TextFieldInput,Object.assign({as:"textarea",ariaLabel:fe,autoComplete:m,autoFocus:v,currentCommitValue:W,hasInsideLabel:void 0!==be&&"inside"===ne,isRequired:A,inputRef:le,onCommit:J,onInput:Fe,placeholder:O,role:N,rows:I,textAlign:ae,value:B},ce)),"remaining"===U&&void 0!==T&&t.jsx(F.MaxLengthCounter,Object.assign({},{maxLength:T,valueLength:pe,parentHasFocus:ue,onClick:ye})),void 0!==T&&t.jsx(r.MaxLengthLiveRegion,Object.assign({},{isMaxLengthExceeded:he,maxLength:T,valueLength:pe}))]});return t.jsx(i.FormFieldContext.Provider,Object.assign({value:de},{children:t.jsx(r.TextField,Object.assign({mainContent:Le,inlineUserAssistance:Re,onBlur:null==re?void 0:re.onfocusout,onFocus:null==re?void 0:re.onfocusin},ge,ve))}))});e.TextAreaAutosize=v});
|
|
2
|
+
//# sourceMappingURL=TextAreaAutosize-0ce799de.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAreaAutosize-370b4a47.js","sources":["../../src/UNSAFE_TextAreaAutosize/ScrollHeightUtils.tsx","../../src/UNSAFE_TextAreaAutosize/useTextAreaAutosizing.tsx","../../src/UNSAFE_TextAreaAutosize/TextAreaAutosize.tsx"],"sourcesContent":["// returns the lineHeight as a number of pixels.\nexport const calculateLineHeight = (textarea: HTMLTextAreaElement): number => {\n const computedStyle = window.getComputedStyle(textarea);\n const computedlineHeight = computedStyle.lineHeight;\n if (computedlineHeight === 'normal') {\n // We get 'normal' for values 'initial', 'inherit', 'unset' and 'normal'\n // TODO: Unclear if we need this.\n // getComputedStyle always return fontSize in pixels. Not likely a float, but since it's legal\n // we use parseFloat()\n const fontSize = parseFloat(computedStyle.fontSize);\n return 1.2 * fontSize;\n }\n return parseFloat(computedlineHeight);\n};\nexport const getStylingHeight = (textarea: HTMLTextAreaElement) => {\n const cssStyle = window.getComputedStyle(textarea);\n const paddingTop = parseFloat(cssStyle.paddingTop);\n const paddingBottom = parseFloat(cssStyle.paddingBottom);\n const borderTop = parseFloat(cssStyle.borderTop);\n const borderBottom = parseFloat(cssStyle.borderBottom);\n return { paddingHeight: paddingTop + paddingBottom, borderHeight: borderTop + borderBottom };\n};\n","import { ComponentProps } from 'preact';\nimport { useLayoutEffect, Ref } from 'preact/hooks';\nimport { calculateLineHeight, getStylingHeight } from './ScrollHeightUtils';\nimport { TextAreaAutosize } from './TextAreaAutosize';\n\ntype PickedPropsFromTextAreaAutosize = Pick<\n ComponentProps<typeof TextAreaAutosize>,\n 'minRows' | 'maxRows' | 'value'\n>;\ntype Props = PickedPropsFromTextAreaAutosize & {\n isReadonly?: boolean;\n enabledElementRef: Ref<HTMLTextAreaElement>;\n readonlyElementRef: Ref<HTMLTextAreaElement | HTMLDivElement>;\n};\n\n// TODO: Make this fire when the container resizes - JET-50840\nexport const useTextAreaAutosizing = ({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows = 2,\n maxRows,\n value\n}: Props) => {\n useLayoutEffect(() => {\n const textareaRef = isReadonly ? readonlyElementRef : enabledElementRef;\n if (textareaRef.current === null) return;\n if (textareaRef.current instanceof HTMLDivElement) return; // We don't need to do anything if the readonlyElement is a DIV.\n const textarea = textareaRef.current;\n const lineHeight = calculateLineHeight(textarea);\n textarea.style.height = '0';\n const { paddingHeight, borderHeight } = getStylingHeight(textarea);\n const heightForMinRows = lineHeight * minRows + paddingHeight + borderHeight;\n const scrollHeight = textarea.scrollHeight + borderHeight;\n let resizedHeight = 0;\n // if maxRows is -1 the textarea will grow or shrink to fit all the content.\n // it won't shrink any less than rows.\n if (maxRows === undefined) {\n // we want to fit the entire scrollHeight, but we don't want\n // to shrink smaller than the height for rows.\n if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else if (maxRows > minRows) {\n // if maxRows is positive and greater than rows, the textarea will grow to fit the content\n // up to maxrows, or shrink to fit the content and down to rows.\n const heightForMaxRows = lineHeight * maxRows + paddingHeight + borderHeight;\n if (scrollHeight > heightForMaxRows) {\n resizedHeight = heightForMaxRows;\n } else if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else {\n resizedHeight = heightForMinRows;\n }\n // The 0.5 gaurantees that the clientHeight will be bigger than the scrollHeight, so no scrollbar appears.\n textarea.style.height = resizedHeight + 0.5 + 'px';\n }, [value, minRows, maxRows, isReadonly]);\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, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\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 { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '../hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '../UNSAFE_TextField';\nimport { useTextAreaAutosizing } from './useTextAreaAutosizing';\nimport { Size } from '../utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { MaxLengthCounter } from '../UNSAFE_TextArea';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\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 ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\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 * 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 * Specifies the maximum number of rows that the TextAreaAutosize is allowed to grow to.\n * If maxRows is less than minRows, it is ignored.\n */\n maxRows?: number;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Specifies the minimum number of rows that the TextAreaAutosize is allowed to shrink to.\n */\n minRows?: number;\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 role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\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 * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\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 */\n onCommit?: TextFieldInputProps['onCommit'];\n\n /**\n * Callback invoked when the user inputs a value.\n *\n */\n onInput: TextFieldInputProps['onInput'];\n};\nexport const TextAreaAutosize = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\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 maxRows,\n messages,\n minRows = 2,\n placeholder,\n role,\n //TODO: Add counter to show the length remaining - JET-50752\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit\n }: Props,\n ref?: Ref<FocusableHandle>\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]\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]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\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;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement | HTMLDivElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\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 };\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n useTextAreaAutosizing({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows,\n maxRows,\n value\n });\n\n if (isReadonly) {\n // TODO: should be able to configure whether start/end content is shown when readonly\n // JET-49916 - Preact InputText: show start/end content when readonly\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n elementRef={readonlyElementRef}\n {...(maxRows ? { as: 'textarea', rows: minRows } : { as: 'div' })}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\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 }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\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={minRows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["useLayoutEffect","forwardRef","useCurrentValueReducer","useCallback","useFormContext","useFocusableTextField","useTextField","useLengthFilter","_jsx","Label","InlineUserAssistance","FormFieldContext","ReadonlyTextField","ReadonlyTextFieldInput","_jsxs","Fragment","TextFieldInput","MaxLengthCounter","MaxLengthLiveRegion","TextField"],"mappings":";;;IAAA;IACO,MAAM,mBAAmB,GAAG,CAAC,QAA6B,KAAY;QAC3E,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAA,MAAM,kBAAkB,GAAG,aAAa,CAAC,UAAU,CAAC;QACpD,IAAI,kBAAkB,KAAK,QAAQ,EAAE;;;;;YAKnC,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACpD,OAAO,GAAG,GAAG,QAAQ,CAAC;IACvB,KAAA;IACD,IAAA,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC,CAAC;IACK,MAAM,gBAAgB,GAAG,CAAC,QAA6B,KAAI;QAChE,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACnD,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,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AC3B,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACR,EAAA,UAAU,CACd,CAAA,EACD,gBAAgB,KAAK,WAAW,IAAI,SAAS,KAAK,SAAS,KAC1DR,cAAA,CAACS,yBAAgB,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACX,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA,CAClF,CACH,EACA,SAAS,KAAK,SAAS,KACtBT,cAAA,CAACU,oCAAmB,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,WAAW,EAAE,CAAA,CAAI,CAC7E,CAAA,EAAA,CACQ,CACZ,CAAC;QAEF,QACEV,eAACG,iDAAgB,CAAC,QAAQ,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,gBAAgB,EAAA,EAAA,EAAA,QAAA,EAChDH,eAACW,0BAAS,EAAA,MAAA,CAAA,MAAA,CAAA,EACR,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,MAAM,EAAE,UAAU,KAAV,IAAA,IAAA,UAAU,uBAAV,UAAU,CAAE,UAAU,EAC9B,OAAO,EAAE,UAAU,KAAV,IAAA,IAAA,UAAU,uBAAV,UAAU,CAAE,SAAS,EAC1B,EAAA,cAAc,EACd,eAAe,CAAA,CAAc,EACT,CAAA,CAAA,EAC5B;IACJ,CAAC;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"TextAreaAutosize-0ce799de.js","sources":["../../src/UNSAFE_TextAreaAutosize/ScrollHeightUtils.tsx","../../src/UNSAFE_TextAreaAutosize/useTextAreaAutosizing.tsx","../../src/UNSAFE_TextAreaAutosize/TextAreaAutosize.tsx"],"sourcesContent":["// returns the lineHeight as a number of pixels.\nexport const calculateLineHeight = (textarea: HTMLTextAreaElement): number => {\n const computedStyle = window.getComputedStyle(textarea);\n const computedlineHeight = computedStyle.lineHeight;\n if (computedlineHeight === 'normal') {\n // We get 'normal' for values 'initial', 'inherit', 'unset' and 'normal'\n // TODO: Unclear if we need this.\n // getComputedStyle always return fontSize in pixels. Not likely a float, but since it's legal\n // we use parseFloat()\n const fontSize = parseFloat(computedStyle.fontSize);\n return 1.2 * fontSize;\n }\n return parseFloat(computedlineHeight);\n};\nexport const getStylingHeight = (textarea: HTMLTextAreaElement) => {\n const cssStyle = window.getComputedStyle(textarea);\n const paddingTop = parseFloat(cssStyle.paddingTop);\n const paddingBottom = parseFloat(cssStyle.paddingBottom);\n const borderTop = parseFloat(cssStyle.borderTop);\n const borderBottom = parseFloat(cssStyle.borderBottom);\n return { paddingHeight: paddingTop + paddingBottom, borderHeight: borderTop + borderBottom };\n};\n","import { ComponentProps } from 'preact';\nimport { useLayoutEffect, Ref } from 'preact/hooks';\nimport { calculateLineHeight, getStylingHeight } from './ScrollHeightUtils';\nimport { TextAreaAutosize } from './TextAreaAutosize';\n\ntype PickedPropsFromTextAreaAutosize = Pick<\n ComponentProps<typeof TextAreaAutosize>,\n 'minRows' | 'maxRows' | 'value'\n>;\ntype Props = PickedPropsFromTextAreaAutosize & {\n isReadonly?: boolean;\n enabledElementRef: Ref<HTMLTextAreaElement>;\n readonlyElementRef: Ref<HTMLTextAreaElement | HTMLDivElement>;\n};\n\n// TODO: Make this fire when the container resizes - JET-50840\nexport const useTextAreaAutosizing = ({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows = 2,\n maxRows,\n value\n}: Props) => {\n useLayoutEffect(() => {\n const textareaRef = isReadonly ? readonlyElementRef : enabledElementRef;\n if (textareaRef.current === null) return;\n if (textareaRef.current instanceof HTMLDivElement) return; // We don't need to do anything if the readonlyElement is a DIV.\n const textarea = textareaRef.current;\n const lineHeight = calculateLineHeight(textarea);\n textarea.style.height = '0';\n const { paddingHeight, borderHeight } = getStylingHeight(textarea);\n const heightForMinRows = lineHeight * minRows + paddingHeight + borderHeight;\n const scrollHeight = textarea.scrollHeight + borderHeight;\n let resizedHeight = 0;\n // if maxRows is -1 the textarea will grow or shrink to fit all the content.\n // it won't shrink any less than rows.\n if (maxRows === undefined) {\n // we want to fit the entire scrollHeight, but we don't want\n // to shrink smaller than the height for rows.\n if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else if (maxRows > minRows) {\n // if maxRows is positive and greater than rows, the textarea will grow to fit the content\n // up to maxrows, or shrink to fit the content and down to rows.\n const heightForMaxRows = lineHeight * maxRows + paddingHeight + borderHeight;\n if (scrollHeight > heightForMaxRows) {\n resizedHeight = heightForMaxRows;\n } else if (scrollHeight < heightForMinRows) {\n resizedHeight = heightForMinRows;\n } else {\n resizedHeight = scrollHeight;\n }\n } else {\n resizedHeight = heightForMinRows;\n }\n // The 0.5 gaurantees that the clientHeight will be bigger than the scrollHeight, so no scrollbar appears.\n textarea.style.height = resizedHeight + 0.5 + 'px';\n }, [value, minRows, maxRows, isReadonly]);\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, Fragment, Ref } from 'preact';\nimport { forwardRef, useCallback } from 'preact/compat';\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 { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { CountUnit, useLengthFilter } from '../hooks/UNSAFE_useLengthFilter';\nimport { MaxLengthLiveRegion } from '../UNSAFE_TextField';\nimport { useTextAreaAutosizing } from './useTextAreaAutosizing';\nimport { Size } from '../utils/UNSAFE_size';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { MaxLengthCounter } from '../UNSAFE_TextArea';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\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 ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\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 * 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 * Specifies the maximum number of rows that the TextAreaAutosize is allowed to grow to.\n * If maxRows is less than minRows, it is ignored.\n */\n maxRows?: number;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Specifies the minimum number of rows that the TextAreaAutosize is allowed to shrink to.\n */\n minRows?: number;\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 role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\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 * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\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 */\n onCommit?: TextFieldInputProps['onCommit'];\n\n /**\n * Callback invoked when the user inputs a value.\n *\n */\n onInput: TextFieldInputProps['onInput'];\n};\nexport const TextAreaAutosize = forwardRef(\n (\n {\n ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\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 maxRows,\n messages,\n minRows = 2,\n placeholder,\n role,\n //TODO: Add counter to show the length remaining - JET-50752\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit\n }: Props,\n ref?: Ref<FocusableHandle>\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]\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]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\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;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const { enabledElementRef, readonlyElementRef, focusProps, isFocused } = useFocusableTextField<\n HTMLTextAreaElement,\n HTMLTextAreaElement | HTMLDivElement\n >({ isDisabled, isReadonly, ref });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n contentVariant: 'textarea',\n isDisabled,\n isFocused,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value\n });\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\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 };\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n\n const inlineUserAssistance =\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n );\n\n useTextAreaAutosizing({\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n minRows,\n maxRows,\n value\n });\n\n if (isReadonly) {\n // TODO: should be able to configure whether start/end content is shown when readonly\n // JET-49916 - Preact InputText: show start/end content when readonly\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n variant=\"textarea\"\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n elementRef={readonlyElementRef}\n {...(maxRows ? { as: 'textarea', rows: minRows } : { as: 'div' })}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\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 }, []);\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n as=\"textarea\"\n ariaLabel={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\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={minRows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && maxLength !== undefined && (\n <MaxLengthCounter\n {...{ maxLength, valueLength, parentHasFocus: isFocused, onClick: onClickCounter }}\n />\n )}\n {maxLength !== undefined && (\n <MaxLengthLiveRegion {...{ isMaxLengthExceeded, maxLength, valueLength }} />\n )}\n </Fragment>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["useTextAreaAutosizing","isReadonly","enabledElementRef","readonlyElementRef","minRows","maxRows","value","useLayoutEffect","textareaRef","current","HTMLDivElement","textarea","lineHeight","computedStyle","window","getComputedStyle","computedlineHeight","parseFloat","fontSize","calculateLineHeight","style","height","paddingHeight","borderHeight","cssStyle","paddingTop","paddingBottom","borderTop","borderBottom","getStylingHeight","heightForMinRows","scrollHeight","resizedHeight","undefined","heightForMaxRows","TextAreaAutosize","forwardRef","ariaDescribedBy","assistiveText","autoComplete","autoFocus","helpSourceLink","helpSourceText","isDisabled","propIsDisabled","propIsReadonly","isRequired","isRequiredShown","label","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","maxLength","maxLengthCounter","maxLengthUnit","messages","placeholder","role","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","variant","onInput","onCommit","ref","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","useCallback","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","focusProps","isFocused","useFocusableTextField","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","contentVariant","styleVariant","isMaxLengthExceeded","valueLength","onFilteredInput","useLengthFilter","labelComp","_jsx","Label","Object","assign","fieldLabelProps","ariaLabel","inlineUserAssistance","jsx","InlineUserAssistance","fieldLabel","FormFieldContext","Provider","children","ReadonlyTextField","ReadonlyTextFieldInput","ariaLabelledBy","id","elementRef","as","rows","hasInsideLabel","onClickCounter","elm","len","length","_a","setSelectionRange","_b","focus","mainContent","_jsxs","Fragment","TextFieldInput","inputRef","MaxLengthCounter","parentHasFocus","onClick","MaxLengthLiveRegion","TextField","onBlur","onfocusout","onFocus","onfocusin"],"mappings":"wgBACO,MCeMA,EAAwB,EACnCC,WAAAA,EACAC,kBAAAA,EACAC,mBAAAA,EACAC,QAAAA,EAAU,EACVC,QAAAA,EACAC,MAAAA,MAEAC,EAAAA,gBAAgB,KACd,MAAMC,EAAcP,EAAaE,EAAqBD,EACtD,GAA4B,OAA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fdde","preact/jsx-runtime",'module',"./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useTabbableMode","./hooks/UNSAFE_useTextFieldInputHandlers","./utils/UNSAFE_classNames","./utils/UNSAFE_interpolations/text","./utils/UNSAFE_mergeInterpolations","./FormControlUtils-32ad4902","./classNames-d0ddb6e6"],function(a,e,t,l,i,s,o,r,n,u,d,p){"use strict";const c="zzl3rt",b="y7pj1e",m="_1x3hy6z",x="_1re2v9s",h="_2p1vd1",y="p3wat7",v="a86zdg",f="_1juhjwc",_="ey7v0u",C="_1syd4pz",F="_9bh50b",I="afyh7f",N="m6q6ks",w="_66hwac",g="_1npc2od",S="_10phhp6",V="tobfn9",E="_1obv2y8",U="_611rz8",j="_1rqhr0p",A="_1vqfpla",L="_1824zf7",T="_8lqaps",k="_1n4ljvb",z="pwvu79",q="p7x6ea",M="felamo",D=[...Object.values(n.textInterpolations)],K=u.mergeInterpolations(D);a.TextFieldInput=a=>{var{as:l="input",ariaAutoComplete:r,ariaControls:n,ariaDescribedBy:u,ariaExpanded:c,ariaInvalid:b,ariaLabel:m,ariaLabelledBy:x,ariaValueMax:h,ariaValueMin:y,ariaValueNow:v,ariaValueText:f,autoComplete:_,autoFocus:D,currentCommitValue:R,hasEndContent:B=!1,hasInsideLabel:P=!1,hasPrefix:H=!1,hasStartContent:O=!1,hasSuffix:G=!1,id:J,inputRef:Q,placeholder:W,isRequired:X,role:Y,rows:Z,spellcheck:$,type:aa,value:ea="",variant:ta="default",onInput:la,onCommit:ia,onKeyDown:sa,onKeyUp:oa}=a,ra=e.__rest(a,["as","ariaAutoComplete","ariaControls","ariaDescribedBy","ariaExpanded","ariaInvalid","ariaLabel","ariaLabelledBy","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","autoComplete","autoFocus","currentCommitValue","hasEndContent","hasInsideLabel","hasPrefix","hasStartContent","hasSuffix","id","inputRef","placeholder","isRequired","role","rows","spellcheck","type","value","variant","onInput","onCommit","onKeyDown","onKeyUp"]);const na=""!==ea,{isDisabled:ua,isFocused:da,isLoading:pa,isReadonly:ca}=i.useFormFieldContext(),ba=((a,e,t)=>!(a&&!e&&!t))(P,na,da)?W:void 0,{class:ma}=K(ra),xa=!ua&&H,ha=!ua&&G,ya=p.classNames(["oj-c-text-field-input",C,"default"===ta?p.classNames([k,"textarea"===l&&I,"input"===l&&F,"password"===aa&&N,!O&&!xa&&z,!B&&!ha&&q]):M,P&&p.classNames([g,"textarea"===l&&S,!na&&da&&V]),!P&&"textarea"!==l&&w,O&&!H&&E,B&&!G&&U,ua?A:j,xa&&L,ha&&T,ma]),va=l||"input",fa=o.useTextFieldInputHandlers({currentCommitValue:R,value:ea,onInput:la,onCommit:ia,onKeyDown:sa}),{isTabbable:_a,tabbableModeProps:Ca}=s.useTabbableMode();return t.jsx(va,Object.assign({"aria-autocomplete":r,"aria-controls":n,"aria-describedby":u,"aria-expanded":c,"aria-invalid":b,"aria-label":pa?d.getLoadingAriaLabel():m||void 0,"aria-labelledby":x,"aria-required":!!X||void 0,"aria-valuemax":h,"aria-valuemin":y,"aria-valuenow":v,"aria-valuetext":f,autocomplete:_,autofocus:D,class:ya,disabled:ua,id:J,onKeyUp:oa,placeholder:ba,readonly:ca,ref:Q,role:Y,rows:Z,spellcheck:$,type:aa,value:ea},fa,!_a&&Ca))},a.getInputId=a=>(null!=a?a:"")+"|input",a.getReadonlyClasses=(a,e,t)=>p.classNames([x,"textarea"===t&&y,a?h:f,"textarea"===t&&!a&&_,a&&e&&v]),a.getTextFieldClasses=(a,e)=>p.classNames([c,"embedded"===e&&b,!a&&m]),a.loadingStyles="kyz64f"});
|
|
2
|
+
//# sourceMappingURL=TextFieldInput-794a6202.js.map
|