@andespindola/ui-core 0.2.0 → 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 (285) 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-avatar-group.cjs.entry.js +1 -1
  6. package/dist/cjs/ui-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +1 -1
  8. package/dist/cjs/ui-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ui-button.cjs.entry.js +1 -1
  10. package/dist/cjs/ui-card.cjs.entry.js +1 -1
  11. package/dist/cjs/ui-checkbox.cjs.entry.js +1 -1
  12. package/dist/cjs/ui-combobox.cjs.entry.js +153 -0
  13. package/dist/cjs/ui-container.cjs.entry.js +1 -1
  14. package/dist/cjs/ui-date-picker.cjs.entry.js +171 -0
  15. package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
  16. package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
  17. package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
  18. package/dist/cjs/ui-dropdown-menu.cjs.entry.js +2 -2
  19. package/dist/cjs/ui-field.cjs.entry.js +1 -1
  20. package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
  21. package/dist/cjs/ui-grid.cjs.entry.js +1 -1
  22. package/dist/cjs/ui-input.cjs.entry.js +1 -1
  23. package/dist/cjs/ui-label.cjs.entry.js +1 -1
  24. package/dist/cjs/ui-navbar.cjs.entry.js +17 -0
  25. package/dist/cjs/ui-pagination.cjs.entry.js +2 -2
  26. package/dist/cjs/ui-popover.cjs.entry.js +2 -2
  27. package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
  28. package/dist/cjs/ui-progress.cjs.entry.js +1 -1
  29. package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
  30. package/dist/cjs/ui-rating.cjs.entry.js +45 -0
  31. package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
  32. package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
  33. package/dist/cjs/ui-section.cjs.entry.js +1 -1
  34. package/dist/cjs/ui-segmented.cjs.entry.js +1 -1
  35. package/dist/cjs/ui-select.cjs.entry.js +1 -1
  36. package/dist/cjs/ui-separator.cjs.entry.js +1 -1
  37. package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
  38. package/dist/cjs/ui-slider.cjs.entry.js +1 -1
  39. package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
  40. package/dist/cjs/ui-stack.cjs.entry.js +1 -1
  41. package/dist/cjs/ui-stat.cjs.entry.js +1 -1
  42. package/dist/cjs/ui-switch.cjs.entry.js +1 -1
  43. package/dist/cjs/ui-table.cjs.entry.js +25 -0
  44. package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
  45. package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
  46. package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
  47. package/dist/cjs/ui-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
  49. package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
  50. package/dist/cjs/uikit.cjs.js +1 -1
  51. package/dist/collection/collection-manifest.json +7 -0
  52. package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
  53. package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
  54. package/dist/collection/components/ui-avatar/ui-avatar.js +1 -1
  55. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +1 -1
  56. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +1 -1
  57. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +1 -1
  58. package/dist/collection/components/ui-button/ui-button.css +2 -0
  59. package/dist/collection/components/ui-card/ui-card.js +1 -1
  60. package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
  61. package/dist/collection/components/ui-combobox/ui-combobox.css +93 -0
  62. package/dist/collection/components/ui-combobox/ui-combobox.js +248 -0
  63. package/dist/collection/components/ui-container/ui-container.js +1 -1
  64. package/dist/collection/components/ui-date-picker/ui-date-picker.css +176 -0
  65. package/dist/collection/components/ui-date-picker/ui-date-picker.js +243 -0
  66. package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
  67. package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
  68. package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
  69. package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
  70. package/dist/collection/components/ui-field/ui-field.js +1 -1
  71. package/dist/collection/components/ui-file-upload/ui-file-upload.css +79 -0
  72. package/dist/collection/components/ui-file-upload/ui-file-upload.js +151 -0
  73. package/dist/collection/components/ui-grid/ui-grid.js +1 -1
  74. package/dist/collection/components/ui-input/ui-input.js +1 -1
  75. package/dist/collection/components/ui-label/ui-label.js +1 -1
  76. package/dist/collection/components/ui-navbar/ui-navbar.css +36 -0
  77. package/dist/collection/components/ui-navbar/ui-navbar.js +18 -0
  78. package/dist/collection/components/ui-pagination/ui-pagination.js +2 -2
  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-progress-circular/ui-progress-circular.css +46 -0
  82. package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +171 -0
  83. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  84. package/dist/collection/components/ui-rating/ui-rating.css +52 -0
  85. package/dist/collection/components/ui-rating/ui-rating.js +134 -0
  86. package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
  87. package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
  88. package/dist/collection/components/ui-section/ui-section.js +1 -1
  89. package/dist/collection/components/ui-segmented/ui-segmented.js +1 -1
  90. package/dist/collection/components/ui-select/ui-select.js +1 -1
  91. package/dist/collection/components/ui-separator/ui-separator.js +1 -1
  92. package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
  93. package/dist/collection/components/ui-slider/ui-slider.js +1 -1
  94. package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
  95. package/dist/collection/components/ui-stack/ui-stack.js +1 -1
  96. package/dist/collection/components/ui-stat/ui-stat.js +1 -1
  97. package/dist/collection/components/ui-switch/ui-switch.js +1 -1
  98. package/dist/collection/components/ui-table/ui-table.css +46 -0
  99. package/dist/collection/components/ui-table/ui-table.js +119 -0
  100. package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
  101. package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
  102. package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
  103. package/dist/collection/components/ui-toast/ui-toast.js +1 -1
  104. package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
  105. package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
  106. package/dist/components/{p-CgsjJD8o.js → p-DDJE__UC.js} +1 -1
  107. package/dist/{uikit/p-CyBRmmbs.js → components/p-DDtwbwIl.js} +1 -1
  108. package/dist/components/{p-BwNtNvTb.js → p-DUT2Q8Df.js} +1 -1
  109. package/dist/components/ui-accordion-item.js +1 -1
  110. package/dist/components/ui-accordion.js +1 -1
  111. package/dist/components/ui-avatar-group.js +1 -1
  112. package/dist/components/ui-avatar.js +1 -1
  113. package/dist/components/ui-breadcrumb-item.js +1 -1
  114. package/dist/components/ui-breadcrumb.js +1 -1
  115. package/dist/components/ui-button.js +1 -1
  116. package/dist/components/ui-card.js +1 -1
  117. package/dist/components/ui-checkbox.js +1 -1
  118. package/dist/components/ui-combobox.d.ts +11 -0
  119. package/dist/components/ui-combobox.js +1 -0
  120. package/dist/components/ui-container.js +1 -1
  121. package/dist/components/ui-date-picker.d.ts +11 -0
  122. package/dist/components/ui-date-picker.js +1 -0
  123. package/dist/components/ui-dialog.js +1 -1
  124. package/dist/components/ui-drawer.js +1 -1
  125. package/dist/components/ui-dropdown-item.js +1 -1
  126. package/dist/components/ui-dropdown-menu.js +1 -1
  127. package/dist/components/ui-field.js +1 -1
  128. package/dist/components/ui-file-upload.d.ts +11 -0
  129. package/dist/components/ui-file-upload.js +1 -0
  130. package/dist/components/ui-grid.js +1 -1
  131. package/dist/components/ui-input.js +1 -1
  132. package/dist/components/ui-label.js +1 -1
  133. package/dist/components/ui-loading-overlay.js +1 -1
  134. package/dist/components/ui-navbar.d.ts +11 -0
  135. package/dist/components/ui-navbar.js +1 -0
  136. package/dist/components/ui-pagination.js +1 -1
  137. package/dist/components/ui-popover.js +1 -1
  138. package/dist/components/ui-progress-circular.d.ts +11 -0
  139. package/dist/components/ui-progress-circular.js +1 -0
  140. package/dist/components/ui-progress.js +1 -1
  141. package/dist/components/ui-radio-group.js +1 -1
  142. package/dist/components/ui-rating.d.ts +11 -0
  143. package/dist/components/ui-rating.js +1 -0
  144. package/dist/components/ui-reveal.js +1 -1
  145. package/dist/components/ui-scroll-progress.js +1 -1
  146. package/dist/components/ui-section.js +1 -1
  147. package/dist/components/ui-segmented.js +1 -1
  148. package/dist/components/ui-select.js +1 -1
  149. package/dist/components/ui-separator.js +1 -1
  150. package/dist/components/ui-skeleton.js +1 -1
  151. package/dist/components/ui-slider.js +1 -1
  152. package/dist/components/ui-spinner.js +1 -1
  153. package/dist/components/ui-stack.js +1 -1
  154. package/dist/components/ui-stat.js +1 -1
  155. package/dist/components/ui-switch.js +1 -1
  156. package/dist/components/ui-table.d.ts +11 -0
  157. package/dist/components/ui-table.js +1 -0
  158. package/dist/components/ui-tabs.js +1 -1
  159. package/dist/components/ui-textarea.js +1 -1
  160. package/dist/components/ui-theme-toggle.js +1 -1
  161. package/dist/components/ui-toast.js +1 -1
  162. package/dist/components/ui-toaster.js +1 -1
  163. package/dist/components/ui-tooltip.js +1 -1
  164. package/dist/esm/{floating-ui.dom-CyBRmmbs.js → floating-ui.dom-DDtwbwIl.js} +93 -1
  165. package/dist/esm/loader.js +1 -1
  166. package/dist/esm/ui-accordion-item.entry.js +1 -1
  167. package/dist/esm/ui-accordion.entry.js +1 -1
  168. package/dist/esm/ui-avatar-group.entry.js +1 -1
  169. package/dist/esm/ui-avatar.entry.js +1 -1
  170. package/dist/esm/ui-breadcrumb-item.entry.js +1 -1
  171. package/dist/esm/ui-breadcrumb.entry.js +1 -1
  172. package/dist/esm/ui-button.entry.js +1 -1
  173. package/dist/esm/ui-card.entry.js +1 -1
  174. package/dist/esm/ui-checkbox.entry.js +1 -1
  175. package/dist/esm/ui-combobox.entry.js +151 -0
  176. package/dist/esm/ui-container.entry.js +1 -1
  177. package/dist/esm/ui-date-picker.entry.js +169 -0
  178. package/dist/esm/ui-dialog.entry.js +1 -1
  179. package/dist/esm/ui-drawer.entry.js +1 -1
  180. package/dist/esm/ui-dropdown-item.entry.js +1 -1
  181. package/dist/esm/ui-dropdown-menu.entry.js +2 -2
  182. package/dist/esm/ui-field.entry.js +1 -1
  183. package/dist/esm/ui-file-upload.entry.js +55 -0
  184. package/dist/esm/ui-grid.entry.js +1 -1
  185. package/dist/esm/ui-input.entry.js +1 -1
  186. package/dist/esm/ui-label.entry.js +1 -1
  187. package/dist/esm/ui-navbar.entry.js +15 -0
  188. package/dist/esm/ui-pagination.entry.js +2 -2
  189. package/dist/esm/ui-popover.entry.js +2 -2
  190. package/dist/esm/ui-progress-circular.entry.js +42 -0
  191. package/dist/esm/ui-progress.entry.js +1 -1
  192. package/dist/esm/ui-radio-group.entry.js +1 -1
  193. package/dist/esm/ui-rating.entry.js +43 -0
  194. package/dist/esm/ui-reveal.entry.js +1 -1
  195. package/dist/esm/ui-scroll-progress.entry.js +1 -1
  196. package/dist/esm/ui-section.entry.js +1 -1
  197. package/dist/esm/ui-segmented.entry.js +1 -1
  198. package/dist/esm/ui-select.entry.js +1 -1
  199. package/dist/esm/ui-separator.entry.js +1 -1
  200. package/dist/esm/ui-skeleton.entry.js +1 -1
  201. package/dist/esm/ui-slider.entry.js +1 -1
  202. package/dist/esm/ui-spinner.entry.js +1 -1
  203. package/dist/esm/ui-stack.entry.js +1 -1
  204. package/dist/esm/ui-stat.entry.js +1 -1
  205. package/dist/esm/ui-switch.entry.js +1 -1
  206. package/dist/esm/ui-table.entry.js +23 -0
  207. package/dist/esm/ui-tabs.entry.js +2 -2
  208. package/dist/esm/ui-textarea.entry.js +1 -1
  209. package/dist/esm/ui-theme-toggle.entry.js +1 -1
  210. package/dist/esm/ui-toast.entry.js +1 -1
  211. package/dist/esm/ui-toaster.entry.js +1 -1
  212. package/dist/esm/ui-tooltip.entry.js +2 -2
  213. package/dist/esm/uikit.js +1 -1
  214. package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
  215. package/dist/types/components/ui-date-picker/ui-date-picker.d.ts +42 -0
  216. package/dist/types/components/ui-file-upload/ui-file-upload.d.ts +24 -0
  217. package/dist/types/components/ui-navbar/ui-navbar.d.ts +3 -0
  218. package/dist/types/components/ui-progress-circular/ui-progress-circular.d.ts +17 -0
  219. package/dist/types/components/ui-rating/ui-rating.d.ts +17 -0
  220. package/dist/types/components/ui-table/ui-table.d.ts +16 -0
  221. package/dist/types/components.d.ts +409 -0
  222. package/dist/types/index.d.ts +1 -0
  223. package/dist/uikit/{p-81b45a43.entry.js → p-008118af.entry.js} +1 -1
  224. package/dist/uikit/p-0715db16.entry.js +1 -0
  225. package/dist/uikit/p-10afa395.entry.js +1 -0
  226. package/dist/uikit/{p-25637424.entry.js → p-1449f229.entry.js} +1 -1
  227. package/dist/uikit/{p-567f7496.entry.js → p-1514ae37.entry.js} +1 -1
  228. package/dist/uikit/{p-cd0ec835.entry.js → p-1685191b.entry.js} +1 -1
  229. package/dist/uikit/p-1ef7948f.entry.js +1 -0
  230. package/dist/uikit/p-283e7623.entry.js +1 -0
  231. package/dist/uikit/p-2d92ce04.entry.js +1 -0
  232. package/dist/uikit/{p-faa98928.entry.js → p-3995852d.entry.js} +1 -1
  233. package/dist/uikit/p-3b1f92da.entry.js +1 -0
  234. package/dist/uikit/p-3fdfad2e.entry.js +1 -0
  235. package/dist/uikit/p-4044ebde.entry.js +1 -0
  236. package/dist/uikit/{p-95cd976e.entry.js → p-413cfbc6.entry.js} +1 -1
  237. package/dist/uikit/p-4ba0e4bc.entry.js +1 -0
  238. package/dist/uikit/{p-635862e6.entry.js → p-5e0bc34a.entry.js} +1 -1
  239. package/dist/uikit/{p-86ed6154.entry.js → p-60910c03.entry.js} +1 -1
  240. package/dist/uikit/{p-c73c1009.entry.js → p-62881327.entry.js} +1 -1
  241. package/dist/uikit/p-6c51a216.entry.js +1 -0
  242. package/dist/uikit/p-6d363a02.entry.js +1 -0
  243. package/dist/uikit/{p-67963692.entry.js → p-8535f5c9.entry.js} +1 -1
  244. package/dist/uikit/{p-2601d8b6.entry.js → p-88238a16.entry.js} +1 -1
  245. package/dist/uikit/{p-595e146f.entry.js → p-894fc85f.entry.js} +1 -1
  246. package/dist/uikit/p-8b882367.entry.js +1 -0
  247. package/dist/uikit/{p-12db6a6e.entry.js → p-9310b73b.entry.js} +1 -1
  248. package/dist/uikit/{p-1d016ea4.entry.js → p-99b7e461.entry.js} +1 -1
  249. package/dist/uikit/p-9d8d420e.entry.js +1 -0
  250. package/dist/uikit/{p-55a23f91.entry.js → p-9dbe7e12.entry.js} +1 -1
  251. package/dist/uikit/{p-09895cd0.entry.js → p-9f09fcec.entry.js} +1 -1
  252. package/dist/{components/p-CyBRmmbs.js → uikit/p-DDtwbwIl.js} +1 -1
  253. package/dist/uikit/{p-a977a0db.entry.js → p-a3d819cd.entry.js} +1 -1
  254. package/dist/uikit/{p-979f6178.entry.js → p-b0f2b1c8.entry.js} +1 -1
  255. package/dist/uikit/{p-3996590f.entry.js → p-b7e30398.entry.js} +1 -1
  256. package/dist/uikit/p-bac2c523.entry.js +1 -0
  257. package/dist/uikit/p-bbc718ef.entry.js +1 -0
  258. package/dist/uikit/{p-74b60a60.entry.js → p-bdd30484.entry.js} +1 -1
  259. package/dist/uikit/{p-fd832f52.entry.js → p-c1a9db7c.entry.js} +1 -1
  260. package/dist/uikit/p-c2138fb9.entry.js +1 -0
  261. package/dist/uikit/{p-ddd70374.entry.js → p-c94492ff.entry.js} +1 -1
  262. package/dist/uikit/{p-7f2c2924.entry.js → p-ccca2aeb.entry.js} +1 -1
  263. package/dist/uikit/{p-a01305a5.entry.js → p-d7ab158f.entry.js} +1 -1
  264. package/dist/uikit/p-da807078.entry.js +1 -0
  265. package/dist/uikit/p-e2065caa.entry.js +1 -0
  266. package/dist/uikit/{p-dca9f6f9.entry.js → p-f2983e94.entry.js} +1 -1
  267. package/dist/uikit/{p-2de05aac.entry.js → p-f4344cce.entry.js} +1 -1
  268. package/dist/uikit/{p-3fc062a6.entry.js → p-fb89d9a4.entry.js} +1 -1
  269. package/dist/uikit/p-fbe7806c.entry.js +1 -0
  270. package/dist/uikit/p-ffcd1faf.entry.js +1 -0
  271. package/dist/uikit/uikit.esm.js +1 -1
  272. package/package.json +1 -1
  273. package/dist/uikit/p-0cba0d11.entry.js +0 -1
  274. package/dist/uikit/p-6c0e9809.entry.js +0 -1
  275. package/dist/uikit/p-7a3d85da.entry.js +0 -1
  276. package/dist/uikit/p-94ad46a5.entry.js +0 -1
  277. package/dist/uikit/p-97d4dbf4.entry.js +0 -1
  278. package/dist/uikit/p-9a4dc343.entry.js +0 -1
  279. package/dist/uikit/p-9a9590b9.entry.js +0 -1
  280. package/dist/uikit/p-a080f46a.entry.js +0 -1
  281. package/dist/uikit/p-a92a7b19.entry.js +0 -1
  282. package/dist/uikit/p-b2df8437.entry.js +0 -1
  283. package/dist/uikit/p-d20452b4.entry.js +0 -1
  284. package/dist/uikit/p-d7021157.entry.js +0 -1
  285. package/dist/uikit/p-db07f9c5.entry.js +0 -1
