@telus-uds/components-base 1.3.0 → 1.3.1

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.
Files changed (342) hide show
  1. package/.turbo/turbo-build.log +5 -2
  2. package/CHANGELOG.json +38 -0
  3. package/CHANGELOG.md +15 -2
  4. package/__tests__/ActivityIndicator/ActivityIndicator.test.jsx +35 -0
  5. package/__tests__/ActivityIndicator/__snapshots__/ActivityIndicator.test.jsx.snap +287 -0
  6. package/babel.config.js +27 -5
  7. package/component-docs.json +88 -424
  8. package/lib/A11yText/index.js +5 -4
  9. package/lib/ActivityIndicator/Spinner.js +46 -37
  10. package/lib/ActivityIndicator/Spinner.native.js +26 -15
  11. package/lib/Box/Box.js +4 -4
  12. package/lib/Button/ButtonBase.js +7 -8
  13. package/lib/Card/Card.js +5 -4
  14. package/lib/Card/PressableCardBase.js +6 -11
  15. package/lib/Checkbox/Checkbox.js +4 -6
  16. package/lib/Divider/Divider.js +12 -11
  17. package/lib/ExpandCollapse/Control.js +7 -7
  18. package/lib/ExpandCollapse/ExpandCollapse.js +6 -2
  19. package/lib/ExpandCollapse/Panel.js +6 -7
  20. package/lib/Feedback/Feedback.js +6 -5
  21. package/lib/Fieldset/Fieldset.js +1 -3
  22. package/lib/HorizontalScroll/HorizontalScroll.js +5 -6
  23. package/lib/IconButton/IconButton.js +6 -6
  24. package/lib/InputLabel/InputLabel.js +7 -2
  25. package/lib/InputSupports/InputSupports.js +2 -2
  26. package/lib/Link/LinkBase.js +5 -6
  27. package/lib/List/List.js +4 -6
  28. package/lib/List/ListItem.js +6 -2
  29. package/lib/Modal/Modal.js +6 -2
  30. package/lib/Notification/Notification.js +7 -2
  31. package/lib/Pagination/Pagination.js +8 -3
  32. package/lib/Progress/Progress.js +5 -4
  33. package/lib/Progress/ProgressBar.js +8 -7
  34. package/lib/Radio/Radio.js +4 -6
  35. package/lib/Radio/RadioButton.js +6 -3
  36. package/lib/Radio/RadioGroup.js +7 -2
  37. package/lib/RadioCard/RadioCard.js +4 -4
  38. package/lib/RadioCard/RadioCardGroup.js +9 -6
  39. package/lib/Search/Search.js +7 -2
  40. package/lib/Select/Select.js +10 -9
  41. package/lib/SideNav/Item.js +7 -7
  42. package/lib/SideNav/SideNav.js +7 -3
  43. package/lib/Skeleton/Skeleton.js +6 -2
  44. package/lib/Spacer/Spacer.js +7 -18
  45. package/lib/StackView/StackView.js +7 -7
  46. package/lib/StackView/StackWrapBox.js +6 -7
  47. package/lib/StackView/StackWrapGap.js +6 -5
  48. package/lib/StepTracker/Step.js +7 -3
  49. package/lib/StepTracker/StepTracker.js +7 -7
  50. package/lib/Tabs/Tabs.js +6 -2
  51. package/lib/Tabs/TabsItem.js +6 -5
  52. package/lib/Tags/Tags.js +5 -6
  53. package/lib/TextInput/TextArea.js +13 -14
  54. package/lib/TextInput/TextInput.js +13 -14
  55. package/lib/TextInput/TextInputBase.js +5 -3
  56. package/lib/ToggleSwitch/ToggleSwitch.js +10 -9
  57. package/lib/ToggleSwitch/ToggleSwitchGroup.js +5 -7
  58. package/lib/Tooltip/Tooltip.js +7 -2
  59. package/lib/TooltipButton/TooltipButton.js +7 -2
  60. package/lib/Typography/Typography.js +8 -6
  61. package/lib/index.js +7 -0
  62. package/lib/utils/children.js +5 -1
  63. package/lib/utils/index.js +14 -0
  64. package/lib/utils/props/index.js +9 -0
  65. package/lib/{InputSupports/propTypes.js → utils/props/inputSupportsProps.js} +2 -3
  66. package/lib/utils/ssr.js +51 -0
  67. package/lib-module/A11yInfoProvider/index.js +62 -0
  68. package/lib-module/A11yText/index.js +55 -0
  69. package/lib-module/ActivityIndicator/Spinner.js +76 -0
  70. package/lib-module/ActivityIndicator/Spinner.native.js +143 -0
  71. package/lib-module/ActivityIndicator/index.js +40 -0
  72. package/lib-module/ActivityIndicator/shared.js +12 -0
  73. package/lib-module/BaseProvider/index.js +26 -0
  74. package/lib-module/Box/Box.js +243 -0
  75. package/lib-module/Box/index.js +2 -0
  76. package/lib-module/Button/Button.js +25 -0
  77. package/lib-module/Button/ButtonBase.js +254 -0
  78. package/lib-module/Button/ButtonGroup.js +164 -0
  79. package/lib-module/Button/ButtonLink.js +39 -0
  80. package/lib-module/Button/index.js +4 -0
  81. package/lib-module/Button/propTypes.js +36 -0
  82. package/lib-module/Card/Card.js +83 -0
  83. package/lib-module/Card/CardBase.js +62 -0
  84. package/lib-module/Card/PressableCardBase.js +113 -0
  85. package/lib-module/Card/index.js +4 -0
  86. package/lib-module/Checkbox/Checkbox.js +321 -0
  87. package/lib-module/Checkbox/CheckboxGroup.js +218 -0
  88. package/lib-module/Checkbox/CheckboxInput.js +58 -0
  89. package/lib-module/Checkbox/CheckboxInput.native.js +6 -0
  90. package/lib-module/Checkbox/index.js +3 -0
  91. package/lib-module/Divider/Divider.js +123 -0
  92. package/lib-module/Divider/index.js +2 -0
  93. package/lib-module/ExpandCollapse/Accordion.js +15 -0
  94. package/lib-module/ExpandCollapse/Control.js +130 -0
  95. package/lib-module/ExpandCollapse/ExpandCollapse.js +94 -0
  96. package/lib-module/ExpandCollapse/Panel.js +158 -0
  97. package/lib-module/ExpandCollapse/index.js +7 -0
  98. package/lib-module/Feedback/Feedback.js +144 -0
  99. package/lib-module/Feedback/index.js +2 -0
  100. package/lib-module/Fieldset/Fieldset.js +145 -0
  101. package/lib-module/Fieldset/FieldsetContainer.js +29 -0
  102. package/lib-module/Fieldset/FieldsetContainer.native.js +20 -0
  103. package/lib-module/Fieldset/Legend.js +21 -0
  104. package/lib-module/Fieldset/Legend.native.js +28 -0
  105. package/lib-module/Fieldset/cssReset.js +14 -0
  106. package/lib-module/Fieldset/index.js +2 -0
  107. package/lib-module/FlexGrid/Col/Col.js +265 -0
  108. package/lib-module/FlexGrid/Col/index.js +2 -0
  109. package/lib-module/FlexGrid/FlexGrid.js +147 -0
  110. package/lib-module/FlexGrid/Row/Row.js +177 -0
  111. package/lib-module/FlexGrid/Row/index.js +2 -0
  112. package/lib-module/FlexGrid/helpers/index.js +18 -0
  113. package/lib-module/FlexGrid/index.js +2 -0
  114. package/lib-module/FlexGrid/providers/GutterContext.js +3 -0
  115. package/lib-module/HorizontalScroll/HorizontalScroll.js +171 -0
  116. package/lib-module/HorizontalScroll/HorizontalScrollButton.js +102 -0
  117. package/lib-module/HorizontalScroll/ScrollViewEnd.js +47 -0
  118. package/lib-module/HorizontalScroll/ScrollViewEnd.native.js +24 -0
  119. package/lib-module/HorizontalScroll/dictionary.js +11 -0
  120. package/lib-module/HorizontalScroll/index.js +11 -0
  121. package/lib-module/HorizontalScroll/itemPositions.js +106 -0
  122. package/lib-module/Icon/Icon.js +61 -0
  123. package/lib-module/Icon/IconText.js +81 -0
  124. package/lib-module/Icon/index.js +4 -0
  125. package/lib-module/IconButton/IconButton.js +115 -0
  126. package/lib-module/IconButton/index.js +2 -0
  127. package/lib-module/InputLabel/InputLabel.js +131 -0
  128. package/lib-module/InputLabel/LabelContent.js +24 -0
  129. package/lib-module/InputLabel/LabelContent.native.js +16 -0
  130. package/lib-module/InputLabel/index.js +2 -0
  131. package/lib-module/InputSupports/InputSupports.js +88 -0
  132. package/lib-module/InputSupports/index.js +2 -0
  133. package/lib-module/InputSupports/useInputSupports.js +31 -0
  134. package/lib-module/Link/ChevronLink.js +51 -0
  135. package/lib-module/Link/InlinePressable.js +37 -0
  136. package/lib-module/Link/InlinePressable.native.js +85 -0
  137. package/lib-module/Link/Link.js +27 -0
  138. package/lib-module/Link/LinkBase.js +210 -0
  139. package/lib-module/Link/TextButton.js +43 -0
  140. package/lib-module/Link/index.js +5 -0
  141. package/lib-module/List/List.js +55 -0
  142. package/lib-module/List/ListItem.js +213 -0
  143. package/lib-module/List/index.js +5 -0
  144. package/lib-module/Modal/Modal.js +208 -0
  145. package/lib-module/Modal/dictionary.js +9 -0
  146. package/lib-module/Modal/index.js +2 -0
  147. package/lib-module/Notification/Notification.js +196 -0
  148. package/lib-module/Notification/dictionary.js +8 -0
  149. package/lib-module/Notification/index.js +2 -0
  150. package/lib-module/Pagination/PageButton.js +65 -0
  151. package/lib-module/Pagination/Pagination.js +140 -0
  152. package/lib-module/Pagination/SideButton.js +103 -0
  153. package/lib-module/Pagination/dictionary.js +18 -0
  154. package/lib-module/Pagination/index.js +2 -0
  155. package/lib-module/Pagination/usePagination.js +72 -0
  156. package/lib-module/Progress/Progress.js +85 -0
  157. package/lib-module/Progress/ProgressBar.js +134 -0
  158. package/lib-module/Progress/ProgressBarBackground.js +41 -0
  159. package/lib-module/Progress/index.js +4 -0
  160. package/lib-module/Radio/Radio.js +263 -0
  161. package/lib-module/Radio/RadioButton.js +128 -0
  162. package/lib-module/Radio/RadioGroup.js +225 -0
  163. package/lib-module/Radio/RadioInput.js +60 -0
  164. package/lib-module/Radio/RadioInput.native.js +6 -0
  165. package/lib-module/Radio/index.js +3 -0
  166. package/lib-module/RadioCard/RadioCard.js +218 -0
  167. package/lib-module/RadioCard/RadioCardGroup.js +232 -0
  168. package/lib-module/RadioCard/index.js +3 -0
  169. package/lib-module/Search/Search.js +233 -0
  170. package/lib-module/Search/dictionary.js +12 -0
  171. package/lib-module/Search/index.js +2 -0
  172. package/lib-module/Select/Group.js +20 -0
  173. package/lib-module/Select/Group.native.js +14 -0
  174. package/lib-module/Select/Item.js +17 -0
  175. package/lib-module/Select/Item.native.js +9 -0
  176. package/lib-module/Select/Picker.js +67 -0
  177. package/lib-module/Select/Picker.native.js +110 -0
  178. package/lib-module/Select/Select.js +317 -0
  179. package/lib-module/Select/index.js +6 -0
  180. package/lib-module/SideNav/Item.js +139 -0
  181. package/lib-module/SideNav/ItemContent.js +45 -0
  182. package/lib-module/SideNav/ItemsGroup.js +115 -0
  183. package/lib-module/SideNav/SideNav.js +133 -0
  184. package/lib-module/SideNav/index.js +1 -0
  185. package/lib-module/Skeleton/Skeleton.js +117 -0
  186. package/lib-module/Skeleton/index.js +2 -0
  187. package/lib-module/Skeleton/skeleton.constant.js +3 -0
  188. package/lib-module/Skeleton/skeletonWebAnimation.js +18 -0
  189. package/lib-module/Skeleton/useSkeletonNativeAnimation.js +24 -0
  190. package/lib-module/Spacer/Spacer.js +97 -0
  191. package/lib-module/Spacer/index.js +2 -0
  192. package/lib-module/StackView/StackView.js +124 -0
  193. package/lib-module/StackView/StackWrap.js +48 -0
  194. package/lib-module/StackView/StackWrap.native.js +3 -0
  195. package/lib-module/StackView/StackWrapBox.js +114 -0
  196. package/lib-module/StackView/StackWrapGap.js +58 -0
  197. package/lib-module/StackView/common.js +32 -0
  198. package/lib-module/StackView/getStackedContent.js +123 -0
  199. package/lib-module/StackView/index.js +5 -0
  200. package/lib-module/StepTracker/Step.js +229 -0
  201. package/lib-module/StepTracker/StepTracker.js +175 -0
  202. package/lib-module/StepTracker/dictionary.js +10 -0
  203. package/lib-module/StepTracker/index.js +2 -0
  204. package/lib-module/Tabs/Tabs.js +113 -0
  205. package/lib-module/Tabs/TabsItem.js +215 -0
  206. package/lib-module/Tabs/index.js +2 -0
  207. package/lib-module/Tags/Tags.js +238 -0
  208. package/lib-module/Tags/index.js +2 -0
  209. package/lib-module/TextInput/TextArea.js +88 -0
  210. package/lib-module/TextInput/TextInput.js +60 -0
  211. package/lib-module/TextInput/TextInputBase.js +233 -0
  212. package/lib-module/TextInput/index.js +3 -0
  213. package/lib-module/TextInput/propTypes.js +31 -0
  214. package/lib-module/ThemeProvider/ThemeProvider.js +35 -0
  215. package/lib-module/ThemeProvider/index.js +6 -0
  216. package/lib-module/ThemeProvider/useSetTheme.js +22 -0
  217. package/lib-module/ThemeProvider/useTheme.js +14 -0
  218. package/lib-module/ThemeProvider/useThemeTokens.js +105 -0
  219. package/lib-module/ThemeProvider/utils/index.js +2 -0
  220. package/lib-module/ThemeProvider/utils/styles.js +174 -0
  221. package/lib-module/ThemeProvider/utils/theme-tokens.js +151 -0
  222. package/lib-module/ToggleSwitch/ToggleSwitch.js +224 -0
  223. package/lib-module/ToggleSwitch/ToggleSwitchGroup.js +202 -0
  224. package/lib-module/ToggleSwitch/index.js +3 -0
  225. package/lib-module/Tooltip/Backdrop.js +52 -0
  226. package/lib-module/Tooltip/Backdrop.native.js +43 -0
  227. package/lib-module/Tooltip/Tooltip.js +332 -0
  228. package/lib-module/Tooltip/dictionary.js +8 -0
  229. package/lib-module/Tooltip/getTooltipPosition.js +164 -0
  230. package/lib-module/Tooltip/index.js +2 -0
  231. package/lib-module/TooltipButton/TooltipButton.js +71 -0
  232. package/lib-module/TooltipButton/index.js +2 -0
  233. package/lib-module/Typography/Typography.js +118 -0
  234. package/lib-module/Typography/index.js +2 -0
  235. package/lib-module/ViewportProvider/ViewportProvider.js +28 -0
  236. package/lib-module/ViewportProvider/index.js +3 -0
  237. package/lib-module/ViewportProvider/useViewport.js +3 -0
  238. package/lib-module/ViewportProvider/useViewportListener.js +43 -0
  239. package/lib-module/index.js +48 -0
  240. package/lib-module/utils/a11y/index.js +2 -0
  241. package/lib-module/utils/a11y/semantics.js +154 -0
  242. package/lib-module/utils/a11y/textSize.js +34 -0
  243. package/lib-module/utils/animation/index.js +2 -0
  244. package/lib-module/utils/animation/useVerticalExpandAnimation.js +49 -0
  245. package/lib-module/utils/children.js +118 -0
  246. package/lib-module/utils/index.js +15 -0
  247. package/lib-module/utils/info/index.js +7 -0
  248. package/lib-module/utils/info/platform/index.js +11 -0
  249. package/lib-module/utils/info/platform/platform.android.js +1 -0
  250. package/lib-module/utils/info/platform/platform.ios.js +1 -0
  251. package/lib-module/utils/info/platform/platform.js +1 -0
  252. package/lib-module/utils/info/platform/platform.native.js +4 -0
  253. package/lib-module/utils/info/versions.js +5 -0
  254. package/lib-module/utils/input.js +180 -0
  255. package/lib-module/utils/pressability.js +97 -0
  256. package/lib-module/utils/props/a11yProps.js +140 -0
  257. package/lib-module/utils/props/clickProps.js +25 -0
  258. package/lib-module/utils/props/componentPropType.js +63 -0
  259. package/lib-module/utils/props/copyPropTypes.js +2 -0
  260. package/lib-module/utils/props/getPropSelector.js +6 -0
  261. package/lib-module/utils/props/hrefAttrsProp.js +30 -0
  262. package/lib-module/utils/props/index.js +16 -0
  263. package/lib-module/utils/props/inputSupportsProps.js +54 -0
  264. package/lib-module/utils/props/linkProps.js +47 -0
  265. package/lib-module/utils/props/paddingProp.js +9 -0
  266. package/lib-module/utils/props/pressProps.js +42 -0
  267. package/lib-module/utils/props/rectProp.js +9 -0
  268. package/lib-module/utils/props/responsiveProps.js +30 -0
  269. package/lib-module/utils/props/selectSystemProps.js +24 -0
  270. package/lib-module/utils/props/spacingProps.js +56 -0
  271. package/lib-module/utils/props/tokens.js +120 -0
  272. package/lib-module/utils/props/variantProp.js +18 -0
  273. package/lib-module/utils/props/viewProps.js +22 -0
  274. package/lib-module/utils/ssr.js +35 -0
  275. package/lib-module/utils/useCopy.js +42 -0
  276. package/lib-module/utils/useHash.js +44 -0
  277. package/lib-module/utils/useHash.native.js +7 -0
  278. package/lib-module/utils/useResponsiveProp.js +47 -0
  279. package/lib-module/utils/useSpacingScale.js +123 -0
  280. package/lib-module/utils/useUniqueId.js +12 -0
  281. package/lib-module/utils/withLinkRouter.js +82 -0
  282. package/package.json +9 -5
  283. package/src/A11yText/index.jsx +7 -3
  284. package/src/ActivityIndicator/Spinner.jsx +56 -44
  285. package/src/ActivityIndicator/Spinner.native.jsx +20 -12
  286. package/src/Box/Box.jsx +10 -9
  287. package/src/Button/ButtonBase.jsx +9 -8
  288. package/src/Card/Card.jsx +7 -4
  289. package/src/Card/PressableCardBase.jsx +12 -12
  290. package/src/Checkbox/Checkbox.jsx +12 -5
  291. package/src/Divider/Divider.jsx +17 -10
  292. package/src/ExpandCollapse/Control.jsx +12 -7
  293. package/src/ExpandCollapse/ExpandCollapse.jsx +13 -3
  294. package/src/ExpandCollapse/Panel.jsx +15 -5
  295. package/src/Feedback/Feedback.jsx +13 -3
  296. package/src/Fieldset/Fieldset.jsx +1 -1
  297. package/src/HorizontalScroll/HorizontalScroll.jsx +12 -5
  298. package/src/IconButton/IconButton.jsx +12 -8
  299. package/src/InputLabel/InputLabel.jsx +16 -2
  300. package/src/InputSupports/InputSupports.jsx +1 -1
  301. package/src/Link/LinkBase.jsx +10 -9
  302. package/src/List/List.jsx +12 -5
  303. package/src/List/ListItem.jsx +16 -2
  304. package/src/Modal/Modal.jsx +63 -50
  305. package/src/Notification/Notification.jsx +17 -3
  306. package/src/Pagination/Pagination.jsx +10 -3
  307. package/src/Progress/Progress.jsx +5 -3
  308. package/src/Progress/ProgressBar.jsx +8 -6
  309. package/src/Radio/Radio.jsx +13 -5
  310. package/src/Radio/RadioButton.jsx +13 -3
  311. package/src/Radio/RadioGroup.jsx +14 -2
  312. package/src/RadioCard/RadioCard.jsx +9 -6
  313. package/src/RadioCard/RadioCardGroup.jsx +16 -4
  314. package/src/Search/Search.jsx +15 -3
  315. package/src/Select/Select.jsx +21 -7
  316. package/src/SideNav/Item.jsx +15 -7
  317. package/src/SideNav/SideNav.jsx +13 -2
  318. package/src/Skeleton/Skeleton.jsx +55 -43
  319. package/src/Spacer/Spacer.jsx +8 -16
  320. package/src/StackView/StackView.jsx +13 -12
  321. package/src/StackView/StackWrapBox.jsx +12 -12
  322. package/src/StackView/StackWrapGap.jsx +9 -7
  323. package/src/StepTracker/Step.jsx +7 -4
  324. package/src/StepTracker/StepTracker.jsx +8 -8
  325. package/src/Tabs/Tabs.jsx +16 -3
  326. package/src/Tabs/TabsItem.jsx +13 -9
  327. package/src/Tags/Tags.jsx +20 -5
  328. package/src/TextInput/TextArea.jsx +20 -8
  329. package/src/TextInput/TextInput.jsx +20 -8
  330. package/src/TextInput/TextInputBase.jsx +13 -3
  331. package/src/ToggleSwitch/ToggleSwitch.jsx +16 -5
  332. package/src/ToggleSwitch/ToggleSwitchGroup.jsx +14 -6
  333. package/src/Tooltip/Tooltip.jsx +13 -3
  334. package/src/TooltipButton/TooltipButton.jsx +6 -4
  335. package/src/Typography/Typography.jsx +10 -6
  336. package/src/index.js +1 -1
  337. package/src/utils/children.jsx +2 -1
  338. package/src/utils/index.js +1 -0
  339. package/src/utils/props/index.js +1 -0
  340. package/src/{InputSupports/propTypes.js → utils/props/inputSupportsProps.js} +2 -4
  341. package/src/utils/ssr.js +35 -0
  342. package/release-context.json +0 -7
