laif-ds 0.1.17 → 0.1.19

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.
@@ -1,5 +1,8 @@
1
1
  "use client";
2
- var e = { exports: {} };
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);
3
6
  export {
4
- e as __module
7
+ a as default
5
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
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);
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);
6
6
  export {
7
- a as default
7
+ x as default
8
8
  };
@@ -1,8 +1,5 @@
1
1
  "use client";
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);
2
+ var e = { exports: {} };
6
3
  export {
7
- x as default
4
+ e as __module
8
5
  };
@@ -1,40 +1,68 @@
1
1
  "use client";
2
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
- import { Sidebar as o, SidebarHeader as u, SidebarContent as S, SidebarGroup as b, SidebarGroupLabel as p, SidebarGroupContent as m, SidebarMenu as f, SidebarMenuItem as x, SidebarMenuButton as M, SidebarMenuSub as N, SidebarMenuSubItem as v, SidebarMenuSubButton as A, SidebarRail as C } from "./sidebar.js";
4
- import { Icon as d } from "./icon.js";
2
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
3
+ import * as f from "react";
4
+ import { Sidebar as x, SidebarHeader as v, SidebarContent as N, SidebarGroup as C, SidebarGroupLabel as M, SidebarGroupContent as A, SidebarMenu as I, SidebarMenuItem as g, SidebarMenuButton as w, SidebarMenuSub as j, SidebarMenuSubItem as G, SidebarMenuSubButton as R, SidebarRail as k } from "./sidebar.js";
5
+ import { Icon as t } from "./icon.js";
5
6
  function H({
6
- navigation: c,
7
- versions: G,
8
- defaultVersion: j,
9
- headerContent: l,
10
- footerContent: t,
11
- showRail: s = !0,
12
- ...h
7
+ navigation: o,
8
+ versions: z,
9
+ defaultVersion: B,
10
+ headerContent: s,
11
+ footerContent: h,
12
+ showRail: u = !0,
13
+ ...m
13
14
  }) {
14
- return /* @__PURE__ */ n(o, { ...h, children: [
15
- l && /* @__PURE__ */ e(u, { children: l }),
16
- /* @__PURE__ */ e(S, { children: c.map((a) => /* @__PURE__ */ n(b, { children: [
17
- /* @__PURE__ */ e(p, { children: a.title }),
18
- /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(f, { children: a.items.map((i) => /* @__PURE__ */ n(x, { children: [
19
- /* @__PURE__ */ e(M, { asChild: !0, isActive: i.isActive, children: /* @__PURE__ */ n("a", { href: i.url, className: "flex items-center gap-2", children: [
20
- i.iconName && /* @__PURE__ */ e(d, { name: i.iconName, size: "sm" }),
21
- /* @__PURE__ */ e("span", { children: i.title })
22
- ] }) }),
23
- i.subItems && i.subItems.length > 0 && /* @__PURE__ */ e(N, { children: i.subItems.map((r) => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
24
- A,
25
- {
26
- asChild: !0,
27
- isActive: r.isActive,
28
- children: /* @__PURE__ */ n("a", { href: r.url, className: "flex items-center gap-2", children: [
29
- r.iconName && /* @__PURE__ */ e(d, { name: r.iconName, size: "xs" }),
30
- /* @__PURE__ */ e("span", { children: r.title })
31
- ] })
32
- }
33
- ) }, r.title)) })
34
- ] }, i.title)) }) })
35
- ] }, a.title)) }),
36
- t,
37
- s && /* @__PURE__ */ e(C, {})
15
+ const [p, S] = f.useState({});
16
+ return /* @__PURE__ */ r(x, { ...m, children: [
17
+ s && /* @__PURE__ */ e(v, { children: s }),
18
+ /* @__PURE__ */ e(N, { children: o.map((l) => /* @__PURE__ */ r(C, { children: [
19
+ /* @__PURE__ */ e(M, { children: l.title }),
20
+ /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(I, { children: l.items.map((i) => {
21
+ const a = i.subItems && i.subItems.length > 0, d = p[i.title] || !1, b = (n) => {
22
+ a && (n.preventDefault(), S((c) => ({
23
+ ...c,
24
+ [i.title]: !c[i.title]
25
+ })));
26
+ };
27
+ return /* @__PURE__ */ r(g, { children: [
28
+ /* @__PURE__ */ e(
29
+ w,
30
+ {
31
+ asChild: !0,
32
+ isActive: i.isActive,
33
+ children: /* @__PURE__ */ r(
34
+ "a",
35
+ {
36
+ href: a ? "#" : i.url,
37
+ className: "flex items-center justify-between gap-2",
38
+ onClick: a ? b : void 0,
39
+ children: [
40
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
41
+ i.iconName && /* @__PURE__ */ e(t, { name: i.iconName, size: "sm" }),
42
+ /* @__PURE__ */ e("span", { children: i.title })
43
+ ] }),
44
+ a && /* @__PURE__ */ e("div", { className: "text-muted-foreground", children: d ? /* @__PURE__ */ e(t, { name: "ChevronDown", className: "h-4 w-4" }) : /* @__PURE__ */ e(t, { name: "ChevronRight", className: "h-4 w-4" }) })
45
+ ]
46
+ }
47
+ )
48
+ }
49
+ ),
50
+ a && d && /* @__PURE__ */ e(j, { children: i.subItems.map((n) => /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
51
+ R,
52
+ {
53
+ asChild: !0,
54
+ isActive: n.isActive,
55
+ children: /* @__PURE__ */ r("a", { href: n.url, className: "flex items-center gap-2", children: [
56
+ n.iconName && /* @__PURE__ */ e(t, { name: n.iconName, size: "xs" }),
57
+ /* @__PURE__ */ e("span", { children: n.title })
58
+ ] })
59
+ }
60
+ ) }, n.title)) })
61
+ ] }, i.title);
62
+ }) }) })
63
+ ] }, l.title)) }),
64
+ h,
65
+ u && /* @__PURE__ */ e(k, {})
38
66
  ] });
