@m4l/graphics 0.1.29 → 0.1.30

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 (69) hide show
  1. package/contexts/HostThemeContext/index.9fe9854f.js +50 -0
  2. package/contexts/{index.2f4a4040.js → index.8c4de295.js} +1 -1
  3. package/hooks/index.64cf4fc4.js +34 -0
  4. package/hooks/index.d.ts +1 -1
  5. package/hooks/useHostTheme/index.d.ts +1 -1
  6. package/index.d.ts +1 -14
  7. package/index.js +38 -41
  8. package/package.json +2 -2
  9. package/utils/getColorPresets.d.ts +1 -1
  10. package/utils/index.22212127.js +113 -0
  11. package/utils/index.d.ts +3 -0
  12. package/{theme/palette.2baf72f5.js → vendor.158914a7.js} +20 -11
  13. package/contexts/HostThemeContext/index.a6a62c70.js +0 -50
  14. package/hooks/index.c13bc37e.js +0 -27
  15. package/hooks/useHostTheme/index.1c8e4ad7.js +0 -11
  16. package/theme/breakpoints.d.ts +0 -10
  17. package/theme/defaultThemeOptions.b2cdbe59.js +0 -36
  18. package/theme/defaultThemeOptions.d.ts +0 -2
  19. package/theme/overrides/Accordion.d.ts +0 -861
  20. package/theme/overrides/Autocomplete.d.ts +0 -26
  21. package/theme/overrides/Avatar.d.ts +0 -24
  22. package/theme/overrides/Backdrop.d.ts +0 -13
  23. package/theme/overrides/Badge.d.ts +0 -12
  24. package/theme/overrides/Breadcrumbs.d.ts +0 -11
  25. package/theme/overrides/Button.d.ts +0 -52
  26. package/theme/overrides/ButtonGroup.d.ts +0 -39
  27. package/theme/overrides/Card.d.ts +0 -36
  28. package/theme/overrides/Checkbox.d.ts +0 -18
  29. package/theme/overrides/ControlLabel.d.ts +0 -813
  30. package/theme/overrides/CssBaseline.d.ts +0 -42
  31. package/theme/overrides/DataGrid.d.ts +0 -1670
  32. package/theme/overrides/Dialog.d.ts +0 -55
  33. package/theme/overrides/Drawer.d.ts +0 -17
  34. package/theme/overrides/Fab.d.ts +0 -34
  35. package/theme/overrides/IconButton.d.ts +0 -23
  36. package/theme/overrides/Input.d.ts +0 -1661
  37. package/theme/overrides/InputLabel.d.ts +0 -14
  38. package/theme/overrides/Link.d.ts +0 -15
  39. package/theme/overrides/List.d.ts +0 -32
  40. package/theme/overrides/LoadingButton.d.ts +0 -811
  41. package/theme/overrides/Menu.d.ts +0 -15
  42. package/theme/overrides/Pagination.d.ts +0 -30
  43. package/theme/overrides/Paper.d.ts +0 -22
  44. package/theme/overrides/Popover.d.ts +0 -11
  45. package/theme/overrides/Progress.d.ts +0 -20
  46. package/theme/overrides/Radio.d.ts +0 -16
  47. package/theme/overrides/Skeleton.d.ts +0 -13
  48. package/theme/overrides/Slider.d.ts +0 -23
  49. package/theme/overrides/Stepper.d.ts +0 -10
  50. package/theme/overrides/SvgIcon.d.ts +0 -17
  51. package/theme/overrides/Switch.d.ts +0 -28
  52. package/theme/overrides/Table.d.ts +0 -3238
  53. package/theme/overrides/Tabs.d.ts +0 -845
  54. package/theme/overrides/Timeline.d.ts +0 -17
  55. package/theme/overrides/ToggleButton.d.ts +0 -43
  56. package/theme/overrides/Tooltip.d.ts +0 -13
  57. package/theme/overrides/Typography.d.ts +0 -13
  58. package/theme/overrides/index.d.ts +0 -2
  59. package/theme/overrides.7958c0ab.js +0 -1299
  60. package/theme/palette.d.ts +0 -323
  61. package/theme/shadows.bf8dc290.js +0 -61
  62. package/theme/shadows.d.ts +0 -67
  63. package/theme/stretch.d.ts +0 -9
  64. package/theme/typography.63fff3ec.js +0 -88
  65. package/theme/typography.d.ts +0 -132
  66. package/types/index.d.ts +0 -7
  67. package/utils/anchorEl.d.ts +0 -13
  68. package/utils/index.7ab4fc54.js +0 -159
  69. package/vendor.3b4b3674.js +0 -27
