@gravionlabs/helix-shell 22.5.1 → 22.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravionlabs/helix-shell",
3
- "version": "22.5.1",
3
+ "version": "22.7.0",
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": [
package/styles.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer theme, base, components, utilities;
4
4
  @layer theme {
@@ -1360,13 +1360,13 @@
1360
1360
  @keyframes enter {
1361
1361
  from {
1362
1362
  opacity: var(--h-enter-opacity, 1);
1363
- transform: translate3d( var(--h-enter-translate-x, 0), var(--h-enter-translate-y, 0), 0 ) scale3d( var(--h-enter-scale, 1), var(--h-enter-scale, 1), var(--h-enter-scale, 1) ) rotate(var(--h-enter-rotate, 0));
1363
+ transform: translate3d(var(--h-enter-translate-x, 0), var(--h-enter-translate-y, 0), 0) scale3d(var(--h-enter-scale, 1), var(--h-enter-scale, 1), var(--h-enter-scale, 1)) rotate(var(--h-enter-rotate, 0));
1364
1364
  }
1365
1365
  }
1366
1366
  @keyframes leave {
1367
1367
  to {
1368
1368
  opacity: var(--h-leave-opacity, 1);
1369
- transform: translate3d( var(--h-leave-translate-x, 0), var(--h-leave-translate-y, 0), 0 ) scale3d( var(--h-leave-scale, 1), var(--h-leave-scale, 1), var(--h-leave-scale, 1) ) rotate(var(--h-leave-rotate, 0));
1369
+ transform: translate3d(var(--h-leave-translate-x, 0), var(--h-leave-translate-y, 0), 0) scale3d(var(--h-leave-scale, 1), var(--h-leave-scale, 1), var(--h-leave-scale, 1)) rotate(var(--h-leave-rotate, 0));
1370
1370
  }
1371
1371
  }
1372
1372
  @keyframes fadein {
@@ -1555,7 +1555,7 @@
1555
1555
  }
1556
1556
  }
1557
1557
  @keyframes zoomin {
1558
- from {
1558
+ 0% {
1559
1559
  transform: scale3d(0.3, 0.3, 0.3);
1560
1560
  opacity: 0;
1561
1561
  }
@@ -1564,7 +1564,7 @@
1564
1564
  }
1565
1565
  }
1566
1566
  @keyframes zoomindown {
1567
- from {
1567
+ 0% {
1568
1568
  transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
1569
1569
  opacity: 0;
1570
1570
  }
@@ -1574,7 +1574,7 @@
1574
1574
  }
1575
1575
  }
