@wface/pixel-ui 0.4.2 → 0.4.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/components/select/index.d.ts +3 -3
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -16
- package/dist/index.mjs.map +1 -1
- package/dist/types/select.d.ts +2 -0
- package/dist/types/select.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4727,11 +4727,11 @@ function Eu(A) {
|
|
|
4727
4727
|
return D.isValidElement(C.label) ? C.label : /* @__PURE__ */ l("div", { className: uA(cA.singleValue, B && cA.disabled), children: /* @__PURE__ */ l("span", { children: I ? jB(String(C.label), I) : C.label }) });
|
|
4728
4728
|
}
|
|
4729
4729
|
function Qu(A) {
|
|
4730
|
-
const g = A.selectProps, { index: C, data: I, getValue: B, removeProps: E } = A, Q = g.limit ?? 3, e = B().length - Q, t = g.
|
|
4731
|
-
return C < Q ? /* @__PURE__ */ S("div", { className: uA(cA.multiValue,
|
|
4732
|
-
/* @__PURE__ */ l("span", { children:
|
|
4733
|
-
!
|
|
4734
|
-
] }) : C === Q ? /* @__PURE__ */ S("div", { className: uA(cA.multiValue,
|
|
4730
|
+
const g = A.selectProps, { index: C, data: I, getValue: B, removeProps: E } = A, Q = g.limit ?? 3, e = B().length - Q, t = g.valueLength ?? 0, n = I.isFixed || g.isDisabled;
|
|
4731
|
+
return C < Q ? /* @__PURE__ */ S("div", { className: uA(cA.multiValue, n && cA.disabled), children: [
|
|
4732
|
+
/* @__PURE__ */ l("span", { children: t ? jB(String(I.label), t) : I.label }),
|
|
4733
|
+
!I.isFixed && /* @__PURE__ */ l("span", { className: cA.clear, onClick: E.onClick, children: /* @__PURE__ */ l(ye, { size: 16 }) })
|
|
4734
|
+
] }) : C === Q ? /* @__PURE__ */ S("div", { className: uA(cA.multiValue, g.isDisabled && cA.disabled), children: [
|
|
4735
4735
|
"+",
|
|
4736
4736
|
e
|
|
4737
4737
|
] }) : null;
|
|
@@ -4785,23 +4785,13 @@ function ou(A, g) {
|
|
|
4785
4785
|
return /* @__PURE__ */ S("div", { className: uA(cA.select, t), children: [
|
|
4786
4786
|
/* @__PURE__ */ S("div", { className: cA.selectInner, children: [
|
|
4787
4787
|
Q && /* @__PURE__ */ l("label", { htmlFor: A.id, children: Q }),
|
|
4788
|
-
e && /* @__PURE__ */ l(
|
|
4789
|
-
RA,
|
|
4790
|
-
{
|
|
4791
|
-
size: "sm",
|
|
4792
|
-
weight: "light",
|
|
4793
|
-
as: "span",
|
|
4794
|
-
className: cA.desc,
|
|
4795
|
-
children: e
|
|
4796
|
-
}
|
|
4797
|
-
),
|
|
4788
|
+
e && /* @__PURE__ */ l(RA, { size: "sm", weight: "light", as: "span", className: cA.desc, children: e }),
|
|
4798
4789
|
/* @__PURE__ */ l(
|
|
4799
4790
|
Tl,
|
|
4800
4791
|
{
|
|
4801
4792
|
ref: g,
|
|
4802
4793
|
isMulti: I,
|
|
4803
4794
|
value: B,
|
|
4804
|
-
isOptionDisabled: (r) => n ? n(r) : !1,
|
|
4805
4795
|
menuPosition: "fixed",
|
|
4806
4796
|
hideSelectedOptions: !1,
|
|
4807
4797
|
menuPlacement: "auto",
|