@xyo-network/react-gas-price 2.77.0 → 2.77.2

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.
@@ -1,212 +1,2 @@
1
- // src/components/Avatar/EthereumGasPriceAvatar.tsx
2
- import { LocalGasStationRounded as LocalGasStationRoundedIcon } from "@mui/icons-material";
3
- import { Avatar } from "@mui/material";
4
- import { jsx } from "react/jsx-runtime";
5
- var EthereumGasPriceAvatar = ({ ...props }) => {
6
- return /* @__PURE__ */ jsx(Avatar, { ...props, children: /* @__PURE__ */ jsx(LocalGasStationRoundedIcon, {}) });
7
- };
8
-
9
- // src/components/CardHeader/CardHeader.tsx
10
- import { forwardRef } from "react";
11
-
12
- // src/components/HeaderComponents/Actions.tsx
13
- import { Chip } from "@mui/material";
14
- import { FlexRow } from "@xylabs/react-flexbox";
15
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
16
- var GasPriceHeaderActionsBox = ({
17
- baseFee,
18
- baseFeeLabel = "Base Fee",
19
- blockNumber,
20
- blockNumberLabel = "Block Number",
21
- timestamp,
22
- ...props
23
- }) => {
24
- return /* @__PURE__ */ jsxs(FlexRow, { columnGap: 1, rowGap: 1, flexWrap: "wrap", ...props, children: [
25
- timestamp ? /* @__PURE__ */ jsx2(Chip, { label: new Date(timestamp).toLocaleString() }) : null,
26
- baseFee ? /* @__PURE__ */ jsx2(Chip, { label: `${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI` }) : null,
27
- blockNumber ? /* @__PURE__ */ jsx2(Chip, { label: `${blockNumberLabel} - ${blockNumber}` }) : null
28
- ] });
29
- };
30
-
31
- // src/components/HeaderComponents/Header/Header.tsx
32
- import { useTheme as useTheme2 } from "@mui/material";
33
- import { useGetTokenData } from "@xyo-network/react-shared";
34
-
35
- // src/components/HeaderComponents/Header/Heading.tsx
36
- import { useTheme } from "@mui/material";
37
- import { TypographyEx } from "@xyo-network/react-shared";
38
- import { jsxs as jsxs2 } from "react/jsx-runtime";
39
- var GasPriceHeadingTypography = ({ children, heading, networkIcon, ...props }) => {
40
- const theme = useTheme();
41
- return /* @__PURE__ */ jsxs2(TypographyEx, { fontSize: theme.spacing(6), lineHeight: 1, ...props, children: [
42
- heading,
43
- " ",
44
- networkIcon,
45
- " ",
46
- children
47
- ] });
48
- };
49
-
50
- // src/components/HeaderComponents/Header/Header.tsx
51
- import { jsx as jsx3 } from "react/jsx-runtime";
52
- var GasPriceHeaderTypography = ({ heading, children, ...props }) => {
53
- const theme = useTheme2();
54
- const [ethData] = useGetTokenData(["eth"]);
55
- const networkIcon = /* @__PURE__ */ jsx3("img", { height: theme.spacing(4), src: ethData.icon });
56
- return /* @__PURE__ */ jsx3(GasPriceHeadingTypography, { heading, networkIcon, ...props, children });
57
- };
58
-
59
- // src/components/layout/Header.tsx
60
- import { styled } from "@mui/material";
61
- import { FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
62
- var StyledGasPriceHeaderBox = styled(FlexRow2, { name: "StyledGasPriceEstimateBox" })(({ theme }) => ({
63
- alignItems: "end",
64
- columnGap: theme.spacing(2),
65
- flexWrap: "wrap",
66
- justifyContent: "space-between",
67
- justifyItems: "space-between",
68
- rowGap: theme.spacing(2),
69
- width: "100%"
70
- }));
71
-
72
- // src/components/layout/StyledCardHeader.tsx
73
- import { CardHeader, styled as styled2 } from "@mui/material";
74
- var StyledCardHeader = styled2(CardHeader, { name: "StyledCardHeader" })(({ theme }) => ({
75
- flexWrap: "wrap",
76
- rowGap: theme.spacing(2)
77
- }));
78
-
79
- // src/components/CardHeader/CardHeader.tsx
80
- import { jsx as jsx4 } from "react/jsx-runtime";
81
- var GasPriceWitnessCardHeader = forwardRef(({ title, parsedPayload, ...props }, ref) => /* @__PURE__ */ jsx4(
82
- StyledCardHeader,
83
- {
84
- title: /* @__PURE__ */ jsx4(GasPriceHeaderTypography, { heading: title }),
85
- action: /* @__PURE__ */ jsx4(
86
- GasPriceHeaderActionsBox,
87
- {
88
- timestamp: parsedPayload?.timestamp,
89
- baseFee: parsedPayload?.baseFee?.value,
90
- baseFeeLabel: parsedPayload?.baseFee?.label,
91
- blockNumber: parsedPayload?.blockNumber?.value,
92
- blockNumberLabel: parsedPayload?.blockNumber?.label
93
- }
94
- ),
95
- ref,
96
- ...props
97
- }
98
- ));
99
- GasPriceWitnessCardHeader.displayName = "GasPriceWitnessCardHeader";
100
-
101
- // src/components/GasFees/Card.tsx
102
- import { Card, Paper, useTheme as useTheme6 } from "@mui/material";
103
- import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
104
- import { CardContentEx } from "@xyo-network/react-card";
105
-
106
- // src/components/GasFees/components/GasPriceBox.tsx
107
- import { useTheme as useTheme3 } from "@mui/material";
108
- import { FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
109
- import { TypographyEx as TypographyEx3 } from "@xyo-network/react-shared";
110
-
111
- // src/components/GasFees/components/GweiLabelTypography.tsx
112
- import { TypographyEx as TypographyEx2 } from "@xyo-network/react-shared";
113
- import { jsx as jsx5 } from "react/jsx-runtime";
114
- var GweiLabelTypography = (props) => /* @__PURE__ */ jsx5(TypographyEx2, { variant: "caption", ...props, children: "GWEI" });
115
-
116
- // src/components/GasFees/components/GasPriceBox.tsx
117
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
118
- var GasPriceBox = ({ gasPrice, ...props }) => {
119
- const theme = useTheme3();
120
- return /* @__PURE__ */ jsxs3(FlexRow3, { columnGap: 1.5, rowGap: 1.5, alignItems: "end", ...props, children: [
121
- /* @__PURE__ */ jsx6(TypographyEx3, { lineHeight: 1, fontWeight: "200", fontSize: theme.spacing(6), title: gasPrice?.toString() ?? "", children: gasPrice?.toFixed(2) }),
122
- /* @__PURE__ */ jsx6(GweiLabelTypography, { fontSize: theme.spacing(2) })
123
- ] });
124
- };
125
-
126
- // src/components/GasFees/components/PriorityFeeBox.tsx
127
- import { LocalGasStationRounded as LocalGasStationRoundedIcon2 } from "@mui/icons-material";
128
- import { useTheme as useTheme4 } from "@mui/material";
129
- import { FlexCol, FlexGrowRow } from "@xylabs/react-flexbox";
130
- import { TypographyEx as TypographyEx4 } from "@xyo-network/react-shared";
131
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
132
- var PriorityFeeBox = ({ priorityFee, priorityFeeLabel = "Priority Fee", ...props }) => {
133
- const theme = useTheme4();
134
- return /* @__PURE__ */ jsxs4(FlexGrowRow, { width: "100%", justifyContent: "space-between", alignItems: "end", ...props, children: [
135
- /* @__PURE__ */ jsxs4(FlexCol, { alignItems: "start", children: [
136
- /* @__PURE__ */ jsx7(TypographyEx4, { children: priorityFeeLabel }),
137
- /* @__PURE__ */ jsxs4(TypographyEx4, { title: priorityFee?.toString() ?? "", children: [
138
- priorityFee?.toFixed(2),
139
- " ",
140
- /* @__PURE__ */ jsx7(GweiLabelTypography, { fontSize: theme.spacing(1) })
141
- ] })
142
- ] }),
143
- /* @__PURE__ */ jsx7(LocalGasStationRoundedIcon2, {})
144
- ] });
145
- };
146
-
147
- // src/components/GasFees/components/SpeedBox.tsx
148
- import { useTheme as useTheme5 } from "@mui/material";
149
- import { FlexGrowCol } from "@xylabs/react-flexbox";
150
- import { TypographyEx as TypographyEx5 } from "@xyo-network/react-shared";
151
- import { jsx as jsx8 } from "react/jsx-runtime";
152
- var SpeedBox = ({ speed, ...props }) => {
153
- const theme = useTheme5();
154
- return speed ? /* @__PURE__ */ jsx8(FlexGrowCol, { ...props, children: /* @__PURE__ */ jsx8(TypographyEx5, { fontSize: theme.spacing(3), fontWeight: "200", p: 1, children: speed }) }) : null;
155
- };
156
-
157
- // src/components/GasFees/Card.tsx
158
- import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
159
- var GasFeeCard = ({ gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = "low", ...props }) => {
160
- const theme = useTheme6();
161
- return /* @__PURE__ */ jsx9(Card, { sx: { p: 0 }, ...props, children: /* @__PURE__ */ jsxs5(CardContentEx, { removePadding: true, sx: { flexDirection: "column", flexGrow: 1, p: 0, rowGap: 2 }, children: [
162
- /* @__PURE__ */ jsxs5(FlexGrowCol2, { bgcolor: theme.palette.secondary.dark, alignItems: "start", p: 2, rowGap: 1.5, color: theme.palette.common.white, children: [
163
- /* @__PURE__ */ jsx9(GasPriceBox, { gasPrice }),
164
- priorityFee ? /* @__PURE__ */ jsx9(PriorityFeeBox, { priorityFee, priorityFeeLabel }) : null
165
- ] }),
166
- /* @__PURE__ */ jsx9(Paper, { elevation: speedPaperElevation, sx: { borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }, children: /* @__PURE__ */ jsx9(SpeedBox, { speed }) })
167
- ] }) });
168
- };
169
-
170
- // src/components/HeaderBox.tsx
171
- import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
172
- var GasPriceWitnessHeaderBox = ({ heading, parsedPayload, ...props }) => {
173
- return /* @__PURE__ */ jsxs6(StyledGasPriceHeaderBox, { ...props, children: [
174
- /* @__PURE__ */ jsx10(GasPriceHeaderTypography, { heading }),
175
- /* @__PURE__ */ jsx10(
176
- GasPriceHeaderActionsBox,
177
- {
178
- timestamp: parsedPayload?.timestamp,
179
- baseFee: parsedPayload?.baseFee?.value,
180
- baseFeeLabel: parsedPayload?.baseFee?.label,
181
- blockNumber: parsedPayload?.blockNumber?.value,
182
- blockNumberLabel: parsedPayload?.blockNumber?.label
183
- }
184
- )
185
- ] });
186
- };
187
-
188
- // src/components/RawPayload/ToggleRawPayloadBox.tsx
189
- import { Button, Collapse, Paper as Paper2 } from "@mui/material";
190
- import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
191
- import { useState } from "react";
192
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
193
- var ToggleRawPayloadBox = ({ gasPricePayload, ...props }) => {
194
- const [collapse, setCollapse] = useState(false);
195
- return gasPricePayload ? /* @__PURE__ */ jsxs7(FlexCol2, { rowGap: 1, ...props, children: [
196
- /* @__PURE__ */ jsx11(Button, { color: "secondary", sx: { bgcolor: "secondary.dark", color: "white" }, variant: "contained", onClick: () => setCollapse(!collapse), children: "Raw Payload" }),
197
- /* @__PURE__ */ jsx11(Collapse, { in: collapse, children: /* @__PURE__ */ jsx11(Paper2, { elevation: 4, sx: { p: 2 }, children: /* @__PURE__ */ jsx11("pre", { children: JSON.stringify(gasPricePayload, null, 2) }) }) })
198
- ] }) : null;
199
- };
200
- export {
201
- EthereumGasPriceAvatar,
202
- GasFeeCard,
203
- GasPriceHeaderActionsBox,
204
- GasPriceHeaderTypography,
205
- GasPriceHeadingTypography,
206
- GasPriceWitnessCardHeader,
207
- GasPriceWitnessHeaderBox,
208
- StyledCardHeader,
209
- StyledGasPriceHeaderBox,
210
- ToggleRawPayloadBox
211
- };
1
+ import{LocalGasStationRounded as S}from"@mui/icons-material";import{Avatar as L}from"@mui/material";import{jsx as f}from"react/jsx-runtime";var Ge=({...e})=>f(L,{...e,children:f(S,{})});import{forwardRef as M}from"react";import{Chip as x}from"@mui/material";import{FlexRow as W}from"@xylabs/react-flexbox";import{jsx as d,jsxs as k}from"react/jsx-runtime";var n=({baseFee:e,baseFeeLabel:o="Base Fee",blockNumber:r,blockNumberLabel:a="Block Number",timestamp:t,...p})=>k(W,{columnGap:1,rowGap:1,flexWrap:"wrap",...p,children:[t?d(x,{label:new Date(t).toLocaleString()}):null,e?d(x,{label:`${o} - ${e.toFixed(2)} GWEI`}):null,r?d(x,{label:`${a} - ${r}`}):null]});import{useTheme as A}from"@mui/material";import{useGetTokenData as $}from"@xyo-network/react-shared";import{useTheme as I}from"@mui/material";import{TypographyEx as v}from"@xyo-network/react-shared";import{jsxs as N}from"react/jsx-runtime";var h=({children:e,heading:o,networkIcon:r,...a})=>{let t=I();return N(v,{fontSize:t.spacing(6),lineHeight:1,...a,children:[o," ",r," ",e]})};import{jsx as G}from"react/jsx-runtime";var l=({heading:e,children:o,...r})=>{let a=A(),[t]=$(["eth"]),p=G("img",{height:a.spacing(4),src:t.icon});return G(h,{heading:e,networkIcon:p,...r,children:o})};import{styled as z}from"@mui/material";import{FlexRow as D}from"@xylabs/react-flexbox";var b=z(D,{name:"StyledGasPriceEstimateBox"})(({theme:e})=>({alignItems:"end",columnGap:e.spacing(2),flexWrap:"wrap",justifyContent:"space-between",justifyItems:"space-between",rowGap:e.spacing(2),width:"100%"}));import{CardHeader as U,styled as J}from"@mui/material";var F=J(U,{name:"StyledCardHeader"})(({theme:e})=>({flexWrap:"wrap",rowGap:e.spacing(2)}));import{jsx as P}from"react/jsx-runtime";var O=M(({title:e,parsedPayload:o,...r},a)=>P(F,{title:P(l,{heading:e}),action:P(n,{timestamp:o?.timestamp,baseFee:o?.baseFee?.value,baseFeeLabel:o?.baseFee?.label,blockNumber:o?.blockNumber?.value,blockNumberLabel:o?.blockNumber?.label}),ref:a,...r}));O.displayName="GasPriceWitnessCardHeader";import{Card as te,Paper as pe,useTheme as se}from"@mui/material";import{FlexGrowCol as ie}from"@xylabs/react-flexbox";import{CardContentEx as ne}from"@xyo-network/react-card";import{useTheme as Q}from"@mui/material";import{FlexRow as V}from"@xylabs/react-flexbox";import{TypographyEx as X}from"@xyo-network/react-shared";import{TypographyEx as q}from"@xyo-network/react-shared";import{jsx as K}from"react/jsx-runtime";var m=e=>K(q,{variant:"caption",...e,children:"GWEI"});import{jsx as u,jsxs as Y}from"react/jsx-runtime";var C=({gasPrice:e,...o})=>{let r=Q();return Y(V,{columnGap:1.5,rowGap:1.5,alignItems:"end",...o,children:[u(X,{lineHeight:1,fontWeight:"200",fontSize:r.spacing(6),title:e?.toString()??"",children:e?.toFixed(2)}),u(m,{fontSize:r.spacing(2)})]})};import{LocalGasStationRounded as Z}from"@mui/icons-material";import{useTheme as _}from"@mui/material";import{FlexCol as j,FlexGrowRow as ee}from"@xylabs/react-flexbox";import{TypographyEx as B}from"@xyo-network/react-shared";import{jsx as y,jsxs as g}from"react/jsx-runtime";var w=({priorityFee:e,priorityFeeLabel:o="Priority Fee",...r})=>{let a=_();return g(ee,{width:"100%",justifyContent:"space-between",alignItems:"end",...r,children:[g(j,{alignItems:"start",children:[y(B,{children:o}),g(B,{title:e?.toString()??"",children:[e?.toFixed(2)," ",y(m,{fontSize:a.spacing(1)})]})]}),y(Z,{})]})};import{useTheme as oe}from"@mui/material";import{FlexGrowCol as re}from"@xylabs/react-flexbox";import{TypographyEx as ae}from"@xyo-network/react-shared";import{jsx as T}from"react/jsx-runtime";var R=({speed:e,...o})=>{let r=oe();return e?T(re,{...o,children:T(ae,{fontSize:r.spacing(3),fontWeight:"200",p:1,children:e})}):null};import{jsx as s,jsxs as H}from"react/jsx-runtime";var wo=({gasPrice:e,speedPaperElevation:o,priorityFee:r,priorityFeeLabel:a,speed:t="low",...p})=>{let i=se();return s(te,{sx:{p:0},...p,children:H(ne,{removePadding:!0,sx:{flexDirection:"column",flexGrow:1,p:0,rowGap:2},children:[H(ie,{bgcolor:i.palette.secondary.dark,alignItems:"start",p:2,rowGap:1.5,color:i.palette.common.white,children:[s(C,{gasPrice:e}),r?s(w,{priorityFee:r,priorityFeeLabel:a}):null]}),s(pe,{elevation:o,sx:{borderRadius:`0 0 ${i.shape.borderRadius}px ${i.shape.borderRadius}px`},children:s(R,{speed:t})})]})})};import{jsx as E,jsxs as le}from"react/jsx-runtime";var So=({heading:e,parsedPayload:o,...r})=>le(b,{...r,children:[E(l,{heading:e}),E(n,{timestamp:o?.timestamp,baseFee:o?.baseFee?.value,baseFeeLabel:o?.baseFee?.label,blockNumber:o?.blockNumber?.value,blockNumberLabel:o?.blockNumber?.label})]});import{Button as me,Collapse as ce,Paper as xe}from"@mui/material";import{FlexCol as de}from"@xylabs/react-flexbox";import{useState as Pe}from"react";import{jsx as c,jsxs as ye}from"react/jsx-runtime";var Ao=({gasPricePayload:e,...o})=>{let[r,a]=Pe(!1);return e?ye(de,{rowGap:1,...o,children:[c(me,{color:"secondary",sx:{bgcolor:"secondary.dark",color:"white"},variant:"contained",onClick:()=>a(!r),children:"Raw Payload"}),c(ce,{in:r,children:c(xe,{elevation:4,sx:{p:2},children:c("pre",{children:JSON.stringify(e,null,2)})})})]}):null};export{Ge as EthereumGasPriceAvatar,wo as GasFeeCard,n as GasPriceHeaderActionsBox,l as GasPriceHeaderTypography,h as GasPriceHeadingTypography,O as GasPriceWitnessCardHeader,So as GasPriceWitnessHeaderBox,F as StyledCardHeader,b as StyledGasPriceHeaderBox,Ao as ToggleRawPayloadBox};
212
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/Avatar/EthereumGasPriceAvatar.tsx","../../src/components/CardHeader/CardHeader.tsx","../../src/components/HeaderComponents/Actions.tsx","../../src/components/HeaderComponents/Header/Header.tsx","../../src/components/HeaderComponents/Header/Heading.tsx","../../src/components/layout/Header.tsx","../../src/components/layout/StyledCardHeader.tsx","../../src/components/GasFees/Card.tsx","../../src/components/GasFees/components/GasPriceBox.tsx","../../src/components/GasFees/components/GweiLabelTypography.tsx","../../src/components/GasFees/components/PriorityFeeBox.tsx","../../src/components/GasFees/components/SpeedBox.tsx","../../src/components/HeaderBox.tsx","../../src/components/RawPayload/ToggleRawPayloadBox.tsx"],"sourcesContent":["import { LocalGasStationRounded as LocalGasStationRoundedIcon } from '@mui/icons-material'\nimport { Avatar, AvatarProps } from '@mui/material'\n\nexport const EthereumGasPriceAvatar: React.FC<AvatarProps> = ({ ...props }) => {\n return (\n <Avatar {...props}>\n <LocalGasStationRoundedIcon />\n </Avatar>\n )\n}\n","import { CardProps } from '@mui/material'\nimport { forwardRef } from 'react'\n\nimport { GasPriceWitnessUIBasePayload } from '../../types'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents'\nimport { StyledCardHeader } from '../layout'\n\nexport interface GasPriceCardHeaderProps extends CardProps {\n parsedPayload?: GasPriceWitnessUIBasePayload\n title?: string\n}\nexport const GasPriceWitnessCardHeader = forwardRef<HTMLDivElement, GasPriceCardHeaderProps>(({ title, parsedPayload, ...props }, ref) => (\n <StyledCardHeader\n title={<GasPriceHeaderTypography heading={title} />}\n action={\n <GasPriceHeaderActionsBox\n timestamp={parsedPayload?.timestamp}\n baseFee={parsedPayload?.baseFee?.value}\n baseFeeLabel={parsedPayload?.baseFee?.label}\n blockNumber={parsedPayload?.blockNumber?.value}\n blockNumberLabel={parsedPayload?.blockNumber?.label}\n />\n }\n ref={ref}\n {...props}\n />\n))\n\nGasPriceWitnessCardHeader.displayName = 'GasPriceWitnessCardHeader'\n","import { Chip } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\n\nexport interface GasPriceEstimateActionsBoxProps extends FlexBoxProps {\n baseFee?: number\n baseFeeLabel?: string\n blockNumber?: number\n blockNumberLabel?: string\n timestamp?: number\n}\n\nexport const GasPriceHeaderActionsBox: React.FC<GasPriceEstimateActionsBoxProps> = ({\n baseFee,\n baseFeeLabel = 'Base Fee',\n blockNumber,\n blockNumberLabel = 'Block Number',\n timestamp,\n ...props\n}) => {\n return (\n <FlexRow columnGap={1} rowGap={1} flexWrap=\"wrap\" {...props}>\n {timestamp ?\n <Chip label={new Date(timestamp).toLocaleString()} />\n : null}\n {baseFee ?\n <Chip label={`${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI`} />\n : null}\n {blockNumber ?\n <Chip label={`${blockNumberLabel} - ${blockNumber}`} />\n : null}\n </FlexRow>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { TypographyExProps, useGetTokenData } from '@xyo-network/react-shared'\n\nimport { GasPriceHeadingTypography } from './Heading'\n\nexport interface GasPriceHeaderTypographyProps extends TypographyExProps, WithChildren {\n heading?: string\n}\n\nexport const GasPriceHeaderTypography: React.FC<GasPriceHeaderTypographyProps> = ({ heading, children, ...props }) => {\n const theme = useTheme()\n const [ethData] = useGetTokenData(['eth'])\n const networkIcon = <img height={theme.spacing(4)} src={ethData.icon} />\n\n return (\n <GasPriceHeadingTypography heading={heading} networkIcon={networkIcon} {...props}>\n {children}\n </GasPriceHeadingTypography>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { TypographyEx, TypographyExProps } from '@xyo-network/react-shared'\nimport { ReactNode } from 'react'\n\nexport interface GasPriceHeadingTypographyProps extends TypographyExProps {\n children?: ReactNode\n heading?: string\n networkIcon?: ReactNode\n}\n\nexport const GasPriceHeadingTypography: React.FC<GasPriceHeadingTypographyProps> = ({ children, heading, networkIcon, ...props }) => {\n const theme = useTheme()\n return (\n <TypographyEx fontSize={theme.spacing(6)} lineHeight={1} {...props}>\n {heading} {networkIcon} {children}\n </TypographyEx>\n )\n}\n","import { styled } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nexport const StyledGasPriceHeaderBox = styled(FlexRow, { name: 'StyledGasPriceEstimateBox' })(({ theme }) => ({\n alignItems: 'end',\n columnGap: theme.spacing(2),\n flexWrap: 'wrap',\n justifyContent: 'space-between',\n justifyItems: 'space-between',\n rowGap: theme.spacing(2),\n width: '100%',\n}))\n","import { CardHeader, styled } from '@mui/material'\n\nexport const StyledCardHeader = styled(CardHeader, { name: 'StyledCardHeader' })(({ theme }) => ({\n flexWrap: 'wrap',\n rowGap: theme.spacing(2),\n}))\n","import { Card, CardProps, Paper, useTheme } from '@mui/material'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { CardContentEx } from '@xyo-network/react-card'\n\nimport { GasPriceBox, PriorityFeeBox, SpeedBox } from './components'\n\nexport interface GasFeeCardProps extends CardProps {\n gasPrice?: number\n priorityFee?: number\n priorityFeeLabel?: string\n speed?: string\n speedPaperElevation?: number\n}\n\nexport const GasFeeCard: React.FC<GasFeeCardProps> = ({ gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = 'low', ...props }) => {\n const theme = useTheme()\n\n return (\n <Card sx={{ p: 0 }} {...props}>\n <CardContentEx removePadding sx={{ flexDirection: 'column', flexGrow: 1, p: 0, rowGap: 2 }}>\n <FlexGrowCol bgcolor={theme.palette.secondary.dark} alignItems=\"start\" p={2} rowGap={1.5} color={theme.palette.common.white}>\n <GasPriceBox gasPrice={gasPrice} />\n {priorityFee ?\n <PriorityFeeBox priorityFee={priorityFee} priorityFeeLabel={priorityFeeLabel} />\n : null}\n </FlexGrowCol>\n <Paper elevation={speedPaperElevation} sx={{ borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }}>\n <SpeedBox speed={speed} />\n </Paper>\n </CardContentEx>\n </Card>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { TypographyEx } from '@xyo-network/react-shared'\n\nimport { GweiLabelTypography } from './GweiLabelTypography'\n\nexport interface GasPriceBoxProps extends FlexBoxProps {\n gasPrice?: number\n}\n\nexport const GasPriceBox: React.FC<GasPriceBoxProps> = ({ gasPrice, ...props }) => {\n const theme = useTheme()\n return (\n <FlexRow columnGap={1.5} rowGap={1.5} alignItems=\"end\" {...props}>\n <TypographyEx lineHeight={1} fontWeight=\"200\" fontSize={theme.spacing(6)} title={gasPrice?.toString() ?? ''}>\n {gasPrice?.toFixed(2)}\n </TypographyEx>\n <GweiLabelTypography fontSize={theme.spacing(2)} />\n </FlexRow>\n )\n}\n","import { TypographyEx, TypographyExProps } from '@xyo-network/react-shared'\n\nexport const GweiLabelTypography: React.FC<TypographyExProps> = (props) => (\n <TypographyEx variant=\"caption\" {...props}>\n GWEI\n </TypographyEx>\n)\n","import { LocalGasStationRounded as LocalGasStationRoundedIcon } from '@mui/icons-material'\nimport { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'\nimport { TypographyEx } from '@xyo-network/react-shared'\n\nimport { GweiLabelTypography } from './GweiLabelTypography'\n\nexport interface PriorityFeeBoxProps extends FlexBoxProps {\n priorityFee?: number\n priorityFeeLabel?: string\n}\n\nexport const PriorityFeeBox: React.FC<PriorityFeeBoxProps> = ({ priorityFee, priorityFeeLabel = 'Priority Fee', ...props }) => {\n const theme = useTheme()\n\n return (\n <FlexGrowRow width=\"100%\" justifyContent=\"space-between\" alignItems=\"end\" {...props}>\n <FlexCol alignItems=\"start\">\n <TypographyEx>{priorityFeeLabel}</TypographyEx>\n <TypographyEx title={priorityFee?.toString() ?? ''}>\n {priorityFee?.toFixed(2)} <GweiLabelTypography fontSize={theme.spacing(1)} />\n </TypographyEx>\n </FlexCol>\n <LocalGasStationRoundedIcon />\n </FlexGrowRow>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { TypographyEx } from '@xyo-network/react-shared'\n\nexport interface SpeedBoxProps extends FlexBoxProps {\n speed?: string\n}\n\nexport const SpeedBox: React.FC<SpeedBoxProps> = ({ speed, ...props }) => {\n const theme = useTheme()\n\n return speed ?\n <FlexGrowCol {...props}>\n <TypographyEx fontSize={theme.spacing(3)} fontWeight=\"200\" p={1}>\n {speed}\n </TypographyEx>\n </FlexGrowCol>\n : null\n}\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\n\nimport { GasPriceWitnessUIBasePayload } from '../types'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from './HeaderComponents'\nimport { StyledGasPriceHeaderBox } from './layout'\n\nexport interface GasPriceWitnessHeaderBoxProps extends FlexBoxProps {\n heading?: string\n parsedPayload?: GasPriceWitnessUIBasePayload\n}\n\nexport const GasPriceWitnessHeaderBox: React.FC<GasPriceWitnessHeaderBoxProps> = ({ heading, parsedPayload, ...props }) => {\n return (\n <StyledGasPriceHeaderBox {...props}>\n <GasPriceHeaderTypography heading={heading} />\n <GasPriceHeaderActionsBox\n timestamp={parsedPayload?.timestamp}\n baseFee={parsedPayload?.baseFee?.value}\n baseFeeLabel={parsedPayload?.baseFee?.label}\n blockNumber={parsedPayload?.blockNumber?.value}\n blockNumberLabel={parsedPayload?.blockNumber?.label}\n />\n </StyledGasPriceHeaderBox>\n )\n}\n","import { Button, Collapse, Paper } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nexport interface ToggleRawPayloadBoxProps extends FlexBoxProps {\n gasPricePayload?: object\n}\n\nexport const ToggleRawPayloadBox: React.FC<ToggleRawPayloadBoxProps> = ({ gasPricePayload, ...props }) => {\n const [collapse, setCollapse] = useState(false)\n return gasPricePayload ?\n <FlexCol rowGap={1} {...props}>\n <Button color=\"secondary\" sx={{ bgcolor: 'secondary.dark', color: 'white' }} variant=\"contained\" onClick={() => setCollapse(!collapse)}>\n Raw Payload\n </Button>\n <Collapse in={collapse}>\n <Paper elevation={4} sx={{ p: 2 }}>\n <pre>{JSON.stringify(gasPricePayload, null, 2)}</pre>\n </Paper>\n </Collapse>\n </FlexCol>\n : null\n}\n"],"mappings":";AAAA,SAAS,0BAA0B,kCAAkC;AACrE,SAAS,cAA2B;AAK9B;AAHC,IAAM,yBAAgD,CAAC,EAAE,GAAG,MAAM,MAAM;AAC7E,SACE,oBAAC,UAAQ,GAAG,OACV,8BAAC,8BAA2B,GAC9B;AAEJ;;;ACRA,SAAS,kBAAkB;;;ACD3B,SAAS,YAAY;AACrB,SAAuB,eAAe;AAmBlC,SAEI,OAAAA,MAFJ;AATG,IAAM,2BAAsE,CAAC;AAAA,EAClF;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,mBAAmB;AAAA,EACnB;AAAA,EACA,GAAG;AACL,MAAM;AACJ,SACE,qBAAC,WAAQ,WAAW,GAAG,QAAQ,GAAG,UAAS,QAAQ,GAAG,OACnD;AAAA,gBACC,gBAAAA,KAAC,QAAK,OAAO,IAAI,KAAK,SAAS,EAAE,eAAe,GAAG,IACnD;AAAA,IACD,UACC,gBAAAA,KAAC,QAAK,OAAO,GAAG,YAAY,MAAM,QAAQ,QAAQ,CAAC,CAAC,SAAS,IAC7D;AAAA,IACD,cACC,gBAAAA,KAAC,QAAK,OAAO,GAAG,gBAAgB,MAAM,WAAW,IAAI,IACrD;AAAA,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;AAAA,oBAAAC,MAAC,UAAO,OAAM,aAAY,IAAI,EAAE,SAAS,kBAAkB,OAAO,QAAQ,GAAG,SAAQ,aAAY,SAAS,MAAM,YAAY,CAAC,QAAQ,GAAG,yBAExI;AAAA,IACA,gBAAAA,MAAC,YAAS,IAAI,UACZ,0BAAAA,MAACF,QAAA,EAAM,WAAW,GAAG,IAAI,EAAE,GAAG,EAAE,GAC9B,0BAAAE,MAAC,SAAK,eAAK,UAAU,iBAAiB,MAAM,CAAC,GAAE,GACjD,GACF;AAAA,KACF,IACA;AACN;","names":["jsx","useTheme","jsxs","jsx","useTheme","FlexRow","styled","jsx","useTheme","FlexGrowCol","useTheme","FlexRow","TypographyEx","TypographyEx","jsx","jsx","jsxs","useTheme","FlexRow","TypographyEx","LocalGasStationRoundedIcon","useTheme","TypographyEx","jsx","jsxs","useTheme","TypographyEx","LocalGasStationRoundedIcon","useTheme","TypographyEx","jsx","jsx","jsxs","useTheme","FlexGrowCol","jsx","jsxs","Paper","FlexCol","jsx","jsxs"]}
1
+ {"version":3,"sources":["../../src/components/Avatar/EthereumGasPriceAvatar.tsx","../../src/components/CardHeader/CardHeader.tsx","../../src/components/HeaderComponents/Actions.tsx","../../src/components/HeaderComponents/Header/Header.tsx","../../src/components/HeaderComponents/Header/Heading.tsx","../../src/components/layout/Header.tsx","../../src/components/layout/StyledCardHeader.tsx","../../src/components/GasFees/Card.tsx","../../src/components/GasFees/components/GasPriceBox.tsx","../../src/components/GasFees/components/GweiLabelTypography.tsx","../../src/components/GasFees/components/PriorityFeeBox.tsx","../../src/components/GasFees/components/SpeedBox.tsx","../../src/components/HeaderBox.tsx","../../src/components/RawPayload/ToggleRawPayloadBox.tsx"],"sourcesContent":["import { LocalGasStationRounded as LocalGasStationRoundedIcon } from '@mui/icons-material'\nimport { Avatar, AvatarProps } from '@mui/material'\n\nexport const EthereumGasPriceAvatar: React.FC<AvatarProps> = ({ ...props }) => {\n return (\n <Avatar {...props}>\n <LocalGasStationRoundedIcon />\n </Avatar>\n )\n}\n","import { CardProps } from '@mui/material'\nimport { forwardRef } from 'react'\n\nimport { GasPriceWitnessUIBasePayload } from '../../types'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents'\nimport { StyledCardHeader } from '../layout'\n\nexport interface GasPriceCardHeaderProps extends CardProps {\n parsedPayload?: GasPriceWitnessUIBasePayload\n title?: string\n}\nexport const GasPriceWitnessCardHeader = forwardRef<HTMLDivElement, GasPriceCardHeaderProps>(({ title, parsedPayload, ...props }, ref) => (\n <StyledCardHeader\n title={<GasPriceHeaderTypography heading={title} />}\n action={\n <GasPriceHeaderActionsBox\n timestamp={parsedPayload?.timestamp}\n baseFee={parsedPayload?.baseFee?.value}\n baseFeeLabel={parsedPayload?.baseFee?.label}\n blockNumber={parsedPayload?.blockNumber?.value}\n blockNumberLabel={parsedPayload?.blockNumber?.label}\n />\n }\n ref={ref}\n {...props}\n />\n))\n\nGasPriceWitnessCardHeader.displayName = 'GasPriceWitnessCardHeader'\n","import { Chip } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\n\nexport interface GasPriceEstimateActionsBoxProps extends FlexBoxProps {\n baseFee?: number\n baseFeeLabel?: string\n blockNumber?: number\n blockNumberLabel?: string\n timestamp?: number\n}\n\nexport const GasPriceHeaderActionsBox: React.FC<GasPriceEstimateActionsBoxProps> = ({\n baseFee,\n baseFeeLabel = 'Base Fee',\n blockNumber,\n blockNumberLabel = 'Block Number',\n timestamp,\n ...props\n}) => {\n return (\n <FlexRow columnGap={1} rowGap={1} flexWrap=\"wrap\" {...props}>\n {timestamp ?\n <Chip label={new Date(timestamp).toLocaleString()} />\n : null}\n {baseFee ?\n <Chip label={`${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI`} />\n : null}\n {blockNumber ?\n <Chip label={`${blockNumberLabel} - ${blockNumber}`} />\n : null}\n </FlexRow>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { TypographyExProps, useGetTokenData } from '@xyo-network/react-shared'\n\nimport { GasPriceHeadingTypography } from './Heading'\n\nexport interface GasPriceHeaderTypographyProps extends TypographyExProps, WithChildren {\n heading?: string\n}\n\nexport const GasPriceHeaderTypography: React.FC<GasPriceHeaderTypographyProps> = ({ heading, children, ...props }) => {\n const theme = useTheme()\n const [ethData] = useGetTokenData(['eth'])\n const networkIcon = <img height={theme.spacing(4)} src={ethData.icon} />\n\n return (\n <GasPriceHeadingTypography heading={heading} networkIcon={networkIcon} {...props}>\n {children}\n </GasPriceHeadingTypography>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { TypographyEx, TypographyExProps } from '@xyo-network/react-shared'\nimport { ReactNode } from 'react'\n\nexport interface GasPriceHeadingTypographyProps extends TypographyExProps {\n children?: ReactNode\n heading?: string\n networkIcon?: ReactNode\n}\n\nexport const GasPriceHeadingTypography: React.FC<GasPriceHeadingTypographyProps> = ({ children, heading, networkIcon, ...props }) => {\n const theme = useTheme()\n return (\n <TypographyEx fontSize={theme.spacing(6)} lineHeight={1} {...props}>\n {heading} {networkIcon} {children}\n </TypographyEx>\n )\n}\n","import { styled } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nexport const StyledGasPriceHeaderBox = styled(FlexRow, { name: 'StyledGasPriceEstimateBox' })(({ theme }) => ({\n alignItems: 'end',\n columnGap: theme.spacing(2),\n flexWrap: 'wrap',\n justifyContent: 'space-between',\n justifyItems: 'space-between',\n rowGap: theme.spacing(2),\n width: '100%',\n}))\n","import { CardHeader, styled } from '@mui/material'\n\nexport const StyledCardHeader = styled(CardHeader, { name: 'StyledCardHeader' })(({ theme }) => ({\n flexWrap: 'wrap',\n rowGap: theme.spacing(2),\n}))\n","import { Card, CardProps, Paper, useTheme } from '@mui/material'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { CardContentEx } from '@xyo-network/react-card'\n\nimport { GasPriceBox, PriorityFeeBox, SpeedBox } from './components'\n\nexport interface GasFeeCardProps extends CardProps {\n gasPrice?: number\n priorityFee?: number\n priorityFeeLabel?: string\n speed?: string\n speedPaperElevation?: number\n}\n\nexport const GasFeeCard: React.FC<GasFeeCardProps> = ({ gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = 'low', ...props }) => {\n const theme = useTheme()\n\n return (\n <Card sx={{ p: 0 }} {...props}>\n <CardContentEx removePadding sx={{ flexDirection: 'column', flexGrow: 1, p: 0, rowGap: 2 }}>\n <FlexGrowCol bgcolor={theme.palette.secondary.dark} alignItems=\"start\" p={2} rowGap={1.5} color={theme.palette.common.white}>\n <GasPriceBox gasPrice={gasPrice} />\n {priorityFee ?\n <PriorityFeeBox priorityFee={priorityFee} priorityFeeLabel={priorityFeeLabel} />\n : null}\n </FlexGrowCol>\n <Paper elevation={speedPaperElevation} sx={{ borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }}>\n <SpeedBox speed={speed} />\n </Paper>\n </CardContentEx>\n </Card>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { TypographyEx } from '@xyo-network/react-shared'\n\nimport { GweiLabelTypography } from './GweiLabelTypography'\n\nexport interface GasPriceBoxProps extends FlexBoxProps {\n gasPrice?: number\n}\n\nexport const GasPriceBox: React.FC<GasPriceBoxProps> = ({ gasPrice, ...props }) => {\n const theme = useTheme()\n return (\n <FlexRow columnGap={1.5} rowGap={1.5} alignItems=\"end\" {...props}>\n <TypographyEx lineHeight={1} fontWeight=\"200\" fontSize={theme.spacing(6)} title={gasPrice?.toString() ?? ''}>\n {gasPrice?.toFixed(2)}\n </TypographyEx>\n <GweiLabelTypography fontSize={theme.spacing(2)} />\n </FlexRow>\n )\n}\n","import { TypographyEx, TypographyExProps } from '@xyo-network/react-shared'\n\nexport const GweiLabelTypography: React.FC<TypographyExProps> = (props) => (\n <TypographyEx variant=\"caption\" {...props}>\n GWEI\n </TypographyEx>\n)\n","import { LocalGasStationRounded as LocalGasStationRoundedIcon } from '@mui/icons-material'\nimport { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'\nimport { TypographyEx } from '@xyo-network/react-shared'\n\nimport { GweiLabelTypography } from './GweiLabelTypography'\n\nexport interface PriorityFeeBoxProps extends FlexBoxProps {\n priorityFee?: number\n priorityFeeLabel?: string\n}\n\nexport const PriorityFeeBox: React.FC<PriorityFeeBoxProps> = ({ priorityFee, priorityFeeLabel = 'Priority Fee', ...props }) => {\n const theme = useTheme()\n\n return (\n <FlexGrowRow width=\"100%\" justifyContent=\"space-between\" alignItems=\"end\" {...props}>\n <FlexCol alignItems=\"start\">\n <TypographyEx>{priorityFeeLabel}</TypographyEx>\n <TypographyEx title={priorityFee?.toString() ?? ''}>\n {priorityFee?.toFixed(2)} <GweiLabelTypography fontSize={theme.spacing(1)} />\n </TypographyEx>\n </FlexCol>\n <LocalGasStationRoundedIcon />\n </FlexGrowRow>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { TypographyEx } from '@xyo-network/react-shared'\n\nexport interface SpeedBoxProps extends FlexBoxProps {\n speed?: string\n}\n\nexport const SpeedBox: React.FC<SpeedBoxProps> = ({ speed, ...props }) => {\n const theme = useTheme()\n\n return speed ?\n <FlexGrowCol {...props}>\n <TypographyEx fontSize={theme.spacing(3)} fontWeight=\"200\" p={1}>\n {speed}\n </TypographyEx>\n </FlexGrowCol>\n : null\n}\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\n\nimport { GasPriceWitnessUIBasePayload } from '../types'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from './HeaderComponents'\nimport { StyledGasPriceHeaderBox } from './layout'\n\nexport interface GasPriceWitnessHeaderBoxProps extends FlexBoxProps {\n heading?: string\n parsedPayload?: GasPriceWitnessUIBasePayload\n}\n\nexport const GasPriceWitnessHeaderBox: React.FC<GasPriceWitnessHeaderBoxProps> = ({ heading, parsedPayload, ...props }) => {\n return (\n <StyledGasPriceHeaderBox {...props}>\n <GasPriceHeaderTypography heading={heading} />\n <GasPriceHeaderActionsBox\n timestamp={parsedPayload?.timestamp}\n baseFee={parsedPayload?.baseFee?.value}\n baseFeeLabel={parsedPayload?.baseFee?.label}\n blockNumber={parsedPayload?.blockNumber?.value}\n blockNumberLabel={parsedPayload?.blockNumber?.label}\n />\n </StyledGasPriceHeaderBox>\n )\n}\n","import { Button, Collapse, Paper } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nexport interface ToggleRawPayloadBoxProps extends FlexBoxProps {\n gasPricePayload?: object\n}\n\nexport const ToggleRawPayloadBox: React.FC<ToggleRawPayloadBoxProps> = ({ gasPricePayload, ...props }) => {\n const [collapse, setCollapse] = useState(false)\n return gasPricePayload ?\n <FlexCol rowGap={1} {...props}>\n <Button color=\"secondary\" sx={{ bgcolor: 'secondary.dark', color: 'white' }} variant=\"contained\" onClick={() => setCollapse(!collapse)}>\n Raw Payload\n </Button>\n <Collapse in={collapse}>\n <Paper elevation={4} sx={{ p: 2 }}>\n <pre>{JSON.stringify(gasPricePayload, null, 2)}</pre>\n </Paper>\n </Collapse>\n </FlexCol>\n : null\n}\n"],"mappings":"AAAA,OAAS,0BAA0BA,MAAkC,sBACrE,OAAS,UAAAC,MAA2B,gBAK9B,cAAAC,MAAA,oBAHC,IAAMC,GAAgD,CAAC,CAAE,GAAGC,CAAM,IAErEF,EAACD,EAAA,CAAQ,GAAGG,EACV,SAAAF,EAACF,EAAA,EAA2B,EAC9B,ECNJ,OAAS,cAAAK,MAAkB,QCD3B,OAAS,QAAAC,MAAY,gBACrB,OAAuB,WAAAC,MAAe,wBAmBlC,OAEI,OAAAC,EAFJ,QAAAC,MAAA,oBATG,IAAMC,EAAsE,CAAC,CAClF,QAAAC,EACA,aAAAC,EAAe,WACf,YAAAC,EACA,iBAAAC,EAA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,GAAQ,YAAAC,GAAU,SAAAC,OAAa,gBACxC,OAAuB,WAAAC,OAAe,wBACtC,OAAS,YAAAC,OAAgB,QASnB,OACE,OAAAC,EADF,QAAAC,OAAA,oBAHC,IAAMC,GAA0D,CAAC,CAAE,gBAAAC,EAAiB,GAAGC,CAAM,IAAM,CACxG,GAAM,CAACC,EAAUC,CAAW,EAAIP,GAAS,EAAK,EAC9C,OAAOI,EACHF,GAACH,GAAA,CAAQ,OAAQ,EAAI,GAAGM,EACtB,UAAAJ,EAACL,GAAA,CAAO,MAAM,YAAY,GAAI,CAAE,QAAS,iBAAkB,MAAO,OAAQ,EAAG,QAAQ,YAAY,QAAS,IAAMW,EAAY,CAACD,CAAQ,EAAG,uBAExI,EACAL,EAACJ,GAAA,CAAS,GAAIS,EACZ,SAAAL,EAACH,GAAA,CAAM,UAAW,EAAG,GAAI,CAAE,EAAG,CAAE,EAC9B,SAAAG,EAAC,OAAK,cAAK,UAAUG,EAAiB,KAAM,CAAC,EAAE,EACjD,EACF,GACF,EACA,IACN","names":["LocalGasStationRoundedIcon","Avatar","jsx","EthereumGasPriceAvatar","props","forwardRef","Chip","FlexRow","jsx","jsxs","GasPriceHeaderActionsBox","baseFee","baseFeeLabel","blockNumber","blockNumberLabel","timestamp","props","useTheme","useGetTokenData","useTheme","TypographyEx","jsxs","GasPriceHeadingTypography","children","heading","networkIcon","props","theme","jsx","GasPriceHeaderTypography","heading","children","props","theme","useTheme","ethData","useGetTokenData","networkIcon","GasPriceHeadingTypography","styled","FlexRow","StyledGasPriceHeaderBox","theme","CardHeader","styled","StyledCardHeader","theme","jsx","GasPriceWitnessCardHeader","forwardRef","title","parsedPayload","props","ref","StyledCardHeader","GasPriceHeaderTypography","GasPriceHeaderActionsBox","Card","Paper","useTheme","FlexGrowCol","CardContentEx","useTheme","FlexRow","TypographyEx","TypographyEx","jsx","GweiLabelTypography","props","jsx","jsxs","GasPriceBox","gasPrice","props","theme","useTheme","FlexRow","TypographyEx","GweiLabelTypography","LocalGasStationRoundedIcon","useTheme","FlexCol","FlexGrowRow","TypographyEx","jsx","jsxs","PriorityFeeBox","priorityFee","priorityFeeLabel","props","theme","useTheme","FlexGrowRow","FlexCol","TypographyEx","GweiLabelTypography","LocalGasStationRoundedIcon","useTheme","FlexGrowCol","TypographyEx","jsx","SpeedBox","speed","props","theme","jsx","jsxs","GasFeeCard","gasPrice","speedPaperElevation","priorityFee","priorityFeeLabel","speed","props","theme","useTheme","Card","CardContentEx","FlexGrowCol","GasPriceBox","PriorityFeeBox","Paper","SpeedBox","jsx","jsxs","GasPriceWitnessHeaderBox","heading","parsedPayload","props","StyledGasPriceHeaderBox","GasPriceHeaderTypography","GasPriceHeaderActionsBox","Button","Collapse","Paper","FlexCol","useState","jsx","jsxs","ToggleRawPayloadBox","gasPricePayload","props","collapse","setCollapse"]}
@@ -1,252 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- EthereumGasPriceAvatar: () => EthereumGasPriceAvatar,
24
- GasFeeCard: () => GasFeeCard,
25
- GasPriceHeaderActionsBox: () => GasPriceHeaderActionsBox,
26
- GasPriceHeaderTypography: () => GasPriceHeaderTypography,
27
- GasPriceHeadingTypography: () => GasPriceHeadingTypography,
28
- GasPriceWitnessCardHeader: () => GasPriceWitnessCardHeader,
29
- GasPriceWitnessHeaderBox: () => GasPriceWitnessHeaderBox,
30
- StyledCardHeader: () => StyledCardHeader,
31
- StyledGasPriceHeaderBox: () => StyledGasPriceHeaderBox,
32
- ToggleRawPayloadBox: () => ToggleRawPayloadBox
33
- });
34
- module.exports = __toCommonJS(src_exports);
35
-
36
- // src/components/Avatar/EthereumGasPriceAvatar.tsx
37
- var import_icons_material = require("@mui/icons-material");
38
- var import_material = require("@mui/material");
39
- var import_jsx_runtime = require("react/jsx-runtime");
40
- var EthereumGasPriceAvatar = ({ ...props }) => {
41
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Avatar, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.LocalGasStationRounded, {}) });
42
- };
43
-
44
- // src/components/CardHeader/CardHeader.tsx
45
- var import_react = require("react");
46
-
47
- // src/components/HeaderComponents/Actions.tsx
48
- var import_material2 = require("@mui/material");
49
- var import_react_flexbox = require("@xylabs/react-flexbox");
50
- var import_jsx_runtime2 = require("react/jsx-runtime");
51
- var GasPriceHeaderActionsBox = ({
52
- baseFee,
53
- baseFeeLabel = "Base Fee",
54
- blockNumber,
55
- blockNumberLabel = "Block Number",
56
- timestamp,
57
- ...props
58
- }) => {
59
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_flexbox.FlexRow, { columnGap: 1, rowGap: 1, flexWrap: "wrap", ...props, children: [
60
- timestamp ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Chip, { label: new Date(timestamp).toLocaleString() }) : null,
61
- baseFee ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Chip, { label: `${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI` }) : null,
62
- blockNumber ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Chip, { label: `${blockNumberLabel} - ${blockNumber}` }) : null
63
- ] });
64
- };
65
-
66
- // src/components/HeaderComponents/Header/Header.tsx
67
- var import_material4 = require("@mui/material");
68
- var import_react_shared2 = require("@xyo-network/react-shared");
69
-
70
- // src/components/HeaderComponents/Header/Heading.tsx
71
- var import_material3 = require("@mui/material");
72
- var import_react_shared = require("@xyo-network/react-shared");
73
- var import_jsx_runtime3 = require("react/jsx-runtime");
74
- var GasPriceHeadingTypography = ({ children, heading, networkIcon, ...props }) => {
75
- const theme = (0, import_material3.useTheme)();
76
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react_shared.TypographyEx, { fontSize: theme.spacing(6), lineHeight: 1, ...props, children: [
77
- heading,
78
- " ",
79
- networkIcon,
80
- " ",
81
- children
82
- ] });
83
- };
84
-
85
- // src/components/HeaderComponents/Header/Header.tsx
86
- var import_jsx_runtime4 = require("react/jsx-runtime");
87
- var GasPriceHeaderTypography = ({ heading, children, ...props }) => {
88
- const theme = (0, import_material4.useTheme)();
89
- const [ethData] = (0, import_react_shared2.useGetTokenData)(["eth"]);
90
- const networkIcon = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("img", { height: theme.spacing(4), src: ethData.icon });
91
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(GasPriceHeadingTypography, { heading, networkIcon, ...props, children });
92
- };
93
-
94
- // src/components/layout/Header.tsx
95
- var import_material5 = require("@mui/material");
96
- var import_react_flexbox2 = require("@xylabs/react-flexbox");
97
- var StyledGasPriceHeaderBox = (0, import_material5.styled)(import_react_flexbox2.FlexRow, { name: "StyledGasPriceEstimateBox" })(({ theme }) => ({
98
- alignItems: "end",
99
- columnGap: theme.spacing(2),
100
- flexWrap: "wrap",
101
- justifyContent: "space-between",
102
- justifyItems: "space-between",
103
- rowGap: theme.spacing(2),
104
- width: "100%"
105
- }));
106
-
107
- // src/components/layout/StyledCardHeader.tsx
108
- var import_material6 = require("@mui/material");
109
- var StyledCardHeader = (0, import_material6.styled)(import_material6.CardHeader, { name: "StyledCardHeader" })(({ theme }) => ({
110
- flexWrap: "wrap",
111
- rowGap: theme.spacing(2)
112
- }));
113
-
114
- // src/components/CardHeader/CardHeader.tsx
115
- var import_jsx_runtime5 = require("react/jsx-runtime");
116
- var GasPriceWitnessCardHeader = (0, import_react.forwardRef)(({ title, parsedPayload, ...props }, ref) => {
117
- var _a, _b, _c, _d;
118
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
119
- StyledCardHeader,
120
- {
121
- title: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(GasPriceHeaderTypography, { heading: title }),
122
- action: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
123
- GasPriceHeaderActionsBox,
124
- {
125
- timestamp: parsedPayload == null ? void 0 : parsedPayload.timestamp,
126
- baseFee: (_a = parsedPayload == null ? void 0 : parsedPayload.baseFee) == null ? void 0 : _a.value,
127
- baseFeeLabel: (_b = parsedPayload == null ? void 0 : parsedPayload.baseFee) == null ? void 0 : _b.label,
128
- blockNumber: (_c = parsedPayload == null ? void 0 : parsedPayload.blockNumber) == null ? void 0 : _c.value,
129
- blockNumberLabel: (_d = parsedPayload == null ? void 0 : parsedPayload.blockNumber) == null ? void 0 : _d.label
130
- }
131
- ),
132
- ref,
133
- ...props
134
- }
135
- );
136
- });
137
- GasPriceWitnessCardHeader.displayName = "GasPriceWitnessCardHeader";
138
-
139
- // src/components/GasFees/Card.tsx
140
- var import_material10 = require("@mui/material");
141
- var import_react_flexbox6 = require("@xylabs/react-flexbox");
142
- var import_react_card = require("@xyo-network/react-card");
143
-
144
- // src/components/GasFees/components/GasPriceBox.tsx
145
- var import_material7 = require("@mui/material");
146
- var import_react_flexbox3 = require("@xylabs/react-flexbox");
147
- var import_react_shared4 = require("@xyo-network/react-shared");
148
-
149
- // src/components/GasFees/components/GweiLabelTypography.tsx
150
- var import_react_shared3 = require("@xyo-network/react-shared");
151
- var import_jsx_runtime6 = require("react/jsx-runtime");
152
- var GweiLabelTypography = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_shared3.TypographyEx, { variant: "caption", ...props, children: "GWEI" });
153
-
154
- // src/components/GasFees/components/GasPriceBox.tsx
155
- var import_jsx_runtime7 = require("react/jsx-runtime");
156
- var GasPriceBox = ({ gasPrice, ...props }) => {
157
- const theme = (0, import_material7.useTheme)();
158
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_flexbox3.FlexRow, { columnGap: 1.5, rowGap: 1.5, alignItems: "end", ...props, children: [
159
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_shared4.TypographyEx, { lineHeight: 1, fontWeight: "200", fontSize: theme.spacing(6), title: (gasPrice == null ? void 0 : gasPrice.toString()) ?? "", children: gasPrice == null ? void 0 : gasPrice.toFixed(2) }),
160
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(GweiLabelTypography, { fontSize: theme.spacing(2) })
161
- ] });
162
- };
163
-
164
- // src/components/GasFees/components/PriorityFeeBox.tsx
165
- var import_icons_material2 = require("@mui/icons-material");
166
- var import_material8 = require("@mui/material");
167
- var import_react_flexbox4 = require("@xylabs/react-flexbox");
168
- var import_react_shared5 = require("@xyo-network/react-shared");
169
- var import_jsx_runtime8 = require("react/jsx-runtime");
170
- var PriorityFeeBox = ({ priorityFee, priorityFeeLabel = "Priority Fee", ...props }) => {
171
- const theme = (0, import_material8.useTheme)();
172
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_flexbox4.FlexGrowRow, { width: "100%", justifyContent: "space-between", alignItems: "end", ...props, children: [
173
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_flexbox4.FlexCol, { alignItems: "start", children: [
174
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_shared5.TypographyEx, { children: priorityFeeLabel }),
175
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_shared5.TypographyEx, { title: (priorityFee == null ? void 0 : priorityFee.toString()) ?? "", children: [
176
- priorityFee == null ? void 0 : priorityFee.toFixed(2),
177
- " ",
178
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GweiLabelTypography, { fontSize: theme.spacing(1) })
179
- ] })
180
- ] }),
181
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons_material2.LocalGasStationRounded, {})
182
- ] });
183
- };
184
-
185
- // src/components/GasFees/components/SpeedBox.tsx
186
- var import_material9 = require("@mui/material");
187
- var import_react_flexbox5 = require("@xylabs/react-flexbox");
188
- var import_react_shared6 = require("@xyo-network/react-shared");
189
- var import_jsx_runtime9 = require("react/jsx-runtime");
190
- var SpeedBox = ({ speed, ...props }) => {
191
- const theme = (0, import_material9.useTheme)();
192
- return speed ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_flexbox5.FlexGrowCol, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_shared6.TypographyEx, { fontSize: theme.spacing(3), fontWeight: "200", p: 1, children: speed }) }) : null;
193
- };
194
-
195
- // src/components/GasFees/Card.tsx
196
- var import_jsx_runtime10 = require("react/jsx-runtime");
197
- var GasFeeCard = ({ gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = "low", ...props }) => {
198
- const theme = (0, import_material10.useTheme)();
199
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material10.Card, { sx: { p: 0 }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_card.CardContentEx, { removePadding: true, sx: { flexDirection: "column", flexGrow: 1, p: 0, rowGap: 2 }, children: [
200
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_flexbox6.FlexGrowCol, { bgcolor: theme.palette.secondary.dark, alignItems: "start", p: 2, rowGap: 1.5, color: theme.palette.common.white, children: [
201
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(GasPriceBox, { gasPrice }),
202
- priorityFee ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PriorityFeeBox, { priorityFee, priorityFeeLabel }) : null
203
- ] }),
204
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material10.Paper, { elevation: speedPaperElevation, sx: { borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SpeedBox, { speed }) })
205
- ] }) });
206
- };
207
-
208
- // src/components/HeaderBox.tsx
209
- var import_jsx_runtime11 = require("react/jsx-runtime");
210
- var GasPriceWitnessHeaderBox = ({ heading, parsedPayload, ...props }) => {
211
- var _a, _b, _c, _d;
212
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(StyledGasPriceHeaderBox, { ...props, children: [
213
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(GasPriceHeaderTypography, { heading }),
214
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
215
- GasPriceHeaderActionsBox,
216
- {
217
- timestamp: parsedPayload == null ? void 0 : parsedPayload.timestamp,
218
- baseFee: (_a = parsedPayload == null ? void 0 : parsedPayload.baseFee) == null ? void 0 : _a.value,
219
- baseFeeLabel: (_b = parsedPayload == null ? void 0 : parsedPayload.baseFee) == null ? void 0 : _b.label,
220
- blockNumber: (_c = parsedPayload == null ? void 0 : parsedPayload.blockNumber) == null ? void 0 : _c.value,
221
- blockNumberLabel: (_d = parsedPayload == null ? void 0 : parsedPayload.blockNumber) == null ? void 0 : _d.label
222
- }
223
- )
224
- ] });
225
- };
226
-
227
- // src/components/RawPayload/ToggleRawPayloadBox.tsx
228
- var import_material11 = require("@mui/material");
229
- var import_react_flexbox7 = require("@xylabs/react-flexbox");
230
- var import_react2 = require("react");
231
- var import_jsx_runtime12 = require("react/jsx-runtime");
232
- var ToggleRawPayloadBox = ({ gasPricePayload, ...props }) => {
233
- const [collapse, setCollapse] = (0, import_react2.useState)(false);
234
- return gasPricePayload ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react_flexbox7.FlexCol, { rowGap: 1, ...props, children: [
235
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material11.Button, { color: "secondary", sx: { bgcolor: "secondary.dark", color: "white" }, variant: "contained", onClick: () => setCollapse(!collapse), children: "Raw Payload" }),
236
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material11.Collapse, { in: collapse, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material11.Paper, { elevation: 4, sx: { p: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("pre", { children: JSON.stringify(gasPricePayload, null, 2) }) }) })
237
- ] }) : null;
238
- };
239
- // Annotate the CommonJS export names for ESM import in node:
240
- 0 && (module.exports = {
241
- EthereumGasPriceAvatar,
242
- GasFeeCard,
243
- GasPriceHeaderActionsBox,
244
- GasPriceHeaderTypography,
245
- GasPriceHeadingTypography,
246
- GasPriceWitnessCardHeader,
247
- GasPriceWitnessHeaderBox,
248
- StyledCardHeader,
249
- StyledGasPriceHeaderBox,
250
- ToggleRawPayloadBox
251
- });
1
+ "use strict";var P=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var ae=Object.prototype.hasOwnProperty;var me=(o,e)=>{for(var r in e)P(o,r,{get:e[r],enumerable:!0})},ce=(o,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of se(e))!ae.call(o,t)&&t!==r&&P(o,t,{get:()=>e[t],enumerable:!(i=ne(e,t))||i.enumerable});return o};var xe=o=>ce(P({},"__esModule",{value:!0}),o);var Ge={};me(Ge,{EthereumGasPriceAvatar:()=>le,GasFeeCard:()=>ge,GasPriceHeaderActionsBox:()=>g,GasPriceHeaderTypography:()=>f,GasPriceHeadingTypography:()=>T,GasPriceWitnessCardHeader:()=>J,GasPriceWitnessHeaderBox:()=>fe,StyledCardHeader:()=>d,StyledGasPriceHeaderBox:()=>R,ToggleRawPayloadBox:()=>he});module.exports=xe(Ge);var L=require("@mui/icons-material"),W=require("@mui/material"),w=require("react/jsx-runtime"),le=({...o})=>(0,w.jsx)(W.Avatar,{...o,children:(0,w.jsx)(L.LocalGasStationRounded,{})});var U=require("react");var b=require("@mui/material"),k=require("@xylabs/react-flexbox"),c=require("react/jsx-runtime"),g=({baseFee:o,baseFeeLabel:e="Base Fee",blockNumber:r,blockNumberLabel:i="Block Number",timestamp:t,...p})=>(0,c.jsxs)(k.FlexRow,{columnGap:1,rowGap:1,flexWrap:"wrap",...p,children:[t?(0,c.jsx)(b.Chip,{label:new Date(t).toLocaleString()}):null,o?(0,c.jsx)(b.Chip,{label:`${e} - ${o.toFixed(2)} GWEI`}):null,r?(0,c.jsx)(b.Chip,{label:`${i} - ${r}`}):null]});var A=require("@mui/material"),$=require("@xyo-network/react-shared");var I=require("@mui/material"),v=require("@xyo-network/react-shared"),N=require("react/jsx-runtime"),T=({children:o,heading:e,networkIcon:r,...i})=>{let t=(0,I.useTheme)();return(0,N.jsxs)(v.TypographyEx,{fontSize:t.spacing(6),lineHeight:1,...i,children:[e," ",r," ",o]})};var y=require("react/jsx-runtime"),f=({heading:o,children:e,...r})=>{let i=(0,A.useTheme)(),[t]=(0,$.useGetTokenData)(["eth"]),p=(0,y.jsx)("img",{height:i.spacing(4),src:t.icon});return(0,y.jsx)(T,{heading:o,networkIcon:p,...r,children:e})};var z=require("@mui/material"),D=require("@xylabs/react-flexbox"),R=(0,z.styled)(D.FlexRow,{name:"StyledGasPriceEstimateBox"})(({theme:o})=>({alignItems:"end",columnGap:o.spacing(2),flexWrap:"wrap",justifyContent:"space-between",justifyItems:"space-between",rowGap:o.spacing(2),width:"100%"}));var F=require("@mui/material"),d=(0,F.styled)(F.CardHeader,{name:"StyledCardHeader"})(({theme:o})=>({flexWrap:"wrap",rowGap:o.spacing(2)}));var u=require("react/jsx-runtime"),J=(0,U.forwardRef)(({title:o,parsedPayload:e,...r},i)=>{var t,p,n,S;return(0,u.jsx)(d,{title:(0,u.jsx)(f,{heading:o}),action:(0,u.jsx)(g,{timestamp:e==null?void 0:e.timestamp,baseFee:(t=e==null?void 0:e.baseFee)==null?void 0:t.value,baseFeeLabel:(p=e==null?void 0:e.baseFee)==null?void 0:p.label,blockNumber:(n=e==null?void 0:e.blockNumber)==null?void 0:n.value,blockNumberLabel:(S=e==null?void 0:e.blockNumber)==null?void 0:S.label}),ref:i,...r})});J.displayName="GasPriceWitnessCardHeader";var x=require("@mui/material"),re=require("@xylabs/react-flexbox"),te=require("@xyo-network/react-card");var q=require("@mui/material"),K=require("@xylabs/react-flexbox"),Q=require("@xyo-network/react-shared");var M=require("@xyo-network/react-shared"),O=require("react/jsx-runtime"),C=o=>(0,O.jsx)(M.TypographyEx,{variant:"caption",...o,children:"GWEI"});var h=require("react/jsx-runtime"),V=({gasPrice:o,...e})=>{let r=(0,q.useTheme)();return(0,h.jsxs)(K.FlexRow,{columnGap:1.5,rowGap:1.5,alignItems:"end",...e,children:[(0,h.jsx)(Q.TypographyEx,{lineHeight:1,fontWeight:"200",fontSize:r.spacing(6),title:(o==null?void 0:o.toString())??"",children:o==null?void 0:o.toFixed(2)}),(0,h.jsx)(C,{fontSize:r.spacing(2)})]})};var X=require("@mui/icons-material"),Y=require("@mui/material"),B=require("@xylabs/react-flexbox"),H=require("@xyo-network/react-shared");var a=require("react/jsx-runtime"),Z=({priorityFee:o,priorityFeeLabel:e="Priority Fee",...r})=>{let i=(0,Y.useTheme)();return(0,a.jsxs)(B.FlexGrowRow,{width:"100%",justifyContent:"space-between",alignItems:"end",...r,children:[(0,a.jsxs)(B.FlexCol,{alignItems:"start",children:[(0,a.jsx)(H.TypographyEx,{children:e}),(0,a.jsxs)(H.TypographyEx,{title:(o==null?void 0:o.toString())??"",children:[o==null?void 0:o.toFixed(2)," ",(0,a.jsx)(C,{fontSize:i.spacing(1)})]})]}),(0,a.jsx)(X.LocalGasStationRounded,{})]})};var _=require("@mui/material"),j=require("@xylabs/react-flexbox"),ee=require("@xyo-network/react-shared"),E=require("react/jsx-runtime"),oe=({speed:o,...e})=>{let r=(0,_.useTheme)();return o?(0,E.jsx)(j.FlexGrowCol,{...e,children:(0,E.jsx)(ee.TypographyEx,{fontSize:r.spacing(3),fontWeight:"200",p:1,children:o})}):null};var s=require("react/jsx-runtime"),ge=({gasPrice:o,speedPaperElevation:e,priorityFee:r,priorityFeeLabel:i,speed:t="low",...p})=>{let n=(0,x.useTheme)();return(0,s.jsx)(x.Card,{sx:{p:0},...p,children:(0,s.jsxs)(te.CardContentEx,{removePadding:!0,sx:{flexDirection:"column",flexGrow:1,p:0,rowGap:2},children:[(0,s.jsxs)(re.FlexGrowCol,{bgcolor:n.palette.secondary.dark,alignItems:"start",p:2,rowGap:1.5,color:n.palette.common.white,children:[(0,s.jsx)(V,{gasPrice:o}),r?(0,s.jsx)(Z,{priorityFee:r,priorityFeeLabel:i}):null]}),(0,s.jsx)(x.Paper,{elevation:e,sx:{borderRadius:`0 0 ${n.shape.borderRadius}px ${n.shape.borderRadius}px`},children:(0,s.jsx)(oe,{speed:t})})]})})};var G=require("react/jsx-runtime"),fe=({heading:o,parsedPayload:e,...r})=>{var i,t,p,n;return(0,G.jsxs)(R,{...r,children:[(0,G.jsx)(f,{heading:o}),(0,G.jsx)(g,{timestamp:e==null?void 0:e.timestamp,baseFee:(i=e==null?void 0:e.baseFee)==null?void 0:i.value,baseFeeLabel:(t=e==null?void 0:e.baseFee)==null?void 0:t.label,blockNumber:(p=e==null?void 0:e.blockNumber)==null?void 0:p.value,blockNumberLabel:(n=e==null?void 0:e.blockNumber)==null?void 0:n.label})]})};var l=require("@mui/material"),ie=require("@xylabs/react-flexbox"),pe=require("react"),m=require("react/jsx-runtime"),he=({gasPricePayload:o,...e})=>{let[r,i]=(0,pe.useState)(!1);return o?(0,m.jsxs)(ie.FlexCol,{rowGap:1,...e,children:[(0,m.jsx)(l.Button,{color:"secondary",sx:{bgcolor:"secondary.dark",color:"white"},variant:"contained",onClick:()=>i(!r),children:"Raw Payload"}),(0,m.jsx)(l.Collapse,{in:r,children:(0,m.jsx)(l.Paper,{elevation:4,sx:{p:2},children:(0,m.jsx)("pre",{children:JSON.stringify(o,null,2)})})})]}):null};0&&(module.exports={EthereumGasPriceAvatar,GasFeeCard,GasPriceHeaderActionsBox,GasPriceHeaderTypography,GasPriceHeadingTypography,GasPriceWitnessCardHeader,GasPriceWitnessHeaderBox,StyledCardHeader,StyledGasPriceHeaderBox,ToggleRawPayloadBox});
252
2
  //# sourceMappingURL=index.cjs.map