@surveycake/rc 3.0.0-alpha.57 → 3.0.0-alpha.59

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [3.0.0-alpha.59](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.58...v3.0.0-alpha.59) (2022-09-26)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * change AccordionDetails from flexbox to block element box ([98c30e6](https://fox.25sprout.com/surveycake/sdk/rc/commit/98c30e69283a63fd5b30cf2a597f9bdb5e8399f7))
11
+
12
+ ## [3.0.0-alpha.58](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.57...v3.0.0-alpha.58) (2022-08-25)
13
+
14
+
15
+ ### Features
16
+
17
+ * create chart color set [SUR-1351] ([a46f121](https://fox.25sprout.com/surveycake/sdk/rc/commit/a46f1218a37476c47fce6d9d1f7e5935f4fdefa6))
18
+ * move exclusive color into theme palette [SUR-1351] ([fddc427](https://fox.25sprout.com/surveycake/sdk/rc/commit/fddc427bdc1ce26d6238b5c1fd798f56190eb43c))
19
+
5
20
  ## [3.0.0-alpha.57](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.56...v3.0.0-alpha.57) (2022-08-19)
6
21
 
7
22
 
@@ -4,3 +4,4 @@ export default _default;
4
4
  export declare const Theme: Story;
5
5
  export declare const Status: Story;
6
6
  export declare const Grey: Story;
7
+ export declare const Chart: Story;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated since version 3.0.0-alpha.58, please use theme.palette[name] lighter or lightest keywords
3
+ */
1
4
  export declare const exclusiveColor: {
2
5
  primary: {
3
6
  light2: string;
@@ -1 +1,28 @@
1
+ declare module '@material-ui/core/styles/createPalette' {
2
+ interface PaletteColor {
3
+ lighter: string;
4
+ lightest: string;
5
+ }
6
+ interface SimplePaletteColorOptions {
7
+ lighter?: string;
8
+ lightest?: string;
9
+ }
10
+ interface ChartColorOptions {
11
+ cornflowerBlue: string;
12
+ mediumAqua: string;
13
+ pear: string;
14
+ saffron: string;
15
+ corn: string;
16
+ blueGreen: string;
17
+ oxfordBlue: string;
18
+ silverSand: string;
19
+ sandyBrown: string;
20
+ }
21
+ interface Palette {
22
+ chart: ChartColorOptions;
23
+ }
24
+ interface PaletteOptions {
25
+ chart?: ChartColorOptions;
26
+ }
27
+ }
1
28
  export declare const core: import("@material-ui/core/styles").Theme;
@@ -6,7 +6,6 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var MUICssBaseline = _interopDefault(require('@material-ui/core/CssBaseline'));
8
8
  var styles$5 = require('@material-ui/core/styles');
9
- var polished = require('polished');
10
9
  var React = require('react');
11
10
  var React__default = _interopDefault(React);
12
11
  var emotionTheming = require('emotion-theming');
@@ -121,6 +120,7 @@ var MUIToggleButton = _interopDefault(require('@material-ui/lab/ToggleButton'));
121
120
  var MUIToggleButtonGroup = _interopDefault(require('@material-ui/lab/ToggleButtonGroup'));
122
121
  var MUITooltip = _interopDefault(require('@material-ui/core/Tooltip'));
123
122
  var MuiListSubheader$1 = _interopDefault(require('@material-ui/core/ListSubheader'));
123
+ var polished = require('polished');
124
124
  var MuiAvatar = _interopDefault(require('@material-ui/core/Avatar'));
125
125
  var colorManipulator = require('@material-ui/core/styles/colorManipulator');
126
126
  var MuiPaper = _interopDefault(require('@material-ui/core/Paper'));
@@ -174,31 +174,39 @@ styles$5.createTheme({
174
174
  palette: {
175
175
  primary: {
176
176
  light: '#79D8B7',
177
+ lighter: '#ACE4D1',
178
+ lightest: '#E6F7F1',
177
179
  main: '#3DBA90',
178
180
  dark: '#009974'
179
181
  },
180
182
  secondary: {
181
183
  light: '#668A97',
184
+ lighter: '#76AABE',
185
+ lightest: '#AACAD7',
182
186
  main: '#325A69',
183
187
  dark: '#11303C'
184
188
  },
185
189
  error: {
186
190
  light: '#F6AFB9',
191
+ lighter: '#FDE5E9',
187
192
  main: '#EE415D',
188
193
  dark: '#C9354D'
189
194
  },
190
195
  warning: {
191
196
  light: '#F6CD81',
197
+ lighter: '#FBE1B1',
192
198
  main: '#F4A91F',
193
199
  dark: '#E9A01C'
194
200
  },
195
201
  info: {
196
202
  light: '#BADFEF',
203
+ lighter: '#E4F5FC',
197
204
  main: '#43B8EB',
198
205
  dark: '#0094D3'
199
206
  },
200
207
  success: {
201
208
  light: '#CEE5B1',
209
+ lighter: '#E7F4D7',
202
210
  main: '#88C936',
203
211
  dark: '#66B204'
204
212
  },
@@ -221,6 +229,17 @@ styles$5.createTheme({
221
229
  text: {
222
230
  primary: '#454545',
223
231
  secondary: '#6B6B6B'
232
+ },
233
+ chart: {
234
+ cornflowerBlue: '#379FED',
235
+ mediumAqua: '#66D6BB',
236
+ pear: '#D3EC3C',
237
+ saffron: '#F1C733',
238
+ corn: '#F0EA61',
239
+ blueGreen: '#30C3CC',
240
+ oxfordBlue: '#091F55',
241
+ silverSand: '#C2C2C2',
242
+ sandyBrown: '#E99C64'
224
243
  }
225
244
  },
226
245
 
@@ -333,6 +352,7 @@ var MuiAccordion = {
333
352
 
334
353
  var MuiAccordionDetails = {
335
354
  root: {
355
+ display: 'block',
336
356
  padding: '0 2rem 2rem'
337
357
  }
338
358
  };
@@ -352,45 +372,6 @@ var MuiAccordionSummary = {
352
372
  }
353
373
  };
354
374
 
355
- var exclusiveColor = {
356
- primary: {
357
- light2:
358
- /*#__PURE__*/
359
- polished.lighten(0.3, core.palette.primary.main),
360
- light3:
361
- /*#__PURE__*/
362
- polished.lighten(0.45, core.palette.primary.main)
363
- },
364
- secondary: {
365
- light2:
366
- /*#__PURE__*/
367
- polished.lighten(0.3, core.palette.secondary.main),
368
- light3:
369
- /*#__PURE__*/
370
- polished.lighten(0.45, core.palette.secondary.main)
371
- },
372
- error: {
373
- light2:
374
- /*#__PURE__*/
375
- polished.lighten(0.35, core.palette.error.main)
376
- },
377
- success: {
378
- light2:
379
- /*#__PURE__*/
380
- polished.lighten(0.4, core.palette.success.main)
381
- },
382
- warning: {
383
- light2:
384
- /*#__PURE__*/
385
- polished.lighten(0.3, core.palette.warning.main)
386
- },
387
- info: {
388
- light2:
389
- /*#__PURE__*/
390
- polished.lighten(0.35, core.palette.info.main)
391
- }
392
- };
393
-
394
375
  var MuiAlert = {
395
376
  root: {
396
377
  padding:
@@ -400,19 +381,19 @@ var MuiAlert = {
400
381
  core.spacing(2) + "px"
401
382
  },
402
383
  standardInfo: {
403
- backgroundColor: exclusiveColor.info.light2,
384
+ backgroundColor: core.palette.info.lighter,
404
385
  color: core.palette.grey[700]
405
386
  },
406
387
  standardError: {
407
- backgroundColor: exclusiveColor.error.light2,
388
+ backgroundColor: core.palette.error.lighter,
408
389
  color: core.palette.grey[700]
409
390
  },
410
391
  standardWarning: {
411
- backgroundColor: exclusiveColor.warning.light2,
392
+ backgroundColor: core.palette.warning.lighter,
412
393
  color: core.palette.grey[700]
413
394
  },
414
395
  standardSuccess: {
415
- backgroundColor: exclusiveColor.success.light2,
396
+ backgroundColor: core.palette.success.lighter,
416
397
  color: core.palette.grey[700]
417
398
  },
418
399
  icon: {
@@ -498,14 +479,14 @@ var MuiButton = {
498
479
  color: core.palette.grey[600],
499
480
  '&:hover': {
500
481
  color: core.palette.primary.main,
501
- backgroundColor: exclusiveColor.primary.light3
482
+ backgroundColor: core.palette.primary.lightest
502
483
  }
503
484
  },
504
485
  textSecondary: {
505
486
  color: core.palette.text.secondary,
506
487
  '&:hover': {
507
488
  color: core.palette.secondary.main,
508
- backgroundColor: exclusiveColor.secondary.light3
489
+ backgroundColor: core.palette.secondary.lightest
509
490
  }
510
491
  },
511
492
  outlined: {
@@ -527,12 +508,12 @@ var MuiButton = {
527
508
  },
528
509
  outlinedPrimary: {
529
510
  '&:hover': {
530
- backgroundColor: exclusiveColor.primary.light3
511
+ backgroundColor: core.palette.primary.lightest
531
512
  }
532
513
  },
533
514
  outlinedSecondary: {
534
515
  '&:hover': {
535
- backgroundColor: exclusiveColor.secondary.light3
516
+ backgroundColor: core.palette.secondary.lightest
536
517
  }
537
518
  },
538
519
  iconSizeSmall: {
@@ -643,7 +624,7 @@ var MuiChip = {
643
624
  },
644
625
  colorPrimary: {
645
626
  color: core.palette.primary.main,
646
- backgroundColor: exclusiveColor.primary.light3
627
+ backgroundColor: core.palette.primary.lightest
647
628
  },
648
629
  clickable: {
649
630
  '&:focus': {
@@ -744,11 +725,11 @@ var MuiIconButton = {
744
725
  colorPrimary: {
745
726
  '&:focus': {
746
727
  color: core.palette.primary.main,
747
- backgroundColor: exclusiveColor.primary.light3
728
+ backgroundColor: core.palette.primary.lightest
748
729
  },
749
730
  '&:hover': {
750
731
  color: core.palette.primary.main,
751
- backgroundColor: exclusiveColor.primary.light3
732
+ backgroundColor: core.palette.primary.lightest
752
733
  }
753
734
  }
754
735
  };
@@ -795,13 +776,13 @@ var MuiMenuItem = {
795
776
  core.spacing(1) + "px",
796
777
  '&.Mui-selected': {
797
778
  color: core.palette.primary.main,
798
- backgroundColor: exclusiveColor.primary.light3,
779
+ backgroundColor: core.palette.primary.lightest,
799
780
  '&:hover': {
800
- backgroundColor: exclusiveColor.primary.light3
781
+ backgroundColor: core.palette.primary.lightest
801
782
  }
802
783
  },
803
784
  '&:hover': {
804
- backgroundColor: exclusiveColor.primary.light2,
785
+ backgroundColor: core.palette.primary.lighter,
805
786
  color: core.palette.primary.dark
806
787
  }
807
788
  })
@@ -1040,7 +1021,7 @@ var MuiSwitch = {
1040
1021
  backgroundColor: core.palette.primary.main
1041
1022
  },
1042
1023
  '&.Mui-disabled.Mui-checked + .MuiSwitch-track': {
1043
- backgroundColor: exclusiveColor.primary.light2,
1024
+ backgroundColor: core.palette.primary.lighter,
1044
1025
  opacity: 1
1045
1026
  },
1046
1027
  '&.Mui-disabled + .MuiSwitch-track': {
@@ -1056,7 +1037,7 @@ var MuiSwitch = {
1056
1037
  color: core.palette.common.white
1057
1038
  },
1058
1039
  '&.Mui-disabled.Mui-checked + .MuiSwitch-track': {
1059
- backgroundColor: exclusiveColor.secondary.light2,
1040
+ backgroundColor: core.palette.secondary.lighter,
1060
1041
  opacity: 1
1061
1042
  },
1062
1043
  '&.Mui-disabled + .MuiSwitch-track': {
@@ -2605,14 +2586,14 @@ styles$5.makeStyles(function (theme) {
2605
2586
  container: {
2606
2587
  backgroundColor: theme.palette.common.white,
2607
2588
  '&:hover': {
2608
- backgroundColor: exclusiveColor.primary.light2,
2589
+ backgroundColor: theme.palette.primary.lighter,
2609
2590
  '& > div': {
2610
2591
  backgroundColor: theme.palette.primary.main,
2611
2592
  color: theme.palette.common.white
2612
2593
  }
2613
2594
  },
2614
2595
  '&.Mui-selected': {
2615
- backgroundColor: exclusiveColor.primary.light3,
2596
+ backgroundColor: theme.palette.primary.lightest,
2616
2597
  '& > div': {
2617
2598
  backgroundColor: theme.palette.primary.main,
2618
2599
  color: theme.palette.common.white
@@ -2715,6 +2696,49 @@ React.forwardRef(function (props, ref) {
2715
2696
  });
2716
2697
  VarSelect.displayName = 'VarSelect';
2717
2698
 
2699
+ /**
2700
+ * @deprecated since version 3.0.0-alpha.58, please use theme.palette[name] lighter or lightest keywords
2701
+ */
2702
+
2703
+ var exclusiveColor = {
2704
+ primary: {
2705
+ light2:
2706
+ /*#__PURE__*/
2707
+ polished.lighten(0.3, core.palette.primary.main),
2708
+ light3:
2709
+ /*#__PURE__*/
2710
+ polished.lighten(0.45, core.palette.primary.main)
2711
+ },
2712
+ secondary: {
2713
+ light2:
2714
+ /*#__PURE__*/
2715
+ polished.lighten(0.3, core.palette.secondary.main),
2716
+ light3:
2717
+ /*#__PURE__*/
2718
+ polished.lighten(0.45, core.palette.secondary.main)
2719
+ },
2720
+ error: {
2721
+ light2:
2722
+ /*#__PURE__*/
2723
+ polished.lighten(0.35, core.palette.error.main)
2724
+ },
2725
+ success: {
2726
+ light2:
2727
+ /*#__PURE__*/
2728
+ polished.lighten(0.4, core.palette.success.main)
2729
+ },
2730
+ warning: {
2731
+ light2:
2732
+ /*#__PURE__*/
2733
+ polished.lighten(0.3, core.palette.warning.main)
2734
+ },
2735
+ info: {
2736
+ light2:
2737
+ /*#__PURE__*/
2738
+ polished.lighten(0.35, core.palette.info.main)
2739
+ }
2740
+ };
2741
+
2718
2742
 
2719
2743
 
2720
2744
  var index = {