@kksdev/ds-angular 1.10.0 → 1.12.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/README.md +41 -38
- package/fesm2022/kksdev-ds-angular.mjs +389 -16
- package/fesm2022/kksdev-ds-angular.mjs.map +1 -1
- package/index.d.ts +96 -2
- package/package.json +2 -2
- package/src/styles/themes/_custom.scss +31 -0
- package/src/styles/themes/_dark.scss +19 -0
- package/src/styles/themes/_light.scss +19 -0
package/README.md
CHANGED
|
@@ -1,63 +1,66 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kksdev/ds-angular
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Angular 20 Design System - Bibliothèque de composants standalone avec signals.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Features
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- 55 composants UI (Button, Modal, Table, Form, etc.)
|
|
8
|
+
- 7 primitives (Button, Input, Checkbox, Radio, Textarea, Toggle, Badge)
|
|
9
|
+
- 3 thèmes (Light, Dark, Custom)
|
|
10
|
+
- Support i18n
|
|
11
|
+
- Accessible (WCAG 2.1 AA)
|
|
12
|
+
- Standalone components avec signals
|
|
8
13
|
|
|
9
|
-
|
|
10
|
-
ng generate component component-name
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
## Installation
|
|
14
15
|
|
|
15
16
|
```bash
|
|
16
|
-
|
|
17
|
+
npm install @kksdev/ds-angular
|
|
17
18
|
```
|
|
18
19
|
|
|
19
|
-
##
|
|
20
|
-
|
|
21
|
-
To build the library, run:
|
|
20
|
+
## Peer Dependencies
|
|
22
21
|
|
|
23
22
|
```bash
|
|
24
|
-
|
|
23
|
+
npm install @angular/cdk @fortawesome/angular-fontawesome @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons
|
|
25
24
|
```
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
## Usage
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
```typescript
|
|
29
|
+
import { DsButton, DsModal, DsInputField } from '@kksdev/ds-angular';
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
@Component({
|
|
32
|
+
imports: [DsButton, DsModal, DsInputField],
|
|
33
|
+
template: `
|
|
34
|
+
<ds-button variant="primary" (clicked)="onSave()">
|
|
35
|
+
Enregistrer
|
|
36
|
+
</ds-button>
|
|
37
|
+
`
|
|
38
|
+
})
|
|
39
|
+
export class MyComponent {}
|
|
40
|
+
```
|
|
32
41
|
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
cd dist/ds-angular
|
|
36
|
-
```
|
|
42
|
+
## Thèmes
|
|
37
43
|
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
npm publish
|
|
41
|
-
```
|
|
44
|
+
Activez un thème en ajoutant la classe sur le document :
|
|
42
45
|
|
|
43
|
-
|
|
46
|
+
```typescript
|
|
47
|
+
document.documentElement.className = 'theme-light'; // ou 'theme-dark', 'theme-custom'
|
|
48
|
+
```
|
|
44
49
|
|
|
45
|
-
|
|
50
|
+
## Documentation
|
|
46
51
|
|
|
47
|
-
|
|
48
|
-
ng test
|
|
49
|
-
```
|
|
52
|
+
Documentation complète et démos interactives :
|
|
50
53
|
|
|
51
|
-
|
|
54
|
+
**https://ds-showcase.kkshome.online/**
|
|
52
55
|
|
|
53
|
-
|
|
56
|
+
## Composants disponibles
|
|
54
57
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
+
### Primitives
|
|
59
|
+
`PrimitiveButton` `PrimitiveInput` `PrimitiveCheckbox` `PrimitiveRadio` `PrimitiveTextarea` `PrimitiveToggle` `PrimitiveBadge`
|
|
58
60
|
|
|
59
|
-
|
|
61
|
+
### Composants
|
|
62
|
+
`DsButton` `DsModal` `DsTable` `DsInputField` `DsSelect` `DsCheckbox` `DsRadio` `DsTextarea` `DsToggle` `DsAlert` `DsToast` `DsBadge` `DsCard` `DsTabs` `DsAccordion` `DsDropdown` `DsTooltip` `DsPopover` `DsProgress` `DsSpinner` `DsSkeleton` `DsAvatar` `DsBreadcrumb` `DsPagination` `DsDatePicker` `DsTimePicker` `DsSlider` `DsRating` `DsFileUpload` `DsAutocomplete` ...et plus
|
|
60
63
|
|
|
61
|
-
##
|
|
64
|
+
## License
|
|
62
65
|
|
|
63
|
-
|
|
66
|
+
MIT
|