@xyo-network/react-gas-price 7.4.2 → 7.5.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.
@@ -2,7 +2,7 @@ import type { Meta } from '@storybook/react-vite';
2
2
  import React from 'react';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- declare const Default: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@mui/material").AvatarOwnProps & import("@mui/material").AvatarSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "alt" | "children" | "imgProps" | "sizes" | "src" | "srcSet" | "sx" | "variant" | "slots" | "slotProps"> & {
5
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@mui/material").AvatarOwnProps & import("@mui/material").AvatarSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "alt" | "children" | "imgProps" | "sizes" | "src" | "srcSet" | "sx" | "variant" | "slots" | "slotProps"> & {
6
6
  component?: React.ElementType;
7
7
  }>;
8
8
  export { Default };
@@ -1,9 +1,9 @@
1
1
  import type { Meta } from '@storybook/react-vite';
2
2
  declare const _default: Meta;
3
3
  export default _default;
4
- declare const Default: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
5
- declare const Contained: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
6
- declare const WithData: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
7
- declare const WithLabel: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
4
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
5
+ declare const Contained: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
6
+ declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
7
+ declare const WithLabel: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Card.tsx").GasFeeCardProps>;
8
8
  export { Contained, Default, WithData, WithLabel, };
9
9
  //# sourceMappingURL=Card.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/GasFees/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAcrD,IAAI;AAHT,wBAGS;AAMT,QAAA,MAAM,OAAO,0KAAoB,CAAA;AAGjC,QAAA,MAAM,SAAS,0KAAoB,CAAA;AAUnC,QAAA,MAAM,QAAQ,0KAAoB,CAAA;AAGlC,QAAA,MAAM,SAAS,0KAAoB,CAAA;AAOnC,OAAO,EACL,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,GACxC,CAAA"}
1
+ {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/GasFees/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAcrD,IAAI;AAHT,wBAGS;AAMT,QAAA,MAAM,OAAO,mIAAoB,CAAA;AAGjC,QAAA,MAAM,SAAS,mIAAoB,CAAA;AAUnC,QAAA,MAAM,QAAQ,mIAAoB,CAAA;AAGlC,QAAA,MAAM,SAAS,mIAAoB,CAAA;AAOnC,OAAO,EACL,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,GACxC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import type { Meta } from '@storybook/react-vite';
2
2
  declare const _default: Meta;
3
3
  export default _default;
4
- declare const Default: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Actions.tsx").GasPriceEstimateActionsBoxProps>;
5
- declare const WithData: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./Actions.tsx").GasPriceEstimateActionsBoxProps>;
4
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Actions.tsx").GasPriceEstimateActionsBoxProps>;
5
+ declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Actions.tsx").GasPriceEstimateActionsBoxProps>;
6
6
  export { Default, WithData };
7
7
  //# sourceMappingURL=Actions.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderComponents/Actions.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAQrD,IAAI;AAHT,wBAGS;AAIT,QAAA,MAAM,OAAO,6LAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,6LAAoB,CAAA;AASlC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"Actions.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderComponents/Actions.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAQrD,IAAI;AAHT,wBAGS;AAIT,QAAA,MAAM,OAAO,sJAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,sJAAoB,CAAA;AASlC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import type { Meta } from '@storybook/react-vite';
2
2
  declare const _default: Meta;
3
3
  export default _default;
4
- declare const Default: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./ToggleRawPayloadBox.tsx").ToggleRawPayloadBoxProps>;
5
- declare const WithData: import(".store/storybook-virtual-a067dd1507/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./ToggleRawPayloadBox.tsx").ToggleRawPayloadBoxProps>;
4
+ declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./ToggleRawPayloadBox.tsx").ToggleRawPayloadBoxProps>;
5
+ declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./ToggleRawPayloadBox.tsx").ToggleRawPayloadBoxProps>;
6
6
  export { Default, WithData };
7
7
  //# sourceMappingURL=ToggleRawPayloadBox.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleRawPayloadBox.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/RawPayload/ToggleRawPayloadBox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAQrD,IAAI;AAHT,wBAGS;AAIT,QAAA,MAAM,OAAO,kMAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,kMAAoB,CAAA;AAQlC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"ToggleRawPayloadBox.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/RawPayload/ToggleRawPayloadBox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAQrD,IAAI;AAHT,wBAGS;AAIT,QAAA,MAAM,OAAO,2JAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,2JAAoB,CAAA;AAQlC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const StyledGasPriceHeaderBox: import("@emotion/styled").StyledComponent<Pick<import("@xylabs/react-flexbox").BusyBoxProps, keyof import("@xylabs/react-flexbox").BusyBoxProps> & import(".store/@mui-system-virtual-ad0077fea8/package").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
1
+ export declare const StyledGasPriceHeaderBox: import("@emotion/styled").StyledComponent<Pick<import("@xylabs/react-flexbox").BusyBoxProps, keyof import("@xylabs/react-flexbox").BusyBoxProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
2
2
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Header.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,yQAQjC,CAAA"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Header.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,uOAQjC,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const StyledCardHeader: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardHeaderOwnProps<"span", "span"> & import("@mui/material").CardHeaderSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "sx" | "slots" | "slotProps" | "title" | "action" | "avatar" | "disableTypography" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps">, "className" | "style" | "classes" | "children" | "sx" | "slots" | "slotProps" | "slot" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "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" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "action" | "avatar" | "disableTypography" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps"> & import(".store/@mui-system-virtual-ad0077fea8/package").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
1
+ export declare const StyledCardHeader: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardHeaderOwnProps<"span", "span"> & import("@mui/material").CardHeaderSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "sx" | "slots" | "slotProps" | "title" | "action" | "avatar" | "disableTypography" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps">, "className" | "style" | "classes" | "children" | "sx" | "slots" | "slotProps" | "slot" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "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" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "action" | "avatar" | "disableTypography" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
2
2
  //# sourceMappingURL=StyledCardHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledCardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/StyledCardHeader.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,ksLAG1B,CAAA"}
1
+ {"version":3,"file":"StyledCardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/StyledCardHeader.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,gqLAG1B,CAAA"}
@@ -1,71 +1,77 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
1
4
  // src/components/Avatar/EthereumGasPriceAvatar.tsx
2
5
  import { LocalGasStationRounded as LocalGasStationRoundedIcon } from "@mui/icons-material";
3
6
  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
- };
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 from "react";
8
14
 
