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.
Files changed (248) hide show
  1. package/.note/memory/features/import/attachment-idempotency-registry.md +8 -8
  2. package/.note/memory/features/import/attachment-strategy.md +30 -30
  3. package/.note/memory/patterns/admin-i18n-policy.md +20 -20
  4. package/.note/memory/patterns/alias-url-resolution.md +69 -69
  5. package/.note/memory/patterns/doc-sync-rule.md +35 -35
  6. package/.note/memory/patterns/documentation-standard.md +17 -17
  7. package/.note/memory/patterns/dynamic-supabase-config.md +4 -4
  8. package/.note/memory/patterns/environment-detection-logic.md +35 -35
  9. package/.note/memory/patterns/i18n-architecture.md +3 -3
  10. package/README.md +120 -68
  11. package/dist/action-plans/components/ActionPlanAttachmentsTab.d.ts +3 -0
  12. package/dist/action-plans/components/ActionPlanCommentsTab.d.ts +3 -0
  13. package/dist/action-plans/components/ActionPlanCostTab.d.ts +5 -0
  14. package/dist/action-plans/components/ActionPlanGeneralTab.d.ts +3 -0
  15. package/dist/action-plans/components/ActionPlanHistoryTab.d.ts +3 -0
  16. package/dist/action-plans/components/ActionPlanPredecessorsTab.d.ts +5 -0
  17. package/dist/action-plans/components/ActionPlanProgressDialog.d.ts +3 -0
  18. package/dist/action-plans/components/ActionPlanProgressTab.d.ts +5 -0
  19. package/dist/action-plans/components/ActionPlanStatusBadge.d.ts +9 -2
  20. package/dist/action-plans/constants.d.ts +24 -0
  21. package/dist/action-plans/hooks/useActionPlan.d.ts +5 -0
  22. package/dist/action-plans/hooks/useActionPlanProgress.d.ts +5 -0
  23. package/dist/action-plans/types.d.ts +60 -0
  24. package/dist/action-plans/utils/formatTime.d.ts +9 -0
  25. package/dist/audit-trail/components/AuditTrailDetails.d.ts +10 -0
  26. package/dist/audit-trail/components/AuditTrailFilter.d.ts +10 -0
  27. package/dist/audit-trail/components/AuditTrailPage.d.ts +10 -0
  28. package/dist/audit-trail/types.d.ts +58 -0
  29. package/dist/audit-trail/utils.d.ts +18 -2
  30. package/dist/auth/components/EditProfileDialog.d.ts +1 -0
  31. package/dist/auth/components/ProtectedRoute.d.ts +5 -0
  32. package/dist/auth/contexts/AuthContext.d.ts +5 -0
  33. package/dist/auth/pages/CallbackPage.d.ts +5 -0
  34. package/dist/auth/services/AuthService.d.ts +5 -0
  35. package/dist/auth/services/TokenManager.d.ts +5 -0
  36. package/dist/auth/services/TokenService.d.ts +10 -0
  37. package/dist/auth/utils/ErrorInterceptor.d.ts +5 -0
  38. package/dist/components/dashboards/dashboard-form.d.ts +15 -0
  39. package/dist/components/dashboards/dashboard-general-view.d.ts +15 -0
  40. package/dist/components/dashboards/dashboard-grid.d.ts +25 -0
  41. package/dist/components/dashboards/dashboard-list.d.ts +10 -0
  42. package/dist/components/dashboards/dashboard-panel-renderer.d.ts +10 -0
  43. package/dist/components/dashboards/dashboard-view.d.ts +10 -0
  44. package/dist/components/dashboards/helpers.d.ts +44 -5
  45. package/dist/components/dashboards/panels/burndown-panel.d.ts +15 -0
  46. package/dist/components/dashboards/panels/cartesian-panel.d.ts +20 -0
  47. package/dist/components/dashboards/panels/list-panel.d.ts +15 -0
  48. package/dist/components/dashboards/panels/matrix-risk-panel.d.ts +25 -0
  49. package/dist/components/dashboards/panels/numeric-panel.d.ts +10 -0
  50. package/dist/components/dashboards/panels/panel-error.d.ts +10 -0
  51. package/dist/components/dashboards/panels/panel-header.d.ts +10 -0
  52. package/dist/components/dashboards/panels/panel-loader.d.ts +10 -0
  53. package/dist/components/dashboards/panels/panel-no-data.d.ts +10 -0
  54. package/dist/components/dashboards/panels/panel-unavailable.d.ts +10 -0
  55. package/dist/components/dashboards/panels/pareto-panel.d.ts +10 -0
  56. package/dist/components/dashboards/panels/performance-panel.d.ts +15 -0
  57. package/dist/components/dashboards/panels/pie-panel.d.ts +10 -0
  58. package/dist/components/dashboards/panels/text-panel.d.ts +10 -0
  59. package/dist/components/dashboards/types.d.ts +230 -0
  60. package/dist/components/modules/AccessDeniedDialog.d.ts +3 -1
  61. package/dist/components/modules/ModuleAccessGuard.d.ts +3 -1
  62. package/dist/components/modules/ModulesContent.d.ts +3 -1
  63. package/dist/components/modules/ModulesDialog.d.ts +1 -1
  64. package/dist/components/modules/ModulesFooterCards.d.ts +3 -1
  65. package/dist/components/modules/types.d.ts +2 -0
  66. package/dist/components/ui/accordion.d.ts +35 -0
  67. package/dist/components/ui/action-button.d.ts +5 -0
  68. package/dist/components/ui/alert-dialog.d.ts +82 -0
  69. package/dist/components/ui/alert.d.ts +32 -0
  70. package/dist/components/ui/avatar.d.ts +30 -0
  71. package/dist/components/ui/badge.d.ts +32 -0
  72. package/dist/components/ui/breadcrumb.d.ts +54 -0
  73. package/dist/components/ui/button-group.d.ts +15 -0
  74. package/dist/components/ui/button.d.ts +55 -0
  75. package/dist/components/ui/calendar.d.ts +16 -0
  76. package/dist/components/ui/card.d.ts +49 -0
  77. package/dist/components/ui/chart.d.ts +35 -0
  78. package/dist/components/ui/checkbox.d.ts +11 -0
  79. package/dist/components/ui/collapsible.d.ts +15 -0
  80. package/dist/components/ui/color-picker.d.ts +5 -0
  81. package/dist/components/ui/combo-tree.d.ts +23 -0
  82. package/dist/components/ui/combobox.d.ts +28 -0
  83. package/dist/components/ui/command.d.ts +66 -0
  84. package/dist/components/ui/context-menu.d.ts +95 -0
  85. package/dist/components/ui/date-picker.d.ts +10 -0
  86. package/dist/components/ui/dialog-wizard.d.ts +22 -4
  87. package/dist/components/ui/dialog.d.ts +181 -0
  88. package/dist/components/ui/drawer.d.ts +72 -0
  89. package/dist/components/ui/dropdown-menu.d.ts +153 -0
  90. package/dist/components/ui/electronic-signature-dialog.d.ts +10 -0
  91. package/dist/components/ui/export-dialog.d.ts +20 -0
  92. package/dist/components/ui/form.d.ts +96 -0
  93. package/dist/components/ui/hover-card.d.ts +15 -0
  94. package/dist/components/ui/icon-picker.d.ts +5 -0
  95. package/dist/components/ui/iframe-dialog.d.ts +10 -0
  96. package/dist/components/ui/input-group.d.ts +16 -0
  97. package/dist/components/ui/input.d.ts +5 -0
  98. package/dist/components/ui/menubar.d.ts +80 -0
  99. package/dist/components/ui/multiselect-permissions.d.ts +25 -0
  100. package/dist/components/ui/navigation-menu.d.ts +45 -0
  101. package/dist/components/ui/onboarding-dialog.d.ts +15 -0
  102. package/dist/components/ui/online-editor-dialog.d.ts +10 -0
  103. package/dist/components/ui/pagination.d.ts +53 -0
  104. package/dist/components/ui/popover.d.ts +8 -0
  105. package/dist/components/ui/radio-group.d.ts +3 -0
  106. package/dist/components/ui/report-request-list.d.ts +20 -0
  107. package/dist/components/ui/resizable.d.ts +15 -0
  108. package/dist/components/ui/rich-text-editor.d.ts +13 -0
  109. package/dist/components/ui/scroll-area.d.ts +3 -0
  110. package/dist/components/ui/select.d.ts +71 -0
  111. package/dist/components/ui/separator.d.ts +13 -0
  112. package/dist/components/ui/sheet.d.ts +76 -0
  113. package/dist/components/ui/sidebar.d.ts +203 -0
  114. package/dist/components/ui/skeleton-variants.d.ts +25 -0
  115. package/dist/components/ui/skeleton.d.ts +12 -0
  116. package/dist/components/ui/slider.d.ts +5 -0
  117. package/dist/components/ui/sonner.d.ts +5 -0
  118. package/dist/components/ui/spinner.d.ts +5 -0
  119. package/dist/components/ui/split-button.d.ts +6 -0
  120. package/dist/components/ui/stack.d.ts +5 -0
  121. package/dist/components/ui/status-badge.d.ts +52 -0
  122. package/dist/components/ui/step-selector.d.ts +5 -0
  123. package/dist/components/ui/stimulsoft-viewer.d.ts +8 -0
  124. package/dist/components/ui/switch.d.ts +21 -0
  125. package/dist/components/ui/tab-page-layout.d.ts +33 -0
  126. package/dist/components/ui/table-resize-handle.d.ts +10 -3
  127. package/dist/components/ui/table.d.ts +102 -0
  128. package/dist/components/ui/tabs.d.ts +59 -0
  129. package/dist/components/ui/terms-of-use-dialog.d.ts +50 -4
  130. package/dist/components/ui/textarea.d.ts +27 -0
  131. package/dist/components/ui/timepicker.d.ts +23 -0
  132. package/dist/components/ui/toggle-group.d.ts +25 -0
  133. package/dist/components/ui/toggle.d.ts +21 -0
  134. package/dist/components/ui/tooltip.d.ts +48 -0
  135. package/dist/components/ui/truncated-cell.d.ts +13 -0
  136. package/dist/components/ui/typography.d.ts +119 -0
  137. package/dist/components/ui/updates-notification.d.ts +33 -0
  138. package/dist/components/ui/users-groups-selector.d.ts +43 -0
  139. package/dist/components/ui/viewer-dialog.d.ts +107 -0
  140. package/dist/crud/components/ActionMenuItems.d.ts +5 -0
  141. package/dist/crud/components/BaseForm.d.ts +46 -0
  142. package/dist/crud/components/ColumnSettingsPopover.d.ts +10 -0
  143. package/dist/crud/components/CrudActionBar.d.ts +20 -0
  144. package/dist/crud/components/CrudGrid.d.ts +10 -0
  145. package/dist/crud/components/CrudPagination.d.ts +5 -0
  146. package/dist/crud/components/CrudTable.d.ts +5 -0
  147. package/dist/crud/components/TableRowActions.d.ts +5 -0
  148. package/dist/crud/createCrudPage.d.ts +41 -8
  149. package/dist/crud/generateCrudConfig.d.ts +13 -8
  150. package/dist/crud/hooks/useBaseForm.d.ts +39 -0
  151. package/dist/crud/hooks/useColumnManager.d.ts +25 -0
  152. package/dist/crud/hooks/useCrud.d.ts +35 -0
  153. package/dist/crud/primitives/ActionMenu.d.ts +41 -0
  154. package/dist/crud/primitives/FilterBar.d.ts +45 -0
  155. package/dist/crud/primitives/Pagination.d.ts +5 -0
  156. package/dist/crud/primitives/Table.d.ts +6 -1
  157. package/dist/crud/primitives/TreeTable.d.ts +5 -0
  158. package/dist/crud/primitives/types.d.ts +63 -0
  159. package/dist/crud/utils/routingHelpers.d.ts +11 -0
  160. package/dist/custom-form-fields/components/CustomFormFields.d.ts +3 -0
  161. package/dist/custom-form-fields/fields/FormDateField.d.ts +3 -0
  162. package/dist/custom-form-fields/fields/FormMultiSelectionField.d.ts +3 -0
  163. package/dist/custom-form-fields/fields/FormNumericField.d.ts +3 -0
  164. package/dist/custom-form-fields/fields/FormQuestionsField.d.ts +3 -0
  165. package/dist/custom-form-fields/fields/FormSingleSelectionField.d.ts +3 -0
  166. package/dist/custom-form-fields/fields/FormTextField.d.ts +3 -0
  167. package/dist/custom-form-fields/fields/FormTimeField.d.ts +3 -0
  168. package/dist/custom-form-fields/fields/FormUrlField.d.ts +3 -0
  169. package/dist/custom-form-fields/fields/ReadOnlyTextField.d.ts +3 -0
  170. package/dist/custom-form-fields/types.d.ts +84 -21
  171. package/dist/exports/crud.d.ts +5 -0
  172. package/dist/exports/integrations.d.ts +1 -0
  173. package/dist/exports/ui.d.ts +1 -0
  174. package/dist/file-upload/components/SingleFileUpload.d.ts +59 -0
  175. package/dist/file-upload/types.d.ts +15 -0
  176. package/dist/file-upload/utils/formatBytes.d.ts +5 -0
  177. package/dist/file-upload/utils/getFileExtension.d.ts +5 -0
  178. package/dist/hooks/useColumnResize.d.ts +24 -0
  179. package/dist/hooks/useRowResize.d.ts +18 -0
  180. package/dist/hooks/useSidebarResize.d.ts +18 -0
  181. package/dist/hooks/useUpdatesNotification.d.ts +16 -0
  182. package/dist/index.css +1 -1
  183. package/dist/index.css.map +1 -1
  184. package/dist/index.esm.js +1 -1
  185. package/dist/index.js +1 -1
  186. package/dist/integrations/clarity/clarityTracking.d.ts +31 -0
  187. package/dist/integrations/clarity/index.d.ts +3 -0
  188. package/dist/integrations/clarity/types.d.ts +46 -0
  189. package/dist/integrations/clarity/useClarity.d.ts +34 -0
  190. package/dist/integrations/index.d.ts +5 -0
  191. package/dist/providers/CoreProviders.d.ts +16 -1
  192. package/dist/qualiex/components/QualiexUserField.d.ts +8 -0
  193. package/dist/qualiex/hooks/useQualiexUsers.d.ts +16 -26
  194. package/dist/qualiex/services/qualiexApi.d.ts +38 -2
  195. package/dist/qualiex/utils/QualiexErrorInterceptor.d.ts +5 -0
  196. package/dist/supabase/SupabaseSingleton.d.ts +34 -0
  197. package/dist/types.d.ts +51 -2
  198. package/dist/utils/color.d.ts +26 -0
  199. package/dist/utils/index.d.ts +1 -0
  200. package/dist/vite/index.esm.js +4 -1
  201. package/dist/vite/index.js +4 -1
  202. package/docs/PUBLISH.md +168 -0
  203. package/docs/STORAGE_BUCKETS.md +384 -0
  204. package/docs/WORKSPACE_KNOWLEDGE.md +120 -119
  205. package/docs/design-system/README.md +1 -1
  206. package/docs/design-system/buttons-actions.md +130 -130
  207. package/docs/design-system/charts-dashboards.md +340 -301
  208. package/docs/design-system/crud.md +174 -114
  209. package/docs/design-system/data-display.md +108 -103
  210. package/docs/design-system/dialogs.md +212 -212
  211. package/docs/design-system/domain.md +317 -317
  212. package/docs/design-system/examples.md +275 -275
  213. package/docs/design-system/foundation.md +1 -1
  214. package/docs/design-system/inputs.md +131 -131
  215. package/docs/design-system/layout.md +202 -154
  216. package/docs/design-system/navigation.md +271 -325
  217. package/docs/design-system/notifications-feedback.md +34 -34
  218. package/docs/design-system/patterns/README.md +53 -53
  219. package/docs/design-system/patterns/action-button.md +22 -22
  220. package/docs/design-system/patterns/alertdialog-deletion.md +46 -46
  221. package/docs/design-system/patterns/baseform-custom-fields.md +59 -59
  222. package/docs/design-system/patterns/baseform-usage.md +42 -42
  223. package/docs/design-system/patterns/body-content-scroll.md +56 -56
  224. package/docs/design-system/patterns/combo-tree.md +23 -23
  225. package/docs/design-system/patterns/components-registry.md +17 -17
  226. package/docs/design-system/patterns/core-providers.md +41 -39
  227. package/docs/design-system/patterns/crud-bulk-actions.md +12 -12
  228. package/docs/design-system/patterns/crud-config-props.md +16 -16
  229. package/docs/design-system/patterns/crud-defaults.md +17 -17
  230. package/docs/design-system/patterns/crud-toolbar.md +28 -28
  231. package/docs/design-system/patterns/delete-confirmation.md +40 -40
  232. package/docs/design-system/patterns/dialog-body-scroll.md +26 -26
  233. package/docs/design-system/patterns/dialog-structure.md +32 -32
  234. package/docs/design-system/patterns/dialog-variants.md +41 -41
  235. package/docs/design-system/patterns/feature-flags.md +24 -20
  236. package/docs/design-system/patterns/header-metadata.md +57 -57
  237. package/docs/design-system/patterns/i18n-setup.md +117 -117
  238. package/docs/design-system/patterns/pagination.md +27 -27
  239. package/docs/design-system/patterns/single-scroll.md +39 -39
  240. package/docs/design-system/patterns/vite-tailwind-setup.md +48 -48
  241. package/docs/design-system/platform.md +18 -18
  242. package/docs/design-system/selectors.md +240 -236
  243. package/docs/design-system/tables-grids.md +95 -38
  244. package/package.json +150 -144
  245. package/dist/README.md +0 -1079
  246. package/dist/bin/bootstrap.js +0 -40
  247. package/dist/bin/pull-docs.js +0 -186
  248. package/dist/docs/KNOWLEDGE.md +0 -109
