@m4l/layouts 9.1.9 → 9.1.10

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 (62) hide show
  1. package/.storybook/constants.d.ts +21 -0
  2. package/.storybook/decorators/WithContexts/WithContexts.d.ts +5 -0
  3. package/.storybook/decorators/WithContexts/constants.d.ts +10 -0
  4. package/.storybook/decorators/WithContexts/index.d.ts +1 -0
  5. package/.storybook/decorators/WithContexts/styles.d.ts +1 -0
  6. package/.storybook/decorators/WithContexts/subcomponents/AppWithTheme.d.ts +6 -0
  7. package/.storybook/decorators/WithContexts/types.d.ts +7 -0
  8. package/.storybook/decorators/index.d.ts +1 -0
  9. package/.storybook/main.d.ts +3 -0
  10. package/.storybook/storybook.vite.d.ts +2 -0
  11. package/.storybook/utils/getGlobalsFromSearchParams.d.ts +7 -0
  12. package/.storybook/utils/getStylesColorsByMode.d.ts +744 -0
  13. package/components/MFHostApp/MFHostApp.d.ts +6 -0
  14. package/components/MFHostApp/MFHostApp.js +59 -0
  15. package/components/MFHostApp/index.d.ts +2 -6
  16. package/components/MFHostApp/index.js +1 -60
  17. package/components/MFHostApp/types.d.ts +4 -1
  18. package/components/MFNoAuthApp/index.js +3 -4
  19. package/components/MFNoAuthApp/types.d.ts +4 -1
  20. package/components/ModuleDetailTabs/ModuleDetailTabs.d.ts +5 -0
  21. package/components/ModuleDetailTabs/ModuleDetailTabs.js +42 -0
  22. package/components/ModuleDetailTabs/index.d.ts +2 -0
  23. package/components/ModuleDetailTabs/index.js +1 -0
  24. package/components/ModuleDetailTabs/types.d.ts +88 -0
  25. package/components/ModuleDetailTabs/useModuleDatailTabs.d.ts +308 -0
  26. package/components/ModuleDetailTabs/useModuleDatailTabs.js +86 -0
  27. package/components/index.d.ts +3 -2
  28. package/hooks/index.d.ts +1 -0
  29. package/hooks/useDynamicAccordions/index.d.ts +2 -0
  30. package/hooks/useDynamicAccordions/index.js +1 -0
  31. package/hooks/useDynamicAccordions/types.d.ts +42 -0
  32. package/hooks/useDynamicAccordions/useBaseAccordions.d.ts +5 -0
  33. package/hooks/useDynamicAccordions/useBaseAccordions.js +38 -0
  34. package/hooks/useDynamicAccordions/useDynamicAccordions.d.ts +6 -0
  35. package/hooks/useDynamicAccordions/useDynamicAccordions.js +18 -0
  36. package/hooks/useMasterDetail/index.d.ts +1 -1
  37. package/index.d.ts +1 -0
  38. package/index.js +14 -9
  39. package/layouts/MasterDetailLayout/MasterDetailLayout.js +6 -6
  40. package/layouts/MasterDetailLayout/dicctionary.js +2 -11
  41. package/layouts/MasterDetailLayout/index.d.ts +2 -0
  42. package/layouts/MasterDetailLayout/index.js +1 -0
  43. package/layouts/ModuleLayout/ModuleLayout.js +4 -0
  44. package/layouts/ModuleLayout/slots/ModuleLayoutSlots.d.ts +1 -1
  45. package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/index.js +2 -1
  46. package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/types.d.ts +1 -0
  47. package/layouts/ModuleLayout/types.d.ts +1 -0
  48. package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.d.ts +18 -18
  49. package/layouts/index.d.ts +1 -2
  50. package/package.json +2 -6
  51. package/storybook/layouts/ModuleLayout/ModuleLayout.stories.d.ts +6 -0
  52. package/storybook/layouts/ModuleLayout/moks/mokData.d.ts +14 -0
  53. package/storybook/layouts/ModuleLayout/subcomponents/ClientsHeaderActions.d.ts +4 -0
  54. package/storybook/layouts/ModuleLayout/subcomponents/RenderModuleLayout.d.ts +6 -0
  55. package/storybook/layouts/ModuleLayout/subcomponents/UsersHeaderActions.d.ts +4 -0
  56. package/storybook/layouts/ModuleLayout/subcomponents/WithExtendedContainer.d.ts +5 -0
  57. package/storybook/layouts/NoAuthModuleLayout/NoAuthModuleLayout.stories.d.ts +9 -0
  58. package/utils/createAppMF.d.ts +13 -0
  59. package/utils/createAppMF.js +58 -0
  60. package/utils/index.d.ts +1 -0
  61. package/utils/index.js +1 -0
  62. package/vite-env.d.ts +19 -0
@@ -0,0 +1,21 @@
1
+ import { ThemeUserColor } from '@m4l/styles';
2
+ export declare const MODES: {
3
+ light: string;
4
+ dark: string;
5
+ };
6
+ export declare const MODES_BACKGROUNDS: Record<keyof Omit<typeof MODES, 'both'>, string>;
7
+ export declare const MODES_ITEMS: {
8
+ value: string;
9
+ title: string;
10
+ }[];
11
+ export declare const DEVICE_TYPES: {
12
+ automatic: string;
13
+ mobile: string;
14
+ desktop: string;
15
+ };
16
+ export declare const DEVICE_TYPES_ITEMS: {
17
+ value: string;
18
+ title: string;
19
+ }[];
20
+ export declare const COLORS_THEME: Record<ThemeUserColor, ThemeUserColor>;
21
+ export declare const COLORS_THEME_ITEMS: Record<string, string>[];
@@ -0,0 +1,5 @@
1
+ import { StoryContext, StoryFn } from '@storybook/react';
2
+ /**
3
+ * Decorator that adds the context of the theme to the story.
4
+ */
5
+ export declare const WithContexts: (Story: StoryFn, storyContext: StoryContext) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare const USER: string;
2
+ export declare const PWD: string;
3
+ export declare const DATABASE = "";
4
+ export declare const ENVIRONMENT_ASSETS: string;
5
+ export declare const HOST_API_LOCAL: string;
6
+ export declare const HOST_API_REMOTE: string;
7
+ export declare const HOST_STATIC_ASSETS: string;
8
+ export declare const DOMAIN_TOKEN: string;
9
+ export declare const STORYBOOK_MODULE_ID: string;
10
+ export declare const STORYBOOK_ISOLATION_MODULE_ID: string;
@@ -0,0 +1 @@
1
+ export * from './WithContexts';
@@ -0,0 +1 @@
1
+ export declare const RootStyle: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,6 @@
1
+ import { AppThemeProps } from '../types';
2
+ /**
3
+ * AppWithTheme es un componente que se encarga de proveer el contexto de tema a la aplicación.
4
+ *
5
+ */
6
+ export declare const AppWithTheme: ({ themeMode, themeColor, children }: AppThemeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { ThemeSettingsType } from '@m4l/graphics';
3
+ export type AppThemeProps = {
4
+ themeMode: ThemeSettingsType['themeMode'];
5
+ themeColor: ThemeSettingsType['themeColor'];
6
+ children: ReactNode;
7
+ };
@@ -0,0 +1 @@
1
+ export * from './WithContexts';
@@ -0,0 +1,3 @@
1
+ import { StorybookConfig } from '@storybook/react-vite';
2
+ declare const config: StorybookConfig;
3
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Función que obtiene los parametros de la URL
3
+ */
4
+ export declare function getGlobalsUrlParams(): {
5
+ mode: any;
6
+ preset: any;
7
+ };