loading-dev 0.3.1 → 0.3.4

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 (108) hide show
  1. package/README.md +2 -2
  2. package/dist/arc.d.ts +11 -0
  3. package/dist/arc.js +10 -0
  4. package/dist/atom.d.ts +10 -0
  5. package/dist/atom.js +9 -0
  6. package/dist/blocks.d.ts +11 -0
  7. package/dist/blocks.js +10 -0
  8. package/dist/bouncing-dots.d.ts +6 -0
  9. package/dist/bouncing-dots.js +8 -0
  10. package/dist/cap.d.ts +8 -0
  11. package/dist/cap.js +8 -0
  12. package/dist/cascade.d.ts +9 -0
  13. package/dist/cascade.js +9 -0
  14. package/dist/chunk-5A6DX4J6.js +62 -0
  15. package/dist/chunk-5DLURQGF.js +88 -0
  16. package/dist/chunk-5DS5PSRD.js +124 -0
  17. package/dist/chunk-5LSP7MQQ.js +69 -0
  18. package/dist/chunk-5R75HMWP.js +55 -0
  19. package/dist/chunk-7C6Q6WUN.js +47 -0
  20. package/dist/chunk-A43AJR54.js +79 -0
  21. package/dist/chunk-AHW6IXXT.js +78 -0
  22. package/dist/chunk-AY4VLQBZ.js +57 -0
  23. package/dist/chunk-BMJ3AGRK.js +62 -0
  24. package/dist/chunk-FKUMWHUL.js +71 -0
  25. package/dist/chunk-HDBQBCTN.js +74 -0
  26. package/dist/chunk-I5CFO2M5.js +78 -0
  27. package/dist/chunk-IQ2WQZFY.js +51 -0
  28. package/dist/chunk-IRMB7CHZ.js +88 -0
  29. package/dist/chunk-IWVH2GKE.js +77 -0
  30. package/dist/chunk-IZ4TRHOC.js +68 -0
  31. package/dist/chunk-JNR4T6LZ.js +10 -0
  32. package/dist/chunk-K5XVX5GB.js +60 -0
  33. package/dist/chunk-LIPOYJAI.js +74 -0
  34. package/dist/chunk-MVL7SVAH.js +79 -0
  35. package/dist/chunk-NHN4FV63.js +78 -0
  36. package/dist/chunk-OMNMMKI7.js +64 -0
  37. package/dist/chunk-PBB2PRPT.js +83 -0
  38. package/dist/chunk-RTKHVDCD.js +82 -0
  39. package/dist/chunk-T5EUYN7R.js +77 -0
  40. package/dist/chunk-T7OV7MUW.js +58 -0
  41. package/dist/chunk-TFHDE6YZ.js +92 -0
  42. package/dist/chunk-UWSCBISJ.js +56 -0
  43. package/dist/chunk-VBI53UGV.js +73 -0
  44. package/dist/chunk-VRX5ZYC6.js +41 -0
  45. package/dist/chunk-X7BJQCYL.js +56 -0
  46. package/dist/chunk-Y7QGIWTL.js +57 -0
  47. package/dist/chunk-ZLJYYX76.js +69 -0
  48. package/dist/circular-dots.d.ts +6 -0
  49. package/dist/circular-dots.js +8 -0
  50. package/dist/classic-v2.d.ts +6 -0
  51. package/dist/classic-v2.js +8 -0
  52. package/dist/classic.d.ts +6 -0
  53. package/dist/classic.js +8 -0
  54. package/dist/clock.d.ts +10 -0
  55. package/dist/clock.js +9 -0
  56. package/dist/comet.d.ts +10 -0
  57. package/dist/comet.js +9 -0
  58. package/dist/compass.d.ts +6 -0
  59. package/dist/compass.js +8 -0
  60. package/dist/dual.d.ts +11 -0
  61. package/dist/dual.js +10 -0
  62. package/dist/easing.d.ts +11 -0
  63. package/dist/easing.js +11 -0
  64. package/dist/eclipse.d.ts +6 -0
  65. package/dist/eclipse.js +8 -0
  66. package/dist/flip.d.ts +6 -0
  67. package/dist/flip.js +8 -0
  68. package/dist/frame.d.ts +20 -0
  69. package/dist/frame.js +13 -0
  70. package/dist/gather.d.ts +6 -0
  71. package/dist/gather.js +8 -0
  72. package/dist/index.d.ts +35 -135
  73. package/dist/index.js +126 -891
  74. package/dist/leap.d.ts +6 -0
  75. package/dist/leap.js +8 -0
  76. package/dist/linear-dots.d.ts +6 -0
  77. package/dist/linear-dots.js +8 -0
  78. package/dist/loading.d.ts +6 -0
  79. package/dist/loading.js +8 -0
  80. package/dist/morph.d.ts +6 -0
  81. package/dist/morph.js +8 -0
  82. package/dist/motion.d.ts +44 -0
  83. package/dist/motion.js +26 -0
  84. package/dist/orbit.d.ts +10 -0
  85. package/dist/orbit.js +9 -0
  86. package/dist/pulse.d.ts +6 -0
  87. package/dist/pulse.js +8 -0
  88. package/dist/radar.d.ts +10 -0
  89. package/dist/radar.js +9 -0
  90. package/dist/ring.d.ts +11 -0
  91. package/dist/ring.js +10 -0
  92. package/dist/ripple.d.ts +11 -0
  93. package/dist/ripple.js +10 -0
  94. package/dist/slide.d.ts +6 -0
  95. package/dist/slide.js +8 -0
  96. package/dist/snake.d.ts +11 -0
  97. package/dist/snake.js +10 -0
  98. package/dist/spinners.d.ts +68 -0
  99. package/dist/spinners.js +39 -0
  100. package/dist/swirl.d.ts +6 -0
  101. package/dist/swirl.js +8 -0
  102. package/dist/trace.d.ts +11 -0
  103. package/dist/trace.js +10 -0
  104. package/dist/types.d.ts +23 -0
  105. package/dist/types.js +0 -0
  106. package/dist/wave.d.ts +11 -0
  107. package/dist/wave.js +10 -0
  108. package/package.json +4 -2