@@ -1,25 +1,178 @@
1
+ /**
2
+ * @module DropdownMenu
3
+ * Menu suspenso disparado por um elemento gatilho. API composta:
4
+ * `DropdownMenu` (raiz) + `DropdownMenuTrigger` (use `asChild` para reaproveitar seu próprio botão)
5
+ * + `DropdownMenuContent` (com `DropdownMenuItem`, `DropdownMenuSeparator`, `DropdownMenuLabel`,
6
+ * `DropdownMenuCheckboxItem`, `DropdownMenuRadioItem`, `DropdownMenuSub`).
7
+ *
8
+ * Para ações de linha em tabelas (3 pontinhos), prefira `ActionButton` da lib (aliases:
9
+ * `ActionMenu`, `RowActions`) — não use `DropdownMenu` diretamente.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <DropdownMenu>
14
+ * <DropdownMenuTrigger asChild><Button variant="outline">Mais</Button></DropdownMenuTrigger>
15
+ * <DropdownMenuContent align="end">
16
+ * <DropdownMenuLabel>Ações</DropdownMenuLabel>
17
+ * <DropdownMenuItem onClick={onEdit}>Editar</DropdownMenuItem>
18
+ * <DropdownMenuSeparator />
19
+ * <DropdownMenuItem onClick={onDelete}>Excluir</DropdownMenuItem>
20
+ * </DropdownMenuContent>
21
+ * </DropdownMenu>
22
+ * ```
23
+ *
24
+ * @see `docs/design-system/buttons-actions.md`
25
+ */
1
26
  import * as React from "react";
