forlogic-core 2.1.5 → 2.2.1
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 +53 -1
- 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 +3 -0
- 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 +3 -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 +55 -1
- 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 +5 -0
- package/dist/crud/primitives/TreeTable.d.ts +5 -0
- package/dist/crud/primitives/types.d.ts +57 -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/integrations.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/vite/index.esm.js +4 -1
- package/dist/vite/index.js +4 -1
- package/docs/STORAGE_BUCKETS.md +384 -0
- package/docs/WORKSPACE_KNOWLEDGE.md +1 -0
- package/docs/design-system/README.md +1 -1
- package/docs/design-system/dialogs.md +2 -0
- package/docs/design-system/patterns/core-providers.md +2 -0
- package/docs/design-system/selectors.md +4 -0
- package/package.json +7 -1
- package/dist/components/ui/__tests__/status-badge.test.d.ts +0 -1
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ButtonProps } from './button';
|
|
3
|
+
/**
|
|
4
|
+
* Props do `ActionButton`. Aceita variantes de botão e qualquer atributo HTML de `<button>`.
|
|
5
|
+
* @example
|
|
6
|
+
* const props: ActionButtonProps = { variant: 'action-secondary', onClick: openMenu };
|
|
7
|
+
*/
|
|
3
8
|
interface ActionButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
4
9
|
children?: React.ReactNode;
|
|
5
10
|
variant?: ButtonProps['variant'];
|
|
@@ -1,20 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module AlertDialog
|
|
3
|
+
* Diálogo modal **não-dismissable** para confirmação de ações destrutivas/irreversíveis
|
|
4
|
+
* (excluir, descartar). Difere de `Dialog`: não pode ser fechado clicando fora ou ESC sem
|
|
5
|
+
* uma escolha explícita (`AlertDialogAction` ou `AlertDialogCancel`).
|
|
6
|
+
*
|
|
7
|
+
* Para diálogos de formulário, edição ou exibição livre de conteúdo, use `Dialog`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <AlertDialog>
|
|
12
|
+
* <AlertDialogTrigger asChild><Button variant="danger">Excluir</Button></AlertDialogTrigger>
|
|
13
|
+
* <AlertDialogContent>
|
|
14
|
+
* <AlertDialogHeader>
|
|
15
|
+
* <AlertDialogTitle>Confirmar exclusão</AlertDialogTitle>
|
|
16
|
+
* <AlertDialogDescription>Esta ação não pode ser desfeita.</AlertDialogDescription>
|
|
17
|
+
* </AlertDialogHeader>
|
|
18
|
+
* <AlertDialogFooter>
|
|
19
|
+
* <AlertDialogCancel>Cancelar</AlertDialogCancel>
|
|
20
|
+
* <AlertDialogAction onClick={onDelete}>Excluir</AlertDialogAction>
|
|
21
|
+
* </AlertDialogFooter>
|
|
22
|
+
* </AlertDialogContent>
|
|
23
|
+
* </AlertDialog>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see `docs/design-system/dialogs.md`
|
|
27
|
+
*/
|
|
1
28
|
import * as React from "react";
|
|
2
29
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
30
|
+
/**
|
|
31
|
+
* Raiz do AlertDialog. Controla estado open/onOpenChange.
|
|
32
|
+
* @example
|
|
33
|
+
* <AlertDialog open={open} onOpenChange={setOpen}>...</AlertDialog>
|
|
34
|
+
*/
|
|
3
35
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
36
|
+
/**
|
|
37
|
+
* Elemento que dispara a abertura do AlertDialog. Use `asChild` para customizar.
|
|
38
|
+
* @example
|
|
39
|
+
* <AlertDialogTrigger asChild><Button variant="danger">Excluir</Button></AlertDialogTrigger>
|
|
40
|
+
*/
|
|
4
41
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Portal que renderiza o conteúdo fora da árvore DOM atual.
|
|
44
|
+
* @example
|
|
45
|
+
* <AlertDialogPortal><AlertDialogOverlay /><AlertDialogContent>...</AlertDialogContent></AlertDialogPortal>
|
|
46
|
+
*/
|
|
5
47
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
48
|
+
/**
|
|
49
|
+
* Overlay escuro renderizado atrás do conteúdo. Usado internamente por `AlertDialogContent`.
|
|
50
|
+
* @example
|
|
51
|
+
* <AlertDialogPortal><AlertDialogOverlay /></AlertDialogPortal>
|
|
52
|
+
*/
|
|
6
53
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
/**
|
|
55
|
+
* Container do conteúdo modal centralizado. Inclui automaticamente Portal e Overlay.
|
|
56
|
+
* @example
|
|
57
|
+
* <AlertDialogContent><AlertDialogHeader>...</AlertDialogHeader></AlertDialogContent>
|
|
58
|
+
*/
|
|
7
59
|
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Cabeçalho do AlertDialog. Agrupa `AlertDialogTitle` e `AlertDialogDescription`.
|
|
62
|
+
* @example
|
|
63
|
+
* <AlertDialogHeader><AlertDialogTitle>Confirmar</AlertDialogTitle></AlertDialogHeader>
|
|
64
|
+
*/
|
|
8
65
|
declare const AlertDialogHeader: {
|
|
9
66
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
67
|
displayName: string;
|
|
11
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* Rodapé do AlertDialog. Alinha botões de ação à direita em desktop.
|
|
71
|
+
* @example
|
|
72
|
+
* <AlertDialogFooter><AlertDialogCancel>Cancelar</AlertDialogCancel><AlertDialogAction>OK</AlertDialogAction></AlertDialogFooter>
|
|
73
|
+
*/
|
|
12
74
|
declare const AlertDialogFooter: {
|
|
13
75
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
76
|
displayName: string;
|
|
15
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
* Título do AlertDialog (text-lg, font-semibold).
|
|
80
|
+
* @example
|
|
81
|
+
* <AlertDialogTitle>Confirmar exclusão</AlertDialogTitle>
|
|
82
|
+
*/
|
|
16
83
|
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
84
|
+
/**
|
|
85
|
+
* Descrição/contexto da ação (text-sm, muted).
|
|
86
|
+
* @example
|
|
87
|
+
* <AlertDialogDescription>Esta ação não pode ser desfeita.</AlertDialogDescription>
|
|
88
|
+
*/
|
|
17
89
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
90
|
+
/**
|
|
91
|
+
* Botão de ação confirmatória. Estiliza com `buttonVariants()` padrão.
|
|
92
|
+
* @example
|
|
93
|
+
* <AlertDialogAction onClick={onDelete}>Excluir</AlertDialogAction>
|
|
94
|
+
*/
|
|
18
95
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
96
|
+
/**
|
|
97
|
+
* Botão de cancelamento (variante outline). Fecha o dialog sem confirmar.
|
|
98
|
+
* @example
|
|
99
|
+
* <AlertDialogCancel>Cancelar</AlertDialogCancel>
|
|
100
|
+
*/
|
|
19
101
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
102
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -4,9 +4,41 @@ declare const alertVariants: (props?: {
|
|
|
4
4
|
variant?: "danger" | "success" | "warning" | "info";
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
6
6
|
interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
7
|
+
/** Exibe o ícone semântico automático da variante (default `true`). */
|
|
7
8
|
showIcon?: boolean;
|
|
8
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Bloco de mensagem semântica com ícone automático por variante.
|
|
12
|
+
*
|
|
13
|
+
* Variantes (todas com tokens dedicados em `index.css`):
|
|
14
|
+
* - `info` (default): Info azul — informações neutras.
|
|
15
|
+
* - `warning`: Atenção amarela — atenção sem bloqueio.
|
|
16
|
+
* - `danger`: AlertTriangle vermelho — erro ou ação destrutiva. **Use `danger`, não `destructive`.**
|
|
17
|
+
* - `success`: CheckCircle verde — confirmação.
|
|
18
|
+
*
|
|
19
|
+
* Composição: `Alert` (raiz) + `AlertTitle` (opcional) + `AlertDescription`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <Alert variant="warning">
|
|
24
|
+
* <AlertTitle>Atenção</AlertTitle>
|
|
25
|
+
* <AlertDescription>Existem alterações não salvas.</AlertDescription>
|
|
26
|
+
* </Alert>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @see `docs/design-system/notifications-feedback.md`
|
|
30
|
+
*/
|
|
9
31
|
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
/**
|
|
33
|
+
* Componente `AlertTitle` da lib.
|
|
34
|
+
* @example
|
|
35
|
+
* <AlertTitle />
|
|
36
|
+
*/
|
|
10
37
|
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
38
|
+
/**
|
|
39
|
+
* Componente `AlertDescription` da lib.
|
|
40
|
+
* @example
|
|
41
|
+
* <AlertDescription />
|
|
42
|
+
*/
|
|
11
43
|
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
12
44
|
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -1,6 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Avatar
|
|
3
|
+
* Avatar circular com fallback automático. Composto por `Avatar` (raiz) +
|
|
4
|
+
* `AvatarImage` (imagem) + `AvatarFallback` (iniciais quando imagem falha).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Avatar>
|
|
9
|
+
* <AvatarImage src={user.photoUrl} alt={user.name} />
|
|
10
|
+
* <AvatarFallback>{getInitials(user.name)}</AvatarFallback>
|
|
11
|
+
* </Avatar>
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @see `docs/design-system/data-display.md`
|
|
15
|
+
*/
|
|
1
16
|
import * as React from "react";
|
|
2
17
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
18
|
+
/**
|
|
19
|
+
* Container circular do avatar (default 40x40, `rounded-full`).
|
|
20
|
+
* @example
|
|
21
|
+
* <Avatar><AvatarFallback>JD</AvatarFallback></Avatar>
|
|
22
|
+
*/
|
|
3
23
|
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
24
|
+
/**
|
|
25
|
+
* Imagem do avatar. Se falhar ao carregar, exibe automaticamente o `AvatarFallback`.
|
|
26
|
+
* @example
|
|
27
|
+
* <AvatarImage src="/users/joao.jpg" alt="João" />
|
|
28
|
+
*/
|
|
4
29
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
30
|
+
/**
|
|
31
|
+
* Fallback exibido quando `AvatarImage` falha. Use iniciais ou ícone.
|
|
32
|
+
* @example
|
|
33
|
+
* <AvatarFallback>JD</AvatarFallback>
|
|
34
|
+
*/
|
|
5
35
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
36
|
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
/**
|
|
4
|
+
* CVA com variantes do `Badge`. Exportado para compor estilos em outros componentes.
|
|
5
|
+
* @example
|
|
6
|
+
* <div className={badgeVariants({ variant: 'success' })}>Custom</div>
|
|
7
|
+
*/
|
|
3
8
|
declare const badgeVariants: (props?: {
|
|
4
9
|
variant?: "secondary" | "outline" | "danger" | "default" | "success" | "warning" | "info" | "sharp";
|
|
5
10
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Tipo `BadgeProps` exportado pela lib.
|
|
13
|
+
* @example
|
|
14
|
+
* const value: BadgeProps = {} as BadgeProps;
|
|
15
|
+
*/
|
|
6
16
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Etiqueta visual compacta para metadados, contagens ou estados estáticos.
|
|
20
|
+
*
|
|
21
|
+
* Variantes:
|
|
22
|
+
* - `default`: marca primária (azul).
|
|
23
|
+
* - `secondary`: neutro suave.
|
|
24
|
+
* - `danger`: erros / ações destrutivas. **Use `danger`, não `destructive`** (padrão da lib).
|
|
25
|
+
* - `outline`: apenas borda, sem fundo.
|
|
26
|
+
* - `success` / `warning` / `info`: feedback semântico.
|
|
27
|
+
* - `sharp`: variante verde-limão de destaque (uso pontual).
|
|
28
|
+
*
|
|
29
|
+
* Para estados dinâmicos de processo (Ativo, Pendente, Concluído), prefira
|
|
30
|
+
* `StatusBadge` da lib (gera cor pastel automaticamente).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <Badge variant="success">Aprovado</Badge>
|
|
35
|
+
* <Badge variant="info">Novo</Badge>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @see Documentação: `docs/design-system/data-display.md`
|
|
39
|
+
*/
|
|
8
40
|
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
41
|
export { Badge, badgeVariants };
|
|
@@ -1,17 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Breadcrumb
|
|
3
|
+
* Trilha de navegação hierárquica. Composto por `Breadcrumb` > `BreadcrumbList` >
|
|
4
|
+
* `BreadcrumbItem` (com `BreadcrumbLink` ou `BreadcrumbPage`) intercalados por
|
|
5
|
+
* `BreadcrumbSeparator`. Use `BreadcrumbEllipsis` para colapsar níveis intermediários.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Breadcrumb>
|
|
10
|
+
* <BreadcrumbList>
|
|
11
|
+
* <BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem>
|
|
12
|
+
* <BreadcrumbSeparator />
|
|
13
|
+
* <BreadcrumbItem><BreadcrumbPage>Atual</BreadcrumbPage></BreadcrumbItem>
|
|
14
|
+
* </BreadcrumbList>
|
|
15
|
+
* </Breadcrumb>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @see `docs/design-system/navigation.md`
|
|
19
|
+
*/
|
|
1
20
|
import * as React from "react";
|
|
21
|
+
/**
|
|
22
|
+
* Raiz `<nav aria-label="breadcrumb">`. Aceite separator customizado via prop.
|
|
23
|
+
* @example
|
|
24
|
+
* <Breadcrumb><BreadcrumbList>...</BreadcrumbList></Breadcrumb>
|
|
25
|
+
*/
|
|
2
26
|
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
3
27
|
separator?: React.ReactNode;
|
|
4
28
|
} & React.RefAttributes<HTMLElement>>;
|
|
29
|
+
/**
|
|
30
|
+
* Lista ordenada `<ol>` que envolve os items.
|
|
31
|
+
* @example
|
|
32
|
+
* <BreadcrumbList><BreadcrumbItem>...</BreadcrumbItem></BreadcrumbList>
|
|
33
|
+
*/
|
|
5
34
|
declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
35
|
+
/**
|
|
36
|
+
* Item individual `<li>`. Contém um `BreadcrumbLink` ou `BreadcrumbPage`.
|
|
37
|
+
* @example
|
|
38
|
+
* <BreadcrumbItem><BreadcrumbLink href="/users">Usuários</BreadcrumbLink></BreadcrumbItem>
|
|
39
|
+
*/
|
|
6
40
|
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
41
|
+
/**
|
|
42
|
+
* Link clicável do breadcrumb. Use `asChild` para integrar com React Router.
|
|
43
|
+
* @example
|
|
44
|
+
* <BreadcrumbLink asChild><Link to="/users">Usuários</Link></BreadcrumbLink>
|
|
45
|
+
*/
|
|
7
46
|
declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
47
|
asChild?: boolean;
|
|
9
48
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
49
|
+
/**
|
|
50
|
+
* Página atual (não clicável). Marca semanticamente com `aria-current="page"`.
|
|
51
|
+
* @example
|
|
52
|
+
* <BreadcrumbPage>Editar usuário</BreadcrumbPage>
|
|
53
|
+
*/
|
|
10
54
|
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
55
|
+
/**
|
|
56
|
+
* Separador entre items (default: ChevronRight). Aceita ícone customizado como children.
|
|
57
|
+
* @example
|
|
58
|
+
* <BreadcrumbSeparator><Slash /></BreadcrumbSeparator>
|
|
59
|
+
*/
|
|
11
60
|
declare const BreadcrumbSeparator: {
|
|
12
61
|
({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
13
62
|
displayName: string;
|
|
14
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* Indicador "..." para colapsar níveis intermediários em trilhas longas.
|
|
66
|
+
* @example
|
|
67
|
+
* <BreadcrumbItem><BreadcrumbEllipsis /></BreadcrumbItem>
|
|
68
|
+
*/
|
|
15
69
|
declare const BreadcrumbEllipsis: {
|
|
16
70
|
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
17
71
|
displayName: string;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
/**
|
|
4
|
+
* `buttonGroupVariants` exportado pela lib.
|
|
5
|
+
* @example
|
|
6
|
+
* buttonGroupVariants;
|
|
7
|
+
*/
|
|
3
8
|
declare const buttonGroupVariants: (props?: {
|
|
4
9
|
orientation?: "horizontal" | "vertical";
|
|
5
10
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Tipo `ButtonGroupProps` exportado pela lib.
|
|
13
|
+
* @example
|
|
14
|
+
* const value: ButtonGroupProps = {} as ButtonGroupProps;
|
|
15
|
+
*/
|
|
6
16
|
export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof buttonGroupVariants> {
|
|
7
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Componente `ButtonGroup` da lib.
|
|
20
|
+
* @example
|
|
21
|
+
* <ButtonGroup />
|
|
22
|
+
*/
|
|
8
23
|
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
24
|
export { ButtonGroup, buttonGroupVariants };
|
|
@@ -1,11 +1,66 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
/**
|
|
4
|
+
* Variantes de estilo do componente {@link Button}.
|
|
5
|
+
*
|
|
6
|
+
* Variantes ativas:
|
|
7
|
+
* - `primary` (default): Ação principal (bg azul). Use para CTA único na tela.
|
|
8
|
+
* - `secondary`: Ação secundária com borda.
|
|
9
|
+
* - `tertiary`: Borda suave + bg neutro.
|
|
10
|
+
* - `outline` / `ghost` / `subtle`: Variações de baixa ênfase.
|
|
11
|
+
* - `destructive` / `danger`: Ações irreversíveis (excluir). Aliases entre si — prefira `danger` (padrão da lib).
|
|
12
|
+
* - `link`: Aparência de hyperlink, sem fundo.
|
|
13
|
+
* - `icon`: Botão quadrado para apenas ícone (use `size="icon"`).
|
|
14
|
+
*
|
|
15
|
+
* Variantes legadas (mantidas por compatibilidade — evite em código novo):
|
|
16
|
+
* `default`, `action`, `icon-only`, `external-link`, `action-primary`, `action-secondary`.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link Button}
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* buttonVariants;
|
|
22
|
+
*/
|
|
3
23
|
declare const buttonVariants: (props?: {
|
|
4
24
|
variant?: "link" | "icon" | "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "subtle" | "destructive" | "danger" | "loading" | "default" | "action" | "icon-only" | "external-link" | "action-primary" | "action-secondary";
|
|
5
25
|
size?: "icon" | "default" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-xs";
|
|
6
26
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Tipo `ButtonProps` exportado pela lib.
|
|
29
|
+
* @example
|
|
30
|
+
* const value: ButtonProps = {} as ButtonProps;
|
|
31
|
+
*/
|
|
7
32
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
33
|
+
/**
|
|
34
|
+
* Quando `true`, renderiza o filho ao invés de um `<button>`, repassando todos os estilos.
|
|
35
|
+
* Útil para combinar com `<Link>` do React Router ou outros wrappers.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <Button asChild><Link to="/home">Início</Link></Button>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
8
42
|
asChild?: boolean;
|
|
9
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Botão padrão da Forlogic Core. Suporta variantes semânticas, tamanhos, ícones (SVG inline)
|
|
46
|
+
* e composição via `asChild`.
|
|
47
|
+
*
|
|
48
|
+
* @example Ação primária
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <Button variant="primary" size="md">Salvar</Button>
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example Ação destrutiva com ícone
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <Button variant="danger"><Trash2 /> Excluir</Button>
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @example Botão de ícone apenas
|
|
59
|
+
* ```tsx
|
|
60
|
+
* <Button variant="icon" size="icon" aria-label="Editar"><Pencil /></Button>
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @see Documentação completa: `docs/design-system/buttons-actions.md`
|
|
64
|
+
*/
|
|
10
65
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
66
|
export { Button, buttonVariants };
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DayPicker } from "react-day-picker";
|
|
3
|
+
/**
|
|
4
|
+
* Props do `Calendar`. Estende todas as props de `react-day-picker`.
|
|
5
|
+
* @example
|
|
6
|
+
* const props: CalendarProps = { mode: 'single', selected: date, onSelect: setDate };
|
|
7
|
+
*/
|
|
3
8
|
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
9
|
+
/**
|
|
10
|
+
* Calendário pt-BR (via date-fns/locale). Wrapper estilizado de `react-day-picker`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Calendar mode="single" selected={date} onSelect={setDate} />
|
|
15
|
+
* <Calendar mode="range" selected={range} onSelect={setRange} />
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @see `docs/design-system/inputs.md`
|
|
19
|
+
*/
|
|
4
20
|
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
21
|
declare namespace Calendar {
|
|
6
22
|
var displayName: string;
|
|
@@ -1,8 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Card
|
|
3
|
+
* Container visual com borda e sombra suave. Composto por:
|
|
4
|
+
* `Card` (raiz) → `CardHeader` (com `CardTitle` + `CardDescription`) → `CardContent` → `CardFooter`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Card>
|
|
9
|
+
* <CardHeader>
|
|
10
|
+
* <CardTitle>Resumo do mês</CardTitle>
|
|
11
|
+
* <CardDescription>Indicadores de abril</CardDescription>
|
|
12
|
+
* </CardHeader>
|
|
13
|
+
* <CardContent>{children}</CardContent>
|
|
14
|
+
* <CardFooter><Button>Ver detalhes</Button></CardFooter>
|
|
15
|
+
* </Card>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @see `docs/design-system/data-display.md`
|
|
19
|
+
*/
|
|
1
20
|
import * as React from "react";
|
|
21
|
+
/**
|
|
22
|
+
* Raiz do card (`rounded-lg border bg-card shadow-sm`).
|
|
23
|
+
* @example
|
|
24
|
+
* <Card><CardHeader>...</CardHeader></Card>
|
|
25
|
+
*/
|
|
2
26
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
/**
|
|
28
|
+
* Cabeçalho do card (padding 6, espaçamento vertical entre título/descrição).
|
|
29
|
+
* @example
|
|
30
|
+
* <CardHeader><CardTitle>Vendas</CardTitle></CardHeader>
|
|
31
|
+
*/
|
|
3
32
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* Título do card (`<h3>`, text-2xl, semibold).
|
|
35
|
+
* @example
|
|
36
|
+
* <CardTitle>Resumo</CardTitle>
|
|
37
|
+
*/
|
|
4
38
|
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* Descrição/subtítulo do card (text-sm muted).
|
|
41
|
+
* @example
|
|
42
|
+
* <CardDescription>Últimos 30 dias</CardDescription>
|
|
43
|
+
*/
|
|
5
44
|
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
45
|
+
/**
|
|
46
|
+
* Corpo principal do card. Padding sem top (continua do header).
|
|
47
|
+
* @example
|
|
48
|
+
* <CardContent><p>Conteúdo</p></CardContent>
|
|
49
|
+
*/
|
|
6
50
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
/**
|
|
52
|
+
* Rodapé do card. Padrão flex-row alinhado ao centro vertical.
|
|
53
|
+
* @example
|
|
54
|
+
* <CardFooter><Button>Ver mais</Button></CardFooter>
|
|
55
|
+
*/
|
|
7
56
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
57
|
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
@@ -4,6 +4,11 @@ declare const THEMES: {
|
|
|
4
4
|
readonly light: "";
|
|
5
5
|
readonly dark: ".dark";
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Tipo `ChartConfig` exportado pela lib.
|
|
9
|
+
* @example
|
|
10
|
+
* const value: ChartConfig = {} as ChartConfig;
|
|
11
|
+
*/
|
|
7
12
|
export type ChartConfig = {
|
|
8
13
|
[k in string]: {
|
|
9
14
|
label?: React.ReactNode;
|
|
@@ -16,14 +21,29 @@ export type ChartConfig = {
|
|
|
16
21
|
theme: Record<keyof typeof THEMES, string>;
|
|
17
22
|
});
|
|
18
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Componente `ChartContainer` da lib.
|
|
26
|
+
* @example
|
|
27
|
+
* <ChartContainer />
|
|
28
|
+
*/
|
|
19
29
|
declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
20
30
|
config: ChartConfig;
|
|
21
31
|
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
22
32
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* Componente `ChartStyle` da lib.
|
|
35
|
+
* @example
|
|
36
|
+
* <ChartStyle />
|
|
37
|
+
*/
|
|
23
38
|
declare const ChartStyle: ({ id, config }: {
|
|
24
39
|
id: string;
|
|
25
40
|
config: ChartConfig;
|
|
26
41
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Componente `ChartTooltip` da lib.
|
|
44
|
+
* @example
|
|
45
|
+
* <ChartTooltip />
|
|
46
|
+
*/
|
|
27
47
|
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
28
48
|
interface ChartTooltipContentProps extends React.ComponentProps<"div"> {
|
|
29
49
|
active?: boolean;
|
|
@@ -46,7 +66,17 @@ interface ChartTooltipContentProps extends React.ComponentProps<"div"> {
|
|
|
46
66
|
labelClassName?: string;
|
|
47
67
|
color?: string;
|
|
48
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Componente `ChartTooltipContent` da lib.
|
|
71
|
+
* @example
|
|
72
|
+
* <ChartTooltipContent />
|
|
73
|
+
*/
|
|
49
74
|
declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<ChartTooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
/**
|
|
76
|
+
* Componente `ChartLegend` da lib.
|
|
77
|
+
* @example
|
|
78
|
+
* <ChartLegend />
|
|
79
|
+
*/
|
|
50
80
|
declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
51
81
|
interface ChartLegendContentProps extends React.ComponentProps<"div"> {
|
|
52
82
|
payload?: Array<{
|
|
@@ -58,5 +88,10 @@ interface ChartLegendContentProps extends React.ComponentProps<"div"> {
|
|
|
58
88
|
hideIcon?: boolean;
|
|
59
89
|
nameKey?: string;
|
|
60
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Componente `ChartLegendContent` da lib.
|
|
93
|
+
* @example
|
|
94
|
+
* <ChartLegendContent />
|
|
95
|
+
*/
|
|
61
96
|
declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<ChartLegendContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
62
97
|
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
/**
|
|
4
|
+
* Caixa de seleção binária (16x16). Suporta estados controlado/não controlado e indeterminate.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Checkbox checked={agreed} onCheckedChange={setAgreed} id="terms" />
|
|
9
|
+
* <Label htmlFor="terms">Aceito os termos</Label>
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @see `docs/design-system/inputs.md`
|
|
13
|
+
*/
|
|
3
14
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
15
|
export { Checkbox };
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
2
|
+
/**
|
|
3
|
+
* Componente `Collapsible` da lib.
|
|
4
|
+
* @example
|
|
5
|
+
* <Collapsible />
|
|
6
|
+
*/
|
|
2
7
|
declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
/**
|
|
9
|
+
* Componente `CollapsibleTrigger` da lib.
|
|
10
|
+
* @example
|
|
11
|
+
* <CollapsibleTrigger />
|
|
12
|
+
*/
|
|
3
13
|
declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
/**
|
|
15
|
+
* Componente `CollapsibleContent` da lib.
|
|
16
|
+
* @example
|
|
17
|
+
* <CollapsibleContent />
|
|
18
|
+
*/
|
|
4
19
|
declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
20
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -8,5 +8,10 @@ interface ColorPickerProps {
|
|
|
8
8
|
/** i18n: Label for preset colors section (default: t('preset_colors')) */
|
|
9
9
|
presetColorsLabel?: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Componente `ColorPicker` da lib.
|
|
13
|
+
* @example
|
|
14
|
+
* <ColorPicker />
|
|
15
|
+
*/
|
|
11
16
|
export declare const ColorPicker: React.FC<ColorPickerProps>;
|
|
12
17
|
export {};
|
|
@@ -75,4 +75,27 @@ export interface ComboTreeProps {
|
|
|
75
75
|
/** Whether parent nodes start expanded. Defaults to true. */
|
|
76
76
|
defaultExpanded?: boolean;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* ComboTree — Combobox para dados hierárquicos (tree view). Chevron expande/colapsa
|
|
80
|
+
* subgrupos, label seleciona o item. Busca filtra recursivamente preservando ancestrais
|
|
81
|
+
* e auto-expande os ramos com matches.
|
|
82
|
+
*
|
|
83
|
+
* Alias disponível: `TreeSelect` (padrão Ant Design / Syncfusion).
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* const options: ComboTreeOption[] = [
|
|
87
|
+
* { value: 'qa', label: 'Qualidade', children: [
|
|
88
|
+
* { value: 'docs', label: 'Documentos' },
|
|
89
|
+
* { value: 'occ', label: 'Ocorrências' },
|
|
90
|
+
* ]},
|
|
91
|
+
* { value: 'hr', label: 'RH' },
|
|
92
|
+
* ];
|
|
93
|
+
*
|
|
94
|
+
* <ComboTree
|
|
95
|
+
* options={options}
|
|
96
|
+
* value={selectedNode}
|
|
97
|
+
* onChange={setSelectedNode}
|
|
98
|
+
* placeholder="Selecionar módulo..."
|
|
99
|
+
* />
|
|
100
|
+
*/
|
|
78
101
|
export declare function ComboTree({ multiple, options, value, onChange, placeholder, label, icon: Icon, emptyMessage, searchPlaceholder, disabled, required, isLoading, error, className, maxDisplayedBadges, popoverContainer, onOpen, onClose, defaultExpanded, }: ComboTreeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,6 +27,34 @@ export interface ComboboxProps<T = any> {
|
|
|
27
27
|
items?: T[];
|
|
28
28
|
onValueChange?: (value: string | string[]) => void;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Combobox — componente de seleção (única ou múltipla) com busca, suporte a
|
|
32
|
+
* objetos customizados via `getOptionValue`/`getOptionLabel`, badges para
|
|
33
|
+
* valores selecionados e integração com Dialogs (use `popoverContainer`).
|
|
34
|
+
*
|
|
35
|
+
* Para a documentação completa de props e variantes, veja o JSDoc no topo
|
|
36
|
+
* deste arquivo. Aliases: `SelectSearch`, `MultiSelect`, `EntitySelect`, `AutoComplete`.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* <Combobox
|
|
40
|
+
* options={users}
|
|
41
|
+
* value={selectedId}
|
|
42
|
+
* onChange={setSelectedId}
|
|
43
|
+
* getOptionValue={(u) => u.id}
|
|
44
|
+
* getOptionLabel={(u) => u.name}
|
|
45
|
+
* placeholder="Selecionar responsável..."
|
|
46
|
+
* />
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* // Múltipla seleção com badges
|
|
50
|
+
* <Combobox
|
|
51
|
+
* multiple
|
|
52
|
+
* options={tags}
|
|
53
|
+
* value={selectedTagIds}
|
|
54
|
+
* onChange={setSelectedTagIds}
|
|
55
|
+
* maxDisplayedBadges={3}
|
|
56
|
+
* />
|
|
57
|
+
*/
|
|
30
58
|
export declare function Combobox<T = any>({ multiple, options: optionsProp, items, // alias
|
|
31
59
|
value, onChange: onChangeProp, onValueChange, // alias
|
|
32
60
|
getOptionValue, getOptionLabel, placeholder, label, icon, emptyMessage, searchPlaceholder, disabled, required, isLoading, error, className, sortOptions, maxDisplayedBadges, popoverContainer, onOpen, onClose }: ComboboxProps<T>): import("react/jsx-runtime").JSX.Element;
|