@andespindola/ui-core 0.1.1 → 0.2.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 (271) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ui-accordion-item.cjs.entry.js +1 -1
  3. package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/ui-alert.cjs.entry.js +40 -0
  5. package/dist/cjs/ui-avatar-group.cjs.entry.js +17 -0
  6. package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/ui-badge.cjs.entry.js +7 -2
  8. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +23 -0
  9. package/dist/cjs/ui-breadcrumb.cjs.entry.js +17 -0
  10. package/dist/cjs/ui-button.cjs.entry.js +5 -3
  11. package/dist/cjs/ui-card.cjs.entry.js +1 -1
  12. package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
  13. package/dist/cjs/ui-container.cjs.entry.js +26 -0
  14. package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
  16. package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
  17. package/dist/cjs/ui-dropdown-menu.cjs.entry.js +1 -1
  18. package/dist/cjs/ui-field.cjs.entry.js +1 -1
  19. package/dist/cjs/ui-grid.cjs.entry.js +34 -0
  20. package/dist/cjs/ui-input.cjs.entry.js +10 -2
  21. package/dist/cjs/ui-label.cjs.entry.js +1 -1
  22. package/dist/cjs/ui-pagination.cjs.entry.js +63 -0
  23. package/dist/cjs/ui-popover.cjs.entry.js +1 -1
  24. package/dist/cjs/ui-progress.cjs.entry.js +1 -1
  25. package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
  26. package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
  27. package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
  28. package/dist/cjs/ui-section.cjs.entry.js +1 -1
  29. package/dist/cjs/ui-segmented.cjs.entry.js +31 -0
  30. package/dist/cjs/ui-select.cjs.entry.js +1 -1
  31. package/dist/cjs/ui-separator.cjs.entry.js +1 -1
  32. package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
  33. package/dist/cjs/ui-slider.cjs.entry.js +1 -1
  34. package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
  35. package/dist/cjs/ui-stack.cjs.entry.js +53 -0
  36. package/dist/cjs/ui-stat.cjs.entry.js +28 -0
  37. package/dist/cjs/ui-switch.cjs.entry.js +1 -1
  38. package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
  39. package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
  40. package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
  41. package/dist/cjs/ui-toast.cjs.entry.js +1 -1
  42. package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
  43. package/dist/cjs/ui-tooltip.cjs.entry.js +1 -1
  44. package/dist/cjs/uikit.cjs.js +1 -1
  45. package/dist/collection/collection-manifest.json +10 -0
  46. package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
  47. package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
  48. package/dist/collection/components/ui-alert/ui-alert.css +95 -0
  49. package/dist/collection/components/ui-alert/ui-alert.js +134 -0
  50. package/dist/collection/components/ui-avatar/ui-avatar.css +31 -0
  51. package/dist/collection/components/ui-avatar/ui-avatar.js +20 -1
  52. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +22 -0
  53. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +21 -0
  54. package/dist/collection/components/ui-badge/ui-badge.css +26 -0
  55. package/dist/collection/components/ui-badge/ui-badge.js +63 -1
  56. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.css +15 -0
  57. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +18 -0
  58. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.css +30 -0
  59. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +69 -0
  60. package/dist/collection/components/ui-button/ui-button.css +11 -1
  61. package/dist/collection/components/ui-button/ui-button.js +24 -2
  62. package/dist/collection/components/ui-card/ui-card.js +1 -1
  63. package/dist/collection/components/ui-checkbox/ui-checkbox.css +6 -2
  64. package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
  65. package/dist/collection/components/ui-container/ui-container.css +38 -0
  66. package/dist/collection/components/ui-container/ui-container.js +79 -0
  67. package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
  68. package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
  69. package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
  70. package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
  71. package/dist/collection/components/ui-field/ui-field.js +1 -1
  72. package/dist/collection/components/ui-grid/ui-grid.css +8 -0
  73. package/dist/collection/components/ui-grid/ui-grid.js +106 -0
  74. package/dist/collection/components/ui-input/ui-input.css +65 -14
  75. package/dist/collection/components/ui-input/ui-input.js +29 -1
  76. package/dist/collection/components/ui-label/ui-label.js +1 -1
  77. package/dist/collection/components/ui-pagination/ui-pagination.css +59 -0
  78. package/dist/collection/components/ui-pagination/ui-pagination.js +147 -0
  79. package/dist/collection/components/ui-popover/ui-popover.js +1 -1
  80. package/dist/collection/components/ui-progress/ui-progress.js +1 -1
  81. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  82. package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
  83. package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
  84. package/dist/collection/components/ui-section/ui-section.js +1 -1
  85. package/dist/collection/components/ui-segmented/ui-segmented.css +46 -0
  86. package/dist/collection/components/ui-segmented/ui-segmented.js +99 -0
  87. package/dist/collection/components/ui-select/ui-select.js +1 -1
  88. package/dist/collection/components/ui-separator/ui-separator.js +1 -1
  89. package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
  90. package/dist/collection/components/ui-slider/ui-slider.js +1 -1
  91. package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
  92. package/dist/collection/components/ui-stack/ui-stack.css +8 -0
  93. package/dist/collection/components/ui-stack/ui-stack.js +184 -0
  94. package/dist/collection/components/ui-stat/ui-stat.css +69 -0
  95. package/dist/collection/components/ui-stat/ui-stat.js +118 -0
  96. package/dist/collection/components/ui-switch/ui-switch.js +1 -1
  97. package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
  98. package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
  99. package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
  100. package/dist/collection/components/ui-toast/ui-toast.js +1 -1
  101. package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
  102. package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
  103. package/dist/components/{p-Bz9HyboB.js → p-BwNtNvTb.js} +1 -1
  104. package/dist/components/{p-fApcMAzN.js → p-CgsjJD8o.js} +1 -1
  105. package/dist/components/ui-accordion-item.js +1 -1
  106. package/dist/components/ui-accordion.js +1 -1
  107. package/dist/components/ui-alert.d.ts +11 -0
  108. package/dist/components/ui-alert.js +1 -0
  109. package/dist/components/ui-avatar-group.d.ts +11 -0
  110. package/dist/components/ui-avatar-group.js +1 -0
  111. package/dist/components/ui-avatar.js +1 -1
  112. package/dist/components/ui-badge.js +1 -1
  113. package/dist/components/ui-breadcrumb-item.d.ts +11 -0
  114. package/dist/components/ui-breadcrumb-item.js +1 -0
  115. package/dist/components/ui-breadcrumb.d.ts +11 -0
  116. package/dist/components/ui-breadcrumb.js +1 -0
  117. package/dist/components/ui-button.js +1 -1
  118. package/dist/components/ui-card.js +1 -1
  119. package/dist/components/ui-checkbox.js +1 -1
  120. package/dist/components/ui-container.d.ts +11 -0
  121. package/dist/components/ui-container.js +1 -0
  122. package/dist/components/ui-dialog.js +1 -1
  123. package/dist/components/ui-drawer.js +1 -1
  124. package/dist/components/ui-dropdown-item.js +1 -1
  125. package/dist/components/ui-dropdown-menu.js +1 -1
  126. package/dist/components/ui-field.js +1 -1
  127. package/dist/components/ui-grid.d.ts +11 -0
  128. package/dist/components/ui-grid.js +1 -0
  129. package/dist/components/ui-input.js +1 -1
  130. package/dist/components/ui-label.js +1 -1
  131. package/dist/components/ui-loading-overlay.js +1 -1
  132. package/dist/components/ui-pagination.d.ts +11 -0
  133. package/dist/components/ui-pagination.js +1 -0
  134. package/dist/components/ui-popover.js +1 -1
  135. package/dist/components/ui-progress.js +1 -1
  136. package/dist/components/ui-radio-group.js +1 -1
  137. package/dist/components/ui-reveal.js +1 -1
  138. package/dist/components/ui-scroll-progress.js +1 -1
  139. package/dist/components/ui-section.js +1 -1
  140. package/dist/components/ui-segmented.d.ts +11 -0
  141. package/dist/components/ui-segmented.js +1 -0
  142. package/dist/components/ui-select.js +1 -1
  143. package/dist/components/ui-separator.js +1 -1
  144. package/dist/components/ui-skeleton.js +1 -1
  145. package/dist/components/ui-slider.js +1 -1
  146. package/dist/components/ui-spinner.js +1 -1
  147. package/dist/components/ui-stack.d.ts +11 -0
  148. package/dist/components/ui-stack.js +1 -0
  149. package/dist/components/ui-stat.d.ts +11 -0
  150. package/dist/components/ui-stat.js +1 -0
  151. package/dist/components/ui-switch.js +1 -1
  152. package/dist/components/ui-tabs.js +1 -1
  153. package/dist/components/ui-textarea.js +1 -1
  154. package/dist/components/ui-theme-toggle.js +1 -1
  155. package/dist/components/ui-toast.js +1 -1
  156. package/dist/components/ui-toaster.js +1 -1
  157. package/dist/components/ui-tooltip.js +1 -1
  158. package/dist/esm/loader.js +1 -1
  159. package/dist/esm/ui-accordion-item.entry.js +1 -1
  160. package/dist/esm/ui-accordion.entry.js +1 -1
  161. package/dist/esm/ui-alert.entry.js +38 -0
  162. package/dist/esm/ui-avatar-group.entry.js +15 -0
  163. package/dist/esm/ui-avatar.entry.js +2 -2
  164. package/dist/esm/ui-badge.entry.js +8 -3
  165. package/dist/esm/ui-breadcrumb-item.entry.js +21 -0
  166. package/dist/esm/ui-breadcrumb.entry.js +15 -0
  167. package/dist/esm/ui-button.entry.js +5 -3
  168. package/dist/esm/ui-card.entry.js +1 -1
  169. package/dist/esm/ui-checkbox.entry.js +2 -2
  170. package/dist/esm/ui-container.entry.js +24 -0
  171. package/dist/esm/ui-dialog.entry.js +1 -1
  172. package/dist/esm/ui-drawer.entry.js +1 -1
  173. package/dist/esm/ui-dropdown-item.entry.js +1 -1
  174. package/dist/esm/ui-dropdown-menu.entry.js +1 -1
  175. package/dist/esm/ui-field.entry.js +1 -1
  176. package/dist/esm/ui-grid.entry.js +32 -0
  177. package/dist/esm/ui-input.entry.js +10 -2
  178. package/dist/esm/ui-label.entry.js +1 -1
  179. package/dist/esm/ui-pagination.entry.js +61 -0
  180. package/dist/esm/ui-popover.entry.js +1 -1
  181. package/dist/esm/ui-progress.entry.js +1 -1
  182. package/dist/esm/ui-radio-group.entry.js +1 -1
  183. package/dist/esm/ui-reveal.entry.js +1 -1
  184. package/dist/esm/ui-scroll-progress.entry.js +1 -1
  185. package/dist/esm/ui-section.entry.js +1 -1
  186. package/dist/esm/ui-segmented.entry.js +29 -0
  187. package/dist/esm/ui-select.entry.js +1 -1
  188. package/dist/esm/ui-separator.entry.js +1 -1
  189. package/dist/esm/ui-skeleton.entry.js +1 -1
  190. package/dist/esm/ui-slider.entry.js +1 -1
  191. package/dist/esm/ui-spinner.entry.js +1 -1
  192. package/dist/esm/ui-stack.entry.js +51 -0
  193. package/dist/esm/ui-stat.entry.js +26 -0
  194. package/dist/esm/ui-switch.entry.js +1 -1
  195. package/dist/esm/ui-tabs.entry.js +2 -2
  196. package/dist/esm/ui-textarea.entry.js +1 -1
  197. package/dist/esm/ui-theme-toggle.entry.js +1 -1
  198. package/dist/esm/ui-toast.entry.js +1 -1
  199. package/dist/esm/ui-toaster.entry.js +1 -1
  200. package/dist/esm/ui-tooltip.entry.js +1 -1
  201. package/dist/esm/uikit.js +1 -1
  202. package/dist/types/components/ui-alert/ui-alert.d.ts +17 -0
  203. package/dist/types/components/ui-avatar/ui-avatar.d.ts +2 -0
  204. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +6 -0
  205. package/dist/types/components/ui-badge/ui-badge.d.ts +7 -0
  206. package/dist/types/components/ui-breadcrumb/ui-breadcrumb.d.ts +3 -0
  207. package/dist/types/components/ui-breadcrumb-item/ui-breadcrumb-item.d.ts +8 -0
  208. package/dist/types/components/ui-button/ui-button.d.ts +2 -0
  209. package/dist/types/components/ui-container/ui-container.d.ts +8 -0
  210. package/dist/types/components/ui-grid/ui-grid.d.ts +10 -0
  211. package/dist/types/components/ui-input/ui-input.d.ts +3 -0
  212. package/dist/types/components/ui-pagination/ui-pagination.d.ts +15 -0
  213. package/dist/types/components/ui-segmented/ui-segmented.d.ts +15 -0
  214. package/dist/types/components/ui-stack/ui-stack.d.ts +17 -0
  215. package/dist/types/components/ui-stat/ui-stat.d.ts +13 -0
  216. package/dist/types/components.d.ts +552 -0
  217. package/dist/uikit/{p-29fe5b7f.entry.js → p-09895cd0.entry.js} +1 -1
  218. package/dist/uikit/p-0cba0d11.entry.js +1 -0
  219. package/dist/uikit/p-12db6a6e.entry.js +1 -0
  220. package/dist/uikit/{p-4a1abc1c.entry.js → p-1d016ea4.entry.js} +1 -1
  221. package/dist/uikit/p-25637424.entry.js +1 -0
  222. package/dist/uikit/p-2601d8b6.entry.js +1 -0
  223. package/dist/uikit/p-2de05aac.entry.js +1 -0
  224. package/dist/uikit/{p-e0652ddf.entry.js → p-3996590f.entry.js} +1 -1
  225. package/dist/uikit/{p-ed1111eb.entry.js → p-3fc062a6.entry.js} +1 -1
  226. package/dist/uikit/p-45e80e73.entry.js +1 -0
  227. package/dist/uikit/{p-97de6ea6.entry.js → p-55a23f91.entry.js} +1 -1
  228. package/dist/uikit/p-567f7496.entry.js +1 -0
  229. package/dist/uikit/p-5951a496.entry.js +1 -0
  230. package/dist/uikit/{p-9aa557d1.entry.js → p-595e146f.entry.js} +1 -1
  231. package/dist/uikit/p-635862e6.entry.js +1 -0
  232. package/dist/uikit/{p-777c6902.entry.js → p-67963692.entry.js} +1 -1
  233. package/dist/uikit/{p-7b2a9e68.entry.js → p-6c0e9809.entry.js} +1 -1
  234. package/dist/uikit/{p-b0aba484.entry.js → p-74b60a60.entry.js} +1 -1
  235. package/dist/uikit/p-7a3d85da.entry.js +1 -0
  236. package/dist/uikit/{p-38cbea54.entry.js → p-7f2c2924.entry.js} +1 -1
  237. package/dist/uikit/{p-8a238373.entry.js → p-81b45a43.entry.js} +1 -1
  238. package/dist/uikit/{p-d8e7ae10.entry.js → p-86ed6154.entry.js} +1 -1
  239. package/dist/uikit/p-94ad46a5.entry.js +1 -0
  240. package/dist/uikit/{p-9f0d4ae1.entry.js → p-95cd976e.entry.js} +1 -1
  241. package/dist/uikit/{p-777d8c7a.entry.js → p-979f6178.entry.js} +1 -1
  242. package/dist/uikit/p-97d4dbf4.entry.js +1 -0
  243. package/dist/uikit/p-9a4dc343.entry.js +1 -0
  244. package/dist/uikit/p-9a9590b9.entry.js +1 -0
  245. package/dist/uikit/p-a01305a5.entry.js +1 -0
  246. package/dist/uikit/p-a080f46a.entry.js +1 -0
  247. package/dist/uikit/p-a92a7b19.entry.js +1 -0
  248. package/dist/uikit/{p-d6c9bfbc.entry.js → p-a977a0db.entry.js} +1 -1
  249. package/dist/uikit/p-b2df8437.entry.js +1 -0
  250. package/dist/uikit/{p-58ed99a2.entry.js → p-c73c1009.entry.js} +1 -1
  251. package/dist/uikit/{p-83159bfc.entry.js → p-cd0ec835.entry.js} +1 -1
  252. package/dist/uikit/p-d20452b4.entry.js +1 -0
  253. package/dist/uikit/p-d7021157.entry.js +1 -0
  254. package/dist/uikit/{p-280337b0.entry.js → p-db07f9c5.entry.js} +1 -1
  255. package/dist/uikit/{p-9b43d670.entry.js → p-dca9f6f9.entry.js} +1 -1
  256. package/dist/uikit/p-ddd70374.entry.js +1 -0
  257. package/dist/uikit/{p-a0ccdb22.entry.js → p-faa98928.entry.js} +1 -1
  258. package/dist/uikit/{p-32df7fd0.entry.js → p-fd832f52.entry.js} +1 -1
  259. package/dist/uikit/uikit.esm.js +1 -1
  260. package/package.json +8 -3
  261. package/dist/uikit/p-0096eefe.entry.js +0 -1
  262. package/dist/uikit/p-11350db1.entry.js +0 -1
  263. package/dist/uikit/p-128ae3e4.entry.js +0 -1
  264. package/dist/uikit/p-24edfe3e.entry.js +0 -1
  265. package/dist/uikit/p-3c866608.entry.js +0 -1
  266. package/dist/uikit/p-5555523c.entry.js +0 -1
  267. package/dist/uikit/p-6fa4be86.entry.js +0 -1
  268. package/dist/uikit/p-9c57cf57.entry.js +0 -1
  269. package/dist/uikit/p-cf56c9ba.entry.js +0 -1
  270. package/dist/uikit/p-d13860dc.entry.js +0 -1
  271. package/dist/uikit/p-e54139a1.entry.js +0 -1
