@telus-uds/components-base 1.8.0 → 1.8.3

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 (495) hide show
  1. package/CHANGELOG.md +34 -2
  2. package/component-docs.json +710 -668
  3. package/lib/A11yInfoProvider/index.js +4 -3
  4. package/lib/A11yText/index.js +6 -5
  5. package/lib/ActivityIndicator/Spinner.js +7 -6
  6. package/lib/ActivityIndicator/Spinner.native.js +8 -6
  7. package/lib/ActivityIndicator/index.js +6 -5
  8. package/lib/ActivityIndicator/shared.js +1 -1
  9. package/lib/BaseProvider/index.js +13 -10
  10. package/lib/Box/Box.js +20 -19
  11. package/lib/Button/Button.js +7 -6
  12. package/lib/Button/ButtonBase.js +95 -77
  13. package/lib/Button/ButtonGroup.js +33 -31
  14. package/lib/Button/ButtonLink.js +9 -7
  15. package/lib/Button/index.js +4 -4
  16. package/lib/Button/propTypes.js +1 -1
  17. package/lib/Card/Card.js +8 -7
  18. package/lib/Card/CardBase.js +35 -31
  19. package/lib/Card/PressableCardBase.js +14 -12
  20. package/lib/Checkbox/Checkbox.js +96 -82
  21. package/lib/Checkbox/CheckboxGroup.js +27 -25
  22. package/lib/Checkbox/CheckboxInput.js +12 -10
  23. package/lib/Divider/Divider.js +8 -7
  24. package/lib/ExpandCollapse/Control.js +42 -36
  25. package/lib/ExpandCollapse/ExpandCollapse.js +11 -10
  26. package/lib/ExpandCollapse/Panel.js +27 -23
  27. package/lib/Feedback/Feedback.js +48 -35
  28. package/lib/Fieldset/Fieldset.js +16 -15
  29. package/lib/Fieldset/FieldsetContainer.js +16 -13
  30. package/lib/Fieldset/FieldsetContainer.native.js +11 -8
  31. package/lib/Fieldset/Legend.js +10 -7
  32. package/lib/Fieldset/Legend.native.js +10 -7
  33. package/lib/FlexGrid/Col/Col.js +17 -16
  34. package/lib/FlexGrid/FlexGrid.js +15 -14
  35. package/lib/FlexGrid/Row/Row.js +13 -12
  36. package/lib/HorizontalScroll/HorizontalScroll.js +25 -20
  37. package/lib/HorizontalScroll/HorizontalScrollButton.js +18 -14
  38. package/lib/HorizontalScroll/ScrollViewEnd.js +6 -5
  39. package/lib/HorizontalScroll/ScrollViewEnd.native.js +12 -9
  40. package/lib/HorizontalScroll/itemPositions.js +19 -13
  41. package/lib/Icon/Icon.js +10 -9
  42. package/lib/Icon/IconText.js +8 -7
  43. package/lib/Icon/index.js +5 -5
  44. package/lib/IconButton/IconButton.js +50 -42
  45. package/lib/InputLabel/InputLabel.js +37 -30
  46. package/lib/InputLabel/LabelContent.js +12 -9
  47. package/lib/InputLabel/LabelContent.native.js +9 -6
  48. package/lib/InputSupports/InputSupports.js +11 -10
  49. package/lib/InputSupports/useInputSupports.js +7 -6
  50. package/lib/Link/ChevronLink.js +9 -8
  51. package/lib/Link/InlinePressable.js +13 -10
  52. package/lib/Link/InlinePressable.native.js +20 -16
  53. package/lib/Link/Link.js +10 -9
  54. package/lib/Link/LinkBase.js +96 -78
  55. package/lib/Link/TextButton.js +9 -8
  56. package/lib/List/List.js +12 -11
  57. package/lib/List/ListItem.js +103 -79
  58. package/lib/Modal/Modal.js +74 -60
  59. package/lib/Notification/Notification.js +46 -33
  60. package/lib/Pagination/PageButton.js +11 -10
  61. package/lib/Pagination/Pagination.js +39 -28
  62. package/lib/Pagination/SideButton.js +21 -18
  63. package/lib/Pagination/usePagination.js +5 -4
  64. package/lib/Progress/Progress.js +23 -19
  65. package/lib/Progress/ProgressBar.js +23 -19
  66. package/lib/Progress/ProgressBarBackground.js +4 -3
  67. package/lib/Radio/Radio.js +79 -68
  68. package/lib/Radio/RadioButton.js +63 -53
  69. package/lib/Radio/RadioGroup.js +28 -26
  70. package/lib/Radio/RadioInput.js +12 -10
  71. package/lib/RadioCard/RadioCard.js +15 -14
  72. package/lib/RadioCard/RadioCardGroup.js +28 -26
  73. package/lib/Search/Search.js +51 -31
  74. package/lib/Select/Group.js +5 -4
  75. package/lib/Select/Group.native.js +4 -3
  76. package/lib/Select/Item.js +10 -7
  77. package/lib/Select/Item.native.js +1 -9
  78. package/lib/Select/Picker.js +16 -15
  79. package/lib/Select/Picker.native.js +49 -38
  80. package/lib/Select/Select.js +134 -113
  81. package/lib/SideNav/Item.js +39 -33
  82. package/lib/SideNav/ItemContent.js +15 -12
  83. package/lib/SideNav/ItemsGroup.js +13 -11
  84. package/lib/SideNav/SideNav.js +19 -16
  85. package/lib/Skeleton/Skeleton.js +60 -44
  86. package/lib/Skeleton/skeleton.constant.js +1 -1
  87. package/lib/Spacer/Spacer.js +6 -5
  88. package/lib/StackView/StackView.js +12 -11
  89. package/lib/StackView/StackWrap.js +2 -2
  90. package/lib/StackView/StackWrapBox.js +12 -11
  91. package/lib/StackView/StackWrapGap.js +11 -10
  92. package/lib/StackView/common.js +14 -11
  93. package/lib/StackView/getStackedContent.js +8 -7
  94. package/lib/StackView/index.js +1 -1
  95. package/lib/StepTracker/Step.js +122 -103
  96. package/lib/StepTracker/StepTracker.js +48 -38
  97. package/lib/Tabs/Tabs.js +29 -24
  98. package/lib/Tabs/TabsItem.js +79 -68
  99. package/lib/Tags/Tags.js +67 -61
  100. package/lib/TextInput/TextArea.js +26 -20
  101. package/lib/TextInput/TextInput.js +20 -15
  102. package/lib/TextInput/TextInputBase.js +74 -62
  103. package/lib/TextInput/index.js +4 -4
  104. package/lib/ThemeProvider/ThemeProvider.js +6 -5
  105. package/lib/ThemeProvider/index.js +5 -5
  106. package/lib/ThemeProvider/useSetTheme.js +6 -3
  107. package/lib/ThemeProvider/useThemeTokens.js +7 -2
  108. package/lib/ThemeProvider/utils/styles.js +48 -41
  109. package/lib/ThemeProvider/utils/theme-tokens.js +26 -12
  110. package/lib/ToggleSwitch/ToggleSwitch.js +89 -73
  111. package/lib/ToggleSwitch/ToggleSwitchGroup.js +36 -34
  112. package/lib/Tooltip/Backdrop.js +4 -3
  113. package/lib/Tooltip/Backdrop.native.js +5 -4
  114. package/lib/Tooltip/Tooltip.js +81 -65
  115. package/lib/Tooltip/getTooltipPosition.js +29 -18
  116. package/lib/TooltipButton/TooltipButton.js +28 -21
  117. package/lib/Typography/Typography.js +37 -33
  118. package/lib/ViewportProvider/ViewportProvider.js +4 -3
  119. package/lib/ViewportProvider/useViewportListener.js +6 -3
  120. package/lib/index.js +54 -54
  121. package/lib/utils/a11y/semantics.js +5 -2
  122. package/lib/utils/a11y/textSize.js +8 -6
  123. package/lib/utils/animation/useVerticalExpandAnimation.js +6 -5
  124. package/lib/utils/children.js +2 -1
  125. package/lib/utils/index.js +10 -10
  126. package/lib/utils/input.js +22 -17
  127. package/lib/utils/pressability.js +36 -22
  128. package/lib/utils/props/clickProps.js +2 -1
  129. package/lib/utils/props/getPropSelector.js +6 -3
  130. package/lib/utils/props/handlerProps.js +25 -19
  131. package/lib/utils/props/hrefAttrsProp.js +14 -11
  132. package/lib/utils/props/index.js +12 -12
  133. package/lib/utils/props/inputSupportsProps.js +15 -12
  134. package/lib/utils/props/linkProps.js +7 -6
  135. package/lib/utils/props/pressProps.js +1 -1
  136. package/lib/utils/props/tokens.js +27 -13
  137. package/lib/utils/ssr.js +6 -2
  138. package/lib/utils/useCopy.js +6 -4
  139. package/lib/utils/useHash.js +2 -1
  140. package/lib/utils/useResponsiveProp.js +1 -1
  141. package/lib/utils/useUniqueId.js +2 -1
  142. package/lib/utils/withLinkRouter.js +6 -5
  143. package/package.json +13 -11
  144. package/src/List/List.jsx +30 -19
  145. package/src/List/ListItem.jsx +12 -2
  146. package/src/Modal/Modal.jsx +2 -1
  147. package/src/Pagination/Pagination.jsx +3 -0
  148. package/src/Search/Search.jsx +11 -0
  149. package/src/Select/Item.native.jsx +0 -7
  150. package/.storybook/main.js +0 -11
  151. package/.storybook/preview.js +0 -37
  152. package/.turbo/turbo-build.log +0 -8
  153. package/.turbo/turbo-lint.log +0 -3
  154. package/CHANGELOG.json +0 -311
  155. package/__fixtures__/Accessible.js +0 -34
  156. package/__fixtures__/Accessible.native.js +0 -34
  157. package/__fixtures__/Theme.jsx +0 -13
  158. package/__fixtures__/Viewport.jsx +0 -17
  159. package/__fixtures__/test-utils.js +0 -25
  160. package/__fixtures__/testTheme.js +0 -1830
  161. package/__tests__/A11yText/A11yText.test.jsx +0 -34
  162. package/__tests__/ActivityIndicator/ActivityIndicator.test.jsx +0 -68
  163. package/__tests__/ActivityIndicator/__snapshots__/ActivityIndicator.test.jsx.snap +0 -287
  164. package/__tests__/Box/Box.test.jsx +0 -111
  165. package/__tests__/Button/Button.test.jsx +0 -86
  166. package/__tests__/Button/ButtonBase.test.jsx +0 -82
  167. package/__tests__/Button/ButtonGroup.test.jsx +0 -347
  168. package/__tests__/Button/ButtonLink.test.jsx +0 -61
  169. package/__tests__/Card/Card.test.jsx +0 -63
  170. package/__tests__/Checkbox/Checkbox.test.jsx +0 -94
  171. package/__tests__/Checkbox/CheckboxGroup.test.jsx +0 -246
  172. package/__tests__/Divider/Divider.test.jsx +0 -91
  173. package/__tests__/ExpandCollapse/ExpandCollapse.test.jsx +0 -109
  174. package/__tests__/Feedback/Feedback.test.jsx +0 -42
  175. package/__tests__/FlexGrid/Col.test.jsx +0 -261
  176. package/__tests__/FlexGrid/FlexGrid.test.jsx +0 -136
  177. package/__tests__/FlexGrid/Row.test.jsx +0 -273
  178. package/__tests__/HorizontalScroll/HorizontalScroll.test.jsx +0 -165
  179. package/__tests__/Icon/Icon.test.jsx +0 -61
  180. package/__tests__/IconButton/IconButton.test.jsx +0 -52
  181. package/__tests__/InputLabel/InputLabel.test.jsx +0 -28
  182. package/__tests__/InputLabel/__snapshots__/InputLabel.test.jsx.snap +0 -3
  183. package/__tests__/InputSupports/InputSupports.test.jsx +0 -60
  184. package/__tests__/Link/Link.test.jsx +0 -63
  185. package/__tests__/Link/TextButton.test.jsx +0 -35
  186. package/__tests__/List/List.test.jsx +0 -60
  187. package/__tests__/Modal/Modal.test.jsx +0 -47
  188. package/__tests__/Notification/Notification.test.jsx +0 -20
  189. package/__tests__/Pagination/Pagination.test.jsx +0 -160
  190. package/__tests__/Progress/Progress.test.jsx +0 -79
  191. package/__tests__/Radio/Radio.test.jsx +0 -87
  192. package/__tests__/Radio/RadioGroup.test.jsx +0 -220
  193. package/__tests__/RadioCard/RadioCard.test.jsx +0 -87
  194. package/__tests__/RadioCard/RadioCardGroup.test.jsx +0 -246
  195. package/__tests__/Search/Search.test.jsx +0 -73
  196. package/__tests__/Select/Select.test.jsx +0 -94
  197. package/__tests__/SideNav/SideNav.test.jsx +0 -110
  198. package/__tests__/Skeleton/Skeleton.test.jsx +0 -61
  199. package/__tests__/Spacer/Spacer.test.jsx +0 -63
  200. package/__tests__/StackView/StackView.test.jsx +0 -216
  201. package/__tests__/StackView/StackWrap.test.jsx +0 -47
  202. package/__tests__/StackView/getStackedContent.test.jsx +0 -295
  203. package/__tests__/StepTracker/StepTracker.test.jsx +0 -94
  204. package/__tests__/Tabs/Tabs.test.jsx +0 -40
  205. package/__tests__/Tags/Tags.test.jsx +0 -327
  206. package/__tests__/TextInput/TextArea.test.jsx +0 -35
  207. package/__tests__/TextInput/TextInputBase.test.jsx +0 -125
  208. package/__tests__/ThemeProvider/ThemeProvider.test.jsx +0 -77
  209. package/__tests__/ThemeProvider/useThemeTokens.test.jsx +0 -514
  210. package/__tests__/ThemeProvider/utils/theme-tokens.test.js +0 -41
  211. package/__tests__/ToggleSwitch/ToggleSwitch.test.jsx +0 -82
  212. package/__tests__/ToggleSwitch/ToggleSwitchGroup.test.jsx +0 -192
  213. package/__tests__/Tooltip/Tooltip.test.jsx +0 -65
  214. package/__tests__/Tooltip/getTooltipPosition.test.js +0 -79
  215. package/__tests__/Typography/typography.test.jsx +0 -90
  216. package/__tests__/utils/children.test.jsx +0 -128
  217. package/__tests__/utils/containUniqueFields.test.js +0 -25
  218. package/__tests__/utils/input.test.js +0 -375
  219. package/__tests__/utils/props.test.js +0 -36
  220. package/__tests__/utils/semantics.test.jsx +0 -34
  221. package/__tests__/utils/useCopy.test.js +0 -42
  222. package/__tests__/utils/useResponsiveProp.test.jsx +0 -202
  223. package/__tests__/utils/useSpacingScale.test.jsx +0 -273
  224. package/__tests__/utils/useUniqueId.test.js +0 -31
  225. package/babel.config.js +0 -35
  226. package/generate-component-docs.js +0 -72
  227. package/jest.config.js +0 -32
  228. package/lib-module/A11yInfoProvider/index.js +0 -62
  229. package/lib-module/A11yText/index.js +0 -55
  230. package/lib-module/ActivityIndicator/Spinner.js +0 -76
  231. package/lib-module/ActivityIndicator/Spinner.native.js +0 -143
  232. package/lib-module/ActivityIndicator/index.js +0 -40
  233. package/lib-module/ActivityIndicator/shared.js +0 -12
  234. package/lib-module/BaseProvider/index.js +0 -26
  235. package/lib-module/Box/Box.js +0 -243
  236. package/lib-module/Box/index.js +0 -2
  237. package/lib-module/Button/Button.js +0 -25
  238. package/lib-module/Button/ButtonBase.js +0 -254
  239. package/lib-module/Button/ButtonGroup.js +0 -245
  240. package/lib-module/Button/ButtonLink.js +0 -39
  241. package/lib-module/Button/index.js +0 -4
  242. package/lib-module/Button/propTypes.js +0 -36
  243. package/lib-module/Card/Card.js +0 -83
  244. package/lib-module/Card/CardBase.js +0 -62
  245. package/lib-module/Card/PressableCardBase.js +0 -113
  246. package/lib-module/Card/index.js +0 -4
  247. package/lib-module/Checkbox/Checkbox.js +0 -332
  248. package/lib-module/Checkbox/CheckboxGroup.js +0 -231
  249. package/lib-module/Checkbox/CheckboxInput.js +0 -58
  250. package/lib-module/Checkbox/CheckboxInput.native.js +0 -6
  251. package/lib-module/Checkbox/index.js +0 -3
  252. package/lib-module/Divider/Divider.js +0 -123
  253. package/lib-module/Divider/index.js +0 -2
  254. package/lib-module/ExpandCollapse/Accordion.js +0 -15
  255. package/lib-module/ExpandCollapse/Control.js +0 -130
  256. package/lib-module/ExpandCollapse/ExpandCollapse.js +0 -94
  257. package/lib-module/ExpandCollapse/Panel.js +0 -159
  258. package/lib-module/ExpandCollapse/index.js +0 -7
  259. package/lib-module/Feedback/Feedback.js +0 -144
  260. package/lib-module/Feedback/index.js +0 -2
  261. package/lib-module/Fieldset/Fieldset.js +0 -152
  262. package/lib-module/Fieldset/FieldsetContainer.js +0 -29
  263. package/lib-module/Fieldset/FieldsetContainer.native.js +0 -20
  264. package/lib-module/Fieldset/Legend.js +0 -21
  265. package/lib-module/Fieldset/Legend.native.js +0 -28
  266. package/lib-module/Fieldset/cssReset.js +0 -14
  267. package/lib-module/Fieldset/index.js +0 -2
  268. package/lib-module/FlexGrid/Col/Col.js +0 -275
  269. package/lib-module/FlexGrid/Col/index.js +0 -2
  270. package/lib-module/FlexGrid/FlexGrid.js +0 -147
  271. package/lib-module/FlexGrid/Row/Row.js +0 -183
  272. package/lib-module/FlexGrid/Row/index.js +0 -2
  273. package/lib-module/FlexGrid/helpers/index.js +0 -18
  274. package/lib-module/FlexGrid/index.js +0 -2
  275. package/lib-module/FlexGrid/providers/GutterContext.js +0 -3
  276. package/lib-module/HorizontalScroll/HorizontalScroll.js +0 -170
  277. package/lib-module/HorizontalScroll/HorizontalScrollButton.js +0 -77
  278. package/lib-module/HorizontalScroll/ScrollViewEnd.js +0 -47
  279. package/lib-module/HorizontalScroll/ScrollViewEnd.native.js +0 -24
  280. package/lib-module/HorizontalScroll/dictionary.js +0 -11
  281. package/lib-module/HorizontalScroll/index.js +0 -11
  282. package/lib-module/HorizontalScroll/itemPositions.js +0 -106
  283. package/lib-module/Icon/Icon.js +0 -61
  284. package/lib-module/Icon/IconText.js +0 -81
  285. package/lib-module/Icon/index.js +0 -4
  286. package/lib-module/IconButton/IconButton.js +0 -115
  287. package/lib-module/IconButton/index.js +0 -2
  288. package/lib-module/InputLabel/InputLabel.js +0 -141
  289. package/lib-module/InputLabel/LabelContent.js +0 -24
  290. package/lib-module/InputLabel/LabelContent.native.js +0 -16
  291. package/lib-module/InputLabel/index.js +0 -2
  292. package/lib-module/InputSupports/InputSupports.js +0 -95
  293. package/lib-module/InputSupports/index.js +0 -2
  294. package/lib-module/InputSupports/useInputSupports.js +0 -31
  295. package/lib-module/Link/ChevronLink.js +0 -51
  296. package/lib-module/Link/InlinePressable.js +0 -37
  297. package/lib-module/Link/InlinePressable.native.js +0 -85
  298. package/lib-module/Link/Link.js +0 -27
  299. package/lib-module/Link/LinkBase.js +0 -223
  300. package/lib-module/Link/TextButton.js +0 -34
  301. package/lib-module/Link/index.js +0 -5
  302. package/lib-module/List/List.js +0 -55
  303. package/lib-module/List/ListItem.js +0 -223
  304. package/lib-module/List/index.js +0 -5
  305. package/lib-module/Modal/Modal.js +0 -208
  306. package/lib-module/Modal/dictionary.js +0 -9
  307. package/lib-module/Modal/index.js +0 -2
  308. package/lib-module/Notification/Notification.js +0 -196
  309. package/lib-module/Notification/dictionary.js +0 -8
  310. package/lib-module/Notification/index.js +0 -2
  311. package/lib-module/Pagination/PageButton.js +0 -65
  312. package/lib-module/Pagination/Pagination.js +0 -140
  313. package/lib-module/Pagination/SideButton.js +0 -103
  314. package/lib-module/Pagination/dictionary.js +0 -18
  315. package/lib-module/Pagination/index.js +0 -2
  316. package/lib-module/Pagination/usePagination.js +0 -72
  317. package/lib-module/Progress/Progress.js +0 -85
  318. package/lib-module/Progress/ProgressBar.js +0 -134
  319. package/lib-module/Progress/ProgressBarBackground.js +0 -41
  320. package/lib-module/Progress/index.js +0 -4
  321. package/lib-module/Radio/Radio.js +0 -274
  322. package/lib-module/Radio/RadioButton.js +0 -128
  323. package/lib-module/Radio/RadioGroup.js +0 -241
  324. package/lib-module/Radio/RadioInput.js +0 -60
  325. package/lib-module/Radio/RadioInput.native.js +0 -6
  326. package/lib-module/Radio/index.js +0 -3
  327. package/lib-module/RadioCard/RadioCard.js +0 -218
  328. package/lib-module/RadioCard/RadioCardGroup.js +0 -248
  329. package/lib-module/RadioCard/index.js +0 -3
  330. package/lib-module/Search/Search.js +0 -241
  331. package/lib-module/Search/dictionary.js +0 -12
  332. package/lib-module/Search/index.js +0 -2
  333. package/lib-module/Select/Group.js +0 -20
  334. package/lib-module/Select/Group.native.js +0 -14
  335. package/lib-module/Select/Item.js +0 -17
  336. package/lib-module/Select/Item.native.js +0 -9
  337. package/lib-module/Select/Picker.js +0 -67
  338. package/lib-module/Select/Picker.native.js +0 -110
  339. package/lib-module/Select/Select.js +0 -316
  340. package/lib-module/Select/index.js +0 -6
  341. package/lib-module/SideNav/Item.js +0 -139
  342. package/lib-module/SideNav/ItemContent.js +0 -45
  343. package/lib-module/SideNav/ItemsGroup.js +0 -115
  344. package/lib-module/SideNav/SideNav.js +0 -133
  345. package/lib-module/SideNav/index.js +0 -1
  346. package/lib-module/Skeleton/Skeleton.js +0 -163
  347. package/lib-module/Skeleton/index.js +0 -2
  348. package/lib-module/Skeleton/skeleton.constant.js +0 -3
  349. package/lib-module/Skeleton/skeletonWebAnimation.js +0 -18
  350. package/lib-module/Skeleton/useSkeletonNativeAnimation.js +0 -24
  351. package/lib-module/Spacer/Spacer.js +0 -97
  352. package/lib-module/Spacer/index.js +0 -2
  353. package/lib-module/StackView/StackView.js +0 -124
  354. package/lib-module/StackView/StackWrap.js +0 -48
  355. package/lib-module/StackView/StackWrap.native.js +0 -3
  356. package/lib-module/StackView/StackWrapBox.js +0 -114
  357. package/lib-module/StackView/StackWrapGap.js +0 -58
  358. package/lib-module/StackView/common.js +0 -32
  359. package/lib-module/StackView/getStackedContent.js +0 -123
  360. package/lib-module/StackView/index.js +0 -5
  361. package/lib-module/StepTracker/Step.js +0 -229
  362. package/lib-module/StepTracker/StepTracker.js +0 -175
  363. package/lib-module/StepTracker/dictionary.js +0 -10
  364. package/lib-module/StepTracker/index.js +0 -2
  365. package/lib-module/Tabs/Tabs.js +0 -113
  366. package/lib-module/Tabs/TabsItem.js +0 -215
  367. package/lib-module/Tabs/index.js +0 -2
  368. package/lib-module/Tags/Tags.js +0 -245
  369. package/lib-module/Tags/index.js +0 -2
  370. package/lib-module/TextInput/TextArea.js +0 -88
  371. package/lib-module/TextInput/TextInput.js +0 -68
  372. package/lib-module/TextInput/TextInputBase.js +0 -233
  373. package/lib-module/TextInput/index.js +0 -3
  374. package/lib-module/TextInput/propTypes.js +0 -37
  375. package/lib-module/ThemeProvider/ThemeProvider.js +0 -35
  376. package/lib-module/ThemeProvider/index.js +0 -6
  377. package/lib-module/ThemeProvider/useSetTheme.js +0 -22
  378. package/lib-module/ThemeProvider/useTheme.js +0 -14
  379. package/lib-module/ThemeProvider/useThemeTokens.js +0 -105
  380. package/lib-module/ThemeProvider/utils/index.js +0 -2
  381. package/lib-module/ThemeProvider/utils/styles.js +0 -174
  382. package/lib-module/ThemeProvider/utils/theme-tokens.js +0 -151
  383. package/lib-module/ToggleSwitch/ToggleSwitch.js +0 -234
  384. package/lib-module/ToggleSwitch/ToggleSwitchGroup.js +0 -218
  385. package/lib-module/ToggleSwitch/index.js +0 -3
  386. package/lib-module/Tooltip/Backdrop.js +0 -52
  387. package/lib-module/Tooltip/Backdrop.native.js +0 -43
  388. package/lib-module/Tooltip/Tooltip.js +0 -332
  389. package/lib-module/Tooltip/dictionary.js +0 -8
  390. package/lib-module/Tooltip/getTooltipPosition.js +0 -164
  391. package/lib-module/Tooltip/index.js +0 -2
  392. package/lib-module/TooltipButton/TooltipButton.js +0 -71
  393. package/lib-module/TooltipButton/index.js +0 -2
  394. package/lib-module/Typography/Typography.js +0 -120
  395. package/lib-module/Typography/index.js +0 -2
  396. package/lib-module/ViewportProvider/ViewportProvider.js +0 -28
  397. package/lib-module/ViewportProvider/index.js +0 -3
  398. package/lib-module/ViewportProvider/useViewport.js +0 -3
  399. package/lib-module/ViewportProvider/useViewportListener.js +0 -43
  400. package/lib-module/index.js +0 -48
  401. package/lib-module/utils/a11y/index.js +0 -2
  402. package/lib-module/utils/a11y/semantics.js +0 -154
  403. package/lib-module/utils/a11y/textSize.js +0 -34
  404. package/lib-module/utils/animation/index.js +0 -2
  405. package/lib-module/utils/animation/useVerticalExpandAnimation.js +0 -61
  406. package/lib-module/utils/children.js +0 -118
  407. package/lib-module/utils/containUniqueFields.js +0 -26
  408. package/lib-module/utils/index.js +0 -16
  409. package/lib-module/utils/info/index.js +0 -7
  410. package/lib-module/utils/info/platform/index.js +0 -11
  411. package/lib-module/utils/info/platform/platform.android.js +0 -1
  412. package/lib-module/utils/info/platform/platform.ios.js +0 -1
  413. package/lib-module/utils/info/platform/platform.js +0 -1
  414. package/lib-module/utils/info/platform/platform.native.js +0 -4
  415. package/lib-module/utils/info/versions.js +0 -5
  416. package/lib-module/utils/input.js +0 -180
  417. package/lib-module/utils/pressability.js +0 -97
  418. package/lib-module/utils/props/a11yProps.js +0 -140
  419. package/lib-module/utils/props/clickProps.js +0 -25
  420. package/lib-module/utils/props/componentPropType.js +0 -63
  421. package/lib-module/utils/props/copyPropTypes.js +0 -2
  422. package/lib-module/utils/props/getPropSelector.js +0 -6
  423. package/lib-module/utils/props/handlerProps.js +0 -59
  424. package/lib-module/utils/props/hrefAttrsProp.js +0 -30
  425. package/lib-module/utils/props/index.js +0 -19
  426. package/lib-module/utils/props/inputSupportsProps.js +0 -59
  427. package/lib-module/utils/props/linkProps.js +0 -43
  428. package/lib-module/utils/props/paddingProp.js +0 -9
  429. package/lib-module/utils/props/pressProps.js +0 -42
  430. package/lib-module/utils/props/rectProp.js +0 -9
  431. package/lib-module/utils/props/responsiveProps.js +0 -30
  432. package/lib-module/utils/props/selectSystemProps.js +0 -24
  433. package/lib-module/utils/props/spacingProps.js +0 -56
  434. package/lib-module/utils/props/textInputProps.js +0 -194
  435. package/lib-module/utils/props/textProps.js +0 -59
  436. package/lib-module/utils/props/tokens.js +0 -120
  437. package/lib-module/utils/props/variantProp.js +0 -18
  438. package/lib-module/utils/props/viewProps.js +0 -22
  439. package/lib-module/utils/ssr.js +0 -35
  440. package/lib-module/utils/useCopy.js +0 -42
  441. package/lib-module/utils/useHash.js +0 -44
  442. package/lib-module/utils/useHash.native.js +0 -7
  443. package/lib-module/utils/useResponsiveProp.js +0 -47
  444. package/lib-module/utils/useSpacingScale.js +0 -123
  445. package/lib-module/utils/useUniqueId.js +0 -12
  446. package/lib-module/utils/withLinkRouter.js +0 -82
  447. package/stories/A11yText/A11yText.stories.jsx +0 -71
  448. package/stories/ActivityIndicator/ActivityIndicator.stories.jsx +0 -22
  449. package/stories/Box/Box.stories.jsx +0 -143
  450. package/stories/Button/Button.stories.jsx +0 -72
  451. package/stories/Button/ButtonGroup.stories.jsx +0 -81
  452. package/stories/Button/ButtonLink.stories.jsx +0 -30
  453. package/stories/Card/Card.stories.jsx +0 -62
  454. package/stories/Checkbox/Checkbox.stories.jsx +0 -94
  455. package/stories/Divider/Divider.stories.jsx +0 -68
  456. package/stories/ExpandCollapse/ExpandCollapse.stories.jsx +0 -112
  457. package/stories/Feedback/Feedback.stories.jsx +0 -96
  458. package/stories/FlexGrid/01 FlexGrid.stories.jsx +0 -54
  459. package/stories/FlexGrid/02 Row.stories.jsx +0 -41
  460. package/stories/FlexGrid/03 Col.stories.jsx +0 -141
  461. package/stories/Icon/Icon.stories.jsx +0 -79
  462. package/stories/IconButton/IconButton.stories.jsx +0 -50
  463. package/stories/InputLabel/InputLabel.stories.jsx +0 -39
  464. package/stories/Link/ChevronLink.stories.jsx +0 -48
  465. package/stories/Link/Link.stories.jsx +0 -90
  466. package/stories/Link/TextButton.stories.jsx +0 -79
  467. package/stories/List/List.stories.jsx +0 -117
  468. package/stories/Modal/Modal.stories.jsx +0 -54
  469. package/stories/Notification/Notification.stories.jsx +0 -82
  470. package/stories/Pagination/Pagination.stories.jsx +0 -64
  471. package/stories/Progress/Progress.stories.jsx +0 -93
  472. package/stories/Radio/Radio.stories.jsx +0 -100
  473. package/stories/RadioCard/RadioCard.stories.jsx +0 -98
  474. package/stories/Search/Search.stories.jsx +0 -66
  475. package/stories/Select/Select.stories.jsx +0 -55
  476. package/stories/SideNav/SideNav.stories.jsx +0 -42
  477. package/stories/SideNav/SideNavItem.stories.jsx +0 -9
  478. package/stories/SideNav/SideNavItemsGroup.stories.jsx +0 -17
  479. package/stories/Skeleton/Skeleton.stories.jsx +0 -36
  480. package/stories/Spacer/Spacer.stories.jsx +0 -38
  481. package/stories/StackView/StackView.stories.jsx +0 -75
  482. package/stories/StackView/StackWrap.stories.jsx +0 -64
  483. package/stories/StepTracker/StepTracker.stories.jsx +0 -71
  484. package/stories/Tabs/Tabs.stories.jsx +0 -98
  485. package/stories/Tags/Tags.stories.jsx +0 -69
  486. package/stories/TextInput/TextArea.stories.jsx +0 -101
  487. package/stories/TextInput/TextInput.stories.jsx +0 -141
  488. package/stories/ToggleSwitch/ToggleSwitch.stories.jsx +0 -64
  489. package/stories/ToggleSwitch/ToggleSwitchGroup.stories.jsx +0 -81
  490. package/stories/Tooltip/Tooltip.stories.jsx +0 -81
  491. package/stories/TooltipButton/TooltipButton.stories.jsx +0 -11
  492. package/stories/Typography/Typography.stories.jsx +0 -49
  493. package/stories/platform-supports.jsx +0 -32
  494. package/stories/platform-supports.native.jsx +0 -3
  495. package/stories/supports.jsx +0 -236
