design-system-silkhaus 0.0.2 → 0.0.4
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 +3823 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +3807 -0
- package/dist/style.css +1113 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { default as React_2 } from 'react';
|
|
3
|
+
import * as React_3 from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
|
|
8
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
9
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
10
|
+
size?: 'small' | 'large';
|
|
11
|
+
disabled?: true | false;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare const Card: React_3.ForwardRefExoticComponent<CardProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
|
|
16
|
+
export declare const CardContent: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
|
|
18
|
+
export declare const CardDescription: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
|
|
20
|
+
export declare const CardFooter: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
export declare const CardHeader: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
|
|
24
|
+
declare interface CardProps extends React_3.HTMLAttributes<HTMLDivElement>, CardVariantProps {
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
as?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare const CardTitle: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
|
|
31
|
+
export declare type CardVariantProps = VariantProps<typeof cardVariants>;
|
|
32
|
+
|
|
33
|
+
declare const cardVariants: (props?: ({
|
|
34
|
+
cardType?: "default" | "shadowCard" | null | undefined;
|
|
35
|
+
} & ClassProp) | undefined) => string;
|
|
36
|
+
|
|
37
|
+
export declare const Grid: React_3.ForwardRefExoticComponent<GridProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
|
|
39
|
+
export declare interface GridProps extends React_3.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
40
|
+
asChild?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare type GridVariantProps = VariantProps<typeof gridVariants>;
|
|
44
|
+
|
|
45
|
+
declare const gridVariants: (props?: ({
|
|
46
|
+
display?: "grid" | "inlineGrid" | null | undefined;
|
|
47
|
+
gap?: "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
|
|
48
|
+
gapX?: "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
|
|
49
|
+
gapY?: "gap100" | "gap150" | "gap200" | "gap300" | "gap400" | "gap600" | "gap800" | "gap1000" | "gap1200" | "gap1600" | "gap2000" | null | undefined;
|
|
50
|
+
justifyContent?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | null | undefined;
|
|
51
|
+
justifyItems?: "start" | "end" | "center" | "stretch" | null | undefined;
|
|
52
|
+
alignContent?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | "baseline" | null | undefined;
|
|
53
|
+
alignItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
54
|
+
placeContent?: "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch" | "baseline" | null | undefined;
|
|
55
|
+
placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
56
|
+
} & ClassProp) | undefined) => string;
|
|
57
|
+
|
|
58
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
59
|
+
|
|
60
|
+
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
61
|
+
textarea?: true | false | undefined;
|
|
62
|
+
label?: string | undefined;
|
|
63
|
+
caption?: string | undefined;
|
|
64
|
+
color: 'primary' | 'success' | 'error';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { }
|