@bergetai/ui 0.1.83 → 0.1.85
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/index.cjs +305 -310
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +287 -292
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -33,29 +33,29 @@ interface ThemeToggleProps extends React$1.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
33
33
|
declare const ThemeToggle: React$1.ForwardRefExoticComponent<ThemeToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
34
34
|
|
|
35
35
|
declare const buttonVariants: (props?: ({
|
|
36
|
-
variant?: "
|
|
37
|
-
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
38
|
-
width?: "default" | "full" | null | undefined;
|
|
36
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
37
|
+
size?: "sm" | "lg" | "default" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
39
38
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
40
|
-
|
|
39
|
+
interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
41
40
|
asChild?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const Button$1: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
|
|
44
|
+
type PrimitiveButtonProps = React$1.ComponentProps<typeof Button$1>;
|
|
45
|
+
/** Custom variants that extend the upstream shadcn primitive. */
|
|
46
|
+
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
47
|
+
interface ButtonProps extends Omit<PrimitiveButtonProps, 'variant'> {
|
|
48
|
+
/** Visual style variant. `primary` is Berget-specific. */
|
|
49
|
+
variant?: CustomVariant;
|
|
50
|
+
/** Show a loading spinner. Hides text content on icon-only buttons. */
|
|
42
51
|
isLoading?: boolean;
|
|
43
|
-
|
|
44
|
-
width?:
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
variant: 'icon';
|
|
48
|
-
'aria-label': string;
|
|
49
|
-
};
|
|
50
|
-
type RegularButtonProps = BaseButtonProps & {
|
|
51
|
-
variant?: Exclude<VariantProps<typeof buttonVariants>['variant'], 'icon'>;
|
|
52
|
-
'aria-label'?: string;
|
|
53
|
-
};
|
|
54
|
-
type ButtonProps = IconButtonProps | RegularButtonProps;
|
|
55
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
/** Full width or auto width. */
|
|
53
|
+
width?: 'default' | 'full';
|
|
54
|
+
}
|
|
55
|
+
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
56
56
|
|
|
57
57
|
declare const typographyVariants: (props?: ({
|
|
58
|
-
variant?: "small" | "
|
|
58
|
+
variant?: "small" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "mono" | null | undefined;
|
|
59
59
|
color?: "default" | "muted" | "dim" | null | undefined;
|
|
60
60
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
61
61
|
interface TypographyProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'color'>, VariantProps<typeof typographyVariants> {
|
|
@@ -205,7 +205,7 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
205
205
|
}): react_jsx_runtime.JSX.Element | null;
|
|
206
206
|
|
|
207
207
|
declare const linkVariants: (props?: ({
|
|
208
|
-
variant?: "default" | "secondary" | "ghost" | "
|
|
208
|
+
variant?: "default" | "secondary" | "ghost" | "code" | "primary" | "muted" | null | undefined;
|
|
209
209
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
210
210
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
211
211
|
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
@@ -267,7 +267,7 @@ declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAtt
|
|
|
267
267
|
|
|
268
268
|
declare const boxVariants: (props?: ({
|
|
269
269
|
direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
|
|
270
|
-
align?: "end" | "start" | "
|
|
270
|
+
align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
|
|
271
271
|
justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
|
|
272
272
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
273
273
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,29 +33,29 @@ interface ThemeToggleProps extends React$1.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
33
33
|
declare const ThemeToggle: React$1.ForwardRefExoticComponent<ThemeToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
34
34
|
|
|
35
35
|
declare const buttonVariants: (props?: ({
|
|
36
|
-
variant?: "
|
|
37
|
-
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
38
|
-
width?: "default" | "full" | null | undefined;
|
|
36
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
37
|
+
size?: "sm" | "lg" | "default" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
39
38
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
40
|
-
|
|
39
|
+
interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
41
40
|
asChild?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const Button$1: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
|
|
44
|
+
type PrimitiveButtonProps = React$1.ComponentProps<typeof Button$1>;
|
|
45
|
+
/** Custom variants that extend the upstream shadcn primitive. */
|
|
46
|
+
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
47
|
+
interface ButtonProps extends Omit<PrimitiveButtonProps, 'variant'> {
|
|
48
|
+
/** Visual style variant. `primary` is Berget-specific. */
|
|
49
|
+
variant?: CustomVariant;
|
|
50
|
+
/** Show a loading spinner. Hides text content on icon-only buttons. */
|
|
42
51
|
isLoading?: boolean;
|
|
43
|
-
|
|
44
|
-
width?:
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
variant: 'icon';
|
|
48
|
-
'aria-label': string;
|
|
49
|
-
};
|
|
50
|
-
type RegularButtonProps = BaseButtonProps & {
|
|
51
|
-
variant?: Exclude<VariantProps<typeof buttonVariants>['variant'], 'icon'>;
|
|
52
|
-
'aria-label'?: string;
|
|
53
|
-
};
|
|
54
|
-
type ButtonProps = IconButtonProps | RegularButtonProps;
|
|
55
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
/** Full width or auto width. */
|
|
53
|
+
width?: 'default' | 'full';
|
|
54
|
+
}
|
|
55
|
+
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
56
56
|
|
|
57
57
|
declare const typographyVariants: (props?: ({
|
|
58
|
-
variant?: "small" | "
|
|
58
|
+
variant?: "small" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "mono" | null | undefined;
|
|
59
59
|
color?: "default" | "muted" | "dim" | null | undefined;
|
|
60
60
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
61
61
|
interface TypographyProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'color'>, VariantProps<typeof typographyVariants> {
|
|
@@ -205,7 +205,7 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
205
205
|
}): react_jsx_runtime.JSX.Element | null;
|
|
206
206
|
|
|
207
207
|
declare const linkVariants: (props?: ({
|
|
208
|
-
variant?: "default" | "secondary" | "ghost" | "
|
|
208
|
+
variant?: "default" | "secondary" | "ghost" | "code" | "primary" | "muted" | null | undefined;
|
|
209
209
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
210
210
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
211
211
|
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
@@ -267,7 +267,7 @@ declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAtt
|
|
|
267
267
|
|
|
268
268
|
declare const boxVariants: (props?: ({
|
|
269
269
|
direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
|
|
270
|
-
align?: "end" | "start" | "
|
|
270
|
+
align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
|
|
271
271
|
justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
|
|
272
272
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
273
273
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|