jcicl 0.0.227 → 0.0.229

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/index.js CHANGED
@@ -1,86 +1,9 @@
1
- import { b as v, P as h } from "./DefaultPropsProvider.js";
2
- import * as E from "react";
1
+ import * as e from "react";
2
+ import { P as o } from "./DefaultPropsProvider.js";
3
3
  import "react/jsx-runtime";
4
- function O(n) {
5
- return typeof n == "string";
6
- }
7
- function Z(n, c, e) {
8
- return n === void 0 || O(n) ? c : {
9
- ...c,
10
- ownerState: {
11
- ...c.ownerState,
12
- ...e
13
- }
14
- };
15
- }
16
- function R(n, c = []) {
17
- if (n === void 0)
18
- return {};
19
- const e = {};
20
- return Object.keys(n).filter((t) => t.match(/^on[A-Z]/) && typeof n[t] == "function" && !c.includes(t)).forEach((t) => {
21
- e[t] = n[t];
22
- }), e;
23
- }
24
- function g(n) {
25
- if (n === void 0)
26
- return {};
27
- const c = {};
28
- return Object.keys(n).filter((e) => !(e.match(/^on[A-Z]/) && typeof n[e] == "function")).forEach((e) => {
29
- c[e] = n[e];
30
- }), c;
31
- }
32
- function r(n) {
33
- const {
34
- getSlotProps: c,
35
- additionalProps: e,
36
- externalSlotProps: t,
37
- externalForwardedProps: s,
38
- className: m
39
- } = n;
40
- if (!c) {
41
- const a = v(e == null ? void 0 : e.className, m, s == null ? void 0 : s.className, t == null ? void 0 : t.className), N = {
42
- ...e == null ? void 0 : e.style,
43
- ...s == null ? void 0 : s.style,
44
- ...t == null ? void 0 : t.style
45
- }, i = {
46
- ...e,
47
- ...s,
48
- ...t
49
- };
50
- return a.length > 0 && (i.className = a), Object.keys(N).length > 0 && (i.style = N), {
51
- props: i,
52
- internalRef: void 0
53
- };
54
- }
55
- const C = R({
56
- ...s,
57
- ...t
58
- }), o = g(t), H = g(s), u = c(C), y = v(u == null ? void 0 : u.className, e == null ? void 0 : e.className, m, s == null ? void 0 : s.className, t == null ? void 0 : t.className), l = {
59
- ...u == null ? void 0 : u.style,
60
- ...e == null ? void 0 : e.style,
61
- ...s == null ? void 0 : s.style,
62
- ...t == null ? void 0 : t.style
63
- }, f = {
64
- ...u,
65
- ...e,
66
- ...H,
67
- ...o
68
- };
69
- return y.length > 0 && (f.className = y), Object.keys(l).length > 0 && (f.style = l), {
70
- props: f,
71
- internalRef: u.ref
72
- };
73
- }
74
- function D(n, c, e) {
75
- return typeof n == "function" ? n(c, e) : n;
76
- }
77
- const k = /* @__PURE__ */ E.createContext();
78
- process.env.NODE_ENV !== "production" && (h.node, h.bool);
79
- const V = () => E.useContext(k) ?? !1;
4
+ const t = /* @__PURE__ */ e.createContext();
5
+ process.env.NODE_ENV !== "production" && (o.node, o.bool);
6
+ const a = () => e.useContext(t) ?? !1;
80
7
  export {
81
- Z as a,
82
- R as e,
83
- r as m,
84
- D as r,
85
- V as u
8
+ a as u
86
9
  };
