cytur-design-system 0.8.0 → 1.1.1

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.
Files changed (30) hide show
  1. package/dist/index.js +3009 -788
  2. package/dist/types/components/button/Button.d.ts +4 -2
  3. package/dist/types/components/checkbox/Checkbox.d.ts +14 -0
  4. package/dist/types/components/dropdown/Dropdown.d.ts +37 -0
  5. package/dist/types/components/icon/Icon.d.ts +9 -3
  6. package/dist/types/components/icon/icons.d.ts +5 -92
  7. package/dist/types/components/index.d.ts +12 -4
  8. package/dist/types/components/input/Input.d.ts +20 -0
  9. package/dist/types/components/modal/Modal.d.ts +35 -0
  10. package/dist/types/components/radio/Radio.d.ts +12 -0
  11. package/dist/types/components/scroll-area/ScrollArea.d.ts +12 -0
  12. package/dist/types/components/select/Select.d.ts +36 -0
  13. package/dist/types/components/tag/Tag.d.ts +21 -0
  14. package/dist/types/components/toast/Toast.d.ts +22 -0
  15. package/dist/types/components/toast/ToastRoot.d.ts +1 -0
  16. package/dist/types/components/toast/singleton.d.ts +26 -0
  17. package/dist/types/components/toast/store.d.ts +28 -0
  18. package/dist/types/components/toggle/Toggle.d.ts +15 -0
  19. package/dist/types/components/tooltip/Tooltip.d.ts +16 -0
  20. package/dist/types/lib.d.ts +14 -6
  21. package/dist/types/theme/CyturProvider.d.ts +2 -9
  22. package/dist/types/theme/brand/index.d.ts +1 -17
  23. package/dist/types/theme/index.d.ts +0 -6
  24. package/dist/types/theme/tokens.d.ts +566 -66
  25. package/package.json +1 -1
  26. package/dist/types/components/alert-feed/AlertFeed.d.ts +0 -27
  27. package/dist/types/components/file/File.d.ts +0 -15
  28. package/dist/types/components/icon-button/IconButton.d.ts +0 -8
  29. package/dist/types/components/tags-select/TagsSelect.d.ts +0 -3
  30. package/dist/types/theme/brand/rm.d.ts +0 -18
