react-loadly 1.0.0 → 1.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 +619 -44
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +215 -70
- package/dist/index.esm.js +1 -1370
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/styles.js +1 -0
- package/dist/types/@types/index.d.ts +3 -1
- package/dist/types/@types/index.d.ts.map +1 -1
- package/dist/types/@types/interfaces/IBaseLoaderProps.d.ts +14 -0
- package/dist/types/@types/interfaces/IBaseLoaderProps.d.ts.map +1 -1
- package/dist/types/@types/interfaces/IElementLoaderProps.d.ts +11 -0
- package/dist/types/@types/interfaces/IElementLoaderProps.d.ts.map +1 -0
- package/dist/types/@types/interfaces/IFallbackLoaderProps.d.ts +2 -1
- package/dist/types/@types/interfaces/IFallbackLoaderProps.d.ts.map +1 -1
- package/dist/types/@types/interfaces/ILogoLoaderProps.d.ts +1 -1
- package/dist/types/@types/interfaces/ILogoLoaderProps.d.ts.map +1 -1
- package/dist/types/@types/interfaces/IShimmerLoaderProps.d.ts +20 -0
- package/dist/types/@types/interfaces/IShimmerLoaderProps.d.ts.map +1 -0
- package/dist/types/@types/interfaces/ISkeletonLoaderProps.d.ts +24 -0
- package/dist/types/@types/interfaces/ISkeletonLoaderProps.d.ts.map +1 -0
- package/dist/types/@types/interfaces/ITextLoaderProps.d.ts +1 -2
- package/dist/types/@types/interfaces/ITextLoaderProps.d.ts.map +1 -1
- package/dist/types/@types/interfaces/index.d.ts +14 -0
- package/dist/types/@types/interfaces/index.d.ts.map +1 -0
- package/dist/types/@types/types/index.d.ts +3 -3
- package/dist/types/@types/types/index.d.ts.map +1 -1
- package/dist/types/__tests__/ElementLoader.example.d.ts +4 -0
- package/dist/types/__tests__/ElementLoader.example.d.ts.map +1 -0
- package/dist/types/components/atoms/Circle.d.ts +2 -1
- package/dist/types/components/atoms/Circle.d.ts.map +1 -1
- package/dist/types/components/atoms/Dot.d.ts +1 -1
- package/dist/types/components/atoms/Dot.d.ts.map +1 -1
- package/dist/types/components/atoms/Line.d.ts +1 -1
- package/dist/types/components/atoms/Line.d.ts.map +1 -1
- package/dist/types/components/atoms/Rectangle.d.ts +1 -0
- package/dist/types/components/atoms/Rectangle.d.ts.map +1 -1
- package/dist/types/components/molecules/DotCluster.d.ts +1 -0
- package/dist/types/components/molecules/DotCluster.d.ts.map +1 -1
- package/dist/types/components/molecules/LineGroup.d.ts +1 -0
- package/dist/types/components/molecules/LineGroup.d.ts.map +1 -1
- package/dist/types/components/molecules/ShapeGroup.d.ts +1 -0
- package/dist/types/components/molecules/ShapeGroup.d.ts.map +1 -1
- package/dist/types/components/organisms/BarsLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/BlobLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/BounceLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/DotsLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/ElementLoader.d.ts +27 -0
- package/dist/types/components/organisms/ElementLoader.d.ts.map +1 -0
- package/dist/types/components/organisms/FallbackLoader.d.ts +1 -1
- package/dist/types/components/organisms/FallbackLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/FlowLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/GridLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/LiquidLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/LogoSpinLoader.d.ts +1 -1
- package/dist/types/components/organisms/LogoSpinLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/PulseLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/RingLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/RotateLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/ShimmerLoader.d.ts +4 -0
- package/dist/types/components/organisms/ShimmerLoader.d.ts.map +1 -0
- package/dist/types/components/organisms/SkeletonLoader.d.ts +4 -0
- package/dist/types/components/organisms/SkeletonLoader.d.ts.map +1 -0
- package/dist/types/components/organisms/SpinLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/TypingLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/WaveLoader.d.ts.map +1 -1
- package/dist/types/components/organisms/index.d.ts +9 -6
- package/dist/types/components/organisms/index.d.ts.map +1 -1
- package/dist/types/hooks/useLoaderState.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/styles.d.ts +2 -0
- package/dist/types/styles.d.ts.map +1 -0
- package/dist/types/utils/animationUtils.d.ts +24 -1
- package/dist/types/utils/animationUtils.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts.map +1 -1
- package/package.json +49 -24
- package/dist/index.js +0 -1409
- package/dist/index.js.map +0 -1
- package/dist/types/@types/interfaces/ILoaderTheme.d.ts +0 -20
- package/dist/types/@types/interfaces/ILoaderTheme.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Line.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Line.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,SAAS;IACxB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkCpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rectangle.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Rectangle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rectangle.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Rectangle.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,cAAc;IAC7B,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmC9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotCluster.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DotCluster.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DotCluster.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DotCluster.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,WAAW,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7C,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,qBAAqB;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrD,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyFhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LineGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LineGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LineGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,cAAc;IAC7B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,WAAW,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,WAAW,CAAC;IAClD,2BAA2B;IAC3B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,qBAAqB;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IACtD,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmG9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ShapeGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShapeGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ShapeGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,WAAW,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC/C,yBAAyB;IACzB,UAAU,CAAC,EAAE,CAAC,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC;IACxC,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,qBAAqB;IACrB,aAAa,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxD,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqHhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarsLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/BarsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"BarsLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/BarsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;AAW/D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,qBAAqB,CAkGhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlobLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/BlobLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,
|
|
1
|
+
{"version":3,"file":"BlobLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/BlobLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAc,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAY/D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CAiH5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BounceLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/BounceLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"BounceLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/BounceLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;AAW/D,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,qBAAqB,CAgGlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotsLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/DotsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"DotsLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/DotsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;AAW/D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,qBAAqB,CAgGhD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ElementLoader Component
|
|
3
|
+
*
|
|
4
|
+
* A flexible loader component that can display any React element with various animation effects.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* // Basic usage with a div element
|
|
9
|
+
* <ElementLoader>
|
|
10
|
+
* <div style={{ width: '100%', height: '100%', backgroundColor: 'blue' }} />
|
|
11
|
+
* </ElementLoader>
|
|
12
|
+
*
|
|
13
|
+
* // With different animation types
|
|
14
|
+
* <ElementLoader animationType="pulse">
|
|
15
|
+
* <div>Your custom element here</div>
|
|
16
|
+
* </ElementLoader>
|
|
17
|
+
*
|
|
18
|
+
* // With loading text
|
|
19
|
+
* <ElementLoader showText loadingText="Loading...">
|
|
20
|
+
* <YourIconComponent />
|
|
21
|
+
* </ElementLoader>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
import { IElementLoaderProps } from "@/@types/interfaces/IElementLoaderProps";
|
|
25
|
+
import { FC } from "react";
|
|
26
|
+
export declare const ElementLoader: FC<IElementLoaderProps>;
|
|
27
|
+
//# sourceMappingURL=ElementLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElementLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/ElementLoader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAc,EAAsB,EAAE,EAAE,MAAM,OAAO,CAAC;AAWtD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,mBAAmB,CAqIjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FallbackLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FallbackLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FallbackLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FallbackLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAiClC,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,CAyEnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FlowLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,
|
|
1
|
+
{"version":3,"file":"FlowLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/FlowLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;AAY/D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CA8I5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/GridLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"GridLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/GridLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAiB,EAAE,EAAW,MAAM,OAAO,CAAC;AAW1D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,qBAAqB,CA4FhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/LiquidLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,
|
|
1
|
+
{"version":3,"file":"LiquidLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/LiquidLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAc,EAAiB,EAAE,EAAW,MAAM,OAAO,CAAC;AAY1D,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkH9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoSpinLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/LogoSpinLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LogoSpinLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/LogoSpinLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAc,EAAsB,EAAE,EAAE,MAAM,OAAO,CAAC;AAYtD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,gBAAgB,CAuE/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PulseLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/PulseLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"PulseLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/PulseLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;AAY/D,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,qBAAqB,CA8EjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RingLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/RingLoader.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"RingLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/RingLoader.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAsB,EAAE,EAAU,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAYrD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,qBAAqB,CAwGhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RotateLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/RotateLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"RotateLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/RotateLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;AAW/D,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,qBAAqB,CAyGlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShimmerLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/ShimmerLoader.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAsB,EAAE,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAwC9E,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,mBAAmB,CA4NjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletonLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/SkeletonLoader.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAsB,EAAE,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAwChF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,CA8LnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpinLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/SpinLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"SpinLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/SpinLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAsB,EAAE,EAAU,MAAM,OAAO,CAAC;AAW9D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,qBAAqB,CA4EhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/TypingLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,
|
|
1
|
+
{"version":3,"file":"TypingLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/TypingLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAc,EAAsB,EAAE,EAA+B,MAAM,OAAO,CAAC;AAUnF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,gBAAgB,CAgI7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WaveLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/WaveLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"WaveLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/WaveLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;AAY/D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,qBAAqB,CAoFhD,CAAC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
export { BarsLoader } from "./BarsLoader";
|
|
1
2
|
export { BlobLoader } from "./BlobLoader";
|
|
3
|
+
export { BounceLoader } from "./BounceLoader";
|
|
4
|
+
export { DotsLoader } from "./DotsLoader";
|
|
5
|
+
export { ElementLoader } from "./ElementLoader";
|
|
2
6
|
export { FallbackLoader } from "./FallbackLoader";
|
|
3
7
|
export { FlowLoader } from "./FlowLoader";
|
|
4
8
|
export { GridLoader } from "./GridLoader";
|
|
5
9
|
export { LiquidLoader } from "./LiquidLoader";
|
|
6
10
|
export { LogoSpinLoader } from "./LogoSpinLoader";
|
|
7
11
|
export { PulseLoader } from "./PulseLoader";
|
|
12
|
+
export { RingLoader } from "./RingLoader";
|
|
13
|
+
export { RotateLoader } from "./RotateLoader";
|
|
14
|
+
export { ShimmerLoader } from "./ShimmerLoader";
|
|
15
|
+
export { SkeletonLoader } from "./SkeletonLoader";
|
|
8
16
|
export { SpinLoader } from "./SpinLoader";
|
|
9
17
|
export { TypingLoader } from "./TypingLoader";
|
|
10
18
|
export { WaveLoader } from "./WaveLoader";
|
|
11
|
-
export {
|
|
12
|
-
export { BounceLoader } from "./BounceLoader";
|
|
13
|
-
export { DotsLoader } from "./DotsLoader";
|
|
14
|
-
export { RingLoader } from "./RingLoader";
|
|
15
|
-
export { RotateLoader } from "./RotateLoader";
|
|
16
|
-
export type { IFallbackLoaderProps, IFluidLoaderProps, IGeometricLoaderProps, ILogoLoaderProps, ITextLoaderProps } from "@/@types";
|
|
19
|
+
export type { IFallbackLoaderProps, IFluidLoaderProps, IGeometricLoaderProps, ILogoLoaderProps, ITextLoaderProps, IBaseLoaderProps, ISkeletonLoaderProps, IShimmerLoaderProps, IElementLoaderProps, ILoaderCSSVariables, ILoaderState, IUseLoaderStateReturn, IUseLoaderStateOptions, } from "@/@types/interfaces";
|
|
17
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLoaderState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLoaderState.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useLoaderState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLoaderState.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAExF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,UAAS,sBAA2B,KAAG,qBAiJrE,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAIxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AAGnC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/styles.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,CAAC"}
|
|
@@ -19,11 +19,34 @@ export declare function prefersReducedMotion(): boolean;
|
|
|
19
19
|
/**
|
|
20
20
|
* Get optimized animation settings based on user preferences
|
|
21
21
|
* @param speed - The animation speed multiplier (default: 1)
|
|
22
|
+
* @param respectReducedMotion - Whether to respect reduced motion preference (default: true)
|
|
22
23
|
* @returns Object with optimized animation settings
|
|
23
24
|
*/
|
|
24
|
-
export declare function getOptimizedAnimationSettings(speed?: number): {
|
|
25
|
+
export declare function getOptimizedAnimationSettings(speed?: number, respectReducedMotion?: boolean): {
|
|
25
26
|
duration: string;
|
|
26
27
|
playState: string;
|
|
27
28
|
iterationCount: string | number;
|
|
28
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Get animation direction CSS value
|
|
32
|
+
* @param direction - The animation direction
|
|
33
|
+
* @returns CSS direction value
|
|
34
|
+
*/
|
|
35
|
+
export declare function getAnimationDirection(direction?: "normal" | "reverse" | "alternate" | "alternate-reverse"): string;
|
|
36
|
+
/**
|
|
37
|
+
* Get animation easing CSS value
|
|
38
|
+
* @param easing - The animation easing function
|
|
39
|
+
* @returns CSS easing value
|
|
40
|
+
*/
|
|
41
|
+
export declare function getAnimationEasing(easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "cubic-bezier"): string;
|
|
42
|
+
/**
|
|
43
|
+
* Create a complete animation string
|
|
44
|
+
* @param name - The animation name
|
|
45
|
+
* @param duration - The animation duration
|
|
46
|
+
* @param easing - The animation easing
|
|
47
|
+
* @param direction - The animation direction
|
|
48
|
+
* @param iterationCount - The iteration count
|
|
49
|
+
* @returns Complete animation string
|
|
50
|
+
*/
|
|
51
|
+
export declare function createAnimationString(name: string, duration: string, easing?: string, direction?: string, iterationCount?: string | number): string;
|
|
29
52
|
//# sourceMappingURL=animationUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animationUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/animationUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,CAGtE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAQ9C;AAED
|
|
1
|
+
{"version":3,"file":"animationUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/animationUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,CAGtE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAQ9C;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,SAAI,EAAE,oBAAoB,UAAO;;;;EAiBnF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,GAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,mBAA8B,GAAG,MAAM,CAE5H;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,GAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,cAAuB,GAAG,MAAM,CAEvI;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,MAAe,EACvB,SAAS,GAAE,MAAiB,EAC5B,cAAc,GAAE,MAAM,GAAG,MAAmB,GAC3C,MAAM,CAER"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { generateCSSVariables, getSizeValue, mergeProps } from "./propUtils";
|
|
2
|
-
export { createAnimationName, getAnimationDuration, getOptimizedAnimationSettings, prefersReducedMotion } from "./animationUtils";
|
|
2
|
+
export { createAnimationName, getAnimationDuration, getOptimizedAnimationSettings, prefersReducedMotion, getAnimationDirection, getAnimationEasing, createAnimationString, } from "./animationUtils";
|
|
3
3
|
export { hexToRgb, rgba } from "./colorUtils";
|
|
4
4
|
export { clamp } from "./mathUtils";
|
|
5
5
|
export { generateId, sanitizeCSSValue } from "./domUtils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG7E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG7E,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAC7B,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-loadly",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "A professional React loaders package with high-performance, customizable loader components",
|
|
3
|
+
"version": "1.1.0",
|
|
5
4
|
"type": "module",
|
|
6
|
-
"
|
|
5
|
+
"description": "A professional React loaders package with high-performance, customizable loader components",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"files": [
|
|
@@ -12,23 +12,40 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/index.esm.js",
|
|
15
|
-
"require": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs.js",
|
|
16
|
+
"types": "./dist/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./styles.css": "./dist/styles.css",
|
|
19
|
+
"./components": {
|
|
20
|
+
"import": "./dist/index.esm.js",
|
|
21
|
+
"require": "./dist/index.cjs.js",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./hooks": {
|
|
25
|
+
"import": "./dist/index.esm.js",
|
|
26
|
+
"require": "./dist/index.cjs.js",
|
|
27
|
+
"types": "./dist/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./utils": {
|
|
30
|
+
"import": "./dist/index.esm.js",
|
|
31
|
+
"require": "./dist/index.cjs.js",
|
|
16
32
|
"types": "./dist/index.d.ts"
|
|
17
33
|
},
|
|
18
|
-
"./
|
|
19
|
-
"import": "./dist/
|
|
20
|
-
"require": "./dist/
|
|
34
|
+
"./types": {
|
|
35
|
+
"import": "./dist/index.esm.js",
|
|
36
|
+
"require": "./dist/index.cjs.js",
|
|
37
|
+
"types": "./dist/index.d.ts"
|
|
21
38
|
}
|
|
22
39
|
},
|
|
23
|
-
"sideEffects":
|
|
24
|
-
"*.css"
|
|
25
|
-
],
|
|
40
|
+
"sideEffects": false,
|
|
26
41
|
"scripts": {
|
|
27
42
|
"build:js": "rollup -c",
|
|
28
43
|
"build:types": "tsc --emitDeclarationOnly",
|
|
29
44
|
"build:watch": "rollup -c -w",
|
|
30
45
|
"clean": "rimraf dist",
|
|
31
46
|
"build": "npm run clean && npm run build:js && npm run build:types",
|
|
47
|
+
"build:analyze": "npm run build && npm run analyze",
|
|
48
|
+
"analyze": "rollup -c --config-option analyze=true",
|
|
32
49
|
"test": "jest",
|
|
33
50
|
"test:watch": "jest --watch",
|
|
34
51
|
"test:coverage": "jest --coverage",
|
|
@@ -43,15 +60,27 @@
|
|
|
43
60
|
"production": "pnpm i && pnpm lint:fix && pnpm build && pnpm pack"
|
|
44
61
|
},
|
|
45
62
|
"keywords": [
|
|
63
|
+
"react-loadly",
|
|
46
64
|
"react",
|
|
47
65
|
"loaders",
|
|
48
66
|
"loading",
|
|
49
67
|
"spinner",
|
|
50
|
-
"animation",
|
|
51
68
|
"typescript",
|
|
52
69
|
"nextjs",
|
|
53
70
|
"components",
|
|
54
71
|
"ui",
|
|
72
|
+
"react loaders",
|
|
73
|
+
"react loader",
|
|
74
|
+
"react spinner",
|
|
75
|
+
"loading indicator",
|
|
76
|
+
"react loading component",
|
|
77
|
+
"spinner component",
|
|
78
|
+
"skeleton loader",
|
|
79
|
+
"typescript",
|
|
80
|
+
"nextjs",
|
|
81
|
+
"ui components",
|
|
82
|
+
"frontend",
|
|
83
|
+
"animation",
|
|
55
84
|
"performance"
|
|
56
85
|
],
|
|
57
86
|
"author": "Mostafa Mohamed",
|
|
@@ -65,20 +94,18 @@
|
|
|
65
94
|
},
|
|
66
95
|
"homepage": "https://github.com/Mostafashadow1/react-loadly#readme",
|
|
67
96
|
"peerDependencies": {
|
|
68
|
-
"react": ">=16.8.0",
|
|
69
|
-
"react-dom": ">=16.8.0"
|
|
97
|
+
"react": ">=16.8.0 <19",
|
|
98
|
+
"react-dom": ">=16.8.0 <19"
|
|
70
99
|
},
|
|
71
100
|
"devDependencies": {
|
|
72
101
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
73
102
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
74
103
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
75
104
|
"@testing-library/jest-dom": "^6.1.5",
|
|
76
|
-
"@testing-library/react": "^
|
|
105
|
+
"@testing-library/react": "^12.1.5",
|
|
77
106
|
"@testing-library/user-event": "^14.5.1",
|
|
78
107
|
"@types/jest": "^29.5.8",
|
|
79
108
|
"@types/node": "^24.3.1",
|
|
80
|
-
"@types/react": "^18.2.38",
|
|
81
|
-
"@types/react-dom": "^18.2.17",
|
|
82
109
|
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
83
110
|
"@typescript-eslint/parser": "^6.12.0",
|
|
84
111
|
"@vitejs/plugin-react": "^4.2.0",
|
|
@@ -88,25 +115,23 @@
|
|
|
88
115
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
89
116
|
"jest": "^29.7.0",
|
|
90
117
|
"jest-environment-jsdom": "^29.7.0",
|
|
91
|
-
"react": "^18.2.0",
|
|
92
|
-
"react-dom": "^18.2.0",
|
|
93
118
|
"rimraf": "^5.0.5",
|
|
94
119
|
"rollup": "^4.6.1",
|
|
95
120
|
"rollup-plugin-dts": "^6.2.3",
|
|
96
121
|
"rollup-plugin-postcss": "^4.0.2",
|
|
97
122
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
123
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
124
|
+
"rollup-plugin-visualizer": "^5.9.2",
|
|
98
125
|
"ts-jest": "^29.1.1",
|
|
99
126
|
"tsconfig-paths": "^4.2.0",
|
|
100
127
|
"tslib": "^2.6.2",
|
|
101
128
|
"typescript": "^5.2.2",
|
|
102
|
-
"vite": "^5.0.8"
|
|
129
|
+
"vite": "^5.0.8",
|
|
130
|
+
"@tailwindcss/postcss": "^4.1.13",
|
|
131
|
+
"@types/react": "^18.2.47",
|
|
132
|
+
"@types/react-dom": "^18.2.18"
|
|
103
133
|
},
|
|
104
134
|
"engines": {
|
|
105
135
|
"node": ">=16.0.0"
|
|
106
|
-
},
|
|
107
|
-
"dependencies": {
|
|
108
|
-
"@tailwindcss/postcss": "^4.1.13",
|
|
109
|
-
"install": "^0.13.0",
|
|
110
|
-
"npm": "^11.6.0"
|
|
111
136
|
}
|
|
112
137
|
}
|