stone-kit 0.0.1028 → 0.0.1029

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 (82) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/{Option-rFBMQAPk.js → Option-CtwUzW8a.js} +1 -1
  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.js +1 -1
  8. package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
  9. package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
  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 +9 -14
  14. package/dist/components/Flex/ui/Flex.js +1 -1
  15. package/dist/components/FormModal/ui/ModalForm.js +656 -641
  16. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  17. package/dist/components/Input/ui/Input.js +1 -22
  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 +3 -3
  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.d.ts +1 -1
  31. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  32. package/dist/components/SortSelect/ui/SortSelect.js +12 -12
  33. package/dist/components/Switcher/ui/Switcher.js +1 -1
  34. package/dist/components/TabSelect/ui/TabSelect.d.ts +12 -7
  35. package/dist/components/TabSelect/ui/TabSelect.js +43 -38
  36. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -3
  37. package/dist/components/TabSwitcher/ui/TabSwitcher.js +75 -73
  38. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -1
  39. package/dist/components/Tag/ui/Tag.js +1 -1
  40. package/dist/components/Text/ui/Text.js +1 -1
  41. package/dist/components/TextArea/TextArea.d.ts +8 -0
  42. package/dist/components/TextArea/TextArea.js +18 -12
  43. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  44. package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
  45. package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
  46. package/dist/layout/components/Header/Header.js +1 -1
  47. package/dist/layout/components/Menu.js +107 -4
  48. package/dist/pages/ButtonsPage/Buttons.js +49 -60
  49. package/dist/stone-kit.css +1 -1
  50. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
  51. package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
  52. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  53. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  54. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  55. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  56. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  57. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
  58. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
  59. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  60. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  61. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  62. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  63. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  64. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  65. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  66. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  67. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
  68. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  69. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  70. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  71. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
  72. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  73. package/dist/{useLotCard-DG9doKCX.js → useLotCard-CYcRSogE.js} +1 -1
  74. package/dist/{useSortSelect-C72ddcYI.js → useSortSelect-Cy3od4ig.js} +6 -6
  75. package/package.json +22 -31
  76. package/dist/ButtonState.module-DtW3aevR.js +0 -8
  77. package/dist/Menu-CdJTzN7T.js +0 -494
  78. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  79. package/dist/components/TextArea/TextArea.types.js +0 -1
  80. package/dist/index-CBdtKu-u.js +0 -891
  81. package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -6
  82. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
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.1028",
5
+ "version": "0.0.1029",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",
@@ -18,45 +18,36 @@
18
18
  "build-storybook": "storybook build"
19
19
  },
20
20
  "dependencies": {
21
- "react-imask": "^7.6.1"
22
- },
23
- "peerDependencies": {
24
- "classnames": "^2.5.1",
25
- "react": "^18.2.0",
26
- "react-dom": "^18.2.0",
27
- "react-hook-form": "^7.52.2",
28
- "react-router-dom": "^6.26.0"
21
+ "react": "^19.2.0",
22
+ "react-dom": "^19.2.0",
23
+ "react-imask": "^7.6.1",
24
+ "react-router-dom": "^7.9.6"
29
25
  },
30
26
  "devDependencies": {
27
+ "@eslint/js": "^9.39.1",
31
28
  "@storybook/addon-docs": "^9.1.2",
32
29
  "@storybook/addon-onboarding": "^9.1.2",
33
30
  "@storybook/react-vite": "^9.1.2",
34
- "@types/node": "^20.12.12",
35
- "@types/react": "^18.2.66",
36
- "@types/react-dom": "^18.2.22",
37
- "@types/react-input-mask": "^3.0.5",
38
- "@typescript-eslint/eslint-plugin": "^7.2.0",
39
- "@typescript-eslint/parser": "^7.2.0",
40
- "@vitejs/plugin-react": "^4.2.1",
41
- "c8": "^9.1.0",
31
+ "@types/node": "^24.10.0",
32
+ "@types/react": "^19.2.2",
33
+ "@types/react-dom": "^19.2.2",
34
+ "@vitejs/plugin-react": "^5.1.0",
42
35
  "classnames": "^2.5.1",
43
- "eslint": "^8.57.0",
36
+ "eslint": "^9.39.1",
44
37
  "eslint-plugin-react": "^7.34.1",
45
- "eslint-plugin-react-hooks": "^4.6.0",
46
- "eslint-plugin-react-refresh": "^0.4.6",
38
+ "eslint-plugin-react-hooks": "^7.0.1",
39
+ "eslint-plugin-react-refresh": "^0.4.24",
47
40
  "eslint-plugin-storybook": "^9.1.2",
48
41
  "glob": "^10.3.16",
49
- "react": "^18.2.0",
50
- "react-dom": "^18.2.0",
42
+ "globals": "^16.5.0",
51
43
  "react-hook-form": "^7.52.2",
52
- "react-router-dom": "^6.26.0",
53
- "sass": "^1.77.2",
44
+ "sass": "^1.94.0",
54
45
  "storybook": "^9.1.2",
55
- "typescript": "^5.2.2",
56
- "vite": "^7.1.12",
46
+ "typescript": "~5.9.3",
47
+ "typescript-eslint": "^8.46.3",
48
+ "vite": "^7.2.2",
57
49
  "vite-plugin-dts": "^4.5.4",
58
- "vite-plugin-lib-inject-css": "^2.1.1",
59
- "vite-plugin-svgr": "^4.3.0"
50
+ "vite-plugin-svgr": "^4.5.0"
60
51
  },
61
52
  "main": "dist/main.js",
62
53
  "types": "dist/main.d.ts",
@@ -71,7 +62,7 @@
71
62
  },
72
63
  "repository": {
73
64
  "type": "git",
74
- "url": "git+https://github.com/Mollycodd1e/viteKit.git"
65
+ "url": "git+https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit.git"
75
66
  },
76
67
  "keywords": [
77
68
  "kit",
@@ -81,7 +72,7 @@
81
72
  "stonehedge"
82
73
  ],
83
74
  "bugs": {
84
- "url": "https://github.com/Mollycodd1e/viteKit/issues"
75
+ "url": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit/issues"
85
76
  },
86
- "homepage": "https://github.com/Mollycodd1e/viteKit#readme"
77
+ "homepage": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit#readme"
87
78
  }
@@ -1,8 +0,0 @@
1
- const o = "_root_ymbdb_1", s = "_optionsWrapper_ymbdb_7", t = "_isLoading_ymbdb_26", n = {
2
- root: o,
3
- optionsWrapper: s,
4
- isLoading: t
5
- };
6
- export {
7
- n as s
8
- };
@@ -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,10 +0,0 @@
1
- import { default as React, ReactNode } from 'react';
2
- type textAreaWidth = 'auto' | 'full';
3
- interface TextAreaProps {
4
- error?: boolean;
5
- children?: ReactNode;
6
- width?: textAreaWidth;
7
- additionalClass?: string;
8
- }
9
- export type ComponentProps = TextAreaProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
10
- export {};