@3sc/common-component 0.0.173 → 0.0.174
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/dist/index.es.js +7 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -38338,7 +38338,9 @@ const PL = ({ options: e, isDraggable: t }) => {
|
|
|
38338
38338
|
"& .MuiOutlinedInput-root": {
|
|
38339
38339
|
borderBottomLeftRadius: c ? 0 : "0.7rem",
|
|
38340
38340
|
borderBottomRightRadius: c ? 0 : "0.7rem"
|
|
38341
|
-
}
|
|
38341
|
+
},
|
|
38342
|
+
pointerEvents: l != null && l.disabled ? "none" : "auto",
|
|
38343
|
+
opacity: l != null && l.disabled ? "0.6" : 1
|
|
38342
38344
|
},
|
|
38343
38345
|
onClick: () => {
|
|
38344
38346
|
u((v) => !v);
|
|
@@ -38418,6 +38420,8 @@ const PL = ({ options: e, isDraggable: t }) => {
|
|
|
38418
38420
|
ai,
|
|
38419
38421
|
{
|
|
38420
38422
|
sx: {
|
|
38423
|
+
opacity: v != null && v.isMandatory || v != null && v.disabled ? 0.5 : 1,
|
|
38424
|
+
pointerEvents: v != null && v.isMandatory || v != null && v.disabled ? "none" : "auto",
|
|
38421
38425
|
padding: "0.8rem 1.2rem",
|
|
38422
38426
|
borderTop: I !== 0 || a ? (S) => `0.1rem solid ${S.palette.primary.notifyBorderColor}` : "none"
|
|
38423
38427
|
},
|
|
@@ -38426,16 +38430,14 @@ const PL = ({ options: e, isDraggable: t }) => {
|
|
|
38426
38430
|
onDragOver: f,
|
|
38427
38431
|
onDrop: () => m(I),
|
|
38428
38432
|
onClick: (S) => {
|
|
38429
|
-
S.stopPropagation(), !(v != null && v.isMandatory) && g(v);
|
|
38433
|
+
S.stopPropagation(), (!(v != null && v.isMandatory) || !(v != null && v.disabled)) && g(v);
|
|
38430
38434
|
},
|
|
38431
38435
|
children: /* @__PURE__ */ y.jsxs(kt, { direction: "row", alignItems: "center", gap: "1rem", children: [
|
|
38432
38436
|
s && /* @__PURE__ */ y.jsx(
|
|
38433
38437
|
Sb,
|
|
38434
38438
|
{
|
|
38435
38439
|
sx: {
|
|
38436
|
-
p: 0
|
|
38437
|
-
opacity: v != null && v.isMandatory ? 0.5 : 1,
|
|
38438
|
-
pointerEvents: v != null && v.isMandatory ? "none" : "auto"
|
|
38440
|
+
p: 0
|
|
38439
38441
|
},
|
|
38440
38442
|
checked: r.some((S) => S.id === v.id)
|
|
38441
38443
|
}
|