@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
@@ -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-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-container.cjs",[[257,"ui-container",{"size":[1],"padded":[4]}]]],["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-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-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-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-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-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: '4b2e9ef0cda9117df86bef529c4bead45bbe8090' }, index.h("details", { key: '18c5ff6f8d9ac966d36240949670d84fc2603883', open: this.open, onToggle: this.onToggle }, index.h("summary", { key: '608bb56fe9b4558d50dc50be2edb922233de35aa' }, index.h("span", { key: '5d65f0199fff46a4a32139ab1565533dfb299ea9', class: "heading" }, this.heading), index.h("svg", { key: 'dd32e7223d4eab848185fe027e86892643e98070', class: "chevron", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, index.h("polyline", { key: 'd9d02a5e5cfe20a77ae5cd6e383962656038d6d5', points: "6 9 12 15 18 9" }))), index.h("div", { key: 'b82b7a754b6eb160044b0eadf85ff7a8812e80a5', class: "content" }, index.h("slot", { key: 'c6a5b13158bbef248980737d9cea866178d2122c' })))));
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: '839f17ea9b81b97b0ca49e89d9907c6a0571f049' }, index.h("slot", { key: '71badd4150a835acfaa0d5867287a30c8a0b7936' })));
12
+ return (index.h(index.Host, { key: '0242c529aecf9b0f35958f21f9df65d4cba8ba37' }, index.h("slot", { key: '394493e0939fa0224be6233830f588e88e49a2d3' })));
13
13
  }
14
14
  };
15
15
  UiAccordion.style = uiAccordionCss();
@@ -9,7 +9,7 @@ const UiAvatarGroup = class {
9
9
  index.registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (index.h(index.Host, { key: '2413b9065333e5beb192143529b60daceefc11fe' }, index.h("div", { key: 'df93cb1e73bc05abfee09226111da32f50bf908d', class: "group" }, index.h("slot", { key: 'fa7fc7b57b009355e32c904cc78b46848403c0eb' }))));
12
+ return (index.h(index.Host, { key: 'ffbc4f069a58a5c5e9bf014ec9fc41d11ceb24b8' }, index.h("div", { key: 'c6f7c559740f193c0347f7834169fbd2eb252272', class: "group" }, index.h("slot", { key: 'd66719ad68488098d753eefc8da5cc65bf6a85a4' }))));
13
13
  }
14
14
  };
15
15
  UiAvatarGroup.style = uiAvatarGroupCss();
@@ -11,7 +11,7 @@ const UiAvatar = class {
11
11
  this.alt = "";
12
12
  }
13
13
  render() {
14
- return (index.h(index.Host, { key: '0a3b07acb18d2ddeecf3b072fcd6913dbc187474' }, index.h("span", { key: '9b6c302f378ef47385f43d24a3fe491cdec0bfe0', class: "wrapper" }, index.h("span", { key: '5093f8e180da9c3b1583da7f651bc69be89821b9', 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: '920d70149458e747aef1ac35c945a0b403986928', class: `status status-${this.status}`, "aria-label": this.status })))));
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();
@@ -15,7 +15,7 @@ const UiBreadcrumbItem = class {
15
15
  }
16
16
  render() {
17
17
  const isLink = this.href && !this.current;
18
- return (index.h(index.Host, { key: '20d22dde2f7b6b4c03a76b4e6be851a0c4cd39d5' }, 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()));
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
19
  }
20
20
  };
21
21
  UiBreadcrumbItem.style = uiBreadcrumbItemCss();
@@ -9,7 +9,7 @@ const UiBreadcrumb = class {
9
9
  index.registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (index.h(index.Host, { key: '3c86ea43e5dde2c8486b49f8c2ece55f66c4dec5' }, index.h("nav", { key: '6da35c2ffc4b7c2aa13d3321ed6227d97be59e80', "aria-label": "breadcrumb" }, index.h("ol", { key: '567cb7aaf4e8ae8f1e15369b45b482104f1264da' }, index.h("slot", { key: '5f942426d1195ea0eae8256ebfb01d25b6f350ab' })))));
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
13
  }
14
14
  };