@@ -1744,52 +1744,6 @@
1744
1744
  "required": false,
1745
1745
  "description": "Sets right padding using the theme's spacing scale.\n\n@see {@link SpacingValue}"
1746
1746
  },
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
1747
  "variant": {
1794
1748
  "type": {
1795
1749
  "name": "objectOf",
@@ -1946,6 +1900,13 @@
1946
1900
  "required": false,
1947
1901
  "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
1902
  },
1903
+ "testID": {
1904
+ "type": {
1905
+ "name": "string"
1906
+ },
1907
+ "required": false,
1908
+ "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`)."
1909
+ },
1949
1910
  "children": {
1950
1911
  "type": {
1951
1912
  "name": "node"
@@ -2013,7 +1974,7 @@
2013
1974
  }
2014
1975
  },
2015
1976
  "attributes": {
2016
- "acceptsRNA11yProps": true
1977
+ "acceptsRNA11yProps": false
2017
1978
  }
2018
1979
  }
2019
1980
  },
@@ -2021,6 +1982,13 @@
2021
1982
  "docs": {
2022
1983
  "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
1984
  "props": {
1985
+ "accessibilityRole": {
1986
+ "defaultValue": {
1987
+ "value": "href ? 'link' : undefined",
1988
+ "computed": false
1989
+ },
1990
+ "required": false
1991
+ },
2024
1992
  "children": {
2025
1993
  "type": {
2026
1994
  "name": "union",
@@ -2067,7 +2035,7 @@
2067
2035
  }
2068
2036
  },
2069
2037
  "attributes": {
2070
- "acceptsRNA11yProps": true
2038
+ "acceptsRNA11yProps": false
2071
2039
  }
2072
2040
  }
2073
2041
  },