@@ -1 +1 @@
1
- import{t,p as i,H as e,c as s,h as r,a}from"./index.js";const o=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiChange=s(this,"uiChange"),this.checked=!1,this.disabled=!1,this.toggle=()=>{this.disabled||(this.checked=!this.checked,this.uiChange.emit(this.checked))},this.onKeyDown=t=>{" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),this.toggle())}}render(){return r(a,{key:"0650dcb564622448421a576b17093cfeeb7a3a6d"},r("button",{key:"09e705ce9642f4c11b84bc876577b9e55dab1e52",class:"switch",type:"button",role:"switch","aria-checked":this.checked?"true":"false",disabled:this.disabled,onClick:this.toggle,onKeyDown:this.onKeyDown},r("span",{key:"d237bee4724d5f9a199f4794217d1528c074caac",class:"thumb"})))}static get style(){return':host{display:inline-flex}.switch{position:relative;width:2.75rem;height:1.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease)}.switch:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.switch[aria-checked="true"]{background:var(--ui-accent);border-color:var(--ui-accent)}.switch:disabled{opacity:0.5;pointer-events:none}.thumb{position:absolute;top:50%;left:0.125rem;width:1.25rem;height:1.25rem;border-radius:9999px;background:var(--ui-on-status);box-shadow:var(--ui-shadow-sm);transform:translateY(-50%);transition:transform var(--ui-duration) var(--ui-ease)}.switch[aria-checked="true"] .thumb{transform:translate(1.25rem, -50%)}'}},[1,"ui-switch",{checked:[1540],disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["ui-switch"].forEach((i=>{"ui-switch"===i&&(customElements.get(t(i))||customElements.define(t(i),o))}))}n();const c=o,u=n;export{c as UiSwitch,u as defineCustomElement}
1
+ import{t,p as i,H as e,c as s,h as r,a}from"./index.js";const o=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiChange=s(this,"uiChange"),this.checked=!1,this.disabled=!1,this.toggle=()=>{this.disabled||(this.checked=!this.checked,this.uiChange.emit(this.checked))},this.onKeyDown=t=>{" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),this.toggle())}}render(){return r(a,{key:"018ccd47d567e5c16ce40a600c15a9e2281301d2"},r("button",{key:"7975d671d3c6d048b760b285a68e9ae832c93ebc",class:"switch",type:"button",role:"switch","aria-checked":this.checked?"true":"false",disabled:this.disabled,onClick:this.toggle,onKeyDown:this.onKeyDown},r("span",{key:"4ac740348a215ff97e0cae3bbbbd411163760792",class:"thumb"})))}static get style(){return':host{display:inline-flex}.switch{position:relative;width:2.75rem;height:1.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease)}.switch:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.switch[aria-checked="true"]{background:var(--ui-accent);border-color:var(--ui-accent)}.switch:disabled{opacity:0.5;pointer-events:none}.thumb{position:absolute;top:50%;left:0.125rem;width:1.25rem;height:1.25rem;border-radius:9999px;background:var(--ui-on-status);box-shadow:var(--ui-shadow-sm);transform:translateY(-50%);transition:transform var(--ui-duration) var(--ui-ease)}.switch[aria-checked="true"] .thumb{transform:translate(1.25rem, -50%)}'}},[1,"ui-switch",{checked:[1540],disabled:[4]}]);function c(){"undefined"!=typeof customElements&&["ui-switch"].forEach((i=>{"ui-switch"===i&&(customElements.get(t(i))||customElements.define(t(i),o))}))}c();const n=o,u=c;export{n as UiSwitch,u as defineCustomElement}
@@ -1 +1 @@
1
- import{t as a,p as e,H as t,c as r,h as i,a as s}from"./index.js";const o=e(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.uiChange=r(this,"uiChange"),this.value="",this.items=[],this.select=a=>{a!==this.value&&(this.value=a,this.uiChange.emit(a))}}render(){return i(s,{key:"8828dc9385a8c206a751e39fda9869116dda3001"},i("div",{key:"8e13dc53f1c03da5a52adb8ec86da91c78c502b2",class:"tablist",role:"tablist"},this.items.map((a=>{const e=a.value===this.value;return i("button",{key:a.value,class:{tab:!0,active:e},type:"button",role:"tab","aria-selected":e?"true":"false",onClick:()=>this.select(a.value)},a.label)}))),i("div",{key:"1e46e18417426af6053490cde8e7637e4bae7855",class:"panel",role:"tabpanel"},i("slot",{key:"efb63794fca013a54a1b2f261c4a72cd18ce3ef0",name:this.value})))}static get style(){return":host{display:block;font-family:var(--ui-font-sans)}.tablist{display:inline-flex;gap:0.25rem;padding:0.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip)}.tab{appearance:none;border:none;padding:0.375rem 0.875rem;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-muted);font:inherit;font-size:0.875rem;font-weight:500;cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.tab:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.tab:hover:not(.active){color:var(--ui-foreground)}.tab.active{background:var(--ui-panel-strong);color:var(--ui-foreground);box-shadow:var(--ui-shadow-sm)}.panel{margin-top:1.25rem;color:var(--ui-text-soft);font-size:0.9375rem;line-height:1.5}"}},[257,"ui-tabs",{value:[1537],items:[16]}]);function n(){"undefined"!=typeof customElements&&["ui-tabs"].forEach((e=>{"ui-tabs"===e&&(customElements.get(a(e))||customElements.define(a(e),o))}))}n();const u=o,c=n;export{u as UiTabs,c as defineCustomElement}
1
+ import{t as a,p as e,H as t,c as r,h as i,a as s}from"./index.js";const o=e(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.uiChange=r(this,"uiChange"),this.value="",this.items=[],this.select=a=>{a!==this.value&&(this.value=a,this.uiChange.emit(a))}}render(){return i(s,{key:"fc0926743b6a547c13660f574fc56abefc6e6c2e"},i("div",{key:"a1582c6234e1faaa5cb6b563a51ecf2192a88d40",class:"tablist",role:"tablist"},this.items.map((a=>{const e=a.value===this.value;return i("button",{key:a.value,class:{tab:!0,active:e},type:"button",role:"tab","aria-selected":e?"true":"false",onClick:()=>this.select(a.value)},a.label)}))),i("div",{key:"5d9b8d61e8005b7e6baa216ffd571f7b9403acd5",class:"panel",role:"tabpanel"},i("slot",{key:"8ba0cf22e6e837f038c2ec7fad8d533287325119",name:this.value})))}static get style(){return":host{display:block;font-family:var(--ui-font-sans)}.tablist{display:inline-flex;gap:0.25rem;padding:0.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip)}.tab{appearance:none;border:none;padding:0.375rem 0.875rem;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-muted);font:inherit;font-size:0.875rem;font-weight:500;cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.tab:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.tab:hover:not(.active){color:var(--ui-foreground)}.tab.active{background:var(--ui-panel-strong);color:var(--ui-foreground);box-shadow:var(--ui-shadow-sm)}.panel{margin-top:1.25rem;color:var(--ui-text-soft);font-size:0.9375rem;line-height:1.5}"}},[257,"ui-tabs",{value:[1537],items:[16]}]);function n(){"undefined"!=typeof customElements&&["ui-tabs"].forEach((e=>{"ui-tabs"===e&&(customElements.get(a(e))||customElements.define(a(e),o))}))}n();const u=o,c=n;export{u as UiTabs,c as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as i,c as r,h as a,a as s}from"./index.js";const o=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiInput=r(this,"uiInput"),this.uiChange=r(this,"uiChange"),this.value="",this.disabled=!1,this.invalid=!1,this.rows=4,this.onInput=e=>{const t=e.target;this.value=t.value,this.uiInput.emit(t.value)},this.onChange=e=>{this.uiChange.emit(e.target.value)}}render(){return a(s,{key:"f0bafb6320cd48642dac3b5f1e07399f88a78b03"},a("textarea",{key:"fc99c0b899dd17477928b9f38273fd822d46935b",class:{textarea:!0,invalid:this.invalid},name:this.name,rows:this.rows,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.invalid?"true":null,onInput:this.onInput,onChange:this.onChange},this.value))}static get style(){return":host{display:block}.textarea{width:100%;min-height:7rem;padding:0.75rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;line-height:1.5;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;resize:vertical}.textarea::placeholder{color:var(--ui-text-faint)}.textarea:hover:not(:disabled){border-color:var(--ui-border-strong)}.textarea:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.textarea:disabled{opacity:0.5;pointer-events:none}.textarea.invalid{border-color:var(--ui-danger)}.textarea.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}"}},[1,"ui-textarea",{value:[1025],placeholder:[1],disabled:[4],invalid:[4],name:[1],rows:[2]}]);function n(){"undefined"!=typeof customElements&&["ui-textarea"].forEach((t=>{"ui-textarea"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}n();const d=o,l=n;export{d as UiTextarea,l as defineCustomElement}
1
+ import{t as e,p as t,H as a,c as i,h as r,a as s}from"./index.js";const o=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiInput=i(this,"uiInput"),this.uiChange=i(this,"uiChange"),this.value="",this.disabled=!1,this.invalid=!1,this.rows=4,this.onInput=e=>{const t=e.target;this.value=t.value,this.uiInput.emit(t.value)},this.onChange=e=>{this.uiChange.emit(e.target.value)}}render(){return r(s,{key:"ba1b88ab3fa990a903e6d61f31fbbade7b58eb27"},r("textarea",{key:"f9ac9e1aff98e94b3562b812cef34fcc138cd350",class:{textarea:!0,invalid:this.invalid},name:this.name,rows:this.rows,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.invalid?"true":null,onInput:this.onInput,onChange:this.onChange},this.value))}static get style(){return":host{display:block}.textarea{width:100%;min-height:7rem;padding:0.75rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;line-height:1.5;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;resize:vertical}.textarea::placeholder{color:var(--ui-text-faint)}.textarea:hover:not(:disabled){border-color:var(--ui-border-strong)}.textarea:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.textarea:disabled{opacity:0.5;pointer-events:none}.textarea.invalid{border-color:var(--ui-danger)}.textarea.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}"}},[1,"ui-textarea",{value:[1025],placeholder:[1],disabled:[4],invalid:[4],name:[1],rows:[2]}]);function n(){"undefined"!=typeof customElements&&["ui-textarea"].forEach((t=>{"ui-textarea"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}n();const d=o,l=n;export{d as UiTextarea,l as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as i,H as t,c as r,h as n,a as o}from"./index.js";const s="ui-theme",a=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiThemeChange=r(this,"uiThemeChange"),this.isDark=!1,this.toggle=()=>{if(this.isDark=!this.isDark,"undefined"!=typeof window)try{window.localStorage.setItem(s,this.isDark?"dark":"light")}catch{}this.applyTheme(),this.uiThemeChange.emit(this.isDark?"dark":"light")}}connectedCallback(){this.isDark=this.resolveInitialTheme(),this.applyTheme()}resolveInitialTheme(){if("undefined"==typeof window)return!1;try{const e=window.localStorage.getItem(s);if("dark"===e)return!0;if("light"===e)return!1}catch{}return"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}applyTheme(){"undefined"!=typeof document&&document.documentElement.classList.toggle("dark",this.isDark)}renderIcon(){return this.isDark?n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})):n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("circle",{cx:"12",cy:"12",r:"4"}),n("line",{x1:"12",y1:"2",x2:"12",y2:"4"}),n("line",{x1:"12",y1:"20",x2:"12",y2:"22"}),n("line",{x1:"2",y1:"12",x2:"4",y2:"12"}),n("line",{x1:"20",y1:"12",x2:"22",y2:"12"}),n("line",{x1:"4.93",y1:"4.93",x2:"6.34",y2:"6.34"}),n("line",{x1:"17.66",y1:"17.66",x2:"19.07",y2:"19.07"}),n("line",{x1:"4.93",y1:"19.07",x2:"6.34",y2:"17.66"}),n("line",{x1:"17.66",y1:"6.34",x2:"19.07",y2:"4.93"}))}render(){return n(o,{key:"6b55c31df3938ab37336e4e4c4ed90e9b149a440"},n("button",{key:"7640122c47871bc67aad6f74b59229219fdb348b",class:"toggle",type:"button","aria-label":this.isDark?"Ativar tema claro":"Ativar tema escuro","aria-pressed":this.isDark?"true":"false",onClick:this.toggle},this.renderIcon()))}static get style(){return":host{display:inline-flex}.toggle{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);color:var(--ui-foreground);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.toggle:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.toggle:hover{color:var(--ui-accent)}"}},[1,"ui-theme-toggle",{isDark:[32]}]);function d(){"undefined"!=typeof customElements&&["ui-theme-toggle"].forEach((i=>{"ui-theme-toggle"===i&&(customElements.get(e(i))||customElements.define(e(i),a))}))}d();const l=a,u=d;export{l as UiThemeToggle,u as defineCustomElement}
1
+ import{t as e,p as i,H as t,c as r,h as n,a as o}from"./index.js";const s="ui-theme",a=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiThemeChange=r(this,"uiThemeChange"),this.isDark=!1,this.toggle=()=>{if(this.isDark=!this.isDark,"undefined"!=typeof window)try{window.localStorage.setItem(s,this.isDark?"dark":"light")}catch{}this.applyTheme(),this.uiThemeChange.emit(this.isDark?"dark":"light")}}connectedCallback(){this.isDark=this.resolveInitialTheme(),this.applyTheme()}resolveInitialTheme(){if("undefined"==typeof window)return!1;try{const e=window.localStorage.getItem(s);if("dark"===e)return!0;if("light"===e)return!1}catch{}return"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}applyTheme(){"undefined"!=typeof document&&document.documentElement.classList.toggle("dark",this.isDark)}renderIcon(){return this.isDark?n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})):n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("circle",{cx:"12",cy:"12",r:"4"}),n("line",{x1:"12",y1:"2",x2:"12",y2:"4"}),n("line",{x1:"12",y1:"20",x2:"12",y2:"22"}),n("line",{x1:"2",y1:"12",x2:"4",y2:"12"}),n("line",{x1:"20",y1:"12",x2:"22",y2:"12"}),n("line",{x1:"4.93",y1:"4.93",x2:"6.34",y2:"6.34"}),n("line",{x1:"17.66",y1:"17.66",x2:"19.07",y2:"19.07"}),n("line",{x1:"4.93",y1:"19.07",x2:"6.34",y2:"17.66"}),n("line",{x1:"17.66",y1:"6.34",x2:"19.07",y2:"4.93"}))}render(){return n(o,{key:"da51d59a9d5b28dec214d4fe63f5cebf78d80a51"},n("button",{key:"55436252c82f49628c4b0394905623bc5a78dc00",class:"toggle",type:"button","aria-label":this.isDark?"Ativar tema claro":"Ativar tema escuro","aria-pressed":this.isDark?"true":"false",onClick:this.toggle},this.renderIcon()))}static get style(){return":host{display:inline-flex}.toggle{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);color:var(--ui-foreground);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.toggle:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.toggle:hover{color:var(--ui-accent)}"}},[1,"ui-theme-toggle",{isDark:[32]}]);function d(){"undefined"!=typeof customElements&&["ui-theme-toggle"].forEach((i=>{"ui-theme-toggle"===i&&(customElements.get(e(i))||customElements.define(e(i),a))}))}d();const l=a,u=d;export{l as UiThemeToggle,u as defineCustomElement}
@@ -1 +1 @@
1
- import{U as o,d as p}from"./p-fApcMAzN.js";const s=o,r=p;export{s as UiToast,r as defineCustomElement}
1
+ import{U as o,d as s}from"./p-CgsjJD8o.js";const p=o,r=s;export{p as UiToast,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as s,H as e,h as i,a}from"./index.js";import{d as o}from"./p-fApcMAzN.js";const n=s(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.items=[],this.counter=0}async toast(t){const s=`toast-${this.counter++}-${Math.random().toString(36).slice(2)}`;this.items=[...this.items,{...t,id:s}]}remove(t){this.items=this.items.filter((s=>s.id!==t))}render(){return i(a,{key:"18ad65a18488bd061c2fa8eb2ad33c41a472d850"},i("div",{key:"de7ae9b62cd155d13c5a8d018ea2970d509e74e6",class:"container"},this.items.map((t=>i("ui-toast",{key:t.id,open:!0,heading:t.heading,description:t.description,variant:t.variant??"default",duration:t.duration??4e3,onUiClose:()=>this.remove(t.id)})))))}static get style(){return":host{display:contents}.container{position:fixed;bottom:0;right:0;z-index:100;display:flex;flex-direction:column;gap:0.5rem;padding:1rem;max-width:24rem}"}},[1,"ui-toaster",{items:[32],toast:[64]}]);function d(){"undefined"!=typeof customElements&&["ui-toaster","ui-toast"].forEach((s=>{switch(s){case"ui-toaster":customElements.get(t(s))||customElements.define(t(s),n);break;case"ui-toast":customElements.get(t(s))||o()}}))}d();const r=n,c=d;export{r as UiToaster,c as defineCustomElement}
1
+ import{t,p as s,H as e,h as i,a as o}from"./index.js";import{d as a}from"./p-CgsjJD8o.js";const n=s(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.items=[],this.counter=0}async toast(t){const s=`toast-${this.counter++}-${Math.random().toString(36).slice(2)}`;this.items=[...this.items,{...t,id:s}]}remove(t){this.items=this.items.filter((s=>s.id!==t))}render(){return i(o,{key:"eb3198a053270b41c8b632b91135987f04735ac5"},i("div",{key:"d37bf3710646977e7db39690f221e76360c43aee",class:"container"},this.items.map((t=>i("ui-toast",{key:t.id,open:!0,heading:t.heading,description:t.description,variant:t.variant??"default",duration:t.duration??4e3,onUiClose:()=>this.remove(t.id)})))))}static get style(){return":host{display:contents}.container{position:fixed;bottom:0;right:0;z-index:100;display:flex;flex-direction:column;gap:0.5rem;padding:1rem;max-width:24rem}"}},[1,"ui-toaster",{items:[32],toast:[64]}]);function r(){"undefined"!=typeof customElements&&["ui-toaster","ui-toast"].forEach((s=>{switch(s){case"ui-toaster":customElements.get(t(s))||customElements.define(t(s),n);break;case"ui-toast":customElements.get(t(s))||a()}}))}r();const c=n,d=r;export{c as UiToaster,d as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as i,H as s,h as e,a as o}from"./index.js";import{a,c as r,o as n,f as h,s as c}from"./p-CyBRmmbs.js";const d=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.content="",this.placement="top",this.openDelay=200,this.visible=!1,this.onEnter=()=>{this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>{this.visible=!0,requestAnimationFrame((()=>this.start()))}),this.openDelay)},this.onLeave=()=>{this.timer&&clearTimeout(this.timer),this.visible=!1,this.stop()}}disconnectedCallback(){this.stop(),this.timer&&clearTimeout(this.timer)}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=a(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[n(8),h(),c({padding:8})]}).then((({x:t,y:i})=>{Object.assign(this.floatingEl.style,{left:t+"px",top:i+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return e(o,{key:"5a3f2a7cf235a6c31c8a4d3ebd4f0d517c7e7b5d",onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,onFocusin:this.onEnter,onFocusout:this.onLeave},e("span",{key:"f626c5ec5686959449c5a2dd1c80551fd6b19087",class:"trigger",ref:t=>this.triggerEl=t},e("slot",{key:"08a19214efd0eba04d715b76a63a2cc53ed3a5c6"})),e("div",{key:"b598af62ab976599a5274cc85f01b4ab7543dabf",class:{tooltip:!0,"is-visible":this.visible},role:"tooltip",ref:t=>this.floatingEl=t},this.content))}get host(){return this}static get style(){return":host{display:inline-block}.trigger{display:inline-flex}.tooltip{position:fixed;top:0;left:0;z-index:50;width:max-content;max-width:18rem;padding:0.4rem 0.7rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;line-height:1.4;color:var(--ui-foreground);background:color-mix(in srgb, var(--ui-background) 90%, var(--ui-foreground) 8%);border:1px solid var(--ui-border-strong);box-shadow:var(--ui-shadow-lg);border-radius:var(--ui-radius-sm);pointer-events:none;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.tooltip.is-visible{opacity:1;transform:scale(1)}"}},[257,"ui-tooltip",{content:[1],placement:[1],openDelay:[2,"open-delay"],visible:[32]}]);function l(){"undefined"!=typeof customElements&&["ui-tooltip"].forEach((i=>{"ui-tooltip"===i&&(customElements.get(t(i))||customElements.define(t(i),d))}))}l();const u=d,p=l;export{u as UiTooltip,p as defineCustomElement}
1
+ import{t,p as i,H as s,h as e,a as o}from"./index.js";import{a,c as r,o as n,f as h,s as d}from"./p-CyBRmmbs.js";const l=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.content="",this.placement="top",this.openDelay=200,this.visible=!1,this.onEnter=()=>{this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>{this.visible=!0,requestAnimationFrame((()=>this.start()))}),this.openDelay)},this.onLeave=()=>{this.timer&&clearTimeout(this.timer),this.visible=!1,this.stop()}}disconnectedCallback(){this.stop(),this.timer&&clearTimeout(this.timer)}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=a(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[n(8),h(),d({padding:8})]}).then((({x:t,y:i})=>{Object.assign(this.floatingEl.style,{left:t+"px",top:i+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return e(o,{key:"5e20fbcdd1ae94f29596938ab465a863b46ed65b",onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,onFocusin:this.onEnter,onFocusout:this.onLeave},e("span",{key:"5f4e8b75930fee583f37f1977473c60f6e681ee6",class:"trigger",ref:t=>this.triggerEl=t},e("slot",{key:"eae9e842023fe1e4589d2af1889c6e6753bc9010"})),e("div",{key:"dc815b28e5d1dfbd91a970ce50b77fc8ecd3f5ab",class:{tooltip:!0,"is-visible":this.visible},role:"tooltip",ref:t=>this.floatingEl=t},this.content))}get host(){return this}static get style(){return":host{display:inline-block}.trigger{display:inline-flex}.tooltip{position:fixed;top:0;left:0;z-index:50;width:max-content;max-width:18rem;padding:0.4rem 0.7rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;line-height:1.4;color:var(--ui-foreground);background:color-mix(in srgb, var(--ui-background) 90%, var(--ui-foreground) 8%);border:1px solid var(--ui-border-strong);box-shadow:var(--ui-shadow-lg);border-radius:var(--ui-radius-sm);pointer-events:none;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.tooltip.is-visible{opacity:1;transform:scale(1)}"}},[257,"ui-tooltip",{content:[1],placement:[1],openDelay:[2,"open-delay"],visible:[32]}]);function c(){"undefined"!=typeof customElements&&["ui-tooltip"].forEach((i=>{"ui-tooltip"===i&&(customElements.get(t(i))||customElements.define(t(i),l))}))}c();const u=l,p=c;export{u as UiTooltip,p as defineCustomElement}
@@ -4,7 +4,7 @@ export { s as setNonce } from './index-DYwlrXg_.js';
4
4
  const defineCustomElements = async (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
6
  await globalScripts();
7
- return bootstrapLazy([["ui-loading-overlay",[[1,"ui-loading-overlay",{"visible":[4],"label":[1],"spinnerSize":[1,"spinner-size"]}]]],["ui-toaster",[[1,"ui-toaster",{"items":[32],"toast":[64]}]]],["ui-accordion",[[257,"ui-accordion"]]],["ui-accordion-item",[[257,"ui-accordion-item",{"heading":[1],"open":[1540]}]]],["ui-avatar",[[1,"ui-avatar",{"src":[1],"alt":[1],"fallback":[1]}]]],["ui-badge",[[257,"ui-badge",{"variant":[1]}]]],["ui-button",[[257,"ui-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"type":[1]}]]],["ui-card",[[257,"ui-card"]]],["ui-checkbox",[[1,"ui-checkbox",{"checked":[1540],"disabled":[4],"name":[1],"value":[1]}]]],["ui-dialog",[[257,"ui-dialog",{"open":[1540],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-drawer",[[257,"ui-drawer",{"open":[1540],"side":[513],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-dropdown-item",[[257,"ui-dropdown-item",{"disabled":[516]}]]],["ui-dropdown-menu",[[257,"ui-dropdown-menu",{"open":[1540],"placement":[1],"show":[64],"close":[64]},[[0,"uiDropdownClose","onItemClose"]],{"open":[{"onOpenChange":0}]}]]],["ui-field",[[257,"ui-field",{"label":[1],"description":[1],"error":[1],"required":[4],"fieldId":[1,"field-id"]}]]],["ui-input",[[1,"ui-input",{"value":[1025],"placeholder":[1],"type":[1],"disabled":[4],"invalid":[4],"name":[1]}]]],["ui-label",[[257,"ui-label"]]],["ui-popover",[[257,"ui-popover",{"open":[1540],"placement":[1],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-progress",[[1,"ui-progress",{"value":[2],"max":[2],"indeterminate":[4]}]]],["ui-radio-group",[[1,"ui-radio-group",{"value":[1025],"name":[1],"options":[16],"disabled":[4]}]]],["ui-reveal",[[257,"ui-reveal",{"delay":[2],"visible":[32]}]]],["ui-scroll-progress",[[1,"ui-scroll-progress",{"progress":[32]}]]],["ui-section",[[257,"ui-section",{"eyebrow":[1],"heading":[1],"description":[1]}]]],["ui-select",[[1,"ui-select",{"value":[1025],"disabled":[4],"name":[1],"options":[16],"placeholder":[1]}]]],["ui-separator",[[1,"ui-separator",{"orientation":[513]}]]],["ui-skeleton",[[1,"ui-skeleton"]]],["ui-slider",[[1,"ui-slider",{"value":[1026],"min":[2],"max":[2],"step":[2],"disabled":[4]}]]],["ui-switch",[[1,"ui-switch",{"checked":[1540],"disabled":[4]}]]],["ui-tabs",[[257,"ui-tabs",{"value":[1537],"items":[16]}]]],["ui-textarea",[[1,"ui-textarea",{"value":[1025],"placeholder":[1],"disabled":[4],"invalid":[4],"name":[1],"rows":[2]}]]],["ui-theme-toggle",[[1,"ui-theme-toggle",{"isDark":[32]}]]],["ui-tooltip",[[257,"ui-tooltip",{"content":[1],"placement":[1],"openDelay":[2,"open-delay"],"visible":[32]}]]],["ui-spinner",[[1,"ui-spinner",{"size":[1]}]]],["ui-toast",[[1,"ui-toast",{"open":[1540],"variant":[1],"heading":[1],"description":[1],"duration":[2],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]]], options);
7
+ return bootstrapLazy([["ui-loading-overlay",[[1,"ui-loading-overlay",{"visible":[4],"label":[1],"spinnerSize":[1,"spinner-size"]}]]],["ui-toaster",[[1,"ui-toaster",{"items":[32],"toast":[64]}]]],["ui-accordion",[[257,"ui-accordion"]]],["ui-accordion-item",[[257,"ui-accordion-item",{"heading":[1],"open":[1540]}]]],["ui-alert",[[257,"ui-alert",{"variant":[1],"heading":[1],"dismissible":[4],"open":[32]}]]],["ui-avatar",[[1,"ui-avatar",{"src":[1],"alt":[1],"fallback":[1],"status":[1]}]]],["ui-avatar-group",[[257,"ui-avatar-group"]]],["ui-badge",[[257,"ui-badge",{"variant":[1],"dot":[4],"removable":[4]}]]],["ui-breadcrumb",[[257,"ui-breadcrumb"]]],["ui-breadcrumb-item",[[257,"ui-breadcrumb-item",{"href":[1],"current":[4]}]]],["ui-button",[[257,"ui-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"type":[1],"full":[516]}]]],["ui-card",[[257,"ui-card"]]],["ui-checkbox",[[1,"ui-checkbox",{"checked":[1540],"disabled":[4],"name":[1],"value":[1]}]]],["ui-container",[[257,"ui-container",{"size":[1],"padded":[4]}]]],["ui-dialog",[[257,"ui-dialog",{"open":[1540],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-drawer",[[257,"ui-drawer",{"open":[1540],"side":[513],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-dropdown-item",[[257,"ui-dropdown-item",{"disabled":[516]}]]],["ui-dropdown-menu",[[257,"ui-dropdown-menu",{"open":[1540],"placement":[1],"show":[64],"close":[64]},[[0,"uiDropdownClose","onItemClose"]],{"open":[{"onOpenChange":0}]}]]],["ui-field",[[257,"ui-field",{"label":[1],"description":[1],"error":[1],"required":[4],"fieldId":[1,"field-id"]}]]],["ui-grid",[[257,"ui-grid",{"columns":[2],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ui-input",[[257,"ui-input",{"value":[1025],"placeholder":[1],"type":[1],"disabled":[4],"invalid":[4],"name":[1],"clearable":[4]}]]],["ui-label",[[257,"ui-label"]]],["ui-pagination",[[1,"ui-pagination",{"total":[2],"current":[1538],"siblings":[2]}]]],["ui-popover",[[257,"ui-popover",{"open":[1540],"placement":[1],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-progress",[[1,"ui-progress",{"value":[2],"max":[2],"indeterminate":[4]}]]],["ui-radio-group",[[1,"ui-radio-group",{"value":[1025],"name":[1],"options":[16],"disabled":[4]}]]],["ui-reveal",[[257,"ui-reveal",{"delay":[2],"visible":[32]}]]],["ui-scroll-progress",[[1,"ui-scroll-progress",{"progress":[32]}]]],["ui-section",[[257,"ui-section",{"eyebrow":[1],"heading":[1],"description":[1]}]]],["ui-segmented",[[1,"ui-segmented",{"items":[16],"value":[1537]}]]],["ui-select",[[1,"ui-select",{"value":[1025],"disabled":[4],"name":[1],"options":[16],"placeholder":[1]}]]],["ui-separator",[[1,"ui-separator",{"orientation":[513]}]]],["ui-skeleton",[[1,"ui-skeleton"]]],["ui-slider",[[1,"ui-slider",{"value":[1026],"min":[2],"max":[2],"step":[2],"disabled":[4]}]]],["ui-stack",[[257,"ui-stack",{"direction":[1],"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ui-stat",[[257,"ui-stat",{"label":[1],"value":[1],"delta":[1],"trend":[1]}]]],["ui-switch",[[1,"ui-switch",{"checked":[1540],"disabled":[4]}]]],["ui-tabs",[[257,"ui-tabs",{"value":[1537],"items":[16]}]]],["ui-textarea",[[1,"ui-textarea",{"value":[1025],"placeholder":[1],"disabled":[4],"invalid":[4],"name":[1],"rows":[2]}]]],["ui-theme-toggle",[[1,"ui-theme-toggle",{"isDark":[32]}]]],["ui-tooltip",[[257,"ui-tooltip",{"content":[1],"placement":[1],"openDelay":[2,"open-delay"],"visible":[32]}]]],["ui-spinner",[[1,"ui-spinner",{"size":[1]}]]],["ui-toast",[[1,"ui-toast",{"open":[1540],"variant":[1],"heading":[1],"description":[1],"duration":[2],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]]], options);
8
8
  };
9
9
 
10
10
  export { defineCustomElements };
@@ -17,7 +17,7 @@ const UiAccordionItem = class {
17
17
  };
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'a6753eab6e0dc158aadd47469da57bf73274cb99' }, h("details", { key: 'c98130b641f5cca70f27867ecc23769de0871733', open: this.open, onToggle: this.onToggle }, h("summary", { key: 'ed84e054379bc2f3133c675b5ddd8b6b69bb205c' }, h("span", { key: '49d66f1f5ade0c22d4b13f1ead38d712d8dc0310', class: "heading" }, this.heading), h("svg", { key: '74261819a62cf9dc397d8ca50c654897e080801b', class: "chevron", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'd69ebaaa12602c3c2d4a44d1c5b5ca6ed523f254', points: "6 9 12 15 18 9" }))), h("div", { key: '98178b28965c4595c0330299a358cc821424985f', class: "content" }, h("slot", { key: 'd633bc20693f7ac970e6fa1cf55760841243a870' })))));
20
+ return (h(Host, { key: '4b2e9ef0cda9117df86bef529c4bead45bbe8090' }, h("details", { key: '18c5ff6f8d9ac966d36240949670d84fc2603883', open: this.open, onToggle: this.onToggle }, h("summary", { key: '608bb56fe9b4558d50dc50be2edb922233de35aa' }, h("span", { key: '5d65f0199fff46a4a32139ab1565533dfb299ea9', class: "heading" }, this.heading), h("svg", { key: 'dd32e7223d4eab848185fe027e86892643e98070', class: "chevron", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'd9d02a5e5cfe20a77ae5cd6e383962656038d6d5', points: "6 9 12 15 18 9" }))), h("div", { key: 'b82b7a754b6eb160044b0eadf85ff7a8812e80a5', class: "content" }, h("slot", { key: 'c6a5b13158bbef248980737d9cea866178d2122c' })))));
21
21
  }
22
22
  };
23
23
  UiAccordionItem.style = uiAccordionItemCss();
@@ -7,7 +7,7 @@ const UiAccordion = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'e6332a0fa193f07001cf71f61531729529607b2b' }, h("slot", { key: '95ab7de2a8344e267fe97cae784b75635cafd289' })));
10
+ return (h(Host, { key: '839f17ea9b81b97b0ca49e89d9907c6a0571f049' }, h("slot", { key: '71badd4150a835acfaa0d5867287a30c8a0b7936' })));
11
11
  }
12
12
  };
13
13
  UiAccordion.style = uiAccordionCss();
@@ -0,0 +1,38 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiAlertCss = () => `:host{display:block}.alert{display:flex;align-items:flex-start;gap:0.75rem;padding:0.875rem 1rem;border:1px solid var(--ui-border);border-left:3px solid var(--ui-info);border-radius:var(--ui-radius);font-family:var(--ui-font-sans)}.indicator{display:inline-flex;flex-shrink:0;margin-top:0.0625rem}.icon{display:block}.body{flex:1;min-width:0;display:flex;flex-direction:column;gap:0.25rem}.heading{margin:0;font-size:0.875rem;font-weight:600;color:var(--ui-foreground)}.content{font-size:0.8125rem;color:var(--ui-text-soft)}.close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0.125rem;border:none;background:transparent;color:var(--ui-text-muted);cursor:pointer;border-radius:var(--ui-radius-sm);transition:color var(--ui-duration) var(--ui-ease)}.close:hover{color:var(--ui-foreground)}.variant-info{border-left-color:var(--ui-info);background:color-mix(in srgb, var(--ui-info) 12%, transparent)}.variant-info .indicator{color:var(--ui-info)}.variant-success{border-left-color:var(--ui-success);background:color-mix(in srgb, var(--ui-success) 12%, transparent)}.variant-success .indicator{color:var(--ui-success)}.variant-warning{border-left-color:var(--ui-warning);background:color-mix(in srgb, var(--ui-warning) 12%, transparent)}.variant-warning .indicator{color:var(--ui-warning)}.variant-danger{border-left-color:var(--ui-danger);background:color-mix(in srgb, var(--ui-danger) 12%, transparent)}.variant-danger .indicator{color:var(--ui-danger)}`;
4
+
5
+ const UiAlert = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.uiClose = createEvent(this, "uiClose");
9
+ /** Variante visual. */
10
+ this.variant = "info";
11
+ /** Exibe o botão de fechar. */
12
+ this.dismissible = false;
13
+ /** Controla a visibilidade interna do alerta. */
14
+ this.open = true;
15
+ this.dismiss = () => {
16
+ this.open = false;
17
+ this.uiClose.emit();
18
+ };
19
+ }
20
+ renderIcon() {
21
+ switch (this.variant) {
22
+ case "success":
23
+ return (h("svg", { class: "icon", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("path", { d: "M8 12l3 3 5-6" })));
24
+ case "warning":
25
+ return (h("svg", { class: "icon", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { d: "M10.3 3.3 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.3a2 2 0 0 0-3.4 0Z" }), h("line", { x1: "12", y1: "9", x2: "12", y2: "13" }), h("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })));
26
+ case "danger":
27
+ return (h("svg", { class: "icon", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })));
28
+ default:
29
+ return (h("svg", { class: "icon", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("circle", { cx: "12", cy: "12", r: "10" }), h("line", { x1: "12", y1: "11", x2: "12", y2: "16" }), h("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })));
30
+ }
31
+ }
32
+ render() {
33
+ return (h(Host, { key: '0de470e0aec991fe0ed4b47d4b14075d0153ef54' }, this.open && (h("div", { key: 'd17b7326f4c76fe99a32f402fb53a095721bf209', class: { alert: true, [`variant-${this.variant}`]: true }, role: "alert" }, h("span", { key: '124489a92f47b4c7751f9af674b13add775bf3d3', class: "indicator" }, this.renderIcon()), h("div", { key: '9c0741a48bee7225f7831b18ab492156c217f5a5', class: "body" }, this.heading && h("p", { key: 'f883db0bdd9b48cfc1915d209675f681cc846d95', class: "heading" }, this.heading), h("div", { key: '4a1de1b6a5f6fc84eead49a0a0357067b6c3dcab', class: "content" }, h("slot", { key: '21ac76a2d287bb4e8629bac25cd3753886d14b5d' }))), this.dismissible && (h("button", { key: 'f96e21942bed9489b296f76b6bdcc026f4351141', class: "close", type: "button", "aria-label": "Fechar", onClick: this.dismiss }, h("svg", { key: 'a64eaf844dbc6a0fd4fbc699deac73702a7ff300', width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("line", { key: 'e05e78664e7161af63d9e420a77726b52f14fff5', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'f6e62b74f93061762881b30866c105b332e79870', x1: "6", y1: "6", x2: "18", y2: "18" }))))))));
34
+ }
35
+ };
36
+ UiAlert.style = uiAlertCss();
37
+
38
+ export { UiAlert as ui_alert };
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiAvatarGroupCss = () => `:host{display:inline-flex}.group{display:inline-flex;align-items:center}::slotted(*){border-radius:var(--ui-radius-full)}::slotted(*:not(:first-child)){margin-left:-0.6rem}::slotted(ui-avatar){outline:2px solid var(--ui-background);border-radius:var(--ui-radius-full)}`;
4
+
5
+ const UiAvatarGroup = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return (h(Host, { key: '2413b9065333e5beb192143529b60daceefc11fe' }, h("div", { key: 'df93cb1e73bc05abfee09226111da32f50bf908d', class: "group" }, h("slot", { key: 'fa7fc7b57b009355e32c904cc78b46848403c0eb' }))));
11
+ }
12
+ };
13
+ UiAvatarGroup.style = uiAvatarGroupCss();
14
+
15
+ export { UiAvatarGroup as ui_avatar_group };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
2
 
3
- const uiAvatarCss = () => `:host{display:inline-block;}.avatar{display:inline-flex;align-items:center;justify-content:center;width:var(--ui-avatar-size, 2.5rem);height:var(--ui-avatar-size, 2.5rem);border-radius:var(--ui-radius-full);border:1px solid var(--ui-border);background:var(--ui-chip);overflow:hidden;font-family:var(--ui-font-sans)}.image{width:100%;height:100%;object-fit:cover}.fallback{font-size:0.875rem;font-weight:500;color:var(--ui-text-muted);line-height:1}`;
3
+ const uiAvatarCss = () => `:host{display:inline-block;}.avatar{display:inline-flex;align-items:center;justify-content:center;width:var(--ui-avatar-size, 2.5rem);height:var(--ui-avatar-size, 2.5rem);border-radius:var(--ui-radius-full);border:1px solid var(--ui-border);background:var(--ui-chip);overflow:hidden;font-family:var(--ui-font-sans)}.image{width:100%;height:100%;object-fit:cover}.fallback{font-size:0.875rem;font-weight:500;color:var(--ui-text-muted);line-height:1}.wrapper{position:relative;display:inline-flex}.status{position:absolute;right:0;bottom:0;width:28%;height:28%;min-width:0.55rem;min-height:0.55rem;border-radius:var(--ui-radius-full);border:2px solid var(--ui-background);box-sizing:border-box}.status-online{background:var(--ui-success)}.status-busy{background:var(--ui-danger)}.status-away{background:var(--ui-warning)}.status-offline{background:var(--ui-text-faint)}`;
4
4
 
5
5
  const UiAvatar = class {
6
6
  constructor(hostRef) {
@@ -9,7 +9,7 @@ const UiAvatar = class {
9
9
  this.alt = "";
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '7a6bbef0807d0d3dc25692a6bf87171131579e46' }, h("span", { key: '6b548ed4e5ec0dc7bb52dcb3660ffc188705439f', class: "avatar" }, this.src ? (h("img", { class: "image", src: this.src, alt: this.alt })) : (h("span", { class: "fallback" }, this.fallback)))));
12
+ return (h(Host, { key: '0a3b07acb18d2ddeecf3b072fcd6913dbc187474' }, h("span", { key: '9b6c302f378ef47385f43d24a3fe491cdec0bfe0', class: "wrapper" }, h("span", { key: '5093f8e180da9c3b1583da7f651bc69be89821b9', class: "avatar" }, this.src ? (h("img", { class: "image", src: this.src, alt: this.alt })) : (h("span", { class: "fallback" }, this.fallback))), this.status && (h("span", { key: '920d70149458e747aef1ac35c945a0b403986928', class: `status status-${this.status}`, "aria-label": this.status })))));
13
13
  }
14
14
  };
15
15
  UiAvatar.style = uiAvatarCss();
@@ -1,15 +1,20 @@
1
- import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DYwlrXg_.js';
2
2
 
3
- const uiBadgeCss = () => `:host{display:inline-flex}.badge{display:inline-flex;align-items:center;gap:0.25rem;border:1px solid transparent;border-radius:var(--ui-radius-full);padding:0.25rem 0.75rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;backdrop-filter:blur(22px)}.variant-default{background:var(--ui-chip);border-color:var(--ui-border);color:var(--ui-text-soft)}.variant-solid{background:var(--ui-accent);color:var(--ui-accent-contrast)}.variant-outline{border-color:var(--ui-border-strong);color:var(--ui-foreground)}.variant-success{background:color-mix(in srgb, var(--ui-success) 15%, transparent);color:var(--ui-success)}.variant-warning{background:color-mix(in srgb, var(--ui-warning) 15%, transparent);color:var(--ui-warning)}.variant-danger{background:color-mix(in srgb, var(--ui-danger) 15%, transparent);color:var(--ui-danger)}.variant-info{background:color-mix(in srgb, var(--ui-info) 15%, transparent);color:var(--ui-info)}`;
3
+ const uiBadgeCss = () => `:host{display:inline-flex}.badge{display:inline-flex;align-items:center;gap:0.25rem;border:1px solid transparent;border-radius:var(--ui-radius-full);padding:0.25rem 0.75rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;backdrop-filter:blur(22px)}.variant-default{background:var(--ui-chip);border-color:var(--ui-border);color:var(--ui-text-soft)}.variant-solid{background:var(--ui-accent);color:var(--ui-accent-contrast)}.variant-outline{border-color:var(--ui-border-strong);color:var(--ui-foreground)}.variant-success{background:color-mix(in srgb, var(--ui-success) 15%, transparent);color:var(--ui-success)}.variant-warning{background:color-mix(in srgb, var(--ui-warning) 15%, transparent);color:var(--ui-warning)}.variant-danger{background:color-mix(in srgb, var(--ui-danger) 15%, transparent);color:var(--ui-danger)}.variant-info{background:color-mix(in srgb, var(--ui-info) 15%, transparent);color:var(--ui-info)}.dot{width:0.4rem;height:0.4rem;border-radius:var(--ui-radius-full);background:currentColor}.remove{display:inline-flex;align-items:center;justify-content:center;margin:0 -0.25rem 0 0.125rem;padding:0.125rem;border:none;border-radius:var(--ui-radius-full);background:transparent;color:inherit;cursor:pointer;opacity:0.7;transition:opacity var(--ui-duration) var(--ui-ease)}.remove:hover{opacity:1}`;
4
4
 
5
5
  const UiBadge = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
+ this.uiRemove = createEvent(this, "uiRemove");
8
9
  /** Variante visual. */
9
10
  this.variant = "default";
11
+ /** Exibe um ponto colorido à esquerda. */
12
+ this.dot = false;
13
+ /** Exibe um botão para remover o badge. */
14
+ this.removable = false;
10
15
  }
11
16
  render() {
12
- return (h(Host, { key: '260e9e23ffa9a624e17e5a794217402ab2167f31' }, h("span", { key: '1b0d40c5b9a46c5928132d050e3c2f9e3bcd4ea8', class: { badge: true, [`variant-${this.variant}`]: true } }, h("slot", { key: '9680659040a4d48bdb53415e40bbbef9819063d9' }))));
17
+ return (h(Host, { key: '30760a471c805c011e45b1ee2c59507de0774b3c' }, h("span", { key: 'f06905297a3c5641634104a014452737d34918cc', class: { badge: true, [`variant-${this.variant}`]: true } }, this.dot && h("span", { key: '255e4debacda174708abb165159347c6aeeffced', class: "dot" }), h("slot", { key: 'e8fb22f25b0b1c805289e3e6d1108a1cb93b5e28' }), this.removable && (h("button", { key: 'a30d3213f31780e4c3fa80d98b45ae539b711f43', class: "remove", type: "button", "aria-label": "Remover", onClick: () => this.uiRemove.emit() }, h("svg", { key: 'e57df3139096ea131fa1c3fbddf51f6507423346', viewBox: "0 0 24 24", width: "12", height: "12", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round" }, h("path", { key: 'da3810852846ac9cda68957d7dadcb3737be348d', d: "M18 6 6 18M6 6l12 12" })))))));
13
18
  }
14
19
  };
15
20
  UiBadge.style = uiBadgeCss();
@@ -0,0 +1,21 @@
1
+ import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiBreadcrumbItemCss = () => `:host{display:inline-flex;align-items:center}.link{color:var(--ui-text-muted);text-decoration:none;transition:color var(--ui-duration) var(--ui-ease)}.link:hover{color:var(--ui-accent)}.current{color:var(--ui-foreground);font-weight:500}.separator{display:inline-flex;align-items:center;margin:0 0.5rem;color:var(--ui-text-faint)}.separator svg{display:block}`;
4
+
5
+ const UiBreadcrumbItem = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /** Indica o item atual (página corrente). */
9
+ this.current = false;
10
+ }
11
+ renderSeparator() {
12
+ return (h("span", { class: "separator", "aria-hidden": "true" }, h("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { points: "9 18 15 12 9 6" }))));
13
+ }
14
+ render() {
15
+ const isLink = this.href && !this.current;
16
+ return (h(Host, { key: '20d22dde2f7b6b4c03a76b4e6be851a0c4cd39d5' }, isLink ? (h("a", { class: "link", href: this.href }, h("slot", null))) : (h("span", { class: "current", "aria-current": this.current ? "page" : undefined }, h("slot", null))), !this.current && this.renderSeparator()));
17
+ }
18
+ };
19
+ UiBreadcrumbItem.style = uiBreadcrumbItemCss();
20
+
21
+ export { UiBreadcrumbItem as ui_breadcrumb_item };
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiBreadcrumbCss = () => `:host{display:block}ol{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;margin:0;padding:0;list-style:none;font-family:var(--ui-font-sans);font-size:0.875rem}`;
4
+
5
+ const UiBreadcrumb = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return (h(Host, { key: '3c86ea43e5dde2c8486b49f8c2ece55f66c4dec5' }, h("nav", { key: '6da35c2ffc4b7c2aa13d3321ed6227d97be59e80', "aria-label": "breadcrumb" }, h("ol", { key: '567cb7aaf4e8ae8f1e15369b45b482104f1264da' }, h("slot", { key: '5f942426d1195ea0eae8256ebfb01d25b6f350ab' })))));
11
+ }
12
+ };
13
+ UiBreadcrumb.style = uiBreadcrumbCss();
14
+
15
+ export { UiBreadcrumb as ui_breadcrumb };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
2
 
3
- const uiButtonCss = () => `:host{display:inline-block}.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;white-space:nowrap;border:1px solid transparent;border-radius:var(--ui-radius-full);font-family:var(--ui-font-sans);font-weight:500;cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.btn:active{transform:scale(0.98)}.btn:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.btn:disabled{pointer-events:none;opacity:0.5}.size-sm{height:2.25rem;padding:0 1rem;font-size:0.75rem}.size-md{height:2.75rem;padding:0 1.25rem;font-size:0.875rem}.size-lg{height:3rem;padding:0 1.5rem;font-size:1rem}.size-icon{height:2.5rem;width:2.5rem;padding:0}.variant-solid{background:var(--ui-accent);color:var(--ui-accent-contrast);box-shadow:var(--ui-shadow)}.variant-solid:hover{filter:brightness(1.1)}.variant-default{background:var(--ui-panel-strong);color:var(--ui-foreground);border-color:var(--ui-border);backdrop-filter:blur(22px)}.variant-default:hover{border-color:var(--ui-border-strong)}.variant-subtle{background:var(--ui-chip);color:var(--ui-foreground);border-color:var(--ui-border);backdrop-filter:blur(22px)}.variant-subtle:hover{background:var(--ui-panel)}.variant-outline{color:var(--ui-foreground);border-color:var(--ui-border-strong)}.variant-outline:hover{background:var(--ui-chip)}.variant-ghost{color:var(--ui-text-soft)}.variant-ghost:hover{background:var(--ui-chip)}.variant-destructive{background:var(--ui-danger);color:var(--ui-on-status)}.variant-destructive:hover{filter:brightness(1.1)}.variant-link{color:var(--ui-accent);text-underline-offset:4px}.variant-link:hover{text-decoration:underline}.spinner{width:1rem;height:1rem;border-radius:9999px;border:2px solid currentColor;border-top-color:transparent;animation:ui-button-spin 0.7s linear infinite}@keyframes ui-button-spin{to{transform:rotate(360deg)}}`;
3
+ const uiButtonCss = () => `:host{display:inline-block}:host([full]){display:block;width:100%}:host([full]) .btn{width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;white-space:nowrap;border:1px solid transparent;border-radius:var(--ui-radius-full);font-family:var(--ui-font-sans);font-weight:500;cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.btn:active{transform:scale(0.98)}.btn:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.btn:disabled{pointer-events:none;opacity:0.5}.size-sm{height:2.25rem;padding:0 1rem;font-size:0.75rem}.size-md{height:2.75rem;padding:0 1.25rem;font-size:0.875rem}.size-lg{height:3rem;padding:0 1.5rem;font-size:1rem}.size-icon{height:2.5rem;width:2.5rem;padding:0}.variant-solid{background:var(--ui-accent);color:var(--ui-accent-contrast);box-shadow:var(--ui-shadow)}.variant-solid:hover{filter:brightness(1.1)}.variant-default{background:var(--ui-panel-strong);color:var(--ui-foreground);border-color:var(--ui-border);backdrop-filter:blur(22px)}.variant-default:hover{border-color:var(--ui-border-strong)}.variant-subtle{background:var(--ui-chip);color:var(--ui-foreground);border-color:var(--ui-border);backdrop-filter:blur(22px)}.variant-subtle:hover{background:var(--ui-panel)}.variant-outline{color:var(--ui-foreground);border-color:color-mix(in srgb, var(--ui-foreground) 30%, transparent)}.variant-outline:hover{background:var(--ui-chip);border-color:color-mix(in srgb, var(--ui-foreground) 45%, transparent)}.variant-ghost{color:var(--ui-text-soft)}.variant-ghost:hover{background:var(--ui-chip)}.variant-destructive{background:var(--ui-danger);color:var(--ui-on-status)}.variant-destructive:hover{filter:brightness(1.1)}.variant-link{color:var(--ui-accent);text-underline-offset:4px}.variant-link:hover{text-decoration:underline}.spinner{width:1rem;height:1rem;border-radius:9999px;border:2px solid currentColor;border-top-color:transparent;animation:ui-button-spin 0.7s linear infinite}@keyframes ui-button-spin{to{transform:rotate(360deg)}}`;
4
4
 
5
5
  const UiButton = class {
6
6
  constructor(hostRef) {
@@ -15,13 +15,15 @@ const UiButton = class {
15
15
  this.loading = false;
16
16
  /** Tipo do botão nativo. */
17
17
  this.type = "button";
18
+ /** Ocupa 100% da largura disponível. */
19
+ this.full = false;
18
20
  }
19
21
  render() {
20
- return (h(Host, { key: 'bf18a1f72babada2698ce42f54bf2d73b0d41d0b' }, h("button", { key: 'f08a766e14d139d7031dac4fa5846fbc0749328f', class: {
22
+ return (h(Host, { key: 'fa9886a20cac8424b127be543c0fd1ad04cc2fb1' }, h("button", { key: 'c54077dabce85b286733efcae8a08a435b81d72e', class: {
21
23
  btn: true,
22
24
  [`variant-${this.variant}`]: true,
23
25
  [`size-${this.size}`]: true,
24
- }, type: this.type, disabled: this.disabled || this.loading, "aria-busy": this.loading ? "true" : null }, this.loading && h("span", { key: 'a3e87dd124b697050a657b9957884c231aa58c54', class: "spinner", "aria-hidden": "true" }), h("slot", { key: '87a720f06602011042d70a91918a0b2157abb163' }))));
26
+ }, type: this.type, disabled: this.disabled || this.loading, "aria-busy": this.loading ? "true" : null }, this.loading && h("span", { key: '8e557bd098d5655be256ea7fc0748990b7f11026', class: "spinner", "aria-hidden": "true" }), h("slot", { key: '36946d065411700928e3541f351a3f6f75018ae9' }))));
25
27
  }
26
28
  };
27
29
  UiButton.style = uiButtonCss();
@@ -7,7 +7,7 @@ const UiCard = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '1608f7f7bd8addc04064a70965fdb28a67a1abef' }, h("div", { key: '976e8fa507f78649789161f5eaaa2308547c7040', class: "card" }, h("slot", { key: '803ef160438006449051c2068246fd6f20562cc5', name: "title" }), h("slot", { key: '84bfdd0d56b015d09598e53e0002b9ac5e69934d', name: "description" }), h("slot", { key: '97d8522f426b54ab6a8b51038bd8f2b8e2413d0e' }), h("slot", { key: '8b36ab658e61cdebb391d6bb8dc427d809a81b30', name: "footer" }))));
10
+ return (h(Host, { key: '39ddf0a9974086fcc9ad3fc89f1e1d6858e2fead' }, h("div", { key: 'e8e510a468dc662f9fc76affce785a9b37edc205', class: "card" }, h("slot", { key: 'ee92d4bc2fa1738d84689d989d4e113d515acc83', name: "title" }), h("slot", { key: '6e87c2406474b6ea2aa370d1602ff02a89c4f4d5', name: "description" }), h("slot", { key: 'a388b4bc2d9c5e328ade55ac38c870afc9ade82c' }), h("slot", { key: '071ce297db672e332cf2d354a395b07e100b16a1', name: "footer" }))));
11
11
  }
12
12
  };
13
13
  UiCard.style = uiCardCss();
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-DYwlrXg_.js';
2
2
 
3
- const uiCheckboxCss = () => `:host{display:inline-flex}.checkbox{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-sm);background:var(--ui-panel);cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.checkbox:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.checkbox[aria-checked="true"]{background:var(--ui-accent);border-color:var(--ui-accent)}.checkbox:disabled{opacity:0.5;pointer-events:none}.check{width:0.875rem;height:0.875rem;color:var(--ui-accent-contrast);opacity:0;transform:scale(0.6);transition:all var(--ui-duration) var(--ui-ease)}.checkbox[aria-checked="true"] .check{opacity:1;transform:scale(1)}`;
3
+ const uiCheckboxCss = () => `:host{display:inline-flex}.checkbox{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:1.5px solid color-mix(in srgb, var(--ui-foreground) 32%, transparent);border-radius:var(--ui-radius-sm);background:var(--ui-chip);cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.checkbox:hover:not(:disabled):not([aria-checked="true"]){border-color:var(--ui-accent)}.checkbox:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.checkbox[aria-checked="true"]{background:var(--ui-accent);border-color:var(--ui-accent)}.checkbox:disabled{opacity:0.5;pointer-events:none}.check{width:0.875rem;height:0.875rem;color:var(--ui-accent-contrast);opacity:0;transform:scale(0.6);transition:all var(--ui-duration) var(--ui-ease)}.checkbox[aria-checked="true"] .check{opacity:1;transform:scale(1)}`;
4
4
 
5
5
  const UiCheckbox = class {
6
6
  constructor(hostRef) {
@@ -24,7 +24,7 @@ const UiCheckbox = class {
24
24
  };
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: '3702acd47b1980ddf23df427a68c69ee782756e4' }, h("button", { key: '8cc709719dd004d01ca6ed82c0fab53ed38f8962', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("svg", { key: 'fa4875d7a2809133496a543fa6efd0de8c8c4c06', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: '34a601d25b20fdf1ad697349531888648795f4bf', points: "20 6 9 17 4 12" })))));
27
+ return (h(Host, { key: '73477b35af6a093e87ae8a5b33232690888ca98c' }, h("button", { key: '235b0102bbdd9a0ef23c3230acbba9aebdb06898', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("svg", { key: '3aaa64d1d173991b2c785298586aab66471e9285', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'baaca1ba97901e5a9d4e97640221f35cdeb02351', points: "20 6 9 17 4 12" })))));
28
28
  }
29
29
  };
30
30
  UiCheckbox.style = uiCheckboxCss();
@@ -0,0 +1,24 @@
1
+ import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiContainerCss = () => `:host{display:block;width:100%}.container{margin-inline:auto;width:100%;font-family:var(--ui-font-sans)}.size-sm{max-width:40rem}.size-md{max-width:48rem}.size-lg{max-width:64rem}.size-xl{max-width:80rem}.size-full{max-width:none}.padded{padding-inline:1.25rem}@media (min-width: 640px){.padded{padding-inline:2rem}}`;
4
+
5
+ const UiContainer = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /** Largura máxima do container. */
9
+ this.size = "lg";
10
+ /** Aplica padding lateral responsivo. */
11
+ this.padded = true;
12
+ }
13
+ render() {
14
+ const classes = {
15
+ container: true,
16
+ [`size-${this.size}`]: true,
17
+ padded: this.padded,
18
+ };
19
+ return (h(Host, { key: '4f00ee39f0ae347fafac349ee8e42c991c8013dd' }, h("div", { key: 'a0f8f0c6d418f119c6631d0387f9328af8fbb416', class: classes }, h("slot", { key: '86178f8371c958123fcf8b7e6bfe059aeed9f690' }))));
20
+ }
21
+ };
22
+ UiContainer.style = uiContainerCss();
23
+
24
+ export { UiContainer as ui_container };
@@ -42,7 +42,7 @@ const UiDialog = class {
42
42
  this.open = false;
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: 'df811bec2a6a250e90cbb6d9c85202b2d3c2c964' }, h("dialog", { key: '49572b35ec17863fb83e9973c548a8cafa0308b6', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: '53c82b2c7a1b8831d64a060b4665a60bbdc7e39a', class: "content" }, h("slot", { key: 'b398a9692fdf2826b86125723bc232791e6b9e4b' })))));
45
+ return (h(Host, { key: 'e6c34700dc04fd3754eedeab279a67cd3997fb3d' }, h("dialog", { key: 'fdb23f89bd4b9aef79abaec586bf39add47ce013', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: '8a86f47c263d4fac68debdcef9cc8ed7e0be7ca8', class: "content" }, h("slot", { key: 'fe9d9105c13670104b5a60c939f9256b44694e8e' })))));
46
46
  }
