@xyo-network/react-gas-price 2.75.6 → 2.76.0

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.
Files changed (161) hide show
  1. package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.cts +4 -0
  2. package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.cts.map +1 -0
  3. package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.mts +4 -0
  4. package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.mts.map +1 -0
  5. package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.ts +4 -0
  6. package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.ts.map +1 -0
  7. package/dist/neutral/components/Avatar/index.d.cts +2 -0
  8. package/dist/neutral/components/Avatar/index.d.cts.map +1 -0
  9. package/dist/neutral/components/Avatar/index.d.mts +2 -0
  10. package/dist/neutral/components/Avatar/index.d.mts.map +1 -0
  11. package/dist/neutral/components/Avatar/index.d.ts +2 -0
  12. package/dist/neutral/components/Avatar/index.d.ts.map +1 -0
  13. package/dist/neutral/components/CardHeader/CardHeader.d.cts +9 -0
  14. package/dist/neutral/components/CardHeader/CardHeader.d.cts.map +1 -0
  15. package/dist/neutral/components/CardHeader/CardHeader.d.mts +9 -0
  16. package/dist/neutral/components/CardHeader/CardHeader.d.mts.map +1 -0
  17. package/dist/neutral/components/CardHeader/CardHeader.d.ts +9 -0
  18. package/dist/neutral/components/CardHeader/CardHeader.d.ts.map +1 -0
  19. package/dist/neutral/components/CardHeader/index.d.cts +2 -0
  20. package/dist/neutral/components/CardHeader/index.d.cts.map +1 -0
  21. package/dist/neutral/components/CardHeader/index.d.mts +2 -0
  22. package/dist/neutral/components/CardHeader/index.d.mts.map +1 -0
  23. package/dist/neutral/components/CardHeader/index.d.ts +2 -0
  24. package/dist/neutral/components/CardHeader/index.d.ts.map +1 -0
  25. package/dist/neutral/components/GasFees/Card.d.cts +11 -0
  26. package/dist/neutral/components/GasFees/Card.d.cts.map +1 -0
  27. package/dist/neutral/components/GasFees/Card.d.mts +11 -0
  28. package/dist/neutral/components/GasFees/Card.d.mts.map +1 -0
  29. package/dist/neutral/components/GasFees/Card.d.ts +11 -0
  30. package/dist/neutral/components/GasFees/Card.d.ts.map +1 -0
  31. package/dist/neutral/components/GasFees/components/GasPriceBox.d.cts +7 -0
  32. package/dist/neutral/components/GasFees/components/GasPriceBox.d.cts.map +1 -0
  33. package/dist/neutral/components/GasFees/components/GasPriceBox.d.mts +7 -0
  34. package/dist/neutral/components/GasFees/components/GasPriceBox.d.mts.map +1 -0
  35. package/dist/neutral/components/GasFees/components/GasPriceBox.d.ts +7 -0
  36. package/dist/neutral/components/GasFees/components/GasPriceBox.d.ts.map +1 -0
  37. package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.cts +4 -0
  38. package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.cts.map +1 -0
  39. package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.mts +4 -0
  40. package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.mts.map +1 -0
  41. package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.ts +4 -0
  42. package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.ts.map +1 -0
  43. package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.cts +8 -0
  44. package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.cts.map +1 -0
  45. package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.mts +8 -0
  46. package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.mts.map +1 -0
  47. package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.ts +8 -0
  48. package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.ts.map +1 -0
  49. package/dist/neutral/components/GasFees/components/SpeedBox.d.cts +7 -0
  50. package/dist/neutral/components/GasFees/components/SpeedBox.d.cts.map +1 -0
  51. package/dist/neutral/components/GasFees/components/SpeedBox.d.mts +7 -0
  52. package/dist/neutral/components/GasFees/components/SpeedBox.d.mts.map +1 -0
  53. package/dist/neutral/components/GasFees/components/SpeedBox.d.ts +7 -0
  54. package/dist/neutral/components/GasFees/components/SpeedBox.d.ts.map +1 -0
  55. package/dist/neutral/components/GasFees/components/index.d.cts +4 -0
  56. package/dist/neutral/components/GasFees/components/index.d.cts.map +1 -0
  57. package/dist/neutral/components/GasFees/components/index.d.mts +4 -0
  58. package/dist/neutral/components/GasFees/components/index.d.mts.map +1 -0
  59. package/dist/neutral/components/GasFees/components/index.d.ts +4 -0
  60. package/dist/neutral/components/GasFees/components/index.d.ts.map +1 -0
  61. package/dist/neutral/components/GasFees/index.d.cts +2 -0
  62. package/dist/neutral/components/GasFees/index.d.cts.map +1 -0
  63. package/dist/neutral/components/GasFees/index.d.mts +2 -0
  64. package/dist/neutral/components/GasFees/index.d.mts.map +1 -0
  65. package/dist/neutral/components/GasFees/index.d.ts +2 -0
  66. package/dist/neutral/components/GasFees/index.d.ts.map +1 -0
  67. package/dist/neutral/components/HeaderBox.d.cts +9 -0
  68. package/dist/neutral/components/HeaderBox.d.cts.map +1 -0
  69. package/dist/neutral/components/HeaderBox.d.mts +9 -0
  70. package/dist/neutral/components/HeaderBox.d.mts.map +1 -0
  71. package/dist/neutral/components/HeaderBox.d.ts +9 -0
  72. package/dist/neutral/components/HeaderBox.d.ts.map +1 -0
  73. package/dist/neutral/components/HeaderComponents/Actions.d.cts +11 -0
  74. package/dist/neutral/components/HeaderComponents/Actions.d.cts.map +1 -0
  75. package/dist/neutral/components/HeaderComponents/Actions.d.mts +11 -0
  76. package/dist/neutral/components/HeaderComponents/Actions.d.mts.map +1 -0
  77. package/dist/neutral/components/HeaderComponents/Actions.d.ts +11 -0
  78. package/dist/neutral/components/HeaderComponents/Actions.d.ts.map +1 -0
  79. package/dist/neutral/components/HeaderComponents/Header/Header.d.cts +8 -0
  80. package/dist/neutral/components/HeaderComponents/Header/Header.d.cts.map +1 -0
  81. package/dist/neutral/components/HeaderComponents/Header/Header.d.mts +8 -0
  82. package/dist/neutral/components/HeaderComponents/Header/Header.d.mts.map +1 -0
  83. package/dist/neutral/components/HeaderComponents/Header/Header.d.ts +8 -0
  84. package/dist/neutral/components/HeaderComponents/Header/Header.d.ts.map +1 -0
  85. package/dist/neutral/components/HeaderComponents/Header/Heading.d.cts +9 -0
  86. package/dist/neutral/components/HeaderComponents/Header/Heading.d.cts.map +1 -0
  87. package/dist/neutral/components/HeaderComponents/Header/Heading.d.mts +9 -0
  88. package/dist/neutral/components/HeaderComponents/Header/Heading.d.mts.map +1 -0
  89. package/dist/neutral/components/HeaderComponents/Header/Heading.d.ts +9 -0
  90. package/dist/neutral/components/HeaderComponents/Header/Heading.d.ts.map +1 -0
  91. package/dist/neutral/components/HeaderComponents/Header/index.d.cts +3 -0
  92. package/dist/neutral/components/HeaderComponents/Header/index.d.cts.map +1 -0
  93. package/dist/neutral/components/HeaderComponents/Header/index.d.mts +3 -0
  94. package/dist/neutral/components/HeaderComponents/Header/index.d.mts.map +1 -0
  95. package/dist/neutral/components/HeaderComponents/Header/index.d.ts +3 -0
  96. package/dist/neutral/components/HeaderComponents/Header/index.d.ts.map +1 -0
  97. package/dist/neutral/components/HeaderComponents/index.d.cts +3 -0
  98. package/dist/neutral/components/HeaderComponents/index.d.cts.map +1 -0
  99. package/dist/neutral/components/HeaderComponents/index.d.mts +3 -0
  100. package/dist/neutral/components/HeaderComponents/index.d.mts.map +1 -0
  101. package/dist/neutral/components/HeaderComponents/index.d.ts +3 -0
  102. package/dist/neutral/components/HeaderComponents/index.d.ts.map +1 -0
  103. package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.cts +7 -0
  104. package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.cts.map +1 -0
  105. package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.mts +7 -0
  106. package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.mts.map +1 -0
  107. package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.ts +7 -0
  108. package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.ts.map +1 -0
  109. package/dist/neutral/components/RawPayload/index.d.cts +2 -0
  110. package/dist/neutral/components/RawPayload/index.d.cts.map +1 -0
  111. package/dist/neutral/components/RawPayload/index.d.mts +2 -0
  112. package/dist/neutral/components/RawPayload/index.d.mts.map +1 -0
  113. package/dist/neutral/components/RawPayload/index.d.ts +2 -0
  114. package/dist/neutral/components/RawPayload/index.d.ts.map +1 -0
  115. package/dist/neutral/components/index.d.cts +8 -0
  116. package/dist/neutral/components/index.d.cts.map +1 -0
  117. package/dist/neutral/components/index.d.mts +8 -0
  118. package/dist/neutral/components/index.d.mts.map +1 -0
  119. package/dist/neutral/components/index.d.ts +8 -0
  120. package/dist/neutral/components/index.d.ts.map +1 -0
  121. package/dist/neutral/components/layout/Header.d.cts +3 -0
  122. package/dist/neutral/components/layout/Header.d.cts.map +1 -0
  123. package/dist/neutral/components/layout/Header.d.mts +3 -0
  124. package/dist/neutral/components/layout/Header.d.mts.map +1 -0
  125. package/dist/neutral/components/layout/Header.d.ts +3 -0
  126. package/dist/neutral/components/layout/Header.d.ts.map +1 -0
  127. package/dist/neutral/components/layout/StyledCardHeader.d.cts +5 -0
  128. package/dist/neutral/components/layout/StyledCardHeader.d.cts.map +1 -0
  129. package/dist/neutral/components/layout/StyledCardHeader.d.mts +5 -0
  130. package/dist/neutral/components/layout/StyledCardHeader.d.mts.map +1 -0
  131. package/dist/neutral/components/layout/StyledCardHeader.d.ts +5 -0
  132. package/dist/neutral/components/layout/StyledCardHeader.d.ts.map +1 -0
  133. package/dist/neutral/components/layout/index.d.cts +3 -0
  134. package/dist/neutral/components/layout/index.d.cts.map +1 -0
  135. package/dist/neutral/components/layout/index.d.mts +3 -0
  136. package/dist/neutral/components/layout/index.d.mts.map +1 -0
  137. package/dist/neutral/components/layout/index.d.ts +3 -0
  138. package/dist/neutral/components/layout/index.d.ts.map +1 -0
  139. package/dist/neutral/index.cjs +235 -0
  140. package/dist/neutral/index.cjs.map +1 -0
  141. package/dist/neutral/index.d.cts +3 -0
  142. package/dist/neutral/index.d.cts.map +1 -0
  143. package/dist/neutral/index.d.mts +3 -0
  144. package/dist/neutral/index.d.mts.map +1 -0
  145. package/dist/neutral/index.d.ts +3 -0
  146. package/dist/neutral/index.d.ts.map +1 -0
  147. package/dist/neutral/index.js +212 -0
  148. package/dist/neutral/index.js.map +1 -0
  149. package/dist/neutral/types/GasPriceWitnessPayload.d.cts +17 -0
  150. package/dist/neutral/types/GasPriceWitnessPayload.d.cts.map +1 -0
  151. package/dist/neutral/types/GasPriceWitnessPayload.d.mts +17 -0
  152. package/dist/neutral/types/GasPriceWitnessPayload.d.mts.map +1 -0
  153. package/dist/neutral/types/GasPriceWitnessPayload.d.ts +17 -0
  154. package/dist/neutral/types/GasPriceWitnessPayload.d.ts.map +1 -0
  155. package/dist/neutral/types/index.d.cts +2 -0
  156. package/dist/neutral/types/index.d.cts.map +1 -0
  157. package/dist/neutral/types/index.d.mts +2 -0
  158. package/dist/neutral/types/index.d.mts.map +1 -0
  159. package/dist/neutral/types/index.d.ts +2 -0
  160. package/dist/neutral/types/index.d.ts.map +1 -0
  161. package/package.json +8 -8
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts","../../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":["export * from './components'\nexport * from './types'\n","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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,4BAAqE;AACrE,sBAAoC;AAK9B;AAHC,IAAM,yBAAgD,CAAC,EAAE,GAAG,MAAM,MAAM;AAC7E,SACE,4CAAC,0BAAQ,GAAG,OACV,sDAAC,sBAAAA,wB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MAAM;AACxG,QAAM,CAAC,UAAU,WAAW,QAAI,wBAAS,KAAK;AAC9C,SAAO,kBACH,+CAAC,iCAAQ,QAAQ,GAAI,GAAG,OACtB;AAAA,kDAAC,4BAAO,OAAM,aAAY,IAAI,EAAE,SAAS,kBAAkB,OAAO,QAAQ,GAAG,SAAQ,aAAY,SAAS,MAAM,YAAY,CAAC,QAAQ,GAAG,yBAExI;AAAA,IACA,8CAAC,8BAAS,IAAI,UACZ,wDAAC,2BAAM,WAAW,GAAG,IAAI,EAAE,GAAG,EAAE,GAC9B,wDAAC,SAAK,eAAK,UAAU,iBAAiB,MAAM,CAAC,GAAE,GACjD,GACF;AAAA,KACF,IACA;AACN;","names":["LocalGasStationRoundedIcon","import_material","import_jsx_runtime","import_material","import_react_shared","import_material","import_jsx_runtime","import_jsx_runtime","import_material","import_react_flexbox","import_material","import_jsx_runtime","import_material","import_react_flexbox","import_material","import_react_flexbox","import_react_shared","import_react_shared","import_jsx_runtime","import_jsx_runtime","import_icons_material","import_material","import_react_flexbox","import_react_shared","import_jsx_runtime","LocalGasStationRoundedIcon","import_material","import_react_flexbox","import_react_shared","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","import_material","import_react_flexbox","import_react","import_jsx_runtime"]}
@@ -0,0 +1,3 @@
1
+ export * from './components';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './components';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './components';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,212 @@
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
+ };
212
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,SA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;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,eAAe;AAAA,QAC1B,SAAS,eAAe,SAAS;AAAA,QACjC,cAAc,eAAe,SAAS;AAAA,QACtC,aAAa,eAAe,aAAa;AAAA,QACzC,kBAAkB,eAAe,aAAa;AAAA;AAAA,IAChD;AAAA,KACF;AAEJ;;;ACxBA,SAAS,QAAQ,UAAU,SAAAE,cAAa;AACxC,SAAuB,WAAAC,gBAAe;AACtC,SAAS,gBAAgB;AASnB,SACE,OAAAC,OADF,QAAAC,aAAA;AAHC,IAAM,sBAA0D,CAAC,EAAE,iBAAiB,GAAG,MAAM,MAAM;AACxG,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,SAAO,kBACH,gBAAAA,MAACF,UAAA,EAAQ,QAAQ,GAAI,GAAG,OACtB;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"]}
@@ -0,0 +1,17 @@
1
+ export interface GasPriceWitnessUIBasePayload {
2
+ baseFee?: UIField;
3
+ blockNumber?: UIField;
4
+ gasPrice?: GasPrice[];
5
+ schema?: string;
6
+ timestamp?: number;
7
+ website?: string;
8
+ }
9
+ export interface GasPrice {
10
+ price?: UIField;
11
+ priorityFee?: UIField;
12
+ }
13
+ export interface UIField {
14
+ label?: string;
15
+ value?: number;
16
+ }
17
+ //# sourceMappingURL=GasPriceWitnessPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GasPriceWitnessPayload.d.ts","sourceRoot":"","sources":["../../../src/types/GasPriceWitnessPayload.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,17 @@
1
+ export interface GasPriceWitnessUIBasePayload {
2
+ baseFee?: UIField;
3
+ blockNumber?: UIField;
4
+ gasPrice?: GasPrice[];
5
+ schema?: string;
6
+ timestamp?: number;
7
+ website?: string;
8
+ }
9
+ export interface GasPrice {
10
+ price?: UIField;
11
+ priorityFee?: UIField;
12
+ }
13
+ export interface UIField {
14
+ label?: string;
15
+ value?: number;
16
+ }
17
+ //# sourceMappingURL=GasPriceWitnessPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GasPriceWitnessPayload.d.ts","sourceRoot":"","sources":["../../../src/types/GasPriceWitnessPayload.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,17 @@
1
+ export interface GasPriceWitnessUIBasePayload {
2
+ baseFee?: UIField;
3
+ blockNumber?: UIField;
4
+ gasPrice?: GasPrice[];
5
+ schema?: string;
6
+ timestamp?: number;
7
+ website?: string;
8
+ }
9
+ export interface GasPrice {
10
+ price?: UIField;
11
+ priorityFee?: UIField;
12
+ }
13
+ export interface UIField {
14
+ label?: string;
15
+ value?: number;
16
+ }
17
+ //# sourceMappingURL=GasPriceWitnessPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GasPriceWitnessPayload.d.ts","sourceRoot":"","sources":["../../../src/types/GasPriceWitnessPayload.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,2 @@
1
+ export * from './GasPriceWitnessPayload';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './GasPriceWitnessPayload';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './GasPriceWitnessPayload';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
package/package.json CHANGED
@@ -10,15 +10,15 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-flexbox": "^3.1.6",
14
- "@xylabs/react-shared": "^3.1.6",
15
- "@xyo-network/react-card": "~2.75.6",
16
- "@xyo-network/react-shared": "~2.75.6"
13
+ "@xylabs/react-flexbox": "^3.1.7",
14
+ "@xylabs/react-shared": "^3.1.7",
15
+ "@xyo-network/react-card": "~2.76.0",
16
+ "@xyo-network/react-shared": "~2.76.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@storybook/react": "^7.6.18",
20
- "@xylabs/ts-scripts-yarn3": "^3.9.1",
21
- "@xylabs/tsconfig-react": "^3.9.1",
19
+ "@storybook/react": "^7.6.19",
20
+ "@xylabs/ts-scripts-yarn3": "^3.10.0",
21
+ "@xylabs/tsconfig-react": "^3.10.0",
22
22
  "typescript": "^5.4.5"
23
23
  },
24
24
  "peerDependencies": {
@@ -79,6 +79,6 @@
79
79
  },
80
80
  "sideEffects": false,
81
81
  "types": "dist/browser/index.d.ts",
82
- "version": "2.75.6",
82
+ "version": "2.76.0",
83
83
  "type": "module"
84
84
  }