stone-kit 0.0.1028 → 0.0.1030

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 (177) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/FilterWithSave-BWA01WwU.js +2476 -0
  3. package/dist/{Menu-CdJTzN7T.js → Menu-CeBSiTyP.js} +176 -157
  4. package/dist/{Option-rFBMQAPk.js → Option-DU8cvBnA.js} +1 -1
  5. package/dist/Router.js +1 -1
  6. package/dist/components/Button/ui/Button.d.ts +1 -0
  7. package/dist/components/Button/ui/Button.js +1 -1
  8. package/dist/components/Button/ui/Button.types.d.ts +1 -0
  9. package/dist/components/CheckBox/CheckBox.d.ts +1 -0
  10. package/dist/components/CheckBox/CheckBox.js +1 -1
  11. package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
  12. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
  13. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
  14. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
  16. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  17. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
  18. package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
  19. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
  20. package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
  22. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
  24. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  25. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
  26. package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
  27. package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
  28. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
  30. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  31. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
  32. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
  33. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -0
  35. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
  37. package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -328
  38. package/dist/components/Flex/ui/Flex.d.ts +1 -0
  39. package/dist/components/Flex/ui/Flex.js +1 -1
  40. package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
  41. package/dist/components/FormModal/ui/ModalForm.js +28 -1430
  42. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
  43. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  44. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
  45. package/dist/components/Input/ui/Input.d.ts +2 -1
  46. package/dist/components/Input/ui/Input.js +304 -234
  47. package/dist/components/Logo/ui/Logo.d.ts +1 -0
  48. package/dist/components/Logo/ui/Logo.js +6 -6
  49. package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
  50. package/dist/components/LotCard/hooks/useLotCard.js +24 -6
  51. package/dist/components/LotCard/index.js +2 -2
  52. package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
  53. package/dist/components/LotCard/ui/LotCard.js +10 -213
  54. package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
  55. package/dist/components/LotCard/utils/formatPrice.js +2 -1
  56. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
  57. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
  59. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  60. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
  61. package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
  62. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  63. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
  64. package/dist/components/Modal/ui/Modal.d.ts +1 -0
  65. package/dist/components/Modal/ui/Modal.js +37 -34
  66. package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
  67. package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
  68. package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
  69. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
  70. package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
  71. package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
  72. package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
  73. package/dist/components/NewIcon/ui/NewIcon.js +3 -3
  74. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
  75. package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
  76. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
  77. package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
  78. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  79. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
  80. package/dist/components/Select/model/selectMode.d.ts +1 -0
  81. package/dist/components/Select/model/selectMode.js +30 -30
  82. package/dist/components/Select/ui/Category.d.ts +1 -0
  83. package/dist/components/Select/ui/Category.js +3 -3
  84. package/dist/components/Select/ui/Option.d.ts +1 -0
  85. package/dist/components/Select/ui/Option.js +2 -2
  86. package/dist/components/Select/ui/Select.d.ts +1 -0
  87. package/dist/components/Select/ui/Select.js +115 -115
  88. package/dist/components/SliderNavigation/index.d.ts +1 -0
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
  90. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  91. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +2 -1
  92. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  93. package/dist/components/SortSelect/index.js +1 -1
  94. package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
  95. package/dist/components/SortSelect/ui/SortSelect.js +26 -108
  96. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
  97. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
  98. package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
  99. package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
  100. package/dist/components/Switcher/ui/Switcher.js +1 -1
  101. package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
  102. package/dist/components/TabSelect/ui/TabSelect.d.ts +13 -7
  103. package/dist/components/TabSelect/ui/TabSelect.js +42 -37
  104. package/dist/components/TabSwitcher/index.js +2 -2
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +5 -3
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -118
  107. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +2 -1
  108. package/dist/components/Tag/ui/Tag.d.ts +1 -0
  109. package/dist/components/Tag/ui/Tag.js +91 -91
  110. package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
  111. package/dist/components/Text/ui/Text.d.ts +1 -0
  112. package/dist/components/Text/ui/Text.js +1 -1
  113. package/dist/components/Text/ui/Text.types.d.ts +1 -0
  114. package/dist/components/TextArea/TextArea.d.ts +9 -0
  115. package/dist/components/TextArea/TextArea.js +18 -12
  116. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
  117. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
  118. package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
  119. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  120. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
  121. package/dist/{index-CBdtKu-u.js → index-DmANy9jd.js} +271 -272
  122. package/dist/{index-3E04UaC2.js → index-DvCs2JPX.js} +9629 -9529
  123. package/dist/index-rKuIKazb.js +45 -0
  124. package/dist/layout/Layout.d.ts +1 -0
  125. package/dist/layout/components/Header/Header.js +71 -48
  126. package/dist/layout/components/Menu.js +24 -2
  127. package/dist/main.js +65 -70
  128. package/dist/pages/ButtonsPage/Buttons.js +63 -57
  129. package/dist/pages/FormsPage/FormsPage.js +50 -26
  130. package/dist/pages/IconsPage/IconsPage.js +31 -9
  131. package/dist/pages/InputPage/InputPage.js +32 -10
  132. package/dist/pages/LogoPage/LogoPage.js +35 -13
  133. package/dist/pages/LotsPage/LotsPage.js +17 -18
  134. package/dist/pages/LotsPage/const.d.ts +1 -0
  135. package/dist/pages/ModalsPage/ModalPage.js +66 -46
  136. package/dist/pages/SelectPage/SelectPage.js +58 -58
  137. package/dist/pages/TabsPage/TabsPage.js +20 -19
  138. package/dist/pages/TagsPage/TagsPage.js +44 -23
  139. package/dist/shared/checkLargeOffice.d.ts +1 -0
  140. package/dist/shared/checkLargeOffice.js +1 -1
  141. package/dist/shared/mlnRound.js +2 -1
  142. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
  143. package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
  144. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  145. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  146. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  147. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  148. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  149. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
  150. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
  151. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  152. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  153. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  154. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  155. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  156. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  157. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  158. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  159. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
  160. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  161. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  162. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  163. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
  164. package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
  165. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  166. package/dist/style.css +1 -0
  167. package/dist/useSortSelect-BTCEVMVn.js +80 -0
  168. package/package.json +22 -31
  169. package/dist/ButtonState.module-DtW3aevR.js +0 -8
  170. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  171. package/dist/components/TextArea/TextArea.types.js +0 -1
  172. package/dist/index-B2JRaoNz.js +0 -48
  173. package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -6
  174. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
  175. package/dist/stone-kit.css +0 -1
  176. package/dist/useLotCard-DG9doKCX.js +0 -186
  177. package/dist/useSortSelect-C72ddcYI.js +0 -80
