@superdispatch/ui 0.23.4 → 0.24.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.
@@ -1,10 +1,20 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
4
- import { Checkbox, FormControl, FormControlLabel, FormHelperText } from '@material-ui/core';
4
+ import { Checkbox, FormControl as FormControlMui, FormControlLabel, FormHelperText as FormHelperTextMui } from '@material-ui/core';
5
5
  import { forwardRef } from 'react';
6
+ import styled from 'styled-components';
7
+ import { Color } from "../theme/Color.js";
6
8
  import { jsx as _jsx } from "react/jsx-runtime";
7
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ var FormControl = /*#__PURE__*/styled(FormControlMui).withConfig({
11
+ displayName: "CheckboxField__FormControl",
12
+ componentId: "SD__sc-1wxu0g6-0"
13
+ })(["justify-content:center;"]);
14
+ var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
15
+ displayName: "CheckboxField__FormHelperText",
16
+ componentId: "SD__sc-1wxu0g6-1"
17
+ })(["color:", ";font-size:12px;line-height:16px;font-weight:400;margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
8
18
  export var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
9
19
  var {
10
20
  label,
@@ -1,10 +1,20 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
4
- import { FormControl, FormGroup, FormHelperText, FormLabel } from '@material-ui/core';
4
+ import { FormControl, FormGroup, FormHelperText as FormHelperTextMui, FormLabel as FormLabelMui } from '@material-ui/core';
5
5
  import { forwardRef } from 'react';
6
+ import styled from 'styled-components';
7
+ import { Color } from "../theme/Color.js";
6
8
  import { jsx as _jsx } from "react/jsx-runtime";
7
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ var FormLabel = /*#__PURE__*/styled(FormLabelMui).withConfig({
11
+ displayName: "CheckboxGroudField__FormLabel",
12
+ componentId: "SD__sc-1lihyfy-0"
13
+ })(["margin-bottom:8px;color:", ";font-weight:600;"], Color.Dark300);
14
+ var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
15
+ displayName: "CheckboxGroudField__FormHelperText",
16
+ componentId: "SD__sc-1lihyfy-1"
17
+ })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
8
18
  export var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
9
19
  var {
10
20
  FormGroupProps: formGroupProps,
@@ -46,15 +46,27 @@ export function overrideCheckbox(theme) {
46
46
  theme.overrides.MuiCheckbox = {
47
47
  root: {
48
48
  color: Color.Dark100,
49
- marginTop: theme.spacing(-0.625),
50
- marginBottom: theme.spacing(-0.625)
49
+ width: theme.spacing(3),
50
+ height: theme.spacing(3),
51
+ marginRight: theme.spacing(1),
52
+ marginLeft: theme.spacing(1),
53
+ marginTop: theme.spacing(0.5),
54
+ marginBottom: theme.spacing(0.5),
55
+ padding: 0,
56
+ '&:hover': {
57
+ backgroundColor: Color.Blue10
58
+ },
59
+ '&.MuiButtonBase-root': {
60
+ borderRadius: theme.spacing(0.5)
61
+ }
51
62
  },
52
63
  colorPrimary: {
53
64
  '&$checked$disabled': {
54
65
  color: Color.Silver500
55
66
  },
56
67
  '&:hover:not($checked)': {
57
- color: Color.Dark100
68
+ color: Color.Dark100,
69
+ backgroundColor: Color.Blue10
58
70
  }
59
71
  }
60
72
  };
@@ -47,16 +47,16 @@ export function overrideChip(theme) {
47
47
  boxShadow: undefined
48
48
  },
49
49
  '&:focus': {
50
- boxShadow: "0 0 0 2px ".concat(Color.Silver300)
50
+ boxShadow: "0 0 0 2px ".concat(Color.Dark30)
51
51
  },
52
52
  '&:active, &:hover': {
53
- backgroundColor: Color.Silver300
53
+ backgroundColor: Color.Silver400
54
54
  }
55
55
  },
56
56
  deletable: {
57
57
  '&:focus': {
58
58
  backgroundColor: undefined,
59
- boxShadow: "0 0 0 2px ".concat(Color.Silver300)
59
+ boxShadow: "0 0 0 2px ".concat(Color.Silver400)
60
60
  }
61
61
  },
62
62
  deleteIcon: {
@@ -71,7 +71,7 @@ export function overrideChip(theme) {
71
71
  },
72
72
  '& > svg': {
73
73
  borderRadius: '50%',
74
- color: Color.Dark200,
74
+ color: Color.Dark100,
75
75
  fontSize: '1em'
76
76
  }
77
77
  },
@@ -24,8 +24,25 @@ export function overrideLink(theme) {
24
24
  '&.MuiTypography-colorTextPrimary': {
25
25
  backgroundImage: line(Color.Silver500),
26
26
  '&:focus, &:hover, &:active': {
27
- color: Color.Blue300,
28
- backgroundImage: line(Color.Blue300)
27
+ color: Color.Blue500,
28
+ backgroundImage: line(Color.Blue500)
29
+ }
30
+ },
31
+ '&.MuiTypography-colorError': {
32
+ color: Color.Red500,
33
+ backgroundImage: line(Color.Silver500),
34
+ '&:focus, &:hover, &:active': {
35
+ color: Color.Red500,
36
+ backgroundImage: line(Color.Red500)
37
+ }
38
+ },
39
+ '&.MuiTypography-colorTextSecondary': {
40
+ cursor: 'not-allowed',
41
+ color: Color.Dark100,
42
+ backgroundImage: line(Color.Silver500),
43
+ '&:focus, &:hover, &:active': {
44
+ color: Color.Dark100,
45
+ backgroundImage: line(Color.Silver500)
29
46
  }
30
47
  }
31
48
  },
@@ -1,10 +1,20 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
4
- import { FormControl, FormControlLabel, FormHelperText, Radio } from '@material-ui/core';
4
+ import { FormControl as FormControlMui, FormControlLabel, FormHelperText as FormHelperTextMui, Radio } from '@material-ui/core';
5
5
  import { forwardRef } from 'react';
6
+ import styled from 'styled-components';
7
+ import { Color } from "../theme/Color.js";
6
8
  import { jsx as _jsx } from "react/jsx-runtime";
7
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ var FormControl = /*#__PURE__*/styled(FormControlMui).withConfig({
11
+ displayName: "RadioField__FormControl",
12
+ componentId: "SD__sc-6ey4qt-0"
13
+ })(["justify-content:center;"]);
14
+ var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
15
+ displayName: "RadioField__FormHelperText",
16
+ componentId: "SD__sc-6ey4qt-1"
17
+ })(["color:", ";font-size:12px;line-height:16px;font-weight:400;margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
8
18
  export var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
9
19
  var {
10
20
  label,
@@ -33,7 +33,7 @@ var Content = /*#__PURE__*/styled.div.withConfig({
33
33
  var Caption = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "RadioFieldCard__Caption",
35
35
  componentId: "SD__sc-5etge2-4"
36
- })(["padding-left:32px;"]);
36
+ })(["padding-left:30px;"]);
37
37
  export var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
38
38
  var {
39
39
  name,
@@ -1,10 +1,20 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
4
- import { FormControl, FormHelperText, FormLabel, RadioGroup } from '@material-ui/core';
4
+ import { FormControl, FormHelperText as FormHelperTextMui, FormLabel as FormLabelMui, RadioGroup } from '@material-ui/core';
5
5
  import { forwardRef } from 'react';
6
+ import styled from 'styled-components';
7
+ import { Color } from "../theme/Color.js";
6
8
  import { jsx as _jsx } from "react/jsx-runtime";
7
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ var FormLabel = /*#__PURE__*/styled(FormLabelMui).withConfig({
11
+ displayName: "RadioGroupField__FormLabel",
12
+ componentId: "SD__sc-1udxviq-0"
13
+ })(["margin-bottom:8px;color:", ";font-weight:600;"], Color.Dark300);
14
+ var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
15
+ displayName: "RadioGroupField__FormHelperText",
16
+ componentId: "SD__sc-1udxviq-1"
17
+ })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
8
18
  export var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
