@0xsquid/ui 2.9.0 → 2.10.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.
Files changed (43) hide show
  1. package/dist/cjs/index.js +2 -109
  2. package/dist/cjs/types/components/buttons/index.d.ts +0 -1
  3. package/dist/cjs/types/components/icons/SquidLogo.d.ts +0 -4
  4. package/dist/cjs/types/components/icons/index.d.ts +0 -1
  5. package/dist/cjs/types/components/layout/index.d.ts +0 -2
  6. package/dist/cjs/types/components/views/SwapDetailsView.d.ts +1 -3
  7. package/dist/cjs/types/core/constants.d.ts +0 -1
  8. package/dist/cjs/types/core/design-system.d.ts +0 -2
  9. package/dist/cjs/types/services/internal/colorService.d.ts +0 -1
  10. package/dist/cjs/types/stories/badges/Image.stories.d.ts +0 -2
  11. package/dist/cjs/types/stories/views/SwapDetailsView.stories.d.ts +0 -2
  12. package/dist/cjs/types/types/components.d.ts +1 -2
  13. package/dist/esm/index.js +3 -104
  14. package/dist/esm/types/components/buttons/index.d.ts +0 -1
  15. package/dist/esm/types/components/icons/SquidLogo.d.ts +0 -4
  16. package/dist/esm/types/components/icons/index.d.ts +0 -1
  17. package/dist/esm/types/components/layout/index.d.ts +0 -2
  18. package/dist/esm/types/components/views/SwapDetailsView.d.ts +1 -3
  19. package/dist/esm/types/core/constants.d.ts +0 -1
  20. package/dist/esm/types/core/design-system.d.ts +0 -2
  21. package/dist/esm/types/services/internal/colorService.d.ts +0 -1
  22. package/dist/esm/types/stories/badges/Image.stories.d.ts +0 -2
  23. package/dist/esm/types/stories/views/SwapDetailsView.stories.d.ts +0 -2
  24. package/dist/esm/types/types/components.d.ts +1 -2
  25. package/dist/index.css +1 -1
  26. package/dist/index.d.ts +2 -34
  27. package/package.json +1 -1
  28. package/dist/cjs/types/components/buttons/BoostButton.d.ts +0 -9
  29. package/dist/cjs/types/components/cards/WalletCard.d.ts +0 -14
  30. package/dist/cjs/types/components/icons/Lightning.d.ts +0 -4
  31. package/dist/cjs/types/components/layout/Boost.d.ts +0 -13
  32. package/dist/cjs/types/components/layout/ProfileHeaderBackground.d.ts +0 -1
  33. package/dist/cjs/types/stories/buttons/BoostButton.stories.d.ts +0 -7
  34. package/dist/cjs/types/stories/cards/WalletCard.stories.d.ts +0 -11
  35. package/dist/cjs/types/stories/layout/Boost.stories.d.ts +0 -11
  36. package/dist/esm/types/components/buttons/BoostButton.d.ts +0 -9
  37. package/dist/esm/types/components/cards/WalletCard.d.ts +0 -14
  38. package/dist/esm/types/components/icons/Lightning.d.ts +0 -4
  39. package/dist/esm/types/components/layout/Boost.d.ts +0 -13
  40. package/dist/esm/types/components/layout/ProfileHeaderBackground.d.ts +0 -1
  41. package/dist/esm/types/stories/buttons/BoostButton.stories.d.ts +0 -7
  42. package/dist/esm/types/stories/cards/WalletCard.stories.d.ts +0 -11
  43. package/dist/esm/types/stories/layout/Boost.stories.d.ts +0 -11
@@ -1 +0,0 @@
1
- export declare function ProfileHeaderBackground(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { BoostButton } from "../../components/buttons/BoostButton";
3
- declare const meta: Meta<typeof BoostButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Normal: Story;
7
- export declare const Boost: Story;
@@ -1,11 +0,0 @@
1
- import { type Meta, type StoryObj } from "@storybook/react";
2
- import { WalletCard } from "../../components/cards/WalletCard";
3
- declare const meta: Meta<typeof WalletCard>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Disconnected: Story;
7
- export declare const ConnectedEVM: Story;
8
- export declare const ConnectedSolana: Story;
9
- export declare const ConnectedCosmos: Story;
10
- export declare const LightBackground: Story;
11
- export declare const ConnectedSelected: Story;
@@ -1,11 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { Boost } from "../../components/layout/Boost";
3
- declare const meta: Meta<typeof Boost>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Normal: Story;
7
- export declare const Boosted: Story;
8
- export declare const Tooltip: Story;
9
- export declare const NormalDisabled: Story;
10
- export declare const BoostedDisabled: Story;
11
- export declare const DisabledWithDelayedTooltip: Story;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoostMode } from "../../types/components";
3
- interface BoostButtonProps {
4
- boostMode: BoostMode;
5
- canToggleBoostMode?: boolean;
6
- boostIndicatorRef: React.RefObject<HTMLDivElement>;
7
- }
8
- export declare function BoostButton({ boostMode, canToggleBoostMode, boostIndicatorRef, }: BoostButtonProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,14 +0,0 @@
1
- interface WalletCardProps {
2
- isConnected?: boolean;
3
- chainImageUrl?: string;
4
- avatarImageUrl?: string;
5
- walletImageUrl?: string;
6
- title?: string;
7
- subtitle?: string;
8
- footerLabel?: string;
9
- isSelected?: boolean;
10
- bgColors?: string[];
11
- className?: string;
12
- }
13
- export declare function WalletCard({ avatarImageUrl, chainImageUrl, footerLabel, isConnected, subtitle, title, walletImageUrl, isSelected, bgColors, className, }: WalletCardProps): import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,4 +0,0 @@
1
- export declare function LightningIcon({ size, className, }: {
2
- size?: string;
3
- className?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { BoostMode } from "../../types/components";
2
- import { TooltipProps } from "../controls";
3
- interface BoostProps {
4
- boostMode: BoostMode;
5
- onToggleBoostMode?: ({ boostMode }: {
6
- boostMode: BoostMode;
7
- }) => void;
8
- estimatedTime: string;
9
- canToggleBoostMode?: boolean;
10
- tooltip?: Omit<TooltipProps, "children">;
11
- }
12
- export declare function Boost({ boostMode, onToggleBoostMode, estimatedTime, canToggleBoostMode, tooltip, }: BoostProps): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1 +0,0 @@
1
- export declare function ProfileHeaderBackground(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { BoostButton } from "../../components/buttons/BoostButton";
3
- declare const meta: Meta<typeof BoostButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Normal: Story;
7
- export declare const Boost: Story;
@@ -1,11 +0,0 @@
1
- import { type Meta, type StoryObj } from "@storybook/react";
2
- import { WalletCard } from "../../components/cards/WalletCard";
3
- declare const meta: Meta<typeof WalletCard>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Disconnected: Story;
7
- export declare const ConnectedEVM: Story;
8
- export declare const ConnectedSolana: Story;
9
- export declare const ConnectedCosmos: Story;
10
- export declare const LightBackground: Story;
11
- export declare const ConnectedSelected: Story;
@@ -1,11 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { Boost } from "../../components/layout/Boost";
3
- declare const meta: Meta<typeof Boost>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Normal: Story;
7
- export declare const Boosted: Story;
8
- export declare const Tooltip: Story;
9
- export declare const NormalDisabled: Story;
10
- export declare const BoostedDisabled: Story;
11
- export declare const DisabledWithDelayedTooltip: Story;