infinity-forge 0.36.0 → 0.36.2

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 (109) hide show
  1. package/dist/sites/components/brands-carousel/styles.d.ts +1 -1
  2. package/dist/sites/components/counter/versions/version-01/box/styles.d.ts +1 -1
  3. package/dist/sites/components/counter/versions/version-01/styles.d.ts +1 -1
  4. package/dist/sites/components/header-link/versions/version-01/styles.d.ts +1 -1
  5. package/dist/sites/components/mvv/versions/version-01/styles.d.ts +1 -1
  6. package/dist/sites/context/configs/scripts/acept-cookies/styles.d.ts +1 -1
  7. package/dist/sites/context/configs/scripts/acept-ratedr/styles.d.ts +1 -1
  8. package/dist/sites/context/configs/scripts/whatsapp-fixed/styles.d.ts +1 -1
  9. package/dist/system/presentation/components/data/avatar/styles.d.ts +1 -1
  10. package/dist/system/presentation/components/data/buttons/sidebar-button/styles.d.ts +2 -2
  11. package/dist/system/presentation/components/data/chat/card-message/styles.d.ts +2 -2
  12. package/dist/system/presentation/components/data/chat/loader/styles.d.ts +2 -2
  13. package/dist/system/presentation/components/data/chat/styles.d.ts +2 -2
  14. package/dist/system/presentation/components/data/detail-card/styles.d.ts +2 -2
  15. package/dist/system/presentation/components/data/highlight-icon/styles.d.ts +2 -2
  16. package/dist/system/presentation/components/data/highlight-text/styles.d.ts +2 -2
  17. package/dist/system/presentation/components/data/input-search/styles.d.ts +2 -2
  18. package/dist/system/presentation/components/data/logo/styles.d.ts +1 -1
  19. package/dist/system/presentation/components/data/overlay/styles.d.ts +2 -2
  20. package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +2 -2
  21. package/dist/system/presentation/components/data/profile-infos/profile/styles.d.ts +2 -2
  22. package/dist/system/presentation/components/data/profile-infos/styles.d.ts +2 -2
  23. package/dist/system/presentation/components/data/select-workspace/styles.d.ts +1 -1
  24. package/dist/system/presentation/components/data/sign-up/styles.d.ts +2 -2
  25. package/dist/system/presentation/components/data/tab/styles.d.ts +2 -2
  26. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/styles.d.ts +2 -2
  27. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +1 -1
  28. package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +1 -1
  29. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.d.ts +2 -2
  30. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +4 -4
  31. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +1 -1
  32. package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +1 -1
  33. package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +1 -1
  34. package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +2 -2
  35. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +1 -1
  36. package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +1 -1
  37. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +2 -2
  38. package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -1
  39. package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +2 -2
  40. package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +1 -1
  41. package/dist/system/presentation/components/layout/styles.d.ts +2 -2
  42. package/dist/system/presentation/components/pages/menus/table/icon/style.d.ts +2 -2
  43. package/dist/system/presentation/context/auth/login/styles.d.ts +2 -2
  44. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/styles.d.ts +2 -2
  45. package/dist/system/presentation/hooks/ui/use-table/components/table/create/styles.d.ts +2 -2
  46. package/dist/system/presentation/hooks/ui/use-table/components/table/export/styles.d.ts +2 -2
  47. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.d.ts +2 -2
  48. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +1 -1
  49. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts +2 -2
  50. package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +6 -6
  51. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +2 -2
  52. package/dist/ui/components/accordion/styles.d.ts +1 -1
  53. package/dist/ui/components/breadcrumb/styles.d.ts +2 -2
  54. package/dist/ui/components/button/styles.d.ts +1 -1
  55. package/dist/ui/components/form/checkbox/styles.d.ts +2 -2
  56. package/dist/ui/components/form/handler/dynamic_form_handler/styles.d.ts +2 -2
  57. package/dist/ui/components/form/handler/styles.d.ts +2 -2
  58. package/dist/ui/components/form/input-control/error/styles.d.ts +2 -2
  59. package/dist/ui/components/form/input-control/label/styles.d.ts +2 -2
  60. package/dist/ui/components/form/input-control/loader-input/styles.d.ts +2 -2
  61. package/dist/ui/components/form/input-control/styles.d.ts +2 -2
  62. package/dist/ui/components/form/input-cpf-cnpj/index.js +13 -13
  63. package/dist/ui/components/form/input-cpf-cnpj/index.js.map +1 -1
  64. package/dist/ui/components/form/input-date/styles.d.ts +2 -2
  65. package/dist/ui/components/form/input-date-picker/date_picket_lib_css.d.ts +2 -2
  66. package/dist/ui/components/form/input-date-picker/styles.d.ts +2 -2
  67. package/dist/ui/components/form/input-date-range/styles.d.ts +2 -2
  68. package/dist/ui/components/form/input-file/file-card/styles.d.ts +2 -2
  69. package/dist/ui/components/form/input-file/styles.d.ts +2 -2
  70. package/dist/ui/components/form/input-password/styles.d.ts +2 -2
  71. package/dist/ui/components/form/radio/styles.d.ts +2 -2
  72. package/dist/ui/components/form/select/styles.d.ts +2 -2
  73. package/dist/ui/components/loading-screen/styles.d.ts +2 -2
  74. package/dist/ui/components/menu-mobile/components/nav-links/styles.d.ts +1 -1
  75. package/dist/ui/components/menu-mobile/styles.d.ts +1 -1
  76. package/dist/ui/components/menu-mobile/top/styles.d.ts +1 -1
  77. package/dist/ui/components/next-image/styles.d.ts +1 -1
  78. package/dist/ui/components/sidebar/styles.d.ts +2 -2
  79. package/dist/ui/contexts/toast/styles.d.ts +2 -2
  80. package/dist/ui/contexts/toast/toast-item/styles.d.ts +2 -2
  81. package/package.json +1 -1
  82. package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.d.ts +0 -2
  83. package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.js +0 -26
  84. package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.js.map +0 -1
  85. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.d.ts +0 -17
  86. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +0 -66
  87. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map +0 -1
  88. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +0 -2
  89. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js +0 -14
  90. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js.map +0 -1
  91. package/dist/system/presentation/context/system-configs/context.d.ts +0 -7
  92. package/dist/system/presentation/context/system-configs/context.js +0 -32
  93. package/dist/system/presentation/context/system-configs/context.js.map +0 -1
  94. package/dist/system/presentation/context/system-configs/index.d.ts +0 -2
  95. package/dist/system/presentation/context/system-configs/index.js +0 -19
  96. package/dist/system/presentation/context/system-configs/index.js.map +0 -1
  97. package/dist/system/presentation/context/system-configs/interfaces.d.ts +0 -4
  98. package/dist/system/presentation/context/system-configs/interfaces.js +0 -3
  99. package/dist/system/presentation/context/system-configs/interfaces.js.map +0 -1
  100. package/dist/tsconfig.tsbuildinfo +0 -1
  101. package/dist/ui/contexts/theme/context.d.ts +0 -10
  102. package/dist/ui/contexts/theme/context.js +0 -21
  103. package/dist/ui/contexts/theme/context.js.map +0 -1
  104. package/dist/ui/contexts/theme/index.d.ts +0 -2
  105. package/dist/ui/contexts/theme/index.js +0 -19
  106. package/dist/ui/contexts/theme/index.js.map +0 -1
  107. package/dist/ui/contexts/theme/interfaces.d.ts +0 -10
  108. package/dist/ui/contexts/theme/interfaces.js +0 -9
  109. package/dist/ui/contexts/theme/interfaces.js.map +0 -1
