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.
- package/README.md +7 -9
- package/dist/arc.d.ts +11 -0
- package/dist/arc.js +10 -0
- package/dist/atom.d.ts +10 -0
- package/dist/atom.js +9 -0
- package/dist/blocks.d.ts +11 -0
- package/dist/blocks.js +10 -0
- package/dist/bouncing-dots.d.ts +6 -0
- package/dist/bouncing-dots.js +8 -0
- package/dist/cap.d.ts +8 -0
- package/dist/cap.js +8 -0
- package/dist/cascade.d.ts +9 -0
- package/dist/cascade.js +9 -0
- package/dist/chunk-2LMGBBRJ.js +77 -0
- package/dist/chunk-2OX27TAE.js +69 -0
- package/dist/chunk-2TYML5J2.js +51 -0
- package/dist/chunk-3WMZVDPS.js +61 -0
- package/dist/chunk-4O4ADYWE.js +73 -0
- package/dist/chunk-5UAEBEER.js +78 -0
- package/dist/chunk-A2PZBHTA.js +41 -0
- package/dist/chunk-BAVSTTWG.js +88 -0
- package/dist/chunk-BCIAMPLU.js +87 -0
- package/dist/chunk-DKYEZLIN.js +72 -0
- package/dist/chunk-FQ2U2M7F.js +76 -0
- package/dist/chunk-FWH6VWVK.js +59 -0
- package/dist/chunk-HL7TIIDB.js +124 -0
- package/dist/chunk-IJJULNRU.js +53 -0
- package/dist/chunk-JKLL7YYG.js +85 -0
- package/dist/chunk-JNR4T6LZ.js +10 -0
- package/dist/chunk-JQNF5GYA.js +52 -0
- package/dist/chunk-KAZ5BTXC.js +74 -0
- package/dist/chunk-KOYM24WV.js +72 -0
- package/dist/chunk-L2DUMHO4.js +69 -0
- package/dist/chunk-LDXBT62V.js +57 -0
- package/dist/chunk-MAKBZTL3.js +56 -0
- package/dist/chunk-OMNMMKI7.js +64 -0
- package/dist/chunk-P4BSSDSY.js +51 -0
- package/dist/chunk-PM6DU637.js +70 -0
- package/dist/chunk-PVVWLDIS.js +33 -0
- package/dist/chunk-R5ZDKN3Z.js +59 -0
- package/dist/chunk-RAHAQ7XK.js +61 -0
- package/dist/chunk-SUUR5WMA.js +46 -0
- package/dist/chunk-UAO52LUL.js +48 -0
- package/dist/chunk-ULWRXY3A.js +50 -0
- package/dist/chunk-UOXB5QOZ.js +81 -0
- package/dist/chunk-UXTZTFNZ.js +62 -0
- package/dist/chunk-VZX7APSS.js +82 -0
- package/dist/chunk-YIB63EKJ.js +49 -0
- package/dist/circular-dots.d.ts +6 -0
- package/dist/circular-dots.js +9 -0
- package/dist/classic-v2.d.ts +6 -0
- package/dist/classic-v2.js +9 -0
- package/dist/classic.d.ts +6 -0
- package/dist/classic.js +9 -0
- package/dist/clock.d.ts +10 -0
- package/dist/clock.js +9 -0
- package/dist/comet.d.ts +10 -0
- package/dist/comet.js +9 -0
- package/dist/compass.d.ts +6 -0
- package/dist/compass.js +8 -0
- package/dist/dual.d.ts +11 -0
- package/dist/dual.js +10 -0
- package/dist/easing.d.ts +11 -0
- package/dist/easing.js +11 -0
- package/dist/eclipse.d.ts +6 -0
- package/dist/eclipse.js +8 -0
- package/dist/fade.d.ts +8 -0
- package/dist/fade.js +7 -0
- package/dist/flip.d.ts +6 -0
- package/dist/flip.js +8 -0
- package/dist/frame.d.ts +18 -0
- package/dist/frame.js +13 -0
- package/dist/gather.d.ts +6 -0
- package/dist/gather.js +8 -0
- package/dist/index.d.ts +35 -199
- package/dist/index.js +106 -1794
- package/dist/leap.d.ts +6 -0
- package/dist/leap.js +8 -0
- package/dist/linear-dots.d.ts +6 -0
- package/dist/linear-dots.js +8 -0
- package/dist/loading.d.ts +6 -0
- package/dist/loading.js +9 -0
- package/dist/morph.d.ts +6 -0
- package/dist/morph.js +8 -0
- package/dist/motion.d.ts +44 -0
- package/dist/motion.js +26 -0
- package/dist/orbit.d.ts +10 -0
- package/dist/orbit.js +9 -0
- package/dist/pulse.d.ts +6 -0
- package/dist/pulse.js +8 -0
- package/dist/radar.d.ts +10 -0
- package/dist/radar.js +9 -0
- package/dist/ring.d.ts +11 -0
- package/dist/ring.js +10 -0
- package/dist/ripple.d.ts +11 -0
- package/dist/ripple.js +10 -0
- package/dist/slide.d.ts +6 -0
- package/dist/slide.js +8 -0
- package/dist/snake.d.ts +11 -0
- package/dist/snake.js +10 -0
- package/dist/spinners.d.ts +68 -0
- package/dist/spinners.js +40 -0
- package/dist/swirl.d.ts +6 -0
- package/dist/swirl.js +9 -0
- package/dist/trace.d.ts +11 -0
- package/dist/trace.js +10 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.js +0 -0
- package/dist/wave.d.ts +11 -0
- package/dist/wave.js +10 -0
- package/package.json +12 -9
package/dist/gather.js
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,199 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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';
|