brd-ui-kit 0.0.1

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.
Files changed (98) hide show
  1. package/README.md +73 -0
  2. package/dist/components/ui/badge/badge.d.ts +13 -0
  3. package/dist/components/ui/badge/badge.stories.d.ts +29 -0
  4. package/dist/components/ui/badge/badge.styles.d.ts +8 -0
  5. package/dist/components/ui/badge/index.d.ts +3 -0
  6. package/dist/components/ui/button/button.d.ts +12 -0
  7. package/dist/components/ui/button/button.stories.d.ts +29 -0
  8. package/dist/components/ui/button/button.styles.d.ts +4 -0
  9. package/dist/components/ui/button/index.d.ts +3 -0
  10. package/dist/components/ui/card/card.d.ts +43 -0
  11. package/dist/components/ui/card/card.stories.d.ts +38 -0
  12. package/dist/components/ui/card/card.styles.d.ts +9 -0
  13. package/dist/components/ui/card/index.d.ts +1 -0
  14. package/dist/components/ui/checkbox/checkbox.d.ts +11 -0
  15. package/dist/components/ui/checkbox/checkbox.stories.d.ts +29 -0
  16. package/dist/components/ui/checkbox/checkbox.styles.d.ts +2 -0
  17. package/dist/components/ui/checkbox/index.d.ts +1 -0
  18. package/dist/components/ui/combobox/combobox.d.ts +31 -0
  19. package/dist/components/ui/combobox/combobox.stories.d.ts +10 -0
  20. package/dist/components/ui/combobox/combobox.styles.d.ts +21 -0
  21. package/dist/components/ui/combobox/index.d.ts +1 -0
  22. package/dist/components/ui/dialog/dialog.d.ts +37 -0
  23. package/dist/components/ui/dialog/dialog.stories.d.ts +46 -0
  24. package/dist/components/ui/dialog/dialog.styles.d.ts +7 -0
  25. package/dist/components/ui/dialog/index.d.ts +1 -0
  26. package/dist/components/ui/field/field.d.ts +22 -0
  27. package/dist/components/ui/field/field.stories.d.ts +45 -0
  28. package/dist/components/ui/field/field.styles.d.ts +15 -0
  29. package/dist/components/ui/field/index.d.ts +1 -0
  30. package/dist/components/ui/icon/icon-dictionary.d.ts +33 -0
  31. package/dist/components/ui/icon/icon.d.ts +10 -0
  32. package/dist/components/ui/icon/icon.stories.d.ts +34 -0
  33. package/dist/components/ui/icon/index.d.ts +1 -0
  34. package/dist/components/ui/icon/overrides.d.ts +9 -0
  35. package/dist/components/ui/input/index.d.ts +1 -0
  36. package/dist/components/ui/input/input.d.ts +8 -0
  37. package/dist/components/ui/input/input.stories.d.ts +40 -0
  38. package/dist/components/ui/input/input.styles.d.ts +4 -0
  39. package/dist/components/ui/input-group/index.d.ts +1 -0
  40. package/dist/components/ui/input-group/input-group.d.ts +11 -0
  41. package/dist/components/ui/input-group/input-group.stories.d.ts +46 -0
  42. package/dist/components/ui/input-group/input-group.styles.d.ts +6 -0
  43. package/dist/components/ui/label/index.d.ts +1 -0
  44. package/dist/components/ui/label/label.d.ts +13 -0
  45. package/dist/components/ui/label/label.stories.d.ts +26 -0
  46. package/dist/components/ui/navigation-item/index.d.ts +1 -0
  47. package/dist/components/ui/navigation-item/navigation-item.d.ts +20 -0
  48. package/dist/components/ui/navigation-item/navigation-item.stories.d.ts +57 -0
  49. package/dist/components/ui/navigation-item/navigation-item.styles.d.ts +5 -0
  50. package/dist/components/ui/navigation-menu/index.d.ts +1 -0
  51. package/dist/components/ui/navigation-menu/navigation-menu.d.ts +7 -0
  52. package/dist/components/ui/navigation-menu/navigation-menu.stories.d.ts +34 -0
  53. package/dist/components/ui/navigation-menu/navigation-menu.styles.d.ts +4 -0
  54. package/dist/components/ui/pagination/index.d.ts +1 -0
  55. package/dist/components/ui/pagination/pagination.d.ts +36 -0
  56. package/dist/components/ui/pagination/pagination.stories.d.ts +37 -0
  57. package/dist/components/ui/progress/index.d.ts +1 -0
  58. package/dist/components/ui/progress/progress.d.ts +11 -0
  59. package/dist/components/ui/progress/progress.stories.d.ts +34 -0
  60. package/dist/components/ui/radio-group/index.d.ts +1 -0
  61. package/dist/components/ui/radio-group/radio-group.d.ts +19 -0
  62. package/dist/components/ui/radio-group/radio-group.stories.d.ts +27 -0
  63. package/dist/components/ui/radio-group/radio-group.styles.d.ts +4 -0
  64. package/dist/components/ui/separator/index.d.ts +1 -0
  65. package/dist/components/ui/separator/separator.d.ts +11 -0
  66. package/dist/components/ui/separator/separator.stories.d.ts +27 -0
  67. package/dist/components/ui/switch/index.d.ts +1 -0
  68. package/dist/components/ui/switch/switch.d.ts +11 -0
  69. package/dist/components/ui/switch/switch.stories.d.ts +23 -0
  70. package/dist/components/ui/switch/switch.styles.d.ts +2 -0
  71. package/dist/components/ui/table/index.d.ts +1 -0
  72. package/dist/components/ui/table/table.d.ts +50 -0
  73. package/dist/components/ui/table/table.stories.d.ts +68 -0
  74. package/dist/components/ui/tabs/index.d.ts +1 -0
  75. package/dist/components/ui/tabs/tabs.d.ts +26 -0
  76. package/dist/components/ui/tabs/tabs.stories.d.ts +32 -0
  77. package/dist/components/ui/tabs/tabs.styles.d.ts +6 -0
  78. package/dist/components/ui/textarea/index.d.ts +1 -0
  79. package/dist/components/ui/textarea/textarea.d.ts +7 -0
  80. package/dist/components/ui/textarea/textarea.stories.d.ts +28 -0
  81. package/dist/components/ui/textarea/textarea.styles.d.ts +1 -0
  82. package/dist/components/ui/tooltip/index.d.ts +1 -0
  83. package/dist/components/ui/tooltip/tooltip.d.ts +15 -0
  84. package/dist/components/ui/tooltip/tooltip.stories.d.ts +42 -0
  85. package/dist/components/ui/tooltip/tooltip.styles.d.ts +1 -0
  86. package/dist/components/ui/typography/index.d.ts +4 -0
  87. package/dist/components/ui/typography/typography.d.ts +9 -0
  88. package/dist/components/ui/typography/typography.stories.d.ts +24 -0
  89. package/dist/components/ui/typography/typography.styles.d.ts +9 -0
  90. package/dist/index.cjs +162 -0
  91. package/dist/index.cjs.map +1 -0
  92. package/dist/index.d.ts +27 -0
  93. package/dist/index.js +15590 -0
  94. package/dist/index.js.map +1 -0
  95. package/dist/lib/utils.d.ts +2 -0
  96. package/dist/types/types.d.ts +3 -0
  97. package/dist/vite.svg +1 -0
  98. package/package.json +94 -0
