@3sc/common-component 0.0.525 → 0.0.527
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-Bv25LeyJ.js → index-D7ZHmY2y.js} +8 -8
- package/dist/{index-Bv25LeyJ.js.map → index-D7ZHmY2y.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/{nl-L3bJaVQk.js → nl-C8HSZFBc.js} +2 -2
- package/dist/{nl-L3bJaVQk.js.map → nl-C8HSZFBc.js.map} +1 -1
- package/dist/{tr-BKmaUsnq.js → tr-CJaZ95UR.js} +2 -2
- package/dist/{tr-BKmaUsnq.js.map → tr-CJaZ95UR.js.map} +1 -1
- package/package.json +1 -1
|
@@ -29912,7 +29912,7 @@ const T6 = {
|
|
|
29912
29912
|
);
|
|
29913
29913
|
}, fv = ({ styles: e, label: t, disabled: n, onClick: r, ...o }) => {
|
|
29914
29914
|
const i = kt(), { t: a } = _e(En);
|
|
29915
|
-
let l = t?.length * (t?.length >= 10 ? 6.5 :
|
|
29915
|
+
let l = t?.length * (t?.length >= 10 ? 6.5 : 8.5) + 38 || 0;
|
|
29916
29916
|
l = o?.options ? l + 15 : l;
|
|
29917
29917
|
const [c, u] = me(!1), d = ze(null), [f, p] = me(!1), [h, g] = me(e?.isAnimate), [m, b] = me(!1);
|
|
29918
29918
|
return /* @__PURE__ */ y.jsxs(
|
|
@@ -29930,7 +29930,7 @@ const T6 = {
|
|
|
29930
29930
|
borderRadius: "0.7rem"
|
|
29931
29931
|
},
|
|
29932
29932
|
animate: {
|
|
29933
|
-
width: h ? `${c ? l / 10 : 3.2}rem` : t ? `${l / 10}rem` : "3.2rem"
|
|
29933
|
+
width: h ? `${c ? l / 10 : 3.2}rem` : t ? e?.width ?? `${l / 10}rem` : "3.2rem"
|
|
29934
29934
|
},
|
|
29935
29935
|
whileHover: {
|
|
29936
29936
|
backgroundColor: e?.hover?.backgroundColor,
|
|
@@ -33065,9 +33065,9 @@ const Tj = ({ color: e }) => /* @__PURE__ */ y.jsx("svg", { width: "7", height:
|
|
|
33065
33065
|
async function Ij(e) {
|
|
33066
33066
|
switch (e.split("-")[0]) {
|
|
33067
33067
|
case "tr":
|
|
33068
|
-
return (await import("./tr-
|
|
33068
|
+
return (await import("./tr-CJaZ95UR.js")).tr;
|
|
33069
33069
|
case "nl":
|
|
33070
|
-
return (await import("./nl-
|
|
33070
|
+
return (await import("./nl-C8HSZFBc.js")).nl;
|
|
33071
33071
|
default:
|
|
33072
33072
|
return (await Promise.resolve().then(() => wA)).enUS;
|
|
33073
33073
|
}
|
|
@@ -33362,7 +33362,7 @@ const Bj = ({ options: e, isDraggable: t }) => {
|
|
|
33362
33362
|
f?.disabled || (F.preventDefault(), Y(), a && f?.onChange?.(m, "closed"), !B.current && (g((W) => !W), h && M(0)));
|
|
33363
33363
|
},
|
|
33364
33364
|
...f?.placeholder ? {} : {
|
|
33365
|
-
value: Array.isArray(r) ? Array.isArray(n) && r.length === n.length && n.length ? p("LABEL_ALL_SELECTED") : r.map((F) => F?.label).filter(Boolean).join(", ") : r?.label || r || ""
|
|
33365
|
+
value: Array.isArray(r) ? Array.isArray(n) && r.length === n.length && n.length ? p("LABEL_ALL_SELECTED", { count: n.length }) : r.map((F) => F?.label).filter(Boolean).join(", ") : r?.label || r || ""
|
|
33366
33366
|
},
|
|
33367
33367
|
label: p(f?.label),
|
|
33368
33368
|
...f
|
|
@@ -37652,7 +37652,7 @@ function w2({
|
|
|
37652
37652
|
},
|
|
37653
37653
|
ye
|
|
37654
37654
|
);
|
|
37655
|
-
}, [e?.selectedRow]), le = (te, ne, ye, ve) => /* @__PURE__ */ y.jsx(y.Fragment, { children: te && ye && !te?.isMandatory ? /* @__PURE__ */ y.jsx(
|
|
37655
|
+
}, [e?.selectedRow, f]), le = (te, ne, ye, ve) => /* @__PURE__ */ y.jsx(y.Fragment, { children: te && ye && !te?.isMandatory ? /* @__PURE__ */ y.jsx(
|
|
37656
37656
|
se,
|
|
37657
37657
|
{
|
|
37658
37658
|
resizeStart: () => {
|
|
@@ -37732,7 +37732,7 @@ function w2({
|
|
|
37732
37732
|
)
|
|
37733
37733
|
},
|
|
37734
37734
|
`resize-${ye}_${Ne}`
|
|
37735
|
-
) : null }), [e?.selectedRow]), Se = (te) => {
|
|
37735
|
+
) : null }), [e?.selectedRow, f]), Se = (te) => {
|
|
37736
37736
|
const ne = T.current, { left: ye, right: ve } = ne.getBoundingClientRect(), de = 50, Re = te.clientX > ve - de ? 1 : te.clientX < ye + de ? -1 : 0;
|
|
37737
37737
|
Re !== 0 ? (V.current && clearInterval(V.current), V.current = setInterval(() => {
|
|
37738
37738
|
ne.scrollLeft += Re * 10;
|
|
@@ -39848,4 +39848,4 @@ export {
|
|
|
39848
39848
|
jN as t,
|
|
39849
39849
|
n$ as u
|
|
39850
39850
|
};
|
|
39851
|
-
//# sourceMappingURL=index-
|
|
39851
|
+
//# sourceMappingURL=index-D7ZHmY2y.js.map
|