47
47
  static get watchers() { return {
48
48
  "open": [{
@@ -44,7 +44,7 @@ const UiDrawer = class {
44
44
  this.open = false;
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: '9f2f27dcc087f608a3aeed4fe64a65eb8fe4011b' }, h("dialog", { key: '92471e4a732f00e4187efb37cbba553651c2f9dd', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: 'd6706d4943f8559aee320b6df509138c44857bf0', class: "content" }, h("slot", { key: '5cb218bde44c73fd02c640c1d0da736427f2707c' })))));
47
+ return (h(Host, { key: '5d44e7d604eab21d2d30d5cbaaa225658c8e7e71' }, h("dialog", { key: 'ecdfc2057a8864f6b8dc961ddcd51c3f349b2b54', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: 'c14965ebb97a2c77d06c4a50466d00bf4036bafa', class: "content" }, h("slot", { key: '2bdbb4cbd2cd30ade870090c5383d398cfb6772b' })))));
48
48
  }
49
49
  static get watchers() { return {
50
50
  "open": [{
@@ -16,7 +16,7 @@ const UiDropdownItem = class {
16
16
  };
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '57af1c437b63fb19cfe297741b2b0f8d34564be9' }, h("button", { key: 'e3df81eb4c921d8b447c46da5140d21fb8126417', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: '162d876af4ed9913c79964afcdceda7539feb95b' }))));
19
+ return (h(Host, { key: 'a73d394ff94b232151c37e749d398f4485f46bde' }, h("button", { key: '3827857b88fc5d63681e80dc2cc470b58faf69e1', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: 'a6dbd79c7b171ef6a8a53aa5da39fbca37725e1c' }))));
20
20
  }
