stone-kit 0.0.871 → 0.0.873

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.
@@ -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 { b as w } from "../../../FilterWithSave-BOP0lt9a.js";
14
+ import { b as w } from "../../../FilterWithSave-Bp6rH8Pe.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-BOP0lt9a.js";
3
+ import { F as a } from "../../../FilterWithSave-Bp6rH8Pe.js";
4
4
  import "../../Modal/ui/Modal.js";
5
5
  import "../../../Option-BVIm7wOW.js";
6
6
  import "../../Button/ui/Button.js";
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { M as A } from "../../../FilterWithSave-BOP0lt9a.js";
2
+ import { M as A } from "../../../FilterWithSave-Bp6rH8Pe.js";
3
3
  import "../../Modal/ui/Modal.js";
4
4
  import "../../Flex/ui/Flex.js";
5
5
  import "../../Input/ui/Input.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { u as B } from "../../../FilterWithSave-BOP0lt9a.js";
3
+ import { u as B } from "../../../FilterWithSave-Bp6rH8Pe.js";
4
4
  import "../../Button/ui/Button.js";
5
5
  import "../../mobileButton/ui/MobileButton.js";
6
6
  import "../../NewIcon/ui/NewIcon.js";
@@ -1,4 +1,4 @@
1
- import { L as a } from "../../FilterWithSave-BOP0lt9a.js";
1
+ import { L as a } from "../../FilterWithSave-Bp6rH8Pe.js";
2
2
  export {
3
3
  a as LotCard
4
4
  };
@@ -1,10 +1,11 @@
1
1
  import "react/jsx-runtime";
2
- import { L as d } from "../../../FilterWithSave-BOP0lt9a.js";
2
+ import { L as e } from "../../../FilterWithSave-Bp6rH8Pe.js";
3
3
  import "../../NewIcon/ui/NewIcon.js";
4
4
  import "../../Tag/ui/Tag.js";
5
5
  import "../../Button/ui/Button.js";
6
6
  import "../utils/formatPrice.js";
7
7
  import "../../../index-rKuIKazb.js";
8
+ import "../../../shared/checkLargeOffice.js";
8
9
  export {
9
- d as LotCard
10
+ e as LotCard
10
11
  };
@@ -240,6 +240,7 @@ export interface ILot {
240
240
  azimuthAngle?: number | null;
241
241
  isDecoration?: boolean | null;
242
242
  subTypeName: string;
243
+ subType?: number;
243
244
  }
244
245
  export interface ILotCard {
245
246
  lot: ILot;
@@ -1 +1 @@
1
- export declare const formatPrice: (price: string | number | null, perMetr?: boolean, direction?: number | null, type?: number | null, beginFloor?: number | null, endFloor?: number | null) => string;
1
+ export declare const formatPrice: (price: string | number | null, perMetr?: boolean, direction?: number | null) => string;
@@ -1,11 +1,11 @@
1
- const m = (r, e, t, n, o, s) => {
2
- if (!r && t === 2)
1
+ const s = (r, t, o) => {
2
+ if (!r && o === 2)
3
3
  return " ";
4
- if (!r || t === 1 && n === 11 || o !== s)
4
+ if (!r)
5
5
  return "Цена по запросу";
6
- const u = e ? " ₽/м²" : " ₽";
7
- return Number(r).toLocaleString() + u;
6
+ const e = t ? " ₽/м²" : " ₽";
7
+ return Number(r).toLocaleString() + e;
8
8
  };
9
9
  export {
10
- m as formatPrice
10
+ s as formatPrice
11
11
  };
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../FilterWithSave-BOP0lt9a.js";
1
+ import { a as r } from "../../FilterWithSave-Bp6rH8Pe.js";
2
2
  export {
3
3
  r as SortSelect
4
4
  };
@@ -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-BOP0lt9a.js";
16
+ import { a as A } from "../../../FilterWithSave-Bp6rH8Pe.js";
17
17
  import "../../GroupedInput/ui/GroupedInputs.js";
18
18
  import "../../MetroTag/ui/MetroTag.js";
19
19
  import "../../Select/ui/Select.js";
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../FilterWithSave-BOP0lt9a.js";
1
+ import { S as e } from "../../FilterWithSave-Bp6rH8Pe.js";
2
2
  export {
3
3
  e as TabSwitcher
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { S as y } from "../../../FilterWithSave-BOP0lt9a.js";
3
+ import { S as y } from "../../../FilterWithSave-Bp6rH8Pe.js";
4
4
  import "../../Text/ui/Text.js";
5
5
  import "../../../index-rKuIKazb.js";
6
6
  import "../../Button/ui/Button.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 { F as w, L as I, M as L, a as N, S as v } from "./FilterWithSave-BOP0lt9a.js";
13
+ import { F as w, L as I, M as L, a as N, S as v } from "./FilterWithSave-Bp6rH8Pe.js";
14
14
  import { GroupedInputs as j } from "./components/GroupedInput/ui/GroupedInputs.js";
15
15
  import { Logo as y } from "./components/Logo/ui/Logo.js";
16
16
  import { MetroTag as E } from "./components/MetroTag/ui/MetroTag.js";
@@ -0,0 +1,3 @@
1
+ import { ILot } from '../components/LotCard/ui/LotCard.types.ts';
2
+
3
+ export declare const checkLargeOffice: (lot?: ILot) => boolean;
@@ -0,0 +1,12 @@
1
+ const r = (e) => {
2
+ if (e && (e == null ? void 0 : e.direction) === 1) {
3
+ if ((e == null ? void 0 : e.type) === 11 || (e == null ? void 0 : e.subType) === 8)
4
+ return !0;
5
+ if (typeof (e == null ? void 0 : e.beginFloor) == "number" && typeof (e == null ? void 0 : e.endFloor) == "number")
6
+ return (e == null ? void 0 : e.beginFloor) !== (e == null ? void 0 : e.endFloor);
7
+ }
8
+ return !1;
9
+ };
10
+ export {
11
+ r as checkLargeOffice
12
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.871",
5
+ "version": "0.0.873",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",