@kashifd/jwero-components 0.6.64 → 0.6.65

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
@@ -49299,17 +49299,18 @@ const sW = ({
49299
49299
  primaryButtonProps: e,
49300
49300
  secondaryButtonProps: t,
49301
49301
  options: r,
49302
- customClose: a
49302
+ customClose: a,
49303
+ popperProps: s
49303
49304
  }) => {
49304
- const s = br(), [c, d] = ln(!1), [g, m] = ln(
49305
+ const c = br(), [d, g] = ln(!1), [m, v] = ln(
49305
49306
  null
49306
- ), v = (T) => {
49307
- T.stopPropagation(), c ? (d(!1), m(null)) : (d(!0), m(T.currentTarget), t != null && t.onClick && (t == null || t.onClick(T)));
49308
- }, w = (T) => {
49309
- T == null || T.stopPropagation(), d(!1), m(null);
49307
+ ), w = (O) => {
49308
+ O.stopPropagation(), d ? (g(!1), v(null)) : (g(!0), v(O.currentTarget), t != null && t.onClick && (t == null || t.onClick(O)));
49309
+ }, T = (O) => {
49310
+ O == null || O.stopPropagation(), g(!1), v(null);
49310
49311
  };
49311
49312
  return vc(() => {
49312
- a && (m(null), d(!1));
49313
+ a && (v(null), g(!1));
49313
49314
  }, [a]), /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
49314
49315
  /* @__PURE__ */ x.jsxs(
49315
49316
  Ue,
@@ -49335,7 +49336,7 @@ const sW = ({
49335
49336
  borderRadius: "0.5rem 0 0 0.5rem",
49336
49337
  boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
49337
49338
  "&:hover": {
49338
- backgroundColor: s.palette.grey[200]
49339
+ backgroundColor: c.palette.grey[200]
49339
49340
  },
49340
49341
  padding: "0 1rem",
49341
49342
  height: "100%",
@@ -49347,7 +49348,7 @@ const sW = ({
49347
49348
  /* @__PURE__ */ x.jsx(Co, { title: t == null ? void 0 : t.tooltip, children: /* @__PURE__ */ x.jsx(
49348
49349
  Ue,
49349
49350
  {
49350
- onClick: v,
49351
+ onClick: w,
49351
49352
  alignItems: "center",
49352
49353
  justifyContent: "center",
49353
49354
  sx: {
@@ -49355,7 +49356,7 @@ const sW = ({
49355
49356
  padding: "0 0.5em",
49356
49357
  boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
49357
49358
  "&:hover": {
49358
- backgroundColor: s.palette.grey[200]
49359
+ backgroundColor: c.palette.grey[200]
49359
49360
  },
49360
49361
  height: "100%",
49361
49362
  ...t == null ? void 0 : t.sx
@@ -49369,10 +49370,11 @@ const sW = ({
49369
49370
  /* @__PURE__ */ x.jsx(
49370
49371
  zp,
49371
49372
  {
49372
- open: c,
49373
- onClose: w,
49374
- anchorEl: g,
49373
+ open: d,
49374
+ onClose: T,
49375
+ anchorEl: m,
49375
49376
  placement: "bottom",
49377
+ popperProps: s,
49376
49378
  children: /* @__PURE__ */ x.jsx(Xx, { menuList: [{ options: r }] })
49377
49379
  }
49378
49380
  )
@@ -49553,9 +49555,10 @@ const sW = ({
49553
49555
  alt: d == null ? void 0 : d.name,
49554
49556
  sx: {
49555
49557
  bgcolor: !(d != null && d.url) || (d == null ? void 0 : d.url) !== "" ? s.colors.secondary : "transparent",
49558
+ color: "#fff",
49556
49559
  ...a
49557
49560
  },
49558
- children: !(d != null && d.url) || (d == null ? void 0 : d.url) !== "" && c(d == null ? void 0 : d.name)
49561
+ children: !(d != null && d.url) && (d == null ? void 0 : d.url) !== "" && c(d == null ? void 0 : d.name)
49559
49562
  },
49560
49563
  g
49561
49564
  ))