@omniviewdev/ui 0.1.11 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,40 +4,40 @@ import v from "@mui/material/Card";
4
4
  import y from "@mui/material/Chip";
5
5
  import E from "@mui/material/Avatar";
6
6
  import I from "@mui/material/Divider";
7
- import { default as lt } from "@mui/material/Divider";
7
+ import { default as st } from "@mui/material/Divider";
8
8
  import u from "@mui/material/Typography";
9
9
  import d from "@mui/material/Box";
10
10
  import { I as C } from "./Icon-CuO9W7cA.js";
11
- import L, { useState as w, useCallback as ne, useRef as F, useEffect as P } from "react";
11
+ import L, { useState as w, useCallback as ie, useRef as F, useEffect as P } from "react";
12
12
  import S from "@mui/material/Grid";
13
13
  import R from "@mui/material/Accordion";
14
14
  import $ from "@mui/material/AccordionDetails";
15
15
  import O from "@mui/material/AccordionSummary";
16
- import ie from "@mui/icons-material/ExpandMore";
17
- import { LuChevronRight as ae, LuChevronDown as le, LuFile as se, LuBraces as N, LuFileCode as b, LuFileImage as ce, LuFileText as de } from "react-icons/lu";
18
- import { toMuiSize as fe, toMuiColor as H, toBorderRadius as pe, toCssColor as G } from "./types.js";
19
- import { T as ue } from "./Text-By4P3in5.js";
20
- import he from "@mui/material/LinearProgress";
21
- import { default as ct } from "@mui/material/LinearProgress";
16
+ import ae from "@mui/icons-material/ExpandMore";
17
+ import { LuChevronRight as le, LuChevronDown as se, LuFile as ce, LuBraces as N, LuFileCode as b, LuFileImage as de, LuFileText as fe } from "react-icons/lu";
18
+ import { toMuiSize as pe, toMuiColor as H, toBorderRadius as ue, toCssColor as G } from "./types.js";
19
+ import { T as he } from "./Text-By4P3in5.js";
20
+ import me from "@mui/material/LinearProgress";
21
+ import { default as dt } from "@mui/material/LinearProgress";
22
22
  import _ from "@mui/material/CircularProgress";
23
- import { default as ft } from "@mui/material/CircularProgress";
24
- import me from "@mui/material/List";
25
- import xe from "@mui/material/ListSubheader";
26
- import { default as ut } from "@mui/material/ListSubheader";
23
+ import { default as pt } from "@mui/material/CircularProgress";
24
+ import xe from "@mui/material/List";
25
+ import ge from "@mui/material/ListSubheader";
26
+ import { default as ht } from "@mui/material/ListSubheader";
27
27
  import z from "@mui/material/ListItem";
28
28
  import k from "@mui/material/ListItemButton";
29
29
  import M from "@mui/material/ListItemIcon";
30
30
  import B from "@mui/material/ListItemText";
