forlogic-core 2.1.3 → 2.1.5

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 (69) 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 +68 -68
  11. package/dist/action-plans/components/ActionPlanStatusBadge.d.ts +6 -2
  12. package/dist/components/ui/__tests__/status-badge.test.d.ts +1 -0
  13. package/dist/components/ui/status-badge.d.ts +49 -0
  14. package/dist/crud/primitives/Table.d.ts +1 -1
  15. package/dist/crud/primitives/types.d.ts +6 -0
  16. package/dist/exports/crud.d.ts +5 -0
  17. package/dist/exports/ui.d.ts +1 -0
  18. package/dist/index.css +1 -1
  19. package/dist/index.css.map +1 -1
  20. package/dist/index.esm.js +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/utils/color.d.ts +26 -0
  23. package/dist/utils/index.d.ts +1 -0
  24. package/docs/PUBLISH.md +168 -0
  25. package/docs/WORKSPACE_KNOWLEDGE.md +119 -119
  26. package/docs/design-system/README.md +1 -1
  27. package/docs/design-system/buttons-actions.md +130 -130
  28. package/docs/design-system/charts-dashboards.md +340 -301
  29. package/docs/design-system/crud.md +174 -114
  30. package/docs/design-system/data-display.md +108 -103
  31. package/docs/design-system/dialogs.md +212 -212
  32. package/docs/design-system/domain.md +317 -317
  33. package/docs/design-system/examples.md +275 -275
  34. package/docs/design-system/foundation.md +1 -1
  35. package/docs/design-system/inputs.md +131 -131
  36. package/docs/design-system/layout.md +202 -154
  37. package/docs/design-system/navigation.md +271 -325
  38. package/docs/design-system/notifications-feedback.md +34 -34
  39. package/docs/design-system/patterns/README.md +53 -53
  40. package/docs/design-system/patterns/action-button.md +22 -22
  41. package/docs/design-system/patterns/alertdialog-deletion.md +46 -46
  42. package/docs/design-system/patterns/baseform-custom-fields.md +59 -59
  43. package/docs/design-system/patterns/baseform-usage.md +42 -42
  44. package/docs/design-system/patterns/body-content-scroll.md +56 -56
  45. package/docs/design-system/patterns/combo-tree.md +23 -23
  46. package/docs/design-system/patterns/components-registry.md +17 -17
  47. package/docs/design-system/patterns/core-providers.md +39 -39
  48. package/docs/design-system/patterns/crud-bulk-actions.md +12 -12
  49. package/docs/design-system/patterns/crud-config-props.md +16 -16
  50. package/docs/design-system/patterns/crud-defaults.md +17 -17
  51. package/docs/design-system/patterns/crud-toolbar.md +28 -28
  52. package/docs/design-system/patterns/delete-confirmation.md +40 -40
  53. package/docs/design-system/patterns/dialog-body-scroll.md +26 -26
  54. package/docs/design-system/patterns/dialog-structure.md +32 -32
  55. package/docs/design-system/patterns/dialog-variants.md +41 -41
  56. package/docs/design-system/patterns/feature-flags.md +24 -20
  57. package/docs/design-system/patterns/header-metadata.md +57 -57
  58. package/docs/design-system/patterns/i18n-setup.md +117 -117
  59. package/docs/design-system/patterns/pagination.md +27 -27
  60. package/docs/design-system/patterns/single-scroll.md +39 -39
  61. package/docs/design-system/patterns/vite-tailwind-setup.md +48 -48
  62. package/docs/design-system/platform.md +18 -18
  63. package/docs/design-system/selectors.md +236 -236
  64. package/docs/design-system/tables-grids.md +95 -38
  65. package/package.json +144 -144
  66. package/dist/README.md +0 -1079
  67. package/dist/bin/bootstrap.js +0 -40
  68. package/dist/bin/pull-docs.js +0 -186
  69. package/dist/docs/KNOWLEDGE.md +0 -109
@@ -11,37 +11,37 @@ Botão compacto otimizado para ações em linhas de tabela e menus dropdown. OBR
11
11
 
12
12
  **Uso:**
