dasar-ui 2.0.1 → 2.0.3
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 -40
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
ng generate --help
|
|
17
|
-
```
|
|
16
|
+
## Components
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
Button, Icon, Chip, Input, Number Input, Select, Calendar, Datepicker, Card, Modal, Overlay, Menu, Table, Tabs, List.
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
## Quick start
|
|
22
21
|
|
|
23
22
|
```bash
|
|
24
|
-
|
|
23
|
+
npm i dasar-ui
|
|
25
24
|
```
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
```ts
|
|
27
|
+
import { DasarButtonComponent } from 'dasar-ui';
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
@Component({
|
|
30
|
+
imports: [DasarButtonComponent],
|
|
31
|
+
template: `<dasar-button variant="primary">Save</dasar-button>`,
|
|
32
|
+
})
|
|
33
|
+
export class App {}
|
|
34
|
+
```
|
|
30
35
|
|
|
31
|
-
|
|
36
|
+
Read the full guides:
|
|
32
37
|
|
|
33
|
-
|
|
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`)
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
cd dist/dasar-ui
|
|
37
|
-
```
|
|
42
|
+
## Links
|
|
38
43
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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)
|
|
43
48
|
|
|
44
|
-
##
|
|
49
|
+
## Contributors
|
|
45
50
|
|
|
46
|
-
|
|
51
|
+
- <a href="https://github.com/pis2co"><div style="display: flex; align-items: center;"><img src="https://github.com/pis2co.png?size=40" width="32" height="32" alt="pis2co" style="display: inline-block; border-radius: 50%; vertical-align: middle; margin: 0 8px 0 0;" /><span>**[pis2co](https://github.com/pis2co)**, Organization and maintainer</span></div></a>
|
|
52
|
+
- <a href="https://github.com/dxxta"><div style="display: flex; align-items: center;"><img src="https://github.com/dxxta.png?size=40" width="32" height="32" alt="dxxta" style="display: inline-block; border-radius: 50%; vertical-align: middle; margin: 0 8px 0 0;" /><span>**[dxxta](https://github.com/dxxta)**, Author and maintainer</span></div></a>
|
|
47
53
|
|
|
48
|
-
|
|
49
|
-
ng test
|
|
50
|
-
```
|
|
54
|
+
Contributions are welcome for apbn core team. Open an issue or a pull request on [GitHub](https://github.com/pis2co/dasar-ui).
|
|
51
55
|
|
|
52
|
-
##
|
|
56
|
+
## Development
|
|
53
57
|
|
|
54
|
-
|
|
58
|
+
This repository is an Angular 22 monorepo with the `dasar-ui` library and an SSR documentation app.
|
|
55
59
|
|
|
56
60
|
```bash
|
|
57
|
-
|
|
61
|
+
npm install
|
|
62
|
+
npx ng build dasar-ui
|
|
63
|
+
npx ng build documentation
|
|
64
|
+
npx ng test dasar-ui --watch=false
|
|
58
65
|
```
|
|
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.
|