@xyo-network/react-shared 2.27.12 → 2.27.15
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/dist/cjs/components/TokenSummary/TokenSummary.d.ts +1 -0
- package/dist/cjs/components/TokenSummary/TokenSummary.d.ts.map +1 -1
- package/dist/cjs/components/TokenSummary/TokenSummary.js +3 -2
- package/dist/cjs/components/TokenSummary/TokenSummary.js.map +1 -1
- package/dist/docs.json +2755 -2733
- package/dist/esm/components/TokenSummary/TokenSummary.d.ts +1 -0
- package/dist/esm/components/TokenSummary/TokenSummary.d.ts.map +1 -1
- package/dist/esm/components/TokenSummary/TokenSummary.js +9 -2
- package/dist/esm/components/TokenSummary/TokenSummary.js.map +1 -1
- package/package.json +5 -5
- package/src/components/TokenSummary/TokenSummary.tsx +10 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,UAAU,EAAc,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAoB,MAAM,uBAAuB,CAAA;AAEtE,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"TokenSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,UAAU,EAAc,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAoB,MAAM,uBAAuB,CAAA;AAEtE,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,SAAS,CAAC,EAAE,QAAQ,CAAA;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqBpD,CAAA"}
|
|
@@ -6,8 +6,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
7
|
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
|
8
8
|
const TokenSummary = (_a) => {
|
|
9
|
-
var { imgBgProps, icon, symbol, children } = _a, props = tslib_1.__rest(_a, ["imgBgProps", "icon", "symbol", "children"]);
|
|
10
|
-
|
|
9
|
+
var { imageMode = 'circle', imgBgProps = {}, icon, symbol, children } = _a, props = tslib_1.__rest(_a, ["imageMode", "imgBgProps", "icon", "symbol", "children"]);
|
|
10
|
+
const paperProps = Object.assign(Object.assign({}, imgBgProps), { sx: Object.assign(Object.assign({}, imgBgProps.sx), { borderRadius: imageMode === 'circle' ? '50%' : 'inherit' }) });
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ className: "TokenSummary-root", paddingBottom: 3, width: "100%", justifyContent: "flex-start" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ component: react_flexbox_1.FlexCol, padding: 1, className: "token-logo-bg", height: "40px", width: "40px" }, paperProps, { children: (0, jsx_runtime_1.jsx)("img", { src: icon, height: "25px" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", fontWeight: 300, textTransform: "uppercase", paddingLeft: 1 }, { children: symbol }))] })), children] }));
|
|
11
12
|
};
|
|
12
13
|
exports.TokenSummary = TokenSummary;
|
|
13
14
|
//# sourceMappingURL=TokenSummary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenSummary.js","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA6D;AAC7D,yDAAsE;
|
|
1
|
+
{"version":3,"file":"TokenSummary.js","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA6D;AAC7D,yDAAsE;AAS/D,MAAM,YAAY,GAAgC,CAAC,EAA2E,EAAE,EAAE;QAA/E,EAAE,SAAS,GAAG,QAAQ,EAAE,UAAU,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAAzE,yDAA2E,CAAF;IACjI,MAAM,UAAU,mCACX,UAAU,KACb,EAAE,kCACG,UAAU,CAAC,EAAE,KAChB,YAAY,EAAE,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,MAE3D,CAAA;IACD,OAAO,CACL,6DACE,wBAAC,uBAAO,kBAAC,SAAS,EAAC,mBAAmB,EAAC,aAAa,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,YAAY,IAAK,KAAK,eACzG,uBAAC,gBAAK,kBAAC,SAAS,EAAE,uBAAO,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAC,eAAe,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,IAAK,UAAU,cACxG,gCAAK,GAAG,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,GAAG,IAC1B,EACR,uBAAC,qBAAU,kBAAC,OAAO,EAAC,IAAI,EAAC,UAAU,EAAE,GAAG,EAAE,aAAa,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC,gBAC/E,MAAM,IACI,KACL,EACT,QAAQ,IACR,CACJ,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,YAAY,gBAqBxB"}
|