@xyo-network/react-shared 2.27.7 → 2.27.10

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.
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Paper, Typography } from '@mui/material';
3
3
  import { FlexRow } from '@xylabs/react-flexbox';
4
4
  export const TokenBar = ({ text1, text2, ...props }) => {
5
- return (_jsx(Paper, { elevation: 0, ...props, children: _jsxs(FlexRow, { justifyContent: "space-between", children: [_jsx(Typography, { variant: "body1", fontWeight: 300, margin: 1, children: text1 }), _jsx(Typography, { variant: "body1", fontWeight: 300, textTransform: "uppercase", color: "gray", margin: 1, children: text2 })] }) }));
5
+ return (_jsx(Paper, { elevation: 0, className: "TokenBar-root", ...props, children: _jsxs(FlexRow, { justifyContent: "space-between", children: [_jsx(Typography, { variant: "body1", fontWeight: 300, margin: 1, children: text1 }), _jsx(Typography, { variant: "body1", fontWeight: 300, textTransform: "uppercase", color: "gray", margin: 1, children: text2 })] }) }));
6
6
  };
7
7
  //# sourceMappingURL=TokenBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenBar.js","sourceRoot":"","sources":["../../../../src/components/TokenBar/TokenBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAc,UAAU,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAM/C,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9E,OAAO,CACL,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,KAAM,KAAK,YAC5B,MAAC,OAAO,IAAC,cAAc,EAAC,eAAe,aACrC,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,YACnD,KAAK,GACK,EACb,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,aAAa,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAE,CAAC,YAC1F,KAAK,GACK,IACL,GACJ,CACT,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"TokenBar.js","sourceRoot":"","sources":["../../../../src/components/TokenBar/TokenBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAc,UAAU,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAM/C,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9E,OAAO,CACL,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAC,eAAe,KAAK,KAAK,YACtD,MAAC,OAAO,IAAC,cAAc,EAAC,eAAe,aACrC,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,YACnD,KAAK,GACK,EACb,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,aAAa,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAE,CAAC,YAC1F,KAAK,GACK,IACL,GACJ,CACT,CAAA;AACH,CAAC,CAAA"}
@@ -3,6 +3,7 @@ import { FlexBoxProps } from '@xylabs/react-flexbox';
3
3
  export interface TokenSummaryProps extends FlexBoxProps {
4
4
  icon?: string;
5
5
  symbol?: string;
6
+ imgBgColor?: string;
6
7
  }
7
8
  export declare const TokenSummary: React.FC<TokenSummaryProps>;
8
9
  //# sourceMappingURL=TokenSummary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";AACA,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;CAChB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAepD,CAAA"}
1
+ {"version":3,"file":"TokenSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";AACA,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,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAsBpD,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Typography, useTheme } from '@mui/material';
3
3
  import { FlexCol, FlexRow } from '@xylabs/react-flexbox';
4
- export const TokenSummary = ({ icon, symbol, children, ...props }) => {
4
+ export const TokenSummary = ({ imgBgColor, icon, symbol, children, ...props }) => {
5
5
  const theme = useTheme();
6
- return (_jsxs(_Fragment, { children: [_jsxs(FlexRow, { paddingBottom: 3, width: "100%", justifyContent: "flex-start", ...props, children: [_jsx(FlexCol, { borderRadius: "50%", padding: 1, bgcolor: theme.palette.text.primary, height: "40px", width: "40px", children: _jsx("img", { src: icon, height: "25px" }) }), _jsx(Typography, { variant: "h6", fontWeight: 300, textTransform: "uppercase", paddingLeft: 1, children: symbol })] }), children] }));
6
+ return (_jsxs(_Fragment, { children: [_jsxs(FlexRow, { className: "TokenSummary-root", paddingBottom: 3, width: "100%", justifyContent: "flex-start", ...props, children: [_jsx(FlexCol, { borderRadius: "50%", padding: 1, className: "token-logo-bg", bgcolor: imgBgColor ? imgBgColor : theme.palette.text.primary, height: "40px", width: "40px", children: _jsx("img", { src: icon, height: "25px" }) }), _jsx(Typography, { variant: "h6", fontWeight: 300, textTransform: "uppercase", paddingLeft: 1, children: symbol })] }), children] }));
7
7
  };
8
8
  //# sourceMappingURL=TokenSummary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenSummary.js","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAgB,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAOtE,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAChG,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,OAAO,CACL,8BACE,MAAC,OAAO,IAAC,aAAa,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,YAAY,KAAK,KAAK,aAC3E,KAAC,OAAO,IAAC,YAAY,EAAC,KAAK,EAAC,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,YACrG,cAAK,GAAG,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,GAAG,GACxB,EACV,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,UAAU,EAAE,GAAG,EAAE,aAAa,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC,YAC/E,MAAM,GACI,IACL,EACT,QAAQ,IACR,CACJ,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"TokenSummary.js","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAgB,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAQtE,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC5G,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,OAAO,CACL,8BACE,MAAC,OAAO,IAAC,SAAS,EAAC,mBAAmB,EAAC,aAAa,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,YAAY,KAAK,KAAK,aACzG,KAAC,OAAO,IACN,YAAY,EAAC,KAAK,EAClB,OAAO,EAAE,CAAC,EACV,SAAS,EAAC,eAAe,EACzB,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAC7D,MAAM,EAAC,MAAM,EACb,KAAK,EAAC,MAAM,YAEZ,cAAK,GAAG,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,GAAG,GACxB,EACV,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,UAAU,EAAE,GAAG,EAAE,aAAa,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC,YAC/E,MAAM,GACI,IACL,EACT,QAAQ,IACR,CACJ,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "@emotion/react": "^11.10.0",
14
14
  "@emotion/styled": "^11.10.0",
15
15
  "@mui/icons-material": "^5.8.4",
16
- "@mui/material": "^5.9.3",
16
+ "@mui/material": "^5.10.0",
17
17
  "@mui/styles": "^5.9.3",
18
18
  "@xylabs/pixel": "^1.4.5",
19
19
  "@xylabs/react-appbar": "^2.14.10",
@@ -22,20 +22,21 @@
22
22
  "@xylabs/react-flexbox": "^2.14.10",
23
23
  "@xylabs/react-link": "^2.14.10",
24
24
  "@xylabs/react-shared": "^2.14.10",
25
- "@xyo-network/core": "^2.24.10",
25
+ "@xyo-network/core": "^2.24.12",
26
26
  "axios": "^0.27.2",
27
27
  "react": "^18.2.0",
28
28
  "react-dom": "^18.2.0",
29
29
  "react-json-view": "^1.21.3",
30
- "react-router-dom": "^6.3.0"
30
+ "react-router-dom": "^6.3.0",
31
+ "tslib": "^2.4.0"
31
32
  },
