@prolibu-suite/cobalt-core 0.9.1 → 0.9.3

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 (353) hide show
  1. package/custom-elements.json +411 -18
  2. package/dist/cjs/co-avatar_2.cjs.entry.js +2 -2
  3. package/dist/cjs/co-bottom-sheet.cjs.entry.js +10 -11
  4. package/dist/cjs/co-calendar_3.cjs.entry.js +37 -2
  5. package/dist/cjs/co-chip_2.cjs.entry.js +2 -2
  6. package/dist/cjs/co-emoji-picker.cjs.entry.js +2808 -0
  7. package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
  8. package/dist/cjs/co-event-calendar.cjs.entry.js +2 -2
  9. package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
  10. package/dist/cjs/co-fab.cjs.entry.js +2 -2
  11. package/dist/cjs/co-file-field.cjs.entry.js +6 -6
  12. package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
  13. package/dist/cjs/co-helper-text.cjs.entry.js +2 -2
  14. package/dist/cjs/co-icon-button.cjs.entry.js +2 -2
  15. package/dist/cjs/co-icon.cjs.entry.js +2 -2
  16. package/dist/cjs/co-json-field.cjs.entry.js +3 -3
  17. package/dist/cjs/co-lightbox.cjs.entry.js +4 -4
  18. package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
  19. package/dist/cjs/co-list-item.cjs.entry.js +4 -4
  20. package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
  21. package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
  22. package/dist/cjs/co-menu.cjs.entry.js +1 -1
  23. package/dist/cjs/co-modal.cjs.entry.js +9 -3
  24. package/dist/cjs/co-navbar.cjs.entry.js +2 -2
  25. package/dist/cjs/co-number-field.cjs.entry.js +2 -2
  26. package/dist/cjs/co-overlay.cjs.entry.js +1 -1
  27. package/dist/cjs/co-page-header.cjs.entry.js +1 -1
  28. package/dist/cjs/co-phone-field.cjs.entry.js +1 -1
  29. package/dist/cjs/co-progress-bar.cjs.entry.js +2 -2
  30. package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
  31. package/dist/cjs/co-provider-logo_2.cjs.entry.js +1 -1
  32. package/dist/cjs/co-radio.cjs.entry.js +3 -3
  33. package/dist/cjs/co-rating.cjs.entry.js +3 -3
  34. package/dist/cjs/co-rich-text-editor.cjs.entry.js +3 -3
  35. package/dist/cjs/co-row.cjs.entry.js +2 -2
  36. package/dist/cjs/co-separator.cjs.entry.js +1 -1
  37. package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
  38. package/dist/cjs/co-slider.cjs.entry.js +2 -2
  39. package/dist/cjs/co-switch.cjs.entry.js +3 -3
  40. package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
  41. package/dist/cjs/co-tab.cjs.entry.js +2 -2
  42. package/dist/cjs/co-tags-field.cjs.entry.js +5 -5
  43. package/dist/cjs/co-textarea.cjs.entry.js +4 -4
  44. package/dist/cjs/co-toggle-button-group.cjs.entry.js +2 -2
  45. package/dist/cjs/co-toggle-button.cjs.entry.js +2 -2
  46. package/dist/cjs/co-video.cjs.entry.js +2 -2
  47. package/dist/cjs/cobalt.cjs.js +1 -1
  48. package/dist/cjs/emojiNames.es-BjpSEJ0c.js +1925 -0
  49. package/dist/cjs/emojiNames.pt-DWupaZMJ.js +1925 -0
  50. package/dist/cjs/index-DK-2Lzmf.js +4 -0
  51. package/dist/cjs/loader.cjs.js +1 -1
  52. package/dist/cjs/slotContent-Bm9RcM_Q.js +34 -0
  53. package/dist/cobalt/cobalt.esm.js +1 -1
  54. package/dist/cobalt/p-07904986.entry.js +1 -0
  55. package/dist/cobalt/p-09799193.entry.js +1 -0
  56. package/dist/cobalt/{p-a811464d.entry.js → p-0ccb672b.entry.js} +1 -1
  57. package/dist/cobalt/{p-4fe9a3ae.entry.js → p-0e91e5c4.entry.js} +1 -1
  58. package/dist/cobalt/{p-90e292de.entry.js → p-18af9e44.entry.js} +1 -1
  59. package/dist/cobalt/{p-136440fc.entry.js → p-18d34b01.entry.js} +1 -1
  60. package/dist/cobalt/{p-a0a6bfa3.entry.js → p-1c68bc41.entry.js} +1 -1
  61. package/dist/cobalt/{p-f945a1bd.entry.js → p-2114c036.entry.js} +1 -1
  62. package/dist/cobalt/{p-44fb4a3f.entry.js → p-23a103a0.entry.js} +1 -1
  63. package/dist/cobalt/{p-b892b312.entry.js → p-23b3ff3f.entry.js} +1 -1
  64. package/dist/cobalt/{p-b107063c.entry.js → p-33ea4a90.entry.js} +1 -1
  65. package/dist/cobalt/p-3495fda1.entry.js +1 -0
  66. package/dist/cobalt/{p-c3fd7b22.entry.js → p-36197363.entry.js} +1 -1
  67. package/dist/cobalt/p-3f0eed59.entry.js +1 -0
  68. package/dist/cobalt/{p-40ce8a3d.entry.js → p-4b083da4.entry.js} +1 -1
  69. package/dist/cobalt/p-4c7e3984.entry.js +1 -0
  70. package/dist/cobalt/p-4f754c9a.entry.js +1 -0
  71. package/dist/cobalt/p-54ae807d.entry.js +1 -0
  72. package/dist/cobalt/{p-3a229bba.entry.js → p-55566b37.entry.js} +1 -1
  73. package/dist/cobalt/{p-43d31055.entry.js → p-680d3db8.entry.js} +1 -1
  74. package/dist/cobalt/{p-b5b97c9b.entry.js → p-77719335.entry.js} +1 -1
  75. package/dist/cobalt/{p-9c89cb01.entry.js → p-7c88163e.entry.js} +1 -1
  76. package/dist/cobalt/{p-e085b4ff.entry.js → p-7e53e9c8.entry.js} +1 -1
  77. package/dist/cobalt/{p-6c35b5cc.entry.js → p-8345b25f.entry.js} +1 -1
  78. package/dist/cobalt/{p-9c9f5b26.entry.js → p-89e38c5e.entry.js} +1 -1
  79. package/dist/cobalt/{p-4299cfa5.entry.js → p-8f38e24d.entry.js} +1 -1
  80. package/dist/cobalt/{p-905ba0dd.entry.js → p-95efe661.entry.js} +1 -1
  81. package/dist/cobalt/{p-909c0113.entry.js → p-983af614.entry.js} +1 -1
  82. package/dist/cobalt/p-B6oiFdUY.js +1 -0
  83. package/dist/cobalt/p-CBX_oabB.js +1 -0
  84. package/dist/cobalt/p-a02db338.entry.js +1 -0
  85. package/dist/cobalt/{p-a3669301.entry.js → p-a51d8775.entry.js} +1 -1
  86. package/dist/cobalt/{p-2637efc5.entry.js → p-ac466658.entry.js} +1 -1
  87. package/dist/cobalt/{p-75b7ed13.entry.js → p-ac91259e.entry.js} +1 -1
  88. package/dist/cobalt/{p-3ef0f849.entry.js → p-b0319a2d.entry.js} +1 -1
  89. package/dist/cobalt/{p-e4ef25b0.entry.js → p-b8581787.entry.js} +1 -1
  90. package/dist/cobalt/{p-fdc6ec11.entry.js → p-c1e7fb32.entry.js} +1 -1
  91. package/dist/cobalt/{p-a3c6b974.entry.js → p-c5684c79.entry.js} +1 -1
  92. package/dist/cobalt/{p-c1880595.entry.js → p-d15d3a97.entry.js} +1 -1
  93. package/dist/cobalt/p-d40a465f.entry.js +1 -0
  94. package/dist/cobalt/{p-138b8bc1.entry.js → p-d629fb4e.entry.js} +1 -1
  95. package/dist/cobalt/{p-929a4f19.entry.js → p-dca4cd5f.entry.js} +1 -1
  96. package/dist/cobalt/{p-3d338881.entry.js → p-dea43204.entry.js} +1 -1
  97. package/dist/cobalt/{p-b22981fd.entry.js → p-dfcf667d.entry.js} +1 -1
  98. package/dist/cobalt/{p-2c0099a4.entry.js → p-e5495539.entry.js} +1 -1
  99. package/dist/cobalt/{p-5c1767db.entry.js → p-ef5e1167.entry.js} +1 -1
  100. package/dist/cobalt/{p-37c17bd8.entry.js → p-fb3a095b.entry.js} +1 -1
  101. package/dist/cobalt/p-reaWaY4g.js +1 -0
  102. package/dist/collection/collection-manifest.json +1 -0
  103. package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
  104. package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
  105. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +10 -11
  106. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
  107. package/dist/collection/components/co-combobox/co-combobox.js +1 -1
  108. package/dist/collection/components/co-command-search/co-command-search.js +1 -1
  109. package/dist/collection/components/co-data-table/co-data-table.js +1 -1
  110. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
  111. package/dist/collection/components/co-drawer/co-drawer.css +5 -2
  112. package/dist/collection/components/co-drawer/co-drawer.js +43 -1
  113. package/dist/collection/components/co-emoji-picker/co-emoji-picker.css +290 -0
  114. package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +682 -0
  115. package/dist/collection/components/co-emoji-picker/emojiData.js +1953 -0
  116. package/dist/collection/components/co-emoji-picker/emojiNames.es.js +1922 -0
  117. package/dist/collection/components/co-emoji-picker/emojiNames.pt.js +1922 -0
  118. package/dist/collection/components/co-emoji-picker/emojiPickerLogic.js +375 -0
  119. package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
  120. package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
  121. package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
  122. package/dist/collection/components/co-fab/co-fab.js +2 -2
  123. package/dist/collection/components/co-file-field/co-file-field.css +7 -4
  124. package/dist/collection/components/co-file-field/co-file-field.js +5 -5
  125. package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
  126. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  127. package/dist/collection/components/co-icon/co-icon.js +2 -2
  128. package/dist/collection/components/co-icon-button/co-icon-button.css +25 -0
  129. package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
  130. package/dist/collection/components/co-json-field/co-json-field.js +3 -3
  131. package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
  132. package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
  133. package/dist/collection/components/co-list-item/co-list-item.js +4 -4
  134. package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
  135. package/dist/collection/components/co-menu/co-menu.js +1 -1
  136. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  137. package/dist/collection/components/co-modal/co-modal.css +3 -1
  138. package/dist/collection/components/co-modal/co-modal.js +13 -2
  139. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  140. package/dist/collection/components/co-number-field/co-number-field.js +2 -2
  141. package/dist/collection/components/co-option-list/co-option-list.js +2 -2
  142. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  143. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  144. package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
  145. package/dist/collection/components/co-popover/co-popover.js +1 -1
  146. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  147. package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
  148. package/dist/collection/components/co-radio/co-radio.js +3 -3
  149. package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
  150. package/dist/collection/components/co-rating/co-rating.js +3 -3
  151. package/dist/collection/components/co-ref-field/co-ref-field.js +1 -1
  152. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +3 -3
  153. package/dist/collection/components/co-row/co-row.js +2 -2
  154. package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
  155. package/dist/collection/components/co-select/co-select.js +1 -1
  156. package/dist/collection/components/co-separator/co-separator.js +1 -1
  157. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  158. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +1 -1
  159. package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
  160. package/dist/collection/components/co-slider/co-slider.js +2 -2
  161. package/dist/collection/components/co-switch/co-switch.js +3 -3
  162. package/dist/collection/components/co-tab/co-tab.js +2 -2
  163. package/dist/collection/components/co-tab-group/co-tab-group.js +2 -2
  164. package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
  165. package/dist/collection/components/co-textarea/co-textarea.js +4 -4
  166. package/dist/collection/components/co-toast/co-toast.js +2 -2
  167. package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
  168. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
  169. package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
  170. package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
  171. package/dist/collection/components/co-video/co-video.js +2 -2
  172. package/dist/collection/utils/emojiI18n.js +92 -0
  173. package/dist/collection/utils/slotContent.js +30 -0
  174. package/dist/components/co-accordion.js +1 -1
  175. package/dist/components/co-action-bar.js +1 -1
  176. package/dist/components/co-audio-player.js +1 -1
  177. package/dist/components/co-autocomplete.js +1 -1
  178. package/dist/components/co-avatar-group.js +1 -1
  179. package/dist/components/co-avatar.js +1 -1
  180. package/dist/components/co-bottom-sheet.js +1 -1
  181. package/dist/components/co-breadcrumb-item.js +1 -1
  182. package/dist/components/co-breadcrumb.js +1 -1
  183. package/dist/components/co-button.js +1 -1
  184. package/dist/components/co-calendar-month.js +1 -1
  185. package/dist/components/co-calendar-timegrid.js +1 -1
  186. package/dist/components/co-calendar.js +1 -1
  187. package/dist/components/co-carousel.js +1 -1
  188. package/dist/components/co-checkbox-group.js +1 -1
  189. package/dist/components/co-chip.js +1 -1
  190. package/dist/components/co-color-picker.js +1 -1
  191. package/dist/components/co-column-picker.js +1 -1
  192. package/dist/components/co-combobox.js +1 -1
  193. package/dist/components/co-command-search.js +1 -1
  194. package/dist/components/co-data-table-pagination.js +1 -1
  195. package/dist/components/co-data-table.js +1 -1
  196. package/dist/components/co-date-field.js +1 -1
  197. package/dist/components/co-date-picker.js +1 -1
  198. package/dist/components/co-date-range-picker.js +1 -1
  199. package/dist/components/co-date-range.js +1 -1
  200. package/dist/components/co-date-time-picker.js +1 -1
  201. package/dist/components/co-drawer.js +1 -1
  202. package/dist/components/co-drive-card.js +1 -1
  203. package/dist/components/co-drop-zone.js +1 -1
  204. package/dist/components/co-emoji-picker.d.ts +11 -0
  205. package/dist/components/co-emoji-picker.js +1 -0
  206. package/dist/components/co-empty-state.js +1 -1
  207. package/dist/components/co-event-calendar.js +1 -1
  208. package/dist/components/co-event-popover.js +1 -1
  209. package/dist/components/co-fab.js +1 -1
  210. package/dist/components/co-file-field.js +1 -1
  211. package/dist/components/co-file-type-tile.js +1 -1
  212. package/dist/components/co-helper-text.js +1 -1
  213. package/dist/components/co-icon-button.js +1 -1
  214. package/dist/components/co-icon.js +1 -1
  215. package/dist/components/co-input.js +1 -1
  216. package/dist/components/co-json-field.js +1 -1
  217. package/dist/components/co-lightbox.js +1 -1
  218. package/dist/components/co-list-footer.js +1 -1
  219. package/dist/components/co-list-item.js +1 -1
  220. package/dist/components/co-media-thumb.js +1 -1
  221. package/dist/components/co-menu-divider.js +1 -1
  222. package/dist/components/co-menu-item.js +1 -1
  223. package/dist/components/co-menu.js +1 -1
  224. package/dist/components/co-modal.js +1 -1
  225. package/dist/components/co-navbar.js +1 -1
  226. package/dist/components/co-number-field.js +1 -1
  227. package/dist/components/co-option-list.js +1 -1
  228. package/dist/components/co-overlay.js +1 -1
  229. package/dist/components/co-page-header.js +1 -1
  230. package/dist/components/co-phone-field.js +1 -1
  231. package/dist/components/co-progress-bar.js +1 -1
  232. package/dist/components/co-progress-circle.js +1 -1
  233. package/dist/components/co-radio-group.js +1 -1
  234. package/dist/components/co-radio.js +1 -1
  235. package/dist/components/co-rating.js +1 -1
  236. package/dist/components/co-ref-field.js +1 -1
  237. package/dist/components/co-rich-text-editor.js +1 -1
  238. package/dist/components/co-rich-text-toolbar.js +1 -1
  239. package/dist/components/co-row.js +1 -1
  240. package/dist/components/co-select.js +1 -1
  241. package/dist/components/co-separator.js +1 -1
  242. package/dist/components/co-sidebar-nav.js +1 -1
  243. package/dist/components/co-sidebar.js +1 -1
  244. package/dist/components/co-skeleton.js +1 -1
  245. package/dist/components/co-slider.js +1 -1
  246. package/dist/components/co-switch.js +1 -1
  247. package/dist/components/co-tab-group.js +1 -1
  248. package/dist/components/co-tab.js +1 -1
  249. package/dist/components/co-tags-field.js +1 -1
  250. package/dist/components/co-textarea.js +1 -1
  251. package/dist/components/co-toast.js +1 -1
  252. package/dist/components/co-toggle-button-group.js +1 -1
  253. package/dist/components/co-toggle-button.js +1 -1
  254. package/dist/components/co-tooltip.js +1 -1
  255. package/dist/components/co-transfer-list.js +1 -1
  256. package/dist/components/co-video.js +1 -1
  257. package/dist/components/{p-BOmAHbix.js → p-AvSaw4Ua.js} +1 -1
  258. package/dist/components/p-B3TkpLNh.js +1 -0
  259. package/dist/components/p-B6oiFdUY.js +1 -0
  260. package/dist/components/{p-BEiPCCVl.js → p-B7hvddnu.js} +1 -1
  261. package/dist/components/{p-njonLO8t.js → p-BGD3oQ73.js} +1 -1
  262. package/dist/components/{p-xjzIZcgZ.js → p-BT5tSgZa.js} +1 -1
  263. package/dist/components/{p-CXdIxtbK.js → p-BsQQ7Mki.js} +1 -1
  264. package/dist/components/p-CBX_oabB.js +1 -0
  265. package/dist/components/{p-ClAsHpYv.js → p-CklsvHeL.js} +1 -1
  266. package/dist/components/{p-DWt_rL1l.js → p-CyMaOb1j.js} +1 -1
  267. package/dist/components/{p-DEYpoVxc.js → p-D5QJpmqf.js} +1 -1
  268. package/dist/components/{p-Bhuk55S0.js → p-D6OUW6oW.js} +1 -1
  269. package/dist/components/p-DTvb412h.js +1 -0
  270. package/dist/components/{p-DmyELlI1.js → p-DkmKOF60.js} +1 -1
  271. package/dist/components/{p-DUYGgqjB.js → p-DolCkNsL.js} +1 -1
  272. package/dist/components/{p-CnBjUP_M.js → p-KWTokD0C.js} +1 -1
  273. package/dist/components/{p-BCZ-tPBT.js → p-Q6caHt79.js} +1 -1
  274. package/dist/components/{p-BUYgHlPz.js → p-WWlZiln1.js} +1 -1
  275. package/dist/components/{p-C4So28aS.js → p-_131DL6m.js} +1 -1
  276. package/dist/components/{p-BYnSPxpp.js → p-gI62K3Be.js} +1 -1
  277. package/dist/components/{p-8wvfrEY4.js → p-mom5kiBa.js} +1 -1
  278. package/dist/components/p-nwy6X1QT.js +1 -0
  279. package/dist/components/p-reaWaY4g.js +1 -0
  280. package/dist/esm/co-avatar_2.entry.js +2 -2
  281. package/dist/esm/co-bottom-sheet.entry.js +10 -11
  282. package/dist/esm/co-calendar_3.entry.js +37 -2
  283. package/dist/esm/co-chip_2.entry.js +2 -2
  284. package/dist/esm/co-emoji-picker.entry.js +2806 -0
  285. package/dist/esm/co-empty-state.entry.js +2 -2
  286. package/dist/esm/co-event-calendar.entry.js +2 -2
  287. package/dist/esm/co-event-popover.entry.js +1 -1
  288. package/dist/esm/co-fab.entry.js +2 -2
  289. package/dist/esm/co-file-field.entry.js +6 -6
  290. package/dist/esm/co-file-type-tile.entry.js +2 -2
  291. package/dist/esm/co-helper-text.entry.js +2 -2
  292. package/dist/esm/co-icon-button.entry.js +2 -2
  293. package/dist/esm/co-icon.entry.js +2 -2
  294. package/dist/esm/co-json-field.entry.js +3 -3
  295. package/dist/esm/co-lightbox.entry.js +4 -4
  296. package/dist/esm/co-list-footer.entry.js +1 -1
  297. package/dist/esm/co-list-item.entry.js +4 -4
  298. package/dist/esm/co-media-thumb.entry.js +2 -2
  299. package/dist/esm/co-menu-divider.entry.js +1 -1
  300. package/dist/esm/co-menu.entry.js +1 -1
  301. package/dist/esm/co-modal.entry.js +9 -3
  302. package/dist/esm/co-navbar.entry.js +2 -2
  303. package/dist/esm/co-number-field.entry.js +2 -2
  304. package/dist/esm/co-overlay.entry.js +1 -1
  305. package/dist/esm/co-page-header.entry.js +1 -1
  306. package/dist/esm/co-phone-field.entry.js +1 -1
  307. package/dist/esm/co-progress-bar.entry.js +2 -2
  308. package/dist/esm/co-progress-circle.entry.js +2 -2
  309. package/dist/esm/co-provider-logo_2.entry.js +1 -1
  310. package/dist/esm/co-radio.entry.js +3 -3
  311. package/dist/esm/co-rating.entry.js +3 -3
  312. package/dist/esm/co-rich-text-editor.entry.js +3 -3
  313. package/dist/esm/co-row.entry.js +2 -2
  314. package/dist/esm/co-separator.entry.js +1 -1
  315. package/dist/esm/co-sidebar.entry.js +2 -2
  316. package/dist/esm/co-slider.entry.js +2 -2
  317. package/dist/esm/co-switch.entry.js +3 -3
  318. package/dist/esm/co-tab-group.entry.js +2 -2
  319. package/dist/esm/co-tab.entry.js +2 -2
  320. package/dist/esm/co-tags-field.entry.js +5 -5
  321. package/dist/esm/co-textarea.entry.js +4 -4
  322. package/dist/esm/co-toggle-button-group.entry.js +2 -2
  323. package/dist/esm/co-toggle-button.entry.js +2 -2
  324. package/dist/esm/co-video.entry.js +2 -2
  325. package/dist/esm/cobalt.js +1 -1
  326. package/dist/esm/emojiNames.es-reaWaY4g.js +1923 -0
  327. package/dist/esm/emojiNames.pt-B6oiFdUY.js +1923 -0
  328. package/dist/esm/index-CrtiywTB.js +4 -0
  329. package/dist/esm/loader.js +1 -1
  330. package/dist/esm/slotContent-CBX_oabB.js +32 -0
  331. package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +0 -1
  332. package/dist/types/components/co-drawer/co-drawer.d.ts +23 -0
  333. package/dist/types/components/co-emoji-picker/co-emoji-picker.d.ts +145 -0
  334. package/dist/types/components/co-emoji-picker/emojiData.d.ts +24 -0
  335. package/dist/types/components/co-emoji-picker/emojiNames.es.d.ts +12 -0
  336. package/dist/types/components/co-emoji-picker/emojiNames.pt.d.ts +12 -0
  337. package/dist/types/components/co-emoji-picker/emojiPickerLogic.d.ts +149 -0
  338. package/dist/types/components/co-modal/co-modal.d.ts +2 -0
  339. package/dist/types/components.d.ts +195 -0
  340. package/dist/types/utils/emojiI18n.d.ts +22 -0
  341. package/dist/types/utils/slotContent.d.ts +19 -0
  342. package/package.json +1 -1
  343. package/dist/cobalt/p-02f4b71a.entry.js +0 -1
  344. package/dist/cobalt/p-2f778a5a.entry.js +0 -1
  345. package/dist/cobalt/p-315586b0.entry.js +0 -1
  346. package/dist/cobalt/p-6556465f.entry.js +0 -1
  347. package/dist/cobalt/p-7fbd3359.entry.js +0 -1
  348. package/dist/cobalt/p-82c8f07b.entry.js +0 -1
  349. package/dist/cobalt/p-c3bb7e1f.entry.js +0 -1
  350. package/dist/cobalt/p-e742e978.entry.js +0 -1
  351. package/dist/components/p-4t5Fputx.js +0 -1
  352. package/dist/components/p-CRABrJmD.js +0 -1
  353. package/dist/components/p-aiNhl9Xd.js +0 -1
