@superdispatch/ui 0.24.4 → 0.24.6
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 +30 -14
- package/dist-node/index.js.map +1 -1
- package/dist-src/pagination/PaginationOverrides.js +3 -3
- package/dist-src/snackbar/SnackbarContent.js +24 -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 +31 -15
- 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";
|
|
@@ -2027,20 +2028,27 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
2027
2028
|
|
|
2028
2029
|
var _excluded$m = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
2029
2030
|
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
2031
|
+
var PaddedContent = /*#__PURE__*/styled__default.span.withConfig({
|
|
2032
|
+
displayName: "SnackbarContent__PaddedContent",
|
|
2033
|
+
componentId: "SD__sc-1jca4d5-0"
|
|
2034
|
+
})(["padding:2px 0 0;"]);
|
|
2030
2035
|
var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
2031
2036
|
root: {
|
|
2032
2037
|
color: exports.Color.White,
|
|
2033
2038
|
backgroundColor: exports.Color.Dark500,
|
|
2034
|
-
'
|
|
2035
|
-
|
|
2036
|
-
|
|
2039
|
+
alignItems: 'flex-start',
|
|
2040
|
+
padding: '10px 16px',
|
|
2041
|
+
[theme.breakpoints.up('md')]: {
|
|
2042
|
+
width: 'auto',
|
|
2043
|
+
maxWidth: '512px',
|
|
2044
|
+
minWidth: '432px'
|
|
2037
2045
|
}
|
|
2038
2046
|
},
|
|
2039
2047
|
action: {
|
|
2040
2048
|
paddingLeft: theme.spacing(1)
|
|
2041
2049
|
},
|
|
2042
2050
|
message: {
|
|
2043
|
-
alignItems: '
|
|
2051
|
+
alignItems: 'flex-start',
|
|
2044
2052
|
[theme.breakpoints.down('xs')]: {
|
|
2045
2053
|
fontSize: theme.spacing(2)
|
|
2046
2054
|
}
|
|
@@ -2056,7 +2064,13 @@ var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
|
2056
2064
|
color: exports.Color.White40
|
|
2057
2065
|
}
|
|
2058
2066
|
},
|
|
2059
|
-
variantError: {
|
|
2067
|
+
variantError: {
|
|
2068
|
+
color: exports.Color.Red500,
|
|
2069
|
+
background: exports.Color.Red50,
|
|
2070
|
+
'& $closeButton': {
|
|
2071
|
+
color: exports.Color.Red500
|
|
2072
|
+
}
|
|
2073
|
+
},
|
|
2060
2074
|
variantSuccess: {}
|
|
2061
2075
|
}), {
|
|
2062
2076
|
name: 'SD-SnackbarContent'
|
|
@@ -2083,7 +2097,7 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2083
2097
|
} = _useStyles,
|
|
2084
2098
|
styles = _objectWithoutProperties(_useStyles, _excluded2$4);
|
|
2085
2099
|
|
|
2086
|
-
var Icon = variant === 'error' ? icons.
|
|
2100
|
+
var Icon = variant === 'error' ? icons.Error : variant === 'success' ? icons.CheckCircle : undefined;
|
|
2087
2101
|
return /*#__PURE__*/jsxRuntime.jsx(core.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
|
|
2088
2102
|
ref: ref,
|
|
2089
2103
|
classes: styles,
|
|
@@ -2094,7 +2108,9 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2094
2108
|
message: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2095
2109
|
children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
2096
2110
|
className: icon
|
|
2097
|
-
}),
|
|
2111
|
+
}), /*#__PURE__*/jsxRuntime.jsx(PaddedContent, {
|
|
2112
|
+
children: children
|
|
2113
|
+
})]
|
|
2098
2114
|
}),
|
|
2099
2115
|
action: !action && !onClose ? null : /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
2100
2116
|
container: true,
|
|
@@ -3144,7 +3160,7 @@ function overridePagination(theme) {
|
|
|
3144
3160
|
var props = {};
|
|
3145
3161
|
var overrides = {
|
|
3146
3162
|
root: {
|
|
3147
|
-
color: exports.Color.
|
|
3163
|
+
color: exports.Color.Dark500
|
|
3148
3164
|
},
|
|
3149
3165
|
page: {
|
|
3150
3166
|
'&:hover': {
|
|
@@ -3153,12 +3169,12 @@ function overridePagination(theme) {
|
|
|
3153
3169
|
'&$focusVisible': {
|
|
3154
3170
|
borderRadius: 4,
|
|
3155
3171
|
backgroundColor: exports.Color.White,
|
|
3156
|
-
border: "1px solid ".concat(exports.Color.
|
|
3172
|
+
border: "1px solid ".concat(exports.Color.Blue30)
|
|
3157
3173
|
},
|
|
3158
3174
|
'&$selected': {
|
|
3159
3175
|
backgroundColor: exports.Color.Silver400,
|
|
3160
3176
|
'&:hover, &$focusVisible': {
|
|
3161
|
-
backgroundColor: exports.Color.
|
|
3177
|
+
backgroundColor: exports.Color.Silver500
|
|
3162
3178
|
},
|
|
3163
3179
|
'&$disabled': {
|
|
3164
3180
|
color: exports.Color.Dark100,
|
|
@@ -3355,7 +3371,7 @@ function overrideSwitch(theme) {
|
|
|
3355
3371
|
'&:hover': {
|
|
3356
3372
|
backgroundColor: undefined,
|
|
3357
3373
|
'& + $track': {
|
|
3358
|
-
backgroundColor: exports.Color.
|
|
3374
|
+
backgroundColor: exports.Color.Blue500
|
|
3359
3375
|
}
|
|
3360
3376
|
}
|
|
3361
3377
|
},
|
|
@@ -3363,16 +3379,16 @@ function overrideSwitch(theme) {
|
|
|
3363
3379
|
backgroundColor: exports.Color.Silver500
|
|
3364
3380
|
},
|
|
3365
3381
|
'&$disabled + $track': {
|
|
3366
|
-
backgroundColor: exports.Color.
|
|
3382
|
+
backgroundColor: exports.Color.Dark30
|
|
3367
3383
|
},
|
|
3368
3384
|
'&$checked$disabled + $track': {
|
|
3369
|
-
backgroundColor: exports.Color.
|
|
3385
|
+
backgroundColor: exports.Color.Blue30
|
|
3370
3386
|
},
|
|
3371
3387
|
'&:hover + $track': {
|
|
3372
3388
|
backgroundColor: exports.Color.Dark100
|
|
3373
3389
|
},
|
|
3374
3390
|
'&.Mui-focusVisible + $track': {
|
|
3375
|
-
boxShadow: "0 0 0 3px ".concat(exports.Color.
|
|
3391
|
+
boxShadow: "0 0 0 3px ".concat(exports.Color.Blue30)
|
|
3376
3392
|
}
|
|
3377
3393
|
}
|
|
3378
3394
|
};
|