@telus-uds/components-base 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/CHANGELOG.md +27 -2
  2. package/lib/A11yInfoProvider/index.js +0 -0
  3. package/lib/A11yText/index.js +0 -0
  4. package/lib/ActionCard/ActionCard.js +0 -0
  5. package/lib/ActionCard/index.js +0 -0
  6. package/lib/ActivityIndicator/Spinner.js +0 -0
  7. package/lib/ActivityIndicator/Spinner.native.js +0 -0
  8. package/lib/ActivityIndicator/index.js +0 -0
  9. package/lib/ActivityIndicator/shared.js +0 -0
  10. package/lib/Autocomplete/Autocomplete.js +0 -0
  11. package/lib/Autocomplete/Loading.js +0 -0
  12. package/lib/Autocomplete/Suggestions.js +0 -0
  13. package/lib/Autocomplete/constants.js +0 -0
  14. package/lib/Autocomplete/dictionary.js +0 -0
  15. package/lib/Autocomplete/index.js +0 -0
  16. package/lib/Badge/Badge.js +0 -0
  17. package/lib/Badge/index.js +0 -0
  18. package/lib/BaseProvider/HydrationContext.js +0 -0
  19. package/lib/BaseProvider/index.js +0 -0
  20. package/lib/Box/Box.js +0 -0
  21. package/lib/Box/backgroundImageStylesMap.js +0 -0
  22. package/lib/Box/index.js +0 -0
  23. package/lib/Button/Button.js +0 -0
  24. package/lib/Button/ButtonBase.js +0 -0
  25. package/lib/Button/ButtonDropdown.js +0 -0
  26. package/lib/Button/ButtonGroup.js +0 -0
  27. package/lib/Button/ButtonLink.js +0 -0
  28. package/lib/Button/index.js +0 -0
  29. package/lib/Button/propTypes.js +0 -0
  30. package/lib/Card/Card.js +0 -0
  31. package/lib/Card/CardBase.js +0 -0
  32. package/lib/Card/PressableCardBase.js +2 -1
  33. package/lib/Card/index.js +0 -0
  34. package/lib/CardGroup/CardGroup.js +0 -0
  35. package/lib/CardGroup/dictionary.js +0 -0
  36. package/lib/CardGroup/index.js +0 -0
  37. package/lib/Carousel/Carousel.js +121 -33
  38. package/lib/Carousel/CarouselContext.js +0 -0
  39. package/lib/Carousel/CarouselFirstFocus/CarouselFirstFocus.js +0 -0
  40. package/lib/Carousel/CarouselItem/CarouselItem.js +39 -24
  41. package/lib/Carousel/CarouselItem/index.js +0 -0
  42. package/lib/Carousel/CarouselStepTracker/CarouselStepTracker.js +41 -4
  43. package/lib/Carousel/CarouselStepTracker/index.js +0 -0
  44. package/lib/Carousel/CarouselTabs/CarouselTabs.js +0 -0
  45. package/lib/Carousel/CarouselTabs/CarouselTabsPanel.js +0 -0
  46. package/lib/Carousel/CarouselTabs/CarouselTabsPanelItem.js +0 -0
  47. package/lib/Carousel/CarouselTabs/index.js +0 -0
  48. package/lib/Carousel/CarouselThumbnail.js +0 -0
  49. package/lib/Carousel/CarouselThumbnailNavigation.js +0 -0
  50. package/lib/Carousel/Constants.js +3 -0
  51. package/lib/Carousel/dictionary.js +0 -0
  52. package/lib/Carousel/index.js +0 -0
  53. package/lib/Checkbox/Checkbox.js +0 -0
  54. package/lib/Checkbox/CheckboxButton.js +0 -0
  55. package/lib/Checkbox/CheckboxGroup.js +4 -2
  56. package/lib/Checkbox/CheckboxInput.js +0 -0
  57. package/lib/Checkbox/CheckboxInput.native.js +0 -0
  58. package/lib/Checkbox/index.js +0 -0
  59. package/lib/CheckboxCard/CheckboxCard.js +0 -0
  60. package/lib/CheckboxCard/index.js +0 -0
  61. package/lib/CheckboxCardGroup/CheckboxCardGroup.js +0 -0
  62. package/lib/CheckboxCardGroup/index.js +0 -0
  63. package/lib/ColourToggle/ColourBubble.js +0 -0
  64. package/lib/ColourToggle/ColourToggle.js +0 -0
  65. package/lib/ColourToggle/index.js +0 -0
  66. package/lib/Divider/Divider.js +0 -0
  67. package/lib/Divider/index.js +0 -0
  68. package/lib/DownloadApp/DownloadApp.js +0 -0
  69. package/lib/DownloadApp/dictionary.js +0 -0
  70. package/lib/DownloadApp/index.js +0 -0
  71. package/lib/ExpandCollapse/Accordion.js +0 -0
  72. package/lib/ExpandCollapse/Control.js +0 -0
  73. package/lib/ExpandCollapse/ExpandCollapse.js +0 -0
  74. package/lib/ExpandCollapse/Panel.js +0 -0
  75. package/lib/ExpandCollapse/dictionary.js +0 -0
  76. package/lib/ExpandCollapse/index.js +0 -0
  77. package/lib/Feedback/Feedback.js +0 -0
  78. package/lib/Feedback/index.js +0 -0
  79. package/lib/Fieldset/Fieldset.js +0 -0
  80. package/lib/Fieldset/FieldsetContainer.js +0 -0
  81. package/lib/Fieldset/FieldsetContainer.native.js +0 -0
  82. package/lib/Fieldset/Legend.js +0 -0
  83. package/lib/Fieldset/Legend.native.js +0 -0
  84. package/lib/Fieldset/cssReset.js +0 -0
  85. package/lib/Fieldset/index.js +0 -0
  86. package/lib/FileUpload/FileUpload.js +0 -0
  87. package/lib/FileUpload/NotificationContent.js +0 -0
  88. package/lib/FileUpload/dictionary.js +0 -0
  89. package/lib/FileUpload/index.js +0 -0
  90. package/lib/FlexGrid/Col/Col.js +0 -0
  91. package/lib/FlexGrid/Col/index.js +0 -0
  92. package/lib/FlexGrid/FlexGrid.js +0 -0
  93. package/lib/FlexGrid/Row/Row.js +0 -0
  94. package/lib/FlexGrid/Row/index.js +0 -0
  95. package/lib/FlexGrid/helpers/index.js +0 -0
  96. package/lib/FlexGrid/index.js +0 -0
  97. package/lib/FlexGrid/providers/GutterContext.js +0 -0
  98. package/lib/Footnote/Footnote.js +0 -0
  99. package/lib/Footnote/FootnoteLink.js +0 -0
  100. package/lib/Footnote/dictionary.js +0 -0
  101. package/lib/Footnote/index.js +0 -0
  102. package/lib/HorizontalScroll/HorizontalScroll.js +17 -13
  103. package/lib/HorizontalScroll/HorizontalScrollButton.js +0 -0
  104. package/lib/HorizontalScroll/ScrollViewEnd.js +0 -0
  105. package/lib/HorizontalScroll/ScrollViewEnd.native.js +0 -0
  106. package/lib/HorizontalScroll/dictionary.js +0 -0
  107. package/lib/HorizontalScroll/index.js +0 -0
  108. package/lib/HorizontalScroll/itemPositions.js +0 -0
  109. package/lib/Icon/Icon.js +1 -0
  110. package/lib/Icon/IconText.js +0 -0
  111. package/lib/Icon/index.js +0 -0
  112. package/lib/IconButton/IconButton.js +0 -0
  113. package/lib/IconButton/index.js +0 -0
  114. package/lib/InputLabel/InputLabel.js +0 -0
  115. package/lib/InputLabel/LabelContent.js +0 -0
  116. package/lib/InputLabel/LabelContent.native.js +0 -0
  117. package/lib/InputLabel/index.js +0 -0
  118. package/lib/InputSupports/InputSupports.js +3 -0
  119. package/lib/InputSupports/index.js +0 -0
  120. package/lib/InputSupports/useInputSupports.js +0 -0
  121. package/lib/Link/ChevronLink.js +0 -0
  122. package/lib/Link/InlinePressable.js +0 -0
  123. package/lib/Link/InlinePressable.native.js +0 -0
  124. package/lib/Link/Link.js +0 -0
  125. package/lib/Link/LinkBase.js +2 -2
  126. package/lib/Link/TextButton.js +0 -0
  127. package/lib/Link/index.js +0 -0
  128. package/lib/List/List.js +0 -0
  129. package/lib/List/ListItem.js +0 -0
  130. package/lib/List/ListItemBase.js +0 -0
  131. package/lib/List/ListItemContent.js +0 -0
  132. package/lib/List/ListItemMark.js +0 -0
  133. package/lib/List/PressableListItemBase.js +0 -0
  134. package/lib/List/index.js +0 -0
  135. package/lib/Listbox/GroupControl.js +0 -0
  136. package/lib/Listbox/Listbox.js +0 -0
  137. package/lib/Listbox/ListboxContext.js +0 -0
  138. package/lib/Listbox/ListboxGroup.js +0 -0
  139. package/lib/Listbox/ListboxItem.js +0 -0
  140. package/lib/Listbox/ListboxOverlay.js +0 -0
  141. package/lib/Listbox/PressableItem.js +0 -0
  142. package/lib/Listbox/index.js +0 -0
  143. package/lib/Modal/Modal.js +4 -0
  144. package/lib/Modal/ModalContent.js +27 -8
  145. package/lib/Modal/WebModal.js +0 -0
  146. package/lib/Modal/dictionary.js +0 -0
  147. package/lib/Modal/index.js +0 -0
  148. package/lib/MultiSelectFilter/ModalOverlay.js +0 -0
  149. package/lib/MultiSelectFilter/MultiSelectFilter.js +0 -0
  150. package/lib/MultiSelectFilter/dictionary.js +0 -0
  151. package/lib/MultiSelectFilter/index.js +0 -0
  152. package/lib/Notification/Notification.js +0 -0
  153. package/lib/Notification/dictionary.js +0 -0
  154. package/lib/Notification/index.js +0 -0
  155. package/lib/OrderedList/Item.js +0 -0
  156. package/lib/OrderedList/ItemBase.js +0 -0
  157. package/lib/OrderedList/OrderedList.js +0 -0
  158. package/lib/OrderedList/OrderedListBase.js +0 -0
  159. package/lib/OrderedList/index.js +0 -0
  160. package/lib/Pagination/PageButton.js +0 -0
  161. package/lib/Pagination/Pagination.js +0 -0
  162. package/lib/Pagination/SideButton.js +0 -0
  163. package/lib/Pagination/constants.js +0 -0
  164. package/lib/Pagination/dictionary.js +0 -0
  165. package/lib/Pagination/index.js +0 -0
  166. package/lib/Pagination/usePagination.js +0 -0
  167. package/lib/Portal/Portal.js +0 -0
  168. package/lib/Portal/Portal.native.js +0 -0
  169. package/lib/Portal/index.js +0 -0
  170. package/lib/PriceLockup/PriceLockup.js +0 -0
  171. package/lib/PriceLockup/index.js +0 -0
  172. package/lib/PriceLockup/utils/renderFootnoteContent.js +0 -0
  173. package/lib/PriceLockup/utils/renderFootnoteLinks.js +0 -0
  174. package/lib/PriceLockup/utils/renderPrice.js +0 -0
  175. package/lib/PriceLockup/utils/renderTypography.js +0 -0
  176. package/lib/ProductCard/ProductCard.js +0 -0
  177. package/lib/ProductCard/dictionary.js +0 -0
  178. package/lib/ProductCard/index.js +0 -0
  179. package/lib/ProductCardGroup/ProductCardGroup.js +0 -0
  180. package/lib/ProductCardGroup/index.js +0 -0
  181. package/lib/Progress/Progress.js +8 -2
  182. package/lib/Progress/ProgressBar.js +40 -12
  183. package/lib/Progress/ProgressBarBackground.js +4 -2
  184. package/lib/Progress/constants.js +4 -0
  185. package/lib/Progress/index.js +0 -0
  186. package/lib/QuickLinks/QuickLinks.js +0 -0
  187. package/lib/QuickLinks/QuickLinksCard.js +0 -0
  188. package/lib/QuickLinks/QuickLinksItem.js +0 -0
  189. package/lib/QuickLinks/index.js +0 -0
  190. package/lib/QuickLinksFeature/QuickLinksFeature.js +0 -0
  191. package/lib/QuickLinksFeature/QuickLinksFeatureItem.js +0 -0
  192. package/lib/QuickLinksFeature/index.js +0 -0
  193. package/lib/Radio/Radio.js +0 -0
  194. package/lib/Radio/RadioButton.js +0 -0
  195. package/lib/Radio/RadioGroup.js +0 -0
  196. package/lib/Radio/RadioInput.js +0 -0
  197. package/lib/Radio/RadioInput.native.js +0 -0
  198. package/lib/Radio/index.js +0 -0
  199. package/lib/RadioCard/RadioCard.js +0 -0
  200. package/lib/RadioCard/RadioCardGroup.js +0 -0
  201. package/lib/RadioCard/index.js +0 -0
  202. package/lib/Responsive/Responsive.js +0 -0
  203. package/lib/Responsive/ResponsiveProp.js +0 -0
  204. package/lib/Responsive/ResponsiveWithMediaQueryStyleSheet.js +0 -0
  205. package/lib/Responsive/index.js +0 -0
  206. package/lib/Search/Search.js +2 -2
  207. package/lib/Search/dictionary.js +0 -0
  208. package/lib/Search/index.js +0 -0
  209. package/lib/Select/Group.js +0 -0
  210. package/lib/Select/Group.native.js +0 -0
  211. package/lib/Select/Item.js +0 -0
  212. package/lib/Select/Item.native.js +0 -0
  213. package/lib/Select/Picker.js +0 -0
  214. package/lib/Select/Picker.native.js +1 -0
  215. package/lib/Select/Select.js +1 -4
  216. package/lib/Select/constants.js +0 -0
  217. package/lib/Select/index.js +0 -0
  218. package/lib/SideNav/Item.js +0 -0
  219. package/lib/SideNav/ItemContent.js +0 -0
  220. package/lib/SideNav/ItemsGroup.js +0 -0
  221. package/lib/SideNav/SideNav.js +0 -0
  222. package/lib/SideNav/index.js +0 -0
  223. package/lib/Skeleton/Skeleton.js +0 -0
  224. package/lib/Skeleton/index.js +0 -0
  225. package/lib/Skeleton/skeleton.constant.js +0 -0
  226. package/lib/Skeleton/skeletonWebAnimation.js +0 -0
  227. package/lib/Skeleton/useSkeletonNativeAnimation.js +0 -0
  228. package/lib/SkipLink/SkipLink.js +0 -0
  229. package/lib/SkipLink/index.js +0 -0
  230. package/lib/Spacer/Spacer.js +0 -0
  231. package/lib/Spacer/index.js +0 -0
  232. package/lib/StackView/StackView.js +0 -0
  233. package/lib/StackView/StackWrap.js +0 -0
  234. package/lib/StackView/StackWrap.native.js +0 -0
  235. package/lib/StackView/StackWrapBox.js +0 -0
  236. package/lib/StackView/StackWrapGap.js +0 -0
  237. package/lib/StackView/common.js +0 -0
  238. package/lib/StackView/getStackedContent.js +0 -0
  239. package/lib/StackView/index.js +0 -0
  240. package/lib/Status/Status.js +6 -2
  241. package/lib/Status/index.js +0 -0
  242. package/lib/StepTracker/Step.js +0 -0
  243. package/lib/StepTracker/StepTracker.js +0 -0
  244. package/lib/StepTracker/dictionary.js +0 -0
  245. package/lib/StepTracker/index.js +0 -0
  246. package/lib/TabBar/TabBar.js +0 -0
  247. package/lib/TabBar/TabBarItem.js +0 -0
  248. package/lib/TabBar/index.js +0 -0
  249. package/lib/Tabs/Tabs.js +0 -0
  250. package/lib/Tabs/TabsItem.js +0 -0
  251. package/lib/Tabs/index.js +0 -0
  252. package/lib/Tags/Tags.js +0 -0
  253. package/lib/Tags/index.js +0 -0
  254. package/lib/TextInput/TextArea.js +0 -0
  255. package/lib/TextInput/TextInput.js +0 -0
  256. package/lib/TextInput/TextInputBase.js +2 -2
  257. package/lib/TextInput/dictionary.js +0 -0
  258. package/lib/TextInput/index.js +0 -0
  259. package/lib/TextInput/propTypes.js +0 -0
  260. package/lib/ThemeProvider/ThemeProvider.js +0 -0
  261. package/lib/ThemeProvider/index.js +0 -0
  262. package/lib/ThemeProvider/useResponsiveThemeTokens.js +0 -0
  263. package/lib/ThemeProvider/useSetTheme.js +0 -0
  264. package/lib/ThemeProvider/useTheme.js +0 -0
  265. package/lib/ThemeProvider/useThemeTokens.js +0 -0
  266. package/lib/ThemeProvider/utils/index.js +0 -0
  267. package/lib/ThemeProvider/utils/styles.js +0 -0
  268. package/lib/ThemeProvider/utils/theme-tokens.js +0 -0
  269. package/lib/Timeline/Timeline.js +0 -0
  270. package/lib/Timeline/index.js +0 -0
  271. package/lib/ToggleSwitch/ToggleSwitch.js +0 -0
  272. package/lib/ToggleSwitch/ToggleSwitchGroup.js +0 -0
  273. package/lib/ToggleSwitch/index.js +0 -0
  274. package/lib/Tooltip/Backdrop.js +0 -0
  275. package/lib/Tooltip/Backdrop.native.js +0 -0
  276. package/lib/Tooltip/Tooltip.js +22 -13
  277. package/lib/Tooltip/Tooltip.native.js +24 -15
  278. package/lib/Tooltip/dictionary.js +0 -0
  279. package/lib/Tooltip/getTooltipPosition.js +0 -0
  280. package/lib/Tooltip/index.js +0 -0
  281. package/lib/Tooltip/shared.js +0 -0
  282. package/lib/TooltipButton/TooltipButton.js +0 -0
  283. package/lib/TooltipButton/index.js +0 -0
  284. package/lib/Typography/Typography.js +0 -0
  285. package/lib/Typography/index.js +0 -0
  286. package/lib/Validator/Validator.js +4 -0
  287. package/lib/Validator/index.js +0 -0
  288. package/lib/ViewportProvider/ViewportProvider.js +0 -0
  289. package/lib/ViewportProvider/index.js +0 -0
  290. package/lib/ViewportProvider/useViewport.js +0 -0
  291. package/lib/ViewportProvider/useViewportListener.js +0 -0
  292. package/lib/index.js +0 -0
  293. package/lib/server.js +0 -0
  294. package/lib/utils/BaseView/BaseView.js +0 -0
  295. package/lib/utils/BaseView/BaseView.native.js +0 -0
  296. package/lib/utils/BaseView/index.js +0 -0
  297. package/lib/utils/a11y/index.js +0 -0
  298. package/lib/utils/a11y/semantics.js +0 -0
  299. package/lib/utils/a11y/textSize.js +0 -0
  300. package/lib/utils/animation/index.js +0 -0
  301. package/lib/utils/animation/useVerticalExpandAnimation.js +0 -0
  302. package/lib/utils/children.js +0 -0
  303. package/lib/utils/containUniqueFields.js +0 -0
  304. package/lib/utils/convertFromMegaByteToByte.js +0 -0
  305. package/lib/utils/floating-ui/index.js +0 -0
  306. package/lib/utils/floating-ui/index.native.js +0 -0
  307. package/lib/utils/formatImageSource.js +0 -0
  308. package/lib/utils/hasOwnProperty.js +0 -0
  309. package/lib/utils/htmlAttrs.js +0 -0
  310. package/lib/utils/index.js +0 -0
  311. package/lib/utils/info/index.js +0 -0
  312. package/lib/utils/info/platform/index.js +0 -0
  313. package/lib/utils/info/platform/platform.android.js +0 -0
  314. package/lib/utils/info/platform/platform.ios.js +0 -0
  315. package/lib/utils/info/platform/platform.js +0 -0
  316. package/lib/utils/info/platform/platform.native.js +0 -0
  317. package/lib/utils/info/versions.js +0 -0
  318. package/lib/utils/input.js +0 -0
  319. package/lib/utils/pressability.js +0 -0
  320. package/lib/utils/props/a11yProps.js +0 -0
  321. package/lib/utils/props/clickProps.js +0 -0
  322. package/lib/utils/props/componentPropType.js +0 -0
  323. package/lib/utils/props/contentfulProps.js +22 -0
  324. package/lib/utils/props/copyPropTypes.js +0 -0
  325. package/lib/utils/props/getPropSelector.js +0 -0
  326. package/lib/utils/props/handlerProps.js +0 -0
  327. package/lib/utils/props/hrefAttrsProp.js +0 -0
  328. package/lib/utils/props/index.js +2 -1
  329. package/lib/utils/props/inputSupportsProps.js +0 -0
  330. package/lib/utils/props/linkProps.js +0 -0
  331. package/lib/utils/props/paddingProp.js +0 -0
  332. package/lib/utils/props/pressProps.js +0 -0
  333. package/lib/utils/props/rectProp.js +0 -0
  334. package/lib/utils/props/responsiveProps.js +0 -0
  335. package/lib/utils/props/selectSystemProps.js +0 -0
  336. package/lib/utils/props/spacingProps.js +0 -0
  337. package/lib/utils/props/textInputProps.js +0 -0
  338. package/lib/utils/props/textProps.js +0 -0
  339. package/lib/utils/props/tokens.js +0 -0
  340. package/lib/utils/props/variantProp.js +0 -0
  341. package/lib/utils/props/viewProps.js +0 -0
  342. package/lib/utils/ssr-media-query/create-stylesheet/create-stylesheet-mobile.js +0 -0
  343. package/lib/utils/ssr-media-query/create-stylesheet/index.android.js +0 -0
  344. package/lib/utils/ssr-media-query/create-stylesheet/index.ios.js +0 -0
  345. package/lib/utils/ssr-media-query/create-stylesheet/index.js +0 -0
  346. package/lib/utils/ssr-media-query/hash.js +0 -0
  347. package/lib/utils/ssr-media-query/index.js +0 -0
  348. package/lib/utils/ssr-media-query/utils/common.js +0 -0
  349. package/lib/utils/ssr-media-query/utils/create-declaration-block.js +0 -0
  350. package/lib/utils/ssr-media-query/utils/create-media-query-styles.js +0 -0
  351. package/lib/utils/ssr-media-query/utils/hyphenate-style-name.js +0 -0
  352. package/lib/utils/ssr-media-query/utils/inject.js +0 -0
  353. package/lib/utils/ssr.js +0 -0
  354. package/lib/utils/transformGradient.js +0 -0
  355. package/lib/utils/useCopy.js +0 -0
  356. package/lib/utils/useHash.js +0 -0
  357. package/lib/utils/useHash.native.js +0 -0
  358. package/lib/utils/useOverlaidPosition.js +0 -0
  359. package/lib/utils/useResponsiveProp.js +0 -0
  360. package/lib/utils/useSafeLayoutEffect.js +0 -0
  361. package/lib/utils/useScrollBlocking.js +0 -0
  362. package/lib/utils/useScrollBlocking.native.js +0 -0
  363. package/lib/utils/useSpacingScale.js +0 -0
  364. package/lib/utils/useUniqueId.js +0 -0
  365. package/lib/utils/withLinkRouter.js +0 -0
  366. package/package.json +2 -2
  367. package/src/Card/PressableCardBase.jsx +1 -1
  368. package/src/Carousel/Carousel.jsx +166 -34
  369. package/src/Carousel/CarouselItem/CarouselItem.jsx +56 -26
  370. package/src/Carousel/CarouselStepTracker/CarouselStepTracker.jsx +71 -37
  371. package/src/Carousel/Constants.js +3 -0
  372. package/src/Checkbox/CheckboxGroup.jsx +7 -3
  373. package/src/HorizontalScroll/HorizontalScroll.jsx +19 -15
  374. package/src/Icon/Icon.jsx +1 -0
  375. package/src/InputSupports/InputSupports.jsx +1 -0
  376. package/src/Link/LinkBase.jsx +8 -2
  377. package/src/Modal/Modal.jsx +4 -0
  378. package/src/Modal/ModalContent.jsx +23 -7
  379. package/src/Progress/Progress.jsx +12 -2
  380. package/src/Progress/ProgressBar.jsx +48 -13
  381. package/src/Progress/ProgressBarBackground.jsx +4 -2
  382. package/src/Progress/constants.js +4 -0
  383. package/src/Search/Search.jsx +7 -2
  384. package/src/Select/Picker.native.jsx +1 -0
  385. package/src/Select/Select.jsx +8 -9
  386. package/src/Status/Status.jsx +2 -2
  387. package/src/TextInput/TextInputBase.jsx +2 -2
  388. package/src/Tooltip/Tooltip.jsx +6 -1
  389. package/src/Tooltip/Tooltip.native.jsx +7 -1
  390. package/src/Validator/Validator.jsx +7 -1
  391. package/src/utils/props/contentfulProps.js +24 -0
  392. package/src/utils/props/index.js +1 -0
