@sproutsocial/racine 7.6.0 → 8.0.0-beta-dark-mode.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 (170) hide show
  1. package/__flow__/Badge/styles.js +3 -1
  2. package/__flow__/Banner/index.js +2 -1
  3. package/__flow__/Banner/styles.js +9 -6
  4. package/__flow__/Box/index.stories.js +3 -3
  5. package/__flow__/Box/styles.js +4 -4
  6. package/__flow__/Button/__snapshots__/index.test.js.snap +4 -4
  7. package/__flow__/Button/index.js +7 -2
  8. package/__flow__/Button/index.stories.js +6 -1
  9. package/__flow__/Button/styles.js +17 -12
  10. package/__flow__/Card/index.js +2 -2
  11. package/__flow__/CharacterCounter/styles.js +1 -1
  12. package/__flow__/Checkbox/styles.js +18 -16
  13. package/__flow__/Collapsible/index.stories.js +11 -5
  14. package/__flow__/DatePicker/styles.js +14 -12
  15. package/__flow__/Drawer/styles.js +1 -1
  16. package/__flow__/FormField/index.js +1 -1
  17. package/__flow__/Icon/index.stories.js +24 -6
  18. package/__flow__/Input/styles.js +6 -6
  19. package/__flow__/KeyboardKey/styles.js +2 -2
  20. package/__flow__/Link/styles.js +3 -5
  21. package/__flow__/Listbox/__snapshots__/index.test.js.snap +8 -2
  22. package/__flow__/Listbox/index.js +4 -4
  23. package/__flow__/Menu/__snapshots__/index.test.js.snap +5 -2
  24. package/__flow__/Menu/index.js +7 -2
  25. package/__flow__/Menu/styles.js +6 -3
  26. package/__flow__/Message/index.js +2 -2
  27. package/__flow__/Message/index.stories.js +1 -1
  28. package/__flow__/Modal/index.js +1 -1
  29. package/__flow__/Modal/index.stories.js +14 -8
  30. package/__flow__/Modal/styles.js +2 -2
  31. package/__flow__/Numeral/styles.js +2 -1
  32. package/__flow__/OverflowList/index.stories.js +15 -8
  33. package/__flow__/Popout/index.js +3 -3
  34. package/__flow__/Radio/styles.js +8 -8
  35. package/__flow__/SegmentedControl/styles.js +9 -5
  36. package/__flow__/Select/styles.js +5 -5
  37. package/__flow__/Skeleton/index.js +4 -4
  38. package/__flow__/Skeleton/index.stories.js +1 -1
  39. package/__flow__/Stack/index.stories.js +3 -1
  40. package/__flow__/Switch/styles.js +13 -11
  41. package/__flow__/Table/styles.js +2 -1
  42. package/__flow__/TableCell/index.stories.js +2 -0
  43. package/__flow__/TableHeaderCell/index.stories.js +3 -0
  44. package/__flow__/TableRowAccordion/styles.js +2 -1
  45. package/__flow__/Tabs/styles.js +5 -5
  46. package/__flow__/Textarea/styles.js +5 -5
  47. package/__flow__/ThemeProvider/index.js +2 -2
  48. package/__flow__/Toast/index.js +1 -1
  49. package/__flow__/Toast/styles.js +3 -3
  50. package/__flow__/Token/styles.js +19 -10
  51. package/__flow__/TokenInput/index.js +2 -1
  52. package/__flow__/TokenInput/styles.js +14 -6
  53. package/__flow__/Tooltip/index.js +2 -2
  54. package/__flow__/index.js +2 -2
  55. package/__flow__/themes/dark/decorative-palettes.js +43 -0
  56. package/__flow__/themes/dark/theme.js +195 -0
  57. package/__flow__/themes/default/decorative-palettes.js +43 -0
  58. package/__flow__/themes/default/literal-colors.js +160 -0
  59. package/__flow__/themes/default/theme.js +332 -0
  60. package/__flow__/types/system-props.flow.js +2 -2
  61. package/__flow__/types/theme.colors.flow.js +239 -0
  62. package/__flow__/types/theme.flow.js +38 -213
  63. package/__flow__/utils/mixins.js +4 -3
  64. package/__flow__/utils/responsiveProps/index.js +1 -1
  65. package/commonjs/Badge/styles.js +2 -1
  66. package/commonjs/Banner/index.js +3 -2
  67. package/commonjs/Banner/styles.js +1 -1
  68. package/commonjs/Button/index.js +5 -3
  69. package/commonjs/Button/styles.js +12 -11
  70. package/commonjs/Card/index.js +2 -2
  71. package/commonjs/CharacterCounter/styles.js +1 -1
  72. package/commonjs/Checkbox/styles.js +7 -7
  73. package/commonjs/DatePicker/styles.js +13 -11
  74. package/commonjs/Drawer/styles.js +1 -1
  75. package/commonjs/FormField/index.js +1 -1
  76. package/commonjs/Input/styles.js +6 -6
  77. package/commonjs/KeyboardKey/styles.js +2 -2
  78. package/commonjs/Link/styles.js +4 -8
  79. package/commonjs/Listbox/index.js +4 -4
  80. package/commonjs/Menu/index.js +2 -2
  81. package/commonjs/Menu/styles.js +10 -4
  82. package/commonjs/Message/index.js +2 -2
  83. package/commonjs/Modal/index.js +1 -1
  84. package/commonjs/Modal/styles.js +2 -2
  85. package/commonjs/Numeral/styles.js +1 -1
  86. package/commonjs/Popout/index.js +2 -2
  87. package/commonjs/Radio/styles.js +4 -4
  88. package/commonjs/SegmentedControl/styles.js +5 -5
  89. package/commonjs/Select/styles.js +5 -5
  90. package/commonjs/Skeleton/index.js +2 -2
  91. package/commonjs/Switch/styles.js +7 -7
  92. package/commonjs/Table/styles.js +1 -1
  93. package/commonjs/TableRowAccordion/styles.js +1 -1
  94. package/commonjs/Tabs/styles.js +5 -5
  95. package/commonjs/Textarea/styles.js +5 -5
  96. package/commonjs/ThemeProvider/index.js +1 -1
  97. package/commonjs/Toast/index.js +1 -1
  98. package/commonjs/Toast/styles.js +3 -3
  99. package/commonjs/Token/styles.js +16 -12
  100. package/commonjs/TokenInput/index.js +38 -35
  101. package/commonjs/TokenInput/styles.js +9 -7
  102. package/commonjs/Tooltip/index.js +2 -2
  103. package/commonjs/index.js +3 -3
  104. package/commonjs/themes/dark/decorative-palettes.js +51 -0
  105. package/commonjs/themes/dark/theme.js +195 -0
  106. package/commonjs/themes/default/decorative-palettes.js +51 -0
  107. package/commonjs/themes/default/literal-colors.js +165 -0
  108. package/commonjs/themes/default/theme.js +333 -0
  109. package/commonjs/types/theme.colors.flow.js +1 -0
  110. package/commonjs/types/theme.flow.js +1 -5
  111. package/commonjs/utils/mixins.js +2 -2
  112. package/commonjs/utils/responsiveProps/index.js +1 -1
  113. package/lib/Badge/styles.js +2 -1
  114. package/lib/Banner/index.js +3 -2
  115. package/lib/Banner/styles.js +1 -1
  116. package/lib/Button/index.js +5 -3
  117. package/lib/Button/styles.js +11 -11
  118. package/lib/Card/index.js +2 -2
  119. package/lib/CharacterCounter/styles.js +1 -1
  120. package/lib/Checkbox/styles.js +7 -7
  121. package/lib/DatePicker/styles.js +12 -11
  122. package/lib/Drawer/styles.js +1 -1
  123. package/lib/FormField/index.js +1 -1
  124. package/lib/Input/styles.js +6 -6
  125. package/lib/KeyboardKey/styles.js +2 -2
  126. package/lib/Link/styles.js +4 -8
  127. package/lib/Listbox/index.js +4 -4
  128. package/lib/Menu/index.js +2 -2
  129. package/lib/Menu/styles.js +10 -4
  130. package/lib/Message/index.js +2 -2
  131. package/lib/Modal/index.js +1 -1
  132. package/lib/Modal/styles.js +2 -2
  133. package/lib/Numeral/styles.js +1 -1
  134. package/lib/Popout/index.js +2 -2
  135. package/lib/Radio/styles.js +4 -4
  136. package/lib/SegmentedControl/styles.js +5 -5
  137. package/lib/Select/styles.js +5 -5
  138. package/lib/Skeleton/index.js +2 -2
  139. package/lib/Switch/styles.js +7 -7
  140. package/lib/Table/styles.js +1 -1
  141. package/lib/TableRowAccordion/styles.js +1 -1
  142. package/lib/Tabs/styles.js +5 -5
  143. package/lib/Textarea/styles.js +5 -5
  144. package/lib/ThemeProvider/index.js +1 -1
  145. package/lib/Toast/index.js +1 -1
  146. package/lib/Toast/styles.js +3 -3
  147. package/lib/Token/styles.js +16 -12
  148. package/lib/TokenInput/index.js +38 -35
  149. package/lib/TokenInput/styles.js +9 -7
  150. package/lib/Tooltip/index.js +2 -2
  151. package/lib/index.js +2 -2
  152. package/lib/themes/dark/decorative-palettes.js +36 -0
  153. package/lib/themes/dark/theme.js +185 -0
  154. package/lib/themes/default/decorative-palettes.js +36 -0
  155. package/lib/themes/default/literal-colors.js +156 -0
  156. package/lib/themes/default/theme.js +305 -0
  157. package/lib/types/theme.colors.flow.js +0 -0
  158. package/lib/types/theme.flow.js +1 -1
  159. package/lib/utils/mixins.js +2 -2
  160. package/lib/utils/responsiveProps/index.js +1 -1
  161. package/package.json +1 -1
  162. package/__flow__/themes/dark.js +0 -133
  163. package/__flow__/themes/light.js +0 -7
  164. package/__flow__/utils/theme.js +0 -422
  165. package/commonjs/themes/dark.js +0 -140
  166. package/commonjs/themes/light.js +0 -14
  167. package/commonjs/utils/theme.js +0 -421
  168. package/lib/themes/dark.js +0 -131
  169. package/lib/themes/light.js +0 -5
  170. package/lib/utils/theme.js +0 -402