@@ -1550,6 +1550,23 @@
1550
1550
  }
1551
1551
  },
1552
1552
  "components": {
1553
+ "A11yInfoProvider": {
1554
+ "docs": {
1555
+ "description": "",
1556
+ "props": {
1557
+ "children": {
1558
+ "type": {
1559
+ "name": "node"
1560
+ },
1561
+ "required": true,
1562
+ "description": ""
1563
+ }
1564
+ },
1565
+ "attributes": {
1566
+ "acceptsRNA11yProps": false
1567
+ }
1568
+ }
1569
+ },
1553
1570
  "A11yText": {
1554
1571
  "docs": {
1555
1572
  "description": "A11yText is a zero-size invisible element that adds text to be read by screen readers.\n\nIt should be used to add selectable screen-reader-only text to the main document flow,\nas a sibling to blocks of text like paragraphs and interactive elements like buttons.",
@@ -1574,6 +1591,233 @@
1574
1591
  }
1575
1592
  }
1576
1593
  },
1594
+ "Accordion": {
1595
+ "docs": {
1596
+ "description": "'Accordion' is a shorthand for an ExpandCollapse where only one item may be open at a time",
1597
+ "props": {
1598
+ "variant": {
1599
+ "type": {
1600
+ "name": "objectOf",
1601
+ "value": {
1602
+ "name": "union",
1603
+ "value": [
1604
+ {
1605
+ "name": "string"
1606
+ },
1607
+ {
1608
+ "name": "number"
1609
+ },
1610
+ {
1611
+ "name": "bool"
1612
+ }
1613
+ ]
1614
+ }
1615
+ },
1616
+ "required": false,
1617
+ "description": ""
1618
+ },
1619
+ "tokens": {
1620
+ "type": {
1621
+ "name": "custom",
1622
+ "raw": {
1623
+ "borderColor": "color",
1624
+ "borderWidth": "border",
1625
+ "borderStyle": "borderStyle"
1626
+ }
1627
+ },
1628
+ "required": false,
1629
+ "description": ""
1630
+ },
1631
+ "children": {
1632
+ "type": {
1633
+ "name": "union",
1634
+ "value": [
1635
+ {
1636
+ "name": "func"
1637
+ },
1638
+ {
1639
+ "name": "node"
1640
+ }
1641
+ ]
1642
+ },
1643
+ "required": true,
1644
+ "description": "ExpandCollapse usually takes a render function to which it passes an object with properties\n{ openIds, onToggle, resetValues, setValues, unsetValues }. openIds (array of ids) and\nonToggle (function) will usually be passed to `<ExpandCollapse.Panel>`"
1645
+ },
1646
+ "maxOpen": {
1647
+ "type": {
1648
+ "name": "number"
1649
+ },
1650
+ "required": false,
1651
+ "description": "If set, enforces a specific maximum number of open items, closing already-open items when new\nitems are opened. By default, any number of items may be open at once."
1652
+ },
1653
+ "open": {
1654
+ "type": {
1655
+ "name": "arrayOf",
1656
+ "value": {
1657
+ "name": "string"
1658
+ }
1659
+ },
1660
+ "required": false,
1661
+ "description": "If passed, the item or items that are expanded will be controlled by a parent component"
1662
+ },
1663
+ "onChange": {
1664
+ "type": {
1665
+ "name": "func"
1666
+ },
1667
+ "required": false,
1668
+ "description": "Function called when which panels are currently open changes. Necessary if `open` is passed."
1669
+ },
1670
+ "initialOpen": {
1671
+ "type": {
1672
+ "name": "arrayOf",
1673
+ "value": {
1674
+ "name": "string"
1675
+ }
1676
+ },
1677
+ "required": false,
1678
+ "description": "Allows items with specified ids to be open by default on first load. Should not be used with `open`."
1679
+ }
1680
+ },
1681
+ "attributes": {
1682
+ "acceptsRNA11yProps": false
1683
+ }
1684
+ },
1685
+ "Panel": {
1686
+ "docs": {
1687
+ "description": "An item in an `ExpandCollapse` which contains collapsible `children` and a `control` that opens\nand closes the collapsible children when pressed.\n\nExpects `openIds` and `onToggle` props from the `ExpandCollapse` render function and a unique\n`panelId` that matches the ids passed to the `<ExpandCollapse>`.\n\nThe panel does not need to be a direct child of the `<ExpandCollapse>` (unless this is required\nby the chosen accessibility props for a particular accessibility tools).",
1688
+ "props": {
1689
+ "openIds": {
1690
+ "defaultValue": {
1691
+ "value": "[]",
1692
+ "computed": false
1693
+ },
1694
+ "type": {
1695
+ "name": "arrayOf",
1696
+ "value": {
1697
+ "name": "union",
1698
+ "value": [
1699
+ {
1700
+ "name": "number"
1701
+ },
1702
+ {
1703
+ "name": "string"
1704
+ }
1705
+ ]
1706
+ }
1707
+ },
1708
+ "required": false,
1709
+ "description": "Array of the ids of currently open groups"
1710
+ },
1711
+ "variant": {
1712
+ "type": {
1713
+ "name": "objectOf",
1714
+ "value": {
1715
+ "name": "union",
1716
+ "value": [
1717
+ {
1718
+ "name": "string"
1719
+ },
1720
+ {
1721
+ "name": "number"
1722
+ },
1723
+ {
1724
+ "name": "bool"
1725
+ }
1726
+ ]
1727
+ }
1728
+ },
1729
+ "required": false,
1730
+ "description": ""
1731
+ },
1732
+ "tokens": {
1733
+ "type": {
1734
+ "name": "custom",
1735
+ "raw": {
1736
+ "expandDuration": "duration",
1737
+ "collapseDuration": "duration",
1738
+ "contentPaddingLeft": "size",
1739
+ "contentPaddingRight": "size",
1740
+ "contentPaddingTop": "size",
1741
+ "contentPaddingBottom": "size"
1742
+ }
1743
+ },
1744
+ "required": false,
1745
+ "description": ""
1746
+ },
1747
+ "panelId": {
1748
+ "type": {
1749
+ "name": "string"
1750
+ },
1751
+ "required": true,
1752
+ "description": "Unique name by which the ExpandCollapse controls this element."
1753
+ },
1754
+ "onToggle": {
1755
+ "type": {
1756
+ "name": "func"
1757
+ },
1758
+ "required": true,
1759
+ "description": "Function to call on pressing the panel's control, which should open or close the panel.\nIf Panel is a direct child of `ExpandCollapse`, this prop will be provided by the ExpandCollapse parent."
1760
+ },
1761
+ "onPress": {
1762
+ "type": {
1763
+ "name": "func"
1764
+ },
1765
+ "required": false,
1766
+ "description": "Optional function to call on pressing the panel's control, in addition to opening or closing the panel."
1767
+ },
1768
+ "children": {
1769
+ "type": {
1770
+ "name": "union",
1771
+ "value": [
1772
+ {
1773
+ "name": "func"
1774
+ },
1775
+ {
1776
+ "name": "node"
1777
+ }
1778
+ ]
1779
+ },
1780
+ "required": false,
1781
+ "description": "ExpandCollapsePanel's children are the content that is hidden or revealed on open or close, and may be any\nsingle React element or a render function which takes this group's isExpanded state, onToggle function and panelId"
1782
+ },
1783
+ "control": {
1784
+ "type": {
1785
+ "name": "custom",
1786
+ "raw": "ExpandCollapseControl.propTypes.children.isRequired"
1787
+ },
1788
+ "required": false,
1789
+ "description": "The content inside the always-visible control element that opens and closes the ExpandCollapse when pressed."
1790
+ },
1791
+ "controlTokens": {
1792
+ "type": {
1793
+ "name": "custom",
1794
+ "raw": {
1795
+ "icon": "icon",
1796
+ "iconColor": "color",
1797
+ "iconSize": "size",
1798
+ "iconGap": "size",
1799
+ "iconPosition": "position",
1800
+ "verticalAlign": "verticalAlign",
1801
+ "justifyContent": "flexJustifyContent",
1802
+ "paddingLeft": "size",
1803
+ "paddingRight": "size",
1804
+ "paddingTop": "size",
1805
+ "paddingBottom": "size",
1806
+ "borderWidth": "border",
1807
+ "borderColor": "color",
1808
+ "backgroundColor": "color"
1809
+ }
1810
+ },
1811
+ "required": false,
1812
+ "description": "Optional theme token overrides that may be passed to the ExpandCollapseControl element."
1813
+ }
1814
+ },
1815
+ "attributes": {
1816
+ "acceptsRNA11yProps": false
1817
+ }
1818
+ }
1819
+ }
1820
+ },
1577
1821
  "ActivityIndicator": {
1578
1822
  "docs": {
1579
1823
  "description": "`ActivityIndicator` renders a visual loading state.\nIt does not handle positioning or layout of that visual loader.",
@@ -1624,6 +1868,31 @@
1624
1868
  }
1625
1869
  }
