@xyo-network/react-gas-price 2.41.1 → 2.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/CardHeader/CardHeader.d.ts +1 -1
- package/dist/cjs/components/CardHeader/CardHeader.d.ts.map +1 -1
- package/dist/cjs/components/CardHeader/CardHeader.js +5 -4
- package/dist/cjs/components/CardHeader/CardHeader.js.map +1 -1
- package/dist/docs.json +3932 -2828
- package/dist/esm/components/CardHeader/CardHeader.d.ts +1 -1
- package/dist/esm/components/CardHeader/CardHeader.d.ts.map +1 -1
- package/dist/esm/components/CardHeader/CardHeader.js +3 -1
- package/dist/esm/components/CardHeader/CardHeader.js.map +1 -1
- package/package.json +3 -3
- package/src/components/CardHeader/CardHeader.tsx +6 -2
|
@@ -5,5 +5,5 @@ export interface GasPriceCardHeaderProps extends CardProps {
|
|
|
5
5
|
parsedPayload?: GasPriceWitnessUIBasePayload;
|
|
6
6
|
title?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const GasPriceWitnessCardHeader:
|
|
8
|
+
export declare const GasPriceWitnessCardHeader: import("react").ForwardRefExoticComponent<Pick<GasPriceCardHeaderProps, "className" | "style" | "classes" | "children" | "sx" | "variant" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "elevation" | "square" | "raised" | "parsedPayload"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//# sourceMappingURL=CardHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/CardHeader/CardHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/CardHeader/CardHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAI1D,MAAM,WAAW,uBAAwB,SAAQ,SAAS;IACxD,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AACD,eAAO,MAAM,yBAAyB,gvJAepC,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
2
3
|
import { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents';
|
|
3
4
|
import { StyledCardHeader } from '../layout';
|
|
4
|
-
export const GasPriceWitnessCardHeader = ({ title, parsedPayload, ...props }) => (_jsx(StyledCardHeader, { title: _jsx(GasPriceHeaderTypography, { heading: title }), action: _jsx(GasPriceHeaderActionsBox, { timestamp: parsedPayload?.timestamp, baseFee: parsedPayload?.baseFee?.value, baseFeeLabel: parsedPayload?.baseFee?.label, blockNumber: parsedPayload?.blockNumber?.value, blockNumberLabel: parsedPayload?.blockNumber?.label }), ...props }));
|
|
5
|
+
export const GasPriceWitnessCardHeader = forwardRef(({ title, parsedPayload, ...props }, ref) => (_jsx(StyledCardHeader, { title: _jsx(GasPriceHeaderTypography, { heading: title }), action: _jsx(GasPriceHeaderActionsBox, { timestamp: parsedPayload?.timestamp, baseFee: parsedPayload?.baseFee?.value, baseFeeLabel: parsedPayload?.baseFee?.label, blockNumber: parsedPayload?.blockNumber?.value, blockNumberLabel: parsedPayload?.blockNumber?.label }), ref: ref, ...props })));
|
|
6
|
+
GasPriceWitnessCardHeader.displayName = 'GasPriceWitnessCardHeader';
|
|
5
7
|
//# sourceMappingURL=CardHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.js","sourceRoot":"","sources":["../../../../src/components/CardHeader/CardHeader.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CardHeader.js","sourceRoot":"","sources":["../../../../src/components/CardHeader/CardHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGlC,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAM5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAA0C,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACxI,KAAC,gBAAgB,IACf,KAAK,EAAE,KAAC,wBAAwB,IAAC,OAAO,EAAE,KAAK,GAAI,EACnD,MAAM,EACJ,KAAC,wBAAwB,IACvB,SAAS,EAAE,aAAa,EAAE,SAAS,EACnC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EACtC,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAC3C,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAC9C,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,GACnD,EAEJ,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC,CAAA;AAEF,yBAAyB,CAAC,WAAW,GAAG,2BAA2B,CAAA"}
|
package/package.json
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/react-flexbox": "^2.15.2",
|
|
14
14
|
"@xylabs/react-shared": "^2.15.2",
|
|
15
|
-
"@xyo-network/react-card": "^2.41.
|
|
16
|
-
"@xyo-network/react-shared": "^2.41.
|
|
15
|
+
"@xyo-network/react-card": "^2.41.2",
|
|
16
|
+
"@xyo-network/react-shared": "^2.41.2",
|
|
17
17
|
"tslib": "^2.4.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
69
|
"types": "dist/esm/index.d.ts",
|
|
70
|
-
"version": "2.41.
|
|
70
|
+
"version": "2.41.2"
|
|
71
71
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CardProps } from '@mui/material'
|
|
2
|
+
import { forwardRef } from 'react'
|
|
2
3
|
|
|
3
4
|
import { GasPriceWitnessUIBasePayload } from '../../types'
|
|
4
5
|
import { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents'
|
|
@@ -8,7 +9,7 @@ export interface GasPriceCardHeaderProps extends CardProps {
|
|
|
8
9
|
parsedPayload?: GasPriceWitnessUIBasePayload
|
|
9
10
|
title?: string
|
|
10
11
|
}
|
|
11
|
-
export const GasPriceWitnessCardHeader
|
|
12
|
+
export const GasPriceWitnessCardHeader = forwardRef<HTMLDivElement, GasPriceCardHeaderProps>(({ title, parsedPayload, ...props }, ref) => (
|
|
12
13
|
<StyledCardHeader
|
|
13
14
|
title={<GasPriceHeaderTypography heading={title} />}
|
|
14
15
|
action={
|
|
@@ -20,6 +21,9 @@ export const GasPriceWitnessCardHeader: React.FC<GasPriceCardHeaderProps> = ({ t
|
|
|
20
21
|
blockNumberLabel={parsedPayload?.blockNumber?.label}
|
|
21
22
|
/>
|
|
22
23
|
}
|
|
24
|
+
ref={ref}
|
|
23
25
|
{...props}
|
|
24
26
|
/>
|
|
25
|
-
)
|
|
27
|
+
))
|
|
28
|
+
|
|
29
|
+
GasPriceWitnessCardHeader.displayName = 'GasPriceWitnessCardHeader'
|