@@ -6,7 +6,7 @@ interface IInputStyleProps {
6
6
  $inputIconSize: number;
7
7
  $inputIconDirection?: 'left' | 'right';
8
8
  }
9
- export declare const InputControl: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
+ export declare const InputControl: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
10
  ref?: import("react").Ref<HTMLDivElement>;
11
- }, IInputStyleProps>>;
11
+ }, IInputStyleProps>> & string;
12
12
  export {};
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.InputCpfCnpj = void 0;
15
15
  var jsx_runtime_1 = require("react/jsx-runtime");
16
16
  var formik_1 = require("formik");
17
- var mask_1 = require("@react-input/mask");
17
+ // import { InputMask } from '@react-input/mask'
18
18
  var input_control_1 = require("../input-control/index.js");
19
19
  var react_1 = require("react");
20
20
  function InputCpfCnpj(props) {
@@ -27,17 +27,17 @@ function InputCpfCnpj(props) {
27
27
  var handleMask = function (value) {
28
28
  return props.only ? masks[props.only] : (value === null || value === void 0 ? void 0 : value.length) > 11 ? masks['cnpj'] : masks['cpf'];
29
29
  };
30
- function modify(value) {
31
- return {
32
- mask: handleMask(value),
33
- replacement: { _: /\d/ },
34
- };
35
- }
36
- var handleChange = function (event) {
37
- field.onChange(event);
38
- helpers.setValue(event.target.value);
39
- helpers.setTouched(true);
40
- };
30
+ // function modify(value: string) {
31
+ // return {
32
+ // mask: handleMask(value),
33
+ // replacement: { _: /\d/ },
34
+ // }
35
+ // }
36
+ // const handleChange = (event) => {
37
+ // field.onChange(event)
38
+ // helpers.setValue(event.target.value)
39
+ // helpers.setTouched(true)
40
+ // }
41
41
  (0, react_1.useEffect)(function () {
42
42
  if (state.initialValue) {
43
43
  ref.current.value = state.initialValue;
@@ -49,7 +49,7 @@ function InputCpfCnpj(props) {
49
49
  ref.current.value = "";
50
50
  }
51
51
  }, [field.value]);
52
- return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(mask_1.InputMask, { ref: ref, mask: handleMask(''), replacement: { _: /\d/ }, modify: modify, onMask: handleChange }) })));
52
+ return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props)));
53
53
  }
