@sproutsocial/racine 11.4.1 → 11.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/__flow__/Button/index.js +2 -0
  3. package/__flow__/Button/index.stories.js +51 -67
  4. package/__flow__/Button/styles.js +1 -1
  5. package/__flow__/Checkbox/styles.js +75 -75
  6. package/__flow__/Collapsible/index.js +2 -3
  7. package/__flow__/EmptyState/index.test.js +1 -1
  8. package/__flow__/Image/index.js +2 -10
  9. package/__flow__/Menu/__snapshots__/index.test.js.snap +2 -2
  10. package/__flow__/SegmentedControl/index.js +2 -3
  11. package/__flow__/TableCell/index.js +2 -9
  12. package/__flow__/ThemeProvider/index.js +6 -2
  13. package/__flow__/ToggleHint/index.js +2 -9
  14. package/__flow__/index.js +5 -0
  15. package/__flow__/setupTests.js +1 -1
  16. package/__flow__/systemProps/color.js +2 -1
  17. package/__flow__/systemProps/tests/__snapshots__/layout.test.js.snap +0 -14
  18. package/__flow__/systemProps/tests/layout.test.js +0 -9
  19. package/__flow__/themes/extendedThemes/sproutTheme/NonColorThemeValues/index.js +17 -0
  20. package/__flow__/themes/extendedThemes/sproutTheme/dark/getDarkThemeColors.js +36 -0
  21. package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +23 -0
  22. package/__flow__/themes/extendedThemes/sproutTheme/index.js +4 -0
  23. package/__flow__/themes/extendedThemes/sproutTheme/light/getLightThemeColors.js +36 -0
  24. package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +23 -0
  25. package/__flow__/themes/extendedThemes/sproutTheme/sproutThemeType.flow.js +36 -0
  26. package/__flow__/types/theme.flow.js +17 -0
  27. package/__flow__/utils/responsiveProps/index.test.js +2 -10
  28. package/commonjs/Avatar/index.js +7 -4
  29. package/commonjs/Badge/index.js +3 -1
  30. package/commonjs/Badge/styles.js +1 -1
  31. package/commonjs/Banner/index.js +3 -1
  32. package/commonjs/Banner/styles.js +1 -1
  33. package/commonjs/Box/styles.js +1 -1
  34. package/commonjs/Breadcrumb/index.js +5 -2
  35. package/commonjs/Button/index.js +4 -1
  36. package/commonjs/Button/styles.js +1 -0
  37. package/commonjs/Card/index.js +3 -1
  38. package/commonjs/Card/styles.js +3 -3
  39. package/commonjs/CharacterCounter/index.js +3 -1
  40. package/commonjs/CharacterCounter/styles.js +1 -1
  41. package/commonjs/ChartLegend/index.js +3 -1
  42. package/commonjs/ChartLegend/styles.js +3 -3
  43. package/commonjs/Checkbox/index.js +3 -1
  44. package/commonjs/Checkbox/styles.js +1 -1
  45. package/commonjs/Collapsible/index.js +5 -2
  46. package/commonjs/DatePicker/DateRangePicker.js +3 -1
  47. package/commonjs/DatePicker/SingleDatePicker.js +3 -1
  48. package/commonjs/DatePicker/StatefulDateRangePicker.js +3 -1
  49. package/commonjs/DatePicker/StatefulSingleDatePicker.js +3 -1
  50. package/commonjs/DatePicker/common.js +1 -1
  51. package/commonjs/DatePicker/styles.js +2 -6
  52. package/commonjs/Drawer/SlideTransition.js +3 -1
  53. package/commonjs/Drawer/index.js +9 -4
  54. package/commonjs/Drawer/styles.js +2 -2
  55. package/commonjs/EmptyState/index.js +3 -1
  56. package/commonjs/Fieldset/index.js +7 -3
  57. package/commonjs/FormField/index.js +3 -1
  58. package/commonjs/Icon/index.js +5 -2
  59. package/commonjs/Icon/styles.js +1 -1
  60. package/commonjs/Image/index.js +3 -1
  61. package/commonjs/Image/styles.js +1 -1
  62. package/commonjs/Indicator/index.js +3 -1
  63. package/commonjs/Input/index.js +3 -1
  64. package/commonjs/Input/styles.js +2 -2
  65. package/commonjs/KeyboardKey/index.js +3 -1
  66. package/commonjs/Label/index.js +4 -2
  67. package/commonjs/Link/index.js +3 -1
  68. package/commonjs/Link/styles.js +1 -1
  69. package/commonjs/Listbox/index.js +7 -4
  70. package/commonjs/Loader/index.js +3 -1
  71. package/commonjs/Loader/styles.js +2 -2
  72. package/commonjs/LoaderButton/index.js +3 -1
  73. package/commonjs/Menu/constants.js +1 -1
  74. package/commonjs/Menu/descendants.js +10 -7
  75. package/commonjs/Menu/hooks.js +1 -1
  76. package/commonjs/Menu/index.js +22 -16
  77. package/commonjs/Menu/styles.js +2 -2
  78. package/commonjs/Message/index.js +3 -1
  79. package/commonjs/Message/styles.js +2 -2
  80. package/commonjs/Modal/index.js +7 -3
  81. package/commonjs/Modal/styles.js +4 -6
  82. package/commonjs/Numeral/constants.js +1 -1
  83. package/commonjs/Numeral/index.js +3 -1
  84. package/commonjs/Numeral/styles.js +3 -3
  85. package/commonjs/OverflowList/styles.js +1 -1
  86. package/commonjs/Popout/index.js +7 -3
  87. package/commonjs/Popout/styles.js +1 -1
  88. package/commonjs/Radio/index.js +3 -1
  89. package/commonjs/Radio/styles.js +4 -4
  90. package/commonjs/SegmentedControl/index.js +5 -2
  91. package/commonjs/Select/index.js +3 -1
  92. package/commonjs/Stack/index.js +3 -1
  93. package/commonjs/Switch/index.js +3 -1
  94. package/commonjs/Switch/styles.js +1 -1
  95. package/commonjs/Table/index.js +10 -5
  96. package/commonjs/TableCell/index.js +3 -1
  97. package/commonjs/TableHeaderCell/index.js +3 -1
  98. package/commonjs/TableRowAccordion/index.js +3 -1
  99. package/commonjs/Tabs/index.js +5 -2
  100. package/commonjs/Tabs/styles.js +4 -4
  101. package/commonjs/Text/index.js +3 -1
  102. package/commonjs/Text/styles.js +1 -1
  103. package/commonjs/Textarea/index.js +3 -1
  104. package/commonjs/Toast/index.js +15 -15
  105. package/commonjs/Toast/styles.js +4 -7
  106. package/commonjs/ToggleHint/index.js +3 -1
  107. package/commonjs/Token/index.js +3 -1
  108. package/commonjs/Token/styles.js +1 -1
  109. package/commonjs/TokenInput/index.js +3 -1
  110. package/commonjs/Tooltip/index.js +5 -2
  111. package/commonjs/Tooltip/styles.js +1 -1
  112. package/commonjs/VisuallyHidden/index.js +1 -1
  113. package/commonjs/index.js +8 -1
  114. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  115. package/commonjs/themes/dark/theme.js +1 -1
  116. package/commonjs/themes/extendedThemes/sproutTheme/NonColorThemeValues/index.js +16 -0
  117. package/commonjs/themes/extendedThemes/sproutTheme/dark/getDarkThemeColors.js +39 -0
  118. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +28 -0
  119. package/commonjs/themes/extendedThemes/sproutTheme/index.js +14 -0
  120. package/commonjs/themes/extendedThemes/sproutTheme/light/getLightThemeColors.js +39 -0
  121. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +28 -0
  122. package/commonjs/themes/extendedThemes/sproutTheme/sproutThemeType.flow.js +1 -0
  123. package/commonjs/themes/light/decorative-palettes.js +1 -1
  124. package/commonjs/themes/light/theme.js +1 -1
  125. package/commonjs/utils/hooks.js +3 -2
  126. package/commonjs/utils/mixins.js +1 -1
  127. package/commonjs/utils/system-props.js +1 -1
  128. package/dist/themes/dark/dark.scss +5 -5
  129. package/dist/themes/light/light.scss +95 -95
  130. package/lib/Avatar/index.js +7 -4
  131. package/lib/Badge/index.js +3 -1
  132. package/lib/Badge/styles.js +1 -1
  133. package/lib/Banner/index.js +3 -1
  134. package/lib/Banner/styles.js +1 -1
  135. package/lib/Box/styles.js +1 -1
  136. package/lib/Breadcrumb/index.js +5 -2
  137. package/lib/Button/index.js +4 -1
  138. package/lib/Button/styles.js +1 -0
  139. package/lib/Card/index.js +3 -1
  140. package/lib/Card/styles.js +2 -2
  141. package/lib/CharacterCounter/index.js +3 -1
  142. package/lib/CharacterCounter/styles.js +1 -1
  143. package/lib/ChartLegend/index.js +3 -1
  144. package/lib/ChartLegend/styles.js +3 -3
  145. package/lib/Checkbox/index.js +3 -1
  146. package/lib/Collapsible/index.js +5 -2
  147. package/lib/DatePicker/DateRangePicker.js +3 -1
  148. package/lib/DatePicker/SingleDatePicker.js +3 -1
  149. package/lib/DatePicker/StatefulDateRangePicker.js +3 -1
  150. package/lib/DatePicker/StatefulSingleDatePicker.js +3 -1
  151. package/lib/DatePicker/styles.js +2 -6
  152. package/lib/Drawer/SlideTransition.js +3 -1
  153. package/lib/Drawer/index.js +9 -4
  154. package/lib/Drawer/styles.js +2 -2
  155. package/lib/EmptyState/index.js +3 -1
  156. package/lib/Fieldset/index.js +7 -3
  157. package/lib/FormField/index.js +3 -1
  158. package/lib/Icon/index.js +5 -2
  159. package/lib/Icon/styles.js +1 -1
  160. package/lib/Image/index.js +3 -1
  161. package/lib/Image/styles.js +1 -1
  162. package/lib/Indicator/index.js +3 -1
  163. package/lib/Input/index.js +3 -1
  164. package/lib/Input/styles.js +2 -2
  165. package/lib/KeyboardKey/index.js +3 -1
  166. package/lib/Label/index.js +4 -2
  167. package/lib/Link/index.js +3 -1
  168. package/lib/Link/styles.js +1 -1
  169. package/lib/Listbox/index.js +6 -3
  170. package/lib/Loader/index.js +3 -1
  171. package/lib/Loader/styles.js +2 -2
  172. package/lib/LoaderButton/index.js +3 -1
  173. package/lib/Menu/descendants.js +5 -2
  174. package/lib/Menu/index.js +20 -16
  175. package/lib/Menu/styles.js +2 -2
  176. package/lib/Message/index.js +3 -1
  177. package/lib/Message/styles.js +1 -1
  178. package/lib/Modal/index.js +7 -3
  179. package/lib/Modal/styles.js +3 -5
  180. package/lib/Numeral/index.js +3 -1
  181. package/lib/Numeral/styles.js +2 -2
  182. package/lib/OverflowList/styles.js +1 -1
  183. package/lib/Popout/index.js +7 -3
  184. package/lib/Popout/styles.js +1 -1
  185. package/lib/Radio/index.js +3 -1
  186. package/lib/Radio/styles.js +4 -4
  187. package/lib/SegmentedControl/index.js +5 -2
  188. package/lib/Select/index.js +3 -1
  189. package/lib/Stack/index.js +3 -1
  190. package/lib/Switch/index.js +3 -1
  191. package/lib/Switch/styles.js +1 -1
  192. package/lib/Table/index.js +9 -4
  193. package/lib/TableCell/index.js +3 -1
  194. package/lib/TableHeaderCell/index.js +3 -1
  195. package/lib/TableRowAccordion/index.js +3 -1
  196. package/lib/Tabs/index.js +5 -2
  197. package/lib/Tabs/styles.js +3 -3
  198. package/lib/Text/index.js +3 -1
  199. package/lib/Text/styles.js +1 -1
  200. package/lib/Textarea/index.js +3 -1
  201. package/lib/Toast/index.js +14 -14
  202. package/lib/Toast/styles.js +3 -7
  203. package/lib/ToggleHint/index.js +3 -1
  204. package/lib/Token/index.js +3 -1
  205. package/lib/Token/styles.js +1 -1
  206. package/lib/TokenInput/index.js +3 -1
  207. package/lib/Tooltip/index.js +5 -2
  208. package/lib/Tooltip/styles.js +1 -1
  209. package/lib/VisuallyHidden/index.js +1 -1
  210. package/lib/index.js +1 -0
  211. package/lib/themes/extendedThemes/sproutTheme/NonColorThemeValues/index.js +12 -0
  212. package/lib/themes/extendedThemes/sproutTheme/dark/getDarkThemeColors.js +34 -0
  213. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +16 -0
  214. package/lib/themes/extendedThemes/sproutTheme/index.js +2 -0
  215. package/lib/themes/extendedThemes/sproutTheme/light/getLightThemeColors.js +34 -0
  216. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +16 -0
  217. package/lib/themes/extendedThemes/sproutTheme/sproutThemeType.flow.js +0 -0
  218. package/package.json +25 -20
  219. package/__flow__/Button/__snapshots__/index.test.js.snap +0 -511
  220. package/__flow__/Button/index.test.js +0 -113
