@xyo-network/react-address-render 2.60.10 → 2.60.11
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/RenderRowBox.js +3 -3
- package/dist/cjs/components/RenderRowBox.js.map +1 -1
- package/dist/docs.json +916 -1167
- package/dist/esm/components/RenderRowBox.js +5 -5
- package/dist/esm/components/RenderRowBox.js.map +1 -1
- package/dist/types/components/RenderRowBox.d.ts +2 -4
- package/dist/types/components/RenderRowBox.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/RenderRowBox.tsx +18 -14
|
@@ -11,15 +11,15 @@ const react_shared_1 = require("@xyo-network/react-shared");
|
|
|
11
11
|
const react_1 = require("react");
|
|
12
12
|
const favorite_1 = require("./favorite");
|
|
13
13
|
exports.AddressRenderRowBox = (0, react_1.forwardRef)((_a, ref) => {
|
|
14
|
-
var { address, children, favorite: favoriteProp = false, iconOnly, iconSize = 24, icons, name, showFavorite = false } = _a, props = tslib_1.__rest(_a, ["address", "children", "favorite", "iconOnly", "iconSize", "icons", "name", "showFavorite"]);
|
|
14
|
+
var { address, children, disableSharedRef, favorite: favoriteProp = false, iconOnly, iconSize = 24, icons, name, showFavorite = false } = _a, props = tslib_1.__rest(_a, ["address", "children", "disableSharedRef", "favorite", "iconOnly", "iconSize", "icons", "name", "showFavorite"]);
|
|
15
15
|
const theme = (0, material_1.useTheme)();
|
|
16
16
|
const sharedRef = (0, react_shared_1.useShareForwardedRef)(ref);
|
|
17
17
|
const [elementRef, dispatch] = (0, react_event_1.useEvent)(undefined, sharedRef);
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ gap: 2, justifyContent: "flex-start", ref: elementRef, onClick: () => {
|
|
19
19
|
if (address) {
|
|
20
20
|
dispatch('address', 'click', address);
|
|
21
21
|
}
|
|
22
|
-
} }, props, { children: [icons && address ? ((0, jsx_runtime_1.jsx)(material_1.ListItemIcon, Object.assign({ sx: { minWidth: 0 } }, { children: (0, jsx_runtime_1.jsx)(react_identicon_1.Identicon, { size: iconSize, value: address }) }))) : null, iconOnly ? null : ((0, jsx_runtime_1.jsx)(
|
|
22
|
+
} }, props, { children: [icons && address ? ((0, jsx_runtime_1.jsx)(material_1.ListItemIcon, Object.assign({ sx: { minWidth: 0 } }, { children: (0, jsx_runtime_1.jsx)(react_identicon_1.Identicon, { size: iconSize, value: address }) }))) : null, iconOnly ? null : ((0, jsx_runtime_1.jsx)(react_shared_1.EllipsizeBox, Object.assign({ disableSharedRef: disableSharedRef, ellipsisPosition: 'end', width: "100%", typographyProps: { fontSize: theme.typography.body1.fontSize } }, { children: name !== null && name !== void 0 ? name : address }))), children, showFavorite && address ? ((0, jsx_runtime_1.jsx)(favorite_1.FavoriteIconButton, { name: name, size: 'small', value: address, valueType: 'address', favorite: favoriteProp })) : null] })));
|
|
23
23
|
});
|
|
24
24
|
exports.AddressRenderRowBox.displayName = 'AddressRenderRowBox';
|
|
25
25
|
//# sourceMappingURL=RenderRowBox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderRowBox.js","sourceRoot":"","sources":["../../../src/components/RenderRowBox.tsx"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RenderRowBox.js","sourceRoot":"","sources":["../../../src/components/RenderRowBox.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAsD;AACtD,yDAA6D;AAC7D,6DAAmD;AACnD,0DAAmD;AACnD,4DAA8E;AAC9E,iCAAkC;AAElC,yCAA+C;AAalC,QAAA,mBAAmB,GAAG,IAAA,kBAAU,EAC3C,CACE,EAA6I,EAC7I,GAAG,EACH,EAAE;QAFF,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,GAAG,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,EAAE,EAAE,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