stone-kit 0.0.1031 → 0.0.1033
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/dist/App.js +4 -4
- package/dist/Option-D-8xnCui.js +94 -0
- package/dist/Router.js +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +4 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +20 -19
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +62 -41
- package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +2 -0
- package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
- package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -1
- package/dist/components/FieldInput/ui/FieldInput.js +21 -12
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +2 -7
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.d.ts +10 -1
- package/dist/components/FormModal/ui/ModalForm.js +803 -719
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/Input/ui/Input.js +1 -22
- package/dist/components/Logo/ui/Logo.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
- package/dist/components/LotCard/ui/LotCard.js +117 -97
- package/dist/components/LotCard/ui/LotCard.types.d.ts +2 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
- package/dist/components/MetroTag/ui/MetroTag.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +119 -114
- package/dist/components/RoundButton/ui/RoundButton.js +1 -1
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
- package/dist/components/Select/ui/Category.js +2 -2
- package/dist/components/Select/ui/Option.d.ts +2 -1
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.d.ts +1 -1
- package/dist/components/Select/ui/Select.js +88 -82
- package/dist/components/Select/ui/Select.types.d.ts +5 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/ui/SortSelect.js +2 -2
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +60 -57
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/TabSelect/ui/TabSelect.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +91 -90
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.js +1 -1
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
- package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
- package/dist/layout/components/Header/Header.js +1 -1
- package/dist/layout/components/Menu.js +107 -4
- package/dist/pages/FormsPage/FormsPage.js +1 -0
- package/dist/pages/TabsPage/TabsPage.js +56 -42
- package/dist/stone-kit.css +1 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
- package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
- package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
- package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
- package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
- package/dist/useLotCard-I7_rgnqj.js +187 -0
- package/dist/{useSortSelect-B8HOGdOt.js → useSortSelect-IeonkD5d.js} +1 -1
- package/package.json +5 -5
- package/dist/Menu-CdJTzN7T.js +0 -494
- package/dist/Option-rFBMQAPk.js +0 -87
- package/dist/index-CBdtKu-u.js +0 -891
- package/dist/useLotCard-DG9doKCX.js +0 -186
|
@@ -1,112 +1,113 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useClientWidth as
|
|
4
|
-
import { Text as
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
text:
|
|
8
|
-
textMini:
|
|
9
|
-
rootCol:
|
|
10
|
-
item:
|
|
11
|
-
whiteRow:
|
|
12
|
-
firstItem:
|
|
1
|
+
import { jsx as s, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { c as W } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { useClientWidth as $ } from "../../../shared/useClientWidth.js";
|
|
4
|
+
import { Text as D } from "../../Text/ui/Text.js";
|
|
5
|
+
const M = "_root_1qhai_1", j = "_text_1qhai_18", G = "_textMini_1qhai_26", k = "_rootCol_1qhai_32", v = "_item_1qhai_38", O = "_whiteRow_1qhai_57", A = "_firstItem_1qhai_68", B = "_lastItem_1qhai_72", E = "_whiteRowGrayLabel_1qhai_103", F = "_labelItem_1qhai_118", H = "_outlined_1qhai_147", J = "_apart_1qhai_204", K = "_isLong_1qhai_204", P = "_autoWidth_1qhai_219", Q = "_mini_1qhai_233", U = "_isDisabled_1qhai_241", V = "_grayRow_1qhai_265", e = {
|
|
6
|
+
root: M,
|
|
7
|
+
text: j,
|
|
8
|
+
textMini: G,
|
|
9
|
+
rootCol: k,
|
|
10
|
+
item: v,
|
|
11
|
+
whiteRow: O,
|
|
12
|
+
firstItem: A,
|
|
13
13
|
lastItem: B,
|
|
14
14
|
whiteRowGrayLabel: E,
|
|
15
15
|
labelItem: F,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"text-
|
|
28
|
-
"text-
|
|
29
|
-
"text-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"text-
|
|
35
|
-
"text-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"text-
|
|
41
|
-
"text-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
outlined: H,
|
|
17
|
+
apart: J,
|
|
18
|
+
isLong: K,
|
|
19
|
+
autoWidth: P,
|
|
20
|
+
mini: Q,
|
|
21
|
+
isDisabled: U,
|
|
22
|
+
grayRow: V,
|
|
23
|
+
"tiny-size": "_tiny-size_1qhai_293",
|
|
24
|
+
"small-size": "_small-size_1qhai_298",
|
|
25
|
+
"medium-size": "_medium-size_1qhai_303",
|
|
26
|
+
"large-size": "_large-size_1qhai_308",
|
|
27
|
+
"text-tiny-size": "_text-tiny-size_1qhai_313",
|
|
28
|
+
"text-small-size": "_text-small-size_1qhai_319",
|
|
29
|
+
"text-medium-size": "_text-medium-size_1qhai_324",
|
|
30
|
+
"text-large-size": "_text-large-size_1qhai_329",
|
|
31
|
+
"small-size_m": "_small-size_m_1qhai_335",
|
|
32
|
+
"medium-size_m": "_medium-size_m_1qhai_339",
|
|
33
|
+
"large-size_m": "_large-size_m_1qhai_343",
|
|
34
|
+
"text-small-size_m": "_text-small-size_m_1qhai_347",
|
|
35
|
+
"text-medium-size_m": "_text-medium-size_m_1qhai_351",
|
|
36
|
+
"text-large-size_m": "_text-large-size_m_1qhai_355",
|
|
37
|
+
"small-size_l": "_small-size_l_1qhai_370",
|
|
38
|
+
"medium-size_l": "_medium-size_l_1qhai_374",
|
|
39
|
+
"large-size_l": "_large-size_l_1qhai_378",
|
|
40
|
+
"text-small-size_l": "_text-small-size_l_1qhai_382",
|
|
41
|
+
"text-medium-size_l": "_text-medium-size_l_1qhai_386",
|
|
42
|
+
"text-large-size_l": "_text-large-size_l_1qhai_390"
|
|
43
|
+
}, _ = W.bind(e), X = ({
|
|
44
|
+
children: a,
|
|
45
|
+
variant: l = "whiteRow",
|
|
45
46
|
isApart: m = !1,
|
|
46
|
-
addClassName:
|
|
47
|
-
col:
|
|
48
|
-
}) => /* @__PURE__ */
|
|
49
|
-
const { isTablet:
|
|
50
|
-
index:
|
|
51
|
-
children:
|
|
52
|
-
addItemClassName:
|
|
53
|
-
addLabelClassname:
|
|
54
|
-
addTextClass:
|
|
55
|
-
size_s:
|
|
56
|
-
size_m:
|
|
57
|
-
size_l:
|
|
58
|
-
disabled:
|
|
59
|
-
itemsLength:
|
|
60
|
-
isLongOn:
|
|
47
|
+
addClassName: i = "",
|
|
48
|
+
col: t = !1
|
|
49
|
+
}) => /* @__PURE__ */ s("div", { className: _(e.root, e[l], { [e.rootCol]: t, [e.apart]: m }, i), children: a }), g = (a) => {
|
|
50
|
+
const { isTablet: l, isDesktop: m } = $(), {
|
|
51
|
+
index: i,
|
|
52
|
+
children: t,
|
|
53
|
+
addItemClassName: u,
|
|
54
|
+
addLabelClassname: w,
|
|
55
|
+
addTextClass: b,
|
|
56
|
+
size_s: h = "large",
|
|
57
|
+
size_m: r,
|
|
58
|
+
size_l: d,
|
|
59
|
+
disabled: z = !1,
|
|
60
|
+
itemsLength: I = 0,
|
|
61
|
+
isLongOn: f = !0,
|
|
61
62
|
width: c,
|
|
62
63
|
width_m: o,
|
|
63
|
-
width_l:
|
|
64
|
+
width_l: n,
|
|
64
65
|
mini: x = !1,
|
|
65
|
-
dataTestId:
|
|
66
|
-
ref:
|
|
67
|
-
...
|
|
68
|
-
} =
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
66
|
+
dataTestId: p,
|
|
67
|
+
ref: y,
|
|
68
|
+
...L
|
|
69
|
+
} = a, q = (t?.toString().length ? t?.toString().length > 2 : !1) && f, R = (C, N) => C && o ? o : N && n ? n : c, T = !c && !o && !n && q;
|
|
70
|
+
return /* @__PURE__ */ S("label", { className: _(e.labelItem, { [e.isLong]: q }, w), children: [
|
|
71
|
+
/* @__PURE__ */ s(
|
|
71
72
|
"input",
|
|
72
73
|
{
|
|
73
|
-
ref:
|
|
74
|
+
ref: y,
|
|
74
75
|
type: "checkbox",
|
|
75
|
-
...
|
|
76
|
-
disabled:
|
|
76
|
+
...L,
|
|
77
|
+
disabled: z
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ s(
|
|
80
81
|
"div",
|
|
81
82
|
{
|
|
82
|
-
style: { width:
|
|
83
|
-
"data-testid":
|
|
83
|
+
style: { width: R(l, m) },
|
|
84
|
+
"data-testid": p,
|
|
84
85
|
className: _(
|
|
85
|
-
|
|
86
|
+
e.item,
|
|
86
87
|
{
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
[
|
|
91
|
-
[
|
|
88
|
+
[e.firstItem]: i === 0,
|
|
89
|
+
[e.lastItem]: i === I - 1,
|
|
90
|
+
[e.isDisabled]: z,
|
|
91
|
+
[e.autoWidth]: T,
|
|
92
|
+
[e.mini]: x
|
|
92
93
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
e[`${h}-size`],
|
|
95
|
+
e[`${r}-size_m`],
|
|
96
|
+
e[`${d}-size_l`],
|
|
97
|
+
u
|
|
97
98
|
),
|
|
98
|
-
children: /* @__PURE__ */
|
|
99
|
-
|
|
99
|
+
children: /* @__PURE__ */ s(
|
|
100
|
+
D,
|
|
100
101
|
{
|
|
101
102
|
className: _(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
{ [
|
|
107
|
-
|
|
103
|
+
e.text,
|
|
104
|
+
e[`text-${h}-size`],
|
|
105
|
+
e[`text-${r}-size_m`],
|
|
106
|
+
e[`text-${d}-size_l`],
|
|
107
|
+
{ [e.textMini]: x },
|
|
108
|
+
b
|
|
108
109
|
),
|
|
109
|
-
children:
|
|
110
|
+
children: t
|
|
110
111
|
}
|
|
111
112
|
)
|
|
112
113
|
}
|
|
@@ -114,9 +115,9 @@ const j = "_root_1t61b_1", G = "_text_1t61b_18", k = "_textMini_1t61b_26", v = "
|
|
|
114
115
|
] });
|
|
115
116
|
};
|
|
116
117
|
g.displayName = "TabSwitcherItem";
|
|
117
|
-
const
|
|
118
|
+
const ie = Object.assign(X, {
|
|
118
119
|
Item: g
|
|
119
120
|
});
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
ie as TabSwitcher
|
|
122
123
|
};
|
|
@@ -3,6 +3,7 @@ declare const TAB_SWITCHER_VARIANTS: {
|
|
|
3
3
|
whiteRow: string;
|
|
4
4
|
grayRow: string;
|
|
5
5
|
whiteRowGrayLabel: string;
|
|
6
|
+
outlined: string;
|
|
6
7
|
};
|
|
7
8
|
type TabSizes = 'medium' | 'small' | 'large' | 'tiny';
|
|
8
9
|
export interface ITabSwitcherItem extends React.ComponentPropsWithRef<'input'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
-
import { c as h } from "../../../index-
|
|
2
|
+
import { c as h } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
const o = "_tagCommon_18las_1", y = "_red_18las_149", p = "_gray_18las_155", g = "_shade_18las_161", x = "_blackGrey_18las_167", c = "_blackWhite_18las_173", d = "_gray5_18las_179", u = "_gray8_18las_185", k = "_chineseBlack_18las_191", G = "_white_18las_198", f = "_fullWhite_18las_205", W = "_shadeWhite_18las_212", w = "_transparent_18las_222", b = "_transWhite_18las_229", L = "_neutralGray6_18las_239", T = "_whiteGrayStroke_18las_245", B = "_whiteGray_18las_245", S = "_lightGray_18las_259", $ = "_black_18las_167", C = "_blackStroke_18las_271", N = "_darkGray_18las_278", j = "_lightBlue_18las_283", v = "_lightGrayTrans_18las_289", q = "_whiteGrayTrans_18las_295", A = "_preLarge_size_m_18las_342", _ = {
|
|
4
4
|
tagCommon: o,
|
|
5
5
|
"auto-width": "_auto-width_18las_21",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as _ } from "../../../index-
|
|
2
|
+
import { c as _ } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
const i = "_root_wkh0k_1", o = {
|
|
4
4
|
root: i
|
|
5
5
|
}, e = _.bind(o), f = ({ children: m, className: r, additionalClass: t = "", html: s, ...n }) => s ? /* @__PURE__ */ c(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as u } from "../../../index-
|
|
2
|
+
import { c as u } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", t = {
|
|
4
4
|
btnCommon: w,
|
|
5
5
|
"auto-width": "_auto-width_1act6_18",
|