@gravionlabs/helix-shell 22.2.6 → 22.2.8

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/globals.css ADDED
@@ -0,0 +1,18 @@
1
+ /* Opt-in page globals of the shell (#938). Not part of styles.css, so component-only adopters keep the
2
+ rem and the body of their own application. Load it after styles.css (and the tokens) to get the Helix page look. */
3
+ html {
4
+ height: 100%;
5
+ font-size: 14px;
6
+ line-height: 1.2;
7
+ }
8
+
9
+ body {
10
+ font-family: var(--helix-font-sans);
11
+ color: var(--text-color);
12
+ background-color: var(--helix-surface-ground);
13
+ margin: 0;
14
+ padding: 0;
15
+ min-height: 100%;
16
+ -webkit-font-smoothing: antialiased;
17
+ -moz-osx-font-smoothing: grayscale;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravionlabs/helix-shell",
3
- "version": "22.2.6",
3
+ "version": "22.2.8",
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": [
@@ -40,7 +40,8 @@
40
40
  "types": "./types/gravionlabs-helix-shell.d.ts",
41
41
  "default": "./fesm2022/gravionlabs-helix-shell.mjs"
42
42
  },
43
- "./styles.css": "./styles.css"
43
+ "./styles.css": "./styles.css",
44
+ "./globals.css": "./globals.css"
44
45
  },
45
46
  "type": "module"
46
47
  }
package/styles.css CHANGED
@@ -1001,6 +1001,9 @@
1001
1001
  .no-underline {
1002
1002
  text-decoration-line: none;
1003
1003
  }
1004
+ .underline {
1005
+ text-decoration-line: underline;
1006
+ }
1004
1007
  .shadow {
1005
1008
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1006
1009
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -1271,64 +1274,64 @@
1271
1274
  grid-template-columns: repeat(2, minmax(0, 1fr));
1272
1275
  }
1273
1276
  }
1274
- .dark\:border-surface-500:where([class*="app-dark"], [class*="app-dark"] *) {
1277
+ .dark\:border-surface-500:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1275
1278
  border-color: var(--h-surface-500);
1276
1279
  }
1277
- .dark\:border-surface-600:where([class*="app-dark"], [class*="app-dark"] *) {
1280
+ .dark\:border-surface-600:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1278
1281
  border-color: var(--h-surface-600);
1279
1282
  }
1280
- .dark\:bg-blue-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
1283
+ .dark\:bg-blue-400\/10:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1281
1284
  background-color: color-mix(in srgb, oklch(70.7% 0.165 254.624) 10%, transparent);
1282
1285
  @supports (color: color-mix(in lab, red, red)) {
1283
1286
  background-color: color-mix(in oklab, var(--color-blue-400) 10%, transparent);
1284
1287
  }
1285
1288
  }
1286
- .dark\:bg-green-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
1289
+ .dark\:bg-green-400\/10:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1287
1290
  background-color: color-mix(in srgb, oklch(79.2% 0.209 151.711) 10%, transparent);
1288
1291
  @supports (color: color-mix(in lab, red, red)) {
1289
1292
  background-color: color-mix(in oklab, var(--color-green-400) 10%, transparent);
1290
1293
  }
1291
1294
  }
1292
- .dark\:bg-orange-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
1295
+ .dark\:bg-orange-400\/10:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1293
1296
  background-color: color-mix(in srgb, oklch(75% 0.183 55.934) 10%, transparent);
1294
1297
  @supports (color: color-mix(in lab, red, red)) {
1295
1298
  background-color: color-mix(in oklab, var(--color-orange-400) 10%, transparent);
1296
1299
  }
1297
1300
  }
1298
- .dark\:bg-pink-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
1301
+ .dark\:bg-pink-400\/10:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1299
1302
  background-color: color-mix(in srgb, oklch(71.8% 0.202 349.761) 10%, transparent);
