@superdispatch/ui 0.24.0 → 0.24.2
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 +57 -12
- package/dist-node/index.js.map +1 -1
- package/dist-src/avatar-button/AvatarButton.js +2 -1
- package/dist-src/card-button/CardButton.js +9 -5
- package/dist-src/link/LinkOverrides.js +4 -2
- package/dist-src/text-field/TextFieldOverrides.js +41 -4
- package/dist-src/theme/Color.js +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-web/index.js +57 -12
- package/dist-web/index.js.map +1 -1
- package/package.json +1 -1
package/dist-node/index.js
CHANGED
|
@@ -491,6 +491,7 @@ if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName =
|
|
|
491
491
|
Color["Yellow100"] = "#FFE494";
|
|
492
492
|
Color["Yellow200"] = "#FFDC6B";
|
|
493
493
|
Color["Yellow400"] = "#FFA91F";
|
|
494
|
+
Color["Dark50"] = "rgba(25, 35, 52, 0.5)";
|
|
494
495
|
Color["Dark100"] = "#8F949E";
|
|
495
496
|
Color["Dark300"] = "#5B6371";
|
|
496
497
|
Color["Dark500"] = "#192334";
|
|
@@ -536,7 +537,7 @@ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
|
|
|
536
537
|
'&:not([disabled])[aria-busy="false"]': {
|
|
537
538
|
'&:hover, &:focus': {
|
|
538
539
|
'&$withIcon > $overlay': {
|
|
539
|
-
backgroundColor: exports.Color.
|
|
540
|
+
backgroundColor: exports.Color.Dark50,
|
|
540
541
|
'& > svg': {
|
|
541
542
|
opacity: 1
|
|
542
543
|
}
|
|
@@ -573,6 +574,7 @@ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
|
|
|
573
574
|
top: 0,
|
|
574
575
|
left: 0,
|
|
575
576
|
position: 'absolute',
|
|
577
|
+
color: exports.Color.Blue500,
|
|
576
578
|
fontSize: theme.spacing(5),
|
|
577
579
|
[sm]: {
|
|
578
580
|
fontSize: theme.spacing(4)
|
|
@@ -694,15 +696,15 @@ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
|
694
696
|
backgroundColor: exports.Color.Silver100
|
|
695
697
|
},
|
|
696
698
|
error: {
|
|
697
|
-
color: exports.Color.
|
|
698
|
-
borderColor: exports.Color.
|
|
699
|
+
color: exports.Color.Red500,
|
|
700
|
+
borderColor: exports.Color.Red500,
|
|
699
701
|
backgroundColor: exports.Color.Red50,
|
|
700
702
|
'&:focus': {
|
|
701
703
|
backgroundColor: exports.Color.Red75
|
|
702
704
|
}
|
|
703
705
|
},
|
|
704
706
|
primary: {
|
|
705
|
-
color: exports.Color.
|
|
707
|
+
color: exports.Color.Blue500,
|
|
706
708
|
borderColor: exports.Color.Silver500,
|
|
707
709
|
'&:focus': {
|
|
708
710
|
backgroundColor: exports.Color.Blue50
|
|
@@ -769,11 +771,14 @@ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
769
771
|
'small': styles.sizeSmall,
|
|
770
772
|
'large': styles.sizeLarge
|
|
771
773
|
}[size]),
|
|
772
|
-
children: error ? /*#__PURE__*/jsxRuntime.
|
|
774
|
+
children: error ? /*#__PURE__*/jsxRuntime.jsxs(core.Typography, {
|
|
773
775
|
variant: "h4",
|
|
774
776
|
color: "inherit",
|
|
775
777
|
className: styles.label,
|
|
776
|
-
children:
|
|
778
|
+
children: [!!startIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
779
|
+
className: clsx(styles.icon, styles.startIcon),
|
|
780
|
+
children: startIcon
|
|
781
|
+
}), error]
|
|
777
782
|
}) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
778
783
|
children: [/*#__PURE__*/jsxRuntime.jsxs(core.Typography, {
|
|
779
784
|
variant: "h4",
|
|
@@ -788,6 +793,7 @@ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
788
793
|
})]
|
|
789
794
|
}), !!hint && /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
|
|
790
795
|
color: "textSecondary",
|
|
796
|
+
variant: "caption",
|
|
791
797
|
className: styles.hint,
|
|
792
798
|
children: hint
|
|
793
799
|
})]
|
|
@@ -3062,7 +3068,6 @@ function overrideLink(theme) {
|
|
|
3062
3068
|
}
|
|
3063
3069
|
},
|
|
3064
3070
|
'&.MuiTypography-colorTextSecondary': {
|
|
3065
|
-
cursor: 'not-allowed',
|
|
3066
3071
|
color: exports.Color.Dark100,
|
|
3067
3072
|
backgroundImage: line(exports.Color.Silver500),
|
|
3068
3073
|
'&:focus, &:hover, &:active': {
|
|
@@ -3079,7 +3084,10 @@ function overrideLink(theme) {
|
|
|
3079
3084
|
textAlign: 'inherit',
|
|
3080
3085
|
lineHeight: 'inherit',
|
|
3081
3086
|
userSelect: 'inherit',
|
|
3082
|
-
verticalAlign: 'inherit'
|
|
3087
|
+
verticalAlign: 'inherit',
|
|
3088
|
+
'&:disabled': {
|
|
3089
|
+
cursor: 'not-allowed'
|
|
3090
|
+
}
|
|
3083
3091
|
}
|
|
3084
3092
|
};
|
|
3085
3093
|
}
|
|
@@ -3413,7 +3421,10 @@ function overrideTextField(theme) {
|
|
|
3413
3421
|
};
|
|
3414
3422
|
theme.overrides.MuiFormLabel = {
|
|
3415
3423
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3416
|
-
color: exports.Color.
|
|
3424
|
+
color: exports.Color.Dark500,
|
|
3425
|
+
'&.MuiFormLabel-root': {
|
|
3426
|
+
fontSize: theme.spacing(1.75)
|
|
3427
|
+
},
|
|
3417
3428
|
'&$error': {
|
|
3418
3429
|
color: undefined
|
|
3419
3430
|
},
|
|
@@ -3428,12 +3439,39 @@ function overrideTextField(theme) {
|
|
|
3428
3439
|
theme.overrides.MuiInputBase = {
|
|
3429
3440
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3430
3441
|
'&$disabled': {
|
|
3431
|
-
backgroundColor: exports.Color.
|
|
3442
|
+
backgroundColor: exports.Color.Silver30
|
|
3443
|
+
},
|
|
3444
|
+
'&$error': {
|
|
3445
|
+
borderColor: exports.Color.Red500
|
|
3446
|
+
},
|
|
3447
|
+
'&.MuiOutlinedInput-root': {
|
|
3448
|
+
'& fieldset': {
|
|
3449
|
+
borderColor: exports.Color.Silver500
|
|
3450
|
+
},
|
|
3451
|
+
'&:hover fieldset': {
|
|
3452
|
+
borderColor: exports.Color.Dark100
|
|
3453
|
+
},
|
|
3454
|
+
'&.Mui-focused fieldset': {
|
|
3455
|
+
borderColor: exports.Color.Blue500
|
|
3456
|
+
},
|
|
3457
|
+
'&.Mui-error fieldset': {
|
|
3458
|
+
borderColor: exports.Color.Red500
|
|
3459
|
+
},
|
|
3460
|
+
'&.Mui-error:hover fieldset': {
|
|
3461
|
+
borderColor: exports.Color.Red500
|
|
3462
|
+
},
|
|
3463
|
+
'&.Mui-disabled fieldset': {
|
|
3464
|
+
borderColor: exports.Color.Silver400
|
|
3465
|
+
}
|
|
3432
3466
|
}
|
|
3433
3467
|
}),
|
|
3434
3468
|
input: {
|
|
3435
3469
|
textOverflow: 'ellipsis',
|
|
3436
|
-
|
|
3470
|
+
'&.MuiInputBase-input': {
|
|
3471
|
+
fontSize: theme.spacing(1.75),
|
|
3472
|
+
padding: theme.spacing(0.75, 1)
|
|
3473
|
+
},
|
|
3474
|
+
height: theme.spacing(2.5),
|
|
3437
3475
|
[sm]: {
|
|
3438
3476
|
height: theme.spacing(2.5)
|
|
3439
3477
|
}
|
|
@@ -3566,7 +3604,14 @@ function overrideTextField(theme) {
|
|
|
3566
3604
|
};
|
|
3567
3605
|
theme.overrides.MuiFormHelperText = {
|
|
3568
3606
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3569
|
-
|
|
3607
|
+
color: exports.Color.Dark300,
|
|
3608
|
+
marginTop: theme.spacing(0.5),
|
|
3609
|
+
'&.Mui-error': {
|
|
3610
|
+
color: exports.Color.Red500
|
|
3611
|
+
},
|
|
3612
|
+
'&.MuiFormHelperText-root': {
|
|
3613
|
+
fontSize: theme.spacing(1.75)
|
|
3614
|
+
}
|
|
3570
3615
|
}),
|
|
3571
3616
|
contained: {
|
|
3572
3617
|
marginLeft: undefined,
|