@scbt-ecom/ui 0.22.1 → 0.22.2

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,7 +41418,9 @@ const ZY = ({
41418
41418
  isMulti: l,
41419
41419
  ...c
41420
41420
  }) => {
41421
- const u = l || n.attachment ? "div" : on;
41421
+ const u = l || n.attachment ? "div" : on, d = () => {
41422
+ console.log("select option clicked");
41423
+ };
41422
41424
  return /* @__PURE__ */ T.jsxs(
41423
41425
  Xo.Option,
41424
41426
  {
@@ -41430,8 +41432,11 @@ const ZY = ({
41430
41432
  innerRef: i,
41431
41433
  label: e,
41432
41434
  isSelected: t,
41433
- innerProps: r,
41434
- cx: (d, f) => H(
41435
+ innerProps: {
41436
+ ...r,
41437
+ onClick: d
41438
+ },
41439
+ cx: (f, p) => H(
41435
41440
  "unset-all-apply desk-body-regular-l cursor-pointer rounded-sm px-2 py-4 bg-color-white",
41436
41441
  "text-color-dark hover:bg-color-primary-tr-hover hover:text-color-primary-hover",
41437
41442
  "[&:not(:last-child)]:mb-1 [&>p]:hover:text-color-secondary [&:not(:disabled)]:cursor-pointer",
@@ -41440,7 +41445,7 @@ const ZY = ({
41440
41445
  "pointer-events-none !text-color-disabled": n.disabled,
41441
41446
  "!flex items-center gap-x-4": l || n.attachment && n.attachment.left
41442
41447
  },
41443
- f,
41448
+ p,
41444
41449
  s == null ? void 0 : s.container,
41445
41450
  r.className
41446
41451
  ),
@@ -41468,27 +41473,30 @@ const ZY = ({
41468
41473
  invalid: u,
41469
41474
  filterOptionDisabled: d,
41470
41475
  value: f,
41471
- ...p
41472
- }, h) => {
41473
- const m = d || !t && !e ? null : void 0;
41476
+ name: p,
41477
+ ...h
41478
+ }, m) => {
41479
+ const g = d || !t && !e ? null : void 0;
41474
41480
  return console.log("SelectBase value: ", f), /* @__PURE__ */ T.jsx(
41475
41481
  Bw,
41476
41482
  {
41477
- ref: h,
41478
- ...p,
41483
+ ref: m,
41484
+ ...h,
41485
+ name: p,
41486
+ instanceId: p,
41479
41487
  closeMenuOnSelect: !e,
41480
41488
  isMulti: e,
41481
- filterOption: m,
41489
+ filterOption: g,
41482
41490
  onMenuClose: s,
41483
41491
  className: H("w-full", l == null ? void 0 : l.container, c),
41484
41492
  hideSelectedOptions: i,
41485
- getOptionLabel: a ? (g) => a(g) : void 0,
41486
- getOptionValue: o ? (g) => o(g) : void 0,
41493
+ getOptionLabel: a ? (v) => a(v) : void 0,
41494
+ getOptionValue: o ? (v) => o(v) : void 0,
41487
41495
  components: {
41488
- Control: (g) => /* @__PURE__ */ T.jsx(
41496
+ Control: (v) => /* @__PURE__ */ T.jsx(
41489
41497
  YY,
41490
41498
  {
41491
- ...g,
41499
+ ...v,
41492
41500
  invalid: u,
41493
41501
  displayValue: a,
41494
41502
  isSearchable: t,
@@ -41497,8 +41505,8 @@ const ZY = ({
41497
41505
  classes: l == null ? void 0 : l.control
41498
41506
  }
41499
41507
  ),
41500
- Option: (g) => /* @__PURE__ */ T.jsx(ZY, { ...g, classes: l == null ? void 0 : l.option }),
41501
- MenuList: (g) => /* @__PURE__ */ T.jsx(UY, { ...g, classes: l == null ? void 0 : l.list })
41508
+ Option: (v) => /* @__PURE__ */ T.jsx(ZY, { ...v, classes: l == null ? void 0 : l.option }),
41509
+ MenuList: (v) => /* @__PURE__ */ T.jsx(UY, { ...v, classes: l == null ? void 0 : l.list })
41502
41510
  }
41503
41511
  }
41504
41512
  );