infinity-forge 2.5.2 → 2.5.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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ISiteConfigurationProviderProps } from '../../../sites/index.js';
3
- import { I18nContextProps } from '../../../ui/index.js';
3
+ import { I18nContextProps, LoaderOnRouteChangeProps } from '../../../ui/index.js';
4
4
  import { AuthAdminProviderProps } from './auth/index.js';
5
5
  import { DefaultThemeInfinityForge } from './theme/index.js';
6
6
  import { InfraInjectionContextType } from './infra-injection/index.js';
@@ -11,5 +11,7 @@ export type InfinityForgeProvidersProps = {
11
11
  i18n?: I18nContextProps;
12
12
  } & {
13
13
  auth?: AuthAdminProviderProps;
14
- } & ISiteConfigurationProviderProps;
15
- export declare function InfinityForgeProviders({ auth, i18n, theme, children, InjectedRemotes, Configurations, siteConfigurations, }: InfinityForgeProvidersProps): import("react/jsx-runtime").JSX.Element;
14
+ } & ISiteConfigurationProviderProps & {
15
+ loaderOnRouteChange?: LoaderOnRouteChangeProps;
16
+ };
17
+ export declare function InfinityForgeProviders({ auth, i18n, theme, children, InjectedRemotes, Configurations, siteConfigurations, loaderOnRouteChange, }: InfinityForgeProvidersProps): import("react/jsx-runtime").JSX.Element;
@@ -20,11 +20,11 @@ var auth_1 = require("./auth/index.js");
20
20
  var theme_1 = require("./theme/index.js");
21
21
  var infra_injection_1 = require("./infra-injection/index.js");
22
22
  function InfinityForgeProviders(_a) {
23
- var auth = _a.auth, i18n = _a.i18n, theme = _a.theme, children = _a.children, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations, siteConfigurations = _a.siteConfigurations;
24
- var Content = ((0, jsx_runtime_1.jsx)(sites_1.SiteProvider, { siteConfigurations: siteConfigurations, children: (0, jsx_runtime_1.jsx)(theme_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { children: (0, jsx_runtime_1.jsx)(menu_1.MenuContextProvider, __assign({}, Configurations === null || Configurations === void 0 ? void 0 : Configurations.menu, { children: (0, jsx_runtime_1.jsx)(ui_1.LoaderOnRouteChange, { children: children }) })) }) }) }));
23
+ var auth = _a.auth, i18n = _a.i18n, theme = _a.theme, children = _a.children, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations, siteConfigurations = _a.siteConfigurations, loaderOnRouteChange = _a.loaderOnRouteChange;
24
+ var Content = ((0, jsx_runtime_1.jsx)(sites_1.SiteProvider, { siteConfigurations: siteConfigurations, children: (0, jsx_runtime_1.jsx)(theme_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { children: (0, jsx_runtime_1.jsx)(menu_1.MenuContextProvider, __assign({}, Configurations === null || Configurations === void 0 ? void 0 : Configurations.menu, { children: (0, jsx_runtime_1.jsx)(ui_1.LoaderOnRouteChange, __assign({}, loaderOnRouteChange, { children: children })) })) }) }) }));
25
25
  var DynamicContent = (Configurations === null || Configurations === void 0 ? void 0 : Configurations.dynamicSections) ? ((0, jsx_runtime_1.jsx)(ui_1.DynamicSectionProvider, { sections: Configurations.dynamicSections, children: Content })) : (Content);
26
- var I18nContent = i18n ? ((0, jsx_runtime_1.jsx)(ui_1.I18nProvider, __assign({}, i18n, { children: DynamicContent }))) : (DynamicContent);
27
- return ((0, jsx_runtime_1.jsx)(ui_1.QueryClientContextProvider, { children: (0, jsx_runtime_1.jsx)(infra_injection_1.InfraInjectionProvider, { InjectedRemotes: InjectedRemotes, Configurations: Configurations, children: auth ? ((0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, __assign({}, auth, { children: I18nContent }))) : (I18nContent) }) }));
26
+ var I18nContent = i18n ? (0, jsx_runtime_1.jsx)(ui_1.I18nProvider, __assign({}, i18n, { children: DynamicContent })) : DynamicContent;
27
+ return ((0, jsx_runtime_1.jsx)(ui_1.QueryClientContextProvider, { children: (0, jsx_runtime_1.jsx)(infra_injection_1.InfraInjectionProvider, { InjectedRemotes: InjectedRemotes, Configurations: Configurations, children: auth ? (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, __assign({}, auth, { children: I18nContent })) : I18nContent }) }));
28
28
  }
29
29
  exports.InfinityForgeProviders = InfinityForgeProviders;