package/dist/leap.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function Leap(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { Leap };
package/dist/leap.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ Leap
3
+ } from "./chunk-LIPOYJAI.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Leap
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function LinearDots(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { LinearDots };
@@ -0,0 +1,8 @@
1
+ import {
2
+ LinearDots
3
+ } from "./chunk-K5XVX5GB.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ LinearDots
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function Loading(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { Loading };
@@ -0,0 +1,8 @@
1
+ import {
2
+ Loading
3
+ } from "./chunk-MVL7SVAH.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Loading
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function Morph(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { Morph };
package/dist/morph.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ Morph
3
+ } from "./chunk-AY4VLQBZ.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Morph
8
+ };
@@ -0,0 +1,44 @@
1
+ declare const DURATION_VAR = "--ld-duration";
2
+ declare const PLAY_STATE_VAR = "--ld-play-state";
3
+ declare const SIZE_VAR = "--ld-size";
4
+ declare const STEP_VAR = "--ld-step";
5
+ declare const DEFAULT_SIZE = 20;
6
+ declare const SIZE = "var(--ld-size, 20px)";
7
+ declare const SPINNER_MOTION: {
8
+ readonly arc: 800;
9
+ readonly atom: 1000;
10
+ readonly blocks: 1300;
11
+ readonly "bouncing-dots": 500;
12
+ readonly cascade: 1500;
13
+ readonly "circular-dots": 800;
14
+ readonly classic: 1200;
15
+ readonly "classic-v2": 800;
16
+ readonly clock: 1200;
17
+ readonly comet: 700;
18
+ readonly compass: 500;
19
+ readonly dual: 1000;
20
+ readonly eclipse: 1200;
21
+ readonly flip: 1200;
22
+ readonly gather: 1600;
23
+ readonly leap: 1800;
24
+ readonly "linear-dots": 900;
25
+ readonly loading: 1000;
26
+ readonly morph: 1200;
27
+ readonly orbit: 750;
28
+ readonly pulse: 1200;
29
+ readonly radar: 1500;
30
+ readonly ring: 800;
31
+ readonly ripple: 1200;
32
+ readonly slide: 2400;
33
+ readonly snake: 1400;
34
+ readonly swirl: 1200;
35
+ readonly trace: 1200;
36
+ readonly wave: 900;
37
+ };
38
+ type SpinnerName = keyof typeof SPINNER_MOTION;
39
+ declare function duration(name: SpinnerName): string;
40
+ declare function stagger(name: SpinnerName, count: number): string;
41
+ declare const PLAY_STATE = "var(--ld-play-state, running)";
42
+ declare function animation(name: SpinnerName, keyframes: string | string[], timing: string): string;
43
+
44
+ export { DEFAULT_SIZE, DURATION_VAR, PLAY_STATE, PLAY_STATE_VAR, SIZE, SIZE_VAR, SPINNER_MOTION, STEP_VAR, type SpinnerName, animation, duration, stagger };
package/dist/motion.js ADDED
@@ -0,0 +1,26 @@
1
+ import {
2
+ DEFAULT_SIZE,
3
+ DURATION_VAR,
4
+ PLAY_STATE,
5
+ PLAY_STATE_VAR,
6
+ SIZE,
7
+ SIZE_VAR,
8
+ SPINNER_MOTION,
9
+ STEP_VAR,
10
+ animation,
11
+ duration,
12
+ stagger
13
+ } from "./chunk-OMNMMKI7.js";
14
+ export {
15
+ DEFAULT_SIZE,
16
+ DURATION_VAR,
17
+ PLAY_STATE,
18
+ PLAY_STATE_VAR,
19
+ SIZE,
20
+ SIZE_VAR,
21
+ SPINNER_MOTION,
22
+ STEP_VAR,
23
+ animation,
24
+ duration,
25
+ stagger
26
+ };
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { EasingProps } from './easing.js';
3
+ import { SpinnerProps } from './types.js';
4
+ import './motion.js';
5
+
6
+ interface OrbitProps extends SpinnerProps, EasingProps {
7
+ }
8
+ declare function Orbit({ easing, ...rest }: OrbitProps): react.JSX.Element;
9
+
10
+ export { Orbit, type OrbitProps };
package/dist/orbit.js ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ Orbit
3
+ } from "./chunk-Y7QGIWTL.js";
4
+ import "./chunk-7C6Q6WUN.js";
5
+ import "./chunk-VRX5ZYC6.js";
6
+ import "./chunk-OMNMMKI7.js";
7
+ export {
8
+ Orbit
9
+ };
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function Pulse(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { Pulse };
package/dist/pulse.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ Pulse
3
+ } from "./chunk-FKUMWHUL.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Pulse
8
+ };
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { EasingProps } from './easing.js';
3
+ import { SpinnerProps } from './types.js';
4
+ import './motion.js';
5
+
6
+ interface RadarProps extends SpinnerProps, EasingProps {
7
+ }
8
+ declare function Radar({ easing, ...rest }: RadarProps): react.JSX.Element;
9
+
10
+ export { Radar, type RadarProps };
package/dist/radar.js ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ Radar
3
+ } from "./chunk-5LSP7MQQ.js";
4
+ import "./chunk-7C6Q6WUN.js";
5
+ import "./chunk-VRX5ZYC6.js";
6
+ import "./chunk-OMNMMKI7.js";
7
+ export {
8
+ Radar
9
+ };
package/dist/ring.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import * as react from 'react';
2
+ import { CapProps } from './cap.js';
3
+ import { EasingProps } from './easing.js';
4
+ import { SpinnerProps } from './types.js';
5
+ import './motion.js';
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 };
package/dist/ring.js ADDED
@@ -0,0 +1,10 @@
1
+ import {
2
+ Ring
3
+ } from "./chunk-ZLJYYX76.js";
4
+ import "./chunk-7C6Q6WUN.js";
5
+ import "./chunk-JNR4T6LZ.js";
6
+ import "./chunk-VRX5ZYC6.js";
7
+ import "./chunk-OMNMMKI7.js";
8
+ export {
9
+ Ring
10
+ };
@@ -0,0 +1,11 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ type RippleDirection = "in" | "out";
5
+ declare const DEFAULT_RIPPLE_DIRECTION: RippleDirection;
6
+ interface RippleProps extends SpinnerProps {
7
+ direction?: RippleDirection;
8
+ }
9
+ declare function Ripple({ direction, ...rest }: RippleProps): react.JSX.Element;
10
+
11
+ export { DEFAULT_RIPPLE_DIRECTION, Ripple, type RippleDirection, type RippleProps };
package/dist/ripple.js ADDED
@@ -0,0 +1,10 @@
1
+ import {
2
+ DEFAULT_RIPPLE_DIRECTION,
3
+ Ripple
4
+ } from "./chunk-IWVH2GKE.js";
5
+ import "./chunk-VRX5ZYC6.js";
6
+ import "./chunk-OMNMMKI7.js";
7
+ export {
8
+ DEFAULT_RIPPLE_DIRECTION,
9
+ Ripple
10
+ };
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function Slide(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { Slide };
package/dist/slide.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ Slide
3
+ } from "./chunk-IRMB7CHZ.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Slide
8
+ };
@@ -0,0 +1,11 @@
1
+ import * as react from 'react';
2
+ import { CapProps } from './cap.js';
3
+ import { EasingProps } from './easing.js';
4
+ import { SpinnerProps } from './types.js';
5
+ import './motion.js';
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 };
package/dist/snake.js ADDED
@@ -0,0 +1,10 @@
1
+ import {
2
+ Snake
3
+ } from "./chunk-RTKHVDCD.js";
4
+ import "./chunk-7C6Q6WUN.js";
5
+ import "./chunk-JNR4T6LZ.js";
6
+ import "./chunk-VRX5ZYC6.js";
7
+ import "./chunk-OMNMMKI7.js";
8
+ export {
9
+ Snake
10
+ };
@@ -0,0 +1,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 './cap.js';
6
+ import { Cascade } from './cascade.js';
7
+ import { CircularDots } from './circular-dots.js';
8
+ import { Classic } from './classic.js';
9
+ import { ClassicV2 } from './classic-v2.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 './easing.js';
15
+ import { Eclipse } from './eclipse.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 { Morph } from './morph.js';
22
+ import './motion.js';
23
+ import { Orbit } from './orbit.js';
24
+ import { Pulse } from './pulse.js';
25
+ import { Radar } from './radar.js';
26
+ import { Ring } from './ring.js';
27
+ import { Ripple } from './ripple.js';
28
+ import { Slide } from './slide.js';
29
+ import { Snake } from './snake.js';
30
+ import { Swirl } from './swirl.js';
31
+ import { Trace } from './trace.js';
32
+ import { Wave } from './wave.js';
33
+ import './types.js';
34
+ import 'react';
35
+
36
+ declare const SPINNERS: {
37
+ arc: typeof Arc;
38
+ atom: typeof Atom;
39
+ blocks: typeof Blocks;
40
+ "bouncing-dots": typeof BouncingDots;
41
+ cascade: typeof Cascade;
42
+ "circular-dots": typeof CircularDots;
43
+ classic: typeof Classic;
44
+ "classic-v2": typeof ClassicV2;
45
+ clock: typeof Clock;
46
+ comet: typeof Comet;
47
+ compass: typeof Compass;
48
+ dual: typeof Dual;
49
+ eclipse: typeof Eclipse;
50
+ flip: typeof Flip;
51
+ gather: typeof Gather;
52
+ leap: typeof Leap;
53
+ "linear-dots": typeof LinearDots;
54
+ loading: typeof Loading;
55
+ morph: typeof Morph;
56
+ orbit: typeof Orbit;
57
+ pulse: typeof Pulse;
58
+ radar: typeof Radar;
59
+ ring: typeof Ring;
60
+ ripple: typeof Ripple;
61
+ slide: typeof Slide;
62
+ snake: typeof Snake;
63
+ swirl: typeof Swirl;
64
+ trace: typeof Trace;
65
+ wave: typeof Wave;
66
+ };
67
+
68
+ export { SPINNERS };
@@ -0,0 +1,39 @@
1
+ import {
2
+ SPINNERS
3
+ } from "./chunk-5DS5PSRD.js";
4
+ import "./chunk-BMJ3AGRK.js";
5
+ import "./chunk-HDBQBCTN.js";
6
+ import "./chunk-VBI53UGV.js";
7
+ import "./chunk-Y7QGIWTL.js";
8
+ import "./chunk-FKUMWHUL.js";
9
+ import "./chunk-5LSP7MQQ.js";
10
+ import "./chunk-ZLJYYX76.js";
11
+ import "./chunk-IWVH2GKE.js";
12
+ import "./chunk-IRMB7CHZ.js";
13
+ import "./chunk-RTKHVDCD.js";
14
+ import "./chunk-TFHDE6YZ.js";
15
+ import "./chunk-LIPOYJAI.js";
16
+ import "./chunk-K5XVX5GB.js";
17
+ import "./chunk-MVL7SVAH.js";
18
+ import "./chunk-AY4VLQBZ.js";
19
+ import "./chunk-IZ4TRHOC.js";
20
+ import "./chunk-IQ2WQZFY.js";
21
+ import "./chunk-5A6DX4J6.js";
22
+ import "./chunk-T7OV7MUW.js";
23
+ import "./chunk-NHN4FV63.js";
24
+ import "./chunk-AHW6IXXT.js";
25
+ import "./chunk-5R75HMWP.js";
26
+ import "./chunk-X7BJQCYL.js";
27
+ import "./chunk-5DLURQGF.js";
28
+ import "./chunk-7C6Q6WUN.js";
29
+ import "./chunk-PBB2PRPT.js";
30
+ import "./chunk-UWSCBISJ.js";
31
+ import "./chunk-I5CFO2M5.js";
32
+ import "./chunk-JNR4T6LZ.js";
33
+ import "./chunk-A43AJR54.js";
34
+ import "./chunk-T5EUYN7R.js";
35
+ import "./chunk-VRX5ZYC6.js";
36
+ import "./chunk-OMNMMKI7.js";
37
+ export {
38
+ SPINNERS
39
+ };
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function Swirl(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { Swirl };
package/dist/swirl.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ Swirl
3
+ } from "./chunk-BMJ3AGRK.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Swirl
8
+ };
@@ -0,0 +1,11 @@
1
+ import * as react from 'react';
2
+ import { CapProps } from './cap.js';
3
+ import { EasingProps } from './easing.js';
4
+ import { SpinnerProps } from './types.js';
5
+ import './motion.js';
6
+
7
+ interface TraceProps extends SpinnerProps, EasingProps, CapProps {
8
+ }
9
+ declare function Trace({ cap, easing, ...rest }: TraceProps): react.JSX.Element;
10
+
11
+ export { Trace, type TraceProps };
package/dist/trace.js ADDED
@@ -0,0 +1,10 @@
1
+ import {
2
+ Trace
3
+ } from "./chunk-HDBQBCTN.js";
4
+ import "./chunk-7C6Q6WUN.js";
5
+ import "./chunk-JNR4T6LZ.js";
6
+ import "./chunk-VRX5ZYC6.js";
7
+ import "./chunk-OMNMMKI7.js";
8
+ export {
9
+ Trace
10
+ };
@@ -0,0 +1,23 @@
1
+ interface SpinnerProps {
2
+ /** Extra class names merged onto the root element. */
3
+ className?: string;
4
+ /**
5
+ * Any CSS color — `#f97316`, `oklch(70% 0.19 45)`, `rgb(249 115 22 / 60%)`,
6
+ * `var(--brand)`. Omit to keep inheriting the surrounding text color.
7
+ */
8
+ color?: string;
9
+ /**
10
+ * Length of one animation cycle in milliseconds. Omit to inherit
11
+ * `--ld-duration` from an ancestor, then the spinner's own default.
12
+ */
13
+ duration?: number;
14
+ /**
15
+ * Whether the animation runs. Omit to inherit `--ld-play-state` from an
16
+ * ancestor, which defaults to running.
17
+ */
18
+ playState?: "paused" | "running";
19
+ /** Width and height of the spinner in pixels. Defaults to 20. */
20
+ size?: number;
21
+ }
22
+
23
+ export type { SpinnerProps };
package/dist/types.js ADDED
File without changes
package/dist/wave.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ type WaveOrigin = "bottom" | "center";
5
+ declare const DEFAULT_WAVE_ORIGIN: WaveOrigin;
6
+ interface WaveProps extends SpinnerProps {
7
+ origin?: WaveOrigin;
8
+ }
9
+ declare function Wave({ origin, ...rest }: WaveProps): react.JSX.Element;
10
+
11
+ export { DEFAULT_WAVE_ORIGIN, Wave, type WaveOrigin, type WaveProps };
package/dist/wave.js ADDED
@@ -0,0 +1,10 @@
1
+ import {
2
+ DEFAULT_WAVE_ORIGIN,
3
+ Wave
4
+ } from "./chunk-VBI53UGV.js";
5
+ import "./chunk-VRX5ZYC6.js";
6
+ import "./chunk-OMNMMKI7.js";
7
+ export {
8
+ DEFAULT_WAVE_ORIGIN,
9
+ Wave
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loading-dev",
3
- "version": "0.3.1",
3
+ "version": "0.3.4",
4
4
  "description": "A lightweight library full of beautiful loading indicators for React.",
5
5
  "keywords": [
6
6
  "react",
@@ -38,10 +38,12 @@
38
38
  "lint": "biome check .",
39
39
  "prepublishOnly": "tsup",
40
40
  "test": "vitest run",
41
- "test:watch": "vitest"
41
+ "test:watch": "vitest",
42
+ "typecheck": "tsc --noEmit && pnpm build && pnpm --filter web typecheck"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@biomejs/biome": "^2.5.13",
46
+ "@types/node": "^24.13.3",
45
47
  "@types/react": "^19",
46
48
  "@types/react-dom": "^19.2.4",
47
49
  "react": "19.2.6",