forlogic-core 2.2.6 → 2.2.7

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 +120 -120
  11. package/dist/README.md +1079 -0
  12. package/dist/bin/bootstrap.js +40 -0
  13. package/dist/bin/pull-docs.js +186 -0
  14. package/dist/components/ui/color-picker.d.ts +2 -0
  15. package/dist/components/ui/combo-tree.d.ts +3 -1
  16. package/dist/components/ui/combobox.d.ts +2 -1
  17. package/dist/components/ui/select.d.ts +9 -2
  18. package/dist/docs/KNOWLEDGE.md +109 -0
  19. package/dist/index.css +1 -1
  20. package/dist/index.css.map +1 -1
  21. package/dist/index.esm.js +1 -1
  22. package/dist/index.js +1 -1
  23. package/docs/PUBLISH.md +168 -168
  24. package/docs/STORAGE_BUCKETS.md +456 -456
  25. package/docs/SUPABASE_SECRETS.md +122 -122
  26. package/docs/WORKSPACE_KNOWLEDGE.md +154 -154
  27. package/docs/design-system/buttons-actions.md +130 -130
  28. package/docs/design-system/charts-dashboards.md +301 -340
  29. package/docs/design-system/crud.md +114 -174
  30. package/docs/design-system/data-display.md +106 -106
  31. package/docs/design-system/dialogs.md +212 -212
  32. package/docs/design-system/domain.md +329 -319
  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 +137 -132
  36. package/docs/design-system/layout.md +154 -202
  37. package/docs/design-system/navigation.md +331 -272
  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 +41 -41
  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 +81 -81
  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 +49 -49
  62. package/docs/design-system/platform.md +18 -18
  63. package/docs/design-system/selectors.md +287 -258
  64. package/docs/design-system/tables-grids.md +38 -95
  65. package/package.json +152 -152
  66. package/dist/assets/docs-BEwTKYu3.css +0 -1
  67. package/dist/assets/docs-Bgpz6ETN.js +0 -10752
  68. package/dist/assets/index-SqMwTzMJ.js +0 -97
  69. package/dist/index.html +0 -34
@@ -11,24 +11,24 @@ Campo de entrada de texto com suporte a todos os tipos HTML. Inclui Label para r
11
11
 
12
12
  **Uso:**
13
13
  ```tsx
14
- import { Input, Label } from "forlogic-core"
15
-
16
- // Input básico
17
- <Input placeholder="Digite algo..." />
18
-
19
- // Com Label
20
- <div className="grid w-full items-center gap-1.5">
21
- <Label htmlFor="email">Email</Label>
22
- <Input type="email" id="email" placeholder="email@exemplo.com" />
23
- </div>
24
-
25
- // InputGroup com prefixo e sufixo
26
- import { InputGroup, InputGroupInput, InputGroupAddon, InputGroupButton } from "forlogic-core"
27
-
28
- <InputGroup>
29
- <InputGroupAddon align="inline-start">https://</InputGroupAddon>
30
- <InputGroupInput placeholder="exemplo.com" />
31
- <InputGroupAddon align="inline-end">.com.br</InputGroupAddon>
14
+ import { Input, Label } from "forlogic-core"
15
+
16
+ // Input básico
17
+ <Input placeholder="Digite algo..." />
18
+
19
+ // Com Label
20
+ <div className="grid w-full items-center gap-1.5">
21
+ <Label htmlFor="email">Email</Label>
22
+ <Input type="email" id="email" placeholder="email@exemplo.com" />
23
+ </div>
24
+
25
+ // InputGroup com prefixo e sufixo
26
+ import { InputGroup, InputGroupInput, InputGroupAddon, InputGroupButton } from "forlogic-core"
27
+
28
+ <InputGroup>
29
+ <InputGroupAddon align="inline-start">https://</InputGroupAddon>
30
+ <InputGroupInput placeholder="exemplo.com" />
31
+ <InputGroupAddon align="inline-end">.com.br</InputGroupAddon>
32
32
  </InputGroup>
33
33
  ```
34
34
 
@@ -60,21 +60,21 @@ import { InputGroup, InputGroupInput, InputGroupAddon, InputGroupButton } from "
60
60
  <div className=
61
61
  ```
62
62
  ```tsx
