@superdispatch/ui 0.24.6 → 0.24.8
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 +37 -9
- package/dist-node/index.js.map +1 -1
- package/dist-src/checkbox/CheckboxField.js +1 -1
- package/dist-src/menu/MenuOverrides.js +6 -0
- package/dist-src/preloader/PreLoaderOverrides.js +7 -0
- package/dist-src/radio/RadioField.js +1 -1
- package/dist-src/snackbar/SnackbarOverrides.js +13 -7
- package/dist-src/text-field/TextFieldOverrides.js +4 -0
- package/dist-src/theme/ThemeProvider.js +6 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-web/index.js +37 -9
- package/dist-web/index.js.map +1 -1
- package/package.json +1 -1
package/dist-node/index.js
CHANGED
|
@@ -811,7 +811,7 @@ var FormControl = /*#__PURE__*/styled__default(core.FormControl).withConfig({
|
|
|
811
811
|
var FormHelperText = /*#__PURE__*/styled__default(core.FormHelperText).withConfig({
|
|
812
812
|
displayName: "CheckboxField__FormHelperText",
|
|
813
813
|
componentId: "SD__sc-1wxu0g6-1"
|
|
814
|
-
})(["color:", ";
|
|
814
|
+
})(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], exports.Color.Dark300, exports.Color.Red500);
|
|
815
815
|
var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
816
816
|
var {
|
|
817
817
|
label,
|
|
@@ -1845,7 +1845,7 @@ var FormControl$1 = /*#__PURE__*/styled__default(core.FormControl).withConfig({
|
|
|
1845
1845
|
var FormHelperText$2 = /*#__PURE__*/styled__default(core.FormHelperText).withConfig({
|
|
1846
1846
|
displayName: "RadioField__FormHelperText",
|
|
1847
1847
|
componentId: "SD__sc-6ey4qt-1"
|
|
1848
|
-
})(["color:", ";
|
|
1848
|
+
})(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], exports.Color.Dark300, exports.Color.Red500);
|
|
1849
1849
|
var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1850
1850
|
var {
|
|
1851
1851
|
label,
|
|
@@ -3148,6 +3148,11 @@ function overrideMenu(theme) {
|
|
|
3148
3148
|
horizontal: 'left'
|
|
3149
3149
|
}
|
|
3150
3150
|
};
|
|
3151
|
+
theme.overrides.MuiMenu = {
|
|
3152
|
+
paper: {
|
|
3153
|
+
border: "1px solid ".concat(exports.Color.Silver400)
|
|
3154
|
+
}
|
|
3155
|
+
};
|
|
3151
3156
|
theme.overrides.MuiMenuItem = {
|
|
3152
3157
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3153
3158
|
paddingTop: theme.spacing(1),
|
|
@@ -3207,6 +3212,14 @@ function overridePaper(theme) {
|
|
|
3207
3212
|
};
|
|
3208
3213
|
}
|
|
3209
3214
|
|
|
3215
|
+
function overridePreloader(theme) {
|
|
3216
|
+
theme.overrides.MuiSkeleton = {
|
|
3217
|
+
text: {
|
|
3218
|
+
borderRadius: '3px'
|
|
3219
|
+
}
|
|
3220
|
+
};
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3210
3223
|
function overrideRadio(theme) {
|
|
3211
3224
|
theme.props.MuiRadio = {
|
|
3212
3225
|
color: 'primary',
|
|
@@ -3261,18 +3274,24 @@ function overrideSnackbar(theme) {
|
|
|
3261
3274
|
anchorOriginBottomCenter: {
|
|
3262
3275
|
left: 0,
|
|
3263
3276
|
right: 0,
|
|
3264
|
-
bottom: 0
|
|
3277
|
+
bottom: 0,
|
|
3278
|
+
padding: theme.spacing(0),
|
|
3279
|
+
background: 'transparent'
|
|
3265
3280
|
}
|
|
3266
3281
|
};
|
|
3267
3282
|
theme.overrides.MuiSnackbarContent = {
|
|
3268
3283
|
root: {
|
|
3269
|
-
width: '100%',
|
|
3270
|
-
borderRadius: 0,
|
|
3271
3284
|
minHeight: theme.spacing(7.5),
|
|
3272
|
-
|
|
3273
|
-
width:
|
|
3274
|
-
|
|
3275
|
-
|
|
3285
|
+
'&.SD-SnackbarContent-root': {
|
|
3286
|
+
width: '100%',
|
|
3287
|
+
position: 'relative',
|
|
3288
|
+
left: 0,
|
|
3289
|
+
right: 0,
|
|
3290
|
+
bottom: 0,
|
|
3291
|
+
borderRadius: theme.spacing(0),
|
|
3292
|
+
[theme.breakpoints.up('sm')]: {
|
|
3293
|
+
borderRadius: theme.spacing(0.5)
|
|
3294
|
+
}
|
|
3276
3295
|
}
|
|
3277
3296
|
},
|
|
3278
3297
|
message: {
|
|
@@ -3501,6 +3520,10 @@ function overrideTextField(theme) {
|
|
|
3501
3520
|
}),
|
|
3502
3521
|
input: {
|
|
3503
3522
|
textOverflow: 'ellipsis',
|
|
3523
|
+
'&::placeholder': {
|
|
3524
|
+
color: exports.Color.Dark100,
|
|
3525
|
+
opacity: 1
|
|
3526
|
+
},
|
|
3504
3527
|
'&.MuiInputBase-input': {
|
|
3505
3528
|
fontSize: theme.spacing(2),
|
|
3506
3529
|
[sm]: {
|
|
@@ -3873,6 +3896,7 @@ function createSuperDispatchTheme() {
|
|
|
3873
3896
|
overrideTooltip(theme);
|
|
3874
3897
|
overrideTypography(theme);
|
|
3875
3898
|
overridePagination(theme);
|
|
3899
|
+
overridePreloader(theme);
|
|
3876
3900
|
return theme;
|
|
3877
3901
|
}
|
|
3878
3902
|
|
|
@@ -3885,6 +3909,10 @@ function generateClassName(rule, sheet) {
|
|
|
3885
3909
|
} = (sheet === null || sheet === void 0 ? void 0 : sheet.options) || {};
|
|
3886
3910
|
|
|
3887
3911
|
if (meta && rule.type === 'style') {
|
|
3912
|
+
if (meta.startsWith('MuiSnackbar') && sheet) {
|
|
3913
|
+
return "SDSnackbar-".concat(rule.key);
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3888
3916
|
if (meta.startsWith('SD-')) {
|
|
3889
3917
|
return "".concat(meta, "-").concat(rule.key);
|
|
3890
3918
|
}
|