@superdispatch/ui 0.33.0 → 0.35.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 (40) hide show
  1. package/dist-node/index.js +360 -420
  2. package/dist-node/index.js.map +1 -1
  3. package/dist-src/avatar/AvatarOverrides.js +3 -3
  4. package/dist-src/avatar-button/AvatarButton.js +7 -7
  5. package/dist-src/button/ButtonOverrides.js +17 -17
  6. package/dist-src/card-button/CardButton.js +17 -14
  7. package/dist-src/checkbox/CheckboxField.js +2 -2
  8. package/dist-src/checkbox/CheckboxGroudField.js +3 -3
  9. package/dist-src/checkbox/CheckboxOverrides.js +9 -9
  10. package/dist-src/chip/ChipOverrides.js +9 -9
  11. package/dist-src/description-list/DescriptionList.js +2 -2
  12. package/dist-src/drawer/DrawerActions.js +2 -2
  13. package/dist-src/drawer/DrawerTitle.js +2 -2
  14. package/dist-src/dropdown-button/DropdownButton.js +2 -2
  15. package/dist-src/icon-button/IconButtonOverrides.js +11 -11
  16. package/dist-src/link/LinkOverrides.js +9 -9
  17. package/dist-src/list/ListOverrides.js +3 -3
  18. package/dist-src/menu/MenuOverrides.js +2 -2
  19. package/dist-src/overflow-text/OverflowText.js +2 -2
  20. package/dist-src/pagination/PaginationOverrides.js +10 -10
  21. package/dist-src/paper/PaperOverrides.js +2 -2
  22. package/dist-src/radio/RadioField.js +2 -2
  23. package/dist-src/radio/RadioFieldCard.js +2 -2
  24. package/dist-src/radio/RadioGroupField.js +3 -3
  25. package/dist-src/radio/RadioOverrides.js +6 -6
  26. package/dist-src/snackbar/SnackbarContent.js +9 -9
  27. package/dist-src/svg-icon/SvgIconOverrides.js +2 -2
  28. package/dist-src/switch/SwitchOverrides.js +9 -9
  29. package/dist-src/tabs/TabsOverrides.js +4 -4
  30. package/dist-src/tag/Tag.js +23 -23
  31. package/dist-src/text-field/TextFieldOverrides.js +15 -15
  32. package/dist-src/theme/Color.js +176 -249
  33. package/dist-src/theme/GlobalStyles.js +3 -3
  34. package/dist-src/theme/ThemeProvider.js +19 -11
  35. package/dist-src/tooltip/TooltipOverrides.js +3 -3
  36. package/dist-src/typography/TypographyOverrides.js +3 -3
  37. package/dist-types/index.d.ts +19 -125
  38. package/dist-web/index.js +361 -423
  39. package/dist-web/index.js.map +1 -1
  40. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
- import { ColorV2 } from "../theme/Color.js";
2
+ import { ColorDynamic } from "../theme/Color.js";
3
3
  export function overrideAvatar(theme) {
4
4
  theme.overrides.MuiAvatar = {
5
5
  root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
@@ -12,8 +12,8 @@ export function overrideAvatar(theme) {
12
12
  }
13
13
  }),
14
14
  colorDefault: {
15
- color: ColorV2.Dark300,
16
- backgroundColor: ColorV2.Silver300
15
+ color: ColorDynamic.Dark300,
16
+ backgroundColor: ColorDynamic.Silver300
17
17
  }
18
18
  };
19
19
  }
@@ -6,7 +6,7 @@ import { Avatar, ButtonBase, CircularProgress } from '@material-ui/core';
6
6
  import { makeStyles } from '@material-ui/styles';
7
7
  import clsx from 'clsx';
8
8
  import { forwardRef } from 'react';
