@sproutsocial/racine 11.3.0-beta.4 → 11.3.0-text-highlight.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 (184) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/__flow__/Input/index.js +66 -141
  3. package/__flow__/Input/index.stories.js +0 -65
  4. package/__flow__/Input/index.test.js +1 -227
  5. package/__flow__/Input/styles.js +1 -1
  6. package/__flow__/themes/dark/theme.js +1 -0
  7. package/__flow__/themes/light/theme.js +1 -0
  8. package/__flow__/types/theme.colors.flow.js +1 -0
  9. package/commonjs/Avatar/index.js +4 -7
  10. package/commonjs/Badge/index.js +1 -3
  11. package/commonjs/Badge/styles.js +1 -1
  12. package/commonjs/Banner/index.js +1 -3
  13. package/commonjs/Banner/styles.js +1 -1
  14. package/commonjs/Box/styles.js +1 -1
  15. package/commonjs/Breadcrumb/index.js +2 -5
  16. package/commonjs/Button/index.js +1 -3
  17. package/commonjs/Card/index.js +1 -3
  18. package/commonjs/Card/styles.js +3 -3
  19. package/commonjs/CharacterCounter/index.js +1 -3
  20. package/commonjs/CharacterCounter/styles.js +1 -1
  21. package/commonjs/ChartLegend/index.js +1 -3
  22. package/commonjs/ChartLegend/styles.js +3 -3
  23. package/commonjs/Checkbox/index.js +1 -3
  24. package/commonjs/Checkbox/styles.js +1 -1
  25. package/commonjs/Collapsible/index.js +2 -5
  26. package/commonjs/DatePicker/DateRangePicker.js +1 -3
  27. package/commonjs/DatePicker/SingleDatePicker.js +1 -3
  28. package/commonjs/DatePicker/StatefulDateRangePicker.js +1 -3
  29. package/commonjs/DatePicker/StatefulSingleDatePicker.js +1 -3
  30. package/commonjs/DatePicker/common.js +1 -1
  31. package/commonjs/DatePicker/styles.js +6 -2
  32. package/commonjs/Drawer/SlideTransition.js +1 -3
  33. package/commonjs/Drawer/index.js +4 -9
  34. package/commonjs/Drawer/styles.js +2 -2
  35. package/commonjs/EmptyState/index.js +1 -3
  36. package/commonjs/Fieldset/index.js +3 -7
  37. package/commonjs/FormField/index.js +1 -3
  38. package/commonjs/Icon/index.js +2 -5
  39. package/commonjs/Icon/styles.js +1 -1
  40. package/commonjs/Image/index.js +1 -3
  41. package/commonjs/Image/styles.js +1 -1
  42. package/commonjs/Indicator/index.js +1 -3
  43. package/commonjs/Input/index.js +31 -103
  44. package/commonjs/Input/styles.js +3 -3
  45. package/commonjs/KeyboardKey/index.js +1 -3
  46. package/commonjs/Label/index.js +2 -4
  47. package/commonjs/Link/index.js +1 -3
  48. package/commonjs/Link/styles.js +1 -1
  49. package/commonjs/Listbox/index.js +4 -7
  50. package/commonjs/Loader/index.js +1 -3
  51. package/commonjs/Loader/styles.js +2 -2
  52. package/commonjs/LoaderButton/index.js +1 -3
  53. package/commonjs/Menu/constants.js +1 -1
  54. package/commonjs/Menu/descendants.js +7 -10
  55. package/commonjs/Menu/hooks.js +1 -1
  56. package/commonjs/Menu/index.js +16 -22
  57. package/commonjs/Menu/styles.js +2 -2
  58. package/commonjs/Message/index.js +1 -3
  59. package/commonjs/Message/styles.js +1 -1
  60. package/commonjs/Modal/index.js +3 -7
  61. package/commonjs/Modal/styles.js +6 -4
  62. package/commonjs/Numeral/constants.js +1 -1
  63. package/commonjs/Numeral/index.js +1 -3
  64. package/commonjs/Numeral/styles.js +3 -3
  65. package/commonjs/OverflowList/styles.js +1 -1
  66. package/commonjs/Popout/index.js +3 -7
  67. package/commonjs/Popout/styles.js +1 -1
  68. package/commonjs/Radio/index.js +1 -3
  69. package/commonjs/Radio/styles.js +4 -4
  70. package/commonjs/SegmentedControl/index.js +2 -5
  71. package/commonjs/Select/index.js +1 -3
  72. package/commonjs/Stack/index.js +1 -3
  73. package/commonjs/Switch/index.js +1 -3
  74. package/commonjs/Switch/styles.js +1 -1
  75. package/commonjs/Table/index.js +5 -10
  76. package/commonjs/TableCell/index.js +1 -3
  77. package/commonjs/TableHeaderCell/index.js +1 -3
  78. package/commonjs/TableRowAccordion/index.js +1 -3
  79. package/commonjs/Tabs/index.js +2 -5
  80. package/commonjs/Tabs/styles.js +4 -4
  81. package/commonjs/Text/index.js +1 -3
  82. package/commonjs/Text/styles.js +1 -1
  83. package/commonjs/Textarea/index.js +1 -3
  84. package/commonjs/Toast/index.js +15 -15
  85. package/commonjs/Toast/styles.js +7 -4
  86. package/commonjs/ToggleHint/index.js +1 -3
  87. package/commonjs/Token/index.js +1 -3
  88. package/commonjs/Token/styles.js +1 -1
  89. package/commonjs/TokenInput/index.js +1 -3
  90. package/commonjs/Tooltip/index.js +2 -5
  91. package/commonjs/Tooltip/styles.js +1 -1
  92. package/commonjs/VisuallyHidden/index.js +1 -1
  93. package/commonjs/index.js +1 -1
  94. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  95. package/commonjs/themes/dark/theme.js +3 -2
  96. package/commonjs/themes/light/decorative-palettes.js +1 -1
  97. package/commonjs/themes/light/theme.js +3 -2
  98. package/commonjs/utils/hooks.js +2 -3
  99. package/commonjs/utils/mixins.js +1 -1
  100. package/commonjs/utils/system-props.js +1 -1
  101. package/dist/themes/dark/dark.scss +7 -6
  102. package/dist/themes/light/light.scss +97 -96
  103. package/lib/Avatar/index.js +4 -7
  104. package/lib/Badge/index.js +1 -3
  105. package/lib/Badge/styles.js +1 -1
  106. package/lib/Banner/index.js +1 -3
  107. package/lib/Banner/styles.js +1 -1
  108. package/lib/Box/styles.js +1 -1
  109. package/lib/Breadcrumb/index.js +2 -5
  110. package/lib/Button/index.js +1 -3
  111. package/lib/Card/index.js +1 -3
  112. package/lib/Card/styles.js +2 -2
  113. package/lib/CharacterCounter/index.js +1 -3
  114. package/lib/CharacterCounter/styles.js +1 -1
  115. package/lib/ChartLegend/index.js +1 -3
  116. package/lib/ChartLegend/styles.js +3 -3
  117. package/lib/Checkbox/index.js +1 -3
  118. package/lib/Collapsible/index.js +2 -5
  119. package/lib/DatePicker/DateRangePicker.js +1 -3
  120. package/lib/DatePicker/SingleDatePicker.js +1 -3
  121. package/lib/DatePicker/StatefulDateRangePicker.js +1 -3
  122. package/lib/DatePicker/StatefulSingleDatePicker.js +1 -3
  123. package/lib/DatePicker/styles.js +6 -2
  124. package/lib/Drawer/SlideTransition.js +1 -3
  125. package/lib/Drawer/index.js +4 -9
  126. package/lib/Drawer/styles.js +2 -2
  127. package/lib/EmptyState/index.js +1 -3
  128. package/lib/Fieldset/index.js +3 -7
  129. package/lib/FormField/index.js +1 -3
  130. package/lib/Icon/index.js +2 -5
  131. package/lib/Icon/styles.js +1 -1
  132. package/lib/Image/index.js +1 -3
  133. package/lib/Image/styles.js +1 -1
  134. package/lib/Indicator/index.js +1 -3
  135. package/lib/Input/index.js +30 -96
  136. package/lib/Input/styles.js +3 -3
  137. package/lib/KeyboardKey/index.js +1 -3
  138. package/lib/Label/index.js +2 -4
  139. package/lib/Link/index.js +1 -3
  140. package/lib/Link/styles.js +1 -1
  141. package/lib/Listbox/index.js +3 -6
  142. package/lib/Loader/index.js +1 -3
  143. package/lib/Loader/styles.js +2 -2
  144. package/lib/LoaderButton/index.js +1 -3
  145. package/lib/Menu/descendants.js +2 -5
  146. package/lib/Menu/index.js +16 -20
  147. package/lib/Menu/styles.js +2 -2
  148. package/lib/Message/index.js +1 -3
  149. package/lib/Modal/index.js +3 -7
  150. package/lib/Modal/styles.js +5 -3
  151. package/lib/Numeral/index.js +1 -3
  152. package/lib/Numeral/styles.js +2 -2
  153. package/lib/OverflowList/styles.js +1 -1
  154. package/lib/Popout/index.js +3 -7
  155. package/lib/Popout/styles.js +1 -1
  156. package/lib/Radio/index.js +1 -3
  157. package/lib/Radio/styles.js +4 -4
  158. package/lib/SegmentedControl/index.js +2 -5
  159. package/lib/Select/index.js +1 -3
  160. package/lib/Stack/index.js +1 -3
  161. package/lib/Switch/index.js +1 -3
  162. package/lib/Switch/styles.js +1 -1
  163. package/lib/Table/index.js +4 -9
  164. package/lib/TableCell/index.js +1 -3
  165. package/lib/TableHeaderCell/index.js +1 -3
  166. package/lib/TableRowAccordion/index.js +1 -3
  167. package/lib/Tabs/index.js +2 -5
  168. package/lib/Tabs/styles.js +3 -3
  169. package/lib/Text/index.js +1 -3
  170. package/lib/Text/styles.js +1 -1
  171. package/lib/Textarea/index.js +1 -3
  172. package/lib/Toast/index.js +14 -14
  173. package/lib/Toast/styles.js +7 -3
  174. package/lib/ToggleHint/index.js +1 -3
  175. package/lib/Token/index.js +1 -3
  176. package/lib/Token/styles.js +1 -1
  177. package/lib/TokenInput/index.js +1 -3
  178. package/lib/Tooltip/index.js +2 -5
  179. package/lib/Tooltip/styles.js +1 -1
  180. package/lib/VisuallyHidden/index.js +1 -1
  181. package/lib/themes/dark/theme.js +2 -1
  182. package/lib/themes/light/theme.js +2 -1
  183. package/package.json +1 -1
  184. package/bin/buildNpm.js +0 -58