@@ -0,0 +1,169 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DYwlrXg_.js';
2
+ import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom-DDtwbwIl.js';
3
+
4
+ const uiDatePickerCss = () => `:host{display:inline-block;font-family:var(--ui-font-sans)}.field{display:inline-flex;align-items:center;justify-content:space-between;gap:0.5rem;width:100%;min-width:12rem;height:2.75rem;padding:0 0.875rem;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;text-align:left;cursor:pointer;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-visible{outline:none;border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-foreground)}.label.placeholder{color:var(--ui-text-faint)}.icon{flex:none;color:var(--ui-text-muted)}.calendar{position:fixed;top:0;left:0;z-index:50;width:17rem;max-width:calc(100vw - 1rem);padding:1rem;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;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.calendar.is-open{visibility:visible;opacity:1;transform:scale(1)}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.75rem}.month-label{font-size:0.875rem;font-weight:600;text-transform:capitalize;color:var(--ui-foreground)}.nav{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2rem;height:2rem;padding:0;border:none;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-soft);cursor:pointer;transition:all var(--ui-duration) var(--ui-ease)}.nav:hover{background:var(--ui-chip);color:var(--ui-foreground)}.weekdays{display:grid;grid-template-columns:repeat(7, 1fr);margin-bottom:0.25rem}.weekday{display:flex;align-items:center;justify-content:center;height:1.75rem;font-size:0.7rem;color:var(--ui-text-faint)}.grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:0.125rem;justify-items:center}.day{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:1px solid transparent;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.8125rem;cursor:pointer;transition:all var(--ui-duration) var(--ui-ease)}.day.empty{cursor:default;pointer-events:none}.day:hover:not(.empty):not(.selected){background:var(--ui-chip)}.day.today{border-color:var(--ui-accent)}.day.selected{background:var(--ui-accent);color:var(--ui-accent-contrast);border-color:transparent}`;
5
+
6
+ const WEEKDAYS = ["D", "S", "T", "Q", "Q", "S", "S"];
7
+ const UiDatePicker = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.uiChange = createEvent(this, "uiChange");
11
+ /** Data selecionada no formato ISO "YYYY-MM-DD". */
12
+ this.value = "";
13
+ /** Texto exibido quando nenhuma data está selecionada. */
14
+ this.placeholder = "Selecione a data";
15
+ /** Controla a visibilidade do calendário. */
16
+ this.open = false;
17
+ this.onTriggerClick = (event) => {
18
+ event.stopPropagation();
19
+ this.setOpen(!this.open);
20
+ };
21
+ this.onDocumentClick = (event) => {
22
+ if (!this.open)
23
+ return;
24
+ if (event.composedPath().includes(this.host))
25
+ return;
26
+ this.setOpen(false);
27
+ };
28
+ this.onKeydown = (event) => {
29
+ if (event.key === "Escape" && this.open)
30
+ this.setOpen(false);
31
+ };
32
+ this.prevMonth = (event) => {
33
+ event.stopPropagation();
34
+ if (this.viewMonth === 0) {
35
+ this.viewMonth = 11;
36
+ this.viewYear -= 1;
37
+ }
38
+ else {
39
+ this.viewMonth -= 1;
40
+ }
41
+ };
42
+ this.nextMonth = (event) => {
43
+ event.stopPropagation();
44
+ if (this.viewMonth === 11) {
45
+ this.viewMonth = 0;
46
+ this.viewYear += 1;
47
+ }
48
+ else {
49
+ this.viewMonth += 1;
50
+ }
51
+ };
52
+ }
53
+ componentWillLoad() {
54
+ this.syncViewFromValue();
55
+ }
56
+ onValueChange() {
57
+ this.syncViewFromValue();
58
+ }
59
+ disconnectedCallback() {
60
+ this.stop();
61
+ document.removeEventListener("click", this.onDocumentClick);
62
+ document.removeEventListener("keydown", this.onKeydown);
63
+ }
64
+ syncViewFromValue() {
65
+ const parsed = this.parseValue(this.value);
66
+ const base = parsed ?? new Date();
67
+ this.viewYear = base.getFullYear();
68
+ this.viewMonth = base.getMonth();
69
+ }
70
+ /** Converte o ISO em Date local, evitando shift de fuso. */
71
+ parseValue(value) {
72
+ if (!value)
73
+ return null;
74
+ const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
75
+ if (!match)
76
+ return null;
77
+ const [, y, m, d] = match;
78
+ return new Date(Number(y), Number(m) - 1, Number(d));
79
+ }
80
+ /** Gera o ISO "YYYY-MM-DD" a partir de componentes locais. */
81
+ toISO(year, month, day) {
82
+ const mm = String(month + 1).padStart(2, "0");
83
+ const dd = String(day).padStart(2, "0");
84
+ return `${year}-${mm}-${dd}`;
85
+ }
86
+ formatValue() {
87
+ const parsed = this.parseValue(this.value);
88
+ return parsed ? parsed.toLocaleDateString("pt-BR") : "";
89
+ }
90
+ monthLabel() {
91
+ return new Date(this.viewYear, this.viewMonth, 1).toLocaleDateString("pt-BR", { month: "long", year: "numeric" });
92
+ }
93
+ setOpen(value) {
94
+ if (this.open === value)
95
+ return;
96
+ this.open = value;
97
+ if (value) {
98
+ this.syncViewFromValue();
99
+ requestAnimationFrame(() => this.start());
100
+ document.addEventListener("click", this.onDocumentClick);
101
+ document.addEventListener("keydown", this.onKeydown);
102
+ }
103
+ else {
104
+ this.stop();
105
+ document.removeEventListener("click", this.onDocumentClick);
106
+ document.removeEventListener("keydown", this.onKeydown);
107
+ }
108
+ }
109
+ start() {
110
+ if (!this.triggerEl || !this.floatingEl)
111
+ return;
112
+ this.stop();
113
+ this.cleanup = autoUpdate(this.triggerEl, this.floatingEl, () => {
114
+ if (!this.triggerEl || !this.floatingEl)
115
+ return;
116
+ computePosition(this.triggerEl, this.floatingEl, {
117
+ placement: "bottom-start",
118
+ middleware: [offset(6), flip(), shift({ padding: 8 })],
119
+ }).then(({ x, y }) => {
120
+ Object.assign(this.floatingEl.style, { left: `${x}px`, top: `${y}px` });
121
+ });
122
+ });
123
+ }
124
+ stop() {
125
+ this.cleanup?.();
126
+ this.cleanup = undefined;
127
+ }
128
+ selectDay(day) {
129
+ this.value = this.toISO(this.viewYear, this.viewMonth, day);
130
+ this.setOpen(false);
131
+ this.uiChange.emit(this.value);
132
+ }
133
+ buildDays() {
134
+ const firstWeekday = new Date(this.viewYear, this.viewMonth, 1).getDay();
135
+ const daysInMonth = new Date(this.viewYear, this.viewMonth + 1, 0).getDate();
136
+ const leading = Array.from({ length: firstWeekday }, () => 0);
137
+ const days = Array.from({ length: daysInMonth }, (_, i) => i + 1);
138
+ return [...leading, ...days];
139
+ }
140
+ isToday(day) {
141
+ const now = new Date();
142
+ return (day === now.getDate() &&
143
+ this.viewMonth === now.getMonth() &&
144
+ this.viewYear === now.getFullYear());
145
+ }
146
+ isSelected(day) {
147
+ return this.value === this.toISO(this.viewYear, this.viewMonth, day);
148
+ }
149
+ render() {
150
+ const display = this.formatValue();
151
+ return (h(Host, { key: '4ba4b256b16f49d1e65ffbe774c50065f097482f' }, h("button", { key: '0fa06810a3533cafcc808e680f61c3f289148ec5', type: "button", class: "field", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick, "aria-haspopup": "dialog", "aria-expanded": this.open ? "true" : "false" }, h("span", { key: 'fd6c3f01d8ba6212284b70c8830a007fc6dc4fcb', class: { label: true, placeholder: !display } }, display || this.placeholder), h("svg", { key: 'aebef2e4b5928db3fdd0eee7754d6d7c430459d4', class: "icon", viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("rect", { key: '8a87dd6a1230546145cd0d6626309c4c3835d379', x: "3", y: "4", width: "18", height: "18", rx: "2" }), h("path", { key: 'e3bca802e11ff11bbbd767c92233843a2b767e78', d: "M16 2v4M8 2v4M3 10h18" }))), h("div", { key: '1a8d439b816c7dcf0789e26788aee838e311b087', class: { calendar: true, "is-open": this.open }, role: "dialog", ref: (el) => (this.floatingEl = el) }, h("div", { key: '82d98e286b405ddfd12cc65cffe26b14ace1a31c', class: "header" }, h("button", { key: '6a01a9a3458d3e7b1dfc5ff153266106b9242511', type: "button", class: "nav", "aria-label": "M\u00EAs anterior", onClick: this.prevMonth }, h("svg", { key: 'cea0c6c7aecdf96eb2b4e42bf1b559fe7ea6e443', viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: '54d095e51205b3df5f52af6d2d28f89f2dd4db5c', d: "m15 18-6-6 6-6" }))), h("span", { key: '2dd822f49aa7f8bb419079a0c47f29bbfb7a22c4', class: "month-label" }, this.monthLabel()), h("button", { key: '553659e9903e96b84dcecbc86270d915dcd947f5', type: "button", class: "nav", "aria-label": "Pr\u00F3ximo m\u00EAs", onClick: this.nextMonth }, h("svg", { key: 'a73cdb32bedad0004a1d84b44e7866e008864fd8', viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: 'dac9e5c1fc22d2eefc73046269246ae07af53037', d: "m9 18 6-6-6-6" })))), h("div", { key: 'e731ae7eab8fee747826a58634cad540a60317a5', class: "weekdays" }, WEEKDAYS.map((label) => (h("span", { class: "weekday" }, label)))), h("div", { key: '4aa9f208fb5b20b3b35ae14f27d435918db3f380', class: "grid" }, this.buildDays().map((day) => day === 0 ? (h("span", { class: "day empty" })) : (h("button", { type: "button", class: {
152
+ day: true,
153
+ today: this.isToday(day),
154
+ selected: this.isSelected(day),
155
+ }, onClick: (event) => {
156
+ event.stopPropagation();
157
+ this.selectDay(day);
158
+ } }, day)))))));
159
+ }
160
+ get host() { return getElement(this); }
161
+ static get watchers() { return {
162
+ "value": [{
163
+ "onValueChange": 0
164
+ }]
165
+ }; }
166
+ };
167
+ UiDatePicker.style = uiDatePickerCss();
168
+
169
+ export { UiDatePicker as ui_date_picker };
@@ -42,7 +42,7 @@ const UiDialog = class {
42
42
  this.open = false;
43
43
  }
