@sozialhelden/ui 1.1.0 → 1.1.2
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/README.md +7 -2
- package/dist/index.d.ts +48 -0
- package/dist/index.js +4595 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @sozialhelden/ui
|
|
2
2
|
|
|
3
|
-
> UI components shared by different sozialhelden projects.
|
|
3
|
+
> UI components shared by different sozialhelden projects.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Check the [Storybook](https://sozialhelden.github.io/ui/) for an overview of the available components.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
6
8
|
|
|
7
9
|
Make sure you have Tailwind CSS installed in your project. If you don't have it yet, you should install and set it up first: https://tailwindcss.com/docs/installation/using-vite
|
|
8
10
|
|
|
@@ -21,6 +23,9 @@ Add the following to your main CSS file, make sure to adapt the path to the `@so
|
|
|
21
23
|
|
|
22
24
|
@source "../../node_modules/@sozialhelden/ui";
|
|
23
25
|
```
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
Check the [Storybook](https://sozialhelden.github.io/ui/) for an overview of the available components.
|
|
24
29
|
|
|
25
30
|
Now you can use tailwind classes and the components provided by the `@sozialhelden/ui` package in your project, for example:
|
|
26
31
|
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import type * as React_2 from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
|
|
8
|
+
|
|
9
|
+
export declare function AlertDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
10
|
+
|
|
11
|
+
export declare function AlertTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
12
|
+
|
|
13
|
+
declare const alertVariants: (props?: ({
|
|
14
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
15
|
+
} & ClassProp) | undefined) => string;
|
|
16
|
+
|
|
17
|
+
export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
}): JSX.Element;
|
|
20
|
+
|
|
21
|
+
export declare const buttonVariants: (props?: ({
|
|
22
|
+
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
23
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
24
|
+
} & ClassProp) | undefined) => string;
|
|
25
|
+
|
|
26
|
+
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
27
|
+
|
|
28
|
+
export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
|
|
29
|
+
|
|
30
|
+
export declare function DialogContent({ className, children, showCloseButton, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
31
|
+
showCloseButton?: boolean;
|
|
32
|
+
}): JSX.Element;
|
|
33
|
+
|
|
34
|
+
export declare function DialogDescription({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
|
|
35
|
+
|
|
36
|
+
export declare function DialogFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
37
|
+
|
|
38
|
+
export declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
39
|
+
|
|
40
|
+
export declare function DialogOverlay({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Overlay>): JSX.Element;
|
|
41
|
+
|
|
42
|
+
export declare function DialogPortal({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Portal>): JSX.Element;
|
|
43
|
+
|
|
44
|
+
export declare function DialogTitle({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Title>): JSX.Element;
|
|
45
|
+
|
|
46
|
+
export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
|
|
47
|
+
|
|
48
|
+
export { }
|