@kashifd/jwero-components 0.7.71 → 0.7.72
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
CHANGED
|
@@ -46456,9 +46456,10 @@ const Na = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ v.jsxs(
|
|
|
46456
46456
|
variant: a = "primary",
|
|
46457
46457
|
enterDelay: s = 400,
|
|
46458
46458
|
enterNextDelay: c = 200,
|
|
46459
|
-
sx: u
|
|
46459
|
+
sx: u,
|
|
46460
|
+
childrenSx: g
|
|
46460
46461
|
}) => {
|
|
46461
|
-
const
|
|
46462
|
+
const m = Ot(), b = a === "primary" ? m.colors.secondary : a === "secondary" ? "#ffffff" : m.colors.positive, w = a === "primary" ? "#ffffff" : a === "secondary" ? "black" : m.colors.positive;
|
|
46462
46463
|
return /* @__PURE__ */ v.jsx(
|
|
46463
46464
|
av,
|
|
46464
46465
|
{
|
|
@@ -46472,8 +46473,8 @@ const Na = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ v.jsxs(
|
|
|
46472
46473
|
sx: {
|
|
46473
46474
|
fontSize: "0.875rem",
|
|
46474
46475
|
fontWeight: 500,
|
|
46475
|
-
backgroundColor:
|
|
46476
|
-
color:
|
|
46476
|
+
backgroundColor: b,
|
|
46477
|
+
color: w,
|
|
46477
46478
|
padding: "0.75rem",
|
|
46478
46479
|
borderRadius: "0.5rem",
|
|
46479
46480
|
boxShadow: a === "secondary" ? "0px 8px 16px -2px rgba(27, 33, 44, 0.12)" : null,
|
|
@@ -46482,11 +46483,11 @@ const Na = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ v.jsxs(
|
|
|
46482
46483
|
},
|
|
46483
46484
|
arrow: {
|
|
46484
46485
|
sx: {
|
|
46485
|
-
color:
|
|
46486
|
+
color: b
|
|
46486
46487
|
}
|
|
46487
46488
|
}
|
|
46488
46489
|
},
|
|
46489
|
-
children: /* @__PURE__ */ v.jsx(Fe, { children: e })
|
|
46490
|
+
children: /* @__PURE__ */ v.jsx(Fe, { sx: { ...g }, children: e })
|
|
46490
46491
|
}
|
|
46491
46492
|
);
|
|
46492
46493
|
}, Xx = ({
|
|
@@ -48374,36 +48375,43 @@ const SW = ({
|
|
|
48374
48375
|
children: e == null ? void 0 : e.map((c, u) => {
|
|
48375
48376
|
var b, w, S, O;
|
|
48376
48377
|
const g = u === 0, m = u === e.length - 1;
|
|
48377
|
-
return /* @__PURE__ */ v.jsx(
|
|
48378
|
-
|
|
48378
|
+
return /* @__PURE__ */ v.jsx(
|
|
48379
|
+
pr,
|
|
48379
48380
|
{
|
|
48380
|
-
|
|
48381
|
-
|
|
48382
|
-
|
|
48383
|
-
|
|
48384
|
-
|
|
48385
|
-
|
|
48386
|
-
|
|
48387
|
-
|
|
48388
|
-
|
|
48389
|
-
|
|
48390
|
-
|
|
48391
|
-
|
|
48392
|
-
|
|
48393
|
-
|
|
48394
|
-
|
|
48395
|
-
|
|
48396
|
-
|
|
48397
|
-
|
|
48398
|
-
|
|
48399
|
-
|
|
48400
|
-
|
|
48401
|
-
|
|
48402
|
-
|
|
48403
|
-
|
|
48404
|
-
|
|
48405
|
-
|
|
48406
|
-
|
|
48381
|
+
title: (c == null ? void 0 : c.tooltip) || "",
|
|
48382
|
+
childrenSx: { height: "100%", width: "100%" },
|
|
48383
|
+
children: /* @__PURE__ */ v.jsxs(
|
|
48384
|
+
Fe,
|
|
48385
|
+
{
|
|
48386
|
+
onClick: () => r == null ? void 0 : r(c.value),
|
|
48387
|
+
direction: "row",
|
|
48388
|
+
alignItems: "center",
|
|
48389
|
+
sx: {
|
|
48390
|
+
gap: "0.25rem",
|
|
48391
|
+
padding: "0.4rem 0.75rem",
|
|
48392
|
+
transition: "0.3s ease",
|
|
48393
|
+
overflow: "hidden",
|
|
48394
|
+
height: "100%",
|
|
48395
|
+
borderRight: m ? "1px solid transparent" : `1px solid ${s.colors.surface2_lightgrey}`,
|
|
48396
|
+
backgroundColor: t === c.value ? s.colors.surface2_lightgrey : s.palette.background.paper,
|
|
48397
|
+
borderTopLeftRadius: g ? "0.625rem" : 0,
|
|
48398
|
+
borderBottomLeftRadius: g ? "0.625rem" : 0,
|
|
48399
|
+
borderTopRightRadius: m ? "0.625rem" : 0,
|
|
48400
|
+
borderBottomRightRadius: m ? "0.625rem" : 0,
|
|
48401
|
+
"&:hover": {
|
|
48402
|
+
backgroundColor: s.colors.surface2_lightgrey
|
|
48403
|
+
}
|
|
48404
|
+
},
|
|
48405
|
+
children: [
|
|
48406
|
+
((b = c.labelProps) == null ? void 0 : b.position) === "left" && /* @__PURE__ */ v.jsx(ot, { ...c == null ? void 0 : c.labelTypographyProps, children: (w = c.labelProps) == null ? void 0 : w.text }),
|
|
48407
|
+
c.icon,
|
|
48408
|
+
((S = c.labelProps) == null ? void 0 : S.position) === "right" && /* @__PURE__ */ v.jsx(ot, { ...c == null ? void 0 : c.labelTypographyProps, children: (O = c.labelProps) == null ? void 0 : O.text })
|
|
48409
|
+
]
|
|
48410
|
+
},
|
|
48411
|
+
c.value
|
|
48412
|
+
)
|
|
48413
|
+
}
|
|
48414
|
+
);
|
|
48407
48415
|
})
|
|
48408
48416
|
}
|
|
48409
48417
|
);
|