30
30
  //# sourceMappingURL=container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAuE;AACvE,2BAOa;AAEb,+BAA4C;AAC5C,+BAAkE;AAClE,iCAAkE;AAClE,qDAAqF;AASrF,SAAgB,sBAAsB,CAAC,EAQT;QAP5B,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,eAAe,qBAAA,EACf,cAAc,oBAAA,EACd,kBAAkB,wBAAA;IAGlB,IAAM,OAAO,GAAG,CACd,uBAAC,oBAAY,IAAC,kBAAkB,EAAE,kBAAkB,YAClD,uBAAC,qBAAa,IAAC,KAAK,EAAE,KAAK,YACzB,uBAAC,kBAAa,cACZ,uBAAC,0BAAmB,eAAK,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,cAC3C,uBAAC,wBAAmB,cAAE,QAAQ,GAAuB,IACjC,GACR,GACF,GACH,CAChB,CAAA;IAED,IAAM,cAAc,GAAG,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,EAAC,CAAC,CAAC,CACvD,uBAAC,2BAAsB,IAAC,QAAQ,EAAE,cAAc,CAAC,eAAe,YAC7D,OAAO,GACe,CAC1B,CAAC,CAAC,CAAC,CACF,OAAO,CACR,CAAA;IAED,IAAM,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,CACzB,uBAAC,iBAAY,eAAK,IAAI,cACnB,cAAc,IACF,CAChB,CAAC,CAAC,CAAC,CACF,cAAc,CACf,CAAA;IAED,OAAO,CACL,uBAAC,+BAA0B,cACzB,uBAAC,wCAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,YACrF,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,wBAAiB,eAAK,IAAI,cACxB,WAAW,IACM,CACrB,CAAC,CAAC,CAAC,CACF,WAAW,CACZ,GACsB,GACE,CAC9B,CAAA;AACH,CAAC;AAnDD,wDAmDC"}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAuE;AACvE,2BAQa;AAEb,+BAA4C;AAC5C,+BAAkE;AAClE,iCAAkE;AAClE,qDAAqF;AASrF,SAAgB,sBAAsB,CAAC,EAST;QAR5B,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,eAAe,qBAAA,EACf,cAAc,oBAAA,EACd,kBAAkB,wBAAA,EAClB,mBAAmB,yBAAA;IAEnB,IAAM,OAAO,GAAG,CACd,uBAAC,oBAAY,IAAC,kBAAkB,EAAE,kBAAkB,YAClD,uBAAC,qBAAa,IAAC,KAAK,EAAE,KAAK,YACzB,uBAAC,kBAAa,cACZ,uBAAC,0BAAmB,eAAK,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,cAC3C,uBAAC,wBAAmB,eAAK,mBAAmB,cAAG,QAAQ,IAAuB,IAC1D,GACR,GACF,GACH,CAChB,CAAA;IAED,IAAM,cAAc,GAAG,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,EAAC,CAAC,CAAC,CACvD,uBAAC,2BAAsB,IAAC,QAAQ,EAAE,cAAc,CAAC,eAAe,YAAG,OAAO,GAA0B,CACrG,CAAC,CAAC,CAAC,CACF,OAAO,CACR,CAAA;IAED,IAAM,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,uBAAC,iBAAY,eAAK,IAAI,cAAG,cAAc,IAAgB,CAAC,CAAC,CAAC,cAAc,CAAA;IAEnG,OAAO,CACL,uBAAC,+BAA0B,cACzB,uBAAC,wCAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,YACrF,IAAI,CAAC,CAAC,CAAC,uBAAC,wBAAiB,eAAK,IAAI,cAAG,WAAW,IAAqB,CAAC,CAAC,CAAC,WAAW,GAC7D,GACE,CAC9B,CAAA;AACH,CAAC;AArCD,wDAqCC"}
@@ -1,5 +1,7 @@
1
- import { FieldsProviderCep, InputCepProps } from '../../../../../../../ui/index.js';
1
+ import { FieldsProviderCep, InputCepProps } from '../../../../../../../ui';
2
2
  export declare function useCepIBGE<T = any>({ fields }: InputCepProps<T>): {
3
3
  getCep: (zipCode: any) => Promise<T>;
4
4
  fields: FieldsProviderCep<T>;
5
5
  };
