@sproutsocial/racine 20.13.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 (326) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -0
  3. package/__flow__/types/theme.colors.flow.js +1 -0
  4. package/commonjs/Avatar/Avatar.flow.js +2 -2
  5. package/commonjs/Avatar/Avatar.js +10 -12
  6. package/commonjs/Avatar/constants.flow.js +2 -3
  7. package/commonjs/Avatar/constants.js +2 -3
  8. package/commonjs/Avatar/index.js +1 -2
  9. package/commonjs/Badge/Badge.flow.js +2 -2
  10. package/commonjs/Badge/Badge.js +3 -4
  11. package/commonjs/Badge/constants.flow.js +2 -3
  12. package/commonjs/Badge/constants.js +3 -5
  13. package/commonjs/Badge/index.js +1 -2
  14. package/commonjs/Badge/styles.js +1 -2
  15. package/commonjs/Banner/Banner.flow.js +2 -2
  16. package/commonjs/Banner/Banner.js +3 -4
  17. package/commonjs/Banner/index.js +1 -2
  18. package/commonjs/Banner/styles.js +5 -7
  19. package/commonjs/Box/Box.flow.js +2 -2
  20. package/commonjs/Box/Box.js +3 -4
  21. package/commonjs/Box/index.js +1 -2
  22. package/commonjs/Box/styles.js +1 -2
  23. package/commonjs/Breadcrumb/Breadcrumb.flow.js +2 -2
  24. package/commonjs/Breadcrumb/Breadcrumb.js +5 -6
  25. package/commonjs/Breadcrumb/index.js +1 -2
  26. package/commonjs/Breadcrumb/styles.js +1 -2
  27. package/commonjs/Button/Button.flow.js +2 -2
  28. package/commonjs/Button/Button.js +1 -2
  29. package/commonjs/Button/index.js +1 -2
  30. package/commonjs/Button/styles.js +4 -8
  31. package/commonjs/Card/Card.flow.js +2 -2
  32. package/commonjs/Card/Card.js +3 -4
  33. package/commonjs/Card/CardTypes.flow.js +2 -2
  34. package/commonjs/Card/index.js +1 -2
  35. package/commonjs/Card/styles.js +9 -17
  36. package/commonjs/Card/subComponents.js +9 -15
  37. package/commonjs/Card/utils.js +4 -7
  38. package/commonjs/CharacterCounter/CharacterCounter.flow.js +2 -2
  39. package/commonjs/CharacterCounter/CharacterCounter.js +10 -12
  40. package/commonjs/CharacterCounter/index.js +1 -2
  41. package/commonjs/CharacterCounter/styles.js +3 -4
  42. package/commonjs/ChartLegend/ChartLegend.flow.js +2 -2
  43. package/commonjs/ChartLegend/ChartLegend.js +3 -4
  44. package/commonjs/ChartLegend/index.js +1 -2
  45. package/commonjs/ChartLegend/styles.js +5 -8
  46. package/commonjs/ChartLegend/useChartLabels.js +2 -3
  47. package/commonjs/Checkbox/Checkbox.flow.js +2 -2
  48. package/commonjs/Checkbox/Checkbox.js +11 -13
  49. package/commonjs/Checkbox/index.js +1 -2
  50. package/commonjs/Checkbox/styles.js +9 -16
  51. package/commonjs/Collapsible/Collapsible.flow.js +2 -2
  52. package/commonjs/Collapsible/Collapsible.js +13 -13
  53. package/commonjs/Collapsible/index.js +1 -2
  54. package/commonjs/Collapsible/styles.js +2 -3
  55. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.flow.js +2 -2
  56. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +3 -4
  57. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +2 -2
  58. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.js +4 -5
  59. package/commonjs/DatePicker/DateRangePicker/index.js +1 -2
  60. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +2 -2
  61. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +3 -4
  62. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +2 -2
  63. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +4 -5
  64. package/commonjs/DatePicker/SingleDatePicker/index.js +1 -2
  65. package/commonjs/DatePicker/common.js +9 -15
  66. package/commonjs/DatePicker/index.flow.js +2 -2
  67. package/commonjs/DatePicker/styles.js +5 -7
  68. package/commonjs/Drawer/Drawer.flow.js +2 -2
  69. package/commonjs/Drawer/Drawer.js +11 -11
  70. package/commonjs/Drawer/SlideTransition.js +4 -5
  71. package/commonjs/Drawer/index.js +1 -2
  72. package/commonjs/Drawer/styles.js +4 -6
  73. package/commonjs/EmptyState/EmptyState.flow.js +2 -2
  74. package/commonjs/EmptyState/EmptyState.js +3 -4
  75. package/commonjs/EmptyState/index.js +1 -2
  76. package/commonjs/Fieldset/Fieldset.flow.js +2 -2
  77. package/commonjs/Fieldset/Fieldset.js +3 -4
  78. package/commonjs/Fieldset/index.js +1 -2
  79. package/commonjs/Fieldset/styles.js +4 -5
  80. package/commonjs/FormField/FormField.flow.js +2 -2
  81. package/commonjs/FormField/FormField.js +5 -6
  82. package/commonjs/FormField/index.js +1 -2
  83. package/commonjs/Icon/Icon.flow.js +2 -2
  84. package/commonjs/Icon/Icon.js +5 -6
  85. package/commonjs/Icon/index.flow.js +2 -2
  86. package/commonjs/Icon/index.js +1 -2
  87. package/commonjs/Icon/styles.js +3 -4
  88. package/commonjs/Image/Image.flow.js +2 -2
  89. package/commonjs/Image/Image.js +11 -13
  90. package/commonjs/Image/index.js +1 -2
  91. package/commonjs/Image/styles.js +3 -4
  92. package/commonjs/Indicator/Indicator.flow.js +2 -2
  93. package/commonjs/Indicator/Indicator.js +10 -12
  94. package/commonjs/Indicator/index.js +1 -2
  95. package/commonjs/Indicator/styles.js +1 -2
  96. package/commonjs/Input/Input.flow.js +2 -2
  97. package/commonjs/Input/Input.js +12 -13
  98. package/commonjs/Input/index.js +1 -2
  99. package/commonjs/Input/styles.js +4 -6
  100. package/commonjs/KeyboardKey/KeyboardKey.flow.js +2 -2
  101. package/commonjs/KeyboardKey/KeyboardKey.js +11 -13
  102. package/commonjs/KeyboardKey/index.js +1 -2
  103. package/commonjs/KeyboardKey/styles.js +1 -2
  104. package/commonjs/Label/Label.flow.js +2 -2
  105. package/commonjs/Label/Label.js +11 -13
  106. package/commonjs/Label/index.js +1 -2
  107. package/commonjs/Link/Link.flow.js +2 -2
  108. package/commonjs/Link/Link.js +3 -4
  109. package/commonjs/Link/constants.js +1 -2
  110. package/commonjs/Link/index.js +1 -2
  111. package/commonjs/Link/styles.js +3 -4
  112. package/commonjs/Listbox/Listbox.flow.js +2 -2
  113. package/commonjs/Listbox/Listbox.js +8 -12
  114. package/commonjs/Listbox/index.js +3 -4
  115. package/commonjs/Loader/Loader.flow.js +2 -2
  116. package/commonjs/Loader/Loader.js +10 -12
  117. package/commonjs/Loader/index.js +1 -2
  118. package/commonjs/Loader/styles.js +4 -6
  119. package/commonjs/LoaderButton/LoaderButton.flow.js +2 -2
  120. package/commonjs/LoaderButton/LoaderButton.js +4 -6
  121. package/commonjs/LoaderButton/index.js +1 -2
  122. package/commonjs/Menu/Menu.flow.js +2 -2
  123. package/commonjs/Menu/Menu.js +42 -50
  124. package/commonjs/Menu/index.js +3 -4
  125. package/commonjs/Menu/styles.js +5 -7
  126. package/commonjs/Menu/utils/constants.flow.js +3 -5
  127. package/commonjs/Menu/utils/constants.js +3 -5
  128. package/commonjs/Menu/utils/descendants.js +17 -16
  129. package/commonjs/Menu/utils/hooks.js +3 -6
  130. package/commonjs/Message/Message.flow.js +3 -4
  131. package/commonjs/Message/Message.js +3 -4
  132. package/commonjs/Message/constants.js +2 -3
  133. package/commonjs/Message/index.js +1 -2
  134. package/commonjs/Message/styles.js +5 -10
  135. package/commonjs/Modal/Modal.flow.js +2 -2
  136. package/commonjs/Modal/Modal.js +7 -7
  137. package/commonjs/Modal/index.js +1 -2
  138. package/commonjs/Modal/styles.js +8 -14
  139. package/commonjs/Numeral/Numeral.flow.js +2 -2
  140. package/commonjs/Numeral/Numeral.js +3 -4
  141. package/commonjs/Numeral/constants.js +7 -13
  142. package/commonjs/Numeral/index.js +1 -2
  143. package/commonjs/Numeral/styles.js +3 -5
  144. package/commonjs/PartnerLogo/PartnerLogo.flow.js +2 -2
  145. package/commonjs/PartnerLogo/PartnerLogo.js +1 -2
  146. package/commonjs/PartnerLogo/PartnerLogoTypes.js +4 -6
  147. package/commonjs/PartnerLogo/index.js +1 -2
  148. package/commonjs/PartnerLogo/styles.js +3 -4
  149. package/commonjs/Popout/Popout.flow.js +2 -2
  150. package/commonjs/Popout/Popout.js +21 -22
  151. package/commonjs/Popout/index.js +1 -2
  152. package/commonjs/Popout/styles.js +2 -3
  153. package/commonjs/Portal/Portal.flow.js +2 -2
  154. package/commonjs/Portal/Portal.js +11 -13
  155. package/commonjs/Portal/index.js +1 -2
  156. package/commonjs/Radio/Radio.flow.js +2 -2
  157. package/commonjs/Radio/Radio.js +11 -13
  158. package/commonjs/Radio/index.js +1 -2
  159. package/commonjs/Radio/styles.js +6 -10
  160. package/commonjs/SegmentedControl/SegmentedControl.flow.js +2 -2
  161. package/commonjs/SegmentedControl/SegmentedControl.js +8 -8
  162. package/commonjs/SegmentedControl/index.js +1 -2
  163. package/commonjs/SegmentedControl/styles.js +6 -9
  164. package/commonjs/Select/Select.flow.js +2 -2
  165. package/commonjs/Select/Select.js +11 -13
  166. package/commonjs/Select/index.js +1 -2
  167. package/commonjs/Select/styles.js +4 -6
  168. package/commonjs/Skeleton/Skeleton.js +1 -2
  169. package/commonjs/Skeleton/index.js +1 -2
  170. package/commonjs/SpotIllustration/SpotIllustration.flow.js +2 -2
  171. package/commonjs/SpotIllustration/SpotIllustration.js +3 -4
  172. package/commonjs/SpotIllustration/illustrationNames.js +1 -2
  173. package/commonjs/SpotIllustration/index.js +1 -2
  174. package/commonjs/Stack/Stack.flow.js +2 -2
  175. package/commonjs/Stack/Stack.js +6 -6
  176. package/commonjs/Stack/index.js +1 -2
  177. package/commonjs/Switch/Switch.flow.js +2 -2
  178. package/commonjs/Switch/Switch.js +3 -4
  179. package/commonjs/Switch/index.js +1 -2
  180. package/commonjs/Switch/styles.js +4 -5
  181. package/commonjs/Table/Table.flow.js +2 -2
  182. package/commonjs/Table/Table.js +7 -12
  183. package/commonjs/Table/index.js +1 -2
  184. package/commonjs/Table/styles.js +1 -2
  185. package/commonjs/TableCell/TableCell.flow.js +2 -2
  186. package/commonjs/TableCell/TableCell.js +11 -14
  187. package/commonjs/TableCell/index.js +1 -2
  188. package/commonjs/TableCell/styles.js +1 -2
  189. package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +4 -5
  190. package/commonjs/TableHeaderCell/TableHeaderCell.js +12 -15
  191. package/commonjs/TableHeaderCell/constants.js +2 -3
  192. package/commonjs/TableHeaderCell/index.js +1 -2
  193. package/commonjs/TableHeaderCell/styles.js +5 -8
  194. package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +2 -2
  195. package/commonjs/TableRowAccordion/TableRowAccordion.js +12 -14
  196. package/commonjs/TableRowAccordion/index.js +1 -2
  197. package/commonjs/TableRowAccordion/styles.js +5 -8
  198. package/commonjs/Tabs/Tabs.flow.js +2 -2
  199. package/commonjs/Tabs/Tabs.js +12 -15
  200. package/commonjs/Tabs/index.js +1 -2
  201. package/commonjs/Tabs/styles.js +5 -8
  202. package/commonjs/Text/Text.flow.js +2 -2
  203. package/commonjs/Text/Text.js +3 -4
  204. package/commonjs/Text/index.js +1 -2
  205. package/commonjs/Text/styles.js +3 -4
  206. package/commonjs/Textarea/Textarea.flow.js +2 -2
  207. package/commonjs/Textarea/Textarea.js +11 -13
  208. package/commonjs/Textarea/index.js +1 -2
  209. package/commonjs/Textarea/styles.js +4 -6
  210. package/commonjs/ThemeProvider/index.flow.js +2 -2
  211. package/commonjs/ThemeProvider/index.js +3 -4
  212. package/commonjs/Toast/Toast.flow.js +2 -2
  213. package/commonjs/Toast/Toast.js +3 -4
  214. package/commonjs/Toast/index.js +3 -4
  215. package/commonjs/Toast/styles.js +6 -8
  216. package/commonjs/ToggleHint/ToggleHint.flow.js +2 -2
  217. package/commonjs/ToggleHint/ToggleHint.js +11 -13
  218. package/commonjs/ToggleHint/index.js +1 -2
  219. package/commonjs/ToggleHint/styles.js +4 -6
  220. package/commonjs/Token/Token.flow.js +2 -2
  221. package/commonjs/Token/Token.js +3 -4
  222. package/commonjs/Token/index.js +3 -4
  223. package/commonjs/Token/styles.js +3 -4
  224. package/commonjs/TokenInput/TokenInput.flow.js +2 -2
  225. package/commonjs/TokenInput/TokenInput.js +12 -14
  226. package/commonjs/TokenInput/TokenScreenReaderStatus.js +4 -5
  227. package/commonjs/TokenInput/index.js +1 -2
  228. package/commonjs/TokenInput/styles.js +3 -4
  229. package/commonjs/TokenInput/util.js +3 -5
  230. package/commonjs/Tooltip/Tooltip.flow.js +2 -2
  231. package/commonjs/Tooltip/Tooltip.js +11 -11
  232. package/commonjs/Tooltip/index.js +1 -2
  233. package/commonjs/Tooltip/styles.js +2 -3
  234. package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +2 -2
  235. package/commonjs/VisuallyHidden/VisuallyHidden.js +2 -3
  236. package/commonjs/illustrationNames.js +1 -2
  237. package/commonjs/index.flow.js +2 -2
  238. package/commonjs/logoNames.js +1 -2
  239. package/commonjs/systemProps/background.flow.js +1 -2
  240. package/commonjs/systemProps/border.flow.js +1 -2
  241. package/commonjs/systemProps/color.flow.js +1 -2
  242. package/commonjs/systemProps/custom.flow.js +2 -3
  243. package/commonjs/systemProps/flexbox.flow.js +1 -2
  244. package/commonjs/systemProps/grid.flow.js +1 -2
  245. package/commonjs/systemProps/index.js +5 -7
  246. package/commonjs/systemProps/layout.flow.js +1 -2
  247. package/commonjs/systemProps/position.flow.js +1 -2
  248. package/commonjs/systemProps/shadow.flow.js +1 -2
  249. package/commonjs/systemProps/space.flow.js +1 -2
  250. package/commonjs/systemProps/systemProps.flow.js +1 -2
  251. package/commonjs/systemProps/typography.flow.js +1 -2
  252. package/commonjs/systemProps/variant.flow.js +2 -3
  253. package/commonjs/themes/dark/dataviz-palette.js +2 -3
  254. package/commonjs/themes/dark/decorative-palettes.js +12 -23
  255. package/commonjs/themes/dark/theme.js +5 -6
  256. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.flow.js +1 -2
  257. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +9 -16
  258. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +9 -16
  259. package/commonjs/themes/light/dataviz-palette.js +2 -3
  260. package/commonjs/themes/light/decorative-palettes.js +12 -23
  261. package/commonjs/themes/light/literal-colors.js +1 -2
  262. package/commonjs/themes/light/theme.js +20 -33
  263. package/commonjs/types/shared.flow.js +2 -2
  264. package/commonjs/types/styled-components.flow.js +2 -2
  265. package/commonjs/utils/a11yTest.js +2 -3
  266. package/commonjs/utils/chartColors.js +5 -9
  267. package/commonjs/utils/constants.js +1 -2
  268. package/commonjs/utils/dataQaLabelQueries.js +2 -3
  269. package/commonjs/utils/hooks.flow.js +1 -0
  270. package/commonjs/utils/hooks.js +4 -6
  271. package/commonjs/utils/index.js +2 -4
  272. package/commonjs/utils/innerText.flow.js +2 -2
  273. package/commonjs/utils/innerText.js +1 -2
  274. package/commonjs/utils/mixins.js +5 -10
  275. package/commonjs/utils/react-testing-library.flow.js +2 -2
  276. package/commonjs/utils/react-testing-library.js +5 -8
  277. package/commonjs/utils/responsiveProps/index.js +2 -3
  278. package/commonjs/utils/system-props/gap.js +2 -3
  279. package/commonjs/utils/system-props/system-props.js +9 -16
  280. package/commonjs/utils/useInteractiveColor.js +2 -3
  281. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +2 -1
  282. package/dist/themes/light/theme.scss +2 -1
  283. package/dist/types/Button/styles.d.ts.map +1 -1
  284. package/dist/types/themes/dark/theme.d.ts +18 -18
  285. package/dist/types/themes/light/theme.d.ts +28 -27
  286. package/dist/types/themes/light/theme.d.ts.map +1 -1
  287. package/dist/types/types/theme.colors.d.ts +1 -0
  288. package/dist/types/types/theme.colors.d.ts.map +1 -1
  289. package/lib/Breadcrumb/Breadcrumb.js +2 -2
  290. package/lib/Button/styles.js +1 -4
  291. package/lib/CharacterCounter/CharacterCounter.js +7 -8
  292. package/lib/Checkbox/Checkbox.js +8 -9
  293. package/lib/Collapsible/Collapsible.js +2 -2
  294. package/lib/Drawer/Drawer.js +2 -2
  295. package/lib/FormField/FormField.js +2 -2
  296. package/lib/Icon/Icon.js +2 -2
  297. package/lib/Image/Image.js +8 -9
  298. package/lib/Indicator/Indicator.js +7 -8
  299. package/lib/Input/Input.js +9 -9
  300. package/lib/KeyboardKey/KeyboardKey.js +7 -8
  301. package/lib/Label/Label.js +7 -8
  302. package/lib/Listbox/Listbox.js +2 -2
  303. package/lib/Loader/Loader.js +7 -8
  304. package/lib/Menu/Menu.js +2 -2
  305. package/lib/Menu/utils/descendants.js +2 -2
  306. package/lib/Popout/Popout.js +2 -2
  307. package/lib/Portal/Portal.js +8 -9
  308. package/lib/Radio/Radio.js +8 -9
  309. package/lib/Select/Select.js +8 -9
  310. package/lib/TableCell/TableCell.js +7 -8
  311. package/lib/TableHeaderCell/TableHeaderCell.js +8 -9
  312. package/lib/TableRowAccordion/TableRowAccordion.js +8 -9
  313. package/lib/Tabs/Tabs.js +9 -11
  314. package/lib/Textarea/Textarea.js +8 -9
  315. package/lib/ToggleHint/ToggleHint.js +8 -9
  316. package/lib/TokenInput/TokenInput.js +8 -9
  317. package/lib/Tooltip/Tooltip.js +2 -2
  318. package/lib/systemProps/space.flow.js +14 -0
  319. package/lib/themes/dark/theme.js +2 -2
  320. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +2 -2
  321. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +2 -2
  322. package/lib/themes/light/theme.js +5 -3
  323. package/lib/utils/hooks.flow.js +1 -0
  324. package/lib/utils/hooks.js +2 -2
  325. package/lib/utils/react-testing-library.js +2 -2
  326. package/package.json +16 -24
