@sproutsocial/racine 24.2.0 → 25.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 (509) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/codemods/__tests__/icon-library.test.js +5 -11
  3. package/commonjs/Avatar/Avatar.js +3 -2
  4. package/commonjs/Duration/Duration.js +3 -30
  5. package/commonjs/Duration/utils.js +36 -2
  6. package/dist/types/Avatar/Avatar.d.ts.map +1 -1
  7. package/dist/types/Duration/Duration.d.ts.map +1 -1
  8. package/dist/types/Duration/utils.d.ts +8 -0
  9. package/dist/types/Duration/utils.d.ts.map +1 -1
  10. package/lib/Avatar/Avatar.js +3 -2
  11. package/lib/Duration/Duration.js +2 -29
  12. package/lib/Duration/utils.js +36 -2
  13. package/package.json +2 -9
  14. package/__flow__/Avatar/Avatar.flow.js +0 -17
  15. package/__flow__/Avatar/constants.flow.js +0 -11
  16. package/__flow__/Avatar/index.flow.js +0 -3
  17. package/__flow__/Badge/Badge.flow.js +0 -21
  18. package/__flow__/Badge/constants.flow.js +0 -28
  19. package/__flow__/Badge/index.flow.js +0 -3
  20. package/__flow__/Banner/Banner.flow.js +0 -22
  21. package/__flow__/Banner/index.flow.js +0 -2
  22. package/__flow__/Box/Box.flow.js +0 -22
  23. package/__flow__/Box/index.flow.js +0 -2
  24. package/__flow__/Breadcrumb/Breadcrumb.flow.js +0 -22
  25. package/__flow__/Breadcrumb/index.flow.js +0 -2
  26. package/__flow__/Button/Button.flow.js +0 -36
  27. package/__flow__/Button/index.flow.js +0 -2
  28. package/__flow__/Card/Card.flow.js +0 -9
  29. package/__flow__/Card/CardTypes.flow.js +0 -73
  30. package/__flow__/Card/index.flow.js +0 -3
  31. package/__flow__/CharacterCounter/CharacterCounter.flow.js +0 -12
  32. package/__flow__/CharacterCounter/index.flow.js +0 -2
  33. package/__flow__/ChartLegend/ChartLegend.flow.js +0 -18
  34. package/__flow__/ChartLegend/index.flow.js +0 -2
  35. package/__flow__/Checkbox/Checkbox.flow.js +0 -24
  36. package/__flow__/Checkbox/index.flow.js +0 -2
  37. package/__flow__/Collapsible/Collapsible.flow.js +0 -19
  38. package/__flow__/Collapsible/index.flow.js +0 -2
  39. package/__flow__/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -19
  40. package/__flow__/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -11
  41. package/__flow__/DatePicker/DateRangePicker/index.flow.js +0 -3
  42. package/__flow__/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -17
  43. package/__flow__/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -9
  44. package/__flow__/DatePicker/SingleDatePicker/index.flow.js +0 -3
  45. package/__flow__/DatePicker/common.flow.js +0 -21
  46. package/__flow__/DatePicker/index.flow.js +0 -6
  47. package/__flow__/Drawer/Drawer.flow.js +0 -49
  48. package/__flow__/Drawer/index.flow.js +0 -2
  49. package/__flow__/EmptyState/EmptyState.flow.js +0 -17
  50. package/__flow__/EmptyState/index.flow.js +0 -2
  51. package/__flow__/Fieldset/Fieldset.flow.js +0 -16
  52. package/__flow__/Fieldset/index.flow.js +0 -2
  53. package/__flow__/FormField/FormField.flow.js +0 -32
  54. package/__flow__/FormField/index.flow.js +0 -2
  55. package/__flow__/Icon/Icon.flow.js +0 -50
  56. package/__flow__/Icon/index.flow.js +0 -4
  57. package/__flow__/Image/Image.flow.js +0 -25
  58. package/__flow__/Image/index.flow.js +0 -2
  59. package/__flow__/Indicator/Indicator.flow.js +0 -11
  60. package/__flow__/Indicator/index.flow.js +0 -2
  61. package/__flow__/Input/Input.flow.js +0 -65
  62. package/__flow__/Input/index.flow.js +0 -2
  63. package/__flow__/KeyboardKey/KeyboardKey.flow.js +0 -9
  64. package/__flow__/KeyboardKey/index.flow.js +0 -2
  65. package/__flow__/Label/Label.flow.js +0 -16
  66. package/__flow__/Label/index.flow.js +0 -2
  67. package/__flow__/Link/Link.flow.js +0 -20
  68. package/__flow__/Link/index.flow.js +0 -2
  69. package/__flow__/Listbox/Listbox.flow.js +0 -33
  70. package/__flow__/Listbox/index.flow.js +0 -2
  71. package/__flow__/Loader/Loader.flow.js +0 -14
  72. package/__flow__/Loader/index.flow.js +0 -2
  73. package/__flow__/LoaderButton/LoaderButton.flow.js +0 -11
  74. package/__flow__/LoaderButton/index.flow.js +0 -2
  75. package/__flow__/Menu/Menu.flow.js +0 -142
  76. package/__flow__/Menu/index.flow.js +0 -3
  77. package/__flow__/Menu/utils/constants.flow.js +0 -16
  78. package/__flow__/Message/Message.flow.js +0 -48
  79. package/__flow__/Message/index.flow.js +0 -2
  80. package/__flow__/Modal/Modal.flow.js +0 -59
  81. package/__flow__/Modal/index.flow.js +0 -2
  82. package/__flow__/Numeral/Numeral.flow.js +0 -23
  83. package/__flow__/Numeral/index.flow.js +0 -2
  84. package/__flow__/PartnerLogo/PartnerLogo.flow.js +0 -27
  85. package/__flow__/PartnerLogo/index.flow.js +0 -2
  86. package/__flow__/Popout/Popout.flow.js +0 -103
  87. package/__flow__/Popout/index.flow.js +0 -2
  88. package/__flow__/Portal/Portal.flow.js +0 -17
  89. package/__flow__/Portal/index.flow.js +0 -2
  90. package/__flow__/Radio/Radio.flow.js +0 -21
  91. package/__flow__/Radio/index.flow.js +0 -2
  92. package/__flow__/SegmentedControl/SegmentedControl.flow.js +0 -27
  93. package/__flow__/SegmentedControl/index.flow.js +0 -2
  94. package/__flow__/Select/Select.flow.js +0 -27
  95. package/__flow__/Select/index.flow.js +0 -2
  96. package/__flow__/Skeleton/Skeleton.flow.js +0 -6
  97. package/__flow__/Skeleton/index.flow.js +0 -2
  98. package/__flow__/SpotIllustration/SpotIllustration.flow.js +0 -12
  99. package/__flow__/SpotIllustration/index.flow.js +0 -2
  100. package/__flow__/Stack/Stack.flow.js +0 -26
  101. package/__flow__/Stack/index.flow.js +0 -2
  102. package/__flow__/Switch/Switch.flow.js +0 -5
  103. package/__flow__/Switch/SwitchTypes.flow.js +0 -16
  104. package/__flow__/Switch/index.flow.js +0 -3
  105. package/__flow__/Table/Table.flow.js +0 -48
  106. package/__flow__/Table/index.flow.js +0 -2
  107. package/__flow__/TableCell/TableCell.flow.js +0 -28
  108. package/__flow__/TableCell/index.flow.js +0 -2
  109. package/__flow__/TableHeaderCell/TableHeaderCell.flow.js +0 -30
  110. package/__flow__/TableHeaderCell/index.flow.js +0 -2
  111. package/__flow__/TableRowAccordion/TableRowAccordion.flow.js +0 -15
  112. package/__flow__/TableRowAccordion/index.flow.js +0 -2
  113. package/__flow__/Tabs/Tabs.flow.js +0 -26
  114. package/__flow__/Tabs/index.flow.js +0 -2
  115. package/__flow__/Text/Text.flow.js +0 -27
  116. package/__flow__/Text/index.flow.js +0 -2
  117. package/__flow__/Textarea/Textarea.flow.js +0 -59
  118. package/__flow__/Textarea/index.flow.js +0 -2
  119. package/__flow__/ThemeProvider/index.flow.js +0 -12
  120. package/__flow__/Toast/Toast.flow.js +0 -27
  121. package/__flow__/Toast/index.flow.js +0 -2
  122. package/__flow__/ToggleHint/ToggleHint.flow.js +0 -21
  123. package/__flow__/ToggleHint/index.flow.js +0 -2
  124. package/__flow__/Token/Token.flow.js +0 -17
  125. package/__flow__/Token/index.flow.js +0 -2
  126. package/__flow__/TokenInput/TokenInput.flow.js +0 -79
  127. package/__flow__/TokenInput/TokenScreenReaderStatus.js +0 -32
  128. package/__flow__/TokenInput/index.flow.js +0 -2
  129. package/__flow__/Tooltip/Tooltip.flow.js +0 -24
  130. package/__flow__/Tooltip/index.flow.js +0 -2
  131. package/__flow__/VisuallyHidden/VisuallyHidden.flow.js +0 -3
  132. package/__flow__/VisuallyHidden/index.flow.js +0 -2
  133. package/__flow__/index.flow.js +0 -136
  134. package/__flow__/index.js +0 -2
  135. package/__flow__/systemProps/background.flow.js +0 -17
  136. package/__flow__/systemProps/border.flow.js +0 -46
  137. package/__flow__/systemProps/color.flow.js +0 -16
  138. package/__flow__/systemProps/custom.flow.js +0 -16
  139. package/__flow__/systemProps/flexbox.flow.js +0 -28
  140. package/__flow__/systemProps/grid.flow.js +0 -26
  141. package/__flow__/systemProps/index.flow.js +0 -16
  142. package/__flow__/systemProps/layout.flow.js +0 -25
  143. package/__flow__/systemProps/position.flow.js +0 -17
  144. package/__flow__/systemProps/shadow.flow.js +0 -13
  145. package/__flow__/systemProps/space.flow.js +0 -71
  146. package/__flow__/systemProps/systemProps.flow.js +0 -30
  147. package/__flow__/systemProps/tests/types.flow.js +0 -51
  148. package/__flow__/systemProps/types.flow.js +0 -12
  149. package/__flow__/systemProps/typography.flow.js +0 -21
  150. package/__flow__/systemProps/variant.flow.js +0 -14
  151. package/__flow__/themes/dark/dataviz-palette.flow.js +0 -3
  152. package/__flow__/themes/dark/decorative-palettes.flow.js +0 -13
  153. package/__flow__/themes/dark/theme.flow.js +0 -5
  154. package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -10
  155. package/__flow__/themes/extendedThemes/sproutTheme/index.flow.js +0 -3
  156. package/__flow__/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -10
  157. package/__flow__/themes/light/dataviz-palette.flow.js +0 -29
  158. package/__flow__/themes/light/decorative-palettes.flow.js +0 -17
  159. package/__flow__/themes/light/literal-colors.flow.js +0 -31
  160. package/__flow__/themes/light/theme.flow.js +0 -16
  161. package/__flow__/types/index.flow.js +0 -7
  162. package/__flow__/types/shared.flow.js +0 -9
  163. package/__flow__/types/styled-components.flow.js +0 -8
  164. package/__flow__/types/system-props.flow.js +0 -136
  165. package/__flow__/types/theme.colors.flow.js +0 -364
  166. package/__flow__/types/theme.flow.js +0 -373
  167. package/__flow__/utils/a11yTest.flow.js +0 -5
  168. package/__flow__/utils/chartColors.flow.js +0 -11
  169. package/__flow__/utils/constants.flow.js +0 -3
  170. package/__flow__/utils/dataQaLabelQueries.flow.js +0 -20
  171. package/__flow__/utils/hooks.flow.js +0 -66
  172. package/__flow__/utils/index.flow.js +0 -11
  173. package/__flow__/utils/innerText.flow.js +0 -4
  174. package/__flow__/utils/mixins.flow.js +0 -7
  175. package/__flow__/utils/react-testing-library.flow.js +0 -14
  176. package/__flow__/utils/responsiveProps/index.flow.js +0 -3
  177. package/__flow__/utils/responsiveProps/index.test.flow.js +0 -22
  178. package/__flow__/utils/system-props.flow.js +0 -9
  179. package/__flow__/utils/useInteractiveColor.flow.js +0 -3
  180. package/commonjs/Avatar/Avatar.flow.js +0 -6
  181. package/commonjs/Avatar/constants.flow.js +0 -16
  182. package/commonjs/Avatar/index.flow.js +0 -27
  183. package/commonjs/Badge/Badge.flow.js +0 -7
  184. package/commonjs/Badge/constants.flow.js +0 -19
  185. package/commonjs/Badge/index.flow.js +0 -27
  186. package/commonjs/Banner/Banner.flow.js +0 -6
  187. package/commonjs/Banner/index.flow.js +0 -16
  188. package/commonjs/Box/Box.flow.js +0 -6
  189. package/commonjs/Box/index.flow.js +0 -16
  190. package/commonjs/Breadcrumb/Breadcrumb.flow.js +0 -6
  191. package/commonjs/Breadcrumb/index.flow.js +0 -16
  192. package/commonjs/Button/Button.flow.js +0 -6
  193. package/commonjs/Button/index.flow.js +0 -16
  194. package/commonjs/Card/Card.flow.js +0 -6
  195. package/commonjs/Card/CardTypes.flow.js +0 -6
  196. package/commonjs/Card/index.flow.js +0 -27
  197. package/commonjs/CharacterCounter/CharacterCounter.flow.js +0 -6
  198. package/commonjs/CharacterCounter/index.flow.js +0 -16
  199. package/commonjs/ChartLegend/ChartLegend.flow.js +0 -6
  200. package/commonjs/ChartLegend/index.flow.js +0 -16
  201. package/commonjs/Checkbox/Checkbox.flow.js +0 -6
  202. package/commonjs/Checkbox/index.flow.js +0 -16
  203. package/commonjs/Collapsible/Collapsible.flow.js +0 -6
  204. package/commonjs/Collapsible/index.flow.js +0 -16
  205. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -6
  206. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -6
  207. package/commonjs/DatePicker/DateRangePicker/index.flow.js +0 -27
  208. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -6
  209. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -6
  210. package/commonjs/DatePicker/SingleDatePicker/index.flow.js +0 -27
  211. package/commonjs/DatePicker/common.flow.js +0 -1
  212. package/commonjs/DatePicker/index.flow.js +0 -60
  213. package/commonjs/Drawer/Drawer.flow.js +0 -6
  214. package/commonjs/Drawer/index.flow.js +0 -16
  215. package/commonjs/EmptyState/EmptyState.flow.js +0 -6
  216. package/commonjs/EmptyState/index.flow.js +0 -16
  217. package/commonjs/Fieldset/Fieldset.flow.js +0 -6
  218. package/commonjs/Fieldset/index.flow.js +0 -16
  219. package/commonjs/FormField/FormField.flow.js +0 -6
  220. package/commonjs/FormField/index.flow.js +0 -16
  221. package/commonjs/Icon/Icon.flow.js +0 -6
  222. package/commonjs/Icon/index.flow.js +0 -29
  223. package/commonjs/Image/Image.flow.js +0 -6
  224. package/commonjs/Image/index.flow.js +0 -16
  225. package/commonjs/Indicator/Indicator.flow.js +0 -6
  226. package/commonjs/Indicator/index.flow.js +0 -16
  227. package/commonjs/Input/Input.flow.js +0 -6
  228. package/commonjs/Input/index.flow.js +0 -16
  229. package/commonjs/KeyboardKey/KeyboardKey.flow.js +0 -6
  230. package/commonjs/KeyboardKey/index.flow.js +0 -16
  231. package/commonjs/Label/Label.flow.js +0 -8
  232. package/commonjs/Label/index.flow.js +0 -16
  233. package/commonjs/Link/Link.flow.js +0 -6
  234. package/commonjs/Link/index.flow.js +0 -16
  235. package/commonjs/Listbox/Listbox.flow.js +0 -10
  236. package/commonjs/Listbox/index.flow.js +0 -16
  237. package/commonjs/Loader/Loader.flow.js +0 -6
  238. package/commonjs/Loader/index.flow.js +0 -16
  239. package/commonjs/LoaderButton/LoaderButton.flow.js +0 -6
  240. package/commonjs/LoaderButton/index.flow.js +0 -16
  241. package/commonjs/Menu/Menu.flow.js +0 -11
  242. package/commonjs/Menu/index.flow.js +0 -27
  243. package/commonjs/Menu/utils/constants.flow.js +0 -18
  244. package/commonjs/Message/Message.flow.js +0 -20
  245. package/commonjs/Message/index.flow.js +0 -16
  246. package/commonjs/Modal/Modal.flow.js +0 -8
  247. package/commonjs/Modal/index.flow.js +0 -16
  248. package/commonjs/Numeral/Numeral.flow.js +0 -6
  249. package/commonjs/Numeral/index.flow.js +0 -16
  250. package/commonjs/PartnerLogo/PartnerLogo.flow.js +0 -6
  251. package/commonjs/PartnerLogo/index.flow.js +0 -16
  252. package/commonjs/Popout/Popout.flow.js +0 -6
  253. package/commonjs/Popout/index.flow.js +0 -16
  254. package/commonjs/Portal/Portal.flow.js +0 -6
  255. package/commonjs/Portal/index.flow.js +0 -16
  256. package/commonjs/Radio/Radio.flow.js +0 -6
  257. package/commonjs/Radio/index.flow.js +0 -16
  258. package/commonjs/SegmentedControl/SegmentedControl.flow.js +0 -6
  259. package/commonjs/SegmentedControl/index.flow.js +0 -16
  260. package/commonjs/Select/Select.flow.js +0 -6
  261. package/commonjs/Select/index.flow.js +0 -16
  262. package/commonjs/Skeleton/Skeleton.flow.js +0 -4
  263. package/commonjs/Skeleton/index.flow.js +0 -16
  264. package/commonjs/SpotIllustration/SpotIllustration.flow.js +0 -6
  265. package/commonjs/SpotIllustration/index.flow.js +0 -16
  266. package/commonjs/Stack/Stack.flow.js +0 -6
  267. package/commonjs/Stack/index.flow.js +0 -16
  268. package/commonjs/Switch/Switch.flow.js +0 -6
  269. package/commonjs/Switch/SwitchTypes.flow.js +0 -1
  270. package/commonjs/Switch/index.flow.js +0 -27
  271. package/commonjs/Table/Table.flow.js +0 -9
  272. package/commonjs/Table/index.flow.js +0 -16
  273. package/commonjs/TableCell/TableCell.flow.js +0 -6
  274. package/commonjs/TableCell/index.flow.js +0 -16
  275. package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +0 -14
  276. package/commonjs/TableHeaderCell/index.flow.js +0 -16
  277. package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +0 -6
  278. package/commonjs/TableRowAccordion/index.flow.js +0 -16
  279. package/commonjs/Tabs/Tabs.flow.js +0 -6
  280. package/commonjs/Tabs/index.flow.js +0 -16
  281. package/commonjs/Text/Text.flow.js +0 -6
  282. package/commonjs/Text/index.flow.js +0 -16
  283. package/commonjs/Textarea/Textarea.flow.js +0 -6
  284. package/commonjs/Textarea/index.flow.js +0 -16
  285. package/commonjs/ThemeProvider/index.flow.js +0 -6
  286. package/commonjs/Toast/Toast.flow.js +0 -6
  287. package/commonjs/Toast/index.flow.js +0 -16
  288. package/commonjs/ToggleHint/ToggleHint.flow.js +0 -6
  289. package/commonjs/ToggleHint/index.flow.js +0 -16
  290. package/commonjs/Token/Token.flow.js +0 -6
  291. package/commonjs/Token/index.flow.js +0 -16
  292. package/commonjs/TokenInput/TokenInput.flow.js +0 -6
  293. package/commonjs/TokenInput/index.flow.js +0 -16
  294. package/commonjs/Tooltip/Tooltip.flow.js +0 -6
  295. package/commonjs/Tooltip/index.flow.js +0 -16
  296. package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +0 -6
  297. package/commonjs/VisuallyHidden/index.flow.js +0 -16
  298. package/commonjs/index.flow.js +0 -594
  299. package/commonjs/index.js.flow +0 -2
  300. package/commonjs/systemProps/background.flow.js +0 -9
  301. package/commonjs/systemProps/border.flow.js +0 -9
  302. package/commonjs/systemProps/color.flow.js +0 -9
  303. package/commonjs/systemProps/custom.flow.js +0 -12
  304. package/commonjs/systemProps/flexbox.flow.js +0 -9
  305. package/commonjs/systemProps/grid.flow.js +0 -9
  306. package/commonjs/systemProps/index.flow.js +0 -159
  307. package/commonjs/systemProps/layout.flow.js +0 -9
  308. package/commonjs/systemProps/position.flow.js +0 -9
  309. package/commonjs/systemProps/shadow.flow.js +0 -9
  310. package/commonjs/systemProps/space.flow.js +0 -23
  311. package/commonjs/systemProps/systemProps.flow.js +0 -20
  312. package/commonjs/systemProps/tests/types.flow.js +0 -48
  313. package/commonjs/systemProps/types.flow.js +0 -1
  314. package/commonjs/systemProps/typography.flow.js +0 -9
  315. package/commonjs/systemProps/variant.flow.js +0 -12
  316. package/commonjs/themes/dark/dataviz-palette.flow.js +0 -1
  317. package/commonjs/themes/dark/decorative-palettes.flow.js +0 -1
  318. package/commonjs/themes/dark/theme.flow.js +0 -1
  319. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -7
  320. package/commonjs/themes/extendedThemes/sproutTheme/index.flow.js +0 -20
  321. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -1
  322. package/commonjs/themes/light/dataviz-palette.flow.js +0 -1
  323. package/commonjs/themes/light/decorative-palettes.flow.js +0 -1
  324. package/commonjs/themes/light/literal-colors.flow.js +0 -1
  325. package/commonjs/themes/light/theme.flow.js +0 -1
  326. package/commonjs/types/index.flow.js +0 -60
  327. package/commonjs/types/shared.flow.js +0 -6
  328. package/commonjs/types/styled-components.flow.js +0 -6
  329. package/commonjs/types/system-props.flow.js +0 -2
  330. package/commonjs/types/theme.colors.flow.js +0 -1
  331. package/commonjs/types/theme.flow.js +0 -1
  332. package/commonjs/utils/a11yTest.flow.js +0 -1
  333. package/commonjs/utils/chartColors.flow.js +0 -1
  334. package/commonjs/utils/constants.flow.js +0 -1
  335. package/commonjs/utils/dataQaLabelQueries.flow.js +0 -1
  336. package/commonjs/utils/hooks.flow.js +0 -28
  337. package/commonjs/utils/index.flow.js +0 -1
  338. package/commonjs/utils/innerText.flow.js +0 -6
  339. package/commonjs/utils/mixins.flow.js +0 -1
  340. package/commonjs/utils/react-testing-library.flow.js +0 -9
  341. package/commonjs/utils/responsiveProps/index.flow.js +0 -1
  342. package/commonjs/utils/responsiveProps/index.test.flow.js +0 -23
  343. package/commonjs/utils/system-props.flow.js +0 -1
  344. package/commonjs/utils/useInteractiveColor.flow.js +0 -1
  345. package/lib/Avatar/Avatar.flow.js +0 -1
  346. package/lib/Avatar/constants.flow.js +0 -10
  347. package/lib/Avatar/index.flow.js +0 -2
  348. package/lib/Badge/Badge.flow.js +0 -2
  349. package/lib/Badge/constants.flow.js +0 -13
  350. package/lib/Badge/index.flow.js +0 -2
  351. package/lib/Banner/Banner.flow.js +0 -1
  352. package/lib/Banner/index.flow.js +0 -1
  353. package/lib/Box/Box.flow.js +0 -1
  354. package/lib/Box/index.flow.js +0 -1
  355. package/lib/Breadcrumb/Breadcrumb.flow.js +0 -1
  356. package/lib/Breadcrumb/index.flow.js +0 -1
  357. package/lib/Button/Button.flow.js +0 -1
  358. package/lib/Button/index.flow.js +0 -1
  359. package/lib/Card/Card.flow.js +0 -1
  360. package/lib/Card/CardTypes.flow.js +0 -1
  361. package/lib/Card/index.flow.js +0 -2
  362. package/lib/CharacterCounter/CharacterCounter.flow.js +0 -1
  363. package/lib/CharacterCounter/index.flow.js +0 -1
  364. package/lib/ChartLegend/ChartLegend.flow.js +0 -1
  365. package/lib/ChartLegend/index.flow.js +0 -1
  366. package/lib/Checkbox/Checkbox.flow.js +0 -1
  367. package/lib/Checkbox/index.flow.js +0 -1
  368. package/lib/Collapsible/Collapsible.flow.js +0 -1
  369. package/lib/Collapsible/index.flow.js +0 -1
  370. package/lib/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -1
  371. package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -1
  372. package/lib/DatePicker/DateRangePicker/index.flow.js +0 -2
  373. package/lib/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -1
  374. package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -1
  375. package/lib/DatePicker/SingleDatePicker/index.flow.js +0 -2
  376. package/lib/DatePicker/common.flow.js +0 -0
  377. package/lib/DatePicker/index.flow.js +0 -5
  378. package/lib/Drawer/Drawer.flow.js +0 -1
  379. package/lib/Drawer/index.flow.js +0 -1
  380. package/lib/EmptyState/EmptyState.flow.js +0 -1
  381. package/lib/EmptyState/index.flow.js +0 -1
  382. package/lib/Fieldset/Fieldset.flow.js +0 -1
  383. package/lib/Fieldset/index.flow.js +0 -1
  384. package/lib/FormField/FormField.flow.js +0 -1
  385. package/lib/FormField/index.flow.js +0 -1
  386. package/lib/Icon/Icon.flow.js +0 -3
  387. package/lib/Icon/index.flow.js +0 -3
  388. package/lib/Image/Image.flow.js +0 -2
  389. package/lib/Image/index.flow.js +0 -1
  390. package/lib/Indicator/Indicator.flow.js +0 -1
  391. package/lib/Indicator/index.flow.js +0 -1
  392. package/lib/Input/Input.flow.js +0 -1
  393. package/lib/Input/index.flow.js +0 -1
  394. package/lib/KeyboardKey/KeyboardKey.flow.js +0 -1
  395. package/lib/KeyboardKey/index.flow.js +0 -1
  396. package/lib/Label/Label.flow.js +0 -2
  397. package/lib/Label/index.flow.js +0 -1
  398. package/lib/Link/Link.flow.js +0 -1
  399. package/lib/Link/index.flow.js +0 -1
  400. package/lib/Listbox/Listbox.flow.js +0 -4
  401. package/lib/Listbox/index.flow.js +0 -1
  402. package/lib/Loader/Loader.flow.js +0 -1
  403. package/lib/Loader/index.flow.js +0 -1
  404. package/lib/LoaderButton/LoaderButton.flow.js +0 -1
  405. package/lib/LoaderButton/index.flow.js +0 -1
  406. package/lib/Menu/Menu.flow.js +0 -5
  407. package/lib/Menu/index.flow.js +0 -2
  408. package/lib/Menu/utils/constants.flow.js +0 -12
  409. package/lib/Message/Message.flow.js +0 -11
  410. package/lib/Message/index.flow.js +0 -1
  411. package/lib/Modal/Modal.flow.js +0 -2
  412. package/lib/Modal/index.flow.js +0 -1
  413. package/lib/Numeral/Numeral.flow.js +0 -1
  414. package/lib/Numeral/index.flow.js +0 -1
  415. package/lib/PartnerLogo/PartnerLogo.flow.js +0 -5
  416. package/lib/PartnerLogo/index.flow.js +0 -1
  417. package/lib/Popout/Popout.flow.js +0 -3
  418. package/lib/Popout/index.flow.js +0 -1
  419. package/lib/Portal/Portal.flow.js +0 -1
  420. package/lib/Portal/index.flow.js +0 -1
  421. package/lib/Radio/Radio.flow.js +0 -1
  422. package/lib/Radio/index.flow.js +0 -1
  423. package/lib/SegmentedControl/SegmentedControl.flow.js +0 -1
  424. package/lib/SegmentedControl/index.flow.js +0 -1
  425. package/lib/Select/Select.flow.js +0 -1
  426. package/lib/Select/index.flow.js +0 -1
  427. package/lib/Skeleton/Skeleton.flow.js +0 -1
  428. package/lib/Skeleton/index.flow.js +0 -1
  429. package/lib/SpotIllustration/SpotIllustration.flow.js +0 -1
  430. package/lib/SpotIllustration/index.flow.js +0 -1
  431. package/lib/Stack/Stack.flow.js +0 -1
  432. package/lib/Stack/index.flow.js +0 -1
  433. package/lib/Switch/Switch.flow.js +0 -1
  434. package/lib/Switch/SwitchTypes.flow.js +0 -0
  435. package/lib/Switch/index.flow.js +0 -2
  436. package/lib/Table/Table.flow.js +0 -3
  437. package/lib/Table/index.flow.js +0 -1
  438. package/lib/TableCell/TableCell.flow.js +0 -5
  439. package/lib/TableCell/index.flow.js +0 -1
  440. package/lib/TableHeaderCell/TableHeaderCell.flow.js +0 -5
  441. package/lib/TableHeaderCell/index.flow.js +0 -1
  442. package/lib/TableRowAccordion/TableRowAccordion.flow.js +0 -1
  443. package/lib/TableRowAccordion/index.flow.js +0 -1
  444. package/lib/Tabs/Tabs.flow.js +0 -1
  445. package/lib/Tabs/index.flow.js +0 -1
  446. package/lib/Text/Text.flow.js +0 -1
  447. package/lib/Text/index.flow.js +0 -1
  448. package/lib/Textarea/Textarea.flow.js +0 -1
  449. package/lib/Textarea/index.flow.js +0 -1
  450. package/lib/ThemeProvider/index.flow.js +0 -3
  451. package/lib/Toast/Toast.flow.js +0 -1
  452. package/lib/Toast/index.flow.js +0 -1
  453. package/lib/ToggleHint/ToggleHint.flow.js +0 -1
  454. package/lib/ToggleHint/index.flow.js +0 -1
  455. package/lib/Token/Token.flow.js +0 -1
  456. package/lib/Token/index.flow.js +0 -1
  457. package/lib/TokenInput/TokenInput.flow.js +0 -1
  458. package/lib/TokenInput/index.flow.js +0 -1
  459. package/lib/Tooltip/Tooltip.flow.js +0 -1
  460. package/lib/Tooltip/index.flow.js +0 -1
  461. package/lib/VisuallyHidden/VisuallyHidden.flow.js +0 -1
  462. package/lib/VisuallyHidden/index.flow.js +0 -1
  463. package/lib/index.flow.js +0 -79
  464. package/lib/index.js.flow +0 -2
  465. package/lib/systemProps/background.flow.js +0 -5
  466. package/lib/systemProps/border.flow.js +0 -5
  467. package/lib/systemProps/color.flow.js +0 -5
  468. package/lib/systemProps/custom.flow.js +0 -8
  469. package/lib/systemProps/flexbox.flow.js +0 -5
  470. package/lib/systemProps/grid.flow.js +0 -5
  471. package/lib/systemProps/index.flow.js +0 -14
  472. package/lib/systemProps/layout.flow.js +0 -5
  473. package/lib/systemProps/position.flow.js +0 -5
  474. package/lib/systemProps/shadow.flow.js +0 -5
  475. package/lib/systemProps/space.flow.js +0 -32
  476. package/lib/systemProps/systemProps.flow.js +0 -14
  477. package/lib/systemProps/tests/types.flow.js +0 -46
  478. package/lib/systemProps/types.flow.js +0 -0
  479. package/lib/systemProps/typography.flow.js +0 -5
  480. package/lib/systemProps/variant.flow.js +0 -8
  481. package/lib/themes/dark/dataviz-palette.flow.js +0 -0
  482. package/lib/themes/dark/decorative-palettes.flow.js +0 -0
  483. package/lib/themes/dark/theme.flow.js +0 -0
  484. package/lib/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -1
  485. package/lib/themes/extendedThemes/sproutTheme/index.flow.js +0 -2
  486. package/lib/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -0
  487. package/lib/themes/light/dataviz-palette.flow.js +0 -0
  488. package/lib/themes/light/decorative-palettes.flow.js +0 -0
  489. package/lib/themes/light/literal-colors.flow.js +0 -0
  490. package/lib/themes/light/theme.flow.js +0 -0
  491. package/lib/types/index.flow.js +0 -5
  492. package/lib/types/shared.flow.js +0 -1
  493. package/lib/types/styled-components.flow.js +0 -1
  494. package/lib/types/system-props.flow.js +0 -1
  495. package/lib/types/theme.colors.flow.js +0 -0
  496. package/lib/types/theme.flow.js +0 -0
  497. package/lib/utils/a11yTest.flow.js +0 -0
  498. package/lib/utils/chartColors.flow.js +0 -0
  499. package/lib/utils/constants.flow.js +0 -0
  500. package/lib/utils/dataQaLabelQueries.flow.js +0 -0
  501. package/lib/utils/hooks.flow.js +0 -27
  502. package/lib/utils/index.flow.js +0 -0
  503. package/lib/utils/innerText.flow.js +0 -1
  504. package/lib/utils/mixins.flow.js +0 -0
  505. package/lib/utils/react-testing-library.flow.js +0 -3
  506. package/lib/utils/responsiveProps/index.flow.js +0 -0
  507. package/lib/utils/responsiveProps/index.test.flow.js +0 -21
  508. package/lib/utils/system-props.flow.js +0 -0
  509. package/lib/utils/useInteractiveColor.flow.js +0 -0
