@scbt-ecom/ui 0.22.1 → 0.22.3
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 +24 -16
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
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 = (f) => {
|
|
41422
|
+
console.log("select option clicked"), r.onClick && r.onClick(f);
|
|
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:
|
|
41434
|
-
|
|
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
|
-
|
|
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
|
-
|
|
41472
|
-
|
|
41473
|
-
|
|
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:
|
|
41478
|
-
...
|
|
41483
|
+
ref: m,
|
|
41484
|
+
...h,
|
|
41485
|
+
name: p,
|
|
41486
|
+
instanceId: p,
|
|
41479
41487
|
closeMenuOnSelect: !e,
|
|
41480
41488
|
isMulti: e,
|
|
41481
|
-
filterOption:
|
|
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 ? (
|
|
41486
|
-
getOptionValue: o ? (
|
|
41493
|
+
getOptionLabel: a ? (v) => a(v) : void 0,
|
|
41494
|
+
getOptionValue: o ? (v) => o(v) : void 0,
|
|
41487
41495
|
components: {
|
|
41488
|
-
Control: (
|
|
41496
|
+
Control: (v) => /* @__PURE__ */ T.jsx(
|
|
41489
41497
|
YY,
|
|
41490
41498
|
{
|
|
41491
|
-
...
|
|
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: (
|
|
41501
|
-
MenuList: (
|
|
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
|
);
|