@oracle/oraclejet-preact 14.0.6 → 14.0.7
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-3a3bc336.js +40 -0
- package/{cjs/Badge-1a50236d.js.map → amd/Badge-3a3bc336.js.map} +1 -1
- package/amd/BaseButton-20a653f3.js +148 -0
- package/amd/{BaseButton-7b3d7ae3.js.map → BaseButton-20a653f3.js.map} +1 -1
- package/amd/Button-87280b4a.js +68 -0
- package/{cjs/Button-fe2eda28.js.map → amd/Button-87280b4a.js.map} +1 -1
- package/amd/Chip-8cd23568.js +55 -0
- package/{cjs/Chip-949fdcd8.js.map → amd/Chip-8cd23568.js.map} +1 -1
- package/amd/ClearIcon-27a5c275.js +58 -0
- package/amd/{ClearIcon-758f35e3.js.map → ClearIcon-27a5c275.js.map} +1 -1
- package/amd/Collection-55b75a82.js +18 -0
- package/amd/{Collection-25c13095.js.map → Collection-55b75a82.js.map} +1 -1
- package/amd/ComponentMessage-5603259e.js +44 -0
- package/amd/{ComponentMessage-e718a00c.js.map → ComponentMessage-5603259e.js.map} +1 -1
- package/amd/ComponentMessageContainer-a00ec42c.js +50 -0
- package/{cjs/ComponentMessageContainer-98b5b547.js.map → amd/ComponentMessageContainer-a00ec42c.js.map} +1 -1
- package/amd/Divider-8cd412fd.js +34 -0
- package/amd/{Divider-0e4c5047.js.map → Divider-8cd412fd.js.map} +1 -1
- package/amd/FilePicker-bb70dacb.js +582 -0
- package/amd/{FilePicker-89374ddb.js.map → FilePicker-bb70dacb.js.map} +1 -1
- package/amd/Flex-7762d39c.js +35 -0
- package/amd/{Flex-95e67964.js.map → Flex-7762d39c.js.map} +1 -1
- package/amd/Floating-08ac18d2.js +310 -0
- package/amd/{Floating-d29f2f68.js.map → Floating-08ac18d2.js.map} +1 -1
- package/amd/FocusTrap-420f2714.js +143 -0
- package/amd/{FocusTrap-dea153a7.js.map → FocusTrap-420f2714.js.map} +1 -1
- package/amd/FormControlUtils-802d298a.js +21 -0
- package/amd/{FormControlUtils-9cd3baeb.js.map → FormControlUtils-802d298a.js.map} +1 -1
- package/amd/Heading-431829e1.js +72 -0
- package/amd/{Heading-d20ac2b9.js.map → Heading-431829e1.js.map} +1 -1
- package/amd/HiddenAccessible-1dadf91a.js +25 -0
- package/amd/{HiddenAccessible-c8f46f15.js.map → HiddenAccessible-1dadf91a.js.map} +1 -1
- package/amd/HighlightText-9d200a5d.js +48 -0
- package/{cjs/HighlightText-7dd1e9d4.js.map → amd/HighlightText-9d200a5d.js.map} +1 -1
- package/amd/Icon-a6ef6699.js +99 -0
- package/amd/{Icon-f927c830.js.map → Icon-a6ef6699.js.map} +1 -1
- package/amd/Indexer-81bf2fe0.js +512 -0
- package/amd/{Indexer-4d403dee.js.map → Indexer-81bf2fe0.js.map} +1 -1
- package/amd/InlineHelpSource-8a22f914.js +32 -0
- package/amd/{InlineHelpSource-513565b7.js.map → InlineHelpSource-8a22f914.js.map} +1 -1
- package/amd/Link-3169fd72.js +42 -0
- package/{cjs/Link-7e0f7f49.js.map → amd/Link-3169fd72.js.map} +1 -1
- package/amd/List-26b59d92.js +670 -0
- package/amd/{List-783f42fa.js.map → List-26b59d92.js.map} +1 -1
- package/amd/ListItemTextLayout-f6a3d721.js +211 -0
- package/amd/{ListItemTextLayout-4aa65b0a.js.map → ListItemTextLayout-f6a3d721.js.map} +1 -1
- package/amd/ListView-3b9a3235.js +16 -0
- package/amd/{ListView-204b0aac.js.map → ListView-3b9a3235.js.map} +1 -1
- package/amd/LoadMoreCollection-b7513141.js +63 -0
- package/amd/{LoadMoreCollection-b4c4c44b.js.map → LoadMoreCollection-b7513141.js.map} +1 -1
- package/amd/Menu-94ddd429.js +302 -0
- package/amd/Menu-94ddd429.js.map +1 -0
- package/amd/MenuDivider-b9309ceb.js +19 -0
- package/amd/{MenuDivider-3a14aef5.js.map → MenuDivider-b9309ceb.js.map} +1 -1
- package/amd/MenuItem-c263a7c0.js +154 -0
- package/amd/MenuItem-c263a7c0.js.map +1 -0
- package/amd/Message.types-3ff18727.js +11 -0
- package/amd/{Message.types-c19a2d25.js.map → Message.types-3ff18727.js.map} +1 -1
- package/amd/MessageCloseButton-51697635.js +44 -0
- package/{cjs/MessageCloseButton-a573c580.js.map → amd/MessageCloseButton-51697635.js.map} +1 -1
- package/amd/MessageDetail-dd86fa2b.js +61 -0
- package/amd/{MessageDetail-ddfaa852.js.map → MessageDetail-dd86fa2b.js.map} +1 -1
- package/amd/MessageFormattingUtils-0ffdac02.js +103 -0
- package/amd/{MessageFormattingUtils-fbc95605.js.map → MessageFormattingUtils-0ffdac02.js.map} +1 -1
- package/amd/MessageLayer-6da93adb.js +80 -0
- package/amd/{MessageLayer-a16ace03.js.map → MessageLayer-6da93adb.js.map} +1 -1
- package/amd/MessageStartIcon-1b57b659.js +63 -0
- package/amd/{MessageStartIcon-0470534b.js.map → MessageStartIcon-1b57b659.js.map} +1 -1
- package/amd/MessageSummary-cf0af1b2.js +37 -0
- package/amd/{MessageSummary-71773382.js.map → MessageSummary-cf0af1b2.js.map} +1 -1
- package/amd/MessageTimestamp-0e995235.js +36 -0
- package/amd/{MessageTimestamp-2f08c777.js.map → MessageTimestamp-0e995235.js.map} +1 -1
- package/amd/MessageToast-e0f94cbe.js +307 -0
- package/amd/{MessageToast-0e3cd004.js.map → MessageToast-e0f94cbe.js.map} +1 -1
- package/amd/MessageUtils-0bf10cfa.js +137 -0
- package/amd/{MessageUtils-9295af3b.js.map → MessageUtils-0bf10cfa.js.map} +1 -1
- package/amd/MessagesManager-da52103a.js +110 -0
- package/amd/{MessagesManager-4b874934.js.map → MessagesManager-da52103a.js.map} +1 -1
- package/amd/MeterCircle-bb948163.js +547 -0
- package/amd/{MeterCircle-8a82db8e.js.map → MeterCircle-bb948163.js.map} +1 -1
- package/amd/Modal-be0762b5.js +109 -0
- package/amd/{Modal-291735e8.js.map → Modal-be0762b5.js.map} +1 -1
- package/amd/NumberInputText-d762d134.js +252 -0
- package/amd/{NumberInputText-ca8f3aea.js.map → NumberInputText-d762d134.js.map} +1 -1
- package/amd/PRIVATE_Collection.js +17 -1
- package/amd/PRIVATE_Collection.js.map +1 -1
- package/amd/PRIVATE_List.css +18 -17
- package/amd/PRIVATE_List.js +18 -1
- package/amd/PRIVATE_List.js.map +1 -1
- package/amd/PRIVATE_Message.css +35 -34
- package/amd/PRIVATE_Message.js +278 -1
- package/amd/PRIVATE_Message.js.map +1 -1
- package/amd/PRIVATE_MessageLayer.css +8 -7
- package/amd/PRIVATE_MessageLayer.js +12 -1
- package/amd/PRIVATE_MessageLayer.js.map +1 -1
- package/amd/PRIVATE_Meter.js +66 -1
- package/amd/PRIVATE_Meter.js.map +1 -1
- package/amd/PRIVATE_SelectCommon.css +19 -18
- package/amd/PRIVATE_SelectCommon.js +632 -1
- package/amd/PRIVATE_SelectCommon.js.map +1 -1
- package/amd/PRIVATE_TransitionGroup.js +414 -1
- package/amd/PRIVATE_TransitionGroup.js.map +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +19 -1
- package/amd/PRIVATE_VirtualizedCollection.js.map +1 -1
- package/amd/ReadonlyTextFieldInput-4583f049.js +111 -0
- package/amd/{ReadonlyTextFieldInput-1d4e73e8.js.map → ReadonlyTextFieldInput-4583f049.js.map} +1 -1
- package/amd/SelectMenuItem-2412de22.js +60 -0
- package/amd/SelectMenuItem-2412de22.js.map +1 -0
- package/amd/SelectMultiple-d1b4cc77.js +485 -0
- package/amd/SelectMultiple-d1b4cc77.js.map +1 -0
- package/amd/SelectSingle-01b25bff.js +354 -0
- package/amd/SelectSingle-01b25bff.js.map +1 -0
- package/amd/Skeleton-d0383726.js +39 -0
- package/amd/{Skeleton-31275263.js.map → Skeleton-d0383726.js.map} +1 -1
- package/amd/Spacer-165e178f.js +16 -0
- package/amd/{Spacer-bcde3cb4.js.map → Spacer-165e178f.js.map} +1 -1
- package/amd/SplitMenuButton-df0ee526.js +184 -0
- package/amd/{SplitMenuButton-a7f63424.js.map → SplitMenuButton-df0ee526.js.map} +1 -1
- package/amd/Text-de291c3f.js +100 -0
- package/amd/{Text-617f0e96.js.map → Text-de291c3f.js.map} +1 -1
- package/amd/TextArea-25fa8171.js +133 -0
- package/amd/{TextArea-2017accb.js.map → TextArea-25fa8171.js.map} +1 -1
- package/amd/TextAreaAutosize-370b4a47.js +161 -0
- package/amd/{TextAreaAutosize-7f30edb6.js.map → TextAreaAutosize-370b4a47.js.map} +1 -1
- package/amd/TextFieldInput-312fb211.js +172 -0
- package/{cjs/TextFieldInput-fb294714.js.map → amd/TextFieldInput-312fb211.js.map} +1 -1
- package/amd/UNSAFE_AspectRatio.css +2 -1
- package/amd/UNSAFE_AspectRatio.js +79 -1
- package/amd/UNSAFE_AspectRatio.js.map +1 -1
- package/amd/UNSAFE_Avatar.css +9 -8
- package/amd/UNSAFE_Avatar.js +106 -1
- package/amd/UNSAFE_Avatar.js.map +1 -1
- package/amd/UNSAFE_Badge.css +14 -13
- package/amd/UNSAFE_Badge.js +11 -1
- package/amd/UNSAFE_Badge.js.map +1 -1
- package/amd/UNSAFE_BaseButton.css +16 -15
- package/amd/UNSAFE_BaseButton.js +11 -1
- package/amd/UNSAFE_BaseButton.js.map +1 -1
- package/amd/UNSAFE_Button.css +9 -8
- package/amd/UNSAFE_Button.js +12 -1
- package/amd/UNSAFE_Button.js.map +1 -1
- package/amd/UNSAFE_Center.js +28 -1
- package/amd/UNSAFE_Center.js.map +1 -1
- package/amd/UNSAFE_Chip.css +8 -7
- package/amd/UNSAFE_Chip.js +11 -1
- package/amd/UNSAFE_Chip.js.map +1 -1
- package/amd/UNSAFE_Collapsible.css +10 -9
- package/amd/UNSAFE_Collapsible.js +226 -1
- package/amd/UNSAFE_Collapsible.js.map +1 -1
- package/amd/UNSAFE_Collection.js +13 -1
- package/amd/UNSAFE_Collection.js.map +1 -1
- package/amd/UNSAFE_ComponentMessage.css +4 -3
- package/amd/UNSAFE_ComponentMessage.js +12 -1
- package/amd/UNSAFE_ComponentMessage.js.map +1 -1
- package/amd/UNSAFE_Divider.css +2 -1
- package/amd/UNSAFE_Divider.js +11 -1
- package/amd/UNSAFE_Divider.js.map +1 -1
- package/amd/UNSAFE_EmptyList.js +16 -1
- package/amd/UNSAFE_EmptyList.js.map +1 -1
- package/amd/UNSAFE_Environment.js +84 -1
- package/amd/UNSAFE_Environment.js.map +1 -1
- package/amd/UNSAFE_FilePicker.css +7 -6
- package/amd/UNSAFE_FilePicker.js +11 -1
- package/amd/UNSAFE_FilePicker.js.map +1 -1
- package/amd/UNSAFE_Flex.css +3 -2
- package/amd/UNSAFE_Flex.js +11 -1
- package/amd/UNSAFE_Flex.js.map +1 -1
- package/amd/UNSAFE_Floating.js +11 -1
- package/amd/UNSAFE_Floating.js.map +1 -1
- package/amd/UNSAFE_FocusTrap.css +4 -3
- package/amd/UNSAFE_FocusTrap.js +17 -1
- package/amd/UNSAFE_FocusTrap.js.map +1 -1
- package/amd/UNSAFE_Grid.css +2 -1
- package/amd/UNSAFE_Grid.js +37 -1
- package/amd/UNSAFE_Grid.js.map +1 -1
- package/amd/UNSAFE_Heading.css +10 -9
- package/amd/UNSAFE_Heading.js +13 -1
- package/amd/UNSAFE_Heading.js.map +1 -1
- package/amd/UNSAFE_HiddenAccessible.css +2 -1
- package/amd/UNSAFE_HiddenAccessible.js +17 -1
- package/amd/UNSAFE_HiddenAccessible.js.map +1 -1
- package/amd/UNSAFE_HighlightText.css +2 -1
- package/amd/UNSAFE_HighlightText.js +17 -1
- package/amd/UNSAFE_HighlightText.js.map +1 -1
- package/amd/UNSAFE_Icon.css +22 -21
- package/amd/UNSAFE_Icon.js +28 -1
- package/amd/UNSAFE_Icon.js.map +1 -1
- package/amd/UNSAFE_Icons.js +26 -1
- package/amd/UNSAFE_Icons.js.map +1 -1
- package/amd/UNSAFE_Indexer.css +9 -8
- package/amd/UNSAFE_Indexer.js +18 -1
- package/amd/UNSAFE_Indexer.js.map +1 -1
- package/amd/UNSAFE_InputPassword.css +2 -1
- package/amd/UNSAFE_InputPassword.js +139 -1
- package/amd/UNSAFE_InputPassword.js.map +1 -1
- package/amd/UNSAFE_InputText.css +2 -1
- package/amd/UNSAFE_InputText.js +114 -1
- package/amd/UNSAFE_InputText.js.map +1 -1
- package/amd/UNSAFE_Label.css +14 -13
- package/amd/UNSAFE_Label.js +77 -1
- package/amd/UNSAFE_Label.js.map +1 -1
- package/amd/UNSAFE_LabelValueLayout.css +10 -9
- package/amd/UNSAFE_LabelValueLayout.js +85 -1
- package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
- package/amd/UNSAFE_Layer.js +66 -1
- package/amd/UNSAFE_Layer.js.map +1 -1
- package/amd/UNSAFE_Link.css +6 -5
- package/amd/UNSAFE_Link.js +11 -1
- package/amd/UNSAFE_Link.js.map +1 -1
- package/amd/UNSAFE_ListItemLayout.css +11 -10
- package/amd/UNSAFE_ListItemLayout.js +13 -1
- package/amd/UNSAFE_ListItemLayout.js.map +1 -1
- package/amd/UNSAFE_ListView.js +17 -1
- package/amd/UNSAFE_ListView.js.map +1 -1
- package/amd/UNSAFE_LiveRegion.css +2 -1
- package/amd/UNSAFE_LiveRegion.js +60 -1
- package/amd/UNSAFE_LiveRegion.js.map +1 -1
- package/amd/UNSAFE_LoadMoreCollection.js +17 -1
- package/amd/UNSAFE_LoadMoreCollection.js.map +1 -1
- package/amd/UNSAFE_Menu.css +20 -19
- package/amd/UNSAFE_Menu.js +13 -1
- package/amd/UNSAFE_Menu.js.map +1 -1
- package/amd/UNSAFE_MessageBanner.js +183 -1
- package/amd/UNSAFE_MessageBanner.js.map +1 -1
- package/amd/UNSAFE_MessageToast.css +2 -1
- package/amd/UNSAFE_MessageToast.js +17 -1
- package/amd/UNSAFE_MessageToast.js.map +1 -1
- package/amd/UNSAFE_MeterBar.css +46 -45
- package/amd/UNSAFE_MeterBar.js +327 -1
- package/amd/UNSAFE_MeterBar.js.map +1 -1
- package/amd/UNSAFE_MeterCircle.css +48 -47
- package/amd/UNSAFE_MeterCircle.js +11 -1
- package/amd/UNSAFE_MeterCircle.js.map +1 -1
- package/amd/UNSAFE_Modal.css +6 -5
- package/amd/UNSAFE_Modal.js +11 -1
- package/amd/UNSAFE_Modal.js.map +1 -1
- package/amd/UNSAFE_NumberInputText.js +17 -1
- package/amd/UNSAFE_NumberInputText.js.map +1 -1
- package/amd/UNSAFE_PrefixSuffix.css +9 -8
- package/amd/UNSAFE_PrefixSuffix.js +50 -1
- package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
- package/amd/UNSAFE_ProgressBar.css +7 -6
- package/amd/UNSAFE_ProgressBar.js +90 -1
- package/amd/UNSAFE_ProgressBar.js.map +1 -1
- package/amd/UNSAFE_ProgressCircle.css +7 -6
- package/amd/UNSAFE_ProgressCircle.js +85 -1
- package/amd/UNSAFE_ProgressCircle.js.map +1 -1
- package/amd/UNSAFE_RatingGauge.css +23 -22
- package/amd/UNSAFE_RatingGauge.js +358 -1
- package/amd/UNSAFE_RatingGauge.js.map +1 -1
- package/amd/UNSAFE_SelectMultiple.css +2 -1
- package/amd/UNSAFE_SelectMultiple.js +17 -1
- package/amd/UNSAFE_SelectMultiple.js.map +1 -1
- package/amd/UNSAFE_SelectSingle.js +17 -1
- package/amd/UNSAFE_SelectSingle.js.map +1 -1
- package/amd/UNSAFE_Selector.css +6 -5
- package/amd/UNSAFE_Selector.js +107 -1
- package/amd/UNSAFE_Selector.js.map +1 -1
- package/amd/UNSAFE_Skeleton.css +2 -1
- package/amd/UNSAFE_Skeleton.js +17 -1
- package/amd/UNSAFE_Skeleton.js.map +1 -1
- package/amd/UNSAFE_Spacer.js +11 -1
- package/amd/UNSAFE_Spacer.js.map +1 -1
- package/amd/UNSAFE_SplitMenuButton.css +6 -5
- package/amd/UNSAFE_SplitMenuButton.js +11 -1
- package/amd/UNSAFE_SplitMenuButton.js.map +1 -1
- package/amd/UNSAFE_Text.css +26 -25
- package/amd/UNSAFE_Text.js +11 -1
- package/amd/UNSAFE_Text.js.map +1 -1
- package/amd/UNSAFE_TextArea.css +4 -3
- package/amd/UNSAFE_TextArea.js +12 -1
- package/amd/UNSAFE_TextArea.js.map +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +11 -1
- package/amd/UNSAFE_TextAreaAutosize.js.map +1 -1
- package/amd/UNSAFE_TextField.css +63 -62
- package/amd/UNSAFE_TextField.js +190 -1
- package/amd/UNSAFE_TextField.js.map +1 -1
- package/amd/UNSAFE_ThemedIcons.js +26 -1
- package/amd/UNSAFE_ThemedIcons.js.map +1 -1
- package/amd/UNSAFE_UserAssistance.css +12 -11
- package/amd/UNSAFE_UserAssistance.js +85 -1
- package/amd/UNSAFE_UserAssistance.js.map +1 -1
- package/amd/UNSAFE_View.js +29 -1
- package/amd/UNSAFE_View.js.map +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +17 -1
- package/amd/UNSAFE_VirtualizedListView.js.map +1 -1
- package/amd/UNSAFE_WindowOverlay.js +20 -1
- package/amd/UNSAFE_WindowOverlay.js.map +1 -1
- package/amd/VirtualizedCollection-63815bce.js +181 -0
- package/amd/{VirtualizedCollection-5ed8b8e9.js.map → VirtualizedCollection-63815bce.js.map} +1 -1
- package/amd/VirtualizedListView-fb2a18dd.js +16 -0
- package/amd/{VirtualizedListView-c9cfc1f7.js.map → VirtualizedListView-fb2a18dd.js.map} +1 -1
- package/amd/_curry1-645b9927.js +70 -0
- package/amd/_curry1-645b9927.js.map +1 -0
- package/amd/_curry2-93924f19.js +42 -0
- package/amd/_curry2-93924f19.js.map +1 -0
- package/amd/_curry3-4cc6f6ba.js +60 -0
- package/amd/_curry3-4cc6f6ba.js.map +1 -0
- package/amd/_has-cce283ad.js +14 -0
- package/amd/_has-cce283ad.js.map +1 -0
- package/amd/classNames-027de734.js +19 -0
- package/amd/{classNames-14cea078.js.map → classNames-027de734.js.map} +1 -1
- package/amd/clientHints-361cde40.js +156 -0
- package/amd/{clientHints-4d8618df.js.map → clientHints-361cde40.js.map} +1 -1
- package/amd/flexbox-4dd0bbb4.js +41 -0
- package/amd/{flexbox-341394e6.js.map → flexbox-4dd0bbb4.js.map} +1 -1
- package/amd/flexitem-7363d040.js +41 -0
- package/amd/{flexitem-aacf033d.js.map → flexitem-7363d040.js.map} +1 -1
- package/amd/hooks/PRIVATE_useCollectionFocusRing.js +72 -1
- package/amd/hooks/PRIVATE_useCollectionFocusRing.js.map +1 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js +68 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js.map +1 -1
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js +162 -1
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js.map +1 -1
- package/amd/hooks/PRIVATE_useItemAction.js +62 -1
- package/amd/hooks/PRIVATE_useItemAction.js.map +1 -1
- package/amd/hooks/PRIVATE_useMessagesFocusManager.js +351 -1
- package/amd/hooks/PRIVATE_useMessagesFocusManager.js.map +1 -1
- package/amd/hooks/PRIVATE_useSelection.js +173 -1
- package/amd/hooks/PRIVATE_useSelection.js.map +1 -1
- package/amd/hooks/PRIVATE_useSingleSelection.js +11 -1
- package/amd/hooks/PRIVATE_useSingleSelection.js.map +1 -1
- package/amd/hooks/PRIVATE_useTabbableModeSet.js +85 -1
- package/amd/hooks/PRIVATE_useTabbableModeSet.js.map +1 -1
- package/amd/hooks/UNSAFE_useActionable.js +39 -1
- package/amd/hooks/UNSAFE_useActionable.js.map +1 -1
- package/amd/hooks/UNSAFE_useActive.js +83 -1
- package/amd/hooks/UNSAFE_useActive.js.map +1 -1
- package/amd/hooks/UNSAFE_useAnimation.js +11 -1
- package/amd/hooks/UNSAFE_useAnimation.js.map +1 -1
- package/amd/hooks/UNSAFE_useBreakpointValues.js +25 -1
- package/amd/hooks/UNSAFE_useBreakpointValues.js.map +1 -1
- package/amd/hooks/UNSAFE_useBreakpoints.js +52 -1
- package/amd/hooks/UNSAFE_useBreakpoints.js.map +1 -1
- package/amd/hooks/UNSAFE_useClearIcon.js +22 -1
- package/amd/hooks/UNSAFE_useClearIcon.js.map +1 -1
- package/amd/hooks/UNSAFE_useColorScheme.js +28 -1
- package/amd/hooks/UNSAFE_useColorScheme.js.map +1 -1
- package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +23 -1
- package/amd/hooks/UNSAFE_useContainerBreakpointValues.js.map +1 -1
- package/amd/hooks/UNSAFE_useContainerBreakpoints.js +45 -1
- package/amd/hooks/UNSAFE_useContainerBreakpoints.js.map +1 -1
- package/amd/hooks/UNSAFE_useCurrentValueReducer.js +60 -1
- package/amd/hooks/UNSAFE_useCurrentValueReducer.js.map +1 -1
- package/amd/hooks/UNSAFE_useDebounce.js +46 -1
- package/amd/hooks/UNSAFE_useDebounce.js.map +1 -1
- package/amd/hooks/UNSAFE_useFloating.js +20 -1
- package/amd/hooks/UNSAFE_useFloating.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocus.js +35 -1
- package/amd/hooks/UNSAFE_useFocus.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocusWithin.js +11 -1
- package/amd/hooks/UNSAFE_useFocusWithin.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocusableTextField.js +68 -1
- package/amd/hooks/UNSAFE_useFocusableTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormContext.js +38 -1
- package/amd/hooks/UNSAFE_useFormContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormFieldContext.js +31 -1
- package/amd/hooks/UNSAFE_useFormFieldContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormVariantContext.js +25 -1
- package/amd/hooks/UNSAFE_useFormVariantContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useHover.js +64 -1
- package/amd/hooks/UNSAFE_useHover.js.map +1 -1
- package/amd/hooks/UNSAFE_useId.js +31 -1
- package/amd/hooks/UNSAFE_useId.js.map +1 -1
- package/amd/hooks/UNSAFE_useLengthFilter.js +56 -1
- package/amd/hooks/UNSAFE_useLengthFilter.js.map +1 -1
- package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js +39 -1
- package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js.map +1 -1
- package/amd/hooks/UNSAFE_useLongPress.js +69 -1
- package/amd/hooks/UNSAFE_useLongPress.js.map +1 -1
- package/amd/hooks/UNSAFE_useMessagesContext.js +47 -1
- package/amd/hooks/UNSAFE_useMessagesContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js +54 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js.map +1 -1
- package/amd/hooks/UNSAFE_usePan.js +104 -1
- package/amd/hooks/UNSAFE_usePan.js.map +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +59 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js.map +1 -1
- package/amd/hooks/UNSAFE_usePress.js +153 -1
- package/amd/hooks/UNSAFE_usePress.js.map +1 -1
- package/amd/hooks/UNSAFE_useScale.js +28 -1
- package/amd/hooks/UNSAFE_useScale.js.map +1 -1
- package/amd/hooks/UNSAFE_useSwipe.js +94 -1
- package/amd/hooks/UNSAFE_useSwipe.js.map +1 -1
- package/amd/hooks/UNSAFE_useTabbableMode.js +47 -1
- package/amd/hooks/UNSAFE_useTabbableMode.js.map +1 -1
- package/amd/hooks/UNSAFE_useTap.js +75 -1
- package/amd/hooks/UNSAFE_useTap.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextField.js +97 -1
- package/amd/hooks/UNSAFE_useTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +91 -1
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js.map +1 -1
- package/amd/hooks/UNSAFE_useTheme.js +28 -1
- package/amd/hooks/UNSAFE_useTheme.js.map +1 -1
- package/amd/hooks/UNSAFE_useTimer.js +62 -1
- package/amd/hooks/UNSAFE_useTimer.js.map +1 -1
- package/amd/hooks/UNSAFE_useToggle.js +35 -1
- package/amd/hooks/UNSAFE_useToggle.js.map +1 -1
- package/amd/hooks/UNSAFE_useTooltip.css +5 -4
- package/amd/hooks/UNSAFE_useTooltip.js +350 -1
- package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/amd/hooks/UNSAFE_useTouch.js +35 -1
- package/amd/hooks/UNSAFE_useTouch.js.map +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js +38 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js.map +1 -1
- package/amd/hooks/UNSAFE_useUncontrolledState.js +72 -1
- package/amd/hooks/UNSAFE_useUncontrolledState.js.map +1 -1
- package/amd/hooks/UNSAFE_useUser.js +28 -1
- package/amd/hooks/UNSAFE_useUser.js.map +1 -1
- package/amd/hooks/UNSAFE_useViewportIntersect.js +70 -1
- package/amd/hooks/UNSAFE_useViewportIntersect.js.map +1 -1
- package/amd/index-5920700b.js +76 -0
- package/amd/{index-240ba9ad.js.map → index-5920700b.js.map} +1 -1
- package/amd/index-e9199379.js +1661 -0
- package/amd/index-e9199379.js.map +1 -0
- package/amd/index-f54bad63.js +64 -0
- package/amd/index-f54bad63.js.map +1 -0
- package/amd/keys-a09501ab.js +105 -0
- package/amd/{keys-5d739900.js.map → keys-a09501ab.js.map} +1 -1
- package/amd/listViewSelectionTests-70a5b510.js +1385 -0
- package/amd/listViewSelectionTests-70a5b510.js.map +1 -0
- package/amd/listViewTabbableModeTests-a91e8816.js +112 -0
- package/amd/listViewTabbableModeTests-a91e8816.js.map +1 -0
- package/amd/listViewTestFixtures-98d95a1d.js +46 -0
- package/amd/listViewTestFixtures-98d95a1d.js.map +1 -0
- package/amd/menuTestsUtils-6da02810.js +41 -0
- package/amd/{menuTestsUtils-3cb921bc.js.map → menuTestsUtils-6da02810.js.map} +1 -1
- package/amd/resources/nls/ar/bundle.js +57 -1
- package/amd/resources/nls/ar/bundle.js.map +1 -1
- package/amd/resources/nls/ar-XB/bundle.js +57 -1
- package/amd/resources/nls/ar-XB/bundle.js.map +1 -1
- package/amd/resources/nls/bg/bundle.js +57 -1
- package/amd/resources/nls/bg/bundle.js.map +1 -1
- package/amd/resources/nls/bs/bundle.js +57 -1
- package/amd/resources/nls/bs/bundle.js.map +1 -1
- package/amd/resources/nls/bs-Cyrl/bundle.js +57 -1
- package/amd/resources/nls/bs-Cyrl/bundle.js.map +1 -1
- package/amd/resources/nls/bundle.js +57 -1
- package/amd/resources/nls/bundle.js.map +1 -1
- package/amd/resources/nls/cs/bundle.js +57 -1
- package/amd/resources/nls/cs/bundle.js.map +1 -1
- package/amd/resources/nls/da/bundle.js +57 -1
- package/amd/resources/nls/da/bundle.js.map +1 -1
- package/amd/resources/nls/de/bundle.js +57 -1
- package/amd/resources/nls/de/bundle.js.map +1 -1
- package/amd/resources/nls/el/bundle.js +57 -1
- package/amd/resources/nls/el/bundle.js.map +1 -1
- package/amd/resources/nls/en/bundle.js +57 -1
- package/amd/resources/nls/en/bundle.js.map +1 -1
- package/amd/resources/nls/en-XA/bundle.js +57 -1
- package/amd/resources/nls/en-XA/bundle.js.map +1 -1
- package/amd/resources/nls/en-XC/bundle.js +77 -1
- package/amd/resources/nls/en-XC/bundle.js.map +1 -1
- package/amd/resources/nls/es/bundle.js +57 -1
- package/amd/resources/nls/es/bundle.js.map +1 -1
- package/amd/resources/nls/et/bundle.js +57 -1
- package/amd/resources/nls/et/bundle.js.map +1 -1
- package/amd/resources/nls/fi/bundle.js +57 -1
- package/amd/resources/nls/fi/bundle.js.map +1 -1
- package/amd/resources/nls/fr/bundle.js +57 -1
- package/amd/resources/nls/fr/bundle.js.map +1 -1
- package/amd/resources/nls/fr-CA/bundle.js +57 -1
- package/amd/resources/nls/fr-CA/bundle.js.map +1 -1
- package/amd/resources/nls/he/bundle.js +57 -1
- package/amd/resources/nls/he/bundle.js.map +1 -1
- package/amd/resources/nls/hr/bundle.js +57 -1
- package/amd/resources/nls/hr/bundle.js.map +1 -1
- package/amd/resources/nls/hu/bundle.js +57 -1
- package/amd/resources/nls/hu/bundle.js.map +1 -1
- package/amd/resources/nls/is/bundle.js +57 -1
- package/amd/resources/nls/is/bundle.js.map +1 -1
- package/amd/resources/nls/it/bundle.js +57 -1
- package/amd/resources/nls/it/bundle.js.map +1 -1
- package/amd/resources/nls/ja/bundle.js +57 -1
- package/amd/resources/nls/ja/bundle.js.map +1 -1
- package/amd/resources/nls/ko/bundle.js +57 -1
- package/amd/resources/nls/ko/bundle.js.map +1 -1
- package/amd/resources/nls/lt/bundle.js +57 -1
- package/amd/resources/nls/lt/bundle.js.map +1 -1
- package/amd/resources/nls/lv/bundle.js +57 -1
- package/amd/resources/nls/lv/bundle.js.map +1 -1
- package/amd/resources/nls/ms/bundle.js +57 -1
- package/amd/resources/nls/ms/bundle.js.map +1 -1
- package/amd/resources/nls/nl/bundle.js +57 -1
- package/amd/resources/nls/nl/bundle.js.map +1 -1
- package/amd/resources/nls/no/bundle.js +57 -1
- package/amd/resources/nls/no/bundle.js.map +1 -1
- package/amd/resources/nls/pl/bundle.js +57 -1
- package/amd/resources/nls/pl/bundle.js.map +1 -1
- package/amd/resources/nls/pt/bundle.js +57 -1
- package/amd/resources/nls/pt/bundle.js.map +1 -1
- package/amd/resources/nls/pt-PT/bundle.js +57 -1
- package/amd/resources/nls/pt-PT/bundle.js.map +1 -1
- package/amd/resources/nls/ro/bundle.js +57 -1
- package/amd/resources/nls/ro/bundle.js.map +1 -1
- package/amd/resources/nls/ru/bundle.js +57 -1
- package/amd/resources/nls/ru/bundle.js.map +1 -1
- package/amd/resources/nls/sk/bundle.js +57 -1
- package/amd/resources/nls/sk/bundle.js.map +1 -1
- package/amd/resources/nls/sl/bundle.js +57 -1
- package/amd/resources/nls/sl/bundle.js.map +1 -1
- package/amd/resources/nls/sr/bundle.js +57 -1
- package/amd/resources/nls/sr/bundle.js.map +1 -1
- package/amd/resources/nls/sr-Latn/bundle.js +57 -1
- package/amd/resources/nls/sr-Latn/bundle.js.map +1 -1
- package/amd/resources/nls/supportedLocales.js +57 -1
- package/amd/resources/nls/supportedLocales.js.map +1 -1
- package/amd/resources/nls/sv/bundle.js +57 -1
- package/amd/resources/nls/sv/bundle.js.map +1 -1
- package/amd/resources/nls/th/bundle.js +57 -1
- package/amd/resources/nls/th/bundle.js.map +1 -1
- package/amd/resources/nls/tr/bundle.js +57 -1
- package/amd/resources/nls/tr/bundle.js.map +1 -1
- package/amd/resources/nls/uk/bundle.js +57 -1
- package/amd/resources/nls/uk/bundle.js.map +1 -1
- package/amd/resources/nls/vi/bundle.js +57 -1
- package/amd/resources/nls/vi/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hans/bundle.js +57 -1
- package/amd/resources/nls/zh-Hans/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hant/bundle.js +57 -1
- package/amd/resources/nls/zh-Hant/bundle.js.map +1 -1
- package/amd/stringUtils-9311a716.js +92 -0
- package/amd/{stringUtils-20539320.js.map → stringUtils-9311a716.js.map} +1 -1
- package/amd/testHelpers-9267074b.js +37 -0
- package/amd/{testHelpers-e493dca7.js.map → testHelpers-9267074b.js.map} +1 -1
- package/amd/translationBundle.js +73 -1
- package/amd/translationBundle.js.map +1 -1
- package/amd/tslib.es6-71b1ba5b.js +437 -0
- package/amd/tslib.es6-71b1ba5b.js.map +1 -0
- package/amd/useAnimation-2f572e0c.js +247 -0
- package/amd/{useAnimation-065d8744.js.map → useAnimation-2f572e0c.js.map} +1 -1
- package/amd/useFocusWithin-a88e3e32.js +50 -0
- package/amd/{useFocusWithin-b98535ba.js.map → useFocusWithin-a88e3e32.js.map} +1 -1
- package/amd/useSingleSelection-7081cc84.js +43 -0
- package/amd/{useSingleSelection-b898433f.js.map → useSingleSelection-7081cc84.js.map} +1 -1
- package/amd/utils/PRIVATE_clientHints.js +11 -1
- package/amd/utils/PRIVATE_clientHints.js.map +1 -1
- package/amd/utils/PRIVATE_collectionUtils.js +83 -1
- package/amd/utils/PRIVATE_collectionUtils.js.map +1 -1
- package/amd/utils/PRIVATE_dvtTestUtils.js +77 -1
- package/amd/utils/PRIVATE_dvtTestUtils.js.map +1 -1
- package/amd/utils/PRIVATE_floatingUtils.js +70 -1
- package/amd/utils/PRIVATE_floatingUtils.js.map +1 -1
- package/amd/utils/PRIVATE_meterUtils.js +340 -1
- package/amd/utils/PRIVATE_meterUtils.js.map +1 -1
- package/amd/utils/PRIVATE_refUtils.js +38 -1
- package/amd/utils/PRIVATE_refUtils.js.map +1 -1
- package/amd/utils/PRIVATE_tabbableUtils.js +669 -1
- package/amd/utils/PRIVATE_tabbableUtils.js.map +1 -1
- package/amd/utils/PRIVATE_timer.js +101 -1
- package/amd/utils/PRIVATE_timer.js.map +1 -1
- package/amd/utils/UNSAFE_arrayUtils.js +28 -1
- package/amd/utils/UNSAFE_arrayUtils.js.map +1 -1
- package/amd/utils/UNSAFE_attributeUtils.js +13 -1
- package/amd/utils/UNSAFE_attributeUtils.js.map +1 -1
- package/amd/utils/UNSAFE_classNames.js +11 -1
- package/amd/utils/UNSAFE_classNames.js.map +1 -1
- package/amd/utils/UNSAFE_componentUtils.js +32 -1
- package/amd/utils/UNSAFE_componentUtils.js.map +1 -1
- package/amd/utils/UNSAFE_dataProvider.js +21 -1
- package/amd/utils/UNSAFE_dataProvider.js.map +1 -1
- package/amd/utils/UNSAFE_filePickerUtils.js +37 -1
- package/amd/utils/UNSAFE_filePickerUtils.js.map +1 -1
- package/amd/utils/UNSAFE_getLocale.js +33 -1
- package/amd/utils/UNSAFE_getLocale.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/aria.js +22 -1
- package/amd/utils/UNSAFE_interpolations/aria.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/borders.js +42 -1
- package/amd/utils/UNSAFE_interpolations/borders.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.css +16 -15
- package/amd/utils/UNSAFE_interpolations/boxalignment.js +62 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/colors.js +22 -1
- package/amd/utils/UNSAFE_interpolations/colors.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/dimensions.js +89 -1
- package/amd/utils/UNSAFE_interpolations/dimensions.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/flexbox.css +8 -7
- package/amd/utils/UNSAFE_interpolations/flexbox.js +14 -1
- package/amd/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/flexitem.css +8 -7
- package/amd/utils/UNSAFE_interpolations/flexitem.js +13 -1
- package/amd/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/grid.js +22 -1
- package/amd/utils/UNSAFE_interpolations/grid.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/griditem.js +17 -1
- package/amd/utils/UNSAFE_interpolations/griditem.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/padding.js +50 -1
- package/amd/utils/UNSAFE_interpolations/padding.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/text.css +4 -3
- package/amd/utils/UNSAFE_interpolations/text.js +29 -1
- package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/amd/utils/UNSAFE_keys.js +80 -1
- package/amd/utils/UNSAFE_keys.js.map +1 -1
- package/amd/utils/UNSAFE_lengthFilter.js +71 -1
- package/amd/utils/UNSAFE_lengthFilter.js.map +1 -1
- package/amd/utils/UNSAFE_logger.js +64 -1
- package/amd/utils/UNSAFE_logger.js.map +1 -1
- package/amd/utils/UNSAFE_matchTranslationBundle.js +57 -1
- package/amd/utils/UNSAFE_matchTranslationBundle.js.map +1 -1
- package/amd/utils/UNSAFE_mergeInterpolations.js +111 -1
- package/amd/utils/UNSAFE_mergeInterpolations.js.map +1 -1
- package/amd/utils/UNSAFE_mergeProps.js +91 -1
- package/amd/utils/UNSAFE_mergeProps.js.map +1 -1
- package/amd/utils/UNSAFE_meterTypes.js +13 -1
- package/amd/utils/UNSAFE_meterTypes.js.map +1 -1
- package/amd/utils/UNSAFE_roles.js +107 -1
- package/amd/utils/UNSAFE_roles.js.map +1 -1
- package/amd/utils/UNSAFE_selectUtils.js +13 -1
- package/amd/utils/UNSAFE_selectUtils.js.map +1 -1
- package/amd/utils/UNSAFE_size.js +53 -1
- package/amd/utils/UNSAFE_size.js.map +1 -1
- package/amd/utils/UNSAFE_soundUtils.js +98 -1
- package/amd/utils/UNSAFE_soundUtils.js.map +1 -1
- package/amd/utils/UNSAFE_stringUtils.js +21 -1
- package/amd/utils/UNSAFE_stringUtils.js.map +1 -1
- package/amd/utils/UNSAFE_typeUtils.js +7 -1
- package/amd/utils/UNSAFE_typeUtils.js.map +1 -1
- package/amd/utils/UNSAFE_units.js +22 -1
- package/amd/utils/UNSAFE_units.js.map +1 -1
- package/amd/utils/UNSAFE_valueUpdateDetail.js +7 -1
- package/amd/utils/UNSAFE_valueUpdateDetail.js.map +1 -1
- package/cjs/{Badge-1a50236d.js → Badge-a39fc1b1.js} +16 -16
- package/{amd/Badge-7df5d353.js.map → cjs/Badge-a39fc1b1.js.map} +1 -1
- package/cjs/{BaseButton-a7469a04.js → BaseButton-15adcc04.js} +20 -20
- package/cjs/{BaseButton-a7469a04.js.map → BaseButton-15adcc04.js.map} +1 -1
- package/cjs/{Button-fe2eda28.js → Button-6d645302.js} +13 -13
- package/{amd/Button-d575f4d8.js.map → cjs/Button-6d645302.js.map} +1 -1
- package/cjs/{Chip-949fdcd8.js → Chip-a6ecbefc.js} +10 -10
- package/{amd/Chip-c048386f.js.map → cjs/Chip-a6ecbefc.js.map} +1 -1
- package/cjs/{ClearIcon-d2568f59.js → ClearIcon-f04de939.js} +3 -3
- package/cjs/{ClearIcon-d2568f59.js.map → ClearIcon-f04de939.js.map} +1 -1
- package/cjs/{Collection-7aa184ad.js → Collection-134eaf28.js} +2 -2
- package/cjs/{Collection-7aa184ad.js.map → Collection-134eaf28.js.map} +1 -1
- package/cjs/{ComponentMessage-edb9431f.js → ComponentMessage-d765b28b.js} +8 -8
- package/cjs/{ComponentMessage-edb9431f.js.map → ComponentMessage-d765b28b.js.map} +1 -1
- package/cjs/{ComponentMessageContainer-98b5b547.js → ComponentMessageContainer-c0c21e1b.js} +5 -5
- package/{amd/ComponentMessageContainer-b043c5d9.js.map → cjs/ComponentMessageContainer-c0c21e1b.js.map} +1 -1
- package/cjs/{Divider-571316d9.js → Divider-2042aba9.js} +3 -3
- package/cjs/{Divider-571316d9.js.map → Divider-2042aba9.js.map} +1 -1
- package/cjs/{FilePicker-cbd0e4cc.js → FilePicker-d7a4de7a.js} +14 -14
- package/cjs/{FilePicker-cbd0e4cc.js.map → FilePicker-d7a4de7a.js.map} +1 -1
- package/cjs/{Flex-3e823e4a.js → Flex-260323e0.js} +8 -8
- package/cjs/{Flex-3e823e4a.js.map → Flex-260323e0.js.map} +1 -1
- package/cjs/{Floating-352d2eef.js → Floating-d2046aed.js} +3 -3
- package/cjs/{Floating-352d2eef.js.map → Floating-d2046aed.js.map} +1 -1
- package/cjs/{FocusTrap-22021a72.js → FocusTrap-df4bf064.js} +5 -5
- package/cjs/{FocusTrap-22021a72.js.map → FocusTrap-df4bf064.js.map} +1 -1
- package/cjs/{FormControlUtils-ff896d1e.js → FormControlUtils-c6a4dc4b.js} +5 -5
- package/cjs/{FormControlUtils-ff896d1e.js.map → FormControlUtils-c6a4dc4b.js.map} +1 -1
- package/cjs/{Heading-47e8471e.js → Heading-aa545fbc.js} +13 -13
- package/cjs/{Heading-47e8471e.js.map → Heading-aa545fbc.js.map} +1 -1
- package/cjs/{HiddenAccessible-698c629c.js → HiddenAccessible-f8c4113f.js} +3 -3
- package/cjs/{HiddenAccessible-698c629c.js.map → HiddenAccessible-f8c4113f.js.map} +1 -1
- package/cjs/{HighlightText-7dd1e9d4.js → HighlightText-10042675.js} +3 -3
- package/{amd/HighlightText-794dd54c.js.map → cjs/HighlightText-10042675.js.map} +1 -1
- package/cjs/{Icon-d2d443ea.js → Icon-742d4479.js} +25 -25
- package/cjs/{Icon-d2d443ea.js.map → Icon-742d4479.js.map} +1 -1
- package/cjs/{Indexer-4fd3e879.js → Indexer-0c98d91e.js} +16 -16
- package/cjs/{Indexer-4fd3e879.js.map → Indexer-0c98d91e.js.map} +1 -1
- package/cjs/{InlineHelpSource-b73646cf.js → InlineHelpSource-e98e803d.js} +3 -3
- package/cjs/{InlineHelpSource-b73646cf.js.map → InlineHelpSource-e98e803d.js.map} +1 -1
- package/cjs/{Link-7e0f7f49.js → Link-a955e5a1.js} +8 -8
- package/{amd/Link-f71fccc3.js.map → cjs/Link-a955e5a1.js.map} +1 -1
- package/cjs/{List-afdab8b8.js → List-d9e06dfd.js} +23 -23
- package/cjs/{List-afdab8b8.js.map → List-d9e06dfd.js.map} +1 -1
- package/cjs/{ListItemTextLayout-a0c3c5dc.js → ListItemTextLayout-7fefca37.js} +13 -13
- package/cjs/{ListItemTextLayout-a0c3c5dc.js.map → ListItemTextLayout-7fefca37.js.map} +1 -1
- package/cjs/{ListView-4fe91bd5.js → ListView-05ed6c8a.js} +3 -3
- package/cjs/{ListView-4fe91bd5.js.map → ListView-05ed6c8a.js.map} +1 -1
- package/cjs/{LoadMoreCollection-7aca80bb.js → LoadMoreCollection-9479dcd1.js} +3 -3
- package/cjs/{LoadMoreCollection-7aca80bb.js.map → LoadMoreCollection-9479dcd1.js.map} +1 -1
- package/cjs/{Menu-3ad53e2f.js → Menu-7a63d78b.js} +6 -6
- package/cjs/{Menu-3ad53e2f.js.map → Menu-7a63d78b.js.map} +1 -1
- package/cjs/{MenuDivider-6e7971f4.js → MenuDivider-164b9d81.js} +4 -4
- package/cjs/{MenuDivider-6e7971f4.js.map → MenuDivider-164b9d81.js.map} +1 -1
- package/cjs/{MenuItem-be81d53a.js → MenuItem-068e6546.js} +19 -19
- package/cjs/{MenuItem-be81d53a.js.map → MenuItem-068e6546.js.map} +1 -1
- package/cjs/{Message.types-ddbcc21d.js → Message.types-cb49247a.js} +2 -2
- package/cjs/{Message.types-ddbcc21d.js.map → Message.types-cb49247a.js.map} +1 -1
- package/cjs/{MessageCloseButton-a573c580.js → MessageCloseButton-a8d04f54.js} +9 -9
- package/{amd/MessageCloseButton-970cbd82.js.map → cjs/MessageCloseButton-a8d04f54.js.map} +1 -1
- package/cjs/{MessageDetail-1092a279.js → MessageDetail-ccca445b.js} +7 -7
- package/cjs/{MessageDetail-1092a279.js.map → MessageDetail-ccca445b.js.map} +1 -1
- package/cjs/{MessageFormattingUtils-2066d2ea.js → MessageFormattingUtils-221fcd80.js} +4 -4
- package/cjs/{MessageFormattingUtils-2066d2ea.js.map → MessageFormattingUtils-221fcd80.js.map} +1 -1
- package/cjs/{MessageLayer-dee665ae.js → MessageLayer-b1319d82.js} +11 -11
- package/cjs/{MessageLayer-dee665ae.js.map → MessageLayer-b1319d82.js.map} +1 -1
- package/cjs/{MessageStartIcon-83a9938c.js → MessageStartIcon-b8097181.js} +11 -11
- package/cjs/{MessageStartIcon-83a9938c.js.map → MessageStartIcon-b8097181.js.map} +1 -1
- package/cjs/{MessageSummary-67d38d78.js → MessageSummary-3f9315a9.js} +7 -7
- package/cjs/{MessageSummary-67d38d78.js.map → MessageSummary-3f9315a9.js.map} +1 -1
- package/cjs/{MessageTimestamp-2d917659.js → MessageTimestamp-d54dc4a3.js} +5 -5
- package/cjs/{MessageTimestamp-2d917659.js.map → MessageTimestamp-d54dc4a3.js.map} +1 -1
- package/cjs/{MessageToast-f3a495ed.js → MessageToast-ac565264.js} +9 -9
- package/cjs/{MessageToast-f3a495ed.js.map → MessageToast-ac565264.js.map} +1 -1
- package/cjs/{MessageUtils-8fbe3fc6.js → MessageUtils-3dcdf495.js} +3 -3
- package/cjs/{MessageUtils-8fbe3fc6.js.map → MessageUtils-3dcdf495.js.map} +1 -1
- package/cjs/{MessagesManager-019ae0ac.js → MessagesManager-c3a0893a.js} +4 -4
- package/cjs/{MessagesManager-019ae0ac.js.map → MessagesManager-c3a0893a.js.map} +1 -1
- package/cjs/{MeterCircle-77a4b612.js → MeterCircle-7ec0b5f5.js} +50 -50
- package/cjs/{MeterCircle-77a4b612.js.map → MeterCircle-7ec0b5f5.js.map} +1 -1
- package/cjs/{Modal-4bbcce08.js → Modal-0c4cc690.js} +6 -6
- package/cjs/{Modal-4bbcce08.js.map → Modal-0c4cc690.js.map} +1 -1
- package/cjs/{NumberInputText-f2a3f0b0.js → NumberInputText-40fe1cbf.js} +7 -7
- package/cjs/{NumberInputText-f2a3f0b0.js.map → NumberInputText-40fe1cbf.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-90c37b56.js → ReadonlyTextFieldInput-45dae724.js} +13 -13
- package/cjs/{ReadonlyTextFieldInput-90c37b56.js.map → ReadonlyTextFieldInput-45dae724.js.map} +1 -1
- package/cjs/{SelectMenuItem-8ce75f85.js → SelectMenuItem-fa0edf72.js} +5 -5
- package/cjs/{SelectMenuItem-8ce75f85.js.map → SelectMenuItem-fa0edf72.js.map} +1 -1
- package/cjs/{SelectMultiple-636bcdfc.js → SelectMultiple-c809adb7.js} +8 -8
- package/cjs/{SelectMultiple-636bcdfc.js.map → SelectMultiple-c809adb7.js.map} +1 -1
- package/cjs/{SelectSingle-4ed70f53.js → SelectSingle-e7cd9118.js} +4 -4
- package/cjs/{SelectSingle-4ed70f53.js.map → SelectSingle-e7cd9118.js.map} +1 -1
- package/cjs/{Skeleton-e4dc6f1a.js → Skeleton-f60eec1f.js} +5 -5
- package/cjs/{Skeleton-e4dc6f1a.js.map → Skeleton-f60eec1f.js.map} +1 -1
- package/cjs/{Spacer-c769293a.js → Spacer-f9d398f3.js} +4 -4
- package/cjs/{Spacer-c769293a.js.map → Spacer-f9d398f3.js.map} +1 -1
- package/cjs/{SplitMenuButton-696a5071.js → SplitMenuButton-f67550f5.js} +14 -14
- package/cjs/{SplitMenuButton-696a5071.js.map → SplitMenuButton-f67550f5.js.map} +1 -1
- package/cjs/{Text-ec8edbaf.js → Text-4f2d62c9.js} +28 -28
- package/cjs/{Text-ec8edbaf.js.map → Text-4f2d62c9.js.map} +1 -1
- package/cjs/{TextArea-42c1ea95.js → TextArea-e12574f9.js} +8 -8
- package/cjs/{TextArea-42c1ea95.js.map → TextArea-e12574f9.js.map} +1 -1
- package/cjs/{TextAreaAutosize-c845f889.js → TextAreaAutosize-c0bf9ebd.js} +5 -5
- package/cjs/{TextAreaAutosize-c845f889.js.map → TextAreaAutosize-c0bf9ebd.js.map} +1 -1
- package/cjs/{TextFieldInput-fb294714.js → TextFieldInput-f2f3f0a0.js} +33 -33
- package/{amd/TextFieldInput-58386f8e.js.map → cjs/TextFieldInput-f2f3f0a0.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-b3aee9b7.js → VirtualizedCollection-b345dec7.js} +3 -3
- package/cjs/{VirtualizedCollection-b3aee9b7.js.map → VirtualizedCollection-b345dec7.js.map} +1 -1
- package/cjs/{VirtualizedListView-6be610ef.js → VirtualizedListView-b13ea090.js} +3 -3
- package/cjs/{VirtualizedListView-6be610ef.js.map → VirtualizedListView-b13ea090.js.map} +1 -1
- package/cjs/{_curry1-0c9936f9.js → _curry1-8d2120e1.js} +2 -2
- package/cjs/{_curry1-0c9936f9.js.map → _curry1-8d2120e1.js.map} +1 -1
- package/cjs/{_curry2-cd666c1c.js → _curry2-e0541fa2.js} +3 -3
- package/cjs/{_curry2-cd666c1c.js.map → _curry2-e0541fa2.js.map} +1 -1
- package/cjs/{_curry3-5001f5b3.js → _curry3-4bf8f0ff.js} +4 -4
- package/cjs/{_curry3-5001f5b3.js.map → _curry3-4bf8f0ff.js.map} +1 -1
- package/cjs/{_has-67d1725c.js → _has-0c6632fb.js} +3 -3
- package/cjs/{_has-67d1725c.js.map → _has-0c6632fb.js.map} +1 -1
- package/cjs/{classNames-7f10ee6a.js → classNames-da349ca2.js} +2 -2
- package/cjs/{classNames-7f10ee6a.js.map → classNames-da349ca2.js.map} +1 -1
- package/cjs/{clientHints-1a5d69e6.js → clientHints-1ea8f1df.js} +2 -2
- package/cjs/{clientHints-1a5d69e6.js.map → clientHints-1ea8f1df.js.map} +1 -1
- package/cjs/{flexbox-d6c296f0.js → flexbox-f40d228f.js} +10 -10
- package/cjs/{flexbox-d6c296f0.js.map → flexbox-f40d228f.js.map} +1 -1
- package/cjs/{flexitem-f934b7ce.js → flexitem-540999d4.js} +10 -10
- package/cjs/{flexitem-f934b7ce.js.map → flexitem-540999d4.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-5601d484.js → index-1a8d3228.js} +2 -2
- package/cjs/{index-5601d484.js.map → index-1a8d3228.js.map} +1 -1
- package/cjs/{index-49c3372d.js → index-6cd66e43.js} +3 -3
- package/cjs/{index-49c3372d.js.map → index-6cd66e43.js.map} +1 -1
- package/cjs/{index-7d98bcb4.js → index-f35479e8.js} +3 -3
- package/cjs/{index-7d98bcb4.js.map → index-f35479e8.js.map} +1 -1
- package/cjs/{keys-c0dcee39.js → keys-dcecff11.js} +4 -4
- package/cjs/{keys-c0dcee39.js.map → keys-dcecff11.js.map} +1 -1
- package/cjs/{listViewSelectionTests-0e48455f.js → listViewSelectionTests-8543d0be.js} +4 -4
- package/cjs/{listViewSelectionTests-0e48455f.js.map → listViewSelectionTests-8543d0be.js.map} +1 -1
- package/cjs/{listViewTabbableModeTests-475ba9ae.js → listViewTabbableModeTests-088e3919.js} +4 -4
- package/cjs/{listViewTabbableModeTests-475ba9ae.js.map → listViewTabbableModeTests-088e3919.js.map} +1 -1
- package/cjs/{listViewTestFixtures-f73dc9c2.js → listViewTestFixtures-78bedae0.js} +2 -2
- package/cjs/{listViewTestFixtures-f73dc9c2.js.map → listViewTestFixtures-78bedae0.js.map} +1 -1
- package/cjs/{menuTestsUtils-70699c8c.js → menuTestsUtils-216ea1a0.js} +2 -2
- package/cjs/{menuTestsUtils-70699c8c.js.map → menuTestsUtils-216ea1a0.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-2df763ee.js → stringUtils-4323b5f4.js} +2 -2
- package/cjs/{stringUtils-2df763ee.js.map → stringUtils-4323b5f4.js.map} +1 -1
- package/cjs/{testHelpers-b389d520.js → testHelpers-6f2545dd.js} +2 -2
- package/cjs/{testHelpers-b389d520.js.map → testHelpers-6f2545dd.js.map} +1 -1
- package/cjs/translationBundle.js +1 -1
- package/cjs/{tslib.es6-d16792a7.js → tslib.es6-cd419f8d.js} +2 -2
- package/cjs/{tslib.es6-d16792a7.js.map → tslib.es6-cd419f8d.js.map} +1 -1
- package/cjs/{useAnimation-5f1b45bd.js → useAnimation-64f648d2.js} +3 -3
- package/cjs/{useAnimation-5f1b45bd.js.map → useAnimation-64f648d2.js.map} +1 -1
- package/cjs/{useFocusWithin-aa648c4c.js → useFocusWithin-4b3e579b.js} +2 -2
- package/cjs/{useFocusWithin-aa648c4c.js.map → useFocusWithin-4b3e579b.js.map} +1 -1
- package/cjs/{useSingleSelection-c7fcf820.js → useSingleSelection-e0d38657.js} +2 -2
- package/cjs/{useSingleSelection-c7fcf820.js.map → useSingleSelection-e0d38657.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-8647cedc.js → ClearIcon-82a14f55.js} +3 -3
- package/es/{ClearIcon-8647cedc.js.map → ClearIcon-82a14f55.js.map} +1 -1
- package/es/{LoadMoreCollection-ce6bdad0.js → LoadMoreCollection-f47b4050.js} +2 -2
- package/es/{LoadMoreCollection-ce6bdad0.js.map → LoadMoreCollection-f47b4050.js.map} +1 -1
- package/es/PRIVATE_Collection.js +1 -1
- package/es/PRIVATE_List.css +18 -17
- package/es/PRIVATE_List.js +24 -24
- package/es/PRIVATE_List.js.map +1 -1
- package/es/PRIVATE_Message.css +35 -34
- package/es/PRIVATE_Message.js +35 -35
- package/es/PRIVATE_Message.js.map +1 -1
- package/es/PRIVATE_MessageLayer.css +8 -7
- 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 +19 -18
- 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 +2 -1
- package/es/UNSAFE_AspectRatio.js +7 -7
- package/es/UNSAFE_AspectRatio.js.map +1 -1
- package/es/UNSAFE_Avatar.css +9 -8
- package/es/UNSAFE_Avatar.js +10 -10
- package/es/UNSAFE_Avatar.js.map +1 -1
- package/es/UNSAFE_Badge.css +14 -13
- package/es/UNSAFE_Badge.js +14 -14
- package/es/UNSAFE_Badge.js.map +1 -1
- package/es/UNSAFE_BaseButton.css +16 -15
- package/es/UNSAFE_BaseButton.js +21 -21
- package/es/UNSAFE_BaseButton.js.map +1 -1
- package/es/UNSAFE_Button.css +9 -8
- 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 +8 -7
- package/es/UNSAFE_Chip.js +8 -8
- package/es/UNSAFE_Chip.js.map +1 -1
- package/es/UNSAFE_Collapsible.css +10 -9
- 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 +4 -3
- package/es/UNSAFE_ComponentMessage.js +10 -10
- package/es/UNSAFE_ComponentMessage.js.map +1 -1
- package/es/UNSAFE_Divider.css +2 -1
- 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 +7 -6
- package/es/UNSAFE_FilePicker.js +13 -13
- package/es/UNSAFE_FilePicker.js.map +1 -1
- package/es/UNSAFE_Flex.css +3 -2
- 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 +4 -3
- package/es/UNSAFE_FocusTrap.js +6 -6
- package/es/UNSAFE_FocusTrap.js.map +1 -1
- package/es/UNSAFE_Grid.css +2 -1
- package/es/UNSAFE_Grid.js +8 -8
- package/es/UNSAFE_Grid.js.map +1 -1
- package/es/UNSAFE_Heading.css +10 -9
- package/es/UNSAFE_Heading.js +16 -16
- package/es/UNSAFE_Heading.js.map +1 -1
- package/es/UNSAFE_HiddenAccessible.css +2 -1
- package/es/UNSAFE_HiddenAccessible.js +2 -2
- package/es/UNSAFE_HiddenAccessible.js.map +1 -1
- package/es/UNSAFE_HighlightText.css +2 -1
- package/es/UNSAFE_HighlightText.js +2 -2
- package/es/UNSAFE_HighlightText.js.map +1 -1
- package/es/UNSAFE_Icon.css +22 -21
- 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 +9 -8
- package/es/UNSAFE_Indexer.js +15 -15
- package/es/UNSAFE_Indexer.js.map +1 -1
- package/es/UNSAFE_InputPassword.css +2 -1
- package/es/UNSAFE_InputPassword.js +10 -10
- package/es/UNSAFE_InputText.css +2 -1
- package/es/UNSAFE_InputText.js +9 -9
- package/es/UNSAFE_Label.css +14 -13
- package/es/UNSAFE_Label.js +15 -15
- package/es/UNSAFE_Label.js.map +1 -1
- package/es/UNSAFE_LabelValueLayout.css +10 -9
- 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 +6 -5
- package/es/UNSAFE_Link.js +6 -6
- package/es/UNSAFE_Link.js.map +1 -1
- package/es/UNSAFE_ListItemLayout.css +11 -10
- 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 +2 -1
- 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 +20 -19
- 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 +2 -1
- package/es/UNSAFE_MessageToast.js +9 -9
- package/es/UNSAFE_MeterBar.css +46 -45
- package/es/UNSAFE_MeterBar.js +46 -46
- package/es/UNSAFE_MeterBar.js.map +1 -1
- package/es/UNSAFE_MeterCircle.css +48 -47
- package/es/UNSAFE_MeterCircle.js +49 -49
- package/es/UNSAFE_MeterCircle.js.map +1 -1
- package/es/UNSAFE_Modal.css +6 -5
- package/es/UNSAFE_Modal.js +7 -7
- package/es/UNSAFE_NumberInputText.js +8 -8
- package/es/UNSAFE_PrefixSuffix.css +9 -8
- package/es/UNSAFE_PrefixSuffix.js +9 -9
- package/es/UNSAFE_PrefixSuffix.js.map +1 -1
- package/es/UNSAFE_ProgressBar.css +7 -6
- package/es/UNSAFE_ProgressBar.js +8 -8
- package/es/UNSAFE_ProgressBar.js.map +1 -1
- package/es/UNSAFE_ProgressCircle.css +7 -6
- package/es/UNSAFE_ProgressCircle.js +8 -8
- package/es/UNSAFE_ProgressCircle.js.map +1 -1
- package/es/UNSAFE_RatingGauge.css +23 -22
- package/es/UNSAFE_RatingGauge.js +23 -23
- package/es/UNSAFE_RatingGauge.js.map +1 -1
- package/es/UNSAFE_SelectMultiple.css +2 -1
- 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 +6 -5
- package/es/UNSAFE_Selector.js +13 -13
- package/es/UNSAFE_Selector.js.map +1 -1
- package/es/UNSAFE_Skeleton.css +2 -1
- package/es/UNSAFE_Skeleton.js +7 -7
- package/es/UNSAFE_Spacer.js +7 -7
- package/es/UNSAFE_SplitMenuButton.css +6 -5
- package/es/UNSAFE_SplitMenuButton.js +12 -12
- package/es/UNSAFE_SplitMenuButton.js.map +1 -1
- package/es/UNSAFE_Text.css +26 -25
- package/es/UNSAFE_Text.js +31 -31
- package/es/UNSAFE_Text.js.map +1 -1
- package/es/UNSAFE_TextArea.css +4 -3
- 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 +63 -62
- 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 +12 -11
- 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-07944d69.js → _curry1-dfb64835.js} +2 -2
- package/es/{_curry1-07944d69.js.map → _curry1-dfb64835.js.map} +1 -1
- package/es/{_curry2-a84d0826.js → _curry2-b60c1ab2.js} +3 -3
- package/es/{_curry2-a84d0826.js.map → _curry2-b60c1ab2.js.map} +1 -1
- package/es/{_curry3-7e80cbe7.js → _curry3-645b514e.js} +4 -4
- package/es/{_curry3-7e80cbe7.js.map → _curry3-645b514e.js.map} +1 -1
- package/es/{_has-cac81ad0.js → _has-47f27295.js} +3 -3
- package/es/{_has-cac81ad0.js.map → _has-47f27295.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 +5 -4
- 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-49eb48c8.js → index-4d0e7777.js} +2 -2
- package/es/{index-49eb48c8.js.map → index-4d0e7777.js.map} +1 -1
- package/es/{keys-5f7fd29a.js → keys-1907eb95.js} +4 -4
- package/es/{keys-5f7fd29a.js.map → keys-1907eb95.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-42f43b8d.js → tslib.es6-bf96b795.js} +2 -2
- package/es/{tslib.es6-42f43b8d.js.map → tslib.es6-bf96b795.js.map} +1 -1
- package/es/{useSingleSelection-c9db212f.js → useSingleSelection-8eaee995.js} +2 -2
- package/es/{useSingleSelection-c9db212f.js.map → useSingleSelection-8eaee995.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 +16 -15
- 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 +8 -7
- 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 +8 -7
- 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 +4 -3
- 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-7df5d353.js +0 -2
- package/amd/BaseButton-7b3d7ae3.js +0 -2
- package/amd/Button-d575f4d8.js +0 -2
- package/amd/Chip-c048386f.js +0 -2
- package/amd/ClearIcon-758f35e3.js +0 -2
- package/amd/Collection-25c13095.js +0 -2
- package/amd/ComponentMessage-e718a00c.js +0 -2
- package/amd/ComponentMessageContainer-b043c5d9.js +0 -2
- package/amd/Divider-0e4c5047.js +0 -2
- package/amd/FilePicker-89374ddb.js +0 -2
- package/amd/Flex-95e67964.js +0 -2
- package/amd/Floating-d29f2f68.js +0 -2
- package/amd/FocusTrap-dea153a7.js +0 -2
- package/amd/FormControlUtils-9cd3baeb.js +0 -2
- package/amd/Heading-d20ac2b9.js +0 -2
- package/amd/HiddenAccessible-c8f46f15.js +0 -2
- package/amd/HighlightText-794dd54c.js +0 -2
- package/amd/Icon-f927c830.js +0 -2
- package/amd/Indexer-4d403dee.js +0 -2
- package/amd/InlineHelpSource-513565b7.js +0 -2
- package/amd/Link-f71fccc3.js +0 -2
- package/amd/List-783f42fa.js +0 -2
- package/amd/ListItemTextLayout-4aa65b0a.js +0 -2
- package/amd/ListView-204b0aac.js +0 -2
- package/amd/LoadMoreCollection-b4c4c44b.js +0 -2
- package/amd/Menu-cdfe9d77.js +0 -2
- package/amd/Menu-cdfe9d77.js.map +0 -1
- package/amd/MenuDivider-3a14aef5.js +0 -2
- package/amd/MenuItem-2ab61cb2.js +0 -2
- package/amd/MenuItem-2ab61cb2.js.map +0 -1
- package/amd/Message.types-c19a2d25.js +0 -2
- package/amd/MessageCloseButton-970cbd82.js +0 -2
- package/amd/MessageDetail-ddfaa852.js +0 -2
- package/amd/MessageFormattingUtils-fbc95605.js +0 -2
- package/amd/MessageLayer-a16ace03.js +0 -2
- package/amd/MessageStartIcon-0470534b.js +0 -2
- package/amd/MessageSummary-71773382.js +0 -2
- package/amd/MessageTimestamp-2f08c777.js +0 -2
- package/amd/MessageToast-0e3cd004.js +0 -2
- package/amd/MessageUtils-9295af3b.js +0 -2
- package/amd/MessagesManager-4b874934.js +0 -2
- package/amd/MeterCircle-8a82db8e.js +0 -2
- package/amd/Modal-291735e8.js +0 -2
- package/amd/NumberInputText-ca8f3aea.js +0 -2
- package/amd/ReadonlyTextFieldInput-1d4e73e8.js +0 -2
- package/amd/SelectMenuItem-29376708.js +0 -2
- package/amd/SelectMenuItem-29376708.js.map +0 -1
- package/amd/SelectMultiple-0d654661.js +0 -2
- package/amd/SelectMultiple-0d654661.js.map +0 -1
- package/amd/SelectSingle-057e8208.js +0 -2
- package/amd/SelectSingle-057e8208.js.map +0 -1
- package/amd/Skeleton-31275263.js +0 -2
- package/amd/Spacer-bcde3cb4.js +0 -2
- package/amd/SplitMenuButton-a7f63424.js +0 -2
- package/amd/Text-617f0e96.js +0 -2
- package/amd/TextArea-2017accb.js +0 -2
- package/amd/TextAreaAutosize-7f30edb6.js +0 -2
- package/amd/TextFieldInput-58386f8e.js +0 -2
- package/amd/VirtualizedCollection-5ed8b8e9.js +0 -2
- package/amd/VirtualizedListView-c9cfc1f7.js +0 -2
- package/amd/_curry1-8acb7bd9.js +0 -2
- package/amd/_curry1-8acb7bd9.js.map +0 -1
- package/amd/_curry2-217feee5.js +0 -2
- package/amd/_curry2-217feee5.js.map +0 -1
- package/amd/_curry3-3b4923a5.js +0 -2
- package/amd/_curry3-3b4923a5.js.map +0 -1
- package/amd/_has-eb5860ac.js +0 -2
- package/amd/_has-eb5860ac.js.map +0 -1
- package/amd/classNames-14cea078.js +0 -2
- package/amd/clientHints-4d8618df.js +0 -2
- package/amd/flexbox-341394e6.js +0 -2
- package/amd/flexitem-aacf033d.js +0 -2
- package/amd/index-2155a66c.js +0 -2
- package/amd/index-2155a66c.js.map +0 -1
- package/amd/index-240ba9ad.js +0 -2
- package/amd/index-367c5592.js +0 -2
- package/amd/index-367c5592.js.map +0 -1
- package/amd/keys-5d739900.js +0 -2
- package/amd/listViewSelectionTests-3b8622b2.js +0 -2
- package/amd/listViewSelectionTests-3b8622b2.js.map +0 -1
- package/amd/listViewTabbableModeTests-4b9750a4.js +0 -2
- package/amd/listViewTabbableModeTests-4b9750a4.js.map +0 -1
- package/amd/listViewTestFixtures-423c0431.js +0 -2
- package/amd/listViewTestFixtures-423c0431.js.map +0 -1
- package/amd/menuTestsUtils-3cb921bc.js +0 -2
- package/amd/stringUtils-20539320.js +0 -2
- package/amd/testHelpers-e493dca7.js +0 -2
- package/amd/tslib.es6-10853083.js +0 -2
- package/amd/tslib.es6-10853083.js.map +0 -1
- package/amd/useAnimation-065d8744.js +0 -2
- package/amd/useFocusWithin-b98535ba.js +0 -2
- package/amd/useSingleSelection-b898433f.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePicker-89374ddb.js","sources":["../../src/UNSAFE_FilePicker/FilePickerUtils.tsx","../../src/UNSAFE_FilePicker/postValidationUtils.tsx","../../src/UNSAFE_FilePicker/useFilePickerElement.tsx","../../src/UNSAFE_FilePicker/FilePicker.tsx"],"sourcesContent":["import { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\nimport { Text } from '../UNSAFE_Text';\nimport { Spacer } from '../UNSAFE_Spacer';\nimport { sizeToCSS } from '../utils/UNSAFE_size';\nimport { trim } from '../utils/UNSAFE_stringUtils';\nimport { BundleType } from '../resources/nls/bundle';\n\nimport { FilePicker } from './FilePicker';\n\nimport { JSX, ComponentProps } from 'preact';\n\ntype FilePickerProps = ComponentProps<typeof FilePicker>;\n\n/**\n * Gets the default content of the file picker\n */\nexport const getDefaultTriggerContent = (\n isDisabled: FilePickerProps['isDisabled'],\n primaryText: FilePickerProps['primaryText'],\n secondaryText: FilePickerProps['secondaryText'],\n translations: BundleType,\n selectionMode: FilePickerProps['selectionMode']\n) => {\n return [\n <Text variant={isDisabled ? 'disabled' : 'primary'} weight=\"bold\" size=\"xl\">\n {getPrimaryText(primaryText, translations)}\n </Text>,\n <Spacer height=\"1.5x\"></Spacer>,\n <Text variant={isDisabled ? 'disabled' : 'secondary'} size=\"sm\">\n {getSecondaryText(secondaryText, translations, selectionMode)}\n </Text>\n ];\n};\n\n/**\n * Returns the aria label\n */\ntype AriaLabelProps = {\n accessibleLabel: FilePickerProps['accessibleLabel'];\n isDisabled: FilePickerProps['isDisabled'];\n translations: BundleType;\n primaryText?: FilePickerProps['primaryText'];\n secondaryText?: FilePickerProps['secondaryText'];\n selectionMode?: FilePickerProps['selectionMode'];\n};\nexport const getAriaLabel = ({\n accessibleLabel,\n isDisabled,\n translations,\n primaryText,\n secondaryText,\n selectionMode\n}: AriaLabelProps) => {\n return accessibleLabel\n ? accessibleLabel\n : `${isDisabled ? '' : translations.filePicker_addFiles() + '. '}${getPrimaryText(\n primaryText,\n translations\n )}. ${getSecondaryText(secondaryText, translations, selectionMode)}`;\n};\n\n/**\n * Returns the styles of the file picker\n */\nexport const getStyles = (width: FilePickerProps['width'], height: FilePickerProps['height']) => {\n const dimStyles: JSX.CSSProperties = {\n width: width ? sizeToCSS(width) : undefined,\n height: height ? sizeToCSS(height) : undefined\n };\n return dimStyles;\n};\n\n/**\n * Returns the primary text\n */\nconst getPrimaryText = (primaryText: FilePickerProps['primaryText'], translations: BundleType) => {\n return primaryText ? primaryText : translations.filePicker_dropzonePrimaryText();\n};\n\n/**\n * Returns the secondary text text\n */\nconst getSecondaryText = (\n secondaryText: FilePickerProps['secondaryText'],\n translations: BundleType,\n selectionMode: FilePickerProps['selectionMode']\n) => {\n const defaultSecondaryText =\n selectionMode === 'multiple'\n ? translations.filePicker_dropzoneSecondaryTextMultiple()\n : translations.filePicker_dropzoneSecondaryText();\n return secondaryText ? secondaryText : defaultSecondaryText;\n};\n\n/**\n * Takes in a list of files and returns a list of accepted files and\n * a list of rejected files based on file type\n */\nexport const validateTypes = (\n files: FileList,\n accept: FilePickerProps['accept'],\n translations: BundleType\n) => {\n const accepted = [];\n const rejected = [];\n let file: File;\n let type: string;\n if (files) {\n for (let i = 0; i < files.length; i++) {\n file = files[i];\n const name = file.name;\n type = translations.filePicker_unknownFileTypeUploadError();\n if (name) {\n const nameSplit = name.split('.');\n type = nameSplit.length > 1 ? '.' + nameSplit.pop() : type;\n }\n type = file.type ? file.type : type;\n // If type isn't already in one of the lists, add it\n if (accepted.indexOf(type) === -1 && rejected.indexOf(type) === -1) {\n if (_acceptFile(file, accept)) {\n accepted.push(type);\n } else {\n rejected.push(type);\n }\n }\n }\n }\n return { accepted, rejected };\n};\n\n/**\n * Creates a file list\n */\nexport const createFileList = (origList: FileList | DataTransferItemList) => {\n const descriptor: Record<string | number, PropertyDescriptor> = {\n length: { value: origList.length },\n item: {\n value(index: number): File {\n return (this as unknown as FileList)[index];\n }\n }\n };\n for (let i = 0; i < origList.length; i++) {\n descriptor[i] = { value: origList[i], enumerable: true };\n }\n\n return Object.create(FileList.prototype, descriptor);\n};\n\n/**\n * Returns false if selected multiple files when in single file selection mode\n */\nexport const validateSelectionMode = (\n files: FileList,\n selectionMode: FilePickerProps['selectionMode']\n) => {\n return selectionMode !== 'single' || files.length === 1;\n};\n\n/**\n * Returns the correct message if mime type validation has failed\n */\nexport const getMimeTypeValidationMessages = (\n rejected: Array<string>,\n translations: BundleType\n): ComponentMessageItem[] => {\n const messages: ComponentMessageItem[] = [];\n if (rejected.length === 1) {\n messages.push({\n severity: 'error',\n summary: translations.filePicker_singleTypeUploadError({\n fileType: rejected[0]\n })\n });\n } else {\n messages.push({\n severity: 'error',\n summary: translations.filePicker_multipleFileTypeUploadError({\n fileTypes: rejected.join(translations.plural_separator())\n })\n });\n }\n return messages;\n};\n\n/**\n * Returns true if file passes mimetype validation\n */\nconst _acceptFile = (file: File, accept: FilePickerProps['accept']) => {\n const acceptProp = accept;\n if (!acceptProp || acceptProp.length === 0 || !file) {\n return true;\n }\n\n let fileAccept;\n for (let i = 0; i < acceptProp.length; i++) {\n fileAccept = trim(acceptProp[i]) as string;\n if (!fileAccept) {\n return true;\n } else if (fileAccept.startsWith('.', 0)) {\n // when dragover, only MIME type is available, file name is undefined\n // to lowerCase is to make the string comparison case insensitive\n if (!file.name || (file.name && file.name.toLowerCase().endsWith(fileAccept.toLowerCase()))) {\n return true;\n }\n } else if (!file.type) {\n return false;\n } else if (fileAccept === 'image/*') {\n if (file.type.startsWith('image/', 0)) {\n return true;\n }\n } else if (fileAccept === 'video/*') {\n if (file.type.startsWith('video/', 0)) {\n return true;\n }\n } else if (fileAccept === 'audio/*') {\n if (file.type.startsWith('audio/', 0)) {\n return true;\n }\n } else if (file.type === fileAccept) {\n return true;\n }\n }\n return false;\n};\n","import { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\n\nimport { createFileList } from './FilePickerUtils';\nimport { RejectDetail, CommitDetail } from './FilePicker';\n\n/**\n * Calls the onReject callback when invalid files are selected.\n * For invalid dragged files, this function will return a promise resolver that\n * should be called when the invalid files are no longer dragged over the filepicker.\n */\nexport const fireRejectAction = (\n messages: ComponentMessageItem[],\n isDrag: boolean,\n onReject?: (detail: RejectDetail) => void\n) => {\n let resolver;\n const dragPromise = isDrag\n ? new Promise<void>((resolve) => {\n resolver = resolve;\n })\n : null;\n\n onReject?.({\n messages,\n until: dragPromise\n });\n return resolver;\n};\n\n/**\n * Calls the onCommit callback when all files are valid.\n */\nexport const handleFilesAdded = (files: FileList, onCommit?: (detail: CommitDetail) => void) => {\n // Bug 28503874 - filepicker: filelist cleared after the handler returns\n // Note: the parameter \"files\" is a direct reference to the embedded Input element's property\n // which could be reset or changed.\n // we need to return a copy of FileList just in case apps hold on to a reference to FileList\n const list = createFileList(files);\n onCommit?.({\n files: list\n });\n};\n","import { pickFiles } from '../utils/UNSAFE_filePickerUtils';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useHover } from '../hooks/UNSAFE_useHover';\nimport { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\nimport { BundleType } from '../resources/nls/bundle';\n\nimport { FilePicker, CommitDetail, RejectDetail } from './FilePicker';\nimport {\n validateTypes,\n getMimeTypeValidationMessages,\n createFileList,\n validateSelectionMode\n} from './FilePickerUtils';\nimport { fireRejectAction, handleFilesAdded } from './postValidationUtils';\n\nimport { ComponentProps } from 'preact';\nimport { useRef, Ref, StateUpdater } from 'preact/hooks';\n\ntype FilePickerProps = ComponentProps<typeof FilePicker>;\n\ntype FilePickerElementProps = FilePickerProps & {\n translations: BundleType;\n};\n\n/**\n * The file picker helper method for non-disabled filepickers.\n */\nexport const useFilepickerElementHelper = (\n props: FilePickerElementProps,\n rootRef: Ref<HTMLDivElement>,\n setValidity?: StateUpdater<'NA' | 'valid' | 'invalid'>\n) => {\n const { callback, validation } = clickCallbackUtils(props);\n const { pressProps } = usePress(callback);\n\n const dragAndDropProps = useDragAndDropEvents(\n props.accept,\n props.selectionMode,\n fireRejectAction,\n handleFilesAdded,\n rootRef,\n props.translations,\n props.onCommit,\n props.onReject,\n setValidity\n );\n const { hoverProps, isHover } = useHover({ isDisabled: false });\n return {\n validation,\n dragAndDropProps,\n pressProps,\n isHover,\n hoverProps\n };\n};\n\ntype ClickProps = {\n accept?: FilePickerProps['accept'];\n capture?: FilePickerProps['capture'];\n selectionMode?: FilePickerProps['selectionMode'];\n onCommit?: FilePickerProps['onCommit'];\n onReject?: FilePickerProps['onReject'];\n translations: BundleType;\n};\n\nconst clickCallbackUtils = (props: ClickProps) => {\n /**\n * Callback function when the filepicker is clicked.\n */\n const handleSelectingFiles = (event: Event) => {\n // Bug 27775173 - within firefox browser cannot tab past filepicker without file selector\n // window opening\n // only launching the file picker if click or 'Enter' was pressed\n if (\n event.type === 'click' ||\n (event.type === 'keyup' && (event as KeyboardEvent).code === 'Enter')\n ) {\n // Bug 26907138 - form submit event is triggered when the file upload button is clicked\n event.preventDefault();\n\n pickFiles(_handleClickValidation, {\n accept: props.accept,\n selectionMode: props.selectionMode ?? 'multiple',\n capture: props.capture ?? 'none'\n });\n }\n };\n\n /**\n * Handles file validation from selecting files through the file dialog\n */\n const _handleClickValidation = (files: FileList) => {\n if (files.length > 0) {\n const rejected = validateTypes(files, props.accept, props.translations).rejected;\n if (rejected.length > 0) {\n fireRejectAction(\n getMimeTypeValidationMessages(rejected, props.translations),\n false,\n props.onReject\n );\n } else {\n handleFilesAdded(files, props.onCommit);\n }\n }\n };\n return {\n callback: handleSelectingFiles,\n validation: _handleClickValidation\n };\n};\n\nconst useDragAndDropEvents = (\n accept: FilePickerProps['accept'],\n selectionMode: FilePickerProps['selectionMode'],\n fireRejectAction: (\n messages: ComponentMessageItem[],\n isDrag: boolean,\n onReject?: (detail: RejectDetail) => void\n ) => any,\n handleFilesAdded: (files: FileList, onCommit?: (detail: CommitDetail) => void) => void,\n rootRef: Ref<HTMLDivElement>,\n translations: BundleType,\n onCommit?: (detail: CommitDetail) => void,\n onReject?: (detail: RejectDetail) => void,\n // setValidity not set for custom filepicker\n setValidity?: StateUpdater<'NA' | 'valid' | 'invalid'>\n) => {\n const inDropZone = useRef<boolean>(false);\n const isDroppable = useRef<boolean>(false);\n const dragPromiseResolver = useRef<() => void>();\n\n /**\n * Drag Enter handler called when a dragged file enter the filepicker dropzone\n */\n const _handleDragEnter = (event: Event) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n /**\n * Drag over handler called when a file is dragged over the filepicker\n */\n const _handleDragOver = (event: DragEvent) => {\n event.preventDefault();\n event.stopPropagation();\n if (inDropZone.current) {\n return;\n }\n\n const browser = getClientHints().browser;\n inDropZone.current = true;\n isDroppable.current = true;\n // Safari doesn't provide the data for the files on drag over so validation cannot be done until drop\n if (browser !== 'safari') {\n if (!event.dataTransfer) {\n return;\n }\n const files = createFileList(event.dataTransfer.items);\n let messages = [] as ComponentMessageItem[];\n const selectionModeValid = validateSelectionMode(files, selectionMode);\n const droppable = validateTypes(files, accept, translations);\n if (selectionModeValid && droppable.rejected.length === 0) {\n // validation passes\n setValidity?.('valid');\n } else {\n isDroppable.current = false;\n if (selectionModeValid) {\n // mimetype Validation fails\n messages = getMimeTypeValidationMessages(droppable.rejected, translations);\n } else {\n // selected multiple files in single selection mode\n messages.push({\n severity: 'error',\n summary: translations.filePicker_singleFileUploadError()\n });\n }\n setValidity?.('invalid');\n dragPromiseResolver.current = fireRejectAction(messages, true, onReject);\n }\n } else {\n setValidity?.('valid');\n }\n };\n\n /**\n * Drag leave handler is called when the dragged file leaves the filepicker dropzone\n */\n const _handleDragLeave = (event: DragEvent, mimeTypeDropFail = false) => {\n if (!inDropZone.current) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n if (!rootRef.current?.contains(event.relatedTarget as Node)) {\n inDropZone.current = false;\n setValidity?.('NA');\n // There's only a promise if validation failed on dragover\n if (!isDroppable.current && !mimeTypeDropFail) {\n dragPromiseResolver.current?.();\n }\n }\n };\n\n /**\n * Drop file handler is called when a file is dropped on the filepicker dropzone\n */\n const _handleFileDrop = (event: DragEvent) => {\n if (inDropZone.current) {\n event.preventDefault();\n event.stopPropagation();\n if (!event.dataTransfer) {\n inDropZone.current = false;\n return;\n }\n const files = createFileList(event.dataTransfer.files);\n let mimeTypeDropFail = false;\n if (isDroppable.current) {\n let messages: ComponentMessageItem[] = [];\n if (validateSelectionMode(files, selectionMode)) {\n const droppable = validateTypes(files, accept, translations);\n if (droppable.rejected.length > 0) {\n // mimetype Validation fails\n messages = getMimeTypeValidationMessages(droppable.rejected, translations);\n mimeTypeDropFail = true;\n }\n } else {\n messages.push({\n severity: 'error',\n summary: translations.filePicker_singleFileUploadError()\n });\n }\n if (messages.length > 0) {\n isDroppable.current = false;\n fireRejectAction(messages, false, onReject);\n }\n if (isDroppable.current) {\n handleFilesAdded(files, onCommit);\n }\n }\n _handleDragLeave(event, mimeTypeDropFail);\n }\n };\n\n return {\n onDragEnter: _handleDragEnter,\n onDragOver: _handleDragOver,\n onDragLeave: _handleDragLeave,\n onDrop: _handleFileDrop\n };\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { Size } from '../utils/UNSAFE_size';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\nimport { getDefaultTriggerContent, getAriaLabel, getStyles } from './FilePickerUtils';\nimport { useFilepickerElementHelper } from './useFilePickerElement';\n\nimport { ComponentChildren } from 'preact';\nimport { useState, useRef, useImperativeHandle } from 'preact/hooks';\nimport { ForwardedRef } from 'preact/compat';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\n\n// TODO: Andy's comment below JET-53230\n// The FilePicker supports two very different use cases: default and custom file pickers. Should we consider dropping the wrapper and instead exporting the two underlying components (with the appropriate property types) directly?\n// If not, perhaps we should look into defining the Props type as a discriminated union such that primaryText/secondaryText props are only valid when children is not specified?\n\ntype Props = {\n /**\n * An array of strings of allowed MIME types or file extensions that can be uploaded; this is unlike the accept attribute of the html <input> element that accepts a simple comma-delimited string. If not specified, all file types will be accepted.\n * <p>Note: If accept is specified, files with empty string type will be rejected if no match found in the \"accept\" value. */\n accept?: string[];\n\n /**\n * Specifies the preferred facing mode for the device's\n * <a href=\"https://www.w3.org/TR/html-media-capture/#dom-htmlinputelement-capture\">media capture</a> mechanism;\n * This is most often used to provide direct camera access on mobile devices. Note that the accept attribute must\n * be specified and have an associated capture control type (e.g.[\"image/*\"]) for the capture attribute to take effect. Support may vary by browser.\n *\n */\n capture?: 'user' | 'environment' | 'implementation' | 'none';\n\n /**\n * Disables the filepicker if set to <code class=\"prettyprint\">true</code>.\n */\n isDisabled?: boolean;\n\n /**\n * The primary text for the default file picker.\n */\n primaryText?: string;\n\n /**\n * The secondary text for the default file picker.\n */\n secondaryText?: string;\n /**\n * Whether to allow single or multiple file selection.\n */\n selectionMode?: 'multiple' | 'single';\n\n /**\n * A label to be used for accessibility purposes.\n */\n accessibleLabel?: string;\n\n /**\n * Property that triggers a callback immediately when a set of files have been committed\n */\n onCommit?: (detail: CommitDetail) => void;\n\n /**\n * Property that triggers a callback immediately when a set of files have been rejected\n */\n onReject?: (detail: RejectDetail) => void;\n\n /**\n * Width of the File Picker\n */\n width?: Size;\n\n /**\n * Height of the File Picker\n */\n height?: Size;\n\n /**\n * If the children is provided, its contents replace the default filepicker. Filepicker will still set role and aria-label, but\n * the application is responsible for setting the tabindex.\n */\n children?: ComponentChildren;\n};\n\nexport type CommitDetail = {\n files: FileList;\n};\n\nexport type RejectDetail = {\n /**\n * Messages that should be displayed to the user (e.g. in an oj-messages component) describing rejected files.\n */\n messages: ComponentMessageItem[];\n\n /**\n * This property may be populated with a Promise to provide short-term feedback during a user interaction (typically drag and drop); the feedback should be cleared upon the resolution of this Promise.\n */\n until: Promise<void> | null;\n};\n\n/**\n * A file picker displays a clickable dropzone for selecting files from the device storage.\n */\nexport function FilePicker({\n capture = 'none',\n isDisabled = false,\n selectionMode = 'multiple',\n children,\n ...otherProps\n}: Props) {\n // this ref is added only for testing purposes. Allows the test to directly\n // call certain functions that should be tested\n const testHandlersRef = (otherProps as any).__testHandlerSymbol;\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const props = { capture, selectionMode, translations, ...otherProps };\n if (isDisabled) {\n return <DisabledFilePicker {...props}>{children}</DisabledFilePicker>;\n }\n return children ? (\n <CustomFilePicker testHandlersRef={testHandlersRef} {...props}>\n {children}\n </CustomFilePicker>\n ) : (\n <DefaultFilePicker testHandlersRef={testHandlersRef} {...props} />\n );\n}\n\ntype FilePickerProps = Props & {\n translations: BundleType;\n};\n\ntype DndProps = {\n onDragEnter: (event: Event) => void;\n onDragOver: (event: DragEvent) => void;\n onDragLeave: (event: DragEvent, mimeTypeDropFail: boolean) => void;\n onDrop: (event: DragEvent) => void;\n};\n\nexport type TestHandlersRef = ForwardedRef<\n DndProps & {\n onClickSelected: (files: FileList) => void;\n }\n>;\n\ntype TestHandlerProps = {\n // this ref is populated only in tests\n testHandlersRef?: TestHandlersRef;\n};\n\ntype DefaultProps = Omit<FilePickerProps, 'isDisabled' | 'children'> & TestHandlerProps;\n\n/**\n * The default file picker element.\n */\nconst DefaultFilePicker = (props: DefaultProps) => {\n const [validity, setValidity] = useState<'NA' | 'valid' | 'invalid'>('NA');\n\n // class added to change bg/border color based on if file is valid on drag and drop\n const validityClass =\n validity === 'valid' ? 'oj-c-valid-drop' : validity === 'invalid' ? 'oj-c-invalid-drop' : '';\n const rootRef = useRef<HTMLDivElement>(null);\n\n const { validation, dragAndDropProps, pressProps, isHover, hoverProps } =\n useFilepickerElementHelper(props, rootRef, setValidity);\n const mergedEventProps = mergeProps(pressProps, hoverProps);\n\n // These are backdoor handles that are used for testing purposes only\n useSetupTestRef(dragAndDropProps, validation, props.testHandlersRef || null);\n const classes = classNames([\n styles.base,\n props.width === undefined && styles.maxWidth,\n isHover && styles.hover\n ]);\n const { isTabbable } = useTabbableMode();\n const {\n accessibleLabel,\n primaryText,\n secondaryText,\n translations,\n selectionMode,\n width,\n height\n } = props;\n return (\n <div\n {...mergedEventProps}\n class={classes}\n tabIndex={isTabbable ? 0 : -1}\n role=\"button\"\n aria-label={getAriaLabel({\n accessibleLabel,\n isDisabled: false,\n translations,\n primaryText,\n secondaryText,\n selectionMode\n })}\n ref={rootRef}\n style={getStyles(width, height)}>\n <div class={classNames([styles.inner, validityClass])} {...dragAndDropProps}>\n {getDefaultTriggerContent(false, primaryText, secondaryText, translations, selectionMode)}\n </div>\n </div>\n );\n};\n\ntype DisabledProps = Omit<\n FilePickerProps,\n 'accept' | 'capture' | 'onCommit' | 'onReject' | 'isDisabled'\n>;\n\nconst childrenContainer = (children: ComponentChildren) => {\n return <div className={childrenStyles}>{children}</div>;\n};\n\n/**\n * The disabled file picker element.\n */\nconst DisabledFilePicker = ({\n children,\n accessibleLabel,\n primaryText,\n secondaryText,\n translations,\n selectionMode,\n width,\n height\n}: DisabledProps) => {\n return (\n <div\n class={classNames([\n styles.base,\n styles.inner,\n width === undefined && styles.maxWidth,\n 'oj-c-filepicker-disabled'\n ])}\n role=\"button\"\n aria-label={getAriaLabel({\n accessibleLabel,\n isDisabled: true,\n translations,\n primaryText,\n secondaryText\n })}\n aria-hidden=\"true\"\n style={getStyles(width, height)}>\n {(children && childrenContainer(children)) ||\n getDefaultTriggerContent(true, primaryText, secondaryText, translations, selectionMode)}\n </div>\n );\n};\n\ntype CustomProps = Omit<FilePickerProps, 'isDisabled' | 'primaryText' | 'secondaryText'> &\n TestHandlerProps;\n\n/**\n * The custom file picker element.\n */\nconst CustomFilePicker = (props: CustomProps) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const { validation, dragAndDropProps, pressProps, isHover, hoverProps } =\n useFilepickerElementHelper(props, rootRef);\n const mergedEventProps = mergeProps(pressProps, dragAndDropProps, hoverProps);\n\n // These are backdoor handles that are used for testing purposes only\n useSetupTestRef(dragAndDropProps, validation, props.testHandlersRef || null);\n\n const classes = classNames([\n styles.base,\n props.width === undefined && styles.maxWidth,\n isHover && styles.hover\n ]);\n const { accessibleLabel, translations, selectionMode } = props;\n const { isTabbable } = useTabbableMode();\n return (\n <div\n class={classes}\n tabIndex={isTabbable ? undefined : -1}\n role=\"button\"\n aria-label={getAriaLabel({ accessibleLabel, isDisabled: false, translations, selectionMode })}\n ref={rootRef}\n style={getStyles(props.width, props.height)}\n {...mergedEventProps}>\n {props.children && childrenContainer(props.children)}\n </div>\n );\n};\n\n/**\n * Only called for testing purposes, sets up the test ref that\n * allows for backdoor access to certain methods\n */\nconst useSetupTestRef = (\n dragAndDropProps: DndProps,\n validation: (files: FileList) => void,\n testHandlersRef: TestHandlersRef\n) => {\n useImperativeHandle(testHandlersRef, () => ({\n onDragEnter: dragAndDropProps.onDragEnter,\n onDragOver: dragAndDropProps.onDragOver,\n onDrop: dragAndDropProps.onDrop,\n onDragLeave: dragAndDropProps.onDragLeave,\n onClickSelected: validation\n }));\n};\n\nconst styles = {\n base: cssProps`${{\n display: 'block',\n height: '100%',\n width: '100%'\n }}`,\n maxWidth: cssProps`${{\n maxWidth: '400px'\n }}`,\n inner: cssProps`${{\n justifyContent: 'space-between',\n alignItems: 'center',\n boxSizing: 'border-box',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-border-radius)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n height: '100%',\n borderStyle: 'dashed',\n borderWidth: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-border-width)',\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-bg-color)',\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-border-color)',\n '&:active': { backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-active)' }\n }}`,\n hover: cssProps`${{\n // @ts-ignore\n '&:not(:active)': {\n cursor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-cursor)'\n }\n }}`,\n\n pseudohover: cssProps`${{\n // @ts-ignore\n '@media(hover: hover)': {\n '&:hover:enabled:not(:active)': {\n cursor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-cursor)'\n }\n }\n }}`\n};\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"],"names":["getDefaultTriggerContent","isDisabled","primaryText","secondaryText","translations","selectionMode","_jsx","Text","Object","assign","variant","weight","size","children","getPrimaryText","Spacer","height","jsx","getSecondaryText","getAriaLabel","accessibleLabel","filePicker_addFiles","getStyles","width","sizeToCSS","undefined","filePicker_dropzonePrimaryText","defaultSecondaryText","filePicker_dropzoneSecondaryTextMultiple","filePicker_dropzoneSecondaryText","validateTypes","files","accept","accepted","rejected","file","type","i","length","name","filePicker_unknownFileTypeUploadError","nameSplit","split","pop","indexOf","_acceptFile","push","createFileList","origList","descriptor","value","item","index","this","enumerable","create","FileList","prototype","validateSelectionMode","getMimeTypeValidationMessages","messages","severity","summary","filePicker_singleTypeUploadError","fileType","filePicker_multipleFileTypeUploadError","fileTypes","join","plural_separator","acceptProp","fileAccept","trim","startsWith","toLowerCase","endsWith","fireRejectAction","isDrag","onReject","resolver","dragPromise","Promise","resolve","until","handleFilesAdded","onCommit","list","useFilepickerElementHelper","props","rootRef","setValidity","callback","validation","clickCallbackUtils","pressProps","usePress","dragAndDropProps","useDragAndDropEvents","hoverProps","isHover","useHover","_handleClickValidation","event","code","preventDefault","pickFiles","_a","capture","_b","inDropZone","useRef","isDroppable","dragPromiseResolver","_handleDragLeave","mimeTypeDropFail","current","stopPropagation","contains","relatedTarget","call","onDragEnter","onDragOver","browser","getClientHints","dataTransfer","items","selectionModeValid","droppable","filePicker_singleFileUploadError","onDragLeave","onDrop","DefaultFilePicker","styles","base","maxWidth","isTabbable","useTabbableMode","childrenContainer","className","childrenStyles","DisabledFilePicker","class","classNames","inner","role","style","CustomFilePicker","classes","tabIndex","ref","mergedEventProps","useSetupTestRef","testHandlersRef","useImperativeHandle","onClickSelected","otherProps","__rest","__testHandlerSymbol","useTranslationBundle"],"mappings":"klBAgBO,MAAMA,EAA2B,CACtCC,EACAC,EACAC,EACAC,EACAC,IAEO,CACLC,MAACC,EAAAA,KAAIC,OAAAC,OAAA,CAACC,QAAST,EAAa,WAAa,UAAWU,OAAO,OAAOC,KAAK,MAAI,CAAAC,SACxEC,EAAeZ,EAAaE,MAE/BE,EAAAA,IAACS,EAAMA,OAAA,CAACC,OAAO,SACfV,EAACW,IAAAV,EAAIA,KAACC,OAAAC,OAAA,CAAAC,QAAST,EAAa,WAAa,YAAaW,KAAK,MAAI,CAAAC,SAC5DK,EAAiBf,EAAeC,EAAcC,OAgBxCc,EAAe,EAC1BC,gBAAAA,EACAnB,WAAAA,EACAG,aAAAA,EACAF,YAAAA,EACAC,cAAAA,EACAE,cAAAA,KAEOe,GAEH,GAAGnB,EAAa,GAAKG,EAAaiB,sBAAwB,OAAOP,EAC/DZ,EACAE,OACIc,EAAiBf,EAAeC,EAAcC,KAM7CiB,EAAY,CAACC,EAAiCP,KACpB,CACnCO,MAAOA,EAAQC,YAAUD,QAASE,EAClCT,OAAQA,EAASQ,YAAUR,QAAUS,IAQnCX,EAAiB,CAACZ,EAA6CE,IAC5DF,GAA4BE,EAAasB,iCAM5CR,EAAmB,CACvBf,EACAC,EACAC,KAEA,MAAMsB,EACc,aAAlBtB,EACID,EAAawB,2CACbxB,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EAAA,CAAAxI,SAAA0E,EAAA1E,UAAA2H,EAAAjD,EAAA1E,cAkBFyI,EAAA,CAAAvD,EAAAJ,EAAA4D,KAKEC,EAAAA,oBAAAD,EAAA,KAAA,6FAKEE,gBAAA9D,MAIJwC,EAAA,MAAA,oBAAA,iBAAA,eAAA,+BAyCAO,EAAA,uBApPA,SAAAjC,GAA2B,IAAAC,QAAAA,EAAA,OAAAzG,WAAAA,GAAA,EAAAI,cAAAA,EAAA,WAAAQ,SAAAA,GAAA4F,EAAAiD,EAAAC,EAAAA,OAAAlD,EAAA,CAAA,UAAA,aAAA,gBAAA,aASzB,MAAA8C,EAAAG,EAAAE,oBACAxJ,EAAAyJ,uBAAA,0FAEA,OAAA5J,EACEK,EAAAA,IAAAqI,EAAAnI,OAAAC,OAAA,GAAA8E,EAAA,CAAA1E,SAAAA,KAEFA,EAAAP,EAAAW,IAAAgI,EAAAzI,OAAAC,OAAA,CAAA8I,gBAAAA,GAAAhE,EAAA,CAAA1E,SAAAA,KAAAP,EAAAW,IAAAiH,EAAA1H,OAAAC,OAAA,CAAA8I,gBAAAA,GAAAhE"}
|
|
1
|
+
{"version":3,"file":"FilePicker-bb70dacb.js","sources":["../../src/UNSAFE_FilePicker/FilePickerUtils.tsx","../../src/UNSAFE_FilePicker/postValidationUtils.tsx","../../src/UNSAFE_FilePicker/useFilePickerElement.tsx","../../src/UNSAFE_FilePicker/FilePicker.tsx"],"sourcesContent":["import { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\nimport { Text } from '../UNSAFE_Text';\nimport { Spacer } from '../UNSAFE_Spacer';\nimport { sizeToCSS } from '../utils/UNSAFE_size';\nimport { trim } from '../utils/UNSAFE_stringUtils';\nimport { BundleType } from '../resources/nls/bundle';\n\nimport { FilePicker } from './FilePicker';\n\nimport { JSX, ComponentProps } from 'preact';\n\ntype FilePickerProps = ComponentProps<typeof FilePicker>;\n\n/**\n * Gets the default content of the file picker\n */\nexport const getDefaultTriggerContent = (\n isDisabled: FilePickerProps['isDisabled'],\n primaryText: FilePickerProps['primaryText'],\n secondaryText: FilePickerProps['secondaryText'],\n translations: BundleType,\n selectionMode: FilePickerProps['selectionMode']\n) => {\n return [\n <Text variant={isDisabled ? 'disabled' : 'primary'} weight=\"bold\" size=\"xl\">\n {getPrimaryText(primaryText, translations)}\n </Text>,\n <Spacer height=\"1.5x\"></Spacer>,\n <Text variant={isDisabled ? 'disabled' : 'secondary'} size=\"sm\">\n {getSecondaryText(secondaryText, translations, selectionMode)}\n </Text>\n ];\n};\n\n/**\n * Returns the aria label\n */\ntype AriaLabelProps = {\n accessibleLabel: FilePickerProps['accessibleLabel'];\n isDisabled: FilePickerProps['isDisabled'];\n translations: BundleType;\n primaryText?: FilePickerProps['primaryText'];\n secondaryText?: FilePickerProps['secondaryText'];\n selectionMode?: FilePickerProps['selectionMode'];\n};\nexport const getAriaLabel = ({\n accessibleLabel,\n isDisabled,\n translations,\n primaryText,\n secondaryText,\n selectionMode\n}: AriaLabelProps) => {\n return accessibleLabel\n ? accessibleLabel\n : `${isDisabled ? '' : translations.filePicker_addFiles() + '. '}${getPrimaryText(\n primaryText,\n translations\n )}. ${getSecondaryText(secondaryText, translations, selectionMode)}`;\n};\n\n/**\n * Returns the styles of the file picker\n */\nexport const getStyles = (width: FilePickerProps['width'], height: FilePickerProps['height']) => {\n const dimStyles: JSX.CSSProperties = {\n width: width ? sizeToCSS(width) : undefined,\n height: height ? sizeToCSS(height) : undefined\n };\n return dimStyles;\n};\n\n/**\n * Returns the primary text\n */\nconst getPrimaryText = (primaryText: FilePickerProps['primaryText'], translations: BundleType) => {\n return primaryText ? primaryText : translations.filePicker_dropzonePrimaryText();\n};\n\n/**\n * Returns the secondary text text\n */\nconst getSecondaryText = (\n secondaryText: FilePickerProps['secondaryText'],\n translations: BundleType,\n selectionMode: FilePickerProps['selectionMode']\n) => {\n const defaultSecondaryText =\n selectionMode === 'multiple'\n ? translations.filePicker_dropzoneSecondaryTextMultiple()\n : translations.filePicker_dropzoneSecondaryText();\n return secondaryText ? secondaryText : defaultSecondaryText;\n};\n\n/**\n * Takes in a list of files and returns a list of accepted files and\n * a list of rejected files based on file type\n */\nexport const validateTypes = (\n files: FileList,\n accept: FilePickerProps['accept'],\n translations: BundleType\n) => {\n const accepted = [];\n const rejected = [];\n let file: File;\n let type: string;\n if (files) {\n for (let i = 0; i < files.length; i++) {\n file = files[i];\n const name = file.name;\n type = translations.filePicker_unknownFileTypeUploadError();\n if (name) {\n const nameSplit = name.split('.');\n type = nameSplit.length > 1 ? '.' + nameSplit.pop() : type;\n }\n type = file.type ? file.type : type;\n // If type isn't already in one of the lists, add it\n if (accepted.indexOf(type) === -1 && rejected.indexOf(type) === -1) {\n if (_acceptFile(file, accept)) {\n accepted.push(type);\n } else {\n rejected.push(type);\n }\n }\n }\n }\n return { accepted, rejected };\n};\n\n/**\n * Creates a file list\n */\nexport const createFileList = (origList: FileList | DataTransferItemList) => {\n const descriptor: Record<string | number, PropertyDescriptor> = {\n length: { value: origList.length },\n item: {\n value(index: number): File {\n return (this as unknown as FileList)[index];\n }\n }\n };\n for (let i = 0; i < origList.length; i++) {\n descriptor[i] = { value: origList[i], enumerable: true };\n }\n\n return Object.create(FileList.prototype, descriptor);\n};\n\n/**\n * Returns false if selected multiple files when in single file selection mode\n */\nexport const validateSelectionMode = (\n files: FileList,\n selectionMode: FilePickerProps['selectionMode']\n) => {\n return selectionMode !== 'single' || files.length === 1;\n};\n\n/**\n * Returns the correct message if mime type validation has failed\n */\nexport const getMimeTypeValidationMessages = (\n rejected: Array<string>,\n translations: BundleType\n): ComponentMessageItem[] => {\n const messages: ComponentMessageItem[] = [];\n if (rejected.length === 1) {\n messages.push({\n severity: 'error',\n summary: translations.filePicker_singleTypeUploadError({\n fileType: rejected[0]\n })\n });\n } else {\n messages.push({\n severity: 'error',\n summary: translations.filePicker_multipleFileTypeUploadError({\n fileTypes: rejected.join(translations.plural_separator())\n })\n });\n }\n return messages;\n};\n\n/**\n * Returns true if file passes mimetype validation\n */\nconst _acceptFile = (file: File, accept: FilePickerProps['accept']) => {\n const acceptProp = accept;\n if (!acceptProp || acceptProp.length === 0 || !file) {\n return true;\n }\n\n let fileAccept;\n for (let i = 0; i < acceptProp.length; i++) {\n fileAccept = trim(acceptProp[i]) as string;\n if (!fileAccept) {\n return true;\n } else if (fileAccept.startsWith('.', 0)) {\n // when dragover, only MIME type is available, file name is undefined\n // to lowerCase is to make the string comparison case insensitive\n if (!file.name || (file.name && file.name.toLowerCase().endsWith(fileAccept.toLowerCase()))) {\n return true;\n }\n } else if (!file.type) {\n return false;\n } else if (fileAccept === 'image/*') {\n if (file.type.startsWith('image/', 0)) {\n return true;\n }\n } else if (fileAccept === 'video/*') {\n if (file.type.startsWith('video/', 0)) {\n return true;\n }\n } else if (fileAccept === 'audio/*') {\n if (file.type.startsWith('audio/', 0)) {\n return true;\n }\n } else if (file.type === fileAccept) {\n return true;\n }\n }\n return false;\n};\n","import { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\n\nimport { createFileList } from './FilePickerUtils';\nimport { RejectDetail, CommitDetail } from './FilePicker';\n\n/**\n * Calls the onReject callback when invalid files are selected.\n * For invalid dragged files, this function will return a promise resolver that\n * should be called when the invalid files are no longer dragged over the filepicker.\n */\nexport const fireRejectAction = (\n messages: ComponentMessageItem[],\n isDrag: boolean,\n onReject?: (detail: RejectDetail) => void\n) => {\n let resolver;\n const dragPromise = isDrag\n ? new Promise<void>((resolve) => {\n resolver = resolve;\n })\n : null;\n\n onReject?.({\n messages,\n until: dragPromise\n });\n return resolver;\n};\n\n/**\n * Calls the onCommit callback when all files are valid.\n */\nexport const handleFilesAdded = (files: FileList, onCommit?: (detail: CommitDetail) => void) => {\n // Bug 28503874 - filepicker: filelist cleared after the handler returns\n // Note: the parameter \"files\" is a direct reference to the embedded Input element's property\n // which could be reset or changed.\n // we need to return a copy of FileList just in case apps hold on to a reference to FileList\n const list = createFileList(files);\n onCommit?.({\n files: list\n });\n};\n","import { pickFiles } from '../utils/UNSAFE_filePickerUtils';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { useHover } from '../hooks/UNSAFE_useHover';\nimport { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\nimport { BundleType } from '../resources/nls/bundle';\n\nimport { FilePicker, CommitDetail, RejectDetail } from './FilePicker';\nimport {\n validateTypes,\n getMimeTypeValidationMessages,\n createFileList,\n validateSelectionMode\n} from './FilePickerUtils';\nimport { fireRejectAction, handleFilesAdded } from './postValidationUtils';\n\nimport { ComponentProps } from 'preact';\nimport { useRef, Ref, StateUpdater } from 'preact/hooks';\n\ntype FilePickerProps = ComponentProps<typeof FilePicker>;\n\ntype FilePickerElementProps = FilePickerProps & {\n translations: BundleType;\n};\n\n/**\n * The file picker helper method for non-disabled filepickers.\n */\nexport const useFilepickerElementHelper = (\n props: FilePickerElementProps,\n rootRef: Ref<HTMLDivElement>,\n setValidity?: StateUpdater<'NA' | 'valid' | 'invalid'>\n) => {\n const { callback, validation } = clickCallbackUtils(props);\n const { pressProps } = usePress(callback);\n\n const dragAndDropProps = useDragAndDropEvents(\n props.accept,\n props.selectionMode,\n fireRejectAction,\n handleFilesAdded,\n rootRef,\n props.translations,\n props.onCommit,\n props.onReject,\n setValidity\n );\n const { hoverProps, isHover } = useHover({ isDisabled: false });\n return {\n validation,\n dragAndDropProps,\n pressProps,\n isHover,\n hoverProps\n };\n};\n\ntype ClickProps = {\n accept?: FilePickerProps['accept'];\n capture?: FilePickerProps['capture'];\n selectionMode?: FilePickerProps['selectionMode'];\n onCommit?: FilePickerProps['onCommit'];\n onReject?: FilePickerProps['onReject'];\n translations: BundleType;\n};\n\nconst clickCallbackUtils = (props: ClickProps) => {\n /**\n * Callback function when the filepicker is clicked.\n */\n const handleSelectingFiles = (event: Event) => {\n // Bug 27775173 - within firefox browser cannot tab past filepicker without file selector\n // window opening\n // only launching the file picker if click or 'Enter' was pressed\n if (\n event.type === 'click' ||\n (event.type === 'keyup' && (event as KeyboardEvent).code === 'Enter')\n ) {\n // Bug 26907138 - form submit event is triggered when the file upload button is clicked\n event.preventDefault();\n\n pickFiles(_handleClickValidation, {\n accept: props.accept,\n selectionMode: props.selectionMode ?? 'multiple',\n capture: props.capture ?? 'none'\n });\n }\n };\n\n /**\n * Handles file validation from selecting files through the file dialog\n */\n const _handleClickValidation = (files: FileList) => {\n if (files.length > 0) {\n const rejected = validateTypes(files, props.accept, props.translations).rejected;\n if (rejected.length > 0) {\n fireRejectAction(\n getMimeTypeValidationMessages(rejected, props.translations),\n false,\n props.onReject\n );\n } else {\n handleFilesAdded(files, props.onCommit);\n }\n }\n };\n return {\n callback: handleSelectingFiles,\n validation: _handleClickValidation\n };\n};\n\nconst useDragAndDropEvents = (\n accept: FilePickerProps['accept'],\n selectionMode: FilePickerProps['selectionMode'],\n fireRejectAction: (\n messages: ComponentMessageItem[],\n isDrag: boolean,\n onReject?: (detail: RejectDetail) => void\n ) => any,\n handleFilesAdded: (files: FileList, onCommit?: (detail: CommitDetail) => void) => void,\n rootRef: Ref<HTMLDivElement>,\n translations: BundleType,\n onCommit?: (detail: CommitDetail) => void,\n onReject?: (detail: RejectDetail) => void,\n // setValidity not set for custom filepicker\n setValidity?: StateUpdater<'NA' | 'valid' | 'invalid'>\n) => {\n const inDropZone = useRef<boolean>(false);\n const isDroppable = useRef<boolean>(false);\n const dragPromiseResolver = useRef<() => void>();\n\n /**\n * Drag Enter handler called when a dragged file enter the filepicker dropzone\n */\n const _handleDragEnter = (event: Event) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n /**\n * Drag over handler called when a file is dragged over the filepicker\n */\n const _handleDragOver = (event: DragEvent) => {\n event.preventDefault();\n event.stopPropagation();\n if (inDropZone.current) {\n return;\n }\n\n const browser = getClientHints().browser;\n inDropZone.current = true;\n isDroppable.current = true;\n // Safari doesn't provide the data for the files on drag over so validation cannot be done until drop\n if (browser !== 'safari') {\n if (!event.dataTransfer) {\n return;\n }\n const files = createFileList(event.dataTransfer.items);\n let messages = [] as ComponentMessageItem[];\n const selectionModeValid = validateSelectionMode(files, selectionMode);\n const droppable = validateTypes(files, accept, translations);\n if (selectionModeValid && droppable.rejected.length === 0) {\n // validation passes\n setValidity?.('valid');\n } else {\n isDroppable.current = false;\n if (selectionModeValid) {\n // mimetype Validation fails\n messages = getMimeTypeValidationMessages(droppable.rejected, translations);\n } else {\n // selected multiple files in single selection mode\n messages.push({\n severity: 'error',\n summary: translations.filePicker_singleFileUploadError()\n });\n }\n setValidity?.('invalid');\n dragPromiseResolver.current = fireRejectAction(messages, true, onReject);\n }\n } else {\n setValidity?.('valid');\n }\n };\n\n /**\n * Drag leave handler is called when the dragged file leaves the filepicker dropzone\n */\n const _handleDragLeave = (event: DragEvent, mimeTypeDropFail = false) => {\n if (!inDropZone.current) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n if (!rootRef.current?.contains(event.relatedTarget as Node)) {\n inDropZone.current = false;\n setValidity?.('NA');\n // There's only a promise if validation failed on dragover\n if (!isDroppable.current && !mimeTypeDropFail) {\n dragPromiseResolver.current?.();\n }\n }\n };\n\n /**\n * Drop file handler is called when a file is dropped on the filepicker dropzone\n */\n const _handleFileDrop = (event: DragEvent) => {\n if (inDropZone.current) {\n event.preventDefault();\n event.stopPropagation();\n if (!event.dataTransfer) {\n inDropZone.current = false;\n return;\n }\n const files = createFileList(event.dataTransfer.files);\n let mimeTypeDropFail = false;\n if (isDroppable.current) {\n let messages: ComponentMessageItem[] = [];\n if (validateSelectionMode(files, selectionMode)) {\n const droppable = validateTypes(files, accept, translations);\n if (droppable.rejected.length > 0) {\n // mimetype Validation fails\n messages = getMimeTypeValidationMessages(droppable.rejected, translations);\n mimeTypeDropFail = true;\n }\n } else {\n messages.push({\n severity: 'error',\n summary: translations.filePicker_singleFileUploadError()\n });\n }\n if (messages.length > 0) {\n isDroppable.current = false;\n fireRejectAction(messages, false, onReject);\n }\n if (isDroppable.current) {\n handleFilesAdded(files, onCommit);\n }\n }\n _handleDragLeave(event, mimeTypeDropFail);\n }\n };\n\n return {\n onDragEnter: _handleDragEnter,\n onDragOver: _handleDragOver,\n onDragLeave: _handleDragLeave,\n onDrop: _handleFileDrop\n };\n};\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { Size } from '../utils/UNSAFE_size';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport type { BundleType } from '../resources/nls/bundle';\nimport { ComponentMessageItem } from '../UNSAFE_ComponentMessage';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\nimport { getDefaultTriggerContent, getAriaLabel, getStyles } from './FilePickerUtils';\nimport { useFilepickerElementHelper } from './useFilePickerElement';\n\nimport { ComponentChildren } from 'preact';\nimport { useState, useRef, useImperativeHandle } from 'preact/hooks';\nimport { ForwardedRef } from 'preact/compat';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\n\n// TODO: Andy's comment below JET-53230\n// The FilePicker supports two very different use cases: default and custom file pickers. Should we consider dropping the wrapper and instead exporting the two underlying components (with the appropriate property types) directly?\n// If not, perhaps we should look into defining the Props type as a discriminated union such that primaryText/secondaryText props are only valid when children is not specified?\n\ntype Props = {\n /**\n * An array of strings of allowed MIME types or file extensions that can be uploaded; this is unlike the accept attribute of the html <input> element that accepts a simple comma-delimited string. If not specified, all file types will be accepted.\n * <p>Note: If accept is specified, files with empty string type will be rejected if no match found in the \"accept\" value. */\n accept?: string[];\n\n /**\n * Specifies the preferred facing mode for the device's\n * <a href=\"https://www.w3.org/TR/html-media-capture/#dom-htmlinputelement-capture\">media capture</a> mechanism;\n * This is most often used to provide direct camera access on mobile devices. Note that the accept attribute must\n * be specified and have an associated capture control type (e.g.[\"image/*\"]) for the capture attribute to take effect. Support may vary by browser.\n *\n */\n capture?: 'user' | 'environment' | 'implementation' | 'none';\n\n /**\n * Disables the filepicker if set to <code class=\"prettyprint\">true</code>.\n */\n isDisabled?: boolean;\n\n /**\n * The primary text for the default file picker.\n */\n primaryText?: string;\n\n /**\n * The secondary text for the default file picker.\n */\n secondaryText?: string;\n /**\n * Whether to allow single or multiple file selection.\n */\n selectionMode?: 'multiple' | 'single';\n\n /**\n * A label to be used for accessibility purposes.\n */\n accessibleLabel?: string;\n\n /**\n * Property that triggers a callback immediately when a set of files have been committed\n */\n onCommit?: (detail: CommitDetail) => void;\n\n /**\n * Property that triggers a callback immediately when a set of files have been rejected\n */\n onReject?: (detail: RejectDetail) => void;\n\n /**\n * Width of the File Picker\n */\n width?: Size;\n\n /**\n * Height of the File Picker\n */\n height?: Size;\n\n /**\n * If the children is provided, its contents replace the default filepicker. Filepicker will still set role and aria-label, but\n * the application is responsible for setting the tabindex.\n */\n children?: ComponentChildren;\n};\n\nexport type CommitDetail = {\n files: FileList;\n};\n\nexport type RejectDetail = {\n /**\n * Messages that should be displayed to the user (e.g. in an oj-messages component) describing rejected files.\n */\n messages: ComponentMessageItem[];\n\n /**\n * This property may be populated with a Promise to provide short-term feedback during a user interaction (typically drag and drop); the feedback should be cleared upon the resolution of this Promise.\n */\n until: Promise<void> | null;\n};\n\n/**\n * A file picker displays a clickable dropzone for selecting files from the device storage.\n */\nexport function FilePicker({\n capture = 'none',\n isDisabled = false,\n selectionMode = 'multiple',\n children,\n ...otherProps\n}: Props) {\n // this ref is added only for testing purposes. Allows the test to directly\n // call certain functions that should be tested\n const testHandlersRef = (otherProps as any).__testHandlerSymbol;\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const props = { capture, selectionMode, translations, ...otherProps };\n if (isDisabled) {\n return <DisabledFilePicker {...props}>{children}</DisabledFilePicker>;\n }\n return children ? (\n <CustomFilePicker testHandlersRef={testHandlersRef} {...props}>\n {children}\n </CustomFilePicker>\n ) : (\n <DefaultFilePicker testHandlersRef={testHandlersRef} {...props} />\n );\n}\n\ntype FilePickerProps = Props & {\n translations: BundleType;\n};\n\ntype DndProps = {\n onDragEnter: (event: Event) => void;\n onDragOver: (event: DragEvent) => void;\n onDragLeave: (event: DragEvent, mimeTypeDropFail: boolean) => void;\n onDrop: (event: DragEvent) => void;\n};\n\nexport type TestHandlersRef = ForwardedRef<\n DndProps & {\n onClickSelected: (files: FileList) => void;\n }\n>;\n\ntype TestHandlerProps = {\n // this ref is populated only in tests\n testHandlersRef?: TestHandlersRef;\n};\n\ntype DefaultProps = Omit<FilePickerProps, 'isDisabled' | 'children'> & TestHandlerProps;\n\n/**\n * The default file picker element.\n */\nconst DefaultFilePicker = (props: DefaultProps) => {\n const [validity, setValidity] = useState<'NA' | 'valid' | 'invalid'>('NA');\n\n // class added to change bg/border color based on if file is valid on drag and drop\n const validityClass =\n validity === 'valid' ? 'oj-c-valid-drop' : validity === 'invalid' ? 'oj-c-invalid-drop' : '';\n const rootRef = useRef<HTMLDivElement>(null);\n\n const { validation, dragAndDropProps, pressProps, isHover, hoverProps } =\n useFilepickerElementHelper(props, rootRef, setValidity);\n const mergedEventProps = mergeProps(pressProps, hoverProps);\n\n // These are backdoor handles that are used for testing purposes only\n useSetupTestRef(dragAndDropProps, validation, props.testHandlersRef || null);\n const classes = classNames([\n styles.base,\n props.width === undefined && styles.maxWidth,\n isHover && styles.hover\n ]);\n const { isTabbable } = useTabbableMode();\n const {\n accessibleLabel,\n primaryText,\n secondaryText,\n translations,\n selectionMode,\n width,\n height\n } = props;\n return (\n <div\n {...mergedEventProps}\n class={classes}\n tabIndex={isTabbable ? 0 : -1}\n role=\"button\"\n aria-label={getAriaLabel({\n accessibleLabel,\n isDisabled: false,\n translations,\n primaryText,\n secondaryText,\n selectionMode\n })}\n ref={rootRef}\n style={getStyles(width, height)}>\n <div class={classNames([styles.inner, validityClass])} {...dragAndDropProps}>\n {getDefaultTriggerContent(false, primaryText, secondaryText, translations, selectionMode)}\n </div>\n </div>\n );\n};\n\ntype DisabledProps = Omit<\n FilePickerProps,\n 'accept' | 'capture' | 'onCommit' | 'onReject' | 'isDisabled'\n>;\n\nconst childrenContainer = (children: ComponentChildren) => {\n return <div className={childrenStyles}>{children}</div>;\n};\n\n/**\n * The disabled file picker element.\n */\nconst DisabledFilePicker = ({\n children,\n accessibleLabel,\n primaryText,\n secondaryText,\n translations,\n selectionMode,\n width,\n height\n}: DisabledProps) => {\n return (\n <div\n class={classNames([\n styles.base,\n styles.inner,\n width === undefined && styles.maxWidth,\n 'oj-c-filepicker-disabled'\n ])}\n role=\"button\"\n aria-label={getAriaLabel({\n accessibleLabel,\n isDisabled: true,\n translations,\n primaryText,\n secondaryText\n })}\n aria-hidden=\"true\"\n style={getStyles(width, height)}>\n {(children && childrenContainer(children)) ||\n getDefaultTriggerContent(true, primaryText, secondaryText, translations, selectionMode)}\n </div>\n );\n};\n\ntype CustomProps = Omit<FilePickerProps, 'isDisabled' | 'primaryText' | 'secondaryText'> &\n TestHandlerProps;\n\n/**\n * The custom file picker element.\n */\nconst CustomFilePicker = (props: CustomProps) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const { validation, dragAndDropProps, pressProps, isHover, hoverProps } =\n useFilepickerElementHelper(props, rootRef);\n const mergedEventProps = mergeProps(pressProps, dragAndDropProps, hoverProps);\n\n // These are backdoor handles that are used for testing purposes only\n useSetupTestRef(dragAndDropProps, validation, props.testHandlersRef || null);\n\n const classes = classNames([\n styles.base,\n props.width === undefined && styles.maxWidth,\n isHover && styles.hover\n ]);\n const { accessibleLabel, translations, selectionMode } = props;\n const { isTabbable } = useTabbableMode();\n return (\n <div\n class={classes}\n tabIndex={isTabbable ? undefined : -1}\n role=\"button\"\n aria-label={getAriaLabel({ accessibleLabel, isDisabled: false, translations, selectionMode })}\n ref={rootRef}\n style={getStyles(props.width, props.height)}\n {...mergedEventProps}>\n {props.children && childrenContainer(props.children)}\n </div>\n );\n};\n\n/**\n * Only called for testing purposes, sets up the test ref that\n * allows for backdoor access to certain methods\n */\nconst useSetupTestRef = (\n dragAndDropProps: DndProps,\n validation: (files: FileList) => void,\n testHandlersRef: TestHandlersRef\n) => {\n useImperativeHandle(testHandlersRef, () => ({\n onDragEnter: dragAndDropProps.onDragEnter,\n onDragOver: dragAndDropProps.onDragOver,\n onDrop: dragAndDropProps.onDrop,\n onDragLeave: dragAndDropProps.onDragLeave,\n onClickSelected: validation\n }));\n};\n\nconst styles = {\n base: cssProps`${{\n display: 'block',\n height: '100%',\n width: '100%'\n }}`,\n maxWidth: cssProps`${{\n maxWidth: '400px'\n }}`,\n inner: cssProps`${{\n justifyContent: 'space-between',\n alignItems: 'center',\n boxSizing: 'border-box',\n borderRadius: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-border-radius)',\n paddingTop: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n paddingRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n paddingLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n paddingBottom: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-padding)',\n height: '100%',\n borderStyle: 'dashed',\n borderWidth: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-border-width)',\n backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-bg-color)',\n borderColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-border-color)',\n '&:active': { backgroundColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-bg-color-active)' }\n }}`,\n hover: cssProps`${{\n // @ts-ignore\n '&:not(:active)': {\n cursor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-cursor)'\n }\n }}`,\n\n pseudohover: cssProps`${{\n // @ts-ignore\n '@media(hover: hover)': {\n '&:hover:enabled:not(:active)': {\n cursor: 'var(--oj-c-PRIVATE-DO-NOT-USE-file-picker-cursor)'\n }\n }\n }}`\n};\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"],"names":["_jsx","Text","Spacer","sizeToCSS","trim","usePress","useHover","pickFiles","useRef","getClientHints","FilePicker","_a","capture","isDisabled","selectionMode","children","otherProps","__rest","testHandlersRef","__testHandlerSymbol","translations","useTranslationBundle","DisabledFilePicker","Object","assign","props","CustomFilePicker","DefaultFilePicker","rootRef","styles","base","width","undefined","maxWidth","isTabbable","useTabbableMode","accessibleLabel","primaryText","secondaryText","height","childrenContainer","className","childrenStyles","class","classNames","inner","role","getAriaLabel","style","getStyles","getDefaultTriggerContent","validation","dragAndDropProps","pressProps","isHover","hoverProps","useFilepickerElementHelper","classes","tabIndex","ref","mergedEventProps","useSetupTestRef","useImperativeHandle","onClickSelected"],"mappings":";;;IAaA;;IAEG;IACI,MAAM,wBAAwB,GAAG,CACtC,UAAyC,EACzC,WAA2C,EAC3C,aAA+C,EAC/C,YAAwB,EACxB,aAA+C,KAC7C;QACF,OAAO;IACL,QAAAA,cAAA,CAACC,SAAI,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,EAAE,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAA,EAAA,EAAA,QAAA,EACxE,cAAc,CAAC,WAAW,EAAE,YAAY,CAAC,EACrC,CAAA,CAAA;IACP,QAAAD,cAAA,CAACE,aAAM,EAAA,EAAC,MAAM,EAAC,MAAM,EAAU,CAAA;YAC/BF,cAAC,CAAAC,SAAI,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,EAAE,IAAI,EAAC,IAAI,EAAA,EAAA,EAAA,QAAA,EAC5D,gBAAgB,CAAC,aAAa,EAAE,YAAY,EAAE,aAAa,CAAC,EACxD,CAAA,CAAA;SACR,CAA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AA,IAAA,YAAA,EAAAC,YAAA,CAAA;UAAAX,eAAA;IAAAvB,MAAAA,UAAA,EAAA,KAAA;UAAAO,YAAA;IAAAN,MAAAA,aAAAA;IAAA,KAAA,CAAA;IAAA6C,IAAAA,GAAA,EAAA/B,OAAA;QAAAoB,KAAA,EAAAC,SAAA,CAAAxB,KAAA,CAAAM,KAAA,EAAAN,KAAA,CAAAc,MAAA,CAAA;OAAA,EAAAqB,gBAAA,EAAA;QAAA7C,QAAA,EAAAU,KAAA,CAAAV,QAAA,IAAAyB,iBAAA,CAAAf,KAAA,CAAAV,QAAA,CAAA;IAAA,GAAA,CAAA,CAAA,CAAA;IAYF,CA5BA,CAAA;IA8BA;;;IAGG;;;IACH,MAAA8C,eAAA,GAAA,CAAAT,gBAAA,EAAAD,UAAA,EAAAjC,eAAA,KAAA;MAKE4C,yBAAA,CAAA5C,eAAA,EAAA,OAAA;iDAAA;+CAAA;uCAAA;iDAAA;IAKE6C,IAAAA,eAAA,EAAAZ,UAAAA;IALF,GAAA,CAAA,CAAA,CAAA;IAOF,CAZA,CAAA;;IAcA,MAAAtB,MAAA,GAAA;YAAA,aAAA;gBAAA,iBAAA;aAAA,eAAA;aAAA,eAAA;;IAAA,CAAA,CAAA;IAyCA,MAAAa,cAAA,GAAA,wBAAA;;;;;;;;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @oracle/oraclejet-preact: 14.0.7 */
|
|
2
|
+
define(['exports', './tslib.es6-71b1ba5b', 'preact/jsx-runtime', './utils/UNSAFE_interpolations/dimensions', './utils/UNSAFE_mergeInterpolations', 'module', './utils/UNSAFE_interpolations/boxalignment', './utils/UNSAFE_interpolations/flexbox', './utils/UNSAFE_interpolations/flexitem', './utils/UNSAFE_classNames', './flexbox-4dd0bbb4', './flexitem-7363d040', './classNames-027de734'], (function (exports, tslib_es6, jsxRuntime, utils_UNSAFE_interpolations_dimensions, utils_UNSAFE_mergeInterpolations, linaria, utils_UNSAFE_interpolations_boxalignment, utils_UNSAFE_interpolations_flexbox, utils_UNSAFE_interpolations_flexitem, utils_UNSAFE_classNames, flexbox, flexitem, classNames) { 'use strict';
|
|
3
|
+
|
|
4
|
+
const baseStyles = "baseStyles-1iqrgyt";
|
|
5
|
+
const marginZeroStyles = "marginZeroStyles-1js2dqi";
|
|
6
|
+
const interpolations = [...Object.values(utils_UNSAFE_interpolations_dimensions.dimensionInterpolations), ...Object.values(flexbox.flexboxInterpolations), ...Object.values(flexitem.flexitemInterpolations), ...Object.values(utils_UNSAFE_interpolations_boxalignment.boxAlignmentInterpolations)];
|
|
7
|
+
const styleInterpolations = utils_UNSAFE_mergeInterpolations.mergeInterpolations(interpolations);
|
|
8
|
+
const Flex = _a => {
|
|
9
|
+
var {
|
|
10
|
+
children,
|
|
11
|
+
hasZeroMargins
|
|
12
|
+
} = _a,
|
|
13
|
+
props = tslib_es6.__rest(_a, ["children", "hasZeroMargins"]);
|
|
14
|
+
|
|
15
|
+
const flexComponentClasses = classNames.classNames([baseStyles, hasZeroMargins && marginZeroStyles]);
|
|
16
|
+
|
|
17
|
+
const _b = styleInterpolations(props),
|
|
18
|
+
{
|
|
19
|
+
class: cls
|
|
20
|
+
} = _b,
|
|
21
|
+
styles = tslib_es6.__rest(_b, ["class"]);
|
|
22
|
+
|
|
23
|
+
return jsxRuntime.jsx("div", Object.assign({
|
|
24
|
+
class: `${flexComponentClasses} ${cls}`,
|
|
25
|
+
style: styles
|
|
26
|
+
}, {
|
|
27
|
+
children: children
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.Flex = Flex;
|
|
32
|
+
|
|
33
|
+
}));
|
|
34
|
+
/* */
|
|
35
|
+
//# sourceMappingURL=Flex-7762d39c.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex-
|
|
1
|
+
{"version":3,"file":"Flex-7762d39c.js","sources":["../../src/UNSAFE_Flex/Flex.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 { ComponentChildren } from 'preact';\nimport { dimensionInterpolations } from '../utils/UNSAFE_interpolations/dimensions';\nimport type { DimensionProps } from '../utils/UNSAFE_interpolations/dimensions';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { flexboxInterpolations } from '../utils/UNSAFE_interpolations/flexbox';\nimport type { FlexboxProps } from '../utils/UNSAFE_interpolations/flexbox';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport type { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { classNames } from '../utils/UNSAFE_classNames';\n\ntype StyleProps = DimensionProps & FlexboxProps & FlexitemProps & BoxAlignmentProps;\n\ntype Props = StyleProps & {\n children?: ComponentChildren;\n hasZeroMargins?: boolean;\n};\n\nconst baseStyles = cssProps`${{ display: 'flex' }}`;\nconst marginZeroStyles = cssProps`${{\n /* @ts-ignore */\n '& > *': {\n marginTop: '0 !important',\n marginBottom: '0 !important',\n marginLeft: '0 !important',\n marginRight: '0 !important'\n }\n}}`;\n\nconst interpolations = [\n ...Object.values(dimensionInterpolations),\n ...Object.values(flexboxInterpolations),\n ...Object.values(flexitemInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\nexport const Flex = ({ children, hasZeroMargins, ...props }: Props) => {\n const flexComponentClasses = classNames([baseStyles, hasZeroMargins && marginZeroStyles]);\n const { class: cls, ...styles } = styleInterpolations(props);\n return (\n <div class={`${flexComponentClasses} ${cls}`} style={styles}>\n {children}\n </div>\n );\n};\n"],"names":["baseStyles","marginZeroStyles","interpolations","Object","values","dimensionInterpolations","flexboxInterpolations","flexitemInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","Flex","_a","flexComponentClasses","classNames","hasZeroMargins","_b","props","class","cls","styles","__rest","_jsx","assign","style","children"],"mappings":";;;IA2BA,MAAAA,UAAA,GAAA,oBAAA,CAAA;IACA,MAAAC,gBAAA,GAAA,0BAAA,CAAA;IAUA,MAAAC,cAAA,GAAA,CACE,GAAAC,MAAA,CAAAC,MAAA,CAAAC,8DAAA,CADF,EAEE,GAAAF,MAAA,CAAAC,MAAA,CAAAE,6BAAA,CAFF,EAGE,GAAAH,MAAA,CAAAC,MAAA,CAAAG,+BAAA,CAHF,EAIE,GAAAJ,MAAA,CAAAC,MAAA,CAAAI,mEAAA,CAJF,CAAA,CAAA;IAOA,MAAAC,mBAAA,GAAAC,oDAAA,CAAAR,cAAA,CAAA,CAAA;AAEAS,UAAAA,IAAA,GAAAC,EAAA,IAAA;;;;;;;MACE,MAAAC,oBAAA,GAAAC,qBAAA,CAAA,CAAAd,UAAA,EAAAe,cAAA,IAAAd,gBAAA,CAAA,CAAA,CAAA;;IACA,EAAA,MAAAe,EAAA,GAAAP,mBAAA,CAAAQ,KAAA,CAAA;YAAA;IAAAC,IAAAA,KAAA,EAAAC,GAAAA;IAAA,GAAA,GAAAH,EAAA;YAAAI,MAAA,GAAAC,gBAAA,CAAAL,EAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;IACA,EAAA,OAAAM,cAAA,CAAA,KAAA,EAAAnB,MAAA,CAAAoB,MAAA,CAAA;IAAAL,IAAAA,KAAA,EAAA,CAAA,EAAAL,oBAAA,CAAA,CAAA,EAAAM,GAAA,CAAA,CAAA;IAAAK,IAAAA,KAAA,EAAAJ,MAAAA;IAAA,GAAA,EAAA;IAAAK,IAAAA,QAAA,EAAAA,QAAAA;IAAA,GAAA,CAAA,CAAA,CAAA;IAKF;;;;;;;;;;;"}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/* @oracle/oraclejet-preact: 14.0.7 */
|
|
2
|
+
define(['exports', 'preact/jsx-runtime', 'preact/hooks', 'preact/compat', './index-e9199379', './utils/PRIVATE_refUtils', './hooks/UNSAFE_useOutsideClick', './hooks/UNSAFE_useUser'], (function (exports, jsxRuntime, hooks, compat, hooks_UNSAFE_useFloating, utils_PRIVATE_refUtils, hooks_UNSAFE_useOutsideClick, hooks_UNSAFE_useUser) { 'use strict';
|
|
3
|
+
|
|
4
|
+
const FloatingTail = compat.forwardRef(({}, arrowRef) => {
|
|
5
|
+
return (jsxRuntime.jsxs("div", Object.assign({ ref: arrowRef }, { children: [" ", jsxRuntime.jsx("div", {}), " "] })));
|
|
6
|
+
});
|
|
7
|
+
function renderTail(data, anchorRef, arrowRef, tail, isRtl) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
if (tail === 'simple' && data.arrow) {
|
|
10
|
+
const { x, y, centerOffset } = data.arrow;
|
|
11
|
+
const arrowEl = arrowRef.current;
|
|
12
|
+
const arrowSize = 7;
|
|
13
|
+
const arrowSizeCorner = 6;
|
|
14
|
+
const arrowInnerEl = (_a = arrowRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('div');
|
|
15
|
+
const arrowInnerSize = 5;
|
|
16
|
+
const arrowInnerSizeCorner = 5;
|
|
17
|
+
const arrowCommonStyle = {
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
width: '0px',
|
|
20
|
+
height: '0px'
|
|
21
|
+
};
|
|
22
|
+
let anchorRefHeight = 0;
|
|
23
|
+
let anchorRefWidth = 0;
|
|
24
|
+
const current = anchorRef.current;
|
|
25
|
+
// @ts-ignore. Type 'Element | Coords' issues
|
|
26
|
+
// Property 'x' does not exist on type 'Element'.
|
|
27
|
+
// Property 'y' does not exist on type 'Element'.
|
|
28
|
+
const isAnchorRefElement = (current === null || current === void 0 ? void 0 : current.x) === undefined && (current === null || current === void 0 ? void 0 : current.y) === undefined;
|
|
29
|
+
if (isAnchorRefElement) {
|
|
30
|
+
// @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.
|
|
31
|
+
anchorRefHeight = Math.round(current.getBoundingClientRect().height);
|
|
32
|
+
// @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.
|
|
33
|
+
anchorRefWidth = Math.round((_b = anchorRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width);
|
|
34
|
+
}
|
|
35
|
+
const isCornerVerticalPlacement = isAnchorRefElement ?
|
|
36
|
+
Math.abs(centerOffset) >= anchorRefHeight / 2 - arrowSize / 2 :
|
|
37
|
+
['start-top-corner', 'start-bottom-corner', 'end-top-corner', 'end-bottom-corner'].includes(data.origPlacement);
|
|
38
|
+
const isCornerHorizontalPlacement = isAnchorRefElement ?
|
|
39
|
+
Math.abs(centerOffset) >= anchorRefWidth / 2 - arrowSize / 2 :
|
|
40
|
+
['top-start-corner', 'top-end-corner', 'bottom-start-corner', 'bottom-end-corner'].includes(data.origPlacement);
|
|
41
|
+
const isCenter = centerOffset === 0;
|
|
42
|
+
const isCenterOffsetPositive = centerOffset > 0;
|
|
43
|
+
// Set styles of the arrow
|
|
44
|
+
setElementStyle(arrowCommonStyle, arrowEl);
|
|
45
|
+
setElementStyle(arrowCommonStyle, arrowInnerEl);
|
|
46
|
+
// Set sizes of the arrow
|
|
47
|
+
setArrowSizes(isCornerVerticalPlacement || isCornerHorizontalPlacement);
|
|
48
|
+
// Corner vs. normal arrow
|
|
49
|
+
function setArrowSizes(isCornerPlacement) {
|
|
50
|
+
// Outer arrow (shadow)
|
|
51
|
+
const arrowFinalSize = isCornerPlacement ? arrowSizeCorner : arrowSize;
|
|
52
|
+
setArrowStyle({
|
|
53
|
+
borderTop: `${getSize(arrowFinalSize)} solid rgba(var(--oj-c-PRIVATE-DO-NOT-USE-palette-neutral-rgb-90), 0.1)`,
|
|
54
|
+
borderRight: getTransparentBorder(arrowFinalSize),
|
|
55
|
+
borderLeft: getTransparentBorder(arrowFinalSize)
|
|
56
|
+
});
|
|
57
|
+
// Inner arrow
|
|
58
|
+
const arrowInnerFinalSize = isCornerPlacement ? arrowInnerSizeCorner : arrowInnerSize;
|
|
59
|
+
setArrowInnerStyle({
|
|
60
|
+
borderTop: `${getSize(arrowInnerFinalSize)} solid var(--oj-c-PRIVATE-DO-NOT-USE-popup-bg-color)`,
|
|
61
|
+
borderRight: `${getTransparentBorder(arrowInnerFinalSize)}`,
|
|
62
|
+
borderLeft: `${getTransparentBorder(arrowInnerFinalSize)}`,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function setElementStyle(style, element) {
|
|
66
|
+
//@ts-ignore - regarding types arrowEl.style is not under our control
|
|
67
|
+
Object.assign(element === null || element === void 0 ? void 0 : element.style, style);
|
|
68
|
+
}
|
|
69
|
+
function setArrowStyle(style) {
|
|
70
|
+
setElementStyle(style, arrowEl);
|
|
71
|
+
}
|
|
72
|
+
function setArrowInnerStyle(style) {
|
|
73
|
+
setElementStyle(style, arrowInnerEl);
|
|
74
|
+
}
|
|
75
|
+
function getTurn(eighth) {
|
|
76
|
+
return `rotate(${(eighth) * 45}deg)`;
|
|
77
|
+
}
|
|
78
|
+
function getSize(size) {
|
|
79
|
+
return `${size}px`;
|
|
80
|
+
}
|
|
81
|
+
function getTransparentBorder(size) {
|
|
82
|
+
return `${getSize(size)} solid transparent`;
|
|
83
|
+
}
|
|
84
|
+
const placementArr = data.placement.split('-');
|
|
85
|
+
const side = placementArr[0];
|
|
86
|
+
switch (side) {
|
|
87
|
+
case 'top':
|
|
88
|
+
setArrowTop();
|
|
89
|
+
break;
|
|
90
|
+
case 'end':
|
|
91
|
+
isRtl ? setArrowStart() : setArrowEnd();
|
|
92
|
+
break;
|
|
93
|
+
case 'bottom':
|
|
94
|
+
setArrowBottom();
|
|
95
|
+
break;
|
|
96
|
+
case 'start':
|
|
97
|
+
isRtl ? setArrowEnd() : setArrowStart();
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
function setArrowTop() {
|
|
101
|
+
if (x != undefined) {
|
|
102
|
+
if (isCornerHorizontalPlacement) {
|
|
103
|
+
// Top corners
|
|
104
|
+
setArrowStyle({
|
|
105
|
+
top: '',
|
|
106
|
+
bottom: getSize(-arrowSize + 2),
|
|
107
|
+
left: getSize(x + (isCenterOffsetPositive ? 5 : -5)),
|
|
108
|
+
transform: getTurn(isCenterOffsetPositive ? 5 : 3)
|
|
109
|
+
});
|
|
110
|
+
setCornerArrowInner();
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
setArrowStyle({
|
|
114
|
+
top: '',
|
|
115
|
+
bottom: getSize(-arrowSize),
|
|
116
|
+
left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),
|
|
117
|
+
transform: getTurn(0)
|
|
118
|
+
});
|
|
119
|
+
setNonCornerArrowInner();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function setArrowEnd() {
|
|
124
|
+
if (y != undefined) {
|
|
125
|
+
if (isCornerVerticalPlacement) {
|
|
126
|
+
// End corners
|
|
127
|
+
setArrowStyle({
|
|
128
|
+
top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),
|
|
129
|
+
right: '',
|
|
130
|
+
left: getSize(-arrowSize - 1),
|
|
131
|
+
transform: getTurn(isCenterOffsetPositive ? 7 : 5)
|
|
132
|
+
});
|
|
133
|
+
setCornerArrowInner();
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
// End
|
|
137
|
+
setArrowStyle({
|
|
138
|
+
top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),
|
|
139
|
+
right: '',
|
|
140
|
+
left: getSize(-arrowSize * 1.5),
|
|
141
|
+
transform: getTurn(2)
|
|
142
|
+
});
|
|
143
|
+
setNonCornerArrowInner();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
function setArrowBottom() {
|
|
148
|
+
if (x != undefined) {
|
|
149
|
+
if (isCornerHorizontalPlacement) {
|
|
150
|
+
// Bottom corners
|
|
151
|
+
setArrowStyle({
|
|
152
|
+
top: getSize(-arrowSize + 3),
|
|
153
|
+
bottom: '',
|
|
154
|
+
left: getSize(x + (isCenterOffsetPositive ? 4 : -4)),
|
|
155
|
+
transform: getTurn(isCenterOffsetPositive ? 2 : 6)
|
|
156
|
+
});
|
|
157
|
+
setArrowInnerStyle({
|
|
158
|
+
top: getSize(-arrowInnerSize),
|
|
159
|
+
left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 1 : -1))
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
setArrowStyle({
|
|
164
|
+
top: getSize(-arrowSize),
|
|
165
|
+
bottom: '',
|
|
166
|
+
left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),
|
|
167
|
+
transform: getTurn(4)
|
|
168
|
+
});
|
|
169
|
+
setNonCornerArrowInner();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function setArrowStart() {
|
|
174
|
+
if (y != undefined) {
|
|
175
|
+
if (isCornerVerticalPlacement) {
|
|
176
|
+
// Start corners
|
|
177
|
+
setArrowStyle({
|
|
178
|
+
top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),
|
|
179
|
+
right: getSize(-arrowSize - 1),
|
|
180
|
+
left: '',
|
|
181
|
+
transform: getTurn(isCenterOffsetPositive ? 1 : 3)
|
|
182
|
+
});
|
|
183
|
+
setArrowInnerStyle({
|
|
184
|
+
top: getSize(-arrowInnerSize),
|
|
185
|
+
left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? -2 : 2))
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
// Start
|
|
190
|
+
setArrowStyle({
|
|
191
|
+
top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),
|
|
192
|
+
right: getSize(-arrowSize * 1.5),
|
|
193
|
+
left: '',
|
|
194
|
+
transform: getTurn(6)
|
|
195
|
+
});
|
|
196
|
+
setNonCornerArrowInner();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function setCornerArrowInner() {
|
|
201
|
+
setArrowInnerStyle({
|
|
202
|
+
top: getSize(-arrowInnerSize),
|
|
203
|
+
left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 2 : -2))
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
function setNonCornerArrowInner() {
|
|
207
|
+
setArrowInnerStyle({
|
|
208
|
+
top: getSize(-arrowInnerSize - 2),
|
|
209
|
+
left: getSize(-arrowInnerSize)
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function isElement(value) {
|
|
216
|
+
return value instanceof Element;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* A floating component allows the user to create a floating element that is displayed on the the "top layer" of all other elements.
|
|
220
|
+
* The Floating component is an advanced component and is used underneath Popup, Tooltip, SelectMultiple, Menu and other components.
|
|
221
|
+
*/
|
|
222
|
+
const Floating = compat.forwardRef(({ children, onClickOutside, placement = 'bottom', anchorRef, offsetValue, class: className, tail = 'none', flipOptions = { mainAxis: true, crossAxis: false }, shiftOptions = { mainAxis: true, crossAxis: false }, onPosition }, ref) => {
|
|
223
|
+
const arrowRef = hooks.useRef(null);
|
|
224
|
+
const [previousAnchor, setPreviousAnchor] = hooks.useState(null);
|
|
225
|
+
// we need to be sure anchorRef.current exists in first call
|
|
226
|
+
// to be able to set the previousAnchor state
|
|
227
|
+
hooks.useLayoutEffect(() => {
|
|
228
|
+
setPreviousAnchor(anchorRef.current);
|
|
229
|
+
}, []);
|
|
230
|
+
// In case anchorRef.current changes and we need to update floating position
|
|
231
|
+
// when it changes, we need to have copy in the state.
|
|
232
|
+
// For example when anchorRef is Coords( virtual element)
|
|
233
|
+
if (anchorRef.current !== previousAnchor) {
|
|
234
|
+
setPreviousAnchor(anchorRef.current);
|
|
235
|
+
}
|
|
236
|
+
const { direction } = hooks_UNSAFE_useUser.useUser();
|
|
237
|
+
const isRtl = direction === 'rtl';
|
|
238
|
+
const _onPosition = hooks.useCallback((data) => {
|
|
239
|
+
renderTail(data, anchorRef, arrowRef, tail, isRtl);
|
|
240
|
+
onPosition === null || onPosition === void 0 ? void 0 : onPosition(data);
|
|
241
|
+
}, [placement, anchorRef, arrowRef, tail, onPosition]);
|
|
242
|
+
const { x, y, reference, floating, refs } = hooks_UNSAFE_useFloating.useFloating({
|
|
243
|
+
placement: placement,
|
|
244
|
+
middleware: [
|
|
245
|
+
hooks_UNSAFE_useFloating.offset(offsetValue),
|
|
246
|
+
hooks_UNSAFE_useFloating.b({
|
|
247
|
+
mainAxis: flipOptions.mainAxis,
|
|
248
|
+
crossAxis: flipOptions.crossAxis
|
|
249
|
+
}),
|
|
250
|
+
hooks_UNSAFE_useFloating.D({
|
|
251
|
+
mainAxis: shiftOptions.mainAxis,
|
|
252
|
+
crossAxis: shiftOptions.crossAxis,
|
|
253
|
+
limiter: hooks_UNSAFE_useFloating.L({
|
|
254
|
+
mainAxis: shiftOptions.mainAxis,
|
|
255
|
+
crossAxis: shiftOptions.crossAxis
|
|
256
|
+
})
|
|
257
|
+
}),
|
|
258
|
+
...(arrowRef.current
|
|
259
|
+
? [
|
|
260
|
+
hooks_UNSAFE_useFloating.m({
|
|
261
|
+
element: arrowRef.current
|
|
262
|
+
})
|
|
263
|
+
]
|
|
264
|
+
: [])
|
|
265
|
+
],
|
|
266
|
+
whileElementsMounted: hooks_UNSAFE_useFloating.N,
|
|
267
|
+
onPosition: _onPosition
|
|
268
|
+
});
|
|
269
|
+
hooks_UNSAFE_useOutsideClick.useOutsideClick({ isDisabled: false, ref: refs.floating, handler: onClickOutside });
|
|
270
|
+
hooks.useLayoutEffect(() => {
|
|
271
|
+
if (isElement(previousAnchor)) {
|
|
272
|
+
const element = previousAnchor;
|
|
273
|
+
reference(element);
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
const coords = previousAnchor;
|
|
277
|
+
const virtualEl = {
|
|
278
|
+
getBoundingClientRect() {
|
|
279
|
+
return {
|
|
280
|
+
width: 0,
|
|
281
|
+
height: 0,
|
|
282
|
+
x: coords.x,
|
|
283
|
+
y: coords.y,
|
|
284
|
+
top: coords.y,
|
|
285
|
+
left: coords.x,
|
|
286
|
+
right: coords.x,
|
|
287
|
+
bottom: coords.y
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
if (coords && coords.x != null) {
|
|
292
|
+
reference(virtualEl);
|
|
293
|
+
}
|
|
294
|
+
}, [previousAnchor, reference]);
|
|
295
|
+
const stableRef = hooks.useMemo(() => utils_PRIVATE_refUtils.mergeRefs(ref, floating), [ref, floating]);
|
|
296
|
+
const content = (jsxRuntime.jsxs("div", Object.assign({ class: className, ref: stableRef, style: {
|
|
297
|
+
display: 'block',
|
|
298
|
+
visibility: x == null && y == null ? 'hidden' : 'visible',
|
|
299
|
+
position: 'absolute',
|
|
300
|
+
top: y !== null && y !== void 0 ? y : '',
|
|
301
|
+
left: x !== null && x !== void 0 ? x : ''
|
|
302
|
+
} }, { children: [children, jsxRuntime.jsx(FloatingTail, { ref: arrowRef })] })));
|
|
303
|
+
return content;
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
exports.Floating = Floating;
|
|
307
|
+
|
|
308
|
+
}));
|
|
309
|
+
/* */
|
|
310
|
+
//# sourceMappingURL=Floating-08ac18d2.js.map
|