laif-ds 0.1.61 → 0.1.63

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 = {};
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,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,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/index8.js";
4
+ import A from "../../../../../_virtual/index7.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";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
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";
3
+ import * as x from "react";
4
+ import { cva as g } from "../../node_modules/class-variance-authority/dist/index.js";
5
+ import { cn as d } from "../../lib/utils.js";
6
6
  import { Label as v } from "./label.js";
7
- import { Icon as d } from "./icon.js";
8
- const b = x(
7
+ import { Icon as l } from "./icon.js";
8
+ const b = g(
9
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",
10
10
  {
11
11
  variants: {
@@ -19,43 +19,42 @@ const b = x(
19
19
  size: "default"
20
20
  }
21
21
  }
22
- ), h = c.forwardRef(
22
+ ), h = x.forwardRef(
23
23
  ({
24
24
  className: o,
25
- type: l,
25
+ type: m,
26
26
  label: r,
27
- labelClassName: m,
27
+ labelClassName: u,
28
28
  id: p,
29
29
  iconLeft: i,
30
30
  iconRight: s,
31
31
  size: t,
32
- ...u
33
- }, f) => {
32
+ ...f
33
+ }, c) => {
34
34
  const n = p || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
35
- return /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
36
- r && /* @__PURE__ */ e(v, { htmlFor: n, className: m, children: r }),
37
- /* @__PURE__ */ a("div", { className: "relative", children: [
38
- i && /* @__PURE__ */ e("div", { className: "text-d-muted-foreground pointer-events-none absolute top-1/2 left-3 -translate-y-1/2", children: /* @__PURE__ */ e(d, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
35
+ return /* @__PURE__ */ a("div", { className: d("space-y-1.5", o), children: [
36
+ r && /* @__PURE__ */ e(v, { htmlFor: n, className: u, children: r }),
37
+ /* @__PURE__ */ a("div", { className: "relative w-full", children: [
38
+ i && /* @__PURE__ */ e("div", { className: "text-d-muted-foreground pointer-events-none absolute top-1/2 left-3 -translate-y-1/2", children: /* @__PURE__ */ e(l, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
39
39
  /* @__PURE__ */ e(
40
40
  "input",
41
41
  {
42
42
  id: n,
43
- type: l,
43
+ type: m,
44
44
  "data-slot": "input",
45
- className: g(
45
+ className: d(
46
46
  b({ size: t }),
47
47
  "focus-visible:ring-ring focus-visible:ring-1 focus-visible:outline-none",
48
48
  "aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
49
49
  "shadow-sm",
50
50
  i ? t !== "lg" ? "pl-9" : "pl-10" : "",
51
- s ? t !== "lg" ? "pr-9" : "pr-10" : "",
52
- o
51
+ s ? t !== "lg" ? "pr-9" : "pr-10" : ""
53
52
  ),
54
- ref: f,
55
- ...u
53
+ ref: c,
54
+ ...f
56
55
  }
57
56
  ),
58
- s && /* @__PURE__ */ e("div", { className: "text-d-muted-foreground pointer-events-none absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ e(d, { name: s, size: t === "lg" ? "sm" : "xs" }) })
57
+ s && /* @__PURE__ */ e("div", { className: "text-d-muted-foreground pointer-events-none absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ e(l, { name: s, size: t === "lg" ? "sm" : "xs" }) })
59
58
  ] })
60
59
  ] });
61
60
  }