@namuna-nur/ui-kit 1.9.16 → 1.9.18

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.
@@ -1,11 +1,11 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import * as P from "react";
3
- import { forwardRef as z, useState as re, useRef as U } from "react";
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import * as z from "react";
3
+ import { forwardRef as O, useState as re, useRef as U } from "react";
4
4
  import { cn as n } from "../utils/index.js";
5
5
  import { S as X, a as te, b as oe, c as E } from "../shared/assets-icons-4.js";
6
6
  import { S as G, a as ae, b as ne, c as ie, d as de } from "../shared/assets-icons-0.js";
7
- import { T as le, a as se, P as be, b as ce, c as ue } from "../shared/shared.js";
8
- import { format as pe } from "date-fns";
7
+ import { T as le, a as se, P as be, b as ce, c as pe } from "../shared/shared.js";
8
+ import { format as ue } from "date-fns";
9
9
  import * as Y from "@radix-ui/react-switch";
10
10
  import { S as fe, a as ge } from "../shared/assets-icons-3.js";
11
11
  import * as he from "@radix-ui/react-tooltip";
@@ -13,7 +13,7 @@ import { S as xe, a as ve } from "../shared/assets-icons-2.js";
13
13
  import { useOption as ye } from "../hooks/index.js";
14
14
  import { Avatar as me, AvatarImage as ke, AvatarFallback as we } from "@radix-ui/react-avatar";
15
15
  import * as _ from "@radix-ui/react-tabs";