44
44
  render() {
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' })))));
45
+ return (h(Host, { key: 'f0ba1e147438e9941bd748b84cca800b93e0058a' }, h("dialog", { key: '54a38db84cc2bcd5064401499c8cbc48f9355021', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: '658cf9b13efe14c8db0c02b14b6ace5686ca686a', class: "content" }, h("slot", { key: '00cc3a3657049aabb7c80dfdefba059a5767da78' })))));
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: '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' })))));
47
+ return (h(Host, { key: '92e328d6068d3e183463e06897b9dc16e36c3be7' }, h("dialog", { key: 'd18eb940d959341831da313ee342f21f181aacfc', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: '9edf182db03b796ef944fbd4340d1d31db8b5321', class: "content" }, h("slot", { key: '34a67441244720ee301b9f4c2b871889a2a87d0b' })))));
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: 'a73d394ff94b232151c37e749d398f4485f46bde' }, h("button", { key: '3827857b88fc5d63681e80dc2cc470b58faf69e1', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: 'a6dbd79c7b171ef6a8a53aa5da39fbca37725e1c' }))));
19
+ return (h(Host, { key: '46fe995e0d6496002cb4ffda00e444731f195805' }, h("button", { key: '5938fcad75c81029a321bdce5c1b2c98cb4cb6a2', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: '32227bb1f298ab6ba3d97d1bae86b6ce713703b8' }))));
20
20
  }
