@kashifd/jwero-components 0.5.26 → 0.5.27

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
@@ -39487,52 +39487,26 @@ const sI = /* @__PURE__ */ Gn(rI), hd = U(Nt)(({}) => ({
39487
39487
  label: e,
39488
39488
  onOpenMenu: t,
39489
39489
  onClose: o,
39490
- iconProps: r = {
39490
+ menuList: r,
39491
+ iconProps: s = {
39491
39492
  position: xd
39492
39493
  },
39493
- endIcon: s,
39494
- boxSx: i,
39495
- innerBoxSx: a,
39496
- labelProps: l
39494
+ endIcon: i,
39495
+ boxSx: a,
39496
+ innerBoxSx: l,
39497
+ labelProps: c
39497
39498
  }) => {
39498
- const c = Cd(null), [u, d] = Js(!1), p = () => {
39499
- d(!0), t && t();
39500
- }, h = () => {
39501
- d(!1), o && o();
39502
- }, y = [
39503
- {
39504
- title: "Option 1",
39505
- options: [
39506
- {
39507
- value: "1",
39508
- label: "Option a"
39509
- },
39510
- {
39511
- value: "2",
39512
- label: "Option b"
39513
- }
39514
- ]
39515
- },
39516
- {
39517
- title: "Option 2",
39518
- options: [
39519
- {
39520
- value: "3",
39521
- label: "Option c"
39522
- },
39523
- {
39524
- value: "4",
39525
- label: "Option d"
39526
- }
39527
- ]
39528
- }
39529
- ];
39499
+ const u = Cd(null), [d, p] = Js(!1), h = () => {
39500
+ p(!0), t && t();
39501
+ }, y = () => {
39502
+ p(!1), o && o();
39503
+ };
39530
39504
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
39531
39505
  /* @__PURE__ */ f.jsxs(
39532
39506
  Fe,
39533
39507
  {
39534
- onClick: p,
39535
- ref: c,
39508
+ onClick: h,
39509
+ ref: u,
39536
39510
  direction: "row",
39537
39511
  alignItems: "center",
39538
39512
  justifyContent: "space-between",
@@ -39542,12 +39516,12 @@ const sI = /* @__PURE__ */ Gn(rI), hd = U(Nt)(({}) => ({
39542
39516
  backgroundColor: "#fff",
39543
39517
  borderRadius: "0.5rem",
39544
39518
  border: "1px solid rgba(0, 0, 0, 0.08)",
39545
- boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.50)",
39519
+ boxShadow: "0px 0px 1px 0px rgba(0, 0, 0, 0.40)",
39546
39520
  "&:hover": {
39547
39521
  cursor: "pointer",
39548
- boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.50)"
39522
+ boxShadow: "0px 1px 2px 0px rgba(0, 0, 0, 0.50)"
39549
39523
  },
39550
- ...i
39524
+ ...a
39551
39525
  },
39552
39526
  children: [
39553
39527
  /* @__PURE__ */ f.jsxs(
@@ -39555,26 +39529,26 @@ const sI = /* @__PURE__ */ Gn(rI), hd = U(Nt)(({}) => ({
39555
39529
  {
39556
39530
  direction: "row",
39557
39531
  alignItems: "center",
39558
- sx: { gap: "0.5rem", ...a },
39532
+ sx: { gap: "0.5rem", ...l },
39559
39533
  children: [
39560
- r.icon && r.position === xd && r.icon,
39561
- /* @__PURE__ */ f.jsx(ut, { ...l, children: e }),
39562
- r.icon && r.position === pI && r.icon
39534
+ s.icon && s.position === xd && s.icon,
39535
+ /* @__PURE__ */ f.jsx(ut, { ...c, children: e }),
39536
+ s.icon && s.position === pI && s.icon
39563
39537
  ]
39564
39538
  }
39565
39539
  ),
39566
- s && s
39540
+ i && i
39567
39541
  ]
39568
39542
  }
39569
39543
  ),
39570
39544
  /* @__PURE__ */ f.jsx(
39571
39545
  Wm,
39572
39546
  {
39573
- open: u,
39574
- onClose: h,
39575
- anchorEl: c == null ? void 0 : c.current,
39547
+ open: d,
39548
+ onClose: y,
39549
+ anchorEl: u == null ? void 0 : u.current,
39576
39550
  placement: "bottom-start",
39577
- children: /* @__PURE__ */ f.jsx(dI, { menuList: y })
39551
+ children: /* @__PURE__ */ f.jsx(dI, { menuList: r })
39578
39552
  }
39579
39553
  )
39580
39554
  ] });