laif-ds 0.1.15 → 0.1.16

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,8 +1,5 @@
1
1
  "use client";
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);
2
+ var e = {};
6
3
  export {
7
- o as default
4
+ e as __exports
8
5
  };
@@ -1,5 +1,8 @@
1
1
  "use client";
2
- var e = {};
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
- e as __exports
7
+ o as default
5
8
  };
@@ -1,29 +1,42 @@
1
1
  "use client";
2
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
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";
5
+ function H({
6
+ navigation: c,
7
+ versions: G,
8
+ defaultVersion: j,
9
+ headerContent: l,
10
+ footerContent: t,
11
+ showRail: s = !0,
12
+ ...h
13
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, {})
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, {})
25
38
  ] });
26
39
  }
27
40
  export {
28
- C as AppSidebar
41
+ H as AppSidebar
29
42
  };
@@ -1,18 +1,19 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
- import * as Z from "react";
4
- import { useState as o, useEffect as y, useCallback as _ } from "react";
5
- import { useDebounce as V } from "../../hooks/use-debounce.js";
6
- import { cva as ee } from "../../node_modules/class-variance-authority/dist/index.js";
7
- import { cn as v } from "../../lib/utils.js";
8
- import { Button as te } from "./button.js";
9
- import { Label as se } from "./label.js";
10
- import { Command as ne, CommandInput as oe, CommandList as re, CommandEmpty as ae, CommandGroup as F, CommandItem as $ } from "./command.js";
11
- import { Popover as ie, PopoverTrigger as ce, PopoverContent as le } from "./popover.js";
12
- import de from "../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js";
13
- import me from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
14
- import fe from "../../node_modules/lucide-react/dist/esm/icons/check.js";
15
- const pe = ee(
2
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
+ import * as V from "react";
4
+ import { useState as r, useEffect as g, useCallback as F } from "react";
5
+ import { useDebounce as ee } from "../../hooks/use-debounce.js";
6
+ import { cva as te } from "../../node_modules/class-variance-authority/dist/index.js";
7
+ import { cn as D } from "../../lib/utils.js";
8
+ import { Button as se } from "./button.js";
9
+ import { Label as ne } from "./label.js";
10
+ import { Command as oe, CommandInput as re, CommandList as ae, CommandEmpty as ie, CommandGroup as M, CommandItem as $ } from "./command.js";
11
+ import { Popover as le, PopoverTrigger as ce, PopoverContent as de } from "./popover.js";
12
+ import me from "../../node_modules/lucide-react/dist/esm/icons/x.js";
13
+ import fe from "../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js";
14
+ import pe from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
15
+ import ue from "../../node_modules/lucide-react/dist/esm/icons/check.js";
16
+ const he = te(
16
17
  "justify-between",
17
18
  {
18
19
  variants: {
@@ -27,148 +28,162 @@ const pe = ee(
27
28
  }
28
29
  }
29
30
  );
30
- function Ee({
31
- fetcher: c,
31
+ function Oe({
32
+ fetcher: l,
32
33
  preload: d,
33
- filterFn: g,
34
+ filterFn: x,
34
35
  renderOption: A,
35
36
  getOptionValue: i,
36
37
  getDisplayValue: B,
37
38
  notFound: G,
38
- loadingSkeleton: M,
39
- label: l,
40
- labelClassName: R,
41
- placeholder: U = "Select...",
39
+ loadingSkeleton: R,
40
+ label: c,
41
+ labelClassName: U,
42
+ placeholder: X = "Select...",
42
43
  value: a,
43
- onChange: w,
44
- disabled: S = !1,
45
- width: b = "200px",
44
+ onChange: m,
45
+ disabled: j = !1,
46
+ width: E = "200px",
46
47
  className: q,
47
48
  triggerClassName: H,
48
49
  noResultsMessage: J,
49
- clearable: L = !0,
50
+ clearable: v = !0,
50
51
  size: K
51
52
  }) {
52
- const [m, Q] = o(!1), [z, E] = o(!1), [n, f] = o([]), [x, p] = o(!1), [N, h] = o(null), [C, O] = o(a), [T, j] = o(null), [k, W] = o(""), u = V(k, d ? 0 : 300), [D, I] = o([]);
53
- y(() => {
54
- Q(!0), O(a);
55
- }, [a]), y(() => {
56
- if (a && n.length > 0) {
57
- const s = n.find((e) => i(e) === a);
58
- s && j(s);
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(() => {
57
+ if (a && o.length > 0) {
58
+ const t = o.find((s) => i(s) === a);
59
+ t && L(t);
59
60
  }
60
- }, [a, n, i]), y(() => {
61
- m || (async () => {
61
+ }, [a, o, i]), g(() => {
62
+ f || (async () => {
62
63
  try {
63
- p(!0), h(null);
64
- const e = await c(a);
65
- I(e), f(e);
66
- } catch (e) {
67
- h(e instanceof Error ? e.message : "Failed to fetch options");
64
+ u(!0), h(null);
65
+ const s = await l(a);
66
+ P(s), p(s);
67
+ } catch (s) {
68
+ h(s instanceof Error ? s.message : "Failed to fetch options");
68
69
  } finally {
69
- p(!1);
70
+ u(!1);
70
71
  }
71
72
  })();
72
- }, [m, c, a]), y(() => {
73
- const s = async () => {
73
+ }, [f, l, a]), g(() => {
74
+ const t = async () => {
74
75
  try {
75
- p(!0), h(null);
76
- const e = await c(u);
77
- I(e), f(e);
78
- } catch (e) {
79
- h(e instanceof Error ? e.message : "Failed to fetch options");
76
+ u(!0), h(null);
77
+ const s = await l(y);
78
+ P(s), p(s);
79
+ } catch (s) {
80
+ h(s instanceof Error ? s.message : "Failed to fetch options");
80
81
  } finally {
81
- p(!1);
82
+ u(!1);
82
83
  }
83
84
  };
84
- m && d ? d && f(u ? D.filter((e) => g ? g(e, u) : !0) : D) : s();
85
- }, [c, u, m, d, g]);
86
- const X = _((s) => {
87
- const e = L && s === C ? "" : s;
88
- O(e), j(n.find((Y) => i(Y) === e) || null), w(e), E(!1);
89
- }, [C, w, L, n, i]), P = Z.useId();
90
- return /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
91
- l && /* @__PURE__ */ t(
92
- se,
85
+ f && d ? d && p(y ? k.filter((s) => x ? x(s, y) : !0) : k) : t();
86
+ }, [l, y, f, d, x]);
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);
92
+ }, [m]), I = V.useId();
93
+ return /* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
94
+ c && /* @__PURE__ */ e(
95
+ ne,
93
96
  {
94
- htmlFor: P,
95
- className: R,
96
- children: l
97
+ htmlFor: I,
98
+ className: U,
99
+ children: c
97
100
  }
98
101
  ),
99
- /* @__PURE__ */ r(ie, { open: z, onOpenChange: E, children: [
100
- /* @__PURE__ */ t(ce, { asChild: !0, children: /* @__PURE__ */ r(
101
- te,
102
+ /* @__PURE__ */ n(le, { open: O, onOpenChange: N, children: [
103
+ /* @__PURE__ */ e(ce, { asChild: !0, children: /* @__PURE__ */ e(
104
+ se,
102
105
  {
103
- id: P,
106
+ id: I,
104
107
  variant: "outline",
105
108
  role: "combobox",
106
- "aria-expanded": z,
107
- className: v(
108
- pe({ size: K }),
109
- S && "opacity-50 cursor-not-allowed",
109
+ "aria-expanded": O,
110
+ className: D(
111
+ he({ size: K }),
112
+ j && "opacity-50 cursor-not-allowed",
110
113
  H
111
114
  ),
112
- style: { width: b },
113
- disabled: S,
114
- children: [
115
- T ? B(T) : /* @__PURE__ */ t("span", { className: "text-d-secondary-foreground hover:text-d-foreground", children: U }),
116
- /* @__PURE__ */ t(de, { className: "opacity-50", size: 10 })
117
- ]
115
+ style: { width: E },
116
+ disabled: j,
117
+ 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
+ /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
120
+ v && z && /* @__PURE__ */ e(
121
+ "div",
122
+ {
123
+ className: "flex items-center justify-center rounded-full bg-d-secondary/20 hover:bg-d-secondary/30 p-1 cursor-pointer z-20 border",
124
+ onClick: Z,
125
+ onMouseDown: (t) => t.preventDefault(),
126
+ "aria-label": "Clear selection",
127
+ children: /* @__PURE__ */ e(me, { size: 12, className: "text-d-foreground" })
128
+ }
129
+ ),
130
+ /* @__PURE__ */ e(fe, { className: "opacity-50", size: 10 })
131
+ ] })
132
+ ] })
118
133
  }
119
134
  ) }),
120
- /* @__PURE__ */ t(le, { style: { width: b }, className: v("p-0", q), children: /* @__PURE__ */ r(ne, { shouldFilter: !1, children: [
121
- /* @__PURE__ */ r("div", { className: "relative border-b w-full", children: [
122
- /* @__PURE__ */ t(
123
- oe,
135
+ /* @__PURE__ */ e(de, { style: { width: E }, className: D("p-0", q), children: /* @__PURE__ */ n(oe, { shouldFilter: !1, children: [
136
+ /* @__PURE__ */ n("div", { className: "relative border-b w-full", children: [
137
+ /* @__PURE__ */ e(
138
+ re,
124
139
  {
125
- placeholder: `Search ${typeof l == "string" ? l.toLowerCase() : "options"}...`,
126
- value: k,
127
- onValueChange: (s) => {
128
- W(s);
140
+ placeholder: `Search ${typeof c == "string" ? c.toLowerCase() : "options"}...`,
141
+ value: T,
142
+ onValueChange: (t) => {
143
+ W(t);
129
144
  }
130
145
  }
131
146
  ),
132
- x && n.length > 0 && /* @__PURE__ */ t("div", { className: "absolute right-2 top-1/2 transform -translate-y-1/2 flex items-center", children: /* @__PURE__ */ t(me, { className: "h-4 w-4 animate-spin" }) })
147
+ 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" }) })
133
148
  ] }),
134
- /* @__PURE__ */ r(re, { children: [
135
- N && /* @__PURE__ */ t("div", { className: "p-4 text-d-destructive text-center", children: N }),
136
- x && n.length === 0 && (M || /* @__PURE__ */ t(he, {})),
137
- !x && !N && n.length === 0 && (G || /* @__PURE__ */ t(ae, { children: J ?? `No ${typeof l == "string" ? l.toLowerCase() : "options"} found.` })),
138
- /* @__PURE__ */ t(F, { children: n.map((s) => /* @__PURE__ */ r(
149
+ /* @__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.` })),
153
+ /* @__PURE__ */ e(M, { children: o.map((t) => /* @__PURE__ */ n(
139
154
  $,
140
155
  {
141
- value: i(s),
142
- onSelect: X,
156
+ value: i(t),
157
+ onSelect: Y,
143
158
  children: [
144
- A(s),
145
- /* @__PURE__ */ t(
146
- fe,
159
+ A(t),
160
+ /* @__PURE__ */ e(
161
+ ue,
147
162
  {
148
- className: v(
163
+ className: D(
149
164
  "ml-auto h-3 w-3",
150
- C === i(s) ? "opacity-100" : "opacity-0"
165
+ S === i(t) ? "opacity-100" : "opacity-0"
151
166
  )
152
167
  }
153
168
  )
154
169
  ]
155
170
  },
156
- i(s)
171
+ i(t)
157
172
  )) })
158
173
  ] })
159
174
  ] }) })
160
175
  ] })
161
176
  ] });
162
177
  }
163
- function he() {
164
- return /* @__PURE__ */ t(F, { children: [1, 2, 3].map((c) => /* @__PURE__ */ t($, { disabled: !0, children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2 w-full", children: [
165
- /* @__PURE__ */ t("div", { className: "h-6 w-6 rounded-full animate-pulse bg-d-secondary" }),
166
- /* @__PURE__ */ r("div", { className: "flex flex-col flex-1 gap-1", children: [
167
- /* @__PURE__ */ t("div", { className: "h-4 w-24 animate-pulse bg-d-secondary rounded" }),
168
- /* @__PURE__ */ t("div", { className: "h-3 w-16 animate-pulse bg-d-secondary rounded" })
178
+ function ye() {
179
+ 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
+ /* @__PURE__ */ e("div", { className: "h-6 w-6 rounded-full animate-pulse bg-d-secondary" }),
181
+ /* @__PURE__ */ n("div", { className: "flex flex-col flex-1 gap-1", children: [
182
+ /* @__PURE__ */ e("div", { className: "h-4 w-24 animate-pulse bg-d-secondary rounded" }),
183
+ /* @__PURE__ */ e("div", { className: "h-3 w-16 animate-pulse bg-d-secondary rounded" })
169
184
  ] })
170
- ] }) }, c)) });
185
+ ] }) }, l)) });
171
186
  }
172
187
  export {
173
- Ee as AsyncSelect
188
+ Oe as AsyncSelect
174
189
  };
@@ -1,84 +1,103 @@
1
1
  "use client";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
- import * as d from "react";
4
- import { cn as e } from "../../lib/utils.js";
5
- const n = d.createContext({ size: "default" }), s = {
6
- sm: "py-3 px-3 gap-4",
7
- default: "py-6 px-6 gap-6",
8
- lg: "py-8 px-8 gap-8"
3
+ import * as n from "react";
4
+ import { cn as o } from "../../lib/utils.js";
5
+ const s = n.createContext({ size: "default" }), d = {
6
+ sm: {
7
+ py: "py-3",
8
+ px: "px-3",
9
+ gap: "gap-4"
10
+ },
11
+ default: {
12
+ py: "py-6",
13
+ px: "px-6",
14
+ gap: "gap-6"
15
+ },
16
+ lg: {
17
+ py: "py-8",
18
+ px: "px-8",
19
+ gap: "gap-8"
20
+ },
21
+ none: {
22
+ py: "",
23
+ px: "",
24
+ gap: ""
25
+ }
9
26
  };
10
- function u({ className: a, size: t = "default", ...o }) {
11
- return /* @__PURE__ */ r(n.Provider, { value: { size: t }, children: /* @__PURE__ */ r(
27
+ function l({ className: a, size: t = "default", ...e }) {
28
+ return /* @__PURE__ */ r(s.Provider, { value: { size: t }, children: /* @__PURE__ */ r(
12
29
  "div",
13
30
  {
14
31
  "data-slot": "card",
15
- className: e(
16
- `bg-d-card text-d-card-foreground flex flex-col rounded-xl border shadow-sm ${s[t]}`,
32
+ className: o(
33
+ `bg-d-card text-d-card-foreground flex flex-col rounded-xl border shadow-sm ${d[t].py} ${d[t].gap}`,
17
34
  a
18
35
  ),
19
- ...o
36
+ ...e
20
37
  }
21
38
  ) });
22
39
  }
23
- function x({ className: a, ...t }) {
24
- const { size: o } = d.useContext(n);
40
+ function u({ className: a, ...t }) {
41
+ const { size: e } = n.useContext(s);
25
42
  return /* @__PURE__ */ r(
26
43
  "div",
27
44
  {
28
45
  "data-slot": "card-header",
29
- className: e(
30
- `@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 ${o === "sm" ? "px-3" : o === "lg" ? "px-8" : "px-6"} has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,
46
+ className: o(
47
+ `@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 ${d[e].px} has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,
31
48
  a
32
49
  ),
33
50
  ...t
34
51
  }
35
52
  );
36
53
  }
37
- function f({ className: a, ...t }) {
54
+ function x({ className: a, ...t }) {
38
55
  return /* @__PURE__ */ r(
39
56
  "div",
40
57
  {
41
58
  "data-slot": "card-title",
42
- className: e("leading-none font-semibold", a),
59
+ className: o("leading-none font-semibold", a),
43
60
  ...t
44
61
  }
45
62
  );
46
63
  }
47
- function m({ className: a, ...t }) {
64
+ function f({ className: a, ...t }) {
48
65
  return /* @__PURE__ */ r(
49
66
  "div",
50
67
  {
51
68
  "data-slot": "card-description",
52
- className: e("text-d-secondary-foreground text-sm", a),
69
+ className: o("text-d-secondary-foreground text-sm", a),
53
70
  ...t
54
71
  }
55
72
  );
56
73
  }
57
- function g({ className: a, ...t }) {
74
+ function m({ className: a, ...t }) {
75
+ const { size: e } = n.useContext(s);
58
76
  return /* @__PURE__ */ r(
59
77
  "div",
60
78
  {
61
79
  "data-slot": "card-content",
62
- className: e("px-6", a),
80
+ className: o(d[e].px, a),
63
81
  ...t
64
82
  }
65
83
  );
66
84
  }
67
- function C({ className: a, ...t }) {
85
+ function g({ className: a, ...t }) {
86
+ const { size: e } = n.useContext(s);
68
87
  return /* @__PURE__ */ r(
69
88
  "div",
70
89
  {
71
90
  "data-slot": "card-footer",
72
- className: e("flex items-center px-6 [.border-t]:pt-6", a),
91
+ className: o(`flex items-center ${d[e].px} [.border-t]:pt-6`, a),
73
92
  ...t
74
93
  }
75
94
  );
76
95
  }
77
96
  export {
78
- u as Card,
79
- g as CardContent,
80
- m as CardDescription,
81
- C as CardFooter,
82
- x as CardHeader,
83
- f as CardTitle
97
+ l as Card,
98
+ m as CardContent,
99
+ f as CardDescription,
100
+ g as CardFooter,
101
+ u as CardHeader,
102
+ x as CardTitle
84
103
  };
@@ -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/index5.js";
4
+ import A from "../../../../../_virtual/index6.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";