21
21
  get host() { return getElement(this); }
22
22
  };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DYwlrXg_.js';
2
- import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom-CyBRmmbs.js';
2
+ import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom-DDtwbwIl.js';
3
3
 
4
4
  const uiDropdownMenuCss = () => `:host{display:inline-block}.trigger{display:inline-flex}.menu{position:fixed;top:0;left:0;z-index:50;display:flex;flex-direction:column;gap:0.125rem;min-width:10rem;max-width:calc(100vw - 1rem);padding:0.375rem;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;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.menu.is-open{visibility:visible;opacity:1;transform:scale(1)}`;
5
5
 
@@ -81,7 +81,7 @@ const UiDropdownMenu = class {
81
81
  this.cleanup = undefined;
82
82
  }
83
83
  render() {
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' }))));
84
+ return (h(Host, { key: '3224e4bac8bcfeda15aa6a5411a95574795231a8' }, h("span", { key: '5f0c50e0cb28c349469be5971ac0622f05d8dd19', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: '616a2917a7377d00414c8fe9745ef6c1297841fa', name: "trigger" })), h("div", { key: 'efa36b327e9ba6a89b939170c296a69ffbe18e90', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, h("slot", { key: 'aaffbbb6b8fe37072c8344d95a902dcb667416ba' }))));
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: '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)))));
12
+ return (h(Host, { key: 'f39f480b04be85c60eaa8821358b8921d52a7801' }, h("div", { key: '22303a73ad07ca344ef29c25947443e4d43e95fb', class: "field" }, this.label && (h("label", { key: 'bf355b9c884ee0393c91f4d3cdaa38ab6d0132dc', class: "label", htmlFor: this.fieldId }, this.label, this.required && (h("span", { key: '94614ebcee5a68e180e135f5294370e272836b90', class: "required", "aria-hidden": "true" }, " *")))), h("slot", { key: '7d4b22b2741540aac3b017b882f9abfdb67c7492' }), 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,55 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiFileUploadCss = () => `:host{display:block}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;width:100%;padding:1.5rem;border:2px dashed var(--ui-border-strong);border-radius:var(--ui-radius-lg);background:transparent;font-family:var(--ui-font-sans);cursor:pointer;transition:background var(--ui-duration) var(--ui-ease), border-color var(--ui-duration) var(--ui-ease)}.dropzone:hover,.dropzone.dragging{background:var(--ui-chip)}.dropzone:focus-visible{outline:none;box-shadow:0 0 0 2px var(--ui-ring)}.icon{color:var(--ui-text-soft)}.label{font-size:0.875rem;color:var(--ui-text-muted)}.hint{font-size:0.75rem;color:var(--ui-text-faint)}.files{list-style:none;margin:0.75rem 0 0;padding:0;display:flex;flex-direction:column;gap:0.375rem}.file{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.5rem 0.75rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-panel);font-family:var(--ui-font-sans)}.file-name{font-size:0.875rem;color:var(--ui-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size{flex-shrink:0;font-size:0.75rem;color:var(--ui-text-muted)}`;
4
+
5
+ const UiFileUpload = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.uiChange = createEvent(this, "uiChange");
9
+ /** Permite múltiplos arquivos. */
10
+ this.multiple = false;
11
+ /** Texto principal da zona de upload. */
12
+ this.label = "Arraste arquivos ou clique para enviar";
13
+ /** Arquivos atualmente selecionados. */
14
+ this.files = [];
15
+ /** Indica se há arraste sobre a zona. */
16
+ this.dragging = false;
17
+ this.openPicker = () => {
18
+ this.inputEl?.click();
19
+ };
20
+ this.onInputChange = (event) => {
21
+ const target = event.target;
22
+ this.setFiles(target.files);
23
+ };
24
+ this.onDragOver = (event) => {
25
+ event.preventDefault();
26
+ this.dragging = true;
27
+ };
28
+ this.onDragLeave = () => {
29
+ this.dragging = false;
30
+ };
31
+ this.onDrop = (event) => {
32
+ event.preventDefault();
33
+ this.dragging = false;
34
+ this.setFiles(event.dataTransfer?.files ?? null);
35
+ };
36
+ }
37
+ setFiles(list) {
38
+ if (!list)
39
+ return;
40
+ this.files = Array.from(list);
41
+ this.uiChange.emit(this.files);
42
+ }
43
+ formatSize(bytes) {
44
+ if (bytes >= 1024 * 1024) {
45
+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
46
+ }
47
+ return `${(bytes / 1024).toFixed(1)} KB`;
48
+ }
49
+ render() {
50
+ return (h(Host, { key: '675f04b6b96fcdcd10f1344c20225501671e456b' }, h("button", { key: 'bcc1bb63fa043f0778f38370d919eabfb37930f5', type: "button", class: { dropzone: true, dragging: this.dragging }, onClick: this.openPicker, onDragOver: this.onDragOver, onDragLeave: this.onDragLeave, onDrop: this.onDrop }, h("svg", { key: 'a5836edcdf54284806125e0356f0a5d9bf3e075a', class: "icon", viewBox: "0 0 24 24", width: "2rem", height: "2rem", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: '093a31bf1257a470ad7447c20ff02f4ca3ce1957', d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), h("polyline", { key: 'c1eaf0285b47c402fefba5d16d3e1418df06405e', points: "17 8 12 3 7 8" }), h("line", { key: '4655c3de2b0df216d7f520eb81dc8e8a839fde25', x1: "12", y1: "3", x2: "12", y2: "15" })), h("span", { key: 'afa948d851f9df7944a2c669f9e0432fb1bb017b', class: "label" }, this.label), this.accept ? (h("span", { class: "hint" }, this.accept)) : null), h("input", { key: 'd2b97f6a23121a701da7e9296f0f06d0175c6edc', type: "file", hidden: true, accept: this.accept, multiple: this.multiple, ref: (el) => (this.inputEl = el), onChange: this.onInputChange }), this.files.length > 0 ? (h("ul", { class: "files" }, this.files.map((file) => (h("li", { class: "file" }, h("span", { class: "file-name" }, file.name), h("span", { class: "file-size" }, this.formatSize(file.size))))))) : null));
51
+ }
52
+ };
53
+ UiFileUpload.style = uiFileUploadCss();
54
+
55
+ export { UiFileUpload as ui_file_upload };
@@ -24,7 +24,7 @@ const UiGrid = class {
24
24
  : `repeat(${this.columns}, minmax(0, 1fr))`,
25
25
  gap: GAP[this.gap],
26
26
  };
27
- return (h(Host, { key: '465a816e064af42d8282185ee92e32477a6112fd' }, h("div", { key: 'da2e151c56959ced55477e3fe6c99aa5563b38aa', class: "grid", style: style }, h("slot", { key: '5bb285ce0feaf16d066b627010fc3fb595a85c15' }))));
27
+ return (h(Host, { key: 'fa78c94117bc998616e3f30ef936527d5be66e13' }, h("div", { key: '8594c436b71b7f49434b3366ec70ea24c6b437dc', class: "grid", style: style }, h("slot", { key: '79bb94baa8dd68e82b88734d57f6e31b033a7f5f' }))));
28
28
  }
29
29
  };
