laif-ds 0.2.12 → 0.2.14
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/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/app-select.js +114 -100
- package/dist/components/ui/carousel.js +4 -4
- package/dist/components/ui/chart.js +4 -4
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/file-previewer.js +170 -0
- package/dist/components/ui/navigation-menu.js +7 -7
- package/dist/components/ui/popover.js +17 -16
- package/dist/components/ui/textarea.js +24 -15
- package/dist/index.d.ts +33 -3
- package/dist/index.js +128 -124
- package/dist/lib/file-preview.js +33 -0
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Root as d,
|
|
3
|
+
import { Root as d, Content as s, Indicator as u, Item as l, Link as g, List as c, Trigger as m, Viewport as v } from "../../node_modules/@radix-ui/react-navigation-menu/dist/index.js";
|
|
4
4
|
import { cva as f } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
5
5
|
import { cn as o } from "../../lib/utils.js";
|
|
6
6
|
import p from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
@@ -32,7 +32,7 @@ function j({
|
|
|
32
32
|
...a
|
|
33
33
|
}) {
|
|
34
34
|
return /* @__PURE__ */ e(
|
|
35
|
-
|
|
35
|
+
c,
|
|
36
36
|
{
|
|
37
37
|
"data-slot": "navigation-menu-list",
|
|
38
38
|
className: o(
|
|
@@ -48,7 +48,7 @@ function k({
|
|
|
48
48
|
...a
|
|
49
49
|
}) {
|
|
50
50
|
return /* @__PURE__ */ e(
|
|
51
|
-
|
|
51
|
+
l,
|
|
52
52
|
{
|
|
53
53
|
"data-slot": "navigation-menu-item",
|
|
54
54
|
className: o("relative", t),
|
|
@@ -65,7 +65,7 @@ function I({
|
|
|
65
65
|
...n
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ i(
|
|
68
|
-
|
|
68
|
+
m,
|
|
69
69
|
{
|
|
70
70
|
"data-slot": "navigation-menu-trigger",
|
|
71
71
|
className: o(w(), "group", t),
|
|
@@ -89,7 +89,7 @@ function L({
|
|
|
89
89
|
...a
|
|
90
90
|
}) {
|
|
91
91
|
return /* @__PURE__ */ e(
|
|
92
|
-
|
|
92
|
+
s,
|
|
93
93
|
{
|
|
94
94
|
"data-slot": "navigation-menu-content",
|
|
95
95
|
className: o(
|
|
@@ -130,7 +130,7 @@ function C({
|
|
|
130
130
|
...a
|
|
131
131
|
}) {
|
|
132
132
|
return /* @__PURE__ */ e(
|
|
133
|
-
|
|
133
|
+
g,
|
|
134
134
|
{
|
|
135
135
|
"data-slot": "navigation-menu-link",
|
|
136
136
|
className: o(
|
|
@@ -146,7 +146,7 @@ function T({
|
|
|
146
146
|
...a
|
|
147
147
|
}) {
|
|
148
148
|
return /* @__PURE__ */ e(
|
|
149
|
-
|
|
149
|
+
u,
|
|
150
150
|
{
|
|
151
151
|
"data-slot": "navigation-menu-indicator",
|
|
152
152
|
className: o(
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { Root as
|
|
4
|
-
import { cn as
|
|
5
|
-
function
|
|
3
|
+
import { Root as n, Trigger as i, Portal as s, Content as p } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
|
+
import { cn as m } from "../../lib/utils.js";
|
|
5
|
+
function u({
|
|
6
6
|
...o
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
8
|
+
return /* @__PURE__ */ t(n, { "data-slot": "popover", ...o });
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function g({
|
|
11
11
|
...o
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ t(
|
|
13
|
+
return /* @__PURE__ */ t(i, { "data-slot": "popover-trigger", ...o });
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function v({
|
|
16
16
|
className: o,
|
|
17
17
|
align: e = "center",
|
|
18
18
|
sideOffset: r = 4,
|
|
19
|
-
|
|
19
|
+
container: a,
|
|
20
|
+
...d
|
|
20
21
|
}) {
|
|
21
|
-
return /* @__PURE__ */ t(
|
|
22
|
-
|
|
22
|
+
return /* @__PURE__ */ t(s, { container: a, children: /* @__PURE__ */ t(
|
|
23
|
+
p,
|
|
23
24
|
{
|
|
24
25
|
"data-slot": "popover-content",
|
|
25
26
|
align: e,
|
|
26
27
|
sideOffset: r,
|
|
27
|
-
className:
|
|
28
|
-
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-d-border z-
|
|
28
|
+
className: m(
|
|
29
|
+
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-d-border z-[60] w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
29
30
|
o
|
|
30
31
|
),
|
|
31
|
-
...
|
|
32
|
+
...d
|
|
32
33
|
}
|
|
33
34
|
) });
|
|
34
35
|
}
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
u as Popover,
|
|
38
|
+
v as PopoverContent,
|
|
39
|
+
g as PopoverTrigger
|
|
39
40
|
};
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import { jsxs as t, Fragment as a, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { cn as n } from "../../lib/utils.js";
|
|
4
|
+
import { Label as o } from "./label.js";
|
|
5
|
+
function c({
|
|
6
|
+
className: d,
|
|
7
|
+
label: e,
|
|
8
|
+
...i
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ t(a, { children: [
|
|
11
|
+
e && /* @__PURE__ */ r(o, { htmlFor: i.id, children: e }),
|
|
12
|
+
/* @__PURE__ */ r(
|
|
13
|
+
"textarea",
|
|
14
|
+
{
|
|
15
|
+
id: i.id,
|
|
16
|
+
"data-slot": "textarea",
|
|
17
|
+
className: n(
|
|
18
|
+
"border-d-input placeholder:text-d-muted-foreground focus-visible:border-d-ring focus-visible:ring-d-ring/50 aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive dark:bg-d-input/30 !bg-d-input flex field-sizing-content min-h-16 w-full rounded-md border px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
19
|
+
d
|
|
20
|
+
),
|
|
21
|
+
...i
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
] });
|
|
16
25
|
}
|
|
17
26
|
export {
|
|
18
|
-
|
|
27
|
+
c as Textarea
|
|
19
28
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import { Toaster as Toaster_2 } from 'sonner';
|
|
|
56
56
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
57
57
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
58
58
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
59
|
+
import { UseAskResult } from 'use-ask';
|
|
59
60
|
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
60
61
|
import { VariantProps } from 'class-variance-authority';
|
|
61
62
|
|
|
@@ -814,7 +815,7 @@ declare interface DatePickerProps {
|
|
|
814
815
|
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
815
816
|
|
|
816
817
|
export declare function DialogContent({ className, children, size, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
817
|
-
size?: "sm" | "default" | "lg";
|
|
818
|
+
size?: "sm" | "default" | "lg" | "xl";
|
|
818
819
|
}): JSX.Element;
|
|
819
820
|
|
|
820
821
|
export declare function DialogDescription({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
|
|
@@ -878,6 +879,8 @@ export declare enum ELogicalFilterOperator {
|
|
|
878
879
|
|
|
879
880
|
export declare const FilePreview: default_2.ForwardRefExoticComponent<FilePreviewProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
880
881
|
|
|
882
|
+
export declare const FilePreviewer: () => JSX.Element;
|
|
883
|
+
|
|
881
884
|
declare interface FilePreviewProps {
|
|
882
885
|
file: IFilePreviewCallbackReturn;
|
|
883
886
|
onRemove?: (url: string) => void;
|
|
@@ -1139,6 +1142,14 @@ export declare interface IServerOptionsProps {
|
|
|
1139
1142
|
|
|
1140
1143
|
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
1141
1144
|
|
|
1145
|
+
declare type LoaderReturn = string | File | {
|
|
1146
|
+
url?: string;
|
|
1147
|
+
file?: File;
|
|
1148
|
+
filename?: string;
|
|
1149
|
+
mimeType?: string;
|
|
1150
|
+
title?: React.ReactNode;
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1142
1153
|
export declare function MarkdownRenderer({ children }: MarkdownRendererProps): JSX.Element;
|
|
1143
1154
|
|
|
1144
1155
|
declare interface MarkdownRendererProps {
|
|
@@ -1423,12 +1434,27 @@ declare interface PartialToolCall {
|
|
|
1423
1434
|
|
|
1424
1435
|
export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
|
|
1425
1436
|
|
|
1426
|
-
export declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content>
|
|
1437
|
+
export declare function PopoverContent({ className, align, sideOffset, container, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
1438
|
+
container?: HTMLElement | null;
|
|
1439
|
+
}): JSX.Element;
|
|
1427
1440
|
|
|
1428
1441
|
export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
|
|
1429
1442
|
|
|
1443
|
+
declare type PreviewArg = string | File | PreviewOptions | (() => Promise<LoaderReturn>) | Promise<LoaderReturn>;
|
|
1444
|
+
|
|
1430
1445
|
export declare const previewFile: (url: string, filename?: string) => void;
|
|
1431
1446
|
|
|
1447
|
+
export declare function previewFileModal(arg: PreviewArg): Promise<void>;
|
|
1448
|
+
|
|
1449
|
+
declare interface PreviewOptions {
|
|
1450
|
+
url?: string;
|
|
1451
|
+
file?: File;
|
|
1452
|
+
filename?: string;
|
|
1453
|
+
mimeType?: string;
|
|
1454
|
+
title?: React.ReactNode;
|
|
1455
|
+
loader?: (() => Promise<LoaderReturn>) | Promise<LoaderReturn>;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1432
1458
|
export declare function Progress({ className, value, ...props }: React_2.ComponentProps<typeof ProgressPrimitive.Root>): JSX.Element;
|
|
1433
1459
|
|
|
1434
1460
|
export declare function PromptSuggestions({ label, append, suggestions, }: PromptSuggestionsProps): JSX.Element;
|
|
@@ -1520,6 +1546,8 @@ export declare function ResizablePanel({ ...props }: React_2.ComponentProps<type
|
|
|
1520
1546
|
|
|
1521
1547
|
export declare function ResizablePanelGroup({ className, ...props }: React_2.ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element;
|
|
1522
1548
|
|
|
1549
|
+
export declare function safePreviewFileModal(arg: PreviewArg): Promise<UseAskResult<void, unknown>>;
|
|
1550
|
+
|
|
1523
1551
|
export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
|
|
1524
1552
|
|
|
1525
1553
|
export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
|
|
@@ -1725,7 +1753,9 @@ export declare function TabsList({ className, ...props }: React_2.ComponentProps
|
|
|
1725
1753
|
|
|
1726
1754
|
export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
|
|
1727
1755
|
|
|
1728
|
-
export declare function Textarea({ className, ...props }: React_2.ComponentProps<"textarea">
|
|
1756
|
+
export declare function Textarea({ className, label, ...props }: React_2.ComponentProps<"textarea"> & {
|
|
1757
|
+
label?: React_2.ReactNode;
|
|
1758
|
+
}): JSX.Element;
|
|
1729
1759
|
|
|
1730
1760
|
declare interface TextPart {
|
|
1731
1761
|
type: "text";
|