@scbt-ecom/ui 0.0.52 → 0.0.53
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/client.js +32 -31
- package/dist/client.js.map +1 -1
- package/dist/shared/ui/formControlElements/comboboxControl/ComboboxControl.d.ts +3 -3
- package/dist/shared/ui/formControlElements/comboboxControl/model/selectClassnames.d.ts +3 -3
- package/dist/shared/ui/formControlElements/comboboxControl/model/types.d.ts +11 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -9760,7 +9760,7 @@ const Vo = ({
|
|
|
9760
9760
|
htmlFor: e,
|
|
9761
9761
|
className: D(
|
|
9762
9762
|
"desk-body-regular-l pointer-events-none absolute left-4 top-2/4 -translate-y-1/2 text-color-tetriary transition-all duration-15",
|
|
9763
|
-
{ "
|
|
9763
|
+
{ "!top-2 !translate-y-0 !bg-color-transparent [&&]:desk-body-regular-s": r && !o },
|
|
9764
9764
|
{
|
|
9765
9765
|
"group-focus-within:desk-body-regular-s group-focus-within:top-2 group-focus-within:translate-y-0 group-focus-within:bg-color-transparent": !o
|
|
9766
9766
|
},
|
|
@@ -9784,7 +9784,7 @@ const Vo = ({
|
|
|
9784
9784
|
t
|
|
9785
9785
|
]
|
|
9786
9786
|
}
|
|
9787
|
-
), GR = Ff("relative flex flex-col group", {
|
|
9787
|
+
), GR = Ff("relative min-w-[360px] flex flex-col group", {
|
|
9788
9788
|
variants: {
|
|
9789
9789
|
intent: {
|
|
9790
9790
|
clear: "!w-full min-w-[140px]",
|
|
@@ -22633,39 +22633,39 @@ const dz = (t, e, n) => ({
|
|
|
22633
22633
|
indicatorsContainer: () => D("", n == null ? void 0 : n.indicatorsContainer),
|
|
22634
22634
|
input: () => D(
|
|
22635
22635
|
"desk-body-regular-l !p-0 !m-0 z-10 rounded-md bg-color-transparent text-color-dark outline-none transition-all",
|
|
22636
|
-
n == null ? void 0 : n.
|
|
22636
|
+
n == null ? void 0 : n.inputCombobox
|
|
22637
22637
|
),
|
|
22638
|
-
valueContainer: () => D("desk-body-regular-l gap-2 !p-0", n == null ? void 0 : n.valueContainer),
|
|
22638
|
+
valueContainer: () => D("desk-body-regular-l mr-7 gap-2 !p-0", n == null ? void 0 : n.valueContainer),
|
|
22639
22639
|
control: () => D(
|
|
22640
22640
|
"p-4 !min-h-[56px] !bg-color-transparent !border-transparent transition-colors !shadow-[0px_0px_0px_0px_rgba(0,0,0,0)]",
|
|
22641
22641
|
{
|
|
22642
22642
|
"p-0 pt-5 pl-4": !t
|
|
22643
22643
|
},
|
|
22644
|
-
n == null ? void 0 : n.
|
|
22644
|
+
n == null ? void 0 : n.controlCombobox
|
|
22645
22645
|
),
|
|
22646
|
-
container: () => D("w-full !static", n == null ? void 0 : n.
|
|
22646
|
+
container: () => D("w-full !static", n == null ? void 0 : n.containerCombobox),
|
|
22647
22647
|
menuList: () => D("scrollHidden !customScrollbar-y !max-h-[246px] flex flex-col gap-[2px] overflow-x-hidden p-2", n == null ? void 0 : n.menuList),
|
|
22648
22648
|
menu: (r) => D(
|
|
22649
22649
|
"absolute !p-0 top-14 transition-all z-10 mt-2 flex w-full flex-col rounded-md border border-solid border-blue-grey-700 bg-color-white p-2 transition-all empty:invisible !shadow-[0px_0px_0px_0px_rgba(0,0,0,0)]",
|
|
22650
22650
|
{ "scale-100 visible opacity-100": r.selectProps.menuIsOpen },
|
|
22651
22651
|
{ "scale-95 invisible opacity-0": !r.selectProps.menuIsOpen },
|
|
22652
|
-
n == null ? void 0 : n.
|
|
22652
|
+
n == null ? void 0 : n.menuCombobox
|
|
22653
22653
|
),
|
|
22654
|
-
group: () => D("bg-color-positive z-10", n == null ? void 0 : n.
|
|
22654
|
+
group: () => D("bg-color-positive z-10", n == null ? void 0 : n.groupCombobox),
|
|
22655
22655
|
option: (r) => D(
|
|
22656
22656
|
"flex !pl-10 cursor-pointer bg-color-initial text-color-initial items-center justify-between gap-2 active:!bg-color-blue-grey-200 rounded-sm px-3 py-3 hover:!bg-color-blue-grey-200 data-[disabled]:pointer-events-none data-[disabled]:!bg-color-blue-grey-100 data-[selected=true]:!bg-color-negative data-[disabled]:!text-color-disabled focus:!bg-color-blue-grey-200 active:!bg-color-blue-grey-200 hover:text-color-primary-hover",
|
|
22657
22657
|
{ "!pl-2": !t },
|
|
22658
22658
|
{ "!bg-color-primary-tr-focus !text-color-primary-hover": r.isSelected },
|
|
22659
22659
|
{ "!bg-color-primary-tr-focus !text-color-primary-hover": r.isFocused },
|
|
22660
|
-
n == null ? void 0 : n.
|
|
22660
|
+
n == null ? void 0 : n.optionCombobox
|
|
22661
22661
|
),
|
|
22662
22662
|
noOptionsMessage: () => D("!desk-body-regular-m !text-color-tetriary", n == null ? void 0 : n.noOptionsMessage),
|
|
22663
22663
|
singleValue: () => D("!m-0", n == null ? void 0 : n.singleValue),
|
|
22664
22664
|
multiValue: () => D("!bg-color-blue-grey-300 truncate max-w-[300px] !rounded-sm px-[8px] !m-0 py-[5px]", n == null ? void 0 : n.multiValue),
|
|
22665
22665
|
multiValueLabel: () => D("[&&]:desk-body-regular-l !p-0 pl-[6px] !text-color-secondary", n == null ? void 0 : n.multiValueLabel),
|
|
22666
22666
|
multiValueRemove: () => D("hover:!bg-color-transparent", n == null ? void 0 : n.multiValueRemove),
|
|
22667
|
-
placeholder: () => D("!text-icon-blue-grey-600 !desk-body-regular-l", { "!text-color-disabled": e }, n == null ? void 0 : n.
|
|
22668
|
-
indicatorSeparator: () => D("!hidden")
|
|
22667
|
+
placeholder: () => D("!text-icon-blue-grey-600 !desk-body-regular-l", { "!text-color-disabled": e }, n == null ? void 0 : n.placeholderCombobox),
|
|
22668
|
+
indicatorSeparator: () => D("!hidden", n == null ? void 0 : n.indicatorSeparator)
|
|
22669
22669
|
}), fz = ({ isSelected: t, classes: e, ...n }) => {
|
|
22670
22670
|
const r = (i) => {
|
|
22671
22671
|
n.innerProps.onClick && n.innerProps.onClick(i);
|
|
@@ -22716,53 +22716,54 @@ const dz = (t, e, n) => ({
|
|
|
22716
22716
|
classes: d,
|
|
22717
22717
|
isMulti: f = !1,
|
|
22718
22718
|
isSearchable: p,
|
|
22719
|
-
|
|
22719
|
+
customChange: h,
|
|
22720
|
+
...m
|
|
22720
22721
|
}) => {
|
|
22721
|
-
const
|
|
22722
|
-
return /* @__PURE__ */ C.jsx(
|
|
22722
|
+
const g = S.useId();
|
|
22723
|
+
return /* @__PURE__ */ C.jsx(
|
|
22723
22724
|
pn,
|
|
22724
22725
|
{
|
|
22725
22726
|
control: e,
|
|
22726
|
-
name:
|
|
22727
|
-
render: ({ field: { onChange:
|
|
22727
|
+
name: m.name,
|
|
22728
|
+
render: ({ field: { onChange: v, ref: x, name: w, value: b }, fieldState: { error: y } }) => /* @__PURE__ */ C.jsxs($r, { classes: d, size: u, children: [
|
|
22728
22729
|
/* @__PURE__ */ C.jsxs(
|
|
22729
22730
|
"div",
|
|
22730
22731
|
{
|
|
22731
22732
|
className: D(
|
|
22732
22733
|
"relative flex rounded-sm border border-solid border-transparent bg-color-blue-grey-100 transition-colors hover:bg-color-blue-grey-200 focus:outline-blue-grey-800 active:bg-color-blue-grey-100 group-focus-within:border-blue-grey-800",
|
|
22733
|
-
{ "!border-negative":
|
|
22734
|
+
{ "!border-negative": y },
|
|
22734
22735
|
{ "!bg-color-blue-grey-100": s }
|
|
22735
22736
|
),
|
|
22736
22737
|
children: [
|
|
22737
|
-
!f && /* @__PURE__ */ C.jsx(Hw, { disabled: s, classes: d, fieldId:
|
|
22738
|
+
!f && /* @__PURE__ */ C.jsx(Hw, { disabled: s, classes: d, fieldId: g, label: o, value: b }),
|
|
22738
22739
|
/* @__PURE__ */ C.jsx(
|
|
22739
22740
|
uz,
|
|
22740
22741
|
{
|
|
22741
|
-
inputId:
|
|
22742
|
+
inputId: g,
|
|
22742
22743
|
placeholder: f ? a : "",
|
|
22743
22744
|
classNamePrefix: r,
|
|
22744
|
-
instanceId:
|
|
22745
|
+
instanceId: w,
|
|
22745
22746
|
hideSelectedOptions: !1,
|
|
22746
22747
|
closeMenuOnSelect: !f,
|
|
22747
22748
|
components: {
|
|
22748
|
-
Option: (
|
|
22749
|
-
MultiValueRemove: (
|
|
22750
|
-
DropdownIndicator: (
|
|
22749
|
+
Option: (E) => /* @__PURE__ */ C.jsx(fz, { ...E, classes: d }),
|
|
22750
|
+
MultiValueRemove: (E) => /* @__PURE__ */ C.jsx(hz, { ...E, classes: d }),
|
|
22751
|
+
DropdownIndicator: (E) => /* @__PURE__ */ C.jsx(pz, { ...E, classes: d })
|
|
22751
22752
|
},
|
|
22752
22753
|
classNames: dz(f, s, d),
|
|
22753
22754
|
isSearchable: p,
|
|
22754
|
-
ref:
|
|
22755
|
+
ref: x,
|
|
22755
22756
|
isDisabled: s,
|
|
22756
22757
|
isMulti: f,
|
|
22757
22758
|
defaultValue: n,
|
|
22758
22759
|
isClearable: i,
|
|
22759
22760
|
noOptionsMessage: () => c,
|
|
22760
22761
|
options: t,
|
|
22761
|
-
value: t.find((
|
|
22762
|
-
onChange: (
|
|
22763
|
-
|
|
22762
|
+
value: t.find((E) => E.value === b),
|
|
22763
|
+
onChange: (E) => {
|
|
22764
|
+
h && h(E), v(f ? E == null ? void 0 : E.map((A) => A.value) : E == null ? void 0 : E.value);
|
|
22764
22765
|
},
|
|
22765
|
-
...
|
|
22766
|
+
...m
|
|
22766
22767
|
}
|
|
22767
22768
|
)
|
|
22768
22769
|
]
|
|
@@ -22772,14 +22773,14 @@ const dz = (t, e, n) => ({
|
|
|
22772
22773
|
hn,
|
|
22773
22774
|
{
|
|
22774
22775
|
className: D(d == null ? void 0 : d.message),
|
|
22775
|
-
intent:
|
|
22776
|
-
text: (
|
|
22776
|
+
intent: y != null && y.message ? "error" : "simple",
|
|
22777
|
+
text: (y == null ? void 0 : y.message) || l,
|
|
22777
22778
|
disabled: s
|
|
22778
22779
|
}
|
|
22779
22780
|
)
|
|
22780
22781
|
] })
|
|
22781
22782
|
}
|
|
22782
|
-
)
|
|
22783
|
+
);
|
|
22783
22784
|
};
|
|
22784
22785
|
function bt(t) {
|
|
22785
22786
|
this.content = t;
|