@xyo-network/react-gas-price 2.81.10 → 2.83.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.
- package/dist/browser/index.d.ts +85 -3
- package/dist/browser/index.mjs +273 -0
- package/dist/browser/index.mjs.map +1 -0
- package/package.json +14 -30
- package/src/components/Avatar/EthereumGasPriceAvatar.stories.tsx +3 -3
- package/src/components/Avatar/EthereumGasPriceAvatar.tsx +1 -0
- package/src/components/Avatar/index.ts +1 -1
- package/src/components/CardHeader/CardHeader.tsx +6 -6
- package/src/components/CardHeader/index.ts +1 -1
- package/src/components/GasFees/Card.stories.tsx +2 -2
- package/src/components/GasFees/Card.tsx +5 -4
- package/src/components/GasFees/components/GasPriceBox.tsx +2 -1
- package/src/components/GasFees/components/GweiLabelTypography.tsx +2 -1
- package/src/components/GasFees/components/PriorityFeeBox.tsx +5 -2
- package/src/components/GasFees/components/SpeedBox.tsx +9 -6
- package/src/components/GasFees/components/index.ts +3 -3
- package/src/components/GasFees/index.ts +1 -1
- package/src/components/HeaderBox.tsx +4 -3
- package/src/components/HeaderComponents/Actions.stories.tsx +3 -3
- package/src/components/HeaderComponents/Actions.tsx +10 -9
- package/src/components/HeaderComponents/Header/Header.tsx +2 -1
- package/src/components/HeaderComponents/Header/Heading.tsx +6 -2
- package/src/components/HeaderComponents/Header/index.ts +2 -2
- package/src/components/HeaderComponents/index.ts +2 -2
- package/src/components/RawPayload/ToggleRawPayloadBox.stories.tsx +3 -3
- package/src/components/RawPayload/ToggleRawPayloadBox.tsx +14 -12
- package/src/components/RawPayload/index.ts +1 -1
- package/src/components/index.ts +7 -7
- package/src/components/layout/index.ts +2 -2
- package/src/index.ts +2 -2
- package/src/types/index.ts +1 -1
- package/xy.config.ts +12 -0
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.cts +0 -3
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.cts.map +0 -1
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.mts +0 -3
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.mts.map +0 -1
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.ts +0 -3
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.ts.map +0 -1
- package/dist/browser/components/Avatar/index.d.cts +0 -2
- package/dist/browser/components/Avatar/index.d.cts.map +0 -1
- package/dist/browser/components/Avatar/index.d.mts +0 -2
- package/dist/browser/components/Avatar/index.d.mts.map +0 -1
- package/dist/browser/components/Avatar/index.d.ts +0 -2
- package/dist/browser/components/Avatar/index.d.ts.map +0 -1
- package/dist/browser/components/CardHeader/CardHeader.d.cts +0 -8
- package/dist/browser/components/CardHeader/CardHeader.d.cts.map +0 -1
- package/dist/browser/components/CardHeader/CardHeader.d.mts +0 -8
- package/dist/browser/components/CardHeader/CardHeader.d.mts.map +0 -1
- package/dist/browser/components/CardHeader/CardHeader.d.ts +0 -8
- package/dist/browser/components/CardHeader/CardHeader.d.ts.map +0 -1
- package/dist/browser/components/CardHeader/index.d.cts +0 -2
- package/dist/browser/components/CardHeader/index.d.cts.map +0 -1
- package/dist/browser/components/CardHeader/index.d.mts +0 -2
- package/dist/browser/components/CardHeader/index.d.mts.map +0 -1
- package/dist/browser/components/CardHeader/index.d.ts +0 -2
- package/dist/browser/components/CardHeader/index.d.ts.map +0 -1
- package/dist/browser/components/GasFees/Card.d.cts +0 -10
- package/dist/browser/components/GasFees/Card.d.cts.map +0 -1
- package/dist/browser/components/GasFees/Card.d.mts +0 -10
- package/dist/browser/components/GasFees/Card.d.mts.map +0 -1
- package/dist/browser/components/GasFees/Card.d.ts +0 -10
- package/dist/browser/components/GasFees/Card.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/GasPriceBox.d.cts +0 -6
- package/dist/browser/components/GasFees/components/GasPriceBox.d.cts.map +0 -1
- package/dist/browser/components/GasFees/components/GasPriceBox.d.mts +0 -6
- package/dist/browser/components/GasFees/components/GasPriceBox.d.mts.map +0 -1
- package/dist/browser/components/GasFees/components/GasPriceBox.d.ts +0 -6
- package/dist/browser/components/GasFees/components/GasPriceBox.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.cts +0 -3
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.cts.map +0 -1
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.mts +0 -3
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.mts.map +0 -1
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.ts +0 -3
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.cts +0 -7
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.cts.map +0 -1
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.mts +0 -7
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.mts.map +0 -1
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.ts +0 -7
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/SpeedBox.d.cts +0 -6
- package/dist/browser/components/GasFees/components/SpeedBox.d.cts.map +0 -1
- package/dist/browser/components/GasFees/components/SpeedBox.d.mts +0 -6
- package/dist/browser/components/GasFees/components/SpeedBox.d.mts.map +0 -1
- package/dist/browser/components/GasFees/components/SpeedBox.d.ts +0 -6
- package/dist/browser/components/GasFees/components/SpeedBox.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/index.d.cts +0 -4
- package/dist/browser/components/GasFees/components/index.d.cts.map +0 -1
- package/dist/browser/components/GasFees/components/index.d.mts +0 -4
- package/dist/browser/components/GasFees/components/index.d.mts.map +0 -1
- package/dist/browser/components/GasFees/components/index.d.ts +0 -4
- package/dist/browser/components/GasFees/components/index.d.ts.map +0 -1
- package/dist/browser/components/GasFees/index.d.cts +0 -2
- package/dist/browser/components/GasFees/index.d.cts.map +0 -1
- package/dist/browser/components/GasFees/index.d.mts +0 -2
- package/dist/browser/components/GasFees/index.d.mts.map +0 -1
- package/dist/browser/components/GasFees/index.d.ts +0 -2
- package/dist/browser/components/GasFees/index.d.ts.map +0 -1
- package/dist/browser/components/HeaderBox.d.cts +0 -8
- package/dist/browser/components/HeaderBox.d.cts.map +0 -1
- package/dist/browser/components/HeaderBox.d.mts +0 -8
- package/dist/browser/components/HeaderBox.d.mts.map +0 -1
- package/dist/browser/components/HeaderBox.d.ts +0 -8
- package/dist/browser/components/HeaderBox.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Actions.d.cts +0 -10
- package/dist/browser/components/HeaderComponents/Actions.d.cts.map +0 -1
- package/dist/browser/components/HeaderComponents/Actions.d.mts +0 -10
- package/dist/browser/components/HeaderComponents/Actions.d.mts.map +0 -1
- package/dist/browser/components/HeaderComponents/Actions.d.ts +0 -10
- package/dist/browser/components/HeaderComponents/Actions.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Header.d.cts +0 -7
- package/dist/browser/components/HeaderComponents/Header/Header.d.cts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Header.d.mts +0 -7
- package/dist/browser/components/HeaderComponents/Header/Header.d.mts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Header.d.ts +0 -7
- package/dist/browser/components/HeaderComponents/Header/Header.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Heading.d.cts +0 -9
- package/dist/browser/components/HeaderComponents/Header/Heading.d.cts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Heading.d.mts +0 -9
- package/dist/browser/components/HeaderComponents/Header/Heading.d.mts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Heading.d.ts +0 -9
- package/dist/browser/components/HeaderComponents/Header/Heading.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/index.d.cts +0 -3
- package/dist/browser/components/HeaderComponents/Header/index.d.cts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/index.d.mts +0 -3
- package/dist/browser/components/HeaderComponents/Header/index.d.mts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/index.d.ts +0 -3
- package/dist/browser/components/HeaderComponents/Header/index.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/index.d.cts +0 -3
- package/dist/browser/components/HeaderComponents/index.d.cts.map +0 -1
- package/dist/browser/components/HeaderComponents/index.d.mts +0 -3
- package/dist/browser/components/HeaderComponents/index.d.mts.map +0 -1
- package/dist/browser/components/HeaderComponents/index.d.ts +0 -3
- package/dist/browser/components/HeaderComponents/index.d.ts.map +0 -1
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.cts +0 -6
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.cts.map +0 -1
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.mts +0 -6
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.mts.map +0 -1
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.ts +0 -6
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.ts.map +0 -1
- package/dist/browser/components/RawPayload/index.d.cts +0 -2
- package/dist/browser/components/RawPayload/index.d.cts.map +0 -1
- package/dist/browser/components/RawPayload/index.d.mts +0 -2
- package/dist/browser/components/RawPayload/index.d.mts.map +0 -1
- package/dist/browser/components/RawPayload/index.d.ts +0 -2
- package/dist/browser/components/RawPayload/index.d.ts.map +0 -1
- package/dist/browser/components/index.d.cts +0 -8
- package/dist/browser/components/index.d.cts.map +0 -1
- package/dist/browser/components/index.d.mts +0 -8
- package/dist/browser/components/index.d.mts.map +0 -1
- package/dist/browser/components/index.d.ts +0 -8
- package/dist/browser/components/index.d.ts.map +0 -1
- package/dist/browser/components/layout/Header.d.cts +0 -2
- package/dist/browser/components/layout/Header.d.cts.map +0 -1
- package/dist/browser/components/layout/Header.d.mts +0 -2
- package/dist/browser/components/layout/Header.d.mts.map +0 -1
- package/dist/browser/components/layout/Header.d.ts +0 -2
- package/dist/browser/components/layout/Header.d.ts.map +0 -1
- package/dist/browser/components/layout/StyledCardHeader.d.cts +0 -4
- package/dist/browser/components/layout/StyledCardHeader.d.cts.map +0 -1
- package/dist/browser/components/layout/StyledCardHeader.d.mts +0 -4
- package/dist/browser/components/layout/StyledCardHeader.d.mts.map +0 -1
- package/dist/browser/components/layout/StyledCardHeader.d.ts +0 -4
- package/dist/browser/components/layout/StyledCardHeader.d.ts.map +0 -1
- package/dist/browser/components/layout/index.d.cts +0 -3
- package/dist/browser/components/layout/index.d.cts.map +0 -1
- package/dist/browser/components/layout/index.d.mts +0 -3
- package/dist/browser/components/layout/index.d.mts.map +0 -1
- package/dist/browser/components/layout/index.d.ts +0 -3
- package/dist/browser/components/layout/index.d.ts.map +0 -1
- package/dist/browser/index.cjs +0 -235
- package/dist/browser/index.cjs.map +0 -1
- package/dist/browser/index.d.cts +0 -3
- package/dist/browser/index.d.cts.map +0 -1
- package/dist/browser/index.d.mts +0 -3
- package/dist/browser/index.d.mts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.js +0 -212
- package/dist/browser/index.js.map +0 -1
- package/dist/browser/types/GasPriceWitnessPayload.d.cts +0 -17
- package/dist/browser/types/GasPriceWitnessPayload.d.cts.map +0 -1
- package/dist/browser/types/GasPriceWitnessPayload.d.mts +0 -17
- package/dist/browser/types/GasPriceWitnessPayload.d.mts.map +0 -1
- package/dist/browser/types/GasPriceWitnessPayload.d.ts +0 -17
- package/dist/browser/types/GasPriceWitnessPayload.d.ts.map +0 -1
- package/dist/browser/types/index.d.cts +0 -2
- package/dist/browser/types/index.d.cts.map +0 -1
- package/dist/browser/types/index.d.mts +0 -2
- package/dist/browser/types/index.d.mts.map +0 -1
- package/dist/browser/types/index.d.ts +0 -2
- package/dist/browser/types/index.d.ts.map +0 -1
- package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.cts +0 -3
- package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.cts.map +0 -1
- package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.mts +0 -3
- package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.mts.map +0 -1
- package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.ts +0 -3
- package/dist/neutral/components/Avatar/EthereumGasPriceAvatar.d.ts.map +0 -1
- package/dist/neutral/components/Avatar/index.d.cts +0 -2
- package/dist/neutral/components/Avatar/index.d.cts.map +0 -1
- package/dist/neutral/components/Avatar/index.d.mts +0 -2
- package/dist/neutral/components/Avatar/index.d.mts.map +0 -1
- package/dist/neutral/components/Avatar/index.d.ts +0 -2
- package/dist/neutral/components/Avatar/index.d.ts.map +0 -1
- package/dist/neutral/components/CardHeader/CardHeader.d.cts +0 -8
- package/dist/neutral/components/CardHeader/CardHeader.d.cts.map +0 -1
- package/dist/neutral/components/CardHeader/CardHeader.d.mts +0 -8
- package/dist/neutral/components/CardHeader/CardHeader.d.mts.map +0 -1
- package/dist/neutral/components/CardHeader/CardHeader.d.ts +0 -8
- package/dist/neutral/components/CardHeader/CardHeader.d.ts.map +0 -1
- package/dist/neutral/components/CardHeader/index.d.cts +0 -2
- package/dist/neutral/components/CardHeader/index.d.cts.map +0 -1
- package/dist/neutral/components/CardHeader/index.d.mts +0 -2
- package/dist/neutral/components/CardHeader/index.d.mts.map +0 -1
- package/dist/neutral/components/CardHeader/index.d.ts +0 -2
- package/dist/neutral/components/CardHeader/index.d.ts.map +0 -1
- package/dist/neutral/components/GasFees/Card.d.cts +0 -10
- package/dist/neutral/components/GasFees/Card.d.cts.map +0 -1
- package/dist/neutral/components/GasFees/Card.d.mts +0 -10
- package/dist/neutral/components/GasFees/Card.d.mts.map +0 -1
- package/dist/neutral/components/GasFees/Card.d.ts +0 -10
- package/dist/neutral/components/GasFees/Card.d.ts.map +0 -1
- package/dist/neutral/components/GasFees/components/GasPriceBox.d.cts +0 -6
- package/dist/neutral/components/GasFees/components/GasPriceBox.d.cts.map +0 -1
- package/dist/neutral/components/GasFees/components/GasPriceBox.d.mts +0 -6
- package/dist/neutral/components/GasFees/components/GasPriceBox.d.mts.map +0 -1
- package/dist/neutral/components/GasFees/components/GasPriceBox.d.ts +0 -6
- package/dist/neutral/components/GasFees/components/GasPriceBox.d.ts.map +0 -1
- package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.cts +0 -3
- package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.cts.map +0 -1
- package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.mts +0 -3
- package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.mts.map +0 -1
- package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.ts +0 -3
- package/dist/neutral/components/GasFees/components/GweiLabelTypography.d.ts.map +0 -1
- package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.cts +0 -7
- package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.cts.map +0 -1
- package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.mts +0 -7
- package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.mts.map +0 -1
- package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.ts +0 -7
- package/dist/neutral/components/GasFees/components/PriorityFeeBox.d.ts.map +0 -1
- package/dist/neutral/components/GasFees/components/SpeedBox.d.cts +0 -6
- package/dist/neutral/components/GasFees/components/SpeedBox.d.cts.map +0 -1
- package/dist/neutral/components/GasFees/components/SpeedBox.d.mts +0 -6
- package/dist/neutral/components/GasFees/components/SpeedBox.d.mts.map +0 -1
- package/dist/neutral/components/GasFees/components/SpeedBox.d.ts +0 -6
- package/dist/neutral/components/GasFees/components/SpeedBox.d.ts.map +0 -1
- package/dist/neutral/components/GasFees/components/index.d.cts +0 -4
- package/dist/neutral/components/GasFees/components/index.d.cts.map +0 -1
- package/dist/neutral/components/GasFees/components/index.d.mts +0 -4
- package/dist/neutral/components/GasFees/components/index.d.mts.map +0 -1
- package/dist/neutral/components/GasFees/components/index.d.ts +0 -4
- package/dist/neutral/components/GasFees/components/index.d.ts.map +0 -1
- package/dist/neutral/components/GasFees/index.d.cts +0 -2
- package/dist/neutral/components/GasFees/index.d.cts.map +0 -1
- package/dist/neutral/components/GasFees/index.d.mts +0 -2
- package/dist/neutral/components/GasFees/index.d.mts.map +0 -1
- package/dist/neutral/components/GasFees/index.d.ts +0 -2
- package/dist/neutral/components/GasFees/index.d.ts.map +0 -1
- package/dist/neutral/components/HeaderBox.d.cts +0 -8
- package/dist/neutral/components/HeaderBox.d.cts.map +0 -1
- package/dist/neutral/components/HeaderBox.d.mts +0 -8
- package/dist/neutral/components/HeaderBox.d.mts.map +0 -1
- package/dist/neutral/components/HeaderBox.d.ts +0 -8
- package/dist/neutral/components/HeaderBox.d.ts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Actions.d.cts +0 -10
- package/dist/neutral/components/HeaderComponents/Actions.d.cts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Actions.d.mts +0 -10
- package/dist/neutral/components/HeaderComponents/Actions.d.mts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Actions.d.ts +0 -10
- package/dist/neutral/components/HeaderComponents/Actions.d.ts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/Header.d.cts +0 -7
- package/dist/neutral/components/HeaderComponents/Header/Header.d.cts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/Header.d.mts +0 -7
- package/dist/neutral/components/HeaderComponents/Header/Header.d.mts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/Header.d.ts +0 -7
- package/dist/neutral/components/HeaderComponents/Header/Header.d.ts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/Heading.d.cts +0 -9
- package/dist/neutral/components/HeaderComponents/Header/Heading.d.cts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/Heading.d.mts +0 -9
- package/dist/neutral/components/HeaderComponents/Header/Heading.d.mts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/Heading.d.ts +0 -9
- package/dist/neutral/components/HeaderComponents/Header/Heading.d.ts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/index.d.cts +0 -3
- package/dist/neutral/components/HeaderComponents/Header/index.d.cts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/index.d.mts +0 -3
- package/dist/neutral/components/HeaderComponents/Header/index.d.mts.map +0 -1
- package/dist/neutral/components/HeaderComponents/Header/index.d.ts +0 -3
- package/dist/neutral/components/HeaderComponents/Header/index.d.ts.map +0 -1
- package/dist/neutral/components/HeaderComponents/index.d.cts +0 -3
- package/dist/neutral/components/HeaderComponents/index.d.cts.map +0 -1
- package/dist/neutral/components/HeaderComponents/index.d.mts +0 -3
- package/dist/neutral/components/HeaderComponents/index.d.mts.map +0 -1
- package/dist/neutral/components/HeaderComponents/index.d.ts +0 -3
- package/dist/neutral/components/HeaderComponents/index.d.ts.map +0 -1
- package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.cts +0 -6
- package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.cts.map +0 -1
- package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.mts +0 -6
- package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.mts.map +0 -1
- package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.ts +0 -6
- package/dist/neutral/components/RawPayload/ToggleRawPayloadBox.d.ts.map +0 -1
- package/dist/neutral/components/RawPayload/index.d.cts +0 -2
- package/dist/neutral/components/RawPayload/index.d.cts.map +0 -1
- package/dist/neutral/components/RawPayload/index.d.mts +0 -2
- package/dist/neutral/components/RawPayload/index.d.mts.map +0 -1
- package/dist/neutral/components/RawPayload/index.d.ts +0 -2
- package/dist/neutral/components/RawPayload/index.d.ts.map +0 -1
- package/dist/neutral/components/index.d.cts +0 -8
- package/dist/neutral/components/index.d.cts.map +0 -1
- package/dist/neutral/components/index.d.mts +0 -8
- package/dist/neutral/components/index.d.mts.map +0 -1
- package/dist/neutral/components/index.d.ts +0 -8
- package/dist/neutral/components/index.d.ts.map +0 -1
- package/dist/neutral/components/layout/Header.d.cts +0 -2
- package/dist/neutral/components/layout/Header.d.cts.map +0 -1
- package/dist/neutral/components/layout/Header.d.mts +0 -2
- package/dist/neutral/components/layout/Header.d.mts.map +0 -1
- package/dist/neutral/components/layout/Header.d.ts +0 -2
- package/dist/neutral/components/layout/Header.d.ts.map +0 -1
- package/dist/neutral/components/layout/StyledCardHeader.d.cts +0 -4
- package/dist/neutral/components/layout/StyledCardHeader.d.cts.map +0 -1
- package/dist/neutral/components/layout/StyledCardHeader.d.mts +0 -4
- package/dist/neutral/components/layout/StyledCardHeader.d.mts.map +0 -1
- package/dist/neutral/components/layout/StyledCardHeader.d.ts +0 -4
- package/dist/neutral/components/layout/StyledCardHeader.d.ts.map +0 -1
- package/dist/neutral/components/layout/index.d.cts +0 -3
- package/dist/neutral/components/layout/index.d.cts.map +0 -1
- package/dist/neutral/components/layout/index.d.mts +0 -3
- package/dist/neutral/components/layout/index.d.mts.map +0 -1
- package/dist/neutral/components/layout/index.d.ts +0 -3
- package/dist/neutral/components/layout/index.d.ts.map +0 -1
- package/dist/neutral/index.cjs +0 -235
- package/dist/neutral/index.cjs.map +0 -1
- package/dist/neutral/index.d.cts +0 -3
- package/dist/neutral/index.d.cts.map +0 -1
- package/dist/neutral/index.d.mts +0 -3
- package/dist/neutral/index.d.mts.map +0 -1
- package/dist/neutral/index.d.ts +0 -3
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/index.js +0 -212
- package/dist/neutral/index.js.map +0 -1
- package/dist/neutral/types/GasPriceWitnessPayload.d.cts +0 -17
- package/dist/neutral/types/GasPriceWitnessPayload.d.cts.map +0 -1
- package/dist/neutral/types/GasPriceWitnessPayload.d.mts +0 -17
- package/dist/neutral/types/GasPriceWitnessPayload.d.mts.map +0 -1
- package/dist/neutral/types/GasPriceWitnessPayload.d.ts +0 -17
- package/dist/neutral/types/GasPriceWitnessPayload.d.ts.map +0 -1
- package/dist/neutral/types/index.d.cts +0 -2
- package/dist/neutral/types/index.d.cts.map +0 -1
- package/dist/neutral/types/index.d.mts +0 -2
- package/dist/neutral/types/index.d.mts.map +0 -1
- package/dist/neutral/types/index.d.ts +0 -2
- package/dist/neutral/types/index.d.ts.map +0 -1
- package/dist/node/components/Avatar/EthereumGasPriceAvatar.d.cts +0 -3
- package/dist/node/components/Avatar/EthereumGasPriceAvatar.d.cts.map +0 -1
- package/dist/node/components/Avatar/EthereumGasPriceAvatar.d.mts +0 -3
- package/dist/node/components/Avatar/EthereumGasPriceAvatar.d.mts.map +0 -1
- package/dist/node/components/Avatar/EthereumGasPriceAvatar.d.ts +0 -3
- package/dist/node/components/Avatar/EthereumGasPriceAvatar.d.ts.map +0 -1
- package/dist/node/components/Avatar/index.d.cts +0 -2
- package/dist/node/components/Avatar/index.d.cts.map +0 -1
- package/dist/node/components/Avatar/index.d.mts +0 -2
- package/dist/node/components/Avatar/index.d.mts.map +0 -1
- package/dist/node/components/Avatar/index.d.ts +0 -2
- package/dist/node/components/Avatar/index.d.ts.map +0 -1
- package/dist/node/components/CardHeader/CardHeader.d.cts +0 -8
- package/dist/node/components/CardHeader/CardHeader.d.cts.map +0 -1
- package/dist/node/components/CardHeader/CardHeader.d.mts +0 -8
- package/dist/node/components/CardHeader/CardHeader.d.mts.map +0 -1
- package/dist/node/components/CardHeader/CardHeader.d.ts +0 -8
- package/dist/node/components/CardHeader/CardHeader.d.ts.map +0 -1
- package/dist/node/components/CardHeader/index.d.cts +0 -2
- package/dist/node/components/CardHeader/index.d.cts.map +0 -1
- package/dist/node/components/CardHeader/index.d.mts +0 -2
- package/dist/node/components/CardHeader/index.d.mts.map +0 -1
- package/dist/node/components/CardHeader/index.d.ts +0 -2
- package/dist/node/components/CardHeader/index.d.ts.map +0 -1
- package/dist/node/components/GasFees/Card.d.cts +0 -10
- package/dist/node/components/GasFees/Card.d.cts.map +0 -1
- package/dist/node/components/GasFees/Card.d.mts +0 -10
- package/dist/node/components/GasFees/Card.d.mts.map +0 -1
- package/dist/node/components/GasFees/Card.d.ts +0 -10
- package/dist/node/components/GasFees/Card.d.ts.map +0 -1
- package/dist/node/components/GasFees/components/GasPriceBox.d.cts +0 -6
- package/dist/node/components/GasFees/components/GasPriceBox.d.cts.map +0 -1
- package/dist/node/components/GasFees/components/GasPriceBox.d.mts +0 -6
- package/dist/node/components/GasFees/components/GasPriceBox.d.mts.map +0 -1
- package/dist/node/components/GasFees/components/GasPriceBox.d.ts +0 -6
- package/dist/node/components/GasFees/components/GasPriceBox.d.ts.map +0 -1
- package/dist/node/components/GasFees/components/GweiLabelTypography.d.cts +0 -3
- package/dist/node/components/GasFees/components/GweiLabelTypography.d.cts.map +0 -1
- package/dist/node/components/GasFees/components/GweiLabelTypography.d.mts +0 -3
- package/dist/node/components/GasFees/components/GweiLabelTypography.d.mts.map +0 -1
- package/dist/node/components/GasFees/components/GweiLabelTypography.d.ts +0 -3
- package/dist/node/components/GasFees/components/GweiLabelTypography.d.ts.map +0 -1
- package/dist/node/components/GasFees/components/PriorityFeeBox.d.cts +0 -7
- package/dist/node/components/GasFees/components/PriorityFeeBox.d.cts.map +0 -1
- package/dist/node/components/GasFees/components/PriorityFeeBox.d.mts +0 -7
- package/dist/node/components/GasFees/components/PriorityFeeBox.d.mts.map +0 -1
- package/dist/node/components/GasFees/components/PriorityFeeBox.d.ts +0 -7
- package/dist/node/components/GasFees/components/PriorityFeeBox.d.ts.map +0 -1
- package/dist/node/components/GasFees/components/SpeedBox.d.cts +0 -6
- package/dist/node/components/GasFees/components/SpeedBox.d.cts.map +0 -1
- package/dist/node/components/GasFees/components/SpeedBox.d.mts +0 -6
- package/dist/node/components/GasFees/components/SpeedBox.d.mts.map +0 -1
- package/dist/node/components/GasFees/components/SpeedBox.d.ts +0 -6
- package/dist/node/components/GasFees/components/SpeedBox.d.ts.map +0 -1
- package/dist/node/components/GasFees/components/index.d.cts +0 -4
- package/dist/node/components/GasFees/components/index.d.cts.map +0 -1
- package/dist/node/components/GasFees/components/index.d.mts +0 -4
- package/dist/node/components/GasFees/components/index.d.mts.map +0 -1
- package/dist/node/components/GasFees/components/index.d.ts +0 -4
- package/dist/node/components/GasFees/components/index.d.ts.map +0 -1
- package/dist/node/components/GasFees/index.d.cts +0 -2
- package/dist/node/components/GasFees/index.d.cts.map +0 -1
- package/dist/node/components/GasFees/index.d.mts +0 -2
- package/dist/node/components/GasFees/index.d.mts.map +0 -1
- package/dist/node/components/GasFees/index.d.ts +0 -2
- package/dist/node/components/GasFees/index.d.ts.map +0 -1
- package/dist/node/components/HeaderBox.d.cts +0 -8
- package/dist/node/components/HeaderBox.d.cts.map +0 -1
- package/dist/node/components/HeaderBox.d.mts +0 -8
- package/dist/node/components/HeaderBox.d.mts.map +0 -1
- package/dist/node/components/HeaderBox.d.ts +0 -8
- package/dist/node/components/HeaderBox.d.ts.map +0 -1
- package/dist/node/components/HeaderComponents/Actions.d.cts +0 -10
- package/dist/node/components/HeaderComponents/Actions.d.cts.map +0 -1
- package/dist/node/components/HeaderComponents/Actions.d.mts +0 -10
- package/dist/node/components/HeaderComponents/Actions.d.mts.map +0 -1
- package/dist/node/components/HeaderComponents/Actions.d.ts +0 -10
- package/dist/node/components/HeaderComponents/Actions.d.ts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/Header.d.cts +0 -7
- package/dist/node/components/HeaderComponents/Header/Header.d.cts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/Header.d.mts +0 -7
- package/dist/node/components/HeaderComponents/Header/Header.d.mts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/Header.d.ts +0 -7
- package/dist/node/components/HeaderComponents/Header/Header.d.ts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/Heading.d.cts +0 -9
- package/dist/node/components/HeaderComponents/Header/Heading.d.cts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/Heading.d.mts +0 -9
- package/dist/node/components/HeaderComponents/Header/Heading.d.mts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/Heading.d.ts +0 -9
- package/dist/node/components/HeaderComponents/Header/Heading.d.ts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/index.d.cts +0 -3
- package/dist/node/components/HeaderComponents/Header/index.d.cts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/index.d.mts +0 -3
- package/dist/node/components/HeaderComponents/Header/index.d.mts.map +0 -1
- package/dist/node/components/HeaderComponents/Header/index.d.ts +0 -3
- package/dist/node/components/HeaderComponents/Header/index.d.ts.map +0 -1
- package/dist/node/components/HeaderComponents/index.d.cts +0 -3
- package/dist/node/components/HeaderComponents/index.d.cts.map +0 -1
- package/dist/node/components/HeaderComponents/index.d.mts +0 -3
- package/dist/node/components/HeaderComponents/index.d.mts.map +0 -1
- package/dist/node/components/HeaderComponents/index.d.ts +0 -3
- package/dist/node/components/HeaderComponents/index.d.ts.map +0 -1
- package/dist/node/components/RawPayload/ToggleRawPayloadBox.d.cts +0 -6
- package/dist/node/components/RawPayload/ToggleRawPayloadBox.d.cts.map +0 -1
- package/dist/node/components/RawPayload/ToggleRawPayloadBox.d.mts +0 -6
- package/dist/node/components/RawPayload/ToggleRawPayloadBox.d.mts.map +0 -1
- package/dist/node/components/RawPayload/ToggleRawPayloadBox.d.ts +0 -6
- package/dist/node/components/RawPayload/ToggleRawPayloadBox.d.ts.map +0 -1
- package/dist/node/components/RawPayload/index.d.cts +0 -2
- package/dist/node/components/RawPayload/index.d.cts.map +0 -1
- package/dist/node/components/RawPayload/index.d.mts +0 -2
- package/dist/node/components/RawPayload/index.d.mts.map +0 -1
- package/dist/node/components/RawPayload/index.d.ts +0 -2
- package/dist/node/components/RawPayload/index.d.ts.map +0 -1
- package/dist/node/components/index.d.cts +0 -8
- package/dist/node/components/index.d.cts.map +0 -1
- package/dist/node/components/index.d.mts +0 -8
- package/dist/node/components/index.d.mts.map +0 -1
- package/dist/node/components/index.d.ts +0 -8
- package/dist/node/components/index.d.ts.map +0 -1
- package/dist/node/components/layout/Header.d.cts +0 -2
- package/dist/node/components/layout/Header.d.cts.map +0 -1
- package/dist/node/components/layout/Header.d.mts +0 -2
- package/dist/node/components/layout/Header.d.mts.map +0 -1
- package/dist/node/components/layout/Header.d.ts +0 -2
- package/dist/node/components/layout/Header.d.ts.map +0 -1
- package/dist/node/components/layout/StyledCardHeader.d.cts +0 -4
- package/dist/node/components/layout/StyledCardHeader.d.cts.map +0 -1
- package/dist/node/components/layout/StyledCardHeader.d.mts +0 -4
- package/dist/node/components/layout/StyledCardHeader.d.mts.map +0 -1
- package/dist/node/components/layout/StyledCardHeader.d.ts +0 -4
- package/dist/node/components/layout/StyledCardHeader.d.ts.map +0 -1
- package/dist/node/components/layout/index.d.cts +0 -3
- package/dist/node/components/layout/index.d.cts.map +0 -1
- package/dist/node/components/layout/index.d.mts +0 -3
- package/dist/node/components/layout/index.d.mts.map +0 -1
- package/dist/node/components/layout/index.d.ts +0 -3
- package/dist/node/components/layout/index.d.ts.map +0 -1
- package/dist/node/index.cjs +0 -252
- package/dist/node/index.cjs.map +0 -1
- package/dist/node/index.d.cts +0 -3
- package/dist/node/index.d.cts.map +0 -1
- package/dist/node/index.d.mts +0 -3
- package/dist/node/index.d.mts.map +0 -1
- package/dist/node/index.d.ts +0 -3
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/index.js +0 -216
- package/dist/node/index.js.map +0 -1
- package/dist/node/types/GasPriceWitnessPayload.d.cts +0 -17
- package/dist/node/types/GasPriceWitnessPayload.d.cts.map +0 -1
- package/dist/node/types/GasPriceWitnessPayload.d.mts +0 -17
- package/dist/node/types/GasPriceWitnessPayload.d.mts.map +0 -1
- package/dist/node/types/GasPriceWitnessPayload.d.ts +0 -17
- package/dist/node/types/GasPriceWitnessPayload.d.ts.map +0 -1
- package/dist/node/types/index.d.cts +0 -2
- package/dist/node/types/index.d.cts.map +0 -1
- package/dist/node/types/index.d.mts +0 -2
- package/dist/node/types/index.d.mts.map +0 -1
- package/dist/node/types/index.d.ts +0 -2
- package/dist/node/types/index.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as _mui_material from '@mui/material';
|
|
2
|
+
import { AvatarProps, CardProps } from '@mui/material';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default, { ReactNode } from 'react';
|
|
5
|
+
import * as _xylabs_react_flexbox from '@xylabs/react-flexbox';
|
|
6
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
7
|
+
import { WithChildren } from '@xylabs/react-shared';
|
|
8
|
+
import { TypographyExProps } from '@xyo-network/react-shared';
|
|
9
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
10
|
+
import * as _mui_system from '@mui/system';
|
|
11
|
+
import * as _mui_material_OverridableComponent_js from '@mui/material/OverridableComponent.js';
|
|
12
|
+
|
|
13
|
+
declare const EthereumGasPriceAvatar: React__default.FC<AvatarProps>;
|
|
14
|
+
|
|
15
|
+
interface GasPriceWitnessUIBasePayload {
|
|
16
|
+
baseFee?: UIField;
|
|
17
|
+
blockNumber?: UIField;
|
|
18
|
+
gasPrice?: GasPrice[];
|
|
19
|
+
schema?: string;
|
|
20
|
+
timestamp?: number;
|
|
21
|
+
website?: string;
|
|
22
|
+
}
|
|
23
|
+
interface GasPrice {
|
|
24
|
+
price?: UIField;
|
|
25
|
+
priorityFee?: UIField;
|
|
26
|
+
}
|
|
27
|
+
interface UIField {
|
|
28
|
+
label?: string;
|
|
29
|
+
value?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface GasPriceCardHeaderProps extends CardProps {
|
|
33
|
+
parsedPayload?: GasPriceWitnessUIBasePayload;
|
|
34
|
+
title?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const GasPriceWitnessCardHeader: React__default.ForwardRefExoticComponent<Omit<GasPriceCardHeaderProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
|
|
38
|
+
interface GasFeeCardProps extends CardProps {
|
|
39
|
+
gasPrice?: number;
|
|
40
|
+
priorityFee?: number;
|
|
41
|
+
priorityFeeLabel?: string;
|
|
42
|
+
speed?: string;
|
|
43
|
+
speedPaperElevation?: number;
|
|
44
|
+
}
|
|
45
|
+
declare const GasFeeCard: React__default.FC<GasFeeCardProps>;
|
|
46
|
+
|
|
47
|
+
interface GasPriceWitnessHeaderBoxProps extends FlexBoxProps {
|
|
48
|
+
heading?: string;
|
|
49
|
+
parsedPayload?: GasPriceWitnessUIBasePayload;
|
|
50
|
+
}
|
|
51
|
+
declare const GasPriceWitnessHeaderBox: React__default.FC<GasPriceWitnessHeaderBoxProps>;
|
|
52
|
+
|
|
53
|
+
interface GasPriceEstimateActionsBoxProps extends FlexBoxProps {
|
|
54
|
+
baseFee?: number;
|
|
55
|
+
baseFeeLabel?: string;
|
|
56
|
+
blockNumber?: number;
|
|
57
|
+
blockNumberLabel?: string;
|
|
58
|
+
timestamp?: number;
|
|
59
|
+
}
|
|
60
|
+
declare const GasPriceHeaderActionsBox: React__default.FC<GasPriceEstimateActionsBoxProps>;
|
|
61
|
+
|
|
62
|
+
interface GasPriceHeaderTypographyProps extends TypographyExProps, WithChildren {
|
|
63
|
+
heading?: string;
|
|
64
|
+
}
|
|
65
|
+
declare const GasPriceHeaderTypography: React__default.FC<GasPriceHeaderTypographyProps>;
|
|
66
|
+
|
|
67
|
+
interface GasPriceHeadingTypographyProps extends TypographyExProps {
|
|
68
|
+
children?: ReactNode;
|
|
69
|
+
heading?: string;
|
|
70
|
+
networkIcon?: ReactNode;
|
|
71
|
+
}
|
|
72
|
+
declare const GasPriceHeadingTypography: React__default.FC<GasPriceHeadingTypographyProps>;
|
|
73
|
+
|
|
74
|
+
declare const StyledGasPriceHeaderBox: _emotion_styled.StyledComponent<Pick<_xylabs_react_flexbox.BusyBoxProps & React.RefAttributes<unknown>, "className" | "style" | "classes" | "children" | "sx" | "ref" | "p" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "height" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "bgcolor" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "whiteSpace" | "background" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "padding" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "paper" | "busy" | "busyCircularProps" | "busyColor" | "busyLinearProps" | "busyMinimum" | "busyOpacity" | "busySize" | "busyVariant"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
75
|
+
|
|
76
|
+
declare const StyledCardHeader: _emotion_styled.StyledComponent<Pick<_mui_material.CardHeaderOwnProps<"span", "span"> & _mui_material_OverridableComponent_js.CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
77
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
78
|
+
}, "className" | "style" | "classes" | "sx" | "title" | "action" | "avatar" | "disableTypography" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps">, "className" | "style" | "classes" | "children" | "sx" | "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "avatar" | "disableTypography" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
79
|
+
|
|
80
|
+
interface ToggleRawPayloadBoxProps extends FlexBoxProps {
|
|
81
|
+
gasPricePayload?: object;
|
|
82
|
+
}
|
|
83
|
+
declare const ToggleRawPayloadBox: React__default.FC<ToggleRawPayloadBoxProps>;
|
|
84
|
+
|
|
85
|
+
export { EthereumGasPriceAvatar, GasFeeCard, type GasFeeCardProps, type GasPrice, type GasPriceCardHeaderProps, type GasPriceEstimateActionsBoxProps, GasPriceHeaderActionsBox, GasPriceHeaderTypography, type GasPriceHeaderTypographyProps, GasPriceHeadingTypography, type GasPriceHeadingTypographyProps, GasPriceWitnessCardHeader, GasPriceWitnessHeaderBox, type GasPriceWitnessHeaderBoxProps, type GasPriceWitnessUIBasePayload, StyledCardHeader, StyledGasPriceHeaderBox, ToggleRawPayloadBox, type ToggleRawPayloadBoxProps, type UIField };
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/components/Avatar/EthereumGasPriceAvatar.tsx
|
|
5
|
+
import { LocalGasStationRounded as LocalGasStationRoundedIcon } from "@mui/icons-material";
|
|
6
|
+
import { Avatar } from "@mui/material";
|
|
7
|
+
import React from "react";
|
|
8
|
+
var EthereumGasPriceAvatar = /* @__PURE__ */ __name(({ ...props }) => {
|
|
9
|
+
return /* @__PURE__ */ React.createElement(Avatar, props, /* @__PURE__ */ React.createElement(LocalGasStationRoundedIcon, null));
|
|
10
|
+
}, "EthereumGasPriceAvatar");
|
|
11
|
+
|
|
12
|
+
// src/components/CardHeader/CardHeader.tsx
|
|
13
|
+
import React5, { forwardRef } from "react";
|
|
14
|
+
|
|
15
|
+
// src/components/HeaderComponents/Actions.tsx
|
|
16
|
+
import { Chip } from "@mui/material";
|
|
17
|
+
import { FlexRow } from "@xylabs/react-flexbox";
|
|
18
|
+
import React2 from "react";
|
|
19
|
+
var GasPriceHeaderActionsBox = /* @__PURE__ */ __name(({ baseFee, baseFeeLabel = "Base Fee", blockNumber, blockNumberLabel = "Block Number", timestamp, ...props }) => {
|
|
20
|
+
return /* @__PURE__ */ React2.createElement(FlexRow, {
|
|
21
|
+
columnGap: 1,
|
|
22
|
+
rowGap: 1,
|
|
23
|
+
flexWrap: "wrap",
|
|
24
|
+
...props
|
|
25
|
+
}, timestamp ? /* @__PURE__ */ React2.createElement(Chip, {
|
|
26
|
+
label: new Date(timestamp).toLocaleString()
|
|
27
|
+
}) : null, baseFee ? /* @__PURE__ */ React2.createElement(Chip, {
|
|
28
|
+
label: `${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI`
|
|
29
|
+
}) : null, blockNumber ? /* @__PURE__ */ React2.createElement(Chip, {
|
|
30
|
+
label: `${blockNumberLabel} - ${blockNumber}`
|
|
31
|
+
}) : null);
|
|
32
|
+
}, "GasPriceHeaderActionsBox");
|
|
33
|
+
|
|
34
|
+
// src/components/HeaderComponents/Header/Header.tsx
|
|
35
|
+
import { useTheme as useTheme2 } from "@mui/material";
|
|
36
|
+
import { useGetTokenData } from "@xyo-network/react-shared";
|
|
37
|
+
import React4 from "react";
|
|
38
|
+
|
|
39
|
+
// src/components/HeaderComponents/Header/Heading.tsx
|
|
40
|
+
import { useTheme } from "@mui/material";
|
|
41
|
+
import { TypographyEx } from "@xyo-network/react-shared";
|
|
42
|
+
import React3 from "react";
|
|
43
|
+
var GasPriceHeadingTypography = /* @__PURE__ */ __name(({ children, heading, networkIcon, ...props }) => {
|
|
44
|
+
const theme = useTheme();
|
|
45
|
+
return /* @__PURE__ */ React3.createElement(TypographyEx, {
|
|
46
|
+
fontSize: theme.spacing(6),
|
|
47
|
+
lineHeight: 1,
|
|
48
|
+
...props
|
|
49
|
+
}, heading, " ", networkIcon, " ", children);
|
|
50
|
+
}, "GasPriceHeadingTypography");
|
|
51
|
+
|
|
52
|
+
// src/components/HeaderComponents/Header/Header.tsx
|
|
53
|
+
var GasPriceHeaderTypography = /* @__PURE__ */ __name(({ heading, children, ...props }) => {
|
|
54
|
+
const theme = useTheme2();
|
|
55
|
+
const [ethData] = useGetTokenData([
|
|
56
|
+
"eth"
|
|
57
|
+
]);
|
|
58
|
+
const networkIcon = /* @__PURE__ */ React4.createElement("img", {
|
|
59
|
+
height: theme.spacing(4),
|
|
60
|
+
src: ethData.icon
|
|
61
|
+
});
|
|
62
|
+
return /* @__PURE__ */ React4.createElement(GasPriceHeadingTypography, {
|
|
63
|
+
heading,
|
|
64
|
+
networkIcon,
|
|
65
|
+
...props
|
|
66
|
+
}, children);
|
|
67
|
+
}, "GasPriceHeaderTypography");
|
|
68
|
+
|
|
69
|
+
// src/components/layout/Header.tsx
|
|
70
|
+
import { styled } from "@mui/material";
|
|
71
|
+
import { FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
|
|
72
|
+
var StyledGasPriceHeaderBox = styled(FlexRow2, {
|
|
73
|
+
name: "StyledGasPriceEstimateBox"
|
|
74
|
+
})(({ theme }) => ({
|
|
75
|
+
alignItems: "end",
|
|
76
|
+
columnGap: theme.spacing(2),
|
|
77
|
+
flexWrap: "wrap",
|
|
78
|
+
justifyContent: "space-between",
|
|
79
|
+
justifyItems: "space-between",
|
|
80
|
+
rowGap: theme.spacing(2),
|
|
81
|
+
width: "100%"
|
|
82
|
+
}));
|
|
83
|
+
|
|
84
|
+
// src/components/layout/StyledCardHeader.tsx
|
|
85
|
+
import { CardHeader, styled as styled2 } from "@mui/material";
|
|
86
|
+
var StyledCardHeader = styled2(CardHeader, {
|
|
87
|
+
name: "StyledCardHeader"
|
|
88
|
+
})(({ theme }) => ({
|
|
89
|
+
flexWrap: "wrap",
|
|
90
|
+
rowGap: theme.spacing(2)
|
|
91
|
+
}));
|
|
92
|
+
|
|
93
|
+
// src/components/CardHeader/CardHeader.tsx
|
|
94
|
+
var GasPriceWitnessCardHeader = /* @__PURE__ */ forwardRef(({ title, parsedPayload, ...props }, ref) => /* @__PURE__ */ React5.createElement(StyledCardHeader, {
|
|
95
|
+
title: /* @__PURE__ */ React5.createElement(GasPriceHeaderTypography, {
|
|
96
|
+
heading: title
|
|
97
|
+
}),
|
|
98
|
+
action: /* @__PURE__ */ React5.createElement(GasPriceHeaderActionsBox, {
|
|
99
|
+
timestamp: parsedPayload?.timestamp,
|
|
100
|
+
baseFee: parsedPayload?.baseFee?.value,
|
|
101
|
+
baseFeeLabel: parsedPayload?.baseFee?.label,
|
|
102
|
+
blockNumber: parsedPayload?.blockNumber?.value,
|
|
103
|
+
blockNumberLabel: parsedPayload?.blockNumber?.label
|
|
104
|
+
}),
|
|
105
|
+
ref,
|
|
106
|
+
...props
|
|
107
|
+
}));
|
|
108
|
+
GasPriceWitnessCardHeader.displayName = "GasPriceWitnessCardHeader";
|
|
109
|
+
|
|
110
|
+
// src/components/GasFees/Card.tsx
|
|
111
|
+
import { Card, Paper, useTheme as useTheme6 } from "@mui/material";
|
|
112
|
+
import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
|
|
113
|
+
import { CardContentEx } from "@xyo-network/react-card";
|
|
114
|
+
import React10 from "react";
|
|
115
|
+
|
|
116
|
+
// src/components/GasFees/components/GasPriceBox.tsx
|
|
117
|
+
import { useTheme as useTheme3 } from "@mui/material";
|
|
118
|
+
import { FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
|
|
119
|
+
import { TypographyEx as TypographyEx3 } from "@xyo-network/react-shared";
|
|
120
|
+
import React7 from "react";
|
|
121
|
+
|
|
122
|
+
// src/components/GasFees/components/GweiLabelTypography.tsx
|
|
123
|
+
import { TypographyEx as TypographyEx2 } from "@xyo-network/react-shared";
|
|
124
|
+
import React6 from "react";
|
|
125
|
+
var GweiLabelTypography = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React6.createElement(TypographyEx2, {
|
|
126
|
+
variant: "caption",
|
|
127
|
+
...props
|
|
128
|
+
}, "GWEI"), "GweiLabelTypography");
|
|
129
|
+
|
|
130
|
+
// src/components/GasFees/components/GasPriceBox.tsx
|
|
131
|
+
var GasPriceBox = /* @__PURE__ */ __name(({ gasPrice, ...props }) => {
|
|
132
|
+
const theme = useTheme3();
|
|
133
|
+
return /* @__PURE__ */ React7.createElement(FlexRow3, {
|
|
134
|
+
columnGap: 1.5,
|
|
135
|
+
rowGap: 1.5,
|
|
136
|
+
alignItems: "end",
|
|
137
|
+
...props
|
|
138
|
+
}, /* @__PURE__ */ React7.createElement(TypographyEx3, {
|
|
139
|
+
lineHeight: 1,
|
|
140
|
+
fontWeight: "200",
|
|
141
|
+
fontSize: theme.spacing(6),
|
|
142
|
+
title: gasPrice?.toString() ?? ""
|
|
143
|
+
}, gasPrice?.toFixed(2)), /* @__PURE__ */ React7.createElement(GweiLabelTypography, {
|
|
144
|
+
fontSize: theme.spacing(2)
|
|
145
|
+
}));
|
|
146
|
+
}, "GasPriceBox");
|
|
147
|
+
|
|
148
|
+
// src/components/GasFees/components/PriorityFeeBox.tsx
|
|
149
|
+
import { LocalGasStationRounded as LocalGasStationRoundedIcon2 } from "@mui/icons-material";
|
|
150
|
+
import { useTheme as useTheme4 } from "@mui/material";
|
|
151
|
+
import { FlexCol, FlexGrowRow } from "@xylabs/react-flexbox";
|
|
152
|
+
import { TypographyEx as TypographyEx4 } from "@xyo-network/react-shared";
|
|
153
|
+
import React8 from "react";
|
|
154
|
+
var PriorityFeeBox = /* @__PURE__ */ __name(({ priorityFee, priorityFeeLabel = "Priority Fee", ...props }) => {
|
|
155
|
+
const theme = useTheme4();
|
|
156
|
+
return /* @__PURE__ */ React8.createElement(FlexGrowRow, {
|
|
157
|
+
width: "100%",
|
|
158
|
+
justifyContent: "space-between",
|
|
159
|
+
alignItems: "end",
|
|
160
|
+
...props
|
|
161
|
+
}, /* @__PURE__ */ React8.createElement(FlexCol, {
|
|
162
|
+
alignItems: "start"
|
|
163
|
+
}, /* @__PURE__ */ React8.createElement(TypographyEx4, null, priorityFeeLabel), /* @__PURE__ */ React8.createElement(TypographyEx4, {
|
|
164
|
+
title: priorityFee?.toString() ?? ""
|
|
165
|
+
}, priorityFee?.toFixed(2), " ", /* @__PURE__ */ React8.createElement(GweiLabelTypography, {
|
|
166
|
+
fontSize: theme.spacing(1)
|
|
167
|
+
}))), /* @__PURE__ */ React8.createElement(LocalGasStationRoundedIcon2, null));
|
|
168
|
+
}, "PriorityFeeBox");
|
|
169
|
+
|
|
170
|
+
// src/components/GasFees/components/SpeedBox.tsx
|
|
171
|
+
import { useTheme as useTheme5 } from "@mui/material";
|
|
172
|
+
import { FlexGrowCol } from "@xylabs/react-flexbox";
|
|
173
|
+
import { TypographyEx as TypographyEx5 } from "@xyo-network/react-shared";
|
|
174
|
+
import React9 from "react";
|
|
175
|
+
var SpeedBox = /* @__PURE__ */ __name(({ speed, ...props }) => {
|
|
176
|
+
const theme = useTheme5();
|
|
177
|
+
return speed ? /* @__PURE__ */ React9.createElement(FlexGrowCol, props, /* @__PURE__ */ React9.createElement(TypographyEx5, {
|
|
178
|
+
fontSize: theme.spacing(3),
|
|
179
|
+
fontWeight: "200",
|
|
180
|
+
p: 1
|
|
181
|
+
}, speed)) : null;
|
|
182
|
+
}, "SpeedBox");
|
|
183
|
+
|
|
184
|
+
// src/components/GasFees/Card.tsx
|
|
185
|
+
var GasFeeCard = /* @__PURE__ */ __name(({ gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = "low", ...props }) => {
|
|
186
|
+
const theme = useTheme6();
|
|
187
|
+
return /* @__PURE__ */ React10.createElement(Card, {
|
|
188
|
+
sx: {
|
|
189
|
+
p: 0
|
|
190
|
+
},
|
|
191
|
+
...props
|
|
192
|
+
}, /* @__PURE__ */ React10.createElement(CardContentEx, {
|
|
193
|
+
removePadding: true,
|
|
194
|
+
sx: {
|
|
195
|
+
flexDirection: "column",
|
|
196
|
+
flexGrow: 1,
|
|
197
|
+
p: 0,
|
|
198
|
+
rowGap: 2
|
|
199
|
+
}
|
|
200
|
+
}, /* @__PURE__ */ React10.createElement(FlexGrowCol2, {
|
|
201
|
+
bgcolor: theme.palette.secondary.dark,
|
|
202
|
+
alignItems: "start",
|
|
203
|
+
p: 2,
|
|
204
|
+
rowGap: 1.5,
|
|
205
|
+
color: theme.palette.common.white
|
|
206
|
+
}, /* @__PURE__ */ React10.createElement(GasPriceBox, {
|
|
207
|
+
gasPrice
|
|
208
|
+
}), priorityFee ? /* @__PURE__ */ React10.createElement(PriorityFeeBox, {
|
|
209
|
+
priorityFee,
|
|
210
|
+
priorityFeeLabel
|
|
211
|
+
}) : null), /* @__PURE__ */ React10.createElement(Paper, {
|
|
212
|
+
elevation: speedPaperElevation,
|
|
213
|
+
sx: {
|
|
214
|
+
borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px`
|
|
215
|
+
}
|
|
216
|
+
}, /* @__PURE__ */ React10.createElement(SpeedBox, {
|
|
217
|
+
speed
|
|
218
|
+
}))));
|
|
219
|
+
}, "GasFeeCard");
|
|
220
|
+
|
|
221
|
+
// src/components/HeaderBox.tsx
|
|
222
|
+
import React11 from "react";
|
|
223
|
+
var GasPriceWitnessHeaderBox = /* @__PURE__ */ __name(({ heading, parsedPayload, ...props }) => {
|
|
224
|
+
return /* @__PURE__ */ React11.createElement(StyledGasPriceHeaderBox, props, /* @__PURE__ */ React11.createElement(GasPriceHeaderTypography, {
|
|
225
|
+
heading
|
|
226
|
+
}), /* @__PURE__ */ React11.createElement(GasPriceHeaderActionsBox, {
|
|
227
|
+
timestamp: parsedPayload?.timestamp,
|
|
228
|
+
baseFee: parsedPayload?.baseFee?.value,
|
|
229
|
+
baseFeeLabel: parsedPayload?.baseFee?.label,
|
|
230
|
+
blockNumber: parsedPayload?.blockNumber?.value,
|
|
231
|
+
blockNumberLabel: parsedPayload?.blockNumber?.label
|
|
232
|
+
}));
|
|
233
|
+
}, "GasPriceWitnessHeaderBox");
|
|
234
|
+
|
|
235
|
+
// src/components/RawPayload/ToggleRawPayloadBox.tsx
|
|
236
|
+
import { Button, Collapse, Paper as Paper2 } from "@mui/material";
|
|
237
|
+
import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
|
|
238
|
+
import React12, { useState } from "react";
|
|
239
|
+
var ToggleRawPayloadBox = /* @__PURE__ */ __name(({ gasPricePayload, ...props }) => {
|
|
240
|
+
const [collapse, setCollapse] = useState(false);
|
|
241
|
+
return gasPricePayload ? /* @__PURE__ */ React12.createElement(FlexCol2, {
|
|
242
|
+
rowGap: 1,
|
|
243
|
+
...props
|
|
244
|
+
}, /* @__PURE__ */ React12.createElement(Button, {
|
|
245
|
+
color: "secondary",
|
|
246
|
+
sx: {
|
|
247
|
+
bgcolor: "secondary.dark",
|
|
248
|
+
color: "white"
|
|
249
|
+
},
|
|
250
|
+
variant: "contained",
|
|
251
|
+
onClick: /* @__PURE__ */ __name(() => setCollapse(!collapse), "onClick")
|
|
252
|
+
}, "Raw Payload"), /* @__PURE__ */ React12.createElement(Collapse, {
|
|
253
|
+
in: collapse
|
|
254
|
+
}, /* @__PURE__ */ React12.createElement(Paper2, {
|
|
255
|
+
elevation: 4,
|
|
256
|
+
sx: {
|
|
257
|
+
p: 2
|
|
258
|
+
}
|
|
259
|
+
}, /* @__PURE__ */ React12.createElement("pre", null, JSON.stringify(gasPricePayload, null, 2))))) : null;
|
|
260
|
+
}, "ToggleRawPayloadBox");
|
|
261
|
+
export {
|
|
262
|
+
EthereumGasPriceAvatar,
|
|
263
|
+
GasFeeCard,
|
|
264
|
+
GasPriceHeaderActionsBox,
|
|
265
|
+
GasPriceHeaderTypography,
|
|
266
|
+
GasPriceHeadingTypography,
|
|
267
|
+
GasPriceWitnessCardHeader,
|
|
268
|
+
GasPriceWitnessHeaderBox,
|
|
269
|
+
StyledCardHeader,
|
|
270
|
+
StyledGasPriceHeaderBox,
|
|
271
|
+
ToggleRawPayloadBox
|
|
272
|
+
};
|
|
273
|
+
//# sourceMappingURL=index.mjs.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'\nimport React from 'react'\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 React, { forwardRef } from 'react'\n\nimport { GasPriceWitnessUIBasePayload } from '../../types/index.ts'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents/index.ts'\nimport { StyledCardHeader } from '../layout/index.ts'\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'\nimport React from 'react'\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'\nimport React from 'react'\n\nimport { GasPriceHeadingTypography } from './Heading.tsx'\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 React, { 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}\n {' '}\n {networkIcon}\n {' '}\n {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'\nimport React from 'react'\n\nimport { GasPriceBox, PriorityFeeBox, SpeedBox } from './components/index.ts'\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'\nimport React from 'react'\n\nimport { GweiLabelTypography } from './GweiLabelTypography.tsx'\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'\nimport React from 'react'\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'\nimport React from 'react'\n\nimport { GweiLabelTypography } from './GweiLabelTypography.tsx'\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)}\n {' '}\n <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'\nimport React from 'react'\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 ? (\n <FlexGrowCol {...props}>\n <TypographyEx fontSize={theme.spacing(3)} fontWeight=\"200\" p={1}>\n {speed}\n </TypographyEx>\n </FlexGrowCol>\n )\n : null\n}\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { GasPriceWitnessUIBasePayload } from '../types/index.ts'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from './HeaderComponents/index.ts'\nimport { StyledGasPriceHeaderBox } from './layout/index.ts'\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 React, { 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 ? (\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 )\n : null\n}\n"],"mappings":"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","names":["LocalGasStationRounded","LocalGasStationRoundedIcon","Avatar","React","EthereumGasPriceAvatar","props","Avatar","LocalGasStationRoundedIcon","React","forwardRef","Chip","FlexRow","React","GasPriceHeaderActionsBox","baseFee","baseFeeLabel","blockNumber","blockNumberLabel","timestamp","props","React","FlexRow","columnGap","rowGap","flexWrap","Chip","label","Date","toLocaleString","toFixed","useTheme","useGetTokenData","React","useTheme","TypographyEx","React","GasPriceHeadingTypography","children","heading","networkIcon","props","theme","useTheme","React","TypographyEx","fontSize","spacing","lineHeight","GasPriceHeaderTypography","heading","children","props","theme","useTheme","ethData","useGetTokenData","networkIcon","React","img","height","spacing","src","icon","GasPriceHeadingTypography","styled","FlexRow","StyledGasPriceHeaderBox","name","theme","alignItems","columnGap","spacing","flexWrap","justifyContent","justifyItems","rowGap","width","CardHeader","styled","StyledCardHeader","name","theme","flexWrap","rowGap","spacing","GasPriceWitnessCardHeader","forwardRef","title","parsedPayload","props","ref","React","StyledCardHeader","GasPriceHeaderTypography","heading","action","GasPriceHeaderActionsBox","timestamp","baseFee","value","baseFeeLabel","label","blockNumber","blockNumberLabel","displayName","Card","Paper","useTheme","FlexGrowCol","CardContentEx","React","useTheme","FlexRow","TypographyEx","React","TypographyEx","React","GweiLabelTypography","props","React","TypographyEx","variant","GasPriceBox","gasPrice","props","theme","useTheme","React","FlexRow","columnGap","rowGap","alignItems","TypographyEx","lineHeight","fontWeight","fontSize","spacing","title","toString","toFixed","GweiLabelTypography","LocalGasStationRounded","LocalGasStationRoundedIcon","useTheme","FlexCol","FlexGrowRow","TypographyEx","React","PriorityFeeBox","priorityFee","priorityFeeLabel","props","theme","useTheme","React","FlexGrowRow","width","justifyContent","alignItems","FlexCol","TypographyEx","title","toString","toFixed","GweiLabelTypography","fontSize","spacing","LocalGasStationRoundedIcon","useTheme","FlexGrowCol","TypographyEx","React","SpeedBox","speed","props","theme","useTheme","React","FlexGrowCol","TypographyEx","fontSize","spacing","fontWeight","p","GasFeeCard","gasPrice","speedPaperElevation","priorityFee","priorityFeeLabel","speed","props","theme","useTheme","React","Card","sx","p","CardContentEx","removePadding","flexDirection","flexGrow","rowGap","FlexGrowCol","bgcolor","palette","secondary","dark","alignItems","color","common","white","GasPriceBox","PriorityFeeBox","Paper","elevation","borderRadius","shape","SpeedBox","React","GasPriceWitnessHeaderBox","heading","parsedPayload","props","React","StyledGasPriceHeaderBox","GasPriceHeaderTypography","GasPriceHeaderActionsBox","timestamp","baseFee","value","baseFeeLabel","label","blockNumber","blockNumberLabel","Button","Collapse","Paper","FlexCol","React","useState","ToggleRawPayloadBox","gasPricePayload","props","collapse","setCollapse","useState","React","FlexCol","rowGap","Button","color","sx","bgcolor","variant","onClick","Collapse","in","Paper","elevation","p","pre","JSON","stringify"]}
|
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.4.
|
|
14
|
-
"@xylabs/react-shared": "^3.4.
|
|
15
|
-
"@xyo-network/react-card": "^2.
|
|
16
|
-
"@xyo-network/react-shared": "^2.
|
|
13
|
+
"@xylabs/react-flexbox": "^3.4.2",
|
|
14
|
+
"@xylabs/react-shared": "^3.4.2",
|
|
15
|
+
"@xyo-network/react-card": "^2.83.0",
|
|
16
|
+
"@xyo-network/react-shared": "^2.83.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@storybook/react": "^
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
21
|
-
"@xylabs/tsconfig-react": "^
|
|
19
|
+
"@storybook/react": "^8.2.7",
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.7",
|
|
21
|
+
"@xylabs/tsconfig-react": "^4.0.0-rc.7",
|
|
22
22
|
"typescript": "^5.5.4"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -32,32 +32,16 @@
|
|
|
32
32
|
"docs": "dist/docs.json",
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"default": "./dist/node/index.js"
|
|
39
|
-
},
|
|
40
|
-
"require": {
|
|
41
|
-
"types": "./dist/node/index.d.cts",
|
|
42
|
-
"default": "./dist/node/index.cjs"
|
|
43
|
-
}
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/browser/index.d.ts",
|
|
37
|
+
"default": "./dist/browser/index.mjs"
|
|
44
38
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"types": "./dist/browser/index.d.mts",
|
|
48
|
-
"default": "./dist/browser/index.js"
|
|
49
|
-
},
|
|
50
|
-
"require": {
|
|
51
|
-
"types": "./dist/browser/index.d.cts",
|
|
52
|
-
"default": "./dist/browser/index.cjs"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"default": "./dist/browser/index.js"
|
|
39
|
+
"types": "./dist/browser/index.d.ts",
|
|
40
|
+
"default": "./dist/browser/index.mjs"
|
|
56
41
|
},
|
|
57
42
|
"./package.json": "./package.json"
|
|
58
43
|
},
|
|
59
|
-
"
|
|
60
|
-
"module": "dist/browser/index.js",
|
|
44
|
+
"module": "dist/browser/index.mjs",
|
|
61
45
|
"homepage": "https://xyo.network",
|
|
62
46
|
"keywords": [
|
|
63
47
|
"xyo",
|
|
@@ -79,6 +63,6 @@
|
|
|
79
63
|
},
|
|
80
64
|
"sideEffects": false,
|
|
81
65
|
"types": "dist/browser/index.d.ts",
|
|
82
|
-
"version": "2.
|
|
66
|
+
"version": "2.83.0",
|
|
83
67
|
"type": "module"
|
|
84
68
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/react'
|
|
2
|
+
import React from 'react'
|
|
2
3
|
|
|
3
|
-
import { EthereumGasPriceAvatar } from './EthereumGasPriceAvatar.
|
|
4
|
+
import { EthereumGasPriceAvatar } from './EthereumGasPriceAvatar.tsx'
|
|
4
5
|
|
|
5
|
-
// eslint-disable-next-line import/no-default-export
|
|
6
6
|
export default {
|
|
7
7
|
component: EthereumGasPriceAvatar,
|
|
8
8
|
title: 'plugin/blockchain/EthereumGasPrice/Avatar',
|
|
9
9
|
} as Meta
|
|
10
10
|
|
|
11
|
-
const Template: StoryFn<typeof EthereumGasPriceAvatar> =
|
|
11
|
+
const Template: StoryFn<typeof EthereumGasPriceAvatar> = props => <EthereumGasPriceAvatar {...props} />
|
|
12
12
|
|
|
13
13
|
const Default = Template.bind({})
|
|
14
14
|
Default.args = {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './EthereumGasPriceAvatar.
|
|
1
|
+
export * from './EthereumGasPriceAvatar.tsx'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CardProps } from '@mui/material'
|
|
2
|
-
import { forwardRef } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
3
|
|
|
4
|
-
import { GasPriceWitnessUIBasePayload } from '../../types/index.
|
|
5
|
-
import { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents/index.
|
|
6
|
-
import { StyledCardHeader } from '../layout/index.
|
|
4
|
+
import { GasPriceWitnessUIBasePayload } from '../../types/index.ts'
|
|
5
|
+
import { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents/index.ts'
|
|
6
|
+
import { StyledCardHeader } from '../layout/index.ts'
|
|
7
7
|
|
|
8
8
|
export interface GasPriceCardHeaderProps extends CardProps {
|
|
9
9
|
parsedPayload?: GasPriceWitnessUIBasePayload
|
|
@@ -12,7 +12,7 @@ export interface GasPriceCardHeaderProps extends CardProps {
|
|
|
12
12
|
export const GasPriceWitnessCardHeader = forwardRef<HTMLDivElement, GasPriceCardHeaderProps>(({ title, parsedPayload, ...props }, ref) => (
|
|
13
13
|
<StyledCardHeader
|
|
14
14
|
title={<GasPriceHeaderTypography heading={title} />}
|
|
15
|
-
action={
|
|
15
|
+
action={(
|
|
16
16
|
<GasPriceHeaderActionsBox
|
|
17
17
|
timestamp={parsedPayload?.timestamp}
|
|
18
18
|
baseFee={parsedPayload?.baseFee?.value}
|
|
@@ -20,7 +20,7 @@ export const GasPriceWitnessCardHeader = forwardRef<HTMLDivElement, GasPriceCard
|
|
|
20
20
|
blockNumber={parsedPayload?.blockNumber?.value}
|
|
21
21
|
blockNumberLabel={parsedPayload?.blockNumber?.label}
|
|
22
22
|
/>
|
|
23
|
-
}
|
|
23
|
+
)}
|
|
24
24
|
ref={ref}
|
|
25
25
|
{...props}
|
|
26
26
|
/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './CardHeader.
|
|
1
|
+
export * from './CardHeader.tsx'
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
3
|
+
import React from 'react'
|
|
3
4
|
|
|
4
|
-
import { GasFeeCard } from './Card.
|
|
5
|
+
import { GasFeeCard } from './Card.tsx'
|
|
5
6
|
|
|
6
7
|
const DefaultArgs = {
|
|
7
8
|
gasPrice: 15.760_184_184_000_002,
|
|
8
9
|
priorityFee: 1.0625,
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
// eslint-disable-next-line import/no-default-export
|
|
12
12
|
export default {
|
|
13
13
|
component: GasFeeCard,
|
|
14
14
|
title: 'plugin/blockchain/GasPrice/GasFeeCard',
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Card, CardProps, Paper, useTheme } from '@mui/material'
|
|
2
2
|
import { FlexGrowCol } from '@xylabs/react-flexbox'
|
|
3
3
|
import { CardContentEx } from '@xyo-network/react-card'
|
|
4
|
+
import React from 'react'
|
|
4
5
|
|
|
5
|
-
import { GasPriceBox, PriorityFeeBox, SpeedBox } from './components/index.
|
|
6
|
+
import { GasPriceBox, PriorityFeeBox, SpeedBox } from './components/index.ts'
|
|
6
7
|
|
|
7
8
|
export interface GasFeeCardProps extends CardProps {
|
|
8
9
|
gasPrice?: number
|
|
@@ -20,9 +21,9 @@ export const GasFeeCard: React.FC<GasFeeCardProps> = ({ gasPrice, speedPaperElev
|
|
|
20
21
|
<CardContentEx removePadding sx={{ flexDirection: 'column', flexGrow: 1, p: 0, rowGap: 2 }}>
|
|
21
22
|
<FlexGrowCol bgcolor={theme.palette.secondary.dark} alignItems="start" p={2} rowGap={1.5} color={theme.palette.common.white}>
|
|
22
23
|
<GasPriceBox gasPrice={gasPrice} />
|
|
23
|
-
{priorityFee
|
|
24
|
-
<PriorityFeeBox priorityFee={priorityFee} priorityFeeLabel={priorityFeeLabel} />
|
|
25
|
-
|
|
24
|
+
{priorityFee
|
|
25
|
+
? <PriorityFeeBox priorityFee={priorityFee} priorityFeeLabel={priorityFeeLabel} />
|
|
26
|
+
: null}
|
|
26
27
|
</FlexGrowCol>
|
|
27
28
|
<Paper elevation={speedPaperElevation} sx={{ borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }}>
|
|
28
29
|
<SpeedBox speed={speed} />
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useTheme } from '@mui/material'
|
|
2
2
|
import { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'
|
|
3
3
|
import { TypographyEx } from '@xyo-network/react-shared'
|
|
4
|
+
import React from 'react'
|
|
4
5
|
|
|
5
|
-
import { GweiLabelTypography } from './GweiLabelTypography.
|
|
6
|
+
import { GweiLabelTypography } from './GweiLabelTypography.tsx'
|
|
6
7
|
|
|
7
8
|
export interface GasPriceBoxProps extends FlexBoxProps {
|
|
8
9
|
gasPrice?: number
|