16
- const O = {
16
+ const W = {
17
17
  base: "group inline-flex items-center justify-center transition-colors rounded-[10px] border outline-none",
18
18
  icon: {
19
19
  disabled: {
@@ -64,51 +64,51 @@ const O = {
64
64
  hover: "hover:bg-transparent hover:text-primary-20 hover:border-transparent"
65
65
  }
66
66
  }
67
- }, Ye = z(
67
+ }, Ze = O(
68
68
  ({
69
69
  children: e,
70
70
  classNames: r,
71
71
  disabled: a = !1,
72
- icon: t,
72
+ icon: o,
73
73
  iconDimensions: d = { height: 15, width: 15 },
74
- iconPosition: l = "right",
75
- size: i = "medium",
76
- variant: b = "primary",
74
+ iconPosition: b = "right",
75
+ size: l = "medium",
76
+ variant: i = "primary",
77
77
  isShadow: s = !1,
78
- ...u
79
- }, p) => {
80
- const f = O.icon, v = O.sizes[i], g = O.variants[b] || O.variants.primary, y = f.variants[b], h = f.disabled[b];
78
+ ...p
79
+ }, u) => {
80
+ const f = W.icon, h = W.sizes[l], g = W.variants[i] || W.variants.primary, y = f.variants[i], x = f.disabled[i];
81
81
  return /* @__PURE__ */ c(
82
82
  "button",
83
83
  {
84
84
  role: "button",
85
- ...u,
86
- type: u.type || "button",
87
- ref: p,
85
+ ...p,
86
+ type: p.type || "button",
87
+ ref: u,
88
88
  disabled: a,
89
89
  className: n(
90
- O.base,
91
- v.padding,
92
- v.fontSize,
90
+ W.base,
91
+ h.padding,
92
+ h.fontSize,
93
93
  g.base,
94
94
  g.focus,
95
95
  !a && g.hover,
96
96
  !a && g.active,
97
97
  a && g.disabled,
98
- !!t && f.parent,
99
- !!t && !e && "min-w-0",
100
- b === "primary" && s && "shadow-3xl",
98
+ !!o && f.parent,
99
+ !!o && !e && "min-w-0",
100
+ i === "primary" && s && "shadow-3xl",
101
101
  r == null ? void 0 : r.base
102
102
  ),
103
103
  children: [
104
- !!t && l === "left" && /* @__PURE__ */ o(
105
- t,
104
+ !!o && b === "left" && /* @__PURE__ */ t(
105
+ o,
106
106
  {
107
107
  "aria-label": "icon",
108
108
  "aria-hidden": !0,
109
109
  className: n(
110
110
  !a && y,
111
- a && h,
111
+ a && x,
112
112
  r == null ? void 0 : r.icon
113
113
  ),
114
114
  height: d.height,
@@ -117,14 +117,14 @@ const O = {
117
117
  }
118
118
  ),
119
119
  e,
120
- !!t && l === "right" && /* @__PURE__ */ o(
121
- t,
120
+ !!o && b === "right" && /* @__PURE__ */ t(
121
+ o,
122
122
  {
123
123
  "aria-label": "icon",
124
124
  "aria-hidden": !0,
125
125
  className: n(
126
126
  !a && y,
127
- a && h,
127
+ a && x,
128
128
  r == null ? void 0 : r.icon
129
129
  ),
130
130
  height: d.height,
@@ -136,58 +136,58 @@ const O = {
136
136
  }
137
137
  );
138
138
  }
139
- ), Ze = z(
139
+ ), Me = O(
140
140
  ({
141
141
  classNames: e,
142
142
  disabled: r = !1,
143
143
  icon: a,
144
- variant: t = "default",
144
+ variant: o = "default",
145
145
  shape: d,
146
- badge: l,
147
- iconSizes: i,
148
- text: b,
146
+ badge: b,
147
+ iconSizes: l,
148
+ text: i,
149
149
  ...s
150
- }, u) => {
151
- var h;
152
- const p = R.icon, f = R.variants[t], v = p.variants[t], g = (h = R.shape) == null ? void 0 : h[d], y = p.disabled[t];
150
+ }, p) => {
151
+ var x;
152
+ const u = R.icon, f = R.variants[o], h = u.variants[o], g = (x = R.shape) == null ? void 0 : x[d], y = u.disabled[o];
153
153
  return /* @__PURE__ */ c(
154
154
  "button",
155
155
  {
156
156
  ...s,
157
157
  role: "button",
158
158
  type: s.type || "button",
159
- ref: u,
159
+ ref: p,
160
160
  disabled: r,
161
161
  className: n(
162
162
  R.base,
163
163
  f.base,
164
164
  f.focus,
165
165
  g,
166
- l && R.badgeStyles.base,
166
+ b && R.badgeStyles.base,
167
167
  !r && f.hover,
168
168
  !r && f.active,
169
169
  r && f.disabled,
170
170
  e == null ? void 0 : e.button
171
171
  ),
172
172
  children: [
173
- l && /* @__PURE__ */ o("span", { className: R.badgeStyles.badgeStyles, children: l }),
174
- !!a && /* @__PURE__ */ o(
173
+ b && /* @__PURE__ */ t("span", { className: R.badgeStyles.badgeStyles, children: b }),
174
+ !!a && /* @__PURE__ */ t(
175
175
  a,
176
176
  {
177
177
  "aria-label": "icon",
178
178
  "aria-hidden": !0,
179
179
  className: n(
180
- p.base,
181
- !r && v,
180
+ u.base,
181
+ !r && h,
182
182
  r && y,
183
183
  e == null ? void 0 : e.icon
184
184
  ),
185
- height: i == null ? void 0 : i.height,
186
- width: i == null ? void 0 : i.width,
187
- viewBox: i == null ? void 0 : i.viewBox
185
+ height: l == null ? void 0 : l.height,
186
+ width: l == null ? void 0 : l.width,
187
+ viewBox: l == null ? void 0 : l.viewBox
188
188
  }
189
189
  ),
190
- !!b && /* @__PURE__ */ o(C, { className: e == null ? void 0 : e.text, children: b })
190
+ !!i && /* @__PURE__ */ t(C, { className: e == null ? void 0 : e.text, children: i })
191
191
  ]
192
192
  }
193
193
  );
@@ -255,25 +255,25 @@ const O = {
255
255
  label: "size-2.5"
256
256
  }
257
257
  }
258
- }, Me = z(
258
+ }, Ne = O(
259
259
  ({
260
260
  checked: e = !1,
261
261
  className: r = "",
262
262
  disabled: a,
263
- id: t,
263
+ id: o,
264
264
  onChange: d,
265
- size: l = "large",
266
- ...i
267
- }, b) => {
268
- const s = A.base, u = A.sizes[l];
265
+ size: b = "large",
266
+ ...l
267
+ }, i) => {
268
+ const s = A.base, p = A.sizes[b];
269
269
  return /* @__PURE__ */ c(
270
270
  "label",
271
271
  {
272
272
  "aria-label": "checkbox-label",
273
- htmlFor: t,
273
+ htmlFor: o,
274
274
  tabIndex: 0,
275
275
  className: n(
276
- u.label,
276
+ p.label,
277
277
  s,
278
278
  e && A.checked,
279
279
  !a && A.active,
@@ -282,21 +282,21 @@ const O = {
282
282
  r
283
283
  ),
284
284
  children: [
285
- /* @__PURE__ */ o(
285
+ /* @__PURE__ */ t(
286
286
  "input",
287
287
  {
288
- ...i,
288
+ ...l,
289
289
  role: "checkbox",
290
- id: t,
290
+ id: o,
291
291
  disabled: a,
292
292
  checked: !!e,
293
293
  onChange: d,
294
- ref: b,
294
+ ref: i,
295
295
  type: "checkbox",
296
296
  className: "hidden peer"
297
297
  }
298
298
  ),
299
- /* @__PURE__ */ o(
299
+ /* @__PURE__ */ t(
300
300
  X,
301
301
  {
302
302
  width: 20,
@@ -316,67 +316,67 @@ const O = {
316
316
  h4: "text-h4",
317
317
  h5: "text-h5",
318
318
  h6: "text-h6"
319
- }, Ne = ({
319
+ }, er = ({
320
320
  children: e,
321
321
  className: r = "",
322
322
  variant: a = "h1",
323
- weight: t = "font-regular",
323
+ weight: o = "font-regular",
324
324
  ...d
325
- }) => /* @__PURE__ */ o(
325
+ }) => /* @__PURE__ */ t(
326
326
  a,
327
327
  {
328
328
  ...d,
329
- className: n(Se[a], t, r),
329
+ className: n(Se[a], o, r),
330
330
  children: e
331
331
  }
332
- ), er = z(
332
+ ), rr = O(
333
333
  ({
334
334
  disabled: e,
335
335
  onChange: r,
336
336
  placeholder: a,
337
- autoFocus: t = !1,
337
+ autoFocus: o = !1,
338
338
  status: d,
339
- maxLength: l,
340
- id: i,
341
- classNames: b,
339
+ maxLength: b,
340
+ id: l,
341
+ classNames: i,
342
342
  ...s
343
- }, u) => {
344
- const p = B.parent, f = B.base, v = B.state, g = B.disabled, y = B.styles, h = B.maxLength;
345
- return /* @__PURE__ */ c("div", { className: n(p, b == null ? void 0 : b.parent), children: [
346
- /* @__PURE__ */ o(
343
+ }, p) => {
344
+ const u = B.parent, f = B.base, h = B.state, g = B.disabled, y = B.styles, x = B.maxLength;
345
+ return /* @__PURE__ */ c("div", { className: n(u, i == null ? void 0 : i.parent), children: [
346
+ /* @__PURE__ */ t(
347
347
  "input",
348
348
  {
349
349
  ...s,
350
350
  role: "textbox",
351
- ref: u,
352
- id: i,
351
+ ref: p,
352
+ id: l,
353
353
  disabled: e,
354
- autoFocus: t,
354
+ autoFocus: o,
355
355
  onChange: r,
356
- maxLength: l,
356
+ maxLength: b,
357
357
  className: n(
358
358
  f,
359
- v.focus,
360
- !e && v.hover,
359
+ h.focus,
360
+ !e && h.hover,
361
361
  d && (y == null ? void 0 : y[d]),
362
362
  e && g,
363
- b == null ? void 0 : b.target
363
+ i == null ? void 0 : i.target
364
364
  ),
365
365
  placeholder: a
366
366
  }
367
367
  ),
368
- l && /* @__PURE__ */ c(
368
+ b && /* @__PURE__ */ c(
369
369
  C,
370
370
  {
371
371
  variant: "span",
372
372
  className: n(
373
- h,
374
- String(s.value).length === l ? "bg-danger-10" : "bg-success-10"
373
+ x,
374
+ String(s.value).length === b ? "bg-danger-10" : "bg-success-10"
375
375
  ),
376
376
  children: [
377
377
  (s.value || "").toString().length,
378
378
  "/",
379
- l
379
+ b
380
380
  ]
381
381
  }
382
382
  )
@@ -397,18 +397,18 @@ const O = {
397
397
  success: "bg-white border-success-10 ring-2 ring-success-10/[.20] hover:border-success-10"
398
398
  },
399
399
  maxLength: "ml-auto px-1 mt-1 text-body-10 text-white rounded"
400
- }, rr = P.forwardRef(
401
- ({ htmlFor: e, className: r, children: a, disabled: t, ...d }, l) => {
402
- const i = J.base, b = J.disabled;
403
- return /* @__PURE__ */ o(
400
+ }, tr = z.forwardRef(
401
+ ({ htmlFor: e, className: r, children: a, disabled: o, ...d }, b) => {
402
+ const l = J.base, i = J.disabled;
403
+ return /* @__PURE__ */ t(
404
404
  "label",
405
405
  {
406
406
  ...d,
407
407
  role: "presentation",
408
408
  "aria-label": "input-label",
409
- ref: l,
409
+ ref: b,
410
410
  htmlFor: e,
411
- className: n(i, t && b, r),
411
+ className: n(l, o && i, r),
412
412
  children: a
413
413
  }
414
414
  );
@@ -417,87 +417,87 @@ const O = {
417
417
  base: "text-secondary-10 text-sm font-sans font-semibold leading-none",
418
418
  disabled: "text-dark-30/25 cursor-not-allowed"
419
419
  }, Te = {
420
- success: /* @__PURE__ */ o(G, { className: "text-sidebar-10 fill-sidebar-10" }),
421
- danger: /* @__PURE__ */ o(ie, { className: "text-sidebar-10 fill-sidebar-10" }),
422
- info: /* @__PURE__ */ o(ne, { className: "text-sidebar-10 fill-sidebar-10" }),
423
- warning: /* @__PURE__ */ o(ae, { className: "text-sidebar-10 fill-sidebar-10" }),
424
- default: /* @__PURE__ */ o(G, { className: "text-sidebar-10 fill-sidebar-10" })
425
- }, tr = ({
420
+ success: /* @__PURE__ */ t(G, { className: "text-sidebar-10 fill-sidebar-10" }),
421
+ danger: /* @__PURE__ */ t(ie, { className: "text-sidebar-10 fill-sidebar-10" }),
422
+ info: /* @__PURE__ */ t(ne, { className: "text-sidebar-10 fill-sidebar-10" }),
423
+ warning: /* @__PURE__ */ t(ae, { className: "text-sidebar-10 fill-sidebar-10" }),
424
+ default: /* @__PURE__ */ t(G, { className: "text-sidebar-10 fill-sidebar-10" })
425
+ }, or = ({
426
426
  type: e = "info",
427
427
  title: r,
428
428
  description: a,
429
- withIcon: t = !0
429
+ withIcon: o = !0
430
430
  }) => /* @__PURE__ */ c(
431
431
  "div",
432
432
  {
433
433
  className: n(
434
- t ? "items-start" : "justify-center",
434
+ o ? "items-start" : "justify-center",
435
435
  "flex items-center gap-1.5"
436
436
  ),
437
437
  children: [
438
- t && /* @__PURE__ */ o("div", { "data-testid": "notification-icon", children: e && Te[e] }),
438
+ o && /* @__PURE__ */ t("div", { "data-testid": "notification-icon", children: e && Te[e] }),
439
439
  /* @__PURE__ */ c("div", { className: "flex flex-col", children: [
440
- /* @__PURE__ */ o(le, { className: t ? "text-left" : "text-center", children: r }),
441
- /* @__PURE__ */ o(se, { className: t ? "text-left" : "text-center", children: a })
440
+ /* @__PURE__ */ t(le, { className: o ? "text-left" : "text-center", children: r }),
441
+ /* @__PURE__ */ t(se, { className: o ? "text-left" : "text-center", children: a })
442
442
  ] })
443
443
  ]
444
444
  }
445
- ), je = P.forwardRef(
445
+ ), je = z.forwardRef(
446
446
  ({
447
447
  id: e,
448
448
  text: r,
449
449
  timestamp: a,
450
- senderName: t,
450
+ senderName: o,
451
451
  status: d,
452
- isMine: l = !1,
453
- firstMessage: i = !1,
454
- lastMessage: b = !1,
452
+ isMine: b = !1,
453
+ firstMessage: l = !1,
454
+ lastMessage: i = !1,
455
455
  classNames: s,
456
- ...u
457
- }, p) => {
458
- const f = D.base, v = D.bubbleTail, g = D.wrapper, y = D.sender, h = D.message, x = D.timestamp;
456
+ ...p
457
+ }, u) => {
458
+ const f = D.base, h = D.bubbleTail, g = D.wrapper, y = D.sender, x = D.message, v = D.timestamp;
459
459
  return /* @__PURE__ */ c(
460
460
  "div",
461
461
  {
462
- ref: p,
462
+ ref: u,
463
463
  id: e,
464
464
  "data-testid": "message",
465
465
  className: n(
466
466
  f,
467
- l && "bg-info-20 border-info-20",
467
+ b && "bg-info-20 border-info-20",
468
468
  s == null ? void 0 : s.base
469
469
  ),
470
- ...u,
470
+ ...p,
471
471
  children: [
472
472
  /* @__PURE__ */ c("div", { className: n(g.above), children: [
473
- !l && i && !!t && /* @__PURE__ */ o(
473
+ !b && l && !!o && /* @__PURE__ */ t(
474
474
  "span",
475
475
  {
476
476
  "data-testid": "sender-name",
477
477
  className: n(y, s == null ? void 0 : s.sender),
478
- children: t
478
+ children: o
479
479
  }
480
480
  ),
481
- !!r && /* @__PURE__ */ o(
481
+ !!r && /* @__PURE__ */ t(
482
482
  "span",
483
483
  {
484
484
  "data-testid": "message-text",
485
- className: n(h, s == null ? void 0 : s.message),
485
+ className: n(x, s == null ? void 0 : s.message),
486
486
  children: r
487
487
  }
488
488
  )
489
489
  ] }),
490
490
  /* @__PURE__ */ c("div", { className: g.below, children: [
491
- !!a && /* @__PURE__ */ o(
491
+ !!a && /* @__PURE__ */ t(
492
492
  "span",
493
493
  {
494
494
  "data-testid": "message-timestamp",
495
- className: n(x, s == null ? void 0 : s.timestamp),
496
- children: pe(a, "HH:mm")
495
+ className: n(v, s == null ? void 0 : s.timestamp),
496
+ children: ue(a, "HH:mm")
497
497
  }
498
498
  ),
499
- l && !!d && /* @__PURE__ */ c("div", { "data-testid": "message-status", className: "translate-y-0.5", children: [
500
- d === "delivered" && /* @__PURE__ */ o(
499
+ b && !!d && /* @__PURE__ */ c("div", { "data-testid": "message-status", className: "translate-y-0.5", children: [
500
+ d === "delivered" && /* @__PURE__ */ t(
501
501
  te,
502
502
  {
503
503
  className: "fill-dark-40/50",
@@ -506,7 +506,7 @@ const O = {
506
506
  viewBox: "0 0 24 24"
507
507
  }
508
508
  ),
509
- d === "read" && /* @__PURE__ */ o(
509
+ d === "read" && /* @__PURE__ */ t(
510
510
  oe,
511
511
  {
512
512
  className: "fill-transparent text-dark-40/50",
@@ -517,14 +517,14 @@ const O = {
517
517
  )
518
518
  ] })
519
519
  ] }),
520
- b && /* @__PURE__ */ o(
520
+ i && /* @__PURE__ */ t(
521
521
  "span",
522
522
  {
523
523
  "data-testid": "bubble-tail",
524
524
  className: n(
525
- v,
526
- !l && "-left-3",
527
- l && "-right-3 bg-info-20",
525
+ h,
526
+ !b && "-left-3",
527
+ b && "-right-3 bg-info-20",
528
528
  s == null ? void 0 : s.bubbleTail
529
529
  )
530
530
  }
@@ -545,8 +545,8 @@ const D = {
545
545
  sender: "text-primary-10 text-sm font-sans font-medium",
546
546
  message: "text-dark-30 text-xs font-sans font-medium",
547
547
  timestamp: "text-xs text-dark-40/50 leading-none"
548
- }, Ce = z(
549
- ({ checked: e, disabled: r, id: a, onChange: t, size: d = "large", className: l, ...i }, b) => {
548
+ }, Ce = O(
549
+ ({ checked: e, disabled: r, id: a, onChange: o, size: d = "large", className: b, ...l }, i) => {
550
550
  const s = k.sizes[d];
551
551
  return /* @__PURE__ */ c(
552
552
  "label",
@@ -560,26 +560,26 @@ const D = {
560
560
  !r && k.active,
561
561
  !e && !r && k.hover,
562
562
  !r && e && k.checked,
563
- l
563
+ b
564
564
  ),
565
565
  children: [
566
- /* @__PURE__ */ o(
566
+ /* @__PURE__ */ t(
567
567
  "input",
568
568
  {
569
- ...i,
569
+ ...l,
570
570
  id: a,
571
- ref: b,
571
+ ref: i,
572
572
  type: "radio",
573
573
  role: "radio",
574
574
  checked: e,
575
575
  disabled: r,
576
- onChange: t,
576
+ onChange: o,
577
577
  className: "hidden peer",
578
578
  "aria-checked": e,
579
- readOnly: !t
579
+ readOnly: !o
580
580
  }
581
581
  ),
582
- /* @__PURE__ */ o(
582
+ /* @__PURE__ */ t(
583
583
  "span",
584
584
  {
585
585
  "aria-hidden": "true",
@@ -614,11 +614,11 @@ const k = {
614
614
  label: "size-5 min-w-5"
615
615
  }
616
616
  }
617
- }, or = ({
617
+ }, ar = ({
618
618
  text: e,
619
619
  variant: r = "default",
620
620
  className: a
621
- }) => /* @__PURE__ */ o(
621
+ }) => /* @__PURE__ */ t(
622
622
  C,
623
623
  {
624
624
  className: n(K.base, K.status[r], a),
@@ -634,45 +634,45 @@ const k = {
634
634
  warning: "bg-status-30",
635
635
  default: "bg-dark-30/[.15]"
636
636
  }
637
- }, { Root: Re, Thumb: Ae } = Y, ar = P.forwardRef(({ classNames: e, ...r }, a) => {
638
- const t = r.checked ?? !1;
637
+ }, { Root: Re, Thumb: Ae } = Y, nr = z.forwardRef(({ classNames: e, ...r }, a) => {
638
+ const o = r.checked ?? !1;
639
639
  return /* @__PURE__ */ c(Re, { ref: a, className: n(T.base, e == null ? void 0 : e.root), ...r, children: [
640
- /* @__PURE__ */ o(
640
+ /* @__PURE__ */ t(
641
641
  "div",
642
642
  {
643
643
  className: n(
644
644
  T.iconWrapper.base,
645
645
  "left-0",
646
- !t && T.iconWrapper.checked
646
+ !o && T.iconWrapper.checked
647
647
  ),
648
- children: /* @__PURE__ */ o(
648
+ children: /* @__PURE__ */ t(
649
649
  fe,
650
650
  {
651
651
  "data-testid": "list-icon",
652
- className: n(t ? "fill-dark-30/25" : "fill-dark-30/[.80]")
652
+ className: n(o ? "fill-dark-30/25" : "fill-dark-30/[.80]")
653
653
  }
654
654
  )
655
655
  }
656
656
  ),
657
- /* @__PURE__ */ o(
657
+ /* @__PURE__ */ t(
658
658
  "div",
659
659
  {
660
660
  className: n(
661
661
  T.iconWrapper.base,
662
662
  "right-0",
663
- t && T.iconWrapper.checked
663
+ o && T.iconWrapper.checked
664
664
  ),
665
- children: /* @__PURE__ */ o(
665
+ children: /* @__PURE__ */ t(
666
666
  ge,
667
667
  {
668
668
  "data-testid": "grid-icon",
669
- className: n(t ? "fill-dark-30/[.80]" : "fill-dark-30/25")
669
+ className: n(o ? "fill-dark-30/[.80]" : "fill-dark-30/25")
670
670
  }
671
671
  )
672
672
  }
673
673
  ),
674
- /* @__PURE__ */ o("div", { className: n(T.borderLine) }),
675
- /* @__PURE__ */ o(Ae, { tabIndex: 1, className: n(T.thumb, e == null ? void 0 : e.thumb) })
674
+ /* @__PURE__ */ t("div", { className: n(T.borderLine) }),
675
+ /* @__PURE__ */ t(Ae, { tabIndex: 1, className: n(T.thumb, e == null ? void 0 : e.thumb) })
676
676
  ] });
677
677
  }), T = {
678
678
  base: "group relative inline-flex w-20 h-[38px] shrink-0 cursor-pointer items-center bg-gray-50 rounded-[10px] transition-colors duration-200 transition-colors",
@@ -682,7 +682,7 @@ const k = {
682
682
  checked: "bg-sidebar-10 rounded-[10px] overflow-hidden"
683
683
  },
684
684
  borderLine: "pointer-events-none absolute z-0 left-0 top-0 w-full h-full group-hover:border group-hover:border-primary-20/[.30] rounded-[10px] transition-colors duration-200"
685
- }, W = {
685
+ }, P = {
686
686
  sizes: {
687
687
  small: {
688
688
  base: "flex items-center justify-center min-w-32 bg-sidebar-10 text-xs font-medium leading-none border-[1px] rounded-md py-[7px] px-5",
@@ -712,18 +712,18 @@ const k = {
712
712
  active: "fill-white",
713
713
  disabled: "fill-dark-30/25"
714
714
  }
715
- }, nr = z(
715
+ }, ir = O(
716
716
  ({
717
717
  variant: e = "small",
718
718
  active: r,
719
719
  icon: a,
720
- disabled: t,
720
+ disabled: o,
721
721
  children: d,
722
- className: l,
723
- iconDimensions: i,
724
- ...b
722
+ className: b,
723
+ iconDimensions: l,
724
+ ...i
725
725
  }, s) => {
726
- const u = W.sizes[e];
726
+ const p = P.sizes[e];
727
727
  return /* @__PURE__ */ c(
728
728
  "button",
729
729
  {
@@ -731,27 +731,27 @@ const k = {
731
731
  "aria-selected": r,
732
732
  ref: s,
733
733
  className: n(
734
- u.base,
735
- u.default,
736
- !t && !r && u.hover,
737
- r && !t && u.active,
738
- r && !t && W.focus,
739
- t && u.disabled,
740
- l
734
+ p.base,
735
+ p.default,
736
+ !o && !r && p.hover,
737
+ r && !o && p.active,
738
+ r && !o && P.focus,
739
+ o && p.disabled,
740
+ b
741
741
  ),
742
- ...b,
742
+ ...i,
743
743
  children: [
744
- !!a && /* @__PURE__ */ o(
744
+ !!a && /* @__PURE__ */ t(
745
745
  a,
746
746
  {
747
747
  "aria-label": "icon",
748
748
  "aria-hidden": !0,
749
749
  className: n(
750
- W.icon.default,
751
- r && W.icon.active,
752
- t && W.icon.disabled
750
+ P.icon.default,
751
+ r && P.icon.active,
752
+ o && P.icon.disabled
753
753
  ),
754
- ...i
754
+ ...l
755
755
  }
756
756
  ),
757
757
  d
@@ -763,54 +763,54 @@ const k = {
763
763
  children: e,
764
764
  className: r = "",
765
765
  variant: a = "p",
766
- ...t
767
- }) => /* @__PURE__ */ o(a, { ...t, className: n(r), children: e }), ir = P.forwardRef(
766
+ ...o
767
+ }) => /* @__PURE__ */ t(a, { ...o, className: n(r), children: e }), dr = z.forwardRef(
768
768
  ({
769
769
  className: e = "",
770
770
  disabled: r,
771
771
  onChange: a,
772
- placeholder: t = "Введите текст",
772
+ placeholder: o = "Введите текст",
773
773
  autoFocus: d = !1,
774
- status: l,
775
- maxLength: i,
776
- ...b
774
+ status: b,
775
+ maxLength: l,
776
+ ...i
777
777
  }, s) => {
778
- var h, x;
779
- const u = j.base, p = j.state, f = j.disabled, v = j.styles, g = j.maxLength;
778
+ var x, v;
779
+ const p = j.base, u = j.state, f = j.disabled, h = j.styles, g = j.maxLength;
780
780
  return /* @__PURE__ */ c("div", { className: j.root, children: [
781
- /* @__PURE__ */ o(
781
+ /* @__PURE__ */ t(
782
782
  "textarea",
783
783
  {
784
- ...b,
784
+ ...i,
785
785
  role: "textbox",
786
786
  ref: s,
787
- maxLength: i,
787
+ maxLength: l,
788
788
  disabled: r,
789
789
  autoFocus: d,
790
- placeholder: t,
790
+ placeholder: o,
791
791
  onChange: a,
792
792
  className: n(
793
- u,
794
- p.focus,
795
- !r && p.hover,
796
- l && (v == null ? void 0 : v[l]),
793
+ p,
794
+ u.focus,
795
+ !r && u.hover,
796
+ b && (h == null ? void 0 : h[b]),
797
797
  r && f,
798
798
  e
799
799
  )
800
800
  }
801
801
  ),
802
- /* @__PURE__ */ o("div", { className: j.messageContainer, children: i && /* @__PURE__ */ c(
802
+ /* @__PURE__ */ t("div", { className: j.messageContainer, children: l && /* @__PURE__ */ c(
803
803
  C,
804
804
  {
805
805
  variant: "span",
806
806
  className: n(
807
807
  g,
808
- String(b.value).length === i ? "bg-danger-10 text-sidebar-10" : "bg-transparent"
808
+ String(i.value).length === l ? "bg-danger-10 text-sidebar-10" : "bg-transparent"
809
809
  ),
810
810
  children: [
811
- (x = (h = b.value || "") == null ? void 0 : h.toString()) == null ? void 0 : x.length,
811
+ (v = (x = i.value || "") == null ? void 0 : x.toString()) == null ? void 0 : v.length,
812
812
  "/",
813
- i
813
+ l
814
814
  ]
815
815
  }
816
816
  ) })
@@ -836,8 +836,8 @@ const k = {
836
836
  },
837
837
  messageContainer: "flex items-center leading-none",
838
838
  maxLength: "ml-auto p-1 text-dark-40/50 text-sm font-regular leading-none rounded"
839
- }, { Root: Be, Thumb: De } = Y, dr = P.forwardRef(
840
- ({ label: e = "", labelPosition: r = "right", disabled: a, classNames: t, ...d }, l) => /* @__PURE__ */ c(
839
+ }, { Root: Be, Thumb: De } = Y, lr = z.forwardRef(
840
+ ({ label: e = "", labelPosition: r = "right", disabled: a, classNames: o, ...d }, b) => /* @__PURE__ */ c(
841
841
  "div",
842
842
  {
843
843
  className: n(
@@ -845,30 +845,30 @@ const k = {
845
845
  r === "right" && "flex-row-reverse"
846
846
  ),
847
847
  children: [
848
- !!e && /* @__PURE__ */ o(
848
+ !!e && /* @__PURE__ */ t(
849
849
  "span",
850
850
  {
851
851
  className: n(
852
852
  $.label,
853
853
  r === "right" && "ml-2",
854
854
  a && "cursor-not-allowed text-dark-30/[.20]",
855
- t == null ? void 0 : t.label
855
+ o == null ? void 0 : o.label
856
856
  ),
857
857
  children: e
858
858
  }
859
859
  ),
860
- /* @__PURE__ */ o(
860
+ /* @__PURE__ */ t(
861
861
  Be,
862
862
  {
863
- ref: l,
863
+ ref: b,
864
864
  disabled: a,
865
- className: n($.base, t == null ? void 0 : t.base),
865
+ className: n($.base, o == null ? void 0 : o.base),
866
866
  ...d,
867
- children: /* @__PURE__ */ o(
867
+ children: /* @__PURE__ */ t(
868
868
  De,
869
869
  {
870
870
  tabIndex: 1,
871
- className: n($.thumb, t == null ? void 0 : t.thumb)
871
+ className: n($.thumb, o == null ? void 0 : o.thumb)
872
872
  }
873
873
  )
874
874
  }
@@ -880,25 +880,25 @@ const k = {
880
880
  base: "inline-flex h-8 w-[52px] shrink-0 p-1 cursor-pointer items-center rounded-full border border-success-20 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-success-20 data-[state=unchecked]:bg-secondary-10/[.08] data-[state=unchecked]:border-secondary-10/[.30] disabled:data-[state=unchecked]:bg-secondary-10/[.15] disabled:data-[state=unchecked]:border-transparent",
881
881
  label: "mr-2 text-dark-30 text-sm",
882
882
  thumb: "pointer-events-none block size-6 transition-transform rounded-full ring-0 data-[state=checked]:translate-x-3/4 data-[state=unchecked]:translate-x-0 data-[state=checked]:bg-white data-[state=unchecked]:bg-secondary-10/[.30]"
883
- }, { Provider: Fe, Root: ze, Trigger: Oe, Portal: We, Content: Pe, Arrow: Le } = he, lr = ({
883
+ }, { Provider: Fe, Root: ze, Trigger: Oe, Portal: We, Content: Pe, Arrow: Le } = he, sr = ({
884
884
  children: e,
885
885
  className: r,
886
886
  defaultOpen: a,
887
- side: t,
887
+ side: o,
888
888
  content: d,
889
- delayDuration: l = 0,
890
- isDisabled: i = !1
891
- }) => /* @__PURE__ */ o(Fe, { children: /* @__PURE__ */ c(ze, { defaultOpen: a, delayDuration: l, children: [
892
- /* @__PURE__ */ o(Oe, { asChild: !0, children: /* @__PURE__ */ o("div", { children: e }) }),
893
- !i && /* @__PURE__ */ o(We, { children: /* @__PURE__ */ c(
889
+ delayDuration: b = 0,
890
+ isDisabled: l = !1
891
+ }) => /* @__PURE__ */ t(Fe, { children: /* @__PURE__ */ c(ze, { defaultOpen: a, delayDuration: b, children: [
892
+ /* @__PURE__ */ t(Oe, { asChild: !0, children: /* @__PURE__ */ t("div", { children: e }) }),
893
+ !l && /* @__PURE__ */ t(We, { children: /* @__PURE__ */ c(
894
894
  Pe,
895
895
  {
896
- side: t,
896
+ side: o,
897
897
  sideOffset: 5,
898
898
  className: n(Q.content, r),
899
899
  children: [
900
900
  d,
901
- /* @__PURE__ */ o(Le, { className: Q.arrow })
901
+ /* @__PURE__ */ t(Le, { className: Q.arrow })
902
902
  ]
903
903
  }
904
904
  ) })
@@ -911,26 +911,26 @@ const k = {
911
911
  "data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade"
912
912
  ),
913
913
  arrow: "fill-dark-30"
914
- }, sr = ({
914
+ }, br = ({
915
915
  classNames: e,
916
916
  disabled: r,
917
917
  status: a,
918
- onChange: t,
918
+ onChange: o,
919
919
  options: d,
920
- placeholder: l = "Choose",
921
- value: i,
922
- isDotable: b,
920
+ placeholder: b = "Choose",
921
+ value: l,
922
+ isDotable: i,
923
923
  isLoading: s,
924
- autoFocusValue: u
924
+ autoFocusValue: p
925
925
  }) => {
926
- const [p, f] = re(!1), g = ye(d)(i), y = U(null), h = U(null), x = F.base, w = F.options, Z = F.status.styles, M = F.disabled.trigger, N = F.disabled.triggerText, H = ({
926
+ const [u, f] = re(!1), g = ye(d)(l), y = U(null), x = U(null), v = F.base, w = F.options, Z = F.status.styles, M = F.disabled.trigger, N = F.disabled.triggerText, H = ({
927
927
  className: m,
928
928
  text: S = ""
929
- }) => /* @__PURE__ */ o(
929
+ }) => /* @__PURE__ */ t(
930
930
  C,
931
931
  {
932
932
  className: n(
933
- x.placeholder,
933
+ v.placeholder,
934
934
  r && N,
935
935
  "truncate min-w-0 flex-1",
936
936
  m
@@ -938,10 +938,10 @@ const k = {
938
938
  children: S
939
939
  }
940
940
  ), ee = (m) => {
941
- if (m.preventDefault(), h.current) {
942
- const S = i || u;
941
+ if (m.preventDefault(), x.current) {
942
+ const S = l || p;
943
943
  if (S) {
944
- const q = h.current.querySelector(
944
+ const q = x.current.querySelector(
945
945
  `[data-value="${S}"]`
946
946
  );
947
947
  q && q.scrollIntoView({
@@ -951,48 +951,48 @@ const k = {
951
951
  }
952
952
  }
953
953
  };
954
- return /* @__PURE__ */ o("div", { className: n("w-full", e == null ? void 0 : e.parent), children: /* @__PURE__ */ c(be, { open: p, onOpenChange: f, children: [
954
+ return /* @__PURE__ */ t("div", { className: n("w-full", e == null ? void 0 : e.parent), children: /* @__PURE__ */ c(be, { open: u, onOpenChange: f, children: [
955
955
  /* @__PURE__ */ c(
956
956
  ce,
957
957
  {
958
958
  role: "listbox",
959
959
  disabled: r,
960
960
  className: n(
961
- x.trigger,
961
+ v.trigger,
962
962
  r && M,
963
- p && x.focus,
964
- !p && !r && x.hover,
965
- !p && a && Z[a],
963
+ u && v.focus,
964
+ !u && !r && v.hover,
965
+ !u && a && Z[a],
966
966
  e == null ? void 0 : e.trigger
967
967
  ),
968
968
  children: [
969
- /* @__PURE__ */ o("div", { className: x == null ? void 0 : x.textWrapper, children: i ? /* @__PURE__ */ o(
969
+ /* @__PURE__ */ t("div", { className: v == null ? void 0 : v.textWrapper, children: l ? /* @__PURE__ */ t(
970
970
  H,
971
971
  {
972
972
  text: g == null ? void 0 : g.label,
973
973
  className: n(
974
- x.selected,
974
+ v.selected,
975
975
  r && F.disabled.selectedDisabled,
976
976
  e == null ? void 0 : e.selected
977
977
  )
978
978
  }
979
- ) : /* @__PURE__ */ o(
979
+ ) : /* @__PURE__ */ t(
980
980
  H,
981
981
  {
982
- text: l,
982
+ text: b,
983
983
  className: e == null ? void 0 : e.placeholder
984
984
  }
985
985
  ) }),
986
- /* @__PURE__ */ o(
986
+ /* @__PURE__ */ t(
987
987
  xe,
988
988
  {
989
989
  width: 20,
990
990
  height: 20,
991
991
  viewBox: "0 0 20 20",
992
992
  className: n(
993
- x.icon,
994
- r && x.iconDisabled,
995
- p && "-rotate-180",
993
+ v.icon,
994
+ r && v.iconDisabled,
995
+ u && "-rotate-180",
996
996
  "flex-shrink-0"
997
997
  )
998
998
  }
@@ -1000,39 +1000,39 @@ const k = {
1000
1000
  ]
1001
1001
  }
1002
1002
  ),
1003
- /* @__PURE__ */ o("div", { ref: y, children: /* @__PURE__ */ c(
1004
- ue,
1003
+ /* @__PURE__ */ t("div", { ref: y, children: /* @__PURE__ */ c(
1004
+ pe,
1005
1005
  {
1006
1006
  container: y.current,
1007
1007
  className: n(w.content, e == null ? void 0 : e.content),
1008
1008
  style: { minWidth: "var(--radix-popper-anchor-width)" },
1009
1009
  onOpenAutoFocus: ee,
1010
- ref: h,
1010
+ ref: x,
1011
1011
  children: [
1012
- s && /* @__PURE__ */ o($e, { width: 30, height: 30 }),
1013
- !s && (d != null && d.length) ? d.map((m) => /* @__PURE__ */ o(
1012
+ s && /* @__PURE__ */ t(Ie, { width: 30, height: 30 }),
1013
+ !s && (d != null && d.length) ? d.map((m) => /* @__PURE__ */ t(
1014
1014
  "div",
1015
1015
  {
1016
1016
  "data-value": m.value,
1017
1017
  className: n(w.items),
1018
1018
  onClick: (S) => {
1019
- S.preventDefault(), S.stopPropagation(), t(m.value), f(!1);
1019
+ S.preventDefault(), S.stopPropagation(), o(m.value), f(!1);
1020
1020
  },
1021
- children: /* @__PURE__ */ o(
1021
+ children: /* @__PURE__ */ t(
1022
1022
  C,
1023
1023
  {
1024
1024
  className: n(
1025
1025
  w.itemsText,
1026
- !b && i === m.value && w.active,
1027
- b && w.dot,
1028
- b && i === m.value && "before:bg-dark-10 !font-bold"
1026
+ !i && l === m.value && w.active,
1027
+ i && w.dot,
1028
+ i && l === m.value && "before:bg-dark-10 !font-bold"
1029
1029
  ),
1030
1030
  children: m.label
1031
1031
  }
1032
1032
  )
1033
1033
  },
1034
1034
  m.value
1035
- )) : !s && /* @__PURE__ */ o("div", { className: n(w.items, "cursor-default"), children: /* @__PURE__ */ o(C, { className: n(w.itemsText), children: "Нет данных" }) })
1035
+ )) : !s && /* @__PURE__ */ t("div", { className: n(w.items, "cursor-default"), children: /* @__PURE__ */ t(C, { className: n(w.itemsText), children: "Нет данных" }) })
1036
1036
  ]
1037
1037
  }
1038
1038
  ) })
@@ -1070,87 +1070,106 @@ const k = {
1070
1070
  success: "border-success-20 ring-2 ring-success-10/[.20] hover:border-success-20"
1071
1071
  }
1072
1072
  }
1073
- }, br = ({
1074
- imageSrc: e,
1075
- alt: r,
1076
- hasBadge: a = !1,
1077
- iconSize: t,
1078
- isActive: d,
1079
- isHasCamera: l = !1,
1080
- classNames: i
1081
- }) => {
1082
- const b = L.root, s = L.image, u = L.badge;
1083
- return /* @__PURE__ */ c(
1084
- me,
1085
- {
1086
- role: "group",
1087
- "data-testid": "avatar-root",
1088
- className: n(
1089
- b,
1090
- a && "bg-dark-30/[.10]",
1091
- d && L.active,
1092
- i == null ? void 0 : i.wrapper
1093
- ),
1094
- children: [
1095
- e ? /* @__PURE__ */ o(
1096
- ke,
1097
- {
1098
- role: "img",
1099
- "data-testid": "avatar-img",
1100
- src: e,
1101
- alt: r ?? "empty-avatar",
1102
- className: n(s, i == null ? void 0 : i.img)
1103
- }
1104
- ) : /* @__PURE__ */ o(we, { children: l ? /* @__PURE__ */ o(
1105
- E,
1106
- {
1107
- width: 38,
1108
- height: 30,
1109
- className: n("fill-dark-30/[.20]", i == null ? void 0 : i.badgeIcon),
1110
- viewBox: "0 0 38 30"
1111
- }
1112
- ) : /* @__PURE__ */ o(
1113
- ve,
1114
- {
1115
- "data-testid": "icon-avatar",
1116
- "aria-label": "icon-avatar",
1117
- height: (t == null ? void 0 : t.height) ?? 17,
1118
- width: (t == null ? void 0 : t.width) ?? 17,
1119
- className: n(
1120
- "fill-sidebar-10",
1121
- a && "fill-dark-30/[.15]",
1122
- i == null ? void 0 : i.fallbackIcon
1123
- )
1124
- }
1125
- ) }),
1126
- a && /* @__PURE__ */ o(
1127
- "div",
1128
- {
1129
- "data-testid": "avatar-badge",
1130
- className: n(u.wrapper, i == null ? void 0 : i.badge),
1131
- children: d ? /* @__PURE__ */ o(
1132
- X,
1133
- {
1134
- width: 14,
1135
- height: 14,
1136
- viewBox: "0 0 20 20",
1137
- className: "fill-sidebar-10"
1138
- }
1139
- ) : /* @__PURE__ */ o(
1140
- E,
1141
- {
1142
- width: 16,
1143
- height: 13,
1144
- viewBox: "0 0 38 30",
1145
- className: n("fill-sidebar-10", i == null ? void 0 : i.badgeIcon)
1146
- }
1147
- )
1148
- }
1149
- )
1150
- ]
1151
- }
1152
- );
1153
- }, L = {
1073
+ }, _e = z.forwardRef(
1074
+ ({
1075
+ imageSrc: e,
1076
+ alt: r,
1077
+ hasBadge: a = !1,
1078
+ iconSize: o,
1079
+ isActive: d,
1080
+ isHasCamera: b = !1,
1081
+ onAvatarChange: l,
1082
+ classNames: i
1083
+ }, s) => {
1084
+ const p = L.root, u = L.image, f = L.badge;
1085
+ return /* @__PURE__ */ c(
1086
+ me,
1087
+ {
1088
+ role: "group",
1089
+ "data-testid": "avatar-root",
1090
+ onClick: () => {
1091
+ var h;
1092
+ return (h = s == null ? void 0 : s.current) == null ? void 0 : h.click();
1093
+ },
1094
+ className: n(
1095
+ p,
1096
+ a && "bg-dark-30/[.10]",
1097
+ d && L.active,
1098
+ i == null ? void 0 : i.wrapper
1099
+ ),
1100
+ children: [
1101
+ !!s && /* @__PURE__ */ t(
1102
+ "input",
1103
+ {
1104
+ ref: s,
1105
+ type: "file",
1106
+ accept: ".png,.jpg,.jpeg,image/png,image/jpeg",
1107
+ className: "hidden",
1108
+ onChange: l
1109
+ }
1110
+ ),
1111
+ e ? /* @__PURE__ */ t(
1112
+ ke,
1113
+ {
1114
+ role: "img",
1115
+ "data-testid": "avatar-img",
1116
+ src: e,
1117
+ alt: r ?? "empty-avatar",
1118
+ className: n(u, i == null ? void 0 : i.img)
1119
+ }
1120
+ ) : /* @__PURE__ */ t(we, { children: b ? /* @__PURE__ */ t(
1121
+ E,
1122
+ {
1123
+ width: 38,
1124
+ height: 30,
1125
+ className: n("fill-dark-30/[.20]", i == null ? void 0 : i.badgeIcon),
1126
+ viewBox: "0 0 38 30"
1127
+ }
1128
+ ) : /* @__PURE__ */ t(
1129
+ ve,
1130
+ {
1131
+ "data-testid": "icon-avatar",
1132
+ "aria-label": "icon-avatar",
1133
+ height: (o == null ? void 0 : o.height) ?? 17,
1134
+ width: (o == null ? void 0 : o.width) ?? 17,
1135
+ className: n(
1136
+ "fill-sidebar-10",
1137
+ a && "fill-dark-30/[.15]",
1138
+ i == null ? void 0 : i.fallbackIcon
1139
+ )
1140
+ }
1141
+ ) }),
1142
+ a && /* @__PURE__ */ t(
1143
+ "div",
1144
+ {
1145
+ "data-testid": "avatar-badge",
1146
+ className: n(f.wrapper, i == null ? void 0 : i.badge),
1147
+ children: d ? /* @__PURE__ */ t(
1148
+ X,
1149
+ {
1150
+ width: 14,
1151
+ height: 14,
1152
+ viewBox: "0 0 20 20",
1153
+ className: "fill-sidebar-10"
1154
+ }
1155
+ ) : /* @__PURE__ */ t(
1156
+ E,
1157
+ {
1158
+ width: 16,
1159
+ height: 13,
1160
+ viewBox: "0 0 38 30",
1161
+ className: n("fill-sidebar-10", i == null ? void 0 : i.badgeIcon)
1162
+ }
1163
+ )
1164
+ }
1165
+ )
1166
+ ]
1167
+ }
1168
+ );
1169
+ }
1170
+ );
1171
+ _e.displayName = "Avatar";
1172
+ const L = {
1154
1173
  root: "size-9 relative flex items-center justify-center bg-dark-30/[.10] rounded-full",
1155
1174
  image: "size-full object-center object-cover rounded-full",
1156
1175
  badge: {
@@ -1161,43 +1180,43 @@ const k = {
1161
1180
  value: e,
1162
1181
  onValueChange: r,
1163
1182
  classNames: a = {},
1164
- count: t = 3,
1183
+ count: o = 3,
1165
1184
  ...d
1166
- }) => /* @__PURE__ */ o(_.Root, { value: e, onValueChange: r, children: /* @__PURE__ */ o(
1185
+ }) => /* @__PURE__ */ t(_.Root, { value: e, onValueChange: r, children: /* @__PURE__ */ t(
1167
1186
  _.List,
1168
1187
  {
1169
1188
  className: n(I.container, a.container),
1170
1189
  ...d,
1171
- children: Array.from({ length: t }).map((l, i) => /* @__PURE__ */ o(
1190
+ children: Array.from({ length: o }).map((b, l) => /* @__PURE__ */ t(
1172
1191
  _.Trigger,
1173
1192
  {
1174
- value: String(i),
1193
+ value: String(l),
1175
1194
  className: n(
1176
1195
  I.dot,
1177
- i <= Number(e) && I.dotActive,
1196
+ l <= Number(e) && I.dotActive,
1178
1197
  a.trigger
1179
1198
  )
1180
1199
  },
1181
- i
1200
+ l
1182
1201
  ))
1183
1202
  }
1184
1203
  ) }), I = {
1185
1204
  container: "flex items-center gap-1",
1186
1205
  dot: "size-2 rounded-full bg-dark-30/[.20] transition-colors focus:outline-none focus:ring-offset-0 focus:ring-primary-10",
1187
1206
  dotActive: "bg-primary-10"
1188
- }, ur = ({ className: e, children: r, ...a }) => /* @__PURE__ */ o("div", { ...a, "data-slot": "skeleton", className: n(_e.base, e), children: r }), _e = {
1207
+ }, pr = ({ className: e, children: r, ...a }) => /* @__PURE__ */ t("div", { ...a, "data-slot": "skeleton", className: n($e.base, e), children: r }), $e = {
1189
1208
  base: "bg-gray-200 animate-pulse rounded-md"
1190
- }, $e = ({
1209
+ }, Ie = ({
1191
1210
  classNames: e,
1192
1211
  width: r = 73,
1193
1212
  height: a = 73,
1194
- isBlur: t = !1
1195
- }) => /* @__PURE__ */ o(
1213
+ isBlur: o = !1
1214
+ }) => /* @__PURE__ */ t(
1196
1215
  "div",
1197
1216
  {
1198
1217
  "data-testid": "spinner",
1199
- className: n(t ? V.blur : V.wrapper, e == null ? void 0 : e.wrapper),
1200
- children: /* @__PURE__ */ o(
1218
+ className: n(o ? V.blur : V.wrapper, e == null ? void 0 : e.wrapper),
1219
+ children: /* @__PURE__ */ t(
1201
1220
  de,
1202
1221
  {
1203
1222
  "data-testid": "spinner-icon",
@@ -1213,29 +1232,29 @@ const k = {
1213
1232
  icon: "fill-primary-10"
1214
1233
  };
1215
1234
  export {
1216
- br as Avatar,
1217
- Ye as Button,
1218
- Me as Checkbox,
1219
- Ne as Headline,
1220
- Ze as IconButton,
1221
- er as Input,
1222
- rr as Label,
1235
+ _e as Avatar,
1236
+ Ze as Button,
1237
+ Ne as Checkbox,
1238
+ er as Headline,
1239
+ Me as IconButton,
1240
+ rr as Input,
1241
+ tr as Label,
1223
1242
  je as Message,
1224
- tr as Notification,
1243
+ or as Notification,
1225
1244
  Ce as Radio,
1226
- sr as Select,
1227
- ur as Skeleton,
1228
- $e as Spinner,
1229
- or as Status,
1230
- ar as Switch,
1231
- nr as Tab,
1245
+ br as Select,
1246
+ pr as Skeleton,
1247
+ Ie as Spinner,
1248
+ ar as Status,
1249
+ nr as Switch,
1250
+ ir as Tab,
1232
1251
  cr as TabDots,
1233
1252
  C as Text,
1234
- ir as Textarea,
1235
- dr as Toggle,
1236
- lr as Tooltip,
1253
+ dr as Textarea,
1254
+ lr as Toggle,
1255
+ sr as Tooltip,
1237
1256
  L as avatarIconTokens,
1238
- O as buttonTokens,
1257
+ W as buttonTokens,
1239
1258
  A as checkboxTokens,
1240
1259
  R as iconButtonTokens,
1241
1260
  B as inputTokens,
@@ -1243,12 +1262,12 @@ export {
1243
1262
  D as messageTokens,
1244
1263
  k as radioTokens,
1245
1264
  F as selectTokens,
1246
- _e as skeletonTokens,
1265
+ $e as skeletonTokens,
1247
1266
  V as spinnerTokens,
1248
1267
  K as statusTokens,
1249
1268
  T as switchTokens,
1250
1269
  I as tabDotsTokens,
1251
- W as tabTokens,
1270
+ P as tabTokens,
1252
1271
  j as textareaTokens,
1253
1272
  $ as toggleTokens,
1254
1273
  Q as tooltipTokens