9
15
  // src/components/HeaderComponents/Actions.tsx
10
16
  import { Chip } from "@mui/material";
11
17
  import { FlexRow } from "@xylabs/react-flexbox";
12
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
13
- var GasPriceHeaderActionsBox = ({
14
- baseFee,
15
- baseFeeLabel = "Base Fee",
16
- blockNumber,
17
- blockNumberLabel = "Block Number",
18
- timestamp,
19
- ...props
20
- }) => {
21
- return /* @__PURE__ */ jsxs(FlexRow, { columnGap: 1, rowGap: 1, flexWrap: "wrap", ...props, children: [
22
- timestamp ? /* @__PURE__ */ jsx2(Chip, { label: new Date(timestamp).toLocaleString() }) : null,
23
- baseFee ? /* @__PURE__ */ jsx2(Chip, { label: `${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI` }) : null,
24
- blockNumber ? /* @__PURE__ */ jsx2(Chip, { label: `${blockNumberLabel} - ${blockNumber}` }) : null
25
- ] });
26
- };
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");
27
33
 
28
34
  // src/components/HeaderComponents/Header/Header.tsx
29
35
  import { useTheme as useTheme2 } from "@mui/material";
30
36
  import { getTokenData } from "@xyo-network/react-shared";
37
+ import React4 from "react";
31
38
 
32
39
  // src/components/HeaderComponents/Header/Heading.tsx
33
40
  import { useTheme } from "@mui/material";
34
41
  import { TypographyEx } from "@xyo-network/react-shared";