54
54
  exports.InputCpfCnpj = InputCpfCnpj;
55
55
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-cpf-cnpj/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,0CAA6C;AAE7C,kDAA+C;AAG/C,+BAAyC;AAEzC,SAAgB,YAAY,CAAC,KAAiB;IACtC,IAAA,KAA0B,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAvD,KAAK,QAAA,EAAE,KAAK,QAAA,EAAE,OAAO,QAAkC,CAAA;IAE9D,IAAM,GAAG,GAAG,IAAA,cAAM,GAAO,CAAA;IAEzB,IAAM,KAAK,GAAG;QACZ,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,oBAAoB;KAC3B,CAAA;IAED,IAAM,UAAU,GAAG,UAAC,KAAK;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,IAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAC3F,CAAC,CAAA;IAED,SAAS,MAAM,CAAC,KAAa;QAC3B,OAAO;YACL,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC;YACvB,WAAW,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE;SACzB,CAAA;IACH,CAAC;IAED,IAAM,YAAY,GAAG,UAAC,KAAK;QACzB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACpC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;IAC1B,CAAC,CAAA;IAED,IAAA,iBAAS,EAAC;QACR,IAAG,KAAK,CAAC,YAAY,EAAE,CAAC;YACtB,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAA;IAExB,IAAA,iBAAS,EAAC;QACR,IAAG,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;YACpB,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE,CAAA;QACxB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IAEjB,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,cACrB,uBAAC,gBAAS,IAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAI,IAChG,CAChB,CAAA;AACH,CAAC;AA7CD,oCA6CC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-cpf-cnpj/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,gDAAgD;AAEhD,kDAA+C;AAG/C,+BAAyC;AAEzC,SAAgB,YAAY,CAAC,KAAiB;IACtC,IAAA,KAA0B,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAvD,KAAK,QAAA,EAAE,KAAK,QAAA,EAAE,OAAO,QAAkC,CAAA;IAE9D,IAAM,GAAG,GAAG,IAAA,cAAM,GAAO,CAAA;IAEzB,IAAM,KAAK,GAAG;QACZ,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,oBAAoB;KAC3B,CAAA;IAED,IAAM,UAAU,GAAG,UAAC,KAAK;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,IAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAC3F,CAAC,CAAA;IAED,mCAAmC;IACnC,aAAa;IACb,+BAA+B;IAC/B,gCAAgC;IAChC,MAAM;IACN,IAAI;IAEJ,oCAAoC;IACpC,0BAA0B;IAC1B,yCAAyC;IACzC,6BAA6B;IAC7B,IAAI;IAEJ,IAAA,iBAAS,EAAC;QACR,IAAG,KAAK,CAAC,YAAY,EAAE,CAAC;YACtB,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAA;IAExB,IAAA,iBAAS,EAAC;QACR,IAAG,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;YACpB,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE,CAAA;QACxB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IAEjB,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,EAER,CAChB,CAAA;AACH,CAAC;AA7CD,oCA6CC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const InputDate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- export declare const InputDatePickerCSS: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ export declare const InputDatePickerCSS: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- export declare const InputDatePicker: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ export declare const InputDatePicker: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- export declare const InputDateRange: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ export declare const InputDateRange: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const FileCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const InputFile: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const InputPassword: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const InputRadio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const SelectWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const LoadingScreen: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- export declare const NavLinks: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ export declare const NavLinks: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- export declare const MenuMobile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ export declare const MenuMobile: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- export declare const Top: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ export declare const Top: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- export declare const Image: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ export declare const Image: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -6,7 +6,7 @@ interface IStyledSideBar {
6
6
  $overlay?: boolean;
7
7
  $direction?: 'left' | 'right';
8
8
  }
