@floegence/floe-webapp-core 0.35.10 → 0.35.11

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.
@@ -79,9 +79,6 @@
79
79
  --chart-4: oklch(0.68 0.16 150);
80
80
  --chart-5: oklch(0.78 0.14 80);
81
81
 
82
- /* Radius - Slightly smaller for refined look */
83
- --radius: 0.375rem;
84
-
85
82
  /* ============================================
86
83
  Selection Colors
87
84
  ============================================
package/dist/ui.css CHANGED
@@ -558,17 +558,17 @@
558
558
  ============================================================================= */
559
559
 
560
560
  .highlight-block {
561
- --hb-accent: oklch(0.5 0.1 240);
562
- --hb-header-bg: oklch(0.5 0.1 240 / 0.06);
563
- --hb-content-bg: oklch(0.5 0.1 240 / 0.04);
564
- --hb-border: oklch(0.5 0.1 240 / 0.12);
561
+ --hb-accent: var(--primary);
562
+ --hb-border: color-mix(in srgb, var(--hb-accent) 22%, var(--border));
563
+ --hb-header-bg: color-mix(in srgb, var(--hb-accent) 10%, var(--card));
564
+ --hb-content-bg: color-mix(in srgb, var(--hb-accent) 5%, var(--card));
565
+ --hb-title: color-mix(in srgb, var(--hb-accent) 64%, var(--foreground));
565
566
 
566
567
  border-radius: 6px;
567
568
  overflow: hidden;
568
569
  border: 1px solid var(--hb-border);
569
570
  }
570
571
 
