@aveonline/ui-react 2.13.0 → 2.14.0
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,7 +1,7 @@
|
|
|
1
1
|
import { FocusEvent, MouseEvent } from 'react';
|
|
2
2
|
export declare type ISize = 'sm' | 'md' | 'lg';
|
|
3
3
|
export declare type IColor = 'success' | 'warning' | 'disabled' | 'active' | 'hovered' | 'subdued' | 'default' | 'critical' | 'primary' | 'on' | 'pressed';
|
|
4
|
-
export declare type IKind = 'shipping' | 'home' | 'menu' | 'notifications' | 'novelty' | 'help' | 'see-more' | 'info' | 'alert' | 'eye' | 'date' | 'search' | 'delete' | 'more-less' | 'down' | 'up' | 'back' | 'front' | 'major-minor' | 'minor-major' | 'create' | 'success' | 'error' | 'less' | 'joke' | 'shipments' | 'padlock' | 'new' | 'average-unit' | 'average-guide' | 'percentage' | 'download' | 'upload' | 'file' | 'thin-back' | 'thin-front' | 'page-back' | 'page-front' | 'print' | 'more' | 'shipping-ratio' | 'reports' | 'courier' | 'pickup' | 'grin-wink' | 'circle-dollar-to-slot' | 'money' | 'trash' | 'start' | 'edit' | 'copy' | 'menu-line' | 'menu-square' | 'net' | undefined;
|
|
4
|
+
export declare type IKind = 'shipping' | 'home' | 'menu' | 'notifications' | 'novelty' | 'help' | 'see-more' | 'info' | 'alert' | 'eye' | 'date' | 'search' | 'delete' | 'more-less' | 'down' | 'up' | 'back' | 'front' | 'major-minor' | 'minor-major' | 'create' | 'success' | 'error' | 'less' | 'joke' | 'shipments' | 'padlock' | 'new' | 'average-unit' | 'average-guide' | 'percentage' | 'download' | 'upload' | 'file' | 'thin-back' | 'thin-front' | 'page-back' | 'page-front' | 'print' | 'more' | 'shipping-ratio' | 'reports' | 'courier' | 'pickup' | 'grin-wink' | 'circle-dollar-to-slot' | 'money' | 'trash' | 'start' | 'edit' | 'copy' | 'menu-line' | 'menu-square' | 'net' | 'arrow-rotate' | undefined;
|
|
5
5
|
interface IconProps {
|
|
6
6
|
/**
|
|
7
7
|
* Sizes availables
|
|
@@ -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
|
@@ -3295,6 +3295,15 @@ function ot({
|
|
|
3295
3295
|
fill: "none"
|
|
3296
3296
|
}
|
|
3297
3297
|
) });
|
|
3298
|
+
case "arrow-rotate":
|
|
3299
|
+
return /* @__PURE__ */ m.jsx(Xe, { ...n, viewBox: "0 0 512 512", children: /* @__PURE__ */ m.jsx(
|
|
3300
|
+
"path",
|
|
3301
|
+
{
|
|
3302
|
+
className: i,
|
|
3303
|
+
fill: "none",
|
|
3304
|
+
d: "M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"
|
|
3305
|
+
}
|
|
3306
|
+
) });
|
|
3298
3307
|
default:
|
|
3299
3308
|
return /* @__PURE__ */ m.jsx(m.Fragment, {});
|
|
3300
3309
|
}
|
|
@@ -37630,44 +37639,45 @@ function ple({
|
|
|
37630
37639
|
function Zue({
|
|
37631
37640
|
classNameContainer: e,
|
|
37632
37641
|
classNameButton: t,
|
|
37633
|
-
|
|
37634
|
-
|
|
37635
|
-
|
|
37636
|
-
|
|
37637
|
-
|
|
37638
|
-
|
|
37639
|
-
|
|
37640
|
-
|
|
37641
|
-
|
|
37642
|
-
|
|
37643
|
-
|
|
37642
|
+
isSingleLineTitle: n = !1,
|
|
37643
|
+
title: r,
|
|
37644
|
+
variantButton: i = "plain-monochrome",
|
|
37645
|
+
isOpen: a = !0,
|
|
37646
|
+
variantFilter: o = "list",
|
|
37647
|
+
optionsFilterList: s,
|
|
37648
|
+
optionsFilterPrice: l,
|
|
37649
|
+
limitList: u = void 0,
|
|
37650
|
+
maxRange: c,
|
|
37651
|
+
minRange: f,
|
|
37652
|
+
valueRange: d,
|
|
37653
|
+
onSelected: p
|
|
37644
37654
|
}) {
|
|
37645
|
-
const [
|
|
37646
|
-
if (
|
|
37655
|
+
const [v, g] = ge(a), h = () => {
|
|
37656
|
+
if (o === "list")
|
|
37647
37657
|
return /* @__PURE__ */ m.jsx(
|
|
37648
37658
|
fle,
|
|
37649
37659
|
{
|
|
37650
|
-
limitList:
|
|
37651
|
-
onSelected:
|
|
37652
|
-
optionsFilterList:
|
|
37660
|
+
limitList: u,
|
|
37661
|
+
onSelected: p,
|
|
37662
|
+
optionsFilterList: s ?? []
|
|
37653
37663
|
}
|
|
37654
37664
|
);
|
|
37655
|
-
if (
|
|
37665
|
+
if (o === "range")
|
|
37656
37666
|
return /* @__PURE__ */ m.jsx(
|
|
37657
37667
|
dle,
|
|
37658
37668
|
{
|
|
37659
|
-
onSelected:
|
|
37660
|
-
minRange:
|
|
37661
|
-
maxRange:
|
|
37662
|
-
valueRange:
|
|
37669
|
+
onSelected: p,
|
|
37670
|
+
minRange: f,
|
|
37671
|
+
maxRange: c,
|
|
37672
|
+
valueRange: d
|
|
37663
37673
|
}
|
|
37664
37674
|
);
|
|
37665
|
-
if (
|
|
37675
|
+
if (o === "price")
|
|
37666
37676
|
return /* @__PURE__ */ m.jsx(
|
|
37667
37677
|
ple,
|
|
37668
37678
|
{
|
|
37669
|
-
onSelected:
|
|
37670
|
-
optionsFilterPrice:
|
|
37679
|
+
onSelected: p,
|
|
37680
|
+
optionsFilterPrice: l ?? []
|
|
37671
37681
|
}
|
|
37672
37682
|
);
|
|
37673
37683
|
};
|
|
@@ -37675,13 +37685,13 @@ function Zue({
|
|
|
37675
37685
|
/* @__PURE__ */ m.jsxs(
|
|
37676
37686
|
Mr,
|
|
37677
37687
|
{
|
|
37678
|
-
variant:
|
|
37679
|
-
isSingleLine:
|
|
37688
|
+
variant: i,
|
|
37689
|
+
isSingleLine: n,
|
|
37680
37690
|
className: ee(
|
|
37681
37691
|
"flex items-center justify-between w-full ",
|
|
37682
37692
|
t
|
|
37683
37693
|
),
|
|
37684
|
-
onClick: () =>
|
|
37694
|
+
onClick: () => g(!v),
|
|
37685
37695
|
children: [
|
|
37686
37696
|
/* @__PURE__ */ m.jsx(
|
|
37687
37697
|
xe,
|
|
@@ -37690,14 +37700,14 @@ function Zue({
|
|
|
37690
37700
|
variant: "highlight",
|
|
37691
37701
|
className: "break-words w-[97px] flex text-left",
|
|
37692
37702
|
lineHeight: "xs",
|
|
37693
|
-
children:
|
|
37703
|
+
children: r
|
|
37694
37704
|
}
|
|
37695
37705
|
),
|
|
37696
|
-
/* @__PURE__ */ m.jsx(ot, { size: "sm", kind:
|
|
37706
|
+
/* @__PURE__ */ m.jsx(ot, { size: "sm", kind: v ? "up" : "down" })
|
|
37697
37707
|
]
|
|
37698
37708
|
}
|
|
37699
37709
|
),
|
|
37700
|
-
/* @__PURE__ */ m.jsx("div", { className: ee(
|
|
37710
|
+
/* @__PURE__ */ m.jsx("div", { className: ee(v ? "block" : "hidden"), children: h() })
|
|
37701
37711
|
] });
|
|
37702
37712
|
}
|
|
37703
37713
|
/**
|