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.
- package/Button/Button.d.ts +5 -1
- package/Button/Button.js +174 -112
- package/LabeledCheckbox/LabeledCheckbox.js +55 -61
- package/Table/Table.js +151 -150
- package/package.json +1 -1
- package/theme.d.ts +2 -0
- package/theme.js +2 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as z, jsx as
|
|
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
|
|
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
|
|
7
|
-
import { u as
|
|
8
|
-
import { B as
|
|
9
|
-
import { u as
|
|
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:
|
|
22
|
-
disabled:
|
|
23
|
-
edge:
|
|
21
|
+
checked: a,
|
|
22
|
+
disabled: s,
|
|
23
|
+
edge: n
|
|
24
24
|
} = o, l = {
|
|
25
|
-
root: ["root",
|
|
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(
|
|
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,
|
|
78
|
+
}), _ = /* @__PURE__ */ v.forwardRef(function(t, a) {
|
|
79
79
|
const {
|
|
80
|
-
autoFocus:
|
|
81
|
-
checked:
|
|
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, [
|
|
103
|
-
controlled:
|
|
102
|
+
} = t, [$, Q] = re({
|
|
103
|
+
controlled: n,
|
|
104
104
|
default: !!d,
|
|
105
105
|
name: "SwitchBase",
|
|
106
106
|
state: "checked"
|
|
107
|
-
}), i =
|
|
108
|
-
F && F(
|
|
109
|
-
}, Y = (
|
|
110
|
-
f && f(
|
|
111
|
-
}, Z = (
|
|
112
|
-
if (
|
|
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 =
|
|
115
|
-
Q(M), h && h(
|
|
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:
|
|
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:
|
|
137
|
+
ref: a,
|
|
138
138
|
...K,
|
|
139
|
-
children: [/* @__PURE__ */
|
|
140
|
-
autoFocus:
|
|
141
|
-
checked:
|
|
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" &&
|
|
155
|
-
value:
|
|
154
|
+
...x === "checkbox" && j === void 0 ? {} : {
|
|
155
|
+
value: j
|
|
156
156
|
},
|
|
157
157
|
...I
|
|
158
|
-
}),
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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:
|
|
278
|
-
color:
|
|
279
|
-
size:
|
|
277
|
+
indeterminate: a,
|
|
278
|
+
color: s,
|
|
279
|
+
size: n
|
|
280
280
|
} = o, l = {
|
|
281
|
-
root: ["root",
|
|
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:
|
|
294
|
+
ownerState: a
|
|
295
295
|
} = o;
|
|
296
|
-
return [t.root,
|
|
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__ */
|
|
349
|
-
const
|
|
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:
|
|
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
|
-
} =
|
|
364
|
-
...
|
|
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__ */
|
|
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:
|
|
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")((
|
|
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: ${
|
|
511
|
+
color: ${ae.colors.green} !important;
|
|
518
512
|
}
|
|
519
513
|
`
|
|
520
514
|
})), Me = ({
|
|
521
515
|
label: o,
|
|
522
516
|
colon: t = !0,
|
|
523
|
-
noLabel:
|
|
524
|
-
...
|
|
517
|
+
noLabel: a = !1,
|
|
518
|
+
...s
|
|
525
519
|
}) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
|
|
526
|
-
!
|
|
520
|
+
!a && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
|
|
527
521
|
o,
|
|
528
522
|
t && ":"
|
|
529
523
|
] }),
|
|
530
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ r(W, { ...s })
|
|
531
525
|
] });
|
|
532
526
|
export {
|
|
533
527
|
Me as LabeledCheckbox,
|