63
- // Normal
63
+ // Normal
64
64
  <Input placeholder=
65
65
  ```
66
66
  ```tsx
67
- // Ícone à esquerda
67
+ // Ícone à esquerda
68
68
  <div className=
69
69
  ```
70
70
  ```tsx
71
- // Prefixo
72
- <InputGroup>
71
+ // Prefixo
72
+ <InputGroup>
73
73
  <InputGroupAddon align=
74
74
  ```
75
75
  ```tsx
76
- // Ícone de usuário
77
- <InputGroup>
76
+ // Ícone de usuário
77
+ <InputGroup>
78
78
  <InputGroupAddon align=
79
79
  ```
80
80
 
@@ -120,7 +120,7 @@ import { InputGroup, InputGroupInput, InputGroupAddon, InputGroupButton } from "
120
120
  - para feedback visual no hover.
121
121
  - 🎨 **Padrão v2**: Bordas dos inputs têm contraste aumentado (luminosidade 82% light / 25% dark) para maior realce visual.
122
122
 
123
- > Fonte: `src/design-system/docs/components/InputDoc.tsx`
123
+ > Fonte: `src\design-system\docs\components\InputDoc.tsx`
124
124
 
125
125
  ---
126
126
 
@@ -130,8 +130,8 @@ Exibe um textarea de formulário ou um componente que se parece com um textarea.
130
130
 
131
131
  **Uso:**
132
132
  ```tsx
133
- import { Textarea } from "forlogic-core"
134
-
133
+ import { Textarea } from "forlogic-core"
134
+
135
135
  <Textarea placeholder="Digite sua mensagem aqui." />
136
136
  ```
137
137
 
@@ -159,7 +159,7 @@ import { Textarea } from "forlogic-core"
159
159
  - com
160
160
  - para feedback visual no hover.
161
161
 
162
- > Fonte: `src/design-system/docs/components/TextareaDoc.tsx`
162
+ > Fonte: `src\design-system\docs\components\TextareaDoc.tsx`
163
163
 
164
164
  ---
165
165
 
@@ -169,11 +169,11 @@ Um controle que permite ao usuário alternar entre marcado e desmarcado.
169
169
 
170
170
  **Uso:**
171
171
  ```tsx
172
- import { Checkbox } from "forlogic-core"
173
-
174
- <div className="flex items-center space-x-2">
175
- <Checkbox id="terms" />
176
- <label htmlFor="terms">Accept terms and conditions</label>
172
+ import { Checkbox } from "forlogic-core"
173
+
174
+ <div className="flex items-center space-x-2">
175
+ <Checkbox id="terms" />
176
+ <label htmlFor="terms">Accept terms and conditions</label>
177
177
  </div>
178
178
  ```
179
179
 
@@ -199,7 +199,7 @@ import { Checkbox } from "forlogic-core"
199
199
  - Gerenciamento adequado de foco
200
200
  - Funciona com labels de formulário
201
201
 
202
- > Fonte: `src/design-system/docs/components/CheckboxDoc.tsx`
202
+ > Fonte: `src\design-system\docs\components\CheckboxDoc.tsx`
203
203
 
204
204
  ---
205
205
 
@@ -209,17 +209,17 @@ Um conjunto de botões marcáveis—conhecidos como botões de rádio—onde ape
209
209
 
210
210
  **Uso:**
211
211
  ```tsx
212
- import { RadioGroup, RadioGroupItem } from "forlogic-core"
213
-
214
- <RadioGroup defaultValue="option-one">
215
- <div className="flex items-center space-x-2">
216
- <RadioGroupItem value="option-one" id="r1" />
217
- <Label htmlFor="r1">Option One</Label>
218
- </div>
219
- <div className="flex items-center space-x-2">
220
- <RadioGroupItem value="option-two" id="r2" />
221
- <Label htmlFor="r2">Option Two</Label>
222
- </div>
212
+ import { RadioGroup, RadioGroupItem } from "forlogic-core"
213
+
214
+ <RadioGroup defaultValue="option-one">
215
+ <div className="flex items-center space-x-2">
216
+ <RadioGroupItem value="option-one" id="r1" />
217
+ <Label htmlFor="r1">Option One</Label>
218
+ </div>
219
+ <div className="flex items-center space-x-2">
220
+ <RadioGroupItem value="option-two" id="r2" />
221
+ <Label htmlFor="r2">Option Two</Label>
222
+ </div>
223
223
  </RadioGroup>
