@namuna-nur/ui-kit 1.10.5 → 1.10.6
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 +1742 -562
- package/lib/index.js +171 -159
- package/lib/molecules/index.js +3152 -2527
- package/lib/shared/assets-icons-0.js +13 -12
- package/lib/shared/assets-icons-2.js +11 -9
- package/lib/shared/assets-icons-3.js +10 -7
- package/lib/shared/assets-icons-4.js +14 -14
- package/lib/src/assets/icons/index.d.ts +6 -1
- package/lib/src/atoms/ReplyMessage/ReplyMessage.d.ts +2 -0
- package/lib/src/atoms/ReplyMessage/ReplyMessage.stories.d.ts +12 -0
- package/lib/src/atoms/ReplyMessage/ReplyMessage.tokens.d.ts +11 -0
- package/lib/src/atoms/ReplyMessage/ReplyMessage.types.d.ts +22 -0
- package/lib/src/atoms/ReplyMessage/index.d.ts +3 -0
- package/lib/src/atoms/index.d.ts +1 -1
- package/lib/src/molecules/AudioMessage/AudioMessage.d.ts +2 -0
- package/lib/src/molecules/AudioMessage/AudioMessage.data.d.ts +4 -0
- package/lib/src/molecules/AudioMessage/AudioMessage.stories.d.ts +7 -0
- package/lib/src/molecules/AudioMessage/AudioMessage.test.d.ts +1 -0
- package/lib/src/molecules/AudioMessage/AudioMessage.tokens.d.ts +16 -0
- package/lib/src/molecules/AudioMessage/AudioMessage.types.d.ts +24 -0
- package/lib/src/molecules/AudioMessage/index.d.ts +3 -0
- package/lib/src/molecules/ChatList/ChatList.d.ts +0 -1
- package/lib/src/molecules/ChatMessage/ChatMessage.d.ts +1 -1
- package/lib/src/molecules/ChatMessage/ChatMessage.data.d.ts +1 -1
- package/lib/src/molecules/ChatMessage/ChatMessage.types.d.ts +7 -2
- package/lib/src/molecules/Combobox/Combobox.tokens.d.ts +2 -0
- package/lib/src/molecules/Combobox/Combobox.types.d.ts +4 -0
- package/lib/src/molecules/DocumentMessage/DocumentMessage.d.ts +2 -0
- package/lib/src/molecules/DocumentMessage/DocumentMessage.data.d.ts +4 -0
- package/lib/src/molecules/DocumentMessage/DocumentMessage.stories.d.ts +7 -0
- package/lib/src/molecules/DocumentMessage/DocumentMessage.test.d.ts +1 -0
- package/lib/src/molecules/DocumentMessage/DocumentMessage.tokens.d.ts +9 -0
- package/lib/src/molecules/DocumentMessage/DocumentMessage.types.d.ts +22 -0
- package/lib/src/molecules/DocumentMessage/index.d.ts +3 -0
- package/lib/src/molecules/FileCard/FileCard.d.ts +11 -0
- package/lib/src/molecules/FileCard/FileCard.stories.d.ts +7 -0
- package/lib/src/molecules/FileCard/FileCard.test.d.ts +1 -0
- package/lib/src/molecules/FileCard/FileCard.tokens.d.ts +9 -0
- package/lib/src/molecules/FileCard/FileCard.types.d.ts +15 -0
- package/lib/src/molecules/FileCard/index.d.ts +3 -0
- package/lib/src/molecules/ImageMessage/ImageMessage.d.ts +2 -0
- package/lib/src/molecules/ImageMessage/ImageMessage.data.d.ts +4 -0
- package/lib/src/molecules/ImageMessage/ImageMessage.stories.d.ts +7 -0
- package/lib/src/molecules/ImageMessage/ImageMessage.test.d.ts +1 -0
- package/lib/src/molecules/ImageMessage/ImageMessage.tokens.d.ts +6 -0
- package/lib/src/molecules/ImageMessage/ImageMessage.types.d.ts +17 -0
- package/lib/src/molecules/ImageMessage/index.d.ts +3 -0
- package/lib/src/{atoms → molecules}/Message/Message.stories.d.ts +1 -0
- package/lib/src/molecules/Message/Message.test.d.ts +1 -0
- package/lib/src/{atoms → molecules}/Message/Message.types.d.ts +5 -1
- package/lib/src/molecules/MessageSettings/MessageSettings.d.ts +1 -1
- package/lib/src/molecules/MessageSettings/MessageSettings.types.d.ts +2 -1
- package/lib/src/molecules/VideoMessage/VideoMessage.d.ts +2 -0
- package/lib/src/molecules/VideoMessage/VideoMessage.data.d.ts +4 -0
- package/lib/src/molecules/VideoMessage/VideoMessage.stories.d.ts +7 -0
- package/lib/src/molecules/VideoMessage/VideoMessage.test.d.ts +1 -0
- package/lib/src/molecules/VideoMessage/VideoMessage.tokens.d.ts +9 -0
- package/lib/src/molecules/VideoMessage/VideoMessage.types.d.ts +25 -0
- package/lib/src/molecules/VideoMessage/index.d.ts +3 -0
- package/lib/src/molecules/index.d.ts +6 -0
- package/package.json +1 -1
- /package/lib/src/atoms/{Message/Message.test.d.ts → ReplyMessage/ReplyMessage.test.d.ts} +0 -0
- /package/lib/src/{atoms → molecules}/Message/Message.d.ts +0 -0
- /package/lib/src/{atoms → molecules}/Message/Message.tokens.d.ts +0 -0
- /package/lib/src/{atoms → molecules}/Message/index.d.ts +0 -0
package/lib/atoms/index.js
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
|
|
1
|
+
import * as m from "react";
|
|
2
|
+
import { forwardRef as F, useState as Fe, useRef as ne } from "react";
|
|
3
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
4
|
+
import "@radix-ui/react-accordion";
|
|
5
|
+
import "@radix-ui/react-popover";
|
|
6
|
+
import * as Y from "@radix-ui/react-tabs";
|
|
7
|
+
import "@radix-ui/react-dialog";
|
|
8
|
+
import "@radix-ui/react-icons";
|
|
9
|
+
import "@radix-ui/react-toast";
|
|
10
|
+
import "class-variance-authority";
|
|
11
|
+
import "@radix-ui/react-progress";
|
|
12
|
+
import "@radix-ui/react-dropdown-menu";
|
|
13
|
+
import { cn as c } from "../utils/index.js";
|
|
14
|
+
import { S as he, a as de, b as Se } from "../shared/assets-icons-4.js";
|
|
15
|
+
import { S as le, a as ze, b as Ce, c as Be, d as Te } from "../shared/assets-icons-0.js";
|
|
16
|
+
import { T as Ee, a as je, P as Ae, b as We, c as Re } from "../shared/shared.js";
|
|
17
|
+
import * as X from "@radix-ui/react-switch";
|
|
18
|
+
import { S as Le, a as De } from "../shared/assets-icons-3.js";
|
|
19
|
+
import * as He from "@radix-ui/react-tooltip";
|
|
20
|
+
import { S as Me, a as Oe } from "../shared/assets-icons-2.js";
|
|
21
|
+
import { useOption as qe } from "../hooks/index.js";
|
|
22
|
+
import { Avatar as ge, AvatarImage as fe, AvatarFallback as me } from "@radix-ui/react-avatar";
|
|
23
|
+
import { format as Ie } from "date-fns";
|
|
24
|
+
import { clsx as Pe } from "clsx";
|
|
25
|
+
import { extendTailwindMerge as _e } from "tailwind-merge";
|
|
26
|
+
import { PieChart as Ve, LineChart as Ge } from "echarts/charts";
|
|
27
|
+
import { GridComponent as Ne, TitleComponent as Ue, TooltipComponent as Je, LegendComponent as Ke } from "echarts/components";
|
|
28
|
+
import * as Qe from "echarts/core";
|
|
29
|
+
import { CanvasRenderer as Xe } from "echarts/renderers";
|
|
30
|
+
const P = {
|
|
17
31
|
base: "group inline-flex items-center justify-center transition-colors rounded-[10px] border outline-none",
|
|
18
32
|
icon: {
|
|
19
33
|
disabled: {
|
|
@@ -64,135 +78,135 @@ const O = {
|
|
|
64
78
|
hover: "hover:bg-transparent hover:text-primary-20 hover:border-transparent"
|
|
65
79
|
}
|
|
66
80
|
}
|
|
67
|
-
},
|
|
81
|
+
}, $r = F(
|
|
68
82
|
({
|
|
69
83
|
children: e,
|
|
70
84
|
classNames: r,
|
|
71
|
-
disabled:
|
|
85
|
+
disabled: i = !1,
|
|
72
86
|
icon: t,
|
|
73
|
-
iconDimensions:
|
|
74
|
-
iconPosition:
|
|
75
|
-
size:
|
|
76
|
-
variant:
|
|
77
|
-
isShadow:
|
|
78
|
-
...
|
|
79
|
-
},
|
|
80
|
-
const
|
|
81
|
-
return /* @__PURE__ */
|
|
87
|
+
iconDimensions: n = { height: 15, width: 15 },
|
|
88
|
+
iconPosition: l = "right",
|
|
89
|
+
size: d = "medium",
|
|
90
|
+
variant: a = "primary",
|
|
91
|
+
isShadow: s = !1,
|
|
92
|
+
...u
|
|
93
|
+
}, f) => {
|
|
94
|
+
const g = P.icon, h = P.sizes[d], v = P.variants[a] || P.variants.primary, x = g.variants[a], y = g.disabled[a];
|
|
95
|
+
return /* @__PURE__ */ p(
|
|
82
96
|
"button",
|
|
83
97
|
{
|
|
84
98
|
role: "button",
|
|
85
|
-
...
|
|
86
|
-
type:
|
|
87
|
-
ref:
|
|
88
|
-
disabled:
|
|
89
|
-
className:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
!
|
|
96
|
-
!
|
|
97
|
-
|
|
98
|
-
!!t &&
|
|
99
|
+
...u,
|
|
100
|
+
type: u.type || "button",
|
|
101
|
+
ref: f,
|
|
102
|
+
disabled: i,
|
|
103
|
+
className: c(
|
|
104
|
+
P.base,
|
|
105
|
+
h.padding,
|
|
106
|
+
h.fontSize,
|
|
107
|
+
v.base,
|
|
108
|
+
v.focus,
|
|
109
|
+
!i && v.hover,
|
|
110
|
+
!i && v.active,
|
|
111
|
+
i && v.disabled,
|
|
112
|
+
!!t && g.parent,
|
|
99
113
|
!!t && !e && "min-w-0",
|
|
100
|
-
|
|
114
|
+
a === "primary" && s && "shadow-3xl",
|
|
101
115
|
r == null ? void 0 : r.base
|
|
102
116
|
),
|
|
103
117
|
children: [
|
|
104
|
-
!!t &&
|
|
118
|
+
!!t && l === "left" && /* @__PURE__ */ o(
|
|
105
119
|
t,
|
|
106
120
|
{
|
|
107
121
|
"aria-label": "icon",
|
|
108
122
|
"aria-hidden": !0,
|
|
109
|
-
className:
|
|
110
|
-
!
|
|
111
|
-
|
|
123
|
+
className: c(
|
|
124
|
+
!i && x,
|
|
125
|
+
i && y,
|
|
112
126
|
r == null ? void 0 : r.icon
|
|
113
127
|
),
|
|
114
|
-
height:
|
|
115
|
-
width:
|
|
116
|
-
viewBox:
|
|
128
|
+
height: n.height,
|
|
129
|
+
width: n.width,
|
|
130
|
+
viewBox: n.viewBox
|
|
117
131
|
}
|
|
118
132
|
),
|
|
119
133
|
e,
|
|
120
|
-
!!t &&
|
|
134
|
+
!!t && l === "right" && /* @__PURE__ */ o(
|
|
121
135
|
t,
|
|
122
136
|
{
|
|
123
137
|
"aria-label": "icon",
|
|
124
138
|
"aria-hidden": !0,
|
|
125
|
-
className:
|
|
126
|
-
!
|
|
127
|
-
|
|
139
|
+
className: c(
|
|
140
|
+
!i && x,
|
|
141
|
+
i && y,
|
|
128
142
|
r == null ? void 0 : r.icon
|
|
129
143
|
),
|
|
130
|
-
height:
|
|
131
|
-
width:
|
|
132
|
-
viewBox:
|
|
144
|
+
height: n.height,
|
|
145
|
+
width: n.width,
|
|
146
|
+
viewBox: n.viewBox
|
|
133
147
|
}
|
|
134
148
|
)
|
|
135
149
|
]
|
|
136
150
|
}
|
|
137
151
|
);
|
|
138
152
|
}
|
|
139
|
-
),
|
|
153
|
+
), et = F(
|
|
140
154
|
({
|
|
141
155
|
classNames: e,
|
|
142
156
|
disabled: r = !1,
|
|
143
|
-
icon:
|
|
157
|
+
icon: i,
|
|
144
158
|
variant: t = "default",
|
|
145
|
-
shape:
|
|
146
|
-
badge:
|
|
147
|
-
iconSizes:
|
|
148
|
-
text:
|
|
149
|
-
...
|
|
150
|
-
},
|
|
151
|
-
var
|
|
152
|
-
const
|
|
153
|
-
return /* @__PURE__ */
|
|
159
|
+
shape: n,
|
|
160
|
+
badge: l,
|
|
161
|
+
iconSizes: d,
|
|
162
|
+
text: a,
|
|
163
|
+
...s
|
|
164
|
+
}, u) => {
|
|
165
|
+
var y;
|
|
166
|
+
const f = L.icon, g = L.variants[t], h = f.variants[t], v = (y = L.shape) == null ? void 0 : y[n], x = f.disabled[t];
|
|
167
|
+
return /* @__PURE__ */ p(
|
|
154
168
|
"button",
|
|
155
169
|
{
|
|
156
|
-
...
|
|
170
|
+
...s,
|
|
157
171
|
role: "button",
|
|
158
|
-
type:
|
|
159
|
-
ref:
|
|
172
|
+
type: s.type || "button",
|
|
173
|
+
ref: u,
|
|
160
174
|
disabled: r,
|
|
161
|
-
className:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
!r &&
|
|
168
|
-
!r &&
|
|
169
|
-
r &&
|
|
175
|
+
className: c(
|
|
176
|
+
L.base,
|
|
177
|
+
g.base,
|
|
178
|
+
g.focus,
|
|
179
|
+
v,
|
|
180
|
+
l && L.badgeStyles.base,
|
|
181
|
+
!r && g.hover,
|
|
182
|
+
!r && g.active,
|
|
183
|
+
r && g.disabled,
|
|
170
184
|
e == null ? void 0 : e.button
|
|
171
185
|
),
|
|
172
186
|
children: [
|
|
173
|
-
|
|
174
|
-
!!
|
|
175
|
-
|
|
187
|
+
l && /* @__PURE__ */ o("span", { className: L.badgeStyles.badgeStyles, children: l }),
|
|
188
|
+
!!i && /* @__PURE__ */ o(
|
|
189
|
+
i,
|
|
176
190
|
{
|
|
177
191
|
"aria-label": "icon",
|
|
178
192
|
"aria-hidden": !0,
|
|
179
|
-
className:
|
|
180
|
-
|
|
181
|
-
!r &&
|
|
182
|
-
r &&
|
|
193
|
+
className: c(
|
|
194
|
+
f.base,
|
|
195
|
+
!r && h,
|
|
196
|
+
r && x,
|
|
183
197
|
e == null ? void 0 : e.icon
|
|
184
198
|
),
|
|
185
|
-
height:
|
|
186
|
-
width:
|
|
187
|
-
viewBox:
|
|
199
|
+
height: d == null ? void 0 : d.height,
|
|
200
|
+
width: d == null ? void 0 : d.width,
|
|
201
|
+
viewBox: d == null ? void 0 : d.viewBox
|
|
188
202
|
}
|
|
189
203
|
),
|
|
190
|
-
!!
|
|
204
|
+
!!a && /* @__PURE__ */ o(R, { className: e == null ? void 0 : e.text, children: a })
|
|
191
205
|
]
|
|
192
206
|
}
|
|
193
207
|
);
|
|
194
208
|
}
|
|
195
|
-
),
|
|
209
|
+
), L = {
|
|
196
210
|
base: "group inline-flex items-center justify-center rounded-[10px] outline-none border",
|
|
197
211
|
icon: {
|
|
198
212
|
base: "text-inherit",
|
|
@@ -238,7 +252,7 @@ const O = {
|
|
|
238
252
|
disabled: "disabled:border-transparent disabled:cursor-default"
|
|
239
253
|
}
|
|
240
254
|
}
|
|
241
|
-
},
|
|
255
|
+
}, D = {
|
|
242
256
|
active: "active:bg-tertiary-10 active:border-tertiary-10 outline-none",
|
|
243
257
|
base: "border border-secondary-10/[.25] hover:border-primary-10 flex items-center justify-center rounded-[6px] cursor-pointer",
|
|
244
258
|
checked: "bg-primary-10 border-primary-10",
|
|
@@ -255,134 +269,134 @@ const O = {
|
|
|
255
269
|
label: "size-2.5"
|
|
256
270
|
}
|
|
257
271
|
}
|
|
258
|
-
},
|
|
272
|
+
}, rt = F(
|
|
259
273
|
({
|
|
260
274
|
checked: e = !1,
|
|
261
275
|
className: r = "",
|
|
262
|
-
disabled:
|
|
276
|
+
disabled: i,
|
|
263
277
|
id: t,
|
|
264
|
-
onChange:
|
|
265
|
-
size:
|
|
266
|
-
...
|
|
267
|
-
},
|
|
268
|
-
const
|
|
269
|
-
return /* @__PURE__ */
|
|
278
|
+
onChange: n,
|
|
279
|
+
size: l = "large",
|
|
280
|
+
...d
|
|
281
|
+
}, a) => {
|
|
282
|
+
const s = D.base, u = D.sizes[l];
|
|
283
|
+
return /* @__PURE__ */ p(
|
|
270
284
|
"label",
|
|
271
285
|
{
|
|
272
286
|
"aria-label": "checkbox-label",
|
|
273
287
|
htmlFor: t,
|
|
274
288
|
tabIndex: 0,
|
|
275
|
-
className:
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
e &&
|
|
279
|
-
!
|
|
280
|
-
!
|
|
281
|
-
|
|
289
|
+
className: c(
|
|
290
|
+
u.label,
|
|
291
|
+
s,
|
|
292
|
+
e && D.checked,
|
|
293
|
+
!i && D.active,
|
|
294
|
+
!i && e && D.hover,
|
|
295
|
+
i && D.disabled,
|
|
282
296
|
r
|
|
283
297
|
),
|
|
284
298
|
children: [
|
|
285
299
|
/* @__PURE__ */ o(
|
|
286
300
|
"input",
|
|
287
301
|
{
|
|
288
|
-
...
|
|
302
|
+
...d,
|
|
289
303
|
role: "checkbox",
|
|
290
304
|
id: t,
|
|
291
|
-
disabled:
|
|
305
|
+
disabled: i,
|
|
292
306
|
checked: !!e,
|
|
293
|
-
onChange:
|
|
294
|
-
ref:
|
|
307
|
+
onChange: n,
|
|
308
|
+
ref: a,
|
|
295
309
|
type: "checkbox",
|
|
296
310
|
className: "hidden peer"
|
|
297
311
|
}
|
|
298
312
|
),
|
|
299
313
|
/* @__PURE__ */ o(
|
|
300
|
-
|
|
314
|
+
he,
|
|
301
315
|
{
|
|
302
316
|
width: 20,
|
|
303
317
|
height: 18,
|
|
304
318
|
viewBox: "0 0 20 20",
|
|
305
|
-
className:
|
|
319
|
+
className: c("opacity-0 fill-sidebar-10", e && "!opacity-100")
|
|
306
320
|
}
|
|
307
321
|
)
|
|
308
322
|
]
|
|
309
323
|
}
|
|
310
324
|
);
|
|
311
325
|
}
|
|
312
|
-
),
|
|
326
|
+
), Ye = {
|
|
313
327
|
h1: "text-h1",
|
|
314
328
|
h2: "text-h2",
|
|
315
329
|
h3: "text-h3",
|
|
316
330
|
h4: "text-h4",
|
|
317
331
|
h5: "text-h5",
|
|
318
332
|
h6: "text-h6"
|
|
319
|
-
},
|
|
333
|
+
}, tt = ({
|
|
320
334
|
children: e,
|
|
321
335
|
className: r = "",
|
|
322
|
-
variant:
|
|
336
|
+
variant: i = "h1",
|
|
323
337
|
weight: t = "font-regular",
|
|
324
|
-
...
|
|
338
|
+
...n
|
|
325
339
|
}) => /* @__PURE__ */ o(
|
|
326
|
-
|
|
340
|
+
i,
|
|
327
341
|
{
|
|
328
|
-
...
|
|
329
|
-
className:
|
|
342
|
+
...n,
|
|
343
|
+
className: c(Ye[i], t, r),
|
|
330
344
|
children: e
|
|
331
345
|
}
|
|
332
|
-
),
|
|
346
|
+
), at = F(
|
|
333
347
|
({
|
|
334
348
|
disabled: e,
|
|
335
349
|
onChange: r,
|
|
336
|
-
placeholder:
|
|
350
|
+
placeholder: i,
|
|
337
351
|
autoFocus: t = !1,
|
|
338
|
-
status:
|
|
339
|
-
maxLength:
|
|
340
|
-
id:
|
|
341
|
-
classNames:
|
|
342
|
-
...
|
|
343
|
-
},
|
|
344
|
-
const
|
|
345
|
-
return /* @__PURE__ */
|
|
352
|
+
status: n,
|
|
353
|
+
maxLength: l,
|
|
354
|
+
id: d,
|
|
355
|
+
classNames: a,
|
|
356
|
+
...s
|
|
357
|
+
}, u) => {
|
|
358
|
+
const f = H.parent, g = H.base, h = H.state, v = H.disabled, x = H.styles, y = H.maxLength;
|
|
359
|
+
return /* @__PURE__ */ p("div", { className: c(f, a == null ? void 0 : a.parent), children: [
|
|
346
360
|
/* @__PURE__ */ o(
|
|
347
361
|
"input",
|
|
348
362
|
{
|
|
349
|
-
...
|
|
363
|
+
...s,
|
|
350
364
|
role: "textbox",
|
|
351
|
-
ref:
|
|
352
|
-
id:
|
|
365
|
+
ref: u,
|
|
366
|
+
id: d,
|
|
353
367
|
disabled: e,
|
|
354
368
|
autoFocus: t,
|
|
355
369
|
onChange: r,
|
|
356
|
-
maxLength:
|
|
357
|
-
className:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
!e &&
|
|
361
|
-
|
|
362
|
-
e &&
|
|
363
|
-
|
|
370
|
+
maxLength: l,
|
|
371
|
+
className: c(
|
|
372
|
+
g,
|
|
373
|
+
h.focus,
|
|
374
|
+
!e && h.hover,
|
|
375
|
+
n && (x == null ? void 0 : x[n]),
|
|
376
|
+
e && v,
|
|
377
|
+
a == null ? void 0 : a.target
|
|
364
378
|
),
|
|
365
|
-
placeholder:
|
|
379
|
+
placeholder: i
|
|
366
380
|
}
|
|
367
381
|
),
|
|
368
|
-
|
|
369
|
-
|
|
382
|
+
l && /* @__PURE__ */ p(
|
|
383
|
+
R,
|
|
370
384
|
{
|
|
371
385
|
variant: "span",
|
|
372
|
-
className:
|
|
373
|
-
|
|
374
|
-
String(
|
|
386
|
+
className: c(
|
|
387
|
+
y,
|
|
388
|
+
String(s.value).length === l ? "bg-danger-10" : "bg-success-10"
|
|
375
389
|
),
|
|
376
390
|
children: [
|
|
377
|
-
(
|
|
391
|
+
(s.value || "").toString().length,
|
|
378
392
|
"/",
|
|
379
|
-
|
|
393
|
+
l
|
|
380
394
|
]
|
|
381
395
|
}
|
|
382
396
|
)
|
|
383
397
|
] });
|
|
384
398
|
}
|
|
385
|
-
),
|
|
399
|
+
), H = {
|
|
386
400
|
parent: "relative flex flex-col items-start w-full",
|
|
387
401
|
base: "text-dark-10 text-sm leading-none w-full rounded-[10px] bg-gray-50 border border-gray-50 p-[12.5px] placeholder:text-dark-10/[.40]",
|
|
388
402
|
disabled: "bg-secondary-10/[.08] text-gray-30 cursor-not-allowed",
|
|
@@ -397,172 +411,75 @@ const O = {
|
|
|
397
411
|
success: "bg-white border-success-10 ring-2 ring-success-10/[.20] hover:border-success-10"
|
|
398
412
|
},
|
|
399
413
|
maxLength: "ml-auto px-1 mt-1 text-body-10 text-white rounded"
|
|
400
|
-
},
|
|
401
|
-
({ htmlFor: e, className: r, children:
|
|
402
|
-
const
|
|
414
|
+
}, it = m.forwardRef(
|
|
415
|
+
({ htmlFor: e, className: r, children: i, disabled: t, ...n }, l) => {
|
|
416
|
+
const d = se.base, a = se.disabled;
|
|
403
417
|
return /* @__PURE__ */ o(
|
|
404
418
|
"label",
|
|
405
419
|
{
|
|
406
|
-
...
|
|
420
|
+
...n,
|
|
407
421
|
role: "presentation",
|
|
408
422
|
"aria-label": "input-label",
|
|
409
|
-
ref:
|
|
423
|
+
ref: l,
|
|
410
424
|
htmlFor: e,
|
|
411
|
-
className:
|
|
412
|
-
children:
|
|
425
|
+
className: c(d, t && a, r),
|
|
426
|
+
children: i
|
|
413
427
|
}
|
|
414
428
|
);
|
|
415
429
|
}
|
|
416
|
-
),
|
|
430
|
+
), se = {
|
|
417
431
|
base: "text-secondary-10 text-sm font-sans font-semibold leading-none",
|
|
418
432
|
disabled: "text-dark-30/25 cursor-not-allowed"
|
|
419
|
-
},
|
|
420
|
-
success: /* @__PURE__ */ o(
|
|
421
|
-
danger: /* @__PURE__ */ o(
|
|
422
|
-
info: /* @__PURE__ */ o(
|
|
423
|
-
warning: /* @__PURE__ */ o(
|
|
424
|
-
default: /* @__PURE__ */ o(
|
|
425
|
-
},
|
|
433
|
+
}, Ze = {
|
|
434
|
+
success: /* @__PURE__ */ o(le, { className: "text-sidebar-10 fill-sidebar-10" }),
|
|
435
|
+
danger: /* @__PURE__ */ o(Be, { className: "text-sidebar-10 fill-sidebar-10" }),
|
|
436
|
+
info: /* @__PURE__ */ o(Ce, { className: "text-sidebar-10 fill-sidebar-10" }),
|
|
437
|
+
warning: /* @__PURE__ */ o(ze, { className: "text-sidebar-10 fill-sidebar-10" }),
|
|
438
|
+
default: /* @__PURE__ */ o(le, { className: "text-sidebar-10 fill-sidebar-10" })
|
|
439
|
+
}, ot = ({
|
|
426
440
|
type: e = "info",
|
|
427
441
|
title: r,
|
|
428
|
-
description:
|
|
442
|
+
description: i,
|
|
429
443
|
withIcon: t = !0
|
|
430
|
-
}) => /* @__PURE__ */
|
|
444
|
+
}) => /* @__PURE__ */ p(
|
|
431
445
|
"div",
|
|
432
446
|
{
|
|
433
|
-
className:
|
|
447
|
+
className: c(
|
|
434
448
|
t ? "items-start" : "justify-center",
|
|
435
449
|
"flex items-center gap-1.5"
|
|
436
450
|
),
|
|
437
451
|
children: [
|
|
438
|
-
t && /* @__PURE__ */ o("div", { "data-testid": "notification-icon", children: e &&
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */ o(
|
|
441
|
-
/* @__PURE__ */ o(
|
|
452
|
+
t && /* @__PURE__ */ o("div", { "data-testid": "notification-icon", children: e && Ze[e] }),
|
|
453
|
+
/* @__PURE__ */ p("div", { className: "flex flex-col", children: [
|
|
454
|
+
/* @__PURE__ */ o(Ee, { className: t ? "text-left" : "text-center", children: r }),
|
|
455
|
+
/* @__PURE__ */ o(je, { className: t ? "text-left" : "text-center", children: i })
|
|
442
456
|
] })
|
|
443
457
|
]
|
|
444
458
|
}
|
|
445
|
-
),
|
|
446
|
-
({
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
timestamp: a,
|
|
450
|
-
senderName: t,
|
|
451
|
-
status: d,
|
|
452
|
-
isMine: s = !1,
|
|
453
|
-
selected: l = !1,
|
|
454
|
-
firstMessage: i = !1,
|
|
455
|
-
classNames: b,
|
|
456
|
-
...p
|
|
457
|
-
}, u) => {
|
|
458
|
-
const f = W.base, g = W.wrapper, h = W.sender, v = W.message, x = W.timestamp;
|
|
459
|
-
return /* @__PURE__ */ c(
|
|
460
|
-
"div",
|
|
461
|
-
{
|
|
462
|
-
ref: u,
|
|
463
|
-
id: e,
|
|
464
|
-
"data-testid": "message",
|
|
465
|
-
className: n(
|
|
466
|
-
f,
|
|
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
|
|
471
|
-
),
|
|
472
|
-
...p,
|
|
473
|
-
children: [
|
|
474
|
-
/* @__PURE__ */ c("div", { className: n(g.above), children: [
|
|
475
|
-
!s && i && !!t && /* @__PURE__ */ o(
|
|
476
|
-
"span",
|
|
477
|
-
{
|
|
478
|
-
"data-testid": "sender-name",
|
|
479
|
-
className: n(h, b == null ? void 0 : b.sender),
|
|
480
|
-
children: t
|
|
481
|
-
}
|
|
482
|
-
),
|
|
483
|
-
!!r && /* @__PURE__ */ o(
|
|
484
|
-
"span",
|
|
485
|
-
{
|
|
486
|
-
"data-testid": "message-text",
|
|
487
|
-
className: n(v, b == null ? void 0 : b.message),
|
|
488
|
-
children: r
|
|
489
|
-
}
|
|
490
|
-
)
|
|
491
|
-
] }),
|
|
492
|
-
/* @__PURE__ */ c("div", { className: g.below, children: [
|
|
493
|
-
!!a && /* @__PURE__ */ o(
|
|
494
|
-
"span",
|
|
495
|
-
{
|
|
496
|
-
"data-testid": "message-timestamp",
|
|
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
|
-
),
|
|
503
|
-
children: ue(a, "HH:mm")
|
|
504
|
-
}
|
|
505
|
-
),
|
|
506
|
-
s && !!d && /* @__PURE__ */ c("div", { "data-testid": "message-status", className: "translate-y-0.5", children: [
|
|
507
|
-
d === "delivered" && /* @__PURE__ */ o(
|
|
508
|
-
te,
|
|
509
|
-
{
|
|
510
|
-
className: "fill-primary-10",
|
|
511
|
-
width: 16,
|
|
512
|
-
height: 16,
|
|
513
|
-
viewBox: "0 0 24 24"
|
|
514
|
-
}
|
|
515
|
-
),
|
|
516
|
-
d === "read" && /* @__PURE__ */ o(
|
|
517
|
-
oe,
|
|
518
|
-
{
|
|
519
|
-
className: "fill-transparent text-primary-10",
|
|
520
|
-
width: 16,
|
|
521
|
-
height: 16,
|
|
522
|
-
viewBox: "0 0 16 16"
|
|
523
|
-
}
|
|
524
|
-
)
|
|
525
|
-
] })
|
|
526
|
-
] })
|
|
527
|
-
]
|
|
528
|
-
}
|
|
529
|
-
);
|
|
530
|
-
}
|
|
531
|
-
);
|
|
532
|
-
je.displayName = "Message";
|
|
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",
|
|
535
|
-
wrapper: {
|
|
536
|
-
above: "flex flex-col justify-center gap-0.5",
|
|
537
|
-
below: "flex items-end justify-end gap-px"
|
|
538
|
-
},
|
|
539
|
-
sender: "text-primary-10 text-sm font-sans font-medium",
|
|
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];
|
|
545
|
-
return /* @__PURE__ */ c(
|
|
459
|
+
), $e = F(
|
|
460
|
+
({ checked: e, disabled: r, id: i, onChange: t, size: n = "large", className: l, ...d }, a) => {
|
|
461
|
+
const s = z.sizes[n];
|
|
462
|
+
return /* @__PURE__ */ p(
|
|
546
463
|
"label",
|
|
547
464
|
{
|
|
548
|
-
htmlFor:
|
|
465
|
+
htmlFor: i,
|
|
549
466
|
"aria-label": "radio-label",
|
|
550
|
-
className:
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
r &&
|
|
554
|
-
!r &&
|
|
555
|
-
!e && !r &&
|
|
556
|
-
!r && e &&
|
|
557
|
-
|
|
467
|
+
className: c(
|
|
468
|
+
z.base,
|
|
469
|
+
s.label,
|
|
470
|
+
r && z.disabled,
|
|
471
|
+
!r && z.active,
|
|
472
|
+
!e && !r && z.hover,
|
|
473
|
+
!r && e && z.checked,
|
|
474
|
+
l
|
|
558
475
|
),
|
|
559
476
|
children: [
|
|
560
477
|
/* @__PURE__ */ o(
|
|
561
478
|
"input",
|
|
562
479
|
{
|
|
563
|
-
...
|
|
564
|
-
id:
|
|
565
|
-
ref:
|
|
480
|
+
...d,
|
|
481
|
+
id: i,
|
|
482
|
+
ref: a,
|
|
566
483
|
type: "radio",
|
|
567
484
|
role: "radio",
|
|
568
485
|
checked: e,
|
|
@@ -577,8 +494,8 @@ const W = {
|
|
|
577
494
|
"span",
|
|
578
495
|
{
|
|
579
496
|
"aria-hidden": "true",
|
|
580
|
-
className:
|
|
581
|
-
e ? [
|
|
497
|
+
className: c(
|
|
498
|
+
e ? [z.radio.base, z.radio[n]] : "opacity-0",
|
|
582
499
|
r && "bg-primary-30"
|
|
583
500
|
)
|
|
584
501
|
}
|
|
@@ -588,8 +505,8 @@ const W = {
|
|
|
588
505
|
);
|
|
589
506
|
}
|
|
590
507
|
);
|
|
591
|
-
|
|
592
|
-
const
|
|
508
|
+
$e.displayName = "Radio";
|
|
509
|
+
const z = {
|
|
593
510
|
base: "border-2 border-dark-30/[.15] flex items-center justify-center rounded-full cursor-pointer outline-none bg-sidebar-10/[.08]",
|
|
594
511
|
active: "active:border-primary-10",
|
|
595
512
|
hover: "hover:border-primary-20/[.30]",
|
|
@@ -608,18 +525,18 @@ const k = {
|
|
|
608
525
|
label: "size-5 min-w-5"
|
|
609
526
|
}
|
|
610
527
|
}
|
|
611
|
-
},
|
|
528
|
+
}, nt = ({
|
|
612
529
|
text: e,
|
|
613
530
|
variant: r = "default",
|
|
614
|
-
className:
|
|
531
|
+
className: i
|
|
615
532
|
}) => /* @__PURE__ */ o(
|
|
616
|
-
|
|
533
|
+
R,
|
|
617
534
|
{
|
|
618
|
-
className:
|
|
535
|
+
className: c(ce.base, ce.status[r], i),
|
|
619
536
|
"data-testid": "status",
|
|
620
537
|
children: e
|
|
621
538
|
}
|
|
622
|
-
),
|
|
539
|
+
), ce = {
|
|
623
540
|
base: "inline-flex rounded-[50px] cursor-pointer px-2.5 py-1.5 text-dark-40/[.80] text-xs font-medium leading-none",
|
|
624
541
|
status: {
|
|
625
542
|
success: "bg-success-30",
|
|
@@ -628,22 +545,22 @@ const k = {
|
|
|
628
545
|
warning: "bg-status-30",
|
|
629
546
|
default: "bg-dark-30/[.15]"
|
|
630
547
|
}
|
|
631
|
-
}, { Root:
|
|
548
|
+
}, { Root: er, Thumb: rr } = X, dt = m.forwardRef(({ classNames: e, ...r }, i) => {
|
|
632
549
|
const t = r.checked ?? !1;
|
|
633
|
-
return /* @__PURE__ */
|
|
550
|
+
return /* @__PURE__ */ p(er, { ref: i, className: c(E.base, e == null ? void 0 : e.root), ...r, children: [
|
|
634
551
|
/* @__PURE__ */ o(
|
|
635
552
|
"div",
|
|
636
553
|
{
|
|
637
|
-
className:
|
|
638
|
-
|
|
554
|
+
className: c(
|
|
555
|
+
E.iconWrapper.base,
|
|
639
556
|
"left-0",
|
|
640
|
-
!t &&
|
|
557
|
+
!t && E.iconWrapper.checked
|
|
641
558
|
),
|
|
642
559
|
children: /* @__PURE__ */ o(
|
|
643
|
-
|
|
560
|
+
Le,
|
|
644
561
|
{
|
|
645
562
|
"data-testid": "list-icon",
|
|
646
|
-
className:
|
|
563
|
+
className: c(t ? "fill-dark-30/25" : "fill-dark-30/[.80]")
|
|
647
564
|
}
|
|
648
565
|
)
|
|
649
566
|
}
|
|
@@ -651,24 +568,24 @@ const k = {
|
|
|
651
568
|
/* @__PURE__ */ o(
|
|
652
569
|
"div",
|
|
653
570
|
{
|
|
654
|
-
className:
|
|
655
|
-
|
|
571
|
+
className: c(
|
|
572
|
+
E.iconWrapper.base,
|
|
656
573
|
"right-0",
|
|
657
|
-
t &&
|
|
574
|
+
t && E.iconWrapper.checked
|
|
658
575
|
),
|
|
659
576
|
children: /* @__PURE__ */ o(
|
|
660
|
-
|
|
577
|
+
De,
|
|
661
578
|
{
|
|
662
579
|
"data-testid": "grid-icon",
|
|
663
|
-
className:
|
|
580
|
+
className: c(t ? "fill-dark-30/[.80]" : "fill-dark-30/25")
|
|
664
581
|
}
|
|
665
582
|
)
|
|
666
583
|
}
|
|
667
584
|
),
|
|
668
|
-
/* @__PURE__ */ o("div", { className:
|
|
669
|
-
/* @__PURE__ */ o(
|
|
585
|
+
/* @__PURE__ */ o("div", { className: c(E.borderLine) }),
|
|
586
|
+
/* @__PURE__ */ o(rr, { tabIndex: 1, className: c(E.thumb, e == null ? void 0 : e.thumb) })
|
|
670
587
|
] });
|
|
671
|
-
}),
|
|
588
|
+
}), E = {
|
|
672
589
|
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",
|
|
673
590
|
thumb: "pointer-events-none block z-50 size-10 bg-transparent border border-secondary-10/[.15] transition-transform rounded-[10px] ring-0 data-[state=checked]:translate-x-full data-[state=unchecked]:translate-x-0",
|
|
674
591
|
iconWrapper: {
|
|
@@ -676,7 +593,7 @@ const k = {
|
|
|
676
593
|
checked: "bg-sidebar-10 rounded-[10px] overflow-hidden"
|
|
677
594
|
},
|
|
678
595
|
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"
|
|
679
|
-
},
|
|
596
|
+
}, _ = {
|
|
680
597
|
sizes: {
|
|
681
598
|
small: {
|
|
682
599
|
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",
|
|
@@ -706,105 +623,105 @@ const k = {
|
|
|
706
623
|
active: "fill-white",
|
|
707
624
|
disabled: "fill-dark-30/25"
|
|
708
625
|
}
|
|
709
|
-
},
|
|
626
|
+
}, lt = F(
|
|
710
627
|
({
|
|
711
628
|
variant: e = "small",
|
|
712
629
|
active: r,
|
|
713
|
-
icon:
|
|
630
|
+
icon: i,
|
|
714
631
|
disabled: t,
|
|
715
|
-
children:
|
|
716
|
-
className:
|
|
717
|
-
iconDimensions:
|
|
718
|
-
...
|
|
719
|
-
},
|
|
720
|
-
const
|
|
721
|
-
return /* @__PURE__ */
|
|
632
|
+
children: n,
|
|
633
|
+
className: l,
|
|
634
|
+
iconDimensions: d,
|
|
635
|
+
...a
|
|
636
|
+
}, s) => {
|
|
637
|
+
const u = _.sizes[e];
|
|
638
|
+
return /* @__PURE__ */ p(
|
|
722
639
|
"button",
|
|
723
640
|
{
|
|
724
641
|
role: "tab",
|
|
725
642
|
"aria-selected": r,
|
|
726
|
-
ref:
|
|
727
|
-
className:
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
!t && !r &&
|
|
731
|
-
r && !t &&
|
|
732
|
-
r && !t &&
|
|
733
|
-
t &&
|
|
734
|
-
|
|
643
|
+
ref: s,
|
|
644
|
+
className: c(
|
|
645
|
+
u.base,
|
|
646
|
+
u.default,
|
|
647
|
+
!t && !r && u.hover,
|
|
648
|
+
r && !t && u.active,
|
|
649
|
+
r && !t && _.focus,
|
|
650
|
+
t && u.disabled,
|
|
651
|
+
l
|
|
735
652
|
),
|
|
736
|
-
...
|
|
653
|
+
...a,
|
|
737
654
|
children: [
|
|
738
|
-
!!
|
|
739
|
-
|
|
655
|
+
!!i && /* @__PURE__ */ o(
|
|
656
|
+
i,
|
|
740
657
|
{
|
|
741
658
|
"aria-label": "icon",
|
|
742
659
|
"aria-hidden": !0,
|
|
743
|
-
className:
|
|
744
|
-
|
|
745
|
-
r &&
|
|
746
|
-
t &&
|
|
660
|
+
className: c(
|
|
661
|
+
_.icon.default,
|
|
662
|
+
r && _.icon.active,
|
|
663
|
+
t && _.icon.disabled
|
|
747
664
|
),
|
|
748
|
-
...
|
|
665
|
+
...d
|
|
749
666
|
}
|
|
750
667
|
),
|
|
751
|
-
|
|
668
|
+
n
|
|
752
669
|
]
|
|
753
670
|
}
|
|
754
671
|
);
|
|
755
672
|
}
|
|
756
|
-
),
|
|
673
|
+
), R = ({
|
|
757
674
|
children: e,
|
|
758
675
|
className: r = "",
|
|
759
|
-
variant:
|
|
676
|
+
variant: i = "p",
|
|
760
677
|
...t
|
|
761
|
-
}) => /* @__PURE__ */ o(
|
|
678
|
+
}) => /* @__PURE__ */ o(i, { ...t, className: c(r), children: e }), st = m.forwardRef(
|
|
762
679
|
({
|
|
763
680
|
className: e = "",
|
|
764
681
|
disabled: r,
|
|
765
|
-
onChange:
|
|
682
|
+
onChange: i,
|
|
766
683
|
placeholder: t = "Введите текст",
|
|
767
|
-
autoFocus:
|
|
768
|
-
status:
|
|
769
|
-
maxLength:
|
|
770
|
-
...
|
|
771
|
-
},
|
|
772
|
-
var
|
|
773
|
-
const
|
|
774
|
-
return /* @__PURE__ */
|
|
684
|
+
autoFocus: n = !1,
|
|
685
|
+
status: l,
|
|
686
|
+
maxLength: d,
|
|
687
|
+
...a
|
|
688
|
+
}, s) => {
|
|
689
|
+
var y, w;
|
|
690
|
+
const u = j.base, f = j.state, g = j.disabled, h = j.styles, v = j.maxLength;
|
|
691
|
+
return /* @__PURE__ */ p("div", { className: j.root, children: [
|
|
775
692
|
/* @__PURE__ */ o(
|
|
776
693
|
"textarea",
|
|
777
694
|
{
|
|
778
|
-
...
|
|
695
|
+
...a,
|
|
779
696
|
role: "textbox",
|
|
780
|
-
ref:
|
|
781
|
-
maxLength:
|
|
697
|
+
ref: s,
|
|
698
|
+
maxLength: d,
|
|
782
699
|
disabled: r,
|
|
783
|
-
autoFocus:
|
|
700
|
+
autoFocus: n,
|
|
784
701
|
placeholder: t,
|
|
785
|
-
onChange:
|
|
786
|
-
className:
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
!r &&
|
|
790
|
-
|
|
791
|
-
r &&
|
|
702
|
+
onChange: i,
|
|
703
|
+
className: c(
|
|
704
|
+
u,
|
|
705
|
+
f.focus,
|
|
706
|
+
!r && f.hover,
|
|
707
|
+
l && (h == null ? void 0 : h[l]),
|
|
708
|
+
r && g,
|
|
792
709
|
e
|
|
793
710
|
)
|
|
794
711
|
}
|
|
795
712
|
),
|
|
796
|
-
/* @__PURE__ */ o("div", { className: j.messageContainer, children:
|
|
797
|
-
|
|
713
|
+
/* @__PURE__ */ o("div", { className: j.messageContainer, children: d && /* @__PURE__ */ p(
|
|
714
|
+
R,
|
|
798
715
|
{
|
|
799
716
|
variant: "span",
|
|
800
|
-
className:
|
|
801
|
-
|
|
802
|
-
String(
|
|
717
|
+
className: c(
|
|
718
|
+
v,
|
|
719
|
+
String(a.value).length === d ? "bg-danger-10 text-sidebar-10" : "bg-transparent"
|
|
803
720
|
),
|
|
804
721
|
children: [
|
|
805
|
-
(
|
|
722
|
+
(w = (y = a.value || "") == null ? void 0 : y.toString()) == null ? void 0 : w.length,
|
|
806
723
|
"/",
|
|
807
|
-
|
|
724
|
+
d
|
|
808
725
|
]
|
|
809
726
|
}
|
|
810
727
|
) })
|
|
@@ -830,11 +747,11 @@ const k = {
|
|
|
830
747
|
},
|
|
831
748
|
messageContainer: "flex items-center leading-none",
|
|
832
749
|
maxLength: "ml-auto p-1 text-dark-40/50 text-sm font-regular leading-none rounded"
|
|
833
|
-
}, { Root:
|
|
834
|
-
({ label: e = "", labelPosition: r = "right", disabled:
|
|
750
|
+
}, { Root: tr, Thumb: ar } = X, ct = m.forwardRef(
|
|
751
|
+
({ label: e = "", labelPosition: r = "right", disabled: i, classNames: t, ...n }, l) => /* @__PURE__ */ p(
|
|
835
752
|
"div",
|
|
836
753
|
{
|
|
837
|
-
className:
|
|
754
|
+
className: c(
|
|
838
755
|
"flex items-center w-fit",
|
|
839
756
|
r === "right" && "flex-row-reverse"
|
|
840
757
|
),
|
|
@@ -842,27 +759,27 @@ const k = {
|
|
|
842
759
|
!!e && /* @__PURE__ */ o(
|
|
843
760
|
"span",
|
|
844
761
|
{
|
|
845
|
-
className:
|
|
846
|
-
|
|
762
|
+
className: c(
|
|
763
|
+
Z.label,
|
|
847
764
|
r === "right" && "ml-2",
|
|
848
|
-
|
|
765
|
+
i && "cursor-not-allowed text-dark-30/[.20]",
|
|
849
766
|
t == null ? void 0 : t.label
|
|
850
767
|
),
|
|
851
768
|
children: e
|
|
852
769
|
}
|
|
853
770
|
),
|
|
854
771
|
/* @__PURE__ */ o(
|
|
855
|
-
|
|
772
|
+
tr,
|
|
856
773
|
{
|
|
857
|
-
ref:
|
|
858
|
-
disabled:
|
|
859
|
-
className:
|
|
860
|
-
...
|
|
774
|
+
ref: l,
|
|
775
|
+
disabled: i,
|
|
776
|
+
className: c(Z.base, t == null ? void 0 : t.base),
|
|
777
|
+
...n,
|
|
861
778
|
children: /* @__PURE__ */ o(
|
|
862
|
-
|
|
779
|
+
ar,
|
|
863
780
|
{
|
|
864
781
|
tabIndex: 1,
|
|
865
|
-
className:
|
|
782
|
+
className: c(Z.thumb, t == null ? void 0 : t.thumb)
|
|
866
783
|
}
|
|
867
784
|
)
|
|
868
785
|
}
|
|
@@ -870,34 +787,34 @@ const k = {
|
|
|
870
787
|
]
|
|
871
788
|
}
|
|
872
789
|
)
|
|
873
|
-
),
|
|
790
|
+
), Z = {
|
|
874
791
|
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",
|
|
875
792
|
label: "mr-2 text-dark-30 text-sm",
|
|
876
793
|
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]"
|
|
877
|
-
}, { Provider:
|
|
794
|
+
}, { Provider: ir, Root: or, Trigger: nr, Portal: dr, Content: lr, Arrow: sr } = He, bt = ({
|
|
878
795
|
children: e,
|
|
879
796
|
className: r,
|
|
880
|
-
defaultOpen:
|
|
797
|
+
defaultOpen: i,
|
|
881
798
|
side: t,
|
|
882
|
-
content:
|
|
883
|
-
delayDuration:
|
|
884
|
-
isDisabled:
|
|
885
|
-
}) => /* @__PURE__ */ o(
|
|
886
|
-
/* @__PURE__ */ o(
|
|
887
|
-
!
|
|
888
|
-
|
|
799
|
+
content: n,
|
|
800
|
+
delayDuration: l = 0,
|
|
801
|
+
isDisabled: d = !1
|
|
802
|
+
}) => /* @__PURE__ */ o(ir, { children: /* @__PURE__ */ p(or, { defaultOpen: i, delayDuration: l, children: [
|
|
803
|
+
/* @__PURE__ */ o(nr, { asChild: !0, children: /* @__PURE__ */ o("div", { children: e }) }),
|
|
804
|
+
!d && /* @__PURE__ */ o(dr, { children: /* @__PURE__ */ p(
|
|
805
|
+
lr,
|
|
889
806
|
{
|
|
890
807
|
side: t,
|
|
891
808
|
sideOffset: 5,
|
|
892
|
-
className:
|
|
809
|
+
className: c(be.content, r),
|
|
893
810
|
children: [
|
|
894
|
-
|
|
895
|
-
/* @__PURE__ */ o(
|
|
811
|
+
n,
|
|
812
|
+
/* @__PURE__ */ o(sr, { className: be.arrow })
|
|
896
813
|
]
|
|
897
814
|
}
|
|
898
815
|
) })
|
|
899
|
-
] }) }),
|
|
900
|
-
content:
|
|
816
|
+
] }) }), be = {
|
|
817
|
+
content: c(
|
|
901
818
|
"font-mono select-none w-auto h-auto max-size-32 rounded-[5px] bg-dark-30 px-4 py-2 text-[10px] text-start leading-none text-sidebar-10 z-50",
|
|
902
819
|
"animate-tooltipFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade",
|
|
903
820
|
"data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade",
|
|
@@ -905,88 +822,88 @@ const k = {
|
|
|
905
822
|
"data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade"
|
|
906
823
|
),
|
|
907
824
|
arrow: "fill-dark-30"
|
|
908
|
-
},
|
|
825
|
+
}, ut = ({
|
|
909
826
|
classNames: e,
|
|
910
827
|
disabled: r,
|
|
911
|
-
status:
|
|
828
|
+
status: i,
|
|
912
829
|
onChange: t,
|
|
913
|
-
options:
|
|
914
|
-
placeholder:
|
|
915
|
-
value:
|
|
916
|
-
isDotable:
|
|
917
|
-
isLoading:
|
|
918
|
-
autoFocusValue:
|
|
830
|
+
options: n,
|
|
831
|
+
placeholder: l = "Choose",
|
|
832
|
+
value: d,
|
|
833
|
+
isDotable: a,
|
|
834
|
+
isLoading: s,
|
|
835
|
+
autoFocusValue: u
|
|
919
836
|
}) => {
|
|
920
|
-
const [
|
|
921
|
-
className:
|
|
922
|
-
text:
|
|
837
|
+
const [f, g] = Fe(!1), v = qe(n)(d), x = ne(null), y = ne(null), w = M.base, B = M.options, xe = M.status.styles, ye = M.disabled.trigger, we = M.disabled.triggerText, ie = ({
|
|
838
|
+
className: S,
|
|
839
|
+
text: T = ""
|
|
923
840
|
}) => /* @__PURE__ */ o(
|
|
924
|
-
|
|
841
|
+
R,
|
|
925
842
|
{
|
|
926
|
-
className:
|
|
927
|
-
|
|
928
|
-
r &&
|
|
843
|
+
className: c(
|
|
844
|
+
w.placeholder,
|
|
845
|
+
r && we,
|
|
929
846
|
"truncate min-w-0 flex-1",
|
|
930
|
-
|
|
847
|
+
S
|
|
931
848
|
),
|
|
932
|
-
children:
|
|
849
|
+
children: T
|
|
933
850
|
}
|
|
934
|
-
),
|
|
935
|
-
if (
|
|
936
|
-
const
|
|
937
|
-
if (
|
|
938
|
-
const
|
|
939
|
-
`[data-value="${
|
|
851
|
+
), ke = (S) => {
|
|
852
|
+
if (S.preventDefault(), y.current) {
|
|
853
|
+
const T = d || u;
|
|
854
|
+
if (T) {
|
|
855
|
+
const oe = y.current.querySelector(
|
|
856
|
+
`[data-value="${T}"]`
|
|
940
857
|
);
|
|
941
|
-
|
|
858
|
+
oe && oe.scrollIntoView({
|
|
942
859
|
block: "center",
|
|
943
860
|
behavior: "auto"
|
|
944
861
|
});
|
|
945
862
|
}
|
|
946
863
|
}
|
|
947
864
|
};
|
|
948
|
-
return /* @__PURE__ */ o("div", { className:
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
|
|
865
|
+
return /* @__PURE__ */ o("div", { className: c("w-full", e == null ? void 0 : e.parent), children: /* @__PURE__ */ p(Ae, { open: f, onOpenChange: g, children: [
|
|
866
|
+
/* @__PURE__ */ p(
|
|
867
|
+
We,
|
|
951
868
|
{
|
|
952
869
|
role: "listbox",
|
|
953
870
|
disabled: r,
|
|
954
|
-
className:
|
|
955
|
-
|
|
956
|
-
r &&
|
|
957
|
-
|
|
958
|
-
!
|
|
959
|
-
!
|
|
871
|
+
className: c(
|
|
872
|
+
w.trigger,
|
|
873
|
+
r && ye,
|
|
874
|
+
f && w.focus,
|
|
875
|
+
!f && !r && w.hover,
|
|
876
|
+
!f && i && xe[i],
|
|
960
877
|
e == null ? void 0 : e.trigger
|
|
961
878
|
),
|
|
962
879
|
children: [
|
|
963
|
-
/* @__PURE__ */ o("div", { className:
|
|
964
|
-
|
|
880
|
+
/* @__PURE__ */ o("div", { className: w == null ? void 0 : w.textWrapper, children: d ? /* @__PURE__ */ o(
|
|
881
|
+
ie,
|
|
965
882
|
{
|
|
966
|
-
text:
|
|
967
|
-
className:
|
|
968
|
-
|
|
969
|
-
r &&
|
|
883
|
+
text: v == null ? void 0 : v.label,
|
|
884
|
+
className: c(
|
|
885
|
+
w.selected,
|
|
886
|
+
r && M.disabled.selectedDisabled,
|
|
970
887
|
e == null ? void 0 : e.selected
|
|
971
888
|
)
|
|
972
889
|
}
|
|
973
890
|
) : /* @__PURE__ */ o(
|
|
974
|
-
|
|
891
|
+
ie,
|
|
975
892
|
{
|
|
976
|
-
text:
|
|
893
|
+
text: l,
|
|
977
894
|
className: e == null ? void 0 : e.placeholder
|
|
978
895
|
}
|
|
979
896
|
) }),
|
|
980
897
|
/* @__PURE__ */ o(
|
|
981
|
-
|
|
898
|
+
Me,
|
|
982
899
|
{
|
|
983
900
|
width: 20,
|
|
984
901
|
height: 20,
|
|
985
902
|
viewBox: "0 0 20 20",
|
|
986
|
-
className:
|
|
987
|
-
|
|
988
|
-
r &&
|
|
989
|
-
|
|
903
|
+
className: c(
|
|
904
|
+
w.icon,
|
|
905
|
+
r && w.iconDisabled,
|
|
906
|
+
f && "-rotate-180",
|
|
990
907
|
"flex-shrink-0"
|
|
991
908
|
)
|
|
992
909
|
}
|
|
@@ -994,44 +911,44 @@ const k = {
|
|
|
994
911
|
]
|
|
995
912
|
}
|
|
996
913
|
),
|
|
997
|
-
/* @__PURE__ */ o("div", { ref:
|
|
998
|
-
|
|
914
|
+
/* @__PURE__ */ o("div", { ref: x, children: /* @__PURE__ */ p(
|
|
915
|
+
Re,
|
|
999
916
|
{
|
|
1000
|
-
container:
|
|
1001
|
-
className:
|
|
917
|
+
container: x.current,
|
|
918
|
+
className: c(B.content, e == null ? void 0 : e.content),
|
|
1002
919
|
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
1003
|
-
onOpenAutoFocus:
|
|
1004
|
-
ref:
|
|
920
|
+
onOpenAutoFocus: ke,
|
|
921
|
+
ref: y,
|
|
1005
922
|
children: [
|
|
1006
|
-
|
|
1007
|
-
!
|
|
923
|
+
s && /* @__PURE__ */ o(ur, { width: 30, height: 30 }),
|
|
924
|
+
!s && (n != null && n.length) ? n.map((S) => /* @__PURE__ */ o(
|
|
1008
925
|
"div",
|
|
1009
926
|
{
|
|
1010
|
-
"data-value":
|
|
1011
|
-
className:
|
|
1012
|
-
onClick: (
|
|
1013
|
-
|
|
927
|
+
"data-value": S.value,
|
|
928
|
+
className: B.items,
|
|
929
|
+
onClick: (T) => {
|
|
930
|
+
T.preventDefault(), T.stopPropagation(), t(S.value), g(!1);
|
|
1014
931
|
},
|
|
1015
932
|
children: /* @__PURE__ */ o(
|
|
1016
|
-
|
|
933
|
+
R,
|
|
1017
934
|
{
|
|
1018
|
-
className:
|
|
1019
|
-
|
|
1020
|
-
!
|
|
1021
|
-
|
|
1022
|
-
|
|
935
|
+
className: c(
|
|
936
|
+
B.itemsText,
|
|
937
|
+
!a && d === S.value && B.active,
|
|
938
|
+
a && B.dot,
|
|
939
|
+
a && d === S.value && "before:bg-dark-10 !font-bold"
|
|
1023
940
|
),
|
|
1024
|
-
children:
|
|
941
|
+
children: S.label
|
|
1025
942
|
}
|
|
1026
943
|
)
|
|
1027
944
|
},
|
|
1028
|
-
|
|
1029
|
-
)) : !
|
|
945
|
+
S.value
|
|
946
|
+
)) : !s && /* @__PURE__ */ o("div", { className: c(B.items, "cursor-default"), children: /* @__PURE__ */ o(R, { className: c(B.itemsText), children: "Нет данных" }) })
|
|
1030
947
|
]
|
|
1031
948
|
}
|
|
1032
949
|
) })
|
|
1033
950
|
] }) });
|
|
1034
|
-
},
|
|
951
|
+
}, M = {
|
|
1035
952
|
container: "w-full flex items-start flex-col gap-1.5",
|
|
1036
953
|
base: {
|
|
1037
954
|
icon: "ml-auto fill-sidebar-30/[.70] rounded hover:cursor-pointer transition-transform durantion-300",
|
|
@@ -1064,82 +981,82 @@ const k = {
|
|
|
1064
981
|
success: "border-success-20 ring-2 ring-success-10/[.20] hover:border-success-20"
|
|
1065
982
|
}
|
|
1066
983
|
}
|
|
1067
|
-
},
|
|
984
|
+
}, cr = m.forwardRef(
|
|
1068
985
|
({
|
|
1069
986
|
imageSrc: e,
|
|
1070
987
|
alt: r,
|
|
1071
|
-
hasBadge:
|
|
988
|
+
hasBadge: i = !1,
|
|
1072
989
|
iconSize: t,
|
|
1073
|
-
isActive:
|
|
1074
|
-
isHasCamera:
|
|
1075
|
-
onAvatarChange:
|
|
1076
|
-
classNames:
|
|
1077
|
-
},
|
|
1078
|
-
const
|
|
1079
|
-
return /* @__PURE__ */
|
|
1080
|
-
|
|
990
|
+
isActive: n,
|
|
991
|
+
isHasCamera: l = !1,
|
|
992
|
+
onAvatarChange: d,
|
|
993
|
+
classNames: a
|
|
994
|
+
}, s) => {
|
|
995
|
+
const u = J.root, f = J.image, g = J.badge;
|
|
996
|
+
return /* @__PURE__ */ p(
|
|
997
|
+
ge,
|
|
1081
998
|
{
|
|
1082
999
|
role: "group",
|
|
1083
1000
|
"data-testid": "avatar-root",
|
|
1084
1001
|
onClick: () => {
|
|
1085
|
-
var
|
|
1086
|
-
return (
|
|
1002
|
+
var h;
|
|
1003
|
+
return (h = s == null ? void 0 : s.current) == null ? void 0 : h.click();
|
|
1087
1004
|
},
|
|
1088
|
-
className:
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1005
|
+
className: c(
|
|
1006
|
+
u,
|
|
1007
|
+
i && "bg-dark-30/[.10]",
|
|
1008
|
+
n && J.active,
|
|
1009
|
+
a == null ? void 0 : a.wrapper
|
|
1093
1010
|
),
|
|
1094
1011
|
children: [
|
|
1095
|
-
!!
|
|
1012
|
+
!!s && /* @__PURE__ */ o(
|
|
1096
1013
|
"input",
|
|
1097
1014
|
{
|
|
1098
|
-
ref:
|
|
1015
|
+
ref: s,
|
|
1099
1016
|
type: "file",
|
|
1100
1017
|
accept: ".png,.jpg,.jpeg,image/png,image/jpeg",
|
|
1101
1018
|
className: "hidden",
|
|
1102
|
-
onChange:
|
|
1019
|
+
onChange: d
|
|
1103
1020
|
}
|
|
1104
1021
|
),
|
|
1105
1022
|
e ? /* @__PURE__ */ o(
|
|
1106
|
-
|
|
1023
|
+
fe,
|
|
1107
1024
|
{
|
|
1108
1025
|
role: "img",
|
|
1109
1026
|
"data-testid": "avatar-img",
|
|
1110
1027
|
src: e,
|
|
1111
1028
|
alt: r ?? "empty-avatar",
|
|
1112
|
-
className:
|
|
1029
|
+
className: c(f, a == null ? void 0 : a.img)
|
|
1113
1030
|
}
|
|
1114
|
-
) : /* @__PURE__ */ o(
|
|
1115
|
-
|
|
1031
|
+
) : /* @__PURE__ */ o(me, { children: l ? /* @__PURE__ */ o(
|
|
1032
|
+
de,
|
|
1116
1033
|
{
|
|
1117
1034
|
width: 38,
|
|
1118
1035
|
height: 30,
|
|
1119
|
-
className:
|
|
1036
|
+
className: c("fill-dark-30/[.20]", a == null ? void 0 : a.badgeIcon),
|
|
1120
1037
|
viewBox: "0 0 38 30"
|
|
1121
1038
|
}
|
|
1122
1039
|
) : /* @__PURE__ */ o(
|
|
1123
|
-
|
|
1040
|
+
Oe,
|
|
1124
1041
|
{
|
|
1125
1042
|
"data-testid": "icon-avatar",
|
|
1126
1043
|
"aria-label": "icon-avatar",
|
|
1127
1044
|
height: (t == null ? void 0 : t.height) ?? 17,
|
|
1128
1045
|
width: (t == null ? void 0 : t.width) ?? 17,
|
|
1129
|
-
className:
|
|
1046
|
+
className: c(
|
|
1130
1047
|
"fill-sidebar-10",
|
|
1131
|
-
|
|
1132
|
-
|
|
1048
|
+
i && "fill-dark-30/[.15]",
|
|
1049
|
+
a == null ? void 0 : a.fallbackIcon
|
|
1133
1050
|
)
|
|
1134
1051
|
}
|
|
1135
1052
|
) }),
|
|
1136
|
-
|
|
1053
|
+
i && /* @__PURE__ */ o(
|
|
1137
1054
|
"div",
|
|
1138
1055
|
{
|
|
1139
1056
|
"data-testid": "avatar-badge",
|
|
1140
|
-
className:
|
|
1141
|
-
children:
|
|
1142
|
-
|
|
1057
|
+
className: c(g.wrapper, a == null ? void 0 : a.badge),
|
|
1058
|
+
children: n ? /* @__PURE__ */ o(
|
|
1059
|
+
he,
|
|
1143
1060
|
{
|
|
1144
1061
|
width: 14,
|
|
1145
1062
|
height: 14,
|
|
@@ -1147,12 +1064,12 @@ const k = {
|
|
|
1147
1064
|
className: "fill-sidebar-10"
|
|
1148
1065
|
}
|
|
1149
1066
|
) : /* @__PURE__ */ o(
|
|
1150
|
-
|
|
1067
|
+
de,
|
|
1151
1068
|
{
|
|
1152
1069
|
width: 16,
|
|
1153
1070
|
height: 13,
|
|
1154
1071
|
viewBox: "0 0 38 30",
|
|
1155
|
-
className:
|
|
1072
|
+
className: c("fill-sidebar-10", a == null ? void 0 : a.badgeIcon)
|
|
1156
1073
|
}
|
|
1157
1074
|
)
|
|
1158
1075
|
}
|
|
@@ -1162,107 +1079,1370 @@ const k = {
|
|
|
1162
1079
|
);
|
|
1163
1080
|
}
|
|
1164
1081
|
);
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1082
|
+
cr.displayName = "Avatar";
|
|
1083
|
+
const J = {
|
|
1167
1084
|
root: "size-9 relative flex items-center justify-center bg-dark-30/[.10] rounded-full",
|
|
1168
1085
|
image: "size-full object-center object-cover rounded-full",
|
|
1169
1086
|
badge: {
|
|
1170
1087
|
wrapper: "absolute bottom-2 right-2 transform translate-x-1/4 translate-y-1/4 flex items-center justify-center bg-primary-10 px-2.5 py-3 border-2 border-sidebar-10 rounded-full"
|
|
1171
1088
|
},
|
|
1172
1089
|
active: "ring ring-2 ring-offset-1 ring-primary-10"
|
|
1173
|
-
},
|
|
1090
|
+
}, pt = ({
|
|
1174
1091
|
value: e,
|
|
1175
1092
|
onValueChange: r,
|
|
1176
|
-
classNames:
|
|
1093
|
+
classNames: i = {},
|
|
1177
1094
|
count: t = 3,
|
|
1178
|
-
...
|
|
1179
|
-
}) => /* @__PURE__ */ o(
|
|
1180
|
-
|
|
1095
|
+
...n
|
|
1096
|
+
}) => /* @__PURE__ */ o(Y.Root, { value: e, onValueChange: r, children: /* @__PURE__ */ o(
|
|
1097
|
+
Y.List,
|
|
1181
1098
|
{
|
|
1182
|
-
className:
|
|
1183
|
-
...
|
|
1184
|
-
children: Array.from({ length: t }).map((
|
|
1185
|
-
|
|
1099
|
+
className: c($.container, i.container),
|
|
1100
|
+
...n,
|
|
1101
|
+
children: Array.from({ length: t }).map((l, d) => /* @__PURE__ */ o(
|
|
1102
|
+
Y.Trigger,
|
|
1186
1103
|
{
|
|
1187
|
-
value: String(
|
|
1188
|
-
className:
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1104
|
+
value: String(d),
|
|
1105
|
+
className: c(
|
|
1106
|
+
$.dot,
|
|
1107
|
+
d <= Number(e) && $.dotActive,
|
|
1108
|
+
i.trigger
|
|
1192
1109
|
)
|
|
1193
1110
|
},
|
|
1194
|
-
|
|
1111
|
+
d
|
|
1195
1112
|
))
|
|
1196
1113
|
}
|
|
1197
|
-
) }),
|
|
1114
|
+
) }), $ = {
|
|
1198
1115
|
container: "flex items-center gap-1",
|
|
1199
1116
|
dot: "size-2 rounded-full bg-dark-30/[.20] transition-colors focus:outline-none focus:ring-offset-0 focus:ring-primary-10",
|
|
1200
1117
|
dotActive: "bg-primary-10"
|
|
1201
|
-
},
|
|
1118
|
+
}, ht = ({ className: e, children: r, ...i }) => /* @__PURE__ */ o("div", { ...i, "data-slot": "skeleton", className: c(br.base, e), children: r }), br = {
|
|
1202
1119
|
base: "bg-gray-200 animate-pulse rounded-md"
|
|
1203
|
-
},
|
|
1120
|
+
}, ur = ({
|
|
1204
1121
|
classNames: e,
|
|
1205
1122
|
width: r = 73,
|
|
1206
|
-
height:
|
|
1123
|
+
height: i = 73,
|
|
1207
1124
|
isBlur: t = !1
|
|
1208
1125
|
}) => /* @__PURE__ */ o(
|
|
1209
1126
|
"div",
|
|
1210
1127
|
{
|
|
1211
1128
|
"data-testid": "spinner",
|
|
1212
|
-
className:
|
|
1129
|
+
className: c(t ? ee.blur : ee.wrapper, e == null ? void 0 : e.wrapper),
|
|
1213
1130
|
children: /* @__PURE__ */ o(
|
|
1214
|
-
|
|
1131
|
+
Te,
|
|
1215
1132
|
{
|
|
1216
1133
|
"data-testid": "spinner-icon",
|
|
1217
|
-
height:
|
|
1134
|
+
height: i,
|
|
1218
1135
|
width: r,
|
|
1219
|
-
className:
|
|
1136
|
+
className: c(ee.icon, e == null ? void 0 : e.icon)
|
|
1220
1137
|
}
|
|
1221
1138
|
)
|
|
1222
1139
|
}
|
|
1223
|
-
),
|
|
1140
|
+
), ee = {
|
|
1224
1141
|
wrapper: "flex flex-col gap-1 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
1225
1142
|
blur: "absolute inset-0 z-51 flex items-center justify-center bg-background/60 backdrop-blur-sm rounded-[20px]",
|
|
1226
1143
|
icon: "fill-primary-10"
|
|
1144
|
+
}, pr = {
|
|
1145
|
+
dark: {
|
|
1146
|
+
10: "#242424",
|
|
1147
|
+
// Заполненный текст полей
|
|
1148
|
+
20: "#323234",
|
|
1149
|
+
// Заголовки модулей
|
|
1150
|
+
30: "#424242",
|
|
1151
|
+
// Основной текст
|
|
1152
|
+
40: "#4A4A4A",
|
|
1153
|
+
// Заголовки форм
|
|
1154
|
+
50: "#747474"
|
|
1155
|
+
// Заголовки колонок в таблице
|
|
1156
|
+
},
|
|
1157
|
+
gray: {
|
|
1158
|
+
10: "#B6B7BA",
|
|
1159
|
+
// Текст внутри полей
|
|
1160
|
+
20: "#B5B5B5",
|
|
1161
|
+
// Чекбокс stroke
|
|
1162
|
+
30: "#D1D1D1",
|
|
1163
|
+
// Неактивный текст
|
|
1164
|
+
40: "#F2F2F2",
|
|
1165
|
+
// Цвет полей
|
|
1166
|
+
50: "#F3F6F8"
|
|
1167
|
+
// Цвет заполнения
|
|
1168
|
+
},
|
|
1169
|
+
primary: {
|
|
1170
|
+
10: "#F9B800",
|
|
1171
|
+
// Основной / Акцент
|
|
1172
|
+
20: "#FF9900",
|
|
1173
|
+
// Hover
|
|
1174
|
+
30: "#FB7100",
|
|
1175
|
+
// Pressed
|
|
1176
|
+
40: "#FEEAB3",
|
|
1177
|
+
// Stroke
|
|
1178
|
+
50: "#FFF8E6"
|
|
1179
|
+
// Выделение
|
|
1180
|
+
},
|
|
1181
|
+
secondary: {
|
|
1182
|
+
10: "#606061",
|
|
1183
|
+
// default text
|
|
1184
|
+
20: "#D9D9DF",
|
|
1185
|
+
// disabled bg
|
|
1186
|
+
30: "#FEEAB3",
|
|
1187
|
+
// focus stroke
|
|
1188
|
+
40: "#FFDFB0",
|
|
1189
|
+
// hover stroke
|
|
1190
|
+
50: "#FED3B0"
|
|
1191
|
+
// pressed stroke
|
|
1192
|
+
},
|
|
1193
|
+
success: {
|
|
1194
|
+
10: "#2EBF42",
|
|
1195
|
+
// Успешно
|
|
1196
|
+
20: "#76BF97",
|
|
1197
|
+
// bg success
|
|
1198
|
+
30: "#CCFBE0",
|
|
1199
|
+
// Active status
|
|
1200
|
+
40: "#16A52A",
|
|
1201
|
+
// Hover
|
|
1202
|
+
50: "#F0F9E3"
|
|
1203
|
+
// Pressed bg
|
|
1204
|
+
},
|
|
1205
|
+
danger: {
|
|
1206
|
+
10: "#F42929",
|
|
1207
|
+
// Ошибка
|
|
1208
|
+
20: "#EB2428",
|
|
1209
|
+
// bg ошибка
|
|
1210
|
+
30: "#D61B1E",
|
|
1211
|
+
// hover
|
|
1212
|
+
40: "#E69494",
|
|
1213
|
+
// pressed
|
|
1214
|
+
50: "#FFCCCE"
|
|
1215
|
+
// Status
|
|
1216
|
+
},
|
|
1217
|
+
info: {
|
|
1218
|
+
10: "#1B9BE4",
|
|
1219
|
+
// Инфо
|
|
1220
|
+
20: "#DFF8FF",
|
|
1221
|
+
// bg info
|
|
1222
|
+
30: "#D9EDFF",
|
|
1223
|
+
// Категории
|
|
1224
|
+
40: "#B8DBF6",
|
|
1225
|
+
// hover
|
|
1226
|
+
50: "#99C5EC"
|
|
1227
|
+
// pressed
|
|
1228
|
+
},
|
|
1229
|
+
status: {
|
|
1230
|
+
10: "#CCF8E0",
|
|
1231
|
+
// success
|
|
1232
|
+
20: "#E8EAEE",
|
|
1233
|
+
// inactive
|
|
1234
|
+
30: "#FFF2CE",
|
|
1235
|
+
// process
|
|
1236
|
+
40: "#FFDDCC",
|
|
1237
|
+
// pending
|
|
1238
|
+
50: "#FFC2C2",
|
|
1239
|
+
// blocked
|
|
1240
|
+
default: "#EFE5FF"
|
|
1241
|
+
// done
|
|
1242
|
+
},
|
|
1243
|
+
sidebar: {
|
|
1244
|
+
10: "#FFFFFF",
|
|
1245
|
+
// default text
|
|
1246
|
+
20: "#F9B800",
|
|
1247
|
+
// active text
|
|
1248
|
+
30: "#585858",
|
|
1249
|
+
// disabled text
|
|
1250
|
+
40: "#434343",
|
|
1251
|
+
// hover bg
|
|
1252
|
+
50: "#323234"
|
|
1253
|
+
// bg
|
|
1254
|
+
},
|
|
1255
|
+
tertiary: {
|
|
1256
|
+
10: "#B6B7BA",
|
|
1257
|
+
// statusCategory.main
|
|
1258
|
+
20: "#242424",
|
|
1259
|
+
// hover
|
|
1260
|
+
30: "#95C5EC",
|
|
1261
|
+
// pressed
|
|
1262
|
+
40: "#E8F4FF",
|
|
1263
|
+
50: "#F6FAFF"
|
|
1264
|
+
}
|
|
1265
|
+
}, re = {
|
|
1266
|
+
textStyles: {
|
|
1267
|
+
body: {
|
|
1268
|
+
"body-8": {
|
|
1269
|
+
fontSize: "8px",
|
|
1270
|
+
fontWeight: 500,
|
|
1271
|
+
lineHeight: "1"
|
|
1272
|
+
},
|
|
1273
|
+
"body-10": {
|
|
1274
|
+
fontSize: "10px",
|
|
1275
|
+
fontWeight: 500,
|
|
1276
|
+
lineHeight: "1.5"
|
|
1277
|
+
},
|
|
1278
|
+
"body-12": {
|
|
1279
|
+
fontSize: "12px",
|
|
1280
|
+
fontWeight: 500,
|
|
1281
|
+
lineHeight: "1.5"
|
|
1282
|
+
},
|
|
1283
|
+
"body-14": {
|
|
1284
|
+
fontSize: "14px",
|
|
1285
|
+
fontWeight: 500,
|
|
1286
|
+
lineHeight: "2"
|
|
1287
|
+
},
|
|
1288
|
+
"body-16": {
|
|
1289
|
+
fontSize: "16px",
|
|
1290
|
+
fontWeight: 500,
|
|
1291
|
+
lineHeight: "2"
|
|
1292
|
+
},
|
|
1293
|
+
"body-18": {
|
|
1294
|
+
fontSize: "18px",
|
|
1295
|
+
fontWeight: 500,
|
|
1296
|
+
lineHeight: "2"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
headings: {
|
|
1300
|
+
h1: {
|
|
1301
|
+
fontSize: "40px",
|
|
1302
|
+
fontWeight: 500,
|
|
1303
|
+
lineHeight: "normal"
|
|
1304
|
+
},
|
|
1305
|
+
h2: {
|
|
1306
|
+
fontSize: "32px",
|
|
1307
|
+
fontWeight: 500,
|
|
1308
|
+
lineHeight: "normal"
|
|
1309
|
+
},
|
|
1310
|
+
h3: {
|
|
1311
|
+
fontSize: "28px",
|
|
1312
|
+
fontWeight: 500,
|
|
1313
|
+
lineHeight: "normal"
|
|
1314
|
+
},
|
|
1315
|
+
h4: {
|
|
1316
|
+
fontSize: "24px",
|
|
1317
|
+
fontWeight: 500,
|
|
1318
|
+
lineHeight: "normal"
|
|
1319
|
+
},
|
|
1320
|
+
h5: {
|
|
1321
|
+
fontSize: "20px",
|
|
1322
|
+
fontWeight: 500,
|
|
1323
|
+
lineHeight: "normal"
|
|
1324
|
+
},
|
|
1325
|
+
h6: {
|
|
1326
|
+
fontSize: "16px",
|
|
1327
|
+
fontWeight: 500,
|
|
1328
|
+
lineHeight: "normal"
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
link: {
|
|
1332
|
+
8: {
|
|
1333
|
+
fontSize: "8px",
|
|
1334
|
+
fontWeight: 500,
|
|
1335
|
+
lineHeight: "1"
|
|
1336
|
+
},
|
|
1337
|
+
10: {
|
|
1338
|
+
fontSize: "10px",
|
|
1339
|
+
fontWeight: 500,
|
|
1340
|
+
lineHeight: "1.5"
|
|
1341
|
+
},
|
|
1342
|
+
12: {
|
|
1343
|
+
fontSize: "12px",
|
|
1344
|
+
fontWeight: 500,
|
|
1345
|
+
lineHeight: "1.5"
|
|
1346
|
+
},
|
|
1347
|
+
14: {
|
|
1348
|
+
fontSize: "14px",
|
|
1349
|
+
fontWeight: 500,
|
|
1350
|
+
lineHeight: "2"
|
|
1351
|
+
},
|
|
1352
|
+
16: {
|
|
1353
|
+
fontSize: "16px",
|
|
1354
|
+
fontWeight: 500,
|
|
1355
|
+
lineHeight: "2"
|
|
1356
|
+
},
|
|
1357
|
+
18: {
|
|
1358
|
+
fontSize: "18px",
|
|
1359
|
+
fontWeight: 500,
|
|
1360
|
+
lineHeight: "2"
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}, te = (e, { splitClassName: r } = { splitClassName: !0 }) => {
|
|
1365
|
+
const i = {};
|
|
1366
|
+
return Object.keys(e).forEach((t) => {
|
|
1367
|
+
const [n, l] = r ? t.split("-") : ["", t], d = `text-${r ? n : t}`;
|
|
1368
|
+
i[d] || (i[d] = []), i[d].push(l);
|
|
1369
|
+
}), i;
|
|
1370
|
+
}, hr = (e) => {
|
|
1371
|
+
const r = {};
|
|
1372
|
+
return Object.entries(e).forEach(([i, t]) => {
|
|
1373
|
+
const n = `text-${i}`;
|
|
1374
|
+
r[n] = Object.keys(t).filter(
|
|
1375
|
+
(l) => !isNaN(Number(l))
|
|
1376
|
+
);
|
|
1377
|
+
}), r;
|
|
1378
|
+
}, gr = _e({
|
|
1379
|
+
extend: {
|
|
1380
|
+
classGroups: {
|
|
1381
|
+
"font-size": [
|
|
1382
|
+
te(re.textStyles.body),
|
|
1383
|
+
te(re.textStyles.headings, {
|
|
1384
|
+
splitClassName: !1
|
|
1385
|
+
}),
|
|
1386
|
+
te(re.textStyles.link, {
|
|
1387
|
+
splitClassName: !1
|
|
1388
|
+
})
|
|
1389
|
+
],
|
|
1390
|
+
"text-color": [hr(pr)]
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
}), b = (...e) => gr(Pe(e));
|
|
1394
|
+
Qe.use([
|
|
1395
|
+
Xe,
|
|
1396
|
+
Ve,
|
|
1397
|
+
Ge,
|
|
1398
|
+
Ne,
|
|
1399
|
+
Ue,
|
|
1400
|
+
Je,
|
|
1401
|
+
Ke
|
|
1402
|
+
]);
|
|
1403
|
+
const ue = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 38, height: 30, fill: "none", ...e }, /* @__PURE__ */ m.createElement("path", { fill: "currentFill", d: "M32.3 3.75h-3.01l-1.9-1.87A7.2 7.2 0 0 0 22.8 0h-7.6c-1.56 0-3.49.79-4.59 1.88l-1.9 1.87H5.7A5.67 5.67 0 0 0 0 9.38v15C0 27.48 2.56 30 5.7 30h26.6c3.14 0 5.7-2.52 5.7-5.62v-15c0-3.1-2.56-5.63-5.7-5.63M19 22.5a6.7 6.7 0 0 1-4.7-1.92 6.5 6.5 0 0 1 0-9.29 6.7 6.7 0 0 1 9.4 0 6.5 6.5 0 0 1 0 9.29A6.7 6.7 0 0 1 19 22.5m11.4-8.81a2.5 2.5 0 0 1-2.28-1.5 2.4 2.4 0 0 1 1.33-3.2 2.5 2.5 0 0 1 2.7.53 2.4 2.4 0 0 1 0 3.45c-.47.46-1.1.72-1.75.72" })), fr = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentFill", ...e }, /* @__PURE__ */ m.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m5.67 7.5 3.1 3.5L15 4M2 7.5 5.11 11m6.22-7L8.97 6.69" })), mr = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", ...e }, /* @__PURE__ */ m.createElement("path", { fill: "currentFill", d: "m9.55 15.15 8.48-8.48a.96.96 0 0 1 1.4 0q.3.3.3.72 0 .4-.3.71l-9.18 9.2a.96.96 0 0 1-1.4 0L4.55 13a1 1 0 0 1-.29-.71q.01-.41.32-.71.3-.3.7-.3.42 0 .72.3z" })), ve = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", ...e }, /* @__PURE__ */ m.createElement("g", { mask: "url(#mask0_770_8096)" }, /* @__PURE__ */ m.createElement("path", { fill: "currentFill", d: "m7.96 12.63 7.06-7.07a.8.8 0 0 1 1.17 0q.24.25.25.6 0 .34-.25.59l-7.65 7.67a.8.8 0 0 1-1.16 0l-3.59-3.59a.8.8 0 0 1-.24-.59q.01-.34.26-.6a.8.8 0 0 1 .6-.24q.34 0 .59.25z" }))), vr = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentFill", viewBox: "0 0 19 19", ...e }, /* @__PURE__ */ m.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ m.createElement("path", { d: "M4.95 5.54a4.55 4.55 0 1 1 9.1 0 4.55 4.55 0 0 1-9.1 0m4.39 5.75h.32l5.77 1.02h.03c1.07.25 2.21.92 2.43 2.24v.02l.1.7c.2 1.58-1.05 2.74-2.54 2.74H3.55c-1.49 0-2.75-1.16-2.54-2.76l.1-.68v-.03c.22-1.29 1.37-2 2.43-2.23h.02z" })), /* @__PURE__ */ m.createElement("defs", null, /* @__PURE__ */ m.createElement("clipPath", { id: "a" }, /* @__PURE__ */ m.createElement("path", { d: "M0 0h19v19H0z" })))), xr = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 19, height: 19, fill: "currentFill", ...e }, /* @__PURE__ */ m.createElement("path", { fillOpacity: 0.8, d: "M1.6 8a.75.75 0 0 1-.75-.75v-6A.75.75 0 0 1 1.6.5h6a.75.75 0 0 1 .75.75v6A.75.75 0 0 1 7.6 8zm10.5 0a.75.75 0 0 1-.75-.75v-6A.75.75 0 0 1 12.1.5h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-.75.75zM1.6 18.5a.75.75 0 0 1-.75-.75v-6A.75.75 0 0 1 1.6 11h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-.75.75zm10.5 0a.75.75 0 0 1-.75-.75v-6a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-.75.75z" })), yr = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 19, height: 13, fill: "currentFill", ...e }, /* @__PURE__ */ m.createElement("path", { fillOpacity: 0.8, d: "M1.45 12.45a1 1 0 0 1-.72-.28 1 1 0 0 1-.28-.72q0-.43.28-.7.3-.3.72-.3h16q.43 0 .7.3.3.27.3.7a1 1 0 0 1-1 1zm0-5a1 1 0 0 1-.72-.28 1 1 0 0 1-.28-.72q0-.42.28-.7.3-.3.72-.3h16q.43 0 .7.3.3.27.3.7a1 1 0 0 1-1 1zm0-5a1 1 0 0 1-.72-.28 1 1 0 0 1-.28-.72q0-.43.28-.7.3-.3.72-.3h16q.43 0 .7.3.3.28.3.7a1 1 0 0 1-1 1z" })), V = {
|
|
1404
|
+
base: "group inline-flex items-center justify-center transition-colors rounded-[10px] border outline-none",
|
|
1405
|
+
icon: {
|
|
1406
|
+
disabled: {
|
|
1407
|
+
primary: "fill-white",
|
|
1408
|
+
secondary: "fill-secondary-10/[.50]",
|
|
1409
|
+
text: "fill-secondary-10/[.60]"
|
|
1410
|
+
},
|
|
1411
|
+
parent: "justify-between gap-[9px] w-auto",
|
|
1412
|
+
variants: {
|
|
1413
|
+
primary: "fill-white",
|
|
1414
|
+
secondary: "fill-dark-30 group-hover:fill-primary-20 group-focus-visible:fill-sidebar-20 group-active:fill-primary-30",
|
|
1415
|
+
text: "fill-primary-10 group-hover:fill-primary-20 group-active:fill-primary-30"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
sizes: {
|
|
1419
|
+
medium: {
|
|
1420
|
+
fontSize: "text-sm font-medium font-mono",
|
|
1421
|
+
padding: "px-[20px] py-[9px]"
|
|
1422
|
+
}
|
|
1423
|
+
},
|
|
1424
|
+
variants: {
|
|
1425
|
+
primary: {
|
|
1426
|
+
active: "active:bg-primary-30",
|
|
1427
|
+
base: "bg-primary-10 text-white",
|
|
1428
|
+
disabled: "disabled:bg-secondary-10/[.25] disabled:border-gray-30 disabled:shadow-none",
|
|
1429
|
+
focus: "focus-visible:bg-primary-10 focus-visible:outline-[4px] focus-visible:outline-primary-10/[.20] focus-visible:outline-offset-0",
|
|
1430
|
+
hover: "hover:bg-primary-20 hover:border-primary-2 hover:shadow-[0px_5px_10.6px_0px_#F9B8004D]"
|
|
1431
|
+
},
|
|
1432
|
+
secondary: {
|
|
1433
|
+
active: "active:bg-transparent active:text-primary-30 active:border active:border-secondary-50",
|
|
1434
|
+
base: "bg-transparent text-dark-30 font-semibold outline-none border-dark-30/[.20]",
|
|
1435
|
+
disabled: "disabled:bg-secondary-10/[.08] disabled:text-dark-30/[.25] disabled:border-secondary-10/[.25]",
|
|
1436
|
+
focus: "focus-visible:text-sidebar-20 focus-visible:bg-transparent focus-visible:outline-[4px] focus-visible:outline-primary-10/[.20] focus-visible:border-primary-10 focus-visible:outline-offset-0",
|
|
1437
|
+
hover: "hover:bg-transparent hover:text-primary-20 hover:border-secondary-40"
|
|
1438
|
+
},
|
|
1439
|
+
text: {
|
|
1440
|
+
active: "active:bg-transparent active:text-primary-30 active:border-transparent",
|
|
1441
|
+
base: "group bg-transparent text-primary-10 outline-none border-transparent",
|
|
1442
|
+
disabled: "disabled:bg-transparent disabled:border-transparent disabled:text-dark-30/[.30]",
|
|
1443
|
+
focus: "focus-visible:transparent focus-visible:outline-[2px] focus-visible:outline-primary-10/[.20] focus-visible:outline-offset-0",
|
|
1444
|
+
hover: "hover:bg-transparent hover:text-primary-20 hover:border-transparent"
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
F(
|
|
1449
|
+
({
|
|
1450
|
+
children: e,
|
|
1451
|
+
classNames: r,
|
|
1452
|
+
disabled: i = !1,
|
|
1453
|
+
icon: t,
|
|
1454
|
+
iconDimensions: n = { height: 15, width: 15 },
|
|
1455
|
+
iconPosition: l = "right",
|
|
1456
|
+
size: d = "medium",
|
|
1457
|
+
variant: a = "primary",
|
|
1458
|
+
isShadow: s = !1,
|
|
1459
|
+
...u
|
|
1460
|
+
}, f) => {
|
|
1461
|
+
const g = V.icon, h = V.sizes[d], v = V.variants[a] || V.variants.primary, x = g.variants[a], y = g.disabled[a];
|
|
1462
|
+
return /* @__PURE__ */ p(
|
|
1463
|
+
"button",
|
|
1464
|
+
{
|
|
1465
|
+
role: "button",
|
|
1466
|
+
...u,
|
|
1467
|
+
type: u.type || "button",
|
|
1468
|
+
ref: f,
|
|
1469
|
+
disabled: i,
|
|
1470
|
+
className: b(
|
|
1471
|
+
V.base,
|
|
1472
|
+
h.padding,
|
|
1473
|
+
h.fontSize,
|
|
1474
|
+
v.base,
|
|
1475
|
+
v.focus,
|
|
1476
|
+
!i && v.hover,
|
|
1477
|
+
!i && v.active,
|
|
1478
|
+
i && v.disabled,
|
|
1479
|
+
!!t && g.parent,
|
|
1480
|
+
!!t && !e && "min-w-0",
|
|
1481
|
+
a === "primary" && s && "shadow-3xl",
|
|
1482
|
+
r == null ? void 0 : r.base
|
|
1483
|
+
),
|
|
1484
|
+
children: [
|
|
1485
|
+
!!t && l === "left" && /* @__PURE__ */ o(
|
|
1486
|
+
t,
|
|
1487
|
+
{
|
|
1488
|
+
"aria-label": "icon",
|
|
1489
|
+
"aria-hidden": !0,
|
|
1490
|
+
className: b(
|
|
1491
|
+
!i && x,
|
|
1492
|
+
i && y,
|
|
1493
|
+
r == null ? void 0 : r.icon
|
|
1494
|
+
),
|
|
1495
|
+
height: n.height,
|
|
1496
|
+
width: n.width,
|
|
1497
|
+
viewBox: n.viewBox
|
|
1498
|
+
}
|
|
1499
|
+
),
|
|
1500
|
+
e,
|
|
1501
|
+
!!t && l === "right" && /* @__PURE__ */ o(
|
|
1502
|
+
t,
|
|
1503
|
+
{
|
|
1504
|
+
"aria-label": "icon",
|
|
1505
|
+
"aria-hidden": !0,
|
|
1506
|
+
className: b(
|
|
1507
|
+
!i && x,
|
|
1508
|
+
i && y,
|
|
1509
|
+
r == null ? void 0 : r.icon
|
|
1510
|
+
),
|
|
1511
|
+
height: n.height,
|
|
1512
|
+
width: n.width,
|
|
1513
|
+
viewBox: n.viewBox
|
|
1514
|
+
}
|
|
1515
|
+
)
|
|
1516
|
+
]
|
|
1517
|
+
}
|
|
1518
|
+
);
|
|
1519
|
+
}
|
|
1520
|
+
);
|
|
1521
|
+
const wr = F(
|
|
1522
|
+
({
|
|
1523
|
+
classNames: e,
|
|
1524
|
+
disabled: r = !1,
|
|
1525
|
+
icon: i,
|
|
1526
|
+
variant: t = "default",
|
|
1527
|
+
shape: n,
|
|
1528
|
+
badge: l,
|
|
1529
|
+
iconSizes: d,
|
|
1530
|
+
text: a,
|
|
1531
|
+
...s
|
|
1532
|
+
}, u) => {
|
|
1533
|
+
var f;
|
|
1534
|
+
const g = O.icon, h = O.variants[t], v = g.variants[t], x = (f = O.shape) == null ? void 0 : f[n], y = g.disabled[t];
|
|
1535
|
+
return /* @__PURE__ */ p(
|
|
1536
|
+
"button",
|
|
1537
|
+
{
|
|
1538
|
+
...s,
|
|
1539
|
+
role: "button",
|
|
1540
|
+
type: s.type || "button",
|
|
1541
|
+
ref: u,
|
|
1542
|
+
disabled: r,
|
|
1543
|
+
className: b(
|
|
1544
|
+
O.base,
|
|
1545
|
+
h.base,
|
|
1546
|
+
h.focus,
|
|
1547
|
+
x,
|
|
1548
|
+
l && O.badgeStyles.base,
|
|
1549
|
+
!r && h.hover,
|
|
1550
|
+
!r && h.active,
|
|
1551
|
+
r && h.disabled,
|
|
1552
|
+
e == null ? void 0 : e.button
|
|
1553
|
+
),
|
|
1554
|
+
children: [
|
|
1555
|
+
l && /* @__PURE__ */ o("span", { className: O.badgeStyles.badgeStyles, children: l }),
|
|
1556
|
+
!!i && /* @__PURE__ */ o(
|
|
1557
|
+
i,
|
|
1558
|
+
{
|
|
1559
|
+
"aria-label": "icon",
|
|
1560
|
+
"aria-hidden": !0,
|
|
1561
|
+
className: b(
|
|
1562
|
+
g.base,
|
|
1563
|
+
!r && v,
|
|
1564
|
+
r && y,
|
|
1565
|
+
e == null ? void 0 : e.icon
|
|
1566
|
+
),
|
|
1567
|
+
height: d == null ? void 0 : d.height,
|
|
1568
|
+
width: d == null ? void 0 : d.width,
|
|
1569
|
+
viewBox: d == null ? void 0 : d.viewBox
|
|
1570
|
+
}
|
|
1571
|
+
),
|
|
1572
|
+
!!a && /* @__PURE__ */ o(U, { className: e == null ? void 0 : e.text, children: a })
|
|
1573
|
+
]
|
|
1574
|
+
}
|
|
1575
|
+
);
|
|
1576
|
+
}
|
|
1577
|
+
), O = {
|
|
1578
|
+
base: "group inline-flex items-center justify-center rounded-[10px] outline-none border",
|
|
1579
|
+
icon: {
|
|
1580
|
+
base: "text-inherit",
|
|
1581
|
+
disabled: {
|
|
1582
|
+
default: "fill-secondary-10/50",
|
|
1583
|
+
primary: "fill-secondary-10/50",
|
|
1584
|
+
text: "text-dark-30/50"
|
|
1585
|
+
},
|
|
1586
|
+
variants: {
|
|
1587
|
+
default: "fill-sidebar-30 group-hover:fill-primary-20 group-active:fill-primary-30 group-focus-visible:fill-primary-10",
|
|
1588
|
+
primary: "fill-sidebar-30 group-hover:fill-primary-20 group-focus-visible:fill-primary-10 group-active:fill-primary-30",
|
|
1589
|
+
text: "text-sidebar-30 group-hover:text-primary-20 group-focus-visible:text-sidebar-20 group-active:text-primary-30"
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
badgeStyles: {
|
|
1593
|
+
base: "relative overflow-visible",
|
|
1594
|
+
badgeStyles: "absolute text-[10px] font-normal top-[-5px] right-[-6px] z-10 bg-primary-10 text-primary-10 text-white w-5 h-4 rounded-full flex items-center justify-center"
|
|
1595
|
+
},
|
|
1596
|
+
shape: {
|
|
1597
|
+
circle: "rounded-full px-1.5 py-1.5",
|
|
1598
|
+
square: "px-1.5 py-1.5"
|
|
1599
|
+
},
|
|
1600
|
+
variants: {
|
|
1601
|
+
default: {
|
|
1602
|
+
active: "active:border-[1.5px] active:bg-transparent active:border-primary-30 active:shadow-primary-40",
|
|
1603
|
+
base: "px-1.5 py-1.5 bg-transparent border-gray-30 shadow",
|
|
1604
|
+
disabled: "disabled:bg-gray-40 disabled:border-secondary-10/[.25] shadow-none",
|
|
1605
|
+
focus: "focus:border-[1.5px] focus-visible:bg-transparent focus-visible:outline-[4px] focus-visible:outline-primary-10/[.20] focus-visible:outline-offset-0 focus-visible:border-primary-10",
|
|
1606
|
+
hover: "hover:bg-transparent hover:border-primary-20 hover:shadow-primary-40"
|
|
1607
|
+
},
|
|
1608
|
+
primary: {
|
|
1609
|
+
active: "active:bg-gray-40 active:border-transparent",
|
|
1610
|
+
base: "px-1.5 py-1.5 bg-gray-40 outline-none rounded-full border-transparent",
|
|
1611
|
+
disabled: "disabled:bg-gray-40",
|
|
1612
|
+
focus: "focus:border-transparent focus-visible:bg-gray-40 focus-visible:outline-[4px] focus-visible:outline-primary-10/[.20] focus-visible:outline-offset-0",
|
|
1613
|
+
hover: "hover:bg-gray-40 hover:border-transparent"
|
|
1614
|
+
},
|
|
1615
|
+
text: {
|
|
1616
|
+
base: "border-none hover:border-none hover:bg-transparent bg-transparent",
|
|
1617
|
+
hover: "",
|
|
1618
|
+
focus: "",
|
|
1619
|
+
active: "",
|
|
1620
|
+
disabled: "disabled:border-transparent disabled:cursor-default"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}, q = {
|
|
1624
|
+
active: "active:bg-tertiary-10 active:border-tertiary-10 outline-none",
|
|
1625
|
+
base: "border border-secondary-10/[.25] hover:border-primary-10 flex items-center justify-center rounded-[6px] cursor-pointer",
|
|
1626
|
+
checked: "bg-primary-10 border-primary-10",
|
|
1627
|
+
disabled: "cursor-not-allowed bg-secondary-10/[.08] border border--secondary-10/[.25] hover:border--secondary-10/[.25]",
|
|
1628
|
+
hover: "hover:ring-2 hover:ring-primary-20/[.20] hover:ring-offset-0",
|
|
1629
|
+
sizes: {
|
|
1630
|
+
large: {
|
|
1631
|
+
label: "size-5"
|
|
1632
|
+
},
|
|
1633
|
+
medium: {
|
|
1634
|
+
label: "size-4"
|
|
1635
|
+
},
|
|
1636
|
+
small: {
|
|
1637
|
+
label: "size-2.5"
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
F(
|
|
1642
|
+
({
|
|
1643
|
+
checked: e = !1,
|
|
1644
|
+
className: r = "",
|
|
1645
|
+
disabled: i,
|
|
1646
|
+
id: t,
|
|
1647
|
+
onChange: n,
|
|
1648
|
+
size: l = "large",
|
|
1649
|
+
...d
|
|
1650
|
+
}, a) => {
|
|
1651
|
+
const s = q.base, u = q.sizes[l];
|
|
1652
|
+
return /* @__PURE__ */ p(
|
|
1653
|
+
"label",
|
|
1654
|
+
{
|
|
1655
|
+
"aria-label": "checkbox-label",
|
|
1656
|
+
htmlFor: t,
|
|
1657
|
+
tabIndex: 0,
|
|
1658
|
+
className: b(
|
|
1659
|
+
u.label,
|
|
1660
|
+
s,
|
|
1661
|
+
e && q.checked,
|
|
1662
|
+
!i && q.active,
|
|
1663
|
+
!i && e && q.hover,
|
|
1664
|
+
i && q.disabled,
|
|
1665
|
+
r
|
|
1666
|
+
),
|
|
1667
|
+
children: [
|
|
1668
|
+
/* @__PURE__ */ o(
|
|
1669
|
+
"input",
|
|
1670
|
+
{
|
|
1671
|
+
...d,
|
|
1672
|
+
role: "checkbox",
|
|
1673
|
+
id: t,
|
|
1674
|
+
disabled: i,
|
|
1675
|
+
checked: !!e,
|
|
1676
|
+
onChange: n,
|
|
1677
|
+
ref: a,
|
|
1678
|
+
type: "checkbox",
|
|
1679
|
+
className: "hidden peer"
|
|
1680
|
+
}
|
|
1681
|
+
),
|
|
1682
|
+
/* @__PURE__ */ o(
|
|
1683
|
+
ve,
|
|
1684
|
+
{
|
|
1685
|
+
width: 20,
|
|
1686
|
+
height: 18,
|
|
1687
|
+
viewBox: "0 0 20 20",
|
|
1688
|
+
className: b("opacity-0 fill-sidebar-10", e && "!opacity-100")
|
|
1689
|
+
}
|
|
1690
|
+
)
|
|
1691
|
+
]
|
|
1692
|
+
}
|
|
1693
|
+
);
|
|
1694
|
+
}
|
|
1695
|
+
);
|
|
1696
|
+
F(
|
|
1697
|
+
({
|
|
1698
|
+
disabled: e,
|
|
1699
|
+
onChange: r,
|
|
1700
|
+
placeholder: i,
|
|
1701
|
+
autoFocus: t = !1,
|
|
1702
|
+
status: n,
|
|
1703
|
+
maxLength: l,
|
|
1704
|
+
id: d,
|
|
1705
|
+
classNames: a,
|
|
1706
|
+
...s
|
|
1707
|
+
}, u) => {
|
|
1708
|
+
const f = I.parent, g = I.base, h = I.state, v = I.disabled, x = I.styles, y = I.maxLength;
|
|
1709
|
+
return /* @__PURE__ */ p("div", { className: b(f, a == null ? void 0 : a.parent), children: [
|
|
1710
|
+
/* @__PURE__ */ o(
|
|
1711
|
+
"input",
|
|
1712
|
+
{
|
|
1713
|
+
...s,
|
|
1714
|
+
role: "textbox",
|
|
1715
|
+
ref: u,
|
|
1716
|
+
id: d,
|
|
1717
|
+
disabled: e,
|
|
1718
|
+
autoFocus: t,
|
|
1719
|
+
onChange: r,
|
|
1720
|
+
maxLength: l,
|
|
1721
|
+
className: b(
|
|
1722
|
+
g,
|
|
1723
|
+
h.focus,
|
|
1724
|
+
!e && h.hover,
|
|
1725
|
+
n && (x == null ? void 0 : x[n]),
|
|
1726
|
+
e && v,
|
|
1727
|
+
a == null ? void 0 : a.target
|
|
1728
|
+
),
|
|
1729
|
+
placeholder: i
|
|
1730
|
+
}
|
|
1731
|
+
),
|
|
1732
|
+
l && /* @__PURE__ */ p(
|
|
1733
|
+
U,
|
|
1734
|
+
{
|
|
1735
|
+
variant: "span",
|
|
1736
|
+
className: b(
|
|
1737
|
+
y,
|
|
1738
|
+
String(s.value).length === l ? "bg-danger-10" : "bg-success-10"
|
|
1739
|
+
),
|
|
1740
|
+
children: [
|
|
1741
|
+
(s.value || "").toString().length,
|
|
1742
|
+
"/",
|
|
1743
|
+
l
|
|
1744
|
+
]
|
|
1745
|
+
}
|
|
1746
|
+
)
|
|
1747
|
+
] });
|
|
1748
|
+
}
|
|
1749
|
+
);
|
|
1750
|
+
const I = {
|
|
1751
|
+
parent: "relative flex flex-col items-start w-full",
|
|
1752
|
+
base: "text-dark-10 text-sm leading-none w-full rounded-[10px] bg-gray-50 border border-gray-50 p-[12.5px] placeholder:text-dark-10/[.40]",
|
|
1753
|
+
disabled: "bg-secondary-10/[.08] text-gray-30 cursor-not-allowed",
|
|
1754
|
+
state: {
|
|
1755
|
+
focus: "focus:outline-none focus:bg-white focus:border focus:border-primary-10 focus:ring-2 focus:ring-primary-10/[.20]",
|
|
1756
|
+
hover: "hover:bg-white hover:border-primary-10/[.31] hover:cursor-pointer transition-colors duration-200"
|
|
1757
|
+
},
|
|
1758
|
+
styles: {
|
|
1759
|
+
danger: "bg-white border-danger-10 ring-2 ring-danger-10/[.20] hover:border-danger-10",
|
|
1760
|
+
info: "bg-white border-info-10 ring ring-info-10/[.20] hover:border-info-10",
|
|
1761
|
+
success: "bg-white border-success-10 ring-2 ring-success-10/[.20] hover:border-success-10"
|
|
1762
|
+
},
|
|
1763
|
+
maxLength: "ml-auto px-1 mt-1 text-body-10 text-white rounded"
|
|
1764
|
+
};
|
|
1765
|
+
m.forwardRef(
|
|
1766
|
+
({ htmlFor: e, className: r, children: i, disabled: t, ...n }, l) => {
|
|
1767
|
+
const d = pe.base, a = pe.disabled;
|
|
1768
|
+
return /* @__PURE__ */ o(
|
|
1769
|
+
"label",
|
|
1770
|
+
{
|
|
1771
|
+
...n,
|
|
1772
|
+
role: "presentation",
|
|
1773
|
+
"aria-label": "input-label",
|
|
1774
|
+
ref: l,
|
|
1775
|
+
htmlFor: e,
|
|
1776
|
+
className: b(d, t && a, r),
|
|
1777
|
+
children: i
|
|
1778
|
+
}
|
|
1779
|
+
);
|
|
1780
|
+
}
|
|
1781
|
+
);
|
|
1782
|
+
const pe = {
|
|
1783
|
+
base: "text-secondary-10 text-sm font-sans font-semibold leading-none",
|
|
1784
|
+
disabled: "text-dark-30/25 cursor-not-allowed"
|
|
1785
|
+
}, kr = m.forwardRef(
|
|
1786
|
+
({
|
|
1787
|
+
id: e,
|
|
1788
|
+
text: r,
|
|
1789
|
+
timestamp: i,
|
|
1790
|
+
senderName: t,
|
|
1791
|
+
status: n,
|
|
1792
|
+
isMine: l = !1,
|
|
1793
|
+
selected: d = !1,
|
|
1794
|
+
firstMessage: a = !1,
|
|
1795
|
+
classNames: s,
|
|
1796
|
+
...u
|
|
1797
|
+
}, f) => {
|
|
1798
|
+
const g = G.base, h = G.wrapper, v = G.sender, x = G.message, y = G.timestamp;
|
|
1799
|
+
return /* @__PURE__ */ p(
|
|
1800
|
+
"div",
|
|
1801
|
+
{
|
|
1802
|
+
ref: f,
|
|
1803
|
+
id: e,
|
|
1804
|
+
"data-testid": "message",
|
|
1805
|
+
className: b(
|
|
1806
|
+
g,
|
|
1807
|
+
l && "bg-primary-10/[.15] border-dark-40/[.25]",
|
|
1808
|
+
d && !l && "bg-dark-40/[.25]",
|
|
1809
|
+
d && l && "bg-primary-10/[.55]",
|
|
1810
|
+
s == null ? void 0 : s.base
|
|
1811
|
+
),
|
|
1812
|
+
...u,
|
|
1813
|
+
children: [
|
|
1814
|
+
/* @__PURE__ */ p("div", { className: b(h.above), children: [
|
|
1815
|
+
!l && a && !!t && /* @__PURE__ */ o(
|
|
1816
|
+
"span",
|
|
1817
|
+
{
|
|
1818
|
+
"data-testid": "sender-name",
|
|
1819
|
+
className: b(v, s == null ? void 0 : s.sender),
|
|
1820
|
+
children: t
|
|
1821
|
+
}
|
|
1822
|
+
),
|
|
1823
|
+
!!r && /* @__PURE__ */ o(
|
|
1824
|
+
"span",
|
|
1825
|
+
{
|
|
1826
|
+
"data-testid": "message-text",
|
|
1827
|
+
className: b(x, s == null ? void 0 : s.message),
|
|
1828
|
+
children: r
|
|
1829
|
+
}
|
|
1830
|
+
)
|
|
1831
|
+
] }),
|
|
1832
|
+
/* @__PURE__ */ p("div", { className: h.below, children: [
|
|
1833
|
+
!!i && /* @__PURE__ */ o(
|
|
1834
|
+
"span",
|
|
1835
|
+
{
|
|
1836
|
+
"data-testid": "message-timestamp",
|
|
1837
|
+
className: b(
|
|
1838
|
+
y,
|
|
1839
|
+
s == null ? void 0 : s.timestamp,
|
|
1840
|
+
l ? "text-primary-10" : "text-dark-40/50",
|
|
1841
|
+
d && "text-dark-30"
|
|
1842
|
+
),
|
|
1843
|
+
children: Ie(i, "HH:mm")
|
|
1844
|
+
}
|
|
1845
|
+
),
|
|
1846
|
+
l && !!n && /* @__PURE__ */ p("div", { "data-testid": "message-status", className: "translate-y-0.5", children: [
|
|
1847
|
+
n === "delivered" && /* @__PURE__ */ o(
|
|
1848
|
+
mr,
|
|
1849
|
+
{
|
|
1850
|
+
className: "fill-primary-10",
|
|
1851
|
+
width: 16,
|
|
1852
|
+
height: 16,
|
|
1853
|
+
viewBox: "0 0 24 24"
|
|
1854
|
+
}
|
|
1855
|
+
),
|
|
1856
|
+
n === "read" && /* @__PURE__ */ o(
|
|
1857
|
+
fr,
|
|
1858
|
+
{
|
|
1859
|
+
className: "fill-transparent text-primary-10",
|
|
1860
|
+
width: 16,
|
|
1861
|
+
height: 16,
|
|
1862
|
+
viewBox: "0 0 16 16"
|
|
1863
|
+
}
|
|
1864
|
+
)
|
|
1865
|
+
] })
|
|
1866
|
+
] })
|
|
1867
|
+
]
|
|
1868
|
+
}
|
|
1869
|
+
);
|
|
1870
|
+
}
|
|
1871
|
+
);
|
|
1872
|
+
kr.displayName = "Message";
|
|
1873
|
+
const G = {
|
|
1874
|
+
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",
|
|
1875
|
+
wrapper: {
|
|
1876
|
+
above: "flex flex-col justify-center gap-0.5",
|
|
1877
|
+
below: "flex items-end justify-end gap-px"
|
|
1878
|
+
},
|
|
1879
|
+
sender: "text-primary-10 text-sm font-sans font-medium",
|
|
1880
|
+
message: "text-dark-30 text-sm font-sans font-medium",
|
|
1881
|
+
timestamp: "text-xs leading-none"
|
|
1882
|
+
}, Fr = F(
|
|
1883
|
+
({ checked: e, disabled: r, id: i, onChange: t, size: n = "large", className: l, ...d }, a) => {
|
|
1884
|
+
const s = C.sizes[n];
|
|
1885
|
+
return /* @__PURE__ */ p(
|
|
1886
|
+
"label",
|
|
1887
|
+
{
|
|
1888
|
+
htmlFor: i,
|
|
1889
|
+
"aria-label": "radio-label",
|
|
1890
|
+
className: b(
|
|
1891
|
+
C.base,
|
|
1892
|
+
s.label,
|
|
1893
|
+
r && C.disabled,
|
|
1894
|
+
!r && C.active,
|
|
1895
|
+
!e && !r && C.hover,
|
|
1896
|
+
!r && e && C.checked,
|
|
1897
|
+
l
|
|
1898
|
+
),
|
|
1899
|
+
children: [
|
|
1900
|
+
/* @__PURE__ */ o(
|
|
1901
|
+
"input",
|
|
1902
|
+
{
|
|
1903
|
+
...d,
|
|
1904
|
+
id: i,
|
|
1905
|
+
ref: a,
|
|
1906
|
+
type: "radio",
|
|
1907
|
+
role: "radio",
|
|
1908
|
+
checked: e,
|
|
1909
|
+
disabled: r,
|
|
1910
|
+
onChange: t,
|
|
1911
|
+
className: "hidden peer",
|
|
1912
|
+
"aria-checked": e,
|
|
1913
|
+
readOnly: !t
|
|
1914
|
+
}
|
|
1915
|
+
),
|
|
1916
|
+
/* @__PURE__ */ o(
|
|
1917
|
+
"span",
|
|
1918
|
+
{
|
|
1919
|
+
"aria-hidden": "true",
|
|
1920
|
+
className: b(
|
|
1921
|
+
e ? [C.radio.base, C.radio[n]] : "opacity-0",
|
|
1922
|
+
r && "bg-primary-30"
|
|
1923
|
+
)
|
|
1924
|
+
}
|
|
1925
|
+
)
|
|
1926
|
+
]
|
|
1927
|
+
}
|
|
1928
|
+
);
|
|
1929
|
+
}
|
|
1930
|
+
);
|
|
1931
|
+
Fr.displayName = "Radio";
|
|
1932
|
+
const C = {
|
|
1933
|
+
base: "border-2 border-dark-30/[.15] flex items-center justify-center rounded-full cursor-pointer outline-none bg-sidebar-10/[.08]",
|
|
1934
|
+
active: "active:border-primary-10",
|
|
1935
|
+
hover: "hover:border-primary-20/[.30]",
|
|
1936
|
+
checked: "border-dark-30/[.15]",
|
|
1937
|
+
disabled: "cursor-not-allowed bg-dark-30/[.08] border-2 border-dark-30/[.15] outline-none",
|
|
1938
|
+
radio: {
|
|
1939
|
+
base: "bg-primary-10 rounded-full opacity-100 peer-active:bg-primary-10 peer-hover:bg-primary-20 peer-disabled:border-sidebar-10/[.08] peer-disabled:bg-sidebar-10/[.08]",
|
|
1940
|
+
large: "size-3.5",
|
|
1941
|
+
medium: "size-2.5"
|
|
1942
|
+
},
|
|
1943
|
+
sizes: {
|
|
1944
|
+
large: {
|
|
1945
|
+
label: "size-6 min-w-6"
|
|
1946
|
+
},
|
|
1947
|
+
medium: {
|
|
1948
|
+
label: "size-5 min-w-5"
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
}, { Root: Sr, Thumb: zr } = X;
|
|
1952
|
+
m.forwardRef(({ classNames: e, ...r }, i) => {
|
|
1953
|
+
const t = r.checked ?? !1;
|
|
1954
|
+
return /* @__PURE__ */ p(Sr, { ref: i, className: b(A.base, e == null ? void 0 : e.root), ...r, children: [
|
|
1955
|
+
/* @__PURE__ */ o(
|
|
1956
|
+
"div",
|
|
1957
|
+
{
|
|
1958
|
+
className: b(
|
|
1959
|
+
A.iconWrapper.base,
|
|
1960
|
+
"left-0",
|
|
1961
|
+
!t && A.iconWrapper.checked
|
|
1962
|
+
),
|
|
1963
|
+
children: /* @__PURE__ */ o(
|
|
1964
|
+
yr,
|
|
1965
|
+
{
|
|
1966
|
+
"data-testid": "list-icon",
|
|
1967
|
+
className: b(t ? "fill-dark-30/25" : "fill-dark-30/[.80]")
|
|
1968
|
+
}
|
|
1969
|
+
)
|
|
1970
|
+
}
|
|
1971
|
+
),
|
|
1972
|
+
/* @__PURE__ */ o(
|
|
1973
|
+
"div",
|
|
1974
|
+
{
|
|
1975
|
+
className: b(
|
|
1976
|
+
A.iconWrapper.base,
|
|
1977
|
+
"right-0",
|
|
1978
|
+
t && A.iconWrapper.checked
|
|
1979
|
+
),
|
|
1980
|
+
children: /* @__PURE__ */ o(
|
|
1981
|
+
xr,
|
|
1982
|
+
{
|
|
1983
|
+
"data-testid": "grid-icon",
|
|
1984
|
+
className: b(t ? "fill-dark-30/[.80]" : "fill-dark-30/25")
|
|
1985
|
+
}
|
|
1986
|
+
)
|
|
1987
|
+
}
|
|
1988
|
+
),
|
|
1989
|
+
/* @__PURE__ */ o("div", { className: b(A.borderLine) }),
|
|
1990
|
+
/* @__PURE__ */ o(zr, { tabIndex: 1, className: b(A.thumb, e == null ? void 0 : e.thumb) })
|
|
1991
|
+
] });
|
|
1992
|
+
});
|
|
1993
|
+
const A = {
|
|
1994
|
+
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",
|
|
1995
|
+
thumb: "pointer-events-none block z-50 size-10 bg-transparent border border-secondary-10/[.15] transition-transform rounded-[10px] ring-0 data-[state=checked]:translate-x-full data-[state=unchecked]:translate-x-0",
|
|
1996
|
+
iconWrapper: {
|
|
1997
|
+
base: "absolute z-20 w-1/2 h-full flex items-center justify-center",
|
|
1998
|
+
checked: "bg-sidebar-10 rounded-[10px] overflow-hidden"
|
|
1999
|
+
},
|
|
2000
|
+
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"
|
|
2001
|
+
}, N = {
|
|
2002
|
+
sizes: {
|
|
2003
|
+
small: {
|
|
2004
|
+
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",
|
|
2005
|
+
default: "text-dark-30/25 border-dark-30/25",
|
|
2006
|
+
active: "bg-gray-50 text-dark-30 border-dark-30/[.40]",
|
|
2007
|
+
hover: "hover:text-dark-30/[.40] hover:border-dark-30/[.40]",
|
|
2008
|
+
disabled: "bg-dark-30/[.08] text-dark-30/25 border-dark-30/25 cursor-not-allowed"
|
|
2009
|
+
},
|
|
2010
|
+
medium: {
|
|
2011
|
+
base: "flex items-center gap-1 pl-4 pr-5 py-2.5 bg-gray-50 text-sm font-semibold leading-none rounded-[10px] border",
|
|
2012
|
+
default: "border-gray-50 text-dark-30",
|
|
2013
|
+
active: "bg-primary-10 border-primary-10 text-white",
|
|
2014
|
+
hover: "hover:border-primary-10/[.30]",
|
|
2015
|
+
disabled: "bg-dark-30/[.08] text-dark-30/25 cursor-not-allowed"
|
|
2016
|
+
},
|
|
2017
|
+
large: {
|
|
2018
|
+
base: "flex items-center bg-gray-50 px-8 py-3.5 text-sm font-regular leading-none border rounded-[10px] focus:outline-none focus:ring focus:ring-transparent",
|
|
2019
|
+
default: "text-dark-40/50 border-dark-30/[.15]",
|
|
2020
|
+
active: "bg-primary-10/[.10] text-dark-30 font-semibold border border-primary-10/[.20]",
|
|
2021
|
+
hover: "hover:border-primary-20/[.20]",
|
|
2022
|
+
disabled: "bg-dark-30/[.08] text-dark-30/25 border-dark-30/25 cursor-not-allowed"
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
focus: "focus:outline-none focus:ring focus:ring-primary-10/[.20]",
|
|
2026
|
+
icon: {
|
|
2027
|
+
default: "fill-dark-30",
|
|
2028
|
+
active: "fill-white",
|
|
2029
|
+
disabled: "fill-dark-30/25"
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
F(
|
|
2033
|
+
({
|
|
2034
|
+
variant: e = "small",
|
|
2035
|
+
active: r,
|
|
2036
|
+
icon: i,
|
|
2037
|
+
disabled: t,
|
|
2038
|
+
children: n,
|
|
2039
|
+
className: l,
|
|
2040
|
+
iconDimensions: d,
|
|
2041
|
+
...a
|
|
2042
|
+
}, s) => {
|
|
2043
|
+
const u = N.sizes[e];
|
|
2044
|
+
return /* @__PURE__ */ p(
|
|
2045
|
+
"button",
|
|
2046
|
+
{
|
|
2047
|
+
role: "tab",
|
|
2048
|
+
"aria-selected": r,
|
|
2049
|
+
ref: s,
|
|
2050
|
+
className: b(
|
|
2051
|
+
u.base,
|
|
2052
|
+
u.default,
|
|
2053
|
+
!t && !r && u.hover,
|
|
2054
|
+
r && !t && u.active,
|
|
2055
|
+
r && !t && N.focus,
|
|
2056
|
+
t && u.disabled,
|
|
2057
|
+
l
|
|
2058
|
+
),
|
|
2059
|
+
...a,
|
|
2060
|
+
children: [
|
|
2061
|
+
!!i && /* @__PURE__ */ o(
|
|
2062
|
+
i,
|
|
2063
|
+
{
|
|
2064
|
+
"aria-label": "icon",
|
|
2065
|
+
"aria-hidden": !0,
|
|
2066
|
+
className: b(
|
|
2067
|
+
N.icon.default,
|
|
2068
|
+
r && N.icon.active,
|
|
2069
|
+
t && N.icon.disabled
|
|
2070
|
+
),
|
|
2071
|
+
...d
|
|
2072
|
+
}
|
|
2073
|
+
),
|
|
2074
|
+
n
|
|
2075
|
+
]
|
|
2076
|
+
}
|
|
2077
|
+
);
|
|
2078
|
+
}
|
|
2079
|
+
);
|
|
2080
|
+
const U = ({
|
|
2081
|
+
children: e,
|
|
2082
|
+
className: r = "",
|
|
2083
|
+
variant: i = "p",
|
|
2084
|
+
...t
|
|
2085
|
+
}) => /* @__PURE__ */ o(i, { ...t, className: b(r), children: e });
|
|
2086
|
+
m.forwardRef(
|
|
2087
|
+
({
|
|
2088
|
+
className: e = "",
|
|
2089
|
+
disabled: r,
|
|
2090
|
+
onChange: i,
|
|
2091
|
+
placeholder: t = "Введите текст",
|
|
2092
|
+
autoFocus: n = !1,
|
|
2093
|
+
status: l,
|
|
2094
|
+
maxLength: d,
|
|
2095
|
+
...a
|
|
2096
|
+
}, s) => {
|
|
2097
|
+
var u, f;
|
|
2098
|
+
const g = W.base, h = W.state, v = W.disabled, x = W.styles, y = W.maxLength;
|
|
2099
|
+
return /* @__PURE__ */ p("div", { className: W.root, children: [
|
|
2100
|
+
/* @__PURE__ */ o(
|
|
2101
|
+
"textarea",
|
|
2102
|
+
{
|
|
2103
|
+
...a,
|
|
2104
|
+
role: "textbox",
|
|
2105
|
+
ref: s,
|
|
2106
|
+
maxLength: d,
|
|
2107
|
+
disabled: r,
|
|
2108
|
+
autoFocus: n,
|
|
2109
|
+
placeholder: t,
|
|
2110
|
+
onChange: i,
|
|
2111
|
+
className: b(
|
|
2112
|
+
g,
|
|
2113
|
+
h.focus,
|
|
2114
|
+
!r && h.hover,
|
|
2115
|
+
l && (x == null ? void 0 : x[l]),
|
|
2116
|
+
r && v,
|
|
2117
|
+
e
|
|
2118
|
+
)
|
|
2119
|
+
}
|
|
2120
|
+
),
|
|
2121
|
+
/* @__PURE__ */ o("div", { className: W.messageContainer, children: d && /* @__PURE__ */ p(
|
|
2122
|
+
U,
|
|
2123
|
+
{
|
|
2124
|
+
variant: "span",
|
|
2125
|
+
className: b(
|
|
2126
|
+
y,
|
|
2127
|
+
String(a.value).length === d ? "bg-danger-10 text-sidebar-10" : "bg-transparent"
|
|
2128
|
+
),
|
|
2129
|
+
children: [
|
|
2130
|
+
(f = (u = a.value || "") == null ? void 0 : u.toString()) == null ? void 0 : f.length,
|
|
2131
|
+
"/",
|
|
2132
|
+
d
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
) })
|
|
2136
|
+
] });
|
|
2137
|
+
}
|
|
2138
|
+
);
|
|
2139
|
+
const W = {
|
|
2140
|
+
root: "flex flex-col gap-1 w-full",
|
|
2141
|
+
base: "w-full min-h-[60px] bg-gray-50 text-sm text-dark-10 font-sans font-medium leading-none px-3.5 py-3 border border-gray-50 rounded-[10px] placeholder:text-sm placeholder:text-dark-40/50 transition-colors duration-200",
|
|
2142
|
+
disabled: "text-dark-40/25 bg-dark-30/[.08] cursor-not-allowed",
|
|
2143
|
+
state: {
|
|
2144
|
+
focus: "focus:outline-none focus:bg-white focus:border focus:border-primary-10 focus:ring-2 focus:ring-primary-10/[.20]",
|
|
2145
|
+
hover: "hover:border-primary-10/[.31]"
|
|
2146
|
+
},
|
|
2147
|
+
styles: {
|
|
2148
|
+
danger: "bg-white border-danger-10 ring-2 ring-danger-10/[.20] hover:border-danger-10",
|
|
2149
|
+
info: "bg-white border-info-10 ring ring-info-10/[.20] hover:border-info-10",
|
|
2150
|
+
success: "bg-white border-success-10 ring-2 ring-success-10/[.20] hover:border-success-10"
|
|
2151
|
+
},
|
|
2152
|
+
messageContainer: "flex items-center leading-none",
|
|
2153
|
+
maxLength: "ml-auto p-1 text-dark-40/50 text-sm font-regular leading-none rounded"
|
|
2154
|
+
}, { Root: Cr, Thumb: Br } = X;
|
|
2155
|
+
m.forwardRef(
|
|
2156
|
+
({ label: e = "", labelPosition: r = "right", disabled: i, classNames: t, ...n }, l) => /* @__PURE__ */ p(
|
|
2157
|
+
"div",
|
|
2158
|
+
{
|
|
2159
|
+
className: b(
|
|
2160
|
+
"flex items-center w-fit",
|
|
2161
|
+
r === "right" && "flex-row-reverse"
|
|
2162
|
+
),
|
|
2163
|
+
children: [
|
|
2164
|
+
!!e && /* @__PURE__ */ o(
|
|
2165
|
+
"span",
|
|
2166
|
+
{
|
|
2167
|
+
className: b(
|
|
2168
|
+
ae.label,
|
|
2169
|
+
r === "right" && "ml-2",
|
|
2170
|
+
i && "cursor-not-allowed text-dark-30/[.20]",
|
|
2171
|
+
t == null ? void 0 : t.label
|
|
2172
|
+
),
|
|
2173
|
+
children: e
|
|
2174
|
+
}
|
|
2175
|
+
),
|
|
2176
|
+
/* @__PURE__ */ o(
|
|
2177
|
+
Cr,
|
|
2178
|
+
{
|
|
2179
|
+
ref: l,
|
|
2180
|
+
disabled: i,
|
|
2181
|
+
className: b(ae.base, t == null ? void 0 : t.base),
|
|
2182
|
+
...n,
|
|
2183
|
+
children: /* @__PURE__ */ o(
|
|
2184
|
+
Br,
|
|
2185
|
+
{
|
|
2186
|
+
tabIndex: 1,
|
|
2187
|
+
className: b(ae.thumb, t == null ? void 0 : t.thumb)
|
|
2188
|
+
}
|
|
2189
|
+
)
|
|
2190
|
+
}
|
|
2191
|
+
)
|
|
2192
|
+
]
|
|
2193
|
+
}
|
|
2194
|
+
)
|
|
2195
|
+
);
|
|
2196
|
+
const ae = {
|
|
2197
|
+
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",
|
|
2198
|
+
label: "mr-2 text-dark-30 text-sm",
|
|
2199
|
+
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]"
|
|
2200
|
+
};
|
|
2201
|
+
b(
|
|
2202
|
+
"font-mono select-none w-auto h-auto max-size-32 rounded-[5px] bg-dark-30 px-4 py-2 text-[10px] text-start leading-none text-sidebar-10 z-50",
|
|
2203
|
+
"animate-tooltipFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade",
|
|
2204
|
+
"data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade",
|
|
2205
|
+
"data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade",
|
|
2206
|
+
"data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade"
|
|
2207
|
+
);
|
|
2208
|
+
const Tr = m.forwardRef(
|
|
2209
|
+
({
|
|
2210
|
+
imageSrc: e,
|
|
2211
|
+
alt: r,
|
|
2212
|
+
hasBadge: i = !1,
|
|
2213
|
+
iconSize: t,
|
|
2214
|
+
isActive: n,
|
|
2215
|
+
isHasCamera: l = !1,
|
|
2216
|
+
onAvatarChange: d,
|
|
2217
|
+
classNames: a
|
|
2218
|
+
}, s) => {
|
|
2219
|
+
const u = K.root, f = K.image, g = K.badge;
|
|
2220
|
+
return /* @__PURE__ */ p(
|
|
2221
|
+
ge,
|
|
2222
|
+
{
|
|
2223
|
+
role: "group",
|
|
2224
|
+
"data-testid": "avatar-root",
|
|
2225
|
+
onClick: () => {
|
|
2226
|
+
var h;
|
|
2227
|
+
return (h = s == null ? void 0 : s.current) == null ? void 0 : h.click();
|
|
2228
|
+
},
|
|
2229
|
+
className: b(
|
|
2230
|
+
u,
|
|
2231
|
+
i && "bg-dark-30/[.10]",
|
|
2232
|
+
n && K.active,
|
|
2233
|
+
a == null ? void 0 : a.wrapper
|
|
2234
|
+
),
|
|
2235
|
+
children: [
|
|
2236
|
+
!!s && /* @__PURE__ */ o(
|
|
2237
|
+
"input",
|
|
2238
|
+
{
|
|
2239
|
+
ref: s,
|
|
2240
|
+
type: "file",
|
|
2241
|
+
accept: ".png,.jpg,.jpeg,image/png,image/jpeg",
|
|
2242
|
+
className: "hidden",
|
|
2243
|
+
onChange: d
|
|
2244
|
+
}
|
|
2245
|
+
),
|
|
2246
|
+
e ? /* @__PURE__ */ o(
|
|
2247
|
+
fe,
|
|
2248
|
+
{
|
|
2249
|
+
role: "img",
|
|
2250
|
+
"data-testid": "avatar-img",
|
|
2251
|
+
src: e,
|
|
2252
|
+
alt: r ?? "empty-avatar",
|
|
2253
|
+
className: b(f, a == null ? void 0 : a.img)
|
|
2254
|
+
}
|
|
2255
|
+
) : /* @__PURE__ */ o(me, { children: l ? /* @__PURE__ */ o(
|
|
2256
|
+
ue,
|
|
2257
|
+
{
|
|
2258
|
+
width: 38,
|
|
2259
|
+
height: 30,
|
|
2260
|
+
className: b("fill-dark-30/[.20]", a == null ? void 0 : a.badgeIcon),
|
|
2261
|
+
viewBox: "0 0 38 30"
|
|
2262
|
+
}
|
|
2263
|
+
) : /* @__PURE__ */ o(
|
|
2264
|
+
vr,
|
|
2265
|
+
{
|
|
2266
|
+
"data-testid": "icon-avatar",
|
|
2267
|
+
"aria-label": "icon-avatar",
|
|
2268
|
+
height: (t == null ? void 0 : t.height) ?? 17,
|
|
2269
|
+
width: (t == null ? void 0 : t.width) ?? 17,
|
|
2270
|
+
className: b(
|
|
2271
|
+
"fill-sidebar-10",
|
|
2272
|
+
i && "fill-dark-30/[.15]",
|
|
2273
|
+
a == null ? void 0 : a.fallbackIcon
|
|
2274
|
+
)
|
|
2275
|
+
}
|
|
2276
|
+
) }),
|
|
2277
|
+
i && /* @__PURE__ */ o(
|
|
2278
|
+
"div",
|
|
2279
|
+
{
|
|
2280
|
+
"data-testid": "avatar-badge",
|
|
2281
|
+
className: b(g.wrapper, a == null ? void 0 : a.badge),
|
|
2282
|
+
children: n ? /* @__PURE__ */ o(
|
|
2283
|
+
ve,
|
|
2284
|
+
{
|
|
2285
|
+
width: 14,
|
|
2286
|
+
height: 14,
|
|
2287
|
+
viewBox: "0 0 20 20",
|
|
2288
|
+
className: "fill-sidebar-10"
|
|
2289
|
+
}
|
|
2290
|
+
) : /* @__PURE__ */ o(
|
|
2291
|
+
ue,
|
|
2292
|
+
{
|
|
2293
|
+
width: 16,
|
|
2294
|
+
height: 13,
|
|
2295
|
+
viewBox: "0 0 38 30",
|
|
2296
|
+
className: b("fill-sidebar-10", a == null ? void 0 : a.badgeIcon)
|
|
2297
|
+
}
|
|
2298
|
+
)
|
|
2299
|
+
}
|
|
2300
|
+
)
|
|
2301
|
+
]
|
|
2302
|
+
}
|
|
2303
|
+
);
|
|
2304
|
+
}
|
|
2305
|
+
);
|
|
2306
|
+
Tr.displayName = "Avatar";
|
|
2307
|
+
const K = {
|
|
2308
|
+
root: "size-9 relative flex items-center justify-center bg-dark-30/[.10] rounded-full",
|
|
2309
|
+
image: "size-full object-center object-cover rounded-full",
|
|
2310
|
+
badge: {
|
|
2311
|
+
wrapper: "absolute bottom-2 right-2 transform translate-x-1/4 translate-y-1/4 flex items-center justify-center bg-primary-10 px-2.5 py-3 border-2 border-sidebar-10 rounded-full"
|
|
2312
|
+
},
|
|
2313
|
+
active: "ring ring-2 ring-offset-1 ring-primary-10"
|
|
2314
|
+
}, Q = {
|
|
2315
|
+
image: "Photo",
|
|
2316
|
+
video: "Video",
|
|
2317
|
+
audio: "Voice message",
|
|
2318
|
+
file: "Файл"
|
|
2319
|
+
}, gt = ({
|
|
2320
|
+
senderName: e,
|
|
2321
|
+
messageText: r,
|
|
2322
|
+
contentType: i = "text",
|
|
2323
|
+
fileUrl: t,
|
|
2324
|
+
fileName: n,
|
|
2325
|
+
onClose: l,
|
|
2326
|
+
showCloseButton: d = !0,
|
|
2327
|
+
classNames: a
|
|
2328
|
+
}) => {
|
|
2329
|
+
const s = () => {
|
|
2330
|
+
switch (i) {
|
|
2331
|
+
case "image":
|
|
2332
|
+
return /* @__PURE__ */ o("span", { className: k.mediaLabel, children: Q.image });
|
|
2333
|
+
case "video":
|
|
2334
|
+
return /* @__PURE__ */ o("span", { className: k.mediaLabel, children: Q.video });
|
|
2335
|
+
case "audio":
|
|
2336
|
+
return /* @__PURE__ */ o("span", { className: k.mediaLabel, children: Q.audio });
|
|
2337
|
+
case "file":
|
|
2338
|
+
return /* @__PURE__ */ o("span", { className: k.mediaLabel, children: n || Q.file });
|
|
2339
|
+
default:
|
|
2340
|
+
return r || null;
|
|
2341
|
+
}
|
|
2342
|
+
};
|
|
2343
|
+
return /* @__PURE__ */ p(
|
|
2344
|
+
"div",
|
|
2345
|
+
{
|
|
2346
|
+
className: b(k.wrapper, a == null ? void 0 : a.wrapper),
|
|
2347
|
+
"data-testid": "chat-edit-row",
|
|
2348
|
+
children: [
|
|
2349
|
+
/* @__PURE__ */ p("div", { className: b(k.message, a == null ? void 0 : a.message), children: [
|
|
2350
|
+
(i === "image" || i === "video") && t && /* @__PURE__ */ o(
|
|
2351
|
+
"img",
|
|
2352
|
+
{
|
|
2353
|
+
src: t,
|
|
2354
|
+
alt: n || "thumbnail",
|
|
2355
|
+
"data-testid": "reply-thumbnail",
|
|
2356
|
+
className: b(k.thumbnail, a == null ? void 0 : a.thumbnail)
|
|
2357
|
+
}
|
|
2358
|
+
),
|
|
2359
|
+
/* @__PURE__ */ p("div", { className: b(k.content, a == null ? void 0 : a.content), children: [
|
|
2360
|
+
/* @__PURE__ */ o(
|
|
2361
|
+
U,
|
|
2362
|
+
{
|
|
2363
|
+
variant: "span",
|
|
2364
|
+
className: b(k.title, a == null ? void 0 : a.title),
|
|
2365
|
+
"data-testid": "chat-edit-title",
|
|
2366
|
+
children: e
|
|
2367
|
+
}
|
|
2368
|
+
),
|
|
2369
|
+
/* @__PURE__ */ o(
|
|
2370
|
+
U,
|
|
2371
|
+
{
|
|
2372
|
+
variant: "span",
|
|
2373
|
+
className: b(k.subtitle, a == null ? void 0 : a.subtitle),
|
|
2374
|
+
"data-testid": "chat-edit-subtitle",
|
|
2375
|
+
children: s()
|
|
2376
|
+
}
|
|
2377
|
+
)
|
|
2378
|
+
] })
|
|
2379
|
+
] }),
|
|
2380
|
+
d && /* @__PURE__ */ o(
|
|
2381
|
+
wr,
|
|
2382
|
+
{
|
|
2383
|
+
"data-testid": "chat-close-edit",
|
|
2384
|
+
shape: "circle",
|
|
2385
|
+
classNames: {
|
|
2386
|
+
button: b(k.closeButton, a == null ? void 0 : a.closeButton),
|
|
2387
|
+
icon: b(k.closeIcon, a == null ? void 0 : a.closeIcon)
|
|
2388
|
+
},
|
|
2389
|
+
icon: Se,
|
|
2390
|
+
iconSizes: { width: 24, height: 24, viewBox: "0 0 20 20" },
|
|
2391
|
+
onClick: l
|
|
2392
|
+
}
|
|
2393
|
+
)
|
|
2394
|
+
]
|
|
2395
|
+
}
|
|
2396
|
+
);
|
|
2397
|
+
}, k = {
|
|
2398
|
+
wrapper: "w-full h-14 flex flex-row justify-between items-center",
|
|
2399
|
+
message: "flex border-s-[3px] border-s-primary-10 w-full pr-2 py-1.5 bg-primary-10/[.10] rounded-[5px]",
|
|
2400
|
+
title: "text-sm text-primary-10 font-medium truncate w-full",
|
|
2401
|
+
content: "flex flex-col items-start gap-1 ml-2 text-sm text-dark-40",
|
|
2402
|
+
subtitle: "text-sm text-dark-30 font-medium",
|
|
2403
|
+
closeButton: "border-0 p-3 shadow-none focus:border-0 active:border-0",
|
|
2404
|
+
closeIcon: "text-primary-10 fill-primary-10",
|
|
2405
|
+
thumbnail: "size-[46px] ml-2 rounded object-cover flex-shrink-0",
|
|
2406
|
+
mediaLabel: "inline-flex items-center gap-1 text-sm text-dark-40 font-medium"
|
|
1227
2407
|
};
|
|
1228
2408
|
export {
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
k as
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
2409
|
+
cr as Avatar,
|
|
2410
|
+
$r as Button,
|
|
2411
|
+
rt as Checkbox,
|
|
2412
|
+
tt as Headline,
|
|
2413
|
+
et as IconButton,
|
|
2414
|
+
at as Input,
|
|
2415
|
+
it as Label,
|
|
2416
|
+
ot as Notification,
|
|
2417
|
+
$e as Radio,
|
|
2418
|
+
gt as ReplyMessage,
|
|
2419
|
+
ut as Select,
|
|
2420
|
+
ht as Skeleton,
|
|
2421
|
+
ur as Spinner,
|
|
2422
|
+
nt as Status,
|
|
2423
|
+
dt as Switch,
|
|
2424
|
+
lt as Tab,
|
|
2425
|
+
pt as TabDots,
|
|
2426
|
+
R as Text,
|
|
2427
|
+
st as Textarea,
|
|
2428
|
+
ct as Toggle,
|
|
2429
|
+
bt as Tooltip,
|
|
2430
|
+
J as avatarIconTokens,
|
|
2431
|
+
P as buttonTokens,
|
|
2432
|
+
D as checkboxTokens,
|
|
2433
|
+
L as iconButtonTokens,
|
|
2434
|
+
H as inputTokens,
|
|
2435
|
+
se as labelTokens,
|
|
2436
|
+
z as radioTokens,
|
|
2437
|
+
k as replyMessageTokens,
|
|
2438
|
+
M as selectTokens,
|
|
2439
|
+
br as skeletonTokens,
|
|
2440
|
+
ee as spinnerTokens,
|
|
2441
|
+
ce as statusTokens,
|
|
2442
|
+
E as switchTokens,
|
|
2443
|
+
$ as tabDotsTokens,
|
|
2444
|
+
_ as tabTokens,
|
|
1265
2445
|
j as textareaTokens,
|
|
1266
|
-
|
|
1267
|
-
|
|
2446
|
+
Z as toggleTokens,
|
|
2447
|
+
be as tooltipTokens
|
|
1268
2448
|
};
|