stone-kit 0.0.1035 → 0.0.1036

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.
@@ -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 P } from "../../../../index-YnD2EP-S.js";
3
- import { formatPrice as g } from "../../utils/formatPrice.js";
4
- import { NewIcon as y } from "../../../NewIcon/ui/NewIcon.js";
5
- const N = "_root_z3d8u_1", w = "_price_z3d8u_7", z = "_paymentWrapper_z3d8u_19", b = "_rootVertical_z3d8u_36", r = {
6
- root: N,
7
- price: w,
8
- paymentWrapper: z,
9
- rootVertical: b
10
- }, x = P.bind(r), B = ({ lot: i, onPriceClickHandler: s, isVertical: p }) => {
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: d,
15
- direction: _,
16
- specialProgram: f,
17
- sellingPrice: h
18
- } = i || {}, u = !!l?.showPriceSubType?.some((e) => Number(e.filter) === i.subType), t = !!f, a = m ?? h, n = a && d && !t && u;
19
- return /* @__PURE__ */ o("div", { className: x(r.root, { [r.rootVertical]: p }), children: [
20
- n && /* @__PURE__ */ o("p", { className: r.price, children: [
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
- g(a, !1, _)
22
+ P(p, !1, f)
23
23
  ] }),
24
- !n && /* @__PURE__ */ o(
24
+ !a && /* @__PURE__ */ o(
25
25
  "p",
26
26
  {
27
27
  className: r.price,
28
28
  onClick: (e) => {
29
- e.preventDefault(), e.stopPropagation(), s && s();
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
- y,
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
- B as Price
50
+ S as Price
51
51
  };
@@ -1,7 +1,7 @@
1
1
  const e = (r, t, o) => {
2
2
  if (!r && o === 2 || !r) return "Цена по запросу";
3
3
  const n = t ? " ₽/м²" : " ₽";
4
- return Number(r).toLocaleString() + n;
4
+ return Number(r).toLocaleString("ru-RU") + n;
5
5
  };
6
6
  export {
7
7
  e as formatPrice
@@ -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-D-8xnCui.js";
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: Record<DocumentSlug, string>;
39
+ policiesMap?: Record<DocumentSlug, string>;
40
40
  emitCheckBox?: () => void;
41
41
  emitAdvCheckBox?: () => void;
42
42
  }