9
- import { ColorV2 } from "../theme/Color.js";
9
+ import { ColorDynamic } from "../theme/Color.js";
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  var useStyles = /*#__PURE__*/makeStyles(theme => {
12
12
  var sm = theme.breakpoints.up('sm');
@@ -15,19 +15,19 @@ var useStyles = /*#__PURE__*/makeStyles(theme => {
15
15
  borderRadius: '50%',
16
16
  '&[disabled], &[aria-busy="true"]': {
17
17
  '& > $overlay': {
18
- backgroundColor: ColorV2.White50
18
+ backgroundColor: ColorDynamic.White50
19
19
  }
20
20
  },
21
21
  '&:not([disabled])[aria-busy="false"]': {
22
22
  '&:hover, &:focus': {
23
23
  '&$withIcon > $overlay': {
24
- backgroundColor: ColorV2.Dark50,
24
+ backgroundColor: ColorDynamic.Dark50,
25
25
  '& > svg': {
26
26
  opacity: 1
27
27
  }
28
28
  },
29
29
  '&:not($withIcon) > $overlay': {
30
- backgroundColor: ColorV2.Black20
30
+ backgroundColor: ColorDynamic.Black20
31
31
  }
32
32
  }
33
33
  }
@@ -42,11 +42,11 @@ var useStyles = /*#__PURE__*/makeStyles(theme => {
42
42
  alignItems: 'center',
43
43
  justifyContent: 'center',
44
44
  borderRadius: '50%',
45
- backgroundColor: ColorV2.Transparent,
45
+ backgroundColor: ColorDynamic.Transparent,
46
46
  transition: theme.transitions.create('background-color'),
47
47
  '& > svg': {
48
48
  opacity: 0,
49
- color: ColorV2.White,
49
+ color: ColorDynamic.White,
50
50
  transition: theme.transitions.create('opacity'),
51
51
  fontSize: theme.spacing(3),
52
52
  [sm]: {
@@ -58,7 +58,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => {
58
58
  top: 0,
59
59
  left: 0,
60
60
  position: 'absolute',
61
- color: ColorV2.Blue500,
61
+ color: ColorDynamic.Blue500,
62
62
  fontSize: theme.spacing(5),
63
63
  [sm]: {
64
64
  fontSize: theme.spacing(4)
@@ -1,14 +1,14 @@
1
- import { ColorV2 } from "../theme/Color.js";
1
+ import { ColorDynamic } from "../theme/Color.js";
2
2
  function outlineShadow() {
3
3
  var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
4
- var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ColorV2.Transparent;
4
+ var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ColorDynamic.Transparent;
5
5
  return "0 0 0 ".concat(size, "px ").concat(color);
6
6
  }
7
7
  function textVariant(text, outline, background, progress) {
8
8
  return {
9
9
  color: text,
10
10
  boxShadow: outlineShadow(),
11
- backgroundColor: ColorV2.Transparent,
11
+ backgroundColor: ColorDynamic.Transparent,
12
12
  '&:hover': {
13
13
  backgroundColor: background
14
14
  },
@@ -22,7 +22,7 @@ function textVariant(text, outline, background, progress) {
22
22
  '&$disabled': {
23
23
  color: outline,
24
24
  boxShadow: outlineShadow(),
25
- backgroundColor: ColorV2.Transparent
25
+ backgroundColor: ColorDynamic.Transparent
26
26
  },
27
27
  '&$disabled[aria-busy="true"]': {
28
28
  color: progress
@@ -30,7 +30,7 @@ function textVariant(text, outline, background, progress) {
30
30
  };
31
31
  }
32
32
  function outlinedBorder(borderColor) {
33
- var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ColorV2.Transparent;
33
+ var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ColorDynamic.Transparent;
34
34
  return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
35
35
  }
36
36
  function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
@@ -160,11 +160,11 @@ export function overrideButton(theme) {
160
160
  },
161
161
  text: {
162
162
  padding: undefined,
163
- '&[data-color="error"]': textVariant(ColorV2.Red300, ColorV2.Red100, ColorV2.Red50, ColorV2.Red200),
164
- '&[data-color="success"]': textVariant(ColorV2.Green300, ColorV2.Green100, ColorV2.Green50, ColorV2.Green200),
165
- '&[data-color="white"]': textVariant(ColorV2.White, ColorV2.White50, ColorV2.White10, ColorV2.White50)
163
+ '&[data-color="error"]': textVariant(ColorDynamic.Red300, ColorDynamic.Red100, ColorDynamic.Red50, ColorDynamic.Red200),
164
+ '&[data-color="success"]': textVariant(ColorDynamic.Green300, ColorDynamic.Green100, ColorDynamic.Green50, ColorDynamic.Green200),
165
+ '&[data-color="white"]': textVariant(ColorDynamic.White, ColorDynamic.White50, ColorDynamic.White10, ColorDynamic.White50)
166
166
  },
167
- textPrimary: textVariant(ColorV2.Blue300, ColorV2.Blue100, ColorV2.Blue50, ColorV2.Blue200),
167
+ textPrimary: textVariant(ColorDynamic.Blue300, ColorDynamic.Blue100, ColorDynamic.Blue50, ColorDynamic.Blue200),
168
168
  textSizeSmall: {
169
169
  padding: undefined,
170
170
  fontSize: undefined
@@ -179,11 +179,11 @@ export function overrideButton(theme) {
179
179
  '&$disabled': {
180
180
  border: undefined
181
181
  },
182
- '&[data-color="error"]': outlinedVariant(ColorV2.Red300, ColorV2.Red300, ColorV2.Red100, ColorV2.Red100, ColorV2.Red300, ColorV2.Red300, ColorV2.Red100, ColorV2.Red50, ColorV2.Red300, ColorV2.White),
183
- '&[data-color="success"]': outlinedVariant(ColorV2.Green300, ColorV2.Green300, ColorV2.Green100, ColorV2.Green100, ColorV2.Green300, ColorV2.Green300, ColorV2.Green100, ColorV2.Green50, ColorV2.Green300, ColorV2.White),
184
- '&[data-color="white"]': outlinedVariant(ColorV2.White, ColorV2.White50, ColorV2.White50, ColorV2.White40, ColorV2.White, ColorV2.White50, ColorV2.White40, ColorV2.White10, ColorV2.White50, ColorV2.Transparent)
182
+ '&[data-color="error"]': outlinedVariant(ColorDynamic.Red300, ColorDynamic.Red300, ColorDynamic.Red100, ColorDynamic.Red100, ColorDynamic.Red300, ColorDynamic.Red300, ColorDynamic.Red100, ColorDynamic.Red50, ColorDynamic.Red300, ColorDynamic.White),
183
+ '&[data-color="success"]': outlinedVariant(ColorDynamic.Green300, ColorDynamic.Green300, ColorDynamic.Green100, ColorDynamic.Green100, ColorDynamic.Green300, ColorDynamic.Green300, ColorDynamic.Green100, ColorDynamic.Green50, ColorDynamic.Green300, ColorDynamic.White),
184
+ '&[data-color="white"]': outlinedVariant(ColorDynamic.White, ColorDynamic.White50, ColorDynamic.White50, ColorDynamic.White40, ColorDynamic.White, ColorDynamic.White50, ColorDynamic.White40, ColorDynamic.White10, ColorDynamic.White50, ColorDynamic.Transparent)
185
185
  },
186
- outlinedPrimary: outlinedVariant(ColorV2.Dark500, ColorV2.Silver500, ColorV2.Silver500, ColorV2.Silver400, ColorV2.Blue300, ColorV2.Blue300, ColorV2.Blue100, ColorV2.Blue50, ColorV2.Dark200, ColorV2.White),
186
+ outlinedPrimary: outlinedVariant(ColorDynamic.Dark500, ColorDynamic.Silver500, ColorDynamic.Silver500, ColorDynamic.Silver400, ColorDynamic.Blue300, ColorDynamic.Blue300, ColorDynamic.Blue100, ColorDynamic.Blue50, ColorDynamic.Dark200, ColorDynamic.White),
187
187
  outlinedSizeSmall: {
188
188
  padding: undefined,
189
189
  fontSize: undefined
@@ -217,11 +217,11 @@ export function overrideButton(theme) {
217
217
  boxShadow: undefined,
218
218
  backgroundColor: undefined
219
219
  },
220
- '&[data-color="error"]': containedVariant(ColorV2.White, ColorV2.Red300, ColorV2.Red100, ColorV2.Red500, ColorV2.White, ColorV2.Red100),
221
- '&[data-color="success"]': containedVariant(ColorV2.White, ColorV2.Green300, ColorV2.Green100, ColorV2.Green500, ColorV2.White, ColorV2.Green100),
222
- '&[data-color="white"]': containedVariant(ColorV2.White, ColorV2.White20, ColorV2.White40, ColorV2.White40, ColorV2.White50, ColorV2.White08)
220
+ '&[data-color="error"]': containedVariant(ColorDynamic.White, ColorDynamic.Red300, ColorDynamic.Red100, ColorDynamic.Red500, ColorDynamic.White, ColorDynamic.Red100),
221
+ '&[data-color="success"]': containedVariant(ColorDynamic.White, ColorDynamic.Green300, ColorDynamic.Green100, ColorDynamic.Green500, ColorDynamic.White, ColorDynamic.Green100),
222
+ '&[data-color="white"]': containedVariant(ColorDynamic.White, ColorDynamic.White20, ColorDynamic.White40, ColorDynamic.White40, ColorDynamic.White50, ColorDynamic.White08)
223
223
  },
224
- containedPrimary: containedVariant(ColorV2.White, ColorV2.Blue300, ColorV2.Blue100, ColorV2.Blue500, ColorV2.White, ColorV2.Blue100),
224
+ containedPrimary: containedVariant(ColorDynamic.White, ColorDynamic.Blue300, ColorDynamic.Blue100, ColorDynamic.Blue500, ColorDynamic.White, ColorDynamic.Blue100),
225
225
  containedSizeSmall: {
226
226
  padding: undefined,
227
227
  fontSize: undefined
@@ -5,7 +5,7 @@ import { ButtonBase, Typography } from '@material-ui/core';
5
5
  import { makeStyles } from '@material-ui/styles';
6
6
  import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
- import { ColorV2 } from "../theme/Color.js";
8
+ import { ColorDynamic } from "../theme/Color.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
10
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
11
11
  root: {
@@ -14,7 +14,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
14
14
  alignItems: 'center',
15
15
  flexDirection: 'column',
16
16
  justifyContent: 'center',
17
- backgroundColor: ColorV2.White,
17
+ backgroundColor: ColorDynamic.White,
18
18
  border: '1px dashed',
19
19
  borderRadius: theme.spacing(0.5),
20
20
  padding: theme.spacing(1.5),
@@ -22,27 +22,30 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
22
22
  transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
23
23
  },
24
24
  disabled: {
25
- color: ColorV2.Dark200,
26
- borderColor: ColorV2.Silver500,
27
- backgroundColor: ColorV2.Silver100
25
+ color: ColorDynamic.Dark100,
26
+ borderColor: ColorDynamic.Silver500,
27
+ backgroundColor: ColorDynamic.Silver400Alpha30,
28
+ '& $hint': {
29
+ color: ColorDynamic.Dark100
30
+ }
28
31
  },
29
32
  error: {
30
- color: ColorV2.Red500,
31
- borderColor: ColorV2.Red500,
32
- backgroundColor: ColorV2.Red50,
33
+ color: ColorDynamic.Red500,
34
+ borderColor: ColorDynamic.Red500,
35
+ backgroundColor: ColorDynamic.Red50,
33
36
  '&:focus': {
34
- backgroundColor: ColorV2.Red75
37
+ backgroundColor: ColorDynamic.Red300Aplha20
35
38
  }
36
39
  },
37
40
  primary: {
38
- color: ColorV2.Blue500,
39
- borderColor: ColorV2.Silver500,
41
+ color: ColorDynamic.Blue500,
42
+ borderColor: ColorDynamic.Silver500,
40
43
  '&:focus': {
41
- backgroundColor: ColorV2.Blue50
44
+ backgroundColor: ColorDynamic.Blue50
42
45
  },
43
46
  '&:hover, &:active': {
44
- borderColor: ColorV2.Blue300,
45
- backgroundColor: ColorV2.Blue50
47
+ borderColor: ColorDynamic.Blue300,
48
+ backgroundColor: ColorDynamic.Blue50
46
49
  }
47
50
  },
48
51
  sizeSmall: {
@@ -4,7 +4,7 @@ var _excluded = ["label", "error", "checked", "onBlur", "onChange", "helperText"
4
4
  import { Checkbox, FormControl as FormControlMui, FormControlLabel, FormHelperText as FormHelperTextMui } from '@material-ui/core';
5
5
  import { forwardRef } from 'react';
6
6
  import styled from 'styled-components';
7
- import { ColorV2 } from "../theme/Color.js";
7
+ import { ColorDynamic } from "../theme/Color.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  var FormControl = /*#__PURE__*/styled(FormControlMui).withConfig({
10
10
  displayName: "CheckboxField__FormControl",
@@ -13,7 +13,7 @@ var FormControl = /*#__PURE__*/styled(FormControlMui).withConfig({
13
13
  var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
14
14
  displayName: "CheckboxField__FormHelperText",
15
15
  componentId: "SD__sc-1wxu0g6-1"
16
- })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], ColorV2.Dark300, ColorV2.Red500);
16
+ })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], ColorDynamic.Dark300, ColorDynamic.Red500);
17
17
  export var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
18
18
  var {
19
19
  label,
@@ -4,16 +4,16 @@ var _excluded = ["FormGroupProps", "label", "FormLabelProps", "helperText", "For
4
4
  import { FormControl, FormGroup, FormHelperText as FormHelperTextMui, FormLabel as FormLabelMui } from '@material-ui/core';
5
5
  import { forwardRef } from 'react';
6
6
  import styled from 'styled-components';
7
- import { ColorV2 } from "../theme/Color.js";
7
+ import { ColorDynamic } from "../theme/Color.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  var FormLabel = /*#__PURE__*/styled(FormLabelMui).withConfig({
10
10
  displayName: "CheckboxGroudField__FormLabel",
11
11
  componentId: "SD__sc-1lihyfy-0"
12
- })(["margin-bottom:8px;color:", ";font-weight:600;"], ColorV2.Dark300);
12
+ })(["margin-bottom:8px;color:", ";font-weight:600;"], ColorDynamic.Dark300);
13
13
  var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
14
14
  displayName: "CheckboxGroudField__FormHelperText",
15
15
  componentId: "SD__sc-1lihyfy-1"
16
- })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], ColorV2.Dark300, ColorV2.Red500);
16
+ })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], ColorDynamic.Dark300, ColorDynamic.Red500);
17
17
  export var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
18
18
  var {
19
19
  FormGroupProps: formGroupProps,
@@ -1,5 +1,5 @@
1
1
  import { SvgIcon } from '@material-ui/core';
2
- import { ColorV2 } from "../theme/Color.js";
2
+ import { ColorDynamic } from "../theme/Color.js";
3
3
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  export function overrideCheckbox(theme) {
5
5
  theme.props.MuiCheckbox = {
@@ -10,7 +10,7 @@ export function overrideCheckbox(theme) {
10
10
  height: "17",
11
11
  x: "3.5",
12
12
  y: "3.5",
13
- fill: ColorV2.White,
13
+ fill: ColorDynamic.White,
14
14
  stroke: "currentColor",
15
15
  rx: "1.5"
16
16
  })
@@ -24,7 +24,7 @@ export function overrideCheckbox(theme) {
24
24
  fill: "currentColor",
25
25
  rx: "2"
26
26
  }), /*#__PURE__*/_jsx("path", {
27
- fill: ColorV2.White,
27
+ fill: ColorDynamic.White,
28
28
  d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
29
29
  })]
30
30
  }),
