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