13
13
  ```tsx
14
- import {
15
- ActionButton, // ou: import { ActionMenu } from "forlogic-core"
16
- DropdownMenu,
17
- DropdownMenuTrigger,
18
- DropdownMenuContent,
19
- DropdownMenuItem
20
- } from "forlogic-core"
21
- import { Edit, Trash } from 'lucide-react'
22
-
23
- // 💡 Alias disponível: ActionMenu = ActionButton
24
-
25
- // ✅ CORRETO: Uso padrão em tabelas CRUD
26
- <DropdownMenu>
27
- <DropdownMenuTrigger asChild>
28
- <ActionButton />
29
- </DropdownMenuTrigger>
30
- <DropdownMenuContent align="end">
31
- <DropdownMenuItem onClick={() => handleEdit(item)}>
32
- <Edit className="mr-2 h-4 w-4" />
33
- Editar
34
- </DropdownMenuItem>
35
- <DropdownMenuItem onClick={() => handleDelete(item)}>
36
- <Trash className="mr-2 h-4 w-4" />
37
- Excluir
38
- </DropdownMenuItem>
39
- </DropdownMenuContent>
40
- </DropdownMenu>
41
-
42
- // ✅ CORRETO: Com ícone customizado
43
- <ActionButton>
44
- <Edit size={12} />
14
+ import {
15
+ ActionButton, // ou: import { ActionMenu } from "forlogic-core"
16
+ DropdownMenu,
17
+ DropdownMenuTrigger,
18
+ DropdownMenuContent,
19
+ DropdownMenuItem
20
+ } from "forlogic-core"
21
+ import { Edit, Trash } from 'lucide-react'
22
+
23
+ // 💡 Alias disponível: ActionMenu = ActionButton
24
+
25
+ // ✅ CORRETO: Uso padrão em tabelas CRUD
26
+ <DropdownMenu>
27
+ <DropdownMenuTrigger asChild>
28
+ <ActionButton />
29
+ </DropdownMenuTrigger>
30
+ <DropdownMenuContent align="end">
31
+ <DropdownMenuItem onClick={() => handleEdit(item)}>
32
+ <Edit className="mr-2 h-4 w-4" />
33
+ Editar
34
+ </DropdownMenuItem>
35
+ <DropdownMenuItem onClick={() => handleDelete(item)}>
36
+ <Trash className="mr-2 h-4 w-4" />
37
+ Excluir
38
+ </DropdownMenuItem>
39
+ </DropdownMenuContent>
40
+ </DropdownMenu>
41
+
42
+ // ✅ CORRETO: Com ícone customizado
43
+ <ActionButton>
44
+ <Edit size={12} />
45
45
  </ActionButton>
46
46
  ```
47
47
 
@@ -54,15 +54,15 @@ import { Edit, Trash } from 'lucide-react'
54
54
 
55
55
  **Exemplos:**
56
56
  ```tsx
57
- // ❌ NUNCA faça isso em tabelas CRUD
57
+ // ❌ NUNCA faça isso em tabelas CRUD
58
58
  <Button variant=
59
59
  ```
60
60
  ```tsx
61
- // ✅ SEMPRE use ActionButton em tabelas
62
- <DropdownMenu>
63
- <DropdownMenuTrigger asChild>
64
- <ActionButton />
65
- </DropdownMenuTrigger>
61
+ // ✅ SEMPRE use ActionButton em tabelas
62
+ <DropdownMenu>
63
+ <DropdownMenuTrigger asChild>
64
+ <ActionButton />
65
+ </DropdownMenuTrigger>
66
66
  <DropdownMenuContent align=
67
67
  ```
68
68
 
@@ -76,20 +76,20 @@ import { Edit, Trash } from 'lucide-react'
76
76
  **Notas:**
77
77
  - 💡 Alias: Também disponível como
78
78
  - — import { ActionMenu } from
79
- - ,
79
+ - ,
80
80
 
81
- - ,
81
+ - ,
82
82
 
83
83
  - ghost
84
84
  - icon
85
- - ,
85
+ - ,
86
86
 
87
- - ,
87
+ - ,
88
88
 
89
- - ,
89
+ - ,
90
90
 
91
91
 
