ads-nuxt 0.2.0 → 0.4.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 (44) hide show
  1. package/README.md +6 -4
  2. package/app/assets/css/component-tokens.css +369 -367
  3. package/app/assets/css/main.css +26 -65
  4. package/app/components/AdsBadge.vue +3 -3
  5. package/app/components/AdsBroadcast.vue +1 -1
  6. package/app/components/AdsButton.vue +13 -5
  7. package/app/components/AdsButtonMenu.vue +2 -2
  8. package/app/components/AdsCharttip.vue +3 -2
  9. package/app/components/AdsCheckbox.vue +77 -77
  10. package/app/components/AdsDatePicker.vue +23 -6
  11. package/app/components/AdsEmptyState.vue +6 -3
  12. package/app/components/AdsHeavyTable.vue +4 -0
  13. package/app/components/AdsInput.vue +3 -2
  14. package/app/components/AdsMenuBar.vue +8 -1
  15. package/app/components/AdsMetricCard.vue +1 -1
  16. package/app/components/AdsModal.vue +7 -4
  17. package/app/components/AdsNavbarApp.vue +1 -1
  18. package/app/components/AdsNavbarDesk.vue +14 -9
  19. package/app/components/AdsNumberInput.vue +8 -8
  20. package/app/components/AdsPagination.vue +91 -91
  21. package/app/components/AdsPill.vue +1 -1
  22. package/app/components/AdsProductTag.vue +21 -2
  23. package/app/components/AdsRadio.vue +70 -70
  24. package/app/components/AdsSearchInput.vue +2 -2
  25. package/app/components/AdsSelect.vue +18 -1
  26. package/app/components/AdsSelectPanel.vue +103 -32
  27. package/app/components/AdsSteptip.vue +104 -101
  28. package/app/components/AdsSwitch.vue +59 -59
  29. package/app/components/AdsTable.vue +16 -1
  30. package/app/components/AdsTextarea.vue +2 -2
  31. package/app/components/AdsToast.vue +6 -5
  32. package/app/components/AdsTooltip.vue +2 -2
  33. package/app/components/OverlayLoading.vue +313 -173
  34. package/app/composables/useOverlayLoading.ts +31 -9
  35. package/app/theme/ads-theme.ts +1 -1
  36. package/app/theme/component-tokens.json +368 -366
  37. package/app/theme/component-tokens.ts +809 -807
  38. package/app/types/overlay-loading.types.ts +11 -2
  39. package/app/utils/ads-table.ts +3 -0
  40. package/package.json +56 -55
  41. package/app/assets/animations/Error.gif +0 -0
  42. package/app/assets/animations/Loading.gif +0 -0
  43. package/app/assets/animations/Search.gif +0 -0
  44. package/app/assets/animations/Success.gif +0 -0
package/README.md CHANGED
@@ -186,7 +186,7 @@ const nome = ref("");
186
186
 
187
187
  | Componente | Descrição |
188
188
  | ----------------- | --------- |
189
- | `AdsTable` | Tabela baseada no `UTable`, com densidade, zebra, bordas, degradê por nível, `sticky`, loading e estado vazio. |
189
+ | `AdsTable` | Tabela baseada no `UTable`, com densidade, zebra, bordas, degradê por nível, `sticky` (cabeçalho fixo), `virtualize` (lista virtual para muitas linhas), loading e estado vazio. |
190
190
  | `AdsTableToolbar` | Barra de ferramentas da tabela. |
191
191
  | `AdsCard` | Cartão genérico. |
192
192
  | `AdsMetricCard` | Cartão de métrica/indicador. |
@@ -461,13 +461,15 @@ Opções (`OverlayLoadingOptions`):
461
461
 
462
462
  | Opção | Tipo |
463
463
  | ----------------- | ---- |
464
- | `variant` | `"loading"` \| `"success"` \| `"error"` \| `"search"` \| `"info"` |
464
+ | `variant` | `"loading"` \| `"search"` \| `"info"` \| `"success"` \| `"error"` \| `"warning"` (ícone Lucide animado) |
465
465
  | `title`, `description`, `hint` | `string` |
466
466
  | `showProgress`, `progress` | `boolean`, `number` |
467
467
  | `iconSrc` | `string` |
468
468
  | `actionLabel`, `onAction` | rótulo e callback de ação |
469
+ | `actionIcon` | ícone Lucide da ação (padrão: `i-lucide-refresh-cw` só no erro) |
470
+ | `secondaryActionLabel`, `secondaryActionIcon`, `onSecondaryAction` | segunda ação (unfilled); sem callback, fecha o overlay |
469
471
  | `onUserClose` | callback ao usuário fechar |
470
- | `closableVariants`| `("success" \| "error")[]` — variantes que o usuário pode fechar |
472
+ | `closableVariants`| `("info" \| "success" \| "error" \| "warning")[]` — variantes que o usuário pode fechar |
471
473
 
472
474
  ## Utilitários
473
475
 
@@ -552,7 +554,7 @@ git push --follow-tags
552
554
  .
553
555
  ├── app/ # Conteúdo publicado no npm (a layer)
554
556
  │ ├── app.config.ts # Tema do Nuxt UI
555
- │ ├── assets/ # CSS, SVGs de marca e animações
557
+ │ ├── assets/ # CSS e SVGs de marca
556
558
  │ ├── components/ # Componentes Ads*
557
559
  │ ├── composables/ # useOverlayLoading
558
560
  │ ├── constants/ # Constantes (swatches de cor)