@gravionlabs/helix-ui 0.0.0-stage → 0.1.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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GravionLabs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,58 @@
1
- # Temporary Holding Version
1
+ # @gravionlabs/helix-ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Vanilla Angular components on the Helix design tokens: standalone, signal-based, plain CSS, no runtime
4
+ styling engine, no dependency on `@gravionlabs/helix-core`. It is the long-term replacement of the vendored
5
+ PrimeNG fork (see [ADR 0001](../../docs/adr/0001-styling-foundation.md), epic #523).
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @gravionlabs/helix-ui
11
+ ```
12
+
13
+ ```css
14
+ /* the components */
15
+ @import "@gravionlabs/helix-ui/styles.css";
16
+ /* the tokens the components read; load them in every app, also with the helix-core theme engine */
17
+ @import "@gravionlabs/helix-ui/tokens.css";
18
+ ```
19
+
20
+ Dark mode: tokens switch under the `app-dark` class on `<html>`, as in `helix-shell`.
21
+
22
+ ## Components
23
+
24
+ | Component | Selector | |
25
+ | --- | --- | --- |
26
+ | `HxButton` | `button[hx-button]`, `a[hx-button]` | variants, severities, sizes, loading, icon-only |
27
+ | `HxInput` | `input[hx-input]`, `textarea[hx-input]` | outlined / filled, sizes, invalid |
28
+ | `HxCheckbox` | `input[hx-checkbox]` | native checkbox, indeterminate |
29
+ | `HxRadio` | `input[hx-radio]` | native radio |
30
+ | `HxSelect` | `hx-select` | CDK listbox in an overlay, all three forms APIs |
31
+ | `HxDivider` | `hx-divider` | horizontal/vertical, labelled |
32
+ | `HxTooltip` | `[hx-tooltip]` | CDK overlay, hover and focus |
33
+ | `HxBreadcrumb` | `hx-breadcrumb` | router links, home item |
34
+ | `HxPassword` | `hx-password` | show/hide toggle, all three forms APIs |
35
+ | `HxSelectButton` | `hx-select-button` | single or multiple, all three forms APIs |
36
+ | `HxSwitch` | `input[hx-switch]` | native checkbox with `role="switch"` |
37
+
38
+ Selectors, inputs and classes use the prefix `hx` (`hx-button`), so they never clash with `helix-core`'s `h-`
39
+ in an app that uses both while migrating. Both libraries read the same `--h-*` tokens, so a page mixes them
40
+ without a visible seam.
41
+
42
+ ## Rules of this package
43
+
44
+ - Nothing imports `@gravionlabs/helix-core`, `@primeuix/*` or `primeng` (`pnpm lint:no-core`).
45
+ - Styles are plain CSS in `styles/<component>.css` that read `--h-*` tokens only; they ship in a `components`
46
+ cascade layer so an app's own CSS and Tailwind utilities win without specificity fights.
47
+ - Every component has unit tests and a docs page; a test fails when a stylesheet reads a token that
48
+ `tokens.css` does not define.
49
+
50
+ ## Publishing
51
+
52
+ Not published yet: the first release needs a trusted-publisher entry for `@gravionlabs/helix-ui` on npmjs.com
53
+ (Settings → Trusted Publisher → GitHub Actions, owner GravionLabs, repo helix, workflow `ci.yml`), then
54
+ `ui` joins the package loops of `.github/workflows/ci.yml`.
55
+
56
+ ## License
57
+
58
+ MIT