@@ -180,7 +180,9 @@
180
180
  flex-shrink: 0;
181
181
  border-bottom: 1px solid var(--co-semantic-border-default);
182
182
  }
183
- .co-drawer__tabs:empty { display: none; }
183
+ /* `:empty` can't detect slotted content (the <slot> is itself a child, so the
184
+ wrapper is never empty) — JS slotchange drives this class. */
185
+ .co-drawer__tabs--empty { display: none; }
184
186
 
185
187
  /* ─── Body ────────────────────────────────────────────────── */
186
188
  .co-drawer__body {
@@ -247,7 +249,8 @@
247
249
  border-top: 1px solid var(--co-semantic-border-default);
248
250
  flex-shrink: 0;
249
251
  }
250
- .co-drawer__footer:empty { display: none; }
252
+ /* Same as tabs: `:empty` never matches a wrapper that holds a <slot>. */
253
+ .co-drawer__footer--empty { display: none; }
251
254
 
252
255
  /* Loading overlay is rendered by <co-loader overlay> in the drawer body. */
253
256
 
@@ -1,4 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
+ import { slotHasContent } from "../../utils/slotContent";
2
3
  /**
3
4
  * @slot header - Custom header content (overrides `heading` prop). Receives close button next to it.
4
5
  * @slot tabs - Optional row under the header (e.g. <co-tab-group>).
@@ -33,6 +34,19 @@ export class CoDrawer {
33
34
  this.modeless = false;
34
35
  /** Show a loading overlay over the body */
