@sproutsocial/racine 20.12.0 → 20.13.5

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 (342) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +1 -0
  3. package/__flow__/EnumLogoNames.flow.js +1 -1
  4. package/__flow__/LogoViewBoxes.js +2 -0
  5. package/__flow__/types/theme.colors.flow.js +2 -0
  6. package/commonjs/Avatar/Avatar.flow.js +2 -2
  7. package/commonjs/Avatar/Avatar.js +10 -12
  8. package/commonjs/Avatar/constants.flow.js +2 -3
  9. package/commonjs/Avatar/constants.js +2 -3
  10. package/commonjs/Avatar/index.js +1 -2
  11. package/commonjs/Badge/Badge.flow.js +2 -2
  12. package/commonjs/Badge/Badge.js +3 -4
  13. package/commonjs/Badge/constants.flow.js +2 -3
  14. package/commonjs/Badge/constants.js +3 -5
  15. package/commonjs/Badge/index.js +1 -2
  16. package/commonjs/Badge/styles.js +1 -2
  17. package/commonjs/Banner/Banner.flow.js +2 -2
  18. package/commonjs/Banner/Banner.js +3 -4
  19. package/commonjs/Banner/index.js +1 -2
  20. package/commonjs/Banner/styles.js +5 -7
  21. package/commonjs/Box/Box.flow.js +2 -2
  22. package/commonjs/Box/Box.js +3 -4
  23. package/commonjs/Box/index.js +1 -2
  24. package/commonjs/Box/styles.js +1 -2
  25. package/commonjs/Breadcrumb/Breadcrumb.flow.js +2 -2
  26. package/commonjs/Breadcrumb/Breadcrumb.js +5 -6
  27. package/commonjs/Breadcrumb/index.js +1 -2
  28. package/commonjs/Breadcrumb/styles.js +1 -2
  29. package/commonjs/Button/Button.flow.js +2 -2
  30. package/commonjs/Button/Button.js +1 -2
  31. package/commonjs/Button/index.js +1 -2
  32. package/commonjs/Button/styles.js +4 -8
  33. package/commonjs/Card/Card.flow.js +2 -2
  34. package/commonjs/Card/Card.js +3 -4
  35. package/commonjs/Card/CardTypes.flow.js +2 -2
  36. package/commonjs/Card/index.js +1 -2
  37. package/commonjs/Card/styles.js +9 -17
  38. package/commonjs/Card/subComponents.js +9 -15
  39. package/commonjs/Card/utils.js +4 -7
  40. package/commonjs/CharacterCounter/CharacterCounter.flow.js +2 -2
  41. package/commonjs/CharacterCounter/CharacterCounter.js +10 -12
  42. package/commonjs/CharacterCounter/index.js +1 -2
  43. package/commonjs/CharacterCounter/styles.js +3 -4
  44. package/commonjs/ChartLegend/ChartLegend.flow.js +2 -2
  45. package/commonjs/ChartLegend/ChartLegend.js +3 -4
  46. package/commonjs/ChartLegend/index.js +1 -2
  47. package/commonjs/ChartLegend/styles.js +5 -8
  48. package/commonjs/ChartLegend/useChartLabels.js +2 -3
  49. package/commonjs/Checkbox/Checkbox.flow.js +2 -2
  50. package/commonjs/Checkbox/Checkbox.js +11 -13
  51. package/commonjs/Checkbox/index.js +1 -2
  52. package/commonjs/Checkbox/styles.js +9 -16
  53. package/commonjs/Collapsible/Collapsible.flow.js +2 -2
  54. package/commonjs/Collapsible/Collapsible.js +13 -13
  55. package/commonjs/Collapsible/index.js +1 -2
  56. package/commonjs/Collapsible/styles.js +2 -3
  57. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.flow.js +2 -2
  58. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +3 -4
  59. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +2 -2
  60. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.js +4 -5
  61. package/commonjs/DatePicker/DateRangePicker/index.js +1 -2
  62. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +2 -2
  63. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +3 -4
  64. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +2 -2
  65. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +4 -5
  66. package/commonjs/DatePicker/SingleDatePicker/index.js +1 -2
  67. package/commonjs/DatePicker/common.js +9 -15
  68. package/commonjs/DatePicker/index.flow.js +2 -2
  69. package/commonjs/DatePicker/styles.js +5 -7
  70. package/commonjs/Drawer/Drawer.flow.js +2 -2
  71. package/commonjs/Drawer/Drawer.js +11 -11
  72. package/commonjs/Drawer/SlideTransition.js +4 -5
  73. package/commonjs/Drawer/index.js +1 -2
  74. package/commonjs/Drawer/styles.js +4 -6
  75. package/commonjs/EmptyState/EmptyState.flow.js +2 -2
  76. package/commonjs/EmptyState/EmptyState.js +3 -4
  77. package/commonjs/EmptyState/index.js +1 -2
  78. package/commonjs/Fieldset/Fieldset.flow.js +2 -2
  79. package/commonjs/Fieldset/Fieldset.js +3 -4
  80. package/commonjs/Fieldset/index.js +1 -2
  81. package/commonjs/Fieldset/styles.js +4 -5
  82. package/commonjs/FormField/FormField.flow.js +2 -2
  83. package/commonjs/FormField/FormField.js +5 -6
  84. package/commonjs/FormField/index.js +1 -2
  85. package/commonjs/Icon/Icon.flow.js +2 -2
  86. package/commonjs/Icon/Icon.js +5 -6
  87. package/commonjs/Icon/index.flow.js +2 -2
  88. package/commonjs/Icon/index.js +1 -2
  89. package/commonjs/Icon/styles.js +3 -4
  90. package/commonjs/Image/Image.flow.js +2 -2
  91. package/commonjs/Image/Image.js +11 -13
  92. package/commonjs/Image/index.js +1 -2
  93. package/commonjs/Image/styles.js +3 -4
  94. package/commonjs/Indicator/Indicator.flow.js +2 -2
  95. package/commonjs/Indicator/Indicator.js +10 -12
  96. package/commonjs/Indicator/index.js +1 -2
  97. package/commonjs/Indicator/styles.js +1 -2
  98. package/commonjs/Input/Input.flow.js +2 -2
  99. package/commonjs/Input/Input.js +12 -13
  100. package/commonjs/Input/index.js +1 -2
  101. package/commonjs/Input/styles.js +4 -6
  102. package/commonjs/KeyboardKey/KeyboardKey.flow.js +2 -2
  103. package/commonjs/KeyboardKey/KeyboardKey.js +11 -13
  104. package/commonjs/KeyboardKey/index.js +1 -2
  105. package/commonjs/KeyboardKey/styles.js +1 -2
  106. package/commonjs/Label/Label.flow.js +2 -2
  107. package/commonjs/Label/Label.js +11 -13
  108. package/commonjs/Label/index.js +1 -2
  109. package/commonjs/Link/Link.flow.js +2 -2
  110. package/commonjs/Link/Link.js +3 -4
  111. package/commonjs/Link/constants.js +1 -2
  112. package/commonjs/Link/index.js +1 -2
  113. package/commonjs/Link/styles.js +3 -4
  114. package/commonjs/Listbox/Listbox.flow.js +2 -2
  115. package/commonjs/Listbox/Listbox.js +8 -12
  116. package/commonjs/Listbox/index.js +3 -4
  117. package/commonjs/Loader/Loader.flow.js +2 -2
  118. package/commonjs/Loader/Loader.js +10 -12
  119. package/commonjs/Loader/index.js +1 -2
  120. package/commonjs/Loader/styles.js +4 -6
  121. package/commonjs/LoaderButton/LoaderButton.flow.js +2 -2
  122. package/commonjs/LoaderButton/LoaderButton.js +4 -6
  123. package/commonjs/LoaderButton/index.js +1 -2
  124. package/commonjs/LogoViewBoxes.js +2 -0
  125. package/commonjs/Menu/Menu.flow.js +2 -2
  126. package/commonjs/Menu/Menu.js +42 -50
  127. package/commonjs/Menu/index.js +3 -4
  128. package/commonjs/Menu/styles.js +5 -7
  129. package/commonjs/Menu/utils/constants.flow.js +3 -5
  130. package/commonjs/Menu/utils/constants.js +3 -5
  131. package/commonjs/Menu/utils/descendants.js +17 -16
  132. package/commonjs/Menu/utils/hooks.js +3 -6
  133. package/commonjs/Message/Message.flow.js +3 -4
  134. package/commonjs/Message/Message.js +3 -4
  135. package/commonjs/Message/constants.js +2 -3
  136. package/commonjs/Message/index.js +1 -2
  137. package/commonjs/Message/styles.js +5 -10
  138. package/commonjs/Modal/Modal.flow.js +2 -2
  139. package/commonjs/Modal/Modal.js +7 -7
  140. package/commonjs/Modal/index.js +1 -2
  141. package/commonjs/Modal/styles.js +8 -14
  142. package/commonjs/Numeral/Numeral.flow.js +2 -2
  143. package/commonjs/Numeral/Numeral.js +3 -4
  144. package/commonjs/Numeral/constants.js +7 -13
  145. package/commonjs/Numeral/index.js +1 -2
  146. package/commonjs/Numeral/styles.js +3 -5
  147. package/commonjs/PartnerLogo/PartnerLogo.flow.js +2 -2
  148. package/commonjs/PartnerLogo/PartnerLogo.js +1 -2
  149. package/commonjs/PartnerLogo/PartnerLogoTypes.js +4 -6
  150. package/commonjs/PartnerLogo/index.js +1 -2
  151. package/commonjs/PartnerLogo/styles.js +3 -4
  152. package/commonjs/Popout/Popout.flow.js +2 -2
  153. package/commonjs/Popout/Popout.js +21 -22
  154. package/commonjs/Popout/index.js +1 -2
  155. package/commonjs/Popout/styles.js +2 -3
  156. package/commonjs/Portal/Portal.flow.js +2 -2
  157. package/commonjs/Portal/Portal.js +11 -13
  158. package/commonjs/Portal/index.js +1 -2
  159. package/commonjs/Radio/Radio.flow.js +2 -2
  160. package/commonjs/Radio/Radio.js +11 -13
  161. package/commonjs/Radio/index.js +1 -2
  162. package/commonjs/Radio/styles.js +6 -10
  163. package/commonjs/SegmentedControl/SegmentedControl.flow.js +2 -2
  164. package/commonjs/SegmentedControl/SegmentedControl.js +8 -8
  165. package/commonjs/SegmentedControl/index.js +1 -2
  166. package/commonjs/SegmentedControl/styles.js +6 -9
  167. package/commonjs/Select/Select.flow.js +2 -2
  168. package/commonjs/Select/Select.js +11 -13
  169. package/commonjs/Select/index.js +1 -2
  170. package/commonjs/Select/styles.js +4 -6
  171. package/commonjs/Skeleton/Skeleton.js +1 -2
  172. package/commonjs/Skeleton/index.js +1 -2
  173. package/commonjs/SpotIllustration/SpotIllustration.flow.js +2 -2
  174. package/commonjs/SpotIllustration/SpotIllustration.js +3 -4
  175. package/commonjs/SpotIllustration/illustrationNames.js +1 -2
  176. package/commonjs/SpotIllustration/index.js +1 -2
  177. package/commonjs/Stack/Stack.flow.js +2 -2
  178. package/commonjs/Stack/Stack.js +6 -6
  179. package/commonjs/Stack/index.js +1 -2
  180. package/commonjs/Switch/Switch.flow.js +2 -2
  181. package/commonjs/Switch/Switch.js +3 -4
  182. package/commonjs/Switch/index.js +1 -2
  183. package/commonjs/Switch/styles.js +4 -5
  184. package/commonjs/Table/Table.flow.js +2 -2
  185. package/commonjs/Table/Table.js +7 -12
  186. package/commonjs/Table/index.js +1 -2
  187. package/commonjs/Table/styles.js +1 -2
  188. package/commonjs/TableCell/TableCell.flow.js +2 -2
  189. package/commonjs/TableCell/TableCell.js +11 -14
  190. package/commonjs/TableCell/index.js +1 -2
  191. package/commonjs/TableCell/styles.js +1 -2
  192. package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +4 -5
  193. package/commonjs/TableHeaderCell/TableHeaderCell.js +12 -15
  194. package/commonjs/TableHeaderCell/constants.js +2 -3
  195. package/commonjs/TableHeaderCell/index.js +1 -2
  196. package/commonjs/TableHeaderCell/styles.js +5 -8
  197. package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +2 -2
  198. package/commonjs/TableRowAccordion/TableRowAccordion.js +12 -14
  199. package/commonjs/TableRowAccordion/index.js +1 -2
  200. package/commonjs/TableRowAccordion/styles.js +5 -8
  201. package/commonjs/Tabs/Tabs.flow.js +2 -2
  202. package/commonjs/Tabs/Tabs.js +12 -15
  203. package/commonjs/Tabs/index.js +1 -2
  204. package/commonjs/Tabs/styles.js +5 -8
  205. package/commonjs/Text/Text.flow.js +2 -2
  206. package/commonjs/Text/Text.js +3 -4
  207. package/commonjs/Text/index.js +1 -2
  208. package/commonjs/Text/styles.js +3 -4
  209. package/commonjs/Textarea/Textarea.flow.js +2 -2
  210. package/commonjs/Textarea/Textarea.js +11 -13
  211. package/commonjs/Textarea/index.js +1 -2
  212. package/commonjs/Textarea/styles.js +4 -6
  213. package/commonjs/ThemeProvider/index.flow.js +2 -2
  214. package/commonjs/ThemeProvider/index.js +3 -4
  215. package/commonjs/Toast/Toast.flow.js +2 -2
  216. package/commonjs/Toast/Toast.js +3 -4
  217. package/commonjs/Toast/index.js +3 -4
  218. package/commonjs/Toast/styles.js +6 -8
  219. package/commonjs/ToggleHint/ToggleHint.flow.js +2 -2
  220. package/commonjs/ToggleHint/ToggleHint.js +11 -13
  221. package/commonjs/ToggleHint/index.js +1 -2
  222. package/commonjs/ToggleHint/styles.js +4 -6
  223. package/commonjs/Token/Token.flow.js +2 -2
  224. package/commonjs/Token/Token.js +3 -4
  225. package/commonjs/Token/index.js +3 -4
  226. package/commonjs/Token/styles.js +3 -4
  227. package/commonjs/TokenInput/TokenInput.flow.js +2 -2
  228. package/commonjs/TokenInput/TokenInput.js +12 -14
  229. package/commonjs/TokenInput/TokenScreenReaderStatus.js +4 -5
  230. package/commonjs/TokenInput/index.js +1 -2
  231. package/commonjs/TokenInput/styles.js +3 -4
  232. package/commonjs/TokenInput/util.js +3 -5
  233. package/commonjs/Tooltip/Tooltip.flow.js +2 -2
  234. package/commonjs/Tooltip/Tooltip.js +11 -11
  235. package/commonjs/Tooltip/index.js +1 -2
  236. package/commonjs/Tooltip/styles.js +2 -3
  237. package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +2 -2
  238. package/commonjs/VisuallyHidden/VisuallyHidden.js +2 -3
  239. package/commonjs/illustrationNames.js +1 -2
  240. package/commonjs/index.flow.js +2 -2
  241. package/commonjs/logoNames.js +1 -2
  242. package/commonjs/systemProps/background.flow.js +1 -2
  243. package/commonjs/systemProps/border.flow.js +1 -2
  244. package/commonjs/systemProps/color.flow.js +1 -2
  245. package/commonjs/systemProps/custom.flow.js +2 -3
  246. package/commonjs/systemProps/flexbox.flow.js +1 -2
  247. package/commonjs/systemProps/grid.flow.js +1 -2
  248. package/commonjs/systemProps/index.js +5 -7
  249. package/commonjs/systemProps/layout.flow.js +1 -2
  250. package/commonjs/systemProps/position.flow.js +1 -2
  251. package/commonjs/systemProps/shadow.flow.js +1 -2
  252. package/commonjs/systemProps/space.flow.js +1 -2
  253. package/commonjs/systemProps/systemProps.flow.js +1 -2
  254. package/commonjs/systemProps/typography.flow.js +1 -2
  255. package/commonjs/systemProps/variant.flow.js +2 -3
  256. package/commonjs/themes/dark/dataviz-palette.js +2 -3
  257. package/commonjs/themes/dark/decorative-palettes.js +12 -23
  258. package/commonjs/themes/dark/theme.js +5 -6
  259. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.flow.js +1 -2
  260. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +9 -16
  261. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +9 -16
  262. package/commonjs/themes/light/dataviz-palette.js +2 -3
  263. package/commonjs/themes/light/decorative-palettes.js +12 -23
  264. package/commonjs/themes/light/literal-colors.js +1 -2
  265. package/commonjs/themes/light/theme.js +22 -34
  266. package/commonjs/types/shared.flow.js +2 -2
  267. package/commonjs/types/styled-components.flow.js +2 -2
  268. package/commonjs/utils/a11yTest.js +2 -3
  269. package/commonjs/utils/chartColors.js +5 -9
  270. package/commonjs/utils/constants.js +1 -2
  271. package/commonjs/utils/dataQaLabelQueries.js +2 -3
  272. package/commonjs/utils/hooks.flow.js +1 -0
  273. package/commonjs/utils/hooks.js +4 -6
  274. package/commonjs/utils/index.js +2 -4
  275. package/commonjs/utils/innerText.flow.js +2 -2
  276. package/commonjs/utils/innerText.js +1 -2
  277. package/commonjs/utils/mixins.js +5 -10
  278. package/commonjs/utils/react-testing-library.flow.js +2 -2
  279. package/commonjs/utils/react-testing-library.js +5 -8
  280. package/commonjs/utils/responsiveProps/index.js +2 -3
  281. package/commonjs/utils/system-props/gap.js +2 -3
  282. package/commonjs/utils/system-props/system-props.js +9 -16
  283. package/commonjs/utils/useInteractiveColor.js +2 -3
  284. package/dist/logo.svg +1 -1
  285. package/dist/logoList.js +1 -1
  286. package/dist/themes/dark/theme.scss +2 -1
  287. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +2 -1
  288. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +4 -2
  289. package/dist/themes/light/theme.scss +4 -2
  290. package/dist/types/Button/styles.d.ts.map +1 -1
  291. package/dist/types/EnumLogoNames.d.ts +1 -1
  292. package/dist/types/EnumLogoNames.d.ts.map +1 -1
  293. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +1 -1
  294. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  295. package/dist/types/logoNames.d.ts +1 -1
  296. package/dist/types/logoNames.d.ts.map +1 -1
  297. package/dist/types/themes/dark/theme.d.ts +19 -18
  298. package/dist/types/themes/dark/theme.d.ts.map +1 -1
  299. package/dist/types/themes/light/theme.d.ts +29 -27
  300. package/dist/types/themes/light/theme.d.ts.map +1 -1
  301. package/dist/types/types/theme.colors.d.ts +2 -0
  302. package/dist/types/types/theme.colors.d.ts.map +1 -1
  303. package/lib/Breadcrumb/Breadcrumb.js +2 -2
  304. package/lib/Button/styles.js +1 -4
  305. package/lib/CharacterCounter/CharacterCounter.js +7 -8
  306. package/lib/Checkbox/Checkbox.js +8 -9
  307. package/lib/Collapsible/Collapsible.js +2 -2
  308. package/lib/Drawer/Drawer.js +2 -2
  309. package/lib/FormField/FormField.js +2 -2
  310. package/lib/Icon/Icon.js +2 -2
  311. package/lib/Image/Image.js +8 -9
  312. package/lib/Indicator/Indicator.js +7 -8
  313. package/lib/Input/Input.js +9 -9
  314. package/lib/KeyboardKey/KeyboardKey.js +7 -8
  315. package/lib/Label/Label.js +7 -8
  316. package/lib/Listbox/Listbox.js +2 -2
  317. package/lib/Loader/Loader.js +7 -8
  318. package/lib/LogoViewBoxes.js +2 -0
  319. package/lib/Menu/Menu.js +2 -2
  320. package/lib/Menu/utils/descendants.js +2 -2
  321. package/lib/Popout/Popout.js +2 -2
  322. package/lib/Portal/Portal.js +8 -9
  323. package/lib/Radio/Radio.js +8 -9
  324. package/lib/Select/Select.js +8 -9
  325. package/lib/TableCell/TableCell.js +7 -8
  326. package/lib/TableHeaderCell/TableHeaderCell.js +8 -9
  327. package/lib/TableRowAccordion/TableRowAccordion.js +8 -9
  328. package/lib/Tabs/Tabs.js +9 -11
  329. package/lib/Textarea/Textarea.js +8 -9
  330. package/lib/ToggleHint/ToggleHint.js +8 -9
  331. package/lib/TokenInput/TokenInput.js +8 -9
  332. package/lib/Tooltip/Tooltip.js +2 -2
  333. package/lib/logoNames.js +1 -1
  334. package/lib/systemProps/space.flow.js +14 -0
  335. package/lib/themes/dark/theme.js +2 -2
  336. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +2 -2
  337. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +2 -2
  338. package/lib/themes/light/theme.js +7 -4
  339. package/lib/utils/hooks.flow.js +1 -0
  340. package/lib/utils/hooks.js +2 -2
  341. package/lib/utils/react-testing-library.js +2 -2
  342. package/package.json +16 -24