@@ -1,36 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import { type StyledComponent } from "styled-components";
4
- import type { TypeTheme } from "../types/theme.flow";
5
- import type { TypeSystemCommonProps, TypeSystemLayoutProps, TypeSystemFlexboxProps, TypeSystemGridProps } from "../types/system-props.flow";
6
- export type TypeButtonProps = {
7
- ...TypeSystemCommonProps,
8
- ...TypeSystemLayoutProps,
9
- ...TypeSystemFlexboxProps,
10
- ...TypeSystemGridProps,
11
- /** If the button is being used as an anchor, this prop will cause the link to open in a new tab. */
12
- external?: boolean,
13
- size?: "large" | "default",
14
- /** What the button looks like. "default" is deprecated in favor of "unstyled" */
15
- appearance?: "primary" | "secondary" | "pill" | "destructive" | "unstyled" | "placeholder",
16
- /** Set the button to display in its active state */
17
- active?: boolean,
18
- /** Disables user action and applies a disabled style on the button */
19
- disabled?: boolean,
20
- children: React.Node,
21
- /** Setting this prop will cause the component to be rendered as an anchor element instead of a button element */
22
- href?: string,
23
- /** Used to get a reference to the underlying button */
24
- innerRef?: React.Ref<"button">,
25
- /** Action to perform when the button is clicked */
26
- onClick?: (e: SyntheticEvent<HTMLButtonElement>) => any,
27
- title?: string,
28
- qa?: Object,
29
- as?: any,
30
- /** Label used to describe the button if the button does not have text within it */
31
- ariaLabel?: string,
32
- ...
33
- };
34
- declare export var Container: StyledComponent<any, TypeTheme, *>;
35
- declare var Button: React.StatelessFunctionalComponent<TypeButtonProps>;
36
- declare export default typeof Button;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Button.flow";
@@ -1,9 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeCardProps, TypeCardLink, TypeCardArea } from "./CardTypes.flow";
4
- declare var Card: React.StatelessFunctionalComponent<TypeCardProps>;
5
- declare export var CardLink: React.StatelessFunctionalComponent<TypeCardLink>;
6
- declare export var CardHeader: React.StatelessFunctionalComponent<TypeCardArea>;
7
- declare export var CardContent: React.StatelessFunctionalComponent<TypeCardArea>;
8
- declare export var CardFooter: React.StatelessFunctionalComponent<TypeCardArea>;
9
- declare export default typeof Card;
@@ -1,73 +0,0 @@
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, TypeTypographySystemProps } 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
- };
67
- export type TypeCardLink = {
68
- ...TypeColorSystemProps,
69
- ...TypeTypographySystemProps,
70
- affordance?: boolean,
71
- external?: boolean,
72
- ...
73
- };
@@ -1,3 +0,0 @@
1
- // @flow
2
- export * from "./Card.flow";
3
- export * from "./CardTypes.flow";
@@ -1,12 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- export type TypeCharacterCounterProps = {
4
- /** Current value of relative input/textarea */
5
- currentValue: number,
6
- /** Max amount of characters for input/textarea */
7
- maxValue: number,
8
- size?: "default" | "mini",
9
- ...
10
- };
11
- declare var CharacterCounter: React.ComponentType<TypeCharacterCounterProps>;
12
- declare export default typeof CharacterCounter;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./CharacterCounter.flow";
@@ -1,18 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- export type TypeChartLegendTheme = "compare" | "contrast" | "extended";
4
- export type TypeChartLegendProps = {
5
- /** Inline or stacked y plots */
6
- stacked?: boolean,
7
- theme?: TypeChartLegendTheme,
8
- /** Array of names with optional color to display. If no color is specified, index of label will be used to determine color based on the theme. */
9
- legendLabels: {
10
- name: string,
11
- color?: string,
12
- ...
13
- }[],
14
- qa?: Object,
15
- ...
16
- };
17
- declare var ChartLegend: React.StatelessFunctionalComponent<TypeChartLegendProps>;
18
- declare export default typeof ChartLegend;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./ChartLegend.flow";
@@ -1,24 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- export type TypeCheckboxProps = {
4
- /** ID of the form element, should match the "for" value of the associated label */
5
- id: string,
6
- value?: string,
7
- name?: string,
8
- /** Label text to display next to the checkbox */
9
- label?: string,
10
- /** Label used to describe the input (if not used with an accompanying visual label) */
11
- ariaLabel?: string,
12
- labelProps?: Object,
13
- checked?: boolean,
14
- indeterminate?: boolean,
15
- disabled?: boolean,
16
- onChange: (event: SyntheticEvent<HTMLInputElement>) => void,
17
- appearance?: "pill" | "default",
18
- qa?: Object,
19
- tabIndex?: string | number,
20
- inputProps?: Object,
21
- ...
22
- };
23
- declare var Checkbox: React.StatelessFunctionalComponent<TypeCheckboxProps>;
24
- declare export default typeof Checkbox;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Checkbox.flow";
@@ -1,19 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeWithDisplayName } from "../types/shared.flow";
4
- export type TypeCollapsibleProps = {
5
- isOpen: boolean,
6
- children: React.Node,
7
- /** If the children of the collapsible panel have a top or bottom margin, it will throw off the calculations for the height of the content. The total amount of vertical margin (in pixels) can be supplied to this prop to correct this. */
8
- offset?: number,
9
- collapsedHeight?: number,
10
- openHeight?: number,
11
- ...
12
- };
13
- declare var Trigger: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>;
14
- declare var Panel: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>;
15
- declare class Collapsible extends React.Component<TypeCollapsibleProps> {
16
- static Trigger: typeof Trigger,
17
- static Panel: typeof Panel,
18
- }
19
- declare export default typeof Collapsible;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Collapsible.flow";
@@ -1,19 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import { type TypeCommonDatePickerProps } from "../common.flow";
4
- export type EnumFocusedInput = null | "startDate" | "endDate";
5
- export type TypeDateRangePickerProps = {
6
- startDate: ?moment$Moment,
7
- endDate: ?moment$Moment,
8
- onDatesChange: ({|
9
- startDate: moment$Moment,
10
- endDate: moment$Moment,
11
- |}) => void,
12
- focusedInput: EnumFocusedInput,
13
- onFocusChange: (EnumFocusedInput) => void,
14
- setStatusText?: (moment$Moment[]) => string,
15
- ...TypeCommonDatePickerProps,
16
- ...
17
- };
18
- declare var DateRangePicker: React.StatelessFunctionalComponent<TypeDateRangePickerProps>;
19
- declare export default typeof DateRangePicker;
@@ -1,11 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeDateRangePickerProps } from "./DateRangePicker.flow";
4
- export type TypeStatefulDateRangePickerProps = {
5
- ...TypeDateRangePickerProps,
6
- onDatesChange?: $PropertyType<TypeDateRangePickerProps, "onDatesChange">,
7
- focusedInput?: $PropertyType<TypeDateRangePickerProps, "focusedInput">,
8
- onFocusChange?: $PropertyType<TypeDateRangePickerProps, "onFocusChange">,
9
- ...
10
- };
11
- declare export var StatefulDateRangePicker: React.StatelessFunctionalComponent<TypeStatefulDateRangePickerProps>;
@@ -1,3 +0,0 @@
1
- // @flow
2
- export * from "./DateRangePicker.flow";
3
- export * from "./StatefulDateRangePicker.flow";
@@ -1,17 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import { type TypeCommonDatePickerProps } from "../common.flow";
4
- export type TypeSingleDatePickerProps = {
5
- date: ?moment$Moment,
6
- onDateChange: (date: moment$Moment) => void,
7
- setStatusText?: (date: moment$Moment) => string,
8
- focused?: boolean,
9
- onFocusChange?: ({
10
- focused: boolean,
11
- ...
12
- }) => void,
13
- ...TypeCommonDatePickerProps,
14
- ...
15
- };
16
- declare var SingleDatePicker: React.StatelessFunctionalComponent<TypeSingleDatePickerProps>;
17
- declare export default typeof SingleDatePicker;
@@ -1,9 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeSingleDatePickerProps } from "./SingleDatePicker.flow";
4
- export type TypeStatefulSingleDatePickerProps = {
5
- ...TypeSingleDatePickerProps,
6
- onDateChange?: (date: moment$Moment) => void,
7
- ...
8
- };
9
- declare export var StatefulSingleDatePicker: React.StatelessFunctionalComponent<TypeStatefulSingleDatePickerProps>;
@@ -1,3 +0,0 @@
1
- // @flow
2
- export * from "./SingleDatePicker.flow";
3
- export * from "./StatefulSingleDatePicker.flow";
@@ -1,21 +0,0 @@
1
- // @flow
2
- import { type Node } from "react";
3
- export type TypeCommonDatePickerProps = {|
4
- daySize?: number,
5
- isOutsideRange?: (date: moment$Moment) => boolean,
6
- hideKeyboardShortcutsPanel?: boolean,
7
- navPrev?: Node,
8
- navNext?: Node,
9
- numberOfMonths?: number,
10
- renderDayContents?: (day: moment$Moment, modifiers: Object) => Node,
11
- keepOpenOnDateSelect?: boolean,
12
- initialVisibleMonth?: () => moment$Moment,
13
- minimumNights?: number,
14
- phrases?: {
15
- [phrase: string]: Node | (({
16
- date: moment$Moment,
17
- ...
18
- }) => Node),
19
- ...
20
- },
21
- |};
@@ -1,6 +0,0 @@
1
- // @flow
2
- export { default as SingleDatePicker } from "./SingleDatePicker/index.flow";
3
- export { default as DateRangePicker } from "./DateRangePicker/index.flow";
4
- export * from "./common.flow";
5
- export * from "./DateRangePicker/index.flow";
6
- export * from "./SingleDatePicker/index.flow";
@@ -1,49 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeWithDisplayName } from "../types/shared.flow";
4
- export type TypeDrawerContext = $Shape<{
5
- /** Callback for close button */
6
- onClose: () => any,
7
- /** aria-label for drawer close button */
8
- closeButtonLabel: string,
9
- ...
10
- }>;
11
- export type TypeDrawerCloseButtonProps = {
12
- /** An optional function that receives the context of the parent drawer as an argument. Can be used to customize the on-close behavior. */
13
- render?: (TypeDrawerContext) => React.Node,
14
- children?: React.Node,
15
- ...
16
- };
17
- export type TypeDrawerHeaderProps = {
18
- title?: string,
19
- children?: React.Node,
20
- /** An optional function that receives the context of the parent drawer as an argument. Can be used to customize the appearance of the header. */
21
- render?: (TypeDrawerContext) => React.Node,
22
- ...
23
- };
24
- export type TypeDrawerProps = {
25
- children: React.Node,
26
- /** Label for the close button. Usually this should be "Close" */
27
- closeButtonLabel: string,
28
- /** Whether the drawer slides in from the left or right side of the screen */
29
- direction?: "left" | "right",
30
- /** In some cases, you may not want the user to be able to click outside of the drawer to close it. You can disable that with this prop. */
31
- disableCloseOnClickOutside?: boolean,
32
- id: string,
33
- isOpen: boolean,
34
- offset?: number,
35
- onClose: () => void,
36
- zIndex?: number,
37
- closeTargets?: Array<Element>,
38
- width?: number,
39
- ...
40
- };
41
- declare class DrawerContainer extends React.Component<TypeDrawerProps> {
42
- static Header: TypeWithDisplayName<React.StatelessFunctionalComponent<TypeDrawerHeaderProps>>,
43
- static Content: TypeWithDisplayName<React.StatelessFunctionalComponent<{
44
- children?: React.Node,
45
- ...
46
- }>>,
47
- static CloseButton: TypeWithDisplayName<React.StatelessFunctionalComponent<TypeDrawerCloseButtonProps>>,
48
- }
49
- declare export default typeof DrawerContainer;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Drawer.flow";
@@ -1,17 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- export type TypeEmptyStateProps = {
4
- /** An image in (preferably in SVG format) */
5
- media?: React.Node,
6
- /** A headline describing the empty state */
7
- headline: React.Node,
8
- /** Optional description of the empty state */
9
- subtext?: React.Node,
10
- /** Element for the primary call-to-action */
11
- primaryAction?: React.Element<*>,
12
- /** Element for any secondary call-to-action */
13
- secondaryAction?: React.Element<*>,
14
- ...
15
- };
16
- declare var EmptyState: React.StatelessFunctionalComponent<TypeEmptyStateProps>;
17
- declare export default typeof EmptyState;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./EmptyState.flow";
@@ -1,16 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeWithDisplayName } from "../types/shared.flow";
4
- export type TypeFieldsetProps = {
5
- /** Label text to display above the fieldset */
6
- label: React.Node,
7
- helperText?: React.Node,
8
- layout?: "vertical" | "horizontal",
9
- children: React.Node,
10
- ...
11
- };
12
- declare class Fieldset extends React.Component<TypeFieldsetProps> {
13
- static Legend: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>,
14
- static HelperText: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>,
15
- }
16
- declare export default typeof Fieldset;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Fieldset.flow";
@@ -1,32 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeBoxProps } from "../Box/index.flow";
4
- export type TypeFormFieldProps = {
5
- ...TypeBoxProps,
6
- /** A function that receives props that need to be spread onto the child element */
7
- children: (options: {
8
- id: string,
9
- isInvalid: boolean,
10
- ariaDescribedby: string,
11
- required?: boolean,
12
- ...
13
- }) => React.Element<any>,
14
- /** Text describing any error with the field's content */
15
- error?: React.Node,
16
- /** Text acting as a description blurb below the main label **/
17
- helperText?: React.Node,
18
- /** ID of the form element (will be auto-generated if not provided) */
19
- id?: string,
20
- /** Whether the current contents of the field are invalid */
21
- isInvalid?: boolean,
22
- /** Label text to display above the form field */
23
- label: React.Node,
24
- qa?: Object,
25
- /** Whether the label text should be visually hidden */
26
- isLabelHidden?: boolean,
27
- /** Whether the form element is required */
28
- required?: boolean,
29
- ...
30
- };
31
- declare var FormField: React.StatelessFunctionalComponent<TypeFormFieldProps>;
32
- declare export default typeof FormField;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./FormField.flow";
@@ -1,50 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { StyledComponent } from "styled-components";
4
- import type { EnumIconNames } from "@sproutsocial/seeds-icons";
5
- import type { EnumLogoNamesWithoutVariants } from "@sproutsocial/seeds-partner-logos";
6
- import type { TypeWithDisplayName } from "../types/shared.flow";
7
- import type { TypeTheme } from "../types/theme.flow";
8
- export type TypeIconSize = "mini" // 12x12
9
- // TODO: deprecate default in favor of small in future release
10
- | "default" // 16x16
11
- | "small" // 16x16
12
- | "medium" // 24x24
13
- | "large" // 32x32
14
- | "jumbo"; // 64x64
15
-
16
- export type TypeIconNames = EnumIconNames;
17
- export type TypeIconName = TypeIconNames | EnumLogoNamesWithoutVariants;
18
- export type TypeIconProps = {
19
- /** Name of the icon in the svg sprite */
20
- name: TypeIconName,
21
- size?: TypeIconSize,
22
- /** Whether the icon should have a fixed width or not. Use this when you need to align icons/text vertically in a list. */
23
- fixedWidth?: boolean,
24
- /** Label used to describe the icon if not used with an accompanying visual label */
25
- ariaLabel?: string,
26
- svgProps?: {...},
27
- ...
28
- };
29
- export type TypeToggleProps = {
30
- /** Name of the icon to be shown in the active state */
31
- activeName: TypeIconName,
32
- /** Name of the icon to be shown in the inactive state */
33
- inactiveName: TypeIconName,
34
- /** Whether the active icon should be shown or not */
35
- isActive: boolean,
36
- /** The size of the icon. `small` is the default */
37
- size?: "mini" | "default" | "small" | "medium" | "large" | "jumbo",
38
- fixedWidth?: boolean,
39
- ariaLabel?: string,
40
- ...
41
- };
42
- declare class Icon extends React.Component<TypeIconProps> {
43
- static Toggle: TypeWithDisplayName<React.StatelessFunctionalComponent<TypeToggleProps>>
44
- }
45
- declare export var IconContainer: StyledComponent<{
46
- iconSize: TypeIconSize,
47
- fixedWidth: boolean,
48
- ...
49
- }, TypeTheme, HTMLSpanElement>;
50
- declare export default typeof Icon;
@@ -1,4 +0,0 @@
1
- // @flow
2
- import Icon from "./Icon.flow";
3
- export { Icon };
4
- export * from "./Icon.flow";
@@ -1,25 +0,0 @@
1
- // @flow
2
- // eslint-disable-next-line no-unused-vars -- used in class extend... why is this erroring?
3
- import * as React from "react";
4
- export type TypeImageProps = {
5
- src: string,
6
- /** Alt text is required for non-decorative images */
7
- alt: string,
8
- title: string,
9
- onError: (e: SyntheticEvent<HTMLImageElement, Event>) => void,
10
- onClick: () => void,
11
- /** A URL for a default image to load if the source image is not available */
12
- defaultImage?: string,
13
- onLoad: () => void,
14
- qa?: Object,
15
- ...
16
- };
17
- declare class Image extends React.Component<TypeImageProps> {
18
- static defaultProps: {|
19
- title: $PropertyType<TypeImageProps, "title">,
20
- onError: $PropertyType<TypeImageProps, "onError">,
21
- onClick: $PropertyType<TypeImageProps, "onClick">,
22
- onLoad: $PropertyType<TypeImageProps, "onLoad">,
23
- |}
24
- }
25
- declare export default typeof Image;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Image.flow";
@@ -1,11 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- export type TypeIndicatorProps = {
4
- tooltip: string,
5
- ...
6
- };
7
- declare var Indicator: React.ComponentType<{
8
- tooltip?: string,
9
- ...
10
- }>;
11
- declare export default typeof Indicator;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Indicator.flow";
@@ -1,65 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- import type { TypeWithDisplayName } from "../types/shared.flow";
4
- export type TypeInputProps = {
5
- /** ID of the form element, should match the "for" value of the associated label */
6
- id: string,
7
- name: string,
8
- /** Label used to describe the input if not used with an accompanying visual label */
9
- ariaLabel?: string,
10
- /** Attribute used to associate other elements that describe the Input, like an error */
11
- ariaDescribedby?: string,
12
- /** Label for Input.ClearButton. Required when using Input.ClearButton. */
13
- clearButtonLabel?: string,
14
- /** Placeholder text for when value is undefined or empty */
15
- placeholder?: string,
16
- /** Current value of the input */
17
- value?: string,
18
- /** HTML type attribute */
19
- type?: "date" | "email" | "number" | "password" | "text" | "url" | "search",
20
- /** Set option to display earlier typed values */
21
- autoComplete?: boolean,
22
- /** Will autofocus the element when mounted to the DOM */
23
- autoFocus?: boolean,
24
- /** HTML disabled attribute */
25
- disabled?: boolean,
26
- /** HTML readonly attribute */
27
- readOnly?: boolean,
28
- /** Whether or not the current contents of the input are invalid */
29
- isInvalid?: boolean,
30
- /** Whether or not the current contents of the input has any warnings */
31
- hasWarning?: boolean,
32
- /** HTML required attribute */
33
- required?: boolean,
34
- /** 16x16 element, such as an icon */
35
- elemBefore?: React.Node,
36
- /** 16x16 element, such as an icon */
37
- elemAfter?: React.Node,
38
- /** Max length of the input */
39
- maxLength?: number,
40
- /** Props to spread onto the underlying input element */
41
- inputProps?: any,
42
- /** Used to get a reference to the underlying element */
43
- innerRef?: {|
44
- current: null | HTMLInputElement
45
- |} | ((React.ElementRef<any> | HTMLElement) => void),
46
- onBlur?: (e: SyntheticFocusEvent<HTMLInputElement>) => void,
47
- onChange?: (e: SyntheticInputEvent<HTMLInputElement>, value: string) => void,
48
- onClear?: (e: SyntheticEvent<HTMLButtonElement>) => void,
49
- onFocus?: (e: SyntheticFocusEvent<HTMLInputElement>) => void,
50
- onKeyDown?: (e: SyntheticKeyboardEvent<HTMLInputElement>, value: string) => void,
51
- onKeyUp?: (e: SyntheticKeyboardEvent<HTMLInputElement>, value: string) => void,
52
- onPaste?: (e: SyntheticInputEvent<HTMLInputElement>, value: string) => void,
53
- size?: "large" | "small" | "default",
54
- qa?: Object,
55
- /**
56
- Controls the styles of the input. Primary is our standard input styles and secondary is a borderless input.
57
- Note that this prop should only be used to alter styles and not functionality.
58
- */
59
- appearance?: "primary" | "secondary",
60
- ...
61
- };
62
- declare class Input extends React.Component<TypeInputProps> {
63
- static ClearButton: TypeWithDisplayName<React.StatelessFunctionalComponent<{||}>>
64
- }
65
- declare export default typeof Input;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./Input.flow";
@@ -1,9 +0,0 @@
1
- // @flow
2
- import * as React from "react";
3
- export type TypeKeyboardKeyProps = {
4
- /** Text to display inside of key */
5
- children: string,
6
- ...
7
- };
8
- declare var KeyboardKey: React.ComponentType<TypeKeyboardKeyProps>;
9
- declare export default typeof KeyboardKey;
@@ -1,2 +0,0 @@
1
- // @flow
2
- export * from "./KeyboardKey.flow";