@bubo-squared/ui-framework 0.2.0 → 0.2.11

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.d.cts CHANGED
@@ -100,6 +100,23 @@ interface AvatarProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
100
100
  }
101
101
  declare const Avatar: React$1.ForwardRefExoticComponent<AvatarProps & React$1.RefAttributes<HTMLButtonElement>>;
102
102
 
103
+ declare const typographyVariants: readonly string[];
104
+ type TypographyVariant = (typeof typographyVariants)[number];
105
+ type TypographyWeight = "regular" | "medium" | "bold";
106
+ type ElementType = React$1.ElementType;
107
+ type PropsOf<T extends ElementType> = React$1.ComponentPropsWithoutRef<T>;
108
+ type TypographyOwnProps = {
109
+ variant: TypographyVariant;
110
+ weight?: TypographyWeight;
111
+ useMargin?: boolean;
112
+ className?: string;
113
+ children?: React$1.ReactNode;
114
+ };
115
+ type TypographyProps<T extends ElementType = "span"> = TypographyOwnProps & {
116
+ as?: T;
117
+ } & Omit<PropsOf<T>, keyof TypographyOwnProps | "as">;
118
+ declare const Typography: <T extends ElementType = "span">(props: TypographyProps<T>) => react_jsx_runtime.JSX.Element;
119
+
103
120
  declare const badgeVariants: (props?: ({
104
121
  size?: "sm" | "md" | "lg" | "xl" | null | undefined;
105
122
  variant?: "primary" | "secondary" | "disabled" | "success" | "error" | "active" | "informal" | "warning" | "double-default" | "double-current" | null | undefined;
@@ -531,4 +548,4 @@ declare const Logo: FC<LogoProps>;
531
548
 
532
549
  declare function cn(...inputs: ClassValue[]): string;
533
550
 
534
- export { Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumb, Button, ButtonGroup, Checkbox, Divider, Dropdown, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, WebsiteInput, cn };
551
+ export { Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumb, Button, ButtonGroup, Checkbox, Divider, Dropdown, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, Typography, WebsiteInput, cn };
package/dist/index.d.ts CHANGED
@@ -100,6 +100,23 @@ interface AvatarProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
100
100
  }
101
101
  declare const Avatar: React$1.ForwardRefExoticComponent<AvatarProps & React$1.RefAttributes<HTMLButtonElement>>;
102
102
 
103
+ declare const typographyVariants: readonly string[];
104
+ type TypographyVariant = (typeof typographyVariants)[number];
105
+ type TypographyWeight = "regular" | "medium" | "bold";
106
+ type ElementType = React$1.ElementType;
107
+ type PropsOf<T extends ElementType> = React$1.ComponentPropsWithoutRef<T>;
108
+ type TypographyOwnProps = {
109
+ variant: TypographyVariant;
110
+ weight?: TypographyWeight;
111
+ useMargin?: boolean;
112
+ className?: string;
113
+ children?: React$1.ReactNode;
114
+ };
115
+ type TypographyProps<T extends ElementType = "span"> = TypographyOwnProps & {
116
+ as?: T;
117
+ } & Omit<PropsOf<T>, keyof TypographyOwnProps | "as">;
118
+ declare const Typography: <T extends ElementType = "span">(props: TypographyProps<T>) => react_jsx_runtime.JSX.Element;
119
+
103
120
  declare const badgeVariants: (props?: ({
104
121
  size?: "sm" | "md" | "lg" | "xl" | null | undefined;
105
122
  variant?: "primary" | "secondary" | "disabled" | "success" | "error" | "active" | "informal" | "warning" | "double-default" | "double-current" | null | undefined;
@@ -531,4 +548,4 @@ declare const Logo: FC<LogoProps>;
531
548
 
532
549
  declare function cn(...inputs: ClassValue[]): string;
533
550
 
534
- export { Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumb, Button, ButtonGroup, Checkbox, Divider, Dropdown, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, WebsiteInput, cn };
551
+ export { Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumb, Button, ButtonGroup, Checkbox, Divider, Dropdown, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, Typography, WebsiteInput, cn };