package/dist/index.js CHANGED
@@ -1,10 +1,11 @@
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";
1
+ import { cloneElement as e, forwardRef as t, isValidElement as n, useEffect as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
2
+ import { Alert as s, App as c, AutoComplete as l, Avatar as u, Badge as d, Breadcrumb as f, Card as p, Col as m, ConfigProvider as h, ConfigProvider as g, DatePicker as _, Descriptions as v, Divider as y, Drawer as b, Empty as x, Flex as S, Form as C, InputNumber as w, Layout as T, List as E, Menu as ee, Pagination as D, Popconfirm as O, Popover as te, Progress as ne, Result as re, Row as ie, Skeleton as ae, Slider as oe, Space as se, Spin as ce, Statistic as le, Steps as ue, Switch as de, Table as fe, Tabs as pe, TimePicker as me, Tree as he, Typography as ge, Upload as _e, message as ve, notification as ye, theme as be, theme as k } from "antd";
3
+ import { Fragment as xe, jsx as A, jsxs as j } from "react/jsx-runtime";
4
+ import { createPortal as M } from "react-dom";
5
+ import { createRoot as Se } from "react-dom/client";
6
+ import * as Ce from "@ant-design/icons";
6
7
  //#region src/theme/index.ts
7
- var F = {
8
+ var we = {
8
9
  fontFamily: "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
9
10
  fontSize: 14,
10
11
  borderRadius: 4,
@@ -30,13 +31,13 @@ var F = {
30
31
  colorBgContainer: "#ffffff",
31
32
  colorBgElevated: "#ffffff",
32
33
  colorBgLayout: "#f8fafb"
33
- }, I = {
34
+ }, Te = {
34
35
  Button: {
35
36
  primaryShadow: "none",
36
37
  defaultShadow: "none",
37
38
  dangerShadow: "none",
38
39
  fontWeight: 700,
39
- controlHeightSM: 32,
40
+ controlHeightSM: 28,
40
41
  contentFontSizeSM: 12,
41
42
  contentLineHeightSM: 16 / 12,
42
43
  paddingInlineSM: 8,
@@ -63,9 +64,9 @@ var F = {
63
64
  warningActiveShadow: "none"
64
65
  },
65
66
  Modal: { borderRadiusLG: 12 }
66
- }, L = {
67
+ }, N = {
67
68
  token: {
68
- ...F,
69
+ ...we,
69
70
  colorPrimary: "#0a9e9e",
70
71
  colorPrimaryHover: "#078080",
71
72
  colorPrimaryActive: "#056363",
@@ -73,34 +74,8 @@ var F = {
73
74
  colorLinkHover: "#078080",
74
75
  colorLinkActive: "#056363"
75
76
  },
76
- components: I
77
- }, R = {
78
- token: {
79
- ...F,
80
- colorPrimary: "#2563eb",
81
- colorPrimaryHover: "#1d4ed8",
82
- colorPrimaryActive: "#1e40af",
83
- colorLink: "#2563eb",
84
- colorLinkHover: "#1d4ed8",
85
- colorLinkActive: "#1e40af"
86
- },
87
- components: I
88
- }, z = {
89
- token: {
90
- ...F,
91
- colorPrimary: "#4f46e5",
92
- colorPrimaryHover: "#4338ca",
93
- colorPrimaryActive: "#3730a3",
94
- colorLink: "#4f46e5",
95
- colorLinkHover: "#4338ca",
96
- colorLinkActive: "#3730a3"
97
- },
98
- components: I
99
- }, Le = L, B = {
100
- base: L,
101
- rm: R,
102
- csc: z
103
- }, V = {
77
+ components: Te
78
+ }, Ee = N, P = { base: N }, F = {
104
79
  "label-default-bg-solid": "#1f2937",
105
80
  "label-default-text-solid": "#ffffff",
106
81
  "label-primary-bg-solid": "#2563eb",
@@ -268,6 +243,203 @@ var F = {
268
243
  "button-danger-border-active": "transparent",
269
244
  "button-danger-border-focus": "#3b82f6",
270
245
  "button-danger-border-disabled": "transparent",
246
+ "input-radius": "6px",
247
+ "input-sm-height": "28px",
248
+ "input-md-height": "36px",
249
+ "input-lg-height": "44px",
250
+ "input-sm-padding-x": "8px",
251
+ "input-md-padding-x": "12px",
252
+ "input-lg-padding-x": "16px",
253
+ "input-sm-gap": "6px",
254
+ "input-md-gap": "8px",
255
+ "input-lg-gap": "8px",
256
+ "input-sm-icon": "16px",
257
+ "input-md-icon": "20px",
258
+ "input-lg-icon": "24px",
259
+ "input-sm-font-size": "12px",
260
+ "input-md-font-size": "14px",
261
+ "input-lg-font-size": "16px",
262
+ "input-bg-default": "#ffffff",
263
+ "input-bg-hover": "#ffffff",
264
+ "input-bg-focus": "#ffffff",
265
+ "input-bg-error": "#fef2f2",
266
+ "input-bg-disabled": "#f1f3f5",
267
+ "input-border-default": "#e2e6ea",
268
+ "input-border-hover": "#a3adb8",
269
+ "input-border-focus": "#0a9e9e",
270
+ "input-border-error": "#dc2626",
271
+ "input-border-disabled": "#e2e6ea",
272
+ "input-text-default": "#111827",
273
+ "input-text-placeholder": "#a3adb8",
274
+ "input-text-disabled": "#a3adb8",
275
+ "tooltip-bg": "rgba(17,17,17,0.92)",
276
+ "tooltip-text": "#ffffff",
277
+ "tooltip-radius": "4px",
278
+ "tooltip-padding-x": "8px",
279
+ "tooltip-padding-y": "4px",
280
+ "tooltip-font-size": "12px",
281
+ "tooltip-arrow-size": "4px",
282
+ "modal-bg": "#ffffff",
283
+ "modal-border": "#e2e6ea",
284
+ "modal-overlay-bg": "rgba(0,0,0,0.45)",
285
+ "modal-padding-x": "24px",
286
+ "modal-padding-y": "20px",
287
+ "modal-header-gap": "12px",
288
+ "modal-radius": "12px",
289
+ "modal-text-title": "#111827",
290
+ "modal-text-body": "#111827",
291
+ "modal-sm-width": "400px",
292
+ "modal-md-width": "480px",
293
+ "modal-lg-width": "640px",
294
+ "modal-info-icon": "#2563eb",
295
+ "modal-success-icon": "#16a34a",
296
+ "modal-warning-icon": "#d97706",
297
+ "modal-error-icon": "#dc2626",
298
+ "toast-width": "380px",
299
+ "toast-padding": "14px",
300
+ "toast-gap": "12px",
301
+ "toast-radius": "8px",
302
+ "toast-icon-size": "20px",
303
+ "toast-title": "#111827",
304
+ "toast-message": "rgba(17,24,39,0.75)",
305
+ "toast-close-icon": "#6b7b8d",
306
+ "toast-info-bg": "#e8f0fe",
307
+ "toast-info-border": "#3b82f6",
308
+ "toast-info-icon": "#3b82f6",
309
+ "toast-success-bg": "#f0fdf4",
310
+ "toast-success-border": "#22c55e",
311
+ "toast-success-icon": "#22c55e",
312
+ "toast-warning-bg": "#fffbeb",
313
+ "toast-warning-border": "#fbbf24",
314
+ "toast-warning-icon": "#fbbf24",
315
+ "toast-error-bg": "#fef2f2",
316
+ "toast-error-border": "#ef4444",
317
+ "toast-error-icon": "#ef4444",
318
+ "radio-size": "16px",
319
+ "radio-dot-size": "8px",
320
+ "radio-gap": "8px",
321
+ "radio-bg-hover": "rgba(10,158,158,0.08)",
322
+ "radio-bg-disabled": "rgba(10,158,158,0.08)",
323
+ "radio-border-off": "#cdd3d9",
324
+ "radio-border-hover": "#0a9e9e",
325
+ "radio-border-on": "#0a9e9e",
326
+ "radio-border-disabled": "#e2e6ea",
327
+ "radio-dot-color": "#0a9e9e",
328
+ "checkbox-size": "16px",
329
+ "checkbox-radius": "3px",
330
+ "checkbox-gap": "8px",
331
+ "checkbox-bg-off": "transparent",
332
+ "checkbox-bg-hover": "rgba(10,158,158,0.08)",
333
+ "checkbox-bg-on": "#0a9e9e",
334
+ "checkbox-bg-disabled": "rgba(10,158,158,0.08)",
335
+ "checkbox-border-off": "#cdd3d9",
336
+ "checkbox-border-hover": "#0a9e9e",
337
+ "checkbox-border-on": "#0a9e9e",
338
+ "checkbox-border-disabled": "#e2e6ea",
339
+ "checkbox-check-color": "#ffffff",
340
+ "dropdown-menu-bg": "#ffffff",
341
+ "dropdown-menu-border": "#e2e6ea",
342
+ "dropdown-menu-radius": "6px",
343
+ "dropdown-menu-padding": "4px",
344
+ "dropdown-menu-shadow": "0 4px 12px rgba(0,0,0,0.12)",
345
+ "dropdown-item-text-default": "#111827",
346
+ "dropdown-item-text-danger": "#dc2626",
347
+ "dropdown-item-text-disabled": "#a3adb8",
348
+ "dropdown-item-icon-default": "#4a5568",
349
+ "dropdown-item-icon-danger": "#dc2626",
350
+ "dropdown-item-bg-hover": "#f1f3f5",
351
+ "dropdown-item-bg-focus": "#e8f0fe",
352
+ "dropdown-sm-height": "28px",
353
+ "dropdown-md-height": "36px",
354
+ "dropdown-lg-height": "44px",
355
+ "dropdown-sm-padding-x": "8px",
356
+ "dropdown-md-padding-x": "12px",
357
+ "dropdown-lg-padding-x": "16px",
358
+ "dropdown-sm-gap": "4px",
359
+ "dropdown-md-gap": "8px",
360
+ "dropdown-lg-gap": "8px",
361
+ "dropdown-sm-radius": "4px",
362
+ "dropdown-md-radius": "6px",
363
+ "dropdown-lg-radius": "8px",
364
+ "dropdown-sm-icon-size": "14px",
365
+ "dropdown-md-icon-size": "16px",
366
+ "dropdown-lg-icon-size": "20px",
367
+ "dropdown-divider-color": "#e2e6ea",
368
+ "dropdown-divider-thickness": "1px",
369
+ "dropdown-divider-margin-y": "4px",
370
+ "select-list-bg": "#ffffff",
371
+ "select-list-border": "#e2e6ea",
372
+ "select-option-text-default": "#111827",
373
+ "select-option-text-selected": "#0a9e9e",
374
+ "select-option-text-disabled": "#a3adb8",
375
+ "select-option-bg-hover": "#f1f3f5",
376
+ "select-option-bg-selected": "#e8f0fe",
377
+ "tag-radius": "8px",
378
+ "tag-sm-height": "20px",
379
+ "tag-md-height": "24px",
380
+ "tag-lg-height": "28px",
381
+ "tag-sm-padding-x": "8px",
382
+ "tag-md-padding-x": "10px",
383
+ "tag-lg-padding-x": "12px",
384
+ "tag-sm-gap": "4px",
385
+ "tag-md-gap": "4px",
386
+ "tag-lg-gap": "6px",
387
+ "tag-sm-icon-size": "12px",
388
+ "tag-md-icon-size": "14px",
389
+ "tag-lg-icon-size": "16px",
390
+ "tag-sm-font-size": "12px",
391
+ "tag-md-font-size": "14px",
392
+ "tag-lg-font-size": "14px",
393
+ "tag-sm-line-height": "16px",
394
+ "tag-md-line-height": "18px",
395
+ "tag-lg-line-height": "20px",
396
+ "tag-neutral-bg": "rgba(0,0,0,0.06)",
397
+ "tag-neutral-bg-hover": "rgba(0,0,0,0.10)",
398
+ "tag-neutral-bg-selected": "rgba(0,0,0,0.14)",
399
+ "tag-neutral-border": "#cdd3d9",
400
+ "tag-neutral-text": "#111827",
401
+ "tag-gray-bg": "#f1f3f5",
402
+ "tag-gray-bg-hover": "#e2e6ea",
403
+ "tag-gray-bg-selected": "#cdd3d9",
404
+ "tag-gray-border": "#cdd3d9",
405
+ "tag-gray-text": "#4a5568",
406
+ "tag-red-bg": "rgba(220,38,38,0.1)",
407
+ "tag-red-bg-hover": "rgba(220,38,38,0.2)",
408
+ "tag-red-bg-selected": "rgba(220,38,38,0.32)",
409
+ "tag-red-border": "rgba(220,38,38,0.5)",
410
+ "tag-red-text": "#dc2626",
411
+ "tag-ot-bg": "rgba(21,128,61,0.1)",
412
+ "tag-ot-bg-hover": "rgba(21,128,61,0.2)",
413
+ "tag-ot-bg-selected": "rgba(21,128,61,0.3)",
414
+ "tag-ot-border": "rgba(21,128,61,0.5)",
415
+ "tag-ot-text": "#15803d",
416
+ "tag-it-bg": "rgba(29,78,216,0.1)",
417
+ "tag-it-bg-hover": "rgba(29,78,216,0.2)",
418
+ "tag-it-bg-selected": "rgba(29,78,216,0.3)",
419
+ "tag-it-border": "rgba(29,78,216,0.5)",
420
+ "tag-it-text": "#1d4ed8",
421
+ "tag-brand-bg": "rgba(10,158,158,0.1)",
422
+ "tag-brand-bg-hover": "rgba(10,158,158,0.2)",
423
+ "tag-brand-bg-selected": "rgba(10,158,158,0.3)",
424
+ "tag-brand-border": "rgba(10,158,158,0.5)",
425
+ "tag-brand-text": "#0a9e9e",
426
+ "tag-disabled-bg": "#e2e6ea",
427
+ "tag-disabled-border": "#e2e6ea",
428
+ "tag-disabled-text": "#a3adb8",
429
+ "scrollbar-thumb-width": "8px",
430
+ "scrollbar-thumb-radius": "4px",
431
+ "scrollbar-thumb-default": "rgba(0,0,0,0.2)",
432
+ "scrollbar-thumb-hover": "rgba(0,0,0,0.4)",
433
+ "scrollbar-thumb-active": "rgba(0,0,0,0.6)",
434
+ "toggle-width": "28px",
435
+ "toggle-height": "16px",
436
+ "toggle-thumb-size": "12px",
437
+ "toggle-thumb-color": "#ffffff",
438
+ "toggle-thumb-disabled": "rgba(255,255,255,0.5)",
439
+ "toggle-bg-off": "rgba(0,0,0,0.25)",
440
+ "toggle-bg-on": "#0a9e9e",
441
+ "toggle-bg-disabled-off": "rgba(0,0,0,0.08)",
442
+ "toggle-bg-disabled-on": "rgba(10,158,158,0.3)",
271
443
  "iconbutton-radius": "8px",
272
444
  "iconbutton-size-sm": "28px",
273
445
  "iconbutton-size-md": "32px",
@@ -283,10 +455,10 @@ var F = {
283
455
  "iconbutton-icon-hover": "#111827",
284
456
  "iconbutton-icon-active": "#111827",
285
457
  "iconbutton-icon-disabled": "#a3adb8",
286
- "button-size-sm-height": "32px",
458
+ "button-size-sm-height": "28px",
287
459
  "button-size-sm-padding-x": "8px",
288
- "button-size-sm-padding-y": "8px",
289
- "button-size-sm-gap": "4px",
460
+ "button-size-sm-padding-y": "6px",
461
+ "button-size-sm-gap": "6px",
290
462
  "button-size-sm-radius": "4px",
291
463
  "button-size-sm-icon": "16px",
292
464
  "button-size-md-height": "36px",
@@ -297,11 +469,12 @@ var F = {
297
469
  "button-size-md-icon": "20px",
298
470
  "button-size-lg-height": "44px",
299
471
  "button-size-lg-padding-x": "16px",
300
- "button-size-lg-padding-y": "12px",
472
+ "button-size-lg-padding-y": "10px",
301
473
  "button-size-lg-gap": "8px",
302
474
  "button-size-lg-radius": "8px",
303
475
  "button-size-lg-icon": "24px",
304
476
  "font-family": "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
477
+ "font-size-2xs": "10px",
305
478
  "font-size-xs": "12px",
306
479
  "font-size-sm": "14px",
307
480
  "font-size-md": "16px",
@@ -333,14 +506,131 @@ var F = {
333
506
  "color-gray-800": "#1f2937",
334
507
  "color-gray-900": "#111827",
335
508
  "color-yellow-50": "#fffbeb",
336
- "color-yellow-500": "#f59e0b"
337
- }, Re = {
338
- ...V,
509
+ "color-yellow-500": "#f59e0b",
510
+ "bg-page": "#f8fafb",
511
+ "bg-modal": "#ffffff",
512
+ "bg-neutral-default": "#f1f3f5",
513
+ "bg-neutral-secondary": "#fafafa",
514
+ "bg-neutral-tertiary": "#e8eaed",
515
+ "bg-table-header": "#f1f3f5",
516
+ "bg-table-row": "#ffffff",
517
+ "bg-table-row-hover": "#fafafa",
518
+ "bg-brand-default": "#0a9e9e",
519
+ "bg-brand-hover": "#078080",
520
+ "bg-brand-secondary": "#e0f2f1",
521
+ "bg-alarm-default": "#dc2626",
522
+ "bg-alarm-hover": "#b91c1c",
523
+ "bg-status-error": "#fef2f2",
524
+ "bg-status-error-tint": "#fef2f2",
525
+ "bg-status-info": "#eff6ff",
526
+ "bg-status-success": "#f0fdf4",
527
+ "bg-status-warning": "#fffbeb",
528
+ "bg-threat-default": "#f1f3f5",
529
+ "bg-threat-alarm": "#fff7ed",
530
+ "bg-threat-caution": "#fffbeb",
531
+ "bg-threat-emergency": "#fef2f2",
532
+ "bg-threat-warning": "#fffbeb",
533
+ "text-tertiary": "#6b7b8d",
534
+ "text-muted-strong": "#a3adb8",
535
+ "text-placeholder": "#a3adb8",
536
+ "text-on-brand": "#ffffff",
537
+ "text-brand-default": "#0a9e9e",
538
+ "text-brand-hover": "#078080",
539
+ "text-status-error": "#dc2626",
540
+ "text-status-info": "#2563eb",
541
+ "text-status-success": "#16a34a",
542
+ "text-status-warning": "#d97706",
543
+ "text-threat-default": "#6b7b8d",
544
+ "text-threat-alarm": "#f57c00",
545
+ "text-threat-caution": "#d97706",
546
+ "text-threat-emergency": "#dc2626",
547
+ "text-threat-warning": "#d97706",
548
+ "text-purpose-normal": "#16a34a",
549
+ "text-purpose-expiring": "#d97706",
550
+ "text-purpose-expired": "#dc2626",
551
+ "border-default-hover": "#cdd3d9",
552
+ "border-strong": "#a3adb8",
553
+ "border-table": "#e2e6ea",
554
+ "border-status-error": "#dc2626",
555
+ "border-status-success": "#16a34a",
556
+ "border-status-warning": "#d97706",
557
+ "border-topology-connected": "#16a34a",
558
+ "border-topology-disconnected": "#111827",
559
+ "border-topology-unknown": "#a3adb8",
560
+ "color-neutral-0050": "#ffffff",
561
+ "color-neutral-0100": "#f5f5f5",
562
+ "color-neutral-0150": "#ebebeb",
563
+ "color-neutral-0200": "#e0e0e0",
564
+ "color-neutral-0250": "#d6d6d6",
565
+ "color-neutral-0300": "#cccccc",
566
+ "color-neutral-0350": "#c2c2c2",
567
+ "color-neutral-0400": "#b8b8b8",
568
+ "color-neutral-0450": "#adadad",
569
+ "color-neutral-0500": "#a3a3a3",
570
+ "color-neutral-0550": "#999999",
571
+ "color-neutral-0600": "#8f8f8f",
572
+ "color-neutral-0650": "#858585",
573
+ "color-neutral-0700": "#7a7a7a",
574
+ "color-neutral-0750": "#707070",
575
+ "color-neutral-0800": "#666666",
576
+ "color-neutral-0850": "#5c5c5c",
577
+ "color-neutral-0900": "#525252",
578
+ "color-neutral-0950": "#474747",
579
+ "color-neutral-1000": "#3d3d3d",
580
+ "color-neutral-1050": "#333333",
581
+ "color-neutral-1100": "#292929",
582
+ "color-neutral-1150": "#1f1f1f",
583
+ "color-neutral-1200": "#1a1a1a",
584
+ "color-neutral-1250": "#141414",
585
+ "color-neutral-1300": "#0f0f0f",
586
+ "color-neutral-1350": "#0a0a0a",
587
+ "color-neutral-1400": "#080808",
588
+ "color-neutral-1450": "#050505",
589
+ "color-neutral-1500": "#030303",
590
+ "color-neutral-1550": "#020202",
591
+ "color-neutral-1600": "#000000",
592
+ "color-blue-100": "#5d92ff",
593
+ "color-blue-200": "#4c86ff",
594
+ "color-blue-300": "#3d6bff",
595
+ "color-blue-400": "#2b9fe2",
596
+ "color-blue-500": "#2e54cc",
597
+ "color-blue-600": "#1e2634",
598
+ "color-blue-700": "#5583d3",
599
+ "color-blue-800": "#1e2c43",
600
+ "color-brown-100": "#a97e35",
601
+ "color-brown-200": "#312a1e",
602
+ "color-green-100": "#2bc029",
603
+ "color-green-200": "#38ae3c",
604
+ "color-green-300": "#38b92a",
605
+ "color-green-400": "#00c763",
606
+ "color-green-500": "#1f3322",
607
+ "color-orange-100": "#e49b25",
608
+ "color-orange-200": "#ebae16",
609
+ "color-orange-300": "#f57c00",
610
+ "color-orange-400": "#332b14",
611
+ "color-orange-500": "#2e2018",
612
+ "color-orange-600": "#292214",
613
+ "color-red-100": "#ff6262",
614
+ "color-red-200": "#fb5858",
615
+ "color-red-300": "#f44444",
616
+ "color-red-400": "#e64242",
617
+ "color-red-500": "#ea3b3b",
618
+ "color-red-600": "#d05050",
619
+ "color-red-700": "#ff2121",
620
+ "color-red-800": "#c52e2e",
621
+ "color-red-900": "#351b17",
622
+ "color-red-1000": "#2d1c1c",
623
+ "color-teal-100": "#329884",
624
+ "color-teal-200": "#223234",
625
+ "color-yellow-100": "#ffd655",
626
+ "color-yellow-200": "#292614"
627
+ }, De = {
628
+ ...F,
339
629
  "action-danger": "#f87171",
340
630
  "action-danger-hover": "#fca5a5",
341
631
  "action-danger-active": "#fecaca",
342
632
  "bg-surface": "#1f2937",
343
- "bg-subtle": "#0f172a",
633
+ "bg-subtle": "#121212",
344
634
  "bg-secondary-subtle": "#1e3a8a",
345
635
  "bg-danger-subtle": "#7f1d1d",
346
636
  "text-primary": "#f8fafb",
@@ -363,6 +653,113 @@ var F = {
363
653
  "iconbutton-icon-hover": "#f8fafb",
364
654
  "iconbutton-icon-active": "#f8fafb",
365
655
  "iconbutton-icon-disabled": "#6b7b8d",
656
+ "scrollbar-thumb-default": "rgba(255,255,255,0.2)",
657
+ "scrollbar-thumb-hover": "rgba(255,255,255,0.4)",
658
+ "scrollbar-thumb-active": "rgba(255,255,255,0.6)",
659
+ "toggle-bg-off": "rgba(255,255,255,0.2)",
660
+ "toggle-bg-disabled-off": "rgba(255,255,255,0.08)",
661
+ "radio-bg-hover": "rgba(59,130,246,0.08)",
662
+ "radio-bg-disabled": "rgba(59,130,246,0.08)",
663
+ "radio-border-off": "rgba(255,255,255,0.25)",
664
+ "radio-border-hover": "#3b82f6",
665
+ "radio-border-on": "#3b82f6",
666
+ "radio-border-disabled": "rgba(255,255,255,0.10)",
667
+ "radio-dot-color": "#3b82f6",
668
+ "checkbox-bg-hover": "rgba(59,130,246,0.08)",
669
+ "checkbox-bg-on": "#3b82f6",
670
+ "checkbox-bg-disabled": "rgba(59,130,246,0.08)",
671
+ "checkbox-border-off": "rgba(255,255,255,0.25)",
672
+ "checkbox-border-hover": "#3b82f6",
673
+ "checkbox-border-on": "#3b82f6",
674
+ "checkbox-border-disabled": "rgba(255,255,255,0.10)",
675
+ "dropdown-menu-bg": "#1f2937",
676
+ "dropdown-menu-border": "#374151",
677
+ "dropdown-menu-shadow": "0 4px 12px rgba(0,0,0,0.4)",
678
+ "dropdown-item-text-default": "#f8fafb",
679
+ "dropdown-item-text-danger": "#f87171",
680
+ "dropdown-item-text-disabled": "#6b7b8d",
681
+ "dropdown-item-icon-default": "#cdd3d9",
682
+ "dropdown-item-icon-danger": "#f87171",
683
+ "dropdown-item-bg-hover": "#374151",
684
+ "dropdown-item-bg-focus": "#1e3a8a",
685
+ "dropdown-divider-color": "#374151",
686
+ "select-list-bg": "#1f2937",
687
+ "select-list-border": "#374151",
688
+ "select-option-text-default": "#f8fafb",
689
+ "select-option-text-selected": "#3b82f6",
690
+ "select-option-text-disabled": "#6b7b8d",
691
+ "select-option-bg-hover": "#374151",
692
+ "select-option-bg-selected": "#1e3a8a",
693
+ "tag-neutral-bg": "rgba(255,255,255,0.1)",
694
+ "tag-neutral-bg-hover": "rgba(255,255,255,0.2)",
695
+ "tag-neutral-bg-selected": "rgba(255,255,255,0.3)",
696
+ "tag-neutral-border": "#4a5568",
697
+ "tag-neutral-text": "#f8fafb",
698
+ "tag-gray-bg": "#374151",
699
+ "tag-gray-bg-hover": "#4a5568",
700
+ "tag-gray-bg-selected": "#6b7b8d",
701
+ "tag-gray-border": "#4a5568",
702
+ "tag-gray-text": "#cdd3d9",
703
+ "tag-red-bg": "rgba(248,113,113,0.1)",
704
+ "tag-red-bg-hover": "rgba(248,113,113,0.2)",
705
+ "tag-red-bg-selected": "rgba(248,113,113,0.32)",
706
+ "tag-red-border": "rgba(248,113,113,0.5)",
707
+ "tag-red-text": "#f87171",
708
+ "tag-ot-bg": "rgba(74,222,128,0.1)",
709
+ "tag-ot-bg-hover": "rgba(74,222,128,0.2)",
710
+ "tag-ot-bg-selected": "rgba(74,222,128,0.3)",
711
+ "tag-ot-border": "rgba(74,222,128,0.5)",
712
+ "tag-ot-text": "#4ade80",
713
+ "tag-it-bg": "rgba(59,130,246,0.1)",
714
+ "tag-it-bg-hover": "rgba(59,130,246,0.2)",
715
+ "tag-it-bg-selected": "rgba(59,130,246,0.3)",
716
+ "tag-it-border": "rgba(59,130,246,0.5)",
717
+ "tag-it-text": "#3b82f6",
718
+ "tag-brand-bg": "rgba(59,130,246,0.1)",
719
+ "tag-brand-bg-hover": "rgba(59,130,246,0.2)",
720
+ "tag-brand-bg-selected": "rgba(59,130,246,0.3)",
721
+ "tag-brand-border": "rgba(59,130,246,0.5)",
722
+ "tag-brand-text": "#3b82f6",
723
+ "tag-disabled-bg": "#1f2937",
724
+ "tag-disabled-border": "#374151",
725
+ "tag-disabled-text": "#6b7b8d",
726
+ "modal-bg": "#222222",
727
+ "modal-border": "#2a2a2a",
728
+ "modal-overlay-bg": "rgba(0,0,0,0.5)",
729
+ "modal-text-title": "#ffffff",
730
+ "modal-text-body": "#ffffff",
731
+ "modal-info-icon": "#3b82f6",
732
+ "modal-success-icon": "#22c55e",
733
+ "modal-warning-icon": "#fbbf24",
734
+ "modal-error-icon": "#ef4444",
735
+ "toast-title": "#ffffff",
736
+ "toast-message": "rgba(255,255,255,0.75)",
737
+ "toast-close-icon": "#cdd3d9",
738
+ "toast-info-bg": "#1e2634",
739
+ "toast-info-border": "#3b82f6",
740
+ "toast-info-icon": "#3b82f6",
741
+ "toast-success-bg": "#1a2a1f",
742
+ "toast-success-border": "#22c55e",
743
+ "toast-success-icon": "#22c55e",
744
+ "toast-warning-bg": "#2d2618",
745
+ "toast-warning-border": "#fbbf24",
746
+ "toast-warning-icon": "#fbbf24",
747
+ "toast-error-bg": "#2d1818",
748
+ "toast-error-border": "#ef4444",
749
+ "toast-error-icon": "#ef4444",
750
+ "input-bg-default": "#1f2937",
751
+ "input-bg-hover": "#1f2937",
752
+ "input-bg-focus": "#1f2937",
753
+ "input-bg-error": "#7f1d1d",
754
+ "input-bg-disabled": "#374151",
755
+ "input-border-default": "#374151",
756
+ "input-border-hover": "#4a5568",
757
+ "input-border-focus": "#3b82f6",
758
+ "input-border-error": "#f87171",
759
+ "input-border-disabled": "#374151",
760
+ "input-text-default": "#f8fafb",
761
+ "input-text-placeholder": "#6b7b8d",
762
+ "input-text-disabled": "#6b7b8d",
366
763
  "button-secondary-bg-default": "transparent",
367
764
  "button-secondary-bg-hover": "rgba(255,255,255,0.06)",
368
765
  "button-secondary-bg-active": "rgba(255,255,255,0.12)",
@@ -417,8 +814,58 @@ var F = {
417
814
  "color-gray-600": "#cdd3d9",
418
815
  "color-gray-700": "#e2e6ea",
419
816
  "color-gray-800": "#f1f3f5",
420
- "color-gray-900": "#f8fafb"
421
- }, ze = (e, t, n) => {
817
+ "color-gray-900": "#f8fafb",
818
+ "bg-page": "#121212",
819
+ "bg-modal": "#1f2937",
820
+ "bg-neutral-default": "#1f2937",
821
+ "bg-neutral-secondary": "#111827",
822
+ "bg-neutral-tertiary": "#374151",
823
+ "bg-table-header": "#1f2937",
824
+ "bg-table-row": "#111827",
825
+ "bg-table-row-hover": "#1f2937",
826
+ "bg-brand-default": "#3b82f6",
827
+ "bg-brand-hover": "#60a5fa",
828
+ "bg-brand-secondary": "#1e3a8a",
829
+ "bg-alarm-default": "#ef4444",
830
+ "bg-alarm-hover": "#f87171",
831
+ "bg-status-error": "#7f1d1d",
832
+ "bg-status-error-tint": "rgba(239,68,68,0.25)",
833
+ "bg-status-info": "#1e3a8a",
834
+ "bg-status-success": "#14532d",
835
+ "bg-status-warning": "#78350f",
836
+ "bg-threat-default": "#1f2937",
837
+ "bg-threat-alarm": "#7c2d12",
838
+ "bg-threat-caution": "#78350f",
839
+ "bg-threat-emergency": "#7f1d1d",
840
+ "bg-threat-warning": "#78350f",
841
+ "text-tertiary": "#a3adb8",
842
+ "text-muted-strong": "#4a5568",
843
+ "text-placeholder": "#4a5568",
844
+ "text-on-brand": "#ffffff",
845
+ "text-brand-default": "#3b82f6",
846
+ "text-brand-hover": "#60a5fa",
847
+ "text-status-error": "#f87171",
848
+ "text-status-info": "#60a5fa",
849
+ "text-status-success": "#4ade80",
850
+ "text-status-warning": "#fbbf24",
851
+ "text-threat-default": "#888888",
852
+ "text-threat-alarm": "#fb923c",
853
+ "text-threat-caution": "#fbbf24",
854
+ "text-threat-emergency": "#ef4444",
855
+ "text-threat-warning": "#fbbf24",
856
+ "text-purpose-normal": "#4ade80",
857
+ "text-purpose-expiring": "#fbbf24",
858
+ "text-purpose-expired": "#f87171",
859
+ "border-default-hover": "#4a5568",
860
+ "border-strong": "#6b7b8d",
861
+ "border-table": "#374151",
862
+ "border-status-error": "#f87171",
863
+ "border-status-success": "#4ade80",
864
+ "border-status-warning": "#fbbf24",
865
+ "border-topology-connected": "#4ade80",
866
+ "border-topology-disconnected": "#ffffff",
867
+ "border-topology-unknown": "#a3adb8"
868
+ }, Oe = (e, t, n) => {
422
869
  let r = (e) => Object.entries(e).map(([e, t]) => ` --cytur-${e}: ${t};`).join("\n"), i = Object.keys(n), a = i[0];
423
870
  return `${`
424
871
  :root, [data-mode="light"] {
@@ -434,8 +881,38 @@ ${r(t.light)}
434
881
  ${s} {
435
882
  ${r(t.dark)}
436
883
  }`;
437
- }).join("\n")}`;
438
- }, Be = {
884
+ }).join("\n")}\n
885
+ /* 주의: scrollbar-width (표준) 설정하면 Chrome 121+에서 webkit pseudo가 무시됨 — 표준 속성 안 씀 */
886
+ .cytur-scroll::-webkit-scrollbar {
887
+ width: var(--cytur-scrollbar-thumb-width);
888
+ height: var(--cytur-scrollbar-thumb-width);
889
+ background: transparent;
890
+ }
891
+ .cytur-scroll::-webkit-scrollbar-track,
892
+ .cytur-scroll::-webkit-scrollbar-track-piece,
893
+ .cytur-scroll::-webkit-scrollbar-corner,
894
+ .cytur-scroll::-webkit-scrollbar-button { background: transparent; }
895
+ .cytur-scroll::-webkit-scrollbar-thumb {
896
+ background-color: var(--cytur-scrollbar-thumb-default);
897
+ border-radius: var(--cytur-scrollbar-thumb-radius);
898
+ }
899
+ /* 컨테이너 hover로 hover 색 전환 — macOS overlay scrollbar에선 thumb 직접 hover가 안 잡히는 한계 우회 */
900
+ .cytur-scroll:hover::-webkit-scrollbar-thumb { background-color: var(--cytur-scrollbar-thumb-hover); }
901
+ .cytur-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--cytur-scrollbar-thumb-hover); }
902
+ .cytur-scroll::-webkit-scrollbar-thumb:active { background-color: var(--cytur-scrollbar-thumb-active); }\n
903
+ input:-webkit-autofill,
904
+ input:-webkit-autofill:hover,
905
+ input:-webkit-autofill:focus,
906
+ input:-webkit-autofill:active,
907
+ textarea:-webkit-autofill,
908
+ textarea:-webkit-autofill:hover,
909
+ textarea:-webkit-autofill:focus {
910
+ -webkit-text-fill-color: var(--cytur-input-text-default);
911
+ -webkit-box-shadow: 0 0 0 1000px var(--cytur-input-bg-default) inset !important;
912
+ caret-color: var(--cytur-input-text-default);
913
+ transition: background-color 5000s ease-in-out 0s;
914
+ }`;
915
+ }, ke = {
439
916
  light: {
440
917
  "action-primary": "#0a9e9e",
441
918
  "action-primary-hover": "#078080",
@@ -478,7 +955,7 @@ ${r(t.dark)}
478
955
  "button-primary-border-disabled": "transparent",
479
956
  "text-primary-action": "#3b82f6"
480
957
  }
481
- }, Ve = {
958
+ }, Ae = {
482
959
  light: {
483
960
  colorPrimary: "#0a9e9e",
484
961
  colorPrimaryHover: "#078080",
@@ -489,62 +966,8 @@ ${r(t.dark)}
489
966
  colorPrimaryHover: "#5899f5",
490
967
  colorPrimaryActive: "#88b8fa"
491
968
  }
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",
969
+ }, I = {
970
+ "font-family": "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
548
971
  "action-primary": "#3d6bff",
549
972
  "action-primary-hover": "#4c86ff",
550
973
  "action-primary-active": "#2e54cc",
@@ -563,21 +986,21 @@ ${r(t.dark)}
563
986
  "button-primary-border-active": "#2e54cc",
564
987
  "button-primary-border-focus": "#3d6bff",
565
988
  "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",
989
+ "button-secondary-bg-default": "#383838",
990
+ "button-secondary-bg-hover": "#454545",
991
+ "button-secondary-bg-active": "#525252",
992
+ "button-secondary-bg-focus": "#383838",
993
+ "button-secondary-bg-disabled": "#2a2a2a",
994
+ "button-secondary-text-default": "#ffffff",
995
+ "button-secondary-text-hover": "#ffffff",
996
+ "button-secondary-text-active": "#ffffff",
997
+ "button-secondary-text-focus": "#ffffff",
998
+ "button-secondary-text-disabled": "#535353",
999
+ "button-secondary-border-default": "#4c4c4c",
1000
+ "button-secondary-border-hover": "#9b9b9b",
1001
+ "button-secondary-border-active": "#5e5e5e",
579
1002
  "button-secondary-border-focus": "#3d6bff",
580
- "button-secondary-border-disabled": "transparent",
1003
+ "button-secondary-border-disabled": "#383838",
581
1004
  "button-ghost-bg-default": "transparent",
582
1005
  "button-ghost-bg-hover": "#3d6bff1a",
583
1006
  "button-ghost-bg-active": "#3d6bff2e",
@@ -587,27 +1010,27 @@ ${r(t.dark)}
587
1010
  "button-ghost-text-hover": "#4c86ff",
588
1011
  "button-ghost-text-active": "#2e54cc",
589
1012
  "button-ghost-text-focus": "#3d6bff",
590
- "button-ghost-text-disabled": "#424242",
1013
+ "button-ghost-text-disabled": "#535353",
591
1014
  "button-ghost-border-default": "transparent",
592
1015
  "button-ghost-border-hover": "transparent",
593
1016
  "button-ghost-border-active": "transparent",
594
1017
  "button-ghost-border-focus": "#3d6bff",
595
1018
  "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",
1019
+ "button-tertiary-bg-default": "#3d6bff4d",
1020
+ "button-tertiary-bg-hover": "#3d6bff80",
1021
+ "button-tertiary-bg-active": "#3d6bffbf",
1022
+ "button-tertiary-bg-focus": "#3d6bff4d",
1023
+ "button-tertiary-bg-disabled": "#3d6bff14",
601
1024
  "button-tertiary-text-default": "#ffffff",
602
1025
  "button-tertiary-text-hover": "#ffffff",
603
1026
  "button-tertiary-text-active": "#ffffff",
604
1027
  "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",
1028
+ "button-tertiary-text-disabled": "#ffffff59",
1029
+ "button-tertiary-border-default": "#3d6bff",
1030
+ "button-tertiary-border-hover": "#3d6bff",
1031
+ "button-tertiary-border-active": "#3d6bff",
609
1032
  "button-tertiary-border-focus": "#3d6bff",
610
- "button-tertiary-border-disabled": "#383838",
1033
+ "button-tertiary-border-disabled": "#3d6bff40",
611
1034
  "button-softdanger-bg-default": "#ff64644c",
612
1035
  "button-softdanger-bg-hover": "#ff64644c",
613
1036
  "button-softdanger-bg-active": "#ff646466",
@@ -639,11 +1062,206 @@ ${r(t.dark)}
639
1062
  "button-danger-border-focus": "#3d6bff",
640
1063
  "button-danger-border-disabled": "transparent",
641
1064
  "text-primary-action": "#3d6bff",
642
- "border-focus": "#3d6bff"
643
- }, We = {
644
- light: H,
645
- dark: { ...H }
646
- }, Ge = {
1065
+ "border-focus": "#3d6bff",
1066
+ "bg-page": "#111111",
1067
+ "bg-modal": "#222222",
1068
+ "bg-neutral-default": "#292929",
1069
+ "bg-neutral-secondary": "#181818",
1070
+ "bg-neutral-tertiary": "#2e2e2e",
1071
+ "bg-table-header": "#262626",
1072
+ "bg-table-row": "#2c2c2c",
1073
+ "bg-table-row-hover": "#1d1d1d",
1074
+ "bg-brand-default": "#3d6bff",
1075
+ "bg-brand-hover": "#4c86ff",
1076
+ "bg-brand-secondary": "#1e2634",
1077
+ "bg-alarm-default": "#ea3b3b",
1078
+ "bg-alarm-hover": "#ff6262",
1079
+ "bg-status-error": "#351b17",
1080
+ "bg-status-error-tint": "#fb585840",
1081
+ "bg-status-info": "#1e2634",
1082
+ "bg-status-success": "#1f3322",
1083
+ "bg-status-warning": "#332b14",
1084
+ "bg-threat-default": "#242424",
1085
+ "bg-threat-alarm": "#2e2018",
1086
+ "bg-threat-caution": "#292214",
1087
+ "bg-threat-emergency": "#2d1c1c",
1088
+ "bg-threat-warning": "#292614",
1089
+ "text-tertiary": "#6a6a6a",
1090
+ "text-muted-strong": "#3a3a3a",
1091
+ "text-placeholder": "#363636",
1092
+ "text-on-brand": "#ffffff",
1093
+ "text-brand-default": "#3d6bff",
1094
+ "text-brand-hover": "#4c86ff",
1095
+ "text-status-error": "#fb5858",
1096
+ "text-status-info": "#3d6bff",
1097
+ "text-status-success": "#2bc029",
1098
+ "text-status-warning": "#ebae16",
1099
+ "text-threat-default": "#686868",
1100
+ "text-threat-alarm": "#f57c00",
1101
+ "text-threat-caution": "#ffd655",
1102
+ "text-threat-emergency": "#ff2121",
1103
+ "text-threat-warning": "#ebae16",
1104
+ "text-purpose-normal": "#2bc029",
1105
+ "text-purpose-expiring": "#e49b25",
1106
+ "text-purpose-expired": "#e64242",
1107
+ "border-default-hover": "#3e3e3e",
1108
+ "border-strong": "#3e3e3e",
1109
+ "border-table": "#3c3c3c",
1110
+ "border-status-error": "#fb5858",
1111
+ "border-status-success": "#2bc029",
1112
+ "border-status-warning": "#ebae16",
1113
+ "border-topology-connected": "#00c763",
1114
+ "border-topology-disconnected": "#ffffff",
1115
+ "border-topology-unknown": "#8d8d8d",
1116
+ "color-neutral-0050": "#ffffff",
1117
+ "color-neutral-0100": "#d9d9d9",
1118
+ "color-neutral-0150": "#bfbfbf",
1119
+ "color-neutral-0200": "#a6a6a6",
1120
+ "color-neutral-0250": "#9b9b9b",
1121
+ "color-neutral-0300": "#969696",
1122
+ "color-neutral-0350": "#8d8d8d",
1123
+ "color-neutral-0400": "#8a8a8a",
1124
+ "color-neutral-0450": "#888888",
1125
+ "color-neutral-0500": "#6a6a6a",
1126
+ "color-neutral-0550": "#686868",
1127
+ "color-neutral-0600": "#5f5f5f",
1128
+ "color-neutral-0650": "#5e5e5e",
1129
+ "color-neutral-0700": "#525252",
1130
+ "color-neutral-0750": "#4c4c4c",
1131
+ "color-neutral-0800": "#454545",
1132
+ "color-neutral-0850": "#424242",
1133
+ "color-neutral-0900": "#3e3e3e",
1134
+ "color-neutral-0950": "#3c3c3c",
1135
+ "color-neutral-1000": "#3a3a3a",
1136
+ "color-neutral-1050": "#383838",
1137
+ "color-neutral-1100": "#363636",
1138
+ "color-neutral-1150": "#2e2e2e",
1139
+ "color-neutral-1200": "#2c2c2c",
1140
+ "color-neutral-1250": "#2a2a2a",
1141
+ "color-neutral-1300": "#292929",
1142
+ "color-neutral-1350": "#262626",
1143
+ "color-neutral-1400": "#242424",
1144
+ "color-neutral-1450": "#222222",
1145
+ "color-neutral-1500": "#1d1d1d",
1146
+ "color-neutral-1550": "#181818",
1147
+ "color-neutral-1600": "#111111",
1148
+ "scrollbar-thumb-default": "#4a4a4a",
1149
+ "scrollbar-thumb-hover": "#6a6a6a",
1150
+ "scrollbar-thumb-active": "#8a8a8a",
1151
+ "toggle-bg-off": "rgba(255,255,255,0.2)",
1152
+ "toggle-bg-on": "#3d6bff",
1153
+ "toggle-bg-disabled-off": "rgba(255,255,255,0.08)",
1154
+ "toggle-bg-disabled-on": "rgba(61,107,255,0.3)",
1155
+ "tooltip-bg": "#1a1a1aeb",
1156
+ "tooltip-text": "#ffffff",
1157
+ "modal-bg": "#222222",
1158
+ "modal-border": "#2a2a2a",
1159
+ "modal-overlay-bg": "rgba(0,0,0,0.5)",
1160
+ "modal-text-title": "#ffffff",
1161
+ "modal-text-body": "#ffffff",
1162
+ "modal-info-icon": "#3d6bff",
1163
+ "modal-success-icon": "#2bc029",
1164
+ "modal-warning-icon": "#ebae16",
1165
+ "modal-error-icon": "#fb5858",
1166
+ "toast-title": "#ffffff",
1167
+ "toast-message": "#ffffffbf",
1168
+ "toast-close-icon": "#ffffffbf",
1169
+ "toast-info-bg": "#1e2634",
1170
+ "toast-info-border": "#3d6bff",
1171
+ "toast-info-icon": "#3d6bff",
1172
+ "toast-success-bg": "#1a2a1f",
1173
+ "toast-success-border": "#22c55e",
1174
+ "toast-success-icon": "#22c55e",
1175
+ "toast-warning-bg": "#2d2618",
1176
+ "toast-warning-border": "#fbbf24",
1177
+ "toast-warning-icon": "#fbbf24",
1178
+ "toast-error-bg": "#2d1818",
1179
+ "toast-error-border": "#ef4444",
1180
+ "toast-error-icon": "#ef4444",
1181
+ "radio-bg-hover": "#3d6bff14",
1182
+ "radio-bg-disabled": "#3d6bff14",
1183
+ "radio-border-off": "#ffffff40",
1184
+ "radio-border-hover": "#3d6bff",
1185
+ "radio-border-on": "#3d6bff",
1186
+ "radio-border-disabled": "#ffffff1a",
1187
+ "radio-dot-color": "#3d6bff",
1188
+ "checkbox-bg-off": "#00000000",
1189
+ "checkbox-bg-hover": "#3d6bff14",
1190
+ "checkbox-bg-on": "#3d6bff",
1191
+ "checkbox-bg-disabled": "#3d6bff14",
1192
+ "checkbox-border-off": "#ffffff40",
1193
+ "checkbox-border-hover": "#3d6bff",
1194
+ "checkbox-border-on": "#3d6bff",
1195
+ "checkbox-border-disabled": "#ffffff1a",
1196
+ "checkbox-check-color": "#ffffff",
1197
+ "dropdown-menu-bg": "#181818",
1198
+ "dropdown-menu-border": "#2a2a2a",
1199
+ "dropdown-menu-shadow": "0 4px 12px rgba(0,0,0,0.4)",
1200
+ "dropdown-item-text-default": "#ffffff",
1201
+ "dropdown-item-text-danger": "#ff5252",
1202
+ "dropdown-item-text-disabled": "#5e5e5e",
1203
+ "dropdown-item-icon-default": "#ffffff",
1204
+ "dropdown-item-icon-danger": "#ff5252",
1205
+ "dropdown-item-bg-hover": "#1f1f1f",
1206
+ "dropdown-item-bg-focus": "#1e2634",
1207
+ "dropdown-divider-color": "#2a2a2a",
1208
+ "select-list-bg": "#181818",
1209
+ "select-list-border": "#3e3e3e",
1210
+ "select-option-text-default": "#ffffff",
1211
+ "select-option-text-selected": "#3d6bff",
1212
+ "select-option-text-disabled": "#535353",
1213
+ "select-option-bg-hover": "#292929",
1214
+ "select-option-bg-selected": "#1e2634",
1215
+ "tag-neutral-bg": "#ffffff1a",
1216
+ "tag-neutral-bg-hover": "#ffffff33",
1217
+ "tag-neutral-bg-selected": "#ffffff4c",
1218
+ "tag-neutral-border": "#93939380",
1219
+ "tag-neutral-text": "#ffffff",
1220
+ "tag-gray-bg": "#2e2e2e",
1221
+ "tag-gray-bg-hover": "#3a3a3a",
1222
+ "tag-gray-bg-selected": "#454545",
1223
+ "tag-gray-border": "#383838",
1224
+ "tag-gray-text": "#969696",
1225
+ "tag-red-bg": "#d050501a",
1226
+ "tag-red-bg-hover": "#d0505033",
1227
+ "tag-red-bg-selected": "#d0505059",
1228
+ "tag-red-border": "#d0505080",
1229
+ "tag-red-text": "#d05050",
1230
+ "tag-ot-bg": "#38b92a1a",
1231
+ "tag-ot-bg-hover": "#38b92a33",
1232
+ "tag-ot-bg-selected": "#38b92a4d",
1233
+ "tag-ot-border": "#38b92a80",
1234
+ "tag-ot-text": "#38b92a",
1235
+ "tag-it-bg": "#2b9fe21a",
1236
+ "tag-it-bg-hover": "#2b9fe233",
1237
+ "tag-it-bg-selected": "#2b9fe24d",
1238
+ "tag-it-border": "#2b9fe280",
1239
+ "tag-it-text": "#2b9fe2",
1240
+ "tag-brand-bg": "#3d6bff1a",
1241
+ "tag-brand-bg-hover": "#3d6bff33",
1242
+ "tag-brand-bg-selected": "#3d6bff4c",
1243
+ "tag-brand-border": "#3d6bff80",
1244
+ "tag-brand-text": "#3d6bff",
1245
+ "tag-disabled-bg": "#2a2a2a",
1246
+ "tag-disabled-border": "#2a2a2a",
1247
+ "tag-disabled-text": "#5e5e5e",
1248
+ "input-bg-default": "#1d1d1d",
1249
+ "input-bg-hover": "#262626",
1250
+ "input-bg-focus": "#1d1d1d",
1251
+ "input-bg-error": "#351b17",
1252
+ "input-bg-disabled": "#2a2a2a",
1253
+ "input-border-default": "#3e3e3e",
1254
+ "input-border-hover": "#4c4c4c",
1255
+ "input-border-focus": "#3d6bff",
1256
+ "input-border-error": "#fb5858",
1257
+ "input-border-disabled": "#2a2a2a",
1258
+ "input-text-default": "#ffffff",
1259
+ "input-text-placeholder": "#6e6e6e",
1260
+ "input-text-disabled": "#535353"
1261
+ }, je = {
1262
+ light: I,
1263
+ dark: { ...I }
1264
+ }, Me = {
647
1265
  light: {
648
1266
  colorPrimary: "#3d6bff",
649
1267
  colorPrimaryHover: "#4c86ff",
@@ -654,569 +1272,1057 @@ ${r(t.dark)}
654
1272
  colorPrimaryHover: "#4c86ff",
655
1273
  colorPrimaryActive: "#2e54cc"
656
1274
  }
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 = () => {
1275
+ }, Ne = {
1276
+ base: ke,
1277
+ mg: je
1278
+ }, Pe = {
1279
+ base: Ae,
1280
+ mg: Me
1281
+ }, L = "__cytur_tokens__", Fe = () => {
666
1282
  if (typeof document > "u") return;
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");
671
- t(() => {
672
- Je();
673
- }, []), t(() => {
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, {
1283
+ let e = document.getElementById(L);
1284
+ e || (e = document.createElement("style"), e.id = L, document.head.appendChild(e)), e.innerHTML = Oe(F, De, Ne);
1285
+ }, R = ({ brand: e = "base", mode: t = "light", children: n }) => {
1286
+ r(() => {
1287
+ Fe();
1288
+ }, []), r(() => {
1289
+ typeof document < "u" && (document.documentElement.dataset.mode = t, document.documentElement.dataset.brand = e);
1290
+ }, [t, e]);
1291
+ let i = Pe[e][t], a = t === "dark" ? {
1292
+ colorText: "#f8fafb",
1293
+ colorTextSecondary: "#cdd3d9",
1294
+ colorTextTertiary: "#a3adb8",
1295
+ colorTextQuaternary: "#6b7b8d",
1296
+ colorBgContainer: "#1f2937",
1297
+ colorBgElevated: "#374151",
1298
+ colorBgLayout: "#121212",
1299
+ colorBorder: "#374151",
1300
+ colorBorderSecondary: "#1f2937",
1301
+ colorError: "#f87171",
1302
+ colorErrorHover: "#fca5a5",
1303
+ colorErrorActive: "#fecaca"
1304
+ } : {};
1305
+ return /* @__PURE__ */ A(g, {
678
1306
  theme: {
679
- ...B[s],
1307
+ ...P.base,
680
1308
  token: {
681
- ...B[s].token,
682
- ...o,
683
- ...r === "dark" ? {
684
- colorError: "#f87171",
685
- colorErrorHover: "#fca5a5",
686
- colorErrorActive: "#fecaca"
687
- } : {}
1309
+ ...P.base.token,
1310
+ ...i,
1311
+ ...a
688
1312
  },
689
- algorithm: r === "dark" ? M.darkAlgorithm : M.defaultAlgorithm
1313
+ algorithm: t === "dark" ? k.darkAlgorithm : k.defaultAlgorithm
690
1314
  },
691
1315
  wave: { disabled: !0 },
692
- children: i
1316
+ children: n
693
1317
  });
694
1318
  };
695
- W.displayName = "CyturProvider";
1319
+ R.displayName = "CyturProvider";
696
1320
  //#endregion
697
1321
  //#region src/theme/tokens.ts
698
- var G = (e) => `var(--cytur-${e})`, K = {
1322
+ var z = (e) => `var(--cytur-${e})`, B = {
699
1323
  label: {
700
1324
  default: {
701
1325
  bg: {
702
- solid: G("label-default-bg-solid"),
703
- subtle: G("label-default-bg-subtle"),
704
- border: G("label-default-bg-border")
1326
+ solid: z("label-default-bg-solid"),
1327
+ subtle: z("label-default-bg-subtle"),
1328
+ border: z("label-default-bg-border")
705
1329
  },
706
1330
  text: {
707
- solid: G("label-default-text-solid"),
708
- subtle: G("label-default-text-subtle"),
709
- border: G("label-default-text-border")
1331
+ solid: z("label-default-text-solid"),
1332
+ subtle: z("label-default-text-subtle"),
1333
+ border: z("label-default-text-border")
710
1334
  },
711
- border: G("label-default-border")
1335
+ border: z("label-default-border")
712
1336
  },
713
1337
  primary: {
714
1338
  bg: {
715
- solid: G("label-primary-bg-solid"),
716
- subtle: G("label-primary-bg-subtle"),
717
- border: G("label-primary-bg-border")
1339
+ solid: z("label-primary-bg-solid"),
1340
+ subtle: z("label-primary-bg-subtle"),
1341
+ border: z("label-primary-bg-border")
718
1342
  },
719
1343
  text: {
720
- solid: G("label-primary-text-solid"),
721
- subtle: G("label-primary-text-subtle"),
722
- border: G("label-primary-text-border")
1344
+ solid: z("label-primary-text-solid"),
1345
+ subtle: z("label-primary-text-subtle"),
1346
+ border: z("label-primary-text-border")
723
1347
  },
724
- border: G("label-primary-border")
1348
+ border: z("label-primary-border")
725
1349
  },
726
1350
  info: {
727
1351
  bg: {
728
- solid: G("label-info-bg-solid"),
729
- subtle: G("label-info-bg-subtle"),
730
- border: G("label-info-bg-border")
1352
+ solid: z("label-info-bg-solid"),
1353
+ subtle: z("label-info-bg-subtle"),
1354
+ border: z("label-info-bg-border")
731
1355
  },
732
1356
  text: {
733
- solid: G("label-info-text-solid"),
734
- subtle: G("label-info-text-subtle"),
735
- border: G("label-info-text-border")
1357
+ solid: z("label-info-text-solid"),
1358
+ subtle: z("label-info-text-subtle"),
1359
+ border: z("label-info-text-border")
736
1360
  },
737
- border: G("label-info-border")
1361
+ border: z("label-info-border")
738
1362
  },
739
1363
  success: {
740
1364
  bg: {
741
- solid: G("label-success-bg-solid"),
742
- subtle: G("label-success-bg-subtle"),
743
- border: G("label-success-bg-border")
1365
+ solid: z("label-success-bg-solid"),
1366
+ subtle: z("label-success-bg-subtle"),
1367
+ border: z("label-success-bg-border")
744
1368
  },
745
1369
  text: {
746
- solid: G("label-success-text-solid"),
747
- subtle: G("label-success-text-subtle"),
748
- border: G("label-success-text-border")
1370
+ solid: z("label-success-text-solid"),
1371
+ subtle: z("label-success-text-subtle"),
1372
+ border: z("label-success-text-border")
749
1373
  },
750
- border: G("label-success-border")
1374
+ border: z("label-success-border")
751
1375
  },
752
1376
  warning: {
753
1377
  bg: {
754
- solid: G("label-warning-bg-solid"),
755
- subtle: G("label-warning-bg-subtle"),
756
- border: G("label-warning-bg-border")
1378
+ solid: z("label-warning-bg-solid"),
1379
+ subtle: z("label-warning-bg-subtle"),
1380
+ border: z("label-warning-bg-border")
757
1381
  },
758
1382
  text: {
759
- solid: G("label-warning-text-solid"),
760
- subtle: G("label-warning-text-subtle"),
761
- border: G("label-warning-text-border")
1383
+ solid: z("label-warning-text-solid"),
1384
+ subtle: z("label-warning-text-subtle"),
1385
+ border: z("label-warning-text-border")
762
1386
  },
763
- border: G("label-warning-border")
1387
+ border: z("label-warning-border")
764
1388
  },
765
1389
  danger: {
766
1390
  bg: {
767
- solid: G("label-danger-bg-solid"),
768
- subtle: G("label-danger-bg-subtle"),
769
- border: G("label-danger-bg-border")
1391
+ solid: z("label-danger-bg-solid"),
1392
+ subtle: z("label-danger-bg-subtle"),
1393
+ border: z("label-danger-bg-border")
770
1394
  },
771
1395
  text: {
772
- solid: G("label-danger-text-solid"),
773
- subtle: G("label-danger-text-subtle"),
774
- border: G("label-danger-text-border")
1396
+ solid: z("label-danger-text-solid"),
1397
+ subtle: z("label-danger-text-subtle"),
1398
+ border: z("label-danger-text-border")
775
1399
  },
776
- border: G("label-danger-border")
1400
+ border: z("label-danger-border")
777
1401
  }
778
1402
  },
779
1403
  tag: {
780
- default: {
781
- bg: {
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")
1404
+ radius: z("tag-radius"),
1405
+ size: {
1406
+ sm: {
1407
+ height: z("tag-sm-height"),
1408
+ paddingX: z("tag-sm-padding-x"),
1409
+ gap: z("tag-sm-gap"),
1410
+ icon: z("tag-sm-icon-size"),
1411
+ fontSize: z("tag-sm-font-size"),
1412
+ lineHeight: z("tag-sm-line-height")
788
1413
  },
789
- text: {
790
- solid: G("tag-default-text-solid"),
791
- subtle: G("tag-default-text-subtle"),
792
- border: G("tag-default-text-border")
1414
+ md: {
1415
+ height: z("tag-md-height"),
1416
+ paddingX: z("tag-md-padding-x"),
1417
+ gap: z("tag-md-gap"),
1418
+ icon: z("tag-md-icon-size"),
1419
+ fontSize: z("tag-md-font-size"),
1420
+ lineHeight: z("tag-md-line-height")
793
1421
  },
794
- border: G("tag-default-border")
1422
+ lg: {
1423
+ height: z("tag-lg-height"),
1424
+ paddingX: z("tag-lg-padding-x"),
1425
+ gap: z("tag-lg-gap"),
1426
+ icon: z("tag-lg-icon-size"),
1427
+ fontSize: z("tag-lg-font-size"),
1428
+ lineHeight: z("tag-lg-line-height")
1429
+ }
795
1430
  },
796
- primary: {
1431
+ neutral: {
797
1432
  bg: {
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")
804
- },
805
- text: {
806
- solid: G("tag-primary-text-solid"),
807
- subtle: G("tag-primary-text-subtle"),
808
- border: G("tag-primary-text-border")
1433
+ default: z("tag-neutral-bg"),
1434
+ hover: z("tag-neutral-bg-hover"),
1435
+ selected: z("tag-neutral-bg-selected")
809
1436
  },
810
- border: G("tag-primary-border")
1437
+ border: z("tag-neutral-border"),
1438
+ text: z("tag-neutral-text")
811
1439
  },
812
- success: {
1440
+ gray: {
813
1441
  bg: {
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")
820
- },
821
- text: {
822
- solid: G("tag-success-text-solid"),
823
- subtle: G("tag-success-text-subtle"),
824
- border: G("tag-success-text-border")
1442
+ default: z("tag-gray-bg"),
1443
+ hover: z("tag-gray-bg-hover"),
1444
+ selected: z("tag-gray-bg-selected")
825
1445
  },
826
- border: G("tag-success-border")
1446
+ border: z("tag-gray-border"),
1447
+ text: z("tag-gray-text")
827
1448
  },
828
- warning: {
1449
+ red: {
829
1450
  bg: {
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")
1451
+ default: z("tag-red-bg"),
1452
+ hover: z("tag-red-bg-hover"),
1453
+ selected: z("tag-red-bg-selected")
836
1454
  },
837
- text: {
838
- solid: G("tag-warning-text-solid"),
839
- subtle: G("tag-warning-text-subtle"),
840
- border: G("tag-warning-text-border")
1455
+ border: z("tag-red-border"),
1456
+ text: z("tag-red-text")
1457
+ },
1458
+ ot: {
1459
+ bg: {
1460
+ default: z("tag-ot-bg"),
1461
+ hover: z("tag-ot-bg-hover"),
1462
+ selected: z("tag-ot-bg-selected")
841
1463
  },
842
- border: G("tag-warning-border")
1464
+ border: z("tag-ot-border"),
1465
+ text: z("tag-ot-text")
843
1466
  },
844
- danger: {
1467
+ it: {
845
1468
  bg: {
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")
1469
+ default: z("tag-it-bg"),
1470
+ hover: z("tag-it-bg-hover"),
1471
+ selected: z("tag-it-bg-selected")
852
1472
  },
853
- text: {
854
- solid: G("tag-danger-text-solid"),
855
- subtle: G("tag-danger-text-subtle"),
856
- border: G("tag-danger-text-border")
1473
+ border: z("tag-it-border"),
1474
+ text: z("tag-it-text")
1475
+ },
1476
+ brand: {
1477
+ bg: {
1478
+ default: z("tag-brand-bg"),
1479
+ hover: z("tag-brand-bg-hover"),
1480
+ selected: z("tag-brand-bg-selected")
857
1481
  },
858
- border: G("tag-danger-border")
1482
+ border: z("tag-brand-border"),
1483
+ text: z("tag-brand-text")
1484
+ },
1485
+ disabled: {
1486
+ bg: z("tag-disabled-bg"),
1487
+ border: z("tag-disabled-border"),
1488
+ text: z("tag-disabled-text")
859
1489
  }
860
1490
  },
861
1491
  action: {
862
1492
  primary: {
863
- default: G("action-primary"),
864
- hover: G("action-primary-hover"),
865
- active: G("action-primary-active")
1493
+ default: z("action-primary"),
1494
+ hover: z("action-primary-hover"),
1495
+ active: z("action-primary-active")
866
1496
  },
867
1497
  secondary: {
868
- default: G("action-secondary"),
869
- hover: G("action-secondary-hover"),
870
- active: G("action-secondary-active")
1498
+ default: z("action-secondary"),
1499
+ hover: z("action-secondary-hover"),
1500
+ active: z("action-secondary-active")
871
1501
  },
872
1502
  danger: {
873
- default: G("action-danger"),
874
- hover: G("action-danger-hover"),
875
- active: G("action-danger-active")
1503
+ default: z("action-danger"),
1504
+ hover: z("action-danger-hover"),
1505
+ active: z("action-danger-active")
876
1506
  }
877
1507
  },
878
1508
  bg: {
879
- surface: G("bg-surface"),
880
- subtle: G("bg-subtle"),
881
- secondarySubtle: G("bg-secondary-subtle"),
882
- dangerSubtle: G("bg-danger-subtle")
1509
+ surface: z("bg-surface"),
1510
+ subtle: z("bg-subtle"),
1511
+ secondarySubtle: z("bg-secondary-subtle"),
1512
+ dangerSubtle: z("bg-danger-subtle"),
1513
+ page: z("bg-page"),
1514
+ modal: z("bg-modal"),
1515
+ neutral: {
1516
+ default: z("bg-neutral-default"),
1517
+ secondary: z("bg-neutral-secondary"),
1518
+ tertiary: z("bg-neutral-tertiary")
1519
+ },
1520
+ table: {
1521
+ header: z("bg-table-header"),
1522
+ row: z("bg-table-row"),
1523
+ rowHover: z("bg-table-row-hover")
1524
+ },
1525
+ brand: {
1526
+ default: z("bg-brand-default"),
1527
+ hover: z("bg-brand-hover"),
1528
+ secondary: z("bg-brand-secondary")
1529
+ },
1530
+ alarm: {
1531
+ default: z("bg-alarm-default"),
1532
+ hover: z("bg-alarm-hover")
1533
+ },
1534
+ status: {
1535
+ error: z("bg-status-error"),
1536
+ errorTint: z("bg-status-error-tint"),
1537
+ info: z("bg-status-info"),
1538
+ success: z("bg-status-success"),
1539
+ warning: z("bg-status-warning")
1540
+ },
1541
+ threat: {
1542
+ default: z("bg-threat-default"),
1543
+ alarm: z("bg-threat-alarm"),
1544
+ caution: z("bg-threat-caution"),
1545
+ emergency: z("bg-threat-emergency"),
1546
+ warning: z("bg-threat-warning")
1547
+ }
883
1548
  },
884
1549
  text: {
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")
1550
+ primary: z("text-primary"),
1551
+ secondary: z("text-secondary"),
1552
+ secondaryAction: z("text-secondary-action"),
1553
+ primaryAction: z("text-primary-action"),
1554
+ muted: z("text-muted"),
1555
+ danger: z("text-danger"),
1556
+ inverse: z("text-inverse"),
1557
+ disabled: z("text-disabled"),
1558
+ tertiary: z("text-tertiary"),
1559
+ mutedStrong: z("text-muted-strong"),
1560
+ placeholder: z("text-placeholder"),
1561
+ onBrand: z("text-on-brand"),
1562
+ brand: {
1563
+ default: z("text-brand-default"),
1564
+ hover: z("text-brand-hover")
1565
+ },
1566
+ status: {
1567
+ error: z("text-status-error"),
1568
+ info: z("text-status-info"),
1569
+ success: z("text-status-success"),
1570
+ warning: z("text-status-warning")
1571
+ },
1572
+ threat: {
1573
+ default: z("text-threat-default"),
1574
+ alarm: z("text-threat-alarm"),
1575
+ caution: z("text-threat-caution"),
1576
+ emergency: z("text-threat-emergency"),
1577
+ warning: z("text-threat-warning")
1578
+ },
1579
+ purpose: {
1580
+ normal: z("text-purpose-normal"),
1581
+ expiring: z("text-purpose-expiring"),
1582
+ expired: z("text-purpose-expired")
1583
+ }
893
1584
  },
894
1585
  border: {
895
- default: G("border-default"),
896
- secondary: G("border-secondary"),
897
- danger: G("border-danger"),
898
- focus: G("border-focus")
1586
+ default: z("border-default"),
1587
+ secondary: z("border-secondary"),
1588
+ danger: z("border-danger"),
1589
+ focus: z("border-focus"),
1590
+ defaultHover: z("border-default-hover"),
1591
+ strong: z("border-strong"),
1592
+ table: z("border-table"),
1593
+ status: {
1594
+ error: z("border-status-error"),
1595
+ success: z("border-status-success"),
1596
+ warning: z("border-status-warning")
1597
+ },
1598
+ topology: {
1599
+ connected: z("border-topology-connected"),
1600
+ disconnected: z("border-topology-disconnected"),
1601
+ unknown: z("border-topology-unknown")
1602
+ }
899
1603
  },
900
1604
  disabled: {
901
- bg: G("disabled-bg"),
902
- border: G("disabled-border"),
903
- text: G("disabled-text")
1605
+ bg: z("disabled-bg"),
1606
+ border: z("disabled-border"),
1607
+ text: z("disabled-text")
904
1608
  },
905
1609
  button: {
906
1610
  base: {
907
- borderWidth: G("button-base-border-width"),
908
- fontWeight: G("button-base-font-weight"),
909
- transition: G("button-base-transition")
1611
+ borderWidth: z("button-base-border-width"),
1612
+ fontWeight: z("button-base-font-weight"),
1613
+ transition: z("button-base-transition")
910
1614
  },
911
1615
  primary: {
912
1616
  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")
1617
+ default: z("button-primary-bg-default"),
1618
+ hover: z("button-primary-bg-hover"),
1619
+ active: z("button-primary-bg-active"),
1620
+ focus: z("button-primary-bg-focus"),
1621
+ disabled: z("button-primary-bg-disabled")
918
1622
  },
919
1623
  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")
1624
+ default: z("button-primary-text-default"),
1625
+ hover: z("button-primary-text-hover"),
1626
+ active: z("button-primary-text-active"),
1627
+ focus: z("button-primary-text-focus"),
1628
+ disabled: z("button-primary-text-disabled")
925
1629
  },
926
1630
  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")
1631
+ default: z("button-primary-border-default"),
1632
+ hover: z("button-primary-border-hover"),
1633
+ active: z("button-primary-border-active"),
1634
+ focus: z("button-primary-border-focus"),
1635
+ disabled: z("button-primary-border-disabled")
932
1636
  }
933
1637
  },
934
1638
  secondary: {
935
1639
  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")
1640
+ default: z("button-secondary-bg-default"),
1641
+ hover: z("button-secondary-bg-hover"),
1642
+ active: z("button-secondary-bg-active"),
1643
+ focus: z("button-secondary-bg-focus"),
1644
+ disabled: z("button-secondary-bg-disabled")
941
1645
  },
942
1646
  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")
1647
+ default: z("button-secondary-text-default"),
1648
+ hover: z("button-secondary-text-hover"),
1649
+ active: z("button-secondary-text-active"),
1650
+ focus: z("button-secondary-text-focus"),
1651
+ disabled: z("button-secondary-text-disabled")
948
1652
  },
949
1653
  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")
1654
+ default: z("button-secondary-border-default"),
1655
+ hover: z("button-secondary-border-hover"),
1656
+ active: z("button-secondary-border-active"),
1657
+ focus: z("button-secondary-border-focus"),
1658
+ disabled: z("button-secondary-border-disabled")
955
1659
  }
956
1660
  },
957
1661
  ghost: {
958
1662
  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")
1663
+ default: z("button-ghost-bg-default"),
1664
+ hover: z("button-ghost-bg-hover"),
1665
+ active: z("button-ghost-bg-active"),
1666
+ focus: z("button-ghost-bg-focus"),
1667
+ disabled: z("button-ghost-bg-disabled")
964
1668
  },
965
1669
  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")
1670
+ default: z("button-ghost-text-default"),
1671
+ hover: z("button-ghost-text-hover"),
1672
+ active: z("button-ghost-text-active"),
1673
+ focus: z("button-ghost-text-focus"),
1674
+ disabled: z("button-ghost-text-disabled")
971
1675
  },
972
1676
  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")
1677
+ default: z("button-ghost-border-default"),
1678
+ hover: z("button-ghost-border-hover"),
1679
+ active: z("button-ghost-border-active"),
1680
+ focus: z("button-ghost-border-focus"),
1681
+ disabled: z("button-ghost-border-disabled")
978
1682
  }
979
1683
  },
980
1684
  danger: {
981
1685
  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")
1686
+ default: z("button-danger-bg-default"),
1687
+ hover: z("button-danger-bg-hover"),
1688
+ active: z("button-danger-bg-active"),
1689
+ focus: z("button-danger-bg-focus"),
1690
+ disabled: z("button-danger-bg-disabled")
987
1691
  },
988
1692
  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")
1693
+ default: z("button-danger-text-default"),
1694
+ hover: z("button-danger-text-hover"),
1695
+ active: z("button-danger-text-active"),
1696
+ focus: z("button-danger-text-focus"),
1697
+ disabled: z("button-danger-text-disabled")
994
1698
  },
995
1699
  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")
1700
+ default: z("button-danger-border-default"),
1701
+ hover: z("button-danger-border-hover"),
1702
+ active: z("button-danger-border-active"),
1703
+ focus: z("button-danger-border-focus"),
1704
+ disabled: z("button-danger-border-disabled")
1001
1705
  }
1002
1706
  },
1003
1707
  tertiary: {
1004
1708
  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")
1709
+ default: z("button-tertiary-bg-default"),
1710
+ hover: z("button-tertiary-bg-hover"),
1711
+ active: z("button-tertiary-bg-active"),
1712
+ focus: z("button-tertiary-bg-focus"),
1713
+ disabled: z("button-tertiary-bg-disabled")
1010
1714
  },
1011
1715
  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")
1716
+ default: z("button-tertiary-text-default"),
1717
+ hover: z("button-tertiary-text-hover"),
1718
+ active: z("button-tertiary-text-active"),
1719
+ focus: z("button-tertiary-text-focus"),
1720
+ disabled: z("button-tertiary-text-disabled")
1017
1721
  },
1018
1722
  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")
1723
+ default: z("button-tertiary-border-default"),
1724
+ hover: z("button-tertiary-border-hover"),
1725
+ active: z("button-tertiary-border-active"),
1726
+ focus: z("button-tertiary-border-focus"),
1727
+ disabled: z("button-tertiary-border-disabled")
1024
1728
  }
1025
1729
  },
1026
1730
  softDanger: {
1027
1731
  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")
1732
+ default: z("button-softdanger-bg-default"),
1733
+ hover: z("button-softdanger-bg-hover"),
1734
+ active: z("button-softdanger-bg-active"),
1735
+ focus: z("button-softdanger-bg-focus"),
1736
+ disabled: z("button-softdanger-bg-disabled")
1033
1737
  },
1034
1738
  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")
1739
+ default: z("button-softdanger-text-default"),
1740
+ hover: z("button-softdanger-text-hover"),
1741
+ active: z("button-softdanger-text-active"),
1742
+ focus: z("button-softdanger-text-focus"),
1743
+ disabled: z("button-softdanger-text-disabled")
1040
1744
  },
1041
1745
  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")
1746
+ default: z("button-softdanger-border-default"),
1747
+ hover: z("button-softdanger-border-hover"),
1748
+ active: z("button-softdanger-border-active"),
1749
+ focus: z("button-softdanger-border-focus"),
1750
+ disabled: z("button-softdanger-border-disabled")
1047
1751
  }
1048
1752
  },
1049
1753
  size: {
1050
1754
  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")
1755
+ height: z("button-size-sm-height"),
1756
+ paddingX: z("button-size-sm-padding-x"),
1757
+ paddingY: z("button-size-sm-padding-y"),
1758
+ gap: z("button-size-sm-gap"),
1759
+ radius: z("button-size-sm-radius"),
1760
+ icon: z("button-size-sm-icon")
1057
1761
  },
1058
1762
  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")
1763
+ height: z("button-size-md-height"),
1764
+ paddingX: z("button-size-md-padding-x"),
1765
+ paddingY: z("button-size-md-padding-y"),
1766
+ gap: z("button-size-md-gap"),
1767
+ radius: z("button-size-md-radius"),
1768
+ icon: z("button-size-md-icon")
1065
1769
  },
1066
1770
  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")
1771
+ height: z("button-size-lg-height"),
1772
+ paddingX: z("button-size-lg-padding-x"),
1773
+ paddingY: z("button-size-lg-padding-y"),
1774
+ gap: z("button-size-lg-gap"),
1775
+ radius: z("button-size-lg-radius"),
1776
+ icon: z("button-size-lg-icon")
1073
1777
  }
1074
1778
  }
1075
1779
  },
1076
1780
  iconButton: {
1077
- radius: G("iconbutton-radius"),
1781
+ radius: z("iconbutton-radius"),
1078
1782
  size: {
1079
1783
  sm: {
1080
- box: G("iconbutton-size-sm"),
1081
- icon: G("iconbutton-icon-sm")
1784
+ box: z("iconbutton-size-sm"),
1785
+ icon: z("iconbutton-icon-sm")
1082
1786
  },
1083
1787
  md: {
1084
- box: G("iconbutton-size-md"),
1085
- icon: G("iconbutton-icon-md")
1788
+ box: z("iconbutton-size-md"),
1789
+ icon: z("iconbutton-icon-md")
1086
1790
  },
1087
1791
  lg: {
1088
- box: G("iconbutton-size-lg"),
1089
- icon: G("iconbutton-icon-lg")
1792
+ box: z("iconbutton-size-lg"),
1793
+ icon: z("iconbutton-icon-lg")
1090
1794
  }
1091
1795
  },
1092
1796
  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")
1797
+ default: z("iconbutton-bg-default"),
1798
+ hover: z("iconbutton-bg-hover"),
1799
+ active: z("iconbutton-bg-active"),
1800
+ disabled: z("iconbutton-bg-disabled")
1097
1801
  },
1098
1802
  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")
1803
+ default: z("iconbutton-icon-default"),
1804
+ hover: z("iconbutton-icon-hover"),
1805
+ active: z("iconbutton-icon-active"),
1806
+ disabled: z("iconbutton-icon-disabled")
1807
+ }
1808
+ },
1809
+ input: {
1810
+ radius: z("input-radius"),
1811
+ size: {
1812
+ sm: {
1813
+ height: z("input-sm-height"),
1814
+ paddingX: z("input-sm-padding-x"),
1815
+ gap: z("input-sm-gap"),
1816
+ icon: z("input-sm-icon"),
1817
+ fontSize: z("input-sm-font-size")
1818
+ },
1819
+ md: {
1820
+ height: z("input-md-height"),
1821
+ paddingX: z("input-md-padding-x"),
1822
+ gap: z("input-md-gap"),
1823
+ icon: z("input-md-icon"),
1824
+ fontSize: z("input-md-font-size")
1825
+ },
1826
+ lg: {
1827
+ height: z("input-lg-height"),
1828
+ paddingX: z("input-lg-padding-x"),
1829
+ gap: z("input-lg-gap"),
1830
+ icon: z("input-lg-icon"),
1831
+ fontSize: z("input-lg-font-size")
1832
+ }
1833
+ },
1834
+ bg: {
1835
+ default: z("input-bg-default"),
1836
+ hover: z("input-bg-hover"),
1837
+ focus: z("input-bg-focus"),
1838
+ error: z("input-bg-error"),
1839
+ disabled: z("input-bg-disabled")
1840
+ },
1841
+ border: {
1842
+ default: z("input-border-default"),
1843
+ hover: z("input-border-hover"),
1844
+ focus: z("input-border-focus"),
1845
+ error: z("input-border-error"),
1846
+ disabled: z("input-border-disabled")
1847
+ },
1848
+ text: {
1849
+ default: z("input-text-default"),
1850
+ placeholder: z("input-text-placeholder"),
1851
+ disabled: z("input-text-disabled")
1852
+ }
1853
+ },
1854
+ scrollbar: { thumb: {
1855
+ width: z("scrollbar-thumb-width"),
1856
+ radius: z("scrollbar-thumb-radius"),
1857
+ default: z("scrollbar-thumb-default"),
1858
+ hover: z("scrollbar-thumb-hover"),
1859
+ active: z("scrollbar-thumb-active")
1860
+ } },
1861
+ toggle: {
1862
+ width: z("toggle-width"),
1863
+ height: z("toggle-height"),
1864
+ thumb: {
1865
+ size: z("toggle-thumb-size"),
1866
+ color: z("toggle-thumb-color"),
1867
+ disabled: z("toggle-thumb-disabled")
1868
+ },
1869
+ bg: {
1870
+ off: z("toggle-bg-off"),
1871
+ on: z("toggle-bg-on"),
1872
+ disabledOff: z("toggle-bg-disabled-off"),
1873
+ disabledOn: z("toggle-bg-disabled-on")
1874
+ }
1875
+ },
1876
+ tooltip: {
1877
+ bg: z("tooltip-bg"),
1878
+ text: z("tooltip-text"),
1879
+ radius: z("tooltip-radius"),
1880
+ paddingX: z("tooltip-padding-x"),
1881
+ paddingY: z("tooltip-padding-y"),
1882
+ fontSize: z("tooltip-font-size"),
1883
+ arrowSize: z("tooltip-arrow-size")
1884
+ },
1885
+ modal: {
1886
+ bg: z("modal-bg"),
1887
+ border: z("modal-border"),
1888
+ overlayBg: z("modal-overlay-bg"),
1889
+ paddingX: z("modal-padding-x"),
1890
+ paddingY: z("modal-padding-y"),
1891
+ headerGap: z("modal-header-gap"),
1892
+ radius: z("modal-radius"),
1893
+ titleText: z("modal-text-title"),
1894
+ bodyText: z("modal-text-body"),
1895
+ size: {
1896
+ sm: z("modal-sm-width"),
1897
+ md: z("modal-md-width"),
1898
+ lg: z("modal-lg-width")
1899
+ },
1900
+ info: { icon: z("modal-info-icon") },
1901
+ success: { icon: z("modal-success-icon") },
1902
+ warning: { icon: z("modal-warning-icon") },
1903
+ error: { icon: z("modal-error-icon") }
1904
+ },
1905
+ toast: {
1906
+ width: z("toast-width"),
1907
+ padding: z("toast-padding"),
1908
+ gap: z("toast-gap"),
1909
+ radius: z("toast-radius"),
1910
+ iconSize: z("toast-icon-size"),
1911
+ title: z("toast-title"),
1912
+ message: z("toast-message"),
1913
+ closeIcon: z("toast-close-icon"),
1914
+ info: {
1915
+ bg: z("toast-info-bg"),
1916
+ border: z("toast-info-border"),
1917
+ icon: z("toast-info-icon")
1918
+ },
1919
+ success: {
1920
+ bg: z("toast-success-bg"),
1921
+ border: z("toast-success-border"),
1922
+ icon: z("toast-success-icon")
1923
+ },
1924
+ warning: {
1925
+ bg: z("toast-warning-bg"),
1926
+ border: z("toast-warning-border"),
1927
+ icon: z("toast-warning-icon")
1928
+ },
1929
+ error: {
1930
+ bg: z("toast-error-bg"),
1931
+ border: z("toast-error-border"),
1932
+ icon: z("toast-error-icon")
1933
+ }
1934
+ },
1935
+ radio: {
1936
+ size: z("radio-size"),
1937
+ gap: z("radio-gap"),
1938
+ dot: {
1939
+ size: z("radio-dot-size"),
1940
+ color: z("radio-dot-color")
1941
+ },
1942
+ bg: {
1943
+ hover: z("radio-bg-hover"),
1944
+ disabled: z("radio-bg-disabled")
1945
+ },
1946
+ border: {
1947
+ off: z("radio-border-off"),
1948
+ hover: z("radio-border-hover"),
1949
+ on: z("radio-border-on"),
1950
+ disabled: z("radio-border-disabled")
1951
+ }
1952
+ },
1953
+ checkbox: {
1954
+ size: z("checkbox-size"),
1955
+ radius: z("checkbox-radius"),
1956
+ gap: z("checkbox-gap"),
1957
+ bg: {
1958
+ off: z("checkbox-bg-off"),
1959
+ hover: z("checkbox-bg-hover"),
1960
+ on: z("checkbox-bg-on"),
1961
+ disabled: z("checkbox-bg-disabled")
1962
+ },
1963
+ border: {
1964
+ off: z("checkbox-border-off"),
1965
+ hover: z("checkbox-border-hover"),
1966
+ on: z("checkbox-border-on"),
1967
+ disabled: z("checkbox-border-disabled")
1968
+ },
1969
+ check: { color: z("checkbox-check-color") }
1970
+ },
1971
+ dropdown: {
1972
+ menu: {
1973
+ bg: z("dropdown-menu-bg"),
1974
+ border: z("dropdown-menu-border"),
1975
+ radius: z("dropdown-menu-radius"),
1976
+ padding: z("dropdown-menu-padding"),
1977
+ shadow: z("dropdown-menu-shadow")
1978
+ },
1979
+ item: {
1980
+ size: {
1981
+ sm: {
1982
+ height: z("dropdown-sm-height"),
1983
+ paddingX: z("dropdown-sm-padding-x"),
1984
+ gap: z("dropdown-sm-gap"),
1985
+ radius: z("dropdown-sm-radius"),
1986
+ icon: z("dropdown-sm-icon-size")
1987
+ },
1988
+ md: {
1989
+ height: z("dropdown-md-height"),
1990
+ paddingX: z("dropdown-md-padding-x"),
1991
+ gap: z("dropdown-md-gap"),
1992
+ radius: z("dropdown-md-radius"),
1993
+ icon: z("dropdown-md-icon-size")
1994
+ },
1995
+ lg: {
1996
+ height: z("dropdown-lg-height"),
1997
+ paddingX: z("dropdown-lg-padding-x"),
1998
+ gap: z("dropdown-lg-gap"),
1999
+ radius: z("dropdown-lg-radius"),
2000
+ icon: z("dropdown-lg-icon-size")
2001
+ }
2002
+ },
2003
+ text: {
2004
+ default: z("dropdown-item-text-default"),
2005
+ danger: z("dropdown-item-text-danger"),
2006
+ disabled: z("dropdown-item-text-disabled")
2007
+ },
2008
+ icon: {
2009
+ default: z("dropdown-item-icon-default"),
2010
+ danger: z("dropdown-item-icon-danger")
2011
+ },
2012
+ bg: {
2013
+ hover: z("dropdown-item-bg-hover"),
2014
+ focus: z("dropdown-item-bg-focus")
2015
+ }
2016
+ },
2017
+ divider: {
2018
+ color: z("dropdown-divider-color"),
2019
+ thickness: z("dropdown-divider-thickness"),
2020
+ marginY: z("dropdown-divider-margin-y")
2021
+ }
2022
+ },
2023
+ select: {
2024
+ list: {
2025
+ bg: z("select-list-bg"),
2026
+ border: z("select-list-border")
2027
+ },
2028
+ option: {
2029
+ bg: {
2030
+ hover: z("select-option-bg-hover"),
2031
+ selected: z("select-option-bg-selected")
2032
+ },
2033
+ text: {
2034
+ default: z("select-option-text-default"),
2035
+ selected: z("select-option-text-selected"),
2036
+ disabled: z("select-option-text-disabled")
2037
+ }
1103
2038
  }
1104
2039
  },
1105
2040
  radius: {
1106
- 4: G("radius-4"),
1107
- 6: G("radius-6"),
1108
- 8: G("radius-8")
2041
+ 4: z("radius-4"),
2042
+ 6: z("radius-6"),
2043
+ 8: z("radius-8")
1109
2044
  },
1110
2045
  typography: {
1111
2046
  heading: {
1112
2047
  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")
2048
+ fontFamily: z("font-family"),
2049
+ fontWeight: z("font-weight-bold"),
2050
+ fontSize: z("font-size-xl"),
2051
+ lineHeight: z("line-height-32"),
2052
+ letterSpacing: z("letter-spacing-normal")
2053
+ },
2054
+ lg: {
2055
+ fontFamily: z("font-family"),
2056
+ fontWeight: z("font-weight-bold"),
2057
+ fontSize: z("font-size-lg"),
2058
+ lineHeight: z("line-height-28"),
2059
+ letterSpacing: z("letter-spacing-normal")
1118
2060
  },
1119
2061
  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")
2062
+ fontFamily: z("font-family"),
2063
+ fontWeight: z("font-weight-bold"),
2064
+ fontSize: z("font-size-md"),
2065
+ lineHeight: z("line-height-24"),
2066
+ letterSpacing: z("letter-spacing-normal")
2067
+ },
2068
+ sm: {
2069
+ fontFamily: z("font-family"),
2070
+ fontWeight: z("font-weight-bold"),
2071
+ fontSize: z("font-size-sm"),
2072
+ lineHeight: z("line-height-20"),
2073
+ letterSpacing: z("letter-spacing-normal")
1125
2074
  }
1126
2075
  },
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: {
2076
+ body: {
2077
+ lg: {
2078
+ fontFamily: z("font-family"),
2079
+ fontWeight: z("font-weight-regular"),
2080
+ fontSize: z("font-size-md"),
2081
+ lineHeight: z("line-height-24"),
2082
+ letterSpacing: z("letter-spacing-normal")
2083
+ },
2084
+ md: {
2085
+ fontFamily: z("font-family"),
2086
+ fontWeight: z("font-weight-regular"),
2087
+ fontSize: z("font-size-sm"),
2088
+ lineHeight: z("line-height-20"),
2089
+ letterSpacing: z("letter-spacing-normal")
2090
+ },
1142
2091
  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")
2092
+ fontFamily: z("font-family"),
2093
+ fontWeight: z("font-weight-regular"),
2094
+ fontSize: z("font-size-xs"),
2095
+ lineHeight: z("line-height-18"),
2096
+ letterSpacing: z("letter-spacing-normal")
2097
+ },
2098
+ lgBold: {
2099
+ fontFamily: z("font-family"),
2100
+ fontWeight: z("font-weight-bold"),
2101
+ fontSize: z("font-size-md"),
2102
+ lineHeight: z("line-height-24"),
2103
+ letterSpacing: z("letter-spacing-normal")
2104
+ },
2105
+ mdBold: {
2106
+ fontFamily: z("font-family"),
2107
+ fontWeight: z("font-weight-bold"),
2108
+ fontSize: z("font-size-sm"),
2109
+ lineHeight: z("line-height-20"),
2110
+ letterSpacing: z("letter-spacing-normal")
2111
+ },
2112
+ smBold: {
2113
+ fontFamily: z("font-family"),
2114
+ fontWeight: z("font-weight-bold"),
2115
+ fontSize: z("font-size-xs"),
2116
+ lineHeight: z("line-height-18"),
2117
+ letterSpacing: z("letter-spacing-normal")
2118
+ }
2119
+ },
2120
+ label: {
2121
+ lg: {
2122
+ fontFamily: z("font-family"),
2123
+ fontWeight: z("font-weight-medium"),
2124
+ fontSize: z("font-size-md"),
2125
+ lineHeight: z("line-height-24"),
2126
+ letterSpacing: z("letter-spacing-normal")
1148
2127
  },
1149
2128
  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")
2129
+ fontFamily: z("font-family"),
2130
+ fontWeight: z("font-weight-medium"),
2131
+ fontSize: z("font-size-sm"),
2132
+ lineHeight: z("line-height-18"),
2133
+ letterSpacing: z("letter-spacing-normal")
1155
2134
  },
2135
+ sm: {
2136
+ fontFamily: z("font-family"),
2137
+ fontWeight: z("font-weight-medium"),
2138
+ fontSize: z("font-size-xs"),
2139
+ lineHeight: z("line-height-16"),
2140
+ letterSpacing: z("letter-spacing-normal")
2141
+ }
2142
+ },
2143
+ button: {
1156
2144
  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")
2145
+ fontFamily: z("font-family"),
2146
+ fontWeight: z("font-weight-bold"),
2147
+ fontSize: z("font-size-md"),
2148
+ lineHeight: z("line-height-24"),
2149
+ letterSpacing: z("letter-spacing-normal")
2150
+ },
2151
+ md: {
2152
+ fontFamily: z("font-family"),
2153
+ fontWeight: z("font-weight-bold"),
2154
+ fontSize: z("font-size-sm"),
2155
+ lineHeight: z("line-height-20"),
2156
+ letterSpacing: z("letter-spacing-normal")
2157
+ },
2158
+ sm: {
2159
+ fontFamily: z("font-family"),
2160
+ fontWeight: z("font-weight-bold"),
2161
+ fontSize: z("font-size-xs"),
2162
+ lineHeight: z("line-height-16"),
2163
+ letterSpacing: z("letter-spacing-normal")
1162
2164
  }
2165
+ },
2166
+ caption: {
2167
+ fontFamily: z("font-family"),
2168
+ fontWeight: z("font-weight-regular"),
2169
+ fontSize: z("font-size-2xs"),
2170
+ lineHeight: z("line-height-16"),
2171
+ letterSpacing: z("letter-spacing-normal")
2172
+ },
2173
+ overline: {
2174
+ fontFamily: z("font-family"),
2175
+ fontWeight: z("font-weight-semibold"),
2176
+ fontSize: z("font-size-xs"),
2177
+ lineHeight: z("line-height-16"),
2178
+ letterSpacing: z("letter-spacing-wide"),
2179
+ textTransform: "uppercase"
2180
+ },
2181
+ tooltip: {
2182
+ fontFamily: z("font-family"),
2183
+ fontWeight: z("font-weight-medium"),
2184
+ fontSize: z("font-size-xs"),
2185
+ lineHeight: z("line-height-16"),
2186
+ letterSpacing: z("letter-spacing-normal")
1163
2187
  }
1164
2188
  },
1165
2189
  font: {
1166
2190
  size: {
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")
2191
+ "2xs": z("font-size-2xs"),
2192
+ xs: z("font-size-xs"),
2193
+ sm: z("font-size-sm"),
2194
+ md: z("font-size-md"),
2195
+ lg: z("font-size-lg"),
2196
+ xl: z("font-size-xl")
1172
2197
  },
1173
2198
  weight: {
1174
- regular: G("font-weight-regular"),
1175
- medium: G("font-weight-medium"),
1176
- semibold: G("font-weight-semibold"),
1177
- bold: G("font-weight-bold")
2199
+ regular: z("font-weight-regular"),
2200
+ medium: z("font-weight-medium"),
2201
+ semibold: z("font-weight-semibold"),
2202
+ bold: z("font-weight-bold")
1178
2203
  },
1179
2204
  lineHeight: {
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")
2205
+ 16: z("line-height-16"),
2206
+ 18: z("line-height-18"),
2207
+ 20: z("line-height-20"),
2208
+ 22: z("line-height-22"),
2209
+ 24: z("line-height-24"),
2210
+ 28: z("line-height-28"),
2211
+ 32: z("line-height-32")
1187
2212
  },
1188
2213
  letterSpacing: {
1189
- tighter: G("letter-spacing-tighter"),
1190
- tight: G("letter-spacing-tight"),
1191
- normal: G("letter-spacing-normal"),
1192
- wide: G("letter-spacing-wide")
2214
+ tighter: z("letter-spacing-tighter"),
2215
+ tight: z("letter-spacing-tight"),
2216
+ normal: z("letter-spacing-normal"),
2217
+ wide: z("letter-spacing-wide")
1193
2218
  }
1194
2219
  },
1195
2220
  color: {
1196
2221
  gray: {
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")
2222
+ 50: z("color-gray-50"),
2223
+ 100: z("color-gray-100"),
2224
+ 200: z("color-gray-200"),
2225
+ 300: z("color-gray-300"),
2226
+ 400: z("color-gray-400"),
2227
+ 500: z("color-gray-500"),
2228
+ 600: z("color-gray-600"),
2229
+ 700: z("color-gray-700"),
2230
+ 800: z("color-gray-800"),
2231
+ 900: z("color-gray-900")
1207
2232
  },
1208
2233
  yellow: {
1209
- 50: G("color-yellow-50"),
1210
- 500: G("color-yellow-500")
2234
+ 50: z("color-yellow-50"),
2235
+ 500: z("color-yellow-500"),
2236
+ 100: z("color-yellow-100"),
2237
+ 200: z("color-yellow-200")
2238
+ },
2239
+ neutral: {
2240
+ "0050": z("color-neutral-0050"),
2241
+ "0100": z("color-neutral-0100"),
2242
+ "0150": z("color-neutral-0150"),
2243
+ "0200": z("color-neutral-0200"),
2244
+ "0250": z("color-neutral-0250"),
2245
+ "0300": z("color-neutral-0300"),
2246
+ "0350": z("color-neutral-0350"),
2247
+ "0400": z("color-neutral-0400"),
2248
+ "0450": z("color-neutral-0450"),
2249
+ "0500": z("color-neutral-0500"),
2250
+ "0550": z("color-neutral-0550"),
2251
+ "0600": z("color-neutral-0600"),
2252
+ "0650": z("color-neutral-0650"),
2253
+ "0700": z("color-neutral-0700"),
2254
+ "0750": z("color-neutral-0750"),
2255
+ "0800": z("color-neutral-0800"),
2256
+ "0850": z("color-neutral-0850"),
2257
+ "0900": z("color-neutral-0900"),
2258
+ "0950": z("color-neutral-0950"),
2259
+ 1e3: z("color-neutral-1000"),
2260
+ 1050: z("color-neutral-1050"),
2261
+ 1100: z("color-neutral-1100"),
2262
+ 1150: z("color-neutral-1150"),
2263
+ 1200: z("color-neutral-1200"),
2264
+ 1250: z("color-neutral-1250"),
2265
+ 1300: z("color-neutral-1300"),
2266
+ 1350: z("color-neutral-1350"),
2267
+ 1400: z("color-neutral-1400"),
2268
+ 1450: z("color-neutral-1450"),
2269
+ 1500: z("color-neutral-1500"),
2270
+ 1550: z("color-neutral-1550"),
2271
+ 1600: z("color-neutral-1600")
2272
+ },
2273
+ blue: {
2274
+ 100: z("color-blue-100"),
2275
+ 200: z("color-blue-200"),
2276
+ 300: z("color-blue-300"),
2277
+ 400: z("color-blue-400"),
2278
+ 500: z("color-blue-500"),
2279
+ 600: z("color-blue-600"),
2280
+ 700: z("color-blue-700"),
2281
+ 800: z("color-blue-800")
2282
+ },
2283
+ brown: {
2284
+ 100: z("color-brown-100"),
2285
+ 200: z("color-brown-200")
2286
+ },
2287
+ green: {
2288
+ 100: z("color-green-100"),
2289
+ 200: z("color-green-200"),
2290
+ 300: z("color-green-300"),
2291
+ 400: z("color-green-400"),
2292
+ 500: z("color-green-500")
2293
+ },
2294
+ orange: {
2295
+ 100: z("color-orange-100"),
2296
+ 200: z("color-orange-200"),
2297
+ 300: z("color-orange-300"),
2298
+ 400: z("color-orange-400"),
2299
+ 500: z("color-orange-500"),
2300
+ 600: z("color-orange-600")
2301
+ },
2302
+ red: {
2303
+ 100: z("color-red-100"),
2304
+ 200: z("color-red-200"),
2305
+ 300: z("color-red-300"),
2306
+ 400: z("color-red-400"),
2307
+ 500: z("color-red-500"),
2308
+ 600: z("color-red-600"),
2309
+ 700: z("color-red-700"),
2310
+ 800: z("color-red-800"),
2311
+ 900: z("color-red-900"),
2312
+ 1e3: z("color-red-1000")
2313
+ },
2314
+ teal: {
2315
+ 100: z("color-teal-100"),
2316
+ 200: z("color-teal-200")
1211
2317
  }
1212
2318
  }
1213
- }, Ye = [
2319
+ }, Ie = [
1214
2320
  "secondary",
1215
2321
  "tertiary",
1216
2322
  "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)) {
2323
+ ], Le = (e, t) => {
2324
+ let n = B.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;
2325
+ if (Ie.includes(e)) {
1220
2326
  let e = n;
1221
2327
  return {
1222
2328
  bg: r,
@@ -1229,402 +2335,1517 @@ var G = (e) => `var(--cytur-${e})`, K = {
1229
2335
  text: t === "disabled" ? n.text.disabled : n.text.default,
1230
2336
  border: t === "focus" ? n.border.focus : e === "ghost" ? "transparent" : r
1231
2337
  };
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,
2338
+ }, V = t(({ variant: e = "primary", size: t = "md", htmlType: n = "button", icon: r, rightIcon: i, disabled: s, onMouseEnter: c, onMouseLeave: l, onMouseDown: u, onMouseUp: d, onFocus: f, onBlur: p, style: m, children: h, ...g }, _) => {
2339
+ let [v, y] = o(!1), [b, x] = o(!1), [S, C] = o(!1), w = a(!1), { bg: T, text: E, border: ee } = Le(e, s ? "disabled" : b ? "active" : v ? "hover" : S ? "focus" : "default"), D = B.button.size[t], O = B.typography.button[t];
2340
+ return /* @__PURE__ */ j("button", {
2341
+ ref: _,
2342
+ type: n,
2343
+ disabled: s,
1238
2344
  onMouseEnter: (e) => {
1239
- v(!0), s?.(e);
2345
+ y(!0), c?.(e);
1240
2346
  },
1241
2347
  onMouseLeave: (e) => {
1242
- v(!1), b(!1), c?.(e);
2348
+ y(!1), x(!1), l?.(e);
1243
2349
  },
1244
2350
  onMouseDown: (e) => {
1245
- C.current = !0, b(!0), l?.(e);
2351
+ w.current = !0, x(!0), u?.(e);
1246
2352
  },
1247
2353
  onMouseUp: (e) => {
1248
- b(!1), u?.(e);
2354
+ x(!1), d?.(e);
1249
2355
  },
1250
2356
  onFocus: (e) => {
1251
- C.current || S(!0), C.current = !1, d?.(e);
2357
+ w.current || C(!0), w.current = !1, f?.(e);
1252
2358
  },
1253
2359
  onBlur: (e) => {
1254
- S(!1), f?.(e);
2360
+ C(!1), p?.(e);
1255
2361
  },
1256
2362
  style: {
1257
2363
  ...O,
1258
2364
  height: D.height,
1259
2365
  padding: `0 ${D.paddingX}`,
1260
2366
  gap: D.gap,
1261
- background: w,
1262
- color: T,
1263
- border: `1px solid ${E}`,
2367
+ background: T,
2368
+ color: E,
2369
+ border: `1px solid ${ee}`,
1264
2370
  borderRadius: D.radius,
1265
- cursor: o ? "not-allowed" : "pointer",
2371
+ cursor: s ? "not-allowed" : "pointer",
1266
2372
  display: "inline-flex",
1267
2373
  alignItems: "center",
1268
2374
  justifyContent: "center",
1269
2375
  transition: "0.15s ease",
1270
2376
  whiteSpace: "nowrap",
1271
2377
  outline: "none",
1272
- ...p
2378
+ ...m
1273
2379
  },
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]
2380
+ ...g,
2381
+ children: [
2382
+ r && /* @__PURE__ */ A("span", {
2383
+ "aria-hidden": !0,
2384
+ style: {
2385
+ display: "inline-flex",
2386
+ alignItems: "center"
2387
+ },
2388
+ children: r
2389
+ }),
2390
+ h,
2391
+ i && /* @__PURE__ */ A("span", {
2392
+ "aria-hidden": !0,
2393
+ style: {
2394
+ display: "inline-flex",
2395
+ alignItems: "center"
2396
+ },
2397
+ children: i
2398
+ })
2399
+ ]
1283
2400
  });
1284
2401
  });
1285
- q.displayName = "Button";
2402
+ V.displayName = "Button";
1286
2403
  //#endregion
1287
2404
  //#region src/components/icon/icons.ts
1288
- var Ze = {
1289
- close: {
2405
+ var Re = {
2406
+ "arrow-right": {
1290
2407
  viewBox: "0 0 20 20",
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"]
2408
+ body: "<path d=\"M3.5 10H16M11 15L16 10L11 5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
1292
2409
  },
1293
2410
  check: {
1294
2411
  viewBox: "0 0 20 20",
1295
- paths: ["M7.32911 13.2291L3.85411 9.75414L2.67078 10.9291L7.32911 15.5875L17.3291 5.58748L16.1541 4.41248L7.32911 13.2291Z"]
2412
+ body: "<path d=\"M4 10.5L8 14.5L16 5.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
1296
2413
  },
1297
- info: {
1298
- viewBox: "0 0 20 20",
1299
- paths: ["M10 4C6.688 4 4 6.688 4 10C4 13.312 6.688 16 10 16C13.312 16 16 13.312 16 10C16 6.688 13.312 4 10 4ZM10.6 13H9.4V9.4H10.6V13ZM10.6 8.2H9.4V7H10.6V8.2Z"]
1300
- },
1301
- error: {
2414
+ "check-circle": {
1302
2415
  viewBox: "0 0 20 20",
1303
- paths: ["M10 4C6.68966 4 4 6.68966 4 10C4 13.3103 6.68966 16 10 16C13.3103 16 16 13.3103 16 10C16 6.68966 13.3103 4 10 4ZM10.6027 12.9955H9.3973V11.7991H10.6027V12.9955ZM10.6027 10.6027H9.3973V7.0045H10.6027V10.6027Z"]
2416
+ body: "<path d=\"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z\" stroke=\"currentColor\" stroke-width=\"1.5\"/>\n<path d=\"M6.5 10L9 12.5L13.5 7.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
1304
2417
  },
1305
- globe: {
2418
+ "close-circle": {
1306
2419
  viewBox: "0 0 20 20",
1307
- paths: ["M10 4C6.688 4 4 6.688 4 10C4 13.312 6.688 16 10 16C13.312 16 16 13.312 16 10C16 6.688 13.312 4 10 4ZM9.4 14.758C7.03 14.464 5.2 12.448 5.2 10C5.2 9.628 5.248 9.274 5.326 8.926L8.2 11.8V12.4C8.2 13.06 8.74 13.6 9.4 13.6V14.758ZM13.54 13.234C13.384 12.748 12.94 12.4 12.4 12.4H11.8V10.6C11.8 10.27 11.53 10 11.2 10H7.6V8.8H8.8C9.13 8.8 9.4 8.53 9.4 8.2V7H10.6C11.26 7 11.8 6.46 11.8 5.8V5.554C13.558 6.268 14.8 7.99 14.8 10C14.8 11.248 14.32 12.382 13.54 13.234Z"]
2420
+ body: "<path d=\"M10 1.25C5.16797 1.25 1.25 5.16797 1.25 10C1.25 14.832 5.16797 18.75 10 18.75C14.832 18.75 18.75 14.832 18.75 10C18.75 5.16797 14.832 1.25 10 1.25ZM10 17.2656C5.98828 17.2656 2.73438 14.0117 2.73438 10C2.73438 5.98828 5.98828 2.73438 10 2.73438C14.0117 2.73438 17.2656 5.98828 17.2656 10C17.2656 14.0117 14.0117 17.2656 10 17.2656Z\" fill=\"currentColor\"/>\n<path d=\"M13.3867 6.92969C13.3867 6.84375 13.3164 6.77344 13.2305 6.77344L11.9414 6.7793L10 9.09375L8.06055 6.78125L6.76953 6.77539C6.68359 6.77539 6.61328 6.84375 6.61328 6.93164C6.61328 6.96875 6.62695 7.00391 6.65039 7.0332L9.19141 10.0605L6.65039 13.0859C6.62679 13.1146 6.61369 13.1504 6.61328 13.1875C6.61328 13.2734 6.68359 13.3438 6.76953 13.3438L8.06055 13.3379L10 11.0234L11.9395 13.3359L13.2285 13.3418C13.3145 13.3418 13.3848 13.2734 13.3848 13.1855C13.3848 13.1484 13.3711 13.1133 13.3477 13.084L10.8105 10.0586L13.3516 7.03125C13.375 7.00391 13.3867 6.9668 13.3867 6.92969Z\" fill=\"currentColor\"/>"
1308
2421
  },
1309
- "chevron-down": {
2422
+ delete: {
1310
2423
  viewBox: "0 0 20 20",
1311
- paths: ["M13.825 6.91248L10 10.7291L6.175 6.91248L5 8.08748L10 13.0875L15 8.08748L13.825 6.91248Z"]
2424
+ body: "<path d=\"M3 5H17M5 5V17H15V5M8 5V3H12V5M8.5 9V14M11.5 9V14\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
1312
2425
  },
1313
- "arrow-left": {
2426
+ down: {
1314
2427
  viewBox: "0 0 20 20",
1315
- paths: ["M13.4271 18.3334L5.09375 10L13.4271 1.66669L14.9062 3.14585L8.05208 10L14.9062 16.8542L13.4271 18.3334Z"]
2428
+ body: "<path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
1316
2429
  },
1317
- "arrow-right": {
2430
+ download: {
1318
2431
  viewBox: "0 0 20 20",
1319
- paths: ["M6.57292 18.3334L5.09375 16.8542L11.9479 10L5.09375 3.14585L6.57292 1.66669L14.9062 10L6.57292 18.3334Z"]
2432
+ body: "<path d=\"M10 3V13M5 9L10 14L15 9M3 17H17\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
1320
2433
  },
1321
- "sort-up": {
2434
+ export: {
1322
2435
  viewBox: "0 0 20 20",
1323
- paths: ["M10 6L16 13.5H4L10 6Z"]
2436
+ body: "<path d=\"M17 9V3H11M17 3L9 11M14 9V17H3V6H11\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
1324
2437
  },
1325
- "sort-down": {
2438
+ eye: {
1326
2439
  viewBox: "0 0 20 20",
1327
- paths: ["M10 13.5L4 6H16L10 13.5Z"]
2440
+ body: "<path d=\"M10 4C4 4 1 8 1 10C1 12 4 16 10 16C16 16 19 12 19 10C19 8 16 4 10 4Z\" stroke=\"currentColor\" stroke-width=\"1.5\"/>\n<path d=\"M10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z\" stroke=\"currentColor\" stroke-width=\"1.5\"/>"
1328
2441
  },
1329
- search: {
2442
+ "eye-invisible": {
1330
2443
  viewBox: "0 0 20 20",
1331
- paths: ["M13.1292 11.8792H12.4709L12.2375 11.6542C13.0542 10.7042 13.5459 9.47086 13.5459 8.12919C13.5459 5.13752 11.1209 2.71252 8.12919 2.71252C5.13752 2.71252 2.71252 5.13752 2.71252 8.12919C2.71252 11.1209 5.13752 13.5459 8.12919 13.5459C9.47086 13.5459 10.7042 13.0542 11.6542 12.2375L11.8792 12.4709V13.1292L16.0459 17.2875L17.2875 16.0459L13.1292 11.8792ZM8.12919 11.8792C6.05419 11.8792 4.37919 10.2042 4.37919 8.12919C4.37919 6.05419 6.05419 4.37919 8.12919 4.37919C10.2042 4.37919 11.8792 6.05419 11.8792 8.12919C11.8792 10.2042 10.2042 11.8792 8.12919 11.8792Z"]
2444
+ body: "<path d=\"M2 2L18 18L2 2Z\" fill=\"currentColor\"/>\n<path d=\"M2 2L18 18\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\n<path d=\"M5.5 6C3 8 1 10 1 10C1 12 4 16 10 16C11.5 16 12.7 15.5 13.7 14.7\" stroke=\"currentColor\" stroke-width=\"1.5\"/>\n<path d=\"M7.5 4.5C8.5 4.2 9.2 4 10 4C16 4 19 8 19 10C19 11 18.5 12.5 17.3 13.7\" stroke=\"currentColor\" stroke-width=\"1.5\"/>"
1332
2445
  },
1333
- filter: {
2446
+ "info-circle": {
1334
2447
  viewBox: "0 0 20 20",
1335
- paths: ["M8.33333 15H11.6667V13.3333H8.33333V15ZM2.5 5V6.66667H17.5V5H2.5ZM5 10.8333H15V9.16667H5V10.8333Z"]
2448
+ body: "<path d=\"M10 1.25C5.16797 1.25 1.25 5.16797 1.25 10C1.25 14.832 5.16797 18.75 10 18.75C14.832 18.75 18.75 14.832 18.75 10C18.75 5.16797 14.832 1.25 10 1.25ZM10 17.2656C5.98828 17.2656 2.73438 14.0117 2.73438 10C2.73438 5.98828 5.98828 2.73438 10 2.73438C14.0117 2.73438 17.2656 5.98828 17.2656 10C17.2656 14.0117 14.0117 17.2656 10 17.2656Z\" fill=\"currentColor\"/>\n<path d=\"M9.0625 6.5625C9.0625 6.81114 9.16127 7.0496 9.33709 7.22541C9.5129 7.40123 9.75136 7.5 10 7.5C10.2486 7.5 10.4871 7.40123 10.6629 7.22541C10.8387 7.0496 10.9375 6.81114 10.9375 6.5625C10.9375 6.31386 10.8387 6.0754 10.6629 5.89959C10.4871 5.72377 10.2486 5.625 10 5.625C9.75136 5.625 9.5129 5.72377 9.33709 5.89959C9.16127 6.0754 9.0625 6.31386 9.0625 6.5625Z\" fill=\"currentColor\"/>\n<path d=\"M10.4688 8.75H9.53125C9.44531 8.75 9.375 8.82031 9.375 8.90625V14.2188C9.375 14.3047 9.44531 14.375 9.53125 14.375H10.4688C10.5547 14.375 10.625 14.3047 10.625 14.2188V8.90625C10.625 8.82031 10.5547 8.75 10.4688 8.75Z\" fill=\"currentColor\"/>"
1336
2449
  },
1337
- link: {
2450
+ lock: {
1338
2451
  viewBox: "0 0 20 20",
1339
- paths: ["M5.14 10C5.14 8.974 5.974 8.14 7 8.14H9.4V7H7C5.344 7 4 8.344 4 10C4 11.656 5.344 13 7 13H9.4V11.86H7C5.974 11.86 5.14 11.026 5.14 10ZM7.6 10.6H12.4V9.4H7.6V10.6ZM13 7H10.6V8.14H13C14.026 8.14 14.86 8.974 14.86 10C14.86 11.026 14.026 11.86 13 11.86H10.6V13H13C14.656 13 16 11.656 16 10C16 8.344 14.656 7 13 7Z"]
2452
+ body: "<path d=\"M15 9H5C4.44772 9 4 9.44772 4 10V17C4 17.5523 4.44772 18 5 18H15C15.5523 18 16 17.5523 16 17V10C16 9.44772 15.5523 9 15 9Z\" stroke=\"currentColor\" stroke-width=\"1.5\"/>\n<path d=\"M6.5 9V6C6.5 5.54037 6.59053 5.08525 6.76642 4.66061C6.94231 4.23597 7.20012 3.85013 7.52513 3.52513C7.85013 3.20012 8.23597 2.94231 8.66061 2.76642C9.08525 2.59053 9.54037 2.5 10 2.5C10.4596 2.5 10.9148 2.59053 11.3394 2.76642C11.764 2.94231 12.1499 3.20012 12.4749 3.52513C12.7999 3.85013 13.0577 4.23597 13.2336 4.66061C13.4095 5.08525 13.5 5.54037 13.5 6V9\" stroke=\"currentColor\" stroke-width=\"1.5\"/>"
1340
2453
  },
1341
- download: {
2454
+ mail: {
1342
2455
  viewBox: "0 0 20 20",
1343
- paths: ["M14.88 8.23529H12.0571V4H7.82286V8.23529H5L9.94 13.1765L14.88 8.23529ZM5 14.5882V16H14.88V14.5882H5Z"]
2456
+ body: "<path d=\"M16.5 5H3.5C2.94772 5 2.5 5.44772 2.5 6V15C2.5 15.5523 2.94772 16 3.5 16H16.5C17.0523 16 17.5 15.5523 17.5 15V6C17.5 5.44772 17.0523 5 16.5 5Z\" stroke=\"currentColor\" stroke-width=\"1.5\"/>\n<path d=\"M3 6L10 11L17 6\" stroke=\"currentColor\" stroke-width=\"1.5\"/>"
1344
2457
  },
1345
- minus: {
2458
+ plus: {
1346
2459
  viewBox: "0 0 20 20",
1347
- paths: ["M15.8333 10.8333H4.16663V9.16663H15.8333V10.8333Z"]
1348
- },
1349
- warning: {
1350
- viewBox: "0 0 16 16",
1351
- paths: ["M8 2L2 14H14L8 2ZM7.25 6.5H8.75V10.5H7.25V6.5ZM7.25 11.5H8.75V13H7.25V11.5Z"]
2460
+ body: "<path d=\"M10 4V16M4 10H16\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>"
1352
2461
  },
1353
- "check-circle": {
1354
- viewBox: "0 0 16 16",
1355
- paths: ["M8.00004 1.33337C4.32004 1.33337 1.33337 4.32004 1.33337 8.00004C1.33337 11.68 4.32004 14.6667 8.00004 14.6667C11.68 14.6667 14.6667 11.68 14.6667 8.00004C14.6667 4.32004 11.68 1.33337 8.00004 1.33337ZM6.66671 11L3.66671 8.00004L4.60671 7.06004L6.66671 9.11337L11.3934 4.38671L12.3334 5.32671L6.66671 11Z"]
1356
- },
1357
- autorenew: {
2462
+ search: {
1358
2463
  viewBox: "0 0 20 20",
1359
- paths: ["M10 3.33337V5.83337L13.3333 2.50004L10 -0.833293V1.66671C5.40002 1.66671 1.66669 5.40004 1.66669 10C1.66669 11.6584 2.16669 13.2 3.01669 14.4834L4.20002 13.3C3.60002 12.35 3.33335 11.2167 3.33335 10C3.33335 6.31671 6.31669 3.33337 10 3.33337ZM16.9834 5.51671L15.8 6.70004C16.3917 7.65837 16.6667 8.78337 16.6667 10C16.6667 13.6834 13.6834 16.6667 10 16.6667V14.1667L6.66669 17.5L10 20.8334V18.3334C14.6 18.3334 18.3334 14.6 18.3334 10C18.3334 8.34171 17.8334 6.80004 16.9834 5.51671Z"]
1360
- },
1361
- siren: {
1362
- viewBox: "0 0 16 16",
1363
- paths: ["M2.66671 12.6667H13.3334V11.3333H2.66671V12.6667ZM5.33337 8C5.33337 8.36819 5.63185 8.66667 6.00004 8.66667C6.36823 8.66667 6.66671 8.36819 6.66671 8V6.66667C6.66671 6.3 6.79726 5.98611 7.05837 5.725C7.15229 5.63109 7.25303 5.55406 7.3606 5.49392C7.68198 5.31426 8.00004 5.03486 8.00004 4.66667C8.00004 4.29848 7.69701 3.98944 7.3395 4.07747C6.8823 4.19005 6.4747 4.42534 6.11671 4.78333C5.59448 5.30556 5.33337 5.93333 5.33337 6.66667V8ZM4.66671 10H11.3334V6.66667C11.3334 5.74444 11.0084 4.95833 10.3584 4.30833C9.70837 3.65833 8.92226 3.33333 8.00004 3.33333C7.07782 3.33333 6.29171 3.65833 5.64171 4.30833C4.99171 4.95833 4.66671 5.74444 4.66671 6.66667V10ZM2.66671 14C2.30004 14 1.98615 13.8694 1.72504 13.6083C1.46393 13.3472 1.33337 13.0333 1.33337 12.6667V11.3333C1.33337 10.9667 1.46393 10.6528 1.72504 10.3917C1.98615 10.1306 2.30004 10 2.66671 10H3.33337V6.66667C3.33337 5.36667 3.78615 4.26389 4.69171 3.35833C5.59726 2.45278 6.70004 2 8.00004 2C9.30004 2 10.4028 2.45278 11.3084 3.35833C12.2139 4.26389 12.6667 5.36667 12.6667 6.66667V10H13.3334C13.7 10 14.0139 10.1306 14.275 10.3917C14.5362 10.6528 14.6667 10.9667 14.6667 11.3333V12.6667C14.6667 13.0333 14.5362 13.3472 14.275 13.6083C14.0139 13.8694 13.7 14 13.3334 14H2.66671Z"]
2464
+ body: "<path d=\"M9 15C12.3137 15 15 12.3137 15 9C15 5.68629 12.3137 3 9 3C5.68629 3 3 5.68629 3 9C3 12.3137 5.68629 15 9 15Z\" stroke=\"currentColor\" stroke-width=\"1.5\"/>\n<path d=\"M13.5 13.5L17 17\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>"
1364
2465
  },
1365
- settings: {
2466
+ user: {
1366
2467
  viewBox: "0 0 20 20",
1367
- paths: ["M15.95 10.78C15.98 10.53 16 10.27 16 10C16 9.73 15.98 9.47 15.95 9.22L17.63 7.9C17.78 7.78 17.82 7.56 17.73 7.39L16.13 4.61C16.04 4.44 15.82 4.38 15.65 4.44L13.65 5.24C13.23 4.92 12.78 4.66 12.29 4.46L11.99 2.34C11.96 2.15 11.8 2 11.6 2H8.4C8.2 2 8.04 2.15 8.01 2.34L7.71 4.46C7.22 4.66 6.77 4.93 6.35 5.24L4.35 4.44C4.18 4.37 3.96 4.44 3.87 4.61L2.27 7.39C2.17 7.56 2.22 7.78 2.37 7.9L4.05 9.22C4.02 9.47 4 9.74 4 10C4 10.26 4.02 10.53 4.05 10.78L2.37 12.1C2.22 12.22 2.18 12.44 2.27 12.61L3.87 15.39C3.96 15.56 4.18 15.62 4.35 15.56L6.35 14.76C6.77 15.08 7.22 15.34 7.71 15.54L8.01 17.66C8.04 17.85 8.2 18 8.4 18H11.6C11.8 18 11.96 17.85 11.99 17.66L12.29 15.54C12.78 15.34 13.23 15.07 13.65 14.76L15.65 15.56C15.82 15.63 16.04 15.56 16.13 15.39L17.73 12.61C17.82 12.44 17.78 12.22 17.63 12.1L15.95 10.78ZM10 12.5C8.62 12.5 7.5 11.38 7.5 10C7.5 8.62 8.62 7.5 10 7.5C11.38 7.5 12.5 8.62 12.5 10C12.5 11.38 11.38 12.5 10 12.5Z"]
2468
+ body: "<path d=\"M10 10C11.6569 10 13 8.65685 13 7C13 5.34315 11.6569 4 10 4C8.34315 4 7 5.34315 7 7C7 8.65685 8.34315 10 10 10Z\" stroke=\"currentColor\" stroke-width=\"1.5\"/>\n<path d=\"M4 17C4 13 7 11 10 11C13 11 16 13 16 17\" stroke=\"currentColor\" stroke-width=\"1.5\"/>"
1368
2469
  },
1369
- campaign: {
2470
+ warning: {
1370
2471
  viewBox: "0 0 20 20",
1371
- paths: ["M14.5 9.25V10.75H17.5V9.25H14.5ZM13 14.2075C13.72 14.74 14.6575 15.445 15.4 16C15.7 15.6025 16 15.1975 16.3 14.7925C15.5575 14.2375 14.62 13.5325 13.9 12.9925C13.6 13.3975 13.3 13.8025 13 14.2075ZM16.3 5.2C16 4.8025 15.7 4.3975 15.4 4C14.68 4.5325 13.7425 5.2375 13 5.8C13.3 6.205 13.6 6.6025 13.9 7.0075C14.6425 6.4525 15.58 5.7475 16.3 5.2ZM4 7.75C3.175 7.75 2.5 8.425 2.5 9.25V10.75C2.5 11.575 3.175 12.25 4 12.25H4.75V15.25H6.25V12.25H7L10.75 14.5V5.5L7 7.75H4ZM12.625 10C12.625 9.0025 12.19 8.1025 11.5 7.4875V12.505C12.19 11.8975 12.625 10.9975 12.625 10Z"]
2472
+ body: "<path d=\"M10 1.25C5.16797 1.25 1.25 5.16797 1.25 10C1.25 14.832 5.16797 18.75 10 18.75C14.832 18.75 18.75 14.832 18.75 10C18.75 5.16797 14.832 1.25 10 1.25ZM10 17.2656C5.98828 17.2656 2.73438 14.0117 2.73438 10C2.73438 5.98828 5.98828 2.73438 10 2.73438C14.0117 2.73438 17.2656 5.98828 17.2656 10C17.2656 14.0117 14.0117 17.2656 10 17.2656Z\" fill=\"currentColor\"/>\n<path d=\"M9.0625 13.4375C9.0625 13.6861 9.16127 13.9246 9.33709 14.1004C9.5129 14.2762 9.75136 14.375 10 14.375C10.2486 14.375 10.4871 14.2762 10.6629 14.1004C10.8387 13.9246 10.9375 13.6861 10.9375 13.4375C10.9375 13.1889 10.8387 12.9504 10.6629 12.7746C10.4871 12.5988 10.2486 12.5 10 12.5C9.75136 12.5 9.5129 12.5988 9.33709 12.7746C9.16127 12.9504 9.0625 13.1889 9.0625 13.4375Z\" fill=\"currentColor\"/>\n<path d=\"M9.53125 11.25H10.4688C10.5547 11.25 10.625 11.1797 10.625 11.0938V5.78125C10.625 5.69531 10.5547 5.625 10.4688 5.625H9.53125C9.44531 5.625 9.375 5.69531 9.375 5.78125V11.0938C9.375 11.1797 9.44531 11.25 9.53125 11.25Z\" fill=\"currentColor\"/>"
1372
2473
  },
1373
- "unfold-more": {
2474
+ x: {
1374
2475
  viewBox: "0 0 20 20",
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"]
2476
+ body: "<path d=\"M5 5L15 15M15 5L5 15\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>"
1376
2477
  }
1377
- }, Qe = {
1378
- xs: 10,
2478
+ }, ze = {
1379
2479
  sm: 16,
1380
2480
  md: 20,
1381
2481
  lg: 24
1382
- }, J = e(({ name: e, size: t = "md", color: n = "currentColor", style: r, ...i }, a) => {
1383
- let o = typeof t == "number" ? t : Qe[t], s = Ze[e];
1384
- return /* @__PURE__ */ N("svg", {
2482
+ }, H = t(({ name: e, size: t = "md", color: n = "currentColor", style: r, ...i }, a) => {
2483
+ let o = typeof t == "number" ? t : ze[t], s = Re[e];
2484
+ return /* @__PURE__ */ A("svg", {
1385
2485
  ref: a,
1386
2486
  width: o,
1387
2487
  height: o,
1388
2488
  viewBox: s.viewBox,
1389
- fill: n,
2489
+ fill: "none",
1390
2490
  xmlns: "http://www.w3.org/2000/svg",
1391
2491
  style: {
1392
2492
  display: "inline-flex",
1393
2493
  flexShrink: 0,
2494
+ color: n,
1394
2495
  ...r
1395
2496
  },
1396
- ...i,
1397
- children: s.paths.map((e, t) => /* @__PURE__ */ N("path", {
1398
- d: e,
1399
- fillRule: "evenodd",
1400
- clipRule: "evenodd"
1401
- }, t))
2497
+ dangerouslySetInnerHTML: { __html: s.body },
2498
+ ...i
1402
2499
  });
1403
2500
  });
1404
- J.displayName = "Icon";
2501
+ H.displayName = "Icon";
1405
2502
  //#endregion
1406
- //#region src/components/icon-button/IconButton.tsx
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", {
2503
+ //#region src/components/input/Input.tsx
2504
+ var Be = {
2505
+ sm: "sm",
2506
+ md: "md",
2507
+ lg: "lg"
2508
+ }, Ve = t(({ size: e = "md", type: t = "text", error: n, prefix: r, suffix: i, disabled: a, style: s, ...c }, l) => {
2509
+ let [u, d] = o(!1), [f, p] = o(!1), m = a ? "disabled" : n ? "error" : u ? "focus" : f ? "hover" : "default", h = B.input.size[e], g = m === "disabled" ? B.input.bg.disabled : m === "error" ? B.input.bg.error : m === "focus" ? B.input.bg.focus : m === "hover" ? B.input.bg.hover : B.input.bg.default, _ = m === "disabled" ? B.input.border.disabled : m === "error" ? B.input.border.error : m === "focus" ? B.input.border.focus : m === "hover" ? B.input.border.hover : B.input.border.default, v = a ? B.input.text.disabled : B.input.text.default, y = t === "textarea", b = Be[e], x = i;
2510
+ t === "search" ? x = /* @__PURE__ */ A(H, {
2511
+ name: "search",
2512
+ size: b
2513
+ }) : t === "password" && (x = /* @__PURE__ */ A(H, {
2514
+ name: "eye",
2515
+ size: b
2516
+ }));
2517
+ let S = t === "search" || t === "password" ? null : r, C = {
2518
+ display: "inline-flex",
2519
+ alignItems: y ? "flex-start" : "center",
2520
+ gap: h.gap,
2521
+ padding: y ? `16px ${h.paddingX}` : `0 ${h.paddingX}`,
2522
+ ...y ? { minHeight: 96 } : { height: h.height },
2523
+ background: g,
2524
+ border: `1px solid ${_}`,
2525
+ borderRadius: B.input.radius,
2526
+ color: v,
2527
+ fontFamily: B.typography.body.sm.fontFamily,
2528
+ fontSize: h.fontSize,
2529
+ lineHeight: "20px",
2530
+ cursor: a ? "not-allowed" : "text",
2531
+ transition: "border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease",
2532
+ boxSizing: "border-box",
2533
+ boxShadow: m === "focus" ? `0 0 0 1px ${_} inset` : "none",
2534
+ ...s
2535
+ }, w = {
2536
+ flex: 1,
2537
+ minWidth: 0,
2538
+ background: "transparent",
2539
+ border: "none",
2540
+ outline: "none",
2541
+ color: "inherit",
2542
+ font: "inherit",
2543
+ padding: 0,
2544
+ ...y ? {
2545
+ resize: "vertical",
2546
+ minHeight: 60,
2547
+ lineHeight: "20px"
2548
+ } : {}
2549
+ }, T = {
2550
+ display: "inline-flex",
2551
+ alignItems: "center",
2552
+ justifyContent: "center",
2553
+ flexShrink: 0,
2554
+ width: h.icon,
2555
+ height: h.icon,
2556
+ color: v
2557
+ }, E = {
2558
+ onMouseEnter: () => p(!0),
2559
+ onMouseLeave: () => p(!1),
2560
+ onFocus: () => d(!0),
2561
+ onBlur: () => d(!1),
2562
+ disabled: a
2563
+ };
2564
+ return /* @__PURE__ */ j("label", {
2565
+ style: C,
2566
+ children: [
2567
+ S && /* @__PURE__ */ A("span", {
2568
+ style: T,
2569
+ children: S
2570
+ }),
2571
+ y ? /* @__PURE__ */ A("textarea", {
2572
+ ref: l,
2573
+ ...E,
2574
+ style: w,
2575
+ ...c
2576
+ }) : /* @__PURE__ */ A("input", {
2577
+ ref: l,
2578
+ type: t,
2579
+ ...E,
2580
+ style: w,
2581
+ ...c
2582
+ }),
2583
+ x && /* @__PURE__ */ A("span", {
2584
+ style: T,
2585
+ children: x
2586
+ })
2587
+ ]
2588
+ });
2589
+ });
2590
+ Ve.displayName = "Input";
2591
+ //#endregion
2592
+ //#region src/components/select/Select.tsx
2593
+ var He = {
2594
+ sm: "sm",
2595
+ md: "md",
2596
+ lg: "lg"
2597
+ }, U = (e, t, n) => {
2598
+ let [r, i] = o(!1);
2599
+ return {
2600
+ state: e ? "disabled" : t ? "error" : n ? "focus" : r ? "hover" : "default",
2601
+ setHover: i
2602
+ };
2603
+ }, Ue = (e, t) => {
2604
+ let n = B.input.size[e], r = t === "disabled" ? B.input.bg.disabled : t === "error" ? B.input.bg.error : t === "focus" ? B.input.bg.focus : t === "hover" ? B.input.bg.hover : B.input.bg.default, i = t === "disabled" ? B.input.border.disabled : t === "error" ? B.input.border.error : t === "focus" ? B.input.border.focus : t === "hover" ? B.input.border.hover : B.input.border.default;
2605
+ return {
2606
+ display: "inline-flex",
2607
+ alignItems: "center",
2608
+ gap: n.gap,
2609
+ padding: `0 ${n.paddingX}`,
2610
+ height: n.height,
2611
+ background: r,
2612
+ border: `1px solid ${i}`,
2613
+ borderRadius: B.input.radius,
2614
+ color: t === "disabled" ? B.input.text.disabled : B.input.text.default,
2615
+ fontFamily: B.typography.body.sm.fontFamily,
2616
+ fontSize: n.fontSize,
2617
+ lineHeight: "20px",
2618
+ cursor: t === "disabled" ? "not-allowed" : "pointer",
2619
+ boxSizing: "border-box",
2620
+ minWidth: 0,
2621
+ transition: "border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease",
2622
+ boxShadow: t === "focus" ? `0 0 0 1px ${i} inset` : "none"
2623
+ };
2624
+ }, We = ({ options: e, selected: t, multi: n, onSelect: r, anchorRef: a, listRef: s }) => {
2625
+ let [c, l] = o(null);
2626
+ return i(() => {
2627
+ let e = () => {
2628
+ let e = a.current;
2629
+ if (!e) return;
2630
+ let t = e.getBoundingClientRect();
2631
+ l({
2632
+ top: t.bottom + 4,
2633
+ left: t.left,
2634
+ width: t.width
2635
+ });
2636
+ };
2637
+ return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
2638
+ window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
2639
+ };
2640
+ }, [a]), typeof document > "u" ? null : M(/* @__PURE__ */ A("div", {
2641
+ ref: s,
2642
+ role: "listbox",
2643
+ style: {
2644
+ position: "fixed",
2645
+ top: c?.top ?? 0,
2646
+ left: c?.left ?? 0,
2647
+ width: c?.width ?? 0,
2648
+ maxHeight: 240,
2649
+ overflow: "auto",
2650
+ background: B.select.list.bg,
2651
+ border: `1px solid ${B.select.list.border}`,
2652
+ borderRadius: B.input.radius,
2653
+ padding: 4,
2654
+ zIndex: 1e3,
2655
+ boxSizing: "border-box",
2656
+ visibility: c ? "visible" : "hidden"
2657
+ },
2658
+ children: e.map((e) => {
2659
+ let i = t.includes(e.value);
2660
+ return /* @__PURE__ */ A(Ge, {
2661
+ label: e.label,
2662
+ selected: i,
2663
+ disabled: e.disabled,
2664
+ showCheck: n,
2665
+ onClick: () => !e.disabled && r(e.value)
2666
+ }, String(e.value));
2667
+ })
2668
+ }), document.body);
2669
+ }, Ge = ({ label: e, selected: t, disabled: n, showCheck: r, onClick: i }) => {
2670
+ let [a, s] = o(!1), c = t ? B.select.option.bg.selected : a ? B.select.option.bg.hover : "transparent", l = n ? B.select.option.text.disabled : t ? B.select.option.text.selected : B.select.option.text.default;
2671
+ return /* @__PURE__ */ j("div", {
2672
+ role: "option",
2673
+ "aria-selected": t,
2674
+ "aria-disabled": n,
2675
+ onClick: i,
2676
+ onMouseEnter: () => !n && s(!0),
2677
+ onMouseLeave: () => s(!1),
2678
+ style: {
2679
+ display: "flex",
2680
+ alignItems: "center",
2681
+ justifyContent: "space-between",
2682
+ gap: 8,
2683
+ height: 32,
2684
+ padding: "0 8px",
2685
+ borderRadius: 4,
2686
+ background: c,
2687
+ color: l,
2688
+ cursor: n ? "not-allowed" : "pointer",
2689
+ ...B.typography.body.sm,
2690
+ fontSize: B.input.size.md.fontSize,
2691
+ userSelect: "none"
2692
+ },
2693
+ children: [/* @__PURE__ */ A("span", {
2694
+ style: {
2695
+ overflow: "hidden",
2696
+ textOverflow: "ellipsis",
2697
+ whiteSpace: "nowrap"
2698
+ },
2699
+ children: e
2700
+ }), r && t && /* @__PURE__ */ A(H, {
2701
+ name: "check",
2702
+ size: "sm"
2703
+ })]
2704
+ });
2705
+ }, Ke = t(({ size: e = "md", error: t, disabled: n, placeholder: i = "Select", value: s, options: c, onChange: l }, u) => {
2706
+ let [d, f] = o(!1), { state: p, setHover: m } = U(n, t, d), h = a(null), g = a(null);
2707
+ r(() => {
2708
+ if (!d) return;
2709
+ let e = (e) => {
2710
+ let t = e.target;
2711
+ h.current?.contains(t) || g.current?.contains(t) || f(!1);
2712
+ };
2713
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2714
+ }, [d]);
2715
+ let _ = c.find((e) => e.value === s)?.label, v = n ? B.input.text.disabled : B.input.text.default;
2716
+ return /* @__PURE__ */ j("div", {
2717
+ ref: u,
2718
+ style: {
2719
+ position: "relative",
2720
+ display: "inline-block"
2721
+ },
2722
+ children: [/* @__PURE__ */ j("div", {
2723
+ ref: h,
2724
+ role: "combobox",
2725
+ "aria-expanded": d,
2726
+ "aria-disabled": n,
2727
+ onClick: () => !n && f((e) => !e),
2728
+ onMouseEnter: () => m(!0),
2729
+ onMouseLeave: () => m(!1),
2730
+ style: Ue(e, p),
2731
+ children: [/* @__PURE__ */ A("span", {
2732
+ style: {
2733
+ flex: 1,
2734
+ minWidth: 0,
2735
+ overflow: "hidden",
2736
+ textOverflow: "ellipsis",
2737
+ whiteSpace: "nowrap",
2738
+ color: _ ? "inherit" : B.input.text.placeholder
2739
+ },
2740
+ children: _ ?? i
2741
+ }), /* @__PURE__ */ A("span", {
2742
+ style: {
2743
+ display: "inline-flex",
2744
+ flexShrink: 0,
2745
+ color: v,
2746
+ transform: d ? "rotate(180deg)" : "none",
2747
+ transition: "transform 0.15s ease"
2748
+ },
2749
+ children: /* @__PURE__ */ A(H, {
2750
+ name: "down",
2751
+ size: He[e]
2752
+ })
2753
+ })]
2754
+ }), d && !n && /* @__PURE__ */ A(We, {
2755
+ options: c,
2756
+ selected: s === void 0 ? [] : [s],
2757
+ multi: !1,
2758
+ onSelect: (e) => {
2759
+ l?.(e), f(!1);
2760
+ },
2761
+ anchorRef: h,
2762
+ listRef: g
2763
+ })]
2764
+ });
2765
+ }), qe = t(({ size: e = "md", error: t, disabled: n, placeholder: i = "Select", value: s = [], options: c, onChange: l }, u) => {
2766
+ let [d, f] = o(!1), { state: p, setHover: m } = U(n, t, d), h = a(null), g = a(null);
2767
+ r(() => {
2768
+ if (!d) return;
2769
+ let e = (e) => {
2770
+ let t = e.target;
2771
+ h.current?.contains(t) || g.current?.contains(t) || f(!1);
2772
+ };
2773
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2774
+ }, [d]);
2775
+ let _ = c.filter((e) => s.includes(e.value)), v = n ? B.input.text.disabled : B.input.text.default, y = (e) => {
2776
+ let t = s.includes(e) ? s.filter((t) => t !== e) : [...s, e];
2777
+ l?.(t);
2778
+ };
2779
+ return /* @__PURE__ */ j("div", {
1410
2780
  ref: u,
2781
+ style: {
2782
+ position: "relative",
2783
+ display: "inline-block"
2784
+ },
2785
+ children: [/* @__PURE__ */ j("div", {
2786
+ ref: h,
2787
+ role: "combobox",
2788
+ "aria-expanded": d,
2789
+ "aria-disabled": n,
2790
+ onClick: () => !n && f((e) => !e),
2791
+ onMouseEnter: () => m(!0),
2792
+ onMouseLeave: () => m(!1),
2793
+ style: Ue(e, p),
2794
+ children: [/* @__PURE__ */ A("div", {
2795
+ style: {
2796
+ flex: 1,
2797
+ minWidth: 0,
2798
+ display: "flex",
2799
+ flexWrap: "wrap",
2800
+ gap: 4
2801
+ },
2802
+ children: _.length === 0 ? /* @__PURE__ */ A("span", {
2803
+ style: { color: B.input.text.placeholder },
2804
+ children: i
2805
+ }) : _.map((e) => /* @__PURE__ */ j("span", {
2806
+ style: {
2807
+ display: "inline-flex",
2808
+ alignItems: "center",
2809
+ gap: B.tag.size.sm.gap,
2810
+ height: B.tag.size.sm.height,
2811
+ padding: `0 ${B.tag.size.sm.paddingX}`,
2812
+ background: B.tag.neutral.bg.default,
2813
+ color: B.tag.neutral.text,
2814
+ border: `1px solid ${B.tag.neutral.border}`,
2815
+ borderRadius: B.tag.radius,
2816
+ fontSize: 12,
2817
+ lineHeight: "16px"
2818
+ },
2819
+ children: [e.label, /* @__PURE__ */ A("button", {
2820
+ type: "button",
2821
+ onClick: (t) => {
2822
+ t.stopPropagation(), n || y(e.value);
2823
+ },
2824
+ style: {
2825
+ background: "transparent",
2826
+ border: "none",
2827
+ color: "inherit",
2828
+ cursor: n ? "not-allowed" : "pointer",
2829
+ padding: 0,
2830
+ display: "inline-flex"
2831
+ },
2832
+ "aria-label": "remove",
2833
+ children: /* @__PURE__ */ A(H, {
2834
+ name: "x",
2835
+ size: "sm"
2836
+ })
2837
+ })]
2838
+ }, String(e.value)))
2839
+ }), /* @__PURE__ */ A("span", {
2840
+ style: {
2841
+ display: "inline-flex",
2842
+ flexShrink: 0,
2843
+ color: v,
2844
+ transform: d ? "rotate(180deg)" : "none",
2845
+ transition: "transform 0.15s ease"
2846
+ },
2847
+ children: /* @__PURE__ */ A(H, {
2848
+ name: "down",
2849
+ size: He[e]
2850
+ })
2851
+ })]
2852
+ }), d && !n && /* @__PURE__ */ A(We, {
2853
+ options: c,
2854
+ selected: s,
2855
+ multi: !0,
2856
+ onSelect: (e) => y(e),
2857
+ anchorRef: h,
2858
+ listRef: g
2859
+ })]
2860
+ });
2861
+ }), Je = t(({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r, onClick: i, onFocus: s, onBlur: c, onMouseDown: l, style: u, ...d }, f) => {
2862
+ let [p, m] = o(t), h = e ?? p, g = e !== void 0, [_, v] = o(!1), y = a(!1), b = r ? h ? B.toggle.bg.disabledOn : B.toggle.bg.disabledOff : h ? B.toggle.bg.on : B.toggle.bg.off, x = r ? B.toggle.thumb.disabled : B.toggle.thumb.color, S = h ? 14 : 2;
2863
+ return /* @__PURE__ */ A("button", {
2864
+ ref: f,
1411
2865
  type: "button",
1412
- disabled: n,
1413
- onMouseEnter: (e) => {
1414
- f(!0), c?.(e);
2866
+ role: "switch",
2867
+ "aria-checked": h,
2868
+ disabled: r,
2869
+ onClick: (e) => {
2870
+ if (r) return;
2871
+ let t = !h;
2872
+ g || m(t), n?.(t), i?.(e);
1415
2873
  },
1416
- onMouseLeave: (e) => {
1417
- f(!1), m(!1), s?.(e);
2874
+ onFocus: (e) => {
2875
+ y.current || v(!0), y.current = !1, s?.(e);
1418
2876
  },
1419
- onMouseDown: (e) => {
1420
- m(!0), a?.(e);
2877
+ onBlur: (e) => {
2878
+ v(!1), c?.(e);
1421
2879
  },
1422
- onMouseUp: (e) => {
1423
- m(!1), o?.(e);
2880
+ onMouseDown: (e) => {
2881
+ y.current = !0, l?.(e);
1424
2882
  },
1425
2883
  style: {
1426
- width: g.box,
1427
- height: g.box,
2884
+ position: "relative",
2885
+ width: B.toggle.width,
2886
+ height: B.toggle.height,
1428
2887
  padding: 0,
1429
- display: "inline-flex",
1430
- alignItems: "center",
1431
- justifyContent: "center",
1432
- background: K.iconButton.bg[h],
1433
- color: K.iconButton.icon[h],
2888
+ background: b,
1434
2889
  border: "none",
1435
- borderRadius: K.iconButton.radius,
1436
- cursor: n ? "not-allowed" : "pointer",
1437
- transition: "0.15s ease",
1438
- ...i
2890
+ borderRadius: 9999,
2891
+ cursor: r ? "not-allowed" : "pointer",
2892
+ outline: "none",
2893
+ boxShadow: _ ? `0 0 0 2px ${B.toggle.bg.on}` : "none",
2894
+ transition: "background 0.15s ease, box-shadow 0.15s ease",
2895
+ ...u
1439
2896
  },
1440
- ...l,
1441
- children: /* @__PURE__ */ N("span", {
2897
+ ...d,
2898
+ children: /* @__PURE__ */ A("span", {
1442
2899
  "aria-hidden": !0,
1443
2900
  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
2901
+ position: "absolute",
2902
+ top: "50%",
2903
+ left: S,
2904
+ width: B.toggle.thumb.size,
2905
+ height: B.toggle.thumb.size,
2906
+ background: x,
2907
+ borderRadius: 9999,
2908
+ transform: "translateY(-50%)",
2909
+ transition: "left 0.15s ease, background 0.15s ease"
2910
+ }
1454
2911
  })
1455
2912
  });
1456
2913
  });
1457
- Y.displayName = "IconButton";
2914
+ Je.displayName = "Toggle";
1458
2915
  //#endregion
1459
- //#region src/components/alert-feed/AlertFeed.tsx
1460
- var $e = {
1461
- emergency: "red",
1462
- alarm: "orange",
1463
- warning: "gold",
1464
- caution: "blue"
1465
- }, X = {
1466
- emergency: "Emergency",
1467
- alarm: "Alarm",
1468
- warning: "Warning",
1469
- caution: "Caution"
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 = {
1472
- all: n.length,
1473
- emergency: n.filter((e) => e.severity === "emergency").length,
1474
- alarm: n.filter((e) => e.severity === "alarm").length,
1475
- warning: n.filter((e) => e.severity === "warning").length,
1476
- caution: n.filter((e) => e.severity === "caution").length
1477
- }, m = a === "all" ? n : n.filter((e) => e.severity === a), h = d ?? (c && /* @__PURE__ */ N(u, {
1478
- type: "text",
1479
- size: "small",
1480
- icon: /* @__PURE__ */ N(Ie, {}),
1481
- onClick: c
1482
- }));
1483
- return /* @__PURE__ */ N(f, {
1484
- title: /* @__PURE__ */ P(k, {
1485
- size: 6,
1486
- children: [
1487
- /* @__PURE__ */ N(Fe, { style: { fontSize: 16 } }),
1488
- /* @__PURE__ */ N("span", {
1489
- style: {
1490
- fontSize: 14,
1491
- fontWeight: 700
1492
- },
1493
- children: e
1494
- }),
1495
- /* @__PURE__ */ N(j.Text, {
1496
- type: "secondary",
1497
- style: { fontSize: 12 },
1498
- children: t
1499
- })
1500
- ]
1501
- }),
1502
- extra: h,
2916
+ //#region src/components/scroll-area/ScrollArea.tsx
2917
+ var Ye = t(({ horizontal: e, className: t, style: n, children: r, ...i }, a) => /* @__PURE__ */ A("div", {
2918
+ ref: a,
2919
+ className: `cytur-scroll${t ? ` ${t}` : ""}`,
2920
+ style: {
2921
+ overflowY: e ? "visible" : "auto",
2922
+ overflowX: e ? "auto" : "visible",
2923
+ ...n
2924
+ },
2925
+ ...i,
2926
+ children: r
2927
+ }));
2928
+ Ye.displayName = "ScrollArea";
2929
+ //#endregion
2930
+ //#region src/components/dropdown/Dropdown.tsx
2931
+ var Xe = {
2932
+ sm: 160,
2933
+ md: 200,
2934
+ lg: 240
2935
+ }, Ze = ({ item: e, size: t }) => {
2936
+ let [n, r] = o(!1), i = e.variant === "danger", a = B.dropdown.item.size[t], s = e.disabled ? B.dropdown.item.text.disabled : i ? B.dropdown.item.text.danger : B.dropdown.item.text.default, c = !e.disabled && n ? B.dropdown.item.bg.hover : "transparent", l = e.disabled ? B.dropdown.item.text.disabled : i ? B.dropdown.item.icon.danger : B.dropdown.item.icon.default;
2937
+ return /* @__PURE__ */ j("div", {
2938
+ role: "menuitem",
2939
+ "aria-disabled": e.disabled,
2940
+ onClick: () => !e.disabled && e.onClick?.(),
2941
+ onMouseEnter: () => !e.disabled && r(!0),
2942
+ onMouseLeave: () => r(!1),
1503
2943
  style: {
1504
- width: 400,
1505
- maxHeight: i,
1506
2944
  display: "flex",
1507
- flexDirection: "column"
2945
+ alignItems: "center",
2946
+ gap: a.gap,
2947
+ height: a.height,
2948
+ padding: `0 ${a.paddingX}`,
2949
+ borderRadius: a.radius,
2950
+ background: c,
2951
+ color: s,
2952
+ cursor: e.disabled ? "not-allowed" : "pointer",
2953
+ userSelect: "none",
2954
+ transition: "background 0.15s ease, color 0.15s ease",
2955
+ ...B.typography.body.md
1508
2956
  },
1509
- styles: { body: {
1510
- padding: 12,
1511
- flex: 1,
1512
- minHeight: 0,
1513
- display: "flex",
1514
- flexDirection: "column",
1515
- gap: 12,
1516
- overflow: "hidden"
1517
- } },
1518
- actions: s && !r ? [/* @__PURE__ */ N(u, {
1519
- type: "text",
1520
- size: "small",
1521
- onClick: s,
1522
- children: l
1523
- }, "view-all")] : void 0,
1524
- children: r ? /* @__PURE__ */ N(pe, {
1525
- active: !0,
1526
- paragraph: { rows: 6 }
1527
- }) : /* @__PURE__ */ P(Me, { children: [/* @__PURE__ */ N(k, {
1528
- size: 4,
1529
- wrap: !0,
1530
- children: Object.entries(p).map(([e, t]) => /* @__PURE__ */ N(A.CheckableTag, {
1531
- checked: a === e,
1532
- onChange: () => o?.(e),
1533
- style: { margin: 0 },
1534
- children: `${e === "all" ? "All" : X[e]} ${t}`
1535
- }, e))
1536
- }), /* @__PURE__ */ N("div", {
2957
+ children: [e.icon && /* @__PURE__ */ A("span", {
2958
+ "aria-hidden": !0,
2959
+ style: {
2960
+ display: "inline-flex",
2961
+ alignItems: "center",
2962
+ justifyContent: "center",
2963
+ flexShrink: 0,
2964
+ width: a.icon,
2965
+ height: a.icon,
2966
+ color: l
2967
+ },
2968
+ children: e.icon
2969
+ }), /* @__PURE__ */ A("span", {
1537
2970
  style: {
1538
2971
  flex: 1,
1539
- minHeight: 0,
1540
- overflowY: "auto",
1541
- display: "flex",
1542
- flexDirection: "column",
1543
- gap: 6
2972
+ overflow: "hidden",
2973
+ textOverflow: "ellipsis",
2974
+ whiteSpace: "nowrap"
1544
2975
  },
1545
- children: m.length === 0 ? /* @__PURE__ */ N(C, {
1546
- description: n.length === 0 ? "No alerts" : "No matching alerts",
1547
- style: { margin: "auto" }
1548
- }) : m.map((e) => /* @__PURE__ */ P("div", {
2976
+ children: e.label
2977
+ })]
2978
+ });
2979
+ }, Qe = () => /* @__PURE__ */ A("div", {
2980
+ role: "separator",
2981
+ style: {
2982
+ height: B.dropdown.divider.thickness,
2983
+ background: B.dropdown.divider.color,
2984
+ margin: `${B.dropdown.divider.marginY} 0`
2985
+ }
2986
+ }), $e = t(({ trigger: t, items: s, size: c = "md", open: l, onOpenChange: u, menuWidth: d, placement: f = "bottom-start" }, p) => {
2987
+ let [m, h] = o(!1), g = l !== void 0, _ = g ? l : m, v = a(null), y = a(null), [b, x] = o(null), S = (e) => {
2988
+ g || h(e), u?.(e);
2989
+ };
2990
+ i(() => {
2991
+ if (!_) {
2992
+ x(null);
2993
+ return;
2994
+ }
2995
+ let e = () => {
2996
+ let e = v.current;
2997
+ if (!e) return;
2998
+ let t = e.getBoundingClientRect(), n = typeof d == "number" ? d : d ? parseInt(d, 10) : Xe[c], r = f === "bottom-end" ? t.right - n : t.left;
2999
+ x({
3000
+ top: t.bottom + 4,
3001
+ left: r
3002
+ });
3003
+ };
3004
+ return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
3005
+ window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
3006
+ };
3007
+ }, [
3008
+ _,
3009
+ f,
3010
+ c,
3011
+ d
3012
+ ]), r(() => {
3013
+ if (!_) return;
3014
+ let e = (e) => {
3015
+ let t = e.target;
3016
+ v.current?.contains(t) || y.current?.contains(t) || S(!1);
3017
+ };
3018
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
3019
+ }, [_]);
3020
+ let C = n(t) ? e(t, { onClick: (e) => {
3021
+ t.props.onClick?.(e), S(!_);
3022
+ } }) : t, w = {
3023
+ position: "fixed",
3024
+ top: b?.top ?? 0,
3025
+ left: b?.left ?? 0,
3026
+ width: d ?? Xe[c],
3027
+ background: B.dropdown.menu.bg,
3028
+ border: `1px solid ${B.dropdown.menu.border}`,
3029
+ borderRadius: B.dropdown.menu.radius,
3030
+ padding: B.dropdown.menu.padding,
3031
+ boxShadow: B.dropdown.menu.shadow,
3032
+ zIndex: 1e3,
3033
+ boxSizing: "border-box",
3034
+ visibility: b ? "visible" : "hidden"
3035
+ };
3036
+ return /* @__PURE__ */ j("div", {
3037
+ ref: p,
3038
+ style: { display: "inline-block" },
3039
+ children: [/* @__PURE__ */ A("div", {
3040
+ ref: v,
3041
+ style: { display: "inline-block" },
3042
+ children: C
3043
+ }), _ && typeof document < "u" && M(/* @__PURE__ */ A("div", {
3044
+ ref: y,
3045
+ role: "menu",
3046
+ style: w,
3047
+ children: s.map((e, t) => {
3048
+ if ("type" in e && e.type === "divider") return /* @__PURE__ */ A(Qe, {}, e.key ?? `div-${t}`);
3049
+ let n = e;
3050
+ return /* @__PURE__ */ A(Ze, {
3051
+ size: c,
3052
+ item: {
3053
+ ...n,
3054
+ onClick: () => {
3055
+ n.onClick?.(), S(!1);
3056
+ }
3057
+ }
3058
+ }, n.key ?? `item-${t}`);
3059
+ })
3060
+ }), document.body)]
3061
+ });
3062
+ });
3063
+ $e.displayName = "Dropdown";
3064
+ //#endregion
3065
+ //#region src/components/tag/Tag.tsx
3066
+ var et = () => /* @__PURE__ */ A("svg", {
3067
+ width: "100%",
3068
+ height: "100%",
3069
+ viewBox: "0 0 16 16",
3070
+ fill: "none",
3071
+ xmlns: "http://www.w3.org/2000/svg",
3072
+ children: /* @__PURE__ */ A("path", {
3073
+ d: "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5",
3074
+ stroke: "currentColor",
3075
+ strokeWidth: "1.4",
3076
+ strokeLinecap: "round"
3077
+ })
3078
+ }), tt = t(({ color: e = "neutral", size: t = "md", icon: n, selected: r, disabled: i, closable: a, onClose: s, onMouseEnter: c, onMouseLeave: l, style: u, children: d, ...f }, p) => {
3079
+ let [m, h] = o(!1), g = B.tag.size[t], _ = B.tag[e], v = i ? "disabled" : r ? "selected" : m ? "hover" : "default", y = i ? B.tag.disabled.bg : v === "selected" ? _.bg.selected : v === "hover" ? _.bg.hover : _.bg.default, b = i ? B.tag.disabled.border : _.border, x = i ? B.tag.disabled.text : _.text;
3080
+ return /* @__PURE__ */ j("span", {
3081
+ ref: p,
3082
+ onMouseEnter: (e) => {
3083
+ i || h(!0), c?.(e);
3084
+ },
3085
+ onMouseLeave: (e) => {
3086
+ h(!1), l?.(e);
3087
+ },
3088
+ style: {
3089
+ display: "inline-flex",
3090
+ alignItems: "center",
3091
+ gap: g.gap,
3092
+ height: g.height,
3093
+ padding: `0 ${g.paddingX}`,
3094
+ background: y,
3095
+ color: x,
3096
+ border: `1px solid ${b}`,
3097
+ borderRadius: B.tag.radius,
3098
+ fontFamily: B.typography.body.md.fontFamily,
3099
+ fontWeight: 500,
3100
+ fontSize: g.fontSize,
3101
+ lineHeight: g.lineHeight,
3102
+ cursor: i ? "not-allowed" : "default",
3103
+ transition: "background 0.15s ease, border-color 0.15s ease",
3104
+ whiteSpace: "nowrap",
3105
+ boxSizing: "border-box",
3106
+ ...u
3107
+ },
3108
+ ...f,
3109
+ children: [
3110
+ n && /* @__PURE__ */ A("span", {
3111
+ "aria-hidden": !0,
1549
3112
  style: {
1550
- padding: "10px 12px",
1551
- background: "#f9fafb",
1552
- borderRadius: 6,
1553
- display: "flex",
1554
- flexDirection: "column",
1555
- gap: 4
3113
+ display: "inline-flex",
3114
+ alignItems: "center",
3115
+ justifyContent: "center",
3116
+ flexShrink: 0,
3117
+ width: g.icon,
3118
+ height: g.icon
1556
3119
  },
1557
- children: [
1558
- /* @__PURE__ */ P("div", {
1559
- style: {
1560
- display: "flex",
1561
- justifyContent: "space-between",
1562
- alignItems: "center"
1563
- },
1564
- children: [/* @__PURE__ */ N(A, {
1565
- color: $e[e.severity],
1566
- style: { margin: 0 },
1567
- children: X[e.severity]
1568
- }), /* @__PURE__ */ N(j.Text, {
1569
- type: "secondary",
1570
- style: { fontSize: 12 },
1571
- children: e.time
1572
- })]
1573
- }),
1574
- /* @__PURE__ */ N("div", {
1575
- style: {
1576
- fontSize: 14,
1577
- fontWeight: 500,
1578
- color: e.isNew ? "#111827" : "#6b7280"
1579
- },
1580
- children: e.title
1581
- }),
1582
- /* @__PURE__ */ N(j.Text, {
1583
- type: "secondary",
1584
- style: { fontSize: 12 },
1585
- children: e.meta
1586
- })
1587
- ]
1588
- }, e.id))
1589
- })] })
3120
+ children: n
3121
+ }),
3122
+ d,
3123
+ a && /* @__PURE__ */ A("button", {
3124
+ type: "button",
3125
+ onClick: (e) => {
3126
+ e.stopPropagation(), i || s?.(e);
3127
+ },
3128
+ disabled: i,
3129
+ "aria-label": "remove",
3130
+ style: {
3131
+ display: "inline-flex",
3132
+ alignItems: "center",
3133
+ justifyContent: "center",
3134
+ flexShrink: 0,
3135
+ width: g.icon,
3136
+ height: g.icon,
3137
+ padding: 0,
3138
+ border: "none",
3139
+ background: "transparent",
3140
+ color: "inherit",
3141
+ cursor: i ? "not-allowed" : "pointer"
3142
+ },
3143
+ children: /* @__PURE__ */ A(et, {})
3144
+ })
3145
+ ]
1590
3146
  });
1591
- };
1592
- Z.displayName = "AlertFeed";
3147
+ });
3148
+ tt.displayName = "Tag";
3149
+ //#endregion
3150
+ //#region src/components/checkbox/Checkbox.tsx
3151
+ var nt = () => /* @__PURE__ */ A("svg", {
3152
+ width: "100%",
3153
+ height: "100%",
3154
+ viewBox: "0 0 16 16",
3155
+ fill: "none",
3156
+ children: /* @__PURE__ */ A("path", {
3157
+ d: "M3.5 8L7 11L12.5 5",
3158
+ stroke: "currentColor",
3159
+ strokeWidth: "2",
3160
+ strokeLinecap: "round",
3161
+ strokeLinejoin: "round"
3162
+ })
3163
+ }), rt = () => /* @__PURE__ */ A("svg", {
3164
+ width: "100%",
3165
+ height: "100%",
3166
+ viewBox: "0 0 16 16",
3167
+ fill: "none",
3168
+ children: /* @__PURE__ */ A("path", {
3169
+ d: "M4 8H12",
3170
+ stroke: "currentColor",
3171
+ strokeWidth: "2",
3172
+ strokeLinecap: "round"
3173
+ })
3174
+ }), it = t(({ checked: e, defaultChecked: t = !1, indeterminate: n, onChange: r, disabled: i, label: s, children: c, onFocus: l, onBlur: u, onMouseDown: d, ...f }, p) => {
3175
+ let [m, h] = o(t), g = e !== void 0, _ = g ? e : m, [v, y] = o(!1), [b, x] = o(!1), S = a(!1), C = n || _, w = i ? B.checkbox.bg.disabled : C ? B.checkbox.bg.on : v ? B.checkbox.bg.hover : B.checkbox.bg.off, T = i ? B.checkbox.border.disabled : C || v || b ? B.checkbox.border.on : B.checkbox.border.off, E = b ? 2 : 1;
3176
+ return /* @__PURE__ */ j("label", {
3177
+ style: {
3178
+ display: "inline-flex",
3179
+ alignItems: "center",
3180
+ gap: B.checkbox.gap,
3181
+ cursor: i ? "not-allowed" : "pointer",
3182
+ color: i ? B.text.disabled : B.text.primary,
3183
+ ...B.typography.label.md,
3184
+ userSelect: "none"
3185
+ },
3186
+ onMouseEnter: () => !i && y(!0),
3187
+ onMouseLeave: () => y(!1),
3188
+ children: [
3189
+ /* @__PURE__ */ A("input", {
3190
+ ref: p,
3191
+ type: "checkbox",
3192
+ checked: _,
3193
+ disabled: i,
3194
+ onChange: (e) => {
3195
+ let t = e.target.checked;
3196
+ g || h(t), r?.(t);
3197
+ },
3198
+ onMouseDown: (e) => {
3199
+ S.current = !0, d?.(e);
3200
+ },
3201
+ onFocus: (e) => {
3202
+ S.current || x(!0), S.current = !1, l?.(e);
3203
+ },
3204
+ onBlur: (e) => {
3205
+ x(!1), u?.(e);
3206
+ },
3207
+ style: {
3208
+ position: "absolute",
3209
+ opacity: 0,
3210
+ width: 1,
3211
+ height: 1,
3212
+ margin: -1,
3213
+ padding: 0,
3214
+ overflow: "hidden",
3215
+ clip: "rect(0,0,0,0)",
3216
+ border: 0
3217
+ },
3218
+ "aria-checked": n ? "mixed" : _,
3219
+ ...f
3220
+ }),
3221
+ /* @__PURE__ */ A("span", {
3222
+ "aria-hidden": !0,
3223
+ style: {
3224
+ display: "inline-flex",
3225
+ alignItems: "center",
3226
+ justifyContent: "center",
3227
+ flexShrink: 0,
3228
+ width: B.checkbox.size,
3229
+ height: B.checkbox.size,
3230
+ background: w,
3231
+ border: `${E}px solid ${T}`,
3232
+ borderRadius: B.checkbox.radius,
3233
+ color: B.checkbox.check.color,
3234
+ boxSizing: "border-box",
3235
+ transition: "background 0.12s ease, border-color 0.12s ease"
3236
+ },
3237
+ children: n ? /* @__PURE__ */ A(rt, {}) : _ ? /* @__PURE__ */ A(nt, {}) : null
3238
+ }),
3239
+ (c ?? s) && /* @__PURE__ */ A("span", { children: c ?? s })
3240
+ ]
3241
+ });
3242
+ });
3243
+ it.displayName = "Checkbox";
1593
3244
  //#endregion
1594
- //#region src/components/file/File.tsx
1595
- var Q = ({ state: e = "default", children: t, style: n, ...r }) => {
1596
- let i = e === "loading";
1597
- return /* @__PURE__ */ P(j.Link, {
1598
- ...r,
1599
- disabled: i,
3245
+ //#region src/components/radio/Radio.tsx
3246
+ var at = t(({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r, label: i, children: s, onFocus: c, onBlur: l, onMouseDown: u, ...d }, f) => {
3247
+ let [p, m] = o(t), h = e !== void 0, g = h ? e : p, [_, v] = o(!1), [y, b] = o(!1), x = a(!1), S = r ? B.radio.bg.disabled : _ && !g ? B.radio.bg.hover : "transparent", C = r ? B.radio.border.disabled : g ? B.radio.border.on : _ || y ? B.radio.border.hover : B.radio.border.off, w = y ? 2 : 1;
3248
+ return /* @__PURE__ */ j("label", {
1600
3249
  style: {
1601
3250
  display: "inline-flex",
1602
3251
  alignItems: "center",
1603
- gap: 4,
1604
- fontSize: 12,
1605
- lineHeight: "18px",
1606
- ...n
3252
+ gap: B.radio.gap,
3253
+ cursor: r ? "not-allowed" : "pointer",
3254
+ color: r ? B.text.disabled : B.text.primary,
3255
+ ...B.typography.label.md,
3256
+ userSelect: "none"
1607
3257
  },
1608
- children: [i ? /* @__PURE__ */ N(_e, { size: "small" }) : /* @__PURE__ */ N(Pe, {}), t]
3258
+ onMouseEnter: () => !r && v(!0),
3259
+ onMouseLeave: () => v(!1),
3260
+ children: [
3261
+ /* @__PURE__ */ A("input", {
3262
+ ref: f,
3263
+ type: "radio",
3264
+ checked: g,
3265
+ disabled: r,
3266
+ onChange: (e) => {
3267
+ let t = e.target.checked;
3268
+ h || m(t), n?.(t);
3269
+ },
3270
+ onMouseDown: (e) => {
3271
+ x.current = !0, u?.(e);
3272
+ },
3273
+ onFocus: (e) => {
3274
+ x.current || b(!0), x.current = !1, c?.(e);
3275
+ },
3276
+ onBlur: (e) => {
3277
+ b(!1), l?.(e);
3278
+ },
3279
+ style: {
3280
+ position: "absolute",
3281
+ opacity: 0,
3282
+ width: 1,
3283
+ height: 1,
3284
+ margin: -1,
3285
+ padding: 0,
3286
+ overflow: "hidden",
3287
+ clip: "rect(0,0,0,0)",
3288
+ border: 0
3289
+ },
3290
+ ...d
3291
+ }),
3292
+ /* @__PURE__ */ A("span", {
3293
+ "aria-hidden": !0,
3294
+ style: {
3295
+ display: "inline-flex",
3296
+ alignItems: "center",
3297
+ justifyContent: "center",
3298
+ flexShrink: 0,
3299
+ width: B.radio.size,
3300
+ height: B.radio.size,
3301
+ background: S,
3302
+ border: `${w}px solid ${C}`,
3303
+ borderRadius: "50%",
3304
+ boxSizing: "border-box",
3305
+ transition: "background 0.12s ease, border-color 0.12s ease"
3306
+ },
3307
+ children: g && /* @__PURE__ */ A("span", { style: {
3308
+ width: B.radio.dot.size,
3309
+ height: B.radio.dot.size,
3310
+ background: B.radio.dot.color,
3311
+ borderRadius: "50%"
3312
+ } })
3313
+ }),
3314
+ (s ?? i) && /* @__PURE__ */ A("span", { children: s ?? i })
3315
+ ]
1609
3316
  });
1610
- };
1611
- Q.displayName = "File";
3317
+ });
3318
+ at.displayName = "Radio";
1612
3319
  //#endregion
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);
3320
+ //#region src/components/tooltip/Tooltip.tsx
3321
+ var W = B.tooltip.bg, ot = 4, st = (e, t, n, r) => {
3322
+ let i = ot + r, a = t?.width ?? 0, o = t?.height ?? 0;
3323
+ switch (n) {
3324
+ case "bottom": return {
3325
+ top: e.bottom + i,
3326
+ left: e.left + e.width / 2 - a / 2
3327
+ };
3328
+ case "left": return {
3329
+ top: e.top + e.height / 2 - o / 2,
3330
+ left: e.left - a - i
3331
+ };
3332
+ case "right": return {
3333
+ top: e.top + e.height / 2 - o / 2,
3334
+ left: e.right + i
3335
+ };
3336
+ default: return {
3337
+ top: e.top - o - i,
3338
+ left: e.left + e.width / 2 - a / 2
3339
+ };
3340
+ }
3341
+ }, ct = (e) => {
3342
+ let t = ot;
3343
+ switch (e) {
3344
+ case "top": return {
3345
+ position: "absolute",
3346
+ top: "100%",
3347
+ left: "50%",
3348
+ transform: "translateX(-50%)",
3349
+ width: 0,
3350
+ height: 0,
3351
+ borderLeft: `${t}px solid transparent`,
3352
+ borderRight: `${t}px solid transparent`,
3353
+ borderTop: `${t}px solid ${W}`
3354
+ };
3355
+ case "bottom": return {
3356
+ position: "absolute",
3357
+ bottom: "100%",
3358
+ left: "50%",
3359
+ transform: "translateX(-50%)",
3360
+ width: 0,
3361
+ height: 0,
3362
+ borderLeft: `${t}px solid transparent`,
3363
+ borderRight: `${t}px solid transparent`,
3364
+ borderBottom: `${t}px solid ${W}`
3365
+ };
3366
+ case "left": return {
3367
+ position: "absolute",
3368
+ left: "100%",
3369
+ top: "50%",
3370
+ transform: "translateY(-50%)",
3371
+ width: 0,
3372
+ height: 0,
3373
+ borderTop: `${t}px solid transparent`,
3374
+ borderBottom: `${t}px solid transparent`,
3375
+ borderLeft: `${t}px solid ${W}`
3376
+ };
3377
+ case "right": return {
3378
+ position: "absolute",
3379
+ right: "100%",
3380
+ top: "50%",
3381
+ transform: "translateY(-50%)",
3382
+ width: 0,
3383
+ height: 0,
3384
+ borderTop: `${t}px solid transparent`,
3385
+ borderBottom: `${t}px solid transparent`,
3386
+ borderRight: `${t}px solid ${W}`
3387
+ };
3388
+ default: return null;
3389
+ }
3390
+ }, lt = ({ content: t, direction: r = "top", children: s, offset: c = 0 }) => {
3391
+ let [l, u] = o(!1), d = a(null), f = a(null), [p, m] = o(null);
3392
+ i(() => {
3393
+ if (!l) {
3394
+ m(null);
3395
+ return;
3396
+ }
3397
+ let e = () => {
3398
+ let e = d.current;
3399
+ e && m(st(e.getBoundingClientRect(), f.current?.getBoundingClientRect() ?? null, r, c));
3400
+ };
3401
+ return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
3402
+ window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
3403
+ };
3404
+ }, [
3405
+ l,
3406
+ r,
3407
+ c
3408
+ ]);
3409
+ let h = n(s) ? e(s, {
3410
+ ref: (e) => {
3411
+ d.current = e;
3412
+ let t = s.props.ref;
3413
+ typeof t == "function" ? t(e) : t && "current" in t && (t.current = e);
3414
+ },
3415
+ onMouseEnter: (e) => {
3416
+ s.props.onMouseEnter?.(e), u(!0);
3417
+ },
3418
+ onMouseLeave: (e) => {
3419
+ s.props.onMouseLeave?.(e), u(!1);
3420
+ },
3421
+ onFocus: (e) => {
3422
+ s.props.onFocus?.(e), u(!0);
3423
+ },
3424
+ onBlur: (e) => {
3425
+ s.props.onBlur?.(e), u(!1);
1625
3426
  }
3427
+ }) : s, g = ct(r);
3428
+ return /* @__PURE__ */ j(xe, { children: [h, l && typeof document < "u" && M(/* @__PURE__ */ j("span", {
3429
+ ref: f,
3430
+ role: "tooltip",
3431
+ style: {
3432
+ position: "fixed",
3433
+ ...p,
3434
+ background: B.tooltip.bg,
3435
+ color: B.tooltip.text,
3436
+ padding: `${B.tooltip.paddingY} ${B.tooltip.paddingX}`,
3437
+ borderRadius: B.tooltip.radius,
3438
+ fontFamily: B.typography.tooltip.fontFamily,
3439
+ fontWeight: 500,
3440
+ fontSize: B.tooltip.fontSize,
3441
+ lineHeight: "16px",
3442
+ whiteSpace: "nowrap",
3443
+ pointerEvents: "none",
3444
+ zIndex: 1e3,
3445
+ visibility: p ? "visible" : "hidden"
3446
+ },
3447
+ children: [t, g && /* @__PURE__ */ A("span", {
3448
+ "aria-hidden": !0,
3449
+ style: g
3450
+ })]
3451
+ }), document.body)] });
3452
+ };
3453
+ lt.displayName = "Tooltip";
3454
+ //#endregion
3455
+ //#region src/components/toast/Toast.tsx
3456
+ var ut = {
3457
+ info: B.toast.info,
3458
+ success: B.toast.success,
3459
+ warning: B.toast.warning,
3460
+ error: B.toast.error
3461
+ }, dt = {
3462
+ info: "info-circle",
3463
+ success: "check-circle",
3464
+ warning: "warning",
3465
+ error: "close-circle"
3466
+ }, G = t(({ severity: e = "info", title: t, message: n, action: r, showIcon: i = !0, showClose: a = !0, onClose: o, style: s, className: c }, l) => {
3467
+ let u = ut[e], d = a && !!o;
3468
+ return /* @__PURE__ */ j("div", {
3469
+ ref: l,
3470
+ role: "status",
3471
+ "aria-live": e === "error" ? "assertive" : "polite",
3472
+ className: c,
3473
+ style: {
3474
+ display: "flex",
3475
+ alignItems: "flex-start",
3476
+ gap: B.toast.gap,
3477
+ width: B.toast.width,
3478
+ padding: B.toast.padding,
3479
+ background: u.bg,
3480
+ border: `1px solid ${u.border}`,
3481
+ borderRadius: B.toast.radius,
3482
+ boxSizing: "border-box",
3483
+ ...s
3484
+ },
3485
+ children: [
3486
+ i && /* @__PURE__ */ A("div", {
3487
+ style: {
3488
+ flex: "0 0 auto",
3489
+ width: B.toast.iconSize,
3490
+ height: B.toast.iconSize,
3491
+ display: "flex",
3492
+ alignItems: "center",
3493
+ justifyContent: "center"
3494
+ },
3495
+ children: /* @__PURE__ */ A(H, {
3496
+ name: dt[e],
3497
+ size: 20,
3498
+ color: u.icon
3499
+ })
3500
+ }),
3501
+ /* @__PURE__ */ j("div", {
3502
+ style: {
3503
+ flex: "1 1 auto",
3504
+ minWidth: 0,
3505
+ display: "flex",
3506
+ flexDirection: "column",
3507
+ gap: 4
3508
+ },
3509
+ children: [t && /* @__PURE__ */ A("div", {
3510
+ style: {
3511
+ ...B.typography.body.md,
3512
+ fontWeight: 700,
3513
+ color: B.toast.title,
3514
+ wordBreak: "break-word"
3515
+ },
3516
+ children: t
3517
+ }), n && /* @__PURE__ */ A("div", {
3518
+ style: {
3519
+ ...B.typography.body.sm,
3520
+ color: B.toast.message,
3521
+ wordBreak: "break-word"
3522
+ },
3523
+ children: n
3524
+ })]
3525
+ }),
3526
+ r && /* @__PURE__ */ A("button", {
3527
+ type: "button",
3528
+ onClick: r.onClick,
3529
+ style: {
3530
+ flex: "0 0 auto",
3531
+ ...B.typography.body.md,
3532
+ fontWeight: 700,
3533
+ color: u.border,
3534
+ background: "transparent",
3535
+ border: "none",
3536
+ padding: 0,
3537
+ cursor: "pointer",
3538
+ whiteSpace: "nowrap"
3539
+ },
3540
+ children: r.label
3541
+ }),
3542
+ d && /* @__PURE__ */ A("button", {
3543
+ type: "button",
3544
+ onClick: o,
3545
+ "aria-label": "Close",
3546
+ style: {
3547
+ flex: "0 0 auto",
3548
+ width: 16,
3549
+ height: 16,
3550
+ display: "flex",
3551
+ alignItems: "center",
3552
+ justifyContent: "center",
3553
+ background: "transparent",
3554
+ border: "none",
3555
+ padding: 0,
3556
+ cursor: "pointer"
3557
+ },
3558
+ children: /* @__PURE__ */ A(H, {
3559
+ name: "x",
3560
+ size: 14,
3561
+ color: B.toast.closeIcon
3562
+ })
3563
+ })
3564
+ ]
1626
3565
  });
1627
3566
  });
1628
- $.displayName = "TagsSelect";
3567
+ G.displayName = "Toast";
3568
+ //#endregion
3569
+ //#region src/components/modal/Modal.tsx
3570
+ var ft = {
3571
+ info: "info-circle",
3572
+ success: "check-circle",
3573
+ warning: "warning",
3574
+ error: "close-circle"
3575
+ }, pt = {
3576
+ info: B.modal.info.icon,
3577
+ success: B.modal.success.icon,
3578
+ warning: B.modal.warning.icon,
3579
+ error: B.modal.error.icon
3580
+ }, mt = {
3581
+ sm: B.typography.heading.sm,
3582
+ md: B.typography.heading.md,
3583
+ lg: B.typography.heading.lg
3584
+ }, ht = ({ open: e, onClose: t, severity: n, size: i = "md", title: a, body: o, children: s, showClose: c = !0, showFooter: l = !0, showCancel: u = !0, onCancel: d, cancelLabel: f = "Cancel", onConfirm: p, confirmLabel: m = "Confirm", confirmVariant: h = "primary", closeOnEsc: g = !0, closeOnBackdrop: _ = !0 }) => {
3585
+ if (r(() => {
3586
+ if (!e || !g) return;
3587
+ let n = (e) => {
3588
+ e.key === "Escape" && t();
3589
+ };
3590
+ return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
3591
+ }, [
3592
+ e,
3593
+ g,
3594
+ t
3595
+ ]), r(() => {
3596
+ if (!e) return;
3597
+ let t = document.body.style.overflow;
3598
+ return document.body.style.overflow = "hidden", () => {
3599
+ document.body.style.overflow = t;
3600
+ };
3601
+ }, [e]), !e || typeof document > "u") return null;
3602
+ let v = s ?? o;
3603
+ return M(/* @__PURE__ */ A("div", {
3604
+ role: "presentation",
3605
+ onClick: (e) => {
3606
+ _ && e.target === e.currentTarget && t();
3607
+ },
3608
+ style: {
3609
+ position: "fixed",
3610
+ inset: 0,
3611
+ background: B.modal.overlayBg,
3612
+ display: "flex",
3613
+ alignItems: "center",
3614
+ justifyContent: "center",
3615
+ zIndex: 1e3
3616
+ },
3617
+ children: /* @__PURE__ */ j("div", {
3618
+ role: "dialog",
3619
+ "aria-modal": "true",
3620
+ style: {
3621
+ background: B.modal.bg,
3622
+ border: `1px solid ${B.modal.border}`,
3623
+ borderRadius: B.modal.radius,
3624
+ paddingTop: B.modal.paddingY,
3625
+ paddingBottom: B.modal.paddingY,
3626
+ paddingLeft: B.modal.paddingX,
3627
+ paddingRight: B.modal.paddingX,
3628
+ width: B.modal.size[i],
3629
+ maxWidth: "92vw",
3630
+ maxHeight: "92vh",
3631
+ display: "flex",
3632
+ flexDirection: "column",
3633
+ gap: B.modal.headerGap,
3634
+ boxSizing: "border-box",
3635
+ overflow: "hidden"
3636
+ },
3637
+ children: [
3638
+ /* @__PURE__ */ j("div", {
3639
+ style: {
3640
+ display: "flex",
3641
+ gap: 12,
3642
+ alignItems: "center",
3643
+ width: "100%"
3644
+ },
3645
+ children: [
3646
+ n && /* @__PURE__ */ A(H, {
3647
+ name: ft[n],
3648
+ size: 20,
3649
+ color: pt[n]
3650
+ }),
3651
+ a !== void 0 && /* @__PURE__ */ A("div", {
3652
+ style: {
3653
+ ...mt[i],
3654
+ color: B.modal.titleText,
3655
+ flex: "1 1 0",
3656
+ minWidth: 0,
3657
+ wordBreak: "break-word"
3658
+ },
3659
+ children: a
3660
+ }),
3661
+ c && /* @__PURE__ */ A("button", {
3662
+ type: "button",
3663
+ onClick: t,
3664
+ "aria-label": "Close",
3665
+ style: {
3666
+ flex: "0 0 auto",
3667
+ width: 20,
3668
+ height: 20,
3669
+ display: "flex",
3670
+ alignItems: "center",
3671
+ justifyContent: "center",
3672
+ background: "transparent",
3673
+ border: "none",
3674
+ padding: 0,
3675
+ cursor: "pointer",
3676
+ color: B.modal.titleText
3677
+ },
3678
+ children: /* @__PURE__ */ A(H, {
3679
+ name: "x",
3680
+ size: 16
3681
+ })
3682
+ })
3683
+ ]
3684
+ }),
3685
+ v != null && /* @__PURE__ */ A("div", {
3686
+ style: {
3687
+ ...B.typography.body.md,
3688
+ color: B.modal.bodyText,
3689
+ wordBreak: "break-word",
3690
+ width: "100%"
3691
+ },
3692
+ children: v
3693
+ }),
3694
+ l && /* @__PURE__ */ j("div", {
3695
+ style: {
3696
+ display: "flex",
3697
+ gap: 8,
3698
+ alignItems: "center",
3699
+ justifyContent: "flex-end",
3700
+ width: "100%"
3701
+ },
3702
+ children: [u && /* @__PURE__ */ A(V, {
3703
+ variant: "tertiary",
3704
+ size: "md",
3705
+ onClick: d ?? t,
3706
+ children: f
3707
+ }), /* @__PURE__ */ A(V, {
3708
+ variant: h,
3709
+ size: "md",
3710
+ onClick: p ?? t,
3711
+ children: m
3712
+ })]
3713
+ })
3714
+ ]
3715
+ })
3716
+ }), document.body);
3717
+ };
3718
+ ht.displayName = "Modal";
3719
+ //#endregion
3720
+ //#region src/components/toast/store.ts
3721
+ var K = [], gt = 0, q = {
3722
+ position: "top-right",
3723
+ defaultDuration: 4e3,
3724
+ maxStack: 5
3725
+ }, J = /* @__PURE__ */ new Set(), _t = () => K, vt = () => q, yt = (e) => (J.add(e), () => {
3726
+ J.delete(e);
3727
+ }), Y = () => {
3728
+ J.forEach((e) => e());
3729
+ }, bt = (e, t) => {
3730
+ gt += 1;
3731
+ let n = `toast-${Date.now()}-${gt}`, r = [...K, {
3732
+ id: n,
3733
+ severity: e,
3734
+ ...t
3735
+ }];
3736
+ return K = r.length > q.maxStack ? r.slice(r.length - q.maxStack) : r, Y(), n;
3737
+ }, X = (e) => {
3738
+ K = K.filter((t) => t.id !== e), Y();
3739
+ }, xt = () => {
3740
+ K = [], Y();
3741
+ }, St = (e) => {
3742
+ q = {
3743
+ ...q,
3744
+ ...e
3745
+ }, Y();
3746
+ }, Ct = (e) => {
3747
+ let t = {
3748
+ position: "fixed",
3749
+ zIndex: 9999,
3750
+ display: "flex",
3751
+ flexDirection: "column",
3752
+ gap: 8,
3753
+ pointerEvents: "none",
3754
+ padding: 16
3755
+ };
3756
+ switch (e) {
3757
+ case "top": return {
3758
+ ...t,
3759
+ top: 0,
3760
+ left: "50%",
3761
+ transform: "translateX(-50%)",
3762
+ alignItems: "center"
3763
+ };
3764
+ case "top-left": return {
3765
+ ...t,
3766
+ top: 0,
3767
+ left: 0,
3768
+ alignItems: "flex-start"
3769
+ };
3770
+ case "bottom": return {
3771
+ ...t,
3772
+ bottom: 0,
3773
+ left: "50%",
3774
+ transform: "translateX(-50%)",
3775
+ alignItems: "center",
3776
+ flexDirection: "column-reverse"
3777
+ };
3778
+ case "bottom-left": return {
3779
+ ...t,
3780
+ bottom: 0,
3781
+ left: 0,
3782
+ alignItems: "flex-start",
3783
+ flexDirection: "column-reverse"
3784
+ };
3785
+ case "bottom-right": return {
3786
+ ...t,
3787
+ bottom: 0,
3788
+ right: 0,
3789
+ alignItems: "flex-end",
3790
+ flexDirection: "column-reverse"
3791
+ };
3792
+ default: return {
3793
+ ...t,
3794
+ top: 0,
3795
+ right: 0,
3796
+ alignItems: "flex-end"
3797
+ };
3798
+ }
3799
+ }, wt = ({ toast: e, duration: t }) => {
3800
+ let [n, i] = o(!1);
3801
+ return r(() => {
3802
+ if (t <= 0 || n) return;
3803
+ let r = setTimeout(() => X(e.id), t);
3804
+ return () => clearTimeout(r);
3805
+ }, [
3806
+ e.id,
3807
+ t,
3808
+ n
3809
+ ]), /* @__PURE__ */ A("div", {
3810
+ style: { pointerEvents: "auto" },
3811
+ onMouseEnter: () => i(!0),
3812
+ onMouseLeave: () => i(!1),
3813
+ onFocus: () => i(!0),
3814
+ onBlur: () => i(!1),
3815
+ children: /* @__PURE__ */ A(G, {
3816
+ severity: e.severity,
3817
+ title: e.title,
3818
+ message: e.message,
3819
+ action: e.action,
3820
+ showIcon: e.showIcon,
3821
+ showClose: e.showClose ?? !0,
3822
+ onClose: () => X(e.id)
3823
+ })
3824
+ });
3825
+ }, Tt = () => {
3826
+ let [, e] = o(0);
3827
+ r(() => yt(() => e((e) => e + 1)), []);
3828
+ let t = _t(), n = vt();
3829
+ return /* @__PURE__ */ A("div", {
3830
+ style: Ct(n.position),
3831
+ children: t.map((e) => /* @__PURE__ */ A(wt, {
3832
+ toast: e,
3833
+ duration: e.duration ?? n.defaultDuration
3834
+ }, e.id))
3835
+ });
3836
+ }, Z = "__cytur_toast_container__", Q = null, Et = () => {
3837
+ if (typeof document > "u" || Q) return;
3838
+ let e = document.getElementById(Z);
3839
+ e || (e = document.createElement("div"), e.id = Z, document.body.appendChild(e)), Q = Se(e), Q.render(/* @__PURE__ */ A(Tt, {}));
3840
+ }, $ = (e, t) => (Et(), bt(e, t)), Dt = {
3841
+ show: $,
3842
+ info: (e) => $("info", e),
3843
+ success: (e) => $("success", e),
3844
+ warning: (e) => $("warning", e),
3845
+ error: (e) => $("error", e),
3846
+ dismiss: X,
3847
+ dismissAll: xt,
3848
+ configure: St
3849
+ };
1629
3850
  //#endregion
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 };
3851
+ export { s as Alert, c as App, l as AutoComplete, u as Avatar, d as Badge, f as Breadcrumb, V as Button, p as Card, it as Checkbox, m as Col, h as ConfigProvider, R as CyturProvider, _ as DatePicker, v as Descriptions, y as Divider, b as Drawer, $e as Dropdown, x as Empty, S as Flex, C as Form, H as Icon, Ce as Icons, Ve as Input, w as InputNumber, T as Layout, E as List, ee as Menu, ht as Modal, qe as MultiSelect, D as Pagination, O as Popconfirm, te as Popover, ne as Progress, at as Radio, re as Result, ie as Row, Ye as ScrollArea, Ke as Select, ae as Skeleton, oe as Slider, se as Space, ce as Spin, le as Statistic, ue as Steps, de as Switch, fe as Table, pe as Tabs, tt as Tag, me as TimePicker, G as Toast, Je as Toggle, lt as Tooltip, he as Tree, ge as Typography, _e as Upload, N as baseTheme, Ee as defaultTheme, ve as message, ye as notification, be as theme, P as themes, Dt as toast, B as tokens };