1626
1870
  },
1871
+ "BaseProvider": {
1872
+ "docs": {
1873
+ "description": "",
1874
+ "props": {
1875
+ "defaultTheme": {
1876
+ "type": {
1877
+ "name": "custom",
1878
+ "raw": "ThemeProvider.propTypes?.defaultTheme"
1879
+ },
1880
+ "required": false,
1881
+ "description": ""
1882
+ },
1883
+ "children": {
1884
+ "type": {
1885
+ "name": "node"
1886
+ },
1887
+ "required": true,
1888
+ "description": ""
1889
+ }
1890
+ },
1891
+ "attributes": {
1892
+ "acceptsRNA11yProps": false
1893
+ }
1894
+ }
1895
+ },
1627
1896
  "Box": {
1628
1897
  "docs": {
1629
1898
  "description": "A layout utility component. Use Box to create space (padding) around content.\n\n## Spacing\n\nFor most simple uses, pass a number to Box's `space` prop referring to an index in the theme's\nspacing scale. For example, for a box with the theme's smallest non-zero amount of padding on all sides:\n\n```jsx\n<Box space={1}>\n```\n\n#### Targetting specific sides\n\nBox allows spacing value props to be assigned to any side or all sides using the following props:\n\n- `space` sets the default for all sides, which is overridden by other props below\n- `horizontal` sets defaults for `left` and `right` (overriding `space` there if it is set)\n- `vertical` sets defaults for `top` and `bottom` (overriding `space` there if it is set)\n- `left` sets the left side padding, inside the box's bounds\n- `right` sets the right side padding, inside the box's bounds\n- `top` sets the top side padding, inside the box's bounds\n- `bottom` sets the bottom side padding, inside the box's bounds\n\nBox only controls spacing within its bounds. If space is needed around a box outside of its bounds,\nuse `Spacer`, `StackView` or wrap the `Box` inside another `Box`.\n\n#### Viewport-specific spacing\n\nResponsive behaviours may be set by passing any of the above props an object keyed by viewports.\n\nFor example, if a theme's spacing scale is [0, 4, 8...], this below will have padding of 4px on top,\nbottom, and right, and its left padding will be 0px on xs, sm and md viewports and 8px on lg and xl viewports:\n\n```jsx\n<Box space={1} left={{ xs: 0, lg: 2 }} />`\n```\n\n#### Subtracting from spacing\n\nA parent may sometimes need to reduce the spacing size on one or more sides of a `Box` by some variable.\nFor example, the parent may have a border on one side and want to reduce the spacing of a child box\nby the width of that border on that side. This can be achieved using the `subtract` option of the\nspacing object, for example:\n\n```jsx\n<Box space={2} left={{ space: 2, options: { subtract: themeTokens.borderWidthLeft } }} />`\n```\n\nSee `useSpacingScale` hook for other spacing value options and documentation.\n\n## Theming\n\nBox is intended for layout, so minimal theming is supported. Use components like `Card` for\nmore sophisticated theming.\n\n## Scroll\n\nIf passed, the box will be scrollable. If an object is passed, it will be passed to React Native's\n`ScrollView` component as props.\n\nWhen building native iOS and Android apps, it is important to remember to ensure any screen containing\ntext content is inside a scrollable box, as screens are not scrollable by default and even very\nshort text will require scrolling on small devices at the highest accessibility text scaling settings.",
@@ -1934,82 +2203,9 @@
1934
2203
  "docs": {
1935
2204
  "description": "A basic card component, unstyled by default.\n\n## Component API\n\n### Background\n\nIn order to control the background of a card, the following tokens are currently\nsupported:\n\n- `backgroundColor`\n\n### Border\n\nThe following border tokens can be used:\n\n- `borderColor`\n- `borderRadius`\n- `borderWidth`\n\n### Padding\n\nPlease use the following tokens to control the padding:\n\n- `paddingBottom`\n- `paddingLeft`\n- `paddingRight`\n- `paddingTop`\n\nNote that various viewport sizes are supported as well.\n\n### Shadow\n\nFeel free to use the following properties within the `shadow` token:\n\n- `inset`: boolean\n- `color`: string\n- `offsetX`: number\n- `offsetY`: number\n- `blur`: number\n- `spread`: number\n\n## Accessibility\n\nCard supports all the common a11y props. Please remember that by marking a card as `accessible`\nyou automatically make inaccessible its children, which may or may not be appropriate\ndepending on what you are trying to achieve.",
1936
2205
  "props": {
1937
- "children": {
1938
- "type": {
1939
- "name": "node"
1940
- },
1941
- "required": false,
1942
- "description": ""
1943
- },
1944
- "tokens": {
1945
- "type": {
1946
- "name": "custom",
1947
- "raw": {
1948
- "flex": "integer",
1949
- "backgroundColor": "color",
1950
- "borderColor": "color",
1951
- "borderRadius": "radius",
1952
- "borderWidth": "border",
1953
- "paddingBottom": "size",
1954
- "paddingLeft": "size",
1955
- "paddingRight": "size",
1956
- "paddingTop": "size",
1957
- "minWidth": "size",
1958
- "shadow": "shadow"
1959
- }
1960
- },
1961
- "required": false,
1962
- "description": ""
1963
- },
1964
- "variant": {
1965
- "type": {
1966
- "name": "objectOf",
1967
- "value": {
1968
- "name": "union",
1969
- "value": [
1970
- {
1971
- "name": "string"
1972
- },
1973
- {
1974
- "name": "number"
1975
- },
1976
- {
1977
- "name": "bool"
1978
- }
1979
- ]
1980
- }
1981
- },
1982
- "required": false,
1983
- "description": ""
1984
- }
1985
- },
1986
- "attributes": {
1987
- "acceptsRNA11yProps": false
1988
- }
1989
- }
1990
- },
1991
- "PressableCardBase": {
1992
- "docs": {
1993
- "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.",
1994
- "props": {
1995
- "accessibilityRole": {
1996
- "defaultValue": {
1997
- "value": "href ? 'link' : undefined",
1998
- "computed": false
1999
- },
2000
- "required": false
2001
- },
2002
- "children": {
2003
- "type": {
2004
- "name": "union",
2005
- "value": [
2006
- {
2007
- "name": "func"
2008
- },
2009
- {
2010
- "name": "node"
2011
- }
2012
- ]
2206
+ "children": {
2207
+ "type": {
2208
+ "name": "node"
2013
2209
  },
2014
2210
  "required": false,
2015
2211
  "description": ""
@@ -2017,7 +2213,19 @@
2017
2213
  "tokens": {
2018
2214
  "type": {
2019
2215
  "name": "custom",
2020
- "raw": "getTokensSetPropType(tokenKeys, { requireAll: true, allowFunction: true })"
2216
+ "raw": {
2217
+ "flex": "integer",
2218
+ "backgroundColor": "color",
2219
+ "borderColor": "color",
2220
+ "borderRadius": "radius",
2221
+ "borderWidth": "border",
2222
+ "paddingBottom": "size",
2223
+ "paddingLeft": "size",
2224
+ "paddingRight": "size",
2225
+ "paddingTop": "size",
2226
+ "minWidth": "size",
2227
+ "shadow": "shadow"
2228
+ }
2021
2229
  },
2022
2230
  "required": false,
2023
2231
  "description": ""
@@ -2251,252 +2459,25 @@
2251
2459
  },
2252
2460
  {
2253
2461
  "name": "number"
2254
- },
2255
- {
2256
- "name": "bool"
2257
- }
2258
- ]
2259
- }
2260
- },
2261
- "required": false,
2262
- "description": ""
2263
- }
2264
- },
2265
- "attributes": {
2266
- "acceptsRNA11yProps": false
2267
- }
2268
- }
2269
- },
2270
- "ExpandCollapse": {
2271
- "docs": {
2272
- "description": "Flexible base component for lists where some or all items are collapsible headers.\n\nPass a render function as `children` which takes and passes `openIds` and `onToggle` props to\n<ExpandCollapse.Panel> children, and assign the panels explicit `panelId` props. The panels may be\nnested (they do not need to be direct children), and non-interactive items may be included too.",
2273
- "props": {
2274
- "variant": {
2275
- "type": {
2276
- "name": "objectOf",
2277
- "value": {
2278
- "name": "union",
2279
- "value": [
2280
- {
2281
- "name": "string"
2282
- },
2283
- {
2284
- "name": "number"
2285
- },
2286
- {
2287
- "name": "bool"
2288
- }
2289
- ]
2290
- }
2291
- },
2292
- "required": false,
2293
- "description": ""
2294
- },
2295
- "tokens": {
2296
- "type": {
2297
- "name": "custom",
2298
- "raw": {
2299
- "borderColor": "color",
2300
- "borderWidth": "border",
2301
- "borderStyle": "borderStyle"
2302
- }
2303
- },
2304
- "required": false,
2305
- "description": ""
2306
- },
2307
- "children": {
2308
- "type": {
2309
- "name": "union",
2310
- "value": [
2311
- {
2312
- "name": "func"
2313
- },
2314
- {
2315
- "name": "node"
2316
- }
2317
- ]
2318
- },
2319
- "required": true,
2320
- "description": "ExpandCollapse usually takes a render function to which it passes an object with properties\n{ openIds, onToggle, resetValues, setValues, unsetValues }. openIds (array of ids) and\nonToggle (function) will usually be passed to `<ExpandCollapse.Panel>`"
2321
- },
2322
- "maxOpen": {
2323
- "type": {
2324
- "name": "number"
2325
- },
2326
- "required": false,
2327
- "description": "If set, enforces a specific maximum number of open items, closing already-open items when new\nitems are opened. By default, any number of items may be open at once."
2328
- },
2329
- "open": {
2330
- "type": {
2331
- "name": "arrayOf",
2332
- "value": {
2333
- "name": "string"
2334
- }
2335
- },
2336
- "required": false,
2337
- "description": "If passed, the item or items that are expanded will be controlled by a parent component"
2338
- },
2339
- "onChange": {
2340
- "type": {
2341
- "name": "func"
2342
- },
2343
- "required": false,
2344
- "description": "Function called when which panels are currently open changes. Necessary if `open` is passed."
2345
- },
2346
- "initialOpen": {
2347
- "type": {
2348
- "name": "arrayOf",
2349
- "value": {
2350
- "name": "string"
2351
- }
2352
- },
2353
- "required": false,
2354
- "description": "Allows items with specified ids to be open by default on first load. Should not be used with `open`."
2355
- }
2356
- },
2357
- "attributes": {
2358
- "acceptsRNA11yProps": false
2359
- }
2360
- },
2361
- "Panel": {
2362
- "docs": {
2363
- "description": "An item in an `ExpandCollapse` which contains collapsible `children` and a `control` that opens\nand closes the collapsible children when pressed.\n\nExpects `openIds` and `onToggle` props from the `ExpandCollapse` render function and a unique\n`panelId` that matches the ids passed to the `<ExpandCollapse>`.\n\nThe panel does not need to be a direct child of the `<ExpandCollapse>` (unless this is required\nby the chosen accessibility props for a particular accessibility tools).",
2364
- "props": {
2365
- "openIds": {
2366
- "defaultValue": {
2367
- "value": "[]",
2368
- "computed": false
2369
- },
2370
- "type": {
2371
- "name": "arrayOf",
2372
- "value": {
2373
- "name": "union",
2374
- "value": [
2375
- {
2376
- "name": "number"
2377
- },
2378
- {
2379
- "name": "string"
2380
- }
2381
- ]
2382
- }
2383
- },
2384
- "required": false,
2385
- "description": "Array of the ids of currently open groups"
2386
- },
2387
- "variant": {
2388
- "type": {
2389
- "name": "objectOf",
2390
- "value": {
2391
- "name": "union",
2392
- "value": [
2393
- {
2394
- "name": "string"
2395
- },
2396
- {
2397
- "name": "number"
2398
- },
2399
- {
2400
- "name": "bool"
2401
- }
2402
- ]
2403
- }
2404
- },
2405
- "required": false,
2406
- "description": ""
2407
- },
2408
- "tokens": {
2409
- "type": {
2410
- "name": "custom",
2411
- "raw": {
2412
- "expandDuration": "duration",
2413
- "collapseDuration": "duration",
2414
- "contentPaddingLeft": "size",
2415
- "contentPaddingRight": "size",
2416
- "contentPaddingTop": "size",
2417
- "contentPaddingBottom": "size"
2418
- }
2419
- },
2420
- "required": false,
2421
- "description": ""
2422
- },
2423
- "panelId": {
2424
- "type": {
2425
- "name": "string"
2426
- },
2427
- "required": true,
2428
- "description": "Unique name by which the ExpandCollapse controls this element."
2429
- },
2430
- "onToggle": {
2431
- "type": {
2432
- "name": "func"
2433
- },
2434
- "required": true,
2435
- "description": "Function to call on pressing the panel's control, which should open or close the panel.\nIf Panel is a direct child of `ExpandCollapse`, this prop will be provided by the ExpandCollapse parent."
2436
- },
2437
- "onPress": {
2438
- "type": {
2439
- "name": "func"
2440
- },
2441
- "required": false,
2442
- "description": "Optional function to call on pressing the panel's control, in addition to opening or closing the panel."
2443
- },
2444
- "children": {
2445
- "type": {
2446
- "name": "union",
2447
- "value": [
2448
- {
2449
- "name": "func"
2450
- },
2451
- {
2452
- "name": "node"
2453
- }
2454
- ]
2455
- },
2456
- "required": false,
2457
- "description": "ExpandCollapsePanel's children are the content that is hidden or revealed on open or close, and may be any\nsingle React element or a render function which takes this group's isExpanded state, onToggle function and panelId"
2458
- },
2459
- "control": {
2460
- "type": {
2461
- "name": "custom",
2462
- "raw": "ExpandCollapseControl.propTypes.children.isRequired"
2463
- },
2464
- "required": false,
2465
- "description": "The content inside the always-visible control element that opens and closes the ExpandCollapse when pressed."
2466
- },
2467
- "controlTokens": {
2468
- "type": {
2469
- "name": "custom",
2470
- "raw": {
2471
- "icon": "icon",
2472
- "iconColor": "color",
2473
- "iconSize": "size",
2474
- "iconGap": "size",
2475
- "iconPosition": "position",
2476
- "verticalAlign": "verticalAlign",
2477
- "justifyContent": "flexJustifyContent",
2478
- "paddingLeft": "size",
2479
- "paddingRight": "size",
2480
- "paddingTop": "size",
2481
- "paddingBottom": "size",
2482
- "borderWidth": "border",
2483
- "borderColor": "color",
2484
- "backgroundColor": "color"
2485
- }
2486
- },
2487
- "required": false,
2488
- "description": "Optional theme token overrides that may be passed to the ExpandCollapseControl element."
2489
- }
2490
- },
2491
- "attributes": {
2492
- "acceptsRNA11yProps": false
2462
+ },
2463
+ {
2464
+ "name": "bool"
2465
+ }
2466
+ ]
2467
+ }
2468
+ },
2469
+ "required": false,
2470
+ "description": ""
2493
2471
  }
