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.
Files changed (72) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/Menu-CdJTzN7T.js +494 -0
  3. package/dist/{Option-CtwUzW8a.js → Option-rFBMQAPk.js} +1 -1
  4. package/dist/Router.js +1 -1
  5. package/dist/components/Button/ui/Button.js +1 -1
  6. package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
  7. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +1 -1
  8. package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
  9. package/dist/components/CommercialLotCard/components/Price/Price.js +11 -11
  10. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
  11. package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
  12. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
  13. package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -2
  14. package/dist/components/Flex/ui/Flex.js +1 -1
  15. package/dist/components/FormModal/ui/ModalForm.js +641 -656
  16. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  17. package/dist/components/Input/ui/Input.js +22 -1
  18. package/dist/components/Logo/ui/Logo.js +1 -1
  19. package/dist/components/LotCard/hooks/useLotCard.js +2 -2
  20. package/dist/components/LotCard/ui/LotCard.js +2 -2
  21. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  22. package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
  23. package/dist/components/MetroTag/ui/MetroTag.js +1 -1
  24. package/dist/components/NewIcon/ui/NewIcon.js +1 -1
  25. package/dist/components/RoundButton/ui/RoundButton.js +1 -1
  26. package/dist/components/Select/ui/Category.js +2 -2
  27. package/dist/components/Select/ui/Option.js +2 -2
  28. package/dist/components/Select/ui/Select.js +2 -2
  29. package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
  30. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  31. package/dist/components/SortSelect/ui/SortSelect.js +2 -2
  32. package/dist/components/Switcher/ui/Switcher.js +1 -1
  33. package/dist/components/TabSelect/ui/TabSelect.js +1 -1
  34. package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
  35. package/dist/components/Tag/ui/Tag.js +1 -1
  36. package/dist/components/Text/ui/Text.js +1 -1
  37. package/dist/components/TextArea/TextArea.js +1 -1
  38. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  39. package/dist/{index-BJwl9stn.js → index-3E04UaC2.js} +784 -785
  40. package/dist/{index-YnD2EP-S.js → index-B2JRaoNz.js} +5 -0
  41. package/dist/index-CBdtKu-u.js +891 -0
  42. package/dist/layout/components/Header/Header.js +1 -1
  43. package/dist/layout/components/Menu.js +4 -107
  44. package/dist/stone-kit.css +1 -1
  45. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
  46. package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
  47. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  48. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  49. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  50. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  51. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  52. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
  53. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
  54. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  55. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  56. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  57. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  58. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  59. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  60. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  61. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  62. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
  63. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  64. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  65. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  66. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
  67. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  68. package/dist/{useLotCard-CYcRSogE.js → useLotCard-DG9doKCX.js} +1 -1
  69. package/dist/useSortSelect-B8HOGdOt.js +79 -0
  70. package/package.json +1 -1
  71. package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
  72. package/dist/useSortSelect-Cy3od4ig.js +0 -80
@@ -1,4 +1,4 @@
1
- import { l as r } from "../../../../index-BJwl9stn.js";
1
+ import { l as r } from "../../../../index-3E04UaC2.js";
2
2
  import { RoundButton as t } from "../../../../components/RoundButton/ui/RoundButton.js";
3
3
  const n = {
4
4
  title: "shared/ui/RoundButton",
@@ -1,4 +1,4 @@
1
- import { l as e } from "../../../../index-BJwl9stn.js";
1
+ import { l as e } from "../../../../index-3E04UaC2.js";
2
2
  import { Select as l } from "../../../../components/Select/ui/Select.js";
3
3
  const t = [
4
4
  { value: "1", label: "Option 1" },
@@ -1,4 +1,4 @@
1
- import { l as t } from "../../../../index-BJwl9stn.js";
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-BJwl9stn.js";
1
+ import { l as e } from "../../../../index-3E04UaC2.js";
2
2
  import { SortSelect as a } from "../../../../components/SortSelect/ui/SortSelect.js";
3
3
  const t = [
4
4
  { value: "price-asc", label: "Price: Low to High" },
@@ -1,4 +1,4 @@
1
- import { l as e } from "../../../../index-BJwl9stn.js";
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,4 +1,4 @@
1
- import { l as e } from "../../../../index-BJwl9stn.js";
1
+ import { l as e } from "../../../../index-3E04UaC2.js";
2
2
  import { Switcher as a } from "../../../../components/Switcher/ui/Switcher.js";
3
3
  const l = {
4
4
  title: "shared/ui/Switcher",
@@ -1,4 +1,4 @@
1
- import { l as a } from "../../../../index-BJwl9stn.js";
1
+ import { l as a } from "../../../../index-3E04UaC2.js";
2
2
  import { TabSelect as e } from "../../../../components/TabSelect/ui/TabSelect.js";
3
3
  const t = [
4
4
  { value: "tab1", label: "Tab 1" },
@@ -1,4 +1,4 @@
1
- import { l as a } from "../../../../index-BJwl9stn.js";
1
+ import { l as a } from "../../../../index-3E04UaC2.js";
2
2
  import { TabSwitcher as e } from "../../../../components/TabSwitcher/ui/TabSwitcher.js";
3
3
  const t = [
4
4
  { value: "tab1", label: "Overview" },
@@ -1,4 +1,4 @@
1
- import { l as o } from "../../../../index-BJwl9stn.js";
1
+ import { l as o } from "../../../../index-3E04UaC2.js";
2
2
  import { ZoomControls as m } from "../../../../components/ZoomControls/ui/ZoomControls.js";
3
3
  const a = {
4
4
  title: "shared/ui/ZoomControls",
@@ -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-YnD2EP-S.js";
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
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.1029",
5
+ "version": "0.0.1031",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",