@m4l/graphics 0.0.20 → 0.0.23

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 (66) hide show
  1. package/dist/{lib/components → components}/Page/index.d.ts +0 -0
  2. package/dist/{lib/components → components}/Page/types.d.ts +0 -0
  3. package/dist/{lib/components → components}/ProgressBarStyle/index.d.ts +0 -0
  4. package/dist/{lib/components → components}/index.d.ts +0 -0
  5. package/dist/{lib/contexts → contexts}/HostThemeContext/index.d.ts +0 -0
  6. package/dist/contexts/HostThemeContext/types.d.ts +12 -0
  7. package/dist/{lib/contexts → contexts}/LocalesContext/index.d.ts +0 -0
  8. package/dist/contexts/LocalesContext/index.js +7 -1
  9. package/dist/{lib/contexts → contexts}/index.d.ts +0 -0
  10. package/dist/{lib/hooks → hooks}/index.d.ts +0 -0
  11. package/dist/{lib/hooks → hooks}/useHostTheme/index.d.ts +0 -0
  12. package/dist/{lib/hooks → hooks}/useIsMountedRef.d.ts +0 -0
  13. package/dist/{lib/hooks → hooks}/useLocales/index.d.ts +0 -0
  14. package/dist/{lib/hooks → hooks}/useOffSetTop.d.ts +0 -0
  15. package/dist/{lib/hooks → hooks}/useResponsive/index.d.ts +0 -0
  16. package/dist/index.d.ts +10 -3
  17. package/dist/index.js +2 -0
  18. package/dist/{lib/theme → theme}/defaultThemeOptions.d.ts +0 -0
  19. package/dist/{lib/theme → theme}/overrides/Accordion.d.ts +0 -0
  20. package/dist/{lib/theme → theme}/overrides/Autocomplete.d.ts +0 -0
  21. package/dist/{lib/theme → theme}/overrides/Avatar.d.ts +0 -0
  22. package/dist/{lib/theme → theme}/overrides/Backdrop.d.ts +0 -0
  23. package/dist/{lib/theme → theme}/overrides/Badge.d.ts +0 -0
  24. package/dist/{lib/theme → theme}/overrides/Breadcrumbs.d.ts +0 -0
  25. package/dist/{lib/theme → theme}/overrides/Button.d.ts +0 -0
  26. package/dist/{lib/theme → theme}/overrides/ButtonGroup.d.ts +0 -0
  27. package/dist/{lib/theme → theme}/overrides/Card.d.ts +0 -0
  28. package/dist/{lib/theme → theme}/overrides/Checkbox.d.ts +0 -0
  29. package/dist/{lib/theme → theme}/overrides/ControlLabel.d.ts +0 -0
  30. package/dist/{lib/theme → theme}/overrides/CssBaseline.d.ts +0 -0
  31. package/dist/{lib/theme → theme}/overrides/DataGrid.d.ts +0 -0
  32. package/dist/{lib/theme → theme}/overrides/Dialog.d.ts +0 -0
  33. package/dist/{lib/theme → theme}/overrides/Drawer.d.ts +0 -0
  34. package/dist/{lib/theme → theme}/overrides/Fab.d.ts +0 -0
  35. package/dist/{lib/theme → theme}/overrides/IconButton.d.ts +0 -0
  36. package/dist/{lib/theme → theme}/overrides/Input.d.ts +0 -0
  37. package/dist/{lib/theme → theme}/overrides/InputLabel.d.ts +0 -0
  38. package/dist/{lib/theme → theme}/overrides/Link.d.ts +0 -0
  39. package/dist/{lib/theme → theme}/overrides/List.d.ts +0 -0
  40. package/dist/{lib/theme → theme}/overrides/LoadingButton.d.ts +0 -0
  41. package/dist/{lib/theme → theme}/overrides/Menu.d.ts +0 -0
  42. package/dist/{lib/theme → theme}/overrides/Pagination.d.ts +0 -0
  43. package/dist/{lib/theme → theme}/overrides/Paper.d.ts +0 -0
  44. package/dist/{lib/theme → theme}/overrides/Popover.d.ts +0 -0
  45. package/dist/{lib/theme → theme}/overrides/Progress.d.ts +0 -0
  46. package/dist/{lib/theme → theme}/overrides/Radio.d.ts +0 -0
  47. package/dist/{lib/theme → theme}/overrides/Skeleton.d.ts +0 -0
  48. package/dist/{lib/theme → theme}/overrides/Slider.d.ts +0 -0
  49. package/dist/{lib/theme → theme}/overrides/Stepper.d.ts +0 -0
  50. package/dist/theme/overrides/SvgIcon.d.ts +17 -0
  51. package/dist/{lib/theme → theme}/overrides/Switch.d.ts +0 -0
  52. package/dist/{lib/theme → theme}/overrides/Table.d.ts +0 -0
  53. package/dist/{lib/theme → theme}/overrides/Tabs.d.ts +0 -0
  54. package/dist/{lib/theme → theme}/overrides/Timeline.d.ts +0 -0
  55. package/dist/{lib/theme → theme}/overrides/ToggleButton.d.ts +0 -0
  56. package/dist/{lib/theme → theme}/overrides/Tooltip.d.ts +0 -0
  57. package/dist/{lib/theme → theme}/overrides/Typography.d.ts +0 -0
  58. package/dist/{lib/theme → theme}/overrides/index.d.ts +0 -0
  59. package/dist/{lib/theme → theme}/palette.d.ts +0 -0
  60. package/dist/{lib/theme → theme}/shadows.d.ts +0 -0
  61. package/dist/{lib/theme → theme}/typography.d.ts +0 -0
  62. package/dist/{lib/types → types}/index.d.ts +0 -0
  63. package/dist/{lib/utils → utils}/getColorPresets.d.ts +0 -0
  64. package/dist/{lib/utils → utils}/getFontValue.d.ts +0 -0
  65. package/package.json +3 -3
  66. package/dist/lib/index.d.ts +0 -10