2
27
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
28
+ /**
29
+ * Raiz do DropdownMenu. Controla o estado open/closed (use `open`/`onOpenChange` para
30
+ * controle externo). Para ações de linha em tabelas, prefira `ActionButton`/`ActionMenu`.
31
+ *
32
+ * @example
33
+ * <DropdownMenu>
34
+ * <DropdownMenuTrigger asChild><Button>Ações</Button></DropdownMenuTrigger>
35
+ * <DropdownMenuContent align="end">...</DropdownMenuContent>
36
+ * </DropdownMenu>
37
+ */
3
38
  declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
39
+ /**
40
+ * Elemento que abre o menu. Use `asChild` para envolver seu próprio botão/ícone.
41
+ *
42
+ * @example
43
+ * <DropdownMenuTrigger asChild>
44
+ * <Button variant="ghost" size="icon"><MoreHorizontal /></Button>
45
+ * </DropdownMenuTrigger>
46
+ */
4
47
  declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
48
+ /**
49
+ * Agrupamento semântico de itens (`role="group"`). Use para separar conjuntos
50
+ * relacionados sem necessariamente exibir um separator visual.
51
+ *
52
+ * @example
53
+ * <DropdownMenuGroup>
54
+ * <DropdownMenuItem>Editar</DropdownMenuItem>
55
+ * <DropdownMenuItem>Duplicar</DropdownMenuItem>
56
+ * </DropdownMenuGroup>
57
+ */
5
58
  declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
59
+ /**
60
+ * Portal do menu. Já é usado internamente por `DropdownMenuContent` —
61
+ * sobrescreva apenas para renderizar em um container customizado.
62
+ *
63
+ * @example
64
+ * <DropdownMenuPortal container={portalRef.current}>...</DropdownMenuPortal>
65
+ */
6
66
  declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
67
+ /**
68
+ * Container de submenu. Combine com `DropdownMenuSubTrigger` + `DropdownMenuSubContent`.
69
+ *
70
+ * @example
71
+ * <DropdownMenuSub>
72
+ * <DropdownMenuSubTrigger>Compartilhar</DropdownMenuSubTrigger>
73
+ * <DropdownMenuSubContent>
74
+ * <DropdownMenuItem>Por e-mail</DropdownMenuItem>
75
+ * <DropdownMenuItem>Copiar link</DropdownMenuItem>
76
+ * </DropdownMenuSubContent>
77
+ * </DropdownMenuSub>
78
+ */
7
79
  declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
80
+ /**
81
+ * Wrapper para `DropdownMenuRadioItem`s — controla o item selecionado via `value`/`onValueChange`.
82
+ *
83
+ * @example
84
+ * <DropdownMenuRadioGroup value={view} onValueChange={setView}>
85
+ * <DropdownMenuRadioItem value="grid">Grade</DropdownMenuRadioItem>
86
+ * <DropdownMenuRadioItem value="list">Lista</DropdownMenuRadioItem>
87
+ * </DropdownMenuRadioGroup>
88
+ */
8
89
  declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
