laif-ds 0.1.4 → 0.1.5
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/components/ui/button.js +1 -1
- package/dist/components/ui/card.js +41 -34
- package/dist/components/ui/typo.js +53 -0
- package/dist/index.d.ts +62 -17
- package/dist/index.js +227 -225
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { cva as l } from "../../node_modules/class-variance-authority/dist/index
|
|
|
5
5
|
import { cn as u } from "../../lib/utils.js";
|
|
6
6
|
import { Icon as c } from "./icon.js";
|
|
7
7
|
const v = l(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
8
|
+
"cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -1,77 +1,84 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
2
|
+
import { j as r } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as d from "react";
|
|
3
4
|
import { cn as e } from "../../lib/utils.js";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
const s = d.createContext({ size: "default" }), c = {
|
|
6
|
+
sm: "py-3 px-3 gap-4",
|
|
7
|
+
default: "py-6 px-6 gap-6",
|
|
8
|
+
lg: "py-8 px-8 gap-8"
|
|
9
|
+
};
|
|
10
|
+
function x({ className: a, size: t = "default", ...o }) {
|
|
11
|
+
return /* @__PURE__ */ r.jsx(s.Provider, { value: { size: t }, children: /* @__PURE__ */ r.jsx(
|
|
6
12
|
"div",
|
|
7
13
|
{
|
|
8
14
|
"data-slot": "card",
|
|
9
15
|
className: e(
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
`bg-card text-card-foreground flex flex-col rounded-xl border shadow-sm ${c[t]}`,
|
|
17
|
+
a
|
|
12
18
|
),
|
|
13
|
-
...
|
|
19
|
+
...o
|
|
14
20
|
}
|
|
15
|
-
);
|
|
21
|
+
) });
|
|
16
22
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
23
|
+
function u({ className: a, ...t }) {
|
|
24
|
+
const { size: o } = d.useContext(s), n = o === "sm" ? "px-3" : o === "lg" ? "px-8" : "px-6";
|
|
25
|
+
return /* @__PURE__ */ r.jsx(
|
|
19
26
|
"div",
|
|
20
27
|
{
|
|
21
28
|
"data-slot": "card-header",
|
|
22
29
|
className: e(
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 ${n} has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,
|
|
31
|
+
a
|
|
25
32
|
),
|
|
26
|
-
...
|
|
33
|
+
...t
|
|
27
34
|
}
|
|
28
35
|
);
|
|
29
36
|
}
|
|
30
|
-
function
|
|
31
|
-
return /* @__PURE__ */
|
|
37
|
+
function m({ className: a, ...t }) {
|
|
38
|
+
return /* @__PURE__ */ r.jsx(
|
|
32
39
|
"div",
|
|
33
40
|
{
|
|
34
41
|
"data-slot": "card-title",
|
|
35
|
-
className: e("leading-none font-semibold",
|
|
36
|
-
...
|
|
42
|
+
className: e("leading-none font-semibold", a),
|
|
43
|
+
...t
|
|
37
44
|
}
|
|
38
45
|
);
|
|
39
46
|
}
|
|
40
|
-
function
|
|
41
|
-
return /* @__PURE__ */
|
|
47
|
+
function f({ className: a, ...t }) {
|
|
48
|
+
return /* @__PURE__ */ r.jsx(
|
|
42
49
|
"div",
|
|
43
50
|
{
|
|
44
51
|
"data-slot": "card-description",
|
|
45
|
-
className: e("text-muted-foreground text-sm",
|
|
46
|
-
...
|
|
52
|
+
className: e("text-muted-foreground text-sm", a),
|
|
53
|
+
...t
|
|
47
54
|
}
|
|
48
55
|
);
|
|
49
56
|
}
|
|
50
|
-
function
|
|
51
|
-
return /* @__PURE__ */
|
|
57
|
+
function g({ className: a, ...t }) {
|
|
58
|
+
return /* @__PURE__ */ r.jsx(
|
|
52
59
|
"div",
|
|
53
60
|
{
|
|
54
61
|
"data-slot": "card-content",
|
|
55
|
-
className: e("px-6",
|
|
56
|
-
...
|
|
62
|
+
className: e("px-6", a),
|
|
63
|
+
...t
|
|
57
64
|
}
|
|
58
65
|
);
|
|
59
66
|
}
|
|
60
|
-
function
|
|
61
|
-
return /* @__PURE__ */
|
|
67
|
+
function C({ className: a, ...t }) {
|
|
68
|
+
return /* @__PURE__ */ r.jsx(
|
|
62
69
|
"div",
|
|
63
70
|
{
|
|
64
71
|
"data-slot": "card-footer",
|
|
65
|
-
className: e("flex items-center px-6 [.border-t]:pt-6",
|
|
66
|
-
...
|
|
72
|
+
className: e("flex items-center px-6 [.border-t]:pt-6", a),
|
|
73
|
+
...t
|
|
67
74
|
}
|
|
68
75
|
);
|
|
69
76
|
}
|
|
70
77
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
x as Card,
|
|
79
|
+
g as CardContent,
|
|
80
|
+
f as CardDescription,
|
|
81
|
+
C as CardFooter,
|
|
82
|
+
u as CardHeader,
|
|
83
|
+
m as CardTitle
|
|
77
84
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as d } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { cn as i } from "../../lib/utils.js";
|
|
4
|
+
const s = {
|
|
5
|
+
"hero-title": "text-5xl md:text-6xl font-extrabold leading-tight tracking-tight",
|
|
6
|
+
title: "text-3xl md:text-4xl font-bold leading-snug",
|
|
7
|
+
subtitle: "text-xl md:text-2xl font-semibold leading-snug text-muted-foreground",
|
|
8
|
+
body: "text-base md:text-lg font-normal leading-relaxed",
|
|
9
|
+
"body-bold": "text-base md:text-lg font-semibold leading-relaxed",
|
|
10
|
+
caption: "text-xs md:text-sm font-normal leading-tight text-muted-foreground",
|
|
11
|
+
overline: "text-xs uppercase tracking-widest font-medium text-muted-foreground",
|
|
12
|
+
button: "text-sm font-semibold uppercase tracking-wide",
|
|
13
|
+
small: "text-xs font-normal leading-tight",
|
|
14
|
+
h1: "text-4xl md:text-5xl font-extrabold leading-tight",
|
|
15
|
+
h2: "text-3xl md:text-4xl font-bold leading-snug",
|
|
16
|
+
h3: "text-2xl md:text-3xl font-semibold leading-snug",
|
|
17
|
+
h4: "text-xl md:text-2xl font-semibold leading-snug",
|
|
18
|
+
h5: "text-lg md:text-xl font-medium leading-snug"
|
|
19
|
+
}, a = {
|
|
20
|
+
"hero-title": "h1",
|
|
21
|
+
title: "h2",
|
|
22
|
+
subtitle: "h3",
|
|
23
|
+
body: "p",
|
|
24
|
+
"body-bold": "p",
|
|
25
|
+
caption: "span",
|
|
26
|
+
overline: "span",
|
|
27
|
+
button: "span",
|
|
28
|
+
small: "span",
|
|
29
|
+
h1: "h1",
|
|
30
|
+
h2: "h2",
|
|
31
|
+
h3: "h3",
|
|
32
|
+
h4: "h4",
|
|
33
|
+
h5: "h5"
|
|
34
|
+
}, r = ({
|
|
35
|
+
variant: t = "body",
|
|
36
|
+
as: e,
|
|
37
|
+
className: n,
|
|
38
|
+
children: l,
|
|
39
|
+
...o
|
|
40
|
+
}) => {
|
|
41
|
+
const x = e || a[t] || "span";
|
|
42
|
+
return /* @__PURE__ */ d.jsx(
|
|
43
|
+
x,
|
|
44
|
+
{
|
|
45
|
+
className: i(s[t], n),
|
|
46
|
+
...o,
|
|
47
|
+
children: l
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
r as Typo
|
|
53
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -48,37 +48,65 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
48
48
|
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
49
49
|
import { VariantProps } from 'class-variance-authority';
|
|
50
50
|
|
|
51
|
-
export declare function Accordion({ ...props }:
|
|
51
|
+
export declare function Accordion({ ...props }: AccordionProps): JSX.Element;
|
|
52
52
|
|
|
53
|
-
export declare function AccordionContent({ className, children, ...props }:
|
|
53
|
+
export declare function AccordionContent({ className, children, ...props }: AccordionContentProps): JSX.Element;
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
declare type AccordionContentProps = React_2.ComponentProps<typeof AccordionPrimitive.Content>;
|
|
56
56
|
|
|
57
|
-
export declare function
|
|
57
|
+
export declare function AccordionItem({ className, ...props }: AccordionItemProps): JSX.Element;
|
|
58
|
+
|
|
59
|
+
declare type AccordionItemProps = React_2.ComponentProps<typeof AccordionPrimitive.Item>;
|
|
60
|
+
|
|
61
|
+
declare type AccordionProps = React_2.ComponentProps<typeof AccordionPrimitive.Root>;
|
|
62
|
+
|
|
63
|
+
export declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): JSX.Element;
|
|
64
|
+
|
|
65
|
+
declare type AccordionTriggerProps = React_2.ComponentProps<typeof AccordionPrimitive.Trigger>;
|
|
58
66
|
|
|
59
67
|
declare type AdditionalMessageOptions = Omit<ChatMessageProps, keyof Message>;
|
|
60
68
|
|
|
61
|
-
export declare function Alert({ className, variant, ...props }:
|
|
69
|
+
export declare function Alert({ className, variant, ...props }: AlertProps): JSX.Element;
|
|
62
70
|
|
|
63
71
|
export declare function AlertDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
64
72
|
|
|
65
|
-
export declare function AlertDialog({ ...props }:
|
|
73
|
+
export declare function AlertDialog({ ...props }: AlertDialogProps): JSX.Element;
|
|
74
|
+
|
|
75
|
+
export declare function AlertDialogAction({ className, ...props }: AlertDialogActionProps): JSX.Element;
|
|
76
|
+
|
|
77
|
+
declare type AlertDialogActionProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Action>;
|
|
78
|
+
|
|
79
|
+
export declare function AlertDialogCancel({ className, ...props }: AlertDialogCancelProps): JSX.Element;
|
|
80
|
+
|
|
81
|
+
declare type AlertDialogCancelProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Cancel>;
|
|
82
|
+
|
|
83
|
+
export declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): JSX.Element;
|
|
84
|
+
|
|
85
|
+
declare type AlertDialogContentProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Content>;
|
|
86
|
+
|
|
87
|
+
export declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): JSX.Element;
|
|
66
88
|
|
|
67
|
-
|
|
89
|
+
declare type AlertDialogDescriptionProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Description>;
|
|
68
90
|
|
|
69
|
-
export declare function
|
|
91
|
+
export declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): JSX.Element;
|
|
70
92
|
|
|
71
|
-
|
|
93
|
+
declare type AlertDialogFooterProps = React_2.ComponentProps<"div">;
|
|
72
94
|
|
|
73
|
-
export declare function
|
|
95
|
+
export declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): JSX.Element;
|
|
74
96
|
|
|
75
|
-
|
|
97
|
+
declare type AlertDialogHeaderProps = React_2.ComponentProps<"div">;
|
|
76
98
|
|
|
77
|
-
|
|
99
|
+
declare type AlertDialogProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Root>;
|
|
78
100
|
|
|
79
|
-
export declare function AlertDialogTitle({ className, ...props }:
|
|
101
|
+
export declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): JSX.Element;
|
|
80
102
|
|
|
81
|
-
|
|
103
|
+
declare type AlertDialogTitleProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Title>;
|
|
104
|
+
|
|
105
|
+
export declare function AlertDialogTrigger({ ...props }: AlertDialogTriggerProps): JSX.Element;
|
|
106
|
+
|
|
107
|
+
declare type AlertDialogTriggerProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Trigger>;
|
|
108
|
+
|
|
109
|
+
declare type AlertProps = React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>;
|
|
82
110
|
|
|
83
111
|
export declare function AlertTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
84
112
|
|
|
@@ -88,7 +116,9 @@ declare const alertVariants: (props?: ({
|
|
|
88
116
|
|
|
89
117
|
declare type Animation_2 = VariantProps<typeof chatBubbleVariants>["animation"];
|
|
90
118
|
|
|
91
|
-
export declare function AspectRatio({ ...props }:
|
|
119
|
+
export declare function AspectRatio({ ...props }: AspectRatioProps): JSX.Element;
|
|
120
|
+
|
|
121
|
+
declare type AspectRatioProps = React.ComponentProps<typeof AspectRatioPrimitive.Root>;
|
|
92
122
|
|
|
93
123
|
export declare function AsyncSelect<T>({ fetcher, preload, filterFn, renderOption, getOptionValue, getDisplayValue, notFound, loadingSkeleton, label, labelClassName, placeholder, value, onChange, disabled, width, className, triggerClassName, noResultsMessage, clearable, size, }: AsyncSelectProps<T>): JSX.Element;
|
|
94
124
|
|
|
@@ -172,7 +202,7 @@ export declare const badgeVariants: (props?: ({
|
|
|
172
202
|
|
|
173
203
|
export declare function Button({ className, variant, size, asChild, iconLeft, iconRight, ...props }: ButtonProps): JSX.Element;
|
|
174
204
|
|
|
175
|
-
declare interface ButtonProps extends React_2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
205
|
+
export declare interface ButtonProps extends React_2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
176
206
|
asChild?: boolean;
|
|
177
207
|
iconLeft?: IconName;
|
|
178
208
|
iconRight?: IconName;
|
|
@@ -185,7 +215,7 @@ export declare const buttonVariants: (props?: ({
|
|
|
185
215
|
|
|
186
216
|
export declare function Calendar({ className, classNames, showOutsideDays, ...props }: React_2.ComponentProps<typeof DayPicker>): JSX.Element;
|
|
187
217
|
|
|
188
|
-
export declare function Card({ className, ...props }:
|
|
218
|
+
export declare function Card({ className, size, ...props }: CardProps): JSX.Element;
|
|
189
219
|
|
|
190
220
|
export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
191
221
|
|
|
@@ -195,6 +225,12 @@ export declare function CardFooter({ className, ...props }: React_2.ComponentPro
|
|
|
195
225
|
|
|
196
226
|
export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
197
227
|
|
|
228
|
+
export declare interface CardProps extends React_2.ComponentProps<"div"> {
|
|
229
|
+
size?: CardSize;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare type CardSize = "default" | "sm" | "lg";
|
|
233
|
+
|
|
198
234
|
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
199
235
|
|
|
200
236
|
export declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React_2.ComponentProps<"div"> & CarouselProps): JSX.Element;
|
|
@@ -1022,6 +1058,15 @@ export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<type
|
|
|
1022
1058
|
|
|
1023
1059
|
export declare function TypingIndicator(): JSX.Element;
|
|
1024
1060
|
|
|
1061
|
+
export declare const Typo: React_2.FC<TypoProps>;
|
|
1062
|
+
|
|
1063
|
+
export declare interface TypoProps extends React_2.HTMLAttributes<HTMLElement> {
|
|
1064
|
+
variant?: TypoVariant;
|
|
1065
|
+
as?: React_2.ElementType;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
declare type TypoVariant = "hero-title" | "title" | "subtitle" | "body" | "body-bold" | "caption" | "overline" | "button" | "small" | "h1" | "h2" | "h3" | "h4" | "h5";
|
|
1069
|
+
|
|
1025
1070
|
export declare function useAudioRecording({ transcribeAudio, onTranscriptionComplete, }: UseAudioRecordingOptions): {
|
|
1026
1071
|
isListening: boolean;
|
|
1027
1072
|
isSpeechSupported: boolean;
|