@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.
- package/build/index.esm.js +20 -10
- package/build/index.esm.js.map +1 -1
- package/build/index.js +20 -10
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -7249,6 +7249,10 @@ 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: "17px",
|
|
7254
|
+
fontWeight: 700,
|
|
7255
|
+
color: props.color,
|
|
7252
7256
|
}); },
|
|
7253
7257
|
}); });
|
|
7254
7258
|
var Chip = function (props) {
|
|
@@ -7280,18 +7284,19 @@ var Chip = function (props) {
|
|
|
7280
7284
|
: "1px solid " + theme.primary.primary800
|
|
7281
7285
|
: null,
|
|
7282
7286
|
padding: outlined || !contained ? "0px 8px" : "0px 9px",
|
|
7287
|
+
color: variant === "neutral"
|
|
7288
|
+
? theme.black.black800
|
|
7289
|
+
: variant === "primary"
|
|
7290
|
+
? theme.primary.primary800
|
|
7291
|
+
: variant === "success"
|
|
7292
|
+
? theme.success.success800
|
|
7293
|
+
: variant === "danger"
|
|
7294
|
+
? theme.danger.danger800
|
|
7295
|
+
: theme.primary.primary800,
|
|
7283
7296
|
};
|
|
7284
7297
|
var classes = useStyles$b(styleProps);
|
|
7285
7298
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
7286
|
-
React__default.createElement(
|
|
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),
|
|
7299
|
+
React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
|
|
7295
7300
|
variant === "success" && !icon ? icon_success : icon));
|
|
7296
7301
|
};
|
|
7297
7302
|
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" },
|
|
@@ -12740,10 +12745,15 @@ var DatePicker = function (props) {
|
|
|
12740
12745
|
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"]);
|
|
12741
12746
|
var _a = React.useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
|
|
12742
12747
|
var _b = React.useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
|
|
12743
|
-
var _c = React.useState(
|
|
12748
|
+
var _c = React.useState(Number(new Date().getMonth() + 2)), nextMonth = _c[0], setNextMonth = _c[1];
|
|
12744
12749
|
var _d = React.useState(""), date = _d[0], setDate = _d[1];
|
|
12745
12750
|
var _e = React.useState(false), isOpenMonthSelector = _e[0], setIsOpenMonthSelector = _e[1];
|
|
12746
12751
|
var _f = React.useState(false), isClicked = _f[0], setIsClicked = _f[1];
|
|
12752
|
+
React.useEffect(function () {
|
|
12753
|
+
if (month === 12) {
|
|
12754
|
+
setNextMonth(1);
|
|
12755
|
+
}
|
|
12756
|
+
}, []);
|
|
12747
12757
|
React.useEffect(function () {
|
|
12748
12758
|
if (format === "month") {
|
|
12749
12759
|
if (month % 2 === 0) {
|