@@ -1,12 +1,18 @@
1
1
  import React from 'react';
2
+ import StyleSheet from "react-native-web/dist/exports/StyleSheet";
3
+ import View from "react-native-web/dist/exports/View";
4
+ import PropTypes from 'prop-types';
2
5
  import { useCarousel } from '../CarouselContext';
3
6
  import StepTracker from '../../StepTracker';
4
7
  import StackView from '../../StackView';
8
+ import Spacer from '../../Spacer';
9
+ import Progress from '../../Progress';
5
10
  import { variantProp } from '../../utils';
6
- import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
7
12
  const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
8
13
  let {
9
- variant
14
+ variant,
15
+ enableDisplayMultipleItemsPerSlide
10
16
  } = _ref;
11
17
  const {
12
18
  activeIndex,
@@ -30,6 +36,32 @@ const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
30
36
  containerPaddingTop: themeTokens.spaceBetweenSlideAndPanelNavigation
31
37
  };
32
38
  const steps = Array.from(Array(totalItems)).map((_, index) => String(index));
39
+ if (enableDisplayMultipleItemsPerSlide) {
40
+ return /*#__PURE__*/_jsxs(_Fragment, {
41
+ children: [/*#__PURE__*/_jsx(Spacer, {
42
+ space: 4
43
+ }), /*#__PURE__*/_jsx(StackView, {
44
+ direction: "row",
45
+ tokens: stackViewTokens,
46
+ ref: ref,
47
+ children: /*#__PURE__*/_jsx(View, {
48
+ style: staticStyles.progress,
49
+ children: /*#__PURE__*/_jsx(Progress, {
50
+ children: /*#__PURE__*/_jsx(Progress.Bar, {
51
+ offset: {
52
+ items: totalItems,
53
+ current: activeIndex + 1
54
+ },
55
+ variant: {
56
+ style: 'subtle'
57
+ },
58
+ accessibilityLabel: getCopyWithPlaceholders('stepTrackerLabel')
59
+ })
60
+ })
61
+ })
62
+ })]
63
+ });
64
+ }
33
65
  return /*#__PURE__*/_jsx(StackView, {
34
66
  direction: "row",
35
67
  tokens: stackViewTokens,
@@ -38,7 +70,6 @@ const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
38
70
  current: activeIndex,
39
71
  steps: steps,
40
72
  copy: {
41
- // Give StepTracker copy from Carousel's language and dictionary
42
73
  stepLabel: getCopyWithPlaceholders('stepLabel'),
43
74
  stepTrackerLabel: getCopyWithPlaceholders('stepTrackerLabel')
44
75
  },
@@ -49,6 +80,12 @@ const CarouselStepTracker = /*#__PURE__*/React.forwardRef((_ref, ref) => {
49
80
  });
50
81
  CarouselStepTracker.displayName = 'CarouselStepTracker';
51
82
  CarouselStepTracker.propTypes = {
52
- variant: variantProp.propType
83
+ variant: variantProp.propType,
84
+ enableDisplayMultipleItemsPerSlide: PropTypes.bool
53
85
  };
86
+ const staticStyles = StyleSheet.create({
87
+ progress: {
88
+ width: 288
89
+ }
90
+ });
54
91
  export default CarouselStepTracker;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ export const ITEMS_PER_VIEWPORT_MD = 2;
2
+ export const ITEMS_PER_VIEWPORT_LG_XL = 3;
3
+ export const GAP_BETWEEN_ITEMS = 16;
File without changes
File without changes
File without changes
File without changes
@@ -119,6 +119,7 @@ const CheckboxGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
119
119
  id,
120
120
  onChange: itemOnChange,
121
121
  ref: itemRef,
122
+ inactive: itemInactive,
122
123
  ...itemRest
123
124
  } = _ref2;
124
125
  const checkboxId = id || `Checkbox[${index}]`;
@@ -131,7 +132,7 @@ const CheckboxGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
131
132
  id: checkboxId,
132
133
  checked: currentValues.includes(checkboxId),
133
134
  onChange: handleChange,
134
- inactive: inactive,
135
+ inactive: itemInactive,
135
136
  label: label,
136
137
  name: inputGroupName,
137
138
  tokens: radioTokens,
@@ -183,7 +184,8 @@ CheckboxGroup.propTypes = {
183
184
  label: PropTypes.string,
184
185
  id: PropTypes.string,
185
186
  onChange: PropTypes.func,
186
- ref: ABBPropTypes.ref()
187
+ ref: ABBPropTypes.ref(),
188
+ inactive: PropTypes.bool
187
189
  })),
