jcicl 0.0.267 → 0.0.269

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.
@@ -6,7 +6,7 @@ import W, { Children as Oe, isValidElement as G, cloneElement as J } from "react
6
6
  import { P as e, b as E, a as fe, s as te, u as de, g as je, d as Fe } from "./DefaultPropsProvider.js";
7
7
  import { jsx as I, jsxs as $e } from "react/jsx-runtime";
8
8
  import { k as ne } from "./emotion-react.browser.esm.js";
9
- import { d as Ie, _ as Ue, e as ze, f as ue, a as _e, u as ce, b as H, r as Xe } from "./TransitionGroupContext.js";
9
+ import { d as Ie, _ as Ue, e as ze, f as ue, b as _e, a as ce, c as H, r as Xe } from "./TransitionGroupContext.js";
10
10
  import { _ as Ye } from "./emotion-styled.browser.esm.js";
11
11
  import { e as Ae } from "./elementTypeAcceptingRef.js";
12
12
  import { i as pe } from "./isFocusVisible.js";
package/.chunks/Paper.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as P from "react";
2
2
  import { a as b, g as h, s as g, u as w, b as T, e as u, P as a, d as $, f } from "./DefaultPropsProvider.js";
3
- import { u as x } from "./useTheme.js";
3
+ import { a as x } from "./useTheme.js";
4
4
  import { jsx as O } from "react/jsx-runtime";
5
5
  import { m as C } from "./memoTheme.js";
6
6
  import { c as N } from "./chainPropTypes.js";
package/.chunks/Popper.js CHANGED
@@ -4,7 +4,7 @@ import * as L from "react";
4
4
  import { jsx as be } from "react/jsx-runtime";
5
5
  import { o as ze, P as jt, H as we, c as Dt } from "./Portal.js";
6
6
  import { c as Mt } from "./chainPropTypes.js";
