@m4l/components 0.1.62 → 0.1.64

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 (217) hide show
  1. package/@types/export.d.ts +45 -8
  2. package/components/AccountPopover/AccountPopover.d.ts +2 -0
  3. package/components/AccountPopover/classes/constants.d.ts +1 -0
  4. package/components/AccountPopover/classes/index.d.ts +7 -0
  5. package/components/AccountPopover/classes/types.d.ts +5 -0
  6. package/components/AccountPopover/index.d.ts +2 -0
  7. package/components/AccountPopover/subcomponents/PopOver/index.d.ts +2 -0
  8. package/components/AccountPopover/subcomponents/PopOver/types.d.ts +9 -0
  9. package/components/AccountPopover/types.d.ts +28 -0
  10. package/components/AppBar/AppBar.d.ts +2 -0
  11. package/components/AppBar/classes/constants.d.ts +1 -0
  12. package/components/AppBar/classes/index.d.ts +6 -0
  13. package/components/AppBar/classes/types.d.ts +4 -0
  14. package/components/AppBar/index.d.ts +1 -0
  15. package/components/AppBar/subcomponents/MyAvatar/createAvatar.d.ts +4 -0
  16. package/components/AppBar/subcomponents/MyAvatar/index.d.ts +2 -0
  17. package/components/AppBar/tests/constants.d.ts +1 -0
  18. package/components/AppBar/tests/utils.d.ts +2 -0
  19. package/components/AppBar/types.d.ts +9 -0
  20. package/components/CommonActions/components/ActionCancel/{index.a81752ef.js → index.2eb2c1e1.js} +1 -1
  21. package/components/CommonActions/components/ActionCancel/index.d.ts +2 -2
  22. package/components/CommonActions/components/ActionFormCancel/{index.2124a98a.js → index.2864d574.js} +16 -17
  23. package/components/CommonActions/components/ActionFormIntro/index.d.ts +2 -2
  24. package/components/CommonActions/components/ActionFormIntro/{index.ca4d2674.js → index.e7f83ddd.js} +1 -1
  25. package/components/CommonActions/components/ActionIntro/{index.3f75a205.js → index.0d138cb3.js} +2 -2
  26. package/components/CommonActions/components/ActionIntro/index.d.ts +2 -2
  27. package/components/CommonActions/components/Actions/{index.6eb24c0b.js → index.433cd345.js} +17 -15
  28. package/components/DataGrid/{index.58f35158.js → index.42521a55.js} +24 -22
  29. package/components/DynamicFilter/{index.10f901c6.js → index.442bda79.js} +38 -37
  30. package/components/HelperText/index.3c07ca2a.js +70 -0
  31. package/components/HelperText/index.d.ts +10 -0
  32. package/components/HelperText/types.d.ts +8 -0
  33. package/components/HelperText/utils/Clases/constant.d.ts +1 -0
  34. package/components/HelperText/utils/Clases/index.d.ts +7 -0
  35. package/components/HelperText/utils/Clases/types.d.ts +7 -0
  36. package/components/Icon/classes/index.d.ts +1 -1
  37. package/components/Icon/classes/types.d.ts +3 -8
  38. package/components/Icon/index.0f9b360e.js +200 -0
  39. package/components/Icon/tests/constants.d.ts +1 -0
  40. package/components/Icon/tests/utils.d.ts +2 -0
  41. package/components/Icon/types.d.ts +3 -4
  42. package/components/Image/{index.aa24e982.js → index.1a9c0327.js} +124 -56
  43. package/components/Image/subcomponents/Skeleton/types.d.ts +2 -0
  44. package/components/Image/tests/constants.d.ts +1 -0
  45. package/components/Image/tests/utils.d.ts +2 -0
  46. package/components/Image/types.d.ts +9 -2
  47. package/components/Image/utils/classes/types.d.ts +1 -0
  48. package/components/Image/utils/getRatioValues.d.ts +5 -0
  49. package/components/LanguagePopover/classes/types.d.ts +1 -0
  50. package/components/LanguagePopover/{index.df9b47a6.js → index.68de7176.js} +49 -25
  51. package/components/LanguagePopover/tests/constants.d.ts +1 -0
  52. package/components/LanguagePopover/tests/utils.d.ts +2 -0
  53. package/components/ModalDialog/{index.dc7ebe06.js → index.3efe049b.js} +5 -5
  54. package/components/NavLink/NavLink.d.ts +2 -0
  55. package/components/NavLink/classes/constant.d.ts +1 -0
  56. package/components/NavLink/classes/index.d.ts +6 -0
  57. package/components/NavLink/classes/types.d.ts +4 -0
  58. package/components/NavLink/index.ae9f1cc9.js +74 -0
  59. package/components/NavLink/index.d.ts +1 -0
  60. package/components/NavLink/tests/constants.d.ts +1 -0
  61. package/components/NavLink/tests/utils.d.ts +2 -0
  62. package/components/NavLink/types.d.ts +5 -0
  63. package/components/NoItemSelected/{index.9636ec8a.js → index.7cfd7613.js} +2 -4
  64. package/components/ObjectLogs/{index.38c2ad18.js → index.b50726fb.js} +20 -18
  65. package/components/PaperForm/{index.3cdac885.js → index.44bf4469.js} +1 -1
  66. package/components/Period/{index.796b3af4.js → index.99feb99e.js} +18 -17
  67. package/components/Resizeable/{index.04fa8de5.js → index.b5d42efb.js} +1 -1
  68. package/components/ScrollBar/{index.b77feabd.js → index.bbe48f4d.js} +7 -2
  69. package/components/SideBar/SideBar.d.ts +2 -0
  70. package/components/SideBar/classes/constants.d.ts +1 -0
  71. package/components/SideBar/classes/index.d.ts +37 -0
  72. package/components/SideBar/classes/types.d.ts +37 -0
  73. package/components/SideBar/context/sideBarContext/index.d.ts +5 -0
  74. package/components/SideBar/context/sideBarContext/types.d.ts +9 -0
  75. package/components/SideBar/hooks/useSideBar/index.d.ts +2 -0
  76. package/components/SideBar/index.011880b6.js +1010 -0
  77. package/components/SideBar/index.d.ts +2 -0
  78. package/components/SideBar/subcomponents/ContentDesktop/index.d.ts +1 -0
  79. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +6 -0
  80. package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -0
  81. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.d.ts +2 -0
  82. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/index.d.ts +2 -0
  83. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/types.d.ts +3 -0
  84. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index.d.ts +2 -0
  85. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index.d.ts +2 -0
  86. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/type.d.ts +9 -0
  87. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +14 -0
  88. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index.d.ts +2 -0
  89. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index.d.ts +2 -0
  90. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index.d.ts +2 -0
  91. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/types.d.ts +7 -0
  92. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/types.d.ts +13 -0
  93. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/type.d.ts +12 -0
  94. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/types.d.ts +13 -0
  95. package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/index.d.ts +1 -0
  96. package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/types.d.ts +3 -0
  97. package/components/SideBar/subcomponents/ContentGroups/type.d.ts +7 -0
  98. package/components/SideBar/subcomponents/ContentMobile/index.d.ts +1 -0
  99. package/components/SideBar/tests/constants.d.ts +5 -0
  100. package/components/SideBar/tests/utils.d.ts +2 -0
  101. package/components/SideBar/types.d.ts +29 -0
  102. package/components/areas/components/AreasAdmin/{index.645bd2c7.js → index.51e28f63.js} +11 -10
  103. package/components/areas/components/AreasContainer/{index.3e74c849.js → index.1e5e6e91.js} +3 -3
  104. package/components/areas/components/GridLayout/{index.50810712.js → index.5bf8d5e4.js} +5 -5
  105. package/components/areas/components/Window/{index.8040dbe4.js → index.416a874f.js} +49 -49
  106. package/components/areas/components/WindowPopUp/{index.4514046e.js → index.f053fca7.js} +45 -42
  107. package/components/areas/components/{index.9f62ca8e.js → index.eace295a.js} +10 -10
  108. package/components/areas/contexts/AreaContext/{index.368adb8d.js → index.7890e58d.js} +1 -1
  109. package/components/areas/contexts/AreasContext/{index.f3d6e728.js → index.0792a8d1.js} +1 -1
  110. package/components/areas/contexts/{index.3623b460.js → index.2a915acf.js} +1 -1
  111. package/components/areas/hooks/{index.18982960.js → index.f4d78492.js} +1 -1
  112. package/components/areas/hooks/useArea/{index.dab7ce20.js → index.d6263051.js} +2 -2
  113. package/components/areas/index.8fca0f8f.js +20 -0
  114. package/components/formatters/BooleanFormatter/{index.bf947220.js → index.cd00c8e1.js} +2 -3
  115. package/components/formatters/{index.acd3dcea.js → index.deae4701.js} +2 -3
  116. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +2 -0
  117. package/components/hook-form/RHFAutocomplete/classes/constant.d.ts +1 -0
  118. package/components/hook-form/RHFAutocomplete/classes/index.d.ts +10 -0
  119. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +15 -0
  120. package/components/hook-form/RHFAutocomplete/index.083e23c1.js +400 -0
  121. package/components/hook-form/RHFAutocomplete/index.d.ts +1 -2
  122. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
  123. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +2 -0
  124. package/components/hook-form/RHFAutocomplete/test/constants.d.ts +1 -0
  125. package/components/hook-form/RHFAutocomplete/test/utils.d.ts +2 -0
  126. package/components/hook-form/RHFAutocomplete/types.d.ts +9 -0
  127. package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +7 -0
  128. package/components/hook-form/RHFAutocompleteAsync/classes/constant.d.ts +1 -0
  129. package/components/hook-form/RHFAutocompleteAsync/classes/index.d.ts +6 -0
  130. package/components/hook-form/RHFAutocompleteAsync/classes/types.d.ts +4 -0
  131. package/components/hook-form/RHFAutocompleteAsync/index.ba751be9.js +156 -0
  132. package/components/hook-form/RHFAutocompleteAsync/tests/constants.d.ts +1 -0
  133. package/components/hook-form/RHFAutocompleteAsync/tests/utils.d.ts +2 -0
  134. package/components/hook-form/RHFCheckbox/classes/index.d.ts +3 -1
  135. package/components/hook-form/RHFCheckbox/classes/types.d.ts +4 -0
  136. package/components/hook-form/RHFCheckbox/index.c19393b1.js +152 -0
  137. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +1 -0
  138. package/components/hook-form/RHFCheckbox/test/constants.d.ts +4 -0
  139. package/components/hook-form/RHFCheckbox/test/utils.d.ts +2 -0
  140. package/components/hook-form/RHFCheckbox/types.d.ts +1 -0
  141. package/components/hook-form/RHFPeriod/{index.c4944f9c.js → index.c0a80aeb.js} +3 -3
  142. package/components/hook-form/RHFTextField/RHFTextField.d.ts +1 -1
  143. package/components/hook-form/RHFTextField/classes/index.d.ts +3 -1
  144. package/components/hook-form/RHFTextField/classes/types.d.ts +9 -3
  145. package/components/hook-form/RHFTextField/index.97485ff2.js +341 -0
  146. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +2 -2
  147. package/components/hook-form/RHFTextField/tests/{contants.d.ts → constants.d.ts} +1 -0
  148. package/components/hook-form/RHFTextField/tests/utils.d.ts +2 -0
  149. package/components/hook-form/RHFTextField/types.d.ts +15 -1
  150. package/components/hook-form/RHFTextFieldPassword/tests/constants.d.ts +2 -0
  151. package/components/hook-form/RHFTextFieldPassword/tests/utils.d.ts +2 -0
  152. package/components/hook-form/RHFUpload/{index.7fdff30f.js → index.798eb11d.js} +3 -5
  153. package/components/hook-form/index.d.ts +2 -2
  154. package/components/index.d.ts +9 -2
  155. package/components/modal/{WindowBase.7828e042.js → WindowBase.59f50553.js} +3 -3
  156. package/components/modal/{WindowConfirm.42ec4dcd.js → WindowConfirm.c1339cf8.js} +21 -19
  157. package/components/modal/index.7a84f64d.js +30 -0
  158. package/components/mui_extended/Accordion/{index.725a10af.js → index.b7487e37.js} +2 -2
  159. package/components/mui_extended/Button/classes/index.d.ts +2 -1
  160. package/components/mui_extended/Button/classes/types.d.ts +7 -1
  161. package/components/mui_extended/Button/index.d9e0ae2e.js +208 -0
  162. package/components/mui_extended/Button/types.d.ts +6 -1
  163. package/components/mui_extended/IconButton/IconButton.d.ts +1 -2
  164. package/components/mui_extended/IconButton/classes/index.d.ts +2 -1
  165. package/components/mui_extended/IconButton/classes/types.d.ts +8 -0
  166. package/components/mui_extended/IconButton/{index.afa201a7.js → index.be9c2ce5.js} +48 -22
  167. package/components/mui_extended/IconButton/types.d.ts +13 -1
  168. package/components/mui_extended/ImageButton/ImageButton.d.ts +0 -3
  169. package/components/mui_extended/ImageButton/tests/constants.d.ts +1 -0
  170. package/components/mui_extended/ImageButton/tests/utils.d.ts +2 -0
  171. package/components/mui_extended/ImageButton/types.d.ts +1 -0
  172. package/components/mui_extended/ImageButton/utils/Clases/types.d.ts +1 -0
  173. package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -0
  174. package/components/mui_extended/LoadingButton/classes/index.d.ts +8 -0
  175. package/components/mui_extended/LoadingButton/classes/types.d.ts +11 -0
  176. package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -0
  177. package/components/mui_extended/LoadingButton/tests/utils.d.ts +2 -0
  178. package/components/mui_extended/LoadingButton/types.d.ts +5 -0
  179. package/components/mui_extended/MenuActions/{index.1affe51a.js → index.ec654122.js} +2 -2
  180. package/components/mui_extended/Pager/{index.d4d1a1a0.js → index.9e123670.js} +1 -1
  181. package/components/mui_extended/Popover/{index.8ed52492.js → index.260aae81.js} +2 -3
  182. package/components/mui_extended/Popover/index.d.ts +2 -0
  183. package/components/mui_extended/Typography/Typography.d.ts +2 -0
  184. package/components/mui_extended/Typography/{index.be3a279a.js → index.41b60a6b.js} +20 -15
  185. package/components/mui_extended/Typography/index.d.ts +1 -5
  186. package/components/mui_extended/Typography/tests/constants.d.ts +1 -0
  187. package/components/mui_extended/Typography/tests/utils.d.ts +2 -0
  188. package/components/mui_extended/Typography/utils/Clases/types.d.ts +1 -0
  189. package/components/mui_extended/index.459cbd6c.js +19 -0
  190. package/components/mui_extended/index.d.ts +1 -1
  191. package/contexts/ModalContext/{index.b4114066.js → index.ae8041f3.js} +1 -1
  192. package/contexts/RHFormContext/{index.3dc6e2f5.js → index.a7511399.js} +2 -8
  193. package/hooks/useModal/{index.77b3415c.js → index.5c159ed2.js} +1 -1
  194. package/index.js +69 -65
  195. package/package.json +1 -1
  196. package/{react-draggable.6471b07e.js → react-draggable.1aa81436.js} +1 -1
  197. package/{react-resizable.b620abed.js → react-resizable.e86cb01e.js} +2 -2
  198. package/utils/{index.b6ae791a.js → index.e199226a.js} +7 -18
  199. package/vendor.a15d263e.js +458 -0
  200. package/components/ErrorLabel/index.d.ts +0 -10
  201. package/components/ErrorLabel/index.e140421c.js +0 -65
  202. package/components/ErrorLabel/types.d.ts +0 -4
  203. package/components/ErrorLabel/utils/Clases/index.d.ts +0 -6
  204. package/components/ErrorLabel/utils/Clases/types.d.ts +0 -3
  205. package/components/Icon/index.b29ff2d9.js +0 -200
  206. package/components/areas/index.a0456f95.js +0 -21
  207. package/components/hook-form/RHFAutocomplete/index.bb6cb5df.js +0 -289
  208. package/components/hook-form/RHFAutocomplete/test/contants.d.ts +0 -1
  209. package/components/hook-form/RHFAutocompleteAsync/index.815949a9.js +0 -87
  210. package/components/hook-form/RHFAutocompleteAsync/index.d.ts +0 -2
  211. package/components/hook-form/RHFCheckbox/index.6e80f572.js +0 -110
  212. package/components/hook-form/RHFTextField/index.d3544fa3.js +0 -228
  213. package/components/modal/index.3cc54b93.js +0 -29
  214. package/components/mui_extended/Button/index.8406ed5b.js +0 -150
  215. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/index.d.ts +0 -1
  216. package/components/mui_extended/index.9ce0bca3.js +0 -19
  217. package/vendor.29969396.js +0 -145
