@gardenfi/garden-book 0.2.3 → 0.2.5

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 (32) hide show
  1. package/dist/animations/RollingText/RollingText.d.ts +12 -0
  2. package/dist/animations/RollingText/RollingText.stories.d.ts +7 -0
  3. package/dist/animations/index.d.ts +2 -1
  4. package/dist/components/atoms/Button/ClientOnlyLottie.d.ts +8 -0
  5. package/dist/components/atoms/ClientOnly/ClientOnly.d.ts +14 -0
  6. package/dist/components/atoms/ClientOnly/index.d.ts +1 -0
  7. package/dist/components/atoms/Icons/DollarChipIcon.d.ts +5 -0
  8. package/dist/components/atoms/Icons/EncryptedIcon.d.ts +5 -0
  9. package/dist/components/atoms/Icons/GiftBoxIcon.d.ts +5 -0
  10. package/dist/components/atoms/Icons/HorizontalSwap.d.ts +5 -0
  11. package/dist/components/atoms/Icons/RaiseHandIcon.d.ts +5 -0
  12. package/dist/components/atoms/Icons/Rotate360Icon.d.ts +5 -0
  13. package/dist/components/atoms/Icons/RoutingIcon.d.ts +5 -0
  14. package/dist/components/atoms/Icons/RowInfoIcon.d.ts +5 -0
  15. package/dist/components/atoms/Icons/index.d.ts +8 -0
  16. package/dist/components/atoms/Logo/GardenIconOutline.d.ts +5 -0
  17. package/dist/components/atoms/Logo/NFTIcon.d.ts +5 -0
  18. package/dist/components/atoms/Logo/index.d.ts +2 -0
  19. package/dist/components/atoms/Typography/Typography.d.ts +14 -3
  20. package/dist/components/atoms/index.d.ts +2 -1
  21. package/dist/components/organisms/Footer/Footer.d.ts +2 -0
  22. package/dist/components/organisms/Footer/Footer.stories.d.ts +2 -0
  23. package/dist/components/organisms/Footer/FooterBackgroundAnimation.d.ts +7 -0
  24. package/dist/components/organisms/Footer/FooterLink.d.ts +19 -0
  25. package/dist/hooks/useClientOnly.d.ts +5 -0
  26. package/dist/index.es-BsweaPuE.js +8030 -0
  27. package/dist/index.es-EZUrluJw.cjs +11 -0
  28. package/dist/style.css +1 -1
  29. package/dist/ui.cjs.js +36 -38
  30. package/dist/ui.es.js +7771 -14662
  31. package/dist/ui.umd.js +23 -15
  32. package/package.json +12 -9
@@ -0,0 +1,12 @@
1
+ type RollingTextProps = {
2
+ value: string;
3
+ isHovered?: boolean;
4
+ className?: string;
5
+ delay?: number;
6
+ };
7
+ export type RollingTextRef = {
8
+ startAnimation: () => void;
9
+ stopAnimation: () => void;
10
+ };
11
+ export declare const RollingText: import('react').ForwardRefExoticComponent<RollingTextProps & import('react').RefAttributes<RollingTextRef>>;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { RollingText } from './RollingText';
3
+
4
+ declare const meta: Meta<typeof RollingText>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof RollingText>;
7
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { ScaleY } from './ScaleY/ScaleY';
2
2
  import { Shine } from './Shine/Shine';
3
+ import { RollingText } from './RollingText/RollingText';
3
4
 
