@xyo-network/react-gas-price 6.1.4 → 6.2.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.
@@ -1,87 +1,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, { PropsWithChildren, ReactNode } from 'react';
5
- import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import * as _xylabs_react_flexbox from '@xylabs/react-flexbox';
7
- import { FlexBoxProps } from '@xylabs/react-flexbox';
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 from '@mui/material/OverridableComponent';
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: {
37
- ({ ref, title, parsedPayload, ...props }: GasPriceCardHeaderProps): react_jsx_runtime.JSX.Element;
38
- displayName: string;
39
- };
40
-
41
- interface GasFeeCardProps extends CardProps {
42
- gasPrice?: number;
43
- priorityFee?: number;
44
- priorityFeeLabel?: string;
45
- speed?: string;
46
- speedPaperElevation?: number;
47
- }
48
- declare const GasFeeCard: React__default.FC<GasFeeCardProps>;
49
-
50
- interface GasPriceWitnessHeaderBoxProps extends FlexBoxProps {
51
- heading?: string;
52
- parsedPayload?: GasPriceWitnessUIBasePayload;
53
- }
54
- declare const GasPriceWitnessHeaderBox: React__default.FC<GasPriceWitnessHeaderBoxProps>;
55
-
56
- interface GasPriceEstimateActionsBoxProps extends FlexBoxProps {
57
- baseFee?: number;
58
- baseFeeLabel?: string;
59
- blockNumber?: number;
60
- blockNumberLabel?: string;
61
- timestamp?: number;
62
- }
63
- declare const GasPriceHeaderActionsBox: React__default.FC<GasPriceEstimateActionsBoxProps>;
64
-
65
- interface GasPriceHeaderTypographyProps extends TypographyExProps, PropsWithChildren {
66
- heading?: string;
67
- }
68
- declare const GasPriceHeaderTypography: React__default.FC<GasPriceHeaderTypographyProps>;
69
-
70
- interface GasPriceHeadingTypographyProps extends TypographyExProps {
71
- children?: ReactNode;
72
- heading?: string;
73
- networkIcon?: ReactNode;
74
- }
75
- declare const GasPriceHeadingTypography: React__default.FC<GasPriceHeadingTypographyProps>;
76
-
77
- declare const StyledGasPriceHeaderBox: _emotion_styled.StyledComponent<Pick<_xylabs_react_flexbox.BusyBoxProps, keyof _xylabs_react_flexbox.BusyBoxProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
78
-
79
- declare const StyledCardHeader: _emotion_styled.StyledComponent<Pick<_mui_material.CardHeaderOwnProps<"span", "span"> & _mui_material.CardHeaderSlotsAndSlotProps & _mui_material_OverridableComponent.CommonProps & Omit<React.DetailedHTMLProps<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" | "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" | "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"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
80
-
81
- interface ToggleRawPayloadBoxProps extends FlexBoxProps {
82
- gasPricePayload?: object;
83
- }
84
- declare const ToggleRawPayloadBox: React__default.FC<ToggleRawPayloadBoxProps>;
85
-
86
- export { EthereumGasPriceAvatar, GasFeeCard, GasPriceHeaderActionsBox, GasPriceHeaderTypography, GasPriceHeadingTypography, GasPriceWitnessCardHeader, GasPriceWitnessHeaderBox, StyledCardHeader, StyledGasPriceHeaderBox, ToggleRawPayloadBox };
87
- export type { GasFeeCardProps, GasPrice, GasPriceCardHeaderProps, GasPriceEstimateActionsBoxProps, GasPriceHeaderTypographyProps, GasPriceHeadingTypographyProps, GasPriceWitnessHeaderBoxProps, GasPriceWitnessUIBasePayload, ToggleRawPayloadBoxProps, UIField };
1
+ export * from './components/index.ts';
2
+ export * from './types/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-gas-price",
3
- "version": "6.1.4",
3
+ "version": "6.2.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -39,19 +39,19 @@
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/browser/index.d.ts",
41
41
  "dependencies": {
42
- "@xylabs/react-flexbox": "^6.3.13",
43
- "@xyo-network/react-card": "^6.1.4",
44
- "@xyo-network/react-shared": "^6.1.4"
42
+ "@xylabs/react-flexbox": "^6.4.0",
43
+ "@xyo-network/react-card": "^6.2.0",
44
+ "@xyo-network/react-shared": "^6.2.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@mui/icons-material": "^7.2.0",
48
48
  "@mui/material": "^7.2.0",
49
49
  "@storybook/react-vite": "^9.0.18",
50
50
  "@types/react": "^19.1.8",
51
- "@xylabs/ts-scripts-yarn3": "next",
52
- "@xylabs/tsconfig-react": "next",
53
- "react": "^19.1.0",
54
- "react-dom": "^19.1.0",
51
+ "@xylabs/ts-scripts-yarn3": "^7.0.1",
52
+ "@xylabs/tsconfig-react": "^7.0.1",
53
+ "react": "^19.1.1",
54
+ "react-dom": "^19.1.1",
55
55
  "storybook": "^9.0.18",
56
56
  "typescript": "^5.8.3"
57
57
  },
package/src/global.d.ts CHANGED
@@ -1 +1 @@
1
- import type {} from '@mui/material/themeCssVarsAugmentation'
1
+ import '@mui/material/themeCssVarsAugmentation'