35
- import { jsxs as jsxs2 } from "react/jsx-runtime";
36
- var GasPriceHeadingTypography = ({
37
- children,
38
- heading,
39
- networkIcon,
40
- ...props
41
- }) => {
42
+ import React3 from "react";
43
+ var GasPriceHeadingTypography = /* @__PURE__ */ __name(({ children, heading, networkIcon, ...props }) => {
42
44
  const theme = useTheme();
43
- return /* @__PURE__ */ jsxs2(TypographyEx, { fontSize: theme.spacing(6), lineHeight: 1, ...props, children: [
44
- heading,
45
- " ",
46
- networkIcon,
47
- " ",
48
- children
49
- ] });
50
- };
45
+ return /* @__PURE__ */ React3.createElement(TypographyEx, {
46
+ fontSize: theme.spacing(6),
47
+ lineHeight: 1,
48
+ ...props
49
+ }, heading, " ", networkIcon, " ", children);
50
+ }, "GasPriceHeadingTypography");
51
51
 
52
52
  // src/components/HeaderComponents/Header/Header.tsx
53
- import { jsx as jsx3 } from "react/jsx-runtime";
54
- var GasPriceHeaderTypography = ({
55
- heading,
56
- children,
57
- ...props
58
- }) => {
53
+ var GasPriceHeaderTypography = /* @__PURE__ */ __name(({ heading, children, ...props }) => {
59
54
  const theme = useTheme2();
60
- const [ethData] = getTokenData(["eth"]);
61
- const networkIcon = /* @__PURE__ */ jsx3("img", { height: theme.spacing(4), src: ethData.icon });
62
- return /* @__PURE__ */ jsx3(GasPriceHeadingTypography, { heading, networkIcon, ...props, children });
63
- };
55
+ const [ethData] = getTokenData([
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");
64
68
 
65
69
  // src/components/layout/Header.tsx
66
70
  import { styled } from "@mui/material";
67
71
  import { FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
68
- var StyledGasPriceHeaderBox = styled(FlexRow2, { name: "StyledGasPriceEstimateBox" })(({ theme }) => ({
72
+ var StyledGasPriceHeaderBox = styled(FlexRow2, {
73
+ name: "StyledGasPriceEstimateBox"
74
+ })(({ theme }) => ({
69
75
  alignItems: "end",
70
76
  columnGap: theme.spacing(2),
71
77
  flexWrap: "wrap",
@@ -77,181 +83,181 @@ var StyledGasPriceHeaderBox = styled(FlexRow2, { name: "StyledGasPriceEstimateBo
77
83
 
78
84
  // src/components/layout/StyledCardHeader.tsx
79
85
  import { CardHeader, styled as styled2 } from "@mui/material";
80
- var StyledCardHeader = styled2(CardHeader, { name: "StyledCardHeader" })(({ theme }) => ({
86
+ var StyledCardHeader = styled2(CardHeader, {
87
+ name: "StyledCardHeader"
88
+ })(({ theme }) => ({
81
89
  flexWrap: "wrap",
82
90
  rowGap: theme.spacing(2)
83
91
  }));
84
92
 
85
93
  // src/components/CardHeader/CardHeader.tsx
86
- import { jsx as jsx4 } from "react/jsx-runtime";
87
- var GasPriceWitnessCardHeader = ({
94
+ var GasPriceWitnessCardHeader = /* @__PURE__ */ __name(({ ref, title, parsedPayload, ...props }) => /* @__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
+ }),
88
105
  ref,
89
- title,
90
- parsedPayload,
91
106
  ...props
92
- }) => /* @__PURE__ */ jsx4(
93
- StyledCardHeader,
94
- {
95
- title: /* @__PURE__ */ jsx4(GasPriceHeaderTypography, { heading: title }),
96
- action: /* @__PURE__ */ jsx4(
97
- GasPriceHeaderActionsBox,
98
- {
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
- ),
106
- ref,
107
- ...props
108
- }
109
- );
107
+ }), "GasPriceWitnessCardHeader");
110
108
  GasPriceWitnessCardHeader.displayName = "GasPriceWitnessCardHeader";
111
109
 
112
110
  // src/components/GasFees/Card.tsx
113
- import {
114
- Card,
115
- Paper,
116
- useTheme as useTheme6
117
- } from "@mui/material";
111
+ import { Card, Paper, useTheme as useTheme6 } from "@mui/material";
118
112
  import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
119
113
  import { CardContentEx } from "@xyo-network/react-card";
114
+ import React10 from "react";
120
115
 
121
116
  // src/components/GasFees/components/GasPriceBox.tsx
122
117
  import { useTheme as useTheme3 } from "@mui/material";
123
118
  import { FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
124
119
  import { TypographyEx as TypographyEx3 } from "@xyo-network/react-shared";
120
+ import React7 from "react";
125
121
 
126
122
  // src/components/GasFees/components/GweiLabelTypography.tsx
127
123
  import { TypographyEx as TypographyEx2 } from "@xyo-network/react-shared";
128
- import { jsx as jsx5 } from "react/jsx-runtime";
129
- var GweiLabelTypography = (props) => /* @__PURE__ */ jsx5(TypographyEx2, { variant: "caption", ...props, children: "GWEI" });
124
+ import React6 from "react";
125
+ var GweiLabelTypography = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React6.createElement(TypographyEx2, {
126
+ variant: "caption",
127
+ ...props
128
+ }, "GWEI"), "GweiLabelTypography");
130
129
 
131
130
  // src/components/GasFees/components/GasPriceBox.tsx
132
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
133
- var GasPriceBox = ({ gasPrice, ...props }) => {
131
+ var GasPriceBox = /* @__PURE__ */ __name(({ gasPrice, ...props }) => {
134
132
  const theme = useTheme3();
135
- return /* @__PURE__ */ jsxs3(FlexRow3, { columnGap: 1.5, rowGap: 1.5, alignItems: "end", ...props, children: [
136
- /* @__PURE__ */ jsx6(TypographyEx3, { lineHeight: 1, fontWeight: "200", fontSize: theme.spacing(6), title: gasPrice?.toString() ?? "", children: gasPrice?.toFixed(2) }),
137
- /* @__PURE__ */ jsx6(GweiLabelTypography, { fontSize: theme.spacing(2) })
138
- ] });
139
- };
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");
140
147
 
141
148
  // src/components/GasFees/components/PriorityFeeBox.tsx
142
149
  import { LocalGasStationRounded as LocalGasStationRoundedIcon2 } from "@mui/icons-material";
143
150
  import { useTheme as useTheme4 } from "@mui/material";
144
151
  import { FlexCol, FlexGrowRow } from "@xylabs/react-flexbox";
145
152
  import { TypographyEx as TypographyEx4 } from "@xyo-network/react-shared";
146
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
147
- var PriorityFeeBox = ({
148
- priorityFee,
149
- priorityFeeLabel = "Priority Fee",
150
- ...props
151
- }) => {
153
+ import React8 from "react";
154
+ var PriorityFeeBox = /* @__PURE__ */ __name(({ priorityFee, priorityFeeLabel = "Priority Fee", ...props }) => {
152
155
  const theme = useTheme4();
153
- return /* @__PURE__ */ jsxs4(FlexGrowRow, { width: "100%", justifyContent: "space-between", alignItems: "end", ...props, children: [
154
- /* @__PURE__ */ jsxs4(FlexCol, { alignItems: "start", children: [
155
- /* @__PURE__ */ jsx7(TypographyEx4, { children: priorityFeeLabel }),
156
- /* @__PURE__ */ jsxs4(TypographyEx4, { title: priorityFee?.toString() ?? "", children: [
157
- priorityFee?.toFixed(2),
158
- " ",
159
- /* @__PURE__ */ jsx7(GweiLabelTypography, { fontSize: theme.spacing(1) })
160
- ] })
161
- ] }),
162
- /* @__PURE__ */ jsx7(LocalGasStationRoundedIcon2, {})
163
- ] });
164
- };
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");
165
169
 
166
170
  // src/components/GasFees/components/SpeedBox.tsx
167
171
  import { useTheme as useTheme5 } from "@mui/material";
168
172
  import { FlexGrowCol } from "@xylabs/react-flexbox";
169
173
  import { TypographyEx as TypographyEx5 } from "@xyo-network/react-shared";
170
- import { jsx as jsx8 } from "react/jsx-runtime";
171
- var SpeedBox = ({ speed, ...props }) => {
174
+ import React9 from "react";
175
+ var SpeedBox = /* @__PURE__ */ __name(({ speed, ...props }) => {
172
176
  const theme = useTheme5();
173
- return speed ? /* @__PURE__ */ jsx8(FlexGrowCol, { ...props, children: /* @__PURE__ */ jsx8(TypographyEx5, { fontSize: theme.spacing(3), fontWeight: "200", p: 1, children: speed }) }) : null;
174
- };
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");
175
183
 
176
184
  // src/components/GasFees/Card.tsx
177
- import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
178
- var GasFeeCard = ({
179
- gasPrice,
180
- speedPaperElevation,
181
- priorityFee,
182
- priorityFeeLabel,
183
- speed = "low",
184
- ...props
185
- }) => {
185
+ var GasFeeCard = /* @__PURE__ */ __name(({ gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = "low", ...props }) => {
186
186
  const theme = useTheme6();
187
- return /* @__PURE__ */ jsx9(Card, { sx: { p: 0 }, ...props, children: /* @__PURE__ */ jsxs5(
188
- CardContentEx,
189
- {
190
- removePadding: true,
191
- sx: {
192
- flexDirection: "column",
193
- flexGrow: 1,
194
- p: 0,
195
- rowGap: 2
196
- },
197
- children: [
198
- /* @__PURE__ */ jsxs5(FlexGrowCol2, { bgcolor: theme.vars.palette.secondary.dark, alignItems: "start", p: 2, rowGap: 1.5, color: theme.vars.palette.common.white, children: [
199
- /* @__PURE__ */ jsx9(GasPriceBox, { gasPrice }),
200
- priorityFee ? /* @__PURE__ */ jsx9(PriorityFeeBox, { priorityFee, priorityFeeLabel }) : null
201
- ] }),
202
- /* @__PURE__ */ jsx9(Paper, { elevation: speedPaperElevation, sx: { borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }, children: /* @__PURE__ */ jsx9(SpeedBox, { speed }) })
203
- ]
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
204
199
  }
205
- ) });
206
- };
200
+ }, /* @__PURE__ */ React10.createElement(FlexGrowCol2, {
201
+ bgcolor: theme.vars.palette.secondary.dark,
202
+ alignItems: "start",
203
+ p: 2,
204
+ rowGap: 1.5,
205
+ color: theme.vars.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");
207
220
 
208
221
  // src/components/HeaderBox.tsx
209
- import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
210
- var GasPriceWitnessHeaderBox = ({
211
- heading,
212
- parsedPayload,
213
- ...props
214
- }) => {
215
- return /* @__PURE__ */ jsxs6(StyledGasPriceHeaderBox, { ...props, children: [
216
- /* @__PURE__ */ jsx10(GasPriceHeaderTypography, { heading }),
217
- /* @__PURE__ */ jsx10(
218
- GasPriceHeaderActionsBox,
219
- {
220
- timestamp: parsedPayload?.timestamp,
221
- baseFee: parsedPayload?.baseFee?.value,
222
- baseFeeLabel: parsedPayload?.baseFee?.label,
223
- blockNumber: parsedPayload?.blockNumber?.value,
224
- blockNumberLabel: parsedPayload?.blockNumber?.label
225
- }
226
- )
227
- ] });
228
- };
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");
229
234
 
230
235
  // src/components/RawPayload/ToggleRawPayloadBox.tsx
231
- import {
232
- Button,
233
- Collapse,
234
- Paper as Paper2
235
- } from "@mui/material";
236
+ import { Button, Collapse, Paper as Paper2 } from "@mui/material";
236
237
  import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
237
- import { useState } from "react";
238
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
239
- var ToggleRawPayloadBox = ({ gasPricePayload, ...props }) => {
238
+ import React12, { useState } from "react";
239
+ var ToggleRawPayloadBox = /* @__PURE__ */ __name(({ gasPricePayload, ...props }) => {
240
240
  const [collapse, setCollapse] = useState(false);
241
- return gasPricePayload ? /* @__PURE__ */ jsxs7(FlexCol2, { rowGap: 1, ...props, children: [
242
- /* @__PURE__ */ jsx11(
243
- Button,
244
- {
245
- color: "secondary",
246
- sx: { bgcolor: "secondary.dark", color: "white" },
247
- variant: "contained",
248
- onClick: () => setCollapse(!collapse),
249
- children: "Raw Payload"
250
- }
251
- ),
252
- /* @__PURE__ */ jsx11(Collapse, { in: collapse, children: /* @__PURE__ */ jsx11(Paper2, { elevation: 4, sx: { p: 2 }, children: /* @__PURE__ */ jsx11("pre", { children: JSON.stringify(gasPricePayload, null, 2) }) }) })
253
- ] }) : null;
254
- };
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");
255
261
  export {
256
262
  EthereumGasPriceAvatar,
257
263
  GasFeeCard,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/Avatar/EthereumGasPriceAvatar.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/CardHeader/CardHeader.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 type { AvatarProps } from '@mui/material'\nimport { Avatar } 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 { Chip } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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 type { TypographyExProps } from '@xyo-network/react-shared'\nimport { getTokenData } from '@xyo-network/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { GasPriceHeadingTypography } from './Heading.tsx'\n\nexport interface GasPriceHeaderTypographyProps extends TypographyExProps, PropsWithChildren {\n heading?: string\n}\n\nexport const GasPriceHeaderTypography: React.FC<GasPriceHeaderTypographyProps> = ({\n heading, children, ...props\n}) => {\n const theme = useTheme()\n const [ethData] = getTokenData(['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 type { TypographyExProps } from '@xyo-network/react-shared'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport type { ReactNode } from 'react'\nimport React 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> = ({\n children, heading, networkIcon, ...props\n}) => {\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 type { CardProps } from '@mui/material'\nimport React from 'react'\n\nimport type { 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 = ({\n ref, title, parsedPayload, ...props\n}: GasPriceCardHeaderProps) => (\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 type { CardProps } from '@mui/material'\nimport {\n Card, Paper, useTheme,\n} from '@mui/material'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { CardContentEx } from '@xyo-network/react-card'\nimport React from 'react'\n\nimport {\n GasPriceBox, PriorityFeeBox, SpeedBox,\n} 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> = ({\n gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = 'low', ...props\n}) => {\n const theme = useTheme()\n\n return (\n <Card sx={{ p: 0 }} {...props}>\n <CardContentEx\n removePadding\n sx={{\n flexDirection: 'column', flexGrow: 1, p: 0, rowGap: 2,\n }}\n >\n <FlexGrowCol bgcolor={theme.vars.palette.secondary.dark} alignItems=\"start\" p={2} rowGap={1.5} color={theme.vars.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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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 type { TypographyExProps } from '@xyo-network/react-shared'\nimport { TypographyEx } 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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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> = ({\n priorityFee, priorityFeeLabel = 'Priority Fee', ...props\n}) => {\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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport type { 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> = ({\n heading, parsedPayload, ...props\n}) => {\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 {\n Button, Collapse, Paper,\n} from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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\n color=\"secondary\"\n sx={{ bgcolor: 'secondary.dark', color: 'white' }}\n variant=\"contained\"\n onClick={() => setCollapse(!collapse)}\n >\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":";AAAA,SAAS,0BAA0B,kCAAkC;AAErE,SAAS,cAAc;AAMjB;AAHC,IAAM,yBAAgD,CAAC,EAAE,GAAG,MAAM,MAAM;AAC7E,SACE,oBAAC,UAAQ,GAAG,OACV,8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lexGrowCol","useTheme","FlexRow","TypographyEx","TypographyEx","jsx","jsx","jsxs","useTheme","FlexRow","TypographyEx","LocalGasStationRoundedIcon","useTheme","TypographyEx","jsx","jsxs","useTheme","TypographyEx","LocalGasStationRoundedIcon","useTheme","TypographyEx","jsx","jsx","jsxs","useTheme","FlexGrowCol","jsx","jsxs","Paper","FlexCol","jsx","jsxs"]}
1
+ {"version":3,"sources":["../../src/components/Avatar/EthereumGasPriceAvatar.tsx","../../src/components/CardHeader/CardHeader.tsx","../../src/components/HeaderComponents/Actions.tsx","../../src/components/HeaderComponents/Header/Header.tsx","../../src/components/HeaderComponents/Header/Heading.tsx","../../src/components/layout/Header.tsx","../../src/components/layout/StyledCardHeader.tsx","../../src/components/GasFees/Card.tsx","../../src/components/GasFees/components/GasPriceBox.tsx","../../src/components/GasFees/components/GweiLabelTypography.tsx","../../src/components/GasFees/components/PriorityFeeBox.tsx","../../src/components/GasFees/components/SpeedBox.tsx","../../src/components/HeaderBox.tsx","../../src/components/RawPayload/ToggleRawPayloadBox.tsx"],"sourcesContent":["import { LocalGasStationRounded as LocalGasStationRoundedIcon } from '@mui/icons-material'\nimport type { AvatarProps } from '@mui/material'\nimport { Avatar } 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 type { CardProps } from '@mui/material'\nimport React from 'react'\n\nimport type { 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 = ({\n ref, title, parsedPayload, ...props\n}: GasPriceCardHeaderProps) => (\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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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 type { TypographyExProps } from '@xyo-network/react-shared'\nimport { getTokenData } from '@xyo-network/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { GasPriceHeadingTypography } from './Heading.tsx'\n\nexport interface GasPriceHeaderTypographyProps extends TypographyExProps, PropsWithChildren {\n heading?: string\n}\n\nexport const GasPriceHeaderTypography: React.FC<GasPriceHeaderTypographyProps> = ({\n heading, children, ...props\n}) => {\n const theme = useTheme()\n const [ethData] = getTokenData(['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 type { TypographyExProps } from '@xyo-network/react-shared'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport type { ReactNode } from 'react'\nimport React 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> = ({\n children, heading, networkIcon, ...props\n}) => {\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 type { CardProps } from '@mui/material'\nimport {\n Card, Paper, useTheme,\n} from '@mui/material'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { CardContentEx } from '@xyo-network/react-card'\nimport React from 'react'\n\nimport {\n GasPriceBox, PriorityFeeBox, SpeedBox,\n} 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> = ({\n gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = 'low', ...props\n}) => {\n const theme = useTheme()\n\n return (\n <Card sx={{ p: 0 }} {...props}>\n <CardContentEx\n removePadding\n sx={{\n flexDirection: 'column', flexGrow: 1, p: 0, rowGap: 2,\n }}\n >\n <FlexGrowCol bgcolor={theme.vars.palette.secondary.dark} alignItems=\"start\" p={2} rowGap={1.5} color={theme.vars.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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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 type { TypographyExProps } from '@xyo-network/react-shared'\nimport { TypographyEx } 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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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> = ({\n priorityFee, priorityFeeLabel = 'Priority Fee', ...props\n}) => {\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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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 type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport type { 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> = ({\n heading, parsedPayload, ...props\n}) => {\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 {\n Button, Collapse, Paper,\n} from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { 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\n color=\"secondary\"\n sx={{ bgcolor: 'secondary.dark', color: 'white' }}\n variant=\"contained\"\n onClick={() => setCollapse(!collapse)}\n >\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":";;;;AAAA,SAASA,0BAA0BC,kCAAkC;AAErE,SAASC,cAAc;AACvB,OAAOC,WAAW;AAEX,IAAMC,yBAAgD,wBAAC,EAAE,GAAGC,MAAAA,MAAO;AACxE,SACE,sBAAA,cAACC,QAAWD,OACV,sBAAA,cAACE,4BAAAA,IAAAA,CAAAA;AAGP,GAN6D;;;ACJ7D,OAAOC,YAAW;;;ACDlB,SAASC,YAAY;AAErB,SAASC,eAAe;AACxB,OAAOC,YAAW;AAUX,IAAMC,2BA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BAAAC,QAAA,cAACC,yBAA4BF,OAC3B,gBAAAC,QAAA,cAACE,0BAAAA;IAAyBL;MAC1B,gBAAAG,QAAA,cAACG,0BAAAA;IACCC,WAAWN,eAAeM;IAC1BC,SAASP,eAAeO,SAASC;IACjCC,cAAcT,eAAeO,SAASG;IACtCC,aAAaX,eAAeW,aAAaH;IACzCI,kBAAkBZ,eAAeW,aAAaD;;AAItD,GAfiF;;;ACZjF,SACEG,QAAQC,UAAUC,SAAAA,cACb;AAEP,SAASC,WAAAA,gBAAe;AACxB,OAAOC,WAASC,gBAAgB;AAMzB,IAAMC,sBAA0D,wBAAC,EAAEC,iBAAiB,GAAGC,MAAAA,MAAO;AACnG,QAAM,CAACC,UAAUC,WAAAA,IAAeC,SAAS,KAAA;AACzC,SAAOJ,kBAED,gBAAAK,QAAA,cAACC,UAAAA;IAAQC,QAAQ;IAAI,GAAGN;KACtB,gBAAAI,QAAA,cAACG,QAAAA;IACCC,OAAM;IACNC,IAAI;MAAEC,SAAS;MAAkBF,OAAO;IAAQ;IAChDG,SAAQ;IACRC,SAAS,6BAAMV,YAAY,CAACD,QAAAA,GAAnB;KACV,aAAA,GAGD,gBAAAG,QAAA,cAACS,UAAAA;IAASC,IAAIb;KACZ,gBAAAG,QAAA,cAACW,QAAAA;IAAMC,WAAW;IAAGP,IAAI;MAAEQ,GAAG;IAAE;KAC9B,gBAAAb,QAAA,cAACc,OAAAA,MAAKC,KAAKC,UAAUrB,iBAAiB,MAAM,CAAA,CAAA,CAAA,CAAA,CAAA,IAKpD;AACN,GArBuE;","names":["LocalGasStationRounded","LocalGasStationRoundedIcon","Avatar","React","EthereumGasPriceAvatar","props","Avatar","LocalGasStationRoundedIcon","React","Chip","FlexRow","React","GasPriceHeaderActionsBox","baseFee","baseFeeLabel","blockNumber","blockNumberLabel","timestamp","props","React","FlexRow","columnGap","rowGap","flexWrap","Chip","label","Date","toLocaleString","toFixed","useTheme","getTokenData","React","useTheme","TypographyEx","React","GasPriceHeadingTypography","children","heading","networkIcon","props","theme","useTheme","React","TypographyEx","fontSize","spacing","lineHeight","GasPriceHeaderTypography","heading","children","props","theme","useTheme","ethData","getTokenData","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","ref","title","parsedPayload","props","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","vars","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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-gas-price",
3
- "version": "7.4.2",
3
+ "version": "7.5.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -43,24 +43,24 @@
43
43
  "src"
44
44
  ],
45
45
  "dependencies": {
46
- "@xylabs/react-flexbox": "~7.1.8",
47
- "@xyo-network/react-card": "^7.4.2",
48
- "@xyo-network/react-shared": "^7.4.2"
46
+ "@xylabs/react-flexbox": "~7.1.9",
47
+ "@xyo-network/react-card": "7.5.0",
48
+ "@xyo-network/react-shared": "7.5.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@mui/icons-material": "~7.3.6",
52
- "@mui/material": "~7.3.6",
53
- "@storybook/react-vite": "~10.1.4",
54
- "@types/react": "^19.2.7",
55
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
56
- "@xylabs/tsconfig": "~7.2.8",
57
- "@xylabs/tsconfig-dom": "~7.2.8",
58
- "@xylabs/tsconfig-react": "~7.2.8",
59
- "react": "^19.2.1",
60
- "react-dom": "^19.2.1",
61
- "storybook": "~10.1.4",
51
+ "@mui/icons-material": "~7.3.7",
52
+ "@mui/material": "~7.3.7",
53
+ "@storybook/react-vite": "~10.2.1",
54
+ "@types/react": "^19.2.10",
55
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
56
+ "@xylabs/tsconfig": "~7.3.2",
57
+ "@xylabs/tsconfig-dom": "~7.3.2",
58
+ "@xylabs/tsconfig-react": "~7.3.2",
59
+ "react": "^19.2.4",
60
+ "react-dom": "^19.2.4",
61
+ "storybook": "~10.2.1",
62
62
  "typescript": "^5.9.3",
63
- "vite": "~7.2.6"
63
+ "vite": "~7.3.1"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@mui/icons-material": ">=6 <8",
@@ -72,4 +72,4 @@
72
72
  "access": "public"
73
73
  },
74
74
  "docs": "dist/docs.json"
75
- }
75
+ }