@thibezer/ui-components-kit 1.0.0 → 2.0.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 (99) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/LICENSE +21 -21
  3. package/README.md +739 -624
  4. package/dist/botao.cjs +1 -1
  5. package/dist/botao.js +1 -1
  6. package/dist/camadas.cjs +38 -38
  7. package/dist/camadas.js +494 -494
  8. package/dist/campo-texto.cjs +1 -1
  9. package/dist/campo-texto.js +1 -1
  10. package/dist/canvas.cjs +33 -33
  11. package/dist/canvas.js +100 -100
  12. package/dist/card.cjs +1 -1
  13. package/dist/card.js +1 -1
  14. package/dist/components/ui-botao/ui-botao.d.ts +15 -0
  15. package/dist/components/ui-campo-texto/ui-campo-texto.d.ts +5 -0
  16. package/dist/components/ui-modal/modal-pilha.d.ts +3 -0
  17. package/dist/components/ui-modal/ui-modal.d.ts +19 -4
  18. package/dist/components/ui-tabela/tabela-corpo.d.ts +2 -0
  19. package/dist/components/ui-tabela/tabela-renderizador.d.ts +1 -0
  20. package/dist/components/ui-tabela/tabela-selecao.d.ts +5 -0
  21. package/dist/components/ui-tabela/ui-tabela.d.ts +15 -0
  22. package/dist/components/ui-tooltip/ui-tooltip.d.ts +15 -0
  23. package/dist/core/form-submissao.d.ts +16 -0
  24. package/dist/core/parts.d.ts +6 -0
  25. package/dist/core/rotulo.d.ts +6 -0
  26. package/dist/core/ui-bus.d.ts +13 -2
  27. package/dist/core.cjs +1 -1
  28. package/dist/core.js +2 -2
  29. package/dist/custom-elements.json +28789 -0
  30. package/dist/data.cjs +1 -1
  31. package/dist/data.js +2 -2
  32. package/dist/feedback.cjs +1 -1
  33. package/dist/feedback.js +3 -3
  34. package/dist/form-submissao-C-SPRKgT.js +61 -0
  35. package/dist/form-submissao-DxKO5MHI.cjs +1 -0
  36. package/dist/forms.cjs +1 -1
  37. package/dist/forms.js +2 -2
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.d.ts +2 -2
  40. package/dist/index.js +13 -13
  41. package/dist/mapa.cjs +4 -4
  42. package/dist/mapa.js +1 -1
  43. package/dist/modal.cjs +1 -1
  44. package/dist/modal.js +1 -1
  45. package/dist/parts-CaoQiCfI.js +7 -0
  46. package/dist/parts-vQa2873h.cjs +1 -0
  47. package/dist/register.cjs +1 -1
  48. package/dist/register.js +12 -12
  49. package/dist/seletor-mapa-base.cjs +11 -11
  50. package/dist/seletor-mapa-base.js +37 -37
  51. package/dist/tabela.cjs +1 -1
  52. package/dist/tabela.js +1 -1
  53. package/dist/tipos-elementos.d.ts +1219 -0
  54. package/dist/tipos-react.d.ts +113 -0
  55. package/dist/tipos-vue.d.ts +1190 -0
  56. package/dist/tools.cjs +1 -1
  57. package/dist/tools.js +1 -1
  58. package/dist/ui-badge-BxT-sDmV.cjs +28 -0
  59. package/dist/ui-badge-C0eKBI8E.js +183 -0
  60. package/dist/ui-botao-OGJV6Vfk.js +165 -0
  61. package/dist/ui-botao-psS1juof.cjs +12 -0
  62. package/dist/ui-campo-texto-Cnn2UAkS.cjs +16 -0
  63. package/dist/{ui-campo-texto-B_JF6POq.js → ui-campo-texto-Uu2dJE_0.js} +81 -63
  64. package/dist/{ui-card-Bhm6k91e.cjs → ui-card-B86lJXTP.cjs} +7 -7
  65. package/dist/{ui-card-BJ8SmvVf.js → ui-card-C_o5_0cB.js} +14 -14
  66. package/dist/ui-kit.css +1 -1
  67. package/dist/ui-modal-CvGFGh1h.cjs +18 -0
  68. package/dist/ui-modal-DBOtSTbR.js +238 -0
  69. package/dist/{ui-paleta-ferramentas-Bpp4XBVg.js → ui-paleta-ferramentas-BIytXQLh.js} +1 -1
  70. package/dist/{ui-paleta-ferramentas-B6dJ0O6K.cjs → ui-paleta-ferramentas-DqLY51qa.cjs} +1 -1
  71. package/dist/ui-segmented-D6b6zxVs.cjs +19 -0
  72. package/dist/{ui-segmented-C8wuycjJ.js → ui-segmented-wUraId2e.js} +68 -67
  73. package/dist/ui-skeleton-DI4_9WOX.js +428 -0
  74. package/dist/ui-skeleton-elhKIh2B.cjs +33 -0
  75. package/dist/{ui-switch-CO9MoS8x.js → ui-switch-DWLgVVnT.js} +121 -119
  76. package/dist/ui-switch-yZIn3IW0.cjs +53 -0
  77. package/dist/ui-tabela-propriedades-BNcE6VLX.js +2180 -0
  78. package/dist/ui-tabela-propriedades-D3pyQvyy.cjs +145 -0
  79. package/dist/{ui-toast-CwUmiqyG.js → ui-toast-Bp_NlM5G.js} +51 -51
  80. package/dist/ui-toast-DGTZKne5.cjs +20 -0
  81. package/dist/zero-js-triggers-C_KrvFOQ.js +244 -0
  82. package/dist/zero-js-triggers-C_gtaojZ.cjs +1 -0
  83. package/package.json +169 -149
  84. package/dist/ui-badge-92yelKls.js +0 -183
  85. package/dist/ui-badge-B95jSECC.cjs +0 -28
  86. package/dist/ui-botao-BShEouvi.js +0 -124
  87. package/dist/ui-botao-DF1yuUUD.cjs +0 -12
  88. package/dist/ui-campo-texto-BCh5HyCM.cjs +0 -16
  89. package/dist/ui-modal-Bi4isGYh.cjs +0 -18
  90. package/dist/ui-modal-DV-pw2x1.js +0 -194
  91. package/dist/ui-segmented-NC5cBXLh.cjs +0 -19
  92. package/dist/ui-skeleton-B3xQyn0Z.js +0 -396
  93. package/dist/ui-skeleton-D42oQufF.cjs +0 -33
  94. package/dist/ui-switch-C6o4yZUF.cjs +0 -53
  95. package/dist/ui-tabela-propriedades-7yJ9g7ti.cjs +0 -145
  96. package/dist/ui-tabela-propriedades-D-XKNVwK.js +0 -2078
  97. package/dist/ui-toast-CQBqvUm3.cjs +0 -20
  98. package/dist/zero-js-triggers-DdESy0tk.js +0 -205
  99. package/dist/zero-js-triggers-QGD7FOTv.cjs +0 -1
@@ -1,12 +1,13 @@
1
1
  var _ = Object.defineProperty;
