@telus-uds/components-base 1.2.0 → 1.4.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/.turbo/turbo-build.log +8 -0
- package/CHANGELOG.json +61 -0
- package/CHANGELOG.md +45 -2
- package/__tests__/ActivityIndicator/ActivityIndicator.test.jsx +35 -0
- package/__tests__/ActivityIndicator/__snapshots__/ActivityIndicator.test.jsx.snap +287 -0
- package/__tests__/FlexGrid/Col.test.jsx +6 -10
- package/__tests__/utils/props.test.js +36 -0
- package/__tests__/utils/semantics.test.jsx +1 -10
- package/babel.config.js +27 -5
- package/component-docs.json +170 -494
- package/generate-component-docs.js +3 -0
- package/lib/A11yText/index.js +6 -5
- package/lib/ActivityIndicator/Spinner.js +46 -37
- package/lib/ActivityIndicator/Spinner.native.js +26 -15
- package/lib/ActivityIndicator/index.js +3 -3
- package/lib/Box/Box.js +8 -8
- package/lib/Button/Button.js +2 -2
- package/lib/Button/ButtonBase.js +7 -8
- package/lib/Button/ButtonGroup.js +10 -12
- package/lib/Button/ButtonLink.js +4 -4
- package/lib/Button/propTypes.js +4 -2
- package/lib/Card/Card.js +6 -5
- package/lib/Card/CardBase.js +6 -9
- package/lib/Card/PressableCardBase.js +6 -11
- package/lib/Checkbox/Checkbox.js +4 -6
- package/lib/Divider/Divider.js +14 -13
- package/lib/ExpandCollapse/Control.js +7 -7
- package/lib/ExpandCollapse/ExpandCollapse.js +6 -2
- package/lib/ExpandCollapse/Panel.js +6 -7
- package/lib/Feedback/Feedback.js +6 -5
- package/lib/Fieldset/Fieldset.js +1 -3
- package/lib/FlexGrid/FlexGrid.js +4 -4
- package/lib/FlexGrid/helpers/index.js +1 -4
- package/lib/HorizontalScroll/HorizontalScroll.js +5 -6
- package/lib/IconButton/IconButton.js +6 -6
- package/lib/InputLabel/InputLabel.js +7 -2
- package/lib/InputSupports/InputSupports.js +2 -2
- package/lib/Link/LinkBase.js +12 -13
- package/lib/List/List.js +4 -6
- package/lib/List/ListItem.js +6 -2
- package/lib/Modal/Modal.js +6 -2
- package/lib/Notification/Notification.js +12 -8
- package/lib/Pagination/Pagination.js +8 -3
- package/lib/Progress/Progress.js +5 -4
- package/lib/Progress/ProgressBar.js +8 -7
- package/lib/Radio/Radio.js +4 -6
- package/lib/Radio/RadioButton.js +6 -3
- package/lib/Radio/RadioGroup.js +7 -2
- package/lib/RadioCard/RadioCard.js +4 -4
- package/lib/RadioCard/RadioCardGroup.js +9 -6
- package/lib/Search/Search.js +7 -2
- package/lib/Select/Select.js +10 -9
- package/lib/SideNav/Item.js +7 -7
- package/lib/SideNav/SideNav.js +7 -3
- package/lib/Skeleton/Skeleton.js +6 -2
- package/lib/Spacer/Spacer.js +9 -20
- package/lib/StackView/StackView.js +7 -7
- package/lib/StackView/StackWrapBox.js +6 -7
- package/lib/StackView/StackWrapGap.js +6 -5
- package/lib/StackView/getStackedContent.js +1 -1
- package/lib/StepTracker/Step.js +7 -3
- package/lib/StepTracker/StepTracker.js +7 -7
- package/lib/Tabs/Tabs.js +6 -2
- package/lib/Tabs/TabsItem.js +6 -5
- package/lib/Tags/Tags.js +11 -12
- package/lib/TextInput/TextArea.js +13 -14
- package/lib/TextInput/TextInput.js +13 -14
- package/lib/TextInput/TextInputBase.js +5 -3
- package/lib/ThemeProvider/useThemeTokens.js +3 -3
- package/lib/ThemeProvider/utils/theme-tokens.js +3 -3
- package/lib/ToggleSwitch/ToggleSwitch.js +10 -9
- package/lib/ToggleSwitch/ToggleSwitchGroup.js +10 -12
- package/lib/Tooltip/Tooltip.js +7 -2
- package/lib/TooltipButton/TooltipButton.js +7 -2
- package/lib/Typography/Typography.js +8 -6
- package/lib/index.js +7 -0
- package/lib/utils/a11y/semantics.js +4 -3
- package/lib/utils/children.js +5 -1
- package/lib/utils/index.js +18 -4
- package/lib/utils/pressability.js +2 -2
- package/lib/utils/props/a11yProps.js +153 -0
- package/lib/utils/props/clickProps.js +36 -0
- package/lib/utils/props/componentPropType.js +70 -0
- package/lib/utils/props/copyPropTypes.js +14 -0
- package/lib/utils/props/getPropSelector.js +13 -0
- package/lib/utils/props/hrefAttrsProp.js +41 -0
- package/lib/utils/props/index.js +158 -0
- package/lib/{InputSupports/propTypes.js → utils/props/inputSupportsProps.js} +2 -3
- package/lib/utils/props/linkProps.js +64 -0
- package/lib/utils/props/paddingProp.js +20 -0
- package/lib/utils/props/pressProps.js +57 -0
- package/lib/utils/props/rectProp.js +20 -0
- package/lib/utils/props/responsiveProps.js +40 -0
- package/lib/utils/props/selectSystemProps.js +31 -0
- package/lib/utils/props/spacingProps.js +71 -0
- package/lib/utils/props/tokens.js +145 -0
- package/lib/utils/props/variantProp.js +28 -0
- package/lib/utils/props/viewProps.js +34 -0
- package/lib/utils/ssr.js +51 -0
- package/lib/utils/useResponsiveProp.js +1 -1
- package/lib/utils/useSpacingScale.js +4 -4
- package/lib-module/A11yInfoProvider/index.js +62 -0
- package/lib-module/A11yText/index.js +55 -0
- package/lib-module/ActivityIndicator/Spinner.js +76 -0
- package/lib-module/ActivityIndicator/Spinner.native.js +143 -0
- package/lib-module/ActivityIndicator/index.js +40 -0
- package/lib-module/ActivityIndicator/shared.js +12 -0
- package/lib-module/BaseProvider/index.js +26 -0
- package/lib-module/Box/Box.js +243 -0
- package/lib-module/Box/index.js +2 -0
- package/lib-module/Button/Button.js +25 -0
- package/lib-module/Button/ButtonBase.js +254 -0
- package/lib-module/Button/ButtonGroup.js +164 -0
- package/lib-module/Button/ButtonLink.js +39 -0
- package/lib-module/Button/index.js +4 -0
- package/lib-module/Button/propTypes.js +36 -0
- package/lib-module/Card/Card.js +83 -0
- package/lib-module/Card/CardBase.js +62 -0
- package/lib-module/Card/PressableCardBase.js +113 -0
- package/lib-module/Card/index.js +4 -0
- package/lib-module/Checkbox/Checkbox.js +321 -0
- package/lib-module/Checkbox/CheckboxGroup.js +218 -0
- package/lib-module/Checkbox/CheckboxInput.js +58 -0
- package/lib-module/Checkbox/CheckboxInput.native.js +6 -0
- package/lib-module/Checkbox/index.js +3 -0
- package/lib-module/Divider/Divider.js +123 -0
- package/lib-module/Divider/index.js +2 -0
- package/lib-module/ExpandCollapse/Accordion.js +15 -0
- package/lib-module/ExpandCollapse/Control.js +130 -0
- package/lib-module/ExpandCollapse/ExpandCollapse.js +94 -0
- package/lib-module/ExpandCollapse/Panel.js +158 -0
- package/lib-module/ExpandCollapse/index.js +7 -0
- package/lib-module/Feedback/Feedback.js +144 -0
- package/lib-module/Feedback/index.js +2 -0
- package/lib-module/Fieldset/Fieldset.js +145 -0
- package/lib-module/Fieldset/FieldsetContainer.js +29 -0
- package/lib-module/Fieldset/FieldsetContainer.native.js +20 -0
- package/lib-module/Fieldset/Legend.js +21 -0
- package/lib-module/Fieldset/Legend.native.js +28 -0
- package/lib-module/Fieldset/cssReset.js +14 -0
- package/lib-module/Fieldset/index.js +2 -0
- package/lib-module/FlexGrid/Col/Col.js +265 -0
- package/lib-module/FlexGrid/Col/index.js +2 -0
- package/lib-module/FlexGrid/FlexGrid.js +147 -0
- package/lib-module/FlexGrid/Row/Row.js +177 -0
- package/lib-module/FlexGrid/Row/index.js +2 -0
- package/lib-module/FlexGrid/helpers/index.js +18 -0
- package/lib-module/FlexGrid/index.js +2 -0
- package/lib-module/FlexGrid/providers/GutterContext.js +3 -0
- package/lib-module/HorizontalScroll/HorizontalScroll.js +171 -0
- package/lib-module/HorizontalScroll/HorizontalScrollButton.js +102 -0
- package/lib-module/HorizontalScroll/ScrollViewEnd.js +47 -0
- package/lib-module/HorizontalScroll/ScrollViewEnd.native.js +24 -0
- package/lib-module/HorizontalScroll/dictionary.js +11 -0
- package/lib-module/HorizontalScroll/index.js +11 -0
- package/lib-module/HorizontalScroll/itemPositions.js +106 -0
- package/lib-module/Icon/Icon.js +61 -0
- package/lib-module/Icon/IconText.js +81 -0
- package/lib-module/Icon/index.js +4 -0
- package/lib-module/IconButton/IconButton.js +115 -0
- package/lib-module/IconButton/index.js +2 -0
- package/lib-module/InputLabel/InputLabel.js +131 -0
- package/lib-module/InputLabel/LabelContent.js +24 -0
- package/lib-module/InputLabel/LabelContent.native.js +16 -0
- package/lib-module/InputLabel/index.js +2 -0
- package/lib-module/InputSupports/InputSupports.js +88 -0
- package/lib-module/InputSupports/index.js +2 -0
- package/lib-module/InputSupports/useInputSupports.js +31 -0
- package/lib-module/Link/ChevronLink.js +51 -0
- package/lib-module/Link/InlinePressable.js +37 -0
- package/lib-module/Link/InlinePressable.native.js +85 -0
- package/lib-module/Link/Link.js +27 -0
- package/lib-module/Link/LinkBase.js +210 -0
- package/lib-module/Link/TextButton.js +43 -0
- package/lib-module/Link/index.js +5 -0
- package/lib-module/List/List.js +55 -0
- package/lib-module/List/ListItem.js +213 -0
- package/lib-module/List/index.js +5 -0
- package/lib-module/Modal/Modal.js +208 -0
- package/lib-module/Modal/dictionary.js +9 -0
- package/lib-module/Modal/index.js +2 -0
- package/lib-module/Notification/Notification.js +196 -0
- package/lib-module/Notification/dictionary.js +8 -0
- package/lib-module/Notification/index.js +2 -0
- package/lib-module/Pagination/PageButton.js +65 -0
- package/lib-module/Pagination/Pagination.js +140 -0
- package/lib-module/Pagination/SideButton.js +103 -0
- package/lib-module/Pagination/dictionary.js +18 -0
- package/lib-module/Pagination/index.js +2 -0
- package/lib-module/Pagination/usePagination.js +72 -0
- package/lib-module/Progress/Progress.js +85 -0
- package/lib-module/Progress/ProgressBar.js +134 -0
- package/lib-module/Progress/ProgressBarBackground.js +41 -0
- package/lib-module/Progress/index.js +4 -0
- package/lib-module/Radio/Radio.js +263 -0
- package/lib-module/Radio/RadioButton.js +128 -0
- package/lib-module/Radio/RadioGroup.js +225 -0
- package/lib-module/Radio/RadioInput.js +60 -0
- package/lib-module/Radio/RadioInput.native.js +6 -0
- package/lib-module/Radio/index.js +3 -0
- package/lib-module/RadioCard/RadioCard.js +218 -0
- package/lib-module/RadioCard/RadioCardGroup.js +232 -0
- package/lib-module/RadioCard/index.js +3 -0
- package/lib-module/Search/Search.js +233 -0
- package/lib-module/Search/dictionary.js +12 -0
- package/lib-module/Search/index.js +2 -0
- package/lib-module/Select/Group.js +20 -0
- package/lib-module/Select/Group.native.js +14 -0
- package/lib-module/Select/Item.js +17 -0
- package/lib-module/Select/Item.native.js +9 -0
- package/lib-module/Select/Picker.js +67 -0
- package/lib-module/Select/Picker.native.js +110 -0
- package/lib-module/Select/Select.js +317 -0
- package/lib-module/Select/index.js +6 -0
- package/lib-module/SideNav/Item.js +139 -0
- package/lib-module/SideNav/ItemContent.js +45 -0
- package/lib-module/SideNav/ItemsGroup.js +115 -0
- package/lib-module/SideNav/SideNav.js +133 -0
- package/lib-module/SideNav/index.js +1 -0
- package/lib-module/Skeleton/Skeleton.js +117 -0
- package/lib-module/Skeleton/index.js +2 -0
- package/lib-module/Skeleton/skeleton.constant.js +3 -0
- package/lib-module/Skeleton/skeletonWebAnimation.js +18 -0
- package/lib-module/Skeleton/useSkeletonNativeAnimation.js +24 -0
- package/lib-module/Spacer/Spacer.js +97 -0
- package/lib-module/Spacer/index.js +2 -0
- package/lib-module/StackView/StackView.js +124 -0
- package/lib-module/StackView/StackWrap.js +48 -0
- package/lib-module/StackView/StackWrap.native.js +3 -0
- package/lib-module/StackView/StackWrapBox.js +114 -0
- package/lib-module/StackView/StackWrapGap.js +58 -0
- package/lib-module/StackView/common.js +32 -0
- package/lib-module/StackView/getStackedContent.js +123 -0
- package/lib-module/StackView/index.js +5 -0
- package/lib-module/StepTracker/Step.js +229 -0
- package/lib-module/StepTracker/StepTracker.js +175 -0
- package/lib-module/StepTracker/dictionary.js +10 -0
- package/lib-module/StepTracker/index.js +2 -0
- package/lib-module/Tabs/Tabs.js +113 -0
- package/lib-module/Tabs/TabsItem.js +215 -0
- package/lib-module/Tabs/index.js +2 -0
- package/lib-module/Tags/Tags.js +238 -0
- package/lib-module/Tags/index.js +2 -0
- package/lib-module/TextInput/TextArea.js +88 -0
- package/lib-module/TextInput/TextInput.js +60 -0
- package/lib-module/TextInput/TextInputBase.js +233 -0
- package/lib-module/TextInput/index.js +3 -0
- package/lib-module/TextInput/propTypes.js +31 -0
- package/lib-module/ThemeProvider/ThemeProvider.js +35 -0
- package/lib-module/ThemeProvider/index.js +6 -0
- package/lib-module/ThemeProvider/useSetTheme.js +22 -0
- package/lib-module/ThemeProvider/useTheme.js +14 -0
- package/lib-module/ThemeProvider/useThemeTokens.js +105 -0
- package/lib-module/ThemeProvider/utils/index.js +2 -0
- package/lib-module/ThemeProvider/utils/styles.js +174 -0
- package/lib-module/ThemeProvider/utils/theme-tokens.js +151 -0
- package/lib-module/ToggleSwitch/ToggleSwitch.js +224 -0
- package/lib-module/ToggleSwitch/ToggleSwitchGroup.js +202 -0
- package/lib-module/ToggleSwitch/index.js +3 -0
- package/lib-module/Tooltip/Backdrop.js +52 -0
- package/lib-module/Tooltip/Backdrop.native.js +43 -0
- package/lib-module/Tooltip/Tooltip.js +332 -0
- package/lib-module/Tooltip/dictionary.js +8 -0
- package/lib-module/Tooltip/getTooltipPosition.js +164 -0
- package/lib-module/Tooltip/index.js +2 -0
- package/lib-module/TooltipButton/TooltipButton.js +71 -0
- package/lib-module/TooltipButton/index.js +2 -0
- package/lib-module/Typography/Typography.js +118 -0
- package/lib-module/Typography/index.js +2 -0
- package/lib-module/ViewportProvider/ViewportProvider.js +28 -0
- package/lib-module/ViewportProvider/index.js +3 -0
- package/lib-module/ViewportProvider/useViewport.js +3 -0
- package/lib-module/ViewportProvider/useViewportListener.js +43 -0
- package/lib-module/index.js +48 -0
- package/lib-module/utils/a11y/index.js +2 -0
- package/lib-module/utils/a11y/semantics.js +154 -0
- package/lib-module/utils/a11y/textSize.js +34 -0
- package/lib-module/utils/animation/index.js +2 -0
- package/lib-module/utils/animation/useVerticalExpandAnimation.js +49 -0
- package/lib-module/utils/children.js +118 -0
- package/lib-module/utils/index.js +15 -0
- package/lib-module/utils/info/index.js +7 -0
- package/lib-module/utils/info/platform/index.js +11 -0
- package/lib-module/utils/info/platform/platform.android.js +1 -0
- package/lib-module/utils/info/platform/platform.ios.js +1 -0
- package/lib-module/utils/info/platform/platform.js +1 -0
- package/lib-module/utils/info/platform/platform.native.js +4 -0
- package/lib-module/utils/info/versions.js +5 -0
- package/lib-module/utils/input.js +180 -0
- package/lib-module/utils/pressability.js +97 -0
- package/lib-module/utils/props/a11yProps.js +140 -0
- package/lib-module/utils/props/clickProps.js +25 -0
- package/lib-module/utils/props/componentPropType.js +63 -0
- package/lib-module/utils/props/copyPropTypes.js +2 -0
- package/lib-module/utils/props/getPropSelector.js +6 -0
- package/lib-module/utils/props/hrefAttrsProp.js +30 -0
- package/lib-module/utils/props/index.js +16 -0
- package/lib-module/utils/props/inputSupportsProps.js +54 -0
- package/lib-module/utils/props/linkProps.js +47 -0
- package/lib-module/utils/props/paddingProp.js +9 -0
- package/lib-module/utils/props/pressProps.js +42 -0
- package/lib-module/utils/props/rectProp.js +9 -0
- package/lib-module/utils/props/responsiveProps.js +30 -0
- package/lib-module/utils/props/selectSystemProps.js +24 -0
- package/lib-module/utils/props/spacingProps.js +56 -0
- package/lib-module/utils/props/tokens.js +120 -0
- package/lib-module/utils/props/variantProp.js +18 -0
- package/lib-module/utils/props/viewProps.js +22 -0
- package/lib-module/utils/ssr.js +35 -0
- package/lib-module/utils/useCopy.js +42 -0
- package/lib-module/utils/useHash.js +44 -0
- package/lib-module/utils/useHash.native.js +7 -0
- package/lib-module/utils/useResponsiveProp.js +47 -0
- package/lib-module/utils/useSpacingScale.js +123 -0
- package/lib-module/utils/useUniqueId.js +12 -0
- package/lib-module/utils/withLinkRouter.js +82 -0
- package/package.json +9 -5
- package/src/A11yText/index.jsx +7 -3
- package/src/ActivityIndicator/Spinner.jsx +56 -44
- package/src/ActivityIndicator/Spinner.native.jsx +20 -12
- package/src/ActivityIndicator/index.jsx +1 -1
- package/src/Box/Box.jsx +15 -13
- package/src/Button/Button.jsx +1 -1
- package/src/Button/ButtonBase.jsx +9 -8
- package/src/Button/ButtonGroup.jsx +17 -8
- package/src/Button/ButtonLink.jsx +1 -1
- package/src/Button/propTypes.js +2 -1
- package/src/Card/Card.jsx +7 -4
- package/src/Card/CardBase.jsx +6 -5
- package/src/Card/PressableCardBase.jsx +12 -12
- package/src/Checkbox/Checkbox.jsx +12 -5
- package/src/Divider/Divider.jsx +19 -12
- package/src/ExpandCollapse/Control.jsx +12 -7
- package/src/ExpandCollapse/ExpandCollapse.jsx +13 -3
- package/src/ExpandCollapse/Panel.jsx +15 -5
- package/src/Feedback/Feedback.jsx +13 -3
- package/src/Fieldset/Fieldset.jsx +1 -1
- package/src/FlexGrid/FlexGrid.jsx +11 -5
- package/src/FlexGrid/helpers/index.js +1 -3
- package/src/HorizontalScroll/HorizontalScroll.jsx +12 -5
- package/src/IconButton/IconButton.jsx +12 -8
- package/src/InputLabel/InputLabel.jsx +16 -2
- package/src/InputSupports/InputSupports.jsx +1 -1
- package/src/Link/LinkBase.jsx +11 -10
- package/src/List/List.jsx +12 -5
- package/src/List/ListItem.jsx +16 -2
- package/src/Modal/Modal.jsx +63 -50
- package/src/Notification/Notification.jsx +23 -6
- package/src/Pagination/Pagination.jsx +10 -3
- package/src/Progress/Progress.jsx +5 -3
- package/src/Progress/ProgressBar.jsx +8 -6
- package/src/Radio/Radio.jsx +13 -5
- package/src/Radio/RadioButton.jsx +13 -3
- package/src/Radio/RadioGroup.jsx +14 -2
- package/src/RadioCard/RadioCard.jsx +9 -6
- package/src/RadioCard/RadioCardGroup.jsx +16 -4
- package/src/Search/Search.jsx +15 -3
- package/src/Select/Select.jsx +21 -7
- package/src/SideNav/Item.jsx +15 -7
- package/src/SideNav/SideNav.jsx +13 -2
- package/src/Skeleton/Skeleton.jsx +55 -43
- package/src/Spacer/Spacer.jsx +10 -18
- package/src/StackView/StackView.jsx +13 -12
- package/src/StackView/StackWrapBox.jsx +12 -12
- package/src/StackView/StackWrapGap.jsx +9 -7
- package/src/StackView/getStackedContent.jsx +1 -1
- package/src/StepTracker/Step.jsx +7 -4
- package/src/StepTracker/StepTracker.jsx +8 -8
- package/src/Tabs/Tabs.jsx +16 -3
- package/src/Tabs/TabsItem.jsx +13 -9
- package/src/Tags/Tags.jsx +16 -7
- package/src/TextInput/TextArea.jsx +20 -8
- package/src/TextInput/TextInput.jsx +20 -8
- package/src/TextInput/TextInputBase.jsx +13 -3
- package/src/ThemeProvider/useThemeTokens.js +3 -3
- package/src/ThemeProvider/utils/theme-tokens.js +3 -3
- package/src/ToggleSwitch/ToggleSwitch.jsx +12 -7
- package/src/ToggleSwitch/ToggleSwitchGroup.jsx +14 -6
- package/src/Tooltip/Tooltip.jsx +13 -3
- package/src/TooltipButton/TooltipButton.jsx +6 -4
- package/src/Typography/Typography.jsx +10 -6
- package/src/index.js +1 -1
- package/src/utils/a11y/semantics.js +3 -2
- package/src/utils/children.jsx +2 -1
- package/src/utils/index.js +2 -1
- package/src/utils/pressability.js +1 -1
- package/src/utils/props/a11yProps.js +151 -0
- package/src/utils/props/clickProps.js +31 -0
- package/src/utils/props/componentPropType.js +67 -0
- package/src/utils/props/copyPropTypes.js +3 -0
- package/src/utils/props/getPropSelector.js +14 -0
- package/src/utils/props/hrefAttrsProp.js +25 -0
- package/src/utils/props/index.js +16 -0
- package/src/{InputSupports/propTypes.js → utils/props/inputSupportsProps.js} +2 -4
- package/src/utils/props/linkProps.js +43 -0
- package/src/utils/props/paddingProp.js +10 -0
- package/src/utils/props/pressProps.js +45 -0
- package/src/utils/props/rectProp.js +10 -0
- package/src/utils/props/responsiveProps.js +30 -0
- package/src/utils/props/selectSystemProps.js +25 -0
- package/src/utils/props/spacingProps.js +58 -0
- package/src/utils/props/tokens.js +150 -0
- package/src/utils/props/variantProp.js +20 -0
- package/src/utils/props/viewProps.js +23 -0
- package/src/utils/ssr.js +35 -0
- package/src/utils/useResponsiveProp.js +1 -1
- package/src/utils/useSpacingScale.js +4 -4
- package/.ultra.cache.json +0 -1
- package/lib/utils/a11y/propTypes.js +0 -61
- package/lib/utils/a11y/propTypes.native.js +0 -47
- package/lib/utils/propTypes.js +0 -566
- package/release-context.json +0 -7
- package/src/utils/a11y/propTypes.js +0 -61
- package/src/utils/a11y/propTypes.native.js +0 -39
- package/src/utils/propTypes.js +0 -561
package/component-docs.json
CHANGED
|
@@ -110,7 +110,8 @@
|
|
|
110
110
|
"rightIcon": "icon",
|
|
111
111
|
"iconDisplace": "size",
|
|
112
112
|
"iconSize": "size",
|
|
113
|
-
"iconSpace": "integer"
|
|
113
|
+
"iconSpace": "integer",
|
|
114
|
+
"textLine": "textLine"
|
|
114
115
|
},
|
|
115
116
|
"CheckboxGroup": {
|
|
116
117
|
"space": "integer",
|
|
@@ -1744,52 +1745,6 @@
|
|
|
1744
1745
|
"required": false,
|
|
1745
1746
|
"description": "Sets right padding using the theme's spacing scale.\n\n@see {@link SpacingValue}"
|
|
1746
1747
|
},
|
|
1747
|
-
"pointerEvents": {
|
|
1748
|
-
"type": {
|
|
1749
|
-
"name": "enum",
|
|
1750
|
-
"value": [
|
|
1751
|
-
{
|
|
1752
|
-
"value": "'all'",
|
|
1753
|
-
"computed": false
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
"value": "'none'",
|
|
1757
|
-
"computed": false
|
|
1758
|
-
},
|
|
1759
|
-
{
|
|
1760
|
-
"value": "'box-only'",
|
|
1761
|
-
"computed": false
|
|
1762
|
-
},
|
|
1763
|
-
{
|
|
1764
|
-
"value": "'box-none'",
|
|
1765
|
-
"computed": false
|
|
1766
|
-
}
|
|
1767
|
-
]
|
|
1768
|
-
},
|
|
1769
|
-
"required": false,
|
|
1770
|
-
"description": ""
|
|
1771
|
-
},
|
|
1772
|
-
"onLayout": {
|
|
1773
|
-
"type": {
|
|
1774
|
-
"name": "func"
|
|
1775
|
-
},
|
|
1776
|
-
"required": false,
|
|
1777
|
-
"description": ""
|
|
1778
|
-
},
|
|
1779
|
-
"nativeID": {
|
|
1780
|
-
"type": {
|
|
1781
|
-
"name": "string"
|
|
1782
|
-
},
|
|
1783
|
-
"required": false,
|
|
1784
|
-
"description": ""
|
|
1785
|
-
},
|
|
1786
|
-
"testID": {
|
|
1787
|
-
"type": {
|
|
1788
|
-
"name": "string"
|
|
1789
|
-
},
|
|
1790
|
-
"required": false,
|
|
1791
|
-
"description": "Use in tests if the box itself needs to be targetted and no other way of selecting the\nbox is available (e.g. it cannot be targetted using an appropriate `accessibilityRole`)."
|
|
1792
|
-
},
|
|
1793
1748
|
"variant": {
|
|
1794
1749
|
"type": {
|
|
1795
1750
|
"name": "objectOf",
|
|
@@ -1946,6 +1901,13 @@
|
|
|
1946
1901
|
"required": false,
|
|
1947
1902
|
"description": "Optional semantic HTML tag, to apply to the container on web. Does not change styling.\n\nIn native apps, if a header tag is provided (\"h1\", \"h2\" etc) and accessibilityRole prop\nis not defined, the accessibilityRole will default to \"heading\"."
|
|
1948
1903
|
},
|
|
1904
|
+
"testID": {
|
|
1905
|
+
"type": {
|
|
1906
|
+
"name": "string"
|
|
1907
|
+
},
|
|
1908
|
+
"required": false,
|
|
1909
|
+
"description": "Use in tests if the box itself needs to be targetted and no other way of selecting the\nbox is available (e.g. it cannot be targetted using an appropriate `accessibilityRole`)."
|
|
1910
|
+
},
|
|
1949
1911
|
"children": {
|
|
1950
1912
|
"type": {
|
|
1951
1913
|
"name": "node"
|
|
@@ -2013,7 +1975,7 @@
|
|
|
2013
1975
|
}
|
|
2014
1976
|
},
|
|
2015
1977
|
"attributes": {
|
|
2016
|
-
"acceptsRNA11yProps":
|
|
1978
|
+
"acceptsRNA11yProps": false
|
|
2017
1979
|
}
|
|
2018
1980
|
}
|
|
2019
1981
|
},
|
|
@@ -2021,6 +1983,13 @@
|
|
|
2021
1983
|
"docs": {
|
|
2022
1984
|
"description": "A pressable themeless base component that handles pressable states and passes tokens\nbased on these to an outer border and a base Card component. Not intended to be used in\napps or sites directly: build themed components on top of this.",
|
|
2023
1985
|
"props": {
|
|
1986
|
+
"accessibilityRole": {
|
|
1987
|
+
"defaultValue": {
|
|
1988
|
+
"value": "href ? 'link' : undefined",
|
|
1989
|
+
"computed": false
|
|
1990
|
+
},
|
|
1991
|
+
"required": false
|
|
1992
|
+
},
|
|
2024
1993
|
"children": {
|
|
2025
1994
|
"type": {
|
|
2026
1995
|
"name": "union",
|
|
@@ -2067,7 +2036,7 @@
|
|
|
2067
2036
|
}
|
|
2068
2037
|
},
|
|
2069
2038
|
"attributes": {
|
|
2070
|
-
"acceptsRNA11yProps":
|
|
2039
|
+
"acceptsRNA11yProps": false
|
|
2071
2040
|
}
|
|
2072
2041
|
}
|
|
2073
2042
|
},
|
|
@@ -3027,59 +2996,6 @@
|
|
|
3027
2996
|
"required": false,
|
|
3028
2997
|
"description": "Whether or not to include gutter at the ends to the left and right of the FlexGrid"
|
|
3029
2998
|
},
|
|
3030
|
-
"pointerEvents": {
|
|
3031
|
-
"type": {
|
|
3032
|
-
"name": "enum",
|
|
3033
|
-
"value": [
|
|
3034
|
-
{
|
|
3035
|
-
"value": "'all'",
|
|
3036
|
-
"computed": false
|
|
3037
|
-
},
|
|
3038
|
-
{
|
|
3039
|
-
"value": "'none'",
|
|
3040
|
-
"computed": false
|
|
3041
|
-
},
|
|
3042
|
-
{
|
|
3043
|
-
"value": "'box-only'",
|
|
3044
|
-
"computed": false
|
|
3045
|
-
},
|
|
3046
|
-
{
|
|
3047
|
-
"value": "'box-none'",
|
|
3048
|
-
"computed": false
|
|
3049
|
-
}
|
|
3050
|
-
]
|
|
3051
|
-
},
|
|
3052
|
-
"required": false,
|
|
3053
|
-
"description": ""
|
|
3054
|
-
},
|
|
3055
|
-
"onLayout": {
|
|
3056
|
-
"type": {
|
|
3057
|
-
"name": "func"
|
|
3058
|
-
},
|
|
3059
|
-
"required": false,
|
|
3060
|
-
"description": ""
|
|
3061
|
-
},
|
|
3062
|
-
"nativeID": {
|
|
3063
|
-
"type": {
|
|
3064
|
-
"name": "string"
|
|
3065
|
-
},
|
|
3066
|
-
"required": false,
|
|
3067
|
-
"description": ""
|
|
3068
|
-
},
|
|
3069
|
-
"testID": {
|
|
3070
|
-
"type": {
|
|
3071
|
-
"name": "string"
|
|
3072
|
-
},
|
|
3073
|
-
"required": false,
|
|
3074
|
-
"description": ""
|
|
3075
|
-
},
|
|
3076
|
-
"dataSet": {
|
|
3077
|
-
"type": {
|
|
3078
|
-
"name": "object"
|
|
3079
|
-
},
|
|
3080
|
-
"required": false,
|
|
3081
|
-
"description": ""
|
|
3082
|
-
},
|
|
3083
2999
|
"xsReverse": {
|
|
3084
3000
|
"type": {
|
|
3085
3001
|
"name": "bool"
|
|
@@ -3981,7 +3897,7 @@
|
|
|
3981
3897
|
},
|
|
3982
3898
|
"HorizontalScroll": {
|
|
3983
3899
|
"docs": {
|
|
3984
|
-
"description": "Base component that scrolls horizontally and displays left and right buttons if\nthere is content to the left and the right which can be scrolled to.\n\n@TODO
|
|
3900
|
+
"description": "Base component that scrolls horizontally and displays left and right buttons if\nthere is content to the left and the right which can be scrolled to.\n\n@TODO revisit `ScrollButton` after IconButton is stable.",
|
|
3985
3901
|
"props": {
|
|
3986
3902
|
"itemPositions": {
|
|
3987
3903
|
"type": {
|
|
@@ -4131,6 +4047,13 @@
|
|
|
4131
4047
|
"docs": {
|
|
4132
4048
|
"description": "A pressable themeless base component that handles pressable states and passes tokens\nbased on these to an outer border and a base Card component. Not intended to be used in\napps or sites directly: build themed components on top of this.",
|
|
4133
4049
|
"props": {
|
|
4050
|
+
"accessibilityRole": {
|
|
4051
|
+
"defaultValue": {
|
|
4052
|
+
"value": "href ? 'link' : 'button'",
|
|
4053
|
+
"computed": false
|
|
4054
|
+
},
|
|
4055
|
+
"required": false
|
|
4056
|
+
},
|
|
4134
4057
|
"variant": {
|
|
4135
4058
|
"type": {
|
|
4136
4059
|
"name": "objectOf",
|
|
@@ -4237,7 +4160,7 @@
|
|
|
4237
4160
|
}
|
|
4238
4161
|
},
|
|
4239
4162
|
"attributes": {
|
|
4240
|
-
"acceptsRNA11yProps":
|
|
4163
|
+
"acceptsRNA11yProps": false
|
|
4241
4164
|
}
|
|
4242
4165
|
}
|
|
4243
4166
|
},
|
|
@@ -4416,7 +4339,7 @@
|
|
|
4416
4339
|
}
|
|
4417
4340
|
},
|
|
4418
4341
|
"attributes": {
|
|
4419
|
-
"acceptsRNA11yProps":
|
|
4342
|
+
"acceptsRNA11yProps": false
|
|
4420
4343
|
}
|
|
4421
4344
|
},
|
|
4422
4345
|
"Item": {
|
|
@@ -4658,7 +4581,7 @@
|
|
|
4658
4581
|
}
|
|
4659
4582
|
},
|
|
4660
4583
|
"attributes": {
|
|
4661
|
-
"acceptsRNA11yProps":
|
|
4584
|
+
"acceptsRNA11yProps": false
|
|
4662
4585
|
}
|
|
4663
4586
|
},
|
|
4664
4587
|
"Item": {
|
|
@@ -5917,68 +5840,6 @@
|
|
|
5917
5840
|
"docs": {
|
|
5918
5841
|
"description": "A basic form single-choice select component. Use in forms or individually to receive user's input.\n\n## Usage criteria\n- Include a `placeholder` to provide instructions such as \"Please select...\" as an unselectable option (recommended)\n- Use when options are between 7-15 (recommended)\n- For options are 6 and under, use `Radio` groups or `ButtonGroup`.\n- For options 15 and above, look for alternatives (e.g grouping into categories, or input field with auto-complete etc.)\n\n## Controlled component\nIf it is required that the state of the `Select` be controlled by the application or other external methods,\n`value` and `onChange` props must be passed to the `Select`.\nIf the `Select` value should not be changed by user input, a `readOnly` prop must be provided.\n\n## Uncontrolled component\nIf it is not necessary to control the `Select` state, you can create one without a value prop.\nIn this case its value can be accessed within the `onChange` callback. Use the `initialValue` prop to set the\ndefault value for an uncontrolled `Select`.\n\n## Getting feedback for entered values\nUse the `feedback` prop to give the user feedback regarding their selection.\nYou can affirm that the user's selection was correct, or highlight errors that must be corrected, using the `validation` prop.\nKeep feedback text as brief as possible, should be limited to text and links.\n\n## Using a tooltip\nWhen a more in-depth explanation is needed to fill out a `Select` properly, the tooltip prop may be used.\n\n## Grouping options\n`Select` supports option groups. Use a `Select.Group` component to render an `<optgroup>` element with its items.\nNOTE: this does not work on native platforms - the grouped items will be shown at the same level as the non-grouped items.",
|
|
5919
5842
|
"props": {
|
|
5920
|
-
"label": {
|
|
5921
|
-
"type": {
|
|
5922
|
-
"name": "string"
|
|
5923
|
-
},
|
|
5924
|
-
"required": false,
|
|
5925
|
-
"description": "The input label."
|
|
5926
|
-
},
|
|
5927
|
-
"hint": {
|
|
5928
|
-
"type": {
|
|
5929
|
-
"name": "string"
|
|
5930
|
-
},
|
|
5931
|
-
"required": false,
|
|
5932
|
-
"description": "A short description of the expected input."
|
|
5933
|
-
},
|
|
5934
|
-
"hintPosition": {
|
|
5935
|
-
"type": {
|
|
5936
|
-
"name": "enum",
|
|
5937
|
-
"value": [
|
|
5938
|
-
{
|
|
5939
|
-
"value": "'inline'",
|
|
5940
|
-
"computed": false
|
|
5941
|
-
},
|
|
5942
|
-
{
|
|
5943
|
-
"value": "'below'",
|
|
5944
|
-
"computed": false
|
|
5945
|
-
}
|
|
5946
|
-
]
|
|
5947
|
-
},
|
|
5948
|
-
"required": false,
|
|
5949
|
-
"description": "Position of the hint relative to label. Use `below` to display a larger hint below the label."
|
|
5950
|
-
},
|
|
5951
|
-
"feedback": {
|
|
5952
|
-
"type": {
|
|
5953
|
-
"name": "string"
|
|
5954
|
-
},
|
|
5955
|
-
"required": false,
|
|
5956
|
-
"description": "A detailed description of validation error/success or additional instructions.\nVisual variant is determined based on the `validation` prop."
|
|
5957
|
-
},
|
|
5958
|
-
"tooltip": {
|
|
5959
|
-
"type": {
|
|
5960
|
-
"name": "string"
|
|
5961
|
-
},
|
|
5962
|
-
"required": false,
|
|
5963
|
-
"description": "Content of an optional `Tooltip`. If set, a tooltip button will be shown next to the label."
|
|
5964
|
-
},
|
|
5965
|
-
"validation": {
|
|
5966
|
-
"type": {
|
|
5967
|
-
"name": "enum",
|
|
5968
|
-
"value": [
|
|
5969
|
-
{
|
|
5970
|
-
"value": "'error'",
|
|
5971
|
-
"computed": false
|
|
5972
|
-
},
|
|
5973
|
-
{
|
|
5974
|
-
"value": "'success'",
|
|
5975
|
-
"computed": false
|
|
5976
|
-
}
|
|
5977
|
-
]
|
|
5978
|
-
},
|
|
5979
|
-
"required": false,
|
|
5980
|
-
"description": "Use to visually mark an input as valid or invalid."
|
|
5981
|
-
},
|
|
5982
5843
|
"initialValue": {
|
|
5983
5844
|
"type": {
|
|
5984
5845
|
"name": "string"
|
|
@@ -6261,6 +6122,13 @@
|
|
|
6261
6122
|
"docs": {
|
|
6262
6123
|
"description": "`SideNav.Item` is a navigational element that is used within `SideNav` or `SideNav.ItemsGroup`.\n\n This component can only be accessed as a name-spaced component: `SideNav.Item`.",
|
|
6263
6124
|
"props": {
|
|
6125
|
+
"accessibilityRole": {
|
|
6126
|
+
"defaultValue": {
|
|
6127
|
+
"value": "'link'",
|
|
6128
|
+
"computed": false
|
|
6129
|
+
},
|
|
6130
|
+
"required": false
|
|
6131
|
+
},
|
|
6264
6132
|
"children": {
|
|
6265
6133
|
"type": {
|
|
6266
6134
|
"name": "node"
|
|
@@ -6371,7 +6239,7 @@
|
|
|
6371
6239
|
}
|
|
6372
6240
|
},
|
|
6373
6241
|
"attributes": {
|
|
6374
|
-
"acceptsRNA11yProps":
|
|
6242
|
+
"acceptsRNA11yProps": false
|
|
6375
6243
|
}
|
|
6376
6244
|
}
|
|
6377
6245
|
},
|
|
@@ -6653,59 +6521,6 @@
|
|
|
6653
6521
|
"required": false,
|
|
6654
6522
|
"description": "Sets the `flexDirection` of the container and, if `divider` is used, gives the Divider the appropriate direction."
|
|
6655
6523
|
},
|
|
6656
|
-
"pointerEvents": {
|
|
6657
|
-
"type": {
|
|
6658
|
-
"name": "enum",
|
|
6659
|
-
"value": [
|
|
6660
|
-
{
|
|
6661
|
-
"value": "'all'",
|
|
6662
|
-
"computed": false
|
|
6663
|
-
},
|
|
6664
|
-
{
|
|
6665
|
-
"value": "'none'",
|
|
6666
|
-
"computed": false
|
|
6667
|
-
},
|
|
6668
|
-
{
|
|
6669
|
-
"value": "'box-only'",
|
|
6670
|
-
"computed": false
|
|
6671
|
-
},
|
|
6672
|
-
{
|
|
6673
|
-
"value": "'box-none'",
|
|
6674
|
-
"computed": false
|
|
6675
|
-
}
|
|
6676
|
-
]
|
|
6677
|
-
},
|
|
6678
|
-
"required": false,
|
|
6679
|
-
"description": ""
|
|
6680
|
-
},
|
|
6681
|
-
"onLayout": {
|
|
6682
|
-
"type": {
|
|
6683
|
-
"name": "func"
|
|
6684
|
-
},
|
|
6685
|
-
"required": false,
|
|
6686
|
-
"description": ""
|
|
6687
|
-
},
|
|
6688
|
-
"nativeID": {
|
|
6689
|
-
"type": {
|
|
6690
|
-
"name": "string"
|
|
6691
|
-
},
|
|
6692
|
-
"required": false,
|
|
6693
|
-
"description": ""
|
|
6694
|
-
},
|
|
6695
|
-
"testID": {
|
|
6696
|
-
"type": {
|
|
6697
|
-
"name": "string"
|
|
6698
|
-
},
|
|
6699
|
-
"required": false,
|
|
6700
|
-
"description": ""
|
|
6701
|
-
},
|
|
6702
|
-
"dataSet": {
|
|
6703
|
-
"type": {
|
|
6704
|
-
"name": "object"
|
|
6705
|
-
},
|
|
6706
|
-
"required": false,
|
|
6707
|
-
"description": ""
|
|
6708
|
-
},
|
|
6709
6524
|
"tokens": {
|
|
6710
6525
|
"type": {
|
|
6711
6526
|
"name": "custom",
|
|
@@ -6769,11 +6584,6 @@
|
|
|
6769
6584
|
"name": "bool",
|
|
6770
6585
|
"description": "By default, the divider is a horizontal line the full width of its parent.\nWith `vertical` prop and when inside a container with { flexDirection: row }, draws a full height vertical line.",
|
|
6771
6586
|
"required": false
|
|
6772
|
-
},
|
|
6773
|
-
"testID": {
|
|
6774
|
-
"name": "string",
|
|
6775
|
-
"description": "@ignore\nIn tests, the only way to select dividers is with testID prop and getByTestId, since they have no content,\nno accessibility role on native, and there is no equivalent of nextSibling in React Native Testing Library.",
|
|
6776
|
-
"required": false
|
|
6777
6587
|
}
|
|
6778
6588
|
}
|
|
6779
6589
|
}
|
|
@@ -7619,6 +7429,13 @@
|
|
|
7619
7429
|
"required": false,
|
|
7620
7430
|
"description": "Optional semantic HTML tag, to apply to the text on web. Does not change styling.\n\n`tag` and `heading` props set the same thing, so shouldn't be used together (`tag` overrides `heading`).\n\nIn native apps, if a header tag is provided (\"h1\", \"h2\" etc) and accessibilityRole prop\nis not defined, the accessibilityRole will default to \"heading\"."
|
|
7621
7431
|
},
|
|
7432
|
+
"accessibilityRole": {
|
|
7433
|
+
"defaultValue": {
|
|
7434
|
+
"value": "heading === true ? 'header' : undefined",
|
|
7435
|
+
"computed": false
|
|
7436
|
+
},
|
|
7437
|
+
"required": false
|
|
7438
|
+
},
|
|
7622
7439
|
"block": {
|
|
7623
7440
|
"defaultValue": {
|
|
7624
7441
|
"value": "false",
|
|
@@ -7747,7 +7564,7 @@
|
|
|
7747
7564
|
}
|
|
7748
7565
|
},
|
|
7749
7566
|
"attributes": {
|
|
7750
|
-
"acceptsRNA11yProps":
|
|
7567
|
+
"acceptsRNA11yProps": false
|
|
7751
7568
|
}
|
|
7752
7569
|
}
|
|
7753
7570
|
},
|
|
@@ -7850,24 +7667,56 @@
|
|
|
7850
7667
|
"docs": {
|
|
7851
7668
|
"description": "",
|
|
7852
7669
|
"props": {
|
|
7853
|
-
"
|
|
7854
|
-
"type": {
|
|
7855
|
-
"name": "bool"
|
|
7856
|
-
},
|
|
7857
|
-
"required": false,
|
|
7858
|
-
"description": "If true, prevents the button from being pressed, changes the cursor (on web) and accessibility\nattributes to communicate this to the user, and applies `inactive: true` appearances from the theme"
|
|
7859
|
-
},
|
|
7860
|
-
"disabled": {
|
|
7861
|
-
"type": {
|
|
7862
|
-
"name": "bool"
|
|
7863
|
-
},
|
|
7864
|
-
"required": false,
|
|
7865
|
-
"description": "Alias for `inactive`"
|
|
7866
|
-
},
|
|
7867
|
-
"children": {
|
|
7670
|
+
"tokens": {
|
|
7868
7671
|
"type": {
|
|
7869
7672
|
"name": "custom",
|
|
7870
|
-
"raw":
|
|
7673
|
+
"raw": {
|
|
7674
|
+
"borderColor": "color",
|
|
7675
|
+
"borderWidth": "border",
|
|
7676
|
+
"borderRadius": "radius",
|
|
7677
|
+
"shadow": "shadow",
|
|
7678
|
+
"fontSize": "fontSize",
|
|
7679
|
+
"color": "color",
|
|
7680
|
+
"lineHeight": "lineHeight",
|
|
7681
|
+
"textAlign": "flexJustifyContent",
|
|
7682
|
+
"alignSelf": "flexAlign",
|
|
7683
|
+
"fontName": "fontName",
|
|
7684
|
+
"fontWeight": "fontWeight",
|
|
7685
|
+
"backgroundColor": "color",
|
|
7686
|
+
"opacity": "opacity",
|
|
7687
|
+
"paddingLeft": "size",
|
|
7688
|
+
"paddingRight": "size",
|
|
7689
|
+
"paddingTop": "size",
|
|
7690
|
+
"paddingBottom": "size",
|
|
7691
|
+
"width": "size",
|
|
7692
|
+
"minWidth": "size",
|
|
7693
|
+
"outerBorderColor": "color",
|
|
7694
|
+
"outerBorderWidth": "border",
|
|
7695
|
+
"outerBorderGap": "size",
|
|
7696
|
+
"outerBackgroundColor": "color"
|
|
7697
|
+
}
|
|
7698
|
+
},
|
|
7699
|
+
"required": false,
|
|
7700
|
+
"description": ""
|
|
7701
|
+
},
|
|
7702
|
+
"inactive": {
|
|
7703
|
+
"type": {
|
|
7704
|
+
"name": "bool"
|
|
7705
|
+
},
|
|
7706
|
+
"required": false,
|
|
7707
|
+
"description": "If true, prevents the button from being pressed, changes the cursor (on web) and accessibility\nattributes to communicate this to the user, and applies `inactive: true` appearances from the theme"
|
|
7708
|
+
},
|
|
7709
|
+
"disabled": {
|
|
7710
|
+
"type": {
|
|
7711
|
+
"name": "bool"
|
|
7712
|
+
},
|
|
7713
|
+
"required": false,
|
|
7714
|
+
"description": "Alias for `inactive`"
|
|
7715
|
+
},
|
|
7716
|
+
"children": {
|
|
7717
|
+
"type": {
|
|
7718
|
+
"name": "custom",
|
|
7719
|
+
"raw": "ABBPropTypes.childrenOf(\n PropTypes.oneOfType([ABBPropTypes.elementType(A11yText), PropTypes.string])\n)"
|
|
7871
7720
|
},
|
|
7872
7721
|
"required": false,
|
|
7873
7722
|
"description": "Button's children must be either:\n - One or more text strings and / or A11yText components\n - A render function with contents that responds to current button state by being passed an object of:\n```\n{ hovered<bool>, focused<bool>, pressed<bool>, inactive<bool>, selected<bool>, textStyles<RNStyle> }\n```"
|
|
@@ -7910,6 +7759,38 @@
|
|
|
7910
7759
|
"docs": {
|
|
7911
7760
|
"description": "`ButtonLink` is a component with the semantics and behaviour of a link, but with the visual appearance of a button.\nButtonLink is a block-level component and should not be used inline.",
|
|
7912
7761
|
"props": {
|
|
7762
|
+
"tokens": {
|
|
7763
|
+
"type": {
|
|
7764
|
+
"name": "custom",
|
|
7765
|
+
"raw": {
|
|
7766
|
+
"borderColor": "color",
|
|
7767
|
+
"borderWidth": "border",
|
|
7768
|
+
"borderRadius": "radius",
|
|
7769
|
+
"shadow": "shadow",
|
|
7770
|
+
"fontSize": "fontSize",
|
|
7771
|
+
"color": "color",
|
|
7772
|
+
"lineHeight": "lineHeight",
|
|
7773
|
+
"textAlign": "flexJustifyContent",
|
|
7774
|
+
"alignSelf": "flexAlign",
|
|
7775
|
+
"fontName": "fontName",
|
|
7776
|
+
"fontWeight": "fontWeight",
|
|
7777
|
+
"backgroundColor": "color",
|
|
7778
|
+
"opacity": "opacity",
|
|
7779
|
+
"paddingLeft": "size",
|
|
7780
|
+
"paddingRight": "size",
|
|
7781
|
+
"paddingTop": "size",
|
|
7782
|
+
"paddingBottom": "size",
|
|
7783
|
+
"width": "size",
|
|
7784
|
+
"minWidth": "size",
|
|
7785
|
+
"outerBorderColor": "color",
|
|
7786
|
+
"outerBorderWidth": "border",
|
|
7787
|
+
"outerBorderGap": "size",
|
|
7788
|
+
"outerBackgroundColor": "color"
|
|
7789
|
+
}
|
|
7790
|
+
},
|
|
7791
|
+
"required": false,
|
|
7792
|
+
"description": ""
|
|
7793
|
+
},
|
|
7913
7794
|
"inactive": {
|
|
7914
7795
|
"type": {
|
|
7915
7796
|
"name": "bool"
|
|
@@ -8685,79 +8566,12 @@
|
|
|
8685
8566
|
"required": false,
|
|
8686
8567
|
"description": ""
|
|
8687
8568
|
},
|
|
8688
|
-
"
|
|
8689
|
-
"
|
|
8690
|
-
"
|
|
8691
|
-
|
|
8692
|
-
"required": false,
|
|
8693
|
-
"description": ""
|
|
8694
|
-
},
|
|
8695
|
-
"onPressIn": {
|
|
8696
|
-
"type": {
|
|
8697
|
-
"name": "func"
|
|
8698
|
-
},
|
|
8699
|
-
"required": false,
|
|
8700
|
-
"description": ""
|
|
8701
|
-
},
|
|
8702
|
-
"onPressOut": {
|
|
8703
|
-
"type": {
|
|
8704
|
-
"name": "func"
|
|
8705
|
-
},
|
|
8706
|
-
"required": false,
|
|
8707
|
-
"description": ""
|
|
8708
|
-
},
|
|
8709
|
-
"disabled": {
|
|
8710
|
-
"type": {
|
|
8711
|
-
"name": "bool"
|
|
8712
|
-
},
|
|
8713
|
-
"required": false,
|
|
8714
|
-
"description": ""
|
|
8715
|
-
},
|
|
8716
|
-
"href": {
|
|
8717
|
-
"type": {
|
|
8718
|
-
"name": "string"
|
|
8719
|
-
},
|
|
8720
|
-
"required": false,
|
|
8721
|
-
"description": ""
|
|
8722
|
-
},
|
|
8723
|
-
"hrefAttrs": {
|
|
8724
|
-
"type": {
|
|
8725
|
-
"name": "shape",
|
|
8726
|
-
"value": {
|
|
8727
|
-
"download": {
|
|
8728
|
-
"name": "string",
|
|
8729
|
-
"required": false
|
|
8730
|
-
},
|
|
8731
|
-
"rel": {
|
|
8732
|
-
"name": "string",
|
|
8733
|
-
"required": false
|
|
8734
|
-
},
|
|
8735
|
-
"target": {
|
|
8736
|
-
"name": "enum",
|
|
8737
|
-
"value": [
|
|
8738
|
-
{
|
|
8739
|
-
"value": "'_self'",
|
|
8740
|
-
"computed": false
|
|
8741
|
-
},
|
|
8742
|
-
{
|
|
8743
|
-
"value": "'_blank'",
|
|
8744
|
-
"computed": false
|
|
8745
|
-
},
|
|
8746
|
-
{
|
|
8747
|
-
"value": "'_parent'",
|
|
8748
|
-
"computed": false
|
|
8749
|
-
},
|
|
8750
|
-
{
|
|
8751
|
-
"value": "'_top'",
|
|
8752
|
-
"computed": false
|
|
8753
|
-
}
|
|
8754
|
-
],
|
|
8755
|
-
"required": false
|
|
8756
|
-
}
|
|
8757
|
-
}
|
|
8569
|
+
"accessibilityRole": {
|
|
8570
|
+
"defaultValue": {
|
|
8571
|
+
"value": "'link'",
|
|
8572
|
+
"computed": false
|
|
8758
8573
|
},
|
|
8759
|
-
"required": false
|
|
8760
|
-
"description": "On Web if href is passed, React Native Web maps this object's props to\n`rel`, `target` and `download` attrs."
|
|
8574
|
+
"required": false
|
|
8761
8575
|
},
|
|
8762
8576
|
"variant": {
|
|
8763
8577
|
"type": {
|
|
@@ -8815,10 +8629,49 @@
|
|
|
8815
8629
|
},
|
|
8816
8630
|
"required": false,
|
|
8817
8631
|
"description": "A function component for an SVG icon to render inside the link. Inherits size and color from\nthe link and any Typography the link is nested inside."
|
|
8632
|
+
},
|
|
8633
|
+
"hrefAttrs": {
|
|
8634
|
+
"type": {
|
|
8635
|
+
"name": "shape",
|
|
8636
|
+
"value": {
|
|
8637
|
+
"download": {
|
|
8638
|
+
"name": "string",
|
|
8639
|
+
"required": false
|
|
8640
|
+
},
|
|
8641
|
+
"rel": {
|
|
8642
|
+
"name": "string",
|
|
8643
|
+
"required": false
|
|
8644
|
+
},
|
|
8645
|
+
"target": {
|
|
8646
|
+
"name": "enum",
|
|
8647
|
+
"value": [
|
|
8648
|
+
{
|
|
8649
|
+
"value": "'_self'",
|
|
8650
|
+
"computed": false
|
|
8651
|
+
},
|
|
8652
|
+
{
|
|
8653
|
+
"value": "'_blank'",
|
|
8654
|
+
"computed": false
|
|
8655
|
+
},
|
|
8656
|
+
{
|
|
8657
|
+
"value": "'_parent'",
|
|
8658
|
+
"computed": false
|
|
8659
|
+
},
|
|
8660
|
+
{
|
|
8661
|
+
"value": "'_top'",
|
|
8662
|
+
"computed": false
|
|
8663
|
+
}
|
|
8664
|
+
],
|
|
8665
|
+
"required": false
|
|
8666
|
+
}
|
|
8667
|
+
}
|
|
8668
|
+
},
|
|
8669
|
+
"required": false,
|
|
8670
|
+
"description": "On Web if href is passed, React Native Web maps this object's props to\n`rel`, `target` and `download` attrs."
|
|
8818
8671
|
}
|
|
8819
8672
|
},
|
|
8820
8673
|
"attributes": {
|
|
8821
|
-
"acceptsRNA11yProps":
|
|
8674
|
+
"acceptsRNA11yProps": false
|
|
8822
8675
|
}
|
|
8823
8676
|
}
|
|
8824
8677
|
},
|
|
@@ -9254,59 +9107,6 @@
|
|
|
9254
9107
|
"docs": {
|
|
9255
9108
|
"description": "StackWrap is an alternative to StackView where the spaced items are allowed to wrap.\n\nAs well as providing space between the items, StackWrap provides `gap` space between\nwrapped lines of items. By default, this `gap` is the same as the gap between spaced items.\nIf a different spacing is desired between wrapped lines, pass a spacing value to the `gap` prop.",
|
|
9256
9109
|
"props": {
|
|
9257
|
-
"pointerEvents": {
|
|
9258
|
-
"type": {
|
|
9259
|
-
"name": "enum",
|
|
9260
|
-
"value": [
|
|
9261
|
-
{
|
|
9262
|
-
"value": "'all'",
|
|
9263
|
-
"computed": false
|
|
9264
|
-
},
|
|
9265
|
-
{
|
|
9266
|
-
"value": "'none'",
|
|
9267
|
-
"computed": false
|
|
9268
|
-
},
|
|
9269
|
-
{
|
|
9270
|
-
"value": "'box-only'",
|
|
9271
|
-
"computed": false
|
|
9272
|
-
},
|
|
9273
|
-
{
|
|
9274
|
-
"value": "'box-none'",
|
|
9275
|
-
"computed": false
|
|
9276
|
-
}
|
|
9277
|
-
]
|
|
9278
|
-
},
|
|
9279
|
-
"required": false,
|
|
9280
|
-
"description": ""
|
|
9281
|
-
},
|
|
9282
|
-
"onLayout": {
|
|
9283
|
-
"type": {
|
|
9284
|
-
"name": "func"
|
|
9285
|
-
},
|
|
9286
|
-
"required": false,
|
|
9287
|
-
"description": ""
|
|
9288
|
-
},
|
|
9289
|
-
"nativeID": {
|
|
9290
|
-
"type": {
|
|
9291
|
-
"name": "string"
|
|
9292
|
-
},
|
|
9293
|
-
"required": false,
|
|
9294
|
-
"description": ""
|
|
9295
|
-
},
|
|
9296
|
-
"testID": {
|
|
9297
|
-
"type": {
|
|
9298
|
-
"name": "string"
|
|
9299
|
-
},
|
|
9300
|
-
"required": false,
|
|
9301
|
-
"description": ""
|
|
9302
|
-
},
|
|
9303
|
-
"dataSet": {
|
|
9304
|
-
"type": {
|
|
9305
|
-
"name": "object"
|
|
9306
|
-
},
|
|
9307
|
-
"required": false,
|
|
9308
|
-
"description": ""
|
|
9309
|
-
},
|
|
9310
9110
|
"tokens": {
|
|
9311
9111
|
"type": {
|
|
9312
9112
|
"name": "custom",
|
|
@@ -9489,68 +9289,6 @@
|
|
|
9489
9289
|
"required": false,
|
|
9490
9290
|
"description": ""
|
|
9491
9291
|
},
|
|
9492
|
-
"label": {
|
|
9493
|
-
"type": {
|
|
9494
|
-
"name": "string"
|
|
9495
|
-
},
|
|
9496
|
-
"required": false,
|
|
9497
|
-
"description": "The input label."
|
|
9498
|
-
},
|
|
9499
|
-
"hint": {
|
|
9500
|
-
"type": {
|
|
9501
|
-
"name": "string"
|
|
9502
|
-
},
|
|
9503
|
-
"required": false,
|
|
9504
|
-
"description": "A short description of the expected input."
|
|
9505
|
-
},
|
|
9506
|
-
"hintPosition": {
|
|
9507
|
-
"type": {
|
|
9508
|
-
"name": "enum",
|
|
9509
|
-
"value": [
|
|
9510
|
-
{
|
|
9511
|
-
"value": "'inline'",
|
|
9512
|
-
"computed": false
|
|
9513
|
-
},
|
|
9514
|
-
{
|
|
9515
|
-
"value": "'below'",
|
|
9516
|
-
"computed": false
|
|
9517
|
-
}
|
|
9518
|
-
]
|
|
9519
|
-
},
|
|
9520
|
-
"required": false,
|
|
9521
|
-
"description": "Position of the hint relative to label. Use `below` to display a larger hint below the label."
|
|
9522
|
-
},
|
|
9523
|
-
"feedback": {
|
|
9524
|
-
"type": {
|
|
9525
|
-
"name": "string"
|
|
9526
|
-
},
|
|
9527
|
-
"required": false,
|
|
9528
|
-
"description": "A detailed description of validation error/success or additional instructions.\nVisual variant is determined based on the `validation` prop."
|
|
9529
|
-
},
|
|
9530
|
-
"tooltip": {
|
|
9531
|
-
"type": {
|
|
9532
|
-
"name": "string"
|
|
9533
|
-
},
|
|
9534
|
-
"required": false,
|
|
9535
|
-
"description": "Content of an optional `Tooltip`. If set, a tooltip button will be shown next to the label."
|
|
9536
|
-
},
|
|
9537
|
-
"validation": {
|
|
9538
|
-
"type": {
|
|
9539
|
-
"name": "enum",
|
|
9540
|
-
"value": [
|
|
9541
|
-
{
|
|
9542
|
-
"value": "'error'",
|
|
9543
|
-
"computed": false
|
|
9544
|
-
},
|
|
9545
|
-
{
|
|
9546
|
-
"value": "'success'",
|
|
9547
|
-
"computed": false
|
|
9548
|
-
}
|
|
9549
|
-
]
|
|
9550
|
-
},
|
|
9551
|
-
"required": false,
|
|
9552
|
-
"description": "Use to visually mark an input as valid or invalid."
|
|
9553
|
-
},
|
|
9554
9292
|
"value": {
|
|
9555
9293
|
"type": {
|
|
9556
9294
|
"name": "string"
|
|
@@ -9649,68 +9387,6 @@
|
|
|
9649
9387
|
"required": false,
|
|
9650
9388
|
"description": ""
|
|
9651
9389
|
},
|
|
9652
|
-
"label": {
|
|
9653
|
-
"type": {
|
|
9654
|
-
"name": "string"
|
|
9655
|
-
},
|
|
9656
|
-
"required": false,
|
|
9657
|
-
"description": "The input label."
|
|
9658
|
-
},
|
|
9659
|
-
"hint": {
|
|
9660
|
-
"type": {
|
|
9661
|
-
"name": "string"
|
|
9662
|
-
},
|
|
9663
|
-
"required": false,
|
|
9664
|
-
"description": "A short description of the expected input."
|
|
9665
|
-
},
|
|
9666
|
-
"hintPosition": {
|
|
9667
|
-
"type": {
|
|
9668
|
-
"name": "enum",
|
|
9669
|
-
"value": [
|
|
9670
|
-
{
|
|
9671
|
-
"value": "'inline'",
|
|
9672
|
-
"computed": false
|
|
9673
|
-
},
|
|
9674
|
-
{
|
|
9675
|
-
"value": "'below'",
|
|
9676
|
-
"computed": false
|
|
9677
|
-
}
|
|
9678
|
-
]
|
|
9679
|
-
},
|
|
9680
|
-
"required": false,
|
|
9681
|
-
"description": "Position of the hint relative to label. Use `below` to display a larger hint below the label."
|
|
9682
|
-
},
|
|
9683
|
-
"feedback": {
|
|
9684
|
-
"type": {
|
|
9685
|
-
"name": "string"
|
|
9686
|
-
},
|
|
9687
|
-
"required": false,
|
|
9688
|
-
"description": "A detailed description of validation error/success or additional instructions.\nVisual variant is determined based on the `validation` prop."
|
|
9689
|
-
},
|
|
9690
|
-
"tooltip": {
|
|
9691
|
-
"type": {
|
|
9692
|
-
"name": "string"
|
|
9693
|
-
},
|
|
9694
|
-
"required": false,
|
|
9695
|
-
"description": "Content of an optional `Tooltip`. If set, a tooltip button will be shown next to the label."
|
|
9696
|
-
},
|
|
9697
|
-
"validation": {
|
|
9698
|
-
"type": {
|
|
9699
|
-
"name": "enum",
|
|
9700
|
-
"value": [
|
|
9701
|
-
{
|
|
9702
|
-
"value": "'error'",
|
|
9703
|
-
"computed": false
|
|
9704
|
-
},
|
|
9705
|
-
{
|
|
9706
|
-
"value": "'success'",
|
|
9707
|
-
"computed": false
|
|
9708
|
-
}
|
|
9709
|
-
]
|
|
9710
|
-
},
|
|
9711
|
-
"required": false,
|
|
9712
|
-
"description": "Use to visually mark an input as valid or invalid."
|
|
9713
|
-
},
|
|
9714
9390
|
"value": {
|
|
9715
9391
|
"type": {
|
|
9716
9392
|
"name": "string"
|