@iclips/ui 4.0.0 → 4.1.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/dist/components/ui/data/comment-thread.cjs +1 -1
- package/dist/components/ui/data/comment-thread.js +12 -12
- package/dist/components/ui/data/comment-thread.js.map +1 -1
- package/dist/components/ui/data/document-editor.cjs +1 -1
- package/dist/components/ui/data/document-editor.cjs.map +1 -1
- package/dist/components/ui/data/document-editor.js +388 -125
- package/dist/components/ui/data/document-editor.js.map +1 -1
- package/dist/editor.d.cts +26 -1
- package/dist/editor.d.ts +26 -1
- package/dist/index.css +1 -1
- package/dist/preset.css +11 -0
- package/docs/README.md +2 -0
- package/package.json +1 -1
package/dist/preset.css
CHANGED
|
@@ -405,6 +405,17 @@ ul[data-type="taskList"] li[data-checked="true"] > div {
|
|
|
405
405
|
@apply bg-muted/50 text-left font-semibold;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
+
/* A folha do DocumentEditor (page="a4") e papel: branca tambem no escuro. As cores da tabela
|
|
409
|
+
deixam de vir dos tokens, que no escuro viram tons escuros sobre o branco. */
|
|
410
|
+
[data-slot="document-sheet"] .ProseMirror table td,
|
|
411
|
+
[data-slot="document-sheet"] .ProseMirror table th {
|
|
412
|
+
@apply border-black/20;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
[data-slot="document-sheet"] .ProseMirror table th {
|
|
416
|
+
@apply bg-black/5 text-black;
|
|
417
|
+
}
|
|
418
|
+
|
|
408
419
|
.ProseMirror table .selectedCell::after {
|
|
409
420
|
@apply bg-primary/15 pointer-events-none absolute inset-0 z-10 content-[''];
|
|
410
421
|
}
|
package/docs/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Leia isto antes de montar uma tela com a `@iclips/ui`. Os guias abaixo dizem **q
|
|
|
4
4
|
|
|
5
5
|
Todo import vem do barrel: `import { Button } from "@iclips/ui"`. Os componentes de edição rica (`DocumentEditor`, `CommentThread`, `EditorialCalendar`, `MentionList`) vêm de `@iclips/ui/editor`. Importe `@iclips/ui/styles.css` uma vez na raiz do app.
|
|
6
6
|
|
|
7
|
+
**`DocumentEditor` como documento.** O `variant="simple"` é o campo de texto formatado (motivo, briefing). Para o usuário revisar um documento inteiro antes de virar PDF, use `variant="full"` com `page="a4"` e `onImageUpload`: ele traz tabela, imagem por arquivo (botão, Ctrl+V, arrastar), redimensionamento pelos cantos e folha com as margens do PDF. O HTML sai com `<img width height data-align>`; o editor não o sanitiza nem persiste a imagem — isso é de quem consome. Recusa de arquivo usa `toast`, então o app precisa ter `<Toaster />`.
|
|
8
|
+
|
|
7
9
|
## Guias
|
|
8
10
|
|
|
9
11
|
- [Ações e navegação](acoes.md) — botão, link ou ícone; hierarquia de variantes.
|