@yosgo/swap-ui 1.0.122 → 1.0.126

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.
@@ -7244,6 +7244,10 @@ var useStyles$b = makeStyles$1(function () { return ({
7244
7244
  display: "flex",
7245
7245
  alignItems: "center",
7246
7246
  justifyContent: "center",
7247
+ fontSize: "0.75rem",
7248
+ lineHeight: "17px",
7249
+ fontWeight: 700,
7250
+ color: props.color,
7247
7251
  }); },
7248
7252
  }); });
7249
7253
  var Chip = function (props) {
@@ -7275,18 +7279,19 @@ var Chip = function (props) {
7275
7279
  : "1px solid " + theme.primary.primary800
7276
7280
  : null,
7277
7281
  padding: outlined || !contained ? "0px 8px" : "0px 9px",
7282
+ color: variant === "neutral"
7283
+ ? theme.black.black800
7284
+ : variant === "primary"
7285
+ ? theme.primary.primary800
7286
+ : variant === "success"
7287
+ ? theme.success.success800
7288
+ : variant === "danger"
7289
+ ? theme.danger.danger800
7290
+ : theme.primary.primary800,
7278
7291
  };
7279
7292
  var classes = useStyles$b(styleProps);
7280
7293
  return (React__default.createElement("div", __assign({ className: classes.root }, other),
7281
- React__default.createElement(Typography, { variant: "caption1", color: variant === "neutral"
7282
- ? "black800"
7283
- : variant === "primary"
7284
- ? "primary800"
7285
- : variant === "success"
7286
- ? "success800"
7287
- : variant === "danger"
7288
- ? "danger800"
7289
- : "primary800", style: { marginRight: variant === "success" ? 4 : 0 } }, label),
7294
+ React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
7290
7295
  variant === "success" && !icon ? icon_success : icon));
7291
7296
  };
7292
7297
  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" },
@@ -12735,10 +12740,15 @@ var DatePicker = function (props) {
12735
12740
  var open = props.open, onClose = props.onClose, format = props.format, mobile = props.mobile, min = props.min, max = props.max, ModalProps = props.ModalProps, defaultValue = props.defaultValue, getValue = props.getValue, value = props.value, other = __rest(props, ["open", "onClose", "format", "mobile", "min", "max", "ModalProps", "defaultValue", "getValue", "value"]);
12736
12741
  var _a = useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
12737
12742
  var _b = useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
12738
- var _c = useState(1), nextMonth = _c[0], setNextMonth = _c[1];
12743
+ var _c = useState(Number(new Date().getMonth() + 2)), nextMonth = _c[0], setNextMonth = _c[1];
12739
12744
  var _d = useState(""), date = _d[0], setDate = _d[1];
12740
12745
  var _e = useState(false), isOpenMonthSelector = _e[0], setIsOpenMonthSelector = _e[1];
12741
12746
  var _f = useState(false), isClicked = _f[0], setIsClicked = _f[1];
12747
+ useEffect(function () {
12748
+ if (month === 12) {
12749
+ setNextMonth(1);
12750
+ }
12751
+ }, []);
12742
12752
  useEffect(function () {
12743
12753
  if (format === "month") {
12744
12754
  if (month % 2 === 0) {