224
224
  ```
225
225
 
@@ -251,7 +251,7 @@ import { RadioGroup, RadioGroupItem } from "forlogic-core"
251
251
  - Segue o padrão de grupo de rádio WAI-ARIA
252
252
  - Gerenciamento adequado de foco
253
253
 
254
- > Fonte: `src/design-system/docs/components/RadioGroupDoc.tsx`
254
+ > Fonte: `src\design-system\docs\components\RadioGroupDoc.tsx`
255
255
 
256
256
  ---
257
257
 
@@ -261,9 +261,9 @@ Renderiza uma label acessível associada a controles de formulário.
261
261
 
262
262
  **Uso:**
263
263
  ```tsx
264
- import { Label } from "forlogic-core"
265
-
266
- <Label htmlFor="email">Email</Label>
264
+ import { Label } from "forlogic-core"
265
+
266
+ <Label htmlFor="email">Email</Label>
267
267
  <Input id="email" type="email" />
268
268
  ```
269
269
 
@@ -315,7 +315,7 @@ import { Label } from "forlogic-core"
315
315
  - (12px) e
316
316
  - para hierarquia visual clara sem competir com o conteúdo do campo.
317
317
 
318
- > Fonte: `src/design-system/docs/components/LabelDoc.tsx`
318
+ > Fonte: `src\design-system\docs\components\LabelDoc.tsx`
319
319
 
320
320
  ---
321
321
 
@@ -325,8 +325,8 @@ Um input onde o usuário seleciona um valor dentro de um intervalo determinado.
325
325
 
326
326
  **Uso:**
327
327
  ```tsx
328
- import { Slider } from "forlogic-core"
329
-
328
+ import { Slider } from "forlogic-core"
329
+
330
330
  <Slider defaultValue={[50]} max={100} step={1} />
331
331
  ```
332
332
 
@@ -336,7 +336,7 @@ import { Slider } from "forlogic-core"
336
336
  - Labels e valores ARIA adequados
337
337
  - Indicadores de foco visíveis
338
338
 
339
- > Fonte: `src/design-system/docs/components/SliderDoc.tsx`
339
+ > Fonte: `src\design-system\docs\components\SliderDoc.tsx`
340
340
 
341
341
  ---
342
342
 
@@ -346,16 +346,16 @@ Componente de upload de arquivo único com drag & drop, validação de tipo/tama
346
346
 
347
347
  **Uso:**
348
348
  ```tsx
349
- import { SingleFileUpload } from 'forlogic-core';
350
-
351
- <SingleFileUpload
352
- storedFile={{ id: '1', name: 'doc.pdf', extension: 'pdf', size: 1024 }}
353
- allowedExtensions={['pdf', 'docx']}
354
- maxSizeInBytes={10 * 1024 * 1024}
355
- onFileSelect={(file) => console.log(file)}
356
- onFileRemove={() => console.log('removed')}
357
- onDownload={async (f) => downloadFile(f.id)}
358
- onView={(f) => openViewer(f.id)}
349
+ import { SingleFileUpload } from 'forlogic-core';
350
+
351
+ <SingleFileUpload
352
+ storedFile={{ id: '1', name: 'doc.pdf', extension: 'pdf', size: 1024 }}
353
+ allowedExtensions={['pdf', 'docx']}
354
+ maxSizeInBytes={10 * 1024 * 1024}
355
+ onFileSelect={(file) => console.log(file)}
356
+ onFileRemove={() => console.log('removed')}
357
+ onDownload={async (f) => downloadFile(f.id)}
358
+ onView={(f) => openViewer(f.id)}
359
359
  />
360
360
  ```
361
361
 
@@ -370,17 +370,17 @@ import { SingleFileUpload } from 'forlogic-core';
370
370
 
371
371
  **Exemplos:**
372
372
  ```tsx
373
- <SingleFileUpload
374
- onFileSelect={(f) => handleSelect(f)}
375
- onFileRemove={() => handleRemove()}
373
+ <SingleFileUpload
374
+ onFileSelect={(f) => handleSelect(f)}
375
+ onFileRemove={() => handleRemove()}
376
376
  />