4
- export { ScaleY, Shine };
5
+ export { ScaleY, Shine, RollingText };
@@ -0,0 +1,8 @@
1
+ interface ClientOnlyLottieProps {
2
+ animationData: any;
3
+ loop?: boolean;
4
+ autoplay?: boolean;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export declare const ClientOnlyLottie: ({ animationData, loop, autoplay, style, }: ClientOnlyLottieProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ type ClientOnlyProps = {
4
+ children: ReactNode;
5
+ fallback?: ReactNode;
6
+ };
7
+ /**
8
+ * ClientOnly wrapper component that only renders children on the client side
9
+ * Useful for components that need to avoid SSR hydration issues
10
+ * @param children - Components to render only on client side
11
+ * @param fallback - Optional fallback content to show during SSR (defaults to null)
12
+ */
13
+ export declare const ClientOnly: ({ children, fallback }: ClientOnlyProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1 @@
1
+ export { ClientOnly } from './ClientOnly';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const DollarChipIcon: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const EncryptedIcon: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const GiftBoxIcon: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const HorizontalSwap: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const RaiseHandIcon: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const Rotate360Icon: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const RoutingIcon: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const RowInfoIcon: React.FC<SvgProps>;
5
+ export {};
@@ -72,3 +72,11 @@ export { XSolidIcon } from './XSolidIcon';
72
72
  export { XIcon } from './XIcon';
73
73
  export { ZellicIcon } from './ZellicIcon';
74
74
  export { SearchIconThin } from './SearchIconThin';
75
+ export { Rotate360Icon } from './Rotate360Icon';
76
+ export { EncryptedIcon } from './EncryptedIcon';
77
+ export { RoutingIcon } from './RoutingIcon';
78
+ export { HorizontalSwap } from './HorizontalSwap';
79
+ export { DollarChipIcon } from './DollarChipIcon';
80
+ export { GiftBoxIcon } from './GiftBoxIcon';
81
+ export { RaiseHandIcon } from './RaiseHandIcon';
82
+ export { RowInfoIcon } from './RowInfoIcon';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const GardenIconOutline: React.FC<SvgProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type SvgProps = React.SVGProps<SVGSVGElement>;
4
+ export declare const NFTIcon: React.FC<SvgProps>;
5
+ export {};
@@ -27,3 +27,5 @@ export { Dodo } from './DODO';
27
27
  export { Vertex } from './Vertex';
28
28
  export { Radiant } from './Radiant';
29
29
  export { GardenIcon } from './GardenIcon';
30
+ export { GardenIconOutline } from './GardenIconOutline';
31
+ export { NFTIcon } from './NFTIcon';
@@ -4,18 +4,29 @@ type breakpointVariants = "xs" | "sm" | "md" | "lg" | "xl";
4
4
  type Breakpoints = {
5
5
  [K in breakpointVariants]?: SizeVariants;
6
6
  };
7
- type TypographyProps = React.HTMLAttributes<HTMLDivElement | HTMLSpanElement | HTMLParagraphElement> & {
7
+ type BaseTypographyProps = {
8
8
  size?: SizeVariants;
9
9
  weight?: WeightVariants;
10
10
  breakpoints?: Breakpoints;
11
- as?: "div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
11
+ as?: "div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a";
12
12
  };
13
+ type TypographyProps = BaseTypographyProps & ((React.HTMLAttributes<HTMLDivElement> & {
14
+ as?: "div";
15
+ }) | (React.HTMLAttributes<HTMLSpanElement> & {
16
+ as?: "span";
17
+ }) | (React.HTMLAttributes<HTMLParagraphElement> & {
18
+ as?: "p";
19
+ }) | (React.HTMLAttributes<HTMLHeadingElement> & {
20
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
21
+ }) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
22
+ as: "a";
23
+ }));
13
24
  /**
14
25
  * Typography component
15
26
  * @param size - default size of the text => "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
16
27
  * @param weight - weight of the text => "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black"
17
28
  * @param breakpoints - Breakpoints for the text size => { [key in ["xs","sm","md","lg","xl"]]: SizeVariants }
18
- * @param as -HTML element to render as => "div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
29
+ * @param as -HTML element to render as => "div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a"
19
30
  * @default size - "h3" weight - "medium" as - "span"
20
31
  */
21
32
  export declare const Typography: React.FC<TypographyProps>;
@@ -5,8 +5,9 @@ import { Sidebar } from './Sidebar/Sidebar';
5
5
  import { Modal } from './Modal/Modal';
6
6
  import { BottomSheet } from './BottomSheet/BottomSheet';
7
7
  import { Container } from './Container/Container';
8
+ import { ClientOnly } from './ClientOnly/ClientOnly';
8
9
  export type { OpacityVariants } from './Opacity/Opacity';
9
10
  export * from './Icons';
10
11
  export * from './Logo';
11
12
  export { CheckBox } from './Checkbox/Checkbox';
12
- export { Button, Typography, Sidebar, Opacity, Modal, BottomSheet, Container };
13
+ export { Button, Typography, Sidebar, Opacity, Modal, BottomSheet, Container, ClientOnly, };
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
 
3
3
  type FooterProps = React.HTMLAttributes<HTMLDivElement> & {
4
4
  network?: string;
5
+ navigate?: (path: string) => void;
6
+ maskUrl?: string;
5
7
  };
6
8
  export declare const Footer: React.FC<FooterProps>;
7
9
  export {};
@@ -4,6 +4,8 @@ declare const meta: {
4
4
  title: string;
5
5
  component: import('react').FC<import('react').HTMLAttributes<HTMLDivElement> & {
6
6
  network?: string;
7
+ navigate?: (path: string) => void;
8
+ maskUrl?: string;
7
9
  }>;
8
10
  tags: string[];
9
11
  parameters: {
@@ -0,0 +1,7 @@
1
+ type FooterBackgroundAnimationProps = {
2
+ isMobile: boolean;
3
+ isLogoHovered: boolean;
4
+ maskUrl?: string;
5
+ };
6
+ export declare const FooterBackgroundAnimation: ({ isMobile, isLogoHovered, maskUrl, }: FooterBackgroundAnimationProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,19 @@
1
+ type FooterLink = {
2
+ title: string;
3
+ link: string | undefined;
4
+ isExternal: boolean;
5
+ chain?: string;
6
+ inputAsset?: string;
7
+ inputChain?: string;
8
+ };
9
+ type FooterLinksProps = {
10
+ title: string;
11
+ links: Record<string, FooterLink>;
12
+ hoveredIndex?: number | null;
13
+ onHover?: (index: number | null) => void;
14
+ className?: string;
15
+ listClassName?: string;
16
+ isRoutes?: boolean;
17
+ };
18
+ export declare const FooterLinks: React.FC<FooterLinksProps>;
19
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Custom hook that returns true only on the client side
3
+ * Useful for components that need to avoid SSR hydration issues
4
+ */
5
+ export declare const useClientOnly: () => boolean;