stone-kit 0.0.1032 → 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.
Files changed (91) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/Option-D-8xnCui.js +94 -0
  3. package/dist/Router.js +1 -1
  4. package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
  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.d.ts +4 -0
  8. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +20 -19
  9. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
  10. package/dist/components/CommercialLotCard/CommercialLotCard.js +62 -41
  11. package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
  12. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
  13. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +2 -0
  14. package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
  15. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -1
  16. package/dist/components/FieldInput/ui/FieldInput.js +21 -12
  17. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
  18. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
  19. package/dist/components/FilterWithSave/ui/FilterWithSave.js +2 -7
  20. package/dist/components/Flex/ui/Flex.js +1 -1
  21. package/dist/components/FormModal/ui/ModalForm.d.ts +10 -1
  22. package/dist/components/FormModal/ui/ModalForm.js +803 -719
  23. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  24. package/dist/components/Input/ui/Input.js +1 -22
  25. package/dist/components/Logo/ui/Logo.js +1 -1
  26. package/dist/components/LotCard/hooks/useLotCard.js +2 -2
  27. package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
  28. package/dist/components/LotCard/ui/LotCard.js +114 -94
  29. package/dist/components/LotCard/ui/LotCard.types.d.ts +2 -0
  30. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  31. package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
  32. package/dist/components/MetroTag/ui/MetroTag.js +1 -1
  33. package/dist/components/NewIcon/ui/NewIcon.js +119 -114
  34. package/dist/components/RoundButton/ui/RoundButton.js +1 -1
  35. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
  36. package/dist/components/Select/ui/Category.js +2 -2
  37. package/dist/components/Select/ui/Option.d.ts +2 -1
  38. package/dist/components/Select/ui/Option.js +2 -2
  39. package/dist/components/Select/ui/Select.d.ts +1 -1
  40. package/dist/components/Select/ui/Select.js +88 -82
  41. package/dist/components/Select/ui/Select.types.d.ts +5 -0
  42. package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
  43. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  44. package/dist/components/SortSelect/ui/SortSelect.js +2 -2
  45. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
  46. package/dist/components/SummarySelect/ui/SummarySelect.js +60 -57
  47. package/dist/components/Switcher/ui/Switcher.js +1 -1
  48. package/dist/components/TabSelect/ui/TabSelect.js +1 -1
  49. package/dist/components/TabSwitcher/ui/TabSwitcher.js +91 -90
  50. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
  51. package/dist/components/Tag/ui/Tag.js +1 -1
  52. package/dist/components/Text/ui/Text.js +1 -1
  53. package/dist/components/TextArea/TextArea.js +1 -1
  54. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  55. package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
  56. package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
  57. package/dist/layout/components/Header/Header.js +1 -1
  58. package/dist/layout/components/Menu.js +107 -4
  59. package/dist/pages/FormsPage/FormsPage.js +1 -0
  60. package/dist/pages/TabsPage/TabsPage.js +56 -42
  61. package/dist/stone-kit.css +1 -1
  62. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
  63. package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
  64. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  65. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  66. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  67. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  68. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  69. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
  70. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
  71. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  72. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  73. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  74. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  75. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  76. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  77. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  78. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  79. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
  80. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  81. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  82. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  83. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
  84. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  85. package/dist/useLotCard-I7_rgnqj.js +187 -0
  86. package/dist/{useSortSelect-B8HOGdOt.js → useSortSelect-IeonkD5d.js} +1 -1
  87. package/package.json +5 -5
  88. package/dist/Menu-CdJTzN7T.js +0 -494
  89. package/dist/Option-rFBMQAPk.js +0 -87
  90. package/dist/index-CBdtKu-u.js +0 -891
  91. package/dist/useLotCard-DG9doKCX.js +0 -186