1576
1576
  @keyframes zoominleft {
1577
- from {
1577
+ 0% {
1578
1578
  transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);
1579
1579
  opacity: 0;
1580
1580
  }
@@ -1607,12 +1607,8 @@
1607
1607
  --helix-panel-gap: 4px;
1608
1608
  --helix-panel-radius: 6px;
1609
1609
  --helix-control-height: 32px;
1610
- --helix-surface-chrome: var(
1611
- --h-surface-frame
1612
- );
1613
- --helix-surface-ground: var(
1614
- --h-surface-panel
1615
- );
1610
+ --helix-surface-chrome: var(--h-surface-frame);
1611
+ --helix-surface-ground: var(--h-surface-panel);
1616
1612
  --helix-surface-card: var(--h-surface-card);
1617
1613
  --helix-surface-overlay: var(--h-surface-overlay);
1618
1614
  --helix-surface-hover: var(--h-surface-hover);
@@ -1633,12 +1629,12 @@
1633
1629
  :root {
1634
1630
  --helix-font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
1635
1631
  --helix-font-display: var(--helix-font-sans);
1636
- --helix-font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
1632
+ --helix-font-mono: ui-monospace, "SF Mono", menlo, monaco, consolas, monospace;
1637
1633
  }
1638
1634
  a {
1639
1635
  text-decoration: none;
1640
1636
  }
1641
- .clearfix:after {
1637
+ .clearfix::after {
1642
1638
  content: " ";
1643
1639
  display: block;
1644
1640
  clear: both;
@@ -1658,7 +1654,7 @@ a {
1658
1654
  }
1659
1655
  @layer base {
1660
1656
  h1, h2, h3, h4, h5, h6 {
1661
- margin: 1.5rem 0 1rem 0;
1657
+ margin: 1.5rem 0 1rem;
1662
1658
  font-family: var(--helix-font-display);
1663
1659
  font-weight: 700;
1664
1660
  line-height: 1.3;
@@ -1688,7 +1684,7 @@ a {
1688
1684
  }
1689
1685
  }
1690
1686
  mark {
1691
- background: #fff8e1;
1687
+ background: var(--h-highlight-background);
1692
1688
  padding: 0.25rem 0.4rem;
1693
1689
  border-radius: var(--content-border-radius);
1694
1690
  font-family: var(--helix-font-mono);
@@ -1696,15 +1692,15 @@ mark {
1696
1692
  blockquote {
1697
1693
  margin: 1rem 0;
1698
1694
  padding: 0 2rem;
1699
- border-left: 4px solid #90a4ae;
1695
+ border-left: 4px solid var(--h-border-panel);
1700
1696
  }
1701
1697
  hr {
1702
1698
  border-top: solid var(--helix-border);
1703
- border-width: 1px 0 0 0;
1699
+ border-width: 1px 0 0;
1704
1700
  margin: 1rem 0;
1705
1701
  }
1706
1702
  p {
1707
- margin: 0 0 1rem 0;
1703
+ margin: 0 0 1rem;
1708
1704
  line-height: 1.5;
1709
1705
  }
1710
1706
  p:last-child {
@@ -1713,7 +1709,7 @@ p:last-child {
1713
1709
  .preloader {
1714
1710
  position: fixed;
1715
1711
  z-index: 999999;
1716
- background: #edf1f5;
1712
+ background: var(--h-surface-frame);
1717
1713
  width: 100%;
1718
1714
  height: 100%;
1719
1715
  }
@@ -1726,7 +1722,7 @@ p:last-child {
1726
1722
  top: calc(50vh - 75px);
1727
1723
  left: calc(50vw - 75px);
1728
1724
  }
1729
- .preloader-content:before, .preloader-content:after {
1725
+ .preloader-content::before, .preloader-content::after {
1730
1726
  content: "";
1731
1727
  border: 1em solid var(--primary-color);
1732
1728
  border-radius: 50%;
@@ -1738,7 +1734,7 @@ p:last-child {
1738
1734
  animation: loader 2s linear infinite;
1739
1735
  opacity: 0;
1740
1736
  }
1741
- .preloader-content:before {
1737
+ .preloader-content::before {
1742
1738
  animation-delay: 0.5s;
1743
1739
  }
1744
1740
  @keyframes loader {
@@ -61,7 +61,7 @@ export declare class HelixSelect implements ControlValueAccessor {
61
61
  writeValue(value: any): void;
62
62
  registerOnChange(fn: any): void;
63
63
  registerOnTouched(fn: any): void;
64
- setDisabledState?(isDisabled: boolean): void;
64
+ setDisabledState?(_isDisabled: boolean): void;
65
65
  onSelectChange(event: Event): void;
66
66
  protected isSelected(optValue: any): boolean;
67
67
  static ɵfac: i0.ɵɵFactoryDeclaration<HelixSelect, never>;
@@ -99,6 +99,59 @@ 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
+ /** Custom environment with a free label and a badge severity. */
134
+ interface CustomEnvironment {
135
+ label: string;
136
+ severity: BadgeSeverity;
137
+ }
138
+ type EnvironmentValue = Environment | CustomEnvironment;
139
+ export declare class HelixEnvironmentBadge {
140
+ environment: import("@angular/core").InputSignal<EnvironmentValue | (string & {})>;
141
+ protected mapped: import("@angular/core").Signal<{
142
+ severity: BadgeSeverity;
143
+ icon: string;
144
+ label: string;
145
+ }>;
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelixEnvironmentBadge, never>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<HelixEnvironmentBadge, "helix-environment-badge", never, {
148
+ "environment": {
149
+ "alias": "environment";
150
+ "required": true;
151
+ "isSignal": true;
152
+ };
153
+ }, {}, never, never, true, never>;
154
+ }
102
155
  /**
103
156
  * Extends Helix's HxMenuItem with Angular routing properties.
104
157
  * Allows a single array to define both the sidebar menu and the router configuration.
@@ -224,7 +277,7 @@ export declare const HELIX_DEFAULT_TOPBAR_ACTIONS: readonly HelixTopbarActionCon
224
277
  export declare function defineTopbarActions(defaults: readonly HelixTopbarActionConfig[], overrides?: readonly HelixTopbarActionConfig[]): HelixTopbarActionConfig[];
225
278
  export declare class HelixAppLayout {
226
279
  appTitle: import("@angular/core").InputSignal<string>;
227
- environment: import("@angular/core").InputSignal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
280
+ environment: import("@angular/core").InputSignal<EnvironmentValue | (string & {}) | undefined>;
228
281
  /** Page title of the header where there is no breadcrumb trail. Defaults to the route title. */
229
282
  pageTitle: import("@angular/core").InputSignal<string | undefined>;
230
283
  /**
@@ -245,7 +298,7 @@ export declare class HelixAppLayout {
245
298
  */
246
299
  brandIcon: import("@angular/core").InputSignal<string | undefined>;
247
300
  /** Status bar inputs */
248
- statusBarEnvironment: import("@angular/core").InputSignal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
301
+ statusBarEnvironment: import("@angular/core").InputSignal<EnvironmentValue | (string & {}) | undefined>;
249
302
  statusBarNote: import("@angular/core").InputSignal<string | TemplateRef<unknown> | undefined>;
250
303
  statusBarTone: import("@angular/core").InputSignal<HelixStatusBarTone>;
251
304
  statusBarVersions: import("@angular/core").InputSignal<HelixStatusBarVersion[]>;
@@ -320,7 +373,7 @@ export declare class HelixAppLayout {
320
373
  /** Resolved menu: input takes priority, then route data, then empty. */
321
374
  protected effectiveMenu: import("@angular/core").Signal<HxMenuItem[]>;
322
375
  protected effectiveNavGroups: import("@angular/core").Signal<HelixNavGroup[]>;
323
- protected effectiveEnvironment: import("@angular/core").Signal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
376
+ protected effectiveEnvironment: import("@angular/core").Signal<EnvironmentValue | (string & {}) | undefined>;
324
377
  /** The scrolling content panel; the document itself no longer scrolls. */
325
378
  private mainPanel;
326
379
  /** Optional so apps without the Router keep working. */
@@ -855,13 +908,13 @@ export declare class HelixNavRailItem implements AfterViewInit {
855
908
  }
856
909
  export declare class HelixStatusBar {
857
910
  brand: import("@angular/core").InputSignal<string>;
858
- environment: import("@angular/core").InputSignal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
911
+ environment: import("@angular/core").InputSignal<EnvironmentValue | (string & {}) | undefined>;
859
912
  /** Note text, or a template for richer content such as links. */
860
913
  note: import("@angular/core").InputSignal<string | TemplateRef<unknown> | undefined>;
861
914
  versions: import("@angular/core").InputSignal<HelixStatusBarVersion[]>;
862
915
  tone: import("@angular/core").InputSignal<HelixStatusBarTone>;
863
916
  height: import("@angular/core").InputSignal<string>;
864
- protected envForBadge: import("@angular/core").Signal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
917
+ protected envForBadge: import("@angular/core").Signal<EnvironmentValue | (string & {}) | undefined>;
865
918
  protected noteTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
866
919
  protected noteText: import("@angular/core").Signal<string>;
867
920
  protected bgColor: import("@angular/core").Signal<string>;
@@ -1509,14 +1562,13 @@ export declare class HelixPricingWidget {
1509
1562
  }, never, never, true, never>;
1510
1563
  }
1511
1564
  export declare class HelixTopbarWidget {
1512
- router: Router;
1513
1565
  navLinks: import("@angular/core").InputSignal<HelixNavLink[]>;
1514
1566
  menuLabel: import("@angular/core").InputSignal<string>;
1515
1567
  loginLabel: import("@angular/core").InputSignal<string>;
1516
1568
  loginRoute: import("@angular/core").InputSignal<string>;
1517
1569
  registerLabel: import("@angular/core").InputSignal<string>;
1518
1570
  registerRoute: import("@angular/core").InputSignal<string>;
1519
- constructor(router: Router);
1571
+ router: Router;
1520
1572
  static ɵfac: i0.ɵɵFactoryDeclaration<HelixTopbarWidget, never>;
1521
1573
  static ɵcmp: i0.ɵɵComponentDeclaration<HelixTopbarWidget, "helix-topbar-widget", never, {
1522
1574
  "navLinks": {
@@ -1602,59 +1654,6 @@ export declare class HelixNotfound {
1602
1654
  };
1603
1655
  }, {}, never, never, true, never>;
1604
1656
  }
1605
- type BadgeSeverity = 'info' | 'warn' | 'error' | 'success';
1606
- export declare class HelixBadge {
1607
- severity: import("@angular/core").InputSignal<BadgeSeverity>;
1608
- label: import("@angular/core").InputSignal<string | undefined>;
1609
- icon: import("@angular/core").InputSignal<string | undefined>;
1610
- size: import("@angular/core").InputSignal<"sm" | "md">;
1611
- static ɵfac: i0.ɵɵFactoryDeclaration<HelixBadge, never>;
1612
- static ɵcmp: i0.ɵɵComponentDeclaration<HelixBadge, "helix-badge", never, {
1613
- "severity": {
1614
- "alias": "severity";
1615
- "required": true;
1616
- "isSignal": true;
1617
- };
1618
- "label": {
1619
- "alias": "label";
1620
- "required": false;
1621
- "isSignal": true;
1622
- };
1623
- "icon": {
1624
- "alias": "icon";
1625
- "required": false;
1626
- "isSignal": true;
1627
- };
1628
- "size": {
1629
- "alias": "size";
1630
- "required": false;
1631
- "isSignal": true;
1632
- };
1633
- }, {}, never, never, true, never>;
1634
- }
1635
- type Environment = 'development' | 'testing' | 'staging' | 'production';
1636
- /** Custom environment with a free label and a badge severity. */
1637
- interface CustomEnvironment {
1638
- label: string;
1639
- severity: BadgeSeverity;
1640
- }
1641
- type EnvironmentValue = Environment | CustomEnvironment;
1642
- export declare class HelixEnvironmentBadge {
1643
- environment: import("@angular/core").InputSignal<string | CustomEnvironment>;
1644
- protected mapped: import("@angular/core").Signal<{
1645
- severity: BadgeSeverity;
1646
- icon: string;
1647
- label: string;
1648
- }>;
1649
- static ɵfac: i0.ɵɵFactoryDeclaration<HelixEnvironmentBadge, never>;
1650
- static ɵcmp: i0.ɵɵComponentDeclaration<HelixEnvironmentBadge, "helix-environment-badge", never, {
1651
- "environment": {
1652
- "alias": "environment";
1653
- "required": true;
1654
- "isSignal": true;
1655
- };
1656
- }, {}, never, never, true, never>;
1657
- }
1658
1657
  type HelixEmptyStateSize = 'small' | 'medium';
1659
1658
  /**
1660
1659
  * The state of a list, table or page that has nothing to show: an icon, a title, a sentence that says what to do,