92
- > Fonte: `src\design-system\docs\components\ActionButtonDoc.tsx`
92
+ > Fonte: `src/design-system/docs/components/ActionButtonDoc.tsx`
93
93
 
94
94
  ---
95
95
 
@@ -99,10 +99,10 @@ Componente de botão com variantes semânticas, tamanhos e estados. Use para aç
99
99
 
100
100
  **Uso:**
101
101
  ```tsx
102
- import { Button } from "forlogic-core"
103
-
104
- <Button>Click me</Button>
105
- <Button variant="primary">Primary</Button>
102
+ import { Button } from "forlogic-core"
103
+
104
+ <Button>Click me</Button>
105
+ <Button variant="primary">Primary</Button>
106
106
  <Button variant="destructive">Delete</Button>
107
107
  ```
108
108
 
@@ -117,8 +117,8 @@ import { Button } from "forlogic-core"
117
117
  <Button variant=
118
118
  ```
119
119
  ```tsx
120
- // ⚠️ DEPRECATED: Variantes mantidas para compatibilidade
121
- // Use as variantes semânticas (primary, secondary, etc.)
120
+ // ⚠️ DEPRECATED: Variantes mantidas para compatibilidade
121
+ // Use as variantes semânticas (primary, secondary, etc.)
122
122
  <Button variant=
123
123
  ```
124
124
  ```tsx
@@ -128,9 +128,9 @@ import { Button } from "forlogic-core"
128
128
  <Button size=
129
129
  ```
130
130
  ```tsx
131
- <Button>Normal</Button>
132
- <Button disabled>Disabled</Button>
133
- <Button disabled>
131
+ <Button>Normal</Button>
132
+ <Button disabled>Disabled</Button>
133
+ <Button disabled>
134
134
  <Loader2 className=
135
135
  ```
136
136
  ```tsx
@@ -157,7 +157,7 @@ import { Button } from "forlogic-core"
157
157
  - usa
158
158
  - (8px) para consistência com inputs e selects.
159
159
 
160
- > Fonte: `src\design-system\docs\components\ButtonDoc.tsx`
160
+ > Fonte: `src/design-system/docs/components/ButtonDoc.tsx`
161
161
 
162
162
  ---
163
163
 
@@ -167,10 +167,10 @@ Componente de botão com variantes semânticas, tamanhos e estados. Use para aç
167
167
 
168
168
  **Uso:**
169
169
  ```tsx
170
- import { Button } from "forlogic-core"
171
-
172
- <Button>Click me</Button>
173
- <Button variant="primary">Primary</Button>
170
+ import { Button } from "forlogic-core"
171
+
172
+ <Button>Click me</Button>
173
+ <Button variant="primary">Primary</Button>
174
174
  <Button variant="destructive">Delete</Button>
175
175
  ```
176
176
 
@@ -185,8 +185,8 @@ import { Button } from "forlogic-core"
185
185
  <Button variant=
186
186
  ```
187
187
  ```tsx
188
- // ⚠️ DEPRECATED: Variantes mantidas para compatibilidade
189
- // Use as variantes semânticas (primary, secondary, etc.)
188
+ // ⚠️ DEPRECATED: Variantes mantidas para compatibilidade
189
+ // Use as variantes semânticas (primary, secondary, etc.)
190
190
  <Button variant=
191
191
  ```
192
192
  ```tsx
@@ -196,9 +196,9 @@ import { Button } from "forlogic-core"
196
196
  <Button size=
197
197
  ```
198
198
  ```tsx
199
- <Button>Normal</Button>
200
- <Button disabled>Disabled</Button>
201
- <Button disabled>
199
+ <Button>Normal</Button>
200
+ <Button disabled>Disabled</Button>
201
+ <Button disabled>
202
202
  <Loader2 className=
203
203
  ```
204
204
  ```tsx
@@ -225,7 +225,7 @@ import { Button } from "forlogic-core"
225
225
  - usa
226
226
  - (8px) para consistência com inputs e selects.
227
227
 
228
- > Fonte: `src\design-system\docs\components\ButtonDoc.tsx`
228
+ > Fonte: `src/design-system/docs/components/ButtonDoc.tsx`
229
229
 
230
230
  ---
231
231
 
