@versini/ui-button 7.1.5 → 8.0.0

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,51 +1,51 @@
1
- import { jsx as o, Fragment as p, jsxs as r } from "react/jsx-runtime";
2
- import w, { useState as u, useEffect as f } from "react";
3
- import { ButtonIcon as _ } from "./ButtonIcon.js";
4
- import v from "clsx";
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import h, { useState as w, useEffect as u } from "react";
3
+ import { ButtonIcon as f } from "./ButtonIcon.js";
4
+ import _ from "clsx";
5
5
  const m = ({
6
6
  children: e,
7
7
  fill: c,
8
8
  viewBox: s,
9
9
  className: i,
10
10
  defaultViewBox: t,
11
- size: n,
11
+ size: a,
12
12
  title: l,
13
- semantic: a = !1,
13
+ semantic: n = !1,
14
14
  ...d
15
15
  }) => {
16
- const h = v(n, i);
17
- return /* @__PURE__ */ o(p, { children: /* @__PURE__ */ r(
16
+ const p = _(a, i);
17
+ return /* @__PURE__ */ r(
18
18
  "svg",
19
19
  {
20
20
  xmlns: "http://www.w3.org/2000/svg",
21
- className: h,
21
+ className: p,
22
22
  viewBox: s || t,
23
23
  fill: c || "currentColor",
24
24
  role: "img",
25
- "aria-hidden": !a,
25
+ "aria-hidden": !n,
26
26
  focusable: !1,
27
27
  ...d,
28
28
  children: [
29
- l && a && /* @__PURE__ */ o("title", { children: l }),
29
+ l && n && /* @__PURE__ */ o("title", { children: l }),
30
30
  e
31
31
  ]
32
32
  }
33
- ) });
33
+ );
34
34
  };
35
35
  /*!
36
- @versini/ui-svgicon v4.2.0
36
+ @versini/ui-svgicon v4.2.1
37
37
  © 2025 gizmette.com
38
38
  */
39
39
  try {
40
40
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
41
- version: "4.2.0",
42
- buildTime: "05/17/2025 06:18 PM EDT",
41
+ version: "4.2.1",
42
+ buildTime: "08/27/2025 08:27 AM EDT",
43
43
  homepage: "https://github.com/aversini/ui-components",
44
44
  license: "MIT"
45
45
  });
46
46
  } catch {
47
47
  }
48
- const I = ({
48
+ const v = ({
49
49
  className: e,
50
50
  viewBox: c,
51
51
  title: s,
@@ -71,7 +71,7 @@ const I = ({
71
71
  /* @__PURE__ */ o("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
72
72
  ]
73
73
  }
74
- ), x = ({
74
+ ), I = ({
75
75
  className: e,
76
76
  viewBox: c,
77
77
  title: s,
@@ -90,23 +90,23 @@ const I = ({
90
90
  }
91
91
  );
92
92
  /*!
93
- @versini/ui-icons v4.10.0
93
+ @versini/ui-icons v4.11.0
94
94
  © 2025 gizmette.com
95
95
  */
96
96
  try {
97
97
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
98
- version: "4.10.0",
99
- buildTime: "05/17/2025 06:18 PM EDT",
98
+ version: "4.11.0",
99
+ buildTime: "08/27/2025 08:28 AM EDT",
100
100
  homepage: "https://github.com/aversini/ui-components",
101
101
  license: "MIT"
102
102
  });
103
103
  } catch {
104
104
  }
105
- const N = w.forwardRef(({ copyToClipboard: e, ...c }, s) => {
106
- const [i, t] = u(!1), n = () => {
105
+ const x = h.forwardRef(({ copyToClipboard: e, ...c }, s) => {
106
+ const [i, t] = w(!1), a = () => {
107
107
  typeof e == "string" && (navigator.clipboard.writeText(e), t(!0)), typeof e == "function" && (navigator.clipboard.writeText(e()), t(!0));
108
108
  };
109
- return f(() => {
109
+ return u(() => {
110
110
  let l;
111
111
  return i && (l = window.setTimeout(() => {
112
112
  t(!1);
@@ -114,19 +114,19 @@ const N = w.forwardRef(({ copyToClipboard: e, ...c }, s) => {
114
114
  clearTimeout(l);
115
115
  };
116
116
  }, [i]), /* @__PURE__ */ o(
117
- _,
117
+ f,
118
118
  {
119
119
  ...c,
120
120
  size: "small",
121
121
  ref: s,
122
122
  label: i ? "Copied to clipboard" : "Copy to clipboard",
123
- onClick: n,
123
+ onClick: a,
124
124
  disabled: i,
125
- children: i ? /* @__PURE__ */ o(I, { size: "size-3" }) : /* @__PURE__ */ o(x, { size: "size-3" })
125
+ children: i ? /* @__PURE__ */ o(v, { size: "size-3" }) : /* @__PURE__ */ o(I, { size: "size-3" })
126
126
  }
127
127
  );
128
128
  });
129
- N.displayName = "ButtonCopy";
129
+ x.displayName = "ButtonCopy";
130
130
  export {
131
- N as ButtonCopy
131
+ x as ButtonCopy
132
132
  };
package/dist/index.js CHANGED
@@ -7,13 +7,13 @@ import { jsx as e } from "react/jsx-runtime";
7
7
  import n from "clsx";
8
8
  import m from "react";
9
9
  /*!
10
- @versini/ui-button v7.1.5
10
+ @versini/ui-button v8.0.0
11
11
  © 2025 gizmette.com
12
12
  */
13
13
  try {
14
14
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
15
- version: "7.1.5",
16
- buildTime: "08/23/2025 12:21 PM EDT",
15
+ version: "8.0.0",
16
+ buildTime: "09/01/2025 03:17 PM EDT",
17
17
  homepage: "https://github.com/aversini/ui-components",
18
18
  license: "MIT"
19
19
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-button",
3
- "version": "7.1.5",
3
+ "version": "8.0.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -37,22 +37,22 @@
37
37
  "test": "vitest run"
38
38
  },
39
39
  "peerDependencies": {
40
- "react": "^18.3.1 || ^19.0.0",
41
- "react-dom": "^18.3.1 || ^19.0.0"
40
+ "react": "^19.0.0",
41
+ "react-dom": "^19.0.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@testing-library/jest-dom": "6.8.0",
45
- "@versini/ui-types": "../ui-types"
45
+ "@versini/ui-types": "6.0.0"
46
46
  },
47
47
  "dependencies": {
48
48
  "@tailwindcss/typography": "0.5.16",
49
- "@versini/ui-hooks": "../ui-hooks",
50
- "@versini/ui-icons": "4.10.0",
49
+ "@versini/ui-hooks": "5.0.0",
50
+ "@versini/ui-icons": "4.11.0",
51
51
  "clsx": "2.1.1",
52
52
  "tailwindcss": "4.1.12"
53
53
  },
54
54
  "sideEffects": [
55
55
  "**/*.css"
56
56
  ],
57
- "gitHead": "d568e20474c6c87f836c4cb6548f2cc0143a353c"
57
+ "gitHead": "70a47e9e30172dbb7b36306773fe9511e437fba6"
58
58
  }