@kern-ux-annex/kern-angular-kit 0.3.6 → 0.3.7
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 +71 -30
- package/fesm2022/kern-ux-annex-kern-angular-kit.mjs +1053 -467
- package/fesm2022/kern-ux-annex-kern-angular-kit.mjs.map +1 -1
- package/index.d.ts +398 -126
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,54 +1,95 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kern-ux-annex/kern-angular-kit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@kern-ux-annex/kern-angular-kit)
|
|
4
|
+
[](LICENSE.md)
|
|
5
|
+
[](https://www.typescriptlang.org/)
|
|
6
|
+
[](https://angular.io/)
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
Angular component library implementing the KERN Design System. This library provides a comprehensive set of accessible, reusable UI components following the KERN UX standards.
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
## 🚀 Features
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
- **🎨 KERN Design System** - Complete implementation of KERN UX components
|
|
13
|
+
- **📱 Modern Angular** - Built with Angular 20.1+ using InputSignal patterns
|
|
14
|
+
- **♿ Accessibility First** - WCAG 2.1 AA compliant components
|
|
15
|
+
- **📝 Form Integration** - Full Angular Forms support (Template-driven & Reactive)
|
|
16
|
+
- **🔧 TypeScript Ready** - Full TypeScript support with comprehensive type definitions
|
|
17
|
+
- **📦 Tree Shakable** - Optimized bundle size with standalone components
|
|
18
|
+
- **🎯 Production Ready** - Thoroughly tested and CI/CD integrated
|
|
19
|
+
- **🔄 Signal-based** - Modern Angular patterns with InputSignal and OutputEmitterRef
|
|
12
20
|
|
|
13
|
-
|
|
21
|
+
## ⚡ Quick Start
|
|
14
22
|
|
|
15
23
|
```bash
|
|
16
|
-
|
|
24
|
+
npm install @kern-ux-annex/kern-angular-kit
|
|
17
25
|
```
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
### 🛠️ Usage
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
#### Import Components
|
|
22
30
|
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
```typescript
|
|
32
|
+
// Option 1: Import entire module
|
|
33
|
+
import { KernAngularKitModule } from '@kern-ux-annex/kern-angular-kit';
|
|
26
34
|
|
|
27
|
-
|
|
35
|
+
@NgModule({
|
|
36
|
+
imports: [KernAngularKitModule]
|
|
37
|
+
})
|
|
38
|
+
export class AppModule {}
|
|
28
39
|
|
|
29
|
-
|
|
40
|
+
// Option 2: Import individual components (Recommended)
|
|
41
|
+
import { KernInputText, KernAlert } from '@kern-ux-annex/kern-angular-kit';
|
|
30
42
|
|
|
31
|
-
|
|
43
|
+
@Component({
|
|
44
|
+
imports: [KernInputText, KernAlert],
|
|
45
|
+
template: `...`
|
|
46
|
+
})
|
|
47
|
+
export class MyComponent {}
|
|
48
|
+
```
|
|
32
49
|
|
|
33
|
-
|
|
50
|
+
#### Basic Example
|
|
34
51
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
```html
|
|
53
|
+
<kern-input-text
|
|
54
|
+
labelText="Full Name"
|
|
55
|
+
hintText="Enter your first and last name"
|
|
56
|
+
>
|
|
57
|
+
</kern-input-text>
|
|
38
58
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
59
|
+
<kern-alert title="Success!" variant="success">
|
|
60
|
+
Form submitted successfully!
|
|
61
|
+
</kern-alert>
|
|
62
|
+
```
|
|
43
63
|
|
|
44
|
-
##
|
|
64
|
+
## 🎨 CSS Dependencies
|
|
45
65
|
|
|
46
|
-
|
|
66
|
+
You'll need the KERN UX CSS framework:
|
|
47
67
|
|
|
48
68
|
```bash
|
|
49
|
-
|
|
69
|
+
npm install @kern-ux/native
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Add to your `angular.json` or main CSS file:
|
|
73
|
+
|
|
74
|
+
```css
|
|
75
|
+
@import '@kern-ux/native/dist/kern.min.css';
|
|
76
|
+
@import '@kern-ux/native/dist/fonts/fira-sans.css';
|
|
50
77
|
```
|
|
51
78
|
|
|
52
|
-
##
|
|
79
|
+
## 🔧 Peer Dependencies
|
|
80
|
+
|
|
81
|
+
The library requires these Angular packages:
|
|
82
|
+
|
|
83
|
+
- `@angular/core`: ^20.1.0
|
|
84
|
+
- `@angular/common`: ^20.1.0
|
|
85
|
+
- `@angular/forms`: ^20.1.0
|
|
86
|
+
- `@angular/localize`: ^20.1.0
|
|
87
|
+
|
|
88
|
+
## 📄 License
|
|
89
|
+
|
|
90
|
+
EUPL-1.2
|
|
91
|
+
|
|
92
|
+
## 🤝 Contributing
|
|
53
93
|
|
|
54
|
-
|
|
94
|
+
This package is part of the KERN-UX community project. For more information, visit:
|
|
95
|
+
[https://gitlab.opencode.de/kern-ux/community/angular-kit](https://gitlab.opencode.de/kern-ux/community/angular-kit)
|