9
19
  var {
10
20
  name,
@@ -9,7 +9,7 @@ export function overrideRadio(theme) {
9
9
  children: /*#__PURE__*/_jsx("circle", {
10
10
  cx: "12",
11
11
  cy: "12",
12
- r: "8.5",
12
+ r: "9",
13
13
  fill: Color.White,
14
14
  stroke: "currentColor"
15
15
  })
@@ -18,7 +18,7 @@ export function overrideRadio(theme) {
18
18
  children: [/*#__PURE__*/_jsx("circle", {
19
19
  cx: "12",
20
20
  cy: "12",
21
- r: "8.5",
21
+ r: "9",
22
22
  fill: "currentColor",
23
23
  stroke: "currentColor"
24
24
  }), /*#__PURE__*/_jsx("circle", {
@@ -32,8 +32,13 @@ export function overrideRadio(theme) {
32
32
  theme.overrides.MuiRadio = {
33
33
  root: {
34
34
  color: Color.Dark100,
35
- marginTop: theme.spacing(-0.625),
36
- marginBottom: theme.spacing(-0.625)
35
+ width: theme.spacing(3),
36
+ height: theme.spacing(3),
37
+ marginRight: theme.spacing(1),
38
+ marginLeft: theme.spacing(1),
39
+ marginTop: theme.spacing(0.5),
40
+ marginBottom: theme.spacing(0.5),
41
+ padding: 0
37
42
  },
38
43
  colorPrimary: {
39
44
  '&$checked$disabled': {
@@ -11,64 +11,70 @@ export var Color;
11
11
  Color["Black"] = "#000";
12
12
  Color["Black50"] = "rgba(0, 0, 0, 0.5)";
13
13
  Color["Black20"] = "rgba(0, 0, 0, 0.2)";
14
+ Color["Dark30"] = "rgba(143, 148, 158, 0.3)";
15
+ Color["Blue30"] = "rgba(0, 112, 245, 0.3)";
16
+ Color["Green30"] = "rgba(3, 135, 47, 0.3)";
17
+ Color["Red30"] = "rgba(229, 35, 13, 0.3)";
18
+ Color["Silver30"] = "rgba(225, 229, 234, 0.3)";
19
+ Color["Blue10"] = "rgba(0, 112, 245, 0.1)";
14
20
  Color["Grey100"] = "#8F949E";
15
21
  Color["Grey200"] = "#6A707C";
16
22
  Color["Grey300"] = "#5B6371";
17
23
  Color["Grey400"] = "#323C4E";
18
24
  Color["Grey450"] = "#222F44";
19
25
  Color["Grey500"] = "#192334";
20
- Color["Dark100"] = "#8F949E";
21
26
  Color["Dark200"] = "#6A707C";
22
- Color["Dark300"] = "#5B6371";
23
27
  Color["Dark400"] = "#323C4E";
24
28
  Color["Dark450"] = "#222F44";
25
- Color["Dark500"] = "#192334";
26
29
  Color["Silver100"] = "#F6F7F8";
27
- Color["Silver200"] = "#F3F5F8";
28
30
  Color["Silver300"] = "#E8ECF0";
29
- Color["Silver400"] = "#E1E5EA";
30
- Color["Silver500"] = "#C4CDD5";
31
- Color["Blue50"] = "#EBF4FF";
32
31
  Color["Blue75"] = "#CCE5FF";
33
32
  Color["Blue100"] = "#A8D1FF";
34
33
  Color["Blue200"] = "#66ADFF";
35
- Color["Blue300"] = "#0070F5";
36
34
  Color["Blue400"] = "#0063DB";
37
- Color["Blue500"] = "#0063DB";
38
- Color["Green50"] = "#ECF9EF";
39
35
  Color["Green75"] = "#C8F4D1";
40
36
  Color["Green100"] = "#90EAAE";
41
37
  Color["Green200"] = "#5DDA87";
42
- Color["Green300"] = "#03872F";
43
38
  Color["Green400"] = "#1E8F46";
44
- Color["Green500"] = "#007A29";
45
- Color["Purple50"] = "#EFEEFC";
46
39
  Color["Purple75"] = "#DCDBF5";
47
40
  Color["Purple100"] = "#CBC8EE";
48
41
  Color["Purple200"] = "#A7A1E8";
49
- Color["Purple300"] = "#6559CF";
50
42
  Color["Purple400"] = "#473ABB";
51
- Color["Purple500"] = "#473ABB";
52
- Color["Red50"] = "#FFEDEB";
53
43
  Color["Red75"] = "#FDD9D3";
54
44
  Color["Red100"] = "#FDC2BA";
55
45
  Color["Red200"] = "#FE988B";
56
- Color["Red300"] = "#E5230D";
57
46
  Color["Red400"] = "#D9210D";
58
- Color["Red500"] = "#C31909";
59
- Color["Teal50"] = "#E3F6FC";
60
47
  Color["Teal75"] = "#BEEDF9";
61
48
  Color["Teal100"] = "#91E3F8";
62
49
  Color["Teal200"] = "#61D3EF";
63
- Color["Teal300"] = "#007EAB";
64
50
  Color["Teal400"] = "#008DB8";
65
- Color["Teal500"] = "#00678A";
66
- Color["Yellow50"] = "#FFF7DC";
67
51
  Color["Yellow75"] = "#FFF1C2";
68
52
  Color["Yellow100"] = "#FFE494";
69
53
  Color["Yellow200"] = "#FFDC6B";
70
- Color["Yellow300"] = "#E8671C";
71
54
  Color["Yellow400"] = "#FFA91F";
55
+ Color["Dark100"] = "#8F949E";
56
+ Color["Dark300"] = "#5B6371";
57
+ Color["Dark500"] = "#192334";
58
+ Color["Silver200"] = "#F3F5F8";
59
+ Color["Silver400"] = "#E1E5EA";
60
+ Color["Silver500"] = "#C4CDD5";
61
+ Color["Blue50"] = "#EBF4FF";
62
+ Color["Blue300"] = "#0070F5";
63
+ Color["Blue500"] = "#0063DB";
64
+ Color["Green50"] = "#ECF9EF";
65
+ Color["Green300"] = "#03872F";
66
+ Color["Green500"] = "#007A29";
67
+ Color["Purple50"] = "#EFEEFC";
68
+ Color["Purple300"] = "#6559CF";
69
+ Color["Purple500"] = "#473ABB";
70
+ Color["Red50"] = "#FFEDEB";
71
+ Color["Red300"] = "#E5230D";
72
+ Color["Red500"] = "#C31909";
73
+ Color["Teal50"] = "#E3F6FC";
74
+ Color["Teal300"] = "#007EAB";
75
+ Color["Teal500"] = "#00678A";
76
+ Color["Yellow50"] = "#FFF7DC";
77
+ Color["Yellow300"] = "#E8671C";
72
78
  Color["Yellow500"] = "#B84807";
73
79
  })(Color || (Color = {}));
74
80
 
@@ -7,7 +7,7 @@ export function overrideTooltip(theme) {
7
7
  theme.overrides.MuiTooltip = {
8
8
  tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
9
9
  padding: theme.spacing(1, 1.5),
10
- backgroundColor: Color.Dark400
10
+ backgroundColor: Color.Dark500
11
11
  }),
12
12
  popperArrow: {
13
13
  '&[x-placement*="top"] $arrow': {
@@ -32,7 +32,7 @@ export function overrideTooltip(theme) {
32
32
  }
33
33
  },
34
34
  arrow: {
35
- color: Color.Dark400,
35
+ color: Color.Dark500,
36
36
  fontSize: theme.spacing(1)
37
37
  }
38
38
  };
@@ -365,6 +365,12 @@ declare enum Color {
365
365
  Black = "#000",
366
366
  Black50 = "rgba(0, 0, 0, 0.5)",
367
367
  Black20 = "rgba(0, 0, 0, 0.2)",
368
+ Dark30 = "rgba(143, 148, 158, 0.3)",
369
+ Blue30 = "rgba(0, 112, 245, 0.3)",
370
+ Green30 = "rgba(3, 135, 47, 0.3)",
371
+ Red30 = "rgba(229, 35, 13, 0.3)",
372
+ Silver30 = "rgba(225, 229, 234, 0.3)",
373
+ Blue10 = "rgba(0, 112, 245, 0.1)",
368
374
  /**@deprecated Use Dark100 */
369
375
  Grey100 = "#8F949E",
370
376
  /**@deprecated Use Dark200 */
@@ -377,86 +383,87 @@ declare enum Color {
377
383
  Grey450 = "#222F44",
378
384
  /**@deprecated Use Dark500 */
379
385
  Grey500 = "#192334",
380
- Dark100 = "#8F949E",
386
+ /** @deprecated */
381
387
  Dark200 = "#6A707C",
382
- Dark300 = "#5B6371",
383
- /**@deprecated */
388
+ /** @deprecated */
384
389
  Dark400 = "#323C4E",
385
- /**@deprecated */
390
+ /** @deprecated */
386
391
  Dark450 = "#222F44",
387
- Dark500 = "#192334",
388
- /**@deprecated */
392
+ /** @deprecated */
389
393
  Silver100 = "#F6F7F8",
390
- Silver200 = "#F3F5F8",
391
- /**@deprecated */
394
+ /** @deprecated */
392
395
  Silver300 = "#E8ECF0",
393
- Silver400 = "#E1E5EA",
394
- Silver500 = "#C4CDD5",
395
- Blue50 = "#EBF4FF",
396
396
  /** @deprecated */
397
397
  Blue75 = "#CCE5FF",
398
398
  /** @deprecated */
399
399
  Blue100 = "#A8D1FF",
400
400
  /** @deprecated */
401
401
  Blue200 = "#66ADFF",
402
- Blue300 = "#0070F5",
403
402
  /** @deprecated */
404
403
  Blue400 = "#0063DB",
405
- Blue500 = "#0063DB",
406
- Green50 = "#ECF9EF",
407
404
  /** @deprecated */
408
405
  Green75 = "#C8F4D1",
409
406
  /** @deprecated */
410
407
  Green100 = "#90EAAE",
411
408
  /** @deprecated */
412
409
  Green200 = "#5DDA87",
413
- Green300 = "#03872F",
414
410
  /** @deprecated */
415
411
  Green400 = "#1E8F46",
416
- Green500 = "#007A29",
417
- Purple50 = "#EFEEFC",
418
412
  /** @deprecated */
419
413
  Purple75 = "#DCDBF5",
420
414
  /** @deprecated */
421
415
  Purple100 = "#CBC8EE",
422
416
  /** @deprecated */
423
417
  Purple200 = "#A7A1E8",
424
- Purple300 = "#6559CF",
425
418
  /** @deprecated */
426
419
  Purple400 = "#473ABB",
427
- Purple500 = "#473ABB",
428
- Red50 = "#FFEDEB",
429
420
  /** @deprecated */
430
421
  Red75 = "#FDD9D3",
431
422
  /** @deprecated */
432
423
  Red100 = "#FDC2BA",
433
424
  /** @deprecated */
434
425
  Red200 = "#FE988B",
435
- Red300 = "#E5230D",
436
426
  /** @deprecated */
437
427
  Red400 = "#D9210D",
438
- Red500 = "#C31909",
439
- Teal50 = "#E3F6FC",
440
428
  /** @deprecated */
441
429
  Teal75 = "#BEEDF9",
442
430
  /** @deprecated */
443
431
  Teal100 = "#91E3F8",
444
432
  /** @deprecated */
445
433
  Teal200 = "#61D3EF",
446
- Teal300 = "#007EAB",
447
434
  /** @deprecated */
448
435
  Teal400 = "#008DB8",
449
- Teal500 = "#00678A",
450
- Yellow50 = "#FFF7DC",
451
436
  /** @deprecated */
452
437
  Yellow75 = "#FFF1C2",
453
438
  /** @deprecated */
454
439
  Yellow100 = "#FFE494",
455
440
  /** @deprecated */
456
441
  Yellow200 = "#FFDC6B",
457
- Yellow300 = "#E8671C",
458
442
  /** @deprecated */
459
443
  Yellow400 = "#FFA91F",
444
+ Dark100 = "#8F949E",
445
+ Dark300 = "#5B6371",
446
+ Dark500 = "#192334",
447
+ Silver200 = "#F3F5F8",
448
+ Silver400 = "#E1E5EA",
449
+ Silver500 = "#C4CDD5",
450
+ Blue50 = "#EBF4FF",
451
+ Blue300 = "#0070F5",
452
+ Blue500 = "#0063DB",
453
+ Green50 = "#ECF9EF",
454
+ Green300 = "#03872F",
455
+ Green500 = "#007A29",
456
+ Purple50 = "#EFEEFC",
457
+ Purple300 = "#6559CF",
458
+ Purple500 = "#473ABB",
459
+ Red50 = "#FFEDEB",
460
+ Red300 = "#E5230D",
461
+ Red500 = "#C31909",
462
+ Teal50 = "#E3F6FC",
463
+ Teal300 = "#007EAB",
464
+ Teal500 = "#00678A",
465
+ Yellow50 = "#FFF7DC",
466
+ Yellow300 = "#E8671C",
460
467
  Yellow500 = "#B84807"
461
468
  }
462
469
  declare type ColorProp = keyof typeof Color;