@m4l/graphics 0.1.9 → 0.1.11
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.
- package/components/ProgressBarStyle/index.d.ts +1 -2
- package/contexts/HostThemeContext/index.a6a62c70.js +50 -0
- package/contexts/HostThemeContext/index.d.ts +2 -2
- package/contexts/LocalesContext/helper.d.ts +4 -0
- package/contexts/LocalesContext/index.ca1e2149.js +111 -0
- package/contexts/LocalesContext/index.d.ts +3 -17
- package/contexts/LocalesContext/types.d.ts +26 -0
- package/contexts/index.a0e7894e.js +3 -0
- package/contexts/index.d.ts +2 -0
- package/hooks/{index.9ec64bcf.js → index.2942e1ab.js} +2 -2
- package/hooks/useHostTheme/{index.b3063684.js → index.1c8e4ad7.js} +1 -1
- package/hooks/useLocales/{index.680b143a.js → index.ca679977.js} +1 -1
- package/hooks/useLocales/index.d.ts +1 -1
- package/index.js +34 -35
- package/package.json +1 -1
- package/contexts/HostThemeContext/index.c6db12d4.js +0 -53
- package/contexts/LocalesContext/index.c10c0bb5.js +0 -53
- package/contexts/index.993249c2.js +0 -2
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function ProgressBarStyle(): JSX.Element;
|
|
1
|
+
export declare function ProgressBarStyle(): any;
|
|
@@ -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 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,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HostThemeProviderProps } from './types';
|
|
3
|
-
declare const HostThemeContext: import("react").Context<import("./types").HostThemeType>;
|
|
4
|
-
declare function HostThemeProvider(props: HostThemeProviderProps):
|
|
3
|
+
declare const HostThemeContext: import("react").Context<import("./types").HostThemeType | null>;
|
|
4
|
+
declare function HostThemeProvider(props: HostThemeProviderProps): any;
|
|
5
5
|
export { HostThemeProvider, HostThemeContext };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BaseLocale, LocaleType, NetworkLocaleType } from './types';
|
|
2
|
+
export declare function getLocaleFromNetwork(locale: NetworkLocaleType, host_static_assets: string, environment_assets: string): Promise<LocaleType>;
|
|
3
|
+
export declare function joinLocale(baseLocale: BaseLocale): string;
|
|
4
|
+
export declare function splitLocale(locale: string): BaseLocale;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { createContext as T, useState as k, useCallback as w, useEffect as E } from "react";
|
|
2
|
+
import { AdapterDateFns as A } from "@mui/x-date-pickers/AdapterDateFns";
|
|
3
|
+
import { LocalizationProvider as F } from "@mui/x-date-pickers";
|
|
4
|
+
import { useEnvironment as O, useNetwork as P, useHostTools as U, useLocalStorage as j, EmitEvents as h, setLocalStorage as x } from "@m4l/core";
|
|
5
|
+
import v from "date-fns/locale/en-US";
|
|
6
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
7
|
+
async function q(o, t, n) {
|
|
8
|
+
const l = u(o), e = { ...o };
|
|
9
|
+
console.log("baseLocale initia", o, t, n);
|
|
10
|
+
let i;
|
|
11
|
+
return l === "es" ? i = (await import("date-fns/locale/es")).default : l === "fr" ? i = (await import("date-fns/locale/fr")).default : l === "en-US" ? i = v : (i = v, e.lang = "en", e.script = void 0, e.region = "US", e.url_icon = `${t}/${n}/frontend/commons/assets/icons/langs/lang_en.svg`, e.name = "English US*"), console.log("getLocale", l, e, i), {
|
|
12
|
+
...e,
|
|
13
|
+
module: i,
|
|
14
|
+
localeString: u(e)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function u(o) {
|
|
18
|
+
let t = o.lang;
|
|
19
|
+
return o.script && o.script !== "" && (t = t + "-" + o.script), o.region && o.region !== "" && (t = t + "-" + o.region), console.log(
|
|
20
|
+
"joinLocale",
|
|
21
|
+
o.region && o.region !== "",
|
|
22
|
+
o.region,
|
|
23
|
+
t + "-" + o.region,
|
|
24
|
+
t,
|
|
25
|
+
o
|
|
26
|
+
), t;
|
|
27
|
+
}
|
|
28
|
+
function $(o) {
|
|
29
|
+
console.log("splitLocale", o);
|
|
30
|
+
const t = new Intl.Locale(o);
|
|
31
|
+
return {
|
|
32
|
+
lang: t.language || "",
|
|
33
|
+
script: t.script,
|
|
34
|
+
region: t.region
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
const I = T(null);
|
|
38
|
+
function B(o) {
|
|
39
|
+
const {
|
|
40
|
+
children: t,
|
|
41
|
+
isMicroFrontEnd: n,
|
|
42
|
+
localeHost: l,
|
|
43
|
+
getLocaleFromNetwork: e
|
|
44
|
+
} = o;
|
|
45
|
+
if (n && !l)
|
|
46
|
+
throw Error("Must set localeHost in microfrontend");
|
|
47
|
+
if (!n && !e)
|
|
48
|
+
throw Error("Must set getLocaleFromNetwork in host");
|
|
49
|
+
const {
|
|
50
|
+
domain_token: i,
|
|
51
|
+
host_static_assets: f,
|
|
52
|
+
environment_assets: d
|
|
53
|
+
} = O(), {
|
|
54
|
+
networkOperation: S
|
|
55
|
+
} = P(), {
|
|
56
|
+
events_add_listener: L,
|
|
57
|
+
events_remove_listener: H,
|
|
58
|
+
events_emit: C
|
|
59
|
+
} = U(), [s, m] = k(() => {
|
|
60
|
+
if (n)
|
|
61
|
+
return l;
|
|
62
|
+
}), [p, N] = j("localeHost", navigator.language), _ = w((r) => {
|
|
63
|
+
m(r);
|
|
64
|
+
}, []);
|
|
65
|
+
if (E(() => (n && L(h.EMMIT_EVENT_HOST_LOCALE_CHANGE, _), () => {
|
|
66
|
+
n && H("host_theme_change", _);
|
|
67
|
+
}), []), E(() => {
|
|
68
|
+
let r = !0;
|
|
69
|
+
if (!n && !!e)
|
|
70
|
+
return console.log("newLocaleString", `${f}/${d}/frontend/commons/assets/icons/langs/lang_en.svg`), S({
|
|
71
|
+
method: "POST",
|
|
72
|
+
endPoint: "na/locales",
|
|
73
|
+
data: {
|
|
74
|
+
...$(p),
|
|
75
|
+
domain_token: i
|
|
76
|
+
}
|
|
77
|
+
}).then((c) => {
|
|
78
|
+
console.log("Response", c), r && e(c.data, f, d).then((a) => {
|
|
79
|
+
m(a), x("localeHost", a.localeString), console.log("Set localeHost", a.localeString), C(h.EMMIT_EVENT_HOST_LOCALE_CHANGE, a);
|
|
80
|
+
});
|
|
81
|
+
}).finally(() => {
|
|
82
|
+
}), function() {
|
|
83
|
+
r = !1;
|
|
84
|
+
};
|
|
85
|
+
}, [p]), !s)
|
|
86
|
+
return /* @__PURE__ */ g("div", {
|
|
87
|
+
children: "Cargando localeHost"
|
|
88
|
+
});
|
|
89
|
+
const M = (r) => {
|
|
90
|
+
(r.lang !== s.lang || r.script !== s.script || r.region !== s.region) && N(u(r));
|
|
91
|
+
};
|
|
92
|
+
return /* @__PURE__ */ g(I.Provider, {
|
|
93
|
+
value: {
|
|
94
|
+
currentLocale: s,
|
|
95
|
+
onChangeLocale: M
|
|
96
|
+
},
|
|
97
|
+
children: /* @__PURE__ */ g(F, {
|
|
98
|
+
dateAdapter: A,
|
|
99
|
+
adapterLocale: s.module,
|
|
100
|
+
dateFormats: {
|
|
101
|
+
hours24h: "23"
|
|
102
|
+
},
|
|
103
|
+
children: t
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
I as L,
|
|
109
|
+
B as a,
|
|
110
|
+
q as g
|
|
111
|
+
};
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
export declare type LangType = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
locale: Locale;
|
|
7
|
-
icon: string;
|
|
8
|
-
};
|
|
9
|
-
export declare type LocalesContextProps = {
|
|
10
|
-
currentLang: LangType;
|
|
11
|
-
onChangeLang: (newlang: string) => void;
|
|
12
|
-
allLang: Array<LangType>;
|
|
13
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LocalesProviderProps, LocalesContextProps } from './types';
|
|
14
3
|
declare const LocalesContext: import("react").Context<LocalesContextProps | null>;
|
|
15
|
-
declare
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
};
|
|
18
|
-
declare function LocalesProvider({ children }: LocalesProviderProps): JSX.Element;
|
|
4
|
+
declare function LocalesProvider(props: LocalesProviderProps): any;
|
|
19
5
|
export { LocalesProvider, LocalesContext };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { Locale } from 'date-fns';
|
|
3
|
+
export declare type SupportedLocales = 'en-US' | 'es' | 'fr';
|
|
4
|
+
export interface BaseLocale {
|
|
5
|
+
lang: string;
|
|
6
|
+
script?: string;
|
|
7
|
+
region?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface NetworkLocaleType extends BaseLocale {
|
|
10
|
+
name: string;
|
|
11
|
+
url_icon: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LocaleType extends NetworkLocaleType {
|
|
14
|
+
module: Locale;
|
|
15
|
+
localeString: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type LocalesProviderProps = {
|
|
18
|
+
isMicroFrontEnd: boolean;
|
|
19
|
+
localeHost?: LocaleType;
|
|
20
|
+
getLocaleFromNetwork?: (locale: NetworkLocaleType, host_static_assets: string, environment_assets: string) => Promise<LocaleType>;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
};
|
|
23
|
+
export declare type LocalesContextProps = {
|
|
24
|
+
currentLocale?: LocaleType;
|
|
25
|
+
onChangeLocale: (newLocaleString: BaseLocale) => void;
|
|
26
|
+
};
|
package/contexts/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useRef as n, useEffect as s, useState as r } from "react";
|
|
2
2
|
import "@mui/material/styles";
|
|
3
3
|
import "@mui/material/useMediaQuery";
|
|
4
|
-
import "../contexts/LocalesContext/index.
|
|
5
|
-
import "../contexts/HostThemeContext/index.
|
|
4
|
+
import "../contexts/LocalesContext/index.ca1e2149.js";
|
|
5
|
+
import "../contexts/HostThemeContext/index.a6a62c70.js";
|
|
6
6
|
function a() {
|
|
7
7
|
const e = n(!0);
|
|
8
8
|
return s(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useLocales: () => import("../../contexts/LocalesContext").LocalesContextProps;
|
|
1
|
+
export declare const useLocales: () => import("../../contexts/LocalesContext/types").LocalesContextProps;
|
package/index.js
CHANGED
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import { L as
|
|
3
|
-
import { H as
|
|
4
|
-
import { u as L, a as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { d as
|
|
9
|
-
import { c as
|
|
10
|
-
import { p as
|
|
11
|
-
import { C as
|
|
12
|
-
import { f as
|
|
1
|
+
import { P as l } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
|
|
2
|
+
import { L as n, a as c, g as P } from "./contexts/LocalesContext/index.ca1e2149.js";
|
|
3
|
+
import { H as C, a as g } from "./contexts/HostThemeContext/index.a6a62c70.js";
|
|
4
|
+
import { u as L, a as T } from "./hooks/useResponsive/index.fc5e1b4f.js";
|
|
5
|
+
import { u as w, a as O } from "./hooks/index.2942e1ab.js";
|
|
6
|
+
import { u as S } from "./hooks/useLocales/index.ca679977.js";
|
|
7
|
+
import { u as F } from "./hooks/useHostTheme/index.1c8e4ad7.js";
|
|
8
|
+
import { d as z } from "./theme/defaultThemeOptions.9b9e7503.js";
|
|
9
|
+
import { c as D, s as G } from "./theme/shadows.bf8dc290.js";
|
|
10
|
+
import { p as M } from "./theme/palette.2baf72f5.js";
|
|
11
|
+
import { C as V, a as b, c as j, d as q, g as A } from "./utils/index.d8b24456.js";
|
|
12
|
+
import { f as J } from "./theme/overrides.7958c0ab.js";
|
|
13
13
|
import "@mui/material/styles";
|
|
14
14
|
import "@mui/material";
|
|
15
15
|
import "react/jsx-runtime";
|
|
16
16
|
import "react";
|
|
17
17
|
import "@mui/x-date-pickers/AdapterDateFns";
|
|
18
18
|
import "@mui/x-date-pickers";
|
|
19
|
-
import "date-fns/locale/es";
|
|
20
|
-
import "date-fns/locale/fr";
|
|
21
|
-
import "date-fns/locale/en-US";
|
|
22
19
|
import "@m4l/core";
|
|
20
|
+
import "date-fns/locale/en-US";
|
|
23
21
|
import "@mui/material/useMediaQuery";
|
|
24
22
|
import "./theme/typography.f5eadf47.js";
|
|
25
23
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
S as
|
|
24
|
+
V as Capitalize,
|
|
25
|
+
b as GetFontValue,
|
|
26
|
+
C as HostThemeContext,
|
|
27
|
+
g as HostThemeProvider,
|
|
28
|
+
n as LocalesContext,
|
|
29
|
+
c as LocalesProvider,
|
|
30
|
+
l as ProgressBarStyle,
|
|
31
|
+
j as colorPresets,
|
|
32
|
+
D as customShadows,
|
|
33
|
+
q as defaultPreset,
|
|
34
|
+
z as defaultThemeOptions,
|
|
35
|
+
J as fnComponentsOverrides,
|
|
36
|
+
A as getColorPresets,
|
|
37
|
+
P as getLocaleFromNetwork,
|
|
38
|
+
M as palette,
|
|
39
|
+
G as shadows,
|
|
40
|
+
F as useHostTheme,
|
|
41
|
+
w as useIsMountedRef,
|
|
42
|
+
S as useLocales,
|
|
43
|
+
O as useOffSetTop,
|
|
45
44
|
L as useResponsive,
|
|
46
|
-
|
|
45
|
+
T as useResponsiveDesktop
|
|
47
46
|
};
|
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { createContext as v, useState as c, useMemo as H, useCallback as O, useEffect as h } from "react";
|
|
2
|
-
import { CssBaseline as C } from "@mui/material";
|
|
3
|
-
import { createTheme as M, StyledEngineProvider as F, ThemeProvider as x } from "@mui/material/styles";
|
|
4
|
-
import { voidFunction as S, useHostTools as N, EmitEvents as T } from "@m4l/core";
|
|
5
|
-
import { jsx as n, jsxs as P } from "react/jsx-runtime";
|
|
6
|
-
const j = {
|
|
7
|
-
hostThemeOptions: {},
|
|
8
|
-
fnComponentsOverrides: S
|
|
9
|
-
}, I = v(j);
|
|
10
|
-
function k(a) {
|
|
11
|
-
const {
|
|
12
|
-
children: l,
|
|
13
|
-
hostThemeOptions: t,
|
|
14
|
-
fnComponentsOverrides: r,
|
|
15
|
-
isMicroFrontEnd: o
|
|
16
|
-
} = a, [s, i] = c(t), {
|
|
17
|
-
events_add_listener: d,
|
|
18
|
-
events_remove_listener: f,
|
|
19
|
-
events_emit: E
|
|
20
|
-
} = N(), [u, p] = c(!0), _ = H(() => {
|
|
21
|
-
const e = M(s);
|
|
22
|
-
return e.components = r(e), e;
|
|
23
|
-
}, [s]), m = O((e) => {
|
|
24
|
-
i(e);
|
|
25
|
-
}, []);
|
|
26
|
-
return h(() => (o && d(T.EMMIT_EVENT_HOST_THEME_CHANGE, m), () => {
|
|
27
|
-
o && f("host_theme_change", m);
|
|
28
|
-
}), []), h(() => {
|
|
29
|
-
if (u) {
|
|
30
|
-
p(!1);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
o || (i(t), E(T.EMMIT_EVENT_HOST_THEME_CHANGE, t));
|
|
34
|
-
}, [t]), /* @__PURE__ */ n(I.Provider, {
|
|
35
|
-
value: {
|
|
36
|
-
hostThemeOptions: s,
|
|
37
|
-
fnComponentsOverrides: r
|
|
38
|
-
},
|
|
39
|
-
children: /* @__PURE__ */ n(F, {
|
|
40
|
-
injectFirst: !0,
|
|
41
|
-
children: /* @__PURE__ */ P(x, {
|
|
42
|
-
theme: _,
|
|
43
|
-
children: [/* @__PURE__ */ n(C, {
|
|
44
|
-
enableColorScheme: !0
|
|
45
|
-
}), l]
|
|
46
|
-
})
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
I as H,
|
|
52
|
-
k as a
|
|
53
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { createContext as f, useMemo as u, useState as L } from "react";
|
|
2
|
-
import { AdapterDateFns as d } from "@mui/x-date-pickers/AdapterDateFns";
|
|
3
|
-
import { LocalizationProvider as v } from "@mui/x-date-pickers";
|
|
4
|
-
import p from "date-fns/locale/es";
|
|
5
|
-
import h from "date-fns/locale/fr";
|
|
6
|
-
import S from "date-fns/locale/en-US";
|
|
7
|
-
import { useLocalStorage as _, useEnvironment as $ } from "@m4l/core";
|
|
8
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
9
|
-
const x = f(null);
|
|
10
|
-
function D({
|
|
11
|
-
children: r
|
|
12
|
-
}) {
|
|
13
|
-
const [l, c] = _("langStorage", "en"), {
|
|
14
|
-
host_static_assets: a,
|
|
15
|
-
environment_assets: n
|
|
16
|
-
} = $(), o = u(() => [{
|
|
17
|
-
label: "English",
|
|
18
|
-
value: "en",
|
|
19
|
-
locale: S,
|
|
20
|
-
icon: `${a}/${n}/frontend/commons/assets/icons/langs/lang_en.svg`
|
|
21
|
-
}, {
|
|
22
|
-
label: "Espa\xF1ol",
|
|
23
|
-
value: "es",
|
|
24
|
-
locale: p,
|
|
25
|
-
icon: `${a}/${n}/frontend/commons/assets/icons/langs/lang_es.svg`
|
|
26
|
-
}, {
|
|
27
|
-
label: "French",
|
|
28
|
-
value: "fr",
|
|
29
|
-
locale: h,
|
|
30
|
-
icon: `${a}/${n}/frontend/commons/assets/icons/langs/lang_fr.svg`
|
|
31
|
-
}], []), [s, i] = L(o.find((e) => e.value === l) || o[0]), m = (e) => {
|
|
32
|
-
c(e), i(o.find((g) => g.value === e) || o[0]);
|
|
33
|
-
};
|
|
34
|
-
return /* @__PURE__ */ t(x.Provider, {
|
|
35
|
-
value: {
|
|
36
|
-
currentLang: s,
|
|
37
|
-
onChangeLang: m,
|
|
38
|
-
allLang: o
|
|
39
|
-
},
|
|
40
|
-
children: /* @__PURE__ */ t(v, {
|
|
41
|
-
dateAdapter: d,
|
|
42
|
-
adapterLocale: s.locale,
|
|
43
|
-
dateFormats: {
|
|
44
|
-
hours24h: "23"
|
|
45
|
-
},
|
|
46
|
-
children: r
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
x as L,
|
|
52
|
-
D as a
|
|
53
|
-
};
|