jcicl 0.0.147 → 0.0.151

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,90 +1,49 @@
1
- var a = Object.defineProperty;
2
- var l = (t, e, r) => e in t ? a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var u = (t, e, r) => l(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { P as c } from "./DefaultPropsProvider.js";
5
- import * as n from "react";
6
- import p from "react";
7
- const _ = c.oneOfType([c.func, c.object]), d = typeof window < "u" ? n.useLayoutEffect : n.useEffect;
8
- function y(t, e) {
1
+ import * as r from "react";
2
+ import c from "react";
3
+ const s = typeof window < "u" ? r.useLayoutEffect : r.useEffect;
4
+ function f(t, e) {
9
5
  typeof t == "function" ? t(e) : t && (t.current = e);
10
6
  }
11
- function b(t) {
12
- const e = n.useRef(t);
13
- return d(() => {
7
+ function a(t) {
8
+ const e = r.useRef(t);
9
+ return s(() => {
14
10
  e.current = t;
15
- }), n.useRef((...r) => (
11
+ }), r.useRef((...o) => (
16
12
  // @ts-expect-error hide `this`
17
- (0, e.current)(...r)
13
+ (0, e.current)(...o)
18
14
  )).current;
19
15
  }
20
- function P(...t) {
21
- return n.useMemo(() => t.every((e) => e == null) ? null : (e) => {
22
- t.forEach((r) => {
23
- y(r, e);
16
+ function p(...t) {
17
+ return r.useMemo(() => t.every((e) => e == null) ? null : (e) => {
18
+ t.forEach((o) => {
19
+ f(o, e);
24
20
  });
25
21
  }, t);
26
22
  }
27
- const i = {};
28
- function h(t, e) {
29
- const r = n.useRef(i);
30
- return r.current === i && (r.current = t(e)), r;
31
- }
32
- const m = [];
33
- function E(t) {
34
- n.useEffect(t, m);
35
- }
36
- class f {
37
- constructor() {
38
- u(this, "currentId", null);
39
- u(this, "clear", () => {
40
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
41
- });
42
- u(this, "disposeEffect", () => this.clear);
43
- }
44
- static create() {
45
- return new f();
46
- }
47
- /**
48
- * Executes `fn` after `delay`, clearing any previously scheduled call.
49
- */
50
- start(e, r) {
51
- this.clear(), this.currentId = setTimeout(() => {
52
- this.currentId = null, r();
53
- }, e);
54
- }
55
- }
56
- function R() {
57
- const t = h(f.create).current;
58
- return E(t.disposeEffect), t;
59
- }
60
- function j(t, e) {
23
+ function l(t, e) {
61
24
  if (t == null) return {};
62
- var r = {};
63
- for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
64
- if (e.includes(o)) continue;
65
- r[o] = t[o];
25
+ var o = {};
26
+ for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
27
+ if (e.includes(n)) continue;
28
+ o[n] = t[n];
66
29
  }
67
- return r;
30
+ return o;
68
31
  }
69
- function s(t, e) {
70
- return s = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
71
- return r.__proto__ = o, r;
72
- }, s(t, e);
32
+ function u(t, e) {
33
+ return u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, n) {
34
+ return o.__proto__ = n, o;
35
+ }, u(t, e);
73
36
  }
74
- function L(t, e) {
75
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, s(t, e);
37
+ function y(t, e) {
38
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, u(t, e);
76
39
  }
77
- const w = p.createContext(null);
40
+ const _ = c.createContext(null);
78
41
  export {
79
- w as T,
80
- L as _,
81
- d as a,
82
- h as b,
83
- j as c,
84
- R as d,
85
- b as e,
86
- f,
87
- _ as r,
88
- y as s,
89
- P as u
42
+ _ as T,
43
+ y as _,
44
+ s as a,
45
+ l as b,
46
+ a as c,
47
+ f as s,
48
+ p as u
90
49
  };
package/.chunks/index.js CHANGED
@@ -1,114 +1,37 @@
1
- import * as o from "react";
2
- import { b as v, P as N } from "./DefaultPropsProvider.js";
1
+ import * as e from "react";
2
+ import { P as l } from "./DefaultPropsProvider.js";
3
3
  import "react/jsx-runtime";
4
- function H({
5
- controlled: n,
6
- default: c,
7
- name: e,
8
- state: t = "value"
4
+ function v({
5
+ controlled: o,
6
+ default: s,
7
+ name: n,
8
+ state: r = "value"
9
9
  }) {
10
10
  const {
11
- current: s
12
- } = o.useRef(n !== void 0), [f, i] = o.useState(c), l = s ? n : f;
11
+ current: t
12
+ } = e.useRef(o !== void 0), [c, u] = e.useState(s), f = t ? o : c;
13
13
  if (process.env.NODE_ENV !== "production") {
14
- o.useEffect(() => {
15
- s !== (n !== void 0) && console.error([`MUI: A component is changing the ${s ? "" : "un"}controlled ${t} state of ${e} to be ${s ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${e} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
14
+ e.useEffect(() => {
15
+ t !== (o !== void 0) && console.error([`MUI: A component is changing the ${t ? "" : "un"}controlled ${r} state of ${n} to be ${t ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
16
16
  `));
17
- }, [t, e, n]);
17
+ }, [r, n, o]);
18
18
  const {
19
- current: u
20
- } = o.useRef(c);
21
- o.useEffect(() => {
22
- !s && !Object.is(u, c) && console.error([`MUI: A component is changing the default ${t} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`].join(`
19
+ current: i
20
+ } = e.useRef(s);
21
+ e.useEffect(() => {
22
+ !t && !Object.is(i, s) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
23
23
  `));
24
- }, [JSON.stringify(c)]);
24
+ }, [JSON.stringify(s)]);
25
25
  }
26
- const r = o.useCallback((u) => {
27
- s || i(u);
26
+ const a = e.useCallback((i) => {
27
+ t || u(i);
28
28
  }, []);
29
- return [l, r];
29
+ return [f, a];
30
30
  }
31
- function C(n) {
32
- return typeof n == "string";
33
- }
34
- function k(n, c, e) {
35
- return n === void 0 || C(n) ? c : {
36
- ...c,
37
- ownerState: {
38
- ...c.ownerState,
39
- ...e
40
- }
41
- };
42
- }
43
- function O(n, c = []) {
44
- if (n === void 0)
45
- return {};
46
- const e = {};
47
- return Object.keys(n).filter((t) => t.match(/^on[A-Z]/) && typeof n[t] == "function" && !c.includes(t)).forEach((t) => {
48
- e[t] = n[t];
49
- }), e;
50
- }
51
- function E(n) {
52
- if (n === void 0)
53
- return {};
54
- const c = {};
55
- return Object.keys(n).filter((e) => !(e.match(/^on[A-Z]/) && typeof n[e] == "function")).forEach((e) => {
56
- c[e] = n[e];
57
- }), c;
58
- }
59
- function V(n) {
60
- const {
61
- getSlotProps: c,
62
- additionalProps: e,
63
- externalSlotProps: t,
64
- externalForwardedProps: s,
65
- className: f
66
- } = n;
67
- if (!c) {
68
- const y = v(e == null ? void 0 : e.className, f, s == null ? void 0 : s.className, t == null ? void 0 : t.className), g = {
69
- ...e == null ? void 0 : e.style,
70
- ...s == null ? void 0 : s.style,
71
- ...t == null ? void 0 : t.style
72
- }, m = {
73
- ...e,
74
- ...s,
75
- ...t
76
- };
77
- return y.length > 0 && (m.className = y), Object.keys(g).length > 0 && (m.style = g), {
78
- props: m,
79
- internalRef: void 0
80
- };
81
- }
82
- const i = O({
83
- ...s,
84
- ...t
85
- }), l = E(t), r = E(s), u = c(i), h = v(u == null ? void 0 : u.className, e == null ? void 0 : e.className, f, s == null ? void 0 : s.className, t == null ? void 0 : t.className), d = {
86
- ...u == null ? void 0 : u.style,
87
- ...e == null ? void 0 : e.style,
88
- ...s == null ? void 0 : s.style,
89
- ...t == null ? void 0 : t.style
90
- }, a = {
91
- ...u,
92
- ...e,
93
- ...r,
94
- ...l
95
- };
96
- return h.length > 0 && (a.className = h), Object.keys(d).length > 0 && (a.style = d), {
97
- props: a,
98
- internalRef: u.ref
99
- };
100
- }
101
- function A(n, c, e) {
102
- return typeof n == "function" ? n(c, e) : n;
103
- }
104
- const $ = /* @__PURE__ */ o.createContext();
105
- process.env.NODE_ENV !== "production" && (N.node, N.bool);
106
- const I = () => o.useContext($) ?? !1;
31
+ const d = /* @__PURE__ */ e.createContext();
32
+ process.env.NODE_ENV !== "production" && (l.node, l.bool);
33
+ const m = () => e.useContext(d) ?? !1;
107
34
  export {
108
- k as a,
109
- H as b,
110
- O as e,
111
- V as m,
112
- A as r,
113
- I as u
35
+ v as a,
36
+ m as u
114
37
  };
@@ -0,0 +1,80 @@
1
+ import { b as l } from "./DefaultPropsProvider.js";
2
+ function O(s) {
3
+ return typeof s == "string";
4
+ }
5
+ function A(s, c, e) {
6
+ return s === void 0 || O(s) ? c : {
7
+ ...c,
8
+ ownerState: {
9
+ ...c.ownerState,
10
+ ...e
11
+ }
12
+ };
13
+ }
14
+ function k(s, c = []) {
15
+ if (s === void 0)
16
+ return {};
17
+ const e = {};
18
+ return Object.keys(s).filter((n) => n.match(/^on[A-Z]/) && typeof s[n] == "function" && !c.includes(n)).forEach((n) => {
19
+ e[n] = s[n];
20
+ }), e;
21
+ }
22
+ function a(s) {
23
+ if (s === void 0)
24
+ return {};
25
+ const c = {};
26
+ return Object.keys(s).filter((e) => !(e.match(/^on[A-Z]/) && typeof s[e] == "function")).forEach((e) => {
27
+ c[e] = s[e];
28
+ }), c;
29
+ }
30
+ function R(s) {
31
+ const {
32
+ getSlotProps: c,
33
+ additionalProps: e,
34
+ externalSlotProps: n,
35
+ externalForwardedProps: t,
36
+ className: i
37
+ } = s;
38
+ if (!c) {
39
+ const g = l(e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), h = {
40
+ ...e == null ? void 0 : e.style,
41
+ ...t == null ? void 0 : t.style,
42
+ ...n == null ? void 0 : n.style
43
+ }, m = {
44
+ ...e,
45
+ ...t,
46
+ ...n
47
+ };
48
+ return g.length > 0 && (m.className = g), Object.keys(h).length > 0 && (m.style = h), {
49
+ props: m,
50
+ internalRef: void 0
51
+ };
52
+ }
53
+ const v = k({
54
+ ...t,
55
+ ...n
56
+ }), E = a(n), H = a(t), f = c(v), y = l(f == null ? void 0 : f.className, e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), N = {
57
+ ...f == null ? void 0 : f.style,
58
+ ...e == null ? void 0 : e.style,
59
+ ...t == null ? void 0 : t.style,
60
+ ...n == null ? void 0 : n.style
61
+ }, u = {
62
+ ...f,
63
+ ...e,
64
+ ...H,
65
+ ...E
66
+ };
67
+ return y.length > 0 && (u.className = y), Object.keys(N).length > 0 && (u.style = N), {
68
+ props: u,
69
+ internalRef: f.ref
70
+ };
71
+ }
72
+ function W(s, c, e) {
73
+ return typeof s == "function" ? s(c, e) : s;
74
+ }
75
+ export {
76
+ A as a,
77
+ k as e,
78
+ R as m,
79
+ W as r
80
+ };
@@ -1,4 +1,4 @@
1
- import { r as R, m as V, a as h } from "./index.js";
1
+ import { r as R, m as V, a as h } from "./resolveComponentProps.js";
2
2
  import { u as I } from "./TransitionGroupContext.js";
3
3
  function $(e) {
4
4
  const t = typeof e;
@@ -0,0 +1,44 @@
1
+ var i = Object.defineProperty;
2
+ var f = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var n = (t, e, r) => f(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { P as s } from "./DefaultPropsProvider.js";
5
+ import * as o from "react";
6
+ const d = s.oneOfType([s.func, s.object]), c = {};
7
+ function a(t, e) {
8
+ const r = o.useRef(c);
9
+ return r.current === c && (r.current = t(e)), r;
10
+ }
11
+ const l = [];
12
+ function I(t) {
13
+ o.useEffect(t, l);
14
+ }
15
+ class u {
16
+ constructor() {
17
+ n(this, "currentId", null);
18
+ n(this, "clear", () => {
19
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
20
+ });
21
+ n(this, "disposeEffect", () => this.clear);
22
+ }
23
+ static create() {
24
+ return new u();
25
+ }
26
+ /**
27
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
28
+ */
29
+ start(e, r) {
30
+ this.clear(), this.currentId = setTimeout(() => {
31
+ this.currentId = null, r();
32
+ }, e);
33
+ }
34
+ }
35
+ function m() {
36
+ const t = a(u.create).current;
37
+ return I(t.disposeEffect), t;
38
+ }
39
+ export {
40
+ u as T,
41
+ a,
42
+ d as r,
43
+ m as u
44
+ };
@@ -13,15 +13,16 @@ import { l as je } from "../.chunks/jocologo.js";
13
13
  import { X as Ue } from "../.chunks/Close.js";
14
14
  import { P as t, g as Fe, a as Ve, s as ce, r as We, c as Z, u as Qe, b as _, d as Xe } from "../.chunks/DefaultPropsProvider.js";
15
15
  import { u as Ge } from "../.chunks/index.js";
16
- import { u as Ye, e as _e, H as Je, a as ke, g as Ke, T as Ze, r as qe, b as me } from "../.chunks/Portal.js";
16
+ import { c as Ye, e as _e, H as Je, u as ke, g as Ke, T as Ze, r as qe, a as me } from "../.chunks/Portal.js";
17
17
  import { m as Ce } from "../.chunks/memoTheme.js";
18
- import { g as eo, o as Te, d as oo, M as ro, P as to } from "../.chunks/TextField.js";
19
- import { i as no } from "../.chunks/useSlot.js";
20
- import { c as io } from "../.chunks/chainPropTypes.js";
21
- import { a as ao, u as so } from "../.chunks/TransitionGroupContext.js";
18
+ import { o as Te, M as eo, P as oo } from "../.chunks/Paper.js";
19
+ import { i as ro } from "../.chunks/useSlot.js";
20
+ import { c as to } from "../.chunks/chainPropTypes.js";
21
+ import { a as no, u as io } from "../.chunks/TransitionGroupContext.js";
22
+ import { g as ao, d as so } from "../.chunks/TextField.js";
22
23
  function co(e, o, r, n, c) {
23
24
  const [l, u] = x.useState(() => c && r ? r(e).matches : n ? n(e).matches : o);
24
- return ao(() => {
25
+ return no(() => {
25
26
  if (!r)
26
27
  return;
27
28
  const f = r(e), p = () => {
@@ -63,7 +64,7 @@ function ge(e, o = {}) {
63
64
  matchMedia: l = n ? window.matchMedia : null,
64
65
  ssrMatchMedia: u = null,
65
66
  noSsr: f = !1
66
- } = eo({
67
+ } = ao({
67
68
  name: "MuiUseMediaQuery",
68
69
  props: o,
69
70
  theme: r
@@ -127,7 +128,7 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, r) {
127
128
  // eslint-disable-next-line react/prop-types
128
129
  TransitionComponent: O = Ze,
129
130
  ...B
130
- } = o, d = x.useRef(null), w = so(Ke(p), d, r), k = (s) => (g) => {
131
+ } = o, d = x.useRef(null), w = io(Ke(p), d, r), k = (s) => (g) => {
131
132
  s && (g === void 0 ? s(d.current) : s(d.current, g));
132
133
  }, y = k((s, g) => {
133
134
  J(h, s, b), qe(s), A && A(s, g);
@@ -163,7 +164,7 @@ const Ee = /* @__PURE__ */ x.forwardRef(function(o, r) {
163
164
  return x.useEffect(() => {
164
165
  if (P || h === "down" || h === "right")
165
166
  return;
166
- const s = oo(() => {
167
+ const s = so(() => {
167
168
  d.current && J(h, d.current, b);
168
169
  }), g = Te(d.current);
169
170
  return g.addEventListener("resize", s), () => {
@@ -220,7 +221,7 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
220
221
  * An HTML element, or a function that returns one.
221
222
  * It's used to set the container the Slide is transitioning from.
222
223
  */
223
- container: io(t.oneOfType([Je, t.func]), (e) => {
224
+ container: to(t.oneOfType([Je, t.func]), (e) => {
224
225
  if (e.open) {
225
226
  const o = Pe(e.container);
226
227
  if (o && o.nodeType === 1) {
@@ -318,7 +319,7 @@ const Me = (e, o) => {
318
319
  paper: ["paper", `paperAnchor${Z(r)}`, n !== "temporary" && `paperAnchorDocked${Z(r)}`]
319
320
  };
320
321
  return Xe(c, uo, o);
321
- }, mo = ce(ro, {
322
+ }, mo = ce(eo, {
322
323
  name: "MuiDrawer",
323
324
  slot: "Root",
324
325
  overridesResolver: Me
@@ -334,7 +335,7 @@ const Me = (e, o) => {
334
335
  overridesResolver: Me
335
336
  })({
336
337
  flex: "0 0 auto"
337
- }), go = ce(to, {
338
+ }), go = ce(oo, {
338
339
  name: "MuiDrawer",
339
340
  slot: "Paper",
340
341
  overridesResolver: (e, o) => {
@@ -558,7 +559,7 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
558
559
  * The elevation of the drawer.
559
560
  * @default 16
560
561
  */
561
- elevation: no,
562
+ elevation: ro,
562
563
  /**
563
564
  * If `true`, the backdrop is not rendered.
564
565
  * @default false
@@ -854,7 +855,7 @@ const xe = q(/* @__PURE__ */ a("path", {
854
855
  background-color: transparent;
855
856
  }
856
857
  `
857
- })), er = ({
858
+ })), or = ({
858
859
  navProps: e,
859
860
  appHeaderProps: o = {},
860
861
  userInfo: r,
@@ -1130,5 +1131,5 @@ const xe = q(/* @__PURE__ */ a("path", {
1130
1131
  ] });
1131
1132
  };
1132
1133
  export {
1133
- er as default
1134
+ or as default
1134
1135
  };
@@ -0,0 +1,6 @@
1
+ import { DialogProps } from '@mui/material/Dialog';
2
+ import { default as React } from 'react';
3
+ export interface ModalProps extends DialogProps {
4
+ }
5
+ declare const Modal: React.FC<ModalProps>;
6
+ export default Modal;