@@ -10,8 +10,8 @@ var _styles = require("./styles");
10
10
  var _utils = require("./utils");
11
11
  var _subComponents = require("./subComponents");
12
12
  var _excluded = ["children", "disabled", "elevation", "href", "onClick", "role", "selected"];
13
- 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); }
14
- 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; }
13
+ 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); }
14
+ 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; }
15
15
  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); }
16
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
17
  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."); }
@@ -91,5 +91,4 @@ var Card = function Card(_ref) {
91
91
  value: cardContext
92
92
  }, children));
93
93
  };
94
- var _default = Card;
95
- exports.default = _default;
94
+ var _default = exports.default = Card;
@@ -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; }
@@ -56,5 +56,4 @@ Object.keys(_CardTypes).forEach(function (key) {
56
56
  });
57
57
  });
58
58
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
59
- var _default = _Card.default;
60
- exports.default = _default;
59
+ var _default = exports.default = _Card.default;
@@ -14,15 +14,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
14
14
  // props the component needs. It appears to be possible with some and not others.
15
15
  // https://github.com/styled-system/styled-system/issues/1569
16
16
 
17
- var StyledCardContent = _styledComponents.default.div.withConfig({
17
+ var StyledCardContent = exports.StyledCardContent = _styledComponents.default.div.withConfig({
18
18
  displayName: "styles__StyledCardContent",
19
19
  componentId: "sc-9tyqu4-0"
20
20
  })(["display:flex;flex-direction:column;padding:", ";box-sizing:border-box;", " ", " ", " ", " ", " ", ""], function (_ref) {
21
21
  var theme = _ref.theme;
22
22
  return theme.space[400];
23
23
  }, _styledSystem.border, _styledSystem.color, _styledSystem.flexbox, _styledSystem.grid, _styledSystem.layout, _styledSystem.space);
24
- exports.StyledCardContent = StyledCardContent;
25
- var StyledCardHeader = (0, _styledComponents.default)(StyledCardContent).withConfig({
24
+ var StyledCardHeader = exports.StyledCardHeader = (0, _styledComponents.default)(StyledCardContent).withConfig({
26
25
  displayName: "styles__StyledCardHeader",
27
26
  componentId: "sc-9tyqu4-1"
28
27
  })(["flex-direction:row;border-bottom:", ";border-top-left-radius:", ";border-top-right-radius:", ";", " ", " ", " ", " ", " ", ""], function (_ref2) {
@@ -35,8 +34,7 @@ var StyledCardHeader = (0, _styledComponents.default)(StyledCardContent).withCon
35
34
  var theme = _ref4.theme;
36
35
  return theme.radii.inner;
37
36
  }, _styledSystem.border, _styledSystem.color, _styledSystem.flexbox, _styledSystem.grid, _styledSystem.layout, _styledSystem.space);
38
- exports.StyledCardHeader = StyledCardHeader;
39
- var StyledCardFooter = (0, _styledComponents.default)(StyledCardContent).withConfig({
37
+ var StyledCardFooter = exports.StyledCardFooter = (0, _styledComponents.default)(StyledCardContent).withConfig({
40
38
  displayName: "styles__StyledCardFooter",
41
39
  componentId: "sc-9tyqu4-2"
42
40
  })(["flex-direction:row;border-top:", ";border-bottom-left-radius:", ";border-bottom-right-radius:", ";", " ", " ", " ", " ", " ", ""], function (_ref5) {
@@ -49,13 +47,11 @@ var StyledCardFooter = (0, _styledComponents.default)(StyledCardContent).withCon
49
47
  var theme = _ref7.theme;
50
48
  return theme.radii.inner;
51
49
  }, _styledSystem.border, _styledSystem.color, _styledSystem.flexbox, _styledSystem.grid, _styledSystem.layout, _styledSystem.space);
52
- exports.StyledCardFooter = StyledCardFooter;
53
- var SelectedIconWrapper = _styledComponents.default.div.withConfig({
50
+ var SelectedIconWrapper = exports.SelectedIconWrapper = _styledComponents.default.div.withConfig({
54
51
  displayName: "styles__SelectedIconWrapper",
55
52
  componentId: "sc-9tyqu4-3"
56
53
  })(["display:flex;align-items:center;justify-content:center;position:absolute;top:-8px;right:-8px;"]);
57
- exports.SelectedIconWrapper = SelectedIconWrapper;
58
- var StyledSelectedIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
54
+ var StyledSelectedIcon = exports.StyledSelectedIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
59
55
  displayName: "styles__StyledSelectedIcon",
60
56
  componentId: "sc-9tyqu4-4"
61
57
  })(["border-radius:50%;background:", ";opacity:0;transition:opacity ", ";", ""], function (_ref8) {
@@ -68,8 +64,7 @@ var StyledSelectedIcon = (0, _styledComponents.default)(_Icon.default).withConfi
68
64
  var $selected = _ref10.$selected;
69
65
  return $selected && "\n opacity: 1;\n ";
70
66
  });
71
- exports.StyledSelectedIcon = StyledSelectedIcon;
72
- var StyledCardLink = _styledComponents.default.a.withConfig({
67
+ var StyledCardLink = exports.StyledCardLink = _styledComponents.default.a.withConfig({
73
68
  displayName: "styles__StyledCardLink",
74
69
  componentId: "sc-9tyqu4-5"
75
70
  })(["font-family:", ";font-weight:", ";color:", ";", ";", " ", ""], function (p) {
@@ -81,8 +76,7 @@ var StyledCardLink = _styledComponents.default.a.withConfig({
81
76
  }, function (p) {
82
77
  return p.theme.typography[400];
83
78
  }, _styledSystem.color, _styledSystem.typography);
84
- exports.StyledCardLink = StyledCardLink;
85
- var StyledCard = _styledComponents.default.div.withConfig({
79
+ var StyledCard = exports.StyledCard = _styledComponents.default.div.withConfig({
86
80
  displayName: "styles__StyledCard",
87
81
  componentId: "sc-9tyqu4-6"
88
82
  })(["position:relative;display:flex;flex-direction:column;box-sizing:border-box;margin:0;background:", ";border:", " solid ", ";padding:", ";border-radius:", ";transition:box-shadow ", ",border ", ";&[role='button'],&[role='checkbox']{cursor:pointer;}", " &:hover{box-shadow:", ";}&:focus-within{", " ", ":focus{border:none;box-shadow:none;outline:none;}}&:focus{", "}", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (_ref11) {
@@ -126,13 +120,11 @@ var StyledCard = _styledComponents.default.div.withConfig({
126
120
  theme = _ref22.theme;
127
121
  return $selected && "\n border: ".concat(theme.borderWidths[500], " solid ").concat(theme.colors.container.border.selected, "; \n ");
128
122
  }, _styledSystem.border, _styledSystem.color, _styledSystem.flexbox, _styledSystem.grid, _styledSystem.layout, _styledSystem.position, _styledSystem.space);
129
- exports.StyledCard = StyledCard;
130
- var StyledCardAffordance = (0, _styledComponents.default)(_Icon.default).withConfig({
123
+ var StyledCardAffordance = exports.StyledCardAffordance = (0, _styledComponents.default)(_Icon.default).withConfig({
131
124
  displayName: "styles__StyledCardAffordance",
132
125
  componentId: "sc-9tyqu4-7"
133
126
  })(["", ":hover &{transform:translateX(", ");}transition:", ";"], StyledCard, function (p) {
134
127
  return p.theme.space[200];
135
128
  }, function (p) {
136
129
  return p.theme.duration.medium;
137
- });
138
- exports.StyledCardAffordance = StyledCardAffordance;
130
+ });
@@ -12,13 +12,13 @@ var _excluded = ["children"],
12
12
  _excluded2 = ["children"],
13
13
  _excluded3 = ["children"],
14
14
  _excluded4 = ["affordance", "children", "external", "color"];
15
- 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); }
16
- 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; }
15
+ 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); }
16
+ 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; }
17
17
  function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
18
18
  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); }
19
19
  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; }
20
20
  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; }
21
- var CardContent = function CardContent(_ref) {
21
+ var CardContent = exports.CardContent = function CardContent(_ref) {
22
22
  var children = _ref.children,
23
23
  rest = _objectWithoutProperties(_ref, _excluded);
24
24
  // TODO: It could be cool to possibly adjust the context to include an array of names of child components.
@@ -26,22 +26,19 @@ var CardContent = function CardContent(_ref) {
26
26
  (0, _utils.useChildContext)();
27
27
  return /*#__PURE__*/_react.default.createElement(_styles.StyledCardContent, rest, children);
28
28
  };
29
- exports.CardContent = CardContent;
30
- var CardHeader = function CardHeader(_ref2) {
29
+ var CardHeader = exports.CardHeader = function CardHeader(_ref2) {
31
30
  var children = _ref2.children,
32
31
  rest = _objectWithoutProperties(_ref2, _excluded2);
33
32
  (0, _utils.useChildContext)();
34
33
  return /*#__PURE__*/_react.default.createElement(_styles.StyledCardHeader, rest, children);
35
34
  };
36
- exports.CardHeader = CardHeader;
37
- var CardFooter = function CardFooter(_ref3) {
35
+ var CardFooter = exports.CardFooter = function CardFooter(_ref3) {
38
36
  var children = _ref3.children,
39
37
  rest = _objectWithoutProperties(_ref3, _excluded3);
40
38
  (0, _utils.useChildContext)();
41
39
  return /*#__PURE__*/_react.default.createElement(_styles.StyledCardFooter, rest, children);
42
40
  };
43
- exports.CardFooter = CardFooter;
44
- var SelectedIcon = function SelectedIcon(_ref4) {
41
+ var SelectedIcon = exports.SelectedIcon = function SelectedIcon(_ref4) {
45
42
  var $selected = _ref4.$selected;
46
43
  return /*#__PURE__*/_react.default.createElement(_styles.SelectedIconWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.StyledSelectedIcon, {
47
44
  "aria-hidden": true,
@@ -50,8 +47,7 @@ var SelectedIcon = function SelectedIcon(_ref4) {
50
47
  $selected: $selected
51
48
  }));
52
49
  };
53
- exports.SelectedIcon = SelectedIcon;
54
- var CardAffordance = function CardAffordance(_ref5) {
50
+ var CardAffordance = exports.CardAffordance = function CardAffordance(_ref5) {
55
51
  var rest = _extends({}, (_objectDestructuringEmpty(_ref5), _ref5));
56
52
  return /*#__PURE__*/_react.default.createElement(_styles.StyledCardAffordance, _extends({}, rest, {
57
53
  size: "mini",
@@ -61,8 +57,7 @@ var CardAffordance = function CardAffordance(_ref5) {
61
57
  "aria-hidden": true
62
58
  }));
63
59
  };
64
- exports.CardAffordance = CardAffordance;
65
- var CardLink = function CardLink(_ref6) {
60
+ var CardLink = exports.CardLink = function CardLink(_ref6) {
66
61
  var affordance = _ref6.affordance,
67
62
  children = _ref6.children,
68
63
  _ref6$external = _ref6.external,
@@ -91,5 +86,4 @@ var CardLink = function CardLink(_ref6) {
91
86
  }), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children, affordance ? /*#__PURE__*/_react.default.createElement(CardAffordance, {
92
87
  ml: 300
93
88
  }) : null));
94
- };
95
- exports.CardLink = CardLink;
89
+ };
@@ -7,19 +7,18 @@ exports.onKeyDown = exports.navigateTo = exports.SubComponentContext = void 0;
7
7
  exports.useChildContext = useChildContext;
8
8
  var _react = require("react");
9
9
  var _utils = require("../utils");
10
- var SubComponentContext = /*#__PURE__*/(0, _react.createContext)({
10
+ var SubComponentContext = exports.SubComponentContext = /*#__PURE__*/(0, _react.createContext)({
11
11
  // eslint-disable-next-line @typescript-eslint/no-empty-function
12
12
  setHasSubComponent: function setHasSubComponent() {},
13
13
  href: '',
14
14
  linkRef: null
15
15
  });
16
- exports.SubComponentContext = SubComponentContext;
17
16
  function useChildContext() {
18
17
  var _useContext = (0, _react.useContext)(SubComponentContext),
19
18
  setHasSubComponent = _useContext.setHasSubComponent;
20
19
  setHasSubComponent && setHasSubComponent(true);
21
20
  }
22
- var navigateTo = function navigateTo(_ref) {
21
+ var navigateTo = exports.navigateTo = function navigateTo(_ref) {
23
22
  var _ref$current, _window$open;
24
23
  var e = _ref.e,
25
24
  href = _ref.href,
@@ -36,8 +35,7 @@ var navigateTo = function navigateTo(_ref) {
36
35
  }
37
36
  (_window$open = window.open(href, '_blank')) === null || _window$open === void 0 || _window$open.focus();
38
37
  };
39
- exports.navigateTo = navigateTo;
40
- var onKeyDown = function onKeyDown(_ref2) {
38
+ var onKeyDown = exports.onKeyDown = function onKeyDown(_ref2) {
41
39
  var e = _ref2.e,
42
40
  href = _ref2.href,
43
41
  onClick = _ref2.onClick,
@@ -56,5 +54,4 @@ var onKeyDown = function onKeyDown(_ref2) {
56
54
  }
57
55
  return onClick === null || onClick === void 0 ? void 0 : onClick(e);
58
56
  }
59
- };
60
- exports.onKeyDown = onKeyDown;
57
+ };
@@ -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; }
@@ -8,8 +8,8 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _styles = _interopRequireDefault(require("./styles"));
9
9
  var _excluded = ["size"];
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- 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); }
12
- 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; }
11
+ 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); }
12
+ 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; }
13
13
  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); }
14
14
  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); }
