infinity-forge 0.32.0 → 0.32.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.
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,+BAAoC;AAIpC,0CAA6B;AAG7B,SAAgB,MAAM,CAAC,KAAc;IACnC,OAAO,CACL,wBAAC,CAAC,CAAC,MAAM,eACP,uBAAC,eAAM,eAAK,KAAK,EAAI,EAErB,iCAAK,SAAS,EAAC,gBAAgB,aAC7B,uBAAC,kBAAW,eAAK,KAAK,EAAI,EAEzB,KAAK,CAAC,QAAQ,IAAI,2CAAO,KAAK,CAAC,QAAQ,GAAQ,IAC5C,IACG,CACZ,CAAA;AACH,CAAC;AAZD,wBAYC"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,+BAAoC;AAIpC,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,KAAc;IACnC,OAAO,CACL,wBAAC,CAAC,CAAC,MAAM,eACP,uBAAC,eAAM,eAAK,KAAK,EAAI,EAErB,iCAAK,SAAS,EAAC,gBAAgB,aAC7B,uBAAC,kBAAW,eAAK,KAAK,EAAI,EAEzB,KAAK,CAAC,QAAQ,IAAI,2CAAO,KAAK,CAAC,QAAQ,GAAQ,IAC5C,IACG,CACZ,CAAA;AACH,CAAC;AAZD,wBAYC"}
@@ -19,9 +19,7 @@ function SideBarMenu(props) {
19
19
  switch (type) {
20
20
  case 'version01':
21
21
  return (0, jsx_runtime_1.jsx)(version_01_1.SideBarMenuVersion01, __assign({}, props));
22
- default:
23
- ;
24
- (0, jsx_runtime_1.jsx)(version_01_1.SideBarMenuVersion01, __assign({}, props));
22
+ default: (0, jsx_runtime_1.jsx)(version_01_1.SideBarMenuVersion01, __assign({}, props));
25
23
  }
26
24
  }
27
25
  exports.SideBarMenu = SideBarMenu;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/layout/menu/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,2CAAmD;AAEnD,SAAgB,WAAW,CAAC,KAAc;IACxC,IAAM,IAAI,GAAG,WAAW,CAAA;IAExB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW;YACd,OAAO,uBAAC,iCAAoB,eAAK,KAAK,EAAI,CAAA;QAE5C;YACE,CAAC;YAAA,uBAAC,iCAAoB,eAAK,KAAK,EAAI,CAAA;IACxC,CAAC;AACH,CAAC;AAVD,kCAUC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/layout/menu/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,2CAAmD;AAEnD,SAAgB,WAAW,CAAC,KAAc;IACxC,IAAM,IAAI,GAAG,WAAW,CAAA;IAExB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW;YACd,OAAO,uBAAC,iCAAoB,eAAK,KAAK,EAAI,CAAA;QAE5C,OAAO,CAAC,CAAC,uBAAC,iCAAoB,eAAK,KAAK,EAAI,CAAA;IAC9C,CAAC;AACH,CAAC;AATD,kCASC"}
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { InfraInjectionContextType } from './infra-injection/index.js';
3
- export declare function InfinityForgeProviders({ children, onSignOut, toast, InjectedRemotes, Configurations }: {
3
+ import { DefaultThemeInfinityForge } from './theme/index.js';
4
+ export declare function InfinityForgeProviders({ toast, theme, children, onSignOut, InjectedRemotes, Configurations, }: {
4
5
  children: React.ReactNode;
5
6
  onSignOut?: () => void;
6
7
  toast?: any;
8
+ theme: DefaultThemeInfinityForge;
7
9
  } & InfraInjectionContextType): import("react/jsx-runtime").JSX.Element;
@@ -5,9 +5,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
5
5
  var ui_1 = require("../../../ui/index.js");
6
6
  var auth_1 = require("./auth/index.js");
7
7
  var infra_injection_1 = require("./infra-injection/index.js");
8
+ var theme_1 = require("./theme/index.js");
8
9
  function InfinityForgeProviders(_a) {
9
- var children = _a.children, onSignOut = _a.onSignOut, toast = _a.toast, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations;
10
- return ((0, jsx_runtime_1.jsx)(infra_injection_1.InfraInjectionProvider, { InjectedRemotes: InjectedRemotes, Configurations: Configurations, children: (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { onSignOut: onSignOut, children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { toast: toast, children: children }) }) }));
10
+ var toast = _a.toast, theme = _a.theme, children = _a.children, onSignOut = _a.onSignOut, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations;
11
+ return ((0, jsx_runtime_1.jsx)(infra_injection_1.InfraInjectionProvider, { InjectedRemotes: InjectedRemotes, Configurations: Configurations, children: (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { onSignOut: onSignOut, children: (0, jsx_runtime_1.jsx)(theme_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { toast: toast, children: children }) }) }) }));
11
12
  }
