@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.
@@ -1,13 +1,14 @@
1
1
  import { j as r } from "../../_virtual/jsx-runtime.mjs";
2
- import m 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";
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 p = (e) => {
5
- const { children: o, theme: s } = e;
6
- return /* @__PURE__ */ r.jsxs(m, { theme: s, children: [
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
- o
9
- ] });
9
+ m
10
+ ] }) });
10
11
  };
11
12
  export {
12
- p as ThemeProvider
13
+ x as ThemeProvider
13
14
  };
@@ -1,59 +1,77 @@
1
1
  import * as i from "react";
2
- import { forwardRef as E, useContext as g } from "react";
3
- import h from "../../../../../@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs";
4
- import { getRegisteredStyles as C, registerStyles as S, insertStyles as T } from "../../../../../@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs";
5
- import { serializeStyles as P } from "../../../../../@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs";
6
- import { useInsertionEffectAlwaysWithSyncFallback as w } 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";
7
- var u = /* @__PURE__ */ i.createContext(
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__ */ h({
16
+ typeof HTMLElement < "u" ? /* @__PURE__ */ T({
15
17
  key: "css"
16
18
  }) : null
17
19
  );
18
- u.Provider;
19
- var y = function(r) {
20
- return /* @__PURE__ */ E(function(a, e) {
21
- var n = g(u);
22
- return r(a, n, e);
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
- }, v = /* @__PURE__ */ i.createContext({}), A = function() {
25
- return i.useContext(v);
26
- }, d = {}.hasOwnProperty, l = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", F = function(r, a) {
27
- var e = {};
28
- for (var n in a)
29
- d.call(a, n) && (e[n] = a[n]);
30
- return e[l] = r, e;
31
- }, N = function(r) {
32
- var a = r.cache, e = r.serialized, n = r.isStringTag;
33
- return S(a, e, n), w(function() {
34
- return T(a, e, n);
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
- }, x = /* @__PURE__ */ y(function(t, r, a) {
37
- var e = t.css;
38
- typeof e == "string" && r.registered[e] !== void 0 && (e = r.registered[e]);
39
- var n = t[l], m = [e], o = "";
40
- typeof t.className == "string" ? o = C(r.registered, m, t.className) : t.className != null && (o = t.className + " ");
41
- var f = P(m, void 0, i.useContext(v));
42
- o += r.key + "-" + f.name;
43
- var c = {};
44
- for (var s in t)
45
- d.call(t, s) && s !== "css" && s !== l && (c[s] = t[s]);
46
- return c.className = o, a && (c.ref = a), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(N, {
47
- cache: r,
48
- serialized: f,
49
- isStringTag: typeof n == "string"
50
- }), /* @__PURE__ */ i.createElement(n, c));
51
- }), L = x;
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
- L as E,
54
- v as T,
55
- F as c,
56
- d as h,
57
- A as u,
58
- y as w
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,
@@ -0,0 +1,12 @@
1
+ var u = function(n) {
2
+ var t = /* @__PURE__ */ new WeakMap();
3
+ return function(e) {
4
+ if (t.has(e))
5
+ return t.get(e);
6
+ var a = n(e);
7
+ return t.set(e, a), a;
8
+ };
9
+ };
10
+ export {
11
+ u as default
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/components",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "browser": "./src/index.ts",
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",