@sproutsocial/racine 8.6.3 → 8.8.0-beta-shadows.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.
@@ -267,7 +267,7 @@ Popout.Content = function (_ref4) {
267
267
  border: 500,
268
268
  borderColor: "container.border.base",
269
269
  borderRadius: "outer",
270
- boxShadow: 300,
270
+ boxShadow: "medium",
271
271
  p: 400,
272
272
  m: 300
273
273
  }, rest), children);
@@ -118,7 +118,7 @@ var Content = function Content(_ref2) {
118
118
  m: 200,
119
119
  color: "text.body",
120
120
  bg: "container.background.base",
121
- boxShadow: 300,
121
+ boxShadow: "medium",
122
122
  border: 500,
123
123
  borderColor: "container.border.base" // $FlowIssue - upgrade v0.112.0
124
124
 
@@ -1,185 +1,201 @@
1
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); }
2
2
 
3
3
  import COLORS from "@sproutsocial/seeds-color";
4
+ import DEPTH from "@sproutsocial/seeds-depth";
4
5
  import defaultTheme from "../default/theme";
5
6
  import { datavizPalette } from "./dataviz-palette";
6
7
  import { green, blue, purple, yellow, orange, red, neutral } from "./decorative-palettes";
8
+ export var shadows = {
9
+ low: DEPTH.ELEVATION_LEVEL_100 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
10
+ medium: DEPTH.ELEVATION_LEVEL_300 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
11
+ high: DEPTH.ELEVATION_LEVEL_400 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF"
12
+ };
7
13
 
