dasar-ui 2.0.1 → 2.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/README.md +37 -43
- package/fesm2022/dasar-ui.mjs +1921 -2
- package/fesm2022/dasar-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/dasar-ui.d.ts +1050 -224
package/README.md
CHANGED
|
@@ -1,64 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Dasar UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Angular UI component library based on danarakca design system. Standalone components, SSR-safe, themeable with light and dark mode.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/dasar-ui)
|
|
6
|
+
[](https://github.com/pis2co/dasar-ui/blob/main/package.json)
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
## Features
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
- Standalone Angular components, no NgModule setup
|
|
11
|
+
- Theming in three layers: CSS variables, theme tokens, component config
|
|
12
|
+
- Light and dark mode with `data-theme="dark"`
|
|
13
|
+
- SSR-safe components and documentation app
|
|
14
|
+
- Design tokens for colors, typography, spacing, radius and per-component styles
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
## Components
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
ng generate --help
|
|
17
|
-
```
|
|
18
|
+
Button, Icon, Chip, Input, Number Input, Select, Calendar, Datepicker, Card, Modal, Overlay, Menu, Table, Tabs, List.
|
|
18
19
|
|
|
19
|
-
##
|
|
20
|
-
|
|
21
|
-
To build the library, run:
|
|
20
|
+
## Quick start
|
|
22
21
|
|
|
23
22
|
```bash
|
|
24
|
-
|
|
23
|
+
npm i dasar-ui
|
|
25
24
|
```
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### Publishing the Library
|
|
30
|
-
|
|
31
|
-
Once the project is built, you can publish your library by following these steps:
|
|
26
|
+
```ts
|
|
27
|
+
import { DasarButtonComponent } from 'dasar-ui';
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
@Component({
|
|
30
|
+
imports: [DasarButtonComponent],
|
|
31
|
+
template: `<dasar-button variant="primary">Save</dasar-button>`,
|
|
32
|
+
})
|
|
33
|
+
export class App {}
|
|
34
|
+
```
|
|
38
35
|
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npm publish
|
|
42
|
-
```
|
|
36
|
+
Read the full guides:
|
|
43
37
|
|
|
44
|
-
|
|
38
|
+
- [Installation](./docs/installation.md)
|
|
39
|
+
- [Getting started](./docs/getting-started.md)
|
|
40
|
+
- [Theming overview](https://github.com/pis2co/dasar-ui) (in the docs app: `/theming`)
|
|
45
41
|
|
|
46
|
-
|
|
42
|
+
## Links
|
|
47
43
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
- [Documentation app](https://github.com/pis2co/dasar-ui)
|
|
45
|
+
- [npm package](https://www.npmjs.com/package/dasar-ui)
|
|
46
|
+
- [Changelog](https://github.com/pis2co/dasar-ui/blob/main/CHANGELOG.md)
|
|
47
|
+
- [GitHub repository](https://github.com/pis2co/dasar-ui)
|
|
51
48
|
|
|
52
|
-
##
|
|
49
|
+
## Development
|
|
53
50
|
|
|
54
|
-
|
|
51
|
+
This repository is an Angular 22 monorepo with the `dasar-ui` library and an SSR documentation app.
|
|
55
52
|
|
|
56
53
|
```bash
|
|
57
|
-
|
|
54
|
+
npm install
|
|
55
|
+
npx ng build dasar-ui
|
|
56
|
+
npx ng build documentation
|
|
57
|
+
npx ng test dasar-ui --watch=false
|
|
58
58
|
```
|
|
59
|
-
|
|
60
|
-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
61
|
-
|
|
62
|
-
## Additional Resources
|
|
63
|
-
|
|
64
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|