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
@@ -0,0 +1,6 @@
1
+ import * as react from 'react';
2
+ import { SpinnerProps } from './types.js';
3
+
4
+ declare function Gather(props: SpinnerProps): react.JSX.Element;
5
+
6
+ export { Gather };
package/dist/gather.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ Gather
3
+ } from "./chunk-TFHDE6YZ.js";
4
+ import "./chunk-VRX5ZYC6.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Gather
8
+ };
package/dist/index.d.ts CHANGED
@@ -1,135 +1,35 @@
1
- import * as react from 'react';
2
-
3
- declare const DURATION_VAR = "--ld-duration";
4
- declare const PLAY_STATE_VAR = "--ld-play-state";
5
- declare const SPINNER_MOTION: {
6
- readonly arc: {
7
- readonly duration: 800;
8
- };
9
- readonly "bouncing-dots": {
10
- readonly duration: 500;
11
- };
12
- readonly "circular-dots": {
13
- readonly duration: 800;
14
- };
15
- readonly classic: {
16
- readonly duration: 1200;
17
- };
18
- readonly "classic-v2": {
19
- readonly duration: 800;
20
- };
21
- readonly clock: {
22
- readonly duration: 1200;
23
- };
24
- readonly comet: {
25
- readonly duration: 700;
26
- };
27
- readonly compass: {
28
- readonly duration: 500;
29
- };
30
- readonly "linear-dots": {
31
- readonly duration: 900;
32
- };
33
- readonly orbit: {
34
- readonly duration: 750;
35
- };
36
- readonly pulse: {
37
- readonly duration: 1200;
38
- };
39
- readonly radar: {
40
- readonly duration: 1500;
41
- };
42
- readonly ring: {
43
- readonly duration: 800;
44
- };
45
- readonly swirl: {
46
- readonly duration: 1200;
47
- };
48
- };
49
- type SpinnerName = keyof typeof SPINNER_MOTION;
50
-
51
- type Easing = "linear" | "ease-in-out" | "stacked";
52
- interface EasingProps {
53
- easing?: Easing;
54
- }
55
-
56
- interface SpinnerProps {
57
- /** Extra class names merged onto the root element. */
58
- className?: string;
59
- /**
60
- * Any CSS color — `#f97316`, `oklch(70% 0.19 45)`, `rgb(249 115 22 / 60%)`,
61
- * `var(--brand)`. Omit to keep inheriting the surrounding text color.
62
- */
63
- color?: string;
64
- /**
65
- * Length of one animation cycle in milliseconds. Omit to inherit
66
- * `--ld-duration` from an ancestor, then the spinner's own default.
67
- */
68
- duration?: number;
69
- /**
70
- * Whether the animation runs. Omit to inherit `--ld-play-state` from an
71
- * ancestor, which defaults to running.
72
- */
73
- playState?: "paused" | "running";
74
- /** Width and height of the spinner in pixels. Defaults to 20. */
75
- size?: number;
76
- }
77
-
78
- interface ArcProps extends SpinnerProps, EasingProps {
79
- }
80
- declare function Arc({ easing, ...rest }: ArcProps): react.JSX.Element;
81
-
82
- declare function BouncingDots(props: SpinnerProps): react.JSX.Element;
83
-
84
- declare function CircularDots(props: SpinnerProps): react.JSX.Element;
85
-
86
- declare function Classic(props: SpinnerProps): react.JSX.Element;
87
-
88
- declare function ClassicV2(props: SpinnerProps): react.JSX.Element;
89
-
90
- interface ClockProps extends SpinnerProps, EasingProps {
91
- }
92
- declare function Clock({ easing, ...rest }: ClockProps): react.JSX.Element;
93
-
94
- interface CometProps extends SpinnerProps, EasingProps {
95
- }
96
- declare function Comet({ easing, ...rest }: CometProps): react.JSX.Element;
97
-
98
- declare function Compass(props: SpinnerProps): react.JSX.Element;
99
-
100
- declare function LinearDots(props: SpinnerProps): react.JSX.Element;
101
-
102
- interface OrbitProps extends SpinnerProps, EasingProps {
103
- }
104
- declare function Orbit({ easing, ...rest }: OrbitProps): react.JSX.Element;
105
-
106
- declare function Pulse(props: SpinnerProps): react.JSX.Element;
107
-
108
- interface RadarProps extends SpinnerProps, EasingProps {
109
- }
110
- declare function Radar({ easing, ...rest }: RadarProps): react.JSX.Element;
111
-
112
- interface RingProps extends SpinnerProps, EasingProps {
113
- }
114
- declare function Ring({ easing, ...rest }: RingProps): react.JSX.Element;
115
-
116
- declare function Swirl(props: SpinnerProps): react.JSX.Element;
117
-
118
- declare const SPINNERS: {
119
- arc: typeof Arc;
120
- "bouncing-dots": typeof BouncingDots;
121
- "circular-dots": typeof CircularDots;
122
- classic: typeof Classic;
123
- "classic-v2": typeof ClassicV2;
124
- clock: typeof Clock;
125
- comet: typeof Comet;
126
- compass: typeof Compass;
127
- "linear-dots": typeof LinearDots;
128
- orbit: typeof Orbit;
129
- pulse: typeof Pulse;
130
- radar: typeof Radar;
131
- ring: typeof Ring;
132
- swirl: typeof Swirl;
133
- };
134
-
135
- export { Arc, type ArcProps, BouncingDots, CircularDots, Classic, ClassicV2, Clock, type ClockProps, Comet, type CometProps, Compass, DURATION_VAR, type Easing, type EasingProps, LinearDots, Orbit, type OrbitProps, PLAY_STATE_VAR, Pulse, Radar, type RadarProps, Ring, type RingProps, SPINNERS, SPINNER_MOTION, type SpinnerName, type SpinnerProps, Swirl };
1
+ export { Arc, ArcProps } from './arc.js';
2
+ export { Atom, AtomProps } from './atom.js';
3
+ export { Blocks, BlocksProps, BlocksSweep, DEFAULT_BLOCKS_SWEEP } from './blocks.js';
4
+ export { BouncingDots } from './bouncing-dots.js';
5
+ export { Cap, CapProps, DEFAULT_CAP } from './cap.js';
6
+ export { Cascade, CascadeProps } from './cascade.js';
7
+ export { CircularDots } from './circular-dots.js';
8
+ export { Classic } from './classic.js';
9
+ export { ClassicV2 } from './classic-v2.js';
10
+ export { Clock, ClockProps } from './clock.js';
11
+ export { Comet, CometProps } from './comet.js';
12
+ export { Compass } from './compass.js';
13
+ export { Dual, DualProps } from './dual.js';
14
+ export { DEFAULT_EASING, Easing, EasingProps } from './easing.js';
15
+ export { Eclipse } from './eclipse.js';
16
+ export { Flip } from './flip.js';
17
+ export { Gather } from './gather.js';
18
+ export { Leap } from './leap.js';
19
+ export { LinearDots } from './linear-dots.js';
20
+ export { Loading } from './loading.js';
21
+ export { Morph } from './morph.js';
22
+ export { DURATION_VAR, PLAY_STATE_VAR, SPINNER_MOTION, SpinnerName } from './motion.js';
23
+ export { Orbit, OrbitProps } from './orbit.js';
24
+ export { Pulse } from './pulse.js';
25
+ export { Radar, RadarProps } from './radar.js';
26
+ export { Ring, RingProps } from './ring.js';
27
+ export { DEFAULT_RIPPLE_DIRECTION, Ripple, RippleDirection, RippleProps } from './ripple.js';
28
+ export { Slide } from './slide.js';
29
+ export { Snake, SnakeProps } from './snake.js';
30
+ export { SPINNERS } from './spinners.js';
31
+ export { Swirl } from './swirl.js';
32
+ export { Trace, TraceProps } from './trace.js';
33
+ export { SpinnerProps } from './types.js';
34
+ export { DEFAULT_WAVE_ORIGIN, Wave, WaveOrigin, WaveProps } from './wave.js';
35
+ import 'react';