advi-ui 0.1.1 → 0.1.3

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.
@@ -0,0 +1,14 @@
1
+ import { Link } from '../../components/ui/link';
2
+ interface HeaderProps {
3
+ logo: {
4
+ name: string;
5
+ image: {
6
+ url: string;
7
+ alt: string;
8
+ };
9
+ link: Link;
10
+ };
11
+ ctaLinks?: Link[];
12
+ }
13
+ export declare const Header: ({ logo, ctaLinks }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ interface PageAsideProps {
3
+ children?: React.ReactNode;
4
+ title?: React.ReactNode;
5
+ userName?: string;
6
+ onLogout?: () => void;
7
+ }
8
+ declare const PageAsideNavItem: {
9
+ ({ icon: Icon, label }: {
10
+ icon: React.ElementType;
11
+ label: string;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const PageAside: {
16
+ ({ children, title, userName, onLogout }: PageAsideProps): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ export { PageAside, PageAsideNavItem };
@@ -0,0 +1,9 @@
1
+ interface ScrollAnimationBtnProps {
2
+ btnText?: string;
3
+ activatedText?: string;
4
+ deactivatedText?: string;
5
+ toastPosition?: "left" | "right";
6
+ className?: string;
7
+ }
8
+ export declare const ScrollAnimationBtn: ({ btnText, activatedText, deactivatedText, toastPosition, className, }: ScrollAnimationBtnProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,11 +1,8 @@
1
1
  import { default as React } from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
2
  declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
- declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
5
- direction?: "row" | "column" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardImage: React.ForwardRefExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & React.RefAttributes<HTMLImageElement>>;
7
4
  declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
5
  declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
6
  declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
10
- declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
- export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
7
+ declare const CardWrapper: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Card, CardWrapper, CardImage, CardTitle, CardDescription, CardContent };
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  export interface Link {
3
3
  url: string;
4
4
  text?: string;
5
- is_external_link?: boolean;
5
+ isExternal?: boolean;
6
6
  }
7
7
  type LinkProps = {
8
8
  link: Link;
@@ -10,5 +10,16 @@ type LinkProps = {
10
10
  noBaseClass?: boolean;
11
11
  children?: ReactNode;
12
12
  };
13
+ type ImageObj = {
14
+ url: string;
15
+ alt: string;
16
+ };
17
+ export type LogoLinkProps = {
18
+ name: string;
19
+ image: ImageObj | ReactNode;
20
+ link: Link;
21
+ className?: string;
22
+ };
13
23
  export declare const Link: ({ link, className, noBaseClass, children }: LinkProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const LogoLink: ({ name, image, link, className }: LogoLinkProps) => import("react/jsx-runtime").JSX.Element;
14
25
  export {};
@@ -2,11 +2,13 @@ import { ReactNode } from 'react';
2
2
  interface ModalProps {
3
3
  open: boolean;
4
4
  onOpenChange: (open: boolean) => void;
5
- trigger: ReactNode;
5
+ trigger?: ReactNode;
6
6
  title?: string;
7
7
  description?: string;
8
8
  children?: ReactNode;
9
9
  footer?: ReactNode;
10
+ className?: string;
11
+ duration?: number;
10
12
  }
11
- export declare const Modal: ({ open, onOpenChange, trigger, title, description, children, footer }: ModalProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Modal: ({ open, onOpenChange, trigger, title, description, children, footer, className, duration, }: ModalProps) => import("react/jsx-runtime").JSX.Element;
12
14
  export {};
@@ -1,6 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const ToastProvider: ({ children }: {
2
+ type ToastPosition = "left" | "right";
3
+ export declare const ToastProvider: ({ children, position }: {
3
4
  children: ReactNode;
5
+ position?: ToastPosition;
4
6
  }) => import("react/jsx-runtime").JSX.Element;
5
7
  export declare const toast: {
6
8
  success: (titleOrDescription: string, description?: string) => void;
@@ -9,3 +11,4 @@ export declare const toast: {
9
11
  info: (titleOrDescription: string, description?: string) => void;
10
12
  default: (titleOrDescription: string, description?: string) => void;
11
13
  };
14
+ export {};
@@ -1,14 +1,13 @@
1
+ export * from './lib/utils';
1
2
  export * from './components/ui/button';
2
3
  export * from './components/ui/card';
3
4
  export * from './components/ui/dialog';
4
- export * from './components/ui/header';
5
5
  export * from './components/ui/input';
6
- export * from './components/ui/label';
7
6
  export * from './components/ui/link';
8
7
  export * from './components/ui/loading';
9
8
  export * from './components/ui/modal';
10
- export * from './components/ui/page-aside';
11
9
  export * from './components/ui/textarea';
12
10
  export * from './components/ui/toast';
11
+ export * from './components/Header';
13
12
  export * from './components/PageNotFound';
14
- export * from './lib/utils';
13
+ export * from './components/PageAside';
@@ -0,0 +1,2 @@
1
+ import { gsap } from 'gsap';
2
+ export { gsap };
package/package.json CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "advi-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Personal React component library built on shadcn/ui + Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/advi-ui.cjs.js",
7
7
  "module": "./dist/advi-ui.es.js",
8
- "types": "./dist/index.d.ts",
8
+ "types": "./dist/src/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
+ "types": "./dist/src/index.d.ts",
11
12
  "import": "./dist/advi-ui.es.js",
12
13
  "require": "./dist/advi-ui.cjs.js"
13
14
  },
14
- "./styles": "./dist/advi-ui.css"
15
+ "./styles": "./dist/advi-ui.css",
16
+ "./themes": "./dist/advi-ui.css",
17
+ "./themes/palette": "./src/styles/themes/_palette.scss"
15
18
  },
16
19
  "files": [
17
20
  "dist"
@@ -43,6 +46,7 @@
43
46
  "@radix-ui/react-slot": "^1.2.4",
44
47
  "class-variance-authority": "^0.7.1",
45
48
  "clsx": "^2.1.1",
49
+ "gsap": "^3.15.0",
46
50
  "lucide-react": "^1.8.0",
47
51
  "sass": "^1.99.0",
48
52
  "tailwind-merge": "^3.5.0"
@@ -50,6 +54,7 @@
50
54
  "devDependencies": {
51
55
  "@eslint/js": "^9.39.4",
52
56
  "@storybook/addon-a11y": "^10.3.5",
57
+ "@storybook/addon-designs": "^11.1.3",
53
58
  "@storybook/addon-docs": "^10.3.5",
54
59
  "@storybook/addon-onboarding": "^10.3.5",
55
60
  "@storybook/addon-themes": "^10.3.5",
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export {}
@@ -1,9 +0,0 @@
1
- import { Link } from './link';
2
- export interface Header {
3
- logo_link: Link;
4
- nav_items: Link[];
5
- login_link: Link;
6
- }
7
- export declare const Header: ({ content }: {
8
- content: Header;
9
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
- import * as LabelPrimitive from "@radix-ui/react-label";
4
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
- export { Label };
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- interface PageAsideProps {
3
- children?: React.ReactNode;
4
- title?: React.ReactNode;
5
- userName?: string;
6
- onLogout?: () => void;
7
- }
8
- export declare const PageAside: ({ children, title, userName, onLogout }: PageAsideProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};