@@ -3928,7 +3896,7 @@
3928
3896
  },
3929
3897
  "HorizontalScroll": {
3930
3898
  "docs": {
3931
- "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 revist `ScrollButton` after IconButton is stable.",
3899
+ "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.",
3932
3900
  "props": {
3933
3901
  "itemPositions": {
3934
3902
  "type": {
@@ -4078,6 +4046,13 @@
4078
4046
  "docs": {
4079
4047
  "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.",
4080
4048
  "props": {
4049
+ "accessibilityRole": {
4050
+ "defaultValue": {
4051
+ "value": "href ? 'link' : 'button'",
4052
+ "computed": false
4053
+ },
4054
+ "required": false
4055
+ },
4081
4056
  "variant": {
4082
4057
  "type": {
4083
4058
  "name": "objectOf",
@@ -4184,7 +4159,7 @@
4184
4159
  }
4185
4160
  },
4186
4161
  "attributes": {
4187
- "acceptsRNA11yProps": true
4162
+ "acceptsRNA11yProps": false
4188
4163
  }
4189
4164
  }
4190
4165
  },
@@ -4363,7 +4338,7 @@
4363
4338
  }
4364
4339
  },
4365
4340
  "attributes": {
4366
- "acceptsRNA11yProps": true
4341
+ "acceptsRNA11yProps": false
4367
4342
  }
4368
4343
  },
4369
4344
  "Item": {
@@ -4605,7 +4580,7 @@
4605
4580
  }
4606
4581
  },
4607
4582
  "attributes": {
4608
- "acceptsRNA11yProps": true
4583
+ "acceptsRNA11yProps": false
4609
4584
  }
4610
4585
  },