@@ -0,0 +1,31 @@
1
+ function f(e) {
2
+ const r = typeof e;
3
+ switch (r) {
4
+ case "number":
5
+ return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
6
+ case "object":
7
+ return e === null ? "null" : e.constructor.name;
8
+ default:
9
+ return r;
10
+ }
11
+ }
12
+ function o(e, r, n, i) {
13
+ const t = e[r];
14
+ if (t == null || !Number.isInteger(t)) {
15
+ const l = f(t);
16
+ return new RangeError(`Invalid ${i} \`${r}\` of type \`${l}\` supplied to \`${n}\`, expected \`integer\`.`);
17
+ }
18
+ return null;
19
+ }
20
+ function c(e, r, ...n) {
21
+ return e[r] === void 0 ? null : o(e, r, ...n);
22
+ }
23
+ function u() {
24
+ return null;
25
+ }
26
+ c.isRequired = o;
27
+ u.isRequired = u;
28
+ const s = process.env.NODE_ENV === "production" ? u : c;
29
+ export {
30
+ s as i
31
+ };
@@ -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,79 +1,50 @@
1
- import { r as R, m as V, a as h } from "./index.js";
2
- import { u as I } from "./TransitionGroupContext.js";
3
- function $(e) {
4
- const t = typeof e;
5
- switch (t) {
6
- case "number":
7
- return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
8
- case "object":
9
- return e === null ? "null" : e.constructor.name;
10
- default:
11
- return t;
12
- }
13
- }
14
- function S(e, t, o, n) {
15
- const r = e[t];
16
- if (r == null || !Number.isInteger(r)) {
17
- const i = $(r);
18
- return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${o}\`, expected \`integer\`.`);
19
- }
20
- return null;
21
- }
22
- function g(e, t, ...o) {
23
- return e[t] === void 0 ? null : S(e, t, ...o);
24
- }
25
- function l() {
26
- return null;
27
- }
28
- g.isRequired = S;
29
- l.isRequired = l;
30
- const j = process.env.NODE_ENV === "production" ? l : g;
31
- function k(e, t) {
1
+ import { r as T, m as h, a as k } from "./resolveComponentProps.js";
2
+ import { u as E } from "./TransitionGroupContext.js";
3
+ function j(o, r) {
32
4
  const {
33
- className: o,
34
- elementType: n,
35
- ownerState: r,
36
- externalForwardedProps: i,
37
- getSlotOwnerState: p,
38
- internalForwardedProps: c,
39
- ...N
40
- } = t, {
41
- component: f,
42
- slots: u = {
43
- [e]: void 0
5
+ className: S,
6
+ elementType: P,
7
+ ownerState: n,
8
+ externalForwardedProps: w,
9
+ getSlotOwnerState: s,
10
+ internalForwardedProps: p,
11
+ ...m
12
+ } = r, {
13
+ component: l,
14
+ slots: t = {
15
+ [o]: void 0
44
16
  },
45
- slotProps: b = {
46
- [e]: void 0
17
+ slotProps: O = {
18
+ [o]: void 0
47
19
  },
48
- ...T
49
- } = i, a = u[e] || n, s = R(b[e], r), {
20
+ ...x
21
+ } = w, a = t[o] || P, e = T(O[o], n), {
50
22
  props: {
51
- component: d,
52
- ...y
23
+ component: c,
24
+ ...d
53
25
  },
54
- internalRef: O
55
- } = V({
56
- className: o,
57
- ...N,
58
- externalForwardedProps: e === "root" ? T : void 0,
59
- externalSlotProps: s
60
- }), x = I(O, s == null ? void 0 : s.ref, t.ref), m = p ? p(y) : {}, E = {
61
- ...r,
62
- ...m
63
- }, w = e === "root" ? d || f : d, P = h(a, {
64
- ...e === "root" && !f && !u[e] && c,
65
- ...e !== "root" && !u[e] && c,
66
- ...y,
67
- ...w && {
68
- as: w
26
+ internalRef: y
27
+ } = h({
28
+ className: S,
29
+ ...m,
30
+ externalForwardedProps: o === "root" ? x : void 0,
31
+ externalSlotProps: e
32
+ }), F = E(y, e == null ? void 0 : e.ref, r.ref), f = s ? s(d) : {}, g = {
33
+ ...n,
34
+ ...f
35
+ }, i = o === "root" ? c || l : c, u = k(a, {
36
+ ...o === "root" && !l && !t[o] && p,
37
+ ...o !== "root" && !t[o] && p,
38
+ ...d,
39
+ ...i && {
40
+ as: i
69
41
  },
70
- ref: x
71
- }, E);
72
- return Object.keys(m).forEach((F) => {
73
- delete P[F];
74
- }), [a, P];
42
+ ref: F
43
+ }, g);
44
+ return Object.keys(f).forEach((C) => {
45
+ delete u[C];
46
+ }), [a, u];
75
47
  }
76
48
  export {
77
- j as i,
78
- k as u
49
+ j as u
79
50
  };
@@ -0,0 +1,23 @@
1
+ import * as n from "react";
2
+ import { h as s, T as o, i as u } from "./DefaultPropsProvider.js";
3
+ import { T as r } from "./emotion-styled.browser.esm.js";
4
+ function m(e) {
5
+ return Object.keys(e).length === 0;
6
+ }
7
+ function a(e = null) {
8
+ const t = n.useContext(r);
9
+ return !t || m(t) ? e : t;
10
+ }
11
+ const c = s();
12
+ function h(e = c) {
13
+ return a(e);
14
+ }
15
+ function f() {
16
+ const e = h(u);
17
+ return process.env.NODE_ENV !== "production" && n.useDebugValue(e), e[o] || e;
18
+ }
19
+ export {
20
+ a,
21
+ h as b,
22
+ f as u
23
+ };
package/Button/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as H, jsx as l } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import { g as _, a as A, s as c, r as q, c as d, f as J, u as K, b as O, P as t, d as Q, e as v } from "../.chunks/DefaultPropsProvider.js";
3
+ import { g as _, a as A, s as c, r as q, c as d, m as J, u as K, b as O, P as t, d as Q, e as v } from "../.chunks/DefaultPropsProvider.js";
4
4
  import { m as X } from "../.chunks/memoTheme.js";
5
5
  import { c as Y } from "../.chunks/createSimplePaletteValueFilter.js";
6
6
  import { B as S } from "../.chunks/ButtonBase.js";
@@ -4,17 +4,19 @@ import { c as Mo } from "../.chunks/emotion-react.browser.esm.js";
4
4
  import Bo from "../theme.js";
5
5
  import * as m from "react";
6
6
  import { g as po, a as co, s as F, c as d, u as uo, b as J, P as o, d as fo, e as V } from "../.chunks/DefaultPropsProvider.js";
7
- import { i as Io, a as be, b as No, f as Ae, P as Uo, A as Jo, T as Xo } from "../.chunks/TextField.js";
8
- import { c as Ho } from "../.chunks/createSvgIcon.js";
7
+ import { i as Io, a as be, b as No, f as Ae, A as Jo, T as Xo } from "../.chunks/TextField.js";
8
+ import { c as Uo } from "../.chunks/createSvgIcon.js";
9
9
  import { m as ee } from "../.chunks/memoTheme.js";
10
- import { u as Oo, i as Qo } from "../.chunks/useSlot.js";
10
+ import { u as Oo } from "../.chunks/useSlot.js";
11
11
  import { c as De } from "../.chunks/createSimplePaletteValueFilter.js";
12
12
  import { B as So } from "../.chunks/ButtonBase.js";
13
13
  import { c as wo } from "../.chunks/chainPropTypes.js";
14
- import { P as Wo } from "../.chunks/Popper.js";
15
- import { a as Zo } from "../.chunks/Portal.js";
14
+ import { P as Ho } from "../.chunks/Popper.js";
15
+ import { P as Wo } from "../.chunks/Paper.js";
16
+ import { u as Qo } from "../.chunks/Portal.js";
16
17
  import { u as Po } from "../.chunks/useControlled.js";
17
- import { b as io, s as et, u as ot } from "../.chunks/TransitionGroupContext.js";
18
+ import { b as io, s as Zo, u as et } from "../.chunks/TransitionGroupContext.js";
19
+ import { i as ot } from "../.chunks/integerPropType.js";
18
20
  function tt(e, n, a, i, g) {
19
21
  if (process.env.NODE_ENV === "production")
20
22
  return null;
@@ -99,7 +101,7 @@ function st(e) {
99
101
  readOnly: $e = !1,
100
102
  selectOnFocus: Fe = !e.freeSolo,
101
103
  value: go
102
- } = e, U = Zo(Ve);
104
+ } = e, U = Qo(Ve);
103
105
  let M = Ee;
104
106
  M = (r) => {
105
107
  const t = Ee(r);
@@ -287,7 +289,7 @@ function st(e) {
287
289
  O,
288
290
  $
289
291
  ]), yo = io((r) => {
290
- et(K, r), r && Ke();
292
+ Zo(K, r), r && Ke();
291
293
  });
292
294
  process.env.NODE_ENV !== "production" && m.useEffect(() => {
293
295
  (!T.current || T.current.nodeName !== "INPUT") && (T.current && T.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${b} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
@@ -959,7 +961,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
959
961
  */
960
962
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
961
963
  });
962
- const mt = Ho(/* @__PURE__ */ k("path", {
964
+ const mt = Uo(/* @__PURE__ */ k("path", {
963
965
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
964
966
  }), "Cancel");
965
967
  function ht(e) {
@@ -1306,7 +1308,7 @@ const Ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
1306
1308
  skipFocusWhenDisabled: he = !1,
1307
1309
  // TODO v6: Rename to `focusableWhenDisabled`.
1308
1310
  ...Ee
1309
- } = i, oe = m.useRef(null), ze = ot(oe, a), Ve = (D) => {
1311
+ } = i, oe = m.useRef(null), ze = et(oe, a), Ve = (D) => {
1310
1312
  D.stopPropagation(), E && E(D);
1311
1313
  }, de = (D) => {
1312
1314
  D.currentTarget === D.target && Vo(D) && D.preventDefault(), ue && ue(D);
@@ -1465,7 +1467,7 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
1465
1467
  */
1466
1468
  variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
1467
1469
  });
1468
- const $t = Ho(/* @__PURE__ */ k("path", {
1470
+ const $t = Uo(/* @__PURE__ */ k("path", {
1469
1471
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
1470
1472
  }), "Close");
1471
1473
  function Ct(e) {
@@ -1708,7 +1710,7 @@ const It = (e) => {
1708
1710
  transform: "rotate(180deg)"
1709
1711
  }
1710
1712
  }]
1711
- }), Tt = F(Wo, {
1713
+ }), Tt = F(Ho, {
1712
1714
  name: "MuiAutocomplete",
1713
1715
  slot: "Popper",
1714
1716
  overridesResolver: (e, n) => {
@@ -1731,7 +1733,7 @@ const It = (e) => {
1731
1733
  position: "absolute"
1732
1734
  }
1733
1735
  }]
1734
- }))), kt = F(Uo, {
1736
+ }))), kt = F(Wo, {
1735
1737
  name: "MuiAutocomplete",
1736
1738
  slot: "Paper",
1737
1739
  overridesResolver: (e, n) => n.paper
@@ -1966,12 +1968,12 @@ const It = (e) => {
1966
1968
  additionalProps: no,
1967
1969
  ref: $o
1968
1970
  }), [l, p] = Oo("paper", {
1969
- elementType: Uo,
1971
+ elementType: Wo,
1970
1972
  externalForwardedProps: ae,
1971
1973
  ownerState: N,
1972
1974
  className: R.paper
1973
1975
  }), [c, I] = Oo("popper", {
1974
- elementType: Wo,
1976
+ elementType: Ho,
1975
1977
  externalForwardedProps: ae,
1976
1978
  ownerState: N,
1977
1979
  className: R.popper,
@@ -2362,7 +2364,7 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
2362
2364
  * Set `-1` to disable the limit.
2363
2365
  * @default -1
2364
2366
  */
2365
- limitTags: Qo,
2367
+ limitTags: ot,
2366
2368
  /**
2367
2369
  * The component used to render the listbox.
2368
2370
  * @default 'ul'
@@ -2660,7 +2662,7 @@ const Nt = ["colon"], Et = Yo("div", { shouldForwardProp: (e) => !Nt.includes(e)
2660
2662
  width: 19px;
2661
2663
  }
2662
2664
  `
2663
- })), en = ({
2665
+ })), tn = ({
2664
2666
  label: e,
2665
2667
  colon: n = !0,
2666
2668
  options: a = [],
@@ -2700,6 +2702,6 @@ const Nt = ["colon"], Et = Yo("div", { shouldForwardProp: (e) => !Nt.includes(e)
2700
2702
  }
2701
2703
  );
2702
2704
  export {
2703
- en as LabeledDropdown,
2704
- en as default
2705
+ tn as LabeledDropdown,
2706
+ tn as default
2705
2707
  };