@@ -0,0 +1,239 @@
1
+ // @flow strict-local
2
+
3
+ type TypeAppColors = {|
4
+ app: {
5
+ background: {
6
+ base: string,
7
+ },
8
+ },
9
+ |};
10
+
11
+ type TypeContainerColors = {|
12
+ container: {
13
+ background: {
14
+ base: string,
15
+ success: string,
16
+ warning: string,
17
+ error: string,
18
+ info: string,
19
+ opportunity: string,
20
+ danger: string,
21
+ decorative: {
22
+ green: string,
23
+ blue: string,
24
+ purple: string,
25
+ yellow: string,
26
+ orange: string,
27
+ red: string,
28
+ neutral: string,
29
+ },
30
+ selected: string,
31
+ },
32
+ border: {
33
+ base: string,
34
+ success: string,
35
+ warning: string,
36
+ error: string,
37
+ danger: string,
38
+ info: string,
39
+ opportunity: string,
40
+ decorative: {
41
+ green: string,
42
+ blue: string,
43
+ purple: string,
44
+ yellow: string,
45
+ orange: string,
46
+ red: string,
47
+ neutral: string,
48
+ },
49
+ selected: string,
50
+ },
51
+ },
52
+ |};
53
+
54
+ type TypeButtonColors = {|
55
+ button: {
56
+ primary: {
57
+ background: {
58
+ base: string,
59
+ hover: string,
60
+ active: string,
61
+ },
62
+ border: {
63
+ base: string,
64
+ },
65
+ text: {
66
+ base: string,
67
+ hover: string,
68
+ },
69
+ },
70
+ secondary: {
71
+ background: {
72
+ base: string,
73
+ hover: string,
74
+ active: string,
75
+ },
76
+ border: {
77
+ base: string,
78
+ },
79
+ text: {
80
+ base: string,
81
+ hover: string,
82
+ },
83
+ },
84
+ pill: {
85
+ background: {
86
+ base: string,
87
+ hover: string,
88
+ active: string,
89
+ },
90
+ border: {
91
+ base: string,
92
+ },
93
+ text: {
94
+ base: string,
95
+ hover: string,
96
+ },
97
+ },
98
+ destructive: {
99
+ background: {
100
+ base: string,
101
+ hover: string,
102
+ active: string,
103
+ },
104
+ border: {
105
+ base: string,
106
+ },
107
+ text: {
108
+ base: string,
109
+ hover: string,
110
+ },
111
+ },
112
+ placeholder: {
113
+ background: {
114
+ base: string,
115
+ hover: string,
116
+ active: string,
117
+ },
118
+ border: {
119
+ base: string,
120
+ },
121
+ text: {
122
+ base: string,
123
+ hover: string,
124
+ },
125
+ },
126
+ unstyled: {
127
+ background: {
128
+ base: string,
129
+ },
130
+ border: {
131
+ base: string,
132
+ },
133
+ text: {
134
+ base: string,
135
+ hover: string,
136
+ },
137
+ },
138
+ },
139
+ |};
140
+
141
+ type TypeLinkColors = {|
142
+ link: {
143
+ base: string,
144
+ hover: string,
145
+ },
146
+ |};
147
+
148
+ type TypeTextColors = {|
149
+ text: {
150
+ headline: string,
151
+ subtext: string,
152
+ body: string,
153
+ inverse: string,
154
+ error: string,
155
+ },
156
+ |};
157
+
158
+ type TypeIconColors = {|
159
+ icon: {
160
+ base: string,
161
+ inverse: string,
162
+ success: string,
163
+ warning: string,
164
+ error: string,
165
+ danger: string,
166
+ info: string,
167
+ opportunity: string,
168
+ },
169
+ |};
170
+
171
+ type TypeFormColors = {|
172
+ form: {
173
+ background: {
174
+ base: string,
175
+ selected: string,
176
+ },
177
+ border: {
178
+ base: string,
179
+ error: string,
180
+ warning: string,
181
+ selected: string,
182
+ },
183
+ placeholder: {
184
+ base: string,
185
+ },
186
+ },
187
+ |};
188
+
189
+ type TypeListItemColors = {|
190
+ listItem: {
191
+ background: {
192
+ base: string,
193
+ hover: string,
194
+ selected: string,
195
+ },
196
+ },
197
+ |};
198
+
199
+ type TypeNetworkColors = {|
200
+ network: {
201
+ twitter: string,
202
+ twitter_like: string,
203
+ facebook: string,
204
+ facebook_audience_network: string,
205
+ linkedin: string,
206
+ instagram: string,
207
+ feedly: string,
208
+ analytics: string,
209
+ youtube: string,
210
+ messenger: string,
211
+ snapchat: string,
212
+ pinterest: string,
213
+ tumblr: string,
214
+ reddit: string,
215
+ tripadvisor: string,
216
+ glassdoor: string,
217
+ google_my_business: string,
218
+ google_business_messages: string,
219
+ salesforce: string,
220
+ zendesk: string,
221
+ hubspot: string,
222
+ microsoft_dynamics: string,
223
+ yelp: string,
224
+ whatsapp: string,
225
+ },
226
+ |};
227
+
228
+ export type TypeColors = {
229
+ ...TypeAppColors,
230
+ ...TypeContainerColors,
231
+ ...TypeButtonColors,
232
+ ...TypeLinkColors,
233
+ ...TypeLinkColors,
234
+ ...TypeTextColors,
235
+ ...TypeIconColors,
236
+ ...TypeFormColors,
237
+ ...TypeListItemColors,
238
+ ...TypeNetworkColors,
239
+ };
@@ -1,218 +1,43 @@
1
1
  // @flow strict-local
2
- import theme, {
2
+ import {
3
3
  breakpoints,
4
+ typography,
4
5
  fontWeights,
6
+ fontFamily,
7
+ space,
8
+ radii,
9
+ borders,
10
+ borderWidths,
11
+ shadows,
5
12
  easing,
6
13
  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";
14
+ } from "../themes/default/theme";
15
+ import type { TypeColors } from "./theme.colors.flow.js";
16
+
17
+ export type TypeBreakpoint = typeof breakpoints;
18
+ export type TypeTypography = typeof typography;
19
+ export type TypeFontWeight = typeof fontWeights;
20
+ export type TypeFontFamily = typeof fontFamily;
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
 
@@ -22,8 +22,9 @@ var colors = {
22
22
  default: "colors.neutral.0",
23
23
  suggestion: "colors.neutral.900"
24
24
  };
25
+ console.log((0, _themeGet.themeGet)(colors["secondary"]));
25
26
  var backgroundColors = {
26
- primary: "colors.cta.primary",
27
+ primary: "colors.blue.700",
27
28
  secondary: "colors.yellow.500",
28
29
  passive: "colors.neutral.200",
29
30
  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);