4611
4586
  "Item": {
@@ -5864,68 +5839,6 @@
5864
5839
  "docs": {
5865
5840
  "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.",
5866
5841
  "props": {
5867
- "label": {
5868
- "type": {
5869
- "name": "string"
5870
- },
5871
- "required": false,
5872
- "description": "The input label."
5873
- },
5874
- "hint": {
5875
- "type": {
5876
- "name": "string"
5877
- },
5878
- "required": false,
5879
- "description": "A short description of the expected input."
5880
- },
5881
- "hintPosition": {
5882
- "type": {
5883
- "name": "enum",
5884
- "value": [
5885
- {
5886
- "value": "'inline'",
5887
- "computed": false
5888
- },
5889
- {
5890
- "value": "'below'",
5891
- "computed": false
5892
- }
5893
- ]
5894
- },
5895
- "required": false,
5896
- "description": "Position of the hint relative to label. Use `below` to display a larger hint below the label."
5897
- },
5898
- "feedback": {
5899
- "type": {
5900
- "name": "string"
5901
- },
5902
- "required": false,
5903
- "description": "A detailed description of validation error/success or additional instructions.\nVisual variant is determined based on the `validation` prop."
5904
- },
5905
- "tooltip": {
5906
- "type": {
5907
- "name": "string"
5908
- },
5909
- "required": false,
5910
- "description": "Content of an optional `Tooltip`. If set, a tooltip button will be shown next to the label."
5911
- },
5912
- "validation": {
5913
- "type": {
5914
- "name": "enum",
5915
- "value": [
5916
- {
5917
- "value": "'error'",
5918
- "computed": false
5919
- },
5920
- {
5921
- "value": "'success'",
5922
- "computed": false
5923
- }
5924
- ]
5925
- },
5926
- "required": false,
5927
- "description": "Use to visually mark an input as valid or invalid."
5928
- },
5929
5842
  "initialValue": {
5930
5843
  "type": {
5931
5844
  "name": "string"
@@ -6208,6 +6121,13 @@
6208
6121
  "docs": {
6209
6122
  "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`.",
6210
6123
  "props": {
6124
+ "accessibilityRole": {
6125
+ "defaultValue": {
6126
+ "value": "'link'",
6127
+ "computed": false
6128
+ },
6129
+ "required": false
6130
+ },
6211
6131
  "children": {
6212
6132
  "type": {
6213
6133
  "name": "node"
@@ -6318,7 +6238,7 @@
6318
6238
  }
6319
6239
  },
6320
6240
  "attributes": {
6321
- "acceptsRNA11yProps": true
6241
+ "acceptsRNA11yProps": false
6322
6242
  }
6323
6243
  }
6324
6244
  },
@@ -6600,59 +6520,6 @@
6600
6520
  "required": false,
6601
6521
  "description": "Sets the `flexDirection` of the container and, if `divider` is used, gives the Divider the appropriate direction."
6602
6522
  },
6603
- "pointerEvents": {
6604
- "type": {
6605
- "name": "enum",
6606
- "value": [
6607
- {
6608
- "value": "'all'",
6609
- "computed": false
6610
- },
6611
- {
6612
- "value": "'none'",
6613
- "computed": false
6614
- },
6615
- {
6616
- "value": "'box-only'",
6617
- "computed": false
6618
- },
6619
- {
6620
- "value": "'box-none'",
6621
- "computed": false
6622
- }
6623
- ]
6624
- },
6625
- "required": false,
6626
- "description": ""
6627
- },
6628
- "onLayout": {
6629
- "type": {
6630
- "name": "func"
6631
- },
6632
- "required": false,
6633
- "description": ""
6634
- },
6635
- "nativeID": {
6636
- "type": {
6637
- "name": "string"
6638
- },
6639
- "required": false,
6640
- "description": ""
6641
- },
6642
- "testID": {
6643
- "type": {
6644
- "name": "string"
6645
- },
6646
- "required": false,
6647
- "description": ""
6648
- },
6649
- "dataSet": {
6650
- "type": {
6651
- "name": "object"
6652
- },
6653
- "required": false,
6654
- "description": ""
6655
- },
6656
6523
  "tokens": {
6657
6524
  "type": {
6658
6525
  "name": "custom",
@@ -6716,11 +6583,6 @@
6716
6583
  "name": "bool",
6717
6584
  "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.",
6718
6585
  "required": false
6719
- },
6720
- "testID": {
6721
- "name": "string",
6722
- "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.",
6723
- "required": false
6724
6586
  }
6725
6587
  }
6726
6588
  }
@@ -7566,6 +7428,13 @@
7566
7428
  "required": false,
7567
7429
  "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\"."
7568
7430
  },
7431
+ "accessibilityRole": {
7432
+ "defaultValue": {
7433
+ "value": "heading === true ? 'header' : undefined",
7434
+ "computed": false
7435
+ },
7436
+ "required": false
7437
+ },
7569
7438
  "block": {
7570
7439
  "defaultValue": {
7571
7440
  "value": "false",
@@ -7694,7 +7563,7 @@
7694
7563
  }
7695
7564
  },
7696
7565
  "attributes": {
7697
- "acceptsRNA11yProps": true
7566
+ "acceptsRNA11yProps": false
7698
7567
  }
7699
7568
  }
7700
7569
  },
