cytur-design-system 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
- import { forwardRef as e, useEffect as t } from "react";
2
- import { Alert as n, App as r, AutoComplete as i, Avatar as a, Badge as o, Breadcrumb as s, Button as c, Button as l, Card as u, Card as ee, Checkbox as d, Col as f, ConfigProvider as p, ConfigProvider as m, DatePicker as te, Descriptions as ne, Divider as re, Drawer as ie, Dropdown as ae, Empty as oe, Flex as se, Form as h, Input as g, InputNumber as ce, Layout as le, List as ue, Menu as de, Modal as fe, Pagination as pe, Popconfirm as me, Popover as he, Progress as ge, Radio as _e, Result as ve, Row as ye, Select as be, Skeleton as xe, Skeleton as _, Slider as v, Space as y, Space as b, Spin as x, Spin as S, Steps as C, Switch as w, Table as T, Table as E, Tabs as D, Tag as O, Tag as k, TimePicker as A, Tooltip as j, Tree as M, Typography as Se, Typography as N, Upload as Ce, message as we, notification as Te, theme as P } from "antd";
3
- import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
4
- import { DownloadOutlined as Ee, NotificationOutlined as De, SettingOutlined as Oe } from "@ant-design/icons";
1
+ import { forwardRef as e, useEffect as t, useRef as n, useState as r } from "react";
2
+ import { Alert as i, App as a, AutoComplete as o, Avatar as s, Badge as c, Breadcrumb as l, Button as u, Card as d, Card as f, Checkbox as p, Col as m, ConfigProvider as h, ConfigProvider as g, DatePicker as _, Descriptions as v, Divider as y, Drawer as b, Dropdown as x, Empty as S, Empty as C, Flex as w, Form as T, Input as E, InputNumber as D, Layout as O, List as ee, Menu as te, Modal as ne, Pagination as re, Popconfirm as ie, Popover as ae, Progress as oe, Radio as se, Result as ce, Row as le, Select as ue, Select as de, Skeleton as fe, Skeleton as pe, Slider as me, Space as he, Space as k, Spin as ge, Spin as _e, Statistic as ve, Steps as ye, Switch as be, Table as xe, Tabs as Se, Tag as Ce, Tag as A, TimePicker as we, Tooltip as Te, Tree as Ee, Typography as De, Typography as j, Upload as Oe, message as ke, notification as Ae, theme as je, theme as M } from "antd";
3
+ import { Fragment as Me, jsx as N, jsxs as P } from "react/jsx-runtime";
4
+ import * as Ne from "@ant-design/icons";
5
+ import { DownloadOutlined as Pe, NotificationOutlined as Fe, SettingOutlined as Ie } from "@ant-design/icons";
5
6
  //#region src/theme/index.ts
