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.
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 +117 -97
  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,494 +0,0 @@
1
- import { jsxs as j, jsx as w } from "react/jsx-runtime";
2
- import * as u from "react";
3
- import "react-dom";
4
- import { c as $, l as ee, b as te, N as D, s as S, w as X, u as ne, d as re, e as W, f as P, g as I, D as ae, i as N, m as z, h as oe, j as ie, k as le, n as se } from "./index-CBdtKu-u.js";
5
- import { NewIcon as ce } from "./components/NewIcon/ui/NewIcon.js";
6
- /**
7
- * React Router DOM v6.30.1
8
- *
9
- * Copyright (c) Remix Software Inc.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE.md file in the root directory of this source tree.
13
- *
14
- * @license MIT
15
- */
16
- function x() {
17
- return x = Object.assign ? Object.assign.bind() : function(e) {
18
- for (var n = 1; n < arguments.length; n++) {
19
- var r = arguments[n];
20
- for (var a in r)
21
- Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
22
- }
23
- return e;
24
- }, x.apply(this, arguments);
25
- }
26
- function M(e, n) {
27
- if (e == null) return {};
28
- var r = {}, a = Object.keys(e), t, o;
29
- for (o = 0; o < a.length; o++)
30
- t = a[o], !(n.indexOf(t) >= 0) && (r[t] = e[t]);
31
- return r;
32
- }
33
- const L = "get", _ = "application/x-www-form-urlencoded";
34
- function F(e) {
35
- return e != null && typeof e.tagName == "string";
36
- }
37
- function ue(e) {
38
- return F(e) && e.tagName.toLowerCase() === "button";
39
- }
40
- function fe(e) {
41
- return F(e) && e.tagName.toLowerCase() === "form";
42
- }
43
- function me(e) {
44
- return F(e) && e.tagName.toLowerCase() === "input";
45
- }
46
- function de(e) {
47
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
48
- }
49
- function pe(e, n) {
50
- return e.button === 0 && // Ignore everything but left clicks
51
- (!n || n === "_self") && // Let browser handle "target=_blank" etc.
52
- !de(e);
53
- }
54
- let T = null;
55
- function he() {
56
- if (T === null)
57
- try {
58
- new FormData(
59
- document.createElement("form"),
60
- // @ts-expect-error if FormData supports the submitter parameter, this will throw
61
- 0
62
- ), T = !1;
63
- } catch {
64
- T = !0;
65
- }
66
- return T;
67
- }
68
- const ve = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
69
- function U(e) {
70
- return e != null && !ve.has(e) ? (process.env.NODE_ENV !== "production" && X(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + _ + '"')), null) : e;
71
- }
72
- function we(e, n) {
73
- let r, a, t, o, i;
74
- if (fe(e)) {
75
- let s = e.getAttribute("action");
76
- a = s ? S(s, n) : null, r = e.getAttribute("method") || L, t = U(e.getAttribute("enctype")) || _, o = new FormData(e);
77
- } else if (ue(e) || me(e) && (e.type === "submit" || e.type === "image")) {
78
- let s = e.form;
79
- if (s == null)
80
- throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
81
- let c = e.getAttribute("formaction") || s.getAttribute("action");
82
- if (a = c ? S(c, n) : null, r = e.getAttribute("formmethod") || s.getAttribute("method") || L, t = U(e.getAttribute("formenctype")) || U(s.getAttribute("enctype")) || _, o = new FormData(s, e), !he()) {
83
- let {
84
- name: l,
85
- type: f,
86
- value: m
87
- } = e;
88
- if (f === "image") {
89
- let v = l ? l + "." : "";
90
- o.append(v + "x", "0"), o.append(v + "y", "0");
91
- } else l && o.append(l, m);
92
- }
93
- } else {
94
- if (F(e))
95
- throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
96
- r = L, a = null, t = _, i = e;
97
- }
98
- return o && t === "text/plain" && (i = o, o = void 0), {
99
- action: a,
100
- method: r.toLowerCase(),
101
- encType: t,
102
- formData: o,
103
- body: i
104
- };
105
- }
106
- const ye = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], be = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], ge = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], Ee = "6";
107
- try {
108
- window.__reactRouterVersion = Ee;
109
- } catch {
110
- }
111
- const Y = /* @__PURE__ */ u.createContext({
112
- isTransitioning: !1
113
- });
114
- process.env.NODE_ENV !== "production" && (Y.displayName = "ViewTransition");
115
- const Se = /* @__PURE__ */ u.createContext(/* @__PURE__ */ new Map());
116
- process.env.NODE_ENV !== "production" && (Se.displayName = "Fetchers");
117
- const Ne = "startTransition", q = u[Ne];
118
- function Ke(e) {
119
- let {
120
- basename: n,
121
- children: r,
122
- future: a,
123
- window: t
124
- } = e, o = u.useRef();
125
- o.current == null && (o.current = $({
126
- window: t,
127
- v5Compat: !0
128
- }));
129
- let i = o.current, [s, c] = u.useState({
130
- action: i.action,
131
- location: i.location
132
- }), {
133
- v7_startTransition: l
134
- } = a || {}, f = u.useCallback((m) => {
135
- l && q ? q(() => c(m)) : c(m);
136
- }, [c, l]);
137
- return u.useLayoutEffect(() => i.listen(f), [i, f]), u.useEffect(() => ee(a), [a]), /* @__PURE__ */ u.createElement(te, {
138
- basename: n,
139
- children: r,
140
- location: s.location,
141
- navigationType: s.action,
142
- navigator: i,
143
- future: a
144
- });
145
- }
146
- process.env.NODE_ENV;
147
- const xe = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ce = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, B = /* @__PURE__ */ u.forwardRef(function(n, r) {
148
- let {
149
- onClick: a,
150
- relative: t,
151
- reloadDocument: o,
152
- replace: i,
153
- state: s,
154
- target: c,
155
- to: l,
156
- preventScrollReset: f,
157
- viewTransition: m
158
- } = n, v = M(n, ye), {
159
- basename: C
160
- } = u.useContext(D), y, b = !1;
161
- if (typeof l == "string" && Ce.test(l) && (y = l, xe))
162
- try {
163
- let h = new URL(window.location.href), p = l.startsWith("//") ? new URL(h.protocol + l) : new URL(l), R = S(p.pathname, C);
164
- p.origin === h.origin && R != null ? l = R + p.search + p.hash : b = !0;
165
- } catch {
166
- process.env.NODE_ENV !== "production" && X(!1, '<Link to="' + l + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
167
- }
168
- let g = ne(l, {
169
- relative: t
170
- }), E = _e(l, {
171
- replace: i,
172
- state: s,
173
- target: c,
174
- preventScrollReset: f,
175
- relative: t,
176
- viewTransition: m
177
- });
178
- function d(h) {
179
- a && a(h), h.defaultPrevented || E(h);
180
- }
181
- return (
182
- // eslint-disable-next-line jsx-a11y/anchor-has-content
183
- /* @__PURE__ */ u.createElement("a", x({}, v, {
184
- href: y || g,
185
- onClick: b || o ? a : d,
186
- ref: r,
187
- target: c
188
- }))
189
- );
190
- });
191
- process.env.NODE_ENV !== "production" && (B.displayName = "Link");
192
- const Re = /* @__PURE__ */ u.forwardRef(function(n, r) {
193
- let {
194
- "aria-current": a = "page",
195
- caseSensitive: t = !1,
196
- className: o = "",
197
- end: i = !1,
198
- style: s,
199
- to: c,
200
- viewTransition: l,
201
- children: f
202
- } = n, m = M(n, be), v = P(c, {
203
- relative: m.relative
204
- }), C = W(), y = u.useContext(ae), {
205
- navigator: b,
206
- basename: g
207
- } = u.useContext(D), E = y != null && // Conditional usage is OK here because the usage of a data router is static
208
- // eslint-disable-next-line react-hooks/rules-of-hooks
209
- Ve(v) && l === !0, d = b.encodeLocation ? b.encodeLocation(v).pathname : v.pathname, h = C.pathname, p = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
210
- t || (h = h.toLowerCase(), p = p ? p.toLowerCase() : null, d = d.toLowerCase()), p && g && (p = S(p, g) || p);
211
- const R = d !== "/" && d.endsWith("/") ? d.length - 1 : d.length;
212
- let O = h === d || !i && h.startsWith(d) && h.charAt(R) === "/", K = p != null && (p === d || !i && p.startsWith(d) && p.charAt(d.length) === "/"), V = {
213
- isActive: O,
214
- isPending: K,
215
- isTransitioning: E
216
- }, Q = O ? a : void 0, A;
217
- typeof o == "function" ? A = o(V) : A = [o, O ? "active" : null, K ? "pending" : null, E ? "transitioning" : null].filter(Boolean).join(" ");
218
- let Z = typeof s == "function" ? s(V) : s;
219
- return /* @__PURE__ */ u.createElement(B, x({}, m, {
220
- "aria-current": Q,
221
- className: A,
222
- ref: r,
223
- style: Z,
224
- to: c,
225
- viewTransition: l
226
- }), typeof f == "function" ? f(V) : f);
227
- });
228
- process.env.NODE_ENV !== "production" && (Re.displayName = "NavLink");
229
- const Te = /* @__PURE__ */ u.forwardRef((e, n) => {
230
- let {
231
- fetcherKey: r,
232
- navigate: a,
233
- reloadDocument: t,
234
- replace: o,
235
- state: i,
236
- method: s = L,
237
- action: c,
238
- onSubmit: l,
239
- relative: f,
240
- preventScrollReset: m,
241
- viewTransition: v
242
- } = e, C = M(e, ge), y = Fe(), b = Oe(c, {
243
- relative: f
244
- }), g = s.toLowerCase() === "get" ? "get" : "post", E = (d) => {
245
- if (l && l(d), d.defaultPrevented) return;
246
- d.preventDefault();
247
- let h = d.nativeEvent.submitter, p = h?.getAttribute("formmethod") || s;
248
- y(h || d.currentTarget, {
249
- fetcherKey: r,
250
- method: p,
251
- navigate: a,
252
- replace: o,
253
- state: i,
254
- relative: f,
255
- preventScrollReset: m,
256
- viewTransition: v
257
- });
258
- };
259
- return /* @__PURE__ */ u.createElement("form", x({
260
- ref: n,
261
- method: g,
262
- action: b,
263
- onSubmit: t ? l : E
264
- }, C));
265
- });
266
- process.env.NODE_ENV !== "production" && (Te.displayName = "Form");
267
- process.env.NODE_ENV;
268
- var k;
269
- (function(e) {
270
- e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
271
- })(k || (k = {}));
272
- var H;
273
- (function(e) {
274
- e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
275
- })(H || (H = {}));
276
- function Le(e) {
277
- return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
278
- }
279
- function J(e) {
280
- let n = u.useContext(se);
281
- return n || (process.env.NODE_ENV !== "production" ? N(!1, Le(e)) : N(!1)), n;
282
- }
283
- function _e(e, n) {
284
- let {
285
- target: r,
286
- replace: a,
287
- state: t,
288
- preventScrollReset: o,
289
- relative: i,
290
- viewTransition: s
291
- } = n === void 0 ? {} : n, c = re(), l = W(), f = P(e, {
292
- relative: i
293
- });
294
- return u.useCallback((m) => {
295
- if (pe(m, r)) {
296
- m.preventDefault();
297
- let v = a !== void 0 ? a : I(l) === I(f);
298
- c(e, {
299
- replace: v,
300
- state: t,
301
- preventScrollReset: o,
302
- relative: i,
303
- viewTransition: s
304
- });
305
- }
306
- }, [l, c, f, a, t, r, e, o, i, s]);
307
- }
308
- function ke() {
309
- if (typeof document > "u")
310
- throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
311
- }
312
- let De = 0, Pe = () => "__" + String(++De) + "__";
313
- function Fe() {
314
- let {
315
- router: e
316
- } = J(k.UseSubmit), {
317
- basename: n
318
- } = u.useContext(D), r = oe();
319
- return u.useCallback(function(a, t) {
320
- t === void 0 && (t = {}), ke();
321
- let {
322
- action: o,
323
- method: i,
324
- encType: s,
325
- formData: c,
326
- body: l
327
- } = we(a, n);
328
- if (t.navigate === !1) {
329
- let f = t.fetcherKey || Pe();
330
- e.fetch(f, r, t.action || o, {
331
- preventScrollReset: t.preventScrollReset,
332
- formData: c,
333
- body: l,
334
- formMethod: t.method || i,
335
- formEncType: t.encType || s,
336
- flushSync: t.flushSync
337
- });
338
- } else
339
- e.navigate(t.action || o, {
340
- preventScrollReset: t.preventScrollReset,
341
- formData: c,
342
- body: l,
343
- formMethod: t.method || i,
344
- formEncType: t.encType || s,
345
- replace: t.replace,
346
- state: t.state,
347
- fromRouteId: r,
348
- flushSync: t.flushSync,
349
- viewTransition: t.viewTransition
350
- });
351
- }, [e, n, r]);
352
- }
353
- function Oe(e, n) {
354
- let {
355
- relative: r
356
- } = n === void 0 ? {} : n, {
357
- basename: a
358
- } = u.useContext(D), t = u.useContext(ie);
359
- t || (process.env.NODE_ENV !== "production" ? N(!1, "useFormAction must be used inside a RouteContext") : N(!1));
360
- let [o] = t.matches.slice(-1), i = x({}, P(e || ".", {
361
- relative: r
362
- })), s = W();
363
- if (e == null) {
364
- i.search = s.search;
365
- let c = new URLSearchParams(i.search), l = c.getAll("index");
366
- if (l.some((m) => m === "")) {
367
- c.delete("index"), l.filter((v) => v).forEach((v) => c.append("index", v));
368
- let m = c.toString();
369
- i.search = m ? "?" + m : "";
370
- }
371
- }
372
- return (!e || e === ".") && o.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (i.pathname = i.pathname === "/" ? a : le([a, i.pathname])), I(i);
373
- }
374
- function Ve(e, n) {
375
- n === void 0 && (n = {});
376
- let r = u.useContext(Y);
377
- r == null && (process.env.NODE_ENV !== "production" ? N(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : N(!1));
378
- let {
379
- basename: a
380
- } = J(k.useViewTransitionState), t = P(e, {
381
- relative: n.relative
382
- });
383
- if (!r.isTransitioning)
384
- return !1;
385
- let o = S(r.currentLocation.pathname, a) || r.currentLocation.pathname, i = S(r.nextLocation.pathname, a) || r.nextLocation.pathname;
386
- return z(t.pathname, i) != null || z(t.pathname, o) != null;
387
- }
388
- const Ae = "_root_9577c_1", Ue = "_linkWrap_9577c_8", G = {
389
- root: Ae,
390
- linkWrap: Ue
391
- }, je = () => {
392
- const e = ({ to: n, title: r }) => /* @__PURE__ */ j(
393
- B,
394
- {
395
- to: n,
396
- className: G.linkWrap,
397
- children: [
398
- r,
399
- /* @__PURE__ */ w(
400
- ce,
401
- {
402
- size: "24",
403
- name: "play2",
404
- deg: "90",
405
- color: "white"
406
- }
407
- )
408
- ]
409
- }
410
- );
411
- return /* @__PURE__ */ j("div", { className: G.root, children: [
412
- /* @__PURE__ */ w(
413
- e,
414
- {
415
- to: "/buttons",
416
- title: "КНОПКИ"
417
- }
418
- ),
419
- /* @__PURE__ */ w(
420
- e,
421
- {
422
- to: "/modals",
423
- title: "МОДАЛКИ"
424
- }
425
- ),
426
- /* @__PURE__ */ w(
427
- e,
428
- {
429
- to: "/tabs",
430
- title: "ТАБЫ"
431
- }
432
- ),
433
- /* @__PURE__ */ w(
434
- e,
435
- {
436
- to: "/icons",
437
- title: "ИКОНКИ"
438
- }
439
- ),
440
- /* @__PURE__ */ w(
441
- e,
442
- {
443
- to: "/lots",
444
- title: "ЛОТЫ"
445
- }
446
- ),
447
- /* @__PURE__ */ w(
448
- e,
449
- {
450
- to: "/tags",
451
- title: "ТЭГИ"
452
- }
453
- ),
454
- /* @__PURE__ */ w(
455
- e,
456
- {
457
- to: "/select",
458
- title: "СЕЛЕКТ"
459
- }
460
- ),
461
- /* @__PURE__ */ w(
462
- e,
463
- {
464
- to: "/forms",
465
- title: "ФОРМЫ"
466
- }
467
- ),
468
- /* @__PURE__ */ w(
469
- e,
470
- {
471
- to: "/logo",
472
- title: "ЛОГО"
473
- }
474
- ),
475
- /* @__PURE__ */ w(
476
- e,
477
- {
478
- to: "/input",
479
- title: "ИНПУТЫ"
480
- }
481
- ),
482
- /* @__PURE__ */ w(
483
- e,
484
- {
485
- to: "/checkbox",
486
- title: "ЧЕКБОКСЫ"
487
- }
488
- )
489
- ] });
490
- };
491
- export {
492
- Ke as B,
493
- je as M
494
- };
@@ -1,87 +0,0 @@
1
- import { jsxs as O, jsx as n } from "react/jsx-runtime";
2
- import { c as g } from "./index-B2JRaoNz.js";
3
- import { NewIcon as m } from "./components/NewIcon/ui/NewIcon.js";
4
- const C = "_multiSelectWrapper_1vjmo_1", b = "_selectedOptions_1vjmo_8", h = "_selectedText_1vjmo_26", f = "_selectedOptionsBtn_1vjmo_34", k = "_selectedOptionsOpened_1vjmo_60", y = "_selectedOptionsNotEmpty_1vjmo_64", D = "_selectOptionsDisabled_1vjmo_69", x = "_optionsOuterContainer_1vjmo_76", S = "_optionsList_1vjmo_89", B = "_lastList_1vjmo_118", L = "_listRight_1vjmo_123", N = "_inputWrapper_1vjmo_127", W = "_option_1vjmo_76", A = "_category_1vjmo_149", w = "_leftSide_1vjmo_155", E = "_optionCategory_1vjmo_160", R = "_optionDisabled_1vjmo_166", T = "_optionClickable_1vjmo_170", U = "_icon_1vjmo_174", $ = "_iconArrow_1vjmo_180", q = "_iconBtn_1vjmo_186", t = {
5
- multiSelectWrapper: C,
6
- selectedOptions: b,
7
- selectedText: h,
8
- selectedOptionsBtn: f,
9
- "small-size": "_small-size_1vjmo_39",
10
- "medium-size": "_medium-size_1vjmo_46",
11
- "large-size": "_large-size_1vjmo_53",
12
- selectedOptionsOpened: k,
13
- selectedOptionsNotEmpty: y,
14
- selectOptionsDisabled: D,
15
- optionsOuterContainer: x,
16
- optionsList: S,
17
- lastList: B,
18
- listRight: L,
19
- inputWrapper: N,
20
- option: W,
21
- category: A,
22
- leftSide: w,
23
- optionCategory: E,
24
- optionDisabled: R,
25
- optionClickable: T,
26
- icon: U,
27
- iconArrow: $,
28
- iconBtn: q,
29
- "small-size_m": "_small-size_m_1vjmo_199",
30
- "medium-size_m": "_medium-size_m_1vjmo_205",
31
- "large-size_m": "_large-size_m_1vjmo_211",
32
- "small-size_l": "_small-size_l_1vjmo_226",
33
- "medium-size_l": "_medium-size_l_1vjmo_232",
34
- "large-size_l": "_large-size_l_1vjmo_238"
35
- }, F = g.bind(t), J = ({
36
- option: e,
37
- selectedOptions: a,
38
- disabledOptions: r,
39
- clickableOptions: o,
40
- handleOptionClick: p,
41
- isOptionCategory: s,
42
- sizeIcon: l,
43
- dataTestId: d,
44
- isDisabledNotClickable: v,
45
- addClassName: j = ""
46
- }) => {
47
- const u = o ? o.includes(`${e.value}`) : !0, z = e.value === "selectAll", i = a.some((_) => _.value === e.value), c = () => v && o ? !o.includes(`${e.value}`) : r.some((_) => _.value === e.value);
48
- return /* @__PURE__ */ O(
49
- "div",
50
- {
51
- className: F(
52
- t.option,
53
- {
54
- [t.optionDisabled]: c(),
55
- [t.optionCategory]: s,
56
- [t.optionClickable]: u || z
57
- },
58
- j
59
- ),
60
- "data-testid": d,
61
- onClick: () => {
62
- c() && !i || p(e);
63
- },
64
- children: [
65
- s && /* @__PURE__ */ n(
66
- m,
67
- {
68
- size: l ?? "20",
69
- name: i ? "selectChecked" : "selectUnchecked"
70
- }
71
- ),
72
- /* @__PURE__ */ n("div", { children: e.label }),
73
- !s && /* @__PURE__ */ n(
74
- m,
75
- {
76
- size: l ?? "20",
77
- name: i ? "selectChecked" : "selectUnchecked"
78
- }
79
- )
80
- ]
81
- }
82
- );
83
- };
84
- export {
85
- J as O,
86
- t as s
87
- };