@sproutsocial/racine 9.1.1-theme-extension.1 → 10.0.0--dar97-beta.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 (100) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/__flow__/Box/index.stories.js +1 -1
  3. package/__flow__/Breadcrumb/styles.js +0 -5
  4. package/__flow__/Button/styles.js +1 -1
  5. package/__flow__/Card/index.stories.js +0 -1
  6. package/__flow__/Card/styles.js +1 -1
  7. package/__flow__/Drawer/index.stories.js +3 -3
  8. package/__flow__/Drawer/styles.js +1 -1
  9. package/__flow__/KeyboardKey/styles.js +1 -1
  10. package/__flow__/Listbox/__snapshots__/index.test.js.snap +40 -34
  11. package/__flow__/Menu/__snapshots__/index.test.js.snap +15 -12
  12. package/__flow__/Menu/index.js +3 -7
  13. package/__flow__/Menu/index.stories.js +1 -1
  14. package/__flow__/Menu/styles.js +1 -18
  15. package/__flow__/Modal/index.test.js +0 -16
  16. package/__flow__/Modal/styles.js +1 -1
  17. package/__flow__/Popout/index.js +1 -1
  18. package/__flow__/Stack/index.js +1 -1
  19. package/__flow__/ThemeProvider/index.js +4 -4
  20. package/__flow__/Token/index.js +4 -1
  21. package/__flow__/Token/index.stories.js +11 -0
  22. package/__flow__/Token/styles.js +43 -33
  23. package/__flow__/Tooltip/index.js +1 -1
  24. package/__flow__/index.js +1 -2
  25. package/__flow__/themes/dark/_themes.scss +132 -0
  26. package/__flow__/themes/dark/theme.js +181 -157
  27. package/__flow__/themes/light/_themes.scss +132 -0
  28. package/__flow__/themes/{default → light}/dataviz-palette.js +0 -0
  29. package/__flow__/themes/{default → light}/decorative-palettes.js +0 -0
  30. package/__flow__/themes/{default → light}/literal-colors.js +0 -0
  31. package/__flow__/themes/{default → light}/theme.js +19 -8
  32. package/__flow__/themes/utils/interact.js +12 -0
  33. package/__flow__/types/system-props.flow.js +1 -2
  34. package/__flow__/types/theme.colors.flow.js +1 -1
  35. package/__flow__/types/theme.flow.js +2 -2
  36. package/__flow__/utils/mixins.js +1 -1
  37. package/__flow__/utils/responsiveProps/index.js +1 -1
  38. package/commonjs/Breadcrumb/styles.js +1 -1
  39. package/commonjs/Button/styles.js +1 -1
  40. package/commonjs/Card/styles.js +1 -1
  41. package/commonjs/Drawer/styles.js +1 -1
  42. package/commonjs/KeyboardKey/styles.js +1 -1
  43. package/commonjs/Menu/index.js +3 -1
  44. package/commonjs/Menu/styles.js +3 -16
  45. package/commonjs/Modal/styles.js +1 -1
  46. package/commonjs/Popout/index.js +1 -1
  47. package/commonjs/ThemeProvider/index.js +1 -1
  48. package/commonjs/Token/index.js +5 -2
  49. package/commonjs/Token/styles.js +19 -50
  50. package/commonjs/Tooltip/index.js +1 -1
  51. package/commonjs/index.js +2 -6
  52. package/commonjs/themes/dark/theme.js +180 -155
  53. package/commonjs/themes/{default → light}/dataviz-palette.js +0 -0
  54. package/commonjs/themes/{default → light}/decorative-palettes.js +0 -0
  55. package/commonjs/themes/{default → light}/literal-colors.js +0 -0
  56. package/commonjs/themes/{default → light}/theme.js +19 -8
  57. package/commonjs/themes/utils/interact.js +19 -0
  58. package/commonjs/types/theme.colors.flow.js +1 -1
  59. package/commonjs/types/theme.flow.js +1 -1
  60. package/commonjs/utils/mixins.js +1 -1
  61. package/commonjs/utils/responsiveProps/index.js +1 -1
  62. package/dist/themes/dark/_themes.scss +132 -0
  63. package/dist/themes/dark/dark.scss +601 -0
  64. package/dist/themes/light/_themes.scss +132 -0
  65. package/dist/themes/light/light.scss +692 -0
  66. package/lib/Breadcrumb/styles.js +1 -1
  67. package/lib/Button/styles.js +1 -1
  68. package/lib/Card/styles.js +1 -1
  69. package/lib/Drawer/styles.js +1 -1
  70. package/lib/KeyboardKey/styles.js +1 -1
  71. package/lib/Menu/index.js +4 -2
  72. package/lib/Menu/styles.js +2 -13
  73. package/lib/Modal/styles.js +1 -1
  74. package/lib/Popout/index.js +1 -1
  75. package/lib/ThemeProvider/index.js +1 -1
  76. package/lib/Token/index.js +5 -2
  77. package/lib/Token/styles.js +19 -50
  78. package/lib/Tooltip/index.js +1 -1
  79. package/lib/index.js +1 -2
  80. package/lib/themes/dark/theme.js +175 -154
  81. package/lib/themes/{default → light}/dataviz-palette.js +0 -0
  82. package/lib/themes/{default → light}/decorative-palettes.js +0 -0
  83. package/lib/themes/{default → light}/literal-colors.js +0 -0
  84. package/lib/themes/{default → light}/theme.js +18 -8
  85. package/lib/themes/utils/interact.js +13 -0
  86. package/lib/types/theme.colors.flow.js +1 -1
  87. package/lib/types/theme.flow.js +1 -1
  88. package/lib/utils/mixins.js +1 -1
  89. package/lib/utils/responsiveProps/index.js +1 -1
  90. package/package.json +4 -4
  91. package/__flow__/CustomThemeProvider/index.js +0 -17
  92. package/__flow__/Modal/__snapshots__/index.test.js.snap +0 -80
  93. package/__flow__/themes/sprout/theme.js +0 -22
  94. package/__flow__/utils/extendTheme.js +0 -17
  95. package/commonjs/CustomThemeProvider/index.js +0 -23
  96. package/commonjs/themes/sprout/theme.js +0 -29
  97. package/commonjs/utils/extendTheme.js +0 -22
  98. package/lib/CustomThemeProvider/index.js +0 -12
  99. package/lib/themes/sprout/theme.js +0 -19
  100. package/lib/utils/extendTheme.js +0 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 52052ae: Update MenuGroupContainer so that it takes system props instead of css styling
