@scbt-ecom/ui 0.22.3 → 0.22.4

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/ui.js CHANGED
@@ -41418,10 +41418,13 @@ const ZY = ({
41418
41418
  isMulti: l,
41419
41419
  ...c
41420
41420
  }) => {
41421
- const u = l || n.attachment ? "div" : on, d = (f) => {
41422
- console.log("select option clicked"), r.onClick && r.onClick(f);
41421
+ const { onChange: u } = o, d = l || n.attachment ? "div" : on, f = () => {
41422
+ console.log("select option clicked"), u(n, {
41423
+ action: "select-option",
41424
+ option: n
41425
+ });
41423
41426
  };
41424
- return /* @__PURE__ */ T.jsxs(
41427
+ return /* @__PURE__ */ T.jsx("button", { type: "button", onClick: f, className: "w-full text-start", children: /* @__PURE__ */ T.jsxs(
41425
41428
  Xo.Option,
41426
41429
  {
41427
41430
  ...c,
@@ -41432,32 +41435,29 @@ const ZY = ({
41432
41435
  innerRef: i,
41433
41436
  label: e,
41434
41437
  isSelected: t,
41435
- innerProps: {
41436
- ...r,
41437
- onClick: d
41438
- },
41439
- cx: (f, p) => H(
41438
+ innerProps: r,
41439
+ cx: (p, h) => H(
41440
41440
  "unset-all-apply desk-body-regular-l cursor-pointer rounded-sm px-2 py-4 bg-color-white",
41441
- "text-color-dark hover:bg-color-primary-tr-hover hover:text-color-primary-hover",
41441
+ "text-color-dark hover:bg-color-primary-tr-hover hover:text-color-primary-hover w-full",
41442
41442
  "[&:not(:last-child)]:mb-1 [&>p]:hover:text-color-secondary [&:not(:disabled)]:cursor-pointer",
41443
41443
  {
41444
41444
  "!bg-color-primary-tr-hover !text-color-primary-hover": t || a,
41445
41445
  "pointer-events-none !text-color-disabled": n.disabled,
41446
41446
  "!flex items-center gap-x-4": l || n.attachment && n.attachment.left
41447
41447
  },
41448
- p,
41448
+ h,
41449
41449
  s == null ? void 0 : s.container,
41450
41450
  r.className
41451
41451
  ),
41452
41452
  children: [
41453
41453
  l ? /* @__PURE__ */ T.jsx(wm, { checked: t, disabled: n.disabled }) : n.attachment && n.attachment.left && /* @__PURE__ */ T.jsx(Zi, { ...n.attachment.left }),
41454
- /* @__PURE__ */ T.jsxs(u, { children: [
41454
+ /* @__PURE__ */ T.jsxs(d, { children: [
41455
41455
  e,
41456
41456
  n.additionalText && /* @__PURE__ */ T.jsx("p", { className: H("desk-body-regular-s text-color-tetriary", s == null ? void 0 : s.additionalText), children: n.additionalText })
41457
41457
  ] })
41458
41458
  ]
41459
41459
  }
41460
- );
41460
+ ) });
41461
41461
  }, UY = ({ classes: t, ...e }) => /* @__PURE__ */ T.jsx(Xo.MenuList, { ...e, className: H("customScrollbar-y overflow-y-scroll p-1 pr-1", t == null ? void 0 : t.container) }), kE = jt(
41462
41462
  ({
41463
41463
  isSearchable: t,