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,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Root as
|
|
3
|
+
import { Root as d, List as s, Item as u, Content as l, Trigger as g, Link as c, Indicator 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";
|
|
7
|
-
function
|
|
7
|
+
function M({
|
|
8
8
|
className: t,
|
|
9
9
|
children: a,
|
|
10
10
|
viewport: n = !0,
|
|
11
11
|
...r
|
|
12
12
|
}) {
|
|
13
13
|
return /* @__PURE__ */ i(
|
|
14
|
-
|
|
14
|
+
d,
|
|
15
15
|
{
|
|
16
16
|
"data-slot": "navigation-menu",
|
|
17
17
|
"data-viewport": n,
|
|
@@ -32,7 +32,7 @@ function j({
|
|
|
32
32
|
...a
|
|
33
33
|
}) {
|
|
34
34
|
return /* @__PURE__ */ e(
|
|
35
|
-
|
|
35
|
+
s,
|
|
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
|
+
u,
|
|
52
52
|
{
|
|
53
53
|
"data-slot": "navigation-menu-item",
|
|
54
54
|
className: o("relative", t),
|
|
@@ -57,7 +57,7 @@ function k({
|
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
const w = f(
|
|
60
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
60
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-d-background px-4 py-2 text-sm font-medium hover:bg-d-accent hover:text-d-accent-foreground focus:bg-d-accent focus:text-d-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-d-accent data-[state=open]:text-d-accent-foreground data-[state=open]:focus:bg-d-accent data-[state=open]:bg-d-accent/50 focus-visible:ring-d-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
61
61
|
);
|
|
62
62
|
function I({
|
|
63
63
|
className: t,
|
|
@@ -94,7 +94,7 @@ function L({
|
|
|
94
94
|
"data-slot": "navigation-menu-content",
|
|
95
95
|
className: o(
|
|
96
96
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
97
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
97
|
+
"group-data-[viewport=false]/navigation-menu:bg-d-popover group-data-[viewport=false]/navigation-menu:text-d-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
98
98
|
t
|
|
99
99
|
),
|
|
100
100
|
...a
|
|
@@ -116,7 +116,7 @@ function x({
|
|
|
116
116
|
{
|
|
117
117
|
"data-slot": "navigation-menu-viewport",
|
|
118
118
|
className: o(
|
|
119
|
-
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
119
|
+
"origin-top-center bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
120
120
|
t
|
|
121
121
|
),
|
|
122
122
|
...a
|
|
@@ -130,11 +130,11 @@ function C({
|
|
|
130
130
|
...a
|
|
131
131
|
}) {
|
|
132
132
|
return /* @__PURE__ */ e(
|
|
133
|
-
|
|
133
|
+
c,
|
|
134
134
|
{
|
|
135
135
|
"data-slot": "navigation-menu-link",
|
|
136
136
|
className: o(
|
|
137
|
-
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-
|
|
137
|
+
"data-[active=true]:focus:bg-d-accent data-[active=true]:hover:bg-d-accent data-[active=true]:bg-d-accent/50 data-[active=true]:text-d-accent-foreground hover:bg-d-accent hover:text-d-accent-foreground focus:bg-d-accent focus:text-d-accent-foreground focus-visible:ring-d-ring/50 [&_svg:not([class*='text-'])]:text-d-secondary-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
138
138
|
t
|
|
139
139
|
),
|
|
140
140
|
...a
|
|
@@ -146,7 +146,7 @@ function T({
|
|
|
146
146
|
...a
|
|
147
147
|
}) {
|
|
148
148
|
return /* @__PURE__ */ e(
|
|
149
|
-
|
|
149
|
+
m,
|
|
150
150
|
{
|
|
151
151
|
"data-slot": "navigation-menu-indicator",
|
|
152
152
|
className: o(
|
|
@@ -154,12 +154,12 @@ function T({
|
|
|
154
154
|
t
|
|
155
155
|
),
|
|
156
156
|
...a,
|
|
157
|
-
children: /* @__PURE__ */ e("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
157
|
+
children: /* @__PURE__ */ e("div", { className: "bg-d-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
161
|
export {
|
|
162
|
-
|
|
162
|
+
M as NavigationMenu,
|
|
163
163
|
L as NavigationMenuContent,
|
|
164
164
|
T as NavigationMenuIndicator,
|
|
165
165
|
k as NavigationMenuItem,
|
|
@@ -25,7 +25,7 @@ function g({
|
|
|
25
25
|
align: e,
|
|
26
26
|
sideOffset: r,
|
|
27
27
|
className: p(
|
|
28
|
-
"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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
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 z-50 w-72 origin-(--radix-d-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
29
29
|
o
|
|
30
30
|
),
|
|
31
31
|
...a
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { Root as a, Indicator as e } from "../../node_modules/@radix-ui/react-progress/dist/index.js";
|
|
4
4
|
import { cn as s } from "../../lib/utils.js";
|
|
5
|
-
function
|
|
5
|
+
function f({
|
|
6
6
|
className: o,
|
|
7
7
|
value: l,
|
|
8
8
|
...t
|
|
@@ -12,7 +12,7 @@ function m({
|
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "progress",
|
|
14
14
|
className: s(
|
|
15
|
-
"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
|
|
15
|
+
"bg-d-primary/20 relative h-2 w-full overflow-hidden rounded-full",
|
|
16
16
|
o
|
|
17
17
|
),
|
|
18
18
|
...t,
|
|
@@ -20,7 +20,7 @@ function m({
|
|
|
20
20
|
e,
|
|
21
21
|
{
|
|
22
22
|
"data-slot": "progress-indicator",
|
|
23
|
-
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
23
|
+
className: "bg-d-primary h-full w-full flex-1 transition-all",
|
|
24
24
|
style: { transform: `translateX(-${100 - (l || 0)}%)` }
|
|
25
25
|
}
|
|
26
26
|
)
|
|
@@ -28,5 +28,5 @@ function m({
|
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
f as Progress
|
|
32
32
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
function
|
|
4
|
-
label:
|
|
2
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
function d({
|
|
4
|
+
label: c,
|
|
5
5
|
append: l,
|
|
6
|
-
suggestions:
|
|
6
|
+
suggestions: n
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children:
|
|
10
|
-
/* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children:
|
|
8
|
+
return /* @__PURE__ */ t("div", { className: "space-y-6 grow", children: [
|
|
9
|
+
/* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children: c }),
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children: n.map((r) => /* @__PURE__ */ e(
|
|
11
11
|
"button",
|
|
12
12
|
{
|
|
13
13
|
onClick: () => l({ role: "user", content: r }),
|
|
14
|
-
className: "h-max flex-1 rounded-xl border bg-background p-4 hover:bg-
|
|
14
|
+
className: "h-max flex-1 rounded-xl border bg-d-background p-4 hover:bg-d-secondary",
|
|
15
15
|
children: /* @__PURE__ */ e("p", { children: r })
|
|
16
16
|
},
|
|
17
17
|
r
|
|
@@ -19,5 +19,5 @@ function a({
|
|
|
19
19
|
] });
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
d as PromptSuggestions
|
|
23
23
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { Root as o, Item as t, Indicator as
|
|
3
|
+
import { Root as o, Item as t, Indicator as d } from "../../node_modules/@radix-ui/react-radio-group/dist/index.js";
|
|
4
4
|
import { cn as e } from "../../lib/utils.js";
|
|
5
|
-
import
|
|
5
|
+
import s from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
6
6
|
function m({
|
|
7
7
|
className: i,
|
|
8
8
|
...a
|
|
@@ -25,16 +25,16 @@ function p({
|
|
|
25
25
|
{
|
|
26
26
|
"data-slot": "radio-group-item",
|
|
27
27
|
className: e(
|
|
28
|
-
"border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
28
|
+
"border-d-input text-d-primary 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 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
29
29
|
i
|
|
30
30
|
),
|
|
31
31
|
...a,
|
|
32
32
|
children: /* @__PURE__ */ r(
|
|
33
|
-
|
|
33
|
+
d,
|
|
34
34
|
{
|
|
35
35
|
"data-slot": "radio-group-indicator",
|
|
36
36
|
className: "relative flex items-center justify-center",
|
|
37
|
-
children: /* @__PURE__ */ r(
|
|
37
|
+
children: /* @__PURE__ */ r(s, { className: "fill-d-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -34,11 +34,11 @@ function g({
|
|
|
34
34
|
{
|
|
35
35
|
"data-slot": "resizable-handle",
|
|
36
36
|
className: t(
|
|
37
|
-
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
37
|
+
"bg-d-border focus-visible:ring-d-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
38
38
|
r
|
|
39
39
|
),
|
|
40
40
|
...l,
|
|
41
|
-
children: e && /* @__PURE__ */ a("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(s, { className: "size-2.5" }) })
|
|
41
|
+
children: e && /* @__PURE__ */ a("div", { className: "bg-d-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(s, { className: "size-2.5" }) })
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as t, jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import { Root as s, Viewport as c, Corner as n, ScrollAreaScrollbar as i, ScrollAreaThumb as
|
|
3
|
+
import { Root as s, Viewport as c, Corner as n, ScrollAreaScrollbar as i, ScrollAreaThumb as d } from "../../node_modules/@radix-ui/react-scroll-area/dist/index.js";
|
|
4
4
|
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
function p({
|
|
6
6
|
className: o,
|
|
@@ -18,17 +18,17 @@ function p({
|
|
|
18
18
|
c,
|
|
19
19
|
{
|
|
20
20
|
"data-slot": "scroll-area-viewport",
|
|
21
|
-
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
21
|
+
className: "focus-visible:ring-d-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
22
22
|
children: r
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
|
-
/* @__PURE__ */ l(
|
|
25
|
+
/* @__PURE__ */ l(u, {}),
|
|
26
26
|
/* @__PURE__ */ l(n, {})
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function u({
|
|
32
32
|
className: o,
|
|
33
33
|
orientation: r = "vertical",
|
|
34
34
|
...e
|
|
@@ -46,10 +46,10 @@ function d({
|
|
|
46
46
|
),
|
|
47
47
|
...e,
|
|
48
48
|
children: /* @__PURE__ */ l(
|
|
49
|
-
|
|
49
|
+
d,
|
|
50
50
|
{
|
|
51
51
|
"data-slot": "scroll-area-thumb",
|
|
52
|
-
className: "bg-border relative flex-1 rounded-full"
|
|
52
|
+
className: "bg-d-border relative flex-1 rounded-full"
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
}
|
|
@@ -57,5 +57,5 @@ function d({
|
|
|
57
57
|
}
|
|
58
58
|
export {
|
|
59
59
|
p as ScrollArea,
|
|
60
|
-
|
|
60
|
+
u as ScrollBar
|
|
61
61
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import { Root as
|
|
4
|
+
import { Root as p, Group as m, Value as f, Trigger as g, Icon as x, Portal as h, Content as v, Viewport as b, Label as z, Item as y, ItemIndicator as w, ItemText as S, Separator as N, ScrollUpButton as C, ScrollDownButton as _ } from "../../node_modules/@radix-ui/react-select/dist/index.js";
|
|
5
5
|
import { cn as o } from "../../lib/utils.js";
|
|
6
6
|
import { Label as I } from "./label.js";
|
|
7
7
|
import d from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
@@ -23,14 +23,14 @@ function q({
|
|
|
23
23
|
children: a
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
/* @__PURE__ */ e(c.Provider, { value: { size: t, id: n }, children: /* @__PURE__ */ e(
|
|
26
|
+
/* @__PURE__ */ e(c.Provider, { value: { size: t, id: n }, children: /* @__PURE__ */ e(p, { "data-slot": "select", ...r }) })
|
|
27
27
|
] });
|
|
28
28
|
}
|
|
29
29
|
const c = i.createContext({ size: "default" }), B = () => i.useContext(c);
|
|
30
30
|
function A({
|
|
31
31
|
...t
|
|
32
32
|
}) {
|
|
33
|
-
return /* @__PURE__ */ e(
|
|
33
|
+
return /* @__PURE__ */ e(m, { "data-slot": "select-group", ...t });
|
|
34
34
|
}
|
|
35
35
|
function E({
|
|
36
36
|
...t
|
|
@@ -51,7 +51,7 @@ function H({
|
|
|
51
51
|
"data-slot": "select-trigger",
|
|
52
52
|
"data-size": a || n,
|
|
53
53
|
className: o(
|
|
54
|
-
"border-input data-[placeholder]:text-
|
|
54
|
+
"border-d-input data-[placeholder]:text-d-secondary-foreground [&_svg:not([class*='text-'])]:text-d-secondary-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 dark:hover:bg-d-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=default]:py-1 data-[size=default]:text-sm data-[size=sm]:h-8 data-[size=sm]:py-1 data-[size=sm]:text-xs data-[size=lg]:h-10 data-[size=lg]:py-2 data-[size=lg]:text-lg *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
55
55
|
t
|
|
56
56
|
),
|
|
57
57
|
...r,
|
|
@@ -73,7 +73,7 @@ function J({
|
|
|
73
73
|
{
|
|
74
74
|
"data-slot": "select-content",
|
|
75
75
|
className: o(
|
|
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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
77
77
|
s === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
78
78
|
t
|
|
79
79
|
),
|
|
@@ -104,7 +104,7 @@ function K({
|
|
|
104
104
|
z,
|
|
105
105
|
{
|
|
106
106
|
"data-slot": "select-label",
|
|
107
|
-
className: o("text-
|
|
107
|
+
className: o("text-d-secondary-foreground px-2 py-1.5 text-xs", t),
|
|
108
108
|
...a
|
|
109
109
|
}
|
|
110
110
|
);
|
|
@@ -115,16 +115,16 @@ function M({
|
|
|
115
115
|
...s
|
|
116
116
|
}) {
|
|
117
117
|
return /* @__PURE__ */ l(
|
|
118
|
-
|
|
118
|
+
y,
|
|
119
119
|
{
|
|
120
120
|
"data-slot": "select-item",
|
|
121
121
|
className: o(
|
|
122
|
-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-
|
|
122
|
+
"focus:bg-d-accent focus:text-d-accent-foreground [&_svg:not([class*='text-'])]:text-d-secondary-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
123
123
|
t
|
|
124
124
|
),
|
|
125
125
|
...s,
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
127
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(j, { className: "size-4" }) }) }),
|
|
128
128
|
/* @__PURE__ */ e(S, { children: a })
|
|
129
129
|
]
|
|
130
130
|
}
|
|
@@ -138,7 +138,7 @@ function O({
|
|
|
138
138
|
N,
|
|
139
139
|
{
|
|
140
140
|
"data-slot": "select-separator",
|
|
141
|
-
className: o("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
141
|
+
className: o("bg-d-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
142
142
|
...a
|
|
143
143
|
}
|
|
144
144
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import { Root as n } from "../../node_modules/@radix-ui/react-separator/dist/index.js";
|
|
4
4
|
import { cn as e } from "../../lib/utils.js";
|
|
5
|
-
function
|
|
5
|
+
function m({
|
|
6
6
|
className: t,
|
|
7
7
|
orientation: o = "horizontal",
|
|
8
8
|
decorative: r = !0,
|
|
@@ -15,7 +15,7 @@ function s({
|
|
|
15
15
|
decorative: r,
|
|
16
16
|
orientation: o,
|
|
17
17
|
className: e(
|
|
18
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
18
|
+
"bg-d-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
19
19
|
t
|
|
20
20
|
),
|
|
21
21
|
...a
|
|
@@ -23,5 +23,5 @@ function s({
|
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
m as Separator
|
|
27
27
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Root as i, Trigger as
|
|
3
|
+
import { Root as i, Trigger as d, Content as l, Close as c, Title as f, Description as u, Portal as m, Overlay as h } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
import p from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
6
|
function v({ ...t }) {
|
|
@@ -9,7 +9,7 @@ function v({ ...t }) {
|
|
|
9
9
|
function w({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
12
|
+
return /* @__PURE__ */ o(d, { "data-slot": "sheet-trigger", ...t });
|
|
13
13
|
}
|
|
14
14
|
function g({
|
|
15
15
|
...t
|
|
@@ -41,11 +41,11 @@ function C({
|
|
|
41
41
|
return /* @__PURE__ */ n(g, { children: [
|
|
42
42
|
/* @__PURE__ */ o(x, {}),
|
|
43
43
|
/* @__PURE__ */ n(
|
|
44
|
-
|
|
44
|
+
l,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "sheet-content",
|
|
47
47
|
className: a(
|
|
48
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
48
|
+
"bg-d-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
49
49
|
s === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
50
50
|
s === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
51
51
|
s === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
@@ -55,7 +55,7 @@ function C({
|
|
|
55
55
|
...r,
|
|
56
56
|
children: [
|
|
57
57
|
e,
|
|
58
|
-
/* @__PURE__ */ n(c, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary 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", children: [
|
|
58
|
+
/* @__PURE__ */ n(c, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-secondary 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", children: [
|
|
59
59
|
/* @__PURE__ */ o(p, { className: "size-4" }),
|
|
60
60
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
61
61
|
] })
|
|
@@ -89,7 +89,7 @@ function z({
|
|
|
89
89
|
...e
|
|
90
90
|
}) {
|
|
91
91
|
return /* @__PURE__ */ o(
|
|
92
|
-
|
|
92
|
+
f,
|
|
93
93
|
{
|
|
94
94
|
"data-slot": "sheet-title",
|
|
95
95
|
className: a("text-foreground font-semibold", t),
|
|
@@ -102,10 +102,10 @@ function j({
|
|
|
102
102
|
...e
|
|
103
103
|
}) {
|
|
104
104
|
return /* @__PURE__ */ o(
|
|
105
|
-
|
|
105
|
+
u,
|
|
106
106
|
{
|
|
107
107
|
"data-slot": "sheet-description",
|
|
108
|
-
className: a("text-
|
|
108
|
+
className: a("text-d-secondary-foreground text-sm", t),
|
|
109
109
|
...e
|
|
110
110
|
}
|
|
111
111
|
);
|