@@ -1,4 +1,5 @@
1
1
  import { TOption } from '../../Select/ui/Select.types.ts';
2
+
2
3
  export interface Option {
3
4
  value: string | number;
4
5
  label: string;
@@ -1,4 +1,5 @@
1
1
  import { MultiSelectProps } from '../../Select/ui/Select.types';
2
+
2
3
  interface ISummarySelectProps extends MultiSelectProps {
3
4
  label?: string;
4
5
  isShowReset?: boolean;
@@ -1,65 +1,68 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { Select as C } from "../../Select/ui/Select.js";
3
- import { NewIcon as m } from "../../NewIcon/ui/NewIcon.js";
4
- const O = "_root_156r8_1", N = "_nameWrapper_156r8_8", p = "_clearBtn_156r8_18", f = "_summaryList_156r8_33", V = "_summaryOption_156r8_40", S = "_categoryOption_156r8_62", B = "_summaryCategory_156r8_71", L = "_headerCategory_156r8_81", b = "_categoryTitle_156r8_87", k = "_categoryOptions_156r8_95", t = {
5
- root: O,
6
- nameWrapper: N,
7
- clearBtn: p,
8
- summaryList: f,
9
- summaryOption: V,
10
- categoryOption: S,
11
- summaryCategory: B,
12
- headerCategory: L,
13
- categoryTitle: b,
14
- categoryOptions: k
15
- }, z = ({
16
- label: y = "",
17
- isShowReset: _,
18
- isShowCategoryDelete: d = !1,
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import { NewIcon as d } from "../../NewIcon/ui/NewIcon.js";
3
+ import { Select as N } from "../../Select/ui/Select.js";
4
+ const p = "_root_156r8_1", f = "_nameWrapper_156r8_8", V = "_clearBtn_156r8_18", S = "_summaryList_156r8_33", B = "_summaryOption_156r8_40", b = "_categoryOption_156r8_62", k = "_summaryCategory_156r8_71", T = "_headerCategory_156r8_81", W = "_categoryTitle_156r8_87", x = "_categoryOptions_156r8_95", t = {
5
+ root: p,
6
+ nameWrapper: f,
7
+ clearBtn: V,
8
+ summaryList: S,
9
+ summaryOption: B,
10
+ categoryOption: b,
11
+ summaryCategory: k,
12
+ headerCategory: T,
13
+ categoryTitle: W,
14
+ categoryOptions: x
15
+ }, $ = ({
16
+ label: g = "",
17
+ isShowReset: h,
18
+ isShowCategoryDelete: u = !1,
19
19
  ...a
20
20
  }) => {
21
- const s = (e) => {
21
+ var _;
22
+ const c = (e) => {
22
23
  a.onChange && a.onChange(e);
23
- }, u = (e) => {
24
- const l = a.selectedValues?.filter((n) => n.value !== e) || [];
25
- s(l);
26
- }, g = () => {
27
- s([]);
28
- }, h = (e) => {
29
- s(
30
- a.selectedValues?.filter((l) => l.value !== e.value).filter(
31
- (l) => !e.options.some((n) => n.value === l.value)
32
- ) ?? []
24
+ }, y = (e) => {
25
+ var r;
26
+ const o = ((r = a.selectedValues) == null ? void 0 : r.filter((n) => n.value !== e)) || [];
27
+ c(o);
28
+ }, v = () => {
29
+ c([]);
30
+ }, C = (e) => {
31
+ var o;
32
+ c(
33
+ ((o = a.selectedValues) == null ? void 0 : o.filter((r) => r.value !== e.value).filter(
34
+ (r) => !e.options.some((n) => n.value === r.value)
35
+ )) ?? []
33
36
  );
34
- }, v = a.selectedValues?.filter((e) => "options" in e);
35
- return /* @__PURE__ */ o("div", { className: t.root, children: [
36
- /* @__PURE__ */ o("div", { className: t.nameWrapper, children: [
37
- /* @__PURE__ */ r("div", { children: y }),
38
- _ && /* @__PURE__ */ r(
37
+ }, m = (_ = a.selectedValues) == null ? void 0 : _.filter((e) => "options" in e);
38
+ return /* @__PURE__ */ s("div", { className: t.root, children: [
39
+ /* @__PURE__ */ s("div", { className: t.nameWrapper, children: [
40
+ /* @__PURE__ */ l("div", { children: g }),
41
+ h && /* @__PURE__ */ l(
39
42
  "div",
40
43
  {
41
44
  className: t.clearBtn,
42
- onClick: g,
45
+ onClick: v,
43
46
  children: "Очистить"
44
47
  }
45
48
  )
46
49
  ] }),
47
- /* @__PURE__ */ r(
48
- C,
50
+ /* @__PURE__ */ l(
51
+ N,
49
52
  {
50
53
  ...a,
51
- onChange: s
54
+ onChange: c
52
55
  }
53
56
  ),
54
- !d && a.mode === "options" && a.selectedValues && a.selectedValues.length > 0 && /* @__PURE__ */ r("div", { className: t.summaryList, children: a.selectedValues.map((e) => /* @__PURE__ */ o(
57
+ !u && a.mode === "options" && a.selectedValues && a.selectedValues.length > 0 && /* @__PURE__ */ l("div", { className: t.summaryList, children: a.selectedValues.map((e) => /* @__PURE__ */ s(
55
58
  "div",
56
59
  {
57
- onClick: () => u(e.value.toString()),
60
+ onClick: () => y(e.value.toString()),
58
61
  className: t.summaryOption,
59
62
  children: [
60
63
  e.label,
61
- /* @__PURE__ */ r(
62
- m,
64
+ /* @__PURE__ */ l(
65
+ d,
63
66
  {
64
67
  name: "close",
65
68
  size: "16"
@@ -69,22 +72,22 @@ const O = "_root_156r8_1", N = "_nameWrapper_156r8_8", p = "_clearBtn_156r8_18",
69
72
  },
70
73
  e.value
71
74
  )) }),
72
- !d && a.mode === "double" && v?.map((e, l) => {
73
- const n = e;
74
- return /* @__PURE__ */ o(
75
+ !u && a.mode === "double" && (m == null ? void 0 : m.map((e, o) => {
76
+ const r = e;
77
+ return /* @__PURE__ */ s(
75
78
  "div",
76
79
  {
77
80
  className: t.summaryCategory,
78
81
  children: [
79
- /* @__PURE__ */ o("div", { className: t.headerCategory, children: [
80
- /* @__PURE__ */ r("div", { className: t.categoryTitle, children: n.label }),
81
- /* @__PURE__ */ r(
82
+ /* @__PURE__ */ s("div", { className: t.headerCategory, children: [
83
+ /* @__PURE__ */ l("div", { className: t.categoryTitle, children: r.label }),
84
+ /* @__PURE__ */ l(
82
85
  "div",
83
86
  {
84
- onClick: () => h(e),
87
+ onClick: () => C(e),
85
88
  className: t.clearBtn,
86
- children: /* @__PURE__ */ r(
87
- m,
89
+ children: /* @__PURE__ */ l(
90
+ d,
88
91
  {
89
92
  name: "close",
90
93
  size: "16"
@@ -93,15 +96,18 @@ const O = "_root_156r8_1", N = "_nameWrapper_156r8_8", p = "_clearBtn_156r8_18",
93
96
  }
94
97
  )
95
98
  ] }),
96
- /* @__PURE__ */ r("div", { className: t.categoryOptions, children: n.options.filter((c) => a.selectedValues?.some((i) => c.value === i.value)).map((c, i) => /* @__PURE__ */ o(
99
+ /* @__PURE__ */ l("div", { className: t.categoryOptions, children: r.options.filter((n) => {
100
+ var i;
101
+ return (i = a.selectedValues) == null ? void 0 : i.some((O) => n.value === O.value);
102
+ }).map((n, i) => /* @__PURE__ */ s(
97
103
  "div",
98
104
  {
99
- onClick: () => u(c.value.toString()),
105
+ onClick: () => y(n.value.toString()),
100
106
  className: `${t.summaryOption} ${t.categoryOption}`,
101
107
  children: [
102
- c.label,
103
- /* @__PURE__ */ r(
104
- m,
108
+ n.label,
109
+ /* @__PURE__ */ l(
110
+ d,
105
111
  {
106
112
  name: "close",
107
113
  size: "16"
@@ -113,11 +119,11 @@ const O = "_root_156r8_1", N = "_nameWrapper_156r8_8", p = "_clearBtn_156r8_18",
113
119
  )) })
114
120
  ]
115
121
  },
116
- l
122
+ o
117
123
  );
118
- })
124
+ }))
119
125
  ] });
120
126
  };
121
127
  export {
122
- z as SummarySelect
128
+ $ as SummarySelect
123
129
  };
@@ -1,2 +1,3 @@
1
1
  import { ISwitcherProps } from './Switcher.types';
2
+
2
3
  export declare const Switcher: ({ children, isActive, onClick, isReverse, isBetween, dataTestId }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as p } from "react/jsx-runtime";
2
2
  import { useRef as _, useEffect as d } from "react";
3
- import { c as v } from "../../../index-B2JRaoNz.js";
3
+ import { c as v } from "../../../index-rKuIKazb.js";
4
4
  const h = "_switcherWrapper_1b1pd_29", b = "_switcherWrapperReverse_1b1pd_40", W = "_switcherWrapperBetween_1b1pd_44", l = "_swiper_1b1pd_48", m = "_swiperBackward_1b1pd_1", f = "_swiperActive_1b1pd_63", u = "_swiperForward_1b1pd_1", I = "_swiperInactive_1b1pd_68", P = "_swiperInitialize_1b1pd_73", B = "_swiperPoint_1b1pd_77", A = "_swiperPointActive_1b1pd_89", e = {
5
5
  switcherWrapper: h,
6
6
  switcherWrapperReverse: b,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface ISwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
2
3
  children?: React.ReactNode;
3
4
  isActive?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type TBtn = {
2
3
  isLong?: boolean;
3
4
  additionalClassName?: string;
@@ -7,21 +8,26 @@ type TBtn = {
7
8
  width_m?: string;
8
9
  width_l?: string;
9
10
  };
10
- type BaseInputProps = JSX.IntrinsicElements['input'] & TBtn;
11
+ type BaseInputProps = React.JSX.IntrinsicElements['input'] & TBtn;
11
12
  interface ITabSelect {
12
- children?: React.ReactNode | React.ReactNode[];
13
+ children?: React.ReactNode;
13
14
  variant?: SwitcherVariant;
14
15
  classname?: string;
15
16
  isRound?: boolean;
16
17
  }
17
18
  export declare const TAB_SELECT_VARIANTS: {
18
- whiteFill: string;
19
- whiteStroke: string;
20
- grayDesign: string;
21
- fullWhite: string;
19
+ readonly whiteFill: "whiteFill";
20
+ readonly whiteStroke: "whiteStroke";
21
+ readonly grayDesign: "grayDesign";
22
+ readonly fullWhite: "fullWhite";
22
23
  };
23
24
  export type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
24
25
  declare const TabSelectNamespace: (({ variant, classname, children }: ITabSelect) => import("react/jsx-runtime").JSX.Element) & {
25
- Item: import('react').ForwardRefExoticComponent<Omit<BaseInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
26
+ Item: {
27
+ (props: BaseInputProps & {
28
+ ref?: React.Ref<HTMLInputElement>;
29
+ }): import("react/jsx-runtime").JSX.Element;
30
+ displayName: string;
31
+ };
26
32
  };
27
33
  export { TabSelectNamespace as TabSelect };
@@ -1,59 +1,64 @@
1
- import { jsxs as N, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as T } from "react";
3
- import { c as k } from "../../../index-B2JRaoNz.js";
1
+ import { jsx as e, jsxs as N } from "react/jsx-runtime";
2
+ import { c as T } from "../../../index-rKuIKazb.js";
3
+ import { Text as k } from "../../Text/ui/Text.js";
4
4
  import { useClientWidth as y } from "../../../shared/useClientWidth.js";
5
- import { Text as z } from "../../Text/ui/Text.js";
6
- const W = "_root_pbslz_1", D = "_whiteFill_pbslz_29", F = "_text_pbslz_34", P = "_fullWhite_pbslz_48", C = "_whiteStroke_pbslz_67", I = "_withPadding_pbslz_105", j = "_grayDesign_pbslz_109", t = {
7
- root: W,
8
- whiteFill: D,
9
- text: F,
10
- fullWhite: P,
11
- whiteStroke: C,
12
- withPadding: I,
13
- grayDesign: j
14
- }, i = k.bind(t), O = {
5
+ const z = "_root_pbslz_1", W = "_whiteFill_pbslz_29", D = "_text_pbslz_34", F = "_fullWhite_pbslz_48", P = "_whiteStroke_pbslz_67", C = "_withPadding_pbslz_105", I = "_grayDesign_pbslz_109", t = {
6
+ root: z,
7
+ whiteFill: W,
8
+ text: D,
9
+ fullWhite: F,
10
+ whiteStroke: P,
11
+ withPadding: C,
12
+ grayDesign: I
13
+ }, i = T.bind(t), B = {
15
14
  whiteFill: "whiteFill",
16
15
  whiteStroke: "whiteStroke",
17
16
  grayDesign: "grayDesign",
18
17
  fullWhite: "fullWhite"
19
- }, A = ({ variant: s = "whiteFill", classname: l, children: a }) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], l), children: a }), r = T((s, l) => {
20
- const { isTablet: a, isDesktop: c } = y(), h = (S, x) => S && o ? o : x && n ? n : f, {
21
- children: d,
22
- className: _,
23
- additionalClassName: m,
24
- additionalLabelClass: w,
25
- //TODO предлогаю засунуть в жопу isLong
26
- isLong: b,
27
- checked: g,
28
- withPadding: p = !1,
29
- width: f,
18
+ }, L = ({
19
+ variant: s = "whiteFill",
20
+ classname: l,
21
+ children: a
22
+ }) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], l), children: a }), c = (s) => {
23
+ const { isTablet: l, isDesktop: a } = y(), {
24
+ children: r,
25
+ className: h,
26
+ additionalClassName: d,
27
+ additionalLabelClass: _,
28
+ isLong: m,
29
+ checked: w,
30
+ withPadding: g = !1,
31
+ width: b,
30
32
  width_m: o,
31
33
  width_l: n,
32
- ...u
33
- } = s;
34
- return /* @__PURE__ */ N("label", { className: i(t.item, w, { [t.withPadding]: p }), children: [
34
+ ref: p,
35
+ ...f
36
+ } = s, u = (S, x) => S && o ? o : x && n ? n : b;
37
+ return /* @__PURE__ */ N("label", { className: i(t.item, _, { [t.withPadding]: g }), children: [
35
38
  /* @__PURE__ */ e(
36
39
  "input",
37
40
  {
38
- ref: l,
41
+ ref: p,
39
42
  type: "checkbox",
40
- checked: g,
41
- ...u
43
+ checked: w,
44
+ ...f
42
45
  }
43
46
  ),
44
47
  /* @__PURE__ */ e(
45
48
  "div",
46
49
  {
47
- className: i(_, m, { isLong: b }),
48
- style: { width: h(a, c) },
49
- children: /* @__PURE__ */ e(z, { className: i(t.text), children: d })
50
+ className: i(h, d, { [t.isLong]: m }),
51
+ style: { width: u(l, a) },
52
+ children: /* @__PURE__ */ e(k, { className: i(t.text), children: r })
50
53
  }
51
54
  )
52
55
  ] });
56
+ };
57
+ c.displayName = "TabSelectItem";
58
+ const O = Object.assign(L, {
59
+ Item: c
53
60
  });
54
- r.displayName = "TabSelectItem";
55
- const V = Object.assign(A, { Item: r });
56
61
  export {
57
- O as TAB_SELECT_VARIANTS,
58
- V as TabSelect
62
+ B as TAB_SELECT_VARIANTS,
63
+ O as TabSelect
59
64
  };
@@ -1,4 +1,4 @@
1
- import { TabSwitcher as o } from "./ui/TabSwitcher.js";
1
+ import { T as e } from "../../FilterWithSave-BWA01WwU.js";
2
2
  export {
3
- o as TabSwitcher
3
+ e as TabSwitcher
4
4
  };
@@ -1,5 +1,7 @@
1
+ import { FC } from 'react';
1
2
  import { ITabSwitcherItem, TabSwitcherProps } from './TabSwitcher.types';
2
- declare const SwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
3
- Item: import('react').ForwardRefExoticComponent<ITabSwitcherItem & import('react').RefAttributes<HTMLInputElement>>;
3
+
4
+ declare const TabSwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
5
+ Item: FC<ITabSwitcherItem>;
4
6
  };
5
- export { SwitcherNamespace as TabSwitcher };
7
+ export { TabSwitcherNamespace as TabSwitcher };
@@ -1,120 +1,28 @@
1
- import { jsxs as W, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as $ } from "react";
3
- import { c as D } from "../../../index-B2JRaoNz.js";
4
- import { useClientWidth as M } from "../../../shared/useClientWidth.js";
5
- import { Text as j } from "../../Text/ui/Text.js";
6
- const G = "_root_1t61b_1", k = "_text_1t61b_18", v = "_textMini_1t61b_26", O = "_rootCol_1t61b_32", A = "_item_1t61b_38", q = "_whiteRow_1t61b_57", B = "_firstItem_1t61b_68", E = "_lastItem_1t61b_72", F = "_whiteRowGrayLabel_1t61b_103", H = "_labelItem_1t61b_118", J = "_apart_1t61b_147", K = "_isLong_1t61b_147", P = "_autoWidth_1t61b_162", Q = "_mini_1t61b_176", U = "_isDisabled_1t61b_184", V = "_grayRow_1t61b_208", t = {
7
- root: G,
8
- text: k,
9
- textMini: v,
10
- rootCol: O,
11
- item: A,
12
- whiteRow: q,
13
- firstItem: B,
14
- lastItem: E,
15
- whiteRowGrayLabel: F,
16
- labelItem: H,
17
- apart: J,
18
- isLong: K,
19
- autoWidth: P,
20
- mini: Q,
21
- isDisabled: U,
22
- grayRow: V,
23
- "tiny-size": "_tiny-size_1t61b_236",
24
- "small-size": "_small-size_1t61b_241",
25
- "medium-size": "_medium-size_1t61b_246",
26
- "large-size": "_large-size_1t61b_251",
27
- "text-tiny-size": "_text-tiny-size_1t61b_256",
28
- "text-small-size": "_text-small-size_1t61b_262",
29
- "text-medium-size": "_text-medium-size_1t61b_267",
30
- "text-large-size": "_text-large-size_1t61b_272",
31
- "small-size_m": "_small-size_m_1t61b_278",
32
- "medium-size_m": "_medium-size_m_1t61b_282",
33
- "large-size_m": "_large-size_m_1t61b_286",
34
- "text-small-size_m": "_text-small-size_m_1t61b_290",
35
- "text-medium-size_m": "_text-medium-size_m_1t61b_294",
36
- "text-large-size_m": "_text-large-size_m_1t61b_298",
37
- "small-size_l": "_small-size_l_1t61b_313",
38
- "medium-size_l": "_medium-size_l_1t61b_317",
39
- "large-size_l": "_large-size_l_1t61b_321",
40
- "text-small-size_l": "_text-small-size_l_1t61b_325",
41
- "text-medium-size_l": "_text-medium-size_l_1t61b_329",
42
- "text-large-size_l": "_text-large-size_l_1t61b_333"
43
- }, e = D.bind(t), X = ({
44
- children: _,
45
- variant: l = "whiteRow",
46
- isApart: a = !1,
47
- addClassName: m = "",
48
- col: s = !1
49
- }) => /* @__PURE__ */ i("div", { className: e(t.root, t[l], { [t.rootCol]: s, [t.apart]: a }, m), children: _ }), w = $((_, l) => {
50
- const { isTablet: a, isDesktop: m } = M(), {
51
- index: s,
52
- children: o,
53
- addItemClassName: u,
54
- addLabelClassname: f,
55
- addTextClass: I,
56
- size_s: b = "large",
57
- size_m: z,
58
- size_l: d,
59
- disabled: c = !1,
60
- itemsLength: p = 0,
61
- isLongOn: y = !0,
62
- width: x,
63
- width_m: r,
64
- width_l: n,
65
- mini: h = !1,
66
- dataTestId: L,
67
- ...R
68
- } = _, g = (o?.toString().length ? o?.toString().length > 2 : !1) && y, C = (T, S) => T && r ? r : S && n ? n : x, N = !x && !r && !n && g;
69
- return /* @__PURE__ */ W("label", { className: e(t.labelItem, { [t.isLong]: g }, f), children: [
70
- /* @__PURE__ */ i(
71
- "input",
72
- {
73
- ref: l,
74
- type: "checkbox",
75
- ...R,
76
- disabled: c
77
- }
78
- ),
79
- /* @__PURE__ */ i(
80
- "div",
81
- {
82
- style: { width: C(a, m) },
83
- "data-testid": L,
84
- className: e(
85
- e(
86
- t.item,
87
- { [t.firstItem]: s === 0 },
88
- { [t.lastItem]: s === p - 1 },
89
- { [t.isDisabled]: c },
90
- { [t.autoWidth]: N },
91
- t[`${b}-size`],
92
- t[`${z}-size_m`],
93
- t[`${d}-size_l`],
94
- { [t.mini]: h }
95
- ),
96
- u
97
- ),
98
- children: /* @__PURE__ */ i(
99
- j,
100
- {
101
- className: e(
102
- t.text,
103
- t[`text-${b}-size`],
104
- t[`text-${z}-size_m`],
105
- t[`text-${d}-size_l`],
106
- { [t.textMini]: h },
107
- I
108
- ),
109
- children: o
110
- }
111
- )
112
- }
113
- )
114
- ] });
115
- });
116
- w.displayName = "TabSwitcherItem";
117
- const it = Object.assign(X, { Item: w });
1
+ import "react/jsx-runtime";
2
+ import { T as y } from "../../../FilterWithSave-BWA01WwU.js";
3
+ import "../../Text/ui/Text.js";
4
+ import "../../../index-rKuIKazb.js";
5
+ import "../../Button/ui/Button.js";
6
+ import "../../mobileButton/ui/MobileButton.js";
7
+ import "../../NewIcon/ui/NewIcon.js";
8
+ import "../../DestinationTab/ui/DestinationTab.js";
9
+ import "../../RoundButton/ui/RoundButton.js";
10
+ import "../../Tag/ui/Tag.js";
11
+ import "../../Switcher/ui/Switcher.js";
12
+ import "../../Flex/ui/Flex.js";
13
+ import "../../Input/ui/Input.js";
14
+ import "react";
15
+ import "react-dom";
16
+ import "../../GroupedInput/ui/GroupedInputs.js";
17
+ import "../../MetroTag/ui/MetroTag.js";
18
+ import "../../Select/ui/Select.js";
19
+ import "../../../shared/useClientWidth.js";
20
+ import "../../SliderNavigation/ui/SliderNavigation.js";
21
+ import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
22
+ import "../../TabSelect/ui/TabSelect.js";
23
+ import "../../CheckBox/CheckBox.js";
24
+ import "../../CheckBoxNew/CheckBoxNew.js";
25
+ import "../../CheckboxSelect/ui/CheckboxSelect.js";
118
26
  export {
119
- it as TabSwitcher
27
+ y as TabSwitcher
120
28
  };
@@ -1,11 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  declare const TAB_SWITCHER_VARIANTS: {
3
4
  whiteRow: string;
4
5
  grayRow: string;
5
6
  whiteRowGrayLabel: string;
6
7
  };
7
8
  type TabSizes = 'medium' | 'small' | 'large' | 'tiny';
8
- export interface ITabSwitcherItem extends React.InputHTMLAttributes<HTMLInputElement> {
9
+ export interface ITabSwitcherItem extends React.ComponentPropsWithRef<'input'> {
9
10
  addItemClassName?: string;
10
11
  addTextClass?: string;
11
12
  addLabelClassname?: string;
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './Tag.types';
3
+
3
4
  export declare const Tag: ({ size, size_m, size_l, children, variant, width, additionalClass, fontWeight, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;