8
+ - 2fc4f88: Adds a `palette` prop to Token and uses the proper accessible color tokens
9
+ - 7a87944: Update @storybook/react to resolve a vulnerability in one of its sub-dependencies (immer)
10
+
11
+ ## 9.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - a71802f: convert shadow tokens to semantic tokens
16
+
17
+ ## 8.8.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 2746920: Add SCSS themed mixin and functions
22
+
23
+ ### Patch Changes
24
+
25
+ - 69ddb8e: Replace instances of Icon colors with semantic names
26
+
27
+ ## 8.7.1
28
+
29
+ ### Patch Changes
30
+
31
+ - 1cf97da: Remove font weight rule from Breadcrumbs styles
32
+
33
+ ## 8.7.0
34
+
35
+ ### Minor Changes
36
+
37
+ - bcfb6eb: Export themes as scss variables
38
+
3
39
  ## 8.6.3
4
40
 
5
41
  ### Patch Changes
@@ -3,7 +3,7 @@ import { css } from "styled-components";
3
3
  import { text } from "@storybook/addon-knobs";
4
4
  import Box from "./index";
5
5
  import useMeasure from "use-measure";
6
- import theme from "../themes/default/theme";
6
+ import theme from "../themes/light/theme";
7
7
 
8
8
  export default {
9
9
  title: "Box",
@@ -42,11 +42,6 @@ const Nav: StyledComponent<{ ... }, TypeTheme, *> = styled.nav`
42
42
  font-weight: bold;
43
43
  }
44
44
 
45
- li:not(:last-child) a,
46
- li:not(:last-child) button {
47
- font-weight: normal;
48
- }
49
-
50
45
  li:not(:last-child)::after {
51
46
  content: "/";
52
47
  color: ${(props) => props.theme.colors.text.body};
@@ -51,7 +51,7 @@ const Container: StyledComponent<any, TypeTheme, *> = styled.button`
51
51
  props.theme.colors.button[props.appearance].background.hover};
52
52
  text-decoration: none;
