@gravionlabs/helix-shell 22.1.27 → 22.1.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravionlabs/helix-shell",
3
- "version": "22.1.27",
3
+ "version": "22.1.29",
4
4
  "description": "Helix application shell for Angular — layout (topbar, nav rail, footer), auth pages, landing widgets, and a signal-store-backed layout state.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,7 +23,6 @@
23
23
  "@angular/core": ">=22",
24
24
  "@angular/router": ">=22",
25
25
  "@ngrx/signals": ">=21",
26
- "@gravionlabs/helix-core": ">=22",
27
26
  "@gravionlabs/helix-ui": ">=0.1.0",
28
27
  "primeicons": ">=7"
29
28
  },
package/styles.css CHANGED
@@ -16,7 +16,6 @@
16
16
  --color-orange-700: oklch(55.3% 0.195 38.402);
17
17
  --color-yellow-100: oklch(97.3% 0.071 103.193);
18
18
  --color-yellow-200: oklch(94.5% 0.129 101.54);
19
- --color-yellow-500: oklch(79.5% 0.184 86.047);
20
19
  --color-yellow-700: oklch(55.4% 0.135 66.442);
21
20
  --color-green-100: oklch(96.2% 0.044 156.743);
22
21
  --color-green-400: oklch(79.2% 0.209 151.711);
@@ -54,11 +53,8 @@
54
53
  --color-gray-600: oklch(44.6% 0.03 256.802);
55
54
  --color-gray-700: oklch(37.3% 0.034 259.733);
56
55
  --color-gray-900: oklch(21% 0.034 264.665);
57
- --color-black: #000;
58
56
  --color-white: #fff;
59
57
  --spacing: 0.25rem;
60
- --text-xs: 0.75rem;
61
- --text-xs--line-height: calc(1 / 0.75);
62
58
  --text-sm: 0.875rem;
63
59
  --text-sm--line-height: calc(1.25 / 0.875);
64
60
  --text-base: 1rem;
@@ -343,15 +339,6 @@
343
339
  .m-0 {
344
340
  margin: 0px;
345
341
  }
346
- .m-1 {
347
- margin: var(--spacing);
348
- }
349
- .m-2 {
350
- margin: calc(var(--spacing) * 2);
351
- }
352
- .m-3 {
353
- margin: calc(var(--spacing) * 3);
354
- }
355
342
  .m-auto {
356
343
  margin: auto;
357
344
  }
@@ -385,14 +372,14 @@
385
372
  .mt-1 {
386
373
  margin-top: var(--spacing);
387
374
  }
388
- .mt-1\! {
389
- margin-top: var(--spacing) !important;
390
- }
391
375
  .mt-2 {
392
376
  margin-top: calc(var(--spacing) * 2);
393
377
  }