1300
1303
  @supports (color: color-mix(in lab, red, red)) {
1301
1304
  background-color: color-mix(in oklab, var(--color-pink-400) 10%, transparent);
1302
1305
  }
1303
1306
  }
1304
- .dark\:bg-purple-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
1307
+ .dark\:bg-purple-400\/10:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1305
1308
  background-color: color-mix(in srgb, oklch(71.4% 0.203 305.504) 10%, transparent);
1306
1309
  @supports (color: color-mix(in lab, red, red)) {
1307
1310
  background-color: color-mix(in oklab, var(--color-purple-400) 10%, transparent);
1308
1311
  }
1309
1312
  }
1310
- .dark\:bg-surface-500:where([class*="app-dark"], [class*="app-dark"] *) {
1313
+ .dark\:bg-surface-500:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1311
1314
  background-color: var(--h-surface-500);
1312
1315
  }
1313
- .dark\:bg-surface-900:where([class*="app-dark"], [class*="app-dark"] *) {
1316
+ .dark\:bg-surface-900:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1314
1317
  background-color: var(--h-surface-900);
1315
1318
  }
1316
- .dark\:bg-surface-950:where([class*="app-dark"], [class*="app-dark"] *) {
1319
+ .dark\:bg-surface-950:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1317
1320
  background-color: var(--h-surface-950);
1318
1321
  }
1319
- .dark\:\!text-gray-700:where([class*="app-dark"], [class*="app-dark"] *) {
1322
+ .dark\:\!text-gray-700:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1320
1323
  color: var(--color-gray-700) !important;
1321
1324
  }
1322
- .dark\:text-gray-700:where([class*="app-dark"], [class*="app-dark"] *) {
1325
+ .dark\:text-gray-700:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1323
1326
  color: var(--color-gray-700);
1324
1327
  }
1325
- .dark\:text-surface-0:where([class*="app-dark"], [class*="app-dark"] *) {
1328
+ .dark\:text-surface-0:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1326
1329
  color: var(--h-surface-0);
1327
1330
  }
1328
- .dark\:text-surface-100:where([class*="app-dark"], [class*="app-dark"] *) {
1331
+ .dark\:text-surface-100:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1329
1332
  color: var(--h-surface-100);
1330
1333
  }
1331
- .dark\:text-surface-200:where([class*="app-dark"], [class*="app-dark"] *) {
1334
+ .dark\:text-surface-200:where([class*="app-dark"], [class*="app-dark"] *, [data-theme="dark"], [data-theme="dark"] * ) {
1332
1335
  color: var(--h-surface-200);
1333
1336
  }
1334
1337
  }
@@ -1598,7 +1601,7 @@
1598
1601
  --surface-hover: var(--helix-surface-hover);
1599
1602
  --surface-border: var(--helix-border);
1600
1603
  }