15
15
  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; }
@@ -17,22 +17,21 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
17
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
18
  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, _toPropertyKey(descriptor.key), descriptor); } }
19
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
- 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); }
21
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
- 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); }; }
20
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
23
21
  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); }
24
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25
- 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; } }
23
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
+ 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); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
  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; }
28
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
29
- 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); }
30
- var CharacterCounter = /*#__PURE__*/function (_React$Component) {
28
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
29
+ 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); }
30
+ var CharacterCounter = exports.default = /*#__PURE__*/function (_React$Component) {
31
31
  _inherits(CharacterCounter, _React$Component);
32
- var _super = _createSuper(CharacterCounter);
33
32
  function CharacterCounter() {
34
33
  _classCallCheck(this, CharacterCounter);
35
- return _super.apply(this, arguments);
34
+ return _callSuper(this, CharacterCounter, arguments);
36
35
  }
37
36
  _createClass(CharacterCounter, [{
38
37
  key: "render",
@@ -50,7 +49,6 @@ var CharacterCounter = /*#__PURE__*/function (_React$Component) {
50
49
  }]);
51
50
  return CharacterCounter;
52
51
  }(React.Component);
53
- exports.default = CharacterCounter;
54
52
  _defineProperty(CharacterCounter, "defaultProps", {
55
53
  size: 'default'
56
54
  });
@@ -27,5 +27,4 @@ Object.keys(_CharacterCounterTypes).forEach(function (key) {
27
27
  });
28
28
  });
