@superdispatch/ui 0.24.3 → 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 +29 -17
- 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/text-field/TextFieldOverrides.js +12 -3
- package/dist-src/theme/Color.js +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-web/index.js +30 -18
- package/dist-web/index.js.map +1 -1
- package/package.json +1 -1
package/dist-node/index.js
CHANGED
|
@@ -456,6 +456,7 @@ if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName =
|
|
|
456
456
|
Color["Red30"] = "rgba(229, 35, 13, 0.3)";
|
|
457
457
|
Color["Silver30"] = "rgba(225, 229, 234, 0.3)";
|
|
458
458
|
Color["Blue10"] = "rgba(0, 112, 245, 0.1)";
|
|
459
|
+
Color["Red10"] = "rgba(195, 25, 9, 0.1)";
|
|
459
460
|
Color["Grey100"] = "#8F949E";
|
|
460
461
|
Color["Grey200"] = "#6A707C";
|
|
461
462
|
Color["Grey300"] = "#5B6371";
|
|
@@ -2030,11 +2031,7 @@ var _excluded$m = ["action", "children", "onClose", "className", "classes", "var
|
|
|
2030
2031
|
var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
2031
2032
|
root: {
|
|
2032
2033
|
color: exports.Color.White,
|
|
2033
|
-
backgroundColor: exports.Color.Dark500
|
|
2034
|
-
'&$variantError': {
|
|
2035
|
-
color: exports.Color.White,
|
|
2036
|
-
backgroundColor: exports.Color.Red500
|
|
2037
|
-
}
|
|
2034
|
+
backgroundColor: exports.Color.Dark500
|
|
2038
2035
|
},
|
|
2039
2036
|
action: {
|
|
2040
2037
|
paddingLeft: theme.spacing(1)
|
|
@@ -2056,7 +2053,13 @@ var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
|
2056
2053
|
color: exports.Color.White40
|
|
2057
2054
|
}
|
|
2058
2055
|
},
|
|
2059
|
-
variantError: {
|
|
2056
|
+
variantError: {
|
|
2057
|
+
color: exports.Color.Red500,
|
|
2058
|
+
background: exports.Color.Red50,
|
|
2059
|
+
'& $closeButton': {
|
|
2060
|
+
color: exports.Color.Red500
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
2060
2063
|
variantSuccess: {}
|
|
2061
2064
|
}), {
|
|
2062
2065
|
name: 'SD-SnackbarContent'
|
|
@@ -2083,7 +2086,7 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2083
2086
|
} = _useStyles,
|
|
2084
2087
|
styles = _objectWithoutProperties(_useStyles, _excluded2$4);
|
|
2085
2088
|
|
|
2086
|
-
var Icon = variant === 'error' ? icons.
|
|
2089
|
+
var Icon = variant === 'error' ? icons.Error : variant === 'success' ? icons.CheckCircle : undefined;
|
|
2087
2090
|
return /*#__PURE__*/jsxRuntime.jsx(core.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
|
|
2088
2091
|
ref: ref,
|
|
2089
2092
|
classes: styles,
|
|
@@ -3144,7 +3147,7 @@ function overridePagination(theme) {
|
|
|
3144
3147
|
var props = {};
|
|
3145
3148
|
var overrides = {
|
|
3146
3149
|
root: {
|
|
3147
|
-
color: exports.Color.
|
|
3150
|
+
color: exports.Color.Dark500
|
|
3148
3151
|
},
|
|
3149
3152
|
page: {
|
|
3150
3153
|
'&:hover': {
|
|
@@ -3153,12 +3156,12 @@ function overridePagination(theme) {
|
|
|
3153
3156
|
'&$focusVisible': {
|
|
3154
3157
|
borderRadius: 4,
|
|
3155
3158
|
backgroundColor: exports.Color.White,
|
|
3156
|
-
border: "1px solid ".concat(exports.Color.
|
|
3159
|
+
border: "1px solid ".concat(exports.Color.Blue30)
|
|
3157
3160
|
},
|
|
3158
3161
|
'&$selected': {
|
|
3159
3162
|
backgroundColor: exports.Color.Silver400,
|
|
3160
3163
|
'&:hover, &$focusVisible': {
|
|
3161
|
-
backgroundColor: exports.Color.
|
|
3164
|
+
backgroundColor: exports.Color.Silver500
|
|
3162
3165
|
},
|
|
3163
3166
|
'&$disabled': {
|
|
3164
3167
|
color: exports.Color.Dark100,
|
|
@@ -3355,7 +3358,7 @@ function overrideSwitch(theme) {
|
|
|
3355
3358
|
'&:hover': {
|
|
3356
3359
|
backgroundColor: undefined,
|
|
3357
3360
|
'& + $track': {
|
|
3358
|
-
backgroundColor: exports.Color.
|
|
3361
|
+
backgroundColor: exports.Color.Blue500
|
|
3359
3362
|
}
|
|
3360
3363
|
}
|
|
3361
3364
|
},
|
|
@@ -3363,16 +3366,16 @@ function overrideSwitch(theme) {
|
|
|
3363
3366
|
backgroundColor: exports.Color.Silver500
|
|
3364
3367
|
},
|
|
3365
3368
|
'&$disabled + $track': {
|
|
3366
|
-
backgroundColor: exports.Color.
|
|
3369
|
+
backgroundColor: exports.Color.Dark30
|
|
3367
3370
|
},
|
|
3368
3371
|
'&$checked$disabled + $track': {
|
|
3369
|
-
backgroundColor: exports.Color.
|
|
3372
|
+
backgroundColor: exports.Color.Blue30
|
|
3370
3373
|
},
|
|
3371
3374
|
'&:hover + $track': {
|
|
3372
3375
|
backgroundColor: exports.Color.Dark100
|
|
3373
3376
|
},
|
|
3374
3377
|
'&.Mui-focusVisible + $track': {
|
|
3375
|
-
boxShadow: "0 0 0 3px ".concat(exports.Color.
|
|
3378
|
+
boxShadow: "0 0 0 3px ".concat(exports.Color.Blue30)
|
|
3376
3379
|
}
|
|
3377
3380
|
}
|
|
3378
3381
|
};
|
|
@@ -3438,7 +3441,10 @@ function overrideTextField(theme) {
|
|
|
3438
3441
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3439
3442
|
color: exports.Color.Dark500,
|
|
3440
3443
|
'&.MuiFormLabel-root': {
|
|
3441
|
-
fontSize: theme.spacing(
|
|
3444
|
+
fontSize: theme.spacing(2),
|
|
3445
|
+
[sm]: {
|
|
3446
|
+
fontSize: theme.spacing(1.75)
|
|
3447
|
+
}
|
|
3442
3448
|
},
|
|
3443
3449
|
'&$error': {
|
|
3444
3450
|
color: undefined
|
|
@@ -3483,7 +3489,10 @@ function overrideTextField(theme) {
|
|
|
3483
3489
|
input: {
|
|
3484
3490
|
textOverflow: 'ellipsis',
|
|
3485
3491
|
'&.MuiInputBase-input': {
|
|
3486
|
-
fontSize: theme.spacing(
|
|
3492
|
+
fontSize: theme.spacing(2),
|
|
3493
|
+
[sm]: {
|
|
3494
|
+
fontSize: theme.spacing(1.75)
|
|
3495
|
+
}
|
|
3487
3496
|
},
|
|
3488
3497
|
height: theme.spacing(3),
|
|
3489
3498
|
[sm]: {
|
|
@@ -3624,7 +3633,10 @@ function overrideTextField(theme) {
|
|
|
3624
3633
|
color: exports.Color.Red500
|
|
3625
3634
|
},
|
|
3626
3635
|
'&.MuiFormHelperText-root': {
|
|
3627
|
-
fontSize: theme.spacing(
|
|
3636
|
+
fontSize: theme.spacing(2),
|
|
3637
|
+
[sm]: {
|
|
3638
|
+
fontSize: theme.spacing(1.75)
|
|
3639
|
+
}
|
|
3628
3640
|
}
|
|
3629
3641
|
}),
|
|
3630
3642
|
contained: {
|