@superdispatch/ui 0.24.1 → 0.24.3
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 +83 -26
- 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 +31 -16
- package/dist-src/text-field/TextFieldOverrides.js +39 -3
- package/dist-src/theme/Color.js +1 -0
- package/dist-src/theme/ThemeProvider.js +1 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-web/index.js +83 -26
- 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
|
})]
|
|
@@ -3031,7 +3037,7 @@ function line(color) {
|
|
|
3031
3037
|
|
|
3032
3038
|
function overrideLink(theme) {
|
|
3033
3039
|
theme.props.MuiLink = {
|
|
3034
|
-
underline: '
|
|
3040
|
+
underline: 'always',
|
|
3035
3041
|
color: 'textPrimary'
|
|
3036
3042
|
};
|
|
3037
3043
|
theme.overrides.MuiLink = {
|
|
@@ -3043,30 +3049,45 @@ function overrideLink(theme) {
|
|
|
3043
3049
|
'&:focus': {
|
|
3044
3050
|
outline: 'none'
|
|
3045
3051
|
},
|
|
3046
|
-
'&:
|
|
3047
|
-
|
|
3048
|
-
},
|
|
3049
|
-
'&.MuiTypography-colorTextPrimary': {
|
|
3052
|
+
'&:disabled': {
|
|
3053
|
+
color: exports.Color.Dark100,
|
|
3050
3054
|
backgroundImage: line(exports.Color.Silver500),
|
|
3051
3055
|
'&:focus, &:hover, &:active': {
|
|
3052
|
-
color: exports.Color.
|
|
3053
|
-
backgroundImage: line(exports.Color.
|
|
3056
|
+
color: exports.Color.Dark100,
|
|
3057
|
+
backgroundImage: line(exports.Color.Silver500)
|
|
3054
3058
|
}
|
|
3055
3059
|
},
|
|
3056
|
-
'&.
|
|
3057
|
-
|
|
3060
|
+
'&.MuiLink-underlineAlways': {
|
|
3061
|
+
textDecoration: 'none',
|
|
3058
3062
|
backgroundImage: line(exports.Color.Silver500),
|
|
3063
|
+
'&:hover, &:active': {
|
|
3064
|
+
backgroundImage: line('currentColor')
|
|
3065
|
+
}
|
|
3066
|
+
},
|
|
3067
|
+
'&.MuiLink-underlineHover': {
|
|
3068
|
+
backgroundImage: 'none',
|
|
3069
|
+
'&:hover, &:active': {
|
|
3070
|
+
textDecoration: 'none',
|
|
3071
|
+
backgroundImage: line('currentColor')
|
|
3072
|
+
}
|
|
3073
|
+
},
|
|
3074
|
+
'&.MuiLink-underlineNone': {
|
|
3075
|
+
backgroundImage: 'none',
|
|
3059
3076
|
'&:focus, &:hover, &:active': {
|
|
3060
|
-
|
|
3061
|
-
backgroundImage: line(exports.Color.Red500)
|
|
3077
|
+
backgroundImage: 'none'
|
|
3062
3078
|
}
|
|
3063
3079
|
},
|
|
3064
|
-
'&.MuiTypography-
|
|
3065
|
-
|
|
3066
|
-
|
|
3080
|
+
'&.MuiTypography-colorPrimary': {
|
|
3081
|
+
backgroundImage: 'none',
|
|
3082
|
+
'&:hover, &:active': {
|
|
3083
|
+
textDecoration: 'none',
|
|
3084
|
+
backgroundImage: line('currentColor')
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
'&.MuiTypography-colorTextPrimary, &.MuiTypography-colorTextSecondary': {
|
|
3067
3088
|
'&:focus, &:hover, &:active': {
|
|
3068
|
-
color: exports.Color.
|
|
3069
|
-
backgroundImage: line(exports.Color.
|
|
3089
|
+
color: exports.Color.Blue500,
|
|
3090
|
+
backgroundImage: line(exports.Color.Blue500)
|
|
3070
3091
|
}
|
|
3071
3092
|
}
|
|
3072
3093
|
},
|
|
@@ -3415,7 +3436,10 @@ function overrideTextField(theme) {
|
|
|
3415
3436
|
};
|
|
3416
3437
|
theme.overrides.MuiFormLabel = {
|
|
3417
3438
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3418
|
-
color: exports.Color.
|
|
3439
|
+
color: exports.Color.Dark500,
|
|
3440
|
+
'&.MuiFormLabel-root': {
|
|
3441
|
+
fontSize: theme.spacing(1.75)
|
|
3442
|
+
},
|
|
3419
3443
|
'&$error': {
|
|
3420
3444
|
color: undefined
|
|
3421
3445
|
},
|
|
@@ -3430,11 +3454,37 @@ function overrideTextField(theme) {
|
|
|
3430
3454
|
theme.overrides.MuiInputBase = {
|
|
3431
3455
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3432
3456
|
'&$disabled': {
|
|
3433
|
-
backgroundColor: exports.Color.
|
|
3457
|
+
backgroundColor: exports.Color.Silver30
|
|
3458
|
+
},
|
|
3459
|
+
'&$error': {
|
|
3460
|
+
borderColor: exports.Color.Red500
|
|
3461
|
+
},
|
|
3462
|
+
'&.MuiOutlinedInput-root': {
|
|
3463
|
+
'& fieldset': {
|
|
3464
|
+
borderColor: exports.Color.Silver500
|
|
3465
|
+
},
|
|
3466
|
+
'&:hover fieldset': {
|
|
3467
|
+
borderColor: exports.Color.Dark100
|
|
3468
|
+
},
|
|
3469
|
+
'&.Mui-focused fieldset': {
|
|
3470
|
+
borderColor: exports.Color.Blue500
|
|
3471
|
+
},
|
|
3472
|
+
'&.Mui-error fieldset': {
|
|
3473
|
+
borderColor: exports.Color.Red500
|
|
3474
|
+
},
|
|
3475
|
+
'&.Mui-error:hover fieldset': {
|
|
3476
|
+
borderColor: exports.Color.Red500
|
|
3477
|
+
},
|
|
3478
|
+
'&.Mui-disabled fieldset': {
|
|
3479
|
+
borderColor: exports.Color.Silver400
|
|
3480
|
+
}
|
|
3434
3481
|
}
|
|
3435
3482
|
}),
|
|
3436
3483
|
input: {
|
|
3437
3484
|
textOverflow: 'ellipsis',
|
|
3485
|
+
'&.MuiInputBase-input': {
|
|
3486
|
+
fontSize: theme.spacing(1.75)
|
|
3487
|
+
},
|
|
3438
3488
|
height: theme.spacing(3),
|
|
3439
3489
|
[sm]: {
|
|
3440
3490
|
height: theme.spacing(2.5)
|
|
@@ -3568,7 +3618,14 @@ function overrideTextField(theme) {
|
|
|
3568
3618
|
};
|
|
3569
3619
|
theme.overrides.MuiFormHelperText = {
|
|
3570
3620
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3571
|
-
|
|
3621
|
+
color: exports.Color.Dark300,
|
|
3622
|
+
marginTop: theme.spacing(0.5),
|
|
3623
|
+
'&.Mui-error': {
|
|
3624
|
+
color: exports.Color.Red500
|
|
3625
|
+
},
|
|
3626
|
+
'&.MuiFormHelperText-root': {
|
|
3627
|
+
fontSize: theme.spacing(1.75)
|
|
3628
|
+
}
|
|
3572
3629
|
}),
|
|
3573
3630
|
contained: {
|
|
3574
3631
|
marginLeft: undefined,
|
|
@@ -3757,7 +3814,7 @@ function createSuperDispatchTheme() {
|
|
|
3757
3814
|
},
|
|
3758
3815
|
text: {
|
|
3759
3816
|
primary: exports.Color.Dark500,
|
|
3760
|
-
secondary: exports.Color.
|
|
3817
|
+
secondary: exports.Color.Dark300,
|
|
3761
3818
|
hint: exports.Color.Dark100,
|
|
3762
3819
|
disabled: exports.Color.Dark100
|
|
3763
3820
|
},
|