File without changes
@@ -0,0 +1,12 @@
1
+ import type { ThemeOptions, Theme } from '@mui/material/styles';
2
+ import type { ReactNode } from 'react';
3
+ export declare type EventFunListener = (...args: any[]) => void;
4
+ export interface HostThemeType {
5
+ hostThemeOptions: ThemeOptions;
6
+ fnComponentsOverrides: (theme: Theme) => any;
7
+ }
8
+ export interface HostThemeProviderProps extends HostThemeType {
9
+ isMicroFrontEnd: boolean;
10
+ children: ReactNode;
11
+ }
12
+ export declare type HostThemeContextType = HostThemeType;
@@ -1,4 +1,6 @@
1
1
  import { createContext, useMemo, useState } from "react";
2
+ import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
3
+ import { LocalizationProvider } from "@mui/x-date-pickers";
2
4
  import esLocale from "date-fns/locale/es";
3
5
  import frLocale from "date-fns/locale/fr";
4
6
  import enLocale from "date-fns/locale/en-US";
@@ -40,7 +42,11 @@ function LocalesProvider({
40
42
  onChangeLang,
41
43
  allLang: LANGS
42
44
  },
43
- children
45
+ children: /* @__PURE__ */ jsx(LocalizationProvider, {
46
+ dateAdapter: AdapterDateFns,
47
+ adapterLocale: currentLang.locale,
48
+ children
49
+ })
44
50
  });
45
51
  }
46
52
  export { LocalesContext as L, LocalesProvider as a };
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/index.d.ts CHANGED
@@ -1,3 +1,10 @@
1
- import m4l_graphics from './lib/index'
2
- export default m4l_graphics
3
- export * from './lib/index'
1
+ export * from './components';
2
+ export * from './contexts';
3
+ export * from './hooks';
4
+ export type { CustomShadowOptions } from './theme/shadows';
5
+ export type { GradientsPaletteOptions } from './theme/palette';
6
+ export type { ChartPaletteOptions } from './theme/palette';
7
+ export type { GridPaletteOptions } from './theme/palette';
8
+ export { defaultThemeOptions } from './theme/defaultThemeOptions';
9
+ export { default as fnComponentsOverrides } from './theme/overrides';
10
+ export type { HostThemeType } from './types';
package/dist/index.js CHANGED
@@ -14,6 +14,8 @@ import "@mui/material/styles";
14
14
  import "@mui/material";
15
15
  import "react/jsx-runtime";
16
16
  import "react";
17
+ import "@mui/x-date-pickers/AdapterDateFns";
18
+ import "@mui/x-date-pickers";
17
19
  import "date-fns/locale/es";
18
20
  import "date-fns/locale/fr";
19
21
  import "date-fns/locale/en-US";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,17 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ export default function SvgIcon(_theme: Theme): {
3
+ MuiSvgIcon: {
4
+ styleOverrides: {
5
+ fontSizeSmall: {
6
+ width: number;
7
+ height: number;
8
+ fontSize: string;
9
+ };
10
+ fontSizeLarge: {
11
+ width: number;
12
+ height: number;
13
+ fontSize: string;
14
+ };
15
+ };
16
+ };
17
+ };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
3
  "private": false,
4
- "version": "0.0.20",
4
+ "version": "0.0.23",
5
5
  "license": "UNLICENSED",
6
6
  "author": "M4L Team",
7
7
  "scripts": {
@@ -28,14 +28,14 @@
28
28
  "vite-tsconfig-paths": "^3.5.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@m4l/core": "^0.0.27",
31
+ "@m4l/core": "^0.0.32",
32
32
  "react": ">=18",
33
33
  "react-dom": "^18.0.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@emotion/styled": "^11.9.3",
37
37
  "@hookform/resolvers": "^2.9.3",
38
- "@m4l/core": "^0.0.27",
38
+ "@m4l/core": "^0.0.32",
39
39
  "@mui/icons-material": "^5.8.4",
40
40
  "@mui/lab": "^5.0.0-alpha.87",
41
41
  "@types/node": "^17.0.40",
@@ -1,10 +0,0 @@
1
- export * from './components';
2
- export * from './contexts';
3
- export * from './hooks';
4
- export type { CustomShadowOptions } from './theme/shadows';
5
- export type { GradientsPaletteOptions } from './theme/palette';
6
- export type { ChartPaletteOptions } from './theme/palette';
7
- export type { GridPaletteOptions } from './theme/palette';
8
- export { defaultThemeOptions } from './theme/defaultThemeOptions';
9
- export { default as fnComponentsOverrides } from './theme/overrides';
10
- export type { HostThemeType } from './types';