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/ring.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
interface RingProps extends SpinnerProps, EasingProps, CapProps {
|
|
8
|
-
}
|
|
9
|
-
declare function Ring({ cap, easing, ...rest }: RingProps): react.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { Ring, type RingProps };
|
|
1
|
+
import { n as CapProps } from "./cap-B_Mo1a7N.js";
|
|
2
|
+
import { r as EasingProps } from "./easing-BM_1QWrA.js";
|
|
3
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
4
|
+
export interface RingProps extends SpinnerProps, EasingProps, CapProps {}
|
|
5
|
+
export declare function Ring({ cap, easing, ...rest }: RingProps): import("react").JSX.Element;
|
package/dist/ring.js
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { linecap } from "./cap.js";
|
|
2
|
+
import { rotationCss, spinClass } from "./easing.js";
|
|
3
|
+
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/ring.tsx
|
|
6
|
+
const css = `
|
|
7
|
+
${rotationCss("ring")}
|
|
8
|
+
`;
|
|
9
|
+
function Ring({ cap, easing, ...rest }) {
|
|
10
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerStyle, {
|
|
11
|
+
name: "ring",
|
|
12
|
+
children: css
|
|
13
|
+
}), /* @__PURE__ */ jsxs("svg", {
|
|
14
|
+
...spinnerRoot("ring", rest),
|
|
15
|
+
fill: "none",
|
|
16
|
+
role: "presentation",
|
|
17
|
+
viewBox: "0 0 24 24",
|
|
18
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
19
|
+
cx: "12",
|
|
20
|
+
cy: "12",
|
|
21
|
+
opacity: "0.2",
|
|
22
|
+
r: "10",
|
|
23
|
+
stroke: "currentColor",
|
|
24
|
+
strokeWidth: "2.5"
|
|
25
|
+
}), /* @__PURE__ */ jsx("circle", {
|
|
26
|
+
className: spinClass("ring", easing),
|
|
27
|
+
cx: "12",
|
|
28
|
+
cy: "12",
|
|
29
|
+
r: "10",
|
|
30
|
+
stroke: "currentColor",
|
|
31
|
+
strokeDasharray: "16 46.8",
|
|
32
|
+
strokeLinecap: linecap(cap),
|
|
33
|
+
strokeWidth: "2.5"
|
|
34
|
+
})]
|
|
35
|
+
})] });
|
|
36
|
+
}
|
|
37
|
+
export { Ring };
|
package/dist/ripple.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
interface RippleProps extends SpinnerProps {
|
|
7
|
-
direction?: RippleDirection;
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export type RippleDirection = "in" | "out";
|
|
3
|
+
export declare const DEFAULT_RIPPLE_DIRECTION: RippleDirection;
|
|
4
|
+
export interface RippleProps extends SpinnerProps {
|
|
5
|
+
direction?: RippleDirection;
|
|
8
6
|
}
|
|
9
|
-
declare function Ripple({ direction, ...rest }: RippleProps): react.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { DEFAULT_RIPPLE_DIRECTION, Ripple, type RippleDirection, type RippleProps };
|
|
7
|
+
export declare function Ripple({ direction, ...rest }: RippleProps): import("react").JSX.Element;
|
package/dist/ripple.js
CHANGED
|
@@ -1,10 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import { SIZE, STEP_VAR, animation, stagger } from "./motion.js";
|
|
2
|
+
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
// src/ripple.tsx
|
|
5
|
+
const DEFAULT_RIPPLE_DIRECTION = "out";
|
|
6
|
+
const RINGS = Array.from({ length: 3 }, (_, index) => index);
|
|
7
|
+
const css = `
|
|
8
|
+
.ld-ripple {
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ld-ripple-ring {
|
|
13
|
+
position: absolute;
|
|
14
|
+
inset: 0;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
border: calc(${SIZE} * 0.08) solid currentColor;
|
|
17
|
+
border-radius: 9999px;
|
|
18
|
+
${animation("ripple", "ld-ripple-spread", "ease-out")}
|
|
19
|
+
animation-delay: ${stagger("ripple", RINGS.length)};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ld-ripple-ring-in {
|
|
23
|
+
animation-direction: reverse;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes ld-ripple-spread {
|
|
27
|
+
from {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
transform: scale(0);
|
|
30
|
+
}
|
|
31
|
+
to {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
transform: scale(1);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (prefers-reduced-motion: reduce) {
|
|
38
|
+
.ld-ripple-ring {
|
|
39
|
+
opacity: 0.4;
|
|
40
|
+
transform: scale(calc((var(${STEP_VAR}) + 1) / ${RINGS.length}));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
function Ripple({ direction = "out", ...rest }) {
|
|
45
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerStyle, {
|
|
46
|
+
name: "ripple",
|
|
47
|
+
children: css
|
|
48
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
49
|
+
...spinnerRoot("ripple", rest),
|
|
50
|
+
children: RINGS.map((index) => /* @__PURE__ */ jsx("div", {
|
|
51
|
+
className: `ld-ripple-ring ld-ripple-ring-${direction}`,
|
|
52
|
+
style: step(index)
|
|
53
|
+
}, index))
|
|
54
|
+
})] });
|
|
55
|
+
}
|
|
56
|
+
export { DEFAULT_RIPPLE_DIRECTION, Ripple };
|
package/dist/scan.d.ts
ADDED
package/dist/scan.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { animation } from "./motion.js";
|
|
2
|
+
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
// src/scan.tsx
|
|
5
|
+
const TRAVEL = 11;
|
|
6
|
+
const css = `
|
|
7
|
+
.ld-scan-line {
|
|
8
|
+
${animation("scan", "ld-scan-sweep", "cubic-bezier(0.45, 0, 0.55, 1)")}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes ld-scan-sweep {
|
|
12
|
+
0%,
|
|
13
|
+
100% {
|
|
14
|
+
transform: translateY(0);
|
|
15
|
+
}
|
|
16
|
+
50% {
|
|
17
|
+
transform: translateY(${TRAVEL}px);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (prefers-reduced-motion: reduce) {
|
|
22
|
+
.ld-scan-line {
|
|
23
|
+
transform: translateY(${TRAVEL / 2}px);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
function Scan(props) {
|
|
28
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerStyle, {
|
|
29
|
+
name: "scan",
|
|
30
|
+
children: css
|
|
31
|
+
}), /* @__PURE__ */ jsxs("svg", {
|
|
32
|
+
...spinnerRoot("scan", props),
|
|
33
|
+
fill: "none",
|
|
34
|
+
role: "presentation",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
viewBox: "0 0 24 24",
|
|
37
|
+
children: [/* @__PURE__ */ jsx("rect", {
|
|
38
|
+
height: "18",
|
|
39
|
+
opacity: "0.2",
|
|
40
|
+
rx: "4",
|
|
41
|
+
strokeWidth: "2",
|
|
42
|
+
width: "18",
|
|
43
|
+
x: "3",
|
|
44
|
+
y: "3"
|
|
45
|
+
}), /* @__PURE__ */ jsx("line", {
|
|
46
|
+
className: "ld-scan-line",
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeWidth: "2.5",
|
|
49
|
+
x1: "7.5",
|
|
50
|
+
x2: "16.5",
|
|
51
|
+
y1: "6.5",
|
|
52
|
+
y2: "6.5"
|
|
53
|
+
})]
|
|
54
|
+
})] });
|
|
55
|
+
}
|
|
56
|
+
export { Scan };
|
package/dist/slide.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare function Slide(props: SpinnerProps): react.JSX.Element;
|
|
5
|
-
|
|
6
|
-
export { Slide };
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function Slide(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/slide.js
CHANGED
|
@@ -1,8 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { animation, stagger } from "./motion.js";
|
|
2
|
+
import { SpinnerStyle, cssVars, spinnerRoot, step } from "./frame.js";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
// src/slide.tsx
|
|
5
|
+
const DOT = 34;
|
|
6
|
+
const MARGIN = 6;
|
|
7
|
+
const FAR = `${(54 / DOT * 100).toFixed(1)}%`;
|
|
8
|
+
const RESTS = [
|
|
9
|
+
`translate(${FAR}, 0)`,
|
|
10
|
+
"translate(0, 0)",
|
|
11
|
+
`translate(0, ${FAR})`
|
|
12
|
+
];
|
|
13
|
+
const css = `
|
|
14
|
+
.ld-slide {
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ld-slide-dot {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: ${MARGIN}%;
|
|
21
|
+
left: ${MARGIN}%;
|
|
22
|
+
width: ${DOT}%;
|
|
23
|
+
height: ${DOT}%;
|
|
24
|
+
background: currentColor;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
${animation("slide", "ld-slide-walk", "ease-in-out")}
|
|
27
|
+
animation-delay: ${stagger("slide", RESTS.length)};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes ld-slide-walk {
|
|
31
|
+
0% {
|
|
32
|
+
transform: translate(${FAR}, 0);
|
|
33
|
+
}
|
|
34
|
+
8.33%,
|
|
35
|
+
25% {
|
|
36
|
+
transform: translate(${FAR}, ${FAR});
|
|
37
|
+
}
|
|
38
|
+
33.33%,
|
|
39
|
+
50% {
|
|
40
|
+
transform: translate(0, ${FAR});
|
|
41
|
+
}
|
|
42
|
+
58.33%,
|
|
43
|
+
75% {
|
|
44
|
+
transform: translate(0, 0);
|
|
45
|
+
}
|
|
46
|
+
83.33%,
|
|
47
|
+
100% {
|
|
48
|
+
transform: translate(${FAR}, 0);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (prefers-reduced-motion: reduce) {
|
|
53
|
+
.ld-slide-dot {
|
|
54
|
+
transform: var(--ld-slide-rest);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
function Slide(props) {
|
|
59
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerStyle, {
|
|
60
|
+
name: "slide",
|
|
61
|
+
children: css
|
|
62
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
63
|
+
...spinnerRoot("slide", props),
|
|
64
|
+
children: RESTS.map((rest, index) => /* @__PURE__ */ jsx("div", {
|
|
65
|
+
className: "ld-slide-dot",
|
|
66
|
+
style: cssVars({
|
|
67
|
+
...step(index),
|
|
68
|
+
"--ld-slide-rest": rest
|
|
69
|
+
})
|
|
70
|
+
}, rest))
|
|
71
|
+
})] });
|
|
72
|
+
}
|
|
73
|
+
export { Slide };
|
package/dist/snake.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
interface SnakeProps extends SpinnerProps, EasingProps, CapProps {
|
|
8
|
-
}
|
|
9
|
-
declare function Snake({ cap, easing, ...rest }: SnakeProps): react.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { Snake, type SnakeProps };
|
|
1
|
+
import { n as CapProps } from "./cap-B_Mo1a7N.js";
|
|
2
|
+
import { r as EasingProps } from "./easing-BM_1QWrA.js";
|
|
3
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
4
|
+
export interface SnakeProps extends SpinnerProps, EasingProps, CapProps {}
|
|
5
|
+
export declare function Snake({ cap, easing, ...rest }: SnakeProps): import("react").JSX.Element;
|
package/dist/snake.js
CHANGED
|
@@ -1,10 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
4
|
-
import "./
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { linecap } from "./cap.js";
|
|
2
|
+
import { animation } from "./motion.js";
|
|
3
|
+
import { rotationCss, spinClass } from "./easing.js";
|
|
4
|
+
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
// src/snake.tsx
|
|
7
|
+
const css = `
|
|
8
|
+
${rotationCss("snake")}
|
|
9
|
+
|
|
10
|
+
.ld-snake-dash {
|
|
11
|
+
${animation("snake", "ld-snake-stretch", "ease-in-out")}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@keyframes ld-snake-stretch {
|
|
15
|
+
0% {
|
|
16
|
+
stroke-dasharray: 1 100;
|
|
17
|
+
stroke-dashoffset: 0;
|
|
18
|
+
}
|
|
19
|
+
50% {
|
|
20
|
+
stroke-dasharray: 45 100;
|
|
21
|
+
stroke-dashoffset: -17;
|
|
22
|
+
}
|
|
23
|
+
100% {
|
|
24
|
+
stroke-dasharray: 45 100;
|
|
25
|
+
stroke-dashoffset: -62;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (prefers-reduced-motion: reduce) {
|
|
30
|
+
.ld-snake-dash {
|
|
31
|
+
stroke-dasharray: 18 100;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
function Snake({ cap, easing, ...rest }) {
|
|
36
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerStyle, {
|
|
37
|
+
name: "snake",
|
|
38
|
+
children: css
|
|
39
|
+
}), /* @__PURE__ */ jsx("svg", {
|
|
40
|
+
...spinnerRoot("snake", rest),
|
|
41
|
+
fill: "none",
|
|
42
|
+
role: "presentation",
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
children: /* @__PURE__ */ jsx("g", {
|
|
45
|
+
className: spinClass("snake", easing),
|
|
46
|
+
children: /* @__PURE__ */ jsx("circle", {
|
|
47
|
+
className: "ld-snake-dash",
|
|
48
|
+
cx: "12",
|
|
49
|
+
cy: "12",
|
|
50
|
+
r: "10",
|
|
51
|
+
stroke: "currentColor",
|
|
52
|
+
strokeLinecap: linecap(cap),
|
|
53
|
+
strokeWidth: "2.5"
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
})] });
|
|
57
|
+
}
|
|
58
|
+
export { Snake };
|
package/dist/spinners.d.ts
CHANGED
|
@@ -1,68 +1,74 @@
|
|
|
1
|
-
import { Arc } from
|
|
2
|
-
import { Atom } from
|
|
3
|
-
import { Blocks } from
|
|
4
|
-
import { BouncingDots } from
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { CircularDots } from
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { Clock } from
|
|
11
|
-
import { Comet } from
|
|
12
|
-
import { Compass } from
|
|
13
|
-
import { Dual } from
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { Flip } from
|
|
17
|
-
import { Gather } from
|
|
18
|
-
import { Leap } from
|
|
19
|
-
import { LinearDots } from
|
|
20
|
-
import { Loading } from
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import { Orbit } from
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
import { Arc } from "./arc.js";
|
|
2
|
+
import { Atom } from "./atom.js";
|
|
3
|
+
import { Blocks } from "./blocks.js";
|
|
4
|
+
import { BouncingDots } from "./bouncing-dots.js";
|
|
5
|
+
import { Cascade } from "./cascade.js";
|
|
6
|
+
import { Chevrons } from "./chevrons.js";
|
|
7
|
+
import { CircularDots } from "./circular-dots.js";
|
|
8
|
+
import { ClassicV2 } from "./classic-v2.js";
|
|
9
|
+
import { Classic } from "./classic.js";
|
|
10
|
+
import { Clock } from "./clock.js";
|
|
11
|
+
import { Comet } from "./comet.js";
|
|
12
|
+
import { Compass } from "./compass.js";
|
|
13
|
+
import { Dual } from "./dual.js";
|
|
14
|
+
import { Eclipse } from "./eclipse.js";
|
|
15
|
+
import { Fill } from "./fill.js";
|
|
16
|
+
import { Flip } from "./flip.js";
|
|
17
|
+
import { Gather } from "./gather.js";
|
|
18
|
+
import { Leap } from "./leap.js";
|
|
19
|
+
import { LinearDots } from "./linear-dots.js";
|
|
20
|
+
import { Loading } from "./loading.js";
|
|
21
|
+
import { Loop } from "./loop.js";
|
|
22
|
+
import { Morph } from "./morph.js";
|
|
23
|
+
import { Orbit } from "./orbit.js";
|
|
24
|
+
import { Phases } from "./phases.js";
|
|
25
|
+
import { Pulse } from "./pulse.js";
|
|
26
|
+
import { Radar } from "./radar.js";
|
|
27
|
+
import { Ring } from "./ring.js";
|
|
28
|
+
import { Ripple } from "./ripple.js";
|
|
29
|
+
import { Scan } from "./scan.js";
|
|
30
|
+
import { Slide } from "./slide.js";
|
|
31
|
+
import { Snake } from "./snake.js";
|
|
32
|
+
import { Split } from "./split.js";
|
|
33
|
+
import { Steps } from "./steps.js";
|
|
34
|
+
import { Swirl } from "./swirl.js";
|
|
35
|
+
import { Trace } from "./trace.js";
|
|
36
|
+
import { Wave } from "./wave.js";
|
|
37
|
+
export declare const SPINNERS: {
|
|
38
|
+
arc: typeof Arc;
|
|
39
|
+
atom: typeof Atom;
|
|
40
|
+
blocks: typeof Blocks;
|
|
41
|
+
"bouncing-dots": typeof BouncingDots;
|
|
42
|
+
cascade: typeof Cascade;
|
|
43
|
+
chevrons: typeof Chevrons;
|
|
44
|
+
"circular-dots": typeof CircularDots;
|
|
45
|
+
classic: typeof Classic;
|
|
46
|
+
"classic-v2": typeof ClassicV2;
|
|
47
|
+
clock: typeof Clock;
|
|
48
|
+
comet: typeof Comet;
|
|
49
|
+
compass: typeof Compass;
|
|
50
|
+
dual: typeof Dual;
|
|
51
|
+
eclipse: typeof Eclipse;
|
|
52
|
+
fill: typeof Fill;
|
|
53
|
+
flip: typeof Flip;
|
|
54
|
+
gather: typeof Gather;
|
|
55
|
+
leap: typeof Leap;
|
|
56
|
+
"linear-dots": typeof LinearDots;
|
|
57
|
+
loading: typeof Loading;
|
|
58
|
+
loop: typeof Loop;
|
|
59
|
+
morph: typeof Morph;
|
|
60
|
+
orbit: typeof Orbit;
|
|
61
|
+
phases: typeof Phases;
|
|
62
|
+
pulse: typeof Pulse;
|
|
63
|
+
radar: typeof Radar;
|
|
64
|
+
ring: typeof Ring;
|
|
65
|
+
ripple: typeof Ripple;
|
|
66
|
+
scan: typeof Scan;
|
|
67
|
+
slide: typeof Slide;
|
|
68
|
+
snake: typeof Snake;
|
|
69
|
+
split: typeof Split;
|
|
70
|
+
steps: typeof Steps;
|
|
71
|
+
swirl: typeof Swirl;
|
|
72
|
+
trace: typeof Trace;
|
|
73
|
+
wave: typeof Wave;
|
|
74
|
+
};
|
package/dist/spinners.js
CHANGED
|
@@ -1,40 +1,76 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./
|
|
36
|
-
import "./
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { Arc } from "./arc.js";
|
|
2
|
+
import { Atom } from "./atom.js";
|
|
3
|
+
import { Blocks } from "./blocks.js";
|
|
4
|
+
import { BouncingDots } from "./bouncing-dots.js";
|
|
5
|
+
import { Cascade } from "./cascade.js";
|
|
6
|
+
import { Chevrons } from "./chevrons.js";
|
|
7
|
+
import { CircularDots } from "./circular-dots.js";
|
|
8
|
+
import { ClassicV2 } from "./classic-v2.js";
|
|
9
|
+
import { Classic } from "./classic.js";
|
|
10
|
+
import { Clock } from "./clock.js";
|
|
11
|
+
import { Comet } from "./comet.js";
|
|
12
|
+
import { Compass } from "./compass.js";
|
|
13
|
+
import { Dual } from "./dual.js";
|
|
14
|
+
import { Eclipse } from "./eclipse.js";
|
|
15
|
+
import { Fill } from "./fill.js";
|
|
16
|
+
import { Flip } from "./flip.js";
|
|
17
|
+
import { Gather } from "./gather.js";
|
|
18
|
+
import { Leap } from "./leap.js";
|
|
19
|
+
import { LinearDots } from "./linear-dots.js";
|
|
20
|
+
import { Loading } from "./loading.js";
|
|
21
|
+
import { Loop } from "./loop.js";
|
|
22
|
+
import { Morph } from "./morph.js";
|
|
23
|
+
import { Orbit } from "./orbit.js";
|
|
24
|
+
import { Phases } from "./phases.js";
|
|
25
|
+
import { Pulse } from "./pulse.js";
|
|
26
|
+
import { Radar } from "./radar.js";
|
|
27
|
+
import { Ring } from "./ring.js";
|
|
28
|
+
import { Ripple } from "./ripple.js";
|
|
29
|
+
import { Scan } from "./scan.js";
|
|
30
|
+
import { Slide } from "./slide.js";
|
|
31
|
+
import { Snake } from "./snake.js";
|
|
32
|
+
import { Split } from "./split.js";
|
|
33
|
+
import { Steps } from "./steps.js";
|
|
34
|
+
import { Swirl } from "./swirl.js";
|
|
35
|
+
import { Trace } from "./trace.js";
|
|
36
|
+
import { Wave } from "./wave.js";
|
|
37
|
+
// src/spinners.ts
|
|
38
|
+
const SPINNERS = {
|
|
39
|
+
arc: Arc,
|
|
40
|
+
atom: Atom,
|
|
41
|
+
blocks: Blocks,
|
|
42
|
+
"bouncing-dots": BouncingDots,
|
|
43
|
+
cascade: Cascade,
|
|
44
|
+
chevrons: Chevrons,
|
|
45
|
+
"circular-dots": CircularDots,
|
|
46
|
+
classic: Classic,
|
|
47
|
+
"classic-v2": ClassicV2,
|
|
48
|
+
clock: Clock,
|
|
49
|
+
comet: Comet,
|
|
50
|
+
compass: Compass,
|
|
51
|
+
dual: Dual,
|
|
52
|
+
eclipse: Eclipse,
|
|
53
|
+
fill: Fill,
|
|
54
|
+
flip: Flip,
|
|
55
|
+
gather: Gather,
|
|
56
|
+
leap: Leap,
|
|
57
|
+
"linear-dots": LinearDots,
|
|
58
|
+
loading: Loading,
|
|
59
|
+
loop: Loop,
|
|
60
|
+
morph: Morph,
|
|
61
|
+
orbit: Orbit,
|
|
62
|
+
phases: Phases,
|
|
63
|
+
pulse: Pulse,
|
|
64
|
+
radar: Radar,
|
|
65
|
+
ring: Ring,
|
|
66
|
+
ripple: Ripple,
|
|
67
|
+
scan: Scan,
|
|
68
|
+
slide: Slide,
|
|
69
|
+
snake: Snake,
|
|
70
|
+
split: Split,
|
|
71
|
+
steps: Steps,
|
|
72
|
+
swirl: Swirl,
|
|
73
|
+
trace: Trace,
|
|
74
|
+
wave: Wave
|
|
40
75
|
};
|
|
76
|
+
export { SPINNERS };
|
package/dist/split.d.ts
ADDED