21
21
  get host() { return getElement(this); }
22
22
  };
@@ -81,7 +81,7 @@ const UiDropdownMenu = class {
81
81
  this.cleanup = undefined;
82
82
  }
83
83
  render() {
84
- return (h(Host, { key: '65adc044508abd9ebf4b866fba02058bdcd22d5d' }, h("span", { key: 'e70a23e1b41c7936ab1dc3a87cd3593b3db43088', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: '40f2226b6ba6f1d3032cd2b2f2477fbcdf9617b5', name: "trigger" })), h("div", { key: '6af4ab3c98a9334d805e75da724d5572e4c986aa', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, h("slot", { key: '7f99ba16ab9544d5cf63b28f77f18fd4d0fbbed2' }))));
84
+ return (h(Host, { key: '6d1ac3cd9096527745a84f24443a3b230bf2aaf0' }, h("span", { key: '5594e37030b1fd69260b4de30393aacfbc636ca3', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: '763b6bf28fe4c79a13a2cc5a620d19e51ae5f6e2', name: "trigger" })), h("div", { key: '0bec01181593abbcb1a8634eb027ce0cef0d860d', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, h("slot", { key: '1b1fa528fc1186c81dd433d0cb9b775df8357641' }))));
85
85
  }
86
86
  get host() { return getElement(this); }