30
30
  UiGrid.style = uiGridCss();
@@ -33,7 +33,7 @@ const UiInput = class {
33
33
  }
34
34
  render() {
35
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" })))));
36
+ return (h(Host, { key: 'cfe13feedab47ba88763ae727eb77ca15a0c52a3' }, h("div", { key: '7c79750f2ad87a55462a2416e9d46b4558f9b279', class: { field: true, invalid: this.invalid, disabled: this.disabled } }, h("span", { key: 'dafa1e0120f0de7a041ecfdb98db4203c1d67a28', class: "affix" }, h("slot", { key: '80aef681671784cd65f473975e441027d038c340', name: "prefix" })), h("input", { key: '8bad96710b4190784302fe9ce908f33aef0bc126', 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: '4b26604a6c1ff8004afa6ef0964490ba82553d61', class: "clear", type: "button", "aria-label": "Limpar", onClick: this.clear }, h("svg", { key: '87195594cef1db73b86f1117233fdef13ee9fa1a', viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, h("path", { key: '66be8eddf982847bf22f59f9113b66b4e47ca005', d: "M18 6 6 18M6 6l12 12" })))), h("span", { key: '749bf6ba578fd22b2d6c34b0fb7522f5a87a33e3', class: "affix" }, h("slot", { key: 'b226025774cedd33f915c6155061044b272d77a1', name: "suffix" })))));
37
37
  }
38
38
  };
39
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: '15695a208223a3270e49d72972a49c26fe3acd4d' }, h("label", { key: 'a6d0290c845797368e59fa936b80c8fee55dbcb1', class: "label" }, h("slot", { key: 'daae42c194f0c31d69a82bfad95a97b85cf2cdf2' }))));
10
+ return (h(Host, { key: '45a53d43b29ba78ac9852334536e9d7cb93e9c3c' }, h("label", { key: 'f8209140ec401f7a055d398181a421f281307a9b', class: "label" }, h("slot", { key: '50ba3bbce082e8f0c402c7acb3cd25ce822e3728' }))));
11
11
  }
12
12
  };