1601
- :root[class*="app-dark"] {
1604
+ :root[class*="app-dark"], :root[data-theme="dark"] {
1602
1605
  --helix-surface-ground: var(--h-surface-900);
1603
1606
  --helix-surface-chrome: var(--h-surface-950);
1604
1607
  --helix-surface-card: var(--h-surface-800);
@@ -1608,26 +1611,11 @@
1608
1611
  --code-background: var(--h-surface-950);
1609
1612
  --code-color: var(--h-surface-100);
1610
1613
  }
1611
- html {
1612
- height: 100%;
1613
- font-size: 14px;
1614
- line-height: 1.2;
1615
- }
1616
1614
  :root {
1617
1615
  --helix-font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
1618
1616
  --helix-font-display: var(--helix-font-sans);
1619
1617
  --helix-font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
1620
1618
  }
1621
- body {
1622
- font-family: var(--helix-font-sans);
1623
- color: var(--text-color);
1624
- background-color: var(--helix-surface-ground);
1625
- margin: 0;
1626
- padding: 0;
1627
- min-height: 100%;
1628
- -webkit-font-smoothing: antialiased;
1629
- -moz-osx-font-smoothing: grayscale;
1630
- }
1631
1619
  a {
1632
1620
  text-decoration: none;
1633
1621
  }
@@ -1,6 +1,6 @@
1
1
  import { AbstractControl, ControlValueAccessor } from "@angular/forms";
2
2
  import * as i0 from "@angular/core";
3
- import { AfterViewInit, ElementRef, InjectionToken, OnDestroy, OnInit, Type } from "@angular/core";
3
+ import { AfterViewInit, ElementRef, InjectionToken, OnDestroy, OnInit, TemplateRef, Type } from "@angular/core";
4
4
  import { ActivatedRoute, ActivatedRouteSnapshot, CanActivateFn, Route, Router, Routes } from "@angular/router";
5
5
  import { HxMenuItem, HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
6
6
  export declare class HelixFormField {
@@ -99,53 +99,6 @@ interface HelixBreadcrumb {
99
99
  }
100
100
  export declare const HELIX_BREADCRUMB: InjectionToken<HelixBreadcrumb[]>;
101
101
  export declare function helixBreadcrumbsFromRoutes(route: ActivatedRoute): HxMenuItem[];
102
- type BadgeSeverity = 'info' | 'warn' | 'error' | 'success';
103
- export declare class HelixBadge {
104
- severity: import("@angular/core").InputSignal<BadgeSeverity>;
105
- label: import("@angular/core").InputSignal<string | undefined>;
106
- icon: import("@angular/core").InputSignal<string | undefined>;
107
- size: import("@angular/core").InputSignal<"sm" | "md">;
108
- static ɵfac: i0.ɵɵFactoryDeclaration<HelixBadge, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<HelixBadge, "helix-badge", never, {
110
- "severity": {
111
- "alias": "severity";
112
- "required": true;
113
- "isSignal": true;
114
- };
115
- "label": {
116
- "alias": "label";
117
- "required": false;
118
- "isSignal": true;
119
- };
120
- "icon": {
121
- "alias": "icon";
122
- "required": false;
123
- "isSignal": true;
124
- };
125
- "size": {
126
- "alias": "size";
127
- "required": false;
128
- "isSignal": true;
129
- };
130
- }, {}, never, never, true, never>;
131
- }
132
- type Environment = 'development' | 'testing' | 'staging' | 'production';
133
- export declare class HelixEnvironmentBadge {
134
- environment: import("@angular/core").InputSignal<Environment>;
135
- protected mapped: import("@angular/core").Signal<{
136
- severity: BadgeSeverity;
137
- icon: string;
138
- label: string;
139
- }>;
140
- static ɵfac: i0.ɵɵFactoryDeclaration<HelixEnvironmentBadge, never>;
141
- static ɵcmp: i0.ɵɵComponentDeclaration<HelixEnvironmentBadge, "helix-environment-badge", never, {
142
- "environment": {
143
- "alias": "environment";
144
- "required": true;
145
- "isSignal": true;
146
- };
147
- }, {}, never, never, true, never>;
148
- }
149
102
  /**
150
103
  * Extends Helix's HxMenuItem with Angular routing properties.
151
104
  * Allows a single array to define both the sidebar menu and the router configuration.
@@ -260,7 +213,7 @@ interface HelixTopbarItem {
260
213
  }
261
214
  export declare class HelixAppLayout {
262
215
  appTitle: import("@angular/core").InputSignal<string>;
263
- environment: import("@angular/core").InputSignal<Environment | undefined>;
216
+ environment: import("@angular/core").InputSignal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
264
217
  /** Topbar items. When provided, overrides the default darkmode / configurator / mobile items. */
265
218
  topbarItems: import("@angular/core").InputSignal<HelixTopbarItem[] | undefined>;
266
219
  /** Topbar actions rendered in the right-side dropdown. */
@@ -271,8 +224,8 @@ export declare class HelixAppLayout {
271
224
  */
272
225
  brandIcon: import("@angular/core").InputSignal<string | undefined>;
273
226
  /** Status bar inputs */
274
- statusBarEnvironment: import("@angular/core").InputSignal<string | undefined>;
275
- statusBarNote: import("@angular/core").InputSignal<string | undefined>;
227
+ statusBarEnvironment: import("@angular/core").InputSignal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
228
+ statusBarNote: import("@angular/core").InputSignal<string | TemplateRef<unknown> | undefined>;
276
229
  statusBarTone: import("@angular/core").InputSignal<HelixStatusBarTone>;
277
230
  statusBarVersions: import("@angular/core").InputSignal<HelixStatusBarVersion[]>;
278
231
  statusBarBrand: import("@angular/core").InputSignal<string>;
@@ -340,7 +293,7 @@ export declare class HelixAppLayout {
340
293
  /** Resolved menu: input takes priority, then route data, then empty. */
341
294
  protected effectiveMenu: import("@angular/core").Signal<HxMenuItem[]>;
342
295
  protected effectiveNavGroups: import("@angular/core").Signal<HelixNavGroup[]>;
343
- protected effectiveEnvironment: import("@angular/core").Signal<Environment | undefined>;
296
+ protected effectiveEnvironment: import("@angular/core").Signal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
344
297
  protected effectiveItems: import("@angular/core").Signal<HelixTopbarItem[]>;
345
298
  protected effectiveTopbarActions: import("@angular/core").Signal<HelixTopbarAction[]>;
346
299
  constructor();
@@ -419,7 +372,7 @@ export declare class HelixAppLayout {
419
372
  "required": false;
420
373
  "isSignal": true;
421
374
  };
422
- }, {}, never, never, true, never>;
375
+ }, {}, never, ["[helixTopbarEnd]", "[hxStatusBarEnd]"], true, never>;
423
376
  }
424
377
  /** One choice of the chooser: its name and the colour of its round swatch. */
425
378
  interface Swatch<Name extends string> {
@@ -814,12 +767,15 @@ export declare class HelixNavRailItem implements AfterViewInit {
814
767
  }
815
768
  export declare class HelixStatusBar {
816
769
  brand: import("@angular/core").InputSignal<string>;
817
- environment: import("@angular/core").InputSignal<string | undefined>;
818
- note: import("@angular/core").InputSignal<string | undefined>;
770
+ environment: import("@angular/core").InputSignal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
771
+ /** Note text, or a template for richer content such as links. */
772
+ note: import("@angular/core").InputSignal<string | TemplateRef<unknown> | undefined>;
819
773
  versions: import("@angular/core").InputSignal<HelixStatusBarVersion[]>;
820
774
  tone: import("@angular/core").InputSignal<HelixStatusBarTone>;
821
775
  height: import("@angular/core").InputSignal<string>;
822
- protected envForBadge: import("@angular/core").Signal<Environment | undefined>;
776
+ protected envForBadge: import("@angular/core").Signal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
777
+ protected noteTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
778
+ protected noteText: import("@angular/core").Signal<string>;
823
779
  protected bgColor: import("@angular/core").Signal<string>;
824
780
  protected textColor: import("@angular/core").Signal<string>;
825
781
  static ɵfac: i0.ɵɵFactoryDeclaration<HelixStatusBar, never>;
@@ -854,7 +810,7 @@ export declare class HelixStatusBar {
854
810
  "required": false;
855
811
  "isSignal": true;
856
812
  };
857
- }, {}, never, never, true, never>;
813
+ }, {}, never, ["[hxStatusBarEnd]"], true, never>;
858
814
  }
859
815
  export declare class HelixConfiguratorAction {
860
816
  label: import("@angular/core").InputSignal<string>;
@@ -1486,6 +1442,59 @@ export declare class HelixNotfound {
1486
1442
  };
1487
1443
  }, {}, never, never, true, never>;
1488
1444
  }
