@andespindola/ui-core 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/dist/cjs/{floating-ui.dom-BPemvNRD.js → floating-ui.dom-BZk7Blsu.js} +93 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ui-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/ui-alert.cjs.entry.js +40 -0
  6. package/dist/cjs/ui-avatar-group.cjs.entry.js +17 -0
  7. package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
  8. package/dist/cjs/ui-badge.cjs.entry.js +7 -2
  9. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +23 -0
  10. package/dist/cjs/ui-breadcrumb.cjs.entry.js +17 -0
  11. package/dist/cjs/ui-button.cjs.entry.js +5 -3
  12. package/dist/cjs/ui-card.cjs.entry.js +1 -1
  13. package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
  14. package/dist/cjs/ui-combobox.cjs.entry.js +153 -0
  15. package/dist/cjs/ui-container.cjs.entry.js +26 -0
  16. package/dist/cjs/ui-date-picker.cjs.entry.js +171 -0
  17. package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
  18. package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
  19. package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
  20. package/dist/cjs/ui-dropdown-menu.cjs.entry.js +2 -2
  21. package/dist/cjs/ui-field.cjs.entry.js +1 -1
  22. package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
  23. package/dist/cjs/ui-grid.cjs.entry.js +34 -0
  24. package/dist/cjs/ui-input.cjs.entry.js +10 -2
  25. package/dist/cjs/ui-label.cjs.entry.js +1 -1
  26. package/dist/cjs/ui-navbar.cjs.entry.js +17 -0
  27. package/dist/cjs/ui-pagination.cjs.entry.js +63 -0
  28. package/dist/cjs/ui-popover.cjs.entry.js +2 -2
  29. package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
  30. package/dist/cjs/ui-progress.cjs.entry.js +1 -1
  31. package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
  32. package/dist/cjs/ui-rating.cjs.entry.js +45 -0
  33. package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
  34. package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
  35. package/dist/cjs/ui-section.cjs.entry.js +1 -1
  36. package/dist/cjs/ui-segmented.cjs.entry.js +31 -0
  37. package/dist/cjs/ui-select.cjs.entry.js +1 -1
  38. package/dist/cjs/ui-separator.cjs.entry.js +1 -1
  39. package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
  40. package/dist/cjs/ui-slider.cjs.entry.js +1 -1
  41. package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
  42. package/dist/cjs/ui-stack.cjs.entry.js +53 -0
  43. package/dist/cjs/ui-stat.cjs.entry.js +28 -0
  44. package/dist/cjs/ui-switch.cjs.entry.js +1 -1
  45. package/dist/cjs/ui-table.cjs.entry.js +25 -0
  46. package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
  47. package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
  48. package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
  49. package/dist/cjs/ui-toast.cjs.entry.js +1 -1
  50. package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
  51. package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
  52. package/dist/cjs/uikit.cjs.js +1 -1
  53. package/dist/collection/collection-manifest.json +17 -0
  54. package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
  55. package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
  56. package/dist/collection/components/ui-alert/ui-alert.css +95 -0
  57. package/dist/collection/components/ui-alert/ui-alert.js +134 -0
  58. package/dist/collection/components/ui-avatar/ui-avatar.css +31 -0
  59. package/dist/collection/components/ui-avatar/ui-avatar.js +20 -1
  60. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +22 -0
  61. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +21 -0
  62. package/dist/collection/components/ui-badge/ui-badge.css +26 -0
  63. package/dist/collection/components/ui-badge/ui-badge.js +63 -1
  64. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.css +15 -0
  65. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +18 -0
  66. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.css +30 -0
  67. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +69 -0
  68. package/dist/collection/components/ui-button/ui-button.css +13 -1
  69. package/dist/collection/components/ui-button/ui-button.js +24 -2
  70. package/dist/collection/components/ui-card/ui-card.js +1 -1
  71. package/dist/collection/components/ui-checkbox/ui-checkbox.css +6 -2
  72. package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
  73. package/dist/collection/components/ui-combobox/ui-combobox.css +93 -0
  74. package/dist/collection/components/ui-combobox/ui-combobox.js +248 -0
  75. package/dist/collection/components/ui-container/ui-container.css +38 -0
  76. package/dist/collection/components/ui-container/ui-container.js +79 -0
  77. package/dist/collection/components/ui-date-picker/ui-date-picker.css +176 -0
  78. package/dist/collection/components/ui-date-picker/ui-date-picker.js +243 -0
  79. package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
  80. package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
  81. package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
  82. package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
  83. package/dist/collection/components/ui-field/ui-field.js +1 -1
  84. package/dist/collection/components/ui-file-upload/ui-file-upload.css +79 -0
  85. package/dist/collection/components/ui-file-upload/ui-file-upload.js +151 -0
  86. package/dist/collection/components/ui-grid/ui-grid.css +8 -0
  87. package/dist/collection/components/ui-grid/ui-grid.js +106 -0
  88. package/dist/collection/components/ui-input/ui-input.css +65 -14
  89. package/dist/collection/components/ui-input/ui-input.js +29 -1
  90. package/dist/collection/components/ui-label/ui-label.js +1 -1
  91. package/dist/collection/components/ui-navbar/ui-navbar.css +36 -0
  92. package/dist/collection/components/ui-navbar/ui-navbar.js +18 -0
  93. package/dist/collection/components/ui-pagination/ui-pagination.css +59 -0
  94. package/dist/collection/components/ui-pagination/ui-pagination.js +147 -0
  95. package/dist/collection/components/ui-popover/ui-popover.js +1 -1
  96. package/dist/collection/components/ui-progress/ui-progress.js +1 -1
  97. package/dist/collection/components/ui-progress-circular/ui-progress-circular.css +46 -0
  98. package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +171 -0
  99. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  100. package/dist/collection/components/ui-rating/ui-rating.css +52 -0
  101. package/dist/collection/components/ui-rating/ui-rating.js +134 -0
  102. package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
  103. package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
  104. package/dist/collection/components/ui-section/ui-section.js +1 -1
  105. package/dist/collection/components/ui-segmented/ui-segmented.css +46 -0
  106. package/dist/collection/components/ui-segmented/ui-segmented.js +99 -0
  107. package/dist/collection/components/ui-select/ui-select.js +1 -1
  108. package/dist/collection/components/ui-separator/ui-separator.js +1 -1
  109. package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
  110. package/dist/collection/components/ui-slider/ui-slider.js +1 -1
  111. package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
  112. package/dist/collection/components/ui-stack/ui-stack.css +8 -0
  113. package/dist/collection/components/ui-stack/ui-stack.js +184 -0
  114. package/dist/collection/components/ui-stat/ui-stat.css +69 -0
  115. package/dist/collection/components/ui-stat/ui-stat.js +118 -0
  116. package/dist/collection/components/ui-switch/ui-switch.js +1 -1
  117. package/dist/collection/components/ui-table/ui-table.css +46 -0
  118. package/dist/collection/components/ui-table/ui-table.js +119 -0
  119. package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
  120. package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
  121. package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
  122. package/dist/collection/components/ui-toast/ui-toast.js +1 -1
  123. package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
  124. package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
  125. package/dist/components/{p-fApcMAzN.js → p-DDJE__UC.js} +1 -1
  126. package/dist/{uikit/p-CyBRmmbs.js → components/p-DDtwbwIl.js} +1 -1
  127. package/dist/components/{p-Bz9HyboB.js → p-DUT2Q8Df.js} +1 -1
  128. package/dist/components/ui-accordion-item.js +1 -1
  129. package/dist/components/ui-accordion.js +1 -1
  130. package/dist/components/ui-alert.d.ts +11 -0
  131. package/dist/components/ui-alert.js +1 -0
  132. package/dist/components/ui-avatar-group.d.ts +11 -0
  133. package/dist/components/ui-avatar-group.js +1 -0
  134. package/dist/components/ui-avatar.js +1 -1
  135. package/dist/components/ui-badge.js +1 -1
  136. package/dist/components/ui-breadcrumb-item.d.ts +11 -0
  137. package/dist/components/ui-breadcrumb-item.js +1 -0
  138. package/dist/components/ui-breadcrumb.d.ts +11 -0
  139. package/dist/components/ui-breadcrumb.js +1 -0
  140. package/dist/components/ui-button.js +1 -1
  141. package/dist/components/ui-card.js +1 -1
  142. package/dist/components/ui-checkbox.js +1 -1
  143. package/dist/components/ui-combobox.d.ts +11 -0
  144. package/dist/components/ui-combobox.js +1 -0
  145. package/dist/components/ui-container.d.ts +11 -0
  146. package/dist/components/ui-container.js +1 -0
  147. package/dist/components/ui-date-picker.d.ts +11 -0
  148. package/dist/components/ui-date-picker.js +1 -0
  149. package/dist/components/ui-dialog.js +1 -1
  150. package/dist/components/ui-drawer.js +1 -1
  151. package/dist/components/ui-dropdown-item.js +1 -1
  152. package/dist/components/ui-dropdown-menu.js +1 -1
  153. package/dist/components/ui-field.js +1 -1
  154. package/dist/components/ui-file-upload.d.ts +11 -0
  155. package/dist/components/ui-file-upload.js +1 -0
  156. package/dist/components/ui-grid.d.ts +11 -0
  157. package/dist/components/ui-grid.js +1 -0
  158. package/dist/components/ui-input.js +1 -1
  159. package/dist/components/ui-label.js +1 -1
  160. package/dist/components/ui-loading-overlay.js +1 -1
  161. package/dist/components/ui-navbar.d.ts +11 -0
  162. package/dist/components/ui-navbar.js +1 -0
  163. package/dist/components/ui-pagination.d.ts +11 -0
  164. package/dist/components/ui-pagination.js +1 -0
  165. package/dist/components/ui-popover.js +1 -1
  166. package/dist/components/ui-progress-circular.d.ts +11 -0
  167. package/dist/components/ui-progress-circular.js +1 -0
  168. package/dist/components/ui-progress.js +1 -1
  169. package/dist/components/ui-radio-group.js +1 -1
  170. package/dist/components/ui-rating.d.ts +11 -0
  171. package/dist/components/ui-rating.js +1 -0
  172. package/dist/components/ui-reveal.js +1 -1
  173. package/dist/components/ui-scroll-progress.js +1 -1
  174. package/dist/components/ui-section.js +1 -1
  175. package/dist/components/ui-segmented.d.ts +11 -0
  176. package/dist/components/ui-segmented.js +1 -0
  177. package/dist/components/ui-select.js +1 -1
  178. package/dist/components/ui-separator.js +1 -1
  179. package/dist/components/ui-skeleton.js +1 -1
  180. package/dist/components/ui-slider.js +1 -1
  181. package/dist/components/ui-spinner.js +1 -1
  182. package/dist/components/ui-stack.d.ts +11 -0
  183. package/dist/components/ui-stack.js +1 -0
  184. package/dist/components/ui-stat.d.ts +11 -0
  185. package/dist/components/ui-stat.js +1 -0
  186. package/dist/components/ui-switch.js +1 -1
  187. package/dist/components/ui-table.d.ts +11 -0
  188. package/dist/components/ui-table.js +1 -0
  189. package/dist/components/ui-tabs.js +1 -1
  190. package/dist/components/ui-textarea.js +1 -1
  191. package/dist/components/ui-theme-toggle.js +1 -1
  192. package/dist/components/ui-toast.js +1 -1
  193. package/dist/components/ui-toaster.js +1 -1
  194. package/dist/components/ui-tooltip.js +1 -1
  195. package/dist/esm/{floating-ui.dom-CyBRmmbs.js → floating-ui.dom-DDtwbwIl.js} +93 -1
  196. package/dist/esm/loader.js +1 -1
  197. package/dist/esm/ui-accordion-item.entry.js +1 -1
  198. package/dist/esm/ui-accordion.entry.js +1 -1
  199. package/dist/esm/ui-alert.entry.js +38 -0
  200. package/dist/esm/ui-avatar-group.entry.js +15 -0
  201. package/dist/esm/ui-avatar.entry.js +2 -2
  202. package/dist/esm/ui-badge.entry.js +8 -3
  203. package/dist/esm/ui-breadcrumb-item.entry.js +21 -0
  204. package/dist/esm/ui-breadcrumb.entry.js +15 -0
  205. package/dist/esm/ui-button.entry.js +5 -3
  206. package/dist/esm/ui-card.entry.js +1 -1
  207. package/dist/esm/ui-checkbox.entry.js +2 -2
  208. package/dist/esm/ui-combobox.entry.js +151 -0
  209. package/dist/esm/ui-container.entry.js +24 -0
  210. package/dist/esm/ui-date-picker.entry.js +169 -0
  211. package/dist/esm/ui-dialog.entry.js +1 -1
  212. package/dist/esm/ui-drawer.entry.js +1 -1
  213. package/dist/esm/ui-dropdown-item.entry.js +1 -1
  214. package/dist/esm/ui-dropdown-menu.entry.js +2 -2
  215. package/dist/esm/ui-field.entry.js +1 -1
  216. package/dist/esm/ui-file-upload.entry.js +55 -0
  217. package/dist/esm/ui-grid.entry.js +32 -0
  218. package/dist/esm/ui-input.entry.js +10 -2
  219. package/dist/esm/ui-label.entry.js +1 -1
  220. package/dist/esm/ui-navbar.entry.js +15 -0
  221. package/dist/esm/ui-pagination.entry.js +61 -0
  222. package/dist/esm/ui-popover.entry.js +2 -2
  223. package/dist/esm/ui-progress-circular.entry.js +42 -0
  224. package/dist/esm/ui-progress.entry.js +1 -1
  225. package/dist/esm/ui-radio-group.entry.js +1 -1
  226. package/dist/esm/ui-rating.entry.js +43 -0
  227. package/dist/esm/ui-reveal.entry.js +1 -1
  228. package/dist/esm/ui-scroll-progress.entry.js +1 -1
  229. package/dist/esm/ui-section.entry.js +1 -1
  230. package/dist/esm/ui-segmented.entry.js +29 -0
  231. package/dist/esm/ui-select.entry.js +1 -1
  232. package/dist/esm/ui-separator.entry.js +1 -1
  233. package/dist/esm/ui-skeleton.entry.js +1 -1
  234. package/dist/esm/ui-slider.entry.js +1 -1
  235. package/dist/esm/ui-spinner.entry.js +1 -1
  236. package/dist/esm/ui-stack.entry.js +51 -0
  237. package/dist/esm/ui-stat.entry.js +26 -0
  238. package/dist/esm/ui-switch.entry.js +1 -1
  239. package/dist/esm/ui-table.entry.js +23 -0
  240. package/dist/esm/ui-tabs.entry.js +2 -2
  241. package/dist/esm/ui-textarea.entry.js +1 -1
  242. package/dist/esm/ui-theme-toggle.entry.js +1 -1
  243. package/dist/esm/ui-toast.entry.js +1 -1
  244. package/dist/esm/ui-toaster.entry.js +1 -1
  245. package/dist/esm/ui-tooltip.entry.js +2 -2
  246. package/dist/esm/uikit.js +1 -1
  247. package/dist/types/components/ui-alert/ui-alert.d.ts +17 -0
  248. package/dist/types/components/ui-avatar/ui-avatar.d.ts +2 -0
  249. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +6 -0
  250. package/dist/types/components/ui-badge/ui-badge.d.ts +7 -0
  251. package/dist/types/components/ui-breadcrumb/ui-breadcrumb.d.ts +3 -0
  252. package/dist/types/components/ui-breadcrumb-item/ui-breadcrumb-item.d.ts +8 -0
  253. package/dist/types/components/ui-button/ui-button.d.ts +2 -0
  254. package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
  255. package/dist/types/components/ui-container/ui-container.d.ts +8 -0
  256. package/dist/types/components/ui-date-picker/ui-date-picker.d.ts +42 -0
  257. package/dist/types/components/ui-file-upload/ui-file-upload.d.ts +24 -0
  258. package/dist/types/components/ui-grid/ui-grid.d.ts +10 -0
  259. package/dist/types/components/ui-input/ui-input.d.ts +3 -0
  260. package/dist/types/components/ui-navbar/ui-navbar.d.ts +3 -0
  261. package/dist/types/components/ui-pagination/ui-pagination.d.ts +15 -0
  262. package/dist/types/components/ui-progress-circular/ui-progress-circular.d.ts +17 -0
  263. package/dist/types/components/ui-rating/ui-rating.d.ts +17 -0
  264. package/dist/types/components/ui-segmented/ui-segmented.d.ts +15 -0
  265. package/dist/types/components/ui-stack/ui-stack.d.ts +17 -0
  266. package/dist/types/components/ui-stat/ui-stat.d.ts +13 -0
  267. package/dist/types/components/ui-table/ui-table.d.ts +16 -0
  268. package/dist/types/components.d.ts +961 -0
  269. package/dist/types/index.d.ts +1 -0
  270. package/dist/uikit/{p-8a238373.entry.js → p-008118af.entry.js} +1 -1
  271. package/dist/uikit/p-0715db16.entry.js +1 -0
  272. package/dist/uikit/p-10afa395.entry.js +1 -0
  273. package/dist/uikit/p-1449f229.entry.js +1 -0
  274. package/dist/uikit/p-1514ae37.entry.js +1 -0
  275. package/dist/uikit/{p-83159bfc.entry.js → p-1685191b.entry.js} +1 -1
  276. package/dist/uikit/p-1ef7948f.entry.js +1 -0
  277. package/dist/uikit/{p-e54139a1.entry.js → p-283e7623.entry.js} +1 -1
  278. package/dist/uikit/p-2d92ce04.entry.js +1 -0
  279. package/dist/uikit/{p-a0ccdb22.entry.js → p-3995852d.entry.js} +1 -1
  280. package/dist/uikit/p-3b1f92da.entry.js +1 -0
  281. package/dist/uikit/p-3fdfad2e.entry.js +1 -0
  282. package/dist/uikit/p-4044ebde.entry.js +1 -0
  283. package/dist/uikit/{p-9f0d4ae1.entry.js → p-413cfbc6.entry.js} +1 -1
  284. package/dist/uikit/p-45e80e73.entry.js +1 -0
  285. package/dist/uikit/p-4ba0e4bc.entry.js +1 -0
  286. package/dist/uikit/p-5951a496.entry.js +1 -0
  287. package/dist/uikit/p-5e0bc34a.entry.js +1 -0
  288. package/dist/uikit/{p-d8e7ae10.entry.js → p-60910c03.entry.js} +1 -1
  289. package/dist/uikit/{p-58ed99a2.entry.js → p-62881327.entry.js} +1 -1
  290. package/dist/uikit/p-6c51a216.entry.js +1 -0
  291. package/dist/uikit/p-6d363a02.entry.js +1 -0
  292. package/dist/uikit/{p-777c6902.entry.js → p-8535f5c9.entry.js} +1 -1
  293. package/dist/uikit/p-88238a16.entry.js +1 -0
  294. package/dist/uikit/{p-9aa557d1.entry.js → p-894fc85f.entry.js} +1 -1
  295. package/dist/uikit/p-8b882367.entry.js +1 -0
  296. package/dist/uikit/p-9310b73b.entry.js +1 -0
  297. package/dist/uikit/{p-4a1abc1c.entry.js → p-99b7e461.entry.js} +1 -1
  298. package/dist/uikit/p-9d8d420e.entry.js +1 -0
  299. package/dist/uikit/{p-97de6ea6.entry.js → p-9dbe7e12.entry.js} +1 -1
  300. package/dist/uikit/{p-29fe5b7f.entry.js → p-9f09fcec.entry.js} +1 -1
  301. package/dist/{components/p-CyBRmmbs.js → uikit/p-DDtwbwIl.js} +1 -1
  302. package/dist/uikit/{p-d6c9bfbc.entry.js → p-a3d819cd.entry.js} +1 -1
  303. package/dist/uikit/{p-777d8c7a.entry.js → p-b0f2b1c8.entry.js} +1 -1
  304. package/dist/uikit/{p-e0652ddf.entry.js → p-b7e30398.entry.js} +1 -1
  305. package/dist/uikit/p-bac2c523.entry.js +1 -0
  306. package/dist/uikit/p-bbc718ef.entry.js +1 -0
  307. package/dist/uikit/{p-b0aba484.entry.js → p-bdd30484.entry.js} +1 -1
  308. package/dist/uikit/{p-32df7fd0.entry.js → p-c1a9db7c.entry.js} +1 -1
  309. package/dist/uikit/p-c2138fb9.entry.js +1 -0
  310. package/dist/uikit/p-c94492ff.entry.js +1 -0
  311. package/dist/uikit/{p-38cbea54.entry.js → p-ccca2aeb.entry.js} +1 -1
  312. package/dist/uikit/p-d7ab158f.entry.js +1 -0
  313. package/dist/uikit/p-da807078.entry.js +1 -0
  314. package/dist/uikit/p-e2065caa.entry.js +1 -0
  315. package/dist/uikit/{p-9b43d670.entry.js → p-f2983e94.entry.js} +1 -1
  316. package/dist/uikit/p-f4344cce.entry.js +1 -0
  317. package/dist/uikit/{p-ed1111eb.entry.js → p-fb89d9a4.entry.js} +1 -1
  318. package/dist/uikit/p-fbe7806c.entry.js +1 -0
  319. package/dist/uikit/p-ffcd1faf.entry.js +1 -0
  320. package/dist/uikit/uikit.esm.js +1 -1
  321. package/package.json +8 -3
  322. package/dist/uikit/p-0096eefe.entry.js +0 -1
  323. package/dist/uikit/p-11350db1.entry.js +0 -1
  324. package/dist/uikit/p-128ae3e4.entry.js +0 -1
  325. package/dist/uikit/p-24edfe3e.entry.js +0 -1
  326. package/dist/uikit/p-280337b0.entry.js +0 -1
  327. package/dist/uikit/p-3c866608.entry.js +0 -1
  328. package/dist/uikit/p-5555523c.entry.js +0 -1
  329. package/dist/uikit/p-6fa4be86.entry.js +0 -1
  330. package/dist/uikit/p-7b2a9e68.entry.js +0 -1
  331. package/dist/uikit/p-9c57cf57.entry.js +0 -1
  332. package/dist/uikit/p-cf56c9ba.entry.js +0 -1
  333. package/dist/uikit/p-d13860dc.entry.js +0 -1