@@ -0,0 +1,27 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: {
5
+ ({ className, orientation, decorative, ref, ...props }: Omit<import('@radix-ui/react-separator').SeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string | undefined;
9
+ };
10
+ args: {
11
+ orientation: "horizontal";
12
+ decorative: true;
13
+ };
14
+ argTypes: {
15
+ orientation: {
16
+ control: "select";
17
+ options: string[];
18
+ };
19
+ decorative: {
20
+ control: "boolean";
21
+ };
22
+ };
23
+ };
24
+ export default meta;
25
+ type Story = StoryObj<typeof meta>;
26
+ export declare const Overview: Story;
27
+ export declare const Playground: Story;
@@ -0,0 +1 @@
1
+ export { Switch } from './switch';
@@ -0,0 +1,11 @@
1
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
2
+ import * as React from "react";
3
+ type SwitchRef = React.ComponentRef<typeof SwitchPrimitives.Root>;
4
+ type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> & {
5
+ ref?: React.Ref<SwitchRef>;
6
+ };
7
+ declare const Switch: {
8
+ ({ className, ref, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string | undefined;
10
+ };
11
+ export { Switch };
@@ -0,0 +1,23 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: {
5
+ ({ className, ref, ...props }: Omit<import('@radix-ui/react-switch').SwitchProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
6
+ ref?: React.Ref<HTMLButtonElement>;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string | undefined;
9
+ };
10
+ args: {
11
+ defaultChecked: false;
12
+ disabled: false;
13
+ };
14
+ argTypes: {
15
+ onCheckedChange: {
16
+ action: string;
17
+ };
18
+ };
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<typeof meta>;
22
+ export declare const Overview: Story;
23
+ export declare const Playground: Story;
@@ -0,0 +1,2 @@
1
+ export declare const switchRootClassNames: readonly ["peer group relative inline-flex h-6 w-12 shrink-0 cursor-pointer items-center rounded-full border p-1 transition-colors", "border-inp-default-border bg-primary-bg", "enabled:hover:border-inp-hover-border", "data-[state=checked]:bg-primary-inverse-bg", "data-[state=checked]:border-inp-default-border enabled:hover:data-[state=checked]:border-inp-hover-border", "disabled:cursor-not-allowed disabled:border-disabled-border disabled:bg-disabled-bg", "disabled:data-[state=checked]:border-disabled-border disabled:data-[state=checked]:bg-disabled-bg", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border"];
2
+ export declare const switchThumbClassNames: readonly ["pointer-events-none block size-4 rounded-full transition-transform", "bg-primary-inverse-bg data-[state=checked]:translate-x-6 data-[state=checked]:bg-primary-bg", "group-disabled:bg-disabled-text group-disabled:data-[state=checked]:bg-disabled-text"];
@@ -0,0 +1 @@
1
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from './table';
@@ -0,0 +1,50 @@
1
+ import * as React from "react";
2
+ declare const Table: {
3
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableElement> & {
4
+ ref?: React.RefObject<HTMLTableElement | null>;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ declare const TableHeader: {
9
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
10
+ ref?: React.RefObject<HTMLTableSectionElement | null>;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ declare const TableBody: {
15
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
16
+ ref?: React.RefObject<HTMLTableSectionElement | null>;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const TableFooter: {
21
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
22
+ ref?: React.RefObject<HTMLTableSectionElement | null>;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ displayName: string;
25
+ };
26
+ declare const TableRow: {
27
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableRowElement> & {
28
+ ref?: React.RefObject<HTMLTableRowElement | null>;
29
+ }): import("react/jsx-runtime").JSX.Element;
30
+ displayName: string;
31
+ };
32
+ declare const TableHead: {
33
+ ({ ref, className, ...props }: React.ThHTMLAttributes<HTMLTableCellElement> & {
34
+ ref?: React.RefObject<HTMLTableCellElement | null>;
35
+ }): import("react/jsx-runtime").JSX.Element;
36
+ displayName: string;
37
+ };
38
+ declare const TableCell: {
39
+ ({ ref, className, ...props }: React.TdHTMLAttributes<HTMLTableCellElement> & {
40
+ ref?: React.RefObject<HTMLTableCellElement | null>;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ displayName: string;
43
+ };
44
+ declare const TableCaption: {
45
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableCaptionElement> & {
46
+ ref?: React.RefObject<HTMLTableCaptionElement | null>;
47
+ }): import("react/jsx-runtime").JSX.Element;
48
+ displayName: string;
49
+ };
50
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
@@ -0,0 +1,68 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: {
5
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableElement> & {
6
+ ref?: React.RefObject<HTMLTableElement | null>;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ subcomponents: {
11
+ TableHeader: {
12
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
13
+ ref?: React.RefObject<HTMLTableSectionElement | null>;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ TableBody: {
18
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
19
+ ref?: React.RefObject<HTMLTableSectionElement | null>;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ TableFooter: {
24
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
25
+ ref?: React.RefObject<HTMLTableSectionElement | null>;
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ displayName: string;
28
+ };
29
+ TableRow: {
30
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableRowElement> & {
31
+ ref?: React.RefObject<HTMLTableRowElement | null>;
32
+ }): import("react/jsx-runtime").JSX.Element;
33
+ displayName: string;
34
+ };
35
+ TableHead: {
36
+ ({ ref, className, ...props }: React.ThHTMLAttributes<HTMLTableCellElement> & {
37
+ ref?: React.RefObject<HTMLTableCellElement | null>;
38
+ }): import("react/jsx-runtime").JSX.Element;
39
+ displayName: string;
40
+ };
41
+ TableCell: {
42
+ ({ ref, className, ...props }: React.TdHTMLAttributes<HTMLTableCellElement> & {
43
+ ref?: React.RefObject<HTMLTableCellElement | null>;
44
+ }): import("react/jsx-runtime").JSX.Element;
45
+ displayName: string;
46
+ };
47
+ TableCaption: {
48
+ ({ ref, className, ...props }: React.HTMLAttributes<HTMLTableCaptionElement> & {
49
+ ref?: React.RefObject<HTMLTableCaptionElement | null>;
50
+ }): import("react/jsx-runtime").JSX.Element;
51
+ displayName: string;
52
+ };
53
+ };
54
+ args: {
55
+ className: string;
56
+ };
57
+ argTypes: {
58
+ className: {
59
+ control: "text";
60
+ };
61
+ };
62
+ render: (args: import('react').HTMLAttributes<HTMLTableElement> & {
63
+ ref?: React.RefObject<HTMLTableElement | null>;
64
+ }) => import("react/jsx-runtime").JSX.Element;
65
+ };
66
+ export default meta;
67
+ type Story = StoryObj<typeof meta>;
68
+ export declare const Playground: Story;
@@ -0,0 +1 @@
1
+ export { Tabs, TabsContent, TabsList, TabsTrigger, type TabsListProps, type TabsTriggerProps, } from './tabs';
@@ -0,0 +1,26 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { tabsListVariants, tabsTriggerVariants } from './tabs.styles';
3
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
4
+ import * as React from "react";
5
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
6
+ type TabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>;
7
+ declare const TabsList: {
8
+ ({ ref, className, variant, ...props }: TabsListProps & {
9
+ ref?: React.RefObject<React.ComponentRef<typeof TabsPrimitive.List> | null>;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string | undefined;
12
+ };
13
+ type TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> & VariantProps<typeof tabsTriggerVariants>;
14
+ declare const TabsTrigger: {
15
+ ({ ref, className, variant: variantProp, ...props }: TabsTriggerProps & {
16
+ ref?: React.RefObject<React.ComponentRef<typeof TabsPrimitive.Trigger> | null>;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string | undefined;
19
+ };
20
+ declare const TabsContent: {
21
+ ({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content> & {
22
+ ref?: React.RefObject<React.ComponentRef<typeof TabsPrimitive.Content> | null>;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ displayName: string | undefined;
25
+ };
26
+ export { Tabs, TabsContent, TabsList, TabsTrigger, type TabsListProps, type TabsTriggerProps, };
@@ -0,0 +1,32 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').ForwardRefExoticComponent<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>>;
5
+ args: {
6
+ defaultValue: string;
7
+ orientation: "horizontal";
8
+ };
9
+ argTypes: {
10
+ orientation: {
11
+ control: "select";
12
+ options: string[];
13
+ description: string;
14
+ };
15
+ defaultValue: {
16
+ control: "text";
17
+ description: string;
18
+ };
19
+ value: {
20
+ control: "text";
21
+ description: string;
22
+ };
23
+ onValueChange: {
24
+ action: string;
25
+ description: string;
26
+ };
27
+ };
28
+ };
29
+ export default meta;
30
+ type Story = StoryObj<typeof meta>;
31
+ export declare const Overview: Story;
32
+ export declare const Playground: Story;
@@ -0,0 +1,6 @@
1
+ export declare const tabsListVariants: (props?: ({
2
+ variant?: "line" | "default" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
+ export declare const tabsTriggerVariants: (props?: ({
5
+ variant?: "line" | "default" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Textarea } from './textarea';
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ type TextareaProps = React.ComponentPropsWithRef<"textarea">;
3
+ declare const Textarea: {
4
+ ({ className, ref, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export { Textarea };
@@ -0,0 +1,28 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: {
5
+ ({ className, ref, ...props }: import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ args: {
9
+ placeholder: string;
10
+ disabled: false;
11
+ value: string;
12
+ };
13
+ argTypes: {
14
+ placeholder: {
15
+ control: "text";
16
+ };
17
+ disabled: {
18
+ control: "boolean";
19
+ };
20
+ value: {
21
+ control: "text";
22
+ };
23
+ };
24
+ };
25
+ export default meta;
26
+ type Story = StoryObj<typeof meta>;
27
+ export declare const Overview: Story;
28
+ export declare const Playground: Story;
@@ -0,0 +1 @@
1
+ export declare const textareaClassName: string;
@@ -0,0 +1 @@
1
+ export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, } from './tooltip';
@@ -0,0 +1,15 @@
1
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2
+ import * as React from "react";
3
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TooltipArrow: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
7
+ type TooltipContentRef = React.ComponentRef<typeof TooltipPrimitive.Content>;
8
+ type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {
9
+ ref?: React.Ref<TooltipContentRef>;
10
+ };
11
+ declare const TooltipContent: {
12
+ ({ className, sideOffset, ref, ...props }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string | undefined;
14
+ };
15
+ export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,42 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ type TooltipPreviewProps = {
3
+ label: string;
4
+ content: string;
5
+ side?: "top" | "right" | "bottom" | "left";
6
+ withArrow?: boolean;
7
+ defaultOpen?: boolean;
8
+ };
9
+ declare function TooltipPreview({ label, content, side, withArrow, defaultOpen, }: TooltipPreviewProps): import("react/jsx-runtime").JSX.Element;
10
+ declare const meta: {
11
+ title: string;
12
+ component: typeof TooltipPreview;
13
+ args: {
14
+ label: string;
15
+ content: string;
16
+ side: "top";
17
+ withArrow: false;
18
+ defaultOpen: true;
19
+ };
20
+ argTypes: {
21
+ label: {
22
+ control: "text";
23
+ };
24
+ content: {
25
+ control: "text";
26
+ };
27
+ side: {
28
+ control: "select";
29
+ options: string[];
30
+ };
31
+ withArrow: {
32
+ control: "boolean";
33
+ };
34
+ defaultOpen: {
35
+ control: "boolean";
36
+ };
37
+ };
38
+ };
39
+ export default meta;
40
+ type Story = StoryObj<typeof meta>;
41
+ export declare const Overview: Story;
42
+ export declare const Playground: Story;
@@ -0,0 +1 @@
1
+ export declare const tooltipContentClassName = "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95\ndata-[state=closed]:animate-out data-[state=closed]:fade-out-0\ndata-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2\ndata-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2\ndata-[side=top]:slide-in-from-bottom-2 z-50\norigin-[--radix-tooltip-content-transform-origin] overflow-hidden rounded-md px-3\npy-1.5 text-xs";
@@ -0,0 +1,4 @@
1
+ export { Typography } from './typography';
2
+ export type { TypographyProps } from './typography';
3
+ export { getTypographyClassName, typographyClassNames, typographyVariantOptions, } from './typography.styles';
4
+ export type { TypographyVariant } from './typography.styles';
@@ -0,0 +1,9 @@
1
+ import { TypographyVariant } from './typography.styles';
2
+ import * as React from "react";
3
+ type TypographyTag = "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "label" | "p" | "span";
4
+ export interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, "color"> {
5
+ as?: TypographyTag;
6
+ variant?: TypographyVariant;
7
+ }
8
+ export declare const Typography: ({ as, className, variant, ...props }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,24 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ as, className, variant, ...props }: import('./typography').TypographyProps) => import("react/jsx-runtime").JSX.Element;
5
+ args: {
6
+ children: string;
7
+ variant: "body-md-regular";
8
+ as: "p";
9
+ };
10
+ argTypes: {
11
+ variant: {
12
+ control: "select";
13
+ options: readonly ["h1", "h2", "h3", "body-xl-regular", "body-xl-medium", "body-lg-regular", "body-lg-medium", "body-md-regular", "body-md-medium", "body-sm-regular", "body-sm-medium", "body-xs-regular", "body-xs-medium"];
14
+ };
15
+ as: {
16
+ control: "select";
17
+ options: string[];
18
+ };
19
+ };
20
+ };
21
+ export default meta;
22
+ type Story = StoryObj<typeof meta>;
23
+ export declare const Overview: Story;
24
+ export declare const Playground: Story;
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export declare const typographyVariantOptions: readonly ["h1", "h2", "h3", "body-xl-regular", "body-xl-medium", "body-lg-regular", "body-lg-medium", "body-md-regular", "body-md-medium", "body-sm-regular", "body-sm-medium", "body-xs-regular", "body-xs-medium"];
3
+ export declare const typographyClassNames: (props?: ({
4
+ variant?: "h1" | "h2" | "h3" | "body-xl-regular" | "body-xl-medium" | "body-lg-regular" | "body-lg-medium" | "body-md-regular" | "body-md-medium" | "body-sm-regular" | "body-sm-medium" | "body-xs-regular" | "body-xs-medium" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ type TypographyClassNameVariants = VariantProps<typeof typographyClassNames>;
7
+ export type TypographyVariant = NonNullable<TypographyClassNameVariants["variant"]>;
8
+ export declare const getTypographyClassName: (variant?: TypographyVariant) => string;
9
+ export {};