7
- import { r as at, u as Ge, c as Je } from "./TransitionGroupContext.js";
7
+ import { r as at, a as Ge, u as Je } from "./TransitionGroupContext.js";
8
8
  var B = "top", N = "bottom", V = "right", $ = "left", Ce = "auto", le = [B, N, V, $], ee = "start", fe = "end", Ct = "clippingParents", it = "viewport", ie = "popper", Bt = "reference", Ke = /* @__PURE__ */ le.reduce(function(e, t) {
9
9
  return e.concat([t + "-" + ee, t + "-" + fe]);
10
10
  }, []), st = /* @__PURE__ */ [].concat(le, [Ce]).reduce(function(e, t) {
package/.chunks/Portal.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as p from "react";
2
2
  import w from "react";
3
3
  import { r as ct, m as pt, a as ft } from "./resolveComponentProps.js";
4
- import { u as H, _ as dt, e as Et, f as B, a as mt, c as U, s as j } from "./TransitionGroupContext.js";
4
+ import { a as H, _ as dt, e as Et, f as B, b as mt, u as U, s as j } from "./TransitionGroupContext.js";
5
5
  import { P as e } from "./DefaultPropsProvider.js";
6
- import { u as ht } from "./useTheme.js";
6
+ import { a as ht } from "./useTheme.js";
7
7
  import { jsx as $ } from "react/jsx-runtime";
8
8
  import { c as K } from "./chainPropTypes.js";
9
9
  import * as xt from "react-dom";
@@ -7,9 +7,9 @@ import { o as ge, g as yo, e as go, b as Et, T as Rt, r as St, a as Ro, P as wt,
7
7
  import { m as ue } from "./memoTheme.js";
8
8
  import { c as ro } from "./createSimplePaletteValueFilter.js";
9
9
  import { u as Pt } from "./index.js";
10
- import { u as Ee, c as oo, r as Pe, b as wo } from "./TransitionGroupContext.js";
10
+ import { a as Ee, u as oo, r as Pe, c as wo } from "./TransitionGroupContext.js";
11
11
  import { e as It } from "./resolveComponentProps.js";
12
- import { b as Go, u as Nt } from "./useTheme.js";
12
+ import { b as Go, a as Nt } from "./useTheme.js";
13
13
  import { P as Ft } from "./Paper.js";
14
14
  import { c as Mt } from "./chainPropTypes.js";
15
15
  import { i as kt } from "./integerPropType.js";
@@ -78,13 +78,13 @@ const w = p.createContext(null);
78
78
  export {
79
79
  f as T,
80
80
  L as _,
81
- R as a,
82
- b,
83
- d as c,
81
+ P as a,
82
+ R as b,
83
+ b as c,
84
84
  h as d,
85
85
  j as e,
86
86
  w as f,
87
87
  _ as r,
88
88
  y as s,
89
- P as u
89
+ d as u
90
90
  };
@@ -0,0 +1,66 @@
1
+ import * as c from "react";
2
+ import { u as p } from "./useTheme.js";
3
+ import { g as h } from "./TextField.js";
4
+ import { u as v } from "./TransitionGroupContext.js";
5
+ function g(n, i, e, o, a) {
6
+ const [r, f] = c.useState(() => a && e ? e(n).matches : o ? o(n).matches : i);
7
+ return v(() => {
8
+ if (!e)
9
+ return;
10
+ const u = e(n), t = () => {
11
+ f(u.matches);
12
+ };
13
+ return t(), u.addEventListener("change", t), () => {
14
+ u.removeEventListener("change", t);
15
+ };
16
+ }, [n, e]), r;
17
+ }
18
+ const E = {
19
+ ...c
20
+ }, d = E.useSyncExternalStore;
21
+ function S(n, i, e, o, a) {
22
+ const r = c.useCallback(() => i, [i]), f = c.useMemo(() => {
23
+ if (a && e)
24
+ return () => e(n).matches;
25
+ if (o !== null) {
26
+ const {
27
+ matches: s
28
+ } = o(n);
29
+ return () => s;
30
+ }
31
+ return r;
32
+ }, [r, n, o, a, e]), [u, t] = c.useMemo(() => {
33
+ if (e === null)
34
+ return [r, () => () => {
35
+ }];
36
+ const s = e(n);
37
+ return [() => s.matches, (m) => (s.addEventListener("change", m), () => {
38
+ s.removeEventListener("change", m);
39
+ })];
40
+ }, [r, e, n]);
41
+ return d(t, u, f);
42
+ }
43
+ function L(n, i = {}) {
44
+ const e = p(), o = typeof window < "u" && typeof window.matchMedia < "u", {
45
+ defaultMatches: a = !1,
46
+ matchMedia: r = o ? window.matchMedia : null,
47
+ ssrMatchMedia: f = null,
48
+ noSsr: u = !1
49
+ } = h({
50
+ name: "MuiUseMediaQuery",
51
+ props: i,
52
+ theme: e
53
+ });
54
+ process.env.NODE_ENV !== "production" && typeof n == "function" && e === null && console.error(["MUI: The `query` argument provided is invalid.", "You are providing a function without a theme in the context.", "One of the parent elements needs to use a ThemeProvider."].join(`
55
+ `));
56
+ let t = typeof n == "function" ? n(e) : n;
57
+ t = t.replace(/^@media( ?)/m, "");
58
+ const s = (d !== void 0 ? S : g)(t, a, r, f, u);
59
+ return process.env.NODE_ENV !== "production" && c.useDebugValue({
60
+ query: t,
61
+ match: s
62
+ }), s;
63
+ }
64
+ export {
65
+ L as u
66
+ };
@@ -1,8 +1,8 @@
1
1
  import { r as T, m as h, a as k } from "./resolveComponentProps.js";
2
- import { u as E } from "./TransitionGroupContext.js";
2
+ import { a as E } from "./TransitionGroupContext.js";
3
3
  function j(o, r) {
4
4
  const {
5
- className: S,
5
+ className: u,
6
6
  elementType: P,
7
7
  ownerState: n,
8
8
  externalForwardedProps: w,
@@ -25,14 +25,14 @@ function j(o, r) {
25
25
  },
26
26
  internalRef: y
27
27
  } = h({
28
- className: S,
28
+ className: u,
29
29
  ...m,
30
30
  externalForwardedProps: o === "root" ? x : void 0,
31
31
  externalSlotProps: e
32
32
  }), F = E(y, e == null ? void 0 : e.ref, r.ref), f = s ? s(d) : {}, g = {
33
33
  ...n,
34
34
  ...f
35
- }, i = o === "root" ? c || l : c, u = k(a, {
35
+ }, i = o === "root" ? c || l : c, S = k(a, {
36
36
  ...o === "root" && !l && !t[o] && p,
37
37
  ...o !== "root" && !t[o] && p,
38
38
  ...d,
@@ -42,8 +42,8 @@ function j(o, r) {
42
42
  ref: F
43
43
  }, g);
44
44
  return Object.keys(f).forEach((C) => {
45
- delete u[C];
46
- }), [a, u];
45
+ delete S[C];
46
+ }), [a, S];
47
47
  }
48
48
  export {
49
49
  j as u
@@ -17,7 +17,7 @@ function f() {
17
17
  return process.env.NODE_ENV !== "production" && n.useDebugValue(e), e[o] || e;
18
18
  }
19
19
  export {
20
- a,
20
+ f as a,
21
21
  h as b,
22
- f as u
22
+ a as u
23
23
  };