@evolution-soft/ui 1.0.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 +127 -0
- package/dist/animations/404-error-data.json +1 -0
- package/dist/animations/404-not-found.json +1 -0
- package/dist/animations/config-animated.json +1 -0
- package/dist/animations/data-analyst.json +1 -0
- package/dist/animations/icons-dashboard/alarm-blue-icon.json +1 -0
- package/dist/animations/icons-dashboard/alarm-purple-icon.json +1 -0
- package/dist/animations/icons-dashboard/alert-red-icon.json +1 -0
- package/dist/animations/icons-dashboard/avatar-green-icon.json +1 -0
- package/dist/animations/icons-dashboard/avatar-yellow-icon.json +1 -0
- package/dist/animations/icons-dashboard/box-gray-icon.json +1 -0
- package/dist/animations/icons-dashboard/box-green-icon.json +1 -0
- package/dist/animations/icons-dashboard/check-green-icon.json +1 -0
- package/dist/animations/icons-dashboard/clock-blue-icon.json +1 -0
- package/dist/animations/icons-dashboard/clock-gray-icon.json +1 -0
- package/dist/animations/icons-dashboard/clock-orange-icon.json +1 -0
- package/dist/animations/icons-dashboard/credit-card-blue-icon.json +1 -0
- package/dist/animations/icons-dashboard/increase-orange-icon.json +1 -0
- package/dist/animations/icons-dashboard/report-icon-dark.json +1 -0
- package/dist/animations/icons-dashboard/report-icon.json +1 -0
- package/dist/animations/icons-sidebar/home-icon.json +1 -0
- package/dist/animations/icons-sidebar/sidebar-agrupamentos-icon.json +1 -0
- package/dist/animations/icons-sidebar/sidebar-basepatan-icon.json +1 -0
- package/dist/animations/icons-sidebar/sidebar-dashboard-icon.json +1 -0
- package/dist/animations/icons-sidebar/sidebar-heijunka-icon.json +1 -0
- package/dist/animations/icons-sidebar/sidebar-kanban-icon.json +1 -0
- package/dist/animations/icons-sidebar/sidebar-rota-icon.json +1 -0
- package/dist/animations/icons-sidebar/sidebar-time-icon.json +1 -0
- package/dist/animations/icons-sidebar-dark/home-icon-dark.json +1 -0
- package/dist/animations/icons-sidebar-dark/sidebar-agrupamentos-icon-dark.json +1 -0
- package/dist/animations/icons-sidebar-dark/sidebar-basepatan-icon-dark.json +1 -0
- package/dist/animations/icons-sidebar-dark/sidebar-dashboard-icon-dark.json +1 -0
- package/dist/animations/icons-sidebar-dark/sidebar-heijunka-icon-dark.json +1 -0
- package/dist/animations/icons-sidebar-dark/sidebar-kanban-icon-dark.json +1 -0
- package/dist/animations/icons-sidebar-dark/sidebar-rota-icon-dark.json +1 -0
- package/dist/animations/icons-sidebar-dark/sidebar-time-icon-dark.json +1 -0
- package/dist/animations/icons-utils/compare-arrow-icon-dark.json +1 -0
- package/dist/animations/icons-utils/compare-arrow-icon.json +1 -0
- package/dist/animations/icons-utils/compare-orange-icon.json +1 -0
- package/dist/animations/icons-utils/eye-icon-dark.json +1 -0
- package/dist/animations/icons-utils/eye-icon.json +1 -0
- package/dist/animations/icons-utils/reload-icon-dark.json +1 -0
- package/dist/animations/icons-utils/reload-icon.json +1 -0
- package/dist/animations/icons-utils/upload-icon-dark.json +1 -0
- package/dist/animations/icons-utils/upload-icon.json +1 -0
- package/dist/animations/loading-dashboard/data-analysis-loading.json +1 -0
- package/dist/animations/loading-dashboard/efficiency-loading.json +1 -0
- package/dist/animations/loading-dashboard/finance-loading.json +1 -0
- package/dist/animations/loading-dashboard/time-loading.json +1 -0
- package/dist/animations/rocket-animation.json +1 -0
- package/dist/animations/technology-student.json +1 -0
- package/dist/animations/welcome.json +1 -0
- package/dist/client.png +0 -0
- package/dist/components/button-icon-lottie/index.d.ts +6 -0
- package/dist/components/fullscreen-mode/index.d.ts +6 -0
- package/dist/components/header/components/buttons.d.ts +12 -0
- package/dist/components/header/index.d.ts +41 -0
- package/dist/components/loading-default/index.d.ts +12 -0
- package/dist/components/lottie-icon/index.d.ts +10 -0
- package/dist/components/not-found-default/index.d.ts +13 -0
- package/dist/components/settings-modal/index.d.ts +5 -0
- package/dist/components/sidebar/index.d.ts +5 -0
- package/dist/components/subtitle/index.d.ts +13 -0
- package/dist/components/theme-transition/index.d.ts +5 -0
- package/dist/components/title/index.d.ts +14 -0
- package/dist/components/tooltip-indicator/index.d.ts +6 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +14 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/chart.d.ts +50 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/command.d.ts +16 -0
- package/dist/components/ui/context-menu.d.ts +25 -0
- package/dist/components/ui/dialog.d.ts +13 -0
- package/dist/components/ui/divisor.d.ts +3 -0
- package/dist/components/ui/drawer.d.ts +13 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/emoji-picker.d.ts +8 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-mask.d.ts +9 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/menubar.d.ts +26 -0
- package/dist/components/ui/multiselect.d.ts +14 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/pagination.d.ts +13 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +10 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/searchable-select.d.ts +21 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +13 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/skeleton.d.ts +21 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/theme-toggle.d.ts +6 -0
- package/dist/components/ui/toggle-group.d.ts +7 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/use-mobile.d.ts +1 -0
- package/dist/components/ui/utils.d.ts +2 -0
- package/dist/contexts/AnimationSettingsContext.d.ts +15 -0
- package/dist/contexts/AuthContext.d.ts +23 -0
- package/dist/contexts/ThemeContext.d.ts +12 -0
- package/dist/dollar_1.png +0 -0
- package/dist/gdbr-company.jpg +0 -0
- package/dist/hooks/useAnimationSettings.d.ts +1 -0
- package/dist/hooks/usePermissions.d.ts +4 -0
- package/dist/index.cjs +145 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +80959 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/persistentFilters.d.ts +67 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/logo-simples-gdbr.png +0 -0
- package/dist/logo.png +0 -0
- package/dist/notebook.jpg +0 -0
- package/dist/payment-method.png +0 -0
- package/dist/project.png +0 -0
- package/dist/src/index.d.ts +76 -0
- package/dist/stores/theme.d.ts +21 -0
- package/dist/stores/useThemeStore.d.ts +4 -0
- package/dist/ui.css +1 -0
- package/package.json +128 -0
package/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# @evolutionsoft/ui
|
|
2
|
+
|
|
3
|
+
Biblioteca de componentes oficial da Evolutionsoft — construída sobre **shadcn/ui**, **Tailwind CSS v4**, **Radix UI**, **Framer Motion** e **Lottie**.
|
|
4
|
+
|
|
5
|
+
Centraliza, documenta e padroniza os componentes utilizados nas aplicações da empresa, garantindo consistência visual e reutilização de código.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 📦 Utilizar no projeto (como consumidor)
|
|
10
|
+
|
|
11
|
+
### 1. Instalação
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @evolutionsoft/ui
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
> O pacote tem `react`, `react-dom` e `next` (opcional) como **peer dependencies** — certifica-te de que já estão instalados no projeto.
|
|
18
|
+
|
|
19
|
+
### 2. Importar os estilos globais
|
|
20
|
+
|
|
21
|
+
No ficheiro raiz do projeto (ex: `app/layout.tsx`, `main.tsx` ou `_app.tsx`):
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import '@evolutionsoft/ui/styles.css';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 3. Importar componentes
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
import { Button, Title, Subtitle, TooltipIndicator, LottieIcon } from '@evolutionsoft/ui';
|
|
31
|
+
|
|
32
|
+
export default function Page() {
|
|
33
|
+
return (
|
|
34
|
+
<>
|
|
35
|
+
<Title size="xl">Olá, Evolutionsoft!</Title>
|
|
36
|
+
<Button variant="outline">Clique aqui</Button>
|
|
37
|
+
</>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 4. Providers necessários (opcional)
|
|
43
|
+
|
|
44
|
+
Se usares `SettingsModal` ou `ButtonIconLottie`, envolve a aplicação com o `AnimationSettingsProvider`:
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import { AnimationSettingsProvider } from '@evolutionsoft/ui';
|
|
48
|
+
|
|
49
|
+
export default function RootLayout({ children }) {
|
|
50
|
+
return (
|
|
51
|
+
<AnimationSettingsProvider>
|
|
52
|
+
{children}
|
|
53
|
+
</AnimationSettingsProvider>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 🛠️ Desenvolver e publicar (como mantenedor)
|
|
61
|
+
|
|
62
|
+
### Pré-requisitos
|
|
63
|
+
|
|
64
|
+
- [Node.js](https://nodejs.org/) v20+
|
|
65
|
+
- Conta no [npm](https://www.npmjs.com/) com acesso à org **evolutionsoft**
|
|
66
|
+
|
|
67
|
+
### Setup local
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git clone https://vitorkravs@bitbucket.org/evolutionsoftteam/evolution-backoffice-storybook.git
|
|
71
|
+
cd evolution-backoffice-storybook
|
|
72
|
+
npm install
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Desenvolvimento
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm run dev # Vite dev server com preview de componentes
|
|
79
|
+
npm run storybook # Storybook em localhost:6006
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Build da biblioteca
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npm run build # Gera dist/ com ESM + CJS + tipos
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Publicar nova versão no npm
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# 1. Login (apenas uma vez por máquina)
|
|
92
|
+
npm login
|
|
93
|
+
|
|
94
|
+
# 2. Actualizar a versão em package.json:
|
|
95
|
+
# patch: 1.0.0 → 1.0.1 | minor: 1.0.0 → 1.1.0 | major: 1.0.0 → 2.0.0
|
|
96
|
+
npm version patch # ou minor / major
|
|
97
|
+
|
|
98
|
+
# 3. Build + publish (o prepublishOnly corre automaticamente)
|
|
99
|
+
npm publish --access public
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
> Após o publish, os consumidores atualizam com `npm update @evolutionsoft/ui`.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 🏗️ Tecnologias
|
|
107
|
+
|
|
108
|
+
| Tecnologia | Função |
|
|
109
|
+
|---|---|
|
|
110
|
+
| [Vite](https://vitejs.dev/) | Build e dev server |
|
|
111
|
+
| [Tailwind CSS v4](https://tailwindcss.com/) | Utilitários de CSS |
|
|
112
|
+
| [shadcn/ui](https://ui.shadcn.com/) | Componentes base |
|
|
113
|
+
| [Radix UI](https://www.radix-ui.com/) | Primitivos acessíveis |
|
|
114
|
+
| [Framer Motion](https://www.framer.com/motion/) | Animações |
|
|
115
|
+
| [Lottie React](https://github.com/LottieFiles/lottie-react) | Ícones animados |
|
|
116
|
+
| [TypeScript](https://www.typescriptlang.org/) | Tipagem |
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## ✒️ Autores
|
|
121
|
+
|
|
122
|
+
- **Vitor Cesar Kravszenko** — [vitorkravs](https://github.com/vitorkravs)
|
|
123
|
+
- **Evolutionsoft** — [evolutionsoft.com.br](https://evolutionsoft.com.br/)
|
|
124
|
+
|
|
125
|
+
## 📄 Licença
|
|
126
|
+
|
|
127
|
+
Todos os direitos reservados à [Evolutionsoft](https://evolutionsoft.com.br/). Uso sujeito a autorização prévia da empresa.
|