@@ -13,10 +13,10 @@ export interface TestingProps {
13
13
  isVisible?: boolean;
14
14
  }
15
15
  export interface BaseImageProps {
16
- width: string;
16
+ width?: string;
17
17
  height?: string;
18
18
  }
19
- export interface WrapperImageProps extends BaseImageProps {
19
+ export interface WrapperImageProps {
20
20
  imageClasses: ImageClassesType;
21
21
  }
22
22
  export interface IntersectComponentProps extends BaseImageProps {
@@ -33,6 +33,11 @@ export interface LazyLoadComponentProps extends Pick<ImageProps, 'testingProps'>
33
33
  children: ReactNode;
34
34
  }
35
35
  export declare type SkeletonVariant = 'image' | 'circle';
36
+ export declare type RatioOptions = '1.168:1' | '16:9' | '1:1' | '1:1.168' | '2:1' | '2:3' | '3:1' | '3:2' | '3:4' | '4:3' | '5:2';
37
+ export interface ratioValues {
38
+ width: number;
39
+ height: number;
40
+ }
36
41
  export interface ImageProps extends Omit<IntersectComponentProps, 'setIsVisible' | 'threshold' | 'useIntersectionObserver'> {
37
42
  src: string;
38
43
  alt?: string;
@@ -40,6 +45,7 @@ export interface ImageProps extends Omit<IntersectComponentProps, 'setIsVisible'
40
45
  useIntersectionObserver?: boolean;
41
46
  skeletonVariant?: SkeletonVariant;
42
47
  testingProps?: TestingProps;
48
+ ratio?: RatioOptions;
43
49
  }
44
50
  export declare type StatusLoad = 'initial' | 'loaded' | 'removed';
45
51
  export interface OwnerState {
@@ -48,3 +54,4 @@ export interface OwnerState {
48
54
  export interface BaseProviderIamgeType {
49
55
  classes: any;
50
56
  }
57
+ export declare const ratioOptions: Record<RatioOptions, ratioValues>;
@@ -2,6 +2,7 @@ export interface ImageClassesType {
2
2
  root: string;
3
3
  lazyLoad: string;
4
4
  img: string;
5
+ span: string;
5
6
  skeletonImage: string;
6
7
  skeletonCircle: string;
7
8
  loaded: string;
@@ -0,0 +1,5 @@
1
+ import { RatioOptions } from "../types";
2
+ export declare const getRatioValues: (ratio: RatioOptions) => {
3
+ width: string;
4
+ height: string;
5
+ };
@@ -3,5 +3,6 @@ export interface LanguagePopoverClassesType {
3
3
  containerItems: string;
4
4
  containerProgress: string;
5
5
  labelItem: string;
6
+ imageButton: string;
6
7
  }
7
8
  export declare type LanguagePopoverClassesKey = keyof LanguagePopoverClassesType;
@@ -1,31 +1,32 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
3
- import { I as Image } from "../Image/index.aa24e982.js";
3
+ import { I as Image } from "../Image/index.1a9c0327.js";
4
4
  import { useLocales } from "@m4l/graphics";
5
5
  import { useEnvironment, useNetwork } from "@m4l/core";
6
- import "../Icon/index.b29ff2d9.js";
7
- import "@mui/material/styles";
6
+ import "../Icon/index.0f9b360e.js";
7
+ import { T as TEST_PROP_ID } from "../../vendor.a15d263e.js";
8
8
  import { jsxs, jsx } from "react/jsx-runtime";
9
- import "../mui_extended/IconButton/index.afa201a7.js";
10
- import "../mui_extended/Accordion/index.725a10af.js";
9
+ import "../mui_extended/IconButton/index.be9c2ce5.js";
10
+ import "../mui_extended/Accordion/index.b7487e37.js";
11
11
  import "../mui_extended/Avatar/index.fe06afd7.js";
12
12
  import "react-router-dom";
13
13
  import "@mui/material/Button";
14
- import { I as ImageButton } from "../mui_extended/Button/index.8406ed5b.js";
14
+ import { I as ImageButton } from "../mui_extended/Button/index.d9e0ae2e.js";
15
+ import "clsx";
15
16
  import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
16
17
  import "@mui/lab";
17
- import { P as Popover } from "../mui_extended/Popover/index.8ed52492.js";
18
- import "../mui_extended/MenuActions/index.1affe51a.js";
19
- import "../mui_extended/Pager/index.d4d1a1a0.js";
18
+ import "../mui_extended/Typography/index.41b60a6b.js";
19
+ import { P as Popover } from "../mui_extended/Popover/index.260aae81.js";
20
+ import "../mui_extended/MenuActions/index.ec654122.js";
21
+ import "../mui_extended/Pager/index.9e123670.js";
20
22
  import "../mui_extended/Tab/index.e0653a0a.js";
21
- import "../mui_extended/Typography/index.be3a279a.js";
22
23
  import { unstable_composeClasses } from "@mui/base";
23
24
  const LanguagePopoverRoot = styled("div")(({
24
25
  theme
25
26
  }) => ({
26
27
  ...theme.components?.M4LanguagePopover?.styleOverrides
27
28
  }));
28
- const LabelItem = styled("span")(({
29
+ const LabelItem = styled("div")(({
29
30
  theme
30
31
  }) => ({
31
32
  marginLeft: theme.spacing(1)
@@ -40,12 +41,19 @@ const ContainerMenuItems = styled("div")(() => ({
40
41
  display: "flex",
41
42
  flexDirection: "column"
42
43
  }));
44
+ const ContainerImage = styled("div")(() => ({
45
+ display: "flex",
46
+ gap: "4px",
47
+ width: "16px",
48
+ height: "16px"
49
+ }));
43
50
  const componentName = "M4LanguagePopover";
44
51
  generateUtilityClasses(componentName, [
45
52
  "root",
46
53
  "containerItems",
47
54
  "containerProgress",
48
- "labelItem"
55
+ "labelItem",
56
+ "imageButton"
49
57
  ]);
50
58
  function getM4LanguagePopoverClassesUtilityClass(slot) {
51
59
  return generateUtilityClass(componentName, slot);
@@ -62,6 +70,10 @@ const useUtilityClasses = () => {
62
70
  ...composedClasses
63
71
  };
64
72
  };
73
+ const LANGUAGEPOPOVER_PREFIX = "LanguagePopover";
74
+ const getNameDataTestId = (KEY) => {
75
+ return `${LANGUAGEPOPOVER_PREFIX}-${KEY}`;
76
+ };
65
77
  function LanguagePopover(props) {
66
78
  const {
67
79
  testingProps
@@ -99,7 +111,7 @@ function LanguagePopover(props) {
99
111
  }
100
112
  }).then((response) => {
101
113
  if (mounted) {
102
- setAllLocales(response.data);
114
+ !testingProps && setAllLocales(response.data);
103
115
  }
104
116
  }).finally(() => {
105
117
  setLoading(false);
@@ -111,12 +123,15 @@ function LanguagePopover(props) {
111
123
  const classes = useUtilityClasses();
112
124
  return /* @__PURE__ */ jsxs(LanguagePopoverRoot, {
113
125
  className: classes.root,
114
- "data-testid": "LanguagePopoverRoot",
126
+ ...process.env.NODE_ENV !== "production" ? {
127
+ [TEST_PROP_ID]: getNameDataTestId("root")
128
+ } : {},
115
129
  children: [/* @__PURE__ */ jsx(ImageButton, {
130
+ className: classes.imageButton,
116
131
  onClick: handleOpen,
117
132
  sx: {
118
- width: 40,
119
- height: 40,
133
+ width: 28,
134
+ height: 28,
120
135
  ...open && {
121
136
  bgcolor: "action.selected"
122
137
  }
@@ -126,7 +141,9 @@ function LanguagePopover(props) {
126
141
  width: "24px",
127
142
  height: "24px",
128
143
  skeletonVariant: "circle",
129
- "data-testid": "ImageButton"
144
+ ...process.env.NODE_ENV !== "production" ? {
145
+ [TEST_PROP_ID]: getNameDataTestId("imageButton")
146
+ } : {}
130
147
  }), /* @__PURE__ */ jsx(Popover, {
131
148
  arrowType: "top-right",
132
149
  open: Boolean(open),
@@ -149,10 +166,14 @@ function LanguagePopover(props) {
149
166
  },
150
167
  children: /* @__PURE__ */ jsxs(ContainerMenuItems, {
151
168
  className: classes.containerItems,
152
- "data-testid": "ContainerMenuItems",
169
+ ...process.env.NODE_ENV !== "production" ? {
170
+ [TEST_PROP_ID]: getNameDataTestId("containerItems")
171
+ } : {},
153
172
  children: [allLocales.length === 0 && /* @__PURE__ */ jsx(ContainerProgress, {
154
173
  className: classes.containerProgress,
155
- "data-testid": "ContainerProgress",
174
+ ...process.env.NODE_ENV !== "production" ? {
175
+ [TEST_PROP_ID]: getNameDataTestId("containerProgress")
176
+ } : {},
156
177
  children: /* @__PURE__ */ jsx(CircularProgress, {
157
178
  size: "20px"
158
179
  })
@@ -164,14 +185,17 @@ function LanguagePopover(props) {
164
185
  onChangeLocale(option);
165
186
  handleClose();
166
187
  },
167
- children: [/* @__PURE__ */ jsx(Image, {
168
- alt: option.name,
169
- src: option.url_icon,
170
- width: "24px",
171
- height: "24px"
188
+ children: [/* @__PURE__ */ jsx(ContainerImage, {
189
+ children: /* @__PURE__ */ jsx(Image, {
190
+ alt: option.name,
191
+ src: option.url_icon,
192
+ ratio: "1:1"
193
+ })
172
194
  }), /* @__PURE__ */ jsx(LabelItem, {
173
195
  className: classes.labelItem,
174
- "data-testid": "LabelItem",
196
+ ...process.env.NODE_ENV !== "production" ? {
197
+ [TEST_PROP_ID]: getNameDataTestId("labelItem")
198
+ } : {},
175
199
  children: option.name
176
200
  })]
177
201
  }, option.lang || option.script || option.region))
@@ -0,0 +1 @@
1
+ export declare const LANGUAGEPOPOVER_PREFIX = "LanguagePopover";
@@ -0,0 +1,2 @@
1
+ import { LanguagePopoverClassesKey } from "../classes/types";
2
+ export declare const getNameDataTestId: (KEY: LanguagePopoverClassesKey) => string;
@@ -1,12 +1,12 @@
1
1
  import { Dialog, Paper } from "@mui/material";
2
- import { c as cjs } from "../../react-draggable.6471b07e.js";
3
- import { u as useModal } from "../../hooks/useModal/index.77b3415c.js";
2
+ import { c as cjs } from "../../react-draggable.1aa81436.js";
3
+ import { u as useModal } from "../../hooks/useModal/index.5c159ed2.js";
4
4
  import { styled } from "@mui/material/styles";
5
- import { b as getThemeVariantColor } from "../../utils/index.b6ae791a.js";
6
- import { R as ResizeableWindow } from "../Resizeable/index.04fa8de5.js";
5
+ import { a as getThemeVariantColor } from "../../utils/index.e199226a.js";
6
+ import { R as ResizeableWindow } from "../Resizeable/index.b5d42efb.js";
7
7
  import { useResponsiveDesktop } from "@m4l/graphics";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
- import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.6eb24c0b.js";
9
+ import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.433cd345.js";
10
10
  const WrapperDialog = styled(Dialog)(() => ({}));
11
11
  const Container = styled("div")(({ theme }) => ({
12
12
  display: "flex",
@@ -0,0 +1,2 @@
1
+ import { NavLinkProps } from './types';
2
+ export declare const NavLink: (props: NavLinkProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const componentName = "M4LNavLink";
@@ -0,0 +1,6 @@
1
+ import { NavLinkClassesType } from './types';
2
+ export declare const navLinkClasses: NavLinkClassesType;
3
+ export declare function getNavLinkClassesUtilityClass(slot: string): string;
4
+ export declare const useUtilityClasses: () => {
5
+ root: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ export interface NavLinkClassesType {
2
+ root: string;
3
+ }
4
+ export declare type NavLinkClassesKey = keyof NavLinkClassesType;
@@ -0,0 +1,74 @@
1
+ import { NavLink as NavLink$1 } from "react-router-dom";
2
+ import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
3
+ import "react";
4
+ import "@m4l/core";
5
+ import "../Icon/index.0f9b360e.js";
6
+ import { T as TEST_PROP_ID } from "../../vendor.a15d263e.js";
7
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
8
+ import "../mui_extended/IconButton/index.be9c2ce5.js";
9
+ import "../mui_extended/Accordion/index.b7487e37.js";
10
+ import "../mui_extended/Avatar/index.fe06afd7.js";
11
+ import "@mui/material/Button";
12
+ import "../mui_extended/Button/index.d9e0ae2e.js";
13
+ import "clsx";
14
+ import "../Image/index.1a9c0327.js";
15
+ import "@mui/lab";
16
+ import { T as Typography } from "../mui_extended/Typography/index.41b60a6b.js";
17
+ import "../mui_extended/Popover/index.260aae81.js";
18
+ import "../mui_extended/MenuActions/index.ec654122.js";
19
+ import "../mui_extended/Pager/index.9e123670.js";
20
+ import "../mui_extended/Tab/index.e0653a0a.js";
21
+ import { unstable_composeClasses } from "@mui/base";
22
+ const componentName = "M4LNavLink";
23
+ generateUtilityClasses(componentName, [
24
+ "root"
25
+ ]);
26
+ function getNavLinkClassesUtilityClass(slot) {
27
+ return generateUtilityClass(componentName, slot);
28
+ }
29
+ const useUtilityClasses = () => {
30
+ const slots = {
31
+ root: ["root"]
32
+ };
33
+ const composedClasses = unstable_composeClasses(slots, getNavLinkClassesUtilityClass, {});
34
+ return {
35
+ ...composedClasses
36
+ };
37
+ };
38
+ const NavLinkRoot = styled("div")(({ theme }) => ({
39
+ ...theme.components?.M4LNavLink?.styleOverrides
40
+ }));
41
+ const NAVLINK_PREFIX = "Navlink";
42
+ const getNameDataTestId = (KEY) => {
43
+ return `${NAVLINK_PREFIX}-${KEY}`;
44
+ };
45
+ const NavLink = (props) => {
46
+ const {
47
+ children,
48
+ text,
49
+ skeletonWidth,
50
+ skeletongHeight,
51
+ ...others
52
+ } = props;
53
+ const classes = useUtilityClasses();
54
+ return /* @__PURE__ */ jsx(NavLinkRoot, {
55
+ className: classes.root,
56
+ ...process.env.NODE_ENV !== "production" ? {
57
+ [TEST_PROP_ID]: getNameDataTestId("root")
58
+ } : {},
59
+ children: /* @__PURE__ */ jsxs(NavLink$1, {
60
+ ...others,
61
+ children: [/* @__PURE__ */ jsx(Typography, {
62
+ variant: "action",
63
+ skeletonWidth,
64
+ skeletongHeight,
65
+ children: text
66
+ }), /* @__PURE__ */ jsx(Fragment, {
67
+ children
68
+ })]
69
+ })
70
+ });
71
+ };
72
+ export {
73
+ NavLink as N
74
+ };
@@ -0,0 +1 @@
1
+ export { NavLink } from './NavLink';
@@ -0,0 +1 @@
1
+ export declare const NAVLINK_PREFIX = "Navlink";
@@ -0,0 +1,2 @@
1
+ import { NavLinkClassesKey } from "../classes/types";
2
+ export declare const getNameDataTestId: (KEY: NavLinkClassesKey) => string;
@@ -0,0 +1,5 @@
1
+ import { NavLinkProps as RouterNavLinkProps } from "react-router-dom";
2
+ import { TypographyProps } from "../mui_extended/Typography/types";
3
+ export interface NavLinkProps extends RouterNavLinkProps, Pick<TypographyProps, 'skeletonWidth' | 'skeletongHeight'> {
4
+ text: string;
5
+ }
@@ -1,6 +1,6 @@
1
1
  import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
2
2
  import { styled } from "@mui/material/styles";
3
- import { I as Image } from "../Image/index.aa24e982.js";
3
+ import { I as Image } from "../Image/index.1a9c0327.js";
4
4
  import { Skeleton } from "@mui/material";
5
5
  import { useMemo } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -62,9 +62,7 @@ function NoItemSelected() {
62
62
  return /* @__PURE__ */ jsxs(WrapperNoItemSelected, {
63
63
  id: "WrapperNoItemSelected",
64
64
  children: [/* @__PURE__ */ jsx(Img, {
65
- src,
66
- width: "100%",
67
- height: "100%"
65
+ src
68
66
  }), /* @__PURE__ */ jsx(Label, {
69
67
  children: getLabel("no_item_selected.message")
70
68
  })]
@@ -1,36 +1,38 @@
1
1
  import { useState, useEffect, useCallback, useMemo } from "react";
2
2
  import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
3
3
  import { styled } from "@mui/material/styles";
4
- import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.58f35158.js";
4
+ import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.42521a55.js";
5
5
  import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
6
6
  import { Tooltip, IconButton } from "@mui/material";
7
7
  import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
8
8
  import { R as ReactJson } from "../../react-json-view.57125fcf.js";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
- import { u as useModal } from "../../hooks/useModal/index.77b3415c.js";
11
- import { I as Icon } from "../Icon/index.b29ff2d9.js";
12
- import "../../react-draggable.6471b07e.js";
13
- import "../ModalDialog/index.dc7ebe06.js";
14
- import "../Resizeable/index.04fa8de5.js";
15
- import "../CommonActions/components/Actions/index.6eb24c0b.js";
10
+ import { u as useModal } from "../../hooks/useModal/index.5c159ed2.js";
11
+ import { I as Icon } from "../Icon/index.0f9b360e.js";
12
+ import "../../react-draggable.1aa81436.js";
13
+ import "../ModalDialog/index.3efe049b.js";
14
+ import "../Resizeable/index.b5d42efb.js";
15
+ import "../CommonActions/components/Actions/index.433cd345.js";
16
16
  import "@mui/material/Button";
17
- import "../mui_extended/Button/index.8406ed5b.js";
17
+ import "../mui_extended/Button/index.d9e0ae2e.js";
18
+ import "clsx";
18
19
  import "react-hook-form";
19
- import "../areas/components/index.9f62ca8e.js";
20
- import "../areas/components/AreasAdmin/index.645bd2c7.js";
21
- import "../mui_extended/IconButton/index.afa201a7.js";
20
+ import "../areas/components/index.eace295a.js";
21
+ import "../areas/components/AreasAdmin/index.51e28f63.js";
22
+ import "../mui_extended/IconButton/index.be9c2ce5.js";
22
23
  import "zustand";
23
- import "../areas/contexts/AreasContext/index.f3d6e728.js";
24
+ import "../areas/contexts/AreasContext/index.0792a8d1.js";
24
25
  import "zustand/shallow";
25
- import "../areas/components/AreasContainer/index.3e74c849.js";
26
+ import "../areas/components/AreasContainer/index.1e5e6e91.js";
26
27
  import "react-grid-layout/css/styles.css";
27
- import "../../react-resizable.b620abed.js";
28
- import "../areas/contexts/index.3623b460.js";
28
+ import "../../react-resizable.e86cb01e.js";
29
+ import "../areas/contexts/index.2a915acf.js";
29
30
  import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
30
31
  import "@mui/lab";
31
- import "../modal/WindowConfirm.42ec4dcd.js";
32
- import { W as WindowBase } from "../modal/WindowBase.7828e042.js";
33
- import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.10f901c6.js";
32
+ import "../mui_extended/Typography/index.41b60a6b.js";
33
+ import "../modal/WindowConfirm.c1339cf8.js";
34
+ import { W as WindowBase } from "../modal/WindowBase.59f50553.js";
35
+ import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.442bda79.js";
34
36
  const Container$1 = styled("div")(() => ({
35
37
  height: "100%",
36
38
  width: "100%",
@@ -1,7 +1,7 @@
1
1
  import { styled } from "@mui/material/styles";
2
2
  import { useModuleSkeleton } from "@m4l/core";
3
3
  import { Skeleton } from "@mui/material";
4
- import { I as Icon } from "../Icon/index.b29ff2d9.js";
4
+ import { I as Icon } from "../Icon/index.0f9b360e.js";
5
5
  import { jsxs, jsx } from "react/jsx-runtime";
6
6
  const WrapperPaper = styled("div")(({
7
7
  theme
@@ -1,32 +1,33 @@
1
1
  import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { styled, Skeleton, Autocomplete, TextField } from "@mui/material";
3
3
  import { useMemo } from "react";
4
- import { I as Icon } from "../Icon/index.b29ff2d9.js";
5
- import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.6eb24c0b.js";
4
+ import { I as Icon } from "../Icon/index.0f9b360e.js";
5
+ import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.433cd345.js";
6
6
  import { jsxs, jsx } from "react/jsx-runtime";
7
7
  import "@mui/material/Button";
8
- import "../mui_extended/Button/index.8406ed5b.js";
8
+ import "../mui_extended/Button/index.d9e0ae2e.js";
9
+ import "clsx";
9
10
  import "react-hook-form";
10
- import "../../contexts/ModalContext/index.b4114066.js";
11
- import "../../react-draggable.6471b07e.js";
12
- import "../ModalDialog/index.dc7ebe06.js";
13
- import "../Resizeable/index.04fa8de5.js";
11
+ import "../../contexts/ModalContext/index.ae8041f3.js";
12
+ import "../../react-draggable.1aa81436.js";
13
+ import "../ModalDialog/index.3efe049b.js";
14
+ import "../Resizeable/index.b5d42efb.js";
14
15
  import "@m4l/graphics";
15
- import "../modal/WindowConfirm.42ec4dcd.js";
16
- import "@mui/material/styles";
17
- import "../modal/WindowBase.7828e042.js";
18
- import "../areas/components/index.9f62ca8e.js";
19
- import "../areas/components/AreasAdmin/index.645bd2c7.js";
20
- import "../mui_extended/IconButton/index.afa201a7.js";
16
+ import "../modal/WindowConfirm.c1339cf8.js";
17
+ import "../modal/WindowBase.59f50553.js";
18
+ import "../areas/components/index.eace295a.js";
19
+ import "../areas/components/AreasAdmin/index.51e28f63.js";
20
+ import "../mui_extended/IconButton/index.be9c2ce5.js";
21
21
  import "zustand";
22
- import "../areas/contexts/AreasContext/index.f3d6e728.js";
22
+ import "../areas/contexts/AreasContext/index.0792a8d1.js";
23
23
  import "zustand/shallow";
24
- import "../areas/components/AreasContainer/index.3e74c849.js";
24
+ import "../areas/components/AreasContainer/index.1e5e6e91.js";
25
25
  import "react-grid-layout/css/styles.css";
26
- import "../../react-resizable.b620abed.js";
27
- import "../areas/contexts/index.3623b460.js";
26
+ import "../../react-resizable.e86cb01e.js";
27
+ import "../areas/contexts/index.2a915acf.js";
28
28
  import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
29
29
  import "@mui/lab";
30
+ import "../mui_extended/Typography/index.41b60a6b.js";
30
31
  const ContainerPeriod = styled("div")(({
31
32
  theme,
32
33
  error,
@@ -1,5 +1,5 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { R as ResizableBox } from "../../react-resizable.b620abed.js";
2
+ import { R as ResizableBox } from "../../react-resizable.e86cb01e.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  const WrapperResizeable = styled(ResizableBox)(({
5
5
  theme
@@ -17,7 +17,7 @@ const RootStyle = styled("div")(() => ({
17
17
  const SimpleBarStyle = styled(SimpleBarReact)(({
18
18
  theme
19
19
  }) => ({
20
- maxHeight: "100%",
20
+ height: "100%",
21
21
  "& .simplebar-scrollbar": {
22
22
  "&:before": {
23
23
  backgroundColor: alpha(theme.palette.grey[600], 0.48)
@@ -34,6 +34,10 @@ const SimpleBarStyle = styled(SimpleBarReact)(({
34
34
  },
35
35
  "& .simplebar-mask": {
36
36
  zIndex: "inherit"
37
+ },
38
+ "& .simplebar-content": {
39
+ display: "flex",
40
+ height: "100%"
37
41
  }
38
42
  }));
39
43
  function ScrollBar({
@@ -44,7 +48,8 @@ function ScrollBar({
44
48
  if (isMobile) {
45
49
  return /* @__PURE__ */ jsx(Box, {
46
50
  sx: {
47
- overflowX: "auto"
51
+ overflowX: "auto",
52
+ width: "100%"
48
53
  },
49
54
  children
50
55
  });
@@ -0,0 +1,2 @@
1
+ import { SideBarProps } from './types';
2
+ export declare const SideBar: (props: SideBarProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const componentName = "M4LSideBar";
@@ -0,0 +1,37 @@
1
+ import { SideBarClassesType } from './types';
2
+ import { SideBarState } from '../types';
3
+ export declare const SideBarClasses: SideBarClassesType;
4
+ export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
5
+ root: string;
6
+ drawer: string;
7
+ containerSideBarLogo: string;
8
+ contentDesktop: string;
9
+ contentMobile: string;
10
+ collapseButton: string;
11
+ containerLogo: string;
12
+ contentGroups: string;
13
+ wrapperGroup: string;
14
+ wrapperGroupTitle: string;
15
+ itemListMainRoot: string;
16
+ containerListSubItem: string;
17
+ navItemMainRoot: string;
18
+ navItemRootContent: string;
19
+ arrowIconRoot: string;
20
+ navListSubItemRoot: string;
21
+ navSubItemContentRoot: string;
22
+ skeleton: string;
23
+ subItemActive: string;
24
+ lineLeft: string;
25
+ wrapperSideBar: string;
26
+ containerLogoButton: string;
27
+ itemMainActive: string;
28
+ navItemMainTriangleTop: string;
29
+ navItemMainTriangleBottom: string;
30
+ navItemRootContentIconTypo: string;
31
+ navSubItemContentBullet: string;
32
+ containerLogoButtonLogo: string;
33
+ containerLogoButtonIcon: string;
34
+ collapseButtontriangleTop: string;
35
+ collapseButtontriangleBottom: string;
36
+ popover: string;
37
+ };
@@ -0,0 +1,37 @@
1
+ export interface SideBarClassesType {
2
+ root: string;
3
+ contentDesktop: string;
4
+ contentMobile: string;
5
+ collapseButton: string;
6
+ containerSideBarLogo: string;
7
+ containerLogo: string;
8
+ contentGroups: string;
9
+ wrapperGroup: string;
10
+ wrapperGroupTitle: string;
11
+ itemListMainRoot: string;
12
+ containerListSubItem: string;
13
+ navItemMainRoot: string;
14
+ navItemRootContent: string;
15
+ arrowIconRoot: string;
16
+ navListSubItemRoot: string;
17
+ navSubItemContentRoot: string;
18
+ skeleton: string;
19
+ lineLeft: string;
20
+ wrapperSideBar: string;
21
+ containerLogoButton: string;
22
+ navItemMainTriangleTop: string;
23
+ navItemMainTriangleBottom: string;
24
+ navItemRootContentIconTypo: string;
25
+ navSubItemContentBullet: string;
26
+ containerLogoButtonLogo: string;
27
+ containerLogoButtonIcon: string;
28
+ collapseButtontriangleTop: string;
29
+ collapseButtontriangleBottom: string;
30
+ drawer: string;
31
+ popover: string;
32
+ collapsed: string;
33
+ visible: string;
34
+ subItemActive: string;
35
+ itemMainActive: string;
36
+ }
37
+ export declare type SideBarClassesKey = keyof SideBarClassesType;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SideBarProviderProps, SideBarProviderValue } from './types';
3
+ declare const SideBarContext: import("react").Context<SideBarProviderValue>;
4
+ declare const SideBarProvider: (props: SideBarProviderProps) => JSX.Element;
5
+ export { SideBarProvider, SideBarContext };
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { SideBarProps } from '../../types';
3
+ export interface SideBarProviderValue extends SideBarProps {
4
+ classes: any;
5
+ }
6
+ export interface SideBarProviderProps {
7
+ value: SideBarProviderValue;
8
+ children: ReactNode;
9
+ }
@@ -0,0 +1,2 @@
1
+ declare const useSideBar: () => import("../../context/sideBarContext/types").SideBarProviderValue;
2
+ export default useSideBar;