@telus-uds/components-base 1.84.0 → 1.85.0
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/CHANGELOG.md +18 -2
- package/lib/A11yInfoProvider/index.js +8 -10
- package/lib/A11yText/index.js +2 -4
- package/lib/ActivityIndicator/Spinner.js +3 -4
- package/lib/ActivityIndicator/Spinner.native.js +2 -4
- package/lib/Autocomplete/Autocomplete.js +13 -17
- package/lib/Autocomplete/Loading.js +4 -2
- package/lib/Autocomplete/Suggestions.js +2 -4
- package/lib/Badge/Badge.js +2 -4
- package/lib/BaseProvider/HydrationContext.js +5 -7
- package/lib/Box/Box.js +5 -7
- package/lib/Button/Button.js +3 -3
- package/lib/Button/ButtonBase.js +2 -7
- package/lib/Button/ButtonDropdown.js +3 -3
- package/lib/Button/ButtonGroup.js +2 -4
- package/lib/Button/ButtonLink.js +3 -3
- package/lib/Card/Card.js +159 -16
- package/lib/Card/CardBase.js +2 -4
- package/lib/Card/PressableCardBase.js +3 -5
- package/lib/CardGroup/CardGroup.js +220 -0
- package/lib/CardGroup/dictionary.js +15 -0
- package/lib/CardGroup/index.js +10 -0
- package/lib/Carousel/Carousel.js +67 -57
- package/lib/Carousel/CarouselFirstFocus/CarouselFirstFocus.js +2 -4
- package/lib/Carousel/CarouselItem/CarouselItem.js +3 -2
- package/lib/Carousel/CarouselStepTracker/CarouselStepTracker.js +4 -2
- package/lib/Carousel/CarouselTabs/CarouselTabs.js +2 -4
- package/lib/Carousel/CarouselTabs/CarouselTabsPanel.js +6 -8
- package/lib/Carousel/CarouselTabs/CarouselTabsPanelItem.js +3 -5
- package/lib/Carousel/CarouselThumbnail.js +4 -2
- package/lib/Carousel/CarouselThumbnailNavigation.js +2 -4
- package/lib/Checkbox/Checkbox.js +2 -4
- package/lib/Checkbox/CheckboxButton.js +3 -5
- package/lib/Checkbox/CheckboxGroup.js +2 -4
- package/lib/Checkbox/CheckboxInput.js +4 -14
- package/lib/CheckboxCard/CheckboxCard.js +3 -3
- package/lib/CheckboxCardGroup/CheckboxCardGroup.js +3 -3
- package/lib/ColourToggle/ColourBubble.js +5 -6
- package/lib/ColourToggle/ColourToggle.js +3 -5
- package/lib/Divider/Divider.js +2 -4
- package/lib/ExpandCollapse/Accordion.js +2 -4
- package/lib/ExpandCollapse/Control.js +2 -4
- package/lib/ExpandCollapse/ExpandCollapse.js +2 -4
- package/lib/ExpandCollapse/Panel.js +3 -5
- package/lib/Feedback/Feedback.js +2 -4
- package/lib/Fieldset/Fieldset.js +2 -4
- package/lib/Fieldset/FieldsetContainer.js +2 -4
- package/lib/Fieldset/FieldsetContainer.native.js +2 -4
- package/lib/Fieldset/Legend.js +2 -4
- package/lib/Fieldset/Legend.native.js +2 -4
- package/lib/FlexGrid/Col/Col.js +3 -5
- package/lib/FlexGrid/FlexGrid.js +2 -4
- package/lib/FlexGrid/Row/Row.js +2 -4
- package/lib/Footnote/Footnote.js +9 -9
- package/lib/Footnote/FootnoteLink.js +5 -3
- package/lib/HorizontalScroll/HorizontalScroll.js +8 -10
- package/lib/HorizontalScroll/HorizontalScrollButton.js +2 -4
- package/lib/HorizontalScroll/ScrollViewEnd.js +5 -10
- package/lib/HorizontalScroll/ScrollViewEnd.native.js +2 -4
- package/lib/Icon/Icon.js +2 -4
- package/lib/Icon/IconText.js +3 -3
- package/lib/IconButton/IconButton.js +2 -4
- package/lib/InputLabel/InputLabel.js +2 -4
- package/lib/InputLabel/LabelContent.js +2 -4
- package/lib/InputLabel/LabelContent.native.js +2 -4
- package/lib/InputSupports/InputSupports.js +4 -5
- package/lib/Link/ChevronLink.js +2 -4
- package/lib/Link/InlinePressable.js +8 -7
- package/lib/Link/InlinePressable.native.js +10 -8
- package/lib/Link/Link.js +2 -4
- package/lib/Link/LinkBase.js +2 -4
- package/lib/Link/TextButton.js +2 -4
- package/lib/List/List.js +13 -11
- package/lib/List/ListItem.js +2 -4
- package/lib/List/ListItemBase.js +6 -10
- package/lib/List/ListItemContent.js +4 -2
- package/lib/List/ListItemMark.js +4 -2
- package/lib/List/PressableListItemBase.js +2 -4
- package/lib/Listbox/GroupControl.js +4 -2
- package/lib/Listbox/Listbox.js +6 -6
- package/lib/Listbox/ListboxContext.js +3 -4
- package/lib/Listbox/ListboxGroup.js +2 -4
- package/lib/Listbox/ListboxItem.js +2 -6
- package/lib/Listbox/ListboxOverlay.js +2 -6
- package/lib/Listbox/PressableItem.js +2 -6
- package/lib/Modal/Modal.js +5 -7
- package/lib/Modal/ModalContent.js +7 -7
- package/lib/Modal/WebModal.js +16 -9
- package/lib/MultiSelectFilter/ModalOverlay.js +2 -4
- package/lib/MultiSelectFilter/MultiSelectFilter.js +10 -10
- package/lib/Notification/Notification.js +5 -7
- package/lib/OrderedList/Item.js +4 -10
- package/lib/OrderedList/ItemBase.js +2 -4
- package/lib/OrderedList/OrderedList.js +5 -13
- package/lib/OrderedList/OrderedListBase.js +2 -4
- package/lib/Pagination/PageButton.js +1 -1
- package/lib/Pagination/Pagination.js +1 -1
- package/lib/Pagination/SideButton.js +2 -4
- package/lib/PriceLockup/PriceLockup.js +5 -5
- package/lib/ProductCard/ProductCard.js +3 -2
- package/lib/ProductCardGroup/ProductCardGroup.js +5 -6
- package/lib/Progress/Progress.js +2 -4
- package/lib/Progress/ProgressBar.js +2 -4
- package/lib/Progress/ProgressBarBackground.js +2 -4
- package/lib/QuickLinks/QuickLinks.js +2 -4
- package/lib/QuickLinks/QuickLinksCard.js +4 -2
- package/lib/QuickLinks/QuickLinksItem.js +2 -4
- package/lib/QuickLinksFeature/QuickLinksFeature.js +9 -7
- package/lib/QuickLinksFeature/QuickLinksFeatureItem.js +10 -12
- package/lib/Radio/Radio.js +3 -3
- package/lib/Radio/RadioButton.js +61 -15
- package/lib/Radio/RadioGroup.js +2 -4
- package/lib/Radio/RadioInput.js +6 -18
- package/lib/RadioCard/RadioCard.js +3 -3
- package/lib/RadioCard/RadioCardGroup.js +3 -3
- package/lib/Responsive/Responsive.js +3 -2
- package/lib/Responsive/ResponsiveWithMediaQueryStyleSheet.js +3 -2
- package/lib/Search/Search.js +2 -4
- package/lib/Select/Group.js +4 -2
- package/lib/Select/Item.js +4 -2
- package/lib/Select/Picker.js +2 -4
- package/lib/Select/Picker.native.js +3 -5
- package/lib/Select/Select.js +4 -6
- package/lib/SideNav/Item.js +2 -4
- package/lib/SideNav/ItemContent.js +4 -2
- package/lib/SideNav/ItemsGroup.js +2 -4
- package/lib/SideNav/SideNav.js +2 -2
- package/lib/Skeleton/Skeleton.js +2 -4
- package/lib/SkipLink/SkipLink.js +2 -4
- package/lib/Spacer/Spacer.js +2 -4
- package/lib/StackView/StackView.js +2 -4
- package/lib/StackView/StackWrap.js +3 -5
- package/lib/StackView/StackWrapBox.js +2 -4
- package/lib/StackView/StackWrapGap.js +2 -4
- package/lib/StackView/getStackedContent.js +3 -3
- package/lib/StepTracker/Step.js +4 -2
- package/lib/StepTracker/StepTracker.js +2 -4
- package/lib/Tabs/Tabs.js +4 -4
- package/lib/Tabs/TabsItem.js +3 -5
- package/lib/Tags/Tags.js +2 -4
- package/lib/TextInput/TextArea.js +3 -5
- package/lib/TextInput/TextInput.js +2 -4
- package/lib/TextInput/TextInputBase.js +7 -9
- package/lib/ThemeProvider/ThemeProvider.js +5 -7
- package/lib/Timeline/Timeline.js +2 -4
- package/lib/ToggleSwitch/ToggleSwitch.js +2 -4
- package/lib/ToggleSwitch/ToggleSwitchGroup.js +2 -4
- package/lib/Tooltip/Tooltip.js +6 -8
- package/lib/Tooltip/Tooltip.native.js +12 -14
- package/lib/TooltipButton/TooltipButton.js +4 -2
- package/lib/Typography/Typography.js +2 -4
- package/lib/Validator/Validator.js +11 -13
- package/lib/ViewportProvider/ViewportProvider.js +2 -4
- package/lib/index.js +8 -0
- package/lib/utils/BaseView/BaseView.js +2 -4
- package/lib/utils/children.js +4 -6
- package/lib/utils/withLinkRouter.js +3 -5
- package/lib-module/A11yInfoProvider/index.js +8 -8
- package/lib-module/A11yText/index.js +2 -2
- package/lib-module/ActivityIndicator/Spinner.js +2 -2
- package/lib-module/ActivityIndicator/Spinner.native.js +2 -2
- package/lib-module/Autocomplete/Autocomplete.js +13 -14
- package/lib-module/Autocomplete/Loading.js +4 -2
- package/lib-module/Autocomplete/Suggestions.js +2 -2
- package/lib-module/Badge/Badge.js +2 -2
- package/lib-module/BaseProvider/HydrationContext.js +5 -5
- package/lib-module/Box/Box.js +5 -5
- package/lib-module/Button/Button.js +2 -2
- package/lib-module/Button/ButtonBase.js +2 -5
- package/lib-module/Button/ButtonDropdown.js +2 -2
- package/lib-module/Button/ButtonGroup.js +2 -2
- package/lib-module/Button/ButtonLink.js +2 -2
- package/lib-module/Card/Card.js +159 -14
- package/lib-module/Card/CardBase.js +2 -2
- package/lib-module/Card/PressableCardBase.js +4 -4
- package/lib-module/CardGroup/CardGroup.js +210 -0
- package/lib-module/CardGroup/dictionary.js +8 -0
- package/lib-module/CardGroup/index.js +2 -0
- package/lib-module/Carousel/Carousel.js +67 -55
- package/lib-module/Carousel/CarouselFirstFocus/CarouselFirstFocus.js +2 -2
- package/lib-module/Carousel/CarouselItem/CarouselItem.js +3 -2
- package/lib-module/Carousel/CarouselStepTracker/CarouselStepTracker.js +4 -2
- package/lib-module/Carousel/CarouselTabs/CarouselTabs.js +2 -2
- package/lib-module/Carousel/CarouselTabs/CarouselTabsPanel.js +6 -6
- package/lib-module/Carousel/CarouselTabs/CarouselTabsPanelItem.js +3 -3
- package/lib-module/Carousel/CarouselThumbnail.js +4 -2
- package/lib-module/Carousel/CarouselThumbnailNavigation.js +2 -2
- package/lib-module/Checkbox/Checkbox.js +2 -2
- package/lib-module/Checkbox/CheckboxButton.js +3 -3
- package/lib-module/Checkbox/CheckboxGroup.js +2 -2
- package/lib-module/Checkbox/CheckboxInput.js +4 -12
- package/lib-module/CheckboxCard/CheckboxCard.js +2 -2
- package/lib-module/CheckboxCardGroup/CheckboxCardGroup.js +2 -2
- package/lib-module/ColourToggle/ColourBubble.js +5 -4
- package/lib-module/ColourToggle/ColourToggle.js +3 -3
- package/lib-module/Divider/Divider.js +2 -2
- package/lib-module/ExpandCollapse/Accordion.js +2 -2
- package/lib-module/ExpandCollapse/Control.js +2 -2
- package/lib-module/ExpandCollapse/ExpandCollapse.js +2 -2
- package/lib-module/ExpandCollapse/Panel.js +3 -3
- package/lib-module/Feedback/Feedback.js +2 -2
- package/lib-module/Fieldset/Fieldset.js +2 -2
- package/lib-module/Fieldset/FieldsetContainer.js +2 -2
- package/lib-module/Fieldset/FieldsetContainer.native.js +2 -2
- package/lib-module/Fieldset/Legend.js +2 -2
- package/lib-module/Fieldset/Legend.native.js +2 -2
- package/lib-module/FlexGrid/Col/Col.js +3 -3
- package/lib-module/FlexGrid/FlexGrid.js +2 -2
- package/lib-module/FlexGrid/Row/Row.js +2 -2
- package/lib-module/Footnote/Footnote.js +9 -7
- package/lib-module/Footnote/FootnoteLink.js +5 -4
- package/lib-module/HorizontalScroll/HorizontalScroll.js +8 -8
- package/lib-module/HorizontalScroll/HorizontalScrollButton.js +2 -2
- package/lib-module/HorizontalScroll/ScrollViewEnd.js +5 -8
- package/lib-module/HorizontalScroll/ScrollViewEnd.native.js +2 -2
- package/lib-module/Icon/Icon.js +2 -2
- package/lib-module/Icon/IconText.js +2 -2
- package/lib-module/IconButton/IconButton.js +2 -2
- package/lib-module/InputLabel/InputLabel.js +2 -2
- package/lib-module/InputLabel/LabelContent.js +2 -2
- package/lib-module/InputLabel/LabelContent.native.js +2 -2
- package/lib-module/InputSupports/InputSupports.js +4 -3
- package/lib-module/Link/ChevronLink.js +2 -2
- package/lib-module/Link/InlinePressable.js +10 -4
- package/lib-module/Link/InlinePressable.native.js +12 -6
- package/lib-module/Link/Link.js +2 -2
- package/lib-module/Link/LinkBase.js +2 -2
- package/lib-module/Link/TextButton.js +2 -2
- package/lib-module/List/List.js +13 -9
- package/lib-module/List/ListItem.js +2 -2
- package/lib-module/List/ListItemBase.js +6 -8
- package/lib-module/List/ListItemContent.js +4 -2
- package/lib-module/List/ListItemMark.js +4 -2
- package/lib-module/List/PressableListItemBase.js +2 -2
- package/lib-module/Listbox/GroupControl.js +4 -2
- package/lib-module/Listbox/Listbox.js +7 -7
- package/lib-module/Listbox/ListboxContext.js +2 -2
- package/lib-module/Listbox/ListboxGroup.js +2 -2
- package/lib-module/Listbox/ListboxItem.js +2 -3
- package/lib-module/Listbox/ListboxOverlay.js +2 -3
- package/lib-module/Listbox/PressableItem.js +2 -3
- package/lib-module/Modal/Modal.js +5 -5
- package/lib-module/Modal/ModalContent.js +7 -5
- package/lib-module/Modal/WebModal.js +16 -9
- package/lib-module/MultiSelectFilter/ModalOverlay.js +2 -2
- package/lib-module/MultiSelectFilter/MultiSelectFilter.js +10 -8
- package/lib-module/Notification/Notification.js +5 -5
- package/lib-module/OrderedList/Item.js +4 -8
- package/lib-module/OrderedList/ItemBase.js +2 -2
- package/lib-module/OrderedList/OrderedList.js +6 -12
- package/lib-module/OrderedList/OrderedListBase.js +2 -2
- package/lib-module/Pagination/PageButton.js +2 -2
- package/lib-module/Pagination/Pagination.js +2 -2
- package/lib-module/Pagination/SideButton.js +2 -2
- package/lib-module/PriceLockup/PriceLockup.js +5 -5
- package/lib-module/ProductCard/ProductCard.js +3 -2
- package/lib-module/ProductCardGroup/ProductCardGroup.js +5 -4
- package/lib-module/Progress/Progress.js +2 -2
- package/lib-module/Progress/ProgressBar.js +2 -2
- package/lib-module/Progress/ProgressBarBackground.js +2 -2
- package/lib-module/QuickLinks/QuickLinks.js +2 -2
- package/lib-module/QuickLinks/QuickLinksCard.js +4 -2
- package/lib-module/QuickLinks/QuickLinksItem.js +2 -2
- package/lib-module/QuickLinksFeature/QuickLinksFeature.js +9 -5
- package/lib-module/QuickLinksFeature/QuickLinksFeatureItem.js +10 -10
- package/lib-module/Radio/Radio.js +2 -2
- package/lib-module/Radio/RadioButton.js +62 -14
- package/lib-module/Radio/RadioGroup.js +2 -2
- package/lib-module/Radio/RadioInput.js +6 -16
- package/lib-module/RadioCard/RadioCard.js +2 -2
- package/lib-module/RadioCard/RadioCardGroup.js +2 -2
- package/lib-module/Responsive/Responsive.js +3 -2
- package/lib-module/Responsive/ResponsiveWithMediaQueryStyleSheet.js +3 -2
- package/lib-module/Search/Search.js +2 -2
- package/lib-module/Select/Group.js +4 -2
- package/lib-module/Select/Item.js +4 -2
- package/lib-module/Select/Picker.js +2 -2
- package/lib-module/Select/Picker.native.js +3 -3
- package/lib-module/Select/Select.js +4 -4
- package/lib-module/SideNav/Item.js +2 -2
- package/lib-module/SideNav/ItemContent.js +4 -2
- package/lib-module/SideNav/ItemsGroup.js +2 -2
- package/lib-module/SideNav/SideNav.js +3 -3
- package/lib-module/Skeleton/Skeleton.js +2 -2
- package/lib-module/SkipLink/SkipLink.js +2 -2
- package/lib-module/Spacer/Spacer.js +2 -2
- package/lib-module/StackView/StackView.js +2 -2
- package/lib-module/StackView/StackWrap.js +3 -3
- package/lib-module/StackView/StackWrapBox.js +2 -2
- package/lib-module/StackView/StackWrapGap.js +2 -2
- package/lib-module/StackView/getStackedContent.js +4 -4
- package/lib-module/StepTracker/Step.js +4 -2
- package/lib-module/StepTracker/StepTracker.js +2 -2
- package/lib-module/Tabs/Tabs.js +3 -3
- package/lib-module/Tabs/TabsItem.js +3 -3
- package/lib-module/Tags/Tags.js +2 -2
- package/lib-module/TextInput/TextArea.js +3 -3
- package/lib-module/TextInput/TextInput.js +2 -2
- package/lib-module/TextInput/TextInputBase.js +7 -7
- package/lib-module/ThemeProvider/ThemeProvider.js +5 -5
- package/lib-module/Timeline/Timeline.js +2 -2
- package/lib-module/ToggleSwitch/ToggleSwitch.js +2 -2
- package/lib-module/ToggleSwitch/ToggleSwitchGroup.js +2 -2
- package/lib-module/Tooltip/Tooltip.js +6 -6
- package/lib-module/Tooltip/Tooltip.native.js +12 -12
- package/lib-module/TooltipButton/TooltipButton.js +4 -2
- package/lib-module/Typography/Typography.js +2 -2
- package/lib-module/Validator/Validator.js +11 -11
- package/lib-module/ViewportProvider/ViewportProvider.js +2 -2
- package/lib-module/index.js +1 -0
- package/lib-module/utils/BaseView/BaseView.js +2 -2
- package/lib-module/utils/children.js +4 -4
- package/lib-module/utils/withLinkRouter.js +3 -3
- package/package.json +2 -2
- package/src/A11yInfoProvider/index.jsx +8 -8
- package/src/A11yText/index.jsx +2 -2
- package/src/ActivityIndicator/Spinner.jsx +2 -2
- package/src/ActivityIndicator/Spinner.native.jsx +2 -2
- package/src/Autocomplete/Autocomplete.jsx +15 -14
- package/src/Autocomplete/Loading.jsx +6 -3
- package/src/Autocomplete/Suggestions.jsx +2 -2
- package/src/Badge/Badge.jsx +2 -2
- package/src/BaseProvider/HydrationContext.jsx +5 -5
- package/src/Box/Box.jsx +5 -5
- package/src/Button/Button.jsx +11 -9
- package/src/Button/ButtonBase.jsx +2 -3
- package/src/Button/ButtonDropdown.jsx +2 -2
- package/src/Button/ButtonGroup.jsx +2 -2
- package/src/Button/ButtonLink.jsx +2 -2
- package/src/Card/Card.jsx +151 -11
- package/src/Card/CardBase.jsx +2 -2
- package/src/Card/PressableCardBase.jsx +18 -4
- package/src/CardGroup/CardGroup.jsx +249 -0
- package/src/CardGroup/dictionary.js +8 -0
- package/src/CardGroup/index.js +3 -0
- package/src/Carousel/Carousel.jsx +69 -53
- package/src/Carousel/CarouselFirstFocus/CarouselFirstFocus.jsx +2 -2
- package/src/Carousel/CarouselItem/CarouselItem.jsx +19 -17
- package/src/Carousel/CarouselStepTracker/CarouselStepTracker.jsx +5 -3
- package/src/Carousel/CarouselTabs/CarouselTabs.jsx +2 -2
- package/src/Carousel/CarouselTabs/CarouselTabsPanel.jsx +6 -6
- package/src/Carousel/CarouselTabs/CarouselTabsPanelItem.jsx +3 -3
- package/src/Carousel/CarouselThumbnail.jsx +6 -2
- package/src/Carousel/CarouselThumbnailNavigation.jsx +2 -2
- package/src/Checkbox/Checkbox.jsx +2 -2
- package/src/Checkbox/CheckboxButton.jsx +5 -7
- package/src/Checkbox/CheckboxGroup.jsx +2 -2
- package/src/Checkbox/CheckboxInput.jsx +15 -12
- package/src/CheckboxCard/CheckboxCard.jsx +2 -2
- package/src/CheckboxCardGroup/CheckboxCardGroup.jsx +2 -2
- package/src/ColourToggle/ColourBubble.jsx +5 -4
- package/src/ColourToggle/ColourToggle.jsx +3 -3
- package/src/Divider/Divider.jsx +2 -2
- package/src/ExpandCollapse/Accordion.jsx +4 -2
- package/src/ExpandCollapse/Control.jsx +2 -2
- package/src/ExpandCollapse/ExpandCollapse.jsx +2 -2
- package/src/ExpandCollapse/Panel.jsx +3 -3
- package/src/Feedback/Feedback.jsx +2 -2
- package/src/Fieldset/Fieldset.jsx +2 -2
- package/src/Fieldset/FieldsetContainer.jsx +2 -2
- package/src/Fieldset/FieldsetContainer.native.jsx +2 -2
- package/src/Fieldset/Legend.jsx +2 -2
- package/src/Fieldset/Legend.native.jsx +2 -2
- package/src/FlexGrid/Col/Col.jsx +3 -3
- package/src/FlexGrid/FlexGrid.jsx +2 -2
- package/src/FlexGrid/Row/Row.jsx +2 -2
- package/src/Footnote/Footnote.jsx +111 -98
- package/src/Footnote/FootnoteLink.jsx +35 -31
- package/src/HorizontalScroll/HorizontalScroll.jsx +8 -8
- package/src/HorizontalScroll/HorizontalScrollButton.jsx +2 -2
- package/src/HorizontalScroll/ScrollViewEnd.jsx +4 -8
- package/src/HorizontalScroll/ScrollViewEnd.native.jsx +2 -2
- package/src/Icon/Icon.jsx +2 -2
- package/src/Icon/IconText.jsx +2 -2
- package/src/IconButton/IconButton.jsx +2 -2
- package/src/InputLabel/InputLabel.jsx +2 -2
- package/src/InputLabel/LabelContent.jsx +2 -2
- package/src/InputLabel/LabelContent.native.jsx +2 -2
- package/src/InputSupports/InputSupports.jsx +4 -3
- package/src/Link/ChevronLink.jsx +2 -2
- package/src/Link/InlinePressable.jsx +22 -15
- package/src/Link/InlinePressable.native.jsx +12 -6
- package/src/Link/Link.jsx +2 -2
- package/src/Link/LinkBase.jsx +2 -2
- package/src/Link/TextButton.jsx +2 -2
- package/src/List/List.jsx +15 -7
- package/src/List/ListItem.jsx +2 -2
- package/src/List/ListItemBase.jsx +6 -12
- package/src/List/ListItemContent.jsx +5 -2
- package/src/List/ListItemMark.jsx +5 -3
- package/src/List/PressableListItemBase.jsx +2 -2
- package/src/Listbox/GroupControl.jsx +5 -2
- package/src/Listbox/Listbox.jsx +7 -7
- package/src/Listbox/ListboxContext.js +2 -2
- package/src/Listbox/ListboxGroup.jsx +2 -2
- package/src/Listbox/ListboxItem.jsx +2 -3
- package/src/Listbox/ListboxOverlay.jsx +2 -3
- package/src/Listbox/PressableItem.jsx +2 -3
- package/src/Modal/Modal.jsx +5 -5
- package/src/Modal/ModalContent.jsx +132 -125
- package/src/Modal/WebModal.jsx +13 -8
- package/src/MultiSelectFilter/ModalOverlay.jsx +2 -2
- package/src/MultiSelectFilter/MultiSelectFilter.jsx +263 -252
- package/src/Notification/Notification.jsx +5 -5
- package/src/OrderedList/Item.jsx +4 -6
- package/src/OrderedList/ItemBase.jsx +2 -2
- package/src/OrderedList/OrderedList.jsx +4 -7
- package/src/OrderedList/OrderedListBase.jsx +2 -2
- package/src/Pagination/PageButton.jsx +2 -2
- package/src/Pagination/Pagination.jsx +2 -2
- package/src/Pagination/SideButton.jsx +2 -2
- package/src/PriceLockup/PriceLockup.jsx +93 -88
- package/src/ProductCard/ProductCard.jsx +90 -84
- package/src/ProductCardGroup/ProductCardGroup.jsx +5 -5
- package/src/Progress/Progress.jsx +2 -2
- package/src/Progress/ProgressBar.jsx +2 -2
- package/src/Progress/ProgressBarBackground.jsx +4 -2
- package/src/QuickLinks/QuickLinks.jsx +2 -2
- package/src/QuickLinks/QuickLinksCard.jsx +9 -3
- package/src/QuickLinks/QuickLinksItem.jsx +2 -2
- package/src/QuickLinksFeature/QuickLinksFeature.jsx +31 -27
- package/src/QuickLinksFeature/QuickLinksFeatureItem.jsx +3 -3
- package/src/Radio/Radio.jsx +2 -2
- package/src/Radio/RadioButton.jsx +58 -6
- package/src/Radio/RadioGroup.jsx +2 -2
- package/src/Radio/RadioInput.jsx +15 -14
- package/src/RadioCard/RadioCard.jsx +2 -2
- package/src/RadioCard/RadioCardGroup.jsx +2 -2
- package/src/Responsive/Responsive.jsx +8 -3
- package/src/Responsive/ResponsiveWithMediaQueryStyleSheet.jsx +23 -16
- package/src/Search/Search.jsx +2 -2
- package/src/Select/Group.jsx +9 -3
- package/src/Select/Item.jsx +7 -1
- package/src/Select/Picker.jsx +2 -2
- package/src/Select/Picker.native.jsx +3 -3
- package/src/Select/Select.jsx +4 -4
- package/src/SideNav/Item.jsx +2 -2
- package/src/SideNav/ItemContent.jsx +7 -3
- package/src/SideNav/ItemsGroup.jsx +2 -2
- package/src/SideNav/SideNav.jsx +3 -3
- package/src/Skeleton/Skeleton.jsx +2 -2
- package/src/SkipLink/SkipLink.jsx +2 -2
- package/src/Spacer/Spacer.jsx +2 -2
- package/src/StackView/StackView.jsx +2 -2
- package/src/StackView/StackWrap.jsx +3 -3
- package/src/StackView/StackWrapBox.jsx +2 -2
- package/src/StackView/StackWrapGap.jsx +2 -2
- package/src/StackView/getStackedContent.jsx +4 -4
- package/src/StepTracker/Step.jsx +75 -67
- package/src/StepTracker/StepTracker.jsx +2 -2
- package/src/Tabs/Tabs.jsx +3 -3
- package/src/Tabs/TabsItem.jsx +3 -3
- package/src/Tags/Tags.jsx +2 -2
- package/src/TextInput/TextArea.jsx +3 -3
- package/src/TextInput/TextInput.jsx +2 -2
- package/src/TextInput/TextInputBase.jsx +7 -7
- package/src/ThemeProvider/ThemeProvider.jsx +5 -5
- package/src/Timeline/Timeline.jsx +2 -2
- package/src/ToggleSwitch/ToggleSwitch.jsx +2 -2
- package/src/ToggleSwitch/ToggleSwitchGroup.jsx +2 -2
- package/src/Tooltip/Tooltip.jsx +6 -6
- package/src/Tooltip/Tooltip.native.jsx +12 -12
- package/src/TooltipButton/TooltipButton.jsx +5 -2
- package/src/Typography/Typography.jsx +2 -2
- package/src/Validator/Validator.jsx +11 -11
- package/src/ViewportProvider/ViewportProvider.jsx +2 -2
- package/src/index.js +1 -0
- package/src/utils/BaseView/BaseView.jsx +2 -2
- package/src/utils/children.jsx +4 -4
- package/src/utils/withLinkRouter.jsx +3 -3
- package/types/ExpandCollapse.d.ts +1 -1
package/lib/Carousel/Carousel.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/View"));
|
|
9
9
|
var _Animated = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Animated"));
|
|
10
10
|
var _PanResponder = _interopRequireDefault(require("react-native-web/dist/cjs/exports/PanResponder"));
|
|
@@ -28,8 +28,6 @@ var _CarouselTabsPanelItem = _interopRequireDefault(require("./CarouselTabs/Caro
|
|
|
28
28
|
var _dictionary = _interopRequireDefault(require("./dictionary"));
|
|
29
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
32
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
31
|
const TRANSITION_MODES = {
|
|
34
32
|
MANUAL: 'manual',
|
|
35
33
|
AUTOMATIC: 'automatic',
|
|
@@ -165,7 +163,7 @@ const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_u
|
|
|
165
163
|
- `spaceBetweenSlideAndPreviousNextNavigation` - Horizontal space between slide and previous/next navigational buttons
|
|
166
164
|
- `spaceBetweenSlideAndPanelNavigation` - Vertical space between slide area and panel navigation area
|
|
167
165
|
*/
|
|
168
|
-
const Carousel = /*#__PURE__*/
|
|
166
|
+
const Carousel = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
169
167
|
let {
|
|
170
168
|
tokens,
|
|
171
169
|
variant,
|
|
@@ -224,45 +222,45 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
224
222
|
showPanelTabs,
|
|
225
223
|
spaceBetweenSlideAndPreviousNextNavigation
|
|
226
224
|
} = themeTokens;
|
|
227
|
-
const [activeIndex, setActiveIndex] =
|
|
228
|
-
const activeIndexRef =
|
|
225
|
+
const [activeIndex, setActiveIndex] = _react.default.useState(0);
|
|
226
|
+
const activeIndexRef = _react.default.useRef(activeIndex);
|
|
229
227
|
const {
|
|
230
228
|
reduceMotionEnabled
|
|
231
229
|
} = (0, _A11yInfoProvider.useA11yInfo)();
|
|
232
|
-
const reduceMotionRef =
|
|
230
|
+
const reduceMotionRef = _react.default.useRef(reduceMotionEnabled);
|
|
233
231
|
const [containerLayout, setContainerLayout] = _react.default.useState({
|
|
234
232
|
x: 0,
|
|
235
233
|
y: 0,
|
|
236
234
|
width: 0
|
|
237
235
|
});
|
|
238
|
-
const containerLayoutRef =
|
|
239
|
-
const [previousNextNavigationButtonWidth, setPreviousNextNavigationButtonWidth] =
|
|
240
|
-
const firstFocusRef =
|
|
241
|
-
const pan =
|
|
242
|
-
const animatedX =
|
|
243
|
-
const animatedY =
|
|
244
|
-
const [isAnimating, setIsAnimating] =
|
|
236
|
+
const containerLayoutRef = _react.default.useRef(containerLayout);
|
|
237
|
+
const [previousNextNavigationButtonWidth, setPreviousNextNavigationButtonWidth] = _react.default.useState(0);
|
|
238
|
+
const firstFocusRef = _react.default.useRef(null);
|
|
239
|
+
const pan = _react.default.useRef(new _Animated.default.ValueXY()).current;
|
|
240
|
+
const animatedX = _react.default.useRef(0);
|
|
241
|
+
const animatedY = _react.default.useRef(0);
|
|
242
|
+
const [isAnimating, setIsAnimating] = _react.default.useState(false);
|
|
245
243
|
/**
|
|
246
244
|
* While having the same starting point, `isAutoPlayEnabled` and `isCarouselPlaying` are different states
|
|
247
245
|
*
|
|
248
246
|
* `isAutoPlayEnabled` is a state to determine if the autoplay feature is enabled or disabled
|
|
249
247
|
* `isCarouselPlaying` is a state to determine if the carousel is currently playing or paused
|
|
250
248
|
*/
|
|
251
|
-
const [isAutoPlayEnabled, setIsAutoPlayEnabled] =
|
|
252
|
-
const [isCarouselPlaying, setisCarouselPlaying] =
|
|
253
|
-
const isSwiping =
|
|
254
|
-
const autoPlayRef =
|
|
249
|
+
const [isAutoPlayEnabled, setIsAutoPlayEnabled] = _react.default.useState(autoPlayFeatureEnabled);
|
|
250
|
+
const [isCarouselPlaying, setisCarouselPlaying] = _react.default.useState(autoPlayFeatureEnabled);
|
|
251
|
+
const isSwiping = _react.default.useRef(false);
|
|
252
|
+
const autoPlayRef = _react.default.useRef(null);
|
|
255
253
|
const isFirstSlide = !activeIndex;
|
|
256
254
|
const isLastSlide = activeIndex + 1 >= childrenArray.length;
|
|
257
|
-
const handleAnimationStart =
|
|
255
|
+
const handleAnimationStart = _react.default.useCallback(function () {
|
|
258
256
|
if (typeof onAnimationStart === 'function') onAnimationStart(...arguments);
|
|
259
257
|
setIsAnimating(true);
|
|
260
258
|
}, [onAnimationStart]);
|
|
261
|
-
const handleAnimationEnd =
|
|
259
|
+
const handleAnimationEnd = _react.default.useCallback(function () {
|
|
262
260
|
if (typeof onAnimationEnd === 'function') onAnimationEnd(...arguments);
|
|
263
261
|
setIsAnimating(false);
|
|
264
262
|
}, [onAnimationEnd]);
|
|
265
|
-
const updateOffset =
|
|
263
|
+
const updateOffset = _react.default.useCallback(() => {
|
|
266
264
|
animatedX.current = containerLayoutRef.current.width * activeIndexRef.current * -1;
|
|
267
265
|
animatedY.current = 0;
|
|
268
266
|
pan.setOffset({
|
|
@@ -274,7 +272,7 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
274
272
|
y: 0
|
|
275
273
|
});
|
|
276
274
|
}, [pan, animatedX]);
|
|
277
|
-
const animate =
|
|
275
|
+
const animate = _react.default.useCallback((toValue, toIndex) => {
|
|
278
276
|
const handleAnimationEndToIndex = function () {
|
|
279
277
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
280
278
|
args[_key] = arguments[_key];
|
|
@@ -302,12 +300,21 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
302
300
|
}).start(handleAnimationEndToIndex);
|
|
303
301
|
}
|
|
304
302
|
}, [pan, springConfig, handleAnimationEnd, transitionDuration, isAutoPlayEnabled]);
|
|
305
|
-
const stopAutoplay =
|
|
303
|
+
const stopAutoplay = _react.default.useCallback(() => {
|
|
306
304
|
if (autoPlayRef !== null && autoPlayRef !== void 0 && autoPlayRef.current) {
|
|
307
305
|
clearTimeout(autoPlayRef === null || autoPlayRef === void 0 ? void 0 : autoPlayRef.current);
|
|
308
306
|
}
|
|
309
307
|
}, []);
|
|
310
|
-
const
|
|
308
|
+
const triggerRefocus = _react.default.useCallback(() => {
|
|
309
|
+
if (refocus && _Platform.default.OS === 'web') {
|
|
310
|
+
var _firstFocusRef$curren;
|
|
311
|
+
(_firstFocusRef$curren = firstFocusRef.current) === null || _firstFocusRef$curren === void 0 ? void 0 : _firstFocusRef$curren.focus({
|
|
312
|
+
preventScroll: true,
|
|
313
|
+
focusVisible: false
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
}, [refocus, firstFocusRef]);
|
|
317
|
+
const updateIndex = _react.default.useCallback(function () {
|
|
311
318
|
let delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
312
319
|
let transitionMode = arguments.length > 1 ? arguments[1] : undefined;
|
|
313
320
|
const toValue = {
|
|
@@ -338,51 +345,48 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
338
345
|
setisCarouselPlaying(false);
|
|
339
346
|
} else if (isAutoPlayEnabled) {
|
|
340
347
|
autoPlayRef.current = setTimeout(() => {
|
|
341
|
-
var _firstFocusRef$curren;
|
|
342
348
|
updateOffset();
|
|
343
349
|
handleAnimationStart(activeIndexRef.current);
|
|
344
350
|
updateIndex(slideDuration < 0 ? -1 : 1, TRANSITION_MODES.AUTOMATIC);
|
|
345
|
-
|
|
351
|
+
triggerRefocus();
|
|
346
352
|
}, Math.abs(slideDuration) * 1000);
|
|
347
353
|
}
|
|
348
354
|
}
|
|
349
355
|
if (onIndexChanged) onIndexChanged(calcDelta, index);
|
|
350
356
|
return calcDelta;
|
|
351
|
-
}, [handleAnimationStart,
|
|
352
|
-
const startAutoplay =
|
|
357
|
+
}, [handleAnimationStart, triggerRefocus, slideDuration, updateOffset, animate, childrenArray.length, onIndexChanged, isCarouselPlaying, stopAutoplay, isAutoPlayEnabled]);
|
|
358
|
+
const startAutoplay = _react.default.useCallback(() => {
|
|
353
359
|
stopAutoplay();
|
|
354
360
|
if (isAutoPlayEnabled) {
|
|
355
361
|
autoPlayRef.current = setTimeout(() => {
|
|
356
|
-
var _firstFocusRef$curren2;
|
|
357
362
|
updateOffset();
|
|
358
363
|
handleAnimationStart(activeIndexRef.current);
|
|
359
364
|
updateIndex(slideDuration < 0 ? -1 : 1, TRANSITION_MODES.AUTOMATIC);
|
|
360
|
-
|
|
365
|
+
triggerRefocus();
|
|
361
366
|
}, Math.abs(slideDuration) * 1000);
|
|
362
367
|
}
|
|
363
|
-
}, [handleAnimationStart,
|
|
364
|
-
const fixOffsetAndGo =
|
|
365
|
-
var _firstFocusRef$curren3;
|
|
368
|
+
}, [handleAnimationStart, triggerRefocus, updateIndex, updateOffset, slideDuration, stopAutoplay, isAutoPlayEnabled]);
|
|
369
|
+
const fixOffsetAndGo = _react.default.useCallback((delta, transitionMode) => {
|
|
366
370
|
updateOffset();
|
|
367
371
|
handleAnimationStart(activeIndexRef.current);
|
|
368
372
|
updateIndex(delta, transitionMode);
|
|
369
|
-
|
|
370
|
-
}, [updateIndex, updateOffset, handleAnimationStart,
|
|
371
|
-
const goToNeighboring =
|
|
373
|
+
triggerRefocus();
|
|
374
|
+
}, [updateIndex, updateOffset, handleAnimationStart, triggerRefocus]);
|
|
375
|
+
const goToNeighboring = _react.default.useCallback(function () {
|
|
372
376
|
let toPrev = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
373
377
|
let transitionMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : TRANSITION_MODES.MANUAL;
|
|
374
378
|
fixOffsetAndGo(toPrev ? -1 : 1, transitionMode);
|
|
375
379
|
}, [fixOffsetAndGo]);
|
|
376
|
-
|
|
380
|
+
_react.default.useEffect(() => {
|
|
377
381
|
activeIndexRef.current = activeIndex;
|
|
378
382
|
}, [activeIndex]);
|
|
379
|
-
|
|
383
|
+
_react.default.useEffect(() => {
|
|
380
384
|
reduceMotionRef.current = reduceMotionEnabled;
|
|
381
385
|
}, [reduceMotionEnabled]);
|
|
382
|
-
|
|
386
|
+
_react.default.useEffect(() => {
|
|
383
387
|
containerLayoutRef.current = containerLayout;
|
|
384
388
|
}, [containerLayout]);
|
|
385
|
-
|
|
389
|
+
_react.default.useEffect(() => {
|
|
386
390
|
pan.x.addListener(_ref4 => {
|
|
387
391
|
let {
|
|
388
392
|
value
|
|
@@ -404,7 +408,7 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
404
408
|
pan.y.removeAllListeners();
|
|
405
409
|
};
|
|
406
410
|
}, [pan.x, pan.y, startAutoplay, stopAutoplay, isCarouselPlaying]);
|
|
407
|
-
|
|
411
|
+
_react.default.useEffect(() => {
|
|
408
412
|
const subscription = _Dimensions.default.addEventListener('change', () => {
|
|
409
413
|
updateOffset();
|
|
410
414
|
});
|
|
@@ -416,10 +420,10 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
416
420
|
}
|
|
417
421
|
};
|
|
418
422
|
}, [updateOffset]);
|
|
419
|
-
|
|
423
|
+
_react.default.useEffect(() => {
|
|
420
424
|
setIsAutoPlayEnabled(autoPlay && slideDuration > 0 && transitionDuration > 0 && childrenArray.length > 1);
|
|
421
425
|
}, [autoPlay, slideDuration, transitionDuration, childrenArray.length]);
|
|
422
|
-
|
|
426
|
+
_react.default.useEffect(() => {
|
|
423
427
|
return () => {
|
|
424
428
|
stopAutoplay();
|
|
425
429
|
};
|
|
@@ -451,7 +455,7 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
451
455
|
} = _ref7;
|
|
452
456
|
return setPreviousNextNavigationButtonWidth(width);
|
|
453
457
|
};
|
|
454
|
-
const isSwipeAllowed =
|
|
458
|
+
const isSwipeAllowed = _react.default.useCallback(() => {
|
|
455
459
|
if (childrenArray.length === 1) {
|
|
456
460
|
return false;
|
|
457
461
|
}
|
|
@@ -460,7 +464,7 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
460
464
|
}
|
|
461
465
|
return true;
|
|
462
466
|
}, [viewport, childrenArray.length]);
|
|
463
|
-
const panResponder =
|
|
467
|
+
const panResponder = _react.default.useMemo(() => _PanResponder.default.create({
|
|
464
468
|
onPanResponderTerminationRequest: () => false,
|
|
465
469
|
onMoveShouldSetResponderCapture: () => true,
|
|
466
470
|
onMoveShouldSetPanResponderCapture: (_, gestureState) => {
|
|
@@ -500,13 +504,13 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
500
504
|
isSwiping.current = false;
|
|
501
505
|
}
|
|
502
506
|
}), [updateIndex, updateOffset, animate, isSwipeAllowed, minDistanceForAction, handleAnimationStart, minDistanceToCapture, pan.x, startAutoplay, stopAutoplay, isCarouselPlaying]);
|
|
503
|
-
const goToNext =
|
|
507
|
+
const goToNext = _react.default.useCallback(() => {
|
|
504
508
|
goToNeighboring();
|
|
505
509
|
}, [goToNeighboring]);
|
|
506
|
-
const goToPrev =
|
|
510
|
+
const goToPrev = _react.default.useCallback(() => {
|
|
507
511
|
goToNeighboring(true);
|
|
508
512
|
}, [goToNeighboring]);
|
|
509
|
-
const goTo =
|
|
513
|
+
const goTo = _react.default.useCallback(function () {
|
|
510
514
|
let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
511
515
|
const delta = index - activeIndexRef.current;
|
|
512
516
|
if (delta) {
|
|
@@ -522,7 +526,7 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
522
526
|
raised: !(variant !== null && variant !== void 0 && variant.inverse) && true,
|
|
523
527
|
inverse: variant === null || variant === void 0 ? void 0 : variant.inverse
|
|
524
528
|
};
|
|
525
|
-
const getCopyWithPlaceholders =
|
|
529
|
+
const getCopyWithPlaceholders = _react.default.useCallback(copyKey => {
|
|
526
530
|
const copyText = getCopy(copyKey).replace(/%\{title\}/g, title).replace(/%\{itemLabel\}/g, itemLabel).replace(/%\{stepNumber\}/g, activeIndex + 1).replace(/%\{stepCount\}/g, childrenArray.length);
|
|
527
531
|
|
|
528
532
|
// First word might be a lowercase placeholder: capitalize the first letter
|
|
@@ -567,7 +571,7 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
567
571
|
focusable: true
|
|
568
572
|
})
|
|
569
573
|
};
|
|
570
|
-
const onAnimationControlButtonPress =
|
|
574
|
+
const onAnimationControlButtonPress = _react.default.useCallback(() => {
|
|
571
575
|
if (isCarouselPlaying) {
|
|
572
576
|
stopAutoplay();
|
|
573
577
|
} else {
|
|
@@ -586,7 +590,13 @@ const Carousel = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
586
590
|
refocus: refocus,
|
|
587
591
|
width: containerLayout.width,
|
|
588
592
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_View.default, {
|
|
589
|
-
style: staticStyles.root,
|
|
593
|
+
style: [staticStyles.root, {
|
|
594
|
+
..._Platform.default.select({
|
|
595
|
+
web: {
|
|
596
|
+
outline: 'none'
|
|
597
|
+
}
|
|
598
|
+
})
|
|
599
|
+
}],
|
|
590
600
|
onLayout: onContainerLayout,
|
|
591
601
|
ref: ref,
|
|
592
602
|
...systemProps,
|
|
@@ -720,7 +730,7 @@ Carousel.propTypes = {
|
|
|
720
730
|
* This function is also provided with a parameter indicating changed index (either 1, or -1)
|
|
721
731
|
* Use it as follows:
|
|
722
732
|
* ```js
|
|
723
|
-
* const onIndexChangedCallback = useCallback((changedIndex, currentActiveIndex) => {
|
|
733
|
+
* const onIndexChangedCallback = React.useCallback((changedIndex, currentActiveIndex) => {
|
|
724
734
|
* console.log(changedIndex)
|
|
725
735
|
* }, []) // pass local dependencies as per your component
|
|
726
736
|
* <Carousel
|
|
@@ -729,7 +739,7 @@ Carousel.propTypes = {
|
|
|
729
739
|
* <Carousel.Item>First Slide</Carousel.Item>
|
|
730
740
|
* </Carousel>
|
|
731
741
|
* ```
|
|
732
|
-
* Caution: Always consider wrapping your callback for `onIndexChanged` in `useCallback` in order to avoid bugs and performance issues
|
|
742
|
+
* Caution: Always consider wrapping your callback for `onIndexChanged` in `React.useCallback` in order to avoid bugs and performance issues
|
|
733
743
|
*/
|
|
734
744
|
onIndexChanged: _propTypes.default.func,
|
|
735
745
|
/**
|
|
@@ -771,7 +781,7 @@ Carousel.propTypes = {
|
|
|
771
781
|
* This function is also provided with a parameter indicating the current slide index before animation starts
|
|
772
782
|
* Use it as follows:
|
|
773
783
|
* ```js
|
|
774
|
-
* const onAnimationStartCallback = useCallback((currentIndex) => {
|
|
784
|
+
* const onAnimationStartCallback = React.useCallback((currentIndex) => {
|
|
775
785
|
* console.log(currentIndex)
|
|
776
786
|
* }, []) // pass local dependencies as per your component
|
|
777
787
|
* <Carousel
|
|
@@ -780,7 +790,7 @@ Carousel.propTypes = {
|
|
|
780
790
|
* <Carousel.Item>First Slide</Carousel.Item>
|
|
781
791
|
* </Carousel>
|
|
782
792
|
* ```
|
|
783
|
-
* Caution: Always consider wrapping your callback for `onAnimationStart` in `useCallback` in order to avoid bugs and performance issues
|
|
793
|
+
* Caution: Always consider wrapping your callback for `onAnimationStart` in `React.useCallback` in order to avoid bugs and performance issues
|
|
784
794
|
*/
|
|
785
795
|
onAnimationStart: _propTypes.default.func,
|
|
786
796
|
/**
|
|
@@ -788,7 +798,7 @@ Carousel.propTypes = {
|
|
|
788
798
|
* This function is also provided with a parameter indicating the updated slide index after animation ends
|
|
789
799
|
* Use it as follows:
|
|
790
800
|
* ```js
|
|
791
|
-
* const onAnimationEndCallback = useCallback((changedIndex) => {
|
|
801
|
+
* const onAnimationEndCallback = React.useCallback((changedIndex) => {
|
|
792
802
|
* console.log(changedIndex)
|
|
793
803
|
* }, []) // pass local dependencies as per your component
|
|
794
804
|
* <Carousel
|
|
@@ -797,7 +807,7 @@ Carousel.propTypes = {
|
|
|
797
807
|
* <Carousel.Item>First Slide</Carousel.Item>
|
|
798
808
|
* </Carousel>
|
|
799
809
|
* ```
|
|
800
|
-
* Caution: Always consider wrapping your callback for `onAnimationEnd` in `useCallback` in order to avoid bugs and performance issues
|
|
810
|
+
* Caution: Always consider wrapping your callback for `onAnimationEnd` in `React.useCallback` in order to avoid bugs and performance issues
|
|
801
811
|
*/
|
|
802
812
|
onAnimationEnd: _propTypes.default.func,
|
|
803
813
|
/**
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Pressable = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Pressable"));
|
|
9
9
|
var _Platform = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Platform"));
|
|
10
10
|
var _StyleSheet = _interopRequireDefault(require("react-native-web/dist/cjs/exports/StyleSheet"));
|
|
@@ -12,14 +12,12 @@ var _propTypes = require("prop-types");
|
|
|
12
12
|
var _CarouselContext = require("../CarouselContext");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
15
|
/**
|
|
18
16
|
* Focus target so that when a new slide is shown, the user can tab into
|
|
19
17
|
* its content using the keyboard.
|
|
20
18
|
*
|
|
21
19
|
* @TODO rework this after integrating with SkipLink when available.
|
|
22
|
-
*/const CarouselFirstFocus = /*#__PURE__*/
|
|
20
|
+
*/const CarouselFirstFocus = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
23
21
|
let {
|
|
24
22
|
title
|
|
25
23
|
} = _ref;
|
|
@@ -18,7 +18,7 @@ const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_u
|
|
|
18
18
|
* `Carousel.Item` is used to wrap the content of an individual slide and is suppsoed to be the
|
|
19
19
|
* only top-level component passed to the `Carousel`
|
|
20
20
|
*/
|
|
21
|
-
const CarouselItem = _ref => {
|
|
21
|
+
const CarouselItem = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
22
22
|
let {
|
|
23
23
|
children,
|
|
24
24
|
elementIndex,
|
|
@@ -46,9 +46,10 @@ const CarouselItem = _ref => {
|
|
|
46
46
|
style: style,
|
|
47
47
|
...selectedProps,
|
|
48
48
|
...focusabilityProps,
|
|
49
|
+
ref: ref,
|
|
49
50
|
children: children
|
|
50
51
|
});
|
|
51
|
-
};
|
|
52
|
+
});
|
|
52
53
|
CarouselItem.propTypes = {
|
|
53
54
|
...selectedSystemPropTypes,
|
|
54
55
|
variant: _utils.variantProp.propType,
|
|
@@ -11,7 +11,7 @@ var _StackView = _interopRequireDefault(require("../../StackView"));
|
|
|
11
11
|
var _utils = require("../../utils");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
const CarouselStepTracker = _ref => {
|
|
14
|
+
const CarouselStepTracker = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
15
15
|
let {
|
|
16
16
|
variant
|
|
17
17
|
} = _ref;
|
|
@@ -40,6 +40,7 @@ const CarouselStepTracker = _ref => {
|
|
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_StackView.default, {
|
|
41
41
|
direction: "row",
|
|
42
42
|
tokens: stackViewTokens,
|
|
43
|
+
ref: ref,
|
|
43
44
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepTracker.default, {
|
|
44
45
|
current: activeIndex,
|
|
45
46
|
steps: steps,
|
|
@@ -52,7 +53,8 @@ const CarouselStepTracker = _ref => {
|
|
|
52
53
|
variant: variant
|
|
53
54
|
})
|
|
54
55
|
});
|
|
55
|
-
};
|
|
56
|
+
});
|
|
57
|
+
CarouselStepTracker.displayName = 'CarouselStepTracker';
|
|
56
58
|
CarouselStepTracker.propTypes = {
|
|
57
59
|
variant: _utils.variantProp.propType
|
|
58
60
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _utils = require("../../utils");
|
|
10
10
|
var _Carousel = _interopRequireDefault(require("../Carousel"));
|
|
@@ -14,9 +14,7 @@ var _CarouselTabs$propTyp, _CarouselTabs$propTyp2;
|
|
|
14
14
|
* @deprecated Please use Carousel and pass the `tabs` prop.
|
|
15
15
|
*/
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
const CarouselTabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
17
|
+
const CarouselTabs = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
20
18
|
let {
|
|
21
19
|
items,
|
|
22
20
|
refocus = true,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/View"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _StackView = _interopRequireDefault(require("../../StackView"));
|
|
@@ -12,12 +12,10 @@ var _CarouselContext = require("../CarouselContext");
|
|
|
12
12
|
var _CarouselTabsPanelItem = _interopRequireDefault(require("./CarouselTabsPanelItem"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
15
|
const selectTabPanelStyle = () => ({
|
|
18
16
|
backgroundColor: 'transparent'
|
|
19
17
|
});
|
|
20
|
-
const CarouselTabsPanel = /*#__PURE__*/
|
|
18
|
+
const CarouselTabsPanel = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
21
19
|
let {
|
|
22
20
|
items
|
|
23
21
|
} = _ref;
|
|
@@ -25,13 +23,13 @@ const CarouselTabsPanel = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
25
23
|
activeIndex,
|
|
26
24
|
goTo
|
|
27
25
|
} = (0, _CarouselContext.useCarousel)();
|
|
28
|
-
const nextFocusRef =
|
|
29
|
-
const firstTabRef =
|
|
30
|
-
const [isInverse, setIsInverse] =
|
|
26
|
+
const nextFocusRef = _react.default.useRef();
|
|
27
|
+
const firstTabRef = _react.default.useRef();
|
|
28
|
+
const [isInverse, setIsInverse] = _react.default.useState(false);
|
|
31
29
|
const lastTabSelected = activeIndex === items.length - 1;
|
|
32
30
|
|
|
33
31
|
// Get current select tab style
|
|
34
|
-
|
|
32
|
+
_react.default.useEffect(() => {
|
|
35
33
|
const [selectedVariantIsInverse] = items.filter((_, index) => index === activeIndex);
|
|
36
34
|
setIsInverse(selectedVariantIsInverse === null || selectedVariantIsInverse === void 0 ? void 0 : selectedVariantIsInverse.inverse);
|
|
37
35
|
}, [items, activeIndex]);
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _Pressable = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Pressable"));
|
|
10
10
|
var _Text = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Text"));
|
|
@@ -13,8 +13,6 @@ var _ThemeProvider = require("../../ThemeProvider");
|
|
|
13
13
|
var _utils = require("../../utils");
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
16
|
const [selectPressProps, pressPropTypes] = (0, _utils.selectSystemProps)([_utils.a11yProps, _utils.pressProps, _utils.viewProps]);
|
|
19
17
|
const [selectTextProps, textPropTypes] = (0, _utils.selectSystemProps)([_utils.textProps]);
|
|
20
18
|
const selectContainerStyles = _ref => {
|
|
@@ -69,7 +67,7 @@ const selectTextStyles = _ref2 => {
|
|
|
69
67
|
color
|
|
70
68
|
});
|
|
71
69
|
};
|
|
72
|
-
const CarouselTabsPanelItem = /*#__PURE__*/
|
|
70
|
+
const CarouselTabsPanelItem = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
73
71
|
let {
|
|
74
72
|
title,
|
|
75
73
|
selected,
|
|
@@ -82,7 +80,7 @@ const CarouselTabsPanelItem = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) =
|
|
|
82
80
|
// Workaround for React Native Web https://github.com/necolas/react-native-web/issues/2357
|
|
83
81
|
// Don't allow disabled to be set while focus is true else focus state gets locked `true`
|
|
84
82
|
// (must refocus _after_ calling `goTo`, else focus target content is not up to date)
|
|
85
|
-
const [isFocused, setIsFocused] =
|
|
83
|
+
const [isFocused, setIsFocused] = _react.default.useState(false);
|
|
86
84
|
const disabled = (inactive || selected) && !isFocused;
|
|
87
85
|
const getTokens = (0, _ThemeProvider.useThemeTokensCallback)('CarouselTabsPanelItem', tokens, variant);
|
|
88
86
|
const resolveTokens = pressState => getTokens((0, _utils.resolvePressableState)(pressState, {
|
|
@@ -34,7 +34,7 @@ const selectPressableTokens = _ref => {
|
|
|
34
34
|
* `Carousel.Thumbnail` is used to wrap the content of an individual slide and is suppsoed to be the
|
|
35
35
|
* only top-level component passed to the `Carousel`
|
|
36
36
|
*/
|
|
37
|
-
const CarouselThumbnail = _ref2 => {
|
|
37
|
+
const CarouselThumbnail = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
38
38
|
let {
|
|
39
39
|
accessibilityLabel,
|
|
40
40
|
alt,
|
|
@@ -100,6 +100,7 @@ const CarouselThumbnail = _ref2 => {
|
|
|
100
100
|
outline: 'none'
|
|
101
101
|
}] : styles.nonSelected];
|
|
102
102
|
},
|
|
103
|
+
ref: ref,
|
|
103
104
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.default, {
|
|
104
105
|
accessibilityIgnoresInvertColors: true,
|
|
105
106
|
accessibilityLabel: accessibilityLabel ?? alt,
|
|
@@ -108,7 +109,8 @@ const CarouselThumbnail = _ref2 => {
|
|
|
108
109
|
title: thumbnailTitle
|
|
109
110
|
})
|
|
110
111
|
}, src);
|
|
111
|
-
};
|
|
112
|
+
});
|
|
113
|
+
CarouselThumbnail.displayName = 'CarouselThumbnail';
|
|
112
114
|
CarouselThumbnail.propTypes = {
|
|
113
115
|
accessibilityLabel: _propTypes.default.string,
|
|
114
116
|
alt: _propTypes.default.string,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/View"));
|
|
10
10
|
var _CarouselContext = require("./CarouselContext");
|
|
@@ -14,9 +14,7 @@ var _ThemeProvider = require("../ThemeProvider");
|
|
|
14
14
|
var _ViewportProvider = require("../ViewportProvider");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
const CarouselThumbnailNavigation = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
17
|
+
const CarouselThumbnailNavigation = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
20
18
|
let {
|
|
21
19
|
thumbnails = []
|
|
22
20
|
} = _ref;
|
package/lib/Checkbox/Checkbox.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _Platform = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Platform"));
|
|
10
10
|
var _Pressable = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Pressable"));
|
|
@@ -20,8 +20,6 @@ var _utils = require("../utils");
|
|
|
20
20
|
var _useUniqueId = _interopRequireDefault(require("../utils/useUniqueId"));
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
23
|
const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_utils.a11yProps, _utils.focusHandlerProps, _utils.viewProps]);
|
|
26
24
|
const selectInputStyles = (_ref, isChecked) => {
|
|
27
25
|
let {
|
|
@@ -136,7 +134,7 @@ const selectFeedbackTokens = _ref4 => {
|
|
|
136
134
|
* or the internal state in case of uncontrolled checkbox.
|
|
137
135
|
*
|
|
138
136
|
*/
|
|
139
|
-
const Checkbox = /*#__PURE__*/
|
|
137
|
+
const Checkbox = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
140
138
|
let {
|
|
141
139
|
checked,
|
|
142
140
|
defaultChecked,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectCheckboxTokens = exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _Platform = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Platform"));
|
|
10
10
|
var _StyleSheet = _interopRequireDefault(require("react-native-web/dist/cjs/exports/StyleSheet"));
|
|
@@ -14,8 +14,6 @@ var _ThemeProvider = require("../ThemeProvider");
|
|
|
14
14
|
var _utils = require("../utils");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
17
|
const [selectProps, selectedSystemPropTypes] = (0, _utils.selectSystemProps)([_utils.a11yProps, _utils.viewProps]);
|
|
20
18
|
const selectInputStyles = (_ref, isChecked) => {
|
|
21
19
|
let {
|
|
@@ -69,7 +67,7 @@ const selectCheckboxTokens = (themeTokens, prefix) => (0, _utils.selectTokens)(t
|
|
|
69
67
|
* an interactive parent that passes down props when interacted with. Used in CheckboxCard
|
|
70
68
|
*/
|
|
71
69
|
exports.selectCheckboxTokens = selectCheckboxTokens;
|
|
72
|
-
const CheckboxButton = /*#__PURE__*/
|
|
70
|
+
const CheckboxButton = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
73
71
|
let {
|
|
74
72
|
isChecked,
|
|
75
73
|
tokens,
|
|
@@ -86,7 +84,7 @@ const CheckboxButton = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
86
84
|
const {
|
|
87
85
|
icon: IconComponent,
|
|
88
86
|
...stateTokens
|
|
89
|
-
} = (0, _ThemeProvider.useThemeTokens)('Checkbox',
|
|
87
|
+
} = (0, _ThemeProvider.useThemeTokens)('Checkbox', tokens, {
|
|
90
88
|
checked: isChecked
|
|
91
89
|
});
|
|
92
90
|
const iconTokens = selectIconTokens(stateTokens);
|