@@ -0,0 +1,50 @@
1
+ import { createContext as H, useState as E, useMemo as v, useCallback as M, useEffect as c } from "react";
2
+ import { CssBaseline as C } from "@mui/material";
3
+ import { createTheme as O, StyledEngineProvider as N, ThemeProvider as S } from "@mui/material/styles";
4
+ import { useHostTools as x, EmitEvents as n } from "@m4l/core";
5
+ import { jsx as r, jsxs as F } from "react/jsx-runtime";
6
+ const I = H(null);
7
+ function b(h) {
8
+ const {
9
+ children: a,
10
+ hostThemeOptions: t,
11
+ fnComponentsOverrides: i,
12
+ isMicroFrontEnd: o
13
+ } = h, [s, m] = E(t), {
14
+ events_add_listener: f,
15
+ events_remove_listener: _,
16
+ events_emit: d
17
+ } = x(), [u, p] = E(!0), T = v(() => {
18
+ const e = O(s);
19
+ return e.components = i(e), e;
20
+ }, [s]), l = M((e) => {
21
+ m(e);
22
+ }, []);
23
+ return c(() => (o && f(n.EMMIT_EVENT_HOST_THEME_CHANGE, l), () => {
24
+ o && _(n.EMMIT_EVENT_HOST_THEME_CHANGE, l);
25
+ }), []), c(() => {
26
+ if (u) {
27
+ p(!1);
28
+ return;
29
+ }
30
+ o || (m(t), d(n.EMMIT_EVENT_HOST_THEME_CHANGE, t));
31
+ }, [t]), console.log("final theme", T), /* @__PURE__ */ r(I.Provider, {
32
+ value: {
33
+ hostThemeOptions: s,
34
+ fnComponentsOverrides: i
35
+ },
36
+ children: /* @__PURE__ */ r(N, {
37
+ injectFirst: !0,
38
+ children: /* @__PURE__ */ F(S, {
39
+ theme: T,
40
+ children: [/* @__PURE__ */ r(C, {
41
+ enableColorScheme: !0
42
+ }), a]
43
+ })
44
+ })
45
+ });
46
+ }
47
+ export {
48
+ I as H,
49
+ b as a
50
+ };
@@ -1,4 +1,4 @@
1
1
  import "./FormatterContext/index.92336f4c.js";
2
2
  import "./LocalesContext/index.5b555637.js";
3
3
  import "date-fns/locale/en-US";
4
- import "./HostThemeContext/index.a6a62c70.js";
4
+ import "./HostThemeContext/index.9fe9854f.js";
@@ -0,0 +1,34 @@
1
+ import { useRef as n, useEffect as s, useState as u, useContext as f } from "react";
2
+ import { H as i } from "../contexts/HostThemeContext/index.9fe9854f.js";
3
+ import "../contexts/FormatterContext/index.92336f4c.js";
4
+ import "../contexts/LocalesContext/index.5b555637.js";
5
+ import "@mui/material/styles";
6
+ import "@mui/material/useMediaQuery";
7
+ function T() {
8
+ const e = n(!0);
9
+ return s(
10
+ () => () => {
11
+ e.current = !1;
12
+ },
13
+ []
14
+ ), e;
15
+ }
16
+ function d(e) {
17
+ const [r, t] = u(!1), o = e || 100;
18
+ return s(() => (window.onscroll = () => {
19
+ window.pageYOffset > o ? t(!0) : t(!1);
20
+ }, () => {
21
+ window.onscroll = null;
22
+ }), [o]), r;
23
+ }
24
+ const h = () => {
25
+ const e = f(i);
26
+ if (!e)
27
+ throw new Error("useHostTheme context must be use inside HostThemeProvider");
28
+ return e;
29
+ };
30
+ export {
31
+ d as a,
32
+ h as b,
33
+ T as u
34
+ };
package/hooks/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { useFirstRender } from './useFirstRender';
2
2
  export { useFormatter } from './useFormatter';