1445
+ type BadgeSeverity = 'info' | 'warn' | 'error' | 'success';
1446
+ export declare class HelixBadge {
1447
+ severity: import("@angular/core").InputSignal<BadgeSeverity>;
1448
+ label: import("@angular/core").InputSignal<string | undefined>;
1449
+ icon: import("@angular/core").InputSignal<string | undefined>;
1450
+ size: import("@angular/core").InputSignal<"sm" | "md">;
1451
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelixBadge, never>;
1452
+ static ɵcmp: i0.ɵɵComponentDeclaration<HelixBadge, "helix-badge", never, {
1453
+ "severity": {
1454
+ "alias": "severity";
1455
+ "required": true;
1456
+ "isSignal": true;
1457
+ };
1458
+ "label": {
1459
+ "alias": "label";
1460
+ "required": false;
1461
+ "isSignal": true;
1462
+ };
1463
+ "icon": {
1464
+ "alias": "icon";
1465
+ "required": false;
1466
+ "isSignal": true;
1467
+ };
1468
+ "size": {
1469
+ "alias": "size";
1470
+ "required": false;
1471
+ "isSignal": true;
1472
+ };
1473
+ }, {}, never, never, true, never>;
1474
+ }
1475
+ type Environment = 'development' | 'testing' | 'staging' | 'production';
1476
+ /** Custom environment with a free label and a badge severity. */
1477
+ interface CustomEnvironment {
1478
+ label: string;
1479
+ severity: BadgeSeverity;
1480
+ }
1481
+ type EnvironmentValue = Environment | CustomEnvironment;
1482
+ export declare class HelixEnvironmentBadge {
1483
+ environment: import("@angular/core").InputSignal<string | CustomEnvironment>;
1484
+ protected mapped: import("@angular/core").Signal<{
1485
+ severity: BadgeSeverity;
1486
+ icon: string;
1487
+ label: string;
1488
+ }>;
1489
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelixEnvironmentBadge, never>;
1490
+ static ɵcmp: i0.ɵɵComponentDeclaration<HelixEnvironmentBadge, "helix-environment-badge", never, {
1491
+ "environment": {
1492
+ "alias": "environment";
1493
+ "required": true;
1494
+ "isSignal": true;
1495
+ };
1496
+ }, {}, never, never, true, never>;
1497
+ }
1489
1498
  type HelixEmptyStateSize = 'small' | 'medium';
