@xyo-network/react-shared 2.27.13 → 2.27.14

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.
@@ -5,6 +5,7 @@ export interface TokenSummaryProps extends FlexBoxProps {
5
5
  icon?: string;
6
6
  symbol?: string;
7
7
  imgBgProps?: PaperProps;
8
+ imageMode?: 'circle';
8
9
  }
9
10
  export declare const TokenSummary: React.FC<TokenSummaryProps>;
10
11
  //# sourceMappingURL=TokenSummary.d.ts.map
@@ -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;CACxB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAcpD,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
- 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", sx: { borderRadius: '50%' } }, imgBgProps, { 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] }));
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;AAQ/D,MAAM,YAAY,GAAgC,CAAC,EAAgD,EAAE,EAAE;QAApD,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA9C,4CAAgD,CAAF;IACtG,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,EAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,IAAM,UAAU,cACrI,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;AAdY,QAAA,YAAY,gBAcxB"}
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"}
@@ -0,0 +1,7 @@
1
+ import '@mui/material/Paper/';
2
+ declare module '@mui/material/Paper/' {
3
+ interface PaperPropsVariantOverrides {
4
+ tokenBar: true;
5
+ }
6
+ }
7
+ //# sourceMappingURL=variantOverrides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variantOverrides.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenSummary/variantOverrides.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,0BAA0B;QAClC,QAAQ,EAAE,IAAI,CAAA;KACf;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("@mui/material/Paper/");
4
+ //# sourceMappingURL=variantOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variantOverrides.js","sourceRoot":"","sources":["../../../../src/components/TokenSummary/variantOverrides.ts"],"names":[],"mappings":";;AAAA,gCAA6B"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContextExState } from './State';
3
2
  export declare const createContextEx: <T>() => import("react").Context<T & ContextExState>;
4
3
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/contexts/contextEx/create.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,eAAe,sDAAwF,CAAA"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/contexts/contextEx/create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,eAAe,sDAAwF,CAAA"}