advi-ui 0.1.2 → 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.
- package/dist/advi-ui.cjs.js +12 -12
- package/dist/advi-ui.cjs.js.map +1 -1
- package/dist/advi-ui.css +1 -1
- package/dist/advi-ui.es.js +3097 -1246
- package/dist/advi-ui.es.js.map +1 -1
- package/dist/src/components/Header.d.ts +14 -0
- package/dist/src/components/ScrollAnimationBtn.d.ts +9 -0
- package/dist/src/components/ui/link.d.ts +12 -1
- package/dist/src/components/ui/modal.d.ts +4 -2
- package/dist/src/components/ui/toast.d.ts +4 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/gsap.d.ts +2 -0
- package/package.json +6 -2
- package/dist/index.d.ts +0 -1
- package/dist/src/components/ui/header.d.ts +0 -9
|
@@ -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,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 {};
|
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export interface Link {
|
|
3
3
|
url: string;
|
|
4
4
|
text?: string;
|
|
5
|
-
|
|
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
|
|
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
|
-
|
|
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 {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ export * from './lib/utils';
|
|
|
2
2
|
export * from './components/ui/button';
|
|
3
3
|
export * from './components/ui/card';
|
|
4
4
|
export * from './components/ui/dialog';
|
|
5
|
-
export * from './components/ui/header';
|
|
6
5
|
export * from './components/ui/input';
|
|
7
6
|
export * from './components/ui/link';
|
|
8
7
|
export * from './components/ui/loading';
|
|
9
8
|
export * from './components/ui/modal';
|
|
10
9
|
export * from './components/ui/textarea';
|
|
11
10
|
export * from './components/ui/toast';
|
|
11
|
+
export * from './components/Header';
|
|
12
12
|
export * from './components/PageNotFound';
|
|
13
13
|
export * from './components/PageAside';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "advi-ui",
|
|
3
|
-
"version": "0.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",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"import": "./dist/advi-ui.es.js",
|
|
13
13
|
"require": "./dist/advi-ui.cjs.js"
|
|
14
14
|
},
|
|
15
|
-
"./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"
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
18
20
|
"dist"
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
"@radix-ui/react-slot": "^1.2.4",
|
|
45
47
|
"class-variance-authority": "^0.7.1",
|
|
46
48
|
"clsx": "^2.1.1",
|
|
49
|
+
"gsap": "^3.15.0",
|
|
47
50
|
"lucide-react": "^1.8.0",
|
|
48
51
|
"sass": "^1.99.0",
|
|
49
52
|
"tailwind-merge": "^3.5.0"
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
"devDependencies": {
|
|
52
55
|
"@eslint/js": "^9.39.4",
|
|
53
56
|
"@storybook/addon-a11y": "^10.3.5",
|
|
57
|
+
"@storybook/addon-designs": "^11.1.3",
|
|
54
58
|
"@storybook/addon-docs": "^10.3.5",
|
|
55
59
|
"@storybook/addon-onboarding": "^10.3.5",
|
|
56
60
|
"@storybook/addon-themes": "^10.3.5",
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|