12
13
  exports.InfinityForgeProviders = InfinityForgeProviders;
13
14
  //# sourceMappingURL=container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;AAAA,2BAAoC;AACpC,+BAA0C;AAC1C,qDAAqF;AAErF,SAAgB,sBAAsB,CAAC,EAUV;QAT3B,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,KAAK,WAAA,EACL,eAAe,qBAAA,EACf,cAAc,oBAAA;IAMd,OAAO,CACL,uBAAC,wCAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,YACtF,uBAAC,wBAAiB,IAAC,SAAS,EAAE,SAAS,YACnC,uBAAC,kBAAa,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAiB,GACvC,GACG,CAC1B,CAAA;AACH,CAAC;AAlBD,wDAkBC"}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;AAAA,2BAAoC;AACpC,+BAA0C;AAC1C,qDAAqF;AACrF,iCAAkE;AAElE,SAAgB,sBAAsB,CAAC,EAYV;QAX3B,KAAK,WAAA,EACL,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,cAAc,oBAAA;IAOd,OAAO,CACL,uBAAC,wCAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,YACtF,uBAAC,wBAAiB,IAAC,SAAS,EAAE,SAAS,YACrC,uBAAC,qBAAa,IAAC,KAAK,EAAE,KAAK,YACzB,uBAAC,kBAAa,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAiB,GACzC,GACE,GACG,CAC1B,CAAA;AACH,CAAC;AAtBD,wDAsBC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export type DefaultThemeInfinityForge = {
3
+ primaryColor: string;
4
+ secondaryColor: string;
5
+ darkColor: string;
6
+ } & {
7
+ [key: string]: string;
8
+ };
9
+ declare function ThemeProvider({ children, theme }: {
10
+ children: React.ReactNode;
11
+ theme: DefaultThemeInfinityForge;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ declare function useTheme(): {};
14
+ export { ThemeProvider, useTheme };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useTheme = exports.ThemeProvider = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var react_1 = require("react");
6
+ var styled_components_1 = require("styled-components");
7
+ var themeContext = (0, react_1.createContext)({});
8
+ function ThemeProvider(_a) {
9
+ var children = _a.children, theme = _a.theme;
10
+ return (0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, { theme: theme, children: children });
11
+ }
12
+ exports.ThemeProvider = ThemeProvider;
13
+ function useTheme() {
14
+ var context = (0, react_1.useContext)(themeContext);
15
+ return context;
16
+ }
17
+ exports.useTheme = useTheme;
18
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/theme/context.tsx"],"names":[],"mappings":";;;;AAAA,+BAAiD;AAEjD,uDAA0E;AAE1E,IAAM,YAAY,GAAG,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAA;AAQtC,SAAS,aAAa,CAAC,EAAoF;QAAlF,QAAQ,cAAA,EAAE,KAAK,WAAA;IACtC,OAAO,uBAAC,iCAAqB,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAyB,CAAA;AAChF,CAAC;AAQQ,sCAAa;AANtB,SAAS,QAAQ;IACf,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,YAAY,CAAC,CAAA;IAExC,OAAO,OAAO,CAAA;AAChB,CAAC;AAEuB,4BAAQ"}
@@ -0,0 +1 @@
1
+ export * from "./context.js";
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./context.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/theme/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
@@ -1,3 +1,2 @@
1
- export * from './theme/index.js';
2
1
  export * from './toast/index.js';
3
2
  export * from './route-loading/index.js';
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./theme/index.js"), exports);
18
17
  __exportStar(require("./toast/index.js"), exports);
19
18
  __exportStar(require("./route-loading/index.js"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,0CAAuB;AACvB,kDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,kDAA+B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",