@sproutsocial/racine 24.2.0 → 25.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/CHANGELOG.md +46 -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/commonjs/themes/light/theme.js +6 -2
  7. package/dist/types/Avatar/Avatar.d.ts.map +1 -1
  8. package/dist/types/Duration/Duration.d.ts.map +1 -1
  9. package/dist/types/Duration/utils.d.ts +8 -0
  10. package/dist/types/Duration/utils.d.ts.map +1 -1
  11. package/dist/types/themes/dark/theme.d.ts +4 -0
  12. package/dist/types/themes/dark/theme.d.ts.map +1 -1
  13. package/dist/types/themes/light/theme.d.ts +8 -0
  14. package/dist/types/themes/light/theme.d.ts.map +1 -1
  15. package/lib/Avatar/Avatar.js +3 -2
  16. package/lib/Duration/Duration.js +2 -29
  17. package/lib/Duration/utils.js +36 -2
  18. package/lib/themes/light/theme.js +6 -2
  19. package/package.json +19 -26
  20. package/__flow__/Avatar/Avatar.flow.js +0 -17
  21. package/__flow__/Avatar/constants.flow.js +0 -11
  22. package/__flow__/Avatar/index.flow.js +0 -3
  23. package/__flow__/Badge/Badge.flow.js +0 -21
  24. package/__flow__/Badge/constants.flow.js +0 -28
  25. package/__flow__/Badge/index.flow.js +0 -3
  26. package/__flow__/Banner/Banner.flow.js +0 -22
  27. package/__flow__/Banner/index.flow.js +0 -2
  28. package/__flow__/Box/Box.flow.js +0 -22
  29. package/__flow__/Box/index.flow.js +0 -2
  30. package/__flow__/Breadcrumb/Breadcrumb.flow.js +0 -22
  31. package/__flow__/Breadcrumb/index.flow.js +0 -2
  32. package/__flow__/Button/Button.flow.js +0 -36
  33. package/__flow__/Button/index.flow.js +0 -2
  34. package/__flow__/Card/Card.flow.js +0 -9
  35. package/__flow__/Card/CardTypes.flow.js +0 -73
  36. package/__flow__/Card/index.flow.js +0 -3
  37. package/__flow__/CharacterCounter/CharacterCounter.flow.js +0 -12
  38. package/__flow__/CharacterCounter/index.flow.js +0 -2
  39. package/__flow__/ChartLegend/ChartLegend.flow.js +0 -18
  40. package/__flow__/ChartLegend/index.flow.js +0 -2
  41. package/__flow__/Checkbox/Checkbox.flow.js +0 -24
  42. package/__flow__/Checkbox/index.flow.js +0 -2
  43. package/__flow__/Collapsible/Collapsible.flow.js +0 -19
  44. package/__flow__/Collapsible/index.flow.js +0 -2
  45. package/__flow__/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -19
  46. package/__flow__/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -11
  47. package/__flow__/DatePicker/DateRangePicker/index.flow.js +0 -3
  48. package/__flow__/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -17
  49. package/__flow__/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -9
  50. package/__flow__/DatePicker/SingleDatePicker/index.flow.js +0 -3
  51. package/__flow__/DatePicker/common.flow.js +0 -21
  52. package/__flow__/DatePicker/index.flow.js +0 -6
  53. package/__flow__/Drawer/Drawer.flow.js +0 -49
  54. package/__flow__/Drawer/index.flow.js +0 -2
  55. package/__flow__/EmptyState/EmptyState.flow.js +0 -17
  56. package/__flow__/EmptyState/index.flow.js +0 -2
  57. package/__flow__/Fieldset/Fieldset.flow.js +0 -16
  58. package/__flow__/Fieldset/index.flow.js +0 -2
  59. package/__flow__/FormField/FormField.flow.js +0 -32
  60. package/__flow__/FormField/index.flow.js +0 -2
  61. package/__flow__/Icon/Icon.flow.js +0 -50
  62. package/__flow__/Icon/index.flow.js +0 -4
  63. package/__flow__/Image/Image.flow.js +0 -25
  64. package/__flow__/Image/index.flow.js +0 -2
  65. package/__flow__/Indicator/Indicator.flow.js +0 -11
  66. package/__flow__/Indicator/index.flow.js +0 -2
  67. package/__flow__/Input/Input.flow.js +0 -65
  68. package/__flow__/Input/index.flow.js +0 -2
  69. package/__flow__/KeyboardKey/KeyboardKey.flow.js +0 -9
  70. package/__flow__/KeyboardKey/index.flow.js +0 -2
  71. package/__flow__/Label/Label.flow.js +0 -16
  72. package/__flow__/Label/index.flow.js +0 -2
  73. package/__flow__/Link/Link.flow.js +0 -20
  74. package/__flow__/Link/index.flow.js +0 -2
  75. package/__flow__/Listbox/Listbox.flow.js +0 -33
  76. package/__flow__/Listbox/index.flow.js +0 -2
  77. package/__flow__/Loader/Loader.flow.js +0 -14
  78. package/__flow__/Loader/index.flow.js +0 -2
  79. package/__flow__/LoaderButton/LoaderButton.flow.js +0 -11
  80. package/__flow__/LoaderButton/index.flow.js +0 -2
  81. package/__flow__/Menu/Menu.flow.js +0 -142
  82. package/__flow__/Menu/index.flow.js +0 -3
  83. package/__flow__/Menu/utils/constants.flow.js +0 -16
  84. package/__flow__/Message/Message.flow.js +0 -48
  85. package/__flow__/Message/index.flow.js +0 -2
  86. package/__flow__/Modal/Modal.flow.js +0 -59
  87. package/__flow__/Modal/index.flow.js +0 -2
  88. package/__flow__/Numeral/Numeral.flow.js +0 -23
  89. package/__flow__/Numeral/index.flow.js +0 -2
  90. package/__flow__/PartnerLogo/PartnerLogo.flow.js +0 -27
  91. package/__flow__/PartnerLogo/index.flow.js +0 -2
  92. package/__flow__/Popout/Popout.flow.js +0 -103
  93. package/__flow__/Popout/index.flow.js +0 -2
  94. package/__flow__/Portal/Portal.flow.js +0 -17
  95. package/__flow__/Portal/index.flow.js +0 -2
  96. package/__flow__/Radio/Radio.flow.js +0 -21
  97. package/__flow__/Radio/index.flow.js +0 -2
  98. package/__flow__/SegmentedControl/SegmentedControl.flow.js +0 -27
  99. package/__flow__/SegmentedControl/index.flow.js +0 -2
  100. package/__flow__/Select/Select.flow.js +0 -27
  101. package/__flow__/Select/index.flow.js +0 -2
  102. package/__flow__/Skeleton/Skeleton.flow.js +0 -6
  103. package/__flow__/Skeleton/index.flow.js +0 -2
  104. package/__flow__/SpotIllustration/SpotIllustration.flow.js +0 -12
  105. package/__flow__/SpotIllustration/index.flow.js +0 -2
  106. package/__flow__/Stack/Stack.flow.js +0 -26
  107. package/__flow__/Stack/index.flow.js +0 -2
  108. package/__flow__/Switch/Switch.flow.js +0 -5
  109. package/__flow__/Switch/SwitchTypes.flow.js +0 -16
  110. package/__flow__/Switch/index.flow.js +0 -3
  111. package/__flow__/Table/Table.flow.js +0 -48
  112. package/__flow__/Table/index.flow.js +0 -2
  113. package/__flow__/TableCell/TableCell.flow.js +0 -28
  114. package/__flow__/TableCell/index.flow.js +0 -2
  115. package/__flow__/TableHeaderCell/TableHeaderCell.flow.js +0 -30
  116. package/__flow__/TableHeaderCell/index.flow.js +0 -2
  117. package/__flow__/TableRowAccordion/TableRowAccordion.flow.js +0 -15
  118. package/__flow__/TableRowAccordion/index.flow.js +0 -2
  119. package/__flow__/Tabs/Tabs.flow.js +0 -26
  120. package/__flow__/Tabs/index.flow.js +0 -2
  121. package/__flow__/Text/Text.flow.js +0 -27
  122. package/__flow__/Text/index.flow.js +0 -2
  123. package/__flow__/Textarea/Textarea.flow.js +0 -59
  124. package/__flow__/Textarea/index.flow.js +0 -2
  125. package/__flow__/ThemeProvider/index.flow.js +0 -12
  126. package/__flow__/Toast/Toast.flow.js +0 -27
  127. package/__flow__/Toast/index.flow.js +0 -2
  128. package/__flow__/ToggleHint/ToggleHint.flow.js +0 -21
  129. package/__flow__/ToggleHint/index.flow.js +0 -2
  130. package/__flow__/Token/Token.flow.js +0 -17
  131. package/__flow__/Token/index.flow.js +0 -2
  132. package/__flow__/TokenInput/TokenInput.flow.js +0 -79
  133. package/__flow__/TokenInput/TokenScreenReaderStatus.js +0 -32
  134. package/__flow__/TokenInput/index.flow.js +0 -2
  135. package/__flow__/Tooltip/Tooltip.flow.js +0 -24
  136. package/__flow__/Tooltip/index.flow.js +0 -2
  137. package/__flow__/VisuallyHidden/VisuallyHidden.flow.js +0 -3
  138. package/__flow__/VisuallyHidden/index.flow.js +0 -2
  139. package/__flow__/index.flow.js +0 -136
  140. package/__flow__/index.js +0 -2
  141. package/__flow__/systemProps/background.flow.js +0 -17
  142. package/__flow__/systemProps/border.flow.js +0 -46
  143. package/__flow__/systemProps/color.flow.js +0 -16
  144. package/__flow__/systemProps/custom.flow.js +0 -16
  145. package/__flow__/systemProps/flexbox.flow.js +0 -28
  146. package/__flow__/systemProps/grid.flow.js +0 -26
  147. package/__flow__/systemProps/index.flow.js +0 -16
  148. package/__flow__/systemProps/layout.flow.js +0 -25
  149. package/__flow__/systemProps/position.flow.js +0 -17
  150. package/__flow__/systemProps/shadow.flow.js +0 -13
  151. package/__flow__/systemProps/space.flow.js +0 -71
  152. package/__flow__/systemProps/systemProps.flow.js +0 -30
  153. package/__flow__/systemProps/tests/types.flow.js +0 -51
  154. package/__flow__/systemProps/types.flow.js +0 -12
  155. package/__flow__/systemProps/typography.flow.js +0 -21
  156. package/__flow__/systemProps/variant.flow.js +0 -14
  157. package/__flow__/themes/dark/dataviz-palette.flow.js +0 -3
  158. package/__flow__/themes/dark/decorative-palettes.flow.js +0 -13
  159. package/__flow__/themes/dark/theme.flow.js +0 -5
  160. package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -10
  161. package/__flow__/themes/extendedThemes/sproutTheme/index.flow.js +0 -3
  162. package/__flow__/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -10
  163. package/__flow__/themes/light/dataviz-palette.flow.js +0 -29
  164. package/__flow__/themes/light/decorative-palettes.flow.js +0 -17
  165. package/__flow__/themes/light/literal-colors.flow.js +0 -31
  166. package/__flow__/themes/light/theme.flow.js +0 -16
  167. package/__flow__/types/index.flow.js +0 -7
  168. package/__flow__/types/shared.flow.js +0 -9
  169. package/__flow__/types/styled-components.flow.js +0 -8
  170. package/__flow__/types/system-props.flow.js +0 -136
  171. package/__flow__/types/theme.colors.flow.js +0 -364
  172. package/__flow__/types/theme.flow.js +0 -373
  173. package/__flow__/utils/a11yTest.flow.js +0 -5
  174. package/__flow__/utils/chartColors.flow.js +0 -11
  175. package/__flow__/utils/constants.flow.js +0 -3
  176. package/__flow__/utils/dataQaLabelQueries.flow.js +0 -20
  177. package/__flow__/utils/hooks.flow.js +0 -66
  178. package/__flow__/utils/index.flow.js +0 -11
  179. package/__flow__/utils/innerText.flow.js +0 -4
  180. package/__flow__/utils/mixins.flow.js +0 -7
  181. package/__flow__/utils/react-testing-library.flow.js +0 -14
  182. package/__flow__/utils/responsiveProps/index.flow.js +0 -3
  183. package/__flow__/utils/responsiveProps/index.test.flow.js +0 -22
  184. package/__flow__/utils/system-props.flow.js +0 -9
  185. package/__flow__/utils/useInteractiveColor.flow.js +0 -3
  186. package/commonjs/Avatar/Avatar.flow.js +0 -6
  187. package/commonjs/Avatar/constants.flow.js +0 -16
  188. package/commonjs/Avatar/index.flow.js +0 -27
  189. package/commonjs/Badge/Badge.flow.js +0 -7
  190. package/commonjs/Badge/constants.flow.js +0 -19
  191. package/commonjs/Badge/index.flow.js +0 -27
  192. package/commonjs/Banner/Banner.flow.js +0 -6
  193. package/commonjs/Banner/index.flow.js +0 -16
  194. package/commonjs/Box/Box.flow.js +0 -6
  195. package/commonjs/Box/index.flow.js +0 -16
  196. package/commonjs/Breadcrumb/Breadcrumb.flow.js +0 -6
  197. package/commonjs/Breadcrumb/index.flow.js +0 -16
  198. package/commonjs/Button/Button.flow.js +0 -6
  199. package/commonjs/Button/index.flow.js +0 -16
  200. package/commonjs/Card/Card.flow.js +0 -6
  201. package/commonjs/Card/CardTypes.flow.js +0 -6
  202. package/commonjs/Card/index.flow.js +0 -27
  203. package/commonjs/CharacterCounter/CharacterCounter.flow.js +0 -6
  204. package/commonjs/CharacterCounter/index.flow.js +0 -16
  205. package/commonjs/ChartLegend/ChartLegend.flow.js +0 -6
  206. package/commonjs/ChartLegend/index.flow.js +0 -16
  207. package/commonjs/Checkbox/Checkbox.flow.js +0 -6
  208. package/commonjs/Checkbox/index.flow.js +0 -16
  209. package/commonjs/Collapsible/Collapsible.flow.js +0 -6
  210. package/commonjs/Collapsible/index.flow.js +0 -16
  211. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -6
  212. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -6
  213. package/commonjs/DatePicker/DateRangePicker/index.flow.js +0 -27
  214. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -6
  215. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -6
  216. package/commonjs/DatePicker/SingleDatePicker/index.flow.js +0 -27
  217. package/commonjs/DatePicker/common.flow.js +0 -1
  218. package/commonjs/DatePicker/index.flow.js +0 -60
  219. package/commonjs/Drawer/Drawer.flow.js +0 -6
  220. package/commonjs/Drawer/index.flow.js +0 -16
  221. package/commonjs/EmptyState/EmptyState.flow.js +0 -6
  222. package/commonjs/EmptyState/index.flow.js +0 -16
  223. package/commonjs/Fieldset/Fieldset.flow.js +0 -6
  224. package/commonjs/Fieldset/index.flow.js +0 -16
  225. package/commonjs/FormField/FormField.flow.js +0 -6
  226. package/commonjs/FormField/index.flow.js +0 -16
  227. package/commonjs/Icon/Icon.flow.js +0 -6
  228. package/commonjs/Icon/index.flow.js +0 -29
  229. package/commonjs/Image/Image.flow.js +0 -6
  230. package/commonjs/Image/index.flow.js +0 -16
  231. package/commonjs/Indicator/Indicator.flow.js +0 -6
  232. package/commonjs/Indicator/index.flow.js +0 -16
  233. package/commonjs/Input/Input.flow.js +0 -6
  234. package/commonjs/Input/index.flow.js +0 -16
  235. package/commonjs/KeyboardKey/KeyboardKey.flow.js +0 -6
  236. package/commonjs/KeyboardKey/index.flow.js +0 -16
  237. package/commonjs/Label/Label.flow.js +0 -8
  238. package/commonjs/Label/index.flow.js +0 -16
  239. package/commonjs/Link/Link.flow.js +0 -6
  240. package/commonjs/Link/index.flow.js +0 -16
  241. package/commonjs/Listbox/Listbox.flow.js +0 -10
  242. package/commonjs/Listbox/index.flow.js +0 -16
  243. package/commonjs/Loader/Loader.flow.js +0 -6
  244. package/commonjs/Loader/index.flow.js +0 -16
  245. package/commonjs/LoaderButton/LoaderButton.flow.js +0 -6
  246. package/commonjs/LoaderButton/index.flow.js +0 -16
  247. package/commonjs/Menu/Menu.flow.js +0 -11
  248. package/commonjs/Menu/index.flow.js +0 -27
  249. package/commonjs/Menu/utils/constants.flow.js +0 -18
  250. package/commonjs/Message/Message.flow.js +0 -20
  251. package/commonjs/Message/index.flow.js +0 -16
  252. package/commonjs/Modal/Modal.flow.js +0 -8
  253. package/commonjs/Modal/index.flow.js +0 -16
  254. package/commonjs/Numeral/Numeral.flow.js +0 -6
  255. package/commonjs/Numeral/index.flow.js +0 -16
  256. package/commonjs/PartnerLogo/PartnerLogo.flow.js +0 -6
  257. package/commonjs/PartnerLogo/index.flow.js +0 -16
  258. package/commonjs/Popout/Popout.flow.js +0 -6
  259. package/commonjs/Popout/index.flow.js +0 -16
  260. package/commonjs/Portal/Portal.flow.js +0 -6
  261. package/commonjs/Portal/index.flow.js +0 -16
  262. package/commonjs/Radio/Radio.flow.js +0 -6
  263. package/commonjs/Radio/index.flow.js +0 -16
  264. package/commonjs/SegmentedControl/SegmentedControl.flow.js +0 -6
  265. package/commonjs/SegmentedControl/index.flow.js +0 -16
  266. package/commonjs/Select/Select.flow.js +0 -6
  267. package/commonjs/Select/index.flow.js +0 -16
  268. package/commonjs/Skeleton/Skeleton.flow.js +0 -4
  269. package/commonjs/Skeleton/index.flow.js +0 -16
  270. package/commonjs/SpotIllustration/SpotIllustration.flow.js +0 -6
  271. package/commonjs/SpotIllustration/index.flow.js +0 -16
  272. package/commonjs/Stack/Stack.flow.js +0 -6
  273. package/commonjs/Stack/index.flow.js +0 -16
  274. package/commonjs/Switch/Switch.flow.js +0 -6
  275. package/commonjs/Switch/SwitchTypes.flow.js +0 -1
  276. package/commonjs/Switch/index.flow.js +0 -27
  277. package/commonjs/Table/Table.flow.js +0 -9
  278. package/commonjs/Table/index.flow.js +0 -16
  279. package/commonjs/TableCell/TableCell.flow.js +0 -6
  280. package/commonjs/TableCell/index.flow.js +0 -16
  281. package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +0 -14
  282. package/commonjs/TableHeaderCell/index.flow.js +0 -16
  283. package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +0 -6
  284. package/commonjs/TableRowAccordion/index.flow.js +0 -16
  285. package/commonjs/Tabs/Tabs.flow.js +0 -6
  286. package/commonjs/Tabs/index.flow.js +0 -16
  287. package/commonjs/Text/Text.flow.js +0 -6
  288. package/commonjs/Text/index.flow.js +0 -16
  289. package/commonjs/Textarea/Textarea.flow.js +0 -6
  290. package/commonjs/Textarea/index.flow.js +0 -16
  291. package/commonjs/ThemeProvider/index.flow.js +0 -6
  292. package/commonjs/Toast/Toast.flow.js +0 -6
  293. package/commonjs/Toast/index.flow.js +0 -16
  294. package/commonjs/ToggleHint/ToggleHint.flow.js +0 -6
  295. package/commonjs/ToggleHint/index.flow.js +0 -16
  296. package/commonjs/Token/Token.flow.js +0 -6
  297. package/commonjs/Token/index.flow.js +0 -16
  298. package/commonjs/TokenInput/TokenInput.flow.js +0 -6
  299. package/commonjs/TokenInput/index.flow.js +0 -16
  300. package/commonjs/Tooltip/Tooltip.flow.js +0 -6
  301. package/commonjs/Tooltip/index.flow.js +0 -16
  302. package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +0 -6
  303. package/commonjs/VisuallyHidden/index.flow.js +0 -16
  304. package/commonjs/index.flow.js +0 -594
  305. package/commonjs/index.js.flow +0 -2
  306. package/commonjs/systemProps/background.flow.js +0 -9
  307. package/commonjs/systemProps/border.flow.js +0 -9
  308. package/commonjs/systemProps/color.flow.js +0 -9
  309. package/commonjs/systemProps/custom.flow.js +0 -12
  310. package/commonjs/systemProps/flexbox.flow.js +0 -9
  311. package/commonjs/systemProps/grid.flow.js +0 -9
  312. package/commonjs/systemProps/index.flow.js +0 -159
  313. package/commonjs/systemProps/layout.flow.js +0 -9
  314. package/commonjs/systemProps/position.flow.js +0 -9
  315. package/commonjs/systemProps/shadow.flow.js +0 -9
  316. package/commonjs/systemProps/space.flow.js +0 -23
  317. package/commonjs/systemProps/systemProps.flow.js +0 -20
  318. package/commonjs/systemProps/tests/types.flow.js +0 -48
  319. package/commonjs/systemProps/types.flow.js +0 -1
  320. package/commonjs/systemProps/typography.flow.js +0 -9
  321. package/commonjs/systemProps/variant.flow.js +0 -12
  322. package/commonjs/themes/dark/dataviz-palette.flow.js +0 -1
  323. package/commonjs/themes/dark/decorative-palettes.flow.js +0 -1
  324. package/commonjs/themes/dark/theme.flow.js +0 -1
  325. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -7
  326. package/commonjs/themes/extendedThemes/sproutTheme/index.flow.js +0 -20
  327. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -1
  328. package/commonjs/themes/light/dataviz-palette.flow.js +0 -1
  329. package/commonjs/themes/light/decorative-palettes.flow.js +0 -1
  330. package/commonjs/themes/light/literal-colors.flow.js +0 -1
  331. package/commonjs/themes/light/theme.flow.js +0 -1
  332. package/commonjs/types/index.flow.js +0 -60
  333. package/commonjs/types/shared.flow.js +0 -6
  334. package/commonjs/types/styled-components.flow.js +0 -6
  335. package/commonjs/types/system-props.flow.js +0 -2
  336. package/commonjs/types/theme.colors.flow.js +0 -1
  337. package/commonjs/types/theme.flow.js +0 -1
  338. package/commonjs/utils/a11yTest.flow.js +0 -1
  339. package/commonjs/utils/chartColors.flow.js +0 -1
  340. package/commonjs/utils/constants.flow.js +0 -1
  341. package/commonjs/utils/dataQaLabelQueries.flow.js +0 -1
  342. package/commonjs/utils/hooks.flow.js +0 -28
  343. package/commonjs/utils/index.flow.js +0 -1
  344. package/commonjs/utils/innerText.flow.js +0 -6
  345. package/commonjs/utils/mixins.flow.js +0 -1
  346. package/commonjs/utils/react-testing-library.flow.js +0 -9
  347. package/commonjs/utils/responsiveProps/index.flow.js +0 -1
  348. package/commonjs/utils/responsiveProps/index.test.flow.js +0 -23
  349. package/commonjs/utils/system-props.flow.js +0 -1
  350. package/commonjs/utils/useInteractiveColor.flow.js +0 -1
  351. package/lib/Avatar/Avatar.flow.js +0 -1
  352. package/lib/Avatar/constants.flow.js +0 -10
  353. package/lib/Avatar/index.flow.js +0 -2
  354. package/lib/Badge/Badge.flow.js +0 -2
  355. package/lib/Badge/constants.flow.js +0 -13
  356. package/lib/Badge/index.flow.js +0 -2
  357. package/lib/Banner/Banner.flow.js +0 -1
  358. package/lib/Banner/index.flow.js +0 -1
  359. package/lib/Box/Box.flow.js +0 -1
  360. package/lib/Box/index.flow.js +0 -1
  361. package/lib/Breadcrumb/Breadcrumb.flow.js +0 -1
  362. package/lib/Breadcrumb/index.flow.js +0 -1
  363. package/lib/Button/Button.flow.js +0 -1
  364. package/lib/Button/index.flow.js +0 -1
  365. package/lib/Card/Card.flow.js +0 -1
  366. package/lib/Card/CardTypes.flow.js +0 -1
  367. package/lib/Card/index.flow.js +0 -2
  368. package/lib/CharacterCounter/CharacterCounter.flow.js +0 -1
  369. package/lib/CharacterCounter/index.flow.js +0 -1
  370. package/lib/ChartLegend/ChartLegend.flow.js +0 -1
  371. package/lib/ChartLegend/index.flow.js +0 -1
  372. package/lib/Checkbox/Checkbox.flow.js +0 -1
  373. package/lib/Checkbox/index.flow.js +0 -1
  374. package/lib/Collapsible/Collapsible.flow.js +0 -1
  375. package/lib/Collapsible/index.flow.js +0 -1
  376. package/lib/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -1
  377. package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -1
  378. package/lib/DatePicker/DateRangePicker/index.flow.js +0 -2
  379. package/lib/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -1
  380. package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -1
  381. package/lib/DatePicker/SingleDatePicker/index.flow.js +0 -2
  382. package/lib/DatePicker/common.flow.js +0 -0
  383. package/lib/DatePicker/index.flow.js +0 -5
  384. package/lib/Drawer/Drawer.flow.js +0 -1
  385. package/lib/Drawer/index.flow.js +0 -1
  386. package/lib/EmptyState/EmptyState.flow.js +0 -1
  387. package/lib/EmptyState/index.flow.js +0 -1
  388. package/lib/Fieldset/Fieldset.flow.js +0 -1
  389. package/lib/Fieldset/index.flow.js +0 -1
  390. package/lib/FormField/FormField.flow.js +0 -1
  391. package/lib/FormField/index.flow.js +0 -1
  392. package/lib/Icon/Icon.flow.js +0 -3
  393. package/lib/Icon/index.flow.js +0 -3
  394. package/lib/Image/Image.flow.js +0 -2
  395. package/lib/Image/index.flow.js +0 -1
  396. package/lib/Indicator/Indicator.flow.js +0 -1
  397. package/lib/Indicator/index.flow.js +0 -1
  398. package/lib/Input/Input.flow.js +0 -1
  399. package/lib/Input/index.flow.js +0 -1
  400. package/lib/KeyboardKey/KeyboardKey.flow.js +0 -1
  401. package/lib/KeyboardKey/index.flow.js +0 -1
  402. package/lib/Label/Label.flow.js +0 -2
  403. package/lib/Label/index.flow.js +0 -1
  404. package/lib/Link/Link.flow.js +0 -1
  405. package/lib/Link/index.flow.js +0 -1
  406. package/lib/Listbox/Listbox.flow.js +0 -4
  407. package/lib/Listbox/index.flow.js +0 -1
  408. package/lib/Loader/Loader.flow.js +0 -1
  409. package/lib/Loader/index.flow.js +0 -1
  410. package/lib/LoaderButton/LoaderButton.flow.js +0 -1
  411. package/lib/LoaderButton/index.flow.js +0 -1
  412. package/lib/Menu/Menu.flow.js +0 -5
  413. package/lib/Menu/index.flow.js +0 -2
  414. package/lib/Menu/utils/constants.flow.js +0 -12
  415. package/lib/Message/Message.flow.js +0 -11
  416. package/lib/Message/index.flow.js +0 -1
  417. package/lib/Modal/Modal.flow.js +0 -2
  418. package/lib/Modal/index.flow.js +0 -1
  419. package/lib/Numeral/Numeral.flow.js +0 -1
  420. package/lib/Numeral/index.flow.js +0 -1
  421. package/lib/PartnerLogo/PartnerLogo.flow.js +0 -5
  422. package/lib/PartnerLogo/index.flow.js +0 -1
  423. package/lib/Popout/Popout.flow.js +0 -3
  424. package/lib/Popout/index.flow.js +0 -1
  425. package/lib/Portal/Portal.flow.js +0 -1
  426. package/lib/Portal/index.flow.js +0 -1
  427. package/lib/Radio/Radio.flow.js +0 -1
  428. package/lib/Radio/index.flow.js +0 -1
  429. package/lib/SegmentedControl/SegmentedControl.flow.js +0 -1
  430. package/lib/SegmentedControl/index.flow.js +0 -1
  431. package/lib/Select/Select.flow.js +0 -1
  432. package/lib/Select/index.flow.js +0 -1
  433. package/lib/Skeleton/Skeleton.flow.js +0 -1
  434. package/lib/Skeleton/index.flow.js +0 -1
  435. package/lib/SpotIllustration/SpotIllustration.flow.js +0 -1
  436. package/lib/SpotIllustration/index.flow.js +0 -1
  437. package/lib/Stack/Stack.flow.js +0 -1
  438. package/lib/Stack/index.flow.js +0 -1
  439. package/lib/Switch/Switch.flow.js +0 -1
  440. package/lib/Switch/SwitchTypes.flow.js +0 -0
  441. package/lib/Switch/index.flow.js +0 -2
  442. package/lib/Table/Table.flow.js +0 -3
  443. package/lib/Table/index.flow.js +0 -1
  444. package/lib/TableCell/TableCell.flow.js +0 -5
  445. package/lib/TableCell/index.flow.js +0 -1
  446. package/lib/TableHeaderCell/TableHeaderCell.flow.js +0 -5
  447. package/lib/TableHeaderCell/index.flow.js +0 -1
  448. package/lib/TableRowAccordion/TableRowAccordion.flow.js +0 -1
  449. package/lib/TableRowAccordion/index.flow.js +0 -1
  450. package/lib/Tabs/Tabs.flow.js +0 -1
  451. package/lib/Tabs/index.flow.js +0 -1
  452. package/lib/Text/Text.flow.js +0 -1
  453. package/lib/Text/index.flow.js +0 -1
  454. package/lib/Textarea/Textarea.flow.js +0 -1
  455. package/lib/Textarea/index.flow.js +0 -1
  456. package/lib/ThemeProvider/index.flow.js +0 -3
  457. package/lib/Toast/Toast.flow.js +0 -1
  458. package/lib/Toast/index.flow.js +0 -1
  459. package/lib/ToggleHint/ToggleHint.flow.js +0 -1
  460. package/lib/ToggleHint/index.flow.js +0 -1
  461. package/lib/Token/Token.flow.js +0 -1
  462. package/lib/Token/index.flow.js +0 -1
  463. package/lib/TokenInput/TokenInput.flow.js +0 -1
  464. package/lib/TokenInput/index.flow.js +0 -1
  465. package/lib/Tooltip/Tooltip.flow.js +0 -1
  466. package/lib/Tooltip/index.flow.js +0 -1
  467. package/lib/VisuallyHidden/VisuallyHidden.flow.js +0 -1
  468. package/lib/VisuallyHidden/index.flow.js +0 -1
  469. package/lib/index.flow.js +0 -79
  470. package/lib/index.js.flow +0 -2
  471. package/lib/systemProps/background.flow.js +0 -5
  472. package/lib/systemProps/border.flow.js +0 -5
  473. package/lib/systemProps/color.flow.js +0 -5
  474. package/lib/systemProps/custom.flow.js +0 -8
  475. package/lib/systemProps/flexbox.flow.js +0 -5
  476. package/lib/systemProps/grid.flow.js +0 -5
  477. package/lib/systemProps/index.flow.js +0 -14
  478. package/lib/systemProps/layout.flow.js +0 -5
  479. package/lib/systemProps/position.flow.js +0 -5
  480. package/lib/systemProps/shadow.flow.js +0 -5
  481. package/lib/systemProps/space.flow.js +0 -32
  482. package/lib/systemProps/systemProps.flow.js +0 -14
  483. package/lib/systemProps/tests/types.flow.js +0 -46
  484. package/lib/systemProps/types.flow.js +0 -0
  485. package/lib/systemProps/typography.flow.js +0 -5
  486. package/lib/systemProps/variant.flow.js +0 -8
  487. package/lib/themes/dark/dataviz-palette.flow.js +0 -0
  488. package/lib/themes/dark/decorative-palettes.flow.js +0 -0
  489. package/lib/themes/dark/theme.flow.js +0 -0
  490. package/lib/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -1
  491. package/lib/themes/extendedThemes/sproutTheme/index.flow.js +0 -2
  492. package/lib/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -0
  493. package/lib/themes/light/dataviz-palette.flow.js +0 -0
  494. package/lib/themes/light/decorative-palettes.flow.js +0 -0
  495. package/lib/themes/light/literal-colors.flow.js +0 -0
  496. package/lib/themes/light/theme.flow.js +0 -0
  497. package/lib/types/index.flow.js +0 -5
  498. package/lib/types/shared.flow.js +0 -1
  499. package/lib/types/styled-components.flow.js +0 -1
  500. package/lib/types/system-props.flow.js +0 -1
  501. package/lib/types/theme.colors.flow.js +0 -0
  502. package/lib/types/theme.flow.js +0 -0
  503. package/lib/utils/a11yTest.flow.js +0 -0
  504. package/lib/utils/chartColors.flow.js +0 -0
  505. package/lib/utils/constants.flow.js +0 -0
  506. package/lib/utils/dataQaLabelQueries.flow.js +0 -0
  507. package/lib/utils/hooks.flow.js +0 -27
  508. package/lib/utils/index.flow.js +0 -0
  509. package/lib/utils/innerText.flow.js +0 -1
  510. package/lib/utils/mixins.flow.js +0 -0
  511. package/lib/utils/react-testing-library.flow.js +0 -3
  512. package/lib/utils/responsiveProps/index.flow.js +0 -0
  513. package/lib/utils/responsiveProps/index.test.flow.js +0 -21
  514. package/lib/utils/system-props.flow.js +0 -0
  515. package/lib/utils/useInteractiveColor.flow.js +0 -0
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.colorSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/table#color
9
- var colorSystemProps = exports.colorSystemProps = _styledSystem.color;
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.customSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/custom-props
9
- var customSystemProps = exports.customSystemProps = (0, _styledSystem.compose)((0, _styledSystem.system)({
10
- cursor: true,
11
- whiteSpace: true
12
- }));
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.flexboxSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/table#flexbox
9
- var flexboxSystemProps = exports.flexboxSystemProps = _styledSystem.flexbox;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.gridSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/table#grid-layout
9
- var gridSystemProps = exports.gridSystemProps = _styledSystem.grid;
@@ -1,159 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _types = require("./types.flow");
7
- Object.keys(_types).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _types[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _types[key];
14
- }
15
- });
16
- });
17
- var _background = require("./background.flow");
18
- Object.keys(_background).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _background[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _background[key];
25
- }
26
- });
27
- });
28
- var _border = require("./border.flow");
29
- Object.keys(_border).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _border[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _border[key];
36
- }
37
- });
38
- });
39
- var _color = require("./color.flow");
40
- Object.keys(_color).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _color[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _color[key];
47
- }
48
- });
49
- });
50
- var _custom = require("./custom.flow");
51
- Object.keys(_custom).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _custom[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function get() {
57
- return _custom[key];
58
- }
59
- });
60
- });
61
- var _flexbox = require("./flexbox.flow");
62
- Object.keys(_flexbox).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _flexbox[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function get() {
68
- return _flexbox[key];
69
- }
70
- });
71
- });
72
- var _grid = require("./grid.flow");
73
- Object.keys(_grid).forEach(function (key) {
74
- if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _grid[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function get() {
79
- return _grid[key];
80
- }
81
- });
82
- });
83
- var _layout = require("./layout.flow");
84
- Object.keys(_layout).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _layout[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function get() {
90
- return _layout[key];
91
- }
92
- });
93
- });
94
- var _position = require("./position.flow");
95
- Object.keys(_position).forEach(function (key) {
96
- if (key === "default" || key === "__esModule") return;
97
- if (key in exports && exports[key] === _position[key]) return;
98
- Object.defineProperty(exports, key, {
99
- enumerable: true,
100
- get: function get() {
101
- return _position[key];
102
- }
103
- });
104
- });
105
- var _shadow = require("./shadow.flow");
106
- Object.keys(_shadow).forEach(function (key) {
107
- if (key === "default" || key === "__esModule") return;
108
- if (key in exports && exports[key] === _shadow[key]) return;
109
- Object.defineProperty(exports, key, {
110
- enumerable: true,
111
- get: function get() {
112
- return _shadow[key];
113
- }
114
- });
115
- });
116
- var _space = require("./space.flow");
117
- Object.keys(_space).forEach(function (key) {
118
- if (key === "default" || key === "__esModule") return;
119
- if (key in exports && exports[key] === _space[key]) return;
120
- Object.defineProperty(exports, key, {
121
- enumerable: true,
122
- get: function get() {
123
- return _space[key];
124
- }
125
- });
126
- });
127
- var _systemProps = require("./systemProps.flow");
128
- Object.keys(_systemProps).forEach(function (key) {
129
- if (key === "default" || key === "__esModule") return;
130
- if (key in exports && exports[key] === _systemProps[key]) return;
131
- Object.defineProperty(exports, key, {
132
- enumerable: true,
133
- get: function get() {
134
- return _systemProps[key];
135
- }
136
- });
137
- });
138
- var _typography = require("./typography.flow");
139
- Object.keys(_typography).forEach(function (key) {
140
- if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _typography[key]) return;
142
- Object.defineProperty(exports, key, {
143
- enumerable: true,
144
- get: function get() {
145
- return _typography[key];
146
- }
147
- });
148
- });
149
- var _variant = require("./variant.flow");
150
- Object.keys(_variant).forEach(function (key) {
151
- if (key === "default" || key === "__esModule") return;
152
- if (key in exports && exports[key] === _variant[key]) return;
153
- Object.defineProperty(exports, key, {
154
- enumerable: true,
155
- get: function get() {
156
- return _variant[key];
157
- }
158
- });
159
- });
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.layoutSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/table#layout
9
- var layoutSystemProps = exports.layoutSystemProps = _styledSystem.layout;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.positionSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/table#position
9
- var positionSystemProps = exports.positionSystemProps = _styledSystem.position;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.shadowSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/table#shadow
9
- var shadowSystemProps = exports.shadowSystemProps = _styledSystem.shadow;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.spaceSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- /* eslint-disable prettier/prettier */ // https://styled-system.com/table#space
9
- // prettier-ignore
10
- // prettier-ignore
11
- // prettier-ignore
12
- // prettier-ignore
13
- // prettier-ignore
14
- // prettier-ignore
15
- // prettier-ignore
16
- // prettier-ignore
17
- // prettier-ignore
18
- // prettier-ignore
19
- // prettier-ignore
20
- // prettier-ignore
21
- // prettier-ignore
22
- // prettier-ignore
23
- var spaceSystemProps = exports.spaceSystemProps = _styledSystem.space;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.systemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- var _background = require("./background.flow");
9
- var _border = require("./border.flow");
10
- var _color = require("./color.flow");
11
- var _custom = require("./custom.flow");
12
- var _flexbox = require("./flexbox.flow");
13
- var _grid = require("./grid.flow");
14
- var _layout = require("./layout.flow");
15
- var _position = require("./position.flow");
16
- var _shadow = require("./shadow.flow");
17
- var _space = require("./space.flow");
18
- var _typography = require("./typography.flow");
19
- var _variant = require("./variant.flow");
20
- var systemProps = exports.systemProps = (0, _styledSystem.compose)(_custom.customSystemProps, _variant.variantSystemProps, _background.backgroundSystemProps, _border.borderSystemProps, _color.colorSystemProps, _flexbox.flexboxSystemProps, _grid.gridSystemProps, _layout.layoutSystemProps, _position.positionSystemProps, _shadow.shadowSystemProps, _space.spaceSystemProps, _typography.typographySystemProps);
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * All system props should be responsive but accepting a tuple of length 1-5.
5
- */
6
- "a";
7
- ["a"];
8
- ["a", "a"];
9
- ["a", "a", "a"];
10
- ["a", "a", "a", "a"];
11
- ["a", "a", "a", "a", "a"];
12
- // $FlowExpectedError
13
- ["a", "a", "a", "a", "a", "a"];
14
- // $FlowExpectedError
15
- ["b"];
16
- // $FlowExpectedError
17
- [null];
18
-
19
- /**
20
- * All system props should accept "base" values: boolean, null, and undefined.
21
- */
22
-
23
- "a";
24
- true;
25
- false;
26
- null;
27
- undefined;
28
-
29
- /**
30
- * All system props should be responsive and allow "base" values.
31
- */
32
-
33
- "a";
34
- "b";
35
- true;
36
- false;
37
- null;
38
- undefined;
39
- ["a", null, undefined, false, "b"];
40
- ["a"];
41
- // $FlowExpectedError
42
- "c";
43
- // $FlowExpectedError
44
- 1;
45
- // $FlowExpectedError
46
- ({});
47
- // $FlowExpectedError
48
- [];
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.typographySystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/table#typography
9
- var typographySystemProps = exports.typographySystemProps = _styledSystem.typography;
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.variantSystemProps = void 0;
7
- var _styledSystem = require("styled-system");
8
- // https://styled-system.com/variants
9
- var variantSystemProps = exports.variantSystemProps = (0, _styledSystem.compose)((0, _styledSystem.variant)({
10
- key: "typography",
11
- prop: "typeScale"
12
- }));
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = exports.default = darkTheme;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "sproutDarkTheme", {
7
- enumerable: true,
8
- get: function get() {
9
- return _theme2.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "sproutLightTheme", {
13
- enumerable: true,
14
- get: function get() {
15
- return _theme.default;
16
- }
17
- });
18
- var _theme = _interopRequireDefault(require("./light/theme.flow"));
19
- var _theme2 = _interopRequireDefault(require("./dark/theme.flow"));
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _shared = require("./shared.flow");
7
- Object.keys(_shared).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _shared[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _shared[key];
14
- }
15
- });
16
- });
17
- var _styledComponents = require("./styled-components.flow");
18
- Object.keys(_styledComponents).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _styledComponents[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _styledComponents[key];
25
- }
26
- });
27
- });
28
- var _systemProps = require("./system-props.flow");
29
- Object.keys(_systemProps).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _systemProps[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _systemProps[key];
36
- }
37
- });
38
- });
39
- var _theme = require("./theme.flow");
40
- Object.keys(_theme).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _theme[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _theme[key];
47
- }
48
- });
49
- });
50
- var _themeColors = require("./theme.colors.flow");
51
- Object.keys(_themeColors).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _themeColors[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function get() {
57
- return _themeColors[key];
58
- }
59
- });
60
- });
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- var React = _interopRequireWildcard(require("react"));
5
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
6
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- var React = _interopRequireWildcard(require("react"));
5
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
6
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- "no babel-plugin-flow-react-proptypes";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- var _react = require("react");
4
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
9
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
- // https://stackoverflow.com/questions/44700904/how-to-get-a-functions-return-type-in-flow
11
- // eslint-disable-next-line flowtype/type-id-match
12
-
13
- var useTextContentClone = function useTextContentClone(initial) {
14
- var _useState = (0, _react.useState)(initial),
15
- _useState2 = _slicedToArray(_useState, 2),
16
- textContent = _useState2[0],
17
- setTextContent = _useState2[1];
18
- var ref = (0, _react.useCallback)(function (node) {
19
- if (node !== null) {
20
- setTextContent(node.textContent);
21
- }
22
- }, []);
23
- ref.current = textContent;
24
- return ref;
25
- };
26
-
27
- // Couldn't find a way to achieve this with flow type syntax - open to suggestions
28
- // Tried https://github.com/facebook/flow/issues/2840#issuecomment-452934068 but it didn't work
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- var React = _interopRequireWildcard(require("react"));
5
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
6
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- var React = _interopRequireWildcard(require("react"));
5
- var _react2 = require("@testing-library/react");
6
- var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
7
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- var _index = require("./index.flow");
4
- describe("normalizeResponsiveProp", function () {
5
- it("should handle single, literal values", function () {
6
- expect((0, _index.normalizeResponsiveProp)(0)).toMatchObject([0, 0, 0, 0, 0]);
7
- });
8
- it("should handle arrays with 1 value", function () {
9
- expect((0, _index.normalizeResponsiveProp)([0])).toMatchObject([0, 0, 0, 0, 0]);
10
- });
11
- it("should handle arrays with 2 values", function () {
12
- expect((0, _index.normalizeResponsiveProp)([0, 1])).toMatchObject([0, 1, 1, 1, 1]);
13
- });
14
- it("should handle arrays with 3 values", function () {
15
- expect((0, _index.normalizeResponsiveProp)([0, 1, 2])).toMatchObject([0, 1, 2, 2, 2]);
16
- });
17
- it("should handle arrays with 4 values", function () {
18
- expect((0, _index.normalizeResponsiveProp)([0, 1, 2, 3])).toMatchObject([0, 1, 2, 3, 3]);
19
- });
20
- it("should handle arrays with 5 values", function () {
21
- expect((0, _index.normalizeResponsiveProp)([0, 1, 2, 3, 4])).toMatchObject([0, 1, 2, 3, 4]);
22
- });
23
- });
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- import * as React from "react";
@@ -1,10 +0,0 @@
1
- export var AvatarColorOptions = Object.freeze({
2
- auto: "auto",
3
- neutral: "neutral",
4
- purple: "purple",
5
- green: "green",
6
- blue: "blue",
7
- yellow: "yellow",
8
- red: "red",
9
- orange: "orange"
10
- });
@@ -1,2 +0,0 @@
1
- export * from "./Avatar.flow";
2
- export { AvatarColorOptions } from "./constants.flow";
@@ -1,2 +0,0 @@
1
- import * as React from "react";
2
- import { badgeColors } from "./constants.flow";
@@ -1,13 +0,0 @@
1
- export var badgeColors = Object.freeze({
2
- green: "green",
3
- blue: "blue",
4
- purple: "purple",
5
- yellow: "yellow",
6
- orange: "orange",
7
- red: "red",
8
- neutral: "neutral",
9
- magenta: "magenta",
10
- pink: "pink",
11
- aqua: "aqua",
12
- teal: "teal"
13
- });