loading-dev 0.3.6 → 0.3.8
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 +4 -6
- package/dist/arc.js +1 -2
- package/dist/atom.d.ts +3 -5
- package/dist/atom.js +1 -2
- package/dist/blocks.d.ts +2 -4
- package/dist/blocks.js +1 -2
- package/dist/bouncing-dots.d.ts +2 -4
- package/dist/bouncing-dots.js +1 -2
- package/dist/{cap-Ba3uZx03.d.ts → cap-B_Mo1a7N.d.ts} +0 -2
- package/dist/cap.d.ts +1 -1
- package/dist/cap.js +1 -2
- package/dist/cascade.d.ts +3 -5
- package/dist/cascade.js +1 -2
- package/dist/chevrons.d.ts +2 -0
- package/dist/chevrons.js +36 -0
- package/dist/circular-dots.d.ts +2 -4
- package/dist/circular-dots.js +1 -2
- package/dist/classic-v2.d.ts +2 -4
- package/dist/classic-v2.js +1 -2
- package/dist/classic.d.ts +2 -4
- package/dist/classic.js +1 -2
- package/dist/clock.d.ts +3 -5
- package/dist/clock.js +1 -2
- package/dist/comet.d.ts +3 -5
- package/dist/comet.js +1 -2
- package/dist/compass.d.ts +2 -4
- package/dist/compass.js +1 -2
- package/dist/dual.d.ts +4 -6
- package/dist/dual.js +1 -2
- package/dist/{easing-DhnLArHS.d.ts → easing-BM_1QWrA.d.ts} +1 -3
- package/dist/easing.d.ts +1 -1
- package/dist/easing.js +1 -2
- package/dist/eclipse.d.ts +2 -4
- package/dist/eclipse.js +1 -2
- package/dist/fade.d.ts +2 -4
- package/dist/fade.js +1 -2
- package/dist/fill.d.ts +2 -0
- package/dist/fill.js +59 -0
- package/dist/flip.d.ts +2 -4
- package/dist/flip.js +1 -2
- package/dist/frame.d.ts +3 -5
- package/dist/frame.js +1 -2
- package/dist/gather.d.ts +2 -4
- package/dist/gather.js +1 -2
- package/dist/index.d.ts +12 -5
- package/dist/index.js +8 -1
- package/dist/leap.d.ts +2 -4
- package/dist/leap.js +1 -2
- package/dist/linear-dots.d.ts +2 -4
- package/dist/linear-dots.js +1 -2
- package/dist/loading.d.ts +2 -4
- package/dist/loading.js +1 -2
- package/dist/loop.d.ts +5 -0
- package/dist/loop.js +37 -0
- package/dist/morph.d.ts +2 -4
- package/dist/morph.js +1 -2
- package/dist/{motion-D_zUuA3S.d.ts → motion-trIEyOxA.d.ts} +7 -2
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +8 -2
- package/dist/orbit.d.ts +3 -5
- package/dist/orbit.js +1 -2
- package/dist/phases.d.ts +2 -0
- package/dist/phases.js +73 -0
- package/dist/pulse.d.ts +2 -4
- package/dist/pulse.js +1 -2
- package/dist/radar.d.ts +3 -5
- package/dist/radar.js +1 -2
- package/dist/ring.d.ts +4 -6
- package/dist/ring.js +1 -2
- package/dist/ripple.d.ts +2 -4
- package/dist/ripple.js +1 -2
- package/dist/scan.d.ts +2 -0
- package/dist/scan.js +56 -0
- package/dist/slide.d.ts +2 -4
- package/dist/slide.js +1 -2
- package/dist/snake.d.ts +4 -6
- package/dist/snake.js +1 -2
- package/dist/spinners.d.ts +15 -3
- package/dist/spinners.js +15 -2
- package/dist/split.d.ts +2 -0
- package/dist/split.js +52 -0
- package/dist/steps.d.ts +7 -0
- package/dist/steps.js +60 -0
- package/dist/swirl.d.ts +2 -4
- package/dist/swirl.js +1 -2
- package/dist/trace.d.ts +4 -6
- package/dist/trace.js +1 -2
- package/dist/{types-BYaenrWm.d.ts → types-D9_cXnjI.d.ts} +0 -2
- package/dist/types.d.ts +1 -1
- package/dist/wave.d.ts +2 -4
- package/dist/wave.js +1 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
<a href="https://interfaces.dev/?utm_source=loading.dev">
|
|
2
|
+
<img width="320" height="168" alt="interfaces.dev" src="https://ho1jr3x2dcwdu3t5.public.blob.vercel-storage.com/interfaces-og-image.png" />
|
|
3
|
+
</a>
|
|
4
|
+
|
|
5
|
+
Read more in [Interfaces](https://interfaces.dev/?utm_source=loading.dev), the first design engineering magazine.
|
|
6
|
+
|
|
1
7
|
# loading-dev
|
|
2
8
|
|
|
9
|
+
[](https://www.npmjs.com/package/loading-dev)
|
|
10
|
+
|
|
3
11
|
Beautiful loading indicators for React.
|
|
4
12
|
|
|
5
13
|
```sh
|
|
@@ -20,7 +28,7 @@ The spinners respect reduced motion out of the box and require React 19 or later
|
|
|
20
28
|
|
|
21
29
|
Current list of indicators:
|
|
22
30
|
|
|
23
|
-
`Arc`, `Atom`, `Blocks`, `BouncingDots`, `Cascade`, `CircularDots`, `Classic`, `ClassicV2`, `Clock`, `Comet`, `Compass`, `Dual`, `Eclipse`, `Flip`, `Gather`, `Leap`, `LinearDots`, `Loading`, `Morph`, `Orbit`, `Pulse`, `Radar`, `Ring`, `Ripple`, `Slide`, `Snake`, `Swirl`, `Trace`, `Wave`.
|
|
31
|
+
`Arc`, `Atom`, `Blocks`, `BouncingDots`, `Cascade`, `Chevrons`, `CircularDots`, `Classic`, `ClassicV2`, `Clock`, `Comet`, `Compass`, `Dual`, `Eclipse`, `Fill`, `Flip`, `Gather`, `Leap`, `LinearDots`, `Loading`, `Loop`, `Morph`, `Orbit`, `Phases`, `Pulse`, `Radar`, `Ring`, `Ripple`, `Scan`, `Slide`, `Snake`, `Split`, `Steps`, `Swirl`, `Trace`, `Wave`.
|
|
24
32
|
|
|
25
33
|
Docs and live previews are available at [loading.dev](https://loading.dev).
|
|
26
34
|
|
package/dist/arc.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { n as CapProps } from "./cap-
|
|
2
|
-
import { r as EasingProps } from "./easing-
|
|
3
|
-
import { t as SpinnerProps } from "./types-
|
|
4
|
-
//#region src/arc.d.ts
|
|
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";
|
|
5
4
|
export interface ArcProps extends SpinnerProps, EasingProps, CapProps {}
|
|
6
|
-
export declare function Arc({ cap, easing, ...rest }: ArcProps): import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function Arc({ cap, easing, ...rest }: ArcProps): import("react").JSX.Element;
|
package/dist/arc.js
CHANGED
|
@@ -2,7 +2,7 @@ import { linecap } from "./cap.js";
|
|
|
2
2
|
import { rotationCss, spinClass } from "./easing.js";
|
|
3
3
|
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/arc.tsx
|
|
6
6
|
const css = `
|
|
7
7
|
${rotationCss("arc")}
|
|
8
8
|
`;
|
|
@@ -27,5 +27,4 @@ function Arc({ cap, easing, ...rest }) {
|
|
|
27
27
|
})
|
|
28
28
|
})] });
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { Arc };
|
package/dist/atom.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { r as EasingProps } from "./easing-
|
|
2
|
-
import { t as SpinnerProps } from "./types-
|
|
3
|
-
//#region src/atom.d.ts
|
|
1
|
+
import { r as EasingProps } from "./easing-BM_1QWrA.js";
|
|
2
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
4
3
|
export interface AtomProps extends SpinnerProps, EasingProps {}
|
|
5
|
-
export declare function Atom({ easing, ...rest }: AtomProps): import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function Atom({ easing, ...rest }: AtomProps): import("react").JSX.Element;
|
package/dist/atom.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SIZE, stagger } from "./motion.js";
|
|
|
2
2
|
import { rotationCss, spinClass } from "./easing.js";
|
|
3
3
|
import { SpinnerStyle, cssVars, spinnerRoot, step } from "./frame.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/atom.tsx
|
|
6
6
|
const ORBITS = Array.from({ length: 3 }, (_, index) => index);
|
|
7
7
|
const TILT = 180 / ORBITS.length;
|
|
8
8
|
const css = `
|
|
@@ -66,5 +66,4 @@ function Atom({ easing, ...rest }) {
|
|
|
66
66
|
}, index))]
|
|
67
67
|
})] });
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
69
|
export { Atom };
|
package/dist/blocks.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
//#region src/blocks.d.ts
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
3
2
|
export type BlocksSweep = "columns" | "diagonal" | "rows";
|
|
4
3
|
export declare const DEFAULT_BLOCKS_SWEEP: BlocksSweep;
|
|
5
4
|
export interface BlocksProps extends SpinnerProps {
|
|
6
5
|
sweep?: BlocksSweep;
|
|
7
6
|
}
|
|
8
|
-
export declare function Blocks({ sweep, ...rest }: BlocksProps): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare function Blocks({ sweep, ...rest }: BlocksProps): import("react").JSX.Element;
|
package/dist/blocks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SIZE, animation, stagger } from "./motion.js";
|
|
2
2
|
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/blocks.tsx
|
|
5
5
|
const DEFAULT_BLOCKS_SWEEP = "diagonal";
|
|
6
6
|
const SIDE = 3;
|
|
7
7
|
const CELLS = Array.from({ length: 9 }, (_, index) => ({
|
|
@@ -70,5 +70,4 @@ function Blocks({ sweep = DEFAULT_BLOCKS_SWEEP, ...rest }) {
|
|
|
70
70
|
}, `${cell.col}-${cell.row}`))
|
|
71
71
|
})] });
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
export { Blocks, DEFAULT_BLOCKS_SWEEP };
|
package/dist/bouncing-dots.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function BouncingDots(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function BouncingDots(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/bouncing-dots.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SIZE, animation, stagger } from "./motion.js";
|
|
2
2
|
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/bouncing-dots.tsx
|
|
5
5
|
const DOTS = Array.from({ length: 3 }, (_, index) => index);
|
|
6
6
|
const css = `
|
|
7
7
|
.ld-bouncing-dots {
|
|
@@ -41,5 +41,4 @@ function BouncingDots(props) {
|
|
|
41
41
|
}, dot))
|
|
42
42
|
})] });
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { BouncingDots };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/cap.d.ts
|
|
2
1
|
type Cap = "flat" | "round";
|
|
3
2
|
declare const DEFAULT_CAP: Cap;
|
|
4
3
|
interface CapProps {
|
|
5
4
|
cap?: Cap;
|
|
6
5
|
}
|
|
7
6
|
declare function linecap(cap?: Cap): "butt" | "round";
|
|
8
|
-
//#endregion
|
|
9
7
|
export { linecap as i, CapProps as n, DEFAULT_CAP as r, Cap as t };
|
package/dist/cap.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as linecap, n as CapProps, r as DEFAULT_CAP, t as Cap } from "./cap-
|
|
1
|
+
import { i as linecap, n as CapProps, r as DEFAULT_CAP, t as Cap } from "./cap-B_Mo1a7N.js";
|
|
2
2
|
export { Cap, CapProps, DEFAULT_CAP, linecap };
|
package/dist/cap.js
CHANGED
package/dist/cascade.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { n as CapProps } from "./cap-
|
|
2
|
-
import { t as SpinnerProps } from "./types-
|
|
3
|
-
//#region src/cascade.d.ts
|
|
1
|
+
import { n as CapProps } from "./cap-B_Mo1a7N.js";
|
|
2
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
4
3
|
export interface CascadeProps extends SpinnerProps, CapProps {}
|
|
5
|
-
export declare function Cascade({ cap, ...rest }: CascadeProps): import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function Cascade({ cap, ...rest }: CascadeProps): import("react").JSX.Element;
|
package/dist/cascade.js
CHANGED
|
@@ -2,7 +2,7 @@ import { linecap } from "./cap.js";
|
|
|
2
2
|
import { animation, stagger } from "./motion.js";
|
|
3
3
|
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/cascade.tsx
|
|
6
6
|
const RADII = [
|
|
7
7
|
10.5,
|
|
8
8
|
7,
|
|
@@ -46,5 +46,4 @@ function Cascade({ cap, ...rest }) {
|
|
|
46
46
|
})
|
|
47
47
|
})] });
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { Cascade };
|
package/dist/chevrons.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
2
|
+
import { fadeCss } from "./fade.js";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
// src/chevrons.tsx
|
|
5
|
+
const CHEVRONS = [
|
|
6
|
+
3.5,
|
|
7
|
+
9,
|
|
8
|
+
14.5
|
|
9
|
+
];
|
|
10
|
+
const css = `
|
|
11
|
+
${fadeCss("chevrons", "chevron", CHEVRONS.length, {
|
|
12
|
+
dim: .2,
|
|
13
|
+
rest: .6
|
|
14
|
+
})}
|
|
15
|
+
`;
|
|
16
|
+
function Chevrons(props) {
|
|
17
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerStyle, {
|
|
18
|
+
name: "chevrons",
|
|
19
|
+
children: css
|
|
20
|
+
}), /* @__PURE__ */ jsx("svg", {
|
|
21
|
+
...spinnerRoot("chevrons", props),
|
|
22
|
+
fill: "none",
|
|
23
|
+
role: "presentation",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
strokeLinecap: "round",
|
|
26
|
+
strokeLinejoin: "round",
|
|
27
|
+
strokeWidth: "2.5",
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
children: CHEVRONS.map((x, index) => /* @__PURE__ */ jsx("path", {
|
|
30
|
+
className: "ld-chevrons-chevron",
|
|
31
|
+
d: `M${x} 6.5l5.5 5.5-5.5 5.5`,
|
|
32
|
+
style: step(index)
|
|
33
|
+
}, x))
|
|
34
|
+
})] });
|
|
35
|
+
}
|
|
36
|
+
export { Chevrons };
|
package/dist/circular-dots.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function CircularDots(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function CircularDots(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/circular-dots.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
2
2
|
import { fadeCss } from "./fade.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/circular-dots.tsx
|
|
5
5
|
const DOTS = [
|
|
6
6
|
[8, 1.5],
|
|
7
7
|
[12.5962, 3.4038],
|
|
@@ -36,5 +36,4 @@ function CircularDots(props) {
|
|
|
36
36
|
}, `${cx}-${cy}`))
|
|
37
37
|
})] });
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { CircularDots };
|
package/dist/classic-v2.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function ClassicV2(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function ClassicV2(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/classic-v2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
2
2
|
import { fadeCss } from "./fade.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/classic-v2.tsx
|
|
5
5
|
const TICKS = [
|
|
6
6
|
"M7.33334 0.666667C7.33334 0.298477 7.63181 0 8 0C8.36819 0 8.66667 0.298477 8.66667 0.666667V3.33333C8.66667 3.70152 8.36819 4 8 4C7.63181 4 7.33334 3.70152 7.33334 3.33333V0.666667Z",
|
|
7
7
|
"M11.7712 5.17154C11.5109 5.43189 11.0888 5.43189 10.8284 5.17154C10.5681 4.91119 10.5681 4.48908 10.8284 4.22873L12.714 2.34311C12.9744 2.08276 13.3965 2.08276 13.6568 2.34311C13.9172 2.60346 13.9172 3.02557 13.6568 3.28592L11.7712 5.17154Z",
|
|
@@ -37,5 +37,4 @@ function ClassicV2(props) {
|
|
|
37
37
|
})
|
|
38
38
|
})] });
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
export { ClassicV2 };
|
package/dist/classic.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function Classic(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function Classic(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/classic.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SIZE, STEP_VAR } from "./motion.js";
|
|
|
2
2
|
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
3
3
|
import { fadeCss } from "./fade.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/classic.tsx
|
|
6
6
|
const BARS = Array.from({ length: 12 }, (_, index) => index);
|
|
7
7
|
const css = `
|
|
8
8
|
.ld-classic-inner {
|
|
@@ -44,5 +44,4 @@ function Classic(props) {
|
|
|
44
44
|
})
|
|
45
45
|
})] });
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
export { Classic };
|
package/dist/clock.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { r as EasingProps } from "./easing-
|
|
2
|
-
import { t as SpinnerProps } from "./types-
|
|
3
|
-
//#region src/clock.d.ts
|
|
1
|
+
import { r as EasingProps } from "./easing-BM_1QWrA.js";
|
|
2
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
4
3
|
export interface ClockProps extends SpinnerProps, EasingProps {}
|
|
5
|
-
export declare function Clock({ easing, ...rest }: ClockProps): import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function Clock({ easing, ...rest }: ClockProps): import("react").JSX.Element;
|
package/dist/clock.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { rotationCss, spinClass } from "./easing.js";
|
|
2
2
|
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/clock.tsx
|
|
5
5
|
const css = `
|
|
6
6
|
${rotationCss("clock")}
|
|
7
7
|
`;
|
|
@@ -27,5 +27,4 @@ function Clock({ easing, ...rest }) {
|
|
|
27
27
|
})]
|
|
28
28
|
})] });
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { Clock };
|
package/dist/comet.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { r as EasingProps } from "./easing-
|
|
2
|
-
import { t as SpinnerProps } from "./types-
|
|
3
|
-
//#region src/comet.d.ts
|
|
1
|
+
import { r as EasingProps } from "./easing-BM_1QWrA.js";
|
|
2
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
4
3
|
export interface CometProps extends SpinnerProps, EasingProps {}
|
|
5
|
-
export declare function Comet({ easing, ...rest }: CometProps): import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function Comet({ easing, ...rest }: CometProps): import("react").JSX.Element;
|
package/dist/comet.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SIZE } from "./motion.js";
|
|
|
2
2
|
import { rotationCss, spinClass } from "./easing.js";
|
|
3
3
|
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/comet.tsx
|
|
6
6
|
const css = `
|
|
7
7
|
.ld-comet {
|
|
8
8
|
--ld-comet-stroke: calc(${SIZE} * 0.12);
|
|
@@ -48,5 +48,4 @@ function Comet({ easing, ...rest }) {
|
|
|
48
48
|
})
|
|
49
49
|
})] });
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { Comet };
|
package/dist/compass.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function Compass(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function Compass(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/compass.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { animation } from "./motion.js";
|
|
2
2
|
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/compass.tsx
|
|
5
5
|
const css = `
|
|
6
6
|
.ld-compass-ticks {
|
|
7
7
|
transform-origin: center;
|
|
@@ -35,5 +35,4 @@ function Compass(props) {
|
|
|
35
35
|
})
|
|
36
36
|
})] });
|
|
37
37
|
}
|
|
38
|
-
//#endregion
|
|
39
38
|
export { Compass };
|
package/dist/dual.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { n as CapProps } from "./cap-
|
|
2
|
-
import { r as EasingProps } from "./easing-
|
|
3
|
-
import { t as SpinnerProps } from "./types-
|
|
4
|
-
//#region src/dual.d.ts
|
|
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";
|
|
5
4
|
export interface DualProps extends SpinnerProps, EasingProps, CapProps {}
|
|
6
|
-
export declare function Dual({ cap, easing, ...rest }: DualProps): import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function Dual({ cap, easing, ...rest }: DualProps): import("react").JSX.Element;
|
package/dist/dual.js
CHANGED
|
@@ -2,7 +2,7 @@ import { linecap } from "./cap.js";
|
|
|
2
2
|
import { rotationCss, spinClass } from "./easing.js";
|
|
3
3
|
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/dual.tsx
|
|
6
6
|
const css = `
|
|
7
7
|
${rotationCss("dual")}
|
|
8
8
|
|
|
@@ -43,5 +43,4 @@ function Dual({ cap, easing, ...rest }) {
|
|
|
43
43
|
})]
|
|
44
44
|
})] });
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
export { Dual };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { l as SpinnerName } from "./motion-
|
|
2
|
-
//#region src/easing.d.ts
|
|
1
|
+
import { l as SpinnerName } from "./motion-trIEyOxA.js";
|
|
3
2
|
type Easing = "linear" | "ease-in-out" | "stacked";
|
|
4
3
|
declare const DEFAULT_EASING: Easing;
|
|
5
4
|
interface EasingProps {
|
|
@@ -7,5 +6,4 @@ interface EasingProps {
|
|
|
7
6
|
}
|
|
8
7
|
declare function spinClass(name: SpinnerName, easing?: Easing): string;
|
|
9
8
|
declare function rotationCss(name: SpinnerName, turn?: string): string;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { spinClass as a, rotationCss as i, Easing as n, EasingProps as r, DEFAULT_EASING as t };
|
package/dist/easing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as spinClass, i as rotationCss, n as Easing, r as EasingProps, t as DEFAULT_EASING } from "./easing-
|
|
1
|
+
import { a as spinClass, i as rotationCss, n as Easing, r as EasingProps, t as DEFAULT_EASING } from "./easing-BM_1QWrA.js";
|
|
2
2
|
export { DEFAULT_EASING, Easing, EasingProps, rotationCss, spinClass };
|
package/dist/easing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { animation } from "./motion.js";
|
|
2
|
-
|
|
2
|
+
// src/easing.ts
|
|
3
3
|
const DEFAULT_EASING = "linear";
|
|
4
4
|
function spinClass(name, easing = DEFAULT_EASING) {
|
|
5
5
|
const base = `ld-${name}-spin`;
|
|
@@ -30,5 +30,4 @@ function rotationCss(name, turn = ROTATE) {
|
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { DEFAULT_EASING, rotationCss, spinClass };
|
package/dist/eclipse.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function Eclipse(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function Eclipse(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/eclipse.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { STEP_VAR, animation, stagger } from "./motion.js";
|
|
2
2
|
import { SpinnerStyle, spinnerRoot, step } from "./frame.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/eclipse.tsx
|
|
5
5
|
const DOTS = [0, 1];
|
|
6
6
|
const css = `
|
|
7
7
|
.ld-eclipse {
|
|
@@ -65,5 +65,4 @@ function Eclipse(props) {
|
|
|
65
65
|
}, index))
|
|
66
66
|
})] });
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
68
|
export { Eclipse };
|
package/dist/fade.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { l as SpinnerName } from "./motion-
|
|
2
|
-
//#region src/fade.d.ts
|
|
1
|
+
import { l as SpinnerName } from "./motion-trIEyOxA.js";
|
|
3
2
|
export declare function fadeCss(name: SpinnerName, element: string, count: number, { dim, rest }: {
|
|
4
3
|
dim: number;
|
|
5
4
|
rest: number;
|
|
6
|
-
}): string;
|
|
7
|
-
//#endregion
|
|
5
|
+
}): string;
|
package/dist/fade.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { animation, stagger } from "./motion.js";
|
|
2
|
-
|
|
2
|
+
// src/fade.ts
|
|
3
3
|
function fadeCss(name, element, count, { dim, rest }) {
|
|
4
4
|
return `
|
|
5
5
|
.ld-${name}-${element} {
|
|
@@ -23,5 +23,4 @@ function fadeCss(name, element, count, { dim, rest }) {
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { fadeCss };
|
package/dist/fill.d.ts
ADDED
package/dist/fill.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { animation } from "./motion.js";
|
|
2
|
+
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
// src/fill.tsx
|
|
5
|
+
const LENGTH = 100;
|
|
6
|
+
const css = `
|
|
7
|
+
.ld-fill-pie {
|
|
8
|
+
${animation("fill", "ld-fill-sweep", "cubic-bezier(0.65, 0, 0.35, 1)")}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes ld-fill-sweep {
|
|
12
|
+
0% {
|
|
13
|
+
stroke-dasharray: 0 ${LENGTH};
|
|
14
|
+
stroke-dashoffset: 0;
|
|
15
|
+
}
|
|
16
|
+
50% {
|
|
17
|
+
stroke-dasharray: ${LENGTH} ${LENGTH};
|
|
18
|
+
stroke-dashoffset: 0;
|
|
19
|
+
}
|
|
20
|
+
100% {
|
|
21
|
+
stroke-dasharray: ${LENGTH} ${LENGTH};
|
|
22
|
+
stroke-dashoffset: -100;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (prefers-reduced-motion: reduce) {
|
|
27
|
+
.ld-fill-pie {
|
|
28
|
+
stroke-dasharray: ${LENGTH / 4} ${LENGTH};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
function Fill(props) {
|
|
33
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerStyle, {
|
|
34
|
+
name: "fill",
|
|
35
|
+
children: css
|
|
36
|
+
}), /* @__PURE__ */ jsxs("svg", {
|
|
37
|
+
...spinnerRoot("fill", props),
|
|
38
|
+
fill: "none",
|
|
39
|
+
role: "presentation",
|
|
40
|
+
stroke: "currentColor",
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
43
|
+
cx: "12",
|
|
44
|
+
cy: "12",
|
|
45
|
+
opacity: "0.2",
|
|
46
|
+
r: "10.25",
|
|
47
|
+
strokeWidth: "2.5"
|
|
48
|
+
}), /* @__PURE__ */ jsx("circle", {
|
|
49
|
+
className: "ld-fill-pie",
|
|
50
|
+
cx: "12",
|
|
51
|
+
cy: "12",
|
|
52
|
+
pathLength: LENGTH,
|
|
53
|
+
r: "3.75",
|
|
54
|
+
strokeWidth: "7.5",
|
|
55
|
+
transform: "rotate(-90 12 12)"
|
|
56
|
+
})]
|
|
57
|
+
})] });
|
|
58
|
+
}
|
|
59
|
+
export { Fill };
|
package/dist/flip.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function Flip(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function Flip(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/flip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SIZE, animation } from "./motion.js";
|
|
2
2
|
import { SpinnerStyle, spinnerRoot } from "./frame.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/flip.tsx
|
|
5
5
|
const css = `
|
|
6
6
|
.ld-flip {
|
|
7
7
|
perspective: calc(${SIZE} * 3);
|
|
@@ -37,5 +37,4 @@ function Flip(props) {
|
|
|
37
37
|
children: /* @__PURE__ */ jsx("div", { className: "ld-flip-face" })
|
|
38
38
|
})] });
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
export { Flip };
|
package/dist/frame.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { l as SpinnerName } from "./motion-
|
|
2
|
-
import { t as SpinnerProps } from "./types-
|
|
1
|
+
import { l as SpinnerName } from "./motion-trIEyOxA.js";
|
|
2
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
3
3
|
import { CSSProperties } from "react";
|
|
4
|
-
//#region src/frame.d.ts
|
|
5
4
|
export declare function SpinnerStyle({ children, name }: {
|
|
6
5
|
children: string;
|
|
7
6
|
name: SpinnerName;
|
|
@@ -12,5 +11,4 @@ export declare function spinnerRoot(name: SpinnerName, { className, color, durat
|
|
|
12
11
|
"aria-hidden": boolean;
|
|
13
12
|
className: string;
|
|
14
13
|
style: CSSProperties;
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
14
|
+
};
|
package/dist/frame.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DURATION_VAR, PLAY_STATE_VAR, SIZE, SIZE_VAR, STEP_VAR } from "./motion.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/frame.tsx
|
|
4
4
|
function SpinnerStyle({ children, name }) {
|
|
5
5
|
return /* @__PURE__ */ jsx("style", {
|
|
6
6
|
href: `ld-${name}`,
|
|
@@ -38,5 +38,4 @@ function spinnerRoot(name, { className, color, duration, playState, size = 20 })
|
|
|
38
38
|
})
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { SpinnerStyle, cssVars, spinnerRoot, step };
|
package/dist/gather.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { t as SpinnerProps } from "./types-
|
|
2
|
-
|
|
3
|
-
export declare function Gather(props: SpinnerProps): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as SpinnerProps } from "./types-D9_cXnjI.js";
|
|
2
|
+
export declare function Gather(props: SpinnerProps): import("react").JSX.Element;
|
package/dist/gather.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SIZE, animation } from "./motion.js";
|
|
2
2
|
import { SpinnerStyle, cssVars, spinnerRoot } from "./frame.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/gather.tsx
|
|
5
5
|
const BLOCKS = [
|
|
6
6
|
{
|
|
7
7
|
x: 1,
|
|
@@ -81,5 +81,4 @@ function Gather(props) {
|
|
|
81
81
|
})
|
|
82
82
|
})] });
|
|
83
83
|
}
|
|
84
|
-
//#endregion
|
|
85
84
|
export { Gather };
|