@sozialhelden/ui 1.1.2 → 1.2.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.
package/README.md CHANGED
@@ -17,10 +17,24 @@ npm i --save @sozialhelden/ui
17
17
  Add the following to your main CSS file, make sure to adapt the path to the `@sozialhelden/ui` package if necessary:
18
18
 
19
19
  ```css
20
+ /* Import fonts */
21
+ @import "@fontsource/inter/400.css";
22
+ @import "@fontsource/inter/400-italic.css";
23
+ @import "@fontsource/inter/500.css";
24
+ @import "@fontsource/inter/500-italic.css";
25
+ @import "@fontsource/inter/600.css";
26
+ @import "@fontsource/inter/600-italic.css";
27
+ @import "@fontsource/inter/700.css";
28
+ @import "@fontsource/inter/700-italic.css";
29
+
30
+ /* Add tailwind itself and necessary addons */
20
31
  @import "tailwindcss";
21
32
  @import "tw-animate-css";
33
+
34
+ /* Import tailwind config from ui library */
22
35
  @import "@sozialhelden/ui/style.css";
23
36
 
37
+ /* Add ui library as source for class purging */
24
38
  @source "../../node_modules/@sozialhelden/ui";
25
39
  ```
26
40
  ## Usage
package/dist/index.d.ts CHANGED
@@ -1,19 +1,72 @@
1
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
2
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
1
4
  import { ClassProp } from 'class-variance-authority/types';
5
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
6
+ import { default as default_2 } from 'embla-carousel-react';
2
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
8
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
9
  import { JSX } from 'react/jsx-runtime';
4
- import type * as React_2 from 'react';
10
+ import * as LabelPrimitive from '@radix-ui/react-label';
11
+ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
12
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
13
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
14
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
15
+ import * as React_2 from 'react';
16
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
17
+ import * as SelectPrimitive from '@radix-ui/react-select';
18
+ import * as SliderPrimitive from '@radix-ui/react-slider';
19
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
20
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
21
+ import { UseEmblaCarouselType } from 'embla-carousel-react';
5
22
  import { VariantProps } from 'class-variance-authority';
6
23
 
7
24
  export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
8
25
 
9
26
  export declare function AlertDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
10
27
 