3
- export { useHostTheme } from './useHostTheme';
4
3
  export { useIsMountedRef } from './useIsMountedRef';
5
4
  export { useLocales } from './useLocales';
6
5
  export { useOffSetTop } from './useOffSetTop';
6
+ export { useHostTheme } from './useHostTheme';
7
7
  export { useResponsive, useResponsiveDesktop } from './useResponsive';
@@ -1 +1 @@
1
- export declare const useHostTheme: () => import("../..").HostThemeType;
1
+ export declare const useHostTheme: () => import("../../contexts/HostThemeContext/types").HostThemeType;
package/index.d.ts CHANGED
@@ -1,17 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './contexts';
3
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 { shadows, customShadows } from './theme/shadows';
10
- export * from './theme/stretch';
11
- export { palette, type ColorSchema } from './theme/palette';
12
- export { getColorPresets, colorPresets, defaultPreset } from './utils/getColorPresets';
13
- export { getFontValue as GetFontValue } from './utils/getFontValue';
14
- export * from './utils/strings';
15
- export { default as fnComponentsOverrides } from './theme/overrides';
16
- export type { HostThemeType } from './types';
17
- export * from './utils/anchorEl';
4
+ export * from './utils';
package/index.js CHANGED
@@ -1,18 +1,13 @@
1
- import { P as d } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
2
- import { F as c, a as P } from "./contexts/FormatterContext/index.92336f4c.js";
3
- import { L as C, a as F, g } from "./contexts/LocalesContext/index.5b555637.js";
4
- import { H as L, a as T } from "./contexts/HostThemeContext/index.a6a62c70.js";
1
+ import { P as l } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
2
+ import { F as d, a as F } from "./contexts/FormatterContext/index.92336f4c.js";
3
+ import { L as g, a as v, g as C } from "./contexts/LocalesContext/index.5b555637.js";
4
+ import { H as L, a as R } from "./contexts/HostThemeContext/index.9fe9854f.js";
5
5
  import { u as H } from "./hooks/useFirstRender/index.1e9b02fb.js";
6
- import { u as O } from "./hooks/useFormatter/index.57ac8cca.js";
7
- import { u as k } from "./hooks/useHostTheme/index.1c8e4ad7.js";
8
- import { u as y, a as z } from "./hooks/index.c13bc37e.js";
9
- import { u as B } from "./hooks/useLocales/index.f676279e.js";
10
- import { u as E, a as G } from "./hooks/useResponsive/index.fc5e1b4f.js";
11
- import { d as M } from "./theme/defaultThemeOptions.b2cdbe59.js";
12
- import { c as V, s as W } from "./theme/shadows.bf8dc290.js";
13
- import { p as q } from "./theme/palette.2baf72f5.js";
14
- import { C as K, a as Q, c as U, d as X, b as Y, g as Z } from "./utils/index.7ab4fc54.js";
15
- import { f as $ } from "./theme/overrides.7958c0ab.js";
6
+ import { u as S } from "./hooks/useFormatter/index.57ac8cca.js";
7
+ import { b as y, u as z, a as w } from "./hooks/index.64cf4fc4.js";
8
+ import { u as D } from "./hooks/useLocales/index.f676279e.js";
9
+ import { u as M, a as N } from "./hooks/useResponsive/index.fc5e1b4f.js";
10
+ import { C as V, b as j, c as q, a as A, d as E, g as G, i as J, o as K, p as Q, f as U, r as W, e as X, h as Y } from "./utils/index.22212127.js";
16
11
  import "@mui/material/styles";