29
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
- var _default = _CharacterCounter.default;
31
- exports.default = _default;
30
+ var _default = exports.default = _CharacterCounter.default;
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _systemProps = require("../utils/system-props");
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
  var Container = _styledComponents.default.div.withConfig({
13
13
  displayName: "styles__Container",
14
14
  componentId: "sc-8ntjxw-0"
@@ -23,5 +23,4 @@ var Container = _styledComponents.default.div.withConfig({
23
23
  }, function (p) {
24
24
  return p.mini && (0, _styledComponents.css)(["", ""], p.theme.typography[100]);
25
25
  }, _systemProps.COMMON);
26
- var _default = Container;
27
- exports.default = _default;
26
+ var _default = exports.default = Container;
@@ -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; }
@@ -10,8 +10,8 @@ var _styles = _interopRequireDefault(require("./styles"));
10
10
  var _useChartLabels = require("./useChartLabels");
11
11
  var _excluded = ["legendLabels", "stacked", "theme", "qa"];
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- 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); }
14
- 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; }
13
+ 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); }
14
+ 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; }
15
15
  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); }
16
16
  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; }
17
17
  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; }
@@ -29,5 +29,4 @@ var ChartLegend = function ChartLegend(_ref) {
29
29
  qa: qa
30
30
  }, rest), chartLabels);