394
- .mt-2\! {
395
- margin-top: calc(var(--spacing) * 2) !important;
378
+ .mt-3 {
379
+ margin-top: calc(var(--spacing) * 3);
380
+ }
381
+ .mt-3\! {
382
+ margin-top: calc(var(--spacing) * 3) !important;
396
383
  }
397
384
  .mt-4 {
398
385
  margin-top: calc(var(--spacing) * 4);
@@ -415,9 +402,6 @@
415
402
  .mr-4 {
416
403
  margin-right: calc(var(--spacing) * 4);
417
404
  }
418
- .mr-6 {
419
- margin-right: calc(var(--spacing) * 6);
420
- }
421
405
  .mr-20 {
422
406
  margin-right: calc(var(--spacing) * 20);
423
407
  }
@@ -463,9 +447,6 @@
463
447
  .ml-6 {
464
448
  margin-left: calc(var(--spacing) * 6);
465
449
  }
466
- .ml-auto {
467
- margin-left: auto;
468
- }
469
450
  .block {
470
451
  display: block;
471
452
  }
@@ -517,21 +498,12 @@
517
498
  .h-14 {
518
499
  height: calc(var(--spacing) * 14);
519
500
  }
520
- .h-100 {
521
- height: calc(var(--spacing) * 100);
522
- }
523
- .h-auto {
524
- height: auto;
525
- }
526
501
  .h-full {
527
502
  height: 100%;
528
503
  }
529
504
  .min-h-screen {
530
505
  min-height: 100vh;
531
506
  }
532
- .w-1\/2 {
533
- width: calc(1 / 2 * 100%);
534
- }
535
507
  .w-5 {
536
508
  width: calc(var(--spacing) * 5);
537
509
  }
@@ -544,9 +516,6 @@
544
516
  .w-10\/12 {
545
517
  width: calc(10 / 12 * 100%);
546
518
  }
547
- .w-11 {
548
- width: calc(var(--spacing) * 11);
549
- }
550
519
  .w-11\/12 {
551
520
  width: calc(11 / 12 * 100%);
552
521
  }
@@ -562,27 +531,18 @@
562
531
  .w-40 {
563
532
  width: calc(var(--spacing) * 40);
564
533
  }
565
- .w-44 {
566
- width: calc(var(--spacing) * 44);
567
- }
568
534
  .w-72 {
569
535
  width: calc(var(--spacing) * 72);
570
536
  }
571
537
  .w-full {
572
538
  width: 100%;
573
539
  }
574
- .max-w-\[17\.35rem\] {
575
- max-width: 17.35rem;
576
- }
577
540
  .min-w-screen {
578
541
  min-width: 100vw;
579
542
  }
580
543
  .flex-1 {
581
544
  flex: 1;
582
545
  }
583
- .flex-auto {
584
- flex: auto;
585
- }
586
546
  .flex-shrink {
587
547
  flex-shrink: 1;
588
548
  }
@@ -634,12 +594,6 @@
634
594
  .flex-col {
635
595
  flex-direction: column;
636
596
  }
637
- .flex-row {
638
- flex-direction: row;
639
- }
640
- .flex-row-reverse {
641
- flex-direction: row-reverse;
642
- }
643
597
  .flex-wrap {
644
598
  flex-wrap: wrap;
645
599
  }
@@ -676,12 +630,12 @@
676
630
  .gap-4 {
677
631
  gap: calc(var(--spacing) * 4);
678
632
  }
633
+ .gap-6 {
634
+ gap: calc(var(--spacing) * 6);
635
+ }
679
636
  .gap-8 {
680
637
  gap: calc(var(--spacing) * 8);
681
638
  }
682
- .gap-20 {
683
- gap: calc(var(--spacing) * 20);
684
- }
685
639
  .gap-layout {
686
640
  gap: var(--spacing-layout);
687
641
  }
@@ -744,12 +698,6 @@
744
698
  .border-surface-700 {
745
699
  border-color: var(--h-surface-700);
746
700
  }
747
- .bg-black\/70 {
748
- background-color: color-mix(in srgb, #000 70%, transparent);
749
- @supports (color: color-mix(in lab, red, red)) {
750
- background-color: color-mix(in oklab, var(--color-black) 70%, transparent);
751
- }
752
- }
753
701
  .bg-blue-50 {
754
702
  background-color: var(--color-blue-50);
755
703
  }
@@ -822,9 +770,6 @@
822
770
  .bg-surface-50 {
823
771
  background-color: var(--h-surface-50);
824
772
  }
825
- .bg-surface-100 {
826
- background-color: var(--h-surface-100);
827
- }
828
773
  .bg-surface-300 {
829
774
  background-color: var(--h-surface-300);
830
775
  }
@@ -843,9 +788,6 @@
843
788
  .p-0 {
844
789
  padding: 0px;
845
790
  }
846
- .p-1 {
847
- padding: var(--spacing);
848
- }
849
791
  .p-2 {
850
792
  padding: calc(var(--spacing) * 2);
851
793
  }
@@ -861,9 +803,6 @@
861
803
  .px-2 {
862
804
  padding-inline: calc(var(--spacing) * 2);
863
805
  }
864
- .px-3 {
865
- padding-inline: calc(var(--spacing) * 3);
866
- }
867
806
  .px-4 {
868
807
  padding-inline: calc(var(--spacing) * 4);
869
808
  }
@@ -906,21 +845,9 @@
906
845
  .pt-2 {
907
846
  padding-top: calc(var(--spacing) * 2);
908
847
  }
909
- .pt-3 {
910
- padding-top: calc(var(--spacing) * 3);
911
- }
912
848
  .pt-6 {
913
849
  padding-top: calc(var(--spacing) * 6);
914
850
  }
915
- .pt-12 {
916
- padding-top: calc(var(--spacing) * 12);
917
- }
918
- .pr-12 {
919
- padding-right: calc(var(--spacing) * 12);
920
- }
921
- .pb-0 {
922
- padding-bottom: 0px;
923
- }
924
851
  .pb-2 {
925
852
  padding-bottom: calc(var(--spacing) * 2);
926
853
  }
@@ -991,10 +918,6 @@
991
918
  font-size: var(--text-xl) !important;
992
919
  line-height: var(--tw-leading, var(--text-xl--line-height)) !important;
993
920
  }
994
- .text-xs {
995
- font-size: var(--text-xs);
996
- line-height: var(--tw-leading, var(--text-xs--line-height));
997
- }
998
921
  .leading-none {
999
922
  --tw-leading: 1;
1000
923
  line-height: 1;
@@ -1027,9 +950,6 @@
1027
950
  --tw-font-weight: var(--font-weight-semibold);
1028
951
  font-weight: var(--font-weight-semibold);
1029
952
  }
1030
- .whitespace-nowrap {
1031
- white-space: nowrap;
1032
- }
1033
953
  .bg-highlight {
1034
954
  background: var(--h-highlight-background);
1035
955
  color: var(--h-highlight-color);
@@ -1103,9 +1023,6 @@
1103
1023
  .text-slate-700 {
1104
1024
  color: var(--color-slate-700);
1105
1025
  }
1106
- .text-surface-500 {
1107
- color: var(--h-surface-500);
1108
- }
1109
1026
  .text-surface-600 {
1110
1027
  color: var(--h-surface-600);
1111
1028
  }
@@ -1124,9 +1041,6 @@
1124
1041
  .text-white {
1125
1042
  color: var(--color-white);
1126
1043
  }
1127
- .text-yellow-500 {
1128
- color: var(--color-yellow-500);
1129
- }
1130
1044
  .text-yellow-700 {
1131
1045
  color: var(--color-yellow-700);
1132
1046
  }
@@ -1215,6 +1129,10 @@
1215
1129
  --tw-ease: var(--ease-out);
1216
1130
  transition-timing-function: var(--ease-out);
1217
1131
  }
1132
+ .select-all {
1133
+ -webkit-user-select: all;
1134
+ user-select: all;
1135
+ }
1218
1136
  .select-none {
1219
1137
  -webkit-user-select: none;
1220
1138
  user-select: none;
@@ -1234,12 +1152,6 @@
1234
1152
  .sm\:col-span-6 {
1235
1153
  grid-column: span 6 / span 6;
1236
1154
  }
1237
- .sm\:flex-row {
1238
- flex-direction: row;
1239
- }
1240
- .sm\:items-center {
1241
- align-items: center;
1242
- }
1243
1155
  .sm\:px-20 {
1244
1156
  padding-inline: calc(var(--spacing) * 20);
1245
1157
  }
@@ -1305,30 +1217,18 @@
1305
1217
  .md\:w-5\/12 {
1306
1218
  width: calc(5 / 12 * 100%);
1307
1219
  }
1308
- .md\:w-40 {
1309
- width: calc(var(--spacing) * 40);
1310
- }
1311
1220
  .md\:w-120 {
1312
1221
  width: calc(var(--spacing) * 120);
1313
1222
  }
1314
1223
  .md\:w-auto {
1315
1224
  width: auto;
1316
1225
  }
1317
- .md\:flex-initial {
1318
- flex: 0 auto;
1319
- }
1320
- .md\:flex-col {
1321
- flex-direction: column;
1322
- }
1323
1226
  .md\:flex-row {
1324
1227
  flex-direction: row;
1325
1228
  }
1326
1229
  .md\:items-center {
1327
1230
  align-items: center;
1328
1231
  }
1329
- .md\:items-end {
1330
- align-items: flex-end;
1331
- }
1332
1232
  .md\:justify-between {
1333
1233
  justify-content: space-between;
1334
1234
  }
@@ -1385,12 +1285,6 @@
1385
1285
  .lg\:hidden\! {
1386
1286
  display: none !important;
1387
1287
  }
1388
- .lg\:w-1\/3 {
1389
- width: calc(1 / 3 * 100%);
1390
- }
1391
- .lg\:w-2\/3 {
1392
- width: calc(2 / 3 * 100%);
1393
- }
1394
1288
  .lg\:w-24 {
1395
1289
  width: calc(var(--spacing) * 24);
1396
1290
  }
@@ -1450,9 +1344,6 @@
1450
1344
  .xl\:col-span-6 {
1451
1345
  grid-column: span 6 / span 6;
1452
1346
  }
1453
- .xl\:block {
1454
- display: block;
1455
- }
1456
1347
  .xl\:grid-cols-2 {
1457
1348
  grid-template-columns: repeat(2, minmax(0, 1fr));
1458
1349
  }
@@ -1463,9 +1354,6 @@
1463
1354
  .dark\:border-surface-600:where([class*="app-dark"], [class*="app-dark"] *) {
1464
1355
  border-color: var(--h-surface-600);
1465
1356
  }
1466
- .dark\:border-surface-700:where([class*="app-dark"], [class*="app-dark"] *) {
1467
- border-color: var(--h-surface-700);
1468
- }
1469
1357
  .dark\:bg-blue-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
1470
1358
  background-color: color-mix(in srgb, oklch(70.7% 0.165 254.624) 10%, transparent);
1471
1359
  @supports (color: color-mix(in lab, red, red)) {
@@ -1508,9 +1396,6 @@
1508
1396
  .dark\:bg-surface-900:where([class*="app-dark"], [class*="app-dark"] *) {
1509
1397
  background-color: var(--h-surface-900);
1510
1398
  }
1511
- .dark\:bg-surface-900\!:where([class*="app-dark"], [class*="app-dark"] *) {
1512
- background-color: var(--h-surface-900) !important;
1513
- }
1514
1399
  .dark\:bg-surface-950:where([class*="app-dark"], [class*="app-dark"] *) {
1515
1400
  background-color: var(--h-surface-950);
1516
1401
  }
@@ -1529,9 +1414,6 @@
1529
1414
  .dark\:text-surface-200:where([class*="app-dark"], [class*="app-dark"] *) {
1530
1415
  color: var(--h-surface-200);
1531
1416
  }
1532
- .dark\:text-surface-400:where([class*="app-dark"], [class*="app-dark"] *) {
1533
- color: var(--h-surface-400);
1534
- }
1535
1417
  }
1536
1418
  @layer keyframes {
1537
1419
  @keyframes enter {
@@ -1850,34 +1732,36 @@ a {
1850
1732
  .h-toast.h-toast-top-right, .h-toast.h-toast-top-left, .h-toast.h-toast-top-center {
1851
1733
  top: 100px;
1852
1734
  }
1853
- h1, h2, h3, h4, h5, h6 {
1854
- margin: 1.5rem 0 1rem 0;
1855
- font-family: var(--helix-font-display);
1856
- font-weight: 700;
1857
- line-height: 1.3;
1858
- letter-spacing: -0.02em;
1859
- color: var(--text-color);
1860
- }
1861
- h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
1862
- margin-top: 0;
1863
- }
1864
- h1 {
1865
- font-size: 2.5rem;
1866
- }
1867
- h2 {
1868
- font-size: 2rem;
1869
- }
1870
- h3 {
1871
- font-size: 1.75rem;
1872
- }
1873
- h4 {
1874
- font-size: 1.5rem;
1875
- }
1876
- h5 {
1877
- font-size: 1.25rem;
1878
- }
1879
- h6 {
1880
- font-size: 1rem;
1735
+ @layer base {
1736
+ h1, h2, h3, h4, h5, h6 {
1737
+ margin: 1.5rem 0 1rem 0;
1738
+ font-family: var(--helix-font-display);
1739
+ font-weight: 700;
1740
+ line-height: 1.3;
1741
+ letter-spacing: -0.02em;
1742
+ color: var(--text-color);
1743
+ }
1744
+ h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
1745
+ margin-top: 0;
1746
+ }
1747
+ h1 {
1748
+ font-size: 2.5rem;
1749
+ }
1750
+ h2 {
1751
+ font-size: 2rem;
1752
+ }
1753
+ h3 {
1754
+ font-size: 1.75rem;
1755
+ }
1756
+ h4 {
1757
+ font-size: 1.5rem;
1758
+ }
1759
+ h5 {
1760
+ font-size: 1.25rem;
1761
+ }
1762
+ h6 {
1763
+ font-size: 1rem;
1764
+ }
1881
1765
  }
1882
1766
  mark {
1883
1767
  background: #fff8e1;
@@ -2,8 +2,7 @@ import { AbstractControl, ControlValueAccessor } from "@angular/forms";
2
2
  import * as i0 from "@angular/core";
3
3
  import { AfterViewInit, ElementRef, InjectionToken, OnDestroy, OnInit, Type } from "@angular/core";
4
4
  import { ActivatedRoute, ActivatedRouteSnapshot, CanActivateFn, Route, Router, Routes } from "@angular/router";
5
- import { MenuItem } from "@gravionlabs/helix-core/api";
6
- import { HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
5
+ import { HxMenuItem, HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
7
6
  export declare class HelixFormField {
8
7
  readonly label: import("@angular/core").InputSignal<string | undefined>;
9
8
  readonly control: import("@angular/core").InputSignal<AbstractControl<any, any, any> | null>;
@@ -99,7 +98,7 @@ interface HelixBreadcrumb {
99
98
  route?: string;
100
99
  }
101
100
  export declare const HELIX_BREADCRUMB: InjectionToken<HelixBreadcrumb[]>;
102
- export declare function helixBreadcrumbsFromRoutes(route: ActivatedRoute): MenuItem[];
101
+ export declare function helixBreadcrumbsFromRoutes(route: ActivatedRoute): HxMenuItem[];
103
102
  type BadgeSeverity = 'info' | 'warn' | 'error' | 'success';
104
103
  export declare class HelixBadge {
105
104
  severity: import("@angular/core").InputSignal<BadgeSeverity>;
@@ -148,10 +147,10 @@ export declare class HelixEnvironmentBadge {
148
147
  }, {}, never, never, true, never>;
149
148
  }
150
149
  /**
151
- * Extends Helix's MenuItem with Angular routing properties.
150
+ * Extends Helix's HxMenuItem with Angular routing properties.
152
151
  * Allows a single array to define both the sidebar menu and the router configuration.
153
152
  */
154
- interface HelixRouteMenuItem extends MenuItem {
153
+ interface HelixRouteMenuItem extends HxMenuItem {
155
154
  /** Angular route path segment (relative to the parent route). */
156
155
  path?: string;
157
156
  /** Breadcrumb label or resolver for auto-generated breadcrumbs. */
@@ -164,7 +163,7 @@ interface HelixRouteMenuItem extends MenuItem {
164
163
  canActivate?: CanActivateFn[];
165
164
  /** Additional route data (merged with the auto-injected menu data). */
166
165
  data?: Record<string, unknown>;
167
- /** Typed override of MenuItem.items — supports nested HelixRouteMenuItem entries. */
166
+ /** Typed override of HxMenuItem.items — supports nested HelixRouteMenuItem entries. */
168
167
  items?: HelixRouteMenuItem[];
169
168
  }
170
169
  /**
@@ -320,8 +319,8 @@ export declare class HelixAppLayout {
320
319
  toggleSidebar: () => void;
321
320
  setMenuHoverActive: (menuHoverActive: boolean) => void;
322
321
  updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
323
- setPrimary: (primary: import("../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxPrimaryColor | null) => void;
324
- setSurface: (surface: import("../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxSurface | null) => void;
322
+ setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
323
+ setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
325
324
  isDesktop: () => boolean;
326
325
  setDesktop: (desktop: boolean) => void;
327
326
  reset: () => void;
@@ -339,7 +338,7 @@ export declare class HelixAppLayout {
339
338
  }>;
340
339
  private activatedRoute;
341
340
  /** Resolved menu: input takes priority, then route data, then empty. */
342
- protected effectiveMenu: import("@angular/core").Signal<MenuItem[]>;
341
+ protected effectiveMenu: import("@angular/core").Signal<HxMenuItem[]>;
343
342
  protected effectiveNavGroups: import("@angular/core").Signal<HelixNavGroup[]>;
344
343
  protected effectiveEnvironment: import("@angular/core").Signal<Environment | undefined>;
345
344
  protected effectiveItems: import("@angular/core").Signal<HelixTopbarItem[]>;
@@ -913,7 +912,7 @@ export declare class HelixMobileMenuAction {
913
912
  export declare class HelixTopbar implements OnInit, OnDestroy {
914
913
  appTitle: import("@angular/core").InputSignal<string>;
915
914
  topbarActions: import("@angular/core").InputSignal<HelixTopbarAction[]>;
916
- breadcrumbs: import("@angular/core").InputSignal<MenuItem[] | undefined>;
915
+ breadcrumbs: import("@angular/core").InputSignal<HxMenuItem[] | undefined>;
917
916
  /** Accessible name of the button that opens the actions menu on small screens. */
918
917
  menuLabel: import("@angular/core").InputSignal<string>;
919
918
  items: import("@angular/core").InputSignal<HelixTopbarItem[]>;
@@ -970,7 +969,7 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
970
969
  private routeChange;
971
970
  ngOnInit(): void;
972
971
  ngOnDestroy(): void;
973
- protected effectiveBreadcrumbs: import("@angular/core").Signal<MenuItem[]>;
972
+ protected effectiveBreadcrumbs: import("@angular/core").Signal<HxMenuItem[]>;
974
973
  protected showBreadcrumbs: import("@angular/core").Signal<boolean>;
975
974
  static ɵfac: i0.ɵɵFactoryDeclaration<HelixTopbar, never>;
976
975
  static ɵcmp: i0.ɵɵComponentDeclaration<HelixTopbar, "helix-topbar", never, {