@@ -235,37 +235,37 @@ Botão compacto otimizado para ações em linhas de tabela e menus dropdown. OBR
235
235
 
236
236
  **Uso:**
237
237
  ```tsx
238
- import {
239
- ActionButton, // ou: import { ActionMenu } from "forlogic-core"
240
- DropdownMenu,
241
- DropdownMenuTrigger,
242
- DropdownMenuContent,
243
- DropdownMenuItem
244
- } from "forlogic-core"
245
- import { Edit, Trash } from 'lucide-react'
246
-
247
- // 💡 Alias disponível: ActionMenu = ActionButton
248
-
249
- // ✅ CORRETO: Uso padrão em tabelas CRUD
250
- <DropdownMenu>
251
- <DropdownMenuTrigger asChild>
252
- <ActionButton />
253
- </DropdownMenuTrigger>
254
- <DropdownMenuContent align="end">
255
- <DropdownMenuItem onClick={() => handleEdit(item)}>
256
- <Edit className="mr-2 h-4 w-4" />
257
- Editar
258
- </DropdownMenuItem>
259
- <DropdownMenuItem onClick={() => handleDelete(item)}>
260
- <Trash className="mr-2 h-4 w-4" />
261
- Excluir
262
- </DropdownMenuItem>
263
- </DropdownMenuContent>
264
- </DropdownMenu>
265
-
266
- // ✅ CORRETO: Com ícone customizado
267
- <ActionButton>
268
- <Edit size={12} />
238
+ import {
239
+ ActionButton, // ou: import { ActionMenu } from "forlogic-core"
240
+ DropdownMenu,
241
+ DropdownMenuTrigger,
242
+ DropdownMenuContent,
243
+ DropdownMenuItem
244
+ } from "forlogic-core"
245
+ import { Edit, Trash } from 'lucide-react'
246
+
247
+ // 💡 Alias disponível: ActionMenu = ActionButton
248
+
249
+ // ✅ CORRETO: Uso padrão em tabelas CRUD
250
+ <DropdownMenu>
251
+ <DropdownMenuTrigger asChild>
252
+ <ActionButton />
253
+ </DropdownMenuTrigger>
254
+ <DropdownMenuContent align="end">
255
+ <DropdownMenuItem onClick={() => handleEdit(item)}>
256
+ <Edit className="mr-2 h-4 w-4" />
257
+ Editar
258
+ </DropdownMenuItem>
259
+ <DropdownMenuItem onClick={() => handleDelete(item)}>
260
+ <Trash className="mr-2 h-4 w-4" />
261
+ Excluir
262
+ </DropdownMenuItem>
263
+ </DropdownMenuContent>
264
+ </DropdownMenu>
265
+
266
+ // ✅ CORRETO: Com ícone customizado
267
+ <ActionButton>
268
+ <Edit size={12} />
269
269
  </ActionButton>
270
270
  ```
271
271
 
@@ -278,15 +278,15 @@ import { Edit, Trash } from 'lucide-react'
278
278
 
279
279
  **Exemplos:**
280
280
  ```tsx
281
- // ❌ NUNCA faça isso em tabelas CRUD
281
+ // ❌ NUNCA faça isso em tabelas CRUD
282
282
  <Button variant=
283
283
  ```
284
284
  ```tsx
285
- // ✅ SEMPRE use ActionButton em tabelas
286
- <DropdownMenu>
287
- <DropdownMenuTrigger asChild>
288
- <ActionButton />
289
- </DropdownMenuTrigger>
285
+ // ✅ SEMPRE use ActionButton em tabelas
286
+ <DropdownMenu>
287
+ <DropdownMenuTrigger asChild>
288
+ <ActionButton />
289
+ </DropdownMenuTrigger>
290
290
  <DropdownMenuContent align=
291
291
  ```
292
292
 
@@ -300,20 +300,20 @@ import { Edit, Trash } from 'lucide-react'
300
300
  **Notas:**
301
301
  - 💡 Alias: Também disponível como
302
302
  - — import { ActionMenu } from
303
- - ,
303
+ - ,
304
304
 
305
- - ,
305
+ - ,
306
306
 
307
307
  - ghost
