@telus-uds/components-base 2.0.2 → 2.1.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 +27 -2
- package/lib/A11yInfoProvider/index.js +0 -0
- package/lib/A11yText/index.js +0 -0
- package/lib/ActionCard/ActionCard.js +0 -0
- package/lib/ActionCard/index.js +0 -0
- package/lib/ActivityIndicator/Spinner.js +0 -0
- package/lib/ActivityIndicator/Spinner.native.js +0 -0
- package/lib/ActivityIndicator/index.js +0 -0
- package/lib/ActivityIndicator/shared.js +0 -0
- package/lib/Autocomplete/Autocomplete.js +0 -0
- package/lib/Autocomplete/Loading.js +0 -0
- package/lib/Autocomplete/Suggestions.js +0 -0
- package/lib/Autocomplete/constants.js +0 -0
- package/lib/Autocomplete/dictionary.js +0 -0
- package/lib/Autocomplete/index.js +0 -0
- package/lib/Badge/Badge.js +0 -0
- package/lib/Badge/index.js +0 -0
- package/lib/BaseProvider/HydrationContext.js +0 -0
- package/lib/BaseProvider/index.js +0 -0
- package/lib/Box/Box.js +0 -0
- package/lib/Box/backgroundImageStylesMap.js +0 -0
- package/lib/Box/index.js +0 -0
- package/lib/Button/Button.js +0 -0
- package/lib/Button/ButtonBase.js +0 -0
- package/lib/Button/ButtonDropdown.js +0 -0
- package/lib/Button/ButtonGroup.js +0 -0
- package/lib/Button/ButtonLink.js +0 -0
- package/lib/Button/index.js +0 -0
- package/lib/Button/propTypes.js +0 -0
- package/lib/Card/Card.js +0 -0
- package/lib/Card/CardBase.js +0 -0
- package/lib/Card/PressableCardBase.js +2 -1
- package/lib/Card/index.js +0 -0
- package/lib/CardGroup/CardGroup.js +0 -0
- package/lib/CardGroup/dictionary.js +0 -0
- package/lib/CardGroup/index.js +0 -0
- package/lib/Carousel/Carousel.js +121 -33
- package/lib/Carousel/CarouselContext.js +0 -0
- package/lib/Carousel/CarouselFirstFocus/CarouselFirstFocus.js +0 -0
- package/lib/Carousel/CarouselItem/CarouselItem.js +39 -24
- package/lib/Carousel/CarouselItem/index.js +0 -0
- package/lib/Carousel/CarouselStepTracker/CarouselStepTracker.js +41 -4
- package/lib/Carousel/CarouselStepTracker/index.js +0 -0
- package/lib/Carousel/CarouselTabs/CarouselTabs.js +0 -0
- package/lib/Carousel/CarouselTabs/CarouselTabsPanel.js +0 -0
- package/lib/Carousel/CarouselTabs/CarouselTabsPanelItem.js +0 -0
- package/lib/Carousel/CarouselTabs/index.js +0 -0
- package/lib/Carousel/CarouselThumbnail.js +0 -0
- package/lib/Carousel/CarouselThumbnailNavigation.js +0 -0
- package/lib/Carousel/Constants.js +3 -0
- package/lib/Carousel/dictionary.js +0 -0
- package/lib/Carousel/index.js +0 -0
- package/lib/Checkbox/Checkbox.js +0 -0
- package/lib/Checkbox/CheckboxButton.js +0 -0
- package/lib/Checkbox/CheckboxGroup.js +4 -2
- package/lib/Checkbox/CheckboxInput.js +0 -0
- package/lib/Checkbox/CheckboxInput.native.js +0 -0
- package/lib/Checkbox/index.js +0 -0
- package/lib/CheckboxCard/CheckboxCard.js +0 -0
- package/lib/CheckboxCard/index.js +0 -0
- package/lib/CheckboxCardGroup/CheckboxCardGroup.js +0 -0
- package/lib/CheckboxCardGroup/index.js +0 -0
- package/lib/ColourToggle/ColourBubble.js +0 -0
- package/lib/ColourToggle/ColourToggle.js +0 -0
- package/lib/ColourToggle/index.js +0 -0
- package/lib/Divider/Divider.js +0 -0
- package/lib/Divider/index.js +0 -0
- package/lib/DownloadApp/DownloadApp.js +0 -0
- package/lib/DownloadApp/dictionary.js +0 -0
- package/lib/DownloadApp/index.js +0 -0
- package/lib/ExpandCollapse/Accordion.js +0 -0
- package/lib/ExpandCollapse/Control.js +0 -0
- package/lib/ExpandCollapse/ExpandCollapse.js +0 -0
- package/lib/ExpandCollapse/Panel.js +0 -0
- package/lib/ExpandCollapse/dictionary.js +0 -0
- package/lib/ExpandCollapse/index.js +0 -0
- package/lib/Feedback/Feedback.js +0 -0
- package/lib/Feedback/index.js +0 -0
- package/lib/Fieldset/Fieldset.js +0 -0
- package/lib/Fieldset/FieldsetContainer.js +0 -0
- package/lib/Fieldset/FieldsetContainer.native.js +0 -0
- package/lib/Fieldset/Legend.js +0 -0
- package/lib/Fieldset/Legend.native.js +0 -0
- package/lib/Fieldset/cssReset.js +0 -0
- package/lib/Fieldset/index.js +0 -0
- package/lib/FileUpload/FileUpload.js +0 -0
- package/lib/FileUpload/NotificationContent.js +0 -0
- package/lib/FileUpload/dictionary.js +0 -0
- package/lib/FileUpload/index.js +0 -0
- package/lib/FlexGrid/Col/Col.js +0 -0
- package/lib/FlexGrid/Col/index.js +0 -0
- package/lib/FlexGrid/FlexGrid.js +0 -0
- package/lib/FlexGrid/Row/Row.js +0 -0
- package/lib/FlexGrid/Row/index.js +0 -0
- package/lib/FlexGrid/helpers/index.js +0 -0
- package/lib/FlexGrid/index.js +0 -0
- package/lib/FlexGrid/providers/GutterContext.js +0 -0
- package/lib/Footnote/Footnote.js +0 -0
- package/lib/Footnote/FootnoteLink.js +0 -0
- package/lib/Footnote/dictionary.js +0 -0
- package/lib/Footnote/index.js +0 -0
- package/lib/HorizontalScroll/HorizontalScroll.js +17 -13
- package/lib/HorizontalScroll/HorizontalScrollButton.js +0 -0
- package/lib/HorizontalScroll/ScrollViewEnd.js +0 -0
- package/lib/HorizontalScroll/ScrollViewEnd.native.js +0 -0
- package/lib/HorizontalScroll/dictionary.js +0 -0
- package/lib/HorizontalScroll/index.js +0 -0
- package/lib/HorizontalScroll/itemPositions.js +0 -0
- package/lib/Icon/Icon.js +1 -0
- package/lib/Icon/IconText.js +0 -0
- package/lib/Icon/index.js +0 -0
- package/lib/IconButton/IconButton.js +0 -0
- package/lib/IconButton/index.js +0 -0
- package/lib/InputLabel/InputLabel.js +0 -0
- package/lib/InputLabel/LabelContent.js +0 -0
- package/lib/InputLabel/LabelContent.native.js +0 -0
- package/lib/InputLabel/index.js +0 -0
- package/lib/InputSupports/InputSupports.js +3 -0
- package/lib/InputSupports/index.js +0 -0
- package/lib/InputSupports/useInputSupports.js +0 -0
- package/lib/Link/ChevronLink.js +0 -0
- package/lib/Link/InlinePressable.js +0 -0
- package/lib/Link/InlinePressable.native.js +0 -0
- package/lib/Link/Link.js +0 -0
- package/lib/Link/LinkBase.js +2 -2
- package/lib/Link/TextButton.js +0 -0
- package/lib/Link/index.js +0 -0
- package/lib/List/List.js +0 -0
- package/lib/List/ListItem.js +0 -0
- package/lib/List/ListItemBase.js +0 -0
- package/lib/List/ListItemContent.js +0 -0
- package/lib/List/ListItemMark.js +0 -0
- package/lib/List/PressableListItemBase.js +0 -0
- package/lib/List/index.js +0 -0
- package/lib/Listbox/GroupControl.js +0 -0
- package/lib/Listbox/Listbox.js +0 -0
- package/lib/Listbox/ListboxContext.js +0 -0
- package/lib/Listbox/ListboxGroup.js +0 -0
- package/lib/Listbox/ListboxItem.js +0 -0
- package/lib/Listbox/ListboxOverlay.js +0 -0
- package/lib/Listbox/PressableItem.js +0 -0
- package/lib/Listbox/index.js +0 -0
- package/lib/Modal/Modal.js +4 -0
- package/lib/Modal/ModalContent.js +27 -8
- package/lib/Modal/WebModal.js +0 -0
- package/lib/Modal/dictionary.js +0 -0
- package/lib/Modal/index.js +0 -0
- package/lib/MultiSelectFilter/ModalOverlay.js +0 -0
- package/lib/MultiSelectFilter/MultiSelectFilter.js +0 -0
- package/lib/MultiSelectFilter/dictionary.js +0 -0
- package/lib/MultiSelectFilter/index.js +0 -0
- package/lib/Notification/Notification.js +0 -0
- package/lib/Notification/dictionary.js +0 -0
- package/lib/Notification/index.js +0 -0
- package/lib/OrderedList/Item.js +0 -0
- package/lib/OrderedList/ItemBase.js +0 -0
- package/lib/OrderedList/OrderedList.js +0 -0
- package/lib/OrderedList/OrderedListBase.js +0 -0
- package/lib/OrderedList/index.js +0 -0
- package/lib/Pagination/PageButton.js +0 -0
- package/lib/Pagination/Pagination.js +0 -0
- package/lib/Pagination/SideButton.js +0 -0
- package/lib/Pagination/constants.js +0 -0
- package/lib/Pagination/dictionary.js +0 -0
- package/lib/Pagination/index.js +0 -0
- package/lib/Pagination/usePagination.js +0 -0
- package/lib/Portal/Portal.js +0 -0
- package/lib/Portal/Portal.native.js +0 -0
- package/lib/Portal/index.js +0 -0
- package/lib/PriceLockup/PriceLockup.js +0 -0
- package/lib/PriceLockup/index.js +0 -0
- package/lib/PriceLockup/utils/renderFootnoteContent.js +0 -0
- package/lib/PriceLockup/utils/renderFootnoteLinks.js +0 -0
- package/lib/PriceLockup/utils/renderPrice.js +0 -0
- package/lib/PriceLockup/utils/renderTypography.js +0 -0
- package/lib/ProductCard/ProductCard.js +0 -0
- package/lib/ProductCard/dictionary.js +0 -0
- package/lib/ProductCard/index.js +0 -0
- package/lib/ProductCardGroup/ProductCardGroup.js +0 -0
- package/lib/ProductCardGroup/index.js +0 -0
- package/lib/Progress/Progress.js +8 -2
- package/lib/Progress/ProgressBar.js +40 -12
- package/lib/Progress/ProgressBarBackground.js +4 -2
- package/lib/Progress/constants.js +4 -0
- package/lib/Progress/index.js +0 -0
- package/lib/QuickLinks/QuickLinks.js +0 -0
- package/lib/QuickLinks/QuickLinksCard.js +0 -0
- package/lib/QuickLinks/QuickLinksItem.js +0 -0
- package/lib/QuickLinks/index.js +0 -0
- package/lib/QuickLinksFeature/QuickLinksFeature.js +0 -0
- package/lib/QuickLinksFeature/QuickLinksFeatureItem.js +0 -0
- package/lib/QuickLinksFeature/index.js +0 -0
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/RadioButton.js +0 -0
- package/lib/Radio/RadioGroup.js +0 -0
- package/lib/Radio/RadioInput.js +0 -0
- package/lib/Radio/RadioInput.native.js +0 -0
- package/lib/Radio/index.js +0 -0
- package/lib/RadioCard/RadioCard.js +0 -0
- package/lib/RadioCard/RadioCardGroup.js +0 -0
- package/lib/RadioCard/index.js +0 -0
- package/lib/Responsive/Responsive.js +0 -0
- package/lib/Responsive/ResponsiveProp.js +0 -0
- package/lib/Responsive/ResponsiveWithMediaQueryStyleSheet.js +0 -0
- package/lib/Responsive/index.js +0 -0
- package/lib/Search/Search.js +2 -2
- package/lib/Search/dictionary.js +0 -0
- package/lib/Search/index.js +0 -0
- package/lib/Select/Group.js +0 -0
- package/lib/Select/Group.native.js +0 -0
- package/lib/Select/Item.js +0 -0
- package/lib/Select/Item.native.js +0 -0
- package/lib/Select/Picker.js +0 -0
- package/lib/Select/Picker.native.js +1 -0
- package/lib/Select/Select.js +1 -4
- package/lib/Select/constants.js +0 -0
- package/lib/Select/index.js +0 -0
- package/lib/SideNav/Item.js +0 -0
- package/lib/SideNav/ItemContent.js +0 -0
- package/lib/SideNav/ItemsGroup.js +0 -0
- package/lib/SideNav/SideNav.js +0 -0
- package/lib/SideNav/index.js +0 -0
- package/lib/Skeleton/Skeleton.js +0 -0
- package/lib/Skeleton/index.js +0 -0
- package/lib/Skeleton/skeleton.constant.js +0 -0
- package/lib/Skeleton/skeletonWebAnimation.js +0 -0
- package/lib/Skeleton/useSkeletonNativeAnimation.js +0 -0
- package/lib/SkipLink/SkipLink.js +0 -0
- package/lib/SkipLink/index.js +0 -0
- package/lib/Spacer/Spacer.js +0 -0
- package/lib/Spacer/index.js +0 -0
- package/lib/StackView/StackView.js +0 -0
- package/lib/StackView/StackWrap.js +0 -0
- package/lib/StackView/StackWrap.native.js +0 -0
- package/lib/StackView/StackWrapBox.js +0 -0
- package/lib/StackView/StackWrapGap.js +0 -0
- package/lib/StackView/common.js +0 -0
- package/lib/StackView/getStackedContent.js +0 -0
- package/lib/StackView/index.js +0 -0
- package/lib/Status/Status.js +6 -2
- package/lib/Status/index.js +0 -0
- package/lib/StepTracker/Step.js +0 -0
- package/lib/StepTracker/StepTracker.js +0 -0
- package/lib/StepTracker/dictionary.js +0 -0
- package/lib/StepTracker/index.js +0 -0
- package/lib/TabBar/TabBar.js +0 -0
- package/lib/TabBar/TabBarItem.js +0 -0
- package/lib/TabBar/index.js +0 -0
- package/lib/Tabs/Tabs.js +0 -0
- package/lib/Tabs/TabsItem.js +0 -0
- package/lib/Tabs/index.js +0 -0
- package/lib/Tags/Tags.js +0 -0
- package/lib/Tags/index.js +0 -0
- package/lib/TextInput/TextArea.js +0 -0
- package/lib/TextInput/TextInput.js +0 -0
- package/lib/TextInput/TextInputBase.js +2 -2
- package/lib/TextInput/dictionary.js +0 -0
- package/lib/TextInput/index.js +0 -0
- package/lib/TextInput/propTypes.js +0 -0
- package/lib/ThemeProvider/ThemeProvider.js +0 -0
- package/lib/ThemeProvider/index.js +0 -0
- package/lib/ThemeProvider/useResponsiveThemeTokens.js +0 -0
- package/lib/ThemeProvider/useSetTheme.js +0 -0
- package/lib/ThemeProvider/useTheme.js +0 -0
- package/lib/ThemeProvider/useThemeTokens.js +0 -0
- package/lib/ThemeProvider/utils/index.js +0 -0
- package/lib/ThemeProvider/utils/styles.js +0 -0
- package/lib/ThemeProvider/utils/theme-tokens.js +0 -0
- package/lib/Timeline/Timeline.js +0 -0
- package/lib/Timeline/index.js +0 -0
- package/lib/ToggleSwitch/ToggleSwitch.js +0 -0
- package/lib/ToggleSwitch/ToggleSwitchGroup.js +0 -0
- package/lib/ToggleSwitch/index.js +0 -0
- package/lib/Tooltip/Backdrop.js +0 -0
- package/lib/Tooltip/Backdrop.native.js +0 -0
- package/lib/Tooltip/Tooltip.js +22 -13
- package/lib/Tooltip/Tooltip.native.js +24 -15
- package/lib/Tooltip/dictionary.js +0 -0
- package/lib/Tooltip/getTooltipPosition.js +0 -0
- package/lib/Tooltip/index.js +0 -0
- package/lib/Tooltip/shared.js +0 -0
- package/lib/TooltipButton/TooltipButton.js +0 -0
- package/lib/TooltipButton/index.js +0 -0
- package/lib/Typography/Typography.js +0 -0
- package/lib/Typography/index.js +0 -0
- package/lib/Validator/Validator.js +4 -0
- package/lib/Validator/index.js +0 -0
- package/lib/ViewportProvider/ViewportProvider.js +0 -0
- package/lib/ViewportProvider/index.js +0 -0
- package/lib/ViewportProvider/useViewport.js +0 -0
- package/lib/ViewportProvider/useViewportListener.js +0 -0
- package/lib/index.js +0 -0
- package/lib/server.js +0 -0
- package/lib/utils/BaseView/BaseView.js +0 -0
- package/lib/utils/BaseView/BaseView.native.js +0 -0
- package/lib/utils/BaseView/index.js +0 -0
- package/lib/utils/a11y/index.js +0 -0
- package/lib/utils/a11y/semantics.js +0 -0
- package/lib/utils/a11y/textSize.js +0 -0
- package/lib/utils/animation/index.js +0 -0
- package/lib/utils/animation/useVerticalExpandAnimation.js +0 -0
- package/lib/utils/children.js +0 -0
- package/lib/utils/containUniqueFields.js +0 -0
- package/lib/utils/convertFromMegaByteToByte.js +0 -0
- package/lib/utils/floating-ui/index.js +0 -0
- package/lib/utils/floating-ui/index.native.js +0 -0
- package/lib/utils/formatImageSource.js +0 -0
- package/lib/utils/hasOwnProperty.js +0 -0
- package/lib/utils/htmlAttrs.js +0 -0
- package/lib/utils/index.js +0 -0
- package/lib/utils/info/index.js +0 -0
- package/lib/utils/info/platform/index.js +0 -0
- package/lib/utils/info/platform/platform.android.js +0 -0
- package/lib/utils/info/platform/platform.ios.js +0 -0
- package/lib/utils/info/platform/platform.js +0 -0
- package/lib/utils/info/platform/platform.native.js +0 -0
- package/lib/utils/info/versions.js +0 -0
- package/lib/utils/input.js +0 -0
- package/lib/utils/pressability.js +0 -0
- package/lib/utils/props/a11yProps.js +0 -0
- package/lib/utils/props/clickProps.js +0 -0
- package/lib/utils/props/componentPropType.js +0 -0
- package/lib/utils/props/contentfulProps.js +22 -0
- package/lib/utils/props/copyPropTypes.js +0 -0
- package/lib/utils/props/getPropSelector.js +0 -0
- package/lib/utils/props/handlerProps.js +0 -0
- package/lib/utils/props/hrefAttrsProp.js +0 -0
- package/lib/utils/props/index.js +2 -1
- package/lib/utils/props/inputSupportsProps.js +0 -0
- package/lib/utils/props/linkProps.js +0 -0
- package/lib/utils/props/paddingProp.js +0 -0
- package/lib/utils/props/pressProps.js +0 -0
- package/lib/utils/props/rectProp.js +0 -0
- package/lib/utils/props/responsiveProps.js +0 -0
- package/lib/utils/props/selectSystemProps.js +0 -0
- package/lib/utils/props/spacingProps.js +0 -0
- package/lib/utils/props/textInputProps.js +0 -0
- package/lib/utils/props/textProps.js +0 -0
- package/lib/utils/props/tokens.js +0 -0
- package/lib/utils/props/variantProp.js +0 -0
- package/lib/utils/props/viewProps.js +0 -0
- package/lib/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +0 -0
- package/lib/utils/ssr-media-query/create-stylesheet/index.android.js +0 -0
- package/lib/utils/ssr-media-query/create-stylesheet/index.ios.js +0 -0
- package/lib/utils/ssr-media-query/create-stylesheet/index.js +0 -0
- package/lib/utils/ssr-media-query/hash.js +0 -0
- package/lib/utils/ssr-media-query/index.js +0 -0
- package/lib/utils/ssr-media-query/utils/common.js +0 -0
- package/lib/utils/ssr-media-query/utils/create-declaration-block.js +0 -0
- package/lib/utils/ssr-media-query/utils/create-media-query-styles.js +0 -0
- package/lib/utils/ssr-media-query/utils/hyphenate-style-name.js +0 -0
- package/lib/utils/ssr-media-query/utils/inject.js +0 -0
- package/lib/utils/ssr.js +0 -0
- package/lib/utils/transformGradient.js +0 -0
- package/lib/utils/useCopy.js +0 -0
- package/lib/utils/useHash.js +0 -0
- package/lib/utils/useHash.native.js +0 -0
- package/lib/utils/useOverlaidPosition.js +0 -0
- package/lib/utils/useResponsiveProp.js +0 -0
- package/lib/utils/useSafeLayoutEffect.js +0 -0
- package/lib/utils/useScrollBlocking.js +0 -0
- package/lib/utils/useScrollBlocking.native.js +0 -0
- package/lib/utils/useSpacingScale.js +0 -0
- package/lib/utils/useUniqueId.js +0 -0
- package/lib/utils/withLinkRouter.js +0 -0
- package/package.json +2 -2
- package/src/Card/PressableCardBase.jsx +1 -1
- package/src/Carousel/Carousel.jsx +166 -34
- package/src/Carousel/CarouselItem/CarouselItem.jsx +56 -26
- package/src/Carousel/CarouselStepTracker/CarouselStepTracker.jsx +71 -37
- package/src/Carousel/Constants.js +3 -0
- package/src/Checkbox/CheckboxGroup.jsx +7 -3
- package/src/HorizontalScroll/HorizontalScroll.jsx +19 -15
- package/src/Icon/Icon.jsx +1 -0
- package/src/InputSupports/InputSupports.jsx +1 -0
- package/src/Link/LinkBase.jsx +8 -2
- package/src/Modal/Modal.jsx +4 -0
- package/src/Modal/ModalContent.jsx +23 -7
- package/src/Progress/Progress.jsx +12 -2
- package/src/Progress/ProgressBar.jsx +48 -13
- package/src/Progress/ProgressBarBackground.jsx +4 -2
- package/src/Progress/constants.js +4 -0
- package/src/Search/Search.jsx +7 -2
- package/src/Select/Picker.native.jsx +1 -0
- package/src/Select/Select.jsx +8 -9
- package/src/Status/Status.jsx +2 -2
- package/src/TextInput/TextInputBase.jsx +2 -2
- package/src/Tooltip/Tooltip.jsx +6 -1
- package/src/Tooltip/Tooltip.native.jsx +7 -1
- package/src/Validator/Validator.jsx +7 -1
- package/src/utils/props/contentfulProps.js +24 -0
- package/src/utils/props/index.js +1 -0
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
3
|
+
import View from "react-native-web/dist/exports/View";
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
2
5
|
import { useCarousel } from '../CarouselContext';
|
|
3
6
|
import StepTracker from '../../StepTracker';
|
|
4
7
|
import StackView from '../../StackView';
|
|
8
|
+
import Spacer from '../../Spacer';
|
|
9
|
+
import Progress from '../../Progress';
|
|
5
10
|
import { variantProp } from '../../utils';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
12
|
const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
8
13
|
let {
|
|
9
|
-
variant
|
|
14
|
+
variant,
|
|
15
|
+
enableDisplayMultipleItemsPerSlide
|
|
10
16
|
} = _ref;
|
|
11
17
|
const {
|
|
12
18
|
activeIndex,
|
|
@@ -30,6 +36,32 @@ const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
30
36
|
containerPaddingTop: themeTokens.spaceBetweenSlideAndPanelNavigation
|
|
31
37
|
};
|
|
32
38
|
const steps = Array.from(Array(totalItems)).map((_, index) => String(index));
|
|
39
|
+
if (enableDisplayMultipleItemsPerSlide) {
|
|
40
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
41
|
+
children: [/*#__PURE__*/_jsx(Spacer, {
|
|
42
|
+
space: 4
|
|
43
|
+
}), /*#__PURE__*/_jsx(StackView, {
|
|
44
|
+
direction: "row",
|
|
45
|
+
tokens: stackViewTokens,
|
|
46
|
+
ref: ref,
|
|
47
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
48
|
+
style: staticStyles.progress,
|
|
49
|
+
children: /*#__PURE__*/_jsx(Progress, {
|
|
50
|
+
children: /*#__PURE__*/_jsx(Progress.Bar, {
|
|
51
|
+
offset: {
|
|
52
|
+
items: totalItems,
|
|
53
|
+
current: activeIndex + 1
|
|
54
|
+
},
|
|
55
|
+
variant: {
|
|
56
|
+
style: 'subtle'
|
|
57
|
+
},
|
|
58
|
+
accessibilityLabel: getCopyWithPlaceholders('stepTrackerLabel')
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
64
|
+
}
|
|
33
65
|
return /*#__PURE__*/_jsx(StackView, {
|
|
34
66
|
direction: "row",
|
|
35
67
|
tokens: stackViewTokens,
|
|
@@ -38,7 +70,6 @@ const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
38
70
|
current: activeIndex,
|
|
39
71
|
steps: steps,
|
|
40
72
|
copy: {
|
|
41
|
-
// Give StepTracker copy from Carousel's language and dictionary
|
|
42
73
|
stepLabel: getCopyWithPlaceholders('stepLabel'),
|
|
43
74
|
stepTrackerLabel: getCopyWithPlaceholders('stepTrackerLabel')
|
|
44
75
|
},
|
|
@@ -49,6 +80,12 @@ const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
49
80
|
});
|
|
50
81
|
CarouselStepTracker.displayName = 'CarouselStepTracker';
|
|
51
82
|
CarouselStepTracker.propTypes = {
|
|
52
|
-
variant: variantProp.propType
|
|
83
|
+
variant: variantProp.propType,
|
|
84
|
+
enableDisplayMultipleItemsPerSlide: PropTypes.bool
|
|
53
85
|
};
|
|
86
|
+
const staticStyles = StyleSheet.create({
|
|
87
|
+
progress: {
|
|
88
|
+
width: 288
|
|
89
|
+
}
|
|
90
|
+
});
|
|
54
91
|
export default CarouselStepTracker;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Carousel/index.js
CHANGED
|
File without changes
|
package/lib/Checkbox/Checkbox.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -119,6 +119,7 @@ const CheckboxGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
119
119
|
id,
|
|
120
120
|
onChange: itemOnChange,
|
|
121
121
|
ref: itemRef,
|
|
122
|
+
inactive: itemInactive,
|
|
122
123
|
...itemRest
|
|
123
124
|
} = _ref2;
|
|
124
125
|
const checkboxId = id || `Checkbox[${index}]`;
|
|
@@ -131,7 +132,7 @@ const CheckboxGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
131
132
|
id: checkboxId,
|
|
132
133
|
checked: currentValues.includes(checkboxId),
|
|
133
134
|
onChange: handleChange,
|
|
134
|
-
inactive:
|
|
135
|
+
inactive: itemInactive,
|
|
135
136
|
label: label,
|
|
136
137
|
name: inputGroupName,
|
|
137
138
|
tokens: radioTokens,
|
|
@@ -183,7 +184,8 @@ CheckboxGroup.propTypes = {
|
|
|
183
184
|
label: PropTypes.string,
|
|
184
185
|
id: PropTypes.string,
|
|
185
186
|
onChange: PropTypes.func,
|
|
186
|
-
ref: ABBPropTypes.ref()
|
|
187
|
+
ref: ABBPropTypes.ref(),
|
|
188
|
+
inactive: PropTypes.bool
|
|
187
189
|
})),
|
|
188
190
|
/**
|
|
189
191
|
* Main text used to describe this group, used in Fieldset's Legend element.
|
|
File without changes
|
|
File without changes
|
package/lib/Checkbox/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Divider/Divider.js
CHANGED
|
File without changes
|
package/lib/Divider/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/DownloadApp/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Feedback/Feedback.js
CHANGED
|
File without changes
|
package/lib/Feedback/index.js
CHANGED
|
File without changes
|
package/lib/Fieldset/Fieldset.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Fieldset/Legend.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/Fieldset/cssReset.js
CHANGED
|
File without changes
|
package/lib/Fieldset/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/FileUpload/index.js
CHANGED
|
File without changes
|
package/lib/FlexGrid/Col/Col.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/FlexGrid/FlexGrid.js
CHANGED
|
File without changes
|
package/lib/FlexGrid/Row/Row.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/FlexGrid/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/Footnote/Footnote.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Footnote/index.js
CHANGED
|
File without changes
|
|
@@ -11,6 +11,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
|
|
12
12
|
const tokenKeys = ['nextIcon', 'previousIcon', 'gutter', 'borderBottomWidth', 'borderBottomColor', 'buttonClearance'];
|
|
13
13
|
export const selectHorizontalScrollTokens = (themeTokens, prefix) => selectTokens(tokenKeys, themeTokens, prefix);
|
|
14
|
+
const selectBorderStyles = (borderBottomWidth, borderBottomColor) => ({
|
|
15
|
+
borderBottomWidth,
|
|
16
|
+
borderBottomColor
|
|
17
|
+
});
|
|
14
18
|
|
|
15
19
|
/**
|
|
16
20
|
* Base component that scrolls horizontally and displays left and right buttons if
|
|
@@ -114,19 +118,19 @@ const HorizontalScroll = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
114
118
|
return /*#__PURE__*/_jsxs(View, {
|
|
115
119
|
ref: ref,
|
|
116
120
|
style: staticStyles.container,
|
|
117
|
-
children: [/*#__PURE__*/_jsx(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
122
|
+
style: selectBorderStyles(borderBottomWidth, borderBottomColor),
|
|
123
|
+
children: /*#__PURE__*/_jsx(ScrollViewEnd, {
|
|
124
|
+
onScrollEnd: handleScrollEnd,
|
|
125
|
+
ref: scrollRef,
|
|
126
|
+
horizontal: true,
|
|
127
|
+
onContentSizeChange: handleContentWidth,
|
|
128
|
+
onLayout: handleContainerLayout,
|
|
129
|
+
showsHorizontalScrollIndicator: false,
|
|
130
|
+
contentContainerStyle: staticStyles.scrollContainer,
|
|
131
|
+
...selectProps(rest),
|
|
132
|
+
children: children
|
|
133
|
+
})
|
|
130
134
|
}), showPreviousButton && /*#__PURE__*/_jsx(ScrollButton, {
|
|
131
135
|
icon: previousIcon,
|
|
132
136
|
onPress: scrollPrevious,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Icon/Icon.js
CHANGED
package/lib/Icon/IconText.js
CHANGED
|
File without changes
|
package/lib/Icon/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/IconButton/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/InputLabel/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Link/ChevronLink.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Link/Link.js
CHANGED
|
File without changes
|
package/lib/Link/LinkBase.js
CHANGED
|
@@ -3,14 +3,14 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Text from "react-native-web/dist/exports/Text";
|
|
4
4
|
import Platform from "react-native-web/dist/exports/Platform";
|
|
5
5
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
6
|
-
import { a11yProps, clickProps, getTokensPropType, hrefAttrsProp, linkProps, selectSystemProps, variantProp, viewProps } from '../utils/props';
|
|
6
|
+
import { a11yProps, clickProps, getTokensPropType, hrefAttrsProp, linkProps, selectSystemProps, variantProp, viewProps, contentfulProps } from '../utils/props';
|
|
7
7
|
import { resolvePressableTokens } from '../utils/pressability';
|
|
8
8
|
import { withLinkRouter } from '../utils';
|
|
9
9
|
import InlinePressable from './InlinePressable';
|
|
10
10
|
import { applyTextStyles, applyOuterBorder, useTheme } from '../ThemeProvider';
|
|
11
11
|
import { IconText, iconComponentPropTypes } from '../Icon';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, linkProps, viewProps]);
|
|
13
|
+
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, linkProps, viewProps, contentfulProps]);
|
|
14
14
|
const selectOuterBorderStyles = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
outerBorderColor,
|
package/lib/Link/TextButton.js
CHANGED
|
File without changes
|
package/lib/Link/index.js
CHANGED
|
File without changes
|
package/lib/List/List.js
CHANGED
|
File without changes
|
package/lib/List/ListItem.js
CHANGED
|
File without changes
|
package/lib/List/ListItemBase.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/List/ListItemMark.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/List/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/Listbox/Listbox.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Listbox/index.js
CHANGED
|
File without changes
|
package/lib/Modal/Modal.js
CHANGED
|
@@ -37,7 +37,9 @@ const selectContainerStyles = _ref => {
|
|
|
37
37
|
const selectModalStyles = _ref2 => {
|
|
38
38
|
let {
|
|
39
39
|
backgroundColor,
|
|
40
|
+
borderColor,
|
|
40
41
|
borderRadius,
|
|
42
|
+
borderWidth,
|
|
41
43
|
height,
|
|
42
44
|
paddingLeft,
|
|
43
45
|
paddingRight,
|
|
@@ -47,7 +49,9 @@ const selectModalStyles = _ref2 => {
|
|
|
47
49
|
} = _ref2;
|
|
48
50
|
return {
|
|
49
51
|
backgroundColor,
|
|
52
|
+
borderColor,
|
|
50
53
|
borderRadius,
|
|
54
|
+
borderWidth,
|
|
51
55
|
height,
|
|
52
56
|
paddingLeft,
|
|
53
57
|
paddingRight,
|
|
@@ -55,7 +55,29 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
55
55
|
const hasConfirmButton = confirmButtonText !== undefined && onConfirm !== undefined;
|
|
56
56
|
const hasCancelButton = cancelButtonText !== undefined && onCancel !== undefined;
|
|
57
57
|
const hasHeadingSection = Boolean(heading || subHeading);
|
|
58
|
-
const
|
|
58
|
+
const selectHeadingContainerStyles = _ref3 => {
|
|
59
|
+
let {
|
|
60
|
+
paddingLeft,
|
|
61
|
+
paddingRight,
|
|
62
|
+
marginLeft,
|
|
63
|
+
marginRight,
|
|
64
|
+
borderColor,
|
|
65
|
+
headingBorderBottomWidth,
|
|
66
|
+
headingPaddingRight,
|
|
67
|
+
headingPaddingTop
|
|
68
|
+
} = _ref3;
|
|
69
|
+
return {
|
|
70
|
+
flexDirection: 'column',
|
|
71
|
+
marginLeft: -marginLeft,
|
|
72
|
+
marginRight: -marginRight,
|
|
73
|
+
paddingLeft,
|
|
74
|
+
paddingTop: headingPaddingTop,
|
|
75
|
+
paddingRight: paddingRight + headingPaddingRight,
|
|
76
|
+
borderBottomColor: borderColor,
|
|
77
|
+
borderBottomWidth: headingBorderBottomWidth
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
const selectFooterContainerStyles = _ref4 => {
|
|
59
81
|
let {
|
|
60
82
|
paddingLeft,
|
|
61
83
|
paddingRight,
|
|
@@ -67,7 +89,7 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
67
89
|
direction,
|
|
68
90
|
footerTopWidth,
|
|
69
91
|
hasBorder
|
|
70
|
-
} =
|
|
92
|
+
} = _ref4;
|
|
71
93
|
return {
|
|
72
94
|
flexDirection: direction,
|
|
73
95
|
alignItems: 'center',
|
|
@@ -81,11 +103,6 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
81
103
|
borderTopColor: borderColor
|
|
82
104
|
};
|
|
83
105
|
};
|
|
84
|
-
const headingStyles = {
|
|
85
|
-
flexDirection: 'column',
|
|
86
|
-
paddingTop: 8,
|
|
87
|
-
paddingRight: themeTokens.headingPaddingRight
|
|
88
|
-
};
|
|
89
106
|
const subheadingStyles = {
|
|
90
107
|
marginTop: themeTokens.subHeadingMarginTop
|
|
91
108
|
};
|
|
@@ -93,7 +110,7 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
93
110
|
style: styles.modalContent,
|
|
94
111
|
ref: ref,
|
|
95
112
|
children: [hasHeadingSection && /*#__PURE__*/_jsxs(View, {
|
|
96
|
-
style:
|
|
113
|
+
style: selectHeadingContainerStyles(themeTokens),
|
|
97
114
|
children: [heading && /*#__PURE__*/_jsx(Typography, {
|
|
98
115
|
variant: {
|
|
99
116
|
size: headingLevel
|
|
@@ -120,6 +137,8 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
120
137
|
showsVerticalScrollIndicator: true
|
|
121
138
|
},
|
|
122
139
|
onLayout: handleContainerLayout,
|
|
140
|
+
top: themeTokens.contentPaddingTop,
|
|
141
|
+
bottom: themeTokens.contentPaddingBottom,
|
|
123
142
|
children: /*#__PURE__*/_jsx(Typography, {
|
|
124
143
|
children: bodyText
|
|
125
144
|
})
|
package/lib/Modal/WebModal.js
CHANGED
|
File without changes
|
package/lib/Modal/dictionary.js
CHANGED
|
File without changes
|
package/lib/Modal/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/OrderedList/Item.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/OrderedList/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Pagination/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/Portal/Portal.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/Portal/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/PriceLockup/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/ProductCard/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|