jcicl 0.0.128 → 0.0.132

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/.chunks/Portal.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as f from "react";
2
2
  import _ from "react";
3
- import { P as r, b as W, h as de, T as pe, i as me } from "./DefaultPropsProvider.js";
3
+ import { h as de, P as r, b as W, T as pe, i as me } from "./DefaultPropsProvider.js";
4
4
  import { a as q, _ as Ee, c as he, T as K, d as ge, u as P, s as X } from "./TransitionGroupContext.js";
5
5
  import { jsx as H } from "react/jsx-runtime";
6
6
  import { T as ve } from "./emotion-styled.browser.esm.js";
@@ -8,6 +8,17 @@ import { c as Q } from "./chainPropTypes.js";
8
8
  import * as xe from "react-dom";
9
9
  import M from "react-dom";
10
10
  function ye(e) {
11
+ return Object.keys(e).length === 0;
12
+ }
13
+ function Te(e = null) {
14
+ const s = f.useContext(ve);
15
+ return !s || ye(s) ? e : s;
16
+ }
17
+ const be = de();
18
+ function Ne(e = be) {
19
+ return Te(e);
20
+ }
21
+ function Oe(e) {
11
22
  const {
12
23
  prototype: s = {}
13
24
  } = e;
@@ -23,21 +34,21 @@ function Y(e, s, o, i, n) {
23
34
  return null;
24
35
  let u;
25
36
  const c = t.type;
26
- return typeof c == "function" && !ye(c) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
37
+ return typeof c == "function" && !Oe(c) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
27
38
  }
28
39
  const ee = Q(r.element, Y);
29
40
  ee.isRequired = Q(r.element.isRequired, Y);
30
- const Te = "exact-prop: ​";
31
- function be(e) {
41
+ const Re = "exact-prop: ​";
42
+ function De(e) {
32
43
  return process.env.NODE_ENV === "production" ? e : {
33
44
  ...e,
34
- [Te]: (s) => {
45
+ [Re]: (s) => {
35
46
  const o = Object.keys(s).filter((i) => !e.hasOwnProperty(i));
36
47
  return o.length > 0 ? new Error(`The following props are not supported: ${o.map((i) => `\`${i}\``).join(", ")}. Please remove them.`) : null;
37
48
  }
38
49
  };
39
50
  }
40
- function Ne(e, s, o, i, n) {
51
+ function Ce(e, s, o, i, n) {
41
52
  if (process.env.NODE_ENV === "production")
42
53
  return null;
43
54
  const t = e[s], a = n || s;
@@ -47,21 +58,21 @@ function Je(e) {
47
58
  return e && e.ownerDocument || document;
48
59
  }
49
60
  let z = 0;
50
- function Oe(e) {
61
+ function Se(e) {
51
62
  const [s, o] = f.useState(e), i = e || s;
52
63
  return f.useEffect(() => {
53
64
  s == null && (z += 1, o(`mui-${z}`));
54
65
  }, [s]), i;
55
66
  }
56
- const Re = {
67
+ const Ie = {
57
68
  ...f
58
- }, F = Re.useId;
69
+ }, F = Ie.useId;
59
70
  function Ke(e) {
60
71
  if (F !== void 0) {
61
72
  const s = F();
62
73
  return e ?? s;
63
74
  }
64
- return Oe(e);
75
+ return Se(e);
65
76
  }
66
77
  function Qe({
67
78
  controlled: e,
@@ -90,11 +101,11 @@ function Qe({
90
101
  }, []);
91
102
  return [u, c];
92
103
  }
93
- function De(e) {
104
+ function ke(e) {
94
105
  return typeof e == "string";
95
106
  }
96
- function Ce(e, s, o) {
97
- return e === void 0 || De(e) ? s : {
107
+ function $e(e, s, o) {
108
+ return e === void 0 || ke(e) ? s : {
98
109
  ...s,
99
110
  ownerState: {
100
111
  ...s.ownerState,
@@ -102,7 +113,7 @@ function Ce(e, s, o) {
102
113
  }
103
114
  };
104
115
  }
105
- function Se(e, s = []) {
116
+ function we(e, s = []) {
106
117
  if (e === void 0)
107
118
  return {};
108
119
  const o = {};
@@ -118,7 +129,7 @@ function Z(e) {
118
129
  s[o] = e[o];
119
130
  }), s;
120
131
  }
121
- function Ie(e) {
132
+ function _e(e) {
122
133
  const {
123
134
  getSlotProps: s,
124
135
  additionalProps: o,
@@ -141,7 +152,7 @@ function Ie(e) {
141
152
  internalRef: void 0
142
153
  };
143
154
  }
144
- const a = Se({
155
+ const a = we({
145
156
  ...n,
146
157
  ...i
147
158
  }), u = Z(i), c = Z(n), l = s(a), p = W(l == null ? void 0 : l.className, o == null ? void 0 : o.className, t, n == null ? void 0 : n.className, i == null ? void 0 : i.className), m = {
@@ -160,7 +171,7 @@ function Ie(e) {
160
171
  internalRef: l.ref
161
172
  };
162
173
  }
163
- function ke(e, s, o) {
174
+ function Me(e, s, o) {
164
175
  return typeof e == "function" ? e(s, o) : e;
165
176
  }
166
177
  function Ye(e) {
@@ -171,14 +182,14 @@ function Ye(e) {
171
182
  ownerState: i,
172
183
  skipResolvingSlotProps: n = !1,
173
184
  ...t
174
- } = e, a = n ? {} : ke(o, i), {
185
+ } = e, a = n ? {} : Me(o, i), {
175
186
  props: u,
176
187
  internalRef: c
177
- } = Ie({
188
+ } = _e({
178
189
  ...t,
179
190
  externalSlotProps: a
180
191
  }), l = q(c, a == null ? void 0 : a.ref, (m = e.additionalProps) == null ? void 0 : m.ref);
181
- return Ce(s, {
192
+ return $e(s, {
182
193
  ...u,
183
194
  ref: l
184
195
  }, i);
@@ -187,22 +198,11 @@ function te(e) {
187
198
  var s;
188
199
  return parseInt(f.version, 10) >= 19 ? ((s = e == null ? void 0 : e.props) == null ? void 0 : s.ref) || null : (e == null ? void 0 : e.ref) || null;
189
200
  }
190
- function $e(e) {
191
- return Object.keys(e).length === 0;
192
- }
193
- function we(e = null) {
194
- const s = f.useContext(ve);
195
- return !s || $e(s) ? e : s;
196
- }
197
- const _e = de();
198
- function Me(e = _e) {
199
- return we(e);
200
- }
201
201
  const Ve = /* @__PURE__ */ f.createContext();
202
202
  process.env.NODE_ENV !== "production" && (r.node, r.bool);
203
203
  const et = () => f.useContext(Ve) ?? !1;
204
204
  function Le() {
205
- const e = Me(me);
205
+ const e = Ne(me);
206
206
  return process.env.NODE_ENV !== "production" && f.useDebugValue(e), e[pe] || e;
207
207
  }
208
208
  const B = {
@@ -792,17 +792,17 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
792
792
  * By default, it uses the body of the top-level document object,
793
793
  * so it's simply `document.body` most of the time.
794
794
  */
795
- container: r.oneOfType([Ne, r.func]),
795
+ container: r.oneOfType([Ce, r.func]),
796
796
  /**
797
797
  * The `children` will be under the DOM hierarchy of the parent component.
798
798
  * @default false
799
799
  */
800
800
  disablePortal: r.bool
801
801
  });
802
- process.env.NODE_ENV !== "production" && (G.propTypes = be(G.propTypes));
802
+ process.env.NODE_ENV !== "production" && (G.propTypes = De(G.propTypes));
803
803
  export {
804
804
  U as G,
805
- Ne as H,
805
+ Ce as H,
806
806
  G as P,
807
807
  g as T,
808
808
  Le as a,
@@ -813,13 +813,13 @@ export {
813
813
  Qe as f,
814
814
  te as g,
815
815
  Ke as h,
816
- Ce as i,
817
- Me as j,
818
- be as k,
819
- ke as l,
820
- Ie as m,
821
- Se as n,
816
+ $e as i,
817
+ Ne as j,
818
+ De as k,
819
+ Me as l,
820
+ _e as m,
821
+ we as n,
822
822
  Je as o,
823
823
  je as r,
824
- we as u
824
+ Te as u
825
825
  };