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