@oracle/oraclejet-preact 14.0.7 → 14.0.9
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-4a8dffdc.js +2 -0
- package/amd/{Badge-3a3bc336.js.map → Badge-4a8dffdc.js.map} +1 -1
- package/amd/BaseButton-74c4cc6d.js +2 -0
- package/amd/{BaseButton-20a653f3.js.map → BaseButton-74c4cc6d.js.map} +1 -1
- package/amd/Button-9e7d3aee.js +2 -0
- package/{cjs/Button-6d645302.js.map → amd/Button-9e7d3aee.js.map} +1 -1
- package/amd/Chip-459ad12d.js +2 -0
- package/{cjs/Chip-a6ecbefc.js.map → amd/Chip-459ad12d.js.map} +1 -1
- package/amd/ClearIcon-26c88669.js +2 -0
- package/amd/{ClearIcon-27a5c275.js.map → ClearIcon-26c88669.js.map} +1 -1
- package/amd/Collection-2ec8c021.js +2 -0
- package/amd/{Collection-55b75a82.js.map → Collection-2ec8c021.js.map} +1 -1
- package/amd/ComponentMessage-cf276ac1.js +2 -0
- package/amd/{ComponentMessage-5603259e.js.map → ComponentMessage-cf276ac1.js.map} +1 -1
- package/amd/ComponentMessageContainer-8289fc27.js +2 -0
- package/{cjs/ComponentMessageContainer-c0c21e1b.js.map → amd/ComponentMessageContainer-8289fc27.js.map} +1 -1
- package/amd/Divider-349928ea.js +2 -0
- package/amd/{Divider-8cd412fd.js.map → Divider-349928ea.js.map} +1 -1
- package/amd/FilePicker-0e8f1c19.js +2 -0
- package/amd/{FilePicker-bb70dacb.js.map → FilePicker-0e8f1c19.js.map} +1 -1
- package/amd/Flex-5d2a4e5c.js +2 -0
- package/amd/{Flex-7762d39c.js.map → Flex-5d2a4e5c.js.map} +1 -1
- package/amd/Floating-f87b7541.js +2 -0
- package/amd/{Floating-08ac18d2.js.map → Floating-f87b7541.js.map} +1 -1
- package/amd/FocusTrap-c2f57b0b.js +2 -0
- package/amd/{FocusTrap-420f2714.js.map → FocusTrap-c2f57b0b.js.map} +1 -1
- package/amd/FormControlUtils-3a33f7f2.js +2 -0
- package/amd/{FormControlUtils-802d298a.js.map → FormControlUtils-3a33f7f2.js.map} +1 -1
- package/amd/Heading-13d4dce5.js +2 -0
- package/amd/{Heading-431829e1.js.map → Heading-13d4dce5.js.map} +1 -1
- package/amd/HiddenAccessible-48a1c065.js +2 -0
- package/amd/{HiddenAccessible-1dadf91a.js.map → HiddenAccessible-48a1c065.js.map} +1 -1
- package/amd/HighlightText-d2f55c1a.js +2 -0
- package/{cjs/HighlightText-10042675.js.map → amd/HighlightText-d2f55c1a.js.map} +1 -1
- package/amd/Icon-469e76d8.js +2 -0
- package/amd/{Icon-a6ef6699.js.map → Icon-469e76d8.js.map} +1 -1
- package/amd/Indexer-3137a30e.js +2 -0
- package/amd/{Indexer-81bf2fe0.js.map → Indexer-3137a30e.js.map} +1 -1
- package/amd/InlineHelpSource-f3840228.js +2 -0
- package/amd/{InlineHelpSource-8a22f914.js.map → InlineHelpSource-f3840228.js.map} +1 -1
- package/amd/Link-57ef225a.js +2 -0
- package/amd/{Link-3169fd72.js.map → Link-57ef225a.js.map} +1 -1
- package/amd/List-8389e35a.js +2 -0
- package/amd/{List-26b59d92.js.map → List-8389e35a.js.map} +1 -1
- package/amd/ListItemTextLayout-9da67b5e.js +2 -0
- package/amd/{ListItemTextLayout-f6a3d721.js.map → ListItemTextLayout-9da67b5e.js.map} +1 -1
- package/amd/ListView-47d30878.js +2 -0
- package/amd/{ListView-3b9a3235.js.map → ListView-47d30878.js.map} +1 -1
- package/amd/LoadMoreCollection-7f79ccb7.js +2 -0
- package/amd/{LoadMoreCollection-b7513141.js.map → LoadMoreCollection-7f79ccb7.js.map} +1 -1
- package/amd/Menu-b3b16225.js +2 -0
- package/amd/Menu-b3b16225.js.map +1 -0
- package/amd/MenuDivider-45e2995c.js +2 -0
- package/amd/{MenuDivider-b9309ceb.js.map → MenuDivider-45e2995c.js.map} +1 -1
- package/amd/MenuItem-833ecd9b.js +2 -0
- package/amd/MenuItem-833ecd9b.js.map +1 -0
- package/amd/Message.types-9e2aa012.js +2 -0
- package/amd/{Message.types-3ff18727.js.map → Message.types-9e2aa012.js.map} +1 -1
- package/amd/MessageCloseButton-61017be7.js +2 -0
- package/{cjs/MessageCloseButton-a8d04f54.js.map → amd/MessageCloseButton-61017be7.js.map} +1 -1
- package/amd/MessageDetail-c97f8702.js +2 -0
- package/amd/{MessageDetail-dd86fa2b.js.map → MessageDetail-c97f8702.js.map} +1 -1
- package/amd/MessageFormattingUtils-750e5603.js +2 -0
- package/amd/{MessageFormattingUtils-0ffdac02.js.map → MessageFormattingUtils-750e5603.js.map} +1 -1
- package/amd/MessageLayer-d371bf50.js +2 -0
- package/amd/{MessageLayer-6da93adb.js.map → MessageLayer-d371bf50.js.map} +1 -1
- package/amd/MessageStartIcon-f260f925.js +2 -0
- package/amd/{MessageStartIcon-1b57b659.js.map → MessageStartIcon-f260f925.js.map} +1 -1
- package/amd/MessageSummary-201a86a6.js +2 -0
- package/amd/{MessageSummary-cf0af1b2.js.map → MessageSummary-201a86a6.js.map} +1 -1
- package/amd/MessageTimestamp-f1157b97.js +2 -0
- package/amd/{MessageTimestamp-0e995235.js.map → MessageTimestamp-f1157b97.js.map} +1 -1
- package/amd/MessageToast-2477fd00.js +2 -0
- package/amd/{MessageToast-e0f94cbe.js.map → MessageToast-2477fd00.js.map} +1 -1
- package/amd/MessageUtils-4d03692a.js +2 -0
- package/amd/{MessageUtils-0bf10cfa.js.map → MessageUtils-4d03692a.js.map} +1 -1
- package/amd/MessagesManager-34c5a4fb.js +2 -0
- package/amd/{MessagesManager-da52103a.js.map → MessagesManager-34c5a4fb.js.map} +1 -1
- package/amd/MeterCircle-25933f46.js +2 -0
- package/amd/{MeterCircle-bb948163.js.map → MeterCircle-25933f46.js.map} +1 -1
- package/amd/Modal-e7330e5f.js +2 -0
- package/amd/{Modal-be0762b5.js.map → Modal-e7330e5f.js.map} +1 -1
- package/amd/NumberInputText-cb538f0f.js +2 -0
- package/amd/{NumberInputText-d762d134.js.map → NumberInputText-cb538f0f.js.map} +1 -1
- package/amd/PRIVATE_Collection.js +1 -17
- package/amd/PRIVATE_Collection.js.map +1 -1
- package/amd/PRIVATE_List.css +17 -18
- package/amd/PRIVATE_List.js +1 -18
- package/amd/PRIVATE_List.js.map +1 -1
- package/amd/PRIVATE_Message.css +34 -35
- package/amd/PRIVATE_Message.js +1 -278
- package/amd/PRIVATE_Message.js.map +1 -1
- package/amd/PRIVATE_MessageLayer.css +7 -8
- package/amd/PRIVATE_MessageLayer.js +1 -12
- package/amd/PRIVATE_MessageLayer.js.map +1 -1
- package/amd/PRIVATE_Meter.js +1 -66
- package/amd/PRIVATE_Meter.js.map +1 -1
- package/amd/PRIVATE_SelectCommon.css +18 -19
- package/amd/PRIVATE_SelectCommon.js +1 -632
- package/amd/PRIVATE_SelectCommon.js.map +1 -1
- package/amd/PRIVATE_TransitionGroup.js +1 -414
- package/amd/PRIVATE_TransitionGroup.js.map +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -19
- package/amd/PRIVATE_VirtualizedCollection.js.map +1 -1
- package/amd/ReadonlyTextFieldInput-75c7ea07.js +2 -0
- package/amd/{ReadonlyTextFieldInput-4583f049.js.map → ReadonlyTextFieldInput-75c7ea07.js.map} +1 -1
- package/amd/SelectMenuItem-55d450b6.js +2 -0
- package/amd/SelectMenuItem-55d450b6.js.map +1 -0
- package/amd/SelectMultiple-6039bfb6.js +2 -0
- package/amd/SelectMultiple-6039bfb6.js.map +1 -0
- package/amd/SelectSingle-c49479d2.js +2 -0
- package/amd/SelectSingle-c49479d2.js.map +1 -0
- package/amd/Skeleton-8224d7eb.js +2 -0
- package/amd/{Skeleton-d0383726.js.map → Skeleton-8224d7eb.js.map} +1 -1
- package/amd/Spacer-d6a0ca2e.js +2 -0
- package/amd/{Spacer-165e178f.js.map → Spacer-d6a0ca2e.js.map} +1 -1
- package/amd/SplitMenuButton-dc0ac6e9.js +2 -0
- package/amd/{SplitMenuButton-df0ee526.js.map → SplitMenuButton-dc0ac6e9.js.map} +1 -1
- package/amd/Text-e6b5e504.js +2 -0
- package/amd/{Text-de291c3f.js.map → Text-e6b5e504.js.map} +1 -1
- package/amd/TextArea-9d869924.js +2 -0
- package/amd/{TextArea-25fa8171.js.map → TextArea-9d869924.js.map} +1 -1
- package/amd/TextAreaAutosize-363e87a2.js +2 -0
- package/amd/{TextAreaAutosize-370b4a47.js.map → TextAreaAutosize-363e87a2.js.map} +1 -1
- package/amd/TextFieldInput-415fbe3b.js +2 -0
- package/{cjs/TextFieldInput-f2f3f0a0.js.map → amd/TextFieldInput-415fbe3b.js.map} +1 -1
- package/amd/UNSAFE_AspectRatio.css +1 -2
- package/amd/UNSAFE_AspectRatio.js +1 -79
- package/amd/UNSAFE_AspectRatio.js.map +1 -1
- package/amd/UNSAFE_Avatar.css +8 -9
- package/amd/UNSAFE_Avatar.js +1 -106
- package/amd/UNSAFE_Avatar.js.map +1 -1
- package/amd/UNSAFE_Badge.css +13 -14
- package/amd/UNSAFE_Badge.js +1 -11
- package/amd/UNSAFE_Badge.js.map +1 -1
- package/amd/UNSAFE_BaseButton.css +15 -16
- package/amd/UNSAFE_BaseButton.js +1 -11
- package/amd/UNSAFE_BaseButton.js.map +1 -1
- package/amd/UNSAFE_Button.css +8 -9
- package/amd/UNSAFE_Button.js +1 -12
- package/amd/UNSAFE_Button.js.map +1 -1
- package/amd/UNSAFE_Center.js +1 -28
- package/amd/UNSAFE_Center.js.map +1 -1
- package/amd/UNSAFE_Chip.css +7 -8
- package/amd/UNSAFE_Chip.js +1 -11
- package/amd/UNSAFE_Chip.js.map +1 -1
- package/amd/UNSAFE_Collapsible.css +9 -10
- package/amd/UNSAFE_Collapsible.js +1 -226
- package/amd/UNSAFE_Collapsible.js.map +1 -1
- package/amd/UNSAFE_Collection.js +1 -13
- package/amd/UNSAFE_Collection.js.map +1 -1
- package/amd/UNSAFE_ComponentMessage.css +3 -4
- package/amd/UNSAFE_ComponentMessage.js +1 -12
- package/amd/UNSAFE_ComponentMessage.js.map +1 -1
- package/amd/UNSAFE_Divider.css +1 -2
- package/amd/UNSAFE_Divider.js +1 -11
- package/amd/UNSAFE_Divider.js.map +1 -1
- package/amd/UNSAFE_EmptyList.js +1 -16
- package/amd/UNSAFE_EmptyList.js.map +1 -1
- package/amd/UNSAFE_Environment.js +1 -84
- package/amd/UNSAFE_Environment.js.map +1 -1
- package/amd/UNSAFE_FilePicker.css +6 -7
- package/amd/UNSAFE_FilePicker.js +1 -11
- package/amd/UNSAFE_FilePicker.js.map +1 -1
- package/amd/UNSAFE_Flex.css +2 -3
- package/amd/UNSAFE_Flex.js +1 -11
- package/amd/UNSAFE_Flex.js.map +1 -1
- package/amd/UNSAFE_Floating.js +1 -11
- package/amd/UNSAFE_Floating.js.map +1 -1
- package/amd/UNSAFE_FocusTrap.css +3 -4
- package/amd/UNSAFE_FocusTrap.js +1 -17
- package/amd/UNSAFE_FocusTrap.js.map +1 -1
- package/amd/UNSAFE_Grid.css +1 -2
- package/amd/UNSAFE_Grid.js +1 -37
- package/amd/UNSAFE_Grid.js.map +1 -1
- package/amd/UNSAFE_Heading.css +9 -10
- package/amd/UNSAFE_Heading.js +1 -13
- package/amd/UNSAFE_Heading.js.map +1 -1
- package/amd/UNSAFE_HiddenAccessible.css +1 -2
- package/amd/UNSAFE_HiddenAccessible.js +1 -17
- package/amd/UNSAFE_HiddenAccessible.js.map +1 -1
- package/amd/UNSAFE_HighlightText.css +1 -2
- package/amd/UNSAFE_HighlightText.js +1 -17
- package/amd/UNSAFE_HighlightText.js.map +1 -1
- package/amd/UNSAFE_Icon.css +21 -22
- package/amd/UNSAFE_Icon.js +1 -28
- package/amd/UNSAFE_Icon.js.map +1 -1
- package/amd/UNSAFE_Icons.js +1 -26
- package/amd/UNSAFE_Icons.js.map +1 -1
- package/amd/UNSAFE_Indexer.css +8 -9
- package/amd/UNSAFE_Indexer.js +1 -18
- package/amd/UNSAFE_Indexer.js.map +1 -1
- package/amd/UNSAFE_InputPassword.css +1 -2
- package/amd/UNSAFE_InputPassword.js +1 -139
- package/amd/UNSAFE_InputPassword.js.map +1 -1
- package/amd/UNSAFE_InputText.css +1 -2
- package/amd/UNSAFE_InputText.js +1 -114
- package/amd/UNSAFE_InputText.js.map +1 -1
- package/amd/UNSAFE_Label.css +13 -14
- package/amd/UNSAFE_Label.js +1 -77
- package/amd/UNSAFE_Label.js.map +1 -1
- package/amd/UNSAFE_LabelValueLayout.css +9 -10
- package/amd/UNSAFE_LabelValueLayout.js +1 -85
- package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
- package/amd/UNSAFE_Layer.js +1 -66
- package/amd/UNSAFE_Layer.js.map +1 -1
- package/amd/UNSAFE_Link.css +5 -6
- package/amd/UNSAFE_Link.js +1 -11
- package/amd/UNSAFE_Link.js.map +1 -1
- package/amd/UNSAFE_ListItemLayout.css +10 -11
- package/amd/UNSAFE_ListItemLayout.js +1 -13
- package/amd/UNSAFE_ListItemLayout.js.map +1 -1
- package/amd/UNSAFE_ListView.js +1 -17
- package/amd/UNSAFE_ListView.js.map +1 -1
- package/amd/UNSAFE_LiveRegion.css +1 -2
- package/amd/UNSAFE_LiveRegion.js +1 -60
- package/amd/UNSAFE_LiveRegion.js.map +1 -1
- package/amd/UNSAFE_LoadMoreCollection.js +1 -17
- package/amd/UNSAFE_LoadMoreCollection.js.map +1 -1
- package/amd/UNSAFE_Menu.css +19 -20
- package/amd/UNSAFE_Menu.js +1 -13
- package/amd/UNSAFE_Menu.js.map +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -183
- package/amd/UNSAFE_MessageBanner.js.map +1 -1
- package/amd/UNSAFE_MessageToast.css +1 -2
- package/amd/UNSAFE_MessageToast.js +1 -17
- package/amd/UNSAFE_MessageToast.js.map +1 -1
- package/amd/UNSAFE_MeterBar.css +45 -46
- package/amd/UNSAFE_MeterBar.js +1 -327
- package/amd/UNSAFE_MeterBar.js.map +1 -1
- package/amd/UNSAFE_MeterCircle.css +47 -48
- package/amd/UNSAFE_MeterCircle.js +1 -11
- package/amd/UNSAFE_MeterCircle.js.map +1 -1
- package/amd/UNSAFE_Modal.css +5 -6
- package/amd/UNSAFE_Modal.js +1 -11
- package/amd/UNSAFE_Modal.js.map +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -17
- package/amd/UNSAFE_NumberInputText.js.map +1 -1
- package/amd/UNSAFE_PrefixSuffix.css +8 -9
- package/amd/UNSAFE_PrefixSuffix.js +1 -50
- package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
- package/amd/UNSAFE_ProgressBar.css +6 -7
- package/amd/UNSAFE_ProgressBar.js +1 -90
- package/amd/UNSAFE_ProgressBar.js.map +1 -1
- package/amd/UNSAFE_ProgressCircle.css +6 -7
- package/amd/UNSAFE_ProgressCircle.js +1 -85
- package/amd/UNSAFE_ProgressCircle.js.map +1 -1
- package/amd/UNSAFE_RatingGauge.css +22 -23
- package/amd/UNSAFE_RatingGauge.js +1 -358
- package/amd/UNSAFE_RatingGauge.js.map +1 -1
- package/amd/UNSAFE_SelectMultiple.css +1 -2
- package/amd/UNSAFE_SelectMultiple.js +1 -17
- package/amd/UNSAFE_SelectMultiple.js.map +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -17
- package/amd/UNSAFE_SelectSingle.js.map +1 -1
- package/amd/UNSAFE_Selector.css +5 -6
- package/amd/UNSAFE_Selector.js +1 -107
- package/amd/UNSAFE_Selector.js.map +1 -1
- package/amd/UNSAFE_Skeleton.css +1 -2
- package/amd/UNSAFE_Skeleton.js +1 -17
- package/amd/UNSAFE_Skeleton.js.map +1 -1
- package/amd/UNSAFE_Spacer.js +1 -11
- package/amd/UNSAFE_Spacer.js.map +1 -1
- package/amd/UNSAFE_SplitMenuButton.css +5 -6
- package/amd/UNSAFE_SplitMenuButton.js +1 -11
- package/amd/UNSAFE_SplitMenuButton.js.map +1 -1
- package/amd/UNSAFE_Text.css +25 -26
- package/amd/UNSAFE_Text.js +1 -11
- package/amd/UNSAFE_Text.js.map +1 -1
- package/amd/UNSAFE_TextArea.css +3 -4
- package/amd/UNSAFE_TextArea.js +1 -12
- package/amd/UNSAFE_TextArea.js.map +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -11
- package/amd/UNSAFE_TextAreaAutosize.js.map +1 -1
- package/amd/UNSAFE_TextField.css +62 -63
- package/amd/UNSAFE_TextField.js +1 -190
- package/amd/UNSAFE_TextField.js.map +1 -1
- package/amd/UNSAFE_ThemedIcons.js +1 -26
- package/amd/UNSAFE_ThemedIcons.js.map +1 -1
- package/amd/UNSAFE_UserAssistance.css +11 -12
- package/amd/UNSAFE_UserAssistance.js +1 -85
- package/amd/UNSAFE_UserAssistance.js.map +1 -1
- package/amd/UNSAFE_View.js +1 -29
- package/amd/UNSAFE_View.js.map +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -17
- package/amd/UNSAFE_VirtualizedListView.js.map +1 -1
- package/amd/UNSAFE_WindowOverlay.js +1 -20
- package/amd/UNSAFE_WindowOverlay.js.map +1 -1
- package/amd/VirtualizedCollection-7ee00b22.js +2 -0
- package/amd/{VirtualizedCollection-63815bce.js.map → VirtualizedCollection-7ee00b22.js.map} +1 -1
- package/amd/VirtualizedListView-72179139.js +2 -0
- package/amd/{VirtualizedListView-fb2a18dd.js.map → VirtualizedListView-72179139.js.map} +1 -1
- package/amd/_curry1-3211524b.js +2 -0
- package/amd/_curry1-3211524b.js.map +1 -0
- package/amd/_curry2-3a00c9c9.js +2 -0
- package/amd/_curry2-3a00c9c9.js.map +1 -0
- package/amd/_curry3-94bfcc86.js +2 -0
- package/amd/_curry3-94bfcc86.js.map +1 -0
- package/amd/_has-a61184e7.js +2 -0
- package/amd/_has-a61184e7.js.map +1 -0
- package/amd/classNames-8316ee15.js +2 -0
- package/amd/{classNames-027de734.js.map → classNames-8316ee15.js.map} +1 -1
- package/amd/clientHints-e6dc9e24.js +2 -0
- package/amd/{clientHints-361cde40.js.map → clientHints-e6dc9e24.js.map} +1 -1
- package/amd/flexbox-be9ff41e.js +2 -0
- package/amd/{flexbox-4dd0bbb4.js.map → flexbox-be9ff41e.js.map} +1 -1
- package/amd/flexitem-b1b14674.js +2 -0
- package/amd/{flexitem-7363d040.js.map → flexitem-b1b14674.js.map} +1 -1
- package/amd/hooks/PRIVATE_useCollectionFocusRing.js +1 -72
- package/amd/hooks/PRIVATE_useCollectionFocusRing.js.map +1 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js +1 -68
- package/amd/hooks/PRIVATE_useCurrentKey.js.map +1 -1
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -162
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js.map +1 -1
- package/amd/hooks/PRIVATE_useItemAction.js +1 -62
- package/amd/hooks/PRIVATE_useItemAction.js.map +1 -1
- package/amd/hooks/PRIVATE_useMessagesFocusManager.js +1 -351
- package/amd/hooks/PRIVATE_useMessagesFocusManager.js.map +1 -1
- package/amd/hooks/PRIVATE_useSelection.js +1 -173
- package/amd/hooks/PRIVATE_useSelection.js.map +1 -1
- package/amd/hooks/PRIVATE_useSingleSelection.js +1 -11
- package/amd/hooks/PRIVATE_useSingleSelection.js.map +1 -1
- package/amd/hooks/PRIVATE_useTabbableModeSet.js +1 -85
- package/amd/hooks/PRIVATE_useTabbableModeSet.js.map +1 -1
- package/amd/hooks/UNSAFE_useActionable.js +1 -39
- package/amd/hooks/UNSAFE_useActionable.js.map +1 -1
- package/amd/hooks/UNSAFE_useActive.js +1 -83
- package/amd/hooks/UNSAFE_useActive.js.map +1 -1
- package/amd/hooks/UNSAFE_useAnimation.js +1 -11
- package/amd/hooks/UNSAFE_useAnimation.js.map +1 -1
- package/amd/hooks/UNSAFE_useBreakpointValues.js +1 -25
- package/amd/hooks/UNSAFE_useBreakpointValues.js.map +1 -1
- package/amd/hooks/UNSAFE_useBreakpoints.js +1 -52
- package/amd/hooks/UNSAFE_useBreakpoints.js.map +1 -1
- package/amd/hooks/UNSAFE_useClearIcon.js +1 -22
- package/amd/hooks/UNSAFE_useClearIcon.js.map +1 -1
- package/amd/hooks/UNSAFE_useColorScheme.js +1 -28
- package/amd/hooks/UNSAFE_useColorScheme.js.map +1 -1
- package/amd/hooks/UNSAFE_useContainerBreakpointValues.js +1 -23
- package/amd/hooks/UNSAFE_useContainerBreakpointValues.js.map +1 -1
- package/amd/hooks/UNSAFE_useContainerBreakpoints.js +1 -45
- package/amd/hooks/UNSAFE_useContainerBreakpoints.js.map +1 -1
- package/amd/hooks/UNSAFE_useCurrentValueReducer.js +1 -60
- package/amd/hooks/UNSAFE_useCurrentValueReducer.js.map +1 -1
- package/amd/hooks/UNSAFE_useDebounce.js +1 -46
- package/amd/hooks/UNSAFE_useDebounce.js.map +1 -1
- package/amd/hooks/UNSAFE_useFloating.js +1 -20
- package/amd/hooks/UNSAFE_useFloating.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocus.js +1 -35
- package/amd/hooks/UNSAFE_useFocus.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocusWithin.js +1 -11
- package/amd/hooks/UNSAFE_useFocusWithin.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -68
- package/amd/hooks/UNSAFE_useFocusableTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormContext.js +1 -38
- package/amd/hooks/UNSAFE_useFormContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormFieldContext.js +1 -31
- package/amd/hooks/UNSAFE_useFormFieldContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useFormVariantContext.js +1 -25
- package/amd/hooks/UNSAFE_useFormVariantContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useHover.js +1 -64
- package/amd/hooks/UNSAFE_useHover.js.map +1 -1
- package/amd/hooks/UNSAFE_useId.js +1 -31
- package/amd/hooks/UNSAFE_useId.js.map +1 -1
- package/amd/hooks/UNSAFE_useLengthFilter.js +1 -56
- package/amd/hooks/UNSAFE_useLengthFilter.js.map +1 -1
- package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -39
- package/amd/hooks/UNSAFE_useLoadingIndicatorTimer.js.map +1 -1
- package/amd/hooks/UNSAFE_useLongPress.js +1 -69
- package/amd/hooks/UNSAFE_useLongPress.js.map +1 -1
- package/amd/hooks/UNSAFE_useMessagesContext.js +1 -47
- package/amd/hooks/UNSAFE_useMessagesContext.js.map +1 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js +1 -54
- package/amd/hooks/UNSAFE_useOutsideClick.js.map +1 -1
- package/amd/hooks/UNSAFE_usePan.js +1 -104
- package/amd/hooks/UNSAFE_usePan.js.map +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -59
- package/amd/hooks/UNSAFE_usePrefixSuffix.js.map +1 -1
- package/amd/hooks/UNSAFE_usePress.js +1 -153
- package/amd/hooks/UNSAFE_usePress.js.map +1 -1
- package/amd/hooks/UNSAFE_useScale.js +1 -28
- package/amd/hooks/UNSAFE_useScale.js.map +1 -1
- package/amd/hooks/UNSAFE_useSwipe.js +1 -94
- package/amd/hooks/UNSAFE_useSwipe.js.map +1 -1
- package/amd/hooks/UNSAFE_useTabbableMode.js +1 -47
- package/amd/hooks/UNSAFE_useTabbableMode.js.map +1 -1
- package/amd/hooks/UNSAFE_useTap.js +1 -75
- package/amd/hooks/UNSAFE_useTap.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextField.js +1 -97
- package/amd/hooks/UNSAFE_useTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -91
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js.map +1 -1
- package/amd/hooks/UNSAFE_useTheme.js +1 -28
- package/amd/hooks/UNSAFE_useTheme.js.map +1 -1
- package/amd/hooks/UNSAFE_useTimer.js +1 -62
- package/amd/hooks/UNSAFE_useTimer.js.map +1 -1
- package/amd/hooks/UNSAFE_useToggle.js +1 -35
- package/amd/hooks/UNSAFE_useToggle.js.map +1 -1
- package/amd/hooks/UNSAFE_useTooltip.css +4 -5
- package/amd/hooks/UNSAFE_useTooltip.js +1 -350
- package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/amd/hooks/UNSAFE_useTouch.js +1 -35
- package/amd/hooks/UNSAFE_useTouch.js.map +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -38
- package/amd/hooks/UNSAFE_useTranslationBundle.js.map +1 -1
- package/amd/hooks/UNSAFE_useUncontrolledState.js +1 -72
- package/amd/hooks/UNSAFE_useUncontrolledState.js.map +1 -1
- package/amd/hooks/UNSAFE_useUser.js +1 -28
- package/amd/hooks/UNSAFE_useUser.js.map +1 -1
- package/amd/hooks/UNSAFE_useViewportIntersect.js +1 -70
- package/amd/hooks/UNSAFE_useViewportIntersect.js.map +1 -1
- package/amd/index-6679bea8.js +2 -0
- package/amd/{index-5920700b.js.map → index-6679bea8.js.map} +1 -1
- package/amd/index-6b368109.js +2 -0
- package/amd/index-6b368109.js.map +1 -0
- package/amd/index-8ea56d8f.js +2 -0
- package/amd/index-8ea56d8f.js.map +1 -0
- package/amd/keys-a74413b3.js +2 -0
- package/amd/{keys-a09501ab.js.map → keys-a74413b3.js.map} +1 -1
- package/amd/listViewSelectionTests-de8897f5.js +2 -0
- package/amd/listViewSelectionTests-de8897f5.js.map +1 -0
- package/amd/listViewTabbableModeTests-38616afa.js +2 -0
- package/amd/listViewTabbableModeTests-38616afa.js.map +1 -0
- package/amd/listViewTestFixtures-cff614e5.js +2 -0
- package/amd/listViewTestFixtures-cff614e5.js.map +1 -0
- package/amd/menuTestsUtils-dfb51f0e.js +2 -0
- package/amd/{menuTestsUtils-6da02810.js.map → menuTestsUtils-dfb51f0e.js.map} +1 -1
- package/amd/resources/nls/ar/bundle.js +1 -57
- package/amd/resources/nls/ar/bundle.js.map +1 -1
- package/amd/resources/nls/ar-XB/bundle.js +1 -57
- package/amd/resources/nls/ar-XB/bundle.js.map +1 -1
- package/amd/resources/nls/bg/bundle.js +1 -57
- package/amd/resources/nls/bg/bundle.js.map +1 -1
- package/amd/resources/nls/bs/bundle.js +1 -57
- package/amd/resources/nls/bs/bundle.js.map +1 -1
- package/amd/resources/nls/bs-Cyrl/bundle.js +1 -57
- package/amd/resources/nls/bs-Cyrl/bundle.js.map +1 -1
- package/amd/resources/nls/bundle.js +1 -57
- package/amd/resources/nls/bundle.js.map +1 -1
- package/amd/resources/nls/cs/bundle.js +1 -57
- package/amd/resources/nls/cs/bundle.js.map +1 -1
- package/amd/resources/nls/da/bundle.js +1 -57
- package/amd/resources/nls/da/bundle.js.map +1 -1
- package/amd/resources/nls/de/bundle.js +1 -57
- package/amd/resources/nls/de/bundle.js.map +1 -1
- package/amd/resources/nls/el/bundle.js +1 -57
- package/amd/resources/nls/el/bundle.js.map +1 -1
- package/amd/resources/nls/en/bundle.js +1 -57
- package/amd/resources/nls/en/bundle.js.map +1 -1
- package/amd/resources/nls/en-XA/bundle.js +1 -57
- package/amd/resources/nls/en-XA/bundle.js.map +1 -1
- package/amd/resources/nls/en-XC/bundle.js +1 -77
- package/amd/resources/nls/en-XC/bundle.js.map +1 -1
- package/amd/resources/nls/es/bundle.js +1 -57
- package/amd/resources/nls/es/bundle.js.map +1 -1
- package/amd/resources/nls/et/bundle.js +1 -57
- package/amd/resources/nls/et/bundle.js.map +1 -1
- package/amd/resources/nls/fi/bundle.js +1 -57
- package/amd/resources/nls/fi/bundle.js.map +1 -1
- package/amd/resources/nls/fr/bundle.js +1 -57
- package/amd/resources/nls/fr/bundle.js.map +1 -1
- package/amd/resources/nls/fr-CA/bundle.js +1 -57
- package/amd/resources/nls/fr-CA/bundle.js.map +1 -1
- package/amd/resources/nls/he/bundle.js +1 -57
- package/amd/resources/nls/he/bundle.js.map +1 -1
- package/amd/resources/nls/hr/bundle.js +1 -57
- package/amd/resources/nls/hr/bundle.js.map +1 -1
- package/amd/resources/nls/hu/bundle.js +1 -57
- package/amd/resources/nls/hu/bundle.js.map +1 -1
- package/amd/resources/nls/is/bundle.js +1 -57
- package/amd/resources/nls/is/bundle.js.map +1 -1
- package/amd/resources/nls/it/bundle.js +1 -57
- package/amd/resources/nls/it/bundle.js.map +1 -1
- package/amd/resources/nls/ja/bundle.js +1 -57
- package/amd/resources/nls/ja/bundle.js.map +1 -1
- package/amd/resources/nls/ko/bundle.js +1 -57
- package/amd/resources/nls/ko/bundle.js.map +1 -1
- package/amd/resources/nls/lt/bundle.js +1 -57
- package/amd/resources/nls/lt/bundle.js.map +1 -1
- package/amd/resources/nls/lv/bundle.js +1 -57
- package/amd/resources/nls/lv/bundle.js.map +1 -1
- package/amd/resources/nls/ms/bundle.js +1 -57
- package/amd/resources/nls/ms/bundle.js.map +1 -1
- package/amd/resources/nls/nl/bundle.js +1 -57
- package/amd/resources/nls/nl/bundle.js.map +1 -1
- package/amd/resources/nls/no/bundle.js +1 -57
- package/amd/resources/nls/no/bundle.js.map +1 -1
- package/amd/resources/nls/pl/bundle.js +1 -57
- package/amd/resources/nls/pl/bundle.js.map +1 -1
- package/amd/resources/nls/pt/bundle.js +1 -57
- package/amd/resources/nls/pt/bundle.js.map +1 -1
- package/amd/resources/nls/pt-PT/bundle.js +1 -57
- package/amd/resources/nls/pt-PT/bundle.js.map +1 -1
- package/amd/resources/nls/ro/bundle.js +1 -57
- package/amd/resources/nls/ro/bundle.js.map +1 -1
- package/amd/resources/nls/ru/bundle.js +1 -57
- package/amd/resources/nls/ru/bundle.js.map +1 -1
- package/amd/resources/nls/sk/bundle.js +1 -57
- package/amd/resources/nls/sk/bundle.js.map +1 -1
- package/amd/resources/nls/sl/bundle.js +1 -57
- package/amd/resources/nls/sl/bundle.js.map +1 -1
- package/amd/resources/nls/sr/bundle.js +1 -57
- package/amd/resources/nls/sr/bundle.js.map +1 -1
- package/amd/resources/nls/sr-Latn/bundle.js +1 -57
- package/amd/resources/nls/sr-Latn/bundle.js.map +1 -1
- package/amd/resources/nls/supportedLocales.js +1 -57
- package/amd/resources/nls/supportedLocales.js.map +1 -1
- package/amd/resources/nls/sv/bundle.js +1 -57
- package/amd/resources/nls/sv/bundle.js.map +1 -1
- package/amd/resources/nls/th/bundle.js +1 -57
- package/amd/resources/nls/th/bundle.js.map +1 -1
- package/amd/resources/nls/tr/bundle.js +1 -57
- package/amd/resources/nls/tr/bundle.js.map +1 -1
- package/amd/resources/nls/uk/bundle.js +1 -57
- package/amd/resources/nls/uk/bundle.js.map +1 -1
- package/amd/resources/nls/vi/bundle.js +1 -57
- package/amd/resources/nls/vi/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hans/bundle.js +1 -57
- package/amd/resources/nls/zh-Hans/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hant/bundle.js +1 -57
- package/amd/resources/nls/zh-Hant/bundle.js.map +1 -1
- package/amd/stringUtils-5d79e03c.js +2 -0
- package/amd/{stringUtils-9311a716.js.map → stringUtils-5d79e03c.js.map} +1 -1
- package/amd/testHelpers-3a2bb74a.js +2 -0
- package/amd/{testHelpers-9267074b.js.map → testHelpers-3a2bb74a.js.map} +1 -1
- package/amd/translationBundle.js +1 -73
- package/amd/translationBundle.js.map +1 -1
- package/amd/tslib.es6-76a2c4b1.js +2 -0
- package/amd/tslib.es6-76a2c4b1.js.map +1 -0
- package/amd/useAnimation-a4fecfae.js +2 -0
- package/amd/{useAnimation-2f572e0c.js.map → useAnimation-a4fecfae.js.map} +1 -1
- package/amd/useFocusWithin-1d9bd68c.js +2 -0
- package/amd/{useFocusWithin-a88e3e32.js.map → useFocusWithin-1d9bd68c.js.map} +1 -1
- package/amd/useSingleSelection-6c50e01f.js +2 -0
- package/amd/{useSingleSelection-7081cc84.js.map → useSingleSelection-6c50e01f.js.map} +1 -1
- package/amd/utils/PRIVATE_clientHints.js +1 -11
- package/amd/utils/PRIVATE_clientHints.js.map +1 -1
- package/amd/utils/PRIVATE_collectionUtils.js +1 -83
- package/amd/utils/PRIVATE_collectionUtils.js.map +1 -1
- package/amd/utils/PRIVATE_dvtTestUtils.js +1 -77
- package/amd/utils/PRIVATE_dvtTestUtils.js.map +1 -1
- package/amd/utils/PRIVATE_floatingUtils.js +1 -70
- package/amd/utils/PRIVATE_floatingUtils.js.map +1 -1
- package/amd/utils/PRIVATE_meterUtils.js +1 -340
- package/amd/utils/PRIVATE_meterUtils.js.map +1 -1
- package/amd/utils/PRIVATE_refUtils.js +1 -38
- package/amd/utils/PRIVATE_refUtils.js.map +1 -1
- package/amd/utils/PRIVATE_tabbableUtils.js +1 -669
- package/amd/utils/PRIVATE_tabbableUtils.js.map +1 -1
- package/amd/utils/PRIVATE_timer.js +1 -101
- package/amd/utils/PRIVATE_timer.js.map +1 -1
- package/amd/utils/UNSAFE_arrayUtils.js +1 -28
- package/amd/utils/UNSAFE_arrayUtils.js.map +1 -1
- package/amd/utils/UNSAFE_attributeUtils.js +1 -13
- package/amd/utils/UNSAFE_attributeUtils.js.map +1 -1
- package/amd/utils/UNSAFE_classNames.js +1 -11
- package/amd/utils/UNSAFE_classNames.js.map +1 -1
- package/amd/utils/UNSAFE_componentUtils.js +1 -32
- package/amd/utils/UNSAFE_componentUtils.js.map +1 -1
- package/amd/utils/UNSAFE_dataProvider.js +1 -21
- package/amd/utils/UNSAFE_dataProvider.js.map +1 -1
- package/amd/utils/UNSAFE_filePickerUtils.js +1 -37
- package/amd/utils/UNSAFE_filePickerUtils.js.map +1 -1
- package/amd/utils/UNSAFE_getLocale.js +1 -33
- package/amd/utils/UNSAFE_getLocale.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/aria.js +1 -22
- package/amd/utils/UNSAFE_interpolations/aria.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/borders.js +1 -42
- package/amd/utils/UNSAFE_interpolations/borders.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -16
- package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -62
- package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/colors.js +1 -22
- package/amd/utils/UNSAFE_interpolations/colors.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -89
- package/amd/utils/UNSAFE_interpolations/dimensions.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -8
- package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -14
- package/amd/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -8
- package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -13
- package/amd/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/grid.js +1 -22
- package/amd/utils/UNSAFE_interpolations/grid.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/griditem.js +1 -17
- package/amd/utils/UNSAFE_interpolations/griditem.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/padding.js +1 -50
- package/amd/utils/UNSAFE_interpolations/padding.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/text.css +3 -4
- package/amd/utils/UNSAFE_interpolations/text.js +1 -29
- package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/amd/utils/UNSAFE_keys.js +1 -80
- package/amd/utils/UNSAFE_keys.js.map +1 -1
- package/amd/utils/UNSAFE_lengthFilter.js +1 -71
- package/amd/utils/UNSAFE_lengthFilter.js.map +1 -1
- package/amd/utils/UNSAFE_logger.js +1 -64
- package/amd/utils/UNSAFE_logger.js.map +1 -1
- package/amd/utils/UNSAFE_matchTranslationBundle.js +1 -57
- package/amd/utils/UNSAFE_matchTranslationBundle.js.map +1 -1
- package/amd/utils/UNSAFE_mergeInterpolations.js +1 -111
- package/amd/utils/UNSAFE_mergeInterpolations.js.map +1 -1
- package/amd/utils/UNSAFE_mergeProps.js +1 -91
- package/amd/utils/UNSAFE_mergeProps.js.map +1 -1
- package/amd/utils/UNSAFE_meterTypes.js +1 -13
- package/amd/utils/UNSAFE_meterTypes.js.map +1 -1
- package/amd/utils/UNSAFE_roles.js +1 -107
- package/amd/utils/UNSAFE_roles.js.map +1 -1
- package/amd/utils/UNSAFE_selectUtils.js +1 -13
- package/amd/utils/UNSAFE_selectUtils.js.map +1 -1
- package/amd/utils/UNSAFE_size.js +1 -53
- package/amd/utils/UNSAFE_size.js.map +1 -1
- package/amd/utils/UNSAFE_soundUtils.js +1 -98
- package/amd/utils/UNSAFE_soundUtils.js.map +1 -1
- package/amd/utils/UNSAFE_stringUtils.js +1 -21
- package/amd/utils/UNSAFE_stringUtils.js.map +1 -1
- package/amd/utils/UNSAFE_typeUtils.js +1 -7
- package/amd/utils/UNSAFE_typeUtils.js.map +1 -1
- package/amd/utils/UNSAFE_units.js +1 -22
- package/amd/utils/UNSAFE_units.js.map +1 -1
- package/amd/utils/UNSAFE_valueUpdateDetail.js +1 -7
- package/amd/utils/UNSAFE_valueUpdateDetail.js.map +1 -1
- package/cjs/{Badge-a39fc1b1.js → Badge-57ef7b4a.js} +16 -16
- package/cjs/{Badge-a39fc1b1.js.map → Badge-57ef7b4a.js.map} +1 -1
- package/cjs/{BaseButton-15adcc04.js → BaseButton-9beebf79.js} +20 -20
- package/cjs/{BaseButton-15adcc04.js.map → BaseButton-9beebf79.js.map} +1 -1
- package/cjs/{Button-6d645302.js → Button-b8bcdeda.js} +13 -13
- package/{amd/Button-87280b4a.js.map → cjs/Button-b8bcdeda.js.map} +1 -1
- package/cjs/{Chip-a6ecbefc.js → Chip-7ed72bc4.js} +10 -10
- package/{amd/Chip-8cd23568.js.map → cjs/Chip-7ed72bc4.js.map} +1 -1
- package/cjs/{ClearIcon-f04de939.js → ClearIcon-99ecca44.js} +3 -3
- package/cjs/{ClearIcon-f04de939.js.map → ClearIcon-99ecca44.js.map} +1 -1
- package/cjs/{Collection-134eaf28.js → Collection-36beabcf.js} +2 -2
- package/cjs/{Collection-134eaf28.js.map → Collection-36beabcf.js.map} +1 -1
- package/cjs/{ComponentMessage-d765b28b.js → ComponentMessage-6a98403b.js} +8 -8
- package/cjs/{ComponentMessage-d765b28b.js.map → ComponentMessage-6a98403b.js.map} +1 -1
- package/cjs/{ComponentMessageContainer-c0c21e1b.js → ComponentMessageContainer-e97a6c37.js} +5 -5
- package/{amd/ComponentMessageContainer-a00ec42c.js.map → cjs/ComponentMessageContainer-e97a6c37.js.map} +1 -1
- package/cjs/{Divider-2042aba9.js → Divider-7deb2388.js} +3 -3
- package/cjs/{Divider-2042aba9.js.map → Divider-7deb2388.js.map} +1 -1
- package/cjs/{FilePicker-d7a4de7a.js → FilePicker-3cf4cab2.js} +14 -14
- package/cjs/{FilePicker-d7a4de7a.js.map → FilePicker-3cf4cab2.js.map} +1 -1
- package/cjs/{Flex-260323e0.js → Flex-1170ee9e.js} +8 -8
- package/cjs/{Flex-260323e0.js.map → Flex-1170ee9e.js.map} +1 -1
- package/cjs/{Floating-d2046aed.js → Floating-1f4ab7d2.js} +3 -3
- package/cjs/{Floating-d2046aed.js.map → Floating-1f4ab7d2.js.map} +1 -1
- package/cjs/{FocusTrap-df4bf064.js → FocusTrap-36ae878b.js} +5 -5
- package/cjs/{FocusTrap-df4bf064.js.map → FocusTrap-36ae878b.js.map} +1 -1
- package/cjs/{FormControlUtils-c6a4dc4b.js → FormControlUtils-5a4c1e5d.js} +5 -5
- package/cjs/{FormControlUtils-c6a4dc4b.js.map → FormControlUtils-5a4c1e5d.js.map} +1 -1
- package/cjs/{Heading-aa545fbc.js → Heading-9813f192.js} +13 -13
- package/cjs/{Heading-aa545fbc.js.map → Heading-9813f192.js.map} +1 -1
- package/cjs/{HiddenAccessible-f8c4113f.js → HiddenAccessible-8b4460f2.js} +3 -3
- package/cjs/{HiddenAccessible-f8c4113f.js.map → HiddenAccessible-8b4460f2.js.map} +1 -1
- package/cjs/{HighlightText-10042675.js → HighlightText-e0dcebc1.js} +3 -3
- package/{amd/HighlightText-9d200a5d.js.map → cjs/HighlightText-e0dcebc1.js.map} +1 -1
- package/cjs/{Icon-742d4479.js → Icon-a3e3b907.js} +25 -25
- package/cjs/{Icon-742d4479.js.map → Icon-a3e3b907.js.map} +1 -1
- package/cjs/{Indexer-0c98d91e.js → Indexer-87612108.js} +16 -16
- package/cjs/{Indexer-0c98d91e.js.map → Indexer-87612108.js.map} +1 -1
- package/cjs/{InlineHelpSource-e98e803d.js → InlineHelpSource-d2f765e1.js} +3 -3
- package/cjs/{InlineHelpSource-e98e803d.js.map → InlineHelpSource-d2f765e1.js.map} +1 -1
- package/cjs/{Link-a955e5a1.js → Link-e6b7d9fe.js} +8 -8
- package/cjs/{Link-a955e5a1.js.map → Link-e6b7d9fe.js.map} +1 -1
- package/cjs/{List-d9e06dfd.js → List-98f37f45.js} +23 -23
- package/cjs/{List-d9e06dfd.js.map → List-98f37f45.js.map} +1 -1
- package/cjs/{ListItemTextLayout-7fefca37.js → ListItemTextLayout-0ecde607.js} +13 -13
- package/cjs/{ListItemTextLayout-7fefca37.js.map → ListItemTextLayout-0ecde607.js.map} +1 -1
- package/cjs/{ListView-05ed6c8a.js → ListView-611c9832.js} +3 -3
- package/cjs/{ListView-05ed6c8a.js.map → ListView-611c9832.js.map} +1 -1
- package/cjs/{LoadMoreCollection-9479dcd1.js → LoadMoreCollection-e3307909.js} +3 -3
- package/cjs/{LoadMoreCollection-9479dcd1.js.map → LoadMoreCollection-e3307909.js.map} +1 -1
- package/cjs/{Menu-7a63d78b.js → Menu-325da109.js} +6 -6
- package/cjs/{Menu-7a63d78b.js.map → Menu-325da109.js.map} +1 -1
- package/cjs/{MenuDivider-164b9d81.js → MenuDivider-a8b836c2.js} +4 -4
- package/cjs/{MenuDivider-164b9d81.js.map → MenuDivider-a8b836c2.js.map} +1 -1
- package/cjs/{MenuItem-068e6546.js → MenuItem-e487ca35.js} +19 -19
- package/cjs/{MenuItem-068e6546.js.map → MenuItem-e487ca35.js.map} +1 -1
- package/cjs/{Message.types-cb49247a.js → Message.types-3eabd17c.js} +2 -2
- package/cjs/{Message.types-cb49247a.js.map → Message.types-3eabd17c.js.map} +1 -1
- package/cjs/{MessageCloseButton-a8d04f54.js → MessageCloseButton-ec00ca9d.js} +9 -9
- package/{amd/MessageCloseButton-51697635.js.map → cjs/MessageCloseButton-ec00ca9d.js.map} +1 -1
- package/cjs/{MessageDetail-ccca445b.js → MessageDetail-b4c33d95.js} +7 -7
- package/cjs/{MessageDetail-ccca445b.js.map → MessageDetail-b4c33d95.js.map} +1 -1
- package/cjs/{MessageFormattingUtils-221fcd80.js → MessageFormattingUtils-6d146daf.js} +4 -4
- package/cjs/{MessageFormattingUtils-221fcd80.js.map → MessageFormattingUtils-6d146daf.js.map} +1 -1
- package/cjs/{MessageLayer-b1319d82.js → MessageLayer-66067093.js} +11 -11
- package/cjs/{MessageLayer-b1319d82.js.map → MessageLayer-66067093.js.map} +1 -1
- package/cjs/{MessageStartIcon-b8097181.js → MessageStartIcon-025ece73.js} +11 -11
- package/cjs/{MessageStartIcon-b8097181.js.map → MessageStartIcon-025ece73.js.map} +1 -1
- package/cjs/{MessageSummary-3f9315a9.js → MessageSummary-abf3f82c.js} +7 -7
- package/cjs/{MessageSummary-3f9315a9.js.map → MessageSummary-abf3f82c.js.map} +1 -1
- package/cjs/{MessageTimestamp-d54dc4a3.js → MessageTimestamp-b26a6464.js} +5 -5
- package/cjs/{MessageTimestamp-d54dc4a3.js.map → MessageTimestamp-b26a6464.js.map} +1 -1
- package/cjs/{MessageToast-ac565264.js → MessageToast-b263ce2e.js} +9 -9
- package/cjs/{MessageToast-ac565264.js.map → MessageToast-b263ce2e.js.map} +1 -1
- package/cjs/{MessageUtils-3dcdf495.js → MessageUtils-59f5463b.js} +3 -3
- package/cjs/{MessageUtils-3dcdf495.js.map → MessageUtils-59f5463b.js.map} +1 -1
- package/cjs/{MessagesManager-c3a0893a.js → MessagesManager-4994ada6.js} +4 -4
- package/cjs/{MessagesManager-c3a0893a.js.map → MessagesManager-4994ada6.js.map} +1 -1
- package/cjs/{MeterCircle-7ec0b5f5.js → MeterCircle-9b8cca27.js} +50 -50
- package/cjs/{MeterCircle-7ec0b5f5.js.map → MeterCircle-9b8cca27.js.map} +1 -1
- package/cjs/{Modal-0c4cc690.js → Modal-1173b8ba.js} +6 -6
- package/cjs/{Modal-0c4cc690.js.map → Modal-1173b8ba.js.map} +1 -1
- package/cjs/{NumberInputText-40fe1cbf.js → NumberInputText-c8f8e962.js} +7 -7
- package/cjs/{NumberInputText-40fe1cbf.js.map → NumberInputText-c8f8e962.js.map} +1 -1
- package/cjs/PRIVATE_Collection.js +2 -2
- package/cjs/PRIVATE_List.js +23 -23
- package/cjs/PRIVATE_Message.js +41 -41
- package/cjs/PRIVATE_Message.js.map +1 -1
- package/cjs/PRIVATE_MessageLayer.js +12 -12
- package/cjs/PRIVATE_Meter.js +2 -2
- package/cjs/PRIVATE_SelectCommon.js +54 -54
- package/cjs/PRIVATE_SelectCommon.js.map +1 -1
- package/cjs/PRIVATE_TransitionGroup.js +1 -1
- package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
- package/cjs/{ReadonlyTextFieldInput-45dae724.js → ReadonlyTextFieldInput-27186458.js} +13 -13
- package/cjs/{ReadonlyTextFieldInput-45dae724.js.map → ReadonlyTextFieldInput-27186458.js.map} +1 -1
- package/cjs/{SelectMenuItem-fa0edf72.js → SelectMenuItem-bfc5fba4.js} +5 -5
- package/cjs/{SelectMenuItem-fa0edf72.js.map → SelectMenuItem-bfc5fba4.js.map} +1 -1
- package/cjs/{SelectMultiple-c809adb7.js → SelectMultiple-89c8574f.js} +8 -8
- package/cjs/{SelectMultiple-c809adb7.js.map → SelectMultiple-89c8574f.js.map} +1 -1
- package/cjs/{SelectSingle-e7cd9118.js → SelectSingle-3cfc1243.js} +4 -4
- package/cjs/{SelectSingle-e7cd9118.js.map → SelectSingle-3cfc1243.js.map} +1 -1
- package/cjs/{Skeleton-f60eec1f.js → Skeleton-edf72889.js} +5 -5
- package/cjs/{Skeleton-f60eec1f.js.map → Skeleton-edf72889.js.map} +1 -1
- package/cjs/{Spacer-f9d398f3.js → Spacer-214dbce2.js} +4 -4
- package/cjs/{Spacer-f9d398f3.js.map → Spacer-214dbce2.js.map} +1 -1
- package/cjs/{SplitMenuButton-f67550f5.js → SplitMenuButton-946c1bca.js} +14 -14
- package/cjs/{SplitMenuButton-f67550f5.js.map → SplitMenuButton-946c1bca.js.map} +1 -1
- package/cjs/{Text-4f2d62c9.js → Text-7ea89f69.js} +28 -28
- package/cjs/{Text-4f2d62c9.js.map → Text-7ea89f69.js.map} +1 -1
- package/cjs/{TextArea-e12574f9.js → TextArea-64693b57.js} +8 -8
- package/cjs/{TextArea-e12574f9.js.map → TextArea-64693b57.js.map} +1 -1
- package/cjs/{TextAreaAutosize-c0bf9ebd.js → TextAreaAutosize-d7da96c2.js} +5 -5
- package/cjs/{TextAreaAutosize-c0bf9ebd.js.map → TextAreaAutosize-d7da96c2.js.map} +1 -1
- package/cjs/{TextFieldInput-f2f3f0a0.js → TextFieldInput-88d6c33f.js} +33 -33
- package/{amd/TextFieldInput-312fb211.js.map → cjs/TextFieldInput-88d6c33f.js.map} +1 -1
- package/cjs/UNSAFE_AspectRatio.js +8 -8
- package/cjs/UNSAFE_AspectRatio.js.map +1 -1
- package/cjs/UNSAFE_Avatar.js +11 -11
- package/cjs/UNSAFE_Avatar.js.map +1 -1
- package/cjs/UNSAFE_Badge.js +3 -3
- package/cjs/UNSAFE_BaseButton.js +9 -9
- package/cjs/UNSAFE_Button.js +10 -10
- package/cjs/UNSAFE_Center.js +11 -11
- package/cjs/UNSAFE_Chip.js +3 -3
- package/cjs/UNSAFE_Collapsible.js +26 -26
- package/cjs/UNSAFE_Collapsible.js.map +1 -1
- package/cjs/UNSAFE_Collection.js +1 -1
- package/cjs/UNSAFE_ComponentMessage.js +33 -33
- package/cjs/UNSAFE_Divider.js +7 -7
- package/cjs/UNSAFE_EmptyList.js +1 -1
- package/cjs/UNSAFE_Environment.js +1 -1
- package/cjs/UNSAFE_FilePicker.js +14 -14
- package/cjs/UNSAFE_Flex.js +11 -11
- package/cjs/UNSAFE_Floating.js +3 -3
- package/cjs/UNSAFE_FocusTrap.js +6 -6
- package/cjs/UNSAFE_Grid.js +9 -9
- package/cjs/UNSAFE_Grid.js.map +1 -1
- package/cjs/UNSAFE_Heading.js +9 -9
- package/cjs/UNSAFE_HiddenAccessible.js +2 -2
- package/cjs/UNSAFE_HighlightText.js +2 -2
- package/cjs/UNSAFE_Icon.js +7 -7
- package/cjs/UNSAFE_Icons.js +8 -8
- package/cjs/UNSAFE_Indexer.js +16 -16
- package/cjs/UNSAFE_InputPassword.js +40 -40
- package/cjs/UNSAFE_InputText.js +39 -39
- package/cjs/UNSAFE_Label.js +16 -16
- package/cjs/UNSAFE_Label.js.map +1 -1
- package/cjs/UNSAFE_LabelValueLayout.js +20 -20
- package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
- package/cjs/UNSAFE_Layer.js +1 -1
- package/cjs/UNSAFE_Link.js +3 -3
- package/cjs/UNSAFE_ListItemLayout.js +10 -10
- package/cjs/UNSAFE_ListView.js +24 -24
- package/cjs/UNSAFE_LiveRegion.js +2 -2
- package/cjs/UNSAFE_LiveRegion.js.map +1 -1
- package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
- package/cjs/UNSAFE_Menu.js +15 -15
- package/cjs/UNSAFE_MessageBanner.js +30 -30
- package/cjs/UNSAFE_MessageToast.js +33 -33
- package/cjs/UNSAFE_MeterBar.js +49 -49
- package/cjs/UNSAFE_MeterBar.js.map +1 -1
- package/cjs/UNSAFE_MeterCircle.js +7 -7
- package/cjs/UNSAFE_Modal.js +7 -7
- package/cjs/UNSAFE_NumberInputText.js +39 -39
- package/cjs/UNSAFE_PrefixSuffix.js +10 -10
- package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
- package/cjs/UNSAFE_ProgressBar.js +9 -9
- package/cjs/UNSAFE_ProgressBar.js.map +1 -1
- package/cjs/UNSAFE_ProgressCircle.js +9 -9
- package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
- package/cjs/UNSAFE_RatingGauge.js +26 -26
- package/cjs/UNSAFE_RatingGauge.js.map +1 -1
- package/cjs/UNSAFE_SelectMultiple.js +47 -47
- package/cjs/UNSAFE_SelectSingle.js +46 -46
- package/cjs/UNSAFE_Selector.js +22 -22
- package/cjs/UNSAFE_Selector.js.map +1 -1
- package/cjs/UNSAFE_Skeleton.js +8 -8
- package/cjs/UNSAFE_Spacer.js +10 -10
- package/cjs/UNSAFE_SplitMenuButton.js +22 -22
- package/cjs/UNSAFE_Text.js +8 -8
- package/cjs/UNSAFE_TextArea.js +39 -39
- package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
- package/cjs/UNSAFE_TextField.js +35 -35
- package/cjs/UNSAFE_TextField.js.map +1 -1
- package/cjs/UNSAFE_ThemedIcons.js +9 -9
- package/cjs/UNSAFE_UserAssistance.js +41 -41
- package/cjs/UNSAFE_UserAssistance.js.map +1 -1
- package/cjs/UNSAFE_View.js +9 -9
- package/cjs/UNSAFE_VirtualizedListView.js +24 -24
- package/cjs/UNSAFE_WindowOverlay.js +1 -1
- package/cjs/{VirtualizedCollection-b345dec7.js → VirtualizedCollection-816d3e98.js} +3 -3
- package/cjs/{VirtualizedCollection-b345dec7.js.map → VirtualizedCollection-816d3e98.js.map} +1 -1
- package/cjs/{VirtualizedListView-b13ea090.js → VirtualizedListView-1c388b28.js} +3 -3
- package/cjs/{VirtualizedListView-b13ea090.js.map → VirtualizedListView-1c388b28.js.map} +1 -1
- package/cjs/{_curry1-8d2120e1.js → _curry1-0b08f1cd.js} +2 -2
- package/cjs/{_curry1-8d2120e1.js.map → _curry1-0b08f1cd.js.map} +1 -1
- package/cjs/{_curry2-e0541fa2.js → _curry2-c20f3846.js} +3 -3
- package/cjs/{_curry2-e0541fa2.js.map → _curry2-c20f3846.js.map} +1 -1
- package/cjs/{_curry3-4bf8f0ff.js → _curry3-64a472b1.js} +4 -4
- package/cjs/{_curry3-4bf8f0ff.js.map → _curry3-64a472b1.js.map} +1 -1
- package/cjs/{_has-0c6632fb.js → _has-f91f7eae.js} +3 -3
- package/cjs/{_has-0c6632fb.js.map → _has-f91f7eae.js.map} +1 -1
- package/cjs/{classNames-da349ca2.js → classNames-ae6b4859.js} +2 -2
- package/cjs/{classNames-da349ca2.js.map → classNames-ae6b4859.js.map} +1 -1
- package/cjs/{clientHints-1ea8f1df.js → clientHints-5c8807cf.js} +2 -2
- package/cjs/{clientHints-1ea8f1df.js.map → clientHints-5c8807cf.js.map} +1 -1
- package/cjs/{flexbox-f40d228f.js → flexbox-aa2a537e.js} +10 -10
- package/cjs/{flexbox-f40d228f.js.map → flexbox-aa2a537e.js.map} +1 -1
- package/cjs/{flexitem-540999d4.js → flexitem-0284020b.js} +10 -10
- package/cjs/{flexitem-540999d4.js.map → flexitem-0284020b.js.map} +1 -1
- package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
- package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
- package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
- package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
- package/cjs/hooks/PRIVATE_useSelection.js +1 -1
- package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
- package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
- package/cjs/hooks/UNSAFE_useActionable.js +1 -1
- package/cjs/hooks/UNSAFE_useActive.js +1 -1
- package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
- package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
- package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
- package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
- package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
- package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
- package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
- package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
- package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
- package/cjs/hooks/UNSAFE_useFloating.js +2 -2
- package/cjs/hooks/UNSAFE_useFocus.js +1 -1
- package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
- package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
- package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
- package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
- package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
- package/cjs/hooks/UNSAFE_useHover.js +1 -1
- package/cjs/hooks/UNSAFE_useId.js +1 -1
- package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
- package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
- package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
- package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
- package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/cjs/hooks/UNSAFE_usePan.js +1 -1
- package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
- package/cjs/hooks/UNSAFE_usePress.js +1 -1
- package/cjs/hooks/UNSAFE_useScale.js +1 -1
- package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
- package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
- package/cjs/hooks/UNSAFE_useTap.js +1 -1
- package/cjs/hooks/UNSAFE_useTextField.js +1 -1
- package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
- package/cjs/hooks/UNSAFE_useTheme.js +1 -1
- package/cjs/hooks/UNSAFE_useTimer.js +1 -1
- package/cjs/hooks/UNSAFE_useToggle.js +1 -1
- package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
- package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/cjs/hooks/UNSAFE_useTouch.js +1 -1
- package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/cjs/hooks/UNSAFE_useUser.js +1 -1
- package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
- package/cjs/{index-6cd66e43.js → index-adc05eb4.js} +3 -3
- package/cjs/{index-6cd66e43.js.map → index-adc05eb4.js.map} +1 -1
- package/cjs/{index-f35479e8.js → index-cdd3e157.js} +3 -3
- package/cjs/{index-f35479e8.js.map → index-cdd3e157.js.map} +1 -1
- package/cjs/{index-1a8d3228.js → index-df559b0e.js} +2 -2
- package/cjs/{index-1a8d3228.js.map → index-df559b0e.js.map} +1 -1
- package/cjs/{keys-dcecff11.js → keys-83f212fb.js} +4 -4
- package/cjs/{keys-dcecff11.js.map → keys-83f212fb.js.map} +1 -1
- package/cjs/{listViewSelectionTests-8543d0be.js → listViewSelectionTests-a244f04e.js} +4 -4
- package/cjs/{listViewSelectionTests-8543d0be.js.map → listViewSelectionTests-a244f04e.js.map} +1 -1
- package/cjs/{listViewTabbableModeTests-088e3919.js → listViewTabbableModeTests-374ba435.js} +4 -4
- package/cjs/{listViewTabbableModeTests-088e3919.js.map → listViewTabbableModeTests-374ba435.js.map} +1 -1
- package/cjs/{listViewTestFixtures-78bedae0.js → listViewTestFixtures-9b3ecea2.js} +2 -2
- package/cjs/{listViewTestFixtures-78bedae0.js.map → listViewTestFixtures-9b3ecea2.js.map} +1 -1
- package/cjs/{menuTestsUtils-216ea1a0.js → menuTestsUtils-25e88c84.js} +2 -2
- package/cjs/{menuTestsUtils-216ea1a0.js.map → menuTestsUtils-25e88c84.js.map} +1 -1
- package/cjs/resources/nls/ar/bundle.js +1 -1
- package/cjs/resources/nls/ar-XB/bundle.js +1 -1
- package/cjs/resources/nls/bg/bundle.js +1 -1
- package/cjs/resources/nls/bs/bundle.js +1 -1
- package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
- package/cjs/resources/nls/bundle.js +1 -1
- package/cjs/resources/nls/cs/bundle.js +1 -1
- package/cjs/resources/nls/da/bundle.js +1 -1
- package/cjs/resources/nls/de/bundle.js +1 -1
- package/cjs/resources/nls/el/bundle.js +1 -1
- package/cjs/resources/nls/en/bundle.js +1 -1
- package/cjs/resources/nls/en-XA/bundle.js +1 -1
- package/cjs/resources/nls/en-XC/bundle.js +1 -1
- package/cjs/resources/nls/es/bundle.js +1 -1
- package/cjs/resources/nls/et/bundle.js +1 -1
- package/cjs/resources/nls/fi/bundle.js +1 -1
- package/cjs/resources/nls/fr/bundle.js +1 -1
- package/cjs/resources/nls/fr-CA/bundle.js +1 -1
- package/cjs/resources/nls/he/bundle.js +1 -1
- package/cjs/resources/nls/hr/bundle.js +1 -1
- package/cjs/resources/nls/hu/bundle.js +1 -1
- package/cjs/resources/nls/is/bundle.js +1 -1
- package/cjs/resources/nls/it/bundle.js +1 -1
- package/cjs/resources/nls/ja/bundle.js +1 -1
- package/cjs/resources/nls/ko/bundle.js +1 -1
- package/cjs/resources/nls/lt/bundle.js +1 -1
- package/cjs/resources/nls/lv/bundle.js +1 -1
- package/cjs/resources/nls/ms/bundle.js +1 -1
- package/cjs/resources/nls/nl/bundle.js +1 -1
- package/cjs/resources/nls/no/bundle.js +1 -1
- package/cjs/resources/nls/pl/bundle.js +1 -1
- package/cjs/resources/nls/pt/bundle.js +1 -1
- package/cjs/resources/nls/pt-PT/bundle.js +1 -1
- package/cjs/resources/nls/ro/bundle.js +1 -1
- package/cjs/resources/nls/ru/bundle.js +1 -1
- package/cjs/resources/nls/sk/bundle.js +1 -1
- package/cjs/resources/nls/sl/bundle.js +1 -1
- package/cjs/resources/nls/sr/bundle.js +1 -1
- package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
- package/cjs/resources/nls/supportedLocales.js +1 -1
- package/cjs/resources/nls/sv/bundle.js +1 -1
- package/cjs/resources/nls/th/bundle.js +1 -1
- package/cjs/resources/nls/tr/bundle.js +1 -1
- package/cjs/resources/nls/uk/bundle.js +1 -1
- package/cjs/resources/nls/vi/bundle.js +1 -1
- package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
- package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
- package/cjs/{stringUtils-4323b5f4.js → stringUtils-b26170d6.js} +2 -2
- package/cjs/{stringUtils-4323b5f4.js.map → stringUtils-b26170d6.js.map} +1 -1
- package/cjs/{testHelpers-6f2545dd.js → testHelpers-1549dcba.js} +2 -2
- package/cjs/{testHelpers-6f2545dd.js.map → testHelpers-1549dcba.js.map} +1 -1
- package/cjs/translationBundle.js +1 -1
- package/cjs/{tslib.es6-cd419f8d.js → tslib.es6-b40fa41a.js} +2 -2
- package/cjs/{tslib.es6-cd419f8d.js.map → tslib.es6-b40fa41a.js.map} +1 -1
- package/cjs/{useAnimation-64f648d2.js → useAnimation-201c457f.js} +3 -3
- package/cjs/{useAnimation-64f648d2.js.map → useAnimation-201c457f.js.map} +1 -1
- package/cjs/{useFocusWithin-4b3e579b.js → useFocusWithin-22011c8f.js} +2 -2
- package/cjs/{useFocusWithin-4b3e579b.js.map → useFocusWithin-22011c8f.js.map} +1 -1
- package/cjs/{useSingleSelection-e0d38657.js → useSingleSelection-421a26ac.js} +2 -2
- package/cjs/{useSingleSelection-e0d38657.js.map → useSingleSelection-421a26ac.js.map} +1 -1
- package/cjs/utils/PRIVATE_clientHints.js +2 -2
- package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
- package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
- package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
- package/cjs/utils/PRIVATE_meterUtils.js +1 -1
- package/cjs/utils/PRIVATE_refUtils.js +1 -1
- package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
- package/cjs/utils/PRIVATE_timer.js +1 -1
- package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
- package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
- package/cjs/utils/UNSAFE_classNames.js +2 -2
- package/cjs/utils/UNSAFE_componentUtils.js +1 -1
- package/cjs/utils/UNSAFE_dataProvider.js +1 -1
- package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
- package/cjs/utils/UNSAFE_getLocale.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
- package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
- package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
- package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/cjs/utils/UNSAFE_keys.js +1 -1
- package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
- package/cjs/utils/UNSAFE_logger.js +3 -3
- package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
- package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
- package/cjs/utils/UNSAFE_mergeProps.js +1 -1
- package/cjs/utils/UNSAFE_meterTypes.js +1 -1
- package/cjs/utils/UNSAFE_roles.js +1 -1
- package/cjs/utils/UNSAFE_selectUtils.js +1 -1
- package/cjs/utils/UNSAFE_size.js +1 -1
- package/cjs/utils/UNSAFE_soundUtils.js +1 -1
- package/cjs/utils/UNSAFE_stringUtils.js +2 -2
- package/cjs/utils/UNSAFE_typeUtils.js +1 -1
- package/cjs/utils/UNSAFE_units.js +2 -2
- package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
- package/es/{ClearIcon-82a14f55.js → ClearIcon-7c8e7921.js} +3 -3
- package/es/{ClearIcon-82a14f55.js.map → ClearIcon-7c8e7921.js.map} +1 -1
- package/es/{LoadMoreCollection-f47b4050.js → LoadMoreCollection-d45c7af7.js} +2 -2
- package/es/{LoadMoreCollection-f47b4050.js.map → LoadMoreCollection-d45c7af7.js.map} +1 -1
- package/es/PRIVATE_Collection.js +1 -1
- package/es/PRIVATE_List.css +17 -18
- package/es/PRIVATE_List.js +24 -24
- package/es/PRIVATE_List.js.map +1 -1
- package/es/PRIVATE_Message.css +34 -35
- package/es/PRIVATE_Message.js +35 -35
- package/es/PRIVATE_Message.js.map +1 -1
- package/es/PRIVATE_MessageLayer.css +7 -8
- package/es/PRIVATE_MessageLayer.js +14 -14
- package/es/PRIVATE_MessageLayer.js.map +1 -1
- package/es/PRIVATE_Meter.js +2 -2
- package/es/PRIVATE_SelectCommon.css +18 -19
- package/es/PRIVATE_SelectCommon.js +22 -22
- package/es/PRIVATE_SelectCommon.js.map +1 -1
- package/es/PRIVATE_TransitionGroup.js +1 -1
- package/es/PRIVATE_VirtualizedCollection.js +1 -1
- package/es/UNSAFE_AspectRatio.css +1 -2
- package/es/UNSAFE_AspectRatio.js +7 -7
- package/es/UNSAFE_AspectRatio.js.map +1 -1
- package/es/UNSAFE_Avatar.css +8 -9
- package/es/UNSAFE_Avatar.js +10 -10
- package/es/UNSAFE_Avatar.js.map +1 -1
- package/es/UNSAFE_Badge.css +13 -14
- package/es/UNSAFE_Badge.js +14 -14
- package/es/UNSAFE_Badge.js.map +1 -1
- package/es/UNSAFE_BaseButton.css +15 -16
- package/es/UNSAFE_BaseButton.js +21 -21
- package/es/UNSAFE_BaseButton.js.map +1 -1
- package/es/UNSAFE_Button.css +8 -9
- package/es/UNSAFE_Button.js +14 -14
- package/es/UNSAFE_Button.js.map +1 -1
- package/es/UNSAFE_Center.js +7 -7
- package/es/UNSAFE_Chip.css +7 -8
- package/es/UNSAFE_Chip.js +8 -8
- package/es/UNSAFE_Chip.js.map +1 -1
- package/es/UNSAFE_Collapsible.css +9 -10
- package/es/UNSAFE_Collapsible.js +16 -16
- package/es/UNSAFE_Collapsible.js.map +1 -1
- package/es/UNSAFE_Collection.js +1 -1
- package/es/UNSAFE_ComponentMessage.css +3 -4
- package/es/UNSAFE_ComponentMessage.js +10 -10
- package/es/UNSAFE_ComponentMessage.js.map +1 -1
- package/es/UNSAFE_Divider.css +1 -2
- package/es/UNSAFE_Divider.js +6 -6
- package/es/UNSAFE_EmptyList.js +1 -1
- package/es/UNSAFE_Environment.js +1 -1
- package/es/UNSAFE_FilePicker.css +6 -7
- package/es/UNSAFE_FilePicker.js +13 -13
- package/es/UNSAFE_FilePicker.js.map +1 -1
- package/es/UNSAFE_Flex.css +2 -3
- package/es/UNSAFE_Flex.js +9 -9
- package/es/UNSAFE_Flex.js.map +1 -1
- package/es/UNSAFE_Floating.js +2 -2
- package/es/UNSAFE_FocusTrap.css +3 -4
- package/es/UNSAFE_FocusTrap.js +6 -6
- package/es/UNSAFE_FocusTrap.js.map +1 -1
- package/es/UNSAFE_Grid.css +1 -2
- package/es/UNSAFE_Grid.js +8 -8
- package/es/UNSAFE_Grid.js.map +1 -1
- package/es/UNSAFE_Heading.css +9 -10
- package/es/UNSAFE_Heading.js +16 -16
- package/es/UNSAFE_Heading.js.map +1 -1
- package/es/UNSAFE_HiddenAccessible.css +1 -2
- package/es/UNSAFE_HiddenAccessible.js +2 -2
- package/es/UNSAFE_HiddenAccessible.js.map +1 -1
- package/es/UNSAFE_HighlightText.css +1 -2
- package/es/UNSAFE_HighlightText.js +2 -2
- package/es/UNSAFE_HighlightText.js.map +1 -1
- package/es/UNSAFE_Icon.css +21 -22
- package/es/UNSAFE_Icon.js +24 -24
- package/es/UNSAFE_Icon.js.map +1 -1
- package/es/UNSAFE_Icons.js +3 -3
- package/es/UNSAFE_Indexer.css +8 -9
- package/es/UNSAFE_Indexer.js +15 -15
- package/es/UNSAFE_Indexer.js.map +1 -1
- package/es/UNSAFE_InputPassword.css +1 -2
- package/es/UNSAFE_InputPassword.js +10 -10
- package/es/UNSAFE_InputText.css +1 -2
- package/es/UNSAFE_InputText.js +9 -9
- package/es/UNSAFE_Label.css +13 -14
- package/es/UNSAFE_Label.js +15 -15
- package/es/UNSAFE_Label.js.map +1 -1
- package/es/UNSAFE_LabelValueLayout.css +9 -10
- package/es/UNSAFE_LabelValueLayout.js +16 -16
- package/es/UNSAFE_LabelValueLayout.js.map +1 -1
- package/es/UNSAFE_Layer.js +1 -1
- package/es/UNSAFE_Link.css +5 -6
- package/es/UNSAFE_Link.js +6 -6
- package/es/UNSAFE_Link.js.map +1 -1
- package/es/UNSAFE_ListItemLayout.css +10 -11
- package/es/UNSAFE_ListItemLayout.js +16 -16
- package/es/UNSAFE_ListItemLayout.js.map +1 -1
- package/es/UNSAFE_ListView.js +9 -9
- package/es/UNSAFE_LiveRegion.css +1 -2
- package/es/UNSAFE_LiveRegion.js +2 -2
- package/es/UNSAFE_LiveRegion.js.map +1 -1
- package/es/UNSAFE_LoadMoreCollection.js +2 -2
- package/es/UNSAFE_Menu.css +19 -20
- package/es/UNSAFE_Menu.js +24 -24
- package/es/UNSAFE_Menu.js.map +1 -1
- package/es/UNSAFE_MessageBanner.js +8 -8
- package/es/UNSAFE_MessageToast.css +1 -2
- package/es/UNSAFE_MessageToast.js +9 -9
- package/es/UNSAFE_MeterBar.css +45 -46
- package/es/UNSAFE_MeterBar.js +46 -46
- package/es/UNSAFE_MeterBar.js.map +1 -1
- package/es/UNSAFE_MeterCircle.css +47 -48
- package/es/UNSAFE_MeterCircle.js +49 -49
- package/es/UNSAFE_MeterCircle.js.map +1 -1
- package/es/UNSAFE_Modal.css +5 -6
- package/es/UNSAFE_Modal.js +7 -7
- package/es/UNSAFE_NumberInputText.js +8 -8
- package/es/UNSAFE_PrefixSuffix.css +8 -9
- package/es/UNSAFE_PrefixSuffix.js +9 -9
- package/es/UNSAFE_PrefixSuffix.js.map +1 -1
- package/es/UNSAFE_ProgressBar.css +6 -7
- package/es/UNSAFE_ProgressBar.js +8 -8
- package/es/UNSAFE_ProgressBar.js.map +1 -1
- package/es/UNSAFE_ProgressCircle.css +6 -7
- package/es/UNSAFE_ProgressCircle.js +8 -8
- package/es/UNSAFE_ProgressCircle.js.map +1 -1
- package/es/UNSAFE_RatingGauge.css +22 -23
- package/es/UNSAFE_RatingGauge.js +23 -23
- package/es/UNSAFE_RatingGauge.js.map +1 -1
- package/es/UNSAFE_SelectMultiple.css +1 -2
- package/es/UNSAFE_SelectMultiple.js +10 -10
- package/es/UNSAFE_SelectMultiple.js.map +1 -1
- package/es/UNSAFE_SelectSingle.js +9 -9
- package/es/UNSAFE_Selector.css +5 -6
- package/es/UNSAFE_Selector.js +13 -13
- package/es/UNSAFE_Selector.js.map +1 -1
- package/es/UNSAFE_Skeleton.css +1 -2
- package/es/UNSAFE_Skeleton.js +7 -7
- package/es/UNSAFE_Spacer.js +7 -7
- package/es/UNSAFE_SplitMenuButton.css +5 -6
- package/es/UNSAFE_SplitMenuButton.js +12 -12
- package/es/UNSAFE_SplitMenuButton.js.map +1 -1
- package/es/UNSAFE_Text.css +25 -26
- package/es/UNSAFE_Text.js +31 -31
- package/es/UNSAFE_Text.js.map +1 -1
- package/es/UNSAFE_TextArea.css +3 -4
- package/es/UNSAFE_TextArea.js +11 -11
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +8 -8
- package/es/UNSAFE_TextField.css +62 -63
- package/es/UNSAFE_TextField.js +65 -65
- package/es/UNSAFE_TextField.js.map +1 -1
- package/es/UNSAFE_ThemedIcons.js +3 -3
- package/es/UNSAFE_UserAssistance.css +11 -12
- package/es/UNSAFE_UserAssistance.js +16 -16
- package/es/UNSAFE_UserAssistance.js.map +1 -1
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +9 -9
- package/es/UNSAFE_WindowOverlay.js +1 -1
- package/es/{_curry1-dfb64835.js → _curry1-6119e1a7.js} +2 -2
- package/es/{_curry1-dfb64835.js.map → _curry1-6119e1a7.js.map} +1 -1
- package/es/{_curry2-b60c1ab2.js → _curry2-e114747a.js} +3 -3
- package/es/{_curry2-b60c1ab2.js.map → _curry2-e114747a.js.map} +1 -1
- package/es/{_curry3-645b514e.js → _curry3-53308de6.js} +4 -4
- package/es/{_curry3-645b514e.js.map → _curry3-53308de6.js.map} +1 -1
- package/es/{_has-47f27295.js → _has-adf1b1d4.js} +3 -3
- package/es/{_has-47f27295.js.map → _has-adf1b1d4.js.map} +1 -1
- package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
- package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
- package/es/hooks/PRIVATE_useItemAction.js +1 -1
- package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
- package/es/hooks/PRIVATE_useSelection.js +1 -1
- package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
- package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
- package/es/hooks/UNSAFE_useActionable.js +1 -1
- package/es/hooks/UNSAFE_useActive.js +1 -1
- package/es/hooks/UNSAFE_useAnimation.js +2 -2
- package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
- package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
- package/es/hooks/UNSAFE_useClearIcon.js +1 -1
- package/es/hooks/UNSAFE_useColorScheme.js +1 -1
- package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
- package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
- package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
- package/es/hooks/UNSAFE_useDebounce.js +1 -1
- package/es/hooks/UNSAFE_useFloating.js +2 -2
- package/es/hooks/UNSAFE_useFocus.js +1 -1
- package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
- package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
- package/es/hooks/UNSAFE_useFormContext.js +1 -1
- package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
- package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
- package/es/hooks/UNSAFE_useHover.js +1 -1
- package/es/hooks/UNSAFE_useId.js +1 -1
- package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
- package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
- package/es/hooks/UNSAFE_useLongPress.js +1 -1
- package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
- package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/es/hooks/UNSAFE_usePan.js +1 -1
- package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/es/hooks/UNSAFE_usePress.js +1 -1
- package/es/hooks/UNSAFE_useScale.js +1 -1
- package/es/hooks/UNSAFE_useSwipe.js +1 -1
- package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
- package/es/hooks/UNSAFE_useTap.js +1 -1
- package/es/hooks/UNSAFE_useTextField.js +1 -1
- package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
- package/es/hooks/UNSAFE_useTheme.js +1 -1
- package/es/hooks/UNSAFE_useTimer.js +1 -1
- package/es/hooks/UNSAFE_useToggle.js +1 -1
- package/es/hooks/UNSAFE_useTooltip.css +4 -5
- package/es/hooks/UNSAFE_useTooltip.js +7 -7
- package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/es/hooks/UNSAFE_useTouch.js +1 -1
- package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/es/hooks/UNSAFE_useUser.js +1 -1
- package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
- package/es/{index-4d0e7777.js → index-9824b629.js} +2 -2
- package/es/{index-4d0e7777.js.map → index-9824b629.js.map} +1 -1
- package/es/{keys-1907eb95.js → keys-dbfd2e64.js} +4 -4
- package/es/{keys-1907eb95.js.map → keys-dbfd2e64.js.map} +1 -1
- package/es/resources/nls/ar/bundle.js +1 -1
- package/es/resources/nls/ar-XB/bundle.js +1 -1
- package/es/resources/nls/bg/bundle.js +1 -1
- package/es/resources/nls/bs/bundle.js +1 -1
- package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
- package/es/resources/nls/bundle.js +1 -1
- package/es/resources/nls/cs/bundle.js +1 -1
- package/es/resources/nls/da/bundle.js +1 -1
- package/es/resources/nls/de/bundle.js +1 -1
- package/es/resources/nls/el/bundle.js +1 -1
- package/es/resources/nls/en/bundle.js +1 -1
- package/es/resources/nls/en-XA/bundle.js +1 -1
- package/es/resources/nls/en-XC/bundle.js +1 -1
- package/es/resources/nls/es/bundle.js +1 -1
- package/es/resources/nls/et/bundle.js +1 -1
- package/es/resources/nls/fi/bundle.js +1 -1
- package/es/resources/nls/fr/bundle.js +1 -1
- package/es/resources/nls/fr-CA/bundle.js +1 -1
- package/es/resources/nls/he/bundle.js +1 -1
- package/es/resources/nls/hr/bundle.js +1 -1
- package/es/resources/nls/hu/bundle.js +1 -1
- package/es/resources/nls/is/bundle.js +1 -1
- package/es/resources/nls/it/bundle.js +1 -1
- package/es/resources/nls/ja/bundle.js +1 -1
- package/es/resources/nls/ko/bundle.js +1 -1
- package/es/resources/nls/lt/bundle.js +1 -1
- package/es/resources/nls/lv/bundle.js +1 -1
- package/es/resources/nls/ms/bundle.js +1 -1
- package/es/resources/nls/nl/bundle.js +1 -1
- package/es/resources/nls/no/bundle.js +1 -1
- package/es/resources/nls/pl/bundle.js +1 -1
- package/es/resources/nls/pt/bundle.js +1 -1
- package/es/resources/nls/pt-PT/bundle.js +1 -1
- package/es/resources/nls/ro/bundle.js +1 -1
- package/es/resources/nls/ru/bundle.js +1 -1
- package/es/resources/nls/sk/bundle.js +1 -1
- package/es/resources/nls/sl/bundle.js +1 -1
- package/es/resources/nls/sr/bundle.js +1 -1
- package/es/resources/nls/sr-Latn/bundle.js +1 -1
- package/es/resources/nls/supportedLocales.js +1 -1
- package/es/resources/nls/sv/bundle.js +1 -1
- package/es/resources/nls/th/bundle.js +1 -1
- package/es/resources/nls/tr/bundle.js +1 -1
- package/es/resources/nls/uk/bundle.js +1 -1
- package/es/resources/nls/vi/bundle.js +1 -1
- package/es/resources/nls/zh-Hans/bundle.js +1 -1
- package/es/resources/nls/zh-Hant/bundle.js +1 -1
- package/es/translationBundle.js +1 -1
- package/es/{tslib.es6-bf96b795.js → tslib.es6-d5e68b30.js} +2 -2
- package/es/{tslib.es6-bf96b795.js.map → tslib.es6-d5e68b30.js.map} +1 -1
- package/es/{useSingleSelection-8eaee995.js → useSingleSelection-5f556d2f.js} +2 -2
- package/es/{useSingleSelection-8eaee995.js.map → useSingleSelection-5f556d2f.js.map} +1 -1
- package/es/utils/PRIVATE_clientHints.js +1 -1
- package/es/utils/PRIVATE_collectionUtils.js +1 -1
- package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
- package/es/utils/PRIVATE_floatingUtils.js +1 -1
- package/es/utils/PRIVATE_meterUtils.js +1 -1
- package/es/utils/PRIVATE_refUtils.js +1 -1
- package/es/utils/PRIVATE_tabbableUtils.js +4 -4
- package/es/utils/PRIVATE_timer.js +1 -1
- package/es/utils/UNSAFE_arrayUtils.js +1 -1
- package/es/utils/UNSAFE_attributeUtils.js +1 -1
- package/es/utils/UNSAFE_classNames.js +1 -1
- package/es/utils/UNSAFE_componentUtils.js +1 -1
- package/es/utils/UNSAFE_dataProvider.js +1 -1
- package/es/utils/UNSAFE_filePickerUtils.js +1 -1
- package/es/utils/UNSAFE_getLocale.js +1 -1
- package/es/utils/UNSAFE_interpolations/aria.js +1 -1
- package/es/utils/UNSAFE_interpolations/borders.js +1 -1
- package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -16
- package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
- package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/colors.js +1 -1
- package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
- package/es/utils/UNSAFE_interpolations/flexbox.css +7 -8
- package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/flexitem.css +7 -8
- package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/grid.js +1 -1
- package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
- package/es/utils/UNSAFE_interpolations/padding.js +1 -1
- package/es/utils/UNSAFE_interpolations/text.css +3 -4
- package/es/utils/UNSAFE_interpolations/text.js +7 -7
- package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/es/utils/UNSAFE_keys.js +1 -1
- package/es/utils/UNSAFE_lengthFilter.js +1 -1
- package/es/utils/UNSAFE_logger.js +3 -3
- package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
- package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
- package/es/utils/UNSAFE_mergeProps.js +1 -1
- package/es/utils/UNSAFE_meterTypes.js +1 -1
- package/es/utils/UNSAFE_roles.js +1 -1
- package/es/utils/UNSAFE_selectUtils.js +1 -1
- package/es/utils/UNSAFE_size.js +1 -1
- package/es/utils/UNSAFE_soundUtils.js +1 -1
- package/es/utils/UNSAFE_stringUtils.js +1 -1
- package/es/utils/UNSAFE_typeUtils.js +1 -1
- package/es/utils/UNSAFE_units.js +1 -1
- package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
- package/package.json +1 -1
- package/amd/Badge-3a3bc336.js +0 -40
- package/amd/BaseButton-20a653f3.js +0 -148
- package/amd/Button-87280b4a.js +0 -68
- package/amd/Chip-8cd23568.js +0 -55
- package/amd/ClearIcon-27a5c275.js +0 -58
- package/amd/Collection-55b75a82.js +0 -18
- package/amd/ComponentMessage-5603259e.js +0 -44
- package/amd/ComponentMessageContainer-a00ec42c.js +0 -50
- package/amd/Divider-8cd412fd.js +0 -34
- package/amd/FilePicker-bb70dacb.js +0 -582
- package/amd/Flex-7762d39c.js +0 -35
- package/amd/Floating-08ac18d2.js +0 -310
- package/amd/FocusTrap-420f2714.js +0 -143
- package/amd/FormControlUtils-802d298a.js +0 -21
- package/amd/Heading-431829e1.js +0 -72
- package/amd/HiddenAccessible-1dadf91a.js +0 -25
- package/amd/HighlightText-9d200a5d.js +0 -48
- package/amd/Icon-a6ef6699.js +0 -99
- package/amd/Indexer-81bf2fe0.js +0 -512
- package/amd/InlineHelpSource-8a22f914.js +0 -32
- package/amd/Link-3169fd72.js +0 -42
- package/amd/List-26b59d92.js +0 -670
- package/amd/ListItemTextLayout-f6a3d721.js +0 -211
- package/amd/ListView-3b9a3235.js +0 -16
- package/amd/LoadMoreCollection-b7513141.js +0 -63
- package/amd/Menu-94ddd429.js +0 -302
- package/amd/Menu-94ddd429.js.map +0 -1
- package/amd/MenuDivider-b9309ceb.js +0 -19
- package/amd/MenuItem-c263a7c0.js +0 -154
- package/amd/MenuItem-c263a7c0.js.map +0 -1
- package/amd/Message.types-3ff18727.js +0 -11
- package/amd/MessageCloseButton-51697635.js +0 -44
- package/amd/MessageDetail-dd86fa2b.js +0 -61
- package/amd/MessageFormattingUtils-0ffdac02.js +0 -103
- package/amd/MessageLayer-6da93adb.js +0 -80
- package/amd/MessageStartIcon-1b57b659.js +0 -63
- package/amd/MessageSummary-cf0af1b2.js +0 -37
- package/amd/MessageTimestamp-0e995235.js +0 -36
- package/amd/MessageToast-e0f94cbe.js +0 -307
- package/amd/MessageUtils-0bf10cfa.js +0 -137
- package/amd/MessagesManager-da52103a.js +0 -110
- package/amd/MeterCircle-bb948163.js +0 -547
- package/amd/Modal-be0762b5.js +0 -109
- package/amd/NumberInputText-d762d134.js +0 -252
- package/amd/ReadonlyTextFieldInput-4583f049.js +0 -111
- package/amd/SelectMenuItem-2412de22.js +0 -60
- package/amd/SelectMenuItem-2412de22.js.map +0 -1
- package/amd/SelectMultiple-d1b4cc77.js +0 -485
- package/amd/SelectMultiple-d1b4cc77.js.map +0 -1
- package/amd/SelectSingle-01b25bff.js +0 -354
- package/amd/SelectSingle-01b25bff.js.map +0 -1
- package/amd/Skeleton-d0383726.js +0 -39
- package/amd/Spacer-165e178f.js +0 -16
- package/amd/SplitMenuButton-df0ee526.js +0 -184
- package/amd/Text-de291c3f.js +0 -100
- package/amd/TextArea-25fa8171.js +0 -133
- package/amd/TextAreaAutosize-370b4a47.js +0 -161
- package/amd/TextFieldInput-312fb211.js +0 -172
- package/amd/VirtualizedCollection-63815bce.js +0 -181
- package/amd/VirtualizedListView-fb2a18dd.js +0 -16
- package/amd/_curry1-645b9927.js +0 -70
- package/amd/_curry1-645b9927.js.map +0 -1
- package/amd/_curry2-93924f19.js +0 -42
- package/amd/_curry2-93924f19.js.map +0 -1
- package/amd/_curry3-4cc6f6ba.js +0 -60
- package/amd/_curry3-4cc6f6ba.js.map +0 -1
- package/amd/_has-cce283ad.js +0 -14
- package/amd/_has-cce283ad.js.map +0 -1
- package/amd/classNames-027de734.js +0 -19
- package/amd/clientHints-361cde40.js +0 -156
- package/amd/flexbox-4dd0bbb4.js +0 -41
- package/amd/flexitem-7363d040.js +0 -41
- package/amd/index-5920700b.js +0 -76
- package/amd/index-e9199379.js +0 -1661
- package/amd/index-e9199379.js.map +0 -1
- package/amd/index-f54bad63.js +0 -64
- package/amd/index-f54bad63.js.map +0 -1
- package/amd/keys-a09501ab.js +0 -105
- package/amd/listViewSelectionTests-70a5b510.js +0 -1385
- package/amd/listViewSelectionTests-70a5b510.js.map +0 -1
- package/amd/listViewTabbableModeTests-a91e8816.js +0 -112
- package/amd/listViewTabbableModeTests-a91e8816.js.map +0 -1
- package/amd/listViewTestFixtures-98d95a1d.js +0 -46
- package/amd/listViewTestFixtures-98d95a1d.js.map +0 -1
- package/amd/menuTestsUtils-6da02810.js +0 -41
- package/amd/stringUtils-9311a716.js +0 -92
- package/amd/testHelpers-9267074b.js +0 -37
- package/amd/tslib.es6-71b1ba5b.js +0 -437
- package/amd/tslib.es6-71b1ba5b.js.map +0 -1
- package/amd/useAnimation-2f572e0c.js +0 -247
- package/amd/useFocusWithin-a88e3e32.js +0 -50
- package/amd/useSingleSelection-7081cc84.js +0 -43
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_FilePicker.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","FilePicker","_a","capture","isDisabled","selectionMode","children","otherProps","__rest","testHandlersRef","__testHandlerSymbol","translations","useTranslationBundle","DisabledFilePicker","Object","assign","props","CustomFilePicker","DefaultFilePicker","rootRef","useRef","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;;AAEG;AACI,MAAM,wBAAwB,GAAG,CACtC,UAAyC,EACzC,WAA2C,EAC3C,aAA+C,EAC/C,YAAwB,EACxB,aAA+C,KAC7C;IACF,OAAO;AACL,QAAAA,GAAA,CAAC,IAAI,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,EAAE,MAAM,EAAC,M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E_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","FilePicker","_a","capture","isDisabled","selectionMode","children","otherProps","__rest","testHandlersRef","__testHandlerSymbol","translations","useTranslationBundle","DisabledFilePicker","Object","assign","props","CustomFilePicker","DefaultFilePicker","rootRef","useRef","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;;AAEG;AACI,MAAM,wBAAwB,GAAG,CACtC,UAAyC,EACzC,WAA2C,EAC3C,aAA+C,EAC/C,YAAwB,EACxB,aAA+C,KAC7C;IACF,OAAO;AACL,QAAAA,GAAA,CAAC,IAAI,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,OAAO,EAAE,UAAU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ciB7IGNoaWxkcmVuLCBoYXNaZXJvTWFyZ2lucyB9ID0gX2EsIHByb3BzID0gX19yZXN0KF9hLCBbXCJjaGlsZHJlblwiLCBcImhhc1plcm9NYXJnaW5zXCJdKTtcbiAgICBjb25zdCBmbGV4Q29tcG9uZW50Q2xhc3NlcyA9IGNsYXNzTmFtZXMoW2Jhc2VTdHlsZXMsIGhhc1plcm9NYXJnaW5zICYmIG1hcmdpblplcm9TdHlsZXNdKTtcbiAgICBjb25zdCBfYiA9IHN0eWxlSW50ZXJwb2xhdGlvbnMocHJvcHMpLCB7IGNsYXNzOiBjbHMgfSA9IF9iLCBzdHlsZXMgPSBfX3Jlc3QoX2IsIFtcImNsYXNzXCJdKTtcbiAgICByZXR1cm4gKF9qc3goXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IGNsYXNzOiBgJHtmbGV4Q29tcG9uZW50Q2xhc3Nlc30gJHtjbHN9YCwgc3R5bGU6IHN0eWxlcyB9LCB7IGNoaWxkcmVuOiBjaGlsZHJlbiB9KSkpO1xufTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUZsZXguanMubWFwIl19*/
|
|
1
|
+
.ql0u1o{display:flex;}
|
|
2
|
+
._76jn7k > *{margin-top:0 !important;margin-bottom:0 !important;margin-left:0 !important;margin-right:0 !important;}
|
package/es/UNSAFE_Flex.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: 14.0.
|
|
2
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
/* @oracle/oraclejet-preact: 14.0.9 */
|
|
2
|
+
import { _ as __rest } from './tslib.es6-d5e68b30.js';
|
|
3
3
|
import { jsx } from 'preact/jsx-runtime';
|
|
4
4
|
import { dimensionInterpolations } from './utils/UNSAFE_interpolations/dimensions.js';
|
|
5
5
|
import { mergeInterpolations } from './utils/UNSAFE_mergeInterpolations.js';
|
|
@@ -10,14 +10,14 @@ import { flexitemInterpolations } from './utils/UNSAFE_interpolations/flexitem.j
|
|
|
10
10
|
import { classNames } from './utils/UNSAFE_classNames.js';
|
|
11
11
|
import './utils/UNSAFE_arrayUtils.js';
|
|
12
12
|
import './utils/UNSAFE_size.js';
|
|
13
|
-
import './_curry1-
|
|
14
|
-
import './_curry3-
|
|
15
|
-
import './_curry2-
|
|
16
|
-
import './_has-
|
|
17
|
-
import './keys-
|
|
13
|
+
import './_curry1-6119e1a7.js';
|
|
14
|
+
import './_curry3-53308de6.js';
|
|
15
|
+
import './_curry2-e114747a.js';
|
|
16
|
+
import './_has-adf1b1d4.js';
|
|
17
|
+
import './keys-dbfd2e64.js';
|
|
18
18
|
|
|
19
|
-
const baseStyles = "
|
|
20
|
-
const marginZeroStyles = "
|
|
19
|
+
const baseStyles = "ql0u1o";
|
|
20
|
+
const marginZeroStyles = "_76jn7k";
|
|
21
21
|
const interpolations = [...Object.values(dimensionInterpolations), ...Object.values(flexboxInterpolations), ...Object.values(flexitemInterpolations), ...Object.values(boxAlignmentInterpolations)];
|
|
22
22
|
const styleInterpolations = mergeInterpolations(interpolations);
|
|
23
23
|
const Flex = _a => {
|
package/es/UNSAFE_Flex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_Flex.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":";;;;;;;;;;;;;;;;;;AA2BA,MAAAA,UAAA,GAAA,
|
|
1
|
+
{"version":3,"file":"UNSAFE_Flex.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":";;;;;;;;;;;;;;;;;;AA2BA,MAAAA,UAAA,GAAA,QAAA,CAAA;AACA,MAAAC,gBAAA,GAAA,SAAA,CAAA;AAUA,MAAAC,cAAA,GAAA,CACE,GAAAC,MAAA,CAAAC,MAAA,CAAAC,uBAAA,CADF,EAEE,GAAAF,MAAA,CAAAC,MAAA,CAAAE,qBAAA,CAFF,EAGE,GAAAH,MAAA,CAAAC,MAAA,CAAAG,sBAAA,CAHF,EAIE,GAAAJ,MAAA,CAAAC,MAAA,CAAAI,0BAAA,CAJF,CAAA,CAAA;AAOA,MAAAC,mBAAA,GAAAC,mBAAA,CAAAR,cAAA,CAAA,CAAA;AAEAS,MAAAA,IAAA,GAAAC,EAAA,IAAA;;;;;;;EACE,MAAAC,oBAAA,GAAAC,UAAA,CAAA,CAAAd,UAAA,EAAAe,cAAA,IAAAd,gBAAA,CAAA,CAAA,CAAA;;AACA,EAAA,MAAAe,EAAA,GAAAP,mBAAA,CAAAQ,KAAA,CAAA;QAAA;AAAAC,IAAAA,KAAA,EAAAC,GAAAA;AAAA,GAAA,GAAAH,EAAA;QAAAI,MAAA,GAAAC,MAAA,CAAAL,EAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;AACA,EAAA,OAAAM,GAAA,CAAA,KAAA,EAAAnB,MAAA,CAAAoB,MAAA,CAAA;AAAAL,IAAAA,KAAA,EAAA,CAAA,EAAAL,oBAAA,CAAA,CAAA,EAAAM,GAAA,CAAA,CAAA;AAAAK,IAAAA,KAAA,EAAAJ,MAAAA;AAAA,GAAA,EAAA;AAAAK,IAAAA,QAAA,EAAAA,QAAAA;AAAA,GAAA,CAAA,CAAA,CAAA;AAKF;;;;;;;"}
|
package/es/UNSAFE_Floating.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: 14.0.
|
|
1
|
+
/* @oracle/oraclejet-preact: 14.0.9 */
|
|
2
2
|
import { jsxs, jsx } from 'preact/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useLayoutEffect, useCallback, useMemo } from 'preact/hooks';
|
|
4
4
|
import { forwardRef } from 'preact/compat';
|
|
5
|
-
import { u as useFloating, o as offset, b, D, L, m, N } from './index-
|
|
5
|
+
import { u as useFloating, o as offset, b, D, L, m, N } from './index-9824b629.js';
|
|
6
6
|
import { mergeRefs } from './utils/PRIVATE_refUtils.js';
|
|
7
7
|
import { useOutsideClick } from './hooks/UNSAFE_useOutsideClick.js';
|
|
8
8
|
import { useUser } from './hooks/UNSAFE_useUser.js';
|
package/es/UNSAFE_FocusTrap.css
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
.
|
|
4
|
-
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL2plbmtpbnMvdWl0ZWNoL3dvcmtzcGFjZS9PSkVUX0NvZGVfMTQuMC43L3BhY2thZ2VzL29yYWNsZWpldC1wcmVhY3Qvc3JjL1VOU0FGRV9Gb2N1c1RyYXAvRm9jdXNHdWFyZC50c3giXSwibmFtZXMiOlsiLmd1YXJkLTE1N3AzdW8iXSwibWFwcGluZ3MiOiJBQVdJQSIsImZpbGUiOiIvaG9tZS9qZW5raW5zL3VpdGVjaC93b3Jrc3BhY2UvT0pFVF9Db2RlXzE0LjAuNy9wYWNrYWdlcy9vcmFjbGVqZXQtcHJlYWN0L3NyYy9VTlNBRkVfRm9jdXNUcmFwL0ZvY3VzR3VhcmQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsganN4IGFzIF9qc3ggfSBmcm9tIFwicHJlYWN0L2pzeC1ydW50aW1lXCI7XG4vKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgKGMpICVGSVJTVF9ZRUFSJSAlQ1VSUkVOVF9ZRUFSJSwgT3JhY2xlIGFuZC9vciBpdHMgYWZmaWxpYXRlcy5cbiAqIFRoZSBVbml2ZXJzYWwgUGVybWlzc2l2ZSBMaWNlbnNlIChVUEwpLCBWZXJzaW9uIDEuMFxuICogYXMgc2hvd24gYXQgaHR0cHM6Ly9vc3Mub3JhY2xlLmNvbS9saWNlbnNlcy91cGwvXG4gKiBAaWdub3JlXG4gKi9cbmltcG9ydCB7IGZvcndhcmRSZWYgfSBmcm9tICdwcmVhY3QvY29tcGF0JztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ2xpbmFyaWEnO1xuY29uc3Qgc3R5bGVzID0ge1xuICAgIGd1YXJkOiBjc3MgYCR7e1xuICAgICAgICBoZWlnaHQ6ICcwcHgnLFxuICAgICAgICBsZWZ0OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ2ZpeGVkJyxcbiAgICAgICAgdG9wOiAwLFxuICAgICAgICB3aWR0aDogJzFweCdcbiAgICB9fWBcbn07XG4vKipcbiAqIFN0eWxlZCBGb2N1c1RyYXAgc3ViLWNvbXBvbmVudCB0byByZW5kZXIgbm9uLXZpc2libGUgZm9jdXMgZ3VhcmRzXG4gKi9cbmNvbnN0IEZvY3VzR3VhcmQgPSBmb3J3YXJkUmVmKCh7IG9uRm9jdXMgfSwgZ3VhcmRSZWYpID0+IHtcbiAgICByZXR1cm4gX2pzeChcImRpdlwiLCB7IGNsYXNzOiBzdHlsZXMuZ3VhcmQsIG9uRm9jdXM6IG9uRm9jdXMsIHJlZjogZ3VhcmRSZWYsIHRhYkluZGV4OiAwIH0pO1xufSk7XG5leHBvcnQgZGVmYXVsdCBGb2N1c0d1YXJkO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Rm9jdXNHdWFyZC5qcy5tYXAiXX0=*/
|
|
1
|
+
._109sl2v > *{margin-top:0 !important;margin-bottom:0 !important;margin-left:0 !important;margin-right:0 !important;}
|
|
2
|
+
|
|
3
|
+
._1eruijf{height:0px;left:0;position:fixed;top:0;width:1px;}
|
package/es/UNSAFE_FocusTrap.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: 14.0.
|
|
1
|
+
/* @oracle/oraclejet-preact: 14.0.9 */
|
|
2
2
|
import { jsx, jsxs } from 'preact/jsx-runtime';
|
|
3
3
|
import { Fragment } from 'preact';
|
|
4
4
|
import { forwardRef, useRef, useCallback, useEffect } from 'preact/compat';
|
|
5
5
|
import { classNames } from './utils/UNSAFE_classNames.js';
|
|
6
6
|
import "./UNSAFE_FocusTrap.css";
|
|
7
7
|
import { focusOn, focusWithin, focusOnEnd, focusOnStart, getActiveElement, isTabbableElement } from './utils/PRIVATE_tabbableUtils.js';
|
|
8
|
-
import './_curry1-
|
|
9
|
-
import './_curry2-
|
|
10
|
-
import './_curry3-
|
|
8
|
+
import './_curry1-6119e1a7.js';
|
|
9
|
+
import './_curry2-e114747a.js';
|
|
10
|
+
import './_curry3-53308de6.js';
|
|
11
11
|
|
|
12
12
|
const styles = {
|
|
13
|
-
guard: "
|
|
13
|
+
guard: "_1eruijf"
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Styled FocusTrap sub-component to render non-visible focus guards
|
|
@@ -142,7 +142,7 @@ const hasFocus = (elements, target) => {
|
|
|
142
142
|
}; // remove margins from children
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
const childrenStyles = "
|
|
145
|
+
const childrenStyles = "_109sl2v";
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* @license
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_FocusTrap.js","sources":["../../src/UNSAFE_FocusTrap/FocusGuard.tsx","../../src/UNSAFE_FocusTrap/FocusTrap.tsx","../../src/UNSAFE_FocusTrap/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\ntype Props = {\n onFocus: (event: FocusEvent) => void;\n};\n\nconst styles = {\n guard: cssProps`${{\n height: '0px',\n left: 0,\n position: 'fixed',\n top: 0,\n width: '1px'\n }}`\n};\n\n/**\n * Styled FocusTrap sub-component to render non-visible focus guards\n */\nconst FocusGuard = forwardRef(({ onFocus }: Props, guardRef: ForwardedRef<HTMLDivElement>) => {\n return <div class={styles.guard} onFocus={onFocus} ref={guardRef} tabIndex={0} />;\n});\n\nexport default FocusGuard;\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, Fragment, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef } from 'preact/compat';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport {\n focusOn,\n focusOnEnd,\n focusOnStart,\n focusWithin,\n getActiveElement,\n isTabbableElement\n} from '../utils/PRIVATE_tabbableUtils';\nimport FocusGuard from './FocusGuard';\n\ntype Props = {\n children: ComponentChildren;\n /**\n * Optional Ref to an element to focus on when component mounts\n * @default - undefined - behavior is to focus on first tabbableElement\n */\n autoFocusRef?: RefObject<HTMLElement | null>;\n\n /**\n * Sets whether focus is managed and whether guards are present\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * Why a isDisabled prop as compared to ONLY supporting conditional rendering?\n *\n * 1) We need an actual HTML Element for the trap, conditional rendering an element potentially breaks consumer CSS\n * 2) Conditional rendering can short-circuit event bubbling in preact and lead to expected events not bubbling.\n */\n\n /**\n * Optional Ref to element to focus on when component un-mounts, false to disable.\n * @default - undefined - behavior is to focus on the original activeElement when focus trap was enabled\n */\n restoreFocusRef?: RefObject<HTMLElement> | false;\n};\n\n/**\n * Trap focus within a DOM node. When a user hits Tab or Shift+Tab, focus remains in the focus trap.\n */\nexport const FocusTrap = ({\n autoFocusRef,\n children,\n isDisabled = false,\n restoreFocusRef\n}: Props) => {\n const trapRef = useRef<HTMLDivElement>(null);\n const startGuardRef = useRef<HTMLDivElement>(null);\n const endGuardRef = useRef<HTMLDivElement>(null);\n const lastActiveElementRef = useRef<HTMLElement | null>(null);\n\n // classes to be set on the children wrapper\n const classes = classNames([childrenStyles]);\n\n /**\n * contain focus if trap is enabled, and target is not already contained\n *\n * calling cases for side-effect of setting focus\n * - on initial mount of (enabled) trap, where target is not inside trap\n * - on enabling of a disabled trap, where target is not inside trap\n * - target of click event is outside of trap.\n */\n const conditionallyContainFocus = useCallback(\n (target: HTMLElement | null) => {\n const trap = trapRef.current;\n // short-circuit, if trap or target not valid\n if (isDisabled || !trap || !target) return;\n\n // just update ref if, target already has focus\n if (target && hasFocus([trap, startGuardRef.current, endGuardRef.current], target)) {\n lastActiveElementRef.current = target;\n return;\n }\n\n // set focus to last active tab-stop if lastElement is defined and inside trap\n if (lastActiveElementRef.current) {\n focusOn(lastActiveElementRef.current);\n } else {\n // otherwise just contain focus within trap as target is outside enabled trap and we have no last-known tab-stop\n focusWithin(trap);\n }\n },\n [isDisabled]\n );\n\n // loop focus\n const handleStartGuardOnFocus = (event: FocusEvent) => {\n if (isDisabled || !trapRef.current) return;\n focusOnEnd(trapRef.current);\n\n // prevent scroll jump and bubbling this event up as a focus event\n event.stopPropagation();\n event.preventDefault();\n };\n\n const handleEndGuardOnFocus = (event: FocusEvent) => {\n if (isDisabled || !trapRef.current) return;\n focusOnStart(trapRef.current);\n\n // prevent scroll jump and bubbling guard event up as a focus event\n event.stopPropagation();\n event.preventDefault();\n };\n\n const handleTrapOnFocus = (event: FocusEvent) => {\n lastActiveElementRef.current = event.target as HTMLElement;\n };\n\n // handle initial render or re-render as enabled\n useEffect(() => {\n const trap = trapRef.current;\n if (!trap || isDisabled) return;\n\n const originalActiveElement = getActiveElement(trap);\n\n // init focus\n if (autoFocusRef && autoFocusRef.current) {\n focusOn(autoFocusRef.current);\n } else {\n conditionallyContainFocus(originalActiveElement);\n }\n\n const restoreFocusRefForCleanup = restoreFocusRef;\n\n return () => {\n if (restoreFocusRefForCleanup === false) return;\n restoreFocusAfterUnmount(restoreFocusRefForCleanup?.current || originalActiveElement);\n };\n }, [autoFocusRef, conditionallyContainFocus, isDisabled, restoreFocusRef]);\n\n return (\n <Fragment>\n {!isDisabled && <FocusGuard onFocus={handleStartGuardOnFocus} ref={startGuardRef} />}\n <div onFocus={handleTrapOnFocus} ref={trapRef} class={classes}>\n {children}\n </div>\n {!isDisabled && <FocusGuard onFocus={handleEndGuardOnFocus} ref={endGuardRef} />}\n </Fragment>\n );\n};\n\n// setTimeout ensures that unmount lifecycle has completed\nconst restoreFocusAfterUnmount = (element: HTMLElement | null) => {\n if (element && isTabbableElement(element)) {\n setTimeout(() => {\n focusOn(element);\n }, 0);\n }\n};\n\n// is focus already contained?\nconst hasFocus = (elements: (HTMLElement | null)[], target: Element) => {\n if (elements.length === 0) return false;\n const activeElement = target ?? getActiveElement(elements[0] as Node);\n return elements.some((el) => el === activeElement || el?.contains(activeElement));\n};\n\n// remove margins from children\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","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nexport * from './FocusTrap';\n"],"names":["styles","FocusGuard","forwardRef","onFocus","guardRef","_jsx","class","guard","ref","tabIndex","FocusTrap","autoFocusRef","children","isDisabled","restoreFocusRef","trapRef","useRef","startGuardRef","endGuardRef","lastActiveElementRef","conditionallyContainFocus","useCallback","target","trap","current","hasFocus","focusOn","handleStartGuardOnFocus","event","focusOnEnd","handleEndGuardOnFocus","focusOnStart","handleTrapOnFocus","originalActiveElement","getActiveElement","restoreFocusAfterUnmount","restoreFocusRefForCleanup","element","isTabbableElement","elements","length","activeElement","childrenStyles"],"mappings":";;;;;;;;;;;AAeA,MAAAA,MAAA,GAAA;;AAAA,CAAA,CAAA;AAUA;;AAEG;;AACH,MAAAC,UAAA,GAAAC,UAAA,CAAA,CAAA;AAAAC,EAAAA,OAAAA;AAAA,CAAA,EAAAC,QAAA,KAAA;EACE,OAAAC,GAAA,CAAA,KAAA,EAAA;IAAAC,KAAA,EAAAN,MAAA,CAAAO,KAAA;AAAAJ,IAAAA,OAAA,EAAAA,OAAA;AAAAK,IAAAA,GAAA,EAAAJ,QAAA;AAAAK,IAAAA,QAAA,EAAA,CAAA;AAAA,GAAA,CAAA,CAAA;AACF,CAFA,CAAA;;ACqBA;;AAEG;;AACH,MAAAC,SAAA,GAAA,CAAA;EAAAC,YAAA;EAAAC,QAAA;AAAAC,EAAAA,UAAA,GAAA,KAAA;AAAAC,EAAAA,eAAAA;AAAA,CAAA,KAAA;AAME,EAAA,MAAAC,OAAA,GAAAC,MAAA,CAAA,IAAA,CAAA,CAAA;AACA,EAAA,MAAAC,aAAA,GAAAD,MAAA,CAAA,IAAA,CAAA,CAAA;AACA,EAAA,MAAAE,WAAA,GAAAF,MAAA,CAAA,IAAA,CAAA,CAAA;AACA,EAAA,MAAAG,oBAAA,GAAAH,MAAA,CAAA,IAAA,CAAA,CATF;;;AAcE;;;;;;;AAOG;;AACH,EAAA,MAAAI,yBAAA,GAAAC,WAAA,CAAAC,MAAA,IAAA;AAEI,IAAA,MAAAC,IAAA,GAAAR,OAAA,CAAAS,OAAA,CAFJ;;IAII,IAAAX,UAAA,IAAA,CAAAU,IAAA,IAAA,CAAAD,MAAA,SAJJ;;AAOI,IAAA,IAAAA,MAAA,IAAAG,QAAA,CAAA,CAAAF,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;;;;;;;;;;;;;AAeJ;;AAGA,MAAAE,wBAAA,GAAAE,OAAA,IAAA;AACE,EAAA,IAAAA,OAAA,IAAAC,iBAAA,CAAAD,OAAA,CAAA,EAAA;;;;AAIC,GAAA;AACH,CANA;;;AASA,MAAAZ,QAAA,GAAA,CAAAc,QAAA,EAAAjB,MAAA,KAAA;AACE,EAAA,IAAAiB,QAAA,CAAAC,MAAA,KAAA,CAAA,EAA2B,OAAA,KAAA,CAAA;AAC3B,EAAA,MAAAC,aAAA,GAAAnB,MAAA,KAAA,IAAA,IAAAA,MAAA,KAAA,KAAA,CAAA,GAAAA,MAAA,GAAAY,gBAAA,CAAAK,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;AAEF,CAJA;;;AAOA,MAAAG,cAAA,GAAA,uBAAA;;AC1KA;;;;;;AAMG;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"UNSAFE_FocusTrap.js","sources":["../../src/UNSAFE_FocusTrap/FocusGuard.tsx","../../src/UNSAFE_FocusTrap/FocusTrap.tsx","../../src/UNSAFE_FocusTrap/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\n\ntype Props = {\n onFocus: (event: FocusEvent) => void;\n};\n\nconst styles = {\n guard: cssProps`${{\n height: '0px',\n left: 0,\n position: 'fixed',\n top: 0,\n width: '1px'\n }}`\n};\n\n/**\n * Styled FocusTrap sub-component to render non-visible focus guards\n */\nconst FocusGuard = forwardRef(({ onFocus }: Props, guardRef: ForwardedRef<HTMLDivElement>) => {\n return <div class={styles.guard} onFocus={onFocus} ref={guardRef} tabIndex={0} />;\n});\n\nexport default FocusGuard;\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren, Fragment, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef } from 'preact/compat';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport {\n focusOn,\n focusOnEnd,\n focusOnStart,\n focusWithin,\n getActiveElement,\n isTabbableElement\n} from '../utils/PRIVATE_tabbableUtils';\nimport FocusGuard from './FocusGuard';\n\ntype Props = {\n children: ComponentChildren;\n /**\n * Optional Ref to an element to focus on when component mounts\n * @default - undefined - behavior is to focus on first tabbableElement\n */\n autoFocusRef?: RefObject<HTMLElement | null>;\n\n /**\n * Sets whether focus is managed and whether guards are present\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * Why a isDisabled prop as compared to ONLY supporting conditional rendering?\n *\n * 1) We need an actual HTML Element for the trap, conditional rendering an element potentially breaks consumer CSS\n * 2) Conditional rendering can short-circuit event bubbling in preact and lead to expected events not bubbling.\n */\n\n /**\n * Optional Ref to element to focus on when component un-mounts, false to disable.\n * @default - undefined - behavior is to focus on the original activeElement when focus trap was enabled\n */\n restoreFocusRef?: RefObject<HTMLElement> | false;\n};\n\n/**\n * Trap focus within a DOM node. When a user hits Tab or Shift+Tab, focus remains in the focus trap.\n */\nexport const FocusTrap = ({\n autoFocusRef,\n children,\n isDisabled = false,\n restoreFocusRef\n}: Props) => {\n const trapRef = useRef<HTMLDivElement>(null);\n const startGuardRef = useRef<HTMLDivElement>(null);\n const endGuardRef = useRef<HTMLDivElement>(null);\n const lastActiveElementRef = useRef<HTMLElement | null>(null);\n\n // classes to be set on the children wrapper\n const classes = classNames([childrenStyles]);\n\n /**\n * contain focus if trap is enabled, and target is not already contained\n *\n * calling cases for side-effect of setting focus\n * - on initial mount of (enabled) trap, where target is not inside trap\n * - on enabling of a disabled trap, where target is not inside trap\n * - target of click event is outside of trap.\n */\n const conditionallyContainFocus = useCallback(\n (target: HTMLElement | null) => {\n const trap = trapRef.current;\n // short-circuit, if trap or target not valid\n if (isDisabled || !trap || !target) return;\n\n // just update ref if, target already has focus\n if (target && hasFocus([trap, startGuardRef.current, endGuardRef.current], target)) {\n lastActiveElementRef.current = target;\n return;\n }\n\n // set focus to last active tab-stop if lastElement is defined and inside trap\n if (lastActiveElementRef.current) {\n focusOn(lastActiveElementRef.current);\n } else {\n // otherwise just contain focus within trap as target is outside enabled trap and we have no last-known tab-stop\n focusWithin(trap);\n }\n },\n [isDisabled]\n );\n\n // loop focus\n const handleStartGuardOnFocus = (event: FocusEvent) => {\n if (isDisabled || !trapRef.current) return;\n focusOnEnd(trapRef.current);\n\n // prevent scroll jump and bubbling this event up as a focus event\n event.stopPropagation();\n event.preventDefault();\n };\n\n const handleEndGuardOnFocus = (event: FocusEvent) => {\n if (isDisabled || !trapRef.current) return;\n focusOnStart(trapRef.current);\n\n // prevent scroll jump and bubbling guard event up as a focus event\n event.stopPropagation();\n event.preventDefault();\n };\n\n const handleTrapOnFocus = (event: FocusEvent) => {\n lastActiveElementRef.current = event.target as HTMLElement;\n };\n\n // handle initial render or re-render as enabled\n useEffect(() => {\n const trap = trapRef.current;\n if (!trap || isDisabled) return;\n\n const originalActiveElement = getActiveElement(trap);\n\n // init focus\n if (autoFocusRef && autoFocusRef.current) {\n focusOn(autoFocusRef.current);\n } else {\n conditionallyContainFocus(originalActiveElement);\n }\n\n const restoreFocusRefForCleanup = restoreFocusRef;\n\n return () => {\n if (restoreFocusRefForCleanup === false) return;\n restoreFocusAfterUnmount(restoreFocusRefForCleanup?.current || originalActiveElement);\n };\n }, [autoFocusRef, conditionallyContainFocus, isDisabled, restoreFocusRef]);\n\n return (\n <Fragment>\n {!isDisabled && <FocusGuard onFocus={handleStartGuardOnFocus} ref={startGuardRef} />}\n <div onFocus={handleTrapOnFocus} ref={trapRef} class={classes}>\n {children}\n </div>\n {!isDisabled && <FocusGuard onFocus={handleEndGuardOnFocus} ref={endGuardRef} />}\n </Fragment>\n );\n};\n\n// setTimeout ensures that unmount lifecycle has completed\nconst restoreFocusAfterUnmount = (element: HTMLElement | null) => {\n if (element && isTabbableElement(element)) {\n setTimeout(() => {\n focusOn(element);\n }, 0);\n }\n};\n\n// is focus already contained?\nconst hasFocus = (elements: (HTMLElement | null)[], target: Element) => {\n if (elements.length === 0) return false;\n const activeElement = target ?? getActiveElement(elements[0] as Node);\n return elements.some((el) => el === activeElement || el?.contains(activeElement));\n};\n\n// remove margins from children\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","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nexport * from './FocusTrap';\n"],"names":["styles","FocusGuard","forwardRef","onFocus","guardRef","_jsx","class","guard","ref","tabIndex","FocusTrap","autoFocusRef","children","isDisabled","restoreFocusRef","trapRef","useRef","startGuardRef","endGuardRef","lastActiveElementRef","conditionallyContainFocus","useCallback","target","trap","current","hasFocus","focusOn","handleStartGuardOnFocus","event","focusOnEnd","handleEndGuardOnFocus","focusOnStart","handleTrapOnFocus","originalActiveElement","getActiveElement","restoreFocusAfterUnmount","restoreFocusRefForCleanup","element","isTabbableElement","elements","length","activeElement","childrenStyles"],"mappings":";;;;;;;;;;;AAeA,MAAAA,MAAA,GAAA;;AAAA,CAAA,CAAA;AAUA;;AAEG;;AACH,MAAAC,UAAA,GAAAC,UAAA,CAAA,CAAA;AAAAC,EAAAA,OAAAA;AAAA,CAAA,EAAAC,QAAA,KAAA;EACE,OAAAC,GAAA,CAAA,KAAA,EAAA;IAAAC,KAAA,EAAAN,MAAA,CAAAO,KAAA;AAAAJ,IAAAA,OAAA,EAAAA,OAAA;AAAAK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kJyB9fWA7XG5jb25zdCBpbnRlcnBvbGF0aW9ucyA9IFtcbiAgICAuLi5PYmplY3QudmFsdWVzKGdyaWRJbnRlcnBvbGF0aW9ucyksXG4gICAgLi4uT2JqZWN0LnZhbHVlcyhib3hBbGlnbm1lbnRJbnRlcnBvbGF0aW9ucylcbl07XG5jb25zdCBzdHlsZUludGVycG9sYXRpb25zID0gbWVyZ2VJbnRlcnBvbGF0aW9ucyhpbnRlcnBvbGF0aW9ucyk7XG4vKipcbiAqIEFuIGltcGxpY2l0IGdyaWQuIFJlc2l6ZSB5b3VyIGJyb3dzZXIgdG8gc2VlIGhvdyBpdGVtcyByZWZsb3cuXG4gKi9cbmV4cG9ydCBjb25zdCBHcmlkID0gKF9hKSA9PiB7XG4gICAgdmFyIHsgY2hpbGRyZW4gfSA9IF9hLCBwcm9wcyA9IF9fcmVzdChfYSwgW1wiY2hpbGRyZW5cIl0pO1xuICAgIGNvbnN0IF9iID0gc3R5bGVJbnRlcnBvbGF0aW9ucyhwcm9wcyksIHsgY2xhc3M6IGNscyB9ID0gX2IsIHN0eWxlcyA9IF9fcmVzdChfYiwgW1wiY2xhc3NcIl0pO1xuICAgIGNvbnN0IGFsbFN0eWxlcyA9IE9iamVjdC5hc3NpZ24oe30sIHN0eWxlcyk7XG4gICAgcmV0dXJuIChfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjbGFzczogYCR7YmFzZVN0eWxlc30gJHtjbHN9YCwgc3R5bGU6IGFsbFN0eWxlcyB9LCB7IGNoaWxkcmVuOiBjaGlsZHJlbiB9KSkpO1xufTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUdyaWQuanMubWFwIl19*/
|
|
1
|
+
._1r7w90g{display:grid;}
|
package/es/UNSAFE_Grid.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: 14.0.
|
|
2
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
/* @oracle/oraclejet-preact: 14.0.9 */
|
|
2
|
+
import { _ as __rest } from './tslib.es6-d5e68b30.js';
|
|
3
3
|
import { jsx } from 'preact/jsx-runtime';
|
|
4
4
|
import "./UNSAFE_Grid.css";
|
|
5
5
|
import { gridInterpolations } from './utils/UNSAFE_interpolations/grid.js';
|
|
6
6
|
import { boxAlignmentInterpolations } from './utils/UNSAFE_interpolations/boxalignment.js';
|
|
7
7
|
import { mergeInterpolations } from './utils/UNSAFE_mergeInterpolations.js';
|
|
8
|
-
import './keys-
|
|
9
|
-
import './_curry1-
|
|
10
|
-
import './_has-
|
|
8
|
+
import './keys-dbfd2e64.js';
|
|
9
|
+
import './_curry1-6119e1a7.js';
|
|
10
|
+
import './_has-adf1b1d4.js';
|
|
11
11
|
import './utils/UNSAFE_size.js';
|
|
12
12
|
import './utils/UNSAFE_arrayUtils.js';
|
|
13
13
|
import './utils/UNSAFE_classNames.js';
|
|
14
|
-
import './_curry3-
|
|
15
|
-
import './_curry2-
|
|
14
|
+
import './_curry3-53308de6.js';
|
|
15
|
+
import './_curry2-e114747a.js';
|
|
16
16
|
|
|
17
|
-
const baseStyles = "
|
|
17
|
+
const baseStyles = "_1r7w90g";
|
|
18
18
|
const interpolations = [...Object.values(gridInterpolations), ...Object.values(boxAlignmentInterpolations)];
|
|
19
19
|
const styleInterpolations = mergeInterpolations(interpolations);
|
|
20
20
|
/**
|
package/es/UNSAFE_Grid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_Grid.js","sources":["../../src/UNSAFE_Grid/Grid.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 { cssProps } from '@oracle/oraclejet-cssprops';\nimport { gridInterpolations } from '../utils/UNSAFE_interpolations/grid';\nimport type { GridProps } from '../utils/UNSAFE_interpolations/grid';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\ntype Props = GridProps &\n BoxAlignmentProps & {\n /**\n * The children to put in the grid.\n */\n children?: ComponentChildren;\n };\n\nconst baseStyles = cssProps`${{ display: 'grid' }}`;\n\nconst interpolations = [\n ...Object.values(gridInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * An implicit grid. Resize your browser to see how items reflow.\n */\nexport const Grid = ({ children, ...props }: Props) => {\n const { class: cls, ...styles } = styleInterpolations(props);\n const allStyles = { ...styles };\n return (\n <div class={`${baseStyles} ${cls}`} style={allStyles}>\n {children}\n </div>\n );\n};\n"],"names":["baseStyles","interpolations","Object","values","gridInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","Grid","_a","children","props","__rest","_b","class","cls","styles","allStyles","assign","_jsx","style"],"mappings":";;;;;;;;;;;;;;;;AAuBA,MAAAA,UAAA,GAAA,
|
|
1
|
+
{"version":3,"file":"UNSAFE_Grid.js","sources":["../../src/UNSAFE_Grid/Grid.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 { cssProps } from '@oracle/oraclejet-cssprops';\nimport { gridInterpolations } from '../utils/UNSAFE_interpolations/grid';\nimport type { GridProps } from '../utils/UNSAFE_interpolations/grid';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\n\ntype Props = GridProps &\n BoxAlignmentProps & {\n /**\n * The children to put in the grid.\n */\n children?: ComponentChildren;\n };\n\nconst baseStyles = cssProps`${{ display: 'grid' }}`;\n\nconst interpolations = [\n ...Object.values(gridInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * An implicit grid. Resize your browser to see how items reflow.\n */\nexport const Grid = ({ children, ...props }: Props) => {\n const { class: cls, ...styles } = styleInterpolations(props);\n const allStyles = { ...styles };\n return (\n <div class={`${baseStyles} ${cls}`} style={allStyles}>\n {children}\n </div>\n );\n};\n"],"names":["baseStyles","interpolations","Object","values","gridInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","Grid","_a","children","props","__rest","_b","class","cls","styles","allStyles","assign","_jsx","style"],"mappings":";;;;;;;;;;;;;;;;AAuBA,MAAAA,UAAA,GAAA,UAAA,CAAA;AAEA,MAAAC,cAAA,GAAA,CACE,GAAAC,MAAA,CAAAC,MAAA,CAAAC,kBAAA,CADF,EAEE,GAAAF,MAAA,CAAAC,MAAA,CAAAE,0BAAA,CAFF,CAAA,CAAA;AAKA,MAAAC,mBAAA,GAAAC,mBAAA,CAAAN,cAAA,CAAA,CAAA;AAEA;;AAEG;;AACHO,MAAAA,IAAA,GAAAC,EAAA,IAAA;EAAqB,IAAA;AAAAC,IAAAA,QAAAA;AAAA,GAAA,GAAAD,EAAA;MAAAE,KAAA,GAAAC,MAAA,CAAAH,EAAA,EAAA,CAAA,UAAA,CAAA,CAAA,CAAA;;AACnB,EAAA,MAAAI,EAAA,GAAAP,mBAAA,CAAAK,KAAA,CAAA;QAAA;AAAAG,IAAAA,KAAA,EAAAC,GAAAA;AAAA,GAAA,GAAAF,EAAA;QAAAG,MAAA,GAAAJ,MAAA,CAAAC,EAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;EACA,MAAAI,SAAA,GAAAf,MAAA,CAAAgB,MAAA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GNvbnN0IENvbXBvbmVudCA9IHByb3BzLmFzO1xuICAgIC8vQHRzLWlnbm9yZVxuICAgIHByb3BzLnNpemUgPSAoX2IgPSBwcm9wcy5zaXplKSAhPT0gbnVsbCAmJiBfYiAhPT0gdm9pZCAwID8gX2IgOiBoZWFkaW5nc2l6ZU1hcFtDb21wb25lbnRdO1xuICAgIGNvbnN0IF9jID0gc3R5bGVJbnRlcnBvbGF0aW9ucyhwcm9wcyksIHsgY2xhc3M6IGNscyB9ID0gX2MsIHN0eWxlID0gX19yZXN0KF9jLCBbXCJjbGFzc1wiXSk7XG4gICAgcmV0dXJuIChfanN4KENvbXBvbmVudCwgT2JqZWN0LmFzc2lnbih7IGNsYXNzTmFtZTogY2xzLCBzdHlsZTogc3R5bGUsIGlkOiBwcm9wcy5pZCB9LCB7IGNoaWxkcmVuOiBfanN4KFwic3BhblwiLCBPYmplY3QuYXNzaWduKHsgY2xhc3NOYW1lOiBzdHlsZXMuY2hpbGRyZW5NYXJnaW5zIH0sIHsgY2hpbGRyZW46IGNoaWxkcmVuIH0pKSB9KSkpO1xufVxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9SGVhZGluZy5qcy5tYXAiXX0=*/
|
|
1
|
+
.u2zosr{margin:0;}
|
|
2
|
+
._11256hr{font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-xs-font-size);font-weight:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-xs-font-weight);line-height:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-xs-line-height);}
|
|
3
|
+
._14tn3b9{font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-sm-font-size);font-weight:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-sm-font-weight);line-height:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-sm-line-height);}
|
|
4
|
+
._1mpvlii{font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-md-font-size);font-weight:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-md-font-weight);line-height:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-md-line-height);}
|
|
5
|
+
._10vp4ly{font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-lg-font-size);font-weight:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-lg-font-weight);line-height:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-lg-line-height);}
|
|
6
|
+
._1h9mmc2{font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-xl-font-size);font-weight:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-xl-font-weight);line-height:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-xl-line-height);}
|
|
7
|
+
._1xogxut{font-size:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-2xl-font-size);font-weight:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-2xl-font-weight);line-height:var(--oj-c-PRIVATE-DO-NOT-USE-typography-heading-2xl-line-height);}
|
|
8
|
+
._89wf98{font-size:inherit;font-weight:inherit;line-height:inherit;}
|
|
9
|
+
._1ur0mun > *{margin-top:0 !important;margin-bottom:0 !important;margin-left:0 !important;margin-right:0 !important;}
|
package/es/UNSAFE_Heading.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: 14.0.
|
|
2
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
/* @oracle/oraclejet-preact: 14.0.9 */
|
|
2
|
+
import { _ as __rest } from './tslib.es6-d5e68b30.js';
|
|
3
3
|
import { jsx } from 'preact/jsx-runtime';
|
|
4
|
-
import { k as keys_1 } from './keys-
|
|
4
|
+
import { k as keys_1 } from './keys-dbfd2e64.js';
|
|
5
5
|
import { stringLiteralArray } from './utils/UNSAFE_arrayUtils.js';
|
|
6
6
|
import "./UNSAFE_Heading.css";
|
|
7
7
|
import { mergeInterpolations } from './utils/UNSAFE_mergeInterpolations.js';
|
|
8
|
-
import './_curry1-
|
|
9
|
-
import './_has-
|
|
8
|
+
import './_curry1-6119e1a7.js';
|
|
9
|
+
import './_has-adf1b1d4.js';
|
|
10
10
|
import './utils/UNSAFE_classNames.js';
|
|
11
|
-
import './_curry3-
|
|
12
|
-
import './_curry2-
|
|
11
|
+
import './_curry3-53308de6.js';
|
|
12
|
+
import './_curry2-e114747a.js';
|
|
13
13
|
|
|
14
14
|
const headingElementTypes = stringLiteralArray(['h1', 'h2', 'h3', 'h4', 'h5', 'h6']);
|
|
15
15
|
const headingsizeMap = {
|
|
@@ -21,17 +21,17 @@ const headingsizeMap = {
|
|
|
21
21
|
h6: 'xs'
|
|
22
22
|
};
|
|
23
23
|
const styles = {
|
|
24
|
-
base: "
|
|
24
|
+
base: "u2zosr",
|
|
25
25
|
size: {
|
|
26
|
-
xs: "
|
|
27
|
-
sm: "
|
|
28
|
-
md: "
|
|
29
|
-
lg: "
|
|
30
|
-
xl: "
|
|
31
|
-
'2xl': "
|
|
32
|
-
inherit: "
|
|
26
|
+
xs: "_11256hr",
|
|
27
|
+
sm: "_14tn3b9",
|
|
28
|
+
md: "_1mpvlii",
|
|
29
|
+
lg: "_10vp4ly",
|
|
30
|
+
xl: "_1h9mmc2",
|
|
31
|
+
'2xl': "_1xogxut",
|
|
32
|
+
inherit: "_89wf98"
|
|
33
33
|
},
|
|
34
|
-
childrenMargins: "
|
|
34
|
+
childrenMargins: "_1ur0mun"
|
|
35
35
|
};
|
|
36
36
|
const sizeOptions = keys_1(styles.size);
|
|
37
37
|
const interpolations = [() => ({
|