bth-ui 0.0.0-stage → 0.0.2

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 (74) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bth-ui/bth-ui.esm.js +1 -0
  3. package/dist/bth-ui/index.esm.js +0 -0
  4. package/dist/bth-ui/p-DQuL1Twl.js +1 -0
  5. package/dist/bth-ui/p-e916e3c7.entry.js +1 -0
  6. package/dist/bth-ui/p-svnzPQiH.js +3 -0
  7. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  8. package/dist/cjs/bth-alert_6.cjs.entry.js +133 -0
  9. package/dist/cjs/bth-ui.cjs.js +25 -0
  10. package/dist/cjs/index-UJE5BQI1.js +1550 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/loader.cjs.js +13 -0
  13. package/dist/collection/collection-manifest.json +18 -0
  14. package/dist/collection/components/bth-alert/bth-alert-description.css +16 -0
  15. package/dist/collection/components/bth-alert/bth-alert-description.js +34 -0
  16. package/dist/collection/components/bth-alert/bth-alert-title.css +13 -0
  17. package/dist/collection/components/bth-alert/bth-alert-title.js +34 -0
  18. package/dist/collection/components/bth-alert/bth-alert.css +109 -0
  19. package/dist/collection/components/bth-alert/bth-alert.js +138 -0
  20. package/dist/collection/components/bth-alert/bth-alert.types.js +1 -0
  21. package/dist/collection/components/bth-badge/bth-badge.css +109 -0
  22. package/dist/collection/components/bth-badge/bth-badge.js +129 -0
  23. package/dist/collection/components/bth-badge/bth-badge.types.js +1 -0
  24. package/dist/collection/components/bth-button/bth-button.css +152 -0
  25. package/dist/collection/components/bth-button/bth-button.js +183 -0
  26. package/dist/collection/components/bth-button/bth-button.types.js +1 -0
  27. package/dist/collection/components/bth-icon/bth-icon.css +9 -0
  28. package/dist/collection/components/bth-icon/bth-icon.js +57 -0
  29. package/dist/collection/index.js +1 -0
  30. package/dist/components/bth-alert-description.d.ts +11 -0
  31. package/dist/components/bth-alert-description.js +1 -0
  32. package/dist/components/bth-alert-title.d.ts +11 -0
  33. package/dist/components/bth-alert-title.js +1 -0
  34. package/dist/components/bth-alert.d.ts +11 -0
  35. package/dist/components/bth-alert.js +1 -0
  36. package/dist/components/bth-badge.d.ts +11 -0
  37. package/dist/components/bth-badge.js +1 -0
  38. package/dist/components/bth-button.d.ts +11 -0
  39. package/dist/components/bth-button.js +1 -0
  40. package/dist/components/bth-icon.d.ts +11 -0
  41. package/dist/components/bth-icon.js +1 -0
  42. package/dist/components/index.d.ts +35 -0
  43. package/dist/components/index.js +1 -0
  44. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  45. package/dist/esm/bth-alert_6.entry.js +126 -0
  46. package/dist/esm/bth-ui.js +21 -0
  47. package/dist/esm/index-svnzPQiH.js +1541 -0
  48. package/dist/esm/index.js +1 -0
  49. package/dist/esm/loader.js +11 -0
  50. package/dist/index.cjs.js +1 -0
  51. package/dist/index.js +1 -0
  52. package/dist/types/components/bth-alert/bth-alert-description.d.ts +19 -0
  53. package/dist/types/components/bth-alert/bth-alert-title.d.ts +19 -0
  54. package/dist/types/components/bth-alert/bth-alert.d.ts +41 -0
  55. package/dist/types/components/bth-alert/bth-alert.types.d.ts +1 -0
  56. package/dist/types/components/bth-badge/bth-badge.d.ts +30 -0
  57. package/dist/types/components/bth-badge/bth-badge.types.d.ts +3 -0
  58. package/dist/types/components/bth-button/bth-button.d.ts +34 -0
  59. package/dist/types/components/bth-button/bth-button.types.d.ts +3 -0
  60. package/dist/types/components/bth-icon/bth-icon.d.ts +20 -0
  61. package/dist/types/components.d.ts +580 -0
  62. package/dist/types/index.d.ts +10 -0
  63. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  64. package/docs/docs.d.ts +480 -0
  65. package/docs/docs.json +951 -0
  66. package/docs/tokens.json +340 -0
  67. package/loader/cdn.js +1 -0
  68. package/loader/index.cjs.js +1 -0
  69. package/loader/index.d.ts +24 -0
  70. package/loader/index.es2017.js +1 -0
  71. package/loader/index.js +2 -0
  72. package/package.json +55 -4
  73. package/readme.md +31 -0
  74. 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,3 @@
1
+ export type BadgeVariant = 'solid' | 'subtle' | 'outline';
2
+ export type BadgeColor = 'primary' | 'success' | 'danger' | 'warning' | 'info' | 'accent' | 'default';
3
+ export type BadgeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -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,3 @@
1
+ export type ButtonVariant = 'outline' | 'ghost' | 'default';
2
+ export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ export type ButtonColor = 'primary' | 'success' | 'danger' | 'warning' | 'info' | 'default';
@@ -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
+ }