Skip to content

Commit 79f55e0

Browse files
authored
feat: widgets components update (#7268)
1 parent 244134e commit 79f55e0

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed

.changeset/silly-panthers-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperlane-xyz/sdk": minor
3+
---
4+
5+
Export WarpCoreFeeEstimate

.changeset/warm-ligers-perform.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperlane-xyz/widgets": minor
3+
---
4+
5+
Add Skeleton and FuelPump component

typescript/sdk/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ export {
821821
WarpCoreConfigSchema,
822822
WarpTxCategory,
823823
WarpTypedTransaction,
824+
WarpCoreFeeEstimate,
824825
} from './warp/types.js';
825826
export { WarpCore, WarpCoreOptions } from './warp/WarpCore.js';
826827
export { EvmTimelockReader } from './timelock/evm/EvmTimelockReader.js';
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react';
2+
3+
interface SkeletonProps {
4+
className?: string;
5+
}
6+
7+
export function Skeleton({ className = '' }: SkeletonProps) {
8+
return (
9+
<div
10+
className={`htw-animate-pulse-slow htw-bg-gray-200 htw-rounded ${className}`}
11+
/>
12+
);
13+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React, { memo } from 'react';
2+
3+
import { ColorPalette } from '../color.js';
4+
5+
import { DefaultIconProps } from './types.js';
6+
7+
function _FuelPumpIcon({ color, ...rest }: DefaultIconProps) {
8+
return (
9+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" {...rest}>
10+
<path
11+
d="M3 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5Z"
12+
fill={color || ColorPalette.Black}
13+
/>
14+
<path
15+
d="M1 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v8a2 2 0 0 1 2 2v.5a.5.5 0 0 0 1 0V8h-.5a.5.5 0 0 1-.5-.5V4.375a.5.5 0 0 1 .5-.5h1.495c-.011-.476-.053-.894-.201-1.222a.97.97 0 0 0-.394-.458c-.184-.11-.464-.195-.9-.195a.5.5 0 0 1 0-1c.564 0 1.034.11 1.412.336.383.228.634.551.794.907.295.655.294 1.465.294 2.081v3.175a.5.5 0 0 1-.5.501H15v4.5a1.5 1.5 0 0 1-3 0V12a1 1 0 0 0-1-1v4h.5a.5.5 0 0 1 0 1H.5a.5.5 0 0 1 0-1H1V2Zm9 0a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13h8V2Z"
16+
fill={color || ColorPalette.Black}
17+
/>
18+
</svg>
19+
);
20+
}
21+
22+
export const FuelPumpIcon = memo(_FuelPumpIcon);

typescript/widgets/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { Fade } from './animations/Fade.js';
2+
export { Skeleton } from './animations/Skeleton.js';
23
export {
34
ChainDetailsMenu,
45
type ChainDetailsMenuProps,
@@ -32,6 +33,7 @@ export { DocsIcon } from './icons/Docs.js';
3233
export { EllipsisIcon } from './icons/Ellipsis.js';
3334
export { EnvelopeIcon } from './icons/Envelope.js';
3435
export { ErrorIcon } from './icons/Error.js';
36+
export { FuelPumpIcon } from './icons/FuelPump.js';
3537
export { FilterIcon } from './icons/Filter.js';
3638
export { FunnelIcon } from './icons/Funnel.js';
3739
export { GearIcon } from './icons/Gear.js';

0 commit comments

Comments
 (0)