9
- export declare const SideBar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
9
+ export declare const SideBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
10
10
  ref?: import("react").Ref<HTMLElement>;
11
- }, IStyledSideBar>>;
11
+ }, IStyledSideBar>> & string;
12
12
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const Toast: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react/experimental" />
3
- 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"> & {
3
+ export declare const ToastItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>>;
5
+ }, never>> & string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.36.0",
3
+ "version": "0.36.2",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,2 +0,0 @@
1
- import { StylesConfig } from 'react-select';
2
- export declare const customStyles: StylesConfig;
@@ -1,26 +0,0 @@
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.customStyles = void 0;
15
- exports.customStyles = {
16
- control: function (provided, state) { return (__assign(__assign({}, provided), { minHeight: '60px' })); },
17
- menu: function (provided, state) { return (__assign(__assign({}, provided), { zIndex: '9999', padding: '5px 15px' })); },
18
- placeholder: function (provided, state) { return (__assign(__assign({}, provided), { fontSize: '14px' })); },
19
- valueContainer: function (provided, state) { return (__assign(__assign({}, provided), { minHeight: '60px', padding: '0 15px' })); },
20
- input: function (provided, state) { return (__assign(__assign({}, provided), { margin: '0px', padding: '0px', height: '60px', minHeight: '60px' })); },
21
- indicatorSeparator: function (state) { return ({
22
- display: 'none',
23
- }); },
24
- indicatorsContainer: function (provided, state) { return (__assign(__assign({}, provided), { minHeight: '60px', paddingRight: '15px' })); },
25
- };
26
- //# sourceMappingURL=custom-styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/custom-styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEa,QAAA,YAAY,GAAiB;IACxC,OAAO,EAAE,UAAC,QAAQ,EAAE,KAAK,IAAK,OAAA,uBACzB,QAAQ,KACX,SAAS,EAAE,MAAM,IACjB,EAH4B,CAG5B;IAEF,IAAI,EAAE,UAAC,QAAQ,EAAE,KAAK,IAAK,OAAA,uBACtB,QAAQ,KACX,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,UAAU,IACnB,EAJyB,CAIzB;IAEF,WAAW,EAAE,UAAC,QAAQ,EAAE,KAAK,IAAK,OAAA,uBAC7B,QAAQ,KACX,QAAQ,EAAE,MAAM,IAChB,EAHgC,CAGhC;IAEF,cAAc,EAAE,UAAC,QAAQ,EAAE,KAAK,IAAK,OAAA,uBAChC,QAAQ,KACX,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,QAAQ,IACjB,EAJmC,CAInC;IAEF,KAAK,EAAE,UAAC,QAAQ,EAAE,KAAK,IAAK,OAAA,uBACvB,QAAQ,KACX,MAAM,EAAE,KAAK,EACb,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,IACjB,EAN0B,CAM1B;IACF,kBAAkB,EAAE,UAAC,KAAK,IAAK,OAAA,CAAC;QAC9B,OAAO,EAAE,MAAM;KAChB,CAAC,EAF6B,CAE7B;IACF,mBAAmB,EAAE,UAAC,QAAQ,EAAE,KAAK,IAAK,OAAA,uBACrC,QAAQ,KACX,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,IACpB,EAJwC,CAIxC;CACH,CAAA"}
@@ -1,17 +0,0 @@
1
- type WorkSpaceItem = {
2
- label: string;
3
- value: string;
4
- img: string;
5
- subtitle?: string;
6
- };
7
- export type WorkSpace = {
8
- list: WorkSpaceItem[];
9
- onChangeWorkSpace?: (dataForm: {
10
- workspace: any;
11
- }) => void;
12
- activeWorkspace: WorkSpaceItem['value'];
13
- };
14
- export declare function SelectWorkSpace({ workspaces }: {
15
- workspaces?: WorkSpace;
16
- }): import("react/jsx-runtime").JSX.Element;
17
- export {};
@@ -1,66 +0,0 @@
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
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __rest = (this && this.__rest) || function (s, e) {
37
- var t = {};
38
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
- t[p] = s[p];
40
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
- t[p[i]] = s[p[i]];
44
- }
45
- return t;
46
- };
47
- Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.SelectWorkSpace = void 0;
49
- var jsx_runtime_1 = require("react/jsx-runtime");
50
- var system_1 = require("../../../../../../../system/index.js");
51
- var ui_1 = require("../../../../../../../ui/index.js");
52
- var S = __importStar(require("./styles.js"));
53
- var custom_styles_1 = require("./custom-styles.js");
54
- function Item(_a) {
55
- var data = _a.data, props = __rest(_a, ["data"]);
56
- return ((0, jsx_runtime_1.jsxs)("button", __assign({ className: 'item' }, props.innerProps, { children: [(data === null || data === void 0 ? void 0 : data.img) ? (0, jsx_runtime_1.jsx)(system_1.Avatar, { className: 'avatar', image: data.img }) : (0, jsx_runtime_1.jsx)("div", { className: 'circle' }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-14-regular', children: data === null || data === void 0 ? void 0 : data.label }), (data === null || data === void 0 ? void 0 : data.subtitle) && (0, jsx_runtime_1.jsx)("span", { className: 'font-12-regular subtitulo', children: data.subtitle })] })] })));
57
- }
58
- function SelectWorkSpace(_a) {
59
- var workspaces = _a.workspaces;
60
- if (!(workspaces === null || workspaces === void 0 ? void 0 : workspaces.list) || workspaces.list.length === 0) {
61
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
62
- }
63
- return ((0, jsx_runtime_1.jsx)(S.SelectWorkSpace, { children: (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { onChangeForm: { callbackResult: workspaces.onChangeWorkSpace && workspaces.onChangeWorkSpace }, initialData: { workspace: workspaces.activeWorkspace }, children: (0, jsx_runtime_1.jsx)(ui_1.Select, { name: 'workspace', menuPlacement: 'bottom', options: workspaces.list, onlyOneValue: true, customStlyes: custom_styles_1.customStyles, CustomOption: Item, isSearchable: false, value: workspaces.activeWorkspace }) }) }));
64
- }
65
- exports.SelectWorkSpace = SelectWorkSpace;
66
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,2BAA0C;AAE1C,0CAA6B;AAC7B,iDAA8C;AAE9C,SAAS,IAAI,CAAC,EAAkB;IAAhB,IAAA,IAAI,UAAA,EAAK,KAAK,cAAhB,QAAkB,CAAF;IAC5B,OAAO,CACL,6CAAQ,SAAS,EAAC,MAAM,IAAK,KAAK,CAAC,UAAU,eAC1C,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,EAAC,CAAC,CAAC,uBAAC,eAAM,IAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAI,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,QAAQ,GAAG,EAExF,4CACE,iCAAM,SAAS,EAAC,iBAAiB,YAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,GAAQ,EAErD,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,KAAI,iCAAM,SAAS,EAAC,2BAA2B,YAAE,IAAI,CAAC,QAAQ,GAAQ,IACjF,KACC,CACV,CAAA;AACH,CAAC;AAeD,SAAgB,eAAe,CAAC,EAA0C;QAAxC,UAAU,gBAAA;IAC1C,IAAI,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAA,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,OAAO,kDAAK,CAAA;IACd,CAAC;IAED,OAAO,CACL,uBAAC,CAAC,CAAC,eAAe,cAChB,uBAAC,gBAAW,IACV,YAAY,EAAE,EAAE,cAAc,EAAE,UAAU,CAAC,iBAAiB,IAAI,UAAU,CAAC,iBAAiB,EAAE,EAC9F,WAAW,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,YAEtD,uBAAC,WAAM,IACL,IAAI,EAAC,WAAW,EAChB,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,UAAU,CAAC,IAAI,EACxB,YAAY,QACZ,YAAY,EAAE,4BAAY,EAC1B,YAAY,EAAE,IAAI,EAClB,YAAY,EAAE,KAAK,EACnB,KAAK,EAAE,UAAU,CAAC,eAAe,GACjC,GACU,GACI,CACrB,CAAA;AACH,CAAC;AAxBD,0CAwBC"}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SelectWorkSpace: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,14 +0,0 @@
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.SelectWorkSpace = void 0;
11
- var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.SelectWorkSpace = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n padding: 20px 15px 0 0;\n\n [class*='-DummyInput'],\n [id*='-input'],\n #react-select-2-input {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n > div {\n display: flex;\n flex-direction: column;\n text-align: start;\n\n > span {\n text-overflow: ellipsis;\n overflow-x: hidden;\n white-space: nowrap;\n max-width: 139px;\n }\n\n .subtitulo {\n color: #828282;\n }\n }\n\n .circle {\n width: 36px;\n height: 36px;\n min-width: 36px;\n min-height: 36px;\n border-radius: 100rem;\n background-color: #444444;\n }\n\n .avatar {\n width: 36px;\n height: 36px;\n min-width: 36px;\n min-height: 36px;\n\n img {\n object-fit: cover !important;\n }\n }\n }\n\n .item + .item {\n margin-top: 10px;\n }\n"], ["\n width: 100%;\n padding: 20px 15px 0 0;\n\n [class*='-DummyInput'],\n [id*='-input'],\n #react-select-2-input {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n }\n\n .item {\n background: none;\n padding: 0;\n border: 0;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n gap: 10px;\n cursor: pointer;\n\n > div {\n display: flex;\n flex-direction: column;\n text-align: start;\n\n > span {\n text-overflow: ellipsis;\n overflow-x: hidden;\n white-space: nowrap;\n max-width: 139px;\n }\n\n .subtitulo {\n color: #828282;\n }\n }\n\n .circle {\n width: 36px;\n height: 36px;\n min-width: 36px;\n min-height: 36px;\n border-radius: 100rem;\n background-color: #444444;\n }\n\n .avatar {\n width: 36px;\n height: 36px;\n min-width: 36px;\n min-height: 36px;\n\n img {\n object-fit: cover !important;\n }\n }\n }\n\n .item + .item {\n margin-top: 10px;\n }\n"])));
13
- var templateObject_1;
14
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/select-workspace/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,2rCAAA,wnCAiExC,KAAA"}
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { SystemConfigContextType } from './interfaces.js';
3
- declare const useSystemConfig: () => SystemConfigContextType;
4
- declare const SystemConfigProvider: ({ children }: {
5
- children: ReactNode;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export { useSystemConfig, SystemConfigProvider };
@@ -1,32 +0,0 @@
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.SystemConfigProvider = exports.useSystemConfig = void 0;
15
- var jsx_runtime_1 = require("react/jsx-runtime");
16
- // src/contexts/SystemConfigContext.tsx
17
- var react_1 = require("react");
18
- var ui_1 = require("../../../../ui/index.js");
19
- var defaultConfig = {
20
- setConfig: function () { },
21
- };
22
- var SystemConfigContext = (0, react_1.createContext)(defaultConfig);
23
- var useSystemConfig = function () { return (0, react_1.useContext)(SystemConfigContext); };
24
- exports.useSystemConfig = useSystemConfig;
25
- var SystemConfigProvider = function (_a) {
26
- var children = _a.children;
27
- var _b = (0, react_1.useState)({}), config = _b[0], setConfig = _b[1];
28
- var value = __assign(__assign({}, config), { setConfig: setConfig });
29
- return ((0, jsx_runtime_1.jsx)(SystemConfigContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(ui_1.ThemeProvider, { children: children }) }));
30
- };
31
- exports.SystemConfigProvider = SystemConfigProvider;
32
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/system-configs/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAuC;AACvC,+BAAsE;AAEtE,2BAAoC;AAIpC,IAAM,aAAa,GAA4B;IAC7C,SAAS,EAAE,cAAO,CAAC;CACpB,CAAA;AAED,IAAM,mBAAmB,GAAG,IAAA,qBAAa,EAA0B,aAAa,CAAC,CAAA;AAEjF,IAAM,eAAe,GAAG,cAAM,OAAA,IAAA,kBAAU,EAAC,mBAAmB,CAAC,EAA/B,CAA+B,CAAA;AAiBpD,0CAAe;AAfxB,IAAM,oBAAoB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAChC,IAAA,KAAsB,IAAA,gBAAQ,EAAe,EAAE,CAAC,EAA/C,MAAM,QAAA,EAAE,SAAS,QAA8B,CAAA;IAEtD,IAAM,KAAK,yBACN,MAAM,KACT,SAAS,WAAA,GACV,CAAA;IAED,OAAO,CACL,uBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACxC,uBAAC,kBAAa,cAAE,QAAQ,GAAiB,GACZ,CAChC,CAAA;AACH,CAAC,CAAA;AAEyB,oDAAoB"}
@@ -1,2 +0,0 @@
1
- export * from './context.js';
2
- export * from './interfaces.js';
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/system-configs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B"}
@@ -1,4 +0,0 @@
1
- export type SystemConfig = {};
2
- export interface SystemConfigContextType extends SystemConfig {
3
- setConfig: (config: SystemConfig) => void;
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/system-configs/interfaces.ts"],"names":[],"mappings":""}