@@ -1,12 +1,104 @@
1
1
  $light: (
2
2
  __esModule: true,
3
- borderWidths: (
4
- 500: 1px
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
5
80
  ),
6
81
  borders: (
7
82
  500: 1px solid
8
83
  ),
9
- breakpoints: (900px, 1200px, 1500px, 1800px),
84
+ borderWidths: (
85
+ 500: 1px
86
+ ),
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
101
+ ),
10
102
  default: (
11
103
  utils: (
12
104
 
@@ -154,7 +246,8 @@ $light: (
154
246
  subtext: #515e5f,
155
247
  body: #364141,
156
248
  inverse: #FFFFFF,
157
- error: #c63434
249
+ error: #c63434,
250
+ highlight: #ffe99a
158
251
  ),
159
252
  icon: (
160
253
  base: #364141,
@@ -616,97 +709,5 @@ $light: (
616
709
  slow: .6s
617
710
  ),
618
711
  mode: light
619
- ),
620
- duration: (
621
- fast: .15s,
622
- medium: .3s,
623
- slow: .6s
624
- ),
625
- easing: (
626
- ease_in: cubic-bezier(.4, 0, .7, .2),
627
- ease_out: cubic-bezier(0, 0, .2, 1),
628
- ease_inout: cubic-bezier(.4, 0, .2, 1)
629
- ),
630
- fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif",
631
- fontWeights: (
632
- normal: 400,
633
- semibold: 600,
634
- bold: 700,
635
- extrabold: 800
636
- ),
637
- radii: (
638
- 400: 4px,
639
- 500: 6px,
640
- 600: 8px,
641
- 1000: 999999px,
642
- inner: 6px,
643
- outer: 8px,
644
- pill: 999999px
645
- ),
646
- shadows: (
647
- low: 0px 2px 4px #2733333D,
648
- medium: 0px 8px 16px #2733333D,
649
- high: 0px 16px 32px #2733333D
650
- ),
651
- space: (
652
- 0: 0px,
653
- 100: 2px,
654
- 200: 4px,
655
- 300: 8px,
656
- 350: 12px,
657
- 400: 16px,
658
- 450: 24px,
659
- 500: 32px,
660
- 600: 40px
661
- ),
662
- typography: (
663
- 100: (
664
- fontSize: 11px,
665
- lineHeight: 18.666666666666668px
666
- ),
667
- 200: (
668
- fontSize: 13px,
669
- lineHeight: 21.333333333333332px
670
- ),
671
- 300: (
672
- fontSize: 16px,
673
- lineHeight: 24px
674
- ),
675
- 400: (
676
- fontSize: 18px,
677
- lineHeight: 26.666666666666668px
678
- ),
679
- 500: (
680
- fontSize: 21px,
681
- lineHeight: 29.333333333333332px
682
- ),
683
- 600: (
684
- fontSize: 24px,
685
- lineHeight: 32px
686
- ),
687
- 700: (
688
- fontSize: 32px,
689
- lineHeight: 40px
690
- ),
691
- 800: (
692
- fontSize: 43px,
693
- lineHeight: 50.666666666666664px
694
- ),
695
- 900: (
696
- fontSize: 57px,
697
- lineHeight: 64px
698
- ),
699
- 1000: (
700
- fontSize: 76px,
701
- lineHeight: 80px
702
- ),
703
- 1100: (
704
- fontSize: 101px,
705
- lineHeight: 101.33333333333333px
706
- ),
707
- 1200: (
708
- fontSize: 135px,
709
- lineHeight: 125.33333333333333px
710
- )
711
712
  )
712
713
  );
@@ -1,6 +1,3 @@
1
- var _excluded = ["fontSize"],
2
- _excluded2 = ["appearance", "name", "src", "variant", "type", "size", "bg", "color"];
3
-
4
1
  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); }