17
12
  import "@mui/material";
18
13
  import "react/jsx-runtime";
@@ -22,34 +17,36 @@ import "@mui/x-date-pickers/AdapterDateFns";
22
17
  import "@mui/x-date-pickers";
23
18
  import "date-fns/locale/en-US";
24
19
  import "@mui/material/useMediaQuery";
25
- import "./theme/typography.63fff3ec.js";
26
- import "./vendor.3b4b3674.js";
20
+ import "@m4l/graphics";
21
+ import "./vendor.158914a7.js";
27
22
  export {
28
- K as Capitalize,
29
- c as FormatterContext,
30
- P as FormatterProvider,
31
- Q as GetFontValue,
23
+ V as Capitalize,
24
+ d as FormatterContext,
25
+ F as FormatterProvider,
32
26
  L as HostThemeContext,
33
- T as HostThemeProvider,
34
- C as LocalesContext,
35
- F as LocalesProvider,
36
- d as ProgressBarStyle,
37
- U as colorPresets,
38
- V as customShadows,
39
- X as defaultPreset,
40
- M as defaultThemeOptions,
41
- $ as fnComponentsOverrides,
42
- Y as getAnchorElPositionWindow,
43
- Z as getColorPresets,
44
- g as getLocaleFromNetwork,
45
- q as palette,
46
- W as shadows,
27
+ R as HostThemeProvider,
28
+ g as LocalesContext,
29
+ v as LocalesProvider,
30
+ l as ProgressBarStyle,
31
+ j as bluePreset,
32
+ q as colorPresets,
33
+ A as cyanPreset,
34
+ E as defaultPreset,
35
+ G as getColorPresets,
36
+ J as getFontValue,
37
+ C as getLocaleFromNetwork,
38
+ K as orangePreset,
39
+ Q as purplePreset,
40
+ U as pxToRem,
41
+ W as redPreset,
42
+ X as remToPx,
43
+ Y as responsiveFontSizes,
47
44
  H as useFirstRender,
48
- O as useFormatter,
49
- k as useHostTheme,
50
- y as useIsMountedRef,
51
- B as useLocales,
52
- z as useOffSetTop,
53
- E as useResponsive,
54
- G as useResponsiveDesktop
45
+ S as useFormatter,
46
+ y as useHostTheme,
47
+ z as useIsMountedRef,
48
+ D as useLocales,
49
+ w as useOffSetTop,
50
+ M as useResponsive,
51
+ N as useResponsiveDesktop
55
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "@mui/system": "^5.10.4",
14
14
  "@types/react": "^17.0.0 || ^18.0.0",
15
15
  "react": "^17.0.0 || ^18.0.0",
16
- "react-dom": "^17.0.0 || ^18.0.0"
16
+ "react-toastify": "9.0.5"
17
17
  },
