infinity-forge 0.32.4 → 0.32.6

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.
Files changed (122) hide show
  1. package/dist/sites/components/brands-carousel/styles.d.ts +0 -1
  2. package/dist/sites/components/counter/versions/version-01/box/styles.d.ts +0 -1
  3. package/dist/sites/components/counter/versions/version-01/styles.d.ts +0 -1
  4. package/dist/sites/components/header-link/versions/version-01/styles.d.ts +0 -1
  5. package/dist/sites/components/mvv/versions/version-01/styles.d.ts +0 -1
  6. package/dist/sites/context/configs/interfaces.d.ts +0 -1
  7. package/dist/sites/context/configs/scripts/acept-cookies/styles.d.ts +0 -1
  8. package/dist/sites/context/configs/scripts/acept-ratedr/styles.d.ts +0 -1
  9. package/dist/sites/context/configs/scripts/whatsapp-fixed/styles.d.ts +0 -1
  10. package/dist/system/container/main.d.ts +1 -1
  11. package/dist/system/presentation/components/data/chat/card-message/styles.d.ts +0 -1
  12. package/dist/system/presentation/components/data/chat/loader/styles.d.ts +0 -1
  13. package/dist/system/presentation/components/data/chat/styles.d.ts +0 -1
  14. package/dist/system/presentation/components/data/detail-card/styles.d.ts +0 -1
  15. package/dist/system/presentation/components/data/highlight-icon/styles.d.ts +0 -1
  16. package/dist/system/presentation/components/data/highlight-text/styles.d.ts +0 -1
  17. package/dist/system/presentation/components/data/input-search/styles.d.ts +0 -1
  18. package/dist/system/presentation/components/data/logo/styles.d.ts +0 -1
  19. package/dist/system/presentation/components/data/overlay/styles.d.ts +0 -1
  20. package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +0 -1
  21. package/dist/system/presentation/components/data/profile-infos/profile/styles.d.ts +0 -1
  22. package/dist/system/presentation/components/data/profile-infos/styles.d.ts +0 -1
  23. package/dist/system/presentation/components/data/select-workspace/index.js +1 -1
  24. package/dist/system/presentation/components/data/select-workspace/index.js.map +1 -1
  25. package/dist/system/presentation/components/data/select-workspace/styles.d.ts +0 -1
  26. package/dist/system/presentation/components/data/select-workspace/styles.js +1 -1
  27. package/dist/system/presentation/components/data/select-workspace/styles.js.map +1 -1
  28. package/dist/system/presentation/components/data/sign-up/styles.d.ts +0 -1
  29. package/dist/system/presentation/components/data/tab/styles.d.ts +0 -1
  30. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +0 -1
  31. package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +0 -1
  32. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.d.ts +0 -1
  33. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +1 -1
  34. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +0 -1
  35. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +0 -1
  36. package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +0 -1
  37. package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +0 -1
  38. package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +0 -1
  39. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +0 -1
  40. package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +0 -1
  41. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +0 -1
  42. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.js +1 -1
  43. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.js.map +1 -1
  44. package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
  45. package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +0 -1
  46. package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +0 -1
  47. package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.d.ts +2 -0
  48. package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.js +26 -0
  49. package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.js.map +1 -0
  50. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.d.ts +17 -0
  51. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +66 -0
  52. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map +1 -0
  53. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +2 -0
  54. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js +14 -0
  55. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js.map +1 -0
  56. package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +0 -1
  57. package/dist/system/presentation/components/layout/styles.d.ts +0 -1
  58. package/dist/system/presentation/components/pages/menus/table/icon/style.d.ts +0 -1
  59. package/dist/system/presentation/context/auth/context.js +1 -1
  60. package/dist/system/presentation/context/auth/login/styles.d.ts +0 -1
  61. package/dist/system/presentation/context/system-configs/context.d.ts +7 -0
  62. package/dist/system/presentation/context/system-configs/context.js +32 -0
  63. package/dist/system/presentation/context/system-configs/context.js.map +1 -0
  64. package/dist/system/presentation/context/system-configs/index.d.ts +2 -0
  65. package/dist/system/presentation/context/system-configs/index.js +19 -0
  66. package/dist/system/presentation/context/system-configs/index.js.map +1 -0
  67. package/dist/system/presentation/context/system-configs/interfaces.d.ts +4 -0
  68. package/dist/system/presentation/context/system-configs/interfaces.js +3 -0
  69. package/dist/system/presentation/context/system-configs/interfaces.js.map +1 -0
  70. package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
  71. package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +1 -1
  72. package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +1 -1
  73. package/dist/system/presentation/hooks/ui/use-table/components/table/create/styles.d.ts +0 -1
  74. package/dist/system/presentation/hooks/ui/use-table/components/table/export/styles.d.ts +0 -1
  75. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.d.ts +0 -1
  76. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +0 -1
  77. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts +0 -1
  78. package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +0 -1
  79. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +0 -1
  80. package/dist/tsconfig.tsbuildinfo +1 -0
  81. package/dist/ui/components/accordion/styles.d.ts +0 -1
  82. package/dist/ui/components/breadcrumb/styles.d.ts +0 -1
  83. package/dist/ui/components/button/styles.d.ts +0 -1
  84. package/dist/ui/components/form/checkbox/styles.d.ts +0 -1
  85. package/dist/ui/components/form/handler/dynamic_form_handler/component.js +1 -1
  86. package/dist/ui/components/form/handler/dynamic_form_handler/styles.d.ts +0 -1
  87. package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
  88. package/dist/ui/components/form/handler/form-handler/index.js +8 -1
  89. package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
  90. package/dist/ui/components/form/handler/interfaces.d.ts +1 -0
  91. package/dist/ui/components/form/handler/styles.d.ts +0 -1
  92. package/dist/ui/components/form/input-control/error/styles.d.ts +0 -1
  93. package/dist/ui/components/form/input-control/label/styles.d.ts +0 -1
  94. package/dist/ui/components/form/input-control/loader-input/styles.d.ts +0 -1
  95. package/dist/ui/components/form/input-control/styles.d.ts +0 -1
  96. package/dist/ui/components/form/input-date/styles.d.ts +0 -1
  97. package/dist/ui/components/form/input-file/file-card/styles.d.ts +0 -1
  98. package/dist/ui/components/form/input-file/styles.d.ts +0 -1
  99. package/dist/ui/components/form/input-password/styles.d.ts +0 -1
  100. package/dist/ui/components/form/radio/styles.d.ts +0 -1
  101. package/dist/ui/components/form/select/styles.d.ts +0 -1
  102. package/dist/ui/components/loading-screen/styles.d.ts +0 -1
  103. package/dist/ui/components/menu-mobile/components/nav-links/styles.d.ts +0 -1
  104. package/dist/ui/components/menu-mobile/styles.d.ts +0 -1
  105. package/dist/ui/components/menu-mobile/top/styles.d.ts +0 -1
  106. package/dist/ui/components/next-image/styles.d.ts +0 -1
  107. package/dist/ui/components/sidebar/styles.d.ts +0 -1
  108. package/dist/ui/contexts/theme/context.d.ts +10 -0
  109. package/dist/ui/contexts/theme/context.js +21 -0
  110. package/dist/ui/contexts/theme/context.js.map +1 -0
  111. package/dist/ui/contexts/theme/index.d.ts +2 -0
  112. package/dist/ui/contexts/theme/index.js +19 -0
  113. package/dist/ui/contexts/theme/index.js.map +1 -0
  114. package/dist/ui/contexts/theme/interfaces.d.ts +10 -0
  115. package/dist/ui/contexts/theme/interfaces.js +9 -0
  116. package/dist/ui/contexts/theme/interfaces.js.map +1 -0
  117. package/dist/ui/contexts/toast/styles.d.ts +0 -1
  118. package/dist/ui/contexts/toast/toast-item/styles.d.ts +0 -1
  119. package/dist/ui/utils/file/load-file.js +1 -1
  120. package/dist/ui/utils/file/upload-file.js +5 -5
  121. package/dist/ui/utils/file/upload-file.js.map +1 -1
  122. package/package.json +1 -1
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Accordion: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Breadcrumb: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  interface ButtonProps {
4
3
  $loading?: boolean;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const InputCheckbox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -81,8 +81,8 @@ function DynamicFormHandler(props) {
81
81
  var _this = this;
82
82
  var queryKEY = props.getDetails && props.getDetails.key && props.getDetails.key(props.tableItem);
83
83
  function fetcher() {
84
+ var _a;
84
85
  return __awaiter(this, void 0, void 0, function () {
85
- var _a;
86
86
  return __generator(this, function (_b) {
87
87
  return [2 /*return*/, (_a = props === null || props === void 0 ? void 0 : props.getDetails) === null || _a === void 0 ? void 0 : _a.fetcher(props.tableItem)];
88
88
  });
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const DynamiFormHandler: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,2 +1,2 @@
1
1
  import { IFormHandler } from '../interfaces.js';
2
- export default function FormElement({ button, schema, children, onSucess, customSubmit, onChangeForm, customAction, cleanFieldsOnSubmit, }: IFormHandler): import("react/jsx-runtime").JSX.Element;
2
+ export default function FormElement({ button, schema, children, onSucess, debugMode, customSubmit, onChangeForm, customAction, cleanFieldsOnSubmit, }: IFormHandler): import("react/jsx-runtime").JSX.Element;
@@ -88,7 +88,7 @@ var system_1 = require("../../../../../system/index.js");
88
88
  var custom_submit_1 = require("../custom-submit/index.js");
89
89
  var S = __importStar(require("../styles.js"));
90
90
  function FormElement(_a) {
91
- var button = _a.button, schema = _a.schema, children = _a.children, onSucess = _a.onSucess, customSubmit = _a.customSubmit, onChangeForm = _a.onChangeForm, customAction = _a.customAction, _b = _a.cleanFieldsOnSubmit, cleanFieldsOnSubmit = _b === void 0 ? true : _b;
91
+ var button = _a.button, schema = _a.schema, children = _a.children, onSucess = _a.onSucess, debugMode = _a.debugMode, customSubmit = _a.customSubmit, onChangeForm = _a.onChangeForm, customAction = _a.customAction, _b = _a.cleanFieldsOnSubmit, cleanFieldsOnSubmit = _b === void 0 ? true : _b;
92
92
  var _c = (0, react_1.useState)({ state: '', message: '' }), stateForm = _c[0], setStateForm = _c[1];
93
93
  var _d = (0, formik_1.useFormikContext)(), values = _d.values, setErrors = _d.setErrors, setFieldError = _d.setFieldError, setFieldValue = _d.setFieldValue;
94
94
  function onSubmit(action) {
@@ -98,6 +98,9 @@ function FormElement(_a) {
98
98
  switch (_c.label) {
99
99
  case 0:
100
100
  _c.trys.push([0, 5, 6, 7]);
101
+ if (debugMode) {
102
+ console.log("values", values);
103
+ }
101
104
  setErrors({});
102
105
  setStateForm({ state: 'loading', message: '' });
103
106
  schemaObject = schema && yup.object().shape(schema);
@@ -129,6 +132,10 @@ function FormElement(_a) {
129
132
  return [3 /*break*/, 7];
130
133
  case 5:
131
134
  err_1 = _c.sent();
135
+ if (debugMode) {
136
+ console.log("error", err_1);
137
+ console.log("instanceoferror", typeof err_1);
138
+ }
132
139
  if (err_1 instanceof yup.ValidationError) {
133
140
  errors_1 = err_1.inner.reduce(function (reducer, error) {
134
141
  if (reducer && Object.keys(reducer).find(function (r) { return r === error.path; })) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/form-handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,uCAA0B;AAC1B,iCAA+C;AAE/C,2BAA6B;AAC7B,mCAA0E;AAE1E,kDAAyE;AAIzE,2CAA8B;AAE9B,SAAwB,WAAW,CAAC,EASrB;QARb,MAAM,YAAA,EACN,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,YAAY,kBAAA,EACZ,YAAY,kBAAA,EACZ,2BAA0B,EAA1B,mBAA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,SAAS,EAAC,aAAa,aACzB,YAAY,IAAI,uBAAC,YAAY,CAAC,SAAS,eAAK,CAAC,YAAY,CAAC,KAAK,IAAI,EAAE,CAAC,IAAE,aAAa,EAAE,aAAa,IAAI,EAExG,MAAM,IAAI,CACT,uBAAC,WAAM,eAAK,MAAM,IAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,YAAY,EAAE,EAAd,CAAc,EAAE,OAAO,EAAE,SAAS,CAAC,KAAK,KAAK,SAAS,IAAI,CAC5G,EAEA,YAAY;4BACX,YAAY,CAAC,MAAM,GAAG,CAAC;4BACvB,YAAY,CAAC,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK,IAAK,OAAA,CAClC,uBAAC,kCAAkB,eAAiB,MAAM,IAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,KAA/D,KAAK,CAA8D,CAC7F,EAFmC,CAEnC,CAAC,IACA,IACQ,GACX,CACR,CAAA;AACH,CAAC;AAtID,8BAsIC"}
@@ -28,4 +28,5 @@ export interface IFormHandler {
28
28
  };
29
29
  customSubmit?: ICustomSubmitProps[];
30
30
  cleanFieldsOnSubmit?: boolean;
31
+ debugMode?: boolean;
31
32
  }
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const FormHandler: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const ErrorMessage: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Label: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const LoaderInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  interface IInputStyleProps {
4
3
  $error?: boolean;
5
4
  $loading?: boolean;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const InputDate: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const FileCard: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const InputFile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const InputPassword: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const InputRadio: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const SelectWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const LoadingScreen: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const NavLinks: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const MenuMobile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Top: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Image: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  interface IStyledSideBar {
4
3
  $open: boolean;
5
4
  $maxWidth: string;
@@ -0,0 +1,10 @@
1
+ import { ITheme } from './interfaces.js';
2
+ declare module 'styled-components' {
3
+ interface DefaultTheme extends ITheme {
4
+ }
5
+ }
6
+ declare function ThemeProvider({ children }: {
7
+ children: any;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function useTheme(): {};
10
+ export { ThemeProvider, useTheme };
@@ -0,0 +1,21 @@
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 interfaces_1 = require("./interfaces.js");
8
+ var themeContext = (0, react_1.createContext)({});
9
+ function ThemeProvider(_a) {
10
+ var _b;
11
+ var children = _a.children;
12
+ var envTheme = JSON.parse(JSON.stringify((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.theme) || JSON.stringify(interfaces_1.theme));
13
+ return (0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, { theme: envTheme, children: children });
14
+ }
15
+ exports.ThemeProvider = ThemeProvider;
16
+ function useTheme() {
17
+ var context = (0, react_1.useContext)(themeContext);
18
+ return context;
19
+ }
20
+ exports.useTheme = useTheme;
21
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/theme/context.tsx"],"names":[],"mappings":";;;;AAAA,+BAAiD;AAEjD,uDAA0E;AAE1E,2CAA4C;AAM5C,IAAM,YAAY,GAAG,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAA;AAEtC,SAAS,aAAa,CAAC,EAAY;;QAAV,QAAQ,cAAA;IAC/B,IAAM,QAAQ,GAAW,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,KAAK,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,kBAAK,CAAC,CAAC,CAAA;IAEjG,OAAO,uBAAC,iCAAqB,IAAC,KAAK,EAAE,QAAQ,YAAG,QAAQ,GAAyB,CAAA;AACnF,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,2 @@
1
+ export * from "./context.js";
2
+ export * from "./interfaces.js";
@@ -0,0 +1,19 @@
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
+ __exportStar(require("./interfaces.js"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/contexts/theme/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B"}
@@ -0,0 +1,10 @@
1
+ type ITheme = {
2
+ primaryColor: string;
3
+ secondaryColor: string;
4
+ darkColor: string;
5
+ };
6
+ interface IThemeStyledComponentProps {
7
+ theme?: ITheme;
8
+ }
9
+ export declare const theme: ITheme;
10
+ export type { ITheme, IThemeStyledComponentProps };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.theme = void 0;
4
+ exports.theme = {
5
+ primaryColor: '#252235',
6
+ secondaryColor: '#2C68DF',
7
+ darkColor: '#2B2B2B',
8
+ };
9
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/ui/contexts/theme/interfaces.ts"],"names":[],"mappings":";;;AAUa,QAAA,KAAK,GAAW;IAC3B,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,SAAS;IACzB,SAAS,EAAE,SAAS;CACrB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Toast: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const ToastItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -43,9 +43,9 @@ exports.loadFile = void 0;
43
43
  var axios_1 = __importDefault(require("axios"));
44
44
  var system_1 = require("../../../system/index.js");
45
45
  function loadFile(data) {
46
+ var _a;
46
47
  return __awaiter(this, void 0, void 0, function () {
47
48
  var token, response, type, blob, url, link;
48
- var _a;
49
49
  return __generator(this, function (_b) {
50
50
  switch (_b.label) {
51
51
  case 0: return [4 /*yield*/, ((_a = system_1.container.get(system_1.InfraTypes.storage).get('token')) === null || _a === void 0 ? void 0 : _a.value)];
@@ -39,11 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.uploadFile = void 0;
40
40
  var system_1 = require("../../../system/index.js");
41
41
  function uploadFile(_a) {
42
- return __awaiter(this, arguments, void 0, function (_b) {
42
+ var files = _a.files;
43
+ return __awaiter(this, void 0, void 0, function () {
43
44
  var filesToArray, formData, response;
44
- var files = _b.files;
45
- return __generator(this, function (_c) {
46
- switch (_c.label) {
45
+ return __generator(this, function (_b) {
46
+ switch (_b.label) {
47
47
  case 0:
48
48
  if (!files || files.length === 0) {
49
49
  return [2 /*return*/, []];
@@ -55,7 +55,7 @@ function uploadFile(_a) {
55
55
  });
56
56
  return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteFile).upload(formData)];
57
57
  case 1:
58
- response = _c.sent();
58
+ response = _b.sent();
59
59
  return [2 /*return*/, response.items];
60
60
  }
61
61
  });
@@ -1 +1 @@
1
- {"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/upload-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAuD;AAEvD,SAAsB,UAAU;wDAAC,EAA8B;;YAA5B,KAAK,WAAA;;;;oBACtC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACjC,sBAAO,EAAE,EAAA;oBACX,CAAC;oBAEK,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAElC,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;oBAE7B,YAAY,CAAC,OAAO,CAAC,UAAC,IAAI;wBACxB,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;oBAChC,CAAC,CAAC,CAAA;oBAEe,qBAAM,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAA;;oBAA7E,QAAQ,GAAG,SAAkE;oBAEnF,sBAAO,QAAQ,CAAC,KAAK,EAAA;;;;CACtB;AAhBD,gCAgBC"}
1
+ {"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/upload-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAuD;AAEvD,SAAsB,UAAU,CAAC,EAA8B;QAA5B,KAAK,WAAA;;;;;;oBACtC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACjC,sBAAO,EAAE,EAAA;oBACX,CAAC;oBAEK,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAElC,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;oBAE7B,YAAY,CAAC,OAAO,CAAC,UAAC,IAAI;wBACxB,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;oBAChC,CAAC,CAAC,CAAA;oBAEe,qBAAM,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAA;;oBAA7E,QAAQ,GAAG,SAAkE;oBAEnF,sBAAO,QAAQ,CAAC,KAAK,EAAA;;;;CACtB;AAhBD,gCAgBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.32.4",
3
+ "version": "0.32.6",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",