5
2
 
6
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; }
@@ -14,12 +11,12 @@ import Image from "../Image";
14
11
  import Text from "../Text";
15
12
  var AvatarText = styled(function (_ref) {
16
13
  var fontSize = _ref.fontSize,
17
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
14
+ rest = _objectWithoutPropertiesLoose(_ref, ["fontSize"]);
18
15
 
19
16
  return /*#__PURE__*/React.createElement(Text, rest);
20
17
  }).withConfig({
21
18
  displayName: "Avatar__AvatarText",
22
- componentId: "sc-yx873f-0"
19
+ componentId: "yx873f-0"
23
20
  })(["font-size:", "px;color:", "px;"], function (props) {
24
21
  return props.fontSize;
25
22
  }, function (props) {
@@ -27,7 +24,7 @@ var AvatarText = styled(function (_ref) {
27
24
  });
28
25
  var Container = styled(Box).withConfig({
29
26
  displayName: "Avatar__Container",
30
- componentId: "sc-yx873f-1"
27
+ componentId: "yx873f-1"
31
28
  })(["", ""], function (_ref2) {
32
29
  var theme = _ref2.theme,
33
30
  type = _ref2.type,
@@ -62,7 +59,7 @@ export var Avatar = function Avatar(_ref3) {
62
59
  size = _ref3$size === void 0 ? "40px" : _ref3$size,
63
60
  bg = _ref3.bg,
64
61
  color = _ref3.color,
65
- rest = _objectWithoutPropertiesLoose(_ref3, _excluded2);
62
+ rest = _objectWithoutPropertiesLoose(_ref3, ["appearance", "name", "src", "variant", "type", "size", "bg", "color"]);
66
63
 
67
64
  var _useState = useState(false),
68
65
  imageFailedLoading = _useState[0],
@@ -1,5 +1,3 @@
1
- var _excluded = ["children", "text", "iconName", "type", "tip", "size", "badgeColor"];
2
-
3
1
  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
2
 
5
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; }
@@ -19,7 +17,7 @@ var Badge = function Badge(_ref) {
19
17
  size = _ref$size === void 0 ? "small" : _ref$size,
20
18
  _ref$badgeColor = _ref.badgeColor,
21
19
  badgeColor = _ref$badgeColor === void 0 ? "blue" : _ref$badgeColor,
22
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
20
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "text", "iconName", "type", "tip", "size", "badgeColor"]);
23
21
 
24
22
  if (children && text) {
25
23
  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: "sc-g1g76b-0"
8
+ componentId: "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,5 +1,3 @@
1
- var _excluded = ["type", "text"];
2
-
3
1
  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
2
 
5
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; }
@@ -69,7 +67,7 @@ var Banner = /*#__PURE__*/function (_React$Component) {
69
67
  var _this$props = this.props,
70
68
  type = _this$props.type,
71
69
  text = _this$props.text,
72
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
70
+ rest = _objectWithoutPropertiesLoose(_this$props, ["type", "text"]);
73
71
 
74
72
  return /*#__PURE__*/React.createElement(Container // danger needs to be properly deprecated and removed DS-1094
75
73
  , _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: "sc-q43dr4-0"
5
+ componentId: "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: "sc-ma8yo6-0"
5
+ componentId: "ma8yo6-0"
6
6
  })(["box-sizing:border-box;font-family:", ";", " ", " ", " ", " ", " ", ""], function (_ref) {
7
7
  var theme = _ref.theme;
8
8
  return theme.fontFamily;
@@ -1,6 +1,3 @@
1
- var _excluded = ["children", "href"],
2
- _excluded2 = ["ariaLabel", "overflow", "children"];
3
-
4
1
  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); }
5
2
 
6
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; }
@@ -15,7 +12,7 @@ import Nav from "./styles";
15
12
  var BreadcrumbItem = function BreadcrumbItem(_ref) {
16
13
  var children = _ref.children,
17
14
  href = _ref.href,
18
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
15
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "href"]);
19
16
 
20
17
  return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Link, _extends({
21
18
  href: href // $FlowIssue - upgrade v0.112.0
@@ -27,7 +24,7 @@ var Breadcrumb = function Breadcrumb(_ref2) {
27
24
  var ariaLabel = _ref2.ariaLabel,
28
25
  overflow = _ref2.overflow,
29
26
  children = _ref2.children,
30
- rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
27
+ rest = _objectWithoutPropertiesLoose(_ref2, ["ariaLabel", "overflow", "children"]);
31
28
 
32
29
  var listItems = Children.toArray(children);
33
30
  var lastItem = listItems[listItems.length - 1];
@@ -1,5 +1,3 @@
1
- var _excluded = ["href", "appearance", "active", "disabled", "external", "children", "size", "innerRef", "onClick", "title", "qa", "as", "ariaLabel"];
2
-
3
1
  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
2
 
5
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; }
@@ -25,7 +23,7 @@ var Button = function Button(_ref) {
25
23
  qa = _ref$qa === void 0 ? {} : _ref$qa,
26
24
  as = _ref.as,
27
25
  ariaLabel = _ref.ariaLabel,
28
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
26
+ rest = _objectWithoutPropertiesLoose(_ref, ["href", "appearance", "active", "disabled", "external", "children", "size", "innerRef", "onClick", "title", "qa", "as", "ariaLabel"]);
29
27
 
30
28
  if (!href && external) {
31
29
  console.warn("Warning: external prop cannot be set without a href declaration");
package/lib/Card/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  "no babel-plugin-flow-react-proptypes";
2
2
 
3
- var _excluded = ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"];
4
-
5
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); }
6
4
 
7
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; }
@@ -24,7 +22,7 @@ var Card = function Card(_ref) {
24
22
  color = _ref$color === void 0 ? "text.body" : _ref$color,
25
23
  _ref$bg = _ref.bg,
26
24
  bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
27
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
25
+ rest = _objectWithoutPropertiesLoose(_ref, ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"]);
28
26
 
29
27
  return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
30
28
  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: "sc-p098yi-0"
6
+ componentId: "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: "sc-p098yi-1"
20
+ componentId: "p098yi-1"
21
21
  })(["position:absolute !important;top:0;bottom:0;left:0;right:0;width:100%;"]);
22
22
  export { Container, ClickableArea };
@@ -1,5 +1,3 @@
1
- var _excluded = ["size"];
2
-
3
1
  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
2
 
5
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; }
@@ -23,7 +21,7 @@ var CharacterCounter = /*#__PURE__*/function (_React$Component) {
23
21
  _proto.render = function render() {
24
22
  var _this$props = this.props,
25
23
  size = _this$props.size,
26
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
24
+ rest = _objectWithoutPropertiesLoose(_this$props, ["size"]);
27
25
 
28
26
  var remaining = this.props.maxValue - this.props.currentValue;
29
27
  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: "sc-do9szx-0"
5
+ componentId: "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,5 +1,3 @@
1
- var _excluded = ["legendLabels", "stacked", "theme"];
2
-
3
1
  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
2
 
5
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; }
@@ -34,7 +32,7 @@ var ChartLegend = function ChartLegend(props) {
34
32
  stacked = props.stacked,
35
33
  _props$theme = props.theme,
36
34
  theme = _props$theme === void 0 ? "compare" : _props$theme,
37
- rest = _objectWithoutPropertiesLoose(props, _excluded);
35
+ rest = _objectWithoutPropertiesLoose(props, ["legendLabels", "stacked", "theme"]);
38
36
 
39
37
  return /*#__PURE__*/React.createElement(Container, _extends({
40
38
  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: "sc-se0ijc-0"
5
+ componentId: "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: "sc-se0ijc-1"
11
+ componentId: "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: "sc-se0ijc-2"
21
+ componentId: "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,5 +1,3 @@
1
- var _excluded = ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"];
2
-
3
1
  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
2
 
5
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; }
@@ -65,7 +63,7 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
65
63
  tabIndex = _this$props.tabIndex,
66
64
  _this$props$inputProp = _this$props.inputProps,
67
65
  inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
68
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
66
+ rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"]);
69
67
 
70
68
  var isPill = appearance === "pill"; // TODO: Refactor pill checkboxes to use fewer elements for performance gains
71
69
 
@@ -1,6 +1,3 @@
1
- var _excluded = ["children"],
2
- _excluded2 = ["children"];
3
-
4
1
  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); }
5
2
 
6
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; }
@@ -51,7 +48,7 @@ var determineMaxHeight = function determineMaxHeight(isHidden, openHeight, compu
51
48
 
52
49
  var Trigger = function Trigger(_ref2) {
53
50
  var children = _ref2.children,
54
- rest = _objectWithoutPropertiesLoose(_ref2, _excluded);
51
+ rest = _objectWithoutPropertiesLoose(_ref2, ["children"]);
55
52
 
56
53
  var _useContext = useContext(CollapsibleContext),
57
54
  isOpen = _useContext.isOpen,
@@ -65,7 +62,7 @@ var Trigger = function Trigger(_ref2) {
65
62
 
66
63
  var Panel = function Panel(_ref3) {
67
64
  var children = _ref3.children,
68
- rest = _objectWithoutPropertiesLoose(_ref3, _excluded2);
65
+ rest = _objectWithoutPropertiesLoose(_ref3, ["children"]);
69
66
 
70
67
  var _useContext2 = useContext(CollapsibleContext),
71
68
  isOpen = _useContext2.isOpen,
@@ -1,5 +1,3 @@
1
- var _excluded = ["startDate", "endDate", "onDatesChange"];
2
-
3
1
  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
2
 
5
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; }
@@ -13,7 +11,7 @@ var DateRangePicker = function DateRangePicker(_ref) {
13
11
  var startDate = _ref.startDate,
14
12
  endDate = _ref.endDate,
15
13
  onDatesChange = _ref.onDatesChange,
16
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
14
+ rest = _objectWithoutPropertiesLoose(_ref, ["startDate", "endDate", "onDatesChange"]);
17
15
 
18
16
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(DayPickerRangeController, _extends({
19
17
  startDate: startDate,
@@ -1,5 +1,3 @@
1
- var _excluded = ["onDateChange", "date"];
2
-
3
1
  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
2
 
5
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; }
@@ -12,7 +10,7 @@ import { commonDatePickerProps } from "./common";
12
10
  var SingleDatePicker = function SingleDatePicker(_ref) {
13
11
  var onDateChange = _ref.onDateChange,
14
12
  date = _ref.date,
15
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
13
+ rest = _objectWithoutPropertiesLoose(_ref, ["onDateChange", "date"]);
16
14
 
17
15
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(DayPickerSingleDateController, _extends({
18
16
  date: date,
@@ -1,5 +1,3 @@
1
- var _excluded = ["startDate", "endDate", "onDatesChange", "onFocusChange"];
2
-
3
1
  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
2
 
5
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; }
@@ -12,7 +10,7 @@ export var StatefulDateRangePicker = function StatefulDateRangePicker(_ref) {
12
10
  endDate = _ref.endDate,
13
11
  onDatesChange = _ref.onDatesChange,
14
12
  onFocusChange = _ref.onFocusChange,
15
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
13
+ rest = _objectWithoutPropertiesLoose(_ref, ["startDate", "endDate", "onDatesChange", "onFocusChange"]);
16
14
 
17
15
  var _useState = useState({
18
16
  startDate: startDate,
@@ -1,5 +1,3 @@
1
- var _excluded = ["date", "onDateChange"];
2
-
3
1
  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
2
 
5
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; }
@@ -9,7 +7,7 @@ import SingleDatePicker from "./SingleDatePicker";
9
7
  export var StatefulSingleDatePicker = function StatefulSingleDatePicker(_ref) {
10
8
  var date = _ref.date,
11
9
  onDateChange = _ref.onDateChange,
12
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
10
+ rest = _objectWithoutPropertiesLoose(_ref, ["date", "onDateChange"]);
13
11
 
14
12
  var _useState = useState(date),
15
13
  stateDate = _useState[0],
@@ -1,3 +1,7 @@
1
+ var _templateObject;
2
+
3
+ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
4
+
1
5
  import styled, { createGlobalStyle, css } from "styled-components";
2
6
  import moment from "moment";
3
7
  import Box from "../Box";
@@ -52,7 +56,7 @@ var shouldHaveRightPill = function shouldHaveRightPill(modifiers, day) {
52
56
 
53
57
  export var CalendarDay = styled(Box).withConfig({
54
58
  displayName: "styles__CalendarDay",
55
- componentId: "sc-fso9yi-0"
59
+ componentId: "fso9yi-0"
56
60
  })(["", ";"], function (_ref) {
57
61
  var modifiers = _ref.modifiers,
58
62
  day = _ref.day,
@@ -68,7 +72,7 @@ export var CalendarDay = styled(Box).withConfig({
68
72
  return css(["color:", ";", ";"], theme.colors.text.subtext, disabled);
69
73
  }
70
74
  });
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) {
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) {
72
76
  var theme = _ref2.theme;
73
77
  return theme.fontWeights.normal;
74
78
  }, function (props) {
@@ -1,5 +1,3 @@
1
- var _excluded = ["isVisible", "children", "width", "direction"];
2
-
3
1
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
2
 
5
3
  import * as React from "react";
@@ -10,7 +8,7 @@ export var SlideTransition = function SlideTransition(_ref) {
10
8
  children = _ref.children,
11
9
  width = _ref.width,
12
10
  direction = _ref.direction,
13
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
11
+ rest = _objectWithoutPropertiesLoose(_ref, ["isVisible", "children", "width", "direction"]);
14
12
 
15
13
  var offset = width * (direction === "left" ? -1 : 1);
16
14
  var transitions = useTransition(isVisible, null, {