31
- import { C as ge } from "./CopyButton-DWVcqdPe.js";
32
- import ve from "@mui/material/Tooltip";
33
- import be from "@mui/material/TextField";
34
- import { H as ye } from "./HotkeyHint-6SOi-MaU.js";
35
- import Se from "@mui/material/Badge";
36
- import { SiDocker as Ce, SiRust as we, SiPython as Ie, SiJavascript as ze, SiTypescript as Me, SiGo as Ee } from "react-icons/si";
37
- import Le from "@mui/icons-material/Search";
38
- import Ae from "@mui/material/ButtonBase";
39
- import { S as Ne } from "./StatusDot-CncykBAY.js";
40
- const ke = ({
31
+ import { C as ve } from "./CopyButton-DWVcqdPe.js";
32
+ import be from "@mui/material/Tooltip";
33
+ import ye from "@mui/material/TextField";
34
+ import { H as Se } from "./HotkeyHint-6SOi-MaU.js";
35
+ import Ce from "@mui/material/Badge";
36
+ import { SiDocker as we, SiRust as Ie, SiPython as ze, SiJavascript as Me, SiTypescript as Ee, SiGo as Le } from "react-icons/si";
37
+ import Ae from "@mui/icons-material/Search";
38
+ import Ne from "@mui/material/ButtonBase";
39
+ import { S as ke } from "./StatusDot-CncykBAY.js";
40
+ const Be = ({
41
41
  title: e,
42
42
  titleDecorator: o,
43
43
  icon: t,
@@ -91,8 +91,8 @@ const ke = ({
91
91
  /* @__PURE__ */ r(d, { sx: { p: l ? 0 : 1.5 }, children: i })
92
92
  ] }) : /* @__PURE__ */ r(v, { variant: m, onClick: f, sx: { p: l ? 0 : 1.5, gap: 0, ...p }, children: i });
93
93
  };
94
- ke.displayName = "Card";
95
- const Be = (e) => {
94
+ Be.displayName = "Card";
95
+ const We = (e) => {
96
96
  switch (e) {
97
97
  case "sm":
98
98
  return 12;
@@ -103,7 +103,7 @@ const Be = (e) => {
103
103
  default:
104
104
  return 14;
105
105
  }
106
- }, We = (e) => {
106
+ }, je = (e) => {
107
107
  switch (e) {
108
108
  case "sm":
109
109
  return 0.5;
@@ -114,7 +114,7 @@ const Be = (e) => {
114
114
  default:
115
115
  return 1;
116
116
  }
117
- }, je = (e) => {
117
+ }, De = (e) => {
118
118
  switch (e) {
119
119
  case "sm":
120
120
  return 12;
@@ -125,7 +125,7 @@ const Be = (e) => {
125
125
  default:
126
126
  return 14;
127
127
  }
128
- }, De = ({
128
+ }, Te = ({
129
129
  title: e,
130
130
  titleSize: o = "md",
131
131
  icon: t,
@@ -160,7 +160,7 @@ const Be = (e) => {
160
160
  h,
161
161
  {
162
162
  direction: "row",
163
- spacing: We(o),
163
+ spacing: je(o),
164
164
  alignItems: "center",
165
165
  children: [
166
166
  t && (typeof t == "string" ? t.startsWith("http") ? /* @__PURE__ */ r(
@@ -169,11 +169,11 @@ const Be = (e) => {
169
169
  src: t,
170
170
  sx: { height: 16, width: 16, borderRadius: "4px" }
171
171
  }
172
- ) : /* @__PURE__ */ r(C, { name: t, size: je(o) }) : t),
172
+ ) : /* @__PURE__ */ r(C, { name: t, size: De(o) }) : t),
173
173
  /* @__PURE__ */ r(
174
174
  u,
175
175
  {
176
- sx: { fontSize: Be(o) },
176
+ sx: { fontSize: We(o) },
177
177
  variant: "subtitle2",
178
178
  children: e
179
179
  }
@@ -224,8 +224,8 @@ const Be = (e) => {
224
224
  ]
225
225
  }
226
226
  );
227
- De.displayName = "DetailsCard";
228
- const Te = ({ title: e, kvs: o, defaultExpanded: t }) => /* @__PURE__ */ s(
227
+ Te.displayName = "DetailsCard";
228
+ const Fe = ({ title: e, kvs: o, defaultExpanded: t }) => /* @__PURE__ */ s(
229
229
  R,
230
230
  {
231
231
  disabled: !Object.keys(o).length,
@@ -233,7 +233,7 @@ const Te = ({ title: e, kvs: o, defaultExpanded: t }) => /* @__PURE__ */ s(
233
233
  disableGutters: !0,
234
234
  sx: { "&:before": { display: "none" } },
235
235
  children: [
236
- /* @__PURE__ */ r(O, { expandIcon: /* @__PURE__ */ r(ie, {}), children: /* @__PURE__ */ s(h, { direction: "row", gap: 1, alignItems: "center", children: [
236
+ /* @__PURE__ */ r(O, { expandIcon: /* @__PURE__ */ r(ae, {}), children: /* @__PURE__ */ s(h, { direction: "row", gap: 1, alignItems: "center", children: [
237
237
  /* @__PURE__ */ r(u, { variant: "subtitle2", children: e }),
238
238
  /* @__PURE__ */ r(
239
239
  y,
@@ -253,8 +253,8 @@ const Te = ({ title: e, kvs: o, defaultExpanded: t }) => /* @__PURE__ */ s(
253
253
  ]
254
254
  }
255
255
  );
256
- Te.displayName = "KVCard";
257
- function Fe(e) {
256
+ Fe.displayName = "KVCard";
257
+ function Pe(e) {
258
258
  switch (e) {
259
259
  case "outline":
260
260
  case "ghost":
@@ -263,7 +263,7 @@ function Fe(e) {
263
263
  return "filled";
264
264
  }
265
265
  }
266
- function Pe(e, o) {
266
+ function Re(e, o) {
267
267
  if (e === "soft") {
268
268
  const t = G(o);
269
269
  return {
@@ -280,13 +280,13 @@ function Pe(e, o) {
280
280
  if (e === "ghost")
281
281
  return { borderColor: "transparent", bgcolor: "transparent" };
282
282
  }
283
- function Re(e) {
283
+ function $e(e) {
284
284
  if (e === "xs")
285
285
  return { height: 20, fontSize: "0.6875rem", "& .MuiChip-label": { px: "6px" }, "& .MuiChip-icon": { fontSize: "0.75rem", flexShrink: 0 } };
286
286
  if (e === "xl")
287
287
  return { height: 40, fontSize: "1rem", "& .MuiChip-label": { px: "16px" } };
288
288
  }
289
- const $e = {
289
+ const Oe = {
290
290
  soft: "soft",
291
291
  outlined: "outline",
292
292
  solid: "solid",
@@ -311,19 +311,27 @@ function K({
311
311
  disabled: q = !1,
312
312
  sx: J
313
313
  }) {
314
- const A = i ?? (n ? $e[n] ?? "soft" : "soft"), Q = e ?? o, X = p ?? c, Z = A === "soft" ? "filled" : Fe(A), ee = Pe(A, t), re = Re(a), te = l ? { borderRadius: pe(l) } : void 0, oe = f ? { "& .MuiChip-label": { textTransform: f } } : void 0;
314
+ const A = i ?? (n ? Oe[n] ?? "soft" : "soft"), Q = e ?? o, X = p ?? c, Z = A === "soft" ? "filled" : Pe(A), ee = Re(A, t), re = $e(a), te = l ? { borderRadius: ue(l) } : void 0, oe = f ? { "& .MuiChip-label": { textTransform: f } } : void 0, ne = {
315
+ "& .MuiChip-icon": {
316
+ display: "inline-flex",
317
+ alignItems: "center",
318
+ justifyContent: "center",
319
+ "& svg": { width: "1em", height: "1em" }
320
+ }
321
+ };
315
322
  return /* @__PURE__ */ r(
316
323
  y,
317
324
  {
318
325
  label: Q,
319
326
  color: H(t),
320
327
  variant: Z,
321
- size: fe(a),
328
+ size: pe(a),
322
329
  icon: X,
323
330
  onDelete: g || x ? x ?? void 0 : void 0,
324
331
  onClick: Y,
325
332
  disabled: q,
326
333
  sx: {
334
+ ...ne,
327
335
  ...ee,
328
336
  ...re,
329
337
  ...te,
@@ -334,7 +342,7 @@ function K({
334
342
  );
335
343
  }
336
344
  K.displayName = "Chip";
337
- const Oe = {
345
+ const He = {
338
346
  sm: { minHeight: 28, headerPy: "4px", headerPx: 1, fontSize: 12, iconSize: 14, chevronSize: 14 },
339
347
  md: { minHeight: 32, headerPy: "6px", headerPx: 1.25, fontSize: 13, iconSize: 16, chevronSize: 16 },
340
348
  lg: { minHeight: 38, headerPy: "10px", headerPx: 1.5, fontSize: 14, iconSize: 18, chevronSize: 18 }
@@ -352,7 +360,7 @@ function V(e) {
352
360
  return {};
353
361
  }
354
362
  }
355
- function He(e, o) {
363
+ function Ge(e, o) {
356
364
  return o === 0 ? !1 : e !== "flush";
357
365
  }
358
366
  function U({
@@ -362,7 +370,7 @@ function U({
362
370
  expanded: i,
363
371
  onExpandedChange: n
364
372
  }) {
365
- const a = Oe[o], l = i !== void 0 || e.expanded !== void 0, f = i ?? e.expanded, p = (g, x) => {
373
+ const a = He[o], l = i !== void 0 || e.expanded !== void 0, f = i ?? e.expanded, p = (g, x) => {
366
374
  n?.(x), e.onExpandedChange?.(x);
367
375
  }, c = {
368
376
  disableGutters: !0,
@@ -397,10 +405,10 @@ function U({
397
405
  }
398
406
  },
399
407
  children: [
400
- /* @__PURE__ */ r(Ge, { size: a.chevronSize }),
408
+ /* @__PURE__ */ r(_e, { size: a.chevronSize }),
401
409
  m(),
402
410
  /* @__PURE__ */ r(
403
- ue,
411
+ he,
404
412
  {
405
413
  size: o === "lg" ? "md" : o,
406
414
  weight: "semibold",
@@ -438,7 +446,7 @@ function U({
438
446
  /* @__PURE__ */ r($, { sx: { p: 0 }, children: e.children })
439
447
  ] });
440
448
  }
441
- function Ge({ size: e }) {
449
+ function _e({ size: e }) {
442
450
  return /* @__PURE__ */ s(
443
451
  d,
444
452
  {
@@ -457,7 +465,7 @@ function Ge({ size: e }) {
457
465
  display: "flex",
458
466
  ".MuiAccordionSummary-root.Mui-expanded &": { display: "none" }
459
467
  },
460
- children: /* @__PURE__ */ r(ae, { size: e })
468
+ children: /* @__PURE__ */ r(le, { size: e })
461
469
  }
462
470
  ),
463
471
  /* @__PURE__ */ r(
@@ -468,17 +476,17 @@ function Ge({ size: e }) {
468
476
  display: "none",
469
477
  ".MuiAccordionSummary-root.Mui-expanded &": { display: "flex" }
470
478
  },
471
- children: /* @__PURE__ */ r(le, { size: e })
479
+ children: /* @__PURE__ */ r(se, { size: e })
472
480
  }
473
481
  )
474
482
  ]
475
483
  }
476
484
  );
477
485
  }
478
- function _e() {
486
+ function Ke() {
479
487
  return /* @__PURE__ */ r(d, { sx: { height: "1px", bgcolor: "var(--ov-border-default)" } });
480
488
  }
481
- function Ke({
489
+ function Ve({
482
490
  sections: e,
483
491
  variant: o = "bordered",
484
492
  size: t = "md",
@@ -490,7 +498,7 @@ function Ke({
490
498
  if (!n) return null;
491
499
  const c = e.findIndex((m) => m.defaultExpanded || m.expanded);
492
500
  return c >= 0 ? c : null;
493
- }), p = ne(
501
+ }), p = ie(
494
502
  (c) => (m) => {
495
503
  n && f(m ? c : null);
496
504
  },
@@ -502,7 +510,7 @@ function Ke({
502
510
  onExpandedChange: p(m)
503
511
  } : {};
504
512
  return /* @__PURE__ */ s(L.Fragment, { children: [
505
- He(o, m) && /* @__PURE__ */ r(_e, {}),
513
+ Ge(o, m) && /* @__PURE__ */ r(Ke, {}),
506
514
  /* @__PURE__ */ r(
507
515
  U,
508
516
  {
@@ -515,8 +523,8 @@ function Ke({
515
523
  ] }, g);
516
524
  }) });
517
525
  }
518
- Ke.displayName = "ExpandableSections";
519
- function Ve({
526
+ Ve.displayName = "ExpandableSections";
527
+ function Ue({
520
528
  variant: e = "bordered",
521
529
  size: o = "md",
522
530
  monospace: t = !1,
@@ -531,8 +539,8 @@ function Ve({
531
539
  }
532
540
  ) });
533
541
  }
534
- Ve.displayName = "ExpandableSection";
535
- const Ue = {
542
+ Ue.displayName = "ExpandableSection";
543
+ const Ye = {
536
544
  NONE: "",
537
545
  BYTES: "B",
538
546
  KB: "KB",
@@ -548,10 +556,10 @@ const Ue = {
548
556
  CORES: "cores"
549
557
  };
550
558
  function W(e, o) {
551
- const t = Ue[o] ?? o;
559
+ const t = Ye[o] ?? o;
552
560
  return o === "BYTES" || o === "bytes" ? e >= 1024 * 1024 * 1024 ? `${(e / (1024 * 1024 * 1024)).toFixed(1)} GB` : e >= 1024 * 1024 ? `${(e / (1024 * 1024)).toFixed(1)} MB` : e >= 1024 ? `${(e / 1024).toFixed(1)} KB` : `${e} B` : o === "MILLICORES" || o === "millicores" ? e >= 1e3 ? `${(e / 1e3).toFixed(2)} cores` : `${Math.round(e)}${t}` : Number.isInteger(e) ? `${e}${t ? ` ${t}` : ""}` : `${e.toFixed(2)}${t ? ` ${t}` : ""}`;
553
561
  }
554
- const Ye = ({ metric: e }) => {
562
+ const qe = ({ metric: e }) => {
555
563
  const o = e.capacity != null && e.capacity > 0, t = o ? Math.min(e.value / e.capacity * 100, 100) : null, i = () => t == null ? "primary" : t >= 90 ? "error" : t >= 70 ? "warning" : "primary";
556
564
  return /* @__PURE__ */ s(d, { sx: { minWidth: 0, flex: 1 }, children: [
557
565
  /* @__PURE__ */ s(h, { direction: "row", spacing: 0.5, alignItems: "center", sx: { mb: 0.25 }, children: [
@@ -568,7 +576,7 @@ const Ye = ({ metric: e }) => {
568
576
  /* @__PURE__ */ r(u, { variant: "body2", sx: { fontWeight: 600, fontVariantNumeric: "tabular-nums" }, children: W(e.value, e.unit) }),
569
577
  o && /* @__PURE__ */ s(d, { sx: { mt: 0.5 }, children: [
570
578
  /* @__PURE__ */ r(
571
- he,
579
+ me,
572
580
  {
573
581
  variant: "determinate",
574
582
  value: t,
@@ -583,7 +591,7 @@ const Ye = ({ metric: e }) => {
583
591
  ] })
584
592
  ] })
585
593
  ] });
586
- }, nt = ({
594
+ }, it = ({
587
595
  providers: e,
588
596
  isLoading: o = !1,
589
597
  error: t,
@@ -610,17 +618,17 @@ const Ye = ({ metric: e }) => {
610
618
  flexWrap: "wrap",
611
619
  "& > *": { minWidth: 100 }
612
620
  },
613
- children: n.metrics.map((a) => /* @__PURE__ */ r(Ye, { metric: a }, a.metricID))
621
+ children: n.metrics.map((a) => /* @__PURE__ */ r(qe, { metric: a }, a.metricID))
614
622
  }
615
623
  )
616
- ] }, n.providerID)) }), qe = {
624
+ ] }, n.providerID)) }), Je = {
617
625
  xs: !0,
618
626
  sm: !0,
619
627
  md: !1,
620
628
  lg: !1,
621
629
  xl: !1
622
630
  };
623
- function Je({
631
+ function Qe({
624
632
  children: e,
625
633
  size: o = "md",
626
634
  subheader: t,
@@ -629,22 +637,22 @@ function Je({
629
637
  sx: a
630
638
  }) {
631
639
  return /* @__PURE__ */ r(
632
- me,
640
+ xe,
633
641
  {
634
- dense: i ?? qe[o],
642
+ dense: i ?? Je[o],
635
643
  disablePadding: n,
636
- subheader: t ? /* @__PURE__ */ r(xe, { children: t }) : void 0,
644
+ subheader: t ? /* @__PURE__ */ r(ge, { children: t }) : void 0,
637
645
  sx: a,
638
646
  children: e
639
647
  }
640
648
  );
641
649
  }
642
- Je.displayName = "List";
643
- function Qe({ sx: e }) {
650
+ Qe.displayName = "List";
651
+ function Xe({ sx: e }) {
644
652
  return /* @__PURE__ */ r(I, { component: "li", sx: e });
645
653
  }
646
- Qe.displayName = "ListDivider";
647
- function Xe({
654
+ Xe.displayName = "ListDivider";
655
+ function Ze({
648
656
  children: e,
649
657
  primary: o,
650
658
  secondary: t,
@@ -687,8 +695,8 @@ function Xe({
687
695
  e
688
696
  ] });
689
697
  }
690
- Xe.displayName = "ListItem";
691
- function Ze({
698
+ Ze.displayName = "ListItem";
699
+ function er({
692
700
  ratio: e = "1/1",
693
701
  children: o,
694
702
  sx: t
@@ -715,8 +723,8 @@ function Ze({
715
723
  }
716
724
  );
717
725
  }
718
- Ze.displayName = "AspectRatio";
719
- function er({
726
+ er.displayName = "AspectRatio";
727
+ function rr({
720
728
  value: e,
721
729
  truncate: o = !0,
722
730
  maxWidth: t,
@@ -733,8 +741,10 @@ function er({
733
741
  display: "inline-flex",
734
742
  alignItems: "center",
735
743
  gap: 0.5,
744
+ width: "100%",
736
745
  maxWidth: t,
737
746
  minWidth: 0,
747
+ overflow: "hidden",
738
748
  ...i
739
749
  },
740
750
  children: [
@@ -746,6 +756,8 @@ function er({
746
756
  fontSize: "0.8125rem",
747
757
  color: "var(--ov-fg-default)",
748
758
  fontFamily: "var(--ov-font-mono)",
759
+ minWidth: 0,
760
+ maxWidth: "100%",
749
761
  ...o && {
750
762
  overflow: "hidden",
751
763
  textOverflow: "ellipsis",
@@ -767,15 +779,15 @@ function er({
767
779
  visibility: a ? "visible" : "hidden",
768
780
  flexShrink: 0
769
781
  },
770
- children: /* @__PURE__ */ r(ge, { value: e, size: "xs" })
782
+ children: /* @__PURE__ */ r(ve, { value: e, size: "xs" })
771
783
  }
772
784
  )
773
785
  ]
774
786
  }
775
787
  );
776
788
  }
777
- er.displayName = "ClipboardText";
778
- function rr({
789
+ rr.displayName = "ClipboardText";
790
+ function tr({
779
791
  children: e,
780
792
  maxWidth: o,
781
793
  copyOnClick: t = !1,
@@ -807,9 +819,9 @@ function rr({
807
819
  children: e
808
820
  }
809
821
  );
810
- return a ? /* @__PURE__ */ r(ve, { title: e, arrow: !0, children: p }) : p;
822
+ return a ? /* @__PURE__ */ r(be, { title: e, arrow: !0, children: p }) : p;
811
823
  }
812
- rr.displayName = "OverflowText";
824
+ tr.displayName = "OverflowText";
813
825
  const j = {
814
826
  xs: "0.6875rem",
815
827
  sm: "0.8125rem",
@@ -817,7 +829,7 @@ const j = {
817
829
  lg: "1rem",
818
830
  xl: "1.125rem"
819
831
  };
820
- function tr({
832
+ function or({
821
833
  value: e,
822
834
  onSave: o,
823
835
  placeholder: t = "Click to edit",
@@ -834,7 +846,7 @@ function tr({
834
846
  l(!1), p(e);
835
847
  };
836
848
  return a ? /* @__PURE__ */ r(d, { sx: n, children: /* @__PURE__ */ r(
837
- be,
849
+ ye,
838
850
  {
839
851
  inputRef: c,
840
852
  value: f,
@@ -880,8 +892,8 @@ function tr({
880
892
  }
881
893
  );
882
894
  }
883
- tr.displayName = "InlineEdit";
884
- function or({
895
+ or.displayName = "InlineEdit";
896
+ function nr({
885
897
  count: e,
886
898
  dot: o = !1,
887
899
  color: t = "primary",
@@ -892,7 +904,7 @@ function or({
892
904
  sx: f
893
905
  }) {
894
906
  return /* @__PURE__ */ r(
895
- Se,
907
+ Ce,
896
908
  {
897
909
  badgeContent: o ? void 0 : e,
898
910
  variant: o ? "dot" : "standard",
@@ -905,14 +917,14 @@ function or({
905
917
  }
906
918
  );
907
919
  }
908
- or.displayName = "Badge";
909
- const nr = {
920
+ nr.displayName = "Badge";
921
+ const ir = {
910
922
  xs: 24,
911
923
  sm: 32,
912
924
  md: 40,
913
925
  lg: 48,
914
926
  xl: 64
915
- }, ir = {
927
+ }, ar = {
916
928
  xs: "0.625rem",
917
929
  sm: "0.75rem",
918
930
  md: "0.875rem",
@@ -936,27 +948,27 @@ const nr = {
936
948
  "#ffb74d",
937
949
  "#ff8a65"
938
950
  ];
939
- function ar(e) {
951
+ function lr(e) {
940
952
  let o = 0;
941
953
  for (let t = 0; t < e.length; t++)
942
954
  o = e.charCodeAt(t) + ((o << 5) - o), o |= 0;
943
955
  return Math.abs(o);
944
956
  }
945
- function lr(e) {
957
+ function sr(e) {
946
958
  const o = e.trim().split(/\s+/);
947
959
  return o.length >= 2 ? (o[0][0] + o[1][0]).toUpperCase() : e.slice(0, 2).toUpperCase();
948
960
  }
949
- function sr(e) {
950
- return D[ar(e) % D.length];
961
+ function cr(e) {
962
+ return D[lr(e) % D.length];
951
963
  }
952
- const cr = {
964
+ const dr = {
953
965
  xs: 4,
954
966
  sm: 6,
955
967
  md: 8,
956
968
  lg: 10,
957
969
  xl: 12
958
970
  };
959
- function dr({
971
+ function fr({
960
972
  src: e,
961
973
  name: o,
962
974
  size: t = "md",
@@ -964,7 +976,7 @@ function dr({
964
976
  children: n,
965
977
  sx: a
966
978
  }) {
967
- const l = nr[t], f = o ? sr(o) : void 0, p = o ? lr(o) : void 0, c = n ?? (e ? void 0 : p);
979
+ const l = ir[t], f = o ? cr(o) : void 0, p = o ? sr(o) : void 0, c = n ?? (e ? void 0 : p);
968
980
  return /* @__PURE__ */ r(
969
981
  E,
970
982
  {
@@ -974,42 +986,42 @@ function dr({
974
986
  sx: {
975
987
  width: l,
976
988
  height: l,
977
- fontSize: ir[t],
989
+ fontSize: ar[t],
978
990
  fontWeight: 600,
979
991
  bgcolor: e ? void 0 : f,
980
- ...i === "rounded" ? { borderRadius: `${cr[t]}px` } : {},
992
+ ...i === "rounded" ? { borderRadius: `${dr[t]}px` } : {},
981
993
  ...a
982
994
  },
983
995
  children: c
984
996
  }
985
997
  );
986
998
  }
987
- dr.displayName = "Avatar";
988
- const fr = {
999
+ fr.displayName = "Avatar";
1000
+ const pr = {
989
1001
  xs: 12,
990
1002
  sm: 14,
991
1003
  md: 16,
992
1004
  lg: 20,
993
1005
  xl: 24
994
1006
  };
995
- function pr(e, o) {
1007
+ function ur(e, o) {
996
1008
  if (o.toLowerCase().startsWith("dockerfile"))
997
- return { icon: Ce, color: "var(--ov-info-default)" };
1009
+ return { icon: we, color: "var(--ov-info-default)" };
998
1010
  switch (e) {
999
1011
  case ".go":
1000
- return { icon: Ee, color: "#00ADD8" };
1012
+ return { icon: Le, color: "#00ADD8" };
1001
1013
  case ".ts":
1002
1014
  case ".tsx":
1003
- return { icon: Me, color: "#3178C6" };
1015
+ return { icon: Ee, color: "#3178C6" };
1004
1016
  case ".js":
1005
1017
  case ".jsx":
1006
1018
  case ".mjs":
1007
1019
  case ".cjs":
1008
- return { icon: ze, color: "#F7DF1E" };
1020
+ return { icon: Me, color: "#F7DF1E" };
1009
1021
  case ".py":
1010
- return { icon: Ie, color: "#3776AB" };
1022
+ return { icon: ze, color: "#3776AB" };
1011
1023
  case ".rs":
1012
- return { icon: we, color: "#DEA584" };
1024
+ return { icon: Ie, color: "#DEA584" };
1013
1025
  case ".yaml":
1014
1026
  case ".yml":
1015
1027
  return { icon: b, color: "var(--ov-info-default)" };
@@ -1019,7 +1031,7 @@ function pr(e, o) {
1019
1031
  case ".mdx":
1020
1032
  case ".txt":
1021
1033
  case ".log":
1022
- return { icon: de, color: "var(--ov-fg-muted)" };
1034
+ return { icon: fe, color: "var(--ov-fg-muted)" };
1023
1035
  case ".html":
1024
1036
  case ".htm":
1025
1037
  case ".xml":
@@ -1035,7 +1047,7 @@ function pr(e, o) {
1035
1047
  case ".gif":
1036
1048
  case ".webp":
1037
1049
  case ".ico":
1038
- return { icon: ce, color: "var(--ov-success-default)" };
1050
+ return { icon: de, color: "var(--ov-success-default)" };
1039
1051
  case ".toml":
1040
1052
  case ".ini":
1041
1053
  case ".env":
@@ -1052,15 +1064,15 @@ function pr(e, o) {
1052
1064
  case ".jsonc":
1053
1065
  return { icon: N, color: "#F5C518" };
1054
1066
  default:
1055
- return { icon: se, color: "var(--ov-fg-muted)" };
1067
+ return { icon: ce, color: "var(--ov-fg-muted)" };
1056
1068
  }
1057
1069
  }
1058
- function ur({
1070
+ function hr({
1059
1071
  filename: e,
1060
1072
  size: o = "sm",
1061
1073
  sx: t
1062
1074
  }) {
1063
- const i = fr[o], n = e.lastIndexOf("."), a = n >= 0 ? e.slice(n).toLowerCase() : "", l = e.split("/").pop() ?? e, { icon: f, color: p } = pr(a, l);
1075
+ const i = pr[o], n = e.lastIndexOf("."), a = n >= 0 ? e.slice(n).toLowerCase() : "", l = e.split("/").pop() ?? e, { icon: f, color: p } = ur(a, l);
1064
1076
  return /* @__PURE__ */ r(
1065
1077
  d,
1066
1078
  {
@@ -1075,8 +1087,8 @@ function ur({
1075
1087
  }
1076
1088
  );
1077
1089
  }
1078
- ur.displayName = "FileIcon";
1079
- function hr({
1090
+ hr.displayName = "FileIcon";
1091
+ function mr({
1080
1092
  items: e,
1081
1093
  maxVisible: o = 3,
1082
1094
  renderItem: t,
@@ -1133,8 +1145,8 @@ function hr({
1133
1145
  }
1134
1146
  );
1135
1147
  }
1136
- hr.displayName = "TruncatedList";
1137
- function mr({
1148
+ mr.displayName = "TruncatedList";
1149
+ function xr({
1138
1150
  query: e,
1139
1151
  suggestions: o,
1140
1152
  onSuggestionClick: t,
@@ -1152,7 +1164,7 @@ function mr({
1152
1164
  ...typeof i == "object" && !Array.isArray(i) ? i : {}
1153
1165
  },
1154
1166
  children: [
1155
- /* @__PURE__ */ r(Le, { sx: { fontSize: 32, color: "var(--ov-fg-faint)" } }),
1167
+ /* @__PURE__ */ r(Ae, { sx: { fontSize: 32, color: "var(--ov-fg-faint)" } }),
1156
1168
  /* @__PURE__ */ s(u, { sx: { fontSize: "var(--ov-text-sm)", color: "var(--ov-fg-muted)" }, children: [
1157
1169
  "No results for “",
1158
1170
  e,
@@ -1180,8 +1192,8 @@ function mr({
1180
1192
  }
1181
1193
  );
1182
1194
  }
1183
- mr.displayName = "EmptySearch";
1184
- function xr({
1195
+ xr.displayName = "EmptySearch";
1196
+ function gr({
1185
1197
  active: e,
1186
1198
  children: o,
1187
1199
  label: t,
@@ -1223,13 +1235,13 @@ function xr({
1223
1235
  }
1224
1236
  );
1225
1237
  }
1226
- xr.displayName = "LoadingOverlay";
1227
- function gr({ shortcut: e }) {
1238
+ gr.displayName = "LoadingOverlay";
1239
+ function vr({ shortcut: e }) {
1228
1240
  const o = e.split("+").map((t) => t.trim());
1229
- return /* @__PURE__ */ r(ye, { keys: o });
1241
+ return /* @__PURE__ */ r(Se, { keys: o });
1230
1242
  }
1231
- gr.displayName = "Kbd";
1232
- function vr({
1243
+ vr.displayName = "Kbd";
1244
+ function br({
1233
1245
  value: e,
1234
1246
  label: o,
1235
1247
  description: t,
@@ -1297,8 +1309,8 @@ function vr({
1297
1309
  }
1298
1310
  );
1299
1311
  }
1300
- vr.displayName = "StatCard";
1301
- function br({
1312
+ br.displayName = "StatCard";
1313
+ function yr({
1302
1314
  media: e,
1303
1315
  mediaHeight: o = 140,
1304
1316
  title: t,
@@ -1396,8 +1408,8 @@ function br({
1396
1408
  }
1397
1409
  );
1398
1410
  }
1399
- br.displayName = "MediaCard";
1400
- function yr({
1411
+ yr.displayName = "MediaCard";
1412
+ function Sr({
1401
1413
  icon: e,
1402
1414
  title: o,
1403
1415
  description: t,
@@ -1455,8 +1467,8 @@ function yr({
1455
1467
  }
1456
1468
  );
1457
1469
  }
1458
- yr.displayName = "ActionCard";
1459
- function Sr({
1470
+ Sr.displayName = "ActionCard";
1471
+ function Cr({
1460
1472
  title: e,
1461
1473
  icon: o,
1462
1474
  headerAction: t,
@@ -1511,7 +1523,7 @@ function Sr({
1511
1523
  }
1512
1524
  );
1513
1525
  return c.onClick ? /* @__PURE__ */ r(
1514
- Ae,
1526
+ Ne,
1515
1527
  {
1516
1528
  onClick: c.onClick,
1517
1529
  sx: { display: "block", width: "100%", textAlign: "left" },
@@ -1522,8 +1534,8 @@ function Sr({
1522
1534
  }) })
1523
1535
  ] });
1524
1536
  }
1525
- Sr.displayName = "ListCard";
1526
- function Cr({
1537
+ Cr.displayName = "ListCard";
1538
+ function wr({
1527
1539
  title: e,
1528
1540
  icon: o,
1529
1541
  status: t,
@@ -1554,7 +1566,7 @@ function Cr({
1554
1566
  /* @__PURE__ */ r(I, {}),
1555
1567
  /* @__PURE__ */ s(d, { sx: { px: 1.5, py: 1.25 }, children: [
1556
1568
  /* @__PURE__ */ s(h, { direction: "row", alignItems: "center", spacing: 1, children: [
1557
- /* @__PURE__ */ r(Ne, { status: t, pulse: t === "pending" }),
1569
+ /* @__PURE__ */ r(ke, { status: t, pulse: t === "pending" }),
1558
1570
  /* @__PURE__ */ r(
1559
1571
  u,
1560
1572
  {
@@ -1595,38 +1607,38 @@ function Cr({
1595
1607
  ] })
1596
1608
  ] });
1597
1609
  }
1598
- Cr.displayName = "StatusCard";
1610
+ wr.displayName = "StatusCard";
1599
1611
  export {
1600
- yr as ActionCard,
1601
- Ze as AspectRatio,
1602
- dr as Avatar,
1603
- or as Badge,
1604
- ke as Card,
1612
+ Sr as ActionCard,
1613
+ er as AspectRatio,
1614
+ fr as Avatar,
1615
+ nr as Badge,
1616
+ Be as Card,
1605
1617
  K as Chip,
1606
- ft as CircularProgress,
1607
- er as ClipboardText,
1608
- De as DetailsCard,
1609
- lt as Divider,
1610
- mr as EmptySearch,
1611
- Ve as ExpandableSection,
1612
- Ke as ExpandableSections,
1613
- ur as FileIcon,
1614
- ye as HotkeyHint,
1618
+ pt as CircularProgress,
1619
+ rr as ClipboardText,
1620
+ Te as DetailsCard,
1621
+ st as Divider,
1622
+ xr as EmptySearch,
1623
+ Ue as ExpandableSection,
1624
+ Ve as ExpandableSections,
1625
+ hr as FileIcon,
1626
+ Se as HotkeyHint,
1615
1627
  C as Icon,
1616
- tr as InlineEdit,
1617
- Te as KVCard,
1618
- gr as Kbd,
1619
- ct as LinearProgress,
1620
- Je as List,
1621
- Sr as ListCard,
1622
- Qe as ListDivider,
1623
- Xe as ListItem,
1624
- ut as ListSubheader,
1625
- xr as LoadingOverlay,
1626
- br as MediaCard,
1627
- nt as MetricsSection,
1628
- rr as OverflowText,
1629
- vr as StatCard,
1630
- Cr as StatusCard,
1631
- hr as TruncatedList
1628
+ or as InlineEdit,
1629
+ Fe as KVCard,
1630
+ vr as Kbd,
1631
+ dt as LinearProgress,
1632
+ Qe as List,
1633
+ Cr as ListCard,
1634
+ Xe as ListDivider,
1635
+ Ze as ListItem,
1636
+ ht as ListSubheader,
1637
+ gr as LoadingOverlay,
1638
+ yr as MediaCard,
1639
+ it as MetricsSection,
1640
+ tr as OverflowText,
1641
+ br as StatCard,
1642
+ wr as StatusCard,
1643
+ mr as TruncatedList
1632
1644
  };