13
13
  UiLabel.style = uiLabelCss();
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiNavbarCss = () => `:host{display:block}.navbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 1.25rem;background:var(--ui-panel-strong);backdrop-filter:blur(22px);border-bottom:1px solid var(--ui-border);font-family:var(--ui-font-sans);color:var(--ui-text-soft)}.brand{display:flex;align-items:center;gap:0.5rem;font-weight:600;color:var(--ui-foreground)}.center{display:flex;align-items:center;gap:1rem}.actions{display:flex;align-items:center;gap:0.75rem}`;
4
+
5
+ const UiNavbar = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return (h(Host, { key: 'db6c3b0a7eee0812d931d4fb4c8b5ce444749b5e' }, h("nav", { key: '990bc62b051ca9f24ee5be4bf4e383873e5d8269', class: "navbar" }, h("div", { key: '999b46029fb0e0b6f5a04942d9326b30f7b0e392', class: "brand" }, h("slot", { key: '189a4521a16efdec4eee5c433b17a71028f05c90', name: "brand" })), h("div", { key: 'b3e129ad603ed6d32ec676aab96cf39e51834dec', class: "center" }, h("slot", { key: 'dc1fff1b9c536df2d88b5e92a83634d1e3bca384' })), h("div", { key: '854fac1322e96c7c67bf204af17ea665494c0fc5', class: "actions" }, h("slot", { key: '0f07b817547c866df0137f8667790b3caa65bea8', name: "actions" })))));
11
+ }
12
+ };
13
+ UiNavbar.style = uiNavbarCss();
14
+
15
+ export { UiNavbar as ui_navbar };
@@ -47,13 +47,13 @@ const UiPagination = class {
47
47
  const total = Math.max(this.total, 1);
48
48
  const current = this.clamp(this.current);
49
49
  const entries = this.buildRange();
50
- return (h(Host, { key: '405a1c41db3850f25ffc14a053b12c0767809b1e' }, h("nav", { key: 'bd9baa3307cb5576ca81ab82653b44ccd4cb0385', class: "pagination", role: "navigation", "aria-label": "Pagina\u00E7\u00E3o" }, h("button", { key: '8efdfeb278037fabab6b82ba4083a7d23a00d612', class: "page nav", type: "button", "aria-label": "P\u00E1gina anterior", disabled: current <= 1, onClick: () => this.go(current - 1) }, "\u2039"), entries.map((entry, index) => {
50
+ return (h(Host, { key: '23be36b9c734a9c43e9644337a58e4ede719215d' }, h("nav", { key: '618c7c85d1ea8f93bdd058d7ba4e61a62991e2d6', class: "pagination", role: "navigation", "aria-label": "Pagina\u00E7\u00E3o" }, h("button", { key: 'a9c0cac9d2b2fb6c61e9627158efd08f1e20f597', class: "page nav", type: "button", "aria-label": "P\u00E1gina anterior", disabled: current <= 1, onClick: () => this.go(current - 1) }, "\u2039"), entries.map((entry, index) => {
51
51
  if (entry === "...") {
52
52
  return (h("span", { key: `ellipsis-${index}`, class: "ellipsis", "aria-hidden": "true" }, "\u2026"));
53
53
  }
54
54
  const active = entry === current;
55
55
  return (h("button", { key: entry, class: { page: true, active }, type: "button", "aria-label": `Página ${entry}`, "aria-current": active ? "page" : undefined, onClick: () => this.go(entry) }, entry));
56
- }), h("button", { key: '5ba13b9a59857423e65a4d10630eb66cc32c30fe', class: "page nav", type: "button", "aria-label": "Pr\u00F3xima p\u00E1gina", disabled: current >= total, onClick: () => this.go(current + 1) }, "\u203A"))));
56
+ }), h("button", { key: '38fb86bda60934768f24c117e8586acb35f88513', class: "page nav", type: "button", "aria-label": "Pr\u00F3xima p\u00E1gina", disabled: current >= total, onClick: () => this.go(current + 1) }, "\u203A"))));
57
57
  }
58
58
  };
59
59
  UiPagination.style = uiPaginationCss();
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DYwlrXg_.js';
2
- import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom-CyBRmmbs.js';
2
+ import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom-DDtwbwIl.js';
3
3
 
4
4
  const uiPopoverCss = () => `:host{display:inline-block}.trigger{display:inline-flex}.panel{position:fixed;top:0;left:0;z-index:50;width:18rem;max-width:calc(100vw - 1rem);padding:1rem;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;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.panel.is-open{visibility:visible;opacity:1;transform:scale(1)}`;
5
5
 
@@ -78,7 +78,7 @@ const UiPopover = class {
78
78
  this.cleanup = undefined;
79
79
  }
80
80
  render() {
81
- return (h(Host, { key: '61b4088ff4d61701a3466619274e60ac64fcc420' }, h("span", { key: 'd2d00f4dbf391ea1bc119870e399187d98634de6', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: 'ece70edbdda096821de68295e55a3fba3caeada4', name: "trigger" })), h("div", { key: 'f30e5a570e49eb9c7056fd820bc57408dd78e013', class: { panel: true, "is-open": this.open }, ref: (el) => (this.floatingEl = el) }, h("slot", { key: '5823d3c7ed47946d812a2c34002fc5fd0cfc8a29' }))));
81
+ return (h(Host, { key: '005686226a579c5a9968f9b99bc177bfc523f4bc' }, h("span", { key: '3c43cbdfd37c6ec5243c94069fb3e417fb4fde8b', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: 'bcc68719623c4035cb4b811d52d916c86b814657', name: "trigger" })), h("div", { key: '04865b639bcb5ba267d1ed3e0399f8b677c1befa', class: { panel: true, "is-open": this.open }, ref: (el) => (this.floatingEl = el) }, h("slot", { key: '2a518fa968650f9e844996b21d421f5e96834fbd' }))));
82
82
  }
83
83
  get host() { return getElement(this); }