87
87
  static get watchers() { return {
@@ -9,7 +9,7 @@ const UiField = class {
9
9
  this.required = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '5656c6d47f71364d26db0e4998e64b8780ee3840' }, h("div", { key: '6adc292e3ae0829c7f5533b2be732644f7e95dab', class: "field" }, this.label && (h("label", { key: 'e7c2e2fa1c3b0bc6edadb1385062fe53e5b2f5f7', class: "label", htmlFor: this.fieldId }, this.label, this.required && (h("span", { key: '06e56259184b4618eb9f2b3602ebb691e6b0ef1b', class: "required", "aria-hidden": "true" }, " *")))), h("slot", { key: 'bd44f4f425f257671eff1ed536051fb318671afc' }), this.error ? (h("p", { class: "error", role: "alert" }, this.error)) : (this.description && h("p", { class: "description" }, this.description)))));
12
+ return (h(Host, { key: '1910a6ce3a389ab7faa9e3b46e0397e6a9bfbaab' }, h("div", { key: 'fb76fb030b9af9129578f7b2f0b85eaffefc8d67', class: "field" }, this.label && (h("label", { key: '659a7c0982360c133891a1a22a98cdae32a529ed', class: "label", htmlFor: this.fieldId }, this.label, this.required && (h("span", { key: 'de93f19b8a2dd063df1175c00c68c0b7c9b092d6', class: "required", "aria-hidden": "true" }, " *")))), h("slot", { key: 'a510f107aab90a202c178f1d22727689db828fdc' }), this.error ? (h("p", { class: "error", role: "alert" }, this.error)) : (this.description && h("p", { class: "description" }, this.description)))));
13
13
  }
