@sproutsocial/racine 12.22.0 → 12.22.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 (323) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -0
  3. package/__flow__/Avatar/__tests__/features.test.js +98 -0
  4. package/__flow__/Banner/index.js +2 -1
  5. package/__flow__/CharacterCounter/index.test.js +1 -1
  6. package/__flow__/Collapsible/index.js +2 -2
  7. package/__flow__/Drawer/index.js +11 -0
  8. package/__flow__/Drawer/index.stories.js +2 -1
  9. package/__flow__/EmptyState/index.test.js +1 -1
  10. package/__flow__/Fieldset/index.js +1 -1
  11. package/__flow__/Indicator/index.js +1 -1
  12. package/__flow__/Input/index.js +2 -1
  13. package/__flow__/Link/index.js +2 -1
  14. package/__flow__/Link/index.test.js +2 -0
  15. package/__flow__/Listbox/index.stories.js +1 -0
  16. package/__flow__/Loader/index.js +1 -1
  17. package/__flow__/Modal/index.stories.js +1 -1
  18. package/__flow__/Numeral/tests/testNumeral.js +1 -0
  19. package/__flow__/Popout/index.js +1 -1
  20. package/__flow__/Portal/index.stories.js +7 -7
  21. package/__flow__/SegmentedControl/index.js +1 -1
  22. package/__flow__/Table/index.js +4 -4
  23. package/__flow__/TableCell/index.js +1 -1
  24. package/__flow__/TableHeaderCell/index.js +1 -1
  25. package/__flow__/Tabs/index.js +1 -1
  26. package/__flow__/Textarea/index.js +1 -1
  27. package/__flow__/Toast/index.js +1 -1
  28. package/__flow__/Toast/styles.js +1 -1
  29. package/__flow__/TokenInput/index.stories.js +4 -4
  30. package/__flow__/TokenInput/tests/default/pasting.test.js +6 -2
  31. package/__flow__/code-guidelines.mdx +244 -0
  32. package/__flow__/setupTests.js +1 -0
  33. package/__flow__/utils/a11yTest.js +1 -0
  34. package/__flow__/utils/system-props.js +1 -0
  35. package/commonjs/Avatar/index.js +19 -10
  36. package/commonjs/Badge/constants.js +3 -1
  37. package/commonjs/Badge/index.js +7 -3
  38. package/commonjs/Badge/styles.js +4 -2
  39. package/commonjs/Banner/index.js +9 -4
  40. package/commonjs/Banner/styles.js +5 -2
  41. package/commonjs/Box/index.js +5 -2
  42. package/commonjs/Box/styles.js +3 -1
  43. package/commonjs/Breadcrumb/index.js +12 -5
  44. package/commonjs/Breadcrumb/styles.js +3 -1
  45. package/commonjs/Button/index.js +7 -3
  46. package/commonjs/Button/styles.js +6 -3
  47. package/commonjs/Card/index.js +7 -3
  48. package/commonjs/Card/styles.js +3 -1
  49. package/commonjs/CharacterCounter/index.js +39 -22
  50. package/commonjs/CharacterCounter/styles.js +5 -2
  51. package/commonjs/ChartLegend/index.js +7 -3
  52. package/commonjs/ChartLegend/styles.js +5 -2
  53. package/commonjs/Checkbox/index.js +117 -97
  54. package/commonjs/Checkbox/styles.js +5 -2
  55. package/commonjs/Collapsible/index.js +27 -12
  56. package/commonjs/Collapsible/styles.js +4 -2
  57. package/commonjs/DatePicker/DateRangePicker.js +7 -3
  58. package/commonjs/DatePicker/SingleDatePicker.js +7 -3
  59. package/commonjs/DatePicker/StatefulDateRangePicker.js +19 -7
  60. package/commonjs/DatePicker/StatefulSingleDatePicker.js +16 -5
  61. package/commonjs/DatePicker/common.js +4 -2
  62. package/commonjs/DatePicker/index.js +15 -3
  63. package/commonjs/DatePicker/styles.js +5 -2
  64. package/commonjs/Drawer/SlideTransition.js +9 -5
  65. package/commonjs/Drawer/index.js +15 -7
  66. package/commonjs/Drawer/styles.js +5 -2
  67. package/commonjs/EmptyState/index.js +7 -3
  68. package/commonjs/Fieldset/index.js +10 -6
  69. package/commonjs/Fieldset/styles.js +5 -2
  70. package/commonjs/FormField/index.js +17 -6
  71. package/commonjs/Icon/deprecatedIcons.js +3 -1
  72. package/commonjs/Icon/index.js +9 -5
  73. package/commonjs/Icon/styles.js +6 -3
  74. package/commonjs/Image/index.js +78 -58
  75. package/commonjs/Image/styles.js +5 -2
  76. package/commonjs/Indicator/index.js +40 -23
  77. package/commonjs/Indicator/styles.js +4 -2
  78. package/commonjs/Input/index.js +156 -132
  79. package/commonjs/Input/styles.js +5 -2
  80. package/commonjs/KeyboardKey/index.js +30 -14
  81. package/commonjs/KeyboardKey/styles.js +3 -1
  82. package/commonjs/Label/index.js +32 -16
  83. package/commonjs/Link/constants.js +3 -1
  84. package/commonjs/Link/index.js +9 -4
  85. package/commonjs/Link/styles.js +5 -2
  86. package/commonjs/Listbox/index.js +15 -8
  87. package/commonjs/Loader/index.js +43 -26
  88. package/commonjs/Loader/styles.js +5 -2
  89. package/commonjs/LoaderButton/index.js +7 -3
  90. package/commonjs/Menu/constants.js +3 -1
  91. package/commonjs/Menu/descendants.js +35 -20
  92. package/commonjs/Menu/hooks.js +8 -8
  93. package/commonjs/Menu/index.flow.js +2 -1
  94. package/commonjs/Menu/index.js +44 -27
  95. package/commonjs/Menu/names.js +3 -1
  96. package/commonjs/Menu/styles.js +6 -3
  97. package/commonjs/Message/index.js +7 -3
  98. package/commonjs/Message/styles.js +4 -2
  99. package/commonjs/Modal/index.js +9 -5
  100. package/commonjs/Modal/styles.js +9 -5
  101. package/commonjs/Numeral/constants.js +3 -1
  102. package/commonjs/Numeral/index.js +16 -5
  103. package/commonjs/Numeral/styles.js +3 -1
  104. package/commonjs/Numeral/tests/testNumeral.js +16 -11
  105. package/commonjs/OverflowList/index.flow.js +2 -1
  106. package/commonjs/OverflowList/index.js +6 -3
  107. package/commonjs/OverflowList/styles.js +5 -2
  108. package/commonjs/PartnerLogo/index.js +9 -6
  109. package/commonjs/PartnerLogo/styles.js +5 -2
  110. package/commonjs/Popout/index.js +28 -13
  111. package/commonjs/Popout/styles.js +3 -1
  112. package/commonjs/Portal/index.js +50 -30
  113. package/commonjs/Radio/index.js +73 -56
  114. package/commonjs/Radio/styles.js +5 -2
  115. package/commonjs/SegmentedControl/index.js +21 -9
  116. package/commonjs/SegmentedControl/styles.js +5 -2
  117. package/commonjs/Select/index.js +78 -61
  118. package/commonjs/Select/styles.js +8 -5
  119. package/commonjs/Skeleton/index.js +4 -2
  120. package/commonjs/SpotIllustration/illustrationNames.js +3 -1
  121. package/commonjs/SpotIllustration/index.js +5 -3
  122. package/commonjs/Stack/index.js +7 -3
  123. package/commonjs/Switch/index.js +52 -35
  124. package/commonjs/Switch/styles.js +6 -3
  125. package/commonjs/Table/index.js +14 -10
  126. package/commonjs/Table/styles.js +3 -1
  127. package/commonjs/TableCell/index.js +39 -23
  128. package/commonjs/TableCell/styles.js +3 -1
  129. package/commonjs/TableHeaderCell/index.js +54 -37
  130. package/commonjs/TableHeaderCell/styles.js +5 -2
  131. package/commonjs/TableRowAccordion/index.js +61 -44
  132. package/commonjs/TableRowAccordion/styles.js +5 -2
  133. package/commonjs/Tabs/index.js +116 -90
  134. package/commonjs/Tabs/styles.js +8 -5
  135. package/commonjs/Text/index.js +7 -3
  136. package/commonjs/Text/styles.js +5 -2
  137. package/commonjs/Textarea/index.js +104 -87
  138. package/commonjs/Textarea/styles.js +5 -2
  139. package/commonjs/ThemeProvider/index.js +5 -2
  140. package/commonjs/Toast/index.js +7 -8
  141. package/commonjs/Toast/styles.js +5 -2
  142. package/commonjs/ToggleHint/index.js +43 -26
  143. package/commonjs/ToggleHint/styles.js +6 -3
  144. package/commonjs/Token/index.js +7 -3
  145. package/commonjs/Token/styles.js +5 -2
  146. package/commonjs/TokenInput/index.js +221 -192
  147. package/commonjs/TokenInput/styles.js +5 -2
  148. package/commonjs/TokenInput/util.js +5 -3
  149. package/commonjs/Tooltip/index.js +30 -14
  150. package/commonjs/Tooltip/styles.js +3 -1
  151. package/commonjs/VisuallyHidden/index.js +3 -1
  152. package/commonjs/dataviz/index.js +3 -1
  153. package/commonjs/index.js +451 -84
  154. package/commonjs/systemProps/background.js +3 -1
  155. package/commonjs/systemProps/border.js +3 -1
  156. package/commonjs/systemProps/color.js +3 -1
  157. package/commonjs/systemProps/custom.js +3 -1
  158. package/commonjs/systemProps/flexbox.js +3 -1
  159. package/commonjs/systemProps/grid.js +3 -1
  160. package/commonjs/systemProps/index.js +87 -15
  161. package/commonjs/systemProps/layout.js +3 -1
  162. package/commonjs/systemProps/position.js +3 -1
  163. package/commonjs/systemProps/shadow.js +3 -1
  164. package/commonjs/systemProps/space.js +3 -1
  165. package/commonjs/systemProps/systemProps.js +3 -1
  166. package/commonjs/systemProps/typography.js +3 -1
  167. package/commonjs/systemProps/variant.js +3 -1
  168. package/commonjs/themes/dark/dataviz-palette.js +3 -1
  169. package/commonjs/themes/dark/decorative-palettes.js +3 -1
  170. package/commonjs/themes/dark/theme.js +11 -7
  171. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +9 -5
  172. package/commonjs/themes/extendedThemes/sproutTheme/index.js +15 -4
  173. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +8 -4
  174. package/commonjs/themes/light/dataviz-palette.js +3 -1
  175. package/commonjs/themes/light/decorative-palettes.js +3 -1
  176. package/commonjs/themes/light/literal-colors.js +3 -1
  177. package/commonjs/themes/light/theme.js +17 -13
  178. package/commonjs/utils/a11yTest.js +5 -2
  179. package/commonjs/utils/chartColors.js +3 -1
  180. package/commonjs/utils/constants.js +3 -1
  181. package/commonjs/utils/dataQaLabelQueries.js +26 -16
  182. package/commonjs/utils/hooks.js +39 -26
  183. package/commonjs/utils/index.js +18 -8
  184. package/commonjs/utils/innerText.js +4 -2
  185. package/commonjs/utils/mixins.js +3 -1
  186. package/commonjs/utils/react-testing-library.js +74 -18
  187. package/commonjs/utils/responsiveProps/index.js +16 -8
  188. package/commonjs/utils/system-props.js +6 -2
  189. package/commonjs/utils/useInteractiveColor.js +3 -1
  190. package/dist/themes/dark/theme.scss +0 -1
  191. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +0 -1
  192. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +0 -1
  193. package/dist/themes/light/theme.scss +0 -1
  194. package/lib/Avatar/index.js +17 -11
  195. package/lib/Badge/index.js +5 -4
  196. package/lib/Badge/styles.js +3 -3
  197. package/lib/Banner/index.js +7 -5
  198. package/lib/Banner/styles.js +1 -1
  199. package/lib/Box/index.js +1 -1
  200. package/lib/Box/styles.js +1 -1
  201. package/lib/Breadcrumb/index.js +11 -7
  202. package/lib/Button/index.js +3 -2
  203. package/lib/Button/styles.js +4 -4
  204. package/lib/Card/index.js +3 -2
  205. package/lib/Card/styles.js +2 -2
  206. package/lib/CharacterCounter/index.js +36 -21
  207. package/lib/CharacterCounter/styles.js +1 -1
  208. package/lib/ChartLegend/index.js +5 -4
  209. package/lib/ChartLegend/styles.js +1 -1
  210. package/lib/Checkbox/index.js +114 -96
  211. package/lib/Checkbox/styles.js +5 -5
  212. package/lib/Collapsible/index.js +24 -12
  213. package/lib/Collapsible/styles.js +2 -2
  214. package/lib/DatePicker/DateRangePicker.js +4 -3
  215. package/lib/DatePicker/SingleDatePicker.js +4 -3
  216. package/lib/DatePicker/StatefulDateRangePicker.js +15 -6
  217. package/lib/DatePicker/StatefulSingleDatePicker.js +12 -4
  218. package/lib/DatePicker/common.js +3 -3
  219. package/lib/DatePicker/index.js +2 -2
  220. package/lib/DatePicker/styles.js +2 -2
  221. package/lib/Drawer/SlideTransition.js +4 -3
  222. package/lib/Drawer/index.js +17 -12
  223. package/lib/Drawer/styles.js +2 -2
  224. package/lib/EmptyState/index.js +4 -3
  225. package/lib/Fieldset/index.js +8 -7
  226. package/lib/Fieldset/styles.js +1 -1
  227. package/lib/FormField/index.js +17 -9
  228. package/lib/Icon/index.js +8 -7
  229. package/lib/Icon/styles.js +2 -2
  230. package/lib/Image/index.js +75 -57
  231. package/lib/Image/styles.js +1 -1
  232. package/lib/Indicator/index.js +38 -23
  233. package/lib/Indicator/styles.js +3 -3
  234. package/lib/Input/index.js +157 -135
  235. package/lib/Input/styles.js +2 -2
  236. package/lib/KeyboardKey/index.js +28 -14
  237. package/lib/KeyboardKey/styles.js +1 -1
  238. package/lib/Label/index.js +29 -15
  239. package/lib/Link/index.js +5 -3
  240. package/lib/Link/styles.js +3 -3
  241. package/lib/Listbox/index.js +14 -10
  242. package/lib/Loader/index.js +40 -25
  243. package/lib/Loader/styles.js +2 -2
  244. package/lib/LoaderButton/index.js +5 -4
  245. package/lib/Menu/descendants.js +30 -18
  246. package/lib/Menu/hooks.js +7 -9
  247. package/lib/Menu/index.flow.js +4 -4
  248. package/lib/Menu/index.js +54 -40
  249. package/lib/Menu/styles.js +3 -3
  250. package/lib/Message/index.js +6 -5
  251. package/lib/Message/styles.js +4 -4
  252. package/lib/Modal/index.js +9 -8
  253. package/lib/Modal/styles.js +6 -5
  254. package/lib/Numeral/index.js +15 -7
  255. package/lib/Numeral/styles.js +1 -1
  256. package/lib/Numeral/tests/testNumeral.js +15 -11
  257. package/lib/OverflowList/index.js +3 -3
  258. package/lib/OverflowList/styles.js +1 -1
  259. package/lib/PartnerLogo/index.js +8 -7
  260. package/lib/PartnerLogo/styles.js +1 -1
  261. package/lib/Popout/index.js +27 -15
  262. package/lib/Popout/styles.js +1 -1
  263. package/lib/Portal/index.js +47 -29
  264. package/lib/Radio/index.js +70 -55
  265. package/lib/Radio/styles.js +3 -3
  266. package/lib/SegmentedControl/index.js +18 -9
  267. package/lib/SegmentedControl/styles.js +3 -3
  268. package/lib/Select/index.js +76 -61
  269. package/lib/Select/styles.js +5 -5
  270. package/lib/Skeleton/index.js +2 -2
  271. package/lib/SpotIllustration/index.js +3 -3
  272. package/lib/Stack/index.js +4 -3
  273. package/lib/Switch/index.js +51 -36
  274. package/lib/Switch/styles.js +4 -4
  275. package/lib/Table/index.js +12 -11
  276. package/lib/Table/styles.js +1 -1
  277. package/lib/TableCell/index.js +36 -22
  278. package/lib/TableCell/styles.js +1 -1
  279. package/lib/TableHeaderCell/index.js +52 -37
  280. package/lib/TableHeaderCell/styles.js +1 -1
  281. package/lib/TableRowAccordion/index.js +60 -45
  282. package/lib/TableRowAccordion/styles.js +1 -1
  283. package/lib/Tabs/index.js +113 -89
  284. package/lib/Tabs/styles.js +5 -5
  285. package/lib/Text/index.js +3 -2
  286. package/lib/Text/styles.js +1 -1
  287. package/lib/Textarea/index.js +101 -86
  288. package/lib/Textarea/styles.js +2 -2
  289. package/lib/ThemeProvider/index.js +1 -1
  290. package/lib/Toast/index.js +6 -10
  291. package/lib/Toast/styles.js +4 -3
  292. package/lib/ToggleHint/index.js +41 -26
  293. package/lib/ToggleHint/styles.js +3 -3
  294. package/lib/Token/index.js +6 -5
  295. package/lib/Token/styles.js +3 -3
  296. package/lib/TokenInput/index.js +223 -196
  297. package/lib/TokenInput/styles.js +2 -2
  298. package/lib/TokenInput/util.js +2 -2
  299. package/lib/Tooltip/index.js +28 -14
  300. package/lib/Tooltip/styles.js +1 -1
  301. package/lib/VisuallyHidden/index.js +1 -1
  302. package/lib/dataviz/index.js +1 -1
  303. package/lib/index.js +64 -64
  304. package/lib/systemProps/index.js +14 -14
  305. package/lib/systemProps/systemProps.js +12 -12
  306. package/lib/themes/dark/theme.js +11 -9
  307. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +7 -5
  308. package/lib/themes/extendedThemes/sproutTheme/index.js +2 -2
  309. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +6 -4
  310. package/lib/themes/light/theme.js +17 -15
  311. package/lib/types/theme.colors.flow.js +2 -2
  312. package/lib/types/theme.flow.js +2 -2
  313. package/lib/utils/a11yTest.js +3 -1
  314. package/lib/utils/dataQaLabelQueries.js +23 -15
  315. package/lib/utils/hooks.js +37 -26
  316. package/lib/utils/index.js +15 -7
  317. package/lib/utils/innerText.js +1 -1
  318. package/lib/utils/mixins.js +1 -1
  319. package/lib/utils/react-testing-library.js +11 -8
  320. package/lib/utils/responsiveProps/index.js +14 -8
  321. package/lib/utils/system-props.js +1 -0
  322. package/package.json +16 -27
  323. package/__flow__/Avatar/index.test.js +0 -23