571
- /* Header: left accent bar + light background */
572
572
  .highlight-block-header {
573
573
  display: flex;
574
574
  align-items: center;
@@ -581,7 +581,8 @@
581
581
 
582
582
  .highlight-block-icon {
583
583
  flex-shrink: 0;
584
- opacity: 0.9;
584
+ opacity: 0.95;
585
+ color: var(--hb-title);
585
586
  }
586
587
 
587
588
  .highlight-block-title {
@@ -589,9 +590,9 @@
589
590
  font-weight: 600;
590
591
  text-transform: uppercase;
591
592
  letter-spacing: 0.04em;
593
+ color: var(--hb-title);
592
594
  }
593
595
 
594
- /* Content: light colored background */
595
596
  .highlight-block-content {
596
597
  padding: 10px 14px 12px 17px;
597
598
  background: var(--hb-content-bg);
@@ -599,7 +600,7 @@
599
600
  margin-left: -1px;
600
601
  font-size: 12px;
601
602
  line-height: 1.65;
602
- color: color-mix(in srgb, var(--foreground) 85%, transparent);
603
+ color: color-mix(in srgb, var(--foreground) 90%, transparent);
603
604
  }
604
605
 
605
606
  .highlight-block-content > p { margin-bottom: 6px; }
@@ -614,132 +615,30 @@
614
615
  .highlight-block-content > ul { list-style-type: disc; }
615
616
  .highlight-block-content > ol { list-style-type: decimal; }
616
617
 
617
- /* ============ Info Variant ============ */
618
618
  .highlight-block-info {
619
- --hb-accent: oklch(0.52 0.14 245);
620
- --hb-header-bg: oklch(0.92 0.025 245);
621
- --hb-content-bg: oklch(0.97 0.012 245);
622
- --hb-border: oklch(0.86 0.04 245);
619
+ --hb-accent: var(--info);
623
620
  }
624
621
 
625
- :is(.dark) .highlight-block-info {
626
- --hb-accent: oklch(0.62 0.12 240);
627
- --hb-header-bg: oklch(0.25 0.035 240);
628
- --hb-content-bg: oklch(0.19 0.02 240);
629
- --hb-border: oklch(0.35 0.05 240);
630
- }
631
-
632
- .highlight-icon-info { color: oklch(0.50 0.14 245); }
633
- .highlight-title-info { color: oklch(0.40 0.10 245); }
634
-
635
- :is(.dark) .highlight-icon-info { color: oklch(0.70 0.12 240); }
636
- :is(.dark) .highlight-title-info { color: oklch(0.78 0.08 240); }
637
-
638
- /* ============ Warning Variant ============ */
639
622
  .highlight-block-warning {
640
- --hb-accent: oklch(0.62 0.16 65);
641
- --hb-header-bg: oklch(0.93 0.035 70);
642
- --hb-content-bg: oklch(0.97 0.018 70);
643
- --hb-border: oklch(0.88 0.05 70);
644
- }
645
-
646
- :is(.dark) .highlight-block-warning {
647
- --hb-accent: oklch(0.70 0.14 65);
648
- --hb-header-bg: oklch(0.25 0.04 65);
649
- --hb-content-bg: oklch(0.19 0.025 65);
650
- --hb-border: oklch(0.35 0.06 65);
623
+ --hb-accent: var(--warning);
651
624
  }
652
625
 
653
- .highlight-icon-warning { color: oklch(0.58 0.16 65); }
654
- .highlight-title-warning { color: oklch(0.45 0.12 65); }
655
-
656
- :is(.dark) .highlight-icon-warning { color: oklch(0.75 0.14 65); }
657
- :is(.dark) .highlight-title-warning { color: oklch(0.80 0.10 65); }
658
-
659
- /* ============ Success Variant ============ */
660
626
  .highlight-block-success {
661
- --hb-accent: oklch(0.55 0.14 155);
662
- --hb-header-bg: oklch(0.93 0.03 155);
663
- --hb-content-bg: oklch(0.97 0.015 155);
664
- --hb-border: oklch(0.88 0.045 155);
665
- }
666
-
667
- :is(.dark) .highlight-block-success {
668
- --hb-accent: oklch(0.62 0.12 155);
669
- --hb-header-bg: oklch(0.24 0.035 155);
670
- --hb-content-bg: oklch(0.18 0.02 155);
671
- --hb-border: oklch(0.34 0.05 155);
627
+ --hb-accent: var(--success);
672
628
  }
673
629
 
674
- .highlight-icon-success { color: oklch(0.52 0.14 155); }
675
- .highlight-title-success { color: oklch(0.40 0.10 155); }
676
-
677
- :is(.dark) .highlight-icon-success { color: oklch(0.68 0.12 155); }
678
- :is(.dark) .highlight-title-success { color: oklch(0.75 0.08 155); }
679
-
680
- /* ============ Error Variant ============ */
681
630
  .highlight-block-error {
682
- --hb-accent: oklch(0.55 0.16 25);
683
- --hb-header-bg: oklch(0.93 0.025 20);
684
- --hb-content-bg: oklch(0.97 0.012 20);
685
- --hb-border: oklch(0.88 0.04 20);
631
+ --hb-accent: var(--error);
686
632
  }
687
633
 
688
- :is(.dark) .highlight-block-error {
689
- --hb-accent: oklch(0.60 0.14 25);
690
- --hb-header-bg: oklch(0.24 0.035 25);
691
- --hb-content-bg: oklch(0.18 0.02 25);
692
- --hb-border: oklch(0.34 0.05 25);
693
- }
694
-
695
- .highlight-icon-error { color: oklch(0.52 0.16 25); }
696
- .highlight-title-error { color: oklch(0.42 0.12 25); }
697
-
698
- :is(.dark) .highlight-icon-error { color: oklch(0.68 0.14 25); }
699
- :is(.dark) .highlight-title-error { color: oklch(0.75 0.10 25); }
700
-
701
- /* ============ Note Variant ============ */
702
634
  .highlight-block-note {
703
- --hb-accent: oklch(0.52 0.16 285);
704
- --hb-header-bg: oklch(0.93 0.025 285);
705
- --hb-content-bg: oklch(0.97 0.012 285);
706
- --hb-border: oklch(0.88 0.04 285);
707
- }
708
-
709
- :is(.dark) .highlight-block-note {
710
- --hb-accent: oklch(0.62 0.14 285);
711
- --hb-header-bg: oklch(0.24 0.035 285);
712
- --hb-content-bg: oklch(0.18 0.02 285);
713
- --hb-border: oklch(0.34 0.05 285);
635
+ --hb-accent: color-mix(in srgb, var(--primary) 72%, var(--info) 28%);
714
636
  }
715
637
 
716
- .highlight-icon-note { color: oklch(0.50 0.16 285); }
717
- .highlight-title-note { color: oklch(0.40 0.12 285); }
718
-
719
- :is(.dark) .highlight-icon-note { color: oklch(0.68 0.14 285); }
720
- :is(.dark) .highlight-title-note { color: oklch(0.75 0.10 285); }
721
-
722
- /* ============ Tip Variant ============ */
723
638
  .highlight-block-tip {
724
- --hb-accent: oklch(0.52 0.12 175);
725
- --hb-header-bg: oklch(0.93 0.02 175);
726
- --hb-content-bg: oklch(0.97 0.01 175);
727
- --hb-border: oklch(0.88 0.03 175);
728
- }
729
-
730
- :is(.dark) .highlight-block-tip {
731
- --hb-accent: oklch(0.60 0.10 175);
732
- --hb-header-bg: oklch(0.24 0.025 175);
733
- --hb-content-bg: oklch(0.18 0.015 175);
734
- --hb-border: oklch(0.34 0.04 175);
639
+ --hb-accent: color-mix(in srgb, var(--success) 72%, var(--info) 28%);
735
640
  }
736
641
 
737
- .highlight-icon-tip { color: oklch(0.48 0.12 175); }
738
- .highlight-title-tip { color: oklch(0.38 0.08 175); }
739
-
740
- :is(.dark) .highlight-icon-tip { color: oklch(0.66 0.10 175); }
741
- :is(.dark) .highlight-title-tip { color: oklch(0.72 0.06 175); }
742
-
743
642
  /* =============================================================================
744
643
  Charts - Professional Data Visualization
745
644
  ============================================================================= */
@@ -774,7 +673,7 @@
774
673
  .chart-axis-label {
775
674
  font-size: 10px;
776
675
  fill: var(--muted-foreground);
777
- font-family: var(--font-sans, system-ui);
676
+ font-family: var(--font-sans);
778
677
  }
779
678
 
780
679
  /* Line chart */
@@ -815,7 +714,7 @@
815
714
  fill: var(--popover);
816
715
  stroke: var(--border);
817
716
  stroke-width: 1;
818
- filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
717
+ filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--foreground) 12%, transparent));
819
718
  pointer-events: none;
