@yosgo/swap-ui 1.0.132 → 1.0.134
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 +4 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -180,7 +180,7 @@ var SWAPLogoWrap = styled.div(templateObject_1 || (templateObject_1 = __makeTemp
|
|
|
180
180
|
});
|
|
181
181
|
var templateObject_1;
|
|
182
182
|
|
|
183
|
-
var SWAPSpace = function (_a) {
|
|
183
|
+
var SWAPSpace = React__default.memo(function (_a) {
|
|
184
184
|
var size = _a.size;
|
|
185
185
|
var height = function () {
|
|
186
186
|
if (size === "xxs") {
|
|
@@ -217,7 +217,7 @@ var SWAPSpace = function (_a) {
|
|
|
217
217
|
return 16;
|
|
218
218
|
};
|
|
219
219
|
return React__default.createElement("div", { style: { height: height() + "px" } });
|
|
220
|
-
};
|
|
220
|
+
});
|
|
221
221
|
|
|
222
222
|
var SWAPAppBar = function (_a) {
|
|
223
223
|
var logo = _a.logo, primaryButton = _a.primaryButton, secondaryButton = _a.secondaryButton, navigations = _a.navigations;
|
|
@@ -2164,7 +2164,7 @@ var Styles = function (_a) {
|
|
|
2164
2164
|
var StylesWrap = styled.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject([""], [""])));
|
|
2165
2165
|
var templateObject_1$8;
|
|
2166
2166
|
|
|
2167
|
-
var Typography = function (_a) {
|
|
2167
|
+
var Typography = React__default.memo(function (_a) {
|
|
2168
2168
|
var variant = _a.variant, children = _a.children, mode = _a.mode, color = _a.color, style = _a.style;
|
|
2169
2169
|
var theme = core.useTheme();
|
|
2170
2170
|
var useStyles = core.makeStyles({
|
|
@@ -2525,7 +2525,7 @@ 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
2529
|
|
|
2530
2530
|
var Container = function (_a) {
|
|
2531
2531
|
var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
|