@@ -1,85 +1,100 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
2
  var _excluded = ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "qa"];
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
6
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
8
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
9
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
5
10
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
13
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
14
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
15
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
16
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
17
  import * as React from 'react';
7
- import Container, { Input, InputWrapper, LabelText } from './styles';
18
+ import Container, { Input, InputWrapper, LabelText } from "./styles";
8
19
  /**
9
20
  * Primitive Radio Element
10
21
  */
11
22
  var Radio = /*#__PURE__*/function (_React$Component) {
12
- _inheritsLoose(Radio, _React$Component);
23
+ _inherits(Radio, _React$Component);
24
+ var _super = _createSuper(Radio);
13
25
  function Radio() {
14
26
  var _this;
27
+ _classCallCheck(this, Radio);
15
28
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16
29
  args[_key] = arguments[_key];
17
30
  }
18
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
19
- _this.handleChange = function (e) {
31
+ _this = _super.call.apply(_super, [this].concat(args));
32
+ _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
20
33
  if (!!_this.props.checked || _this.props.disabled) {
21
34
  return;
22
35
  }
23
36
  _this.props.onChange && _this.props.onChange(e);
24
- };
25
- _this.handleFocus = function (e) {
37
+ });
38
+ _defineProperty(_assertThisInitialized(_this), "handleFocus", function (e) {
26
39
  if (_this.props.onFocus) {
27
40
  _this.props.onFocus(e);
28
41
  }
29
- };
30
- _this.handleBlur = function (e) {
42
+ });
43
+ _defineProperty(_assertThisInitialized(_this), "handleBlur", function (e) {
31
44
  if (_this.props.onBlur) {
32
45
  _this.props.onBlur(e);
33
46
  }
34
- };
47
+ });
35
48
  return _this;
