eai-frontend-components 2.0.4 → 2.0.6
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 +14 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/ui/accordion.tsx +0 -48
- package/src/components/ui/alert-dialog.tsx +0 -138
- package/src/components/ui/alert.tsx +0 -36
- package/src/components/ui/avatar.tsx +0 -48
- package/src/components/ui/badge.tsx +0 -35
- package/src/components/ui/breadcrumb.tsx +0 -115
- package/src/components/ui/button.tsx +0 -43
- package/src/components/ui/calendar.tsx +0 -142
- package/src/components/ui/card.tsx +0 -35
- package/src/components/ui/carousel.tsx +0 -257
- package/src/components/ui/chart.tsx +0 -364
- package/src/components/ui/checkbox.tsx +0 -26
- package/src/components/ui/collapsible.tsx +0 -9
- package/src/components/ui/command.tsx +0 -145
- package/src/components/ui/context-menu.tsx +0 -198
- package/src/components/ui/custom/date-picker.tsx +0 -97
- package/src/components/ui/custom/form/checkbox.tsx +0 -53
- package/src/components/ui/custom/form/color.tsx +0 -140
- package/src/components/ui/custom/form/combobox.tsx +0 -259
- package/src/components/ui/custom/form/cpf-cnpj.tsx +0 -85
- package/src/components/ui/custom/form/currency.tsx +0 -51
- package/src/components/ui/custom/form/date-range.tsx +0 -110
- package/src/components/ui/custom/form/date.tsx +0 -109
- package/src/components/ui/custom/form/decimal.tsx +0 -50
- package/src/components/ui/custom/form/file.tsx +0 -65
- package/src/components/ui/custom/form/form-help-text.tsx +0 -20
- package/src/components/ui/custom/form/form-label.tsx +0 -24
- package/src/components/ui/custom/form/form-message.tsx +0 -10
- package/src/components/ui/custom/form/ghost.tsx +0 -28
- package/src/components/ui/custom/form/input.tsx +0 -69
- package/src/components/ui/custom/form/mask.tsx +0 -78
- package/src/components/ui/custom/form/multi-select.tsx +0 -209
- package/src/components/ui/custom/form/password.tsx +0 -70
- package/src/components/ui/custom/form/percent.tsx +0 -52
- package/src/components/ui/custom/form/phone.tsx +0 -79
- package/src/components/ui/custom/form/radio-group.tsx +0 -94
- package/src/components/ui/custom/form/select.tsx +0 -62
- package/src/components/ui/custom/form/step-new-form.tsx +0 -49
- package/src/components/ui/custom/form/switch.tsx +0 -51
- package/src/components/ui/custom/form/text.tsx +0 -71
- package/src/components/ui/custom/form/textarea.tsx +0 -71
- package/src/components/ui/custom/form/utils.ts +0 -100
- package/src/components/ui/custom/header.tsx +0 -128
- package/src/components/ui/custom/label.tsx +0 -79
- package/src/components/ui/custom/not-found.tsx +0 -30
- package/src/components/ui/custom/sidebar/module-switcher.tsx +0 -58
- package/src/components/ui/custom/sidebar/nav-footer.tsx +0 -35
- package/src/components/ui/custom/sidebar/nav-main.tsx +0 -64
- package/src/components/ui/custom/sidebar/nav-submenu-collapsible.tsx +0 -60
- package/src/components/ui/custom/sidebar/nav-submenu-dropdown.tsx +0 -56
- package/src/components/ui/custom/sidebar/nav-user.tsx +0 -77
- package/src/components/ui/custom/sidebar/sidebar-button.tsx +0 -30
- package/src/components/ui/custom/sidebar/sidebar-item-two-lines.tsx +0 -25
- package/src/components/ui/custom/sidebar/sidebar-item.tsx +0 -19
- package/src/components/ui/custom/sidebar/types/sidebar.ts +0 -31
- package/src/components/ui/custom/table/data-table-export.tsx +0 -126
- package/src/components/ui/custom/table/data-table-footer.tsx +0 -148
- package/src/components/ui/custom/table/data-table-header.tsx +0 -58
- package/src/components/ui/custom/table/data-table-rows.tsx +0 -94
- package/src/components/ui/custom/table/data-table.tsx +0 -285
- package/src/components/ui/custom/table/types/data-table.ts +0 -31
- package/src/components/ui/custom/theme-provider.tsx +0 -121
- package/src/components/ui/dateRangePicker.tsx +0 -63
- package/src/components/ui/dialog.tsx +0 -84
- package/src/components/ui/drawer.tsx +0 -116
- package/src/components/ui/dropdown-menu.tsx +0 -173
- package/src/components/ui/form.tsx +0 -114
- package/src/components/ui/hover-card.tsx +0 -27
- package/src/components/ui/input.tsx +0 -265
- package/src/components/ui/label.tsx +0 -15
- package/src/components/ui/masks.ts +0 -35
- package/src/components/ui/pagination.tsx +0 -78
- package/src/components/ui/popover.tsx +0 -32
- package/src/components/ui/progress.tsx +0 -22
- package/src/components/ui/radio-group.tsx +0 -36
- package/src/components/ui/scroll-area.tsx +0 -46
- package/src/components/ui/select.tsx +0 -130
- package/src/components/ui/separator.tsx +0 -29
- package/src/components/ui/sheet.tsx +0 -90
- package/src/components/ui/sidebar.tsx +0 -598
- package/src/components/ui/skeleton.tsx +0 -15
- package/src/components/ui/slider.tsx +0 -18
- package/src/components/ui/switch.tsx +0 -26
- package/src/components/ui/table.tsx +0 -53
- package/src/components/ui/tabs.tsx +0 -47
- package/src/components/ui/textarea.tsx +0 -27
- package/src/components/ui/toast.tsx +0 -88
- package/src/components/ui/toaster.tsx +0 -49
- package/src/components/ui/tooltip.tsx +0 -31
- package/src/components/ui/use-calendar.tsx +0 -61
- package/src/components/ui/use-toast.ts +0 -186
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/index.ts +0 -299
- package/src/lib/help/date-utils.ts +0 -41
- package/src/lib/help/format.ts +0 -171
- package/src/lib/help/theme.ts +0 -346
- package/src/lib/help/uuid.ts +0 -4
- package/src/lib/utils.ts +0 -6
- package/src/styles/globals.css +0 -59
package/README.md
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Biblioteca de componentes UI reutilizáveis baseada em shadcn/ui e Radix UI para projetos EAI.
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/eai-frontend-components)
|
|
6
|
+
[](https://www.npmjs.com/package/eai-frontend-components)
|
|
7
|
+
[](https://bundlephobia.com/package/eai-frontend-components)
|
|
8
8
|
[](https://www.typescriptlang.org/)
|
|
9
|
-
[](./LICENSE)
|
|
10
10
|
[](https://bitbucket.org/genei_ryodan/erp_frontend_eai_ds/addon/pipelines/home)
|
|
11
11
|
|
|
12
12
|
## 📦 Instalação
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
# NPM
|
|
16
|
-
npm install
|
|
16
|
+
npm install eai-frontend-components
|
|
17
17
|
|
|
18
18
|
# Yarn
|
|
19
|
-
yarn add
|
|
19
|
+
yarn add eai-frontend-components
|
|
20
20
|
|
|
21
21
|
# PNPM
|
|
22
|
-
pnpm add
|
|
22
|
+
pnpm add eai-frontend-components
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
## 🌟 Por que usar
|
|
25
|
+
## 🌟 Por que usar eai-frontend-components?
|
|
26
26
|
|
|
27
27
|
- ⚡ **Performático**: Tree-shaking otimizado, apenas importe o que usar
|
|
28
28
|
- 🎨 **Personalizável**: Baseado em Tailwind CSS com tokens de design
|
|
@@ -64,9 +64,9 @@ git push origin master
|
|
|
64
64
|
## 📦 Instalação
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
npm install eai-
|
|
67
|
+
npm install eai-frontend-components
|
|
68
68
|
# ou
|
|
69
|
-
yarn add eai-
|
|
69
|
+
yarn add eai-frontend-components
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
## 🛠️ Configuração
|
|
@@ -77,7 +77,7 @@ Importe os estilos globais no seu projeto:
|
|
|
77
77
|
|
|
78
78
|
```tsx
|
|
79
79
|
// src/main.tsx ou src/App.tsx
|
|
80
|
-
import 'eai-
|
|
80
|
+
import 'eai-frontend-components/dist/styles.css';
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
### 2. Configure o Tailwind CSS
|
|
@@ -88,7 +88,7 @@ Adicione o conteúdo da biblioteca no seu `tailwind.config.js`:
|
|
|
88
88
|
module.exports = {
|
|
89
89
|
content: [
|
|
90
90
|
"./src/**/*.{js,ts,jsx,tsx}",
|
|
91
|
-
"./node_modules/eai-
|
|
91
|
+
"./node_modules/eai-frontend-components/dist/**/*.{js,ts,jsx,tsx}",
|
|
92
92
|
],
|
|
93
93
|
// ... resto da configuração
|
|
94
94
|
}
|
|
@@ -111,7 +111,7 @@ Adicione as variáveis de tema no seu CSS:
|
|
|
111
111
|
## 🎯 Uso Básico
|
|
112
112
|
|
|
113
113
|
```tsx
|
|
114
|
-
import { Button, Card, Input } from 'eai-
|
|
114
|
+
import { Button, Card, Input } from 'eai-frontend-components';
|
|
115
115
|
|
|
116
116
|
function App() {
|
|
117
117
|
return (
|
|
@@ -246,7 +246,7 @@ import {
|
|
|
246
246
|
SelectItem,
|
|
247
247
|
SelectTrigger,
|
|
248
248
|
SelectValue
|
|
249
|
-
} from 'eai-
|
|
249
|
+
} from 'eai-frontend-components';
|
|
250
250
|
|
|
251
251
|
function ContactForm() {
|
|
252
252
|
return (
|