buildgrid-ui 1.15.26 → 1.15.30
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/buildgrid-ui.css +1 -1
- package/dist/buildgrid-ui.es.js +8463 -6992
- package/dist/buildgrid-ui.umd.js +83 -83
- package/dist/components/button/button.d.ts +10 -8
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/carousel/carousel.d.ts +19 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/collapsible/collapsible.d.ts +5 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/toaster/toast.d.ts +2 -2
- package/package.json +3 -1
- package/dist/components/button/button.types.d.ts +0 -66
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "md" | "sm" | "lg" | "xl" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
type ButtonProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
7
8
|
asChild?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare function Button({ className, variant, size, asChild, isLoading, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { Button, ButtonProps, buttonVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Button } from '../button';
|
|
4
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
5
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
6
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
7
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
8
|
+
type CarouselProps = {
|
|
9
|
+
opts?: CarouselOptions;
|
|
10
|
+
plugins?: CarouselPlugin;
|
|
11
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
setApi?: (api: CarouselApi) => void;
|
|
13
|
+
};
|
|
14
|
+
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<'div'> & CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CarouselContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CarouselItem({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselApi, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './carousel';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
2
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './collapsible';
|
|
@@ -8,7 +8,9 @@ export * from './badge';
|
|
|
8
8
|
export * from './button';
|
|
9
9
|
export * from './calendar';
|
|
10
10
|
export * from './card';
|
|
11
|
+
export * from './carousel';
|
|
11
12
|
export * from './checkbox';
|
|
13
|
+
export * from './collapsible';
|
|
12
14
|
export * from './command';
|
|
13
15
|
export * from './currency-input';
|
|
14
16
|
export * from './dialog';
|
|
@@ -4,7 +4,7 @@ export declare const spinnerColors: TSpinnerColors[];
|
|
|
4
4
|
export type TSpinnerSizes = NonNullable<VariantProps<typeof spinnerVariants>['size']>;
|
|
5
5
|
export declare const spinnerSizes: TSpinnerSizes[];
|
|
6
6
|
declare const spinnerVariants: (props?: ({
|
|
7
|
-
color?: "secondary" | "info" | "warning" | "error" | "success" | "primary" | "
|
|
7
|
+
color?: "secondary" | "white" | "info" | "warning" | "error" | "success" | "primary" | "neutral" | null | undefined;
|
|
8
8
|
size?: "md" | "sm" | "lg" | "xl" | "2xl" | "xs" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
10
|
export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
@@ -14,12 +14,12 @@ export declare const toast: {
|
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
15
|
onDismiss?: ((toast: import("sonner").ToastT) => void) | undefined;
|
|
16
16
|
position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined;
|
|
17
|
+
invert?: boolean | undefined;
|
|
17
18
|
cancel?: React.ReactNode | import("sonner").Action;
|
|
19
|
+
duration?: number | undefined;
|
|
18
20
|
richColors?: boolean | undefined;
|
|
19
|
-
invert?: boolean | undefined;
|
|
20
21
|
closeButton?: boolean | undefined;
|
|
21
22
|
dismissible?: boolean | undefined;
|
|
22
|
-
duration?: number | undefined;
|
|
23
23
|
action?: React.ReactNode | import("sonner").Action;
|
|
24
24
|
onAutoClose?: ((toast: import("sonner").ToastT) => void) | undefined;
|
|
25
25
|
cancelButtonStyle?: React.CSSProperties | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buildgrid-ui",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.30",
|
|
4
4
|
"homepage": "http://adrianomaringolo.github.io/buildgrid-ui",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@radix-ui/react-alert-dialog": "^1.1.7",
|
|
59
59
|
"@radix-ui/react-avatar": "^1.1.4",
|
|
60
60
|
"@radix-ui/react-checkbox": "^1.1.5",
|
|
61
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
61
62
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
62
63
|
"@radix-ui/react-dropdown-menu": "^2.1.7",
|
|
63
64
|
"@radix-ui/react-label": "^2.1.3",
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
"cva-extended": "^2.0.0",
|
|
83
84
|
"date-fns": "^4.1.0",
|
|
84
85
|
"date-fns-tz": "^3.2.0",
|
|
86
|
+
"embla-carousel-react": "^8.6.0",
|
|
85
87
|
"highlight.js": "^11.11.1",
|
|
86
88
|
"lucide-react": "^0.539.0",
|
|
87
89
|
"react-day-picker": "^9.8.1",
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { DeepPartial } from '@/lib/types/ts-utilities';
|
|
2
|
-
export declare const buttonThemeDefaults: {
|
|
3
|
-
base: string[];
|
|
4
|
-
variants: {
|
|
5
|
-
variant: {
|
|
6
|
-
default: string;
|
|
7
|
-
destructive: string;
|
|
8
|
-
outline: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
ghost: string;
|
|
11
|
-
link: string;
|
|
12
|
-
};
|
|
13
|
-
size: {
|
|
14
|
-
sm: string;
|
|
15
|
-
md: string;
|
|
16
|
-
lg: string;
|
|
17
|
-
xl: string;
|
|
18
|
-
icon: string;
|
|
19
|
-
};
|
|
20
|
-
rounded: {
|
|
21
|
-
true: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
variant: "default";
|
|
26
|
-
size: "md";
|
|
27
|
-
rounded: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export declare const buttonVariants: ((arg?: (({
|
|
31
|
-
class?: import("cva-extended").ClassValue;
|
|
32
|
-
className?: never;
|
|
33
|
-
} | {
|
|
34
|
-
class?: never;
|
|
35
|
-
className?: import("cva-extended").ClassValue;
|
|
36
|
-
}) & {
|
|
37
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | undefined;
|
|
38
|
-
size?: "md" | "sm" | "lg" | "xl" | "icon" | undefined;
|
|
39
|
-
rounded?: boolean | undefined;
|
|
40
|
-
}) | undefined) => string) & {
|
|
41
|
-
variants: {
|
|
42
|
-
variant: readonly ("link" | "default" | "destructive" | "outline" | "secondary" | "ghost")[];
|
|
43
|
-
size: readonly ("md" | "sm" | "lg" | "xl" | "icon")[];
|
|
44
|
-
rounded: readonly boolean[];
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export interface ButtonThemeVariants {
|
|
48
|
-
size?: (typeof buttonVariants)['variants']['size'][0];
|
|
49
|
-
rounded?: boolean;
|
|
50
|
-
variant?: (typeof buttonVariants)['variants']['variant'][0];
|
|
51
|
-
}
|
|
52
|
-
export interface ButtonTheme {
|
|
53
|
-
base: string | string[];
|
|
54
|
-
variants: {
|
|
55
|
-
size: {
|
|
56
|
-
[key in (typeof buttonVariants)['variants']['size'][0]]: string;
|
|
57
|
-
};
|
|
58
|
-
rounded: {
|
|
59
|
-
true: string;
|
|
60
|
-
};
|
|
61
|
-
variant: {
|
|
62
|
-
[key in (typeof buttonVariants)['variants']['variant'][0]]: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export type ButtonThemeProps = DeepPartial<ButtonTheme>;
|