premium-react-loaders 2.2.0 → 2.3.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 +83 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/transition/LoaderTransition.d.ts +32 -0
- package/dist/components/transition/LoaderTransition.d.ts.map +1 -0
- package/dist/components/transition/index.d.ts +2 -0
- package/dist/components/transition/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useEnhancedLoader.d.ts +62 -0
- package/dist/hooks/useEnhancedLoader.d.ts.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.js +2 -0
- 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 +1 -1
- package/dist/index16.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 +153 -111
- package/dist/index35.js +154 -112
- package/dist/index36.cjs +125 -0
- package/dist/index36.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 +75 -0
- package/dist/types/hooks.d.ts +95 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/transition.d.ts +34 -0
- package/dist/types/transition.d.ts.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -350,6 +350,89 @@ import { SpinnerCircle, ProgressBar, PulseDots } from 'premium-react-loaders';
|
|
|
350
350
|
<PulseDots size="md" reverse />
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
+
### New in v2.3.0
|
|
354
|
+
|
|
355
|
+
**LoaderTransition** - Smooth transitions between loading and loaded states:
|
|
356
|
+
|
|
357
|
+
```tsx
|
|
358
|
+
import { LoaderTransition, Skeleton } from 'premium-react-loaders';
|
|
359
|
+
|
|
360
|
+
// Eliminate jarring content switches
|
|
361
|
+
<LoaderTransition
|
|
362
|
+
loading={isLoading}
|
|
363
|
+
loadingContent={<Skeleton width={300} height={100} />}
|
|
364
|
+
transitionType="fade"
|
|
365
|
+
duration={300}
|
|
366
|
+
delay={200}
|
|
367
|
+
minDuration={600}
|
|
368
|
+
>
|
|
369
|
+
<YourActualContent />
|
|
370
|
+
</LoaderTransition>
|
|
371
|
+
|
|
372
|
+
// Different transition types
|
|
373
|
+
<LoaderTransition loading={isLoading} loadingContent={<Spinner />} transitionType="slide-up">
|
|
374
|
+
<Content />
|
|
375
|
+
</LoaderTransition>
|
|
376
|
+
|
|
377
|
+
<LoaderTransition loading={isLoading} loadingContent={<Skeleton />} transitionType="scale" timing="spring">
|
|
378
|
+
<Content />
|
|
379
|
+
</LoaderTransition>
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
**useEnhancedLoader** - Supercharged loading state management:
|
|
383
|
+
|
|
384
|
+
```tsx
|
|
385
|
+
import { useEnhancedLoader } from 'premium-react-loaders';
|
|
386
|
+
|
|
387
|
+
function MyComponent() {
|
|
388
|
+
const {
|
|
389
|
+
status, // 'idle' | 'loading' | 'success' | 'error'
|
|
390
|
+
error, // Error object if failed
|
|
391
|
+
retryAttempt, // Current retry attempt number
|
|
392
|
+
history, // Loading history with timestamps
|
|
393
|
+
startLoading,
|
|
394
|
+
stopLoading,
|
|
395
|
+
setError,
|
|
396
|
+
retry,
|
|
397
|
+
reset,
|
|
398
|
+
} = useEnhancedLoader({
|
|
399
|
+
delay: 200,
|
|
400
|
+
minDuration: 600,
|
|
401
|
+
retry: {
|
|
402
|
+
maxRetries: 3,
|
|
403
|
+
initialDelay: 1000,
|
|
404
|
+
backoffMultiplier: 2,
|
|
405
|
+
},
|
|
406
|
+
debounce: 300, // Debounce loading starts
|
|
407
|
+
onSuccess: () => console.log('Success!'),
|
|
408
|
+
onError: (err) => console.error(err),
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
const fetchData = async () => {
|
|
412
|
+
startLoading();
|
|
413
|
+
try {
|
|
414
|
+
const data = await api.fetch();
|
|
415
|
+
stopLoading();
|
|
416
|
+
} catch (err) {
|
|
417
|
+
setError(err);
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
return (
|
|
422
|
+
<div>
|
|
423
|
+
{status === 'loading' && <SpinnerCircle visible={isVisible} />}
|
|
424
|
+
{status === 'success' && <SuccessCheckmark visible />}
|
|
425
|
+
{status === 'error' && (
|
|
426
|
+
<>
|
|
427
|
+
<ErrorIndicator visible />
|
|
428
|
+
<button onClick={retry}>Retry ({retryAttempt}/3)</button>
|
|
429
|
+
</>
|
|
430
|
+
)}
|
|
431
|
+
</div>
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
```
|
|
435
|
+
|
|
353
436
|
### New in v2.2.0
|
|
354
437
|
|
|
355
438
|
**Button Loaders** - Specialized spinners for button states:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;AAGzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LoaderTransitionProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* LoaderTransition - Smooth transitions between loading and loaded states
|
|
4
|
+
*
|
|
5
|
+
* Provides seamless transitions between loading content (skeleton, spinner) and actual content,
|
|
6
|
+
* preventing jarring content switches and improving perceived performance.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* // Fade transition from skeleton to content
|
|
11
|
+
* <LoaderTransition
|
|
12
|
+
* loading={isLoading}
|
|
13
|
+
* loadingContent={<Skeleton width="100%" height={200} />}
|
|
14
|
+
* transitionType="fade"
|
|
15
|
+
* duration={300}
|
|
16
|
+
* >
|
|
17
|
+
* <YourActualContent />
|
|
18
|
+
* </LoaderTransition>
|
|
19
|
+
*
|
|
20
|
+
* // Slide up transition
|
|
21
|
+
* <LoaderTransition
|
|
22
|
+
* loading={isLoading}
|
|
23
|
+
* loadingContent={<SpinnerCircle size={48} />}
|
|
24
|
+
* transitionType="slide-up"
|
|
25
|
+
* timing="spring"
|
|
26
|
+
* >
|
|
27
|
+
* <YourContent />
|
|
28
|
+
* </LoaderTransition>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const LoaderTransition: import('react').ForwardRefExoticComponent<LoaderTransitionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
+
//# sourceMappingURL=LoaderTransition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoaderTransition.d.ts","sourceRoot":"","sources":["../../../src/components/transition/LoaderTransition.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,gBAAgB,kHAsL5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/transition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { useLoader } from './useLoader';
|
|
2
|
-
export
|
|
2
|
+
export { useEnhancedLoader } from './useEnhancedLoader';
|
|
3
|
+
export type { UseLoaderOptions as BasicUseLoaderOptions, UseLoaderReturn as BasicUseLoaderReturn } from './useLoader';
|
|
4
|
+
export type { UseLoaderOptions, UseLoaderReturn, LoadingStatus, LoadingHistoryEntry, RetryConfig } from '../types/hooks';
|
|
3
5
|
//# 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,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,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;AAExD,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"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { UseLoaderOptions, UseLoaderReturn } from '../types/hooks';
|
|
2
|
+
/**
|
|
3
|
+
* useEnhancedLoader - Advanced loading state management with retry, success/error states, and history
|
|
4
|
+
*
|
|
5
|
+
* An enhanced version of useLoader with additional features:
|
|
6
|
+
* - Retry logic with exponential backoff
|
|
7
|
+
* - Success and error state management
|
|
8
|
+
* - Loading history tracking
|
|
9
|
+
* - Debounce and throttle support
|
|
10
|
+
* - Lifecycle callbacks
|
|
11
|
+
*
|
|
12
|
+
* @param options - Configuration options
|
|
13
|
+
* @returns Enhanced loading state and control functions
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* function MyComponent() {
|
|
18
|
+
* const {
|
|
19
|
+
* loading,
|
|
20
|
+
* status,
|
|
21
|
+
* error,
|
|
22
|
+
* startLoading,
|
|
23
|
+
* stopLoading,
|
|
24
|
+
* setError,
|
|
25
|
+
* retry,
|
|
26
|
+
* history
|
|
27
|
+
* } = useEnhancedLoader({
|
|
28
|
+
* delay: 200,
|
|
29
|
+
* minDuration: 600,
|
|
30
|
+
* retry: {
|
|
31
|
+
* maxRetries: 3,
|
|
32
|
+
* initialDelay: 1000,
|
|
33
|
+
* backoffMultiplier: 2,
|
|
34
|
+
* },
|
|
35
|
+
* successDuration: 2000,
|
|
36
|
+
* onSuccess: () => console.log('Success!'),
|
|
37
|
+
* onError: (err) => console.error('Error:', err),
|
|
38
|
+
* });
|
|
39
|
+
*
|
|
40
|
+
* const fetchData = async () => {
|
|
41
|
+
* startLoading();
|
|
42
|
+
* try {
|
|
43
|
+
* await api.fetchData();
|
|
44
|
+
* stopLoading();
|
|
45
|
+
* } catch (err) {
|
|
46
|
+
* setError(err as Error);
|
|
47
|
+
* }
|
|
48
|
+
* };
|
|
49
|
+
*
|
|
50
|
+
* return (
|
|
51
|
+
* <div>
|
|
52
|
+
* {status === 'loading' && <SpinnerCircle visible={true} />}
|
|
53
|
+
* {status === 'success' && <SuccessCheckmark visible={true} />}
|
|
54
|
+
* {status === 'error' && <ErrorIndicator visible={true} />}
|
|
55
|
+
* {error && <button onClick={retry}>Retry</button>}
|
|
56
|
+
* </div>
|
|
57
|
+
* );
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function useEnhancedLoader(options?: UseLoaderOptions): UseLoaderReturn;
|
|
62
|
+
//# sourceMappingURL=useEnhancedLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEnhancedLoader.d.ts","sourceRoot":"","sources":["../../src/hooks/useEnhancedLoader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAsC,MAAM,gBAAgB,CAAC;AAE5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,gBAAqB,GAAG,eAAe,CAkUjF"}
|
package/dist/index.cjs
CHANGED
|
@@ -33,6 +33,7 @@ const LoaderOverlay = require("./index31.cjs");
|
|
|
33
33
|
const ButtonSpinner = require("./index32.cjs");
|
|
34
34
|
const SuccessCheckmark = require("./index33.cjs");
|
|
35
35
|
const ErrorIndicator = require("./index34.cjs");
|
|
36
|
+
const LoaderTransition = require("./index35.cjs");
|
|
36
37
|
const version = "2.1.0";
|
|
37
38
|
exports.cn = classNames.cn;
|
|
38
39
|
exports.getAnimationDuration = colors.getAnimationDuration;
|
|
@@ -68,4 +69,5 @@ exports.LoaderOverlay = LoaderOverlay.LoaderOverlay;
|
|
|
68
69
|
exports.ButtonSpinner = ButtonSpinner.ButtonSpinner;
|
|
69
70
|
exports.SuccessCheckmark = SuccessCheckmark.SuccessCheckmark;
|
|
70
71
|
exports.ErrorIndicator = ErrorIndicator.ErrorIndicator;
|
|
72
|
+
exports.LoaderTransition = LoaderTransition.LoaderTransition;
|
|
71
73
|
exports.version = version;
|
package/dist/index.js
CHANGED
|
@@ -31,11 +31,13 @@ import { LoaderOverlay } from "./index31.js";
|
|
|
31
31
|
import { ButtonSpinner } from "./index32.js";
|
|
32
32
|
import { SuccessCheckmark } from "./index33.js";
|
|
33
33
|
import { ErrorIndicator } from "./index34.js";
|
|
34
|
+
import { LoaderTransition } from "./index35.js";
|
|
34
35
|
const version = "2.1.0";
|
|
35
36
|
export {
|
|
36
37
|
ButtonSpinner,
|
|
37
38
|
ErrorIndicator,
|
|
38
39
|
LoaderOverlay,
|
|
40
|
+
LoaderTransition,
|
|
39
41
|
ProgressBar,
|
|
40
42
|
ProgressCircle,
|
|
41
43
|
ProgressRing,
|
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("./index36.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 "./index36.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("./index36.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 "./index36.js";
|
|
6
6
|
import { cn } from "./index3.js";
|
|
7
7
|
const SkeletonCard = forwardRef(
|
|
8
8
|
({
|
package/dist/index12.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("./index36.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const classNames = require("./index3.cjs");
|
|
9
9
|
const SkeletonList = react.forwardRef(
|
package/dist/index12.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 "./index36.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
import { cn } from "./index3.js";
|
|
7
7
|
const SkeletonList = forwardRef(
|
package/dist/index13.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("./index36.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const SkeletonTable = react.forwardRef(
|
|
9
9
|
({
|
package/dist/index13.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, 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 "./index36.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const SkeletonTable = forwardRef(
|
|
7
7
|
({
|
package/dist/index14.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const react = require("react");
|
|
|
5
5
|
const Skeleton = require("./index7.cjs");
|
|
6
6
|
const SkeletonText = require("./index8.cjs");
|
|
7
7
|
const SkeletonAvatar = require("./index9.cjs");
|
|
8
|
-
const hooks = require("./
|
|
8
|
+
const hooks = require("./index36.cjs");
|
|
9
9
|
const classNames = require("./index3.cjs");
|
|
10
10
|
const SkeletonPage = react.forwardRef(
|
|
11
11
|
({
|
package/dist/index14.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import { Skeleton } from "./index7.js";
|
|
4
4
|
import { SkeletonText } from "./index8.js";
|
|
5
5
|
import { SkeletonAvatar } from "./index9.js";
|
|
6
|
-
import { useLoaderVisibility } from "./
|
|
6
|
+
import { useLoaderVisibility } from "./index36.js";
|
|
7
7
|
import { cn } from "./index3.js";
|
|
8
8
|
const SkeletonPage = forwardRef(
|
|
9
9
|
({
|
package/dist/index15.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("./index36.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const classNames = require("./index3.cjs");
|
|
9
9
|
const SkeletonForm = react.forwardRef(
|
package/dist/index15.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, 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 "./index36.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
import { cn } from "./index3.js";
|
|
7
7
|
const SkeletonForm = forwardRef(
|
package/dist/index16.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const SpinnerCircle = react.forwardRef(
|
package/dist/index16.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const SpinnerCircle = forwardRef(
|
package/dist/index17.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const SpinnerRing = react.forwardRef(
|
package/dist/index17.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const SpinnerRing = forwardRef(
|
package/dist/index18.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 colors = require("./index4.cjs");
|
|
6
|
-
const hooks = require("./
|
|
6
|
+
const hooks = require("./index36.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const SpinnerDots = react.forwardRef(
|
|
9
9
|
({
|
package/dist/index18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
4
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
4
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const SpinnerDots = forwardRef(
|
|
7
7
|
({
|
package/dist/index19.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const SpinnerBars = react.forwardRef(
|
package/dist/index19.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const SpinnerBars = forwardRef(
|
package/dist/index20.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const SpinnerGrid = react.forwardRef(
|
package/dist/index20.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
6
6
|
const SpinnerGrid = forwardRef(
|
package/dist/index21.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const SpinnerWave = react.forwardRef(
|
package/dist/index21.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const SpinnerWave = forwardRef(
|
package/dist/index22.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const colors = require("./index4.cjs");
|
|
8
8
|
const SpinnerPulse = react.forwardRef(
|
package/dist/index22.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
import { normalizeSize } from "./index4.js";
|
|
6
6
|
const SpinnerPulse = forwardRef(
|
package/dist/index23.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 colors = require("./index4.cjs");
|
|
6
|
-
const hooks = require("./
|
|
6
|
+
const hooks = require("./index36.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const ProgressBar = react.forwardRef(
|
|
9
9
|
({
|
package/dist/index23.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
3
|
import { normalizeSize, getContrastColor } from "./index4.js";
|
|
4
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
4
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const ProgressBar = forwardRef(
|
|
7
7
|
({
|
package/dist/index24.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const ProgressCircle = react.forwardRef(
|
package/dist/index24.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const ProgressCircle = forwardRef(
|
package/dist/index25.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const ProgressRing = react.forwardRef(
|
package/dist/index25.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const ProgressRing = forwardRef(
|
package/dist/index26.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const classNames = require("./index3.cjs");
|
|
7
7
|
const ProgressSteps = react.forwardRef(
|
|
8
8
|
({
|
package/dist/index26.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, Fragment } from "react";
|
|
3
|
-
import { useLoaderVisibility } from "./
|
|
3
|
+
import { useLoaderVisibility } from "./index36.js";
|
|
4
4
|
import { cn } from "./index3.js";
|
|
5
5
|
const ProgressSteps = forwardRef(
|
|
6
6
|
({
|
package/dist/index27.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const PulseDots = react.forwardRef(
|
package/dist/index27.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { normalizeSize } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const PulseDots = forwardRef(
|
package/dist/index28.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const hooks = require("./
|
|
5
|
+
const hooks = require("./index36.cjs");
|
|
6
6
|
const colors = require("./index4.cjs");
|
|
7
7
|
const classNames = require("./index3.cjs");
|
|
8
8
|
const PulseWave = react.forwardRef(
|
package/dist/index28.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./
|
|
3
|
+
import { useReducedMotion, useLoaderVisibility, getEffectiveDuration } from "./index36.js";
|
|
4
4
|
import { normalizeSize, parseSizeToNumber } from "./index4.js";
|
|
5
5
|
import { cn } from "./index3.js";
|
|
6
6
|
const PulseWave = forwardRef(
|