@yakavkaz/uikit 0.0.2 → 0.0.4

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.
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- import { jsx as e, jsxs as i, Fragment as Q } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as i, Fragment as u } from "react/jsx-runtime";
2
2
  import * as J from "@radix-ui/react-select";
3
- import { forwardRef as M, memo as p, useId as d, useMemo as N, useState as P } from "react";
4
- import x, { clsx as b } from "clsx";
5
- import { Slot as z } from "@radix-ui/react-slot";
6
- import * as Z from "@radix-ui/react-checkbox";
3
+ import { forwardRef as M, memo as p, useId as W, useMemo as N, useState as P } from "react";
4
+ import m, { clsx as b } from "clsx";
5
+ import { Slot as f } from "@radix-ui/react-slot";
6
+ import * as L from "@radix-ui/react-checkbox";
7
7
  import * as q from "@radix-ui/react-label";
8
- import * as C from "@radix-ui/react-dropdown-menu";
9
- const V = (g, A) => /* @__PURE__ */ e(
8
+ import * as G from "@radix-ui/react-dropdown-menu";
9
+ const V = (A, g) => /* @__PURE__ */ e(
10
10
  "svg",
11
11
  {
12
12
  xmlns: "http://www.w3.org/2000/svg",
13
13
  fill: "none",
14
14
  viewBox: "0 0 24 24",
15
- ref: A,
16
- ...g,
15
+ ref: g,
16
+ ...A,
17
17
  children: /* @__PURE__ */ e(
18
18
  "path",
19
19
  {
@@ -22,14 +22,14 @@ const V = (g, A) => /* @__PURE__ */ e(
22
22
  }
23
23
  )
24
24
  }
25
- ), _ = M(V), $ = (g, A) => /* @__PURE__ */ e(
25
+ ), _ = M(V), $ = (A, g) => /* @__PURE__ */ e(
26
26
  "svg",
27
27
  {
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
29
  fill: "none",
30
30
  viewBox: "0 0 380 100",
31
- ref: A,
32
- ...g,
31
+ ref: g,
32
+ ...A,
33
33
  children: /* @__PURE__ */ e(
34
34
  "path",
35
35
  {
@@ -38,14 +38,14 @@ const V = (g, A) => /* @__PURE__ */ e(
38
38
  }
39
39
  )
40
40
  }
41
- ), F = M($), ee = (g, A) => /* @__PURE__ */ i(
41
+ ), H = M($), ee = (A, g) => /* @__PURE__ */ i(
42
42
  "svg",
43
43
  {
44
44
  xmlns: "http://www.w3.org/2000/svg",
45
45
  fill: "none",
46
46
  viewBox: "0 0 24 24",
47
- ref: A,
48
- ...g,
47
+ ref: g,
48
+ ...A,
49
49
  children: [
50
50
  /* @__PURE__ */ e("g", { clipPath: "url(#checkmark-outline_svg__a)", children: /* @__PURE__ */ e(
51
51
  "path",
@@ -57,14 +57,14 @@ const V = (g, A) => /* @__PURE__ */ e(
57
57
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "checkmark-outline_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
58
58
  ]
59
59
  }
60
- ), ge = M(ee), Ae = (g, A) => /* @__PURE__ */ i(
60
+ ), ge = M(ee), Ae = (A, g) => /* @__PURE__ */ i(
61
61
  "svg",
62
62
  {
63
63
  xmlns: "http://www.w3.org/2000/svg",
64
64
  fill: "none",
65
65
  viewBox: "0 0 24 24",
66
- ref: A,
67
- ...g,
66
+ ref: g,
67
+ ...A,
68
68
  children: [
69
69
  /* @__PURE__ */ e("g", { clipPath: "url(#close_svg__a)", children: /* @__PURE__ */ e(
70
70
  "path",
@@ -76,14 +76,14 @@ const V = (g, A) => /* @__PURE__ */ e(
76
76
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "close_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
77
77
  ]
78
78
  }
79
- ), ce = M(Ae), ie = (g, A) => /* @__PURE__ */ i(
79
+ ), ce = M(Ae), ie = (A, g) => /* @__PURE__ */ i(
80
80
  "svg",
81
81
  {
82
82
  xmlns: "http://www.w3.org/2000/svg",
83
83
  fill: "none",
84
84
  viewBox: "0 0 24 24",
85
- ref: A,
86
- ...g,
85
+ ref: g,
86
+ ...A,
87
87
  children: [
88
88
  /* @__PURE__ */ i("g", { fill: "currentColor", clipPath: "url(#eye-off-outline_svg__a)", children: [
89
89
  /* @__PURE__ */ e("path", { d: "M4.71 3.29a1.004 1.004 0 1 0-1.42 1.42l5.63 5.63a3.5 3.5 0 0 0 4.74 4.74l5.63 5.63a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095zM12 13.5a1.5 1.5 0 0 1-1.5-1.5v-.07l1.56 1.56z" }),
@@ -92,14 +92,14 @@ const V = (g, A) => /* @__PURE__ */ e(
92
92
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "eye-off-outline_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
93
93
  ]
94
94
  }
95
- ), Be = M(ie), ne = (g, A) => /* @__PURE__ */ i(
95
+ ), Be = M(ie), ne = (A, g) => /* @__PURE__ */ i(
96
96
  "svg",
97
97
  {
98
98
  xmlns: "http://www.w3.org/2000/svg",
99
99
  fill: "none",
100
100
  viewBox: "0 0 24 24",
101
- ref: A,
102
- ...g,
101
+ ref: g,
102
+ ...A,
103
103
  children: [
104
104
  /* @__PURE__ */ i("g", { fill: "currentColor", clipPath: "url(#eye-off_svg__a)", children: [
105
105
  /* @__PURE__ */ e("path", { d: "M12 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M15.29 18.12 14 16.78l-.07-.07-1.27-1.27A3.5 3.5 0 0 1 8.5 12a4 4 0 0 1 .06-.61l-2-2L5 7.87a15.9 15.9 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.5 9.5 0 0 0 3.23-.67zM8.59 5.76l2.8 2.8A4 4 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5 4 4 0 0 1-.06.61l2.68 2.68.84.84a15.9 15.9 0 0 0 2.91-3.63 1 1 0 0 0 0-1c-.64-1.11-4.16-6.68-10.14-6.5a9.5 9.5 0 0 0-3.23.67z" }),
@@ -108,14 +108,14 @@ const V = (g, A) => /* @__PURE__ */ e(
108
108
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "eye-off_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
109
109
  ]
110
110
  }
111
- ), Me = M(ne), Ye = (g, A) => /* @__PURE__ */ i(
111
+ ), Me = M(ne), Ye = (A, g) => /* @__PURE__ */ i(
112
112
  "svg",
113
113
  {
114
114
  xmlns: "http://www.w3.org/2000/svg",
115
115
  fill: "none",
116
116
  viewBox: "0 0 24 24",
117
- ref: A,
118
- ...g,
117
+ ref: g,
118
+ ...A,
119
119
  children: [
120
120
  /* @__PURE__ */ i("g", { fill: "currentColor", clipPath: "url(#eye-outline_svg__a)", children: [
121
121
  /* @__PURE__ */ e("path", { d: "M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1M12.22 17c-4.31.1-7.12-3.59-8-5 1-1.61 3.61-4.9 7.61-5 4.29-.11 7.11 3.59 8 5-1.03 1.61-3.61 4.9-7.61 5" }),
@@ -124,14 +124,14 @@ const V = (g, A) => /* @__PURE__ */ e(
124
124
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "eye-outline_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
125
125
  ]
126
126
  }
127
- ), xe = M(Ye), me = (g, A) => /* @__PURE__ */ i(
127
+ ), me = M(Ye), xe = (A, g) => /* @__PURE__ */ i(
128
128
  "svg",
129
129
  {
130
130
  xmlns: "http://www.w3.org/2000/svg",
131
131
  fill: "none",
132
132
  viewBox: "0 0 24 24",
133
- ref: A,
134
- ...g,
133
+ ref: g,
134
+ ...A,
135
135
  children: [
136
136
  /* @__PURE__ */ i("g", { fill: "currentColor", clipPath: "url(#eye_svg__a)", children: [
137
137
  /* @__PURE__ */ e("path", { d: "M12 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" }),
@@ -140,14 +140,14 @@ const V = (g, A) => /* @__PURE__ */ e(
140
140
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "eye_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
141
141
  ]
142
142
  }
143
- ), le = M(me), Ee = (g, A) => /* @__PURE__ */ e(
143
+ ), le = M(xe), Ee = (A, g) => /* @__PURE__ */ e(
144
144
  "svg",
145
145
  {
146
146
  xmlns: "http://www.w3.org/2000/svg",
147
147
  fill: "none",
148
148
  viewBox: "0 0 24 24",
149
- ref: A,
150
- ...g,
149
+ ref: g,
150
+ ...A,
151
151
  children: /* @__PURE__ */ e(
152
152
  "path",
153
153
  {
@@ -156,14 +156,14 @@ const V = (g, A) => /* @__PURE__ */ e(
156
156
  }
157
157
  )
158
158
  }
159
- ), we = M(Ee), he = (g, A) => /* @__PURE__ */ i(
159
+ ), we = M(Ee), he = (A, g) => /* @__PURE__ */ i(
160
160
  "svg",
161
161
  {
162
162
  xmlns: "http://www.w3.org/2000/svg",
163
163
  fill: "none",
164
164
  viewBox: "0 0 60 60",
165
- ref: A,
166
- ...g,
165
+ ref: g,
166
+ ...A,
167
167
  children: [
168
168
  /* @__PURE__ */ e("path", { fill: "currentColor", d: "M.5.5h59v59H.5z" }),
169
169
  /* @__PURE__ */ e("path", { stroke: "#D9D9D9", d: "M.5.5h59v59H.5z" }),
@@ -207,14 +207,14 @@ const V = (g, A) => /* @__PURE__ */ e(
207
207
  ) })
208
208
  ]
209
209
  }
210
- ), Ie = M(he), ae = (g, A) => /* @__PURE__ */ e(
210
+ ), ae = M(he), Ie = (A, g) => /* @__PURE__ */ e(
211
211
  "svg",
212
212
  {
213
213
  xmlns: "http://www.w3.org/2000/svg",
214
214
  fill: "none",
215
215
  viewBox: "0 0 24 24",
216
- ref: A,
217
- ...g,
216
+ ref: g,
217
+ ...A,
218
218
  children: /* @__PURE__ */ e(
219
219
  "path",
220
220
  {
@@ -223,24 +223,24 @@ const V = (g, A) => /* @__PURE__ */ e(
223
223
  }
224
224
  )
225
225
  }
226
- ), oe = M(ae), se = (g, A) => /* @__PURE__ */ e(
226
+ ), oe = M(Ie), se = (A, g) => /* @__PURE__ */ e(
227
227
  "svg",
228
228
  {
229
229
  xmlns: "http://www.w3.org/2000/svg",
230
230
  fill: "none",
231
231
  viewBox: "0 0 24 24",
232
- ref: A,
233
- ...g,
232
+ ref: g,
233
+ ...A,
234
234
  children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "m12 15.4-6-6L7.4 8l4.6 4.6L16.6 8 18 9.4z" })
235
235
  }
236
- ), Je = M(se), Ce = (g, A) => /* @__PURE__ */ e(
236
+ ), Je = M(se), Ce = (A, g) => /* @__PURE__ */ e(
237
237
  "svg",
238
238
  {
239
239
  xmlns: "http://www.w3.org/2000/svg",
240
240
  fill: "none",
241
241
  viewBox: "0 0 24 24",
242
- ref: A,
243
- ...g,
242
+ ref: g,
243
+ ...A,
244
244
  children: /* @__PURE__ */ e(
245
245
  "path",
246
246
  {
@@ -249,14 +249,14 @@ const V = (g, A) => /* @__PURE__ */ e(
249
249
  }
250
250
  )
251
251
  }
252
- ), ze = M(Ce), te = (g, A) => /* @__PURE__ */ i(
252
+ ), ze = M(Ce), te = (A, g) => /* @__PURE__ */ i(
253
253
  "svg",
254
254
  {
255
255
  xmlns: "http://www.w3.org/2000/svg",
256
256
  fill: "none",
257
257
  viewBox: "0 0 62 62",
258
- ref: A,
259
- ...g,
258
+ ref: g,
259
+ ...A,
260
260
  children: [
261
261
  /* @__PURE__ */ e("path", { stroke: "#D9D9D9", d: "M1 1h60v60H1z" }),
262
262
  /* @__PURE__ */ e(
@@ -268,24 +268,24 @@ const V = (g, A) => /* @__PURE__ */ e(
268
268
  )
269
269
  ]
270
270
  }
271
- ), Ge = M(te), fe = (g, A) => /* @__PURE__ */ e(
271
+ ), Ge = M(te), fe = (A, g) => /* @__PURE__ */ e(
272
272
  "svg",
273
273
  {
274
274
  xmlns: "http://www.w3.org/2000/svg",
275
275
  fill: "none",
276
276
  viewBox: "0 0 24 24",
277
- ref: A,
278
- ...g,
277
+ ref: g,
278
+ ...A,
279
279
  children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M3 18v-2h18v2zm0-5v-2h18v2zm0-5V6h18v2z" })
280
280
  }
281
- ), re = M(fe), ue = (g, A) => /* @__PURE__ */ e(
281
+ ), re = M(fe), ue = (A, g) => /* @__PURE__ */ e(
282
282
  "svg",
283
283
  {
284
284
  xmlns: "http://www.w3.org/2000/svg",
285
285
  fill: "none",
286
286
  viewBox: "0 0 24 24",
287
- ref: A,
288
- ...g,
287
+ ref: g,
288
+ ...A,
289
289
  children: /* @__PURE__ */ e(
290
290
  "path",
291
291
  {
@@ -294,14 +294,14 @@ const V = (g, A) => /* @__PURE__ */ e(
294
294
  }
295
295
  )
296
296
  }
297
- ), Qe = M(ue), Re = (g, A) => /* @__PURE__ */ i(
297
+ ), Qe = M(ue), Re = (A, g) => /* @__PURE__ */ i(
298
298
  "svg",
299
299
  {
300
300
  xmlns: "http://www.w3.org/2000/svg",
301
301
  fill: "none",
302
302
  viewBox: "0 0 24 24",
303
- ref: A,
304
- ...g,
303
+ ref: g,
304
+ ...A,
305
305
  children: [
306
306
  /* @__PURE__ */ e("g", { clipPath: "url(#telegram_svg__a)", children: /* @__PURE__ */ e(
307
307
  "path",
@@ -313,14 +313,14 @@ const V = (g, A) => /* @__PURE__ */ e(
313
313
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "telegram_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
314
314
  ]
315
315
  }
316
- ), ke = M(Re), Oe = (g, A) => /* @__PURE__ */ i(
316
+ ), ke = M(Re), ve = (A, g) => /* @__PURE__ */ i(
317
317
  "svg",
318
318
  {
319
319
  xmlns: "http://www.w3.org/2000/svg",
320
320
  fill: "none",
321
321
  viewBox: "0 0 24 24",
322
- ref: A,
323
- ...g,
322
+ ref: g,
323
+ ...A,
324
324
  children: [
325
325
  /* @__PURE__ */ e("g", { clipPath: "url(#vk_svg__a)", children: /* @__PURE__ */ e(
326
326
  "path",
@@ -332,14 +332,14 @@ const V = (g, A) => /* @__PURE__ */ e(
332
332
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "vk_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
333
333
  ]
334
334
  }
335
- ), ve = M(Oe), Ze = (g, A) => /* @__PURE__ */ i(
335
+ ), Oe = M(ve), Ze = (A, g) => /* @__PURE__ */ i(
336
336
  "svg",
337
337
  {
338
338
  xmlns: "http://www.w3.org/2000/svg",
339
339
  fill: "none",
340
340
  viewBox: "0 0 62 62",
341
- ref: A,
342
- ...g,
341
+ ref: g,
342
+ ...A,
343
343
  children: [
344
344
  /* @__PURE__ */ e("path", { stroke: "#D9D9D9", d: "M1 1h60v60H1z" }),
345
345
  /* @__PURE__ */ e(
@@ -358,14 +358,14 @@ const V = (g, A) => /* @__PURE__ */ e(
358
358
  )
359
359
  ]
360
360
  }
361
- ), de = M(Ze), Fe = (g, A) => /* @__PURE__ */ e(
361
+ ), de = M(Ze), Fe = (A, g) => /* @__PURE__ */ e(
362
362
  "svg",
363
363
  {
364
364
  xmlns: "http://www.w3.org/2000/svg",
365
365
  fill: "none",
366
366
  viewBox: "0 0 24 24",
367
- ref: A,
368
- ...g,
367
+ ref: g,
368
+ ...A,
369
369
  children: /* @__PURE__ */ e(
370
370
  "path",
371
371
  {
@@ -376,14 +376,14 @@ const V = (g, A) => /* @__PURE__ */ e(
376
376
  }
377
377
  )
378
378
  }
379
- ), je = M(Fe), De = (g, A) => /* @__PURE__ */ i(
379
+ ), je = M(Fe), De = (A, g) => /* @__PURE__ */ i(
380
380
  "svg",
381
381
  {
382
382
  xmlns: "http://www.w3.org/2000/svg",
383
383
  fill: "none",
384
384
  viewBox: "0 0 20 20",
385
- ref: A,
386
- ...g,
385
+ ref: g,
386
+ ...A,
387
387
  children: [
388
388
  /* @__PURE__ */ e("g", { clipPath: "url(#x_svg__a)", children: /* @__PURE__ */ e(
389
389
  "path",
@@ -395,14 +395,14 @@ const V = (g, A) => /* @__PURE__ */ e(
395
395
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "x_svg__a", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M0 0h20v20H0z" }) }) })
396
396
  ]
397
397
  }
398
- ), Le = M(De), We = (g, A) => /* @__PURE__ */ i(
398
+ ), Le = M(De), We = (A, g) => /* @__PURE__ */ i(
399
399
  "svg",
400
400
  {
401
401
  xmlns: "http://www.w3.org/2000/svg",
402
402
  fill: "none",
403
403
  viewBox: "0 0 34 24",
404
- ref: A,
405
- ...g,
404
+ ref: g,
405
+ ...A,
406
406
  children: [
407
407
  /* @__PURE__ */ e(
408
408
  "path",
@@ -420,14 +420,14 @@ const V = (g, A) => /* @__PURE__ */ e(
420
420
  )
421
421
  ]
422
422
  }
423
- ), He = M(We), Se = (g, A) => /* @__PURE__ */ i(
423
+ ), He = M(We), Se = (A, g) => /* @__PURE__ */ i(
424
424
  "svg",
425
425
  {
426
426
  xmlns: "http://www.w3.org/2000/svg",
427
427
  fill: "none",
428
428
  viewBox: "0 0 62 62",
429
- ref: A,
430
- ...g,
429
+ ref: g,
430
+ ...A,
431
431
  children: [
432
432
  /* @__PURE__ */ e("path", { stroke: "#D9D9D9", d: "M1 1h60v60H1z" }),
433
433
  /* @__PURE__ */ e(
@@ -442,15 +442,15 @@ const V = (g, A) => /* @__PURE__ */ e(
442
442
  ), Ue = M(Se), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
443
443
  __proto__: null,
444
444
  Arrow: _,
445
- BannerBgYak: F,
445
+ BannerBgYak: H,
446
446
  CheckmarkOutline: ge,
447
447
  Close: ce,
448
448
  Eye: le,
449
449
  EyeOff: Me,
450
450
  EyeOffOutline: Be,
451
- EyeOutline: xe,
451
+ EyeOutline: me,
452
452
  Filter: we,
453
- Gos: Ie,
453
+ Gos: ae,
454
454
  Journalist: oe,
455
455
  KeyboardArrowDown: Je,
456
456
  LocationOn: ze,
@@ -458,16 +458,16 @@ const V = (g, A) => /* @__PURE__ */ e(
458
458
  Menu: re,
459
459
  Search: Qe,
460
460
  Telegram: ke,
461
- Vk: ve,
461
+ Vk: Oe,
462
462
  VkAuth: de,
463
463
  Whatsaap: je,
464
464
  X: Le,
465
465
  Yak: He,
466
466
  Yandex: Ue
467
- }, Symbol.toStringTag, { value: "Module" })), Te = ({ iconId: g, ...A }, c) => {
468
- const B = ye[g];
469
- return B ? /* @__PURE__ */ e(B, { ...A, ref: c }) : null;
470
- }, Ke = M(Te), o = p(Ke), h = {
467
+ }, Symbol.toStringTag, { value: "Module" })), Te = ({ iconId: A, ...g }, B) => {
468
+ const n = ye[A];
469
+ return n ? /* @__PURE__ */ e(n, { ...g, ref: B }) : null;
470
+ }, Ke = M(Te), I = p(Ke), h = {
471
471
  large: "large",
472
472
  // 48px
473
473
  h1: "h1",
@@ -548,52 +548,52 @@ const V = (g, A) => /* @__PURE__ */ e(
548
548
  // 16px
549
549
  [h.small_link]: "text-xxs font-regular text-primary-500 underline cursor-pointer"
550
550
  // 14px
551
- }, s = M(
552
- ({ asChild: g, variant: A = h.regular_text_16, className: c, ...B }, n) => {
553
- const m = g ? z : "span", Y = Xe[A];
551
+ }, o = M(
552
+ ({ asChild: A, variant: g = h.regular_text_16, className: B, ...n }, c) => {
553
+ const x = A ? f : "span", Y = Xe[g];
554
554
  return /* @__PURE__ */ e(
555
- m,
555
+ x,
556
556
  {
557
- ref: n,
558
- className: x(
557
+ ref: c,
558
+ className: m(
559
559
  "font-primary",
560
560
  // Базовый шрифт
561
561
  Y,
562
- c
562
+ B
563
563
  ),
564
- ...B
564
+ ...n
565
565
  }
566
566
  );
567
567
  }
568
568
  );
569
- s.displayName = "Typography";
570
- const j = M(
569
+ o.displayName = "Typography";
570
+ const S = M(
571
571
  ({
572
- children: g,
573
- className: A,
574
- defaultValue: c = "10",
575
- triggerIcon: B,
576
- style: n,
577
- placeholder: m,
572
+ children: A,
573
+ className: g,
574
+ defaultValue: B = "10",
575
+ triggerIcon: n,
576
+ style: c,
577
+ placeholder: x,
578
578
  label: Y,
579
579
  labelColor: w,
580
580
  ...E
581
- }, l) => /* @__PURE__ */ i("div", { className: x("flex flex-col gap-1", A), children: [
581
+ }, l) => /* @__PURE__ */ i("div", { className: m("flex flex-col gap-1", g), children: [
582
582
  Y && /* @__PURE__ */ e(
583
- s,
583
+ o,
584
584
  {
585
585
  style: { color: w },
586
586
  variant: h.regular_text_14,
587
587
  children: Y[0]?.toUpperCase() + Y.slice(1)
588
588
  }
589
589
  ),
590
- /* @__PURE__ */ i(J.Root, { defaultValue: c, ...E, children: [
590
+ /* @__PURE__ */ i(J.Root, { defaultValue: B, ...E, children: [
591
591
  /* @__PURE__ */ i(
592
592
  J.Trigger,
593
593
  {
594
594
  ref: l,
595
- style: n,
596
- className: x(
595
+ style: c,
596
+ className: m(
597
597
  "inline-flex items-center justify-between gap-2",
598
598
  "px-3 py-1.5 text-black",
599
599
  "transition-colors",
@@ -603,10 +603,10 @@ const j = M(
603
603
  "formattedDate-[state=open]:text-light-900 outline-none"
604
604
  ),
605
605
  children: [
606
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: B && /* @__PURE__ */ e(J.Icon, { className: "h-6 w-6", children: B }) }),
607
- /* @__PURE__ */ e(J.Value, { placeholder: m }),
606
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: n && /* @__PURE__ */ e(J.Icon, { className: "h-6 w-6", children: n }) }),
607
+ /* @__PURE__ */ e(J.Value, { placeholder: x }),
608
608
  /* @__PURE__ */ e(J.Icon, { className: "text-black", children: /* @__PURE__ */ e(
609
- o,
609
+ I,
610
610
  {
611
611
  iconId: "KeyboardArrowDown",
612
612
  className: "h-6 w-6 transition-transform duration-300 data-[state=open]:rotate-180"
@@ -621,44 +621,44 @@ const j = M(
621
621
  className: "z-50 bg-white w-[--radix-select-trigger-width] overflow-hidden shadow-lg",
622
622
  position: "popper",
623
623
  sideOffset: 4,
624
- children: /* @__PURE__ */ e(J.Viewport, { className: "p-1 max-h-[200px]", children: g })
624
+ children: /* @__PURE__ */ e(J.Viewport, { className: "p-1 max-h-[200px]", children: A })
625
625
  }
626
626
  ) })
627
627
  ] })
628
628
  ] })
629
629
  );
630
- j.displayName = "Selector";
631
- const D = M(
632
- ({ children: g, className: A = "", value: c, disabled: B }, n) => /* @__PURE__ */ e(
630
+ S.displayName = "Selector";
631
+ const U = M(
632
+ ({ children: A, className: g = "", value: B, disabled: n }, c) => /* @__PURE__ */ e(
633
633
  J.Item,
634
634
  {
635
- ref: n,
636
- value: c,
637
- disabled: B,
638
- className: x(
635
+ ref: c,
636
+ value: B,
637
+ disabled: n,
638
+ className: m(
639
639
  "relative flex cursor-pointer select-none items-center px-3 py-1.5 text-sm",
640
640
  "formattedDate-[highlighted]:text-success-300",
641
641
  "formattedDate-[disabled]:pointer-events-none formattedDate-[disabled]:text-primary-900",
642
642
  "outline-none",
643
- A
643
+ g
644
644
  ),
645
- children: /* @__PURE__ */ e(J.ItemText, { children: g })
645
+ children: /* @__PURE__ */ e(J.ItemText, { children: A })
646
646
  }
647
647
  )
648
648
  );
649
- D.displayName = "SelectItem";
650
- const pe = ({ children: g, className: A }) => g ? /* @__PURE__ */ e("div", { className: x("w-full", A), children: g }) : /* @__PURE__ */ e("div", { className: x("w-full", A), children: "Пустая карточка" }), Ne = (g) => {
651
- const A = d();
652
- return g || A;
649
+ U.displayName = "SelectItem";
650
+ const pe = ({ children: A, className: g }) => A ? /* @__PURE__ */ e("div", { className: m("w-full", g), children: A }) : /* @__PURE__ */ e("div", { className: m("w-full", g), children: "Пустая карточка" }), Ne = (A) => {
651
+ const g = W();
652
+ return A || g;
653
653
  }, Pe = M(
654
- ({ checked: g, className: A, disabled: c = !1, id: B, label: n, onValueChange: m, ...Y }, w) => {
655
- const E = Ne(B);
654
+ ({ checked: A, className: g, disabled: B = !1, id: n, label: c, onValueChange: x, ...Y }, w) => {
655
+ const E = Ne(n);
656
656
  return /* @__PURE__ */ i("div", { className: "flex items-center", children: [
657
657
  /* @__PURE__ */ e(
658
- Z.Root,
658
+ L.Root,
659
659
  {
660
- checked: g,
661
- className: x(
660
+ checked: A,
661
+ className: m(
662
662
  "relative cursor-pointer flex items-center justify-center w-[18px] h-[18px] border-2 border-dark-900 rounded-sm",
663
663
  "formattedDate-[state=checked]:bg-white formattedDate-[state=checked]:border-dark-900",
664
664
  "formattedDate-[disabled]:cursor-default",
@@ -668,105 +668,105 @@ const pe = ({ children: g, className: A }) => g ? /* @__PURE__ */ e("div", { cla
668
668
  "focus:before:bg-gray-100",
669
669
  "hover:before:bg-gray-100",
670
670
  "active:before:bg-gray-100",
671
- A
671
+ g
672
672
  ),
673
673
  id: E,
674
- disabled: c,
675
- onCheckedChange: m,
674
+ disabled: B,
675
+ onCheckedChange: x,
676
676
  ...Y,
677
677
  ref: w,
678
678
  children: /* @__PURE__ */ e(
679
- Z.Indicator,
679
+ L.Indicator,
680
680
  {
681
- className: x(
681
+ className: m(
682
682
  "flex items-center justify-center text-gray-900",
683
683
  "formattedDate-[disabled]:text-gray-400"
684
684
  ),
685
- children: /* @__PURE__ */ e(o, { iconId: "CheckmarkOutline", width: 18 })
685
+ children: /* @__PURE__ */ e(I, { iconId: "CheckmarkOutline", width: 18 })
686
686
  }
687
687
  )
688
688
  }
689
689
  ),
690
- /* @__PURE__ */ e(s, { asChild: !0, variant: h.regular_text_14, children: /* @__PURE__ */ e(
690
+ /* @__PURE__ */ e(o, { asChild: !0, variant: h.regular_text_14, children: /* @__PURE__ */ e(
691
691
  "label",
692
692
  {
693
- className: x(
693
+ className: m(
694
694
  "cursor-pointer select-none pl-2.5 text-dark-900",
695
- c && "cursor-default text-gray-300"
695
+ B && "cursor-default text-gray-300"
696
696
  ),
697
697
  htmlFor: E,
698
- children: n
698
+ children: c
699
699
  }
700
700
  ) })
701
701
  ] });
702
702
  }
703
703
  );
704
704
  Pe.displayName = "Checkbox";
705
- const R = M(
706
- ({ asChild: g, onClick: A, variant: c = "primary", fullWidth: B, className: n, disabled: m, ...Y }, w) => {
707
- const E = g ? z : "button", l = (a) => {
708
- m && a.preventDefault();
709
- }, I = x(
705
+ const F = M(
706
+ ({ asChild: A, onClick: g, variant: B = "primary", fullWidth: n, className: c, disabled: x, ...Y }, w) => {
707
+ const E = A ? f : "button", l = (s) => {
708
+ x && s.preventDefault();
709
+ }, a = m(
710
710
  "border border-success-700 font-medium hover:border-success-600 active:border-success-800 focus:ring-2 focus:ring-success-800 disabled:border-success-300 disabled:cursor-not-allowed disabled:pointer-events-none",
711
711
  {
712
- "text-success-700 hover:text-success-600 active:text-green-700 focus:text-success-800 disabled:text-success-300": c === "outline",
713
- "text-dark-900 hover:text-dark-800 active:text-dark-900 focus:text-dark-900 disabled:text-gray-400": c === "outlineBlackText"
712
+ "text-success-700 hover:text-success-600 active:text-green-700 focus:text-success-800 disabled:text-success-300": B === "outline",
713
+ "text-dark-900 hover:text-dark-800 active:text-dark-900 focus:text-dark-900 disabled:text-gray-400": B === "outlineBlackText"
714
714
  }
715
715
  );
716
716
  return /* @__PURE__ */ e(
717
717
  E,
718
718
  {
719
- disabled: m,
720
- onClick: g && m ? l : A,
719
+ disabled: x,
720
+ onClick: A && x ? l : g,
721
721
  ref: w,
722
722
  ...Y,
723
- className: x(
723
+ className: m(
724
724
  // Base style
725
725
  "inline-flex items-center justify-center gap-2.5 box-border text-xs font-semibold leading-6 text-center whitespace-nowrap rounded-sm",
726
726
  "cursor-pointer outline-none px-4 py-3",
727
727
  {
728
728
  // Primary
729
- "bg-success-700 text-light-100 font-semibold hover:bg-success-600 active:bg-success-800 focus:ring-2 focus:ring-success-800 focus:bg-success-700 disabled:bg-success-300 disabled:text-gray-300": c === "primary",
729
+ "bg-success-700 text-light-100 font-semibold hover:bg-success-600 active:bg-success-800 focus:ring-2 focus:ring-success-800 focus:bg-success-700 disabled:bg-success-300 disabled:text-gray-300": B === "primary",
730
730
  //Outline or outlineBlackText
731
- [I]: c === "outline" || c === "outlineBlackText"
731
+ [a]: B === "outline" || B === "outlineBlackText"
732
732
  },
733
- B && "w-full text-center",
734
- n,
735
- g && m && "cursor-not-allowed pointer-events-none"
733
+ n && "w-full text-center",
734
+ c,
735
+ A && x && "cursor-not-allowed pointer-events-none"
736
736
  )
737
737
  }
738
738
  );
739
739
  }
740
740
  );
741
- R.displayName = "Button";
741
+ F.displayName = "Button";
742
742
  const be = M(
743
743
  ({
744
- asChild: g,
745
- className: A,
746
- children: c,
747
- color: B = "success",
748
- typographyVariant: n = "semibold_small_text",
749
- iconId: m,
744
+ asChild: A,
745
+ className: g,
746
+ children: B,
747
+ color: n = "success",
748
+ typographyVariant: c = "semibold_small_text",
749
+ iconId: x,
750
750
  ...Y
751
751
  }, w) => /* @__PURE__ */ e(
752
- g ? z : "span",
752
+ A ? f : "span",
753
753
  {
754
754
  ref: w,
755
- className: x("flex items-center gap-2", A),
755
+ className: m("flex items-center gap-2", g),
756
756
  ...Y,
757
- children: /* @__PURE__ */ i(Q, { children: [
758
- m && /* @__PURE__ */ e(o, { iconId: m, width: 24, height: 24 }),
757
+ children: /* @__PURE__ */ i(u, { children: [
758
+ x && /* @__PURE__ */ e(I, { iconId: x, width: 24, height: 24 }),
759
759
  /* @__PURE__ */ e(
760
- s,
760
+ o,
761
761
  {
762
- variant: n,
763
- asChild: g,
764
- className: x({
765
- "text-dark-900": B === "dark",
766
- "text-success-700": B === "success",
767
- "text-warning-300": B === "warning"
762
+ variant: c,
763
+ asChild: A,
764
+ className: m({
765
+ "text-dark-900": n === "dark",
766
+ "text-success-700": n === "success",
767
+ "text-warning-300": n === "warning"
768
768
  }),
769
- children: c
769
+ children: B
770
770
  }
771
771
  )
772
772
  ] })
@@ -774,16 +774,16 @@ const be = M(
774
774
  )
775
775
  );
776
776
  be.displayName = "Tag";
777
- function qe(g, A = "short") {
778
- const c = typeof g == "string" ? new Date(g) : g;
779
- if (isNaN(c.getTime()))
777
+ function qe(A, g = "short") {
778
+ const B = typeof A == "string" ? new Date(A) : A;
779
+ if (isNaN(B.getTime()))
780
780
  return "Неверная дата";
781
- const B = /* @__PURE__ */ new Date("2025-08-05T15:18:00+02:00"), n = /* @__PURE__ */ new Date("2025-08-12T23:59:59+02:00");
782
- if (A === "relative")
783
- return c <= n && c >= B ? `до ${new Intl.DateTimeFormat("ru-RU", {
781
+ const n = /* @__PURE__ */ new Date("2025-08-05T15:18:00+02:00"), c = /* @__PURE__ */ new Date("2025-08-12T23:59:59+02:00");
782
+ if (g === "relative")
783
+ return B <= c && B >= n ? `до ${new Intl.DateTimeFormat("ru-RU", {
784
784
  day: "numeric",
785
785
  month: "long"
786
- }).format(c).replace(/\./g, "")}` : "Дата вне диапазона";
786
+ }).format(B).replace(/\./g, "")}` : "Дата вне диапазона";
787
787
  const Y = new Intl.DateTimeFormat("ru-RU", {
788
788
  timeZone: "Europe/Paris",
789
789
  // CEST
@@ -795,7 +795,7 @@ function qe(g, A = "short") {
795
795
  // окт
796
796
  year: "numeric",
797
797
  // 2025
798
- ...A === "full" && {
798
+ ...g === "full" && {
799
799
  hour: "2-digit",
800
800
  // 21
801
801
  minute: "2-digit",
@@ -803,29 +803,29 @@ function qe(g, A = "short") {
803
803
  hour12: !1
804
804
  // 24-часовой формат
805
805
  }
806
- }).formatToParts(c);
807
- if (A === "short")
806
+ }).formatToParts(B);
807
+ if (g === "short")
808
808
  return Y.filter((l) => ["weekday", "day", "month", "year"].includes(l.type)).map((l) => l.type === "weekday" ? l.value.charAt(0).toUpperCase() + l.value.slice(1) : l.value).join(" ").replace(/\./g, "");
809
809
  const w = Y.filter((l) => ["weekday", "day", "month", "year"].includes(l.type)).map((l) => l.type === "weekday" ? l.value.charAt(0).toUpperCase() + l.value.slice(1) : l.value).join(" ").replace(/\./g, ""), E = Y.filter((l) => ["hour", "minute"].includes(l.type)).map((l) => l.value).join(":");
810
810
  return `${w} в ${E}`;
811
811
  }
812
812
  const Ve = M(
813
813
  ({
814
- className: g,
815
- date: A,
816
- variant: c = "short",
817
- ...B
814
+ className: A,
815
+ date: g,
816
+ variant: B = "short",
817
+ ...n
818
818
  }) => {
819
- const n = qe(A, c);
819
+ const c = qe(g, B);
820
820
  return /* @__PURE__ */ e(
821
- s,
821
+ o,
822
822
  {
823
823
  variant: "small_text",
824
- className: x("text-light-900", g, {
825
- "text-red-600": n === "Неверная дата" || n === "Дата вне диапазона"
824
+ className: m("text-light-900", A, {
825
+ "text-red-600": c === "Неверная дата" || c === "Дата вне диапазона"
826
826
  }),
827
- ...B,
828
- children: n
827
+ ...n,
828
+ children: c
829
829
  }
830
830
  );
831
831
  }
@@ -833,44 +833,43 @@ const Ve = M(
833
833
  Ve.displayName = "FormattedDate";
834
834
  const _e = M(
835
835
  ({
836
- asChild: g,
837
- className: A,
838
- iconId: c = "Arrow",
839
- typographyVariant: B = "h3",
840
- children: n,
841
- ...m
836
+ asChild: A,
837
+ className: g,
838
+ iconId: B = "Arrow",
839
+ typographyVariant: n = "h3",
840
+ children: c,
841
+ ...x
842
842
  }, Y) => /* @__PURE__ */ e(
843
- g ? z : "div",
843
+ A ? f : "div",
844
844
  {
845
845
  ref: Y,
846
- className: x(
846
+ className: m(
847
847
  "w-full max-w-[500px] relative flex items-center justify-between",
848
848
  "before:content-[''] before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:w-3 before:h-6 before:bg-success-700 pl-6",
849
- A
849
+ g
850
850
  ),
851
- ...m,
851
+ ...x,
852
852
  children: /* @__PURE__ */ i("div", { className: "flex items-center justify-between w-full", children: [
853
- n && /* @__PURE__ */ e(s, { variant: B, children: n }),
854
- /* @__PURE__ */ e(o, { iconId: c, width: 24, height: 24 })
853
+ c && /* @__PURE__ */ e(o, { variant: n, children: c }),
854
+ /* @__PURE__ */ e(I, { iconId: B, width: 24, height: 24 })
855
855
  ] })
856
856
  }
857
857
  )
858
858
  );
859
859
  _e.displayName = "PreviewTitle";
860
- const k = M(
860
+ const j = M(
861
861
  ({
862
- asChild: g,
863
- className: A,
864
- sectionName: c = "",
865
- iconId: B = "Yak",
866
- variant: n = "small",
867
- withTM: m = !1,
862
+ asChild: A,
863
+ className: g,
864
+ sectionName: B = "",
865
+ iconId: n = "Yak",
866
+ variant: c = "small",
867
+ withTM: x = !1,
868
868
  iconColor: Y = "text-success-700",
869
- children: w,
870
- ...E
871
- }, l) => {
872
- const I = g ? z : "div", a = () => {
873
- switch (n) {
869
+ ...w
870
+ }, E) => {
871
+ const l = A ? f : "div", a = () => {
872
+ switch (c) {
874
873
  case "large":
875
874
  return { width: 61, height: 44 };
876
875
  case "medium":
@@ -879,8 +878,8 @@ const k = M(
879
878
  default:
880
879
  return { width: 33, height: 24 };
881
880
  }
882
- }, t = () => {
883
- switch (n) {
881
+ }, s = () => {
882
+ switch (c) {
884
883
  case "large":
885
884
  return "h1_semibold";
886
885
  case "medium":
@@ -891,196 +890,196 @@ const k = M(
891
890
  }
892
891
  };
893
892
  return /* @__PURE__ */ e(
894
- I,
893
+ l,
895
894
  {
896
- ref: l,
897
- className: x("inline-flex items-center gap-1", A),
898
- ...E,
895
+ ref: E,
896
+ className: m("inline-flex items-center gap-1", g),
897
+ ...w,
899
898
  children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
900
899
  /* @__PURE__ */ e(
901
- o,
900
+ I,
902
901
  {
903
- iconId: B,
902
+ iconId: n,
904
903
  width: a().width,
905
904
  height: a().height,
906
- className: x("fill-current", Y),
905
+ className: m("fill-current", Y),
907
906
  style: { color: Y !== "currentColor" && !Y.startsWith("text-") ? Y : void 0 }
908
907
  }
909
908
  ),
910
- /* @__PURE__ */ i(s, { variant: t(), children: [
911
- w || "Якавказ",
912
- m && /* @__PURE__ */ e("sup", { className: "text-[9px] align-super tracking-tight", children: "™" })
909
+ /* @__PURE__ */ i(o, { variant: s(), children: [
910
+ "Якавказ",
911
+ x && /* @__PURE__ */ e("sup", { className: "text-[9px] align-super tracking-tight", children: "™" })
913
912
  ] }),
914
- /* @__PURE__ */ e(s, { variant: "h2_normal", children: c })
913
+ /* @__PURE__ */ e(o, { variant: "h2_normal", children: B })
915
914
  ] })
916
915
  }
917
916
  );
918
917
  }
919
918
  );
920
- k.displayName = "Logo";
921
- const $e = ({ children: g, className: A, label: c, required: B, labelColor: n = "primary", ...m }) => {
919
+ j.displayName = "Logo";
920
+ const $e = ({ children: A, className: g, label: B, required: n, labelColor: c = "primary", ...x }) => {
922
921
  const Y = N(
923
922
  () => ({
924
923
  label: b(
925
924
  "inline-block mb-1 text-sm leading-6",
926
- A,
927
- n === "primary" && "text-light-900",
928
- n === "disabled" && "text-dark-100"
925
+ g,
926
+ c === "primary" && "text-light-900",
927
+ c === "disabled" && "text-dark-100"
929
928
  ),
930
929
  required: "ml-0.5 text-danger-300"
931
930
  }),
932
- [A, n]
931
+ [g, c]
933
932
  );
934
- return /* @__PURE__ */ i(q.Root, { ...m, children: [
935
- c && /* @__PURE__ */ i("div", { className: Y.label, children: [
936
- c,
937
- B && /* @__PURE__ */ e("span", { className: Y.required, children: "*" })
933
+ return /* @__PURE__ */ i(q.Root, { ...x, children: [
934
+ B && /* @__PURE__ */ i("div", { className: Y.label, children: [
935
+ B,
936
+ n && /* @__PURE__ */ e("span", { className: Y.required, children: "*" })
938
937
  ] }),
939
- g
938
+ A
940
939
  ] });
941
940
  }, eg = M(
942
941
  ({
943
- className: g,
944
- onClearClick: A,
945
- errorMessage: c,
946
- iconEnd: B,
947
- iconStart: n,
948
- label: m,
942
+ className: A,
943
+ onClearClick: g,
944
+ errorMessage: B,
945
+ iconEnd: n,
946
+ iconStart: c,
947
+ label: x,
949
948
  onEnter: Y,
950
949
  onKeyDown: w,
951
950
  required: E,
952
951
  search: l,
953
- password: I,
954
- type: a,
955
- labelColor: t,
956
- id: H,
957
- inputColor: S,
958
- ...G
959
- }, U) => {
960
- const O = !!c && c.length > 0, [f, y] = P(!1), T = d(), v = H ?? T;
961
- l && (n = /* @__PURE__ */ e(o, { iconId: "Search", width: 20, className: "text-success-700 focus-within:text-light-100" }), a = "search"), I && (B = /* @__PURE__ */ e(
962
- o,
952
+ password: a,
953
+ type: s,
954
+ labelColor: Q,
955
+ id: R,
956
+ inputColor: k,
957
+ ...C
958
+ }, v) => {
959
+ const r = !!B && B.length > 0, [z, O] = P(!1), t = W(), D = R ?? t;
960
+ l && (c = /* @__PURE__ */ e(I, { iconId: "Search", width: 20, className: "text-success-700 focus-within:text-light-100" }), s = "search"), a && (n = /* @__PURE__ */ e(
961
+ I,
963
962
  {
964
- iconId: f ? "EyeOutline" : "EyeOffOutline",
965
- onClick: () => y(!f),
963
+ iconId: z ? "EyeOutline" : "EyeOffOutline",
964
+ onClick: () => O(!z),
966
965
  className: "cursor-pointer",
967
966
  width: 24,
968
967
  height: 24
969
968
  }
970
- ), a = f ? "text" : "password");
971
- const K = (u) => {
972
- Y && u.key === "Enter" && Y(u), w?.(u);
973
- }, r = A && G.value && G.value.length > 0, X = (n ? "start" : "") + (B ? "end" : "");
974
- return /* @__PURE__ */ i("div", { className: x("flex flex-col w-full", g), children: [
975
- m && /* @__PURE__ */ e($e, { htmlFor: v, label: m, required: E, labelColor: t }),
969
+ ), s = z ? "text" : "password");
970
+ const K = (d) => {
971
+ Y && d.key === "Enter" && Y(d), w?.(d);
972
+ }, Z = g && C.value && C.value.length > 0, X = (c ? "start" : "") + (n ? "end" : "");
973
+ return /* @__PURE__ */ i("div", { className: m("flex flex-col w-full", A), children: [
974
+ x && /* @__PURE__ */ e($e, { htmlFor: D, label: x, required: E, labelColor: Q }),
976
975
  /* @__PURE__ */ i("div", { className: "relative flex items-center", children: [
977
- !!n && /* @__PURE__ */ e("span", { className: "absolute top-1/2 left-5 -translate-y-1/2 grid place-items-center w-6 h-6", children: n }),
976
+ !!c && /* @__PURE__ */ e("span", { className: "absolute top-1/2 left-5 -translate-y-1/2 grid place-items-center w-6 h-6", children: c }),
978
977
  /* @__PURE__ */ e(
979
978
  "input",
980
979
  {
981
- className: x(
980
+ className: m(
982
981
  "box-border w-full h-[52px] px-4 font-normal text-xs text-dark-900 bg-transparent border border-light-700 outline-none",
983
- O && "border-danger-300",
984
- n && "pl-12",
985
- B && r || B || r ? "pr-12" : "",
982
+ r && "border-danger-300",
983
+ c && "pl-12",
984
+ n && Z || n || Z ? "pr-12" : "",
986
985
  "placeholder:text-dark-200",
987
986
  "disabled:text-dark-100 disabled:cursor-not-allowed",
988
987
  "focus:text-dark-900 focus:border-light-700",
989
988
  "hover:not(:disabled):cursor-text hover:not(:disabled):border-light-700"
990
989
  ),
991
990
  style: {
992
- backgroundColor: S,
993
- ...a === "search" && { "::-webkit-search-cancel-button": { display: "none" } },
991
+ backgroundColor: k,
992
+ ...s === "search" && { "::-webkit-search-cancel-button": { display: "none" } },
994
993
  transition: "all 5000s ease-in-out 0s"
995
994
  },
996
995
  "data-icon": X,
997
- id: v,
996
+ id: D,
998
997
  name: "text",
999
998
  onKeyDown: K,
1000
- ref: U,
999
+ ref: v,
1001
1000
  required: E,
1002
- type: a,
1003
- ...G
1001
+ type: s,
1002
+ ...C
1004
1003
  }
1005
1004
  ),
1006
- r && /* @__PURE__ */ e(
1005
+ Z && /* @__PURE__ */ e(
1007
1006
  "button",
1008
1007
  {
1009
- className: x(
1008
+ className: m(
1010
1009
  "absolute top-1/2 -translate-y-1/2 cursor-pointer bg-transparent border-none w-6 h-6 text-dark-900",
1011
- B ? "right-12" : "right-5"
1010
+ n ? "right-12" : "right-5"
1012
1011
  ),
1013
- onClick: A,
1012
+ onClick: g,
1014
1013
  type: "button",
1015
- children: !I && /* @__PURE__ */ e(o, { iconId: "Close", width: 24, height: 24 })
1014
+ children: !a && /* @__PURE__ */ e(I, { iconId: "Close", width: 24, height: 24 })
1016
1015
  }
1017
1016
  ),
1018
- !!B && /* @__PURE__ */ e("span", { className: "absolute top-1/2 right-5 -translate-y-1/2 grid place-items-center w-6 h-6", children: B })
1017
+ !!n && /* @__PURE__ */ e("span", { className: "absolute top-1/2 right-5 -translate-y-1/2 grid place-items-center w-6 h-6", children: n })
1019
1018
  ] }),
1020
- O && /* @__PURE__ */ e("span", { className: "text-xs font-normal text-danger-300", children: c })
1019
+ r && /* @__PURE__ */ e("span", { className: "text-xs font-normal text-danger-300", children: B })
1021
1020
  ] });
1022
1021
  }
1023
1022
  );
1024
1023
  eg.displayName = "TextField";
1025
- const L = M(
1024
+ const y = M(
1026
1025
  ({
1027
- items: g,
1028
- triggerLabel: A = "Ещё",
1029
- triggerIcon: c = "KeyboardArrowDown",
1030
- labelTypography: B = "semibold_text_16",
1031
- className: n,
1032
- style: m,
1026
+ items: A,
1027
+ triggerLabel: g = "Ещё",
1028
+ triggerIcon: B = "KeyboardArrowDown",
1029
+ labelTypography: n = "semibold_text_16",
1030
+ className: c,
1031
+ style: x,
1033
1032
  children: Y
1034
1033
  }, w) => /* @__PURE__ */ i(
1035
1034
  "div",
1036
1035
  {
1037
1036
  ref: w,
1038
- className: x("inline-flex items-center", n),
1039
- style: m,
1037
+ className: m("inline-flex items-center", c),
1038
+ style: x,
1040
1039
  children: [
1041
- /* @__PURE__ */ i(C.Root, { children: [
1042
- /* @__PURE__ */ e(C.Trigger, { asChild: !0, children: /* @__PURE__ */ i(
1040
+ /* @__PURE__ */ i(G.Root, { children: [
1041
+ /* @__PURE__ */ e(G.Trigger, { asChild: !0, children: /* @__PURE__ */ i(
1043
1042
  "button",
1044
1043
  {
1045
- className: x(
1044
+ className: m(
1046
1045
  "flex items-center gap-2 px-3 py-1.5 text-black",
1047
1046
  "hover:text-light-900 transition-colors",
1048
1047
  "outline-none"
1049
1048
  ),
1050
- "aria-label": A,
1049
+ "aria-label": g,
1051
1050
  children: [
1052
- /* @__PURE__ */ e(s, { variant: B, children: A }),
1051
+ /* @__PURE__ */ e(o, { variant: n, children: g }),
1053
1052
  /* @__PURE__ */ e(
1054
- o,
1053
+ I,
1055
1054
  {
1056
- iconId: c,
1055
+ iconId: B,
1057
1056
  className: "h-6 w-6 transition-transform duration-300 data-[state=open]:rotate-180"
1058
1057
  }
1059
1058
  )
1060
1059
  ]
1061
1060
  }
1062
1061
  ) }),
1063
- /* @__PURE__ */ e(C.Portal, { children: /* @__PURE__ */ e(
1064
- C.Content,
1062
+ /* @__PURE__ */ e(G.Portal, { children: /* @__PURE__ */ e(
1063
+ G.Content,
1065
1064
  {
1066
- className: x(
1065
+ className: m(
1067
1066
  "z-50 min-w-[150px] bg-white shadow-lg rounded-md p-1",
1068
1067
  "max-h-[200px] overflow-auto"
1069
1068
  ),
1070
1069
  sideOffset: 4,
1071
1070
  align: "end",
1072
- children: g.map((E) => /* @__PURE__ */ e(
1073
- C.Item,
1071
+ children: A.map((E) => /* @__PURE__ */ e(
1072
+ G.Item,
1074
1073
  {
1075
1074
  asChild: !0,
1076
1075
  disabled: E.disabled,
1077
- className: x(
1076
+ className: m(
1078
1077
  "flex items-center px-3 py-1.5 text-sm cursor-pointer",
1079
1078
  "hover:bg-light-100 hover:text-success-300",
1080
1079
  "data-[disabled]:pointer-events-none data-[disabled]:text-primary-900",
1081
1080
  "outline-none"
1082
1081
  ),
1083
- children: /* @__PURE__ */ e("a", { href: E.href, children: /* @__PURE__ */ e(s, { variant: B, children: E.label }) })
1082
+ children: /* @__PURE__ */ e("a", { href: E.href, children: /* @__PURE__ */ e(o, { variant: n, children: E.label }) })
1084
1083
  },
1085
1084
  E.label
1086
1085
  ))
@@ -1092,92 +1091,130 @@ const L = M(
1092
1091
  }
1093
1092
  )
1094
1093
  );
1095
- L.displayName = "DropdownMenu";
1096
- const W = M(
1097
- ({ items: g, className: A, style: c, children: B, lengthItem: n = 5 }, m) => {
1098
- const Y = g.slice(0, n), w = g.slice(n);
1094
+ y.displayName = "DropdownMenu";
1095
+ const T = M(
1096
+ ({ items: A, className: g, style: B, children: n, lengthItem: c = 5 }, x) => {
1097
+ const Y = A.slice(0, c), w = A.slice(c);
1099
1098
  return /* @__PURE__ */ i(
1100
1099
  "ul",
1101
1100
  {
1102
- ref: m,
1103
- className: x(
1101
+ ref: x,
1102
+ className: m(
1104
1103
  "flex gap-6 justify-center items-center max-w-[630px] mx-auto",
1105
- A
1104
+ g
1106
1105
  ),
1107
- style: c,
1106
+ style: B,
1108
1107
  children: [
1109
- Y.map((E) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("a", { href: E.href, children: /* @__PURE__ */ e(s, { variant: h.semibold_text_16, children: E.label }) }) }, E.label)),
1110
- w.length > 0 && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(L, { items: w }) }),
1111
- B
1108
+ Y.map((E) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("a", { href: E.href, children: /* @__PURE__ */ e(o, { variant: h.semibold_text_16, children: E.label }) }) }, E.label)),
1109
+ w.length > 0 && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(y, { items: w }) }),
1110
+ n
1112
1111
  ]
1113
1112
  }
1114
1113
  );
1115
1114
  }
1116
1115
  );
1117
- W.displayName = "Navigation";
1118
- const gg = M(
1119
- ({
1120
- navigation: g,
1121
- navItems: A = [
1122
- { label: "Туризм", href: "/tourism" },
1123
- { label: "Транспорт", href: "/transport" },
1124
- { label: "Госуслуги", href: "/services" },
1125
- { label: "Здоровье", href: "/health" },
1126
- { label: "Образование", href: "/education" }
1127
- ],
1128
- lengthItem: c = 5,
1129
- locations: B = ["Ингушетия", "Чечня", "Дагестан"],
1130
- defaultLocation: n = "Ингушетия",
1131
- onLoginClick: m,
1132
- onMenuClick: Y,
1133
- onSearchClick: w,
1134
- className: E,
1135
- style: l
1136
- }, I) => /* @__PURE__ */ i(
1116
+ T.displayName = "Navigation";
1117
+ const gg = [
1118
+ { label: "Туризм", href: "/tourism" },
1119
+ { label: "Транспорт", href: "/transport" },
1120
+ { label: "Госуслуги", href: "/services" },
1121
+ { label: "Здоровье", href: "/health" },
1122
+ { label: "Образование", href: "/education" }
1123
+ ], Ag = ["Ингушетия", "Чечня", "Дагестан"], lg = M(function({
1124
+ navigation: g,
1125
+ navItems: B = gg,
1126
+ lengthItem: n = 5,
1127
+ locations: c = Ag,
1128
+ defaultLocation: x = c[0],
1129
+ locationValue: Y,
1130
+ onLocationChange: w,
1131
+ withSearchAndMenu: E = !1,
1132
+ onLoginClick: l,
1133
+ onMenuClick: a,
1134
+ onSearchClick: s,
1135
+ className: Q,
1136
+ sectionName: R = "",
1137
+ logoHref: k = "#",
1138
+ style: C,
1139
+ LinkComponent: v
1140
+ // например, прокинуть из next: Link
1141
+ }, r) {
1142
+ const z = Array.isArray(c) && c.length > 0, O = v ?? "a";
1143
+ return /* @__PURE__ */ i(
1137
1144
  "header",
1138
1145
  {
1139
- ref: I,
1140
- className: x(
1141
- "flex items-center justify-between px-4 py-3 bg-white shadow-md",
1142
- E
1146
+ ref: r,
1147
+ role: "banner",
1148
+ className: m(
1149
+ "flex items-center justify-between bg-white shadow-md px-3 py-3 sm:px-4",
1150
+ Q
1143
1151
  ),
1144
- style: l,
1152
+ style: C,
1145
1153
  children: [
1146
- /* @__PURE__ */ i("div", { className: "flex items-center", children: [
1147
- /* @__PURE__ */ i("div", { className: "flex items-center gap-4", children: [
1148
- /* @__PURE__ */ e("button", { onClick: Y, "aria-label": "Open menu", children: /* @__PURE__ */ e(o, { iconId: "Menu", className: "h-6 w-6 text-black" }) }),
1149
- /* @__PURE__ */ e("button", { onClick: w, "aria-label": "Search", children: /* @__PURE__ */ e(o, { iconId: "Search", className: "h-6 w-6 text-black" }) }),
1150
- /* @__PURE__ */ e(k, { variant: "small", sectionName: "Туризм" })
1154
+ /* @__PURE__ */ i("div", { className: "flex items-center min-w-0", children: [
1155
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-3 sm:gap-4", children: [
1156
+ E && /* @__PURE__ */ i(u, { children: [
1157
+ /* @__PURE__ */ e(
1158
+ "button",
1159
+ {
1160
+ type: "button",
1161
+ onClick: a,
1162
+ "aria-label": "Открыть меню",
1163
+ "aria-haspopup": "menu",
1164
+ className: "p-1",
1165
+ children: /* @__PURE__ */ e(I, { iconId: "Menu", className: "h-6 w-6 text-black" })
1166
+ }
1167
+ ),
1168
+ /* @__PURE__ */ e(
1169
+ "button",
1170
+ {
1171
+ type: "button",
1172
+ onClick: s,
1173
+ "aria-label": "Поиск",
1174
+ className: "p-1",
1175
+ children: /* @__PURE__ */ e(I, { iconId: "Search", className: "h-6 w-6 text-black" })
1176
+ }
1177
+ )
1178
+ ] }),
1179
+ /* @__PURE__ */ e(O, { href: k, "aria-label": "На главную", className: "inline-flex", children: /* @__PURE__ */ e(j, { variant: "small", sectionName: R }) })
1151
1180
  ] }),
1152
- /* @__PURE__ */ e("nav", { className: "ml-10", children: g || /* @__PURE__ */ e(W, { items: A, lengthItem: c }) })
1153
- ] }),
1154
- /* @__PURE__ */ i("div", { className: "flex items-center gap-6", children: [
1155
1181
  /* @__PURE__ */ e(
1156
- j,
1182
+ "nav",
1157
1183
  {
1158
- defaultValue: n,
1159
- className: "w-[150px]",
1184
+ className: m("ml-4 sm:ml-6", E && "hidden md:block"),
1185
+ "aria-label": "Основная навигация",
1186
+ children: g ?? /* @__PURE__ */ e(T, { items: B, lengthItem: n })
1187
+ }
1188
+ )
1189
+ ] }),
1190
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-3 sm:gap-6", children: [
1191
+ z && /* @__PURE__ */ e(
1192
+ S,
1193
+ {
1194
+ defaultValue: Y ? void 0 : x,
1195
+ value: Y,
1196
+ onValueChange: w,
1197
+ className: "w-[140px] sm:w-[150px]",
1160
1198
  labelColor: "black",
1161
- triggerIcon: /* @__PURE__ */ e(o, { iconId: "LocationOn", className: "w-6 h-6" }),
1162
- children: B.map((a) => /* @__PURE__ */ e(D, { value: a, children: a }, a))
1199
+ triggerIcon: /* @__PURE__ */ e(I, { iconId: "LocationOn", className: "w-6 h-6" }),
1200
+ "aria-label": "Выбор региона",
1201
+ children: c.map((t) => /* @__PURE__ */ e(U, { value: t, children: t }, t))
1163
1202
  }
1164
1203
  ),
1165
- /* @__PURE__ */ e(R, { onClick: m, variant: "outline", children: "Войти" })
1204
+ /* @__PURE__ */ e(F, { type: "button", onClick: l, variant: "outlineBlackText", children: "Войти" })
1166
1205
  ] })
1167
1206
  ]
1168
1207
  }
1169
- )
1170
- );
1171
- gg.displayName = "Header";
1172
- const Ag = (g, A) => /* @__PURE__ */ i(
1208
+ );
1209
+ }), cg = (A, g) => /* @__PURE__ */ i(
1173
1210
  "svg",
1174
1211
  {
1175
1212
  xmlns: "http://www.w3.org/2000/svg",
1176
1213
  xmlnsXlink: "http://www.w3.org/1999/xlink",
1177
1214
  fill: "none",
1178
1215
  viewBox: "0 0 274 395",
1179
- ref: A,
1180
- ...g,
1216
+ ref: g,
1217
+ ...A,
1181
1218
  children: [
1182
1219
  /* @__PURE__ */ e("path", { fill: "#00AA85", d: "M342.5 326.897V395h-137v-68.103z" }),
1183
1220
  /* @__PURE__ */ e(
@@ -1397,13 +1434,13 @@ const Ag = (g, A) => /* @__PURE__ */ i(
1397
1434
  ] })
1398
1435
  ]
1399
1436
  }
1400
- ), cg = M(Ag), mg = ({
1401
- children: g,
1402
- onClick: A,
1403
- variantColor: c = "success",
1404
- variantView: B = "secondary",
1405
- href: n = "#",
1406
- className: m
1437
+ ), ig = M(cg), Eg = ({
1438
+ children: A,
1439
+ onClick: g,
1440
+ variantColor: B = "success",
1441
+ variantView: n = "secondary",
1442
+ href: c = "#",
1443
+ className: x
1407
1444
  }) => {
1408
1445
  const Y = {
1409
1446
  success: {
@@ -1416,34 +1453,34 @@ const Ag = (g, A) => /* @__PURE__ */ i(
1416
1453
  bgButton: "!bg-purple-800",
1417
1454
  bgCard: "bg-purple-100"
1418
1455
  }
1419
- }, { text: w, bgButton: E, bgCard: l } = Y[c], I = B === "primary";
1456
+ }, { text: w, bgButton: E, bgCard: l } = Y[B], a = n === "primary";
1420
1457
  return /* @__PURE__ */ i(
1421
1458
  pe,
1422
1459
  {
1423
- className: x(
1460
+ className: m(
1424
1461
  "w-full flex overflow-hidden",
1425
- I ? "items-center justify-between px-7 max-h-[100px] overflow-hidden" : "max-w-[416px] flex-col justify-between relative min-h-[602px] p-7",
1462
+ a ? "items-center justify-between px-7 max-h-[100px] overflow-hidden" : "max-w-[416px] flex-col justify-between relative min-h-[602px] p-7",
1426
1463
  l,
1427
- m
1464
+ x
1428
1465
  ),
1429
1466
  children: [
1430
- /* @__PURE__ */ i("div", { className: x(I ? "flex items-center" : "flex flex-col gap-10"), children: [
1431
- /* @__PURE__ */ e(k, { iconColor: w, variant: "medium", withTM: !0 }),
1432
- /* @__PURE__ */ e("div", { className: x("ml-10", I ? "max-w-[340px] text-xs" : "max-w-[200px]"), children: g })
1467
+ /* @__PURE__ */ i("div", { className: m(a ? "flex items-center" : "flex flex-col gap-10"), children: [
1468
+ /* @__PURE__ */ e(j, { iconColor: w, variant: "medium", withTM: !0 }),
1469
+ /* @__PURE__ */ e("div", { className: m("ml-10", a ? "max-w-[340px] text-xs" : "max-w-[200px]"), children: A })
1433
1470
  ] }),
1434
- I ? /* @__PURE__ */ i(Q, { children: [
1435
- /* @__PURE__ */ e(F, { className: x("fill-current", w), width: "380px" }),
1436
- /* @__PURE__ */ e(R, { variant: "primary", className: x(E), onClick: A, children: /* @__PURE__ */ e("a", { href: n, children: "Подробнее" }) })
1437
- ] }) : /* @__PURE__ */ i(Q, { children: [
1471
+ a ? /* @__PURE__ */ i(u, { children: [
1472
+ /* @__PURE__ */ e(H, { className: m("fill-current", w), width: "380px" }),
1473
+ /* @__PURE__ */ e(F, { variant: "primary", className: m(E), onClick: g, children: /* @__PURE__ */ e("a", { href: c, children: "Подробнее" }) })
1474
+ ] }) : /* @__PURE__ */ i(u, { children: [
1438
1475
  /* @__PURE__ */ e(
1439
- cg,
1476
+ ig,
1440
1477
  {
1441
1478
  width: 380,
1442
1479
  height: 380,
1443
1480
  className: "absolute bottom-0 right-[-60px]"
1444
1481
  }
1445
1482
  ),
1446
- /* @__PURE__ */ e(s, { variant: "medium_26", className: x(w), onClick: A, children: /* @__PURE__ */ e("a", { href: n, children: "yakavkaz.ru" }) })
1483
+ /* @__PURE__ */ e(o, { variant: "medium_26", className: m(w), onClick: g, children: /* @__PURE__ */ e("a", { href: c, children: "yakavkaz.ru" }) })
1447
1484
  ] })
1448
1485
  ]
1449
1486
  }
@@ -1451,41 +1488,41 @@ const Ag = (g, A) => /* @__PURE__ */ i(
1451
1488
  };
1452
1489
  export {
1453
1490
  _ as Arrow,
1454
- mg as Banner,
1455
- F as BannerBgYak,
1456
- R as Button,
1491
+ Eg as Banner,
1492
+ H as BannerBgYak,
1493
+ F as Button,
1457
1494
  pe as Card,
1458
1495
  Pe as Checkbox,
1459
1496
  ge as CheckmarkOutline,
1460
1497
  ce as Close,
1461
- L as DropdownMenu,
1462
- o as DynamicIcon,
1498
+ y as DropdownMenu,
1499
+ I as DynamicIcon,
1463
1500
  le as Eye,
1464
1501
  Me as EyeOff,
1465
1502
  Be as EyeOffOutline,
1466
- xe as EyeOutline,
1503
+ me as EyeOutline,
1467
1504
  we as Filter,
1468
1505
  Ve as FormattedDate,
1469
- Ie as Gos,
1470
- gg as Header,
1506
+ ae as Gos,
1507
+ lg as Header,
1471
1508
  oe as Journalist,
1472
1509
  Je as KeyboardArrowDown,
1473
1510
  $e as Label,
1474
1511
  ze as LocationOn,
1475
- k as Logo,
1512
+ j as Logo,
1476
1513
  Ge as MailAuth,
1477
1514
  re as Menu,
1478
- W as Navigation,
1515
+ T as Navigation,
1479
1516
  _e as PreviewTitle,
1480
1517
  Qe as Search,
1481
- D as SelectItem,
1482
- j as Selector,
1518
+ U as SelectItem,
1519
+ S as Selector,
1483
1520
  be as Tag,
1484
1521
  ke as Telegram,
1485
1522
  eg as TextField,
1486
- s as Typography,
1523
+ o as Typography,
1487
1524
  h as TypographyVariant,
1488
- ve as Vk,
1525
+ Oe as Vk,
1489
1526
  de as VkAuth,
1490
1527
  je as Whatsaap,
1491
1528
  Le as X,