84
84
  static get watchers() { return {
@@ -0,0 +1,42 @@
1
+ import { r as registerInstance, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiProgressCircularCss = () => `:host{display:inline-flex;position:relative;align-items:center;justify-content:center}.ring{display:block}.ring.indeterminate{animation:ui-progress-circular-spin 1s linear infinite;transform-origin:center}.track{fill:none;stroke:var(--ui-chip)}.indicator{fill:none;stroke:var(--ui-accent);transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--ui-duration) var(--ui-ease)}.value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--ui-font-sans);font-size:0.8rem;font-weight:600;color:var(--ui-foreground)}@keyframes ui-progress-circular-spin{to{transform:rotate(360deg)}}`;
4
+
5
+ const UiProgressCircular = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /** Valor atual do progresso. `null` torna o componente indeterminado. */
9
+ this.value = null;
10
+ /** Valor máximo. */
11
+ this.max = 100;
12
+ /** Tamanho do anel (qualquer unidade CSS). */
13
+ this.size = "3rem";
14
+ /** Espessura do traço. */
15
+ this.strokeWidth = 4;
16
+ /** Força o estado indeterminado. */
17
+ this.indeterminate = false;
18
+ /** Exibe o percentual no centro quando determinado. */
19
+ this.showValue = false;
20
+ }
21
+ get isIndeterminate() {
22
+ return this.indeterminate || this.value === null;
23
+ }
24
+ get percent() {
25
+ if (this.value === null || this.max <= 0)
26
+ return 0;
27
+ const clamped = Math.min(Math.max(this.value, 0), this.max);
28
+ return clamped / this.max;
29
+ }
30
+ render() {
31
+ const determinate = !this.isIndeterminate;
32
+ const radius = 50 - this.strokeWidth;
33
+ const circumference = 2 * Math.PI * radius;
34
+ const dashoffset = determinate
35
+ ? circumference * (1 - this.percent)
36
+ : circumference * 0.75;
37
+ return (h(Host, { key: '4201e2e660c07a1b3d5ad6e2a464b3dc4075308a', role: "progressbar", "aria-valuenow": determinate ? String(this.value) : undefined, "aria-valuemin": determinate ? "0" : undefined, "aria-valuemax": determinate ? String(this.max) : undefined, style: { width: this.size, height: this.size } }, h("svg", { key: 'fe9226a711cbdd751baf6fd06e8acef3af63349e', class: { ring: true, indeterminate: this.isIndeterminate }, width: this.size, height: this.size, viewBox: "0 0 100 100" }, h("circle", { key: 'c7dc8282a2295ac97009f575bb7f116d54b0f917', class: "track", cx: "50", cy: "50", r: String(radius), "stroke-width": String(this.strokeWidth) }), h("circle", { key: '04f88283dde12b1e6c2206f7421fb4fa72c6d569', class: "indicator", cx: "50", cy: "50", r: String(radius), "stroke-width": String(this.strokeWidth), "stroke-linecap": "round", "stroke-dasharray": String(circumference), "stroke-dashoffset": String(dashoffset) })), this.showValue && determinate ? (h("div", { class: "value" }, Math.round(this.percent * 100), "%")) : null));
38
+ }
39
+ };
40
+ UiProgressCircular.style = uiProgressCircularCss();
41
+
42
+ export { UiProgressCircular as ui_progress_circular };
@@ -23,7 +23,7 @@ const UiProgress = class {
23
23
  }
24
24
  render() {
25
25
  const determinate = !this.isIndeterminate;
26
- return (h(Host, { key: '8f40e0e4a439959e1474d2952f0f891438fb3ecf', role: "progressbar", "aria-valuenow": determinate ? String(this.value) : undefined, "aria-valuemin": determinate ? "0" : undefined, "aria-valuemax": determinate ? String(this.max) : undefined }, h("div", { key: '9bfd7557efbfad05a8b170764b96935f00cbdaeb', class: "track" }, h("div", { key: '02205ac65e75f27f52869991b168c6397c8b2760', class: { indicator: true, indeterminate: this.isIndeterminate }, style: determinate ? { width: `${this.percent}%` } : undefined }))));
26
+ return (h(Host, { key: '0d53e528a9a2176e683310c375ff63a3785b7bc6', role: "progressbar", "aria-valuenow": determinate ? String(this.value) : undefined, "aria-valuemin": determinate ? "0" : undefined, "aria-valuemax": determinate ? String(this.max) : undefined }, h("div", { key: '5e7511d189ebc53dfffa6f9aabf0c6d110d2ba0f', class: "track" }, h("div", { key: '7d68e2e258c8d31a46815a66416853ea31af1b79', class: { indicator: true, indeterminate: this.isIndeterminate }, style: determinate ? { width: `${this.percent}%` } : undefined }))));
27
27
  }
28
28
  };
29
29
  UiProgress.style = uiProgressCss();
@@ -36,7 +36,7 @@ const UiRadioGroup = class {
36
36
  };
37
37
  }
38
38
  render() {
39
- return (h(Host, { key: '67c377ec552ea8cb6ea3d015bab1ee3d66ee436c' }, h("div", { key: 'aa52c74b8473ca06b762811a900d90cdfc8f7422', class: "group", role: "radiogroup" }, this.options.map((option, index) => {
39
+ return (h(Host, { key: 'f7265dce62bf0d590da4b9d8f8756f11991680fb' }, h("div", { key: 'ba70adcb04fae5ba2f78089ac95f8dfed4014efd', class: "group", role: "radiogroup" }, this.options.map((option, index) => {
40
40
  const selected = option.value === this.value;
41
41
  return (h("button", { class: "radio", type: "button", role: "radio", "aria-checked": selected ? "true" : "false", tabindex: selected || (!this.value && index === 0) ? "0" : "-1", disabled: this.disabled, onClick: () => this.select(option.value), onKeyDown: (event) => this.onKeyDown(event, index) }, h("span", { class: "indicator" }, h("span", { class: "dot" })), h("span", { class: "label" }, option.label)));
42
42
  }))));
@@ -0,0 +1,43 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DYwlrXg_.js';
2
+
3
+ const uiRatingCss = () => `:host{display:inline-flex}.rating{display:inline-flex;align-items:center;gap:0.125rem}.star{width:1.5rem;height:1.5rem;padding:0;border:none;background:none;cursor:pointer;color:var(--ui-border-strong);transition:color var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.star svg{display:block;fill:none;stroke:currentColor;stroke-width:1.5}.star.filled{color:var(--ui-warning)}.star.filled svg{fill:currentColor;stroke:currentColor}.star:not(.readonly):hover{transform:scale(1.15)}.star:focus-visible{outline:none;border-radius:var(--ui-radius);box-shadow:0 0 0 2px var(--ui-ring)}.star.readonly{pointer-events:none;cursor:default}`;
4
+
5
+ const UiRating = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.uiChange = createEvent(this, "uiChange");
9
+ /** Valor selecionado. */
10
+ this.value = 0;
11
+ /** Quantidade de estrelas. */
12
+ this.max = 5;
13
+ /** Apenas leitura, sem interação. */
14
+ this.readonly = false;
15
+ /** Estrela atualmente sob o cursor (-1 quando sem hover). */
16
+ this.hoverValue = -1;
17
+ this.onLeave = () => {
18
+ this.hoverValue = -1;
19
+ };
20
+ }
21
+ select(index) {
22
+ if (this.readonly)
23
+ return;
24
+ this.value = index;
25
+ this.uiChange.emit(this.value);
26
+ }
27
+ onEnter(index) {
28
+ if (this.readonly)
29
+ return;
30
+ this.hoverValue = index;
31
+ }
32
+ render() {
33
+ const active = this.hoverValue > 0 ? this.hoverValue : this.value;
34
+ const stars = Array.from({ length: this.max }, (_, i) => i + 1);
35
+ return (h(Host, { key: 'b334c2aea5f4b15907ef5d386f344403b97f0324' }, h("div", { key: '635e2ec90f98eb3f90c4f365d32fc82b5763cf42', class: "rating", role: "radiogroup", "aria-label": "Avalia\u00E7\u00E3o", onMouseLeave: this.onLeave }, stars.map((index) => {
36
+ const filled = index <= active;
37
+ return (h("button", { class: { star: true, filled, readonly: this.readonly }, type: "button", role: "radio", "aria-checked": index === this.value ? "true" : "false", "aria-label": `${index} estrelas`, onClick: () => this.select(index), onMouseEnter: () => this.onEnter(index) }, h("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%" }, h("path", { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" }))));
38
+ }))));
39
+ }
40
+ };
41
+ UiRating.style = uiRatingCss();
42
+
43
+ export { UiRating as ui_rating };
@@ -30,7 +30,7 @@ const UiReveal = class {
30
30
  this.observer?.disconnect();
31
31
  }
32
32
  render() {
33
- return (h(Host, { key: '4ab570c0eaa9fb6b4d6a9d01887fde6edd72ba8d' }, h("div", { key: 'cf0287499bfa5107fb49cadc85c85f2f70063967', class: { reveal: true, visible: this.visible }, style: { transitionDelay: `${this.delay}ms` } }, h("slot", { key: 'b46502732e597f13d60ec55be0d456dba8181386' }))));
33
+ return (h(Host, { key: '5bb285428644e0c3e130178e5c34811ff5c52d5a' }, h("div", { key: '1884cbc6f94fdee392ed94ab8fbc4a449747138a', class: { reveal: true, visible: this.visible }, style: { transitionDelay: `${this.delay}ms` } }, h("slot", { key: '270ee6624c2ba58edc786d80fb3d777ff3cebb41' }))));
34
34
  }
35
35
  get host() { return getElement(this); }
36
36
  };
@@ -27,7 +27,7 @@ const UiScrollProgress = class {
27
27
  window.removeEventListener("scroll", this.onScroll);
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: 'cb2d746b6e0ca3642a0460cff5685f2eb83a6301' }, h("div", { key: '7fdb8b414f833110c389aef8620c313fb8c001c7', class: "bar", role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": Math.round(this.progress * 100), style: { transform: `scaleX(${this.progress})` } })));
30
+ return (h(Host, { key: 'fee75a94ba6949fffe43501b672492795632f687' }, h("div", { key: 'fc881ac42582dc50df17861b918d96331216b86f', class: "bar", role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": Math.round(this.progress * 100), style: { transform: `scaleX(${this.progress})` } })));
31
31
  }
32
32
  };
33
33
  UiScrollProgress.style = uiScrollProgressCss();
@@ -13,7 +13,7 @@ const UiSection = class {
13
13
  this.description = "";
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: '71344e4d5a4c6bccade1bf5151aeba1dffa14d7f' }, h("section", { key: '404cb27c6db128f60608b4eff44fa6e05520016b' }, this.eyebrow && h("p", { key: '204ced95531d3bf77c2a32f940c3ec4bc0e76f53', class: "eyebrow" }, this.eyebrow), this.heading && h("h2", { key: '46818123dd264ef60db8ff9c7a2ad93979d71434', class: "heading" }, this.heading), this.description && h("p", { key: 'eaba39853cd12a874c9079e2181aca9e0fc130b7', class: "description" }, this.description), h("slot", { key: '24d02b1d9176e42d7906ef43881807d7cfda2e52' }))));
16
+ return (h(Host, { key: '541fff68d5138d9c8767a22f4fc031d77d532010' }, h("section", { key: 'a05b3596b2dae7e78216b087af28f0be57d79468' }, this.eyebrow && h("p", { key: 'd429995b90a7877792fb4c2def70a2dd9fd1865d', class: "eyebrow" }, this.eyebrow), this.heading && h("h2", { key: '41849c37d94c9d91cfedaa0bceec0a453089326d', class: "heading" }, this.heading), this.description && h("p", { key: '5b244c629c70ed213426d141bec5c67da670d566', class: "description" }, this.description), h("slot", { key: '7ad5eafe43915eb69f31532417f1ea28f232b5c8' }))));
17
17
  }
18
18
  };
19
19
  UiSection.style = uiSectionCss();
@@ -18,7 +18,7 @@ const UiSegmented = class {
18
18
  };
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: '92649a392383aebb62bab90e3f20a008783f2ed2' }, h("div", { key: '22983cd496ee1f9ed1dbf49d989c409cdca3c8b4', class: "track", role: "radiogroup" }, this.items.map((item) => {
21
+ return (h(Host, { key: 'ff4e74a388b0c7db02c4065e32c93b66d1338fb8' }, h("div", { key: '163708540ba5221f2b7a90dc7778c2d83072b6e4', class: "track", role: "radiogroup" }, this.items.map((item) => {
22
22
  const active = item.value === this.value;
23
23
  return (h("button", { key: item.value, class: { segment: true, active }, type: "button", role: "radio", "aria-checked": active ? "true" : "false", onClick: () => this.select(item.value) }, item.label));
24
24
  }))));
@@ -18,7 +18,7 @@ const UiSelect = class {
18
18
  }
19
19
  render() {
20
20
  const hasValue = this.value !== undefined && this.value !== "";
21
- return (h(Host, { key: '5f41047362d77643cc663925900c15c6cd10ec60' }, h("div", { key: '53ec77b2100bdd6de568ad549a42ad8fd080ac6a', class: "wrapper" }, h("select", { key: 'b0b4b1def7b7166bf24f996f9736a670a9b7b052', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (h("option", { key: 'e83b039418ac74bb3124c151dca9af43ff05dd61', value: "", disabled: true, selected: !hasValue }, this.placeholder)), this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))), h("svg", { key: 'bb3165c856d11b352b2c7a64cc12ab4284541fb4', class: "chevron", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'ab5e3cb2419dc63fbcd3804740b781c856ae8240', points: "6 9 12 15 18 9" })))));
21
+ return (h(Host, { key: 'a1abda48256851c19e13b1516c9789ff270fd55f' }, h("div", { key: '9556917c11784833418565b305b814e176b4ce22', class: "wrapper" }, h("select", { key: '6f724cd6c5c83d841839c1a13b8e1f74720edd57', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (h("option", { key: '2b70163c4f64850d05f8194b310041bc32d18930', value: "", disabled: true, selected: !hasValue }, this.placeholder)), this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))), h("svg", { key: '748cda678998b6739fc56aaa7df36964a37a0f12', class: "chevron", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: '957613dc5eeb6471f4dfc1cc4e8203c90d291cdb', points: "6 9 12 15 18 9" })))));
22
22
  }
23
23
  };
24
24
  UiSelect.style = uiSelectCss();
@@ -9,7 +9,7 @@ const UiSeparator = class {
9
9
  this.orientation = "horizontal";
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '33e452485ff7838e37a378f9acba10f242069cfc', role: "separator", "aria-orientation": this.orientation, class: `orientation-${this.orientation}` }));
12
+ return (h(Host, { key: '64211b51121d5c090a1f7e3feb88e7c076dc5b7b', role: "separator", "aria-orientation": this.orientation, class: `orientation-${this.orientation}` }));
13
13
  }
14
14
  };
