jcicl 0.0.313 → 0.0.317

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,12 +1,12 @@
1
- import { jsxs as z, jsx as c } from "react/jsx-runtime";
1
+ import { jsxs as z, jsx as r } from "react/jsx-runtime";
2
2
  import { n as oe } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as te } from "../.chunks/emotion-react.browser.esm.js";
4
- import ne from "../theme.js";
4
+ import ae from "../theme.js";
5
5
  import * as v from "react";
6
- import { g as E, a as q, s as O, r as V, b as U, P as e, c as b, d as H, e as T, u as ae } from "../.chunks/DefaultPropsProvider.js";
7
- import { u as se } from "../.chunks/useFormControl.js";
8
- import { B as re } from "../.chunks/ButtonBase.js";
9
- import { u as ce } from "../.chunks/useControlled.js";
6
+ import { g as E, a as q, s as O, r as V, b as U, P as e, c as b, d as H, e as T, u as se } from "../.chunks/DefaultPropsProvider.js";
7
+ import { u as ne } from "../.chunks/useFormControl.js";
8
+ import { B as ce } from "../.chunks/ButtonBase.js";
9
+ import { u as re } from "../.chunks/useControlled.js";
10
10
  import { r as D } from "../.chunks/TransitionGroupContext.js";
11
11
  import { c as P } from "../.chunks/createSvgIcon.js";
12
12
  import { m as ie } from "../.chunks/memoTheme.js";
