@yosgo/swap-ui 1.0.122 → 1.0.123

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/build/index.js CHANGED
@@ -7249,6 +7249,11 @@ var useStyles$b = core.makeStyles(function () { return ({
7249
7249
  display: "flex",
7250
7250
  alignItems: "center",
7251
7251
  justifyContent: "center",
7252
+ fontSize: "0.75rem",
7253
+ lineHeight: 1.4,
7254
+ fontWeight: 700,
7255
+ marginRight: props.marginRight,
7256
+ color: props.color,
7252
7257
  }); },
7253
7258
  }); });
7254
7259
  var Chip = function (props) {
@@ -7280,18 +7285,20 @@ var Chip = function (props) {
7280
7285
  : "1px solid " + theme.primary.primary800
7281
7286
  : null,
7282
7287
  padding: outlined || !contained ? "0px 8px" : "0px 9px",
7288
+ color: variant === "neutral"
7289
+ ? theme.black.black800
7290
+ : variant === "primary"
7291
+ ? theme.primary.primary800
7292
+ : variant === "success"
7293
+ ? theme.success.success800
7294
+ : variant === "danger"
7295
+ ? theme.danger.danger800
7296
+ : theme.primary.primary800,
7297
+ marginRight: variant === "success" ? 4 : 0,
7283
7298
  };
7284
7299
  var classes = useStyles$b(styleProps);
7285
7300
  return (React__default.createElement("div", __assign({ className: classes.root }, other),
7286
- React__default.createElement(Typography, { variant: "caption1", color: variant === "neutral"
7287
- ? "black800"
7288
- : variant === "primary"
7289
- ? "primary800"
7290
- : variant === "success"
7291
- ? "success800"
7292
- : variant === "danger"
7293
- ? "danger800"
7294
- : "primary800", style: { marginRight: variant === "success" ? 4 : 0 } }, label),
7301
+ label,
7295
7302
  variant === "success" && !icon ? icon_success : icon));
7296
7303
  };
7297
7304
  var icon_success = (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },