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
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
3
|
+
/**
|
|
4
|
+
* Componente `NavigationMenu` da lib.
|
|
5
|
+
* @example
|
|
6
|
+
* <NavigationMenu />
|
|
7
|
+
*/
|
|
3
8
|
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* Componente `NavigationMenuList` da lib.
|
|
11
|
+
* @example
|
|
12
|
+
* <NavigationMenuList />
|
|
13
|
+
*/
|
|
4
14
|
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
15
|
+
/**
|
|
16
|
+
* Componente `NavigationMenuItem` da lib.
|
|
17
|
+
* @example
|
|
18
|
+
* <NavigationMenuItem />
|
|
19
|
+
*/
|
|
5
20
|
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
21
|
+
/**
|
|
22
|
+
* `navigationMenuTriggerStyle` exportado pela lib.
|
|
23
|
+
* @example
|
|
24
|
+
* navigationMenuTriggerStyle;
|
|
25
|
+
*/
|
|
6
26
|
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Componente `NavigationMenuTrigger` da lib.
|
|
29
|
+
* @example
|
|
30
|
+
* <NavigationMenuTrigger />
|
|
31
|
+
*/
|
|
7
32
|
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* Componente `NavigationMenuContent` da lib.
|
|
35
|
+
* @example
|
|
36
|
+
* <NavigationMenuContent />
|
|
37
|
+
*/
|
|
8
38
|
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* Componente `NavigationMenuLink` da lib.
|
|
41
|
+
* @example
|
|
42
|
+
* <NavigationMenuLink />
|
|
43
|
+
*/
|
|
9
44
|
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
45
|
+
/**
|
|
46
|
+
* Componente `NavigationMenuViewport` da lib.
|
|
47
|
+
* @example
|
|
48
|
+
* <NavigationMenuViewport />
|
|
49
|
+
*/
|
|
10
50
|
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
/**
|
|
52
|
+
* Componente `NavigationMenuIndicator` da lib.
|
|
53
|
+
* @example
|
|
54
|
+
* <NavigationMenuIndicator />
|
|
55
|
+
*/
|
|
11
56
|
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
57
|
export { navigationMenuTriggerStyle, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Tipo `OnboardingStep` exportado pela lib.
|
|
4
|
+
* @example
|
|
5
|
+
* const value: OnboardingStep = {} as OnboardingStep;
|
|
6
|
+
*/
|
|
2
7
|
export interface OnboardingStep {
|
|
3
8
|
/** Identificador único do step */
|
|
4
9
|
id: string;
|
|
@@ -9,6 +14,11 @@ export interface OnboardingStep {
|
|
|
9
14
|
/** Descrição do step */
|
|
10
15
|
description: string;
|
|
11
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Tipo `OnboardingDialogProps` exportado pela lib.
|
|
19
|
+
* @example
|
|
20
|
+
* const value: OnboardingDialogProps = {} as OnboardingDialogProps;
|
|
21
|
+
*/
|
|
12
22
|
export interface OnboardingDialogProps {
|
|
13
23
|
/** Controla se o dialog está aberto */
|
|
14
24
|
open: boolean;
|
|
@@ -39,5 +49,10 @@ export interface OnboardingDialogProps {
|
|
|
39
49
|
/** Classes adicionais para o container */
|
|
40
50
|
className?: string;
|
|
41
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Componente `OnboardingDialog` da lib.
|
|
54
|
+
* @example
|
|
55
|
+
* <OnboardingDialog />
|
|
56
|
+
*/
|
|
42
57
|
declare const OnboardingDialog: React.ForwardRefExoticComponent<OnboardingDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
58
|
export { OnboardingDialog };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipo `OnlineEditorDialogProps` exportado pela lib.
|
|
3
|
+
* @example
|
|
4
|
+
* const value: OnlineEditorDialogProps = {} as OnlineEditorDialogProps;
|
|
5
|
+
*/
|
|
1
6
|
export interface OnlineEditorDialogProps {
|
|
2
7
|
open: boolean;
|
|
3
8
|
onOpenChange: (open: boolean) => void;
|
|
@@ -14,5 +19,10 @@ export interface OnlineEditorDialogProps {
|
|
|
14
19
|
/** Custom className */
|
|
15
20
|
className?: string;
|
|
16
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Função utilitária `OnlineEditorDialog`.
|
|
24
|
+
* @example
|
|
25
|
+
* OnlineEditorDialog();
|
|
26
|
+
*/
|
|
17
27
|
export declare function OnlineEditorDialog({ open, onOpenChange, identifier, fileName, mode, type, onClose, className, }: OnlineEditorDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
18
28
|
export default OnlineEditorDialog;
|
|
@@ -1,26 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Pagination
|
|
3
|
+
* Componentes primitivos de paginação (Previous/Next/Link/Ellipsis).
|
|
4
|
+
*
|
|
5
|
+
* **Para uso com CRUD, prefira `CrudPagination` (alias `DataPagination`)** — já integra
|
|
6
|
+
* com o manager (estado, total, pageSize) e padroniza visual da Forlogic Core.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Pagination>
|
|
11
|
+
* <PaginationContent>
|
|
12
|
+
* <PaginationItem><PaginationPrevious href="#" /></PaginationItem>
|
|
13
|
+
* <PaginationItem><PaginationLink href="#" isActive>1</PaginationLink></PaginationItem>
|
|
14
|
+
* <PaginationItem><PaginationNext href="#" /></PaginationItem>
|
|
15
|
+
* </PaginationContent>
|
|
16
|
+
* </Pagination>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
1
19
|
import * as React from "react";
|
|
2
20
|
import { ButtonProps } from "./button";
|
|
21
|
+
/**
|
|
22
|
+
* Componente `Pagination` da lib.
|
|
23
|
+
* @example
|
|
24
|
+
* <Pagination />
|
|
25
|
+
*/
|
|
3
26
|
declare const Pagination: {
|
|
4
27
|
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
5
28
|
displayName: string;
|
|
6
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Componente `PaginationContent` da lib.
|
|
32
|
+
* @example
|
|
33
|
+
* <PaginationContent />
|
|
34
|
+
*/
|
|
7
35
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
36
|
+
/**
|
|
37
|
+
* Componente `PaginationItem` da lib.
|
|
38
|
+
* @example
|
|
39
|
+
* <PaginationItem />
|
|
40
|
+
*/
|
|
8
41
|
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
9
42
|
type PaginationLinkProps = {
|
|
10
43
|
isActive?: boolean;
|
|
11
44
|
} & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
|
|
45
|
+
/**
|
|
46
|
+
* Componente `PaginationLink` da lib.
|
|
47
|
+
* @example
|
|
48
|
+
* <PaginationLink />
|
|
49
|
+
*/
|
|
12
50
|
declare const PaginationLink: {
|
|
13
51
|
({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
14
52
|
displayName: string;
|
|
15
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Componente `PaginationPrevious` da lib.
|
|
56
|
+
* @example
|
|
57
|
+
* <PaginationPrevious />
|
|
58
|
+
*/
|
|
16
59
|
declare const PaginationPrevious: {
|
|
17
60
|
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
18
61
|
displayName: string;
|
|
19
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Componente `PaginationNext` da lib.
|
|
65
|
+
* @example
|
|
66
|
+
* <PaginationNext />
|
|
67
|
+
*/
|
|
20
68
|
declare const PaginationNext: {
|
|
21
69
|
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
22
70
|
displayName: string;
|
|
23
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* Componente `PaginationEllipsis` da lib.
|
|
74
|
+
* @example
|
|
75
|
+
* <PaginationEllipsis />
|
|
76
|
+
*/
|
|
24
77
|
declare const PaginationEllipsis: {
|
|
25
78
|
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
26
79
|
displayName: string;
|
|
@@ -34,6 +34,11 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
|
34
34
|
* @see https://www.radix-ui.com/docs/primitives/components/popover
|
|
35
35
|
*/
|
|
36
36
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
37
|
+
/**
|
|
38
|
+
* Componente `PopoverTrigger` da lib.
|
|
39
|
+
* @example
|
|
40
|
+
* <PopoverTrigger />
|
|
41
|
+
*/
|
|
37
42
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
43
|
/**
|
|
39
44
|
* PopoverContent
|
|
@@ -42,6 +47,9 @@ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.P
|
|
|
42
47
|
*
|
|
43
48
|
* @param align - Alinhamento horizontal (start, center, end)
|
|
44
49
|
* @param sideOffset - Distância do trigger em pixels
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* <PopoverContent />
|
|
45
53
|
*/
|
|
46
54
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
47
55
|
container?: HTMLElement | null;
|
|
@@ -58,6 +58,9 @@ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimiti
|
|
|
58
58
|
* RadioGroupItem
|
|
59
59
|
*
|
|
60
60
|
* Item individual do grupo de rádio com indicador visual.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* <RadioGroupItem />
|
|
61
64
|
*/
|
|
62
65
|
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
63
66
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum `ReportRequestStatus` exportado pela lib.
|
|
3
|
+
* @example
|
|
4
|
+
* const v = ReportRequestStatus;
|
|
5
|
+
*/
|
|
1
6
|
export declare enum ReportRequestStatus {
|
|
2
7
|
WaitingProcessing = 1,
|
|
3
8
|
Processing = 2,
|
|
@@ -5,6 +10,11 @@ export declare enum ReportRequestStatus {
|
|
|
5
10
|
Error = 4,
|
|
6
11
|
Expired = 5
|
|
7
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Tipo `ReportRequest` exportado pela lib.
|
|
15
|
+
* @example
|
|
16
|
+
* const value: ReportRequest = {} as ReportRequest;
|
|
17
|
+
*/
|
|
8
18
|
export interface ReportRequest {
|
|
9
19
|
id: string;
|
|
10
20
|
reportName: string;
|
|
@@ -13,6 +23,11 @@ export interface ReportRequest {
|
|
|
13
23
|
expirationDate: string | Date;
|
|
14
24
|
lastUpdate: string | Date;
|
|
15
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Tipo `ReportRequestListProps` exportado pela lib.
|
|
28
|
+
* @example
|
|
29
|
+
* const value: ReportRequestListProps = {} as ReportRequestListProps;
|
|
30
|
+
*/
|
|
16
31
|
export interface ReportRequestListProps {
|
|
17
32
|
/** Report requests data */
|
|
18
33
|
requests: ReportRequest[];
|
|
@@ -41,4 +56,9 @@ export interface ReportRequestListProps {
|
|
|
41
56
|
/** Additional className */
|
|
42
57
|
className?: string;
|
|
43
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Função utilitária `ReportRequestList`.
|
|
61
|
+
* @example
|
|
62
|
+
* ReportRequestList();
|
|
63
|
+
*/
|
|
44
64
|
export declare function ReportRequestList({ requests, isLoading, onGetReportUrl, formatDate, labels: customLabels, className, }: ReportRequestListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
|
+
/**
|
|
3
|
+
* Componente `ResizablePanelGroup` da lib.
|
|
4
|
+
* @example
|
|
5
|
+
* <ResizablePanelGroup />
|
|
6
|
+
*/
|
|
2
7
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Componente `ResizablePanel` da lib.
|
|
10
|
+
* @example
|
|
11
|
+
* <ResizablePanel />
|
|
12
|
+
*/
|
|
3
13
|
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLLinkElement | HTMLElement | HTMLHeadElement | HTMLButtonElement | HTMLInputElement | HTMLDivElement | HTMLLabelElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
14
|
className?: string;
|
|
5
15
|
collapsedSize?: number | undefined;
|
|
@@ -17,6 +27,11 @@ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
17
27
|
} & {
|
|
18
28
|
children?: import("react").ReactNode | undefined;
|
|
19
29
|
} & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
30
|
+
/**
|
|
31
|
+
* Componente `ResizableHandle` da lib.
|
|
32
|
+
* @example
|
|
33
|
+
* <ResizableHandle />
|
|
34
|
+
*/
|
|
20
35
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
21
36
|
withHandle?: boolean;
|
|
22
37
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props do `RichTextEditor`. Controla o conteúdo HTML, modos de edição
|
|
4
|
+
* (visual/código/preview), placeholder, altura mínima e dicas de variáveis.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* const props: RichTextEditorProps = {
|
|
8
|
+
* value: '<p>Olá <strong>mundo</strong></p>',
|
|
9
|
+
* onChange: setContent,
|
|
10
|
+
* placeholder: 'Escreva o e-mail...',
|
|
11
|
+
* minHeight: '240px',
|
|
12
|
+
* showVariableHint: true, // dica para usar {{variavel}}
|
|
13
|
+
* };
|
|
14
|
+
*/
|
|
2
15
|
export interface RichTextEditorProps {
|
|
3
16
|
/** Current HTML value */
|
|
4
17
|
value: string;
|
|
@@ -32,6 +32,9 @@ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimiti
|
|
|
32
32
|
*
|
|
33
33
|
* Scrollbar customizada com orientação vertical ou horizontal.
|
|
34
34
|
* Geralmente usada internamente pelo ScrollArea.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* <ScrollBar />
|
|
35
38
|
*/
|
|
36
39
|
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
37
40
|
export { ScrollArea, ScrollBar };
|
|
@@ -1,16 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Select
|
|
3
|
+
* Seletor de valor único (combo). Para busca, multi-seleção ou seleção de entidade,
|
|
4
|
+
* prefira `Combobox` (aliases: `SelectSearch`, `MultiSelect`, `EntitySelect`, `AutoComplete`).
|
|
5
|
+
*
|
|
6
|
+
* API composta: `Select` (raiz) + `SelectTrigger` + `SelectValue` + `SelectContent` + `SelectItem`.
|
|
7
|
+
* Use controlado (`value` + `onValueChange`) ou não controlado (`defaultValue`).
|
|
8
|
+
*
|
|
9
|
+
* @example Controlado
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Select value={state} onValueChange={setState}>
|
|
12
|
+
* <SelectTrigger><SelectValue placeholder="Selecione..." /></SelectTrigger>
|
|
13
|
+
* <SelectContent>
|
|
14
|
+
* <SelectItem value="ok">OK</SelectItem>
|
|
15
|
+
* <SelectItem value="ko">Não OK</SelectItem>
|
|
16
|
+
* </SelectContent>
|
|
17
|
+
* </Select>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see `docs/design-system/selectors.md`
|
|
21
|
+
*/
|
|
1
22
|
import * as React from "react";
|
|
2
23
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
24
|
+
/**
|
|
25
|
+
* Componente `Select` da lib.
|
|
26
|
+
* @example
|
|
27
|
+
* <Select />
|
|
28
|
+
*/
|
|
3
29
|
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Componente `SelectGroup` da lib.
|
|
32
|
+
* @example
|
|
33
|
+
* <SelectGroup />
|
|
34
|
+
*/
|
|
4
35
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
/**
|
|
37
|
+
* Componente `SelectValue` da lib.
|
|
38
|
+
* @example
|
|
39
|
+
* <SelectValue />
|
|
40
|
+
*/
|
|
5
41
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Componente `SelectTrigger` da lib.
|
|
44
|
+
* @example
|
|
45
|
+
* <SelectTrigger />
|
|
46
|
+
*/
|
|
6
47
|
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
/**
|
|
49
|
+
* Componente `SelectScrollUpButton` da lib.
|
|
50
|
+
* @example
|
|
51
|
+
* <SelectScrollUpButton />
|
|
52
|
+
*/
|
|
7
53
|
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
/**
|
|
55
|
+
* Componente `SelectScrollDownButton` da lib.
|
|
56
|
+
* @example
|
|
57
|
+
* <SelectScrollDownButton />
|
|
58
|
+
*/
|
|
8
59
|
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Componente `SelectContent` da lib.
|
|
62
|
+
* @example
|
|
63
|
+
* <SelectContent />
|
|
64
|
+
*/
|
|
9
65
|
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
66
|
container?: HTMLElement;
|
|
11
67
|
collisionBoundary?: HTMLElement;
|
|
12
68
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
/**
|
|
70
|
+
* Componente `SelectLabel` da lib.
|
|
71
|
+
* @example
|
|
72
|
+
* <SelectLabel />
|
|
73
|
+
*/
|
|
13
74
|
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
/**
|
|
76
|
+
* Componente `SelectItem` da lib.
|
|
77
|
+
* @example
|
|
78
|
+
* <SelectItem />
|
|
79
|
+
*/
|
|
14
80
|
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
/**
|
|
82
|
+
* Componente `SelectSeparator` da lib.
|
|
83
|
+
* @example
|
|
84
|
+
* <SelectSeparator />
|
|
85
|
+
*/
|
|
15
86
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
87
|
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
+
/**
|
|
4
|
+
* Linha divisória horizontal (default) ou vertical.
|
|
5
|
+
*
|
|
6
|
+
* @param orientation `"horizontal"` (default) | `"vertical"`. Vertical exige altura definida no pai.
|
|
7
|
+
* @param decorative Quando `true` (default), recebe `aria-hidden`. Defina `false` apenas se a separação
|
|
8
|
+
* tiver significado semântico para leitores de tela.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Separator />
|
|
13
|
+
* <Separator orientation="vertical" className="h-6" />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
3
16
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
17
|
export { Separator };
|
|
@@ -1,32 +1,108 @@
|
|
|
1
1
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
|
+
/**
|
|
5
|
+
* Componente `Sheet` da lib.
|
|
6
|
+
* @example
|
|
7
|
+
* <Sheet />
|
|
8
|
+
*/
|
|
4
9
|
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
10
|
+
/**
|
|
11
|
+
* Componente `SheetTrigger` da lib.
|
|
12
|
+
* @example
|
|
13
|
+
* <SheetTrigger />
|
|
14
|
+
*/
|
|
5
15
|
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
/**
|
|
17
|
+
* Componente `SheetClose` da lib.
|
|
18
|
+
* @example
|
|
19
|
+
* <SheetClose />
|
|
20
|
+
*/
|
|
6
21
|
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
/**
|
|
23
|
+
* Componente `SheetPortal` da lib.
|
|
24
|
+
* @example
|
|
25
|
+
* <SheetPortal />
|
|
26
|
+
*/
|
|
7
27
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Componente `SheetOverlay` da lib.
|
|
30
|
+
* @example
|
|
31
|
+
* <SheetOverlay />
|
|
32
|
+
*/
|
|
8
33
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
34
|
declare const sheetVariants: (props?: {
|
|
10
35
|
side?: "left" | "right" | "bottom" | "top";
|
|
11
36
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
12
37
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Container principal do Sheet. Define o lado de origem da animação via prop `side`
|
|
41
|
+
* (`right` default, `left`, `top`, `bottom`). Já inclui Portal + Overlay + botão `X`.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* <SheetContent side="right" className="sm:max-w-md">
|
|
45
|
+
* <SheetHeader><SheetTitle>Detalhes</SheetTitle></SheetHeader>
|
|
46
|
+
* <SheetBody>...</SheetBody>
|
|
47
|
+
* </SheetContent>
|
|
48
|
+
*/
|
|
14
49
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
50
|
interface SheetHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
51
|
showSeparator?: boolean;
|
|
17
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Header fixo do Sheet (não rola). Contém `SheetTitle` e opcionalmente `SheetDescription`.
|
|
55
|
+
* Use `showSeparator` para adicionar um divisor visual antes do `SheetBody`.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* <SheetHeader showSeparator>
|
|
59
|
+
* <SheetTitle>Filtros</SheetTitle>
|
|
60
|
+
* <SheetDescription>Refine sua busca.</SheetDescription>
|
|
61
|
+
* </SheetHeader>
|
|
62
|
+
*/
|
|
18
63
|
declare const SheetHeader: {
|
|
19
64
|
({ className, showSeparator, children, ...props }: SheetHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
65
|
displayName: string;
|
|
21
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* Container scrollável do Sheet (área entre header e footer).
|
|
69
|
+
* **Obrigatório quando há `SheetFooter`** — sem ele o footer pode sair do viewport.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* <SheetBody>
|
|
73
|
+
* {items.map(it => <Card key={it.id}>{it.name}</Card>)}
|
|
74
|
+
* </SheetBody>
|
|
75
|
+
*/
|
|
22
76
|
declare const SheetBody: {
|
|
23
77
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
24
78
|
displayName: string;
|
|
25
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Footer fixo do Sheet com separador automático e alinhamento à direita.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* <SheetFooter>
|
|
85
|
+
* <Button variant="outline" onClick={() => setOpen(false)}>Cancelar</Button>
|
|
86
|
+
* <Button onClick={save}>Salvar</Button>
|
|
87
|
+
* </SheetFooter>
|
|
88
|
+
*/
|
|
26
89
|
declare const SheetFooter: {
|
|
27
90
|
({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
28
91
|
displayName: string;
|
|
29
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
* Título do Sheet. **Obrigatório por acessibilidade** (`aria-labelledby`).
|
|
95
|
+
* Use `className="sr-only"` se precisar ocultar visualmente.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* <SheetTitle>Editar perfil</SheetTitle>
|
|
99
|
+
*/
|
|
30
100
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
101
|
+
/**
|
|
102
|
+
* Descrição opcional do Sheet (subtítulo). Mapeada para `aria-describedby`.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* <SheetDescription>Altere as configurações da sua conta.</SheetDescription>
|
|
106
|
+
*/
|
|
31
107
|
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
32
108
|
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
|