@@ -18,15 +18,15 @@ q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "ed
18
18
  const de = (o) => {
19
19
  const {
20
20
  classes: t,
21
- checked: n,
22
- disabled: a,
23
- edge: s
21
+ checked: a,
22
+ disabled: s,
23
+ edge: n
24
24
  } = o, l = {
25
- root: ["root", n && "checked", a && "disabled", s && `edge${b(s)}`],
25
+ root: ["root", a && "checked", s && "disabled", n && `edge${b(n)}`],
26
26
  input: ["input"]
27
27
  };
28
28
  return H(l, le, t);
29
- }, pe = O(re)({
29
+ }, pe = O(ce)({
30
30
  padding: 9,
31
31
  borderRadius: "50%",
32
32
  variants: [{
@@ -75,10 +75,10 @@ const de = (o) => {
75
75
  margin: 0,
76
76
  padding: 0,
77
77
  zIndex: 1
78
- }), _ = /* @__PURE__ */ v.forwardRef(function(t, n) {
78
+ }), _ = /* @__PURE__ */ v.forwardRef(function(t, a) {
79
79
  const {
80
- autoFocus: a,
81
- checked: s,
80
+ autoFocus: s,
81
+ checked: n,
82
82
  checkedIcon: l,
83
83
  className: p,
84
84
  defaultChecked: d,
@@ -97,28 +97,28 @@ const de = (o) => {
97
97
  required: G = !1,
98
98
  tabIndex: J,
99
99
  type: x,
100
- value: $,
100
+ value: j,
101
101
  ...K
102
- } = t, [j, Q] = ce({
103
- controlled: s,
102
+ } = t, [$, Q] = re({
103
+ controlled: n,
104
104
  default: !!d,
105
105
  name: "SwitchBase",
106
106
  state: "checked"
107
- }), i = se(), X = (r) => {
108
- F && F(r), i && i.onFocus && i.onFocus(r);
109
- }, Y = (r) => {
110
- f && f(r), i && i.onBlur && i.onBlur(r);
111
- }, Z = (r) => {
112
- if (r.nativeEvent.defaultPrevented)
107
+ }), i = ne(), X = (c) => {
108
+ F && F(c), i && i.onFocus && i.onFocus(c);
109
+ }, Y = (c) => {
110
+ f && f(c), i && i.onBlur && i.onBlur(c);
111
+ }, Z = (c) => {
112
+ if (c.nativeEvent.defaultPrevented)
113
113
  return;
114
- const M = r.target.checked;
115
- Q(M), h && h(r, M);
114
+ const M = c.target.checked;
115
+ Q(M), h && h(c, M);
116
116
  };
117
117
  let m = k;
118
118
  i && typeof m > "u" && (m = i.disabled);
119
119
  const ee = x === "checkbox" || x === "radio", R = {
120
120
  ...t,
121
- checked: j,
121
+ checked: $,
122
122
  disabled: m,
123
123
  disableFocusRipple: g,
124
124
  edge: u
@@ -134,11 +134,11 @@ const de = (o) => {
134
134
  onFocus: X,
135
135
  onBlur: Y,
136
136
  ownerState: R,
137
- ref: n,
137
+ ref: a,
138
138
  ...K,
139
- children: [/* @__PURE__ */ c(ue, {
140
- autoFocus: a,
141
- checked: s,
139
+ children: [/* @__PURE__ */ r(ue, {
140
+ autoFocus: s,
141
+ checked: n,
142
142
  defaultChecked: d,
143
143
  className: N.input,
144
144
  disabled: m,
@@ -151,11 +151,11 @@ const de = (o) => {
151
151
  ownerState: R,
152
152
  tabIndex: J,
153
153
  type: x,
154
- ...x === "checkbox" && $ === void 0 ? {} : {
155
- value: $
154
+ ...x === "checkbox" && j === void 0 ? {} : {
155
+ value: j
156
156
  },
157
157
  ...I
158
- }), j ? l : w]
158
+ }), $ ? l : w]
159
159
  });
160
160
  });
161
161
  process.env.NODE_ENV !== "production" && (_.propTypes = {
@@ -261,11 +261,11 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
261
261
  */
262
262
  value: e.any
263
263
  });
264
- const fe = P(/* @__PURE__ */ c("path", {
264
+ const fe = P(/* @__PURE__ */ r("path", {
265
265
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
266
- }), "CheckBoxOutlineBlank"), he = P(/* @__PURE__ */ c("path", {
266
+ }), "CheckBoxOutlineBlank"), he = P(/* @__PURE__ */ r("path", {
267
267
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
268
- }), "CheckBox"), me = P(/* @__PURE__ */ c("path", {
268
+ }), "CheckBox"), me = P(/* @__PURE__ */ r("path", {
269
269
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
270
270
  }), "IndeterminateCheckBox");
271
271
  function be(o) {
@@ -274,11 +274,11 @@ function be(o) {
274
274
  const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), ke = (o) => {
275
275
  const {
276
276
  classes: t,
277
- indeterminate: n,
278
- color: a,
279
- size: s
277
+ indeterminate: a,
278
+ color: s,
279
+ size: n
280
280
  } = o, l = {
281
- root: ["root", n && "indeterminate", `color${b(a)}`, `size${b(s)}`]
281
+ root: ["root", a && "indeterminate", `color${b(s)}`, `size${b(n)}`]
282
282
  }, p = H(l, be, t);
283
283
  return {
284
284
  ...t,
@@ -291,9 +291,9 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
291
291
  slot: "Root",
292
292
  overridesResolver: (o, t) => {
293
293
  const {
294
- ownerState: n
294
+ ownerState: a
295
295
  } = o;
296
- return [t.root, n.indeterminate && t.indeterminate, t[`size${b(n.size)}`], n.color !== "default" && t[`color${b(n.color)}`]];
296
+ return [t.root, a.indeterminate && t.indeterminate, t[`size${b(a.size)}`], a.color !== "default" && t[`color${b(a.color)}`]];
297
297
  }
298
298
  })(ie(({
299
299
  theme: o
@@ -345,12 +345,12 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
345
345
  }
346
346
  }
347
347
  }]
348
- }))), Ce = /* @__PURE__ */ c(he, {}), ye = /* @__PURE__ */ c(fe, {}), xe = /* @__PURE__ */ c(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, n) {
349
- const a = ae({
348
+ }))), Ce = /* @__PURE__ */ r(he, {}), ye = /* @__PURE__ */ r(fe, {}), xe = /* @__PURE__ */ r(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
349
+ const s = se({
350
350
  props: t,
351
351
  name: "MuiCheckbox"
352
352
  }), {
353
- checkedIcon: s = Ce,
353
+ checkedIcon: n = Ce,
354
354
  color: l = "primary",
355
355
  icon: p = ye,
356
356
  indeterminate: d = !1,
@@ -360,14 +360,14 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
360
360
  disableRipple: w = !1,
361
361
  className: B,
362
362
  ...I
363
- } = a, C = d ? k : p, y = d ? k : s, f = {
364
- ...a,
363
+ } = s, C = d ? k : p, y = d ? k : n, f = {
364
+ ...s,
365
365
  disableRipple: w,
366
366
  color: l,
367
367
  indeterminate: d,
368
368
  size: u
369
369
  }, h = ke(f);
370
- return /* @__PURE__ */ c(ge, {
370
+ return /* @__PURE__ */ r(ge, {
371
371
  type: "checkbox",
372
372
  inputProps: {
373
373
  "data-indeterminate": d,
@@ -380,7 +380,7 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
380
380
  fontSize: y.props.fontSize ?? u
381
381
  }),
382
382
  ownerState: f,
383
- ref: n,
383
+ ref: a,
384
384
  className: U(h.root, B),
385
385
  ...I,
386
386
  classes: h
@@ -487,7 +487,7 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
487
487
  */
488
488
  value: e.any
489
489
  });
490
- const ve = oe("div")(({ disabled: o }) => ({
490
+ const ve = oe("div")(() => ({
491
491
  ...te`
492
492
  display: flex;
493
493
  flex-wrap: nowrap;
@@ -505,29 +505,23 @@ const ve = oe("div")(({ disabled: o }) => ({
505
505
  padding: 0;
506
506
  width: 19px;
507
507
  height: 19px;
508
-
509
- cursor: ${o ? "default" : "pointer"};
510
-
511
- input {
512
- cursor: ${o ? "default" : "pointer"};
513
- }
514
508
  }
515
509
 
516
510
  .Mui-checked {
517
- color: ${ne.colors.green} !important;
511
+ color: ${ae.colors.green} !important;
518
512
  }
519
513
  `
520
514
  })), Me = ({
521
515
  label: o,
522
516
  colon: t = !0,
523
- noLabel: n = !1,
524
- ...a
517
+ noLabel: a = !1,
518
+ ...s
525
519
  }) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
526
- !n && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
520
+ !a && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
527
521
  o,
528
522
  t && ":"
529
523
  ] }),
530
- /* @__PURE__ */ c(W, { ...a })
524
+ /* @__PURE__ */ r(W, { ...s })
531
525
  ] });
532
526
  export {
533
527
  Me as LabeledCheckbox,