@kashifd/jwero-components 0.7.51 → 0.7.53
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
|
@@ -48142,9 +48142,10 @@ const dW = ({
|
|
|
48142
48142
|
}, uW = ({
|
|
48143
48143
|
options: e,
|
|
48144
48144
|
currentView: t,
|
|
48145
|
-
onChangeView: r
|
|
48145
|
+
onChangeView: r,
|
|
48146
|
+
sx: a
|
|
48146
48147
|
}) => {
|
|
48147
|
-
const
|
|
48148
|
+
const s = Ot();
|
|
48148
48149
|
if (!Array.isArray(e) || e.length === 0)
|
|
48149
48150
|
throw new Error(
|
|
48150
48151
|
"The 'options' prop must be an array with at least one element."
|
|
@@ -48159,14 +48160,17 @@ const dW = ({
|
|
|
48159
48160
|
boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
|
|
48160
48161
|
cursor: "pointer",
|
|
48161
48162
|
width: "fit-content",
|
|
48162
|
-
height: "fit-content"
|
|
48163
|
+
height: "fit-content",
|
|
48164
|
+
background: "red",
|
|
48165
|
+
...a
|
|
48163
48166
|
},
|
|
48164
|
-
children: e == null ? void 0 : e.map((
|
|
48165
|
-
var
|
|
48166
|
-
|
|
48167
|
+
children: e == null ? void 0 : e.map((c, u) => {
|
|
48168
|
+
var b, w, S, O;
|
|
48169
|
+
const g = u === 0, m = u === e.length - 1;
|
|
48170
|
+
return /* @__PURE__ */ v.jsx(
|
|
48167
48171
|
ze,
|
|
48168
48172
|
{
|
|
48169
|
-
onClick: () => r == null ? void 0 : r(
|
|
48173
|
+
onClick: () => r == null ? void 0 : r(c.value),
|
|
48170
48174
|
direction: "row",
|
|
48171
48175
|
alignItems: "center",
|
|
48172
48176
|
sx: {
|
|
@@ -48174,17 +48178,22 @@ const dW = ({
|
|
|
48174
48178
|
padding: "0.4rem 0.75rem",
|
|
48175
48179
|
transition: "0.3s ease",
|
|
48176
48180
|
overflow: "hidden",
|
|
48177
|
-
|
|
48178
|
-
borderRight:
|
|
48179
|
-
backgroundColor: t ===
|
|
48181
|
+
height: "100%",
|
|
48182
|
+
borderRight: m ? "1px solid transparent" : `1px solid ${s.colors.surface2_lightgrey}`,
|
|
48183
|
+
backgroundColor: t === c.value ? s.colors.surface2_lightgrey : s.palette.background.paper,
|
|
48184
|
+
borderTopLeftRadius: g ? "0.625rem" : 0,
|
|
48185
|
+
borderBottomLeftRadius: g ? "0.625rem" : 0,
|
|
48186
|
+
borderTopRightRadius: m ? "0.625rem" : 0,
|
|
48187
|
+
borderBottomRightRadius: m ? "0.625rem" : 0
|
|
48180
48188
|
},
|
|
48181
|
-
children: [
|
|
48182
|
-
((
|
|
48183
|
-
|
|
48184
|
-
((
|
|
48185
|
-
]
|
|
48186
|
-
}
|
|
48187
|
-
|
|
48189
|
+
children: /* @__PURE__ */ v.jsx(pr, { title: (c == null ? void 0 : c.tooltip) || "", children: /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
48190
|
+
((b = c.labelProps) == null ? void 0 : b.position) === "left" && /* @__PURE__ */ v.jsx(it, { ...c == null ? void 0 : c.labelTypographyProps, children: (w = c.labelProps) == null ? void 0 : w.text }),
|
|
48191
|
+
c.icon,
|
|
48192
|
+
((S = c.labelProps) == null ? void 0 : S.position) === "right" && /* @__PURE__ */ v.jsx(it, { ...c == null ? void 0 : c.labelTypographyProps, children: (O = c.labelProps) == null ? void 0 : O.text })
|
|
48193
|
+
] }) })
|
|
48194
|
+
},
|
|
48195
|
+
c.value
|
|
48196
|
+
);
|
|
48188
48197
|
})
|
|
48189
48198
|
}
|
|
48190
48199
|
);
|