14
14
  };
15
15
  UiField.style = uiFieldCss();
@@ -0,0 +1,32 @@
1
+ import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiGridCss = () => `:host{display:block}.grid{display:grid;font-family:var(--ui-font-sans)}`;
4
+
5
+ const GAP = {
6
+ xs: "0.25rem",
7
+ sm: "0.5rem",
8
+ md: "1rem",
9
+ lg: "1.5rem",
10
+ xl: "2rem",
11
+ };
12
+ const UiGrid = class {
13
+ constructor(hostRef) {
14
+ registerInstance(this, hostRef);
15
+ /** Número de colunas da grade. */
16
+ this.columns = 12;
17
+ /** Espaçamento entre células. */
18
+ this.gap = "md";
19
+ }
20
+ render() {
21
+ const style = {
22
+ gridTemplateColumns: this.minItemWidth
23
+ ? `repeat(auto-fit, minmax(${this.minItemWidth}, 1fr))`
24
+ : `repeat(${this.columns}, minmax(0, 1fr))`,
25
+ gap: GAP[this.gap],
26
+ };
27
+ return (h(Host, { key: '465a816e064af42d8282185ee92e32477a6112fd' }, h("div", { key: 'da2e151c56959ced55477e3fe6c99aa5563b38aa', class: "grid", style: style }, h("slot", { key: '5bb285ce0feaf16d066b627010fc3fb595a85c15' }))));
28
+ }
29
+ };
30
+ UiGrid.style = uiGridCss();
31
+
32
+ export { UiGrid as ui_grid };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-DYwlrXg_.js';
2
2
 
