@aveonline/ui-react 2.13.0 → 2.13.1
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IDropdownFilterPlain } from './IDropdownFilterPlain';
|
|
2
|
-
export default function DropdownFilterPlain({ classNameContainer, classNameButton, title, variantButton, isOpen, variantFilter, optionsFilterList, optionsFilterPrice, limitList, maxRange, minRange, valueRange, onSelected }: IDropdownFilterPlain): JSX.Element;
|
|
2
|
+
export default function DropdownFilterPlain({ classNameContainer, classNameButton, isSingleLineTitle, title, variantButton, isOpen, variantFilter, optionsFilterList, optionsFilterPrice, limitList, maxRange, minRange, valueRange, onSelected }: IDropdownFilterPlain): JSX.Element;
|
package/dist/ui-react.mjs
CHANGED
|
@@ -37630,44 +37630,45 @@ function ple({
|
|
|
37630
37630
|
function Zue({
|
|
37631
37631
|
classNameContainer: e,
|
|
37632
37632
|
classNameButton: t,
|
|
37633
|
-
|
|
37634
|
-
|
|
37635
|
-
|
|
37636
|
-
|
|
37637
|
-
|
|
37638
|
-
|
|
37639
|
-
|
|
37640
|
-
|
|
37641
|
-
|
|
37642
|
-
|
|
37643
|
-
|
|
37633
|
+
isSingleLineTitle: n = !1,
|
|
37634
|
+
title: r,
|
|
37635
|
+
variantButton: i = "plain-monochrome",
|
|
37636
|
+
isOpen: a = !0,
|
|
37637
|
+
variantFilter: o = "list",
|
|
37638
|
+
optionsFilterList: s,
|
|
37639
|
+
optionsFilterPrice: l,
|
|
37640
|
+
limitList: u = void 0,
|
|
37641
|
+
maxRange: c,
|
|
37642
|
+
minRange: f,
|
|
37643
|
+
valueRange: d,
|
|
37644
|
+
onSelected: p
|
|
37644
37645
|
}) {
|
|
37645
|
-
const [
|
|
37646
|
-
if (
|
|
37646
|
+
const [v, g] = ge(a), h = () => {
|
|
37647
|
+
if (o === "list")
|
|
37647
37648
|
return /* @__PURE__ */ m.jsx(
|
|
37648
37649
|
fle,
|
|
37649
37650
|
{
|
|
37650
|
-
limitList:
|
|
37651
|
-
onSelected:
|
|
37652
|
-
optionsFilterList:
|
|
37651
|
+
limitList: u,
|
|
37652
|
+
onSelected: p,
|
|
37653
|
+
optionsFilterList: s ?? []
|
|
37653
37654
|
}
|
|
37654
37655
|
);
|
|
37655
|
-
if (
|
|
37656
|
+
if (o === "range")
|
|
37656
37657
|
return /* @__PURE__ */ m.jsx(
|
|
37657
37658
|
dle,
|
|
37658
37659
|
{
|
|
37659
|
-
onSelected:
|
|
37660
|
-
minRange:
|
|
37661
|
-
maxRange:
|
|
37662
|
-
valueRange:
|
|
37660
|
+
onSelected: p,
|
|
37661
|
+
minRange: f,
|
|
37662
|
+
maxRange: c,
|
|
37663
|
+
valueRange: d
|
|
37663
37664
|
}
|
|
37664
37665
|
);
|
|
37665
|
-
if (
|
|
37666
|
+
if (o === "price")
|
|
37666
37667
|
return /* @__PURE__ */ m.jsx(
|
|
37667
37668
|
ple,
|
|
37668
37669
|
{
|
|
37669
|
-
onSelected:
|
|
37670
|
-
optionsFilterPrice:
|
|
37670
|
+
onSelected: p,
|
|
37671
|
+
optionsFilterPrice: l ?? []
|
|
37671
37672
|
}
|
|
37672
37673
|
);
|
|
37673
37674
|
};
|
|
@@ -37675,13 +37676,13 @@ function Zue({
|
|
|
37675
37676
|
/* @__PURE__ */ m.jsxs(
|
|
37676
37677
|
Mr,
|
|
37677
37678
|
{
|
|
37678
|
-
variant:
|
|
37679
|
-
isSingleLine:
|
|
37679
|
+
variant: i,
|
|
37680
|
+
isSingleLine: n,
|
|
37680
37681
|
className: ee(
|
|
37681
37682
|
"flex items-center justify-between w-full ",
|
|
37682
37683
|
t
|
|
37683
37684
|
),
|
|
37684
|
-
onClick: () =>
|
|
37685
|
+
onClick: () => g(!v),
|
|
37685
37686
|
children: [
|
|
37686
37687
|
/* @__PURE__ */ m.jsx(
|
|
37687
37688
|
xe,
|
|
@@ -37690,14 +37691,14 @@ function Zue({
|
|
|
37690
37691
|
variant: "highlight",
|
|
37691
37692
|
className: "break-words w-[97px] flex text-left",
|
|
37692
37693
|
lineHeight: "xs",
|
|
37693
|
-
children:
|
|
37694
|
+
children: r
|
|
37694
37695
|
}
|
|
37695
37696
|
),
|
|
37696
|
-
/* @__PURE__ */ m.jsx(ot, { size: "sm", kind:
|
|
37697
|
+
/* @__PURE__ */ m.jsx(ot, { size: "sm", kind: v ? "up" : "down" })
|
|
37697
37698
|
]
|
|
37698
37699
|
}
|
|
37699
37700
|
),
|
|
37700
|
-
/* @__PURE__ */ m.jsx("div", { className: ee(
|
|
37701
|
+
/* @__PURE__ */ m.jsx("div", { className: ee(v ? "block" : "hidden"), children: h() })
|
|
37701
37702
|
] });
|
|
37702
37703
|
}
|
|
37703
37704
|
/**
|