@yosgo/swap-ui 1.0.132 → 1.0.133
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/Typography/Typography.d.ts +2 -2
- package/build/index.esm.js +38 -37
- package/build/index.esm.js.map +1 -1
- package/build/index.js +26 -25
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2525,7 +2525,8 @@ var Typography = function (_a) {
|
|
|
2525
2525
|
});
|
|
2526
2526
|
var classes = useStyles();
|
|
2527
2527
|
return (React__default.createElement(MaterialTypography, { className: classes.root, style: style }, children));
|
|
2528
|
-
};
|
|
2528
|
+
};
|
|
2529
|
+
var Typography$1 = React__default.memo(Typography);
|
|
2529
2530
|
|
|
2530
2531
|
var Container = function (_a) {
|
|
2531
2532
|
var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
|
|
@@ -7662,8 +7663,8 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7662
7663
|
checked ? React__default.createElement(CheckCircleIcon, { className: classes.icon }) : null,
|
|
7663
7664
|
failed ? React__default.createElement(WarningIcon, { className: classes.icon }) : null,
|
|
7664
7665
|
React__default.createElement("div", null,
|
|
7665
|
-
React__default.createElement(Typography, { variant: !mobile ? "h6" : "title" }, title),
|
|
7666
|
-
React__default.createElement(Typography, { variant: "body2_loose", color: "black800", style: { marginTop: helpText ? 4 : 0 } }, helpText)))),
|
|
7666
|
+
React__default.createElement(Typography$1, { variant: !mobile ? "h6" : "title" }, title),
|
|
7667
|
+
React__default.createElement(Typography$1, { variant: "body2_loose", color: "black800", style: { marginTop: helpText ? 4 : 0 } }, helpText)))),
|
|
7667
7668
|
disCloseIcon ? null : (React__default.createElement(core.IconButton, { className: classes.closeIconButton, TouchRippleProps: {
|
|
7668
7669
|
classes: { child: classes.closeIconRippleRoot },
|
|
7669
7670
|
}, onClick: function () {
|
|
@@ -7807,7 +7808,7 @@ var Banner = function (props) {
|
|
|
7807
7808
|
React__default.createElement("path", { d: "M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", fill: "#00932A" }))) : variant === "warning" ? (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
7808
7809
|
React__default.createElement("path", { d: "M13 14H11V9H13V14ZM13 18H11V16H13V18ZM1 21H23L12 2L1 21Z", fill: "#E5640C" }))) : (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
7809
7810
|
React__default.createElement("path", { d: "M13 9H11V7H13V9ZM13 17H11V11H13V17ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2Z", fill: theme.primary.primary400 })))),
|
|
7810
|
-
React__default.createElement(Typography, { variant: "caption2" }, children)));
|
|
7811
|
+
React__default.createElement(Typography$1, { variant: "caption2" }, children)));
|
|
7811
7812
|
};
|
|
7812
7813
|
|
|
7813
7814
|
var useStyles$c = core.makeStyles(function () { return ({
|
|
@@ -12145,7 +12146,7 @@ var Progress = function (props) {
|
|
|
12145
12146
|
: "transparent",
|
|
12146
12147
|
width: "calc((100% - 24px)/2)",
|
|
12147
12148
|
} })),
|
|
12148
|
-
React__default.createElement(Typography, { variant: "caption1", color: i + 1 === step ? "black1000" : "black700", style: { marginTop: 8 } }, label ? label[i] : null)));
|
|
12149
|
+
React__default.createElement(Typography$1, { variant: "caption1", color: i + 1 === step ? "black1000" : "black700", style: { marginTop: 8 } }, label ? label[i] : null)));
|
|
12149
12150
|
})));
|
|
12150
12151
|
};
|
|
12151
12152
|
|
|
@@ -12297,7 +12298,7 @@ var AutoComplete = function (props) {
|
|
|
12297
12298
|
return (React__default.createElement("div", null,
|
|
12298
12299
|
React__default.createElement(core.Popper, { id: id, open: open, anchorEl: anchorEl, placement: "bottom-start", className: classes.popper },
|
|
12299
12300
|
React__default.createElement("div", { className: classes.header },
|
|
12300
|
-
React__default.createElement(Typography, { variant: "caption1", color: "black800" }, title)),
|
|
12301
|
+
React__default.createElement(Typography$1, { variant: "caption1", color: "black800" }, title)),
|
|
12301
12302
|
React__default.createElement(MaterialAutocomplete, __assign({}, other, { classes: {
|
|
12302
12303
|
paper: classes.paper,
|
|
12303
12304
|
option: classes.option,
|
|
@@ -12828,7 +12829,7 @@ var RadioList = function (props) {
|
|
|
12828
12829
|
alignItems: "center",
|
|
12829
12830
|
marginLeft: 4,
|
|
12830
12831
|
} },
|
|
12831
|
-
React__default.createElement(Typography, { variant: "title", style: {
|
|
12832
|
+
React__default.createElement(Typography$1, { variant: "title", style: {
|
|
12832
12833
|
maxWidth: 56,
|
|
12833
12834
|
minWidth: 56,
|
|
12834
12835
|
textAlign: "center",
|
|
@@ -12841,13 +12842,13 @@ var RadioList = function (props) {
|
|
|
12841
12842
|
backgroundColor: "#909090",
|
|
12842
12843
|
} }),
|
|
12843
12844
|
React__default.createElement("div", { ref: ref },
|
|
12844
|
-
React__default.createElement(Typography, { variant: "body2_loose", color: "black800", style: {
|
|
12845
|
+
React__default.createElement(Typography$1, { variant: "body2_loose", color: "black800", style: {
|
|
12845
12846
|
width: "100%",
|
|
12846
12847
|
wordBreak: "break-word",
|
|
12847
12848
|
} }, subtitle)))) : (React__default.createElement("div", { style: { display: "flex", flexDirection: "column" } },
|
|
12848
|
-
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12849
|
-
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12850
|
-
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12849
|
+
React__default.createElement(Typography$1, { variant: "title" }, title),
|
|
12850
|
+
multiline ? (React__default.createElement(Typography$1, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12851
|
+
!multiline && !line ? (React__default.createElement(Typography$1, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12851
12852
|
};
|
|
12852
12853
|
|
|
12853
12854
|
var useStyles$j = core.makeStyles(function (theme) { return ({
|
|
@@ -12921,7 +12922,7 @@ var CheckBoxList = function (props) {
|
|
|
12921
12922
|
alignItems: "center",
|
|
12922
12923
|
marginLeft: 4,
|
|
12923
12924
|
} },
|
|
12924
|
-
React__default.createElement(Typography, { variant: "title", style: {
|
|
12925
|
+
React__default.createElement(Typography$1, { variant: "title", style: {
|
|
12925
12926
|
minWidth: 56,
|
|
12926
12927
|
maxWidth: 56,
|
|
12927
12928
|
textAlign: "center",
|
|
@@ -12934,13 +12935,13 @@ var CheckBoxList = function (props) {
|
|
|
12934
12935
|
backgroundColor: "#909090",
|
|
12935
12936
|
} }),
|
|
12936
12937
|
React__default.createElement("div", { ref: ref },
|
|
12937
|
-
React__default.createElement(Typography, { variant: "body2_loose", color: "black800", style: {
|
|
12938
|
+
React__default.createElement(Typography$1, { variant: "body2_loose", color: "black800", style: {
|
|
12938
12939
|
width: "100%",
|
|
12939
12940
|
wordBreak: "break-word",
|
|
12940
12941
|
} }, subtitle)))) : (React__default.createElement("div", { style: { display: "flex", flexDirection: "column" } },
|
|
12941
|
-
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12942
|
-
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12943
|
-
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12942
|
+
React__default.createElement(Typography$1, { variant: "title" }, title),
|
|
12943
|
+
multiline ? (React__default.createElement(Typography$1, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12944
|
+
!multiline && !line ? (React__default.createElement(Typography$1, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12944
12945
|
};
|
|
12945
12946
|
|
|
12946
12947
|
var useStyles$k = core.makeStyles(function (theme) { return ({
|
|
@@ -13417,7 +13418,7 @@ var DatePicker = function (props) {
|
|
|
13417
13418
|
setYear(year - 1);
|
|
13418
13419
|
setIsClicked(true);
|
|
13419
13420
|
} }, icon_arrowleft),
|
|
13420
|
-
React__default.createElement(Typography, { variant: "subtitle", style: { textAlign: "center" } },
|
|
13421
|
+
React__default.createElement(Typography$1, { variant: "subtitle", style: { textAlign: "center" } },
|
|
13421
13422
|
year,
|
|
13422
13423
|
"\u5E74"),
|
|
13423
13424
|
React__default.createElement(IconButton, { hoverColor: "black400", onClick: function () {
|
|
@@ -13431,13 +13432,13 @@ var DatePicker = function (props) {
|
|
|
13431
13432
|
gap: 8,
|
|
13432
13433
|
gridTemplateColumns: "1fr 1fr 1fr",
|
|
13433
13434
|
gridTemplateRows: "36px 36px",
|
|
13434
|
-
} }, Array.from(Array(6).keys()).map(function (_i, i) { return (React__default.createElement(MonthButton, { key: i, index: i, month: month, setMonth: setMonth, setIsOpenMonthSelector: setIsOpenMonthSelector, setIsClicked: setIsClicked })); }))))) : null)) : (React__default.createElement(Modal, __assign({ bodyPadding: mobile ? 16 : undefined, fullWidth: mobile, open: open, onClose: onClose, size: mobile ? undefined : "medium", label: !mobile ? (React__default.createElement(Typography, { variant: "h6" },
|
|
13435
|
+
} }, Array.from(Array(6).keys()).map(function (_i, i) { return (React__default.createElement(MonthButton, { key: i, index: i, month: month, setMonth: setMonth, setIsOpenMonthSelector: setIsOpenMonthSelector, setIsClicked: setIsClicked })); }))))) : null)) : (React__default.createElement(Modal, __assign({ bodyPadding: mobile ? 16 : undefined, fullWidth: mobile, open: open, onClose: onClose, size: mobile ? undefined : "medium", label: !mobile ? (React__default.createElement(Typography$1, { variant: "h6" },
|
|
13435
13436
|
React__default.createElement("span", { style: { fontWeight: 400 } }, "\u5DF2\u9078\u64C7\uFF1A"),
|
|
13436
13437
|
date &&
|
|
13437
13438
|
date.split("/")[0] + "\u5E74" + date.split("/")[1] + "\u6708" + date.split("/")[2] + "\u65E5")) : (React__default.createElement(React__default.Fragment, null,
|
|
13438
|
-
React__default.createElement(Typography, { variant: "caption2" },
|
|
13439
|
+
React__default.createElement(Typography$1, { variant: "caption2" },
|
|
13439
13440
|
React__default.createElement("span", { style: { fontWeight: 400 } }, "\u5DF2\u9078\u64C7\uFF1A")),
|
|
13440
|
-
React__default.createElement(Typography, { variant: "subtitle" }, date &&
|
|
13441
|
+
React__default.createElement(Typography$1, { variant: "subtitle" }, date &&
|
|
13441
13442
|
date.split("/")[0] + "\u5E74" + date.split("/")[1] + "\u6708" + date.split("/")[2] + "\u65E5"))), primaryButton: {
|
|
13442
13443
|
title: "確認",
|
|
13443
13444
|
onClick: function () {
|
|
@@ -13631,9 +13632,9 @@ var Breadcrumb = function (props) {
|
|
|
13631
13632
|
fontWeight: 400,
|
|
13632
13633
|
} },
|
|
13633
13634
|
children[0],
|
|
13634
|
-
React__default.createElement(Typography, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/"),
|
|
13635
|
+
React__default.createElement(Typography$1, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/"),
|
|
13635
13636
|
React__default.createElement("div", { onClick: handleThreeDotsClick, onMouseEnter: function () { return setIsHoverThreeDots(true); }, onMouseLeave: function () { return setIsHoverThreeDots(false); }, style: { cursor: "pointer" } }, isHoverThreeDots ? icon_threedots_hover : icon_threedots),
|
|
13636
|
-
React__default.createElement(Typography, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/")),
|
|
13637
|
+
React__default.createElement(Typography$1, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/")),
|
|
13637
13638
|
children
|
|
13638
13639
|
.slice((children === null || children === void 0 ? void 0 : children.length) - maxItems + 1)
|
|
13639
13640
|
.map(function (i, index) {
|
|
@@ -13644,7 +13645,7 @@ var Breadcrumb = function (props) {
|
|
|
13644
13645
|
fontWeight: index + 1 === (children === null || children === void 0 ? void 0 : children.length) ? 700 : 400,
|
|
13645
13646
|
} },
|
|
13646
13647
|
i,
|
|
13647
|
-
index + 1 !== maxItems - 1 && (React__default.createElement(Typography, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/"))));
|
|
13648
|
+
index + 1 !== maxItems - 1 && (React__default.createElement(Typography$1, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/"))));
|
|
13648
13649
|
}))) : (children === null || children === void 0 ? void 0 : children.map(function (i, index) {
|
|
13649
13650
|
return (React__default.createElement("div", { key: Math.random().toString(36).substr(2), style: {
|
|
13650
13651
|
display: "flex",
|
|
@@ -13653,7 +13654,7 @@ var Breadcrumb = function (props) {
|
|
|
13653
13654
|
fontWeight: index + 1 === (children === null || children === void 0 ? void 0 : children.length) ? 700 : 400,
|
|
13654
13655
|
} },
|
|
13655
13656
|
i,
|
|
13656
|
-
index + 1 !== (children === null || children === void 0 ? void 0 : children.length) && (React__default.createElement(Typography, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/"))));
|
|
13657
|
+
index + 1 !== (children === null || children === void 0 ? void 0 : children.length) && (React__default.createElement(Typography$1, { variant: "body2", style: { margin: "0 8px" } }, separator ? separator : "/"))));
|
|
13657
13658
|
})),
|
|
13658
13659
|
React__default.createElement(Menu, { anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleThreeDotsClose, anchorOrigin: { vertical: "bottom", horizontal: -16 }, getContentAnchorEl: null }, children === null || children === void 0 ? void 0 : children.slice(1, (children === null || children === void 0 ? void 0 : children.length) - maxItems + 1).map(function (i) {
|
|
13659
13660
|
var content = i.props.children;
|
|
@@ -13801,6 +13802,6 @@ exports.Tabs = Tabs;
|
|
|
13801
13802
|
exports.TaxTextField = TaxTextField;
|
|
13802
13803
|
exports.TextField = TextField;
|
|
13803
13804
|
exports.Tooltip = Tooltip;
|
|
13804
|
-
exports.Typography = Typography;
|
|
13805
|
+
exports.Typography = Typography$1;
|
|
13805
13806
|
exports.useBreakpoints = useBreakpoints;
|
|
13806
13807
|
//# sourceMappingURL=index.js.map
|