@@ -0,0 +1,93 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .field {
6
+ display: flex;
7
+ align-items: center;
8
+ gap: 0.5rem;
9
+ width: 100%;
10
+ height: 2.75rem;
11
+ padding: 0 0.875rem;
12
+ border: 1px solid var(--ui-border);
13
+ border-radius: var(--ui-radius-sm);
14
+ background: var(--ui-panel);
15
+ backdrop-filter: blur(22px);
16
+ transition: all var(--ui-duration) var(--ui-ease);
17
+ box-sizing: border-box;
18
+ }
19
+
20
+ .field:hover {
21
+ border-color: var(--ui-border-strong);
22
+ }
23
+
24
+ .field:focus-within {
25
+ border-color: var(--ui-accent);
26
+ box-shadow: 0 0 0 2px var(--ui-ring);
27
+ }
28
+
29
+ .input {
30
+ flex: 1;
31
+ min-width: 0;
32
+ height: 100%;
33
+ border: none;
34
+ background: transparent;
35
+ color: var(--ui-foreground);
36
+ font-family: var(--ui-font-sans);
37
+ font-size: 0.875rem;
38
+ outline: none;
39
+ }
40
+
41
+ .input::placeholder {
42
+ color: var(--ui-text-faint);
43
+ }
44
+
45
+ .list {
46
+ position: fixed;
47
+ top: 0;
48
+ left: 0;
49
+ z-index: 50;
50
+ max-height: 16rem;
51
+ overflow-y: auto;
52
+ padding: 0.25rem;
53
+ font-family: var(--ui-font-sans);
54
+ color: var(--ui-foreground);
55
+ border: 1px solid var(--ui-border);
56
+ background: var(--ui-panel-strong);
57
+ box-shadow: var(--ui-shadow-lg);
58
+ backdrop-filter: blur(22px);
59
+ border-radius: var(--ui-radius);
60
+ visibility: hidden;
61
+ opacity: 0;
62
+ transition:
63
+ opacity var(--ui-duration) var(--ui-ease),
64
+ visibility var(--ui-duration) var(--ui-ease);
65
+ }
66
+
67
+ .list.is-open {
68
+ visibility: visible;
69
+ opacity: 1;
70
+ }
71
+
72
+ .option {
73
+ padding: 0.5rem 0.75rem;
74
+ font-size: 0.875rem;
75
+ color: var(--ui-foreground);
76
+ border-radius: var(--ui-radius-sm);
77
+ cursor: pointer;
78
+ transition: background var(--ui-duration) var(--ui-ease);
79
+ }
80
+
81
+ .option.active {
82
+ background: var(--ui-chip);
83
+ }
84
+
85
+ .option.selected {
86
+ color: var(--ui-accent);
87
+ }
88
+
89
+ .empty {
90
+ padding: 0.5rem 0.75rem;
91
+ font-size: 0.875rem;
92
+ color: var(--ui-text-faint);
93
+ }
@@ -0,0 +1,248 @@
1
+ import { h, Host, } from "@stencil/core";
2
+ import { computePosition, autoUpdate, offset, flip, shift, size, } from "@floating-ui/dom";
3
+ export class UiCombobox {
4
+ constructor() {
5
+ /** Opções disponíveis para autocomplete. */
6
+ this.options = [];
7
+ /** Valor selecionado. */
8
+ this.value = "";
9
+ /** Placeholder do campo. */
10
+ this.placeholder = "";
11
+ /** Texto digitado no campo. */
12
+ this.query = "";
13
+ /** Indica se a lista flutuante está aberta. */
14
+ this.open = false;
15
+ /** Índice da opção destacada. */
16
+ this.activeIndex = -1;
17
+ this.listId = `ui-combobox-list-${Math.random().toString(36).slice(2, 9)}`;
18
+ this.onInput = (event) => {
19
+ this.query = event.target.value;
20
+ this.activeIndex = -1;
21
+ this.setOpen(true);
22
+ };
23
+ this.onFocus = () => {
24
+ this.setOpen(true);
25
+ };
26
+ this.onKeydown = (event) => {
27
+ const items = this.filtered;
28
+ switch (event.key) {
29
+ case "ArrowDown":
30
+ event.preventDefault();
31
+ if (!this.open) {
32
+ this.setOpen(true);
33
+ return;
34
+ }
35
+ if (items.length === 0)
36
+ return;
37
+ this.activeIndex = (this.activeIndex + 1) % items.length;
38
+ break;
39
+ case "ArrowUp":
40
+ event.preventDefault();
41
+ if (items.length === 0)
42
+ return;
43
+ this.activeIndex =
44
+ (this.activeIndex - 1 + items.length) % items.length;
45
+ break;
46
+ case "Enter":
47
+ if (this.open && this.activeIndex >= 0 && items[this.activeIndex]) {
48
+ event.preventDefault();
49
+ this.select(items[this.activeIndex]);
50
+ }
51
+ break;
52
+ case "Escape":
53
+ if (this.open) {
54
+ event.preventDefault();
55
+ this.setOpen(false);
56
+ }
57
+ break;
58
+ }
59
+ };
60
+ this.onDocumentClick = (event) => {
61
+ if (!this.open)
62
+ return;
63
+ if (event.composedPath().includes(this.host))
64
+ return;
65
+ this.setOpen(false);
66
+ };
67
+ }
68
+ componentWillLoad() {
69
+ const selected = this.options.find((option) => option.value === this.value);
70
+ if (selected)
71
+ this.query = selected.label;
72
+ }
73
+ disconnectedCallback() {
74
+ this.stop();
75
+ document.removeEventListener("click", this.onDocumentClick);
76
+ }
77
+ get filtered() {
78
+ const term = this.query.toLowerCase();
79
+ return this.options.filter((option) => option.label.toLowerCase().includes(term));
80
+ }
81
+ setOpen(value) {
82
+ if (this.open === value)
83
+ return;
84
+ this.open = value;
85
+ if (value) {
86
+ requestAnimationFrame(() => this.start());
87
+ document.addEventListener("click", this.onDocumentClick);
88
+ }
89
+ else {
90
+ this.stop();
91
+ this.activeIndex = -1;
92
+ document.removeEventListener("click", this.onDocumentClick);
93
+ }
94
+ }
95
+ start() {
96
+ if (!this.inputEl || !this.listEl)
97
+ return;
98
+ this.stop();
99
+ this.cleanup = autoUpdate(this.inputEl, this.listEl, () => {
100
+ if (!this.inputEl || !this.listEl)
101
+ return;
102
+ computePosition(this.inputEl, this.listEl, {
103
+ placement: "bottom-start",
104
+ middleware: [
105
+ offset(6),
106
+ flip(),
107
+ shift({ padding: 8 }),
108
+ size({
109
+ apply: ({ rects, elements }) => {
110
+ Object.assign(elements.floating.style, {
111
+ width: `${rects.reference.width}px`,
112
+ });
113
+ },
114
+ }),
115
+ ],
116
+ }).then(({ x, y }) => {
117
+ Object.assign(this.listEl.style, { left: `${x}px`, top: `${y}px` });
118
+ });
119
+ });
120
+ }
121
+ stop() {
122
+ this.cleanup?.();
123
+ this.cleanup = undefined;
124
+ }
125
+ select(option) {
126
+ this.value = option.value;
127
+ this.query = option.label;
128
+ this.setOpen(false);
129
+ this.uiChange.emit(option.value);
130
+ }
131
+ render() {
132
+ const items = this.filtered;
133
+ return (h(Host, { key: '64d332f96d0cb39e1889eb56dbf448f67e5ed240' }, h("div", { key: '30f829b5eff180aa97a2bbb2f90a4e289768df71', class: "field" }, 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 })), h("div", { key: 'de55c7ad59dfa3e35aeac8799366e3ee849d1398', id: this.listId, class: { list: true, "is-open": this.open }, role: "listbox", ref: (el) => (this.listEl = el) }, items.length === 0 ? (h("div", { class: "empty" }, "Nenhum resultado")) : (items.map((option, index) => (h("div", { class: {
134
+ option: true,
135
+ active: index === this.activeIndex,
136
+ selected: option.value === this.value,
137
+ }, role: "option", "aria-selected": option.value === this.value ? "true" : "false", onMouseEnter: () => (this.activeIndex = index), onMouseDown: (event) => {
138
+ event.preventDefault();
139
+ this.select(option);
140
+ } }, option.label)))))));
141
+ }
142
+ static get is() { return "ui-combobox"; }
143
+ static get encapsulation() { return "shadow"; }
144
+ static get originalStyleUrls() {
145
+ return {
146
+ "$": ["ui-combobox.css"]
147
+ };
148
+ }
149
+ static get styleUrls() {
150
+ return {
151
+ "$": ["ui-combobox.css"]
152
+ };
153
+ }
154
+ static get properties() {
155
+ return {
156
+ "options": {
157
+ "type": "unknown",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "UiComboboxOption[]",
161
+ "resolved": "UiComboboxOption[]",
162
+ "references": {
163
+ "UiComboboxOption": {
164
+ "location": "local",
165
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-combobox/ui-combobox.tsx",
166
+ "id": "src/components/ui-combobox/ui-combobox.tsx::UiComboboxOption"
167
+ }
168
+ }
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "Op\u00E7\u00F5es dispon\u00EDveis para autocomplete."
175
+ },
176
+ "getter": false,
177
+ "setter": false,
178
+ "defaultValue": "[]"
179
+ },
180
+ "value": {
181
+ "type": "string",
182
+ "mutable": true,
183
+ "complexType": {
184
+ "original": "string",
185
+ "resolved": "string",
186
+ "references": {}
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": "Valor selecionado."
193
+ },
194
+ "getter": false,
195
+ "setter": false,
196
+ "reflect": false,
197
+ "attribute": "value",
198
+ "defaultValue": "\"\""
199
+ },
200
+ "placeholder": {
201
+ "type": "string",
202
+ "mutable": false,
203
+ "complexType": {
204
+ "original": "string",
205
+ "resolved": "string",
206
+ "references": {}
207
+ },
208
+ "required": false,
209
+ "optional": false,
210
+ "docs": {
211
+ "tags": [],
212
+ "text": "Placeholder do campo."
213
+ },
214
+ "getter": false,
215
+ "setter": false,
216
+ "reflect": false,
217
+ "attribute": "placeholder",
218
+ "defaultValue": "\"\""
219
+ }
220
+ };
221
+ }
222
+ static get states() {
223
+ return {
224
+ "query": {},
225
+ "open": {},
226
+ "activeIndex": {}
227
+ };
228
+ }
229
+ static get events() {
230
+ return [{
231
+ "method": "uiChange",
232
+ "name": "uiChange",
233
+ "bubbles": true,
234
+ "cancelable": true,
235
+ "composed": true,
236
+ "docs": {
237
+ "tags": [],
238
+ "text": "Emitido ao selecionar uma op\u00E7\u00E3o."
239
+ },
240
+ "complexType": {
241
+ "original": "string",
242
+ "resolved": "string",
243
+ "references": {}
244
+ }
245
+ }];
246
+ }
247
+ static get elementRef() { return "host"; }
248
+ }
@@ -0,0 +1,38 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .container {
7
+ margin-inline: auto;
8
+ width: 100%;
9
+ font-family: var(--ui-font-sans);
10
+ }
11
+
12
+ /* Tamanhos */
13
+ .size-sm {
14
+ max-width: 40rem;
15
+ }
16
+ .size-md {
17
+ max-width: 48rem;
18
+ }
19
+ .size-lg {
20
+ max-width: 64rem;
21
+ }
22
+ .size-xl {
23
+ max-width: 80rem;
24
+ }
25
+ .size-full {
26
+ max-width: none;
27
+ }
28
+
29
+ /* Padding lateral responsivo */
30
+ .padded {
31
+ padding-inline: 1.25rem;
32
+ }
33
+
34
+ @media (min-width: 640px) {
35
+ .padded {
36
+ padding-inline: 2rem;
37
+ }
38
+ }
@@ -0,0 +1,79 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class UiContainer {
3
+ constructor() {
4
+ /** Largura máxima do container. */
5
+ this.size = "lg";
6
+ /** Aplica padding lateral responsivo. */
7
+ this.padded = true;
8
+ }
9
+ render() {
10
+ const classes = {
11
+ container: true,
12
+ [`size-${this.size}`]: true,
13
+ padded: this.padded,
14
+ };
15
+ return (h(Host, { key: 'd9f407cdd15aa38d7e21898f4088d58846e38f22' }, h("div", { key: '7c7596a79dedc3daf94ac5440447c4608e037854', class: classes }, h("slot", { key: '5005378ea1514e2d96fa0cdba219055161ee6688' }))));
16
+ }
17
+ static get is() { return "ui-container"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["ui-container.css"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["ui-container.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "size": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "UiContainerSize",
36
+ "resolved": "\"full\" | \"lg\" | \"md\" | \"sm\" | \"xl\"",
37
+ "references": {
38
+ "UiContainerSize": {
39
+ "location": "local",
40
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-container/ui-container.tsx",
41
+ "id": "src/components/ui-container/ui-container.tsx::UiContainerSize"
42
+ }
43
+ }
44
+ },
45
+ "required": false,
46
+ "optional": false,
47
+ "docs": {
48
+ "tags": [],
49
+ "text": "Largura m\u00E1xima do container."
50
+ },
51
+ "getter": false,
52
+ "setter": false,
53
+ "reflect": false,
54
+ "attribute": "size",
55
+ "defaultValue": "\"lg\""
56
+ },
57
+ "padded": {
58
+ "type": "boolean",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "boolean",
62
+ "resolved": "boolean",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "Aplica padding lateral responsivo."
70
+ },
71
+ "getter": false,
72
+ "setter": false,
73
+ "reflect": false,
74
+ "attribute": "padded",
75
+ "defaultValue": "true"
76
+ }
77
+ };
78
+ }
79
+ }
@@ -0,0 +1,176 @@
1
+ :host {
2
+ display: inline-block;
3
+ font-family: var(--ui-font-sans);
4
+ }
5
+
6
+ .field {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ gap: 0.5rem;
11
+ width: 100%;
12
+ min-width: 12rem;
13
+ height: 2.75rem;
14
+ padding: 0 0.875rem;
15
+ border: 1px solid var(--ui-border);
16
+ border-radius: var(--ui-radius-sm);
17
+ background: var(--ui-panel);
18
+ color: var(--ui-foreground);
19
+ font-family: var(--ui-font-sans);
20
+ font-size: 0.875rem;
21
+ text-align: left;
22
+ cursor: pointer;
23
+ backdrop-filter: blur(22px);
24
+ transition: all var(--ui-duration) var(--ui-ease);
25
+ box-sizing: border-box;
26
+ }
27
+
28
+ .field:hover {
29
+ border-color: var(--ui-border-strong);
30
+ }
31
+
32
+ .field:focus-visible {
33
+ outline: none;
34
+ border-color: var(--ui-accent);
35
+ box-shadow: 0 0 0 2px var(--ui-ring);
36
+ }
37
+
38
+ .label {
39
+ flex: 1;
40
+ min-width: 0;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+ white-space: nowrap;
44
+ color: var(--ui-foreground);
45
+ }
46
+
47
+ .label.placeholder {
48
+ color: var(--ui-text-faint);
49
+ }
50
+
51
+ .icon {
52
+ flex: none;
53
+ color: var(--ui-text-muted);
54
+ }
55
+
56
+ .calendar {
57
+ position: fixed;
58
+ top: 0;
59
+ left: 0;
60
+ z-index: 50;
61
+ width: 17rem;
62
+ max-width: calc(100vw - 1rem);
63
+ padding: 1rem;
64
+ font-family: var(--ui-font-sans);
65
+ color: var(--ui-foreground);
66
+ border: 1px solid var(--ui-border);
67
+ background: var(--ui-panel-strong);
68
+ box-shadow: var(--ui-shadow-lg);
69
+ backdrop-filter: blur(22px);
70
+ border-radius: var(--ui-radius);
71
+ visibility: hidden;
72
+ opacity: 0;
73
+ transform: scale(0.96);
74
+ transition:
75
+ opacity var(--ui-duration) var(--ui-ease),
76
+ transform var(--ui-duration) var(--ui-ease);
77
+ }
78
+
79
+ .calendar.is-open {
80
+ visibility: visible;
81
+ opacity: 1;
82
+ transform: scale(1);
83
+ }
84
+
85
+ .header {
86
+ display: flex;
87
+ align-items: center;
88
+ justify-content: space-between;
89
+ margin-bottom: 0.75rem;
90
+ }
91
+
92
+ .month-label {
93
+ font-size: 0.875rem;
94
+ font-weight: 600;
95
+ text-transform: capitalize;
96
+ color: var(--ui-foreground);
97
+ }
98
+
99
+ .nav {
100
+ display: inline-flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ flex: none;
104
+ width: 2rem;
105
+ height: 2rem;
106
+ padding: 0;
107
+ border: none;
108
+ border-radius: var(--ui-radius-full);
109
+ background: transparent;
110
+ color: var(--ui-text-soft);
111
+ cursor: pointer;
112
+ transition: all var(--ui-duration) var(--ui-ease);
113
+ }
114
+
115
+ .nav:hover {
116
+ background: var(--ui-chip);
117
+ color: var(--ui-foreground);
118
+ }
119
+
120
+ .weekdays {
121
+ display: grid;
122
+ grid-template-columns: repeat(7, 1fr);
123
+ margin-bottom: 0.25rem;
124
+ }
125
+
126
+ .weekday {
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ height: 1.75rem;
131
+ font-size: 0.7rem;
132
+ color: var(--ui-text-faint);
133
+ }
134
+
135
+ .grid {
136
+ display: grid;
137
+ grid-template-columns: repeat(7, 1fr);
138
+ gap: 0.125rem;
139
+ justify-items: center;
140
+ }
141
+
142
+ .day {
143
+ display: inline-flex;
144
+ align-items: center;
145
+ justify-content: center;
146
+ width: 2rem;
147
+ height: 2rem;
148
+ padding: 0;
149
+ border: 1px solid transparent;
150
+ border-radius: var(--ui-radius-full);
151
+ background: transparent;
152
+ color: var(--ui-foreground);
153
+ font-family: var(--ui-font-sans);
154
+ font-size: 0.8125rem;
155
+ cursor: pointer;
156
+ transition: all var(--ui-duration) var(--ui-ease);
157
+ }
158
+
159
+ .day.empty {
160
+ cursor: default;
161
+ pointer-events: none;
162
+ }
163
+
164
+ .day:hover:not(.empty):not(.selected) {
165
+ background: var(--ui-chip);
166
+ }
167
+
168
+ .day.today {
169
+ border-color: var(--ui-accent);
170
+ }
171
+
172
+ .day.selected {
173
+ background: var(--ui-accent);
174
+ color: var(--ui-accent-contrast);
175
+ border-color: transparent;
176
+ }