@oracle/oraclejet-preact 14.0.2 → 14.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amd/Badge-654c1034.js +2 -0
- package/amd/{Badge-0beeb09e.js.map → Badge-654c1034.js.map} +1 -1
- package/amd/BaseButton-f6b56c16.js +2 -0
- package/amd/{BaseButton-a31275cc.js.map → BaseButton-f6b56c16.js.map} +1 -1
- package/amd/Button-dc28bc46.js +2 -0
- package/amd/{Button-26513e96.js.map → Button-dc28bc46.js.map} +1 -1
- package/amd/Chip-d51425d5.js +2 -0
- package/amd/{Chip-a71f9224.js.map → Chip-d51425d5.js.map} +1 -1
- package/amd/ClearIcon-8fc1ea23.js +2 -0
- package/amd/{ClearIcon-ee6994a4.js.map → ClearIcon-8fc1ea23.js.map} +1 -1
- package/amd/{Collection-805cf4b4.js → Collection-8a961897.js} +1 -1
- package/amd/{Collection-805cf4b4.js.map → Collection-8a961897.js.map} +1 -1
- package/amd/ComponentMessage-08ded24e.js +2 -0
- package/amd/{ComponentMessage-9e802f39.js.map → ComponentMessage-08ded24e.js.map} +1 -1
- package/amd/{ComponentMessageContainer-2bfa2078.js → ComponentMessageContainer-d309a605.js} +2 -2
- package/amd/{ComponentMessageContainer-2bfa2078.js.map → ComponentMessageContainer-d309a605.js.map} +1 -1
- package/amd/Divider-9f2d3a19.js +2 -0
- package/amd/{Divider-9262e69a.js.map → Divider-9f2d3a19.js.map} +1 -1
- package/amd/{FilePicker-18a92512.js → FilePicker-6887d5e2.js} +2 -2
- package/amd/{FilePicker-18a92512.js.map → FilePicker-6887d5e2.js.map} +1 -1
- package/amd/Flex-f922bd14.js +2 -0
- package/amd/{Flex-bfc6c229.js.map → Flex-f922bd14.js.map} +1 -1
- package/amd/Floating-f23a546d.js +2 -0
- package/amd/{Floating-863a4a52.js.map → Floating-f23a546d.js.map} +1 -1
- package/amd/FocusTrap-38127371.js +2 -0
- package/amd/{FocusTrap-4796ed88.js.map → FocusTrap-38127371.js.map} +1 -1
- package/amd/FormControlUtils-4342d13b.js +2 -0
- package/amd/{FormControlUtils-4236f687.js.map → FormControlUtils-4342d13b.js.map} +1 -1
- package/amd/Heading-92940027.js +2 -0
- package/amd/{Heading-2a0e8b5d.js.map → Heading-92940027.js.map} +1 -1
- package/amd/{HiddenAccessible-4801c573.js → HiddenAccessible-3afe5d7e.js} +2 -2
- package/amd/{HiddenAccessible-4801c573.js.map → HiddenAccessible-3afe5d7e.js.map} +1 -1
- package/amd/HighlightText-691a0697.js +2 -0
- package/amd/{HighlightText-1bbd084b.js.map → HighlightText-691a0697.js.map} +1 -1
- package/amd/Icon-4325e74f.js +2 -0
- package/amd/{Icon-66acac47.js.map → Icon-4325e74f.js.map} +1 -1
- package/amd/Indexer-c86699cc.js +2 -0
- package/amd/{Indexer-88e5debf.js.map → Indexer-c86699cc.js.map} +1 -1
- package/amd/{InlineHelpSource-87132e33.js → InlineHelpSource-0da64d0a.js} +2 -2
- package/amd/{InlineHelpSource-87132e33.js.map → InlineHelpSource-0da64d0a.js.map} +1 -1
- package/amd/Link-ca890659.js +2 -0
- package/amd/{Link-f42b6199.js.map → Link-ca890659.js.map} +1 -1
- package/amd/List-7b05e54e.js +2 -0
- package/amd/{List-468ffcb6.js.map → List-7b05e54e.js.map} +1 -1
- package/amd/ListItemTextLayout-700c1594.js +2 -0
- package/amd/{ListItemTextLayout-44f494ea.js.map → ListItemTextLayout-700c1594.js.map} +1 -1
- package/amd/ListView-9c35502a.js +2 -0
- package/amd/{ListView-a4690952.js.map → ListView-9c35502a.js.map} +1 -1
- package/amd/{LoadMoreCollection-b395a4ad.js → LoadMoreCollection-c0a38d55.js} +2 -2
- package/amd/{LoadMoreCollection-b395a4ad.js.map → LoadMoreCollection-c0a38d55.js.map} +1 -1
- package/amd/{Menu-5a5220fc.js → Menu-437af256.js} +2 -2
- package/amd/{Menu-5a5220fc.js.map → Menu-437af256.js.map} +1 -1
- package/amd/MenuDivider-dd7e5fe0.js +2 -0
- package/amd/{MenuDivider-a325668f.js.map → MenuDivider-dd7e5fe0.js.map} +1 -1
- package/amd/MenuItem-4710370c.js +2 -0
- package/amd/{MenuItem-884f0dd4.js.map → MenuItem-4710370c.js.map} +1 -1
- package/amd/{Message.types-eb760bd7.js → Message.types-97d3e7a4.js} +1 -1
- package/amd/{Message.types-eb760bd7.js.map → Message.types-97d3e7a4.js.map} +1 -1
- package/amd/MessageCloseButton-fc804358.js +2 -0
- package/amd/{MessageCloseButton-8366a158.js.map → MessageCloseButton-fc804358.js.map} +1 -1
- package/amd/MessageDetail-c1e0cdc2.js +2 -0
- package/amd/{MessageDetail-d500a9a3.js.map → MessageDetail-c1e0cdc2.js.map} +1 -1
- package/amd/{MessageFormattingUtils-bdfaac26.js → MessageFormattingUtils-95f48c88.js} +2 -2
- package/amd/{MessageFormattingUtils-bdfaac26.js.map → MessageFormattingUtils-95f48c88.js.map} +1 -1
- package/amd/MessageLayer-6e18bb81.js +2 -0
- package/amd/{MessageLayer-21a1fac3.js.map → MessageLayer-6e18bb81.js.map} +1 -1
- package/amd/MessageStartIcon-665f54bc.js +2 -0
- package/amd/{MessageStartIcon-20e17ea1.js.map → MessageStartIcon-665f54bc.js.map} +1 -1
- package/amd/MessageSummary-4bfdff83.js +2 -0
- package/amd/{MessageSummary-c91f9b00.js.map → MessageSummary-4bfdff83.js.map} +1 -1
- package/amd/MessageTimestamp-7b2ca246.js +2 -0
- package/amd/{MessageTimestamp-de77475d.js.map → MessageTimestamp-7b2ca246.js.map} +1 -1
- package/amd/{MessageToast-c1228272.js → MessageToast-3e32e2a0.js} +2 -2
- package/amd/{MessageToast-c1228272.js.map → MessageToast-3e32e2a0.js.map} +1 -1
- package/amd/{MessageUtils-8216ac4e.js → MessageUtils-e1daf68f.js} +2 -2
- package/amd/{MessageUtils-8216ac4e.js.map → MessageUtils-e1daf68f.js.map} +1 -1
- package/amd/{MessagesManager-615b69fb.js → MessagesManager-815876b7.js} +2 -2
- package/amd/{MessagesManager-615b69fb.js.map → MessagesManager-815876b7.js.map} +1 -1
- package/amd/MeterCircle-df387369.js +2 -0
- package/amd/{MeterCircle-f142cd7b.js.map → MeterCircle-df387369.js.map} +1 -1
- package/amd/Modal-fd412c92.js +2 -0
- package/amd/{Modal-ce6f32c7.js.map → Modal-fd412c92.js.map} +1 -1
- package/amd/{NumberInputText-7d1a99a2.js → NumberInputText-a96d332d.js} +2 -2
- package/amd/{NumberInputText-7d1a99a2.js.map → NumberInputText-a96d332d.js.map} +1 -1
- package/amd/PRIVATE_Collection.js +1 -1
- package/amd/PRIVATE_List.css +15 -15
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_Message.css +27 -27
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_Message.js.map +1 -1
- package/amd/PRIVATE_MessageLayer.css +7 -7
- package/amd/PRIVATE_MessageLayer.js +1 -1
- package/amd/PRIVATE_Meter.js +1 -1
- package/amd/PRIVATE_Meter.js.map +1 -1
- package/amd/PRIVATE_SelectCommon.css +13 -13
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_SelectCommon.js.map +1 -1
- package/amd/PRIVATE_TransitionGroup.js +1 -1
- package/amd/PRIVATE_TransitionGroup.js.map +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/ReadonlyTextFieldInput-a0801f52.js +2 -0
- package/amd/{ReadonlyTextFieldInput-55011079.js.map → ReadonlyTextFieldInput-a0801f52.js.map} +1 -1
- package/amd/SelectMenuItem-6221f2c2.js +2 -0
- package/amd/{SelectMenuItem-0dccca8f.js.map → SelectMenuItem-6221f2c2.js.map} +1 -1
- package/amd/SelectMultiple-e389fa94.js +2 -0
- package/amd/{SelectMultiple-19081cd1.js.map → SelectMultiple-e389fa94.js.map} +1 -1
- package/amd/{SelectSingle-fdcd29a7.js → SelectSingle-5d0d1dac.js} +2 -2
- package/amd/{SelectSingle-fdcd29a7.js.map → SelectSingle-5d0d1dac.js.map} +1 -1
- package/amd/Skeleton-212f1c06.js +2 -0
- package/amd/{Skeleton-3ccbc4fc.js.map → Skeleton-212f1c06.js.map} +1 -1
- package/amd/Spacer-db6d0be9.js +2 -0
- package/amd/{Spacer-da4de41b.js.map → Spacer-db6d0be9.js.map} +1 -1
- package/amd/SplitMenuButton-4424a532.js +2 -0
- package/amd/{SplitMenuButton-3ba67def.js.map → SplitMenuButton-4424a532.js.map} +1 -1
- package/amd/Text-e56a259a.js +2 -0
- package/amd/{Text-0f26039f.js.map → Text-e56a259a.js.map} +1 -1
- package/amd/TextArea-789d819d.js +2 -0
- package/amd/{TextArea-5c9e42d9.js.map → TextArea-789d819d.js.map} +1 -1
- package/amd/{TextAreaAutosize-5e616225.js → TextAreaAutosize-4ff7c1b8.js} +2 -2
- package/amd/{TextAreaAutosize-5e616225.js.map → TextAreaAutosize-4ff7c1b8.js.map} +1 -1
- package/amd/TextFieldInput-f9e605d9.js +2 -0
- package/amd/{TextFieldInput-bc03d412.js.map → TextFieldInput-f9e605d9.js.map} +1 -1
- package/amd/UNSAFE_AspectRatio.css +1 -1
- package/amd/UNSAFE_AspectRatio.js +1 -1
- package/amd/UNSAFE_Avatar.css +8 -8
- package/amd/UNSAFE_Avatar.js +1 -1
- package/amd/UNSAFE_Avatar.js.map +1 -1
- package/amd/UNSAFE_Badge.css +13 -13
- package/amd/UNSAFE_Badge.js +1 -1
- package/amd/UNSAFE_BaseButton.css +15 -15
- package/amd/UNSAFE_BaseButton.js +1 -1
- package/amd/UNSAFE_Button.css +8 -8
- package/amd/UNSAFE_Button.js +1 -1
- package/amd/UNSAFE_Center.js +1 -1
- package/amd/UNSAFE_Center.js.map +1 -1
- package/amd/UNSAFE_Chip.css +7 -7
- package/amd/UNSAFE_Chip.js +1 -1
- package/amd/UNSAFE_Collapsible.css +8 -8
- package/amd/UNSAFE_Collapsible.js +1 -1
- package/amd/UNSAFE_Collapsible.js.map +1 -1
- package/amd/UNSAFE_ComponentMessage.css +2 -2
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_Divider.css +1 -1
- package/amd/UNSAFE_Divider.js +1 -1
- package/amd/UNSAFE_Environment.js.map +1 -1
- package/amd/UNSAFE_FilePicker.css +6 -6
- package/amd/UNSAFE_FilePicker.js +1 -1
- package/amd/UNSAFE_Flex.css +2 -2
- package/amd/UNSAFE_Flex.js +1 -1
- package/amd/UNSAFE_Floating.js +1 -1
- package/amd/UNSAFE_FocusTrap.css +2 -2
- package/amd/UNSAFE_FocusTrap.js +1 -1
- package/amd/UNSAFE_Grid.css +1 -1
- package/amd/UNSAFE_Grid.js +1 -1
- package/amd/UNSAFE_Grid.js.map +1 -1
- package/amd/UNSAFE_Heading.css +9 -9
- package/amd/UNSAFE_Heading.js +1 -1
- package/amd/UNSAFE_HiddenAccessible.css +1 -1
- package/amd/UNSAFE_HiddenAccessible.js +1 -1
- package/amd/UNSAFE_HighlightText.css +1 -1
- package/amd/UNSAFE_HighlightText.js +1 -1
- package/amd/UNSAFE_Icon.css +21 -21
- package/amd/UNSAFE_Icon.js +1 -1
- package/amd/UNSAFE_Icons.js +1 -1
- package/amd/UNSAFE_Indexer.css +7 -7
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputPassword.css +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputPassword.js.map +1 -1
- package/amd/UNSAFE_InputText.css +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_InputText.js.map +1 -1
- package/amd/UNSAFE_Label.css +13 -13
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_Label.js.map +1 -1
- package/amd/UNSAFE_LabelValueLayout.css +9 -9
- package/amd/UNSAFE_LabelValueLayout.js +1 -1
- package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
- package/amd/UNSAFE_Link.css +5 -5
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListItemLayout.css +9 -9
- package/amd/UNSAFE_ListItemLayout.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_LiveRegion.css +1 -1
- package/amd/UNSAFE_LiveRegion.js +1 -1
- package/amd/UNSAFE_LiveRegion.js.map +1 -1
- package/amd/UNSAFE_LoadMoreCollection.js +1 -1
- package/amd/UNSAFE_Menu.css +17 -17
- package/amd/UNSAFE_Menu.js +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -1
- package/amd/UNSAFE_MessageBanner.js.map +1 -1
- package/amd/UNSAFE_MessageToast.css +1 -1
- package/amd/UNSAFE_MessageToast.js +1 -1
- package/amd/UNSAFE_MeterBar.css +43 -43
- package/amd/UNSAFE_MeterBar.js +1 -1
- package/amd/UNSAFE_MeterBar.js.map +1 -1
- package/amd/UNSAFE_MeterCircle.css +46 -46
- package/amd/UNSAFE_MeterCircle.js +1 -1
- package/amd/UNSAFE_Modal.css +3 -3
- package/amd/UNSAFE_Modal.js +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -1
- package/amd/UNSAFE_PrefixSuffix.css +8 -8
- package/amd/UNSAFE_PrefixSuffix.js +1 -1
- package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
- package/amd/UNSAFE_ProgressBar.css +6 -6
- package/amd/UNSAFE_ProgressBar.js +1 -1
- package/amd/UNSAFE_ProgressBar.js.map +1 -1
- package/amd/UNSAFE_ProgressCircle.css +6 -6
- package/amd/UNSAFE_ProgressCircle.js +1 -1
- package/amd/UNSAFE_ProgressCircle.js.map +1 -1
- package/amd/UNSAFE_RatingGauge.css +20 -20
- package/amd/UNSAFE_RatingGauge.js +1 -1
- package/amd/UNSAFE_RatingGauge.js.map +1 -1
- package/amd/UNSAFE_SelectMultiple.css +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_Selector.css +5 -5
- package/amd/UNSAFE_Selector.js +1 -1
- package/amd/UNSAFE_Selector.js.map +1 -1
- package/amd/UNSAFE_Skeleton.css +1 -1
- package/amd/UNSAFE_Skeleton.js +1 -1
- package/amd/UNSAFE_Spacer.js +1 -1
- package/amd/UNSAFE_SplitMenuButton.css +5 -5
- package/amd/UNSAFE_SplitMenuButton.js +1 -1
- package/amd/UNSAFE_Text.css +25 -25
- package/amd/UNSAFE_Text.js +1 -1
- package/amd/UNSAFE_TextArea.css +3 -3
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/UNSAFE_TextField.css +58 -58
- package/amd/UNSAFE_TextField.js +1 -1
- package/amd/UNSAFE_TextField.js.map +1 -1
- package/amd/UNSAFE_ThemedIcons.js +1 -1
- package/amd/UNSAFE_UserAssistance.css +8 -8
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_UserAssistance.js.map +1 -1
- package/amd/UNSAFE_View.js +1 -1
- package/amd/UNSAFE_View.js.map +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/{VirtualizedCollection-83b0641b.js → VirtualizedCollection-54fac538.js} +2 -2
- package/amd/{VirtualizedCollection-83b0641b.js.map → VirtualizedCollection-54fac538.js.map} +1 -1
- package/amd/VirtualizedListView-0b17561c.js +2 -0
- package/amd/{VirtualizedListView-c12f7343.js.map → VirtualizedListView-0b17561c.js.map} +1 -1
- package/amd/{_curry1-9eeaf6ed.js → _curry1-9cbf463f.js} +1 -1
- package/amd/{_curry1-9eeaf6ed.js.map → _curry1-9cbf463f.js.map} +1 -1
- package/amd/_curry2-37583590.js +2 -0
- package/amd/{_curry2-466cc994.js.map → _curry2-37583590.js.map} +1 -1
- package/amd/_curry3-2cf14b96.js +2 -0
- package/amd/{_curry3-167fa665.js.map → _curry3-2cf14b96.js.map} +1 -1
- package/amd/_has-b679fc56.js +2 -0
- package/amd/{_has-aa07e02d.js.map → _has-b679fc56.js.map} +1 -1
- package/amd/{classNames-e580c7c7.js → classNames-2ba58777.js} +1 -1
- package/amd/{classNames-e580c7c7.js.map → classNames-2ba58777.js.map} +1 -1
- package/amd/{clientHints-914fecb1.js → clientHints-4aaefa1c.js} +1 -1
- package/amd/{clientHints-914fecb1.js.map → clientHints-4aaefa1c.js.map} +1 -1
- package/amd/flexbox-f0221a64.js +2 -0
- package/amd/{flexbox-37da5c1b.js.map → flexbox-f0221a64.js.map} +1 -1
- package/amd/flexitem-4580af77.js +2 -0
- package/amd/{flexitem-f592cd81.js.map → flexitem-4580af77.js.map} +1 -1
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -1
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js.map +1 -1
- package/amd/hooks/PRIVATE_useMessagesFocusManager.js.map +1 -1
- package/amd/hooks/PRIVATE_useSingleSelection.js +1 -1
- package/amd/hooks/UNSAFE_useActionable.js.map +1 -1
- package/amd/hooks/UNSAFE_useActive.js.map +1 -1
- package/amd/hooks/UNSAFE_useAnimation.js +1 -1
- package/amd/hooks/UNSAFE_useClearIcon.js.map +1 -1
- package/amd/hooks/UNSAFE_useContainerBreakpointValues.js.map +1 -1
- package/amd/hooks/UNSAFE_useCurrentValueReducer.js.map +1 -1
- package/amd/hooks/UNSAFE_useFloating.js +1 -1
- package/amd/hooks/UNSAFE_useFocus.js.map +1 -1
- package/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
- package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
- package/amd/hooks/UNSAFE_useFocusableTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useHover.js.map +1 -1
- package/amd/hooks/UNSAFE_useLengthFilter.js.map +1 -1
- package/amd/hooks/UNSAFE_useLongPress.js.map +1 -1
- package/amd/hooks/UNSAFE_usePan.js.map +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js.map +1 -1
- package/amd/hooks/UNSAFE_useSwipe.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextField.js.map +1 -1
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js.map +1 -1
- package/amd/hooks/UNSAFE_useTimer.js.map +1 -1
- package/amd/hooks/UNSAFE_useTooltip.css +4 -4
- package/amd/hooks/UNSAFE_useTooltip.js +1 -1
- package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/amd/hooks/UNSAFE_useTouch.js.map +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js.map +1 -1
- package/amd/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/amd/hooks/UNSAFE_useUncontrolledState.js.map +1 -1
- package/amd/hooks/UNSAFE_useViewportIntersect.js.map +1 -1
- package/amd/{index-03ab344e.js → index-16862ac7.js} +2 -2
- package/amd/{index-03ab344e.js.map → index-16862ac7.js.map} +1 -1
- package/amd/index-b6f31c6c.js +2 -0
- package/amd/{index-17cde748.js.map → index-b6f31c6c.js.map} +1 -1
- package/amd/{index-4d399da7.js → index-cf988fc7.js} +2 -2
- package/amd/{index-4d399da7.js.map → index-cf988fc7.js.map} +1 -1
- package/amd/keys-ac292f2b.js +2 -0
- package/amd/{keys-992a0824.js.map → keys-ac292f2b.js.map} +1 -1
- package/amd/listViewSelectionTests-cd7ced2c.js +2 -0
- package/amd/{listViewSelectionTests-27c184ae.js.map → listViewSelectionTests-cd7ced2c.js.map} +1 -1
- package/amd/{listViewTabbableModeTests-b40466e1.js → listViewTabbableModeTests-c51b69c1.js} +2 -2
- package/amd/{listViewTabbableModeTests-b40466e1.js.map → listViewTabbableModeTests-c51b69c1.js.map} +1 -1
- package/amd/{listViewTestFixtures-fb5fc936.js → listViewTestFixtures-a4b0de2f.js} +1 -1
- package/amd/{listViewTestFixtures-fb5fc936.js.map → listViewTestFixtures-a4b0de2f.js.map} +1 -1
- package/amd/{menuTestsUtils-22bd8f7b.js → menuTestsUtils-594e921a.js} +1 -1
- package/amd/{menuTestsUtils-22bd8f7b.js.map → menuTestsUtils-594e921a.js.map} +1 -1
- package/amd/resources/nls/ar/bundle.js.map +1 -1
- package/amd/resources/nls/ar-XB/bundle.js.map +1 -1
- package/amd/resources/nls/bg/bundle.js.map +1 -1
- package/amd/resources/nls/bs/bundle.js.map +1 -1
- package/amd/resources/nls/bs-Cyrl/bundle.js.map +1 -1
- package/amd/resources/nls/bundle.js.map +1 -1
- package/amd/resources/nls/cs/bundle.js.map +1 -1
- package/amd/resources/nls/da/bundle.js.map +1 -1
- package/amd/resources/nls/de/bundle.js.map +1 -1
- package/amd/resources/nls/el/bundle.js.map +1 -1
- package/amd/resources/nls/en/bundle.js.map +1 -1
- package/amd/resources/nls/en-XA/bundle.js.map +1 -1
- package/amd/resources/nls/en-XC/bundle.js.map +1 -1
- package/amd/resources/nls/es/bundle.js.map +1 -1
- package/amd/resources/nls/et/bundle.js.map +1 -1
- package/amd/resources/nls/fi/bundle.js.map +1 -1
- package/amd/resources/nls/fr/bundle.js.map +1 -1
- package/amd/resources/nls/fr-CA/bundle.js.map +1 -1
- package/amd/resources/nls/he/bundle.js.map +1 -1
- package/amd/resources/nls/hr/bundle.js.map +1 -1
- package/amd/resources/nls/hu/bundle.js.map +1 -1
- package/amd/resources/nls/is/bundle.js.map +1 -1
- package/amd/resources/nls/it/bundle.js.map +1 -1
- package/amd/resources/nls/ja/bundle.js.map +1 -1
- package/amd/resources/nls/ko/bundle.js.map +1 -1
- package/amd/resources/nls/lt/bundle.js.map +1 -1
- package/amd/resources/nls/lv/bundle.js.map +1 -1
- package/amd/resources/nls/ms/bundle.js.map +1 -1
- package/amd/resources/nls/nl/bundle.js.map +1 -1
- package/amd/resources/nls/no/bundle.js.map +1 -1
- package/amd/resources/nls/pl/bundle.js.map +1 -1
- package/amd/resources/nls/pt/bundle.js.map +1 -1
- package/amd/resources/nls/pt-PT/bundle.js.map +1 -1
- package/amd/resources/nls/ro/bundle.js.map +1 -1
- package/amd/resources/nls/ru/bundle.js.map +1 -1
- package/amd/resources/nls/sk/bundle.js.map +1 -1
- package/amd/resources/nls/sl/bundle.js.map +1 -1
- package/amd/resources/nls/sr/bundle.js.map +1 -1
- package/amd/resources/nls/sr-Latn/bundle.js.map +1 -1
- package/amd/resources/nls/sv/bundle.js.map +1 -1
- package/amd/resources/nls/th/bundle.js.map +1 -1
- package/amd/resources/nls/tr/bundle.js.map +1 -1
- package/amd/resources/nls/uk/bundle.js.map +1 -1
- package/amd/resources/nls/vi/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hans/bundle.js.map +1 -1
- package/amd/resources/nls/zh-Hant/bundle.js.map +1 -1
- package/amd/{stringUtils-e3a47803.js → stringUtils-1ad4f59d.js} +1 -1
- package/amd/{stringUtils-e3a47803.js.map → stringUtils-1ad4f59d.js.map} +1 -1
- package/amd/{testHelpers-5a1300a8.js → testHelpers-7a807b9e.js} +1 -1
- package/amd/{testHelpers-5a1300a8.js.map → testHelpers-7a807b9e.js.map} +1 -1
- package/amd/{tslib.es6-fa3971d7.js → tslib.es6-d9d2f5d6.js} +1 -1
- package/amd/{tslib.es6-fa3971d7.js.map → tslib.es6-d9d2f5d6.js.map} +1 -1
- package/amd/{useAnimation-215b2be2.js → useAnimation-c8511df4.js} +2 -2
- package/amd/{useAnimation-215b2be2.js.map → useAnimation-c8511df4.js.map} +1 -1
- package/amd/{useFocusWithin-d77d235f.js → useFocusWithin-8f27a1c8.js} +1 -1
- package/amd/{useFocusWithin-d77d235f.js.map → useFocusWithin-8f27a1c8.js.map} +1 -1
- package/amd/{useSingleSelection-11aca1fe.js → useSingleSelection-bd1208cf.js} +1 -1
- package/amd/{useSingleSelection-11aca1fe.js.map → useSingleSelection-bd1208cf.js.map} +1 -1
- package/amd/utils/PRIVATE_clientHints.js +1 -1
- package/amd/utils/PRIVATE_collectionUtils.js.map +1 -1
- package/amd/utils/PRIVATE_meterUtils.js.map +1 -1
- package/amd/utils/PRIVATE_tabbableUtils.js +1 -1
- package/amd/utils/PRIVATE_tabbableUtils.js.map +1 -1
- package/amd/utils/UNSAFE_classNames.js +1 -1
- package/amd/utils/UNSAFE_componentUtils.js +1 -1
- package/amd/utils/UNSAFE_componentUtils.js.map +1 -1
- package/amd/utils/UNSAFE_filePickerUtils.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -15
- package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
- package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -7
- package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
- package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -7
- package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
- package/amd/utils/UNSAFE_interpolations/padding.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/text.css +3 -3
- package/amd/utils/UNSAFE_interpolations/text.js +1 -1
- package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/amd/utils/UNSAFE_lengthFilter.js.map +1 -1
- package/amd/utils/UNSAFE_logger.js +1 -1
- package/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
- package/amd/utils/UNSAFE_mergeInterpolations.js.map +1 -1
- package/amd/utils/UNSAFE_mergeProps.js +1 -1
- package/amd/utils/UNSAFE_mergeProps.js.map +1 -1
- package/amd/utils/UNSAFE_size.js.map +1 -1
- package/amd/utils/UNSAFE_stringUtils.js +1 -1
- package/amd/utils/UNSAFE_units.js +1 -1
- package/amd/utils/UNSAFE_units.js.map +1 -1
- package/cjs/{Badge-d9c4a8ba.js → Badge-13351533.js} +16 -16
- package/cjs/{Badge-d9c4a8ba.js.map → Badge-13351533.js.map} +1 -1
- package/cjs/{BaseButton-0ce055c6.js → BaseButton-1c38289b.js} +20 -20
- package/cjs/{BaseButton-0ce055c6.js.map → BaseButton-1c38289b.js.map} +1 -1
- package/cjs/{Button-b654ca4f.js → Button-fe40b39e.js} +13 -13
- package/cjs/{Button-b654ca4f.js.map → Button-fe40b39e.js.map} +1 -1
- package/cjs/{Chip-d1e3870e.js → Chip-67746a23.js} +10 -10
- package/cjs/{Chip-d1e3870e.js.map → Chip-67746a23.js.map} +1 -1
- package/cjs/{ClearIcon-b0e427ef.js → ClearIcon-2d70a092.js} +3 -3
- package/cjs/{ClearIcon-b0e427ef.js.map → ClearIcon-2d70a092.js.map} +1 -1
- package/cjs/{Collection-2344ca28.js → Collection-0f2bdea0.js} +2 -2
- package/cjs/{Collection-2344ca28.js.map → Collection-0f2bdea0.js.map} +1 -1
- package/cjs/{ComponentMessage-e7f71599.js → ComponentMessage-1905b2ad.js} +8 -8
- package/cjs/{ComponentMessage-e7f71599.js.map → ComponentMessage-1905b2ad.js.map} +1 -1
- package/cjs/{ComponentMessageContainer-57ba740f.js → ComponentMessageContainer-8a5a2ea4.js} +5 -5
- package/cjs/{ComponentMessageContainer-57ba740f.js.map → ComponentMessageContainer-8a5a2ea4.js.map} +1 -1
- package/cjs/{Divider-128e7986.js → Divider-f89689d0.js} +3 -3
- package/cjs/{Divider-128e7986.js.map → Divider-f89689d0.js.map} +1 -1
- package/cjs/{FilePicker-1e7c4f54.js → FilePicker-3faeacec.js} +14 -14
- package/cjs/{FilePicker-1e7c4f54.js.map → FilePicker-3faeacec.js.map} +1 -1
- package/cjs/{Flex-d2368fa3.js → Flex-70f45c1b.js} +8 -8
- package/cjs/{Flex-d2368fa3.js.map → Flex-70f45c1b.js.map} +1 -1
- package/cjs/{Floating-55a84bdd.js → Floating-cea8b705.js} +3 -3
- package/cjs/{Floating-55a84bdd.js.map → Floating-cea8b705.js.map} +1 -1
- package/cjs/{FocusTrap-8c2da94b.js → FocusTrap-0c3e0eaf.js} +5 -5
- package/cjs/{FocusTrap-8c2da94b.js.map → FocusTrap-0c3e0eaf.js.map} +1 -1
- package/cjs/{FormControlUtils-47865359.js → FormControlUtils-d37ad806.js} +5 -5
- package/cjs/{FormControlUtils-47865359.js.map → FormControlUtils-d37ad806.js.map} +1 -1
- package/cjs/{Heading-0786cfb3.js → Heading-97004a9b.js} +13 -13
- package/cjs/{Heading-0786cfb3.js.map → Heading-97004a9b.js.map} +1 -1
- package/cjs/{HiddenAccessible-e18c325a.js → HiddenAccessible-4269453d.js} +3 -3
- package/cjs/{HiddenAccessible-e18c325a.js.map → HiddenAccessible-4269453d.js.map} +1 -1
- package/cjs/{HighlightText-8b9be0b1.js → HighlightText-2acbf1a8.js} +3 -3
- package/cjs/{HighlightText-8b9be0b1.js.map → HighlightText-2acbf1a8.js.map} +1 -1
- package/cjs/{Icon-a2aa2ed8.js → Icon-837976e5.js} +25 -25
- package/cjs/{Icon-a2aa2ed8.js.map → Icon-837976e5.js.map} +1 -1
- package/cjs/{Indexer-f445ef4a.js → Indexer-1e9adc2c.js} +16 -16
- package/cjs/{Indexer-f445ef4a.js.map → Indexer-1e9adc2c.js.map} +1 -1
- package/cjs/{InlineHelpSource-960e2a27.js → InlineHelpSource-a08875c6.js} +3 -3
- package/cjs/{InlineHelpSource-960e2a27.js.map → InlineHelpSource-a08875c6.js.map} +1 -1
- package/cjs/{Link-0d8e7193.js → Link-e254783b.js} +8 -8
- package/cjs/{Link-0d8e7193.js.map → Link-e254783b.js.map} +1 -1
- package/cjs/{List-d11db60b.js → List-bdcd89ef.js} +23 -23
- package/cjs/{List-d11db60b.js.map → List-bdcd89ef.js.map} +1 -1
- package/cjs/{ListItemTextLayout-f9b59d80.js → ListItemTextLayout-22ace1d2.js} +13 -13
- package/cjs/{ListItemTextLayout-f9b59d80.js.map → ListItemTextLayout-22ace1d2.js.map} +1 -1
- package/cjs/{ListView-0aa87d3e.js → ListView-f5023717.js} +3 -3
- package/cjs/{ListView-0aa87d3e.js.map → ListView-f5023717.js.map} +1 -1
- package/cjs/{LoadMoreCollection-2d77ac1d.js → LoadMoreCollection-1cb3b927.js} +3 -3
- package/cjs/{LoadMoreCollection-2d77ac1d.js.map → LoadMoreCollection-1cb3b927.js.map} +1 -1
- package/cjs/{Menu-88ab3ec5.js → Menu-7bc3a21d.js} +6 -6
- package/cjs/{Menu-88ab3ec5.js.map → Menu-7bc3a21d.js.map} +1 -1
- package/cjs/{MenuDivider-8c74ab59.js → MenuDivider-cbd36036.js} +4 -4
- package/cjs/{MenuDivider-8c74ab59.js.map → MenuDivider-cbd36036.js.map} +1 -1
- package/cjs/{MenuItem-673c72fb.js → MenuItem-2928619f.js} +19 -19
- package/cjs/{MenuItem-673c72fb.js.map → MenuItem-2928619f.js.map} +1 -1
- package/cjs/{Message.types-b9106e5b.js → Message.types-927ccb0d.js} +2 -2
- package/cjs/{Message.types-b9106e5b.js.map → Message.types-927ccb0d.js.map} +1 -1
- package/cjs/{MessageCloseButton-1f5f7aac.js → MessageCloseButton-a750b114.js} +9 -9
- package/cjs/{MessageCloseButton-1f5f7aac.js.map → MessageCloseButton-a750b114.js.map} +1 -1
- package/cjs/{MessageDetail-d732615a.js → MessageDetail-7665d979.js} +7 -7
- package/cjs/{MessageDetail-d732615a.js.map → MessageDetail-7665d979.js.map} +1 -1
- package/cjs/{MessageFormattingUtils-a7183286.js → MessageFormattingUtils-55602416.js} +4 -4
- package/cjs/{MessageFormattingUtils-a7183286.js.map → MessageFormattingUtils-55602416.js.map} +1 -1
- package/cjs/{MessageLayer-aee920a7.js → MessageLayer-12cbabd5.js} +11 -11
- package/cjs/{MessageLayer-aee920a7.js.map → MessageLayer-12cbabd5.js.map} +1 -1
- package/cjs/{MessageStartIcon-9ecadda6.js → MessageStartIcon-69d47882.js} +11 -11
- package/cjs/{MessageStartIcon-9ecadda6.js.map → MessageStartIcon-69d47882.js.map} +1 -1
- package/cjs/{MessageSummary-9eb64a8d.js → MessageSummary-b3abe0a3.js} +7 -7
- package/cjs/{MessageSummary-9eb64a8d.js.map → MessageSummary-b3abe0a3.js.map} +1 -1
- package/cjs/{MessageTimestamp-4d51dee5.js → MessageTimestamp-bcf4ac8d.js} +5 -5
- package/cjs/{MessageTimestamp-4d51dee5.js.map → MessageTimestamp-bcf4ac8d.js.map} +1 -1
- package/cjs/{MessageToast-648cd3bf.js → MessageToast-dd5f9cef.js} +9 -9
- package/cjs/{MessageToast-648cd3bf.js.map → MessageToast-dd5f9cef.js.map} +1 -1
- package/cjs/{MessageUtils-88bfa995.js → MessageUtils-8466a219.js} +3 -3
- package/cjs/{MessageUtils-88bfa995.js.map → MessageUtils-8466a219.js.map} +1 -1
- package/cjs/{MessagesManager-f03aad11.js → MessagesManager-ebefea19.js} +4 -4
- package/cjs/{MessagesManager-f03aad11.js.map → MessagesManager-ebefea19.js.map} +1 -1
- package/cjs/{MeterCircle-92cf7f9c.js → MeterCircle-b4bb48bc.js} +50 -50
- package/cjs/{MeterCircle-92cf7f9c.js.map → MeterCircle-b4bb48bc.js.map} +1 -1
- package/cjs/{Modal-26fe663b.js → Modal-3c05f90a.js} +6 -6
- package/cjs/{Modal-26fe663b.js.map → Modal-3c05f90a.js.map} +1 -1
- package/cjs/{NumberInputText-199739fd.js → NumberInputText-6a2c8cc3.js} +7 -7
- package/cjs/{NumberInputText-199739fd.js.map → NumberInputText-6a2c8cc3.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-4da477c8.js → ReadonlyTextFieldInput-b98e7e48.js} +13 -13
- package/cjs/{ReadonlyTextFieldInput-4da477c8.js.map → ReadonlyTextFieldInput-b98e7e48.js.map} +1 -1
- package/cjs/{SelectMenuItem-01396e5a.js → SelectMenuItem-ac10e379.js} +5 -5
- package/cjs/{SelectMenuItem-01396e5a.js.map → SelectMenuItem-ac10e379.js.map} +1 -1
- package/cjs/{SelectMultiple-489290e0.js → SelectMultiple-6ecaf7a0.js} +8 -8
- package/cjs/{SelectMultiple-489290e0.js.map → SelectMultiple-6ecaf7a0.js.map} +1 -1
- package/cjs/{SelectSingle-db2cfafc.js → SelectSingle-4a77aa62.js} +4 -4
- package/cjs/{SelectSingle-db2cfafc.js.map → SelectSingle-4a77aa62.js.map} +1 -1
- package/cjs/{Skeleton-58492cd2.js → Skeleton-30e757ff.js} +5 -5
- package/cjs/{Skeleton-58492cd2.js.map → Skeleton-30e757ff.js.map} +1 -1
- package/cjs/{Spacer-20952f09.js → Spacer-eaa3e99c.js} +4 -4
- package/cjs/{Spacer-20952f09.js.map → Spacer-eaa3e99c.js.map} +1 -1
- package/cjs/{SplitMenuButton-539d2d2f.js → SplitMenuButton-8c71339c.js} +14 -14
- package/cjs/{SplitMenuButton-539d2d2f.js.map → SplitMenuButton-8c71339c.js.map} +1 -1
- package/cjs/{Text-d4c94edb.js → Text-4b71357e.js} +28 -28
- package/cjs/{Text-d4c94edb.js.map → Text-4b71357e.js.map} +1 -1
- package/cjs/{TextArea-a8edca00.js → TextArea-5eafa6db.js} +8 -8
- package/cjs/{TextArea-a8edca00.js.map → TextArea-5eafa6db.js.map} +1 -1
- package/cjs/{TextAreaAutosize-bbf4974e.js → TextAreaAutosize-b53399cb.js} +5 -5
- package/cjs/{TextAreaAutosize-bbf4974e.js.map → TextAreaAutosize-b53399cb.js.map} +1 -1
- package/cjs/{TextFieldInput-8118ca3c.js → TextFieldInput-6db2cca1.js} +33 -33
- package/cjs/{TextFieldInput-8118ca3c.js.map → TextFieldInput-6db2cca1.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-c655faa9.js → VirtualizedCollection-2be7c973.js} +3 -3
- package/cjs/{VirtualizedCollection-c655faa9.js.map → VirtualizedCollection-2be7c973.js.map} +1 -1
- package/cjs/{VirtualizedListView-04c6993e.js → VirtualizedListView-f0a3bbf0.js} +3 -3
- package/cjs/{VirtualizedListView-04c6993e.js.map → VirtualizedListView-f0a3bbf0.js.map} +1 -1
- package/cjs/{_curry1-6aa6ebe1.js → _curry1-8dba47c0.js} +2 -2
- package/cjs/{_curry1-6aa6ebe1.js.map → _curry1-8dba47c0.js.map} +1 -1
- package/cjs/{_curry2-48faf280.js → _curry2-35fe759b.js} +3 -3
- package/cjs/{_curry2-48faf280.js.map → _curry2-35fe759b.js.map} +1 -1
- package/cjs/{_curry3-7f3edffe.js → _curry3-a11ae74a.js} +4 -4
- package/cjs/{_curry3-7f3edffe.js.map → _curry3-a11ae74a.js.map} +1 -1
- package/cjs/{_has-b546cb6d.js → _has-f646b7fa.js} +3 -3
- package/cjs/{_has-b546cb6d.js.map → _has-f646b7fa.js.map} +1 -1
- package/cjs/{classNames-fba7d551.js → classNames-fe0c9b44.js} +2 -2
- package/cjs/{classNames-fba7d551.js.map → classNames-fe0c9b44.js.map} +1 -1
- package/cjs/{clientHints-c6decdec.js → clientHints-6f362777.js} +2 -2
- package/cjs/{clientHints-c6decdec.js.map → clientHints-6f362777.js.map} +1 -1
- package/cjs/{flexbox-b42577ea.js → flexbox-e7360e12.js} +10 -10
- package/cjs/{flexbox-b42577ea.js.map → flexbox-e7360e12.js.map} +1 -1
- package/cjs/{flexitem-f78aa910.js → flexitem-21bb492c.js} +10 -10
- package/cjs/{flexitem-f78aa910.js.map → flexitem-21bb492c.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-4f69022d.js → index-7cf551b0.js} +3 -3
- package/cjs/{index-4f69022d.js.map → index-7cf551b0.js.map} +1 -1
- package/cjs/{index-26367197.js → index-b2f63b8c.js} +2 -2
- package/cjs/{index-26367197.js.map → index-b2f63b8c.js.map} +1 -1
- package/cjs/{index-4e39f445.js → index-fbc2a690.js} +3 -3
- package/cjs/{index-4e39f445.js.map → index-fbc2a690.js.map} +1 -1
- package/cjs/{keys-4eba1653.js → keys-fcc45418.js} +4 -4
- package/cjs/{keys-4eba1653.js.map → keys-fcc45418.js.map} +1 -1
- package/cjs/{listViewSelectionTests-2d57d5bb.js → listViewSelectionTests-addb99e1.js} +4 -4
- package/cjs/{listViewSelectionTests-2d57d5bb.js.map → listViewSelectionTests-addb99e1.js.map} +1 -1
- package/cjs/{listViewTabbableModeTests-a6b386b0.js → listViewTabbableModeTests-10ef642d.js} +4 -4
- package/cjs/{listViewTabbableModeTests-a6b386b0.js.map → listViewTabbableModeTests-10ef642d.js.map} +1 -1
- package/cjs/{listViewTestFixtures-5d40a413.js → listViewTestFixtures-4b64e69e.js} +2 -2
- package/cjs/{listViewTestFixtures-5d40a413.js.map → listViewTestFixtures-4b64e69e.js.map} +1 -1
- package/cjs/{menuTestsUtils-753f11db.js → menuTestsUtils-14e6da0f.js} +2 -2
- package/cjs/{menuTestsUtils-753f11db.js.map → menuTestsUtils-14e6da0f.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-b6a5ad2c.js → stringUtils-1981a409.js} +2 -2
- package/cjs/{stringUtils-b6a5ad2c.js.map → stringUtils-1981a409.js.map} +1 -1
- package/cjs/{testHelpers-f56e69f0.js → testHelpers-1ff56b8c.js} +2 -2
- package/cjs/{testHelpers-f56e69f0.js.map → testHelpers-1ff56b8c.js.map} +1 -1
- package/cjs/translationBundle.js +1 -1
- package/cjs/{tslib.es6-17ec4332.js → tslib.es6-e79a0c43.js} +2 -2
- package/cjs/{tslib.es6-17ec4332.js.map → tslib.es6-e79a0c43.js.map} +1 -1
- package/cjs/{useAnimation-17cb54a5.js → useAnimation-694a2e01.js} +3 -3
- package/cjs/{useAnimation-17cb54a5.js.map → useAnimation-694a2e01.js.map} +1 -1
- package/cjs/{useFocusWithin-0b6e818e.js → useFocusWithin-69dca42b.js} +2 -2
- package/cjs/{useFocusWithin-0b6e818e.js.map → useFocusWithin-69dca42b.js.map} +1 -1
- package/cjs/{useSingleSelection-9e6238f0.js → useSingleSelection-0f3c0a39.js} +2 -2
- package/cjs/{useSingleSelection-9e6238f0.js.map → useSingleSelection-0f3c0a39.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-87cf07a3.js → ClearIcon-c58270b1.js} +3 -3
- package/es/{ClearIcon-87cf07a3.js.map → ClearIcon-c58270b1.js.map} +1 -1
- package/es/{LoadMoreCollection-d7ef9429.js → LoadMoreCollection-69d25dfc.js} +2 -2
- package/es/{LoadMoreCollection-d7ef9429.js.map → LoadMoreCollection-69d25dfc.js.map} +1 -1
- package/es/PRIVATE_Collection.js +1 -1
- package/es/PRIVATE_List.css +15 -15
- package/es/PRIVATE_List.js +24 -24
- package/es/PRIVATE_List.js.map +1 -1
- package/es/PRIVATE_Message.css +27 -27
- package/es/PRIVATE_Message.js +35 -35
- package/es/PRIVATE_Message.js.map +1 -1
- package/es/PRIVATE_MessageLayer.css +7 -7
- package/es/PRIVATE_MessageLayer.js +14 -14
- package/es/PRIVATE_MessageLayer.js.map +1 -1
- package/es/PRIVATE_Meter.js +2 -2
- package/es/PRIVATE_SelectCommon.css +13 -13
- 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 -1
- package/es/UNSAFE_AspectRatio.js +7 -7
- package/es/UNSAFE_AspectRatio.js.map +1 -1
- package/es/UNSAFE_Avatar.css +8 -8
- package/es/UNSAFE_Avatar.js +10 -10
- package/es/UNSAFE_Avatar.js.map +1 -1
- package/es/UNSAFE_Badge.css +13 -13
- package/es/UNSAFE_Badge.js +14 -14
- package/es/UNSAFE_Badge.js.map +1 -1
- package/es/UNSAFE_BaseButton.css +15 -15
- package/es/UNSAFE_BaseButton.js +21 -21
- package/es/UNSAFE_BaseButton.js.map +1 -1
- package/es/UNSAFE_Button.css +8 -8
- package/es/UNSAFE_Button.js +14 -14
- package/es/UNSAFE_Button.js.map +1 -1
- package/es/UNSAFE_Center.js +7 -7
- package/es/UNSAFE_Chip.css +7 -7
- package/es/UNSAFE_Chip.js +8 -8
- package/es/UNSAFE_Chip.js.map +1 -1
- package/es/UNSAFE_Collapsible.css +8 -8
- 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 +2 -2
- package/es/UNSAFE_ComponentMessage.js +10 -10
- package/es/UNSAFE_Divider.css +1 -1
- package/es/UNSAFE_Divider.js +6 -6
- package/es/UNSAFE_EmptyList.js +1 -1
- package/es/UNSAFE_Environment.js +1 -1
- package/es/UNSAFE_FilePicker.css +6 -6
- package/es/UNSAFE_FilePicker.js +13 -13
- package/es/UNSAFE_FilePicker.js.map +1 -1
- package/es/UNSAFE_Flex.css +2 -2
- package/es/UNSAFE_Flex.js +9 -9
- package/es/UNSAFE_Floating.js +2 -2
- package/es/UNSAFE_FocusTrap.css +2 -2
- package/es/UNSAFE_FocusTrap.js +6 -6
- package/es/UNSAFE_Grid.css +1 -1
- package/es/UNSAFE_Grid.js +8 -8
- package/es/UNSAFE_Grid.js.map +1 -1
- package/es/UNSAFE_Heading.css +9 -9
- package/es/UNSAFE_Heading.js +16 -16
- package/es/UNSAFE_Heading.js.map +1 -1
- package/es/UNSAFE_HiddenAccessible.css +1 -1
- package/es/UNSAFE_HiddenAccessible.js +2 -2
- package/es/UNSAFE_HiddenAccessible.js.map +1 -1
- package/es/UNSAFE_HighlightText.css +1 -1
- package/es/UNSAFE_HighlightText.js +2 -2
- package/es/UNSAFE_HighlightText.js.map +1 -1
- package/es/UNSAFE_Icon.css +21 -21
- package/es/UNSAFE_Icon.js +24 -24
- package/es/UNSAFE_Icon.js.map +1 -1
- package/es/UNSAFE_Icons.js +3 -3
- package/es/UNSAFE_Indexer.css +7 -7
- package/es/UNSAFE_Indexer.js +15 -15
- package/es/UNSAFE_InputPassword.css +1 -1
- package/es/UNSAFE_InputPassword.js +10 -10
- package/es/UNSAFE_InputText.css +1 -1
- package/es/UNSAFE_InputText.js +9 -9
- package/es/UNSAFE_Label.css +13 -13
- package/es/UNSAFE_Label.js +15 -15
- package/es/UNSAFE_Label.js.map +1 -1
- package/es/UNSAFE_LabelValueLayout.css +9 -9
- package/es/UNSAFE_LabelValueLayout.js +16 -16
- package/es/UNSAFE_LabelValueLayout.js.map +1 -1
- package/es/UNSAFE_Layer.js +1 -1
- package/es/UNSAFE_Link.css +5 -5
- package/es/UNSAFE_Link.js +6 -6
- package/es/UNSAFE_Link.js.map +1 -1
- package/es/UNSAFE_ListItemLayout.css +9 -9
- 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 -1
- package/es/UNSAFE_LiveRegion.js +2 -2
- package/es/UNSAFE_LiveRegion.js.map +1 -1
- package/es/UNSAFE_LoadMoreCollection.js +2 -2
- package/es/UNSAFE_Menu.css +17 -17
- 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 -1
- package/es/UNSAFE_MessageToast.js +9 -9
- package/es/UNSAFE_MeterBar.css +43 -43
- package/es/UNSAFE_MeterBar.js +46 -46
- package/es/UNSAFE_MeterBar.js.map +1 -1
- package/es/UNSAFE_MeterCircle.css +46 -46
- package/es/UNSAFE_MeterCircle.js +49 -49
- package/es/UNSAFE_MeterCircle.js.map +1 -1
- package/es/UNSAFE_Modal.css +3 -3
- package/es/UNSAFE_Modal.js +7 -7
- package/es/UNSAFE_NumberInputText.js +8 -8
- package/es/UNSAFE_PrefixSuffix.css +8 -8
- package/es/UNSAFE_PrefixSuffix.js +9 -9
- package/es/UNSAFE_PrefixSuffix.js.map +1 -1
- package/es/UNSAFE_ProgressBar.css +6 -6
- package/es/UNSAFE_ProgressBar.js +8 -8
- package/es/UNSAFE_ProgressBar.js.map +1 -1
- package/es/UNSAFE_ProgressCircle.css +6 -6
- package/es/UNSAFE_ProgressCircle.js +8 -8
- package/es/UNSAFE_ProgressCircle.js.map +1 -1
- package/es/UNSAFE_RatingGauge.css +20 -20
- package/es/UNSAFE_RatingGauge.js +23 -23
- package/es/UNSAFE_RatingGauge.js.map +1 -1
- package/es/UNSAFE_SelectMultiple.css +1 -1
- package/es/UNSAFE_SelectMultiple.js +10 -10
- package/es/UNSAFE_SelectSingle.js +9 -9
- package/es/UNSAFE_Selector.css +5 -5
- package/es/UNSAFE_Selector.js +13 -13
- package/es/UNSAFE_Selector.js.map +1 -1
- package/es/UNSAFE_Skeleton.css +1 -1
- package/es/UNSAFE_Skeleton.js +7 -7
- package/es/UNSAFE_Spacer.js +7 -7
- package/es/UNSAFE_SplitMenuButton.css +5 -5
- package/es/UNSAFE_SplitMenuButton.js +12 -12
- package/es/UNSAFE_SplitMenuButton.js.map +1 -1
- package/es/UNSAFE_Text.css +25 -25
- package/es/UNSAFE_Text.js +31 -31
- package/es/UNSAFE_Text.js.map +1 -1
- package/es/UNSAFE_TextArea.css +3 -3
- package/es/UNSAFE_TextArea.js +11 -11
- package/es/UNSAFE_TextAreaAutosize.js +8 -8
- package/es/UNSAFE_TextField.css +58 -58
- 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 +8 -8
- 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-97ad07b6.js → _curry1-f2673bab.js} +2 -2
- package/es/{_curry1-97ad07b6.js.map → _curry1-f2673bab.js.map} +1 -1
- package/es/{_curry2-6b260916.js → _curry2-d7587d88.js} +3 -3
- package/es/{_curry2-6b260916.js.map → _curry2-d7587d88.js.map} +1 -1
- package/es/{_curry3-9fad4075.js → _curry3-6b8e8079.js} +4 -4
- package/es/{_curry3-9fad4075.js.map → _curry3-6b8e8079.js.map} +1 -1
- package/es/{_has-c6212bd0.js → _has-cbbf4e16.js} +3 -3
- package/es/{_has-c6212bd0.js.map → _has-cbbf4e16.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 -4
- package/es/hooks/UNSAFE_useTooltip.js +7 -7
- package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/es/hooks/UNSAFE_useTouch.js +1 -1
- package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/es/hooks/UNSAFE_useUser.js +1 -1
- package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
- package/es/{index-5584e60f.js → index-35a194f0.js} +2 -2
- package/es/{index-5584e60f.js.map → index-35a194f0.js.map} +1 -1
- package/es/{keys-72a008ef.js → keys-c1c34836.js} +4 -4
- package/es/{keys-72a008ef.js.map → keys-c1c34836.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-b7e8fd27.js → tslib.es6-5eaa88c2.js} +2 -2
- package/es/{tslib.es6-b7e8fd27.js.map → tslib.es6-5eaa88c2.js.map} +1 -1
- package/es/{useSingleSelection-d3312458.js → useSingleSelection-66d4935c.js} +2 -2
- package/es/{useSingleSelection-d3312458.js.map → useSingleSelection-66d4935c.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 -15
- package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
- package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/colors.js +1 -1
- package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
- package/es/utils/UNSAFE_interpolations/flexbox.css +7 -7
- package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/flexitem.css +7 -7
- package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/grid.js +1 -1
- package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
- package/es/utils/UNSAFE_interpolations/padding.js +1 -1
- package/es/utils/UNSAFE_interpolations/text.css +3 -3
- package/es/utils/UNSAFE_interpolations/text.js +7 -7
- package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/es/utils/UNSAFE_keys.js +1 -1
- package/es/utils/UNSAFE_lengthFilter.js +1 -1
- package/es/utils/UNSAFE_logger.js +3 -3
- package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
- package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
- package/es/utils/UNSAFE_mergeProps.js +1 -1
- package/es/utils/UNSAFE_meterTypes.js +1 -1
- package/es/utils/UNSAFE_roles.js +1 -1
- package/es/utils/UNSAFE_selectUtils.js +1 -1
- package/es/utils/UNSAFE_size.js +1 -1
- package/es/utils/UNSAFE_soundUtils.js +1 -1
- package/es/utils/UNSAFE_stringUtils.js +1 -1
- package/es/utils/UNSAFE_typeUtils.js +1 -1
- package/es/utils/UNSAFE_units.js +1 -1
- package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
- package/package.json +1 -1
- package/amd/Badge-0beeb09e.js +0 -2
- package/amd/BaseButton-a31275cc.js +0 -2
- package/amd/Button-26513e96.js +0 -2
- package/amd/Chip-a71f9224.js +0 -2
- package/amd/ClearIcon-ee6994a4.js +0 -2
- package/amd/ComponentMessage-9e802f39.js +0 -2
- package/amd/Divider-9262e69a.js +0 -2
- package/amd/Flex-bfc6c229.js +0 -2
- package/amd/Floating-863a4a52.js +0 -2
- package/amd/FocusTrap-4796ed88.js +0 -2
- package/amd/FormControlUtils-4236f687.js +0 -2
- package/amd/Heading-2a0e8b5d.js +0 -2
- package/amd/HighlightText-1bbd084b.js +0 -2
- package/amd/Icon-66acac47.js +0 -2
- package/amd/Indexer-88e5debf.js +0 -2
- package/amd/Link-f42b6199.js +0 -2
- package/amd/List-468ffcb6.js +0 -2
- package/amd/ListItemTextLayout-44f494ea.js +0 -2
- package/amd/ListView-a4690952.js +0 -2
- package/amd/MenuDivider-a325668f.js +0 -2
- package/amd/MenuItem-884f0dd4.js +0 -2
- package/amd/MessageCloseButton-8366a158.js +0 -2
- package/amd/MessageDetail-d500a9a3.js +0 -2
- package/amd/MessageLayer-21a1fac3.js +0 -2
- package/amd/MessageStartIcon-20e17ea1.js +0 -2
- package/amd/MessageSummary-c91f9b00.js +0 -2
- package/amd/MessageTimestamp-de77475d.js +0 -2
- package/amd/MeterCircle-f142cd7b.js +0 -2
- package/amd/Modal-ce6f32c7.js +0 -2
- package/amd/ReadonlyTextFieldInput-55011079.js +0 -2
- package/amd/SelectMenuItem-0dccca8f.js +0 -2
- package/amd/SelectMultiple-19081cd1.js +0 -2
- package/amd/Skeleton-3ccbc4fc.js +0 -2
- package/amd/Spacer-da4de41b.js +0 -2
- package/amd/SplitMenuButton-3ba67def.js +0 -2
- package/amd/Text-0f26039f.js +0 -2
- package/amd/TextArea-5c9e42d9.js +0 -2
- package/amd/TextFieldInput-bc03d412.js +0 -2
- package/amd/VirtualizedListView-c12f7343.js +0 -2
- package/amd/_curry2-466cc994.js +0 -2
- package/amd/_curry3-167fa665.js +0 -2
- package/amd/_has-aa07e02d.js +0 -2
- package/amd/flexbox-37da5c1b.js +0 -2
- package/amd/flexitem-f592cd81.js +0 -2
- package/amd/index-17cde748.js +0 -2
- package/amd/keys-992a0824.js +0 -2
- package/amd/listViewSelectionTests-27c184ae.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testHelpers-
|
|
1
|
+
{"version":3,"file":"testHelpers-7a807b9e.js","sources":["../../src/PRIVATE_List/__tests__/shared/testHelpers.ts"],"sourcesContent":["/**\n * List test Adapters to abstract common unit test actions away from the implementation details.\n */\n\nimport { fireEvent, RenderResult } from '@testing-library/preact';\n\nexport const mouseItemSelection = (element: HTMLElement, options?: Record<string, unknown>) => {\n fireEvent.click(element, options);\n};\n\nexport const mouseCheckboxSelection = (element: HTMLElement, options?: Record<string, unknown>) => {\n const checkbox = element.querySelector('[type=checkbox]');\n if (checkbox) {\n fireEvent.click(checkbox, options);\n } else {\n throw new Error('checkbox not found!');\n }\n};\n\nexport const getRoot = async (list: RenderResult, role = 'grid') => {\n return list.findByRole(role);\n};\n\nexport const getItems = async (list: RenderResult, role = 'row') => {\n return list.findAllByRole(role);\n};\n\nexport const getContents = async (list: RenderResult, role = 'gridcell') => {\n return list.findAllByRole(role);\n};\n"],"names":["async","list","role","findAllByRole","findByRole","element","options","checkbox","querySelector","Error","fireEvent","click"],"mappings":"sFA2B2BA,MAAOC,EAAoBC,EAAO,aACpDD,EAAKE,cAAcD,cALJF,MAAOC,EAAoBC,EAAO,QACjDD,EAAKE,cAAcD,aALLF,MAAOC,EAAoBC,EAAO,SAChDD,EAAKG,WAAWF,4BAVa,CAACG,EAAsBC,KAC3D,MAAMC,EAAWF,EAAQG,cAAc,mBACvC,IAAID,EAGF,MAAM,IAAIE,MAAM,uBAFhBC,EAAAA,UAAUC,MAAMJ,EAAUD,yBAPI,CAACD,EAAsBC,KACvDI,EAAAA,UAAUC,MAAMN,EAASC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
define(["exports"],function(e){"use strict";Object.create;Object.create;e.__rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}});
|
|
2
|
-
//# sourceMappingURL=tslib.es6-
|
|
2
|
+
//# sourceMappingURL=tslib.es6-d9d2f5d6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tslib.es6-fa3971d7.js","sources":["../../../node_modules/tslib/tslib.es6.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n"],"names":["Object","create","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable"],"mappings":"4CA2G6BA,OAAOC,OAsGXD,OAAOC,gBAvKzB,SAAgBC,EAAGC,GACtB,IAAIC,EAAI,GACR,IAAK,IAAIC,KAAKH,EAAOF,OAAOM,UAAUC,eAAeC,KAAKN,EAAGG,IAAMF,EAAEM,QAAQJ,GAAK,IAC9ED,EAAEC,GAAKH,EAAEG,IACb,GAAS,MAALH,GAAqD,mBAAjCF,OAAOU,sBACtB,CAAA,IAAIC,EAAI,EAAb,IAAgBN,EAAIL,OAAOU,sBAAsBR,GAAIS,EAAIN,EAAEO,OAAQD,IAC3DR,EAAEM,QAAQJ,EAAEM,IAAM,GAAKX,OAAOM,UAAUO,qBAAqBL,KAAKN,EAAGG,EAAEM,MACvEP,EAAEC,EAAEM,IAAMT,EAAEG,EAAEM,KAE1B,OAAOP"}
|
|
1
|
+
{"version":3,"file":"tslib.es6-d9d2f5d6.js","sources":["../../../node_modules/tslib/tslib.es6.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n"],"names":["Object","create","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable"],"mappings":"4CA2G6BA,OAAOC,OAsGXD,OAAOC,gBAvKzB,SAAgBC,EAAGC,GACtB,IAAIC,EAAI,GACR,IAAK,IAAIC,KAAKH,EAAOF,OAAOM,UAAUC,eAAeC,KAAKN,EAAGG,IAAMF,EAAEM,QAAQJ,GAAK,IAC9ED,EAAEC,GAAKH,EAAEG,IACb,GAAS,MAALH,GAAqD,mBAAjCF,OAAOU,sBACtB,CAAA,IAAIC,EAAI,EAAb,IAAgBN,EAAIL,OAAOU,sBAAsBR,GAAIS,EAAIN,EAAEO,OAAQD,IAC3DR,EAAEM,QAAQJ,EAAEM,IAAM,GAAKX,OAAOM,UAAUO,qBAAqBL,KAAKN,EAAGG,EAAEM,MACvEP,EAAEC,EAAEM,IAAMT,EAAEG,EAAEM,KAE1B,OAAOP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["exports","preact/hooks","./tslib.es6-
|
|
2
|
-
//# sourceMappingURL=useAnimation-
|
|
1
|
+
define(["exports","preact/hooks","./tslib.es6-d9d2f5d6"],function(t,n,e){"use strict";function r(t){if(!t)return{};const{translateX:n,translateY:r,translateZ:s,rotateX:a,rotateY:c,rotateZ:o,scaleX:u,scaleY:i,scaleZ:l,skewX:f,skewY:$}=t,d=e.__rest(t,["translateX","translateY","translateZ","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","skewX","skewY"]),g=`${t.transform||""}${function(t,n,e){return`${t?` translateX(${t})`:""}${n?` translateY(${n})`:""}${e?` translateZ(${e})`:""}`}(n,r,s)}${function(t,n,e){return`${t?` rotateX(${t})`:""}${n?` rotateY(${n})`:""}${e?` rotateZ(${e})`:""}`}(a,c,o)}${function(t,n,e){return`${t||0===t?` scaleX(${t})`:""}${n||0===n?` scaleY(${n})`:""}${e||0===e?` scaleZ(${e})`:""}`}(u,i,l)}${function(t,n){return`${t?` skewX(${t})`:""}${n?` skewY(${n})`:""}`}(f,$)}`;return Object.assign(Object.assign({},d),g&&{transform:g})}function s(t){if(!t)return{};const n=r(t),{offset:s}=n,a=e.__rest(n,["offset"]);return Object.assign(Object.assign({},a),s&&{cssOffset:s})}t.useAnimation=function(t,{animationStates:e,isAnimatedOnMount:a=!1,onAnimationEnd:c=(()=>{})}){const o=n.useRef(!1),u=n.useRef(null),i=n.useRef(),l=n.useRef(),f=n.useRef(e);n.useEffect(()=>{var n;if(i.current===t)return;const e=i.current;var $,d,g;i.current=t,"running"===(null===(n=l.current)||void 0===n?void 0:n.playState)&&($=l.current,d=u.current,((null==(g=d)?void 0:g.offsetWidth)||(null==g?void 0:g.offsetHeight)||(null==g?void 0:g.getClientRects().length))&&$.commitStyles(),$.cancel());const b=u.current;if(!b)return;if(!o.current&&(o.current=!0,!a))return;const X=function(t,n,e,r){const s=t[`${r} => ${e}`]||t[e],a="function"==typeof s?s(n):s;return a&&Object.keys(a).length>0?a:null}(f.current,b,t,e);X&&(l.current=function(t,n,e,a){const{delay:c,duration:o,easing:u}=t.options||{},i={delay:c||0,duration:o||400,easing:u?"string"==typeof u?u:`cubic-bezier(${u[0]}, ${u[1]}, ${u[2]}, ${u[3]})`:"ease"},l=n.animate([s(t.from),s(t.to)],Object.assign({},i));return l.onfinish=()=>{!function(t,n,e){const s=n?Object.assign(Object.assign({},r(e.to)),r(e.end)):r(e.end);for(const n in s)t.style[n]=s[n]}(n,!0,t),null==a||a({animationState:e})},l}(X,b,t,c))},[t,a,c]);const $=n.useCallback(()=>{const t=l.current;"running"===(null==t?void 0:t.playState)&&t.cancel()},[]);return{nodeRef:n.useCallback(t=>{var n;t!=u.current&&(u.current&&(null===(n=l.current)||void 0===n||n.cancel(),l.current=void 0),u.current=t)},[]),controller:{cancel:$}}}});
|
|
2
|
+
//# sourceMappingURL=useAnimation-c8511df4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnimation-215b2be2.js","sources":["../../src/hooks/UNSAFE_useAnimation/animationUtils.ts","../../src/hooks/UNSAFE_useAnimation/useAnimation.ts"],"sourcesContent":["import { StandardProperties } from 'csstype';\n\nexport type UseAnimationCssProperties = StandardProperties & TransformProperties;\n\n// This represents shorthand UseAnimationCssProperties props.\ntype TransformProperties = Partial<\n Record<\n | 'translateX'\n | 'translateY'\n | 'translateZ'\n | 'rotateX'\n | 'rotateY'\n | 'rotateZ'\n | 'skewX'\n | 'skewY',\n string\n > &\n Record<'scaleX' | 'scaleY' | 'scaleZ', string | number>\n>;\n\n/**\n * Converts shorthand translate props into transform string representation.\n *\n * @param translateX\n * @param translateY\n * @param translateZ\n * @returns Longhand transform string representation.\n */\nfunction convertTranslateShortcuts(\n translateX: TransformProperties['translateX'],\n translateY: TransformProperties['translateY'],\n translateZ: TransformProperties['translateZ']\n) {\n return `${translateX ? ` translateX(${translateX})` : ''}${\n translateY ? ` translateY(${translateY})` : ''\n }${translateZ ? ` translateZ(${translateZ})` : ''}`;\n}\n\n/**\n * Converts shorthand rotate props into transform string representation.\n *\n * @param rotateX\n * @param rotateY\n * @param rotateZ\n * @returns Longhand transform string representation.\n */\nfunction convertRotateShortcuts(\n rotateX?: TransformProperties['rotateX'],\n rotateY?: TransformProperties['rotateY'],\n rotateZ?: TransformProperties['rotateZ']\n) {\n return `${rotateX ? ` rotateX(${rotateX})` : ''}${rotateY ? ` rotateY(${rotateY})` : ''}${\n rotateZ ? ` rotateZ(${rotateZ})` : ''\n }`;\n}\n\n/**\n * Converts shorthand scale props into transform string representation.\n *\n * @param scaleX\n * @param scaleY\n * @param scaleZ\n * @returns Longhand transform string representation.\n */\nfunction convertScaleShortcuts(\n scaleX: TransformProperties['scaleX'],\n scaleY: TransformProperties['scaleY'],\n scaleZ: TransformProperties['scaleZ']\n) {\n return `${scaleX || scaleX === 0 ? ` scaleX(${scaleX})` : ''}${\n scaleY || scaleY === 0 ? ` scaleY(${scaleY})` : ''\n }${scaleZ || scaleZ === 0 ? ` scaleZ(${scaleZ})` : ''}`;\n}\n\n/**\n * Converts shorthand skew props into transform string representation.\n *\n * @param skewX\n * @param skewY\n * @returns Longhand transform string representation.\n */\nfunction convertSkewShortcuts(\n skewX: TransformProperties['skewX'],\n skewY: TransformProperties['skewY']\n) {\n return `${skewX ? ` skewX(${skewX})` : ''}${skewY ? ` skewY(${skewY})` : ''}`;\n}\n\n/**\n * Converts animation CSS properties into Regular camel cased CSS properties.\n *\n * @param useAnimationCssProperties This include transform shorthand props.\n * @returns Regular camel cased CSS properties.\n */\nexport function convertUseAnimationCssPropertiesToRegularCSS(\n useAnimationCssProperties?: UseAnimationCssProperties\n) {\n if (!useAnimationCssProperties) {\n return {};\n }\n const {\n translateX,\n translateY,\n translateZ,\n rotateX,\n rotateY,\n rotateZ,\n scaleX,\n scaleY,\n scaleZ,\n skewX,\n skewY,\n ...otherCssProperties\n } = useAnimationCssProperties;\n const initialTransformValue = useAnimationCssProperties['transform'] || '';\n // Now we just add values pased in shortcuts to transform property, do we want to replace it instead?\n const finalTransformValue = `${initialTransformValue}${convertTranslateShortcuts(\n translateX,\n translateY,\n translateZ\n )}${convertRotateShortcuts(rotateX, rotateY, rotateZ)}${convertScaleShortcuts(\n scaleX,\n scaleY,\n scaleZ\n )}${convertSkewShortcuts(skewX, skewY)}`;\n return {\n ...otherCssProperties,\n ...(finalTransformValue && { transform: finalTransformValue })\n };\n}\n\n/**\n * Converts animation CSS properties into WAAPI keyframe properties.\n * Since keyframes have a difference between offset and cssOffset this collision is avoided here.\n *\n * @param useAnimationCssProperties This include transform shorthand props.\n * @returns WAAPI keyframe\n */\nexport function convertUseAnimationCssPropertiesToWAAPIKeyframe(\n useAnimationCssProperties?: UseAnimationCssProperties\n) {\n if (!useAnimationCssProperties) {\n return {};\n }\n const { offset, ...otherCssProperties } =\n convertUseAnimationCssPropertiesToRegularCSS(useAnimationCssProperties);\n return {\n ...otherCssProperties,\n ...(offset && { cssOffset: offset })\n };\n}\n\n/**\n * Stops an animation.\n *\n * @param animation Animation that is going to be stopped.\n * @returns\n */\nexport function stopAnimation<E extends HTMLElement>(animation: Animation, node: E | null) {\n // TO DO: rollup-plugin-typescript seems to have an outdated Animation typing. That produces warnings while bulding.\n // Update picked type to get rid of this casting.\n // We have to check if the element is visible to commit styles\n isVisible(node) && (animation as any).commitStyles();\n animation.cancel();\n}\n\n/**\n * Check if an element is visible. Similar to jQuery :visible selector.\n *\n * @param element HTML element that is going to be checked for its visibility.\n * @returns\n */\nfunction isVisible<E extends HTMLElement>(element: E | null): boolean {\n return !!(element?.offsetWidth || element?.offsetHeight || element?.getClientRects().length);\n}\n","import { useRef, useEffect, useCallback } from 'preact/hooks';\nimport {\n convertUseAnimationCssPropertiesToRegularCSS,\n convertUseAnimationCssPropertiesToWAAPIKeyframe,\n UseAnimationCssProperties,\n stopAnimation\n} from './animationUtils';\n\nexport type UseAnimationConfig<V extends string, E extends HTMLElement> = {\n animationStates: Partial<\n Record<AnimationStateKey<V>, ((node: E) => AnimationConfig) | AnimationConfig>\n >;\n isAnimatedOnMount?: boolean;\n onAnimationEnd?: ({ animationState }: { animationState: V }) => void;\n};\n\n// Used to filter simple states and ones that include previous state\ntype AnimationStateKey<PA extends string> = ExtractAnimationStates<PA | `${PA} => ${PA}`>;\n\n// Used to get previous and current states and do deeper typing\ntype ExtractAnimationStates<StateString extends string> =\n StateString extends `${infer From} => ${infer To}`\n ? KeyWithPreviousAndCurrentState<From, To>\n : StateString;\n\n// Used to just allow keys with different previous and current states\ntype KeyWithPreviousAndCurrentState<PreviousState extends string, CurrentState extends string> = {\n b: PreviousState;\n} extends { b: CurrentState }\n ? never\n : `${PreviousState} => ${CurrentState}`;\n\ntype AnimationConfig = {\n from?: UseAnimationCssProperties;\n to: UseAnimationCssProperties;\n end?: UseAnimationCssProperties;\n options?: AnimationOptions;\n};\n\ntype AnimationOptions = {\n delay?: number;\n duration?: number;\n easing?:\n | 'linear'\n | 'ease'\n | 'ease-in'\n | 'ease-out'\n | 'ease-in-out'\n | [number, number, number, number];\n};\n\n// Used to exclude states that include => since this string is used to represent a transition from state to another.\ntype PermittedAnimationState<V extends string> = Exclude<V, `${string}=>${string}`>;\n\n/**\n * Hook to animate single components.\n * It allows n number of animation states.\n * @param animationState\n * @param animationConfig\n * @returns\n */\nexport function useAnimation<V extends string, E extends HTMLElement = HTMLElement>(\n animationState: PermittedAnimationState<V>,\n {\n animationStates,\n isAnimatedOnMount = false,\n onAnimationEnd = () => {}\n }: UseAnimationConfig<PermittedAnimationState<V>, E>\n) {\n const didMountRef = useRef(false);\n const nodeRef = useRef<E | null>(null);\n const currentAnimationState = useRef<PermittedAnimationState<V>>();\n const currentAnimation = useRef<Animation>();\n\n // We don't allow changing animationStates. Ref to keep \"first run\" animation states.\n const animationStatesRef =\n useRef<UseAnimationConfig<PermittedAnimationState<V>, E>['animationStates']>(animationStates);\n\n useEffect(() => {\n // UseEffect just have to be ran when there is a change on animationState\n if (currentAnimationState.current === animationState) return;\n\n // It makes sense to keep track of animation states even if there's no animated element to animate.\n const previousAnimationState = currentAnimationState.current;\n currentAnimationState.current = animationState;\n\n //Stop an animation here only makes sense if the previous one is running\n if (currentAnimation.current?.playState === 'running') {\n stopAnimation(currentAnimation.current, nodeRef.current);\n }\n\n const animatedElement = nodeRef.current;\n if (!animatedElement) {\n return;\n }\n\n if (!didMountRef.current) {\n didMountRef.current = true;\n if (!isAnimatedOnMount) {\n return;\n }\n }\n\n const animationConfig = getConfig(\n animationStatesRef.current,\n animatedElement,\n animationState,\n previousAnimationState\n );\n\n if (!animationConfig) {\n return;\n }\n\n currentAnimation.current = startAnimation(\n animationConfig,\n animatedElement,\n animationState,\n onAnimationEnd\n );\n }, [animationState, isAnimatedOnMount, onAnimationEnd]);\n\n /**\n * Used to cancel current animation. When animation is canceled node style goes back to beginning style of canceled animation.\n * @returns\n */\n const cancelCurrentAnimation = useCallback(() => {\n const animation = currentAnimation.current;\n if (animation?.playState === 'running') {\n animation.cancel();\n }\n }, []);\n\n /**\n * Callback ref use to set nodeRef.\n *\n * @param node Actual element user set.\n * @returns\n */\n const callbackRef = useCallback((node: E | null) => {\n if (node != nodeRef.current) {\n //If for any reason element is unmounted we have to cancel animation(if there is one) and\n //set currentAnimation as undefined so we don't keep running this animation\n if (nodeRef.current) {\n currentAnimation.current?.cancel();\n currentAnimation.current = undefined;\n }\n nodeRef.current = node;\n }\n }, []);\n\n return { nodeRef: callbackRef, controller: { cancel: cancelCurrentAnimation } };\n}\n\n/**\n * Gets animation configuration.\n *\n * @param animationStates Set of animation configurations provided by the user.\n * @param animatedElement Element that is going to be styled.\n * @param animationState Current animation state.\n * @param previousAnimationState Previous animation state.\n * @returns AnimationConfig.\n */\nfunction getConfig<V extends string, E extends HTMLElement>(\n animationStates: UseAnimationConfig<PermittedAnimationState<V>, E>['animationStates'],\n animatedElement: E,\n animationState: PermittedAnimationState<V>,\n previousAnimationState?: PermittedAnimationState<V>\n) {\n const currentAnimationStateConfig =\n animationStates[\n `${previousAnimationState} => ${animationState}` as keyof UseAnimationConfig<\n PermittedAnimationState<V>,\n E\n >['animationStates']\n ] ||\n animationStates[\n animationState as keyof UseAnimationConfig<PermittedAnimationState<V>, E>['animationStates']\n ];\n\n const animationConfig =\n typeof currentAnimationStateConfig === 'function'\n ? currentAnimationStateConfig(animatedElement)\n : (currentAnimationStateConfig as AnimationConfig);\n\n return animationConfig && Object.keys(animationConfig).length > 0 ? animationConfig : null;\n}\n\n/**\n * Starts an animation.\n *\n * @param animationConfig Animation configuration used by the animation.\n * @param animatedElement Element that is going to be styled.\n * @param animationState Current animation state.\n * @param onAnimationEnd Callback called once the animation is completed.\n * @returns Animation.\n */\nfunction startAnimation<V extends string, E extends HTMLElement>(\n animationConfig: AnimationConfig,\n animatedElement: E,\n animationState: PermittedAnimationState<V>,\n onAnimationEnd: UseAnimationConfig<PermittedAnimationState<V>, E>['onAnimationEnd']\n) {\n const { delay, duration, easing } = animationConfig.options || {};\n\n //Now, if user does not pass a value we override it by hand. We will use theming tools in future.\n const animationOptions = {\n delay: delay || 0,\n duration: duration || 400,\n easing: easing\n ? typeof easing === 'string'\n ? easing\n : `cubic-bezier(${easing[0]}, ${easing[1]}, ${easing[2]}, ${easing[3]})`\n : 'ease'\n };\n\n // WAAPI animation method. https://developer.mozilla.org/en-US/docs/Web/API/Element/animate\n // TO DO: Check for required browser compatibility in case we need pollyfill.\n // https://github.com/web-animations/web-animations-js/blob/dev/docs/support.md#browser-support\n const startedAnimation = animatedElement.animate(\n [\n convertUseAnimationCssPropertiesToWAAPIKeyframe(animationConfig.from),\n convertUseAnimationCssPropertiesToWAAPIKeyframe(animationConfig.to)\n ],\n { ...animationOptions }\n );\n\n startedAnimation.onfinish = () => {\n //We commit styles to have an only source of truth.\n setEndStyle(animatedElement, true, animationConfig);\n // On animationEnd is only called when animation actually finished. If an animation is interruped by other one\n // or animated element is not longer rendered onAnimationEnd will not be called. Do we want to have a callback for those cases?\n onAnimationEnd?.({ animationState });\n };\n\n return startedAnimation;\n}\n\n/**\n * Sets element style.\n *\n * @param animatedElement Element that is going to be styled.\n * @param toAndEndStyle Represents which data will be used to set style. If set to true it uses \"to\" and \"endStyle\".\n * If set to false it uses just \"endStyle\".\n * @param animationConfig Style that is going to be set.\n */\nfunction setEndStyle<E extends HTMLElement>(\n animatedElement: E,\n toAndEndStyle: boolean,\n animationConfig: AnimationConfig\n) {\n const endStyle = toAndEndStyle\n ? {\n ...convertUseAnimationCssPropertiesToRegularCSS(animationConfig.to),\n ...convertUseAnimationCssPropertiesToRegularCSS(animationConfig.end)\n }\n : convertUseAnimationCssPropertiesToRegularCSS(animationConfig.end);\n for (const key in endStyle) {\n //TO DO: Look for a better way to handle types.\n (<any>animatedElement.style)[key] = endStyle[key as keyof typeof endStyle];\n }\n}\n"],"names":["convertUseAnimationCssPropertiesToRegularCSS","useAnimationCssProperties","translateX","translateY","translateZ","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","skewX","skewY","otherCssProperties","__rest","finalTransformValue","convertTranslateShortcuts","convertRotateShortcuts","convertScaleShortcuts","convertSkewShortcuts","Object","assign","transform","convertUseAnimationCssPropertiesToWAAPIKeyframe","_a","offset","cssOffset","animationState","animationStates","isAnimatedOnMount","onAnimationEnd","didMountRef","useRef","nodeRef","currentAnimationState","currentAnimation","animationStatesRef","useEffect","current","previousAnimationState","animation","node","element","playState","offsetWidth","offsetHeight","getClientRects","length","commitStyles","cancel","animatedElement","animationConfig","currentAnimationStateConfig","keys","getConfig","delay","duration","easing","options","animationOptions","startedAnimation","animate","from","to","onfinish","toAndEndStyle","endStyle","end","key","style","setEndStyle","startAnimation","cancelCurrentAnimation","useCallback","undefined","controller"],"mappings":"sFA8FM,SAAUA,EACdC,GAEA,IAAKA,EACH,MAAO,GAET,MAAMC,WACJA,EADIC,WAEJA,EAFIC,WAGJA,EAHIC,QAIJA,EAJIC,QAKJA,EALIC,QAMJA,EANIC,OAOJA,EAPIC,OAQJA,EARIC,OASJA,EATIC,MAUJA,EAVIC,MAWJA,GAEEX,EADCY,EACDC,EAAAA,OAAAb,EAbE,CAAA,aAAA,aAAA,aAAA,UAAA,UAAA,UAAA,SAAA,SAAA,SAAA,QAAA,UAgBAc,EAAsB,GAFEd,EAAyB,WAAiB,KAtF1E,SACEC,EACAC,EACAC,GAEA,SAAUF,iBAA4BA,KAAgB,KACpDC,EAAa,eAAeA,KAAgB,KAC3CC,EAAa,eAAeA,KAAgB,KAiFQY,CACrDd,EACAC,EACAC,KAzEJ,SACEC,EACAC,EACAC,GAEA,SAAUF,cAAsBA,KAAa,KAAKC,EAAU,YAAYA,KAAa,KACnFC,EAAU,YAAYA,KAAa,KAoEjCU,CAAuBZ,EAASC,EAASC,KAxD/C,SACEC,EACAC,EACAC,GAEA,MAAO,GAAGF,GAAqB,IAAXA,EAA0B,WAAAA,KAAY,KACxDC,GAAqB,IAAXA,EAA0B,WAAAA,KAAY,KAC/CC,GAAqB,IAAXA,EAAe,WAAWA,KAAY,KAiDKQ,CACtDV,EACAC,EACAC,KA1CJ,SACEC,EACAC,GAEA,MAAO,GAAGD,YAAkBA,KAAW,KAAKC,EAAkB,UAAAA,KAAW,KAuCrEO,CAAqBR,EAAOC,KAChC,OACKQ,OAAAC,OAAAD,OAAAC,OAAA,GAAAR,GACCE,GAAuB,C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B,SACEa,EACAD,EACAvB,EACAG,GAEA,MAAMyB,MAAEA,EAAFC,SAASA,EAATC,OAAmBA,GAAWN,EAAgBO,SAAW,GAGzDC,EAAmB,CACvBJ,MAAOA,GAAS,EAChBC,SAAUA,GAAY,IACtBC,OAAQA,EACc,iBAAXA,EACLA,kBACgBA,EAAO,OAAOA,EAAO,OAAOA,EAAO,OAAOA,EAAO,MACnE,QAMAG,EAAmBV,EAAgBW,QACvC,CACEtC,EAAgD4B,EAAgBW,MAChEvC,EAAgD4B,EAAgBY,KAE7D3C,OAAAC,OAAA,GAAAsC,IAWP,OARAC,EAAiBI,SAAW,MAmB9B,SACEd,EACAe,EACAd,GAEA,MAAMe,EAAWD,EACd7C,OAAAC,OAAAD,OAAAC,OAAA,GACMrB,EAA6CmD,EAAgBY,KAC7D/D,EAA6CmD,EAAgBgB,MAElEnE,EAA6CmD,EAAgBgB,KACjE,IAAK,MAAMC,KAAOF,EAEVhB,EAAgBmB,MAAOD,GAAOF,EAASE,GA9B7CE,CAAYpB,GAAiB,EAAMC,GAGnCrB,MAAAA,GAAAA,EAAiB,CAAEH,eAAAA,KAGdiC,EAzHsBW,CACzBpB,EACAD,EACAvB,EACAG,KAED,CAACH,EAAgBE,EAAmBC,IAMvC,MAAM0C,EAAyBC,EAAAA,YAAY,KACzC,MAAMjC,EAAYL,EAAiBG,QACN,aAAzBE,MAAAA,OAAS,EAATA,EAAWG,YACbH,EAAUS,UAEX,IAoBH,MAAO,CAAEhB,QAZWwC,cAAahC,UAC3BA,GAAQR,EAAQK,UAGdL,EAAQK,UACgB,QAA1Bd,EAAAW,EAAiBG,eAAS,IAAAd,GAAAA,EAAAyB,SAC1Bd,EAAiBG,aAAUoC,GAE7BzC,EAAQK,QAAUG,IAEnB,IAE4BkC,WAAY,CAAE1B,OAAQuB"}
|
|
1
|
+
{"version":3,"file":"useAnimation-c8511df4.js","sources":["../../src/hooks/UNSAFE_useAnimation/animationUtils.ts","../../src/hooks/UNSAFE_useAnimation/useAnimation.ts"],"sourcesContent":["import { StandardProperties } from 'csstype';\n\nexport type UseAnimationCssProperties = StandardProperties & TransformProperties;\n\n// This represents shorthand UseAnimationCssProperties props.\ntype TransformProperties = Partial<\n Record<\n | 'translateX'\n | 'translateY'\n | 'translateZ'\n | 'rotateX'\n | 'rotateY'\n | 'rotateZ'\n | 'skewX'\n | 'skewY',\n string\n > &\n Record<'scaleX' | 'scaleY' | 'scaleZ', string | number>\n>;\n\n/**\n * Converts shorthand translate props into transform string representation.\n *\n * @param translateX\n * @param translateY\n * @param translateZ\n * @returns Longhand transform string representation.\n */\nfunction convertTranslateShortcuts(\n translateX: TransformProperties['translateX'],\n translateY: TransformProperties['translateY'],\n translateZ: TransformProperties['translateZ']\n) {\n return `${translateX ? ` translateX(${translateX})` : ''}${\n translateY ? ` translateY(${translateY})` : ''\n }${translateZ ? ` translateZ(${translateZ})` : ''}`;\n}\n\n/**\n * Converts shorthand rotate props into transform string representation.\n *\n * @param rotateX\n * @param rotateY\n * @param rotateZ\n * @returns Longhand transform string representation.\n */\nfunction convertRotateShortcuts(\n rotateX?: TransformProperties['rotateX'],\n rotateY?: TransformProperties['rotateY'],\n rotateZ?: TransformProperties['rotateZ']\n) {\n return `${rotateX ? ` rotateX(${rotateX})` : ''}${rotateY ? ` rotateY(${rotateY})` : ''}${\n rotateZ ? ` rotateZ(${rotateZ})` : ''\n }`;\n}\n\n/**\n * Converts shorthand scale props into transform string representation.\n *\n * @param scaleX\n * @param scaleY\n * @param scaleZ\n * @returns Longhand transform string representation.\n */\nfunction convertScaleShortcuts(\n scaleX: TransformProperties['scaleX'],\n scaleY: TransformProperties['scaleY'],\n scaleZ: TransformProperties['scaleZ']\n) {\n return `${scaleX || scaleX === 0 ? ` scaleX(${scaleX})` : ''}${\n scaleY || scaleY === 0 ? ` scaleY(${scaleY})` : ''\n }${scaleZ || scaleZ === 0 ? ` scaleZ(${scaleZ})` : ''}`;\n}\n\n/**\n * Converts shorthand skew props into transform string representation.\n *\n * @param skewX\n * @param skewY\n * @returns Longhand transform string representation.\n */\nfunction convertSkewShortcuts(\n skewX: TransformProperties['skewX'],\n skewY: TransformProperties['skewY']\n) {\n return `${skewX ? ` skewX(${skewX})` : ''}${skewY ? ` skewY(${skewY})` : ''}`;\n}\n\n/**\n * Converts animation CSS properties into Regular camel cased CSS properties.\n *\n * @param useAnimationCssProperties This include transform shorthand props.\n * @returns Regular camel cased CSS properties.\n */\nexport function convertUseAnimationCssPropertiesToRegularCSS(\n useAnimationCssProperties?: UseAnimationCssProperties\n) {\n if (!useAnimationCssProperties) {\n return {};\n }\n const {\n translateX,\n translateY,\n translateZ,\n rotateX,\n rotateY,\n rotateZ,\n scaleX,\n scaleY,\n scaleZ,\n skewX,\n skewY,\n ...otherCssProperties\n } = useAnimationCssProperties;\n const initialTransformValue = useAnimationCssProperties['transform'] || '';\n // Now we just add values pased in shortcuts to transform property, do we want to replace it instead?\n const finalTransformValue = `${initialTransformValue}${convertTranslateShortcuts(\n translateX,\n translateY,\n translateZ\n )}${convertRotateShortcuts(rotateX, rotateY, rotateZ)}${convertScaleShortcuts(\n scaleX,\n scaleY,\n scaleZ\n )}${convertSkewShortcuts(skewX, skewY)}`;\n return {\n ...otherCssProperties,\n ...(finalTransformValue && { transform: finalTransformValue })\n };\n}\n\n/**\n * Converts animation CSS properties into WAAPI keyframe properties.\n * Since keyframes have a difference between offset and cssOffset this collision is avoided here.\n *\n * @param useAnimationCssProperties This include transform shorthand props.\n * @returns WAAPI keyframe\n */\nexport function convertUseAnimationCssPropertiesToWAAPIKeyframe(\n useAnimationCssProperties?: UseAnimationCssProperties\n) {\n if (!useAnimationCssProperties) {\n return {};\n }\n const { offset, ...otherCssProperties } =\n convertUseAnimationCssPropertiesToRegularCSS(useAnimationCssProperties);\n return {\n ...otherCssProperties,\n ...(offset && { cssOffset: offset })\n };\n}\n\n/**\n * Stops an animation.\n *\n * @param animation Animation that is going to be stopped.\n * @returns\n */\nexport function stopAnimation<E extends HTMLElement>(animation: Animation, node: E | null) {\n // TO DO: rollup-plugin-typescript seems to have an outdated Animation typing. That produces warnings while bulding.\n // Update picked type to get rid of this casting.\n // We have to check if the element is visible to commit styles\n isVisible(node) && (animation as any).commitStyles();\n animation.cancel();\n}\n\n/**\n * Check if an element is visible. Similar to jQuery :visible selector.\n *\n * @param element HTML element that is going to be checked for its visibility.\n * @returns\n */\nfunction isVisible<E extends HTMLElement>(element: E | null): boolean {\n return !!(element?.offsetWidth || element?.offsetHeight || element?.getClientRects().length);\n}\n","import { useRef, useEffect, useCallback } from 'preact/hooks';\nimport {\n convertUseAnimationCssPropertiesToRegularCSS,\n convertUseAnimationCssPropertiesToWAAPIKeyframe,\n UseAnimationCssProperties,\n stopAnimation\n} from './animationUtils';\n\nexport type UseAnimationConfig<V extends string, E extends HTMLElement> = {\n animationStates: Partial<\n Record<AnimationStateKey<V>, ((node: E) => AnimationConfig) | AnimationConfig>\n >;\n isAnimatedOnMount?: boolean;\n onAnimationEnd?: ({ animationState }: { animationState: V }) => void;\n};\n\n// Used to filter simple states and ones that include previous state\ntype AnimationStateKey<PA extends string> = ExtractAnimationStates<PA | `${PA} => ${PA}`>;\n\n// Used to get previous and current states and do deeper typing\ntype ExtractAnimationStates<StateString extends string> =\n StateString extends `${infer From} => ${infer To}`\n ? KeyWithPreviousAndCurrentState<From, To>\n : StateString;\n\n// Used to just allow keys with different previous and current states\ntype KeyWithPreviousAndCurrentState<PreviousState extends string, CurrentState extends string> = {\n b: PreviousState;\n} extends { b: CurrentState }\n ? never\n : `${PreviousState} => ${CurrentState}`;\n\ntype AnimationConfig = {\n from?: UseAnimationCssProperties;\n to: UseAnimationCssProperties;\n end?: UseAnimationCssProperties;\n options?: AnimationOptions;\n};\n\ntype AnimationOptions = {\n delay?: number;\n duration?: number;\n easing?:\n | 'linear'\n | 'ease'\n | 'ease-in'\n | 'ease-out'\n | 'ease-in-out'\n | [number, number, number, number];\n};\n\n// Used to exclude states that include => since this string is used to represent a transition from state to another.\ntype PermittedAnimationState<V extends string> = Exclude<V, `${string}=>${string}`>;\n\n/**\n * Hook to animate single components.\n * It allows n number of animation states.\n * @param animationState\n * @param animationConfig\n * @returns\n */\nexport function useAnimation<V extends string, E extends HTMLElement = HTMLElement>(\n animationState: PermittedAnimationState<V>,\n {\n animationStates,\n isAnimatedOnMount = false,\n onAnimationEnd = () => {}\n }: UseAnimationConfig<PermittedAnimationState<V>, E>\n) {\n const didMountRef = useRef(false);\n const nodeRef = useRef<E | null>(null);\n const currentAnimationState = useRef<PermittedAnimationState<V>>();\n const currentAnimation = useRef<Animation>();\n\n // We don't allow changing animationStates. Ref to keep \"first run\" animation states.\n const animationStatesRef =\n useRef<UseAnimationConfig<PermittedAnimationState<V>, E>['animationStates']>(animationStates);\n\n useEffect(() => {\n // UseEffect just have to be ran when there is a change on animationState\n if (currentAnimationState.current === animationState) return;\n\n // It makes sense to keep track of animation states even if there's no animated element to animate.\n const previousAnimationState = currentAnimationState.current;\n currentAnimationState.current = animationState;\n\n //Stop an animation here only makes sense if the previous one is running\n if (currentAnimation.current?.playState === 'running') {\n stopAnimation(currentAnimation.current, nodeRef.current);\n }\n\n const animatedElement = nodeRef.current;\n if (!animatedElement) {\n return;\n }\n\n if (!didMountRef.current) {\n didMountRef.current = true;\n if (!isAnimatedOnMount) {\n return;\n }\n }\n\n const animationConfig = getConfig(\n animationStatesRef.current,\n animatedElement,\n animationState,\n previousAnimationState\n );\n\n if (!animationConfig) {\n return;\n }\n\n currentAnimation.current = startAnimation(\n animationConfig,\n animatedElement,\n animationState,\n onAnimationEnd\n );\n }, [animationState, isAnimatedOnMount, onAnimationEnd]);\n\n /**\n * Used to cancel current animation. When animation is canceled node style goes back to beginning style of canceled animation.\n * @returns\n */\n const cancelCurrentAnimation = useCallback(() => {\n const animation = currentAnimation.current;\n if (animation?.playState === 'running') {\n animation.cancel();\n }\n }, []);\n\n /**\n * Callback ref use to set nodeRef.\n *\n * @param node Actual element user set.\n * @returns\n */\n const callbackRef = useCallback((node: E | null) => {\n if (node != nodeRef.current) {\n //If for any reason element is unmounted we have to cancel animation(if there is one) and\n //set currentAnimation as undefined so we don't keep running this animation\n if (nodeRef.current) {\n currentAnimation.current?.cancel();\n currentAnimation.current = undefined;\n }\n nodeRef.current = node;\n }\n }, []);\n\n return { nodeRef: callbackRef, controller: { cancel: cancelCurrentAnimation } };\n}\n\n/**\n * Gets animation configuration.\n *\n * @param animationStates Set of animation configurations provided by the user.\n * @param animatedElement Element that is going to be styled.\n * @param animationState Current animation state.\n * @param previousAnimationState Previous animation state.\n * @returns AnimationConfig.\n */\nfunction getConfig<V extends string, E extends HTMLElement>(\n animationStates: UseAnimationConfig<PermittedAnimationState<V>, E>['animationStates'],\n animatedElement: E,\n animationState: PermittedAnimationState<V>,\n previousAnimationState?: PermittedAnimationState<V>\n) {\n const currentAnimationStateConfig =\n animationStates[\n `${previousAnimationState} => ${animationState}` as keyof UseAnimationConfig<\n PermittedAnimationState<V>,\n E\n >['animationStates']\n ] ||\n animationStates[\n animationState as keyof UseAnimationConfig<PermittedAnimationState<V>, E>['animationStates']\n ];\n\n const animationConfig =\n typeof currentAnimationStateConfig === 'function'\n ? currentAnimationStateConfig(animatedElement)\n : (currentAnimationStateConfig as AnimationConfig);\n\n return animationConfig && Object.keys(animationConfig).length > 0 ? animationConfig : null;\n}\n\n/**\n * Starts an animation.\n *\n * @param animationConfig Animation configuration used by the animation.\n * @param animatedElement Element that is going to be styled.\n * @param animationState Current animation state.\n * @param onAnimationEnd Callback called once the animation is completed.\n * @returns Animation.\n */\nfunction startAnimation<V extends string, E extends HTMLElement>(\n animationConfig: AnimationConfig,\n animatedElement: E,\n animationState: PermittedAnimationState<V>,\n onAnimationEnd: UseAnimationConfig<PermittedAnimationState<V>, E>['onAnimationEnd']\n) {\n const { delay, duration, easing } = animationConfig.options || {};\n\n //Now, if user does not pass a value we override it by hand. We will use theming tools in future.\n const animationOptions = {\n delay: delay || 0,\n duration: duration || 400,\n easing: easing\n ? typeof easing === 'string'\n ? easing\n : `cubic-bezier(${easing[0]}, ${easing[1]}, ${easing[2]}, ${easing[3]})`\n : 'ease'\n };\n\n // WAAPI animation method. https://developer.mozilla.org/en-US/docs/Web/API/Element/animate\n // TO DO: Check for required browser compatibility in case we need pollyfill.\n // https://github.com/web-animations/web-animations-js/blob/dev/docs/support.md#browser-support\n const startedAnimation = animatedElement.animate(\n [\n convertUseAnimationCssPropertiesToWAAPIKeyframe(animationConfig.from),\n convertUseAnimationCssPropertiesToWAAPIKeyframe(animationConfig.to)\n ],\n { ...animationOptions }\n );\n\n startedAnimation.onfinish = () => {\n //We commit styles to have an only source of truth.\n setEndStyle(animatedElement, true, animationConfig);\n // On animationEnd is only called when animation actually finished. If an animation is interruped by other one\n // or animated element is not longer rendered onAnimationEnd will not be called. Do we want to have a callback for those cases?\n onAnimationEnd?.({ animationState });\n };\n\n return startedAnimation;\n}\n\n/**\n * Sets element style.\n *\n * @param animatedElement Element that is going to be styled.\n * @param toAndEndStyle Represents which data will be used to set style. If set to true it uses \"to\" and \"endStyle\".\n * If set to false it uses just \"endStyle\".\n * @param animationConfig Style that is going to be set.\n */\nfunction setEndStyle<E extends HTMLElement>(\n animatedElement: E,\n toAndEndStyle: boolean,\n animationConfig: AnimationConfig\n) {\n const endStyle = toAndEndStyle\n ? {\n ...convertUseAnimationCssPropertiesToRegularCSS(animationConfig.to),\n ...convertUseAnimationCssPropertiesToRegularCSS(animationConfig.end)\n }\n : convertUseAnimationCssPropertiesToRegularCSS(animationConfig.end);\n for (const key in endStyle) {\n //TO DO: Look for a better way to handle types.\n (<any>animatedElement.style)[key] = endStyle[key as keyof typeof endStyle];\n }\n}\n"],"names":["convertUseAnimationCssPropertiesToRegularCSS","useAnimationCssProperties","translateX","translateY","translateZ","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","skewX","skewY","otherCssProperties","__rest","finalTransformValue","convertTranslateShortcuts","convertRotateShortcuts","convertScaleShortcuts","convertSkewShortcuts","Object","assign","transform","convertUseAnimationCssPropertiesToWAAPIKeyframe","_a","offset","cssOffset","animationState","animationStates","isAnimatedOnMount","onAnimationEnd","didMountRef","useRef","nodeRef","currentAnimationState","currentAnimation","animationStatesRef","useEffect","current","previousAnimationState","animation","node","element","playState","offsetWidth","offsetHeight","getClientRects","length","commitStyles","cancel","animatedElement","animationConfig","currentAnimationStateConfig","keys","getConfig","delay","duration","easing","options","animationOptions","startedAnimation","animate","from","to","onfinish","toAndEndStyle","endStyle","end","key","style","setEndStyle","startAnimation","cancelCurrentAnimation","useCallback","undefined","controller"],"mappings":"sFA8FM,SAAUA,EACdC,GAEA,IAAKA,EACH,MAAO,GAET,MAAMC,WACJA,EAAUC,WACVA,EAAUC,WACVA,EAAUC,QACVA,EAAOC,QACPA,EAAOC,QACPA,EAAOC,OACPA,EAAMC,OACNA,EAAMC,OACNA,EAAMC,MACNA,EAAKC,MACLA,GAEEX,EADCY,EACDC,EAAAA,OAAAb,EAbE,CAAA,aAAA,aAAA,aAAA,UAAA,UAAA,UAAA,SAAA,SAAA,SAAA,QAAA,UAgBAc,EAAsB,GAFEd,EAAqC,WAAK,KAtF1E,SACEC,EACAC,EACAC,GAEA,MAAO,GAAGF,EAAa,eAAeA,KAAgB,KACpDC,EAAa,eAAeA,KAAgB,KAC3CC,EAAa,eAAeA,KAAgB,KAiFQY,CACrDd,EACAC,EACAC,KAzEJ,SACEC,EACAC,EACAC,GAEA,MAAO,GAAGF,EAAU,YAAYA,KAAa,KAAKC,EAAU,YAAYA,KAAa,KACnFC,EAAU,YAAYA,KAAa,KAoEjCU,CAAuBZ,EAASC,EAASC,KAxD/C,SACEC,EACAC,EACAC,GAEA,MAAO,GAAGF,GAAqB,IAAXA,EAAe,WAAWA,KAAY,KACxDC,GAAqB,IAAXA,EAAe,WAAWA,KAAY,KAC/CC,GAAqB,IAAXA,EAAe,WAAWA,KAAY,KAiDKQ,CACtDV,EACAC,EACAC,KA1CJ,SACEC,EACAC,GAEA,MAAO,GAAGD,EAAQ,UAAUA,KAAW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,CAAE1B,OAAQuB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
define(["exports","preact/hooks"],function(e,u){"use strict";e.useFocusWithin=function({isDisabled:e,onBlurWithin:n,onFocusWithin:s}={}){const[t,r]=u.useState(!1),o=u.useRef(!1),c=u.useCallback(e=>{o.current||(null==s||s(e),r(!0),o.current=!0)},[s]),i=u.useCallback(e=>{!o.current||null!=e.relatedTarget&&e.currentTarget.contains(e.relatedTarget)||(null==n||n(e),r(!1),o.current=!1)},[n]);return e?{isFocused:!1,focusProps:{}}:{isFocused:t,focusProps:{onfocusin:c,onfocusout:i}}}});
|
|
2
|
-
//# sourceMappingURL=useFocusWithin-
|
|
2
|
+
//# sourceMappingURL=useFocusWithin-8f27a1c8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusWithin-
|
|
1
|
+
{"version":3,"file":"useFocusWithin-8f27a1c8.js","sources":["../../src/hooks/UNSAFE_useFocusWithin/useFocusWithin.ts"],"sourcesContent":["import { useCallback, useRef, useState } from 'preact/hooks';\n\ntype FocusEvents = {\n onBlurWithin?: (e: FocusEvent) => void;\n onFocusWithin?: (e: FocusEvent) => void;\n};\n\ntype UseFocusWithinProps = FocusEvents & {\n isDisabled?: boolean;\n};\n\nexport function useFocusWithin({\n isDisabled,\n onBlurWithin,\n onFocusWithin\n}: UseFocusWithinProps = {}) {\n const [isFocused, setIsFocused] = useState(false);\n // Maintain a ref for whether we're focused so that we can update it synchronously and check\n // it in the listeners. It's possible for an element to receive and lose focus before\n // the next render happens, in which case the isFocused state hasn't been updated yet for\n // the focusin event. The focusout listener would not do anything based on that stale state,\n // which would result in the isFocused state incorrectly remaining true.\n // We still need the isFocused state because that state change will trigger a rerender,\n // whereas updating the ref will not.\n const isFocusedRef = useRef(false);\n const onfocusin = useCallback(\n (event: FocusEvent) => {\n if (!isFocusedRef.current) {\n onFocusWithin?.(event);\n setIsFocused(true);\n isFocusedRef.current = true;\n }\n },\n [onFocusWithin]\n );\n const onfocusout = useCallback(\n (event: FocusEvent) => {\n // Trigger focus event changes only when the focus goes outside of the current\n // target. Ignore focus changes within the current target\n if (\n isFocusedRef.current &&\n (event.relatedTarget == null ||\n !(event.currentTarget as HTMLElement).contains(event.relatedTarget as HTMLElement))\n ) {\n onBlurWithin?.(event);\n setIsFocused(false);\n isFocusedRef.current = false;\n }\n },\n [onBlurWithin]\n );\n\n return isDisabled\n ? {\n isFocused: false,\n focusProps: {}\n }\n : {\n isFocused,\n focusProps: {\n onfocusin,\n onfocusout\n }\n };\n}\n"],"names":["isDisabled","onBlurWithin","onFocusWithin","isFocused","setIsFocused","useState","isFocusedRef","useRef","onfocusin","useCallback","event","current","onfocusout","relatedTarget","currentTarget","contains","focusProps"],"mappings":"8EAWM,UAAyBA,WAC7BA,EAAUC,aACVA,EAAYC,cACZA,GACuB,IACvB,MAAOC,EAAWC,GAAgBC,EAAQA,UAAC,GAQrCC,EAAeC,UAAO,GACtBC,EAAYC,cACfC,IACMJ,EAAaK,UAChBT,MAAAA,GAAAA,EAAgBQ,GAChBN,GAAa,GACbE,EAAaK,SAAU,IAG3B,CAACT,IAEGU,EAAaH,cAChBC,KAIGJ,EAAaK,SACW,MAAvBD,EAAMG,eACHH,EAAMI,cAA8BC,SAASL,EAAMG,iBAEvDZ,MAAAA,GAAAA,EAAeS,GACfN,GAAa,GACbE,EAAaK,SAAU,IAG3B,CAACV,IAGH,OAAOD,EACH,CACEG,WAAW,EACXa,WAAY,IAEd,CACEb,UAAAA,EACAa,WAAY,CACVR,UAAAA,EACAI,WAAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
define(["exports","preact/hooks"],function(e,t){"use strict";const n=e=>{"Enter"===e.key&&e.preventDefault()},o=(e,t,n,o)=>{const c=t(e.target);o&&c&&n!==c&&(o({value:c}),"click"===e.type&&e.stopPropagation())};e.useSingleSelection=function(e,c,s){const l=t.useCallback(t=>{o(t,e,c,s)},[e,c,s]),r=t.useCallback(t=>{"Enter"===t.key&&o(t,e,c,s)},[e,c,s]);return{selectionProps:s?{onClick:l,onKeyDown:n,onKeyUp:r}:{}}}});
|
|
2
|
-
//# sourceMappingURL=useSingleSelection-
|
|
2
|
+
//# sourceMappingURL=useSingleSelection-bd1208cf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSingleSelection-
|
|
1
|
+
{"version":3,"file":"useSingleSelection-bd1208cf.js","sources":["../../src/hooks/PRIVATE_useSingleSelection/useSingleSelection.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 */\nimport { useCallback } from 'preact/hooks';\nimport { SingleSelectionDetail } from '../../UNSAFE_Collection';\n\nexport function useSingleSelection<K>(\n keyExtractor: (element: HTMLElement) => K | null,\n selected?: K,\n onChange?: (detail: SingleSelectionDetail<K>) => void\n) {\n const onClick = useCallback(\n (event: MouseEvent) => {\n handleSelect(event, keyExtractor, selected, onChange);\n },\n [keyExtractor, selected, onChange]\n );\n\n const onKeyUp = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n handleSelect(event, keyExtractor, selected, onChange);\n }\n },\n [keyExtractor, selected, onChange]\n );\n\n const selectionProps = onChange ? { onClick, onKeyDown, onKeyUp } : {};\n return { selectionProps };\n}\n\n// prevent default (propagation) for keyDown to prevent arrow keys from scrolling the container\nconst onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n }\n};\n\nconst handleSelect = <K>(\n event: Event,\n keyExtractor: (element: HTMLElement) => K | null,\n selected?: K,\n onChange?: (detail: SingleSelectionDetail<K>) => void\n) => {\n const itemKey = keyExtractor(event.target as HTMLElement);\n if (onChange && itemKey && selected !== itemKey) {\n onChange({ value: itemKey });\n if (event.type === 'click') {\n event.stopPropagation();\n }\n }\n};\n"],"names":["onKeyDown","event","key","preventDefault","handleSelect","keyExtractor","selected","onChange","itemKey","target","value","type","stopPropagation","onClick","useCallback","onKeyUp","selectionProps"],"mappings":"6DAoCA,MAAMA,EAAaC,IACC,UAAdA,EAAMC,KACRD,EAAME,kBAIJC,EAAe,CACnBH,EACAI,EACAC,EACAC,KAEA,MAAMC,EAAUH,EAAaJ,EAAMQ,QAC/BF,GAAYC,GAAWF,IAAaE,IACtCD,EAAS,CAAEG,MAAOF,IACC,UAAfP,EAAMU,MACRV,EAAMW,kDAzCVP,EACAC,EACAC,GAEA,MAAMM,EAAUC,cACbb,IACCG,EAAaH,EAAOI,EAAcC,EAAUC,IAE9C,CAACF,EAAcC,EAAUC,IAGrBQ,EAAUD,cACbb,IACmB,UAAdA,EAAMC,KACRE,EAAaH,EAAOI,EAAcC,EAAUC,IAGhD,CAACF,EAAcC,EAAUC,IAI3B,MAAO,CAAES,eADcT,EAAW,CAAEM,QAAAA,EAASb,UAAAA,EAAWe,QAAAA,GAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["exports","../clientHints-
|
|
1
|
+
define(["exports","../clientHints-4aaefa1c"],function(e,t){"use strict";e.getClientHints=t.getClientHints,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=PRIVATE_clientHints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PRIVATE_collectionUtils.js","sources":["../../../src/utils/PRIVATE_collectionUtils/collectionUtils.ts"],"sourcesContent":["import { isKeyDefined } from '../UNSAFE_keys';\n\n/**\n * Returns the key from the item element\n */\nconst getKey = (item: HTMLElement) => {\n return item.dataset['ojKeyType'] === 'number'\n ? Number(item.dataset['ojKey'])\n : item.dataset['ojKey'];\n};\n\n/**\n * A helper function that return the key of the first available item.\n */\nexport const getFirstVisibleKey = (root: HTMLElement, itemSelector: string) => {\n if (root) {\n const firstItem = root.querySelector(itemSelector);\n if (firstItem) {\n const key = getKey(firstItem as HTMLElement);\n return key;\n }\n }\n return null;\n};\n\n/**\n * A helper function to find the element with the specified key.\n * Returns null if the element with key is not found.\n */\nexport const findElementByKey = <K extends string | number>(\n root: HTMLElement,\n key: K,\n itemSelector: string\n) => {\n if (root) {\n const items = root.querySelectorAll(itemSelector);\n for (let i = 0; i < items.length; i++) {\n const thisKey = getKey(items[i] as HTMLElement);\n if (key == (thisKey as K)) {\n return items[i];\n }\n }\n }\n return null;\n};\n\n/**\n * A helper function that returns the key of the previous or the next item\n * given the specified current key\n */\nexport const getPrevNextKey = <K extends string | number>(\n root: HTMLElement | null,\n currentKey: K | undefined,\n isPrev: boolean,\n itemSelector: string\n) => {\n return (): K | null => {\n if (isKeyDefined(currentKey) && root) {\n const currItem = findElementByKey(root, currentKey as K, itemSelector);\n if (currItem) {\n const nextItem = isPrev ? currItem.previousElementSibling : currItem.nextElementSibling;\n if (nextItem) {\n const key = getKey(nextItem as HTMLElement) as K;\n if (key != null) {\n return key;\n }\n }\n }\n return getFirstVisibleKey(root, itemSelector) as K;\n }\n return null;\n };\n};\n\n/**\n * A helper function to get the key from an element\n */\nexport const keyExtractor = <K extends string | number>(\n element: HTMLElement,\n itemSelector: string\n): K | null => {\n const item = element.closest(itemSelector);\n if (item) {\n const key = getKey(item as HTMLElement) as K;\n return key === undefined ? null : key;\n }\n return null;\n};\n"],"names":["getKey","item","dataset","Number","getFirstVisibleKey","root","itemSelector","firstItem","querySelector","findElementByKey","key","items","querySelectorAll","i","length","currentKey","isPrev","isKeyDefined","currItem","nextItem","previousElementSibling","nextElementSibling","element","closest","undefined"],"mappings":"8DAKA,MAAMA,EAAUC,GACuB,WAA9BA,EAAKC,
|
|
1
|
+
{"version":3,"file":"PRIVATE_collectionUtils.js","sources":["../../../src/utils/PRIVATE_collectionUtils/collectionUtils.ts"],"sourcesContent":["import { isKeyDefined } from '../UNSAFE_keys';\n\n/**\n * Returns the key from the item element\n */\nconst getKey = (item: HTMLElement) => {\n return item.dataset['ojKeyType'] === 'number'\n ? Number(item.dataset['ojKey'])\n : item.dataset['ojKey'];\n};\n\n/**\n * A helper function that return the key of the first available item.\n */\nexport const getFirstVisibleKey = (root: HTMLElement, itemSelector: string) => {\n if (root) {\n const firstItem = root.querySelector(itemSelector);\n if (firstItem) {\n const key = getKey(firstItem as HTMLElement);\n return key;\n }\n }\n return null;\n};\n\n/**\n * A helper function to find the element with the specified key.\n * Returns null if the element with key is not found.\n */\nexport const findElementByKey = <K extends string | number>(\n root: HTMLElement,\n key: K,\n itemSelector: string\n) => {\n if (root) {\n const items = root.querySelectorAll(itemSelector);\n for (let i = 0; i < items.length; i++) {\n const thisKey = getKey(items[i] as HTMLElement);\n if (key == (thisKey as K)) {\n return items[i];\n }\n }\n }\n return null;\n};\n\n/**\n * A helper function that returns the key of the previous or the next item\n * given the specified current key\n */\nexport const getPrevNextKey = <K extends string | number>(\n root: HTMLElement | null,\n currentKey: K | undefined,\n isPrev: boolean,\n itemSelector: string\n) => {\n return (): K | null => {\n if (isKeyDefined(currentKey) && root) {\n const currItem = findElementByKey(root, currentKey as K, itemSelector);\n if (currItem) {\n const nextItem = isPrev ? currItem.previousElementSibling : currItem.nextElementSibling;\n if (nextItem) {\n const key = getKey(nextItem as HTMLElement) as K;\n if (key != null) {\n return key;\n }\n }\n }\n return getFirstVisibleKey(root, itemSelector) as K;\n }\n return null;\n };\n};\n\n/**\n * A helper function to get the key from an element\n */\nexport const keyExtractor = <K extends string | number>(\n element: HTMLElement,\n itemSelector: string\n): K | null => {\n const item = element.closest(itemSelector);\n if (item) {\n const key = getKey(item as HTMLElement) as K;\n return key === undefined ? null : key;\n }\n return null;\n};\n"],"names":["getKey","item","dataset","Number","getFirstVisibleKey","root","itemSelector","firstItem","querySelector","findElementByKey","key","items","querySelectorAll","i","length","currentKey","isPrev","isKeyDefined","currItem","nextItem","previousElementSibling","nextElementSibling","element","closest","undefined"],"mappings":"8DAKA,MAAMA,EAAUC,GACuB,WAA9BA,EAAKC,QAAmB,UAC3BC,OAAOF,EAAKC,QAAe,OAC3BD,EAAKC,QAAe,MAMbE,EAAqB,CAACC,EAAmBC,KACpD,GAAID,EAAM,CACR,MAAME,EAAYF,EAAKG,cAAcF,GACrC,GAAIC,EAAW,CAEb,OADYP,EAAOO,IAIvB,OAAO,MAOIE,EAAmB,CAC9BJ,EACAK,EACAJ,KAEA,GAAID,EAAM,CACR,MAAMM,EAAQN,EAAKO,iBAAiBN,GACpC,IAAK,IAAIO,EAAI,EAAGA,EAAIF,EAAMG,OAAQD,IAAK,CAErC,GAAIH,GADYV,EAAOW,EAAME,IAE3B,OAAOF,EAAME,IAInB,OAAO,mEAOqB,CAC5BR,EACAU,EACAC,EACAV,IAEO,KACL,GAAIW,EAAYA,aAACF,IAAeV,EAAM,CACpC,MAAMa,EAAWT,EAAiBJ,EAAMU,EAAiBT,GACzD,GAAIY,EAAU,CACZ,MAAMC,EAAWH,EAASE,EAASE,uBAAyBF,EAASG,mBACrE,GAAIF,EAAU,CACZ,MAAMT,EAAMV,EAAOmB,GACnB,GAAW,MAAPT,EACF,OAAOA,GAIb,OAAON,EAAmBC,EAAMC,GAElC,OAAO,qBAOiB,CAC1BgB,EACAhB,KAEA,MAAML,EAAOqB,EAAQC,QAAQjB,GAC7B,GAAIL,EAAM,CACR,MAAMS,EAAMV,EAAOC,GACnB,YAAeuB,IAARd,EAAoB,KAAOA,EAEpC,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PRIVATE_meterUtils.js","sources":["../../../src/utils/PRIVATE_meterUtils/meterUtils.ts","../../../src/utils/PRIVATE_meterUtils/circleUtils.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 { Threshold, ThresholdDisplay } from '../UNSAFE_meterTypes';\n\n/**\n * Validates the min, max, value and step passed to the meter are in appropriate range.\n * @throws { RangeError }\n * @param min The minimum value of the meter.\n * @param max The maximum value of the meter.\n * @param value The metric value of the meter.\n * @param step The step value of the meter.\n */\nexport function validateRange(min: number, max: number, value: number, step: number): void {\n if (min > max) {\n throw new RangeError('The min must be lower or equal to max.');\n }\n\n if (value < min || value > max) {\n throw new RangeError('The value must be between min and max.');\n }\n\n if (step > max - min) {\n throw new RangeError('The step value must be less than the difference of max and min');\n }\n}\n\n/**\n * Returns the threshold that the current value belongs to. Returns undefined if the current value does not belong to\n * any threshold or if thresholds is undefined.\n * @param value The value in meter.\n * @param thresholds The list of thresholds.\n * @returns The Threshold that current value belongs to.\n */\nfunction findThreshold(value: number, thresholds?: Threshold[]): Threshold | undefined {\n if (!thresholds) {\n return;\n }\n if (value <= thresholds[0].max) {\n return thresholds[0];\n }\n let minValue = thresholds[0].max;\n for (let i = 1; i < thresholds.length; i++) {\n if (minValue < value && value <= thresholds[i].max) {\n return thresholds[i];\n }\n minValue = thresholds[i].max;\n }\n return;\n}\n\n/**\n * Returns the color of track for the meter.\n * @param trackColor The color provided via trackColor prop of the meter.\n * @param thresholdDisplay Specifies whether current threshold to display in track, indicator or all thresholds in track.\n * @param currentThreshold Current threshold for the meter value.\n * @returns The color of the track for the meter.\n */\nfunction getTrackColor(\n thresholdDisplay: ThresholdDisplay,\n currentThreshold: Threshold | undefined,\n trackColor?: string\n): string | undefined {\n if (thresholdDisplay === 'track' && currentThreshold?.color) {\n return currentThreshold?.color;\n }\n return trackColor;\n}\n\n/**\n * Returns the color of indicator for the meter.\n * @param indicatorColor The color provided via indicatorColor prop of the meter.\n * @param thresholdDisplay Specifies whether current threshold to display in track, indicator or all thresholds in track.\n * @param currentThreshold Current threshold for the meter value.\n * @returns The color of the indicator of the meter.\n */\nfunction getIndicatorColor(\n thresholdDisplay: ThresholdDisplay,\n currentThreshold: Threshold | undefined,\n indicatorColor?: string\n): string | undefined {\n if (currentThreshold?.color && thresholdDisplay === 'indicator') {\n return currentThreshold.color;\n }\n return indicatorColor;\n}\n\n/**\n * Returns the color of track and indicator of the meter.\n * @param value The value of the meter.\n * @param trackColor The color provided via trackColor prop.\n * @param indicatorColor The color provided via indicatorColor prop.\n * @param thresholdDisplay Specifies whether current threshold to display in track, indicator or all thresholds in track.\n * @param thresholds The thresholds for metric value of the meter.\n * @returns The color of the indicator and track of the meter.\n */\nexport function getTrackAndIndicatorColor(\n value: number,\n thresholdDisplay: ThresholdDisplay,\n trackColor?: string,\n indicatorColor?: string,\n thresholds?: Threshold[]\n): {\n trackColor?: string;\n indicatorColor?: string;\n} {\n const currentThreshold = findThreshold(value, thresholds);\n return {\n trackColor: getTrackColor(thresholdDisplay, currentThreshold, trackColor),\n indicatorColor: getIndicatorColor(thresholdDisplay, currentThreshold, indicatorColor)\n };\n}\n\n/**\n * Returns the aria properties of the meter bar.\n * @param value The value of the meter bar.\n * @param min The minimum value of the meter bar.\n * @param max The maximum value of the meter bar.\n * @param valueText The default aria value text for the meter bar.\n * @param accessibleLabel The aria label of the meter bar.\n * @param ariaLabelledby The ariaLabelledBy of the meter bar.\n * @param thresholds The thresholds values for the meter bar.\n * @returns The aria properties of the meter\n */\nexport function getMeterAriaProps(\n value: number,\n min: number,\n max: number,\n valueText?: string,\n accessibleLabel?: string,\n ariaLabelledby?: string,\n thresholds?: Threshold[]\n): {\n 'aria-label'?: string;\n 'aria-valuenow': string;\n 'aria-valuemin': string;\n 'aria-valuetext': string;\n 'aria-valuemax': string;\n 'aria-labelledby'?: string;\n} {\n const currentThreshold = findThreshold(value, thresholds);\n const ariaValueText = `${valueText} ${currentThreshold?.accessibleLabel || ''}`;\n return {\n 'aria-label': accessibleLabel,\n 'aria-valuenow': `${value}`,\n 'aria-valuemin': `${min}`,\n 'aria-valuetext': ariaValueText,\n 'aria-valuemax': `${max}`,\n 'aria-labelledby': ariaLabelledby\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nexport type Sector = 'top' | 'bottom' | 'left' | 'right' | 'full';\n\n/**\n * Returns the angle in radians\n * @param angle The angle in degrees.\n * @returns The angle in radians.\n */\nfunction toRad(angle: number): number {\n return (angle * Math.PI) / 180;\n}\n\n/**\n * Returns equivalent angle between 0 and 360 (exclusive) corresponding to given angle.\n * @param angle The angle in degrees.\n * @returns Returns the posiive angle for a given angle.\n */\nexport function getPositiveAngle(angle: number): number {\n return (angle + 360) % 360;\n}\n\n/**\n * Returns the polar coordinate of point (x,y) relative to center (cx, cy)\n * @param cx The x coordinate of the center.\n * @param cy The y coordinate of the center.\n * @param x The x coordinate of the point.\n * @param y The y coordinate of the point.\n * @returns The polar coordinate of point (x,y) relative to center (cx, cy)\n */\nexport function convertToPolar(\n cx: number,\n cy: number,\n x: number,\n y: number\n): { radius: number; angle: number } {\n return {\n radius: Math.sqrt((x - cx) ** 2 + (y - cy) ** 2),\n angle: (Math.atan2(cy - y, x - cx) * 180) / Math.PI\n };\n}\n\n/**\n * Transforms the coordinate x, y in a unit square to the coordinates in given half sector. For eg, (0.5, 0.5) in full\n * unit square will be (0.5, 1) in top half and (0.5, 0) for bottom half.\n * @param x The x coordinate of the point.\n * @param y The y coordinate of the point.\n * @param sector The Sector to trasform\n * @returns The coordinate of point relative to center of the sector.\n */\nfunction transformCoord(x: number, y: number, sector: Sector): { x: number; y: number } {\n switch (sector) {\n case 'top':\n y = 2 * y;\n break;\n case 'bottom':\n y = 2 * y - 1;\n break;\n case 'left':\n x = 2 * x;\n break;\n case 'right':\n x = 2 * x - 1;\n break;\n }\n return { x, y };\n}\n\n/**\n * For a given angle and section, returns the relative coordinate of the point where the radius for\n * the angle intersects the bounding box.\n * @param angle The angle in degrees\n * @param section The section in which the meter circle lies.\n * @returns The relative coordinate of point of intersection of radius and bounding box.\n */\nfunction getPolygonCoord(angle: number, section: Sector): { x: number; y: number } {\n angle = getPositiveAngle(angle);\n let x, y;\n if (angle < 45) {\n y = 0.5 - 0.5 * Math.tan(toRad(angle));\n x = 1;\n } else if (angle < 135) {\n if (angle < 90) {\n x = 0.5 + 0.5 * Math.tan(toRad(90 - angle));\n } else {\n x = 0.5 - 0.5 * Math.tan(toRad(angle - 90));\n }\n y = 0;\n } else if (angle < 225) {\n if (angle < 180) {\n y = 0.5 - 0.5 * Math.tan(toRad(180 - angle));\n } else {\n y = 0.5 + 0.5 * Math.tan(toRad(angle - 180));\n }\n x = 0;\n } else if (angle < 315) {\n if (angle < 270) {\n x = 0.5 - 0.5 * Math.tan(toRad(270 - angle));\n } else {\n x = 0.5 + 0.5 * Math.tan(toRad(angle - 270));\n }\n y = 1;\n } else {\n x = 1;\n y = 0.5 + 0.5 * Math.tan(toRad(360 - angle));\n }\n\n return transformCoord(x, y, section);\n}\n\n/**\n * Returns the relative coordinate of the center of the half/full circle in which the meter circle lies.\n * @param sector The section in which the meter circle lies.\n * @returns The relative coordinate of the center.\n */\nexport function getCenterCoord(sector: Sector): { x: number; y: number } {\n return transformCoord(0.5, 0.5, sector);\n}\n\n/**\n * Returns whether the angle lies on top half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on top half of the circle.\n */\nfunction OnTopHalf(angle: number): boolean {\n return angle <= 180;\n}\n\n/**\n * Returns whether the angle lies on right half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on right half of the circle.\n */\nfunction OnRightHalf(angle: number): boolean {\n return angle <= 90 || angle >= 270;\n}\n\n/**\n * Returns whether the angle lies on left half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on left half of the circle.\n */\nfunction OnLeftHalf(angle: number): boolean {\n return angle >= 90 && angle <= 270;\n}\n\n/**\n * Returns whether the angle lies on bottom half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on bottom half of the circle.\n */\nfunction OnBottomHalf(angle: number): boolean {\n return angle >= 180 || angle === 0;\n}\n\n/**\n * Returns the Sector the meter circle lies on.\n * @param startAngle The start angle.\n * @param angleExtent The angle extent.\n * @param isRtl If the reading mode is rtl\n * @returns Which half the meter circle lies on.\n */\nexport function getCircleSection(startAngle: number, angleExtent: number, isRtl: boolean): Sector {\n if (angleExtent > 180) {\n return 'full';\n }\n\n const meanAngle = getPositiveAngle(startAngle + (isRtl ? 0.5 : -0.5) * angleExtent);\n const endAngle = getPositiveAngle(startAngle + (isRtl ? 1 : -1) * angleExtent);\n\n if (OnTopHalf(startAngle) && OnTopHalf(meanAngle) && OnTopHalf(endAngle)) {\n return 'top';\n } else if (OnRightHalf(startAngle) && OnRightHalf(meanAngle) && OnRightHalf(endAngle)) {\n return 'right';\n } else if (OnLeftHalf(startAngle) && OnLeftHalf(meanAngle) && OnLeftHalf(endAngle)) {\n return 'left';\n } else if (OnBottomHalf(startAngle) && OnBottomHalf(meanAngle) && OnBottomHalf(endAngle)) {\n return 'bottom';\n }\n return 'full';\n}\n\n/**\n * Returns the clip polygon for given startAngle and angleExtent.\n * @param startAngle The start angle of arc in degrees.\n * @param angleExtent The angle extent of arc in degrees.\n * @param isRtl The reading mode of the document.\n * @param section The Sector circular meter lies on.\n * @returns The clippath for given startAngle and angleExtent\n */\nexport function getClipPath(\n startAngle: number,\n angleExtent: number,\n isRtl: boolean,\n section: Sector\n): string {\n let start = isRtl ? startAngle + angleExtent : startAngle;\n const firstVertexCoords = getPolygonCoord(start, section);\n let clipPath = `${firstVertexCoords.x * 100}% ${firstVertexCoords.y * 100}%`;\n let nextVertex, nextVertexCoords;\n do {\n nextVertex = Math.max(start - angleExtent, 45 * (Math.ceil(start / 45) - 1));\n nextVertexCoords = getPolygonCoord(nextVertex, section);\n clipPath += `, ${nextVertexCoords.x * 100}% ${nextVertexCoords.y * 100}%`;\n angleExtent = angleExtent - (start - nextVertex);\n start = nextVertex;\n } while (nextVertex > start - angleExtent);\n\n const centerVertex = getCenterCoord(section);\n // close the polygon with a vertex in center to get the radial clipping\n return `polygon(${clipPath}, ${centerVertex.x * 100}% ${centerVertex.y * 100}%)`;\n}\n"],"names":["findThreshold","value","thresholds","max","minValue","i","length","getTrackColor","thresholdDisplay","currentThreshold","trackColor","color","getIndicatorColor","indicatorColor","toRad","angle","Math","PI","getPositiveAngle","transformCoord","x","y","sector","getPolygonCoord","section","tan","getCenterCoord","OnTopHalf","OnRightHalf","OnLeftHalf","OnBottomHalf","cx","cy","radius","sqrt","atan2","startAngle","angleExtent","isRtl","meanAngle","endAngle","start","firstVertexCoords","nextVertex","nextVertexCoords","clipPath","ceil","centerVertex","min","valueText","accessibleLabel","ariaLabelledby","step","RangeError"],"mappings":"4CAuCA,SAASA,EAAcC,EAAeC,GACpC,IAAKA,EACH,OAEF,GAAID,GAASC,EAAW,GAAGC,IACzB,OAAOD,EAAW,GAEpB,IAAIE,EAAWF,EAAW,GAAGC,IAC7B,IAAK,IAAIE,EAAI,EAAGA,EAAIH,EAAWI,OAAQD,IAAK,CAC1C,GAAID,EAAWH,GAASA,GAASC,EAAWG,GAAGF,IAC7C,OAAOD,EAAWG,GAEpBD,EAAWF,EAAWG,GAAGF,KAY7B,SAASI,EACPC,EACAC,EACAC,GAEA,MAAyB,UAArBF,IAAgCC,MAAAA,OAAgB,EAAhBA,EAAkBE,OAC7CF,MAAAA,SAAAA,EAAkBE,MAEpBD,EAUT,SAASE,EACPJ,EACAC,EACAI,GAEA,OAAIJ,MAAAA,OAAA,EAAAA,EAAkBE,QAA8B,cAArBH,EACtBC,EAAiBE,MAEnBE,EC1ET,SAASC,EAAMC,GACb,OAAQA,EAAQC,KAAKC,GAAM,IAQvB,SAAUC,EAAiBH,GAC/B,OAAQA,EAAQ,KAAO,IA+BzB,SAASI,EAAeC,EAAWC,EAAWC,GAC5C,OAAQA,GACN,IAAK,MACHD,GAAI,EACJ,MACF,IAAK,SACHA,EAAI,EAAIA,EAAI,EACZ,MACF,IAAK,OACHD,GAAI,EACJ,MACF,IAAK,QACHA,EAAI,EAAIA,EAAI,EAGhB,MAAO,CAAEA,EAAAA,EAAGC,EAAAA,GAUd,SAASE,EAAgB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BC,EAAkBI,qBAhGpE,SAAwBmC,EAAa7C,EAAaF,EAAemD,GACrE,GAAIJ,EAAM7C,EACR,MAAM,IAAIkD,WAAW,0CAGvB,GAAIpD,EAAQ+C,GAAO/C,EAAQE,EACzB,MAAM,IAAIkD,WAAW,0CAGvB,GAAID,EAAOjD,EAAM6C,EACf,MAAM,IAAIK,WAAW"}
|
|
1
|
+
{"version":3,"file":"PRIVATE_meterUtils.js","sources":["../../../src/utils/PRIVATE_meterUtils/meterUtils.ts","../../../src/utils/PRIVATE_meterUtils/circleUtils.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 { Threshold, ThresholdDisplay } from '../UNSAFE_meterTypes';\n\n/**\n * Validates the min, max, value and step passed to the meter are in appropriate range.\n * @throws { RangeError }\n * @param min The minimum value of the meter.\n * @param max The maximum value of the meter.\n * @param value The metric value of the meter.\n * @param step The step value of the meter.\n */\nexport function validateRange(min: number, max: number, value: number, step: number): void {\n if (min > max) {\n throw new RangeError('The min must be lower or equal to max.');\n }\n\n if (value < min || value > max) {\n throw new RangeError('The value must be between min and max.');\n }\n\n if (step > max - min) {\n throw new RangeError('The step value must be less than the difference of max and min');\n }\n}\n\n/**\n * Returns the threshold that the current value belongs to. Returns undefined if the current value does not belong to\n * any threshold or if thresholds is undefined.\n * @param value The value in meter.\n * @param thresholds The list of thresholds.\n * @returns The Threshold that current value belongs to.\n */\nfunction findThreshold(value: number, thresholds?: Threshold[]): Threshold | undefined {\n if (!thresholds) {\n return;\n }\n if (value <= thresholds[0].max) {\n return thresholds[0];\n }\n let minValue = thresholds[0].max;\n for (let i = 1; i < thresholds.length; i++) {\n if (minValue < value && value <= thresholds[i].max) {\n return thresholds[i];\n }\n minValue = thresholds[i].max;\n }\n return;\n}\n\n/**\n * Returns the color of track for the meter.\n * @param trackColor The color provided via trackColor prop of the meter.\n * @param thresholdDisplay Specifies whether current threshold to display in track, indicator or all thresholds in track.\n * @param currentThreshold Current threshold for the meter value.\n * @returns The color of the track for the meter.\n */\nfunction getTrackColor(\n thresholdDisplay: ThresholdDisplay,\n currentThreshold: Threshold | undefined,\n trackColor?: string\n): string | undefined {\n if (thresholdDisplay === 'track' && currentThreshold?.color) {\n return currentThreshold?.color;\n }\n return trackColor;\n}\n\n/**\n * Returns the color of indicator for the meter.\n * @param indicatorColor The color provided via indicatorColor prop of the meter.\n * @param thresholdDisplay Specifies whether current threshold to display in track, indicator or all thresholds in track.\n * @param currentThreshold Current threshold for the meter value.\n * @returns The color of the indicator of the meter.\n */\nfunction getIndicatorColor(\n thresholdDisplay: ThresholdDisplay,\n currentThreshold: Threshold | undefined,\n indicatorColor?: string\n): string | undefined {\n if (currentThreshold?.color && thresholdDisplay === 'indicator') {\n return currentThreshold.color;\n }\n return indicatorColor;\n}\n\n/**\n * Returns the color of track and indicator of the meter.\n * @param value The value of the meter.\n * @param trackColor The color provided via trackColor prop.\n * @param indicatorColor The color provided via indicatorColor prop.\n * @param thresholdDisplay Specifies whether current threshold to display in track, indicator or all thresholds in track.\n * @param thresholds The thresholds for metric value of the meter.\n * @returns The color of the indicator and track of the meter.\n */\nexport function getTrackAndIndicatorColor(\n value: number,\n thresholdDisplay: ThresholdDisplay,\n trackColor?: string,\n indicatorColor?: string,\n thresholds?: Threshold[]\n): {\n trackColor?: string;\n indicatorColor?: string;\n} {\n const currentThreshold = findThreshold(value, thresholds);\n return {\n trackColor: getTrackColor(thresholdDisplay, currentThreshold, trackColor),\n indicatorColor: getIndicatorColor(thresholdDisplay, currentThreshold, indicatorColor)\n };\n}\n\n/**\n * Returns the aria properties of the meter bar.\n * @param value The value of the meter bar.\n * @param min The minimum value of the meter bar.\n * @param max The maximum value of the meter bar.\n * @param valueText The default aria value text for the meter bar.\n * @param accessibleLabel The aria label of the meter bar.\n * @param ariaLabelledby The ariaLabelledBy of the meter bar.\n * @param thresholds The thresholds values for the meter bar.\n * @returns The aria properties of the meter\n */\nexport function getMeterAriaProps(\n value: number,\n min: number,\n max: number,\n valueText?: string,\n accessibleLabel?: string,\n ariaLabelledby?: string,\n thresholds?: Threshold[]\n): {\n 'aria-label'?: string;\n 'aria-valuenow': string;\n 'aria-valuemin': string;\n 'aria-valuetext': string;\n 'aria-valuemax': string;\n 'aria-labelledby'?: string;\n} {\n const currentThreshold = findThreshold(value, thresholds);\n const ariaValueText = `${valueText} ${currentThreshold?.accessibleLabel || ''}`;\n return {\n 'aria-label': accessibleLabel,\n 'aria-valuenow': `${value}`,\n 'aria-valuemin': `${min}`,\n 'aria-valuetext': ariaValueText,\n 'aria-valuemax': `${max}`,\n 'aria-labelledby': ariaLabelledby\n };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nexport type Sector = 'top' | 'bottom' | 'left' | 'right' | 'full';\n\n/**\n * Returns the angle in radians\n * @param angle The angle in degrees.\n * @returns The angle in radians.\n */\nfunction toRad(angle: number): number {\n return (angle * Math.PI) / 180;\n}\n\n/**\n * Returns equivalent angle between 0 and 360 (exclusive) corresponding to given angle.\n * @param angle The angle in degrees.\n * @returns Returns the posiive angle for a given angle.\n */\nexport function getPositiveAngle(angle: number): number {\n return (angle + 360) % 360;\n}\n\n/**\n * Returns the polar coordinate of point (x,y) relative to center (cx, cy)\n * @param cx The x coordinate of the center.\n * @param cy The y coordinate of the center.\n * @param x The x coordinate of the point.\n * @param y The y coordinate of the point.\n * @returns The polar coordinate of point (x,y) relative to center (cx, cy)\n */\nexport function convertToPolar(\n cx: number,\n cy: number,\n x: number,\n y: number\n): { radius: number; angle: number } {\n return {\n radius: Math.sqrt((x - cx) ** 2 + (y - cy) ** 2),\n angle: (Math.atan2(cy - y, x - cx) * 180) / Math.PI\n };\n}\n\n/**\n * Transforms the coordinate x, y in a unit square to the coordinates in given half sector. For eg, (0.5, 0.5) in full\n * unit square will be (0.5, 1) in top half and (0.5, 0) for bottom half.\n * @param x The x coordinate of the point.\n * @param y The y coordinate of the point.\n * @param sector The Sector to trasform\n * @returns The coordinate of point relative to center of the sector.\n */\nfunction transformCoord(x: number, y: number, sector: Sector): { x: number; y: number } {\n switch (sector) {\n case 'top':\n y = 2 * y;\n break;\n case 'bottom':\n y = 2 * y - 1;\n break;\n case 'left':\n x = 2 * x;\n break;\n case 'right':\n x = 2 * x - 1;\n break;\n }\n return { x, y };\n}\n\n/**\n * For a given angle and section, returns the relative coordinate of the point where the radius for\n * the angle intersects the bounding box.\n * @param angle The angle in degrees\n * @param section The section in which the meter circle lies.\n * @returns The relative coordinate of point of intersection of radius and bounding box.\n */\nfunction getPolygonCoord(angle: number, section: Sector): { x: number; y: number } {\n angle = getPositiveAngle(angle);\n let x, y;\n if (angle < 45) {\n y = 0.5 - 0.5 * Math.tan(toRad(angle));\n x = 1;\n } else if (angle < 135) {\n if (angle < 90) {\n x = 0.5 + 0.5 * Math.tan(toRad(90 - angle));\n } else {\n x = 0.5 - 0.5 * Math.tan(toRad(angle - 90));\n }\n y = 0;\n } else if (angle < 225) {\n if (angle < 180) {\n y = 0.5 - 0.5 * Math.tan(toRad(180 - angle));\n } else {\n y = 0.5 + 0.5 * Math.tan(toRad(angle - 180));\n }\n x = 0;\n } else if (angle < 315) {\n if (angle < 270) {\n x = 0.5 - 0.5 * Math.tan(toRad(270 - angle));\n } else {\n x = 0.5 + 0.5 * Math.tan(toRad(angle - 270));\n }\n y = 1;\n } else {\n x = 1;\n y = 0.5 + 0.5 * Math.tan(toRad(360 - angle));\n }\n\n return transformCoord(x, y, section);\n}\n\n/**\n * Returns the relative coordinate of the center of the half/full circle in which the meter circle lies.\n * @param sector The section in which the meter circle lies.\n * @returns The relative coordinate of the center.\n */\nexport function getCenterCoord(sector: Sector): { x: number; y: number } {\n return transformCoord(0.5, 0.5, sector);\n}\n\n/**\n * Returns whether the angle lies on top half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on top half of the circle.\n */\nfunction OnTopHalf(angle: number): boolean {\n return angle <= 180;\n}\n\n/**\n * Returns whether the angle lies on right half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on right half of the circle.\n */\nfunction OnRightHalf(angle: number): boolean {\n return angle <= 90 || angle >= 270;\n}\n\n/**\n * Returns whether the angle lies on left half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on left half of the circle.\n */\nfunction OnLeftHalf(angle: number): boolean {\n return angle >= 90 && angle <= 270;\n}\n\n/**\n * Returns whether the angle lies on bottom half of the circle\n * @param angle The angle in degrees\n * @returns Whether the angle lies on bottom half of the circle.\n */\nfunction OnBottomHalf(angle: number): boolean {\n return angle >= 180 || angle === 0;\n}\n\n/**\n * Returns the Sector the meter circle lies on.\n * @param startAngle The start angle.\n * @param angleExtent The angle extent.\n * @param isRtl If the reading mode is rtl\n * @returns Which half the meter circle lies on.\n */\nexport function getCircleSection(startAngle: number, angleExtent: number, isRtl: boolean): Sector {\n if (angleExtent > 180) {\n return 'full';\n }\n\n const meanAngle = getPositiveAngle(startAngle + (isRtl ? 0.5 : -0.5) * angleExtent);\n const endAngle = getPositiveAngle(startAngle + (isRtl ? 1 : -1) * angleExtent);\n\n if (OnTopHalf(startAngle) && OnTopHalf(meanAngle) && OnTopHalf(endAngle)) {\n return 'top';\n } else if (OnRightHalf(startAngle) && OnRightHalf(meanAngle) && OnRightHalf(endAngle)) {\n return 'right';\n } else if (OnLeftHalf(startAngle) && OnLeftHalf(meanAngle) && OnLeftHalf(endAngle)) {\n return 'left';\n } else if (OnBottomHalf(startAngle) && OnBottomHalf(meanAngle) && OnBottomHalf(endAngle)) {\n return 'bottom';\n }\n return 'full';\n}\n\n/**\n * Returns the clip polygon for given startAngle and angleExtent.\n * @param startAngle The start angle of arc in degrees.\n * @param angleExtent The angle extent of arc in degrees.\n * @param isRtl The reading mode of the document.\n * @param section The Sector circular meter lies on.\n * @returns The clippath for given startAngle and angleExtent\n */\nexport function getClipPath(\n startAngle: number,\n angleExtent: number,\n isRtl: boolean,\n section: Sector\n): string {\n let start = isRtl ? startAngle + angleExtent : startAngle;\n const firstVertexCoords = getPolygonCoord(start, section);\n let clipPath = `${firstVertexCoords.x * 100}% ${firstVertexCoords.y * 100}%`;\n let nextVertex, nextVertexCoords;\n do {\n nextVertex = Math.max(start - angleExtent, 45 * (Math.ceil(start / 45) - 1));\n nextVertexCoords = getPolygonCoord(nextVertex, section);\n clipPath += `, ${nextVertexCoords.x * 100}% ${nextVertexCoords.y * 100}%`;\n angleExtent = angleExtent - (start - nextVertex);\n start = nextVertex;\n } while (nextVertex > start - angleExtent);\n\n const centerVertex = getCenterCoord(section);\n // close the polygon with a vertex in center to get the radial clipping\n return `polygon(${clipPath}, ${centerVertex.x * 100}% ${centerVertex.y * 100}%)`;\n}\n"],"names":["findThreshold","value","thresholds","max","minValue","i","length","getTrackColor","thresholdDisplay","currentThreshold","trackColor","color","getIndicatorColor","indicatorColor","toRad","angle","Math","PI","getPositiveAngle","transformCoord","x","y","sector","getPolygonCoord","section","tan","getCenterCoord","OnTopHalf","OnRightHalf","OnLeftHalf","OnBottomHalf","cx","cy","radius","sqrt","atan2","startAngle","angleExtent","isRtl","meanAngle","endAngle","start","firstVertexCoords","nextVertex","nextVertexCoords","clipPath","ceil","centerVertex","min","valueText","accessibleLabel","ariaLabelledby","step","RangeError"],"mappings":"4CAuCA,SAASA,EAAcC,EAAeC,GACpC,IAAKA,EACH,OAEF,GAAID,GAASC,EAAW,GAAGC,IACzB,OAAOD,EAAW,GAEpB,IAAIE,EAAWF,EAAW,GAAGC,IAC7B,IAAK,IAAIE,EAAI,EAAGA,EAAIH,EAAWI,OAAQD,IAAK,CAC1C,GAAID,EAAWH,GAASA,GAASC,EAAWG,GAAGF,IAC7C,OAAOD,EAAWG,GAEpBD,EAAWF,EAAWG,GAAGF,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KAC/DgB,GAA6BI,EAAQE,EACrCF,EAAQE,QACDA,EAAaF,EAAQJ,GAE9B,MAAMU,EAAerB,EAAeF,GAEpC,MAAO,WAAWqB,MAA8B,IAAjBE,EAAa3B,MAA6B,IAAjB2B,EAAa1B,2BDvFvD,SACdpB,EACA+C,EACA7C,EACA8C,EACAC,EACAC,EACAjD,GASA,MAAMO,EAAmBT,EAAcC,EAAOC,GAE9C,MAAO,CACL,aAAcgD,EACd,gBAAiB,GAAGjD,IACpB,gBAAiB,GAAG+C,IACpB,iBALoB,GAAGC,MAAaxC,MAAAA,OAAgB,EAAhBA,EAAkByC,kBAAmB,KAMzE,gBAAiB,GAAG/C,IACpB,kBAAmBgD,qDApDjB,SACJlD,EACAO,EACAE,EACAG,EACAX,GAKA,MAAMO,EAAmBT,EAAcC,EAAOC,GAC9C,MAAO,CACLQ,WAAYH,EAAcC,EAAkBC,EAAkBC,GAC9DG,eAAgBD,EAAkBJ,EAAkBC,EAAkBI,qBAhGpE,SAAwBmC,EAAa7C,EAAaF,EAAemD,GACrE,GAAIJ,EAAM7C,EACR,MAAM,IAAIkD,WAAW,0CAGvB,GAAIpD,EAAQ+C,GAAO/C,EAAQE,EACzB,MAAM,IAAIkD,WAAW,0CAGvB,GAAID,EAAOjD,EAAM6C,EACf,MAAM,IAAIK,WAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["exports","../_curry1-
|
|
1
|
+
define(["exports","../_curry1-9cbf463f","../_curry2-37583590","../_curry3-2cf14b96"],function(r,t,n,e){"use strict";var u=function(r){return"[object String]"===Object.prototype.toString.call(r)},o=n._curry2_1,a=u,c=o(function(r,t){var n=r<0?t.length+r:r;return a(t)?t.charAt(n):t[n]}),i=c(0),l=c(-1);var s=function(r,t){switch(r){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,e){return t.apply(this,arguments)};case 4:return function(r,n,e,u){return t.apply(this,arguments)};case 5:return function(r,n,e,u,o){return t.apply(this,arguments)};case 6:return function(r,n,e,u,o,a){return t.apply(this,arguments)};case 7:return function(r,n,e,u,o,a,c){return t.apply(this,arguments)};case 8:return function(r,n,e,u,o,a,c,i){return t.apply(this,arguments)};case 9:return function(r,n,e,u,o,a,c,i,l){return t.apply(this,arguments)};case 10:return function(r,n,e,u,o,a,c,i,l,s){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}};var f=function(r,t){return function(){return t.call(this,r.apply(this,arguments))}},p=Array.isArray||function(r){return null!=r&&r.length>=0&&"[object Array]"===Object.prototype.toString.call(r)},y=t._curry1_1,d=p,h=u,b=y(function(r){return!!d(r)||!!r&&("object"==typeof r&&(!h(r)&&(1===r.nodeType?!!r.length:0===r.length||r.length>0&&(r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1)))))}),v=function(){function r(r){this.f=r}return r.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},r.prototype["@@transducer/result"]=function(r){return r},r.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},r}();var g=function(r){return new v(r)},_=s,m=(0,n._curry2_1)(function(r,t){return _(r.length,function(){return r.apply(t,arguments)})}),w=b,x=g,A=m;function E(r,t,n){for(var e=n.next();!e.done;){if((t=r["@@transducer/step"](t,e.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=n.next()}return r["@@transducer/result"](t)}function O(r,t,n,e){return r["@@transducer/result"](n[e](A(r["@@transducer/step"],r),t))}var S="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";var j=function(r,t,n){if("function"==typeof r&&(r=x(r)),w(n))return function(r,t,n){for(var e=0,u=n.length;e<u;){if((t=r["@@transducer/step"](t,n[e]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return r["@@transducer/result"](t)}(r,t,n);if("function"==typeof n["fantasy-land/reduce"])return O(r,t,n,"fantasy-land/reduce");if(null!=n[S])return E(r,t,n[S]());if("function"==typeof n.next)return E(r,t,n);if("function"==typeof n.reduce)return O(r,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")},I=(0,e._curry3_1)(j),P=p;var T=function(r,t){return function(){var n=arguments.length;if(0===n)return t();var e=arguments[n-1];return P(e)||"function"!=typeof e[r]?t.apply(this,arguments):e[r].apply(e,Array.prototype.slice.call(arguments,0,n-1))}},k=T,q=(0,e._curry3_1)(k("slice",function(r,t,n){return Array.prototype.slice.call(n,r,t)})),W=T,D=t._curry1_1,F=s,M=f,X=I,z=D(W("tail",q(1,1/0)));var B=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return F(arguments[0].length,X(M,arguments[0],z(arguments)))},C=(0,n._curry2_1)(function(r,t){return Array.prototype.slice.call(t,0).sort(r)});const G=["a:not([name]):not([disabled])","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])","[tabIndex]:not([tabIndex='-1']"].join(", "),H=(r,t)=>{var n,e;return(null!==(n=r.tabIndex)&&void 0!==n?n:0)-(null!==(e=t.tabIndex)&&void 0!==e?e:0)},J=r=>{const t=(n=r,Array.from(n.querySelectorAll(G)).filter(r=>null!==r.offsetParent&&-1!==r.tabIndex));var n;return t.length?t:[r]},K=B(J,C(H),i),L=r=>{r.focus({preventScroll:!0})},N=B(J,C(H),i,L),Q=B(J,C(H),l,L);r.focusOn=L,r.focusOnEnd=Q,r.focusOnStart=N,r.focusWithin=r=>{const t=K(r);L(t)},r.getActiveElement=r=>{var t;return(null!==(t=null==r?void 0:r.ownerDocument)&&void 0!==t?t:document).activeElement},r.isTabbableElement=r=>r.matches(G),Object.defineProperty(r,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=PRIVATE_tabbableUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PRIVATE_tabbableUtils.js","sources":["../../../../node_modules/ramda/src/internal/_isString.js","../../../../node_modules/ramda/src/nth.js","../../../../node_modules/ramda/src/head.js","../../../../node_modules/ramda/src/last.js","../../../../node_modules/ramda/src/internal/_arity.js","../../../../node_modules/ramda/src/internal/_pipe.js","../../../../node_modules/ramda/src/internal/_isArray.js","../../../../node_modules/ramda/src/internal/_isArrayLike.js","../../../../node_modules/ramda/src/internal/_xwrap.js","../../../../node_modules/ramda/src/bind.js","../../../../node_modules/ramda/src/internal/_reduce.js","../../../../node_modules/ramda/src/reduce.js","../../../../node_modules/ramda/src/internal/_checkForMethod.js","../../../../node_modules/ramda/src/slice.js","../../../../node_modules/ramda/src/tail.js","../../../../node_modules/ramda/src/pipe.js","../../../../node_modules/ramda/src/sort.js","../../../src/utils/PRIVATE_tabbableUtils/tabbableUtils.ts"],"sourcesContent":["function _isString(x) {\n return Object.prototype.toString.call(x) === '[object String]';\n}\n\nmodule.exports = _isString;","var _curry2 =\n/*#__PURE__*/\nrequire(\"./internal/_curry2\");\n\nvar _isString =\n/*#__PURE__*/\nrequire(\"./internal/_isString\");\n/**\n * Returns the nth element of the given list or string. If n is negative the\n * element at index length + n is returned.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig Number -> [a] -> a | Undefined\n * @sig Number -> String -> String\n * @param {Number} offset\n * @param {*} list\n * @return {*}\n * @example\n *\n * const list = ['foo', 'bar', 'baz', 'quux'];\n * R.nth(1, list); //=> 'bar'\n * R.nth(-1, list); //=> 'quux'\n * R.nth(-99, list); //=> undefined\n *\n * R.nth(2, 'abc'); //=> 'c'\n * R.nth(3, 'abc'); //=> ''\n * @symb R.nth(-1, [a, b, c]) = c\n * @symb R.nth(0, [a, b, c]) = a\n * @symb R.nth(1, [a, b, c]) = b\n */\n\n\nvar nth =\n/*#__PURE__*/\n_curry2(function nth(offset, list) {\n var idx = offset < 0 ? list.length + offset : offset;\n return _isString(list) ? list.charAt(idx) : list[idx];\n});\n\nmodule.exports = nth;","var nth =\n/*#__PURE__*/\nrequire(\"./nth\");\n/**\n * Returns the first element of the given list or string. In some libraries\n * this function is named `first`.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig [a] -> a | Undefined\n * @sig String -> String\n * @param {Array|String} list\n * @return {*}\n * @see R.tail, R.init, R.last\n * @example\n *\n * R.head(['fi', 'fo', 'fum']); //=> 'fi'\n * R.head([]); //=> undefined\n *\n * R.head('abc'); //=> 'a'\n * R.head(''); //=> ''\n */\n\n\nvar head =\n/*#__PURE__*/\nnth(0);\nmodule.exports = head;","var nth =\n/*#__PURE__*/\nrequire(\"./nth\");\n/**\n * Returns the last element of the given list or string.\n *\n * @func\n * @memberOf R\n * @since v0.1.4\n * @category List\n * @sig [a] -> a | Undefined\n * @sig String -> String\n * @param {*} list\n * @return {*}\n * @see R.init, R.head, R.tail\n * @example\n *\n * R.last(['fi', 'fo', 'fum']); //=> 'fum'\n * R.last([]); //=> undefined\n *\n * R.last('abc'); //=> 'c'\n * R.last(''); //=> ''\n */\n\n\nvar last =\n/*#__PURE__*/\nnth(-1);\nmodule.exports = last;","function _arity(n, fn) {\n /* eslint-disable no-unused-vars */\n switch (n) {\n case 0:\n return function () {\n return fn.apply(this, arguments);\n };\n\n case 1:\n return function (a0) {\n return fn.apply(this, arguments);\n };\n\n case 2:\n return function (a0, a1) {\n return fn.apply(this, arguments);\n };\n\n case 3:\n return function (a0, a1, a2) {\n return fn.apply(this, arguments);\n };\n\n case 4:\n return function (a0, a1, a2, a3) {\n return fn.apply(this, arguments);\n };\n\n case 5:\n return function (a0, a1, a2, a3, a4) {\n return fn.apply(this, arguments);\n };\n\n case 6:\n return function (a0, a1, a2, a3, a4, a5) {\n return fn.apply(this, arguments);\n };\n\n case 7:\n return function (a0, a1, a2, a3, a4, a5, a6) {\n return fn.apply(this, arguments);\n };\n\n case 8:\n return function (a0, a1, a2, a3, a4, a5, a6, a7) {\n return fn.apply(this, arguments);\n };\n\n case 9:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {\n return fn.apply(this, arguments);\n };\n\n case 10:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return fn.apply(this, arguments);\n };\n\n default:\n throw new Error('First argument to _arity must be a non-negative integer no greater than ten');\n }\n}\n\nmodule.exports = _arity;","function _pipe(f, g) {\n return function () {\n return g.call(this, f.apply(this, arguments));\n };\n}\n\nmodule.exports = _pipe;","/**\n * Tests whether or not an object is an array.\n *\n * @private\n * @param {*} val The object to test.\n * @return {Boolean} `true` if `val` is an array, `false` otherwise.\n * @example\n *\n * _isArray([]); //=> true\n * _isArray(null); //=> false\n * _isArray({}); //=> false\n */\nmodule.exports = Array.isArray || function _isArray(val) {\n return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';\n};","var _curry1 =\n/*#__PURE__*/\nrequire(\"./_curry1\");\n\nvar _isArray =\n/*#__PURE__*/\nrequire(\"./_isArray\");\n\nvar _isString =\n/*#__PURE__*/\nrequire(\"./_isString\");\n/**\n * Tests whether or not an object is similar to an array.\n *\n * @private\n * @category Type\n * @category List\n * @sig * -> Boolean\n * @param {*} x The object to test.\n * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.\n * @example\n *\n * _isArrayLike([]); //=> true\n * _isArrayLike(true); //=> false\n * _isArrayLike({}); //=> false\n * _isArrayLike({length: 10}); //=> false\n * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true\n */\n\n\nvar _isArrayLike =\n/*#__PURE__*/\n_curry1(function isArrayLike(x) {\n if (_isArray(x)) {\n return true;\n }\n\n if (!x) {\n return false;\n }\n\n if (typeof x !== 'object') {\n return false;\n }\n\n if (_isString(x)) {\n return false;\n }\n\n if (x.nodeType === 1) {\n return !!x.length;\n }\n\n if (x.length === 0) {\n return true;\n }\n\n if (x.length > 0) {\n return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);\n }\n\n return false;\n});\n\nmodule.exports = _isArrayLike;","var XWrap =\n/*#__PURE__*/\nfunction () {\n function XWrap(fn) {\n this.f = fn;\n }\n\n XWrap.prototype['@@transducer/init'] = function () {\n throw new Error('init not implemented on XWrap');\n };\n\n XWrap.prototype['@@transducer/result'] = function (acc) {\n return acc;\n };\n\n XWrap.prototype['@@transducer/step'] = function (acc, x) {\n return this.f(acc, x);\n };\n\n return XWrap;\n}();\n\nfunction _xwrap(fn) {\n return new XWrap(fn);\n}\n\nmodule.exports = _xwrap;","var _arity =\n/*#__PURE__*/\nrequire(\"./internal/_arity\");\n\nvar _curry2 =\n/*#__PURE__*/\nrequire(\"./internal/_curry2\");\n/**\n * Creates a function that is bound to a context.\n * Note: `R.bind` does not provide the additional argument-binding capabilities of\n * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\n *\n * @func\n * @memberOf R\n * @since v0.6.0\n * @category Function\n * @category Object\n * @sig (* -> *) -> {*} -> (* -> *)\n * @param {Function} fn The function to bind to context\n * @param {Object} thisObj The context to bind `fn` to\n * @return {Function} A function that will execute in the context of `thisObj`.\n * @see R.partial\n * @example\n *\n * const log = R.bind(console.log, console);\n * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}\n * // logs {a: 2}\n * @symb R.bind(f, o)(a, b) = f.call(o, a, b)\n */\n\n\nvar bind =\n/*#__PURE__*/\n_curry2(function bind(fn, thisObj) {\n return _arity(fn.length, function () {\n return fn.apply(thisObj, arguments);\n });\n});\n\nmodule.exports = bind;","var _isArrayLike =\n/*#__PURE__*/\nrequire(\"./_isArrayLike\");\n\nvar _xwrap =\n/*#__PURE__*/\nrequire(\"./_xwrap\");\n\nvar bind =\n/*#__PURE__*/\nrequire(\"../bind\");\n\nfunction _arrayReduce(xf, acc, list) {\n var idx = 0;\n var len = list.length;\n\n while (idx < len) {\n acc = xf['@@transducer/step'](acc, list[idx]);\n\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n\n idx += 1;\n }\n\n return xf['@@transducer/result'](acc);\n}\n\nfunction _iterableReduce(xf, acc, iter) {\n var step = iter.next();\n\n while (!step.done) {\n acc = xf['@@transducer/step'](acc, step.value);\n\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n\n step = iter.next();\n }\n\n return xf['@@transducer/result'](acc);\n}\n\nfunction _methodReduce(xf, acc, obj, methodName) {\n return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));\n}\n\nvar symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';\n\nfunction _reduce(fn, acc, list) {\n if (typeof fn === 'function') {\n fn = _xwrap(fn);\n }\n\n if (_isArrayLike(list)) {\n return _arrayReduce(fn, acc, list);\n }\n\n if (typeof list['fantasy-land/reduce'] === 'function') {\n return _methodReduce(fn, acc, list, 'fantasy-land/reduce');\n }\n\n if (list[symIterator] != null) {\n return _iterableReduce(fn, acc, list[symIterator]());\n }\n\n if (typeof list.next === 'function') {\n return _iterableReduce(fn, acc, list);\n }\n\n if (typeof list.reduce === 'function') {\n return _methodReduce(fn, acc, list, 'reduce');\n }\n\n throw new TypeError('reduce: list must be array or iterable');\n}\n\nmodule.exports = _reduce;","var _curry3 =\n/*#__PURE__*/\nrequire(\"./internal/_curry3\");\n\nvar _reduce =\n/*#__PURE__*/\nrequire(\"./internal/_reduce\");\n/**\n * Returns a single item by iterating through the list, successively calling\n * the iterator function and passing it an accumulator value and the current\n * value from the array, and then passing the result to the next call.\n *\n * The iterator function receives two values: *(acc, value)*. It may use\n * [`R.reduced`](#reduced) to shortcut the iteration.\n *\n * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function\n * is *(value, acc)*.\n *\n * Note: `R.reduce` does not skip deleted or unassigned indices (sparse\n * arrays), unlike the native `Array.prototype.reduce` method. For more details\n * on this behavior, see:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description\n *\n * Dispatches to the `reduce` method of the third argument, if present. When\n * doing so, it is up to the user to handle the [`R.reduced`](#reduced)\n * shortcuting, as this is not implemented by `reduce`.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig ((a, b) -> a) -> a -> [b] -> a\n * @param {Function} fn The iterator function. Receives two values, the accumulator and the\n * current element from the array.\n * @param {*} acc The accumulator value.\n * @param {Array} list The list to iterate over.\n * @return {*} The final, accumulated value.\n * @see R.reduced, R.addIndex, R.reduceRight\n * @example\n *\n * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10\n * // - -10\n * // / \\ / \\\n * // - 4 -6 4\n * // / \\ / \\\n * // - 3 ==> -3 3\n * // / \\ / \\\n * // - 2 -1 2\n * // / \\ / \\\n * // 0 1 0 1\n *\n * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)\n */\n\n\nvar reduce =\n/*#__PURE__*/\n_curry3(_reduce);\n\nmodule.exports = reduce;","var _isArray =\n/*#__PURE__*/\nrequire(\"./_isArray\");\n/**\n * This checks whether a function has a [methodname] function. If it isn't an\n * array it will execute that function otherwise it will default to the ramda\n * implementation.\n *\n * @private\n * @param {Function} fn ramda implemtation\n * @param {String} methodname property to check for a custom implementation\n * @return {Object} Whatever the return value of the method is.\n */\n\n\nfunction _checkForMethod(methodname, fn) {\n return function () {\n var length = arguments.length;\n\n if (length === 0) {\n return fn();\n }\n\n var obj = arguments[length - 1];\n return _isArray(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));\n };\n}\n\nmodule.exports = _checkForMethod;","var _checkForMethod =\n/*#__PURE__*/\nrequire(\"./internal/_checkForMethod\");\n\nvar _curry3 =\n/*#__PURE__*/\nrequire(\"./internal/_curry3\");\n/**\n * Returns the elements of the given list or string (or object with a `slice`\n * method) from `fromIndex` (inclusive) to `toIndex` (exclusive).\n *\n * Dispatches to the `slice` method of the third argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.4\n * @category List\n * @sig Number -> Number -> [a] -> [a]\n * @sig Number -> Number -> String -> String\n * @param {Number} fromIndex The start index (inclusive).\n * @param {Number} toIndex The end index (exclusive).\n * @param {*} list\n * @return {*}\n * @example\n *\n * R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']\n * R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']\n * R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']\n * R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']\n * R.slice(0, 3, 'ramda'); //=> 'ram'\n */\n\n\nvar slice =\n/*#__PURE__*/\n_curry3(\n/*#__PURE__*/\n_checkForMethod('slice', function slice(fromIndex, toIndex, list) {\n return Array.prototype.slice.call(list, fromIndex, toIndex);\n}));\n\nmodule.exports = slice;","var _checkForMethod =\n/*#__PURE__*/\nrequire(\"./internal/_checkForMethod\");\n\nvar _curry1 =\n/*#__PURE__*/\nrequire(\"./internal/_curry1\");\n\nvar slice =\n/*#__PURE__*/\nrequire(\"./slice\");\n/**\n * Returns all but the first element of the given list or string (or object\n * with a `tail` method).\n *\n * Dispatches to the `slice` method of the first argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig [a] -> [a]\n * @sig String -> String\n * @param {*} list\n * @return {*}\n * @see R.head, R.init, R.last\n * @example\n *\n * R.tail([1, 2, 3]); //=> [2, 3]\n * R.tail([1, 2]); //=> [2]\n * R.tail([1]); //=> []\n * R.tail([]); //=> []\n *\n * R.tail('abc'); //=> 'bc'\n * R.tail('ab'); //=> 'b'\n * R.tail('a'); //=> ''\n * R.tail(''); //=> ''\n */\n\n\nvar tail =\n/*#__PURE__*/\n_curry1(\n/*#__PURE__*/\n_checkForMethod('tail',\n/*#__PURE__*/\nslice(1, Infinity)));\n\nmodule.exports = tail;","var _arity =\n/*#__PURE__*/\nrequire(\"./internal/_arity\");\n\nvar _pipe =\n/*#__PURE__*/\nrequire(\"./internal/_pipe\");\n\nvar reduce =\n/*#__PURE__*/\nrequire(\"./reduce\");\n\nvar tail =\n/*#__PURE__*/\nrequire(\"./tail\");\n/**\n * Performs left-to-right function composition. The first argument may have\n * any arity; the remaining arguments must be unary.\n *\n * In some libraries this function is named `sequence`.\n *\n * **Note:** The result of pipe is not automatically curried.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Function\n * @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)\n * @param {...Function} functions\n * @return {Function}\n * @see R.compose\n * @example\n *\n * const f = R.pipe(Math.pow, R.negate, R.inc);\n *\n * f(3, 4); // -(3^4) + 1\n * @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))\n */\n\n\nfunction pipe() {\n if (arguments.length === 0) {\n throw new Error('pipe requires at least one argument');\n }\n\n return _arity(arguments[0].length, reduce(_pipe, arguments[0], tail(arguments)));\n}\n\nmodule.exports = pipe;","var _curry2 =\n/*#__PURE__*/\nrequire(\"./internal/_curry2\");\n/**\n * Returns a copy of the list, sorted according to the comparator function,\n * which should accept two values at a time and return a negative number if the\n * first value is smaller, a positive number if it's larger, and zero if they\n * are equal. Please note that this is a **copy** of the list. It does not\n * modify the original.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig ((a, a) -> Number) -> [a] -> [a]\n * @param {Function} comparator A sorting function :: a -> b -> Int\n * @param {Array} list The list to sort\n * @return {Array} a new array with its elements sorted by the comparator function.\n * @example\n *\n * const diff = function(a, b) { return a - b; };\n * R.sort(diff, [4,2,7,5]); //=> [2, 4, 5, 7]\n */\n\n\nvar sort =\n/*#__PURE__*/\n_curry2(function sort(comparator, list) {\n return Array.prototype.slice.call(list, 0).sort(comparator);\n});\n\nmodule.exports = sort;","/**\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\n/**\n * Tabbable Mode helpers\n */\nimport head from 'ramda/src/head';\nimport last from 'ramda/src/last';\nimport pipe from 'ramda/src/pipe';\nimport sort from 'ramda/src/sort';\n// Query selector to return all tabbable elements\nconst tabbableQuery = [\n 'a:not([name]):not([disabled])',\n 'button:not([disabled])',\n 'textarea:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n \"[tabIndex]:not([tabIndex='-1']\"\n].join(', ');\n\n// uses tabbableQuery selector to determine if an element is tabbable\nconst isTabbableElement = (element: HTMLElement) => element.matches(tabbableQuery);\n\n// All tabbable child elements in a node\nconst allTabbableElements = (el: HTMLElement) =>\n Array.from(el.querySelectorAll(tabbableQuery)).filter((element) => {\n // @ts-ignore\n // this is to ensure the input isn't hidden\n return element.offsetParent !== null && element.tabIndex !== -1;\n }) as HTMLElement[];\n\n// sort compare function for tab indexes\nconst sortByTabIndex = <T extends HTMLElement>(a: T, b: T) => {\n const idxA = a.tabIndex ?? 0;\n const idxB = b.tabIndex ?? 0;\n return idxA - idxB;\n};\n\n// All tabbable child elements in a node, or the container itself if there is none\nconst tabbablesOrContainer = (element: HTMLElement) => {\n const tabbableElements = allTabbableElements(element);\n return tabbableElements.length ? tabbableElements : [element];\n};\n\n// First tabbable child element in a node, or the container itself if there is none\nconst firstTabbableOrContainer = pipe(tabbablesOrContainer, sort(sortByTabIndex), head);\n\n/**\n * Focus Helpers\n */\n\n// preventScroll safe focus setter\nconst focusOn = (element: HTMLElement) => {\n element.focus({ preventScroll: true });\n};\n\n// focus on first tabbable in a container or container itself if there is none\nconst focusWithin = (element: HTMLElement) => {\n const firstTabbable = firstTabbableOrContainer(element);\n focusOn(firstTabbable as HTMLElement);\n};\n\n// focus on initial tabstop\nconst focusOnStart = pipe(tabbablesOrContainer, sort(sortByTabIndex), head, focusOn);\n\n// focus on last tabstop\nconst focusOnEnd = pipe(tabbablesOrContainer, sort(sortByTabIndex), last, focusOn);\n\n// get active element from document parent of the node\nconst getActiveElement = (node?: Node) => {\n const conditionalDocument = node?.ownerDocument ?? document;\n return conditionalDocument.activeElement as HTMLElement;\n};\n\nexport {\n focusOn, // preventScroll safe focus setter\n focusWithin, // focus on first tabbable in a container or container itself if there is none\n focusOnEnd, // focus on first tabstop in a container\n focusOnStart, // focus on last tabstop in a container\n getActiveElement, // get active element from document parent of the node\n isTabbableElement // uses tabbableQuery selector to determine if an element is tabbable\n};\n"],"names":["_isString_1","x","Object","prototype","toString","call","_curry2","require$$0","_isString","require$$1","nth_1","offset","list","idx","length","charAt","head_1","last_1","_arity_1","n","fn","apply","this","arguments","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","Error","_pipe_1","f","g","_isArray","Array","isArray","val","_curry1","require$$2","_isArrayLike_1","nodeType","hasOwnProperty","XWrap","acc","_xwrap_1","_arity","bind","thisObj","_isArrayLike","_xwrap","_iterableReduce","xf","iter","step","next","done","value","_methodReduce","obj","methodName","symIterator","Symbol","iterator","_reduce_1","len","_arrayReduce","reduce","TypeError","reduce_1","_curry3$1","_checkForMethod_1","methodname","slice","_checkForMethod","slice_1","_curry3","_checkForMethod$1","fromIndex","toIndex","_pipe","tail","Infinity","pipe_1","sort_1","comparator","sort","tabbableQuery","join","sortByTabIndex","a","b","_a","tabIndex","_b","tabbablesOrContainer","element","tabbableElements","el","from","querySelectorAll","filter","offsetParent","firstTabbableOrContainer","pipe","head","focusOn","focus","preventScroll","focusOnStart","focusOnEnd","last","firstTabbable","node","ownerDocument","document","activeElement","matches"],"mappings":"oHAIA,IAAAA,EAJA,SAAmBC,GACjB,MAA6C,oBAAtCC,OAAOC,UAAUC,SAASC,KAAKJ,ICDpCK,EAEJC,EAAAA,UAEIC,EAEJC,EAoCAC,EALAJ,EAAQ,SAAaK,EAAQC,GAC3B,IAAIC,EAAMF,EAAS,EAAIC,EAAKE,OAASH,EAASA,EAC9C,OAAOH,EAAUI,GAAQA,EAAKG,OAAOF,GAAOD,EAAKC,KCVnDG,EA3BAT,EA0BI,GCAJU,EA1BAV,GAyBK,GCoCL,IAAAW,EA/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B,EAAML,6DATrDV,IACnB,MAAMgB,EAAgBT,EAAyBP,GAC/CU,EAAQM,uBAUgBC,UAExB,OADmD,QAAvBrB,EAAAqB,MAAAA,OAAA,EAAAA,EAAMC,qBAAiB,IAAAtB,EAAAA,EAAAuB,UACxBC,mCAlDFpB,GAAyBA,EAAQqB,QAAQ9B"}
|
|
1
|
+
{"version":3,"file":"PRIVATE_tabbableUtils.js","sources":["../../../../node_modules/ramda/src/internal/_isString.js","../../../../node_modules/ramda/src/nth.js","../../../../node_modules/ramda/src/head.js","../../../../node_modules/ramda/src/last.js","../../../../node_modules/ramda/src/internal/_arity.js","../../../../node_modules/ramda/src/internal/_pipe.js","../../../../node_modules/ramda/src/internal/_isArray.js","../../../../node_modules/ramda/src/internal/_isArrayLike.js","../../../../node_modules/ramda/src/internal/_xwrap.js","../../../../node_modules/ramda/src/bind.js","../../../../node_modules/ramda/src/internal/_reduce.js","../../../../node_modules/ramda/src/reduce.js","../../../../node_modules/ramda/src/internal/_checkForMethod.js","../../../../node_modules/ramda/src/slice.js","../../../../node_modules/ramda/src/tail.js","../../../../node_modules/ramda/src/pipe.js","../../../../node_modules/ramda/src/sort.js","../../../src/utils/PRIVATE_tabbableUtils/tabbableUtils.ts"],"sourcesContent":["function _isString(x) {\n return Object.prototype.toString.call(x) === '[object String]';\n}\n\nmodule.exports = _isString;","var _curry2 =\n/*#__PURE__*/\nrequire(\"./internal/_curry2\");\n\nvar _isString =\n/*#__PURE__*/\nrequire(\"./internal/_isString\");\n/**\n * Returns the nth element of the given list or string. If n is negative the\n * element at index length + n is returned.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig Number -> [a] -> a | Undefined\n * @sig Number -> String -> String\n * @param {Number} offset\n * @param {*} list\n * @return {*}\n * @example\n *\n * const list = ['foo', 'bar', 'baz', 'quux'];\n * R.nth(1, list); //=> 'bar'\n * R.nth(-1, list); //=> 'quux'\n * R.nth(-99, list); //=> undefined\n *\n * R.nth(2, 'abc'); //=> 'c'\n * R.nth(3, 'abc'); //=> ''\n * @symb R.nth(-1, [a, b, c]) = c\n * @symb R.nth(0, [a, b, c]) = a\n * @symb R.nth(1, [a, b, c]) = b\n */\n\n\nvar nth =\n/*#__PURE__*/\n_curry2(function nth(offset, list) {\n var idx = offset < 0 ? list.length + offset : offset;\n return _isString(list) ? list.charAt(idx) : list[idx];\n});\n\nmodule.exports = nth;","var nth =\n/*#__PURE__*/\nrequire(\"./nth\");\n/**\n * Returns the first element of the given list or string. In some libraries\n * this function is named `first`.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig [a] -> a | Undefined\n * @sig String -> String\n * @param {Array|String} list\n * @return {*}\n * @see R.tail, R.init, R.last\n * @example\n *\n * R.head(['fi', 'fo', 'fum']); //=> 'fi'\n * R.head([]); //=> undefined\n *\n * R.head('abc'); //=> 'a'\n * R.head(''); //=> ''\n */\n\n\nvar head =\n/*#__PURE__*/\nnth(0);\nmodule.exports = head;","var nth =\n/*#__PURE__*/\nrequire(\"./nth\");\n/**\n * Returns the last element of the given list or string.\n *\n * @func\n * @memberOf R\n * @since v0.1.4\n * @category List\n * @sig [a] -> a | Undefined\n * @sig String -> String\n * @param {*} list\n * @return {*}\n * @see R.init, R.head, R.tail\n * @example\n *\n * R.last(['fi', 'fo', 'fum']); //=> 'fum'\n * R.last([]); //=> undefined\n *\n * R.last('abc'); //=> 'c'\n * R.last(''); //=> ''\n */\n\n\nvar last =\n/*#__PURE__*/\nnth(-1);\nmodule.exports = last;","function _arity(n, fn) {\n /* eslint-disable no-unused-vars */\n switch (n) {\n case 0:\n return function () {\n return fn.apply(this, arguments);\n };\n\n case 1:\n return function (a0) {\n return fn.apply(this, arguments);\n };\n\n case 2:\n return function (a0, a1) {\n return fn.apply(this, arguments);\n };\n\n case 3:\n return function (a0, a1, a2) {\n return fn.apply(this, arguments);\n };\n\n case 4:\n return function (a0, a1, a2, a3) {\n return fn.apply(this, arguments);\n };\n\n case 5:\n return function (a0, a1, a2, a3, a4) {\n return fn.apply(this, arguments);\n };\n\n case 6:\n return function (a0, a1, a2, a3, a4, a5) {\n return fn.apply(this, arguments);\n };\n\n case 7:\n return function (a0, a1, a2, a3, a4, a5, a6) {\n return fn.apply(this, arguments);\n };\n\n case 8:\n return function (a0, a1, a2, a3, a4, a5, a6, a7) {\n return fn.apply(this, arguments);\n };\n\n case 9:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {\n return fn.apply(this, arguments);\n };\n\n case 10:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return fn.apply(this, arguments);\n };\n\n default:\n throw new Error('First argument to _arity must be a non-negative integer no greater than ten');\n }\n}\n\nmodule.exports = _arity;","function _pipe(f, g) {\n return function () {\n return g.call(this, f.apply(this, arguments));\n };\n}\n\nmodule.exports = _pipe;","/**\n * Tests whether or not an object is an array.\n *\n * @private\n * @param {*} val The object to test.\n * @return {Boolean} `true` if `val` is an array, `false` otherwise.\n * @example\n *\n * _isArray([]); //=> true\n * _isArray(null); //=> false\n * _isArray({}); //=> false\n */\nmodule.exports = Array.isArray || function _isArray(val) {\n return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';\n};","var _curry1 =\n/*#__PURE__*/\nrequire(\"./_curry1\");\n\nvar _isArray =\n/*#__PURE__*/\nrequire(\"./_isArray\");\n\nvar _isString =\n/*#__PURE__*/\nrequire(\"./_isString\");\n/**\n * Tests whether or not an object is similar to an array.\n *\n * @private\n * @category Type\n * @category List\n * @sig * -> Boolean\n * @param {*} x The object to test.\n * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.\n * @example\n *\n * _isArrayLike([]); //=> true\n * _isArrayLike(true); //=> false\n * _isArrayLike({}); //=> false\n * _isArrayLike({length: 10}); //=> false\n * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true\n */\n\n\nvar _isArrayLike =\n/*#__PURE__*/\n_curry1(function isArrayLike(x) {\n if (_isArray(x)) {\n return true;\n }\n\n if (!x) {\n return false;\n }\n\n if (typeof x !== 'object') {\n return false;\n }\n\n if (_isString(x)) {\n return false;\n }\n\n if (x.nodeType === 1) {\n return !!x.length;\n }\n\n if (x.length === 0) {\n return true;\n }\n\n if (x.length > 0) {\n return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);\n }\n\n return false;\n});\n\nmodule.exports = _isArrayLike;","var XWrap =\n/*#__PURE__*/\nfunction () {\n function XWrap(fn) {\n this.f = fn;\n }\n\n XWrap.prototype['@@transducer/init'] = function () {\n throw new Error('init not implemented on XWrap');\n };\n\n XWrap.prototype['@@transducer/result'] = function (acc) {\n return acc;\n };\n\n XWrap.prototype['@@transducer/step'] = function (acc, x) {\n return this.f(acc, x);\n };\n\n return XWrap;\n}();\n\nfunction _xwrap(fn) {\n return new XWrap(fn);\n}\n\nmodule.exports = _xwrap;","var _arity =\n/*#__PURE__*/\nrequire(\"./internal/_arity\");\n\nvar _curry2 =\n/*#__PURE__*/\nrequire(\"./internal/_curry2\");\n/**\n * Creates a function that is bound to a context.\n * Note: `R.bind` does not provide the additional argument-binding capabilities of\n * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\n *\n * @func\n * @memberOf R\n * @since v0.6.0\n * @category Function\n * @category Object\n * @sig (* -> *) -> {*} -> (* -> *)\n * @param {Function} fn The function to bind to context\n * @param {Object} thisObj The context to bind `fn` to\n * @return {Function} A function that will execute in the context of `thisObj`.\n * @see R.partial\n * @example\n *\n * const log = R.bind(console.log, console);\n * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}\n * // logs {a: 2}\n * @symb R.bind(f, o)(a, b) = f.call(o, a, b)\n */\n\n\nvar bind =\n/*#__PURE__*/\n_curry2(function bind(fn, thisObj) {\n return _arity(fn.length, function () {\n return fn.apply(thisObj, arguments);\n });\n});\n\nmodule.exports = bind;","var _isArrayLike =\n/*#__PURE__*/\nrequire(\"./_isArrayLike\");\n\nvar _xwrap =\n/*#__PURE__*/\nrequire(\"./_xwrap\");\n\nvar bind =\n/*#__PURE__*/\nrequire(\"../bind\");\n\nfunction _arrayReduce(xf, acc, list) {\n var idx = 0;\n var len = list.length;\n\n while (idx < len) {\n acc = xf['@@transducer/step'](acc, list[idx]);\n\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n\n idx += 1;\n }\n\n return xf['@@transducer/result'](acc);\n}\n\nfunction _iterableReduce(xf, acc, iter) {\n var step = iter.next();\n\n while (!step.done) {\n acc = xf['@@transducer/step'](acc, step.value);\n\n if (acc && acc['@@transducer/reduced']) {\n acc = acc['@@transducer/value'];\n break;\n }\n\n step = iter.next();\n }\n\n return xf['@@transducer/result'](acc);\n}\n\nfunction _methodReduce(xf, acc, obj, methodName) {\n return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));\n}\n\nvar symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';\n\nfunction _reduce(fn, acc, list) {\n if (typeof fn === 'function') {\n fn = _xwrap(fn);\n }\n\n if (_isArrayLike(list)) {\n return _arrayReduce(fn, acc, list);\n }\n\n if (typeof list['fantasy-land/reduce'] === 'function') {\n return _methodReduce(fn, acc, list, 'fantasy-land/reduce');\n }\n\n if (list[symIterator] != null) {\n return _iterableReduce(fn, acc, list[symIterator]());\n }\n\n if (typeof list.next === 'function') {\n return _iterableReduce(fn, acc, list);\n }\n\n if (typeof list.reduce === 'function') {\n return _methodReduce(fn, acc, list, 'reduce');\n }\n\n throw new TypeError('reduce: list must be array or iterable');\n}\n\nmodule.exports = _reduce;","var _curry3 =\n/*#__PURE__*/\nrequire(\"./internal/_curry3\");\n\nvar _reduce =\n/*#__PURE__*/\nrequire(\"./internal/_reduce\");\n/**\n * Returns a single item by iterating through the list, successively calling\n * the iterator function and passing it an accumulator value and the current\n * value from the array, and then passing the result to the next call.\n *\n * The iterator function receives two values: *(acc, value)*. It may use\n * [`R.reduced`](#reduced) to shortcut the iteration.\n *\n * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function\n * is *(value, acc)*.\n *\n * Note: `R.reduce` does not skip deleted or unassigned indices (sparse\n * arrays), unlike the native `Array.prototype.reduce` method. For more details\n * on this behavior, see:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description\n *\n * Dispatches to the `reduce` method of the third argument, if present. When\n * doing so, it is up to the user to handle the [`R.reduced`](#reduced)\n * shortcuting, as this is not implemented by `reduce`.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig ((a, b) -> a) -> a -> [b] -> a\n * @param {Function} fn The iterator function. Receives two values, the accumulator and the\n * current element from the array.\n * @param {*} acc The accumulator value.\n * @param {Array} list The list to iterate over.\n * @return {*} The final, accumulated value.\n * @see R.reduced, R.addIndex, R.reduceRight\n * @example\n *\n * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10\n * // - -10\n * // / \\ / \\\n * // - 4 -6 4\n * // / \\ / \\\n * // - 3 ==> -3 3\n * // / \\ / \\\n * // - 2 -1 2\n * // / \\ / \\\n * // 0 1 0 1\n *\n * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)\n */\n\n\nvar reduce =\n/*#__PURE__*/\n_curry3(_reduce);\n\nmodule.exports = reduce;","var _isArray =\n/*#__PURE__*/\nrequire(\"./_isArray\");\n/**\n * This checks whether a function has a [methodname] function. If it isn't an\n * array it will execute that function otherwise it will default to the ramda\n * implementation.\n *\n * @private\n * @param {Function} fn ramda implemtation\n * @param {String} methodname property to check for a custom implementation\n * @return {Object} Whatever the return value of the method is.\n */\n\n\nfunction _checkForMethod(methodname, fn) {\n return function () {\n var length = arguments.length;\n\n if (length === 0) {\n return fn();\n }\n\n var obj = arguments[length - 1];\n return _isArray(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));\n };\n}\n\nmodule.exports = _checkForMethod;","var _checkForMethod =\n/*#__PURE__*/\nrequire(\"./internal/_checkForMethod\");\n\nvar _curry3 =\n/*#__PURE__*/\nrequire(\"./internal/_curry3\");\n/**\n * Returns the elements of the given list or string (or object with a `slice`\n * method) from `fromIndex` (inclusive) to `toIndex` (exclusive).\n *\n * Dispatches to the `slice` method of the third argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.4\n * @category List\n * @sig Number -> Number -> [a] -> [a]\n * @sig Number -> Number -> String -> String\n * @param {Number} fromIndex The start index (inclusive).\n * @param {Number} toIndex The end index (exclusive).\n * @param {*} list\n * @return {*}\n * @example\n *\n * R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']\n * R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']\n * R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']\n * R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']\n * R.slice(0, 3, 'ramda'); //=> 'ram'\n */\n\n\nvar slice =\n/*#__PURE__*/\n_curry3(\n/*#__PURE__*/\n_checkForMethod('slice', function slice(fromIndex, toIndex, list) {\n return Array.prototype.slice.call(list, fromIndex, toIndex);\n}));\n\nmodule.exports = slice;","var _checkForMethod =\n/*#__PURE__*/\nrequire(\"./internal/_checkForMethod\");\n\nvar _curry1 =\n/*#__PURE__*/\nrequire(\"./internal/_curry1\");\n\nvar slice =\n/*#__PURE__*/\nrequire(\"./slice\");\n/**\n * Returns all but the first element of the given list or string (or object\n * with a `tail` method).\n *\n * Dispatches to the `slice` method of the first argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig [a] -> [a]\n * @sig String -> String\n * @param {*} list\n * @return {*}\n * @see R.head, R.init, R.last\n * @example\n *\n * R.tail([1, 2, 3]); //=> [2, 3]\n * R.tail([1, 2]); //=> [2]\n * R.tail([1]); //=> []\n * R.tail([]); //=> []\n *\n * R.tail('abc'); //=> 'bc'\n * R.tail('ab'); //=> 'b'\n * R.tail('a'); //=> ''\n * R.tail(''); //=> ''\n */\n\n\nvar tail =\n/*#__PURE__*/\n_curry1(\n/*#__PURE__*/\n_checkForMethod('tail',\n/*#__PURE__*/\nslice(1, Infinity)));\n\nmodule.exports = tail;","var _arity =\n/*#__PURE__*/\nrequire(\"./internal/_arity\");\n\nvar _pipe =\n/*#__PURE__*/\nrequire(\"./internal/_pipe\");\n\nvar reduce =\n/*#__PURE__*/\nrequire(\"./reduce\");\n\nvar tail =\n/*#__PURE__*/\nrequire(\"./tail\");\n/**\n * Performs left-to-right function composition. The first argument may have\n * any arity; the remaining arguments must be unary.\n *\n * In some libraries this function is named `sequence`.\n *\n * **Note:** The result of pipe is not automatically curried.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Function\n * @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)\n * @param {...Function} functions\n * @return {Function}\n * @see R.compose\n * @example\n *\n * const f = R.pipe(Math.pow, R.negate, R.inc);\n *\n * f(3, 4); // -(3^4) + 1\n * @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))\n */\n\n\nfunction pipe() {\n if (arguments.length === 0) {\n throw new Error('pipe requires at least one argument');\n }\n\n return _arity(arguments[0].length, reduce(_pipe, arguments[0], tail(arguments)));\n}\n\nmodule.exports = pipe;","var _curry2 =\n/*#__PURE__*/\nrequire(\"./internal/_curry2\");\n/**\n * Returns a copy of the list, sorted according to the comparator function,\n * which should accept two values at a time and return a negative number if the\n * first value is smaller, a positive number if it's larger, and zero if they\n * are equal. Please note that this is a **copy** of the list. It does not\n * modify the original.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig ((a, a) -> Number) -> [a] -> [a]\n * @param {Function} comparator A sorting function :: a -> b -> Int\n * @param {Array} list The list to sort\n * @return {Array} a new array with its elements sorted by the comparator function.\n * @example\n *\n * const diff = function(a, b) { return a - b; };\n * R.sort(diff, [4,2,7,5]); //=> [2, 4, 5, 7]\n */\n\n\nvar sort =\n/*#__PURE__*/\n_curry2(function sort(comparator, list) {\n return Array.prototype.slice.call(list, 0).sort(comparator);\n});\n\nmodule.exports = sort;","/**\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\n/**\n * Tabbable Mode helpers\n */\nimport head from 'ramda/src/head';\nimport last from 'ramda/src/last';\nimport pipe from 'ramda/src/pipe';\nimport sort from 'ramda/src/sort';\n// Query selector to return all tabbable elements\nconst tabbableQuery = [\n 'a:not([name]):not([disabled])',\n 'button:not([disabled])',\n 'textarea:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n \"[tabIndex]:not([tabIndex='-1']\"\n].join(', ');\n\n// uses tabbableQuery selector to determine if an element is tabbable\nconst isTabbableElement = (element: HTMLElement) => element.matches(tabbableQuery);\n\n// All tabbable child elements in a node\nconst allTabbableElements = (el: HTMLElement) =>\n Array.from(el.querySelectorAll(tabbableQuery)).filter((element) => {\n // @ts-ignore\n // this is to ensure the input isn't hidden\n return element.offsetParent !== null && element.tabIndex !== -1;\n }) as HTMLElement[];\n\n// sort compare function for tab indexes\nconst sortByTabIndex = <T extends HTMLElement>(a: T, b: T) => {\n const idxA = a.tabIndex ?? 0;\n const idxB = b.tabIndex ?? 0;\n return idxA - idxB;\n};\n\n// All tabbable child elements in a node, or the container itself if there is none\nconst tabbablesOrContainer = (element: HTMLElement) => {\n const tabbableElements = allTabbableElements(element);\n return tabbableElements.length ? tabbableElements : [element];\n};\n\n// First tabbable child element in a node, or the container itself if there is none\nconst firstTabbableOrContainer = pipe(tabbablesOrContainer, sort(sortByTabIndex), head);\n\n/**\n * Focus Helpers\n */\n\n// preventScroll safe focus setter\nconst focusOn = (element: HTMLElement) => {\n element.focus({ preventScroll: true });\n};\n\n// focus on first tabbable in a container or container itself if there is none\nconst focusWithin = (element: HTMLElement) => {\n const firstTabbable = firstTabbableOrContainer(element);\n focusOn(firstTabbable as HTMLElement);\n};\n\n// focus on initial tabstop\nconst focusOnStart = pipe(tabbablesOrContainer, sort(sortByTabIndex), head, focusOn);\n\n// focus on last tabstop\nconst focusOnEnd = pipe(tabbablesOrContainer, sort(sortByTabIndex), last, focusOn);\n\n// get active element from document parent of the node\nconst getActiveElement = (node?: Node) => {\n const conditionalDocument = node?.ownerDocument ?? document;\n return conditionalDocument.activeElement as HTMLElement;\n};\n\nexport {\n focusOn, // preventScroll safe focus setter\n focusWithin, // focus on first tabbable in a container or container itself if there is none\n focusOnEnd, // focus on first tabstop in a container\n focusOnStart, // focus on last tabstop in a container\n getActiveElement, // get active element from document parent of the node\n isTabbableElement // uses tabbableQuery selector to determine if an element is tabbable\n};\n"],"names":["_isString_1","x","Object","prototype","toString","call","_curry2","require$$0","_isString","require$$1","nth_1","offset","list","idx","length","charAt","head_1","last_1","_arity_1","n","fn","apply","this","arguments","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","Error","_pipe_1","f","g","_isArray","Array","isArray","val","_curry1","require$$2","_isArrayLike_1","nodeType","hasOwnProperty","XWrap","acc","_xwrap_1","_arity","bind","thisObj","_isArrayLike","_xwrap","_iterableReduce","xf","iter","step","next","done","value","_methodReduce","obj","methodName","symIterator","Symbol","iterator","_reduce_1","len","_arrayReduce","reduce","TypeError","reduce_1","_curry3","_checkForMethod_1","methodname","slice","_checkForMethod","slice_1","fromIndex","toIndex","_pipe","tail","Infinity","pipe_1","sort_1","comparator","sort","tabbableQuery","join","sortByTabIndex","a","b","_a","tabIndex","_b","tabbablesOrContainer","element","tabbableElements","el","from","querySelectorAll","filter","offsetParent","firstTabbableOrContainer","pipe","head","focusOn","focus","preventScroll","focusOnStart","focusOnEnd","last","firstTabbable","node","ownerDocument","document","activeElement","matches"],"mappings":"oHAIA,I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Bb,IAAgBc,OAAQL,GAGrB,OAAzBA,EAAQM,eAA+C,IAAtBN,EAAQH,WAJxB,IAACK,EAiB3B,OAAOD,EAAiBrF,OAASqF,EAAmB,CAACD,IAIjDO,EAA2BC,EAAKT,EAAsBT,EAAKG,GAAiBgB,GAO5EC,EAAWV,IACfA,EAAQW,MAAM,CAAEC,eAAe,KAU3BC,EAAeL,EAAKT,EAAsBT,EAAKG,GAAiBgB,EAAMC,GAGtEI,EAAaN,EAAKT,EAAsBT,EAAKG,GAAiBsB,EAAML,6DATrDV,IACnB,MAAMgB,EAAgBT,EAAyBP,GAC/CU,EAAQM,uBAUgBC,UAExB,OADmD,QAAvBrB,EAAAqB,MAAAA,OAAA,EAAAA,EAAMC,qBAAiB,IAAAtB,EAAAA,EAAAuB,UACxBC,mCAlDFpB,GAAyBA,EAAQqB,QAAQ9B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["exports","../classNames-
|
|
1
|
+
define(["exports","../classNames-2ba58777"],function(e,s){"use strict";e.classNames=s.classNames,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=UNSAFE_classNames.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
define(["exports"],function(e){"use strict";e.beforeVNode=function(e,...r){const t=r.filter(Boolean);return t.length?e?Array.isArray(e)?[...t,...e]:[...t,e]:t:e},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=UNSAFE_componentUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_componentUtils.js","sources":["../../../src/utils/UNSAFE_componentUtils/componentUtils.ts"],"sourcesContent":["import { ComponentChildren } from 'preact';\n\n/**\n * Adds components before a specific VNode\n * @param src The src component\n * @param items The items to be added before the source\n * @returns An array of components after performing the operation\n */\nexport function beforeVNode(src?: ComponentChildren, ...items: ComponentChildren[]) {\n // filter out falsy values from the items as they will not be rendered\n const treatedItems = items.filter(Boolean);\n // Return the original src when there are no items to add before it\n if (!treatedItems.length) {\n return src;\n }\n\n // Return the items when there is no src VNode\n if (!src) {\n return treatedItems;\n }\n\n if (Array.isArray(src)) {\n return [...treatedItems, ...src];\n }\n return [...treatedItems, src] as ComponentChildren[];\n}\n"],"names":["src","items","treatedItems","filter","Boolean","length","Array","isArray"],"mappings":"
|
|
1
|
+
{"version":3,"file":"UNSAFE_componentUtils.js","sources":["../../../src/utils/UNSAFE_componentUtils/componentUtils.ts"],"sourcesContent":["import { ComponentChildren } from 'preact';\n\n/**\n * Adds components before a specific VNode\n * @param src The src component\n * @param items The items to be added before the source\n * @returns An array of components after performing the operation\n */\nexport function beforeVNode(src?: ComponentChildren, ...items: ComponentChildren[]) {\n // filter out falsy values from the items as they will not be rendered\n const treatedItems = items.filter(Boolean);\n // Return the original src when there are no items to add before it\n if (!treatedItems.length) {\n return src;\n }\n\n // Return the items when there is no src VNode\n if (!src) {\n return treatedItems;\n }\n\n if (Array.isArray(src)) {\n return [...treatedItems, ...src];\n }\n return [...treatedItems, src] as ComponentChildren[];\n}\n"],"names":["src","items","treatedItems","filter","Boolean","length","Array","isArray"],"mappings":"mEAQ4BA,KAA4BC,GAEtD,MAAMC,EAAeD,EAAME,OAAOC,SAElC,OAAKF,EAAaG,OAKbL,EAIDM,MAAMC,QAAQP,GACT,IAAIE,KAAiBF,GAEvB,IAAIE,EAAcF,GANhBE,EALAF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_filePickerUtils.js","sources":["../../../src/utils/UNSAFE_filePickerUtils/filePickerUtils.ts"],"sourcesContent":["// Contains utility functions intended to be used to pick files\n\nexport type FileOptions = {\n accept?: Array<string>;\n capture?: 'user' | 'environment' | 'implementation' | 'none';\n selectionMode?: 'single' | 'multiple';\n};\n\nexport function pickFiles(\n callback: (files: FileList) => void,\n { accept = [], capture = 'none', selectionMode = 'single' }: FileOptions\n) {\n const input = createInput({ accept, capture, selectionMode });\n\n input.addEventListener(\n 'change',\n () => {\n callback(input.files as FileList);\n },\n { once: true }\n );\n\n input.click();\n}\n\nconst createInput = (fileOptions: Required<FileOptions>) => {\n const input = document.createElement('input');\n input.type = 'file';\n if (fileOptions?.capture && fileOptions.capture != 'none') {\n input.capture = fileOptions.capture;\n }\n input.accept = fileOptions.accept.join(',');\n input.multiple = fileOptions.selectionMode === 'multiple';\n input.style.display = 'none';\n return input;\n};\n"],"names":["createInput","fileOptions","input","document","createElement","type","capture","accept","join","multiple","selectionMode","style","display","callback","addEventListener","files","once","click"],"mappings":"4CAyBA,MAAMA,EAAeC,IACnB,MAAMC,EAAQC,SAASC,cAAc,SAQrC,OAPAF,EAAMG,KAAO,QACTJ,MAAAA,SAAAA,EAAaK,UAAkC,QAAvBL,EAAYK,UACtCJ,EAAMI,QAAUL,EAAYK,SAE9BJ,EAAMK,OAASN,EAAYM,OAAOC,KAAK,KACvCN,EAAMO,SAAyC,aAA9BR,EAAYS,cAC7BR,EAAMS,MAAMC,QAAU,OACfV,wBAzBPW,GACAN,OAAEA,EAAS,
|
|
1
|
+
{"version":3,"file":"UNSAFE_filePickerUtils.js","sources":["../../../src/utils/UNSAFE_filePickerUtils/filePickerUtils.ts"],"sourcesContent":["// Contains utility functions intended to be used to pick files\n\nexport type FileOptions = {\n accept?: Array<string>;\n capture?: 'user' | 'environment' | 'implementation' | 'none';\n selectionMode?: 'single' | 'multiple';\n};\n\nexport function pickFiles(\n callback: (files: FileList) => void,\n { accept = [], capture = 'none', selectionMode = 'single' }: FileOptions\n) {\n const input = createInput({ accept, capture, selectionMode });\n\n input.addEventListener(\n 'change',\n () => {\n callback(input.files as FileList);\n },\n { once: true }\n );\n\n input.click();\n}\n\nconst createInput = (fileOptions: Required<FileOptions>) => {\n const input = document.createElement('input');\n input.type = 'file';\n if (fileOptions?.capture && fileOptions.capture != 'none') {\n input.capture = fileOptions.capture;\n }\n input.accept = fileOptions.accept.join(',');\n input.multiple = fileOptions.selectionMode === 'multiple';\n input.style.display = 'none';\n return input;\n};\n"],"names":["createInput","fileOptions","input","document","createElement","type","capture","accept","join","multiple","selectionMode","style","display","callback","addEventListener","files","once","click"],"mappings":"4CAyBA,MAAMA,EAAeC,IACnB,MAAMC,EAAQC,SAASC,cAAc,SAQrC,OAPAF,EAAMG,KAAO,QACTJ,MAAAA,SAAAA,EAAaK,UAAkC,QAAvBL,EAAYK,UACtCJ,EAAMI,QAAUL,EAAYK,SAE9BJ,EAAMK,OAASN,EAAYM,OAAOC,KAAK,KACvCN,EAAMO,SAAyC,aAA9BR,EAAYS,cAC7BR,EAAMS,MAAMC,QAAU,OACfV,wBAzBPW,GACAN,OAAEA,EAAS,GAAED,QAAEA,EAAU,OAAMI,cAAEA,EAAgB,WAEjD,MAAMR,EAAQF,EAAY,CAAEO,OAAAA,EAAQD,QAAAA,EAASI,cAAAA,IAE7CR,EAAMY,iBACJ,SACA,KACED,EAASX,EAAMa,QAEjB,CAAEC,MAAM,IAGVd,EAAMe"}
|