react-loadly 1.0.1 → 1.1.1
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 +529 -62
- package/dist/index.cjs.js +1 -1701
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +146 -79
- package/dist/index.esm.js +1 -1662
- 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 +4 -0
- package/dist/types/@types/interfaces/IBaseLoaderProps.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 +22 -0
- package/dist/types/@types/interfaces/ISkeletonLoaderProps.d.ts.map +1 -0
- 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/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 +0 -23
- package/dist/types/components/organisms/ElementLoader.d.ts.map +1 -1
- 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 +3 -1
- package/dist/types/components/organisms/index.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/classNameGen.d.ts +4 -0
- package/dist/types/utils/classNameGen.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types/utils/index.d.ts.map +1 -1
- package/package.json +41 -6
- 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":"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;
|
|
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;AAarD,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;
|
|
1
|
+
{"version":3,"file":"RotateLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/RotateLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGjD,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;AAmB9E,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;
|
|
1
|
+
{"version":3,"file":"SpinLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/SpinLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGjD,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;
|
|
1
|
+
{"version":3,"file":"TypingLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/TypingLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,OAAc,EAAsB,EAAE,EAA+B,MAAM,OAAO,CAAC;AAUnF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,gBAAgB,CAiI7C,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,OAAc,EAAsB,EAAE,EAAW,MAAM,OAAO,CAAC;
|
|
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;AAa/D,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,qBAAqB,CAoFhD,CAAC"}
|
|
@@ -11,8 +11,10 @@ export { LogoSpinLoader } from "./LogoSpinLoader";
|
|
|
11
11
|
export { PulseLoader } from "./PulseLoader";
|
|
12
12
|
export { RingLoader } from "./RingLoader";
|
|
13
13
|
export { RotateLoader } from "./RotateLoader";
|
|
14
|
+
export { ShimmerLoader } from "./ShimmerLoader";
|
|
15
|
+
export { SkeletonLoader } from "./SkeletonLoader";
|
|
14
16
|
export { SpinLoader } from "./SpinLoader";
|
|
15
17
|
export { TypingLoader } from "./TypingLoader";
|
|
16
18
|
export { WaveLoader } from "./WaveLoader";
|
|
17
|
-
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";
|
|
18
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,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,C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AAiB,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"}
|
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/animationUt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|
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";
|
|
6
|
+
import { classNameGen } from "./classNameGen";
|
|
7
|
+
export { classNameGen };
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-loadly",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A professional React loaders package with high-performance, customizable loader components",
|
|
5
6
|
"main": "dist/index.cjs.js",
|
|
6
7
|
"module": "dist/index.esm.js",
|
|
@@ -14,17 +15,37 @@
|
|
|
14
15
|
"require": "./dist/index.cjs.js",
|
|
15
16
|
"types": "./dist/index.d.ts"
|
|
16
17
|
},
|
|
17
|
-
"./styles.css": "./dist/styles.css"
|
|
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",
|
|
32
|
+
"types": "./dist/index.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./types": {
|
|
35
|
+
"import": "./dist/index.esm.js",
|
|
36
|
+
"require": "./dist/index.cjs.js",
|
|
37
|
+
"types": "./dist/index.d.ts"
|
|
38
|
+
}
|
|
18
39
|
},
|
|
19
|
-
"sideEffects":
|
|
20
|
-
"*.css"
|
|
21
|
-
],
|
|
40
|
+
"sideEffects": false,
|
|
22
41
|
"scripts": {
|
|
23
42
|
"build:js": "rollup -c",
|
|
24
43
|
"build:types": "tsc --emitDeclarationOnly",
|
|
25
44
|
"build:watch": "rollup -c -w",
|
|
26
45
|
"clean": "rimraf dist",
|
|
27
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",
|
|
28
49
|
"test": "jest",
|
|
29
50
|
"test:watch": "jest --watch",
|
|
30
51
|
"test:coverage": "jest --coverage",
|
|
@@ -39,15 +60,27 @@
|
|
|
39
60
|
"production": "pnpm i && pnpm lint:fix && pnpm build && pnpm pack"
|
|
40
61
|
},
|
|
41
62
|
"keywords": [
|
|
63
|
+
"react-loadly",
|
|
42
64
|
"react",
|
|
43
65
|
"loaders",
|
|
44
66
|
"loading",
|
|
45
67
|
"spinner",
|
|
46
|
-
"animation",
|
|
47
68
|
"typescript",
|
|
48
69
|
"nextjs",
|
|
49
70
|
"components",
|
|
50
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",
|
|
51
84
|
"performance"
|
|
52
85
|
],
|
|
53
86
|
"author": "Mostafa Mohamed",
|
|
@@ -87,6 +120,8 @@
|
|
|
87
120
|
"rollup-plugin-dts": "^6.2.3",
|
|
88
121
|
"rollup-plugin-postcss": "^4.0.2",
|
|
89
122
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
123
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
124
|
+
"rollup-plugin-visualizer": "^5.9.2",
|
|
90
125
|
"ts-jest": "^29.1.1",
|
|
91
126
|
"tsconfig-paths": "^4.2.0",
|
|
92
127
|
"tslib": "^2.6.2",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface ILoaderTheme {
|
|
2
|
-
name: string;
|
|
3
|
-
colors: {
|
|
4
|
-
primary: string;
|
|
5
|
-
secondary: string;
|
|
6
|
-
background: string;
|
|
7
|
-
text: string;
|
|
8
|
-
accent: string;
|
|
9
|
-
};
|
|
10
|
-
animation: {
|
|
11
|
-
duration: string;
|
|
12
|
-
easing: string;
|
|
13
|
-
};
|
|
14
|
-
typography: {
|
|
15
|
-
fontFamily: string;
|
|
16
|
-
fontSize: string;
|
|
17
|
-
fontWeight: number;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=ILoaderTheme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILoaderTheme.d.ts","sourceRoot":"","sources":["../../../../src/@types/interfaces/ILoaderTheme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|