@sproutsocial/racine 7.7.0-beta-collapsible.0 → 8.0.0-beta-dark-mode.3

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 (179) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/__flow__/Badge/styles.js +1 -1
  3. package/__flow__/Banner/index.js +2 -1
  4. package/__flow__/Banner/styles.js +9 -6
  5. package/__flow__/Box/index.stories.js +3 -3
  6. package/__flow__/Box/styles.js +9 -9
  7. package/__flow__/Button/__snapshots__/index.test.js.snap +4 -4
  8. package/__flow__/Button/index.js +7 -2
  9. package/__flow__/Button/index.stories.js +6 -1
  10. package/__flow__/Button/styles.js +17 -12
  11. package/__flow__/Card/index.js +2 -2
  12. package/__flow__/CharacterCounter/styles.js +1 -1
  13. package/__flow__/ChartLegend/styles.js +6 -6
  14. package/__flow__/Checkbox/styles.js +18 -16
  15. package/__flow__/Collapsible/index.js +6 -24
  16. package/__flow__/Collapsible/index.stories.js +11 -82
  17. package/__flow__/Collapsible/styles.js +2 -28
  18. package/__flow__/DatePicker/styles.js +14 -12
  19. package/__flow__/Drawer/styles.js +1 -1
  20. package/__flow__/FormField/index.js +1 -1
  21. package/__flow__/Icon/index.stories.js +24 -6
  22. package/__flow__/Input/styles.js +6 -6
  23. package/__flow__/KeyboardKey/styles.js +2 -2
  24. package/__flow__/Link/styles.js +3 -5
  25. package/__flow__/Listbox/__snapshots__/index.test.js.snap +8 -2
  26. package/__flow__/Listbox/index.js +4 -4
  27. package/__flow__/Menu/__snapshots__/index.test.js.snap +5 -2
  28. package/__flow__/Menu/index.js +7 -2
  29. package/__flow__/Menu/styles.js +6 -3
  30. package/__flow__/Message/index.js +2 -2
  31. package/__flow__/Message/index.stories.js +1 -1
  32. package/__flow__/Modal/index.js +1 -1
  33. package/__flow__/Modal/index.stories.js +14 -8
  34. package/__flow__/Modal/styles.js +2 -2
  35. package/__flow__/Numeral/styles.js +2 -1
  36. package/__flow__/OverflowList/index.stories.js +15 -8
  37. package/__flow__/Popout/index.js +3 -3
  38. package/__flow__/Radio/styles.js +8 -8
  39. package/__flow__/SegmentedControl/styles.js +9 -5
  40. package/__flow__/Select/styles.js +5 -5
  41. package/__flow__/Skeleton/index.js +4 -4
  42. package/__flow__/Skeleton/index.stories.js +1 -1
  43. package/__flow__/Stack/index.js +1 -1
  44. package/__flow__/Stack/index.stories.js +3 -1
  45. package/__flow__/Switch/styles.js +13 -11
  46. package/__flow__/Table/styles.js +2 -1
  47. package/__flow__/TableCell/index.stories.js +2 -0
  48. package/__flow__/TableHeaderCell/index.stories.js +3 -0
  49. package/__flow__/TableRowAccordion/styles.js +2 -1
  50. package/__flow__/Tabs/styles.js +5 -5
  51. package/__flow__/Textarea/styles.js +5 -5
  52. package/__flow__/ThemeProvider/index.js +2 -2
  53. package/__flow__/Toast/index.js +1 -1
  54. package/__flow__/Toast/styles.js +3 -3
  55. package/__flow__/Token/styles.js +19 -8
  56. package/__flow__/TokenInput/index.js +2 -1
  57. package/__flow__/TokenInput/styles.js +14 -6
  58. package/__flow__/Tooltip/index.js +2 -2
  59. package/__flow__/index.js +2 -2
  60. package/__flow__/themes/dark/decorative-palettes.js +43 -0
  61. package/__flow__/themes/dark/theme.js +195 -0
  62. package/__flow__/themes/default/decorative-palettes.js +43 -0
  63. package/__flow__/themes/default/literal-colors.js +160 -0
  64. package/__flow__/themes/default/theme.js +336 -0
  65. package/__flow__/types/system-props.flow.js +2 -2
  66. package/__flow__/types/theme.colors.flow.js +244 -0
  67. package/__flow__/types/theme.flow.js +38 -213
  68. package/__flow__/utils/mixins.js +4 -3
  69. package/__flow__/utils/responsiveProps/index.js +1 -1
  70. package/commonjs/Badge/styles.js +1 -1
  71. package/commonjs/Banner/index.js +3 -2
  72. package/commonjs/Banner/styles.js +1 -1
  73. package/commonjs/Button/index.js +5 -3
  74. package/commonjs/Button/styles.js +12 -11
  75. package/commonjs/Card/index.js +2 -2
  76. package/commonjs/CharacterCounter/styles.js +1 -1
  77. package/commonjs/Checkbox/styles.js +7 -7
  78. package/commonjs/Collapsible/index.js +6 -15
  79. package/commonjs/Collapsible/styles.js +1 -8
  80. package/commonjs/DatePicker/styles.js +13 -11
  81. package/commonjs/Drawer/styles.js +1 -1
  82. package/commonjs/FormField/index.js +1 -1
  83. package/commonjs/Input/styles.js +6 -6
  84. package/commonjs/KeyboardKey/styles.js +2 -2
  85. package/commonjs/Link/styles.js +4 -8
  86. package/commonjs/Listbox/index.js +4 -4
  87. package/commonjs/Menu/index.js +2 -2
  88. package/commonjs/Menu/styles.js +10 -4
  89. package/commonjs/Message/index.js +2 -2
  90. package/commonjs/Modal/index.js +1 -1
  91. package/commonjs/Modal/styles.js +2 -2
  92. package/commonjs/Numeral/styles.js +1 -1
  93. package/commonjs/Popout/index.js +2 -2
  94. package/commonjs/Radio/styles.js +4 -4
  95. package/commonjs/SegmentedControl/styles.js +5 -5
  96. package/commonjs/Select/styles.js +5 -5
  97. package/commonjs/Skeleton/index.js +2 -2
  98. package/commonjs/Switch/styles.js +7 -7
  99. package/commonjs/Table/styles.js +1 -1
  100. package/commonjs/TableRowAccordion/styles.js +1 -1
  101. package/commonjs/Tabs/styles.js +5 -5
  102. package/commonjs/Textarea/styles.js +5 -5
  103. package/commonjs/ThemeProvider/index.js +1 -1
  104. package/commonjs/Toast/index.js +1 -1
  105. package/commonjs/Toast/styles.js +3 -3
  106. package/commonjs/Token/styles.js +18 -10
  107. package/commonjs/TokenInput/index.js +38 -35
  108. package/commonjs/TokenInput/styles.js +9 -7
  109. package/commonjs/Tooltip/index.js +2 -2
  110. package/commonjs/index.js +3 -3
  111. package/commonjs/themes/dark/decorative-palettes.js +51 -0
  112. package/commonjs/themes/dark/theme.js +195 -0
  113. package/commonjs/themes/default/decorative-palettes.js +51 -0
  114. package/commonjs/themes/default/literal-colors.js +165 -0
  115. package/commonjs/themes/default/theme.js +334 -0
  116. package/commonjs/types/theme.colors.flow.js +5 -0
  117. package/commonjs/types/theme.flow.js +1 -5
  118. package/commonjs/utils/mixins.js +2 -2
  119. package/commonjs/utils/responsiveProps/index.js +1 -1
  120. package/lib/Badge/styles.js +1 -1
  121. package/lib/Banner/index.js +3 -2
  122. package/lib/Banner/styles.js +1 -1
  123. package/lib/Button/index.js +5 -3
  124. package/lib/Button/styles.js +11 -11
  125. package/lib/Card/index.js +2 -2
  126. package/lib/CharacterCounter/styles.js +1 -1
  127. package/lib/Checkbox/styles.js +7 -7
  128. package/lib/Collapsible/index.js +6 -15
  129. package/lib/Collapsible/styles.js +1 -8
  130. package/lib/DatePicker/styles.js +12 -11
  131. package/lib/Drawer/styles.js +1 -1
  132. package/lib/FormField/index.js +1 -1
  133. package/lib/Input/styles.js +6 -6
  134. package/lib/KeyboardKey/styles.js +2 -2
  135. package/lib/Link/styles.js +4 -8
  136. package/lib/Listbox/index.js +4 -4
  137. package/lib/Menu/index.js +2 -2
  138. package/lib/Menu/styles.js +10 -4
  139. package/lib/Message/index.js +2 -2
  140. package/lib/Modal/index.js +1 -1
  141. package/lib/Modal/styles.js +2 -2
  142. package/lib/Numeral/styles.js +1 -1
  143. package/lib/Popout/index.js +2 -2
  144. package/lib/Radio/styles.js +4 -4
  145. package/lib/SegmentedControl/styles.js +5 -5
  146. package/lib/Select/styles.js +5 -5
  147. package/lib/Skeleton/index.js +2 -2
  148. package/lib/Switch/styles.js +7 -7
  149. package/lib/Table/styles.js +1 -1
  150. package/lib/TableRowAccordion/styles.js +1 -1
  151. package/lib/Tabs/styles.js +5 -5
  152. package/lib/Textarea/styles.js +5 -5
  153. package/lib/ThemeProvider/index.js +1 -1
  154. package/lib/Toast/index.js +1 -1
  155. package/lib/Toast/styles.js +3 -3
  156. package/lib/Token/styles.js +18 -10
  157. package/lib/TokenInput/index.js +38 -35
  158. package/lib/TokenInput/styles.js +9 -7
  159. package/lib/Tooltip/index.js +2 -2
  160. package/lib/index.js +2 -2
  161. package/lib/themes/dark/decorative-palettes.js +36 -0
  162. package/lib/themes/dark/theme.js +185 -0
  163. package/lib/themes/default/decorative-palettes.js +36 -0
  164. package/lib/themes/default/literal-colors.js +156 -0
  165. package/lib/themes/default/theme.js +306 -0
  166. package/lib/types/theme.colors.flow.js +1 -0
  167. package/lib/types/theme.flow.js +1 -1
  168. package/lib/utils/mixins.js +2 -2
  169. package/lib/utils/responsiveProps/index.js +1 -1
  170. package/package.json +2 -2
  171. package/__flow__/themes/dark.js +0 -133
  172. package/__flow__/themes/light.js +0 -7
  173. package/__flow__/utils/theme.js +0 -422
  174. package/commonjs/themes/dark.js +0 -140
  175. package/commonjs/themes/light.js +0 -14
  176. package/commonjs/utils/theme.js +0 -421
  177. package/lib/themes/dark.js +0 -131
  178. package/lib/themes/light.js +0 -5
  179. package/lib/utils/theme.js +0 -402
