@xyo-network/react-shared 2.41.36 → 2.41.38
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/README.md +4 -61
- package/dist/cjs/components/BasicHero/BasicHero.js +1 -1
- package/dist/cjs/components/BasicHero/BasicHero.js.map +1 -1
- package/dist/docs.json +385 -385
- package/dist/esm/components/BasicHero/BasicHero.js +1 -1
- package/dist/esm/components/BasicHero/BasicHero.js.map +1 -1
- package/dist/types/components/BasicHero/BasicHero.d.ts +13 -13
- package/dist/types/components/BasicHero/BasicHero.d.ts.map +1 -1
- package/dist/types/components/Ellipsize.d.ts +1 -1
- package/dist/types/components/Ellipsize.d.ts.map +1 -1
- package/dist/types/components/TableCell/EllipsisTableCell.d.ts +4 -4
- package/dist/types/components/TableCell/EllipsisTableCell.d.ts.map +1 -1
- package/dist/types/components/TableCell/EllipsisTableCellDeprecated.d.ts +3 -3
- package/dist/types/components/TableCell/EllipsisTableCellDeprecated.d.ts.map +1 -1
- package/dist/types/components/TokenData/TokenData.d.ts +4 -4
- package/dist/types/components/TokenData/TokenData.d.ts.map +1 -1
- package/dist/types/components/TokenSummary/TokenSummary.d.ts +1 -1
- package/dist/types/components/TokenSummary/TokenSummary.d.ts.map +1 -1
- package/dist/types/contexts/diviner/Provider.d.ts +1 -1
- package/dist/types/contexts/diviner/Provider.d.ts.map +1 -1
- package/dist/types/lib/networkComponents.d.ts +1 -1
- package/dist/types/lib/networkComponents.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/components/BasicHero/BasicHero.tsx +18 -18
- package/src/components/Ellipsize.tsx +1 -1
- package/src/components/TableCell/EllipsisTableCell.tsx +4 -4
- package/src/components/TableCell/EllipsisTableCellDeprecated.tsx +3 -3
- package/src/components/TokenData/TokenData.ts +4 -4
- package/src/components/TokenSummary/TokenSummary.tsx +1 -1
- package/src/contexts/diviner/Provider.tsx +1 -1
- package/src/hooks/usePromise.tsx +1 -1
- package/src/lib/networkComponents.tsx +1 -1
|
@@ -4,7 +4,7 @@ import { ButtonEx } from '@xylabs/react-button';
|
|
|
4
4
|
import { FlexGrowCol, FlexGrowRow } from '@xylabs/react-flexbox';
|
|
5
5
|
import { LinkEx } from '@xylabs/react-link';
|
|
6
6
|
import { useGradientStyles, useIsMobile } from '../../hooks';
|
|
7
|
-
const SubLinkSection = ({
|
|
7
|
+
const SubLinkSection = ({ backgroundImageAlignment, subLinkIcon, subLinkPath, subLinkText1, subLinkText2 }) => {
|
|
8
8
|
return (_jsxs(FlexGrowRow, { width: "100%", sx: { flexDirection: { md: 'row', xs: 'column' }, justifyContent: { md: backgroundImageAlignment ? 'flex-start' : 'center', xs: 'center' } }, children: [subLinkIcon ? _jsxs("span", { children: [subLinkIcon, "\u00A0"] }) : null, _jsxs(Typography, { children: [subLinkText1, "\u00A0"] }), _jsx(LinkEx, { href: subLinkPath, underline: "always", target: "_blank", color: "inherit", children: _jsx(Typography, { children: subLinkText2 }) })] }));
|
|
9
9
|
};
|
|
10
10
|
const ButtonSection = ({ href, to, buttonText }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicHero.js","sourceRoot":"","sources":["../../../../src/components/BasicHero/BasicHero.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAgB,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAG3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAqC5D,MAAM,cAAc,GAAkC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"BasicHero.js","sourceRoot":"","sources":["../../../../src/components/BasicHero/BasicHero.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAA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AC,IAAI,EAAC,YAAY,QAAC,SAAS,EAAE,eAAe,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,YAChH,IAAI,GACM,EACb,MAAC,WAAW,IAAC,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,EAAC,SAAS,EAAE,CAAC,aACxF,KAAC,aAAa,IAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,GAAI,EAC5E,KAAC,aAAa,IAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,GAAI,IAChE,EACd,KAAC,cAAc,IACb,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,wBAAwB,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GACxD,IACU,GACT,EACP,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,YACrB,SAAS,CAAC,CAAC,CAAC,cAAK,GAAG,EAAE,SAAS,EAAE,KAAK,EAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,GACnD,IACF,GACG,GACA,CACf,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
export interface BasicHeroProps extends FlexBoxProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
desc: string;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
backgroundImage?: string;
|
|
6
|
+
button1Href?: string;
|
|
8
7
|
button1Text?: string;
|
|
9
|
-
button2Text?: string;
|
|
10
8
|
button1To?: string;
|
|
11
|
-
button2To?: string;
|
|
12
|
-
button1Href?: string;
|
|
13
9
|
button2Href?: string;
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
button2Text?: string;
|
|
11
|
+
button2To?: string;
|
|
12
|
+
desc: string;
|
|
13
|
+
gradientTitle?: string;
|
|
16
14
|
heroImage?: string;
|
|
17
|
-
subLinkPath?: string;
|
|
18
15
|
subLinkIcon?: ReactElement;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
subLinkPath?: string;
|
|
17
|
+
subLinkText1?: string;
|
|
18
|
+
subLinkText2?: string;
|
|
22
19
|
sx?: Record<string, string>;
|
|
20
|
+
textColor?: string;
|
|
21
|
+
title: string;
|
|
22
|
+
title2?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare const BasicHero: React.FC<BasicHeroProps>;
|
|
25
25
|
//# sourceMappingURL=BasicHero.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicHero.d.ts","sourceRoot":"","sources":["../../../../src/components/BasicHero/BasicHero.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA4B,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAIpC,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,
|
|
1
|
+
{"version":3,"file":"BasicHero.d.ts","sourceRoot":"","sources":["../../../../src/components/BasicHero/BasicHero.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA4B,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAIpC,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAoDD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoF9C,CAAA"}
|
|
@@ -6,8 +6,8 @@ interface TypographyWithComponentProps<Comp extends ElementType = ElementType> e
|
|
|
6
6
|
ellipsisPosition?: 'start' | 'end';
|
|
7
7
|
}
|
|
8
8
|
export interface EllipsizeBoxProps extends BoxProps {
|
|
9
|
-
typographyProps?: TypographyWithComponentProps;
|
|
10
9
|
ellipsisPosition?: 'start' | 'end';
|
|
10
|
+
typographyProps?: TypographyWithComponentProps;
|
|
11
11
|
}
|
|
12
12
|
export declare const EllipsizeBoxInner: React.FC<WithChildren<EllipsizeBoxProps>>;
|
|
13
13
|
export declare const EllipsizeBox: React.FC<WithChildren<EllipsizeBoxProps>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ellipsize.d.ts","sourceRoot":"","sources":["../../../src/components/Ellipsize.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAsB,eAAe,EAAE,MAAM,eAAe,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,EAAE,WAAW,EAAqC,MAAM,OAAO,CAAA;AA0E7E,UAAU,4BAA4B,CAAC,IAAI,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,eAAe;IACpG,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACnC;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,
|
|
1
|
+
{"version":3,"file":"Ellipsize.d.ts","sourceRoot":"","sources":["../../../src/components/Ellipsize.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAsB,eAAe,EAAE,MAAM,eAAe,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,EAAE,WAAW,EAAqC,MAAM,OAAO,CAAA;AA0E7E,UAAU,4BAA4B,CAAC,IAAI,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,eAAe;IACpG,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACnC;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAClC,eAAe,CAAC,EAAE,4BAA4B,CAAA;CAC/C;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAevE,CAAA;AAGD,eAAO,MAAM,YAAY,2CAAoB,CAAA"}
|
|
@@ -3,6 +3,10 @@ import { TableCellProps } from '@mui/material';
|
|
|
3
3
|
import { WithChildren } from '@xylabs/react-shared';
|
|
4
4
|
import { To } from 'react-router-dom';
|
|
5
5
|
export interface EllipsisTableCellProps extends TableCellProps {
|
|
6
|
+
href?: string;
|
|
7
|
+
link?: boolean;
|
|
8
|
+
to?: To;
|
|
9
|
+
value?: string;
|
|
6
10
|
/**
|
|
7
11
|
* Width of the table cell.
|
|
8
12
|
*
|
|
@@ -10,10 +14,6 @@ export interface EllipsisTableCellProps extends TableCellProps {
|
|
|
10
14
|
* if used on a cell that is not the first cell in the first row.
|
|
11
15
|
*/
|
|
12
16
|
width?: string | number;
|
|
13
|
-
href?: string;
|
|
14
|
-
to?: To;
|
|
15
|
-
link?: boolean;
|
|
16
|
-
value?: string;
|
|
17
17
|
}
|
|
18
18
|
export declare const EllipsisTableCellWithRef: React.FC<WithChildren<EllipsisTableCellProps>>;
|
|
19
19
|
export declare const EllipsisTableCell: import("react").FC<WithChildren<EllipsisTableCellProps>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAYrC,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D
|
|
1
|
+
{"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAYrC,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAkBnF,CAAA;AAGD,eAAO,MAAM,iBAAiB,0DAA2B,CAAA"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { TableCellProps } from '@mui/material';
|
|
3
3
|
import { To } from 'react-router-dom';
|
|
4
4
|
export interface EllipsisTableCellProps extends TableCellProps {
|
|
5
|
-
value?: string;
|
|
6
|
-
to?: To | undefined;
|
|
7
|
-
href?: string | undefined;
|
|
8
5
|
forCell?: number;
|
|
6
|
+
href?: string | undefined;
|
|
7
|
+
to?: To | undefined;
|
|
8
|
+
value?: string;
|
|
9
9
|
}
|
|
10
10
|
/** @deprecated - use new EllipsisTableCell */
|
|
11
11
|
export declare const EllipsisTableCellDeprecated: React.FC<EllipsisTableCellProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EllipsisTableCellDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCellDeprecated.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAY,MAAM,eAAe,CAAA;AAGnE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAOrC,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,
|
|
1
|
+
{"version":3,"file":"EllipsisTableCellDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCellDeprecated.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAY,MAAM,eAAe,CAAA;AAGnE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAOrC,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,EAAE,CAAC,EAAE,EAAE,GAAG,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,8CAA8C;AAC9C,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAuFxE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface TokenData {
|
|
2
|
-
uniqueTokenId: string;
|
|
3
|
-
tokenSymbol: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
etherscanLink: string;
|
|
6
2
|
coinmarketcapLink: string;
|
|
3
|
+
etherscanLink: string;
|
|
4
|
+
icon: string;
|
|
7
5
|
readableName: string;
|
|
6
|
+
tokenSymbol: string;
|
|
7
|
+
uniqueTokenId: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const TokenData: TokenData[];
|
|
10
10
|
//# sourceMappingURL=TokenData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenData.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenData/TokenData.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,
|
|
1
|
+
{"version":3,"file":"TokenData.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenData/TokenData.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,SAAS,EAyHhC,CAAA"}
|
|
@@ -2,9 +2,9 @@ import { AvatarProps, CardHeaderProps } from '@mui/material';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export interface TokenSummaryProps extends CardHeaderProps {
|
|
4
4
|
icon?: string;
|
|
5
|
+
imgBgProps?: AvatarProps;
|
|
5
6
|
symbol?: string;
|
|
6
7
|
symbolElement?: ReactNode;
|
|
7
|
-
imgBgProps?: AvatarProps;
|
|
8
8
|
}
|
|
9
9
|
export declare const TokenSummary: React.FC<TokenSummaryProps>;
|
|
10
10
|
//# 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,EAAE,WAAW,EAAc,eAAe,EAAc,MAAM,eAAe,CAAA;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,
|
|
1
|
+
{"version":3,"file":"TokenSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/TokenSummary/TokenSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,eAAe,EAAc,MAAM,eAAe,CAAA;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,WAAW,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAepD,CAAA"}
|
|
@@ -3,8 +3,8 @@ import { Context } from 'react';
|
|
|
3
3
|
import { ContextExProviderProps } from '../contextEx';
|
|
4
4
|
import { ResolvedDivinerState } from './State';
|
|
5
5
|
export interface DivinerProviderProps<D> extends ContextExProviderProps, WithChildren {
|
|
6
|
-
diviner?: D;
|
|
7
6
|
context: Context<ResolvedDivinerState<D>>;
|
|
7
|
+
diviner?: D;
|
|
8
8
|
}
|
|
9
9
|
/** Exposes a resolved diviner */
|
|
10
10
|
export declare const ResolvedDivinerProvider: <D>({ diviner: divinerProp, required, children, context }: DivinerProviderProps<D>) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/diviner/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAuB,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,sBAAsB,EAAE,YAAY;IACnF,OAAO,
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/diviner/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAuB,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,sBAAsB,EAAE,YAAY;IACnF,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAA;IACzC,OAAO,CAAC,EAAE,CAAC,CAAA;CACZ;AAED,iCAAiC;AACjC,eAAO,MAAM,uBAAuB,oGA4BnC,CAAA"}
|
|
@@ -2,9 +2,9 @@ import { SvgIconProps } from '@mui/material';
|
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
export type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner';
|
|
4
4
|
export interface NetworkComponentDetails {
|
|
5
|
+
icon: (props?: SvgIconProps) => ReactElement;
|
|
5
6
|
name: string;
|
|
6
7
|
slug: NetworkComponentSlug;
|
|
7
|
-
icon: (props?: SvgIconProps) => ReactElement;
|
|
8
8
|
}
|
|
9
9
|
export declare const networkComponents: NetworkComponentDetails[];
|
|
10
10
|
export declare const findNetworkComponentIndex: (slug: string) => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkComponents.d.ts","sourceRoot":"","sources":["../../../src/lib/networkComponents.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAA;AAElF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"networkComponents.d.ts","sourceRoot":"","sources":["../../../src/lib/networkComponents.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAA;AAElF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,KAAK,YAAY,CAAA;IAC5C,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAKtD,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,MAAM,WAErD,CAAA;AAED,eAAO,MAAM,oBAAoB,SAAU,MAAM,wCAEhD,CAAA"}
|
package/package.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@xylabs/react-flexbox": "^2.15.11",
|
|
18
18
|
"@xylabs/react-link": "^2.15.11",
|
|
19
19
|
"@xylabs/react-shared": "^2.15.11",
|
|
20
|
-
"@xyo-network/react-event": "^2.41.
|
|
20
|
+
"@xyo-network/react-event": "^2.41.38",
|
|
21
21
|
"async-mutex": "^0.4.0",
|
|
22
|
-
"axios": "^1.2.
|
|
22
|
+
"axios": "^1.2.6",
|
|
23
23
|
"bowser": "^2.11.0",
|
|
24
24
|
"js-cookie": "^3.0.1",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"randombytes": "^2.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@storybook/react": "^6.5.
|
|
30
|
+
"@storybook/react": "^6.5.16",
|
|
31
31
|
"@xylabs/react-quick-tip-button": "^2.15.11",
|
|
32
|
-
"@xylabs/ts-scripts-yarn3": "2.12.
|
|
32
|
+
"@xylabs/ts-scripts-yarn3": "2.12.29",
|
|
33
33
|
"require-from-string": "^2.0.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
},
|
|
84
84
|
"sideEffects": false,
|
|
85
85
|
"types": "dist/types/index.d.ts",
|
|
86
|
-
"version": "2.41.
|
|
86
|
+
"version": "2.41.38"
|
|
87
87
|
}
|
|
@@ -7,41 +7,41 @@ import { ReactElement } from 'react'
|
|
|
7
7
|
import { useGradientStyles, useIsMobile } from '../../hooks'
|
|
8
8
|
|
|
9
9
|
export interface BasicHeroProps extends FlexBoxProps {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
desc: string
|
|
10
|
+
backgroundColor?: string
|
|
11
|
+
backgroundImage?: string
|
|
12
|
+
button1Href?: string
|
|
14
13
|
button1Text?: string
|
|
15
|
-
button2Text?: string
|
|
16
14
|
button1To?: string
|
|
17
|
-
button2To?: string
|
|
18
|
-
button1Href?: string
|
|
19
15
|
button2Href?: string
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
button2Text?: string
|
|
17
|
+
button2To?: string
|
|
18
|
+
desc: string
|
|
19
|
+
gradientTitle?: string
|
|
22
20
|
heroImage?: string
|
|
23
|
-
subLinkPath?: string
|
|
24
21
|
subLinkIcon?: ReactElement
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
subLinkPath?: string
|
|
23
|
+
subLinkText1?: string
|
|
24
|
+
subLinkText2?: string
|
|
28
25
|
sx?: Record<string, string>
|
|
26
|
+
textColor?: string
|
|
27
|
+
title: string
|
|
28
|
+
title2?: string
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface SubLinkSectionProps {
|
|
32
|
+
backgroundImageAlignment?: boolean
|
|
33
|
+
subLinkIcon?: ReactElement
|
|
34
|
+
subLinkPath?: string
|
|
32
35
|
subLinkText1?: string
|
|
33
36
|
subLinkText2?: string
|
|
34
|
-
subLinkPath?: string
|
|
35
|
-
subLinkIcon?: ReactElement
|
|
36
|
-
backgroundImageAlignment?: boolean
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
interface ButtonSectionProps {
|
|
40
|
+
buttonText?: string
|
|
40
41
|
href?: string
|
|
41
42
|
to?: string
|
|
42
|
-
buttonText?: string
|
|
43
43
|
}
|
|
44
|
-
const SubLinkSection: React.FC<SubLinkSectionProps> = ({
|
|
44
|
+
const SubLinkSection: React.FC<SubLinkSectionProps> = ({ backgroundImageAlignment, subLinkIcon, subLinkPath, subLinkText1, subLinkText2 }) => {
|
|
45
45
|
return (
|
|
46
46
|
<FlexGrowRow
|
|
47
47
|
width="100%"
|
|
@@ -80,8 +80,8 @@ interface TypographyWithComponentProps<Comp extends ElementType = ElementType> e
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export interface EllipsizeBoxProps extends BoxProps {
|
|
83
|
-
typographyProps?: TypographyWithComponentProps
|
|
84
83
|
ellipsisPosition?: 'start' | 'end'
|
|
84
|
+
typographyProps?: TypographyWithComponentProps
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export const EllipsizeBoxInner: React.FC<WithChildren<EllipsizeBoxProps>> = forwardRef(
|
|
@@ -15,6 +15,10 @@ const EllipsisTableCellRoot = styled(TableCell, {
|
|
|
15
15
|
}))
|
|
16
16
|
|
|
17
17
|
export interface EllipsisTableCellProps extends TableCellProps {
|
|
18
|
+
href?: string
|
|
19
|
+
link?: boolean
|
|
20
|
+
to?: To
|
|
21
|
+
value?: string
|
|
18
22
|
/**
|
|
19
23
|
* Width of the table cell.
|
|
20
24
|
*
|
|
@@ -22,10 +26,6 @@ export interface EllipsisTableCellProps extends TableCellProps {
|
|
|
22
26
|
* if used on a cell that is not the first cell in the first row.
|
|
23
27
|
*/
|
|
24
28
|
width?: string | number
|
|
25
|
-
href?: string
|
|
26
|
-
to?: To
|
|
27
|
-
link?: boolean
|
|
28
|
-
value?: string
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export const EllipsisTableCellWithRef: React.FC<WithChildren<EllipsisTableCellProps>> = forwardRef(
|
|
@@ -9,10 +9,10 @@ import { getRemainingRowWidth } from './getRemainingRowWidth'
|
|
|
9
9
|
import { getSmallestParentWidth } from './getSmallestParentWidth'
|
|
10
10
|
|
|
11
11
|
export interface EllipsisTableCellProps extends TableCellProps {
|
|
12
|
-
value?: string
|
|
13
|
-
to?: To | undefined
|
|
14
|
-
href?: string | undefined
|
|
15
12
|
forCell?: number //cell index for ellipsized table cell
|
|
13
|
+
href?: string | undefined
|
|
14
|
+
to?: To | undefined
|
|
15
|
+
value?: string
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/** @deprecated - use new EllipsisTableCell */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as tokenImages from './img'
|
|
2
2
|
|
|
3
3
|
export interface TokenData {
|
|
4
|
-
uniqueTokenId: string
|
|
5
|
-
tokenSymbol: string
|
|
6
|
-
icon: string
|
|
7
|
-
etherscanLink: string
|
|
8
4
|
coinmarketcapLink: string
|
|
5
|
+
etherscanLink: string
|
|
6
|
+
icon: string
|
|
9
7
|
readableName: string
|
|
8
|
+
tokenSymbol: string
|
|
9
|
+
uniqueTokenId: string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const TokenData: TokenData[] = [
|
|
@@ -5,9 +5,9 @@ import { XyoThemeTokenAvatar } from '../XyoThemeTokenAvatar'
|
|
|
5
5
|
|
|
6
6
|
export interface TokenSummaryProps extends CardHeaderProps {
|
|
7
7
|
icon?: string
|
|
8
|
+
imgBgProps?: AvatarProps
|
|
8
9
|
symbol?: string
|
|
9
10
|
symbolElement?: ReactNode
|
|
10
|
-
imgBgProps?: AvatarProps
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const TokenSummary: React.FC<TokenSummaryProps> = ({ icon, symbol, symbolElement, children, ...props }) => {
|
|
@@ -5,8 +5,8 @@ import { ContextExProviderProps } from '../contextEx'
|
|
|
5
5
|
import { ResolvedDivinerState } from './State'
|
|
6
6
|
|
|
7
7
|
export interface DivinerProviderProps<D> extends ContextExProviderProps, WithChildren {
|
|
8
|
-
diviner?: D
|
|
9
8
|
context: Context<ResolvedDivinerState<D>>
|
|
9
|
+
diviner?: D
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/** Exposes a resolved diviner */
|
package/src/hooks/usePromise.tsx
CHANGED
|
@@ -23,7 +23,7 @@ const defaultState: PromiseState = {
|
|
|
23
23
|
|
|
24
24
|
// Since the resolved promise value can be anything, any seems appropriate
|
|
25
25
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
-
type Action = { type: State
|
|
26
|
+
type Action = { payload?: any; type: State }
|
|
27
27
|
|
|
28
28
|
const reducer = (_state: PromiseState, action: Action) => {
|
|
29
29
|
switch (action.type) {
|
|
@@ -8,9 +8,9 @@ import { ReactElement } from 'react'
|
|
|
8
8
|
export type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner'
|
|
9
9
|
|
|
10
10
|
export interface NetworkComponentDetails {
|
|
11
|
+
icon: (props?: SvgIconProps) => ReactElement
|
|
11
12
|
name: string
|
|
12
13
|
slug: NetworkComponentSlug
|
|
13
|
-
icon: (props?: SvgIconProps) => ReactElement
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export const networkComponents: NetworkComponentDetails[] = [
|