39
67
  }
40
68
  export {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
3
  import * as V from "react";
4
- import { useState as r, useEffect as g, useCallback as F } from "react";
4
+ import { useState as r, useEffect as y, useCallback as F } from "react";
5
5
  import { useDebounce as ee } from "../../hooks/use-debounce.js";
6
6
  import { cva as te } from "../../node_modules/class-variance-authority/dist/index.js";
7
7
  import { cn as D } from "../../lib/utils.js";
@@ -14,13 +14,13 @@ import fe from "../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.
14
14
  import pe from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
15
15
  import ue from "../../node_modules/lucide-react/dist/esm/icons/check.js";
16
16
  const he = te(
17
- "justify-between",
17
+ "flex items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
18
18
  {
19
19
  variants: {
20
20
  size: {
21
21
  default: "h-9 text-sm",
22
22
  sm: "h-8 text-xs",
23
- lg: "h-10 text-lg font-normal"
23
+ lg: "h-10 text-lg"
24
24
  }
25
25
  },
26
26
  defaultVariants: {
@@ -28,7 +28,7 @@ const he = te(
28
28
  }
29
29
  }
30
30
  );
31
- function Oe({
31
+ function Ee({
32
32
  fetcher: l,
33
33
  preload: d,
34
34
  filterFn: x,
@@ -43,22 +43,22 @@ function Oe({
43
43
  value: a,
44
44
  onChange: m,
45
45
  disabled: j = !1,
46
- width: E = "200px",
46
+ width: k = "200px",
47
47
  className: q,
48
48
  triggerClassName: H,
49
49
  noResultsMessage: J,
50
50
  clearable: v = !0,
51
51
  size: K
52
52
  }) {
53
- const [f, Q] = r(!1), [O, N] = r(!1), [o, p] = r([]), [w, u] = r(!1), [C, h] = r(null), [S, b] = r(a), [z, L] = r(null), [T, W] = r(""), y = ee(T, d ? 0 : 300), [k, P] = r([]);
54
- g(() => {
55
- Q(!0), b(a);
56
- }, [a]), g(() => {
53
+ const [f, Q] = r(!1), [E, N] = r(!1), [o, p] = r([]), [w, u] = r(!1), [b, h] = r(null), [C, S] = r(a), [z, L] = r(null), [O, W] = r(""), g = ee(O, d ? 0 : 300), [T, P] = r([]);
54
+ y(() => {
55
+ Q(!0), S(a);
56
+ }, [a]), y(() => {
57
57
  if (a && o.length > 0) {
58
58
  const t = o.find((s) => i(s) === a);
59
59
  t && L(t);
60
60
  }
61
- }, [a, o, i]), g(() => {
61
+ }, [a, o, i]), y(() => {
62
62
  f || (async () => {
63
63
  try {
64
64
  u(!0), h(null);
@@ -70,11 +70,11 @@ function Oe({
70
70
  u(!1);
71
71
  }
72
72
  })();
73
- }, [f, l, a]), g(() => {
73
+ }, [f, l, a]), y(() => {
74
74
  const t = async () => {
75
75
  try {
76
76
  u(!0), h(null);
77
- const s = await l(y);
77
+ const s = await l(g);
78
78
  P(s), p(s);
79
79
  } catch (s) {
80
80
  h(s instanceof Error ? s.message : "Failed to fetch options");
@@ -82,13 +82,13 @@ function Oe({
82
82
  u(!1);
83
83
  }
84
84
  };
85
- f && d ? d && p(y ? k.filter((s) => x ? x(s, y) : !0) : k) : t();
86
- }, [l, y, f, d, x]);
85
+ f && d ? d && p(g ? T.filter((s) => x ? x(s, g) : !0) : T) : t();
86
+ }, [l, g, f, d, x]);
87
87
  const Y = F((t) => {
88
- const s = v && t === S ? "" : t;
89
- b(s), L(o.find((_) => i(_) === s) || null), m(s), N(!1);
90
- }, [S, m, v, o, i]), Z = F((t) => {
91
- t.stopPropagation(), t.preventDefault(), b(""), L(null), m(""), N(!1);
88
+ const s = v && t === C ? "" : t;
89
+ S(s), L(o.find((_) => i(_) === s) || null), m(s), N(!1);
90
+ }, [C, m, v, o, i]), Z = F((t) => {
91
+ t.stopPropagation(), t.preventDefault(), S(""), L(null), m(""), N(!1);
92
92
  }, [m]), I = V.useId();
93
93
  return /* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
94
94
  c && /* @__PURE__ */ e(
@@ -99,23 +99,24 @@ function Oe({
99
99
  children: c
100
100
  }
101
101
  ),
102
- /* @__PURE__ */ n(le, { open: O, onOpenChange: N, children: [
102
+ /* @__PURE__ */ n(le, { open: E, onOpenChange: N, children: [
103
103
  /* @__PURE__ */ e(ce, { asChild: !0, children: /* @__PURE__ */ e(
104
104
  se,
105
105
  {
106
106
  id: I,
107
- variant: "outline",
107
+ variant: "ghost",
108
108
  role: "combobox",
109
- "aria-expanded": O,
109
+ "aria-expanded": E,
110
110
  className: D(
111
111
  he({ size: K }),
112
112
  j && "opacity-50 cursor-not-allowed",
113
- H
113
+ H,
114
+ "font-normal"
114
115
  ),
115
- style: { width: E },
116
+ style: { width: k },
116
117
  disabled: j,
117
118
  children: /* @__PURE__ */ n("div", { className: "flex-1 flex items-center justify-between overflow-hidden", children: [
118
- z ? /* @__PURE__ */ e("div", { className: "truncate", children: B(z) }) : /* @__PURE__ */ e("span", { className: "text-d-secondary-foreground hover:text-d-foreground", children: X }),
119
+ z ? /* @__PURE__ */ e("div", { className: "truncate", children: B(z) }) : /* @__PURE__ */ e("span", { className: "text-d-muted-foreground hover:text-d-foreground", children: X }),
119
120
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
120
121
  v && z && /* @__PURE__ */ e(
121
122
  "div",
@@ -124,7 +125,7 @@ function Oe({
124
125
  onClick: Z,
125
126
  onMouseDown: (t) => t.preventDefault(),
126
127
  "aria-label": "Clear selection",
127
- children: /* @__PURE__ */ e(me, { size: 12, className: "text-d-foreground" })
128
+ children: /* @__PURE__ */ e(me, { size: 8, className: "text-d-foreground" })
128
129
  }
129
130
  ),
130
131
  /* @__PURE__ */ e(fe, { className: "opacity-50", size: 10 })
@@ -132,13 +133,13 @@ function Oe({
132
133
  ] })
133
134
  }
134
135
  ) }),
135
- /* @__PURE__ */ e(de, { style: { width: E }, className: D("p-0", q), children: /* @__PURE__ */ n(oe, { shouldFilter: !1, children: [
136
+ /* @__PURE__ */ e(de, { style: { width: k }, className: D("p-0", q), children: /* @__PURE__ */ n(oe, { shouldFilter: !1, children: [
136
137
  /* @__PURE__ */ n("div", { className: "relative border-b w-full", children: [
137
138
  /* @__PURE__ */ e(
138
139
  re,
139
140
  {
140
141
  placeholder: `Search ${typeof c == "string" ? c.toLowerCase() : "options"}...`,
141
- value: T,
142
+ value: O,
142
143
  onValueChange: (t) => {
143
144
  W(t);
144
145
  }
@@ -147,9 +148,9 @@ function Oe({
147
148
  w && o.length > 0 && /* @__PURE__ */ e("div", { className: "absolute right-2 top-1/2 transform -translate-y-1/2 flex items-center", children: /* @__PURE__ */ e(pe, { className: "h-4 w-4 animate-spin" }) })
148
149
  ] }),
149
150
  /* @__PURE__ */ n(ae, { children: [
150
- C && /* @__PURE__ */ e("div", { className: "p-3 text-d-destructive text-center", children: C }),
151
- w && o.length === 0 && (R || /* @__PURE__ */ e(ye, {})),
152
- !w && !C && o.length === 0 && (G || /* @__PURE__ */ e(ie, { children: J ?? `No ${typeof c == "string" ? c.toLowerCase() : "options"} found.` })),
151
+ b && /* @__PURE__ */ e("div", { className: "p-3 text-d-destructive text-center", children: b }),
152
+ w && o.length === 0 && (R || /* @__PURE__ */ e(ge, {})),
153
+ !w && !b && o.length === 0 && (G || /* @__PURE__ */ e(ie, { children: J ?? `No ${typeof c == "string" ? c.toLowerCase() : "options"} found.` })),
153
154
  /* @__PURE__ */ e(M, { children: o.map((t) => /* @__PURE__ */ n(
154
155
  $,
155
156
  {
@@ -162,7 +163,7 @@ function Oe({
162
163
  {
163
164
  className: D(
164
165
  "ml-auto h-3 w-3",
165
- S === i(t) ? "opacity-100" : "opacity-0"
166
+ C === i(t) ? "opacity-100" : "opacity-0"
166
167
  )
167
168
  }
168
169
  )
@@ -175,7 +176,7 @@ function Oe({
175
176
  ] })
176
177
  ] });
177
178
  }
178
- function ye() {
179
+ function ge() {
179
180
  return /* @__PURE__ */ e(M, { children: [1, 2, 3].map((l) => /* @__PURE__ */ e($, { disabled: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2 w-full", children: [
180
181
  /* @__PURE__ */ e("div", { className: "h-6 w-6 rounded-full animate-pulse bg-d-secondary" }),
181
182
  /* @__PURE__ */ n("div", { className: "flex flex-col flex-1 gap-1", children: [
@@ -185,5 +186,5 @@ function ye() {
185
186
  ] }) }, l)) });
186
187
  }
187
188
  export {
188
- Oe as AsyncSelect
189
+ Ee as AsyncSelect
189
190
  };
@@ -15,7 +15,7 @@ function h({
15
15
  l,
16
16
  {
17
17
  showOutsideDays: i,
18
- className: e("p-3", n),
18
+ className: e("p-3 font-normal", n),
19
19
  classNames: {
20
20
  months: "flex flex-col sm:flex-row gap-2",
21
21
  month: "flex flex-col gap-4",
@@ -1,59 +1,59 @@
1
1
  "use client";
2
- import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
+ import { jsxs as u, jsx as e } from "react/jsx-runtime";
3
3
  import * as c from "react";
4
- import { cn as x } from "../../lib/utils.js";
4
+ import { cn as g } from "../../lib/utils.js";
5
5
  import { Button as h } from "./button.js";
6
- import { Calendar as P } from "./calendar.js";
7
- import { Popover as g, PopoverTrigger as C, PopoverContent as j } from "./popover.js";
8
- import { formatDate as v } from "../../node_modules/date-fns/format.js";
9
- function B({
6
+ import { Calendar as x } from "./calendar.js";
7
+ import { Popover as P, PopoverTrigger as w, PopoverContent as y } from "./popover.js";
8
+ import { formatDate as b } from "../../node_modules/date-fns/format.js";
9
+ function N({
10
10
  value: r,
11
- onChange: n,
11
+ onChange: a,
12
12
  placeholder: l = "Seleziona data",
13
- dateFormat: f = "PPP",
14
- className: m,
15
- buttonVariant: p = "outline",
16
- disabled: e = !1,
17
- size: a = "default"
13
+ dateFormat: d = "PPP",
14
+ className: f,
15
+ buttonVariant: m = "outline",
16
+ disabled: t = !1,
17
+ size: n = "default"
18
18
  }) {
19
19
  const [o, i] = c.useState(r);
20
20
  c.useEffect(() => {
21
21
  i(r);
22
22
  }, [r]);
23
- const d = (s) => {
24
- i(s), n && n(s);
23
+ const p = (s) => {
24
+ i(s), a && a(s);
25
25
  };
26
- return /* @__PURE__ */ u(g, { open: e ? !1 : void 0, children: [
27
- /* @__PURE__ */ t(C, { asChild: !0, children: /* @__PURE__ */ t(
26
+ return /* @__PURE__ */ u(P, { open: t ? !1 : void 0, children: [
27
+ /* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(
28
28
  h,
29
29
  {
30
- variant: p,
31
- size: a,
32
- className: x(
33
- "justify-start text-left font-normal",
30
+ variant: m,
31
+ size: n,
32
+ className: g(
33
+ "flex items-center justify-between whitespace-nowrap border border-d-input bg-d-transparent px-3 py-2 shadow-sm ring-offset-background data-[placeholder]:text-d-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 font-normal",
34
34
  !o && "text-d-secondary-foreground",
35
- e && "opacity-50 cursor-not-allowed",
36
- m,
37
- a === "sm" && "text-xs",
38
- a === "lg" && "text-lg"
35
+ t && "opacity-50 cursor-not-allowed",
36
+ f,
37
+ n === "sm" && "text-xs",
38
+ n === "lg" && "text-lg"
39
39
  ),
40
- disabled: e,
40
+ disabled: t,
41
41
  iconLeft: "Calendar",
42
- children: o ? v(o, f) : /* @__PURE__ */ t("span", { children: l })
42
+ children: o ? b(o, d) : /* @__PURE__ */ e("span", { children: l })
43
43
  }
44
44
  ) }),
45
- /* @__PURE__ */ t(j, { className: "w-auto p-0", children: /* @__PURE__ */ t(
46
- P,
45
+ /* @__PURE__ */ e(y, { className: "w-auto p-0", children: /* @__PURE__ */ e(
46
+ x,
47
47
  {
48
48
  mode: "single",
49
49
  selected: o,
50
- onSelect: d,
50
+ onSelect: p,
51
51
  initialFocus: !0,
52
- disabled: e
52
+ disabled: t
53
53
  }
54
54
  ) })
55
55
  ] });
56
56
  }
57
57
  export {
58
- B as DatePicker
58
+ N as DatePicker
59
59
  };
@@ -1,11 +1,12 @@
1
1
  "use client";
2
2
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
3
- import { cva as c } from "../../node_modules/class-variance-authority/dist/index.js";
4
- import { cn as f } from "../../lib/utils.js";
5
- import { Label as x } from "./label.js";
6
- import { Icon as s } from "./icon.js";
7
- const g = c(
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",
3
+ import * as c from "react";
4
+ import { cva as x } from "../../node_modules/class-variance-authority/dist/index.js";
5
+ import { cn as g } from "../../lib/utils.js";
6
+ import { Label as v } from "./label.js";
7
+ import { Icon as d } from "./icon.js";
8
+ const b = x(
9
+ "file:text-d-foreground placeholder:text-d-muted-foreground selection:bg-d-primary selection:text-d-primary-foreground border-d-input flex w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
9
10
  {
10
11
  variants: {
11
12
  size: {
@@ -18,53 +19,54 @@ const g = c(
18
19
  size: "default"
19
20
  }
20
21
  }
21
- );
22
- function w({
22
+ ), h = c.forwardRef(({
23
23
  className: o,
24
24
  type: l,
25
25
  label: r,
26
26
  labelClassName: m,
27
27
  id: p,
28
28
  iconLeft: i,
29
- iconRight: n,
29
+ iconRight: s,
30
30
  size: t,
31
31
  ...u
32
- }) {
33
- const d = p || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
32
+ }, f) => {
33
+ const n = p || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
34
34
  return /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
35
35
  r && /* @__PURE__ */ e(
36
- x,
36
+ v,
37
37
  {
38
- htmlFor: d,
38
+ htmlFor: n,
39
39
  className: m,
40
40
  children: r
41
41
  }
42
42
  ),
43
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" }) }),
44
+ i && /* @__PURE__ */ e("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-d-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(d, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
45
45
  /* @__PURE__ */ e(
46
46
  "input",
47
47
  {
48
- id: d,
48
+ id: n,
49
49
  type: l,
50
50
  "data-slot": "input",
51
- className: f(
52
- g({ size: t }),
53
- "focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:ring-3",
51
+ className: g(
52
+ b({ size: t }),
53
+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
54
54
  "aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
55
- "shadow-xs",
56
- i ? t !== "lg" ? "pl-8" : "pl-10" : "",
57
- n ? t !== "lg" ? "pr-8" : "pr-10" : "",
55
+ "shadow-sm",
56
+ i ? t !== "lg" ? "pl-9" : "pl-10" : "",
57
+ s ? t !== "lg" ? "pr-9" : "pr-10" : "",
58
58
  o
59
59
  ),
60
+ ref: f,
60
61
  ...u
61
62
  }
62
63
  ),
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
+ s && /* @__PURE__ */ e("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-d-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(d, { name: s, size: t === "lg" ? "sm" : "xs" }) })
64
65
  ] })
65
66
  ] });
66
- }
67
+ });
68
+ h.displayName = "Input";
67
69
  export {
68
- w as Input,
69
- g as inputVariants
70
+ h as Input,
71
+ b as inputVariants
70
72
  };