laif-ds 0.1.13 → 0.1.15
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/index2.js +2 -5
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -2
- package/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index6.js +2 -5
- package/dist/components/ui/app-sidebar.js +29 -0
- package/dist/components/ui/async-select.js +1 -1
- package/dist/components/ui/badge.js +5 -5
- package/dist/components/ui/breadcrumb.js +2 -2
- package/dist/components/ui/button.js +8 -8
- package/dist/components/ui/chart.js +1 -1
- package/dist/components/ui/chat-message.js +4 -4
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/file-preview.js +1 -1
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/input-selector.js +9 -9
- package/dist/components/ui/input.js +12 -12
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar.js +476 -534
- package/dist/components/ui/slider.js +132 -0
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/toaster.js +3 -3
- package/dist/dist/components/ui/table.js +1 -1
- package/dist/index.d.ts +77 -34
- package/dist/index.js +103 -99
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +439 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +33 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +5 -3
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
-
var t = e();
|
|
5
|
-
const a = /* @__PURE__ */ r(t);
|
|
2
|
+
var e = { exports: {} };
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as __module
|
|
8
5
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
+
var t = e();
|
|
5
|
+
const a = /* @__PURE__ */ r(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
+
var t = r();
|
|
5
|
+
const x = /* @__PURE__ */ e(t);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
x as default
|
|
5
8
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/classnames/index.js";
|
|
4
|
+
var s = e();
|
|
5
|
+
const o = /* @__PURE__ */ r(s);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
o as default
|
|
5
8
|
};
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { __require as e } from "../node_modules/classnames/index.js";
|
|
4
|
-
var s = e();
|
|
5
|
-
const o = /* @__PURE__ */ r(s);
|
|
2
|
+
var e = {};
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as __exports
|
|
8
5
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { Sidebar as s, SidebarHeader as o, SidebarContent as b, SidebarGroup as h, SidebarGroupLabel as u, SidebarGroupContent as m, SidebarMenu as p, SidebarMenuItem as S, SidebarMenuButton as f, SidebarRail as x } from "./sidebar.js";
|
|
4
|
+
import { Icon as v } from "./icon.js";
|
|
5
|
+
function C({
|
|
6
|
+
navigation: d,
|
|
7
|
+
versions: A,
|
|
8
|
+
defaultVersion: G,
|
|
9
|
+
headerContent: a,
|
|
10
|
+
footerContent: l,
|
|
11
|
+
showRail: t = !0,
|
|
12
|
+
...c
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ n(s, { ...c, children: [
|
|
15
|
+
a && /* @__PURE__ */ e(o, { children: a }),
|
|
16
|
+
/* @__PURE__ */ e(b, { children: d.map((r) => /* @__PURE__ */ n(h, { children: [
|
|
17
|
+
/* @__PURE__ */ e(u, { children: r.title }),
|
|
18
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(p, { children: r.items.map((i) => /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(f, { asChild: !0, isActive: i.isActive, children: /* @__PURE__ */ n("a", { href: i.url, className: "flex items-center gap-2", children: [
|
|
19
|
+
i.iconName && /* @__PURE__ */ e(v, { name: i.iconName, size: "sm" }),
|
|
20
|
+
/* @__PURE__ */ e("span", { children: i.title })
|
|
21
|
+
] }) }) }, i.title)) }) })
|
|
22
|
+
] }, r.title)) }),
|
|
23
|
+
l,
|
|
24
|
+
t && /* @__PURE__ */ e(x, {})
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
C as AppSidebar
|
|
29
|
+
};
|
|
@@ -112,7 +112,7 @@ function Ee({
|
|
|
112
112
|
style: { width: b },
|
|
113
113
|
disabled: S,
|
|
114
114
|
children: [
|
|
115
|
-
T ? B(T) : /* @__PURE__ */ t("span", { className: "text-d-secondary-foreground hover:text-foreground", children: U }),
|
|
115
|
+
T ? B(T) : /* @__PURE__ */ t("span", { className: "text-d-secondary-foreground hover:text-d-foreground", children: U }),
|
|
116
116
|
/* @__PURE__ */ t(de, { className: "opacity-50", size: 10 })
|
|
117
117
|
]
|
|
118
118
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Root as
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { Root as a } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
4
4
|
import { cva as o } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
5
5
|
import { cn as n } from "../../lib/utils.js";
|
|
6
6
|
const s = o(
|
|
@@ -11,7 +11,7 @@ const s = o(
|
|
|
11
11
|
default: "border-transparent bg-d-primary text-d-primary-foreground [a&]:hover:bg-d-primary/90",
|
|
12
12
|
secondary: "border-transparent bg-d-secondary text-d-secondary-foreground [a&]:hover:bg-d-secondary/90",
|
|
13
13
|
destructive: "border-transparent bg-d-destructive text-white [a&]:hover:bg-d-destructive/90 focus-visible:ring-d-destructive/20 dark:focus-visible:ring-d-destructive/40 dark:bg-d-destructive/60",
|
|
14
|
-
outline: "text-foreground [a&]:hover:bg-d-accent [a&]:hover:text-d-accent-foreground"
|
|
14
|
+
outline: "text-d-foreground [a&]:hover:bg-d-accent [a&]:hover:text-d-accent-foreground"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
defaultVariants: {
|
|
@@ -25,8 +25,8 @@ function b({
|
|
|
25
25
|
asChild: t = !1,
|
|
26
26
|
...i
|
|
27
27
|
}) {
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
t ?
|
|
28
|
+
return /* @__PURE__ */ d(
|
|
29
|
+
t ? a : "span",
|
|
30
30
|
{
|
|
31
31
|
"data-slot": "badge",
|
|
32
32
|
className: n(s({ variant: e }), r),
|
|
@@ -39,7 +39,7 @@ function h({
|
|
|
39
39
|
r ? o : "a",
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "breadcrumb-link",
|
|
42
|
-
className: t("hover:text-foreground transition-colors", e),
|
|
42
|
+
className: t("hover:text-d-foreground transition-colors", e),
|
|
43
43
|
...s
|
|
44
44
|
}
|
|
45
45
|
);
|
|
@@ -52,7 +52,7 @@ function N({ className: r, ...e }) {
|
|
|
52
52
|
role: "link",
|
|
53
53
|
"aria-disabled": "true",
|
|
54
54
|
"aria-current": "page",
|
|
55
|
-
className: t("text-foreground font-normal", r),
|
|
55
|
+
className: t("text-d-foreground font-normal", r),
|
|
56
56
|
...e
|
|
57
57
|
}
|
|
58
58
|
);
|
|
@@ -5,7 +5,7 @@ import { cva as p } from "../../node_modules/class-variance-authority/dist/index
|
|
|
5
5
|
import { cn as o } from "../../lib/utils.js";
|
|
6
6
|
import { Icon as u } from "./icon.js";
|
|
7
7
|
const v = p(
|
|
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-d-ring focus-visible:ring-d-ring/50 focus-visible:ring-[3px] aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-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-d-ring focus-visible:ring-d-ring/50 focus-visible:ring-[3px] aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive transition-all duration-200",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -30,28 +30,28 @@ const v = p(
|
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
function k({
|
|
33
|
-
className:
|
|
34
|
-
variant:
|
|
33
|
+
className: i,
|
|
34
|
+
variant: a,
|
|
35
35
|
size: e,
|
|
36
|
-
asChild:
|
|
36
|
+
asChild: d = !1,
|
|
37
37
|
iconLeft: n,
|
|
38
38
|
iconRight: s,
|
|
39
39
|
isLoading: m = !1,
|
|
40
40
|
...t
|
|
41
41
|
}) {
|
|
42
|
-
const c =
|
|
43
|
-
return
|
|
42
|
+
const c = d ? g : "button";
|
|
43
|
+
return d ? /* @__PURE__ */ r(
|
|
44
44
|
c,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "button",
|
|
47
|
-
className: o(v({ variant:
|
|
47
|
+
className: o(v({ variant: a, size: e, className: i })),
|
|
48
48
|
...t
|
|
49
49
|
}
|
|
50
50
|
) : /* @__PURE__ */ l(
|
|
51
51
|
c,
|
|
52
52
|
{
|
|
53
53
|
"data-slot": "button",
|
|
54
|
-
className: o(v({ variant:
|
|
54
|
+
className: o(v({ variant: a, size: e, className: i }), "relative"),
|
|
55
55
|
...t,
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ r(
|
|
@@ -144,7 +144,7 @@ function A({
|
|
|
144
144
|
b ? C : null,
|
|
145
145
|
/* @__PURE__ */ s("span", { className: "text-d-secondary-foreground", children: (d == null ? void 0 : d.label) || e.name })
|
|
146
146
|
] }),
|
|
147
|
-
e.value && /* @__PURE__ */ s("span", { className: "text-foreground font-mono font-medium tabular-nums", children: e.value.toLocaleString() })
|
|
147
|
+
e.value && /* @__PURE__ */ s("span", { className: "text-d-foreground font-mono font-medium tabular-nums", children: e.value.toLocaleString() })
|
|
148
148
|
]
|
|
149
149
|
}
|
|
150
150
|
)
|
|
@@ -18,7 +18,7 @@ const b = C(
|
|
|
18
18
|
variants: {
|
|
19
19
|
isUser: {
|
|
20
20
|
true: "bg-d-primary text-d-primary-foreground",
|
|
21
|
-
false: "bg-d-secondary text-foreground"
|
|
21
|
+
false: "bg-d-secondary text-d-foreground"
|
|
22
22
|
},
|
|
23
23
|
animation: {
|
|
24
24
|
none: "",
|
|
@@ -98,7 +98,7 @@ const b = C(
|
|
|
98
98
|
children: [
|
|
99
99
|
/* @__PURE__ */ l("div", { className: i(b({ isUser: t, animation: d })), children: [
|
|
100
100
|
/* @__PURE__ */ e(h, { fallback: /* @__PURE__ */ e("div", { className: "text-d-secondary-foreground", children: "Caricamento..." }), children: /* @__PURE__ */ e(x, { children: n.text }) }),
|
|
101
|
-
m ? /* @__PURE__ */ e("div", { className: "absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-d-background p-1 text-foreground opacity-0 transition-opacity group-hover/message:opacity-100", children: m }) : null
|
|
101
|
+
m ? /* @__PURE__ */ e("div", { className: "absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-d-background p-1 text-d-foreground opacity-0 transition-opacity group-hover/message:opacity-100", children: m }) : null
|
|
102
102
|
] }),
|
|
103
103
|
c && r ? /* @__PURE__ */ e(
|
|
104
104
|
"time",
|
|
@@ -151,7 +151,7 @@ const L = ({ part: s }) => {
|
|
|
151
151
|
onOpenChange: r,
|
|
152
152
|
className: "group w-full overflow-hidden rounded-lg border bg-d-secondary/50",
|
|
153
153
|
children: [
|
|
154
|
-
/* @__PURE__ */ e("div", { className: "flex items-center p-2", children: /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ l("button", { className: "flex items-center gap-2 text-sm text-d-secondary-foreground hover:text-foreground", children: [
|
|
154
|
+
/* @__PURE__ */ e("div", { className: "flex items-center p-2", children: /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ l("button", { className: "flex items-center gap-2 text-sm text-d-secondary-foreground hover:text-d-foreground", children: [
|
|
155
155
|
/* @__PURE__ */ e(B, { className: "h-4 w-4 transition-transform group-data-[state=open]:rotate-90" }),
|
|
156
156
|
/* @__PURE__ */ e("span", { children: "Thinking" })
|
|
157
157
|
] }) }) }),
|
|
@@ -239,7 +239,7 @@ function y({
|
|
|
239
239
|
] })
|
|
240
240
|
] })
|
|
241
241
|
] }),
|
|
242
|
-
/* @__PURE__ */ e("pre", { className: "overflow-x-auto whitespace-pre-wrap text-foreground", children: JSON.stringify(a.result, null, 2) })
|
|
242
|
+
/* @__PURE__ */ e("pre", { className: "overflow-x-auto whitespace-pre-wrap text-d-foreground", children: JSON.stringify(a.result, null, 2) })
|
|
243
243
|
]
|
|
244
244
|
},
|
|
245
245
|
r
|
|
@@ -97,7 +97,7 @@ function C({
|
|
|
97
97
|
{
|
|
98
98
|
"data-slot": "command-group",
|
|
99
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",
|
|
100
|
+
"text-d-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
|
|
@@ -171,7 +171,7 @@ function J({
|
|
|
171
171
|
"data-slot": "context-menu-label",
|
|
172
172
|
"data-inset": n,
|
|
173
173
|
className: a(
|
|
174
|
-
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
174
|
+
"text-d-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
175
175
|
t
|
|
176
176
|
),
|
|
177
177
|
...o
|
|
@@ -98,7 +98,7 @@ 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-d-secondary", children: /* @__PURE__ */ t(p, { className: "h-6 w-6 text-foreground" }) }),
|
|
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-d-foreground" }) }),
|
|
102
102
|
/* @__PURE__ */ t("span", { className: "w-full truncate text-d-secondary-foreground", children: e.name })
|
|
103
103
|
] }),
|
|
104
104
|
r ? /* @__PURE__ */ t(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as R, useRef as a, useState as s, useCallback as k, useMemo as y, useEffect as u } from "react";
|
|
4
|
-
import A from "../../../../../_virtual/
|
|
4
|
+
import A from "../../../../../_virtual/index5.js";
|
|
5
5
|
import B from "../../../../../_virtual/debounce.js";
|
|
6
6
|
import { GanttContext as F } from "../Gantt/GanttContext.js";
|
|
7
7
|
import { transformData as O } from "../../utils/transformData.js";
|
|
@@ -16,10 +16,10 @@ function V({
|
|
|
16
16
|
min: p = 1,
|
|
17
17
|
max: b = 4,
|
|
18
18
|
className: v,
|
|
19
|
-
buttonClassName:
|
|
19
|
+
buttonClassName: d,
|
|
20
20
|
counterClassName: y
|
|
21
21
|
}) {
|
|
22
|
-
const [e, o] = s.useState(a), [
|
|
22
|
+
const [e, o] = s.useState(a), [u, m] = s.useState(!1);
|
|
23
23
|
s.useEffect(() => {
|
|
24
24
|
o(a);
|
|
25
25
|
}, [a]);
|
|
@@ -50,7 +50,7 @@ function V({
|
|
|
50
50
|
children: /* @__PURE__ */ N(
|
|
51
51
|
l.div,
|
|
52
52
|
{
|
|
53
|
-
variants:
|
|
53
|
+
variants: u ? {
|
|
54
54
|
initial: { x: 0 },
|
|
55
55
|
vibrate: {
|
|
56
56
|
x: [0, -5, 5, -5, 5, 0],
|
|
@@ -58,7 +58,7 @@ function V({
|
|
|
58
58
|
}
|
|
59
59
|
} : void 0,
|
|
60
60
|
initial: "initial",
|
|
61
|
-
animate:
|
|
61
|
+
animate: u ? "vibrate" : "initial",
|
|
62
62
|
className: "flex items-center gap-8",
|
|
63
63
|
children: [
|
|
64
64
|
/* @__PURE__ */ i(
|
|
@@ -70,9 +70,9 @@ function V({
|
|
|
70
70
|
"h-12 w-12 rounded-full border",
|
|
71
71
|
"bg-d-background",
|
|
72
72
|
"hover:bg-d-accent hover:text-d-accent-foreground",
|
|
73
|
-
"text-foreground cursor-pointer",
|
|
73
|
+
"text-d-foreground cursor-pointer",
|
|
74
74
|
"flex items-center justify-center",
|
|
75
|
-
|
|
75
|
+
d
|
|
76
76
|
),
|
|
77
77
|
children: /* @__PURE__ */ i("span", { className: "text-2xl font-medium", children: "-" })
|
|
78
78
|
}
|
|
@@ -85,7 +85,7 @@ function V({
|
|
|
85
85
|
animate: "animate",
|
|
86
86
|
exit: "exit",
|
|
87
87
|
className: r(
|
|
88
|
-
"text-2xl font-medium text-foreground dark:text-foreground",
|
|
88
|
+
"text-2xl font-medium text-d-foreground dark:text-d-foreground",
|
|
89
89
|
y
|
|
90
90
|
),
|
|
91
91
|
children: e
|
|
@@ -101,9 +101,9 @@ function V({
|
|
|
101
101
|
"h-12 w-12 rounded-full border",
|
|
102
102
|
"bg-d-background",
|
|
103
103
|
"hover:bg-d-accent hover:text-d-accent-foreground",
|
|
104
|
-
"text-foreground cursor-pointer",
|
|
104
|
+
"text-d-foreground cursor-pointer",
|
|
105
105
|
"flex items-center justify-center",
|
|
106
|
-
|
|
106
|
+
d
|
|
107
107
|
),
|
|
108
108
|
children: /* @__PURE__ */ i("span", { className: "text-2xl font-medium", children: "+" })
|
|
109
109
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { cva as c } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
4
4
|
import { cn as f } from "../../lib/utils.js";
|
|
5
5
|
import { Label as x } from "./label.js";
|
|
6
|
-
import { Icon as
|
|
6
|
+
import { Icon as s } from "./icon.js";
|
|
7
7
|
const g = c(
|
|
8
|
-
"file:text-foreground placeholder:text-d-secondary-foreground selection:bg-d-primary selection:text-d-primary-foreground dark:bg-d-input/30 border-d-input flex w-full min-w-0 rounded-md border bg-transparent px-3 transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
8
|
+
"file:text-d-foreground placeholder:text-d-secondary-foreground selection:bg-d-primary selection:text-d-primary-foreground dark:bg-d-input/30 border-d-input flex w-full min-w-0 rounded-md border bg-transparent px-3 transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
|
@@ -23,25 +23,25 @@ function w({
|
|
|
23
23
|
className: o,
|
|
24
24
|
type: l,
|
|
25
25
|
label: r,
|
|
26
|
-
labelClassName:
|
|
27
|
-
id:
|
|
26
|
+
labelClassName: m,
|
|
27
|
+
id: p,
|
|
28
28
|
iconLeft: i,
|
|
29
29
|
iconRight: n,
|
|
30
30
|
size: t,
|
|
31
31
|
...u
|
|
32
32
|
}) {
|
|
33
|
-
const d =
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
const d = p || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
|
|
34
|
+
return /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
|
|
35
35
|
r && /* @__PURE__ */ e(
|
|
36
36
|
x,
|
|
37
37
|
{
|
|
38
38
|
htmlFor: d,
|
|
39
|
-
className:
|
|
39
|
+
className: m,
|
|
40
40
|
children: r
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
i && /* @__PURE__ */ e("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-d-secondary-foreground pointer-events-none", children: /* @__PURE__ */ e(
|
|
43
|
+
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
44
|
+
i && /* @__PURE__ */ e("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-d-secondary-foreground pointer-events-none", children: /* @__PURE__ */ e(s, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
|
|
45
45
|
/* @__PURE__ */ e(
|
|
46
46
|
"input",
|
|
47
47
|
{
|
|
@@ -50,7 +50,7 @@ function w({
|
|
|
50
50
|
"data-slot": "input",
|
|
51
51
|
className: f(
|
|
52
52
|
g({ size: t }),
|
|
53
|
-
"focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:ring-
|
|
53
|
+
"focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:ring-3",
|
|
54
54
|
"aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
|
|
55
55
|
"shadow-xs",
|
|
56
56
|
i ? t !== "lg" ? "pl-8" : "pl-10" : "",
|
|
@@ -60,7 +60,7 @@ function w({
|
|
|
60
60
|
...u
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
n && /* @__PURE__ */ e("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-d-secondary-foreground pointer-events-none", children: /* @__PURE__ */ e(
|
|
63
|
+
n && /* @__PURE__ */ e("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-d-secondary-foreground pointer-events-none", children: /* @__PURE__ */ e(s, { name: n, size: t === "lg" ? "sm" : "xs" }) })
|
|
64
64
|
] })
|
|
65
65
|
] });
|
|
66
66
|
}
|
|
@@ -25,7 +25,7 @@ function g({
|
|
|
25
25
|
align: e,
|
|
26
26
|
sideOffset: r,
|
|
27
27
|
className: p(
|
|
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-
|
|
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-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
29
29
|
o
|
|
30
30
|
),
|
|
31
31
|
...a
|