stone-kit 0.0.1048 → 0.0.1049
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/README.md +88 -88
- package/dist/FilterWithSave-BxUAZs3U.js +2683 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.js +5 -5
- package/dist/components/CommercialLotCard/CommercialLotCard.js +10 -80
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +4 -4
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +1 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
- package/dist/components/FormModal/ui/ModalForm.js +29 -1516
- package/dist/components/Logo/ui/Logo.js +6 -6
- package/dist/components/LotCard/hooks/useLotCard.js +24 -6
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.js +11 -221
- package/dist/components/ModalSuccess/ModalSuccess.js +1 -1
- package/dist/components/RoundButton/ui/RoundButton.js +1 -1
- package/dist/components/Select/ui/Category.js +2 -2
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.js +2 -2
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +26 -108
- package/dist/components/SummarySelect/ui/SummarySelect.js +1 -1
- package/dist/components/TabSelect/ui/TabSelect.js +4 -4
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -121
- package/dist/components/Tag/ui/Tag.js +97 -96
- 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 +65 -44
- package/dist/layout/components/Menu.js +37 -15
- package/dist/main.js +65 -70
- package/dist/pages/ButtonsPage/Buttons.js +61 -44
- package/dist/pages/FormsPage/FormsPage.js +42 -22
- package/dist/pages/IconsPage/IconsPage.js +31 -9
- package/dist/pages/InputPage/InputPage.js +32 -10
- package/dist/pages/LogoPage/LogoPage.js +36 -13
- package/dist/pages/LotsPage/LotsPage.js +38 -30
- package/dist/pages/LotsPage/const.d.ts +4 -1
- package/dist/pages/LotsPage/const.js +30 -4
- package/dist/pages/ModalsPage/ModalPage.js +66 -46
- package/dist/pages/SelectPage/SelectPage.js +40 -41
- package/dist/pages/TabsPage/TabsPage.js +1 -1
- package/dist/pages/TagsPage/TagsPage.js +44 -23
- package/dist/stone-kit.css +1 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
- package/dist/stories/shared/ui/Button/Button.stories.js +4 -4
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +7 -7
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
- package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
- package/package.json +1 -1
- package/dist/useLotCard-D-gK4J_o.js +0 -186
- package/dist/{Option-DmDx_xOt.js → Option-DdjBe9yb.js} +1 -1
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ t(
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { LotCardSkeleton as c } from "../../components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
4
|
+
import { C as s, L as r } from "../../FilterWithSave-BxUAZs3U.js";
|
|
5
|
+
import { ProjectCardSkeleton as p } from "../../components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js";
|
|
6
|
+
import { testLot2 as d, testLot3 as m, testLot4 as f, testLot as a, testLotEmpty as h } from "./const.js";
|
|
7
|
+
const C = "_root_1w9fc_1", _ = "_lotWrapper_1w9fc_8", F = "_optionsWrapper_1w9fc_14", L = "_isFetching_1w9fc_20", e = {
|
|
8
|
+
root: C,
|
|
9
|
+
lotWrapper: _,
|
|
10
|
+
optionsWrapper: F,
|
|
11
|
+
isFetching: L
|
|
12
|
+
}, u = () => {
|
|
13
|
+
const [o, l] = n(!1);
|
|
14
|
+
return /* @__PURE__ */ t("div", { className: e.root, children: /* @__PURE__ */ i("div", { className: e.lotWrapper, children: [
|
|
15
|
+
/* @__PURE__ */ t(s, { lot: d, isVertical: !0 }),
|
|
16
|
+
!o && /* @__PURE__ */ t(s, { lot: m }),
|
|
17
17
|
!o && /* @__PURE__ */ t(
|
|
18
|
-
|
|
18
|
+
s,
|
|
19
19
|
{
|
|
20
|
-
lot:
|
|
20
|
+
lot: f,
|
|
21
|
+
favoriteClickHandler: () => {
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
!o && /* @__PURE__ */ t(
|
|
26
|
+
r,
|
|
27
|
+
{
|
|
28
|
+
lot: a,
|
|
21
29
|
handleBtnForm: () => {
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
32
|
),
|
|
25
33
|
!o && /* @__PURE__ */ t(
|
|
26
|
-
|
|
34
|
+
r,
|
|
27
35
|
{
|
|
28
|
-
lot:
|
|
36
|
+
lot: a,
|
|
29
37
|
favoriteClickHandler: () => {
|
|
30
38
|
},
|
|
31
39
|
handleBtnForm: () => {
|
|
@@ -33,42 +41,42 @@ const f = "_root_1w9fc_1", h = "_lotWrapper_1w9fc_8", _ = "_optionsWrapper_1w9fc
|
|
|
33
41
|
}
|
|
34
42
|
),
|
|
35
43
|
!o && /* @__PURE__ */ t(
|
|
36
|
-
|
|
44
|
+
r,
|
|
37
45
|
{
|
|
38
46
|
favoriteClickHandler: () => {
|
|
39
47
|
},
|
|
40
|
-
lot:
|
|
48
|
+
lot: h,
|
|
41
49
|
handleBtnForm: () => {
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
),
|
|
45
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap" }, children: [
|
|
46
54
|
!o && /* @__PURE__ */ t(
|
|
47
|
-
|
|
55
|
+
r,
|
|
48
56
|
{
|
|
49
57
|
favoriteClickHandler: () => {
|
|
50
58
|
},
|
|
51
|
-
lot:
|
|
59
|
+
lot: a,
|
|
52
60
|
rowConditions: !1,
|
|
53
61
|
handleBtnForm: () => {
|
|
54
62
|
}
|
|
55
63
|
}
|
|
56
64
|
),
|
|
57
|
-
/* @__PURE__ */ t(
|
|
65
|
+
/* @__PURE__ */ t(c, { isProjectCard: !0 })
|
|
58
66
|
] }),
|
|
59
|
-
/* @__PURE__ */ t(
|
|
60
|
-
/* @__PURE__ */ t("div", { className:
|
|
67
|
+
/* @__PURE__ */ t(p, {}),
|
|
68
|
+
/* @__PURE__ */ t("div", { className: e.optionsWrapper, children: /* @__PURE__ */ i("label", { className: e.isFetching, children: [
|
|
61
69
|
"isFetching",
|
|
62
70
|
/* @__PURE__ */ t(
|
|
63
71
|
"input",
|
|
64
72
|
{
|
|
65
73
|
type: "checkbox",
|
|
66
|
-
onClick: () =>
|
|
74
|
+
onClick: () => l(!o)
|
|
67
75
|
}
|
|
68
76
|
)
|
|
69
77
|
] }) })
|
|
70
78
|
] }) });
|
|
71
79
|
};
|
|
72
80
|
export {
|
|
73
|
-
|
|
81
|
+
u as LotsPage
|
|
74
82
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ILot } from '../../components/LotCard/ui/LotCard.types.ts';
|
|
2
2
|
declare const testLot: ILot;
|
|
3
3
|
declare const testLotEmpty: ILot;
|
|
4
|
-
|
|
4
|
+
declare const testLot2: ILot;
|
|
5
|
+
declare const testLot3: ILot;
|
|
6
|
+
declare const testLot4: ILot;
|
|
7
|
+
export { testLot, testLotEmpty, testLot2, testLot3, testLot4 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const l = {
|
|
2
2
|
id: 3218,
|
|
3
3
|
objectId: "SM-M2.1-203",
|
|
4
4
|
lotUuid: "f220e644-a66e-11ef-8384-005056b5170a",
|
|
@@ -579,7 +579,7 @@ const e = {
|
|
|
579
579
|
}
|
|
580
580
|
],
|
|
581
581
|
pdfPresentation: null
|
|
582
|
-
},
|
|
582
|
+
}, s = {
|
|
583
583
|
address: null,
|
|
584
584
|
area: null,
|
|
585
585
|
availableFrom: null,
|
|
@@ -671,8 +671,34 @@ const e = {
|
|
|
671
671
|
windowViews: [],
|
|
672
672
|
workPlacesCount: null,
|
|
673
673
|
workroom: !1
|
|
674
|
+
}, e = {
|
|
675
|
+
...l,
|
|
676
|
+
status: 2
|
|
677
|
+
}, n = {
|
|
678
|
+
...e,
|
|
679
|
+
discount: "5.00",
|
|
680
|
+
sellingPrice: null,
|
|
681
|
+
sellingPriceBeforeDiscount: null,
|
|
682
|
+
id: 3219,
|
|
683
|
+
objectId: "SM-M2.1-204",
|
|
684
|
+
number: "M2.1-204",
|
|
685
|
+
slug: "m21-204",
|
|
686
|
+
lotUuid: "f220e644-a66e-11ef-8384-005056b5170b"
|
|
687
|
+
}, o = {
|
|
688
|
+
...e,
|
|
689
|
+
discount: "7.00",
|
|
690
|
+
sellingPrice: "25000000",
|
|
691
|
+
sellingPriceBeforeDiscount: "26881720",
|
|
692
|
+
id: 3220,
|
|
693
|
+
objectId: "SM-M2.1-205",
|
|
694
|
+
number: "M2.1-205",
|
|
695
|
+
slug: "m21-205",
|
|
696
|
+
lotUuid: "f220e644-a66e-11ef-8384-005056b5170c"
|
|
674
697
|
};
|
|
675
698
|
export {
|
|
676
|
-
|
|
677
|
-
|
|
699
|
+
l as testLot,
|
|
700
|
+
e as testLot2,
|
|
701
|
+
n as testLot3,
|
|
702
|
+
o as testLot4,
|
|
703
|
+
s as testLotEmpty
|
|
678
704
|
};
|
|
@@ -1,102 +1,122 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Button as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as e } from "react";
|
|
3
|
+
import { Button as r } from "../../components/Button/ui/Button.js";
|
|
4
|
+
import "../../components/mobileButton/ui/MobileButton.js";
|
|
5
|
+
import "../../components/NewIcon/ui/NewIcon.js";
|
|
6
|
+
import "../../components/DestinationTab/ui/DestinationTab.js";
|
|
7
|
+
import "../../components/RoundButton/ui/RoundButton.js";
|
|
8
|
+
import "../../components/Tag/ui/Tag.js";
|
|
9
|
+
import "../../components/Switcher/ui/Switcher.js";
|
|
10
|
+
import "../../components/Text/ui/Text.js";
|
|
11
|
+
import "../../components/Flex/ui/Flex.js";
|
|
12
|
+
import "../../components/Input/ui/Input.js";
|
|
13
|
+
import { Modal as m } from "../../components/Modal/ui/Modal.js";
|
|
14
|
+
import "../../index-YnD2EP-S.js";
|
|
15
|
+
import "../../FilterWithSave-BxUAZs3U.js";
|
|
16
|
+
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
17
|
+
import "../../components/MetroTag/ui/MetroTag.js";
|
|
18
|
+
import "../../components/Select/ui/Select.js";
|
|
19
|
+
import "../../components/SliderNavigation/ui/SliderNavigation.js";
|
|
20
|
+
import "../../components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
21
|
+
import "../../components/TabSelect/ui/TabSelect.js";
|
|
22
|
+
import "../../components/CheckBox/CheckBox.js";
|
|
23
|
+
import "../../components/CheckBoxNew/CheckBoxNew.js";
|
|
24
|
+
import "../../components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
25
|
+
const p = {}, z = () => {
|
|
26
|
+
const [s, n] = e(!1), [c, i] = e(!1);
|
|
27
|
+
return /* @__PURE__ */ l("div", { className: p.root, children: [
|
|
28
|
+
/* @__PURE__ */ t(
|
|
29
|
+
r,
|
|
10
30
|
{
|
|
11
31
|
as: "button",
|
|
12
|
-
onClick: () =>
|
|
32
|
+
onClick: () => n((o) => !o),
|
|
13
33
|
children: "Каскад модалок"
|
|
14
34
|
}
|
|
15
35
|
),
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
36
|
+
/* @__PURE__ */ t(
|
|
37
|
+
m,
|
|
18
38
|
{
|
|
19
|
-
isOpen:
|
|
20
|
-
emitIsOpen: () =>
|
|
39
|
+
isOpen: s,
|
|
40
|
+
emitIsOpen: () => n((o) => !o),
|
|
21
41
|
isTransparentBack: !0,
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
-
|
|
42
|
+
children: /* @__PURE__ */ t(
|
|
43
|
+
r,
|
|
24
44
|
{
|
|
25
45
|
as: "button",
|
|
26
|
-
onClick: () =>
|
|
46
|
+
onClick: () => i((o) => !o),
|
|
27
47
|
children: "вайди"
|
|
28
48
|
}
|
|
29
49
|
)
|
|
30
50
|
}
|
|
31
51
|
),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
52
|
+
/* @__PURE__ */ l(
|
|
53
|
+
m,
|
|
34
54
|
{
|
|
35
|
-
isOpen:
|
|
36
|
-
emitIsOpen: () =>
|
|
55
|
+
isOpen: c,
|
|
56
|
+
emitIsOpen: () => i((o) => !o),
|
|
37
57
|
leaveDisableScroll: !0,
|
|
38
58
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
59
|
+
/* @__PURE__ */ t(
|
|
60
|
+
r,
|
|
41
61
|
{
|
|
42
62
|
as: "button",
|
|
43
|
-
onClick: () =>
|
|
63
|
+
onClick: () => i((o) => !o),
|
|
44
64
|
children: "выйди"
|
|
45
65
|
}
|
|
46
66
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
67
|
+
/* @__PURE__ */ t(
|
|
68
|
+
r,
|
|
49
69
|
{
|
|
50
70
|
as: "button",
|
|
51
|
-
onClick: () =>
|
|
71
|
+
onClick: () => i((o) => !o),
|
|
52
72
|
children: "выйди"
|
|
53
73
|
}
|
|
54
74
|
),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
75
|
+
/* @__PURE__ */ t(
|
|
76
|
+
r,
|
|
57
77
|
{
|
|
58
78
|
as: "button",
|
|
59
|
-
onClick: () =>
|
|
79
|
+
onClick: () => i((o) => !o),
|
|
60
80
|
children: "выйди"
|
|
61
81
|
}
|
|
62
82
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
|
|
83
|
+
/* @__PURE__ */ t(
|
|
84
|
+
r,
|
|
65
85
|
{
|
|
66
86
|
as: "button",
|
|
67
|
-
onClick: () =>
|
|
87
|
+
onClick: () => i((o) => !o),
|
|
68
88
|
children: "выйди"
|
|
69
89
|
}
|
|
70
90
|
),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
91
|
+
/* @__PURE__ */ t(
|
|
92
|
+
r,
|
|
73
93
|
{
|
|
74
94
|
as: "button",
|
|
75
|
-
onClick: () =>
|
|
95
|
+
onClick: () => i((o) => !o),
|
|
76
96
|
children: "выйди"
|
|
77
97
|
}
|
|
78
98
|
),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
99
|
+
/* @__PURE__ */ t(
|
|
100
|
+
r,
|
|
81
101
|
{
|
|
82
102
|
as: "button",
|
|
83
|
-
onClick: () =>
|
|
103
|
+
onClick: () => i((o) => !o),
|
|
84
104
|
children: "выйди"
|
|
85
105
|
}
|
|
86
106
|
),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
107
|
+
/* @__PURE__ */ t(
|
|
108
|
+
r,
|
|
89
109
|
{
|
|
90
110
|
as: "button",
|
|
91
|
-
onClick: () =>
|
|
111
|
+
onClick: () => i((o) => !o),
|
|
92
112
|
children: "выйди"
|
|
93
113
|
}
|
|
94
114
|
),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
|
|
115
|
+
/* @__PURE__ */ t(
|
|
116
|
+
r,
|
|
97
117
|
{
|
|
98
118
|
as: "button",
|
|
99
|
-
onClick: () =>
|
|
119
|
+
onClick: () => i((o) => !o),
|
|
100
120
|
children: "выйди"
|
|
101
121
|
}
|
|
102
122
|
)
|
|
@@ -106,5 +126,5 @@ const d = {}, k = () => {
|
|
|
106
126
|
] });
|
|
107
127
|
};
|
|
108
128
|
export {
|
|
109
|
-
|
|
129
|
+
z as default
|
|
110
130
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { SummarySelect as u } from "../../components/SummarySelect/ui/SummarySelect.js";
|
|
4
|
+
import { F as m, S as y } from "../../FilterWithSave-BxUAZs3U.js";
|
|
4
5
|
import { defaultOption as i, defaultCategory as a } from "./const.js";
|
|
5
|
-
import { CheckboxSelect as
|
|
6
|
-
import { CheckBox as
|
|
7
|
-
import {
|
|
8
|
-
import { Switcher as v } from "../../components/Switcher/ui/Switcher.js";
|
|
9
|
-
import { SummarySelect as p } from "../../components/SummarySelect/ui/SummarySelect.js";
|
|
6
|
+
import { CheckboxSelect as v } from "../../components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
7
|
+
import { CheckBox as k } from "../../components/CheckBox/CheckBox.js";
|
|
8
|
+
import { Switcher as S } from "../../components/Switcher/ui/Switcher.js";
|
|
10
9
|
import { Select as c } from "../../components/Select/ui/Select.js";
|
|
11
10
|
const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
12
11
|
sort: x,
|
|
13
12
|
filterWithSave: V
|
|
14
|
-
},
|
|
15
|
-
const [
|
|
13
|
+
}, F = () => {
|
|
14
|
+
const [p, g] = n(i[0]), [t, b] = n([]), [o, h] = n("options"), f = [
|
|
16
15
|
{
|
|
17
16
|
label: "sdfsdfsdf",
|
|
18
17
|
setValue: () => {
|
|
@@ -53,10 +52,10 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
53
52
|
}, d = (l) => {
|
|
54
53
|
l && b(l);
|
|
55
54
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ s("div", { className: r.root, children: [
|
|
56
|
+
/* @__PURE__ */ s("div", { children: [
|
|
58
57
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
59
|
-
|
|
58
|
+
m,
|
|
60
59
|
{
|
|
61
60
|
onClick: () => console.log("filter"),
|
|
62
61
|
onSaveClick: () => console.log("save"),
|
|
@@ -73,18 +72,18 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
73
72
|
]
|
|
74
73
|
}
|
|
75
74
|
) }),
|
|
76
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ s("div", { children: [
|
|
77
76
|
/* @__PURE__ */ e("h2", { children: " Селектор с чекбоксами" }),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
77
|
+
/* @__PURE__ */ e(v, { checkboxes: f })
|
|
79
78
|
] }),
|
|
80
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ s("div", { children: [
|
|
81
80
|
/* @__PURE__ */ e("h2", { children: " Селектор с чекбоксами" }),
|
|
82
|
-
/* @__PURE__ */ e(
|
|
81
|
+
/* @__PURE__ */ e(v, { checkboxes: f, isPromotion: !0 })
|
|
83
82
|
] }),
|
|
84
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ s("div", { children: [
|
|
85
84
|
/* @__PURE__ */ e("h2", { children: "старый чекбокс" }),
|
|
86
85
|
/* @__PURE__ */ e(
|
|
87
|
-
|
|
86
|
+
k,
|
|
88
87
|
{
|
|
89
88
|
isChecked: !1,
|
|
90
89
|
emitIsChecked: () => {
|
|
@@ -93,95 +92,95 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
93
92
|
}
|
|
94
93
|
)
|
|
95
94
|
] }),
|
|
96
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ s("div", { children: [
|
|
97
96
|
/* @__PURE__ */ e("h2", { children: " Фильтрация с сохранением" }),
|
|
98
|
-
/* @__PURE__ */ e("div", { className: r.filterWithSave, children: /* @__PURE__ */ e(
|
|
97
|
+
/* @__PURE__ */ e("div", { className: r.filterWithSave, children: /* @__PURE__ */ e(m, {}) })
|
|
99
98
|
] }),
|
|
100
99
|
/* @__PURE__ */ e("h2", { children: "Сорт селект" }),
|
|
101
100
|
/* @__PURE__ */ e("div", { className: r.sort, children: /* @__PURE__ */ e(
|
|
102
|
-
|
|
101
|
+
y,
|
|
103
102
|
{
|
|
104
103
|
mini: !0,
|
|
105
|
-
selectedOption:
|
|
104
|
+
selectedOption: p,
|
|
106
105
|
options: i,
|
|
107
106
|
onChange: (l) => C(l)
|
|
108
107
|
}
|
|
109
108
|
) })
|
|
110
109
|
] }),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ s("div", { className: r.summarySelect, children: [
|
|
111
|
+
/* @__PURE__ */ s("div", { style: { display: "flex", gap: "20px" }, children: [
|
|
113
112
|
/* @__PURE__ */ e("h2", { children: "SummarySelect" }),
|
|
114
113
|
/* @__PURE__ */ e(
|
|
115
|
-
|
|
114
|
+
S,
|
|
116
115
|
{
|
|
117
116
|
isActive: o === "category",
|
|
118
|
-
onClick: () =>
|
|
117
|
+
onClick: () => h(o === "options" ? "category" : "options"),
|
|
119
118
|
children: "mode category"
|
|
120
119
|
}
|
|
121
120
|
),
|
|
122
121
|
/* @__PURE__ */ e(
|
|
123
|
-
|
|
122
|
+
S,
|
|
124
123
|
{
|
|
125
124
|
isActive: o === "double",
|
|
126
|
-
onClick: () =>
|
|
125
|
+
onClick: () => h(o === "options" ? "double" : "options"),
|
|
127
126
|
children: "mode double"
|
|
128
127
|
}
|
|
129
128
|
)
|
|
130
129
|
] }),
|
|
131
130
|
/* @__PURE__ */ e(
|
|
132
|
-
|
|
131
|
+
u,
|
|
133
132
|
{
|
|
134
133
|
mode: o,
|
|
135
134
|
label: "Проект",
|
|
136
135
|
isShowReset: !0,
|
|
137
|
-
selectedValues:
|
|
136
|
+
selectedValues: t,
|
|
138
137
|
options: o === "category" ? a : i,
|
|
139
138
|
onChange: (l) => d(l),
|
|
140
139
|
selectAll: { enabled: !0 }
|
|
141
140
|
}
|
|
142
141
|
),
|
|
143
142
|
/* @__PURE__ */ e(
|
|
144
|
-
|
|
143
|
+
u,
|
|
145
144
|
{
|
|
146
145
|
mode: "single",
|
|
147
146
|
label: "Проект",
|
|
148
147
|
isShowReset: !0,
|
|
149
|
-
selectedValues:
|
|
148
|
+
selectedValues: t,
|
|
150
149
|
options: i,
|
|
151
150
|
onChange: (l) => d(l)
|
|
152
151
|
}
|
|
153
152
|
)
|
|
154
153
|
] }),
|
|
155
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ s("div", { children: [
|
|
156
155
|
/* @__PURE__ */ e("h2", { children: "Селект mode option" }),
|
|
157
156
|
/* @__PURE__ */ e(
|
|
158
157
|
c,
|
|
159
158
|
{
|
|
160
|
-
selectedValues:
|
|
159
|
+
selectedValues: t,
|
|
161
160
|
options: a,
|
|
162
161
|
onChange: (l) => d(l)
|
|
163
162
|
}
|
|
164
163
|
)
|
|
165
164
|
] }),
|
|
166
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ s("div", { children: [
|
|
167
166
|
/* @__PURE__ */ e("h2", { children: "Селект mode category" }),
|
|
168
167
|
/* @__PURE__ */ e(
|
|
169
168
|
c,
|
|
170
169
|
{
|
|
171
170
|
mode: "category",
|
|
172
|
-
selectedValues:
|
|
171
|
+
selectedValues: t,
|
|
173
172
|
options: a,
|
|
174
173
|
onChange: (l) => d(l)
|
|
175
174
|
}
|
|
176
175
|
)
|
|
177
176
|
] }),
|
|
178
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ s("div", { children: [
|
|
179
178
|
/* @__PURE__ */ e("h2", { children: "Селект mode double" }),
|
|
180
179
|
/* @__PURE__ */ e(
|
|
181
180
|
c,
|
|
182
181
|
{
|
|
183
182
|
selectAll: { enabled: !0 },
|
|
184
|
-
selectedValues:
|
|
183
|
+
selectedValues: t,
|
|
185
184
|
options: a,
|
|
186
185
|
mode: "double",
|
|
187
186
|
clickableOptions: ["Category1", "options1", "options3"],
|
|
@@ -189,7 +188,7 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
189
188
|
}
|
|
190
189
|
)
|
|
191
190
|
] }),
|
|
192
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ s("div", { children: [
|
|
193
192
|
/* @__PURE__ */ e("h2", { children: "Селект кнопка" }),
|
|
194
193
|
/* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ e(
|
|
195
194
|
c,
|
|
@@ -198,7 +197,7 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
198
197
|
size_s: "small",
|
|
199
198
|
size_l: "medium",
|
|
200
199
|
isListRight: !0,
|
|
201
|
-
selectedValues:
|
|
200
|
+
selectedValues: t,
|
|
202
201
|
options: i,
|
|
203
202
|
onChange: (l) => d(l)
|
|
204
203
|
}
|
|
@@ -207,5 +206,5 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
207
206
|
] });
|
|
208
207
|
};
|
|
209
208
|
export {
|
|
210
|
-
|
|
209
|
+
F as SelectPage
|
|
211
210
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { T as i } from "../../FilterWithSave-BxUAZs3U.js";
|
|
4
4
|
import { FieldInput as l } from "../../components/FieldInput/ui/FieldInput.js";
|
|
5
5
|
import { TabSelect as d } from "../../components/TabSelect/ui/TabSelect.js";
|
|
6
6
|
const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", g = "_tabSelectWrapper_idppf_11", v = "_whiteRow_apart_idppf_22", w = "_row_apart_idppf_26", n = {
|