15
15
  UiBreadcrumb.style = uiBreadcrumbCss();
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-Cb1tfi_9.js');
4
4
 
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);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)}}`;
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) {
@@ -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: '39ddf0a9974086fcc9ad3fc89f1e1d6858e2fead' }, index.h("div", { key: 'e8e510a468dc662f9fc76affce785a9b37edc205', class: "card" }, index.h("slot", { key: 'ee92d4bc2fa1738d84689d989d4e113d515acc83', name: "title" }), index.h("slot", { key: '6e87c2406474b6ea2aa370d1602ff02a89c4f4d5', name: "description" }), index.h("slot", { key: 'a388b4bc2d9c5e328ade55ac38c870afc9ade82c' }), index.h("slot", { key: '071ce297db672e332cf2d354a395b07e100b16a1', 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();
@@ -26,7 +26,7 @@ const UiCheckbox = class {
26
26
  };
27
27
  }
28
28
  render() {
29
- return (index.h(index.Host, { key: '73477b35af6a093e87ae8a5b33232690888ca98c' }, index.h("button", { key: '235b0102bbdd9a0ef23c3230acbba9aebdb06898', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, index.h("svg", { key: '3aaa64d1d173991b2c785298586aab66471e9285', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, index.h("polyline", { key: 'baaca1ba97901e5a9d4e97640221f35cdeb02351', 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;
@@ -18,7 +18,7 @@ const UiContainer = class {
18
18
  [`size-${this.size}`]: true,
19
19
  padded: this.padded,
20
20
  };
21
- return (index.h(index.Host, { key: '4f00ee39f0ae347fafac349ee8e42c991c8013dd' }, index.h("div", { key: 'a0f8f0c6d418f119c6631d0387f9328af8fbb416', class: classes }, index.h("slot", { key: '86178f8371c958123fcf8b7e6bfe059aeed9f690' }))));
21
+ return (index.h(index.Host, { key: 'd9f407cdd15aa38d7e21898f4088d58846e38f22' }, index.h("div", { key: '7c7596a79dedc3daf94ac5440447c4608e037854', class: classes }, index.h("slot", { key: '5005378ea1514e2d96fa0cdba219055161ee6688' }))));
22
22
  }
23
23
  };
24
24
  UiContainer.style = uiContainerCss();
@@ -0,0 +1,171 @@
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 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}`;
7
+
8
+ const WEEKDAYS = ["D", "S", "T", "Q", "Q", "S", "S"];
9
+ const UiDatePicker = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.uiChange = index.createEvent(this, "uiChange");
13
+ /** Data selecionada no formato ISO "YYYY-MM-DD". */
14
+ this.value = "";
15
+ /** Texto exibido quando nenhuma data está selecionada. */
16
+ this.placeholder = "Selecione a data";
17
+ /** Controla a visibilidade do calendário. */
18
+ this.open = false;
19
+ this.onTriggerClick = (event) => {
20
+ event.stopPropagation();
21
+ this.setOpen(!this.open);
22
+ };
23
+ this.onDocumentClick = (event) => {
24
+ if (!this.open)
25
+ return;
26
+ if (event.composedPath().includes(this.host))
27
+ return;
28
+ this.setOpen(false);
29
+ };
30
+ this.onKeydown = (event) => {
31
+ if (event.key === "Escape" && this.open)
32
+ this.setOpen(false);
33
+ };
34
+ this.prevMonth = (event) => {
35
+ event.stopPropagation();
36
+ if (this.viewMonth === 0) {
37
+ this.viewMonth = 11;
38
+ this.viewYear -= 1;
39
+ }
40
+ else {
41
+ this.viewMonth -= 1;
42
+ }
43
+ };
44
+ this.nextMonth = (event) => {
45
+ event.stopPropagation();
46
+ if (this.viewMonth === 11) {
47
+ this.viewMonth = 0;
48
+ this.viewYear += 1;
49
+ }
50
+ else {
51
+ this.viewMonth += 1;
52
+ }
53
+ };
54
+ }
55
+ componentWillLoad() {
56
+ this.syncViewFromValue();
57
+ }
58
+ onValueChange() {
59
+ this.syncViewFromValue();
60
+ }
61
+ disconnectedCallback() {
62
+ this.stop();
63
+ document.removeEventListener("click", this.onDocumentClick);
64
+ document.removeEventListener("keydown", this.onKeydown);
65
+ }
66
+ syncViewFromValue() {
67
+ const parsed = this.parseValue(this.value);
68
+ const base = parsed ?? new Date();
69
+ this.viewYear = base.getFullYear();
70
+ this.viewMonth = base.getMonth();
71
+ }
72
+ /** Converte o ISO em Date local, evitando shift de fuso. */
73
+ parseValue(value) {
74
+ if (!value)
75
+ return null;
76
+ const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
77
+ if (!match)
78
+ return null;
79
+ const [, y, m, d] = match;
80
+ return new Date(Number(y), Number(m) - 1, Number(d));
81
+ }
82
+ /** Gera o ISO "YYYY-MM-DD" a partir de componentes locais. */
83
+ toISO(year, month, day) {
84
+ const mm = String(month + 1).padStart(2, "0");
85
+ const dd = String(day).padStart(2, "0");
86
+ return `${year}-${mm}-${dd}`;
87
+ }
88
+ formatValue() {
89
+ const parsed = this.parseValue(this.value);
90
+ return parsed ? parsed.toLocaleDateString("pt-BR") : "";
91
+ }
92
+ monthLabel() {
93
+ return new Date(this.viewYear, this.viewMonth, 1).toLocaleDateString("pt-BR", { month: "long", year: "numeric" });
94
+ }
95
+ setOpen(value) {
96
+ if (this.open === value)
97
+ return;
98
+ this.open = value;
99
+ if (value) {
100
+ this.syncViewFromValue();
101
+ requestAnimationFrame(() => this.start());
102
+ document.addEventListener("click", this.onDocumentClick);
103
+ document.addEventListener("keydown", this.onKeydown);
104
+ }
105
+ else {
106
+ this.stop();
107
+ document.removeEventListener("click", this.onDocumentClick);
108
+ document.removeEventListener("keydown", this.onKeydown);
109
+ }
110
+ }
111
+ start() {
112
+ if (!this.triggerEl || !this.floatingEl)
113
+ return;
114
+ this.stop();
115
+ this.cleanup = floatingUi_dom.autoUpdate(this.triggerEl, this.floatingEl, () => {
116
+ if (!this.triggerEl || !this.floatingEl)
117
+ return;
118
+ floatingUi_dom.computePosition(this.triggerEl, this.floatingEl, {
119
+ placement: "bottom-start",
120
+ middleware: [floatingUi_dom.offset(6), floatingUi_dom.flip(), floatingUi_dom.shift({ padding: 8 })],
121
+ }).then(({ x, y }) => {
122
+ Object.assign(this.floatingEl.style, { left: `${x}px`, top: `${y}px` });
123
+ });
124
+ });
125
+ }
126
+ stop() {
127
+ this.cleanup?.();
128
+ this.cleanup = undefined;
129
+ }
130
+ selectDay(day) {
131
+ this.value = this.toISO(this.viewYear, this.viewMonth, day);
132
+ this.setOpen(false);
133
+ this.uiChange.emit(this.value);
134
+ }
135
+ buildDays() {
136
+ const firstWeekday = new Date(this.viewYear, this.viewMonth, 1).getDay();
137
+ const daysInMonth = new Date(this.viewYear, this.viewMonth + 1, 0).getDate();
138
+ const leading = Array.from({ length: firstWeekday }, () => 0);
139
+ const days = Array.from({ length: daysInMonth }, (_, i) => i + 1);
140
+ return [...leading, ...days];
141
+ }
142
+ isToday(day) {
143
+ const now = new Date();
144
+ return (day === now.getDate() &&
145
+ this.viewMonth === now.getMonth() &&
146
+ this.viewYear === now.getFullYear());
147
+ }
148
+ isSelected(day) {
149
+ return this.value === this.toISO(this.viewYear, this.viewMonth, day);
150
+ }
151
+ render() {
152
+ const display = this.formatValue();
153
+ return (index.h(index.Host, { key: '4ba4b256b16f49d1e65ffbe774c50065f097482f' }, index.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" }, index.h("span", { key: 'fd6c3f01d8ba6212284b70c8830a007fc6dc4fcb', class: { label: true, placeholder: !display } }, display || this.placeholder), index.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" }, index.h("rect", { key: '8a87dd6a1230546145cd0d6626309c4c3835d379', x: "3", y: "4", width: "18", height: "18", rx: "2" }), index.h("path", { key: 'e3bca802e11ff11bbbd767c92233843a2b767e78', d: "M16 2v4M8 2v4M3 10h18" }))), index.h("div", { key: '1a8d439b816c7dcf0789e26788aee838e311b087', class: { calendar: true, "is-open": this.open }, role: "dialog", ref: (el) => (this.floatingEl = el) }, index.h("div", { key: '82d98e286b405ddfd12cc65cffe26b14ace1a31c', class: "header" }, index.h("button", { key: '6a01a9a3458d3e7b1dfc5ff153266106b9242511', type: "button", class: "nav", "aria-label": "M\u00EAs anterior", onClick: this.prevMonth }, index.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" }, index.h("path", { key: '54d095e51205b3df5f52af6d2d28f89f2dd4db5c', d: "m15 18-6-6 6-6" }))), index.h("span", { key: '2dd822f49aa7f8bb419079a0c47f29bbfb7a22c4', class: "month-label" }, this.monthLabel()), index.h("button", { key: '553659e9903e96b84dcecbc86270d915dcd947f5', type: "button", class: "nav", "aria-label": "Pr\u00F3ximo m\u00EAs", onClick: this.nextMonth }, index.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" }, index.h("path", { key: 'dac9e5c1fc22d2eefc73046269246ae07af53037', d: "m9 18 6-6-6-6" })))), index.h("div", { key: 'e731ae7eab8fee747826a58634cad540a60317a5', class: "weekdays" }, WEEKDAYS.map((label) => (index.h("span", { class: "weekday" }, label)))), index.h("div", { key: '4aa9f208fb5b20b3b35ae14f27d435918db3f380', class: "grid" }, this.buildDays().map((day) => day === 0 ? (index.h("span", { class: "day empty" })) : (index.h("button", { type: "button", class: {
154
+ day: true,
155
+ today: this.isToday(day),
156
+ selected: this.isSelected(day),
157
+ }, onClick: (event) => {
158
+ event.stopPropagation();
159
+ this.selectDay(day);
160
+ } }, day)))))));
161
+ }
162
+ get host() { return index.getElement(this); }
163
+ static get watchers() { return {
164
+ "value": [{
165
+ "onValueChange": 0
166
+ }]
167
+ }; }
168
+ };
169
+ UiDatePicker.style = uiDatePickerCss();
170
+
171
+ exports.ui_date_picker = UiDatePicker;
@@ -44,7 +44,7 @@ const UiDialog = class {
44
44
  this.open = false;
45
45
  }
