@bubo-squared/ui-framework 0.2.30 → 0.2.32
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 +116 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -6
- package/dist/index.d.ts +27 -6
- package/dist/index.js +202 -180
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -132,11 +132,11 @@ declare const Typography: <T extends ElementType = "span">(props: TypographyProp
|
|
|
132
132
|
|
|
133
133
|
declare const badgeVariants: (props?: ({
|
|
134
134
|
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
135
|
-
variant?: "error" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" |
|
|
135
|
+
variant?: "error" | "outline" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" | null | undefined;
|
|
136
136
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
137
|
-
type BadgeVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
|
|
137
|
+
type BadgeVariant = "primary" | "secondary" | "outline" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
|
|
138
138
|
type BadgeSize = "sm" | "md" | "lg" | "xl";
|
|
139
|
-
interface BadgeProps extends React$1.HTMLAttributes<
|
|
139
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
140
140
|
asChild?: boolean;
|
|
141
141
|
label: React$1.ReactNode;
|
|
142
142
|
value?: React$1.ReactNode;
|
|
@@ -144,7 +144,7 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
144
144
|
size?: BadgeSize;
|
|
145
145
|
variant?: BadgeVariant;
|
|
146
146
|
}
|
|
147
|
-
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<
|
|
147
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
148
148
|
|
|
149
149
|
declare const badgeDigitVariants: (props?: ({
|
|
150
150
|
size?: "sm" | "md" | null | undefined;
|
|
@@ -263,8 +263,10 @@ interface StatusAvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
263
263
|
}
|
|
264
264
|
declare const StatusAvatar: React$1.ForwardRefExoticComponent<StatusAvatarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
265
265
|
|
|
266
|
+
type TagSize = "sm" | "md" | "lg" | "xl";
|
|
266
267
|
declare const tagVariants: (props?: ({
|
|
267
|
-
size?: "sm" | "md" | null | undefined;
|
|
268
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
269
|
+
rounded?: boolean | null | undefined;
|
|
268
270
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
269
271
|
interface TagProps extends VariantProps<typeof tagVariants> {
|
|
270
272
|
asChild?: boolean;
|
|
@@ -277,8 +279,9 @@ interface TagProps extends VariantProps<typeof tagVariants> {
|
|
|
277
279
|
trailingIcon?: React$1.ReactElement<{
|
|
278
280
|
disabled?: boolean;
|
|
279
281
|
}>;
|
|
280
|
-
size?:
|
|
282
|
+
size?: TagSize;
|
|
281
283
|
disabled?: boolean;
|
|
284
|
+
rounded?: boolean;
|
|
282
285
|
}
|
|
283
286
|
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
284
287
|
|
|
@@ -704,6 +707,7 @@ declare const TooltipProvider: React$1.FC<TooltipProviderProps>;
|
|
|
704
707
|
declare function Breadcrumb({ ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
705
708
|
|
|
706
709
|
interface BreadcrumbsProps extends React$1.ComponentProps<typeof Breadcrumb> {
|
|
710
|
+
/** Custom separator node rendered between breadcrumb items. */
|
|
707
711
|
separator?: React$1.ReactNode;
|
|
708
712
|
/**
|
|
709
713
|
* When true and there are >= 5 breadcrumb items, replaces all items except
|
|
@@ -711,9 +715,26 @@ interface BreadcrumbsProps extends React$1.ComponentProps<typeof Breadcrumb> {
|
|
|
711
715
|
*/
|
|
712
716
|
ellipsis?: boolean;
|
|
713
717
|
children: React$1.ReactNode;
|
|
718
|
+
/** Classes for the breadcrumb list container (`ol`). */
|
|
719
|
+
breadcrumbListClassName?: string;
|
|
720
|
+
/** Classes for the separator wrapper between items. */
|
|
714
721
|
separatorClassName?: string;
|
|
722
|
+
/** Classes applied to each breadcrumb item wrapper (`li`). */
|
|
715
723
|
breadcrumbItemClassName?: string;
|
|
724
|
+
/** Classes for the current-page element (`aria-current="page"`). */
|
|
716
725
|
breadcrumbPageClassName?: string;
|
|
726
|
+
/** Extra classes for the ellipsis breadcrumb item wrapper. */
|
|
727
|
+
ellipsisItemClassName?: string;
|
|
728
|
+
/** Classes for the ellipsis trigger button. */
|
|
729
|
+
ellipsisTriggerClassName?: string;
|
|
730
|
+
/** Classes for the ellipsis dropdown content container. */
|
|
731
|
+
ellipsisContentClassName?: string;
|
|
732
|
+
/** Classes for the ellipsis dropdown group wrapper. */
|
|
733
|
+
ellipsisGroupClassName?: string;
|
|
734
|
+
/** Classes for each item rendered in the ellipsis dropdown menu. */
|
|
735
|
+
ellipsisMenuItemClassName?: string;
|
|
736
|
+
/** Accessible label for the ellipsis trigger button. */
|
|
737
|
+
ellipsisAriaLabel?: string;
|
|
717
738
|
}
|
|
718
739
|
declare const Breadcrumbs: React$1.ForwardRefExoticComponent<Omit<BreadcrumbsProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
719
740
|
|
package/dist/index.d.ts
CHANGED
|
@@ -132,11 +132,11 @@ declare const Typography: <T extends ElementType = "span">(props: TypographyProp
|
|
|
132
132
|
|
|
133
133
|
declare const badgeVariants: (props?: ({
|
|
134
134
|
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
135
|
-
variant?: "error" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" |
|
|
135
|
+
variant?: "error" | "outline" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" | null | undefined;
|
|
136
136
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
137
|
-
type BadgeVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
|
|
137
|
+
type BadgeVariant = "primary" | "secondary" | "outline" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
|
|
138
138
|
type BadgeSize = "sm" | "md" | "lg" | "xl";
|
|
139
|
-
interface BadgeProps extends React$1.HTMLAttributes<
|
|
139
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
140
140
|
asChild?: boolean;
|
|
141
141
|
label: React$1.ReactNode;
|
|
142
142
|
value?: React$1.ReactNode;
|
|
@@ -144,7 +144,7 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
144
144
|
size?: BadgeSize;
|
|
145
145
|
variant?: BadgeVariant;
|
|
146
146
|
}
|
|
147
|
-
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<
|
|
147
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
148
148
|
|
|
149
149
|
declare const badgeDigitVariants: (props?: ({
|
|
150
150
|
size?: "sm" | "md" | null | undefined;
|
|
@@ -263,8 +263,10 @@ interface StatusAvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
263
263
|
}
|
|
264
264
|
declare const StatusAvatar: React$1.ForwardRefExoticComponent<StatusAvatarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
265
265
|
|
|
266
|
+
type TagSize = "sm" | "md" | "lg" | "xl";
|
|
266
267
|
declare const tagVariants: (props?: ({
|
|
267
|
-
size?: "sm" | "md" | null | undefined;
|
|
268
|
+
size?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
269
|
+
rounded?: boolean | null | undefined;
|
|
268
270
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
269
271
|
interface TagProps extends VariantProps<typeof tagVariants> {
|
|
270
272
|
asChild?: boolean;
|
|
@@ -277,8 +279,9 @@ interface TagProps extends VariantProps<typeof tagVariants> {
|
|
|
277
279
|
trailingIcon?: React$1.ReactElement<{
|
|
278
280
|
disabled?: boolean;
|
|
279
281
|
}>;
|
|
280
|
-
size?:
|
|
282
|
+
size?: TagSize;
|
|
281
283
|
disabled?: boolean;
|
|
284
|
+
rounded?: boolean;
|
|
282
285
|
}
|
|
283
286
|
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
284
287
|
|
|
@@ -704,6 +707,7 @@ declare const TooltipProvider: React$1.FC<TooltipProviderProps>;
|
|
|
704
707
|
declare function Breadcrumb({ ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
705
708
|
|
|
706
709
|
interface BreadcrumbsProps extends React$1.ComponentProps<typeof Breadcrumb> {
|
|
710
|
+
/** Custom separator node rendered between breadcrumb items. */
|
|
707
711
|
separator?: React$1.ReactNode;
|
|
708
712
|
/**
|
|
709
713
|
* When true and there are >= 5 breadcrumb items, replaces all items except
|
|
@@ -711,9 +715,26 @@ interface BreadcrumbsProps extends React$1.ComponentProps<typeof Breadcrumb> {
|
|
|
711
715
|
*/
|
|
712
716
|
ellipsis?: boolean;
|
|
713
717
|
children: React$1.ReactNode;
|
|
718
|
+
/** Classes for the breadcrumb list container (`ol`). */
|
|
719
|
+
breadcrumbListClassName?: string;
|
|
720
|
+
/** Classes for the separator wrapper between items. */
|
|
714
721
|
separatorClassName?: string;
|
|
722
|
+
/** Classes applied to each breadcrumb item wrapper (`li`). */
|
|
715
723
|
breadcrumbItemClassName?: string;
|
|
724
|
+
/** Classes for the current-page element (`aria-current="page"`). */
|
|
716
725
|
breadcrumbPageClassName?: string;
|
|
726
|
+
/** Extra classes for the ellipsis breadcrumb item wrapper. */
|
|
727
|
+
ellipsisItemClassName?: string;
|
|
728
|
+
/** Classes for the ellipsis trigger button. */
|
|
729
|
+
ellipsisTriggerClassName?: string;
|
|
730
|
+
/** Classes for the ellipsis dropdown content container. */
|
|
731
|
+
ellipsisContentClassName?: string;
|
|
732
|
+
/** Classes for the ellipsis dropdown group wrapper. */
|
|
733
|
+
ellipsisGroupClassName?: string;
|
|
734
|
+
/** Classes for each item rendered in the ellipsis dropdown menu. */
|
|
735
|
+
ellipsisMenuItemClassName?: string;
|
|
736
|
+
/** Accessible label for the ellipsis trigger button. */
|
|
737
|
+
ellipsisAriaLabel?: string;
|
|
717
738
|
}
|
|
718
739
|
declare const Breadcrumbs: React$1.ForwardRefExoticComponent<Omit<BreadcrumbsProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
719
740
|
|