3
- const uiInputCss = () => `:host{display:block}.input{width:100%;height:2.75rem;padding:0 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box}.input::placeholder{color:var(--ui-text-faint)}.input:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.input:disabled{opacity:0.5;pointer-events:none}.input.invalid{border-color:var(--ui-danger)}.input.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}`;
3
+ const uiInputCss = () => `:host{display:block}.field{display:flex;align-items:center;gap:0.5rem;width:100%;height:2.75rem;padding:0 0.875rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box}.field:hover:not(.disabled){border-color:var(--ui-border-strong)}.field:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.field.invalid{border-color:var(--ui-danger)}.field.invalid:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}.field.disabled{opacity:0.5;pointer-events:none}.input{flex:1;min-width:0;height:100%;border:none;background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none}.input::placeholder{color:var(--ui-text-faint)}.affix{display:inline-flex;align-items:center;color:var(--ui-text-muted)}.affix::slotted(svg),::slotted([slot="prefix"]),::slotted([slot="suffix"]){display:inline-flex;color:var(--ui-text-muted)}.clear{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.25rem;height:1.25rem;padding:0;border:none;border-radius:var(--ui-radius-full);background:var(--ui-chip);color:var(--ui-text-muted);cursor:pointer;transition:all var(--ui-duration) var(--ui-ease)}.clear:hover{color:var(--ui-foreground);background:var(--ui-panel-strong)}`;
4
4
 