@@ -1,112 +1,113 @@
1
- import { jsx as i, jsxs as W } from "react/jsx-runtime";
2
- import { c as $ } from "../../../index-B2JRaoNz.js";
3
- import { useClientWidth as D } from "../../../shared/useClientWidth.js";
4
- import { Text as M } from "../../Text/ui/Text.js";
5
- const j = "_root_1t61b_1", G = "_text_1t61b_18", k = "_textMini_1t61b_26", v = "_rootCol_1t61b_32", O = "_item_1t61b_38", A = "_whiteRow_1t61b_57", q = "_firstItem_1t61b_68", B = "_lastItem_1t61b_72", E = "_whiteRowGrayLabel_1t61b_103", F = "_labelItem_1t61b_118", H = "_apart_1t61b_147", J = "_isLong_1t61b_147", K = "_autoWidth_1t61b_162", P = "_mini_1t61b_176", Q = "_isDisabled_1t61b_184", U = "_grayRow_1t61b_208", t = {
6
- root: j,
7
- text: G,
8
- textMini: k,
9
- rootCol: v,
10
- item: O,
11
- whiteRow: A,
12
- firstItem: q,
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
- apart: H,
17
- isLong: J,
18
- autoWidth: K,
19
- mini: P,
20
- isDisabled: Q,
21
- grayRow: U,
22
- "tiny-size": "_tiny-size_1t61b_236",
23
- "small-size": "_small-size_1t61b_241",
24
- "medium-size": "_medium-size_1t61b_246",
25
- "large-size": "_large-size_1t61b_251",
26
- "text-tiny-size": "_text-tiny-size_1t61b_256",
27
- "text-small-size": "_text-small-size_1t61b_262",
28
- "text-medium-size": "_text-medium-size_1t61b_267",
29
- "text-large-size": "_text-large-size_1t61b_272",
30
- "small-size_m": "_small-size_m_1t61b_278",
31
- "medium-size_m": "_medium-size_m_1t61b_282",
32
- "large-size_m": "_large-size_m_1t61b_286",
33
- "text-small-size_m": "_text-small-size_m_1t61b_290",
34
- "text-medium-size_m": "_text-medium-size_m_1t61b_294",
35
- "text-large-size_m": "_text-large-size_m_1t61b_298",
36
- "small-size_l": "_small-size_l_1t61b_313",
37
- "medium-size_l": "_medium-size_l_1t61b_317",
38
- "large-size_l": "_large-size_l_1t61b_321",
39
- "text-small-size_l": "_text-small-size_l_1t61b_325",
40
- "text-medium-size_l": "_text-medium-size_l_1t61b_329",
41
- "text-large-size_l": "_text-large-size_l_1t61b_333"
42
- }, _ = $.bind(t), V = ({
43
- children: l,
44
- variant: a = "whiteRow",
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: s = "",
47
- col: e = !1
48
- }) => /* @__PURE__ */ i("div", { className: _(t.root, t[a], { [t.rootCol]: e, [t.apart]: m }, s), children: l }), g = (l) => {
49
- const { isTablet: a, isDesktop: m } = D(), {
50
- index: s,
51
- children: e,
52
- addItemClassName: w,
53
- addLabelClassname: u,
54
- addTextClass: I,
55
- size_s: n = "large",
56
- size_m: b,
57
- size_l: z,
58
- disabled: d = !1,
59
- itemsLength: f = 0,
60
- isLongOn: p = !0,
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: r,
64
+ width_l: n,
64
65
  mini: x = !1,
65
- dataTestId: y,
66
- ref: L,
67
- ...R
68
- } = l, h = (e?.toString().length ? e?.toString().length > 2 : !1) && p, T = (N, S) => N && o ? o : S && r ? r : c, C = !c && !o && !r && h;
69
- return /* @__PURE__ */ W("label", { className: _(t.labelItem, { [t.isLong]: h }, u), children: [
70
- /* @__PURE__ */ i(
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: L,
74
+ ref: y,
74
75
  type: "checkbox",
75
- ...R,
76
- disabled: d
76
+ ...L,
77
+ disabled: z
77
78
  }
78
79
  ),
79
- /* @__PURE__ */ i(
80
+ /* @__PURE__ */ s(
80
81
  "div",
81
82
  {
82
- style: { width: T(a, m) },
83
- "data-testid": y,
83
+ style: { width: R(l, m) },
84
+ "data-testid": p,
84
85
  className: _(
85
- t.item,
86
+ e.item,
86
87
  {
87
- [t.firstItem]: s === 0,
88
- [t.lastItem]: s === f - 1,
89
- [t.isDisabled]: d,
90
- [t.autoWidth]: C,
91
- [t.mini]: x
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
- t[`${n}-size`],
94
- t[`${b}-size_m`],
95
- t[`${z}-size_l`],
96
- w
94
+ e[`${h}-size`],
95
+ e[`${r}-size_m`],
96
+ e[`${d}-size_l`],
97
+ u
97
98
  ),
98
- children: /* @__PURE__ */ i(
99
- M,
99
+ children: /* @__PURE__ */ s(
100
+ D,
100
101
  {
101
102
  className: _(
102
- t.text,
103
- t[`text-${n}-size`],
104
- t[`text-${b}-size_m`],
105
- t[`text-${z}-size_l`],
106
- { [t.textMini]: x },
107
- I
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: e
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 et = Object.assign(V, {
118
+ const ie = Object.assign(X, {
118
119
  Item: g
119
120
  });
120
121
  export {
121
- et as TabSwitcher
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-B2JRaoNz.js";
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-B2JRaoNz.js";
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 { jsx as i } from "react/jsx-runtime";
2
- import { c as _ } from "../../index-B2JRaoNz.js";
2
+ import { c as _ } from "../../index-YnD2EP-S.js";
3
3
  const c = "_root_v6f19_12", t = {
4
4
  "auto-width": "_auto-width_v6f19_1",
5
5
  "full-width": "_full-width_v6f19_6",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
- import { c as u } from "../../../index-B2JRaoNz.js";
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",