36
49
  }
37
- var _proto = Radio.prototype;
38
- _proto.render = function render() {
39
- var _this$props = this.props,
40
- id = _this$props.id,
41
- value = _this$props.value,
42
- name = _this$props.name,
43
- label = _this$props.label,
44
- checked = _this$props.checked,
45
- disabled = _this$props.disabled,
46
- onChange = _this$props.onChange,
47
- onFocus = _this$props.onFocus,
48
- onBlur = _this$props.onBlur,
49
- ariaLabel = _this$props.ariaLabel,
50
- _this$props$qa = _this$props.qa,
51
- qa = _this$props$qa === void 0 ? {} : _this$props$qa,
52
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
53
- return (
54
- /*#__PURE__*/
55
- // $FlowIssue - upgrade v0.112.0
56
- React.createElement(Container, _extends({
57
- as: label && 'label'
58
- }, rest), /*#__PURE__*/React.createElement(InputWrapper, {
59
- checked: checked,
60
- disabled: disabled
61
- }, /*#__PURE__*/React.createElement(Input, _extends({
62
- type: "radio",
63
- id: id,
64
- "aria-label": ariaLabel,
65
- value: value,
66
- name: name,
67
- checked: checked,
68
- disabled: disabled,
69
- onChange: this.handleChange,
70
- onFocus: this.handleFocus,
71
- onBlur: this.handleBlur,
72
- "data-qa-radio": name || '',
73
- "data-qa-radio-ischecked": checked === true,
74
- "data-qa-radio-isdisabled": disabled === true
75
- }, qa))), label && /*#__PURE__*/React.createElement(LabelText, {
76
- disabled: disabled
77
- }, label))
78
- );
79
- };
50
+ _createClass(Radio, [{
51
+ key: "render",
52
+ value: function render() {
53
+ var _this$props = this.props,
54
+ id = _this$props.id,
55
+ value = _this$props.value,
56
+ name = _this$props.name,
57
+ label = _this$props.label,
58
+ checked = _this$props.checked,
59
+ disabled = _this$props.disabled,
60
+ onChange = _this$props.onChange,
61
+ onFocus = _this$props.onFocus,
62
+ onBlur = _this$props.onBlur,
63
+ ariaLabel = _this$props.ariaLabel,
64
+ _this$props$qa = _this$props.qa,
65
+ qa = _this$props$qa === void 0 ? {} : _this$props$qa,
66
+ rest = _objectWithoutProperties(_this$props, _excluded);
67
+ return (
68
+ /*#__PURE__*/
69
+ // $FlowIssue - upgrade v0.112.0
70
+ React.createElement(Container, _extends({
71
+ as: label && 'label'
72
+ }, rest), /*#__PURE__*/React.createElement(InputWrapper, {
73
+ checked: checked,
74
+ disabled: disabled
75
+ }, /*#__PURE__*/React.createElement(Input, _extends({
76
+ type: "radio",
77
+ id: id,
78
+ "aria-label": ariaLabel,
79
+ value: value,
80
+ name: name,
81
+ checked: checked,
82
+ disabled: disabled,
83
+ onChange: this.handleChange,
84
+ onFocus: this.handleFocus,
85
+ onBlur: this.handleBlur,
86
+ "data-qa-radio": name || '',
87
+ "data-qa-radio-ischecked": checked === true,
88
+ "data-qa-radio-isdisabled": disabled === true
89
+ }, qa))), label && /*#__PURE__*/React.createElement(LabelText, {
90
+ disabled: disabled
91
+ }, label))
92
+ );
93
+ }
94
+ }]);
80
95
  return Radio;
