laif-ds 0.1.61 → 0.1.62

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,3 +1,8 @@
1
1
  "use client";
2
- import { __require as e } from "../node_modules/react-is/index.js";
3
- e();
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
+ export {
7
+ x as default
8
+ };
@@ -1,5 +1,3 @@
1
1
  "use client";
2
- var e = { exports: {} };
3
- export {
4
- e as __module
5
- };
2
+ import { __require as e } from "../node_modules/react-is/index.js";
3
+ e();
@@ -1,8 +1,5 @@
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
+ var e = { exports: {} };
6
3
  export {
7
- a as default
4
+ e as __module
8
5
  };
@@ -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,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
  }
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
3
3
  import { ok as u } from "../../devlop/lib/default.js";
4
4
  import { svg as m, html as C } from "../../property-information/index.js";
5
5
  import { stringify as N } from "../../space-separated-tokens/index.js";
6
- import S from "../../../_virtual/index5.js";
6
+ import S from "../../../_virtual/index2.js";
7
7
  import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
8
8
  import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
9
9
  import { VFileMessage as h } from "../../vfile-message/lib/index.js";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __module as e } from "../../_virtual/index4.js";
2
+ import { __module as e } from "../../_virtual/index6.js";
3
3
  import { __require as t } from "./cjs/react-is.production.min.js";
4
4
  import { __require as o } from "./cjs/react-is.development.js";
5
5
  var r;
@@ -5,7 +5,7 @@ import "../../../../_virtual/isString.js";
5
5
  import f from "../../../../_virtual/isFunction.js";
6
6
  import s from "../../../../_virtual/isObject.js";
7
7
  import { isValidElement as d } from "react";
8
- import "../../../../_virtual/index3.js";
8
+ import "../../../../_virtual/index4.js";
9
9
  import { SVGElementPropKeys as m, EventKeys as p, FilteredElementKeyMap as o } from "./types.js";
10
10
  var h = function(i) {
11
11
  return typeof i == "string" ? i : i ? i.displayName || i.name || "Component" : "";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { bail as P } from "../../bail/index.js";
3
- import y from "../../../_virtual/index6.js";
3
+ import y from "../../../_virtual/index3.js";
4
4
  import z from "../../is-plain-obj/index.js";
5
5
  import { CallableInstance as C } from "./callable-instance.js";
6
6
  import { trough as A } from "../../trough/lib/index.js";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __module as e } from "../../../_virtual/index2.js";
2
+ import { __module as e } from "../../../_virtual/index5.js";
3
3
  import { __require as i } from "../cjs/use-sync-external-store-shim.production.js";
4
4
  import { __require as o } from "../cjs/use-sync-external-store-shim.development.js";
5
5
  var r;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "laif-ds",
3
3
  "private": false,
4
- "version": "0.1.61",
4
+ "version": "0.1.62",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",