8
- var darkTheme = _extends({}, defaultTheme, {
9
- colors: _extends({}, defaultTheme.colors, {
10
- app: {
14
+ var colors = _extends({}, defaultTheme.colors, {
15
+ app: {
16
+ background: {
17
+ base: COLORS.COLOR_NEUTRAL_1000
18
+ }
19
+ },
20
+ container: {
21
+ background: {
22
+ base: COLORS.COLOR_NEUTRAL_900,
23
+ success: green.background,
24
+ warning: yellow.background,
25
+ error: red.background,
26
+ info: blue.background,
27
+ opportunity: purple.background,
28
+ danger: red.background,
29
+ decorative: {
30
+ green: green.background,
31
+ blue: blue.background,
32
+ purple: purple.background,
33
+ yellow: yellow.background,
34
+ orange: orange.background,
35
+ red: red.background,
36
+ neutral: neutral.background
37
+ },
38
+ selected: COLORS.COLOR_NEUTRAL_0
39
+ },
40
+ border: {
41
+ base: COLORS.COLOR_NEUTRAL_1100,
42
+ success: green.highlight,
43
+ warning: yellow.highlight,
44
+ error: red.highlight,
45
+ danger: red.highlight,
46
+ info: blue.highlight,
47
+ opportunity: purple.highlight,
48
+ decorative: {
49
+ green: green.highlight,
50
+ blue: blue.highlight,
51
+ purple: purple.highlight,
52
+ yellow: yellow.highlight,
53
+ orange: orange.highlight,
54
+ red: red.highlight,
55
+ neutral: neutral.highlight
56
+ },
57
+ selected: COLORS.COLOR_NEUTRAL_0
58
+ }
59
+ },
60
+ button: {
61
+ primary: {
11
62
  background: {
12
- base: COLORS.COLOR_NEUTRAL_1000
63
+ base: COLORS.COLOR_BLUE_400,
64
+ hover: COLORS.COLOR_BLUE_300,
65
+ active: COLORS.COLOR_BLUE_200
66
+ },
67
+ border: {
68
+ base: "transparent"
69
+ },
70
+ text: {
71
+ base: COLORS.COLOR_NEUTRAL_900,
72
+ hover: COLORS.COLOR_NEUTRAL_1000
13
73
  }
14
74
  },
15
- container: {
75
+ secondary: {
16
76
  background: {
17
- base: COLORS.COLOR_NEUTRAL_900,
18
- success: green.background,
19
- warning: yellow.background,
20
- error: red.background,
21
- info: blue.background,
22
- opportunity: purple.background,
23
- danger: red.background,
24
- decorative: {
25
- green: green.background,
26
- blue: blue.background,
27
- purple: purple.background,
28
- yellow: yellow.background,
29
- orange: orange.background,
30
- red: red.background,
31
- neutral: neutral.background
32
- },
33
- selected: COLORS.COLOR_NEUTRAL_0
77
+ base: "transparent",
78
+ hover: COLORS.COLOR_NEUTRAL_100,
79
+ active: COLORS.COLOR_NEUTRAL_0
34
80
  },
35
81
  border: {
36
- base: COLORS.COLOR_NEUTRAL_1100,
37
- success: green.highlight,
38
- warning: yellow.highlight,
39
- error: red.highlight,
40
- danger: red.highlight,
41
- info: blue.highlight,
42
- opportunity: purple.highlight,
43
- decorative: {
44
- green: green.highlight,
45
- blue: blue.highlight,
46
- purple: purple.highlight,
47
- yellow: yellow.highlight,
48
- orange: orange.highlight,
49
- red: red.highlight,
50
- neutral: neutral.highlight
51
- },
52
- selected: COLORS.COLOR_NEUTRAL_0
82
+ base: COLORS.COLOR_NEUTRAL_0
83
+ },
84
+ text: {
85
+ base: COLORS.COLOR_NEUTRAL_0,
86
+ hover: COLORS.COLOR_NEUTRAL_800
53
87
  }
54
88
  },
55
- button: {
56
- primary: {
57
- background: {
58
- base: COLORS.COLOR_BLUE_400,
59
- hover: COLORS.COLOR_BLUE_300,
60
- active: COLORS.COLOR_BLUE_200
61
- },
62
- border: {
63
- base: "transparent"
64
- },
65
- text: {
66
- base: COLORS.COLOR_NEUTRAL_900,
67
- hover: COLORS.COLOR_NEUTRAL_1000
68
- }
69
- },
70
- secondary: {
71
- background: {
72
- base: "transparent",
73
- hover: COLORS.COLOR_NEUTRAL_100,
74
- active: COLORS.COLOR_NEUTRAL_0
75
- },
76
- border: {
77
- base: COLORS.COLOR_NEUTRAL_0
78
- },
79
- text: {
80
- base: COLORS.COLOR_NEUTRAL_0,
81
- hover: COLORS.COLOR_NEUTRAL_800
82
- }
89
+ pill: {
90
+ background: {
91
+ base: "transparent",
92
+ hover: COLORS.COLOR_NEUTRAL_1000,
93
+ active: COLORS.COLOR_NEUTRAL_900
83
94
  },
84
- pill: {
85
- background: {
86
- base: "transparent",
87
- hover: COLORS.COLOR_NEUTRAL_1000,
88
- active: COLORS.COLOR_NEUTRAL_900
89
- },
90
- border: {
91
- base: "transparent"
92
- },
93
- text: {
94
- base: COLORS.COLOR_NEUTRAL_100,
95
- hover: COLORS.COLOR_NEUTRAL_0
96
- }
95
+ border: {
96
+ base: "transparent"
97
97
  },
98
- destructive: {
99
- background: {
100
- base: COLORS.COLOR_RED_400,
101
- hover: COLORS.COLOR_RED_300,
102
- active: COLORS.COLOR_RED_200
103
- },
104
- border: {
105
- base: "transparent"
106
- },
107
- text: {
108
- base: COLORS.COLOR_NEUTRAL_900,
109
- hover: COLORS.COLOR_NEUTRAL_1000
110
- }
98
+ text: {
99
+ base: COLORS.COLOR_NEUTRAL_100,
100
+ hover: COLORS.COLOR_NEUTRAL_0
101
+ }
102
+ },
103
+ destructive: {
104
+ background: {
105
+ base: COLORS.COLOR_RED_400,
106
+ hover: COLORS.COLOR_RED_300,
107
+ active: COLORS.COLOR_RED_200
111
108
  },
112
- placeholder: {
113
- background: {
114
- base: "transparent",
115
- hover: COLORS.COLOR_NEUTRAL_1100,
116
- active: COLORS.COLOR_NEUTRAL_1100
117
- },
118
- border: {
119
- base: COLORS.COLOR_NEUTRAL_500
120
- },
121
- text: {
122
- base: COLORS.COLOR_BLUE_400,
123
- hover: COLORS.COLOR_BLUE_300
124
- }
109
+ border: {
110
+ base: "transparent"
125
111
  },
126
- unstyled: {
127
- background: {
128
- base: "transparent"
129
- },
130
- border: {
131
- base: "transparent"
132
- },
133
- text: {
134
- base: COLORS.COLOR_NEUTRAL_300,
135
- hover: COLORS.COLOR_NEUTRAL_200
136
- }
112
+ text: {
113
+ base: COLORS.COLOR_NEUTRAL_900,
114
+ hover: COLORS.COLOR_NEUTRAL_1000
137
115
  }
138
116
  },
139
- link: {
140
- base: COLORS.COLOR_BLUE_400,
141
- hover: COLORS.COLOR_BLUE_300
142
- },
143
- text: {
144
- headline: COLORS.COLOR_NEUTRAL_0,
145
- subtext: COLORS.COLOR_NEUTRAL_300,
146
- body: COLORS.COLOR_NEUTRAL_100,
147
- inverse: COLORS.COLOR_NEUTRAL_900,
148
- error: COLORS.COLOR_RED_400
149
- },
150
- icon: {
151
- base: COLORS.COLOR_NEUTRAL_100,
152
- inverse: COLORS.COLOR_NEUTRAL_900,
153
- success: green.foreground,
154
- warning: yellow.foreground,
155
- error: red.foreground,
156
- danger: red.foreground,
157
- info: blue.foreground,
158
- opportunity: purple.foreground
159
- },
160
- form: {
117
+ placeholder: {
161
118
  background: {
162
- base: COLORS.COLOR_NEUTRAL_900,
163
- selected: COLORS.COLOR_NEUTRAL_0
119
+ base: "transparent",
120
+ hover: COLORS.COLOR_NEUTRAL_1100,
121
+ active: COLORS.COLOR_NEUTRAL_1100
164
122
  },
165
123
  border: {
166
- base: COLORS.COLOR_NEUTRAL_500,
167
- error: red.highlight,
168
- warning: yellow.highlight,
169
- selected: COLORS.COLOR_NEUTRAL_0
170
- },
171
- placeholder: {
172
124
  base: COLORS.COLOR_NEUTRAL_500
125
+ },
126
+ text: {
127
+ base: COLORS.COLOR_BLUE_400,
128
+ hover: COLORS.COLOR_BLUE_300
173
129
  }
174
130
  },
175
- listItem: {
131
+ unstyled: {
176
132
  background: {
177
- base: "transparent",
178
- hover: COLORS.COLOR_NEUTRAL_800,
179
- selected: COLORS.COLOR_NEUTRAL_0
133
+ base: "transparent"
134
+ },
135
+ border: {
136
+ base: "transparent"
137
+ },
138
+ text: {
139
+ base: COLORS.COLOR_NEUTRAL_300,
140
+ hover: COLORS.COLOR_NEUTRAL_200
180
141
  }
181
142
  }
182
- }, datavizPalette),
143
+ },
144
+ link: {
145
+ base: COLORS.COLOR_BLUE_400,
146
+ hover: COLORS.COLOR_BLUE_300
147
+ },
148
+ text: {
149
+ headline: COLORS.COLOR_NEUTRAL_0,
150
+ subtext: COLORS.COLOR_NEUTRAL_300,
151
+ body: COLORS.COLOR_NEUTRAL_100,
152
+ inverse: COLORS.COLOR_NEUTRAL_900,
153
+ error: COLORS.COLOR_RED_400
154
+ },
155
+ icon: {
156
+ base: COLORS.COLOR_NEUTRAL_100,
157
+ inverse: COLORS.COLOR_NEUTRAL_900,
158
+ success: green.foreground,
159
+ warning: yellow.foreground,
160
+ error: red.foreground,
161
+ danger: red.foreground,
162
+ info: blue.foreground,
163
+ opportunity: purple.foreground
164
+ },
165
+ form: {
166
+ background: {
167
+ base: COLORS.COLOR_NEUTRAL_900,
168
+ selected: COLORS.COLOR_NEUTRAL_0
169
+ },
170
+ border: {
171
+ base: COLORS.COLOR_NEUTRAL_500,
172
+ error: red.highlight,
173
+ warning: yellow.highlight,
174
+ selected: COLORS.COLOR_NEUTRAL_0
175
+ },
176
+ placeholder: {
177
+ base: COLORS.COLOR_NEUTRAL_500
178
+ }
179
+ },
180
+ listItem: {
181
+ background: {
182
+ base: "transparent",
183
+ hover: COLORS.COLOR_NEUTRAL_800,
184
+ selected: COLORS.COLOR_NEUTRAL_0
185
+ }
186
+ },
187
+ elevation: {
188
+ base: COLORS.COLOR_NEUTRAL_1100
189
+ },
190
+ dataviz: {
191
+ map: datavizPalette.DATAVIZ_COLORS_MAP,
192
+ list: datavizPalette.DATAVIZ_COLORS_LIST
193
+ }
194
+ }, datavizPalette);
195
+
196
+ var darkTheme = _extends({}, defaultTheme, {
197
+ colors: colors,
198
+ shadows: shadows,
183
199
  mode: "dark"
184
200
  });
185
201
 
@@ -185,6 +185,9 @@ var colors = _extends({
185
185
  selected: COLORS.COLOR_NEUTRAL_800
186
186
  }
187
187
  },
188
+ elevation: {
189
+ base: COLORS.COLOR_NEUTRAL_900 + "3D"
190
+ },
188
191
  network: {
189
192
  twitter: NETWORKCOLORS.NETWORK_COLOR_TWITTER,
190
193
  twitter_like: NETWORKCOLORS.NETWORK_COLOR_TWITTER_LIKE,
@@ -211,6 +214,10 @@ var colors = _extends({
211
214
  yelp: NETWORKCOLORS.NETWORK_COLOR_YELP,
212
215
  whatsapp: NETWORKCOLORS.NETWORK_COLOR_WHATSAPP,
213
216
  tiktok: NETWORKCOLORS.NETWORK_COLOR_TIKTOK
217
+ },
218
+ dataviz: {
219
+ map: datavizPalette.DATAVIZ_COLORS_MAP,
220
+ list: datavizPalette.DATAVIZ_COLORS_LIST
214
221
  }
215
222
  }, literalColors, datavizPalette);
216
223
 
@@ -262,10 +269,9 @@ export var borderWidths = {
262
269
  "500": BORDER.BORDER_WIDTH_500
263
270
  };
264
271
  export var shadows = {
265
- "100": DEPTH.ELEVATION_LEVEL_100,
266
- "200": DEPTH.ELEVATION_LEVEL_200,
267
- "300": DEPTH.ELEVATION_LEVEL_300,
268
- "400": DEPTH.ELEVATION_LEVEL_400
272
+ low: DEPTH.ELEVATION_LEVEL_100 + " " + COLORS.COLOR_NEUTRAL_900 + "3D",
273
+ medium: DEPTH.ELEVATION_LEVEL_300 + " " + COLORS.COLOR_NEUTRAL_900 + "3D",
274
+ high: DEPTH.ELEVATION_LEVEL_400 + " " + COLORS.COLOR_NEUTRAL_900 + "3D"
269
275
  };
270
276
  export var easing = {
271
277
  ease_in: MOTION.MOTION_EASE_IN,
@@ -298,9 +304,7 @@ var theme = {
298
304
  }),
299
305
  borders: borders,
300
306
  borderWidths: borderWidths,
301
- shadows: _extends({}, shadows, {
302
- shadows: shadows
303
- }),
307
+ shadows: shadows,
304
308
  easing: easing,
305
309
  duration: duration
306
310
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "8.6.3",
3
+ "version": "8.8.0-beta-shadows.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",
@@ -52,16 +52,13 @@
52
52
  },
53
53
  "lint-staged": {
54
54
  "**/*.js": [
55
- "eslint --fix",
56
- "git add"
55
+ "eslint --fix"
57
56
  ],
58
57
  "*.scss": [
59
- "stylelint --fix",
60
- "git add"
58
+ "stylelint --fix"
61
59
  ],
62
60
  "icons/*.svg": [
63
- "yarn icon-lint write",
64
- "git add"
61
+ "yarn icon-lint write"
65
62
  ]
66
63
  },
67
64
  "dependencies": {
@@ -95,7 +92,7 @@
95
92
  "@reach/component-component": "^0.1.3",
96
93
  "@sproutsocial/seeds-border": "^1.1.0",
97
94
  "@sproutsocial/seeds-color": "^1.5.3",
98
- "@sproutsocial/seeds-depth": "^1.1.1",
95
+ "@sproutsocial/seeds-depth": "^2.0.0",
99
96
  "@sproutsocial/seeds-motion": "^1.2.0",
100
97
  "@sproutsocial/seeds-networkcolor": "^2.9.0",
101
98
  "@sproutsocial/seeds-space": "^0.4.7",
@@ -143,6 +140,7 @@
143
140
  "jest-dom": "^3.5.0",
144
141
  "jest-styled-components": "7.0.0-beta.1",
145
142
  "jscodeshift": "^0.6.4",
143
+ "json-to-scss": "^1.6.2",
146
144
  "lint-staged": "^10.2.11",
147
145
  "moment": "^2.29.1",
148
146
  "npm-run-all": "^4.1.2",