@xylabs/sdk-react 2.12.7 → 2.12.8

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.
@@ -11,7 +11,7 @@ const hooks_1 = require("../../hooks");
11
11
  const FlexBox_1 = require("../FlexBox");
12
12
  const Identicon_1 = require("../Identicon");
13
13
  const EthAccountBox = (_a) => {
14
- var { address, icon = false, iconSize = 16, iconOnly = false, shortenedLength, addressLength = 'auto', fontFamily = '"Source Code Pro",monospace' } = _a, props = tslib_1.__rest(_a, ["address", "icon", "iconSize", "iconOnly", "shortenedLength", "addressLength", "fontFamily"]);
14
+ var { address, icon = false, iconSize = 16, iconOnly = false, shortenedLength, height, addressLength = 'auto', fontFamily = '"Source Code Pro",monospace' } = _a, props = tslib_1.__rest(_a, ["address", "icon", "iconSize", "iconOnly", "shortenedLength", "height", "addressLength", "fontFamily"]);
15
15
  const { localAddress } = (0, react_1.useContext)(contexts_1.EthersContext);
16
16
  const theme = (0, material_1.useTheme)();
17
17
  const large = (0, hooks_1.useMediaQuery)(theme.breakpoints.up('md'));
@@ -27,7 +27,7 @@ const EthAccountBox = (_a) => {
27
27
  : addressToDisplay.toShortString()
28
28
  : '-- --';
29
29
  // Note: We use the all zero address for spacing in case it is
30
- return ((0, jsx_runtime_1.jsxs)(FlexBox_1.FlexRow, Object.assign({ justifyContent: "space-between", alignItems: "center", minHeight: theme.spacing(3) }, props, { children: [icon ? (0, jsx_runtime_1.jsx)(Identicon_1.Identicon, { minHeight: theme.spacing(3), minWidth: theme.spacing(3), bgcolor: theme.palette.secondary.main, size: iconSize, value: address === null || address === void 0 ? void 0 : address.toHex() }) : null, iconOnly ? null : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily }, { children: textToDisplay }))), isLocalAddress ? (0, jsx_runtime_1.jsx)(FlexBox_1.FlexRow, Object.assign({ marginLeft: 0.5 }, { children: "(You)" })) : null] })));
30
+ return ((0, jsx_runtime_1.jsxs)(FlexBox_1.FlexRow, Object.assign({ height: height, justifyContent: "space-between", alignItems: "stretch", minHeight: theme.spacing(3) }, props, { children: [icon ? ((0, jsx_runtime_1.jsx)(Identicon_1.Identicon, { minHeight: height !== null && height !== void 0 ? height : theme.spacing(3), minWidth: height !== null && height !== void 0 ? height : theme.spacing(3), bgcolor: theme.palette.secondary.main, size: iconSize, value: address === null || address === void 0 ? void 0 : address.toHex() })) : null, iconOnly ? null : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ alignSelf: "center", marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily }, { children: textToDisplay }))), isLocalAddress ? (0, jsx_runtime_1.jsx)(FlexBox_1.FlexRow, Object.assign({ marginLeft: 0.5 }, { children: "(You)" })) : null] })));
31
31
  };
32
32
  exports.EthAccountBox = EthAccountBox;
33
33
  //# sourceMappingURL=EthAccountBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EthAccountBox.js","sourceRoot":"","sources":["../../../../src/components/EthAccount/EthAccountBox.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAoD;AACpD,2CAAqD;AACrD,iCAAkC;AAElC,6CAA8C;AAC9C,uCAA2C;AAC3C,wCAAkD;AAClD,4CAAwC;AAGjC,MAAM,aAAa,GAA6C,CAAC,EASvE,EAAE,EAAE;QATmE,EACtE,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,KAAK,EAChB,eAAe,EACf,aAAa,GAAG,MAAM,EACtB,UAAU,GAAG,6BAA6B,OAE3C,EADI,KAAK,sBAR8D,6FASvE,CADS;IAER,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAA;IAClD,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAExB,MAAM,KAAK,GAAG,IAAA,qBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,EAAE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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,UAAU,gBAC5F,aAAa,IACH,CACd,EACA,cAAc,CAAC,CAAC,CAAC,uBAAC,iBAAO,kBAAC,UAAU,EAAE,GAAG,2BAAiB,CAAC,CAAC,CAAC,IAAI,KAC1D,CACX,CAAA;AACH,CAAC,CAAA;AA7CY,QAAA,aAAa,iBA6CzB"}
@@ -6,7 +6,7 @@ import { EthersContext } from '../../contexts';
6
6
  import { useMediaQuery } from '../../hooks';
7
7
  import { FlexRow } from '../FlexBox';
8
8
  import { Identicon } from '../Identicon';