2472
+ },
2473
+ "attributes": {
2474
+ "acceptsRNA11yProps": false
2494
2475
  }
2495
2476
  }
2496
2477
  },
2497
- "Accordion": {
2478
+ "ExpandCollapse": {
2498
2479
  "docs": {
2499
- "description": "'Accordion' is a shorthand for an ExpandCollapse where only one item may be open at a time",
2480
+ "description": "Flexible base component for lists where some or all items are collapsible headers.\n\nPass a render function as `children` which takes and passes `openIds` and `onToggle` props to\n<ExpandCollapse.Panel> children, and assign the panels explicit `panelId` props. The panels may be\nnested (they do not need to be direct children), and non-interactive items may be included too.",
2500
2481
  "props": {
2501
2482
  "variant": {
2502
2483
  "type": {
@@ -4333,6 +4314,13 @@
4333
4314
  "docs": {
4334
4315
  "description": "An unordered List component has a child a ListItem that\nallows icon, dividers and customized typography",
4335
4316
  "props": {
4317
+ "accessibilityRole": {
4318
+ "defaultValue": {
4319
+ "value": "Platform.select({ web: 'list', default: undefined })",
4320
+ "computed": true
4321
+ },
4322
+ "required": false
4323
+ },
4336
4324
  "tokens": {
4337
4325
  "type": {
4338
4326
  "name": "custom",
@@ -4404,6 +4392,13 @@
4404
4392
  "docs": {
4405
4393
  "description": "ListItem is responsible for rendering icon or a bullet as side item",
4406
4394
  "props": {
4395
+ "accessibilityRole": {
4396
+ "defaultValue": {
4397
+ "value": "Platform.select({ web: 'listitem', default: undefined })",
4398
+ "computed": true
4399
+ },
4400
+ "required": false
4401
+ },
4407
4402
  "tokens": {
4408
4403
  "type": {
4409
4404
  "name": "custom",
@@ -4486,95 +4481,17 @@
4486
4481
  }
4487
4482
  }
4488
4483
  },
4489
- "ListItem": {
4490
- "docs": {
4491
- "description": "ListItem is responsible for rendering icon or a bullet as side item",
4492
- "props": {
4493
- "tokens": {
4494
- "type": {
4495
- "name": "custom",
4496
- "raw": {
4497
- "iconMarginTop": "size",
4498
- "itemFontWeight": "fontWeight",
4499
- "itemFontSize": "fontSize",
4500
- "itemLineHeight": "lineHeight",
4501
- "itemFontName": "fontName",
4502
- "interItemMargin": "size",
4503
- "interItemMarginWithDivider": "size",
4504
- "dividerColor": "color",
4505
- "dividerSize": "border",
4506
- "itemBulletContainerWidth": "size",
4507
- "itemBulletContainerAlign": "textAlign",
4508
- "itemBulletWidth": "size",
4509
- "itemBulletHeight": "size",
4510
- "itemBulletColor": "color",
4511
- "itemIconSize": "size",
4512
- "itemIconColor": "color",
4513
- "listGutter": "size"
4514
- }
4515
- },
4516
- "required": false,
4517
- "description": ""
4518
- },
4519
- "variant": {
4520
- "type": {
4521
- "name": "objectOf",
4522
- "value": {
4523
- "name": "union",
4524
- "value": [
4525
- {
4526
- "name": "string"
4527
- },
4528
- {
4529
- "name": "number"
4530
- },
4531
- {
4532
- "name": "bool"
4533
- }
4534
- ]
4535
- }
4536
- },
4537
- "required": false,
4538
- "description": ""
4539
- },
4540
- "children": {
4541
- "type": {
4542
- "name": "node"
4543
- },
4544
- "required": true,
4545
- "description": ""
4546
- },
4547
- "icon": {
4548
- "type": {
4549
- "name": "func"
4550
- },
4551
- "required": false,
4552
- "description": "Renders side item icon"
4553
- },
4554
- "iconColor": {
4555
- "type": {
4556
- "name": "string"
4557
- },
4558
- "required": false,
4559
- "description": "Will set display icon color"
4560
- },
4561
- "iconSize": {
4562
- "type": {
4563
- "name": "number"
4564
- },
4565
- "required": false,
4566
- "description": "Allow the user define the icon size if not defined the theme's file"
4567
- }
4568
- },
4569
- "attributes": {
4570
- "acceptsRNA11yProps": false
4571
- }
4572
- }
4573
- },
4574
4484
  "ListBase": {
4575
4485
  "docs": {
4576
4486
  "description": "An unordered List component has a child a ListItem that\nallows icon, dividers and customized typography",
4577
4487
  "props": {
4488
+ "accessibilityRole": {
4489
+ "defaultValue": {
4490
+ "value": "Platform.select({ web: 'list', default: undefined })",
4491
+ "computed": true
4492
+ },
4493
+ "required": false
4494
+ },
4578
4495
  "tokens": {
4579
4496
  "type": {
4580
4497
  "name": "custom",
@@ -4646,6 +4563,13 @@
4646
4563
  "docs": {
4647
4564
  "description": "ListItem is responsible for rendering icon or a bullet as side item",
4648
4565
  "props": {
4566
+ "accessibilityRole": {
4567
+ "defaultValue": {
4568
+ "value": "Platform.select({ web: 'listitem', default: undefined })",
4569
+ "computed": true
4570
+ },
4571
+ "required": false
4572
+ },
4649
4573
  "tokens": {
4650
4574
  "type": {
4651
4575
  "name": "custom",
@@ -4728,6 +4652,98 @@
4728
4652
  }
4729
4653
  }
4730
4654
  },
4655
+ "ListItem": {
4656
+ "docs": {
4657
+ "description": "ListItem is responsible for rendering icon or a bullet as side item",
4658
+ "props": {
4659
+ "accessibilityRole": {
4660
+ "defaultValue": {
4661
+ "value": "Platform.select({ web: 'listitem', default: undefined })",
4662
+ "computed": true
4663
+ },
4664
+ "required": false
4665
+ },
4666
+ "tokens": {
4667
+ "type": {
4668
+ "name": "custom",
4669
+ "raw": {
4670
+ "iconMarginTop": "size",
4671
+ "itemFontWeight": "fontWeight",
4672
+ "itemFontSize": "fontSize",
4673
+ "itemLineHeight": "lineHeight",
4674
+ "itemFontName": "fontName",
4675
+ "interItemMargin": "size",
4676
+ "interItemMarginWithDivider": "size",
4677
+ "dividerColor": "color",
4678
+ "dividerSize": "border",
4679
+ "itemBulletContainerWidth": "size",
4680
+ "itemBulletContainerAlign": "textAlign",
4681
+ "itemBulletWidth": "size",
4682
+ "itemBulletHeight": "size",
4683
+ "itemBulletColor": "color",
4684
+ "itemIconSize": "size",
4685
+ "itemIconColor": "color",
4686
+ "listGutter": "size"
4687
+ }
4688
+ },
4689
+ "required": false,
4690
+ "description": ""
4691
+ },
4692
+ "variant": {
4693
+ "type": {
4694
+ "name": "objectOf",
4695
+ "value": {
4696
+ "name": "union",
4697
+ "value": [
4698
+ {
4699
+ "name": "string"
4700
+ },
4701
+ {
4702
+ "name": "number"
4703
+ },
4704
+ {
4705
+ "name": "bool"
4706
+ }
4707
+ ]
4708
+ }
4709
+ },
4710
+ "required": false,
4711
+ "description": ""
4712
+ },
4713
+ "children": {
4714
+ "type": {
4715
+ "name": "node"
4716
+ },
4717
+ "required": true,
4718
+ "description": ""
4719
+ },
4720
+ "icon": {
4721
+ "type": {
4722
+ "name": "func"
4723
+ },
4724
+ "required": false,
4725
+ "description": "Renders side item icon"
4726
+ },
4727
+ "iconColor": {
4728
+ "type": {
4729
+ "name": "string"
4730
+ },
4731
+ "required": false,
4732
+ "description": "Will set display icon color"
4733
+ },
4734
+ "iconSize": {
4735
+ "type": {
4736
+ "name": "number"
4737
+ },
4738
+ "required": false,
4739
+ "description": "Allow the user define the icon size if not defined the theme's file"
4740
+ }
4741
+ },
4742
+ "attributes": {
4743
+ "acceptsRNA11yProps": false
4744
+ }
4745
+ }
4746
+ },
4731
4747
  "Modal": {
4732
4748
  "docs": {
4733
4749
  "description": "A modal window is a secondary window that opens on top of the main one.\nUsers have to interact with it before they can carry out their task and return to the main window.\nUse to reveal additional information to a user after they have performed an explicit interaction.\nThey are a strongly discouraged pattern; it's preferred to have all relevant information within a page,\nand irrelevant information either linked externally or omitted.\n\n- Must only appear after a customer interaction, not on page load or any other circumstance\n- Open a modal based on explicit customer action e.g. clicking on a button/link/form field\n- Only one modal should be \"current\" at any time\n- Read [WebAIM's documentation](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html) to create accessible modals\n- Don’t use modals to reinforce or repeat information already available in the parent page or view\n- Don’t use modals consecutively",
@@ -5285,6 +5301,67 @@
5285
5301
  }
5286
5302
  }
5287
5303
  },
5304
+ "PressableCardBase": {
5305
+ "docs": {
5306
+ "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.",
5307
+ "props": {
5308
+ "accessibilityRole": {
5309
+ "defaultValue": {
5310
+ "value": "href ? 'link' : undefined",
5311
+ "computed": false
5312
+ },
5313
+ "required": false
5314
+ },
5315
+ "children": {
5316
+ "type": {
5317
+ "name": "union",
5318
+ "value": [
5319
+ {
5320
+ "name": "func"
5321
+ },
5322
+ {
5323
+ "name": "node"
5324
+ }
5325
+ ]
5326
+ },
5327
+ "required": false,
5328
+ "description": ""
5329
+ },
5330
+ "tokens": {
5331
+ "type": {
5332
+ "name": "custom",
5333
+ "raw": "getTokensSetPropType(tokenKeys, { requireAll: true, allowFunction: true })"
5334
+ },
5335
+ "required": false,
5336
+ "description": ""
5337
+ },
5338
+ "variant": {
5339
+ "type": {
5340
+ "name": "objectOf",
5341
+ "value": {
5342
+ "name": "union",
5343
+ "value": [
5344
+ {
5345
+ "name": "string"
5346
+ },
5347
+ {
5348
+ "name": "number"
5349
+ },
5350
+ {
5351
+ "name": "bool"
5352
+ }
5353
+ ]
5354
+ }
5355
+ },
5356
+ "required": false,
5357
+ "description": ""
5358
+ }
5359
+ },
5360
+ "attributes": {
5361
+ "acceptsRNA11yProps": false
5362
+ }
5363
+ }
5364
+ },
5288
5365
  "Progress": {
5289
5366
  "docs": {
5290
5367
  "description": "The `Progress` is a container for displaying one or several `ProgressBar`s.\n\n## Props\n\n- Use `children` prop to pass one or multiple `ProgressBar`s. Note that in case of stacked progress bars\n each next will be displayed on top of the previous one.\n\n## Tokens\n\n- Use the following tokens to customize the appearance:\n - `backgroundColor` for the background color of the progress container,\n - `borderColor` to control the color of the border,\n - `borderRadius` for the rounded corners,\n - `borderWidth` to change the border width.\n - `height` to control the height of the progress bars displayed within the progress bar container.\n\n## Variants\n\n- Use the `size` variant to control the height of your progress bars: passing `'mini'` will make your\n progress bar container narrower.\n\n## Usability and A11y guidelines\n\n`Progress` component accepts the standard accessibility properties, however it's more important to make sure\nits children (instances of `ProgressBar`) receive the accessibility properties specific to the `progressbar`\nrole.",
@@ -5830,6 +5907,13 @@
5830
5907
  "required": false,
5831
5908
  "description": "Triggered when the clear button is pressed."
5832
5909
  },
5910
+ "onFocus": {
5911
+ "type": {
5912
+ "name": "func"
5913
+ },
5914
+ "required": false,
5915
+ "description": "Triggered when the search input is focused."
5916
+ },
5833
5917
  "accessibilityLabel": {
5834
5918
  "type": {
5835
5919
  "name": "string"
@@ -7250,6 +7334,42 @@
7250
7334
  }
7251
7335
  }
7252
7336
  },
7337
+ "ThemeProvider": {
7338
+ "docs": {
7339
+ "description": "",
7340
+ "props": {
7341
+ "children": {
7342
+ "type": {
7343
+ "name": "node"
7344
+ },
7345
+ "required": true,
7346
+ "description": ""
7347
+ },
7348
+ "defaultTheme": {
7349
+ "type": {
7350
+ "name": "shape",
7351
+ "value": {
7352
+ "metadata": {
7353
+ "name": "shape",
7354
+ "value": {
7355
+ "themeTokensVersion": {
7356
+ "name": "string",
7357
+ "required": true
7358
+ }
7359
+ },
7360
+ "required": true
7361
+ }
7362
+ }
7363
+ },
7364
+ "required": true,
7365
+ "description": ""
7366
+ }
7367
+ },
7368
+ "attributes": {
7369
+ "acceptsRNA11yProps": false
7370
+ }
7371
+ }
7372
+ },
7253
7373
  "Tooltip": {
7254
7374
  "docs": {
7255
7375
  "description": "Tooltip provides a descriptive and detailed explanation or instructions. It can be used next to an input label\nto help a user fill it in, or as a standalone component.\n\nBy default the TooltipButton component will be used as a control for triggering the tooltip, but you may attach\na tooltip to any other component. A render function can be used to adjust the control's styling on state changes (hover, focus, etc.).\n\n### Positioning\nBy default a Tooltip will be automatically positioned in a way that ensures it fits within the viewport.\nYou may suggest a position with a prop - it will be used, unless the tooltip would end up outside the viewport.\n\n### Usage criteria\n- You may use one when the information is useful only to a small percentage of users (ie. tech savvy people wouldn't need this info).\n- Tooltips may also be useful when vertical space is an issue.",
@@ -7652,215 +7772,45 @@
7652
7772
  {
7653
7773
  "value": "true",
7654
7774
  "computed": false
7655
- }
7656
- ]
7657
- },
7658
- "required": false,
7659
- "description": "Renders the text as a semantic heading. If a html heading tag is provided, uses that tag on Web.\n\nDoes not affect styling: <Typography heading=\"h2\"> will render a <h2> that looks like plain text.\nUse both `heading` and `variant` props to render semantic headings that look like headings.\n\nIn native apps, if this is `true` or any html heading tag string and accessibilityRole prop\nis not defined, the accessibilityRole will default to \"heading\"."
7660
- },
7661
- "children": {
7662
- "type": {
7663
- "name": "node"
7664
- },
7665
- "required": false,
7666
- "description": "Same children allowed as a React Native <Text> node"
7667
- }
7668
- },
7669
- "attributes": {
7670
- "acceptsRNA11yProps": false
7671
- }
7672
- }
7673
- },
7674
- "A11yInfoProvider": {
7675
- "docs": {
7676
- "description": "",
7677
- "props": {
7678
- "children": {
7679
- "type": {
7680
- "name": "node"
7681
- },
7682
- "required": true,
7683
- "description": ""
7684
- }
7685
- },
7686
- "attributes": {
7687
- "acceptsRNA11yProps": false
7688
- }
7689
- }
7690
- },
7691
- "BaseProvider": {
7692
- "docs": {
7693
- "description": "",
7694
- "props": {
7695
- "defaultTheme": {
7696
- "type": {
7697
- "name": "custom",
7698
- "raw": "ThemeProvider.propTypes?.defaultTheme"
7699
- },
7700
- "required": false,
7701
- "description": ""
7702
- },
7703
- "children": {
7704
- "type": {
7705
- "name": "node"
7706
- },
7707
- "required": true,
7708
- "description": ""
7709
- }
7710
- },
7711
- "attributes": {
7712
- "acceptsRNA11yProps": false
7713
- }
7714
- }
7715
- },
7716
- "ViewportProvider": {
7717
- "docs": {
7718
- "description": "Provides an up-to-date viewport value from system-constants, available via the `useViewport` hook",
7719
- "props": {
7720
- "children": {
7721
- "type": {
7722
- "name": "node"
7723
- },
7724
- "required": true,
7725
- "description": ""
7726
- }
7727
- },
7728
- "attributes": {
7729
- "acceptsRNA11yProps": false
7730
- }
7731
- }
7732
- },
7733
- "ThemeProvider": {
7734
- "docs": {
7735
- "description": "",
7736
- "props": {
7737
- "children": {
7738
- "type": {
7739
- "name": "node"
7740
- },
7741
- "required": true,
7742
- "description": ""
7743
- },
7744
- "defaultTheme": {
7745
- "type": {
7746
- "name": "shape",
7747
- "value": {
7748
- "metadata": {
7749
- "name": "shape",
7750
- "value": {
7751
- "themeTokensVersion": {
7752
- "name": "string",
7753
- "required": true
7754
- }
7755
- },
7756
- "required": true
7757
- }
7758
- }
7759
- },
7760
- "required": true,
7761
- "description": ""
7762
- }
7763
- },
7764
- "attributes": {
7765
- "acceptsRNA11yProps": false
7766
- }
7767
- }
7768
- },
7769
- "Button": {
7770
- "docs": {
7771
- "description": "",
7772
- "props": {
7773
- "tokens": {
7774
- "type": {
7775
- "name": "custom",
7776
- "raw": {
7777
- "borderColor": "color",
7778
- "borderWidth": "border",
7779
- "borderRadius": "radius",
7780
- "shadow": "shadow",
7781
- "fontSize": "fontSize",
7782
- "color": "color",
7783
- "lineHeight": "lineHeight",
7784
- "textAlign": "flexJustifyContent",
7785
- "alignSelf": "flexAlign",
7786
- "fontName": "fontName",
7787
- "fontWeight": "fontWeight",
7788
- "backgroundColor": "color",
7789
- "opacity": "opacity",
7790
- "paddingLeft": "size",
7791
- "paddingRight": "size",
7792
- "paddingTop": "size",
7793
- "paddingBottom": "size",
7794
- "width": "size",
7795
- "minWidth": "size",
7796
- "outerBorderColor": "color",
7797
- "outerBorderWidth": "border",
7798
- "outerBorderGap": "size",
7799
- "outerBackgroundColor": "color"
7800
- }
7801
- },
7802
- "required": false,
7803
- "description": ""
7804
- },
7805
- "inactive": {
7806
- "type": {
7807
- "name": "bool"
7808
- },
7809
- "required": false,
7810
- "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"
7811
- },
7812
- "disabled": {
7813
- "type": {
7814
- "name": "bool"
7815
- },
7816
- "required": false,
7817
- "description": "Alias for `inactive`"
7818
- },
7819
- "children": {
7820
- "type": {
7821
- "name": "custom",
7822
- "raw": "ABBPropTypes.childrenOf(\n PropTypes.oneOfType([ABBPropTypes.elementType(A11yText), PropTypes.string])\n)"
7823
- },
7824
- "required": false,
7825
- "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```"
7826
- },
7827
- "onPress": {
7828
- "type": {
7829
- "name": "func"
7830
- },
7831
- "required": false,
7832
- "description": "Function called when the button is pressed. Required unless the button has a href."
7833
- },
7834
- "variant": {
7835
- "type": {
7836
- "name": "objectOf",
7837
- "value": {
7838
- "name": "union",
7839
- "value": [
7840
- {
7841
- "name": "string"
7842
- },
7843
- {
7844
- "name": "number"
7845
- },
7846
- {
7847
- "name": "bool"
7848
- }
7849
- ]
7850
- }
7775
+ }
7776
+ ]
7777
+ },
7778
+ "required": false,
7779
+ "description": "Renders the text as a semantic heading. If a html heading tag is provided, uses that tag on Web.\n\nDoes not affect styling: <Typography heading=\"h2\"> will render a <h2> that looks like plain text.\nUse both `heading` and `variant` props to render semantic headings that look like headings.\n\nIn native apps, if this is `true` or any html heading tag string and accessibilityRole prop\nis not defined, the accessibilityRole will default to \"heading\"."
7780
+ },
7781
+ "children": {
7782
+ "type": {
7783
+ "name": "node"
7851
7784
  },
7852
7785
  "required": false,
7786
+ "description": "Same children allowed as a React Native <Text> node"
7787
+ }
7788
+ },
7789
+ "attributes": {
7790
+ "acceptsRNA11yProps": false
7791
+ }
7792
+ }
7793
+ },
7794
+ "ViewportProvider": {
7795
+ "docs": {
7796
+ "description": "Provides an up-to-date viewport value from system-constants, available via the `useViewport` hook",
7797
+ "props": {
7798
+ "children": {
7799
+ "type": {
7800
+ "name": "node"
7801
+ },
7802
+ "required": true,
7853
7803
  "description": ""
7854
7804
  }
7855
7805
  },
7856
7806
  "attributes": {
7857
- "acceptsRNA11yProps": true
7807
+ "acceptsRNA11yProps": false
7858
7808
  }
7859
7809
  }
7860
7810
  },
7861
- "ButtonLink": {
7811
+ "Button": {
7862
7812
  "docs": {
7863
- "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.",
7813
+ "description": "",
7864
7814
  "props": {
7865
7815
  "tokens": {
7866
7816
  "type": {
@@ -7943,66 +7893,6 @@
7943
7893
  },
7944
7894
  "required": false,
7945
7895
  "description": ""
7946
- },
7947
- "onPressIn": {
7948
- "type": {
7949
- "name": "func"
7950
- },
7951
- "required": false,
7952
- "description": ""
7953
- },
7954
- "onPressOut": {
7955
- "type": {
7956
- "name": "func"
7957
- },
7958
- "required": false,
7959
- "description": ""
7960
- },
7961
- "href": {
7962
- "type": {
7963
- "name": "string"
7964
- },
7965
- "required": false,
7966
- "description": ""
7967
- },
7968
- "hrefAttrs": {
7969
- "type": {
7970
- "name": "shape",
7971
- "value": {
7972
- "download": {
7973
- "name": "string",
7974
- "required": false
7975
- },
7976
- "rel": {
7977
- "name": "string",
7978
- "required": false
7979
- },
7980
- "target": {
7981
- "name": "enum",
7982
- "value": [
7983
- {
7984
- "value": "'_self'",
7985
- "computed": false
7986
- },
7987
- {
7988
- "value": "'_blank'",
7989
- "computed": false
7990
- },
7991
- {
7992
- "value": "'_parent'",
7993
- "computed": false
7994
- },
7995
- {
7996
- "value": "'_top'",
7997
- "computed": false
7998
- }
7999
- ],
8000
- "required": false
8001
- }
8002
- }
8003
- },
8004
- "required": false,
8005
- "description": ""
8006
7896
  }
8007
7897
  },
8008
7898
  "attributes": {
@@ -8230,6 +8120,158 @@
8230
8120
  }
8231
8121
  }
8232
8122
  },
8123
+ "ButtonLink": {
8124
+ "docs": {
8125
+ "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.",
8126
+ "props": {
8127
+ "tokens": {
8128
+ "type": {
8129
+ "name": "custom",
8130
+ "raw": {
8131
+ "borderColor": "color",
8132
+ "borderWidth": "border",
8133
+ "borderRadius": "radius",
8134
+ "shadow": "shadow",
8135
+ "fontSize": "fontSize",
8136
+ "color": "color",
8137
+ "lineHeight": "lineHeight",
8138
+ "textAlign": "flexJustifyContent",
8139
+ "alignSelf": "flexAlign",
8140
+ "fontName": "fontName",
8141
+ "fontWeight": "fontWeight",
8142
+ "backgroundColor": "color",
8143
+ "opacity": "opacity",
8144
+ "paddingLeft": "size",
8145
+ "paddingRight": "size",
8146
+ "paddingTop": "size",
8147
+ "paddingBottom": "size",
8148
+ "width": "size",
8149
+ "minWidth": "size",
8150
+ "outerBorderColor": "color",
8151
+ "outerBorderWidth": "border",
8152
+ "outerBorderGap": "size",
8153
+ "outerBackgroundColor": "color"
8154
+ }
8155
+ },
8156
+ "required": false,
8157
+ "description": ""
8158
+ },
8159
+ "inactive": {
8160
+ "type": {
8161
+ "name": "bool"
8162
+ },
8163
+ "required": false,
8164
+ "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"
8165
+ },
8166
+ "disabled": {
8167
+ "type": {
8168
+ "name": "bool"
8169
+ },
8170
+ "required": false,
8171
+ "description": "Alias for `inactive`"
8172
+ },
8173
+ "children": {
8174
+ "type": {
8175
+ "name": "custom",
8176
+ "raw": "ABBPropTypes.childrenOf(\n PropTypes.oneOfType([ABBPropTypes.elementType(A11yText), PropTypes.string])\n)"
8177
+ },
8178
+ "required": false,
8179
+ "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```"
8180
+ },
8181
+ "onPress": {
8182
+ "type": {
8183
+ "name": "func"
8184
+ },
8185
+ "required": false,
8186
+ "description": "Function called when the button is pressed. Required unless the button has a href."
8187
+ },
8188
+ "variant": {
8189
+ "type": {
8190
+ "name": "objectOf",
8191
+ "value": {
8192
+ "name": "union",
8193
+ "value": [
8194
+ {
8195
+ "name": "string"
8196
+ },
8197
+ {
8198
+ "name": "number"
8199
+ },
8200
+ {
8201
+ "name": "bool"
8202
+ }
8203
+ ]
8204
+ }
8205
+ },
8206
+ "required": false,
8207
+ "description": ""
8208
+ },
8209
+ "onPressIn": {
8210
+ "type": {
8211
+ "name": "func"
8212
+ },
8213
+ "required": false,
8214
+ "description": ""
8215
+ },
8216
+ "onPressOut": {
8217
+ "type": {
8218
+ "name": "func"
8219
+ },
8220
+ "required": false,
8221
+ "description": ""
8222
+ },
8223
+ "href": {
8224
+ "type": {
8225
+ "name": "string"
8226
+ },
8227
+ "required": false,
8228
+ "description": ""
8229
+ },
8230
+ "hrefAttrs": {
8231
+ "type": {
8232
+ "name": "shape",
8233
+ "value": {
8234
+ "download": {
8235
+ "name": "string",
8236
+ "required": false
8237
+ },
8238
+ "rel": {
8239
+ "name": "string",
8240
+ "required": false
8241
+ },
8242
+ "target": {
8243
+ "name": "enum",
8244
+ "value": [
8245
+ {
8246
+ "value": "'_self'",
8247
+ "computed": false
8248
+ },
8249
+ {
8250
+ "value": "'_blank'",
8251
+ "computed": false
8252
+ },
8253
+ {
8254
+ "value": "'_parent'",
8255
+ "computed": false
8256
+ },
8257
+ {
8258
+ "value": "'_top'",
8259
+ "computed": false
8260
+ }
8261
+ ],
8262
+ "required": false
8263
+ }
8264
+ }
8265
+ },
8266
+ "required": false,
8267
+ "description": ""
8268
+ }
8269
+ },
8270
+ "attributes": {
8271
+ "acceptsRNA11yProps": true
8272
+ }
8273
+ }
8274
+ },
8233
8275
  "CheckboxGroup": {
8234
8276
  "docs": {
8235
8277
  "description": "A group of Checkboxs that behave as a fieldset. Use when users select any number of choices from options.\n\n## Component API\n\nUse the `items` prop to pass an array of objects describing each Checkbox in the group:\n\n - `label`: main text passed to CheckboxGroup's `label` prop\n - `id`: identifier used to store which CheckboxGroup is selected (uses `label` if undefinded)\n - `onChange`: optional function called on selection, in addition to updating the group's selection state\n\n### Controlled version\n\nIf the selection state is controlled from outside, it needs to receive `checkedId` and `onChange` props.\n\n### Uncontrolled version\n\nIf the CheckboxGroup manages its own state, you can use `initialCheckedId` prop to provide the initial value.\nWhenever the radio card gets toggled, it calls the `onChange` callback with the new value (string).\n\n### Use in forms\n\nFor web forms, the `name` prop may be used to define the name of the group's `fieldset` and input elements.\n\n### Validation\n\nValidation state may be set by passing 'error' or 'success' to the `validation` prop.\n\n## A11y guidelines\n\nCheckboxGroup accepts all the common accessibility props, and controls the accessibility state\nof children like Checkbox and Feedback based on current state.\n\n@example\n```jsx\n<CheckboxGroup\n initialCheckedId=\"check1\"\n items={[\n { label: 'Checkbox 1', id: 'check1' },\n { label: 'Checkbox 2', id: 'check2' },\n { label: 'Checkbox 3', id: 'check3' }\n ]}\n legend=\"Checkboxes\"\n hint=\"Choose from these options\"\n/>\n```",
@@ -9511,9 +9553,9 @@
9511
9553
  }
9512
9554
  }
9513
9555
  },
9514
- "TextInput": {
9556
+ "TextArea": {
9515
9557
  "docs": {
9516
- "description": "A basic text input component. Use in forms or individually to receive user's input.\nDue to React Native's implementation of `TextInput` it's not possible to access the current value by passing a ref.\n\n## Controlled component\nIf it is required that the state of the `TextInput` be controlled by the application or other external methods,\n`value` and `onChange` props must be passed to the `TextInput`.\nIf the `TextInput` 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 `TextInput` state, you can create one without a value prop.\nIn this case its value can be accessed within the `onChange` callback.\n\nNOTE: In order to support more advanced usages all additional props will be passed down to the React Native's\n`TextInput` component. See <a href=\"https://reactnative.dev/docs/textinput\" target=\"_blank\">React Native documentation</a> for\nsupported props and <a href=\"https://reactnative.dev/docs/textinput\" target=\"_blank\">React Native Web documentation</a> for\ntheir implementation on the web.",
9558
+ "description": "Use to collect long-form information such as product feedback or support queries.\nDue to React Native's implementation of `TextInput` it's not possible to access the current value by passing a ref.\nThe `TextArea` height will automatically increase when new lines are added - this behavior can be limited within the theme.\n\n## Controlled component\nIf it is required that the state of the `TextArea` be controlled by the application or other external methods,\n`value` and `onChange` props must be passed to the `TextArea`.\nIf the `TextArea` 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 `TextArea` state, you can create one without a value prop.\nIn this case its value can be accessed within the `onChange` callback.\n\n## Getting feedback for entered values\nUse the `feedback` prop to give the user feedback regarding their input.\nYou can affirm that the user's input 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## Supplying a hint\nUse the `hint` prop to succinctly clarify attributes of the expected input data, such as the expected format,\nor an indicator that the field is optional.\nIt is a more usable and accessible option than the HTML `placeholder` attribute.",
9517
9559
  "props": {
9518
9560
  "variant": {
9519
9561
  "defaultValue": {
@@ -9579,6 +9621,8 @@
9579
9621
  "type": {
9580
9622
  "name": "custom",
9581
9623
  "raw": {
9624
+ "minLines": "integer",
9625
+ "maxLines": "integer",
9582
9626
  "backgroundColor": "color",
9583
9627
  "color": "color",
9584
9628
  "borderWidth": "border",
@@ -9609,9 +9653,9 @@
9609
9653
  }
9610
9654
  }
9611
9655
  },
9612
- "TextArea": {
9656
+ "TextInput": {
9613
9657
  "docs": {
9614
- "description": "Use to collect long-form information such as product feedback or support queries.\nDue to React Native's implementation of `TextInput` it's not possible to access the current value by passing a ref.\nThe `TextArea` height will automatically increase when new lines are added - this behavior can be limited within the theme.\n\n## Controlled component\nIf it is required that the state of the `TextArea` be controlled by the application or other external methods,\n`value` and `onChange` props must be passed to the `TextArea`.\nIf the `TextArea` 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 `TextArea` state, you can create one without a value prop.\nIn this case its value can be accessed within the `onChange` callback.\n\n## Getting feedback for entered values\nUse the `feedback` prop to give the user feedback regarding their input.\nYou can affirm that the user's input 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## Supplying a hint\nUse the `hint` prop to succinctly clarify attributes of the expected input data, such as the expected format,\nor an indicator that the field is optional.\nIt is a more usable and accessible option than the HTML `placeholder` attribute.",
9658
+ "description": "A basic text input component. Use in forms or individually to receive user's input.\nDue to React Native's implementation of `TextInput` it's not possible to access the current value by passing a ref.\n\n## Controlled component\nIf it is required that the state of the `TextInput` be controlled by the application or other external methods,\n`value` and `onChange` props must be passed to the `TextInput`.\nIf the `TextInput` 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 `TextInput` state, you can create one without a value prop.\nIn this case its value can be accessed within the `onChange` callback.\n\nNOTE: In order to support more advanced usages all additional props will be passed down to the React Native's\n`TextInput` component. See <a href=\"https://reactnative.dev/docs/textinput\" target=\"_blank\">React Native documentation</a> for\nsupported props and <a href=\"https://reactnative.dev/docs/textinput\" target=\"_blank\">React Native Web documentation</a> for\ntheir implementation on the web.",
9615
9659
  "props": {
9616
9660
  "variant": {
9617
9661
  "defaultValue": {
@@ -9677,8 +9721,6 @@
9677
9721
  "type": {
9678
9722
  "name": "custom",
9679
9723
  "raw": {
9680
- "minLines": "integer",
9681
- "maxLines": "integer",
9682
9724
  "backgroundColor": "color",
9683
9725
  "color": "color",
9684
9726
  "borderWidth": "border",