46
46
  render() {
47
- return (index.h(index.Host, { key: 'e6c34700dc04fd3754eedeab279a67cd3997fb3d' }, index.h("dialog", { key: 'fdb23f89bd4b9aef79abaec586bf39add47ce013', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, index.h("div", { key: '8a86f47c263d4fac68debdcef9cc8ed7e0be7ca8', class: "content" }, index.h("slot", { key: 'fe9d9105c13670104b5a60c939f9256b44694e8e' })))));
47
+ return (index.h(index.Host, { key: 'f0ba1e147438e9941bd748b84cca800b93e0058a' }, index.h("dialog", { key: '54a38db84cc2bcd5064401499c8cbc48f9355021', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, index.h("div", { key: '658cf9b13efe14c8db0c02b14b6ace5686ca686a', class: "content" }, index.h("slot", { key: '00cc3a3657049aabb7c80dfdefba059a5767da78' })))));
48
48
  }
49
49
  static get watchers() { return {
50
50
  "open": [{
@@ -46,7 +46,7 @@ const UiDrawer = class {
46
46
  this.open = false;
47
47
  }
48
48
  render() {
49
- return (index.h(index.Host, { key: '5d44e7d604eab21d2d30d5cbaaa225658c8e7e71' }, index.h("dialog", { key: 'ecdfc2057a8864f6b8dc961ddcd51c3f349b2b54', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, index.h("div", { key: 'c14965ebb97a2c77d06c4a50466d00bf4036bafa', class: "content" }, index.h("slot", { key: '2bdbb4cbd2cd30ade870090c5383d398cfb6772b' })))));
49
+ return (index.h(index.Host, { key: '92e328d6068d3e183463e06897b9dc16e36c3be7' }, index.h("dialog", { key: 'd18eb940d959341831da313ee342f21f181aacfc', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, index.h("div", { key: '9edf182db03b796ef944fbd4340d1d31db8b5321', class: "content" }, index.h("slot", { key: '34a67441244720ee301b9f4c2b871889a2a87d0b' })))));
50
50
  }
51
51
  static get watchers() { return {
52
52
  "open": [{
@@ -18,7 +18,7 @@ const UiDropdownItem = class {
18
18
  };
19
19
  }
20
20
  render() {
21
- return (index.h(index.Host, { key: 'a73d394ff94b232151c37e749d398f4485f46bde' }, index.h("button", { key: '3827857b88fc5d63681e80dc2cc470b58faf69e1', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, index.h("slot", { key: 'a6dbd79c7b171ef6a8a53aa5da39fbca37725e1c' }))));
21
+ return (index.h(index.Host, { key: '46fe995e0d6496002cb4ffda00e444731f195805' }, index.h("button", { key: '5938fcad75c81029a321bdce5c1b2c98cb4cb6a2', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, index.h("slot", { key: '32227bb1f298ab6ba3d97d1bae86b6ce713703b8' }))));
22
22
  }
23
23
  get host() { return index.getElement(this); }
24
24
  };