stone-kit 0.0.757 → 0.0.759
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 +59 -59
- package/dist/{FilterWithSave-CwxcJt8l.js → FilterWithSave-O0ZoqZN1.js} +37 -31
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +7 -6
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.js +1 -1
- package/dist/components/LotCard/index.js +1 -1
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
- package/dist/components/LotCard/ui/LotCard.js +1 -1
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +1 -1
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
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
|
|
@@ -207,7 +207,11 @@ const at = Object.assign(hn, { Item: Cr }), gn = "_root_1gm26_1", yn = "_lotBtn_
|
|
|
207
207
|
return /* @__PURE__ */ se(
|
|
208
208
|
"div",
|
|
209
209
|
{
|
|
210
|
-
className: Ee(le.root, c, {
|
|
210
|
+
className: Ee(le.root, c, {
|
|
211
|
+
[le.rootDisable]: x,
|
|
212
|
+
[le.rootRow]: ae
|
|
213
|
+
}),
|
|
214
|
+
"data-testid": "lot_card",
|
|
211
215
|
children: [
|
|
212
216
|
!ae && /* @__PURE__ */ se("div", { className: Ee(le.title), children: [
|
|
213
217
|
/* @__PURE__ */ se("div", { className: le.monthlyWrapper, children: [
|
|
@@ -222,7 +226,14 @@ const at = Object.assign(hn, { Item: Cr }), gn = "_root_1gm26_1", yn = "_lotBtn_
|
|
|
222
226
|
] }),
|
|
223
227
|
/* @__PURE__ */ F("div", { className: le.snippets, children: I.map((w, d) => {
|
|
224
228
|
const u = d === I.length - 1;
|
|
225
|
-
return /* @__PURE__ */ F(
|
|
229
|
+
return /* @__PURE__ */ F(
|
|
230
|
+
"div",
|
|
231
|
+
{
|
|
232
|
+
className: Ee(le.snippet, u ? "" : le.snippetLast),
|
|
233
|
+
children: w.text
|
|
234
|
+
},
|
|
235
|
+
d
|
|
236
|
+
);
|
|
226
237
|
}) })
|
|
227
238
|
] }),
|
|
228
239
|
/* @__PURE__ */ F("div", { className: Ee(le.lotImageWrapper, U), children: h || /* @__PURE__ */ F(
|
|
@@ -249,37 +260,32 @@ const at = Object.assign(hn, { Item: Cr }), gn = "_root_1gm26_1", yn = "_lotBtn_
|
|
|
249
260
|
] }),
|
|
250
261
|
/* @__PURE__ */ F("div", { className: le.snippets, children: I.map((w, d) => {
|
|
251
262
|
const u = d === I.length - 1;
|
|
252
|
-
return /* @__PURE__ */ F(
|
|
263
|
+
return /* @__PURE__ */ F(
|
|
264
|
+
"div",
|
|
265
|
+
{
|
|
266
|
+
className: Ee(le.snippet, u ? "" : le.snippetLast),
|
|
267
|
+
children: w.text
|
|
268
|
+
},
|
|
269
|
+
d
|
|
270
|
+
);
|
|
253
271
|
}) })
|
|
254
272
|
] }),
|
|
255
|
-
/* @__PURE__ */ se(
|
|
256
|
-
"
|
|
257
|
-
{
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
/* @__PURE__ */ se("li", { className: Ee(le.lotPropertyItem), children: [
|
|
272
|
-
/* @__PURE__ */ F("div", { children: "Площадь" }),
|
|
273
|
-
/* @__PURE__ */ F("div", { children: q })
|
|
274
|
-
] }),
|
|
275
|
-
/* @__PURE__ */ se("li", { className: Ee(le.lotPropertyItem), children: [
|
|
276
|
-
/* @__PURE__ */ F("div", { children: Q == null ? void 0 : Q.split(" ")[0] }),
|
|
277
|
-
/* @__PURE__ */ F("div", { children: Q == null ? void 0 : Q.split(" ")[1] })
|
|
278
|
-
] }),
|
|
279
|
-
/* @__PURE__ */ F("li", { className: Ee(le.lotPropertyItem), children: /* @__PURE__ */ F(m, {}) })
|
|
280
|
-
]
|
|
281
|
-
}
|
|
282
|
-
)
|
|
273
|
+
/* @__PURE__ */ se("div", { className: Ee(le.lotPropertyListDesktop), children: [
|
|
274
|
+
/* @__PURE__ */ F(it, { variant: "gray", children: q }),
|
|
275
|
+
/* @__PURE__ */ F(it, { variant: "gray", children: Q }),
|
|
276
|
+
/* @__PURE__ */ F(it, { variant: "gray", children: ve() })
|
|
277
|
+
] }),
|
|
278
|
+
/* @__PURE__ */ se("ul", { className: Ee(le.lotPropertyListMobile), children: [
|
|
279
|
+
/* @__PURE__ */ se("li", { className: Ee(le.lotPropertyItem), children: [
|
|
280
|
+
/* @__PURE__ */ F("div", { children: "Площадь" }),
|
|
281
|
+
/* @__PURE__ */ F("div", { children: q })
|
|
282
|
+
] }),
|
|
283
|
+
/* @__PURE__ */ se("li", { className: Ee(le.lotPropertyItem), children: [
|
|
284
|
+
/* @__PURE__ */ F("div", { children: Q == null ? void 0 : Q.split(" ")[0] }),
|
|
285
|
+
/* @__PURE__ */ F("div", { children: Q == null ? void 0 : Q.split(" ")[1] })
|
|
286
|
+
] }),
|
|
287
|
+
/* @__PURE__ */ F("li", { className: Ee(le.lotPropertyItem), children: /* @__PURE__ */ F(m, {}) })
|
|
288
|
+
] })
|
|
283
289
|
] }),
|
|
284
290
|
/* @__PURE__ */ se("div", { className: Ee(le.lotPriceWrapper, { [le.lotPriceWrapperRow]: !ae }), children: [
|
|
285
291
|
!x && /* @__PURE__ */ se("div", { className: le.discountWrapper, children: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "../../../index-rKuIKazb.js";
|
|
3
3
|
const s = "_root_1m9ru_1", o = "_nameWrapper_1m9ru_8", p = "_clearBtn_1m9ru_18", _ = "_checkboxWrapper_1m9ru_33", d = "_checkboxItem_1m9ru_39", m = "_checkboxItemActive_1m9ru_55", e = {
|
|
4
4
|
root: s,
|
|
@@ -8,7 +8,7 @@ const s = "_root_1m9ru_1", o = "_nameWrapper_1m9ru_8", p = "_clearBtn_1m9ru_18",
|
|
|
8
8
|
checkboxItem: d,
|
|
9
9
|
checkboxItemActive: m
|
|
10
10
|
}, u = i.bind(e), W = ({
|
|
11
|
-
label:
|
|
11
|
+
label: n = "Тип квартиры",
|
|
12
12
|
checkboxes: t
|
|
13
13
|
}) => {
|
|
14
14
|
const c = () => {
|
|
@@ -16,9 +16,9 @@ const s = "_root_1m9ru_1", o = "_nameWrapper_1m9ru_8", p = "_clearBtn_1m9ru_18",
|
|
|
16
16
|
r != null && r.isSelected && (r == null || r.setValue());
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */ a("div", { children:
|
|
19
|
+
return /* @__PURE__ */ l("div", { className: e.root, children: [
|
|
20
|
+
/* @__PURE__ */ l("div", { className: e.nameWrapper, children: [
|
|
21
|
+
/* @__PURE__ */ a("div", { children: n }),
|
|
22
22
|
/* @__PURE__ */ a(
|
|
23
23
|
"div",
|
|
24
24
|
{
|
|
@@ -34,7 +34,8 @@ const s = "_root_1m9ru_1", o = "_nameWrapper_1m9ru_8", p = "_clearBtn_1m9ru_18",
|
|
|
34
34
|
className: u(e.checkboxItem, { [e.checkboxItemActive]: r == null ? void 0 : r.isSelected }),
|
|
35
35
|
onClick: () => r == null ? void 0 : r.setValue(),
|
|
36
36
|
children: r == null ? void 0 : r.label
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
r == null ? void 0 : r.label
|
|
38
39
|
)) })
|
|
39
40
|
] });
|
|
40
41
|
};
|
|
@@ -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 { u as n } from "../../../FilterWithSave-
|
|
14
|
+
import { u as n } from "../../../FilterWithSave-O0ZoqZN1.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-
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-O0ZoqZN1.js";
|
|
4
4
|
import "../../Modal/ui/Modal.js";
|
|
5
5
|
import "../../../Option-BVIm7wOW.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILotCard } from './LotCard.types';
|
|
2
2
|
|
|
3
|
-
export declare const LotCard: ({ lot, handleBtnForm, handleFullScreenBtn, btnDisabled, addClassname, btnName, imgNode, rowConditions, addClassnameLotImage }: ILotCard) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const LotCard: ({ lot, handleBtnForm, handleFullScreenBtn, btnDisabled, addClassname, btnName, imgNode, rowConditions, addClassnameLotImage, }: ILotCard) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { L as A } from "../../../FilterWithSave-
|
|
2
|
+
import { L as A } from "../../../FilterWithSave-O0ZoqZN1.js";
|
|
3
3
|
import "../../Text/ui/Text.js";
|
|
4
4
|
import "../utils/checkBedroomsCount.js";
|
|
5
5
|
import "../../NewIcon/ui/NewIcon.js";
|
|
@@ -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 y } from "../../../FilterWithSave-
|
|
16
|
+
import { a as y } from "../../../FilterWithSave-O0ZoqZN1.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../MetroTag/ui/MetroTag.js";
|
|
19
19
|
import "../../Select/ui/Select.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as u } from "../../../FilterWithSave-
|
|
3
|
+
import { S as u } from "../../../FilterWithSave-O0ZoqZN1.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 M } from "./components/Flex/ui/Flex.js";
|
|
|
10
10
|
import { Input as b } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { Modal as F } from "./components/Modal/ui/Modal.js";
|
|
12
12
|
import { FieldInput as I } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
-
import { F as k, L as w, M as B, a as v, S as N } from "./FilterWithSave-
|
|
13
|
+
import { F as k, L as w, M as B, a as v, S as N } from "./FilterWithSave-O0ZoqZN1.js";
|
|
14
14
|
import { GroupedInputs as j } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
15
|
import { Logo as D } from "./components/Logo/ui/Logo.js";
|
|
16
16
|
import { MetroTag as P } from "./components/MetroTag/ui/MetroTag.js";
|