stone-kit 0.0.1029 → 0.0.1030
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/App.js +4 -4
- package/dist/FilterWithSave-BWA01WwU.js +2476 -0
- package/dist/Menu-CeBSiTyP.js +513 -0
- package/dist/{Option-CtwUzW8a.js → Option-DU8cvBnA.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/components/Button/ui/Button.d.ts +1 -0
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/Button/ui/Button.types.d.ts +1 -0
- package/dist/components/CheckBox/CheckBox.d.ts +1 -0
- package/dist/components/CheckBox/CheckBox.js +1 -1
- package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
- package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
- package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
- package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +2 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
- package/dist/components/Flex/ui/Flex.d.ts +1 -0
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
- package/dist/components/FormModal/ui/ModalForm.js +28 -1445
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
- package/dist/components/Input/ui/Input.d.ts +2 -1
- package/dist/components/Input/ui/Input.js +325 -234
- package/dist/components/Logo/ui/Logo.d.ts +1 -0
- package/dist/components/Logo/ui/Logo.js +6 -6
- package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
- package/dist/components/LotCard/hooks/useLotCard.js +24 -6
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
- package/dist/components/LotCard/ui/LotCard.js +10 -213
- package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
- package/dist/components/LotCard/utils/formatPrice.js +2 -1
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
- package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.js +74 -74
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.js +37 -34
- package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
- package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
- package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
- package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
- package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
- package/dist/components/RoundButton/ui/RoundButton.js +2 -2
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
- package/dist/components/Select/model/selectMode.d.ts +1 -0
- package/dist/components/Select/model/selectMode.js +30 -30
- package/dist/components/Select/ui/Category.d.ts +1 -0
- package/dist/components/Select/ui/Category.js +3 -3
- package/dist/components/Select/ui/Option.d.ts +1 -0
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.d.ts +1 -0
- package/dist/components/Select/ui/Select.js +115 -115
- package/dist/components/SliderNavigation/index.d.ts +1 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -0
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
- package/dist/components/SortSelect/ui/SortSelect.js +26 -108
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
- package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.js +5 -5
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +1 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -120
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.js +91 -91
- package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
- package/dist/components/Text/ui/Text.d.ts +1 -0
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/Text/ui/Text.types.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +1 -0
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
- package/dist/index-DmANy9jd.js +890 -0
- package/dist/{index-BJwl9stn.js → index-DvCs2JPX.js} +9695 -9596
- package/dist/index-rKuIKazb.js +45 -0
- package/dist/layout/Layout.d.ts +1 -0
- package/dist/layout/components/Header/Header.js +71 -48
- package/dist/layout/components/Menu.js +26 -107
- package/dist/main.js +65 -70
- package/dist/pages/ButtonsPage/Buttons.js +61 -44
- package/dist/pages/FormsPage/FormsPage.js +50 -26
- package/dist/pages/IconsPage/IconsPage.js +31 -9
- package/dist/pages/InputPage/InputPage.js +32 -10
- package/dist/pages/LogoPage/LogoPage.js +35 -13
- package/dist/pages/LotsPage/LotsPage.js +17 -18
- package/dist/pages/LotsPage/const.d.ts +1 -0
- package/dist/pages/ModalsPage/ModalPage.js +66 -46
- package/dist/pages/SelectPage/SelectPage.js +58 -58
- package/dist/pages/TabsPage/TabsPage.js +20 -19
- package/dist/pages/TagsPage/TagsPage.js +44 -23
- package/dist/shared/checkLargeOffice.d.ts +1 -0
- package/dist/shared/checkLargeOffice.js +1 -1
- package/dist/shared/mlnRound.js +2 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
- package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
- package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
- package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
- package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
- package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
- package/dist/style.css +1 -0
- package/dist/useSortSelect-BTCEVMVn.js +80 -0
- package/package.json +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/stone-kit.css +0 -1
- package/dist/useLotCard-CYcRSogE.js +0 -186
- package/dist/useSortSelect-Cy3od4ig.js +0 -80
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as I, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as n, O as J } from "../../../Option-
|
|
3
|
-
import { c as O } from "../../../index-YnD2EP-S.js";
|
|
4
|
-
import { useState as U } from "react";
|
|
2
|
+
import { s as n, O as J } from "../../../Option-DU8cvBnA.js";
|
|
5
3
|
import { NewIcon as N } from "../../NewIcon/ui/NewIcon.js";
|
|
4
|
+
import { c as O } from "../../../index-rKuIKazb.js";
|
|
5
|
+
import { useState as U } from "react";
|
|
6
6
|
const j = O.bind(n), z = ({
|
|
7
7
|
category: t,
|
|
8
8
|
selectedOptions: r,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { O as m } from "../../../Option-
|
|
3
|
-
import "../../../index-YnD2EP-S.js";
|
|
2
|
+
import { O as m } from "../../../Option-DU8cvBnA.js";
|
|
4
3
|
import "../../NewIcon/ui/NewIcon.js";
|
|
4
|
+
import "../../../index-rKuIKazb.js";
|
|
5
5
|
export {
|
|
6
6
|
m as Option
|
|
7
7
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { MultiSelectProps } from './Select.types';
|
|
2
|
+
|
|
2
3
|
export declare const Select: ({ options, customPlaceholder, placeholder, error, disabled, disabledOptions, additionalClass, additionalClassOption, additionalClassBtn, onChange, onBlur, selectedValues, isBtn, btnName, clickableOptions, isListRight, sizeIcon, mode, onClickItem, onCLickSelect, size_s, size_m, size_l, isDisabledNotClickable, isLast, selectAll, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,183 +1,183 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as Z } from "../../../index-
|
|
4
|
-
import { s as e, O as
|
|
1
|
+
import { jsxs as f, Fragment as B, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as F, useRef as M, useEffect as z } from "react";
|
|
3
|
+
import { c as Z } from "../../../index-rKuIKazb.js";
|
|
4
|
+
import { s as e, O as D } from "../../../Option-DU8cvBnA.js";
|
|
5
|
+
import { NewIcon as T } from "../../NewIcon/ui/NewIcon.js";
|
|
5
6
|
import { Category as b } from "./Category.js";
|
|
6
7
|
import { handleClickModeOption as I, handleClickModeCategory as V } from "../model/selectMode.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
additionalClass: q = "",
|
|
8
|
+
const m = Z.bind(e), ce = ({
|
|
9
|
+
options: t,
|
|
10
|
+
customPlaceholder: y,
|
|
11
|
+
placeholder: _ = "Выберите опции",
|
|
12
|
+
error: q,
|
|
13
|
+
disabled: C,
|
|
14
|
+
disabledOptions: u = [],
|
|
15
|
+
additionalClass: A = "",
|
|
16
16
|
additionalClassOption: G,
|
|
17
17
|
additionalClassBtn: H,
|
|
18
18
|
onChange: J,
|
|
19
|
-
onBlur:
|
|
20
|
-
selectedValues:
|
|
21
|
-
isBtn:
|
|
22
|
-
btnName:
|
|
23
|
-
clickableOptions:
|
|
19
|
+
onBlur: S,
|
|
20
|
+
selectedValues: s = [],
|
|
21
|
+
isBtn: N = !1,
|
|
22
|
+
btnName: x,
|
|
23
|
+
clickableOptions: p,
|
|
24
24
|
isListRight: K = !1,
|
|
25
|
-
sizeIcon:
|
|
25
|
+
sizeIcon: d,
|
|
26
26
|
mode: c = "options",
|
|
27
|
-
onClickItem:
|
|
28
|
-
onCLickSelect:
|
|
29
|
-
size_s:
|
|
30
|
-
size_m:
|
|
31
|
-
size_l:
|
|
32
|
-
isDisabledNotClickable:
|
|
27
|
+
onClickItem: $,
|
|
28
|
+
onCLickSelect: E,
|
|
29
|
+
size_s: w = "large",
|
|
30
|
+
size_m: L,
|
|
31
|
+
size_l: R,
|
|
32
|
+
isDisabledNotClickable: g,
|
|
33
33
|
isLast: P,
|
|
34
|
-
selectAll:
|
|
34
|
+
selectAll: l
|
|
35
35
|
}) => {
|
|
36
|
-
const Q = { value: "selectAll", label:
|
|
37
|
-
|
|
38
|
-
const [
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
option:
|
|
42
|
-
selectedOptions:
|
|
43
|
-
disabledOptions:
|
|
44
|
-
setSelectedOptions:
|
|
36
|
+
const Q = { value: "selectAll", label: (l == null ? void 0 : l.label) ?? "Выбрать все" }, U = () => l != null && l.enabled ? [Q, .../* @__PURE__ */ new Set([...t])] : [.../* @__PURE__ */ new Set([...t])];
|
|
37
|
+
t = Array.isArray(t) ? U() : [];
|
|
38
|
+
const [i, k] = F(s), [o, h] = F(!1), v = M(null), X = i.filter((r) => r.value !== "selectAll").length, O = (r) => {
|
|
39
|
+
$ && $(r);
|
|
40
|
+
const n = {
|
|
41
|
+
option: r,
|
|
42
|
+
selectedOptions: i,
|
|
43
|
+
disabledOptions: u,
|
|
44
|
+
setSelectedOptions: k,
|
|
45
45
|
onChange: J,
|
|
46
46
|
mode: c,
|
|
47
|
-
optionsParentArr:
|
|
47
|
+
optionsParentArr: t
|
|
48
48
|
};
|
|
49
|
-
Array.isArray(
|
|
49
|
+
Array.isArray(r) ? V(n) : I(n);
|
|
50
50
|
}, Y = () => {
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
51
|
+
S && S(i);
|
|
52
|
+
}, W = (r) => {
|
|
53
|
+
const n = r.target;
|
|
54
|
+
if (v.current && !v.current.contains(r.target)) {
|
|
55
|
+
if (n.closest("svg"))
|
|
56
56
|
return;
|
|
57
|
-
|
|
57
|
+
h(!1);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
document.removeEventListener("click",
|
|
62
|
-
}), [
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
|
|
66
|
-
}, [
|
|
60
|
+
z(() => (document.addEventListener("click", W), () => {
|
|
61
|
+
document.removeEventListener("click", W);
|
|
62
|
+
}), [o]);
|
|
63
|
+
const j = M(s);
|
|
64
|
+
return z(() => {
|
|
65
|
+
s.length !== j.current.length && (k(s), j.current = s);
|
|
66
|
+
}, [s]), /* @__PURE__ */ f(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
ref:
|
|
70
|
-
className:
|
|
69
|
+
ref: v,
|
|
70
|
+
className: m(e.multiSelectWrapper, { [e.multiSelectWrapperError]: q }, A),
|
|
71
71
|
tabIndex: 0,
|
|
72
72
|
onBlur: Y,
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
!
|
|
76
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ f("div", { className: m(e.inputWrapper), children: [
|
|
75
|
+
!N && /* @__PURE__ */ f(B, { children: [
|
|
76
|
+
/* @__PURE__ */ a(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
|
-
className:
|
|
79
|
+
className: m(
|
|
80
80
|
e.selectedOptions,
|
|
81
|
-
e[`${
|
|
82
|
-
e[`${
|
|
83
|
-
e[`${
|
|
84
|
-
{ [e.selectedOptionsNotEmpty]:
|
|
85
|
-
{ [e.selectOptionsDisabled]:
|
|
81
|
+
e[`${w}-size`],
|
|
82
|
+
e[`${L}-size_m`],
|
|
83
|
+
e[`${R}-size)_l`],
|
|
84
|
+
{ [e.selectedOptionsNotEmpty]: i.length > 0 },
|
|
85
|
+
{ [e.selectOptionsDisabled]: C }
|
|
86
86
|
),
|
|
87
|
-
onClick: () =>
|
|
88
|
-
children: /* @__PURE__ */
|
|
87
|
+
onClick: () => h(!o),
|
|
88
|
+
children: /* @__PURE__ */ a("div", { className: e.selectedText, children: y || (i.length === 0 ? _ : "Выбрано " + X) })
|
|
89
89
|
}
|
|
90
90
|
),
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
91
|
+
/* @__PURE__ */ a(
|
|
92
|
+
T,
|
|
93
93
|
{
|
|
94
94
|
name: "arrowShort",
|
|
95
|
-
deg:
|
|
96
|
-
size:
|
|
95
|
+
deg: o ? "180" : "0",
|
|
96
|
+
size: d ?? "24",
|
|
97
97
|
additionalClass: e.icon
|
|
98
98
|
}
|
|
99
99
|
)
|
|
100
100
|
] }),
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */
|
|
101
|
+
N && /* @__PURE__ */ f(B, { children: [
|
|
102
|
+
/* @__PURE__ */ a(
|
|
103
103
|
"button",
|
|
104
104
|
{
|
|
105
|
-
className:
|
|
105
|
+
className: m(
|
|
106
106
|
e.selectedOptions,
|
|
107
|
-
e[`${
|
|
108
|
-
e[`${
|
|
109
|
-
e[`${
|
|
107
|
+
e[`${w}-size`],
|
|
108
|
+
e[`${L}-size_m`],
|
|
109
|
+
e[`${R}-size_l`],
|
|
110
110
|
e.selectedOptionsBtn,
|
|
111
|
-
{ [e.selectOptionsDisabled]:
|
|
111
|
+
{ [e.selectOptionsDisabled]: C },
|
|
112
112
|
H
|
|
113
113
|
),
|
|
114
114
|
onClick: () => {
|
|
115
|
-
|
|
115
|
+
E && E(), h(!o);
|
|
116
116
|
},
|
|
117
|
-
children:
|
|
117
|
+
children: x
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
|
|
120
|
+
/* @__PURE__ */ a(
|
|
121
|
+
T,
|
|
122
122
|
{
|
|
123
123
|
name: "filter",
|
|
124
|
-
deg:
|
|
125
|
-
size:
|
|
126
|
-
additionalClass:
|
|
124
|
+
deg: o ? "180" : "0",
|
|
125
|
+
size: d ?? "24",
|
|
126
|
+
additionalClass: m(e.icon, { [e.iconBtn]: !x })
|
|
127
127
|
}
|
|
128
128
|
)
|
|
129
129
|
] })
|
|
130
130
|
] }),
|
|
131
|
-
|
|
131
|
+
o && /* @__PURE__ */ a("div", { className: m(
|
|
132
132
|
e.optionsOuterContainer,
|
|
133
133
|
{ [e.listRight]: K },
|
|
134
134
|
{ [e.lastList]: P },
|
|
135
135
|
G
|
|
136
|
-
), children: /* @__PURE__ */
|
|
136
|
+
), children: /* @__PURE__ */ f(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
className: e.optionsList,
|
|
140
140
|
children: [
|
|
141
|
-
(c === "options" || c === "single") &&
|
|
142
|
-
|
|
141
|
+
(c === "options" || c === "single") && (t == null ? void 0 : t.map((r, n) => /* @__PURE__ */ a(
|
|
142
|
+
D,
|
|
143
143
|
{
|
|
144
|
-
disabledOptions:
|
|
145
|
-
clickableOptions:
|
|
146
|
-
selectedOptions:
|
|
147
|
-
sizeIcon:
|
|
148
|
-
option:
|
|
149
|
-
handleOptionClick:
|
|
150
|
-
isDisabledNotClickable:
|
|
144
|
+
disabledOptions: u,
|
|
145
|
+
clickableOptions: p,
|
|
146
|
+
selectedOptions: i,
|
|
147
|
+
sizeIcon: d,
|
|
148
|
+
option: r,
|
|
149
|
+
handleOptionClick: O,
|
|
150
|
+
isDisabledNotClickable: g
|
|
151
151
|
},
|
|
152
|
-
|
|
153
|
-
)),
|
|
154
|
-
(c === "category" || c === "double") &&
|
|
152
|
+
n
|
|
153
|
+
))),
|
|
154
|
+
(c === "category" || c === "double") && (t == null ? void 0 : t.map((r, n) => "options" in r ? /* @__PURE__ */ a(
|
|
155
155
|
b,
|
|
156
156
|
{
|
|
157
|
-
disabledOptions:
|
|
158
|
-
clickableOptions:
|
|
159
|
-
selectedOptions:
|
|
160
|
-
sizeIcon:
|
|
161
|
-
category:
|
|
157
|
+
disabledOptions: u,
|
|
158
|
+
clickableOptions: p,
|
|
159
|
+
selectedOptions: i,
|
|
160
|
+
sizeIcon: d,
|
|
161
|
+
category: r,
|
|
162
162
|
mode: c,
|
|
163
|
-
selectedValues:
|
|
164
|
-
handleOptionClick:
|
|
165
|
-
isDisabledNotClickable:
|
|
163
|
+
selectedValues: s,
|
|
164
|
+
handleOptionClick: O,
|
|
165
|
+
isDisabledNotClickable: g
|
|
166
166
|
},
|
|
167
|
-
|
|
168
|
-
) :
|
|
169
|
-
|
|
167
|
+
n
|
|
168
|
+
) : r.value === "selectAll" ? /* @__PURE__ */ a(
|
|
169
|
+
D,
|
|
170
170
|
{
|
|
171
|
-
disabledOptions:
|
|
172
|
-
clickableOptions:
|
|
173
|
-
selectedOptions:
|
|
174
|
-
sizeIcon:
|
|
175
|
-
option:
|
|
176
|
-
handleOptionClick:
|
|
177
|
-
isDisabledNotClickable:
|
|
171
|
+
disabledOptions: u,
|
|
172
|
+
clickableOptions: p,
|
|
173
|
+
selectedOptions: i,
|
|
174
|
+
sizeIcon: d,
|
|
175
|
+
option: r,
|
|
176
|
+
handleOptionClick: O,
|
|
177
|
+
isDisabledNotClickable: g
|
|
178
178
|
},
|
|
179
|
-
|
|
180
|
-
) : null)
|
|
179
|
+
n
|
|
180
|
+
) : null))
|
|
181
181
|
]
|
|
182
182
|
}
|
|
183
183
|
) })
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ISliderNavigation } from './SliderNavigation.types.ts';
|
|
2
|
+
|
|
2
3
|
export declare const SliderNavigation: ({ indexSlide, isDisabledOff, goPrev, goNext, arr, isNeedTag, additionalClassTag, navigationClassName, additionalClassNavButton, size, size_m, size_l, }: ISliderNavigation) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useClientWidth as C } from "../../../shared/useClientWidth.js";
|
|
3
|
-
import { c as T } from "../../../index-YnD2EP-S.js";
|
|
4
2
|
import { RoundButton as d } from "../../RoundButton/ui/RoundButton.js";
|
|
5
|
-
import { Tag as
|
|
3
|
+
import { Tag as C } from "../../Tag/ui/Tag.js";
|
|
4
|
+
import { useClientWidth as T } from "../../../shared/useClientWidth.js";
|
|
5
|
+
import { c as N } from "../../../index-rKuIKazb.js";
|
|
6
6
|
const k = "_sliderTag_1rvl9_1", l = {
|
|
7
7
|
sliderTag: k
|
|
8
|
-
}, v =
|
|
8
|
+
}, v = N.bind(l), $ = ({
|
|
9
9
|
indexSlide: o,
|
|
10
10
|
isDisabledOff: s,
|
|
11
11
|
goPrev: m,
|
|
@@ -19,7 +19,7 @@ const k = "_sliderTag_1rvl9_1", l = {
|
|
|
19
19
|
size_m: i = "medium",
|
|
20
20
|
size_l: a = "large"
|
|
21
21
|
}) => {
|
|
22
|
-
const { isDesktop: h } =
|
|
22
|
+
const { isDesktop: h } = T();
|
|
23
23
|
return /* @__PURE__ */ f("div", { className: u, children: [
|
|
24
24
|
/* @__PURE__ */ r(
|
|
25
25
|
d,
|
|
@@ -35,7 +35,7 @@ const k = "_sliderTag_1rvl9_1", l = {
|
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
37
|
g && /* @__PURE__ */ r(
|
|
38
|
-
|
|
38
|
+
C,
|
|
39
39
|
{
|
|
40
40
|
additionalClass: v(l.sliderTag, p),
|
|
41
41
|
variant: "shade",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { u as m } from "../../../useSortSelect-
|
|
3
|
-
import "../../../index-
|
|
2
|
+
import { u as m } from "../../../useSortSelect-BTCEVMVn.js";
|
|
3
|
+
import "../../../index-rKuIKazb.js";
|
|
4
4
|
export {
|
|
5
5
|
m as useSortSelect
|
|
6
6
|
};
|
|
@@ -1,111 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
setSelectedOption: c,
|
|
28
|
-
setIsOpen: i,
|
|
29
|
-
containerRef: u,
|
|
30
|
-
isMobile: l,
|
|
31
|
-
placeholder: v,
|
|
32
|
-
onChange: c,
|
|
33
|
-
onBlur: y
|
|
34
|
-
});
|
|
35
|
-
return E(() => (document.addEventListener("click", S), () => {
|
|
36
|
-
document.removeEventListener("click", S);
|
|
37
|
-
}), []), /* @__PURE__ */ s(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
ref: u,
|
|
41
|
-
className: r(
|
|
42
|
-
e.sortSelectWrapper,
|
|
43
|
-
{ [e.sortSelectWrapperError]: N },
|
|
44
|
-
{ [e.sortSelectWrapperTop]: d },
|
|
45
|
-
x
|
|
46
|
-
),
|
|
47
|
-
tabIndex: 0,
|
|
48
|
-
onBlur: B,
|
|
49
|
-
onClick: () => {
|
|
50
|
-
m && m();
|
|
51
|
-
},
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */ s("div", { className: r(e.inputWrapper), children: [
|
|
54
|
-
/* @__PURE__ */ t(
|
|
55
|
-
"input",
|
|
56
|
-
{
|
|
57
|
-
type: "text",
|
|
58
|
-
readOnly: !0,
|
|
59
|
-
value: I(),
|
|
60
|
-
className: r(
|
|
61
|
-
e.selectedOptions,
|
|
62
|
-
{ [e.selectOptionsDisabled]: b },
|
|
63
|
-
{ [e.selectionOptionMini]: k }
|
|
64
|
-
),
|
|
65
|
-
onClick: () => {
|
|
66
|
-
o || p && p(), i(!o);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
/* @__PURE__ */ t(
|
|
71
|
-
O,
|
|
72
|
-
{
|
|
73
|
-
name: "twoArrows",
|
|
74
|
-
size: "24",
|
|
75
|
-
additionalClass: e.icon
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] }),
|
|
79
|
-
o && l && /* @__PURE__ */ s(
|
|
80
|
-
T,
|
|
81
|
-
{
|
|
82
|
-
isOpen: o,
|
|
83
|
-
emitIsOpen: i,
|
|
84
|
-
additionalClassModalBody: e.modalAddBody,
|
|
85
|
-
additionalClass: e.selectModal,
|
|
86
|
-
createPortalObj: { domNode: document.querySelector("body") },
|
|
87
|
-
isTransparentBack: !0,
|
|
88
|
-
children: [
|
|
89
|
-
/* @__PURE__ */ s("div", { className: e.mobileSortHeader, children: [
|
|
90
|
-
/* @__PURE__ */ t(z, { children: "Сортировка" }),
|
|
91
|
-
/* @__PURE__ */ t("div", { onClick: () => i(!1), children: /* @__PURE__ */ t(
|
|
92
|
-
O,
|
|
93
|
-
{
|
|
94
|
-
name: "close",
|
|
95
|
-
size: "20"
|
|
96
|
-
}
|
|
97
|
-
) })
|
|
98
|
-
] }),
|
|
99
|
-
/* @__PURE__ */ t("div", { className: e.mobileOptionList, children: n?.map((a) => f(a)) })
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
),
|
|
103
|
-
o && !l && /* @__PURE__ */ t("div", { className: r(e.optionsList, { [e.optionListOnTop]: d }), children: n?.map((a) => f(a)) })
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
};
|
|
108
|
-
A.displayName = "SortSelect";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../../index-rKuIKazb.js";
|
|
4
|
+
import "../../../useSortSelect-BTCEVMVn.js";
|
|
5
|
+
import "../../NewIcon/ui/NewIcon.js";
|
|
6
|
+
import "../../Button/ui/Button.js";
|
|
7
|
+
import "../../mobileButton/ui/MobileButton.js";
|
|
8
|
+
import "../../DestinationTab/ui/DestinationTab.js";
|
|
9
|
+
import "../../RoundButton/ui/RoundButton.js";
|
|
10
|
+
import "../../Tag/ui/Tag.js";
|
|
11
|
+
import "../../Switcher/ui/Switcher.js";
|
|
12
|
+
import "../../Text/ui/Text.js";
|
|
13
|
+
import "../../Flex/ui/Flex.js";
|
|
14
|
+
import "../../Input/ui/Input.js";
|
|
15
|
+
import "../../Modal/ui/Modal.js";
|
|
16
|
+
import { S as A } from "../../../FilterWithSave-BWA01WwU.js";
|
|
17
|
+
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
|
+
import "../../MetroTag/ui/MetroTag.js";
|
|
19
|
+
import "../../Select/ui/Select.js";
|
|
20
|
+
import "../../../shared/useClientWidth.js";
|
|
21
|
+
import "../../SliderNavigation/ui/SliderNavigation.js";
|
|
22
|
+
import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
23
|
+
import "../../TabSelect/ui/TabSelect.js";
|
|
24
|
+
import "../../CheckBox/CheckBox.js";
|
|
25
|
+
import "../../CheckBoxNew/CheckBoxNew.js";
|
|
26
|
+
import "../../CheckboxSelect/ui/CheckboxSelect.js";
|
|
109
27
|
export {
|
|
110
28
|
A as SortSelect
|
|
111
29
|
};
|