@qodo/design-system 0.1.0 → 0.2.0

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.ts CHANGED
@@ -1,8 +1,32 @@
1
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
1
2
  import { ClassProp } from 'class-variance-authority/types';
2
3
  import { ClassValue } from 'clsx';
4
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
5
+ import { JSX } from 'react/jsx-runtime';
6
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
3
7
  import * as React_2 from 'react';
8
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
9
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
10
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
11
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
12
  import { VariantProps } from 'class-variance-authority';
5
13
 
14
+ export declare function Accordion({ ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Root>): JSX.Element;
15
+
16
+ export declare function AccordionContent({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Content>): JSX.Element;
17
+
18
+ export declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Item>): JSX.Element;
19
+
20
+ export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Trigger>): JSX.Element;
21
+
22
+ export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
23
+ asChild?: boolean;
24
+ }): JSX.Element;
25
+
26
+ declare const badgeVariants: (props?: ({
27
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
28
+ } & ClassProp) | undefined) => string;
29
+
6
30
  export declare const borderRadius: {
7
31
  readonly sm: "0.25rem";
8
32
  readonly md: "0.375rem";
@@ -20,6 +44,20 @@ declare const buttonVariants: (props?: ({
20
44
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
21
45
  } & ClassProp) | undefined) => string;
22
46
 
47
+ export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
48
+
49
+ export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
50
+
51
+ export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
52
+
53
+ export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
54
+
55
+ export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
56
+
57
+ export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
58
+
59
+ export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
60
+
23
61
  export declare function cn(...inputs: ClassValue[]): string;
24
62
 
25
63
  export declare const colors: {
@@ -49,15 +87,71 @@ export declare const colors: {
49
87
  };
50
88
  };
51
89
 
90
+ export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
91
+
92
+ export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
93
+
94
+ export declare function DialogContent({ className, children, showCloseButton, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
95
+ showCloseButton?: boolean;
96
+ }): JSX.Element;
97
+
98
+ export declare function DialogDescription({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
99
+
100
+ export declare function DialogFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
101
+
102
+ export declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
103
+
104
+ export declare function DialogOverlay({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Overlay>): JSX.Element;
105
+
106
+ export declare function DialogPortal({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Portal>): JSX.Element;
107
+
108
+ export declare function DialogTitle({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Title>): JSX.Element;
109
+
110
+ export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
111
+
112
+ export declare function Input({ className, variant, type, ...props }: InputProps): JSX.Element;
113
+
114
+ export declare interface InputProps extends React_2.ComponentProps<"input">, VariantProps<typeof inputVariants> {
115
+ }
116
+
117
+ declare const inputVariants: (props?: ({
118
+ variant?: "default" | "destructive" | "secondary" | "success" | "warning" | "accent" | null | undefined;
119
+ } & ClassProp) | undefined) => string;
120
+
121
+ export declare function Progress({ className, value, ...props }: React_2.ComponentProps<typeof ProgressPrimitive.Root>): JSX.Element;
122
+
123
+ export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
124
+
52
125
  export declare const spacing: {
53
126
  readonly xs: "0.25rem";
54
127
  readonly sm: "0.5rem";
55
128
  readonly md: "1rem";
56
129
  readonly lg: "1.5rem";
57
130
  readonly xl: "2rem";
58
- readonly '2xl': "3rem";
131
+ readonly "2xl": "3rem";
59
132
  };
60
133
 
134
+ export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX.Element;
135
+
136
+ export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
137
+
138
+ export declare function ToggleGroup({ className, variant, size, children, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
139
+
140
+ export declare function ToggleGroupItem({ className, children, variant, size, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): JSX.Element;
141
+
142
+ declare const toggleVariants: (props?: ({
143
+ variant?: "default" | "outline" | null | undefined;
144
+ size?: "default" | "sm" | "lg" | null | undefined;
145
+ } & ClassProp) | undefined) => string;
146
+
147
+ export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
148
+
149
+ export declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Content>): JSX.Element;
150
+
151
+ export declare function TooltipProvider({ delayDuration, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element;
152
+
153
+ export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
154
+
61
155
  export declare const typography: {
62
156
  readonly fontFamily: {
63
157
  readonly sans: readonly ["Inter", "system-ui", "sans-serif"];
@@ -69,7 +163,7 @@ export declare const typography: {
69
163
  readonly base: "1rem";
70
164
  readonly lg: "1.125rem";
71
165
  readonly xl: "1.25rem";
72
- readonly '2xl': "1.5rem";
166
+ readonly "2xl": "1.5rem";
73
167
  };
74
168
  };
75
169