@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;
@@ -10,6 +10,7 @@ declare type OptionDropdownFilterPlainPrice = {
10
10
  declare type IDropdownFilterPlain = {
11
11
  classNameButton?: string;
12
12
  classNameContainer?: string;
13
+ isSingleLineTitle?: boolean;
13
14
  title: string;
14
15
  variantButton?: ButtonVariant;
15
16
  isOpen?: boolean;
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
- title: n,
37634
- variantButton: r = "plain-monochrome",
37635
- isOpen: i = !0,
37636
- variantFilter: a = "list",
37637
- optionsFilterList: o,
37638
- optionsFilterPrice: s,
37639
- limitList: l = void 0,
37640
- maxRange: u,
37641
- minRange: c,
37642
- valueRange: f,
37643
- onSelected: d
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 [p, v] = ge(i), g = () => {
37646
- if (a === "list")
37646
+ const [v, g] = ge(a), h = () => {
37647
+ if (o === "list")
37647
37648
  return /* @__PURE__ */ m.jsx(
37648
37649
  fle,
37649
37650
  {
37650
- limitList: l,
37651
- onSelected: d,
37652
- optionsFilterList: o ?? []
37651
+ limitList: u,
37652
+ onSelected: p,
37653
+ optionsFilterList: s ?? []
37653
37654
  }
37654
37655
  );
37655
- if (a === "range")
37656
+ if (o === "range")
37656
37657
  return /* @__PURE__ */ m.jsx(
37657
37658
  dle,
37658
37659
  {
37659
- onSelected: d,
37660
- minRange: c,
37661
- maxRange: u,
37662
- valueRange: f
37660
+ onSelected: p,
37661
+ minRange: f,
37662
+ maxRange: c,
37663
+ valueRange: d
37663
37664
  }
37664
37665
  );
37665
- if (a === "price")
37666
+ if (o === "price")
37666
37667
  return /* @__PURE__ */ m.jsx(
37667
37668
  ple,
37668
37669
  {
37669
- onSelected: d,
37670
- optionsFilterPrice: s ?? []
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: r,
37679
- isSingleLine: !1,
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: () => v(!p),
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: n
37694
+ children: r
37694
37695
  }
37695
37696
  ),
37696
- /* @__PURE__ */ m.jsx(ot, { size: "sm", kind: p ? "up" : "down" })
37697
+ /* @__PURE__ */ m.jsx(ot, { size: "sm", kind: v ? "up" : "down" })
37697
37698
  ]
37698
37699
  }
37699
37700
  ),
37700
- /* @__PURE__ */ m.jsx("div", { className: ee(p ? "block" : "hidden"), children: g() })
37701
+ /* @__PURE__ */ m.jsx("div", { className: ee(v ? "block" : "hidden"), children: h() })
37701
37702
  ] });
37702
37703
  }
37703
37704
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aveonline/ui-react",
3
3
  "description": "Home base for Aveonline design system - ecosystem react",
4
4
  "private": false,
5
- "version": "2.13.0",
5
+ "version": "2.13.1",
6
6
  "types": "./dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"