stone-kit 0.0.1029 → 0.0.1031
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/Menu-CdJTzN7T.js +494 -0
- package/dist/{Option-CtwUzW8a.js → Option-rFBMQAPk.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
- package/dist/components/CommercialLotCard/components/Price/Price.js +11 -11
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
- package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -2
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.js +641 -656
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/Input/ui/Input.js +22 -1
- package/dist/components/Logo/ui/Logo.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +2 -2
- package/dist/components/LotCard/ui/LotCard.js +2 -2
- 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 +1 -1
- package/dist/components/RoundButton/ui/RoundButton.js +1 -1
- package/dist/components/Select/ui/Category.js +2 -2
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.js +2 -2
- 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/Switcher/ui/Switcher.js +1 -1
- package/dist/components/TabSelect/ui/TabSelect.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- 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-BJwl9stn.js → index-3E04UaC2.js} +784 -785
- package/dist/{index-YnD2EP-S.js → index-B2JRaoNz.js} +5 -0
- package/dist/index-CBdtKu-u.js +891 -0
- package/dist/layout/components/Header/Header.js +1 -1
- package/dist/layout/components/Menu.js +4 -107
- 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-CYcRSogE.js → useLotCard-DG9doKCX.js} +1 -1
- package/dist/useSortSelect-B8HOGdOt.js +79 -0
- package/package.json +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
- package/dist/useSortSelect-Cy3od4ig.js +0 -80
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as t } from "../../../../index-
|
|
1
|
+
import { l as t } from "../../../../index-3E04UaC2.js";
|
|
2
2
|
import { SliderNavigation as e } from "../../../../components/SliderNavigation/ui/SliderNavigation.js";
|
|
3
3
|
const a = {
|
|
4
4
|
title: "shared/ui/SliderNavigation",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as e } from "../../../../index-
|
|
1
|
+
import { l as e } from "../../../../index-3E04UaC2.js";
|
|
2
2
|
import { SummarySelect as a } from "../../../../components/SummarySelect/ui/SummarySelect.js";
|
|
3
3
|
const l = [
|
|
4
4
|
{ value: "1", label: "Summary Option 1", count: 5 },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _, jsx as t, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import { useState as K } from "react";
|
|
3
3
|
import { getTagsFeatures as Q } from "./components/LotCard/utils/getTagsFeatures.js";
|
|
4
|
-
import { c as U } from "./index-
|
|
4
|
+
import { c as U } from "./index-B2JRaoNz.js";
|
|
5
5
|
import { checkBedroomsCount as X } from "./components/LotCard/utils/checkBedroomsCount.js";
|
|
6
6
|
import { formatPayment as Y } from "./components/LotCard/utils/monthlyPayment.js";
|
|
7
7
|
import { useClientWidth as Z } from "./shared/useClientWidth.js";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsxs as k, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as q } from "./index-B2JRaoNz.js";
|
|
3
|
+
const O = "_sortSelectWrapper_1b2qn_1", v = "_selectedOptions_1b2qn_11", x = "_selectionOptionMini_1b2qn_34", B = "_selectedOptionsOpened_1b2qn_38", S = "_selectOptionsDisabled_1b2qn_42", f = "_optionsList_1b2qn_49", C = "_mobileOptionList_1b2qn_64", L = "_mobileSortHeader_1b2qn_72", W = "_modalAddBody_1b2qn_86", g = "_inputWrapper_1b2qn_92", T = "_option_1b2qn_49", D = "_icon_1b2qn_120", N = "_checkBox_1b2qn_127", y = "_checkBoxChecked_1b2qn_134", A = "_innerCheck_1b2qn_141", H = "_sortSelectWrapperTop_1b2qn_172", M = "_optionListOnTop_1b2qn_175", t = {
|
|
4
|
+
sortSelectWrapper: O,
|
|
5
|
+
selectedOptions: v,
|
|
6
|
+
selectionOptionMini: x,
|
|
7
|
+
selectedOptionsOpened: B,
|
|
8
|
+
selectOptionsDisabled: S,
|
|
9
|
+
optionsList: f,
|
|
10
|
+
mobileOptionList: C,
|
|
11
|
+
mobileSortHeader: L,
|
|
12
|
+
modalAddBody: W,
|
|
13
|
+
inputWrapper: g,
|
|
14
|
+
option: T,
|
|
15
|
+
icon: D,
|
|
16
|
+
checkBox: N,
|
|
17
|
+
checkBoxChecked: y,
|
|
18
|
+
innerCheck: A,
|
|
19
|
+
sortSelectWrapperTop: H,
|
|
20
|
+
optionListOnTop: M
|
|
21
|
+
}, _ = q.bind(t), z = ({
|
|
22
|
+
selectedOption: n,
|
|
23
|
+
setSelectedOption: i,
|
|
24
|
+
setIsOpen: d,
|
|
25
|
+
containerRef: r,
|
|
26
|
+
onBlur: l,
|
|
27
|
+
onChange: a,
|
|
28
|
+
onClickOption: p,
|
|
29
|
+
isMobile: u,
|
|
30
|
+
placeholder: b
|
|
31
|
+
}) => {
|
|
32
|
+
const h = (e) => (o) => {
|
|
33
|
+
o.stopPropagation(), p && p(e);
|
|
34
|
+
const c = n?.value === e.value ? null : e;
|
|
35
|
+
if (c && (i && i(c), a)) {
|
|
36
|
+
const m = {
|
|
37
|
+
...o,
|
|
38
|
+
target: { value: c }
|
|
39
|
+
};
|
|
40
|
+
a(m);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return { handleDocumentClick: (e) => {
|
|
44
|
+
r.current && !r.current.contains(e.target) && d(!1);
|
|
45
|
+
}, handleBlur: (e) => {
|
|
46
|
+
if (l) {
|
|
47
|
+
const o = {
|
|
48
|
+
...e,
|
|
49
|
+
target: { value: n }
|
|
50
|
+
};
|
|
51
|
+
l(o);
|
|
52
|
+
}
|
|
53
|
+
}, getInputValue: () => u ? "" : n ? n.label : b, getOption: (e) => /* @__PURE__ */ k(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: _(t.option, {
|
|
57
|
+
[t.selected]: n?.value === e.value
|
|
58
|
+
}),
|
|
59
|
+
onClick: h(e),
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ s("div", { children: e.label }),
|
|
62
|
+
/* @__PURE__ */ s(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: _(t.checkBox, {
|
|
66
|
+
[t.checkBoxChecked]: n?.value === e.value
|
|
67
|
+
}),
|
|
68
|
+
children: n?.value === e.value && /* @__PURE__ */ s("div", { className: t.innerCheck })
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
e.value
|
|
74
|
+
) };
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
t as s,
|
|
78
|
+
z as u
|
|
79
|
+
};
|