forlogic-core 2.1.4 → 2.2.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/.note/memory/features/import/attachment-idempotency-registry.md +8 -8
- package/.note/memory/features/import/attachment-strategy.md +30 -30
- package/.note/memory/patterns/admin-i18n-policy.md +20 -20
- package/.note/memory/patterns/alias-url-resolution.md +69 -69
- package/.note/memory/patterns/doc-sync-rule.md +35 -35
- package/.note/memory/patterns/documentation-standard.md +17 -17
- package/.note/memory/patterns/dynamic-supabase-config.md +4 -4
- package/.note/memory/patterns/environment-detection-logic.md +35 -35
- package/.note/memory/patterns/i18n-architecture.md +3 -3
- package/README.md +120 -68
- package/dist/action-plans/components/ActionPlanAttachmentsTab.d.ts +3 -0
- package/dist/action-plans/components/ActionPlanCommentsTab.d.ts +3 -0
- package/dist/action-plans/components/ActionPlanCostTab.d.ts +5 -0
- package/dist/action-plans/components/ActionPlanGeneralTab.d.ts +3 -0
- package/dist/action-plans/components/ActionPlanHistoryTab.d.ts +3 -0
- package/dist/action-plans/components/ActionPlanPredecessorsTab.d.ts +5 -0
- package/dist/action-plans/components/ActionPlanProgressDialog.d.ts +3 -0
- package/dist/action-plans/components/ActionPlanProgressTab.d.ts +5 -0
- package/dist/action-plans/components/ActionPlanStatusBadge.d.ts +9 -2
- package/dist/action-plans/constants.d.ts +24 -0
- package/dist/action-plans/hooks/useActionPlan.d.ts +5 -0
- package/dist/action-plans/hooks/useActionPlanProgress.d.ts +5 -0
- package/dist/action-plans/types.d.ts +60 -0
- package/dist/action-plans/utils/formatTime.d.ts +9 -0
- package/dist/audit-trail/components/AuditTrailDetails.d.ts +10 -0
- package/dist/audit-trail/components/AuditTrailFilter.d.ts +10 -0
- package/dist/audit-trail/components/AuditTrailPage.d.ts +10 -0
- package/dist/audit-trail/types.d.ts +58 -0
- package/dist/audit-trail/utils.d.ts +18 -2
- package/dist/auth/components/EditProfileDialog.d.ts +1 -0
- package/dist/auth/components/ProtectedRoute.d.ts +5 -0
- package/dist/auth/contexts/AuthContext.d.ts +5 -0
- package/dist/auth/pages/CallbackPage.d.ts +5 -0
- package/dist/auth/services/AuthService.d.ts +5 -0
- package/dist/auth/services/TokenManager.d.ts +5 -0
- package/dist/auth/services/TokenService.d.ts +10 -0
- package/dist/auth/utils/ErrorInterceptor.d.ts +5 -0
- package/dist/components/dashboards/dashboard-form.d.ts +15 -0
- package/dist/components/dashboards/dashboard-general-view.d.ts +15 -0
- package/dist/components/dashboards/dashboard-grid.d.ts +25 -0
- package/dist/components/dashboards/dashboard-list.d.ts +10 -0
- package/dist/components/dashboards/dashboard-panel-renderer.d.ts +10 -0
- package/dist/components/dashboards/dashboard-view.d.ts +10 -0
- package/dist/components/dashboards/helpers.d.ts +44 -5
- package/dist/components/dashboards/panels/burndown-panel.d.ts +15 -0
- package/dist/components/dashboards/panels/cartesian-panel.d.ts +20 -0
- package/dist/components/dashboards/panels/list-panel.d.ts +15 -0
- package/dist/components/dashboards/panels/matrix-risk-panel.d.ts +25 -0
- package/dist/components/dashboards/panels/numeric-panel.d.ts +10 -0
- package/dist/components/dashboards/panels/panel-error.d.ts +10 -0
- package/dist/components/dashboards/panels/panel-header.d.ts +10 -0
- package/dist/components/dashboards/panels/panel-loader.d.ts +10 -0
- package/dist/components/dashboards/panels/panel-no-data.d.ts +10 -0
- package/dist/components/dashboards/panels/panel-unavailable.d.ts +10 -0
- package/dist/components/dashboards/panels/pareto-panel.d.ts +10 -0
- package/dist/components/dashboards/panels/performance-panel.d.ts +15 -0
- package/dist/components/dashboards/panels/pie-panel.d.ts +10 -0
- package/dist/components/dashboards/panels/text-panel.d.ts +10 -0
- package/dist/components/dashboards/types.d.ts +230 -0
- package/dist/components/modules/AccessDeniedDialog.d.ts +3 -1
- package/dist/components/modules/ModuleAccessGuard.d.ts +3 -1
- package/dist/components/modules/ModulesContent.d.ts +3 -1
- package/dist/components/modules/ModulesDialog.d.ts +1 -1
- package/dist/components/modules/ModulesFooterCards.d.ts +3 -1
- package/dist/components/modules/types.d.ts +2 -0
- package/dist/components/ui/accordion.d.ts +35 -0
- package/dist/components/ui/action-button.d.ts +5 -0
- package/dist/components/ui/alert-dialog.d.ts +82 -0
- package/dist/components/ui/alert.d.ts +32 -0
- package/dist/components/ui/avatar.d.ts +30 -0
- package/dist/components/ui/badge.d.ts +32 -0
- package/dist/components/ui/breadcrumb.d.ts +54 -0
- package/dist/components/ui/button-group.d.ts +15 -0
- package/dist/components/ui/button.d.ts +55 -0
- package/dist/components/ui/calendar.d.ts +16 -0
- package/dist/components/ui/card.d.ts +49 -0
- package/dist/components/ui/chart.d.ts +35 -0
- package/dist/components/ui/checkbox.d.ts +11 -0
- package/dist/components/ui/collapsible.d.ts +15 -0
- package/dist/components/ui/color-picker.d.ts +5 -0
- package/dist/components/ui/combo-tree.d.ts +23 -0
- package/dist/components/ui/combobox.d.ts +28 -0
- package/dist/components/ui/command.d.ts +66 -0
- package/dist/components/ui/context-menu.d.ts +95 -0
- package/dist/components/ui/date-picker.d.ts +10 -0
- package/dist/components/ui/dialog-wizard.d.ts +22 -4
- package/dist/components/ui/dialog.d.ts +181 -0
- package/dist/components/ui/drawer.d.ts +72 -0
- package/dist/components/ui/dropdown-menu.d.ts +153 -0
- package/dist/components/ui/electronic-signature-dialog.d.ts +10 -0
- package/dist/components/ui/export-dialog.d.ts +20 -0
- package/dist/components/ui/form.d.ts +96 -0
- package/dist/components/ui/hover-card.d.ts +15 -0
- package/dist/components/ui/icon-picker.d.ts +5 -0
- package/dist/components/ui/iframe-dialog.d.ts +10 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/menubar.d.ts +80 -0
- package/dist/components/ui/multiselect-permissions.d.ts +25 -0
- package/dist/components/ui/navigation-menu.d.ts +45 -0
- package/dist/components/ui/onboarding-dialog.d.ts +15 -0
- package/dist/components/ui/online-editor-dialog.d.ts +10 -0
- package/dist/components/ui/pagination.d.ts +53 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/radio-group.d.ts +3 -0
- package/dist/components/ui/report-request-list.d.ts +20 -0
- package/dist/components/ui/resizable.d.ts +15 -0
- package/dist/components/ui/rich-text-editor.d.ts +13 -0
- package/dist/components/ui/scroll-area.d.ts +3 -0
- package/dist/components/ui/select.d.ts +71 -0
- package/dist/components/ui/separator.d.ts +13 -0
- package/dist/components/ui/sheet.d.ts +76 -0
- package/dist/components/ui/sidebar.d.ts +203 -0
- package/dist/components/ui/skeleton-variants.d.ts +25 -0
- package/dist/components/ui/skeleton.d.ts +12 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/sonner.d.ts +5 -0
- package/dist/components/ui/spinner.d.ts +5 -0
- package/dist/components/ui/split-button.d.ts +6 -0
- package/dist/components/ui/stack.d.ts +5 -0
- package/dist/components/ui/status-badge.d.ts +52 -0
- package/dist/components/ui/step-selector.d.ts +5 -0
- package/dist/components/ui/stimulsoft-viewer.d.ts +8 -0
- package/dist/components/ui/switch.d.ts +21 -0
- package/dist/components/ui/tab-page-layout.d.ts +33 -0
- package/dist/components/ui/table-resize-handle.d.ts +10 -3
- package/dist/components/ui/table.d.ts +102 -0
- package/dist/components/ui/tabs.d.ts +59 -0
- package/dist/components/ui/terms-of-use-dialog.d.ts +50 -4
- package/dist/components/ui/textarea.d.ts +27 -0
- package/dist/components/ui/timepicker.d.ts +23 -0
- package/dist/components/ui/toggle-group.d.ts +25 -0
- package/dist/components/ui/toggle.d.ts +21 -0
- package/dist/components/ui/tooltip.d.ts +48 -0
- package/dist/components/ui/truncated-cell.d.ts +13 -0
- package/dist/components/ui/typography.d.ts +119 -0
- package/dist/components/ui/updates-notification.d.ts +33 -0
- package/dist/components/ui/users-groups-selector.d.ts +43 -0
- package/dist/components/ui/viewer-dialog.d.ts +107 -0
- package/dist/crud/components/ActionMenuItems.d.ts +5 -0
- package/dist/crud/components/BaseForm.d.ts +46 -0
- package/dist/crud/components/ColumnSettingsPopover.d.ts +10 -0
- package/dist/crud/components/CrudActionBar.d.ts +20 -0
- package/dist/crud/components/CrudGrid.d.ts +10 -0
- package/dist/crud/components/CrudPagination.d.ts +5 -0
- package/dist/crud/components/CrudTable.d.ts +5 -0
- package/dist/crud/components/TableRowActions.d.ts +5 -0
- package/dist/crud/createCrudPage.d.ts +41 -8
- package/dist/crud/generateCrudConfig.d.ts +13 -8
- package/dist/crud/hooks/useBaseForm.d.ts +39 -0
- package/dist/crud/hooks/useColumnManager.d.ts +25 -0
- package/dist/crud/hooks/useCrud.d.ts +35 -0
- package/dist/crud/primitives/ActionMenu.d.ts +41 -0
- package/dist/crud/primitives/FilterBar.d.ts +45 -0
- package/dist/crud/primitives/Pagination.d.ts +5 -0
- package/dist/crud/primitives/Table.d.ts +6 -1
- package/dist/crud/primitives/TreeTable.d.ts +5 -0
- package/dist/crud/primitives/types.d.ts +63 -0
- package/dist/crud/utils/routingHelpers.d.ts +11 -0
- package/dist/custom-form-fields/components/CustomFormFields.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormDateField.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormMultiSelectionField.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormNumericField.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormQuestionsField.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormSingleSelectionField.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormTextField.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormTimeField.d.ts +3 -0
- package/dist/custom-form-fields/fields/FormUrlField.d.ts +3 -0
- package/dist/custom-form-fields/fields/ReadOnlyTextField.d.ts +3 -0
- package/dist/custom-form-fields/types.d.ts +84 -21
- package/dist/exports/crud.d.ts +5 -0
- package/dist/exports/integrations.d.ts +1 -0
- package/dist/exports/ui.d.ts +1 -0
- package/dist/file-upload/components/SingleFileUpload.d.ts +59 -0
- package/dist/file-upload/types.d.ts +15 -0
- package/dist/file-upload/utils/formatBytes.d.ts +5 -0
- package/dist/file-upload/utils/getFileExtension.d.ts +5 -0
- package/dist/hooks/useColumnResize.d.ts +24 -0
- package/dist/hooks/useRowResize.d.ts +18 -0
- package/dist/hooks/useSidebarResize.d.ts +18 -0
- package/dist/hooks/useUpdatesNotification.d.ts +16 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/clarity/clarityTracking.d.ts +31 -0
- package/dist/integrations/clarity/index.d.ts +3 -0
- package/dist/integrations/clarity/types.d.ts +46 -0
- package/dist/integrations/clarity/useClarity.d.ts +34 -0
- package/dist/integrations/index.d.ts +5 -0
- package/dist/providers/CoreProviders.d.ts +16 -1
- package/dist/qualiex/components/QualiexUserField.d.ts +8 -0
- package/dist/qualiex/hooks/useQualiexUsers.d.ts +16 -26
- package/dist/qualiex/services/qualiexApi.d.ts +38 -2
- package/dist/qualiex/utils/QualiexErrorInterceptor.d.ts +5 -0
- package/dist/supabase/SupabaseSingleton.d.ts +34 -0
- package/dist/types.d.ts +51 -2
- package/dist/utils/color.d.ts +26 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vite/index.esm.js +4 -1
- package/dist/vite/index.js +4 -1
- package/docs/PUBLISH.md +168 -0
- package/docs/STORAGE_BUCKETS.md +384 -0
- package/docs/WORKSPACE_KNOWLEDGE.md +120 -119
- package/docs/design-system/README.md +1 -1
- package/docs/design-system/buttons-actions.md +130 -130
- package/docs/design-system/charts-dashboards.md +340 -301
- package/docs/design-system/crud.md +174 -114
- package/docs/design-system/data-display.md +108 -103
- package/docs/design-system/dialogs.md +212 -212
- package/docs/design-system/domain.md +317 -317
- package/docs/design-system/examples.md +275 -275
- package/docs/design-system/foundation.md +1 -1
- package/docs/design-system/inputs.md +131 -131
- package/docs/design-system/layout.md +202 -154
- package/docs/design-system/navigation.md +271 -325
- package/docs/design-system/notifications-feedback.md +34 -34
- package/docs/design-system/patterns/README.md +53 -53
- package/docs/design-system/patterns/action-button.md +22 -22
- package/docs/design-system/patterns/alertdialog-deletion.md +46 -46
- package/docs/design-system/patterns/baseform-custom-fields.md +59 -59
- package/docs/design-system/patterns/baseform-usage.md +42 -42
- package/docs/design-system/patterns/body-content-scroll.md +56 -56
- package/docs/design-system/patterns/combo-tree.md +23 -23
- package/docs/design-system/patterns/components-registry.md +17 -17
- package/docs/design-system/patterns/core-providers.md +41 -39
- package/docs/design-system/patterns/crud-bulk-actions.md +12 -12
- package/docs/design-system/patterns/crud-config-props.md +16 -16
- package/docs/design-system/patterns/crud-defaults.md +17 -17
- package/docs/design-system/patterns/crud-toolbar.md +28 -28
- package/docs/design-system/patterns/delete-confirmation.md +40 -40
- package/docs/design-system/patterns/dialog-body-scroll.md +26 -26
- package/docs/design-system/patterns/dialog-structure.md +32 -32
- package/docs/design-system/patterns/dialog-variants.md +41 -41
- package/docs/design-system/patterns/feature-flags.md +24 -20
- package/docs/design-system/patterns/header-metadata.md +57 -57
- package/docs/design-system/patterns/i18n-setup.md +117 -117
- package/docs/design-system/patterns/pagination.md +27 -27
- package/docs/design-system/patterns/single-scroll.md +39 -39
- package/docs/design-system/patterns/vite-tailwind-setup.md +48 -48
- package/docs/design-system/platform.md +18 -18
- package/docs/design-system/selectors.md +240 -236
- package/docs/design-system/tables-grids.md +95 -38
- package/package.json +150 -144
- package/dist/README.md +0 -1079
- package/dist/bin/bootstrap.js +0 -40
- package/dist/bin/pull-docs.js +0 -186
- package/dist/docs/KNOWLEDGE.md +0 -109
|
@@ -5,11 +5,68 @@
|
|
|
5
5
|
|
|
6
6
|
Categoria: **Data Grid** | 3 componentes
|
|
7
7
|
|
|
8
|
-
###
|
|
8
|
+
### Table
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Uma tabela semântica para exibir dados tabulares. Inclui TableResizeHandle para redimensionamento de colunas e TruncatedCell para texto truncado com tooltip automático.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
**Uso:**
|
|
13
|
+
```tsx
|
|
14
|
+
import {
|
|
15
|
+
Table,
|
|
16
|
+
TableBody,
|
|
17
|
+
TableCaption,
|
|
18
|
+
TableCell,
|
|
19
|
+
TableHead,
|
|
20
|
+
TableHeader,
|
|
21
|
+
TableRow,
|
|
22
|
+
TableResizeHandle,
|
|
23
|
+
TruncatedCell,
|
|
24
|
+
} from "forlogic-core"
|
|
25
|
+
|
|
26
|
+
<Table>
|
|
27
|
+
<TableCaption>Lista de usuários</TableCaption>
|
|
28
|
+
<TableHeader>
|
|
29
|
+
<TableRow>
|
|
30
|
+
<TableHead>Nome</TableHead>
|
|
31
|
+
<TableHead>Email</TableHead>
|
|
32
|
+
<TableHead>Status</TableHead>
|
|
33
|
+
</TableRow>
|
|
34
|
+
</TableHeader>
|
|
35
|
+
<TableBody>
|
|
36
|
+
<TableRow>
|
|
37
|
+
<TableCell>João Silva</TableCell>
|
|
38
|
+
<TableCell>joao@example.com</TableCell>
|
|
39
|
+
<TableCell>Ativo</TableCell>
|
|
40
|
+
</TableRow>
|
|
41
|
+
</TableBody>
|
|
42
|
+
</Table>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Props:**
|
|
46
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
47
|
+
|------|------|--------|-----------|
|
|
48
|
+
| `className` | `string` | - | Classes CSS adicionais para a tabela. |
|
|
49
|
+
| `TableResizeHandle.onMouseDown` | `(e: MouseEvent) => void` | - | Handler para iniciar o redimensionamento. |
|
|
50
|
+
| `TableResizeHandle.isDragging` | `boolean` | false | Se o handle está sendo arrastado (altera visual). |
|
|
51
|
+
| `TruncatedCell.children` | `ReactNode` | - | Conteúdo a ser truncado. |
|
|
52
|
+
| `TruncatedCell.className` | `string` | - | Classes CSS adicionais. |
|
|
53
|
+
|
|
54
|
+
**Acessibilidade:**
|
|
55
|
+
- Usa elementos HTML semânticos de tabela
|
|
56
|
+
- Suporta navegação por teclado
|
|
57
|
+
- TableCaption fornece contexto para leitores de tela
|
|
58
|
+
- TableHeader define cabeçalhos de coluna apropriados
|
|
59
|
+
- TruncatedCell mostra tooltip acessível com conteúdo completo
|
|
60
|
+
- TableResizeHandle suporta interação via teclado
|
|
61
|
+
- Funciona com leitores de tela
|
|
62
|
+
|
|
63
|
+
**Notas:**
|
|
64
|
+
- TableResizeHandle deve ser posicionado dentro de um TableHead com position: relative.
|
|
65
|
+
- TruncatedCell detecta automaticamente se o texto está truncado e exibe tooltip apenas quando necessário.
|
|
66
|
+
- Use larguras fixas (w-[Xpx]) nos TableHead para melhor controle do layout.
|
|
67
|
+
- TruncatedCell usa CSS text-overflow: ellipsis internamente.
|
|
68
|
+
|
|
69
|
+
> Fonte: `src/design-system/docs/components/TableDoc.tsx`
|
|
13
70
|
|
|
14
71
|
---
|
|
15
72
|
|
|
@@ -19,18 +76,18 @@ Componente utilitário que trunca texto longo e exibe tooltip automático quando
|
|
|
19
76
|
|
|
20
77
|
**Uso:**
|
|
21
78
|
```tsx
|
|
22
|
-
import { TruncatedCell } from 'forlogic-core';
|
|
23
|
-
// 💡 Alias disponível: import { EllipsisText } from 'forlogic-core';
|
|
24
|
-
|
|
25
|
-
<td className="max-w-[200px]">
|
|
26
|
-
<TruncatedCell>
|
|
27
|
-
Texto que pode ser muito longo...
|
|
28
|
-
</TruncatedCell>
|
|
29
|
-
</td>
|
|
30
|
-
|
|
31
|
-
// Com className customizada
|
|
32
|
-
<TruncatedCell className="text-muted-foreground">
|
|
33
|
-
{item.description}
|
|
79
|
+
import { TruncatedCell } from 'forlogic-core';
|
|
80
|
+
// 💡 Alias disponível: import { EllipsisText } from 'forlogic-core';
|
|
81
|
+
|
|
82
|
+
<td className="max-w-[200px]">
|
|
83
|
+
<TruncatedCell>
|
|
84
|
+
Texto que pode ser muito longo...
|
|
85
|
+
</TruncatedCell>
|
|
86
|
+
</td>
|
|
87
|
+
|
|
88
|
+
// Com className customizada
|
|
89
|
+
<TruncatedCell className="text-muted-foreground">
|
|
90
|
+
{item.description}
|
|
34
91
|
</TruncatedCell>
|
|
35
92
|
```
|
|
36
93
|
|
|
@@ -47,14 +104,14 @@ import { TruncatedCell } from 'forlogic-core';
|
|
|
47
104
|
**Notas:**
|
|
48
105
|
- 💡 Alias: Também disponível como
|
|
49
106
|
- — import { EllipsisText } from
|
|
50
|
-
- ,
|
|
107
|
+
- ,
|
|
51
108
|
|
|
52
|
-
- ,
|
|
109
|
+
- ,
|
|
53
110
|
|
|
54
|
-
- ,
|
|
111
|
+
- ,
|
|
55
112
|
|
|
56
113
|
|
|
57
|
-
> Fonte: `src
|
|
114
|
+
> Fonte: `src/design-system/docs/components/TruncatedCellDoc.tsx`
|
|
58
115
|
|
|
59
116
|
---
|
|
60
117
|
|
|
@@ -64,20 +121,20 @@ Componentes de expansão/colapso para revelar conteúdo. Accordion para múltipl
|
|
|
64
121
|
|
|
65
122
|
**Uso:**
|
|
66
123
|
```tsx
|
|
67
|
-
import {
|
|
68
|
-
Accordion,
|
|
69
|
-
AccordionContent,
|
|
70
|
-
AccordionItem,
|
|
71
|
-
AccordionTrigger,
|
|
72
|
-
} from "forlogic-core"
|
|
73
|
-
|
|
74
|
-
<Accordion type="single" collapsible>
|
|
75
|
-
<AccordionItem value="item-1">
|
|
76
|
-
<AccordionTrigger>Is it accessible?</AccordionTrigger>
|
|
77
|
-
<AccordionContent>
|
|
78
|
-
Yes. It adheres to the WAI-ARIA design pattern.
|
|
79
|
-
</AccordionContent>
|
|
80
|
-
</AccordionItem>
|
|
124
|
+
import {
|
|
125
|
+
Accordion,
|
|
126
|
+
AccordionContent,
|
|
127
|
+
AccordionItem,
|
|
128
|
+
AccordionTrigger,
|
|
129
|
+
} from "forlogic-core"
|
|
130
|
+
|
|
131
|
+
<Accordion type="single" collapsible>
|
|
132
|
+
<AccordionItem value="item-1">
|
|
133
|
+
<AccordionTrigger>Is it accessible?</AccordionTrigger>
|
|
134
|
+
<AccordionContent>
|
|
135
|
+
Yes. It adheres to the WAI-ARIA design pattern.
|
|
136
|
+
</AccordionContent>
|
|
137
|
+
</AccordionItem>
|
|
81
138
|
</Accordion>
|
|
82
139
|
```
|
|
83
140
|
|
|
@@ -91,10 +148,10 @@ import {
|
|
|
91
148
|
<Accordion type=
|
|
92
149
|
```
|
|
93
150
|
```tsx
|
|
94
|
-
import {
|
|
95
|
-
Collapsible,
|
|
96
|
-
CollapsibleContent,
|
|
97
|
-
CollapsibleTrigger,
|
|
151
|
+
import {
|
|
152
|
+
Collapsible,
|
|
153
|
+
CollapsibleContent,
|
|
154
|
+
CollapsibleTrigger,
|
|
98
155
|
} from
|
|
99
156
|
```
|
|
100
157
|
|
|
@@ -109,6 +166,6 @@ import {
|
|
|
109
166
|
- **Collapsible** é melhor para um único elemento expansível
|
|
110
167
|
- Ambos suportam animações suaves de abertura/fechamento
|
|
111
168
|
|
|
112
|
-
> Fonte: `src
|
|
169
|
+
> Fonte: `src/design-system/docs/components/AccordionDoc.tsx`
|
|
113
170
|
|
|
114
171
|
---
|
package/package.json
CHANGED
|
@@ -1,144 +1,150 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "forlogic-core",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.esm.js",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./index.css": "./dist/index.css",
|
|
15
|
-
"./tokens": "./dist/tokens/index.js",
|
|
16
|
-
"./vite": {
|
|
17
|
-
"types": "./dist/vite/index.d.ts",
|
|
18
|
-
"import": "./dist/vite/index.esm.js",
|
|
19
|
-
"require": "./dist/vite/index.js"
|
|
20
|
-
},
|
|
21
|
-
"./tailwind": {
|
|
22
|
-
"types": "./dist/tailwind/index.d.ts",
|
|
23
|
-
"import": "./dist/tailwind/index.esm.js",
|
|
24
|
-
"require": "./dist/tailwind/index.js"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"docs",
|
|
30
|
-
".note/memory"
|
|
31
|
-
],
|
|
32
|
-
"sideEffects": [
|
|
33
|
-
"*.css"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"dev": "vite",
|
|
37
|
-
"build": "vite build",
|
|
38
|
-
"build:dev": "vite build --mode development",
|
|
39
|
-
"build:lib": "npx tsx scripts/generate-ds-docs.ts & rollup -c",
|
|
40
|
-
"lint": "eslint .",
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@radix-ui/react-
|
|
54
|
-
"@radix-ui/react-
|
|
55
|
-
"@radix-ui/react-
|
|
56
|
-
"@radix-ui/react-
|
|
57
|
-
"@radix-ui/react-
|
|
58
|
-
"@radix-ui/react-
|
|
59
|
-
"@radix-ui/react-
|
|
60
|
-
"@radix-ui/react-
|
|
61
|
-
"@radix-ui/react-
|
|
62
|
-
"@radix-ui/react-
|
|
63
|
-
"@radix-ui/react-
|
|
64
|
-
"@radix-ui/react-
|
|
65
|
-
"@radix-ui/react-
|
|
66
|
-
"@radix-ui/react-
|
|
67
|
-
"@radix-ui/react-
|
|
68
|
-
"@radix-ui/react-
|
|
69
|
-
"@radix-ui/react-
|
|
70
|
-
"@radix-ui/react-
|
|
71
|
-
"@radix-ui/react-
|
|
72
|
-
"@radix-ui/react-
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@tiptap/
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"react
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"@
|
|
116
|
-
"@
|
|
117
|
-
"@
|
|
118
|
-
"@
|
|
119
|
-
"@
|
|
120
|
-
"@
|
|
121
|
-
"@
|
|
122
|
-
"@
|
|
123
|
-
"@
|
|
124
|
-
"@
|
|
125
|
-
"@
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "forlogic-core",
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.esm.js",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./index.css": "./dist/index.css",
|
|
15
|
+
"./tokens": "./dist/tokens/index.js",
|
|
16
|
+
"./vite": {
|
|
17
|
+
"types": "./dist/vite/index.d.ts",
|
|
18
|
+
"import": "./dist/vite/index.esm.js",
|
|
19
|
+
"require": "./dist/vite/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./tailwind": {
|
|
22
|
+
"types": "./dist/tailwind/index.d.ts",
|
|
23
|
+
"import": "./dist/tailwind/index.esm.js",
|
|
24
|
+
"require": "./dist/tailwind/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"docs",
|
|
30
|
+
".note/memory"
|
|
31
|
+
],
|
|
32
|
+
"sideEffects": [
|
|
33
|
+
"*.css"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "vite",
|
|
37
|
+
"build": "vite build",
|
|
38
|
+
"build:dev": "vite build --mode development",
|
|
39
|
+
"build:lib": "npx tsx scripts/generate-ds-docs.ts & rollup -c",
|
|
40
|
+
"lint": "eslint .",
|
|
41
|
+
"docs:check": "tsx scripts/check-docs.ts",
|
|
42
|
+
"docs:check-all": "tsx scripts/check-docs.ts --all",
|
|
43
|
+
"docs:fix": "tsx scripts/auto-doc.ts",
|
|
44
|
+
"docs:fix-all": "tsx scripts/auto-doc.ts --all",
|
|
45
|
+
"preview": "vite preview"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@dnd-kit/core": "^6.3.1",
|
|
49
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
50
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
51
|
+
"@hookform/resolvers": "^3.10.0",
|
|
52
|
+
"@microsoft/clarity": "^1.0.2",
|
|
53
|
+
"@radix-ui/react-accordion": "^1.2.11",
|
|
54
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
55
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
56
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
57
|
+
"@radix-ui/react-collapsible": "^1.1.11",
|
|
58
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
59
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
60
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
61
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
62
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
63
|
+
"@radix-ui/react-menubar": "^1.1.16",
|
|
64
|
+
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
65
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
66
|
+
"@radix-ui/react-progress": "^1.1.7",
|
|
67
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
|
68
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
69
|
+
"@radix-ui/react-select": "^2.2.5",
|
|
70
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
71
|
+
"@radix-ui/react-slider": "^1.3.5",
|
|
72
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
73
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
74
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
75
|
+
"@radix-ui/react-toast": "^1.2.14",
|
|
76
|
+
"@radix-ui/react-toggle": "^1.1.9",
|
|
77
|
+
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
78
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
79
|
+
"@supabase/supabase-js": "^2.100.0",
|
|
80
|
+
"@tanstack/react-query": "^5.83.0",
|
|
81
|
+
"@tiptap/extension-color": "^3.14.0",
|
|
82
|
+
"@tiptap/extension-highlight": "^3.14.0",
|
|
83
|
+
"@tiptap/extension-link": "^3.14.0",
|
|
84
|
+
"@tiptap/extension-text-style": "^3.14.0",
|
|
85
|
+
"@tiptap/extension-underline": "^3.14.0",
|
|
86
|
+
"@tiptap/react": "^3.14.0",
|
|
87
|
+
"@tiptap/starter-kit": "^3.14.0",
|
|
88
|
+
"class-variance-authority": "^0.7.1",
|
|
89
|
+
"clsx": "^2.1.1",
|
|
90
|
+
"date-fns": "^3.6.0",
|
|
91
|
+
"date-fns-tz": "^3.2.0",
|
|
92
|
+
"exceljs": "^4.4.0",
|
|
93
|
+
"i18next-browser-languagedetector": "^8.2.0",
|
|
94
|
+
"jszip": "^3.10.1",
|
|
95
|
+
"lucide-react": "^0.553.0",
|
|
96
|
+
"next-themes": "^0.3.0",
|
|
97
|
+
"react": "^18.3.1",
|
|
98
|
+
"react-day-picker": "^9.13.0",
|
|
99
|
+
"react-dom": "^18.3.1",
|
|
100
|
+
"react-hook-form": "^7.61.1",
|
|
101
|
+
"react-resizable-panels": "^3.0.6",
|
|
102
|
+
"react-router-dom": "^6.30.1",
|
|
103
|
+
"recharts": "^3.6.0",
|
|
104
|
+
"sonner": "^1.7.4",
|
|
105
|
+
"tailwind-merge": "^3.3.1",
|
|
106
|
+
"tailwindcss-animate": "^1.0.7",
|
|
107
|
+
"vaul": "^1.1.2",
|
|
108
|
+
"zod": "^3.25.76"
|
|
109
|
+
},
|
|
110
|
+
"peerDependencies": {
|
|
111
|
+
"i18next": "^25.0.0",
|
|
112
|
+
"react-i18next": "^16.0.0"
|
|
113
|
+
},
|
|
114
|
+
"devDependencies": {
|
|
115
|
+
"@babel/parser": "^7.28.5",
|
|
116
|
+
"@babel/traverse": "^7.28.5",
|
|
117
|
+
"@babel/types": "^7.28.5",
|
|
118
|
+
"@eslint/js": "^9.32.0",
|
|
119
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
120
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
121
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
122
|
+
"@rollup/plugin-terser": "1.0.0",
|
|
123
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
124
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
125
|
+
"@svgr/rollup": "^8.1.0",
|
|
126
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
127
|
+
"@types/file-saver": "^2.0.7",
|
|
128
|
+
"@types/node": "^22.16.5",
|
|
129
|
+
"@types/react": "^18.3.23",
|
|
130
|
+
"@types/react-dom": "^18.3.7",
|
|
131
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
132
|
+
"autoprefixer": "^10.4.21",
|
|
133
|
+
"baseline-browser-mapping": "^2.9.12",
|
|
134
|
+
"eslint": "^9.32.0",
|
|
135
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
136
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
137
|
+
"globals": "^15.15.0",
|
|
138
|
+
"lovable-tagger": "^1.1.9",
|
|
139
|
+
"postcss": "^8.5.6",
|
|
140
|
+
"rollup": "^4.50.1",
|
|
141
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
142
|
+
"rollup-plugin-esbuild": "^6.2.1",
|
|
143
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
144
|
+
"tailwindcss": "^3.4.17",
|
|
145
|
+
"tsx": "^4.20.6",
|
|
146
|
+
"typescript": "^5.8.3",
|
|
147
|
+
"typescript-eslint": "^8.38.0",
|
|
148
|
+
"vite": "^7.3.0"
|
|
149
|
+
}
|
|
150
|
+
}
|