bth-ui 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/dist/bth-ui/bth-ui.esm.js +1 -0
- package/dist/bth-ui/index.esm.js +0 -0
- package/dist/bth-ui/p-DQuL1Twl.js +1 -0
- package/dist/bth-ui/p-e916e3c7.entry.js +1 -0
- package/dist/bth-ui/p-svnzPQiH.js +3 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/bth-alert_6.cjs.entry.js +133 -0
- package/dist/cjs/bth-ui.cjs.js +25 -0
- package/dist/cjs/index-UJE5BQI1.js +1550 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/collection-manifest.json +18 -0
- package/dist/collection/components/bth-alert/bth-alert-description.css +16 -0
- package/dist/collection/components/bth-alert/bth-alert-description.js +34 -0
- package/dist/collection/components/bth-alert/bth-alert-title.css +13 -0
- package/dist/collection/components/bth-alert/bth-alert-title.js +34 -0
- package/dist/collection/components/bth-alert/bth-alert.css +109 -0
- package/dist/collection/components/bth-alert/bth-alert.js +138 -0
- package/dist/collection/components/bth-alert/bth-alert.types.js +1 -0
- package/dist/collection/components/bth-badge/bth-badge.css +109 -0
- package/dist/collection/components/bth-badge/bth-badge.js +129 -0
- package/dist/collection/components/bth-badge/bth-badge.types.js +1 -0
- package/dist/collection/components/bth-button/bth-button.css +152 -0
- package/dist/collection/components/bth-button/bth-button.js +183 -0
- package/dist/collection/components/bth-button/bth-button.types.js +1 -0
- package/dist/collection/components/bth-icon/bth-icon.css +9 -0
- package/dist/collection/components/bth-icon/bth-icon.js +57 -0
- package/dist/collection/index.js +1 -0
- package/dist/components/bth-alert-description.d.ts +11 -0
- package/dist/components/bth-alert-description.js +1 -0
- package/dist/components/bth-alert-title.d.ts +11 -0
- package/dist/components/bth-alert-title.js +1 -0
- package/dist/components/bth-alert.d.ts +11 -0
- package/dist/components/bth-alert.js +1 -0
- package/dist/components/bth-badge.d.ts +11 -0
- package/dist/components/bth-badge.js +1 -0
- package/dist/components/bth-button.d.ts +11 -0
- package/dist/components/bth-button.js +1 -0
- package/dist/components/bth-icon.d.ts +11 -0
- package/dist/components/bth-icon.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/bth-alert_6.entry.js +126 -0
- package/dist/esm/bth-ui.js +21 -0
- package/dist/esm/index-svnzPQiH.js +1541 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/bth-alert/bth-alert-description.d.ts +19 -0
- package/dist/types/components/bth-alert/bth-alert-title.d.ts +19 -0
- package/dist/types/components/bth-alert/bth-alert.d.ts +41 -0
- package/dist/types/components/bth-alert/bth-alert.types.d.ts +1 -0
- package/dist/types/components/bth-badge/bth-badge.d.ts +30 -0
- package/dist/types/components/bth-badge/bth-badge.types.d.ts +3 -0
- package/dist/types/components/bth-button/bth-button.d.ts +34 -0
- package/dist/types/components/bth-button/bth-button.types.d.ts +3 -0
- package/dist/types/components/bth-icon/bth-icon.d.ts +20 -0
- package/dist/types/components.d.ts +580 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +46 -4
- package/readme.md +31 -0
- package/README.md +0 -3
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { AlertVariant } from "./components/bth-alert/bth-alert.types";
|
|
9
|
+
import { BadgeColor, BadgeSize, BadgeVariant } from "./components/bth-badge/bth-badge.types";
|
|
10
|
+
import { ButtonColor, ButtonSize, ButtonVariant } from "./components/bth-button/bth-button.types";
|
|
11
|
+
export { AlertVariant } from "./components/bth-alert/bth-alert.types";
|
|
12
|
+
export { BadgeColor, BadgeSize, BadgeVariant } from "./components/bth-badge/bth-badge.types";
|
|
13
|
+
export { ButtonColor, ButtonSize, ButtonVariant } from "./components/bth-button/bth-button.types";
|
|
14
|
+
export namespace Components {
|
|
15
|
+
/**
|
|
16
|
+
* Alerta para destacar uma mensagem importante dentro do conteúdo da página.
|
|
17
|
+
* @usage-when Para comunicar o resultado de uma ação, como sucesso ou erro ao salvar.
|
|
18
|
+
* @usage-when Para avisar sobre um estado ou uma condição que afeta o que a pessoa está fazendo.
|
|
19
|
+
* @usage-avoid Para mensagens temporárias que somem sozinhas; use uma notificação do tipo toast.
|
|
20
|
+
* @usage-avoid Para validação de um campo específico; mostre a mensagem junto ao campo.
|
|
21
|
+
* @category feedback
|
|
22
|
+
* @related bth-alert-title, bth-alert-description, bth-icon
|
|
23
|
+
* @example ```html
|
|
24
|
+
* <bth-alert variant="info" dismissible>
|
|
25
|
+
* <bth-icon slot="icon" name="info"></bth-icon>
|
|
26
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
27
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
28
|
+
* </bth-alert>
|
|
29
|
+
* ```
|
|
30
|
+
* @status beta
|
|
31
|
+
*/
|
|
32
|
+
interface BthAlert {
|
|
33
|
+
/**
|
|
34
|
+
* Exibe um botão que permite fechar o alerta.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
"dismissible": boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Variante de cor, de acordo com o tipo da mensagem.
|
|
40
|
+
* @default 'default'
|
|
41
|
+
*/
|
|
42
|
+
"variant": AlertVariant;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Descrição de um `bth-alert`.
|
|
46
|
+
* @usage-when Dentro de um `bth-alert`, para detalhar a mensagem ou orientar o próximo passo.
|
|
47
|
+
* @usage-avoid Fora de um `bth-alert`; para outros textos, use um parágrafo comum.
|
|
48
|
+
* @category feedback
|
|
49
|
+
* @related bth-alert, bth-alert-title
|
|
50
|
+
* @example ```html
|
|
51
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
52
|
+
* ```
|
|
53
|
+
* @status beta
|
|
54
|
+
*/
|
|
55
|
+
interface BthAlertDescription {
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Título de um `bth-alert`.
|
|
59
|
+
* @usage-when Dentro de um `bth-alert`, para resumir a mensagem em poucas palavras.
|
|
60
|
+
* @usage-avoid Fora de um `bth-alert`; para outros títulos, use um elemento de título comum.
|
|
61
|
+
* @category feedback
|
|
62
|
+
* @related bth-alert, bth-alert-description
|
|
63
|
+
* @example ```html
|
|
64
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
65
|
+
* ```
|
|
66
|
+
* @status beta
|
|
67
|
+
*/
|
|
68
|
+
interface BthAlertTitle {
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Etiqueta curta para destacar um status, uma categoria ou uma contagem.
|
|
72
|
+
* @usage-when Para indicar o status de um item, como "Ativo", "Pendente" ou "Novo".
|
|
73
|
+
* @usage-when Para rotular ou categorizar um conteúdo, inclusive ao lado de um título.
|
|
74
|
+
* @usage-avoid Para ações clicáveis; use um `bth-button`.
|
|
75
|
+
* @usage-avoid Para mensagens longas ou que exigem atenção imediata; use um `bth-alert`.
|
|
76
|
+
* @category dados
|
|
77
|
+
* @related bth-button, bth-alert, bth-icon
|
|
78
|
+
* @example ```html
|
|
79
|
+
* <bth-badge variant="solid" color="primary">solid</bth-badge>
|
|
80
|
+
* <bth-badge variant="subtle" color="primary">subtle</bth-badge>
|
|
81
|
+
* <bth-badge variant="outline" color="primary">outline</bth-badge>
|
|
82
|
+
* ```
|
|
83
|
+
* @status beta
|
|
84
|
+
*/
|
|
85
|
+
interface BthBadge {
|
|
86
|
+
/**
|
|
87
|
+
* Cor do badge.
|
|
88
|
+
* @default 'default'
|
|
89
|
+
*/
|
|
90
|
+
"color": BadgeColor;
|
|
91
|
+
/**
|
|
92
|
+
* Tamanho do badge, proporcional ao tamanho da fonte do contexto onde ele está.
|
|
93
|
+
* @default 'md'
|
|
94
|
+
*/
|
|
95
|
+
"size": BadgeSize;
|
|
96
|
+
/**
|
|
97
|
+
* Estilo visual: `solid` é preenchido, `subtle` tem um fundo suave e `outline` tem só a borda.
|
|
98
|
+
* @default 'solid'
|
|
99
|
+
*/
|
|
100
|
+
"variant": BadgeVariant;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Botão para disparar ações e enviar formulários.
|
|
104
|
+
* @usage-when Para disparar uma ação na página atual, como salvar, confirmar ou abrir um diálogo.
|
|
105
|
+
* @usage-when Para enviar ou limpar um formulário, com `type="submit"` ou `type="reset"`.
|
|
106
|
+
* @usage-avoid Para navegar entre páginas; use um link.
|
|
107
|
+
* @usage-avoid Com mais de um botão de destaque na mesma área; reserve a cor `primary` para a ação principal.
|
|
108
|
+
* @category formulário
|
|
109
|
+
* @related bth-icon, bth-alert
|
|
110
|
+
* @example ```html
|
|
111
|
+
* <bth-button color="primary">Salvar</bth-button>
|
|
112
|
+
* <bth-button variant="outline" color="danger" size="sm">Excluir</bth-button>
|
|
113
|
+
* ```
|
|
114
|
+
* @status beta
|
|
115
|
+
*/
|
|
116
|
+
interface BthButton {
|
|
117
|
+
/**
|
|
118
|
+
* Cor do botão.
|
|
119
|
+
* @default 'default'
|
|
120
|
+
*/
|
|
121
|
+
"color": ButtonColor;
|
|
122
|
+
/**
|
|
123
|
+
* Desabilita o botão e impede a interação.
|
|
124
|
+
* @default false
|
|
125
|
+
*/
|
|
126
|
+
"disabled"?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Tamanho do botão.
|
|
129
|
+
* @default 'md'
|
|
130
|
+
*/
|
|
131
|
+
"size": ButtonSize;
|
|
132
|
+
/**
|
|
133
|
+
* Tipo do botão nativo. `submit` e `reset` atuam sobre o formulário pai.
|
|
134
|
+
* @default 'button'
|
|
135
|
+
*/
|
|
136
|
+
"type": 'submit' | 'reset' | 'button';
|
|
137
|
+
/**
|
|
138
|
+
* Estilo visual: `default` é preenchido, `outline` tem só a borda e `ghost` tem só o texto.
|
|
139
|
+
* @default 'default'
|
|
140
|
+
*/
|
|
141
|
+
"variant": ButtonVariant;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Ícone da fonte Material Symbols Outlined.
|
|
145
|
+
* @usage-when Para reforçar visualmente o significado de um texto, como o título de um alerta ou o rótulo de um botão.
|
|
146
|
+
* @usage-when Para preencher o slot `icon` de outros componentes.
|
|
147
|
+
* @usage-avoid Como único conteúdo de um controle interativo sem um rótulo acessível.
|
|
148
|
+
* @usage-avoid Para ilustrações ou imagens decorativas grandes; use uma imagem.
|
|
149
|
+
* @category mídia
|
|
150
|
+
* @related bth-alert, bth-button
|
|
151
|
+
* @example ```html
|
|
152
|
+
* <bth-icon name="info"></bth-icon>
|
|
153
|
+
* ```
|
|
154
|
+
* @status beta
|
|
155
|
+
*/
|
|
156
|
+
interface BthIcon {
|
|
157
|
+
/**
|
|
158
|
+
* Nome do ícone na fonte Material Symbols Outlined, como `info` ou `check_circle`.
|
|
159
|
+
*/
|
|
160
|
+
"name"?: string;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
export interface BthAlertCustomEvent<T> extends CustomEvent<T> {
|
|
164
|
+
detail: T;
|
|
165
|
+
target: HTMLBthAlertElement;
|
|
166
|
+
}
|
|
167
|
+
declare global {
|
|
168
|
+
interface HTMLBthAlertElementEventMap {
|
|
169
|
+
"bthDismiss": void;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Alerta para destacar uma mensagem importante dentro do conteúdo da página.
|
|
173
|
+
* @usage-when Para comunicar o resultado de uma ação, como sucesso ou erro ao salvar.
|
|
174
|
+
* @usage-when Para avisar sobre um estado ou uma condição que afeta o que a pessoa está fazendo.
|
|
175
|
+
* @usage-avoid Para mensagens temporárias que somem sozinhas; use uma notificação do tipo toast.
|
|
176
|
+
* @usage-avoid Para validação de um campo específico; mostre a mensagem junto ao campo.
|
|
177
|
+
* @category feedback
|
|
178
|
+
* @related bth-alert-title, bth-alert-description, bth-icon
|
|
179
|
+
* @example ```html
|
|
180
|
+
* <bth-alert variant="info" dismissible>
|
|
181
|
+
* <bth-icon slot="icon" name="info"></bth-icon>
|
|
182
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
183
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
184
|
+
* </bth-alert>
|
|
185
|
+
* ```
|
|
186
|
+
* @status beta
|
|
187
|
+
*/
|
|
188
|
+
interface HTMLBthAlertElement extends Components.BthAlert, HTMLStencilElement {
|
|
189
|
+
addEventListener<K extends keyof HTMLBthAlertElementEventMap>(type: K, listener: (this: HTMLBthAlertElement, ev: BthAlertCustomEvent<HTMLBthAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
190
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
191
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
192
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
193
|
+
removeEventListener<K extends keyof HTMLBthAlertElementEventMap>(type: K, listener: (this: HTMLBthAlertElement, ev: BthAlertCustomEvent<HTMLBthAlertElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
194
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
195
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
196
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
197
|
+
}
|
|
198
|
+
var HTMLBthAlertElement: {
|
|
199
|
+
prototype: HTMLBthAlertElement;
|
|
200
|
+
new (): HTMLBthAlertElement;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Descrição de um `bth-alert`.
|
|
204
|
+
* @usage-when Dentro de um `bth-alert`, para detalhar a mensagem ou orientar o próximo passo.
|
|
205
|
+
* @usage-avoid Fora de um `bth-alert`; para outros textos, use um parágrafo comum.
|
|
206
|
+
* @category feedback
|
|
207
|
+
* @related bth-alert, bth-alert-title
|
|
208
|
+
* @example ```html
|
|
209
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
210
|
+
* ```
|
|
211
|
+
* @status beta
|
|
212
|
+
*/
|
|
213
|
+
interface HTMLBthAlertDescriptionElement extends Components.BthAlertDescription, HTMLStencilElement {
|
|
214
|
+
}
|
|
215
|
+
var HTMLBthAlertDescriptionElement: {
|
|
216
|
+
prototype: HTMLBthAlertDescriptionElement;
|
|
217
|
+
new (): HTMLBthAlertDescriptionElement;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Título de um `bth-alert`.
|
|
221
|
+
* @usage-when Dentro de um `bth-alert`, para resumir a mensagem em poucas palavras.
|
|
222
|
+
* @usage-avoid Fora de um `bth-alert`; para outros títulos, use um elemento de título comum.
|
|
223
|
+
* @category feedback
|
|
224
|
+
* @related bth-alert, bth-alert-description
|
|
225
|
+
* @example ```html
|
|
226
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
227
|
+
* ```
|
|
228
|
+
* @status beta
|
|
229
|
+
*/
|
|
230
|
+
interface HTMLBthAlertTitleElement extends Components.BthAlertTitle, HTMLStencilElement {
|
|
231
|
+
}
|
|
232
|
+
var HTMLBthAlertTitleElement: {
|
|
233
|
+
prototype: HTMLBthAlertTitleElement;
|
|
234
|
+
new (): HTMLBthAlertTitleElement;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Etiqueta curta para destacar um status, uma categoria ou uma contagem.
|
|
238
|
+
* @usage-when Para indicar o status de um item, como "Ativo", "Pendente" ou "Novo".
|
|
239
|
+
* @usage-when Para rotular ou categorizar um conteúdo, inclusive ao lado de um título.
|
|
240
|
+
* @usage-avoid Para ações clicáveis; use um `bth-button`.
|
|
241
|
+
* @usage-avoid Para mensagens longas ou que exigem atenção imediata; use um `bth-alert`.
|
|
242
|
+
* @category dados
|
|
243
|
+
* @related bth-button, bth-alert, bth-icon
|
|
244
|
+
* @example ```html
|
|
245
|
+
* <bth-badge variant="solid" color="primary">solid</bth-badge>
|
|
246
|
+
* <bth-badge variant="subtle" color="primary">subtle</bth-badge>
|
|
247
|
+
* <bth-badge variant="outline" color="primary">outline</bth-badge>
|
|
248
|
+
* ```
|
|
249
|
+
* @status beta
|
|
250
|
+
*/
|
|
251
|
+
interface HTMLBthBadgeElement extends Components.BthBadge, HTMLStencilElement {
|
|
252
|
+
}
|
|
253
|
+
var HTMLBthBadgeElement: {
|
|
254
|
+
prototype: HTMLBthBadgeElement;
|
|
255
|
+
new (): HTMLBthBadgeElement;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Botão para disparar ações e enviar formulários.
|
|
259
|
+
* @usage-when Para disparar uma ação na página atual, como salvar, confirmar ou abrir um diálogo.
|
|
260
|
+
* @usage-when Para enviar ou limpar um formulário, com `type="submit"` ou `type="reset"`.
|
|
261
|
+
* @usage-avoid Para navegar entre páginas; use um link.
|
|
262
|
+
* @usage-avoid Com mais de um botão de destaque na mesma área; reserve a cor `primary` para a ação principal.
|
|
263
|
+
* @category formulário
|
|
264
|
+
* @related bth-icon, bth-alert
|
|
265
|
+
* @example ```html
|
|
266
|
+
* <bth-button color="primary">Salvar</bth-button>
|
|
267
|
+
* <bth-button variant="outline" color="danger" size="sm">Excluir</bth-button>
|
|
268
|
+
* ```
|
|
269
|
+
* @status beta
|
|
270
|
+
*/
|
|
271
|
+
interface HTMLBthButtonElement extends Components.BthButton, HTMLStencilElement {
|
|
272
|
+
}
|
|
273
|
+
var HTMLBthButtonElement: {
|
|
274
|
+
prototype: HTMLBthButtonElement;
|
|
275
|
+
new (): HTMLBthButtonElement;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Ícone da fonte Material Symbols Outlined.
|
|
279
|
+
* @usage-when Para reforçar visualmente o significado de um texto, como o título de um alerta ou o rótulo de um botão.
|
|
280
|
+
* @usage-when Para preencher o slot `icon` de outros componentes.
|
|
281
|
+
* @usage-avoid Como único conteúdo de um controle interativo sem um rótulo acessível.
|
|
282
|
+
* @usage-avoid Para ilustrações ou imagens decorativas grandes; use uma imagem.
|
|
283
|
+
* @category mídia
|
|
284
|
+
* @related bth-alert, bth-button
|
|
285
|
+
* @example ```html
|
|
286
|
+
* <bth-icon name="info"></bth-icon>
|
|
287
|
+
* ```
|
|
288
|
+
* @status beta
|
|
289
|
+
*/
|
|
290
|
+
interface HTMLBthIconElement extends Components.BthIcon, HTMLStencilElement {
|
|
291
|
+
}
|
|
292
|
+
var HTMLBthIconElement: {
|
|
293
|
+
prototype: HTMLBthIconElement;
|
|
294
|
+
new (): HTMLBthIconElement;
|
|
295
|
+
};
|
|
296
|
+
interface HTMLElementTagNameMap {
|
|
297
|
+
"bth-alert": HTMLBthAlertElement;
|
|
298
|
+
"bth-alert-description": HTMLBthAlertDescriptionElement;
|
|
299
|
+
"bth-alert-title": HTMLBthAlertTitleElement;
|
|
300
|
+
"bth-badge": HTMLBthBadgeElement;
|
|
301
|
+
"bth-button": HTMLBthButtonElement;
|
|
302
|
+
"bth-icon": HTMLBthIconElement;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
declare namespace LocalJSX {
|
|
306
|
+
/**
|
|
307
|
+
* Alerta para destacar uma mensagem importante dentro do conteúdo da página.
|
|
308
|
+
* @usage-when Para comunicar o resultado de uma ação, como sucesso ou erro ao salvar.
|
|
309
|
+
* @usage-when Para avisar sobre um estado ou uma condição que afeta o que a pessoa está fazendo.
|
|
310
|
+
* @usage-avoid Para mensagens temporárias que somem sozinhas; use uma notificação do tipo toast.
|
|
311
|
+
* @usage-avoid Para validação de um campo específico; mostre a mensagem junto ao campo.
|
|
312
|
+
* @category feedback
|
|
313
|
+
* @related bth-alert-title, bth-alert-description, bth-icon
|
|
314
|
+
* @example ```html
|
|
315
|
+
* <bth-alert variant="info" dismissible>
|
|
316
|
+
* <bth-icon slot="icon" name="info"></bth-icon>
|
|
317
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
318
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
319
|
+
* </bth-alert>
|
|
320
|
+
* ```
|
|
321
|
+
* @status beta
|
|
322
|
+
*/
|
|
323
|
+
interface BthAlert {
|
|
324
|
+
/**
|
|
325
|
+
* Exibe um botão que permite fechar o alerta.
|
|
326
|
+
* @default false
|
|
327
|
+
*/
|
|
328
|
+
"dismissible"?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Emitido quando o alerta é fechado pelo botão de fechar.
|
|
331
|
+
*/
|
|
332
|
+
"onBthDismiss"?: (event: BthAlertCustomEvent<void>) => void;
|
|
333
|
+
/**
|
|
334
|
+
* Variante de cor, de acordo com o tipo da mensagem.
|
|
335
|
+
* @default 'default'
|
|
336
|
+
*/
|
|
337
|
+
"variant"?: AlertVariant;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Descrição de um `bth-alert`.
|
|
341
|
+
* @usage-when Dentro de um `bth-alert`, para detalhar a mensagem ou orientar o próximo passo.
|
|
342
|
+
* @usage-avoid Fora de um `bth-alert`; para outros textos, use um parágrafo comum.
|
|
343
|
+
* @category feedback
|
|
344
|
+
* @related bth-alert, bth-alert-title
|
|
345
|
+
* @example ```html
|
|
346
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
347
|
+
* ```
|
|
348
|
+
* @status beta
|
|
349
|
+
*/
|
|
350
|
+
interface BthAlertDescription {
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Título de um `bth-alert`.
|
|
354
|
+
* @usage-when Dentro de um `bth-alert`, para resumir a mensagem em poucas palavras.
|
|
355
|
+
* @usage-avoid Fora de um `bth-alert`; para outros títulos, use um elemento de título comum.
|
|
356
|
+
* @category feedback
|
|
357
|
+
* @related bth-alert, bth-alert-description
|
|
358
|
+
* @example ```html
|
|
359
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
360
|
+
* ```
|
|
361
|
+
* @status beta
|
|
362
|
+
*/
|
|
363
|
+
interface BthAlertTitle {
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Etiqueta curta para destacar um status, uma categoria ou uma contagem.
|
|
367
|
+
* @usage-when Para indicar o status de um item, como "Ativo", "Pendente" ou "Novo".
|
|
368
|
+
* @usage-when Para rotular ou categorizar um conteúdo, inclusive ao lado de um título.
|
|
369
|
+
* @usage-avoid Para ações clicáveis; use um `bth-button`.
|
|
370
|
+
* @usage-avoid Para mensagens longas ou que exigem atenção imediata; use um `bth-alert`.
|
|
371
|
+
* @category dados
|
|
372
|
+
* @related bth-button, bth-alert, bth-icon
|
|
373
|
+
* @example ```html
|
|
374
|
+
* <bth-badge variant="solid" color="primary">solid</bth-badge>
|
|
375
|
+
* <bth-badge variant="subtle" color="primary">subtle</bth-badge>
|
|
376
|
+
* <bth-badge variant="outline" color="primary">outline</bth-badge>
|
|
377
|
+
* ```
|
|
378
|
+
* @status beta
|
|
379
|
+
*/
|
|
380
|
+
interface BthBadge {
|
|
381
|
+
/**
|
|
382
|
+
* Cor do badge.
|
|
383
|
+
* @default 'default'
|
|
384
|
+
*/
|
|
385
|
+
"color"?: BadgeColor;
|
|
386
|
+
/**
|
|
387
|
+
* Tamanho do badge, proporcional ao tamanho da fonte do contexto onde ele está.
|
|
388
|
+
* @default 'md'
|
|
389
|
+
*/
|
|
390
|
+
"size"?: BadgeSize;
|
|
391
|
+
/**
|
|
392
|
+
* Estilo visual: `solid` é preenchido, `subtle` tem um fundo suave e `outline` tem só a borda.
|
|
393
|
+
* @default 'solid'
|
|
394
|
+
*/
|
|
395
|
+
"variant"?: BadgeVariant;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Botão para disparar ações e enviar formulários.
|
|
399
|
+
* @usage-when Para disparar uma ação na página atual, como salvar, confirmar ou abrir um diálogo.
|
|
400
|
+
* @usage-when Para enviar ou limpar um formulário, com `type="submit"` ou `type="reset"`.
|
|
401
|
+
* @usage-avoid Para navegar entre páginas; use um link.
|
|
402
|
+
* @usage-avoid Com mais de um botão de destaque na mesma área; reserve a cor `primary` para a ação principal.
|
|
403
|
+
* @category formulário
|
|
404
|
+
* @related bth-icon, bth-alert
|
|
405
|
+
* @example ```html
|
|
406
|
+
* <bth-button color="primary">Salvar</bth-button>
|
|
407
|
+
* <bth-button variant="outline" color="danger" size="sm">Excluir</bth-button>
|
|
408
|
+
* ```
|
|
409
|
+
* @status beta
|
|
410
|
+
*/
|
|
411
|
+
interface BthButton {
|
|
412
|
+
/**
|
|
413
|
+
* Cor do botão.
|
|
414
|
+
* @default 'default'
|
|
415
|
+
*/
|
|
416
|
+
"color"?: ButtonColor;
|
|
417
|
+
/**
|
|
418
|
+
* Desabilita o botão e impede a interação.
|
|
419
|
+
* @default false
|
|
420
|
+
*/
|
|
421
|
+
"disabled"?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Tamanho do botão.
|
|
424
|
+
* @default 'md'
|
|
425
|
+
*/
|
|
426
|
+
"size"?: ButtonSize;
|
|
427
|
+
/**
|
|
428
|
+
* Tipo do botão nativo. `submit` e `reset` atuam sobre o formulário pai.
|
|
429
|
+
* @default 'button'
|
|
430
|
+
*/
|
|
431
|
+
"type"?: 'submit' | 'reset' | 'button';
|
|
432
|
+
/**
|
|
433
|
+
* Estilo visual: `default` é preenchido, `outline` tem só a borda e `ghost` tem só o texto.
|
|
434
|
+
* @default 'default'
|
|
435
|
+
*/
|
|
436
|
+
"variant"?: ButtonVariant;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Ícone da fonte Material Symbols Outlined.
|
|
440
|
+
* @usage-when Para reforçar visualmente o significado de um texto, como o título de um alerta ou o rótulo de um botão.
|
|
441
|
+
* @usage-when Para preencher o slot `icon` de outros componentes.
|
|
442
|
+
* @usage-avoid Como único conteúdo de um controle interativo sem um rótulo acessível.
|
|
443
|
+
* @usage-avoid Para ilustrações ou imagens decorativas grandes; use uma imagem.
|
|
444
|
+
* @category mídia
|
|
445
|
+
* @related bth-alert, bth-button
|
|
446
|
+
* @example ```html
|
|
447
|
+
* <bth-icon name="info"></bth-icon>
|
|
448
|
+
* ```
|
|
449
|
+
* @status beta
|
|
450
|
+
*/
|
|
451
|
+
interface BthIcon {
|
|
452
|
+
/**
|
|
453
|
+
* Nome do ícone na fonte Material Symbols Outlined, como `info` ou `check_circle`.
|
|
454
|
+
*/
|
|
455
|
+
"name"?: string;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
interface BthAlertAttributes {
|
|
459
|
+
"variant": AlertVariant;
|
|
460
|
+
"dismissible": boolean;
|
|
461
|
+
}
|
|
462
|
+
interface BthBadgeAttributes {
|
|
463
|
+
"variant": BadgeVariant;
|
|
464
|
+
"color": BadgeColor;
|
|
465
|
+
"size": BadgeSize;
|
|
466
|
+
}
|
|
467
|
+
interface BthButtonAttributes {
|
|
468
|
+
"variant": ButtonVariant;
|
|
469
|
+
"disabled": boolean;
|
|
470
|
+
"size": ButtonSize;
|
|
471
|
+
"color": ButtonColor;
|
|
472
|
+
"type": 'submit' | 'reset' | 'button';
|
|
473
|
+
}
|
|
474
|
+
interface BthIconAttributes {
|
|
475
|
+
"name": string;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
interface IntrinsicElements {
|
|
479
|
+
"bth-alert": Omit<BthAlert, keyof BthAlertAttributes> & { [K in keyof BthAlert & keyof BthAlertAttributes]?: BthAlert[K] } & { [K in keyof BthAlert & keyof BthAlertAttributes as `attr:${K}`]?: BthAlertAttributes[K] } & { [K in keyof BthAlert & keyof BthAlertAttributes as `prop:${K}`]?: BthAlert[K] };
|
|
480
|
+
"bth-alert-description": BthAlertDescription;
|
|
481
|
+
"bth-alert-title": BthAlertTitle;
|
|
482
|
+
"bth-badge": Omit<BthBadge, keyof BthBadgeAttributes> & { [K in keyof BthBadge & keyof BthBadgeAttributes]?: BthBadge[K] } & { [K in keyof BthBadge & keyof BthBadgeAttributes as `attr:${K}`]?: BthBadgeAttributes[K] } & { [K in keyof BthBadge & keyof BthBadgeAttributes as `prop:${K}`]?: BthBadge[K] };
|
|
483
|
+
"bth-button": Omit<BthButton, keyof BthButtonAttributes> & { [K in keyof BthButton & keyof BthButtonAttributes]?: BthButton[K] } & { [K in keyof BthButton & keyof BthButtonAttributes as `attr:${K}`]?: BthButtonAttributes[K] } & { [K in keyof BthButton & keyof BthButtonAttributes as `prop:${K}`]?: BthButton[K] };
|
|
484
|
+
"bth-icon": Omit<BthIcon, keyof BthIconAttributes> & { [K in keyof BthIcon & keyof BthIconAttributes]?: BthIcon[K] } & { [K in keyof BthIcon & keyof BthIconAttributes as `attr:${K}`]?: BthIconAttributes[K] } & { [K in keyof BthIcon & keyof BthIconAttributes as `prop:${K}`]?: BthIcon[K] };
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
export { LocalJSX as JSX };
|
|
488
|
+
declare module "@stencil/core" {
|
|
489
|
+
export namespace JSX {
|
|
490
|
+
interface IntrinsicElements {
|
|
491
|
+
/**
|
|
492
|
+
* Alerta para destacar uma mensagem importante dentro do conteúdo da página.
|
|
493
|
+
* @usage-when Para comunicar o resultado de uma ação, como sucesso ou erro ao salvar.
|
|
494
|
+
* @usage-when Para avisar sobre um estado ou uma condição que afeta o que a pessoa está fazendo.
|
|
495
|
+
* @usage-avoid Para mensagens temporárias que somem sozinhas; use uma notificação do tipo toast.
|
|
496
|
+
* @usage-avoid Para validação de um campo específico; mostre a mensagem junto ao campo.
|
|
497
|
+
* @category feedback
|
|
498
|
+
* @related bth-alert-title, bth-alert-description, bth-icon
|
|
499
|
+
* @example ```html
|
|
500
|
+
* <bth-alert variant="info" dismissible>
|
|
501
|
+
* <bth-icon slot="icon" name="info"></bth-icon>
|
|
502
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
503
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
504
|
+
* </bth-alert>
|
|
505
|
+
* ```
|
|
506
|
+
* @status beta
|
|
507
|
+
*/
|
|
508
|
+
"bth-alert": LocalJSX.IntrinsicElements["bth-alert"] & JSXBase.HTMLAttributes<HTMLBthAlertElement>;
|
|
509
|
+
/**
|
|
510
|
+
* Descrição de um `bth-alert`.
|
|
511
|
+
* @usage-when Dentro de um `bth-alert`, para detalhar a mensagem ou orientar o próximo passo.
|
|
512
|
+
* @usage-avoid Fora de um `bth-alert`; para outros textos, use um parágrafo comum.
|
|
513
|
+
* @category feedback
|
|
514
|
+
* @related bth-alert, bth-alert-title
|
|
515
|
+
* @example ```html
|
|
516
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
517
|
+
* ```
|
|
518
|
+
* @status beta
|
|
519
|
+
*/
|
|
520
|
+
"bth-alert-description": LocalJSX.IntrinsicElements["bth-alert-description"] & JSXBase.HTMLAttributes<HTMLBthAlertDescriptionElement>;
|
|
521
|
+
/**
|
|
522
|
+
* Título de um `bth-alert`.
|
|
523
|
+
* @usage-when Dentro de um `bth-alert`, para resumir a mensagem em poucas palavras.
|
|
524
|
+
* @usage-avoid Fora de um `bth-alert`; para outros títulos, use um elemento de título comum.
|
|
525
|
+
* @category feedback
|
|
526
|
+
* @related bth-alert, bth-alert-description
|
|
527
|
+
* @example ```html
|
|
528
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
529
|
+
* ```
|
|
530
|
+
* @status beta
|
|
531
|
+
*/
|
|
532
|
+
"bth-alert-title": LocalJSX.IntrinsicElements["bth-alert-title"] & JSXBase.HTMLAttributes<HTMLBthAlertTitleElement>;
|
|
533
|
+
/**
|
|
534
|
+
* Etiqueta curta para destacar um status, uma categoria ou uma contagem.
|
|
535
|
+
* @usage-when Para indicar o status de um item, como "Ativo", "Pendente" ou "Novo".
|
|
536
|
+
* @usage-when Para rotular ou categorizar um conteúdo, inclusive ao lado de um título.
|
|
537
|
+
* @usage-avoid Para ações clicáveis; use um `bth-button`.
|
|
538
|
+
* @usage-avoid Para mensagens longas ou que exigem atenção imediata; use um `bth-alert`.
|
|
539
|
+
* @category dados
|
|
540
|
+
* @related bth-button, bth-alert, bth-icon
|
|
541
|
+
* @example ```html
|
|
542
|
+
* <bth-badge variant="solid" color="primary">solid</bth-badge>
|
|
543
|
+
* <bth-badge variant="subtle" color="primary">subtle</bth-badge>
|
|
544
|
+
* <bth-badge variant="outline" color="primary">outline</bth-badge>
|
|
545
|
+
* ```
|
|
546
|
+
* @status beta
|
|
547
|
+
*/
|
|
548
|
+
"bth-badge": LocalJSX.IntrinsicElements["bth-badge"] & JSXBase.HTMLAttributes<HTMLBthBadgeElement>;
|
|
549
|
+
/**
|
|
550
|
+
* Botão para disparar ações e enviar formulários.
|
|
551
|
+
* @usage-when Para disparar uma ação na página atual, como salvar, confirmar ou abrir um diálogo.
|
|
552
|
+
* @usage-when Para enviar ou limpar um formulário, com `type="submit"` ou `type="reset"`.
|
|
553
|
+
* @usage-avoid Para navegar entre páginas; use um link.
|
|
554
|
+
* @usage-avoid Com mais de um botão de destaque na mesma área; reserve a cor `primary` para a ação principal.
|
|
555
|
+
* @category formulário
|
|
556
|
+
* @related bth-icon, bth-alert
|
|
557
|
+
* @example ```html
|
|
558
|
+
* <bth-button color="primary">Salvar</bth-button>
|
|
559
|
+
* <bth-button variant="outline" color="danger" size="sm">Excluir</bth-button>
|
|
560
|
+
* ```
|
|
561
|
+
* @status beta
|
|
562
|
+
*/
|
|
563
|
+
"bth-button": LocalJSX.IntrinsicElements["bth-button"] & JSXBase.HTMLAttributes<HTMLBthButtonElement>;
|
|
564
|
+
/**
|
|
565
|
+
* Ícone da fonte Material Symbols Outlined.
|
|
566
|
+
* @usage-when Para reforçar visualmente o significado de um texto, como o título de um alerta ou o rótulo de um botão.
|
|
567
|
+
* @usage-when Para preencher o slot `icon` de outros componentes.
|
|
568
|
+
* @usage-avoid Como único conteúdo de um controle interativo sem um rótulo acessível.
|
|
569
|
+
* @usage-avoid Para ilustrações ou imagens decorativas grandes; use uma imagem.
|
|
570
|
+
* @category mídia
|
|
571
|
+
* @related bth-alert, bth-button
|
|
572
|
+
* @example ```html
|
|
573
|
+
* <bth-icon name="info"></bth-icon>
|
|
574
|
+
* ```
|
|
575
|
+
* @status beta
|
|
576
|
+
*/
|
|
577
|
+
"bth-icon": LocalJSX.IntrinsicElements["bth-icon"] & JSXBase.HTMLAttributes<HTMLBthIconElement>;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview entry point for your component library
|
|
3
|
+
*
|
|
4
|
+
* This is the entry point for your component library. Use this file to export utilities,
|
|
5
|
+
* constants or data structure that accompany your components.
|
|
6
|
+
*
|
|
7
|
+
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
|
8
|
+
* to consume components of this package as outlined in the `README.md`.
|
|
9
|
+
*/
|
|
10
|
+
export type * from './components.d.ts';
|