1490
1499
  /**
1491
1500
  * The state of a list, table or page that has nothing to show: an icon, a title, a sentence that says what to do,
@@ -1669,4 +1678,4 @@ export declare class HelixStatCard {
1669
1678
  };
1670
1679
  }, {}, never, ["*"], true, never>;
1671
1680
  }
1672
- export type { AlertItem, BadgeSeverity, Environment, HelixBreadcrumb, HelixEmptyStateSize, HelixFeature, HelixFooterColumn, HelixFooterLink, HelixHighlight, HelixLoginCredentials, HelixNavGroup, HelixNavLink, HelixNavStyle, HelixNotfoundSuggestion, HelixPricingPlan, HelixRouteMenuItem, HelixStatSeverity, HelixStatusBarTone, HelixStatusBarVersion, HelixTestimonial, HelixTopbarAction, HelixTopbarItem, HelixTopbarItemType };
1681
+ export type { AlertItem, BadgeSeverity, CustomEnvironment, Environment, EnvironmentValue, HelixBreadcrumb, HelixEmptyStateSize, HelixFeature, HelixFooterColumn, HelixFooterLink, HelixHighlight, HelixLoginCredentials, HelixNavGroup, HelixNavLink, HelixNavStyle, HelixNotfoundSuggestion, HelixPricingPlan, HelixRouteMenuItem, HelixStatSeverity, HelixStatusBarTone, HelixStatusBarVersion, HelixTestimonial, HelixTopbarAction, HelixTopbarItem, HelixTopbarItemType };