nemesischart 0.1.1 → 0.1.2
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 +59 -3
- package/package.json +3 -6
package/README.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# nemesischart
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Uma biblioteca de componentes Vue 3 para construção de dashboards. Desenvolvida com PrimeFlex e PrimeIcons.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Instalação
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install nemesischart
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Requisitos
|
|
12
|
+
|
|
13
|
+
O nemesischart depende das seguintes peer dependencies instaladas no seu projeto:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install primeflex primeicons
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Como usar
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import { createApp } from 'vue'
|
|
23
|
+
import 'primeflex/primeflex.css'
|
|
24
|
+
import 'primeicons/primeicons.css'
|
|
25
|
+
import NemesisChart from 'nemesischart'
|
|
26
|
+
|
|
27
|
+
const app = createApp(App)
|
|
28
|
+
|
|
29
|
+
app.use(NemesisChart)
|
|
30
|
+
|
|
31
|
+
app.mount('#app')
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<Cards
|
|
36
|
+
titulo="Receita Total"
|
|
37
|
+
valor="R$ 48.200"
|
|
38
|
+
descricao="+12% este mês"
|
|
39
|
+
cor="light"
|
|
40
|
+
:botao_todos="true"
|
|
41
|
+
@click="handleClick"
|
|
42
|
+
/>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Componentes
|
|
46
|
+
|
|
47
|
+
### Cards
|
|
48
|
+
|
|
49
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
50
|
+
|---|---|---|---|
|
|
51
|
+
| `titulo` | `String` | `'Card Title'` | Título do card |
|
|
52
|
+
| `valor` | `String` | `'0'` | Valor principal exibido |
|
|
53
|
+
| `descricao` | `String` | `'This is a card component...'` | Texto descritivo abaixo do valor |
|
|
54
|
+
| `cor` | `String` | `'light'` | Tema do card: `light`, `dark` ou `transparent` |
|
|
55
|
+
| `botao_todos` | `Boolean` | `false` | Exibe botão "Ver Todos" |
|
|
56
|
+
|
|
57
|
+
**Evento:** `@click` — emitido ao clicar no botão "Ver Todos"
|
|
58
|
+
|
|
59
|
+
## Licença
|
|
60
|
+
|
|
61
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nemesischart",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Vue 3 component library for dashboard cards and charts.",
|
|
6
6
|
"keywords": [
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"vue3",
|
|
9
9
|
"component-library",
|
|
10
10
|
"charts",
|
|
11
|
-
"
|
|
11
|
+
"primeflex",
|
|
12
|
+
"primeicons"
|
|
12
13
|
],
|
|
13
14
|
"license": "MIT",
|
|
14
15
|
"files": [
|
|
@@ -31,21 +32,17 @@
|
|
|
31
32
|
"preview": "vite preview"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
|
-
"@primevue/themes": ">=4.0.0",
|
|
35
35
|
"primeflex": ">=3.0.0",
|
|
36
36
|
"primeicons": ">=6.0.0",
|
|
37
|
-
"primevue": ">=4.0.0",
|
|
38
37
|
"vue": ">=3.3.0"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
|
-
"@primevue/themes": "^4.5.4",
|
|
42
40
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
43
41
|
"@vue/devtools-api": "^8.0.6",
|
|
44
42
|
"chart.js": "^4.5.1",
|
|
45
43
|
"cross-env": "^10.1.0",
|
|
46
44
|
"primeflex": "^4.0.0",
|
|
47
45
|
"primeicons": "^7.0.0",
|
|
48
|
-
"primevue": "^4.5.4",
|
|
49
46
|
"vite": "^7.3.1",
|
|
50
47
|
"vite-plugin-vue-devtools": "^8.0.6",
|
|
51
48
|
"vue": "^3.5.25",
|