188
190
  /**
189
191
  * Main text used to describe this group, used in Fieldset's Legend element.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,6 +11,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
12
12
  const tokenKeys = ['nextIcon', 'previousIcon', 'gutter', 'borderBottomWidth', 'borderBottomColor', 'buttonClearance'];
13
13
  export const selectHorizontalScrollTokens = (themeTokens, prefix) => selectTokens(tokenKeys, themeTokens, prefix);
14
+ const selectBorderStyles = (borderBottomWidth, borderBottomColor) => ({
15
+ borderBottomWidth,
16
+ borderBottomColor
17
+ });
14
18
 
15
19
  /**
16
20
  * Base component that scrolls horizontally and displays left and right buttons if
@@ -114,19 +118,19 @@ const HorizontalScroll = /*#__PURE__*/React.forwardRef((_ref, ref) => {
114
118
  return /*#__PURE__*/_jsxs(View, {
115
119
  ref: ref,
116
120
  style: staticStyles.container,
117
- children: [/*#__PURE__*/_jsx(ScrollViewEnd, {
118
- onScrollEnd: handleScrollEnd,
119
- ref: scrollRef,
120
- horizontal: true,
121
- onContentSizeChange: handleContentWidth,
122
- onLayout: handleContainerLayout,
123
- showsHorizontalScrollIndicator: false,
124
- contentContainerStyle: [staticStyles.scrollContainer, {
125
- borderBottomWidth,
126
- borderBottomColor
127
- }],
128
- ...selectProps(rest),
129
- children: children
121
+ children: [/*#__PURE__*/_jsx(View, {
122
+ style: selectBorderStyles(borderBottomWidth, borderBottomColor),
123
+ children: /*#__PURE__*/_jsx(ScrollViewEnd, {
124
+ onScrollEnd: handleScrollEnd,
125
+ ref: scrollRef,
126
+ horizontal: true,
127
+ onContentSizeChange: handleContentWidth,
128
+ onLayout: handleContainerLayout,
129
+ showsHorizontalScrollIndicator: false,
130
+ contentContainerStyle: staticStyles.scrollContainer,
131
+ ...selectProps(rest),
132
+ children: children
133
+ })
130
134
  }), showPreviousButton && /*#__PURE__*/_jsx(ScrollButton, {
131
135
  icon: previousIcon,
132
136
  onPress: scrollPrevious,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/Icon/Icon.js CHANGED
@@ -53,6 +53,7 @@ const Icon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
53
53
  ...style,
54
54
  backgroundColor: themeTokens.backgroundColor,
55
55
  borderRadius: themeTokens.borderRadius,
56
+ paddingTop: themeTokens.paddingTop,
56
57
  ...paddingStyles
57
58
  },
58
59
  dataSet: dataSet,
File without changes
package/lib/Icon/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -55,6 +55,9 @@ const InputSupports = /*#__PURE__*/React.forwardRef((_ref, ref) => {
55
55
  title: feedback,
56
56
  validation: validation,
57
57
  tokens: feedbackTokens,
58
+ variant: {
59
+ icon: feedbackProps.showFeedbackIcon
60
+ },
58
61
  ...feedbackProps
59
62
  }) : null]
60
63
  });
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/Link/Link.js CHANGED
File without changes
@@ -3,14 +3,14 @@ import PropTypes from 'prop-types';
3
3
  import Text from "react-native-web/dist/exports/Text";
4
4
  import Platform from "react-native-web/dist/exports/Platform";
5
5
  import StyleSheet from "react-native-web/dist/exports/StyleSheet";
6
- import { a11yProps, clickProps, getTokensPropType, hrefAttrsProp, linkProps, selectSystemProps, variantProp, viewProps } from '../utils/props';
6
+ import { a11yProps, clickProps, getTokensPropType, hrefAttrsProp, linkProps, selectSystemProps, variantProp, viewProps, contentfulProps } from '../utils/props';
7
7
  import { resolvePressableTokens } from '../utils/pressability';
8
8
  import { withLinkRouter } from '../utils';
9
9
  import InlinePressable from './InlinePressable';
10
10
  import { applyTextStyles, applyOuterBorder, useTheme } from '../ThemeProvider';
11
11
  import { IconText, iconComponentPropTypes } from '../Icon';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, linkProps, viewProps]);
13
+ const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, linkProps, viewProps, contentfulProps]);
14
14
  const selectOuterBorderStyles = _ref => {
15
15
  let {
16
16
  outerBorderColor,
File without changes
package/lib/Link/index.js CHANGED
File without changes
package/lib/List/List.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/List/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -37,7 +37,9 @@ const selectContainerStyles = _ref => {
37
37
  const selectModalStyles = _ref2 => {
38
38
  let {
39
39
  backgroundColor,
40
+ borderColor,
40
41
  borderRadius,
42
+ borderWidth,
41
43
  height,
42
44
  paddingLeft,
43
45
  paddingRight,
@@ -47,7 +49,9 @@ const selectModalStyles = _ref2 => {
47
49
  } = _ref2;
48
50
  return {
49
51
  backgroundColor,
52
+ borderColor,
50
53
  borderRadius,
54
+ borderWidth,
51
55
  height,
52
56
  paddingLeft,
53
57
  paddingRight,
@@ -55,7 +55,29 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
55
55
  const hasConfirmButton = confirmButtonText !== undefined && onConfirm !== undefined;
56
56
  const hasCancelButton = cancelButtonText !== undefined && onCancel !== undefined;
57
57
  const hasHeadingSection = Boolean(heading || subHeading);
58
- const selectFooterContainerStyles = _ref3 => {
58
+ const selectHeadingContainerStyles = _ref3 => {
59
+ let {
60
+ paddingLeft,
61
+ paddingRight,
62
+ marginLeft,
63
+ marginRight,
64
+ borderColor,
65
+ headingBorderBottomWidth,
66
+ headingPaddingRight,
67
+ headingPaddingTop
68
+ } = _ref3;
69
+ return {
70
+ flexDirection: 'column',
71
+ marginLeft: -marginLeft,
72
+ marginRight: -marginRight,
73
+ paddingLeft,
74
+ paddingTop: headingPaddingTop,
75
+ paddingRight: paddingRight + headingPaddingRight,
76
+ borderBottomColor: borderColor,
77
+ borderBottomWidth: headingBorderBottomWidth
78
+ };
79
+ };
80
+ const selectFooterContainerStyles = _ref4 => {
59
81
  let {
60
82
  paddingLeft,
61
83
  paddingRight,
@@ -67,7 +89,7 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
67
89
  direction,
68
90
  footerTopWidth,
69
91
  hasBorder
70
- } = _ref3;
92
+ } = _ref4;
71
93
  return {
72
94
  flexDirection: direction,
73
95
  alignItems: 'center',
@@ -81,11 +103,6 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
81
103
  borderTopColor: borderColor
82
104
  };
83
105
  };
84
- const headingStyles = {
85
- flexDirection: 'column',
86
- paddingTop: 8,
87
- paddingRight: themeTokens.headingPaddingRight
88
- };
89
106
  const subheadingStyles = {
90
107
  marginTop: themeTokens.subHeadingMarginTop
91
108
  };
@@ -93,7 +110,7 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
93
110
  style: styles.modalContent,
94
111
  ref: ref,
95
112
  children: [hasHeadingSection && /*#__PURE__*/_jsxs(View, {
96
- style: headingStyles,
113
+ style: selectHeadingContainerStyles(themeTokens),
97
114
  children: [heading && /*#__PURE__*/_jsx(Typography, {
98
115
  variant: {
99
116
  size: headingLevel
@@ -120,6 +137,8 @@ const ModalContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
120
137
  showsVerticalScrollIndicator: true
121
138
  },
122
139
  onLayout: handleContainerLayout,
140
+ top: themeTokens.contentPaddingTop,
141
+ bottom: themeTokens.contentPaddingBottom,
123
142
  children: /*#__PURE__*/_jsx(Typography, {
124
143
  children: bodyText
125
144
  })
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes