loading-dev 0.3.3 → 0.3.5

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 (111) hide show
  1. package/README.md +7 -9
  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-2LMGBBRJ.js +77 -0
  15. package/dist/chunk-2OX27TAE.js +69 -0
  16. package/dist/chunk-2TYML5J2.js +51 -0
  17. package/dist/chunk-3WMZVDPS.js +61 -0
  18. package/dist/chunk-4O4ADYWE.js +73 -0
  19. package/dist/chunk-5UAEBEER.js +78 -0
  20. package/dist/chunk-A2PZBHTA.js +41 -0
  21. package/dist/chunk-BAVSTTWG.js +88 -0
  22. package/dist/chunk-BCIAMPLU.js +87 -0
  23. package/dist/chunk-DKYEZLIN.js +72 -0
  24. package/dist/chunk-FQ2U2M7F.js +76 -0
  25. package/dist/chunk-FWH6VWVK.js +59 -0
  26. package/dist/chunk-HL7TIIDB.js +124 -0
  27. package/dist/chunk-IJJULNRU.js +53 -0
  28. package/dist/chunk-JKLL7YYG.js +85 -0
  29. package/dist/chunk-JNR4T6LZ.js +10 -0
  30. package/dist/chunk-JQNF5GYA.js +52 -0
  31. package/dist/chunk-KAZ5BTXC.js +74 -0
  32. package/dist/chunk-KOYM24WV.js +72 -0
  33. package/dist/chunk-L2DUMHO4.js +69 -0
  34. package/dist/chunk-LDXBT62V.js +57 -0
  35. package/dist/chunk-MAKBZTL3.js +56 -0
  36. package/dist/chunk-OMNMMKI7.js +64 -0
  37. package/dist/chunk-P4BSSDSY.js +51 -0
  38. package/dist/chunk-PM6DU637.js +70 -0
  39. package/dist/chunk-PVVWLDIS.js +33 -0
  40. package/dist/chunk-R5ZDKN3Z.js +59 -0
  41. package/dist/chunk-RAHAQ7XK.js +61 -0
  42. package/dist/chunk-SUUR5WMA.js +46 -0
  43. package/dist/chunk-UAO52LUL.js +48 -0
  44. package/dist/chunk-ULWRXY3A.js +50 -0
  45. package/dist/chunk-UOXB5QOZ.js +81 -0
  46. package/dist/chunk-UXTZTFNZ.js +62 -0
  47. package/dist/chunk-VZX7APSS.js +82 -0
  48. package/dist/chunk-YIB63EKJ.js +49 -0
  49. package/dist/circular-dots.d.ts +6 -0
  50. package/dist/circular-dots.js +9 -0
  51. package/dist/classic-v2.d.ts +6 -0
  52. package/dist/classic-v2.js +9 -0
  53. package/dist/classic.d.ts +6 -0
  54. package/dist/classic.js +9 -0
  55. package/dist/clock.d.ts +10 -0
  56. package/dist/clock.js +9 -0
  57. package/dist/comet.d.ts +10 -0
  58. package/dist/comet.js +9 -0
  59. package/dist/compass.d.ts +6 -0
  60. package/dist/compass.js +8 -0
  61. package/dist/dual.d.ts +11 -0
  62. package/dist/dual.js +10 -0
  63. package/dist/easing.d.ts +11 -0
  64. package/dist/easing.js +11 -0
  65. package/dist/eclipse.d.ts +6 -0
  66. package/dist/eclipse.js +8 -0
  67. package/dist/fade.d.ts +8 -0
  68. package/dist/fade.js +7 -0
  69. package/dist/flip.d.ts +6 -0
  70. package/dist/flip.js +8 -0
  71. package/dist/frame.d.ts +18 -0
  72. package/dist/frame.js +13 -0
  73. package/dist/gather.d.ts +6 -0
  74. package/dist/gather.js +8 -0
  75. package/dist/index.d.ts +35 -199
  76. package/dist/index.js +106 -1794
  77. package/dist/leap.d.ts +6 -0
  78. package/dist/leap.js +8 -0
  79. package/dist/linear-dots.d.ts +6 -0
  80. package/dist/linear-dots.js +8 -0
  81. package/dist/loading.d.ts +6 -0
  82. package/dist/loading.js +9 -0
  83. package/dist/morph.d.ts +6 -0
  84. package/dist/morph.js +8 -0
  85. package/dist/motion.d.ts +44 -0
  86. package/dist/motion.js +26 -0
  87. package/dist/orbit.d.ts +10 -0
  88. package/dist/orbit.js +9 -0
  89. package/dist/pulse.d.ts +6 -0
  90. package/dist/pulse.js +8 -0
  91. package/dist/radar.d.ts +10 -0
  92. package/dist/radar.js +9 -0
  93. package/dist/ring.d.ts +11 -0
  94. package/dist/ring.js +10 -0
  95. package/dist/ripple.d.ts +11 -0
  96. package/dist/ripple.js +10 -0
  97. package/dist/slide.d.ts +6 -0
  98. package/dist/slide.js +8 -0
  99. package/dist/snake.d.ts +11 -0
  100. package/dist/snake.js +10 -0
  101. package/dist/spinners.d.ts +68 -0
  102. package/dist/spinners.js +40 -0
  103. package/dist/swirl.d.ts +6 -0
  104. package/dist/swirl.js +9 -0
  105. package/dist/trace.d.ts +11 -0
  106. package/dist/trace.js +10 -0
  107. package/dist/types.d.ts +9 -0
  108. package/dist/types.js +0 -0
  109. package/dist/wave.d.ts +11 -0
  110. package/dist/wave.js +10 -0
  111. package/package.json +12 -9