@@ -1,218 +1,43 @@
1
1
  // @flow strict-local
2
- import theme, {
2
+ import {
3
3
  breakpoints,
4
+ typography,
4
5
  fontWeights,
6
+ radii,
7
+ borders,
8
+ borderWidths,
9
+ shadows,
10
+ space,
5
11
  easing,
6
12
  duration,
7
- } from "../utils/theme";
8
-
9
- export type TypeTheme = typeof theme;
10
-
11
- export type TypeBreakpoints = typeof breakpoints;
12
-
13
- export type TypeColor =
14
- | "cta.primary"
15
- | "cta.secondary"
16
- | "cta.link"
17
- | "text.body"
18
- | "text.headline"
19
- | "text.subtext"
20
- | "error"
21
- | "warning"
22
- | "border"
23
- | "neutral.0"
24
- | "neutral.100"
25
- | "neutral.200"
26
- | "neutral.300"
27
- | "neutral.400"
28
- | "neutral.500"
29
- | "neutral.600"
30
- | "neutral.700"
31
- | "neutral.800"
32
- | "neutral.900"
33
- | "neutral.1000"
34
- | "green.0"
35
- | "green.100"
36
- | "green.200"
37
- | "green.300"
38
- | "green.400"
39
- | "green.500"
40
- | "green.600"
41
- | "green.700"
42
- | "green.800"
43
- | "green.900"
44
- | "green.1000"
45
- | "green.1100"
46
- | "red.0"
47
- | "red.100"
48
- | "red.200"
49
- | "red.300"
50
- | "red.400"
51
- | "red.500"
52
- | "red.600"
53
- | "red.700"
54
- | "red.800"
55
- | "red.900"
56
- | "red.1000"
57
- | "blue.0"
58
- | "blue.100"
59
- | "blue.200"
60
- | "blue.300"
61
- | "blue.400"
62
- | "blue.500"
63
- | "blue.600"
64
- | "blue.700"
65
- | "blue.800"
66
- | "blue.900"
67
- | "blue.1000"
68
- | "blue.1100"
69
- | "teal.0"
70
- | "teal.100"
71
- | "teal.200"
72
- | "teal.300"
73
- | "teal.400"
74
- | "teal.500"
75
- | "teal.600"
76
- | "teal.700"
77
- | "teal.800"
78
- | "teal.900"
79
- | "teal.1000"
80
- | "teal.1100"
81
- | "aqua.0"
82
- | "aqua.100"
83
- | "aqua.200"
84
- | "aqua.300"
85
- | "aqua.400"
86
- | "aqua.500"
87
- | "aqua.600"
88
- | "aqua.700"
89
- | "aqua.800"
90
- | "aqua.900"
91
- | "aqua.1000"
92
- | "aqua.1100"
93
- | "purple.0"
94
- | "purple.100"
95
- | "purple.200"
96
- | "purple.300"
97
- | "purple.400"
98
- | "purple.500"
99
- | "purple.600"
100
- | "purple.700"
101
- | "purple.800"
102
- | "purple.900"
103
- | "purple.1000"
104
- | "purple.1100"
105
- | "yellow.0"
106
- | "yellow.100"
107
- | "yellow.200"
108
- | "yellow.300"
109
- | "yellow.400"
110
- | "yellow.500"
111
- | "yellow.600"
112
- | "yellow.700"
113
- | "yellow.800"
114
- | "yellow.900"
115
- | "yellow.1000"
116
- | "yellow.1100"
117
- | "pink.0"
118
- | "pink.100"
119
- | "pink.200"
120
- | "pink.300"
121
- | "pink.400"
122
- | "pink.500"
123
- | "pink.600"
124
- | "pink.700"
125
- | "pink.800"
126
- | "pink.900"
127
- | "pink.1000"
128
- | "pink.1100"
129
- | "orange.0"
130
- | "orange.100"
131
- | "orange.200"
132
- | "orange.300"
133
- | "orange.400"
134
- | "orange.500"
135
- | "orange.600"
136
- | "orange.700"
137
- | "orange.800"
138
- | "orange.900"
139
- | "orange.1000"
140
- | "orange.1100"
141
- | "pink.0"
142
- | "pink.100"
143
- | "pink.200"
144
- | "pink.300"
145
- | "pink.400"
146
- | "pink.500"
147
- | "pink.600"
148
- | "pink.700"
149
- | "pink.800"
150
- | "pink.900"
151
- | "pink.1000"
152
- | "pink.1100"
153
- | "network.twitter"
154
- | "network.twitter_like"
155
- | "network.facebook"
156
- | "network.facebook_audience_network"
157
- | "network.linkedin"
158
- | "network.instagram"
159
- | "network.feedly"
160
- | "network.analytics"
161
- | "network.youtube"
162
- | "network.messenger"
163
- | "network.snapchat"
164
- | "network.pinterest"
165
- | "network.tumblr"
166
- | "network.reddit"
167
- | "network.tripadvisor"
168
- | "network.google_my_business";
169
-
170
- export type TypeTypographySize =
171
- | 100
172
- | 200
173
- | 300
174
- | 400
175
- | 500
176
- | 600
177
- | 700
178
- | 800
179
- | 900
180
- | 1000
181
- | 1100
182
- | 1200;
183
-
184
- export type TypeFontWeight = $Keys<typeof fontWeights>;
185
-
186
- export type TypeSpace =
187
- | 0
188
- | 100
189
- | 200
190
- | 300
191
- | 350
192
- | 400
193
- | 450
194
- | 500
195
- | 600
196
- | -100
197
- | -200
198
- | -300
199
- | -350
200
- | -400
201
- | -450
202
- | -500
203
- | -600
204
- | string;
205
-
206
- export type TypeRadii = 400 | 500 | 600 | 1000 | "inner" | "outer" | "pill";
207
-
208
- export type TypeBorder = 500;
209
-
210
- export type TypeBorderWidth = 500;
211
-
212
- export type TypeShadow = 100 | 200 | 300 | 400;
213
-
214
- export type TypeEasing = $Keys<typeof easing>;
215
-
216
- export type TypeDuration = $Keys<typeof duration>;
217
-
218
- export type TypeSize = "default" | "large";
13
+ } from "../themes/default/theme";
14
+ import type { TypeColors } from "./theme.colors.flow.js";
15
+ import type { TypeFontFamilyString } from "../themes/default/theme";
16
+
17
+ export type TypeBreakpoint = typeof breakpoints;
18
+ export type TypeTypography = typeof typography;
19
+ export type TypeFontWeight = typeof fontWeights;
20
+ export type TypeFontFamily = TypeFontFamilyString;
21
+ export type TypeSpace = typeof space;
22
+ export type TypeColor = TypeColors;
23
+ export type TypeRadii = typeof radii;
24
+ export type TypeBorder = typeof borders;
25
+ export type TypeBorderWidth = typeof borderWidths;
26
+ export type TypeShadow = typeof shadows;
27
+ export type TypeEasing = typeof easing;
28
+ export type TypeDuration = typeof duration;
29
+
30
+ export type TypeTheme = {
31
+ breakpoints: TypeBreakpoint,
32
+ colors: TypeColor,
33
+ typography: TypeTypography,
34
+ fontWeights: TypeFontWeight,
35
+ fontFamily: TypeFontFamily,
36
+ space: TypeSpace,
37
+ radii: TypeRadii,
38
+ borders: TypeBorder,
39
+ borderWidths: TypeBorderWidth,
40
+ shadows: TypeShadow,
41
+ easing: TypeEasing,
42
+ duration: TypeDuration,
43
+ };
@@ -1,6 +1,6 @@
1
1
  // @flow strict-local
