premium-react-loaders 4.0.0 → 4.1.0
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/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/neon/NeonPulse.d.ts +12 -0
- package/dist/components/neon/NeonPulse.d.ts.map +1 -0
- package/dist/components/neon/NeonSpinner.d.ts +12 -0
- package/dist/components/neon/NeonSpinner.d.ts.map +1 -0
- package/dist/components/neon/NeonText.d.ts +12 -0
- package/dist/components/neon/NeonText.d.ts.map +1 -0
- package/dist/components/neon/index.d.ts +4 -0
- package/dist/components/neon/index.d.ts.map +1 -0
- package/dist/components/particle/ParticleField.d.ts +3 -0
- package/dist/components/particle/ParticleField.d.ts.map +1 -0
- package/dist/components/particle/ParticleTrail.d.ts +12 -0
- package/dist/components/particle/ParticleTrail.d.ts.map +1 -0
- package/dist/components/particle/index.d.ts +2 -0
- package/dist/components/particle/index.d.ts.map +1 -1
- package/dist/components/status/InfoIndicator.d.ts +29 -0
- package/dist/components/status/InfoIndicator.d.ts.map +1 -0
- package/dist/components/status/WarningIndicator.d.ts +29 -0
- package/dist/components/status/WarningIndicator.d.ts.map +1 -0
- package/dist/components/status/index.d.ts +2 -0
- package/dist/components/status/index.d.ts.map +1 -1
- package/dist/index.cjs +41 -27
- package/dist/index.js +41 -27
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.cjs +59 -145
- package/dist/index37.js +61 -147
- package/dist/index38.cjs +32 -53
- package/dist/index38.js +33 -54
- package/dist/index39.cjs +138 -84
- package/dist/index39.js +140 -86
- package/dist/index40.cjs +33 -106
- package/dist/index40.js +34 -107
- package/dist/index41.cjs +66 -50
- package/dist/index41.js +66 -50
- package/dist/index42.cjs +123 -44
- package/dist/index42.js +124 -45
- package/dist/index43.cjs +43 -85
- package/dist/index43.js +44 -86
- package/dist/index44.cjs +35 -27
- package/dist/index44.js +35 -27
- package/dist/index45.cjs +87 -58
- package/dist/index45.js +87 -58
- package/dist/index46.cjs +35 -88
- package/dist/index46.js +36 -89
- package/dist/index47.cjs +62 -58
- package/dist/index47.js +63 -59
- package/dist/index48.cjs +87 -110
- package/dist/index48.js +88 -111
- package/dist/index49.cjs +48 -109
- package/dist/index49.js +49 -110
- package/dist/index50.cjs +110 -62
- package/dist/index50.js +111 -63
- package/dist/index51.cjs +104 -49
- package/dist/index51.js +104 -49
- package/dist/index52.cjs +43 -77
- package/dist/index52.js +44 -78
- package/dist/index53.cjs +56 -56
- package/dist/index53.js +56 -56
- package/dist/index54.cjs +104 -149
- package/dist/index54.js +106 -151
- package/dist/index55.cjs +97 -38
- package/dist/index55.js +99 -40
- package/dist/index56.cjs +161 -27
- package/dist/index56.js +162 -28
- package/dist/index57.cjs +36 -102
- package/dist/index57.js +38 -104
- package/dist/index58.cjs +19 -34
- package/dist/index58.js +20 -35
- package/dist/index59.cjs +87 -34
- package/dist/index59.js +89 -36
- package/dist/index60.cjs +25 -23
- package/dist/index60.js +25 -23
- package/dist/index61.cjs +32 -65
- package/dist/index61.js +34 -67
- package/dist/index62.cjs +29 -36
- package/dist/index62.js +30 -37
- package/dist/index63.cjs +66 -59
- package/dist/index63.js +69 -62
- package/dist/index64.cjs +71 -121
- package/dist/index64.js +72 -122
- package/dist/index65.cjs +92 -0
- package/dist/index65.js +92 -0
- package/dist/index66.cjs +76 -0
- package/dist/index66.js +76 -0
- package/dist/index67.cjs +76 -0
- package/dist/index67.js +76 -0
- package/dist/index68.cjs +64 -0
- package/dist/index68.js +64 -0
- package/dist/index69.cjs +60 -0
- package/dist/index69.js +60 -0
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -1
- package/dist/index70.cjs +57 -0
- package/dist/index70.js +57 -0
- package/dist/index71.cjs +125 -0
- package/dist/index71.js +125 -0
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +1 -1
- package/dist/premium-react-loaders.css +85 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/neon.d.ts +26 -0
- package/dist/types/neon.d.ts.map +1 -0
- package/dist/types/particle.d.ts +18 -0
- package/dist/types/particle.d.ts.map +1 -1
- package/dist/types/status.d.ts +30 -0
- package/dist/types/status.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index71.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { useState, useRef, useEffect } from "react";
|
|
2
|
+
function useReducedMotion() {
|
|
3
|
+
const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
if (typeof window === "undefined" || !window.matchMedia) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
9
|
+
setPrefersReducedMotion(mediaQuery.matches);
|
|
10
|
+
const handleChange = (event) => {
|
|
11
|
+
setPrefersReducedMotion(event.matches);
|
|
12
|
+
};
|
|
13
|
+
if (mediaQuery.addEventListener) {
|
|
14
|
+
mediaQuery.addEventListener("change", handleChange);
|
|
15
|
+
return () => mediaQuery.removeEventListener("change", handleChange);
|
|
16
|
+
} else {
|
|
17
|
+
mediaQuery.addListener(handleChange);
|
|
18
|
+
return () => mediaQuery.removeListener(handleChange);
|
|
19
|
+
}
|
|
20
|
+
}, []);
|
|
21
|
+
return prefersReducedMotion;
|
|
22
|
+
}
|
|
23
|
+
function getEffectiveDuration(speed, respectMotionPreference, prefersReducedMotion) {
|
|
24
|
+
if (respectMotionPreference && prefersReducedMotion) {
|
|
25
|
+
return "0.01ms";
|
|
26
|
+
}
|
|
27
|
+
if (typeof speed === "number") {
|
|
28
|
+
const validSpeed = !isNaN(speed) && speed > 0 ? Math.max(50, Math.min(1e4, speed)) : 1e3;
|
|
29
|
+
return `${validSpeed}ms`;
|
|
30
|
+
}
|
|
31
|
+
const speedMap = {
|
|
32
|
+
slow: "2s",
|
|
33
|
+
normal: "1s",
|
|
34
|
+
fast: "0.5s"
|
|
35
|
+
};
|
|
36
|
+
return speedMap[speed] || speedMap.normal;
|
|
37
|
+
}
|
|
38
|
+
function useLoaderVisibility(visible = true, delay = 0, minDuration = 0, transition) {
|
|
39
|
+
const transitionDuration = transition === true ? 150 : typeof transition === "number" ? transition : 0;
|
|
40
|
+
const hasTransition = transitionDuration > 0;
|
|
41
|
+
const [shouldRender, setShouldRender] = useState(visible && delay === 0);
|
|
42
|
+
const [isTransitioning, setIsTransitioning] = useState(visible && delay === 0 && hasTransition);
|
|
43
|
+
const showTimeRef = useRef(visible && delay === 0 ? Date.now() : null);
|
|
44
|
+
const delayTimerRef = useRef(null);
|
|
45
|
+
const minDurationTimerRef = useRef(null);
|
|
46
|
+
const transitionTimerRef = useRef(null);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (delayTimerRef.current) {
|
|
49
|
+
clearTimeout(delayTimerRef.current);
|
|
50
|
+
delayTimerRef.current = null;
|
|
51
|
+
}
|
|
52
|
+
if (minDurationTimerRef.current) {
|
|
53
|
+
clearTimeout(minDurationTimerRef.current);
|
|
54
|
+
minDurationTimerRef.current = null;
|
|
55
|
+
}
|
|
56
|
+
if (transitionTimerRef.current) {
|
|
57
|
+
clearTimeout(transitionTimerRef.current);
|
|
58
|
+
transitionTimerRef.current = null;
|
|
59
|
+
}
|
|
60
|
+
if (visible) {
|
|
61
|
+
if (delay > 0) {
|
|
62
|
+
delayTimerRef.current = setTimeout(() => {
|
|
63
|
+
setShouldRender(true);
|
|
64
|
+
showTimeRef.current = Date.now();
|
|
65
|
+
if (hasTransition) {
|
|
66
|
+
setIsTransitioning(true);
|
|
67
|
+
}
|
|
68
|
+
}, delay);
|
|
69
|
+
} else {
|
|
70
|
+
setShouldRender(true);
|
|
71
|
+
showTimeRef.current = Date.now();
|
|
72
|
+
if (hasTransition) {
|
|
73
|
+
setIsTransitioning(true);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
const hideLoader = () => {
|
|
78
|
+
if (hasTransition) {
|
|
79
|
+
setIsTransitioning(false);
|
|
80
|
+
transitionTimerRef.current = setTimeout(() => {
|
|
81
|
+
setShouldRender(false);
|
|
82
|
+
showTimeRef.current = null;
|
|
83
|
+
}, transitionDuration);
|
|
84
|
+
} else {
|
|
85
|
+
setShouldRender(false);
|
|
86
|
+
showTimeRef.current = null;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
if (showTimeRef.current !== null && minDuration > 0) {
|
|
90
|
+
const elapsedTime = Date.now() - showTimeRef.current;
|
|
91
|
+
const remainingTime = minDuration - elapsedTime;
|
|
92
|
+
if (remainingTime > 0) {
|
|
93
|
+
minDurationTimerRef.current = setTimeout(hideLoader, remainingTime);
|
|
94
|
+
} else {
|
|
95
|
+
hideLoader();
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
hideLoader();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return () => {
|
|
102
|
+
if (delayTimerRef.current) {
|
|
103
|
+
clearTimeout(delayTimerRef.current);
|
|
104
|
+
}
|
|
105
|
+
if (minDurationTimerRef.current) {
|
|
106
|
+
clearTimeout(minDurationTimerRef.current);
|
|
107
|
+
}
|
|
108
|
+
if (transitionTimerRef.current) {
|
|
109
|
+
clearTimeout(transitionTimerRef.current);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}, [visible, delay, minDuration, hasTransition, transitionDuration]);
|
|
113
|
+
const opacity = hasTransition ? isTransitioning ? 1 : 0 : 1;
|
|
114
|
+
const transitionStyle = hasTransition ? `opacity ${transitionDuration}ms ease-in-out` : "none";
|
|
115
|
+
return {
|
|
116
|
+
shouldRender,
|
|
117
|
+
opacity,
|
|
118
|
+
transitionStyle
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
getEffectiveDuration,
|
|
123
|
+
useLoaderVisibility,
|
|
124
|
+
useReducedMotion
|
|
125
|
+
};
|
package/dist/index8.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const Skeleton = require("./index7.cjs");
|
|
6
|
-
const hooks = require("./
|
|
6
|
+
const hooks = require("./index71.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const classNames = require("./index3.cjs");
|
|
9
9
|
const SkeletonText = react.forwardRef(
|
package/dist/index8.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { Skeleton } from "./index7.js";
|
|
4
|
-
import { useLoaderVisibility } from "./
|
|
4
|
+
import { useLoaderVisibility } from "./index71.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
import { cn } from "./index3.js";
|
|
7
7
|
const SkeletonText = forwardRef(
|
package/dist/index9.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const Skeleton = require("./index7.cjs");
|
|
6
|
-
const hooks = require("./
|
|
6
|
+
const hooks = require("./index71.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const SkeletonAvatar = react.forwardRef(
|
|
9
9
|
({
|
package/dist/index9.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { Skeleton } from "./index7.js";
|
|
4
|
-
import { useLoaderVisibility } from "./
|
|
4
|
+
import { useLoaderVisibility } from "./index71.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const SkeletonAvatar = forwardRef(
|
|
7
7
|
({
|
|
@@ -976,6 +976,91 @@
|
|
|
976
976
|
from { transform: rotate(var(--start-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--start-angle))); }
|
|
977
977
|
to { transform: rotate(calc(var(--start-angle) + 360deg)) translateX(var(--orbit-radius)) rotate(calc(-1 * (var(--start-angle) + 360deg))); }
|
|
978
978
|
}
|
|
979
|
+
/* ============================================================ */
|
|
980
|
+
/* NEON ANIMATIONS (v4.1.0) */
|
|
981
|
+
/* ============================================================ */
|
|
982
|
+
@keyframes neon-pulse-ring {
|
|
983
|
+
0%, 100% {
|
|
984
|
+
transform: scale(1);
|
|
985
|
+
opacity: 1;
|
|
986
|
+
box-shadow: 0 0 var(--neon-glow-spread, 8px) var(--neon-glow-spread, 8px) var(--neon-color, #3b82f6);
|
|
987
|
+
}
|
|
988
|
+
50% {
|
|
989
|
+
transform: scale(1.15);
|
|
990
|
+
opacity: 0.5;
|
|
991
|
+
box-shadow: 0 0 calc(var(--neon-glow-spread, 8px) * 2) calc(var(--neon-glow-spread, 8px) * 2) var(--neon-color, #3b82f6);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
@keyframes neon-spinner-rotate {
|
|
995
|
+
from { transform: rotate(0deg); }
|
|
996
|
+
to { transform: rotate(360deg); }
|
|
997
|
+
}
|
|
998
|
+
@keyframes neon-text-glow {
|
|
999
|
+
0%, 100% { opacity: 1; text-shadow: 0 0 8px var(--neon-color, #22d3ee), 0 0 16px var(--neon-color, #22d3ee); }
|
|
1000
|
+
50% { opacity: 0.6; text-shadow: 0 0 2px var(--neon-color, #22d3ee); }
|
|
1001
|
+
}
|
|
1002
|
+
.animate-neon-pulse {
|
|
1003
|
+
animation: neon-pulse-ring var(--animation-duration-normal, 1.5s) ease-in-out infinite;
|
|
1004
|
+
}
|
|
1005
|
+
.animate-neon-spinner {
|
|
1006
|
+
animation: neon-spinner-rotate var(--animation-duration-normal, 1s) linear infinite;
|
|
1007
|
+
}
|
|
1008
|
+
.animate-neon-text-glow {
|
|
1009
|
+
animation: neon-text-glow var(--animation-duration-normal, 1.5s) ease-in-out infinite;
|
|
1010
|
+
}
|
|
1011
|
+
/* ============================================================ */
|
|
1012
|
+
/* STATUS ANIMATIONS (v4.1.0) */
|
|
1013
|
+
/* ============================================================ */
|
|
1014
|
+
@keyframes warning-scale {
|
|
1015
|
+
0% { transform: scale(0); }
|
|
1016
|
+
50% { transform: scale(1.1); }
|
|
1017
|
+
100% { transform: scale(1); }
|
|
1018
|
+
}
|
|
1019
|
+
@keyframes warning-shake {
|
|
1020
|
+
0%, 100% { transform: translateX(0) scale(1); }
|
|
1021
|
+
10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) scale(1); }
|
|
1022
|
+
20%, 40%, 60%, 80% { transform: translateX(4px) scale(1); }
|
|
1023
|
+
}
|
|
1024
|
+
@keyframes info-scale {
|
|
1025
|
+
0% { transform: scale(0); }
|
|
1026
|
+
50% { transform: scale(1.1); }
|
|
1027
|
+
100% { transform: scale(1); }
|
|
1028
|
+
}
|
|
1029
|
+
@keyframes info-pulse-glow {
|
|
1030
|
+
0%, 100% { box-shadow: 0 0 0 0 var(--info-color, #3b82f6); }
|
|
1031
|
+
50% { box-shadow: 0 0 0 6px color(from var(--info-color, #3b82f6) srgb r g b / 0); }
|
|
1032
|
+
}
|
|
1033
|
+
.animate-warning-scale {
|
|
1034
|
+
animation: warning-scale var(--animation-duration-normal, 500ms) ease-out forwards;
|
|
1035
|
+
}
|
|
1036
|
+
.animate-warning-shake {
|
|
1037
|
+
animation: warning-shake var(--animation-duration-normal, 500ms) ease-out forwards;
|
|
1038
|
+
}
|
|
1039
|
+
.animate-info-scale {
|
|
1040
|
+
animation: info-scale var(--animation-duration-normal, 500ms) ease-out forwards;
|
|
1041
|
+
}
|
|
1042
|
+
.animate-info-pulse-glow {
|
|
1043
|
+
animation: info-pulse-glow 1.5s ease-in-out infinite;
|
|
1044
|
+
}
|
|
1045
|
+
/* ============================================================ */
|
|
1046
|
+
/* PARTICLE ANIMATIONS (v4.1.0) */
|
|
1047
|
+
/* ============================================================ */
|
|
1048
|
+
@keyframes particle-trail-orbit {
|
|
1049
|
+
from { transform: rotate(var(--start-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--start-angle))); }
|
|
1050
|
+
to { transform: rotate(calc(var(--start-angle) + 360deg)) translateX(var(--orbit-radius)) rotate(calc(-1 * (var(--start-angle) + 360deg))); }
|
|
1051
|
+
}
|
|
1052
|
+
@keyframes particle-field-float {
|
|
1053
|
+
0% { transform: translate(var(--tx-start, 0px), 0px); opacity: 0; }
|
|
1054
|
+
10% { opacity: var(--particle-opacity, 0.7); }
|
|
1055
|
+
90% { opacity: var(--particle-opacity, 0.7); }
|
|
1056
|
+
100% { transform: translate(var(--tx-end, 0px), calc(var(--field-height, 120px) * -1)); opacity: 0; }
|
|
1057
|
+
}
|
|
1058
|
+
.animate-particle-trail {
|
|
1059
|
+
animation: particle-trail-orbit var(--animation-duration-normal, 1.5s) linear infinite;
|
|
1060
|
+
}
|
|
1061
|
+
.animate-particle-field-float {
|
|
1062
|
+
animation: particle-field-float var(--animation-duration-normal, 3s) ease-in-out infinite;
|
|
1063
|
+
}
|
|
979
1064
|
/* CSS Variables for theming */
|
|
980
1065
|
:root {
|
|
981
1066
|
/* Colors */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AAGvB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseLoaderProps } from './common';
|
|
2
|
+
export interface NeonPulseProps extends BaseLoaderProps {
|
|
3
|
+
/** Ring diameter in px (default: 60) */
|
|
4
|
+
size?: number;
|
|
5
|
+
/** Neon glow color (default: '#3b82f6') */
|
|
6
|
+
color?: string;
|
|
7
|
+
/** Controls box-shadow spread (default: 'medium') */
|
|
8
|
+
glowIntensity?: 'low' | 'medium' | 'high';
|
|
9
|
+
}
|
|
10
|
+
export interface NeonSpinnerProps extends BaseLoaderProps {
|
|
11
|
+
/** Spinner diameter in px (default: 60) */
|
|
12
|
+
size?: number;
|
|
13
|
+
/** Neon arc color (default: '#a855f7') */
|
|
14
|
+
color?: string;
|
|
15
|
+
/** Arc stroke width in px (default: 4) */
|
|
16
|
+
thickness?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface NeonTextProps extends BaseLoaderProps {
|
|
19
|
+
/** Display text (default: 'LOADING') */
|
|
20
|
+
text?: string;
|
|
21
|
+
/** Neon glow color (default: '#22d3ee') */
|
|
22
|
+
color?: string;
|
|
23
|
+
/** Font size in px (default: 18) */
|
|
24
|
+
fontSize?: number;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=neon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neon.d.ts","sourceRoot":"","sources":["../../src/types/neon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC3C;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/types/particle.d.ts
CHANGED
|
@@ -19,4 +19,22 @@ export interface ParticleOrbitProps extends BaseLoaderProps {
|
|
|
19
19
|
/** Central dot color */
|
|
20
20
|
centerColor?: string;
|
|
21
21
|
}
|
|
22
|
+
export interface ParticleTrailProps extends BaseLoaderProps {
|
|
23
|
+
/** Orbit diameter in px (default: 60) */
|
|
24
|
+
size?: number;
|
|
25
|
+
/** Number of trailing particles (3–10, default: 6) */
|
|
26
|
+
count?: number;
|
|
27
|
+
/** Particle color (default: '#3b82f6') */
|
|
28
|
+
color?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ParticleFieldProps extends BaseLoaderProps {
|
|
31
|
+
/** Field width in px (default: 120) */
|
|
32
|
+
width?: number;
|
|
33
|
+
/** Field height in px (default: 120) */
|
|
34
|
+
height?: number;
|
|
35
|
+
/** Number of particles (5–30, default: 12) */
|
|
36
|
+
count?: number;
|
|
37
|
+
/** Particle color (default: '#3b82f6') */
|
|
38
|
+
color?: string;
|
|
39
|
+
}
|
|
22
40
|
//# sourceMappingURL=particle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"particle.d.ts","sourceRoot":"","sources":["../../src/types/particle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
1
|
+
{"version":3,"file":"particle.d.ts","sourceRoot":"","sources":["../../src/types/particle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
package/dist/types/status.d.ts
CHANGED
|
@@ -31,4 +31,34 @@ export interface ErrorIndicatorProps extends Omit<BaseLoaderProps, 'speed' | 're
|
|
|
31
31
|
/** Whether to shake/bounce on appearance */
|
|
32
32
|
shake?: boolean;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* WarningIndicator component props
|
|
36
|
+
*/
|
|
37
|
+
export interface WarningIndicatorProps extends Omit<BaseLoaderProps, 'speed' | 'reverse' | 'respectMotionPreference'> {
|
|
38
|
+
/** Icon size in px (default: 48) */
|
|
39
|
+
size?: number;
|
|
40
|
+
/** Triangle color (default: '#f59e0b') */
|
|
41
|
+
color?: string;
|
|
42
|
+
/** Run draw-in animation on mount (default: true) */
|
|
43
|
+
animate?: boolean;
|
|
44
|
+
/** Shake on appearance (default: false) */
|
|
45
|
+
shake?: boolean;
|
|
46
|
+
/** Animation duration in ms (default: 500) */
|
|
47
|
+
duration?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* InfoIndicator component props
|
|
51
|
+
*/
|
|
52
|
+
export interface InfoIndicatorProps extends Omit<BaseLoaderProps, 'speed' | 'reverse' | 'respectMotionPreference'> {
|
|
53
|
+
/** Icon size in px (default: 48) */
|
|
54
|
+
size?: number;
|
|
55
|
+
/** Icon color (default: '#3b82f6') */
|
|
56
|
+
color?: string;
|
|
57
|
+
/** Run draw-in animation on mount (default: true) */
|
|
58
|
+
animate?: boolean;
|
|
59
|
+
/** Ongoing pulse glow (default: false) */
|
|
60
|
+
pulse?: boolean;
|
|
61
|
+
/** Animation duration in ms (default: 500) */
|
|
62
|
+
duration?: number;
|
|
63
|
+
}
|
|
34
64
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/types/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,yBAAyB,CAAC;IACnH,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,yBAAyB,CAAC;IACjH,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/types/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,yBAAyB,CAAC;IACnH,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,yBAAyB,CAAC;IACjH,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,yBAAyB,CAAC;IACnH,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,yBAAyB,CAAC;IAChH,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|