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
|
|
2
|
-
import { NewIcon as
|
|
3
|
-
import { formatPrice as
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
price:
|
|
7
|
-
paymentWrapper:
|
|
8
|
-
pamentWrapperLargeOffice:
|
|
9
|
-
}, x = ({ lot:
|
|
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:
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
t && /* @__PURE__ */
|
|
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
|
-
|
|
15
|
+
b(n, !1, u)
|
|
16
16
|
] }),
|
|
17
|
-
!t && /* @__PURE__ */
|
|
17
|
+
!t && /* @__PURE__ */ r(
|
|
18
18
|
"p",
|
|
19
19
|
{
|
|
20
|
-
className:
|
|
21
|
-
onClick: (
|
|
22
|
-
|
|
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
|
-
|
|
31
|
-
/* @__PURE__ */ p("span", { children: "Доступно несколько способов оплаты" }),
|
|
30
|
+
/* @__PURE__ */ r("p", { className: c.paymentWrapper, children: [
|
|
31
|
+
/* @__PURE__ */ p("span", { children: a ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
|
|
32
32
|
/* @__PURE__ */ p(
|
|
33
|
-
|
|
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 {
|