loading-dev 0.3.5 → 0.3.6

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.
Files changed (114) hide show
  1. package/dist/arc.d.ts +7 -11
  2. package/dist/arc.js +31 -10
  3. package/dist/atom.d.ts +6 -10
  4. package/dist/atom.js +70 -9
  5. package/dist/blocks.d.ts +8 -10
  6. package/dist/blocks.js +73 -9
  7. package/dist/bouncing-dots.d.ts +4 -6
  8. package/dist/bouncing-dots.js +45 -8
  9. package/dist/cap-Ba3uZx03.d.ts +9 -0
  10. package/dist/cap.d.ts +2 -8
  11. package/dist/cap.js +7 -8
  12. package/dist/cascade.d.ts +6 -9
  13. package/dist/cascade.js +50 -9
  14. package/dist/circular-dots.d.ts +4 -6
  15. package/dist/circular-dots.js +40 -9
  16. package/dist/classic-v2.d.ts +4 -6
  17. package/dist/classic-v2.js +41 -9
  18. package/dist/classic.d.ts +4 -6
  19. package/dist/classic.js +48 -9
  20. package/dist/clock.d.ts +6 -10
  21. package/dist/clock.js +31 -9
  22. package/dist/comet.d.ts +6 -10
  23. package/dist/comet.js +52 -9
  24. package/dist/compass.d.ts +4 -6
  25. package/dist/compass.js +39 -8
  26. package/dist/dual.d.ts +7 -11
  27. package/dist/dual.js +47 -10
  28. package/dist/easing-DhnLArHS.d.ts +11 -0
  29. package/dist/easing.d.ts +2 -11
  30. package/dist/easing.js +34 -11
  31. package/dist/eclipse.d.ts +4 -6
  32. package/dist/eclipse.js +69 -8
  33. package/dist/fade.d.ts +6 -7
  34. package/dist/fade.js +27 -7
  35. package/dist/flip.d.ts +4 -6
  36. package/dist/flip.js +41 -8
  37. package/dist/frame.d.ts +15 -17
  38. package/dist/frame.js +42 -13
  39. package/dist/gather.d.ts +4 -6
  40. package/dist/gather.js +85 -8
  41. package/dist/index.d.ts +35 -35
  42. package/dist/index.js +34 -146
  43. package/dist/leap.d.ts +4 -6
  44. package/dist/leap.js +67 -8
  45. package/dist/linear-dots.d.ts +4 -6
  46. package/dist/linear-dots.js +54 -8
  47. package/dist/loading.d.ts +4 -6
  48. package/dist/loading.js +64 -9
  49. package/dist/morph.d.ts +4 -6
  50. package/dist/morph.js +40 -8
  51. package/dist/motion-D_zUuA3S.d.ts +45 -0
  52. package/dist/motion.d.ts +2 -44
  53. package/dist/motion.js +50 -25
  54. package/dist/orbit.d.ts +6 -10
  55. package/dist/orbit.js +44 -9
  56. package/dist/pulse.d.ts +4 -6
  57. package/dist/pulse.js +52 -8
  58. package/dist/radar.d.ts +6 -10
  59. package/dist/radar.js +64 -9
  60. package/dist/ring.d.ts +7 -11
  61. package/dist/ring.js +38 -10
  62. package/dist/ripple.d.ts +8 -10
  63. package/dist/ripple.js +57 -10
  64. package/dist/slide.d.ts +4 -6
  65. package/dist/slide.js +74 -8
  66. package/dist/snake.d.ts +7 -11
  67. package/dist/snake.js +59 -10
  68. package/dist/spinners.d.ts +61 -67
  69. package/dist/spinners.js +62 -39
  70. package/dist/swirl.d.ts +4 -6
  71. package/dist/swirl.js +50 -9
  72. package/dist/trace.d.ts +7 -11
  73. package/dist/trace.js +45 -9
  74. package/dist/types-BYaenrWm.d.ts +10 -0
  75. package/dist/types.d.ts +2 -9
  76. package/dist/types.js +1 -0
  77. package/dist/wave.d.ts +8 -10
  78. package/dist/wave.js +56 -10
  79. package/package.json +14 -14
  80. package/dist/chunk-2LMGBBRJ.js +0 -77
  81. package/dist/chunk-2OX27TAE.js +0 -69
  82. package/dist/chunk-2TYML5J2.js +0 -51
  83. package/dist/chunk-3WMZVDPS.js +0 -61
  84. package/dist/chunk-4O4ADYWE.js +0 -73
  85. package/dist/chunk-5UAEBEER.js +0 -78
  86. package/dist/chunk-A2PZBHTA.js +0 -41
  87. package/dist/chunk-BAVSTTWG.js +0 -88
  88. package/dist/chunk-BCIAMPLU.js +0 -87
  89. package/dist/chunk-DKYEZLIN.js +0 -72
  90. package/dist/chunk-FQ2U2M7F.js +0 -76
  91. package/dist/chunk-FWH6VWVK.js +0 -59
  92. package/dist/chunk-HL7TIIDB.js +0 -124
  93. package/dist/chunk-IJJULNRU.js +0 -53
  94. package/dist/chunk-JKLL7YYG.js +0 -85
  95. package/dist/chunk-JNR4T6LZ.js +0 -10
  96. package/dist/chunk-JQNF5GYA.js +0 -52
  97. package/dist/chunk-KAZ5BTXC.js +0 -74
  98. package/dist/chunk-KOYM24WV.js +0 -72
  99. package/dist/chunk-L2DUMHO4.js +0 -69
  100. package/dist/chunk-LDXBT62V.js +0 -57
  101. package/dist/chunk-MAKBZTL3.js +0 -56
  102. package/dist/chunk-OMNMMKI7.js +0 -64
  103. package/dist/chunk-P4BSSDSY.js +0 -51
  104. package/dist/chunk-PM6DU637.js +0 -70
  105. package/dist/chunk-PVVWLDIS.js +0 -33
  106. package/dist/chunk-R5ZDKN3Z.js +0 -59
  107. package/dist/chunk-RAHAQ7XK.js +0 -61
  108. package/dist/chunk-SUUR5WMA.js +0 -46
  109. package/dist/chunk-UAO52LUL.js +0 -48
  110. package/dist/chunk-ULWRXY3A.js +0 -50
  111. package/dist/chunk-UOXB5QOZ.js +0 -81
  112. package/dist/chunk-UXTZTFNZ.js +0 -62
  113. package/dist/chunk-VZX7APSS.js +0 -82
  114. package/dist/chunk-YIB63EKJ.js +0 -49
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -1,53 +0,0 @@
1
- import {
2
- fadeCss
3
- } from "./chunk-PVVWLDIS.js";
4
- import {
5
- SpinnerStyle,
6
- spinnerRoot,
7
- step
8
- } from "./chunk-UAO52LUL.js";
9
- import {
10
- SIZE,
11
- STEP_VAR
12
- } from "./chunk-OMNMMKI7.js";
13
-
14
- // src/classic.tsx
15
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
- var BARS = Array.from({ length: 12 }, (_, index) => index);
17
- var css = `
18
- .ld-classic {
19
- width: ${SIZE};
20
- height: ${SIZE};
21
- }
22
-
23
- .ld-classic-inner {
24
- position: relative;
25
- top: 50%;
26
- left: 50%;
27
- width: ${SIZE};
28
- height: ${SIZE};
29
- }
30
-
31
- .ld-classic-bar {
32
- position: absolute;
33
- top: -3.9%;
34
- left: -10%;
35
- width: 24%;
36
- height: 8%;
37
- background: currentColor;
38
- border-radius: 6px;
39
- transform: rotate(calc(var(${STEP_VAR}) * 30deg)) translate(146%);
40
- }
41
-
42
- ${fadeCss("classic", "bar", BARS.length, { dim: 0.15, rest: 0.5 })}
43
- `;
44
- function Classic(props) {
45
- return /* @__PURE__ */ jsxs(Fragment, { children: [
46
- /* @__PURE__ */ jsx(SpinnerStyle, { name: "classic", children: css }),
47
- /* @__PURE__ */ jsx("div", { ...spinnerRoot("classic", props), children: /* @__PURE__ */ jsx("div", { className: "ld-classic-inner", children: BARS.map((bar) => /* @__PURE__ */ jsx("div", { className: "ld-classic-bar", style: step(bar) }, bar)) }) })
48
- ] });
49
- }
50
-
51
- export {
52
- Classic
53
- };
@@ -1,85 +0,0 @@
1
- import {
2
- SpinnerStyle,
3
- cssVars,
4
- spinnerRoot
5
- } from "./chunk-UAO52LUL.js";
6
- import {
7
- SIZE,
8
- animation
9
- } from "./chunk-OMNMMKI7.js";
10
-
11
- // src/gather.tsx
12
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
- var BLOCKS = [
14
- { x: 1, y: 1 },
15
- { x: -1, y: 1 },
16
- { x: 1, y: -1 },
17
- { x: -1, y: -1 }
18
- ];
19
- var GAP = 24;
20
- var GAP_IN = 8;
21
- var BLOCK = (100 - GAP) / 2;
22
- var PULL = `${((GAP - GAP_IN) / 2 / BLOCK * 100).toFixed(1)}%`;
23
- var css = `
24
- .ld-gather {
25
- width: ${SIZE};
26
- height: ${SIZE};
27
- }
28
-
29
- .ld-gather-group {
30
- display: grid;
31
- grid-template-columns: 1fr 1fr;
32
- gap: ${GAP}%;
33
- width: 100%;
34
- height: 100%;
35
- ${animation("gather", "ld-gather-turn", "ease-in-out")}
36
- }
37
-
38
- .ld-gather-block {
39
- background: currentColor;
40
- border-radius: calc(${SIZE} * 0.14);
41
- ${animation("gather", "ld-gather-pull", "ease-in-out")}
42
- }
43
-
44
- @keyframes ld-gather-pull {
45
- 0%,
46
- 100% {
47
- transform: translate(0, 0);
48
- }
49
- 30%,
50
- 60% {
51
- transform: translate(
52
- calc(var(--ld-gather-x) * ${PULL}),
53
- calc(var(--ld-gather-y) * ${PULL})
54
- );
55
- }
56
- }
57
-
58
- @keyframes ld-gather-turn {
59
- 0%,
60
- 30% {
61
- transform: rotate(0);
62
- }
63
- 60%,
64
- 100% {
65
- transform: rotate(90deg);
66
- }
67
- }
68
- `;
69
- function Gather(props) {
70
- return /* @__PURE__ */ jsxs(Fragment, { children: [
71
- /* @__PURE__ */ jsx(SpinnerStyle, { name: "gather", children: css }),
72
- /* @__PURE__ */ jsx("div", { ...spinnerRoot("gather", props), children: /* @__PURE__ */ jsx("div", { className: "ld-gather-group", children: BLOCKS.map(({ x, y }) => /* @__PURE__ */ jsx(
73
- "div",
74
- {
75
- className: "ld-gather-block",
76
- style: cssVars({ "--ld-gather-x": x, "--ld-gather-y": y })
77
- },
78
- `${x}${y}`
79
- )) }) })
80
- ] });
81
- }
82
-
83
- export {
84
- Gather
85
- };
@@ -1,10 +0,0 @@
1
- // src/cap.ts
2
- var DEFAULT_CAP = "round";
3
- function linecap(cap = DEFAULT_CAP) {
4
- return cap === "flat" ? "butt" : "round";
5
- }
6
-
7
- export {
8
- DEFAULT_CAP,
9
- linecap
10
- };
@@ -1,52 +0,0 @@
1
- import {
2
- SpinnerStyle,
3
- spinnerRoot
4
- } from "./chunk-UAO52LUL.js";
5
- import {
6
- SIZE,
7
- animation
8
- } from "./chunk-OMNMMKI7.js";
9
-
10
- // src/compass.tsx
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
- var css = `
13
- .ld-compass {
14
- width: ${SIZE};
15
- height: ${SIZE};
16
- }
17
-
18
- .ld-compass-ticks {
19
- transform-origin: center;
20
- ${animation("compass", "ld-compass-turn", "ease-in-out")}
21
- }
22
-
23
- @keyframes ld-compass-turn {
24
- to {
25
- transform: rotate(90deg);
26
- }
27
- }
28
- `;
29
- function Compass(props) {
30
- return /* @__PURE__ */ jsxs(Fragment, { children: [
31
- /* @__PURE__ */ jsx(SpinnerStyle, { name: "compass", children: css }),
32
- /* @__PURE__ */ jsx(
33
- "svg",
34
- {
35
- ...spinnerRoot("compass", props),
36
- fill: "none",
37
- role: "presentation",
38
- viewBox: "0 0 16 16",
39
- children: /* @__PURE__ */ jsxs("g", { className: "ld-compass-ticks", fill: "currentColor", children: [
40
- /* @__PURE__ */ jsx("path", { d: "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" }),
41
- /* @__PURE__ */ jsx("path", { d: "M12.6667 8.66667C12.2985 8.66667 12 8.3682 12 8.00001C12 7.63182 12.2985 7.33334 12.6667 7.33334H15.3333C15.7015 7.33334 16 7.63182 16 8.00001C16 8.3682 15.7015 8.66667 15.3333 8.66667H12.6667Z" }),
42
- /* @__PURE__ */ jsx("path", { d: "M7.33333 12.6667C7.33333 12.2985 7.63181 12 8 12C8.36819 12 8.66667 12.2985 8.66667 12.6667V15.3333C8.66667 15.7015 8.36819 16 8 16C7.63181 16 7.33333 15.7015 7.33333 15.3333V12.6667Z" }),
43
- /* @__PURE__ */ jsx("path", { d: "M0.666667 8.66667C0.298477 8.66667 1.60941e-08 8.3682 0 8.00001C-1.60941e-08 7.63182 0.298477 7.33334 0.666667 7.33334H3.33333C3.70152 7.33334 4 7.63182 4 8.00001C4 8.3682 3.70152 8.66667 3.33333 8.66667H0.666667Z" })
44
- ] })
45
- }
46
- )
47
- ] });
48
- }
49
-
50
- export {
51
- Compass
52
- };
@@ -1,74 +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/trace.tsx
17
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
18
- var VIEW = 20;
19
- var SIDE = 17.5;
20
- var RADIUS = 4;
21
- var PERIMETER = 4 * (SIDE - 2 * RADIUS) + 2 * Math.PI * RADIUS;
22
- var DASH = 16;
23
- var RECT = {
24
- height: SIDE,
25
- rx: RADIUS,
26
- width: SIDE,
27
- x: (VIEW - SIDE) / 2,
28
- y: (VIEW - SIDE) / 2
29
- };
30
- var css = `
31
- .ld-trace {
32
- width: ${SIZE};
33
- height: ${SIZE};
34
- }
35
-
36
- ${rotationCss(
37
- "trace",
38
- `to {
39
- stroke-dashoffset: ${-PERIMETER};
40
- }`
41
- )}
42
- `;
43
- function Trace({ cap, easing, ...rest }) {
44
- return /* @__PURE__ */ jsxs(Fragment, { children: [
45
- /* @__PURE__ */ jsx(SpinnerStyle, { name: "trace", children: css }),
46
- /* @__PURE__ */ jsxs(
47
- "svg",
48
- {
49
- ...spinnerRoot("trace", rest),
50
- fill: "none",
51
- role: "presentation",
52
- stroke: "currentColor",
53
- strokeWidth: "2.5",
54
- viewBox: `0 0 ${VIEW} ${VIEW}`,
55
- children: [
56
- /* @__PURE__ */ jsx("rect", { ...RECT, opacity: "0.2" }),
57
- /* @__PURE__ */ jsx(
58
- "rect",
59
- {
60
- ...RECT,
61
- className: spinClass("trace", easing),
62
- strokeDasharray: `${DASH} ${PERIMETER - DASH}`,
63
- strokeLinecap: linecap(cap)
64
- }
65
- )
66
- ]
67
- }
68
- )
69
- ] });
70
- }
71
-
72
- export {
73
- Trace
74
- };
@@ -1,72 +0,0 @@
1
- import {
2
- linecap
3
- } from "./chunk-JNR4T6LZ.js";
4
- import {
5
- SpinnerStyle,
6
- spinnerRoot,
7
- step
8
- } from "./chunk-UAO52LUL.js";
9
- import {
10
- SIZE,
11
- animation,
12
- stagger
13
- } from "./chunk-OMNMMKI7.js";
14
-
15
- // src/cascade.tsx
16
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
- var RADII = [10.5, 7, 3.5];
18
- var SLOTS = 24;
19
- var css = `
20
- .ld-cascade {
21
- width: ${SIZE};
22
- height: ${SIZE};
23
- }
24
-
25
- .ld-cascade-arc {
26
- transform-origin: center;
27
- ${animation("cascade", "ld-cascade-turn", "cubic-bezier(0.68, -0.75, 0.265, 1.75)")}
28
- animation-delay: ${stagger("cascade", SLOTS)};
29
- }
30
-
31
- @keyframes ld-cascade-turn {
32
- to {
33
- transform: rotate(360deg);
34
- }
35
- }
36
- `;
37
- function Cascade({ cap, ...rest }) {
38
- return /* @__PURE__ */ jsxs(Fragment, { children: [
39
- /* @__PURE__ */ jsx(SpinnerStyle, { name: "cascade", children: css }),
40
- /* @__PURE__ */ jsx(
41
- "svg",
42
- {
43
- ...spinnerRoot("cascade", rest),
44
- fill: "none",
45
- role: "presentation",
46
- stroke: "currentColor",
47
- strokeLinecap: linecap(cap),
48
- strokeWidth: "2",
49
- viewBox: "0 0 24 24",
50
- children: RADII.map((r, index) => {
51
- const circumference = 2 * Math.PI * r;
52
- return /* @__PURE__ */ jsx(
53
- "circle",
54
- {
55
- className: "ld-cascade-arc",
56
- cx: "12",
57
- cy: "12",
58
- r,
59
- strokeDasharray: `${circumference / 4} ${circumference * 3 / 4}`,
60
- style: step(index)
61
- },
62
- r
63
- );
64
- })
65
- }
66
- )
67
- ] });
68
- }
69
-
70
- export {
71
- Cascade
72
- };
@@ -1,69 +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/ring.tsx
17
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
18
- var css = `
19
- .ld-ring {
20
- width: ${SIZE};
21
- height: ${SIZE};
22
- }
23
-
24
- ${rotationCss("ring")}
25
- `;
26
- function Ring({ cap, easing, ...rest }) {
27
- return /* @__PURE__ */ jsxs(Fragment, { children: [
28
- /* @__PURE__ */ jsx(SpinnerStyle, { name: "ring", children: css }),
29
- /* @__PURE__ */ jsxs(
30
- "svg",
31
- {
32
- ...spinnerRoot("ring", rest),
33
- fill: "none",
34
- role: "presentation",
35
- viewBox: "0 0 24 24",
36
- children: [
37
- /* @__PURE__ */ jsx(
38
- "circle",
39
- {
40
- cx: "12",
41
- cy: "12",
42
- opacity: "0.2",
43
- r: "10",
44
- stroke: "currentColor",
45
- strokeWidth: "2.5"
46
- }
47
- ),
48
- /* @__PURE__ */ jsx(
49
- "circle",
50
- {
51
- className: spinClass("ring", easing),
52
- cx: "12",
53
- cy: "12",
54
- r: "10",
55
- stroke: "currentColor",
56
- strokeDasharray: "16 46.8",
57
- strokeLinecap: linecap(cap),
58
- strokeWidth: "2.5"
59
- }
60
- )
61
- ]
62
- }
63
- )
64
- ] });
65
- }
66
-
67
- export {
68
- Ring
69
- };