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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-svnzPQiH.js';
|
|
2
|
+
export { s as setNonce } from './index-svnzPQiH.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["bth-alert_6",[[769,"bth-alert",{"variant":[513],"dismissible":[4],"hasIcon":[32],"dismissed":[32]}],[257,"bth-alert-description"],[257,"bth-alert-title"],[769,"bth-badge",{"variant":[513],"color":[513],"size":[513]}],[769,"bth-button",{"variant":[513],"disabled":[516],"size":[513],"color":[513],"type":[1]}],[512,"bth-icon",{"name":[1]}]]]], options);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { defineCustomElements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Descrição de um `bth-alert`.
|
|
3
|
+
*
|
|
4
|
+
* @usage-when Dentro de um `bth-alert`, para detalhar a mensagem ou orientar o próximo passo.
|
|
5
|
+
* @usage-avoid Fora de um `bth-alert`; para outros textos, use um parágrafo comum.
|
|
6
|
+
* @category feedback
|
|
7
|
+
* @related bth-alert, bth-alert-title
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
11
|
+
* ```
|
|
12
|
+
* @status beta
|
|
13
|
+
*
|
|
14
|
+
* @slot - Texto da descrição.
|
|
15
|
+
* @part description - Elemento da descrição.
|
|
16
|
+
*/
|
|
17
|
+
export declare class BthAlertDescription {
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Título de um `bth-alert`.
|
|
3
|
+
*
|
|
4
|
+
* @usage-when Dentro de um `bth-alert`, para resumir a mensagem em poucas palavras.
|
|
5
|
+
* @usage-avoid Fora de um `bth-alert`; para outros títulos, use um elemento de título comum.
|
|
6
|
+
* @category feedback
|
|
7
|
+
* @related bth-alert, bth-alert-description
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
11
|
+
* ```
|
|
12
|
+
* @status beta
|
|
13
|
+
*
|
|
14
|
+
* @slot - Texto do título.
|
|
15
|
+
* @part title - Elemento do título.
|
|
16
|
+
*/
|
|
17
|
+
export declare class BthAlertTitle {
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { AlertVariant } from './bth-alert.types';
|
|
3
|
+
/**
|
|
4
|
+
* Alerta para destacar uma mensagem importante dentro do conteúdo da página.
|
|
5
|
+
*
|
|
6
|
+
* @usage-when Para comunicar o resultado de uma ação, como sucesso ou erro ao salvar.
|
|
7
|
+
* @usage-when Para avisar sobre um estado ou uma condição que afeta o que a pessoa está fazendo.
|
|
8
|
+
* @usage-avoid Para mensagens temporárias que somem sozinhas; use uma notificação do tipo toast.
|
|
9
|
+
* @usage-avoid Para validação de um campo específico; mostre a mensagem junto ao campo.
|
|
10
|
+
* @category feedback
|
|
11
|
+
* @related bth-alert-title, bth-alert-description, bth-icon
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <bth-alert variant="info" dismissible>
|
|
15
|
+
* <bth-icon slot="icon" name="info"></bth-icon>
|
|
16
|
+
* <bth-alert-title>Informação</bth-alert-title>
|
|
17
|
+
* <bth-alert-description>Uma nova versão está disponível.</bth-alert-description>
|
|
18
|
+
* </bth-alert>
|
|
19
|
+
* ```
|
|
20
|
+
* @status beta
|
|
21
|
+
*
|
|
22
|
+
* @slot - Conteúdo do alerta, normalmente `bth-alert-title` e `bth-alert-description`.
|
|
23
|
+
* @slot icon - Ícone exibido à esquerda do conteúdo.
|
|
24
|
+
* @part alert - Contêiner do alerta.
|
|
25
|
+
* @part dismiss - Botão de fechar, presente quando `dismissible` está ativo.
|
|
26
|
+
*/
|
|
27
|
+
export declare class BthAlert {
|
|
28
|
+
el: HTMLElement;
|
|
29
|
+
/** Variante de cor, de acordo com o tipo da mensagem. */
|
|
30
|
+
variant: AlertVariant;
|
|
31
|
+
/** Exibe um botão que permite fechar o alerta. */
|
|
32
|
+
dismissible: boolean;
|
|
33
|
+
hasIcon: boolean;
|
|
34
|
+
dismissed: boolean;
|
|
35
|
+
/** Emitido quando o alerta é fechado pelo botão de fechar. */
|
|
36
|
+
bthDismiss: EventEmitter<void>;
|
|
37
|
+
componentWillLoad(): void;
|
|
38
|
+
private updateHasIcon;
|
|
39
|
+
private handleDismiss;
|
|
40
|
+
render(): any;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AlertVariant = 'default' | 'danger' | 'success' | 'warning' | 'info';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BadgeColor, BadgeSize, BadgeVariant } from './bth-badge.types';
|
|
2
|
+
/**
|
|
3
|
+
* Etiqueta curta para destacar um status, uma categoria ou uma contagem.
|
|
4
|
+
*
|
|
5
|
+
* @usage-when Para indicar o status de um item, como "Ativo", "Pendente" ou "Novo".
|
|
6
|
+
* @usage-when Para rotular ou categorizar um conteúdo, inclusive ao lado de um título.
|
|
7
|
+
* @usage-avoid Para ações clicáveis; use um `bth-button`.
|
|
8
|
+
* @usage-avoid Para mensagens longas ou que exigem atenção imediata; use um `bth-alert`.
|
|
9
|
+
* @category dados
|
|
10
|
+
* @related bth-button, bth-alert, bth-icon
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <bth-badge variant="solid" color="primary">solid</bth-badge>
|
|
14
|
+
* <bth-badge variant="subtle" color="primary">subtle</bth-badge>
|
|
15
|
+
* <bth-badge variant="outline" color="primary">outline</bth-badge>
|
|
16
|
+
* ```
|
|
17
|
+
* @status beta
|
|
18
|
+
*
|
|
19
|
+
* @slot - Conteúdo do badge.
|
|
20
|
+
* @part badge - Elemento do badge.
|
|
21
|
+
*/
|
|
22
|
+
export declare class BthBadge {
|
|
23
|
+
/** Estilo visual: `solid` é preenchido, `subtle` tem um fundo suave e `outline` tem só a borda. */
|
|
24
|
+
variant: BadgeVariant;
|
|
25
|
+
/** Cor do badge. */
|
|
26
|
+
color: BadgeColor;
|
|
27
|
+
/** Tamanho do badge, proporcional ao tamanho da fonte do contexto onde ele está. */
|
|
28
|
+
size: BadgeSize;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ButtonVariant, ButtonSize, ButtonColor } from './bth-button.types';
|
|
2
|
+
/**
|
|
3
|
+
* Botão para disparar ações e enviar formulários.
|
|
4
|
+
*
|
|
5
|
+
* @usage-when Para disparar uma ação na página atual, como salvar, confirmar ou abrir um diálogo.
|
|
6
|
+
* @usage-when Para enviar ou limpar um formulário, com `type="submit"` ou `type="reset"`.
|
|
7
|
+
* @usage-avoid Para navegar entre páginas; use um link.
|
|
8
|
+
* @usage-avoid Com mais de um botão de destaque na mesma área; reserve a cor `primary` para a ação principal.
|
|
9
|
+
* @category formulário
|
|
10
|
+
* @related bth-icon, bth-alert
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <bth-button color="primary">Salvar</bth-button>
|
|
14
|
+
* <bth-button variant="outline" color="danger" size="sm">Excluir</bth-button>
|
|
15
|
+
* ```
|
|
16
|
+
* @status beta
|
|
17
|
+
*
|
|
18
|
+
* @slot - Conteúdo do botão.
|
|
19
|
+
*/
|
|
20
|
+
export declare class BthButton {
|
|
21
|
+
el: HTMLElement;
|
|
22
|
+
/** Estilo visual: `default` é preenchido, `outline` tem só a borda e `ghost` tem só o texto. */
|
|
23
|
+
variant: ButtonVariant;
|
|
24
|
+
/** Desabilita o botão e impede a interação. */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** Tamanho do botão. */
|
|
27
|
+
size: ButtonSize;
|
|
28
|
+
/** Cor do botão. */
|
|
29
|
+
color: ButtonColor;
|
|
30
|
+
/** Tipo do botão nativo. `submit` e `reset` atuam sobre o formulário pai. */
|
|
31
|
+
type: 'submit' | 'reset' | 'button';
|
|
32
|
+
private handleClick;
|
|
33
|
+
render(): any;
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ícone da fonte Material Symbols Outlined.
|
|
3
|
+
*
|
|
4
|
+
* @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.
|
|
5
|
+
* @usage-when Para preencher o slot `icon` de outros componentes.
|
|
6
|
+
* @usage-avoid Como único conteúdo de um controle interativo sem um rótulo acessível.
|
|
7
|
+
* @usage-avoid Para ilustrações ou imagens decorativas grandes; use uma imagem.
|
|
8
|
+
* @category mídia
|
|
9
|
+
* @related bth-alert, bth-button
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <bth-icon name="info"></bth-icon>
|
|
13
|
+
* ```
|
|
14
|
+
* @status beta
|
|
15
|
+
*/
|
|
16
|
+
export declare class BthIcon {
|
|
17
|
+
/** Nome do ícone na fonte Material Symbols Outlined, como `info` ou `check_circle`. */
|
|
18
|
+
name?: string;
|
|
19
|
+
render(): any;
|
|
20
|
+
}
|