laif-ds 0.1.11 → 0.1.13
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/accordion.js +16 -16
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert.js +5 -5
- package/dist/components/ui/async-select.js +39 -39
- package/dist/components/ui/audio-visualizer.js +7 -7
- package/dist/components/ui/avatar.js +3 -3
- package/dist/components/ui/badge.js +12 -12
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button.js +31 -28
- package/dist/components/ui/calendar.js +23 -23
- package/dist/components/ui/card.js +6 -6
- package/dist/components/ui/chart.js +40 -40
- package/dist/components/ui/chat-message.js +59 -59
- package/dist/components/ui/checkbox.js +7 -7
- package/dist/components/ui/command.js +35 -35
- package/dist/components/ui/context-menu.js +16 -16
- package/dist/components/ui/data-table.js +2 -2
- package/dist/components/ui/date-picker.js +14 -14
- package/dist/components/ui/dialog.js +11 -11
- package/dist/components/ui/drawer.js +5 -5
- package/dist/components/ui/file-preview.js +14 -14
- package/dist/components/ui/form.js +18 -18
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +9 -9
- package/dist/components/ui/hover-card.js +5 -5
- package/dist/components/ui/input-otp.js +5 -5
- package/dist/components/ui/input-selector.js +11 -11
- package/dist/components/ui/input.js +25 -25
- package/dist/components/ui/interrupt-prompt.js +1 -1
- package/dist/components/ui/markdown-renderer.js +19 -19
- package/dist/components/ui/menubar.js +16 -16
- package/dist/components/ui/message-input.js +29 -29
- package/dist/components/ui/multiple-selector.js +92 -92
- package/dist/components/ui/navigation-menu.js +13 -13
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.js +4 -4
- package/dist/components/ui/prompt-suggestions.js +9 -9
- package/dist/components/ui/radio-group.js +5 -5
- package/dist/components/ui/resizable.js +2 -2
- package/dist/components/ui/scroll-area.js +7 -7
- package/dist/components/ui/select.js +10 -10
- package/dist/components/ui/separator.js +3 -3
- package/dist/components/ui/sheet.js +8 -8
- package/dist/components/ui/sidebar.js +134 -134
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +3 -3
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/textarea.js +7 -7
- package/dist/components/ui/toaster.js +12 -12
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +2 -2
- package/dist/components/ui/typing-indicator.js +8 -8
- package/dist/components/ui/typo.js +9 -9
- package/dist/dist/components/ui/checkbox.js +5 -5
- package/dist/dist/components/ui/scroll-area.js +2 -2
- package/dist/dist/components/ui/table.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as o, jsxs as
|
|
3
|
-
import { Command as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Dialog as s, DialogHeader as c, DialogTitle as i, DialogDescription as l, DialogContent as
|
|
6
|
-
import
|
|
2
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { Command as d } from "../../node_modules/cmdk/dist/index.js";
|
|
4
|
+
import { cn as a } from "../../lib/utils.js";
|
|
5
|
+
import { Dialog as s, DialogHeader as c, DialogTitle as i, DialogDescription as l, DialogContent as p } from "./dialog.js";
|
|
6
|
+
import u from "../../node_modules/lucide-react/dist/esm/icons/search.js";
|
|
7
7
|
function g({
|
|
8
8
|
className: e,
|
|
9
9
|
...t
|
|
10
10
|
}) {
|
|
11
11
|
return /* @__PURE__ */ o(
|
|
12
|
-
|
|
12
|
+
d,
|
|
13
13
|
{
|
|
14
14
|
"data-slot": "command",
|
|
15
|
-
className:
|
|
16
|
-
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
15
|
+
className: a(
|
|
16
|
+
"bg-d-popover text-d-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
17
17
|
e
|
|
18
18
|
),
|
|
19
19
|
...t
|
|
@@ -26,31 +26,31 @@ function v({
|
|
|
26
26
|
children: r,
|
|
27
27
|
...m
|
|
28
28
|
}) {
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ n(s, { ...m, children: [
|
|
30
|
+
/* @__PURE__ */ n(c, { className: "sr-only", children: [
|
|
31
31
|
/* @__PURE__ */ o(i, { children: e }),
|
|
32
32
|
/* @__PURE__ */ o(l, { children: t })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */ o(
|
|
34
|
+
/* @__PURE__ */ o(p, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(g, { className: "[&_[cmdk-group-heading]]:text-d-secondary-foreground **:data-[slot=command-d-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-d-input-wrapper]_svg]:h-5 [&_[cmdk-d-input-wrapper]_svg]:w-5 [&_[cmdk-d-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r }) })
|
|
35
35
|
] });
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function y({
|
|
38
38
|
className: e,
|
|
39
39
|
...t
|
|
40
40
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ n(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
|
-
"data-slot": "command-input-wrapper",
|
|
44
|
+
"data-slot": "command-d-input-wrapper",
|
|
45
45
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */ o(
|
|
47
|
+
/* @__PURE__ */ o(u, { className: "size-4 shrink-0 opacity-50" }),
|
|
48
48
|
/* @__PURE__ */ o(
|
|
49
|
-
|
|
49
|
+
d.Input,
|
|
50
50
|
{
|
|
51
|
-
"data-slot": "command-input",
|
|
52
|
-
className:
|
|
53
|
-
"placeholder:text-
|
|
51
|
+
"data-slot": "command-d-input",
|
|
52
|
+
className: a(
|
|
53
|
+
"placeholder:text-d-secondary-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
54
54
|
e
|
|
55
55
|
),
|
|
56
56
|
...t
|
|
@@ -60,15 +60,15 @@ function w({
|
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function w({
|
|
64
64
|
className: e,
|
|
65
65
|
...t
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ o(
|
|
68
|
-
|
|
68
|
+
d.List,
|
|
69
69
|
{
|
|
70
70
|
"data-slot": "command-list",
|
|
71
|
-
className:
|
|
71
|
+
className: a(
|
|
72
72
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
73
73
|
e
|
|
74
74
|
),
|
|
@@ -80,7 +80,7 @@ function N({
|
|
|
80
80
|
...e
|
|
81
81
|
}) {
|
|
82
82
|
return /* @__PURE__ */ o(
|
|
83
|
-
|
|
83
|
+
d.Empty,
|
|
84
84
|
{
|
|
85
85
|
"data-slot": "command-empty",
|
|
86
86
|
className: "py-6 text-center text-sm",
|
|
@@ -93,11 +93,11 @@ function C({
|
|
|
93
93
|
...t
|
|
94
94
|
}) {
|
|
95
95
|
return /* @__PURE__ */ o(
|
|
96
|
-
|
|
96
|
+
d.Group,
|
|
97
97
|
{
|
|
98
98
|
"data-slot": "command-group",
|
|
99
|
-
className:
|
|
100
|
-
"text-foreground [&_[cmdk-group-heading]]:text-
|
|
99
|
+
className: a(
|
|
100
|
+
"text-foreground [&_[cmdk-group-heading]]:text-d-secondary-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
101
101
|
e
|
|
102
102
|
),
|
|
103
103
|
...t
|
|
@@ -109,10 +109,10 @@ function b({
|
|
|
109
109
|
...t
|
|
110
110
|
}) {
|
|
111
111
|
return /* @__PURE__ */ o(
|
|
112
|
-
|
|
112
|
+
d.Separator,
|
|
113
113
|
{
|
|
114
114
|
"data-slot": "command-separator",
|
|
115
|
-
className:
|
|
115
|
+
className: a("bg-d-border -mx-1 h-px", e),
|
|
116
116
|
...t
|
|
117
117
|
}
|
|
118
118
|
);
|
|
@@ -122,11 +122,11 @@ function D({
|
|
|
122
122
|
...t
|
|
123
123
|
}) {
|
|
124
124
|
return /* @__PURE__ */ o(
|
|
125
|
-
|
|
125
|
+
d.Item,
|
|
126
126
|
{
|
|
127
127
|
"data-slot": "command-item",
|
|
128
|
-
className:
|
|
129
|
-
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-
|
|
128
|
+
className: a(
|
|
129
|
+
"data-[selected=true]:bg-d-accent data-[selected=true]:text-d-accent-foreground [&_svg:not([class*='text-'])]:text-d-secondary-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
130
130
|
e
|
|
131
131
|
),
|
|
132
132
|
...t
|
|
@@ -141,8 +141,8 @@ function S({
|
|
|
141
141
|
"span",
|
|
142
142
|
{
|
|
143
143
|
"data-slot": "command-shortcut",
|
|
144
|
-
className:
|
|
145
|
-
"text-
|
|
144
|
+
className: a(
|
|
145
|
+
"text-d-secondary-foreground ml-auto text-xs tracking-widest",
|
|
146
146
|
e
|
|
147
147
|
),
|
|
148
148
|
...t
|
|
@@ -154,9 +154,9 @@ export {
|
|
|
154
154
|
v as CommandDialog,
|
|
155
155
|
N as CommandEmpty,
|
|
156
156
|
C as CommandGroup,
|
|
157
|
-
|
|
157
|
+
y as CommandInput,
|
|
158
158
|
D as CommandItem,
|
|
159
|
-
|
|
159
|
+
w as CommandList,
|
|
160
160
|
b as CommandSeparator,
|
|
161
161
|
S as CommandShortcut
|
|
162
162
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
3
|
-
import { Root as u, Trigger as c, Portal as
|
|
3
|
+
import { Root as u, Trigger as c, Portal as d, Content as l, Item as m, CheckboxItem as f, ItemIndicator as i, RadioItem as x, Label as p, Separator as g, Group as v, Sub as b, SubContent as h, SubTrigger as C, RadioGroup as z } from "../../node_modules/@radix-ui/react-context-menu/dist/index.js";
|
|
4
4
|
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
import M from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import y from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
7
|
+
import N from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
8
8
|
function G({
|
|
9
9
|
...t
|
|
10
10
|
}) {
|
|
@@ -23,7 +23,7 @@ function j({
|
|
|
23
23
|
function L({
|
|
24
24
|
...t
|
|
25
25
|
}) {
|
|
26
|
-
return /* @__PURE__ */ e(
|
|
26
|
+
return /* @__PURE__ */ e(d, { "data-slot": "context-menu-portal", ...t });
|
|
27
27
|
}
|
|
28
28
|
function P({
|
|
29
29
|
...t
|
|
@@ -53,13 +53,13 @@ function A({
|
|
|
53
53
|
"data-slot": "context-menu-sub-trigger",
|
|
54
54
|
"data-inset": n,
|
|
55
55
|
className: a(
|
|
56
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
56
|
+
"focus:bg-d-accent focus:text-d-accent-foreground data-[state=open]:bg-d-accent data-[state=open]:text-d-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
57
57
|
t
|
|
58
58
|
),
|
|
59
59
|
...s,
|
|
60
60
|
children: [
|
|
61
61
|
o,
|
|
62
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ e(N, { className: "ml-auto" })
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
);
|
|
@@ -73,7 +73,7 @@ function B({
|
|
|
73
73
|
{
|
|
74
74
|
"data-slot": "context-menu-sub-content",
|
|
75
75
|
className: a(
|
|
76
|
-
"bg-popover text-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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
76
|
+
"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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
77
77
|
t
|
|
78
78
|
),
|
|
79
79
|
...n
|
|
@@ -84,12 +84,12 @@ function D({
|
|
|
84
84
|
className: t,
|
|
85
85
|
...n
|
|
86
86
|
}) {
|
|
87
|
-
return /* @__PURE__ */ e(
|
|
87
|
+
return /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(
|
|
88
88
|
l,
|
|
89
89
|
{
|
|
90
90
|
"data-slot": "context-menu-content",
|
|
91
91
|
className: a(
|
|
92
|
-
"bg-popover text-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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
92
|
+
"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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
93
93
|
t
|
|
94
94
|
),
|
|
95
95
|
...n
|
|
@@ -109,7 +109,7 @@ function E({
|
|
|
109
109
|
"data-inset": n,
|
|
110
110
|
"data-variant": o,
|
|
111
111
|
className: a(
|
|
112
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-
|
|
112
|
+
"focus:bg-d-accent focus:text-d-accent-foreground data-[variant=destructive]:text-d-destructive data-[variant=destructive]:focus:bg-d-destructive/10 dark:data-[variant=destructive]:focus:bg-d-destructive/20 data-[variant=destructive]:focus:text-d-destructive data-[variant=destructive]:*:[svg]:!text-d-destructive [&_svg:not([class*='text-'])]:text-d-secondary-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
113
113
|
t
|
|
114
114
|
),
|
|
115
115
|
...s
|
|
@@ -127,13 +127,13 @@ function F({
|
|
|
127
127
|
{
|
|
128
128
|
"data-slot": "context-menu-checkbox-item",
|
|
129
129
|
className: a(
|
|
130
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
130
|
+
"focus:bg-d-accent focus:text-d-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
131
131
|
t
|
|
132
132
|
),
|
|
133
133
|
checked: o,
|
|
134
134
|
...s,
|
|
135
135
|
children: [
|
|
136
|
-
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
136
|
+
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(M, { className: "size-4" }) }) }),
|
|
137
137
|
n
|
|
138
138
|
]
|
|
139
139
|
}
|
|
@@ -149,12 +149,12 @@ function H({
|
|
|
149
149
|
{
|
|
150
150
|
"data-slot": "context-menu-radio-item",
|
|
151
151
|
className: a(
|
|
152
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
152
|
+
"focus:bg-d-accent focus:text-d-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
153
153
|
t
|
|
154
154
|
),
|
|
155
155
|
...o,
|
|
156
156
|
children: [
|
|
157
|
-
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
157
|
+
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(y, { className: "size-2 fill-current" }) }) }),
|
|
158
158
|
n
|
|
159
159
|
]
|
|
160
160
|
}
|
|
@@ -186,7 +186,7 @@ function K({
|
|
|
186
186
|
g,
|
|
187
187
|
{
|
|
188
188
|
"data-slot": "context-menu-separator",
|
|
189
|
-
className: a("bg-border -mx-1 my-1 h-px", t),
|
|
189
|
+
className: a("bg-d-border -mx-1 my-1 h-px", t),
|
|
190
190
|
...n
|
|
191
191
|
}
|
|
192
192
|
);
|
|
@@ -200,7 +200,7 @@ function O({
|
|
|
200
200
|
{
|
|
201
201
|
"data-slot": "context-menu-shortcut",
|
|
202
202
|
className: a(
|
|
203
|
-
"text-
|
|
203
|
+
"text-d-secondary-foreground ml-auto text-xs tracking-widest",
|
|
204
204
|
t
|
|
205
205
|
),
|
|
206
206
|
...n
|
|
@@ -74,7 +74,7 @@ function ee({
|
|
|
74
74
|
/* @__PURE__ */ e(j, { children: a.getHeaderGroups().map((t) => /* @__PURE__ */ e(i, { children: t.headers.map((l) => /* @__PURE__ */ e(
|
|
75
75
|
B,
|
|
76
76
|
{
|
|
77
|
-
className: `${l.column.columnDef.sticky ? "sticky left-0 z-10 bg-background" : ""}`,
|
|
77
|
+
className: `${l.column.columnDef.sticky ? "sticky left-0 z-10 bg-d-background" : ""}`,
|
|
78
78
|
children: l.isPlaceholder ? null : f(
|
|
79
79
|
l.column.columnDef.header,
|
|
80
80
|
l.getContext()
|
|
@@ -96,7 +96,7 @@ function ee({
|
|
|
96
96
|
children: t.getVisibleCells().map((l) => /* @__PURE__ */ e(
|
|
97
97
|
c,
|
|
98
98
|
{
|
|
99
|
-
className: `${l.column.columnDef.sticky ? "sticky left-0 z-10 bg-background" : ""}`,
|
|
99
|
+
className: `${l.column.columnDef.sticky ? "sticky left-0 z-10 bg-d-background" : ""}`,
|
|
100
100
|
children: f(
|
|
101
101
|
l.column.columnDef.cell,
|
|
102
102
|
l.getContext()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as c from "react";
|
|
4
4
|
import { cn as x } from "../../lib/utils.js";
|
|
5
5
|
import { Button as h } from "./button.js";
|
|
6
6
|
import { Calendar as P } from "./calendar.js";
|
|
@@ -9,21 +9,21 @@ import { formatDate as v } from "../../node_modules/date-fns/format.js";
|
|
|
9
9
|
function B({
|
|
10
10
|
value: r,
|
|
11
11
|
onChange: n,
|
|
12
|
-
placeholder:
|
|
13
|
-
dateFormat:
|
|
14
|
-
className:
|
|
12
|
+
placeholder: l = "Seleziona data",
|
|
13
|
+
dateFormat: f = "PPP",
|
|
14
|
+
className: m,
|
|
15
15
|
buttonVariant: p = "outline",
|
|
16
16
|
disabled: e = !1,
|
|
17
17
|
size: a = "default"
|
|
18
18
|
}) {
|
|
19
|
-
const [o, i] =
|
|
20
|
-
|
|
19
|
+
const [o, i] = c.useState(r);
|
|
20
|
+
c.useEffect(() => {
|
|
21
21
|
i(r);
|
|
22
22
|
}, [r]);
|
|
23
|
-
const
|
|
24
|
-
i(
|
|
23
|
+
const d = (s) => {
|
|
24
|
+
i(s), n && n(s);
|
|
25
25
|
};
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ u(g, { open: e ? !1 : void 0, children: [
|
|
27
27
|
/* @__PURE__ */ t(C, { asChild: !0, children: /* @__PURE__ */ t(
|
|
28
28
|
h,
|
|
29
29
|
{
|
|
@@ -31,15 +31,15 @@ function B({
|
|
|
31
31
|
size: a,
|
|
32
32
|
className: x(
|
|
33
33
|
"justify-start text-left font-normal",
|
|
34
|
-
!o && "text-
|
|
34
|
+
!o && "text-d-secondary-foreground",
|
|
35
35
|
e && "opacity-50 cursor-not-allowed",
|
|
36
|
-
|
|
36
|
+
m,
|
|
37
37
|
a === "sm" && "text-xs",
|
|
38
38
|
a === "lg" && "text-lg"
|
|
39
39
|
),
|
|
40
40
|
disabled: e,
|
|
41
41
|
iconLeft: "Calendar",
|
|
42
|
-
children: o ? v(o,
|
|
42
|
+
children: o ? v(o, f) : /* @__PURE__ */ t("span", { children: l })
|
|
43
43
|
}
|
|
44
44
|
) }),
|
|
45
45
|
/* @__PURE__ */ t(j, { className: "w-auto p-0", children: /* @__PURE__ */ t(
|
|
@@ -47,7 +47,7 @@ function B({
|
|
|
47
47
|
{
|
|
48
48
|
mode: "single",
|
|
49
49
|
selected: o,
|
|
50
|
-
onSelect:
|
|
50
|
+
onSelect: d,
|
|
51
51
|
initialFocus: !0,
|
|
52
52
|
disabled: e
|
|
53
53
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Root as
|
|
3
|
+
import { Root as i, Trigger as l, Content as r, Close as d, Title as c, Description as g, Portal as f, Overlay as u } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { cn as o } from "../../lib/utils.js";
|
|
5
5
|
import m from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
|
-
function
|
|
6
|
+
function h({
|
|
7
7
|
...t
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */ e(
|
|
9
|
+
return /* @__PURE__ */ e(i, { "data-slot": "dialog", ...t });
|
|
10
10
|
}
|
|
11
11
|
function N({
|
|
12
12
|
...t
|
|
@@ -16,14 +16,14 @@ function N({
|
|
|
16
16
|
function p({
|
|
17
17
|
...t
|
|
18
18
|
}) {
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
19
|
+
return /* @__PURE__ */ e(f, { "data-slot": "dialog-portal", ...t });
|
|
20
20
|
}
|
|
21
21
|
function x({
|
|
22
22
|
className: t,
|
|
23
23
|
...a
|
|
24
24
|
}) {
|
|
25
25
|
return /* @__PURE__ */ e(
|
|
26
|
-
|
|
26
|
+
u,
|
|
27
27
|
{
|
|
28
28
|
"data-slot": "dialog-overlay",
|
|
29
29
|
className: o(
|
|
@@ -37,7 +37,7 @@ function x({
|
|
|
37
37
|
function z({
|
|
38
38
|
className: t,
|
|
39
39
|
children: a,
|
|
40
|
-
...
|
|
40
|
+
...s
|
|
41
41
|
}) {
|
|
42
42
|
return /* @__PURE__ */ n(p, { "data-slot": "dialog-portal", children: [
|
|
43
43
|
/* @__PURE__ */ e(x, {}),
|
|
@@ -46,13 +46,13 @@ function z({
|
|
|
46
46
|
{
|
|
47
47
|
"data-slot": "dialog-content",
|
|
48
48
|
className: o(
|
|
49
|
-
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
49
|
+
"bg-d-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
50
50
|
t
|
|
51
51
|
),
|
|
52
|
-
...
|
|
52
|
+
...s,
|
|
53
53
|
children: [
|
|
54
54
|
a,
|
|
55
|
-
/* @__PURE__ */ n(d, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-
|
|
55
|
+
/* @__PURE__ */ n(d, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-accent data-[state=open]:text-d-secondary-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
56
56
|
/* @__PURE__ */ e(m, {}),
|
|
57
57
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
58
58
|
] })
|
|
@@ -105,13 +105,13 @@ function T({
|
|
|
105
105
|
g,
|
|
106
106
|
{
|
|
107
107
|
"data-slot": "dialog-description",
|
|
108
|
-
className: o("text-
|
|
108
|
+
className: o("text-d-secondary-foreground text-sm", t),
|
|
109
109
|
...a
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
h as Dialog,
|
|
115
115
|
z as DialogContent,
|
|
116
116
|
T as DialogDescription,
|
|
117
117
|
k as DialogFooter,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { Drawer as e } from "../../node_modules/vaul/dist/index.js";
|
|
4
4
|
import { cn as d } from "../../lib/utils.js";
|
|
5
|
-
function
|
|
5
|
+
function w({
|
|
6
6
|
...a
|
|
7
7
|
}) {
|
|
8
8
|
return /* @__PURE__ */ t(e.Root, { "data-slot": "drawer", ...a });
|
|
@@ -45,7 +45,7 @@ function f({
|
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "drawer-content",
|
|
47
47
|
className: d(
|
|
48
|
-
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
48
|
+
"group/drawer-content bg-d-background fixed z-50 flex h-auto flex-col",
|
|
49
49
|
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
50
50
|
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
51
51
|
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
@@ -54,7 +54,7 @@ function f({
|
|
|
54
54
|
),
|
|
55
55
|
...i,
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */ t("div", { className: "bg-
|
|
57
|
+
/* @__PURE__ */ t("div", { className: "bg-d-secondary mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
58
58
|
r
|
|
59
59
|
]
|
|
60
60
|
}
|
|
@@ -102,13 +102,13 @@ function b({
|
|
|
102
102
|
e.Description,
|
|
103
103
|
{
|
|
104
104
|
"data-slot": "drawer-description",
|
|
105
|
-
className: d("text-
|
|
105
|
+
className: d("text-d-secondary-foreground text-sm", a),
|
|
106
106
|
...r
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
w as Drawer,
|
|
112
112
|
f as DrawerContent,
|
|
113
113
|
b as DrawerDescription,
|
|
114
114
|
p as DrawerFooter,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
3
|
-
import l, { useEffect as
|
|
3
|
+
import l, { useEffect as w } from "react";
|
|
4
4
|
import { motion as n } from "framer-motion";
|
|
5
5
|
import d from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
|
-
import
|
|
6
|
+
import p from "../../node_modules/lucide-react/dist/esm/icons/file.js";
|
|
7
7
|
const b = l.forwardRef(
|
|
8
8
|
(e, r) => e.file.type.startsWith("image/") ? /* @__PURE__ */ t(m, { ...e, ref: r }) : e.file.type.startsWith("text/") || e.file.name.endsWith(".txt") || e.file.name.endsWith(".md") ? /* @__PURE__ */ t(u, { ...e, ref: r }) : /* @__PURE__ */ t(f, { ...e, ref: r })
|
|
9
9
|
);
|
|
@@ -24,16 +24,16 @@ const m = l.forwardRef(
|
|
|
24
24
|
"img",
|
|
25
25
|
{
|
|
26
26
|
alt: `Attachment ${e.name}`,
|
|
27
|
-
className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-
|
|
27
|
+
className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-d-secondary object-cover",
|
|
28
28
|
src: URL.createObjectURL(e)
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
/* @__PURE__ */ t("span", { className: "w-full truncate text-
|
|
31
|
+
/* @__PURE__ */ t("span", { className: "w-full truncate text-d-secondary-foreground", children: e.name })
|
|
32
32
|
] }),
|
|
33
33
|
r ? /* @__PURE__ */ t(
|
|
34
34
|
"button",
|
|
35
35
|
{
|
|
36
|
-
className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-background",
|
|
36
|
+
className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-d-background",
|
|
37
37
|
type: "button",
|
|
38
38
|
onClick: r,
|
|
39
39
|
"aria-label": "Remove attachment",
|
|
@@ -48,12 +48,12 @@ m.displayName = "ImageFilePreview";
|
|
|
48
48
|
const u = l.forwardRef(
|
|
49
49
|
({ file: e, onRemove: r }, i) => {
|
|
50
50
|
const [x, h] = l.useState("");
|
|
51
|
-
return
|
|
51
|
+
return w(() => {
|
|
52
52
|
if (typeof window > "u") return;
|
|
53
53
|
const c = new FileReader();
|
|
54
|
-
c.onload = (
|
|
54
|
+
c.onload = (y) => {
|
|
55
55
|
var o;
|
|
56
|
-
const s = (o =
|
|
56
|
+
const s = (o = y.target) == null ? void 0 : o.result;
|
|
57
57
|
h(s.slice(0, 50) + (s.length > 50 ? "..." : ""));
|
|
58
58
|
}, c.readAsText(e);
|
|
59
59
|
}, [e]), /* @__PURE__ */ a(
|
|
@@ -67,13 +67,13 @@ const u = l.forwardRef(
|
|
|
67
67
|
exit: { opacity: 0, y: "100%" },
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ a("div", { className: "flex w-full items-center space-x-2", children: [
|
|
70
|
-
/* @__PURE__ */ t("div", { className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-
|
|
71
|
-
/* @__PURE__ */ t("span", { className: "w-full truncate text-
|
|
70
|
+
/* @__PURE__ */ t("div", { className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-d-secondary p-0.5", children: /* @__PURE__ */ t("div", { className: "h-full w-full overflow-hidden text-[6px] leading-none text-d-secondary-foreground", children: x || "Loading..." }) }),
|
|
71
|
+
/* @__PURE__ */ t("span", { className: "w-full truncate text-d-secondary-foreground", children: e.name })
|
|
72
72
|
] }),
|
|
73
73
|
r ? /* @__PURE__ */ t(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-background",
|
|
76
|
+
className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-d-background",
|
|
77
77
|
type: "button",
|
|
78
78
|
onClick: r,
|
|
79
79
|
"aria-label": "Remove attachment",
|
|
@@ -98,13 +98,13 @@ const f = l.forwardRef(
|
|
|
98
98
|
exit: { opacity: 0, y: "100%" },
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ a("div", { className: "flex w-full items-center space-x-2", children: [
|
|
101
|
-
/* @__PURE__ */ t("div", { className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-
|
|
102
|
-
/* @__PURE__ */ t("span", { className: "w-full truncate text-
|
|
101
|
+
/* @__PURE__ */ t("div", { className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-d-secondary", children: /* @__PURE__ */ t(p, { className: "h-6 w-6 text-foreground" }) }),
|
|
102
|
+
/* @__PURE__ */ t("span", { className: "w-full truncate text-d-secondary-foreground", children: e.name })
|
|
103
103
|
] }),
|
|
104
104
|
r ? /* @__PURE__ */ t(
|
|
105
105
|
"button",
|
|
106
106
|
{
|
|
107
|
-
className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-background",
|
|
107
|
+
className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-d-background",
|
|
108
108
|
type: "button",
|
|
109
109
|
onClick: r,
|
|
110
110
|
"aria-label": "Remove attachment",
|