9
- export const EthAccountBox = ({ address, icon = false, iconSize = 16, iconOnly = false, shortenedLength, addressLength = 'auto', fontFamily = '"Source Code Pro",monospace', ...props }) => {
9
+ export const EthAccountBox = ({ address, icon = false, iconSize = 16, iconOnly = false, shortenedLength, height, addressLength = 'auto', fontFamily = '"Source Code Pro",monospace', ...props }) => {
10
10
  const { localAddress } = useContext(EthersContext);
11
11
  const theme = useTheme();
12
12
  const large = useMediaQuery(theme.breakpoints.up('md'));
@@ -22,6 +22,6 @@ export const EthAccountBox = ({ address, icon = false, iconSize = 16, iconOnly =
22
22
  : addressToDisplay.toShortString()
23
23
  : '-- --';
24
24
  // Note: We use the all zero address for spacing in case it is
25
- return (_jsxs(FlexRow, { justifyContent: "space-between", alignItems: "center", minHeight: theme.spacing(3), ...props, children: [icon ? _jsx(Identicon, { minHeight: theme.spacing(3), minWidth: theme.spacing(3), bgcolor: theme.palette.secondary.main, size: iconSize, value: address?.toHex() }) : null, iconOnly ? null : (_jsx(Typography, { marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily, children: textToDisplay })), isLocalAddress ? _jsx(FlexRow, { marginLeft: 0.5, children: "(You)" }) : null] }));
25
+ return (_jsxs(FlexRow, { height: height, justifyContent: "space-between", alignItems: "stretch", minHeight: theme.spacing(3), ...props, children: [icon ? (_jsx(Identicon, { minHeight: height ?? theme.spacing(3), minWidth: height ?? theme.spacing(3), bgcolor: theme.palette.secondary.main, size: iconSize, value: address?.toHex() })) : null, iconOnly ? null : (_jsx(Typography, { alignSelf: "center", marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily, children: textToDisplay })), isLocalAddress ? _jsx(FlexRow, { marginLeft: 0.5, children: "(You)" }) : null] }));
26
26
  };
27
27
  //# sourceMappingURL=EthAccountBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EthAccountBox.js","sourceRoot":"","sources":["../../../../src/components/EthAccount/EthAccountBox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAgB,OAAO,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxC,MAAM,CAAC,MAAM,aAAa,GAA6C,CAAC,EACtE,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,KAAK,EAChB,eAAe,EACf,aAAa,GAAG,MAAM,EACtB,UAAU,GAAG,6BAA6B,EAC1C,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAA;IAClD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IAExB,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAEvD,MAAM,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,EAAE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,UAAU,EAAE,GAAG,sBAAiB,CAAC,CAAC,CAAC,IAAI,IAC1D,CACX,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -126,6 +126,6 @@
126
126
  },
127
127
  "sideEffects": false,
128
128
  "types": "dist/esm/index.d.ts",
129
- "version": "2.12.7",
129
+ "version": "2.12.8",
130
130
  "packageManager": "yarn@3.1.1"
131
131
  }
@@ -17,7 +17,7 @@ const StorybookEntry = {
17
17
 
18
18
  const Template: ComponentStory<typeof EthAccountBox> = (args) => (
19
19
  <FlexRow>
20
- <EthAccountBox {...args}></EthAccountBox>
20
+ <EthAccountBox height={40} {...args}></EthAccountBox>
21
21
  </FlexRow>
22
22
  )
23
23
 
@@ -14,6 +14,7 @@ export const EthAccountBox: React.FC<EthAccountProps & FlexBoxProps> = ({
14
14
  iconSize = 16,
15
15
  iconOnly = false,
16
16
  shortenedLength,
17
+ height,
17
18
  addressLength = 'auto',
18
19
  fontFamily = '"Source Code Pro",monospace',
19
20
  ...props
@@ -40,10 +41,12 @@ export const EthAccountBox: React.FC<EthAccountProps & FlexBoxProps> = ({
40
41
  // Note: We use the all zero address for spacing in case it is
41
42
 
42
43
  return (
43
- <FlexRow justifyContent="space-between" alignItems="center" minHeight={theme.spacing(3)} {...props}>
44
- {icon ? <Identicon minHeight={theme.spacing(3)} minWidth={theme.spacing(3)} bgcolor={theme.palette.secondary.main} size={iconSize} value={address?.toHex()} /> : null}
44
+ <FlexRow height={height} justifyContent="space-between" alignItems="stretch" minHeight={theme.spacing(3)} {...props}>
45
+ {icon ? (
46
+ <Identicon minHeight={height ?? theme.spacing(3)} minWidth={height ?? theme.spacing(3)} bgcolor={theme.palette.secondary.main} size={iconSize} value={address?.toHex()} />
47
+ ) : null}
45
48
  {iconOnly ? null : (
46
- <Typography marginLeft={icon ? 1 : 0} variant="body1" fontFamily={fontFamily}>
49
+ <Typography alignSelf="center" marginLeft={icon ? 1 : 0} variant="body1" fontFamily={fontFamily}>
47
50
  {textToDisplay}
48
51
  </Typography>
49
52
  )}