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
package/dist/App.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import t from "./
|
|
4
|
-
import p from "./
|
|
2
|
+
import o from "./layout/Layout.js";
|
|
3
|
+
import t from "./Router.js";
|
|
4
|
+
import { B as p } from "./chunk-4WY6JWTD-BeveLKf_.js";
|
|
5
5
|
function u() {
|
|
6
|
-
return /* @__PURE__ */ r(
|
|
6
|
+
return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(t, {}) }) });
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
u as default
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsxs as C, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "./index-YnD2EP-S.js";
|
|
3
|
+
import { NewIcon as r } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
|
+
const S = "_multiSelectWrapper_17qb6_1", h = "_selectedOptions_17qb6_8", f = "_selectedText_17qb6_26", k = "_selectedOptionsBtn_17qb6_34", w = "_selectedOptionsOpened_17qb6_60", v = "_selectedOptionsNotEmpty_17qb6_64", x = "_selectOptionsDisabled_17qb6_69", y = "_optionsOuterContainer_17qb6_76", D = "_betweenSize_small_17qb6_89", L = "_betweenSize_medium_17qb6_93", B = "_optionsList_17qb6_97", N = "_scroll_standard_17qb6_126", W = "_scroll_compact_17qb6_130", A = "_lastList_17qb6_135", E = "_listRight_17qb6_140", R = "_inputWrapper_17qb6_144", T = "_option_17qb6_76", j = "_category_17qb6_166", P = "_leftSide_17qb6_172", U = "_optionCategory_17qb6_177", $ = "_isPositionLeftCheckbox_17qb6_183", F = "_optionDisabled_17qb6_188", G = "_optionClickable_17qb6_192", H = "_icon_17qb6_196", I = "_iconArrow_17qb6_202", J = "_iconBtn_17qb6_208", t = {
|
|
5
|
+
multiSelectWrapper: S,
|
|
6
|
+
selectedOptions: h,
|
|
7
|
+
selectedText: f,
|
|
8
|
+
selectedOptionsBtn: k,
|
|
9
|
+
"small-size": "_small-size_17qb6_39",
|
|
10
|
+
"medium-size": "_medium-size_17qb6_46",
|
|
11
|
+
"large-size": "_large-size_17qb6_53",
|
|
12
|
+
selectedOptionsOpened: w,
|
|
13
|
+
selectedOptionsNotEmpty: v,
|
|
14
|
+
selectOptionsDisabled: x,
|
|
15
|
+
optionsOuterContainer: y,
|
|
16
|
+
betweenSize_small: D,
|
|
17
|
+
betweenSize_medium: L,
|
|
18
|
+
optionsList: B,
|
|
19
|
+
scroll_standard: N,
|
|
20
|
+
scroll_compact: W,
|
|
21
|
+
lastList: A,
|
|
22
|
+
listRight: E,
|
|
23
|
+
inputWrapper: R,
|
|
24
|
+
option: T,
|
|
25
|
+
category: j,
|
|
26
|
+
leftSide: P,
|
|
27
|
+
optionCategory: U,
|
|
28
|
+
isPositionLeftCheckbox: $,
|
|
29
|
+
optionDisabled: F,
|
|
30
|
+
optionClickable: G,
|
|
31
|
+
icon: H,
|
|
32
|
+
iconArrow: I,
|
|
33
|
+
iconBtn: J,
|
|
34
|
+
"small-size_m": "_small-size_m_17qb6_221",
|
|
35
|
+
"medium-size_m": "_medium-size_m_17qb6_227",
|
|
36
|
+
"large-size_m": "_large-size_m_17qb6_233",
|
|
37
|
+
"small-size_l": "_small-size_l_17qb6_248",
|
|
38
|
+
"medium-size_l": "_medium-size_l_17qb6_254",
|
|
39
|
+
"large-size_l": "_large-size_l_17qb6_260"
|
|
40
|
+
}, K = g.bind(t), X = ({
|
|
41
|
+
option: e,
|
|
42
|
+
selectedOptions: d,
|
|
43
|
+
disabledOptions: b,
|
|
44
|
+
clickableOptions: s,
|
|
45
|
+
handleOptionClick: p,
|
|
46
|
+
isOptionCategory: _,
|
|
47
|
+
isPositionLeftCheckbox: i = !1,
|
|
48
|
+
sizeIcon: c,
|
|
49
|
+
dataTestId: m,
|
|
50
|
+
isDisabledNotClickable: q,
|
|
51
|
+
addClassName: u = ""
|
|
52
|
+
}) => {
|
|
53
|
+
const z = s ? s.includes(`${e.value}`) : !0, O = e.value === "selectAll", o = d.some((l) => l.value === e.value), a = () => q && s ? !s.includes(`${e.value}`) : b.some((l) => l.value === e.value);
|
|
54
|
+
return /* @__PURE__ */ C(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: K(
|
|
58
|
+
t.option,
|
|
59
|
+
{
|
|
60
|
+
[t.optionDisabled]: a(),
|
|
61
|
+
[t.optionCategory]: _,
|
|
62
|
+
[t.isPositionLeftCheckbox]: i,
|
|
63
|
+
[t.optionClickable]: z || O
|
|
64
|
+
},
|
|
65
|
+
u
|
|
66
|
+
),
|
|
67
|
+
"data-testid": m,
|
|
68
|
+
onClick: () => {
|
|
69
|
+
a() && !o || p(e);
|
|
70
|
+
},
|
|
71
|
+
children: [
|
|
72
|
+
(_ || i) && /* @__PURE__ */ n(
|
|
73
|
+
r,
|
|
74
|
+
{
|
|
75
|
+
size: c ?? "20",
|
|
76
|
+
name: o ? "selectChecked" : "selectUnchecked"
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ n("div", { children: e.label }),
|
|
80
|
+
!_ && !i && /* @__PURE__ */ n(
|
|
81
|
+
r,
|
|
82
|
+
{
|
|
83
|
+
size: c ?? "20",
|
|
84
|
+
name: o ? "selectChecked" : "selectUnchecked"
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
X as O,
|
|
93
|
+
t as s
|
|
94
|
+
};
|
package/dist/Router.js
CHANGED
|
@@ -11,7 +11,7 @@ import f from "./pages/FormsPage/FormsPage.js";
|
|
|
11
11
|
import { LogoPage as g } from "./pages/LogoPage/LogoPage.js";
|
|
12
12
|
import { InputPage as h } from "./pages/InputPage/InputPage.js";
|
|
13
13
|
import { CheckBoxPage as P } from "./pages/CheckboxPage/CheckboxPage.js";
|
|
14
|
-
import { R as c, a as t } from "./
|
|
14
|
+
import { R as c, a as t } from "./chunk-4WY6JWTD-BeveLKf_.js";
|
|
15
15
|
const H = () => /* @__PURE__ */ o(c, { children: [
|
|
16
16
|
/* @__PURE__ */ e(
|
|
17
17
|
t,
|