@@ -8696,79 +8565,12 @@
8696
8565
  "required": false,
8697
8566
  "description": ""
8698
8567
  },
8699
- "onPress": {
8700
- "type": {
8701
- "name": "func"
8702
- },
8703
- "required": false,
8704
- "description": ""
8705
- },
8706
- "onPressIn": {
8707
- "type": {
8708
- "name": "func"
8709
- },
8710
- "required": false,
8711
- "description": ""
8712
- },
8713
- "onPressOut": {
8714
- "type": {
8715
- "name": "func"
8716
- },
8717
- "required": false,
8718
- "description": ""
8719
- },
8720
- "disabled": {
8721
- "type": {
8722
- "name": "bool"
8723
- },
8724
- "required": false,
8725
- "description": ""
8726
- },
8727
- "href": {
8728
- "type": {
8729
- "name": "string"
8730
- },
8731
- "required": false,
8732
- "description": ""
8733
- },
8734
- "hrefAttrs": {
8735
- "type": {
8736
- "name": "shape",
8737
- "value": {
8738
- "download": {
8739
- "name": "string",
8740
- "required": false
8741
- },
8742
- "rel": {
8743
- "name": "string",
8744
- "required": false
8745
- },
8746
- "target": {
8747
- "name": "enum",
8748
- "value": [
8749
- {
8750
- "value": "'_self'",
8751
- "computed": false
8752
- },
8753
- {
8754
- "value": "'_blank'",
8755
- "computed": false
8756
- },
8757
- {
8758
- "value": "'_parent'",
8759
- "computed": false
8760
- },
8761
- {
8762
- "value": "'_top'",
8763
- "computed": false
8764
- }
8765
- ],
8766
- "required": false
8767
- }
8768
- }
8568
+ "accessibilityRole": {
8569
+ "defaultValue": {
8570
+ "value": "'link'",
8571
+ "computed": false
8769
8572
  },
8770
- "required": false,
8771
- "description": "On Web if href is passed, React Native Web maps this object's props to\n`rel`, `target` and `download` attrs."
8573
+ "required": false
8772
8574
  },
8773
8575
  "variant": {
8774
8576
  "type": {
@@ -8826,10 +8628,49 @@
8826
8628
  },
8827
8629
  "required": false,
8828
8630
  "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."
8631
+ },
8632
+ "hrefAttrs": {
8633
+ "type": {
8634
+ "name": "shape",
8635
+ "value": {
8636
+ "download": {
8637
+ "name": "string",
8638
+ "required": false
8639
+ },
8640
+ "rel": {
8641
+ "name": "string",
8642
+ "required": false
8643
+ },
8644
+ "target": {
8645
+ "name": "enum",
8646
+ "value": [
8647
+ {
8648
+ "value": "'_self'",
8649
+ "computed": false
8650
+ },
8651
+ {
8652
+ "value": "'_blank'",
8653
+ "computed": false
8654
+ },
8655
+ {
8656
+ "value": "'_parent'",
8657
+ "computed": false
8658
+ },
8659
+ {
8660
+ "value": "'_top'",
8661
+ "computed": false
8662
+ }
8663
+ ],
8664
+ "required": false
8665
+ }
8666
+ }
8667
+ },
8668
+ "required": false,
8669
+ "description": "On Web if href is passed, React Native Web maps this object's props to\n`rel`, `target` and `download` attrs."
8829
8670
  }
8830
8671
  },
8831
8672
  "attributes": {
8832
- "acceptsRNA11yProps": true
8673
+ "acceptsRNA11yProps": false
8833
8674
  }
8834
8675
  }