15
15
  UiSeparator.style = uiSeparatorCss();
@@ -7,7 +7,7 @@ const UiSkeleton = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '8f839817a493a8221e9d3b2e95fd7ae5ece2e70e' }, h("span", { key: '295dce8e9e6489def8b20a703f04c65ad3740ce8', class: "skeleton" })));
10
+ return (h(Host, { key: 'b8c2b1288e037ec55d582d07a6f9d83ad63789b4' }, h("span", { key: '3a939a4d6ab7ce5791bd3ffb7210743ad68e0db8', class: "skeleton" })));
11
11
  }
12
12
  };
13
13
  UiSkeleton.style = uiSkeletonCss();
@@ -27,7 +27,7 @@ const UiSlider = class {
27
27
  };
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: '22fe57f0e95edb2e169718c8b1fb5c2f3d78ddfe' }, h("input", { key: 'a9e16ef8f97f412c22911f72c4b7212f6d04a293', class: "slider", type: "range", min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled, onInput: this.onInput, onChange: this.onChange })));
30
+ return (h(Host, { key: 'eeb569c6927ebcda5c1702c8bdbade3e15ede9c2' }, h("input", { key: '1fd45574a52ed9d857941c870650995f092283f8', class: "slider", type: "range", min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled, onInput: this.onInput, onChange: this.onChange })));
31
31
  }
32
32
  };
33
33
  UiSlider.style = uiSliderCss();
@@ -9,7 +9,7 @@ const UiSpinner = class {
9
9
  this.size = "md";
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '0414d6e3be8588ad4c71c5e4cf227075ac7494ab', role: "status" }, h("span", { key: '61e5d0a16b5fd566767ef098477c3144a9c1c987', class: { spinner: true, [`size-${this.size}`]: true } }), h("span", { key: 'ea33b6e6603ba23e7a117ef978329c83818a044b', class: "sr-only" }, "Carregando")));
12
+ return (h(Host, { key: '3ce50c4de9703a057c0971fbaa71f6535a30c196', role: "status" }, h("span", { key: '83aba34de038600be6535662d7243489d4db79f1', class: { spinner: true, [`size-${this.size}`]: true } }), h("span", { key: 'ff7523e8ab8e073dea03314b72c93aaf566fa32e', class: "sr-only" }, "Carregando")));
13
13
  }
14
14
  };
15
15
  UiSpinner.style = uiSpinnerCss();
@@ -43,7 +43,7 @@ const UiStack = class {
43
43
  justifyContent: JUSTIFY[this.justify],
44
44
  flexWrap: this.wrap ? "wrap" : "nowrap",
45
45
  };
46
- return (h(Host, { key: 'ba9547e72877aa05a5e93afbe098d7402b315df3' }, h("div", { key: 'e0fd73777e2211925435f2fd8bfcb74ad2eb8085', class: "stack", style: style }, h("slot", { key: '3a5aa50721c641f0cc81328a21262ff5d375e55c' }))));
46
+ return (h(Host, { key: 'f10c42228c323efa8c5ded4e8ca552e38d1ef923' }, h("div", { key: 'c296191b05e5ad4e9fdec382808b24b6e798867d', class: "stack", style: style }, h("slot", { key: '8cc418111a0833cf404e0578e81c23f9aaa69fda' }))));
47
47
  }
48
48
  };
49
49
  UiStack.style = uiStackCss();