@superdispatch/ui 0.24.1 → 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.
@@ -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.Black50,
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.Red300,
698
- borderColor: exports.Color.Red300,
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.Blue300,
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.jsx(core.Typography, {
774
+ children: error ? /*#__PURE__*/jsxRuntime.jsxs(core.Typography, {
773
775
  variant: "h4",
774
776
  color: "inherit",
775
777
  className: styles.label,
776
- children: error
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
  })]
@@ -3415,7 +3421,10 @@ function overrideTextField(theme) {
3415
3421
  };
3416
3422
  theme.overrides.MuiFormLabel = {
3417
3423
  root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3418
- color: exports.Color.Dark400,
3424
+ color: exports.Color.Dark500,
3425
+ '&.MuiFormLabel-root': {
3426
+ fontSize: theme.spacing(1.75)
3427
+ },
3419
3428
  '&$error': {
3420
3429
  color: undefined
3421
3430
  },
@@ -3430,12 +3439,39 @@ function overrideTextField(theme) {
3430
3439
  theme.overrides.MuiInputBase = {
3431
3440
  root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3432
3441
  '&$disabled': {
3433
- backgroundColor: exports.Color.Silver100
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
+ }
3434
3466
  }
3435
3467
  }),
3436
3468
  input: {
3437
3469
  textOverflow: 'ellipsis',
3438
- height: theme.spacing(3),
3470
+ '&.MuiInputBase-input': {
3471
+ fontSize: theme.spacing(1.75),
3472
+ padding: theme.spacing(0.75, 1)
3473
+ },
3474
+ height: theme.spacing(2.5),
3439
3475
  [sm]: {
3440
3476
  height: theme.spacing(2.5)
3441
3477
  }
@@ -3568,7 +3604,14 @@ function overrideTextField(theme) {
3568
3604
  };
3569
3605
  theme.overrides.MuiFormHelperText = {
3570
3606
  root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3571
- marginTop: theme.spacing(0.5)
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
+ }
3572
3615
  }),
3573
3616
  contained: {
3574
3617
  marginLeft: undefined,