35
36
  this.loading = false;
37
+ /* `:empty` can't see across a <slot>, so slotted presence is tracked in JS */
38
+ this.hasFooter = false;
39
+ this.hasTabs = false;
40
+ this.hasHeaderSlot = false;
41
+ this.handleFooterSlotChange = (e) => {
42
+ this.hasFooter = slotHasContent(e);
43
+ };
44
+ this.handleTabsSlotChange = (e) => {
45
+ this.hasTabs = slotHasContent(e);
46
+ };
47
+ this.handleHeaderSlotChange = (e) => {
48
+ this.hasHeaderSlot = slotHasContent(e);
49
+ };
36
50
  this.handleOverlayClose = () => {
37
51
  if (this.closeOnOverlay)
38
52
  this.coClose.emit();
@@ -69,6 +83,27 @@ export class CoDrawer {
69
83
  }
70
84
  };
71
85
  }
86
+ /**
87
+ * The internal `<h2 id="co-drawer-heading">` is the FALLBACK content of the
88
+ * header slot. When a consumer fills that slot the h2 stops being RENDERED,
89
+ * but it stays in the shadow tree still carrying the `heading` prop's text —
90
+ * so the old hardcoded `aria-labelledby="co-drawer-heading"` named the dialog
91
+ * from content nobody can see, and named it with the EMPTY string in the
92
+ * common case where a consumer slots a header and sets no `heading` at all.
93
+ * Either way the visible header never became the accessible name.
94
+ *
95
+ * - Slotted header → label from the wrapper that CONTAINS the slot. Accessible
96
+ * name computation walks the flattened tree, so the consumer's own header
97
+ * text becomes the name (same shape Shoelace uses for its dialog label).
98
+ * - No slot, `heading` set → the internal h2, which is the tightest label.
99
+ * - Neither → omit, so the dialog degrades to a plain "dialog" instead of
100
+ * advertising a label that resolves to empty text.
101
+ */
102
+ get labelledBy() {
103
+ if (this.hasHeaderSlot)
104
+ return 'co-drawer-header-content';
105
+ return this.heading ? 'co-drawer-heading' : undefined;
106
+ }
72
107
  onOpenChange(next, prev) {
73
108
  if (next && !prev)
74
109
  this.coOpen.emit();
@@ -93,7 +128,7 @@ export class CoDrawer {
93
128
  'co-drawer--modeless': this.modeless,
94
129
  [`co-drawer--${this.position}`]: true,
95
130
  [`co-drawer--${this.size}`]: true,
96
- }, popover: this.modeless ? 'manual' : undefined, ref: this.modeless ? this.promoteModeless : undefined, part: "drawer", role: "dialog", "aria-modal": this.modeless ? 'false' : 'true', "aria-labelledby": "co-drawer-heading", onClick: this.stopPropagation, onTransitionEnd: this.handleTransitionEnd }, h("div", { class: "co-drawer__card", part: "card" }, h("header", { class: "co-drawer__header", part: "header" }, h("div", { class: "co-drawer__header-content" }, h("slot", { name: "header" }, h("div", { class: "co-drawer__heading-row" }, this.icon && h("co-icon", { name: this.icon, size: 20, class: "co-drawer__icon" }), h("h2", { class: "co-drawer__heading", id: "co-drawer-heading" }, this.heading)), this.description && h("p", { class: "co-drawer__description" }, this.description))), this.closable && (h("button", { class: "co-drawer__close", type: "button", "aria-label": "Close", onClick: this.handleCloseClick }, h("co-icon", { name: "x", size: 20 })))), h("div", { class: "co-drawer__tabs", part: "tabs" }, h("slot", { name: "tabs" })), h("div", { class: "co-drawer__body", part: "body" }, h("slot", null), h("co-loader", { overlay: true, visible: this.loading, part: "loader" })), h("footer", { class: "co-drawer__footer", part: "footer" }, h("slot", { name: "footer" })))));
131
+ }, popover: this.modeless ? 'manual' : undefined, ref: this.modeless ? this.promoteModeless : undefined, part: "drawer", role: "dialog", "aria-modal": this.modeless ? 'false' : 'true', "aria-labelledby": this.labelledBy, onClick: this.stopPropagation, onTransitionEnd: this.handleTransitionEnd }, h("div", { class: "co-drawer__card", part: "card" }, h("header", { class: "co-drawer__header", part: "header" }, h("div", { class: "co-drawer__header-content", id: "co-drawer-header-content" }, h("slot", { name: "header", onSlotchange: this.handleHeaderSlotChange }, h("div", { class: "co-drawer__heading-row" }, this.icon && h("co-icon", { name: this.icon, size: 20, class: "co-drawer__icon" }), h("h2", { class: "co-drawer__heading", id: "co-drawer-heading" }, this.heading)), this.description && h("p", { class: "co-drawer__description" }, this.description))), this.closable && (h("button", { class: "co-drawer__close", type: "button", "aria-label": "Close", onClick: this.handleCloseClick }, h("co-icon", { name: "x", size: 20 })))), h("div", { class: { 'co-drawer__tabs': true, 'co-drawer__tabs--empty': !this.hasTabs }, part: "tabs" }, h("slot", { name: "tabs", onSlotchange: this.handleTabsSlotChange })), h("div", { class: "co-drawer__body", part: "body" }, h("slot", null), h("co-loader", { overlay: true, visible: this.loading, part: "loader" })), h("footer", { class: { 'co-drawer__footer': true, 'co-drawer__footer--empty': !this.hasFooter }, part: "footer" }, h("slot", { name: "footer", onSlotchange: this.handleFooterSlotChange })))));
97
132
  if (this.modeless)
