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 CHANGED
@@ -1,64 +1,58 @@
1
- # DasarUi
1
+ # Dasar UI
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 22.1.0.
3
+ Angular UI component library based on danarakca design system. Standalone components, SSR-safe, themeable with light and dark mode.
4
4
 
5
- ## Code scaffolding
5
+ [![npm version](https://img.shields.io/npm/v/dasar-ui.svg)](https://www.npmjs.com/package/dasar-ui)
6
+ [![license](https://img.shields.io/npm/l/dasar-ui.svg)](https://github.com/pis2co/dasar-ui/blob/main/package.json)
6
7
 
7
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+ ## Features
8
9
 
9
- ```bash
10
- ng generate component component-name
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
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
16
+ ## Components
14
17
 
15
- ```bash
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
- ## Building
20
-
21
- To build the library, run:
20
+ ## Quick start
22
21
 
23
22
  ```bash
24
- ng build dasar-ui
23
+ npm i dasar-ui
25
24
  ```
26
25
 
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
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
- 1. Navigate to the `dist` directory:
34
-
35
- ```bash
36
- cd dist/dasar-ui
37
- ```
29
+ @Component({
30
+ imports: [DasarButtonComponent],
31
+ template: `<dasar-button variant="primary">Save</dasar-button>`,
32
+ })
33
+ export class App {}
34
+ ```
38
35
 
39
- 2. Run the `npm publish` command to publish your library to the npm registry:
40
- ```bash
41
- npm publish
42
- ```
36
+ Read the full guides:
43
37
 
44
- ## Running unit tests
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
- To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
42
+ ## Links
47
43
 
48
- ```bash
49
- ng test
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
- ## Running end-to-end tests
49
+ ## Development
53
50
 
54
- For end-to-end (e2e) testing, run:
51
+ This repository is an Angular 22 monorepo with the `dasar-ui` library and an SSR documentation app.
55
52
 
56
53
  ```bash
57
- ng e2e
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.