8835
8676
  },
@@ -9265,59 +9106,6 @@
9265
9106
  "docs": {
9266
9107
  "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.",
9267
9108
  "props": {
9268
- "pointerEvents": {
9269
- "type": {
9270
- "name": "enum",
9271
- "value": [
9272
- {
9273
- "value": "'all'",
9274
- "computed": false
9275
- },
9276
- {
9277
- "value": "'none'",
9278
- "computed": false
9279
- },
9280
- {
9281
- "value": "'box-only'",
9282
- "computed": false
9283
- },
9284
- {
9285
- "value": "'box-none'",
9286
- "computed": false
9287
- }
9288
- ]
9289
- },
9290
- "required": false,
9291
- "description": ""
9292
- },
9293
- "onLayout": {
9294
- "type": {
9295
- "name": "func"
9296
- },
9297
- "required": false,
9298
- "description": ""
9299
- },
9300
- "nativeID": {
9301
- "type": {
9302
- "name": "string"
9303
- },
9304
- "required": false,
9305
- "description": ""
9306
- },
9307
- "testID": {
9308
- "type": {
9309
- "name": "string"
9310
- },
9311
- "required": false,
9312
- "description": ""
9313
- },
9314
- "dataSet": {
9315
- "type": {
9316
- "name": "object"
9317
- },
9318
- "required": false,
9319
- "description": ""
9320
- },
9321
9109
  "tokens": {
9322
9110
  "type": {
9323
9111
  "name": "custom",
@@ -9500,68 +9288,6 @@
9500
9288
  "required": false,
9501
9289
  "description": ""
9502
9290
  },
9503
- "label": {
9504
- "type": {
9505
- "name": "string"
9506
- },
9507
- "required": false,
9508
- "description": "The input label."
9509
- },
9510
- "hint": {
9511
- "type": {
9512
- "name": "string"
9513
- },
9514
- "required": false,
9515
- "description": "A short description of the expected input."
9516
- },
9517
- "hintPosition": {
9518
- "type": {
9519
- "name": "enum",
9520
- "value": [
9521
- {
9522
- "value": "'inline'",
9523
- "computed": false
9524
- },
9525
- {
9526
- "value": "'below'",
9527
- "computed": false
9528
- }
9529
- ]
9530
- },
9531
- "required": false,
9532
- "description": "Position of the hint relative to label. Use `below` to display a larger hint below the label."
9533
- },
9534
- "feedback": {
9535
- "type": {
9536
- "name": "string"
9537
- },
9538
- "required": false,
9539
- "description": "A detailed description of validation error/success or additional instructions.\nVisual variant is determined based on the `validation` prop."
9540
- },
9541
- "tooltip": {
9542
- "type": {
9543
- "name": "string"
9544
- },
9545
- "required": false,
9546
- "description": "Content of an optional `Tooltip`. If set, a tooltip button will be shown next to the label."
9547
- },
9548
- "validation": {
9549
- "type": {
9550
- "name": "enum",
9551
- "value": [
9552
- {
9553
- "value": "'error'",
9554
- "computed": false
9555
- },
9556
- {
9557
- "value": "'success'",
9558
- "computed": false
9559
- }
9560
- ]
9561
- },
9562
- "required": false,
9563
- "description": "Use to visually mark an input as valid or invalid."
9564
- },
9565
9291
  "value": {
9566
9292
  "type": {
9567
9293
  "name": "string"
@@ -9660,68 +9386,6 @@
9660
9386
  "required": false,
9661
9387
  "description": ""
9662
9388
  },
9663
- "label": {
9664
- "type": {
9665
- "name": "string"
9666
- },
9667
- "required": false,
9668
- "description": "The input label."
9669
- },
9670
- "hint": {
9671
- "type": {
9672
- "name": "string"
9673
- },
9674
- "required": false,
9675
- "description": "A short description of the expected input."
9676
- },
9677
- "hintPosition": {
9678
- "type": {
9679
- "name": "enum",
9680
- "value": [
9681
- {
9682
- "value": "'inline'",
9683
- "computed": false
9684
- },
9685
- {
9686
- "value": "'below'",
9687
- "computed": false
9688
- }
9689
- ]
9690
- },
9691
- "required": false,
9692
- "description": "Position of the hint relative to label. Use `below` to display a larger hint below the label."
9693
- },
9694
- "feedback": {
9695
- "type": {
9696
- "name": "string"
9697
- },
9698
- "required": false,
9699
- "description": "A detailed description of validation error/success or additional instructions.\nVisual variant is determined based on the `validation` prop."
9700
- },
9701
- "tooltip": {
9702
- "type": {
9703
- "name": "string"
9704
- },
9705
- "required": false,
9706
- "description": "Content of an optional `Tooltip`. If set, a tooltip button will be shown next to the label."
9707
- },
9708
- "validation": {
9709
- "type": {
9710
- "name": "enum",
9711
- "value": [
9712
- {
9713
- "value": "'error'",
9714
- "computed": false
9715
- },
9716
- {
9717
- "value": "'success'",
9718
- "computed": false
9719
- }
9720
- ]
9721
- },
9722
- "required": false,
9723
- "description": "Use to visually mark an input as valid or invalid."
9724
- },
9725
9389
  "value": {
9726
9390
  "type": {
9727
9391
  "name": "string"