@andespindola/ui-core 0.1.1 → 0.3.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 (333) hide show
  1. package/dist/cjs/{floating-ui.dom-BPemvNRD.js → floating-ui.dom-BZk7Blsu.js} +93 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ui-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/ui-alert.cjs.entry.js +40 -0
  6. package/dist/cjs/ui-avatar-group.cjs.entry.js +17 -0
  7. package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
  8. package/dist/cjs/ui-badge.cjs.entry.js +7 -2
  9. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +23 -0
  10. package/dist/cjs/ui-breadcrumb.cjs.entry.js +17 -0
  11. package/dist/cjs/ui-button.cjs.entry.js +5 -3
  12. package/dist/cjs/ui-card.cjs.entry.js +1 -1
  13. package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
  14. package/dist/cjs/ui-combobox.cjs.entry.js +153 -0
  15. package/dist/cjs/ui-container.cjs.entry.js +26 -0
  16. package/dist/cjs/ui-date-picker.cjs.entry.js +171 -0
  17. package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
  18. package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
  19. package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
  20. package/dist/cjs/ui-dropdown-menu.cjs.entry.js +2 -2
  21. package/dist/cjs/ui-field.cjs.entry.js +1 -1
  22. package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
  23. package/dist/cjs/ui-grid.cjs.entry.js +34 -0
  24. package/dist/cjs/ui-input.cjs.entry.js +10 -2
  25. package/dist/cjs/ui-label.cjs.entry.js +1 -1
  26. package/dist/cjs/ui-navbar.cjs.entry.js +17 -0
  27. package/dist/cjs/ui-pagination.cjs.entry.js +63 -0
  28. package/dist/cjs/ui-popover.cjs.entry.js +2 -2
  29. package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
  30. package/dist/cjs/ui-progress.cjs.entry.js +1 -1
  31. package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
  32. package/dist/cjs/ui-rating.cjs.entry.js +45 -0
  33. package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
  34. package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
  35. package/dist/cjs/ui-section.cjs.entry.js +1 -1
  36. package/dist/cjs/ui-segmented.cjs.entry.js +31 -0
  37. package/dist/cjs/ui-select.cjs.entry.js +1 -1
  38. package/dist/cjs/ui-separator.cjs.entry.js +1 -1
  39. package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
  40. package/dist/cjs/ui-slider.cjs.entry.js +1 -1
  41. package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
  42. package/dist/cjs/ui-stack.cjs.entry.js +53 -0
  43. package/dist/cjs/ui-stat.cjs.entry.js +28 -0
  44. package/dist/cjs/ui-switch.cjs.entry.js +1 -1
  45. package/dist/cjs/ui-table.cjs.entry.js +25 -0
  46. package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
  47. package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
  48. package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
  49. package/dist/cjs/ui-toast.cjs.entry.js +1 -1
  50. package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
  51. package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
  52. package/dist/cjs/uikit.cjs.js +1 -1
  53. package/dist/collection/collection-manifest.json +17 -0
  54. package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
  55. package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
  56. package/dist/collection/components/ui-alert/ui-alert.css +95 -0
  57. package/dist/collection/components/ui-alert/ui-alert.js +134 -0
  58. package/dist/collection/components/ui-avatar/ui-avatar.css +31 -0
  59. package/dist/collection/components/ui-avatar/ui-avatar.js +20 -1
  60. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +22 -0
  61. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +21 -0
  62. package/dist/collection/components/ui-badge/ui-badge.css +26 -0
  63. package/dist/collection/components/ui-badge/ui-badge.js +63 -1
  64. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.css +15 -0
  65. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +18 -0
  66. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.css +30 -0
  67. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +69 -0
  68. package/dist/collection/components/ui-button/ui-button.css +13 -1
  69. package/dist/collection/components/ui-button/ui-button.js +24 -2
  70. package/dist/collection/components/ui-card/ui-card.js +1 -1
  71. package/dist/collection/components/ui-checkbox/ui-checkbox.css +6 -2
  72. package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
  73. package/dist/collection/components/ui-combobox/ui-combobox.css +93 -0
  74. package/dist/collection/components/ui-combobox/ui-combobox.js +248 -0
  75. package/dist/collection/components/ui-container/ui-container.css +38 -0
  76. package/dist/collection/components/ui-container/ui-container.js +79 -0
  77. package/dist/collection/components/ui-date-picker/ui-date-picker.css +176 -0
  78. package/dist/collection/components/ui-date-picker/ui-date-picker.js +243 -0
  79. package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
  80. package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
  81. package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
  82. package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
  83. package/dist/collection/components/ui-field/ui-field.js +1 -1
  84. package/dist/collection/components/ui-file-upload/ui-file-upload.css +79 -0
  85. package/dist/collection/components/ui-file-upload/ui-file-upload.js +151 -0
  86. package/dist/collection/components/ui-grid/ui-grid.css +8 -0
  87. package/dist/collection/components/ui-grid/ui-grid.js +106 -0
  88. package/dist/collection/components/ui-input/ui-input.css +65 -14
  89. package/dist/collection/components/ui-input/ui-input.js +29 -1
  90. package/dist/collection/components/ui-label/ui-label.js +1 -1
  91. package/dist/collection/components/ui-navbar/ui-navbar.css +36 -0
  92. package/dist/collection/components/ui-navbar/ui-navbar.js +18 -0
  93. package/dist/collection/components/ui-pagination/ui-pagination.css +59 -0
  94. package/dist/collection/components/ui-pagination/ui-pagination.js +147 -0
  95. package/dist/collection/components/ui-popover/ui-popover.js +1 -1
  96. package/dist/collection/components/ui-progress/ui-progress.js +1 -1
  97. package/dist/collection/components/ui-progress-circular/ui-progress-circular.css +46 -0
  98. package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +171 -0
  99. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  100. package/dist/collection/components/ui-rating/ui-rating.css +52 -0
  101. package/dist/collection/components/ui-rating/ui-rating.js +134 -0
  102. package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
  103. package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
  104. package/dist/collection/components/ui-section/ui-section.js +1 -1
  105. package/dist/collection/components/ui-segmented/ui-segmented.css +46 -0
  106. package/dist/collection/components/ui-segmented/ui-segmented.js +99 -0
  107. package/dist/collection/components/ui-select/ui-select.js +1 -1
  108. package/dist/collection/components/ui-separator/ui-separator.js +1 -1
  109. package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
  110. package/dist/collection/components/ui-slider/ui-slider.js +1 -1
  111. package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
  112. package/dist/collection/components/ui-stack/ui-stack.css +8 -0
  113. package/dist/collection/components/ui-stack/ui-stack.js +184 -0
  114. package/dist/collection/components/ui-stat/ui-stat.css +69 -0
  115. package/dist/collection/components/ui-stat/ui-stat.js +118 -0
  116. package/dist/collection/components/ui-switch/ui-switch.js +1 -1
  117. package/dist/collection/components/ui-table/ui-table.css +46 -0
  118. package/dist/collection/components/ui-table/ui-table.js +119 -0
  119. package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
  120. package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
  121. package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
  122. package/dist/collection/components/ui-toast/ui-toast.js +1 -1
  123. package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
  124. package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
  125. package/dist/components/{p-fApcMAzN.js → p-DDJE__UC.js} +1 -1
  126. package/dist/{uikit/p-CyBRmmbs.js → components/p-DDtwbwIl.js} +1 -1
  127. package/dist/components/{p-Bz9HyboB.js → p-DUT2Q8Df.js} +1 -1
  128. package/dist/components/ui-accordion-item.js +1 -1
  129. package/dist/components/ui-accordion.js +1 -1
  130. package/dist/components/ui-alert.d.ts +11 -0
  131. package/dist/components/ui-alert.js +1 -0
  132. package/dist/components/ui-avatar-group.d.ts +11 -0
  133. package/dist/components/ui-avatar-group.js +1 -0
  134. package/dist/components/ui-avatar.js +1 -1
  135. package/dist/components/ui-badge.js +1 -1
  136. package/dist/components/ui-breadcrumb-item.d.ts +11 -0
  137. package/dist/components/ui-breadcrumb-item.js +1 -0
  138. package/dist/components/ui-breadcrumb.d.ts +11 -0
  139. package/dist/components/ui-breadcrumb.js +1 -0
  140. package/dist/components/ui-button.js +1 -1
  141. package/dist/components/ui-card.js +1 -1
  142. package/dist/components/ui-checkbox.js +1 -1
  143. package/dist/components/ui-combobox.d.ts +11 -0
  144. package/dist/components/ui-combobox.js +1 -0
  145. package/dist/components/ui-container.d.ts +11 -0
  146. package/dist/components/ui-container.js +1 -0
  147. package/dist/components/ui-date-picker.d.ts +11 -0
  148. package/dist/components/ui-date-picker.js +1 -0
  149. package/dist/components/ui-dialog.js +1 -1
  150. package/dist/components/ui-drawer.js +1 -1
  151. package/dist/components/ui-dropdown-item.js +1 -1
  152. package/dist/components/ui-dropdown-menu.js +1 -1
  153. package/dist/components/ui-field.js +1 -1
  154. package/dist/components/ui-file-upload.d.ts +11 -0
  155. package/dist/components/ui-file-upload.js +1 -0
  156. package/dist/components/ui-grid.d.ts +11 -0
  157. package/dist/components/ui-grid.js +1 -0
  158. package/dist/components/ui-input.js +1 -1
  159. package/dist/components/ui-label.js +1 -1
  160. package/dist/components/ui-loading-overlay.js +1 -1
  161. package/dist/components/ui-navbar.d.ts +11 -0
  162. package/dist/components/ui-navbar.js +1 -0
  163. package/dist/components/ui-pagination.d.ts +11 -0
  164. package/dist/components/ui-pagination.js +1 -0
  165. package/dist/components/ui-popover.js +1 -1
  166. package/dist/components/ui-progress-circular.d.ts +11 -0
  167. package/dist/components/ui-progress-circular.js +1 -0
  168. package/dist/components/ui-progress.js +1 -1
  169. package/dist/components/ui-radio-group.js +1 -1
  170. package/dist/components/ui-rating.d.ts +11 -0
  171. package/dist/components/ui-rating.js +1 -0
  172. package/dist/components/ui-reveal.js +1 -1
  173. package/dist/components/ui-scroll-progress.js +1 -1
  174. package/dist/components/ui-section.js +1 -1
  175. package/dist/components/ui-segmented.d.ts +11 -0
  176. package/dist/components/ui-segmented.js +1 -0
  177. package/dist/components/ui-select.js +1 -1
  178. package/dist/components/ui-separator.js +1 -1
  179. package/dist/components/ui-skeleton.js +1 -1
  180. package/dist/components/ui-slider.js +1 -1
  181. package/dist/components/ui-spinner.js +1 -1
  182. package/dist/components/ui-stack.d.ts +11 -0
  183. package/dist/components/ui-stack.js +1 -0
  184. package/dist/components/ui-stat.d.ts +11 -0
  185. package/dist/components/ui-stat.js +1 -0
  186. package/dist/components/ui-switch.js +1 -1
  187. package/dist/components/ui-table.d.ts +11 -0
  188. package/dist/components/ui-table.js +1 -0
  189. package/dist/components/ui-tabs.js +1 -1
  190. package/dist/components/ui-textarea.js +1 -1
  191. package/dist/components/ui-theme-toggle.js +1 -1
  192. package/dist/components/ui-toast.js +1 -1
  193. package/dist/components/ui-toaster.js +1 -1
  194. package/dist/components/ui-tooltip.js +1 -1
  195. package/dist/esm/{floating-ui.dom-CyBRmmbs.js → floating-ui.dom-DDtwbwIl.js} +93 -1
  196. package/dist/esm/loader.js +1 -1
  197. package/dist/esm/ui-accordion-item.entry.js +1 -1
  198. package/dist/esm/ui-accordion.entry.js +1 -1
  199. package/dist/esm/ui-alert.entry.js +38 -0
  200. package/dist/esm/ui-avatar-group.entry.js +15 -0
  201. package/dist/esm/ui-avatar.entry.js +2 -2
  202. package/dist/esm/ui-badge.entry.js +8 -3
  203. package/dist/esm/ui-breadcrumb-item.entry.js +21 -0
  204. package/dist/esm/ui-breadcrumb.entry.js +15 -0
  205. package/dist/esm/ui-button.entry.js +5 -3
  206. package/dist/esm/ui-card.entry.js +1 -1
  207. package/dist/esm/ui-checkbox.entry.js +2 -2
  208. package/dist/esm/ui-combobox.entry.js +151 -0
  209. package/dist/esm/ui-container.entry.js +24 -0
  210. package/dist/esm/ui-date-picker.entry.js +169 -0
  211. package/dist/esm/ui-dialog.entry.js +1 -1
  212. package/dist/esm/ui-drawer.entry.js +1 -1
  213. package/dist/esm/ui-dropdown-item.entry.js +1 -1
  214. package/dist/esm/ui-dropdown-menu.entry.js +2 -2
  215. package/dist/esm/ui-field.entry.js +1 -1
  216. package/dist/esm/ui-file-upload.entry.js +55 -0
  217. package/dist/esm/ui-grid.entry.js +32 -0
  218. package/dist/esm/ui-input.entry.js +10 -2
  219. package/dist/esm/ui-label.entry.js +1 -1
  220. package/dist/esm/ui-navbar.entry.js +15 -0
  221. package/dist/esm/ui-pagination.entry.js +61 -0
  222. package/dist/esm/ui-popover.entry.js +2 -2
  223. package/dist/esm/ui-progress-circular.entry.js +42 -0
  224. package/dist/esm/ui-progress.entry.js +1 -1
  225. package/dist/esm/ui-radio-group.entry.js +1 -1
  226. package/dist/esm/ui-rating.entry.js +43 -0
  227. package/dist/esm/ui-reveal.entry.js +1 -1
  228. package/dist/esm/ui-scroll-progress.entry.js +1 -1
  229. package/dist/esm/ui-section.entry.js +1 -1
  230. package/dist/esm/ui-segmented.entry.js +29 -0
  231. package/dist/esm/ui-select.entry.js +1 -1
  232. package/dist/esm/ui-separator.entry.js +1 -1
  233. package/dist/esm/ui-skeleton.entry.js +1 -1
  234. package/dist/esm/ui-slider.entry.js +1 -1
  235. package/dist/esm/ui-spinner.entry.js +1 -1
  236. package/dist/esm/ui-stack.entry.js +51 -0
  237. package/dist/esm/ui-stat.entry.js +26 -0
  238. package/dist/esm/ui-switch.entry.js +1 -1
  239. package/dist/esm/ui-table.entry.js +23 -0
  240. package/dist/esm/ui-tabs.entry.js +2 -2
  241. package/dist/esm/ui-textarea.entry.js +1 -1
  242. package/dist/esm/ui-theme-toggle.entry.js +1 -1
  243. package/dist/esm/ui-toast.entry.js +1 -1
  244. package/dist/esm/ui-toaster.entry.js +1 -1
  245. package/dist/esm/ui-tooltip.entry.js +2 -2
  246. package/dist/esm/uikit.js +1 -1
  247. package/dist/types/components/ui-alert/ui-alert.d.ts +17 -0
  248. package/dist/types/components/ui-avatar/ui-avatar.d.ts +2 -0
  249. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +6 -0
  250. package/dist/types/components/ui-badge/ui-badge.d.ts +7 -0
  251. package/dist/types/components/ui-breadcrumb/ui-breadcrumb.d.ts +3 -0
  252. package/dist/types/components/ui-breadcrumb-item/ui-breadcrumb-item.d.ts +8 -0
  253. package/dist/types/components/ui-button/ui-button.d.ts +2 -0
  254. package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
  255. package/dist/types/components/ui-container/ui-container.d.ts +8 -0
  256. package/dist/types/components/ui-date-picker/ui-date-picker.d.ts +42 -0
  257. package/dist/types/components/ui-file-upload/ui-file-upload.d.ts +24 -0
  258. package/dist/types/components/ui-grid/ui-grid.d.ts +10 -0
  259. package/dist/types/components/ui-input/ui-input.d.ts +3 -0
  260. package/dist/types/components/ui-navbar/ui-navbar.d.ts +3 -0
  261. package/dist/types/components/ui-pagination/ui-pagination.d.ts +15 -0
  262. package/dist/types/components/ui-progress-circular/ui-progress-circular.d.ts +17 -0
  263. package/dist/types/components/ui-rating/ui-rating.d.ts +17 -0
  264. package/dist/types/components/ui-segmented/ui-segmented.d.ts +15 -0
  265. package/dist/types/components/ui-stack/ui-stack.d.ts +17 -0
  266. package/dist/types/components/ui-stat/ui-stat.d.ts +13 -0
  267. package/dist/types/components/ui-table/ui-table.d.ts +16 -0
  268. package/dist/types/components.d.ts +961 -0
  269. package/dist/types/index.d.ts +1 -0
  270. package/dist/uikit/{p-8a238373.entry.js → p-008118af.entry.js} +1 -1
  271. package/dist/uikit/p-0715db16.entry.js +1 -0
  272. package/dist/uikit/p-10afa395.entry.js +1 -0
  273. package/dist/uikit/p-1449f229.entry.js +1 -0
  274. package/dist/uikit/p-1514ae37.entry.js +1 -0
  275. package/dist/uikit/{p-83159bfc.entry.js → p-1685191b.entry.js} +1 -1
  276. package/dist/uikit/p-1ef7948f.entry.js +1 -0
  277. package/dist/uikit/{p-e54139a1.entry.js → p-283e7623.entry.js} +1 -1
  278. package/dist/uikit/p-2d92ce04.entry.js +1 -0
  279. package/dist/uikit/{p-a0ccdb22.entry.js → p-3995852d.entry.js} +1 -1
  280. package/dist/uikit/p-3b1f92da.entry.js +1 -0
  281. package/dist/uikit/p-3fdfad2e.entry.js +1 -0
  282. package/dist/uikit/p-4044ebde.entry.js +1 -0
  283. package/dist/uikit/{p-9f0d4ae1.entry.js → p-413cfbc6.entry.js} +1 -1
  284. package/dist/uikit/p-45e80e73.entry.js +1 -0
  285. package/dist/uikit/p-4ba0e4bc.entry.js +1 -0
  286. package/dist/uikit/p-5951a496.entry.js +1 -0
  287. package/dist/uikit/p-5e0bc34a.entry.js +1 -0
  288. package/dist/uikit/{p-d8e7ae10.entry.js → p-60910c03.entry.js} +1 -1
  289. package/dist/uikit/{p-58ed99a2.entry.js → p-62881327.entry.js} +1 -1
  290. package/dist/uikit/p-6c51a216.entry.js +1 -0
  291. package/dist/uikit/p-6d363a02.entry.js +1 -0
  292. package/dist/uikit/{p-777c6902.entry.js → p-8535f5c9.entry.js} +1 -1
  293. package/dist/uikit/p-88238a16.entry.js +1 -0
  294. package/dist/uikit/{p-9aa557d1.entry.js → p-894fc85f.entry.js} +1 -1
  295. package/dist/uikit/p-8b882367.entry.js +1 -0
  296. package/dist/uikit/p-9310b73b.entry.js +1 -0
  297. package/dist/uikit/{p-4a1abc1c.entry.js → p-99b7e461.entry.js} +1 -1
  298. package/dist/uikit/p-9d8d420e.entry.js +1 -0
  299. package/dist/uikit/{p-97de6ea6.entry.js → p-9dbe7e12.entry.js} +1 -1
  300. package/dist/uikit/{p-29fe5b7f.entry.js → p-9f09fcec.entry.js} +1 -1
  301. package/dist/{components/p-CyBRmmbs.js → uikit/p-DDtwbwIl.js} +1 -1
  302. package/dist/uikit/{p-d6c9bfbc.entry.js → p-a3d819cd.entry.js} +1 -1
  303. package/dist/uikit/{p-777d8c7a.entry.js → p-b0f2b1c8.entry.js} +1 -1
  304. package/dist/uikit/{p-e0652ddf.entry.js → p-b7e30398.entry.js} +1 -1
  305. package/dist/uikit/p-bac2c523.entry.js +1 -0
  306. package/dist/uikit/p-bbc718ef.entry.js +1 -0
  307. package/dist/uikit/{p-b0aba484.entry.js → p-bdd30484.entry.js} +1 -1
  308. package/dist/uikit/{p-32df7fd0.entry.js → p-c1a9db7c.entry.js} +1 -1
  309. package/dist/uikit/p-c2138fb9.entry.js +1 -0
  310. package/dist/uikit/p-c94492ff.entry.js +1 -0
  311. package/dist/uikit/{p-38cbea54.entry.js → p-ccca2aeb.entry.js} +1 -1
  312. package/dist/uikit/p-d7ab158f.entry.js +1 -0
  313. package/dist/uikit/p-da807078.entry.js +1 -0
  314. package/dist/uikit/p-e2065caa.entry.js +1 -0
  315. package/dist/uikit/{p-9b43d670.entry.js → p-f2983e94.entry.js} +1 -1
  316. package/dist/uikit/p-f4344cce.entry.js +1 -0
  317. package/dist/uikit/{p-ed1111eb.entry.js → p-fb89d9a4.entry.js} +1 -1
  318. package/dist/uikit/p-fbe7806c.entry.js +1 -0
  319. package/dist/uikit/p-ffcd1faf.entry.js +1 -0
  320. package/dist/uikit/uikit.esm.js +1 -1
  321. package/package.json +8 -3
  322. package/dist/uikit/p-0096eefe.entry.js +0 -1
  323. package/dist/uikit/p-11350db1.entry.js +0 -1
  324. package/dist/uikit/p-128ae3e4.entry.js +0 -1
  325. package/dist/uikit/p-24edfe3e.entry.js +0 -1
  326. package/dist/uikit/p-280337b0.entry.js +0 -1
  327. package/dist/uikit/p-3c866608.entry.js +0 -1
  328. package/dist/uikit/p-5555523c.entry.js +0 -1
  329. package/dist/uikit/p-6fa4be86.entry.js +0 -1
  330. package/dist/uikit/p-7b2a9e68.entry.js +0 -1
  331. package/dist/uikit/p-9c57cf57.entry.js +0 -1
  332. package/dist/uikit/p-cf56c9ba.entry.js +0 -1
  333. package/dist/uikit/p-d13860dc.entry.js +0 -1