5
5
  const UiInput = class {
6
6
  constructor(hostRef) {
@@ -15,6 +15,8 @@ const UiInput = class {
15
15
  this.disabled = false;
16
16
  /** Marca o campo como inválido (estilo + aria-invalid). */
17
17
  this.invalid = false;
18
+ /** Exibe um botão para limpar o valor quando preenchido. */
19
+ this.clearable = false;
18
20
  this.onInput = (event) => {
19
21
  const target = event.target;
20
22
  this.value = target.value;
@@ -23,9 +25,15 @@ const UiInput = class {
23
25
  this.onChange = (event) => {
24
26
  this.uiChange.emit(event.target.value);
25
27
  };
28
+ this.clear = () => {
29
+ this.value = "";
30
+ this.uiInput.emit("");
31
+ this.uiChange.emit("");
32
+ };
26
33
  }
27
34
  render() {
28
- return (h(Host, { key: 'b904b919904db1677ed9480e43bf939138f09dfc' }, h("input", { key: '086b0bdd4a5f5c01af04be41cdee2e72af2376f1', class: { input: true, invalid: this.invalid }, type: this.type, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : null, onInput: this.onInput, onChange: this.onChange })));
35
+ const showClear = this.clearable && !!this.value && !this.disabled;
36
+ return (h(Host, { key: 'a87a7c9a1aba5631099f2f9c3a3083a9e7374854' }, h("div", { key: '04d3493ab32a4636f3f2540aaba0b30e4c018225', class: { field: true, invalid: this.invalid, disabled: this.disabled } }, h("span", { key: '66fa079a8b6ccc62dca78f4266d92800dd8727b0', class: "affix" }, h("slot", { key: 'c9db74515db3226bc730beb42a2a8f2d8eb6ee9f', name: "prefix" })), h("input", { key: 'a8f4db568e49ee22b5eeae078c4e4b3fdbc48983', class: "input", type: this.type, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : null, onInput: this.onInput, onChange: this.onChange }), showClear && (h("button", { key: 'e38a2279db1b1c677274a6e22019bf3183ae1920', class: "clear", type: "button", "aria-label": "Limpar", onClick: this.clear }, h("svg", { key: '0982ea65d3b1598620953fcd600b1eb1945348ee', viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, h("path", { key: '26f833d4ccf8feab9f2ec4f4527b8c8e9c00d09b', d: "M18 6 6 18M6 6l12 12" })))), h("span", { key: '22c7d4d4a030157a4a9eb73ef0a260f4db56c848', class: "affix" }, h("slot", { key: 'fa74011b1237908aa9eea78f88294afcdf09f0f5', name: "suffix" })))));
29
37
  }
30
38
  };
31
39
  UiInput.style = uiInputCss();
@@ -7,7 +7,7 @@ const UiLabel = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '5ded9464de8fe01a6bb830f4de51975cfd720746' }, h("label", { key: '1a14229c5e511eac3cb4244f546aee71a4f5d399', class: "label" }, h("slot", { key: '7c5def32e92ffdc6dcb1b83c044f5199957f5951' }))));
10
+ return (h(Host, { key: '15695a208223a3270e49d72972a49c26fe3acd4d' }, h("label", { key: 'a6d0290c845797368e59fa936b80c8fee55dbcb1', class: "label" }, h("slot", { key: 'daae42c194f0c31d69a82bfad95a97b85cf2cdf2' }))));
11
11
  }
12
12
  };
13
13
  UiLabel.style = uiLabelCss();