820
719
  }
821
720
 
@@ -823,14 +722,14 @@
823
722
  font-size: 9px;
824
723
  font-weight: 600;
825
724
  fill: var(--foreground);
826
- font-family: var(--font-sans, system-ui);
725
+ font-family: var(--font-sans);
827
726
  pointer-events: none;
828
727
  }
829
728
 
830
729
  .chart-tooltip-value {
831
730
  font-size: 8px;
832
731
  fill: var(--muted-foreground);
833
- font-family: var(--font-mono, monospace);
732
+ font-family: var(--font-mono);
834
733
  pointer-events: none;
835
734
  }
836
735
 
@@ -852,7 +751,7 @@
852
751
  font-size: 10px;
853
752
  fill: var(--foreground);
854
753
  font-weight: 500;
855
- font-family: var(--font-mono, monospace);
754
+ font-family: var(--font-mono);
856
755
  }
857
756
 
858
757
  /* Pie chart */
@@ -889,13 +788,13 @@
889
788
  font-size: 18px;
890
789
  font-weight: 700;
891
790
  fill: var(--foreground);
892
- font-family: var(--font-sans, system-ui);
791
+ font-family: var(--font-sans);
893
792
  }
894
793
 
895
794
  .chart-pie-center-sublabel {
896
795
  font-size: 8px;
897
796
  fill: var(--muted-foreground);
898
- font-family: var(--font-sans, system-ui);
797
+ font-family: var(--font-sans);
899
798
  }
900
799
 
901
800
  .chart-pie-legend {
@@ -935,7 +834,7 @@
935
834
  font-size: 11px;
936
835
  font-weight: 500;
937
836
  color: var(--foreground);
938
- font-family: var(--font-mono, monospace);
837
+ font-family: var(--font-mono);
939
838
  margin-left: 4px;
940
839
  }
941
840
 
@@ -965,18 +864,18 @@
965
864
  width: 6px;
