stone-kit 0.0.1024 → 0.0.1026
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-BBIFq461.js → FilterWithSave-DkVYQ7W8.js} +179 -176
- package/dist/{Menu-p3DgoNDC.js → Menu-DKuZheFD.js} +1 -1
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +23 -23
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +2 -1
- package/dist/components/CommercialLotCard/components/Price/Price.js +29 -21
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- 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/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/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 +4 -4
- package/dist/pages/ModalsPage/ModalPage.js +1 -1
- package/dist/pages/SelectPage/SelectPage.js +67 -38
- package/dist/pages/TabsPage/TabsPage.js +1 -1
- package/dist/pages/TagsPage/TagsPage.js +1 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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-DkVYQ7W8.js";
|
|
16
16
|
import "./components/GroupedInput/ui/GroupedInputs.js";
|
|
17
17
|
import "./index-rKuIKazb.js";
|
|
18
18
|
import "./components/MetroTag/ui/MetroTag.js";
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
root:
|
|
5
|
-
nameWrapper:
|
|
6
|
-
large:
|
|
7
|
-
clearBtn:
|
|
8
|
-
checkboxWrapper:
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "../../../index-rKuIKazb.js";
|
|
3
|
+
const d = "_root_19qpl_1", I = "_nameWrapper_19qpl_8", h = "_large_19qpl_18", b = "_clearBtn_19qpl_25", q = "_checkboxWrapper_19qpl_40", v = "_checkboxItem_19qpl_46", g = "_checkboxItemActive_19qpl_64", B = "_checkboxItemDisabled_19qpl_76", W = "_checkBoxLarge_19qpl_81", a = {
|
|
4
|
+
root: d,
|
|
5
|
+
nameWrapper: I,
|
|
6
|
+
large: h,
|
|
7
|
+
clearBtn: b,
|
|
8
|
+
checkboxWrapper: q,
|
|
9
9
|
checkboxItem: v,
|
|
10
10
|
checkboxItemActive: g,
|
|
11
11
|
checkboxItemDisabled: B,
|
|
12
12
|
checkBoxLarge: W
|
|
13
|
-
},
|
|
13
|
+
}, t = _.bind(a), N = ({
|
|
14
14
|
label: s = "Тип квартиры",
|
|
15
|
-
checkboxes:
|
|
15
|
+
checkboxes: l,
|
|
16
16
|
addClassname: o,
|
|
17
|
-
isNeedClear:
|
|
18
|
-
isPromotion:
|
|
17
|
+
isNeedClear: p = !0,
|
|
18
|
+
isPromotion: c
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const i = () => {
|
|
21
|
+
l == null || l.forEach((e) => {
|
|
22
22
|
e != null && e.isSelected && (e == null || e.setValue());
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */ n("div", { className:
|
|
26
|
-
/* @__PURE__ */ n("div", { className:
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
25
|
+
return /* @__PURE__ */ n("div", { className: t(a.root, o), children: [
|
|
26
|
+
/* @__PURE__ */ n("div", { className: t(a.nameWrapper, { [a.large]: c }), children: [
|
|
27
|
+
/* @__PURE__ */ r("div", { children: s }),
|
|
28
|
+
p && /* @__PURE__ */ r(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
className: a.clearBtn,
|
|
32
|
-
onClick:
|
|
32
|
+
onClick: i,
|
|
33
33
|
children: "Очистить"
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ r("div", { className: a.checkboxWrapper, children: l == null ? void 0 : l.map((e) => /* @__PURE__ */ r(
|
|
38
38
|
"button",
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
40
|
+
className: t(
|
|
41
41
|
a.checkboxItem,
|
|
42
42
|
{ [a.checkboxItemActive]: e == null ? void 0 : e.isSelected },
|
|
43
43
|
{ [a.checkboxItemDisabled]: e == null ? void 0 : e.disabled },
|
|
44
|
-
{ [a.checkBoxLarge]:
|
|
44
|
+
{ [a.checkBoxLarge]: c }
|
|
45
45
|
),
|
|
46
46
|
onClick: () => e == null ? void 0 : e.setValue(),
|
|
47
47
|
disabled: e == null ? void 0 : e.disabled,
|
|
@@ -52,5 +52,5 @@ const p = "_root_1nu09_1", u = "_nameWrapper_1nu09_8", I = "_large_1nu09_18", h
|
|
|
52
52
|
] });
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
N as CheckboxSelect
|
|
56
56
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ICommercialLotCard } from './types/CommercialLotCard.types';
|
|
2
2
|
|
|
3
|
-
export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-rKuIKazb.js";
|
|
3
3
|
import "../../shared/fmtNumber.js";
|
|
4
4
|
import "./components/Price/Price.js";
|
|
5
|
-
import { C } from "../../FilterWithSave-
|
|
5
|
+
import { C } from "../../FilterWithSave-DkVYQ7W8.js";
|
|
6
6
|
import "./components/Tags/Tags.js";
|
|
7
7
|
export {
|
|
8
8
|
C as CommercialLotCard
|
|
@@ -2,7 +2,8 @@ import { ILot } from '../../types/LotCard';
|
|
|
2
2
|
|
|
3
3
|
interface IPrice {
|
|
4
4
|
lot: ILot;
|
|
5
|
+
isVertical?: boolean;
|
|
5
6
|
onPriceClickHandler?: () => void;
|
|
6
7
|
}
|
|
7
|
-
export declare const Price: ({ lot, onPriceClickHandler }: IPrice) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Price: ({ lot, onPriceClickHandler, isVertical }: IPrice) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "../../../../index-rKuIKazb.js";
|
|
3
|
+
import { NewIcon as y } from "../../../NewIcon/ui/NewIcon.js";
|
|
4
|
+
import { formatPrice as N } from "../../utils/formatPrice.js";
|
|
5
|
+
const w = "_root_u8cpd_1", b = "_price_u8cpd_7", x = "_paymentWrapper_u8cpd_19", V = "_rootVertical_u8cpd_39", r = {
|
|
6
|
+
root: w,
|
|
7
|
+
price: b,
|
|
8
|
+
paymentWrapper: x,
|
|
9
|
+
rootVertical: V
|
|
10
|
+
}, W = g.bind(r), D = ({ lot: s, onPriceClickHandler: t, isVertical: m }) => {
|
|
11
|
+
var l;
|
|
12
|
+
const {
|
|
13
|
+
project: c,
|
|
14
|
+
sellingPriceBeforeDiscount: d,
|
|
15
|
+
showPriceFlg: _,
|
|
16
|
+
direction: f,
|
|
17
|
+
specialProgram: h,
|
|
18
|
+
sellingPrice: u
|
|
19
|
+
} = s || {}, P = !!((l = c == null ? void 0 : c.showPriceSubType) != null && l.some((e) => Number(e.filter) === s.subType)), p = !!h, a = d ?? u, n = a && _ && !p && P;
|
|
20
|
+
return /* @__PURE__ */ o("div", { className: W(r.root, { [r.rootVertical]: m }), children: [
|
|
21
|
+
n && /* @__PURE__ */ o("p", { className: r.price, children: [
|
|
14
22
|
" ",
|
|
15
|
-
|
|
23
|
+
N(a, !1, f)
|
|
16
24
|
] }),
|
|
17
|
-
!
|
|
25
|
+
!n && /* @__PURE__ */ o(
|
|
18
26
|
"p",
|
|
19
27
|
{
|
|
20
|
-
className:
|
|
28
|
+
className: r.price,
|
|
21
29
|
onClick: (e) => {
|
|
22
|
-
e.preventDefault(), e.stopPropagation(),
|
|
30
|
+
e.preventDefault(), e.stopPropagation(), t && t();
|
|
23
31
|
},
|
|
24
32
|
children: [
|
|
25
33
|
"Цена ",
|
|
@@ -27,10 +35,10 @@ const W = "_root_1hmg1_1", u = "_price_1hmg1_7", w = "_paymentWrapper_1hmg1_19",
|
|
|
27
35
|
]
|
|
28
36
|
}
|
|
29
37
|
),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */ i("span", { children:
|
|
38
|
+
/* @__PURE__ */ o("div", { className: r.paymentWrapper, children: [
|
|
39
|
+
/* @__PURE__ */ i("span", { children: p ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
|
|
32
40
|
/* @__PURE__ */ i(
|
|
33
|
-
|
|
41
|
+
y,
|
|
34
42
|
{
|
|
35
43
|
name: "arrowRight",
|
|
36
44
|
size: "20"
|
|
@@ -40,5 +48,5 @@ const W = "_root_1hmg1_1", u = "_price_1hmg1_7", w = "_paymentWrapper_1hmg1_19",
|
|
|
40
48
|
] });
|
|
41
49
|
};
|
|
42
50
|
export {
|
|
43
|
-
|
|
51
|
+
D as Price
|
|
44
52
|
};
|
|
@@ -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-DkVYQ7W8.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-DkVYQ7W8.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-DkVYQ7W8.js";
|
|
4
4
|
import "../../Modal/ui/Modal.js";
|
|
5
5
|
import "../../../Option-DU8cvBnA.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -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-DkVYQ7W8.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-DkVYQ7W8.js";
|
|
9
9
|
import "../utils/formatPrice.js";
|
|
10
10
|
export {
|
|
11
11
|
f as LotCard
|
|
@@ -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-DkVYQ7W8.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-DkVYQ7W8.js";
|
|
4
4
|
import "../../Text/ui/Text.js";
|
|
5
5
|
import "../../../index-rKuIKazb.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { M as f } from "../../../Menu-
|
|
2
|
+
import { M as f } from "../../../Menu-DKuZheFD.js";
|
|
3
3
|
import { useState as c } from "react";
|
|
4
4
|
import "../../../components/Button/ui/Button.js";
|
|
5
5
|
import "../../../components/mobileButton/ui/MobileButton.js";
|
|
@@ -12,7 +12,7 @@ import "../../../components/Text/ui/Text.js";
|
|
|
12
12
|
import "../../../components/Flex/ui/Flex.js";
|
|
13
13
|
import "../../../components/Input/ui/Input.js";
|
|
14
14
|
import "react-dom";
|
|
15
|
-
import "../../../FilterWithSave-
|
|
15
|
+
import "../../../FilterWithSave-DkVYQ7W8.js";
|
|
16
16
|
import "../../../components/GroupedInput/ui/GroupedInputs.js";
|
|
17
17
|
import "../../../index-rKuIKazb.js";
|
|
18
18
|
import "../../../components/MetroTag/ui/MetroTag.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { M as z } from "../../Menu-
|
|
2
|
+
import { M as z } from "../../Menu-DKuZheFD.js";
|
|
3
3
|
import "../../components/Button/ui/Button.js";
|
|
4
4
|
import "../../components/mobileButton/ui/MobileButton.js";
|
|
5
5
|
import "../../components/NewIcon/ui/NewIcon.js";
|
|
@@ -12,7 +12,7 @@ import "../../components/Flex/ui/Flex.js";
|
|
|
12
12
|
import "../../components/Input/ui/Input.js";
|
|
13
13
|
import "react";
|
|
14
14
|
import "react-dom";
|
|
15
|
-
import "../../FilterWithSave-
|
|
15
|
+
import "../../FilterWithSave-DkVYQ7W8.js";
|
|
16
16
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
17
17
|
import "../../index-rKuIKazb.js";
|
|
18
18
|
import "../../components/MetroTag/ui/MetroTag.js";
|
package/dist/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Flex as h } from "./components/Flex/ui/Flex.js";
|
|
|
10
10
|
import { Input as T } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { Modal as k } from "./components/Modal/ui/Modal.js";
|
|
12
12
|
import { FieldInput as F } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
-
import { C as g, F as w, L as I, M as N, a as v, S as W } from "./FilterWithSave-
|
|
13
|
+
import { C as g, F as w, L as I, M as N, a as v, S as W } from "./FilterWithSave-DkVYQ7W8.js";
|
|
14
14
|
import { GroupedInputs as q } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
15
|
import { Logo as D } from "./components/Logo/ui/Logo.js";
|
|
16
16
|
import { MetroTag as G } from "./components/MetroTag/ui/MetroTag.js";
|
|
@@ -11,7 +11,7 @@ import "../../components/Text/ui/Text.js";
|
|
|
11
11
|
import "../../components/Flex/ui/Flex.js";
|
|
12
12
|
import "../../components/Input/ui/Input.js";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import "../../FilterWithSave-
|
|
14
|
+
import "../../FilterWithSave-DkVYQ7W8.js";
|
|
15
15
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../index-rKuIKazb.js";
|
|
17
17
|
import "../../components/MetroTag/ui/MetroTag.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as e } from "react";
|
|
3
|
-
import { M as n } from "../../FilterWithSave-
|
|
3
|
+
import { M as n } from "../../FilterWithSave-DkVYQ7W8.js";
|
|
4
4
|
import { Button as s } from "../../components/Button/ui/Button.js";
|
|
5
5
|
import "../../components/mobileButton/ui/MobileButton.js";
|
|
6
6
|
import "../../components/NewIcon/ui/NewIcon.js";
|
|
@@ -11,7 +11,7 @@ import "../../components/Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../components/Input/ui/Input.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import "../../FilterWithSave-
|
|
14
|
+
import "../../FilterWithSave-DkVYQ7W8.js";
|
|
15
15
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../index-rKuIKazb.js";
|
|
17
17
|
import "../../components/MetroTag/ui/MetroTag.js";
|
|
@@ -11,7 +11,7 @@ import "../../components/Flex/ui/Flex.js";
|
|
|
11
11
|
import { Input as t } from "../../components/Input/ui/Input.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import "../../FilterWithSave-
|
|
14
|
+
import "../../FilterWithSave-DkVYQ7W8.js";
|
|
15
15
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../index-rKuIKazb.js";
|
|
17
17
|
import "../../components/MetroTag/ui/MetroTag.js";
|
|
@@ -11,7 +11,7 @@ import "../../components/Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../components/Input/ui/Input.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import "../../FilterWithSave-
|
|
14
|
+
import "../../FilterWithSave-DkVYQ7W8.js";
|
|
15
15
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import { Logo as r } from "../../components/Logo/ui/Logo.js";
|
|
17
17
|
import "../../components/MetroTag/ui/MetroTag.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c } from "react";
|
|
3
3
|
import { LotCardSkeleton as l } from "../../components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
4
|
-
import { C as p, L as r } from "../../FilterWithSave-
|
|
4
|
+
import { C as p, L as r } from "../../FilterWithSave-DkVYQ7W8.js";
|
|
5
5
|
import { ProjectCardSkeleton as m } from "../../components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js";
|
|
6
6
|
import { testLot as e, testLotEmpty as d } from "./const.js";
|
|
7
7
|
const h = "_root_1w9fc_1", f = "_lotWrapper_1w9fc_8", _ = "_optionsWrapper_1w9fc_14", F = "_isFetching_1w9fc_20", s = {
|
|
@@ -9,10 +9,10 @@ const h = "_root_1w9fc_1", f = "_lotWrapper_1w9fc_8", _ = "_optionsWrapper_1w9fc
|
|
|
9
9
|
lotWrapper: f,
|
|
10
10
|
optionsWrapper: _,
|
|
11
11
|
isFetching: F
|
|
12
|
-
},
|
|
12
|
+
}, x = () => {
|
|
13
13
|
const [o, a] = c(!1), n = JSON.parse(JSON.stringify(e));
|
|
14
14
|
return n.status = 2, /* @__PURE__ */ t("div", { className: s.root, children: /* @__PURE__ */ i("div", { className: s.lotWrapper, children: [
|
|
15
|
-
/* @__PURE__ */ t(p, { lot: n }),
|
|
15
|
+
/* @__PURE__ */ t(p, { lot: n, isVertical: !0 }),
|
|
16
16
|
!o && /* @__PURE__ */ t(
|
|
17
17
|
r,
|
|
18
18
|
{
|
|
@@ -63,5 +63,5 @@ const h = "_root_1w9fc_1", f = "_lotWrapper_1w9fc_8", _ = "_optionsWrapper_1w9fc
|
|
|
63
63
|
] }) });
|
|
64
64
|
};
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
x as LotsPage
|
|
67
67
|
};
|
|
@@ -11,7 +11,7 @@ import "../../components/Text/ui/Text.js";
|
|
|
11
11
|
import "../../components/Flex/ui/Flex.js";
|
|
12
12
|
import "../../components/Input/ui/Input.js";
|
|
13
13
|
import { Modal as m } from "../../components/Modal/ui/Modal.js";
|
|
14
|
-
import "../../FilterWithSave-
|
|
14
|
+
import "../../FilterWithSave-DkVYQ7W8.js";
|
|
15
15
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../index-rKuIKazb.js";
|
|
17
17
|
import "../../components/MetroTag/ui/MetroTag.js";
|
|
@@ -1,37 +1,62 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { SummarySelect as
|
|
4
|
-
import { F as
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { SummarySelect as u } from "../../components/SummarySelect/ui/SummarySelect.js";
|
|
4
|
+
import { F as m, a as y } from "../../FilterWithSave-DkVYQ7W8.js";
|
|
5
5
|
import { defaultOption as i, defaultCategory as a } from "./const.js";
|
|
6
|
-
import { CheckboxSelect as
|
|
6
|
+
import { CheckboxSelect as v } from "../../components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
7
7
|
import { CheckBox as k } from "../../components/CheckBox/CheckBox.js";
|
|
8
|
-
import { Switcher as
|
|
8
|
+
import { Switcher as g } from "../../components/Switcher/ui/Switcher.js";
|
|
9
9
|
import { Select as c } from "../../components/Select/ui/Select.js";
|
|
10
|
-
const
|
|
11
|
-
sort:
|
|
12
|
-
addClass:
|
|
13
|
-
filterWithSave:
|
|
10
|
+
const x = "_sort_1szg2_1", V = "_addClass_1szg2_6", _ = "_filterWithSave_1szg2_14", r = {
|
|
11
|
+
sort: x,
|
|
12
|
+
addClass: V,
|
|
13
|
+
filterWithSave: _
|
|
14
14
|
}, O = () => {
|
|
15
|
-
const [
|
|
16
|
-
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
const [p, S] = n(i[0]), [t, C] = n([]), [d, h] = n("options"), f = [
|
|
16
|
+
{
|
|
17
|
+
label: "sdfsdfsdf",
|
|
18
|
+
setValue: () => {
|
|
19
|
+
},
|
|
20
|
+
isSelected: !1,
|
|
21
|
+
disabled: !0
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: "sdfsdfsdf",
|
|
25
|
+
setValue: () => {
|
|
26
|
+
},
|
|
27
|
+
isSelected: !0,
|
|
28
|
+
disabled: !1
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "sdfsdfsdf",
|
|
32
|
+
setValue: () => {
|
|
33
|
+
},
|
|
34
|
+
isSelected: !1,
|
|
35
|
+
disabled: !1
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "sdfsdfsdf",
|
|
39
|
+
setValue: () => {
|
|
40
|
+
},
|
|
41
|
+
isSelected: !0,
|
|
42
|
+
disabled: !1
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "sdfsdfsdf",
|
|
46
|
+
setValue: () => {
|
|
47
|
+
},
|
|
48
|
+
isSelected: !0,
|
|
49
|
+
disabled: !1
|
|
50
|
+
}
|
|
51
|
+
], b = (l) => {
|
|
52
|
+
!l || !l.target || S(l.target.value);
|
|
28
53
|
}, o = (l) => {
|
|
29
|
-
l &&
|
|
54
|
+
l && C(l);
|
|
30
55
|
};
|
|
31
|
-
return /* @__PURE__ */ s("div", { className:
|
|
56
|
+
return /* @__PURE__ */ s("div", { className: r.root, children: [
|
|
32
57
|
/* @__PURE__ */ s("div", { children: [
|
|
33
58
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
34
|
-
|
|
59
|
+
m,
|
|
35
60
|
{
|
|
36
61
|
onClick: () => console.log("filter"),
|
|
37
62
|
onSaveClick: () => console.log("save"),
|
|
@@ -50,7 +75,11 @@ const V = "_sort_1szg2_1", _ = "_addClass_1szg2_6", x = "_filterWithSave_1szg2_1
|
|
|
50
75
|
) }),
|
|
51
76
|
/* @__PURE__ */ s("div", { children: [
|
|
52
77
|
/* @__PURE__ */ e("h2", { children: " Селектор с чекбоксами" }),
|
|
53
|
-
/* @__PURE__ */ e(
|
|
78
|
+
/* @__PURE__ */ e(v, { checkboxes: f })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ s("div", { children: [
|
|
81
|
+
/* @__PURE__ */ e("h2", { children: " Селектор с чекбоксами" }),
|
|
82
|
+
/* @__PURE__ */ e(v, { checkboxes: f, isPromotion: !0 })
|
|
54
83
|
] }),
|
|
55
84
|
/* @__PURE__ */ s("div", { children: [
|
|
56
85
|
/* @__PURE__ */ e("h2", { children: "старый чекбокс" }),
|
|
@@ -66,41 +95,41 @@ const V = "_sort_1szg2_1", _ = "_addClass_1szg2_6", x = "_filterWithSave_1szg2_1
|
|
|
66
95
|
] }),
|
|
67
96
|
/* @__PURE__ */ s("div", { children: [
|
|
68
97
|
/* @__PURE__ */ e("h2", { children: " Фильтрация с сохранением" }),
|
|
69
|
-
/* @__PURE__ */ e("div", { className:
|
|
98
|
+
/* @__PURE__ */ e("div", { className: r.filterWithSave, children: /* @__PURE__ */ e(m, {}) })
|
|
70
99
|
] }),
|
|
71
100
|
/* @__PURE__ */ e("h2", { children: "Сорт селект" }),
|
|
72
|
-
/* @__PURE__ */ e("div", { className:
|
|
73
|
-
|
|
101
|
+
/* @__PURE__ */ e("div", { className: r.sort, children: /* @__PURE__ */ e(
|
|
102
|
+
y,
|
|
74
103
|
{
|
|
75
104
|
mini: !0,
|
|
76
|
-
selectedOption:
|
|
105
|
+
selectedOption: p,
|
|
77
106
|
options: i,
|
|
78
|
-
onChange: (l) =>
|
|
107
|
+
onChange: (l) => b(l)
|
|
79
108
|
}
|
|
80
109
|
) })
|
|
81
110
|
] }),
|
|
82
|
-
/* @__PURE__ */ s("div", { className:
|
|
111
|
+
/* @__PURE__ */ s("div", { className: r.summarySelect, children: [
|
|
83
112
|
/* @__PURE__ */ s("div", { style: { display: "flex", gap: "20px" }, children: [
|
|
84
113
|
/* @__PURE__ */ e("h2", { children: "SummarySelect" }),
|
|
85
114
|
/* @__PURE__ */ e(
|
|
86
|
-
|
|
115
|
+
g,
|
|
87
116
|
{
|
|
88
117
|
isActive: d === "category",
|
|
89
|
-
onClick: () =>
|
|
118
|
+
onClick: () => h(d === "options" ? "category" : "options"),
|
|
90
119
|
children: "mode category"
|
|
91
120
|
}
|
|
92
121
|
),
|
|
93
122
|
/* @__PURE__ */ e(
|
|
94
|
-
|
|
123
|
+
g,
|
|
95
124
|
{
|
|
96
125
|
isActive: d === "double",
|
|
97
|
-
onClick: () =>
|
|
126
|
+
onClick: () => h(d === "options" ? "double" : "options"),
|
|
98
127
|
children: "mode double"
|
|
99
128
|
}
|
|
100
129
|
)
|
|
101
130
|
] }),
|
|
102
131
|
/* @__PURE__ */ e(
|
|
103
|
-
|
|
132
|
+
u,
|
|
104
133
|
{
|
|
105
134
|
mode: d,
|
|
106
135
|
label: "Проект",
|
|
@@ -112,7 +141,7 @@ const V = "_sort_1szg2_1", _ = "_addClass_1szg2_6", x = "_filterWithSave_1szg2_1
|
|
|
112
141
|
}
|
|
113
142
|
),
|
|
114
143
|
/* @__PURE__ */ e(
|
|
115
|
-
|
|
144
|
+
u,
|
|
116
145
|
{
|
|
117
146
|
mode: "single",
|
|
118
147
|
label: "Проект",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as o } from "react";
|
|
3
|
-
import { S as i } from "../../FilterWithSave-
|
|
3
|
+
import { S as i } from "../../FilterWithSave-DkVYQ7W8.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", w = "_tabSelectWrapper_idppf_11", v = "_destinationWrapper_idppf_15", g = "_whiteRow_apart_idppf_22", u = "_row_apart_idppf_26", n = {
|
|
@@ -11,7 +11,7 @@ import "../../components/Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../components/Input/ui/Input.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import "../../FilterWithSave-
|
|
14
|
+
import "../../FilterWithSave-DkVYQ7W8.js";
|
|
15
15
|
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../index-rKuIKazb.js";
|
|
17
17
|
import { MetroTag as o } from "../../components/MetroTag/ui/MetroTag.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { l as o } from "../../../index-DvCs2JPX.js";
|
|
3
|
-
import { C as n } from "../../../FilterWithSave-
|
|
3
|
+
import { C as n } from "../../../FilterWithSave-DkVYQ7W8.js";
|
|
4
4
|
const l = {
|
|
5
5
|
id: 1,
|
|
6
6
|
lotUuid: "123-abc",
|