@bubo-squared/ui-framework 0.2.27 → 0.2.29
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 +386 -377
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -12
- package/dist/index.d.ts +22 -12
- package/dist/index.js +359 -350
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11,8 +11,8 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
11
11
|
import { ClassValue } from 'clsx';
|
|
12
12
|
|
|
13
13
|
declare const buttonVariants: (props?: ({
|
|
14
|
-
variant?: "
|
|
15
|
-
size?: "sm" | "
|
|
14
|
+
variant?: "destructive" | "outline" | "secondary" | "ghost" | "primary" | "destructive-outline" | null | undefined;
|
|
15
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
16
16
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
17
|
interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
18
18
|
asChild?: boolean;
|
|
@@ -27,8 +27,8 @@ interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
27
27
|
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
28
28
|
|
|
29
29
|
declare const iconButtonVariants: (props?: ({
|
|
30
|
-
variant?: "
|
|
31
|
-
size?: "sm" | "
|
|
30
|
+
variant?: "destructive" | "outline" | "secondary" | "ghost" | "primary" | null | undefined;
|
|
31
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
32
32
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
33
33
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
34
34
|
asChild?: boolean;
|
|
@@ -54,8 +54,8 @@ interface IconButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
54
54
|
declare const IconButtonGroup: React$1.FC<IconButtonGroupProps>;
|
|
55
55
|
|
|
56
56
|
declare const linkButtonVariants: (props?: ({
|
|
57
|
-
variant?: "
|
|
58
|
-
size?: "sm" | "
|
|
57
|
+
variant?: "destructive" | "secondary" | "primary" | null | undefined;
|
|
58
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
59
59
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
60
|
interface LinkButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof linkButtonVariants> {
|
|
61
61
|
asChild?: boolean;
|
|
@@ -83,7 +83,7 @@ declare const Accordion: React$1.ForwardRefExoticComponent<Omit<Omit<AccordionPr
|
|
|
83
83
|
bordered?: boolean;
|
|
84
84
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
85
85
|
|
|
86
|
-
type AvatarVariant = "
|
|
86
|
+
type AvatarVariant = "initials" | "icon" | "image";
|
|
87
87
|
declare const avatarVariants: (props?: ({
|
|
88
88
|
size?: "20" | "24" | "32" | "40" | "48" | "56" | "64" | null | undefined;
|
|
89
89
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -130,8 +130,8 @@ type TypographyProps<T extends ElementType = "span"> = TypographyOwnProps & {
|
|
|
130
130
|
declare const Typography: <T extends ElementType = "span">(props: TypographyProps<T>) => react_jsx_runtime.JSX.Element;
|
|
131
131
|
|
|
132
132
|
declare const badgeVariants: (props?: ({
|
|
133
|
-
size?: "sm" | "
|
|
134
|
-
variant?: "error" | "
|
|
133
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
134
|
+
variant?: "error" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" | "double-default" | "double-current" | null | undefined;
|
|
135
135
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
136
136
|
type BadgeVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
|
|
137
137
|
type BadgeSize = "sm" | "md" | "lg" | "xl";
|
|
@@ -147,7 +147,7 @@ declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefA
|
|
|
147
147
|
|
|
148
148
|
declare const badgeDigitVariants: (props?: ({
|
|
149
149
|
size?: "sm" | "md" | null | undefined;
|
|
150
|
-
variant?: "error" | "
|
|
150
|
+
variant?: "error" | "secondary" | "disabled" | "primary" | "success" | "informal" | "warning" | null | undefined;
|
|
151
151
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
152
152
|
type BadgeDigitSize = "sm" | "md";
|
|
153
153
|
type BadgeDigitVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled";
|
|
@@ -399,8 +399,8 @@ interface SelectOption {
|
|
|
399
399
|
value: string;
|
|
400
400
|
}
|
|
401
401
|
declare const selectTriggerVariants: (props?: ({
|
|
402
|
-
size?: "sm" | "
|
|
403
|
-
status?: "error" | "
|
|
402
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
403
|
+
status?: "error" | "default" | "success" | null | undefined;
|
|
404
404
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
405
405
|
interface SelectProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, VariantProps<typeof selectTriggerVariants> {
|
|
406
406
|
label?: React$1.ReactNode;
|
|
@@ -659,6 +659,16 @@ interface PopoverProps {
|
|
|
659
659
|
* the arrow size so the content clears the trigger.
|
|
660
660
|
*/
|
|
661
661
|
offset?: number;
|
|
662
|
+
/**
|
|
663
|
+
* If provide, this content will be rendered inside the popover
|
|
664
|
+
* instead of the default layout with strapline, title, description and buttons.
|
|
665
|
+
* Can be a ReactNode or a function that receives close/ok/cancel handlers.
|
|
666
|
+
*/
|
|
667
|
+
customContent?: React$1.ReactNode | ((props: {
|
|
668
|
+
close: () => void;
|
|
669
|
+
ok: () => void;
|
|
670
|
+
cancel: () => void;
|
|
671
|
+
}) => React$1.ReactNode);
|
|
662
672
|
}
|
|
663
673
|
declare const Popover: React$1.FC<PopoverProps>;
|
|
664
674
|
|
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
11
11
|
import { ClassValue } from 'clsx';
|
|
12
12
|
|
|
13
13
|
declare const buttonVariants: (props?: ({
|
|
14
|
-
variant?: "
|
|
15
|
-
size?: "sm" | "
|
|
14
|
+
variant?: "destructive" | "outline" | "secondary" | "ghost" | "primary" | "destructive-outline" | null | undefined;
|
|
15
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
16
16
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
17
|
interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
18
18
|
asChild?: boolean;
|
|
@@ -27,8 +27,8 @@ interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
27
27
|
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
28
28
|
|
|
29
29
|
declare const iconButtonVariants: (props?: ({
|
|
30
|
-
variant?: "
|
|
31
|
-
size?: "sm" | "
|
|
30
|
+
variant?: "destructive" | "outline" | "secondary" | "ghost" | "primary" | null | undefined;
|
|
31
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
32
32
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
33
33
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
34
34
|
asChild?: boolean;
|
|
@@ -54,8 +54,8 @@ interface IconButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
54
54
|
declare const IconButtonGroup: React$1.FC<IconButtonGroupProps>;
|
|
55
55
|
|
|
56
56
|
declare const linkButtonVariants: (props?: ({
|
|
57
|
-
variant?: "
|
|
58
|
-
size?: "sm" | "
|
|
57
|
+
variant?: "destructive" | "secondary" | "primary" | null | undefined;
|
|
58
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
59
59
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
60
|
interface LinkButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof linkButtonVariants> {
|
|
61
61
|
asChild?: boolean;
|
|
@@ -83,7 +83,7 @@ declare const Accordion: React$1.ForwardRefExoticComponent<Omit<Omit<AccordionPr
|
|
|
83
83
|
bordered?: boolean;
|
|
84
84
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
85
85
|
|
|
86
|
-
type AvatarVariant = "
|
|
86
|
+
type AvatarVariant = "initials" | "icon" | "image";
|
|
87
87
|
declare const avatarVariants: (props?: ({
|
|
88
88
|
size?: "20" | "24" | "32" | "40" | "48" | "56" | "64" | null | undefined;
|
|
89
89
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -130,8 +130,8 @@ type TypographyProps<T extends ElementType = "span"> = TypographyOwnProps & {
|
|
|
130
130
|
declare const Typography: <T extends ElementType = "span">(props: TypographyProps<T>) => react_jsx_runtime.JSX.Element;
|
|
131
131
|
|
|
132
132
|
declare const badgeVariants: (props?: ({
|
|
133
|
-
size?: "sm" | "
|
|
134
|
-
variant?: "error" | "
|
|
133
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
134
|
+
variant?: "error" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" | "double-default" | "double-current" | null | undefined;
|
|
135
135
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
136
136
|
type BadgeVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
|
|
137
137
|
type BadgeSize = "sm" | "md" | "lg" | "xl";
|
|
@@ -147,7 +147,7 @@ declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefA
|
|
|
147
147
|
|
|
148
148
|
declare const badgeDigitVariants: (props?: ({
|
|
149
149
|
size?: "sm" | "md" | null | undefined;
|
|
150
|
-
variant?: "error" | "
|
|
150
|
+
variant?: "error" | "secondary" | "disabled" | "primary" | "success" | "informal" | "warning" | null | undefined;
|
|
151
151
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
152
152
|
type BadgeDigitSize = "sm" | "md";
|
|
153
153
|
type BadgeDigitVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled";
|
|
@@ -399,8 +399,8 @@ interface SelectOption {
|
|
|
399
399
|
value: string;
|
|
400
400
|
}
|
|
401
401
|
declare const selectTriggerVariants: (props?: ({
|
|
402
|
-
size?: "sm" | "
|
|
403
|
-
status?: "error" | "
|
|
402
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
403
|
+
status?: "error" | "default" | "success" | null | undefined;
|
|
404
404
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
405
405
|
interface SelectProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, VariantProps<typeof selectTriggerVariants> {
|
|
406
406
|
label?: React$1.ReactNode;
|
|
@@ -659,6 +659,16 @@ interface PopoverProps {
|
|
|
659
659
|
* the arrow size so the content clears the trigger.
|
|
660
660
|
*/
|
|
661
661
|
offset?: number;
|
|
662
|
+
/**
|
|
663
|
+
* If provide, this content will be rendered inside the popover
|
|
664
|
+
* instead of the default layout with strapline, title, description and buttons.
|
|
665
|
+
* Can be a ReactNode or a function that receives close/ok/cancel handlers.
|
|
666
|
+
*/
|
|
667
|
+
customContent?: React$1.ReactNode | ((props: {
|
|
668
|
+
close: () => void;
|
|
669
|
+
ok: () => void;
|
|
670
|
+
cancel: () => void;
|
|
671
|
+
}) => React$1.ReactNode);
|
|
662
672
|
}
|
|
663
673
|
declare const Popover: React$1.FC<PopoverProps>;
|
|
664
674
|
|