@sproutsocial/racine 10.0.0-dar97-beta.1 → 10.0.1-dependencies.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 (39) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/__flow__/Avatar/index.test.js +0 -5
  3. package/__flow__/Badge/index.test.js +0 -5
  4. package/__flow__/Button/index.stories.js +51 -67
  5. package/__flow__/Button/styles.js +1 -1
  6. package/__flow__/CharacterCounter/index.test.js +0 -8
  7. package/__flow__/ChartLegend/index.test.js +0 -37
  8. package/__flow__/Checkbox/styles.js +1 -1
  9. package/__flow__/EmptyState/index.test.js +1 -3
  10. package/__flow__/Link/index.test.js +0 -10
  11. package/__flow__/Listbox/__snapshots__/index.test.js.snap +13 -13
  12. package/__flow__/Loader/index.test.js +0 -14
  13. package/__flow__/Menu/__snapshots__/index.test.js.snap +5 -5
  14. package/__flow__/Modal/index.test.js +0 -19
  15. package/__flow__/Modal/styles.js +1 -3
  16. package/__flow__/Text/index.test.js +0 -39
  17. package/__flow__/themes/dark/{_themes.scss → _themed.scss} +4 -3
  18. package/__flow__/themes/dark/theme.js +24 -4
  19. package/__flow__/themes/light/{_themes.scss → _themed.scss} +12 -11
  20. package/__flow__/themes/light/theme.js +21 -1
  21. package/__flow__/themes/utils/interact.js +1 -1
  22. package/__flow__/types/theme.colors.flow.js +6 -0
  23. package/commonjs/Button/styles.js +1 -1
  24. package/commonjs/Checkbox/styles.js +1 -1
  25. package/commonjs/Modal/styles.js +1 -3
  26. package/commonjs/themes/dark/theme.js +24 -4
  27. package/commonjs/themes/light/theme.js +22 -3
  28. package/commonjs/themes/utils/interact.js +1 -1
  29. package/dist/themes/dark/{_themes.scss → _themed.scss} +4 -3
  30. package/dist/themes/dark/dark.scss +20 -3
  31. package/dist/themes/light/{_themes.scss → _themed.scss} +12 -11
  32. package/dist/themes/light/light.scss +20 -3
  33. package/lib/Button/styles.js +1 -1
  34. package/lib/Checkbox/styles.js +1 -1
  35. package/lib/Modal/styles.js +1 -2
  36. package/lib/themes/dark/theme.js +25 -7
  37. package/lib/themes/light/theme.js +21 -3
  38. package/lib/themes/utils/interact.js +1 -1
  39. package/package.json +18 -15
@@ -10,9 +10,10 @@ import SPACE from "@sproutsocial/seeds-space";
10
10
  import DEPTH from "@sproutsocial/seeds-depth";
11
11
  import MOTION from "@sproutsocial/seeds-motion";
12
12
  import BORDER from "@sproutsocial/seeds-border";
13
+ import { transparentize } from "polished";
13
14
  import interact from "../utils/interact";
14
15
  export var breakpoints = ["900px", "1200px", "1500px", "1800px"];
15
- var MODE = "default-light";
16
+ var MODE = "light"; // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
16
17
 
