stone-kit 0.0.1000 → 0.0.1001
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 +1 -1
- package/dist/{FilterWithSave-GT-QRkmD.js → FilterWithSave-RTTlxtU3.js} +1 -1
- package/dist/{Menu-DillWvxK.js → Menu-BMSuuq-v.js} +1 -1
- package/dist/Option-DU8cvBnA.js +87 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +2 -2
- package/dist/components/FormModal/ui/ModalForm.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +1 -1
- package/dist/components/LotCard/index.js +1 -1
- package/dist/components/LotCard/ui/LotCard.js +1 -1
- package/dist/components/RoundButton/ui/RoundButton.js +37 -37
- package/dist/components/Select/ui/Category.js +1 -1
- package/dist/components/Select/ui/Option.js +1 -1
- package/dist/components/Select/ui/Select.js +51 -51
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +1 -1
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- package/dist/components/Tag/ui/Tag.js +66 -65
- package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.types.js +2 -1
- package/dist/layout/components/Header/Header.js +2 -2
- package/dist/layout/components/Menu.js +2 -2
- package/dist/main.js +1 -1
- package/dist/pages/ButtonsPage/Buttons.js +1 -1
- package/dist/pages/FormsPage/FormsPage.js +1 -1
- package/dist/pages/IconsPage/IconsPage.js +1 -1
- package/dist/pages/InputPage/InputPage.js +1 -1
- package/dist/pages/LogoPage/LogoPage.js +1 -1
- package/dist/pages/LotsPage/LotsPage.js +1 -1
- package/dist/pages/ModalsPage/ModalPage.js +1 -1
- package/dist/pages/SelectPage/SelectPage.js +1 -1
- package/dist/pages/TabsPage/TabsPage.js +1 -1
- package/dist/pages/TagsPage/TagsPage.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Option-DQriGtaF.js +0 -86
package/dist/App.js
CHANGED
|
@@ -26,7 +26,7 @@ import "./components/TabSelect/ui/TabSelect.js";
|
|
|
26
26
|
import { nameReg as ir, phoneReg as nr, emailReg as ar } from "./components/FormModal/utils/reg.js";
|
|
27
27
|
import { CheckBox as St } from "./components/CheckBox/CheckBox.js";
|
|
28
28
|
import { TextArea as lr } from "./components/TextArea/TextArea.js";
|
|
29
|
-
import { O as Ft } from "./Option-
|
|
29
|
+
import { O as Ft } from "./Option-DU8cvBnA.js";
|
|
30
30
|
import "./components/CheckBoxNew/CheckBoxNew.js";
|
|
31
31
|
import "./components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
32
32
|
import { getTagsFeatures as or } from "./components/CommercialLotCard/utils/getTagsFeatures.js";
|
|
@@ -12,7 +12,7 @@ import "./components/Switcher/ui/Switcher.js";
|
|
|
12
12
|
import "./components/Text/ui/Text.js";
|
|
13
13
|
import "./components/Flex/ui/Flex.js";
|
|
14
14
|
import "./components/Input/ui/Input.js";
|
|
15
|
-
import "./FilterWithSave-
|
|
15
|
+
import "./FilterWithSave-RTTlxtU3.js";
|
|
16
16
|
import "./components/GroupedInput/ui/GroupedInputs.js";
|
|
17
17
|
import "./index-rKuIKazb.js";
|
|
18
18
|
import "./components/MetroTag/ui/MetroTag.js";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsxs as O, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { NewIcon as m } from "./components/NewIcon/ui/NewIcon.js";
|
|
3
|
+
import { c as g } from "./index-rKuIKazb.js";
|
|
4
|
+
const C = "_multiSelectWrapper_1vjmo_1", b = "_selectedOptions_1vjmo_8", h = "_selectedText_1vjmo_26", f = "_selectedOptionsBtn_1vjmo_34", k = "_selectedOptionsOpened_1vjmo_60", y = "_selectedOptionsNotEmpty_1vjmo_64", D = "_selectOptionsDisabled_1vjmo_69", x = "_optionsOuterContainer_1vjmo_76", S = "_optionsList_1vjmo_89", B = "_lastList_1vjmo_118", L = "_listRight_1vjmo_123", N = "_inputWrapper_1vjmo_127", W = "_option_1vjmo_76", A = "_category_1vjmo_149", w = "_leftSide_1vjmo_155", E = "_optionCategory_1vjmo_160", R = "_optionDisabled_1vjmo_166", T = "_optionClickable_1vjmo_170", U = "_icon_1vjmo_174", $ = "_iconArrow_1vjmo_180", q = "_iconBtn_1vjmo_186", t = {
|
|
5
|
+
multiSelectWrapper: C,
|
|
6
|
+
selectedOptions: b,
|
|
7
|
+
selectedText: h,
|
|
8
|
+
selectedOptionsBtn: f,
|
|
9
|
+
"small-size": "_small-size_1vjmo_39",
|
|
10
|
+
"medium-size": "_medium-size_1vjmo_46",
|
|
11
|
+
"large-size": "_large-size_1vjmo_53",
|
|
12
|
+
selectedOptionsOpened: k,
|
|
13
|
+
selectedOptionsNotEmpty: y,
|
|
14
|
+
selectOptionsDisabled: D,
|
|
15
|
+
optionsOuterContainer: x,
|
|
16
|
+
optionsList: S,
|
|
17
|
+
lastList: B,
|
|
18
|
+
listRight: L,
|
|
19
|
+
inputWrapper: N,
|
|
20
|
+
option: W,
|
|
21
|
+
category: A,
|
|
22
|
+
leftSide: w,
|
|
23
|
+
optionCategory: E,
|
|
24
|
+
optionDisabled: R,
|
|
25
|
+
optionClickable: T,
|
|
26
|
+
icon: U,
|
|
27
|
+
iconArrow: $,
|
|
28
|
+
iconBtn: q,
|
|
29
|
+
"small-size_m": "_small-size_m_1vjmo_199",
|
|
30
|
+
"medium-size_m": "_medium-size_m_1vjmo_205",
|
|
31
|
+
"large-size_m": "_large-size_m_1vjmo_211",
|
|
32
|
+
"small-size_l": "_small-size_l_1vjmo_226",
|
|
33
|
+
"medium-size_l": "_medium-size_l_1vjmo_232",
|
|
34
|
+
"large-size_l": "_large-size_l_1vjmo_238"
|
|
35
|
+
}, F = g.bind(t), J = ({
|
|
36
|
+
option: e,
|
|
37
|
+
selectedOptions: a,
|
|
38
|
+
disabledOptions: r,
|
|
39
|
+
clickableOptions: o,
|
|
40
|
+
handleOptionClick: p,
|
|
41
|
+
isOptionCategory: s,
|
|
42
|
+
sizeIcon: l,
|
|
43
|
+
dataTestId: d,
|
|
44
|
+
isDisabledNotClickable: v,
|
|
45
|
+
addClassName: j = ""
|
|
46
|
+
}) => {
|
|
47
|
+
const u = o ? o.includes(`${e.value}`) : !0, z = e.value === "selectAll", i = a.some((_) => _.value === e.value), c = () => v && o ? !o.includes(`${e.value}`) : r.some((_) => _.value === e.value);
|
|
48
|
+
return /* @__PURE__ */ O(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: F(
|
|
52
|
+
t.option,
|
|
53
|
+
{
|
|
54
|
+
[t.optionDisabled]: c(),
|
|
55
|
+
[t.optionCategory]: s,
|
|
56
|
+
[t.optionClickable]: u || z
|
|
57
|
+
},
|
|
58
|
+
j
|
|
59
|
+
),
|
|
60
|
+
"data-testid": d,
|
|
61
|
+
onClick: () => {
|
|
62
|
+
c() && !i || p(e);
|
|
63
|
+
},
|
|
64
|
+
children: [
|
|
65
|
+
s && /* @__PURE__ */ n(
|
|
66
|
+
m,
|
|
67
|
+
{
|
|
68
|
+
size: l ?? "20",
|
|
69
|
+
name: i ? "selectChecked" : "selectUnchecked"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ n("div", { children: e.label }),
|
|
73
|
+
!s && /* @__PURE__ */ n(
|
|
74
|
+
m,
|
|
75
|
+
{
|
|
76
|
+
size: l ?? "20",
|
|
77
|
+
name: i ? "selectChecked" : "selectUnchecked"
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
J as O,
|
|
86
|
+
t as s
|
|
87
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { fmtNumber as g } from "../../shared/fmtNumber.js";
|
|
3
3
|
import { Price as _ } from "./components/Price/Price.js";
|
|
4
|
-
import { b as N } from "../../FilterWithSave-
|
|
4
|
+
import { b as N } from "../../FilterWithSave-RTTlxtU3.js";
|
|
5
5
|
import { Tags as d } from "./components/Tags/Tags.js";
|
|
6
6
|
const W = "_root_6jgy2_1", f = "_lotImageWrapper_6jgy2_16", h = "_lotNameWrapper_6jgy2_22", j = "_lotName_6jgy2_22", y = "_priceWrapper_6jgy2_50", a = {
|
|
7
7
|
root: W,
|
|
@@ -11,7 +11,7 @@ import "../../../Text/ui/Text.js";
|
|
|
11
11
|
import "../../../Flex/ui/Flex.js";
|
|
12
12
|
import "../../../Input/ui/Input.js";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import { b as A } from "../../../../FilterWithSave-
|
|
14
|
+
import { b as A } from "../../../../FilterWithSave-RTTlxtU3.js";
|
|
15
15
|
import "../../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../../MetroTag/ui/MetroTag.js";
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import { c as w } from "../../../FilterWithSave-
|
|
14
|
+
import { c as w } from "../../../FilterWithSave-RTTlxtU3.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../NewIcon/ui/NewIcon.js";
|
|
3
|
-
import { F as a } from "../../../FilterWithSave-
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-RTTlxtU3.js";
|
|
4
4
|
import "../../Modal/ui/Modal.js";
|
|
5
|
-
import "../../../Option-
|
|
5
|
+
import "../../../Option-DU8cvBnA.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
7
7
|
export {
|
|
8
8
|
a as FilterWithSave
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as B } from "../../../FilterWithSave-
|
|
3
|
+
import { u as B } from "../../../FilterWithSave-RTTlxtU3.js";
|
|
4
4
|
import "../../Button/ui/Button.js";
|
|
5
5
|
import "../../mobileButton/ui/MobileButton.js";
|
|
6
6
|
import "../../NewIcon/ui/NewIcon.js";
|
|
@@ -5,7 +5,7 @@ import "../../../shared/mlnRound.js";
|
|
|
5
5
|
import "../../Button/ui/Button.js";
|
|
6
6
|
import "../../NewIcon/ui/NewIcon.js";
|
|
7
7
|
import "../../Tag/ui/Tag.js";
|
|
8
|
-
import { L as f } from "../../../FilterWithSave-
|
|
8
|
+
import { L as f } from "../../../FilterWithSave-RTTlxtU3.js";
|
|
9
9
|
import "../utils/formatPrice.js";
|
|
10
10
|
export {
|
|
11
11
|
f as LotCard
|
|
@@ -2,13 +2,13 @@ import { jsx as n, Fragment as k } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as f, useEffect as S } from "react";
|
|
3
3
|
import { c as y } from "../../../index-rKuIKazb.js";
|
|
4
4
|
import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
|
|
5
|
-
import { sizeMap as
|
|
6
|
-
const g = "
|
|
5
|
+
import { sizeMap as i } from "./RoundButton.types.js";
|
|
6
|
+
const g = "_btnRound_z7oq7_1", F = "_whiteStroke_z7oq7_43", R = "_whiteFilled_z7oq7_48", $ = "_whiteTransparent_z7oq7_53", v = "_blackFill_z7oq7_58", x = "_blackStroke_z7oq7_63", E = "_fullGray_z7oq7_71", G = "_blue_z7oq7_79", e = {
|
|
7
7
|
btnRound: g,
|
|
8
|
-
"tiny-size": "_tiny-
|
|
9
|
-
"small-size": "_small-
|
|
10
|
-
"medium-size": "_medium-
|
|
11
|
-
"large-size": "_large-
|
|
8
|
+
"tiny-size": "_tiny-size_z7oq7_20",
|
|
9
|
+
"small-size": "_small-size_z7oq7_26",
|
|
10
|
+
"medium-size": "_medium-size_z7oq7_31",
|
|
11
|
+
"large-size": "_large-size_z7oq7_37",
|
|
12
12
|
whiteStroke: F,
|
|
13
13
|
whiteFilled: R,
|
|
14
14
|
whiteTransparent: $,
|
|
@@ -16,60 +16,60 @@ const g = "_btnRound_zojoc_1", F = "_whiteStroke_zojoc_42", R = "_whiteFilled_zo
|
|
|
16
16
|
blackStroke: x,
|
|
17
17
|
fullGray: E,
|
|
18
18
|
blue: G,
|
|
19
|
-
"tiny-size_m": "_tiny-
|
|
20
|
-
"small-size_m": "_small-
|
|
21
|
-
"medium-size_m": "_medium-
|
|
22
|
-
"large-size_m": "_large-
|
|
23
|
-
"tiny-size_l": "_tiny-
|
|
24
|
-
"small-size_l": "_small-
|
|
25
|
-
"medium-size_l": "_medium-
|
|
26
|
-
"large-size_l": "_large-
|
|
27
|
-
}, T = y.bind(e),
|
|
28
|
-
size:
|
|
29
|
-
size_m:
|
|
30
|
-
size_l:
|
|
31
|
-
children:
|
|
32
|
-
iconName:
|
|
33
|
-
variant:
|
|
34
|
-
additionalClass:
|
|
19
|
+
"tiny-size_m": "_tiny-size_m_z7oq7_85",
|
|
20
|
+
"small-size_m": "_small-size_m_z7oq7_90",
|
|
21
|
+
"medium-size_m": "_medium-size_m_z7oq7_94",
|
|
22
|
+
"large-size_m": "_large-size_m_z7oq7_99",
|
|
23
|
+
"tiny-size_l": "_tiny-size_l_z7oq7_120",
|
|
24
|
+
"small-size_l": "_small-size_l_z7oq7_125",
|
|
25
|
+
"medium-size_l": "_medium-size_l_z7oq7_129",
|
|
26
|
+
"large-size_l": "_large-size_l_z7oq7_134"
|
|
27
|
+
}, T = y.bind(e), I = ({
|
|
28
|
+
size: o = "small",
|
|
29
|
+
size_m: t,
|
|
30
|
+
size_l: _,
|
|
31
|
+
children: a = "",
|
|
32
|
+
iconName: z = "",
|
|
33
|
+
variant: m = "whiteStroke",
|
|
34
|
+
additionalClass: c = "",
|
|
35
35
|
additionalClassIcon: d = "",
|
|
36
36
|
deg: u,
|
|
37
|
-
...
|
|
37
|
+
...r
|
|
38
38
|
}) => {
|
|
39
|
-
const [
|
|
39
|
+
const [q, w] = f(i.small), { color: b = "#141416" } = r;
|
|
40
40
|
return S(() => {
|
|
41
41
|
const s = () => {
|
|
42
|
-
const l = window.innerWidth, h = l > 1440 &&
|
|
42
|
+
const l = window.innerWidth, h = l > 1440 && _ ? i[_] : l >= 1024 && l <= 1440 && t ? i[t] : i[o] || i.small;
|
|
43
43
|
w(h);
|
|
44
44
|
};
|
|
45
45
|
return window.addEventListener("resize", s), s(), () => {
|
|
46
46
|
window.removeEventListener("resize", s);
|
|
47
47
|
};
|
|
48
|
-
}, [
|
|
48
|
+
}, [o, t, _]), /* @__PURE__ */ n(
|
|
49
49
|
"button",
|
|
50
50
|
{
|
|
51
51
|
className: T(
|
|
52
52
|
e.btnRound,
|
|
53
|
-
e[`${
|
|
54
|
-
e[`${
|
|
55
|
-
e[`${
|
|
56
|
-
e[`${
|
|
57
|
-
|
|
53
|
+
e[`${o}-size`],
|
|
54
|
+
e[`${t}-size_m`],
|
|
55
|
+
e[`${_}-size_l`],
|
|
56
|
+
e[`${m}`],
|
|
57
|
+
c
|
|
58
58
|
),
|
|
59
|
-
...
|
|
60
|
-
children: /* @__PURE__ */ n(k, { children:
|
|
59
|
+
...r,
|
|
60
|
+
children: /* @__PURE__ */ n(k, { children: z ? /* @__PURE__ */ n(
|
|
61
61
|
p,
|
|
62
62
|
{
|
|
63
63
|
additionalClass: d,
|
|
64
|
-
name:
|
|
65
|
-
size:
|
|
64
|
+
name: z,
|
|
65
|
+
size: q,
|
|
66
66
|
deg: u,
|
|
67
67
|
color: b
|
|
68
68
|
}
|
|
69
|
-
) :
|
|
69
|
+
) : a })
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
I as RoundButton
|
|
75
75
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
+
import { s as n, O as J } from "../../../Option-DU8cvBnA.js";
|
|
3
3
|
import { NewIcon as N } from "../../NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { c as O } from "../../../index-rKuIKazb.js";
|
|
5
5
|
import { useState as U } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, Fragment as B, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as F, useRef as M, useEffect as z } from "react";
|
|
3
3
|
import { c as Z } from "../../../index-rKuIKazb.js";
|
|
4
|
-
import { s as e, O as D } from "../../../Option-
|
|
4
|
+
import { s as e, O as D } from "../../../Option-DU8cvBnA.js";
|
|
5
5
|
import { NewIcon as T } from "../../NewIcon/ui/NewIcon.js";
|
|
6
6
|
import { Category as b } from "./Category.js";
|
|
7
7
|
import { handleClickModeOption as I, handleClickModeCategory as V } from "../model/selectMode.js";
|
|
@@ -10,36 +10,36 @@ const m = Z.bind(e), ce = ({
|
|
|
10
10
|
customPlaceholder: y,
|
|
11
11
|
placeholder: _ = "Выберите опции",
|
|
12
12
|
error: q,
|
|
13
|
-
disabled:
|
|
13
|
+
disabled: C,
|
|
14
14
|
disabledOptions: u = [],
|
|
15
15
|
additionalClass: A = "",
|
|
16
16
|
additionalClassOption: G,
|
|
17
17
|
additionalClassBtn: H,
|
|
18
18
|
onChange: J,
|
|
19
|
-
onBlur:
|
|
19
|
+
onBlur: S,
|
|
20
20
|
selectedValues: s = [],
|
|
21
|
-
isBtn:
|
|
22
|
-
btnName:
|
|
23
|
-
clickableOptions:
|
|
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
27
|
onClickItem: $,
|
|
28
28
|
onCLickSelect: E,
|
|
29
29
|
size_s: w = "large",
|
|
30
30
|
size_m: L,
|
|
31
31
|
size_l: R,
|
|
32
|
-
isDisabledNotClickable:
|
|
32
|
+
isDisabledNotClickable: g,
|
|
33
33
|
isLast: P,
|
|
34
34
|
selectAll: l
|
|
35
35
|
}) => {
|
|
36
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
37
|
t = Array.isArray(t) ? U() : [];
|
|
38
|
-
const [
|
|
38
|
+
const [i, k] = F(s), [o, h] = F(!1), v = M(null), X = i.filter((r) => r.value !== "selectAll").length, O = (r) => {
|
|
39
39
|
$ && $(r);
|
|
40
40
|
const n = {
|
|
41
41
|
option: r,
|
|
42
|
-
selectedOptions:
|
|
42
|
+
selectedOptions: i,
|
|
43
43
|
disabledOptions: u,
|
|
44
44
|
setSelectedOptions: k,
|
|
45
45
|
onChange: J,
|
|
@@ -48,7 +48,7 @@ const m = Z.bind(e), ce = ({
|
|
|
48
48
|
};
|
|
49
49
|
Array.isArray(r) ? V(n) : I(n);
|
|
50
50
|
}, Y = () => {
|
|
51
|
-
|
|
51
|
+
S && S(i);
|
|
52
52
|
}, W = (r) => {
|
|
53
53
|
const n = r.target;
|
|
54
54
|
if (v.current && !v.current.contains(r.target)) {
|
|
@@ -63,7 +63,7 @@ const m = Z.bind(e), ce = ({
|
|
|
63
63
|
const j = M(s);
|
|
64
64
|
return z(() => {
|
|
65
65
|
s.length !== j.current.length && (k(s), j.current = s);
|
|
66
|
-
}, [s]), /* @__PURE__ */
|
|
66
|
+
}, [s]), /* @__PURE__ */ f(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
ref: v,
|
|
@@ -71,9 +71,9 @@ const m = Z.bind(e), ce = ({
|
|
|
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
79
|
className: m(
|
|
@@ -81,25 +81,25 @@ const m = Z.bind(e), ce = ({
|
|
|
81
81
|
e[`${w}-size`],
|
|
82
82
|
e[`${L}-size_m`],
|
|
83
83
|
e[`${R}-size)_l`],
|
|
84
|
-
{ [e.selectedOptionsNotEmpty]:
|
|
85
|
-
{ [e.selectOptionsDisabled]:
|
|
84
|
+
{ [e.selectedOptionsNotEmpty]: i.length > 0 },
|
|
85
|
+
{ [e.selectOptionsDisabled]: C }
|
|
86
86
|
),
|
|
87
87
|
onClick: () => h(!o),
|
|
88
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ a("div", { className: e.selectedText, children: y || (i.length === 0 ? _ : "Выбрано " + X) })
|
|
89
89
|
}
|
|
90
90
|
),
|
|
91
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ a(
|
|
92
92
|
T,
|
|
93
93
|
{
|
|
94
94
|
name: "arrowShort",
|
|
95
95
|
deg: o ? "180" : "0",
|
|
96
|
-
size:
|
|
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
105
|
className: m(
|
|
@@ -108,79 +108,79 @@ const m = Z.bind(e), ce = ({
|
|
|
108
108
|
e[`${L}-size_m`],
|
|
109
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__ */
|
|
120
|
+
/* @__PURE__ */ a(
|
|
121
121
|
T,
|
|
122
122
|
{
|
|
123
123
|
name: "filter",
|
|
124
124
|
deg: o ? "180" : "0",
|
|
125
|
-
size:
|
|
126
|
-
additionalClass: m(e.icon, { [e.iconBtn]: !
|
|
125
|
+
size: d ?? "24",
|
|
126
|
+
additionalClass: m(e.icon, { [e.iconBtn]: !x })
|
|
127
127
|
}
|
|
128
128
|
)
|
|
129
129
|
] })
|
|
130
130
|
] }),
|
|
131
|
-
o && /* @__PURE__ */
|
|
131
|
+
o && /* @__PURE__ */ a("div", { className: m(
|
|
132
|
+
e.optionsOuterContainer,
|
|
133
|
+
{ [e.listRight]: K },
|
|
134
|
+
{ [e.lastList]: P },
|
|
135
|
+
G
|
|
136
|
+
), children: /* @__PURE__ */ f(
|
|
132
137
|
"div",
|
|
133
138
|
{
|
|
134
|
-
className:
|
|
135
|
-
e.optionsList,
|
|
136
|
-
{ [e.listRight]: K },
|
|
137
|
-
{ [e.lastList]: P },
|
|
138
|
-
G
|
|
139
|
-
),
|
|
139
|
+
className: e.optionsList,
|
|
140
140
|
children: [
|
|
141
|
-
(c === "options" || c === "single") && (t == null ? void 0 : t.map((r, n) => /* @__PURE__ */
|
|
141
|
+
(c === "options" || c === "single") && (t == null ? void 0 : t.map((r, n) => /* @__PURE__ */ a(
|
|
142
142
|
D,
|
|
143
143
|
{
|
|
144
144
|
disabledOptions: u,
|
|
145
|
-
clickableOptions:
|
|
146
|
-
selectedOptions:
|
|
147
|
-
sizeIcon:
|
|
145
|
+
clickableOptions: p,
|
|
146
|
+
selectedOptions: i,
|
|
147
|
+
sizeIcon: d,
|
|
148
148
|
option: r,
|
|
149
149
|
handleOptionClick: O,
|
|
150
|
-
isDisabledNotClickable:
|
|
150
|
+
isDisabledNotClickable: g
|
|
151
151
|
},
|
|
152
152
|
n
|
|
153
153
|
))),
|
|
154
|
-
(c === "category" || c === "double") && (t == null ? void 0 : t.map((r, n) => "options" in r ? /* @__PURE__ */
|
|
154
|
+
(c === "category" || c === "double") && (t == null ? void 0 : t.map((r, n) => "options" in r ? /* @__PURE__ */ a(
|
|
155
155
|
b,
|
|
156
156
|
{
|
|
157
157
|
disabledOptions: u,
|
|
158
|
-
clickableOptions:
|
|
159
|
-
selectedOptions:
|
|
160
|
-
sizeIcon:
|
|
158
|
+
clickableOptions: p,
|
|
159
|
+
selectedOptions: i,
|
|
160
|
+
sizeIcon: d,
|
|
161
161
|
category: r,
|
|
162
162
|
mode: c,
|
|
163
163
|
selectedValues: s,
|
|
164
164
|
handleOptionClick: O,
|
|
165
|
-
isDisabledNotClickable:
|
|
165
|
+
isDisabledNotClickable: g
|
|
166
166
|
},
|
|
167
167
|
n
|
|
168
|
-
) : r.value === "selectAll" ? /* @__PURE__ */
|
|
168
|
+
) : r.value === "selectAll" ? /* @__PURE__ */ a(
|
|
169
169
|
D,
|
|
170
170
|
{
|
|
171
171
|
disabledOptions: u,
|
|
172
|
-
clickableOptions:
|
|
173
|
-
selectedOptions:
|
|
174
|
-
sizeIcon:
|
|
172
|
+
clickableOptions: p,
|
|
173
|
+
selectedOptions: i,
|
|
174
|
+
sizeIcon: d,
|
|
175
175
|
option: r,
|
|
176
176
|
handleOptionClick: O,
|
|
177
|
-
isDisabledNotClickable:
|
|
177
|
+
isDisabledNotClickable: g
|
|
178
178
|
},
|
|
179
179
|
n
|
|
180
180
|
) : null))
|
|
181
181
|
]
|
|
182
182
|
}
|
|
183
|
-
)
|
|
183
|
+
) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
);
|
|
@@ -13,7 +13,7 @@ import "../../Text/ui/Text.js";
|
|
|
13
13
|
import "../../Flex/ui/Flex.js";
|
|
14
14
|
import "../../Input/ui/Input.js";
|
|
15
15
|
import "../../Modal/ui/Modal.js";
|
|
16
|
-
import { a as A } from "../../../FilterWithSave-
|
|
16
|
+
import { a as A } from "../../../FilterWithSave-RTTlxtU3.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../MetroTag/ui/MetroTag.js";
|
|
19
19
|
import "../../Select/ui/Select.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as y } from "../../../FilterWithSave-
|
|
3
|
+
import { S as y } from "../../../FilterWithSave-RTTlxtU3.js";
|
|
4
4
|
import "../../Text/ui/Text.js";
|
|
5
5
|
import "../../../index-rKuIKazb.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|