premium-react-loaders 2.3.1 → 3.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/README.md +87 -3
- package/dist/components/3d/CubeSpinner.d.ts +21 -0
- package/dist/components/3d/CubeSpinner.d.ts.map +1 -0
- package/dist/components/3d/FlipCard.d.ts +21 -0
- package/dist/components/3d/FlipCard.d.ts.map +1 -0
- package/dist/components/3d/Helix.d.ts +23 -0
- package/dist/components/3d/Helix.d.ts.map +1 -0
- package/dist/components/3d/PerspectiveRing.d.ts +21 -0
- package/dist/components/3d/PerspectiveRing.d.ts.map +1 -0
- package/dist/components/3d/PlaneRotate.d.ts +21 -0
- package/dist/components/3d/PlaneRotate.d.ts.map +1 -0
- package/dist/components/3d/index.d.ts +6 -0
- package/dist/components/3d/index.d.ts.map +1 -0
- package/dist/components/accessibility/LiveRegion.d.ts +34 -0
- package/dist/components/accessibility/LiveRegion.d.ts.map +1 -0
- package/dist/components/accessibility/index.d.ts +2 -0
- package/dist/components/accessibility/index.d.ts.map +1 -0
- package/dist/components/bounce/BouncingBalls.d.ts +15 -0
- package/dist/components/bounce/BouncingBalls.d.ts.map +1 -0
- package/dist/components/bounce/BouncingDots.d.ts +15 -0
- package/dist/components/bounce/BouncingDots.d.ts.map +1 -0
- package/dist/components/bounce/index.d.ts +3 -0
- package/dist/components/bounce/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/infinity/InfinityLoader.d.ts +15 -0
- package/dist/components/infinity/InfinityLoader.d.ts.map +1 -0
- package/dist/components/infinity/MobiusLoader.d.ts +15 -0
- package/dist/components/infinity/MobiusLoader.d.ts.map +1 -0
- package/dist/components/infinity/index.d.ts +3 -0
- package/dist/components/infinity/index.d.ts.map +1 -0
- package/dist/components/orbit/AtomLoader.d.ts +15 -0
- package/dist/components/orbit/AtomLoader.d.ts.map +1 -0
- package/dist/components/orbit/OrbitDots.d.ts +15 -0
- package/dist/components/orbit/OrbitDots.d.ts.map +1 -0
- package/dist/components/orbit/OrbitRings.d.ts +15 -0
- package/dist/components/orbit/OrbitRings.d.ts.map +1 -0
- package/dist/components/orbit/index.d.ts +4 -0
- package/dist/components/orbit/index.d.ts.map +1 -0
- package/dist/components/shimmer/ShimmerBox.d.ts +15 -0
- package/dist/components/shimmer/ShimmerBox.d.ts.map +1 -0
- package/dist/components/shimmer/ShimmerButton.d.ts +15 -0
- package/dist/components/shimmer/ShimmerButton.d.ts.map +1 -0
- package/dist/components/shimmer/ShimmerText.d.ts +15 -0
- package/dist/components/shimmer/ShimmerText.d.ts.map +1 -0
- package/dist/components/shimmer/index.d.ts +4 -0
- package/dist/components/shimmer/index.d.ts.map +1 -0
- package/dist/components/skeleton/DataTableSkeleton.d.ts +25 -0
- package/dist/components/skeleton/DataTableSkeleton.d.ts.map +1 -0
- package/dist/components/skeleton/SmartSkeleton.d.ts +23 -0
- package/dist/components/skeleton/SmartSkeleton.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -1
- package/dist/components/smart/FormFieldLoader.d.ts +22 -0
- package/dist/components/smart/FormFieldLoader.d.ts.map +1 -0
- package/dist/components/smart/index.d.ts +2 -0
- package/dist/components/smart/index.d.ts.map +1 -0
- package/dist/components/text/LoadingText.d.ts +16 -0
- package/dist/components/text/LoadingText.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useLoadingAnalytics.d.ts +101 -0
- package/dist/hooks/useLoadingAnalytics.d.ts.map +1 -0
- package/dist/hooks/useLoadingOrchestrator.d.ts +104 -0
- package/dist/hooks/useLoadingOrchestrator.d.ts.map +1 -0
- package/dist/hooks/useSmartLoader.d.ts +98 -0
- package/dist/hooks/useSmartLoader.d.ts.map +1 -0
- package/dist/index.cjs +60 -20
- package/dist/index.js +60 -20
- 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/index16.cjs +131 -66
- package/dist/index16.js +132 -67
- package/dist/index17.cjs +245 -30
- package/dist/index17.js +246 -31
- package/dist/index18.cjs +24 -36
- package/dist/index18.js +24 -36
- package/dist/index19.cjs +19 -21
- package/dist/index19.js +19 -21
- package/dist/index20.cjs +25 -20
- package/dist/index20.js +25 -20
- package/dist/index21.cjs +22 -32
- package/dist/index21.js +22 -32
- package/dist/index22.cjs +26 -35
- package/dist/index22.js +28 -37
- package/dist/index23.cjs +40 -76
- package/dist/index23.js +42 -78
- package/dist/index24.cjs +53 -102
- package/dist/index24.js +54 -103
- package/dist/index25.cjs +46 -80
- package/dist/index25.js +47 -81
- package/dist/index26.cjs +105 -103
- package/dist/index26.js +107 -105
- package/dist/index27.cjs +108 -27
- package/dist/index27.js +111 -30
- package/dist/index28.cjs +104 -36
- package/dist/index28.js +106 -38
- package/dist/index29.cjs +22 -30
- package/dist/index29.js +23 -31
- package/dist/index30.cjs +30 -32
- package/dist/index30.js +31 -33
- package/dist/index31.cjs +49 -52
- package/dist/index31.js +50 -53
- package/dist/index32.cjs +37 -108
- package/dist/index32.js +38 -109
- package/dist/index33.cjs +54 -72
- package/dist/index33.js +55 -73
- package/dist/index34.cjs +112 -80
- package/dist/index34.js +112 -80
- package/dist/index35.cjs +78 -145
- package/dist/index35.js +80 -147
- package/dist/index36.cjs +112 -120
- package/dist/index36.js +113 -121
- package/dist/index37.cjs +167 -0
- package/dist/index37.js +167 -0
- package/dist/index38.cjs +96 -0
- package/dist/index38.js +96 -0
- package/dist/index39.cjs +113 -0
- package/dist/index39.js +113 -0
- package/dist/index40.cjs +169 -0
- package/dist/index40.js +169 -0
- package/dist/index41.cjs +97 -0
- package/dist/index41.js +97 -0
- package/dist/index42.cjs +90 -0
- package/dist/index42.js +90 -0
- package/dist/index43.cjs +139 -0
- package/dist/index43.js +139 -0
- package/dist/index44.cjs +82 -0
- package/dist/index44.js +82 -0
- package/dist/index45.cjs +110 -0
- package/dist/index45.js +110 -0
- package/dist/index46.cjs +135 -0
- package/dist/index46.js +135 -0
- package/dist/index47.cjs +106 -0
- package/dist/index47.js +106 -0
- package/dist/index48.cjs +158 -0
- package/dist/index48.js +158 -0
- package/dist/index49.cjs +167 -0
- package/dist/index49.js +167 -0
- package/dist/index50.cjs +110 -0
- package/dist/index50.js +110 -0
- package/dist/index51.cjs +112 -0
- package/dist/index51.js +112 -0
- package/dist/index52.cjs +144 -0
- package/dist/index52.js +144 -0
- package/dist/index53.cjs +112 -0
- package/dist/index53.js +112 -0
- package/dist/index54.cjs +189 -0
- package/dist/index54.js +189 -0
- package/dist/index55.cjs +53 -0
- package/dist/index55.js +53 -0
- package/dist/index56.cjs +125 -0
- package/dist/index56.js +125 -0
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -1
- 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 +357 -0
- package/dist/types/3d.d.ts +85 -0
- package/dist/types/3d.d.ts.map +1 -0
- package/dist/types/accessibility.d.ts +35 -0
- package/dist/types/accessibility.d.ts.map +1 -0
- package/dist/types/bounce.d.ts +41 -0
- package/dist/types/bounce.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/infinity.d.ts +35 -0
- package/dist/types/infinity.d.ts.map +1 -0
- package/dist/types/orbit.d.ts +50 -0
- package/dist/types/orbit.d.ts.map +1 -0
- package/dist/types/shimmer.d.ts +52 -0
- package/dist/types/shimmer.d.ts.map +1 -0
- package/dist/types/smart.d.ts +63 -0
- package/dist/types/smart.d.ts.map +1 -0
- package/dist/types/text.d.ts +27 -0
- package/dist/types/text.d.ts.map +1 -0
- package/dist/utils/accessibility.d.ts +67 -0
- package/dist/utils/accessibility.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FormFieldLoaderProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* FormFieldLoader - Loading state for form inputs
|
|
4
|
+
*
|
|
5
|
+
* Specialized loader for form fields that maintains layout during loading,
|
|
6
|
+
* with support for various input types, labels, and validation messages.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <FormFieldLoader fieldType="text" showLabel showRequired />
|
|
11
|
+
* <FormFieldLoader
|
|
12
|
+
* fieldType="select"
|
|
13
|
+
* labelWidth={120}
|
|
14
|
+
* fieldWidth="100%"
|
|
15
|
+
* showLabel
|
|
16
|
+
* showValidation
|
|
17
|
+
* />
|
|
18
|
+
* <FormFieldLoader fieldType="textarea" fieldHeight={120} />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const FormFieldLoader: import('react').ForwardRefExoticComponent<FormFieldLoaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
|
+
//# sourceMappingURL=FormFieldLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldLoader.d.ts","sourceRoot":"","sources":["../../../src/components/smart/FormFieldLoader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAInD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,iHAyK3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/smart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LoadingTextProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* LoadingText - Animated loading text with ellipsis
|
|
4
|
+
*
|
|
5
|
+
* Customizable "Loading..." text with various animation styles.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <LoadingText />
|
|
10
|
+
* <LoadingText text="Please wait" animation="fade" />
|
|
11
|
+
* <LoadingText text="Processing" dotCount={4} color="#3b82f6" />
|
|
12
|
+
* <LoadingText animation="bounce" fontSize={18} />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const LoadingText: import('react').ForwardRefExoticComponent<LoadingTextProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
|
+
//# sourceMappingURL=LoadingText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingText.d.ts","sourceRoot":"","sources":["../../../src/components/text/LoadingText.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQ/C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,6GAiLvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { useLoader } from './useLoader';
|
|
2
2
|
export { useEnhancedLoader } from './useEnhancedLoader';
|
|
3
|
+
export { useLoadingOrchestrator } from './useLoadingOrchestrator';
|
|
4
|
+
export { useLoadingAnalytics } from './useLoadingAnalytics';
|
|
5
|
+
export { useSmartLoader } from './useSmartLoader';
|
|
3
6
|
export type { UseLoaderOptions as BasicUseLoaderOptions, UseLoaderReturn as BasicUseLoaderReturn } from './useLoader';
|
|
4
7
|
export type { UseLoaderOptions, UseLoaderReturn, LoadingStatus, LoadingHistoryEntry, RetryConfig } from '../types/hooks';
|
|
8
|
+
export type { LoadingTask, LoadingTaskStatus, OrchestratorOptions, UseLoadingOrchestratorReturn, } from './useLoadingOrchestrator';
|
|
9
|
+
export type { LoadingSession, LoadingMetrics, AnalyticsOptions, UseLoadingAnalyticsReturn, } from './useLoadingAnalytics';
|
|
10
|
+
export type { ConnectionSpeed, SmartLoaderOptions, UseSmartLoaderReturn, } from './useSmartLoader';
|
|
5
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,YAAY,EAAE,gBAAgB,IAAI,qBAAqB,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACtH,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACzH,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface LoadingSession {
|
|
2
|
+
/** Session start timestamp */
|
|
3
|
+
startTime: number;
|
|
4
|
+
/** Session end timestamp */
|
|
5
|
+
endTime?: number;
|
|
6
|
+
/** Duration in milliseconds */
|
|
7
|
+
duration?: number;
|
|
8
|
+
/** Whether the loading was successful */
|
|
9
|
+
success?: boolean;
|
|
10
|
+
/** Whether the user abandoned (navigated away) */
|
|
11
|
+
abandoned?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface LoadingMetrics {
|
|
14
|
+
/** Total number of loading sessions */
|
|
15
|
+
totalSessions: number;
|
|
16
|
+
/** Average loading duration in milliseconds */
|
|
17
|
+
averageDuration: number;
|
|
18
|
+
/** Longest loading time in milliseconds */
|
|
19
|
+
maxDuration: number;
|
|
20
|
+
/** Shortest loading time in milliseconds */
|
|
21
|
+
minDuration: number;
|
|
22
|
+
/** Success rate (0-1) */
|
|
23
|
+
successRate: number;
|
|
24
|
+
/** User abandonment rate (0-1) */
|
|
25
|
+
abandonmentRate: number;
|
|
26
|
+
/** All sessions data */
|
|
27
|
+
sessions: LoadingSession[];
|
|
28
|
+
}
|
|
29
|
+
export interface AnalyticsOptions {
|
|
30
|
+
/** Track user interactions during loading */
|
|
31
|
+
trackInteractions?: boolean;
|
|
32
|
+
/** Callback when metrics are updated */
|
|
33
|
+
onMetricsUpdate?: (metrics: LoadingMetrics) => void;
|
|
34
|
+
/** Local storage key for persisting metrics */
|
|
35
|
+
storageKey?: string;
|
|
36
|
+
/** Maximum number of sessions to store */
|
|
37
|
+
maxSessions?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface UseLoadingAnalyticsReturn {
|
|
40
|
+
/** Current metrics */
|
|
41
|
+
metrics: LoadingMetrics;
|
|
42
|
+
/** Start tracking a loading session */
|
|
43
|
+
startTracking: () => void;
|
|
44
|
+
/** Stop tracking and mark as success or failure */
|
|
45
|
+
stopTracking: (success: boolean) => void;
|
|
46
|
+
/** Record user abandonment */
|
|
47
|
+
recordAbandonment: () => void;
|
|
48
|
+
/** Clear all metrics */
|
|
49
|
+
clearMetrics: () => void;
|
|
50
|
+
/** Export metrics as JSON */
|
|
51
|
+
exportMetrics: () => LoadingMetrics;
|
|
52
|
+
/** Whether currently tracking */
|
|
53
|
+
isTracking: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* useLoadingAnalytics - Track loading performance and user experience
|
|
57
|
+
*
|
|
58
|
+
* Monitors loading sessions, calculates performance metrics, and tracks user behavior
|
|
59
|
+
* like abandonment. Useful for optimizing loading UX and identifying bottlenecks.
|
|
60
|
+
*
|
|
61
|
+
* @param options - Configuration options
|
|
62
|
+
* @returns Metrics and tracking control functions
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* function AnalyticsDemo() {
|
|
67
|
+
* const {
|
|
68
|
+
* metrics,
|
|
69
|
+
* startTracking,
|
|
70
|
+
* stopTracking,
|
|
71
|
+
* isTracking,
|
|
72
|
+
* } = useLoadingAnalytics({
|
|
73
|
+
* storageKey: 'my-app-loading-metrics',
|
|
74
|
+
* onMetricsUpdate: (metrics) => {
|
|
75
|
+
* console.log('Average load time:', metrics.averageDuration, 'ms');
|
|
76
|
+
* console.log('Success rate:', (metrics.successRate * 100).toFixed(1), '%');
|
|
77
|
+
* },
|
|
78
|
+
* });
|
|
79
|
+
*
|
|
80
|
+
* const loadData = async () => {
|
|
81
|
+
* startTracking();
|
|
82
|
+
* try {
|
|
83
|
+
* await fetchData();
|
|
84
|
+
* stopTracking(true);
|
|
85
|
+
* } catch (error) {
|
|
86
|
+
* stopTracking(false);
|
|
87
|
+
* }
|
|
88
|
+
* };
|
|
89
|
+
*
|
|
90
|
+
* return (
|
|
91
|
+
* <div>
|
|
92
|
+
* <p>Total sessions: {metrics.totalSessions}</p>
|
|
93
|
+
* <p>Avg duration: {metrics.averageDuration.toFixed(0)}ms</p>
|
|
94
|
+
* <p>Success rate: {(metrics.successRate * 100).toFixed(1)}%</p>
|
|
95
|
+
* </div>
|
|
96
|
+
* );
|
|
97
|
+
* }
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
export declare function useLoadingAnalytics(options?: AnalyticsOptions): UseLoadingAnalyticsReturn;
|
|
101
|
+
//# sourceMappingURL=useLoadingAnalytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLoadingAnalytics.d.ts","sourceRoot":"","sources":["../../src/hooks/useLoadingAnalytics.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,uCAAuC;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,CAAC;IACxB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB;IACxB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wCAAwC;IACxC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IACpD,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC,sBAAsB;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,uCAAuC;IACvC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,mDAAmD;IACnD,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,8BAA8B;IAC9B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,wBAAwB;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,6BAA6B;IAC7B,aAAa,EAAE,MAAM,cAAc,CAAC;IACpC,iCAAiC;IACjC,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,gBAAqB,GAC7B,yBAAyB,CA0L3B"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export type LoadingTaskStatus = 'pending' | 'loading' | 'success' | 'error';
|
|
2
|
+
export interface LoadingTask {
|
|
3
|
+
/** Unique identifier for the task */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Human-readable label */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Current status */
|
|
8
|
+
status: LoadingTaskStatus;
|
|
9
|
+
/** Task dependencies (IDs of tasks that must complete first) */
|
|
10
|
+
dependsOn?: string[];
|
|
11
|
+
/** Progress percentage (0-100) */
|
|
12
|
+
progress?: number;
|
|
13
|
+
/** Error object if task failed */
|
|
14
|
+
error?: Error;
|
|
15
|
+
}
|
|
16
|
+
export interface OrchestratorOptions {
|
|
17
|
+
/** Execution mode: parallel or sequential */
|
|
18
|
+
mode?: 'parallel' | 'sequential';
|
|
19
|
+
/** Stop all tasks on first error */
|
|
20
|
+
stopOnError?: boolean;
|
|
21
|
+
/** Callback when a task starts */
|
|
22
|
+
onTaskStart?: (taskId: string) => void;
|
|
23
|
+
/** Callback when a task completes successfully */
|
|
24
|
+
onTaskComplete?: (taskId: string) => void;
|
|
25
|
+
/** Callback when a task fails */
|
|
26
|
+
onTaskError?: (taskId: string, error: Error) => void;
|
|
27
|
+
/** Callback when all tasks complete */
|
|
28
|
+
onAllComplete?: () => void;
|
|
29
|
+
}
|
|
30
|
+
export interface UseLoadingOrchestratorReturn {
|
|
31
|
+
/** Current state of all tasks */
|
|
32
|
+
tasks: LoadingTask[];
|
|
33
|
+
/** Start a specific task */
|
|
34
|
+
startTask: (taskId: string) => Promise<void>;
|
|
35
|
+
/** Mark a task as complete */
|
|
36
|
+
completeTask: (taskId: string) => void;
|
|
37
|
+
/** Mark a task as failed */
|
|
38
|
+
failTask: (taskId: string, error: Error) => void;
|
|
39
|
+
/** Update progress for a task */
|
|
40
|
+
updateProgress: (taskId: string, progress: number) => void;
|
|
41
|
+
/** Reset all tasks to pending */
|
|
42
|
+
resetTasks: () => void;
|
|
43
|
+
/** Overall progress (0-100) */
|
|
44
|
+
overallProgress: number;
|
|
45
|
+
/** Whether all tasks are complete */
|
|
46
|
+
allComplete: boolean;
|
|
47
|
+
/** Whether any task has errors */
|
|
48
|
+
hasErrors: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* useLoadingOrchestrator - Manage multiple loading states with dependencies
|
|
52
|
+
*
|
|
53
|
+
* Coordinates multiple loading tasks with dependency management, progress tracking,
|
|
54
|
+
* and execution control (parallel or sequential).
|
|
55
|
+
*
|
|
56
|
+
* @param initialTasks - Array of loading tasks
|
|
57
|
+
* @param options - Configuration options
|
|
58
|
+
* @returns Task state and control functions
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* function DataLoader() {
|
|
63
|
+
* const {
|
|
64
|
+
* tasks,
|
|
65
|
+
* startTask,
|
|
66
|
+
* completeTask,
|
|
67
|
+
* failTask,
|
|
68
|
+
* updateProgress,
|
|
69
|
+
* overallProgress,
|
|
70
|
+
* } = useLoadingOrchestrator(
|
|
71
|
+
* [
|
|
72
|
+
* { id: 'auth', label: 'Authenticating...', status: 'pending' },
|
|
73
|
+
* { id: 'data', label: 'Fetching data...', status: 'pending', dependsOn: ['auth'] },
|
|
74
|
+
* { id: 'render', label: 'Rendering...', status: 'pending', dependsOn: ['data'] },
|
|
75
|
+
* ],
|
|
76
|
+
* {
|
|
77
|
+
* mode: 'sequential',
|
|
78
|
+
* onAllComplete: () => console.log('All done!'),
|
|
79
|
+
* }
|
|
80
|
+
* );
|
|
81
|
+
*
|
|
82
|
+
* const loadAll = async () => {
|
|
83
|
+
* await startTask('auth');
|
|
84
|
+
* // ... perform auth
|
|
85
|
+
* completeTask('auth');
|
|
86
|
+
*
|
|
87
|
+
* await startTask('data');
|
|
88
|
+
* // ... fetch data
|
|
89
|
+
* completeTask('data');
|
|
90
|
+
* };
|
|
91
|
+
*
|
|
92
|
+
* return (
|
|
93
|
+
* <div>
|
|
94
|
+
* <ProgressBar value={overallProgress} />
|
|
95
|
+
* {tasks.map(task => (
|
|
96
|
+
* <div key={task.id}>{task.label}: {task.status}</div>
|
|
97
|
+
* ))}
|
|
98
|
+
* </div>
|
|
99
|
+
* );
|
|
100
|
+
* }
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
export declare function useLoadingOrchestrator(initialTasks: LoadingTask[], options?: OrchestratorOptions): UseLoadingOrchestratorReturn;
|
|
104
|
+
//# sourceMappingURL=useLoadingOrchestrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLoadingOrchestrator.d.ts","sourceRoot":"","sources":["../../src/hooks/useLoadingOrchestrator.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE5E,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,6CAA6C;IAC7C,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACjC,oCAAoC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,kDAAkD;IAClD,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,iCAAiC;IACjC,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrD,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,4BAA4B;IAC3C,iCAAiC;IACjC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,4BAA4B;IAC5B,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,8BAA8B;IAC9B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,4BAA4B;IAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjD,iCAAiC;IACjC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,iCAAiC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,+BAA+B;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,WAAW,EAAE,OAAO,CAAC;IACrB,kCAAkC;IAClC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,WAAW,EAAE,EAC3B,OAAO,GAAE,mBAAwB,GAChC,4BAA4B,CA0J9B"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export type ConnectionSpeed = 'slow' | 'medium' | 'fast';
|
|
2
|
+
export interface SmartLoaderOptions {
|
|
3
|
+
/** Auto-detect slow connections and adjust behavior */
|
|
4
|
+
adaptToConnection?: boolean;
|
|
5
|
+
/** Show estimated progress based on historical data */
|
|
6
|
+
estimateProgress?: boolean;
|
|
7
|
+
/** Automatically retry on failure */
|
|
8
|
+
autoRetry?: boolean;
|
|
9
|
+
/** Maximum retry attempts */
|
|
10
|
+
maxRetries?: number;
|
|
11
|
+
/** Use intelligent delay based on connection speed */
|
|
12
|
+
intelligentDelay?: boolean;
|
|
13
|
+
/** Callback when loading starts */
|
|
14
|
+
onLoadingStart?: () => void;
|
|
15
|
+
/** Callback when loading completes */
|
|
16
|
+
onLoadingComplete?: () => void;
|
|
17
|
+
/** Callback on retry */
|
|
18
|
+
onRetry?: (attempt: number) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface UseSmartLoaderReturn {
|
|
21
|
+
/** Current loading state */
|
|
22
|
+
loading: boolean;
|
|
23
|
+
/** Progress percentage (0-100) */
|
|
24
|
+
progress: number;
|
|
25
|
+
/** Estimated time remaining in seconds */
|
|
26
|
+
estimatedTimeRemaining: number;
|
|
27
|
+
/** Detected connection speed */
|
|
28
|
+
connectionSpeed: ConnectionSpeed;
|
|
29
|
+
/** Whether loader should be shown (accounts for intelligent delay) */
|
|
30
|
+
shouldShowLoader: boolean;
|
|
31
|
+
/** Current retry attempt */
|
|
32
|
+
retryAttempt: number;
|
|
33
|
+
/** Start loading */
|
|
34
|
+
startLoading: () => void;
|
|
35
|
+
/** Stop loading */
|
|
36
|
+
stopLoading: (success?: boolean) => void;
|
|
37
|
+
/** Update progress manually */
|
|
38
|
+
updateProgress: (value: number) => void;
|
|
39
|
+
/** Retry the operation */
|
|
40
|
+
retry: () => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* useSmartLoader - Intelligent loader with adaptive UX
|
|
44
|
+
*
|
|
45
|
+
* Combines multiple smart loading features: connection detection, progress estimation,
|
|
46
|
+
* intelligent delays, and automatic retry logic for optimal user experience.
|
|
47
|
+
*
|
|
48
|
+
* @param options - Configuration options
|
|
49
|
+
* @returns Smart loading state and controls
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* function SmartDataLoader() {
|
|
54
|
+
* const {
|
|
55
|
+
* loading,
|
|
56
|
+
* progress,
|
|
57
|
+
* estimatedTimeRemaining,
|
|
58
|
+
* connectionSpeed,
|
|
59
|
+
* shouldShowLoader,
|
|
60
|
+
* startLoading,
|
|
61
|
+
* stopLoading,
|
|
62
|
+
* updateProgress,
|
|
63
|
+
* } = useSmartLoader({
|
|
64
|
+
* adaptToConnection: true,
|
|
65
|
+
* estimateProgress: true,
|
|
66
|
+
* autoRetry: true,
|
|
67
|
+
* maxRetries: 3,
|
|
68
|
+
* intelligentDelay: true,
|
|
69
|
+
* });
|
|
70
|
+
*
|
|
71
|
+
* const loadData = async () => {
|
|
72
|
+
* startLoading();
|
|
73
|
+
* try {
|
|
74
|
+
* const data = await fetchData((progress) => {
|
|
75
|
+
* updateProgress(progress);
|
|
76
|
+
* });
|
|
77
|
+
* stopLoading(true);
|
|
78
|
+
* } catch (error) {
|
|
79
|
+
* stopLoading(false);
|
|
80
|
+
* }
|
|
81
|
+
* };
|
|
82
|
+
*
|
|
83
|
+
* return (
|
|
84
|
+
* <>
|
|
85
|
+
* {shouldShowLoader && (
|
|
86
|
+
* <div>
|
|
87
|
+
* <ProgressBar value={progress} />
|
|
88
|
+
* <p>Connection: {connectionSpeed}</p>
|
|
89
|
+
* <p>ETA: {estimatedTimeRemaining}s</p>
|
|
90
|
+
* </div>
|
|
91
|
+
* )}
|
|
92
|
+
* </>
|
|
93
|
+
* );
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export declare function useSmartLoader(options?: SmartLoaderOptions): UseSmartLoaderReturn;
|
|
98
|
+
//# sourceMappingURL=useSmartLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSmartLoader.d.ts","sourceRoot":"","sources":["../../src/hooks/useSmartLoader.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,wBAAwB;IACxB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gCAAgC;IAChC,eAAe,EAAE,eAAe,CAAC;IACjC,sEAAsE;IACtE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,4BAA4B;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,mBAAmB;IACnB,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,+BAA+B;IAC/B,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,cAAc,CAC5B,OAAO,GAAE,kBAAuB,GAC/B,oBAAoB,CA6OtB"}
|
package/dist/index.cjs
CHANGED
|
@@ -14,26 +14,46 @@ const SkeletonList = require("./index12.cjs");
|
|
|
14
14
|
const SkeletonTable = require("./index13.cjs");
|
|
15
15
|
const SkeletonPage = require("./index14.cjs");
|
|
16
16
|
const SkeletonForm = require("./index15.cjs");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
17
|
+
const SmartSkeleton = require("./index16.cjs");
|
|
18
|
+
const DataTableSkeleton = require("./index17.cjs");
|
|
19
|
+
const SpinnerCircle = require("./index18.cjs");
|
|
20
|
+
const SpinnerRing = require("./index19.cjs");
|
|
21
|
+
const SpinnerDots = require("./index20.cjs");
|
|
22
|
+
const SpinnerBars = require("./index21.cjs");
|
|
23
|
+
const SpinnerGrid = require("./index22.cjs");
|
|
24
|
+
const SpinnerWave = require("./index23.cjs");
|
|
25
|
+
const SpinnerPulse = require("./index24.cjs");
|
|
26
|
+
const ProgressBar = require("./index25.cjs");
|
|
27
|
+
const ProgressCircle = require("./index26.cjs");
|
|
28
|
+
const ProgressRing = require("./index27.cjs");
|
|
29
|
+
const ProgressSteps = require("./index28.cjs");
|
|
30
|
+
const PulseDots = require("./index29.cjs");
|
|
31
|
+
const PulseWave = require("./index30.cjs");
|
|
32
|
+
const PulseBars = require("./index31.cjs");
|
|
33
|
+
const TypingIndicator = require("./index32.cjs");
|
|
34
|
+
const LoaderOverlay = require("./index33.cjs");
|
|
35
|
+
const ButtonSpinner = require("./index34.cjs");
|
|
36
|
+
const SuccessCheckmark = require("./index35.cjs");
|
|
37
|
+
const ErrorIndicator = require("./index36.cjs");
|
|
38
|
+
const LoaderTransition = require("./index37.cjs");
|
|
39
|
+
const ShimmerBox = require("./index38.cjs");
|
|
40
|
+
const ShimmerText = require("./index39.cjs");
|
|
41
|
+
const ShimmerButton = require("./index40.cjs");
|
|
42
|
+
const OrbitDots = require("./index41.cjs");
|
|
43
|
+
const OrbitRings = require("./index42.cjs");
|
|
44
|
+
const AtomLoader = require("./index43.cjs");
|
|
45
|
+
const BouncingDots = require("./index44.cjs");
|
|
46
|
+
const BouncingBalls = require("./index45.cjs");
|
|
47
|
+
const InfinityLoader = require("./index46.cjs");
|
|
48
|
+
const MobiusLoader = require("./index47.cjs");
|
|
49
|
+
const LoadingText = require("./index48.cjs");
|
|
50
|
+
const CubeSpinner = require("./index49.cjs");
|
|
51
|
+
const FlipCard = require("./index50.cjs");
|
|
52
|
+
const PlaneRotate = require("./index51.cjs");
|
|
53
|
+
const Helix = require("./index52.cjs");
|
|
54
|
+
const PerspectiveRing = require("./index53.cjs");
|
|
55
|
+
const FormFieldLoader = require("./index54.cjs");
|
|
56
|
+
const LiveRegion = require("./index55.cjs");
|
|
37
57
|
const version = "2.1.0";
|
|
38
58
|
exports.cn = classNames.cn;
|
|
39
59
|
exports.getAnimationDuration = colors.getAnimationDuration;
|
|
@@ -50,6 +70,8 @@ exports.SkeletonList = SkeletonList.SkeletonList;
|
|
|
50
70
|
exports.SkeletonTable = SkeletonTable.SkeletonTable;
|
|
51
71
|
exports.SkeletonPage = SkeletonPage.SkeletonPage;
|
|
52
72
|
exports.SkeletonForm = SkeletonForm.SkeletonForm;
|
|
73
|
+
exports.SmartSkeleton = SmartSkeleton.SmartSkeleton;
|
|
74
|
+
exports.DataTableSkeleton = DataTableSkeleton.DataTableSkeleton;
|
|
53
75
|
exports.SpinnerCircle = SpinnerCircle.SpinnerCircle;
|
|
54
76
|
exports.SpinnerRing = SpinnerRing.SpinnerRing;
|
|
55
77
|
exports.SpinnerDots = SpinnerDots.SpinnerDots;
|
|
@@ -70,4 +92,22 @@ exports.ButtonSpinner = ButtonSpinner.ButtonSpinner;
|
|
|
70
92
|
exports.SuccessCheckmark = SuccessCheckmark.SuccessCheckmark;
|
|
71
93
|
exports.ErrorIndicator = ErrorIndicator.ErrorIndicator;
|
|
72
94
|
exports.LoaderTransition = LoaderTransition.LoaderTransition;
|
|
95
|
+
exports.ShimmerBox = ShimmerBox.ShimmerBox;
|
|
96
|
+
exports.ShimmerText = ShimmerText.ShimmerText;
|
|
97
|
+
exports.ShimmerButton = ShimmerButton.ShimmerButton;
|
|
98
|
+
exports.OrbitDots = OrbitDots.OrbitDots;
|
|
99
|
+
exports.OrbitRings = OrbitRings.OrbitRings;
|
|
100
|
+
exports.AtomLoader = AtomLoader.AtomLoader;
|
|
101
|
+
exports.BouncingDots = BouncingDots.BouncingDots;
|
|
102
|
+
exports.BouncingBalls = BouncingBalls.BouncingBalls;
|
|
103
|
+
exports.InfinityLoader = InfinityLoader.InfinityLoader;
|
|
104
|
+
exports.MobiusLoader = MobiusLoader.MobiusLoader;
|
|
105
|
+
exports.LoadingText = LoadingText.LoadingText;
|
|
106
|
+
exports.CubeSpinner = CubeSpinner.CubeSpinner;
|
|
107
|
+
exports.FlipCard = FlipCard.FlipCard;
|
|
108
|
+
exports.PlaneRotate = PlaneRotate.PlaneRotate;
|
|
109
|
+
exports.Helix = Helix.Helix;
|
|
110
|
+
exports.PerspectiveRing = PerspectiveRing.PerspectiveRing;
|
|
111
|
+
exports.FormFieldLoader = FormFieldLoader.FormFieldLoader;
|
|
112
|
+
exports.LiveRegion = LiveRegion.LiveRegion;
|
|
73
113
|
exports.version = version;
|
package/dist/index.js
CHANGED
|
@@ -12,32 +12,68 @@ import { SkeletonList } from "./index12.js";
|
|
|
12
12
|
import { SkeletonTable } from "./index13.js";
|
|
13
13
|
import { SkeletonPage } from "./index14.js";
|
|
14
14
|
import { SkeletonForm } from "./index15.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
15
|
+
import { SmartSkeleton } from "./index16.js";
|
|
16
|
+
import { DataTableSkeleton } from "./index17.js";
|
|
17
|
+
import { SpinnerCircle } from "./index18.js";
|
|
18
|
+
import { SpinnerRing } from "./index19.js";
|
|
19
|
+
import { SpinnerDots } from "./index20.js";
|
|
20
|
+
import { SpinnerBars } from "./index21.js";
|
|
21
|
+
import { SpinnerGrid } from "./index22.js";
|
|
22
|
+
import { SpinnerWave } from "./index23.js";
|
|
23
|
+
import { SpinnerPulse } from "./index24.js";
|
|
24
|
+
import { ProgressBar } from "./index25.js";
|
|
25
|
+
import { ProgressCircle } from "./index26.js";
|
|
26
|
+
import { ProgressRing } from "./index27.js";
|
|
27
|
+
import { ProgressSteps } from "./index28.js";
|
|
28
|
+
import { PulseDots } from "./index29.js";
|
|
29
|
+
import { PulseWave } from "./index30.js";
|
|
30
|
+
import { PulseBars } from "./index31.js";
|
|
31
|
+
import { TypingIndicator } from "./index32.js";
|
|
32
|
+
import { LoaderOverlay } from "./index33.js";
|
|
33
|
+
import { ButtonSpinner } from "./index34.js";
|
|
34
|
+
import { SuccessCheckmark } from "./index35.js";
|
|
35
|
+
import { ErrorIndicator } from "./index36.js";
|
|
36
|
+
import { LoaderTransition } from "./index37.js";
|
|
37
|
+
import { ShimmerBox } from "./index38.js";
|
|
38
|
+
import { ShimmerText } from "./index39.js";
|
|
39
|
+
import { ShimmerButton } from "./index40.js";
|
|
40
|
+
import { OrbitDots } from "./index41.js";
|
|
41
|
+
import { OrbitRings } from "./index42.js";
|
|
42
|
+
import { AtomLoader } from "./index43.js";
|
|
43
|
+
import { BouncingDots } from "./index44.js";
|
|
44
|
+
import { BouncingBalls } from "./index45.js";
|
|
45
|
+
import { InfinityLoader } from "./index46.js";
|
|
46
|
+
import { MobiusLoader } from "./index47.js";
|
|
47
|
+
import { LoadingText } from "./index48.js";
|
|
48
|
+
import { CubeSpinner } from "./index49.js";
|
|
49
|
+
import { FlipCard } from "./index50.js";
|
|
50
|
+
import { PlaneRotate } from "./index51.js";
|
|
51
|
+
import { Helix } from "./index52.js";
|
|
52
|
+
import { PerspectiveRing } from "./index53.js";
|
|
53
|
+
import { FormFieldLoader } from "./index54.js";
|
|
54
|
+
import { LiveRegion } from "./index55.js";
|
|
35
55
|
const version = "2.1.0";
|
|
36
56
|
export {
|
|
57
|
+
AtomLoader,
|
|
58
|
+
BouncingBalls,
|
|
59
|
+
BouncingDots,
|
|
37
60
|
ButtonSpinner,
|
|
61
|
+
CubeSpinner,
|
|
62
|
+
DataTableSkeleton,
|
|
38
63
|
ErrorIndicator,
|
|
64
|
+
FlipCard,
|
|
65
|
+
FormFieldLoader,
|
|
66
|
+
Helix,
|
|
67
|
+
InfinityLoader,
|
|
68
|
+
LiveRegion,
|
|
39
69
|
LoaderOverlay,
|
|
40
70
|
LoaderTransition,
|
|
71
|
+
LoadingText,
|
|
72
|
+
MobiusLoader,
|
|
73
|
+
OrbitDots,
|
|
74
|
+
OrbitRings,
|
|
75
|
+
PerspectiveRing,
|
|
76
|
+
PlaneRotate,
|
|
41
77
|
ProgressBar,
|
|
42
78
|
ProgressCircle,
|
|
43
79
|
ProgressRing,
|
|
@@ -45,6 +81,9 @@ export {
|
|
|
45
81
|
PulseBars,
|
|
46
82
|
PulseDots,
|
|
47
83
|
PulseWave,
|
|
84
|
+
ShimmerBox,
|
|
85
|
+
ShimmerButton,
|
|
86
|
+
ShimmerText,
|
|
48
87
|
Skeleton,
|
|
49
88
|
SkeletonAvatar,
|
|
50
89
|
SkeletonCard,
|
|
@@ -54,6 +93,7 @@ export {
|
|
|
54
93
|
SkeletonPage,
|
|
55
94
|
SkeletonTable,
|
|
56
95
|
SkeletonText,
|
|
96
|
+
SmartSkeleton,
|
|
57
97
|
SpinnerBars,
|
|
58
98
|
SpinnerCircle,
|
|
59
99
|
SpinnerDots,
|
package/dist/index10.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("./index56.cjs");
|
|
7
7
|
const SkeletonImage = react.forwardRef(
|
|
8
8
|
({
|
|
9
9
|
width = "100%",
|
package/dist/index10.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 "./index56.js";
|
|
5
5
|
const SkeletonImage = forwardRef(
|
|
6
6
|
({
|
|
7
7
|
width = "100%",
|
package/dist/index11.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const Skeleton = require("./index7.cjs");
|
|
6
6
|
const SkeletonAvatar = require("./index9.cjs");
|
|
7
|
-
const hooks = require("./
|
|
7
|
+
const hooks = require("./index56.cjs");
|
|
8
8
|
const classNames = require("./index3.cjs");
|
|
9
9
|
const SkeletonCard = react.forwardRef(
|
|
10
10
|
({
|
package/dist/index11.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { Skeleton } from "./index7.js";
|
|
4
4
|
import { SkeletonAvatar } from "./index9.js";
|
|
5
|
-
import { useLoaderVisibility } from "./
|
|
5
|
+
import { useLoaderVisibility } from "./index56.js";
|
|
6
6
|
import { cn } from "./index3.js";
|
|
7
7
|
const SkeletonCard = forwardRef(
|
|
8
8
|
({
|