6
- var R = {
7
+ var F = {
7
8
  fontFamily: "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
8
9
  fontSize: 14,
9
10
  borderRadius: 4,
@@ -12,6 +13,8 @@ var R = {
12
13
  borderRadiusXS: 2,
13
14
  boxShadow: "0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.08)",
14
15
  boxShadowSecondary: "0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.08)",
16
+ controlOutlineWidth: 0,
17
+ controlOutline: "transparent",
15
18
  colorSuccess: "#15803d",
16
19
  colorWarning: "#f59e0b",
17
20
  colorError: "#dc2626",
@@ -27,15 +30,42 @@ var R = {
27
30
  colorBgContainer: "#ffffff",
28
31
  colorBgElevated: "#ffffff",
29
32
  colorBgLayout: "#f8fafb"
30
- }, z = {
33
+ }, I = {
31
34
  Button: {
32
35
  primaryShadow: "none",
33
- defaultShadow: "none"
36
+ defaultShadow: "none",
37
+ dangerShadow: "none",
38
+ fontWeight: 700,
39
+ controlHeightSM: 32,
40
+ contentFontSizeSM: 12,
41
+ contentLineHeightSM: 16 / 12,
42
+ paddingInlineSM: 8,
43
+ borderRadiusSM: 4,
44
+ controlHeight: 36,
45
+ contentFontSize: 14,
46
+ contentLineHeight: 20 / 14,
47
+ paddingInline: 12,
48
+ borderRadius: 6,
49
+ controlHeightLG: 44,
50
+ contentFontSizeLG: 16,
51
+ contentLineHeightLG: 24 / 16,
52
+ paddingInlineLG: 16,
53
+ borderRadiusLG: 8
54
+ },
55
+ Input: {
56
+ activeShadow: "none",
57
+ errorActiveShadow: "none",
58
+ warningActiveShadow: "none"
59
+ },
60
+ InputNumber: {
61
+ activeShadow: "none",
62
+ errorActiveShadow: "none",
63
+ warningActiveShadow: "none"
34
64
  },
35
65
  Modal: { borderRadiusLG: 12 }
36
- }, B = {
66
+ }, L = {
37
67
  token: {
38
- ...R,
68
+ ...F,
39
69
  colorPrimary: "#0a9e9e",
40
70
  colorPrimaryHover: "#078080",
41
71
  colorPrimaryActive: "#056363",
@@ -43,10 +73,10 @@ var R = {
43
73
  colorLinkHover: "#078080",
44
74
  colorLinkActive: "#056363"
45
75
  },
46
- components: z
47
- }, V = {
76
+ components: I
77
+ }, R = {
48
78
  token: {
49
- ...R,
79
+ ...F,
50
80
  colorPrimary: "#2563eb",
51
81
  colorPrimaryHover: "#1d4ed8",
52
82
  colorPrimaryActive: "#1e40af",
@@ -54,10 +84,10 @@ var R = {
54
84
  colorLinkHover: "#1d4ed8",
55
85
  colorLinkActive: "#1e40af"
56
86
  },
57
- components: z
58
- }, H = {
87
+ components: I
88
+ }, z = {
59
89
  token: {
60
- ...R,
90
+ ...F,
61
91
  colorPrimary: "#4f46e5",
62
92
  colorPrimaryHover: "#4338ca",
63
93
  colorPrimaryActive: "#3730a3",
@@ -65,12 +95,12 @@ var R = {
65
95
  colorLinkHover: "#4338ca",
66
96
  colorLinkActive: "#3730a3"
67
97
  },
68
- components: z
69
- }, ke = B, U = {
70
- base: B,
71
- rm: V,
72
- csc: H
73
- }, W = {
98
+ components: I
99
+ }, Le = L, B = {
100
+ base: L,
101
+ rm: R,
102
+ csc: z
103
+ }, V = {
74
104
  "label-default-bg-solid": "#1f2937",
75
105
  "label-default-text-solid": "#ffffff",
76
106
  "label-primary-bg-solid": "#2563eb",
@@ -163,9 +193,6 @@ var R = {
163
193
  "tag-danger-bg-border-hover": "#fef2f2",
164
194
  "tag-danger-text-border": "#b91c1c",
165
195
  "tag-danger-border": "#f87171",
166
- "action-primary": "#0a9e9e",
167
- "action-primary-hover": "#078080",
168
- "action-primary-active": "#056363",
169
196
  "action-secondary": "#1d4ed8",
170
197
  "action-secondary-hover": "#1e40af",
171
198
  "action-secondary-active": "#1e3a8a",
@@ -179,7 +206,6 @@ var R = {
179
206
  "text-primary": "#111827",
180
207
  "text-secondary": "#4a5568",
181
208
  "text-secondary-action": "#1d4ed8",
182
- "text-primary-action": "#0a9e9e",
183
209
  "text-muted": "#a3adb8",
184
210
  "text-danger": "#dc2626",
185
211
  "text-inverse": "#ffffff",
@@ -191,6 +217,91 @@ var R = {
191
217
  "disabled-bg": "#e2e6ea",
192
218
  "disabled-border": "#e2e6ea",
193
219
  "disabled-text": "#a3adb8",
220
+ "button-base-border-width": "1px",
221
+ "button-base-font-weight": "700",
222
+ "button-base-transition": "0.15s ease",
223
+ "radius-4": "4px",
224
+ "radius-6": "6px",
225
+ "radius-8": "8px",
226
+ "button-secondary-bg-default": "transparent",
227
+ "button-secondary-bg-hover": "rgba(0,0,0,0.04)",
228
+ "button-secondary-bg-active": "rgba(0,0,0,0.08)",
229
+ "button-secondary-bg-focus": "transparent",
230
+ "button-secondary-bg-disabled": "#e2e6ea",
231
+ "button-secondary-text-default": "#374151",
232
+ "button-secondary-text-hover": "#111827",
233
+ "button-secondary-text-active": "#111827",
234
+ "button-secondary-text-focus": "#374151",
235
+ "button-secondary-text-disabled": "#a3adb8",
236
+ "button-secondary-border-default": "#a3adb8",
237
+ "button-secondary-border-hover": "#374151",
238
+ "button-secondary-border-active": "#111827",
239
+ "button-secondary-border-focus": "#4a5568",
240
+ "button-secondary-border-disabled": "#e2e6ea",
241
+ "button-ghost-bg-default": "transparent",
242
+ "button-ghost-bg-hover": "#f8fafb",
243
+ "button-ghost-bg-active": "#cdd3d9",
244
+ "button-ghost-bg-focus": "transparent",
245
+ "button-ghost-bg-disabled": "#e2e6ea",
246
+ "button-ghost-text-default": "#111827",
247
+ "button-ghost-text-hover": "#111827",
248
+ "button-ghost-text-active": "#111827",
249
+ "button-ghost-text-focus": "#111827",
250
+ "button-ghost-text-disabled": "#a3adb8",
251
+ "button-ghost-border-default": "transparent",
252
+ "button-ghost-border-hover": "transparent",
253
+ "button-ghost-border-active": "transparent",
254
+ "button-ghost-border-focus": "#3b82f6",
255
+ "button-ghost-border-disabled": "transparent",
256
+ "button-danger-bg-default": "#dc2626",
257
+ "button-danger-bg-hover": "#b91c1c",
258
+ "button-danger-bg-active": "#991b1b",
259
+ "button-danger-bg-focus": "#dc2626",
260
+ "button-danger-bg-disabled": "#e2e6ea",
261
+ "button-danger-text-default": "#ffffff",
262
+ "button-danger-text-hover": "#ffffff",
263
+ "button-danger-text-active": "#ffffff",
264
+ "button-danger-text-focus": "#ffffff",
265
+ "button-danger-text-disabled": "#a3adb8",
266
+ "button-danger-border-default": "transparent",
267
+ "button-danger-border-hover": "transparent",
268
+ "button-danger-border-active": "transparent",
269
+ "button-danger-border-focus": "#3b82f6",
270
+ "button-danger-border-disabled": "transparent",
271
+ "iconbutton-radius": "8px",
272
+ "iconbutton-size-sm": "28px",
273
+ "iconbutton-size-md": "32px",
274
+ "iconbutton-size-lg": "36px",
275
+ "iconbutton-icon-sm": "16px",
276
+ "iconbutton-icon-md": "20px",
277
+ "iconbutton-icon-lg": "24px",
278
+ "iconbutton-bg-default": "transparent",
279
+ "iconbutton-bg-hover": "#f1f3f5",
280
+ "iconbutton-bg-active": "#e2e6ea",
281
+ "iconbutton-bg-disabled": "transparent",
282
+ "iconbutton-icon-default": "#4a5568",
283
+ "iconbutton-icon-hover": "#111827",
284
+ "iconbutton-icon-active": "#111827",
285
+ "iconbutton-icon-disabled": "#a3adb8",
286
+ "button-size-sm-height": "32px",
287
+ "button-size-sm-padding-x": "8px",
288
+ "button-size-sm-padding-y": "8px",
289
+ "button-size-sm-gap": "4px",
290
+ "button-size-sm-radius": "4px",
291
+ "button-size-sm-icon": "16px",
292
+ "button-size-md-height": "36px",
293
+ "button-size-md-padding-x": "12px",
294
+ "button-size-md-padding-y": "8px",
295
+ "button-size-md-gap": "8px",
296
+ "button-size-md-radius": "6px",
297
+ "button-size-md-icon": "20px",
298
+ "button-size-lg-height": "44px",
299
+ "button-size-lg-padding-x": "16px",
300
+ "button-size-lg-padding-y": "12px",
301
+ "button-size-lg-gap": "8px",
302
+ "button-size-lg-radius": "8px",
303
+ "button-size-lg-icon": "24px",
304
+ "font-family": "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
194
305
  "font-size-xs": "12px",
195
306
  "font-size-sm": "14px",
196
307
  "font-size-md": "16px",
@@ -223,11 +334,8 @@ var R = {
223
334
  "color-gray-900": "#111827",
224
335
  "color-yellow-50": "#fffbeb",
225
336
  "color-yellow-500": "#f59e0b"
226
- }, Ae = {
227
- ...W,
228
- "action-primary": "#3b82f6",
229
- "action-primary-hover": "#5899f5",
230
- "action-primary-active": "#88b8fa",
337
+ }, Re = {
338
+ ...V,
231
339
  "action-danger": "#f87171",
232
340
  "action-danger-hover": "#fca5a5",
233
341
  "action-danger-active": "#fecaca",
@@ -238,7 +346,6 @@ var R = {
238
346
  "text-primary": "#f8fafb",
239
347
  "text-secondary": "#cdd3d9",
240
348
  "text-secondary-action": "#88b8fa",
241
- "text-primary-action": "#3b82f6",
242
349
  "text-muted": "#6b7b8d",
243
350
  "text-danger": "#f87171",
244
351
  "text-inverse": "#1f2937",
@@ -250,6 +357,57 @@ var R = {
250
357
  "disabled-bg": "#1f2937",
251
358
  "disabled-border": "#374151",
252
359
  "disabled-text": "#6b7b8d",
360
+ "iconbutton-bg-hover": "#1f2937",
361
+ "iconbutton-bg-active": "#374151",
362
+ "iconbutton-icon-default": "#cdd3d9",
363
+ "iconbutton-icon-hover": "#f8fafb",
364
+ "iconbutton-icon-active": "#f8fafb",
365
+ "iconbutton-icon-disabled": "#6b7b8d",
366
+ "button-secondary-bg-default": "transparent",
367
+ "button-secondary-bg-hover": "rgba(255,255,255,0.06)",
368
+ "button-secondary-bg-active": "rgba(255,255,255,0.12)",
369
+ "button-secondary-bg-focus": "transparent",
370
+ "button-secondary-bg-disabled": "#1f2937",
371
+ "button-secondary-text-default": "#cdd3d9",
372
+ "button-secondary-text-hover": "#f8fafb",
373
+ "button-secondary-text-active": "#f8fafb",
374
+ "button-secondary-text-focus": "#cdd3d9",
375
+ "button-secondary-text-disabled": "#6b7b8d",
376
+ "button-secondary-border-default": "#4a5568",
377
+ "button-secondary-border-hover": "#a3adb8",
378
+ "button-secondary-border-active": "#f8fafb",
379
+ "button-secondary-border-focus": "#a3adb8",
380
+ "button-secondary-border-disabled": "#374151",
381
+ "button-ghost-bg-default": "transparent",
382
+ "button-ghost-bg-hover": "#1f2937",
383
+ "button-ghost-bg-active": "#374151",
384
+ "button-ghost-bg-focus": "transparent",
385
+ "button-ghost-bg-disabled": "#1f2937",
386
+ "button-ghost-text-default": "#f8fafb",
387
+ "button-ghost-text-hover": "#f8fafb",
388
+ "button-ghost-text-active": "#f8fafb",
389
+ "button-ghost-text-focus": "#f8fafb",
390
+ "button-ghost-text-disabled": "#6b7b8d",
391
+ "button-ghost-border-default": "transparent",
392
+ "button-ghost-border-hover": "transparent",
393
+ "button-ghost-border-active": "transparent",
394
+ "button-ghost-border-focus": "#3b82f6",
395
+ "button-ghost-border-disabled": "transparent",
396
+ "button-danger-bg-default": "#f87171",
397
+ "button-danger-bg-hover": "#fca5a5",
398
+ "button-danger-bg-active": "#fecaca",
399
+ "button-danger-bg-focus": "#f87171",
400
+ "button-danger-bg-disabled": "#1f2937",
401
+ "button-danger-text-default": "#ffffff",
402
+ "button-danger-text-hover": "#ffffff",
403
+ "button-danger-text-active": "#ffffff",
404
+ "button-danger-text-focus": "#ffffff",
405
+ "button-danger-text-disabled": "#6b7b8d",
406
+ "button-danger-border-default": "transparent",
407
+ "button-danger-border-hover": "transparent",
408
+ "button-danger-border-active": "transparent",
409
+ "button-danger-border-focus": "#3b82f6",
410
+ "button-danger-border-disabled": "transparent",
253
411
  "color-gray-50": "#0f172a",
254
412
  "color-gray-100": "#1f2937",
255
413
  "color-gray-200": "#374151",
@@ -260,303 +418,874 @@ var R = {
260
418
  "color-gray-700": "#e2e6ea",
261
419
  "color-gray-800": "#f1f3f5",
262
420
  "color-gray-900": "#f8fafb"
263
- }, je = (e, t) => {
264
- let n = (e) => Object.entries(e).map(([e, t]) => ` --cytur-${e}: ${t};`).join("\n");
265
- return `
421
+ }, ze = (e, t, n) => {
422
+ let r = (e) => Object.entries(e).map(([e, t]) => ` --cytur-${e}: ${t};`).join("\n"), i = Object.keys(n), a = i[0];
423
+ return `${`
266
424
  :root, [data-mode="light"] {
267
- ${n(e)}
425
+ ${r(e)}
268
426
  }
269
427
  [data-mode="dark"] {
270
- ${n(t)}
428
+ ${r(t)}
429
+ }`.trim()}\n${i.map((e) => {
430
+ let t = n[e], i = e === a, o = i ? `:root, [data-brand="${e}"]:not([data-mode="dark"])` : `[data-brand="${e}"]:not([data-mode="dark"])`, s = `[data-brand="${e}"][data-mode="dark"]${i ? ", [data-mode=\"dark\"]:not([data-brand])" : ""}`;
431
+ return `${o} {
432
+ ${r(t.light)}
271
433
  }
272
- `.trim();
273
- }, G = "__cytur_tokens__", Me = () => {
434
+ ${s} {
435
+ ${r(t.dark)}
436
+ }`;
437
+ }).join("\n")}`;
438
+ }, Be = {
439
+ light: {
440
+ "action-primary": "#0a9e9e",
441
+ "action-primary-hover": "#078080",
442
+ "action-primary-active": "#056363",
443
+ "button-primary-bg-default": "#0a9e9e",
444
+ "button-primary-bg-hover": "#078080",
445
+ "button-primary-bg-active": "#056363",
446
+ "button-primary-bg-focus": "#0a9e9e",
447
+ "button-primary-bg-disabled": "#e2e6ea",
448
+ "button-primary-text-default": "#ffffff",
449
+ "button-primary-text-hover": "#ffffff",
450
+ "button-primary-text-active": "#ffffff",
451
+ "button-primary-text-focus": "#ffffff",
452
+ "button-primary-text-disabled": "#a3adb8",
453
+ "button-primary-border-default": "transparent",
454
+ "button-primary-border-hover": "transparent",
455
+ "button-primary-border-active": "transparent",
456
+ "button-primary-border-focus": "#3b82f6",
457
+ "button-primary-border-disabled": "transparent",
458
+ "text-primary-action": "#0a9e9e"
459
+ },
460
+ dark: {
461
+ "action-primary": "#3b82f6",
462
+ "action-primary-hover": "#5899f5",
463
+ "action-primary-active": "#88b8fa",
464
+ "button-primary-bg-default": "#3b82f6",
465
+ "button-primary-bg-hover": "#5899f5",
466
+ "button-primary-bg-active": "#88b8fa",
467
+ "button-primary-bg-focus": "#3b82f6",
468
+ "button-primary-bg-disabled": "#1f2937",
469
+ "button-primary-text-default": "#ffffff",
470
+ "button-primary-text-hover": "#ffffff",
471
+ "button-primary-text-active": "#ffffff",
472
+ "button-primary-text-focus": "#ffffff",
473
+ "button-primary-text-disabled": "#6b7b8d",
474
+ "button-primary-border-default": "transparent",
475
+ "button-primary-border-hover": "transparent",
476
+ "button-primary-border-active": "transparent",
477
+ "button-primary-border-focus": "#3b82f6",
478
+ "button-primary-border-disabled": "transparent",
479
+ "text-primary-action": "#3b82f6"
480
+ }
481
+ }, Ve = {
482
+ light: {
483
+ colorPrimary: "#0a9e9e",
484
+ colorPrimaryHover: "#078080",
485
+ colorPrimaryActive: "#056363"
486
+ },
487
+ dark: {
488
+ colorPrimary: "#3b82f6",
489
+ colorPrimaryHover: "#5899f5",
490
+ colorPrimaryActive: "#88b8fa"
491
+ }
492
+ }, He = {
493
+ light: {
494
+ "action-primary": "#2563eb",
495
+ "action-primary-hover": "#1d4ed8",
496
+ "action-primary-active": "#1e40af",
497
+ "button-primary-bg-default": "#2563eb",
498
+ "button-primary-bg-hover": "#1d4ed8",
499
+ "button-primary-bg-active": "#1e40af",
500
+ "button-primary-bg-focus": "#2563eb",
501
+ "button-primary-bg-disabled": "#e2e6ea",
502
+ "button-primary-text-default": "#ffffff",
503
+ "button-primary-text-hover": "#ffffff",
504
+ "button-primary-text-active": "#ffffff",
505
+ "button-primary-text-focus": "#ffffff",
506
+ "button-primary-text-disabled": "#a3adb8",
507
+ "button-primary-border-default": "transparent",
508
+ "button-primary-border-hover": "transparent",
509
+ "button-primary-border-active": "transparent",
510
+ "button-primary-border-focus": "#3b82f6",
511
+ "button-primary-border-disabled": "transparent",
512
+ "text-primary-action": "#2563eb"
513
+ },
514
+ dark: {
515
+ "action-primary": "#3b82f6",
516
+ "action-primary-hover": "#5899f5",
517
+ "action-primary-active": "#88b8fa",
518
+ "button-primary-bg-default": "#3b82f6",
519
+ "button-primary-bg-hover": "#5899f5",
520
+ "button-primary-bg-active": "#88b8fa",
521
+ "button-primary-bg-focus": "#3b82f6",
522
+ "button-primary-bg-disabled": "#1f2937",
523
+ "button-primary-text-default": "#ffffff",
524
+ "button-primary-text-hover": "#ffffff",
525
+ "button-primary-text-active": "#ffffff",
526
+ "button-primary-text-focus": "#ffffff",
527
+ "button-primary-text-disabled": "#6b7b8d",
528
+ "button-primary-border-default": "transparent",
529
+ "button-primary-border-hover": "transparent",
530
+ "button-primary-border-active": "transparent",
531
+ "button-primary-border-focus": "#3b82f6",
532
+ "button-primary-border-disabled": "transparent",
533
+ "text-primary-action": "#3b82f6"
534
+ }
535
+ }, Ue = {
536
+ light: {
537
+ colorPrimary: "#2563eb",
538
+ colorPrimaryHover: "#1d4ed8",
539
+ colorPrimaryActive: "#1e40af"
540
+ },
541
+ dark: {
542
+ colorPrimary: "#3b82f6",
543
+ colorPrimaryHover: "#5899f5",
544
+ colorPrimaryActive: "#88b8fa"
545
+ }
546
+ }, H = {
547
+ "font-family": "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
548
+ "action-primary": "#3d6bff",
549
+ "action-primary-hover": "#4c86ff",
550
+ "action-primary-active": "#2e54cc",
551
+ "button-primary-bg-default": "#3d6bff",
552
+ "button-primary-bg-hover": "#4c86ff",
553
+ "button-primary-bg-active": "#2e54cc",
554
+ "button-primary-bg-focus": "#3d6bff",
555
+ "button-primary-bg-disabled": "#243154",
556
+ "button-primary-text-default": "#ffffff",
557
+ "button-primary-text-hover": "#ffffff",
558
+ "button-primary-text-active": "#ffffff",
559
+ "button-primary-text-focus": "#ffffff",
560
+ "button-primary-text-disabled": "#5e5e5e",
561
+ "button-primary-border-default": "#3d6bff",
562
+ "button-primary-border-hover": "#5d92ff",
563
+ "button-primary-border-active": "#2e54cc",
564
+ "button-primary-border-focus": "#3d6bff",
565
+ "button-primary-border-disabled": "transparent",
566
+ "button-secondary-bg-default": "#d9d9d9",
567
+ "button-secondary-bg-hover": "#bfbfbf",
568
+ "button-secondary-bg-active": "#a6a6a6",
569
+ "button-secondary-bg-focus": "#d9d9d9",
570
+ "button-secondary-bg-disabled": "#383838",
571
+ "button-secondary-text-default": "#111111",
572
+ "button-secondary-text-hover": "#111111",
573
+ "button-secondary-text-active": "#111111",
574
+ "button-secondary-text-focus": "#111111",
575
+ "button-secondary-text-disabled": "#424242",
576
+ "button-secondary-border-default": "transparent",
577
+ "button-secondary-border-hover": "transparent",
578
+ "button-secondary-border-active": "transparent",
579
+ "button-secondary-border-focus": "#3d6bff",
580
+ "button-secondary-border-disabled": "transparent",
581
+ "button-ghost-bg-default": "transparent",
582
+ "button-ghost-bg-hover": "#3d6bff1a",
583
+ "button-ghost-bg-active": "#3d6bff2e",
584
+ "button-ghost-bg-focus": "transparent",
585
+ "button-ghost-bg-disabled": "transparent",
586
+ "button-ghost-text-default": "#3d6bff",
587
+ "button-ghost-text-hover": "#4c86ff",
588
+ "button-ghost-text-active": "#2e54cc",
589
+ "button-ghost-text-focus": "#3d6bff",
590
+ "button-ghost-text-disabled": "#424242",
591
+ "button-ghost-border-default": "transparent",
592
+ "button-ghost-border-hover": "transparent",
593
+ "button-ghost-border-active": "transparent",
594
+ "button-ghost-border-focus": "#3d6bff",
595
+ "button-ghost-border-disabled": "transparent",
596
+ "button-tertiary-bg-default": "#383838",
597
+ "button-tertiary-bg-hover": "#454545",
598
+ "button-tertiary-bg-active": "#525252",
599
+ "button-tertiary-bg-focus": "#383838",
600
+ "button-tertiary-bg-disabled": "#2a2a2a",
601
+ "button-tertiary-text-default": "#ffffff",
602
+ "button-tertiary-text-hover": "#ffffff",
603
+ "button-tertiary-text-active": "#ffffff",
604
+ "button-tertiary-text-focus": "#ffffff",
605
+ "button-tertiary-text-disabled": "#424242",
606
+ "button-tertiary-border-default": "#4c4c4c",
607
+ "button-tertiary-border-hover": "#9b9b9b",
608
+ "button-tertiary-border-active": "#5e5e5e",
609
+ "button-tertiary-border-focus": "#3d6bff",
610
+ "button-tertiary-border-disabled": "#383838",
611
+ "button-softdanger-bg-default": "#ff64644c",
612
+ "button-softdanger-bg-hover": "#ff64644c",
613
+ "button-softdanger-bg-active": "#ff646466",
614
+ "button-softdanger-bg-focus": "#ff64644c",
615
+ "button-softdanger-bg-disabled": "#5d2f2f",
616
+ "button-softdanger-text-default": "#ff6464",
617
+ "button-softdanger-text-hover": "#ff6464",
618
+ "button-softdanger-text-active": "#ff6464",
619
+ "button-softdanger-text-focus": "#ff6464",
620
+ "button-softdanger-text-disabled": "#5e5e5e",
621
+ "button-softdanger-border-default": "transparent",
622
+ "button-softdanger-border-hover": "#ff646480",
623
+ "button-softdanger-border-active": "#ff6464b2",
624
+ "button-softdanger-border-focus": "#3d6bff",
625
+ "button-softdanger-border-disabled": "transparent",
626
+ "button-danger-bg-default": "#ea3b3b",
627
+ "button-danger-bg-hover": "#ff6262",
628
+ "button-danger-bg-active": "#c52e2e",
629
+ "button-danger-bg-focus": "#ea3b3b",
630
+ "button-danger-bg-disabled": "#572222",
631
+ "button-danger-text-default": "#ffffff",
632
+ "button-danger-text-hover": "#ffffff",
633
+ "button-danger-text-active": "#ffffff",
634
+ "button-danger-text-focus": "#ffffff",
635
+ "button-danger-text-disabled": "#5e5e5e",
636
+ "button-danger-border-default": "transparent",
637
+ "button-danger-border-hover": "transparent",
638
+ "button-danger-border-active": "transparent",
639
+ "button-danger-border-focus": "#3d6bff",
640
+ "button-danger-border-disabled": "transparent",
641
+ "text-primary-action": "#3d6bff",
642
+ "border-focus": "#3d6bff"
643
+ }, We = {
644
+ light: H,
645
+ dark: { ...H }
646
+ }, Ge = {
647
+ light: {
648
+ colorPrimary: "#3d6bff",
649
+ colorPrimaryHover: "#4c86ff",
650
+ colorPrimaryActive: "#2e54cc"
651
+ },
652
+ dark: {
653
+ colorPrimary: "#3d6bff",
654
+ colorPrimaryHover: "#4c86ff",
655
+ colorPrimaryActive: "#2e54cc"
656
+ }
657
+ }, Ke = {
658
+ base: Be,
659
+ rm: He,
660
+ mg: We
661
+ }, qe = {
662
+ base: Ve,
663
+ rm: Ue,
664
+ mg: Ge
665
+ }, U = "__cytur_tokens__", Je = () => {
274
666
  if (typeof document > "u") return;
275
- let e = document.getElementById(G);
276
- e || (e = document.createElement("style"), e.id = G, document.head.appendChild(e)), e.innerHTML = je(W, Ae);
277
- }, K = ({ theme: e = "base", mode: n = "light", children: r }) => {
667
+ let e = document.getElementById(U);
668
+ e || (e = document.createElement("style"), e.id = U, document.head.appendChild(e)), e.innerHTML = ze(V, Re, Ke);
669
+ }, W = ({ theme: e, brand: n, mode: r = "light", children: i }) => {
670
+ let a = n ?? (e === "rm" ? "rm" : "base");
278
671
  t(() => {
279
- Me();
672
+ Je();
280
673
  }, []), t(() => {
281
- typeof document < "u" && (document.documentElement.dataset.mode = n);
282
- }, [n]);
283
- let i = e === "base" && n === "dark" ? { token: {
284
- ...U[e].token,
285
- colorPrimary: "#3b82f6",
286
- colorPrimaryHover: "#5899f5",
287
- colorPrimaryActive: "#88b8fa",
288
- colorError: "#f87171",
289
- colorErrorHover: "#fca5a5",
290
- colorErrorActive: "#fecaca"
291
- } } : {};
292
- return /* @__PURE__ */ I(m, {
674
+ typeof document < "u" && (document.documentElement.dataset.mode = r, document.documentElement.dataset.brand = a);
675
+ }, [r, a]);
676
+ let o = qe[a][r], s = a === "rm" ? "rm" : "base";
677
+ return /* @__PURE__ */ N(g, {
293
678
  theme: {
294
- ...U[e],
295
- ...i,
296
- algorithm: n === "dark" ? P.darkAlgorithm : P.defaultAlgorithm
679
+ ...B[s],
680
+ token: {
681
+ ...B[s].token,
682
+ ...o,
683
+ ...r === "dark" ? {
684
+ colorError: "#f87171",
685
+ colorErrorHover: "#fca5a5",
686
+ colorErrorActive: "#fecaca"
687
+ } : {}
688
+ },
689
+ algorithm: r === "dark" ? M.darkAlgorithm : M.defaultAlgorithm
297
690
  },
298
- children: r
691
+ wave: { disabled: !0 },
692
+ children: i
299
693
  });
300
694
  };
301
- K.displayName = "CyturProvider";
695
+ W.displayName = "CyturProvider";
302
696
  //#endregion
303
697
  //#region src/theme/tokens.ts
304
- var q = (e) => `var(--cytur-${e})`, Ne = {
698
+ var G = (e) => `var(--cytur-${e})`, K = {
305
699
  label: {
306
700
  default: {
307
701
  bg: {
308
- solid: q("label-default-bg-solid"),
309
- subtle: q("label-default-bg-subtle"),
310
- border: q("label-default-bg-border")
702
+ solid: G("label-default-bg-solid"),
703
+ subtle: G("label-default-bg-subtle"),
704
+ border: G("label-default-bg-border")
311
705
  },
312
706
  text: {
313
- solid: q("label-default-text-solid"),
314
- subtle: q("label-default-text-subtle"),
315
- border: q("label-default-text-border")
707
+ solid: G("label-default-text-solid"),
708
+ subtle: G("label-default-text-subtle"),
709
+ border: G("label-default-text-border")
316
710
  },
317
- border: q("label-default-border")
711
+ border: G("label-default-border")
318
712
  },
319
713
  primary: {
320
714
  bg: {
321
- solid: q("label-primary-bg-solid"),
322
- subtle: q("label-primary-bg-subtle"),
323
- border: q("label-primary-bg-border")
715
+ solid: G("label-primary-bg-solid"),
716
+ subtle: G("label-primary-bg-subtle"),
717
+ border: G("label-primary-bg-border")
324
718
  },
325
719
  text: {
326
- solid: q("label-primary-text-solid"),
327
- subtle: q("label-primary-text-subtle"),
328
- border: q("label-primary-text-border")
720
+ solid: G("label-primary-text-solid"),
721
+ subtle: G("label-primary-text-subtle"),
722
+ border: G("label-primary-text-border")
329
723
  },
330
- border: q("label-primary-border")
724
+ border: G("label-primary-border")
331
725
  },
332
726
  info: {
333
727
  bg: {
334
- solid: q("label-info-bg-solid"),
335
- subtle: q("label-info-bg-subtle"),
336
- border: q("label-info-bg-border")
728
+ solid: G("label-info-bg-solid"),
729
+ subtle: G("label-info-bg-subtle"),
730
+ border: G("label-info-bg-border")
337
731
  },
338
732
  text: {
339
- solid: q("label-info-text-solid"),
340
- subtle: q("label-info-text-subtle"),
341
- border: q("label-info-text-border")
733
+ solid: G("label-info-text-solid"),
734
+ subtle: G("label-info-text-subtle"),
735
+ border: G("label-info-text-border")
342
736
  },
343
- border: q("label-info-border")
737
+ border: G("label-info-border")
344
738
  },
345
739
  success: {
346
740
  bg: {
347
- solid: q("label-success-bg-solid"),
348
- subtle: q("label-success-bg-subtle"),
349
- border: q("label-success-bg-border")
741
+ solid: G("label-success-bg-solid"),
742
+ subtle: G("label-success-bg-subtle"),
743
+ border: G("label-success-bg-border")
350
744
  },
351
745
  text: {
352
- solid: q("label-success-text-solid"),
353
- subtle: q("label-success-text-subtle"),
354
- border: q("label-success-text-border")
746
+ solid: G("label-success-text-solid"),
747
+ subtle: G("label-success-text-subtle"),
748
+ border: G("label-success-text-border")
355
749
  },
356
- border: q("label-success-border")
750
+ border: G("label-success-border")
357
751
  },
358
752
  warning: {
359
753
  bg: {
360
- solid: q("label-warning-bg-solid"),
361
- subtle: q("label-warning-bg-subtle"),
362
- border: q("label-warning-bg-border")
754
+ solid: G("label-warning-bg-solid"),
755
+ subtle: G("label-warning-bg-subtle"),
756
+ border: G("label-warning-bg-border")
363
757
  },
364
758
  text: {
365
- solid: q("label-warning-text-solid"),
366
- subtle: q("label-warning-text-subtle"),
367
- border: q("label-warning-text-border")
759
+ solid: G("label-warning-text-solid"),
760
+ subtle: G("label-warning-text-subtle"),
761
+ border: G("label-warning-text-border")
368
762
  },
369
- border: q("label-warning-border")
763
+ border: G("label-warning-border")
370
764
  },
371
765
  danger: {
372
766
  bg: {
373
- solid: q("label-danger-bg-solid"),
374
- subtle: q("label-danger-bg-subtle"),
375
- border: q("label-danger-bg-border")
767
+ solid: G("label-danger-bg-solid"),
768
+ subtle: G("label-danger-bg-subtle"),
769
+ border: G("label-danger-bg-border")
376
770
  },
377
771
  text: {
378
- solid: q("label-danger-text-solid"),
379
- subtle: q("label-danger-text-subtle"),
380
- border: q("label-danger-text-border")
772
+ solid: G("label-danger-text-solid"),
773
+ subtle: G("label-danger-text-subtle"),
774
+ border: G("label-danger-text-border")
381
775
  },
382
- border: q("label-danger-border")
776
+ border: G("label-danger-border")
383
777
  }
384
778
  },
385
779
  tag: {
386
780
  default: {
387
781
  bg: {
388
- solid: q("tag-default-bg-solid"),
389
- solidHover: q("tag-default-bg-solid-hover"),
390
- subtle: q("tag-default-bg-subtle"),
391
- subtleHover: q("tag-default-bg-subtle-hover"),
392
- border: q("tag-default-bg-border"),
393
- borderHover: q("tag-default-bg-border-hover")
782
+ solid: G("tag-default-bg-solid"),
783
+ solidHover: G("tag-default-bg-solid-hover"),
784
+ subtle: G("tag-default-bg-subtle"),
785
+ subtleHover: G("tag-default-bg-subtle-hover"),
786
+ border: G("tag-default-bg-border"),
787
+ borderHover: G("tag-default-bg-border-hover")
394
788
  },
395
789
  text: {
396
- solid: q("tag-default-text-solid"),
397
- subtle: q("tag-default-text-subtle"),
398
- border: q("tag-default-text-border")
790
+ solid: G("tag-default-text-solid"),
791
+ subtle: G("tag-default-text-subtle"),
792
+ border: G("tag-default-text-border")
399
793
  },
400
- border: q("tag-default-border")
794
+ border: G("tag-default-border")
401
795
  },
402
796
  primary: {
403
797
  bg: {
404
- solid: q("tag-primary-bg-solid"),
405
- solidHover: q("tag-primary-bg-solid-hover"),
406
- subtle: q("tag-primary-bg-subtle"),
407
- subtleHover: q("tag-primary-bg-subtle-hover"),
408
- border: q("tag-primary-bg-border"),
409
- borderHover: q("tag-primary-bg-border-hover")
798
+ solid: G("tag-primary-bg-solid"),
799
+ solidHover: G("tag-primary-bg-solid-hover"),
800
+ subtle: G("tag-primary-bg-subtle"),
801
+ subtleHover: G("tag-primary-bg-subtle-hover"),
802
+ border: G("tag-primary-bg-border"),
803
+ borderHover: G("tag-primary-bg-border-hover")
410
804
  },
411
805
  text: {
412
- solid: q("tag-primary-text-solid"),
413
- subtle: q("tag-primary-text-subtle"),
414
- border: q("tag-primary-text-border")
806
+ solid: G("tag-primary-text-solid"),
807
+ subtle: G("tag-primary-text-subtle"),
808
+ border: G("tag-primary-text-border")
415
809
  },
416
- border: q("tag-primary-border")
810
+ border: G("tag-primary-border")
417
811
  },
418
812
  success: {
419
813
  bg: {
420
- solid: q("tag-success-bg-solid"),
421
- solidHover: q("tag-success-bg-solid-hover"),
422
- subtle: q("tag-success-bg-subtle"),
423
- subtleHover: q("tag-success-bg-subtle-hover"),
424
- border: q("tag-success-bg-border"),
425
- borderHover: q("tag-success-bg-border-hover")
814
+ solid: G("tag-success-bg-solid"),
815
+ solidHover: G("tag-success-bg-solid-hover"),
816
+ subtle: G("tag-success-bg-subtle"),
817
+ subtleHover: G("tag-success-bg-subtle-hover"),
818
+ border: G("tag-success-bg-border"),
819
+ borderHover: G("tag-success-bg-border-hover")
426
820
  },
427
821
  text: {
428
- solid: q("tag-success-text-solid"),
429
- subtle: q("tag-success-text-subtle"),
430
- border: q("tag-success-text-border")
822
+ solid: G("tag-success-text-solid"),
823
+ subtle: G("tag-success-text-subtle"),
824
+ border: G("tag-success-text-border")
431
825
  },
432
- border: q("tag-success-border")
826
+ border: G("tag-success-border")
433
827
  },
434
828
  warning: {
435
829
  bg: {
436
- solid: q("tag-warning-bg-solid"),
437
- solidHover: q("tag-warning-bg-solid-hover"),
438
- subtle: q("tag-warning-bg-subtle"),
439
- subtleHover: q("tag-warning-bg-subtle-hover"),
440
- border: q("tag-warning-bg-border"),
441
- borderHover: q("tag-warning-bg-border-hover")
830
+ solid: G("tag-warning-bg-solid"),
831
+ solidHover: G("tag-warning-bg-solid-hover"),
832
+ subtle: G("tag-warning-bg-subtle"),
833
+ subtleHover: G("tag-warning-bg-subtle-hover"),
834
+ border: G("tag-warning-bg-border"),
835
+ borderHover: G("tag-warning-bg-border-hover")
442
836
  },
443
837
  text: {
444
- solid: q("tag-warning-text-solid"),
445
- subtle: q("tag-warning-text-subtle"),
446
- border: q("tag-warning-text-border")
838
+ solid: G("tag-warning-text-solid"),
839
+ subtle: G("tag-warning-text-subtle"),
840
+ border: G("tag-warning-text-border")
447
841
  },
448
- border: q("tag-warning-border")
842
+ border: G("tag-warning-border")
449
843
  },
450
844
  danger: {
451
845
  bg: {
452
- solid: q("tag-danger-bg-solid"),
453
- solidHover: q("tag-danger-bg-solid-hover"),
454
- subtle: q("tag-danger-bg-subtle"),
455
- subtleHover: q("tag-danger-bg-subtle-hover"),
456
- border: q("tag-danger-bg-border"),
457
- borderHover: q("tag-danger-bg-border-hover")
846
+ solid: G("tag-danger-bg-solid"),
847
+ solidHover: G("tag-danger-bg-solid-hover"),
848
+ subtle: G("tag-danger-bg-subtle"),
849
+ subtleHover: G("tag-danger-bg-subtle-hover"),
850
+ border: G("tag-danger-bg-border"),
851
+ borderHover: G("tag-danger-bg-border-hover")
458
852
  },
459
853
  text: {
460
- solid: q("tag-danger-text-solid"),
461
- subtle: q("tag-danger-text-subtle"),
462
- border: q("tag-danger-text-border")
854
+ solid: G("tag-danger-text-solid"),
855
+ subtle: G("tag-danger-text-subtle"),
856
+ border: G("tag-danger-text-border")
463
857
  },
464
- border: q("tag-danger-border")
858
+ border: G("tag-danger-border")
465
859
  }
466
860
  },
467
861
  action: {
468
862
  primary: {
469
- default: q("action-primary"),
470
- hover: q("action-primary-hover"),
471
- active: q("action-primary-active")
863
+ default: G("action-primary"),
864
+ hover: G("action-primary-hover"),
865
+ active: G("action-primary-active")
472
866
  },
473
867
  secondary: {
474
- default: q("action-secondary"),
475
- hover: q("action-secondary-hover"),
476
- active: q("action-secondary-active")
868
+ default: G("action-secondary"),
869
+ hover: G("action-secondary-hover"),
870
+ active: G("action-secondary-active")
477
871
  },
478
872
  danger: {
479
- default: q("action-danger"),
480
- hover: q("action-danger-hover"),
481
- active: q("action-danger-active")
873
+ default: G("action-danger"),
874
+ hover: G("action-danger-hover"),
875
+ active: G("action-danger-active")
482
876
  }
483
877
  },
484
878
  bg: {
485
- surface: q("bg-surface"),
486
- subtle: q("bg-subtle"),
487
- secondarySubtle: q("bg-secondary-subtle"),
488
- dangerSubtle: q("bg-danger-subtle")
879
+ surface: G("bg-surface"),
880
+ subtle: G("bg-subtle"),
881
+ secondarySubtle: G("bg-secondary-subtle"),
882
+ dangerSubtle: G("bg-danger-subtle")
489
883
  },
490
884
  text: {
491
- primary: q("text-primary"),
492
- secondary: q("text-secondary"),
493
- secondaryAction: q("text-secondary-action"),
494
- primaryAction: q("text-primary-action"),
495
- muted: q("text-muted"),
496
- danger: q("text-danger"),
497
- inverse: q("text-inverse"),
498
- disabled: q("text-disabled")
885
+ primary: G("text-primary"),
886
+ secondary: G("text-secondary"),
887
+ secondaryAction: G("text-secondary-action"),
888
+ primaryAction: G("text-primary-action"),
889
+ muted: G("text-muted"),
890
+ danger: G("text-danger"),
891
+ inverse: G("text-inverse"),
892
+ disabled: G("text-disabled")
499
893
  },
500
894
  border: {
501
- default: q("border-default"),
502
- secondary: q("border-secondary"),
503
- danger: q("border-danger"),
504
- focus: q("border-focus")
895
+ default: G("border-default"),
896
+ secondary: G("border-secondary"),
897
+ danger: G("border-danger"),
898
+ focus: G("border-focus")
505
899
  },
506
900
  disabled: {
507
- bg: q("disabled-bg"),
508
- border: q("disabled-border"),
509
- text: q("disabled-text")
901
+ bg: G("disabled-bg"),
902
+ border: G("disabled-border"),
903
+ text: G("disabled-text")
904
+ },
905
+ button: {
906
+ base: {
907
+ borderWidth: G("button-base-border-width"),
908
+ fontWeight: G("button-base-font-weight"),
909
+ transition: G("button-base-transition")
910
+ },
911
+ primary: {
912
+ bg: {
913
+ default: G("button-primary-bg-default"),
914
+ hover: G("button-primary-bg-hover"),
915
+ active: G("button-primary-bg-active"),
916
+ focus: G("button-primary-bg-focus"),
917
+ disabled: G("button-primary-bg-disabled")
918
+ },
919
+ text: {
920
+ default: G("button-primary-text-default"),
921
+ hover: G("button-primary-text-hover"),
922
+ active: G("button-primary-text-active"),
923
+ focus: G("button-primary-text-focus"),
924
+ disabled: G("button-primary-text-disabled")
925
+ },
926
+ border: {
927
+ default: G("button-primary-border-default"),
928
+ hover: G("button-primary-border-hover"),
929
+ active: G("button-primary-border-active"),
930
+ focus: G("button-primary-border-focus"),
931
+ disabled: G("button-primary-border-disabled")
932
+ }
933
+ },
934
+ secondary: {
935
+ bg: {
936
+ default: G("button-secondary-bg-default"),
937
+ hover: G("button-secondary-bg-hover"),
938
+ active: G("button-secondary-bg-active"),
939
+ focus: G("button-secondary-bg-focus"),
940
+ disabled: G("button-secondary-bg-disabled")
941
+ },
942
+ text: {
943
+ default: G("button-secondary-text-default"),
944
+ hover: G("button-secondary-text-hover"),
945
+ active: G("button-secondary-text-active"),
946
+ focus: G("button-secondary-text-focus"),
947
+ disabled: G("button-secondary-text-disabled")
948
+ },
949
+ border: {
950
+ default: G("button-secondary-border-default"),
951
+ hover: G("button-secondary-border-hover"),
952
+ active: G("button-secondary-border-active"),
953
+ focus: G("button-secondary-border-focus"),
954
+ disabled: G("button-secondary-border-disabled")
955
+ }
956
+ },
957
+ ghost: {
958
+ bg: {
959
+ default: G("button-ghost-bg-default"),
960
+ hover: G("button-ghost-bg-hover"),
961
+ active: G("button-ghost-bg-active"),
962
+ focus: G("button-ghost-bg-focus"),
963
+ disabled: G("button-ghost-bg-disabled")
964
+ },
965
+ text: {
966
+ default: G("button-ghost-text-default"),
967
+ hover: G("button-ghost-text-hover"),
968
+ active: G("button-ghost-text-active"),
969
+ focus: G("button-ghost-text-focus"),
970
+ disabled: G("button-ghost-text-disabled")
971
+ },
972
+ border: {
973
+ default: G("button-ghost-border-default"),
974
+ hover: G("button-ghost-border-hover"),
975
+ active: G("button-ghost-border-active"),
976
+ focus: G("button-ghost-border-focus"),
977
+ disabled: G("button-ghost-border-disabled")
978
+ }
979
+ },
980
+ danger: {
981
+ bg: {
982
+ default: G("button-danger-bg-default"),
983
+ hover: G("button-danger-bg-hover"),
984
+ active: G("button-danger-bg-active"),
985
+ focus: G("button-danger-bg-focus"),
986
+ disabled: G("button-danger-bg-disabled")
987
+ },
988
+ text: {
989
+ default: G("button-danger-text-default"),
990
+ hover: G("button-danger-text-hover"),
991
+ active: G("button-danger-text-active"),
992
+ focus: G("button-danger-text-focus"),
993
+ disabled: G("button-danger-text-disabled")
994
+ },
995
+ border: {
996
+ default: G("button-danger-border-default"),
997
+ hover: G("button-danger-border-hover"),
998
+ active: G("button-danger-border-active"),
999
+ focus: G("button-danger-border-focus"),
1000
+ disabled: G("button-danger-border-disabled")
1001
+ }
1002
+ },
1003
+ tertiary: {
1004
+ bg: {
1005
+ default: G("button-tertiary-bg-default"),
1006
+ hover: G("button-tertiary-bg-hover"),
1007
+ active: G("button-tertiary-bg-active"),
1008
+ focus: G("button-tertiary-bg-focus"),
1009
+ disabled: G("button-tertiary-bg-disabled")
1010
+ },
1011
+ text: {
1012
+ default: G("button-tertiary-text-default"),
1013
+ hover: G("button-tertiary-text-hover"),
1014
+ active: G("button-tertiary-text-active"),
1015
+ focus: G("button-tertiary-text-focus"),
1016
+ disabled: G("button-tertiary-text-disabled")
1017
+ },
1018
+ border: {
1019
+ default: G("button-tertiary-border-default"),
1020
+ hover: G("button-tertiary-border-hover"),
1021
+ active: G("button-tertiary-border-active"),
1022
+ focus: G("button-tertiary-border-focus"),
1023
+ disabled: G("button-tertiary-border-disabled")
1024
+ }
1025
+ },
1026
+ softDanger: {
1027
+ bg: {
1028
+ default: G("button-softdanger-bg-default"),
1029
+ hover: G("button-softdanger-bg-hover"),
1030
+ active: G("button-softdanger-bg-active"),
1031
+ focus: G("button-softdanger-bg-focus"),
1032
+ disabled: G("button-softdanger-bg-disabled")
1033
+ },
1034
+ text: {
1035
+ default: G("button-softdanger-text-default"),
1036
+ hover: G("button-softdanger-text-hover"),
1037
+ active: G("button-softdanger-text-active"),
1038
+ focus: G("button-softdanger-text-focus"),
1039
+ disabled: G("button-softdanger-text-disabled")
1040
+ },
1041
+ border: {
1042
+ default: G("button-softdanger-border-default"),
1043
+ hover: G("button-softdanger-border-hover"),
1044
+ active: G("button-softdanger-border-active"),
1045
+ focus: G("button-softdanger-border-focus"),
1046
+ disabled: G("button-softdanger-border-disabled")
1047
+ }
1048
+ },
1049
+ size: {
1050
+ sm: {
1051
+ height: G("button-size-sm-height"),
1052
+ paddingX: G("button-size-sm-padding-x"),
1053
+ paddingY: G("button-size-sm-padding-y"),
1054
+ gap: G("button-size-sm-gap"),
1055
+ radius: G("button-size-sm-radius"),
1056
+ icon: G("button-size-sm-icon")
1057
+ },
1058
+ md: {
1059
+ height: G("button-size-md-height"),
1060
+ paddingX: G("button-size-md-padding-x"),
1061
+ paddingY: G("button-size-md-padding-y"),
1062
+ gap: G("button-size-md-gap"),
1063
+ radius: G("button-size-md-radius"),
1064
+ icon: G("button-size-md-icon")
1065
+ },
1066
+ lg: {
1067
+ height: G("button-size-lg-height"),
1068
+ paddingX: G("button-size-lg-padding-x"),
1069
+ paddingY: G("button-size-lg-padding-y"),
1070
+ gap: G("button-size-lg-gap"),
1071
+ radius: G("button-size-lg-radius"),
1072
+ icon: G("button-size-lg-icon")
1073
+ }
1074
+ }
1075
+ },
1076
+ iconButton: {
1077
+ radius: G("iconbutton-radius"),
1078
+ size: {
1079
+ sm: {
1080
+ box: G("iconbutton-size-sm"),
1081
+ icon: G("iconbutton-icon-sm")
1082
+ },
1083
+ md: {
1084
+ box: G("iconbutton-size-md"),
1085
+ icon: G("iconbutton-icon-md")
1086
+ },
1087
+ lg: {
1088
+ box: G("iconbutton-size-lg"),
1089
+ icon: G("iconbutton-icon-lg")
1090
+ }
1091
+ },
1092
+ bg: {
1093
+ default: G("iconbutton-bg-default"),
1094
+ hover: G("iconbutton-bg-hover"),
1095
+ active: G("iconbutton-bg-active"),
1096
+ disabled: G("iconbutton-bg-disabled")
1097
+ },
1098
+ icon: {
1099
+ default: G("iconbutton-icon-default"),
1100
+ hover: G("iconbutton-icon-hover"),
1101
+ active: G("iconbutton-icon-active"),
1102
+ disabled: G("iconbutton-icon-disabled")
1103
+ }
1104
+ },
1105
+ radius: {
1106
+ 4: G("radius-4"),
1107
+ 6: G("radius-6"),
1108
+ 8: G("radius-8")
1109
+ },
1110
+ typography: {
1111
+ heading: {
1112
+ xl: {
1113
+ fontFamily: G("font-family"),
1114
+ fontWeight: G("font-weight-bold"),
1115
+ fontSize: G("font-size-xl"),
1116
+ lineHeight: G("line-height-32"),
1117
+ letterSpacing: G("letter-spacing-tight")
1118
+ },
1119
+ md: {
1120
+ fontFamily: G("font-family"),
1121
+ fontWeight: G("font-weight-bold"),
1122
+ fontSize: G("font-size-md"),
1123
+ lineHeight: G("line-height-24"),
1124
+ letterSpacing: G("letter-spacing-normal")
1125
+ }
1126
+ },
1127
+ label: { lg: {
1128
+ fontFamily: G("font-family"),
1129
+ fontWeight: G("font-weight-medium"),
1130
+ fontSize: G("font-size-md"),
1131
+ lineHeight: G("line-height-24"),
1132
+ letterSpacing: G("letter-spacing-normal")
1133
+ } },
1134
+ body: { sm: {
1135
+ fontFamily: G("font-family"),
1136
+ fontWeight: G("font-weight-regular"),
1137
+ fontSize: G("font-size-xs"),
1138
+ lineHeight: G("line-height-18"),
1139
+ letterSpacing: G("letter-spacing-normal")
1140
+ } },
1141
+ button: {
1142
+ sm: {
1143
+ fontFamily: G("font-family"),
1144
+ fontWeight: G("font-weight-bold"),
1145
+ fontSize: G("font-size-xs"),
1146
+ lineHeight: G("line-height-16"),
1147
+ letterSpacing: G("letter-spacing-normal")
1148
+ },
1149
+ md: {
1150
+ fontFamily: G("font-family"),
1151
+ fontWeight: G("font-weight-bold"),
1152
+ fontSize: G("font-size-sm"),
1153
+ lineHeight: G("line-height-20"),
1154
+ letterSpacing: G("letter-spacing-normal")
1155
+ },
1156
+ lg: {
1157
+ fontFamily: G("font-family"),
1158
+ fontWeight: G("font-weight-bold"),
1159
+ fontSize: G("font-size-md"),
1160
+ lineHeight: G("line-height-24"),
1161
+ letterSpacing: G("letter-spacing-normal")
1162
+ }
1163
+ }
510
1164
  },
511
1165
  font: {
512
1166
  size: {
513
- xs: q("font-size-xs"),
514
- sm: q("font-size-sm"),
515
- md: q("font-size-md"),
516
- lg: q("font-size-lg"),
517
- xl: q("font-size-xl")
1167
+ xs: G("font-size-xs"),
1168
+ sm: G("font-size-sm"),
1169
+ md: G("font-size-md"),
1170
+ lg: G("font-size-lg"),
1171
+ xl: G("font-size-xl")
518
1172
  },
519
1173
  weight: {
520
- regular: q("font-weight-regular"),
521
- medium: q("font-weight-medium"),
522
- semibold: q("font-weight-semibold"),
523
- bold: q("font-weight-bold")
1174
+ regular: G("font-weight-regular"),
1175
+ medium: G("font-weight-medium"),
1176
+ semibold: G("font-weight-semibold"),
1177
+ bold: G("font-weight-bold")
524
1178
  },
525
1179
  lineHeight: {
526
- 16: q("line-height-16"),
527
- 18: q("line-height-18"),
528
- 20: q("line-height-20"),
529
- 22: q("line-height-22"),
530
- 24: q("line-height-24"),
531
- 28: q("line-height-28"),
532
- 32: q("line-height-32")
1180
+ 16: G("line-height-16"),
1181
+ 18: G("line-height-18"),
1182
+ 20: G("line-height-20"),
1183
+ 22: G("line-height-22"),
1184
+ 24: G("line-height-24"),
1185
+ 28: G("line-height-28"),
1186
+ 32: G("line-height-32")
533
1187
  },
534
1188
  letterSpacing: {
535
- tighter: q("letter-spacing-tighter"),
536
- tight: q("letter-spacing-tight"),
537
- normal: q("letter-spacing-normal"),
538
- wide: q("letter-spacing-wide")
1189
+ tighter: G("letter-spacing-tighter"),
1190
+ tight: G("letter-spacing-tight"),
1191
+ normal: G("letter-spacing-normal"),
1192
+ wide: G("letter-spacing-wide")
539
1193
  }
540
1194
  },
541
1195
  color: {
542
1196
  gray: {
543
- 50: q("color-gray-50"),
544
- 100: q("color-gray-100"),
545
- 200: q("color-gray-200"),
546
- 300: q("color-gray-300"),
547
- 400: q("color-gray-400"),
548
- 500: q("color-gray-500"),
549
- 600: q("color-gray-600"),
550
- 700: q("color-gray-700"),
551
- 800: q("color-gray-800"),
552
- 900: q("color-gray-900")
1197
+ 50: G("color-gray-50"),
1198
+ 100: G("color-gray-100"),
1199
+ 200: G("color-gray-200"),
1200
+ 300: G("color-gray-300"),
1201
+ 400: G("color-gray-400"),
1202
+ 500: G("color-gray-500"),
1203
+ 600: G("color-gray-600"),
1204
+ 700: G("color-gray-700"),
1205
+ 800: G("color-gray-800"),
1206
+ 900: G("color-gray-900")
553
1207
  },
554
1208
  yellow: {
555
- 50: q("color-yellow-50"),
556
- 500: q("color-yellow-500")
1209
+ 50: G("color-yellow-50"),
1210
+ 500: G("color-yellow-500")
557
1211
  }
558
1212
  }
559
- }, Pe = {
1213
+ }, Ye = [
1214
+ "secondary",
1215
+ "tertiary",
1216
+ "softDanger"
1217
+ ], Xe = (e, t) => {
1218
+ let n = K.button[e], r = t === "disabled" ? n.bg.disabled : t === "hover" ? n.bg.hover : t === "active" ? n.bg.active : t === "focus" ? n.bg.focus : n.bg.default;
1219
+ if (Ye.includes(e)) {
1220
+ let e = n;
1221
+ return {
1222
+ bg: r,
1223
+ text: t === "disabled" ? e.text.disabled : t === "hover" ? e.text.hover : t === "active" ? e.text.active : t === "focus" ? e.text.focus : e.text.default,
1224
+ border: t === "disabled" ? e.border.disabled : t === "hover" ? e.border.hover : t === "active" ? e.border.active : t === "focus" ? e.border.focus : e.border.default
1225
+ };
1226
+ }
1227
+ return {
1228
+ bg: r,
1229
+ text: t === "disabled" ? n.text.disabled : n.text.default,
1230
+ border: t === "focus" ? n.border.focus : e === "ghost" ? "transparent" : r
1231
+ };
1232
+ }, q = e(({ variant: e = "primary", size: t = "md", htmlType: i = "button", icon: a, disabled: o, onMouseEnter: s, onMouseLeave: c, onMouseDown: l, onMouseUp: u, onFocus: d, onBlur: f, style: p, children: m, ...h }, g) => {
1233
+ let [_, v] = r(!1), [y, b] = r(!1), [x, S] = r(!1), C = n(!1), { bg: w, text: T, border: E } = Xe(e, o ? "disabled" : y ? "active" : _ ? "hover" : x ? "focus" : "default"), D = K.button.size[t], O = K.typography.button[t];
1234
+ return /* @__PURE__ */ P("button", {
1235
+ ref: g,
1236
+ type: i,
1237
+ disabled: o,
1238
+ onMouseEnter: (e) => {
1239
+ v(!0), s?.(e);
1240
+ },
1241
+ onMouseLeave: (e) => {
1242
+ v(!1), b(!1), c?.(e);
1243
+ },
1244
+ onMouseDown: (e) => {
1245
+ C.current = !0, b(!0), l?.(e);
1246
+ },
1247
+ onMouseUp: (e) => {
1248
+ b(!1), u?.(e);
1249
+ },
1250
+ onFocus: (e) => {
1251
+ C.current || S(!0), C.current = !1, d?.(e);
1252
+ },
1253
+ onBlur: (e) => {
1254
+ S(!1), f?.(e);
1255
+ },
1256
+ style: {
1257
+ ...O,
1258
+ height: D.height,
1259
+ padding: `0 ${D.paddingX}`,
1260
+ gap: D.gap,
1261
+ background: w,
1262
+ color: T,
1263
+ border: `1px solid ${E}`,
1264
+ borderRadius: D.radius,
1265
+ cursor: o ? "not-allowed" : "pointer",
1266
+ display: "inline-flex",
1267
+ alignItems: "center",
1268
+ justifyContent: "center",
1269
+ transition: "0.15s ease",
1270
+ whiteSpace: "nowrap",
1271
+ outline: "none",
1272
+ ...p
1273
+ },
1274
+ ...h,
1275
+ children: [a && /* @__PURE__ */ N("span", {
1276
+ "aria-hidden": !0,
1277
+ style: {
1278
+ display: "inline-flex",
1279
+ alignItems: "center"
1280
+ },
1281
+ children: a
1282
+ }), m]
1283
+ });
1284
+ });
1285
+ q.displayName = "Button";
1286
+ //#endregion
1287
+ //#region src/components/icon/icons.ts
1288
+ var Ze = {
560
1289
  close: {
561
1290
  viewBox: "0 0 20 20",
562
1291
  paths: ["M16 5.20857L14.7914 4L10 8.79143L5.20857 4L4 5.20857L8.79143 10L4 14.7914L5.20857 16L10 11.2086L14.7914 16L16 14.7914L11.2086 10L16 5.20857Z"]
@@ -645,14 +1374,14 @@ var q = (e) => `var(--cytur-${e})`, Ne = {
645
1374
  viewBox: "0 0 20 20",
646
1375
  paths: ["M10 3L6.5 6.5L7.5 7.5L10 5L12.5 7.5L13.5 6.5L10 3Z", "M10 17L13.5 13.5L12.5 12.5L10 15L7.5 12.5L6.5 13.5L10 17Z"]
647
1376
  }
648
- }, Fe = {
1377
+ }, Qe = {
649
1378
  xs: 10,
650
1379
  sm: 16,
651
1380
  md: 20,
652
1381
  lg: 24
653
1382
  }, J = e(({ name: e, size: t = "md", color: n = "currentColor", style: r, ...i }, a) => {
654
- let o = typeof t == "number" ? t : Fe[t], s = Pe[e];
655
- return /* @__PURE__ */ I("svg", {
1383
+ let o = typeof t == "number" ? t : Qe[t], s = Ze[e];
1384
+ return /* @__PURE__ */ N("svg", {
656
1385
  ref: a,
657
1386
  width: o,
658
1387
  height: o,
@@ -665,7 +1394,7 @@ var q = (e) => `var(--cytur-${e})`, Ne = {
665
1394
  ...r
666
1395
  },
667
1396
  ...i,
668
- children: s.paths.map((e, t) => /* @__PURE__ */ I("path", {
1397
+ children: s.paths.map((e, t) => /* @__PURE__ */ N("path", {
669
1398
  d: e,
670
1399
  fillRule: "evenodd",
671
1400
  clipRule: "evenodd"
@@ -675,41 +1404,60 @@ var q = (e) => `var(--cytur-${e})`, Ne = {
675
1404
  J.displayName = "Icon";
676
1405
  //#endregion
677
1406
  //#region src/components/icon-button/IconButton.tsx
678
- var Ie = {
679
- sm: 28,
680
- md: 32,
681
- lg: 36
682
- }, Le = {
683
- sm: 16,
684
- md: 20,
685
- lg: 24
686
- }, Y = e(({ size: e = "md", icon: t, style: n, ...r }, i) => {
687
- let a = Ie[e], o = Le[e];
688
- return /* @__PURE__ */ I(l, {
689
- ref: i,
690
- type: "text",
691
- icon: /* @__PURE__ */ I("span", {
692
- style: {
693
- display: "inline-flex",
694
- fontSize: o,
695
- lineHeight: 1
696
- },
697
- children: t
698
- }),
1407
+ var Y = e(({ icon: e, size: t = "md", disabled: n, style: i, onMouseDown: a, onMouseUp: o, onMouseLeave: s, onMouseEnter: c, ...l }, u) => {
1408
+ let [d, f] = r(!1), [p, m] = r(!1), h = n ? "disabled" : p ? "active" : d ? "hover" : "default", g = K.iconButton.size[t];
1409
+ return /* @__PURE__ */ N("button", {
1410
+ ref: u,
1411
+ type: "button",
1412
+ disabled: n,
1413
+ onMouseEnter: (e) => {
1414
+ f(!0), c?.(e);
1415
+ },
1416
+ onMouseLeave: (e) => {
1417
+ f(!1), m(!1), s?.(e);
1418
+ },
1419
+ onMouseDown: (e) => {
1420
+ m(!0), a?.(e);
1421
+ },
1422
+ onMouseUp: (e) => {
1423
+ m(!1), o?.(e);
1424
+ },
699
1425
  style: {
700
- width: a,
701
- height: a,
1426
+ width: g.box,
1427
+ height: g.box,
702
1428
  padding: 0,
703
- borderRadius: 8,
704
- ...n
1429
+ display: "inline-flex",
1430
+ alignItems: "center",
1431
+ justifyContent: "center",
1432
+ background: K.iconButton.bg[h],
1433
+ color: K.iconButton.icon[h],
1434
+ border: "none",
1435
+ borderRadius: K.iconButton.radius,
1436
+ cursor: n ? "not-allowed" : "pointer",
1437
+ transition: "0.15s ease",
1438
+ ...i
705
1439
  },
706
- ...r
1440
+ ...l,
1441
+ children: /* @__PURE__ */ N("span", {
1442
+ "aria-hidden": !0,
1443
+ style: {
1444
+ width: g.icon,
1445
+ height: g.icon,
1446
+ display: "inline-flex",
1447
+ alignItems: "center",
1448
+ justifyContent: "center",
1449
+ fontSize: g.icon,
1450
+ lineHeight: 1,
1451
+ color: "currentColor"
1452
+ },
1453
+ children: e
1454
+ })
707
1455
  });
708
1456
  });
709
1457
  Y.displayName = "IconButton";
710
1458
  //#endregion
711
1459
  //#region src/components/alert-feed/AlertFeed.tsx
712
- var Re = {
1460
+ var $e = {
713
1461
  emergency: "red",
714
1462
  alarm: "orange",
715
1463
  warning: "gold",
@@ -719,39 +1467,39 @@ var Re = {
719
1467
  alarm: "Alarm",
720
1468
  warning: "Warning",
721
1469
  caution: "Caution"
722
- }, Z = ({ title: e = "Threat Event Alarms", subtitle: t = "(Last 7 Days)", items: n = [], loading: r = !1, maxHeight: i = 620, activeFilter: a = "all", onFilterChange: o, onViewAll: s, onSettingsClick: c, viewAllLabel: u = "View All Threat Events", extra: d }) => {
723
- let f = {
1470
+ }, Z = ({ title: e = "Threat Event Alarms", subtitle: t = "(Last 7 Days)", items: n = [], loading: r = !1, maxHeight: i = 620, activeFilter: a = "all", onFilterChange: o, onViewAll: s, onSettingsClick: c, viewAllLabel: l = "View All Threat Events", extra: d }) => {
1471
+ let p = {
724
1472
  all: n.length,
725
1473
  emergency: n.filter((e) => e.severity === "emergency").length,
726
1474
  alarm: n.filter((e) => e.severity === "alarm").length,
727
1475
  warning: n.filter((e) => e.severity === "warning").length,
728
1476
  caution: n.filter((e) => e.severity === "caution").length
729
- }, p = a === "all" ? n : n.filter((e) => e.severity === a), m = d ?? (c && /* @__PURE__ */ I(l, {
1477
+ }, m = a === "all" ? n : n.filter((e) => e.severity === a), h = d ?? (c && /* @__PURE__ */ N(u, {
730
1478
  type: "text",
731
1479
  size: "small",
732
- icon: /* @__PURE__ */ I(Oe, {}),
1480
+ icon: /* @__PURE__ */ N(Ie, {}),
733
1481
  onClick: c
734
1482
  }));
735
- return /* @__PURE__ */ I(ee, {
736
- title: /* @__PURE__ */ L(b, {
1483
+ return /* @__PURE__ */ N(f, {
1484
+ title: /* @__PURE__ */ P(k, {
737
1485
  size: 6,
738
1486
  children: [
739
- /* @__PURE__ */ I(De, { style: { fontSize: 16 } }),
740
- /* @__PURE__ */ I("span", {
1487
+ /* @__PURE__ */ N(Fe, { style: { fontSize: 16 } }),
1488
+ /* @__PURE__ */ N("span", {
741
1489
  style: {
742
1490
  fontSize: 14,
743
1491
  fontWeight: 700
744
1492
  },
745
1493
  children: e
746
1494
  }),
747
- /* @__PURE__ */ I(N.Text, {
1495
+ /* @__PURE__ */ N(j.Text, {
748
1496
  type: "secondary",
749
1497
  style: { fontSize: 12 },
750
1498
  children: t
751
1499
  })
752
1500
  ]
753
1501
  }),
754
- extra: m,
1502
+ extra: h,
755
1503
  style: {
756
1504
  width: 400,
757
1505
  maxHeight: i,
@@ -767,25 +1515,25 @@ var Re = {
767
1515
  gap: 12,
768
1516
  overflow: "hidden"
769
1517
  } },
770
- actions: s && !r ? [/* @__PURE__ */ I(l, {
1518
+ actions: s && !r ? [/* @__PURE__ */ N(u, {
771
1519
  type: "text",
772
1520
  size: "small",
773
1521
  onClick: s,
774
- children: u
1522
+ children: l
775
1523
  }, "view-all")] : void 0,
776
- children: r ? /* @__PURE__ */ I(_, {
1524
+ children: r ? /* @__PURE__ */ N(pe, {
777
1525
  active: !0,
778
1526
  paragraph: { rows: 6 }
779
- }) : /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(b, {
1527
+ }) : /* @__PURE__ */ P(Me, { children: [/* @__PURE__ */ N(k, {
780
1528
  size: 4,
781
1529
  wrap: !0,
782
- children: Object.entries(f).map(([e, t]) => /* @__PURE__ */ I(k.CheckableTag, {
1530
+ children: Object.entries(p).map(([e, t]) => /* @__PURE__ */ N(A.CheckableTag, {
783
1531
  checked: a === e,
784
1532
  onChange: () => o?.(e),
785
1533
  style: { margin: 0 },
786
1534
  children: `${e === "all" ? "All" : X[e]} ${t}`
787
1535
  }, e))
788
- }), /* @__PURE__ */ I("div", {
1536
+ }), /* @__PURE__ */ N("div", {
789
1537
  style: {
790
1538
  flex: 1,
791
1539
  minHeight: 0,
@@ -794,10 +1542,10 @@ var Re = {
794
1542
  flexDirection: "column",
795
1543
  gap: 6
796
1544
  },
797
- children: p.length === 0 ? /* @__PURE__ */ I(oe, {
1545
+ children: m.length === 0 ? /* @__PURE__ */ N(C, {
798
1546
  description: n.length === 0 ? "No alerts" : "No matching alerts",
799
1547
  style: { margin: "auto" }
800
- }) : p.map((e) => /* @__PURE__ */ L("div", {
1548
+ }) : m.map((e) => /* @__PURE__ */ P("div", {
801
1549
  style: {
802
1550
  padding: "10px 12px",
803
1551
  background: "#f9fafb",
@@ -807,23 +1555,23 @@ var Re = {
807
1555
  gap: 4
808
1556
  },
809
1557
  children: [
810
- /* @__PURE__ */ L("div", {
1558
+ /* @__PURE__ */ P("div", {
811
1559
  style: {
812
1560
  display: "flex",
813
1561
  justifyContent: "space-between",
814
1562
  alignItems: "center"
815
1563
  },
816
- children: [/* @__PURE__ */ I(k, {
817
- color: Re[e.severity],
1564
+ children: [/* @__PURE__ */ N(A, {
1565
+ color: $e[e.severity],
818
1566
  style: { margin: 0 },
819
1567
  children: X[e.severity]
820
- }), /* @__PURE__ */ I(N.Text, {
1568
+ }), /* @__PURE__ */ N(j.Text, {
821
1569
  type: "secondary",
822
1570
  style: { fontSize: 12 },
823
1571
  children: e.time
824
1572
  })]
825
1573
  }),
826
- /* @__PURE__ */ I("div", {
1574
+ /* @__PURE__ */ N("div", {
827
1575
  style: {
828
1576
  fontSize: 14,
829
1577
  fontWeight: 500,
@@ -831,7 +1579,7 @@ var Re = {
831
1579
  },
832
1580
  children: e.title
833
1581
  }),
834
- /* @__PURE__ */ I(N.Text, {
1582
+ /* @__PURE__ */ N(j.Text, {
835
1583
  type: "secondary",
836
1584
  style: { fontSize: 12 },
837
1585
  children: e.meta
@@ -846,7 +1594,7 @@ Z.displayName = "AlertFeed";
846
1594
  //#region src/components/file/File.tsx
847
1595
  var Q = ({ state: e = "default", children: t, style: n, ...r }) => {
848
1596
  let i = e === "loading";
849
- return /* @__PURE__ */ L(N.Link, {
1597
+ return /* @__PURE__ */ P(j.Link, {
850
1598
  ...r,
851
1599
  disabled: i,
852
1600
  style: {
@@ -857,48 +1605,26 @@ var Q = ({ state: e = "default", children: t, style: n, ...r }) => {
857
1605
  lineHeight: "18px",
858
1606
  ...n
859
1607
  },
860
- children: [i ? /* @__PURE__ */ I(S, { size: "small" }) : /* @__PURE__ */ I(Ee, {}), t]
1608
+ children: [i ? /* @__PURE__ */ N(_e, { size: "small" }) : /* @__PURE__ */ N(Pe, {}), t]
861
1609
  });
862
1610
  };
863
1611
  Q.displayName = "File";
864
1612
  //#endregion
865
- //#region src/components/data-table/DataTable.tsx
866
- function $({ columns: e, data: t, rowKey: n = "id", pagination: r = !1, pageSize: i = 10, pageSizeOptions: a = [
867
- 5,
868
- 10,
869
- 20,
870
- 50
871
- ], showGoTo: o = !1, emptyText: s = "No data", ...c }) {
872
- let l = e.map((e) => {
873
- let { key: n, label: r, sortable: i, filterable: a, dataIndex: o, render: s, ...c } = e, l = o ?? n, u = {
874
- ...c,
875
- key: n,
876
- dataIndex: l,
877
- title: r,
878
- render: s
879
- };
880
- return i && (u.sorter = (e, t) => {
881
- let n = e[l], r = t[l], i = Number(n), a = Number(r);
882
- return !Number.isNaN(i) && !Number.isNaN(a) ? i - a : String(n ?? "").localeCompare(String(r ?? ""));
883
- }), a && (u.filters = Array.from(new Set(t.map((e) => String(e[l] ?? "")))).map((e) => ({
884
- text: e,
885
- value: e
886
- })), u.onFilter = (e, t) => String(t[l] ?? "") === e), u;
887
- });
888
- return /* @__PURE__ */ I(E, {
889
- ...c,
890
- columns: l,
891
- dataSource: t,
892
- rowKey: n,
893
- pagination: r ? {
894
- pageSize: i,
895
- pageSizeOptions: a.map(String),
896
- showSizeChanger: !0,
897
- showQuickJumper: o
898
- } : !1,
899
- locale: { emptyText: s }
1613
+ //#region src/components/tags-select/TagsSelect.tsx
1614
+ var $ = e((e, t) => {
1615
+ let [n, i] = r(!1);
1616
+ return /* @__PURE__ */ N(de, {
1617
+ ref: t,
1618
+ ...e,
1619
+ placeholder: n ? "" : e.placeholder,
1620
+ onFocus: (t) => {
1621
+ i(!0), e.onFocus?.(t);
1622
+ },
1623
+ onBlur: (t) => {
1624
+ i(!1), e.onBlur?.(t);
1625
+ }
900
1626
  });
901
- }
902
- $.displayName = "DataTable";
1627
+ });
1628
+ $.displayName = "TagsSelect";
903
1629
  //#endregion
904
- export { n as Alert, Z as AlertFeed, r as App, i as AutoComplete, a as Avatar, o as Badge, s as Breadcrumb, c as Button, u as Card, d as Checkbox, f as Col, p as ConfigProvider, K as CyturProvider, $ as DataTable, te as DatePicker, ne as Descriptions, re as Divider, ie as Drawer, ae as Dropdown, Q as File, se as Flex, h as Form, J as Icon, Y as IconButton, g as Input, ce as InputNumber, le as Layout, ue as List, de as Menu, fe as Modal, pe as Pagination, me as Popconfirm, he as Popover, ge as Progress, _e as Radio, ve as Result, ye as Row, be as Select, xe as Skeleton, v as Slider, y as Space, x as Spin, C as Steps, w as Switch, T as Table, D as Tabs, O as Tag, A as TimePicker, j as Tooltip, M as Tree, Se as Typography, Ce as Upload, B as baseTheme, H as cscTheme, ke as defaultTheme, we as message, Te as notification, V as rmTheme, U as themes, Ne as tokens };
1630
+ export { i as Alert, Z as AlertFeed, a as App, o as AutoComplete, s as Avatar, c as Badge, l as Breadcrumb, q as Button, d as Card, p as Checkbox, m as Col, h as ConfigProvider, W as CyturProvider, _ as DatePicker, v as Descriptions, y as Divider, b as Drawer, x as Dropdown, S as Empty, Q as File, w as Flex, T as Form, J as Icon, Y as IconButton, Ne as Icons, E as Input, D as InputNumber, O as Layout, ee as List, te as Menu, ne as Modal, re as Pagination, ie as Popconfirm, ae as Popover, oe as Progress, se as Radio, ce as Result, le as Row, ue as Select, fe as Skeleton, me as Slider, he as Space, ge as Spin, ve as Statistic, ye as Steps, be as Switch, xe as Table, Se as Tabs, Ce as Tag, $ as TagsSelect, we as TimePicker, Te as Tooltip, Ee as Tree, De as Typography, Oe as Upload, L as baseTheme, z as cscTheme, Le as defaultTheme, ke as message, Ae as notification, R as rmTheme, je as theme, B as themes, K as tokens };