2
- var k = (n, i, t) => i in n ? _(n, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[i] = t;
3
- var a = (n, i, t) => k(n, typeof i != "symbol" ? i + "" : i, t);
2
+ var k = (n, s, t) => s in n ? _(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
3
+ var a = (n, s, t) => k(n, typeof s != "symbol" ? s + "" : s, t);
4
4
  import { L as d } from "./listener-bag-DQgv7OON.js";
5
+ import { a as y } from "./parts-CaoQiCfI.js";
5
6
  import { d as h } from "./ssr-safe-5cWfJP-s.js";
6
- import { F as u } from "./ui-campo-texto-B_JF6POq.js";
7
+ import { F as u, r as A } from "./ui-campo-texto-Uu2dJE_0.js";
7
8
  import { g as m, o as p, c as f } from "./form-validacao-BIOXxt-1.js";
8
- class y {
9
- constructor(i, t, e) {
9
+ class w {
10
+ constructor(s, t, e) {
10
11
  a(this, "scrollHandler");
11
12
  a(this, "resizeHandler");
12
13
  a(this, "posicionar", () => {
@@ -14,16 +15,16 @@ class y {
14
15
  this.content.style.top = "", this.content.style.left = "", this.content.style.minWidth = "";
15
16
  return;
16
17
  }
17
- const i = this.button.getBoundingClientRect();
18
- this.content.style.top = `${Math.round(i.bottom + 2)}px`, this.content.style.left = `${Math.round(i.left)}px`, this.content.style.minWidth = `${Math.round(Math.max(i.width, 120))}px`;
18
+ const s = this.button.getBoundingClientRect();
19
+ this.content.style.top = `${Math.round(s.bottom + 2)}px`, this.content.style.left = `${Math.round(s.left)}px`, this.content.style.minWidth = `${Math.round(Math.max(s.width, 120))}px`;
19
20
  });
20
- this.host = i, this.button = t, this.content = e;
21
+ this.host = s, this.button = t, this.content = e;
21
22
  }
22
23
  isMobileOrBottomSheet() {
23
24
  return typeof window > "u" ? !1 : window.innerWidth <= 640 || this.host.hasAttribute("bottom-sheet") || this.host.hasAttribute("modo-mobile");
24
25
  }
25
- ativarAcompanhamento(i) {
26
- if (this.scrollHandler = i, this.resizeHandler = this.posicionar, window.addEventListener("scroll", this.scrollHandler, { capture: !0, passive: !0 }), window.addEventListener("resize", this.resizeHandler, { passive: !0 }), typeof this.content.showPopover == "function")
26
+ ativarAcompanhamento(s) {
27
+ if (this.scrollHandler = s, this.resizeHandler = this.posicionar, window.addEventListener("scroll", this.scrollHandler, { capture: !0, passive: !0 }), window.addEventListener("resize", this.resizeHandler, { passive: !0 }), typeof this.content.showPopover == "function")
27
28
  try {
28
29
  this.content.showPopover();
29
30
  } catch {
@@ -37,27 +38,27 @@ class y {
37
38
  }
38
39
  }
39
40
  }
40
- class w {
41
- constructor(i) {
41
+ class E {
42
+ constructor(s) {
42
43
  a(this, "focusedIndex", -1);
43
- this.listElement = i;
44
+ this.listElement = s;
44
45
  }
45
46
  focarPrimeiroItem() {
46
- const i = Array.from(this.listElement.querySelectorAll(".ui-lista-flutuante__item"));
47
- i.length > 0 && (this.focusedIndex = 0, i[0].focus());
47
+ const s = Array.from(this.listElement.querySelectorAll(".ui-lista-flutuante__item"));
48
+ s.length > 0 && (this.focusedIndex = 0, s[0].focus());
48
49
  }
49
50
  resetarFoco() {
50
51
  this.focusedIndex = -1;
51
52
  }
52
- moverFoco(i) {
53
+ moverFoco(s) {
53
54
  const t = Array.from(this.listElement.querySelectorAll(".ui-lista-flutuante__item"));
54
- t.length !== 0 && (this.focusedIndex += i, this.focusedIndex < 0 && (this.focusedIndex = t.length - 1), this.focusedIndex >= t.length && (this.focusedIndex = 0), t[this.focusedIndex].focus());
55
+ t.length !== 0 && (this.focusedIndex += s, this.focusedIndex < 0 && (this.focusedIndex = t.length - 1), this.focusedIndex >= t.length && (this.focusedIndex = 0), t[this.focusedIndex].focus());
55
56
  }
56
- tratarKeydownLista(i, t, e, s, r) {
57
- i.key === "ArrowDown" ? (i.preventDefault(), this.moverFoco(1)) : i.key === "ArrowUp" ? (i.preventDefault(), this.moverFoco(-1)) : i.key === "Enter" || i.key === " " ? (i.preventDefault(), this.focusedIndex >= 0 && this.focusedIndex < t.length && e(t[this.focusedIndex])) : i.key === "Escape" && (i.preventDefault(), s(), r.focus());
57
+ tratarKeydownLista(s, t, e, i, r) {
58
+ s.key === "ArrowDown" ? (s.preventDefault(), this.moverFoco(1)) : s.key === "ArrowUp" ? (s.preventDefault(), this.moverFoco(-1)) : s.key === "Enter" || s.key === " " ? (s.preventDefault(), this.focusedIndex >= 0 && this.focusedIndex < t.length && e(t[this.focusedIndex])) : s.key === "Escape" && (s.preventDefault(), i(), r.focus());
58
59
  }
59
60
  }
60
- const A = ':host{display:inline-block;position:relative;width:100%;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif)}:host([inline]){width:auto}.ui-lista-flutuante__container{display:flex;flex-direction:column;width:100%;position:relative}.ui-lista-flutuante__label{font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:var(--ui-tamanho-corpo-sm, 13px);font-weight:var(--ui-peso-medio, 500);color:var(--ui-cor-texto, #e1e1e6);margin-bottom:4px;-webkit-user-select:none;user-select:none;flex-shrink:0}.ui-lista-flutuante__gatilho{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:var(--ui-campo-altura, 100%);min-height:var(--ui-campo-altura, var(--ui-altura-minima, 15px));padding:0 8px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);color:var(--ui-cor-texto, #e1e1e6);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:clamp(11px,.85rem,13px);line-height:1;cursor:pointer;box-sizing:border-box;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:border-color .15s ease,background-color .15s ease}.ui-lista-flutuante__gatilho:hover:not(:disabled){border-color:var(--ui-cor-primaria, #00E08A)}.ui-lista-flutuante__gatilho:disabled{opacity:.5;cursor:not-allowed}.ui-lista-flutuante__texto{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}.ui-lista-flutuante__seta{font-size:10px;line-height:1;display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease;color:var(--ui-cor-texto-secundario, #888899);flex-shrink:0;shape-rendering:geometricPrecision}:host([aberta]) .ui-lista-flutuante__seta{transform:rotate(180deg)}.ui-lista-flutuante__backdrop{display:none;position:fixed;top:0;left:0;width:100vw;height:100vh;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;z-index:calc(var(--ui-z-popover, 1050) - 1)}:host([aberta]) .ui-lista-flutuante__backdrop{display:block}:host(:not([aberta])) .ui-lista-flutuante__conteudo{display:none!important}:host([aberta]) .ui-lista-flutuante__conteudo{display:block}.ui-lista-flutuante__conteudo{position:fixed;margin:0;padding:4px;list-style:none;background-color:var(--ui-cor-fundo-menu, #18181c);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .14));border-radius:var(--ui-raio-borda, 6px);box-shadow:0 8px 28px #0000008c;max-height:220px;overflow-y:auto;z-index:var(--ui-z-popover, 1050);box-sizing:border-box;inset:auto}.ui-lista-flutuante__sheet-header{display:none;width:100%;margin-bottom:8px}.ui-lista-flutuante__handle{width:36px;height:4px;border-radius:2px;background-color:#ffffff40;margin:2px auto 8px}.ui-lista-flutuante__sheet-title-bar{display:flex;align-items:center;justify-content:space-between;width:100%;padding:4px 6px 8px;border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));margin-bottom:6px}.ui-lista-flutuante__sheet-titulo{font-size:13px;font-weight:600;color:var(--ui-cor-primaria, #00E08A);letter-spacing:.3px;text-transform:uppercase}.ui-lista-flutuante__sheet-close{background:transparent;border:none;color:var(--ui-cor-texto-secundario, #888899);font-size:14px;cursor:pointer;padding:4px 8px;border-radius:4px;display:flex;align-items:center;justify-content:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:color .15s,background-color .15s}.ui-lista-flutuante__sheet-close:hover{color:#fff;background-color:#ffffff14}.ui-lista-flutuante__item{padding:6px 10px;font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:12px;line-height:1.2;color:var(--ui-cor-texto, #e1e1e6);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,color .12s ease;-webkit-user-select:none;user-select:none}.ui-lista-flutuante__item:hover{background-color:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-lista-flutuante__item--selecionado{background-color:#00e08a26;color:var(--ui-cor-primaria, #00E08A);font-weight:600}.ui-lista-flutuante__item--selecionado:after{content:"✓";font-size:11px;color:var(--ui-cor-primaria, #00E08A)}@media (max-width: 640px){.ui-lista-flutuante__gatilho{min-height:max(var(--ui-campo-altura, 38px),38px);font-size:15px}:host([aberta]) .ui-lista-flutuante__backdrop{background-color:#00000059;-webkit-backdrop-filter:none;backdrop-filter:none}.ui-lista-flutuante__conteudo{position:fixed!important;bottom:0!important;top:auto!important;left:0!important;width:100vw!important;max-width:100vw!important;min-width:100vw!important;max-height:70vh!important;max-height:70dvh!important;border-radius:16px 16px 0 0!important;border-bottom:none!important;padding:10px 16px calc(24px + env(safe-area-inset-bottom,0px)) 16px!important;box-shadow:0 -8px 32px #000000b3!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;animation:ui-bottom-sheet-slide .22s cubic-bezier(.4,0,.2,1)}.ui-lista-flutuante__sheet-header{display:flex!important;flex-direction:column!important}.ui-lista-flutuante__sheet-close{min-width:44px;min-height:44px;font-size:18px}.ui-lista-flutuante__item{padding:12px 14px!important;font-size:15px!important;margin-bottom:3px}}:host([bottom-sheet][aberta]) .ui-lista-flutuante__backdrop,:host([modo-mobile][aberta]) .ui-lista-flutuante__backdrop{background-color:#00000059;-webkit-backdrop-filter:none;backdrop-filter:none}:host([bottom-sheet]) .ui-lista-flutuante__conteudo,:host([modo-mobile]) .ui-lista-flutuante__conteudo{position:fixed!important;bottom:0!important;top:auto!important;left:0!important;width:100vw!important;max-width:100vw!important;min-width:100vw!important;max-height:70vh!important;max-height:70dvh!important;border-radius:16px 16px 0 0!important;border-bottom:none!important;padding:10px 16px calc(24px + env(safe-area-inset-bottom,0px)) 16px!important;box-shadow:0 -8px 32px #000000b3!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;animation:ui-bottom-sheet-slide .22s cubic-bezier(.4,0,.2,1)}:host([bottom-sheet]) .ui-lista-flutuante__sheet-header,:host([modo-mobile]) .ui-lista-flutuante__sheet-header{display:flex!important;flex-direction:column!important}:host([bottom-sheet]) .ui-lista-flutuante__sheet-close,:host([modo-mobile]) .ui-lista-flutuante__sheet-close{min-width:44px;min-height:44px;font-size:18px}:host([bottom-sheet]) .ui-lista-flutuante__item,:host([modo-mobile]) .ui-lista-flutuante__item{padding:12px 14px!important;font-size:15px!important;margin-bottom:3px}@keyframes ui-bottom-sheet-slide{0%{transform:translateY(100%)}to{transform:translateY(0)}}', E = [
61
+ const S = ':host{display:inline-block;position:relative;width:100%;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif)}:host([inline]){width:auto}.ui-lista-flutuante__container{display:flex;flex-direction:column;width:100%;position:relative}.ui-lista-flutuante__label{font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:var(--ui-tamanho-corpo-sm, 13px);font-weight:var(--ui-peso-medio, 500);color:var(--ui-cor-texto, #e1e1e6);margin-bottom:4px;-webkit-user-select:none;user-select:none;flex-shrink:0}.ui-lista-flutuante__asterisco{color:var(--ui-cor-texto-erro, #ff5555);margin-left:2px}.ui-lista-flutuante__gatilho{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:var(--ui-campo-altura, 100%);min-height:var(--ui-campo-altura, var(--ui-altura-minima, 15px));padding:0 8px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);color:var(--ui-cor-texto, #e1e1e6);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:clamp(11px,.85rem,13px);line-height:1;cursor:pointer;box-sizing:border-box;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:border-color .15s ease,background-color .15s ease}.ui-lista-flutuante__gatilho:hover:not(:disabled){border-color:var(--ui-cor-primaria, #00E08A)}.ui-lista-flutuante__gatilho:disabled{opacity:.5;cursor:not-allowed}.ui-lista-flutuante__texto{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}.ui-lista-flutuante__seta{font-size:10px;line-height:1;display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease;color:var(--ui-cor-texto-secundario, #888899);flex-shrink:0;shape-rendering:geometricPrecision}:host([aberta]) .ui-lista-flutuante__seta{transform:rotate(180deg)}.ui-lista-flutuante__backdrop{display:none;position:fixed;top:0;left:0;width:100vw;height:100vh;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;z-index:calc(var(--ui-z-popover, 1050) - 1)}:host([aberta]) .ui-lista-flutuante__backdrop{display:block}:host(:not([aberta])) .ui-lista-flutuante__conteudo{display:none!important}:host([aberta]) .ui-lista-flutuante__conteudo{display:block}.ui-lista-flutuante__conteudo{position:fixed;margin:0;padding:4px;list-style:none;background-color:var(--ui-cor-fundo-menu, #18181c);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .14));border-radius:var(--ui-raio-borda, 6px);box-shadow:var(--ui-sombra-lg, 0 8px 28px rgba(0, 0, 0, .55));max-height:220px;overflow-y:auto;z-index:var(--ui-z-popover, 1050);box-sizing:border-box;inset:auto}.ui-lista-flutuante__sheet-header{display:none;width:100%;margin-bottom:8px}.ui-lista-flutuante__handle{width:36px;height:4px;border-radius:2px;background-color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 25%,transparent);margin:2px auto 8px}.ui-lista-flutuante__sheet-title-bar{display:flex;align-items:center;justify-content:space-between;width:100%;padding:4px 6px 8px;border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));margin-bottom:6px}.ui-lista-flutuante__sheet-titulo{font-size:13px;font-weight:600;color:var(--ui-cor-primaria, #00E08A);letter-spacing:.3px;text-transform:uppercase}.ui-lista-flutuante__sheet-close{background:transparent;border:none;color:var(--ui-cor-texto-secundario, #888899);font-size:14px;cursor:pointer;padding:4px 8px;border-radius:var(--ui-raio-sm, 4px);display:flex;align-items:center;justify-content:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:color .15s,background-color .15s}.ui-lista-flutuante__sheet-close:hover{color:#fff;background-color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,transparent)}.ui-lista-flutuante__item{padding:6px 10px;font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:12px;line-height:1.2;color:var(--ui-cor-texto, #e1e1e6);border-radius:var(--ui-raio-sm, 4px);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,color .12s ease;-webkit-user-select:none;user-select:none}.ui-lista-flutuante__item:hover{background-color:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-lista-flutuante__item--selecionado{background-color:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 15%,transparent);color:var(--ui-cor-primaria, #00E08A);font-weight:600}.ui-lista-flutuante__item--selecionado:after{content:"✓";font-size:11px;color:var(--ui-cor-primaria, #00E08A)}@media (max-width: 640px){.ui-lista-flutuante__gatilho{min-height:max(var(--ui-campo-altura, 38px),38px);font-size:15px}:host([aberta]) .ui-lista-flutuante__backdrop{background-color:#00000059;-webkit-backdrop-filter:none;backdrop-filter:none}.ui-lista-flutuante__conteudo{position:fixed!important;bottom:0!important;top:auto!important;left:0!important;width:100vw!important;max-width:100vw!important;min-width:100vw!important;max-height:70vh!important;max-height:70dvh!important;border-radius:var(--ui-raio-xl, 16px) var(--ui-raio-xl, 16px) 0 0!important;border-bottom:none!important;padding:10px 16px calc(24px + env(safe-area-inset-bottom,0px)) 16px!important;box-shadow:0 -8px 32px #000000b3!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;animation:ui-bottom-sheet-slide .22s cubic-bezier(.4,0,.2,1)}.ui-lista-flutuante__sheet-header{display:flex!important;flex-direction:column!important}.ui-lista-flutuante__sheet-close{min-width:44px;min-height:44px;font-size:18px}.ui-lista-flutuante__item{padding:12px 14px!important;font-size:15px!important;margin-bottom:3px}}:host([bottom-sheet][aberta]) .ui-lista-flutuante__backdrop,:host([modo-mobile][aberta]) .ui-lista-flutuante__backdrop{background-color:#00000059;-webkit-backdrop-filter:none;backdrop-filter:none}:host([bottom-sheet]) .ui-lista-flutuante__conteudo,:host([modo-mobile]) .ui-lista-flutuante__conteudo{position:fixed!important;bottom:0!important;top:auto!important;left:0!important;width:100vw!important;max-width:100vw!important;min-width:100vw!important;max-height:70vh!important;max-height:70dvh!important;border-radius:var(--ui-raio-xl, 16px) var(--ui-raio-xl, 16px) 0 0!important;border-bottom:none!important;padding:10px 16px calc(24px + env(safe-area-inset-bottom,0px)) 16px!important;box-shadow:0 -8px 32px #000000b3!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;animation:ui-bottom-sheet-slide .22s cubic-bezier(.4,0,.2,1)}:host([bottom-sheet]) .ui-lista-flutuante__sheet-header,:host([modo-mobile]) .ui-lista-flutuante__sheet-header{display:flex!important;flex-direction:column!important}:host([bottom-sheet]) .ui-lista-flutuante__sheet-close,:host([modo-mobile]) .ui-lista-flutuante__sheet-close{min-width:44px;min-height:44px;font-size:18px}:host([bottom-sheet]) .ui-lista-flutuante__item,:host([modo-mobile]) .ui-lista-flutuante__item{padding:12px 14px!important;font-size:15px!important;margin-bottom:3px}@keyframes ui-bottom-sheet-slide{0%{transform:translateY(100%)}to{transform:translateY(0)}}', L = [
61
62
  "aberta",
62
63
  "texto-padrao",
63
64
  "value",
@@ -78,17 +79,17 @@ const A = ':host{display:inline-block;position:relative;width:100%;box-sizing:bo
78
79
  "mensagem-validacao",
79
80
  "aria-label"
80
81
  ];
81
- function S() {
82
+ function C() {
82
83
  return `
83
- <style>${A}</style>
84
+ <style>${S}</style>
84
85
  <div class="ui-lista-flutuante__container">
85
- <label class="ui-lista-flutuante__label" style="display: none;"></label>
86
+ <label class="ui-lista-flutuante__label" part="rotulo" style="display: none;"></label>
86
87
  <div class="ui-lista-flutuante__backdrop"></div>
87
- <button class="ui-lista-flutuante__gatilho" aria-haspopup="listbox" aria-expanded="false" type="button">
88
- <span class="ui-lista-flutuante__texto"></span>
89
- <span class="ui-lista-flutuante__seta">▼</span>
88
+ <button class="ui-lista-flutuante__gatilho" part="campo" aria-haspopup="listbox" aria-expanded="false" type="button">
89
+ <span class="ui-lista-flutuante__texto" part="valor"></span>
90
+ <span class="ui-lista-flutuante__seta" part="seta">▼</span>
90
91
  </button>
91
- <div class="ui-lista-flutuante__conteudo" role="listbox" popover="manual">
92
+ <div class="ui-lista-flutuante__conteudo" part="lista" role="listbox" popover="manual">
92
93
  <div class="ui-lista-flutuante__sheet-header">
93
94
  <div class="ui-lista-flutuante__handle"></div>
94
95
  <div class="ui-lista-flutuante__sheet-title-bar">
@@ -101,15 +102,16 @@ function S() {
101
102
  </div>
102
103
  `;
103
104
  }
104
- function b(n, i, t) {
105
- n.innerHTML = "", i.forEach((e) => {
106
- const s = document.createElement("li"), r = String(e.id) === String(t);
107
- s.className = `ui-lista-flutuante__item ${r ? "ui-lista-flutuante__item--selecionado" : ""}`, s.setAttribute("data-id", e.id), s.textContent = e.label, s.role = "option", s.tabIndex = -1, r && s.setAttribute("aria-selected", "true"), n.appendChild(s);
105
+ function b(n, s, t) {
106
+ n.innerHTML = "", s.forEach((e) => {
107
+ const i = document.createElement("li"), r = String(e.id) === String(t);
108
+ i.className = `ui-lista-flutuante__item ${r ? "ui-lista-flutuante__item--selecionado" : ""}`, i.setAttribute("data-id", e.id), i.textContent = e.label, i.role = "option", i.tabIndex = -1, i.setAttribute("part", r ? "opcao opcao-selecionada" : "opcao"), r && i.setAttribute("aria-selected", "true"), n.appendChild(i);
108
109
  });
109
110
  }
110
- function L(n, i) {
111
+ function z(n, s) {
111
112
  n.querySelectorAll(".ui-lista-flutuante__item").forEach((e) => {
112
- e.getAttribute("data-id") === String(i) ? (e.classList.add("ui-lista-flutuante__item--selecionado"), e.setAttribute("aria-selected", "true")) : (e.classList.remove("ui-lista-flutuante__item--selecionado"), e.removeAttribute("aria-selected"));
113
+ const i = e.getAttribute("data-id");
114
+ y(e, "opcao-selecionada", i === String(s)), i === String(s) ? (e.classList.add("ui-lista-flutuante__item--selecionado"), e.setAttribute("aria-selected", "true")) : (e.classList.remove("ui-lista-flutuante__item--selecionado"), e.removeAttribute("aria-selected"));
113
115
  });
114
116
  }
115
117
  class g extends u {
@@ -166,21 +168,21 @@ class g extends u {
166
168
  t.stopPropagation();
167
169
  const e = (o = t.target) == null ? void 0 : o.closest("li[data-id]");
168
170
  if (!e) return;
169
- const s = e.getAttribute("data-id"), r = this._itens.find((l) => String(l.id) === String(s));
171
+ const i = e.getAttribute("data-id"), r = this._itens.find((l) => String(l.id) === String(i));
170
172
  r && this.selecionarItem(r);
171
173
  });
172
174
  const t = this.attachShadow({ mode: "open" });
173
- t.innerHTML = S(), this.labelElement = t.querySelector(".ui-lista-flutuante__label"), this.button = t.querySelector(".ui-lista-flutuante__gatilho"), this.content = t.querySelector(".ui-lista-flutuante__conteudo"), this.listElement = t.querySelector(".ui-lista-flutuante__lista"), this.textoElement = t.querySelector(".ui-lista-flutuante__texto"), this.backdropElement = t.querySelector(".ui-lista-flutuante__backdrop"), this.sheetTituloElement = t.querySelector(".ui-lista-flutuante__sheet-titulo"), this.sheetCloseButton = t.querySelector(".ui-lista-flutuante__sheet-close");
175
+ t.innerHTML = C(), this.labelElement = t.querySelector(".ui-lista-flutuante__label"), this.button = t.querySelector(".ui-lista-flutuante__gatilho"), this.content = t.querySelector(".ui-lista-flutuante__conteudo"), this.listElement = t.querySelector(".ui-lista-flutuante__lista"), this.textoElement = t.querySelector(".ui-lista-flutuante__texto"), this.backdropElement = t.querySelector(".ui-lista-flutuante__backdrop"), this.sheetTituloElement = t.querySelector(".ui-lista-flutuante__sheet-titulo"), this.sheetCloseButton = t.querySelector(".ui-lista-flutuante__sheet-close");
174
176
  const e = m("ui-select");
175
177
  this.idsAcessibilidade = {
176
178
  label: `${e}-label`,
177
179
  gatilho: `${e}-gatilho`,
178
180
  texto: `${e}-texto`,
179
181
  lista: `${e}-lista`
180
- }, this.labelElement.id = this.idsAcessibilidade.label, this.button.id = this.idsAcessibilidade.gatilho, this.textoElement.id = this.idsAcessibilidade.texto, this.content.id = this.idsAcessibilidade.lista, this.button.setAttribute("aria-controls", this.idsAcessibilidade.lista), this.posicionamento = new y(this, this.button, this.content), this.teclado = new w(this.listElement);
182
+ }, this.labelElement.id = this.idsAcessibilidade.label, this.button.id = this.idsAcessibilidade.gatilho, this.textoElement.id = this.idsAcessibilidade.texto, this.content.id = this.idsAcessibilidade.lista, this.button.setAttribute("aria-controls", this.idsAcessibilidade.lista), this.posicionamento = new w(this, this.button, this.content), this.teclado = new E(this.listElement);
181
183
  }
182
184
  static get observedAttributes() {
183
- return E;
185
+ return L;
184
186
  }
185
187
  connectedCallback() {
186
188
  this.listeners.cleanup(), this.listeners.add(this.button, "click", this.toggleLista), this.listeners.add(this.button, "keydown", this.handleKeyDown), this.listeners.add(this.content, "keydown", this.handleListKeyDown), this.listeners.add(this.backdropElement, "click", this.fechar), this.listeners.add(this.listElement, "click", this.handleListClick), this.listeners.add(this.sheetCloseButton, "click", (t) => {
@@ -189,26 +191,26 @@ class g extends u {
189
191
  }
190
192
  carregarItensFilhos() {
191
193
  const t = Array.from(this.querySelectorAll('option, ui-opcao, [role="option"], [data-opcao], [data-value]:not(input):not(select)'));
192
- t.length > 0 && (this._itens = t.map((e, s) => {
194
+ t.length > 0 && (this._itens = t.map((e, i) => {
193
195
  var o;
194
- const r = e.getAttribute("value") || e.getAttribute("data-value") || String(s + 1);
196
+ const r = e.getAttribute("value") || e.getAttribute("data-value") || String(i + 1);
195
197
  return {
196
198
  id: r,
197
- label: ((o = e.textContent) == null ? void 0 : o.trim()) || r || `Opção ${s + 1}`
199
+ label: ((o = e.textContent) == null ? void 0 : o.trim()) || r || `Opção ${i + 1}`
198
200
  };
199
201
  }), b(this.listElement, this._itens, this._value), this.syncLabel());
200
202
  }
201
203
  disconnectedCallback() {
202
204
  this.listeners.cleanup(), this.observer && this.observer.disconnect(), this.fechar();
203
205
  }
204
- attributeChangedCallback(t, e, s) {
205
- t === "aberta" && this.button.setAttribute("aria-expanded", String(s !== null)), (t === "texto-padrao" || t === "placeholder" || t === "label" || t === "rotulo" || t === "aria-label") && this.syncLabel(), t === "value" && s !== this._value && (this.value = s || ""), t === "disabled" && (this.button.disabled = this.disabled), (t === "altura" || t === "height") && (s ? this.style.setProperty("--ui-campo-altura", isNaN(Number(s)) ? s : `${s}px`) : this.style.removeProperty("--ui-campo-altura"));
206
+ attributeChangedCallback(t, e, i) {
207
+ t === "aberta" && this.button.setAttribute("aria-expanded", String(i !== null)), (t === "texto-padrao" || t === "placeholder" || t === "label" || t === "rotulo" || t === "aria-label") && this.syncLabel(), t === "value" && i !== this._value && (this.value = i || ""), t === "disabled" && (this.button.disabled = this.disabled), (t === "altura" || t === "height") && (i ? this.style.setProperty("--ui-campo-altura", isNaN(Number(i)) ? i : `${i}px`) : this.style.removeProperty("--ui-campo-altura"));
206
208
  }
207
209
  get value() {
208
210
  return this._value;
209
211
  }
210
212
  set value(t) {
211
- this._value = t, this.setAttribute("value", t), this.internals.setFormValue(t), this.syncLabel(), L(this.listElement, this._value), this.atualizarValidade();
213
+ this._value = t, this.setAttribute("value", t), this.internals.setFormValue(t), this.syncLabel(), z(this.listElement, this._value), this.atualizarValidade();
212
214
  }
213
215
  get label() {
214
216
  return this.getAttribute("label") || this.getAttribute("rotulo") || "";
@@ -270,18 +272,18 @@ class g extends u {
270
272
  syncLabel() {
271
273
  const t = this.getAttribute("label") || this.getAttribute("rotulo");
272
274
  if (t)
273
- this.required ? this.labelElement.innerHTML = `${t} <span class="ui-lista-flutuante__asterisco" style="color: var(--ui-cor-texto-erro, #ff5555); margin-left: 2px;">*</span>` : this.labelElement.textContent = t, this.labelElement.style.display = "block", this.sheetTituloElement.textContent = t, this.button.setAttribute("aria-labelledby", `${this.idsAcessibilidade.label} ${this.idsAcessibilidade.texto}`), this.content.setAttribute("aria-labelledby", this.idsAcessibilidade.label), this.button.removeAttribute("aria-label"), this.content.removeAttribute("aria-label");
275
+ A(this.labelElement, t, this.required, "ui-lista-flutuante__asterisco"), this.labelElement.style.display = "block", this.sheetTituloElement.textContent = t, this.button.setAttribute("aria-labelledby", `${this.idsAcessibilidade.label} ${this.idsAcessibilidade.texto}`), this.content.setAttribute("aria-labelledby", this.idsAcessibilidade.label), this.button.removeAttribute("aria-label"), this.content.removeAttribute("aria-label");
274
276
  else {
275
277
  this.labelElement.style.display = "none", this.sincronizarRotuloExterno();
276
- const s = this.getAttribute("texto-padrao") || this.getAttribute("placeholder") || "Opções";
277
- this.sheetTituloElement.textContent = s;
278
+ const i = this.getAttribute("texto-padrao") || this.getAttribute("placeholder") || "Opções";
279
+ this.sheetTituloElement.textContent = i;
278
280
  }
279
- const e = this._itens.find((s) => String(s.id) === String(this._value));
281
+ const e = this._itens.find((i) => String(i.id) === String(this._value));
280
282
  if (e)
281
283
  this.textoElement.textContent = e.label;
282
284
  else {
283
- const s = this.getAttribute("texto-padrao") || this.getAttribute("placeholder") || "Opções";
284
- this.textoElement.textContent = s;
285
+ const i = this.getAttribute("texto-padrao") || this.getAttribute("placeholder") || "Opções";
286
+ this.textoElement.textContent = i;
285
287
  }
286
288
  }
287
289
  /** Sem o atributo `label`, usa o rótulo de fora do Shadow DOM (aria-label, <label for>, <label> envolvente). */
@@ -314,12 +316,12 @@ class g extends u {
314
316
  );
315
317
  }
316
318
  }
317
- class C extends g {
319
+ class q extends g {
318
320
  }
319
321
  h("ui-lista-flutuante", g);
320
- h("ui-select", C);
321
- const z = ':host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);vertical-align:middle}.ui-checkbox{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.ui-checkbox--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.ui-checkbox__box{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;min-height:16px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-radius:4px;box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;flex-shrink:0}.ui-checkbox:focus-visible .ui-checkbox__box,.ui-checkbox--foco .ui-checkbox__box{border-color:var(--ui-cor-primaria, #00E08A);box-shadow:0 0 0 2px #00e08a40}.ui-checkbox--checked .ui-checkbox__box,.ui-checkbox--indeterminate .ui-checkbox__box{background-color:var(--ui-cor-primaria, #00E08A);border-color:var(--ui-cor-primaria, #00E08A);color:var(--ui-cor-texto-sobre-primaria, #000000)}.ui-checkbox__mark{width:12px;height:12px;display:flex;align-items:center;justify-content:center;transition:transform .15s cubic-bezier(.4,0,.2,1),opacity .15s ease;transform:scale(0);opacity:0}.ui-checkbox--checked .ui-checkbox__mark,.ui-checkbox--indeterminate .ui-checkbox__mark{transform:scale(1);opacity:1}.ui-checkbox__mark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;shape-rendering:geometricPrecision}.ui-checkbox__label{display:inline-flex;align-items:center;font-size:clamp(11px,.85rem,14px);color:var(--ui-cor-texto, #e1e1e6);line-height:1}.ui-checkbox--label-esquerda{flex-direction:row-reverse}@media (max-width: 640px){.ui-checkbox{min-height:40px;padding:4px 0}.ui-checkbox__box{width:20px;height:20px;min-width:20px;min-height:20px}.ui-checkbox__mark{width:14px;height:14px}.ui-checkbox__label{font-size:14px}}';
322
- class q extends u {
322
+ h("ui-select", q);
323
+ const I = ':host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);vertical-align:middle}.ui-checkbox{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.ui-checkbox--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.ui-checkbox__box{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;min-height:16px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-radius:var(--ui-raio-sm, 4px);box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;flex-shrink:0}.ui-checkbox:focus-visible .ui-checkbox__box,.ui-checkbox--foco .ui-checkbox__box{border-color:var(--ui-cor-primaria, #00E08A);box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 25%,transparent)}.ui-checkbox--checked .ui-checkbox__box,.ui-checkbox--indeterminate .ui-checkbox__box{background-color:var(--ui-cor-primaria, #00E08A);border-color:var(--ui-cor-primaria, #00E08A);color:var(--ui-cor-texto-sobre-primaria, #000000)}.ui-checkbox__mark{width:12px;height:12px;display:flex;align-items:center;justify-content:center;transition:transform .15s cubic-bezier(.4,0,.2,1),opacity .15s ease;transform:scale(0);opacity:0}.ui-checkbox--checked .ui-checkbox__mark,.ui-checkbox--indeterminate .ui-checkbox__mark{transform:scale(1);opacity:1}.ui-checkbox__mark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;shape-rendering:geometricPrecision}.ui-checkbox__label{display:inline-flex;align-items:center;font-size:clamp(11px,.85rem,14px);color:var(--ui-cor-texto, #e1e1e6);line-height:1}.ui-checkbox--label-esquerda{flex-direction:row-reverse}@media (max-width: 640px){.ui-checkbox{min-height:40px;padding:4px 0}.ui-checkbox__box{width:20px;height:20px;min-width:20px;min-height:20px}.ui-checkbox__mark{width:14px;height:14px}.ui-checkbox__label{font-size:14px}}';
324
+ class V extends u {
323
325
  constructor() {
324
326
  super();
325
327
  a(this, "containerElement");
@@ -342,12 +344,12 @@ class q extends u {
342
344
  });
343
345
  const t = this.attachShadow({ mode: "open" });
344
346
  t.innerHTML = `
345
- <style>${z}</style>
346
- <div class="ui-checkbox" tabindex="0" role="checkbox" aria-checked="false">
347
- <span class="ui-checkbox__box">
348
- <span class="ui-checkbox__mark"></span>
347
+ <style>${I}</style>
348
+ <div class="ui-checkbox" part="base" tabindex="0" role="checkbox" aria-checked="false">
349
+ <span class="ui-checkbox__box" part="controle">
350
+ <span class="ui-checkbox__mark" part="indicador"></span>
349
351
  </span>
350
- <span class="ui-checkbox__label" style="display: none;"></span>
352
+ <span class="ui-checkbox__label" part="rotulo" style="display: none;"></span>
351
353
  </div>
352
354
  `, this.containerElement = t.querySelector(".ui-checkbox"), this.markElement = t.querySelector(".ui-checkbox__mark"), this.labelElement = t.querySelector(".ui-checkbox__label");
353
355
  }
@@ -373,7 +375,7 @@ class q extends u {
373
375
  disconnectedCallback() {
374
376
  this.listeners.cleanup();
375
377
  }
376
- attributeChangedCallback(t, e, s) {
378
+ attributeChangedCallback(t, e, i) {
377
379
  this.syncState();
378
380
  }
379
381
  get marcado() {
@@ -451,11 +453,11 @@ class q extends u {
451
453
  ));
452
454
  }
453
455
  syncState() {
454
- const t = this.marcado, e = this.indeterminado, s = this.disabled, r = this.getAttribute("label"), o = this.getAttribute("posicao-label") || "direita";
456
+ const t = this.marcado, e = this.indeterminado, i = this.disabled, r = this.getAttribute("label"), o = this.getAttribute("posicao-label") || "direita";
455
457
  this.containerElement.setAttribute(
456
458
  "aria-checked",
457
459
  e ? "mixed" : String(t)
458
- ), s ? (this.containerElement.classList.add("ui-checkbox--disabled"), this.containerElement.setAttribute("tabindex", "-1"), this.containerElement.setAttribute("aria-disabled", "true")) : (this.containerElement.classList.remove("ui-checkbox--disabled"), this.containerElement.setAttribute("tabindex", "0"), this.containerElement.removeAttribute("aria-disabled")), t ? this.containerElement.classList.add("ui-checkbox--checked") : this.containerElement.classList.remove("ui-checkbox--checked"), e ? this.containerElement.classList.add("ui-checkbox--indeterminate") : this.containerElement.classList.remove("ui-checkbox--indeterminate"), o === "esquerda" ? this.containerElement.classList.add("ui-checkbox--label-esquerda") : this.containerElement.classList.remove("ui-checkbox--label-esquerda"), e ? this.markElement.innerHTML = `
460
+ ), i ? (this.containerElement.classList.add("ui-checkbox--disabled"), this.containerElement.setAttribute("tabindex", "-1"), this.containerElement.setAttribute("aria-disabled", "true")) : (this.containerElement.classList.remove("ui-checkbox--disabled"), this.containerElement.setAttribute("tabindex", "0"), this.containerElement.removeAttribute("aria-disabled")), t ? this.containerElement.classList.add("ui-checkbox--checked") : this.containerElement.classList.remove("ui-checkbox--checked"), e ? this.containerElement.classList.add("ui-checkbox--indeterminate") : this.containerElement.classList.remove("ui-checkbox--indeterminate"), o === "esquerda" ? this.containerElement.classList.add("ui-checkbox--label-esquerda") : this.containerElement.classList.remove("ui-checkbox--label-esquerda"), e ? this.markElement.innerHTML = `
459
461
  <svg viewBox="0 0 24 24">
460
462
  <line x1="5" y1="12" x2="19" y2="12"></line>
461
463
  </svg>
@@ -473,58 +475,58 @@ class q extends u {
473
475
  typeof t == "string" ? this.marcado = t === (this.getAttribute("value") || "on") : typeof t == "boolean" && (this.marcado = t), this.syncState();
474
476
  }
475
477
  }
476
- h("ui-checkbox", q);
477
- const I = ':host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);vertical-align:middle}.ui-radio{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1;outline:none}.ui-radio--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.ui-radio__circle{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;min-height:16px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-radius:50%;box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;flex-shrink:0}.ui-radio:focus-visible .ui-radio__circle,.ui-radio--foco .ui-radio__circle{border-color:var(--ui-cor-primaria, #00E08A);box-shadow:0 0 0 2px #00e08a40}.ui-radio--checked .ui-radio__circle{border-color:var(--ui-cor-primaria, #00E08A)}.ui-radio__dot{width:8px;height:8px;border-radius:50%;background-color:var(--ui-cor-primaria, #00E08A);transition:transform .15s cubic-bezier(.4,0,.2,1),opacity .15s ease;transform:scale(0);opacity:0}.ui-radio--checked .ui-radio__dot{transform:scale(1);opacity:1}.ui-radio__label{display:inline-flex;align-items:center;font-size:clamp(11px,.85rem,14px);color:var(--ui-cor-texto, #e1e1e6);line-height:1}.ui-radio--label-esquerda{flex-direction:row-reverse}';
478
+ h("ui-checkbox", V);
479
+ const D = ':host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);vertical-align:middle}.ui-radio{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1;outline:none}.ui-radio--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.ui-radio__circle{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;min-height:16px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-radius:50%;box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;flex-shrink:0}.ui-radio:focus-visible .ui-radio__circle,.ui-radio--foco .ui-radio__circle{border-color:var(--ui-cor-primaria, #00E08A);box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 25%,transparent)}.ui-radio--checked .ui-radio__circle{border-color:var(--ui-cor-primaria, #00E08A)}.ui-radio__dot{width:8px;height:8px;border-radius:50%;background-color:var(--ui-cor-primaria, #00E08A);transition:transform .15s cubic-bezier(.4,0,.2,1),opacity .15s ease;transform:scale(0);opacity:0}.ui-radio--checked .ui-radio__dot{transform:scale(1);opacity:1}.ui-radio__label{display:inline-flex;align-items:center;font-size:clamp(11px,.85rem,14px);color:var(--ui-cor-texto, #e1e1e6);line-height:1}.ui-radio--label-esquerda{flex-direction:row-reverse}';
478
480
  class c {
479
- static getScopeNode(i) {
480
- return i.closest("form") || i.getRootNode() || document;
481
+ static getScopeNode(s) {
482
+ return s.closest("form") || s.getRootNode() || document;
481
483
  }
482
- static registrar(i) {
483
- const t = i.name;
484
+ static registrar(s) {
485
+ const t = s.name;
484
486
  if (t) {
485
- const e = this.getScopeNode(i);
487
+ const e = this.getScopeNode(s);
486
488
  this.registry.has(e) || this.registry.set(e, /* @__PURE__ */ new Map());
487
- const s = this.registry.get(e);
488
- s.has(t) || s.set(t, /* @__PURE__ */ new Set()), s.get(t).add(i);
489
+ const i = this.registry.get(e);
490
+ i.has(t) || i.set(t, /* @__PURE__ */ new Set()), i.get(t).add(s);
489
491
  }
490
492
  }
491
- static desregistrar(i) {
492
- const t = i.name;
493
+ static desregistrar(s) {
494
+ const t = s.name;
493
495
  if (t) {
494
- const e = this.getScopeNode(i), s = this.registry.get(e);
495
- if (s && s.has(t)) {
496
- const r = s.get(t);
497
- r.delete(i), r.size === 0 && s.delete(t), s.size === 0 && this.registry.delete(e);
496
+ const e = this.getScopeNode(s), i = this.registry.get(e);
497
+ if (i && i.has(t)) {
498
+ const r = i.get(t);
499
+ r.delete(s), r.size === 0 && i.delete(t), i.size === 0 && this.registry.delete(e);
498
500
  }
499
501
  }
500
502
  }
501
- static obterRadiosDoGrupo(i) {
502
- const t = i.name;
503
+ static obterRadiosDoGrupo(s) {
504
+ const t = s.name;
503
505
  if (!t) return [];
504
- const e = this.getScopeNode(i), s = this.registry.get(e);
505
- return !s || !s.has(t) ? [] : Array.from(s.get(t));
506
+ const e = this.getScopeNode(s), i = this.registry.get(e);
507
+ return !i || !i.has(t) ? [] : Array.from(i.get(t));
506
508
  }
507
- static desmarcarOutros(i) {
508
- this.obterRadiosDoGrupo(i).forEach((e) => {
509
- e !== i && (e.removeAttribute("marcado"), e.removeAttribute("checked"), e.syncState());
509
+ static desmarcarOutros(s) {
510
+ this.obterRadiosDoGrupo(s).forEach((e) => {
511
+ e !== s && (e.removeAttribute("marcado"), e.removeAttribute("checked"), e.syncState());
510
512
  });
511
513
  }
512
- static tratarNavegacaoTeclado(i, t) {
513
- if (["ArrowDown", "ArrowRight", "ArrowUp", "ArrowLeft"].includes(i.key)) {
514
- i.preventDefault();
515
- const s = this.obterRadiosDoGrupo(t).filter((l) => !l.disabled);
516
- if (s.length <= 1) return;
517
- const r = s.indexOf(t);
514
+ static tratarNavegacaoTeclado(s, t) {
515
+ if (["ArrowDown", "ArrowRight", "ArrowUp", "ArrowLeft"].includes(s.key)) {
516
+ s.preventDefault();
517
+ const i = this.obterRadiosDoGrupo(t).filter((l) => !l.disabled);
518
+ if (i.length <= 1) return;
519
+ const r = i.indexOf(t);
518
520
  let o = r;
519
- if (i.key === "ArrowDown" || i.key === "ArrowRight" ? o = (r + 1) % s.length : (i.key === "ArrowUp" || i.key === "ArrowLeft") && (o = (r - 1 + s.length) % s.length), o !== r && o >= 0 && o < s.length) {
520
- const l = s[o];
521
+ if (s.key === "ArrowDown" || s.key === "ArrowRight" ? o = (r + 1) % i.length : (s.key === "ArrowUp" || s.key === "ArrowLeft") && (o = (r - 1 + i.length) % i.length), o !== r && o >= 0 && o < i.length) {
522
+ const l = i[o];
521
523
  l.selecionar(), l.focus();
522
524
  }
523
525
  }
524
526
  }
525
527
  }
526
528
  a(c, "registry", /* @__PURE__ */ new WeakMap());
527
- class V extends u {
529
+ class R extends u {
528
530
  constructor() {
529
531
  super();
530
532
  a(this, "containerElement");
@@ -544,12 +546,12 @@ class V extends u {
544
546
  });
545
547
  const t = this.attachShadow({ mode: "open" });
546
548
  t.innerHTML = `
547
- <style>${I}</style>
548
- <div class="ui-radio" tabindex="0" role="radio" aria-checked="false">
549
- <span class="ui-radio__circle">
550
- <span class="ui-radio__dot"></span>
549
+ <style>${D}</style>
550
+ <div class="ui-radio" part="base" tabindex="0" role="radio" aria-checked="false">
551
+ <span class="ui-radio__circle" part="controle">
552
+ <span class="ui-radio__dot" part="indicador"></span>
551
553
  </span>
552
- <span class="ui-radio__label" style="display: none;"></span>
554
+ <span class="ui-radio__label" part="rotulo" style="display: none;"></span>
553
555
  </div>
554
556
  `, this.containerElement = t.querySelector(".ui-radio"), this.labelElement = t.querySelector(".ui-radio__label");
555
557
  }
@@ -574,7 +576,7 @@ class V extends u {
574
576
  disconnectedCallback() {
575
577
  this.containerElement.removeEventListener("click", this.handleClick), this.containerElement.removeEventListener("keydown", this.handleKeyDown), this.containerElement.removeEventListener("focus", this.handleFocus), this.containerElement.removeEventListener("blur", this.handleBlur), c.desregistrar(this);
576
578
  }
577
- attributeChangedCallback(t, e, s) {
579
+ attributeChangedCallback(t, e, i) {
578
580
  this.syncState();
579
581
  }
580
582
  get marcado() {
@@ -609,7 +611,7 @@ class V extends u {
609
611
  return;
610
612
  }
611
613
  const t = c.obterRadiosDoGrupo(this);
612
- if ((this.required || t.length > 0 && t.some((s) => s.required)) && !(this.marcado || t.length > 0 && t.some((r) => r.marcado))) {
614
+ if ((this.required || t.length > 0 && t.some((i) => i.required)) && !(this.marcado || t.length > 0 && t.some((r) => r.marcado))) {
613
615
  const r = this.getAttribute("mensagem-validacao") || "Selecione uma opção.";
614
616
  this.internals.setValidity({ valueMissing: !0 }, r, this.containerElement);
615
617
  return;
@@ -638,7 +640,7 @@ class V extends u {
638
640
  ), c.obterRadiosDoGrupo(this).forEach((t) => t.atualizarValidade()));
639
641
  }
640
642
  syncState() {
641
- const t = this.marcado, e = this.disabled, s = this.getAttribute("label"), r = this.getAttribute("posicao-label") || "direita";
643
+ const t = this.marcado, e = this.disabled, i = this.getAttribute("label"), r = this.getAttribute("posicao-label") || "direita";
642
644
  if (this.containerElement.setAttribute("aria-checked", String(t)), e)
643
645
  this.containerElement.classList.add("ui-radio--disabled"), this.containerElement.setAttribute("tabindex", "-1"), this.containerElement.setAttribute("aria-disabled", "true");
644
646
  else {
@@ -646,7 +648,7 @@ class V extends u {
646
648
  const o = c.obterRadiosDoGrupo(this);
647
649
  o.length > 0 ? o.some((v) => v.marcado) ? this.containerElement.setAttribute("tabindex", t ? "0" : "-1") : this.containerElement.setAttribute("tabindex", o[0] === this ? "0" : "-1") : this.containerElement.setAttribute("tabindex", "0");
648
650
  }
649
- t ? this.containerElement.classList.add("ui-radio--checked") : this.containerElement.classList.remove("ui-radio--checked"), r === "esquerda" ? this.containerElement.classList.add("ui-radio--label-esquerda") : this.containerElement.classList.remove("ui-radio--label-esquerda"), s ? (this.labelElement.textContent = s, this.labelElement.style.display = "inline") : this.labelElement.style.display = "none", t ? this.internals.setFormValue(this.getAttribute("value") || "on") : this.internals.setFormValue(null), this.atualizarValidade();
651
+ t ? this.containerElement.classList.add("ui-radio--checked") : this.containerElement.classList.remove("ui-radio--checked"), r === "esquerda" ? this.containerElement.classList.add("ui-radio--label-esquerda") : this.containerElement.classList.remove("ui-radio--label-esquerda"), i ? (this.labelElement.textContent = i, this.labelElement.style.display = "inline") : this.labelElement.style.display = "none", t ? this.internals.setFormValue(this.getAttribute("value") || "on") : this.internals.setFormValue(null), this.atualizarValidade();
650
652
  }
651
653
  // === Ciclo de Vida Form-Associated Custom Elements (W3C FACE) ===
652
654
  formResetCallback() {
@@ -656,8 +658,8 @@ class V extends u {
656
658
  typeof t == "string" ? this.marcado = t === (this.getAttribute("value") || "on") : typeof t == "boolean" && (this.marcado = t), this.syncState();
657
659
  }
658
660
  }
659
- h("ui-radio", V);
660
- const D = ':host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);vertical-align:middle}.ui-switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.ui-switch--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.ui-switch__track{display:inline-flex;align-items:center;position:relative;width:36px;height:20px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-radius:999px;box-sizing:border-box;padding:1px;transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease;flex-shrink:0}.ui-switch:focus-visible .ui-switch__track,.ui-switch--foco .ui-switch__track{border-color:var(--ui-cor-primaria, #00E08A);box-shadow:0 0 0 2px #00e08a40}.ui-switch--checked .ui-switch__track{background-color:var(--ui-cor-primaria, #00E08A);border-color:var(--ui-cor-primaria, #00E08A)}.ui-switch__thumb{display:block;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 1px 3px #0000004d;transition:transform .2s cubic-bezier(.4,0,.2,1),background-color .2s ease;transform:translate(0)}.ui-switch--checked .ui-switch__thumb{transform:translate(16px);background-color:var(--ui-cor-texto-sobre-primaria, #000000)}.ui-switch--sm .ui-switch__track{width:28px;height:16px;padding:1px}.ui-switch--sm .ui-switch__thumb{width:12px;height:12px}.ui-switch--sm.ui-switch--checked .ui-switch__thumb{transform:translate(12px)}.ui-switch--lg .ui-switch__track{width:44px;height:24px;padding:1px}.ui-switch--lg .ui-switch__thumb{width:20px;height:20px}.ui-switch--lg.ui-switch--checked .ui-switch__thumb{transform:translate(20px)}.ui-switch__label{display:inline-flex;align-items:center;font-size:clamp(11px,.85rem,14px);color:var(--ui-cor-texto, #e1e1e6);line-height:1}.ui-switch--label-esquerda{flex-direction:row-reverse}@media (max-width: 640px){.ui-switch{min-height:40px;padding:4px 0}.ui-switch__label{font-size:14px}}';
661
+ h("ui-radio", R);
662
+ const F = ':host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);vertical-align:middle}.ui-switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.ui-switch--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.ui-switch__track{display:inline-flex;align-items:center;position:relative;width:36px;height:20px;background-color:var(--ui-cor-fundo-elevado, #1a1a1e);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-radius:var(--ui-raio-pill, 999px);box-sizing:border-box;padding:1px;transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease;flex-shrink:0}.ui-switch:focus-visible .ui-switch__track,.ui-switch--foco .ui-switch__track{border-color:var(--ui-cor-primaria, #00E08A);box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 25%,transparent)}.ui-switch--checked .ui-switch__track{background-color:var(--ui-cor-primaria, #00E08A);border-color:var(--ui-cor-primaria, #00E08A)}.ui-switch__thumb{display:block;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:var(--ui-sombra-sm, 0 1px 3px rgba(0, 0, 0, .3));transition:transform .2s cubic-bezier(.4,0,.2,1),background-color .2s ease;transform:translate(0)}.ui-switch--checked .ui-switch__thumb{transform:translate(16px);background-color:var(--ui-cor-texto-sobre-primaria, #000000)}.ui-switch--sm .ui-switch__track{width:28px;height:16px;padding:1px}.ui-switch--sm .ui-switch__thumb{width:12px;height:12px}.ui-switch--sm.ui-switch--checked .ui-switch__thumb{transform:translate(12px)}.ui-switch--lg .ui-switch__track{width:44px;height:24px;padding:1px}.ui-switch--lg .ui-switch__thumb{width:20px;height:20px}.ui-switch--lg.ui-switch--checked .ui-switch__thumb{transform:translate(20px)}.ui-switch__label{display:inline-flex;align-items:center;font-size:clamp(11px,.85rem,14px);color:var(--ui-cor-texto, #e1e1e6);line-height:1}.ui-switch--label-esquerda{flex-direction:row-reverse}@media (max-width: 640px){.ui-switch{min-height:40px;padding:4px 0}.ui-switch__label{font-size:14px}}';
661
663
  class x extends u {
662
664
  constructor() {
663
665
  super();
@@ -683,12 +685,12 @@ class x extends u {
683
685
  });
684
686
  const t = this.attachShadow({ mode: "open" });
685
687
  t.innerHTML = `
686
- <style>${D}</style>
687
- <div class="ui-switch" tabindex="0" role="switch" aria-checked="false">
688
- <span class="ui-switch__track">
689
- <span class="ui-switch__thumb"></span>
688
+ <style>${F}</style>
689
+ <div class="ui-switch" part="base" tabindex="0" role="switch" aria-checked="false">
690
+ <span class="ui-switch__track" part="controle">
691
+ <span class="ui-switch__thumb" part="indicador"></span>
690
692
  </span>
691
- <span class="ui-switch__label" style="display: none;"></span>
693
+ <span class="ui-switch__label" part="rotulo" style="display: none;"></span>
692
694
  </div>
693
695
  `, this.containerElement = t.querySelector(".ui-switch"), this.labelElement = t.querySelector(".ui-switch__label"), this.labelId = m("ui-switch-label"), this.labelElement.id = this.labelId;
694
696
  }
@@ -716,7 +718,7 @@ class x extends u {
716
718
  disconnectedCallback() {
717
719
  this.listeners.cleanup();
718
720
  }
719
- attributeChangedCallback(t, e, s) {
721
+ attributeChangedCallback(t, e, i) {
720
722
  this.syncState();
721
723
  }
722
724
  get ativo() {
@@ -787,8 +789,8 @@ class x extends u {
787
789
  ));
788
790
  }
789
791
  syncState() {
790
- const t = this.ativo, e = this.disabled, s = this.getAttribute("tamanho") || this.getAttribute("size") || "md", r = this.getAttribute("label"), o = this.getAttribute("posicao-label") || "direita";
791
- if (this.containerElement.setAttribute("aria-checked", String(t)), e ? (this.containerElement.classList.add("ui-switch--disabled"), this.containerElement.setAttribute("tabindex", "-1"), this.containerElement.setAttribute("aria-disabled", "true")) : (this.containerElement.classList.remove("ui-switch--disabled"), this.containerElement.setAttribute("tabindex", "0"), this.containerElement.removeAttribute("aria-disabled")), t ? this.containerElement.classList.add("ui-switch--checked") : this.containerElement.classList.remove("ui-switch--checked"), this.containerElement.classList.remove("ui-switch--sm", "ui-switch--md", "ui-switch--lg"), ["sm", "md", "lg"].includes(s) ? this.containerElement.classList.add(`ui-switch--${s}`) : this.containerElement.classList.add("ui-switch--md"), o === "esquerda" ? this.containerElement.classList.add("ui-switch--label-esquerda") : this.containerElement.classList.remove("ui-switch--label-esquerda"), r)
792
+ const t = this.ativo, e = this.disabled, i = this.getAttribute("tamanho") || this.getAttribute("size") || "md", r = this.getAttribute("label"), o = this.getAttribute("posicao-label") || "direita";
793
+ if (this.containerElement.setAttribute("aria-checked", String(t)), e ? (this.containerElement.classList.add("ui-switch--disabled"), this.containerElement.setAttribute("tabindex", "-1"), this.containerElement.setAttribute("aria-disabled", "true")) : (this.containerElement.classList.remove("ui-switch--disabled"), this.containerElement.setAttribute("tabindex", "0"), this.containerElement.removeAttribute("aria-disabled")), t ? this.containerElement.classList.add("ui-switch--checked") : this.containerElement.classList.remove("ui-switch--checked"), this.containerElement.classList.remove("ui-switch--sm", "ui-switch--md", "ui-switch--lg"), ["sm", "md", "lg"].includes(i) ? this.containerElement.classList.add(`ui-switch--${i}`) : this.containerElement.classList.add("ui-switch--md"), o === "esquerda" ? this.containerElement.classList.add("ui-switch--label-esquerda") : this.containerElement.classList.remove("ui-switch--label-esquerda"), r)
792
794
  this.labelElement.textContent = r, this.labelElement.style.display = "inline", this.containerElement.setAttribute("aria-labelledby", this.labelId), this.containerElement.removeAttribute("aria-label");
793
795
  else {
794
796
  this.labelElement.style.display = "none", this.containerElement.removeAttribute("aria-labelledby");
@@ -810,17 +812,17 @@ class M extends x {
810
812
  h("ui-switch", x);
811
813
  h("ui-toggle", M);
812
814
  export {
813
- E as A,
814
- y as L,
815
+ L as A,
816
+ w as L,
815
817
  c as R,
816
- q as U,
817
- w as a,
818
+ V as U,
819
+ E as a,
818
820
  g as b,
819
- V as c,
820
- C as d,
821
+ R as c,
822
+ q as d,
821
823
  x as e,
822
824
  M as f,
823
- L as g,
824
- S as h,
825
+ z as g,
826
+ C as h,
825
827
  b as r
826
828
  };