@max-ts/components 0.3.7 → 0.3.8
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/lib/components/ThemeProvider/ThemeProvider.mjs +8 -7
- package/lib/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.mjs +63 -45
- package/lib/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0/node_modules/@emotion/react/dist/emotion-react.browser.esm.mjs +2 -1
- package/lib/node_modules/.pnpm/@emotion_weak-memoize@0.4.0/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.mjs +12 -0
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { j as r } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
2
|
+
import s from "../../node_modules/.pnpm/@mui_material@6.4.6_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__136ab401d202919bd655185ec974b9a4/node_modules/@mui/material/styles/ThemeProvider.mjs";
|
|
3
|
+
import { a as i } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.mjs";
|
|
3
4
|
import t from "../../node_modules/.pnpm/@mui_material@6.4.6_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__136ab401d202919bd655185ec974b9a4/node_modules/@mui/material/CssBaseline/CssBaseline.mjs";
|
|
4
|
-
const
|
|
5
|
-
const { children:
|
|
6
|
-
return /* @__PURE__ */ r.jsxs(
|
|
5
|
+
const x = (o) => {
|
|
6
|
+
const { children: m, theme: e } = o;
|
|
7
|
+
return /* @__PURE__ */ r.jsx(s, { theme: e, children: /* @__PURE__ */ r.jsxs(i, { theme: e, children: [
|
|
7
8
|
/* @__PURE__ */ r.jsx(t, {}),
|
|
8
|
-
|
|
9
|
-
] });
|
|
9
|
+
m
|
|
10
|
+
] }) });
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
x as ThemeProvider
|
|
13
14
|
};
|
|
@@ -1,59 +1,77 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import { forwardRef as g, useContext as E } from "react";
|
|
3
|
+
import T from "../../../../../@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs";
|
|
4
|
+
import C from "../../../../../@babel_runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/extends.mjs";
|
|
5
|
+
import v from "../../../../../@emotion_weak-memoize@0.4.0/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.mjs";
|
|
6
|
+
import { getRegisteredStyles as P, registerStyles as S, insertStyles as w } from "../../../../../@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs";
|
|
7
|
+
import { serializeStyles as x } from "../../../../../@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs";
|
|
8
|
+
import { useInsertionEffectAlwaysWithSyncFallback as y } from "../../../../../@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@19.0.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs";
|
|
9
|
+
var d = /* @__PURE__ */ i.createContext(
|
|
8
10
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
9
11
|
// because this module is primarily intended for the browser and node
|
|
10
12
|
// but it's also required in react native and similar environments sometimes
|
|
11
13
|
// and we could have a special build just for that
|
|
12
14
|
// but this is much easier and the native packages
|
|
13
15
|
// might use a different theme context in the future anyway
|
|
14
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
16
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ T({
|
|
15
17
|
key: "css"
|
|
16
18
|
}) : null
|
|
17
19
|
);
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
var
|
|
22
|
-
return r
|
|
20
|
+
d.Provider;
|
|
21
|
+
var N = function(e) {
|
|
22
|
+
return /* @__PURE__ */ g(function(r, n) {
|
|
23
|
+
var a = E(d);
|
|
24
|
+
return e(r, a, n);
|
|
23
25
|
});
|
|
24
|
-
},
|
|
25
|
-
return i.useContext(
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
return
|
|
34
|
-
return
|
|
26
|
+
}, c = /* @__PURE__ */ i.createContext({}), p = function() {
|
|
27
|
+
return i.useContext(c);
|
|
28
|
+
}, z = function(e, r) {
|
|
29
|
+
if (typeof r == "function") {
|
|
30
|
+
var n = r(e);
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
33
|
+
return C({}, e, r);
|
|
34
|
+
}, O = /* @__PURE__ */ v(function(t) {
|
|
35
|
+
return v(function(e) {
|
|
36
|
+
return z(t, e);
|
|
37
|
+
});
|
|
38
|
+
}), D = function(e) {
|
|
39
|
+
var r = i.useContext(c);
|
|
40
|
+
return e.theme !== r && (r = O(r)(e.theme)), /* @__PURE__ */ i.createElement(c.Provider, {
|
|
41
|
+
value: r
|
|
42
|
+
}, e.children);
|
|
43
|
+
}, h = {}.hasOwnProperty, f = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", H = function(e, r) {
|
|
44
|
+
var n = {};
|
|
45
|
+
for (var a in r)
|
|
46
|
+
h.call(r, a) && (n[a] = r[a]);
|
|
47
|
+
return n[f] = e, n;
|
|
48
|
+
}, I = function(e) {
|
|
49
|
+
var r = e.cache, n = e.serialized, a = e.isStringTag;
|
|
50
|
+
return S(r, n, a), y(function() {
|
|
51
|
+
return w(r, n, a);
|
|
35
52
|
}), null;
|
|
36
|
-
},
|
|
37
|
-
var
|
|
38
|
-
typeof
|
|
39
|
-
var
|
|
40
|
-
typeof t.className == "string" ?
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
for (var
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
cache:
|
|
48
|
-
serialized:
|
|
49
|
-
isStringTag: typeof
|
|
50
|
-
}), /* @__PURE__ */ i.createElement(
|
|
51
|
-
}),
|
|
53
|
+
}, M = /* @__PURE__ */ N(function(t, e, r) {
|
|
54
|
+
var n = t.css;
|
|
55
|
+
typeof n == "string" && e.registered[n] !== void 0 && (n = e.registered[n]);
|
|
56
|
+
var a = t[f], u = [n], s = "";
|
|
57
|
+
typeof t.className == "string" ? s = P(e.registered, u, t.className) : t.className != null && (s = t.className + " ");
|
|
58
|
+
var l = x(u, void 0, i.useContext(c));
|
|
59
|
+
s += e.key + "-" + l.name;
|
|
60
|
+
var m = {};
|
|
61
|
+
for (var o in t)
|
|
62
|
+
h.call(t, o) && o !== "css" && o !== f && (m[o] = t[o]);
|
|
63
|
+
return m.className = s, r && (m.ref = r), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(I, {
|
|
64
|
+
cache: e,
|
|
65
|
+
serialized: l,
|
|
66
|
+
isStringTag: typeof a == "string"
|
|
67
|
+
}), /* @__PURE__ */ i.createElement(a, m));
|
|
68
|
+
}), U = M;
|
|
52
69
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
70
|
+
U as E,
|
|
71
|
+
c as T,
|
|
72
|
+
D as a,
|
|
73
|
+
H as c,
|
|
74
|
+
h,
|
|
75
|
+
p as u,
|
|
76
|
+
N as w
|
|
59
77
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as y, T as v, h, E as d, c } from "./emotion-element-f0de968e.browser.esm.mjs";
|
|
2
|
-
import { u as k } from "./emotion-element-f0de968e.browser.esm.mjs";
|
|
2
|
+
import { a as X, u as k } from "./emotion-element-f0de968e.browser.esm.mjs";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { insertStyles as p } from "../../../../../@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs";
|
|
5
5
|
import { useInsertionEffectWithLayoutFallback as f } from "../../../../../@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@19.0.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs";
|
|
@@ -63,6 +63,7 @@ function J() {
|
|
|
63
63
|
export {
|
|
64
64
|
C as Global,
|
|
65
65
|
v as ThemeContext,
|
|
66
|
+
X as ThemeProvider,
|
|
66
67
|
m as createElement,
|
|
67
68
|
E as css,
|
|
68
69
|
m as jsx,
|