stone-kit 0.0.1035 → 0.0.1037
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/Option-DI87iJMM.js +98 -0
- package/dist/components/CommercialLotCard/components/Price/Price.js +21 -21
- package/dist/components/CommercialLotCard/utils/formatPrice.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.d.ts +1 -1
- package/dist/components/FormModal/ui/ModalForm.js +278 -276
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
- package/dist/components/LotCard/ui/LotCard.js +32 -32
- package/dist/components/LotCard/utils/formatPrice.js +1 -1
- package/dist/components/Modal/ui/Modal.types.d.ts +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +48 -43
- package/dist/components/Select/ui/Category.js +27 -27
- package/dist/components/Select/ui/Option.js +1 -1
- package/dist/components/Select/ui/Select.d.ts +1 -1
- package/dist/components/Select/ui/Select.js +128 -114
- package/dist/components/Select/ui/Select.types.d.ts +2 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +3 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +141 -101
- package/dist/stone-kit.css +1 -1
- package/package.json +1 -1
- package/dist/Option-D-8xnCui.js +0 -94
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsxs as O, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as C } from "./index-YnD2EP-S.js";
|
|
3
|
+
import { NewIcon as d } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
|
+
const g = "_multiSelectWrapper_jaduw_1", S = "_loaderWrapper_jaduw_8", h = "_loader_jaduw_8", L = "_rotate_jaduw_1", f = "_selectedOptions_jaduw_27", k = "_selectedText_jaduw_45", v = "_selectedOptionsBtn_jaduw_53", x = "_selectedOptionsOpened_jaduw_79", W = "_selectedOptionsNotEmpty_jaduw_83", y = "_selectOptionsDisabled_jaduw_88", D = "_optionsOuterContainer_jaduw_95", N = "_optionLabel_jaduw_108", B = "_betweenSize_small_jaduw_114", A = "_betweenSize_medium_jaduw_118", E = "_optionsList_jaduw_122", R = "_scroll_standard_jaduw_151", T = "_scroll_compact_jaduw_155", H = "_lastList_jaduw_160", P = "_listRight_jaduw_165", U = "_inputWrapper_jaduw_169", $ = "_option_jaduw_95", q = "_category_jaduw_191", F = "_leftSide_jaduw_197", G = "_optionCategory_jaduw_202", I = "_isPositionLeftCheckbox_jaduw_208", J = "_optionDisabled_jaduw_213", K = "_optionClickable_jaduw_217", M = "_icon_jaduw_221", Q = "_iconArrow_jaduw_227", V = "_iconBtn_jaduw_233", t = {
|
|
5
|
+
multiSelectWrapper: g,
|
|
6
|
+
loaderWrapper: S,
|
|
7
|
+
loader: h,
|
|
8
|
+
rotate: L,
|
|
9
|
+
selectedOptions: f,
|
|
10
|
+
selectedText: k,
|
|
11
|
+
selectedOptionsBtn: v,
|
|
12
|
+
"small-size": "_small-size_jaduw_58",
|
|
13
|
+
"medium-size": "_medium-size_jaduw_65",
|
|
14
|
+
"large-size": "_large-size_jaduw_72",
|
|
15
|
+
selectedOptionsOpened: x,
|
|
16
|
+
selectedOptionsNotEmpty: W,
|
|
17
|
+
selectOptionsDisabled: y,
|
|
18
|
+
optionsOuterContainer: D,
|
|
19
|
+
optionLabel: N,
|
|
20
|
+
betweenSize_small: B,
|
|
21
|
+
betweenSize_medium: A,
|
|
22
|
+
optionsList: E,
|
|
23
|
+
scroll_standard: R,
|
|
24
|
+
scroll_compact: T,
|
|
25
|
+
lastList: H,
|
|
26
|
+
listRight: P,
|
|
27
|
+
inputWrapper: U,
|
|
28
|
+
option: $,
|
|
29
|
+
category: q,
|
|
30
|
+
leftSide: F,
|
|
31
|
+
optionCategory: G,
|
|
32
|
+
isPositionLeftCheckbox: I,
|
|
33
|
+
optionDisabled: J,
|
|
34
|
+
optionClickable: K,
|
|
35
|
+
icon: M,
|
|
36
|
+
iconArrow: Q,
|
|
37
|
+
iconBtn: V,
|
|
38
|
+
"small-size_m": "_small-size_m_jaduw_246",
|
|
39
|
+
"medium-size_m": "_medium-size_m_jaduw_252",
|
|
40
|
+
"large-size_m": "_large-size_m_jaduw_258",
|
|
41
|
+
"small-size_l": "_small-size_l_jaduw_273",
|
|
42
|
+
"medium-size_l": "_medium-size_l_jaduw_279",
|
|
43
|
+
"large-size_l": "_large-size_l_jaduw_285"
|
|
44
|
+
}, X = C.bind(t), te = ({
|
|
45
|
+
option: e,
|
|
46
|
+
selectedOptions: r,
|
|
47
|
+
disabledOptions: u,
|
|
48
|
+
clickableOptions: s,
|
|
49
|
+
handleOptionClick: p,
|
|
50
|
+
isOptionCategory: o,
|
|
51
|
+
isPositionLeftCheckbox: _ = !1,
|
|
52
|
+
sizeIcon: n,
|
|
53
|
+
dataTestId: m,
|
|
54
|
+
isDisabledNotClickable: w,
|
|
55
|
+
addClassName: j = ""
|
|
56
|
+
}) => {
|
|
57
|
+
const z = s ? s.includes(`${e.value}`) : !0, b = e.value === "selectAll", i = r.some((l) => l.value === e.value), c = () => w && s ? !s.includes(`${e.value}`) : u.some((l) => l.value === e.value);
|
|
58
|
+
return /* @__PURE__ */ O(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
className: X(
|
|
62
|
+
t.option,
|
|
63
|
+
{
|
|
64
|
+
[t.optionDisabled]: c(),
|
|
65
|
+
[t.optionCategory]: o,
|
|
66
|
+
[t.isPositionLeftCheckbox]: _,
|
|
67
|
+
[t.optionClickable]: z || b
|
|
68
|
+
},
|
|
69
|
+
j
|
|
70
|
+
),
|
|
71
|
+
"data-testid": m,
|
|
72
|
+
onClick: () => {
|
|
73
|
+
c() && !i || p(e);
|
|
74
|
+
},
|
|
75
|
+
children: [
|
|
76
|
+
(o || _) && /* @__PURE__ */ a(
|
|
77
|
+
d,
|
|
78
|
+
{
|
|
79
|
+
size: n ?? "20",
|
|
80
|
+
name: i ? "selectChecked" : "selectUncheckedHollow"
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ a("div", { className: t.optionLabel, children: e.label }),
|
|
84
|
+
!o && !_ && /* @__PURE__ */ a(
|
|
85
|
+
d,
|
|
86
|
+
{
|
|
87
|
+
size: n ?? "20",
|
|
88
|
+
name: i ? "selectChecked" : "selectUncheckedHollow"
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
export {
|
|
96
|
+
te as O,
|
|
97
|
+
t as s
|
|
98
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { formatPrice as
|
|
4
|
-
import { NewIcon as
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
price:
|
|
8
|
-
paymentWrapper:
|
|
9
|
-
rootVertical:
|
|
10
|
-
},
|
|
2
|
+
import { c as d } from "../../../../index-YnD2EP-S.js";
|
|
3
|
+
import { formatPrice as P } from "../../utils/formatPrice.js";
|
|
4
|
+
import { NewIcon as g } from "../../../NewIcon/ui/NewIcon.js";
|
|
5
|
+
const y = "_root_spwuc_1", N = "_price_spwuc_7", b = "_paymentWrapper_spwuc_19", x = "_rootVertical_spwuc_39", r = {
|
|
6
|
+
root: y,
|
|
7
|
+
price: N,
|
|
8
|
+
paymentWrapper: b,
|
|
9
|
+
rootVertical: x
|
|
10
|
+
}, V = d.bind(r), S = ({ lot: s, onPriceClickHandler: i, isVertical: n }) => {
|
|
11
11
|
const {
|
|
12
12
|
project: l,
|
|
13
13
|
sellingPriceBeforeDiscount: m,
|
|
14
|
-
showPriceFlg:
|
|
15
|
-
direction:
|
|
16
|
-
specialProgram:
|
|
17
|
-
sellingPrice:
|
|
18
|
-
} =
|
|
19
|
-
return /* @__PURE__ */ o("div", { className:
|
|
20
|
-
|
|
14
|
+
showPriceFlg: _,
|
|
15
|
+
direction: f,
|
|
16
|
+
specialProgram: h,
|
|
17
|
+
sellingPrice: u
|
|
18
|
+
} = s || {}, w = !!l?.showPriceSubType?.some((e) => Number(e.filter) === s.subType), t = !!h, p = m ?? u, a = p && _ && !t && w;
|
|
19
|
+
return /* @__PURE__ */ o("div", { className: V(r.root, { [r.rootVertical]: n }), children: [
|
|
20
|
+
a && /* @__PURE__ */ o("p", { className: r.price, children: [
|
|
21
21
|
" ",
|
|
22
|
-
|
|
22
|
+
P(p, !1, f)
|
|
23
23
|
] }),
|
|
24
|
-
!
|
|
24
|
+
!a && /* @__PURE__ */ o(
|
|
25
25
|
"p",
|
|
26
26
|
{
|
|
27
27
|
className: r.price,
|
|
28
28
|
onClick: (e) => {
|
|
29
|
-
e.preventDefault(), e.stopPropagation(),
|
|
29
|
+
e.preventDefault(), e.stopPropagation(), i && i();
|
|
30
30
|
},
|
|
31
31
|
children: [
|
|
32
32
|
"Цена ",
|
|
@@ -37,7 +37,7 @@ const N = "_root_z3d8u_1", w = "_price_z3d8u_7", z = "_paymentWrapper_z3d8u_19",
|
|
|
37
37
|
/* @__PURE__ */ o("div", { className: r.paymentWrapper, children: [
|
|
38
38
|
/* @__PURE__ */ c("span", { children: t ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
|
|
39
39
|
/* @__PURE__ */ c(
|
|
40
|
-
|
|
40
|
+
g,
|
|
41
41
|
{
|
|
42
42
|
name: "arrowRight",
|
|
43
43
|
size: "20"
|
|
@@ -47,5 +47,5 @@ const N = "_root_z3d8u_1", w = "_price_z3d8u_7", z = "_paymentWrapper_z3d8u_19",
|
|
|
47
47
|
] });
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
S as Price
|
|
51
51
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, Fragment as I, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { O as M } from "../../../Option-
|
|
2
|
+
import { O as M } from "../../../Option-DI87iJMM.js";
|
|
3
3
|
import { g as D } from "../../../index-YnD2EP-S.js";
|
|
4
4
|
import { useFilterWithSave as P } from "../hooks/useFilterWithSave.js";
|
|
5
5
|
import { NewIcon as S } from "../../NewIcon/ui/NewIcon.js";
|
|
@@ -36,7 +36,7 @@ interface IModalFormProps {
|
|
|
36
36
|
domNode: HTMLElement | null;
|
|
37
37
|
key?: string | null | undefined;
|
|
38
38
|
};
|
|
39
|
-
policiesMap
|
|
39
|
+
policiesMap?: Record<DocumentSlug, string>;
|
|
40
40
|
emitCheckBox?: () => void;
|
|
41
41
|
emitAdvCheckBox?: () => void;
|
|
42
42
|
}
|