966
865
  height: 6px;
967
866
  border-radius: 50%;
968
- background: oklch(0.65 0.18 145);
867
+ background: var(--success);
969
868
  animation: chart-monitoring-pulse 1.5s ease-in-out infinite;
970
869
  }
971
870
 
972
871
  @keyframes chart-monitoring-pulse {
973
872
  0%, 100% {
974
873
  opacity: 1;
975
- box-shadow: 0 0 0 0 oklch(0.65 0.18 145 / 0.5);
874
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent);
976
875
  }
977
876
  50% {
978
877
  opacity: 0.8;
979
- box-shadow: 0 0 0 4px oklch(0.65 0.18 145 / 0);
878
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 0%, transparent);
980
879
  }
981
880
  }
982
881
 
@@ -1170,7 +1069,7 @@
1170
1069
  border-radius: 0;
1171
1070
  background: color-mix(in srgb, var(--error) 86%, var(--terminal-background));
1172
1071
  color: var(--error-foreground);
1173
- font-family: var(--font-mono, ui-monospace, monospace);
1072
+ font-family: var(--font-mono);
1174
1073
  font-size: 0.625rem;
1175
1074
  font-weight: 700;
1176
1075
  line-height: 1;
@@ -1236,7 +1135,7 @@
1236
1135
  border-radius: 0;
1237
1136
  background: var(--mobile-keyboard-suggestion-bg);
1238
1137
  color: var(--mobile-keyboard-suggestion-fg);
1239
- font-family: var(--font-mono, ui-monospace, monospace);
1138
+ font-family: var(--font-mono);
1240
1139
  font-size: 0.6875rem;
1241
1140
  font-weight: 600;
1242
1141
  line-height: 1;
@@ -1265,15 +1164,15 @@
1265
1164
  }
1266
1165
 