31
31
  };
32
- var _default = ChartLegend;
33
- exports.default = _default;
32
+ var _default = exports.default = ChartLegend;
@@ -27,5 +27,4 @@ Object.keys(_ChartLegendTypes).forEach(function (key) {
27
27
  });
28
28
  });
29
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
- var _default = _ChartLegend.default;
31
- exports.default = _default;
30
+ var _default = exports.default = _ChartLegend.default;
@@ -7,16 +7,15 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.Swatch = exports.Label = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _systemProps = require("../utils/system-props");
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; }
12
- var Label = _styledComponents.default.span.withConfig({
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
+ var Label = exports.Label = _styledComponents.default.span.withConfig({
13
13
  displayName: "styles__Label",
14
14
  componentId: "sc-4jc00i-0"
15
15
  })(["display:flex;align-items:center;color:", ";white-space:nowrap;text-transform:capitalize;"], function (props) {
16
16
  return props.theme.colors.text.subtext;
17
17
  });
18
- exports.Label = Label;
19
- var Swatch = _styledComponents.default.span.withConfig({
18
+ var Swatch = exports.Swatch = _styledComponents.default.span.withConfig({
20
19
  displayName: "styles__Swatch",
21
20
  componentId: "sc-4jc00i-1"
22
21
  })(["margin-right:", ";width:", ";height:", ";border-radius:4px;", ""], function (props) {
@@ -26,7 +25,6 @@ var Swatch = _styledComponents.default.span.withConfig({
26
25
  }, function (props) {
27
26
  return props.theme.space[350];
28
27
  }, _systemProps.COMMON);
29
- exports.Swatch = Swatch;
30
28
  var Container = _styledComponents.default.div.withConfig({
31
29
  displayName: "styles__Container",
32
30
  componentId: "sc-4jc00i-2"
@@ -37,5 +35,4 @@ var Container = _styledComponents.default.div.withConfig({
37
35
  }, _systemProps.COMMON, _systemProps.LAYOUT);
38
36
  Label.displayName = 'ChartLegendLabel';
39
37
  Swatch.displayName = 'ChartLegendSwatch';
40
- var _default = Container;
41
- exports.default = _default;
38
+ var _default = exports.default = Container;
@@ -21,7 +21,7 @@ var getSwatchColor = function getSwatchColor(theme, index, RacineThemeColors) {
21
21
  };
22
22
  return THEME_MAP[theme.toUpperCase()][index];
23
23
  };
24
- var useChartLabels = function useChartLabels(legendLabels, theme) {
24
+ var useChartLabels = exports.useChartLabels = function useChartLabels(legendLabels, theme) {
25
25
  var racineTheme = (0, _styledComponents.useTheme)();
26
26
  var colors = racineTheme.colors;
27
27
  return legendLabels.map(function (label, i) {
@@ -37,5 +37,4 @@ var useChartLabels = function useChartLabels(legendLabels, theme) {
37
37
  breakWord: true
38
38
  }, label.name));
39
39
  });
40
- };
41
- exports.useChartLabels = useChartLabels;
40
+ };
@@ -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; }
@@ -7,8 +7,8 @@ exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _styles = _interopRequireWildcard(require("./styles"));
9
9
  var _excluded = ["id", "value", "name", "label", "labelProps", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"];
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
  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); }
13
13
  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); }
14
14
  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; }
