@sproutsocial/racine 14.2.0 → 15.0.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 (339) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/__flow__/Card/Card.flow.js +1 -17
  3. package/__flow__/Card/CardTypes.flow.js +66 -0
  4. package/__flow__/Card/index.flow.js +2 -1
  5. package/__flow__/EnumIconNames.flow.js +1 -1
  6. package/__flow__/Icon/Icon.flow.js +3 -1
  7. package/__flow__/IconViewBoxes.js +2 -0
  8. package/__flow__/PartnerLogo/PartnerLogo.flow.js +3 -3
  9. package/__flow__/index.flow.js +1 -1
  10. package/__flow__/systemProps/{background.js → background.flow.js} +1 -1
  11. package/__flow__/systemProps/{border.js → border.flow.js} +1 -1
  12. package/__flow__/systemProps/{color.js → color.flow.js} +2 -2
  13. package/__flow__/systemProps/{custom.js → custom.flow.js} +1 -1
  14. package/__flow__/systemProps/{flexbox.js → flexbox.flow.js} +1 -1
  15. package/__flow__/systemProps/{grid.js → grid.flow.js} +1 -1
  16. package/__flow__/systemProps/index.flow.js +16 -0
  17. package/__flow__/systemProps/{layout.js → layout.flow.js} +1 -1
  18. package/__flow__/systemProps/{position.js → position.flow.js} +1 -1
  19. package/__flow__/systemProps/{shadow.js → shadow.flow.js} +1 -1
  20. package/__flow__/systemProps/{space.js → space.flow.js} +1 -1
  21. package/__flow__/systemProps/{systemProps.js → systemProps.flow.js} +13 -13
  22. package/__flow__/systemProps/{typography.js → typography.flow.js} +1 -1
  23. package/__flow__/systemProps/{variant.js → variant.flow.js} +1 -1
  24. package/__flow__/types/shared.flow.js +5 -1
  25. package/commonjs/Badge/Badge.js +2 -1
  26. package/commonjs/Banner/Banner.js +2 -1
  27. package/commonjs/Breadcrumb/Breadcrumb.js +2 -1
  28. package/commonjs/Card/Card.js +71 -26
  29. package/commonjs/Card/CardTypes.flow.js +6 -0
  30. package/commonjs/Card/index.flow.js +11 -0
  31. package/commonjs/Card/styles.js +102 -22
  32. package/commonjs/Card/subComponents.js +48 -0
  33. package/commonjs/Card/utils.js +56 -0
  34. package/commonjs/Checkbox/styles.js +6 -5
  35. package/commonjs/DatePicker/common.js +2 -1
  36. package/commonjs/Drawer/Drawer.js +9 -4
  37. package/commonjs/Icon/Icon.js +33 -10
  38. package/commonjs/IconViewBoxes.js +2 -0
  39. package/commonjs/IllustrationViewBoxes.d.js +5 -0
  40. package/commonjs/Indicator/Indicator.js +2 -1
  41. package/commonjs/Input/Input.js +2 -1
  42. package/commonjs/Listbox/Listbox.js +2 -1
  43. package/commonjs/Loader/styles.js +17 -12
  44. package/commonjs/LogoViewBoxes.d.js +5 -0
  45. package/commonjs/PartnerLogo/PartnerLogo.js +14 -13
  46. package/commonjs/PartnerLogo/PartnerLogoTypes.js +12 -1
  47. package/commonjs/PartnerLogo/index.js +0 -12
  48. package/commonjs/PartnerLogo/styles.js +1 -1
  49. package/commonjs/Select/Select.js +2 -1
  50. package/commonjs/Switch/Switch.js +1 -0
  51. package/commonjs/TableHeaderCell/TableHeaderCell.js +2 -1
  52. package/commonjs/TableRowAccordion/TableRowAccordion.js +6 -2
  53. package/commonjs/Toast/Toast.js +40 -34
  54. package/commonjs/ToggleHint/ToggleHint.js +4 -2
  55. package/commonjs/Token/Token.js +16 -2
  56. package/commonjs/Token/styles.js +1 -1
  57. package/commonjs/TokenInput/TokenInput.js +3 -1
  58. package/commonjs/index.flow.js +125 -125
  59. package/commonjs/systemProps/index.flow.js +159 -0
  60. package/commonjs/systemProps/{systemProps.js → systemProps.flow.js} +12 -12
  61. package/commonjs/themes/dark/theme.js +1 -1
  62. package/commonjs/themes/light/theme.js +1 -1
  63. package/commonjs/types/shared.flow.js +6 -1
  64. package/commonjs/utils/index.js +27 -2
  65. package/dist/icon.svg +1 -1
  66. package/dist/iconList.js +1 -1
  67. package/dist/themes/dark/theme.scss +1 -1
  68. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +1 -1
  69. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +1 -1
  70. package/dist/themes/light/theme.scss +1 -1
  71. package/dist/types/Avatar/Avatar.d.ts +2 -2
  72. package/dist/types/Avatar/Avatar.d.ts.map +1 -1
  73. package/dist/types/Badge/Badge.d.ts +2 -1
  74. package/dist/types/Badge/Badge.d.ts.map +1 -1
  75. package/dist/types/Banner/Banner.d.ts +2 -1
  76. package/dist/types/Banner/Banner.d.ts.map +1 -1
  77. package/dist/types/Banner/styles.d.ts +3 -2
  78. package/dist/types/Banner/styles.d.ts.map +1 -1
  79. package/dist/types/Box/Box.d.ts +1 -1
  80. package/dist/types/Box/Box.d.ts.map +1 -1
  81. package/dist/types/Breadcrumb/Breadcrumb.d.ts +3 -2
  82. package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  83. package/dist/types/Button/Button.d.ts +2 -1
  84. package/dist/types/Button/Button.d.ts.map +1 -1
  85. package/dist/types/Card/Card.d.ts +16 -2
  86. package/dist/types/Card/Card.d.ts.map +1 -1
  87. package/dist/types/Card/CardTypes.d.ts +48 -11
  88. package/dist/types/Card/CardTypes.d.ts.map +1 -1
  89. package/dist/types/Card/__tests__/CardTypes.d.ts +2 -0
  90. package/dist/types/Card/__tests__/CardTypes.d.ts.map +1 -0
  91. package/dist/types/Card/styles.d.ts +13 -6
  92. package/dist/types/Card/styles.d.ts.map +1 -1
  93. package/dist/types/Card/subComponents.d.ts +17 -0
  94. package/dist/types/Card/subComponents.d.ts.map +1 -0
  95. package/dist/types/Card/utils.d.ts +16 -0
  96. package/dist/types/Card/utils.d.ts.map +1 -0
  97. package/dist/types/CharacterCounter/CharacterCounter.d.ts +1 -1
  98. package/dist/types/ChartLegend/ChartLegend.d.ts +2 -1
  99. package/dist/types/ChartLegend/ChartLegend.d.ts.map +1 -1
  100. package/dist/types/Checkbox/Checkbox.d.ts +1 -1
  101. package/dist/types/Checkbox/styles.d.ts +7 -5
  102. package/dist/types/Checkbox/styles.d.ts.map +1 -1
  103. package/dist/types/Collapsible/Collapsible.d.ts +4 -3
  104. package/dist/types/Collapsible/Collapsible.d.ts.map +1 -1
  105. package/dist/types/Collapsible/styles.d.ts +1 -1
  106. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -1
  107. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  108. package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts +2 -1
  109. package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts.map +1 -1
  110. package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts +2 -1
  111. package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts.map +1 -1
  112. package/dist/types/DatePicker/common.d.ts +2 -1
  113. package/dist/types/DatePicker/common.d.ts.map +1 -1
  114. package/dist/types/DatePicker/styles.d.ts +1 -1
  115. package/dist/types/Drawer/Drawer.d.ts +3 -3
  116. package/dist/types/Drawer/Drawer.d.ts.map +1 -1
  117. package/dist/types/Drawer/SlideTransition.d.ts +1 -1
  118. package/dist/types/Drawer/SlideTransition.d.ts.map +1 -1
  119. package/dist/types/Drawer/styles.d.ts +1 -1
  120. package/dist/types/Drawer/styles.d.ts.map +1 -1
  121. package/dist/types/EmptyState/EmptyState.d.ts +2 -1
  122. package/dist/types/EmptyState/EmptyState.d.ts.map +1 -1
  123. package/dist/types/EnumIconNames.d.ts +1 -1
  124. package/dist/types/EnumIconNames.d.ts.map +1 -1
  125. package/dist/types/Fieldset/Fieldset.d.ts +4 -3
  126. package/dist/types/Fieldset/Fieldset.d.ts.map +1 -1
  127. package/dist/types/Fieldset/styles.d.ts +1 -1
  128. package/dist/types/Fieldset/styles.d.ts.map +1 -1
  129. package/dist/types/FormField/FormField.d.ts +2 -1
  130. package/dist/types/FormField/FormField.d.ts.map +1 -1
  131. package/dist/types/Icon/Icon.d.ts +4 -2
  132. package/dist/types/Icon/Icon.d.ts.map +1 -1
  133. package/dist/types/Icon/IconTypes.d.ts +3 -2
  134. package/dist/types/Icon/IconTypes.d.ts.map +1 -1
  135. package/dist/types/Image/Image.d.ts +1 -1
  136. package/dist/types/Indicator/Indicator.d.ts +1 -1
  137. package/dist/types/Input/Input.d.ts +2 -2
  138. package/dist/types/KeyboardKey/KeyboardKey.d.ts +1 -1
  139. package/dist/types/Label/Label.d.ts +1 -1
  140. package/dist/types/Link/Link.d.ts +2 -1
  141. package/dist/types/Link/Link.d.ts.map +1 -1
  142. package/dist/types/Link/styles.d.ts +2 -1
  143. package/dist/types/Link/styles.d.ts.map +1 -1
  144. package/dist/types/Listbox/Listbox.d.ts +11 -10
  145. package/dist/types/Listbox/Listbox.d.ts.map +1 -1
  146. package/dist/types/Listbox/ListboxTypes.d.ts +1 -1
  147. package/dist/types/Listbox/ListboxTypes.d.ts.map +1 -1
  148. package/dist/types/Loader/Loader.d.ts +1 -1
  149. package/dist/types/Loader/styles.d.ts.map +1 -1
  150. package/dist/types/LoaderButton/LoaderButton.d.ts +2 -1
  151. package/dist/types/LoaderButton/LoaderButton.d.ts.map +1 -1
  152. package/dist/types/Menu/Menu.d.ts +14 -13
  153. package/dist/types/Menu/Menu.d.ts.map +1 -1
  154. package/dist/types/Menu/MenuTypes.d.ts +1 -1
  155. package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
  156. package/dist/types/Menu/styles.d.ts +2 -2
  157. package/dist/types/Menu/styles.d.ts.map +1 -1
  158. package/dist/types/Menu/utils/descendants.d.ts +1 -1
  159. package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
  160. package/dist/types/Message/Message.d.ts +8 -8
  161. package/dist/types/Message/styles.d.ts +5 -5
  162. package/dist/types/Message/styles.d.ts.map +1 -1
  163. package/dist/types/Modal/Modal.d.ts +5 -5
  164. package/dist/types/Modal/styles.d.ts +5 -5
  165. package/dist/types/Modal/styles.d.ts.map +1 -1
  166. package/dist/types/Numeral/Numeral.d.ts +2 -1
  167. package/dist/types/Numeral/Numeral.d.ts.map +1 -1
  168. package/dist/types/Numeral/styles.d.ts +3 -2
  169. package/dist/types/Numeral/styles.d.ts.map +1 -1
  170. package/dist/types/OverflowList/OverflowList.d.ts +2 -1
  171. package/dist/types/OverflowList/OverflowList.d.ts.map +1 -1
  172. package/dist/types/OverflowList/styles.d.ts +2 -1
  173. package/dist/types/OverflowList/styles.d.ts.map +1 -1
  174. package/dist/types/PartnerLogo/PartnerLogo.d.ts +2 -1
  175. package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
  176. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +12 -3
  177. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  178. package/dist/types/PartnerLogo/index.d.ts +0 -1
  179. package/dist/types/PartnerLogo/index.d.ts.map +1 -1
  180. package/dist/types/Popout/Popout.d.ts +3 -2
  181. package/dist/types/Popout/Popout.d.ts.map +1 -1
  182. package/dist/types/Popout/PopoutTypes.d.ts +1 -1
  183. package/dist/types/Popout/PopoutTypes.d.ts.map +1 -1
  184. package/dist/types/Radio/Radio.d.ts +1 -1
  185. package/dist/types/Radio/styles.d.ts +2 -1
  186. package/dist/types/Radio/styles.d.ts.map +1 -1
  187. package/dist/types/SegmentedControl/SegmentedControl.d.ts +3 -2
  188. package/dist/types/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  189. package/dist/types/SegmentedControl/styles.d.ts +3 -3
  190. package/dist/types/SegmentedControl/styles.d.ts.map +1 -1
  191. package/dist/types/Select/Select.d.ts +1 -1
  192. package/dist/types/Select/Select.d.ts.map +1 -1
  193. package/dist/types/Skeleton/Skeleton.d.ts +1 -1
  194. package/dist/types/Skeleton/Skeleton.d.ts.map +1 -1
  195. package/dist/types/SpotIllustration/SpotIllustration.d.ts +2 -1
  196. package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +1 -1
  197. package/dist/types/Stack/Stack.d.ts +2 -1
  198. package/dist/types/Stack/Stack.d.ts.map +1 -1
  199. package/dist/types/Switch/Switch.d.ts +1 -1
  200. package/dist/types/Table/Table.d.ts +8 -7
  201. package/dist/types/Table/Table.d.ts.map +1 -1
  202. package/dist/types/TableCell/TableCell.d.ts +1 -1
  203. package/dist/types/TableCell/TableCellTypes.d.ts +1 -1
  204. package/dist/types/TableCell/TableCellTypes.d.ts.map +1 -1
  205. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
  206. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
  207. package/dist/types/TableRowAccordion/TableRowAccordion.d.ts +1 -1
  208. package/dist/types/TableRowAccordion/TableRowAccordion.d.ts.map +1 -1
  209. package/dist/types/Tabs/Tabs.d.ts +2 -2
  210. package/dist/types/Tabs/styles.d.ts +2 -1
  211. package/dist/types/Tabs/styles.d.ts.map +1 -1
  212. package/dist/types/Text/Text.d.ts +2 -1
  213. package/dist/types/Text/Text.d.ts.map +1 -1
  214. package/dist/types/Textarea/Textarea.d.ts +1 -1
  215. package/dist/types/ThemeProvider/index.d.ts +1 -1
  216. package/dist/types/ThemeProvider/index.d.ts.map +1 -1
  217. package/dist/types/Toast/Toast.d.ts +2 -1
  218. package/dist/types/Toast/Toast.d.ts.map +1 -1
  219. package/dist/types/Toast/styles.d.ts +3 -3
  220. package/dist/types/Toast/styles.d.ts.map +1 -1
  221. package/dist/types/ToggleHint/ToggleHint.d.ts +2 -2
  222. package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
  223. package/dist/types/Token/Token.d.ts +2 -1
  224. package/dist/types/Token/Token.d.ts.map +1 -1
  225. package/dist/types/TokenInput/TokenInput.d.ts +1 -1
  226. package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
  227. package/dist/types/Tooltip/Tooltip.d.ts +2 -1
  228. package/dist/types/Tooltip/Tooltip.d.ts.map +1 -1
  229. package/dist/types/Tooltip/TooltipTypes.d.ts +1 -1
  230. package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
  231. package/dist/types/Tooltip/styles.d.ts +1 -1
  232. package/dist/types/Tooltip/styles.d.ts.map +1 -1
  233. package/dist/types/systemProps/index.d.ts +3 -79
  234. package/dist/types/systemProps/index.d.ts.map +1 -1
  235. package/dist/types/types/styled-components.d.ts +3 -3
  236. package/dist/types/types/styled-components.d.ts.map +1 -1
  237. package/dist/types/utils/index.d.ts +7 -0
  238. package/dist/types/utils/index.d.ts.map +1 -1
  239. package/dist/types/utils/innerText.d.ts.map +1 -1
  240. package/icons/advocacy-outline.svg +2 -2
  241. package/icons/comment-ai-outline.svg +2 -2
  242. package/icons/comment-ai.svg +1 -1
  243. package/icons/dropbox.svg +2 -2
  244. package/icons/facebook-groups.svg +2 -2
  245. package/icons/facebook.svg +2 -2
  246. package/icons/feedly.svg +2 -2
  247. package/icons/flat-negative-sentiment-outline.svg +1 -1
  248. package/icons/flat-neutral-sentiment-outline.svg +1 -1
  249. package/icons/flat-positive-sentiment-outline.svg +1 -1
  250. package/icons/glassdoor.svg +2 -2
  251. package/icons/hand-sparkle-outline.svg +6 -0
  252. package/icons/hand-sparkle.svg +3 -0
  253. package/icons/instagram.svg +2 -2
  254. package/icons/linkedin.svg +2 -2
  255. package/icons/messenger.svg +2 -2
  256. package/icons/pinterest.svg +2 -2
  257. package/icons/reddit-alien.svg +2 -2
  258. package/icons/reddit.svg +2 -2
  259. package/icons/reels-outline.svg +1 -1
  260. package/icons/salesforce.svg +2 -2
  261. package/icons/send-again-outline.svg +1 -1
  262. package/icons/send-again.svg +1 -1
  263. package/icons/tasks-check.svg +1 -1
  264. package/icons/tumblr.svg +2 -2
  265. package/icons/twitter.svg +2 -2
  266. package/icons/youtube.svg +2 -2
  267. package/icons/zendesk.svg +2 -2
  268. package/lib/Badge/Badge.js +2 -1
  269. package/lib/Banner/Banner.js +2 -1
  270. package/lib/Breadcrumb/Breadcrumb.js +2 -1
  271. package/lib/Card/Card.js +73 -28
  272. package/lib/Card/CardTypes.flow.js +1 -0
  273. package/lib/Card/index.flow.js +2 -1
  274. package/lib/Card/styles.js +96 -20
  275. package/lib/Card/subComponents.js +37 -0
  276. package/lib/Card/utils.js +46 -0
  277. package/lib/Checkbox/styles.js +6 -5
  278. package/lib/DatePicker/common.js +2 -1
  279. package/lib/Drawer/Drawer.js +9 -4
  280. package/lib/Icon/Icon.js +33 -10
  281. package/lib/IconViewBoxes.js +2 -0
  282. package/lib/IllustrationViewBoxes.d.js +1 -0
  283. package/lib/Indicator/Indicator.js +2 -1
  284. package/lib/Input/Input.js +2 -1
  285. package/lib/Listbox/Listbox.js +2 -1
  286. package/lib/Loader/styles.js +17 -12
  287. package/lib/LogoViewBoxes.d.js +1 -0
  288. package/lib/PartnerLogo/PartnerLogo.js +14 -13
  289. package/lib/PartnerLogo/PartnerLogoTypes.js +8 -1
  290. package/lib/PartnerLogo/index.js +1 -2
  291. package/lib/PartnerLogo/styles.js +1 -1
  292. package/lib/Select/Select.js +2 -1
  293. package/lib/Switch/Switch.js +1 -0
  294. package/lib/TableHeaderCell/TableHeaderCell.js +2 -1
  295. package/lib/TableRowAccordion/TableRowAccordion.js +6 -2
  296. package/lib/Toast/Toast.js +40 -34
  297. package/lib/ToggleHint/ToggleHint.js +4 -2
  298. package/lib/Token/Token.js +16 -2
  299. package/lib/Token/styles.js +1 -1
  300. package/lib/TokenInput/TokenInput.js +3 -1
  301. package/lib/index.flow.js +1 -1
  302. package/lib/systemProps/index.flow.js +14 -0
  303. package/lib/systemProps/index.js +1 -45
  304. package/lib/systemProps/systemProps.flow.js +14 -0
  305. package/lib/themes/dark/theme.js +1 -1
  306. package/lib/themes/light/theme.js +1 -1
  307. package/lib/types/shared.flow.js +1 -0
  308. package/lib/utils/index.js +22 -1
  309. package/package.json +16 -12
  310. package/__flow__/systemProps/index.js +0 -16
  311. package/dist/types/PartnerLogo/TypePartnerNames.d.ts +0 -2
  312. package/dist/types/PartnerLogo/TypePartnerNames.d.ts.map +0 -1
  313. package/lib/systemProps/systemProps.js +0 -14
  314. /package/commonjs/{PartnerLogo/TypePartnerNames.js → IconViewBoxes.d.js} +0 -0
  315. /package/commonjs/systemProps/{background.js → background.flow.js} +0 -0
  316. /package/commonjs/systemProps/{border.js → border.flow.js} +0 -0
  317. /package/commonjs/systemProps/{color.js → color.flow.js} +0 -0
  318. /package/commonjs/systemProps/{custom.js → custom.flow.js} +0 -0
  319. /package/commonjs/systemProps/{flexbox.js → flexbox.flow.js} +0 -0
  320. /package/commonjs/systemProps/{grid.js → grid.flow.js} +0 -0
  321. /package/commonjs/systemProps/{layout.js → layout.flow.js} +0 -0
  322. /package/commonjs/systemProps/{position.js → position.flow.js} +0 -0
  323. /package/commonjs/systemProps/{shadow.js → shadow.flow.js} +0 -0
  324. /package/commonjs/systemProps/{space.js → space.flow.js} +0 -0
  325. /package/commonjs/systemProps/{typography.js → typography.flow.js} +0 -0
  326. /package/commonjs/systemProps/{variant.js → variant.flow.js} +0 -0
  327. /package/lib/{PartnerLogo/TypePartnerNames.js → IconViewBoxes.d.js} +0 -0
  328. /package/lib/systemProps/{background.js → background.flow.js} +0 -0
  329. /package/lib/systemProps/{border.js → border.flow.js} +0 -0
  330. /package/lib/systemProps/{color.js → color.flow.js} +0 -0
  331. /package/lib/systemProps/{custom.js → custom.flow.js} +0 -0
  332. /package/lib/systemProps/{flexbox.js → flexbox.flow.js} +0 -0
  333. /package/lib/systemProps/{grid.js → grid.flow.js} +0 -0
  334. /package/lib/systemProps/{layout.js → layout.flow.js} +0 -0
  335. /package/lib/systemProps/{position.js → position.flow.js} +0 -0
  336. /package/lib/systemProps/{shadow.js → shadow.flow.js} +0 -0
  337. /package/lib/systemProps/{space.js → space.flow.js} +0 -0
  338. /package/lib/systemProps/{typography.js → typography.flow.js} +0 -0
  339. /package/lib/systemProps/{variant.js → variant.flow.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,92 @@
1
1
  # Change Log
2
2
 
3
+ ## 15.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 03601450: Introducing the new and improved Card component!
8
+
9
+ **Breaking changes**
10
+
11
+ - Replace `buttonProps` with relevant button props at surface level
12
+ - `tabindex`
13
+ - `disabled`
14
+ - `selected`
15
+
16
+ **Features**
17
+
18
+ - [x] Simplify markup
19
+ - [x] Fine tune styling
20
+ - [x] Add layout utility subcomponents to simplify common use cases
21
+ - [x] Improve component API and developer experience
22
+ - [x] Improve testing
23
+ - [x] TypeScript
24
+ - [x] Color contrast and keyboard accessible
25
+ - [x] Improve docs to better inform implementation
26
+
27
+ ### Minor Changes
28
+
29
+ - 8e990d95: `Loader` component updated with accessible visual contrast
30
+
31
+ | Mode | Old | New |
32
+ | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
33
+ | Dark |
34
+ | ![237793791-ab96c939-4fba-4183-b395-50524d2fc11c](https://github.com/sproutsocial/racine/assets/10147376/761485a3-fd7b-4d03-af48-a33f772009c5) | ![237793851-c9aa9395-99cb-4f82-95f7-906e13c1c042](https://github.com/sproutsocial/racine/assets/10147376/fe75d870-0f9b-4b32-9f54-c24fa1e9a9d7) |
35
+ | Light | ![237793795-71880e84-8cd8-43cd-8c20-88b3dff3334f](https://github.com/sproutsocial/racine/assets/10147376/03565403-df9f-418c-a47f-bec2090c5806) | ![237793853-5de2d525-783a-4278-b0d3-6749f9a071c5](https://github.com/sproutsocial/racine/assets/10147376/3404af8c-6ce3-4203-aac4-7bc3aa9ae495) |
36
+
37
+ ## 14.3.0
38
+
39
+ ### Minor Changes
40
+
41
+ - 3e367848: Token A11y fixes:
42
+ - Add `aria-label` and `aria-hidden` to `Icons` in stories
43
+ - Add a visual indicator for invalid tokens
44
+ - Adjust styling
45
+ - Fix bug with error text token in Racine theme
46
+ - 539fa582: Visual changes to bitly, canva, glassdoor, and whatsapp icons
47
+
48
+ - Now that the Icon component renders PartnerLogos, the old Icon version of any icon with a PartnerLogo equivalent is no longer available for use.
49
+ - In most cases, the icon and the partner logo with the same name looked almost identical.
50
+ - However, a few icons had a different design when rendered as an Icon.
51
+ - bitly
52
+ - glassdoor
53
+ - canva
54
+ - whatsapp
55
+ - There is no migration necessary, but please be aware that if you are currently using Icon to render an icon for any of these partners (e.g., `<Icon name="bitly" />`), the resulting icons will change visually.
56
+
57
+ Before and after image with the old Icon versions on the left and the new PartnerLogo versions on the right:
58
+
59
+ ![](https://user-images.githubusercontent.com/15218445/229627530-778f5604-c470-4176-9013-b3f5b4e236a1.png)
60
+
61
+ - 539fa582: Removes uncolored network icons with PartnerLogo equivalents
62
+ - Previously, the following icons had no pre-filled color when rendered using Icon.
63
+ - canva, dropbox, facebook, facebook-audience-network, facebook-groups, feedly, glassdoor, google-drive, instagram, linkedin, linkedin-audience-network, messenger, pinterest, reddit, salesforce, slack, tumblr, twitter, twitter-audience-network, youtube, and zendesk
64
+ - Now that Icon serves as a pass-through to PartnerLogo, dark mode-compatible network coloring is built into these icons.
65
+ - 539fa582: Allows rendering PartnerLogos using Icon
66
+ - The Icon component has been updated to render a PartnerLogo with `logoType` "symbol" when a valid `partnerName` is passed as the `name` prop to `Icon`.
67
+ - This behavior is provided as a developer utility only:
68
+ - Logos rendered this way should still follow the same semantic rules as any other PartnerLogo.
69
+ - PartnerLogo is still recommended for direct usage, and it is still the only way to render `wordmark` or `lockup` PartnerLogos.
70
+ - 539fa582: Adds "symbol" logoType to PartnerLogo
71
+ - The "symbol" `logoType` corresponds to the icon-like version of the specified partner's logo.
72
+ - This version of a logo was previously accessible only by omitting the `logoType` prop.
73
+ - "symbol" is now the explicit default value for PartnerLogo's `logoType` prop. It was already the implicit default, so there will not be any change in behavior for existing PartnerLogo components that do not specify a `logoType`.
74
+ - 539fa582: Add `svgProps` to `Icon` and `PartnerLogo` components to allow passing props to the `svg`, such as for accessbility.
75
+ - f2f060a4: To provide a better experiance for users using assitive technologies. `Drawer` components will now include `role="dialog"` and receive autofocus when opened. `Drawer.Header` components will now allow optional `id` prop to allow `Drawer` components to leverage `aria-labelledby` attribute. `Icon` components inside `Drawer.Header` will now include `aria-hidden="true"`
76
+
77
+ ### Patch Changes
78
+
79
+ - 539fa582: Removes nonfunctional PartnerLogo 'color' prop
80
+ - There were references to a `color` prop in the PartnerLogo component
81
+ - However, passing a `color` prop would not actually have any effect because PartnerLogo colors are locked per theme
82
+ - References to this prop have been removed
83
+ - 539fa582: Updates PartnerLogo width logic
84
+ - Applies a width property to the logo-svg itself only, not the containing element, to fix layout issues such as padding not being applied to PartnerLogos when using `display="flex"`.
85
+ - This may lead to small layout changes for existing PartnerLogos.
86
+ - 8814fba7: Sync icons from Figma
87
+ - 539fa582: `PartnerLogo` and `Icon` components will now include `role="img"` and an `aria-label` or `aria-hidden` should now be passed to make these accessible.
88
+ - 34f778af: fixes a bug that prevents fill colors from being removed from icons
89
+
3
90
  ## 14.2.0
4
91
 
5
92
  ### Minor Changes
@@ -1,21 +1,5 @@
1
1
  // @flow
2
2
  import * as React from 'react';
3
- import type { TypeButtonProps } from "../Button/index.flow";
4
- import type { TypeBoxProps } from "../Box/index.flow";
5
- type TypeChildrenlessButtonProps = {
6
- ...TypeButtonProps,
7
- children?: void | null,
8
- ...
9
- };
10
- export type TypeCardProps = {
11
- ...TypeBoxProps,
12
- onClick?: () => void,
13
- href?: string,
14
- children: React.Node,
15
- /** Label describing the action that will be performed when the user interacts with the card */
16
- ariaLabel: string,
17
- buttonProps?: TypeChildrenlessButtonProps,
18
- ...
19
- };
3
+ import type { TypeCardProps } from "./CardTypes.flow";
20
4
  declare var Card: React.StatelessFunctionalComponent<TypeCardProps>;
21
5
  declare export default typeof Card;
@@ -0,0 +1,66 @@
1
+ // @flow
2
+
3
+ import * as React from 'react';
4
+ import type { TypeIconProps } from "../Icon/index.flow";
5
+ import type { TypeStyledComponentsCommonProps, TypePropsWithChildren } from "../types/index.flow";
6
+ import type { TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps } from "../systemProps/index.flow";
7
+ export type TypeSharedCardSystemProps = TypePropsWithChildren<{|
8
+ ...TypeStyledComponentsCommonProps,
9
+ ...TypeBorderSystemProps,
10
+ ...TypeColorSystemProps,
11
+ ...TypeFlexboxSystemProps,
12
+ ...TypeGridSystemProps,
13
+ ...TypeLayoutSystemProps,
14
+ ...TypePositionSystemProps,
15
+ ...TypeSpaceSystemProps,
16
+ key?: React.Key,
17
+ |}>;
18
+ export type TypeCardStyleProps = {|
19
+ elevation?: 'low' | 'medium' | 'high',
20
+ disabled?: boolean,
21
+ compositionalComponents?: boolean,
22
+ selected?: boolean,
23
+ |};
24
+ export type TypeCardStyleTransientProps = {|
25
+ $elevation?: 'low' | 'medium' | 'high',
26
+ $disabled?: boolean,
27
+ $compositionalComponents?: boolean,
28
+ $selected?: boolean,
29
+ |};
30
+ export type TypeStyledCard = {
31
+ ...TypeSharedCardSystemProps,
32
+ ...TypeCardStyleTransientProps,
33
+ ...
34
+ };
35
+ export type TypeCardStyles = {|
36
+ ...TypeSharedCardSystemProps,
37
+ ...$Diff<TypeCardStyleProps, {|
38
+ compositionalComponents: any
39
+ |}>,
40
+ |};
41
+ declare type TypeOnClick = (event: SyntheticMouseEvent<HTMLElement> | SyntheticMouseEvent<HTMLElement>) => void;
42
+ export type TypeCardConditions = {|
43
+ role: 'link' | 'button' | 'checkbox' | 'presentation',
44
+ href?: string,
45
+ onClick?: TypeOnClick,
46
+ selected?: boolean,
47
+ |};
48
+ export type TypeCardProps = {
49
+ ...TypeCardConditions,
50
+ ...TypeCardStyles,
51
+ $elevation?: void,
52
+ $disabled?: void,
53
+ $compositionalComponents?: void,
54
+ $selected?: void,
55
+ ...
56
+ };
57
+ export type TypeCardArea = {
58
+ ...TypeSharedCardSystemProps,
59
+ $divider?: 'top' | 'bottom',
60
+ ...
61
+ };
62
+ export type TypeStyledSelectedIcon = {
63
+ ...TypeIconProps,
64
+ $selected: $PropertyType<TypeCardStyleTransientProps, '$selected'>,
65
+ ...
66
+ };
@@ -1,2 +1,3 @@
1
1
  // @flow
2
- export * from "./Card.flow";
2
+ export * from "./Card.flow";
3
+ export * from "./CardTypes.flow";
@@ -1,2 +1,2 @@
1
1
  // @flow
2
- export type EnumIconNames = "active-listener" | "add-item" | "add-keyword" | "add-team-member" | "add-variable" | "address-card-outline" | "address-card-solid" | "adobe-experience-manager" | "ads" | "advocacy-outline" | "advocacy" | "android" | "apple" | "approval-indicator-outline" | "approval-indicator" | "archive" | "arrow-down-line" | "arrow-down" | "arrow-left-line" | "arrow-left" | "arrow-right-line" | "arrow-right" | "arrow-up-line" | "arrow-up" | "arrows" | "asset-library-outline" | "asset-library" | "assign" | "atom" | "audio" | "back-to-top" | "bambu-icon-outline" | "bambu-icon" | "barcode" | "basketball" | "bell-outline" | "bigcommerce" | "bitly" | "bold" | "book" | "bookmark" | "bot" | "browser" | "business" | "calendar-outline" | "calendar" | "camera-outline" | "camera-story" | "camera" | "campaign" | "canva" | "carousel" | "cart-plus-outline" | "cart-plus" | "check" | "chevron-down-filled" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up-down-filled" | "chevron-up-filled" | "chevron-up" | "circle-check-outline" | "circle-check" | "circle" | "circle+" | "circles" | "circlex" | "click-to-view" | "clicks" | "clipboard-outline" | "clipboard" | "clock" | "closed-captioning" | "cloud" | "code" | "columns" | "comment-ai-outline" | "comment-ai" | "comment-alt-outline" | "comment-alt" | "comment-lines-alt-outline" | "comment" | "compact-density" | "compact-indicator" | "comparison" | "competitor" | "compose" | "content-suggestions" | "credit-card" | "crop" | "crown" | "dashboard" | "deconstructed-negative-sentiment" | "deconstructed-neutral-sentiment" | "deconstructed-positive-sentiment" | "discovery" | "dislike-outline" | "dislike" | "dm-link-outline" | "dm-link" | "dotdotdot" | "download" | "drafts-outline" | "drafts" | "dropbox" | "duplicate-outline" | "duplicate" | "emoji-outline" | "emoji" | "empty-image" | "engagement-per-post" | "engagements" | "error" | "exchange-alt" | "expanded-indicator" | "export" | "extended-circles" | "external-link-alt" | "external-link" | "extreme-negative-sentiment" | "eye-outline" | "eye-slash-outline" | "eye-slash" | "eye" | "facebook-audience-network" | "facebook-branded-content-outline" | "facebook-branded-content" | "facebook-groups" | "facebook" | "fb-reactions-angry" | "fb-reactions-haha" | "fb-reactions-like" | "fb-reactions-love" | "fb-reactions-sad" | "fb-reactions-wow" | "feedly" | "feeds" | "female" | "file-chart-line" | "file-edit" | "file-times-solid" | "filter" | "flag-outline" | "flag" | "flat-negative-sentiment-outline" | "flat-negative-sentiment" | "flat-neutral-sentiment-outline" | "flat-neutral-sentiment" | "flat-positive-sentiment-outline" | "flat-positive-sentiment" | "folder-open" | "folder" | "follow-outline" | "follow" | "follower-increase" | "following" | "font" | "full-access" | "gear" | "gears" | "github" | "glassdoor" | "glasses" | "globe" | "google-analytics-color" | "google-business-messages" | "google-drive" | "google-my-business" | "grip" | "h1" | "h2" | "h3" | "h4" | "hamburger" | "hashtag" | "headset" | "heart-outline" | "heart" | "heartbeat" | "help-alt" | "help" | "hiking" | "history" | "home" | "hourglass" | "hubspot" | "image-caption" | "image" | "images" | "impressions-per-post" | "impressions" | "inactive-listener" | "inbox-action" | "inbox-views" | "inbox" | "indicator" | "industry" | "info" | "instagram" | "internal-activity-outline" | "internal-activity" | "italic" | "key" | "keyboard" | "laptop-phone" | "large-density" | "lift" | "like-outline" | "like" | "link" | "linkedin-audience-network" | "linkedin" | "list-ol" | "listening" | "lists" | "location-outline" | "location" | "lock" | "magic-wand" | "male" | "marketo" | "mention" | "message-preview-outline" | "message-preview" | "message" | "messages-outline" | "messages" | "messenger" | "metric-table" | "microsoft-dynamics" | "minus" | "mobile" | "monitor" | "moon" | "negative-sentiment" | "neutral-positive-sentiment" | "neutral-sentiment" | "new-trend" | "newspaper" | "no-access" | "notepad" | "notifications-publishing-outline" | "notifications-publishing" | "notifications" | "offline" | "online" | "paid-promotion-outline" | "paid-promotion" | "paid" | "paint" | "palette" | "paperclip" | "pause" | "pencil-outline" | "pencil" | "person" | "phone" | "pinterest-boards-outline" | "pinterest-boards" | "pinterest" | "play-circle" | "play" | "plug" | "plus" | "positive-sentiment" | "power-up-outline" | "power-up" | "profile-connect" | "profile-disconnect" | "publishing-outline" | "publishing" | "puzzle-piece" | "qr-code" | "queue" | "recommendation" | "reddit-alien" | "reddit" | "reels-outline" | "reels" | "referrals" | "refresh" | "rejected" | "reply-outline" | "reply" | "reporting-period" | "reporting" | "reports-home" | "reports" | "retweet" | "route" | "rss" | "sales" | "salesforce-cloud" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "send-again-outline" | "send-again" | "sent-message-outline" | "sent-message" | "share" | "shopify" | "shopping-bag-outline" | "shopping-bag" | "show-navigation" | "slack" | "small-density" | "smiley" | "some-access" | "sparkles" | "spike-alert" | "star-half-alt-solid" | "star-of-life" | "star-outline" | "star" | "sticky-note-outline" | "sticky-note" | "stories" | "story" | "suggestions" | "sun" | "tag-outline" | "tag" | "targeting-outline" | "targeting" | "tasks-check" | "tasks-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "team-sprout-outline" | "team-sprout" | "team" | "text-asset" | "text" | "tiktok" | "times" | "tools" | "trash-can-outline" | "trash-can" | "trend-down" | "trend-neutral" | "trend-up" | "trends" | "triangle-black" | "triangle" | "tripadvisor-circle-outline" | "tripadvisor-circle" | "tripadvisor" | "trophy-outline" | "tumblr" | "twitter-audience-network" | "twitter" | "underline" | "unfollow-outline" | "unfollow" | "unlink" | "unlock" | "upload" | "user-circle" | "users" | "verified" | "video-camera-story" | "video-camera" | "vip" | "weight" | "whatsapp" | "window-maximize" | "window-minimize" | "window-regular" | "window-restore" | "woocommerce" | "x" | "yelp-full-star" | "yelp-half-star" | "yelp" | "youtube" | "zendesk";
2
+ export type EnumIconNames = "active-listener" | "add-item" | "add-keyword" | "add-team-member" | "add-variable" | "address-card-outline" | "address-card-solid" | "adobe-experience-manager" | "ads" | "advocacy-outline" | "advocacy" | "android" | "apple" | "approval-indicator-outline" | "approval-indicator" | "archive" | "arrow-down-line" | "arrow-down" | "arrow-left-line" | "arrow-left" | "arrow-right-line" | "arrow-right" | "arrow-up-line" | "arrow-up" | "arrows" | "asset-library-outline" | "asset-library" | "assign" | "atom" | "audio" | "back-to-top" | "bambu-icon-outline" | "bambu-icon" | "barcode" | "basketball" | "bell-outline" | "bigcommerce" | "bitly" | "bold" | "book" | "bookmark" | "bot" | "browser" | "business" | "calendar-outline" | "calendar" | "camera-outline" | "camera-story" | "camera" | "campaign" | "canva" | "carousel" | "cart-plus-outline" | "cart-plus" | "check" | "chevron-down-filled" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up-down-filled" | "chevron-up-filled" | "chevron-up" | "circle-check-outline" | "circle-check" | "circle" | "circle+" | "circles" | "circlex" | "click-to-view" | "clicks" | "clipboard-outline" | "clipboard" | "clock" | "closed-captioning" | "cloud" | "code" | "columns" | "comment-ai-outline" | "comment-ai" | "comment-alt-outline" | "comment-alt" | "comment-lines-alt-outline" | "comment" | "compact-density" | "compact-indicator" | "comparison" | "competitor" | "compose" | "content-suggestions" | "credit-card" | "crop" | "crown" | "dashboard" | "deconstructed-negative-sentiment" | "deconstructed-neutral-sentiment" | "deconstructed-positive-sentiment" | "discovery" | "dislike-outline" | "dislike" | "dm-link-outline" | "dm-link" | "dotdotdot" | "download" | "drafts-outline" | "drafts" | "dropbox" | "duplicate-outline" | "duplicate" | "emoji-outline" | "emoji" | "empty-image" | "engagement-per-post" | "engagements" | "error" | "exchange-alt" | "expanded-indicator" | "export" | "extended-circles" | "external-link-alt" | "external-link" | "extreme-negative-sentiment" | "eye-outline" | "eye-slash-outline" | "eye-slash" | "eye" | "facebook-audience-network" | "facebook-branded-content-outline" | "facebook-branded-content" | "facebook-groups" | "facebook" | "fb-reactions-angry" | "fb-reactions-haha" | "fb-reactions-like" | "fb-reactions-love" | "fb-reactions-sad" | "fb-reactions-wow" | "feedly" | "feeds" | "female" | "file-chart-line" | "file-edit" | "file-times-solid" | "filter" | "flag-outline" | "flag" | "flat-negative-sentiment-outline" | "flat-negative-sentiment" | "flat-neutral-sentiment-outline" | "flat-neutral-sentiment" | "flat-positive-sentiment-outline" | "flat-positive-sentiment" | "folder-open" | "folder" | "follow-outline" | "follow" | "follower-increase" | "following" | "font" | "full-access" | "gear" | "gears" | "github" | "glassdoor" | "glasses" | "globe" | "google-analytics-color" | "google-business-messages" | "google-drive" | "google-my-business" | "grip" | "h1" | "h2" | "h3" | "h4" | "hamburger" | "hand-sparkle-outline" | "hand-sparkle" | "hashtag" | "headset" | "heart-outline" | "heart" | "heartbeat" | "help-alt" | "help" | "hiking" | "history" | "home" | "hourglass" | "hubspot" | "image-caption" | "image" | "images" | "impressions-per-post" | "impressions" | "inactive-listener" | "inbox-action" | "inbox-views" | "inbox" | "indicator" | "industry" | "info" | "instagram" | "internal-activity-outline" | "internal-activity" | "italic" | "key" | "keyboard" | "laptop-phone" | "large-density" | "lift" | "like-outline" | "like" | "link" | "linkedin-audience-network" | "linkedin" | "list-ol" | "listening" | "lists" | "location-outline" | "location" | "lock" | "magic-wand" | "male" | "marketo" | "mention" | "message-preview-outline" | "message-preview" | "message" | "messages-outline" | "messages" | "messenger" | "metric-table" | "microsoft-dynamics" | "minus" | "mobile" | "monitor" | "moon" | "negative-sentiment" | "neutral-positive-sentiment" | "neutral-sentiment" | "new-trend" | "newspaper" | "no-access" | "notepad" | "notifications-publishing-outline" | "notifications-publishing" | "notifications" | "offline" | "online" | "paid-promotion-outline" | "paid-promotion" | "paid" | "paint" | "palette" | "paperclip" | "pause" | "pencil-outline" | "pencil" | "person" | "phone" | "pinterest-boards-outline" | "pinterest-boards" | "pinterest" | "play-circle" | "play" | "plug" | "plus" | "positive-sentiment" | "power-up-outline" | "power-up" | "profile-connect" | "profile-disconnect" | "publishing-outline" | "publishing" | "puzzle-piece" | "qr-code" | "queue" | "recommendation" | "reddit-alien" | "reddit" | "reels-outline" | "reels" | "referrals" | "refresh" | "rejected" | "reply-outline" | "reply" | "reporting-period" | "reporting" | "reports-home" | "reports" | "retweet" | "route" | "rss" | "sales" | "salesforce-cloud" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "send-again-outline" | "send-again" | "sent-message-outline" | "sent-message" | "share" | "shopify" | "shopping-bag-outline" | "shopping-bag" | "show-navigation" | "slack" | "small-density" | "smiley" | "some-access" | "sparkles" | "spike-alert" | "star-half-alt-solid" | "star-of-life" | "star-outline" | "star" | "sticky-note-outline" | "sticky-note" | "stories" | "story" | "suggestions" | "sun" | "tag-outline" | "tag" | "targeting-outline" | "targeting" | "tasks-check" | "tasks-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "team-sprout-outline" | "team-sprout" | "team" | "text-asset" | "text" | "tiktok" | "times" | "tools" | "trash-can-outline" | "trash-can" | "trend-down" | "trend-neutral" | "trend-up" | "trends" | "triangle-black" | "triangle" | "tripadvisor-circle-outline" | "tripadvisor-circle" | "tripadvisor" | "trophy-outline" | "tumblr" | "twitter-audience-network" | "twitter" | "underline" | "unfollow-outline" | "unfollow" | "unlink" | "unlock" | "upload" | "user-circle" | "users" | "verified" | "video-camera-story" | "video-camera" | "vip" | "weight" | "whatsapp" | "window-maximize" | "window-minimize" | "window-regular" | "window-restore" | "woocommerce" | "x" | "yelp-full-star" | "yelp-half-star" | "yelp" | "youtube" | "zendesk";
@@ -5,6 +5,7 @@ import type { EnumIconNames } from "../EnumIconNames.flow";
5
5
  import type { TypeWithDisplayName } from "../types/shared.flow";
6
6
  import type { TypeTheme } from "../types/theme.flow";
7
7
  import deprecatedIcons from "./deprecatedIcons.flow";
8
+ import type { TypePartnerNames } from "../PartnerLogo/TypePartnerNames.flow";
8
9
  export type TypeIconSize = 'mini' // 12x12
9
10
  // TODO: deprecate default in favor of small in future release
10
11
  | 'default' // 16x16
@@ -13,7 +14,7 @@ export type TypeIconSize = 'mini' // 12x12
13
14
  | 'large' // 32x32
14
15
  | 'jumbo'; // 64x64
15
16
 
16
- export type TypeIconName = EnumIconNames | $Keys<typeof deprecatedIcons>;
17
+ export type TypeIconName = EnumIconNames | $Keys<typeof deprecatedIcons> | TypePartnerNames;
17
18
  export type TypeIconProps = {
18
19
  /** Name of the icon in the svg sprite */
19
20
  name: TypeIconName,
@@ -22,6 +23,7 @@ export type TypeIconProps = {
22
23
  fixedWidth?: boolean,
23
24
  /** Label used to describe the icon if not used with an accompanying visual label */
24
25
  ariaLabel?: string,
26
+ svgProps?: {...},
25
27
  ...
26
28
  };
27
29
  export type TypeToggleProps = {
@@ -174,6 +174,8 @@ module.exports = {
174
174
  "h3": "0 0 16 16",
175
175
  "h4": "0 0 16 16",
176
176
  "hamburger": "0 0 16 18",
177
+ "hand-sparkle-outline": "0 0 18 18",
178
+ "hand-sparkle": "0 0 18 18",
177
179
  "hashtag": "0 0 16 16",
178
180
  "headset": "0 0 16 16",
179
181
  "heart-outline": "0 0 16 16",
@@ -6,7 +6,7 @@ export type TypePartnerLogoProps = {
6
6
  partnerName: TypePartnerNames,
7
7
  /** Manually override the default mode behavior by rendering a logo based on the background it's displayed on. */
8
8
  backgroundType?: 'dark' | 'light',
9
- logoType?: 'wordmark' | 'lockup',
9
+ logoType?: 'symbol' | 'wordmark' | 'lockup',
10
10
  height?: string,
11
11
  width?: string,
12
12
  size?: 'mini' // 12x12
@@ -14,8 +14,8 @@ export type TypePartnerLogoProps = {
14
14
  | 'medium' // 24x24
15
15
  | 'large' // 32x32
16
16
  | 'jumbo',
17
-
18
- // 64x64
17
+ // 64x64
18
+ svgProps?: {...},
19
19
  ...
20
20
  };
21
21
  declare var PartnerLogo: React.StatelessFunctionalComponent<TypePartnerLogoProps>;
@@ -6,7 +6,7 @@ export type { EnumIllustrationNames } from "./EnumIllustrationNames.flow";
6
6
  export type { EnumLogoNames } from "./EnumLogoNames.flow";
7
7
 
8
8
  /* Theme and related types */
9
- export * from "./systemProps";
9
+ export * from "./systemProps/index.flow";
10
10
  export { default as theme } from "./themes/light/theme.flow";
11
11
  export { default as darkTheme } from "./themes/dark/theme.flow";
12
12
  export { sproutLightTheme, sproutDarkTheme } from "./themes/extendedThemes/sproutTheme/index.flow";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { background } from 'styled-system';
4
4
  import type { Property$BackgroundImage, Property$BackgroundPosition, Property$Background, Property$BackgroundRepeat, Property$BackgroundSize } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#background
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { border } from 'styled-system';
4
4
  import type { Property$BorderBottomColor, Property$BorderBottomLeftRadius, Property$BorderBottom, Property$BorderBottomRightRadius, Property$BorderBottomStyle, Property$BorderBottomWidth, Property$BorderColor, Property$BorderLeftColor, Property$BorderLeft, Property$BorderLeftStyle, Property$BorderLeftWidth, Property$Border, Property$BorderRadius, Property$BorderRightColor, Property$BorderRight, Property$BorderRightStyle, Property$BorderRightWidth, Property$BorderStyle, Property$BorderTopColor, Property$BorderTopLeftRadius, Property$BorderTop, Property$BorderTopRightRadius, Property$BorderTopStyle, Property$BorderTopWidth, Property$BorderWidth } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#border
8
8
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  import { color } from 'styled-system';
4
4
  import type { Property$BackgroundColor, Property$Color, Property$Opacity } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#color
8
8
 
9
- type TypeBackgroundColorSystemProp = TypeResponsiveBaseSystemProp<Property$BackgroundColor>;
9
+ export type TypeBackgroundColorSystemProp = TypeResponsiveBaseSystemProp<Property$BackgroundColor>;
10
10
  export type TypeColorSystemProps = $ReadOnly<{|
11
11
  backgroundColor?: TypeBackgroundColorSystemProp,
12
12
  bg?: TypeBackgroundColorSystemProp,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { compose, system } from 'styled-system';
4
4
  import type { Property$Cursor, Property$WhiteSpace } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/custom-props
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { flexbox } from 'styled-system';
4
4
  import type { Property$AlignItems, Property$AlignContent, Property$JustifyContent, Property$JustifyItems, Property$FlexWrap, Property$FlexDirection, Property$Flex, Property$FlexBasis, Property$JustifySelf, Property$AlignSelf, Property$Gap, Property$ColumnGap, Property$RowGap, Globals } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#flexbox
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { grid } from 'styled-system';
4
4
  import type { Property$GridArea, Property$GridAutoColumns, Property$GridAutoFlow, Property$GridAutoRows, Property$GridColumn, Property$GridColumnGap, Property$GridGap, Property$GridRow, Property$GridRowGap, Property$GridTemplateAreas, Property$GridTemplateColumns, Property$GridTemplateRows } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#grid-layout
8
8
 
@@ -0,0 +1,16 @@
1
+ // @flow strict-local
2
+
3
+ export * from "./types.flow";
4
+ export * from "./background.flow";
5
+ export * from "./border.flow";
6
+ export * from "./color.flow";
7
+ export * from "./custom.flow";
8
+ export * from "./flexbox.flow";
9
+ export * from "./grid.flow";
10
+ export * from "./layout.flow";
11
+ export * from "./position.flow";
12
+ export * from "./shadow.flow";
13
+ export * from "./space.flow";
14
+ export * from "./systemProps.flow";
15
+ export * from "./typography.flow";
16
+ export * from "./variant.flow";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { layout } from 'styled-system';
4
4
  import type { Property$Display, Property$Height, Property$MaxHeight, Property$MaxWidth, Property$MinHeight, Property$MinWidth, Property$Overflow, Property$OverflowX, Property$OverflowY, Property$VerticalAlign, Property$Width } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#layout
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { position } from 'styled-system';
4
4
  import type { Property$Bottom, Property$Left, Property$Position, Property$Right, Property$Top, Property$ZIndex } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#position
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { shadow } from 'styled-system';
4
4
  import type { Property$BoxShadow, Property$TextShadow } from 'csstype';
5
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
5
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
6
6
 
7
7
  // https://styled-system.com/table#shadow
8
8
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { space } from 'styled-system';
5
5
  import type { Property$Margin, Property$MarginBottom, Property$MarginLeft, Property$MarginRight, Property$MarginTop, Property$Padding, Property$PaddingBottom, Property$PaddingLeft, Property$PaddingRight, Property$PaddingTop } from 'csstype';
6
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
6
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
7
7
 
8
8
  // https://styled-system.com/table#space
9
9
  // prettier-ignore
@@ -1,18 +1,18 @@
1
1
  // @flow strict-local
2
2
  import { compose } from 'styled-system';
3
- import { backgroundSystemProps, type TypeBackgroundSystemProps } from "./background";
4
- import { borderSystemProps, type TypeBorderSystemProps } from "./border";
5
- import { colorSystemProps, type TypeColorSystemProps } from "./color";
6
- import { customSystemProps, type TypeCustomSystemProps } from "./custom";
7
- import { flexboxSystemProps, type TypeFlexboxSystemProps } from "./flexbox";
8
- import { gridSystemProps, type TypeGridSystemProps } from "./grid";
9
- import { layoutSystemProps, type TypeLayoutSystemProps } from "./layout";
10
- import { positionSystemProps, type TypePositionSystemProps } from "./position";
11
- import { shadowSystemProps, type TypeShadowSystemProps } from "./shadow";
12
- import { spaceSystemProps, type TypeSpaceSystemProps } from "./space";
13
- import { typographySystemProps, type TypeTypographySystemProps } from "./typography";
14
- import { variantSystemProps, type TypeVariantSystemProps } from "./variant";
15
- import type { StyledSystemStyleFn } from "./types.flow.js";
3
+ import { backgroundSystemProps, type TypeBackgroundSystemProps } from "./background.flow";
4
+ import { borderSystemProps, type TypeBorderSystemProps } from "./border.flow";
5
+ import { colorSystemProps, type TypeColorSystemProps } from "./color.flow";
6
+ import { customSystemProps, type TypeCustomSystemProps } from "./custom.flow";
7
+ import { flexboxSystemProps, type TypeFlexboxSystemProps } from "./flexbox.flow";
8
+ import { gridSystemProps, type TypeGridSystemProps } from "./grid.flow";
9
+ import { layoutSystemProps, type TypeLayoutSystemProps } from "./layout.flow";
10
+ import { positionSystemProps, type TypePositionSystemProps } from "./position.flow";
11
+ import { shadowSystemProps, type TypeShadowSystemProps } from "./shadow.flow";
12
+ import { spaceSystemProps, type TypeSpaceSystemProps } from "./space.flow";
13
+ import { typographySystemProps, type TypeTypographySystemProps } from "./typography.flow";
14
+ import { variantSystemProps, type TypeVariantSystemProps } from "./variant.flow";
15
+ import type { StyledSystemStyleFn } from "./types.flow";
16
16
  export type TypeSystemProps = $ReadOnly<{|
17
17
  ...TypeCustomSystemProps,
18
18
  ...TypeVariantSystemProps,
@@ -3,7 +3,7 @@
3
3
  import { typography } from 'styled-system';
4
4
  import type { Property$FontFamily, Property$FontSize, Property$FontStyle, Property$FontWeight, Property$LetterSpacing, Property$LineHeight, Property$TextAlign } from 'csstype';
5
5
  import typeof { fontWeights as TypeofFontWeights } from "../themes/light/theme.flow";
6
- import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow.js";
6
+ import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
7
7
 
8
8
  // https://styled-system.com/table#typography
9
9
 
@@ -1,7 +1,7 @@
1
1
  // @flow strict-local
2
2
  import { compose, variant } from 'styled-system';
3
3
  import type { TypeTypography } from "../types/theme.flow";
4
- import type { TypeResponsiveBaseSystemProp } from "./types.flow.js";
4
+ import type { TypeResponsiveBaseSystemProp } from "./types.flow";
5
5
 
6
6
  // https://styled-system.com/variants
7
7
 
@@ -1,5 +1,9 @@
1
1
  // @flow
2
-
2
+ import * as React from 'react';
3
3
  export type TypeWithDisplayName<T> = T & {|
4
4
  displayName: string
5
+ |};
6
+ export type TypePropsWithChildren<T> = {|
7
+ ...T,
8
+ children?: React.Node,
5
9
  |};
@@ -52,7 +52,8 @@ var Badge = function Badge(_ref) {
52
52
  }, iconName ? /*#__PURE__*/React.createElement(_Icon.default, {
53
53
  mr: 200,
54
54
  name: iconName,
55
- size: size === 'small' ? 'mini' : 'default'
55
+ size: size === 'small' ? 'mini' : 'default',
56
+ "aria-hidden": true
56
57
  }) : null, children || text));
57
58
  };
58
59
  var _default = Badge;
@@ -82,7 +82,8 @@ var Banner = function Banner(_ref) {
82
82
  onClick: onClose,
83
83
  ariaLabel: closeButtonLabel
84
84
  }, /*#__PURE__*/React.createElement(_Icon.default, {
85
- name: "x"
85
+ name: "x",
86
+ "aria-hidden": true
86
87
  })))));
87
88
  };
88
89
  var _default = Banner;
@@ -49,7 +49,8 @@ var Breadcrumb = function Breadcrumb(_ref2) {
49
49
  px: 200,
50
50
  py: 0
51
51
  }, /*#__PURE__*/React.createElement(_Icon.default, {
52
- name: "dotdotdot"
52
+ name: "dotdotdot",
53
+ "aria-hidden": true
53
54
  }))), listItems.map(function (item, i) {
54
55
  // @ts-notes - item is a childNode which can be a string or number but `cloneElement` requires props
55
56
  var itemElem = _typeof(item) === 'object' && 'props' in item ? item : /*#__PURE__*/React.createElement("span", null, "item");