6
+ p<T>;
7
+ };
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.useCepIBGE = void 0;
40
- var ui_1 = require("../../../../../../../ui/index.js");
40
+ var ui_1 = require("../../../../../../../ui");
41
41
  function useCepIBGE(_a) {
42
42
  var fields = _a.fields;
43
43
  function getCep(zipCode) {
@@ -64,4 +64,4 @@ function useCepIBGE(_a) {
64
64
  };
65
65
  }
66
66
  exports.useCepIBGE = useCepIBGE;
67
- //# sourceMappingURL=hook.js.map
67
+ //# sourceMappingURL=hook.js.mapok.js.map
@@ -1,4 +1,4 @@
1
- import { RenderFileProps } from '../../../../../../../ui/index.js';
1
+ import { RenderFileProps } from '../../../../../../../ui';
2
2
  export type ButtonUploadImageMobileProps = {
3
3
  mobile?: {
4
4
  id: string;
@@ -11,3 +11,4 @@ export type ButtonUploadImageMobileProps = {
11
11
  isMobile?: boolean;
12
12
  };
13
13
  export declare function ButtonUploadImageMobile(props: RenderFileProps & ButtonUploadImageMobileProps): import("react/jsx-runtime").JSX.Element;
14
+ Element;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ButtonUploadImageMobile = void 0;
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
- var ui_1 = require("../../../../../../../ui/index.js");
5
+ var ui_1 = require("../../../../../../../ui");
6
6
  function ButtonUploadImageMobile(props) {
7
7
  var _a, _b;
8
8
  var _c = (0, ui_1.useFile)(props.mobile), InputFile = _c.InputFile, LabelFileArea = _c.LabelFileArea;
@@ -15,4 +15,4 @@ function ButtonUploadImageMobile(props) {
15
15
  return ((0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'MobileFile', bgColor: '#fff', enableHover: true, enableArrow: true, content: 'Arquivo Mobile', trigger: (0, jsx_runtime_1.jsx)(LabelFileArea, { children: (0, jsx_runtime_1.jsxs)("div", { className: 'action-button', children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'none' }, children: (0, jsx_runtime_1.jsx)(InputFile, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconMobile' })] }) }) }));
16
16
  }
17
17
  exports.ButtonUploadImageMobile = ButtonUploadImageMobile;
18
- //# sourceMappingURL=index.js.map
18
+ //# sourceMappingURL=index.js.mapex.js.map
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.FileItem = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.FileItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
12
+ exports.FileItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n \n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n \n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
13
13
  var templateObject_1;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,m8DAAA,g4DA2GpC,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,29DAAA,w5DA4GpC,KAAA"}
@@ -1,3 +1,6 @@
1
- export declare function LoaderOnRouteChange({ children }: {
2
- children: any;
3
- }): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export type LoaderOnRouteChangeProps = {
3
+ children: React.ReactNode;
4
+ Component: () => JSX.Element;
5
+ };
6
+ export declare function LoaderOnRouteChange({ children, Component }: LoaderOnRouteChangeProps): import("react/jsx-runtime").JSX.Element;
@@ -9,12 +9,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.LoaderOnRouteChange = void 0;
11
11
  var jsx_runtime_1 = require("react/jsx-runtime");
12
+ var react_dom_1 = __importDefault(require("react-dom"));
12
13
  var react_1 = require("react");
13
14
  var router_1 = __importDefault(require("next/router"));
14
15
  var styled_components_1 = __importDefault(require("styled-components"));
15
16
  var StylesRoute = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n height: 5px;\n animation-duration: 1.8s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: placeHolderShimmer;\n animation-timing-function: linear;\n background: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n right: 0;\n z-index: 99;\n\n @keyframes placeHolderShimmer {\n 0% {\n background-position: 0px 0;\n }\n 100% {\n background-position: 100vw 0;\n }\n }\n"], ["\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n height: 5px;\n animation-duration: 1.8s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: placeHolderShimmer;\n animation-timing-function: linear;\n background: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n right: 0;\n z-index: 99;\n\n @keyframes placeHolderShimmer {\n 0% {\n background-position: 0px 0;\n }\n 100% {\n background-position: 100vw 0;\n }\n }\n"])), function (props) { return props.theme.primaryColor; }, function (props) { return "linear-gradient(\n to right,\n ".concat(props.theme.primaryColor, " 8%,\n #fff 25%,\n ").concat(props.theme.primaryColor, " 33%\n )"); });
16
17
  function LoaderOnRouteChange(_a) {
17
- var children = _a.children;
18
+ var children = _a.children, Component = _a.Component;
18
19
  var _b = (0, react_1.useState)(false), loading = _b[0], setLoading = _b[1];
19
20
  (0, react_1.useEffect)(function () {
20
21
  var start = function () {
@@ -32,7 +33,8 @@ function LoaderOnRouteChange(_a) {
32
33
  router_1.default.events.off('routeChangeError', end);
33
34
  };
34
35
  }, []);
35
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [loading && (0, jsx_runtime_1.jsx)(StylesRoute, {}), children] }));
36
+ var ComponentLoader = Component || StylesRoute;
37
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [process.browser && react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)("div", { className: 'loader_routing_infinity_forge', children: loading && (0, jsx_runtime_1.jsx)(ComponentLoader, {}) }), document.body), children] }));
36
38
  }
37
39
  exports.LoaderOnRouteChange = LoaderOnRouteChange;
38
40
  var templateObject_1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/contexts/route-loading/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,+BAA2C;AAE3C,uDAAgC;AAChC,wEAAsC;AAEtC,IAAM,WAAW,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,kkBAAA,iRAWjB,EAAmC,mBACnC,EAKZ,uNAcH,KApBe,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,EAAxB,CAAwB,EACnC,UAAC,KAAK,IAAK,OAAA,2CAEvB,KAAK,CAAC,KAAK,CAAC,YAAY,kCAExB,KAAK,CAAC,KAAK,CAAC,YAAY,cACxB,EALuB,CAKvB,CAcH,CAAA;AAED,SAAgB,mBAAmB,CAAC,EAAY;QAAV,QAAQ,cAAA;IACtC,IAAA,KAAwB,IAAA,gBAAQ,EAAC,KAA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A;AACH,CAAC;AAhCD,kDAgCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",