infinity-forge 7.7.8 → 7.7.9

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.
@@ -0,0 +1,9 @@
1
+ import { types } from './type-animation.js';
2
+ interface IElementAnimationProps {
3
+ duration?: number;
4
+ type: keyof typeof types;
5
+ children: React.ReactNode;
6
+ element: keyof JSX.IntrinsicElements;
7
+ }
8
+ export declare function Animation({ children, duration, type, element }: IElementAnimationProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Animation = Animation;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var react_1 = require("react");
17
+ var react_2 = require("motion/react");
18
+ var type_animation_1 = require("./type-animation.js");
19
+ function Animation(_a) {
20
+ var children = _a.children, duration = _a.duration, type = _a.type, _b = _a.element, element = _b === void 0 ? 'div' : _b;
21
+ var ref = (0, react_1.useRef)(null);
22
+ var isInView = (0, react_2.useInView)(ref);
23
+ var Element = react_2.motion[element];
24
+ var defaultAnimate = {
25
+ opacity: 1,
26
+ y: 0,
27
+ x: 0,
28
+ };
29
+ var animate = isInView ? defaultAnimate : __assign({ opacity: 0 }, type_animation_1.types[type]);
30
+ return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, animate: animate, initial: type_animation_1.types[type], transition: { duration: duration || 0.7, ease: 'easeInOut' }, children: children }));
31
+ }
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/animation/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAaA,8BAwBC;;AArCD,+BAA8B;AAE9B,sCAAgD;AAEhD,mDAAwC;AASxC,SAAgB,SAAS,CAAC,EAAqE;QAAnE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IACnE,IAAM,GAAG,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAA;IACxB,IAAM,QAAQ,GAAG,IAAA,iBAAS,EAAC,GAAG,CAAC,CAAA;IAE/B,IAAM,OAAO,GAAG,cAAM,CAAC,OAAO,CAAsB,CAAA;IAEpD,IAAM,cAAc,GAAG;QACrB,OAAO,EAAE,CAAC;QACV,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAA;IAED,IAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,YAAG,OAAO,EAAE,CAAC,IAAK,sBAAK,CAAC,IAAI,CAAC,CAAE,CAAA;IAE1E,OAAO,CACL,uBAAC,OAAO,IACN,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,sBAAK,CAAC,IAAI,CAAC,EACpB,UAAU,EAAE,EAAE,QAAQ,EAAE,QAAQ,IAAI,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,YAE3D,QAAQ,GACD,CACX,CAAA;AACH,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const types: {
2
+ fromBottom: {
3
+ y: number;
4
+ };
5
+ fromTop: {
6
+ opacity: number;
7
+ y: number;
8
+ };
9
+ fromLeft: {
10
+ x: number;
11
+ };
12
+ fromRight: {
13
+ x: number;
14
+ };
15
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.types = void 0;
4
+ exports.types = {
5
+ fromBottom: {
6
+ y: 50,
7
+ },
8
+ fromTop: {
9
+ opacity: 0,
10
+ y: -50,
11
+ },
12
+ fromLeft: {
13
+ x: -50,
14
+ },
15
+ fromRight: {
16
+ x: 50,
17
+ },
18
+ };
19
+ //# sourceMappingURL=type-animation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-animation.js","sourceRoot":"","sources":["../../../../src/ui/components/animation/type-animation.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG;IACnB,UAAU,EAAE;QACV,CAAC,EAAE,EAAE;KACN;IACD,OAAO,EAAE;QACP,OAAO,EAAE,CAAC;QACV,CAAC,EAAE,CAAC,EAAE;KACP;IACD,QAAQ,EAAE;QACR,CAAC,EAAE,CAAC,EAAE;KACP;IACD,SAAS,EAAE;QACT,CAAC,EAAE,EAAE;KACN;CACF,CAAA"}
@@ -14,6 +14,7 @@ export * from './skeleton/index.js';
14
14
  export * from './drop-down/index.js';
15
15
  export * from './container/index.js';
16
16
  export * from './accordion/index.js';
17
+ export * from './animation/index.js';
17
18
  export * from './next-image/index.js';
18
19
  export * from './breadcrumb/index.js';
19
20
  export * from './pagination/index.js';
@@ -30,6 +30,7 @@ __exportStar(require("./skeleton/index.js"), exports);
30
30
  __exportStar(require("./drop-down/index.js"), exports);
31
31
  __exportStar(require("./container/index.js"), exports);
32
32
  __exportStar(require("./accordion/index.js"), exports);
33
+ __exportStar(require("./animation/index.js"), exports);
33
34
  __exportStar(require("./next-image/index.js"), exports);
34
35
  __exportStar(require("./breadcrumb/index.js"), exports);
35
36
  __exportStar(require("./pagination/index.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,mDAAgC;AAChC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B;AAC3B,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,mDAAgC;AAChC,0DAAuC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/ui/utils/http/api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,kBA8BC;AAhDD,2BAAiD;AAkBjD,SAAsB,GAAG,CAAU,MAAmB,EAAE,OAAgB;;;;;;;oBAChE,GAAG,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa;wBACnE,CAAC,CAAC,MAAM,CAAC,GAAG;wBACZ,CAAC,CAAC,OAAO;4BACT,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG;4BACtB,CAAC,CAAC,UAAG,OAAO,CAAC,GA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BAAC,OAAO,KAAK,EAAE,CAAC;4BACf,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAA;wBAC1D,CAAC;oBACH,CAAC;oBAEgB,qBAAM,SAAI,CAAC,OAAO,uBAAM,MAAM,KAAE,OAAO,SAAA,EAAE,GAAG,EAAE,GAAG,IAAG,EAAA;;oBAA/D,QAAQ,GAAG,SAAoD;oBAErE,sBAAO,QAAa,EAAA;;;;CACrB"}
package/package.json CHANGED
@@ -1,73 +1,74 @@
1
- {
2
- "name": "infinity-forge",
3
- "version": "7.7.8",
4
- "description": "codie Library",
5
- "main": "./dist/index",
6
- "module": "./dist/index",
7
- "types": "./dist/index.d.ts",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/CodieDigital/codiedigital-library"
11
- },
12
- "scripts": {
13
- "dev": "next -p 3053",
14
- "deploy": "npm version patch && npm publish",
15
- "next": "next build",
16
- "start": "next start -p 3015",
17
- "build": "tsc && tsc-alias --resolve-full-paths && npm run build:CSS",
18
- "build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
19
- "minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
20
- "swagger": "node ./dist/client/generate.js"
21
- },
22
- "peerDependencies": {
23
- "react": ">=16"
24
- },
25
- "files": [
26
- "dist",
27
- "LICENSE",
28
- "README.md"
29
- ],
30
- "keywords": [
31
- "react",
32
- "typescript",
33
- "awesome-project"
34
- ],
35
- "author": "Codie Digital",
36
- "license": "MIT",
37
- "devDependencies": {
38
- "@types/node": "^22.8.1",
39
- "@types/react": "^19.0.8",
40
- "@types/react-dom": "^19.0.3",
41
- "@types/styled-components": "^5.1.34",
42
- "concurrently": "^9.1.1",
43
- "copyfiles": "^2.4.1",
44
- "cssnano": "^7.0.6",
45
- "fs-extra": "^11.2.0",
46
- "postcss": "^8.4.49",
47
- "postcss-cli": "^11.0.0",
48
- "tsc-alias": "^1.8.10",
49
- "typescript": "^5.7.2"
50
- },
51
- "dependencies": {
52
- "@dnd-kit/core": "^6.3.1",
53
- "@dnd-kit/modifiers": "^9.0.0",
54
- "@dnd-kit/sortable": "^10.0.0",
55
- "@dnd-kit/utilities": "^3.2.2",
56
- "@next/third-parties": "^15.1.6",
57
- "axios": "^1.7.9",
58
- "cpx": "^1.5.0",
59
- "formik": "^2.4.6",
60
- "fs": "0.0.1-security",
61
- "moment": "^2.30.1",
62
- "next": "^15.1.6",
63
- "node": "^22.13.0",
64
- "quill": "^2.0.3",
65
- "react": "19.0.0",
66
- "react-dom": "19.0.0",
67
- "react-select": "^5.9.0",
68
- "styled-components": "^6.1.15",
69
- "yup": "^1.6.1",
70
- "zustand": "^5.0.2"
71
- },
72
- "packageManager": "pnpm@10.6.3+sha512.bb45e34d50a9a76e858a95837301bfb6bd6d35aea2c5d52094fa497a467c43f5c440103ce2511e9e0a2f89c3d6071baac3358fc68ac6fb75e2ceb3d2736065e6"
73
- }
1
+ {
2
+ "name": "infinity-forge",
3
+ "version": "7.7.9",
4
+ "description": "codie Library",
5
+ "main": "./dist/index",
6
+ "module": "./dist/index",
7
+ "types": "./dist/index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/CodieDigital/codiedigital-library"
11
+ },
12
+ "scripts": {
13
+ "dev": "next -p 3053",
14
+ "deploy": "npm version patch && npm publish",
15
+ "next": "next build",
16
+ "start": "next start -p 3015",
17
+ "build": "tsc && tsc-alias --resolve-full-paths && npm run build:CSS",
18
+ "build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
19
+ "minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
20
+ "swagger": "node ./dist/client/generate.js"
21
+ },
22
+ "peerDependencies": {
23
+ "react": ">=16"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "LICENSE",
28
+ "README.md"
29
+ ],
30
+ "keywords": [
31
+ "react",
32
+ "typescript",
33
+ "awesome-project"
34
+ ],
35
+ "author": "Codie Digital",
36
+ "license": "MIT",
37
+ "devDependencies": {
38
+ "@types/node": "^22.8.1",
39
+ "@types/react": "^19.0.8",
40
+ "@types/react-dom": "^19.0.3",
41
+ "@types/styled-components": "^5.1.34",
42
+ "concurrently": "^9.1.1",
43
+ "copyfiles": "^2.4.1",
44
+ "cssnano": "^7.0.6",
45
+ "fs-extra": "^11.2.0",
46
+ "postcss": "^8.4.49",
47
+ "postcss-cli": "^11.0.0",
48
+ "tsc-alias": "^1.8.10",
49
+ "typescript": "^5.7.2"
50
+ },
51
+ "dependencies": {
52
+ "@dnd-kit/core": "^6.3.1",
53
+ "@dnd-kit/modifiers": "^9.0.0",
54
+ "@dnd-kit/sortable": "^10.0.0",
55
+ "@dnd-kit/utilities": "^3.2.2",
56
+ "@next/third-parties": "^15.1.6",
57
+ "axios": "^1.7.9",
58
+ "cpx": "^1.5.0",
59
+ "formik": "^2.4.6",
60
+ "fs": "0.0.1-security",
61
+ "moment": "^2.30.1",
62
+ "motion": "^12.5.0",
63
+ "next": "^15.1.6",
64
+ "node": "^22.13.0",
65
+ "quill": "^2.0.3",
66
+ "react": "19.0.0",
67
+ "react-dom": "19.0.0",
68
+ "react-select": "^5.9.0",
69
+ "styled-components": "^6.1.15",
70
+ "yup": "^1.6.1",
71
+ "zustand": "^5.0.2"
72
+ },
73
+ "packageManager": "pnpm@10.6.3+sha512.bb45e34d50a9a76e858a95837301bfb6bd6d35aea2c5d52094fa497a467c43f5c440103ce2511e9e0a2f89c3d6071baac3358fc68ac6fb75e2ceb3d2736065e6"
74
+ }