@versini/ui-button 4.0.0 → 4.0.2

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.
@@ -6,14 +6,14 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
6
6
  labelLeft: c,
7
7
  align: i
8
8
  }) => {
9
- const o = "max-h-8 py-0 px-2", g = "max-h-9 py-1 px-3", n = "max-h-12 py-2 px-4";
9
+ const s = "max-h-8 py-0 px-2", n = "max-h-9 py-1 px-3", g = "max-h-12 py-2 px-4";
10
10
  switch (t) {
11
11
  case y:
12
12
  case d:
13
13
  return a({
14
- [o]: e === "small",
15
- [g]: e === "medium",
16
- [n]: e === "large"
14
+ [s]: e === "small",
15
+ [n]: e === "medium",
16
+ [g]: e === "large"
17
17
  });
18
18
  case b:
19
19
  return a("inline-flex items-center", {
@@ -34,21 +34,21 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
34
34
  labelRight: r,
35
35
  labelLeft: c
36
36
  }) => {
37
- const i = "text-sm font-medium", o = "text-base font-medium", g = "text-lg font-medium";
37
+ const i = "text-sm font-medium", s = "text-base font-medium", n = "text-lg font-medium";
38
38
  switch (t) {
39
39
  case y:
40
40
  case d:
41
41
  return a({
42
42
  "text-center": t === d,
43
43
  [i]: e === "small",
44
- [o]: e === "medium",
45
- [g]: e === "large"
44
+ [s]: e === "medium",
45
+ [n]: e === "large"
46
46
  });
47
47
  case b:
48
48
  return a({
49
49
  [i]: e === "small" && (r || c),
50
- [o]: e === "medium" && (r || c),
51
- [g]: e === "large" && (r || c)
50
+ [s]: e === "medium" && (r || c),
51
+ [n]: e === "large" && (r || c)
52
52
  });
53
53
  }
54
54
  }, B = ({
@@ -62,34 +62,30 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
62
62
  if (c === "primary")
63
63
  return a("not-prose", {
64
64
  truncate: !r,
65
- "text-copy-light": t === "dark",
66
- "text-copy-lighter": t === "light",
67
- "text-copy-light dark:text-copy-lighter": t === "system",
68
- "text-copy-lighter dark:text-copy-light": t === "alt-system"
65
+ "text-copy-light": t === "dark" || t === "system",
66
+ "text-copy-lighter": t === "light" || t === "alt-system",
67
+ "dark:text-copy-lighter": t === "system",
68
+ "dark:text-copy-light": t === "alt-system"
69
69
  });
70
70
  if (c === "secondary")
71
71
  return a("not-prose", {
72
72
  truncate: !r,
73
- "text-copy-light": t === "light",
74
- "text-copy-lighter": t === "dark",
75
- "text-copy-light dark:text-copy-lighter": t === "alt-system",
76
- "text-copy-lighter dark:text-copy-light": t === "system"
73
+ "text-copy-light": t === "light" || t === "system",
74
+ "text-copy-lighter": t === "dark" || t === "alt-system",
75
+ "dark:text-copy-lighter": t === "alt-system",
76
+ "dark:text-copy-light": t === "system"
77
77
  });
78
78
  if (c === "danger")
79
79
  return a("not-prose", {
80
80
  truncate: !r,
81
- "text-copy-light": t === "dark",
82
- "text-copy-lighter": t === "light",
83
- "text-copy-light dark:text-copy-lighter": t === "system",
84
- "text-copy-lighter dark:text-copy-light": t === "alt-system"
81
+ "text-copy-light": t === "dark" || t === "system",
82
+ "text-copy-lighter": t === "light" || t === "alt-system",
83
+ "dark:text-copy-lighter": t === "system",
84
+ "dark:text-copy-light": t === "alt-system"
85
85
  });
86
86
  if (c === "selected")
87
- return a("not-prose", {
88
- truncate: !r,
89
- "text-copy-light": t === "dark",
90
- "text-copy-lighter": t === "light",
91
- "text-copy-light dark:text-copy-lighter": t === "system",
92
- "text-copy-lighter dark:text-copy-light": t === "alt-system"
87
+ return a("not-prose text-copy-lighter", {
88
+ truncate: !r
93
89
  });
94
90
  }, w = ({
95
91
  mode: t,
@@ -230,42 +226,42 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
230
226
  raw: r,
231
227
  mode: c,
232
228
  focusMode: i,
233
- disabled: o,
234
- fullWidth: g,
235
- size: n,
229
+ disabled: s,
230
+ fullWidth: n,
231
+ size: g,
236
232
  noBorder: v,
237
233
  labelRight: l,
238
234
  labelLeft: h,
239
235
  noBackground: k,
240
- variant: s,
236
+ variant: o,
241
237
  noTruncate: p,
242
- align: x,
243
- radius: f
244
- }) => (s || (s = "primary"), r ? a(u, e) : a(
238
+ align: f,
239
+ radius: x
240
+ }) => (o || (o = "primary"), r ? a(u, e) : a(
245
241
  u,
246
242
  B({
247
243
  mode: c,
248
- variant: s,
244
+ variant: o,
249
245
  noBackground: k,
250
246
  noTruncate: p
251
247
  }),
252
- w({ mode: c, noBackground: k, variant: s }),
253
- T({ radius: f }),
248
+ w({ mode: c, noBackground: k, variant: o }),
249
+ T({ radius: x }),
254
250
  m({
255
251
  type: t,
256
- size: n,
252
+ size: g,
257
253
  labelRight: l,
258
254
  labelLeft: h,
259
- align: x
255
+ align: f
260
256
  }),
261
- C({ type: t, size: n, labelRight: l, labelLeft: h }),
262
- _({ mode: c, variant: s, noBorder: v }),
257
+ C({ type: t, size: g, labelRight: l, labelLeft: h }),
258
+ _({ mode: c, variant: o, noBorder: v }),
263
259
  j({ focusMode: i }),
264
- E({ mode: c, variant: s, disabled: o }),
265
- N({ mode: c, variant: s, disabled: o }),
260
+ E({ mode: c, variant: o, disabled: s }),
261
+ N({ mode: c, variant: o, disabled: s }),
266
262
  {
267
- "w-full": g,
268
- "disabled:cursor-not-allowed disabled:opacity-50": o
263
+ "w-full": n,
264
+ "disabled:cursor-not-allowed disabled:opacity-50": s
269
265
  },
270
266
  e
271
267
  ));
@@ -1,7 +1,7 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import N from "react";
3
3
  import { BaseButton_private as T } from "../../chunks/BaseButton.BFKIL4GO.js";
4
- import { getButtonClasses as g, TYPE_BUTTON as x } from "../../chunks/utilities.MBKmIAOS.js";
4
+ import { getButtonClasses as g, TYPE_BUTTON as x } from "../../chunks/utilities.CPchA_my.js";
5
5
  const C = N.forwardRef(
6
6
  ({
7
7
  children: s,
@@ -39,7 +39,7 @@ const m = ({
39
39
  try {
40
40
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
41
41
  version: "4.0.0",
42
- buildTime: "01/03/2025 10:45 AM EST",
42
+ buildTime: "01/04/2025 01:33 PM EST",
43
43
  homepage: "https://github.com/aversini/ui-components",
44
44
  license: "MIT"
45
45
  });
@@ -90,13 +90,13 @@ const V = ({
90
90
  }
91
91
  );
92
92
  /*!
93
- @versini/ui-icons v4.0.0
93
+ @versini/ui-icons v4.1.0
94
94
  © 2025 gizmette.com
95
95
  */
96
96
  try {
97
97
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
98
- version: "4.0.0",
99
- buildTime: "01/03/2025 10:45 AM EST",
98
+ version: "4.1.0",
99
+ buildTime: "01/04/2025 01:33 PM EST",
100
100
  homepage: "https://github.com/aversini/ui-components",
101
101
  license: "MIT"
102
102
  });
@@ -2,7 +2,7 @@ import { jsxs as I, jsx as c } from "react/jsx-runtime";
2
2
  import j from "clsx";
3
3
  import v from "react";
4
4
  import { BaseButton_private as _ } from "../../chunks/BaseButton.BFKIL4GO.js";
5
- import { getButtonClasses as E, TYPE_ICON as O } from "../../chunks/utilities.MBKmIAOS.js";
5
+ import { getButtonClasses as E, TYPE_ICON as O } from "../../chunks/utilities.CPchA_my.js";
6
6
  const P = v.forwardRef(
7
7
  ({
8
8
  children: o,
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
2
  import b from "clsx";
3
3
  import v from "react";
4
- import { getButtonClasses as V, TYPE_LINK as C } from "../../chunks/utilities.MBKmIAOS.js";
4
+ import { getButtonClasses as V, TYPE_LINK as C } from "../../chunks/utilities.CPchA_my.js";
5
5
  const L = v.forwardRef(
6
6
  ({
7
7
  children: r,
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getButtonClasses as I, TYPE_ICON as v } from "./chunks/utilities.MBKmIAOS.js";
2
- import { BUTTON_CLASSNAME as P } from "./chunks/utilities.MBKmIAOS.js";
1
+ import { getButtonClasses as I, TYPE_ICON as v } from "./chunks/utilities.CPchA_my.js";
2
+ import { BUTTON_CLASSNAME as V } from "./chunks/utilities.CPchA_my.js";
3
3
  import { Button as q } from "./components/Button/Button.js";
4
4
  import { ButtonCopy as D } from "./components/Button/ButtonCopy.js";
5
5
  import { ButtonIcon as G } from "./components/Button/ButtonIcon.js";
@@ -9,13 +9,13 @@ import n from "clsx";
9
9
  import S from "react";
10
10
  import { BaseButton_private as E } from "./chunks/BaseButton.BFKIL4GO.js";
11
11
  /*!
12
- @versini/ui-button v4.0.0
12
+ @versini/ui-button v4.0.2
13
13
  © 2025 gizmette.com
14
14
  */
15
15
  try {
16
16
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
17
- version: "4.0.0",
18
- buildTime: "01/03/2025 10:45 AM EST",
17
+ version: "4.0.2",
18
+ buildTime: "01/04/2025 01:33 PM EST",
19
19
  homepage: "https://github.com/aversini/ui-components",
20
20
  license: "MIT"
21
21
  });
@@ -100,7 +100,7 @@ const U = S.forwardRef(
100
100
  );
101
101
  U.displayName = "ButtonSort";
102
102
  export {
103
- P as BUTTON_CLASSNAME,
103
+ V as BUTTON_CLASSNAME,
104
104
  q as Button,
105
105
  D as ButtonCopy,
106
106
  G as ButtonIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-button",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@tailwindcss/typography": "0.5.15",
45
- "@versini/ui-icons": "4.0.0",
45
+ "@versini/ui-icons": "4.1.0",
46
46
  "@versini/ui-types": "4.0.0",
47
47
  "clsx": "2.1.1",
48
48
  "tailwindcss": "3.4.17"
@@ -50,5 +50,5 @@
50
50
  "sideEffects": [
51
51
  "**/*.css"
52
52
  ],
53
- "gitHead": "406bf426c5b3186ef7197e0b51d83ec0de689cde"
53
+ "gitHead": "bf6b0d285a70c47a5efc225f32756b95cb963a49"
54
54
  }