tectra-ng 0.2.2 → 0.2.4

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.
Files changed (2) hide show
  1. package/README.md +59 -5
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -1,19 +1,73 @@
1
- # tectra-ng
1
+ <p align="center">
2
+ <a href="https://tectra-ng.com">
3
+ <img src="https://tectra-ng.com/images/social-preview.png" alt="tectra — Angular UI component library" width="100%" />
4
+ </a>
5
+ </p>
2
6
 
3
- The whole tectra Angular UI kit in one install.
7
+ <p align="center">
8
+ <b>Open-source Angular UI kit for consoles and admin apps.</b><br />
9
+ Design tokens, themes, 80+ components, charts and ready page blocks — built on signals, rendered on the server.
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="https://www.npmjs.com/package/tectra-ng"><img src="https://img.shields.io/npm/v/tectra-ng?color=2560e4&label=npm" alt="npm version" /></a>
14
+ <a href="https://www.npmjs.com/package/tectra-ng"><img src="https://img.shields.io/npm/dm/tectra-ng?color=2560e4" alt="npm downloads" /></a>
15
+ <a href="https://github.com/kulakovskyi/tectra-ng/actions/workflows/ci.yml"><img src="https://github.com/kulakovskyi/tectra-ng/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
16
+ <a href="https://github.com/kulakovskyi/tectra-ng/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-2560e4" alt="MIT license" /></a>
17
+ <a href="https://angular.dev"><img src="https://img.shields.io/badge/Angular-22-dd0031?logo=angular&logoColor=white" alt="Angular 22" /></a>
18
+ <a href="https://www.bestpractices.dev/projects/16576"><img src="https://www.bestpractices.dev/projects/16576/badge" alt="OpenSSF Best Practices" /></a>
19
+ </p>
20
+
21
+ <p align="center">
22
+ <a href="https://tectra-ng.com"><b>Documentation</b></a>
23
+ &nbsp;·&nbsp;
24
+ <a href="https://tectra-ng.com/getting-started">Getting started</a>
25
+ &nbsp;·&nbsp;
26
+ <a href="https://tectra-ng.com/theming">Theming</a>
27
+ &nbsp;·&nbsp;
28
+ <a href="https://github.com/kulakovskyi/tectra-ng">GitHub</a>
29
+ </p>
30
+
31
+ ## Why tectra
32
+
33
+ - **Everything in one kit** — 80+ components, 22 page blocks, 23 SVG charts, 334 icons, brand logos and country flags.
34
+ - **Modern Angular only** — standalone, signal inputs and models, OnPush, zoneless.
35
+ - **Server rendering out of the box** — every component prerenders and hydrates without a layout jump.
36
+ - **Your design, from tokens** — light and dark mode, 4 styles, 17 primary colours and 13 surfaces; `dt`, `pt` and `unstyled` on every component.
37
+ - **Accessible** — WAI-ARIA patterns, full keyboard support, axe-checked in light and dark.
38
+ - **Tree-shakable** — one entry point per component, chart and utility.
39
+
40
+ ## Install
4
41
 
5
42
  ```bash
6
43
  npm i tectra-ng
7
44
  ```
8
45
 
9
- It installs every tectra package at the same version. Import from the packages themselves:
46
+ It installs every tectra package at the same version. Provide a theme and import components from the packages themselves:
10
47
 
11
48
  ```ts
12
49
  import { provideTectra } from '@tectra-ng/core/config';
50
+ import { createTectraPreset } from '@tectra-ng/themes';
51
+
52
+ export const appConfig: ApplicationConfig = {
53
+ providers: [provideTectra({ preset: createTectraPreset({ primary: 'blue' }) })],
54
+ };
55
+ ```
56
+
57
+ ```ts
13
58
  import { TxButton } from '@tectra-ng/ui/button';
14
- import { Tectra } from '@tectra-ng/themes';
59
+
60
+ @Component({
61
+ imports: [TxButton],
62
+ template: `<button txButton label="Save" (click)="save()"></button>`,
63
+ })
64
+ export class SaveAction {
65
+ save(): void {}
66
+ }
15
67
  ```
16
68
 
69
+ ## Packages
70
+
17
71
  | Package | What it holds |
18
72
  |---|---|
19
73
  | `@tectra-ng/ui` | Components, one entry point per component: `@tectra-ng/ui/button`, `@tectra-ng/ui/select`, … |
@@ -42,4 +96,4 @@ The code editor is not part of `tectra-ng` either — it carries the CodeMirror
42
96
  npm i @tectra-ng/code-editor
43
97
  ```
44
98
 
45
- Docs and examples: [tectra-ng.com](https://tectra-ng.com).
99
+ Docs and examples: [tectra-ng.com](https://tectra-ng.com) · MIT license.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tectra-ng",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Angular UI component library in one install: 80+ standalone components on signals (table, datepicker, select, dialog, toast, tree), design tokens, light and dark themes, charts, icons, brand logos and flags.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com",
@@ -57,17 +57,17 @@
57
57
  "icons"
58
58
  ],
59
59
  "dependencies": {
60
- "@tectra-ng/tokens": "^0.2.2",
61
- "@tectra-ng/themes": "^0.2.2",
62
- "@tectra-ng/core": "^0.2.2",
63
- "@tectra-ng/icons": "^0.2.2",
64
- "@tectra-ng/brand-icons": "^0.2.2",
65
- "@tectra-ng/flags": "^0.2.2",
66
- "@tectra-ng/qr": "^0.2.2",
67
- "@tectra-ng/ui": "^0.2.2",
68
- "@tectra-ng/charts": "^0.2.2",
69
- "@tectra-ng/utils": "^0.2.2",
70
- "@tectra-ng/blocks": "^0.2.2"
60
+ "@tectra-ng/tokens": "^0.2.4",
61
+ "@tectra-ng/themes": "^0.2.4",
62
+ "@tectra-ng/core": "^0.2.4",
63
+ "@tectra-ng/icons": "^0.2.4",
64
+ "@tectra-ng/brand-icons": "^0.2.4",
65
+ "@tectra-ng/flags": "^0.2.4",
66
+ "@tectra-ng/qr": "^0.2.4",
67
+ "@tectra-ng/ui": "^0.2.4",
68
+ "@tectra-ng/charts": "^0.2.4",
69
+ "@tectra-ng/utils": "^0.2.4",
70
+ "@tectra-ng/blocks": "^0.2.4"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"