advi-ui 0.1.19 → 0.2.1
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/README.md +4 -2
- package/dist/advi-ui.cjs.js +1 -1
- package/dist/advi-ui.cjs.js.map +1 -1
- package/dist/advi-ui.css +1 -2
- package/dist/advi-ui.d.ts +1 -0
- package/dist/advi-ui.es.js +1457 -1454
- package/dist/advi-ui.es.js.map +1 -1
- package/dist/fonts.cjs.js +0 -0
- package/dist/fonts.css +1 -0
- package/dist/fonts.d.ts +1 -0
- package/dist/fonts.es.js +0 -0
- package/dist/src/components/ui/button-variants.d.ts +4 -0
- package/dist/src/components/ui/button.d.ts +4 -7
- package/dist/src/components/ui/multi-select.d.ts +1 -1
- package/dist/src/components/ui/toast-store.d.ts +18 -0
- package/dist/src/components/ui/toast.d.ts +0 -7
- package/dist/src/fonts.d.ts +0 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/lib/utils.d.ts +2 -2
- package/package.json +37 -7
package/dist/fonts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/fonts.es.js
ADDED
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const buttonVariants: (props?: ({
|
|
2
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
3
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { buttonVariants } from './button-variants';
|
|
7
4
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
5
|
asChild?: boolean;
|
|
9
6
|
}
|
|
10
|
-
declare const Button:
|
|
11
|
-
export { Button
|
|
7
|
+
declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export { Button };
|
|
@@ -11,4 +11,4 @@ interface MultiSelectProps {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
maxCount?: number;
|
|
13
13
|
}
|
|
14
|
-
export declare const MultiSelect: import('react').ForwardRefExoticComponent<MultiSelectProps & import('react').RefAttributes<
|
|
14
|
+
export declare const MultiSelect: import('react').ForwardRefExoticComponent<MultiSelectProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type ToastVariant = "default" | "success" | "error" | "warning" | "info";
|
|
2
|
+
export interface ToastItem {
|
|
3
|
+
id: string;
|
|
4
|
+
variant: ToastVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
duration?: number;
|
|
8
|
+
}
|
|
9
|
+
declare let globalAddToast: ((toast: Omit<ToastItem, "id">) => void) | null;
|
|
10
|
+
export declare const setGlobalAddToast: (fn: typeof globalAddToast) => void;
|
|
11
|
+
export declare const toast: {
|
|
12
|
+
success: (titleOrDescription: string, description?: string) => void;
|
|
13
|
+
error: (titleOrDescription: string, description?: string) => void;
|
|
14
|
+
warning: (titleOrDescription: string, description?: string) => void;
|
|
15
|
+
info: (titleOrDescription: string, description?: string) => void;
|
|
16
|
+
default: (titleOrDescription: string, description?: string) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -4,11 +4,4 @@ export declare const ToastProvider: ({ children, position }: {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
position?: ToastPosition;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const toast: {
|
|
8
|
-
success: (titleOrDescription: string, description?: string) => void;
|
|
9
|
-
error: (titleOrDescription: string, description?: string) => void;
|
|
10
|
-
warning: (titleOrDescription: string, description?: string) => void;
|
|
11
|
-
info: (titleOrDescription: string, description?: string) => void;
|
|
12
|
-
default: (titleOrDescription: string, description?: string) => void;
|
|
13
|
-
};
|
|
14
7
|
export {};
|
|
File without changes
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './lib/utils';
|
|
|
2
2
|
export * from './components/ui/accordion';
|
|
3
3
|
export * from './components/ui/badge';
|
|
4
4
|
export * from './components/ui/button';
|
|
5
|
+
export * from './components/ui/button-variants';
|
|
5
6
|
export * from './components/ui/card';
|
|
6
7
|
export * from './components/ui/checkbox';
|
|
7
8
|
export * from './components/ui/dialog';
|
|
@@ -18,6 +19,7 @@ export * from './components/ui/table';
|
|
|
18
19
|
export * from './components/ui/tabs';
|
|
19
20
|
export * from './components/ui/textarea';
|
|
20
21
|
export * from './components/ui/toast';
|
|
22
|
+
export * from './components/ui/toast-store';
|
|
21
23
|
export * from './components/CircularProgressBar';
|
|
22
24
|
export * from './components/SearchInput';
|
|
23
25
|
export * from './components/Footer';
|
package/dist/src/lib/utils.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export declare const cn: (...inputs: ClassValue[]) => string;
|
|
|
3
3
|
export declare const round: (value: number, decimal: number) => number;
|
|
4
4
|
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
5
5
|
export declare const truncate: (str: string, maxLength: number, suffix?: string) => string;
|
|
6
|
-
export declare const throttle: <T extends (...args:
|
|
7
|
-
export declare const debounce: <T extends (...args:
|
|
6
|
+
export declare const throttle: <T extends (...args: never[]) => void>(func: T, limit: number) => (...args: Parameters<T>) => void;
|
|
7
|
+
export declare const debounce: <T extends (...args: never[]) => void>(func: T, delay: number) => {
|
|
8
8
|
(...args: Parameters<T>): void;
|
|
9
9
|
cancel(): void;
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "advi-ui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Personal React component library built on shadcn/ui + Tailwind CSS",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/1atharvad/advi-ui"
|
|
8
|
+
},
|
|
5
9
|
"type": "module",
|
|
6
10
|
"main": "./dist/advi-ui.cjs.js",
|
|
7
11
|
"module": "./dist/advi-ui.es.js",
|
|
@@ -14,7 +18,8 @@
|
|
|
14
18
|
},
|
|
15
19
|
"./styles": "./dist/advi-ui.css",
|
|
16
20
|
"./themes": "./dist/advi-ui.css",
|
|
17
|
-
"./themes/palette": "./src/styles/themes/_palette.scss"
|
|
21
|
+
"./themes/palette": "./src/styles/themes/_palette.scss",
|
|
22
|
+
"./fonts": "./dist/fonts.css"
|
|
18
23
|
},
|
|
19
24
|
"files": [
|
|
20
25
|
"dist"
|
|
@@ -30,15 +35,37 @@
|
|
|
30
35
|
"preview": "vite preview",
|
|
31
36
|
"storybook": "storybook dev -p 6006",
|
|
32
37
|
"build-storybook": "storybook build",
|
|
33
|
-
"test": "vitest"
|
|
38
|
+
"test": "vitest",
|
|
39
|
+
"changeset": "changeset",
|
|
40
|
+
"version-packages": "changeset version && node scripts/format-changelog-dates.mjs",
|
|
41
|
+
"release": "npm run build:lib && changeset publish",
|
|
42
|
+
"size": "npm run build:lib && size-limit"
|
|
34
43
|
},
|
|
44
|
+
"size-limit": [
|
|
45
|
+
{
|
|
46
|
+
"name": "advi-ui.es.js",
|
|
47
|
+
"path": "dist/advi-ui.es.js",
|
|
48
|
+
"limit": "80 KB"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "advi-ui.css",
|
|
52
|
+
"path": "dist/advi-ui.css",
|
|
53
|
+
"limit": "20 KB"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "fonts.css",
|
|
57
|
+
"path": "dist/fonts.css",
|
|
58
|
+
"limit": "500 KB"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
35
61
|
"peerDependencies": {
|
|
62
|
+
"gsap": "^3.15.0",
|
|
63
|
+
"lucide-react": "^1.8.0",
|
|
36
64
|
"react": ">=18",
|
|
37
65
|
"react-dom": ">=18"
|
|
38
66
|
},
|
|
39
67
|
"dependencies": {
|
|
40
68
|
"@base-ui/react": "^1.4.0",
|
|
41
|
-
"@fontsource-variable/geist": "^5.2.8",
|
|
42
69
|
"@fontsource/raleway": "^5.2.8",
|
|
43
70
|
"@fontsource/rubik": "^5.2.8",
|
|
44
71
|
"@fontsource/unbounded": "^5.2.8",
|
|
@@ -47,13 +74,12 @@
|
|
|
47
74
|
"@radix-ui/react-slot": "^1.2.4",
|
|
48
75
|
"class-variance-authority": "^0.7.1",
|
|
49
76
|
"clsx": "^2.1.1",
|
|
50
|
-
"gsap": "^3.15.0",
|
|
51
|
-
"lucide-react": "^1.8.0",
|
|
52
|
-
"sass": "^1.99.0",
|
|
53
77
|
"tailwind-merge": "^3.5.0"
|
|
54
78
|
},
|
|
55
79
|
"devDependencies": {
|
|
80
|
+
"@changesets/cli": "^2.31.0",
|
|
56
81
|
"@eslint/js": "^9.39.4",
|
|
82
|
+
"@size-limit/file": "^12.1.0",
|
|
57
83
|
"@storybook/addon-a11y": "^10.3.5",
|
|
58
84
|
"@storybook/addon-designs": "^11.1.3",
|
|
59
85
|
"@storybook/addon-docs": "^10.3.5",
|
|
@@ -72,10 +98,14 @@
|
|
|
72
98
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
73
99
|
"eslint-plugin-storybook": "^10.3.5",
|
|
74
100
|
"globals": "^17.4.0",
|
|
101
|
+
"gsap": "^3.15.0",
|
|
102
|
+
"lucide-react": "^1.8.0",
|
|
75
103
|
"playwright": "^1.59.1",
|
|
76
104
|
"postcss": "^8.5.10",
|
|
77
105
|
"react": "^19.2.4",
|
|
78
106
|
"react-dom": "^19.2.4",
|
|
107
|
+
"sass": "^1.99.0",
|
|
108
|
+
"size-limit": "^12.1.0",
|
|
79
109
|
"storybook": "^10.3.5",
|
|
80
110
|
"tailwindcss": "^3.4.19",
|
|
81
111
|
"tailwindcss-animate": "^1.0.7",
|