@@ -37,14 +37,14 @@ export function overrideCheckbox(theme) {
37
37
  fill: "currentIcon",
38
38
  rx: "2"
39
39
  }), /*#__PURE__*/_jsx("path", {
40
- fill: ColorV2.White,
40
+ fill: ColorDynamic.White,
41
41
  d: "M7 11h10v2H7v-2z"
42
42
  })]
43
43
  })
44
44
  };
45
45
  theme.overrides.MuiCheckbox = {
46
46
  root: {
47
- color: ColorV2.Dark100,
47
+ color: ColorDynamic.Dark100,
48
48
  width: theme.spacing(3),
49
49
  height: theme.spacing(3),
50
50
  marginRight: theme.spacing(1),
@@ -53,7 +53,7 @@ export function overrideCheckbox(theme) {
53
53
  marginBottom: theme.spacing(0.5),
54
54
  padding: 0,
55
55
  '&:hover': {
56
- backgroundColor: ColorV2.Blue10
56
+ backgroundColor: ColorDynamic.Blue10
57
57
  },
58
58
  '&.MuiButtonBase-root': {
59
59
  borderRadius: theme.spacing(0.5)
@@ -61,11 +61,11 @@ export function overrideCheckbox(theme) {
61
61
  },
62
62
  colorPrimary: {
63
63
  '&$checked$disabled': {
64
- color: ColorV2.Silver500
64
+ color: ColorDynamic.Silver500
65
65
  },
66
66
  '&:hover:not($checked)': {
67
- color: ColorV2.Dark100,
68
- backgroundColor: ColorV2.Blue10
67
+ color: ColorDynamic.Dark100,
68
+ backgroundColor: ColorDynamic.Blue10
69
69
  }
70
70
  }
71
71
  };
@@ -1,6 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
2
  import { SvgIcon } from '@material-ui/core';
3
- import { ColorV2 } from "../theme/Color.js";
3
+ import { ColorDynamic } from "../theme/Color.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  export function overrideChip(theme) {
6
6
  var sm = theme.breakpoints.up('sm');
@@ -22,10 +22,10 @@ export function overrideChip(theme) {
22
22
  color: undefined,
23
23
  height: undefined,
24
24
  borderRadius: 4,
25
- backgroundColor: ColorV2.Silver200,
25
+ backgroundColor: ColorDynamic.Silver200,
26
26
  '&$disabled': {
27
27
  opacity: undefined,
28
- color: ColorV2.Dark100
28
+ color: ColorDynamic.Dark100
29
29
  }
30
30
  }),
31
31
  sizeSmall: {
@@ -47,16 +47,16 @@ export function overrideChip(theme) {
47
47
  boxShadow: undefined
48
48
  },
49
49
  '&:focus': {
50
- boxShadow: "0 0 0 2px ".concat(ColorV2.Dark30)
50
+ boxShadow: "0 0 0 2px ".concat(ColorDynamic.Dark30)
51
51
  },
52
52
  '&:active, &:hover': {
53
- backgroundColor: ColorV2.Silver400
53
+ backgroundColor: ColorDynamic.Silver400
54
54
  }
55
55
  },
56
56
  deletable: {
57
57
  '&:focus': {
58
58
  backgroundColor: undefined,
59
- boxShadow: "0 0 0 2px ".concat(ColorV2.Silver400)
59
+ boxShadow: "0 0 0 2px ".concat(ColorDynamic.Silver400)
60
60
  }
61
61
  },
62
62
  deleteIcon: {
@@ -66,12 +66,12 @@ export function overrideChip(theme) {
66
66
  transition: theme.transitions.create('background-color'),
67
67
  '&:active, &:hover, &:focus': {
68
68
  '& > svg': {
69
- backgroundColor: ColorV2.Silver400
69
+ backgroundColor: ColorDynamic.Silver400
70
70
  }
71
71
  },
72
72
  '& > svg': {
73
73
  borderRadius: '50%',
74
- color: ColorV2.Dark100,
74
+ color: ColorDynamic.Dark100,
75
75
  fontSize: '1em'
76
76
  }
77
77
  },
@@ -86,7 +86,7 @@ export function overrideChip(theme) {
86
86
  }
87
87
  },
88
88
  icon: {
89
- color: ColorV2.Dark100,
89
+ color: ColorDynamic.Dark100,
90
90
  fontSize: '1em',
91
91
  marginRight: undefined
92
92
  },
@@ -6,7 +6,7 @@ import { makeStyles } from '@material-ui/styles';
6
6
  import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
8
  import { OverflowText } from "../overflow-text/OverflowText.js";
9
- import { ColorV2 } from "../theme/Color.js";
9
+ import { ColorDynamic } from "../theme/Color.js";
10
10
  import { isEmptyReactNode } from "../utils/isEmptyReactNode.js";
11
11
  import { useUID } from "../utils/useUID.js";
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -34,7 +34,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
34
34
  display: 'inline-flex',
35
35
  marginRight: theme.spacing(1),
36
36
  '& > .MuiSvgIcon-root': {
37
- color: ColorV2.Dark100,
37
+ color: ColorDynamic.Dark100,
38
38
  fontSize: theme.spacing(3),
39
39
  [theme.breakpoints.up('sm')]: {
40
40
  fontSize: theme.spacing(2)
@@ -5,7 +5,7 @@ import { AppBar, Toolbar } from '@material-ui/core';
5
5
  import { makeStyles } from '@material-ui/styles';
6
6
  import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
- import { ColorV2 } from "../theme/Color.js";
8
+ import { ColorDynamic } from "../theme/Color.js";
9
9
  import { VisibilityObserver } from "../utils/VisibilityObserver.js";
10
10
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
@@ -18,7 +18,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
18
18
  borderBottom: 'none',
19
19
  transition: theme.transitions.create(['border-color']),
20
20
  '&:not($appBarSticky)': {
21
- borderTopColor: ColorV2.Transparent
21
+ borderTopColor: ColorDynamic.Transparent
22
22
  }
23
23
  }
24
24
  },
@@ -5,7 +5,7 @@ import { AppBar, Grid, Toolbar, Typography } from '@material-ui/core';
5
5
  import { makeStyles } from '@material-ui/styles';
6
6
  import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
- import { ColorV2 } from "../theme/Color.js";
8
+ import { ColorDynamic } from "../theme/Color.js";
9
9
  import { VisibilityObserver } from "../utils/VisibilityObserver.js";
10
10
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
11
11
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
@@ -16,7 +16,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
16
16
  borderRight: 'none',
17
17
  transition: theme.transitions.create(['border-color']),
18
18
  '&:not($appBarSticky)': {
19
- borderBottomColor: ColorV2.Transparent
19
+ borderBottomColor: ColorDynamic.Transparent
20
20
  }
21
21
  }
22
22
  },
