@1doc/1ds-vue 2.21.0 → 2.22.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/CHANGELOG.md +6 -61
- package/dist/index.css +1 -1
- package/dist/index.d.ts +24 -2
- package/dist/index.mjs +7204 -7099
- package/dist/index.umd.js +4 -4
- package/package.json +2 -2
- package/src/index.ts +2 -0
- package/src/utils/tooltip-abertos.ts +44 -0
- package/src/utils/tooltip.ts +37 -0
package/dist/index.d.ts
CHANGED
|
@@ -4096,7 +4096,11 @@ export interface ToastStackProps {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
|
|
4098
4098
|
export interface TooltipProps {
|
|
4099
|
-
/**
|
|
4099
|
+
/**
|
|
4100
|
+
* Conteúdo do tooltip. No React aceita ReactNode; no Vue é `string` (para
|
|
4101
|
+
* conteúdo rico, use o slot `content`). Sem `title`, `content` nem slot, o
|
|
4102
|
+
* tooltip não abre e não descreve o gatilho, como se estivesse desabilitado.
|
|
4103
|
+
*/
|
|
4100
4104
|
content?: any;
|
|
4101
4105
|
title?: string;
|
|
4102
4106
|
icon?: IconProp;
|
|
@@ -4110,14 +4114,32 @@ export interface TooltipProps {
|
|
|
4110
4114
|
* largura): o balão de ícone, sigla e botão de barra de ferramentas. Os dois
|
|
4111
4115
|
* tokens são o par invertido do tema, então o contraste vale nos claros,
|
|
4112
4116
|
* escuro e alto contraste.
|
|
4113
|
-
* @default 'default'
|
|
4117
|
+
* @default 'default' (ou o padrão de `setTooltipDefaults`)
|
|
4114
4118
|
*/
|
|
4115
4119
|
variant?: "default" | "dark";
|
|
4116
4120
|
/** Largura máxima do balão, qualquer valor CSS (`"220px"`, `"20rem"`). Vence o teto de cada variante (280px no padrão, 220px no dark). */
|
|
4117
4121
|
maxWidth?: string;
|
|
4118
4122
|
sideOffset?: number;
|
|
4123
|
+
/**
|
|
4124
|
+
* Espera, em ms, entre o hover/foco e o balão abrir. Logo depois de outro
|
|
4125
|
+
* tooltip fechar, o próximo abre sem espera (tooltips vizinhos).
|
|
4126
|
+
* @default 0 (ou o padrão de `setTooltipDefaults`)
|
|
4127
|
+
*/
|
|
4119
4128
|
delayDuration?: number;
|
|
4120
4129
|
disabled?: boolean;
|
|
4130
|
+
/**
|
|
4131
|
+
* Ancora o balão no próprio elemento filho, sem caixa em volta: o invólucro
|
|
4132
|
+
* vira `display: contents` e não muda o layout (ícone na linha de base do
|
|
4133
|
+
* texto, item de flex que estica, `div`/`p` truncado). Exige UM elemento
|
|
4134
|
+
* filho; texto solto não serve de âncora.
|
|
4135
|
+
*/
|
|
4136
|
+
asChild?: boolean;
|
|
4137
|
+
/**
|
|
4138
|
+
* Torna o gatilho focável (`tabindex="0"`) quando ele não tem filho
|
|
4139
|
+
* focável, como um ícone ou um texto que só tem a dica: sem isso, quem usa
|
|
4140
|
+
* teclado nunca chega à descrição. Com filho focável (botão, link), não faz nada.
|
|
4141
|
+
*/
|
|
4142
|
+
focusable?: boolean;
|
|
4121
4143
|
className?: string;
|
|
4122
4144
|
children?: any;
|
|
4123
4145
|
}
|