@@ -11,13 +11,12 @@ exports.mergeRefs = void 0;
11
11
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
12
12
  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); }
13
13
  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; }
14
- var canUseDOM = function canUseDOM() {
14
+ var canUseDOM = exports.canUseDOM = function canUseDOM() {
15
15
  return Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
16
16
  };
17
- exports.canUseDOM = canUseDOM;
18
17
  // Allows a component to pass its own ref *and* a ref prop to the same element.
19
18
  // Via https://www.davedrinks.coffee/how-do-i-use-two-react-refs/
20
- var mergeRefs = function mergeRefs(refs) {
19
+ var mergeRefs = exports.mergeRefs = function mergeRefs(refs) {
21
20
  var filteredRefs = refs.filter(Boolean);
22
21
  if (!filteredRefs.length) return null;
23
22
  if (filteredRefs.length === 0) return filteredRefs[0];
@@ -46,7 +45,6 @@ var mergeRefs = function mergeRefs(refs) {
46
45
  * Type safe includes with narrowing
47
46
  * https://fettblog.eu/typescript-array-includes/
48
47
  */
49
- exports.mergeRefs = mergeRefs;
50
48
  function includes(coll, el) {
51
49
  return coll.includes(el);
52
50
  }
@@ -2,5 +2,5 @@
2
2
 
3
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
4
  var React = _interopRequireWildcard(require("react"));
5
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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; }
@@ -34,5 +34,4 @@ var innerText = function innerText(node) {
34
34
  }
35
35
  return '';
36
36
  };
37
- var _default = innerText;
38
- exports.default = _default;
37
+ var _default = exports.default = innerText;
@@ -8,18 +8,13 @@ var _polished = require("polished");
8
8
  var _styledComponents = require("styled-components");
9
9
  var _theme = _interopRequireDefault(require("../themes/light/theme"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- var svgToDataURL = function svgToDataURL(svgStr) {
11
+ var svgToDataURL = exports.svgToDataURL = function svgToDataURL(svgStr) {
12
12
  var encoded = encodeURIComponent(svgStr).replace(/'/g, '%27').replace(/"/g, '%22');
13
13
  var header = 'data:image/svg+xml,';
14
14
  var dataUrl = header + encoded;
15
15
  return dataUrl;
16
16
  };
17
- exports.svgToDataURL = svgToDataURL;
18
- var visuallyHidden = (0, _styledComponents.css)(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;"]);
19
- exports.visuallyHidden = visuallyHidden;
20
- var focusRing = (0, _styledComponents.css)(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"], _theme.default.colors.button.primary.background.base, (0, _polished.transparentize)(0.7, _theme.default.colors.button.primary.background.base));
21
- exports.focusRing = focusRing;
22
- var pill = (0, _styledComponents.css)(["min-width:", ";min-height:", ";padding:", ";border-radius:", ";"], _theme.default.space[600], _theme.default.space[600], _theme.default.space[300], _theme.default.radii.pill);
23
- exports.pill = pill;
24
- var disabled = (0, _styledComponents.css)(["opacity:0.4;pointer-events:none;"]);
25
- exports.disabled = disabled;
17
+ var visuallyHidden = exports.visuallyHidden = (0, _styledComponents.css)(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;"]);
18
+ var focusRing = exports.focusRing = (0, _styledComponents.css)(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"], _theme.default.colors.button.primary.background.base, (0, _polished.transparentize)(0.7, _theme.default.colors.button.primary.background.base));
19
+ var pill = exports.pill = (0, _styledComponents.css)(["min-width:", ";min-height:", ";padding:", ";border-radius:", ";"], _theme.default.space[600], _theme.default.space[600], _theme.default.space[300], _theme.default.radii.pill);
20
+ var disabled = exports.disabled = (0, _styledComponents.css)(["opacity:0.4;pointer-events:none;"]);
@@ -5,5 +5,5 @@ var React = _interopRequireWildcard(require("react"));
5
5
  var _react2 = require("@testing-library/react");
6
6
  var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
7
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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; }
@@ -60,12 +60,12 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
60
60
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
61
61
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
62
62
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
63
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
64
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
63
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
64
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
65
65
  var sproutQueries = _objectSpread(_objectSpread({}, _react.queries), _dataQaLabelQueries.dataQaLabelQueries);
66
66
 
67
67
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
68
- var customRender = function customRender(node, options) {
68
+ var customRender = exports.render = function customRender(node, options) {
69
69
  var utils = (0, _react.render)(node, _objectSpread(_objectSpread({}, options), {}, {
70
70
  queries: sproutQueries,
71
71
  wrapper: _ThemeProvider.default
@@ -91,13 +91,10 @@ var customRender = function customRender(node, options) {
91
91
  runA11yCheck: runA11yCheck
92
92
  });
93
93
  };
94
- exports.render = customRender;
95
- var customWithin = function customWithin(element) {
94
+ var customWithin = exports.within = function customWithin(element) {
96
95
  return (0, _react.within)(element, sproutQueries);
97
96
  };
98
- exports.within = customWithin;
99
97
  var boundQueries = (0, _react.within)(document.body, sproutQueries);
100
98
 
101
99
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
102
- var customScreen = _objectSpread(_objectSpread({}, _react.screen), boundQueries);
103
- exports.screen = customScreen;
100
+ var customScreen = exports.screen = _objectSpread(_objectSpread({}, _react.screen), boundQueries);
@@ -15,7 +15,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
15
15
  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); }
16
16
  var breakpoints = _theme.default.breakpoints;
17
17
  var LENGTH = breakpoints.length + 1;
18
- var normalizeResponsiveProp = function normalizeResponsiveProp(value) {
18
+ var normalizeResponsiveProp = exports.normalizeResponsiveProp = function normalizeResponsiveProp(value) {
19
19
  if (['string', 'number'].includes(_typeof(value))) {
20
20
  return Array(LENGTH).fill(value);
21
21
  }
@@ -37,5 +37,4 @@ var normalizeResponsiveProp = function normalizeResponsiveProp(value) {
37
37
  } else {
38
38
  throw new Error("Invalid responsive prop type: ".concat(JSON.stringify(value)));
39
39
  }
40
- };
41
- exports.normalizeResponsiveProp = normalizeResponsiveProp;
40
+ };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.gap = void 0;
7
7
  var _styledSystem = require("styled-system");
8
- var gap = (0, _styledSystem.system)({
8
+ var gap = exports.gap = (0, _styledSystem.system)({
9
9
  gap: {
10
10
  property: 'gap',
11
11
  scale: 'space'
@@ -18,5 +18,4 @@ var gap = (0, _styledSystem.system)({
18
18
  property: 'columnGap',
19
19
  scale: 'space'
20
20
  }
21
- });
22
- exports.gap = gap;
21
+ });
@@ -7,34 +7,27 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.TYPOGRAPHY = exports.POSITION = exports.LAYOUT = exports.GRID = exports.FLEXBOX = exports.COMMON = exports.BORDER = void 0;
8
8
  var styles = _interopRequireWildcard(require("styled-system"));
9
9
  var _gap = require("./gap");
10
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
10
+ 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); }
11
+ 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; }
12
12
  // eslint-disable-next-line no-restricted-syntax
13
13
 
14
14
  var typeScale = styles.variant({
15
15
  key: 'typography',
16
16
  prop: 'typeScale'
17
17
  });
18
- var COMMON = styles.compose(styles.color, styles.space, styles.system({
18
+ var COMMON = exports.COMMON = styles.compose(styles.color, styles.space, styles.system({
19
19
  cursor: true,
20
20
  whiteSpace: true
21
21
  }));
22
- exports.COMMON = COMMON;
23
- var BORDER = styles.compose(styles.border, styles.borderTop, styles.borderRight, styles.borderBottom, styles.borderLeft, styles.borderWidth, styles.borderStyle, styles.borderColor, styles.borderRadius,
22
+ var BORDER = exports.BORDER = styles.compose(styles.border, styles.borderTop, styles.borderRight, styles.borderBottom, styles.borderLeft, styles.borderWidth, styles.borderStyle, styles.borderColor, styles.borderRadius,
24
23
  // After reading the docs, these seem duplicate to styles.border
25
24
  // styles.border.borderBottomLeftRadius,
26
25
  // styles.border.borderBottomRightRadius,
27
26
  // styles.border.borderTopLeftRadius,
28
27
  // styles.border.borderTopRightRadius,
29
28
  styles.boxShadow);
30
- exports.BORDER = BORDER;
31
- var TYPOGRAPHY = styles.compose(typeScale, styles.fontFamily, styles.fontStyle, styles.fontWeight, styles.lineHeight, styles.textAlign);
32
- exports.TYPOGRAPHY = TYPOGRAPHY;
33
- var LAYOUT = styles.compose(styles.display, styles.size, styles.width, styles.height, styles.minWidth, styles.minHeight, styles.maxWidth, styles.maxHeight, styles.overflow, styles.verticalAlign);
34
- exports.LAYOUT = LAYOUT;
35
- var POSITION = styles.compose(styles.position, styles.zIndex, styles.top, styles.right, styles.bottom, styles.left);
36
- exports.POSITION = POSITION;
37
- var FLEXBOX = styles.compose(styles.flexBasis, styles.flexDirection, styles.flexWrap, styles.alignContent, styles.alignItems, styles.justifyContent, styles.justifyItems, styles.order, styles.flex, styles.flexShrink, styles.flexGrow, styles.justifySelf, styles.alignSelf, _gap.gap);
38
- exports.FLEXBOX = FLEXBOX;
39
- var GRID = styles.grid;
40
- exports.GRID = GRID;
29
+ var TYPOGRAPHY = exports.TYPOGRAPHY = styles.compose(typeScale, styles.fontFamily, styles.fontStyle, styles.fontWeight, styles.lineHeight, styles.textAlign);
30
+ var LAYOUT = exports.LAYOUT = styles.compose(styles.display, styles.size, styles.width, styles.height, styles.minWidth, styles.minHeight, styles.maxWidth, styles.maxHeight, styles.overflow, styles.verticalAlign);
31
+ var POSITION = exports.POSITION = styles.compose(styles.position, styles.zIndex, styles.top, styles.right, styles.bottom, styles.left);
32
+ var FLEXBOX = exports.FLEXBOX = styles.compose(styles.flexBasis, styles.flexDirection, styles.flexWrap, styles.alignContent, styles.alignItems, styles.justifyContent, styles.justifyItems, styles.order, styles.flex, styles.flexShrink, styles.flexGrow, styles.justifySelf, styles.alignSelf, _gap.gap);
33
+ var GRID = exports.GRID = styles.grid;
@@ -12,7 +12,7 @@ var _styledComponents = require("styled-components");
12
12
  *
13
13
  * note: colors are limited to our theme colors
14
14
  */
15
- var useInteractiveColor = function useInteractiveColor(themeColor) {
15
+ var useInteractiveColor = exports.useInteractiveColor = function useInteractiveColor(themeColor) {
16
16
  // Throw error if used outside of a ThemeProvider (styled-components)
17
17
  if (!(0, _styledComponents.useTheme)()) {
18
18
  throw new Error('useInteractiveColor() must be used within a Styled Components ThemeProvider');
@@ -28,5 +28,4 @@ var useInteractiveColor = function useInteractiveColor(themeColor) {
28
28
  // If the theme mode is light, return a darkened version of the themeValue
29
29
  return (0, _polished.darken)(0.2, themeColor);
30
30
  }
31
- };
32
- exports.useInteractiveColor = useInteractiveColor;
31
+ };