@@ -648,6 +648,90 @@ const shift$1 = function (options) {
648
648
  };
649
649
  };
650
650
 
651
+ /**
652
+ * Provides data that allows you to change the size of the floating element —
653
+ * for instance, prevent it from overflowing the clipping boundary or match the
654
+ * width of the reference element.
655
+ * @see https://floating-ui.com/docs/size
656
+ */
657
+ const size$1 = function (options) {
658
+ if (options === void 0) {
659
+ options = {};
660
+ }
661
+ return {
662
+ name: 'size',
663
+ options,
664
+ async fn(state) {
665
+ var _state$middlewareData, _state$middlewareData2;
666
+ const {
667
+ placement,
668
+ rects,
669
+ platform,
670
+ elements
671
+ } = state;
672
+ const {
673
+ apply = () => {},
674
+ ...detectOverflowOptions
675
+ } = evaluate(options, state);
676
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
677
+ const side = getSide(placement);
678
+ const alignment = getAlignment(placement);
679
+ const isYAxis = getSideAxis(placement) === 'y';
680
+ const {
681
+ width,
682
+ height
683
+ } = rects.floating;
684
+ let heightSide;
685
+ let widthSide;
686
+ if (side === 'top' || side === 'bottom') {
687
+ heightSide = side;
688
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
689
+ } else {
690
+ widthSide = side;
691
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
692
+ }
693
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
694
+ const maximumClippingWidth = width - overflow.left - overflow.right;
695
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
696
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
697
+ const noShift = !state.middlewareData.shift;
698
+ let availableHeight = overflowAvailableHeight;
699
+ let availableWidth = overflowAvailableWidth;
700
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
701
+ availableWidth = maximumClippingWidth;
702
+ }
703
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
704
+ availableHeight = maximumClippingHeight;
705
+ }
706
+ if (noShift && !alignment) {
707
+ const xMin = max(overflow.left, 0);
708
+ const xMax = max(overflow.right, 0);
709
+ const yMin = max(overflow.top, 0);
710
+ const yMax = max(overflow.bottom, 0);
711
+ if (isYAxis) {
712
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
713
+ } else {
714
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
715
+ }
716
+ }
717
+ await apply({
718
+ ...state,
719
+ availableWidth,
720
+ availableHeight
721
+ });
722
+ const nextDimensions = await platform.getDimensions(elements.floating);
723
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
724
+ return {
725
+ reset: {
726
+ rects: true
727
+ }
728
+ };
729
+ }
730
+ return {};
731
+ }
732
+ };
733
+ };
734
+
651
735
  function hasWindow() {
652
736
  return typeof window !== 'undefined';
653
737
  }
