@gravionlabs/helix-shell 22.1.28 → 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/README.md +12 -7
- package/fesm2022/gravionlabs-helix-shell.mjs.map +1 -1
- package/package.json +1 -2
- package/styles.css +33 -159
- package/types/gravionlabs-helix-shell.d.ts +10 -11
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ Angular application shell for [Helix](../../README.md), extending
|
|
|
11
11
|
- 🗃️ **NgRx Signal Store** — `LayoutStore` for theme, menu, and dark-mode state
|
|
12
12
|
- 🔐 **Auth & error pages** — login, error, access-denied, not-found, with lazy route config
|
|
13
13
|
- 🚀 **Landing widgets** — hero, features, highlights, pricing, footer sections
|
|
14
|
-
- 📝 **Form infrastructure** — `HelixFormField
|
|
15
|
-
- 🎨 **Helix theming** —
|
|
14
|
+
- 📝 **Form infrastructure** — `HelixFormField` (label, hint, touched-gated error); the validators come from `@gravionlabs/helix-ui/validators`
|
|
15
|
+
- 🎨 **Helix theming** — dark mode, primary colour and surface through the theme service of helix-ui (`provideHxTheme`), with View Transitions
|
|
16
16
|
- 📦 **Standalone components** — no NgModule required
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
@@ -23,25 +23,30 @@ npm install @gravionlabs/helix-shell
|
|
|
23
23
|
|
|
24
24
|
### Peer Dependencies
|
|
25
25
|
|
|
26
|
-
`@angular/core >=22`, `@ngrx/signals >=21`, `@gravionlabs/helix-
|
|
27
|
-
`primeicons >=7`.
|
|
26
|
+
`@angular/core >=22`, `@angular/router >=22`, `@ngrx/signals >=21`, `@gravionlabs/helix-ui >=0.1.0` (and its own
|
|
27
|
+
peers, `@angular/cdk` and `@angular/forms`), `primeicons >=7`. The shell has no dependency on `@gravionlabs/helix-core`.
|
|
28
28
|
|
|
29
29
|
## Setup
|
|
30
30
|
|
|
31
31
|
```typescript
|
|
32
32
|
// app.config.ts
|
|
33
|
-
import {
|
|
34
|
-
import { provideHelix } from '@gravionlabs/helix-core/config';
|
|
33
|
+
import { provideHxTheme } from '@gravionlabs/helix-ui';
|
|
35
34
|
|
|
36
35
|
export const appConfig: ApplicationConfig = {
|
|
37
36
|
providers: [
|
|
38
37
|
provideRouter(appRoutes),
|
|
39
38
|
provideHttpClient(),
|
|
40
|
-
|
|
39
|
+
provideHxTheme({ storageKey: 'my-app-theme', viewTransition: true })
|
|
41
40
|
]
|
|
42
41
|
};
|
|
43
42
|
```
|
|
44
43
|
|
|
44
|
+
```css
|
|
45
|
+
/* styles.css: the shell draws its buttons, fields, breadcrumb and tooltips with helix-ui */
|
|
46
|
+
@import "@gravionlabs/helix-ui/styles.css";
|
|
47
|
+
@import "@gravionlabs/helix-ui/tokens.css";
|
|
48
|
+
```
|
|
49
|
+
|
|
45
50
|
```typescript
|
|
46
51
|
// app.routes.ts
|
|
47
52
|
import { HelixAppLayout } from '@gravionlabs/helix-shell';
|