53
53
  box-shadow: ${(props) =>
54
- props.appearance === "placeholder" ? props.theme.shadows[100] : "none"};
54
+ props.appearance === "placeholder" ? props.theme.shadows.low : "none"};
55
55
  }
56
56
 
57
57
  &:active {
@@ -15,7 +15,6 @@ export const AsButton = () => (
15
15
  px={400}
16
16
  py={350}
17
17
  ariaLabel="Click to do something"
18
- bg="container.background.error.hover"
19
18
  >
20
19
  This is an interactive Card.
21
20
  </Card>
@@ -19,7 +19,7 @@ const Container = styled<typeof Box, *>(Box)`
19
19
  width: 100%;
20
20
  height: 100%;
21
21
  opacity: 0;
22
- box-shadow: ${(props) => props.theme.shadows[100]};
22
+ box-shadow: ${(props) => props.theme.shadows.low};
23
23
  transition: opacity ${(props) => props.theme.duration.medium}
24
24
  ${(props) => props.theme.easing.ease_inout};
25
25
  }
@@ -51,7 +51,7 @@ const DrawerComponent = ({ direction, offset }) => {
51
51
  padding={300}
52
52
  >
53
53
  <Button onClick={onOpen}>
54
- <Icon color="neutral.0" name="notifications" />
54
+ <Icon color="icon.inverse" name="notifications" />
55
55
  </Button>
56
56
  </Box>
57
57
  <Drawer
@@ -105,10 +105,10 @@ const NectarDrawerComponent = ({ direction, offset }) => {
105
105
  <Button
106
106
  onClick={isNotificationsOpen ? closeNotifications : openNotifications}
107
107
  >
108
- <Icon color="neutral.800" name="notifications" />
108
+ <Icon color="icon.base" name="notifications" />
109
109
  </Button>
110
110
  <Button onClick={isPoplarOpen ? closePoplar : openPoplar} mt={400}>
111
- <Icon color="neutral.800" name="link" />
111
+ <Icon color="icon.base" name="link" />
112
112
  </Button>
113
113
  </Box>
114
114
  <Drawer
@@ -17,7 +17,7 @@ const Container: StyledComponent<any, TypeTheme, *> = styled.div`
17
17
  height: 100%;
18
18
  width: ${(props) => props.width}px;
19
19
  background-color: ${(props) => props.theme.colors.container.background.base};
20
- box-shadow: ${(props) => props.theme.shadows[400]};
20
+ box-shadow: ${(props) => props.theme.shadows.high};
21
21
  filter: blur(0);
22
22
 
23
23
  ${(props) => css`
@@ -10,7 +10,7 @@ const Container: StyledComponent<{ ... }, TypeTheme, *> = styled.div`
10
10
  background-color: ${(props) => props.theme.colors.container.background.base};
11
11
  border: 1px solid ${(props) => props.theme.colors.container.border.base};
12
12
  border-radius: ${(props) => props.theme.radii[500]};
13
- box-shadow: ${(props) => props.theme.shadows[100]};
13
+ box-shadow: ${(props) => props.theme.shadows.low};
14
14
  padding: 0 ${(props) => props.theme.space[200]};
15
15
  min-width: 20px;
16
16
  justify-content: center;
@@ -388,6 +388,13 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
388
388
  .c2 {
389
389
  box-sizing: border-box;
390
390
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
391
+ margin: 8px;
392
+ padding: 8px;
393
+ }
394
+
395
+ .c3 {
396
+ box-sizing: border-box;
397
+ font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
391
398
  }
392
399
 
393
400
  .c6 {
@@ -460,10 +467,6 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
460
467
  cursor: pointer;
461
468
  }
462
469
 
463
- .c3 {
464
- padding: 8px;
465
- }
466
-
467
470
  .c1 {
468
471
  list-style-type: none;
469
472
  outline: 0;
@@ -558,12 +561,12 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
558
561
  width="200px"
559
562
  >
560
563
  <div
561
- class="c2 c3"
564
+ class="c2"
562
565
  role="group"
563
566
  >
564
567
  <li
565
568
  aria-checked="false"
566
- class="c2 c4"
569
+ class="c3 c4"
567
570
  data-qa-menu-item="Apple"
568
571
  data-value="Apple"
569
572
  id="MenuItem-28"
@@ -597,7 +600,7 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
597
600
  </li>
598
601
  <li
599
602
  aria-checked="false"
600
- class="c2 c6"
603
+ class="c3 c6"
601
604
  data-qa-menu-item="Banana"
602
605
  data-value="Banana"
603
606
  id="MenuItem-29"
@@ -631,7 +634,7 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
631
634
  </li>
632
635
  <li
633
636
  aria-checked="false"
634
- class="c2 c6"
637
+ class="c3 c6"
635
638
  data-qa-menu-item="Orange"
636
639
  data-value="Orange"
637
640
  id="MenuItem-30"
@@ -683,6 +686,13 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
683
686
  .c2 {
684
687
  box-sizing: border-box;
685
688
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
689
+ margin: 8px;
690
+ padding: 8px;
691
+ }
692
+
693
+ .c4 {
694
+ box-sizing: border-box;
695
+ font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
686
696
  }
687
697
 
688
698
  .c7 {
@@ -755,10 +765,6 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
755
765
  cursor: pointer;
756
766
  }
757
767
 
758
- .c3 {
759
- padding: 8px;
760
- }
761
-
762
768
  .c1 {
763
769
  list-style-type: none;
764
770
  outline: 0;
@@ -780,12 +786,12 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
780
786
  margin-right: 8px;
781
787
  }
782
788
 
783
- .c4 {
789
+ .c3 {
784
790
  box-sizing: border-box;
785
791
  position: relative;
786
792
  }
787
793
 
788
- .c4 input {
794
+ .c3 input {
789
795
  box-sizing: border-box;
790
796
  width: 100%;
791
797
  border: 1px solid transparent;
@@ -806,34 +812,34 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
806
812
  font-size: 13px;
807
813
  }
808
814
 
809
- .c4 input::-ms-clear {
815
+ .c3 input::-ms-clear {
810
816
  display: none;
811
817
  }
812
818
 
813
- .c4 input::-webkit-search-cancel-button {
819
+ .c3 input::-webkit-search-cancel-button {
814
820
  -webkit-appearance: none;
815
821
  -moz-appearance: none;
816
822
  appearance: none;
817
823
  }
818
824
 
819
- .c4 input:focus {
825
+ .c3 input:focus {
820
826
  box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
821
827
  outline: none;
822
828
  }
823
829
 
824
- .c4 input:focus::-moz-focus-inner {
830
+ .c3 input:focus::-moz-focus-inner {
825
831
  border: 0;
826
832
  }
827
833
 
828
- .c4 input:not(output):not(:focus):-moz-ui-invalid {
834
+ .c3 input:not(output):not(:focus):-moz-ui-invalid {
829
835
  box-shadow: none;
830
836
  }
831
837
 
832
- .c4 input:placeholder {
838
+ .c3 input:placeholder {
833
839
  color: #6e797a;
834
840
  }
835
841
 
836
- .c4 input {
842
+ .c3 input {
837
843
  border: 1px solid #b0b6b7;
838
844
  }
839
845
 
@@ -910,11 +916,11 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
910
916
  width="200px"
911
917
  >
912
918
  <div
913
- class="c2 c3"
919
+ class="c2"
914
920
  role="group"
915
921
  >
916
922
  <div
917
- class="c4"
923
+ class="c3"
918
924
  >
919
925
  <input
920
926
  aria-invalid="false"
@@ -931,7 +937,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
931
937
  </div>
932
938
  <li
933
939
  aria-checked="false"
934
- class="c2 c5"
940
+ class="c4 c5"
935
941
  data-qa-menu-item="Apple"
936
942
  data-value="Apple"
937
943
  id="MenuItem-34"
@@ -965,7 +971,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
965
971
  </li>
966
972
  <li
967
973
  aria-checked="false"
968
- class="c2 c7"
974
+ class="c4 c7"
969
975
  data-qa-menu-item="Banana"
970
976
  data-value="Banana"
971
977
  id="MenuItem-35"
@@ -999,7 +1005,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
999
1005
  </li>
1000
1006
  <li
1001
1007
  aria-checked="false"
1002
- class="c2 c7"
1008
+ class="c4 c7"
1003
1009
  data-qa-menu-item="Orange"
1004
1010
  data-value="Orange"
1005
1011
  id="MenuItem-36"
@@ -1033,7 +1039,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1033
1039
  </li>
1034
1040
  <li
1035
1041
  aria-checked="false"
1036
- class="c2 c7"
1042
+ class="c4 c7"
1037
1043
  data-qa-menu-item="Tomato"
1038
1044
  data-value="Tomato"
1039
1045
  id="MenuItem-37"
@@ -1067,7 +1073,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1067
1073
  </li>
1068
1074
  <li
1069
1075
  aria-checked="false"
1070
- class="c2 c7"
1076
+ class="c4 c7"
1071
1077
  data-qa-menu-item="Cucumber"
1072
1078
  data-value="Cucumber"
1073
1079
  id="MenuItem-38"
@@ -1101,7 +1107,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1101
1107
  </li>
1102
1108
  <li
1103
1109
  aria-checked="false"
1104
- class="c2 c7"
1110
+ class="c4 c7"
1105
1111
  data-qa-menu-item="Squash"
1106
1112
  data-value="Squash"
1107
1113
  id="MenuItem-39"
@@ -1135,7 +1141,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1135
1141
  </li>
1136
1142
  <li
1137
1143
  aria-checked="false"
1138
- class="c2 c7"
1144
+ class="c4 c7"
1139
1145
  data-qa-menu-item="Cantaloupe"
1140
1146
  data-value="Cantaloupe"
1141
1147
  id="MenuItem-40"
@@ -1169,7 +1175,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1169
1175
  </li>
1170
1176
  <li
1171
1177
  aria-checked="false"
1172
- class="c2 c7"
1178
+ class="c4 c7"
1173
1179
  data-qa-menu-item="Jackalope"
1174
1180
  data-value="Jackalope"
1175
1181
  id="MenuItem-41"
@@ -1203,7 +1209,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1203
1209
  </li>
1204
1210
  <li
1205
1211
  aria-checked="false"
1206
- class="c2 c7"
1212
+ class="c4 c7"
1207
1213
  data-qa-menu-item="Lingonberry"
1208
1214
  data-value="Lingonberry"
1209
1215
  id="MenuItem-42"
@@ -1237,7 +1243,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1237
1243
  </li>
1238
1244
  <li
1239
1245
  aria-checked="false"
1240
- class="c2 c7"
1246
+ class="c4 c7"
1241
1247
  data-qa-menu-item="Dingleberry"
1242
1248
  data-value="Dingleberry"
1243
1249
  id="MenuItem-43"
@@ -1271,7 +1277,7 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
1271
1277
  </li>
1272
1278
  <li
1273
1279
  aria-checked="false"
1274
- class="c2 c7"
1280
+ class="c4 c7"
1275
1281
  data-qa-menu-item="Kaffir Lime"
1276
1282
  data-value="Kaffir Lime"
1277
1283
  id="MenuItem-44"
@@ -22,6 +22,13 @@ exports[`Menu AsMenu should match snapshot 1`] = `
22
22
  .c4 {
23
23
  box-sizing: border-box;
24
24
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
25
+ margin: 8px;
26
+ padding: 8px;
27
+ }
28
+
29
+ .c5 {
30
+ box-sizing: border-box;
31
+ font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
25
32
  }
26
33
 
27
34
  .c7 {
@@ -94,10 +101,6 @@ exports[`Menu AsMenu should match snapshot 1`] = `
94
101
  cursor: pointer;
95
102
  }
96
103
 
97
- .c5 {
98
- padding: 8px;
99
- }
100
-
101
104
  .c1 {
102
105
  list-style-type: none;
103
106
  outline: 0;
@@ -138,11 +141,11 @@ exports[`Menu AsMenu should match snapshot 1`] = `
138
141
  </div>
139
142
  </div>
140
143
  <div
141
- class="c4 c5"
144
+ class="c4"
142
145
  role="group"
143
146
  >
144
147
  <li
145
- class="c4 c6"
148
+ class="c5 c6"
146
149
  data-qa-menu-item="Apple"
147
150
  id="MenuItem-1"
148
151
  role="menuitem"
@@ -159,7 +162,7 @@ exports[`Menu AsMenu should match snapshot 1`] = `
159
162
  </div>
160
163
  </li>
161
164
  <li
162
- class="c4 c7"
165
+ class="c5 c7"
163
166
  data-qa-menu-item="Banana"
164
167
  id="MenuItem-2"
165
168
  role="menuitem"
@@ -176,7 +179,7 @@ exports[`Menu AsMenu should match snapshot 1`] = `
176
179
  </div>
177
180
  </li>
178
181
  <li
179
- class="c4 c7"
182
+ class="c5 c7"
180
183
  data-qa-menu-item="Orange"
181
184
  id="MenuItem-3"
182
185
  role="menuitem"
@@ -206,11 +209,11 @@ exports[`Menu AsMenu should match snapshot 1`] = `
206
209
  </div>
207
210
  </div>
208
211
  <div
209
- class="c4 c5"
212
+ class="c4"
210
213
  role="group"
211
214
  >
212
215
  <li
213
- class="c4 c7"
216
+ class="c5 c7"
214
217
  data-qa-menu-item="Tomato"
215
218
  id="MenuItem-4"
216
219
  role="menuitem"
@@ -227,7 +230,7 @@ exports[`Menu AsMenu should match snapshot 1`] = `
227
230
  </div>
228
231
  </li>
229
232
  <li
230
- class="c4 c7"
233
+ class="c5 c7"
231
234
  data-qa-menu-item="Cucumber"
232
235
  id="MenuItem-5"
233
236
  role="menuitem"
@@ -244,7 +247,7 @@ exports[`Menu AsMenu should match snapshot 1`] = `
244
247
  </div>
245
248
  </li>
246
249
  <li
247
- class="c4 c7"
250
+ class="c5 c7"
248
251
  data-qa-menu-item="Squash"
249
252
  id="MenuItem-6"
250
253
  role="menuitem"
@@ -10,11 +10,7 @@ import {
10
10
  useState,
11
11
  } from "react";
12
12
  import uniqueId from "lodash.uniqueid";
13
- import {
14
- MenuGroupContainer,
15
- MenuItemContainer,
16
- MenuItemsContainer,
17
- } from "./styles";
13
+ import { MenuItemContainer, MenuItemsContainer } from "./styles";
18
14
  import { MENU_ITEM_ROLES, MENU_ROLES } from "./constants";
19
15
 
20
16
  import Box from "../Box";
@@ -291,9 +287,9 @@ export const MenuGroup = ({
291
287
  </Text>
292
288
  </Box>
293
289
  )}
294
- <MenuGroupContainer {...props} role="group">
290
+ <Box {...props} m={300} p={300} role="group">
295
291
  {children}
296
- </MenuGroupContainer>
292
+ </Box>
297
293
  </>
298
294
  );
299
295
 
@@ -213,7 +213,7 @@ export const MenuWithIcons = (props) => {
213
213
  border={500}
214
214
  borderRadius="outer"
215
215
  borderColor="container.border.base"
216
- boxShadow={300}
216
+ boxShadow="medium"
217
217
  backgroundColor="container.background.base"
218
218
  >
219
219
  <Menu {...props}>
@@ -1,7 +1,7 @@
1
1
  // @flow
2
2
  import styled, { css } from "styled-components";
3
3
  import Box from "../Box";
4
- import type { TypeMenuGroupProps, TypeMenuItemProps } from "./index.flow";
4
+ import type { TypeMenuItemProps } from "./index.flow";
5
5
  import type { TypeTheme } from "../types/theme.flow";
6
6
  import { disabled } from "../utils/mixins";
7
7
 
@@ -84,24 +84,7 @@ export const MenuItemContainer = styled<
84
84
  ${(props) => props.disabled && disabled}
85
85
  `;
86
86
 
87
- export const MenuGroupContainer = styled<
88
- typeof Box,
89
- TypeTheme,
90
- TypeMenuGroupProps
91
- >(Box)`
92
- ${(props) =>
93
- props.appearance === "flush"
94
- ? css`
95
- margin: 0 -${(props) => props.theme.space[300]};
96
- `
97
- : css`
98
- padding: ${(props) => props.theme.space[300]};
99
- `};
100
- `;
101
-
102
87
  export const MenuItemsContainer = styled<typeof Box, TypeTheme>(Box)`
103
88
  list-style-type: none;
104
89
  outline: 0;
105
90
  `;
106
-
107
- export default MenuGroupContainer;
@@ -7,22 +7,6 @@ import { COLOR_PURPLE_300 } from "@sproutsocial/seeds-color";
7
7
  afterEach(() => cleanup());
8
8
 
9
9
  describe("Modal", () => {
10
- it("should render properly", () => {
11
- // Use baseElement since it renders in a Portal
12
- const { baseElement } = render(
13
- <Modal
14
- isOpen={true}
15
- label="Label"
16
- bg={COLOR_PURPLE_300}
17
- onClose={() => {}}
18
- closeButtonLabel="Close this dialog"
19
- >
20
- ajdsfljasdlfjlasdjf
21
- </Modal>
22
- );
23
- expect(baseElement.querySelector(".ReactModal__Overlay")).toMatchSnapshot();
24
- });
25
-
26
10
  it("renders a custom background color", () => {
27
11
  // Use baseElement since it renders in a Portal
28
12
  const { baseElement } = render(
@@ -84,7 +84,7 @@ export const Container: StyledComponent<any, TypeTheme, *> = styled(ReactModalAd
84
84
  flex-direction: column;
85
85
  background: ${(props) => props.theme.colors.container.background.base};
86
86
  border-radius: ${(props) => props.theme.radii[500]};
87
- box-shadow: ${(props) => props.theme.shadows[300]};
87
+ box-shadow: ${(props) => props.theme.shadows.medium};
88
88
  filter: blur(0);
89
89
  color: ${(props) => props.theme.colors.text.body};
90
90
 
@@ -395,7 +395,7 @@ Popout.Content = ({ children, ...rest }: TypePopoutContentProps) => (
395
395
  border={500}
396
396
  borderColor="container.border.base"
397
397
  borderRadius="outer"
398
- boxShadow={300}
398
+ boxShadow="medium"
399
399
  p={400}
400
400
  m={300}
401
401
  {...rest}
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { Children } from "react";
4
4
  import Box from "../Box";
5
5
  import { normalizeResponsiveProp } from "../utils/responsiveProps";
6
- import type { TypeSpaceLiterals } from "../themes/default/theme";
6
+ import type { TypeSpaceLiterals } from "../themes/light/theme";
7
7
  import type { TypeResponsive } from "../types/system-props.flow";
8
8
 
9
9
  type TypeDirection = "vertical" | "horizontal";
@@ -1,14 +1,14 @@
1
1
  // @flow strict-local
2
2
  import * as React from "react";
3
3
  import { ThemeProvider as BaseThemeProvider } from "styled-components";
4
- import theme from "../themes/default/theme";
4
+ import theme from "../themes/light/theme";
5
5
 
6
- import typeof { default as TypeTheme } from "../themes/default/theme";
6
+ import typeof { default as TypeTheme } from "../themes/light/theme";
7
7
 
8
- type TypeProps = {|
8
+ type TypeProps = $ReadOnly<{|
9
9
  theme?: TypeTheme,
10
10
  children: React.Node,
11
- |};
11
+ |}>;
12
12
 
13
13
  const ThemeProvider = (props: TypeProps) => (
14
14
  <BaseThemeProvider {...props} theme={props.theme || theme} />
@@ -15,6 +15,7 @@ export type TypeProps = {
15
15
  valid?: boolean,
16
16
  /** Indicates whether the token is disabled */
17
17
  disabled?: boolean,
18
+ palette?: "neutral" | "blue",
18
19
  };
19
20
 
20
21
  const Token = ({
@@ -24,6 +25,7 @@ const Token = ({
24
25
  qa,
25
26
  valid = true,
26
27
  disabled = false,
28
+ palette = "neutral",
27
29
  ...rest
28
30
  }: TypeProps) => {
29
31
  const textContainer = useTextContent("");
@@ -32,8 +34,9 @@ const Token = ({
32
34
  <Container
33
35
  ref={textContainer}
34
36
  valid={valid}
35
- as={closeable || onClick ? "button" : "div"}
37
+ palette={palette}
36
38
  type={closeable || onClick ? "button" : undefined}
39
+ as={closeable || onClick ? "button" : "div"}
37
40
  closeable={closeable || onClick}
38
41
  disabled={disabled}
39
42
  onClick={onClick}
@@ -80,3 +80,14 @@ export const staticWithIcon = () => (
80
80
  staticWithIcon.story = {
81
81
  name: "Static with icon",
82
82
  };
83
+
84
+ export const bluePalette = () => (
85
+ <Token palette="blue" closeable={boolean("closeable", false)}>
86
+ <Icon size="mini" name="twitter" pr={300} />
87
+ <span>I'm blue</span>
88
+ </Token>
89
+ );
90
+
91
+ bluePalette.story = {
92
+ name: "Palette Variation",
93
+ };