377
377
  ```
378
378
  ```tsx
379
- <SingleFileUpload
379
+ <SingleFileUpload
380
380
  storedFile={{ id:
381
381
  ```
382
382
  ```tsx
383
- <SingleFileUpload
383
+ <SingleFileUpload
384
384
  allowedExtensions={[
385
385
  ```
386
386
 
@@ -390,32 +390,32 @@ import { SingleFileUpload } from 'forlogic-core';
390
390
  - O componente gerencia estados internos de arquivo local vs servidor (StoredFile).
391
391
  - Tipos proibidos são bloqueados automaticamente independente da prop allowedExtensions.
392
392
 
393
- > Fonte: `src/design-system/docs/components/FileUploadDoc.tsx`
393
+ > Fonte: `src\design-system\docs\components\FileUploadDoc.tsx`
394
394
 
395
395
  ---
396
396
 
397
397
  ### Select
398
398
 
399
- Exibe uma lista de opções para o usuário escolher—acionada por um botão.
399
+ Exibe uma lista de opções para o usuário escolher—acionada por um botão. O item selecionado é destacado por background (accent), fonte medium e borda esquerda na cor primary. A prop `showCheck` (opcional) adiciona um ícone de check à esquerda do item selecionado.
400
400
 
401
401
  **Uso:**
402
402
  ```tsx
403
- import {
404
- Select,
405
- SelectContent,
406
- SelectItem,
407
- SelectTrigger,
408
- SelectValue,
409
- } from "forlogic-core"
410
-
411
- <Select>
412
- <SelectTrigger className="w-[180px]">
413
- <SelectValue placeholder="Theme" />
414
- </SelectTrigger>
415
- <SelectContent>
416
- <SelectItem value="light">Light</SelectItem>
417
- <SelectItem value="dark">Dark</SelectItem>
418
- </SelectContent>
403
+ import {
404
+ Select,
405
+ SelectContent,
406
+ SelectItem,
407
+ SelectTrigger,
408
+ SelectValue,
409
+ } from "forlogic-core"
410
+
411
+ <Select>
412
+ <SelectTrigger className="w-[180px]">
413
+ <SelectValue placeholder="Theme" />
414
+ </SelectTrigger>
415
+ <SelectContent>
416
+ <SelectItem value="light">Light</SelectItem>
417
+ <SelectItem value="dark">Dark</SelectItem>
418
+ </SelectContent>
419
419
  </Select>
420
420
  ```
421
421
 
@@ -426,6 +426,7 @@ import {
426
426
  | `value` | `string` | - | O valor selecionado controlado. |
427
427
  | `onValueChange` | `(value: string) => void` | - | Manipulador de evento quando o valor muda. |
428
428
  | `disabled` | `boolean` | false | Se o select está desabilitado. |
429
+ | `showCheck` | `boolean` | false | Exibe o ícone de check à esquerda do item selecionado. Quando false, o item selecionado é destacado apenas pelo background, fonte medium e borda esquerda primary. |
429
430
  | `container (SelectContent)` | `HTMLElement` | - | Container HTML para portal (útil dentro de Dialog). |
430
431
  | `collisionBoundary (SelectContent)` | `HTMLElement` | - | Elemento para detecção de colisão de posicionamento. |
431
432
 
@@ -441,13 +442,17 @@ import {
441
442
  - quando o Select estiver dentro de um Dialog para evitar problemas de scroll
442
443
  - 💡 Para seleção com busca, considere usar
443
444
  - ao invés de
444
- - ,
445
+ - ,
445
446
 
446
447
  - rounded-lg
447
448
  - hover:border-primary
448
449
  - transition-colors
450
+ - ,
451
+
452
+ - Combobox
453
+ - showCheck
449
454
 
450
- > Fonte: `src/design-system/docs/components/SelectDoc.tsx`
455
+ > Fonte: `src\design-system\docs\components\SelectDoc.tsx`
451
456
 
452
457
  ---
453
458
 
@@ -457,14 +462,14 @@ Editor de texto rico construído com Tiptap, suportando formatação visual, edi
457
462
 
458
463
  **Uso:**
459
464
  ```tsx
460
- import { RichTextEditor } from "forlogic-core"
461
-
462
- const [content, setContent] = useState('')
463
-
464
- <RichTextEditor
465
- value={content}
466
- onChange={setContent}
467
- placeholder="Escreva algo aqui..."
465
+ import { RichTextEditor } from "forlogic-core"
466
+
467
+ const [content, setContent] = useState('')
468
+
469
+ <RichTextEditor
470
+ value={content}
471
+ onChange={setContent}
472
+ placeholder="Escreva algo aqui..."
468
473
  />
469
474
  ```
470
475
 
@@ -480,25 +485,25 @@ const [content, setContent] = useState('')
480
485
 
481
486
  **Exemplos:**
482
487
  ```tsx
483
- <RichTextEditor
484
- value={content}
485
- onChange={setContent}
486
- showVariableHint={false}
488
+ <RichTextEditor
489
+ value={content}
490
+ onChange={setContent}
491
+ showVariableHint={false}
487
492
  placeholder=
488
493
  ```
489
494
  ```tsx
490
- <RichTextEditor
491
- value={content}
492
- onChange={setContent}
493
- showModeToggle={false}
494
- showVariableHint={false}
495
+ <RichTextEditor
496
+ value={content}
497
+ onChange={setContent}
498
+ showModeToggle={false}
499
+ showVariableHint={false}
495
500
  minHeight=
496
501
  ```
497
502
  ```tsx
498
- <RichTextEditor
499
- value={content}
500
- onChange={setContent}
501
- disabled
503
+ <RichTextEditor
504
+ value={content}
505
+ onChange={setContent}
506
+ disabled
502
507
  />
503
508
  ```
504
509
 
@@ -509,7 +514,7 @@ const [content, setContent] = useState('')
509
514
  - Contraste adequado nos estados ativo/inativo
510
515
  - Focus visível em todos os elementos interativos
511
516
 
512
- > Fonte: `src/design-system/docs/components/RichTextEditorDoc.tsx`
517
+ > Fonte: `src\design-system\docs\components\RichTextEditorDoc.tsx`
513
518
 
514
519
  ---
515
520
 
@@ -519,27 +524,27 @@ Componente container que renderiza campos de formulário dinâmicos baseados em
519
524
 
520
525
  **Uso:**
521
526
  ```tsx
522
- import { CustomFormFields, ECustomFormFieldType, validateFields } from "forlogic-core"
523
- import type { FieldAssociation } from "forlogic-core"
524
-
525
- const fields: FieldAssociation[] = [
526
- {
527
- id: 'f1',
528
- type: ECustomFormFieldType.text,
529
- name: 'Nome',
530
- required: true,
531
- config: { multiline: false },
532
- isActive: true,
533
- },
534
- // ...mais campos
535
- ];
536
-
537
- const [formFields, setFormFields] = useState(fields);
538
-
539
- <CustomFormFields
540
- fields={formFields}
541
- onChange={setFormFields}
542
- onFieldChange={(field) => console.log('Changed:', field)}
527
+ import { CustomFormFields, ECustomFormFieldType, validateFields } from "forlogic-core"
528
+ import type { FieldAssociation } from "forlogic-core"
529
+
530
+ const fields: FieldAssociation[] = [
531
+ {
532
+ id: 'f1',
533
+ type: ECustomFormFieldType.text,
534
+ name: 'Nome',
535
+ required: true,
536
+ config: { multiline: false },
537
+ isActive: true,
538
+ },
539
+ // ...mais campos
540
+ ];
541
+
542
+ const [formFields, setFormFields] = useState(fields);
543
+
544
+ <CustomFormFields
545
+ fields={formFields}
546
+ onChange={setFormFields}
547
+ onFieldChange={(field) => console.log('Changed:', field)}
543
548
  />
544
549
  ```
545
550
 
@@ -551,6 +556,6 @@ const [formFields, setFormFields] = useState(fields);
551
556
  - Use setFormFieldValues() para aplicar valores salvos a uma lista de campos.
552
557
  - Campos de seleção suportam dataSource custom (dados estáticos) e users (lista de usuários do sistema).
553
558
 
554
- > Fonte: `src/design-system/docs/components/CustomFormFieldsDoc.tsx`
559
+ > Fonte: `src\design-system\docs\components\CustomFormFieldsDoc.tsx`
555
560
 
556
561
  ---