2
2
  import { css } from "styled-components";
3
- import theme from "./theme";
3
+ import theme from "../themes/default/theme";
4
4
  import { transparentize } from "polished";
5
5
 
6
6
  export const svgToDataURL = (svgStr: string) => {
@@ -26,8 +26,9 @@ export const visuallyHidden = css`
26
26
  `;
27
27
 
28
28
  export const focusRing = css`
29
- box-shadow: 0 0 0 1px ${theme.colors.cta.primary.background},
30
- 0 0px 0px 4px ${transparentize(0.7, theme.colors.cta.primary.background)};
29
+ box-shadow: 0 0 0 1px ${theme.colors.button.primary.background.base},
30
+ 0 0px 0px 4px
31
+ ${transparentize(0.7, theme.colors.button.primary.background.base)};
31
32
  outline: none;
32
33
 
33
34
  &::-moz-focus-inner {
@@ -1,5 +1,5 @@
1
1
  // @flow
2
- import theme from "../theme";
2
+ import theme from "../../themes/default/theme";
3
3
 
4
4
  import type { TypeResponsive } from "../../types/system-props.flow";
5
5
 
@@ -23,7 +23,7 @@ var colors = {
23
23
  suggestion: "colors.neutral.900"
24
24
  };
25
25
  var backgroundColors = {
26
- primary: "colors.cta.primary",
26
+ primary: "colors.blue.700",
27
27
  secondary: "colors.yellow.500",
28
28
  passive: "colors.neutral.200",
29
29
  common: "colors.aqua.600",
@@ -83,8 +83,9 @@ var Banner = /*#__PURE__*/function (_React$Component) {
83
83
  text = _this$props.text,
84
84
  rest = _objectWithoutPropertiesLoose(_this$props, ["type", "text"]);
85
85
 
86
- return /*#__PURE__*/React.createElement(_styles.default, _extends({
87
- type: type,
86
+ return /*#__PURE__*/React.createElement(_styles.default // danger needs to be properly deprecated and removed DS-1094
87
+ , _extends({
88
+ type: type === "danger" ? "error" : type,
88
89
  "data-qa-alert": "",
89
90
  "data-qa-alert-type": type,
90
91
  "data-qa-alert-text": text // $FlowIssue - upgrade v0.112.0
@@ -15,7 +15,7 @@ var Container = _styledComponents.default.div.withConfig({
15
15
  displayName: "styles__Container",
16
16
  componentId: "q43dr4-0"
17
17
  })(function (props) {
18
- return (0, _styledComponents.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;text-decoration:underline;}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.headline, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors[props.type].border, props.theme.colors[props.type].background, props.theme.space[400], props.theme.colors[props.type].icon, props.theme.fontWeights.semibold, props.theme.colors.text.headline, _systemProps.COMMON, _systemProps.LAYOUT);
18
+ return (0, _styledComponents.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, _systemProps.COMMON, _systemProps.LAYOUT);
19
19
  });
20
20
 
21
21
  var _default = Container;
@@ -20,7 +20,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
20
20
  var Button = function Button(_ref) {
21
21
  var href = _ref.href,
22
22
  _ref$appearance = _ref.appearance,
23
- appearance = _ref$appearance === void 0 ? "default" : _ref$appearance,
23
+ appearance = _ref$appearance === void 0 ? "unstyled" : _ref$appearance,
24
24
  _ref$active = _ref.active,
25
25
  active = _ref$active === void 0 ? false : _ref$active,
26
26
  disabled = _ref.disabled,
@@ -39,8 +39,10 @@ var Button = function Button(_ref) {
39
39
 
40
40
  if (!href && external) {
41
41
  console.warn("Warning: external prop cannot be set without a href declaration");
42
- }
42
+ } // plans to properly deprecate captured in DS-1096
43
43
 
44
+
45
+ var appearanceCheck = appearance === "default" ? "unstyled" : appearance;
44
46
  return /*#__PURE__*/React.createElement(_styles.default, _extends({
45
47
  title: title,
46
48
  active: active,
@@ -52,7 +54,7 @@ var Button = function Button(_ref) {
52
54
  "aria-disabled": disabled ? disabled : undefined,
53
55
  disabled: disabled,
54
56
  buttonSize: size,
55
- appearance: appearance,
57
+ appearance: appearanceCheck,
56
58
  ref: innerRef,
57
59
  onClick: onClick,
58
60
  "data-qa-button": title || "",
@@ -23,15 +23,15 @@ var Container = _styledComponents.default.button.withConfig({
23
23
  })(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";background:", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";background:", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", "{vertical-align:text-bottom;}", " ", ""], function (props) {
24
24
  return props.theme.fontFamily;
25
25
  }, function (props) {
26
- return props.theme.colors.cta[props.appearance].borderColor;
26
+ return props.theme.colors.button[props.appearance].border.base;
27
27
  }, function (props) {
28
28
  return props.theme.radii[500];
29
29
  }, function (props) {
30
30
  return props.appearance === "placeholder" ? "dashed" : "solid";
31
31
  }, function (props) {
32
- return props.theme.colors.cta[props.appearance].background;
32
+ return props.theme.colors.button[props.appearance].background.base;
33
33
  }, function (props) {
34
- return props.theme.colors.cta[props.appearance].color;
34
+ return props.theme.colors.button[props.appearance].text.base;
35
35
  }, function (props) {
36
36
  return props.theme.fontWeights.bold;
37
37
  }, function (props) {
@@ -41,24 +41,25 @@ var Container = _styledComponents.default.button.withConfig({
41
41
  }, function (props) {
42
42
  return props.buttonSize === "default" ? props.theme.typography[200].fontSize : props.theme.typography[300].fontSize;
43
43
  }, function (props) {
44
- return props.theme.colors.cta[props.appearance].color;
44
+ return props.theme.colors.button[props.appearance].text.base;
45
45
  }, function (props) {
46
- return props.theme.colors.cta[props.appearance].hoverColor;
46
+ return props.theme.colors.button[props.appearance].text.hover;
47
47
  }, function (props) {
48
- return props.theme.colors.cta[props.appearance].hoverBackground;
48
+ return props.theme.colors.button[props.appearance].background.hover;
49
49
  }, function (props) {
50
50
  return props.appearance === "placeholder" ? props.theme.shadows[100] : "none";
51
51
  }, function (props) {
52
- return props.theme.colors.cta[props.appearance].hoverColor;
52
+ return props.theme.colors.button[props.appearance].text.hover;
53
53
  }, function (props) {
54
- return props.theme.colors.cta[props.appearance].activeBackground;
54
+ return props.theme.colors.button[props.appearance].background.active;
55
55
  }, _mixins.focusRing, function (props) {
56
- return props.active && (0, _styledComponents.css)(["color:", " !important;background:", " !important;"], props.theme.colors.cta[props.appearance].hoverColor, props.theme.colors.cta[props.appearance].activeBackground);
56
+ return props.active && (0, _styledComponents.css)(["color:", " !important;background:", " !important;"], props.theme.colors.button[props.appearance].text.hover, props.theme.colors.button[props.appearance].background.active);
57
57
  }, function (props) {
58
58
  return props.disabled && _mixins.disabled;
59
59
  }, function (props) {
60
- return props.appearance === "pill" && (0, _styledComponents.css)(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:multiply;", ""], _mixins.pill);
60
+ return props.appearance === "pill" && (0, _styledComponents.css)(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode ? "screen" : "multiply", _mixins.pill);
61
61
  }, _styles.default, _systemProps.LAYOUT, _systemProps.COMMON);
62
62
 
63
- var _default = Container;
63
+ var _default = Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
64
+
64
65
  exports.default = _default;
@@ -26,11 +26,11 @@ var Card = function Card(_ref) {
26
26
  _ref$border = _ref.border,
27
27
  border = _ref$border === void 0 ? 500 : _ref$border,
28
28
  _ref$borderColor = _ref.borderColor,
29
- borderColor = _ref$borderColor === void 0 ? "border" : _ref$borderColor,
29
+ borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
30
30
  _ref$color = _ref.color,
31
31
  color = _ref$color === void 0 ? "text.body" : _ref$color,
32
32
  _ref$bg = _ref.bg,
33
- bg = _ref$bg === void 0 ? "background.container" : _ref$bg,
33
+ bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
34
34
  rest = _objectWithoutPropertiesLoose(_ref, ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"]);
35
35
 
36
36
  return /*#__PURE__*/React.createElement(_styles.Container, _extends({}, rest, {
@@ -21,7 +21,7 @@ var Container = _styledComponents.default.div.withConfig({
21
21
  }, function (props) {
22
22
  return props.theme.fontWeights.semibold;
23
23
  }, function (props) {
24
- return props.overlimit ? props.theme.colors.error.color : props.theme.colors.text.subtext;
24
+ return props.overlimit ? props.theme.colors.text.error : props.theme.colors.text.subtext;
25
25
  }, function (p) {
26
26
  return p.mini && (0, _styledComponents.css)(["", ""], p.theme.typography[100]);
27
27
  }, _systemProps.COMMON);
@@ -36,11 +36,11 @@ var InputWrapper = (0, _styledComponents.default)(_Box.default).withConfig({
36
36
  }, function (props) {
37
37
  return props.theme.space[400];
38
38
  }, function (props) {
39
- return props.appearance === "pill" && (0, _styledComponents.css)(["background-color:transparent;transition:all ", " ", ";mix-blend-mode:multiply;", " &:hover{background-color:", ";}", "{", "}"], function (props) {
39
+ return props.appearance === "pill" && (0, _styledComponents.css)(["background-color:transparent;transition:all ", " ", ";mix-blend-mode:", ";", " &:hover{background-color:", ";}", "{", "}"], function (props) {
40
40
  return props.theme.duration.fast;
41
41
  }, function (props) {
42
42
  return props.theme.easing.ease_inout;
43
- }, _mixins.pill, props.theme.colors.background.app, PillInput, _mixins.pill);
43
+ }, props.theme.mode ? "screen" : "multiply", _mixins.pill, props.theme.colors.app.background.base, PillInput, _mixins.pill);
44
44
  });
45
45
  exports.InputWrapper = InputWrapper;
46
46
  InputWrapper.displayName = "InputWrapper";
@@ -53,9 +53,9 @@ var CheckboxBox = _styledComponents.default.div.withConfig({
53
53
  }, function (props) {
54
54
  return props.theme.space[400];
55
55
  }, function (props) {
56
- return props.theme.colors.forms.borderColor;
56
+ return props.theme.colors.form.border.base;
57
57
  }, function (props) {
58
- return props.theme.colors.background.container;
58
+ return props.theme.colors.form.background.base;
59
59
  }, function (props) {
60
60
  return props.theme.duration.fast;
61
61
  }, function (props) {
@@ -87,9 +87,9 @@ var PillInput = _styledComponents.default.input.withConfig({
87
87
  }, _mixins.focusRing, function (props) {
88
88
  return !props.checked && (0, _styledComponents.css)(["&:hover,&:focus{~ ", " ", "{opacity:", ";color:", ";}}"], CheckboxBox, CheckIcon, function (props) {
89
89
  return props.disabled ? 0 : 1;
90
- }, props.theme.colors.forms.borderColor);
90
+ }, props.theme.colors.form.border.base);
91
91
  }, function (props) {
92
- return props.checked && (0, _styledComponents.css)(["~ ", "{border-color:", ";background-color:", ";}~ ", " ", "{opacity:1;color:", ";}"], CheckboxBox, props.theme.colors.selection.border, props.theme.colors.selection.background, CheckboxBox, CheckIcon, props.theme.colors.icon.inverse);
92
+ return props.checked && (0, _styledComponents.css)(["~ ", "{border-color:", ";background-color:", ";}~ ", " ", "{opacity:1;color:", ";}"], CheckboxBox, props.theme.colors.form.border.selected, props.theme.colors.form.background.selected, CheckboxBox, CheckIcon, props.theme.colors.icon.inverse);
93
93
  }, function (props) {
94
94
  return props.disabled && (0, _styledComponents.css)(["~ ", "{opacity:0.4;}~ ", " ", "{opacity:", ";}"], CheckboxBox, CheckboxBox, CheckIcon, props.checked ? 1 : 0);
95
95
  });
@@ -132,7 +132,7 @@ var CheckboxContainer = _styledComponents.default.span.withConfig({
132
132
  displayName: "styles__CheckboxContainer",
133
133
  componentId: "sc-59uw8o-6"
134
134
  })(function (props) {
135
- return (0, _styledComponents.css)(["display:inline-flex;align-items:center;box-sizing:border-box;position:relative;transition:all ", " ", ";@supports (-webkit-appearance:none){&:before{content:url(\"data:image/svg+xml;utf8,", "\");opacity:", ";position:absolute;width:", ";height:", ";text-align:center;transform:translateY(1px);line-height:1;margin:auto;pointer-events:none;transition:", " ", ";}&:hover:before{opacity:", ";}", " input[type='checkbox']{box-sizing:border-box;appearance:none;margin:0;padding:0;width:", ";height:", ";border:1px solid ", ";border-radius:4px;background-color:", ";transition:all ", " ", ";cursor:", ";flex-shrink:0;&:not(:checked){", "}&:checked{border-color:", ";background-color:", ";}", " &:focus{", "}}}", ""], props.theme.duration.fast, props.theme.easing.ease_in, getIcon(props.indeterminate ? "indeterminate" : "check", props.checked ? props.theme.colors.background.container : props.theme.colors.forms.borderColor), props.checked ? 1 : 0, props.theme.space[400], props.theme.space[400], props.theme.duration.fast, props.theme.easing.ease_inout, props.disabled && !props.checked ? 0 : 1, props.disabled && (0, _styledComponents.css)(["opacity:0.4;"]), props.theme.space[400], props.theme.space[400], props.theme.colors.forms.borderColor, props.theme.colors.background.container, props.theme.duration.fast, props.theme.easing.ease_in, props.disabled ? "not-allowed" : "pointer", !props.indeterminate && (0, _styledComponents.css)(["border-color:", " !important;background-color:", ";"], props.theme.colors.neutral[300], props.theme.colors.background.container), props.theme.colors.selection.border, props.theme.colors.selection.background, props.indeterminate && props.checked && (0, _styledComponents.css)(["border-color:", " !important;background-color:", " !important;"], props.theme.colors.selection.border, props.theme.colors.selection), _mixins.focusRing, _systemProps.COMMON);
135
+ return (0, _styledComponents.css)(["display:inline-flex;align-items:center;box-sizing:border-box;position:relative;transition:all ", " ", ";@supports (-webkit-appearance:none){&:before{content:url(\"data:image/svg+xml;utf8,", "\");opacity:", ";position:absolute;width:", ";height:", ";text-align:center;transform:translateY(1px);line-height:1;margin:auto;pointer-events:none;transition:", " ", ";}&:hover:before{opacity:", ";}", " input[type='checkbox']{box-sizing:border-box;appearance:none;margin:0;padding:0;width:", ";height:", ";border:1px solid ", ";border-radius:4px;background-color:", ";transition:all ", " ", ";cursor:", ";flex-shrink:0;&:not(:checked){", "}&:checked{border-color:", ";background-color:", ";}", " &:focus{", "}}}", ""], props.theme.duration.fast, props.theme.easing.ease_in, getIcon(props.indeterminate ? "indeterminate" : "check", props.checked ? props.theme.colors.form.background.base : props.theme.colors.form.border.base), props.checked ? 1 : 0, props.theme.space[400], props.theme.space[400], props.theme.duration.fast, props.theme.easing.ease_inout, props.disabled && !props.checked ? 0 : 1, props.disabled && (0, _styledComponents.css)(["opacity:0.4;"]), props.theme.space[400], props.theme.space[400], props.theme.colors.form.border.base, props.theme.colors.form.background.base, props.theme.duration.fast, props.theme.easing.ease_in, props.disabled ? "not-allowed" : "pointer", !props.indeterminate && (0, _styledComponents.css)(["border-color:", " !important;background-color:", ";"], props.theme.colors.neutral[300], props.theme.colors.form.background.base), props.theme.colors.form.border.selected, props.theme.colors.form.background.selected, props.indeterminate && props.checked && (0, _styledComponents.css)(["border-color:", " !important;background-color:", " !important;"], props.theme.colors.form.border.selected, props.theme.colors.form.background.selected), _mixins.focusRing, _systemProps.COMMON);
136
136
  });
137
137
 
138
138
  exports.CheckboxContainer = CheckboxContainer;
@@ -29,10 +29,7 @@ var Collapsible = function Collapsible(_ref) {
29
29
  _ref$isOpen = _ref.isOpen,
30
30
  isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
31
31
  _ref$offset = _ref.offset,
32
- offset = _ref$offset === void 0 ? 0 : _ref$offset,
33
- _ref$collapsedHeight = _ref.collapsedHeight,
34
- collapsedHeight = _ref$collapsedHeight === void 0 ? 0 : _ref$collapsedHeight,
35
- openHeight = _ref.openHeight;
32
+ offset = _ref$offset === void 0 ? 0 : _ref$offset;
36
33
 
37
34
  var _useState = (0, React.useState)("Racine-collapsible-" + idCounter++),
38
35
  id = _useState[0];
@@ -41,9 +38,7 @@ var Collapsible = function Collapsible(_ref) {
41
38
  value: {
42
39
  isOpen: isOpen,
43
40
  id: id,
44
- offset: offset,
45
- collapsedHeight: collapsedHeight,
46
- openHeight: openHeight
41
+ offset: offset
47
42
  }
48
43
  }, children);
49
44
  };
@@ -69,9 +64,7 @@ var Panel = function Panel(_ref3) {
69
64
  var _useContext2 = (0, React.useContext)(CollapsibleContext),
70
65
  isOpen = _useContext2.isOpen,
71
66
  id = _useContext2.id,
72
- offset = _useContext2.offset,
73
- collapsedHeight = _useContext2.collapsedHeight,
74
- openHeight = _useContext2.openHeight;
67
+ offset = _useContext2.offset;
75
68
 
76
69
  var ref = (0, React.useRef)();
77
70
  var measurement = (0, _useMeasure.default)(ref);
@@ -84,7 +77,7 @@ var Panel = function Panel(_ref3) {
84
77
  // There is no animation because css is not changing the maxHeight property after mount
85
78
 
86
79
 
87
- var maxHeight = typeof openHeight !== "undefined" ? openHeight : measurement.height + offset;
80
+ var maxHeight = isHidden === undefined ? undefined : measurement.height + offset;
88
81
  /* We use the "hidden" attribute to remove the contents of the panel from the tab order of the page, but it fucks with the animation. This logic sets a slight timeout on setting the prop so that the animation has time to complete before the attribute is set. */
89
82
 
90
83
  (0, React.useEffect)(function () {
@@ -110,14 +103,12 @@ var Panel = function Panel(_ref3) {
110
103
  }
111
104
  }, [isOpen]);
112
105
  return /*#__PURE__*/React.createElement(_styles.CollapsingBox, _extends({
113
- scrollable: isOpen,
114
- maxHeight: isOpen ? maxHeight : collapsedHeight,
115
- minHeight: collapsedHeight,
106
+ maxHeight: isOpen ? maxHeight : "0",
116
107
  "data-qa-collapsible": "",
117
108
  "data-qa-collapsible-isopen": isOpen === true
118
109
  }, rest), /*#__PURE__*/React.createElement(_Box.default, {
119
110
  width: "100%",
120
- hidden: isHidden && collapsedHeight === 0,
111
+ hidden: isHidden,
121
112
  "aria-hidden": !isOpen,
122
113
  id: id,
123
114
  ref: ref
@@ -12,16 +12,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
12
12
  var CollapsingBox = (0, _styledComponents.default)(_Box.default).withConfig({
13
13
  displayName: "styles__CollapsingBox",
14
14
  componentId: "sc-1xvfbl7-0"
15
- })(["transition:max-height ", " ", ";will-change:max-height;position:relative;overflow:auto;background:linear-gradient( ", " 30%,rgba(255,255,255,0) ),linear-gradient( rgba(255,255,255,0),", " 70% ) 0 100%,radial-gradient( farthest-side at 50% 0,rgb(39 51 51 / 5%),rgba(0,0,0,0) ),radial-gradient( farthest-side at 50% 100%,rgb(39 51 51 / 5%),rgba(0,0,0,0) ) 0 100%;background-repeat:no-repeat;background-size:100% 40px,100% 40px,100% 14px,100% 14px;background-attachment:local,local,scroll,scroll;", ";"], function (p) {
15
+ })(["transition:max-height ", " ", ";will-change:max-height;overflow:hidden;"], function (p) {
16
16
  return p.theme.duration.medium;
17
17
  }, function (p) {
18
18
  return p.theme.easing.ease_inout;
19
- }, function (p) {
20
- return p.theme.colors.neutral[100];
21
- }, function (p) {
22
- return p.theme.colors.neutral[100];
23
- }, function (_ref) {
24
- var scrollable = _ref.scrollable;
25
- return scrollable ? "overflow: auto" : "overflow: hidden";
26
19
  });
27
20
  exports.CollapsingBox = CollapsingBox;
@@ -9,6 +9,8 @@ var _moment = _interopRequireDefault(require("moment"));
9
9
 
10
10
  var _Box = _interopRequireDefault(require("../Box"));
11
11
 
12
+ var _mixins = require("../utils/mixins");
13
+
12
14
  var _templateObject;
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -75,13 +77,13 @@ var CalendarDay = (0, _styledComponents.default)(_Box.default).withConfig({
75
77
  theme = _ref.theme;
76
78
 
77
79
  if (isSelected(modifiers)) {
78
- return (0, _styledComponents.css)(["background-color:", ";color:", ";margin-left:", ";margin-right:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], theme.colors.selection.background, theme.colors.selection.color, shouldHaveLeftPill(modifiers, day) && theme.space[200], shouldHaveRightPill(modifiers, day) && theme.space[200], shouldHaveLeftPill(modifiers, day) && theme.radii.pill, shouldHaveLeftPill(modifiers, day) && theme.radii.pill, shouldHaveRightPill(modifiers, day) && theme.radii.pill, shouldHaveRightPill(modifiers, day) && theme.radii.pill);
80
+ return (0, _styledComponents.css)(["background-color:", ";color:", ";margin-left:", ";margin-right:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], theme.colors.container.background.selected, theme.colors.text.inverse, shouldHaveLeftPill(modifiers, day) && theme.space[200], shouldHaveRightPill(modifiers, day) && theme.space[200], shouldHaveLeftPill(modifiers, day) && theme.radii.pill, shouldHaveLeftPill(modifiers, day) && theme.radii.pill, shouldHaveRightPill(modifiers, day) && theme.radii.pill, shouldHaveRightPill(modifiers, day) && theme.radii.pill);
79
81
  }
80
82
 
81
83
  if (isHoveredAndInRange(modifiers)) {
82
- return (0, _styledComponents.css)(["margin:0 ", ";border-radius:", ";border:1px solid ", ";"], theme.space[200], theme.radii.pill, theme.colors.selection.border);
84
+ return (0, _styledComponents.css)(["margin:0 ", ";border-radius:", ";border:1px solid ", ";"], theme.space[200], theme.radii.pill, theme.colors.container.border.selected);
83
85
  } else if (isOutOfRange(modifiers)) {
84
- return (0, _styledComponents.css)(["color:", ";"], theme.colors.selection.disabledColor);
86
+ return (0, _styledComponents.css)(["color:", ";", ";"], theme.colors.text.subtext, _mixins.disabled);
85
87
  }
86
88
  });
87
89
  exports.CalendarDay = CalendarDay;
@@ -95,7 +97,7 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
95
97
  return theme.colors.text.headline;
96
98
  }, function (_ref4) {
97
99
  var theme = _ref4.theme;
98
- return theme.colors.border;
100
+ return theme.colors.container.border.base;
99
101
  }, function (_ref5) {
100
102
  var theme = _ref5.theme;
101
103
  return theme.typography[200];
@@ -107,7 +109,7 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
107
109
  return theme.fontWeights.semibold;
108
110
  }, function (_ref8) {
109
111
  var theme = _ref8.theme;
110
- return theme.colors.background.container;
112
+ return theme.colors.container.background.base;
111
113
  }, function (_ref9) {
112
114
  var theme = _ref9.theme;
113
115
  return theme.colors.text.body;
@@ -119,7 +121,7 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
119
121
  return theme.typography[200];
120
122
  }, function (_ref12) {
121
123
  var theme = _ref12.theme;
122
- return theme.colors.background.container;
124
+ return theme.colors.container.background.base;
123
125
  }, function (_ref13) {
124
126
  var theme = _ref13.theme;
125
127
  return theme.typography[200];
@@ -128,21 +130,21 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
128
130
  return theme.colors.text.headline;
129
131
  }, function (_ref15) {
130
132
  var theme = _ref15.theme;
131
- return theme.colors.background.container;
133
+ return theme.colors.container.background.base;
132
134
  }, function (_ref16) {
133
135
  var theme = _ref16.theme;
134
136
  return theme.fontWeights.semibold;
135
137
  }, function (_ref17) {
136
138
  var theme = _ref17.theme;
137
- return theme.colors.background.container;
139
+ return theme.colors.container.background.base;
138
140
  }, function (_ref18) {
139
141
  var theme = _ref18.theme;
140
- return theme.colors.cta.pill.color;
142
+ return theme.colors.button.pill.text.base;
141
143
  }, function (_ref19) {
142
144
  var theme = _ref19.theme;
143
- return theme.colors.cta.pill.background;
145
+ return theme.colors.button.pill.background.base;
144
146
  }, function (_ref20) {
145
147
  var theme = _ref20.theme;
146
- return theme.colors.cta.pill.hoverBackground;
148
+ return theme.colors.button.pill.background.hover;
147
149
  });
148
150
  exports.ReactDatesCssOverrides = ReactDatesCssOverrides;
@@ -27,7 +27,7 @@ var Container = _styledComponents.default.div.withConfig({
27
27
  })(["display:flex;flex-direction:column;position:fixed;top:0;height:100%;width:", "px;background-color:", ";box-shadow:", ";filter:blur(0);", " ", ""], function (props) {
28
28
  return props.width;
29
29
  }, function (props) {
30
- return props.theme.colors.background.container;
30
+ return props.theme.colors.container.background.base;
31
31
  }, function (props) {
32
32
  return props.theme.shadows[400];
33
33
  }, function (props) {