eai-frontend-components 2.0.23 → 2.0.25
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/LICENSE +20 -20
- package/README.md +298 -298
- package/dist/eai-frontend-components-1.0.0.tgz +0 -0
- package/dist/index.d.ts +24 -18
- package/dist/index.esm.js +24 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -7
- package/dist/index.js.map +1 -1
- package/package.json +147 -146
- package/dist/components/ui/accordion.d.ts +0 -8
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -13
- package/dist/components/ui/alert-dialog.d.ts +0 -25
- package/dist/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog.js +0 -27
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/alert.js +0 -22
- package/dist/components/ui/avatar.d.ts +0 -7
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/avatar.js +0 -11
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -26
- package/dist/components/ui/breadcrumb.d.ts +0 -20
- package/dist/components/ui/breadcrumb.d.ts.map +0 -1
- package/dist/components/ui/breadcrumb.js +0 -23
- package/dist/components/ui/button.d.ts +0 -12
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -33
- package/dist/components/ui/calendar.d.ts +0 -9
- package/dist/components/ui/calendar.d.ts.map +0 -1
- package/dist/components/ui/calendar.js +0 -70
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -16
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/carousel.js +0 -98
- package/dist/components/ui/chart.d.ts +0 -63
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/chart.js +0 -132
- package/dist/components/ui/checkbox.d.ts +0 -5
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/checkbox.js +0 -8
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/collapsible.js +0 -5
- package/dist/components/ui/command.d.ts +0 -81
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/command.js +0 -28
- package/dist/components/ui/context-menu.d.ts +0 -28
- package/dist/components/ui/context-menu.d.ts.map +0 -1
- package/dist/components/ui/context-menu.js +0 -33
- package/dist/components/ui/custom/date-picker.d.ts +0 -12
- package/dist/components/ui/custom/date-picker.d.ts.map +0 -1
- package/dist/components/ui/custom/date-picker.js +0 -35
- package/dist/components/ui/custom/form/checkbox.d.ts +0 -13
- package/dist/components/ui/custom/form/checkbox.d.ts.map +0 -1
- package/dist/components/ui/custom/form/checkbox.js +0 -15
- package/dist/components/ui/custom/form/color.d.ts +0 -15
- package/dist/components/ui/custom/form/color.d.ts.map +0 -1
- package/dist/components/ui/custom/form/color.js +0 -40
- package/dist/components/ui/custom/form/combobox.d.ts +0 -37
- package/dist/components/ui/custom/form/combobox.d.ts.map +0 -1
- package/dist/components/ui/custom/form/combobox.js +0 -82
- package/dist/components/ui/custom/form/cpf-cnpj.d.ts +0 -16
- package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +0 -1
- package/dist/components/ui/custom/form/cpf-cnpj.js +0 -32
- package/dist/components/ui/custom/form/currency.d.ts +0 -14
- package/dist/components/ui/custom/form/currency.d.ts.map +0 -1
- package/dist/components/ui/custom/form/currency.js +0 -15
- package/dist/components/ui/custom/form/date-range.d.ts +0 -16
- package/dist/components/ui/custom/form/date-range.d.ts.map +0 -1
- package/dist/components/ui/custom/form/date-range.js +0 -24
- package/dist/components/ui/custom/form/date.d.ts +0 -16
- package/dist/components/ui/custom/form/date.d.ts.map +0 -1
- package/dist/components/ui/custom/form/date.js +0 -35
- package/dist/components/ui/custom/form/decimal.d.ts +0 -14
- package/dist/components/ui/custom/form/decimal.d.ts.map +0 -1
- package/dist/components/ui/custom/form/decimal.js +0 -15
- package/dist/components/ui/custom/form/file.d.ts +0 -15
- package/dist/components/ui/custom/form/file.d.ts.map +0 -1
- package/dist/components/ui/custom/form/file.js +0 -18
- package/dist/components/ui/custom/form/form-help-text.d.ts +0 -3
- package/dist/components/ui/custom/form/form-help-text.d.ts.map +0 -1
- package/dist/components/ui/custom/form/form-help-text.js +0 -7
- package/dist/components/ui/custom/form/form-label.d.ts +0 -7
- package/dist/components/ui/custom/form/form-label.d.ts.map +0 -1
- package/dist/components/ui/custom/form/form-label.js +0 -9
- package/dist/components/ui/custom/form/form-message.d.ts +0 -5
- package/dist/components/ui/custom/form/form-message.d.ts.map +0 -1
- package/dist/components/ui/custom/form/form-message.js +0 -5
- package/dist/components/ui/custom/form/ghost.d.ts +0 -8
- package/dist/components/ui/custom/form/ghost.d.ts.map +0 -1
- package/dist/components/ui/custom/form/ghost.js +0 -8
- package/dist/components/ui/custom/form/input.d.ts +0 -18
- package/dist/components/ui/custom/form/input.d.ts.map +0 -1
- package/dist/components/ui/custom/form/input.js +0 -14
- package/dist/components/ui/custom/form/mask.d.ts +0 -19
- package/dist/components/ui/custom/form/mask.d.ts.map +0 -1
- package/dist/components/ui/custom/form/mask.js +0 -19
- package/dist/components/ui/custom/form/multi-select.d.ts +0 -26
- package/dist/components/ui/custom/form/multi-select.d.ts.map +0 -1
- package/dist/components/ui/custom/form/multi-select.js +0 -66
- package/dist/components/ui/custom/form/password.d.ts +0 -16
- package/dist/components/ui/custom/form/password.d.ts.map +0 -1
- package/dist/components/ui/custom/form/password.js +0 -14
- package/dist/components/ui/custom/form/percent.d.ts +0 -14
- package/dist/components/ui/custom/form/percent.d.ts.map +0 -1
- package/dist/components/ui/custom/form/percent.js +0 -15
- package/dist/components/ui/custom/form/phone.d.ts +0 -16
- package/dist/components/ui/custom/form/phone.d.ts.map +0 -1
- package/dist/components/ui/custom/form/phone.js +0 -23
- package/dist/components/ui/custom/form/radio-group.d.ts +0 -23
- package/dist/components/ui/custom/form/radio-group.d.ts.map +0 -1
- package/dist/components/ui/custom/form/radio-group.js +0 -15
- package/dist/components/ui/custom/form/select.d.ts +0 -20
- package/dist/components/ui/custom/form/select.d.ts.map +0 -1
- package/dist/components/ui/custom/form/select.js +0 -12
- package/dist/components/ui/custom/form/step-new-form.d.ts +0 -10
- package/dist/components/ui/custom/form/step-new-form.d.ts.map +0 -1
- package/dist/components/ui/custom/form/step-new-form.js +0 -13
- package/dist/components/ui/custom/form/switch.d.ts +0 -13
- package/dist/components/ui/custom/form/switch.d.ts.map +0 -1
- package/dist/components/ui/custom/form/switch.js +0 -16
- package/dist/components/ui/custom/form/text.d.ts +0 -18
- package/dist/components/ui/custom/form/text.d.ts.map +0 -1
- package/dist/components/ui/custom/form/text.js +0 -14
- package/dist/components/ui/custom/form/textarea.d.ts +0 -16
- package/dist/components/ui/custom/form/textarea.d.ts.map +0 -1
- package/dist/components/ui/custom/form/textarea.js +0 -19
- package/dist/components/ui/custom/form/utils.d.ts +0 -18
- package/dist/components/ui/custom/form/utils.d.ts.map +0 -1
- package/dist/components/ui/custom/form/utils.js +0 -88
- package/dist/components/ui/custom/header.d.ts +0 -11
- package/dist/components/ui/custom/header.d.ts.map +0 -1
- package/dist/components/ui/custom/header.js +0 -74
- package/dist/components/ui/custom/label.d.ts +0 -13
- package/dist/components/ui/custom/label.d.ts.map +0 -1
- package/dist/components/ui/custom/label.js +0 -20
- package/dist/components/ui/custom/not-found.d.ts +0 -3
- package/dist/components/ui/custom/not-found.d.ts.map +0 -1
- package/dist/components/ui/custom/not-found.js +0 -9
- package/dist/components/ui/custom/sidebar/module-switcher.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/module-switcher.js +0 -20
- package/dist/components/ui/custom/sidebar/nav-footer.d.ts +0 -7
- package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-footer.js +0 -13
- package/dist/components/ui/custom/sidebar/nav-main.d.ts +0 -7
- package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-main.js +0 -27
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +0 -18
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +0 -10
- package/dist/components/ui/custom/sidebar/nav-user.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-user.js +0 -24
- package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/sidebar-button.js +0 -7
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +0 -5
- package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/sidebar-item.js +0 -7
- package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +0 -29
- package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/types/sidebar.js +0 -5
- package/dist/components/ui/custom/table/data-table-export.d.ts +0 -8
- package/dist/components/ui/custom/table/data-table-export.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-export.js +0 -65
- package/dist/components/ui/custom/table/data-table-footer.d.ts +0 -25
- package/dist/components/ui/custom/table/data-table-footer.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-footer.js +0 -39
- package/dist/components/ui/custom/table/data-table-header.d.ts +0 -9
- package/dist/components/ui/custom/table/data-table-header.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-header.js +0 -11
- package/dist/components/ui/custom/table/data-table-rows.d.ts +0 -13
- package/dist/components/ui/custom/table/data-table-rows.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-rows.js +0 -25
- package/dist/components/ui/custom/table/data-table.d.ts +0 -35
- package/dist/components/ui/custom/table/data-table.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table.js +0 -99
- package/dist/components/ui/custom/table/types/data-table.d.ts +0 -29
- package/dist/components/ui/custom/table/types/data-table.d.ts.map +0 -1
- package/dist/components/ui/custom/table/types/data-table.js +0 -1
- package/dist/components/ui/custom/theme-provider.d.ts +0 -24
- package/dist/components/ui/custom/theme-provider.d.ts.map +0 -1
- package/dist/components/ui/custom/theme-provider.js +0 -79
- package/dist/components/ui/dateRangePicker.d.ts +0 -3
- package/dist/components/ui/dateRangePicker.d.ts.map +0 -1
- package/dist/components/ui/dateRangePicker.js +0 -15
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -23
- package/dist/components/ui/drawer.d.ts +0 -23
- package/dist/components/ui/drawer.d.ts.map +0 -1
- package/dist/components/ui/drawer.js +0 -22
- package/dist/components/ui/dropdown-menu.d.ts +0 -28
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -32
- package/dist/components/ui/form.d.ts +0 -24
- package/dist/components/ui/form.d.ts.map +0 -1
- package/dist/components/ui/form.js +0 -60
- package/dist/components/ui/hover-card.d.ts +0 -7
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/hover-card.js +0 -9
- package/dist/components/ui/input.d.ts +0 -24
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -71
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -9
- package/dist/components/ui/masks.d.ts +0 -17
- package/dist/components/ui/masks.d.ts.map +0 -1
- package/dist/components/ui/masks.js +0 -25
- package/dist/components/ui/pagination.d.ts +0 -30
- package/dist/components/ui/pagination.d.ts.map +0 -1
- package/dist/components/ui/pagination.js +0 -23
- package/dist/components/ui/popover.d.ts +0 -7
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/popover.js +0 -11
- package/dist/components/ui/progress.d.ts +0 -5
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/progress.js +0 -7
- package/dist/components/ui/radio-group.d.ts +0 -6
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/radio-group.js +0 -14
- package/dist/components/ui/scroll-area.d.ts +0 -6
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -11
- package/dist/components/ui/select.d.ts +0 -14
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/select.js +0 -24
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/separator.js +0 -7
- package/dist/components/ui/sheet.d.ts +0 -26
- package/dist/components/ui/sheet.d.ts.map +0 -1
- package/dist/components/ui/sheet.js +0 -37
- package/dist/components/ui/sidebar.d.ts +0 -67
- package/dist/components/ui/sidebar.d.ts.map +0 -1
- package/dist/components/ui/sidebar.js +0 -221
- package/dist/components/ui/skeleton.d.ts +0 -3
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -6
- package/dist/components/ui/slider.d.ts +0 -5
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/slider.js +0 -7
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/table.d.ts +0 -11
- package/dist/components/ui/table.d.ts.map +0 -1
- package/dist/components/ui/table.js +0 -20
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -12
- package/dist/components/ui/textarea.d.ts +0 -4
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -14
- package/dist/components/ui/toast.d.ts +0 -16
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toast.js +0 -34
- package/dist/components/ui/toaster.d.ts +0 -2
- package/dist/components/ui/toaster.d.ts.map +0 -1
- package/dist/components/ui/toaster.js +0 -21
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/use-calendar.d.ts +0 -7
- package/dist/components/ui/use-calendar.d.ts.map +0 -1
- package/dist/components/ui/use-calendar.js +0 -23
- package/dist/components/ui/use-toast.d.ts +0 -46
- package/dist/components/ui/use-toast.d.ts.map +0 -1
- package/dist/components/ui/use-toast.js +0 -125
- package/dist/hooks/use-mobile.d.ts +0 -2
- package/dist/hooks/use-mobile.d.ts.map +0 -1
- package/dist/hooks/use-mobile.js +0 -15
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/help/date-utils.d.ts +0 -7
- package/dist/lib/help/date-utils.d.ts.map +0 -1
- package/dist/lib/help/date-utils.js +0 -34
- package/dist/lib/help/format.d.ts +0 -22
- package/dist/lib/help/format.d.ts.map +0 -1
- package/dist/lib/help/format.js +0 -140
- package/dist/lib/help/theme.d.ts +0 -291
- package/dist/lib/help/theme.d.ts.map +0 -1
- package/dist/lib/help/theme.js +0 -340
- package/dist/lib/help/uuid.d.ts +0 -2
- package/dist/lib/help/uuid.d.ts.map +0 -1
- package/dist/lib/help/uuid.js +0 -4
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -5
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 EAI Team
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 EAI Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,299 +1,299 @@
|
|
|
1
|
-
# 🎨 EAI Design System Components
|
|
2
|
-
|
|
3
|
-
Biblioteca de componentes UI reutilizáveis baseada em shadcn/ui e Radix UI para projetos EAI.
|
|
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
|
-
[](https://www.typescriptlang.org/)
|
|
9
|
-
[](./LICENSE)
|
|
10
|
-
[](https://bitbucket.org/genei_ryodan/erp_frontend_eai_ds/addon/pipelines/home)
|
|
11
|
-
|
|
12
|
-
## 📦 Instalação
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
# NPM
|
|
16
|
-
npm install eai-frontend-components
|
|
17
|
-
|
|
18
|
-
# Yarn
|
|
19
|
-
yarn add eai-frontend-components
|
|
20
|
-
|
|
21
|
-
# PNPM
|
|
22
|
-
pnpm add eai-frontend-components
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## 🌟 Por que usar eai-frontend-components?
|
|
26
|
-
|
|
27
|
-
- ⚡ **Performático**: Tree-shaking otimizado, apenas importe o que usar
|
|
28
|
-
- 🎨 **Personalizável**: Baseado em Tailwind CSS com tokens de design
|
|
29
|
-
- ♿ **Acessível**: Construído com Radix UI primitives (WCAG 2.1)
|
|
30
|
-
- 🔧 **TypeScript**: Totalmente tipado para melhor DX
|
|
31
|
-
- 🌙 **Dark Mode**: Suporte nativo a múltiplos temas
|
|
32
|
-
- 📱 **Responsivo**: Mobile-first e totalmente adaptativo
|
|
33
|
-
- 🚀 **Moderno**: React 18+, ESM, e as melhores práticas
|
|
34
|
-
|
|
35
|
-
## 🚀 Release Automático
|
|
36
|
-
|
|
37
|
-
Este projeto usa **Semantic Release** para publicação automática no NPM:
|
|
38
|
-
|
|
39
|
-
- `feat:` → Nova funcionalidade (versão minor)
|
|
40
|
-
- `fix:` → Correção de bug (versão patch)
|
|
41
|
-
- `feat!:` → Breaking change (versão major)
|
|
42
|
-
|
|
43
|
-
**Exemplo:**
|
|
44
|
-
```bash
|
|
45
|
-
git commit -m "feat: adicionar componente DatePicker"
|
|
46
|
-
git push origin master
|
|
47
|
-
# → Versão 2.0.4 vira 2.1.0 automaticamente! 🎉
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## 📚 Documentação Adicional
|
|
51
|
-
|
|
52
|
-
- 📖 **[Guia de Publicação](./PUBLISHING.md)** - Como funciona o release automático
|
|
53
|
-
- 📝 **[Conventional Commits](./CONVENTIONAL_COMMITS.md)** - Padrão de commits obrigatório
|
|
54
|
-
|
|
55
|
-
## 🚀 Características
|
|
56
|
-
|
|
57
|
-
- ⚡ **Performance**: Componentes otimizados com Tree-shaking
|
|
58
|
-
- 🎨 **Customizável**: Sistema de design tokens com Tailwind CSS
|
|
59
|
-
- ♿ **Acessível**: Construído com Radix UI primitives
|
|
60
|
-
- 🔧 **TypeScript**: Totalmente tipado
|
|
61
|
-
- 📦 **Modular**: Importe apenas o que você precisa
|
|
62
|
-
- 🌙 **Dark Mode**: Suporte nativo a temas
|
|
63
|
-
|
|
64
|
-
## 📦 Instalação
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
npm install eai-frontend-components
|
|
68
|
-
# ou
|
|
69
|
-
yarn add eai-frontend-components
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## 🛠️ Configuração
|
|
73
|
-
|
|
74
|
-
### 1. Adicione os estilos CSS
|
|
75
|
-
|
|
76
|
-
Importe os estilos globais no seu projeto:
|
|
77
|
-
|
|
78
|
-
```tsx
|
|
79
|
-
// src/main.tsx ou src/App.tsx
|
|
80
|
-
import 'eai-frontend-components/dist/styles.css';
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### 2. Configure o Tailwind CSS
|
|
84
|
-
|
|
85
|
-
Adicione o conteúdo da biblioteca no seu `tailwind.config.js`:
|
|
86
|
-
|
|
87
|
-
```js
|
|
88
|
-
module.exports = {
|
|
89
|
-
content: [
|
|
90
|
-
"./src/**/*.{js,ts,jsx,tsx}",
|
|
91
|
-
"./node_modules/eai-frontend-components/dist/**/*.{js,ts,jsx,tsx}",
|
|
92
|
-
],
|
|
93
|
-
// ... resto da configuração
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### 3. Configure as variáveis CSS
|
|
98
|
-
|
|
99
|
-
Adicione as variáveis de tema no seu CSS:
|
|
100
|
-
|
|
101
|
-
```css
|
|
102
|
-
:root {
|
|
103
|
-
--background: 0 0% 100%;
|
|
104
|
-
--foreground: 222.2 84% 4.9%;
|
|
105
|
-
--primary: 222.2 47.4% 11.2%;
|
|
106
|
-
--primary-foreground: 210 40% 98%;
|
|
107
|
-
/* ... outras variáveis */
|
|
108
|
-
}
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## 🎯 Uso Básico
|
|
112
|
-
|
|
113
|
-
```tsx
|
|
114
|
-
import { Button, Card, Input } from 'eai-frontend-components';
|
|
115
|
-
|
|
116
|
-
function App() {
|
|
117
|
-
return (
|
|
118
|
-
<Card className="p-6">
|
|
119
|
-
<Input placeholder="Digite algo..." />
|
|
120
|
-
<Button onClick={() => alert('Clicou!')}>
|
|
121
|
-
Clique aqui
|
|
122
|
-
</Button>
|
|
123
|
-
</Card>
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
## 📚 Componentes Disponíveis
|
|
129
|
-
|
|
130
|
-
### Layouts
|
|
131
|
-
- `Card` - Cartões com header, content e footer
|
|
132
|
-
- `Sheet` - Painel lateral deslizante
|
|
133
|
-
- `Dialog` - Modais e dialogs
|
|
134
|
-
- `Accordion` - Conteúdo expansível
|
|
135
|
-
|
|
136
|
-
### Formulários
|
|
137
|
-
- `Button` - Botões com múltiplas variantes
|
|
138
|
-
- `Input` - Campos de texto
|
|
139
|
-
- `Select` - Seletor dropdown
|
|
140
|
-
- `Checkbox` - Caixas de seleção
|
|
141
|
-
- `RadioGroup` - Grupos de radio buttons
|
|
142
|
-
- `Textarea` - Área de texto
|
|
143
|
-
- `Switch` - Interruptores
|
|
144
|
-
- `Slider` - Controles deslizantes
|
|
145
|
-
|
|
146
|
-
### Navegação
|
|
147
|
-
- `Tabs` - Abas navegáveis
|
|
148
|
-
- `Breadcrumb` - Navegação hierárquica
|
|
149
|
-
- `Pagination` - Paginação de dados
|
|
150
|
-
- `Command` - Paleta de comandos
|
|
151
|
-
|
|
152
|
-
### Feedback
|
|
153
|
-
- `Alert` - Alertas e notificações
|
|
154
|
-
- `Toast` - Notificações temporárias
|
|
155
|
-
- `Progress` - Barras de progresso
|
|
156
|
-
- `Badge` - Etiquetas e tags
|
|
157
|
-
- `Skeleton` - Loading states
|
|
158
|
-
|
|
159
|
-
### Exibição de Dados
|
|
160
|
-
- `Table` - Tabelas estruturadas
|
|
161
|
-
- `Avatar` - Imagens de perfil
|
|
162
|
-
- `Calendar` - Seletor de datas
|
|
163
|
-
- `Tooltip` - Dicas contextuais
|
|
164
|
-
|
|
165
|
-
## 🎨 Customização
|
|
166
|
-
|
|
167
|
-
### Variantes de Componentes
|
|
168
|
-
|
|
169
|
-
```tsx
|
|
170
|
-
<Button variant="default">Padrão</Button>
|
|
171
|
-
<Button variant="outline">Contorno</Button>
|
|
172
|
-
<Button variant="ghost">Fantasma</Button>
|
|
173
|
-
<Button variant="destructive">Destrutivo</Button>
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
### Tamanhos
|
|
177
|
-
|
|
178
|
-
```tsx
|
|
179
|
-
<Button size="sm">Pequeno</Button>
|
|
180
|
-
<Button size="default">Padrão</Button>
|
|
181
|
-
<Button size="lg">Grande</Button>
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### Classes Customizadas
|
|
185
|
-
|
|
186
|
-
```tsx
|
|
187
|
-
<Button className="bg-purple-600 hover:bg-purple-700">
|
|
188
|
-
Customizado
|
|
189
|
-
</Button>
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
## 🌙 Dark Mode
|
|
193
|
-
|
|
194
|
-
Configure o dark mode adicionando a classe `dark` ao elemento raiz:
|
|
195
|
-
|
|
196
|
-
```tsx
|
|
197
|
-
// Exemplo com context
|
|
198
|
-
const [theme, setTheme] = useState('light');
|
|
199
|
-
|
|
200
|
-
return (
|
|
201
|
-
<div className={theme === 'dark' ? 'dark' : ''}>
|
|
202
|
-
<App />
|
|
203
|
-
</div>
|
|
204
|
-
);
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
## 📖 Storybook
|
|
208
|
-
|
|
209
|
-
Execute o Storybook para visualizar todos os componentes:
|
|
210
|
-
|
|
211
|
-
```bash
|
|
212
|
-
yarn dev
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
## 🔧 Desenvolvimento
|
|
216
|
-
|
|
217
|
-
```bash
|
|
218
|
-
# Instale as dependências
|
|
219
|
-
yarn install
|
|
220
|
-
|
|
221
|
-
# Desenvolvimento com watch
|
|
222
|
-
yarn build:watch
|
|
223
|
-
|
|
224
|
-
# Build de produção
|
|
225
|
-
yarn build
|
|
226
|
-
|
|
227
|
-
# Lint
|
|
228
|
-
yarn lint
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
## 📝 Exemplos
|
|
232
|
-
|
|
233
|
-
### Formulário Completo
|
|
234
|
-
|
|
235
|
-
```tsx
|
|
236
|
-
import {
|
|
237
|
-
Card,
|
|
238
|
-
CardContent,
|
|
239
|
-
CardHeader,
|
|
240
|
-
CardTitle,
|
|
241
|
-
Button,
|
|
242
|
-
Input,
|
|
243
|
-
Label,
|
|
244
|
-
Select,
|
|
245
|
-
SelectContent,
|
|
246
|
-
SelectItem,
|
|
247
|
-
SelectTrigger,
|
|
248
|
-
SelectValue
|
|
249
|
-
} from 'eai-frontend-components';
|
|
250
|
-
|
|
251
|
-
function ContactForm() {
|
|
252
|
-
return (
|
|
253
|
-
<Card className="w-96">
|
|
254
|
-
<CardHeader>
|
|
255
|
-
<CardTitle>Contato</CardTitle>
|
|
256
|
-
</CardHeader>
|
|
257
|
-
<CardContent className="space-y-4">
|
|
258
|
-
<div>
|
|
259
|
-
<Label htmlFor="name">Nome</Label>
|
|
260
|
-
<Input id="name" placeholder="Seu nome" />
|
|
261
|
-
</div>
|
|
262
|
-
|
|
263
|
-
<div>
|
|
264
|
-
<Label htmlFor="type">Tipo</Label>
|
|
265
|
-
<Select>
|
|
266
|
-
<SelectTrigger>
|
|
267
|
-
<SelectValue placeholder="Selecione..." />
|
|
268
|
-
</SelectTrigger>
|
|
269
|
-
<SelectContent>
|
|
270
|
-
<SelectItem value="comercial">Comercial</SelectItem>
|
|
271
|
-
<SelectItem value="suporte">Suporte</SelectItem>
|
|
272
|
-
</SelectContent>
|
|
273
|
-
</Select>
|
|
274
|
-
</div>
|
|
275
|
-
|
|
276
|
-
<Button className="w-full">Enviar</Button>
|
|
277
|
-
</CardContent>
|
|
278
|
-
</Card>
|
|
279
|
-
);
|
|
280
|
-
}
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
## 🤝 Contribuição
|
|
284
|
-
|
|
285
|
-
1. Faça o fork do projeto
|
|
286
|
-
2. Crie uma branch para sua feature (`git checkout -b feature/nova-feature`)
|
|
287
|
-
3. Commit suas mudanças (`git commit -m 'feat: adiciona nova feature'`)
|
|
288
|
-
4. Push para a branch (`git push origin feature/nova-feature`)
|
|
289
|
-
5. Abra um Pull Request
|
|
290
|
-
|
|
291
|
-
## 📄 Licença
|
|
292
|
-
|
|
293
|
-
MIT © EAI Team
|
|
294
|
-
|
|
295
|
-
## 🔗 Links
|
|
296
|
-
|
|
297
|
-
- [Documentação Radix UI](https://www.radix-ui.com/)
|
|
298
|
-
- [Tailwind CSS](https://tailwindcss.com/)
|
|
1
|
+
# 🎨 EAI Design System Components
|
|
2
|
+
|
|
3
|
+
Biblioteca de componentes UI reutilizáveis baseada em shadcn/ui e Radix UI para projetos EAI.
|
|
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
|
+
[](https://www.typescriptlang.org/)
|
|
9
|
+
[](./LICENSE)
|
|
10
|
+
[](https://bitbucket.org/genei_ryodan/erp_frontend_eai_ds/addon/pipelines/home)
|
|
11
|
+
|
|
12
|
+
## 📦 Instalação
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# NPM
|
|
16
|
+
npm install eai-frontend-components
|
|
17
|
+
|
|
18
|
+
# Yarn
|
|
19
|
+
yarn add eai-frontend-components
|
|
20
|
+
|
|
21
|
+
# PNPM
|
|
22
|
+
pnpm add eai-frontend-components
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 🌟 Por que usar eai-frontend-components?
|
|
26
|
+
|
|
27
|
+
- ⚡ **Performático**: Tree-shaking otimizado, apenas importe o que usar
|
|
28
|
+
- 🎨 **Personalizável**: Baseado em Tailwind CSS com tokens de design
|
|
29
|
+
- ♿ **Acessível**: Construído com Radix UI primitives (WCAG 2.1)
|
|
30
|
+
- 🔧 **TypeScript**: Totalmente tipado para melhor DX
|
|
31
|
+
- 🌙 **Dark Mode**: Suporte nativo a múltiplos temas
|
|
32
|
+
- 📱 **Responsivo**: Mobile-first e totalmente adaptativo
|
|
33
|
+
- 🚀 **Moderno**: React 18+, ESM, e as melhores práticas
|
|
34
|
+
|
|
35
|
+
## 🚀 Release Automático
|
|
36
|
+
|
|
37
|
+
Este projeto usa **Semantic Release** para publicação automática no NPM:
|
|
38
|
+
|
|
39
|
+
- `feat:` → Nova funcionalidade (versão minor)
|
|
40
|
+
- `fix:` → Correção de bug (versão patch)
|
|
41
|
+
- `feat!:` → Breaking change (versão major)
|
|
42
|
+
|
|
43
|
+
**Exemplo:**
|
|
44
|
+
```bash
|
|
45
|
+
git commit -m "feat: adicionar componente DatePicker"
|
|
46
|
+
git push origin master
|
|
47
|
+
# → Versão 2.0.4 vira 2.1.0 automaticamente! 🎉
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 📚 Documentação Adicional
|
|
51
|
+
|
|
52
|
+
- 📖 **[Guia de Publicação](./PUBLISHING.md)** - Como funciona o release automático
|
|
53
|
+
- 📝 **[Conventional Commits](./CONVENTIONAL_COMMITS.md)** - Padrão de commits obrigatório
|
|
54
|
+
|
|
55
|
+
## 🚀 Características
|
|
56
|
+
|
|
57
|
+
- ⚡ **Performance**: Componentes otimizados com Tree-shaking
|
|
58
|
+
- 🎨 **Customizável**: Sistema de design tokens com Tailwind CSS
|
|
59
|
+
- ♿ **Acessível**: Construído com Radix UI primitives
|
|
60
|
+
- 🔧 **TypeScript**: Totalmente tipado
|
|
61
|
+
- 📦 **Modular**: Importe apenas o que você precisa
|
|
62
|
+
- 🌙 **Dark Mode**: Suporte nativo a temas
|
|
63
|
+
|
|
64
|
+
## 📦 Instalação
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npm install eai-frontend-components
|
|
68
|
+
# ou
|
|
69
|
+
yarn add eai-frontend-components
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 🛠️ Configuração
|
|
73
|
+
|
|
74
|
+
### 1. Adicione os estilos CSS
|
|
75
|
+
|
|
76
|
+
Importe os estilos globais no seu projeto:
|
|
77
|
+
|
|
78
|
+
```tsx
|
|
79
|
+
// src/main.tsx ou src/App.tsx
|
|
80
|
+
import 'eai-frontend-components/dist/styles.css';
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 2. Configure o Tailwind CSS
|
|
84
|
+
|
|
85
|
+
Adicione o conteúdo da biblioteca no seu `tailwind.config.js`:
|
|
86
|
+
|
|
87
|
+
```js
|
|
88
|
+
module.exports = {
|
|
89
|
+
content: [
|
|
90
|
+
"./src/**/*.{js,ts,jsx,tsx}",
|
|
91
|
+
"./node_modules/eai-frontend-components/dist/**/*.{js,ts,jsx,tsx}",
|
|
92
|
+
],
|
|
93
|
+
// ... resto da configuração
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 3. Configure as variáveis CSS
|
|
98
|
+
|
|
99
|
+
Adicione as variáveis de tema no seu CSS:
|
|
100
|
+
|
|
101
|
+
```css
|
|
102
|
+
:root {
|
|
103
|
+
--background: 0 0% 100%;
|
|
104
|
+
--foreground: 222.2 84% 4.9%;
|
|
105
|
+
--primary: 222.2 47.4% 11.2%;
|
|
106
|
+
--primary-foreground: 210 40% 98%;
|
|
107
|
+
/* ... outras variáveis */
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## 🎯 Uso Básico
|
|
112
|
+
|
|
113
|
+
```tsx
|
|
114
|
+
import { Button, Card, Input } from 'eai-frontend-components';
|
|
115
|
+
|
|
116
|
+
function App() {
|
|
117
|
+
return (
|
|
118
|
+
<Card className="p-6">
|
|
119
|
+
<Input placeholder="Digite algo..." />
|
|
120
|
+
<Button onClick={() => alert('Clicou!')}>
|
|
121
|
+
Clique aqui
|
|
122
|
+
</Button>
|
|
123
|
+
</Card>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## 📚 Componentes Disponíveis
|
|
129
|
+
|
|
130
|
+
### Layouts
|
|
131
|
+
- `Card` - Cartões com header, content e footer
|
|
132
|
+
- `Sheet` - Painel lateral deslizante
|
|
133
|
+
- `Dialog` - Modais e dialogs
|
|
134
|
+
- `Accordion` - Conteúdo expansível
|
|
135
|
+
|
|
136
|
+
### Formulários
|
|
137
|
+
- `Button` - Botões com múltiplas variantes
|
|
138
|
+
- `Input` - Campos de texto
|
|
139
|
+
- `Select` - Seletor dropdown
|
|
140
|
+
- `Checkbox` - Caixas de seleção
|
|
141
|
+
- `RadioGroup` - Grupos de radio buttons
|
|
142
|
+
- `Textarea` - Área de texto
|
|
143
|
+
- `Switch` - Interruptores
|
|
144
|
+
- `Slider` - Controles deslizantes
|
|
145
|
+
|
|
146
|
+
### Navegação
|
|
147
|
+
- `Tabs` - Abas navegáveis
|
|
148
|
+
- `Breadcrumb` - Navegação hierárquica
|
|
149
|
+
- `Pagination` - Paginação de dados
|
|
150
|
+
- `Command` - Paleta de comandos
|
|
151
|
+
|
|
152
|
+
### Feedback
|
|
153
|
+
- `Alert` - Alertas e notificações
|
|
154
|
+
- `Toast` - Notificações temporárias
|
|
155
|
+
- `Progress` - Barras de progresso
|
|
156
|
+
- `Badge` - Etiquetas e tags
|
|
157
|
+
- `Skeleton` - Loading states
|
|
158
|
+
|
|
159
|
+
### Exibição de Dados
|
|
160
|
+
- `Table` - Tabelas estruturadas
|
|
161
|
+
- `Avatar` - Imagens de perfil
|
|
162
|
+
- `Calendar` - Seletor de datas
|
|
163
|
+
- `Tooltip` - Dicas contextuais
|
|
164
|
+
|
|
165
|
+
## 🎨 Customização
|
|
166
|
+
|
|
167
|
+
### Variantes de Componentes
|
|
168
|
+
|
|
169
|
+
```tsx
|
|
170
|
+
<Button variant="default">Padrão</Button>
|
|
171
|
+
<Button variant="outline">Contorno</Button>
|
|
172
|
+
<Button variant="ghost">Fantasma</Button>
|
|
173
|
+
<Button variant="destructive">Destrutivo</Button>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Tamanhos
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
<Button size="sm">Pequeno</Button>
|
|
180
|
+
<Button size="default">Padrão</Button>
|
|
181
|
+
<Button size="lg">Grande</Button>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Classes Customizadas
|
|
185
|
+
|
|
186
|
+
```tsx
|
|
187
|
+
<Button className="bg-purple-600 hover:bg-purple-700">
|
|
188
|
+
Customizado
|
|
189
|
+
</Button>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## 🌙 Dark Mode
|
|
193
|
+
|
|
194
|
+
Configure o dark mode adicionando a classe `dark` ao elemento raiz:
|
|
195
|
+
|
|
196
|
+
```tsx
|
|
197
|
+
// Exemplo com context
|
|
198
|
+
const [theme, setTheme] = useState('light');
|
|
199
|
+
|
|
200
|
+
return (
|
|
201
|
+
<div className={theme === 'dark' ? 'dark' : ''}>
|
|
202
|
+
<App />
|
|
203
|
+
</div>
|
|
204
|
+
);
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## 📖 Storybook
|
|
208
|
+
|
|
209
|
+
Execute o Storybook para visualizar todos os componentes:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
yarn dev
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## 🔧 Desenvolvimento
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
# Instale as dependências
|
|
219
|
+
yarn install
|
|
220
|
+
|
|
221
|
+
# Desenvolvimento com watch
|
|
222
|
+
yarn build:watch
|
|
223
|
+
|
|
224
|
+
# Build de produção
|
|
225
|
+
yarn build
|
|
226
|
+
|
|
227
|
+
# Lint
|
|
228
|
+
yarn lint
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## 📝 Exemplos
|
|
232
|
+
|
|
233
|
+
### Formulário Completo
|
|
234
|
+
|
|
235
|
+
```tsx
|
|
236
|
+
import {
|
|
237
|
+
Card,
|
|
238
|
+
CardContent,
|
|
239
|
+
CardHeader,
|
|
240
|
+
CardTitle,
|
|
241
|
+
Button,
|
|
242
|
+
Input,
|
|
243
|
+
Label,
|
|
244
|
+
Select,
|
|
245
|
+
SelectContent,
|
|
246
|
+
SelectItem,
|
|
247
|
+
SelectTrigger,
|
|
248
|
+
SelectValue
|
|
249
|
+
} from 'eai-frontend-components';
|
|
250
|
+
|
|
251
|
+
function ContactForm() {
|
|
252
|
+
return (
|
|
253
|
+
<Card className="w-96">
|
|
254
|
+
<CardHeader>
|
|
255
|
+
<CardTitle>Contato</CardTitle>
|
|
256
|
+
</CardHeader>
|
|
257
|
+
<CardContent className="space-y-4">
|
|
258
|
+
<div>
|
|
259
|
+
<Label htmlFor="name">Nome</Label>
|
|
260
|
+
<Input id="name" placeholder="Seu nome" />
|
|
261
|
+
</div>
|
|
262
|
+
|
|
263
|
+
<div>
|
|
264
|
+
<Label htmlFor="type">Tipo</Label>
|
|
265
|
+
<Select>
|
|
266
|
+
<SelectTrigger>
|
|
267
|
+
<SelectValue placeholder="Selecione..." />
|
|
268
|
+
</SelectTrigger>
|
|
269
|
+
<SelectContent>
|
|
270
|
+
<SelectItem value="comercial">Comercial</SelectItem>
|
|
271
|
+
<SelectItem value="suporte">Suporte</SelectItem>
|
|
272
|
+
</SelectContent>
|
|
273
|
+
</Select>
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
<Button className="w-full">Enviar</Button>
|
|
277
|
+
</CardContent>
|
|
278
|
+
</Card>
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
## 🤝 Contribuição
|
|
284
|
+
|
|
285
|
+
1. Faça o fork do projeto
|
|
286
|
+
2. Crie uma branch para sua feature (`git checkout -b feature/nova-feature`)
|
|
287
|
+
3. Commit suas mudanças (`git commit -m 'feat: adiciona nova feature'`)
|
|
288
|
+
4. Push para a branch (`git push origin feature/nova-feature`)
|
|
289
|
+
5. Abra um Pull Request
|
|
290
|
+
|
|
291
|
+
## 📄 Licença
|
|
292
|
+
|
|
293
|
+
MIT © EAI Team
|
|
294
|
+
|
|
295
|
+
## 🔗 Links
|
|
296
|
+
|
|
297
|
+
- [Documentação Radix UI](https://www.radix-ui.com/)
|
|
298
|
+
- [Tailwind CSS](https://tailwindcss.com/)
|
|
299
299
|
- [shadcn/ui](https://ui.shadcn.com/)
|
|
Binary file
|