laif-ds 0.2.55 → 0.2.56

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.
@@ -3,10 +3,10 @@ import { jsx as t, jsxs as l } from "react/jsx-runtime";
3
3
  import { Root as g } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
4
4
  import { cva as f } from "../../node_modules/class-variance-authority/dist/index.js";
5
5
  import { designTokens as r } from "../../lib/design-tokens.js";
6
- import { cn as s } from "../../lib/utils.js";
7
- import { Icon as v } from "./icon.js";
8
- const m = f(
9
- s(
6
+ import { cn as d } from "../../lib/utils.js";
7
+ import { Icon as h } from "./icon.js";
8
+ const v = f(
9
+ d(
10
10
  r.text.base,
11
11
  r.radius.default,
12
12
  r.focusRing,
@@ -43,32 +43,32 @@ const m = f(
43
43
  }
44
44
  );
45
45
  function N({
46
- className: d,
47
- variant: a,
46
+ className: a,
47
+ variant: o,
48
48
  size: e,
49
49
  asChild: n = !1,
50
50
  iconLeft: i,
51
51
  iconRight: c,
52
- isLoading: h = !1,
53
- ...o
52
+ isLoading: m = !1,
53
+ ...s
54
54
  }) {
55
55
  const u = n ? g : "button";
56
56
  return n ? /* @__PURE__ */ t(
57
57
  u,
58
58
  {
59
59
  "data-slot": "button",
60
- className: s(m({ variant: a, size: e, className: d })),
61
- ...o
60
+ className: d(v({ variant: o, size: e, className: a })),
61
+ ...s
62
62
  }
63
63
  ) : /* @__PURE__ */ l(
64
64
  u,
65
65
  {
66
66
  "data-slot": "button",
67
- className: s("relative", m({ variant: a, size: e, className: d })),
68
- ...o,
67
+ className: d("relative", v({ variant: o, size: e, className: a })),
68
+ ...s,
69
69
  children: [
70
- /* @__PURE__ */ t("span", { className: "absolute inset-0 overflow-hidden rounded-[inherit] pointer-events-none", children: /* @__PURE__ */ t("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700 ease-out" }) }),
71
- h ? /* @__PURE__ */ l(
70
+ o !== "ghost" && o !== "ghost-destructive" && o !== "ghost-accent" && o !== "link" && /* @__PURE__ */ t("span", { className: "absolute inset-0 overflow-hidden rounded-[inherit] pointer-events-none", children: /* @__PURE__ */ t("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700 ease-out" }) }),
71
+ m ? /* @__PURE__ */ l(
72
72
  "svg",
73
73
  {
74
74
  className: "mr-1 -ml-1 animate-spin",
@@ -100,15 +100,15 @@ function N({
100
100
  ]
101
101
  }
102
102
  ) : i && /* @__PURE__ */ t(
103
- v,
103
+ h,
104
104
  {
105
105
  name: i,
106
106
  size: e === "default" ? "md" : e === "sm" ? "xs" : "sm"
107
107
  }
108
108
  ),
109
- o.children,
109
+ s.children,
110
110
  c && /* @__PURE__ */ t(
111
- v,
111
+ h,
112
112
  {
113
113
  name: c,
114
114
  size: e === "default" ? "md" : e === "sm" ? "xs" : "sm"
@@ -120,5 +120,5 @@ function N({
120
120
  }
121
121
  export {
122
122
  N as Button,
123
- m as buttonVariants
123
+ v as buttonVariants
124
124
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "laif-ds",
3
3
  "private": false,
4
- "version": "0.2.55",
4
+ "version": "0.2.56",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",