@@ -5,7 +5,7 @@ import { ButtonGroup, MenuList, Popover } from '@material-ui/core';
5
5
  import * as React from 'react';
6
6
  import { forwardRef } from 'react';
7
7
  import styled from 'styled-components';
8
- import { ColorV2, mergeRefs, useUID } from "../index.js";
8
+ import { ColorDynamic, mergeRefs, useUID } from "../index.js";
9
9
  import { Button } from "../button/Button.js";
10
10
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
11
11
  function CaretDownIcon() {
@@ -24,7 +24,7 @@ var CaretButton = /*#__PURE__*/styled(Button).withConfig({
24
24
  var {
25
25
  variant
26
26
  } = _ref;
27
- return variant === 'contained' && "border-left: 1px solid ".concat(ColorV2.Blue500);
27
+ return variant === 'contained' && "border-left: 1px solid ".concat(ColorDynamic.Blue500);
28
28
  });
29
29
  export var DropdownButton = /*#__PURE__*/forwardRef((_ref2, ref) => {
30
30
  var _anchorRef$current2;
@@ -1,37 +1,37 @@
1
- import { ColorV2 } from "../theme/Color.js";
1
+ import { ColorDynamic } from "../theme/Color.js";
2
2
  export function overrideIconButton(theme) {
3
3
  theme.overrides.MuiIconButton = {
4
4
  root: {
5
- color: ColorV2.Dark100,
6
- backgroundColor: ColorV2.Transparent,
5
+ color: ColorDynamic.Dark100,
6
+ backgroundColor: ColorDynamic.Transparent,
7
7
  transition: theme.transitions.create(['color', 'background-color'], {
8
8
  duration: theme.transitions.duration.short
9
9
  }),
10
10
  '&:hover': {
11
- backgroundColor: ColorV2.Transparent
11
+ backgroundColor: ColorDynamic.Transparent
12
12
  },
13
13
  '&:active': {
14
- color: ColorV2.Dark500
14
+ color: ColorDynamic.Dark500
15
15
  },
16
16
  '&:hover ': {
17
- color: ColorV2.Dark300
17
+ color: ColorDynamic.Dark300
18
18
  },
19
19
  '&:focus': {
20
- backgroundColor: ColorV2.Silver400
20
+ backgroundColor: ColorDynamic.Silver400
21
21
  },
22
22
  '&$disabled': {
23
- color: ColorV2.Silver500
23
+ color: ColorDynamic.Silver500
24
24
  }
25
25
  },
26
26
  colorPrimary: {
27
27
  '&:active': {
28
- color: ColorV2.Blue500
28
+ color: ColorDynamic.Blue500
29
29
  },
30
30
  '&:hover ': {
31
- color: ColorV2.Blue300
31
+ color: ColorDynamic.Blue300
32
32
  },
33
33
  '&:focus': {
34
- backgroundColor: ColorV2.Blue50
34
+ backgroundColor: ColorDynamic.Blue50
35
35
  }
36
36
  },
37
37
  edgeEnd: {
@@ -1,4 +1,4 @@
1
- import { ColorV2 } from "../theme/Color.js";
1
+ import { ColorDynamic } from "../theme/Color.js";
2
2
  function line(color) {
3
3
  return "linear-gradient(to right, ".concat(color, " 0%, ").concat(color, " 100%)");
4
4
  }
@@ -12,21 +12,21 @@ export function overrideLink(theme) {
12
12
  backgroundSize: '100% 1px',
13
13
  backgroundRepeat: 'repeat-x',
14
14
  backgroundPosition: '0 100%',
15
- backgroundColor: ColorV2.Transparent,
15
+ backgroundColor: ColorDynamic.Transparent,
16
16
  '&:focus': {
17
17
  outline: 'none'
18
18
  },
19
19
  '&:disabled': {
20
- color: ColorV2.Dark100,
21
- backgroundImage: line(ColorV2.Silver500),
20
+ color: ColorDynamic.Dark100,
21
+ backgroundImage: line(ColorDynamic.Silver500),
22
22
  '&:focus, &:hover, &:active': {
23
- color: ColorV2.Dark100,
24
- backgroundImage: line(ColorV2.Silver500)
23
+ color: ColorDynamic.Dark100,
24
+ backgroundImage: line(ColorDynamic.Silver500)
25
25
  }
26
26
  },
27
27
  '&.MuiLink-underlineAlways': {
28
28
  textDecoration: 'none',
29
- backgroundImage: line(ColorV2.Silver500),
29
+ backgroundImage: line(ColorDynamic.Silver500),
30
30
  '&:hover, &:active': {
31
31
  backgroundImage: line('currentColor')
32
32
  }
@@ -53,8 +53,8 @@ export function overrideLink(theme) {
53
53
  },
54
54
  '&.MuiTypography-colorTextPrimary, &.MuiTypography-colorTextSecondary': {
55
55
  '&:focus, &:hover, &:active': {
56
- color: ColorV2.Blue500,
57
- backgroundImage: line(ColorV2.Blue500)
56
+ color: ColorDynamic.Blue500,
57
+ backgroundImage: line(ColorDynamic.Blue500)
58
58
  }
59
59
  }
60
60
  },
@@ -1,12 +1,12 @@
1
- import { ColorV2 } from "../theme/Color.js";
1
+ import { ColorDynamic } from "../theme/Color.js";
2
2
  export function overrideList(theme) {
3
3
  theme.overrides.MuiListItem = {
4
4
  root: {
5
5
  '&$selected, &$selected:hover': {
6
- backgroundColor: ColorV2.Blue50
6
+ backgroundColor: ColorDynamic.Blue50
7
7
  },
8
8
  '& .MuiTouchRipple-root': {
9
- color: ColorV2.Blue100
9
+ color: ColorDynamic.Blue100
10
10
  }
11
11
  }
12
12
  };
@@ -1,5 +1,5 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
- import { ColorV2 } from "../theme/Color.js";
2
+ import { ColorDynamic } from "../theme/Color.js";
3
3
  export function overrideMenu(theme) {
4
4
  theme.props.MuiMenu = {
5
5
  getContentAnchorEl: null,
@@ -14,7 +14,7 @@ export function overrideMenu(theme) {
14
14
  };
15
15
  theme.overrides.MuiMenu = {
16
16
  paper: {
17
- border: "1px solid ".concat(ColorV2.Silver400)
17
+ border: "1px solid ".concat(ColorDynamic.Silver400)
18
18
  }
19
19
  };
20
20
  theme.overrides.MuiMenuItem = {
@@ -6,7 +6,7 @@ import { Tooltip, Typography } from '@material-ui/core';
6
6
  import { makeStyles } from '@material-ui/styles';
7
7
  import clsx from 'clsx';
8
8
  import { forwardRef, useState } from 'react';
9
- import { ColorV2 } from "../theme/Color.js";
9
+ import { ColorDynamic } from "../theme/Color.js";
10
10
  import { VisibilityObserver } from "../utils/VisibilityObserver.js";
11
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
@@ -16,7 +16,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
16
16
  transition: theme.transitions.create('border'),
17
17
  '&$truncated': {
18
18
  cursor: 'pointer',
19
- borderBottomColor: ColorV2.Silver500
19
+ borderBottomColor: ColorDynamic.Silver500
20
20
  }
21
21
  },
22
22
  truncated: {},