@@ -1512,6 +1596,14 @@ const shift = shift$1;
1512
1596
  */
1513
1597
  const flip = flip$1;
1514
1598
 
1599
+ /**
1600
+ * Provides data that allows you to change the size of the floating element —
1601
+ * for instance, prevent it from overflowing the clipping boundary or match the
1602
+ * width of the reference element.
1603
+ * @see https://floating-ui.com/docs/size
1604
+ */
1605
+ const size = size$1;
1606
+
1515
1607
  /**
1516
1608
  * Computes the `x` and `y` coordinates that will place the floating element
1517
1609
  * next to a given reference element.
@@ -1540,3 +1632,4 @@ exports.computePosition = computePosition;
1540
1632
  exports.flip = flip;
1541
1633
  exports.offset = offset;
1542
1634
  exports.shift = shift;
1635
+ exports.size = size;
@@ -5,7 +5,7 @@ var index = require('./index-Cb1tfi_9.js');
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await index.globalScripts();
8
- return index.bootstrapLazy([["ui-loading-overlay.cjs",[[1,"ui-loading-overlay",{"visible":[4],"label":[1],"spinnerSize":[1,"spinner-size"]}]]],["ui-toaster.cjs",[[1,"ui-toaster",{"items":[32],"toast":[64]}]]],["ui-accordion.cjs",[[257,"ui-accordion"]]],["ui-accordion-item.cjs",[[257,"ui-accordion-item",{"heading":[1],"open":[1540]}]]],["ui-avatar.cjs",[[1,"ui-avatar",{"src":[1],"alt":[1],"fallback":[1]}]]],["ui-badge.cjs",[[257,"ui-badge",{"variant":[1]}]]],["ui-button.cjs",[[257,"ui-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"type":[1]}]]],["ui-card.cjs",[[257,"ui-card"]]],["ui-checkbox.cjs",[[1,"ui-checkbox",{"checked":[1540],"disabled":[4],"name":[1],"value":[1]}]]],["ui-dialog.cjs",[[257,"ui-dialog",{"open":[1540],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-drawer.cjs",[[257,"ui-drawer",{"open":[1540],"side":[513],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-dropdown-item.cjs",[[257,"ui-dropdown-item",{"disabled":[516]}]]],["ui-dropdown-menu.cjs",[[257,"ui-dropdown-menu",{"open":[1540],"placement":[1],"show":[64],"close":[64]},[[0,"uiDropdownClose","onItemClose"]],{"open":[{"onOpenChange":0}]}]]],["ui-field.cjs",[[257,"ui-field",{"label":[1],"description":[1],"error":[1],"required":[4],"fieldId":[1,"field-id"]}]]],["ui-input.cjs",[[1,"ui-input",{"value":[1025],"placeholder":[1],"type":[1],"disabled":[4],"invalid":[4],"name":[1]}]]],["ui-label.cjs",[[257,"ui-label"]]],["ui-popover.cjs",[[257,"ui-popover",{"open":[1540],"placement":[1],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-progress.cjs",[[1,"ui-progress",{"value":[2],"max":[2],"indeterminate":[4]}]]],["ui-radio-group.cjs",[[1,"ui-radio-group",{"value":[1025],"name":[1],"options":[16],"disabled":[4]}]]],["ui-reveal.cjs",[[257,"ui-reveal",{"delay":[2],"visible":[32]}]]],["ui-scroll-progress.cjs",[[1,"ui-scroll-progress",{"progress":[32]}]]],["ui-section.cjs",[[257,"ui-section",{"eyebrow":[1],"heading":[1],"description":[1]}]]],["ui-select.cjs",[[1,"ui-select",{"value":[1025],"disabled":[4],"name":[1],"options":[16],"placeholder":[1]}]]],["ui-separator.cjs",[[1,"ui-separator",{"orientation":[513]}]]],["ui-skeleton.cjs",[[1,"ui-skeleton"]]],["ui-slider.cjs",[[1,"ui-slider",{"value":[1026],"min":[2],"max":[2],"step":[2],"disabled":[4]}]]],["ui-switch.cjs",[[1,"ui-switch",{"checked":[1540],"disabled":[4]}]]],["ui-tabs.cjs",[[257,"ui-tabs",{"value":[1537],"items":[16]}]]],["ui-textarea.cjs",[[1,"ui-textarea",{"value":[1025],"placeholder":[1],"disabled":[4],"invalid":[4],"name":[1],"rows":[2]}]]],["ui-theme-toggle.cjs",[[1,"ui-theme-toggle",{"isDark":[32]}]]],["ui-tooltip.cjs",[[257,"ui-tooltip",{"content":[1],"placement":[1],"openDelay":[2,"open-delay"],"visible":[32]}]]],["ui-spinner.cjs",[[1,"ui-spinner",{"size":[1]}]]],["ui-toast.cjs",[[1,"ui-toast",{"open":[1540],"variant":[1],"heading":[1],"description":[1],"duration":[2],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]]], options);
8
+ return index.bootstrapLazy([["ui-loading-overlay.cjs",[[1,"ui-loading-overlay",{"visible":[4],"label":[1],"spinnerSize":[1,"spinner-size"]}]]],["ui-toaster.cjs",[[1,"ui-toaster",{"items":[32],"toast":[64]}]]],["ui-accordion.cjs",[[257,"ui-accordion"]]],["ui-accordion-item.cjs",[[257,"ui-accordion-item",{"heading":[1],"open":[1540]}]]],["ui-alert.cjs",[[257,"ui-alert",{"variant":[1],"heading":[1],"dismissible":[4],"open":[32]}]]],["ui-avatar.cjs",[[1,"ui-avatar",{"src":[1],"alt":[1],"fallback":[1],"status":[1]}]]],["ui-avatar-group.cjs",[[257,"ui-avatar-group"]]],["ui-badge.cjs",[[257,"ui-badge",{"variant":[1],"dot":[4],"removable":[4]}]]],["ui-breadcrumb.cjs",[[257,"ui-breadcrumb"]]],["ui-breadcrumb-item.cjs",[[257,"ui-breadcrumb-item",{"href":[1],"current":[4]}]]],["ui-button.cjs",[[257,"ui-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"type":[1],"full":[516]}]]],["ui-card.cjs",[[257,"ui-card"]]],["ui-checkbox.cjs",[[1,"ui-checkbox",{"checked":[1540],"disabled":[4],"name":[1],"value":[1]}]]],["ui-combobox.cjs",[[1,"ui-combobox",{"options":[16],"value":[1025],"placeholder":[1],"query":[32],"open":[32],"activeIndex":[32]}]]],["ui-container.cjs",[[257,"ui-container",{"size":[1],"padded":[4]}]]],["ui-date-picker.cjs",[[1,"ui-date-picker",{"value":[1025],"placeholder":[1],"open":[32],"viewYear":[32],"viewMonth":[32]},null,{"value":[{"onValueChange":0}]}]]],["ui-dialog.cjs",[[257,"ui-dialog",{"open":[1540],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-drawer.cjs",[[257,"ui-drawer",{"open":[1540],"side":[513],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-dropdown-item.cjs",[[257,"ui-dropdown-item",{"disabled":[516]}]]],["ui-dropdown-menu.cjs",[[257,"ui-dropdown-menu",{"open":[1540],"placement":[1],"show":[64],"close":[64]},[[0,"uiDropdownClose","onItemClose"]],{"open":[{"onOpenChange":0}]}]]],["ui-field.cjs",[[257,"ui-field",{"label":[1],"description":[1],"error":[1],"required":[4],"fieldId":[1,"field-id"]}]]],["ui-file-upload.cjs",[[1,"ui-file-upload",{"accept":[1],"multiple":[4],"label":[1],"files":[32],"dragging":[32]}]]],["ui-grid.cjs",[[257,"ui-grid",{"columns":[2],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ui-input.cjs",[[257,"ui-input",{"value":[1025],"placeholder":[1],"type":[1],"disabled":[4],"invalid":[4],"name":[1],"clearable":[4]}]]],["ui-label.cjs",[[257,"ui-label"]]],["ui-navbar.cjs",[[257,"ui-navbar"]]],["ui-pagination.cjs",[[1,"ui-pagination",{"total":[2],"current":[1538],"siblings":[2]}]]],["ui-popover.cjs",[[257,"ui-popover",{"open":[1540],"placement":[1],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]],["ui-progress.cjs",[[1,"ui-progress",{"value":[2],"max":[2],"indeterminate":[4]}]]],["ui-progress-circular.cjs",[[1,"ui-progress-circular",{"value":[2],"max":[2],"size":[1],"strokeWidth":[2,"stroke-width"],"indeterminate":[4],"showValue":[4,"show-value"]}]]],["ui-radio-group.cjs",[[1,"ui-radio-group",{"value":[1025],"name":[1],"options":[16],"disabled":[4]}]]],["ui-rating.cjs",[[1,"ui-rating",{"value":[1026],"max":[2],"readonly":[4],"hoverValue":[32]}]]],["ui-reveal.cjs",[[257,"ui-reveal",{"delay":[2],"visible":[32]}]]],["ui-scroll-progress.cjs",[[1,"ui-scroll-progress",{"progress":[32]}]]],["ui-section.cjs",[[257,"ui-section",{"eyebrow":[1],"heading":[1],"description":[1]}]]],["ui-segmented.cjs",[[1,"ui-segmented",{"items":[16],"value":[1537]}]]],["ui-select.cjs",[[1,"ui-select",{"value":[1025],"disabled":[4],"name":[1],"options":[16],"placeholder":[1]}]]],["ui-separator.cjs",[[1,"ui-separator",{"orientation":[513]}]]],["ui-skeleton.cjs",[[1,"ui-skeleton"]]],["ui-slider.cjs",[[1,"ui-slider",{"value":[1026],"min":[2],"max":[2],"step":[2],"disabled":[4]}]]],["ui-stack.cjs",[[257,"ui-stack",{"direction":[1],"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ui-stat.cjs",[[257,"ui-stat",{"label":[1],"value":[1],"delta":[1],"trend":[1]}]]],["ui-switch.cjs",[[1,"ui-switch",{"checked":[1540],"disabled":[4]}]]],["ui-table.cjs",[[1,"ui-table",{"columns":[16],"rows":[16],"striped":[4],"hoverable":[4]}]]],["ui-tabs.cjs",[[257,"ui-tabs",{"value":[1537],"items":[16]}]]],["ui-textarea.cjs",[[1,"ui-textarea",{"value":[1025],"placeholder":[1],"disabled":[4],"invalid":[4],"name":[1],"rows":[2]}]]],["ui-theme-toggle.cjs",[[1,"ui-theme-toggle",{"isDark":[32]}]]],["ui-tooltip.cjs",[[257,"ui-tooltip",{"content":[1],"placement":[1],"openDelay":[2,"open-delay"],"visible":[32]}]]],["ui-spinner.cjs",[[1,"ui-spinner",{"size":[1]}]]],["ui-toast.cjs",[[1,"ui-toast",{"open":[1540],"variant":[1],"heading":[1],"description":[1],"duration":[2],"show":[64],"close":[64]},null,{"open":[{"onOpenChange":0}]}]]]], options);
9
9
  };
10
10
 
11
11
  exports.setNonce = index.setNonce;
@@ -19,7 +19,7 @@ const UiAccordionItem = class {
19
19
  };
20
20
  }
21
21
  render() {
22
- return (index.h(index.Host, { key: 'a6753eab6e0dc158aadd47469da57bf73274cb99' }, index.h("details", { key: 'c98130b641f5cca70f27867ecc23769de0871733', open: this.open, onToggle: this.onToggle }, index.h("summary", { key: 'ed84e054379bc2f3133c675b5ddd8b6b69bb205c' }, index.h("span", { key: '49d66f1f5ade0c22d4b13f1ead38d712d8dc0310', class: "heading" }, this.heading), index.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" }, index.h("polyline", { key: 'd69ebaaa12602c3c2d4a44d1c5b5ca6ed523f254', points: "6 9 12 15 18 9" }))), index.h("div", { key: '98178b28965c4595c0330299a358cc821424985f', class: "content" }, index.h("slot", { key: 'd633bc20693f7ac970e6fa1cf55760841243a870' })))));
22
+ return (index.h(index.Host, { key: '613b3accfe538702304aeaa7d826297948cd2c45' }, index.h("details", { key: '912854f32a5e15fbb2e708b4de5e0c4059733722', open: this.open, onToggle: this.onToggle }, index.h("summary", { key: '814a3332eb5dd4fbf340ae7cdb55fe8f618c0253' }, index.h("span", { key: '63ab8d2d1a60ea7327577b80547897aa0d78e2dd', class: "heading" }, this.heading), index.h("svg", { key: 'c6812c39cbe86ad0e09d61d44bfff3784c93d462', 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" }, index.h("polyline", { key: '67969ddf96e125133c9b7a4d59edb5a9af21a319', points: "6 9 12 15 18 9" }))), index.h("div", { key: 'e8e1adb834e3749848db663b0a27b672fb33302d', class: "content" }, index.h("slot", { key: '3d22b0d25f5000e6e9402658ec52996c2f9f3c09' })))));
23
23
  }
24
24
  };
25
25
  UiAccordionItem.style = uiAccordionItemCss();
@@ -9,7 +9,7 @@ const UiAccordion = class {
9
9
  index.registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (index.h(index.Host, { key: 'e6332a0fa193f07001cf71f61531729529607b2b' }, index.h("slot", { key: '95ab7de2a8344e267fe97cae784b75635cafd289' })));
12
+ return (index.h(index.Host, { key: '0242c529aecf9b0f35958f21f9df65d4cba8ba37' }, index.h("slot", { key: '394493e0939fa0224be6233830f588e88e49a2d3' })));
13
13
  }
14
14
  };
15
15
  UiAccordion.style = uiAccordionCss();
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Cb1tfi_9.js');
4
+
5
+ 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)}`;
6
+
7
+ const UiAlert = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ this.uiClose = index.createEvent(this, "uiClose");
11
+ /** Variante visual. */
12
+ this.variant = "info";
13
+ /** Exibe o botão de fechar. */
14
+ this.dismissible = false;
15
+ /** Controla a visibilidade interna do alerta. */
16
+ this.open = true;
17
+ this.dismiss = () => {
18
+ this.open = false;
19
+ this.uiClose.emit();
20
+ };
21
+ }
22
+ renderIcon() {
23
+ switch (this.variant) {
24
+ case "success":
25
+ return (index.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" }, index.h("circle", { cx: "12", cy: "12", r: "10" }), index.h("path", { d: "M8 12l3 3 5-6" })));
26
+ case "warning":
27
+ return (index.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" }, index.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" }), index.h("line", { x1: "12", y1: "9", x2: "12", y2: "13" }), index.h("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })));
28
+ case "danger":
29
+ return (index.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" }, index.h("circle", { cx: "12", cy: "12", r: "10" }), index.h("line", { x1: "15", y1: "9", x2: "9", y2: "15" }), index.h("line", { x1: "9", y1: "9", x2: "15", y2: "15" })));
30
+ default:
31
+ return (index.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" }, index.h("circle", { cx: "12", cy: "12", r: "10" }), index.h("line", { x1: "12", y1: "11", x2: "12", y2: "16" }), index.h("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })));
32
+ }
33
+ }
34
+ render() {
35
+ return (index.h(index.Host, { key: '0de470e0aec991fe0ed4b47d4b14075d0153ef54' }, this.open && (index.h("div", { key: 'd17b7326f4c76fe99a32f402fb53a095721bf209', class: { alert: true, [`variant-${this.variant}`]: true }, role: "alert" }, index.h("span", { key: '124489a92f47b4c7751f9af674b13add775bf3d3', class: "indicator" }, this.renderIcon()), index.h("div", { key: '9c0741a48bee7225f7831b18ab492156c217f5a5', class: "body" }, this.heading && index.h("p", { key: 'f883db0bdd9b48cfc1915d209675f681cc846d95', class: "heading" }, this.heading), index.h("div", { key: '4a1de1b6a5f6fc84eead49a0a0357067b6c3dcab', class: "content" }, index.h("slot", { key: '21ac76a2d287bb4e8629bac25cd3753886d14b5d' }))), this.dismissible && (index.h("button", { key: 'f96e21942bed9489b296f76b6bdcc026f4351141', class: "close", type: "button", "aria-label": "Fechar", onClick: this.dismiss }, index.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" }, index.h("line", { key: 'e05e78664e7161af63d9e420a77726b52f14fff5', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: 'f6e62b74f93061762881b30866c105b332e79870', x1: "6", y1: "6", x2: "18", y2: "18" }))))))));
36
+ }
37
+ };
38
+ UiAlert.style = uiAlertCss();
39
+
40
+ exports.ui_alert = UiAlert;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Cb1tfi_9.js');
4
+
5
+ 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)}`;
6
+
7
+ const UiAvatarGroup = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ }
11
+ render() {
12
+ return (index.h(index.Host, { key: 'ffbc4f069a58a5c5e9bf014ec9fc41d11ceb24b8' }, index.h("div", { key: 'c6f7c559740f193c0347f7834169fbd2eb252272', class: "group" }, index.h("slot", { key: 'd66719ad68488098d753eefc8da5cc65bf6a85a4' }))));
13
+ }
14
+ };
15
+ UiAvatarGroup.style = uiAvatarGroupCss();
16
+
17
+ exports.ui_avatar_group = UiAvatarGroup;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-Cb1tfi_9.js');
4
4
 
5
- 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}`;
5
+ 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)}`;
6
6
 
7
7
  const UiAvatar = class {
8
8
  constructor(hostRef) {
@@ -11,7 +11,7 @@ const UiAvatar = class {
11
11
  this.alt = "";
12
12
  }
13
13
  render() {
14
- return (index.h(index.Host, { key: '7a6bbef0807d0d3dc25692a6bf87171131579e46' }, index.h("span", { key: '6b548ed4e5ec0dc7bb52dcb3660ffc188705439f', class: "avatar" }, this.src ? (index.h("img", { class: "image", src: this.src, alt: this.alt })) : (index.h("span", { class: "fallback" }, this.fallback)))));
14
+ return (index.h(index.Host, { key: '3f5862531fd7c0df254cca0be373c4f5661bac1c' }, index.h("span", { key: '2c831417964e89d68f3535321868aa0fab82df26', class: "wrapper" }, index.h("span", { key: '7573d9b9bdd3c07e7913002923722e19eb652d8e', class: "avatar" }, this.src ? (index.h("img", { class: "image", src: this.src, alt: this.alt })) : (index.h("span", { class: "fallback" }, this.fallback))), this.status && (index.h("span", { key: 'adb6bf39438427a853fffe2eb84b95474aa8c123', class: `status status-${this.status}`, "aria-label": this.status })))));
15
15
  }
16
16
  };
17
17
  UiAvatar.style = uiAvatarCss();
@@ -2,16 +2,21 @@
2
2
 
3
3
  var index = require('./index-Cb1tfi_9.js');
4
4
 
5
- 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)}`;
5
+ 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}`;
6
6
 
7
7
  const UiBadge = class {
8
8
  constructor(hostRef) {
9
9
  index.registerInstance(this, hostRef);
10
+ this.uiRemove = index.createEvent(this, "uiRemove");
10
11
  /** Variante visual. */
11
12
  this.variant = "default";
13
+ /** Exibe um ponto colorido à esquerda. */
14
+ this.dot = false;
15
+ /** Exibe um botão para remover o badge. */
16
+ this.removable = false;
12
17
  }
13
18
  render() {
14
- return (index.h(index.Host, { key: '260e9e23ffa9a624e17e5a794217402ab2167f31' }, index.h("span", { key: '1b0d40c5b9a46c5928132d050e3c2f9e3bcd4ea8', class: { badge: true, [`variant-${this.variant}`]: true } }, index.h("slot", { key: '9680659040a4d48bdb53415e40bbbef9819063d9' }))));
19
+ return (index.h(index.Host, { key: '30760a471c805c011e45b1ee2c59507de0774b3c' }, index.h("span", { key: 'f06905297a3c5641634104a014452737d34918cc', class: { badge: true, [`variant-${this.variant}`]: true } }, this.dot && index.h("span", { key: '255e4debacda174708abb165159347c6aeeffced', class: "dot" }), index.h("slot", { key: 'e8fb22f25b0b1c805289e3e6d1108a1cb93b5e28' }), this.removable && (index.h("button", { key: 'a30d3213f31780e4c3fa80d98b45ae539b711f43', class: "remove", type: "button", "aria-label": "Remover", onClick: () => this.uiRemove.emit() }, index.h("svg", { key: 'e57df3139096ea131fa1c3fbddf51f6507423346', viewBox: "0 0 24 24", width: "12", height: "12", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round" }, index.h("path", { key: 'da3810852846ac9cda68957d7dadcb3737be348d', d: "M18 6 6 18M6 6l12 12" })))))));
15
20
  }
16
21
  };
17
22
  UiBadge.style = uiBadgeCss();
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Cb1tfi_9.js');
4
+
5
+ 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}`;
6
+
7
+ const UiBreadcrumbItem = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ /** Indica o item atual (página corrente). */
11
+ this.current = false;
12
+ }
13
+ renderSeparator() {
14
+ return (index.h("span", { class: "separator", "aria-hidden": "true" }, index.h("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { points: "9 18 15 12 9 6" }))));
15
+ }
16
+ render() {
17
+ const isLink = this.href && !this.current;
18
+ return (index.h(index.Host, { key: '20f1a108e5275c29e2fbb243720a8b70efb10b24' }, isLink ? (index.h("a", { class: "link", href: this.href }, index.h("slot", null))) : (index.h("span", { class: "current", "aria-current": this.current ? "page" : undefined }, index.h("slot", null))), !this.current && this.renderSeparator()));
19
+ }
20
+ };
21
+ UiBreadcrumbItem.style = uiBreadcrumbItemCss();
22
+
23
+ exports.ui_breadcrumb_item = UiBreadcrumbItem;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Cb1tfi_9.js');
4
+
5
+ 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}`;
6
+
7
+ const UiBreadcrumb = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ }
11
+ render() {
12
+ return (index.h(index.Host, { key: '93726eb6ef05c505f409ec5b313e7db50c0d0a78' }, index.h("nav", { key: 'dc02b8d95d1c0998e2e7533ab8ed214fb9c19a63', "aria-label": "breadcrumb" }, index.h("ol", { key: '41dc2d7fe3cbf1b684723d759ef0d00f17bf2e00' }, index.h("slot", { key: 'eb64652ac37ca5ce1ebd865260ad1ac2c5dd7548' })))));
13
+ }
14
+ };
15
+ UiBreadcrumb.style = uiBreadcrumbCss();
16
+
17
+ exports.ui_breadcrumb = UiBreadcrumb;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-Cb1tfi_9.js');
4
4
 
5
- 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)}}`;
5
+ 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);background:transparent;color:var(--ui-foreground);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)}}`;
6
6
 
7
7
  const UiButton = class {
8
8
  constructor(hostRef) {
@@ -17,13 +17,15 @@ const UiButton = class {
17
17
  this.loading = false;
18
18
  /** Tipo do botão nativo. */
19
19
  this.type = "button";
20
+ /** Ocupa 100% da largura disponível. */
21
+ this.full = false;
20
22
  }
21
23
  render() {
22
- return (index.h(index.Host, { key: 'bf18a1f72babada2698ce42f54bf2d73b0d41d0b' }, index.h("button", { key: 'f08a766e14d139d7031dac4fa5846fbc0749328f', class: {
24
+ return (index.h(index.Host, { key: 'fa9886a20cac8424b127be543c0fd1ad04cc2fb1' }, index.h("button", { key: 'c54077dabce85b286733efcae8a08a435b81d72e', class: {
23
25
  btn: true,
24
26
  [`variant-${this.variant}`]: true,
25
27
  [`size-${this.size}`]: true,
26
- }, type: this.type, disabled: this.disabled || this.loading, "aria-busy": this.loading ? "true" : null }, this.loading && index.h("span", { key: 'a3e87dd124b697050a657b9957884c231aa58c54', class: "spinner", "aria-hidden": "true" }), index.h("slot", { key: '87a720f06602011042d70a91918a0b2157abb163' }))));
28
+ }, type: this.type, disabled: this.disabled || this.loading, "aria-busy": this.loading ? "true" : null }, this.loading && index.h("span", { key: '8e557bd098d5655be256ea7fc0748990b7f11026', class: "spinner", "aria-hidden": "true" }), index.h("slot", { key: '36946d065411700928e3541f351a3f6f75018ae9' }))));
27
29
  }
28
30
  };
29
31
  UiButton.style = uiButtonCss();
@@ -9,7 +9,7 @@ const UiCard = class {
9
9
  index.registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (index.h(index.Host, { key: '1608f7f7bd8addc04064a70965fdb28a67a1abef' }, index.h("div", { key: '976e8fa507f78649789161f5eaaa2308547c7040', class: "card" }, index.h("slot", { key: '803ef160438006449051c2068246fd6f20562cc5', name: "title" }), index.h("slot", { key: '84bfdd0d56b015d09598e53e0002b9ac5e69934d', name: "description" }), index.h("slot", { key: '97d8522f426b54ab6a8b51038bd8f2b8e2413d0e' }), index.h("slot", { key: '8b36ab658e61cdebb391d6bb8dc427d809a81b30', name: "footer" }))));
12
+ return (index.h(index.Host, { key: '2f6568112992159a78a5c9dac99bd1a453cd779a' }, index.h("div", { key: '3d76798bf20f98b20a8d7b1847896f9641585cda', class: "card" }, index.h("slot", { key: 'cf396f9448c56b96859072327f5f82bb00f0c36d', name: "title" }), index.h("slot", { key: '04fdf85b8c4ffa318b084616ba902998d085a990', name: "description" }), index.h("slot", { key: 'a716446f123d47c8f47bea6915ac7489dd41fd45' }), index.h("slot", { key: '9b2e4abc3987a04e72b13eff8cacf3257b89f174', name: "footer" }))));
13
13
  }
14
14
  };
15
15
  UiCard.style = uiCardCss();
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-Cb1tfi_9.js');
4
4
 
5
- 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)}`;
5
+ 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)}`;
6
6
 
7
7
  const UiCheckbox = class {
8
8
  constructor(hostRef) {
@@ -26,7 +26,7 @@ const UiCheckbox = class {
26
26
  };
27
27
  }
28
28
  render() {
29
- return (index.h(index.Host, { key: '3702acd47b1980ddf23df427a68c69ee782756e4' }, index.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 }, index.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" }, index.h("polyline", { key: '34a601d25b20fdf1ad697349531888648795f4bf', points: "20 6 9 17 4 12" })))));
29
+ return (index.h(index.Host, { key: 'ec07dd3898dfb9eeac1a07d41895be145a8f03f0' }, index.h("button", { key: '7d1e72daf042994ba140703e5f8ce2bb5558932d', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, index.h("svg", { key: 'f1a59bc59f90e6bce5b289a4a05da51778788c19', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, index.h("polyline", { key: '6ea7bc0406e6e8befd6ceea7193423bd433d9a63', points: "20 6 9 17 4 12" })))));
30
30
  }
31
31
  };
32
32
  UiCheckbox.style = uiCheckboxCss();
@@ -0,0 +1,153 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Cb1tfi_9.js');
4
+ var floatingUi_dom = require('./floating-ui.dom-BZk7Blsu.js');
5
+
6
+ const uiComboboxCss = () => `: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{border-color:var(--ui-border-strong)}.field:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.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)}.list{position:fixed;top:0;left:0;z-index:50;max-height:16rem;overflow-y:auto;padding:0.25rem;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px);border-radius:var(--ui-radius);visibility:hidden;opacity:0;transition:opacity var(--ui-duration) var(--ui-ease), visibility var(--ui-duration) var(--ui-ease)}.list.is-open{visibility:visible;opacity:1}.option{padding:0.5rem 0.75rem;font-size:0.875rem;color:var(--ui-foreground);border-radius:var(--ui-radius-sm);cursor:pointer;transition:background var(--ui-duration) var(--ui-ease)}.option.active{background:var(--ui-chip)}.option.selected{color:var(--ui-accent)}.empty{padding:0.5rem 0.75rem;font-size:0.875rem;color:var(--ui-text-faint)}`;
7
+
8
+ const UiCombobox = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.uiChange = index.createEvent(this, "uiChange");
12
+ /** Opções disponíveis para autocomplete. */
13
+ this.options = [];
14
+ /** Valor selecionado. */
15
+ this.value = "";
16
+ /** Placeholder do campo. */
17
+ this.placeholder = "";
18
+ /** Texto digitado no campo. */
19
+ this.query = "";
20
+ /** Indica se a lista flutuante está aberta. */
21
+ this.open = false;
22
+ /** Índice da opção destacada. */
23
+ this.activeIndex = -1;
24
+ this.listId = `ui-combobox-list-${Math.random().toString(36).slice(2, 9)}`;
25
+ this.onInput = (event) => {
26
+ this.query = event.target.value;
27
+ this.activeIndex = -1;
28
+ this.setOpen(true);
29
+ };
30
+ this.onFocus = () => {
31
+ this.setOpen(true);
32
+ };
33
+ this.onKeydown = (event) => {
34
+ const items = this.filtered;
35
+ switch (event.key) {
36
+ case "ArrowDown":
37
+ event.preventDefault();
38
+ if (!this.open) {
39
+ this.setOpen(true);
40
+ return;
41
+ }
42
+ if (items.length === 0)
43
+ return;
44
+ this.activeIndex = (this.activeIndex + 1) % items.length;
45
+ break;
46
+ case "ArrowUp":
47
+ event.preventDefault();
48
+ if (items.length === 0)
49
+ return;
50
+ this.activeIndex =
51
+ (this.activeIndex - 1 + items.length) % items.length;
52
+ break;
53
+ case "Enter":
54
+ if (this.open && this.activeIndex >= 0 && items[this.activeIndex]) {
55
+ event.preventDefault();
56
+ this.select(items[this.activeIndex]);
57
+ }
58
+ break;
59
+ case "Escape":
60
+ if (this.open) {
61
+ event.preventDefault();
62
+ this.setOpen(false);
63
+ }
64
+ break;
65
+ }
66
+ };
67
+ this.onDocumentClick = (event) => {
68
+ if (!this.open)
69
+ return;
70
+ if (event.composedPath().includes(this.host))
71
+ return;
72
+ this.setOpen(false);
73
+ };
74
+ }
75
+ componentWillLoad() {
76
+ const selected = this.options.find((option) => option.value === this.value);
77
+ if (selected)
78
+ this.query = selected.label;
79
+ }
80
+ disconnectedCallback() {
81
+ this.stop();
82
+ document.removeEventListener("click", this.onDocumentClick);
83
+ }
84
+ get filtered() {
85
+ const term = this.query.toLowerCase();
86
+ return this.options.filter((option) => option.label.toLowerCase().includes(term));
87
+ }
88
+ setOpen(value) {
89
+ if (this.open === value)
90
+ return;
91
+ this.open = value;
92
+ if (value) {
93
+ requestAnimationFrame(() => this.start());
94
+ document.addEventListener("click", this.onDocumentClick);
95
+ }
96
+ else {
97
+ this.stop();
98
+ this.activeIndex = -1;
99
+ document.removeEventListener("click", this.onDocumentClick);
100
+ }
101
+ }
102
+ start() {
103
+ if (!this.inputEl || !this.listEl)
104
+ return;
105
+ this.stop();
106
+ this.cleanup = floatingUi_dom.autoUpdate(this.inputEl, this.listEl, () => {
107
+ if (!this.inputEl || !this.listEl)
108
+ return;
109
+ floatingUi_dom.computePosition(this.inputEl, this.listEl, {
110
+ placement: "bottom-start",
111
+ middleware: [
112
+ floatingUi_dom.offset(6),
113
+ floatingUi_dom.flip(),
114
+ floatingUi_dom.shift({ padding: 8 }),
115
+ floatingUi_dom.size({
116
+ apply: ({ rects, elements }) => {
117
+ Object.assign(elements.floating.style, {
118
+ width: `${rects.reference.width}px`,
119
+ });
120
+ },
121
+ }),
122
+ ],
123
+ }).then(({ x, y }) => {
124
+ Object.assign(this.listEl.style, { left: `${x}px`, top: `${y}px` });
125
+ });
126
+ });
127
+ }
128
+ stop() {
129
+ this.cleanup?.();
130
+ this.cleanup = undefined;
131
+ }
132
+ select(option) {
133
+ this.value = option.value;
134
+ this.query = option.label;
135
+ this.setOpen(false);
136
+ this.uiChange.emit(option.value);
137
+ }
138
+ render() {
139
+ const items = this.filtered;
140
+ return (index.h(index.Host, { key: '64d332f96d0cb39e1889eb56dbf448f67e5ed240' }, index.h("div", { key: '30f829b5eff180aa97a2bbb2f90a4e289768df71', class: "field" }, index.h("input", { key: 'f6df95047db674d2e49d34fed6057cffc86eab49', class: "input", type: "text", role: "combobox", value: this.query, placeholder: this.placeholder, autocomplete: "off", "aria-expanded": this.open ? "true" : "false", "aria-controls": this.listId, "aria-autocomplete": "list", ref: (el) => (this.inputEl = el), onInput: this.onInput, onFocus: this.onFocus, onKeyDown: this.onKeydown })), index.h("div", { key: 'de55c7ad59dfa3e35aeac8799366e3ee849d1398', id: this.listId, class: { list: true, "is-open": this.open }, role: "listbox", ref: (el) => (this.listEl = el) }, items.length === 0 ? (index.h("div", { class: "empty" }, "Nenhum resultado")) : (items.map((option, index$1) => (index.h("div", { class: {
141
+ option: true,
142
+ active: index$1 === this.activeIndex,
143
+ selected: option.value === this.value,
144
+ }, role: "option", "aria-selected": option.value === this.value ? "true" : "false", onMouseEnter: () => (this.activeIndex = index$1), onMouseDown: (event) => {
145
+ event.preventDefault();
146
+ this.select(option);
147
+ } }, option.label)))))));
148
+ }
149
+ get host() { return index.getElement(this); }
150
+ };
151
+ UiCombobox.style = uiComboboxCss();
152
+
153
+ exports.ui_combobox = UiCombobox;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-Cb1tfi_9.js');
4
+
5
+ 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}}`;
6
+
7
+ const UiContainer = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ /** Largura máxima do container. */
11
+ this.size = "lg";
12
+ /** Aplica padding lateral responsivo. */
13
+ this.padded = true;
14
+ }
15
+ render() {
16
+ const classes = {
17
+ container: true,
18
+ [`size-${this.size}`]: true,
19
+ padded: this.padded,
20
+ };
21
+ return (index.h(index.Host, { key: 'd9f407cdd15aa38d7e21898f4088d58846e38f22' }, index.h("div", { key: '7c7596a79dedc3daf94ac5440447c4608e037854', class: classes }, index.h("slot", { key: '5005378ea1514e2d96fa0cdba219055161ee6688' }))));
22
+ }
23
+ };
24
+ UiContainer.style = uiContainerCss();
25
+
26
+ exports.ui_container = UiContainer;