90
+ /**
91
+ * Disparador de um submenu (linha clicável dentro do `DropdownMenuContent` que
92
+ * abre `DropdownMenuSubContent` à direita). Use `inset` para alinhar com itens
93
+ * que possuem ícone/check à esquerda.
94
+ *
95
+ * @example
96
+ * <DropdownMenuSubTrigger>Mais opções</DropdownMenuSubTrigger>
97
+ */
9
98
  declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
99
  inset?: boolean;
11
100
  } & React.RefAttributes<HTMLDivElement>>;
101
+ /**
102
+ * Painel do submenu (renderizado ao lado do `DropdownMenuSubTrigger`).
103
+ *
104
+ * @example
105
+ * <DropdownMenuSubContent>
106
+ * <DropdownMenuItem>Item do submenu</DropdownMenuItem>
107
+ * </DropdownMenuSubContent>
108
+ */
12
109
  declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
110
+ /**
111
+ * Container do menu. Use `align` (`start` | `center` | `end`) e `sideOffset`
112
+ * para posicionamento. Por padrão alinha-se ao trigger com 4px de offset.
113
+ *
114
+ * @example
115
+ * <DropdownMenuContent align="end" sideOffset={8}>
116
+ * <DropdownMenuLabel>Ações</DropdownMenuLabel>
117
+ * <DropdownMenuItem onClick={onEdit}>Editar</DropdownMenuItem>
118
+ * </DropdownMenuContent>
119
+ */
13
120
  declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
121
+ /**
122
+ * Item clicável do menu. Use `inset` para alinhar com itens que tenham
123
+ * checkbox/radio. Para destaque destrutivo, aplique `className="text-danger"`.
124
+ *
125
+ * @example
126
+ * <DropdownMenuItem onClick={handleDelete} className="text-danger">
127
+ * <Trash className="mr-2 h-4 w-4" /> Excluir
128
+ * </DropdownMenuItem>
129
+ */
14
130
  declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
131
  inset?: boolean;
16
132
  } & React.RefAttributes<HTMLDivElement>>;
133
+ /**
134
+ * Item de menu com checkbox (estado ligado/desligado). Controle via `checked`/`onCheckedChange`.
135
+ *
136
+ * @example
137
+ * <DropdownMenuCheckboxItem checked={showTotals} onCheckedChange={setShowTotals}>
138
+ * Mostrar totais
139
+ * </DropdownMenuCheckboxItem>
140
+ */
17
141
  declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
142
+ /**
143
+ * Item de seleção exclusiva (radio). Sempre dentro de `DropdownMenuRadioGroup`.
144
+ *
145
+ * @example
146
+ * <DropdownMenuRadioItem value="grid">Grade</DropdownMenuRadioItem>
147
+ */
18
148
  declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
149
+ /**
150
+ * Cabeçalho/título de uma seção do menu (não clicável). Use `inset` para alinhar
151
+ * com itens que tenham ícone à esquerda.
152
+ *
153
+ * @example
154
+ * <DropdownMenuLabel>Minha conta</DropdownMenuLabel>
155
+ */
19
156
  declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
157
  inset?: boolean;
21
158
  } & React.RefAttributes<HTMLDivElement>>;
159
+ /**
160
+ * Linha divisória entre grupos de itens.
161
+ *
162
+ * @example
163
+ * <DropdownMenuItem>Editar</DropdownMenuItem>
164
+ * <DropdownMenuSeparator />
165
+ * <DropdownMenuItem>Excluir</DropdownMenuItem>
166
+ */
22
167
  declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
