@versini/ui-spinner 4.0.1 → 4.0.3
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.
- package/dist/components/Spinner/Spinner.js +38 -4
- package/dist/index.js +6 -41
- package/package.json +4 -4
|
@@ -1,6 +1,40 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "clsx";
|
|
3
|
-
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "clsx";
|
|
3
|
+
const n = "av-spinner", y = ({
|
|
4
|
+
spinnerRef: i,
|
|
5
|
+
mode: c = "system",
|
|
6
|
+
type: s = "circle",
|
|
7
|
+
className: t
|
|
8
|
+
}) => {
|
|
9
|
+
const o = s === "circle" ? e(
|
|
10
|
+
n,
|
|
11
|
+
"h-8 w-8",
|
|
12
|
+
"align-[-0.125em]",
|
|
13
|
+
"border-4",
|
|
14
|
+
"inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]",
|
|
15
|
+
{
|
|
16
|
+
"text-copy-dark": c === "dark",
|
|
17
|
+
"text-copy-accent": c === "light",
|
|
18
|
+
"text-copy-dark dark:text-copy-accent": c === "system",
|
|
19
|
+
"text-copy-accent dark:text-copy-dark": c === "alt-system"
|
|
20
|
+
},
|
|
21
|
+
t
|
|
22
|
+
) : e(n, t), a = e("av-spinner__dot", {
|
|
23
|
+
"fill-copy-dark": c === "dark",
|
|
24
|
+
"fill-copy-accent": c === "light",
|
|
25
|
+
"fill-copy-dark dark:fill-copy-accent": c === "system",
|
|
26
|
+
"fill-copy-accent dark:fill-copy-dark": c === "alt-system"
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ l("div", { ref: i, className: o, role: "status", children: [
|
|
29
|
+
s === "dots" && /* @__PURE__ */ l("svg", { className: "h-8 w-8", children: [
|
|
30
|
+
/* @__PURE__ */ r("circle", { className: a, cx: "6", cy: "50%", r: "3" }),
|
|
31
|
+
/* @__PURE__ */ r("circle", { className: a, cx: "50%", cy: "50%", r: "3" }),
|
|
32
|
+
/* @__PURE__ */ r("circle", { className: a, cx: "80%", cy: "50%", r: "3" })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Loading..." })
|
|
35
|
+
] });
|
|
36
|
+
};
|
|
4
37
|
export {
|
|
5
|
-
|
|
38
|
+
n as SPINNER_CLASSNAME,
|
|
39
|
+
y as Spinner
|
|
6
40
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,53 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "clsx";
|
|
1
|
+
import { SPINNER_CLASSNAME as o, Spinner as I } from "./components/Spinner/Spinner.js";
|
|
3
2
|
/*!
|
|
4
|
-
@versini/ui-spinner v4.0.
|
|
3
|
+
@versini/ui-spinner v4.0.3
|
|
5
4
|
© 2025 gizmette.com
|
|
6
5
|
*/
|
|
7
6
|
try {
|
|
8
7
|
window.__VERSINI_UI_SPINNER__ || (window.__VERSINI_UI_SPINNER__ = {
|
|
9
|
-
version: "4.0.
|
|
10
|
-
buildTime: "
|
|
8
|
+
version: "4.0.3",
|
|
9
|
+
buildTime: "05/26/2025 03:48 PM EDT",
|
|
11
10
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
11
|
license: "MIT"
|
|
13
12
|
});
|
|
14
13
|
} catch {
|
|
15
14
|
}
|
|
16
|
-
const l = "av-spinner", y = ({
|
|
17
|
-
spinnerRef: s,
|
|
18
|
-
mode: c = "system",
|
|
19
|
-
type: a = "circle",
|
|
20
|
-
className: i
|
|
21
|
-
}) => {
|
|
22
|
-
const o = a === "circle" ? t(
|
|
23
|
-
l,
|
|
24
|
-
"h-8 w-8",
|
|
25
|
-
"align-[-0.125em]",
|
|
26
|
-
"border-4",
|
|
27
|
-
"inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]",
|
|
28
|
-
{
|
|
29
|
-
"text-copy-dark": c === "dark",
|
|
30
|
-
"text-copy-accent": c === "light",
|
|
31
|
-
"text-copy-dark dark:text-copy-accent": c === "system",
|
|
32
|
-
"text-copy-accent dark:text-copy-dark": c === "alt-system"
|
|
33
|
-
},
|
|
34
|
-
i
|
|
35
|
-
) : t(l, i), e = t("av-spinner__dot", {
|
|
36
|
-
"fill-copy-dark": c === "dark",
|
|
37
|
-
"fill-copy-accent": c === "light",
|
|
38
|
-
"fill-copy-dark dark:fill-copy-accent": c === "system",
|
|
39
|
-
"fill-copy-accent dark:fill-copy-dark": c === "alt-system"
|
|
40
|
-
});
|
|
41
|
-
return /* @__PURE__ */ n("div", { ref: s, className: o, role: "status", children: [
|
|
42
|
-
a === "dots" && /* @__PURE__ */ n("svg", { className: "h-8 w-8", children: [
|
|
43
|
-
/* @__PURE__ */ r("circle", { className: e, cx: "6", cy: "50%", r: "3" }),
|
|
44
|
-
/* @__PURE__ */ r("circle", { className: e, cx: "50%", cy: "50%", r: "3" }),
|
|
45
|
-
/* @__PURE__ */ r("circle", { className: e, cx: "80%", cy: "50%", r: "3" })
|
|
46
|
-
] }),
|
|
47
|
-
/* @__PURE__ */ r("span", { className: "sr-only", children: "Loading..." })
|
|
48
|
-
] });
|
|
49
|
-
};
|
|
50
15
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
16
|
+
o as SPINNER_CLASSNAME,
|
|
17
|
+
I as Spinner
|
|
53
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-spinner",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@versini/ui-types": "5.0.
|
|
42
|
+
"@versini/ui-types": "5.0.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@tailwindcss/typography": "0.5.16",
|
|
46
|
-
"tailwindcss": "4.1.
|
|
46
|
+
"tailwindcss": "4.1.7"
|
|
47
47
|
},
|
|
48
48
|
"sideEffects": [
|
|
49
49
|
"**/*.css"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "863a399128080a19f2668e458d495110aa0f68f8"
|
|
52
52
|
}
|