cytur-design-system 0.7.1 → 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,10 +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, Empty as se, Flex as h, Form as g, Input as ce, InputNumber as le, Layout as ue, List as de, Menu as fe, Modal as pe, Pagination as me, Popconfirm as he, Popover as ge, Progress as _e, Radio as ve, Result as ye, Row as be, Select as xe, Skeleton as _, Skeleton as v, Slider as y, Space as b, Space as x, Spin as S, Spin as C, Statistic as w, Steps as T, Switch as E, Table as D, Table as O, Tabs as k, Tag as A, Tag as j, TimePicker as M, Tooltip as Se, Tree as Ce, Typography as we, Typography as N, Upload as Te, message as Ee, notification as P, theme as De, theme as F } from "antd";
3
- import { Fragment as Oe, jsx as I, jsxs as L } from "react/jsx-runtime";
4
- import * as ke from "@ant-design/icons";
5
- import { DownloadOutlined as Ae, NotificationOutlined as je, SettingOutlined as Me } 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";
6
6
  //#region src/theme/index.ts
7
- var R = {
7
+ var F = {
8
8
  fontFamily: "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
9
9
  fontSize: 14,
10
10
  borderRadius: 4,
@@ -13,6 +13,8 @@ var R = {
13
13
  borderRadiusXS: 2,
14
14
  boxShadow: "0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.08)",
15
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",
16
18
  colorSuccess: "#15803d",
17
19
  colorWarning: "#f59e0b",
18
20
  colorError: "#dc2626",
@@ -28,15 +30,42 @@ var R = {
28
30
  colorBgContainer: "#ffffff",
29
31
  colorBgElevated: "#ffffff",
30
32
  colorBgLayout: "#f8fafb"
31
- }, z = {
33
+ }, I = {
32
34
  Button: {
33
35
  primaryShadow: "none",
34
- 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"
35
64
  },
36
65
  Modal: { borderRadiusLG: 12 }
37
- }, B = {
66
+ }, L = {
38
67
  token: {
39
- ...R,
68
+ ...F,
40
69
  colorPrimary: "#0a9e9e",
41
70
  colorPrimaryHover: "#078080",
42
71
  colorPrimaryActive: "#056363",
@@ -44,10 +73,10 @@ var R = {
44
73
  colorLinkHover: "#078080",
45
74
  colorLinkActive: "#056363"
46
75
  },
47
- components: z
48
- }, V = {
76
+ components: I
77
+ }, R = {
49
78
  token: {
50
- ...R,
79
+ ...F,
51
80
  colorPrimary: "#2563eb",
52
81
  colorPrimaryHover: "#1d4ed8",
53
82
  colorPrimaryActive: "#1e40af",
@@ -55,10 +84,10 @@ var R = {
55
84
  colorLinkHover: "#1d4ed8",
56
85
  colorLinkActive: "#1e40af"
57
86
  },
58
- components: z
59
- }, H = {
87
+ components: I
88
+ }, z = {
60
89
  token: {
61
- ...R,
90
+ ...F,
62
91
  colorPrimary: "#4f46e5",
63
92
  colorPrimaryHover: "#4338ca",
64
93
  colorPrimaryActive: "#3730a3",
@@ -66,12 +95,12 @@ var R = {
66
95
  colorLinkHover: "#4338ca",
67
96
  colorLinkActive: "#3730a3"
68
97
  },
69
- components: z
70
- }, Ne = B, U = {
71
- base: B,
72
- rm: V,
73
- csc: H
74
- }, W = {
98
+ components: I
99
+ }, Le = L, B = {
100
+ base: L,
101
+ rm: R,
102
+ csc: z
103
+ }, V = {
75
104
  "label-default-bg-solid": "#1f2937",
76
105
  "label-default-text-solid": "#ffffff",
77
106
  "label-primary-bg-solid": "#2563eb",
@@ -164,9 +193,6 @@ var R = {
164
193
  "tag-danger-bg-border-hover": "#fef2f2",
165
194
  "tag-danger-text-border": "#b91c1c",
166
195
  "tag-danger-border": "#f87171",
167
- "action-primary": "#0a9e9e",
168
- "action-primary-hover": "#078080",
169
- "action-primary-active": "#056363",
170
196
  "action-secondary": "#1d4ed8",
171
197
  "action-secondary-hover": "#1e40af",
172
198
  "action-secondary-active": "#1e3a8a",
@@ -180,7 +206,6 @@ var R = {
180
206
  "text-primary": "#111827",
181
207
  "text-secondary": "#4a5568",
182
208
  "text-secondary-action": "#1d4ed8",
183
- "text-primary-action": "#0a9e9e",
184
209
  "text-muted": "#a3adb8",
185
210
  "text-danger": "#dc2626",
186
211
  "text-inverse": "#ffffff",
@@ -192,6 +217,91 @@ var R = {
192
217
  "disabled-bg": "#e2e6ea",
193
218
  "disabled-border": "#e2e6ea",
194
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",
195
305
  "font-size-xs": "12px",
196
306
  "font-size-sm": "14px",
197
307
  "font-size-md": "16px",
@@ -224,11 +334,8 @@ var R = {
224
334
  "color-gray-900": "#111827",
225
335
  "color-yellow-50": "#fffbeb",
226
336
  "color-yellow-500": "#f59e0b"
227
- }, Pe = {
228
- ...W,
229
- "action-primary": "#3b82f6",
230
- "action-primary-hover": "#5899f5",
231
- "action-primary-active": "#88b8fa",
337
+ }, Re = {
338
+ ...V,
232
339
  "action-danger": "#f87171",
233
340
  "action-danger-hover": "#fca5a5",
234
341
  "action-danger-active": "#fecaca",
@@ -239,7 +346,6 @@ var R = {
239
346
  "text-primary": "#f8fafb",
240
347
  "text-secondary": "#cdd3d9",
241
348
  "text-secondary-action": "#88b8fa",
242
- "text-primary-action": "#3b82f6",
243
349
  "text-muted": "#6b7b8d",
244
350
  "text-danger": "#f87171",
245
351
  "text-inverse": "#1f2937",
@@ -251,6 +357,57 @@ var R = {
251
357
  "disabled-bg": "#1f2937",
252
358
  "disabled-border": "#374151",
253
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",
254
411
  "color-gray-50": "#0f172a",
255
412
  "color-gray-100": "#1f2937",
256
413
  "color-gray-200": "#374151",
@@ -261,303 +418,874 @@ var R = {
261
418
  "color-gray-700": "#e2e6ea",
262
419
  "color-gray-800": "#f1f3f5",
263
420
  "color-gray-900": "#f8fafb"
264
- }, Fe = (e, t) => {
265
- let n = (e) => Object.entries(e).map(([e, t]) => ` --cytur-${e}: ${t};`).join("\n");
266
- 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 `${`
267
424
  :root, [data-mode="light"] {
268
- ${n(e)}
425
+ ${r(e)}
269
426
  }
270
427
  [data-mode="dark"] {
271
- ${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)}
272
433
  }
273
- `.trim();
274
- }, G = "__cytur_tokens__", Ie = () => {
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 = () => {
275
666
  if (typeof document > "u") return;
276
- let e = document.getElementById(G);
277
- e || (e = document.createElement("style"), e.id = G, document.head.appendChild(e)), e.innerHTML = Fe(W, Pe);
278
- }, 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");
279
671
  t(() => {
280
- Ie();
672
+ Je();
281
673
  }, []), t(() => {
282
- typeof document < "u" && (document.documentElement.dataset.mode = n);
283
- }, [n]);
284
- let i = e === "base" && n === "dark" ? { token: {
285
- ...U[e].token,
286
- colorPrimary: "#3b82f6",
287
- colorPrimaryHover: "#5899f5",
288
- colorPrimaryActive: "#88b8fa",
289
- colorError: "#f87171",
290
- colorErrorHover: "#fca5a5",
291
- colorErrorActive: "#fecaca"
292
- } } : {};
293
- 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, {
294
678
  theme: {
295
- ...U[e],
296
- ...i,
297
- algorithm: n === "dark" ? F.darkAlgorithm : F.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
298
690
  },
299
- children: r
691
+ wave: { disabled: !0 },
692
+ children: i
300
693
  });
301
694
  };
302
- K.displayName = "CyturProvider";
695
+ W.displayName = "CyturProvider";
303
696
  //#endregion
304
697
  //#region src/theme/tokens.ts
305
- var q = (e) => `var(--cytur-${e})`, Le = {
698
+ var G = (e) => `var(--cytur-${e})`, K = {
306
699
  label: {
307
700
  default: {
308
701
  bg: {
309
- solid: q("label-default-bg-solid"),
310
- subtle: q("label-default-bg-subtle"),
311
- 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")
312
705
  },
313
706
  text: {
314
- solid: q("label-default-text-solid"),
315
- subtle: q("label-default-text-subtle"),
316
- 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")
317
710
  },
318
- border: q("label-default-border")
711
+ border: G("label-default-border")
319
712
  },
320
713
  primary: {
321
714
  bg: {
322
- solid: q("label-primary-bg-solid"),
323
- subtle: q("label-primary-bg-subtle"),
324
- 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")
325
718
  },
326
719
  text: {
327
- solid: q("label-primary-text-solid"),
328
- subtle: q("label-primary-text-subtle"),
329
- 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")
330
723
  },
331
- border: q("label-primary-border")
724
+ border: G("label-primary-border")
332
725
  },
333
726
  info: {
334
727
  bg: {
335
- solid: q("label-info-bg-solid"),
336
- subtle: q("label-info-bg-subtle"),
337
- 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")
338
731
  },
339
732
  text: {
340
- solid: q("label-info-text-solid"),
341
- subtle: q("label-info-text-subtle"),
342
- 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")
343
736
  },
344
- border: q("label-info-border")
737
+ border: G("label-info-border")
345
738
  },
346
739
  success: {
347
740
  bg: {
348
- solid: q("label-success-bg-solid"),
349
- subtle: q("label-success-bg-subtle"),
350
- 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")
351
744
  },
352
745
  text: {
353
- solid: q("label-success-text-solid"),
354
- subtle: q("label-success-text-subtle"),
355
- 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")
356
749
  },
357
- border: q("label-success-border")
750
+ border: G("label-success-border")
358
751
  },
359
752
  warning: {
360
753
  bg: {
361
- solid: q("label-warning-bg-solid"),
362
- subtle: q("label-warning-bg-subtle"),
363
- 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")
364
757
  },
365
758
  text: {
366
- solid: q("label-warning-text-solid"),
367
- subtle: q("label-warning-text-subtle"),
368
- 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")
369
762
  },
370
- border: q("label-warning-border")
763
+ border: G("label-warning-border")
371
764
  },
372
765
  danger: {
373
766
  bg: {
374
- solid: q("label-danger-bg-solid"),
375
- subtle: q("label-danger-bg-subtle"),
376
- 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")
377
770
  },
378
771
  text: {
379
- solid: q("label-danger-text-solid"),
380
- subtle: q("label-danger-text-subtle"),
381
- 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")
382
775
  },
383
- border: q("label-danger-border")
776
+ border: G("label-danger-border")
384
777
  }
385
778
  },
386
779
  tag: {
387
780
  default: {
388
781
  bg: {
389
- solid: q("tag-default-bg-solid"),
390
- solidHover: q("tag-default-bg-solid-hover"),
391
- subtle: q("tag-default-bg-subtle"),
392
- subtleHover: q("tag-default-bg-subtle-hover"),
393
- border: q("tag-default-bg-border"),
394
- 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")
395
788
  },
396
789
  text: {
397
- solid: q("tag-default-text-solid"),
398
- subtle: q("tag-default-text-subtle"),
399
- 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")
400
793
  },
401
- border: q("tag-default-border")
794
+ border: G("tag-default-border")
402
795
  },
403
796
  primary: {
404
797
  bg: {
405
- solid: q("tag-primary-bg-solid"),
406
- solidHover: q("tag-primary-bg-solid-hover"),
407
- subtle: q("tag-primary-bg-subtle"),
408
- subtleHover: q("tag-primary-bg-subtle-hover"),
409
- border: q("tag-primary-bg-border"),
410
- 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")
411
804
  },
412
805
  text: {
413
- solid: q("tag-primary-text-solid"),
414
- subtle: q("tag-primary-text-subtle"),
415
- 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")
416
809
  },
417
- border: q("tag-primary-border")
810
+ border: G("tag-primary-border")
418
811
  },
419
812
  success: {
420
813
  bg: {
421
- solid: q("tag-success-bg-solid"),
422
- solidHover: q("tag-success-bg-solid-hover"),
423
- subtle: q("tag-success-bg-subtle"),
424
- subtleHover: q("tag-success-bg-subtle-hover"),
425
- border: q("tag-success-bg-border"),
426
- 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")
427
820
  },
428
821
  text: {
429
- solid: q("tag-success-text-solid"),
430
- subtle: q("tag-success-text-subtle"),
431
- 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")
432
825
  },
433
- border: q("tag-success-border")
826
+ border: G("tag-success-border")
434
827
  },
435
828
  warning: {
436
829
  bg: {
437
- solid: q("tag-warning-bg-solid"),
438
- solidHover: q("tag-warning-bg-solid-hover"),
439
- subtle: q("tag-warning-bg-subtle"),
440
- subtleHover: q("tag-warning-bg-subtle-hover"),
441
- border: q("tag-warning-bg-border"),
442
- 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")
443
836
  },
444
837
  text: {
445
- solid: q("tag-warning-text-solid"),
446
- subtle: q("tag-warning-text-subtle"),
447
- 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")
448
841
  },
449
- border: q("tag-warning-border")
842
+ border: G("tag-warning-border")
450
843
  },
451
844
  danger: {
452
845
  bg: {
453
- solid: q("tag-danger-bg-solid"),
454
- solidHover: q("tag-danger-bg-solid-hover"),
455
- subtle: q("tag-danger-bg-subtle"),
456
- subtleHover: q("tag-danger-bg-subtle-hover"),
457
- border: q("tag-danger-bg-border"),
458
- 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")
459
852
  },
460
853
  text: {
461
- solid: q("tag-danger-text-solid"),
462
- subtle: q("tag-danger-text-subtle"),
463
- 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")
464
857
  },
465
- border: q("tag-danger-border")
858
+ border: G("tag-danger-border")
466
859
  }
467
860
  },
468
861
  action: {
469
862
  primary: {
470
- default: q("action-primary"),
471
- hover: q("action-primary-hover"),
472
- active: q("action-primary-active")
863
+ default: G("action-primary"),
864
+ hover: G("action-primary-hover"),
865
+ active: G("action-primary-active")
473
866
  },
474
867
  secondary: {
475
- default: q("action-secondary"),
476
- hover: q("action-secondary-hover"),
477
- active: q("action-secondary-active")
868
+ default: G("action-secondary"),
869
+ hover: G("action-secondary-hover"),
870
+ active: G("action-secondary-active")
478
871
  },
479
872
  danger: {
480
- default: q("action-danger"),
481
- hover: q("action-danger-hover"),
482
- active: q("action-danger-active")
873
+ default: G("action-danger"),
874
+ hover: G("action-danger-hover"),
875
+ active: G("action-danger-active")
483
876
  }
484
877
  },
485
878
  bg: {
486
- surface: q("bg-surface"),
487
- subtle: q("bg-subtle"),
488
- secondarySubtle: q("bg-secondary-subtle"),
489
- 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")
490
883
  },
491
884
  text: {
492
- primary: q("text-primary"),
493
- secondary: q("text-secondary"),
494
- secondaryAction: q("text-secondary-action"),
495
- primaryAction: q("text-primary-action"),
496
- muted: q("text-muted"),
497
- danger: q("text-danger"),
498
- inverse: q("text-inverse"),
499
- 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")
500
893
  },
501
894
  border: {
502
- default: q("border-default"),
503
- secondary: q("border-secondary"),
504
- danger: q("border-danger"),
505
- focus: q("border-focus")
895
+ default: G("border-default"),
896
+ secondary: G("border-secondary"),
897
+ danger: G("border-danger"),
898
+ focus: G("border-focus")
506
899
  },
507
900
  disabled: {
508
- bg: q("disabled-bg"),
509
- border: q("disabled-border"),
510
- 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
+ }
511
1164
  },
512
1165
  font: {
513
1166
  size: {
514
- xs: q("font-size-xs"),
515
- sm: q("font-size-sm"),
516
- md: q("font-size-md"),
517
- lg: q("font-size-lg"),
518
- 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")
519
1172
  },
520
1173
  weight: {
521
- regular: q("font-weight-regular"),
522
- medium: q("font-weight-medium"),
523
- semibold: q("font-weight-semibold"),
524
- 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")
525
1178
  },
526
1179
  lineHeight: {
527
- 16: q("line-height-16"),
528
- 18: q("line-height-18"),
529
- 20: q("line-height-20"),
530
- 22: q("line-height-22"),
531
- 24: q("line-height-24"),
532
- 28: q("line-height-28"),
533
- 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")
534
1187
  },
535
1188
  letterSpacing: {
536
- tighter: q("letter-spacing-tighter"),
537
- tight: q("letter-spacing-tight"),
538
- normal: q("letter-spacing-normal"),
539
- 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")
540
1193
  }
541
1194
  },
542
1195
  color: {
543
1196
  gray: {
544
- 50: q("color-gray-50"),
545
- 100: q("color-gray-100"),
546
- 200: q("color-gray-200"),
547
- 300: q("color-gray-300"),
548
- 400: q("color-gray-400"),
549
- 500: q("color-gray-500"),
550
- 600: q("color-gray-600"),
551
- 700: q("color-gray-700"),
552
- 800: q("color-gray-800"),
553
- 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")
554
1207
  },
555
1208
  yellow: {
556
- 50: q("color-yellow-50"),
557
- 500: q("color-yellow-500")
1209
+ 50: G("color-yellow-50"),
1210
+ 500: G("color-yellow-500")
558
1211
  }
559
1212
  }
560
- }, Re = {
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 = {
561
1289
  close: {
562
1290
  viewBox: "0 0 20 20",
563
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"]
@@ -646,14 +1374,14 @@ var q = (e) => `var(--cytur-${e})`, Le = {
646
1374
  viewBox: "0 0 20 20",
647
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"]
648
1376
  }
649
- }, ze = {
1377
+ }, Qe = {
650
1378
  xs: 10,
651
1379
  sm: 16,
652
1380
  md: 20,
653
1381
  lg: 24
654
1382
  }, J = e(({ name: e, size: t = "md", color: n = "currentColor", style: r, ...i }, a) => {
655
- let o = typeof t == "number" ? t : ze[t], s = Re[e];
656
- return /* @__PURE__ */ I("svg", {
1383
+ let o = typeof t == "number" ? t : Qe[t], s = Ze[e];
1384
+ return /* @__PURE__ */ N("svg", {
657
1385
  ref: a,
658
1386
  width: o,
659
1387
  height: o,
@@ -666,7 +1394,7 @@ var q = (e) => `var(--cytur-${e})`, Le = {
666
1394
  ...r
667
1395
  },
668
1396
  ...i,
669
- children: s.paths.map((e, t) => /* @__PURE__ */ I("path", {
1397
+ children: s.paths.map((e, t) => /* @__PURE__ */ N("path", {
670
1398
  d: e,
671
1399
  fillRule: "evenodd",
672
1400
  clipRule: "evenodd"
@@ -676,41 +1404,60 @@ var q = (e) => `var(--cytur-${e})`, Le = {
676
1404
  J.displayName = "Icon";
677
1405
  //#endregion
678
1406
  //#region src/components/icon-button/IconButton.tsx
679
- var Be = {
680
- sm: 28,
681
- md: 32,
682
- lg: 36
683
- }, Ve = {
684
- sm: 16,
685
- md: 20,
686
- lg: 24
687
- }, Y = e(({ size: e = "md", icon: t, style: n, ...r }, i) => {
688
- let a = Be[e], o = Ve[e];
689
- return /* @__PURE__ */ I(l, {
690
- ref: i,
691
- type: "text",
692
- icon: /* @__PURE__ */ I("span", {
693
- style: {
694
- display: "inline-flex",
695
- fontSize: o,
696
- lineHeight: 1
697
- },
698
- children: t
699
- }),
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
+ },
700
1425
  style: {
701
- width: a,
702
- height: a,
1426
+ width: g.box,
1427
+ height: g.box,
703
1428
  padding: 0,
704
- borderRadius: 8,
705
- ...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
706
1439
  },
707
- ...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
+ })
708
1455
  });
709
1456
  });
710
1457
  Y.displayName = "IconButton";
711
1458
  //#endregion
712
1459
  //#region src/components/alert-feed/AlertFeed.tsx
713
- var He = {
1460
+ var $e = {
714
1461
  emergency: "red",
715
1462
  alarm: "orange",
716
1463
  warning: "gold",
@@ -720,39 +1467,39 @@ var He = {
720
1467
  alarm: "Alarm",
721
1468
  warning: "Warning",
722
1469
  caution: "Caution"
723
- }, 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 }) => {
724
- 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 = {
725
1472
  all: n.length,
726
1473
  emergency: n.filter((e) => e.severity === "emergency").length,
727
1474
  alarm: n.filter((e) => e.severity === "alarm").length,
728
1475
  warning: n.filter((e) => e.severity === "warning").length,
729
1476
  caution: n.filter((e) => e.severity === "caution").length
730
- }, 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, {
731
1478
  type: "text",
732
1479
  size: "small",
733
- icon: /* @__PURE__ */ I(Me, {}),
1480
+ icon: /* @__PURE__ */ N(Ie, {}),
734
1481
  onClick: c
735
1482
  }));
736
- return /* @__PURE__ */ I(ee, {
737
- title: /* @__PURE__ */ L(x, {
1483
+ return /* @__PURE__ */ N(f, {
1484
+ title: /* @__PURE__ */ P(k, {
738
1485
  size: 6,
739
1486
  children: [
740
- /* @__PURE__ */ I(je, { style: { fontSize: 16 } }),
741
- /* @__PURE__ */ I("span", {
1487
+ /* @__PURE__ */ N(Fe, { style: { fontSize: 16 } }),
1488
+ /* @__PURE__ */ N("span", {
742
1489
  style: {
743
1490
  fontSize: 14,
744
1491
  fontWeight: 700
745
1492
  },
746
1493
  children: e
747
1494
  }),
748
- /* @__PURE__ */ I(N.Text, {
1495
+ /* @__PURE__ */ N(j.Text, {
749
1496
  type: "secondary",
750
1497
  style: { fontSize: 12 },
751
1498
  children: t
752
1499
  })
753
1500
  ]
754
1501
  }),
755
- extra: m,
1502
+ extra: h,
756
1503
  style: {
757
1504
  width: 400,
758
1505
  maxHeight: i,
@@ -768,25 +1515,25 @@ var He = {
768
1515
  gap: 12,
769
1516
  overflow: "hidden"
770
1517
  } },
771
- actions: s && !r ? [/* @__PURE__ */ I(l, {
1518
+ actions: s && !r ? [/* @__PURE__ */ N(u, {
772
1519
  type: "text",
773
1520
  size: "small",
774
1521
  onClick: s,
775
- children: u
1522
+ children: l
776
1523
  }, "view-all")] : void 0,
777
- children: r ? /* @__PURE__ */ I(v, {
1524
+ children: r ? /* @__PURE__ */ N(pe, {
778
1525
  active: !0,
779
1526
  paragraph: { rows: 6 }
780
- }) : /* @__PURE__ */ L(Oe, { children: [/* @__PURE__ */ I(x, {
1527
+ }) : /* @__PURE__ */ P(Me, { children: [/* @__PURE__ */ N(k, {
781
1528
  size: 4,
782
1529
  wrap: !0,
783
- children: Object.entries(f).map(([e, t]) => /* @__PURE__ */ I(j.CheckableTag, {
1530
+ children: Object.entries(p).map(([e, t]) => /* @__PURE__ */ N(A.CheckableTag, {
784
1531
  checked: a === e,
785
1532
  onChange: () => o?.(e),
786
1533
  style: { margin: 0 },
787
1534
  children: `${e === "all" ? "All" : X[e]} ${t}`
788
1535
  }, e))
789
- }), /* @__PURE__ */ I("div", {
1536
+ }), /* @__PURE__ */ N("div", {
790
1537
  style: {
791
1538
  flex: 1,
792
1539
  minHeight: 0,
@@ -795,10 +1542,10 @@ var He = {
795
1542
  flexDirection: "column",
796
1543
  gap: 6
797
1544
  },
798
- children: p.length === 0 ? /* @__PURE__ */ I(se, {
1545
+ children: m.length === 0 ? /* @__PURE__ */ N(C, {
799
1546
  description: n.length === 0 ? "No alerts" : "No matching alerts",
800
1547
  style: { margin: "auto" }
801
- }) : p.map((e) => /* @__PURE__ */ L("div", {
1548
+ }) : m.map((e) => /* @__PURE__ */ P("div", {
802
1549
  style: {
803
1550
  padding: "10px 12px",
804
1551
  background: "#f9fafb",
@@ -808,23 +1555,23 @@ var He = {
808
1555
  gap: 4
809
1556
  },
810
1557
  children: [
811
- /* @__PURE__ */ L("div", {
1558
+ /* @__PURE__ */ P("div", {
812
1559
  style: {
813
1560
  display: "flex",
814
1561
  justifyContent: "space-between",
815
1562
  alignItems: "center"
816
1563
  },
817
- children: [/* @__PURE__ */ I(j, {
818
- color: He[e.severity],
1564
+ children: [/* @__PURE__ */ N(A, {
1565
+ color: $e[e.severity],
819
1566
  style: { margin: 0 },
820
1567
  children: X[e.severity]
821
- }), /* @__PURE__ */ I(N.Text, {
1568
+ }), /* @__PURE__ */ N(j.Text, {
822
1569
  type: "secondary",
823
1570
  style: { fontSize: 12 },
824
1571
  children: e.time
825
1572
  })]
826
1573
  }),
827
- /* @__PURE__ */ I("div", {
1574
+ /* @__PURE__ */ N("div", {
828
1575
  style: {
829
1576
  fontSize: 14,
830
1577
  fontWeight: 500,
@@ -832,7 +1579,7 @@ var He = {
832
1579
  },
833
1580
  children: e.title
834
1581
  }),
835
- /* @__PURE__ */ I(N.Text, {
1582
+ /* @__PURE__ */ N(j.Text, {
836
1583
  type: "secondary",
837
1584
  style: { fontSize: 12 },
838
1585
  children: e.meta
@@ -847,7 +1594,7 @@ Z.displayName = "AlertFeed";
847
1594
  //#region src/components/file/File.tsx
848
1595
  var Q = ({ state: e = "default", children: t, style: n, ...r }) => {
849
1596
  let i = e === "loading";
850
- return /* @__PURE__ */ L(N.Link, {
1597
+ return /* @__PURE__ */ P(j.Link, {
851
1598
  ...r,
852
1599
  disabled: i,
853
1600
  style: {
@@ -858,48 +1605,26 @@ var Q = ({ state: e = "default", children: t, style: n, ...r }) => {
858
1605
  lineHeight: "18px",
859
1606
  ...n
860
1607
  },
861
- children: [i ? /* @__PURE__ */ I(C, { size: "small" }) : /* @__PURE__ */ I(Ae, {}), t]
1608
+ children: [i ? /* @__PURE__ */ N(_e, { size: "small" }) : /* @__PURE__ */ N(Pe, {}), t]
862
1609
  });
863
1610
  };
864
1611
  Q.displayName = "File";
865
1612
  //#endregion
866
- //#region src/components/data-table/DataTable.tsx
867
- function $({ columns: e, data: t, rowKey: n = "id", pagination: r = !1, pageSize: i = 10, pageSizeOptions: a = [
868
- 5,
869
- 10,
870
- 20,
871
- 50
872
- ], showGoTo: o = !1, emptyText: s = "No data", ...c }) {
873
- let l = e.map((e) => {
874
- let { key: n, label: r, sortable: i, filterable: a, dataIndex: o, render: s, ...c } = e, l = o ?? n, u = {
875
- ...c,
876
- key: n,
877
- dataIndex: l,
878
- title: r,
879
- render: s
880
- };
881
- return i && (u.sorter = (e, t) => {
882
- let n = e[l], r = t[l], i = Number(n), a = Number(r);
883
- return !Number.isNaN(i) && !Number.isNaN(a) ? i - a : String(n ?? "").localeCompare(String(r ?? ""));
884
- }), a && (u.filters = Array.from(new Set(t.map((e) => String(e[l] ?? "")))).map((e) => ({
885
- text: e,
886
- value: e
887
- })), u.onFilter = (e, t) => String(t[l] ?? "") === e), u;
888
- });
889
- return /* @__PURE__ */ I(O, {
890
- ...c,
891
- columns: l,
892
- dataSource: t,
893
- rowKey: n,
894
- pagination: r ? {
895
- pageSize: i,
896
- pageSizeOptions: a.map(String),
897
- showSizeChanger: !0,
898
- showQuickJumper: o
899
- } : !1,
900
- 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
+ }
901
1626
  });
902
- }
903
- $.displayName = "DataTable";
1627
+ });
1628
+ $.displayName = "TagsSelect";
904
1629
  //#endregion
905
- 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, oe as Empty, Q as File, h as Flex, g as Form, J as Icon, Y as IconButton, ke as Icons, ce as Input, le as InputNumber, ue as Layout, de as List, fe as Menu, pe as Modal, me as Pagination, he as Popconfirm, ge as Popover, _e as Progress, ve as Radio, ye as Result, be as Row, xe as Select, _ as Skeleton, y as Slider, b as Space, S as Spin, w as Statistic, T as Steps, E as Switch, D as Table, k as Tabs, A as Tag, M as TimePicker, Se as Tooltip, Ce as Tree, we as Typography, Te as Upload, B as baseTheme, H as cscTheme, Ne as defaultTheme, Ee as message, P as notification, V as rmTheme, De as theme, U as themes, Le 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 };