168
+ /**
169
+ * Atalho de teclado exibido à direita de um `DropdownMenuItem` (puramente visual).
170
+ *
171
+ * @example
172
+ * <DropdownMenuItem>
173
+ * Salvar <DropdownMenuShortcut>⌘S</DropdownMenuShortcut>
174
+ * </DropdownMenuItem>
175
+ */
23
176
  declare const DropdownMenuShortcut: {
24
177
  ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
25
178
  displayName: string;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Tipo `ElectronicSignatureDialogProps` exportado pela lib.
3
+ * @example
4
+ * const value: ElectronicSignatureDialogProps = {} as ElectronicSignatureDialogProps;
5
+ */
1
6
  export interface ElectronicSignatureDialogProps {
2
7
  open: boolean;
3
8
  onOpenChange: (open: boolean) => void;
@@ -18,4 +23,9 @@ export interface ElectronicSignatureDialogProps {
18
23
  resendLabel?: string;
19
24
  errorMessage?: string;
20
25
  }
26
+ /**
27
+ * Função utilitária `ElectronicSignatureDialog`.
28
+ * @example
29
+ * ElectronicSignatureDialog();
30
+ */
21
31
  export declare function ElectronicSignatureDialog({ open, onOpenChange, onConfirm, onGenerateCode, mode, email, maxLength, title, description, confirmLabel, cancelLabel, resendLabel, errorMessage, }: ElectronicSignatureDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import * as React from 'react';
2
+ /**
3
+ * Enum `ExportFormat` exportado pela lib.
4
+ * @example
5
+ * const v = ExportFormat;
6
+ */
2
7
  export declare enum ExportFormat {
3
8
  CSV = "csv",
4
9
  PDF = "pdf",
@@ -7,11 +12,21 @@ export declare enum ExportFormat {
7
12
  JPEG = "jpeg",
8
13
  SVG = "svg"
9
14
  }
15
+ /**
16
+ * Tipo `ExportDialogOption` exportado pela lib.
17
+ * @example
18
+ * const value: ExportDialogOption = {} as ExportDialogOption;
19
+ */
10
20
  export interface ExportDialogOption {
11
21
  value: string;
12
22
  label: string;
13
23
  icon?: React.ReactNode;
14
24
  }
25
+ /**
26
+ * Tipo `ExportDialogProps` exportado pela lib.
27
+ * @example
28
+ * const value: ExportDialogProps = {} as ExportDialogProps;
29
+ */
15
30
  export interface ExportDialogProps {
16
31
  open: boolean;
17
32
  onOpenChange: (open: boolean) => void;
@@ -25,4 +40,9 @@ export interface ExportDialogProps {
25
40
  cancelLabel?: string;
26
41
  exportLabel?: string;
27
42
  }
43
+ /**
44
+ * Função utilitária `ExportDialog`.
45
+ * @example
46
+ * ExportDialog();
47
+ */
28
48
  export declare function ExportDialog({ open, onOpenChange, onExport, mode, options, title, description, cancelLabel, exportLabel, }: ExportDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,62 @@
1
1
  import * as React from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
3
  import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
4
+ /**
5
+ * Provider raiz do formulário (alias de `FormProvider` do `react-hook-form`).
6
+ * Sempre passe o objeto retornado por `useForm()` via spread (`{...form}`).
7
+ *
8
+ * @example
9
+ * const form = useForm<Inputs>({ defaultValues: { email: '' } });
10
+ *
11
+ * <Form {...form}>
12
+ * <form onSubmit={form.handleSubmit(onSubmit)}>
13
+ * <FormField name="email" control={form.control} render={...} />
14
+ * </form>
15
+ * </Form>
16
+ */
4
17
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
18
+ /**
19
+ * Conecta um campo do `react-hook-form` ao sistema de Form da lib.
20
+ * Forneça `control` (de `useForm()`) e `name`. Os IDs e o estado de erro fluem automaticamente
21
+ * para `FormLabel`, `FormControl`, `FormDescription` e `FormMessage`.
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * const form = useForm<Inputs>();
26
+ *
27
+ * <Form {...form}>
28
+ * <form onSubmit={form.handleSubmit(onSubmit)}>
29
+ * <FormField
30
+ * control={form.control}
31
+ * name="email"
32
+ * render={({ field }) => (
33
+ * <FormItem>
34
+ * <FormLabel>Email</FormLabel>
35
+ * <FormControl><Input {...field} /></FormControl>
36
+ * <FormMessage />
37
+ * </FormItem>
38
+ * )}
39
+ * />
40
+ * </form>
41
+ * </Form>
42
+ * ```
43
+ *
44
+ * @see `docs/design-system/inputs.md`
45
+ */
5
46
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
47
+ /**
48
+ * Hook interno usado pelos subcomponentes (`FormLabel`, `FormControl`,
49
+ * `FormDescription`, `FormMessage`) para acessar IDs e estado de erro do campo
50
+ * envolvente. Deve ser chamado **dentro** de um `FormField` + `FormItem`.
51
+ *
52
+ * Útil quando você cria um wrapper customizado e precisa do estado:
53
+ *
54
+ * @example
55
+ * function CustomError() {
56
+ * const { error, formMessageId } = useFormField();
57
+ * return error ? <span id={formMessageId} className="text-danger">{String(error.message)}</span> : null;
58
+ * }
59
+ */
6
60
  declare const useFormField: () => {
7
61
  invalid: boolean;
8
62
  isDirty: boolean;
@@ -15,9 +69,51 @@ declare const useFormField: () => {
15
69
  formDescriptionId: string;
16
70
  formMessageId: string;
17
71
  };
72
+ /**
73
+ * Wrapper de um campo do formulário (gera um `id` único compartilhado pelos filhos).
74
+ * Sempre o filho direto do `render` de um `FormField`.
75
+ *
76
+ * @example
77
+ * <FormItem>
78
+ * <FormLabel>Email</FormLabel>
79
+ * <FormControl><Input type="email" {...field} /></FormControl>
80
+ * <FormDescription>Nunca compartilharemos seu email.</FormDescription>
81
+ * <FormMessage />
82
+ * </FormItem>
83
+ */
18
84
  declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
85
+ /**
86
+ * Label do campo (já conectado via `htmlFor` ao `FormControl`). Aplica cor
87
+ * `text-destructive` automaticamente quando o campo tem erro.
88
+ *
89
+ * @example
90
+ * <FormLabel>Nome completo</FormLabel>
91
+ */
19
92
  declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
93
+ /**
94
+ * Slot que injeta `id`, `aria-describedby` e `aria-invalid` no input filho.
95
+ * Use **um único filho** (Input, Textarea, Combobox, Select, etc).
96
+ *
97
+ * @example
98
+ * <FormControl><Input placeholder="seu@email.com" {...field} /></FormControl>
99
+ */
20
100
  declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
101
+ /**
102
+ * Texto de ajuda exibido abaixo do controle (em `text-muted-foreground`).
103
+ * Já mapeado para `aria-describedby` do input.
104
+ *
105
+ * @example
106
+ * <FormDescription>Mínimo de 8 caracteres, com pelo menos um número.</FormDescription>
107
+ */
21
108
  declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
109
+ /**
110
+ * Mensagem de erro do campo (`text-danger`). Renderiza automaticamente o
111
+ * `error.message` do `react-hook-form` — não precisa passar `children`.
112
+ *
113
+ * @example
114
+ * <FormMessage />
115
+ * // Com fallback custom (sem erro):
116
+ * <FormMessage>Preencha um valor válido.</FormMessage>
117
+ */
22
118
  declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
23
119
  export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
@@ -1,6 +1,21 @@
1
1
  import * as React from "react";
2
2
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
3
+ /**
4
+ * Componente `HoverCard` da lib.
5
+ * @example
6
+ * <HoverCard />
7
+ */
3
8
  declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
9
+ /**
10
+ * Componente `HoverCardTrigger` da lib.
11
+ * @example
12
+ * <HoverCardTrigger />
13
+ */
4
14
  declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
15
+ /**
16
+ * Componente `HoverCardContent` da lib.
17
+ * @example
18
+ * <HoverCardContent />
19
+ */
5
20
  declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
21
  export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -6,5 +6,10 @@ interface IconPickerProps {
6
6
  /** i18n: No icon label (default: "SEM ÍCONE") */
7
7
  noIconLabel?: string;
8
8
  }
9
+ /**
10
+ * Componente `IconPicker` da lib.
11
+ * @example
12
+ * <IconPicker />
13
+ */
9
14
  export declare const IconPicker: React.FC<IconPickerProps>;
10
15
  export {};
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Tipo `IframeDialogProps` exportado pela lib.
3
+ * @example
4
+ * const value: IframeDialogProps = {} as IframeDialogProps;
5
+ */
1
6
  export interface IframeDialogProps {
2
7
  open: boolean;
3
8
  onOpenChange: (open: boolean) => void;
@@ -10,5 +15,10 @@ export interface IframeDialogProps {
10
15
  /** Min height for the iframe area */
11
16
  minHeight?: string;
12
17
  }
18
+ /**
19
+ * Função utilitária `IframeDialog`.
20
+ * @example
21
+ * IframeDialog();
22
+ */
13
23
  export declare function IframeDialog({ open, onOpenChange, url, title, className, minHeight, }: IframeDialogProps): import("react/jsx-runtime").JSX.Element;
14
24
  export default IframeDialog;
@@ -20,10 +20,18 @@ import { type ButtonProps } from "./button";
20
20
  declare const InputGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
21
21
  /**
22
22
  * InputGroupAddon Variants
23
+ *
24
+ * @example
25
+ * inputGroupAddonVariants;
23
26
  */
24
27
  declare const inputGroupAddonVariants: (props?: {
25
28
  align?: "inline-end" | "inline-start" | "block-end" | "block-start";
26
29
  } & import("class-variance-authority/types").ClassProp) => string;
30
+ /**
31
+ * Tipo `InputGroupAddonProps` exportado pela lib.
32
+ * @example
33
+ * const value: InputGroupAddonProps = {} as InputGroupAddonProps;
34
+ */
27
35
  export interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof inputGroupAddonVariants> {
28
36
  }
29
37
  /**
@@ -43,10 +51,18 @@ export interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElemen
43
51
  declare const InputGroupAddon: React.ForwardRefExoticComponent<InputGroupAddonProps & React.RefAttributes<HTMLDivElement>>;
44
52
  /**
45
53
  * InputGroupButton Variants
54
+ *
55
+ * @example
56
+ * inputGroupButtonVariants;
46
57
  */
47
58
  declare const inputGroupButtonVariants: (props?: {
48
59
  size?: "sm" | "icon-sm" | "icon-xs" | "xs";
49
60
  } & import("class-variance-authority/types").ClassProp) => string;
61
+ /**
62
+ * Tipo `InputGroupButtonProps` exportado pela lib.
63
+ * @example
64
+ * const value: InputGroupButtonProps = {} as InputGroupButtonProps;
65
+ */
50
66
  export interface InputGroupButtonProps extends Omit<ButtonProps, "size">, VariantProps<typeof inputGroupButtonVariants> {
51
67
  }
52
68
  /**
@@ -15,5 +15,10 @@ import * as React from "react";
15
15
  export interface InputProps extends React.ComponentProps<"input"> {
16
16
  showCharCount?: boolean;
17
17
  }
18
+ /**
19
+ * Componente `Input` da lib.
20
+ * @example
21
+ * <Input />
22
+ */
18
23
  declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
19
24
  export { Input };
@@ -1,31 +1,111 @@
1
1
  import * as React from "react";
2
2
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
3
+ /**
4
+ * Componente `MenubarMenu` da lib.
5
+ * @example
6
+ * <MenubarMenu />
7
+ */
3
8
  declare const MenubarMenu: {
4
9
  (props: MenubarPrimitive.MenubarMenuProps & {
5
10
  __scopeMenubar?: import("@radix-ui/react-context").Scope;
6
11
  }): import("react/jsx-runtime").JSX.Element;
7
12
  displayName: string;
8
13
  };
14
+ /**
15
+ * Componente `MenubarGroup` da lib.
16
+ * @example
17
+ * <MenubarGroup />
18
+ */
9
19
  declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
20
+ /**
21
+ * Componente `MenubarPortal` da lib.
22
+ * @example
23
+ * <MenubarPortal />
24
+ */
10
25
  declare const MenubarPortal: React.FC<MenubarPrimitive.MenubarPortalProps>;
26
+ /**
27
+ * Componente `MenubarSub` da lib.
28
+ * @example
29
+ * <MenubarSub />
30
+ */
11
31
  declare const MenubarSub: React.FC<MenubarPrimitive.MenubarSubProps>;
32
+ /**
33
+ * Componente `MenubarRadioGroup` da lib.
34
+ * @example
35
+ * <MenubarRadioGroup />
36
+ */
12
37
  declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
38
+ /**
39
+ * Componente `Menubar` da lib.
40
+ * @example
41
+ * <Menubar />
42
+ */
13
43
  declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
44
+ /**
45
+ * Componente `MenubarTrigger` da lib.
46
+ * @example
47
+ * <MenubarTrigger />
48
+ */
14
49
  declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
50
+ /**
51
+ * Componente `MenubarSubTrigger` da lib.
52
+ * @example
53
+ * <MenubarSubTrigger />
54
+ */
15
55
  declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
16
56
  inset?: boolean;
17
57
  } & React.RefAttributes<HTMLDivElement>>;
58
+ /**
59
+ * Componente `MenubarSubContent` da lib.
60
+ * @example
61
+ * <MenubarSubContent />
62
+ */
18
63
  declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
64
+ /**
65
+ * Componente `MenubarContent` da lib.
66
+ * @example
67
+ * <MenubarContent />
68
+ */
19
69
  declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
70
+ /**
71
+ * Componente `MenubarItem` da lib.
72
+ * @example
73
+ * <MenubarItem />
74
+ */
20
75
  declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
21
76
  inset?: boolean;
22
77
  } & React.RefAttributes<HTMLDivElement>>;
78
+ /**
79
+ * Componente `MenubarCheckboxItem` da lib.
80
+ * @example
81
+ * <MenubarCheckboxItem />
82
+ */
23
83
  declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
84
+ /**
85
+ * Componente `MenubarRadioItem` da lib.
86
+ * @example
87
+ * <MenubarRadioItem />
88
+ */
24
89
  declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
90
+ /**
91
+ * Componente `MenubarLabel` da lib.
92
+ * @example
93
+ * <MenubarLabel />
94
+ */
25
95
  declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
26
96
  inset?: boolean;
27
97
  } & React.RefAttributes<HTMLDivElement>>;
98
+ /**
99
+ * Componente `MenubarSeparator` da lib.
100
+ * @example
101
+ * <MenubarSeparator />
102
+ */
28
103
  declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
104
+ /**
105
+ * Componente `MenubarShortcut` da lib.
106
+ * @example
107
+ * <MenubarShortcut />
108
+ */
29
109
  declare const MenubarShortcut: {
30
110
  ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
31
111
  displayname: string;
@@ -1,4 +1,9 @@
1
1
  import React from 'react';
2
+ /**
3
+ * Tipo `PermissionItem` exportado pela lib.
4
+ * @example
5
+ * const value: PermissionItem = {} as PermissionItem;
6
+ */
2
7
  export interface PermissionItem {
3
8
  id: string;
4
9
  name: string;
@@ -7,11 +12,21 @@ export interface PermissionItem {
7
12
  /** Group/context key for categorization */
8
13
  group?: string;
9
14
  }
15
+ /**
16
+ * Tipo `PermissionCategory` exportado pela lib.
17
+ * @example
18
+ * const value: PermissionCategory = {} as PermissionCategory;
19
+ */
10
20
  export interface PermissionCategory {
11
21
  id: string;
12
22
  name: string;
13
23
  icon?: React.ReactNode;
14
24
  }
25
+ /**
26
+ * Tipo `PermissionValues` exportado pela lib.
27
+ * @example
28
+ * const value: PermissionValues = {} as PermissionValues;
29
+ */
15
30
  export interface PermissionValues {
16
31
  /** IDs explicitly allowed */
17
32
  allowedIds: string[];
@@ -20,6 +35,11 @@ export interface PermissionValues {
20
35
  /** Group/context key */
21
36
  context?: string;
22
37
  }
38
+ /**
39
+ * Tipo `MultiselectPermissionsProps` exportado pela lib.
40
+ * @example
41
+ * const value: MultiselectPermissionsProps = {} as MultiselectPermissionsProps;
42
+ */
23
43
  export interface MultiselectPermissionsProps {
24
44
  /** Available items to select from */
25
45
  items: PermissionItem[];
@@ -56,4 +76,9 @@ export interface MultiselectPermissionsProps {
56
76
  /** Additional className */
57
77
  className?: string;
58
78
  }
79
+ /**
80
+ * Função utilitária `MultiselectPermissions`.
81
+ * @example
82
+ * MultiselectPermissions();
83
+ */
59
84
  export declare function MultiselectPermissions({ items, categories, value, onChange, readonly, isLoading, title, addButtonLabel, chipsTitle, chipsPlaceholder, searchPlaceholder, selectPlaceholder, itemInfoTemplate, disclaimer, disclaimerLink, onDisclaimerClick, className, }: MultiselectPermissionsProps): import("react/jsx-runtime").JSX.Element;