infinity-forge 11.9.2 → 11.9.3

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.
@@ -1,4 +1,5 @@
1
1
  import { useJob } from './jobs/index.js';
2
+ import { Page404 } from './not-found/index.js';
2
3
  import { FavoritePage } from './favorite-page/index.js';
3
4
  import { useDirectoryFilter } from './directory-filter/index.js';
4
5
  import { Interactions, useInteractions } from './interactions/index.js';
@@ -12,6 +13,9 @@ export declare const codieDynamic: {
12
13
  };
13
14
  };
14
15
  pages: {
16
+ notFound: {
17
+ component: typeof Page404;
18
+ };
15
19
  favorite: {
16
20
  page: typeof FavoritePage;
17
21
  };
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.codieDynamic = void 0;
4
4
  var jobs_1 = require("./jobs/index.js");
5
+ var not_found_1 = require("./not-found/index.js");
5
6
  var favorite_page_1 = require("./favorite-page/index.js");
6
7
  var directory_filter_1 = require("./directory-filter/index.js");
7
8
  var interactions_1 = require("./interactions/index.js");
@@ -15,6 +16,9 @@ exports.codieDynamic = {
15
16
  },
16
17
  },
17
18
  pages: {
19
+ notFound: {
20
+ component: not_found_1.Page404,
21
+ },
18
22
  favorite: {
19
23
  page: favorite_page_1.FavoritePage,
20
24
  },
@@ -1 +1 @@
1
- {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../../src/ui/codie-dynamic/components/hook.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iDAA8C;AAC9C,uDAAuD;AACvD,+CAA8D;AAEjD,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,aAAM;KACb;IACD,OAAO,EAAE;QACP,SAAS,EAAE;YACT,IAAI,EAAE,qCAAkB;SACzB;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,IAAI,EAAE,4BAAY;SACnB;QACD,SAAS,EAAE;YACT,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,IAAI,EAAE,8BAAe;oBACrB,SAAS,EAAE,2BAAY;iBACxB;aACF;SACF;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../../src/ui/codie-dynamic/components/hook.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,yCAAqC;AACrC,iDAA8C;AAC9C,uDAAuD;AACvD,+CAA8D;AAEjD,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,aAAM;KACb;IACD,OAAO,EAAE;QACP,SAAS,EAAE;YACT,IAAI,EAAE,qCAAkB;SACzB;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,SAAS,EAAE,mBAAO;SACnB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,4BAAY;SACnB;QACD,SAAS,EAAE;YACT,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,IAAI,EAAE,8BAAe;oBACrB,SAAS,EAAE,2BAAY;iBACxB;aACF;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,12 @@
1
+ export type Page404Props = {
2
+ title?: string;
3
+ description?: string;
4
+ small?: boolean;
5
+ action?: boolean;
6
+ link?: {
7
+ url: string;
8
+ text: string;
9
+ icone?: string;
10
+ };
11
+ };
12
+ export declare function Page404({ title, description, action, small, link }: Page404Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Page404 = Page404;
40
+ var jsx_runtime_1 = require("react/jsx-runtime");
41
+ var link_1 = __importDefault(require("next/link"));
42
+ var ui_1 = require("../../../../ui/index.js");
43
+ var S = __importStar(require("./styles.js"));
44
+ function Page404(_a) {
45
+ var title = _a.title, description = _a.description, action = _a.action, small = _a.small, link = _a.link;
46
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Page404', children: (0, jsx_runtime_1.jsx)(S.Page404Styles, { "$small": small, children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/404.webp' }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [(0, jsx_runtime_1.jsx)("h1", { children: title || 'Página não econtrada' }), (0, jsx_runtime_1.jsx)("p", { dangerouslySetInnerHTML: {
47
+ __html: description ||
48
+ 'Desculpe, a página que você está procurando não pode ser encontrada. <br /> Isso pode ser porque a página foi removida, teve seu nome alterado ou está temporariamente indisponível.',
49
+ } })] }), !action && ((0, jsx_runtime_1.jsxs)(link_1.default, { href: (link === null || link === void 0 ? void 0 : link.url) || '/', children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (link === null || link === void 0 ? void 0 : link.icone) !== undefined ? link.icone : 'IconHome' }), (link === null || link === void 0 ? void 0 : link.text) || 'Voltar'] }))] }) }) }));
50
+ }
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/codie-dynamic/components/not-found/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,0BA+BC;;AAjDD,mDAA4B;AAE5B,2BAAwD;AAExD,0CAA6B;AAc7B,SAAgB,OAAO,CAAC,EAAyD;QAAvD,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAC/D,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,SAAS,YACnB,uBAAC,CAAC,CAAC,aAAa,cAAS,KAAK,YAC5B,wBAAC,cAAS,eACR,gCAAK,SAAS,EAAC,OAAO,YACpB,uBAAC,cAAS,IAAC,GAAG,EAAC,kBAAkB,GAAG,GAChC,EAEN,iCAAK,SAAS,EAAC,MAAM,aACnB,yCAAK,KAAK,IAAI,sBAAsB,GAAM,EAE1C,8BACE,uBAAuB,EAAE;oCACvB,MAAM,EACJ,WAAW;wCACX,sLAAsL;iCACzL,GACD,IACE,EAEL,CAAC,MAAM,IAAI,CACV,wBAAC,cAAI,IAAC,IAAI,EAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,KAAI,GAAG,aAC1B,uBAAC,SAAI,IAAC,IAAI,EAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,MAAK,SAAS,CAAC,CAAC,CAAE,IAAY,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,GAAI,EAC3E,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,KAAI,QAAQ,IAClB,CACR,IACS,GACI,GACZ,CACT,CAAA;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const Page404Styles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, {
2
+ $small?: boolean;
3
+ }>> & string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.Page404Styles = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.Page404Styles = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 30px 0;\n\n .image {\n width: 100%;\n max-width: ", ";\n min-width: 200px;\n margin: 0 auto ", ";\n }\n\n .text {\n text-align: center;\n margin-bottom: clamp(20px, 1.56vw, 30px);\n\n h1 {\n font-size: ", ";\n color: #000;\n }\n\n p {\n line-height: 1.7;\n color: #666666;\n font-size: 16px;\n }\n }\n\n a {\n width: 100%;\n max-width: fit-content;\n height: 2.81vw;\n min-height: 46px;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: ", ";\n color: #fff;\n gap: 10px;\n font-size: 16px;\n padding: 0 24px;\n margin: 0 auto;\n font-weight: 600;\n text-decoration: none;\n\n svg {\n width: 18px;\n height: auto;\n fill: currentColor;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .text {\n h1 {\n font-size: 26px;\n }\n\n p {\n font-size: 14px;\n }\n }\n\n a {\n font-size: 14px;\n padding: 0 20px;\n\n svg {\n width: 16px;\n }\n }\n }\n"], ["\n padding: 30px 0;\n\n .image {\n width: 100%;\n max-width: ", ";\n min-width: 200px;\n margin: 0 auto ", ";\n }\n\n .text {\n text-align: center;\n margin-bottom: clamp(20px, 1.56vw, 30px);\n\n h1 {\n font-size: ", ";\n color: #000;\n }\n\n p {\n line-height: 1.7;\n color: #666666;\n font-size: 16px;\n }\n }\n\n a {\n width: 100%;\n max-width: fit-content;\n height: 2.81vw;\n min-height: 46px;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: ", ";\n color: #fff;\n gap: 10px;\n font-size: 16px;\n padding: 0 24px;\n margin: 0 auto;\n font-weight: 600;\n text-decoration: none;\n\n svg {\n width: 18px;\n height: auto;\n fill: currentColor;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .text {\n h1 {\n font-size: 26px;\n }\n\n p {\n font-size: 14px;\n }\n }\n\n a {\n font-size: 14px;\n padding: 0 20px;\n\n svg {\n width: 16px;\n }\n }\n }\n"])), function (props) { return (props.$small ? '12vw' : '19.27vw'); }, function (props) { return (props.$small ? '15px' : '20px'); }, function (props) { return (props.$small ? '20px' : '30px'); }, function (props) { return props.theme.primaryColor; });
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/ui/codie-dynamic/components/not-found/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,uqCAAsB,uEAK/C,EAA8C,+CAE1C,EAA2C,4HAQ7C,EAA2C,wVAoB5C,EAAmC,khBAoCpD,KAlEgB,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,EAAnC,CAAmC,EAE1C,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAhC,CAAgC,EAQ7C,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAhC,CAAgC,EAoB5C,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,EAAxB,CAAwB,EAoCpD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "11.9.2",
3
+ "version": "11.9.3",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",