@kashifd/jwero-components 0.7.51 → 0.7.52

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 a = Ot();
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((s, c) => {
48165
- var u, g, m, b, w;
48166
- return /* @__PURE__ */ v.jsx(pr, { title: (u = s.labelProps) == null ? void 0 : u.text, children: /* @__PURE__ */ v.jsxs(
48167
+ children: e == null ? void 0 : e.map((c, u) => {
48168
+ var b, w, S, O, M;
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(s.value),
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
- borderRadius: "0.625rem",
48178
- borderRight: c !== (e == null ? void 0 : e.length) - 1 ? `1px solid ${a.colors.surface2_lightgrey}` : "1px solid transparent",
48179
- backgroundColor: t === s.value ? a.colors.surface2_lightgrey : a.palette.background.paper
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
- ((g = s.labelProps) == null ? void 0 : g.position) === "left" && /* @__PURE__ */ v.jsx(it, { ...s == null ? void 0 : s.labelTypographyProps, children: (m = s.labelProps) == null ? void 0 : m.text }),
48183
- s.icon,
48184
- ((b = s.labelProps) == null ? void 0 : b.position) === "right" && /* @__PURE__ */ v.jsx(it, { ...s == null ? void 0 : s.labelTypographyProps, children: (w = s.labelProps) == null ? void 0 : w.text })
48185
- ]
48186
- }
48187
- ) }, s.value);
48189
+ children: /* @__PURE__ */ v.jsx(pr, { title: (b = c.labelProps) == null ? void 0 : b.text, children: /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
48190
+ ((w = c.labelProps) == null ? void 0 : w.position) === "left" && /* @__PURE__ */ v.jsx(it, { ...c == null ? void 0 : c.labelTypographyProps, children: (S = c.labelProps) == null ? void 0 : S.text }),
48191
+ c.icon,
48192
+ ((O = c.labelProps) == null ? void 0 : O.position) === "right" && /* @__PURE__ */ v.jsx(it, { ...c == null ? void 0 : c.labelTypographyProps, children: (M = c.labelProps) == null ? void 0 : M.text })
48193
+ ] }) })
48194
+ },
48195
+ c.value
48196
+ );
48188
48197
  })
48189
48198
  }
48190
48199
  );