package/dist/gather.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ Gather
3
+ } from "./chunk-JKLL7YYG.js";
4
+ import "./chunk-UAO52LUL.js";
5
+ import "./chunk-OMNMMKI7.js";
6
+ export {
7
+ Gather
8
+ };
package/dist/index.d.ts CHANGED
@@ -1,199 +1,35 @@
1
- import * as react from 'react';
2
-
3
- type Cap = "flat" | "round";
4
- declare const DEFAULT_CAP: Cap;
5
- interface CapProps {
6
- cap?: Cap;
7
- }
8
-
9
- declare const DURATION_VAR = "--ld-duration";
10
- declare const PLAY_STATE_VAR = "--ld-play-state";
11
- declare const SPINNER_MOTION: {
12
- readonly arc: 800;
13
- readonly atom: 1000;
14
- readonly blocks: 1300;
15
- readonly "bouncing-dots": 500;
16
- readonly cascade: 1500;
17
- readonly "circular-dots": 800;
18
- readonly classic: 1200;
19
- readonly "classic-v2": 800;
20
- readonly clock: 1200;
21
- readonly comet: 700;
22
- readonly compass: 500;
23
- readonly dual: 1000;
24
- readonly eclipse: 1200;
25
- readonly flip: 1200;
26
- readonly gather: 1600;
27
- readonly leap: 1800;
28
- readonly "linear-dots": 900;
29
- readonly loading: 1000;
30
- readonly morph: 1200;
31
- readonly orbit: 750;
32
- readonly pulse: 1200;
33
- readonly radar: 1500;
34
- readonly ring: 800;
35
- readonly ripple: 1200;
36
- readonly slide: 2400;
37
- readonly snake: 1400;
38
- readonly swirl: 1200;
39
- readonly trace: 1200;
40
- readonly wave: 900;
41
- };
42
- type SpinnerName = keyof typeof SPINNER_MOTION;
43
-
44
- type Easing = "linear" | "ease-in-out" | "stacked";
45
- declare const DEFAULT_EASING: Easing;
46
- interface EasingProps {
47
- easing?: Easing;
48
- }
49
-
50
- interface SpinnerProps {
51
- /** Extra class names merged onto the root element. */
52
- className?: string;
53
- /**
54
- * Any CSS color — `#f97316`, `oklch(70% 0.19 45)`, `rgb(249 115 22 / 60%)`,
55
- * `var(--brand)`. Omit to keep inheriting the surrounding text color.
56
- */
57
- color?: string;
58
- /**
59
- * Length of one animation cycle in milliseconds. Omit to inherit
60
- * `--ld-duration` from an ancestor, then the spinner's own default.
61
- */
62
- duration?: number;
63
- /**
64
- * Whether the animation runs. Omit to inherit `--ld-play-state` from an
65
- * ancestor, which defaults to running.
66
- */
67
- playState?: "paused" | "running";
68
- /** Width and height of the spinner in pixels. Defaults to 20. */
69
- size?: number;
70
- }
71
-
72
- interface ArcProps extends SpinnerProps, EasingProps, CapProps {
73
- }
74
- declare function Arc({ cap, easing, ...rest }: ArcProps): react.JSX.Element;
75
-
76
- interface AtomProps extends SpinnerProps, EasingProps {
77
- }
78
- declare function Atom({ easing, ...rest }: AtomProps): react.JSX.Element;
79
-
80
- type BlocksSweep = "columns" | "diagonal" | "rows";
81
- declare const DEFAULT_BLOCKS_SWEEP: BlocksSweep;
82
- interface BlocksProps extends SpinnerProps {
83
- sweep?: BlocksSweep;
84
- }
85
- declare function Blocks({ sweep, ...rest }: BlocksProps): react.JSX.Element;
86
-
87
- declare function BouncingDots(props: SpinnerProps): react.JSX.Element;
88
-
89
- interface CascadeProps extends SpinnerProps, CapProps {
90
- }
91
- declare function Cascade({ cap, ...rest }: CascadeProps): react.JSX.Element;
92
-
93
- declare function CircularDots(props: SpinnerProps): react.JSX.Element;
94
-
95
- declare function Classic(props: SpinnerProps): react.JSX.Element;
96
-
97
- declare function ClassicV2(props: SpinnerProps): react.JSX.Element;
98
-
99
- interface ClockProps extends SpinnerProps, EasingProps {
100
- }
101
- declare function Clock({ easing, ...rest }: ClockProps): react.JSX.Element;
102
-
103
- interface CometProps extends SpinnerProps, EasingProps {
104
- }
105
- declare function Comet({ easing, ...rest }: CometProps): react.JSX.Element;
106
-
107
- declare function Compass(props: SpinnerProps): react.JSX.Element;
108
-
109
- interface DualProps extends SpinnerProps, EasingProps, CapProps {
110
- }
111
- declare function Dual({ cap, easing, ...rest }: DualProps): react.JSX.Element;
112
-
113
- declare function Eclipse(props: SpinnerProps): react.JSX.Element;
114
-
115
- declare function Flip(props: SpinnerProps): react.JSX.Element;
116
-
117
- declare function Gather(props: SpinnerProps): react.JSX.Element;
118
-
119
- declare function Leap(props: SpinnerProps): react.JSX.Element;
120
-
121
- declare function LinearDots(props: SpinnerProps): react.JSX.Element;
122
-
123
- declare function Loading(props: SpinnerProps): react.JSX.Element;
124
-
125
- declare function Morph(props: SpinnerProps): react.JSX.Element;
126
-
127
- interface OrbitProps extends SpinnerProps, EasingProps {
128
- }
129
- declare function Orbit({ easing, ...rest }: OrbitProps): react.JSX.Element;
130
-
131
- declare function Pulse(props: SpinnerProps): react.JSX.Element;
132
-
133
- interface RadarProps extends SpinnerProps, EasingProps {
134
- }
135
- declare function Radar({ easing, ...rest }: RadarProps): react.JSX.Element;
136
-
137
- interface RingProps extends SpinnerProps, EasingProps, CapProps {
138
- }
139
- declare function Ring({ cap, easing, ...rest }: RingProps): react.JSX.Element;
140
-
141
- type RippleDirection = "in" | "out";
142
- declare const DEFAULT_RIPPLE_DIRECTION: RippleDirection;
143
- interface RippleProps extends SpinnerProps {
144
- direction?: RippleDirection;
145
- }
146
- declare function Ripple({ direction, ...rest }: RippleProps): react.JSX.Element;
147
-
148
- declare function Slide(props: SpinnerProps): react.JSX.Element;
149
-
150
- interface SnakeProps extends SpinnerProps, EasingProps, CapProps {
151
- }
152
- declare function Snake({ cap, easing, ...rest }: SnakeProps): react.JSX.Element;
153
-
154
- declare function Swirl(props: SpinnerProps): react.JSX.Element;
155
-
156
- interface TraceProps extends SpinnerProps, EasingProps, CapProps {
157
- }
158
- declare function Trace({ cap, easing, ...rest }: TraceProps): react.JSX.Element;
159
-
160
- type WaveOrigin = "bottom" | "center";
161
- declare const DEFAULT_WAVE_ORIGIN: WaveOrigin;
162
- interface WaveProps extends SpinnerProps {
163
- origin?: WaveOrigin;
164
- }
165
- declare function Wave({ origin, ...rest }: WaveProps): react.JSX.Element;
166
-
167
- declare const SPINNERS: {
168
- arc: typeof Arc;
169
- atom: typeof Atom;
170
- blocks: typeof Blocks;
171
- "bouncing-dots": typeof BouncingDots;
172
- cascade: typeof Cascade;
173
- "circular-dots": typeof CircularDots;
174
- classic: typeof Classic;
175
- "classic-v2": typeof ClassicV2;
176
- clock: typeof Clock;
177
- comet: typeof Comet;
178
- compass: typeof Compass;
179
- dual: typeof Dual;
180
- eclipse: typeof Eclipse;
181
- flip: typeof Flip;
182
- gather: typeof Gather;
183
- leap: typeof Leap;
184
- "linear-dots": typeof LinearDots;
185
- loading: typeof Loading;
186
- morph: typeof Morph;
187
- orbit: typeof Orbit;
188
- pulse: typeof Pulse;
189
- radar: typeof Radar;
190
- ring: typeof Ring;
191
- ripple: typeof Ripple;
192
- slide: typeof Slide;
193
- snake: typeof Snake;
194
- swirl: typeof Swirl;
195
- trace: typeof Trace;
196
- wave: typeof Wave;
197
- };
198
-
199
- export { Arc, type ArcProps, Atom, type AtomProps, Blocks, type BlocksProps, type BlocksSweep, BouncingDots, type Cap, type CapProps, Cascade, type CascadeProps, CircularDots, Classic, ClassicV2, Clock, type ClockProps, Comet, type CometProps, Compass, DEFAULT_BLOCKS_SWEEP, DEFAULT_CAP, DEFAULT_EASING, DEFAULT_RIPPLE_DIRECTION, DEFAULT_WAVE_ORIGIN, DURATION_VAR, Dual, type DualProps, type Easing, type EasingProps, Eclipse, Flip, Gather, Leap, LinearDots, Loading, Morph, Orbit, type OrbitProps, PLAY_STATE_VAR, Pulse, Radar, type RadarProps, Ring, type RingProps, Ripple, type RippleDirection, type RippleProps, SPINNERS, SPINNER_MOTION, Slide, Snake, type SnakeProps, type SpinnerName, type SpinnerProps, Swirl, Trace, type TraceProps, Wave, type WaveOrigin, type WaveProps };
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';