18
18
  "files": [
19
19
  "*"
@@ -1,4 +1,4 @@
1
- import { ThemeColorPresets } from '../types';
1
+ import { ThemeColorPresets } from '../../../m4l_styles/src/types';
2
2
  export declare const colorPresets: ({
3
3
  LightSelected: string;
4
4
  LightSelectedHover: string;
@@ -0,0 +1,113 @@
1
+ import { useResponsive as m } from "@m4l/graphics";
2
+ import { useTheme as h } from "@mui/material/styles";
3
+ import { p as s } from "../vendor.158914a7.js";
4
+ const n = [
5
+ {
6
+ name: "default",
7
+ ...s.light.primary,
8
+ LightSelected: "#EBF9F1",
9
+ LightSelectedHover: "#D6F2E3",
10
+ DarkSelected: "#142827",
11
+ DarkSelectedHover: "#12342B"
12
+ },
13
+ {
14
+ name: "purple",
15
+ lighter: "#EBD6FD",
16
+ light: "#B985F4",
17
+ main: "#7635dc",
18
+ dark: "#431A9E",
19
+ darker: "#200A69",
20
+ contrastText: "#fff"
21
+ },
22
+ {
23
+ name: "cyan",
24
+ lighter: "#D1FFFC",
25
+ light: "#76F2FF",
26
+ main: "#1CCAFF",
27
+ dark: "#0E77B7",
28
+ darker: "#053D7A",
29
+ contrastText: s.light.grey[800]
30
+ },
31
+ {
32
+ name: "blue",
33
+ lighter: "#D1E9FC",
34
+ light: "#76B0F1",
35
+ main: "#2065D1",
36
+ dark: "#103996",
37
+ darker: "#061B64",
38
+ contrastText: "#fff"
39
+ },
40
+ {
41
+ name: "orange",
42
+ lighter: "#FEF4D4",
43
+ light: "#FED680",
44
+ main: "#fda92d",
45
+ dark: "#B66816",
46
+ darker: "#793908",
47
+ contrastText: s.light.grey[800]
48
+ },
49
+ {
50
+ name: "red",
51
+ lighter: "#FFE3D5",
52
+ light: "#FFC1AC",
53
+ main: "#FF3030",
54
+ dark: "#B71833",
55
+ darker: "#7A0930",
56
+ contrastText: "#fff"
57
+ }
58
+ ], u = n[0], f = n[1], F = n[2], y = n[3], k = n[4], x = n[5];
59
+ function P(e) {
60
+ return {
61
+ purple: f,
62
+ cyan: F,
63
+ blue: y,
64
+ orange: k,
65
+ red: x,
66
+ default: u
67
+ }[e];
68
+ }
69
+ function D(e) {
70
+ return Math.round(parseFloat(e) * 16);
71
+ }
72
+ function a(e) {
73
+ return `${e / 16}rem`;
74
+ }
75
+ function b({ sm: e, md: t, lg: r }) {
76
+ return {
77
+ "@media (min-width:600px)": {
78
+ fontSize: a(e)
79
+ },
80
+ "@media (min-width:900px)": {
81
+ fontSize: a(t)
82
+ },
83
+ "@media (min-width:1200px)": {
84
+ fontSize: a(r)
85
+ }
86
+ };
87
+ }
88
+ function S() {
89
+ return [...h().breakpoints.keys].reverse().reduce((r, o) => {
90
+ const i = m("up", o);
91
+ return !r && i ? o : r;
92
+ }, null) || "xs";
93
+ }
94
+ function T(e) {
95
+ const t = h(), r = S(), o = t.breakpoints.up(r === "xl" ? "lg" : r), p = (e === "h1" || e === "h2" || e === "h3" || e === "h4" || e === "h5" || e === "h6") && t.typography[e][o] ? t.typography[e][o] : t.typography[e], c = D(p.fontSize), l = Number(t.typography[e].lineHeight) * c, { fontWeight: g, letterSpacing: d } = t.typography[e];
96
+ return { fontSize: c, lineHeight: l, fontWeight: g, letterSpacing: d };
97
+ }
98
+ const z = (e) => e && e[0].toUpperCase() + e.slice(1) || "";
99
+ export {
100
+ z as C,
101
+ F as a,
102
+ y as b,
103
+ n as c,
104
+ u as d,
105
+ D as e,
106
+ a as f,
107
+ P as g,
108
+ b as h,
109
+ T as i,
110
+ k as o,
111
+ f as p,
112
+ x as r
113
+ };
@@ -0,0 +1,3 @@
1
+ export * from './getColorPresets';
2
+ export * from './getFontValue';
3
+ export * from './strings';
@@ -1,4 +1,14 @@
1
1
  import { alpha as t } from "@mui/material/styles";
2
+ import "./components/ProgressBarStyle/index.fb6fd9ed.js";
3
+ import "./contexts/FormatterContext/index.92336f4c.js";
4
+ import "./contexts/LocalesContext/index.5b555637.js";
5
+ import "./contexts/HostThemeContext/index.9fe9854f.js";
6
+ import "./hooks/useFirstRender/index.1e9b02fb.js";
7
+ import "./hooks/useFormatter/index.57ac8cca.js";
8
+ import "./hooks/index.64cf4fc4.js";
9
+ import "./hooks/useLocales/index.f676279e.js";
10
+ import "./hooks/useResponsive/index.fc5e1b4f.js";
11
+ import "./utils/index.22212127.js";
2
12
  function r(c, l) {
3
13
  return `linear-gradient(to bottom, ${c}, ${l})`;
4
14
  }
@@ -20,13 +30,13 @@ const a = {
20
30
  main: "#1890FF",
21
31
  dark: "#0C53B7",
22
32
  darker: "#04297A"
23
- }, n = {
33
+ }, o = {
24
34
  lighter: "#E9FCD4",
25
35
  light: "#AAF27F",
26
36
  main: "#54D62C",
27
37
  dark: "#229A16",
28
38
  darker: "#08660D"
29
- }, o = {
39
+ }, n = {
30
40
  lighter: "#FFF7CD",
31
41
  light: "#FFE16A",
32
42
  main: "#FFC107",
@@ -60,10 +70,10 @@ const a = {
60
70
  }, s = {
61
71
  primary: r(a.light, a.main),
62
72
  info: r(i.light, i.main),
63
- success: r(n.light, n.main),
64
- warning: r(o.light, o.main),
73
+ success: r(o.light, o.main),
74
+ warning: r(n.light, n.main),
65
75
  error: r(d.light, d.main)
66
- }, f = {
76
+ }, m = {
67
77
  violet: ["#826AF9", "#9E86FF", "#D0AEFF", "#F7D2FF"],
68
78
  blue: ["#2D99FF", "#83CFFF", "#A5F3FF", "#CCFAFF"],
69
79
  green: ["#2CD9C5", "#60F1C8", "#A4F7CC", "#C0F2DC"],
@@ -74,12 +84,12 @@ const a = {
74
84
  primary: { ...a, contrastText: "#fff" },
75
85
  secondary: { ...A, contrastText: "#fff" },
76
86
  info: { ...i, contrastText: "#fff" },
77
- success: { ...n, contrastText: F[800] },
78
- warning: { ...o, contrastText: F[800] },
87
+ success: { ...o, contrastText: F[800] },
88
+ warning: { ...n, contrastText: F[800] },
79
89
  error: { ...d, contrastText: "#fff" },
80
90
  grey: F,
81
91
  gradients: s,
82
- chart: f,
92
+ chart: m,
83
93
  divider: F[50024],
84
94
  action: {
85
95
  hover: F[5008],
@@ -90,7 +100,7 @@ const a = {
90
100
  hoverOpacity: 0.08,
91
101
  disabledOpacity: 0.48
92
102
  }
93
- }, C = {
103
+ }, R = {
94
104
  light: {
95
105
  ...e,
96
106
  mode: "light",
@@ -121,6 +131,5 @@ const a = {
121
131
  }
122
132
  };
123
133
  export {
124
- F as G,
125
- C as p
134
+ R as p
126
135
  };
@@ -1,50 +0,0 @@
1
- import { createContext as H, useState as E, useMemo as v, useCallback as M, useEffect as c } from "react";
2
- import { CssBaseline as C } from "@mui/material";
3
- import { createTheme as O, StyledEngineProvider as N, ThemeProvider as S } from "@mui/material/styles";
4
- import { useHostTools as x, EmitEvents as o } from "@m4l/core";
5
- import { jsx as n, jsxs as F } from "react/jsx-runtime";
6
- const I = H(null);
7
- function b(l) {
8
- const {
9
- children: h,
10
- hostThemeOptions: t,
11
- fnComponentsOverrides: i,
12
- isMicroFrontEnd: s
13
- } = l, [r, m] = E(t), {
14
- events_add_listener: a,
15
- events_remove_listener: _,
16
- events_emit: f
17
- } = x(), [d, u] = E(!0), p = v(() => {
18
- const e = O(r);
19
- return e.components = i(e), e;
20
- }, [r]), T = M((e) => {
21
- m(e);
22
- }, []);
23
- return c(() => (s && a(o.EMMIT_EVENT_HOST_THEME_CHANGE, T), () => {
24
- s && _(o.EMMIT_EVENT_HOST_THEME_CHANGE, T);
25
- }), []), c(() => {
26
- if (d) {
27
- u(!1);
28
- return;
29
- }
30
- s || (m(t), f(o.EMMIT_EVENT_HOST_THEME_CHANGE, t));
31
- }, [t]), /* @__PURE__ */ n(I.Provider, {
32
- value: {
33
- hostThemeOptions: r,
34
- fnComponentsOverrides: i
35
- },
36
- children: /* @__PURE__ */ n(N, {
37
- injectFirst: !0,
38
- children: /* @__PURE__ */ F(S, {
39
- theme: p,
40
- children: [/* @__PURE__ */ n(C, {
41
- enableColorScheme: !0
42
- }), h]
43
- })
44
- })
45
- });
46
- }
47
- export {
48
- I as H,
49
- b as a
50
- };
@@ -1,27 +0,0 @@
1
- import { useRef as f, useEffect as s, useState as n } from "react";
2
- import "../contexts/FormatterContext/index.92336f4c.js";
3
- import "../contexts/HostThemeContext/index.a6a62c70.js";
4
- import "../contexts/LocalesContext/index.5b555637.js";
5
- import "@mui/material/styles";
6
- import "@mui/material/useMediaQuery";
7
- function m() {
8
- const e = f(!0);
9
- return s(
10
- () => () => {
11
- e.current = !1;
12
- },
13
- []
14
- ), e;
15
- }
16
- function w(e) {
17
- const [r, t] = n(!1), o = e || 100;
18
- return s(() => (window.onscroll = () => {
19
- window.pageYOffset > o ? t(!0) : t(!1);
20
- }, () => {
21
- window.onscroll = null;
22
- }), [o]), r;
23
- }
24
- export {
25
- w as a,
26
- m as u
27
- };
@@ -1,11 +0,0 @@
1
- import { useContext as t } from "react";
2
- import { H as o } from "../../contexts/HostThemeContext/index.a6a62c70.js";
3
- const m = () => {
4
- const e = t(o);
5
- if (!e)
6
- throw new Error("useHostTheme context must be use inside HostThemeProvider");
7
- return e;
8
- };
9
- export {
10
- m as u
11
- };
@@ -1,10 +0,0 @@
1
- export declare const breakpoints: {
2
- values: {
3
- xs: number;
4
- sm: number;
5
- md: number;
6
- lg: number;
7
- xl: number;
8
- };
9
- };
10
- export default breakpoints;
@@ -1,36 +0,0 @@
1
- import { alpha as a } from "@mui/material/styles";
2
- import { t as e } from "./typography.63fff3ec.js";
3
- import { p as r, G as t } from "./palette.2baf72f5.js";
4
- import { s as o, c as s } from "./shadows.bf8dc290.js";
5
- import { g as i } from "../utils/index.7ab4fc54.js";
6
- import { b as m } from "../vendor.3b4b3674.js";
7
- const f = {
8
- typography: e,
9
- breakpoints: m,
10
- shadows: o.light,
11
- customShadows: {
12
- ...s.light,
13
- primary: `0 8px 16px 0 ${a(i("default").main, 0.24)}`
14
- },
15
- palette: {
16
- ...r.light,
17
- primary: {
18
- lighter: "#283829",
19
- light: "#26372b",
20
- main: "#00AB55",
21
- dark: "#007B55",
22
- darker: "#005249",
23
- LightSelected: "#EBF9F1",
24
- LightSelectedHover: "#D6F2E3",
25
- DarkSelected: "#142827",
26
- DarkSelectedHover: "#12342B"
27
- },
28
- text: { primary: t[800], secondary: t[700], disabled: t[500] },
29
- secondary: {
30
- main: "#34ac4e"
31
- }
32
- }
33
- };
34
- export {
35
- f as d
36
- };
@@ -1,2 +0,0 @@
1
- import { ThemeOptions } from '@mui/material/styles';
2
- export declare const defaultThemeOptions: ThemeOptions;