32
33
  "description": "Common React library for all XYO projects that use React",
33
34
  "devDependencies": {
34
35
  "@storybook/react": "^6.5.10",
35
36
  "@xylabs/pixel": "^1.4.5",
36
- "@xylabs/tsconfig-dom": "^2.5.65",
37
- "@xyo-network/api": "^2.24.10",
38
- "@xyo-network/react-storybook": "^2.27.7"
37
+ "@xylabs/tsconfig-dom": "^2.5.84",
38
+ "@xyo-network/api": "^2.24.12",
39
+ "@xyo-network/react-storybook": "^2.27.10"
39
40
  },
40
41
  "browser": "dist/esm/index.js",
41
42
  "docs": "dist/docs.json",
@@ -66,13 +67,6 @@
66
67
  "react"
67
68
  ],
68
69
  "license": "LGPL-3.0",
69
- "resolutions": {
70
- "@storybook/react/webpack": "^5",
71
- "bn.js": "^5.2.0",
72
- "react": "^18.2.0",
73
- "react-dom": "^18.2.0",
74
- "webpack": "^5"
75
- },
76
70
  "publishConfig": {
77
71
  "access": "public"
78
72
  },
@@ -86,5 +80,5 @@
86
80
  },
87
81
  "sideEffects": false,
88
82
  "types": "dist/esm/index.d.ts",
89
- "version": "2.27.7"
83
+ "version": "2.27.10"
90
84
  }
@@ -7,7 +7,7 @@ export interface TokenBarProps extends PaperProps {
7
7
 
8
8
  export const TokenBar: React.FC<TokenBarProps> = ({ text1, text2, ...props }) => {
9
9
  return (
10
- <Paper elevation={0} {...props}>
10
+ <Paper elevation={0} className="TokenBar-root" {...props}>
11
11
  <FlexRow justifyContent="space-between">
12
12
  <Typography variant="body1" fontWeight={300} margin={1}>
13
13
  {text1}
@@ -4,14 +4,22 @@ import { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'
4
4
  export interface TokenSummaryProps extends FlexBoxProps {
5
5
  icon?: string
6
6
  symbol?: string
7
+ imgBgColor?: string
7
8
  }
8
9
 
9
- export const TokenSummary: React.FC<TokenSummaryProps> = ({ icon, symbol, children, ...props }) => {
10
+ export const TokenSummary: React.FC<TokenSummaryProps> = ({ imgBgColor, icon, symbol, children, ...props }) => {
10
11
  const theme = useTheme()
11
12
  return (
12
13
  <>
13
- <FlexRow paddingBottom={3} width="100%" justifyContent="flex-start" {...props}>
14
- <FlexCol borderRadius="50%" padding={1} bgcolor={theme.palette.text.primary} height="40px" width="40px">
14
+ <FlexRow className="TokenSummary-root" paddingBottom={3} width="100%" justifyContent="flex-start" {...props}>
15
+ <FlexCol
16
+ borderRadius="50%"
17
+ padding={1}
18
+ className="token-logo-bg"
19
+ bgcolor={imgBgColor ? imgBgColor : theme.palette.text.primary}
20
+ height="40px"
21
+ width="40px"
22
+ >
15
23
  <img src={icon} height="25px" />
16
24
  </FlexCol>
17
25
  <Typography variant="h6" fontWeight={300} textTransform="uppercase" paddingLeft={1}>