98
133
  return aside;
99
134
  return (h("co-overlay", { open: this.open, onCoClose: this.handleOverlayClose }, aside));
@@ -334,6 +369,13 @@ export class CoDrawer {
334
369
  }
335
370
  };
336
371
  }
372
+ static get states() {
373
+ return {
374
+ "hasFooter": {},
375
+ "hasTabs": {},
376
+ "hasHeaderSlot": {}
377
+ };
378
+ }
337
379
  static get events() {
338
380
  return [{
339
381
  "method": "coClose",
@@ -0,0 +1,290 @@
1
+ :host {
2
+ display: block;
3
+ font-family: var(--co-font-family-primary);
4
+ font-size: var(--co-font-size-14);
5
+ letter-spacing: var(--co-font-letter-spacing-body);
6
+ }
7
+
8
+ /* Alto de celda/fila. DEBE coincidir con ROW_HEIGHT de emojiPickerLogic.ts:
9
+ la virtualización posiciona las filas con `row * ROW_HEIGHT`, así que si esto
10
+ se desincroniza la grilla se desalinea del scroll. */
11
+ .co-emoji-picker {
12
+ --co-emoji-picker-cell: 36px;
13
+ /* Sobrescrito inline por la prop `columns`. */
14
+ --co-emoji-picker-columns: 8;
15
+
16
+ display: flex;
17
+ flex-direction: column;
18
+ width: calc(var(--co-emoji-picker-columns) * var(--co-emoji-picker-cell) + 2 * var(--co-spacing-sm2));
19
+ box-sizing: border-box;
20
+ background: var(--co-semantic-surface-page);
21
+ color: var(--co-semantic-text-default);
22
+ }
23
+
24
+ /* ── Buscador ────────────────────────────────────────────── */
25
+ .co-emoji-picker__search {
26
+ display: flex;
27
+ align-items: center;
28
+ gap: var(--co-spacing-sm);
29
+ margin: var(--co-spacing-sm2) var(--co-spacing-sm2) 0;
30
+ padding: var(--co-spacing-xs) var(--co-spacing-sm);
31
+ background: var(--co-semantic-surface-page);
32
+ border: 1px solid var(--co-semantic-border-field);
33
+ border-radius: var(--co-border-radius-xs);
34
+ box-sizing: border-box;
35
+ color: var(--co-semantic-text-muted);
36
+ transition: border-color var(--co-motion-duration-fast) var(--co-motion-ease-out),
37
+ box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);
38
+ }
39
+
40
+ .co-emoji-picker__search:focus-within {
41
+ border-color: var(--co-semantic-border-focus);
42
+ box-shadow: 0 0 0 2px var(--co-semantic-border-focus-ring);
43
+ }
44
+
45
+ .co-emoji-picker__input {
46
+ flex: 1;
47
+ min-width: 0;
48
+ border: none;
49
+ outline: none;
50
+ background: transparent;
51
+ font-family: inherit;
52
+ font-size: var(--co-font-size-14);
53
+ color: var(--co-semantic-text-default);
54
+ padding: var(--co-spacing-xxs) 0;
55
+ }
56
+
57
+ .co-emoji-picker__input::placeholder {
58
+ color: var(--co-semantic-text-muted);
59
+ }
60
+
61
+ /* ── Selector de tono de piel ────────────────────────────── */
62
+ .co-emoji-picker__tones {
63
+ position: relative;
64
+ display: flex;
65
+ align-items: center;
66
+ flex-shrink: 0;
67
+ }
68
+
69
+ .co-emoji-picker__tone-toggle,
70
+ .co-emoji-picker__tone {
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ width: 24px;
75
+ height: 24px;
76
+ padding: 0;
77
+ border: none;
78
+ background: transparent;
79
+ border-radius: var(--co-border-radius-xxs);
80
+ font-size: var(--co-font-size-14);
81
+ line-height: 1;
82
+ cursor: pointer;
83
+ transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
84
+ }
85
+
86
+ .co-emoji-picker__tone-toggle:hover,
87
+ .co-emoji-picker__tone:hover {
88
+ background: var(--co-semantic-surface-hover);
89
+ }
90
+
91
+ .co-emoji-picker__tone-toggle:focus-visible,
92
+ .co-emoji-picker__tone:focus-visible {
93
+ outline: none;
94
+ box-shadow: 0 0 0 2px var(--co-semantic-border-focus-ring);
95
+ }
96
+
97
+ .co-emoji-picker__tone--selected {
98
+ background: var(--co-semantic-surface-secondary);
99
+ }
100
+
101
+ /* Fila desplegable. Va absoluta para no re-maquetar la barra del buscador al
102
+ abrirse (el input no cambia de ancho). */
103
+ .co-emoji-picker__tone-row {
104
+ position: absolute;
105
+ top: calc(100% + var(--co-spacing-xs));
106
+ right: 0;
107
+ z-index: 1;
108
+ display: flex;
109
+ align-items: center;
110
+ gap: var(--co-spacing-xxs);
111
+ padding: var(--co-spacing-xxs);
112
+ background: var(--co-semantic-surface-page);
113
+ border: 1px solid var(--co-semantic-border-default);
114
+ border-radius: var(--co-border-radius-xs);
115
+ box-shadow: var(--co-shadow-lg);
116
+ }
117
+
118
+ /* ── Strip de categorías ─────────────────────────────────── */
119
+ .co-emoji-picker__categories {
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: space-between;
123
+ gap: var(--co-spacing-xxs);
124
+ padding: var(--co-spacing-sm2) var(--co-spacing-sm2) var(--co-spacing-xs);
125
+ }
126
+
127
+ .co-emoji-picker__category {
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ flex: 1;
132
+ min-width: 0;
133
+ height: 28px;
134
+ padding: 0;
135
+ border: none;
136
+ background: transparent;
137
+ border-radius: var(--co-border-radius-xxs);
138
+ color: var(--co-semantic-text-muted);
139
+ cursor: pointer;
140
+ transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out),
141
+ background var(--co-motion-duration-fast) var(--co-motion-ease-out);
142
+ }
143
+
144
+ .co-emoji-picker__category:hover {
145
+ color: var(--co-semantic-text-default);
146
+ background: var(--co-semantic-surface-hover);
147
+ }
148
+
149
+ .co-emoji-picker__category--active {
150
+ color: var(--co-semantic-text-default);
151
+ background: var(--co-semantic-surface-secondary);
152
+ }
153
+
154
+ .co-emoji-picker__category:focus-visible {
155
+ outline: none;
156
+ color: var(--co-semantic-text-default);
157
+ box-shadow: 0 0 0 2px var(--co-semantic-border-focus-ring);
158
+ }
159
+
160
+ /* ── Scrollport de la grilla ─────────────────────────────── */
161
+ .co-emoji-picker__scroll {
162
+ position: relative;
163
+ /* 8 filas visibles. El host lo puede ajustar con --co-emoji-picker-height. */
164
+ height: var(--co-emoji-picker-height, calc(8 * var(--co-emoji-picker-cell)));
165
+ overflow-y: auto;
166
+ overflow-x: hidden;
167
+ padding: 0 var(--co-spacing-sm2);
168
+ box-sizing: border-box;
169
+ scrollbar-width: thin;
170
+ scrollbar-color: var(--co-semantic-border-default) transparent;
171
+ outline: none;
172
+ }
173
+
174
+ .co-emoji-picker__scroll::-webkit-scrollbar {
175
+ width: 8px;
176
+ }
177
+
178
+ .co-emoji-picker__scroll::-webkit-scrollbar-thumb {
179
+ background: var(--co-semantic-border-default);
180
+ border-radius: var(--co-border-radius-full);
181
+ }
182
+
183
+ .co-emoji-picker__scroll::-webkit-scrollbar-track {
184
+ background: transparent;
185
+ }
186
+
187
+ /* Sizer: reserva el alto TOTAL del dataset para que la barra de scroll sea
188
+ real; la ventana renderizada se desplaza por transform. */
189
+ .co-emoji-picker__sizer {
190
+ position: relative;
191
+ width: 100%;
192
+ }
193
+
194
+ .co-emoji-picker__window {
195
+ position: absolute;
196
+ top: 0;
197
+ left: 0;
198
+ width: 100%;
199
+ will-change: transform;
200
+ }
201
+
202
+ /* ── Filas y celdas ──────────────────────────────────────── */
203
+ .co-emoji-picker__section {
204
+ display: flex;
205
+ align-items: flex-end;
206
+ height: var(--co-emoji-picker-cell);
207
+ padding-bottom: var(--co-spacing-xs);
208
+ box-sizing: border-box;
209
+ font-size: var(--co-font-size-11);
210
+ font-weight: 500;
211
+ text-transform: uppercase;
212
+ letter-spacing: var(--co-font-letter-spacing-caption, normal);
213
+ color: var(--co-semantic-text-muted);
214
+ /* Una sola línea: el nombre de categoría largo se recorta, nunca hace
215
+ scroll horizontal ni empuja la grilla. */
216
+ white-space: nowrap;
217
+ overflow: hidden;
218
+ text-overflow: ellipsis;
219
+ }
220
+
221
+ .co-emoji-picker__row {
222
+ display: flex;
223
+ height: var(--co-emoji-picker-cell);
224
+ }
225
+
226
+ .co-emoji-picker__cell {
227
+ display: flex;
228
+ align-items: center;
229
+ justify-content: center;
230
+ width: var(--co-emoji-picker-cell);
231
+ height: var(--co-emoji-picker-cell);
232
+ flex: 0 0 var(--co-emoji-picker-cell);
233
+ padding: 0;
234
+ border: none;
235
+ background: transparent;
236
+ border-radius: var(--co-border-radius-xxs);
237
+ cursor: pointer;
238
+ transition: background var(--co-motion-duration-instant) var(--co-motion-ease-out),
239
+ transform var(--co-motion-duration-instant) var(--co-motion-ease-out);
240
+ }
241
+
242
+ /* El hover es puramente CSS (no toca estado): el resaltado por teclado
243
+ (--active) y el del mouse son señales distintas y pueden coexistir. */
244
+ .co-emoji-picker__cell:hover,
245
+ .co-emoji-picker__cell--active {
246
+ background: var(--co-semantic-surface-hover);
247
+ }
248
+
249
+ .co-emoji-picker__cell:focus-visible {
250
+ outline: none;
251
+ background: var(--co-semantic-surface-hover);
252
+ box-shadow: 0 0 0 2px var(--co-semantic-border-focus-ring);
253
+ }
254
+
255
+ .co-emoji-picker__cell:active {
256
+ transform: scale(0.92);
257
+ }
258
+
259
+ .co-emoji-picker__glyph {
260
+ /* Fuentes de emoji del SO. La primaria (Geist) no trae glifos de emoji y
261
+ dejaría cuadros vacíos en Windows/Linux, y el sistema de tokens todavía no
262
+ define una familia de emoji: se expone como var themeable con el stack del
263
+ SO de fallback, así que el día que exista --co-font-family-emoji este CSS
264
+ la toma sin tocar nada. */
265
+ font-family: var(
266
+ --co-font-family-emoji,
267
+ 'Apple Color Emoji',
268
+ 'Segoe UI Emoji',
269
+ 'Noto Color Emoji',
270
+ 'Segoe UI Symbol',
271
+ sans-serif
272
+ );
273
+ font-size: var(--co-font-size-22);
274
+ line-height: 1;
275
+ /* El glifo puede pasarse del alto de línea nominal y desalinear la fila. */
276
+ display: block;
277
+ }
278
+
279
+ /* ── Vacío ───────────────────────────────────────────────── */
280
+ .co-emoji-picker__empty {
281
+ display: flex;
282
+ flex-direction: column;
283
+ align-items: center;
284
+ justify-content: center;
285
+ gap: var(--co-spacing-sm);
286
+ height: 100%;
287
+ color: var(--co-semantic-text-muted);
288
+ font-size: var(--co-font-size-13);
289
+ text-align: center;
290
+ }