308
308
  - icon
309
- - ,
309
+ - ,
310
310
 
311
- - ,
311
+ - ,
312
312
 
313
- - ,
313
+ - ,
314
314
 
315
315
 
316
- > Fonte: `src\design-system\docs\components\ActionButtonDoc.tsx`
316
+ > Fonte: `src/design-system/docs/components/ActionButtonDoc.tsx`
317
317
 
318
318
  ---
319
319
 
@@ -323,11 +323,11 @@ Um controle que permite ao usuário alternar entre marcado e desmarcado.
323
323
 
324
324
  **Uso:**
325
325
  ```tsx
326
- import { Switch, Label } from "forlogic-core"
327
-
328
- <div className="flex items-center space-x-2">
329
- <Switch id="airplane-mode" />
330
- <Label htmlFor="airplane-mode">Modo Avião</Label>
326
+ import { Switch, Label } from "forlogic-core"
327
+
328
+ <div className="flex items-center space-x-2">
329
+ <Switch id="airplane-mode" />
330
+ <Label htmlFor="airplane-mode">Modo Avião</Label>
331
331
  </div>
332
332
  ```
333
333
 
@@ -344,7 +344,7 @@ import { Switch, Label } from "forlogic-core"
344
344
 
345
345
  **Exemplos:**
346
346
  ```tsx
347
- // Desligado
347
+ // Desligado
348
348
  <Switch id=
349
349
  ```
350
350
  ```tsx
@@ -366,7 +366,7 @@ import { Switch, Label } from
366
366
  - Indicadores visuais de foco visíveis
367
367
  - Estado desabilitado comunicado via aria-disabled
368
368
 
369
- > Fonte: `src\design-system\docs\components\SwitchDoc.tsx`
369
+ > Fonte: `src/design-system/docs/components/SwitchDoc.tsx`
370
370
 
371
371
  ---
372
372
 
@@ -376,22 +376,22 @@ Botões de dois estados que podem estar ligados ou desligados, individualmente o
376
376
 
377
377
  **Uso:**
378
378
  ```tsx
379
- import { Toggle, ToggleGroup, ToggleGroupItem } from "forlogic-core"
380
- import { Bold, Italic } from "lucide-react"
381
-
382
- // Toggle individual
383
- <Toggle aria-label="Alternar negrito">
384
- <Bold className="h-4 w-4" />
385
- </Toggle>
386
-
387
- // Toggle em grupo (seleção única)
388
- <ToggleGroup type="single" defaultValue="center">
389
- <ToggleGroupItem value="left" aria-label="Alinhar à esquerda">
390
- <AlignLeft className="h-4 w-4" />
391
- </ToggleGroupItem>
392
- <ToggleGroupItem value="center" aria-label="Centralizar">
393
- <AlignCenter className="h-4 w-4" />
394
- </ToggleGroupItem>
379
+ import { Toggle, ToggleGroup, ToggleGroupItem } from "forlogic-core"
380
+ import { Bold, Italic } from "lucide-react"
381
+
382
+ // Toggle individual
383
+ <Toggle aria-label="Alternar negrito">
384
+ <Bold className="h-4 w-4" />
385
+ </Toggle>
386
+
387
+ // Toggle em grupo (seleção única)
388
+ <ToggleGroup type="single" defaultValue="center">
389
+ <ToggleGroupItem value="left" aria-label="Alinhar à esquerda">
390
+ <AlignLeft className="h-4 w-4" />
391
+ </ToggleGroupItem>
392
+ <ToggleGroupItem value="center" aria-label="Centralizar">
393
+ <AlignCenter className="h-4 w-4" />
394
+ </ToggleGroupItem>
395
395
  </ToggleGroup>
396
396
  ```
397
397
 
@@ -428,6 +428,6 @@ import { ToggleGroup, ToggleGroupItem } from
428
428
  - Indicadores visuais de foco e estado ativo
429
429
  - ToggleGroup implementa padrão roving tabindex
430
430
 
431
- > Fonte: `src\design-system\docs\components\ToggleDoc.tsx`
431
+ > Fonte: `src/design-system/docs/components/ToggleDoc.tsx`
432
432
 
433
433
  ---