stone-kit 0.0.1006 → 0.0.1007

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 CHANGED
@@ -1,59 +1,59 @@
1
- # Stone-kit
2
-
3
- Uikit for stone redesign 2.0
4
-
5
- ## Installation
6
-
7
- Package installation:
8
-
9
- ```bash
10
- npm i stone-kit@latest
11
- ```
12
-
13
- ## Usage
14
-
15
- For Next.js page router in App.tsx:
16
-
17
- ```bash
18
- import 'stone-kit/dist/style.css'
19
- ```
20
-
21
- and then:
22
-
23
- ```bash
24
- import {Button} from 'stone-kit'
25
- ```
26
-
27
- For other projects u can immediately:
28
-
29
- ```bash
30
- import {Button} from 'stone-kit'
31
- ```
32
-
33
- ## Docs
34
-
35
- ### ButtonProps
36
-
37
- size: optional, size of button. types : 'large' | 'medium' | 'small' | 'tiny'
38
-
39
- pre: optional, insert icon/text before button text. type: ReactNode
40
-
41
- post: optional, insert icon/text after button text. type: ReactNode
42
-
43
- variant: optional, color variants of button. type:
44
- 'blue',
45
- 'gray',
46
- 'whiteStroke',
47
- 'sokolniki',
48
- 'black',
49
- 'whiteFilled'
50
-
51
- width: optional, width of button. type: 'auto' | 'full'
52
-
53
- additionalClass: optional, add your custom class to button. type: 'string'
54
-
55
- as: optional, u can convert button to link. type: 'button' | 'link'. 'button' by default.
56
-
57
- ### MobileButtonProps
58
-
59
- ### Tag
1
+ # Stone-kit
2
+
3
+ Uikit for stone redesign 2.0
4
+
5
+ ## Installation
6
+
7
+ Package installation:
8
+
9
+ ```bash
10
+ npm i stone-kit@latest
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ For Next.js page router in App.tsx:
16
+
17
+ ```bash
18
+ import 'stone-kit/dist/style.css'
19
+ ```
20
+
21
+ and then:
22
+
23
+ ```bash
24
+ import {Button} from 'stone-kit'
25
+ ```
26
+
27
+ For other projects u can immediately:
28
+
29
+ ```bash
30
+ import {Button} from 'stone-kit'
31
+ ```
32
+
33
+ ## Docs
34
+
35
+ ### ButtonProps
36
+
37
+ size: optional, size of button. types : 'large' | 'medium' | 'small' | 'tiny'
38
+
39
+ pre: optional, insert icon/text before button text. type: ReactNode
40
+
41
+ post: optional, insert icon/text after button text. type: ReactNode
42
+
43
+ variant: optional, color variants of button. type:
44
+ 'blue',
45
+ 'gray',
46
+ 'whiteStroke',
47
+ 'sokolniki',
48
+ 'black',
49
+ 'whiteFilled'
50
+
51
+ width: optional, width of button. type: 'auto' | 'full'
52
+
53
+ additionalClass: optional, add your custom class to button. type: 'string'
54
+
55
+ as: optional, u can convert button to link. type: 'button' | 'link'. 'button' by default.
56
+
57
+ ### MobileButtonProps
58
+
59
+ ### Tag
@@ -1,25 +1,25 @@
1
- import { jsxs as c, jsx as p } from "react/jsx-runtime";
2
- import { NewIcon as d } from "../../../NewIcon/ui/NewIcon.js";
3
- import { formatPrice as y } from "../../utils/formatPrice.js";
4
- const P = "_root_1ucbu_1", W = "_price_1ucbu_7", b = "_paymentWrapper_1ucbu_19", N = "_pamentWrapperLargeOffice_1ucbu_30", e = {
5
- root: P,
6
- price: W,
7
- paymentWrapper: b,
8
- pamentWrapperLargeOffice: N
9
- }, x = ({ lot: o, onPriceClickHandler: s }) => {
1
+ import { jsxs as r, jsx as p } from "react/jsx-runtime";
2
+ import { NewIcon as P } from "../../../NewIcon/ui/NewIcon.js";
3
+ import { formatPrice as b } from "../../utils/formatPrice.js";
4
+ const d = "_root_1ucbu_1", y = "_price_1ucbu_7", W = "_paymentWrapper_1ucbu_19", w = "_pamentWrapperLargeOffice_1ucbu_30", c = {
5
+ root: d,
6
+ price: y,
7
+ paymentWrapper: W,
8
+ pamentWrapperLargeOffice: w
9
+ }, x = ({ lot: i, onPriceClickHandler: s }) => {
10
10
  var m;
11
- const { project: i, sellingPriceBeforeDiscount: l, showPriceFlg: f, direction: u, type: h, sellingPrice: _ } = o || {}, g = !!((m = i == null ? void 0 : i.showPriceSubType) != null && m.some((r) => Number(r.filter) === o.subType)), a = h === 11, n = l ?? _, t = n && f && !a && g;
12
- return /* @__PURE__ */ c("div", { className: e.root, children: [
13
- t && /* @__PURE__ */ c("p", { className: e.price, children: [
11
+ const { project: o, sellingPriceBeforeDiscount: l, showPriceFlg: f, direction: u, specialProgram: _, sellingPrice: h } = i || {}, g = !!((m = o == null ? void 0 : o.showPriceSubType) != null && m.some((e) => Number(e.filter) === i.subType)), a = !!_, n = l ?? h, t = n && f && !a && g;
12
+ return /* @__PURE__ */ r("div", { className: c.root, children: [
13
+ t && /* @__PURE__ */ r("p", { className: c.price, children: [
14
14
  " ",
15
- y(n, !1, u)
15
+ b(n, !1, u)
16
16
  ] }),
17
- !t && /* @__PURE__ */ c(
17
+ !t && /* @__PURE__ */ r(
18
18
  "p",
19
19
  {
20
- className: e.price,
21
- onClick: (r) => {
22
- r.preventDefault(), r.stopPropagation(), s && s();
20
+ className: c.price,
21
+ onClick: (e) => {
22
+ e.preventDefault(), e.stopPropagation(), s && s();
23
23
  },
24
24
  children: [
25
25
  "Цена ",
@@ -27,17 +27,16 @@ const P = "_root_1ucbu_1", W = "_price_1ucbu_7", b = "_paymentWrapper_1ucbu_19",
27
27
  ]
28
28
  }
29
29
  ),
30
- !a && /* @__PURE__ */ c("p", { className: e.paymentWrapper, children: [
31
- /* @__PURE__ */ p("span", { children: "Доступно несколько способов оплаты" }),
30
+ /* @__PURE__ */ r("p", { className: c.paymentWrapper, children: [
31
+ /* @__PURE__ */ p("span", { children: a ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
32
32
  /* @__PURE__ */ p(
33
- d,
33
+ P,
34
34
  {
35
35
  name: "arrowRight",
36
36
  size: "20"
37
37
  }
38
38
  )
39
- ] }),
40
- a && /* @__PURE__ */ p("p", { className: e.pamentWrapperLargeOffice, children: "Рассрочка до окончания строительства" })
39
+ ] })
41
40
  ] });
42
41
  };
43
42
  export {
@@ -232,6 +232,8 @@ export interface ILot {
232
232
  icoImg: string;
233
233
  category?: string;
234
234
  }[];
235
+ /** Специальная программа */
236
+ specialProgram?: boolean | null;
235
237
  }
236
238
  export interface LotFeature {
237
239
  /** Текст */
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.1006",
5
+ "version": "0.0.1007",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",