@superdispatch/ui 0.24.4 → 0.24.5
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/dist-node/index.js +17 -14
- package/dist-node/index.js.map +1 -1
- package/dist-src/pagination/PaginationOverrides.js +3 -3
- package/dist-src/snackbar/SnackbarContent.js +10 -8
- package/dist-src/switch/SwitchOverrides.js +4 -4
- package/dist-src/theme/Color.js +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-web/index.js +18 -15
- package/dist-web/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export function overridePagination(theme) {
|
|
|
3
3
|
var props = {};
|
|
4
4
|
var overrides = {
|
|
5
5
|
root: {
|
|
6
|
-
color: Color.
|
|
6
|
+
color: Color.Dark500
|
|
7
7
|
},
|
|
8
8
|
page: {
|
|
9
9
|
'&:hover': {
|
|
@@ -12,12 +12,12 @@ export function overridePagination(theme) {
|
|
|
12
12
|
'&$focusVisible': {
|
|
13
13
|
borderRadius: 4,
|
|
14
14
|
backgroundColor: Color.White,
|
|
15
|
-
border: "1px solid ".concat(Color.
|
|
15
|
+
border: "1px solid ".concat(Color.Blue30)
|
|
16
16
|
},
|
|
17
17
|
'&$selected': {
|
|
18
18
|
backgroundColor: Color.Silver400,
|
|
19
19
|
'&:hover, &$focusVisible': {
|
|
20
|
-
backgroundColor: Color.
|
|
20
|
+
backgroundColor: Color.Silver500
|
|
21
21
|
},
|
|
22
22
|
'&$disabled': {
|
|
23
23
|
color: Color.Dark100,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
4
4
|
_excluded2 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
5
5
|
import { Grid, IconButton, SnackbarContent as MuiSnackbarContent } from '@material-ui/core';
|
|
6
|
-
import { CheckCircle, Close,
|
|
6
|
+
import { CheckCircle, Close, Error } from '@material-ui/icons';
|
|
7
7
|
import { makeStyles } from '@material-ui/styles';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { forwardRef } from 'react';
|
|
@@ -14,11 +14,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
var useStyles = /*#__PURE__*/makeStyles(theme => ({
|
|
15
15
|
root: {
|
|
16
16
|
color: Color.White,
|
|
17
|
-
backgroundColor: Color.Dark500
|
|
18
|
-
'&$variantError': {
|
|
19
|
-
color: Color.White,
|
|
20
|
-
backgroundColor: Color.Red500
|
|
21
|
-
}
|
|
17
|
+
backgroundColor: Color.Dark500
|
|
22
18
|
},
|
|
23
19
|
action: {
|
|
24
20
|
paddingLeft: theme.spacing(1)
|
|
@@ -40,7 +36,13 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
|
|
|
40
36
|
color: Color.White40
|
|
41
37
|
}
|
|
42
38
|
},
|
|
43
|
-
variantError: {
|
|
39
|
+
variantError: {
|
|
40
|
+
color: Color.Red500,
|
|
41
|
+
background: Color.Red50,
|
|
42
|
+
'& $closeButton': {
|
|
43
|
+
color: Color.Red500
|
|
44
|
+
}
|
|
45
|
+
},
|
|
44
46
|
variantSuccess: {}
|
|
45
47
|
}), {
|
|
46
48
|
name: 'SD-SnackbarContent'
|
|
@@ -67,7 +69,7 @@ export var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
67
69
|
} = _useStyles,
|
|
68
70
|
styles = _objectWithoutProperties(_useStyles, _excluded2);
|
|
69
71
|
|
|
70
|
-
var Icon = variant === 'error' ?
|
|
72
|
+
var Icon = variant === 'error' ? Error : variant === 'success' ? CheckCircle : undefined;
|
|
71
73
|
return /*#__PURE__*/_jsx(MuiSnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
|
|
72
74
|
ref: ref,
|
|
73
75
|
classes: styles,
|
|
@@ -63,7 +63,7 @@ export function overrideSwitch(theme) {
|
|
|
63
63
|
'&:hover': {
|
|
64
64
|
backgroundColor: undefined,
|
|
65
65
|
'& + $track': {
|
|
66
|
-
backgroundColor: Color.
|
|
66
|
+
backgroundColor: Color.Blue500
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
},
|
|
@@ -71,16 +71,16 @@ export function overrideSwitch(theme) {
|
|
|
71
71
|
backgroundColor: Color.Silver500
|
|
72
72
|
},
|
|
73
73
|
'&$disabled + $track': {
|
|
74
|
-
backgroundColor: Color.
|
|
74
|
+
backgroundColor: Color.Dark30
|
|
75
75
|
},
|
|
76
76
|
'&$checked$disabled + $track': {
|
|
77
|
-
backgroundColor: Color.
|
|
77
|
+
backgroundColor: Color.Blue30
|
|
78
78
|
},
|
|
79
79
|
'&:hover + $track': {
|
|
80
80
|
backgroundColor: Color.Dark100
|
|
81
81
|
},
|
|
82
82
|
'&.Mui-focusVisible + $track': {
|
|
83
|
-
boxShadow: "0 0 0 3px ".concat(Color.
|
|
83
|
+
boxShadow: "0 0 0 3px ".concat(Color.Blue30)
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
package/dist-src/theme/Color.js
CHANGED
|
@@ -17,6 +17,7 @@ export var Color;
|
|
|
17
17
|
Color["Red30"] = "rgba(229, 35, 13, 0.3)";
|
|
18
18
|
Color["Silver30"] = "rgba(225, 229, 234, 0.3)";
|
|
19
19
|
Color["Blue10"] = "rgba(0, 112, 245, 0.1)";
|
|
20
|
+
Color["Red10"] = "rgba(195, 25, 9, 0.1)";
|
|
20
21
|
Color["Grey100"] = "#8F949E";
|
|
21
22
|
Color["Grey200"] = "#6A707C";
|
|
22
23
|
Color["Grey300"] = "#5B6371";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -371,6 +371,7 @@ declare enum Color {
|
|
|
371
371
|
Red30 = "rgba(229, 35, 13, 0.3)",
|
|
372
372
|
Silver30 = "rgba(225, 229, 234, 0.3)",
|
|
373
373
|
Blue10 = "rgba(0, 112, 245, 0.1)",
|
|
374
|
+
Red10 = "rgba(195, 25, 9, 0.1)",
|
|
374
375
|
/**@deprecated Use Dark100 */
|
|
375
376
|
Grey100 = "#8F949E",
|
|
376
377
|
/**@deprecated Use Dark200 */
|
package/dist-web/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { Button as Button$1, CircularProgress, ButtonGroup, Popover, MenuList, Toolbar, Grid, MenuItem, Typography, Menu, Divider, ButtonBase, Avatar, FormHelperText as FormHelperText$4, FormControlLabel as FormControlLabel$1, Checkbox, FormControl as FormControl$2, FormLabel as FormLabel$2, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, Card as Card$1, CardContent, IconButton, TextField, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, Portal, Snackbar as Snackbar$1, Slide, CssBaseline, createTheme, createGenerateClassName } from '@material-ui/core';
|
|
4
|
-
import { MoreHoriz, Info, Close,
|
|
4
|
+
import { MoreHoriz, Info, Close, Error, CheckCircle } from '@material-ui/icons';
|
|
5
5
|
import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
|
|
6
6
|
import { forwardRef, useState, useRef, useLayoutEffect, cloneElement, useMemo, useContext, createContext, Children, useCallback, useEffect } from 'react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -451,6 +451,7 @@ var Color;
|
|
|
451
451
|
Color["Red30"] = "rgba(229, 35, 13, 0.3)";
|
|
452
452
|
Color["Silver30"] = "rgba(225, 229, 234, 0.3)";
|
|
453
453
|
Color["Blue10"] = "rgba(0, 112, 245, 0.1)";
|
|
454
|
+
Color["Red10"] = "rgba(195, 25, 9, 0.1)";
|
|
454
455
|
Color["Grey100"] = "#8F949E";
|
|
455
456
|
Color["Grey200"] = "#6A707C";
|
|
456
457
|
Color["Grey300"] = "#5B6371";
|
|
@@ -2025,11 +2026,7 @@ var _excluded$m = ["action", "children", "onClose", "className", "classes", "var
|
|
|
2025
2026
|
var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
2026
2027
|
root: {
|
|
2027
2028
|
color: Color.White,
|
|
2028
|
-
backgroundColor: Color.Dark500
|
|
2029
|
-
'&$variantError': {
|
|
2030
|
-
color: Color.White,
|
|
2031
|
-
backgroundColor: Color.Red500
|
|
2032
|
-
}
|
|
2029
|
+
backgroundColor: Color.Dark500
|
|
2033
2030
|
},
|
|
2034
2031
|
action: {
|
|
2035
2032
|
paddingLeft: theme.spacing(1)
|
|
@@ -2051,7 +2048,13 @@ var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
|
2051
2048
|
color: Color.White40
|
|
2052
2049
|
}
|
|
2053
2050
|
},
|
|
2054
|
-
variantError: {
|
|
2051
|
+
variantError: {
|
|
2052
|
+
color: Color.Red500,
|
|
2053
|
+
background: Color.Red50,
|
|
2054
|
+
'& $closeButton': {
|
|
2055
|
+
color: Color.Red500
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2055
2058
|
variantSuccess: {}
|
|
2056
2059
|
}), {
|
|
2057
2060
|
name: 'SD-SnackbarContent'
|
|
@@ -2078,7 +2081,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2078
2081
|
} = _useStyles,
|
|
2079
2082
|
styles = _objectWithoutProperties(_useStyles, _excluded2$4);
|
|
2080
2083
|
|
|
2081
|
-
var Icon = variant === 'error' ?
|
|
2084
|
+
var Icon = variant === 'error' ? Error : variant === 'success' ? CheckCircle : undefined;
|
|
2082
2085
|
return /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
2083
2086
|
ref: ref,
|
|
2084
2087
|
classes: styles,
|
|
@@ -3139,7 +3142,7 @@ function overridePagination(theme) {
|
|
|
3139
3142
|
var props = {};
|
|
3140
3143
|
var overrides = {
|
|
3141
3144
|
root: {
|
|
3142
|
-
color: Color.
|
|
3145
|
+
color: Color.Dark500
|
|
3143
3146
|
},
|
|
3144
3147
|
page: {
|
|
3145
3148
|
'&:hover': {
|
|
@@ -3148,12 +3151,12 @@ function overridePagination(theme) {
|
|
|
3148
3151
|
'&$focusVisible': {
|
|
3149
3152
|
borderRadius: 4,
|
|
3150
3153
|
backgroundColor: Color.White,
|
|
3151
|
-
border: "1px solid ".concat(Color.
|
|
3154
|
+
border: "1px solid ".concat(Color.Blue30)
|
|
3152
3155
|
},
|
|
3153
3156
|
'&$selected': {
|
|
3154
3157
|
backgroundColor: Color.Silver400,
|
|
3155
3158
|
'&:hover, &$focusVisible': {
|
|
3156
|
-
backgroundColor: Color.
|
|
3159
|
+
backgroundColor: Color.Silver500
|
|
3157
3160
|
},
|
|
3158
3161
|
'&$disabled': {
|
|
3159
3162
|
color: Color.Dark100,
|
|
@@ -3350,7 +3353,7 @@ function overrideSwitch(theme) {
|
|
|
3350
3353
|
'&:hover': {
|
|
3351
3354
|
backgroundColor: undefined,
|
|
3352
3355
|
'& + $track': {
|
|
3353
|
-
backgroundColor: Color.
|
|
3356
|
+
backgroundColor: Color.Blue500
|
|
3354
3357
|
}
|
|
3355
3358
|
}
|
|
3356
3359
|
},
|
|
@@ -3358,16 +3361,16 @@ function overrideSwitch(theme) {
|
|
|
3358
3361
|
backgroundColor: Color.Silver500
|
|
3359
3362
|
},
|
|
3360
3363
|
'&$disabled + $track': {
|
|
3361
|
-
backgroundColor: Color.
|
|
3364
|
+
backgroundColor: Color.Dark30
|
|
3362
3365
|
},
|
|
3363
3366
|
'&$checked$disabled + $track': {
|
|
3364
|
-
backgroundColor: Color.
|
|
3367
|
+
backgroundColor: Color.Blue30
|
|
3365
3368
|
},
|
|
3366
3369
|
'&:hover + $track': {
|
|
3367
3370
|
backgroundColor: Color.Dark100
|
|
3368
3371
|
},
|
|
3369
3372
|
'&.Mui-focusVisible + $track': {
|
|
3370
|
-
boxShadow: "0 0 0 3px ".concat(Color.
|
|
3373
|
+
boxShadow: "0 0 0 3px ".concat(Color.Blue30)
|
|
3371
3374
|
}
|
|
3372
3375
|
}
|
|
3373
3376
|
};
|