@@ -1,10 +1,5 @@
1
1
  $dark: (
2
2
  __esModule: true,
3
- shadows: (
4
- low: 0px 2px 4px #040404FF,
5
- medium: 0px 8px 16px #040404FF,
6
- high: 0px 16px 32px #040404FF
7
- ),
8
3
  default: (
9
4
  utils: (
10
5
 
@@ -620,5 +615,10 @@ $dark: (
620
615
  slow: .6s
621
616
  ),
622
617
  mode: dark
618
+ ),
619
+ shadows: (
620
+ low: 0px 2px 4px #040404FF,
621
+ medium: 0px 8px 16px #040404FF,
622
+ high: 0px 16px 32px #040404FF
623
623
  )
624
624
  );
@@ -1,104 +1,12 @@
1
1
  $light: (
2
2
  __esModule: true,
3
- breakpoints: (900px, 1200px, 1500px, 1800px),
4
- typography: (
5
- 100: (
6
- fontSize: 11px,
7
- lineHeight: 18.666666666666668px
8
- ),
9
- 200: (
10
- fontSize: 13px,
11
- lineHeight: 21.333333333333332px
12
- ),
13
- 300: (
14
- fontSize: 16px,
15
- lineHeight: 24px
16
- ),
17
- 400: (
18
- fontSize: 18px,
19
- lineHeight: 26.666666666666668px
20
- ),
21
- 500: (
22
- fontSize: 21px,
23
- lineHeight: 29.333333333333332px
24
- ),
25
- 600: (
26
- fontSize: 24px,
27
- lineHeight: 32px
28
- ),
29
- 700: (
30
- fontSize: 32px,
31
- lineHeight: 40px
32
- ),
33
- 800: (
34
- fontSize: 43px,
35
- lineHeight: 50.666666666666664px
36
- ),
37
- 900: (
38
- fontSize: 57px,
39
- lineHeight: 64px
40
- ),
41
- 1000: (
42
- fontSize: 76px,
43
- lineHeight: 80px
44
- ),
45
- 1100: (
46
- fontSize: 101px,
47
- lineHeight: 101.33333333333333px
48
- ),
49
- 1200: (
50
- fontSize: 135px,
51
- lineHeight: 125.33333333333333px
52
- )
53
- ),
54
- fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif",
55
- fontWeights: (
56
- normal: 400,
57
- semibold: 600,
58
- bold: 700,
59
- extrabold: 800
60
- ),
61
- space: (
62
- 0: 0px,
63
- 100: 2px,
64
- 200: 4px,
65
- 300: 8px,
66
- 350: 12px,
67
- 400: 16px,
68
- 450: 24px,
69
- 500: 32px,
70
- 600: 40px
71
- ),
72
- radii: (
73
- 400: 4px,
74
- 500: 6px,
75
- 600: 8px,
76
- 1000: 999999px,
77
- inner: 6px,
78
- outer: 8px,
79
- pill: 999999px
80
- ),
81
- borders: (
82
- 500: 1px solid
83
- ),
84
3
  borderWidths: (
85
4
  500: 1px
86
5
  ),
87
- shadows: (
88
- low: 0px 2px 4px #2733333D,
89
- medium: 0px 8px 16px #2733333D,
90
- high: 0px 16px 32px #2733333D
91
- ),
92
- easing: (
93
- ease_in: cubic-bezier(.4, 0, .7, .2),
94
- ease_out: cubic-bezier(0, 0, .2, 1),
95
- ease_inout: cubic-bezier(.4, 0, .2, 1)
96
- ),
97
- duration: (
98
- fast: .15s,
99
- medium: .3s,
100
- slow: .6s
6
+ borders: (
7
+ 500: 1px solid
101
8
  ),
9
+ breakpoints: (900px, 1200px, 1500px, 1800px),
102
10
  default: (
103
11
  utils: (
104
12
 
@@ -711,5 +619,97 @@ $light: (
711
619
  slow: .6s
712
620
  ),
713
621
  mode: light
622
+ ),
623
+ duration: (
624
+ fast: .15s,
625
+ medium: .3s,
626
+ slow: .6s
627
+ ),
628
+ easing: (
629
+ ease_in: cubic-bezier(.4, 0, .7, .2),
630
+ ease_out: cubic-bezier(0, 0, .2, 1),
631
+ ease_inout: cubic-bezier(.4, 0, .2, 1)
632
+ ),
633
+ fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif",
634
+ fontWeights: (
635
+ normal: 400,
636
+ semibold: 600,
637
+ bold: 700,
638
+ extrabold: 800
639
+ ),
640
+ radii: (
641
+ 400: 4px,
642
+ 500: 6px,
643
+ 600: 8px,
644
+ 1000: 999999px,
645
+ inner: 6px,
646
+ outer: 8px,
647
+ pill: 999999px
648
+ ),
649
+ shadows: (
650
+ low: 0px 2px 4px #2733333D,
651
+ medium: 0px 8px 16px #2733333D,
652
+ high: 0px 16px 32px #2733333D
653
+ ),
654
+ space: (
655
+ 0: 0px,
656
+ 100: 2px,
657
+ 200: 4px,
658
+ 300: 8px,
659
+ 350: 12px,
660
+ 400: 16px,
661
+ 450: 24px,
662
+ 500: 32px,
663
+ 600: 40px
664
+ ),
665
+ typography: (
666
+ 100: (
667
+ fontSize: 11px,
668
+ lineHeight: 18.666666666666668px
669
+ ),
670
+ 200: (
671
+ fontSize: 13px,
672
+ lineHeight: 21.333333333333332px
673
+ ),
674
+ 300: (
675
+ fontSize: 16px,
676
+ lineHeight: 24px
677
+ ),
678
+ 400: (
679
+ fontSize: 18px,
680
+ lineHeight: 26.666666666666668px
681
+ ),
682
+ 500: (
683
+ fontSize: 21px,
684
+ lineHeight: 29.333333333333332px
685
+ ),
686
+ 600: (
687
+ fontSize: 24px,
688
+ lineHeight: 32px
689
+ ),
690
+ 700: (
691
+ fontSize: 32px,
692
+ lineHeight: 40px
693
+ ),
694
+ 800: (
695
+ fontSize: 43px,
696
+ lineHeight: 50.666666666666664px
697
+ ),
698
+ 900: (
699
+ fontSize: 57px,
700
+ lineHeight: 64px
701
+ ),
702
+ 1000: (
703
+ fontSize: 76px,
704
+ lineHeight: 80px
705
+ ),
706
+ 1100: (
707
+ fontSize: 101px,
708
+ lineHeight: 101.33333333333333px
709
+ ),
710
+ 1200: (
711
+ fontSize: 135px,
712
+ lineHeight: 125.33333333333333px
713
+ )
714
714
  )
715
715
  );
@@ -1,3 +1,6 @@
1
+ var _excluded = ["fontSize"],
2
+ _excluded2 = ["appearance", "name", "src", "variant", "type", "size", "bg", "color"];
3
+
1
4
  function _extends() { _extends = Object.assign || 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); }
2
5
 
3
6
  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; }
@@ -11,12 +14,12 @@ import Image from "../Image";
11
14
  import Text from "../Text";
12
15
  var AvatarText = styled(function (_ref) {
13
16
  var fontSize = _ref.fontSize,
14
- rest = _objectWithoutPropertiesLoose(_ref, ["fontSize"]);
17
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
15
18
 
16
19
  return /*#__PURE__*/React.createElement(Text, rest);
17
20
  }).withConfig({
18
21
  displayName: "Avatar__AvatarText",
19
- componentId: "yx873f-0"
22
+ componentId: "sc-yx873f-0"
20
23
  })(["font-size:", "px;color:", "px;"], function (props) {
21
24
  return props.fontSize;
22
25
  }, function (props) {
@@ -24,7 +27,7 @@ var AvatarText = styled(function (_ref) {
24
27
  });
25
28
  var Container = styled(Box).withConfig({
26
29
  displayName: "Avatar__Container",
27
- componentId: "yx873f-1"
30
+ componentId: "sc-yx873f-1"
28
31
  })(["", ""], function (_ref2) {
29
32
  var theme = _ref2.theme,
30
33
  type = _ref2.type,
@@ -59,7 +62,7 @@ export var Avatar = function Avatar(_ref3) {
59
62
  size = _ref3$size === void 0 ? "40px" : _ref3$size,
60
63
  bg = _ref3.bg,
61
64
  color = _ref3.color,
62
- rest = _objectWithoutPropertiesLoose(_ref3, ["appearance", "name", "src", "variant", "type", "size", "bg", "color"]);
65
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded2);
63
66
 
64
67
  var _useState = useState(false),
65
68
  imageFailedLoading = _useState[0],
@@ -1,3 +1,5 @@
1
+ var _excluded = ["children", "text", "iconName", "type", "tip", "size", "badgeColor"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -17,7 +19,7 @@ var Badge = function Badge(_ref) {
17
19
  size = _ref$size === void 0 ? "small" : _ref$size,
18
20
  _ref$badgeColor = _ref.badgeColor,
19
21
  badgeColor = _ref$badgeColor === void 0 ? "blue" : _ref$badgeColor,
20
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "text", "iconName", "type", "tip", "size", "badgeColor"]);
22
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
21
23
 
22
24
  if (children && text) {
23
25
  throw new Error("can't use both `children` and `text` props. Text is deprecated, consider using children.");
@@ -5,7 +5,7 @@ import { legacyBadgeColors } from "./constants"; // eslint-disable-next-line pre
5
5
 
6
6
  var Container = styled.span.withConfig({
7
7
  displayName: "styles__Container",
8
- componentId: "g1g76b-0"
8
+ componentId: "sc-g1g76b-0"
9
9
  })(["font-family:", ";", ";border-radius:9999px;line-height:16px;display:inline-block;color:", ";background:", ";padding:", ";", ";"], function (p) {
10
10
  return p.theme.fontFamily;
11
11
  }, function (p) {
@@ -1,3 +1,5 @@
1
+ var _excluded = ["type", "text"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -67,7 +69,7 @@ var Banner = /*#__PURE__*/function (_React$Component) {
67
69
  var _this$props = this.props,
68
70
  type = _this$props.type,
69
71
  text = _this$props.text,
70
- rest = _objectWithoutPropertiesLoose(_this$props, ["type", "text"]);
72
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
71
73
 
72
74
  return /*#__PURE__*/React.createElement(Container // danger needs to be properly deprecated and removed DS-1094
73
75
  , _extends({
@@ -2,7 +2,7 @@ import styled, { css } from "styled-components";
2
2
  import { COMMON, LAYOUT } from "../utils/system-props";
3
3
  var Container = styled.div.withConfig({
4
4
  displayName: "styles__Container",
5
- componentId: "q43dr4-0"
5
+ componentId: "sc-q43dr4-0"
6
6
  })(function (props) {
7
7
  return css(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{align-self:flex-start;margin-top:3px;margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;&:hover{color:", ";text-decoration:underline;}}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.body, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors.container.border[props.type], props.theme.colors.container.background[props.type], props.theme.space[400], props.theme.colors.icon[props.type], props.theme.fontWeights.semibold, props.theme.colors.text.body, props.theme.colors.text.body, COMMON, LAYOUT);
8
8
  });
package/lib/Box/styles.js CHANGED
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  import { COMMON, BORDER, LAYOUT, POSITION, FLEXBOX, GRID } from "../utils/system-props";
3
3
  var Container = styled.div.withConfig({
4
4
  displayName: "styles__Container",
5
- componentId: "ma8yo6-0"
5
+ componentId: "sc-ma8yo6-0"
6
6
  })(["box-sizing:border-box;font-family:", ";", " ", " ", " ", " ", " ", ""], function (_ref) {
7
7
  var theme = _ref.theme;
8
8
  return theme.fontFamily;
@@ -1,3 +1,6 @@
1
+ var _excluded = ["children", "href"],
2
+ _excluded2 = ["ariaLabel", "overflow", "children"];
3
+
1
4
  function _extends() { _extends = Object.assign || 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); }
2
5
 
3
6
  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; }
@@ -12,7 +15,7 @@ import Nav from "./styles";
12
15
  var BreadcrumbItem = function BreadcrumbItem(_ref) {
13
16
  var children = _ref.children,
14
17
  href = _ref.href,
15
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "href"]);
18
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
16
19
 
17
20
  return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Link, _extends({
18
21
  href: href // $FlowIssue - upgrade v0.112.0
@@ -24,7 +27,7 @@ var Breadcrumb = function Breadcrumb(_ref2) {
24
27
  var ariaLabel = _ref2.ariaLabel,
25
28
  overflow = _ref2.overflow,
26
29
  children = _ref2.children,
27
- rest = _objectWithoutPropertiesLoose(_ref2, ["ariaLabel", "overflow", "children"]);
30
+ rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
28
31
 
29
32
  var listItems = Children.toArray(children);
30
33
  var lastItem = listItems[listItems.length - 1];
@@ -1,3 +1,5 @@
1
+ var _excluded = ["href", "appearance", "active", "disabled", "external", "children", "size", "innerRef", "onClick", "title", "qa", "as", "ariaLabel"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -23,7 +25,7 @@ var Button = function Button(_ref) {
23
25
  qa = _ref$qa === void 0 ? {} : _ref$qa,
24
26
  as = _ref.as,
25
27
  ariaLabel = _ref.ariaLabel,
26
- rest = _objectWithoutPropertiesLoose(_ref, ["href", "appearance", "active", "disabled", "external", "children", "size", "innerRef", "onClick", "title", "qa", "as", "ariaLabel"]);
28
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
27
29
 
28
30
  if (!href && external) {
29
31
  console.warn("Warning: external prop cannot be set without a href declaration");
@@ -51,4 +53,5 @@ var Button = function Button(_ref) {
51
53
  }, qa, rest), children);
52
54
  };
53
55
 
56
+ Button.displayName = "Button";
54
57
  export default Button;
@@ -44,4 +44,5 @@ var Container = styled.button.withConfig({
44
44
  }, function (props) {
45
45
  return props.appearance === "pill" && css(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode === "dark" ? "screen" : "multiply", pill);
46
46
  }, Icon, LAYOUT, COMMON);
47
+ Container.displayName = "Button-Container";
47
48
  export default Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
package/lib/Card/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "no babel-plugin-flow-react-proptypes";
2
2
 
3
+ var _excluded = ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"];
4
+
3
5
  function _extends() { _extends = Object.assign || 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
6
 
5
7
  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; }
@@ -22,7 +24,7 @@ var Card = function Card(_ref) {
22
24
  color = _ref$color === void 0 ? "text.body" : _ref$color,
23
25
  _ref$bg = _ref.bg,
24
26
  bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
25
- rest = _objectWithoutPropertiesLoose(_ref, ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"]);
27
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
26
28
 
27
29
  return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
28
30
  border: border,
@@ -3,7 +3,7 @@ import Button from "../Button";
3
3
  import Box from "../Box";
4
4
  var Container = styled(Box).withConfig({
5
5
  displayName: "styles__Container",
6
- componentId: "p098yi-0"
6
+ componentId: "sc-p098yi-0"
7
7
  })(["width:100%;border-radius:", ";position:relative;z-index:0;::after{content:\"\";top:0;left:0;position:absolute;border-radius:", ";z-index:-1;width:100%;height:100%;opacity:0;box-shadow:", ";transition:opacity ", " ", ";}&:hover{&::after{opacity:1;}}[role=\"button\"],[type=\"button\"],a{position:relative;}"], function (props) {
8
8
  return props.theme.radii.outer;
9
9
  }, function (props) {
@@ -17,6 +17,6 @@ var Container = styled(Box).withConfig({
17
17
  });
18
18
  var ClickableArea = styled(Button).withConfig({
19
19
  displayName: "styles__ClickableArea",
20
- componentId: "p098yi-1"
20
+ componentId: "sc-p098yi-1"
21
21
  })(["position:absolute !important;top:0;bottom:0;left:0;right:0;width:100%;"]);
22
22
  export { Container, ClickableArea };
@@ -1,3 +1,5 @@
1
+ var _excluded = ["size"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -21,7 +23,7 @@ var CharacterCounter = /*#__PURE__*/function (_React$Component) {
21
23
  _proto.render = function render() {
22
24
  var _this$props = this.props,
23
25
  size = _this$props.size,
24
- rest = _objectWithoutPropertiesLoose(_this$props, ["size"]);
26
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
25
27
 
26
28
  var remaining = this.props.maxValue - this.props.currentValue;
27
29
  return (
@@ -2,7 +2,7 @@ import styled, { css } from "styled-components";
2
2
  import { COMMON } from "../utils/system-props";
3
3
  var Container = styled.div.withConfig({
4
4
  displayName: "styles__Container",
5
- componentId: "do9szx-0"
5
+ componentId: "sc-do9szx-0"
6
6
  })(["font-family:", ";", ";font-weight:", ";line-height:1;font-variant-numeric:tabular-nums;color:", ";", " ", ""], function (props) {
7
7
  return props.theme.fontFamily;
8
8
  }, function (props) {
@@ -1,3 +1,5 @@
1
+ var _excluded = ["legendLabels", "stacked", "theme"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -32,7 +34,7 @@ var ChartLegend = function ChartLegend(props) {
32
34
  stacked = props.stacked,
33
35
  _props$theme = props.theme,
34
36
  theme = _props$theme === void 0 ? "compare" : _props$theme,
35
- rest = _objectWithoutPropertiesLoose(props, ["legendLabels", "stacked", "theme"]);
37
+ rest = _objectWithoutPropertiesLoose(props, _excluded);
36
38
 
37
39
  return /*#__PURE__*/React.createElement(Container, _extends({
38
40
  inline: !stacked,
@@ -2,13 +2,13 @@ import styled, { css } from "styled-components";
2
2
  import { COMMON, LAYOUT } from "../utils/system-props";
3
3
  export var Label = styled.span.withConfig({
4
4
  displayName: "styles__Label",
5
- componentId: "se0ijc-0"
5
+ componentId: "sc-se0ijc-0"
6
6
  })(["display:flex;align-items:center;color:", ";white-space:nowrap;text-transform:capitalize;"], function (props) {
7
7
  return props.theme.colors.text.subtext;
8
8
  });
9
9
  export var Swatch = styled.span.withConfig({
10
10
  displayName: "styles__Swatch",
11
- componentId: "se0ijc-1"
11
+ componentId: "sc-se0ijc-1"
12
12
  })(["margin-right:", ";width:", ";height:", ";border-radius:4px;", ""], function (props) {
13
13
  return props.theme.space[300];
14
14
  }, function (props) {
@@ -18,7 +18,7 @@ export var Swatch = styled.span.withConfig({
18
18
  }, COMMON);
19
19
  var Container = styled.div.withConfig({
20
20
  displayName: "styles__Container",
21
- componentId: "se0ijc-2"
21
+ componentId: "sc-se0ijc-2"
22
22
  })(["", " ", " ", ""], function (props) {
23
23
  return props.inline && css(["display:flex;justify-content:center;", " + ", "{margin-left:", ";}"], Label, Label, function (props) {
24
24
  return props.theme.space[450];
@@ -1,3 +1,5 @@
1
+ var _excluded = ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -63,7 +65,7 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
63
65
  tabIndex = _this$props.tabIndex,
64
66
  _this$props$inputProp = _this$props.inputProps,
65
67
  inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
66
- rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"]);
68
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
67
69
 
68
70
  var isPill = appearance === "pill"; // TODO: Refactor pill checkboxes to use fewer elements for performance gains
69
71
 
@@ -1,3 +1,6 @@
1
+ var _excluded = ["children"],
2
+ _excluded2 = ["children"];
3
+
1
4
  function _extends() { _extends = Object.assign || 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); }
2
5
 
3
6
  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; }
@@ -48,7 +51,7 @@ var determineMaxHeight = function determineMaxHeight(isHidden, openHeight, compu
48
51
 
49
52
  var Trigger = function Trigger(_ref2) {
50
53
  var children = _ref2.children,
51
- rest = _objectWithoutPropertiesLoose(_ref2, ["children"]);
54
+ rest = _objectWithoutPropertiesLoose(_ref2, _excluded);
52
55
 
53
56
  var _useContext = useContext(CollapsibleContext),
54
57
  isOpen = _useContext.isOpen,
@@ -62,7 +65,7 @@ var Trigger = function Trigger(_ref2) {
62
65
 
63
66
  var Panel = function Panel(_ref3) {
64
67
  var children = _ref3.children,
65
- rest = _objectWithoutPropertiesLoose(_ref3, ["children"]);
68
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded2);
66
69
 
67
70
  var _useContext2 = useContext(CollapsibleContext),
68
71
  isOpen = _useContext2.isOpen,
@@ -1,3 +1,5 @@
1
+ var _excluded = ["startDate", "endDate", "onDatesChange"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -11,7 +13,7 @@ var DateRangePicker = function DateRangePicker(_ref) {
11
13
  var startDate = _ref.startDate,
12
14
  endDate = _ref.endDate,
13
15
  onDatesChange = _ref.onDatesChange,
14
- rest = _objectWithoutPropertiesLoose(_ref, ["startDate", "endDate", "onDatesChange"]);
16
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
15
17
 
16
18
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(DayPickerRangeController, _extends({
17
19
  startDate: startDate,
@@ -1,3 +1,5 @@
1
+ var _excluded = ["onDateChange", "date"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -10,7 +12,7 @@ import { commonDatePickerProps } from "./common";
10
12
  var SingleDatePicker = function SingleDatePicker(_ref) {
11
13
  var onDateChange = _ref.onDateChange,
12
14
  date = _ref.date,
13
- rest = _objectWithoutPropertiesLoose(_ref, ["onDateChange", "date"]);
15
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
14
16
 
15
17
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(DayPickerSingleDateController, _extends({
16
18
  date: date,
@@ -1,3 +1,5 @@
1
+ var _excluded = ["startDate", "endDate", "onDatesChange", "onFocusChange"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -10,7 +12,7 @@ export var StatefulDateRangePicker = function StatefulDateRangePicker(_ref) {
10
12
  endDate = _ref.endDate,
11
13
  onDatesChange = _ref.onDatesChange,
12
14
  onFocusChange = _ref.onFocusChange,
13
- rest = _objectWithoutPropertiesLoose(_ref, ["startDate", "endDate", "onDatesChange", "onFocusChange"]);
15
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
14
16
 
15
17
  var _useState = useState({
16
18
  startDate: startDate,
@@ -1,3 +1,5 @@
1
+ var _excluded = ["date", "onDateChange"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
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; }
@@ -7,7 +9,7 @@ import SingleDatePicker from "./SingleDatePicker";
7
9
  export var StatefulSingleDatePicker = function StatefulSingleDatePicker(_ref) {
8
10
  var date = _ref.date,
9
11
  onDateChange = _ref.onDateChange,
10
- rest = _objectWithoutPropertiesLoose(_ref, ["date", "onDateChange"]);
12
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
11
13
 
12
14
  var _useState = useState(date),
13
15
  stateDate = _useState[0],
@@ -1,7 +1,3 @@
1
- var _templateObject;
2
-
3
- function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
4
-
5
1
  import styled, { createGlobalStyle, css } from "styled-components";
6
2
  import moment from "moment";
7
3
  import Box from "../Box";
@@ -56,7 +52,7 @@ var shouldHaveRightPill = function shouldHaveRightPill(modifiers, day) {
56
52
 
57
53
  export var CalendarDay = styled(Box).withConfig({
58
54
  displayName: "styles__CalendarDay",
59
- componentId: "fso9yi-0"
55
+ componentId: "sc-fso9yi-0"
60
56
  })(["", ";"], function (_ref) {
61
57
  var modifiers = _ref.modifiers,
62
58
  day = _ref.day,
@@ -72,7 +68,7 @@ export var CalendarDay = styled(Box).withConfig({
72
68
  return css(["color:", ";", ";"], theme.colors.text.subtext, disabled);
73
69
  }
74
70
  });
75
- export var ReactDatesCssOverrides = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t.DayPicker {\n\t\tbox-sizing: content-box;\n\t\tfont-weight: ", ";\n\t\tfont-family: ", ";\n\n\t\t/* override react-dates height to better reflect how tall the component actually is */\n\t\t/* adding margin/padding will be more truer to our seeds system because the height */\n\t\t/* of the calendar adds an extra row of padding if we do not override it */\n\t\t&_transitionContainer {\n\t\t\t/* need !important because react-dates sets height on the element itself */\n\t\t\theight: 228px !important;\n\t\t}\n\n\t\t&_weekHeader {\n\t\t\tcolor: ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n \t\t\t/* Magic number to match position of .CalendarMonth_caption */\n\t\t\ttop: 26px;\n\n\t\t\t/* Magic number to make the bottom border line stretch the full width */\n\t\t\twidth: 230px;\n\n\t\t\t&_ul {\n \t\t\t\t/* Magic number to line up day name headings over the correct numbers */\n\t\t\t\tpadding-left: 10px;\n\t\t\t}\n\t\t}\n\n\t\t&_weekHeaders__horizontal {\n\t\t\tmargin-left: 0\n\t\t}\n\n\t\t&_weekHeader_li {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tfont-weight: ", ";\n\t\t\tmargin: 0;\n\t\t}\n\n\t\t&__horizontal {\n\t\t\tbox-shadow: none;\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n .CalendarDay {\n\t\tbackground-color: transparent;\n\n &__selected, &__selected_span, &:hover {\n background-color: transparent;\n\t\t}\n\n\t\t&__default {\n\t\t\tcolor: ", ";\n\t\t}\n\t\t&__default,\n\t\t&__default:hover {\n\t\t\tborder: none;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n\n .CalendarMonth {\n\t\t", "\n\t\tbackground: ", ";\n\n \t\t/* spacing between visible months and months off canvas */\n\t\tpadding: 0 15px;\n\n\t\t&_caption {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tpadding-top: 0;\n\t\t\tbackground: ", ";\n\n\t\t\tstrong {\n\t\t\t\tfont-weight: ", ";\n\t\t\t}\n\n\t\t}\n\t\t&_table {\n\t\t\tline-height: 21.333px;\n\t\t\ttr {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t\ttd {\n\t\t\t\tpadding: 0;\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.CalendarMonthGrid {\n\t\tbackground: ", ";\n\t}\n\n\t/* Left and Right Arrow Buttons to navigate months */\n\t.DayPickerNavigation_button__horizontal {\n\t\tcolor: ", ";\n\t\ttop: -4px;\n\t\tpadding: 7px 8px;\n\t\tposition: absolute;\n\t\tline-height: 0.78;\n\t\tborder-radius: 9999px;\n\t\tborder: none;\n\t\tbackground: ", ";\n\n\t\t&:nth-child(1) {\n\t\t\tleft: 22px;\n\t\t}\n\t\t&:nth-child(2) {\n\t\t\tright: 22px;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n"])), function (_ref2) {
71
+ export var ReactDatesCssOverrides = createGlobalStyle([".DayPicker{box-sizing:content-box;font-weight:", ";font-family:", ";&_transitionContainer{height:228px !important;}&_weekHeader{color:", ";border-bottom:1px solid ", ";top:26px;width:230px;&_ul{padding-left:10px;}}&_weekHeaders__horizontal{margin-left:0}&_weekHeader_li{", " color:", ";font-weight:", ";margin:0;}&__horizontal{box-shadow:none;background:", ";}}.CalendarDay{background-color:transparent;&__selected,&__selected_span,&:hover{background-color:transparent;}&__default{color:", ";}&__default,&__default:hover{border:none;color:", ";}}.CalendarMonth{", " background:", ";padding:0 15px;&_caption{", " color:", ";padding-top:0;background:", ";strong{font-weight:", ";}}&_table{line-height:21.333px;tr{vertical-align:middle;}td{padding:0;border-bottom:none;}}}.CalendarMonthGrid{background:", ";}.DayPickerNavigation_button__horizontal{color:", ";top:-4px;padding:7px 8px;position:absolute;line-height:0.78;border-radius:9999px;border:none;background:", ";&:nth-child(1){left:22px;}&:nth-child(2){right:22px;}&:hover{background:", ";}}"], function (_ref2) {
76
72
  var theme = _ref2.theme;
77
73
  return theme.fontWeights.normal;
78
74
  }, function (props) {
@@ -1,3 +1,5 @@
1
+ var _excluded = ["isVisible", "children", "width", "direction"];
2
+
1
3
  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; }
2
4
 
3
5
  import * as React from "react";
@@ -8,7 +10,7 @@ export var SlideTransition = function SlideTransition(_ref) {
8
10
  children = _ref.children,
9
11
  width = _ref.width,
10
12
  direction = _ref.direction,
11
- rest = _objectWithoutPropertiesLoose(_ref, ["isVisible", "children", "width", "direction"]);
13
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
12
14
 
13
15
  var offset = width * (direction === "left" ? -1 : 1);
14
16
  var transitions = useTransition(isVisible, null, {