loading-dev 0.3.5 → 0.3.7
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/README.md +9 -1
- package/dist/arc.d.ts +5 -11
- package/dist/arc.js +30 -10
- package/dist/atom.d.ts +4 -10
- package/dist/atom.js +69 -9
- package/dist/blocks.d.ts +6 -10
- package/dist/blocks.js +72 -9
- package/dist/bouncing-dots.d.ts +2 -6
- package/dist/bouncing-dots.js +44 -8
- package/dist/cap-B_Mo1a7N.d.ts +7 -0
- package/dist/cap.d.ts +2 -8
- package/dist/cap.js +6 -8
- package/dist/cascade.d.ts +4 -9
- package/dist/cascade.js +49 -9
- package/dist/chevrons.d.ts +2 -0
- package/dist/chevrons.js +36 -0
- package/dist/circular-dots.d.ts +2 -6
- package/dist/circular-dots.js +39 -9
- package/dist/classic-v2.d.ts +2 -6
- package/dist/classic-v2.js +40 -9
- package/dist/classic.d.ts +2 -6
- package/dist/classic.js +47 -9
- package/dist/clock.d.ts +4 -10
- package/dist/clock.js +30 -9
- package/dist/comet.d.ts +4 -10
- package/dist/comet.js +51 -9
- package/dist/compass.d.ts +2 -6
- package/dist/compass.js +38 -8
- package/dist/dual.d.ts +5 -11
- package/dist/dual.js +46 -10
- package/dist/easing-BM_1QWrA.d.ts +9 -0
- package/dist/easing.d.ts +2 -11
- package/dist/easing.js +33 -11
- package/dist/eclipse.d.ts +2 -6
- package/dist/eclipse.js +68 -8
- package/dist/fade.d.ts +5 -8
- package/dist/fade.js +26 -7
- package/dist/fill.d.ts +2 -0
- package/dist/fill.js +59 -0
- package/dist/flip.d.ts +2 -6
- package/dist/flip.js +40 -8
- package/dist/frame.d.ts +14 -18
- package/dist/frame.js +41 -13
- package/dist/gather.d.ts +2 -6
- package/dist/gather.js +84 -8
- package/dist/index.d.ts +42 -35
- package/dist/index.js +41 -146
- package/dist/leap.d.ts +2 -6
- package/dist/leap.js +66 -8
- package/dist/linear-dots.d.ts +2 -6
- package/dist/linear-dots.js +53 -8
- package/dist/loading.d.ts +2 -6
- package/dist/loading.js +63 -9
- package/dist/loop.d.ts +5 -0
- package/dist/loop.js +37 -0
- package/dist/morph.d.ts +2 -6
- package/dist/morph.js +39 -8
- package/dist/motion-trIEyOxA.d.ts +50 -0
- package/dist/motion.d.ts +2 -44
- package/dist/motion.js +56 -25
- package/dist/orbit.d.ts +4 -10
- package/dist/orbit.js +43 -9
- package/dist/phases.d.ts +2 -0
- package/dist/phases.js +73 -0
- package/dist/pulse.d.ts +2 -6
- package/dist/pulse.js +51 -8
- package/dist/radar.d.ts +4 -10
- package/dist/radar.js +63 -9
- package/dist/ring.d.ts +5 -11
- package/dist/ring.js +37 -10
- package/dist/ripple.d.ts +6 -10
- package/dist/ripple.js +56 -10
- package/dist/scan.d.ts +2 -0
- package/dist/scan.js +56 -0
- package/dist/slide.d.ts +2 -6
- package/dist/slide.js +73 -8
- package/dist/snake.d.ts +5 -11
- package/dist/snake.js +58 -10
- package/dist/spinners.d.ts +74 -68
- package/dist/spinners.js +75 -39
- package/dist/split.d.ts +2 -0
- package/dist/split.js +52 -0
- package/dist/steps.d.ts +2 -0
- package/dist/steps.js +55 -0
- package/dist/swirl.d.ts +2 -6
- package/dist/swirl.js +49 -9
- package/dist/trace.d.ts +5 -11
- package/dist/trace.js +44 -9
- package/dist/types-D9_cXnjI.d.ts +8 -0
- package/dist/types.d.ts +2 -9
- package/dist/types.js +1 -0
- package/dist/wave.d.ts +6 -10
- package/dist/wave.js +55 -10
- package/package.json +14 -14
- package/dist/chunk-2LMGBBRJ.js +0 -77
- package/dist/chunk-2OX27TAE.js +0 -69
- package/dist/chunk-2TYML5J2.js +0 -51
- package/dist/chunk-3WMZVDPS.js +0 -61
- package/dist/chunk-4O4ADYWE.js +0 -73
- package/dist/chunk-5UAEBEER.js +0 -78
- package/dist/chunk-A2PZBHTA.js +0 -41
- package/dist/chunk-BAVSTTWG.js +0 -88
- package/dist/chunk-BCIAMPLU.js +0 -87
- package/dist/chunk-DKYEZLIN.js +0 -72
- package/dist/chunk-FQ2U2M7F.js +0 -76
- package/dist/chunk-FWH6VWVK.js +0 -59
- package/dist/chunk-HL7TIIDB.js +0 -124
- package/dist/chunk-IJJULNRU.js +0 -53
- package/dist/chunk-JKLL7YYG.js +0 -85
- package/dist/chunk-JNR4T6LZ.js +0 -10
- package/dist/chunk-JQNF5GYA.js +0 -52
- package/dist/chunk-KAZ5BTXC.js +0 -74
- package/dist/chunk-KOYM24WV.js +0 -72
- package/dist/chunk-L2DUMHO4.js +0 -69
- package/dist/chunk-LDXBT62V.js +0 -57
- package/dist/chunk-MAKBZTL3.js +0 -56
- package/dist/chunk-OMNMMKI7.js +0 -64
- package/dist/chunk-P4BSSDSY.js +0 -51
- package/dist/chunk-PM6DU637.js +0 -70
- package/dist/chunk-PVVWLDIS.js +0 -33
- package/dist/chunk-R5ZDKN3Z.js +0 -59
- package/dist/chunk-RAHAQ7XK.js +0 -61
- package/dist/chunk-SUUR5WMA.js +0 -46
- package/dist/chunk-UAO52LUL.js +0 -48
- package/dist/chunk-ULWRXY3A.js +0 -50
- package/dist/chunk-UOXB5QOZ.js +0 -81
- package/dist/chunk-UXTZTFNZ.js +0 -62
- package/dist/chunk-VZX7APSS.js +0 -82
- package/dist/chunk-YIB63EKJ.js +0 -49
package/dist/chunk-4O4ADYWE.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SpinnerStyle,
|
|
3
|
-
spinnerRoot,
|
|
4
|
-
step
|
|
5
|
-
} from "./chunk-UAO52LUL.js";
|
|
6
|
-
import {
|
|
7
|
-
SIZE,
|
|
8
|
-
STEP_VAR,
|
|
9
|
-
animation,
|
|
10
|
-
stagger
|
|
11
|
-
} from "./chunk-OMNMMKI7.js";
|
|
12
|
-
|
|
13
|
-
// src/leap.tsx
|
|
14
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var DOTS = Array.from({ length: 3 }, (_, index) => index);
|
|
16
|
-
var css = `
|
|
17
|
-
.ld-leap {
|
|
18
|
-
--ld-leap-dot: round(calc(${SIZE} * 0.22), 1px);
|
|
19
|
-
--ld-leap-gap: round(down, calc((${SIZE} - var(--ld-leap-dot)) / 2), 1px);
|
|
20
|
-
position: relative;
|
|
21
|
-
width: ${SIZE};
|
|
22
|
-
height: ${SIZE};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.ld-leap-wrapper {
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: round(calc((${SIZE} - var(--ld-leap-dot)) / 2), 1px);
|
|
28
|
-
left: calc(${SIZE} - var(--ld-leap-dot) - var(--ld-leap-gap) * 2);
|
|
29
|
-
width: calc(var(--ld-leap-gap) * 2 + var(--ld-leap-dot));
|
|
30
|
-
height: var(--ld-leap-dot);
|
|
31
|
-
${animation("leap", "ld-leap-hop", "ease-in-out")}
|
|
32
|
-
animation-delay: ${stagger("leap", DOTS.length)};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ld-leap-dot {
|
|
36
|
-
position: absolute;
|
|
37
|
-
inset: 0 auto 0 0;
|
|
38
|
-
width: var(--ld-leap-dot);
|
|
39
|
-
background: currentColor;
|
|
40
|
-
border-radius: 50%;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@keyframes ld-leap-hop {
|
|
44
|
-
0% {
|
|
45
|
-
transform: translateX(0) rotate(0);
|
|
46
|
-
}
|
|
47
|
-
33.33% {
|
|
48
|
-
transform: translateX(0) rotate(180deg);
|
|
49
|
-
}
|
|
50
|
-
66.66% {
|
|
51
|
-
transform: translateX(calc(var(--ld-leap-gap) * -1)) rotate(180deg);
|
|
52
|
-
}
|
|
53
|
-
100% {
|
|
54
|
-
transform: translateX(calc(var(--ld-leap-gap) * -2)) rotate(180deg);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@media (prefers-reduced-motion: reduce) {
|
|
59
|
-
.ld-leap-wrapper {
|
|
60
|
-
transform: translateX(calc(var(${STEP_VAR}) * var(--ld-leap-gap)));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
function Leap(props) {
|
|
65
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
-
/* @__PURE__ */ jsx(SpinnerStyle, { name: "leap", children: css }),
|
|
67
|
-
/* @__PURE__ */ jsx("div", { ...spinnerRoot("leap", props), children: DOTS.map((index) => /* @__PURE__ */ jsx("div", { className: "ld-leap-wrapper", style: step(index), children: /* @__PURE__ */ jsx("div", { className: "ld-leap-dot" }) }, index)) })
|
|
68
|
-
] });
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
Leap
|
|
73
|
-
};
|
package/dist/chunk-5UAEBEER.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
rotationCss,
|
|
3
|
-
spinClass
|
|
4
|
-
} from "./chunk-A2PZBHTA.js";
|
|
5
|
-
import {
|
|
6
|
-
linecap
|
|
7
|
-
} from "./chunk-JNR4T6LZ.js";
|
|
8
|
-
import {
|
|
9
|
-
SpinnerStyle,
|
|
10
|
-
spinnerRoot
|
|
11
|
-
} from "./chunk-UAO52LUL.js";
|
|
12
|
-
import {
|
|
13
|
-
SIZE
|
|
14
|
-
} from "./chunk-OMNMMKI7.js";
|
|
15
|
-
|
|
16
|
-
// src/dual.tsx
|
|
17
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
var css = `
|
|
19
|
-
.ld-dual {
|
|
20
|
-
width: ${SIZE};
|
|
21
|
-
height: ${SIZE};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
${rotationCss("dual")}
|
|
25
|
-
|
|
26
|
-
.ld-dual-inner {
|
|
27
|
-
animation-direction: reverse;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@media (prefers-reduced-motion: reduce) {
|
|
31
|
-
.ld-dual-inner {
|
|
32
|
-
transform: rotate(180deg);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
36
|
-
function Dual({ cap, easing, ...rest }) {
|
|
37
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
38
|
-
/* @__PURE__ */ jsx(SpinnerStyle, { name: "dual", children: css }),
|
|
39
|
-
/* @__PURE__ */ jsxs(
|
|
40
|
-
"svg",
|
|
41
|
-
{
|
|
42
|
-
...spinnerRoot("dual", rest),
|
|
43
|
-
fill: "none",
|
|
44
|
-
role: "presentation",
|
|
45
|
-
stroke: "currentColor",
|
|
46
|
-
strokeLinecap: linecap(cap),
|
|
47
|
-
strokeWidth: "2.5",
|
|
48
|
-
viewBox: "0 0 24 24",
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
51
|
-
"circle",
|
|
52
|
-
{
|
|
53
|
-
className: spinClass("dual", easing),
|
|
54
|
-
cx: "12",
|
|
55
|
-
cy: "12",
|
|
56
|
-
r: "10",
|
|
57
|
-
strokeDasharray: "18 44.8"
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ jsx(
|
|
61
|
-
"circle",
|
|
62
|
-
{
|
|
63
|
-
className: `ld-dual-inner ${spinClass("dual", easing)}`,
|
|
64
|
-
cx: "12",
|
|
65
|
-
cy: "12",
|
|
66
|
-
r: "5.5",
|
|
67
|
-
strokeDasharray: "10 24.6"
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] });
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export {
|
|
77
|
-
Dual
|
|
78
|
-
};
|
package/dist/chunk-A2PZBHTA.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
animation
|
|
3
|
-
} from "./chunk-OMNMMKI7.js";
|
|
4
|
-
|
|
5
|
-
// src/easing.ts
|
|
6
|
-
var DEFAULT_EASING = "linear";
|
|
7
|
-
function spinClass(name, easing = DEFAULT_EASING) {
|
|
8
|
-
const base = `ld-${name}-spin`;
|
|
9
|
-
return easing === "linear" ? base : `${base} ${base}-${easing}`;
|
|
10
|
-
}
|
|
11
|
-
var ROTATE = `to {
|
|
12
|
-
transform: rotate(360deg);
|
|
13
|
-
}`;
|
|
14
|
-
function rotationCss(name, turn = ROTATE) {
|
|
15
|
-
return `
|
|
16
|
-
.ld-${name}-spin {
|
|
17
|
-
transform-origin: center;
|
|
18
|
-
${animation(name, `ld-${name}-rotate`, "linear")}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ld-${name}-spin-ease-in-out {
|
|
22
|
-
animation-timing-function: ease-in-out;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.ld-${name}-spin-stacked {
|
|
26
|
-
animation-name: ld-${name}-rotate, ld-${name}-rotate;
|
|
27
|
-
animation-timing-function: linear, ease-in-out;
|
|
28
|
-
animation-composition: add;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes ld-${name}-rotate {
|
|
32
|
-
${turn}
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
DEFAULT_EASING,
|
|
39
|
-
spinClass,
|
|
40
|
-
rotationCss
|
|
41
|
-
};
|
package/dist/chunk-BAVSTTWG.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
rotationCss,
|
|
3
|
-
spinClass
|
|
4
|
-
} from "./chunk-A2PZBHTA.js";
|
|
5
|
-
import {
|
|
6
|
-
SpinnerStyle,
|
|
7
|
-
cssVars,
|
|
8
|
-
spinnerRoot,
|
|
9
|
-
step
|
|
10
|
-
} from "./chunk-UAO52LUL.js";
|
|
11
|
-
import {
|
|
12
|
-
SIZE,
|
|
13
|
-
stagger
|
|
14
|
-
} from "./chunk-OMNMMKI7.js";
|
|
15
|
-
|
|
16
|
-
// src/atom.tsx
|
|
17
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
var ORBITS = Array.from({ length: 3 }, (_, index) => index);
|
|
19
|
-
var TILT = 180 / ORBITS.length;
|
|
20
|
-
var STROKE = `calc(${SIZE} * 0.055)`;
|
|
21
|
-
var INNER_STROKE = `calc(${SIZE} * 0.045)`;
|
|
22
|
-
var css = `
|
|
23
|
-
.ld-atom {
|
|
24
|
-
position: relative;
|
|
25
|
-
width: ${SIZE};
|
|
26
|
-
height: ${SIZE};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ld-atom-shell {
|
|
30
|
-
position: absolute;
|
|
31
|
-
inset: 0;
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
border: ${STROKE} solid currentColor;
|
|
34
|
-
border-radius: 9999px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ld-atom-orbit {
|
|
38
|
-
position: absolute;
|
|
39
|
-
inset: 0;
|
|
40
|
-
transform-style: preserve-3d;
|
|
41
|
-
transform: rotate(var(--ld-atom-tilt)) rotateX(90deg);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ld-atom-ring {
|
|
45
|
-
position: absolute;
|
|
46
|
-
inset: 0;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
border: ${INNER_STROKE} solid currentColor;
|
|
49
|
-
border-radius: 9999px;
|
|
50
|
-
transform: rotateX(90deg);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
${rotationCss("atom")}
|
|
54
|
-
|
|
55
|
-
.ld-atom-spin {
|
|
56
|
-
position: absolute;
|
|
57
|
-
inset: 0;
|
|
58
|
-
transform-style: preserve-3d;
|
|
59
|
-
animation-delay: ${stagger("atom", ORBITS.length)};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@media (prefers-reduced-motion: reduce) {
|
|
63
|
-
.ld-atom-spin {
|
|
64
|
-
transform: rotate(${TILT}deg);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
`;
|
|
68
|
-
function Atom({ easing, ...rest }) {
|
|
69
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
70
|
-
/* @__PURE__ */ jsx(SpinnerStyle, { name: "atom", children: css }),
|
|
71
|
-
/* @__PURE__ */ jsxs("div", { ...spinnerRoot("atom", rest), children: [
|
|
72
|
-
/* @__PURE__ */ jsx("div", { className: "ld-atom-shell" }),
|
|
73
|
-
ORBITS.map((index) => /* @__PURE__ */ jsx(
|
|
74
|
-
"div",
|
|
75
|
-
{
|
|
76
|
-
className: "ld-atom-orbit",
|
|
77
|
-
style: cssVars({ "--ld-atom-tilt": `${index * TILT}deg` }),
|
|
78
|
-
children: /* @__PURE__ */ jsx("div", { className: spinClass("atom", easing), style: step(index), children: /* @__PURE__ */ jsx("div", { className: "ld-atom-ring" }) })
|
|
79
|
-
},
|
|
80
|
-
index
|
|
81
|
-
))
|
|
82
|
-
] })
|
|
83
|
-
] });
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export {
|
|
87
|
-
Atom
|
|
88
|
-
};
|
package/dist/chunk-BCIAMPLU.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SpinnerStyle,
|
|
3
|
-
cssVars,
|
|
4
|
-
spinnerRoot,
|
|
5
|
-
step
|
|
6
|
-
} from "./chunk-UAO52LUL.js";
|
|
7
|
-
import {
|
|
8
|
-
SIZE,
|
|
9
|
-
animation,
|
|
10
|
-
stagger
|
|
11
|
-
} from "./chunk-OMNMMKI7.js";
|
|
12
|
-
|
|
13
|
-
// src/slide.tsx
|
|
14
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var DOT = 34;
|
|
16
|
-
var GAP = 20;
|
|
17
|
-
var MARGIN = (100 - 2 * DOT - GAP) / 2;
|
|
18
|
-
var FAR = `${((DOT + GAP) / DOT * 100).toFixed(1)}%`;
|
|
19
|
-
var RESTS = [
|
|
20
|
-
`translate(${FAR}, 0)`,
|
|
21
|
-
"translate(0, 0)",
|
|
22
|
-
`translate(0, ${FAR})`
|
|
23
|
-
];
|
|
24
|
-
var css = `
|
|
25
|
-
.ld-slide {
|
|
26
|
-
position: relative;
|
|
27
|
-
width: ${SIZE};
|
|
28
|
-
height: ${SIZE};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ld-slide-dot {
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: ${MARGIN}%;
|
|
34
|
-
left: ${MARGIN}%;
|
|
35
|
-
width: ${DOT}%;
|
|
36
|
-
height: ${DOT}%;
|
|
37
|
-
background: currentColor;
|
|
38
|
-
border-radius: 50%;
|
|
39
|
-
${animation("slide", "ld-slide-walk", "ease-in-out")}
|
|
40
|
-
animation-delay: ${stagger("slide", RESTS.length)};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@keyframes ld-slide-walk {
|
|
44
|
-
0% {
|
|
45
|
-
transform: translate(${FAR}, 0);
|
|
46
|
-
}
|
|
47
|
-
8.33%,
|
|
48
|
-
25% {
|
|
49
|
-
transform: translate(${FAR}, ${FAR});
|
|
50
|
-
}
|
|
51
|
-
33.33%,
|
|
52
|
-
50% {
|
|
53
|
-
transform: translate(0, ${FAR});
|
|
54
|
-
}
|
|
55
|
-
58.33%,
|
|
56
|
-
75% {
|
|
57
|
-
transform: translate(0, 0);
|
|
58
|
-
}
|
|
59
|
-
83.33%,
|
|
60
|
-
100% {
|
|
61
|
-
transform: translate(${FAR}, 0);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@media (prefers-reduced-motion: reduce) {
|
|
66
|
-
.ld-slide-dot {
|
|
67
|
-
transform: var(--ld-slide-rest);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
function Slide(props) {
|
|
72
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
73
|
-
/* @__PURE__ */ jsx(SpinnerStyle, { name: "slide", children: css }),
|
|
74
|
-
/* @__PURE__ */ jsx("div", { ...spinnerRoot("slide", props), children: RESTS.map((rest, index) => /* @__PURE__ */ jsx(
|
|
75
|
-
"div",
|
|
76
|
-
{
|
|
77
|
-
className: "ld-slide-dot",
|
|
78
|
-
style: cssVars({ ...step(index), "--ld-slide-rest": rest })
|
|
79
|
-
},
|
|
80
|
-
rest
|
|
81
|
-
)) })
|
|
82
|
-
] });
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export {
|
|
86
|
-
Slide
|
|
87
|
-
};
|
package/dist/chunk-DKYEZLIN.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SpinnerStyle,
|
|
3
|
-
spinnerRoot,
|
|
4
|
-
step
|
|
5
|
-
} from "./chunk-UAO52LUL.js";
|
|
6
|
-
import {
|
|
7
|
-
SIZE,
|
|
8
|
-
STEP_VAR,
|
|
9
|
-
animation,
|
|
10
|
-
stagger
|
|
11
|
-
} from "./chunk-OMNMMKI7.js";
|
|
12
|
-
|
|
13
|
-
// src/wave.tsx
|
|
14
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var DEFAULT_WAVE_ORIGIN = "center";
|
|
16
|
-
var BARS = Array.from({ length: 5 }, (_, index) => index);
|
|
17
|
-
var css = `
|
|
18
|
-
.ld-wave {
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: space-between;
|
|
22
|
-
width: ${SIZE};
|
|
23
|
-
height: ${SIZE};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ld-wave-bar {
|
|
27
|
-
width: calc(${SIZE} * 0.12);
|
|
28
|
-
height: 100%;
|
|
29
|
-
background: currentColor;
|
|
30
|
-
border-radius: 9999px;
|
|
31
|
-
${animation("wave", "ld-wave-rise", "ease-in-out")}
|
|
32
|
-
animation-delay: ${stagger("wave", BARS.length)};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ld-wave-bar-bottom {
|
|
36
|
-
align-self: flex-end;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@keyframes ld-wave-rise {
|
|
40
|
-
0%,
|
|
41
|
-
100% {
|
|
42
|
-
height: 30%;
|
|
43
|
-
}
|
|
44
|
-
50% {
|
|
45
|
-
height: 100%;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (prefers-reduced-motion: reduce) {
|
|
50
|
-
.ld-wave-bar {
|
|
51
|
-
height: calc((0.4 + var(${STEP_VAR}) * 0.15) * 100%);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
function Wave({ origin = DEFAULT_WAVE_ORIGIN, ...rest }) {
|
|
56
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
-
/* @__PURE__ */ jsx(SpinnerStyle, { name: "wave", children: css }),
|
|
58
|
-
/* @__PURE__ */ jsx("div", { ...spinnerRoot("wave", rest), children: BARS.map((index) => /* @__PURE__ */ jsx(
|
|
59
|
-
"div",
|
|
60
|
-
{
|
|
61
|
-
className: `ld-wave-bar ld-wave-bar-${origin}`,
|
|
62
|
-
style: step(index)
|
|
63
|
-
},
|
|
64
|
-
index
|
|
65
|
-
)) })
|
|
66
|
-
] });
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
DEFAULT_WAVE_ORIGIN,
|
|
71
|
-
Wave
|
|
72
|
-
};
|
package/dist/chunk-FQ2U2M7F.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SpinnerStyle,
|
|
3
|
-
spinnerRoot,
|
|
4
|
-
step
|
|
5
|
-
} from "./chunk-UAO52LUL.js";
|
|
6
|
-
import {
|
|
7
|
-
SIZE,
|
|
8
|
-
STEP_VAR,
|
|
9
|
-
animation,
|
|
10
|
-
stagger
|
|
11
|
-
} from "./chunk-OMNMMKI7.js";
|
|
12
|
-
|
|
13
|
-
// src/ripple.tsx
|
|
14
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var DEFAULT_RIPPLE_DIRECTION = "out";
|
|
16
|
-
var RINGS = Array.from({ length: 3 }, (_, index) => index);
|
|
17
|
-
var css = `
|
|
18
|
-
.ld-ripple {
|
|
19
|
-
position: relative;
|
|
20
|
-
width: ${SIZE};
|
|
21
|
-
height: ${SIZE};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ld-ripple-ring {
|
|
25
|
-
position: absolute;
|
|
26
|
-
inset: 0;
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
border: calc(${SIZE} * 0.08) solid currentColor;
|
|
29
|
-
border-radius: 9999px;
|
|
30
|
-
${animation("ripple", "ld-ripple-spread", "ease-out")}
|
|
31
|
-
animation-delay: ${stagger("ripple", RINGS.length)};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ld-ripple-ring-in {
|
|
35
|
-
animation-direction: reverse;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@keyframes ld-ripple-spread {
|
|
39
|
-
from {
|
|
40
|
-
opacity: 1;
|
|
41
|
-
transform: scale(0);
|
|
42
|
-
}
|
|
43
|
-
to {
|
|
44
|
-
opacity: 0;
|
|
45
|
-
transform: scale(1);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (prefers-reduced-motion: reduce) {
|
|
50
|
-
.ld-ripple-ring {
|
|
51
|
-
opacity: 0.4;
|
|
52
|
-
transform: scale(calc((var(${STEP_VAR}) + 1) / ${RINGS.length}));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
56
|
-
function Ripple({
|
|
57
|
-
direction = DEFAULT_RIPPLE_DIRECTION,
|
|
58
|
-
...rest
|
|
59
|
-
}) {
|
|
60
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
|
-
/* @__PURE__ */ jsx(SpinnerStyle, { name: "ripple", children: css }),
|
|
62
|
-
/* @__PURE__ */ jsx("div", { ...spinnerRoot("ripple", rest), children: RINGS.map((index) => /* @__PURE__ */ jsx(
|
|
63
|
-
"div",
|
|
64
|
-
{
|
|
65
|
-
className: `ld-ripple-ring ld-ripple-ring-${direction}`,
|
|
66
|
-
style: step(index)
|
|
67
|
-
},
|
|
68
|
-
index
|
|
69
|
-
)) })
|
|
70
|
-
] });
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export {
|
|
74
|
-
DEFAULT_RIPPLE_DIRECTION,
|
|
75
|
-
Ripple
|
|
76
|
-
};
|
package/dist/chunk-FWH6VWVK.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SpinnerStyle,
|
|
3
|
-
spinnerRoot,
|
|
4
|
-
step
|
|
5
|
-
} from "./chunk-UAO52LUL.js";
|
|
6
|
-
import {
|
|
7
|
-
SIZE,
|
|
8
|
-
animation,
|
|
9
|
-
stagger
|
|
10
|
-
} from "./chunk-OMNMMKI7.js";
|
|
11
|
-
|
|
12
|
-
// src/linear-dots.tsx
|
|
13
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
var DOTS = Array.from({ length: 3 }, (_, index) => index);
|
|
15
|
-
var css = `
|
|
16
|
-
.ld-linear-dots {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
gap: calc(${SIZE} * 0.1875);
|
|
20
|
-
height: ${SIZE};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ld-linear-dots-dot {
|
|
24
|
-
width: calc(${SIZE} * 0.1875);
|
|
25
|
-
height: calc(${SIZE} * 0.1875);
|
|
26
|
-
background: currentColor;
|
|
27
|
-
border-radius: 9999px;
|
|
28
|
-
${animation("linear-dots", "ld-linear-dots-fade", "linear")}
|
|
29
|
-
animation-delay: ${stagger("linear-dots", DOTS.length)};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@keyframes ld-linear-dots-fade {
|
|
33
|
-
0% {
|
|
34
|
-
opacity: 1;
|
|
35
|
-
}
|
|
36
|
-
66.67% {
|
|
37
|
-
opacity: 0.5;
|
|
38
|
-
}
|
|
39
|
-
100% {
|
|
40
|
-
opacity: 1;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (prefers-reduced-motion: reduce) {
|
|
45
|
-
.ld-linear-dots-dot {
|
|
46
|
-
opacity: 0.75;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
50
|
-
function LinearDots(props) {
|
|
51
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52
|
-
/* @__PURE__ */ jsx(SpinnerStyle, { name: "linear-dots", children: css }),
|
|
53
|
-
/* @__PURE__ */ jsx("div", { ...spinnerRoot("linear-dots", props), children: DOTS.map((dot) => /* @__PURE__ */ jsx("div", { className: "ld-linear-dots-dot", style: step(dot) }, dot)) })
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
LinearDots
|
|
59
|
-
};
|
package/dist/chunk-HL7TIIDB.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Swirl
|
|
3
|
-
} from "./chunk-SUUR5WMA.js";
|
|
4
|
-
import {
|
|
5
|
-
Trace
|
|
6
|
-
} from "./chunk-KAZ5BTXC.js";
|
|
7
|
-
import {
|
|
8
|
-
Wave
|
|
9
|
-
} from "./chunk-DKYEZLIN.js";
|
|
10
|
-
import {
|
|
11
|
-
Orbit
|
|
12
|
-
} from "./chunk-LDXBT62V.js";
|
|
13
|
-
import {
|
|
14
|
-
Pulse
|
|
15
|
-
} from "./chunk-PM6DU637.js";
|
|
16
|
-
import {
|
|
17
|
-
Radar
|
|
18
|
-
} from "./chunk-2OX27TAE.js";
|
|
19
|
-
import {
|
|
20
|
-
Ring
|
|
21
|
-
} from "./chunk-L2DUMHO4.js";
|
|
22
|
-
import {
|
|
23
|
-
Ripple
|
|
24
|
-
} from "./chunk-FQ2U2M7F.js";
|
|
25
|
-
import {
|
|
26
|
-
Slide
|
|
27
|
-
} from "./chunk-BCIAMPLU.js";
|
|
28
|
-
import {
|
|
29
|
-
Snake
|
|
30
|
-
} from "./chunk-UOXB5QOZ.js";
|
|
31
|
-
import {
|
|
32
|
-
Flip
|
|
33
|
-
} from "./chunk-YIB63EKJ.js";
|
|
34
|
-
import {
|
|
35
|
-
Gather
|
|
36
|
-
} from "./chunk-JKLL7YYG.js";
|
|
37
|
-
import {
|
|
38
|
-
Leap
|
|
39
|
-
} from "./chunk-4O4ADYWE.js";
|
|
40
|
-
import {
|
|
41
|
-
LinearDots
|
|
42
|
-
} from "./chunk-FWH6VWVK.js";
|
|
43
|
-
import {
|
|
44
|
-
Loading
|
|
45
|
-
} from "./chunk-RAHAQ7XK.js";
|
|
46
|
-
import {
|
|
47
|
-
Morph
|
|
48
|
-
} from "./chunk-P4BSSDSY.js";
|
|
49
|
-
import {
|
|
50
|
-
Classic
|
|
51
|
-
} from "./chunk-IJJULNRU.js";
|
|
52
|
-
import {
|
|
53
|
-
Clock
|
|
54
|
-
} from "./chunk-2TYML5J2.js";
|
|
55
|
-
import {
|
|
56
|
-
Comet
|
|
57
|
-
} from "./chunk-UXTZTFNZ.js";
|
|
58
|
-
import {
|
|
59
|
-
Compass
|
|
60
|
-
} from "./chunk-JQNF5GYA.js";
|
|
61
|
-
import {
|
|
62
|
-
Dual
|
|
63
|
-
} from "./chunk-5UAEBEER.js";
|
|
64
|
-
import {
|
|
65
|
-
Eclipse
|
|
66
|
-
} from "./chunk-2LMGBBRJ.js";
|
|
67
|
-
import {
|
|
68
|
-
Arc
|
|
69
|
-
} from "./chunk-MAKBZTL3.js";
|
|
70
|
-
import {
|
|
71
|
-
Atom
|
|
72
|
-
} from "./chunk-BAVSTTWG.js";
|
|
73
|
-
import {
|
|
74
|
-
Blocks
|
|
75
|
-
} from "./chunk-VZX7APSS.js";
|
|
76
|
-
import {
|
|
77
|
-
BouncingDots
|
|
78
|
-
} from "./chunk-ULWRXY3A.js";
|
|
79
|
-
import {
|
|
80
|
-
Cascade
|
|
81
|
-
} from "./chunk-KOYM24WV.js";
|
|
82
|
-
import {
|
|
83
|
-
CircularDots
|
|
84
|
-
} from "./chunk-3WMZVDPS.js";
|
|
85
|
-
import {
|
|
86
|
-
ClassicV2
|
|
87
|
-
} from "./chunk-R5ZDKN3Z.js";
|
|
88
|
-
|
|
89
|
-
// src/spinners.ts
|
|
90
|
-
var SPINNERS = {
|
|
91
|
-
arc: Arc,
|
|
92
|
-
atom: Atom,
|
|
93
|
-
blocks: Blocks,
|
|
94
|
-
"bouncing-dots": BouncingDots,
|
|
95
|
-
cascade: Cascade,
|
|
96
|
-
"circular-dots": CircularDots,
|
|
97
|
-
classic: Classic,
|
|
98
|
-
"classic-v2": ClassicV2,
|
|
99
|
-
clock: Clock,
|
|
100
|
-
comet: Comet,
|
|
101
|
-
compass: Compass,
|
|
102
|
-
dual: Dual,
|
|
103
|
-
eclipse: Eclipse,
|
|
104
|
-
flip: Flip,
|
|
105
|
-
gather: Gather,
|
|
106
|
-
leap: Leap,
|
|
107
|
-
"linear-dots": LinearDots,
|
|
108
|
-
loading: Loading,
|
|
109
|
-
morph: Morph,
|
|
110
|
-
orbit: Orbit,
|
|
111
|
-
pulse: Pulse,
|
|
112
|
-
radar: Radar,
|
|
113
|
-
ring: Ring,
|
|
114
|
-
ripple: Ripple,
|
|
115
|
-
slide: Slide,
|
|
116
|
-
snake: Snake,
|
|
117
|
-
swirl: Swirl,
|
|
118
|
-
trace: Trace,
|
|
119
|
-
wave: Wave
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export {
|
|
123
|
-
SPINNERS
|
|
124
|
-
};
|