@@ -16,26 +16,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
16
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
17
  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, _toPropertyKey(descriptor.key), descriptor); } }
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
- 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); }
20
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
- 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); }; }
19
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
20
  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); }
23
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
- 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; } }
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
22
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
+ 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); }
25
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
26
  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; }
27
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
28
- 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); }
29
- var Checkbox = /*#__PURE__*/function (_React$Component) {
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
28
+ 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); }
29
+ var Checkbox = exports.default = /*#__PURE__*/function (_React$Component) {
30
30
  _inherits(Checkbox, _React$Component);
31
- var _super = _createSuper(Checkbox);
32
31
  function Checkbox() {
33
32
  var _this;
34
33
  _classCallCheck(this, Checkbox);
35
34
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
36
35
  args[_key] = arguments[_key];
37
36
  }
38
- _this = _super.call.apply(_super, [this].concat(args));
37
+ _this = _callSuper(this, Checkbox, [].concat(args));
39
38
  _defineProperty(_assertThisInitialized(_this), "handleChange", function (event) {
40
39
  _this.props.onChange(event);
41
40
  });
@@ -138,7 +137,6 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
138
137
  }]);
139
138
  return Checkbox;
140
139
  }(React.Component);
141
- exports.default = Checkbox;
142
140
  _defineProperty(Checkbox, "defaultProps", {
143
141
  indeterminate: false,
144
142
  disabled: false
@@ -27,5 +27,4 @@ Object.keys(_CheckboxTypes).forEach(function (key) {
27
27
  });
28
28
  });
29
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
- var _default = _Checkbox.default;
31
- exports.default = _default;
30
+ var _default = exports.default = _Checkbox.default;