1267
1166
  .mobile-keyboard-suggestion[data-kind='script'] {
1268
- border-left-color: color-mix(in srgb, #22c55e 56%, var(--mobile-keyboard-suggestion-border));
1167
+ border-left-color: color-mix(in srgb, var(--success) 56%, var(--mobile-keyboard-suggestion-border));
1269
1168
  }
1270
1169
 
1271
1170
  .mobile-keyboard-suggestion[data-kind='path'] {
1272
- border-left-color: color-mix(in srgb, #38bdf8 56%, var(--mobile-keyboard-suggestion-border));
1171
+ border-left-color: color-mix(in srgb, var(--info) 56%, var(--mobile-keyboard-suggestion-border));
1273
1172
  }
1274
1173
 
1275
1174
  .mobile-keyboard-suggestion[data-kind='snippet'] {
1276
- border-left-color: color-mix(in srgb, #f59e0b 56%, var(--mobile-keyboard-suggestion-border));
1175
+ border-left-color: color-mix(in srgb, var(--warning) 56%, var(--mobile-keyboard-suggestion-border));
1277
1176
  }
1278
1177
 
1279
1178
  .mobile-keyboard-main {
@@ -1306,7 +1205,7 @@
1306
1205
  border-radius: 0;
1307
1206
  background: var(--mobile-keyboard-key-bg);
1308
1207
  color: var(--mobile-keyboard-key-fg);
1309
- font-family: var(--font-mono, ui-monospace, monospace);
1208
+ font-family: var(--font-mono);
1310
1209
  font-size: 0.8125rem;
1311
1210
  font-weight: 600;
1312
1211
  line-height: 1;
@@ -1418,7 +1317,7 @@
1418
1317
  border-radius: 0;
1419
1318
  background: var(--mobile-keyboard-popup-bg);
1420
1319
  color: var(--mobile-keyboard-popup-fg);
1421
- font-family: var(--font-mono, ui-monospace, monospace);
1320
+ font-family: var(--font-mono);
1422
1321
  font-size: 0.75rem;
1423
1322
  font-weight: 600;
1424
1323
  line-height: 1;
@@ -1,28 +1,28 @@
1
- import { insert as r, createComponent as s, effect as x, className as f, template as M } from "solid-js/web";
1
+ import { insert as r, createComponent as s, effect as f, className as x, template as M } from "solid-js/web";
2
2
  import { createSignal as u, onMount as p, onCleanup as w } from "solid-js";
3
3
  import { cn as v } from "../utils/cn.js";
4
4
  var _ = /* @__PURE__ */ M('<div><div class="grid grid-cols-2 gap-3 h-full">'), $ = /* @__PURE__ */ M('<div class="bg-muted/30 rounded-md p-2 flex flex-col justify-center"><div class="text-xs text-muted-foreground mb-1"></div><div class="flex items-baseline gap-1"><span></span><span class="text-xs text-muted-foreground">');
5
- function N(t) {
6
- const [l, o] = u(Math.random() * 100), [i, a] = u(Math.random() * 100), [m, h] = u(Math.random() * 1e3), [C, b] = u(Math.random() * 500);
5
+ function N(e) {
6
+ const [a, o] = u(Math.random() * 100), [i, l] = u(Math.random() * 100), [m, h] = u(Math.random() * 1e3), [C, b] = u(Math.random() * 500);
7
7
  let c;
8
8
  p(() => {
9
- t.isEditMode || (c = window.setInterval(() => {
10
- o((e) => Math.max(0, Math.min(100, e + (Math.random() - 0.5) * 10))), a((e) => Math.max(0, Math.min(100, e + (Math.random() - 0.5) * 5))), h(Math.random() * 1e3), b(Math.random() * 500);
9
+ e.isEditMode || (c = window.setInterval(() => {
10
+ o((t) => Math.max(0, Math.min(100, t + (Math.random() - 0.5) * 10))), l((t) => Math.max(0, Math.min(100, t + (Math.random() - 0.5) * 5))), h(Math.random() * 1e3), b(Math.random() * 500);
11
11
  }, 2e3));
12
12
  }), w(() => {
13
13
  c && clearInterval(c);
14
14
  });
15
- const g = (e, n) => e >= n.danger ? "text-destructive" : e >= n.warning ? "text-yellow-500" : "text-green-500";
15
+ const g = (t, n) => t >= n.danger ? "text-destructive" : t >= n.warning ? "text-warning" : "text-success";
16
16
  return (() => {
17
- var e = _(), n = e.firstChild;
17
+ var t = _(), n = t.firstChild;
18
18
  return r(n, s(d, {
19
19
  label: "CPU",
20
20
  get value() {
21
- return l().toFixed(1);
21
+ return a().toFixed(1);
22
22
  },
23
23
  unit: "%",
24
24
  get colorClass() {
25
- return g(l(), {
25
+ return g(a(), {
26
26
  warning: 60,
27
27
  danger: 80
28
28
  });
@@ -45,21 +45,21 @@ function N(t) {
45
45
  return m().toFixed(0);
46
46
  },
47
47
  unit: "KB/s",
48
- colorClass: "text-blue-500"
48
+ colorClass: "text-info"
49
49
  }), null), r(n, s(d, {
50
50
  label: "Network Out",
51
51
  get value() {
52
52
  return C().toFixed(0);
53
53
  },
54
54
  unit: "KB/s",
55
- colorClass: "text-purple-500"
56
- }), null), x(() => f(e, v("h-full p-3", t.isEditMode && "pointer-events-none"))), e;
55
+ colorClass: "text-primary"
56
+ }), null), f(() => x(t, v("h-full p-3", e.isEditMode && "pointer-events-none"))), t;
57
57
  })();
58
58
  }
59
- function d(t) {
59
+ function d(e) {
60
60
  return (() => {
61
- var l = $(), o = l.firstChild, i = o.nextSibling, a = i.firstChild, m = a.nextSibling;
62
- return r(o, () => t.label), r(a, () => t.value), r(m, () => t.unit), x(() => f(a, v("text-lg font-semibold tabular-nums", t.colorClass))), l;
61
+ var a = $(), o = a.firstChild, i = o.nextSibling, l = i.firstChild, m = l.nextSibling;
62
+ return r(o, () => e.label), r(l, () => e.value), r(m, () => e.unit), f(() => x(l, v("text-lg font-semibold tabular-nums", e.colorClass))), a;
63
63
  })();
64
64
  }
65
65
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.35.10",
3
+ "version": "0.35.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",