17
18
  var colors = _extends({
18
19
  app: {
@@ -38,7 +39,10 @@ var colors = _extends({
38
39
  red: red.background,
39
40
  neutral: neutral.background
40
41
  },
41
- selected: COLORS.COLOR_NEUTRAL_800
42
+ selected: COLORS.COLOR_NEUTRAL_800,
43
+ positive_sentiment: COLORS.COLOR_BLUE_500,
44
+ negative_sentiment: COLORS.COLOR_RED_500,
45
+ neutral_sentiment: COLORS.COLOR_NEUTRAL_300
42
46
  },
43
47
  border: {
44
48
  base: COLORS.COLOR_NEUTRAL_200,
@@ -163,7 +167,10 @@ var colors = _extends({
163
167
  error: red.foreground,
164
168
  danger: red.foreground,
165
169
  info: blue.foreground,
166
- opportunity: purple.foreground
170
+ opportunity: purple.foreground,
171
+ positive_sentiment: COLORS.COLOR_BLUE_700,
172
+ negative_sentiment: COLORS.COLOR_RED_600,
173
+ neutral_sentiment: COLORS.COLOR_NEUTRAL_600
167
174
  },
168
175
  form: {
169
176
  background: {
@@ -187,6 +194,17 @@ var colors = _extends({
187
194
  selected: COLORS.COLOR_NEUTRAL_800
188
195
  }
189
196
  },
197
+ overlay: {
198
+ background: {
199
+ base: transparentize(0.44, COLORS.COLOR_NEUTRAL_1000)
200
+ },
201
+ text: {
202
+ base: COLORS.COLOR_NEUTRAL_0
203
+ },
204
+ icon: {
205
+ base: COLORS.COLOR_NEUTRAL_0
206
+ }
207
+ },
190
208
  elevation: {
191
209
  base: COLORS.COLOR_NEUTRAL_900 + "3D"
192
210
  },
@@ -2,7 +2,7 @@ import { darken, lighten } from "polished";
2
2
 
3
3
  var interact = function interact(mode) {
4
4
  return function (themeValue) {
5
- if (mode === "default-dark") {
5
+ if (mode === "dark") {
6
6
  return lighten(0.2, themeValue);
7
7
  } else {
8
8
  return darken(0.2, themeValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "10.0.0-dar97-beta.1",
3
+ "version": "10.0.1-dependencies.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",
@@ -62,6 +62,7 @@
62
62
  ]
63
63
  },
64
64
  "dependencies": {
65
+ "@storybook/addon-controls": "^6.4.19",
65
66
  "@styled-system/theme-get": "^5.1.2",
66
67
  "classnames": "^2.2.6",
67
68
  "lodash.curry": "^4.1.1",
@@ -75,14 +76,14 @@
75
76
  "react-popper": "^1.3.3",
76
77
  "react-spring": "^8.0.25",
77
78
  "react-toastify": "^6.0.5",
78
- "react-virtualized": "9.18.5",
79
+ "react-virtualized": "9.22.3",
79
80
  "scroll-into-view-if-needed": "1.1.0",
80
81
  "styled-system": "^5.1.5",
81
82
  "use-measure": "^0.2.2"
82
83
  },
83
84
  "devDependencies": {
84
85
  "@babel/cli": "^7.5.5",
85
- "@babel/core": "^7.4.5",
86
+ "@babel/core": "^7.12.9",
86
87
  "@babel/plugin-proposal-class-properties": "^7.4.4",
87
88
  "@babel/plugin-syntax-dynamic-import": "^7.0.0",
88
89
  "@babel/preset-env": "^7.8.0",
@@ -97,20 +98,21 @@
97
98
  "@sproutsocial/seeds-networkcolor": "^2.9.0",
98
99
  "@sproutsocial/seeds-space": "^0.4.7",
99
100
  "@sproutsocial/seeds-typography": "^3.0.1",
100
- "@storybook/addon-a11y": "^6.1.11",
101
- "@storybook/addon-actions": "^6.3.8",
102
- "@storybook/addon-knobs": "^6.1.11",
103
- "@storybook/addon-storysource": "^6.1.11",
104
- "@storybook/addon-viewport": "^6.1.11",
105
- "@storybook/addons": "^6.1.11",
101
+ "@storybook/addon-a11y": "^6.4.19",
102
+ "@storybook/addon-actions": "^6.4.19",
103
+ "@storybook/addon-controls": "^6.4.19",
104
+ "@storybook/addon-knobs": "^6.4.0",
105
+ "@storybook/addon-storysource": "^6.4.19",
106
+ "@storybook/addon-viewport": "^6.4.19",
107
+ "@storybook/addons": "^6.4.19",
106
108
  "@storybook/react": "^6.4.19",
107
- "@storybook/theming": "^6.1.11",
109
+ "@storybook/theming": "^6.4.19",
108
110
  "@testing-library/react": "^11.2.2",
109
111
  "@testing-library/user-event": "^13.0.0",
110
112
  "babel-core": "^7.0.0-bridge",
111
113
  "babel-eslint": "10.1.0",
112
114
  "babel-jest": "26.1.0",
113
- "babel-loader": "8.0.6",
115
+ "babel-loader": "8.2.3",
114
116
  "babel-plugin-inline-import": "^3.0.0",
115
117
  "babel-plugin-polished": "^1.1.0",
116
118
  "babel-plugin-styled-components": "^1.10.0",
@@ -138,7 +140,7 @@
138
140
  "jest": "26.1.0",
139
141
  "jest-axe": "3.4.0",
140
142
  "jest-dom": "^3.5.0",
141
- "jest-styled-components": "7.0.0-beta.1",
143
+ "jest-styled-components": "7.0.8",
142
144
  "jscodeshift": "^0.6.4",
143
145
  "json-to-scss": "^1.6.2",
144
146
  "lint-staged": "^10.2.11",
@@ -146,15 +148,15 @@
146
148
  "npm-run-all": "^4.1.2",
147
149
  "outdent": "^0.7.0",
148
150
  "pify": "^4.0.1",
149
- "playroom": "^0.22.2",
151
+ "playroom": "^0.27.9",
150
152
  "prettier": "^2.0.5",
151
153
  "prop-types": "^15.6.1",
152
154
  "react": "16.12.0",
153
155
  "react-dates": "^21.8.0",
154
156
  "react-dom": "16.12.0",
155
157
  "rimraf": "^2.6.3",
156
- "storybook-dark-mode": "^1.0.7",
157
- "styled-components": "5.0.0-rc.2",
158
+ "storybook-dark-mode": "^1.0.9",
159
+ "styled-components": "5.3.3",
158
160
  "stylelint": "^13.8.0",
159
161
  "stylelint-config-recommended": "^2.2.0",
160
162
  "stylelint-config-styled-components": "^0.1.1",
@@ -179,6 +181,7 @@
179
181
  "styled-components": "^5.0.0-rc.2"
180
182
  },
181
183
  "resolutions": {
184
+ "**/eslint-import-resolver-node": "0.3.4",
182
185
  "lodash": "^4.17.21",
183
186
  "react-popper/create-react-context": "^0.3.0"
184
187
  },