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.
Files changed (2) hide show
  1. package/README.md +41 -40
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,64 +1,65 @@
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
- ```
12
-
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
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
- ```bash
16
- ng generate --help
17
- ```
16
+ ## Components
18
17
 
19
- ## Building
18
+ Button, Icon, Chip, Input, Number Input, Select, Calendar, Datepicker, Card, Modal, Overlay, Menu, Table, Tabs, List.
20
19
 
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.
26
+ ```ts
27
+ import { DasarButtonComponent } from 'dasar-ui';
28
28
 
29
- ### Publishing the Library
29
+ @Component({
30
+ imports: [DasarButtonComponent],
31
+ template: `<dasar-button variant="primary">Save</dasar-button>`,
32
+ })
33
+ export class App {}
34
+ ```
30
35
 
31
- Once the project is built, you can publish your library by following these steps:
36
+ Read the full guides:
32
37
 
33
- 1. Navigate to the `dist` directory:
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
- ```bash
36
- cd dist/dasar-ui
37
- ```
42
+ ## Links
38
43
 
39
- 2. Run the `npm publish` command to publish your library to the npm registry:
40
- ```bash
41
- npm publish
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
- ## Running unit tests
49
+ ## Contributors
45
50
 
46
- To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
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
- ```bash
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
- ## Running end-to-end tests
56
+ ## Development
53
57
 
54
- For end-to-end (e2e) testing, run:
58
+ This repository is an Angular 22 monorepo with the `dasar-ui` library and an SSR documentation app.
55
59
 
56
60
  ```bash
57
- ng e2e
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dasar-ui",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "UI component library for Angular",
5
5
  "author": "dxxta",
6
6
  "license": "MIT",