28
+ export declare function AlertDialog({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element;
29
+
30
+ export declare function AlertDialogAction({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Action>): JSX.Element;
31
+
32
+ export declare function AlertDialogCancel({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Cancel>): JSX.Element;
33
+
34
+ export declare function AlertDialogContent({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Content>): JSX.Element;
35
+
36
+ export declare function AlertDialogDescription({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element;
37
+
38
+ export declare function AlertDialogFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
39
+
40
+ export declare function AlertDialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
41
+
42
+ export declare function AlertDialogOverlay({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Overlay>): JSX.Element;
43
+
44
+ export declare function AlertDialogPortal({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Portal>): JSX.Element;
45
+
46
+ export declare function AlertDialogTitle({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element;
47
+
48
+ export declare function AlertDialogTrigger({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element;
49
+
11
50
  export declare function AlertTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
12
51
 
13
52
  declare const alertVariants: (props?: ({
14
53
  variant?: "default" | "destructive" | null | undefined;
15
54
  } & ClassProp) | undefined) => string;
16
55
 
56
+ export declare function Avatar({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Root>): JSX.Element;
57
+
58
+ export declare function AvatarFallback({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Fallback>): JSX.Element;
59
+
60
+ export declare function AvatarImage({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Image>): JSX.Element;
61
+
62
+ export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
63
+ asChild?: boolean;
64
+ }): JSX.Element;
65
+
66
+ export declare const badgeVariants: (props?: ({
67
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
68
+ } & ClassProp) | undefined) => string;
69
+
17
70
  export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
18
71
  asChild?: boolean;
19
72
  }): JSX.Element;
@@ -23,6 +76,51 @@ export declare const buttonVariants: (props?: ({
23
76
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
24
77
  } & ClassProp) | undefined) => string;
25
78
 
79
+ export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
80
+
81
+ export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
82
+
83
+ export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
84
+
85
+ export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
86
+
87
+ export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
88
+
89
+ export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
90
+
91
+ export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
92
+
93
+ export declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React_2.ComponentProps<"div"> & CarouselProps): JSX.Element;
94
+
95
+ export declare type CarouselApi = UseEmblaCarouselType[1];
96
+
97
+ export declare function CarouselContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
98
+
99
+ export declare function CarouselItem({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
100
+
101
+ export declare function CarouselNext({ className, variant, size, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
102
+
103
+ declare type CarouselOptions = UseCarouselParameters[0];
104
+
105
+ declare type CarouselPlugin = UseCarouselParameters[1];
106
+
107
+ export declare function CarouselPrevious({ className, variant, size, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
108
+
109
+ declare type CarouselProps = {
110
+ opts?: CarouselOptions;
111
+ plugins?: CarouselPlugin;
112
+ orientation?: "horizontal" | "vertical";
113
+ setApi?: (api: CarouselApi) => void;
114
+ };
115
+
116
+ export declare function Checkbox({ className, ...props }: React_2.ComponentProps<typeof CheckboxPrimitive.Root>): JSX.Element;
117
+
118
+ export declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): JSX.Element;
119
+
120
+ export declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): JSX.Element;
121
+
122
+ export declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): JSX.Element;
123
+
26
124
  export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
27
125
 
28
126
  export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
@@ -45,4 +143,123 @@ export declare function DialogTitle({ className, ...props }: React_2.ComponentPr
45
143
 
46
144
  export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
47
145
 
146
+ export declare function DropdownMenu({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Root>): JSX.Element;
147
+
148
+ export declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): JSX.Element;
149
+
150
+ export declare function DropdownMenuContent({ className, sideOffset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Content>): JSX.Element;
151
+
152
+ export declare function DropdownMenuGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Group>): JSX.Element;
153
+
154
+ export declare function DropdownMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
155
+ inset?: boolean;
156
+ variant?: "default" | "destructive";
157
+ }): JSX.Element;
158
+
159
+ export declare function DropdownMenuLabel({ className, inset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
160
+ inset?: boolean;
161
+ }): JSX.Element;
162
+
163
+ export declare function DropdownMenuPortal({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Portal>): JSX.Element;
164
+
165
+ export declare function DropdownMenuRadioGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): JSX.Element;
166
+
167
+ export declare function DropdownMenuRadioItem({ className, children, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): JSX.Element;
168
+
169
+ export declare function DropdownMenuSeparator({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Separator>): JSX.Element;
170
+
171
+ export declare function DropdownMenuShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
172
+
173
+ export declare function DropdownMenuSub({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Sub>): JSX.Element;
174
+
175
+ export declare function DropdownMenuSubContent({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): JSX.Element;
176
+
177
+ export declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
178
+ inset?: boolean;
179
+ }): JSX.Element;
180
+
181
+ export declare function DropdownMenuTrigger({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): JSX.Element;
182
+
183
+ export declare function Input({ className, type, ...props }: React_2.ComponentProps<"input">): JSX.Element;
184
+
185
+ export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
186
+
187
+ export declare function NavigationMenu({ className, children, viewport, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
188
+ viewport?: boolean;
189
+ }): JSX.Element;
190
+
191
+ export declare function NavigationMenuContent({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Content>): JSX.Element;
192
+
193
+ export declare function NavigationMenuIndicator({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): JSX.Element;
194
+
195
+ export declare function NavigationMenuItem({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Item>): JSX.Element;
196
+
197
+ export declare function NavigationMenuLink({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Link>): JSX.Element;
198
+
199
+ export declare function NavigationMenuList({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.List>): JSX.Element;
200
+
201
+ export declare function NavigationMenuTrigger({ className, children, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): JSX.Element;
202
+
203
+ export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string;
204
+
205
+ export declare function NavigationMenuViewport({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): JSX.Element;
206
+
207
+ export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
208
+
209
+ export declare function PopoverAnchor({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Anchor>): JSX.Element;
210
+
211
+ export declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content>): JSX.Element;
212
+
213
+ export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
214
+
215
+ export declare function Progress({ className, value, ...props }: React_2.ComponentProps<typeof ProgressPrimitive.Root>): JSX.Element;
216
+
217
+ export declare function RadioGroup({ className, ...props }: React_2.ComponentProps<typeof RadioGroupPrimitive.Root>): JSX.Element;
218
+
219
+ export declare function RadioGroupItem({ className, ...props }: React_2.ComponentProps<typeof RadioGroupPrimitive.Item>): JSX.Element;
220
+
221
+ export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
222
+
223
+ export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
224
+
225
+ export declare function Select({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Root>): JSX.Element;
226
+
227
+ export declare function SelectContent({ className, children, position, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
228
+
229
+ export declare function SelectGroup({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Group>): JSX.Element;
230
+
231
+ export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Item>): JSX.Element;
232
+
233
+ export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
234
+
235
+ export declare function SelectScrollDownButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element;
236
+
237
+ export declare function SelectScrollUpButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element;
238
+
239
+ export declare function SelectSeparator({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element;
240
+
241
+ export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Trigger> & {
242
+ size?: "sm" | "default";
243
+ }): JSX.Element;
244
+
245
+ export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Value>): JSX.Element;
246
+
247
+ export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
248
+
249
+ export declare function Slider({ className, defaultValue, value, min, max, ...props }: React_2.ComponentProps<typeof SliderPrimitive.Root>): JSX.Element;
250
+
251
+ export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX.Element;
252
+
253
+ export declare function Textarea({ className, ...props }: React_2.ComponentProps<"textarea">): JSX.Element;
254
+
255
+ export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
256
+
257
+ export declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Content>): JSX.Element;
258
+
259
+ export declare function TooltipProvider({ delayDuration, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element;
260
+
261
+ export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
262
+
263
+ declare type UseCarouselParameters = Parameters<typeof default_2>;
264
+
48
265
  export { }