81
96
  }(React.Component);
82
- Radio.defaultProps = {
97
+ _defineProperty(Radio, "defaultProps", {
83
98
  disabled: false
84
- };
99
+ });
85
100
  export { Radio as default };
@@ -1,8 +1,8 @@
1
1
 
2
2
  import styled, { css } from 'styled-components';
3
- import { COMMON } from '../utils/system-props';
4
- import { focusRing, disabled } from '../utils/mixins';
5
- import Text from '../Text/';
3
+ import { COMMON } from "../utils/system-props";
4
+ import { focusRing, disabled } from "../utils/mixins";
5
+ import Text from "../Text/";
6
6
  var Container = styled.span.withConfig({
7
7
  displayName: "styles__Container",
8
8
  componentId: "sc-uyr445-0"
@@ -1,28 +1,36 @@
1
1
  var _excluded = ["value", "children"],
2
2
  _excluded2 = ["selectedValue", "label", "onChange", "children"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
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(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
9
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
12
  import * as React from 'react';
6
13
  import { useState, useContext } from 'react';
7
- import { SegmentedControlContainer, SegmentedControlItemContainer, SegmentedControlLabel } from './styles';
8
- import Box from '../Box';
14
+ import { SegmentedControlContainer, SegmentedControlItemContainer, SegmentedControlLabel } from "./styles";
15
+ import Box from "../Box";
9
16
  var nameCounter = 0;
10
17
  var idCounter = 0;
11
18
  var SegmentedControlContext = /*#__PURE__*/React.createContext(null);
12
19
  var SegmentedControlItem = function SegmentedControlItem(_ref) {
13
20
  var value = _ref.value,
14
21
  children = _ref.children,
15
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
22
+ rest = _objectWithoutProperties(_ref, _excluded);
16
23
  var context = useContext(SegmentedControlContext);
17
- if (context == null) {
24
+ if (!context) {
18
25
  return null;
19
26
  }
20
27
  var name = context.name,
21
28
  selectedValue = context.selectedValue,
22
29
  onChange = context.onChange;
23
30
  /* eslint-disable-next-line */
24
- var _useState = useState(name + "-" + idCounter++),
25
- id = _useState[0];
31
+ var _useState = useState("".concat(name, "-").concat(idCounter++)),
32
+ _useState2 = _slicedToArray(_useState, 1),
33
+ id = _useState2[0];
26
34
  var isChecked = value === selectedValue;
27
35
  return /*#__PURE__*/React.createElement(SegmentedControlItemContainer, _extends({
28
36
  "data-segmentedcontrol-isactive": isChecked,
@@ -48,9 +56,10 @@ var SegmentedControl = function SegmentedControl(_ref2) {
48
56
  label = _ref2.label,
49
57
  onChange = _ref2.onChange,
50
58
  children = _ref2.children,
51
- rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
52
- var _useState2 = useState("Racine-segmented-control-" + nameCounter++),
53
- name = _useState2[0];
59
+ rest = _objectWithoutProperties(_ref2, _excluded2);
60
+ var _useState3 = useState("Racine-segmented-control-".concat(nameCounter++)),
61
+ _useState4 = _slicedToArray(_useState3, 1),
62
+ name = _useState4[0];
54
63
  return /*#__PURE__*/React.createElement(SegmentedControlContext.Provider, {
55
64
  value: {
56
65
  name: name,
@@ -1,8 +1,8 @@
1
1
 
2
2
  import styled, { css } from 'styled-components';
3
- import Box from '../Box';
4
- import Text from '../Text';
5
- import { visuallyHidden, focusRing, disabled } from '../utils/mixins';
3
+ import Box from "../Box";
4
+ import Text from "../Text";
5
+ import { visuallyHidden, focusRing, disabled } from "../utils/mixins";
6
6
  export var SegmentedControlContainer = styled(Box).withConfig({
7
7
  displayName: "styles__SegmentedControlContainer",
8
8
  componentId: "sc-1o18lau-0"
@@ -1,82 +1,97 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
2
  var _excluded = ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"];
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
6
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
8
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
9
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
5
10
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
13
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
14
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
15
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
16
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
17
  import * as React from 'react';
7
- import Container, { Arrow } from './styles';
8
- import Icon from '../Icon';
18
+ import Container, { Arrow } from "./styles";
19
+ import Icon from "../Icon";
9
20
  var Select = /*#__PURE__*/function (_React$Component) {
10
- _inheritsLoose(Select, _React$Component);
21
+ _inherits(Select, _React$Component);
22
+ var _super = _createSuper(Select);
11
23
  function Select() {
12
24
  var _this;
25
+ _classCallCheck(this, Select);
13
26
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14
27
  args[_key] = arguments[_key];
15
28
  }
16
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
17
- _this.handleChange = function (e) {
29
+ _this = _super.call.apply(_super, [this].concat(args));
30
+ _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
18
31
  var onChange = _this.props.onChange;
19
32
  if (onChange) {
20
33
  onChange(e);
21
34
  }
22
- };
35
+ });
23
36
  return _this;
24
37
  }
25
- var _proto = Select.prototype;
26
- _proto.render = function render() {
27
- var _this$props = this.props,
28
- id = _this$props.id,
29
- name = _this$props.name,
30
- children = _this$props.children,
31
- defaultValue = _this$props.defaultValue,
32
- value = _this$props.value,
33
- required = _this$props.required,
34
- isInvalid = _this$props.isInvalid,
35
- autoFocus = _this$props.autoFocus,
36
- disabled = _this$props.disabled,
37
- onChange = _this$props.onChange,
38
- ariaLabel = _this$props.ariaLabel,
39
- ariaDescribedby = _this$props.ariaDescribedby,
40
- size = _this$props.size,
41
- _this$props$qa = _this$props.qa,
42
- qa = _this$props$qa === void 0 ? {} : _this$props$qa,
43
- _this$props$inputProp = _this$props.inputProps,
44
- inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
45
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
46
- return (
47
- /*#__PURE__*/
48
- // $FlowIssue - upgrade v0.112.0
49
- React.createElement(Container, _extends({
50
- invalid: isInvalid,
51
- disabled: disabled,
52
- size: size
53
- }, rest), /*#__PURE__*/React.createElement("select", _extends({
54
- id: id,
55
- name: name,
56
- "aria-label": ariaLabel,
57
- "aria-describedby": ariaDescribedby,
58
- defaultValue: defaultValue,
59
- value: value,
60
- required: required,
61
- autoFocus: autoFocus,
62
- disabled: disabled,
63
- onChange: this.handleChange,
64
- "data-qa-select": name || '',
65
- "data-qa-select-value": value || 'unselected',
66
- "data-qa-select-isrequired": required === true,
67
- "data-qa-select-isdisabled": disabled === true
68
- }, qa, inputProps), children), /*#__PURE__*/React.createElement(Arrow, {
69
- size: size
70
- }, /*#__PURE__*/React.createElement(Icon, {
71
- name: "chevron-down",
72
- fixedWidth: true,
73
- size: this.props.size === 'small' ? 'mini' : 'default'
74
- })))
75
- );
76
- };
38
+ _createClass(Select, [{
39
+ key: "render",
40
+ value: function render() {
41
+ var _this$props = this.props,
42
+ id = _this$props.id,
43
+ name = _this$props.name,
44
+ children = _this$props.children,
45
+ defaultValue = _this$props.defaultValue,
46
+ value = _this$props.value,
47
+ required = _this$props.required,
48
+ isInvalid = _this$props.isInvalid,
49
+ autoFocus = _this$props.autoFocus,
50
+ disabled = _this$props.disabled,
51
+ onChange = _this$props.onChange,
52
+ ariaLabel = _this$props.ariaLabel,
53
+ ariaDescribedby = _this$props.ariaDescribedby,
54
+ size = _this$props.size,
55
+ _this$props$qa = _this$props.qa,
56
+ qa = _this$props$qa === void 0 ? {} : _this$props$qa,
57
+ _this$props$inputProp = _this$props.inputProps,
58
+ inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
59
+ rest = _objectWithoutProperties(_this$props, _excluded);
60
+ return (
61
+ /*#__PURE__*/
62
+ // $FlowIssue - upgrade v0.112.0
63
+ React.createElement(Container, _extends({
64
+ invalid: isInvalid,
65
+ disabled: disabled,
66
+ size: size
67
+ }, rest), /*#__PURE__*/React.createElement("select", _extends({
68
+ id: id,
69
+ name: name,
70
+ "aria-label": ariaLabel,
71
+ "aria-describedby": ariaDescribedby,
72
+ defaultValue: defaultValue,
73
+ value: value,
74
+ required: required,
75
+ autoFocus: autoFocus,
76
+ disabled: disabled,
77
+ onChange: this.handleChange,
78
+ "data-qa-select": name || '',
79
+ "data-qa-select-value": value || 'unselected',
80
+ "data-qa-select-isrequired": required === true,
81
+ "data-qa-select-isdisabled": disabled === true
82
+ }, qa, inputProps), children), /*#__PURE__*/React.createElement(Arrow, {
83
+ size: size
84
+ }, /*#__PURE__*/React.createElement(Icon, {
85
+ name: "chevron-down",
86
+ fixedWidth: true,
87
+ size: this.props.size === 'small' ? 'mini' : 'default'
88
+ })))
89
+ );
90
+ }
91
+ }]);
77
92
  return Select;
78
93
  }(React.Component);
79
- Select.defaultProps = {
94
+ _defineProperty(Select, "defaultProps", {
80
95
  size: 'default'
81
- };
96
+ });
82
97
  export { Select as default };
@@ -1,7 +1,7 @@
1
1
 
2
2
  import styled, { css } from 'styled-components';
3
- import { COMMON } from '../utils/system-props';
4
- import { focusRing } from '../utils/mixins';
3
+ import { COMMON } from "../utils/system-props";
4
+ import { focusRing } from "../utils/mixins";
5
5
  var Container = styled.div.withConfig({
6
6
  displayName: "styles__Container",
7
7
  componentId: "sc-1j75x48-0"
@@ -30,12 +30,12 @@ var Container = styled.div.withConfig({
30
30
  }, function (props) {
31
31
  switch (props.size) {
32
32
  case 'large':
33
- return props.theme.space[400] + " " + props.theme.space[600] + " " + props.theme.space[400] + " " + props.theme.space[400];
33
+ return "".concat(props.theme.space[400], " ").concat(props.theme.space[600], " ").concat(props.theme.space[400], " ").concat(props.theme.space[400]);
34
34
  case 'small':
35
- return props.theme.space[200] + " " + props.theme.space[500] + " " + props.theme.space[200] + " " + props.theme.space[200];
35
+ return "".concat(props.theme.space[200], " ").concat(props.theme.space[500], " ").concat(props.theme.space[200], " ").concat(props.theme.space[200]);
36
36
  case 'default':
37
37
  default:
38
- return props.theme.space[300] + " " + props.theme.space[500] + " " + props.theme.space[300] + " " + props.theme.space[300];
38
+ return "".concat(props.theme.space[300], " ").concat(props.theme.space[500], " ").concat(props.theme.space[300], " ").concat(props.theme.space[300]);
39
39
  }
40
40
  }, function (props) {
41
41
  switch (props.size) {
@@ -1,6 +1,6 @@
1
1
 
2
2
  import styled from 'styled-components';
3
- import Box from '../Box';
3
+ import Box from "../Box";
4
4
  import { transparentize } from 'polished';
5
5
  var Skeleton = styled(Box).withConfig({
6
6
  displayName: "Skeleton",
@@ -8,7 +8,7 @@ var Skeleton = styled(Box).withConfig({
8
8
  })(["background:", ";background-image:", ";background-size:400%;background-repeat:no-repeat;animation:SkeletonShimmer 2.5s linear infinite reverse;@media (prefers-reduced-motion){{animation:none;}}@keyframes SkeletonShimmer{0%{background-position:0% 0;}100%{background-position:100% 0;}}"], function (p) {
9
9
  return p.theme.colors.app.background.base;
10
10
  }, function (props) {
11
- return "linear-gradient(\n 288deg,\n " + transparentize(0.7, props.theme.colors.container.border.base) + " 32%,\n " + transparentize(0.05, props.theme.colors.container.border.base) + ",\n " + transparentize(0.7, props.theme.colors.container.border.base) + " 68%\n );";
11
+ return "linear-gradient(\n 288deg,\n ".concat(transparentize(0.7, props.theme.colors.container.border.base), " 32%,\n ").concat(transparentize(0.05, props.theme.colors.container.border.base), ",\n ").concat(transparentize(0.7, props.theme.colors.container.border.base), " 68%\n );");
12
12
  });
13
13
  export default Skeleton;
14
14
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  import styled from 'styled-components';
3
3
  import React from 'react';
4
- import illustrationViewBoxes from '../IllustrationViewBoxes';
4
+ import illustrationViewBoxes from "../IllustrationViewBoxes";
5
5
  // eslint-disable-next-line flowtype/generic-spacing
6
6
  var StyledSVG = styled.svg.withConfig({
7
7
  displayName: "SpotIllustration__StyledSVG",
@@ -17,7 +17,7 @@ var SpotIllustration = function SpotIllustration(_ref) {
17
17
  height = _ref.height,
18
18
  width = _ref.width;
19
19
  var viewBox = illustrationViewBoxes[name];
20
- var viewBoxCoordinates = (viewBox == null ? void 0 : viewBox.split(' ')) || [];
20
+ var viewBoxCoordinates = (viewBox === null || viewBox === void 0 ? void 0 : viewBox.split(' ')) || [];
21
21
  var defaultWidth = viewBoxCoordinates[2];
22
22
  var defaultHeight = viewBoxCoordinates[3];
23
23
  return /*#__PURE__*/React.createElement(StyledSVG, {
@@ -28,7 +28,7 @@ var SpotIllustration = function SpotIllustration(_ref) {
28
28
  customFill: customFill
29
29
  }, /*#__PURE__*/React.createElement("use", {
30
30
  xmlnsXlink: "http://www.w3.org/1999/xlink",
31
- xlinkHref: "#ssillustrationsvg-" + name
31
+ xlinkHref: "#ssillustrationsvg-".concat(name)
32
32
  }));
33
33
  };
34
34
  export default SpotIllustration;
@@ -1,10 +1,11 @@
1
1
  var _excluded = ["children", "space", "align", "direction"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
5
  import * as React from 'react';
5
6
  import { Children } from 'react';
6
- import Box from '../Box';
7
- import { normalizeResponsiveProp } from '../utils/responsiveProps';
7
+ import Box from "../Box";
8
+ import { normalizeResponsiveProp } from "../utils/responsiveProps";
8
9
  var stackStyles = {
9
10
  horizontal: {
10
11
  left: {
@@ -49,7 +50,7 @@ var Stack = function Stack(_ref) {
49
50
  align = _ref$align === void 0 ? 'left' : _ref$align,
50
51
  _ref$direction = _ref.direction,
51
52
  direction = _ref$direction === void 0 ? 'vertical' : _ref$direction,
52
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
53
+ rest = _objectWithoutProperties(_ref, _excluded);
53
54
  var stackItems = Children.toArray(children);
54
55
  var responsiveAlignment = normalizeResponsiveProp(align);
55
56
  var responsiveDirection = normalizeResponsiveProp(direction);