@3sc/common-component 0.0.172 → 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 +10 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- 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
|
}
|
|
@@ -41104,7 +41106,7 @@ function mC({
|
|
|
41104
41106
|
const G = (O == null ? void 0 : O.isMandatory) && (O == null ? void 0 : O.isSticky), U = parseFloat((X = (J = O == null ? void 0 : O.style) == null ? void 0 : J.maxWidth) == null ? void 0 : X.toString().replace("rem", "")) || 7.5;
|
|
41105
41107
|
L === 0 && (T.current = 0);
|
|
41106
41108
|
const H = G ? L === 0 ? 0 : `${T.current}rem` : void 0;
|
|
41107
|
-
return G && (T.current += U
|
|
41109
|
+
return G && (T.current += U), /* @__PURE__ */ y.jsx(
|
|
41108
41110
|
Nr,
|
|
41109
41111
|
{
|
|
41110
41112
|
rowSpan: O != null && O.children ? 1 : 2,
|
|
@@ -41170,10 +41172,10 @@ function mC({
|
|
|
41170
41172
|
}
|
|
41171
41173
|
) : null, M = (O, L, D, $) => {
|
|
41172
41174
|
var J, X;
|
|
41173
|
-
const G = (O == null ? void 0 : O.isMandatory) && (O == null ? void 0 : O.isSticky), U = parseFloat((X = (
|
|
41175
|
+
const G = (O == null ? void 0 : O.isMandatory) && (O == null ? void 0 : O.isSticky), U = parseFloat((X = (J = O == null ? void 0 : O.style) == null ? void 0 : J.maxWidth) == null ? void 0 : X.toString().replace("rem", "")) || 7.5;
|
|
41174
41176
|
D === 0 && (T.current = 0);
|
|
41175
41177
|
const H = G ? D === 0 ? 0 : `${T.current}rem` : void 0;
|
|
41176
|
-
return G && (T.current += U
|
|
41178
|
+
return G && (T.current += U), /* @__PURE__ */ y.jsx(
|
|
41177
41179
|
Nr,
|
|
41178
41180
|
{
|
|
41179
41181
|
style: O == null ? void 0 : O.style,
|