@semantic-components/ui 0.64.0 → 0.66.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 (769) hide show
  1. package/esm2022/lib/components/accordion/accordion-body.js +33 -0
  2. package/esm2022/lib/components/accordion/accordion-body.js.map +1 -0
  3. package/esm2022/lib/components/accordion/accordion-content.js +16 -0
  4. package/esm2022/lib/components/accordion/accordion-content.js.map +1 -0
  5. package/esm2022/lib/components/accordion/accordion-group.js +35 -0
  6. package/esm2022/lib/components/accordion/accordion-group.js.map +1 -0
  7. package/esm2022/lib/components/accordion/accordion-header.js +20 -0
  8. package/esm2022/lib/components/accordion/accordion-header.js.map +1 -0
  9. package/esm2022/lib/components/accordion/accordion-item.js +27 -0
  10. package/esm2022/lib/components/accordion/accordion-item.js.map +1 -0
  11. package/esm2022/lib/components/accordion/accordion-panel.js +35 -0
  12. package/esm2022/lib/components/accordion/accordion-panel.js.map +1 -0
  13. package/esm2022/lib/components/accordion/accordion-trigger.js +58 -0
  14. package/esm2022/lib/components/accordion/accordion-trigger.js.map +1 -0
  15. package/esm2022/lib/components/accordion/index.js +8 -0
  16. package/esm2022/lib/components/accordion/index.js.map +1 -0
  17. package/esm2022/lib/components/alert/alert-action.js +20 -0
  18. package/esm2022/lib/components/alert/alert-action.js.map +1 -0
  19. package/esm2022/lib/components/alert/alert-description.js +20 -0
  20. package/esm2022/lib/components/alert/alert-description.js.map +1 -0
  21. package/esm2022/lib/components/alert/alert-title.js +20 -0
  22. package/esm2022/lib/components/alert/alert-title.js.map +1 -0
  23. package/esm2022/lib/components/alert/alert.js +34 -0
  24. package/esm2022/lib/components/alert/alert.js.map +1 -0
  25. package/esm2022/lib/components/alert/index.js +5 -0
  26. package/esm2022/lib/components/alert/index.js.map +1 -0
  27. package/esm2022/lib/components/alert-dialog/alert-dialog-action.js +30 -0
  28. package/esm2022/lib/components/alert-dialog/alert-dialog-action.js.map +1 -0
  29. package/esm2022/lib/components/alert-dialog/alert-dialog-cancel.js +30 -0
  30. package/esm2022/lib/components/alert-dialog/alert-dialog-cancel.js.map +1 -0
  31. package/esm2022/lib/components/alert-dialog/alert-dialog-description.js +23 -0
  32. package/esm2022/lib/components/alert-dialog/alert-dialog-description.js.map +1 -0
  33. package/esm2022/lib/components/alert-dialog/alert-dialog-footer.js +20 -0
  34. package/esm2022/lib/components/alert-dialog/alert-dialog-footer.js.map +1 -0
  35. package/esm2022/lib/components/alert-dialog/alert-dialog-header.js +20 -0
  36. package/esm2022/lib/components/alert-dialog/alert-dialog-header.js.map +1 -0
  37. package/esm2022/lib/components/alert-dialog/alert-dialog-media.js +20 -0
  38. package/esm2022/lib/components/alert-dialog/alert-dialog-media.js.map +1 -0
  39. package/esm2022/lib/components/alert-dialog/alert-dialog-portal.js +14 -0
  40. package/esm2022/lib/components/alert-dialog/alert-dialog-portal.js.map +1 -0
  41. package/esm2022/lib/components/alert-dialog/alert-dialog-provider.js +122 -0
  42. package/esm2022/lib/components/alert-dialog/alert-dialog-provider.js.map +1 -0
  43. package/esm2022/lib/components/alert-dialog/alert-dialog-title.js +23 -0
  44. package/esm2022/lib/components/alert-dialog/alert-dialog-title.js.map +1 -0
  45. package/esm2022/lib/components/alert-dialog/alert-dialog-trigger.js +29 -0
  46. package/esm2022/lib/components/alert-dialog/alert-dialog-trigger.js.map +1 -0
  47. package/esm2022/lib/components/alert-dialog/alert-dialog.js +61 -0
  48. package/esm2022/lib/components/alert-dialog/alert-dialog.js.map +1 -0
  49. package/esm2022/lib/components/alert-dialog/index.js +12 -0
  50. package/esm2022/lib/components/alert-dialog/index.js.map +1 -0
  51. package/esm2022/lib/components/aspect-ratio/aspect-ratio.js +22 -0
  52. package/esm2022/lib/components/aspect-ratio/aspect-ratio.js.map +1 -0
  53. package/esm2022/lib/components/aspect-ratio/index.js +2 -0
  54. package/esm2022/lib/components/aspect-ratio/index.js.map +1 -0
  55. package/esm2022/lib/components/avatar/avatar-badge.js +20 -0
  56. package/esm2022/lib/components/avatar/avatar-badge.js.map +1 -0
  57. package/esm2022/lib/components/avatar/avatar-fallback.js +25 -0
  58. package/esm2022/lib/components/avatar/avatar-fallback.js.map +1 -0
  59. package/esm2022/lib/components/avatar/avatar-group-count.js +20 -0
  60. package/esm2022/lib/components/avatar/avatar-group-count.js.map +1 -0
  61. package/esm2022/lib/components/avatar/avatar-group.js +20 -0
  62. package/esm2022/lib/components/avatar/avatar-group.js.map +1 -0
  63. package/esm2022/lib/components/avatar/avatar-image.js +36 -0
  64. package/esm2022/lib/components/avatar/avatar-image.js.map +1 -0
  65. package/esm2022/lib/components/avatar/avatar.js +24 -0
  66. package/esm2022/lib/components/avatar/avatar.js.map +1 -0
  67. package/esm2022/lib/components/avatar/index.js +7 -0
  68. package/esm2022/lib/components/avatar/index.js.map +1 -0
  69. package/esm2022/lib/components/backdrop/backdrop.js +53 -0
  70. package/esm2022/lib/components/backdrop/backdrop.js.map +1 -0
  71. package/esm2022/lib/components/backdrop/index.js +2 -0
  72. package/esm2022/lib/components/backdrop/index.js.map +1 -0
  73. package/esm2022/lib/components/badge/badge.js +37 -0
  74. package/esm2022/lib/components/badge/badge.js.map +1 -0
  75. package/esm2022/lib/components/badge/index.js +2 -0
  76. package/esm2022/lib/components/badge/index.js.map +1 -0
  77. package/esm2022/lib/components/breadcrumb/breadcrumb-ellipsis.js +33 -0
  78. package/esm2022/lib/components/breadcrumb/breadcrumb-ellipsis.js.map +1 -0
  79. package/esm2022/lib/components/breadcrumb/breadcrumb-item.js +20 -0
  80. package/esm2022/lib/components/breadcrumb/breadcrumb-item.js.map +1 -0
  81. package/esm2022/lib/components/breadcrumb/breadcrumb-link.js +20 -0
  82. package/esm2022/lib/components/breadcrumb/breadcrumb-link.js.map +1 -0
  83. package/esm2022/lib/components/breadcrumb/breadcrumb-list.js +20 -0
  84. package/esm2022/lib/components/breadcrumb/breadcrumb-list.js.map +1 -0
  85. package/esm2022/lib/components/breadcrumb/breadcrumb-page.js +23 -0
  86. package/esm2022/lib/components/breadcrumb/breadcrumb-page.js.map +1 -0
  87. package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js +35 -0
  88. package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js.map +1 -0
  89. package/esm2022/lib/components/breadcrumb/breadcrumb.js +17 -0
  90. package/esm2022/lib/components/breadcrumb/breadcrumb.js.map +1 -0
  91. package/esm2022/lib/components/breadcrumb/index.js +8 -0
  92. package/esm2022/lib/components/breadcrumb/index.js.map +1 -0
  93. package/esm2022/lib/components/button/button.js +4 -4
  94. package/esm2022/lib/components/button/button.js.map +1 -1
  95. package/esm2022/lib/components/button-group/button-group-separator.js +24 -0
  96. package/esm2022/lib/components/button-group/button-group-separator.js.map +1 -0
  97. package/esm2022/lib/components/button-group/button-group-text.js +20 -0
  98. package/esm2022/lib/components/button-group/button-group-text.js.map +1 -0
  99. package/esm2022/lib/components/button-group/button-group.js +34 -0
  100. package/esm2022/lib/components/button-group/button-group.js.map +1 -0
  101. package/esm2022/lib/components/button-group/index.js +4 -0
  102. package/esm2022/lib/components/button-group/index.js.map +1 -0
  103. package/esm2022/lib/components/calendar/calendar-day-view.js +323 -0
  104. package/esm2022/lib/components/calendar/calendar-day-view.js.map +1 -0
  105. package/esm2022/lib/components/calendar/calendar-header.js +93 -0
  106. package/esm2022/lib/components/calendar/calendar-header.js.map +1 -0
  107. package/esm2022/lib/components/calendar/calendar-month-view.js +185 -0
  108. package/esm2022/lib/components/calendar/calendar-month-view.js.map +1 -0
  109. package/esm2022/lib/components/calendar/calendar-year-view.js +174 -0
  110. package/esm2022/lib/components/calendar/calendar-year-view.js.map +1 -0
  111. package/esm2022/lib/components/calendar/calendar.js +282 -0
  112. package/esm2022/lib/components/calendar/calendar.js.map +1 -0
  113. package/esm2022/lib/components/calendar/index.js +2 -0
  114. package/esm2022/lib/components/calendar/index.js.map +1 -0
  115. package/esm2022/lib/components/card/card-action.js +20 -0
  116. package/esm2022/lib/components/card/card-action.js.map +1 -0
  117. package/esm2022/lib/components/card/card-body.js +20 -0
  118. package/esm2022/lib/components/card/card-body.js.map +1 -0
  119. package/esm2022/lib/components/card/card-description.js +20 -0
  120. package/esm2022/lib/components/card/card-description.js.map +1 -0
  121. package/esm2022/lib/components/card/card-footer.js +20 -0
  122. package/esm2022/lib/components/card/card-footer.js.map +1 -0
  123. package/esm2022/lib/components/card/card-header.js +20 -0
  124. package/esm2022/lib/components/card/card-header.js.map +1 -0
  125. package/esm2022/lib/components/card/card-title.js +20 -0
  126. package/esm2022/lib/components/card/card-title.js.map +1 -0
  127. package/esm2022/lib/components/card/card.js +22 -0
  128. package/esm2022/lib/components/card/card.js.map +1 -0
  129. package/esm2022/lib/components/card/index.js +8 -0
  130. package/esm2022/lib/components/card/index.js.map +1 -0
  131. package/esm2022/lib/components/checkbox/checkbox-field.js +64 -0
  132. package/esm2022/lib/components/checkbox/checkbox-field.js.map +1 -0
  133. package/esm2022/lib/components/checkbox/checkbox-types.js +3 -0
  134. package/esm2022/lib/components/checkbox/checkbox-types.js.map +1 -0
  135. package/esm2022/lib/components/checkbox/checkbox-visual.js +41 -0
  136. package/esm2022/lib/components/checkbox/checkbox-visual.js.map +1 -0
  137. package/esm2022/lib/components/checkbox/checkbox.js +54 -0
  138. package/esm2022/lib/components/checkbox/checkbox.js.map +1 -0
  139. package/esm2022/lib/components/checkbox/index.js +5 -0
  140. package/esm2022/lib/components/checkbox/index.js.map +1 -0
  141. package/esm2022/lib/components/collapsible/collapsible-body.js +33 -0
  142. package/esm2022/lib/components/collapsible/collapsible-body.js.map +1 -0
  143. package/esm2022/lib/components/collapsible/collapsible-content.js +16 -0
  144. package/esm2022/lib/components/collapsible/collapsible-content.js.map +1 -0
  145. package/esm2022/lib/components/collapsible/collapsible-panel.js +35 -0
  146. package/esm2022/lib/components/collapsible/collapsible-panel.js.map +1 -0
  147. package/esm2022/lib/components/collapsible/collapsible-trigger.js +45 -0
  148. package/esm2022/lib/components/collapsible/collapsible-trigger.js.map +1 -0
  149. package/esm2022/lib/components/collapsible/collapsible.js +35 -0
  150. package/esm2022/lib/components/collapsible/collapsible.js.map +1 -0
  151. package/esm2022/lib/components/collapsible/index.js +6 -0
  152. package/esm2022/lib/components/collapsible/index.js.map +1 -0
  153. package/esm2022/lib/components/date-picker/date-picker.js +134 -0
  154. package/esm2022/lib/components/date-picker/date-picker.js.map +1 -0
  155. package/esm2022/lib/components/date-picker/index.js +2 -0
  156. package/esm2022/lib/components/date-picker/index.js.map +1 -0
  157. package/esm2022/lib/components/dialog/dialog-close.js +30 -0
  158. package/esm2022/lib/components/dialog/dialog-close.js.map +1 -0
  159. package/esm2022/lib/components/dialog/dialog-description.js +23 -0
  160. package/esm2022/lib/components/dialog/dialog-description.js.map +1 -0
  161. package/esm2022/lib/components/dialog/dialog-footer.js +20 -0
  162. package/esm2022/lib/components/dialog/dialog-footer.js.map +1 -0
  163. package/esm2022/lib/components/dialog/dialog-header.js +20 -0
  164. package/esm2022/lib/components/dialog/dialog-header.js.map +1 -0
  165. package/esm2022/lib/components/dialog/dialog-portal.js +14 -0
  166. package/esm2022/lib/components/dialog/dialog-portal.js.map +1 -0
  167. package/esm2022/lib/components/dialog/dialog-provider.js +159 -0
  168. package/esm2022/lib/components/dialog/dialog-provider.js.map +1 -0
  169. package/esm2022/lib/components/dialog/dialog-title.js +23 -0
  170. package/esm2022/lib/components/dialog/dialog-title.js.map +1 -0
  171. package/esm2022/lib/components/dialog/dialog-trigger.js +29 -0
  172. package/esm2022/lib/components/dialog/dialog-trigger.js.map +1 -0
  173. package/esm2022/lib/components/dialog/dialog.js +59 -0
  174. package/esm2022/lib/components/dialog/dialog.js.map +1 -0
  175. package/esm2022/lib/components/dialog/index.js +10 -0
  176. package/esm2022/lib/components/dialog/index.js.map +1 -0
  177. package/esm2022/lib/components/drawer/drawer-close.js +23 -0
  178. package/esm2022/lib/components/drawer/drawer-close.js.map +1 -0
  179. package/esm2022/lib/components/drawer/drawer-description.js +20 -0
  180. package/esm2022/lib/components/drawer/drawer-description.js.map +1 -0
  181. package/esm2022/lib/components/drawer/drawer-footer.js +20 -0
  182. package/esm2022/lib/components/drawer/drawer-footer.js.map +1 -0
  183. package/esm2022/lib/components/drawer/drawer-handle.js +20 -0
  184. package/esm2022/lib/components/drawer/drawer-handle.js.map +1 -0
  185. package/esm2022/lib/components/drawer/drawer-header.js +20 -0
  186. package/esm2022/lib/components/drawer/drawer-header.js.map +1 -0
  187. package/esm2022/lib/components/drawer/drawer-portal.js +14 -0
  188. package/esm2022/lib/components/drawer/drawer-portal.js.map +1 -0
  189. package/esm2022/lib/components/drawer/drawer-provider.js +127 -0
  190. package/esm2022/lib/components/drawer/drawer-provider.js.map +1 -0
  191. package/esm2022/lib/components/drawer/drawer-title.js +20 -0
  192. package/esm2022/lib/components/drawer/drawer-title.js.map +1 -0
  193. package/esm2022/lib/components/drawer/drawer-trigger.js +28 -0
  194. package/esm2022/lib/components/drawer/drawer-trigger.js.map +1 -0
  195. package/esm2022/lib/components/drawer/drawer.js +50 -0
  196. package/esm2022/lib/components/drawer/drawer.js.map +1 -0
  197. package/esm2022/lib/components/drawer/index.js +11 -0
  198. package/esm2022/lib/components/drawer/index.js.map +1 -0
  199. package/esm2022/lib/components/empty/empty-body.js +20 -0
  200. package/esm2022/lib/components/empty/empty-body.js.map +1 -0
  201. package/esm2022/lib/components/empty/empty-description.js +20 -0
  202. package/esm2022/lib/components/empty/empty-description.js.map +1 -0
  203. package/esm2022/lib/components/empty/empty-header.js +20 -0
  204. package/esm2022/lib/components/empty/empty-header.js.map +1 -0
  205. package/esm2022/lib/components/empty/empty-media.js +34 -0
  206. package/esm2022/lib/components/empty/empty-media.js.map +1 -0
  207. package/esm2022/lib/components/empty/empty-title.js +20 -0
  208. package/esm2022/lib/components/empty/empty-title.js.map +1 -0
  209. package/esm2022/lib/components/empty/empty.js +20 -0
  210. package/esm2022/lib/components/empty/empty.js.map +1 -0
  211. package/esm2022/lib/components/empty/index.js +7 -0
  212. package/esm2022/lib/components/empty/index.js.map +1 -0
  213. package/esm2022/lib/components/field/field-body.js +20 -0
  214. package/esm2022/lib/components/field/field-body.js.map +1 -0
  215. package/esm2022/lib/components/field/field-description.js +20 -0
  216. package/esm2022/lib/components/field/field-description.js.map +1 -0
  217. package/esm2022/lib/components/field/field-error.js +21 -0
  218. package/esm2022/lib/components/field/field-error.js.map +1 -0
  219. package/esm2022/lib/components/field/field-group.js +20 -0
  220. package/esm2022/lib/components/field/field-group.js.map +1 -0
  221. package/esm2022/lib/components/field/field-separator.js +20 -0
  222. package/esm2022/lib/components/field/field-separator.js.map +1 -0
  223. package/esm2022/lib/components/field/field-title.js +20 -0
  224. package/esm2022/lib/components/field/field-title.js.map +1 -0
  225. package/esm2022/lib/components/field/field.js +75 -0
  226. package/esm2022/lib/components/field/field.js.map +1 -0
  227. package/esm2022/lib/components/field/fieldset.js +20 -0
  228. package/esm2022/lib/components/field/fieldset.js.map +1 -0
  229. package/esm2022/lib/components/field/index.js +10 -0
  230. package/esm2022/lib/components/field/index.js.map +1 -0
  231. package/esm2022/lib/components/field/legend.js +22 -0
  232. package/esm2022/lib/components/field/legend.js.map +1 -0
  233. package/esm2022/lib/components/hover-card/hover-card-portal.js +14 -0
  234. package/esm2022/lib/components/hover-card/hover-card-portal.js.map +1 -0
  235. package/esm2022/lib/components/hover-card/hover-card-provider.js +185 -0
  236. package/esm2022/lib/components/hover-card/hover-card-provider.js.map +1 -0
  237. package/esm2022/lib/components/hover-card/hover-card-trigger.js +72 -0
  238. package/esm2022/lib/components/hover-card/hover-card-trigger.js.map +1 -0
  239. package/esm2022/lib/components/hover-card/hover-card.js +74 -0
  240. package/esm2022/lib/components/hover-card/hover-card.js.map +1 -0
  241. package/esm2022/lib/components/hover-card/index.js +5 -0
  242. package/esm2022/lib/components/hover-card/index.js.map +1 -0
  243. package/esm2022/lib/components/index.js +44 -0
  244. package/esm2022/lib/components/index.js.map +1 -1
  245. package/esm2022/lib/components/input/index.js +2 -0
  246. package/esm2022/lib/components/input/index.js.map +1 -0
  247. package/esm2022/lib/components/input/input.js +41 -0
  248. package/esm2022/lib/components/input/input.js.map +1 -0
  249. package/esm2022/lib/components/input-group/index.js +5 -0
  250. package/esm2022/lib/components/input-group/index.js.map +1 -0
  251. package/esm2022/lib/components/input-group/input-group-addon.js +37 -0
  252. package/esm2022/lib/components/input-group/input-group-addon.js.map +1 -0
  253. package/esm2022/lib/components/input-group/input-group-button.js +39 -0
  254. package/esm2022/lib/components/input-group/input-group-button.js.map +1 -0
  255. package/esm2022/lib/components/input-group/input-group-text.js +20 -0
  256. package/esm2022/lib/components/input-group/input-group-text.js.map +1 -0
  257. package/esm2022/lib/components/input-group/input-group.js +21 -0
  258. package/esm2022/lib/components/input-group/input-group.js.map +1 -0
  259. package/esm2022/lib/components/item/index.js +11 -0
  260. package/esm2022/lib/components/item/index.js.map +1 -0
  261. package/esm2022/lib/components/item/item-actions.js +20 -0
  262. package/esm2022/lib/components/item/item-actions.js.map +1 -0
  263. package/esm2022/lib/components/item/item-body.js +20 -0
  264. package/esm2022/lib/components/item/item-body.js.map +1 -0
  265. package/esm2022/lib/components/item/item-description.js +20 -0
  266. package/esm2022/lib/components/item/item-description.js.map +1 -0
  267. package/esm2022/lib/components/item/item-footer.js +20 -0
  268. package/esm2022/lib/components/item/item-footer.js.map +1 -0
  269. package/esm2022/lib/components/item/item-group.js +21 -0
  270. package/esm2022/lib/components/item/item-group.js.map +1 -0
  271. package/esm2022/lib/components/item/item-header.js +20 -0
  272. package/esm2022/lib/components/item/item-header.js.map +1 -0
  273. package/esm2022/lib/components/item/item-media.js +35 -0
  274. package/esm2022/lib/components/item/item-media.js.map +1 -0
  275. package/esm2022/lib/components/item/item-separator.js +21 -0
  276. package/esm2022/lib/components/item/item-separator.js.map +1 -0
  277. package/esm2022/lib/components/item/item-title.js +20 -0
  278. package/esm2022/lib/components/item/item-title.js.map +1 -0
  279. package/esm2022/lib/components/item/item.js +43 -0
  280. package/esm2022/lib/components/item/item.js.map +1 -0
  281. package/esm2022/lib/components/kbd/index.js +3 -0
  282. package/esm2022/lib/components/kbd/index.js.map +1 -0
  283. package/esm2022/lib/components/kbd/kbd-group.js +20 -0
  284. package/esm2022/lib/components/kbd/kbd-group.js.map +1 -0
  285. package/esm2022/lib/components/kbd/kbd.js +20 -0
  286. package/esm2022/lib/components/kbd/kbd.js.map +1 -0
  287. package/esm2022/lib/components/label/index.js +2 -0
  288. package/esm2022/lib/components/label/index.js.map +1 -0
  289. package/esm2022/lib/components/label/label.js +29 -0
  290. package/esm2022/lib/components/label/label.js.map +1 -0
  291. package/esm2022/lib/components/link/link.js +5 -6
  292. package/esm2022/lib/components/link/link.js.map +1 -1
  293. package/esm2022/lib/components/menu/index.js +8 -0
  294. package/esm2022/lib/components/menu/index.js.map +1 -0
  295. package/esm2022/lib/components/menu/menu-content.js +16 -0
  296. package/esm2022/lib/components/menu/menu-content.js.map +1 -0
  297. package/esm2022/lib/components/menu/menu-item.js +96 -0
  298. package/esm2022/lib/components/menu/menu-item.js.map +1 -0
  299. package/esm2022/lib/components/menu/menu-portal.js +15 -0
  300. package/esm2022/lib/components/menu/menu-portal.js.map +1 -0
  301. package/esm2022/lib/components/menu/menu-provider.js +102 -0
  302. package/esm2022/lib/components/menu/menu-provider.js.map +1 -0
  303. package/esm2022/lib/components/menu/menu-separator.js +22 -0
  304. package/esm2022/lib/components/menu/menu-separator.js.map +1 -0
  305. package/esm2022/lib/components/menu/menu-trigger.js +34 -0
  306. package/esm2022/lib/components/menu/menu-trigger.js.map +1 -0
  307. package/esm2022/lib/components/menu/menu.js +37 -0
  308. package/esm2022/lib/components/menu/menu.js.map +1 -0
  309. package/esm2022/lib/components/menu-bar/index.js +3 -0
  310. package/esm2022/lib/components/menu-bar/index.js.map +1 -0
  311. package/esm2022/lib/components/menu-bar/menu-bar-item.js +95 -0
  312. package/esm2022/lib/components/menu-bar/menu-bar-item.js.map +1 -0
  313. package/esm2022/lib/components/menu-bar/menu-bar.js +28 -0
  314. package/esm2022/lib/components/menu-bar/menu-bar.js.map +1 -0
  315. package/esm2022/lib/components/pagination/index.js +11 -0
  316. package/esm2022/lib/components/pagination/index.js.map +1 -0
  317. package/esm2022/lib/components/pagination/pagination-ellipsis.js +21 -0
  318. package/esm2022/lib/components/pagination/pagination-ellipsis.js.map +1 -0
  319. package/esm2022/lib/components/pagination/pagination-first.js +51 -0
  320. package/esm2022/lib/components/pagination/pagination-first.js.map +1 -0
  321. package/esm2022/lib/components/pagination/pagination-item.js +20 -0
  322. package/esm2022/lib/components/pagination/pagination-item.js.map +1 -0
  323. package/esm2022/lib/components/pagination/pagination-last.js +52 -0
  324. package/esm2022/lib/components/pagination/pagination-last.js.map +1 -0
  325. package/esm2022/lib/components/pagination/pagination-link.js +50 -0
  326. package/esm2022/lib/components/pagination/pagination-link.js.map +1 -0
  327. package/esm2022/lib/components/pagination/pagination-list.js +20 -0
  328. package/esm2022/lib/components/pagination/pagination-list.js.map +1 -0
  329. package/esm2022/lib/components/pagination/pagination-next.js +52 -0
  330. package/esm2022/lib/components/pagination/pagination-next.js.map +1 -0
  331. package/esm2022/lib/components/pagination/pagination-page-size-select.js +37 -0
  332. package/esm2022/lib/components/pagination/pagination-page-size-select.js.map +1 -0
  333. package/esm2022/lib/components/pagination/pagination-previous.js +52 -0
  334. package/esm2022/lib/components/pagination/pagination-previous.js.map +1 -0
  335. package/esm2022/lib/components/pagination/pagination.js +135 -0
  336. package/esm2022/lib/components/pagination/pagination.js.map +1 -0
  337. package/esm2022/lib/components/popover/index.js +9 -0
  338. package/esm2022/lib/components/popover/index.js.map +1 -0
  339. package/esm2022/lib/components/popover/popover-close.js +26 -0
  340. package/esm2022/lib/components/popover/popover-close.js.map +1 -0
  341. package/esm2022/lib/components/popover/popover-description.js +20 -0
  342. package/esm2022/lib/components/popover/popover-description.js.map +1 -0
  343. package/esm2022/lib/components/popover/popover-header.js +20 -0
  344. package/esm2022/lib/components/popover/popover-header.js.map +1 -0
  345. package/esm2022/lib/components/popover/popover-portal.js +14 -0
  346. package/esm2022/lib/components/popover/popover-portal.js.map +1 -0
  347. package/esm2022/lib/components/popover/popover-provider.js +203 -0
  348. package/esm2022/lib/components/popover/popover-provider.js.map +1 -0
  349. package/esm2022/lib/components/popover/popover-title.js +20 -0
  350. package/esm2022/lib/components/popover/popover-title.js.map +1 -0
  351. package/esm2022/lib/components/popover/popover-trigger.js +32 -0
  352. package/esm2022/lib/components/popover/popover-trigger.js.map +1 -0
  353. package/esm2022/lib/components/popover/popover.js +50 -0
  354. package/esm2022/lib/components/popover/popover.js.map +1 -0
  355. package/esm2022/lib/components/progress/index.js +2 -0
  356. package/esm2022/lib/components/progress/index.js.map +1 -0
  357. package/esm2022/lib/components/progress/progress-indicator.js +26 -0
  358. package/esm2022/lib/components/progress/progress-indicator.js.map +1 -0
  359. package/esm2022/lib/components/progress/progress.js +50 -0
  360. package/esm2022/lib/components/progress/progress.js.map +1 -0
  361. package/esm2022/lib/components/radio-group/index.js +4 -0
  362. package/esm2022/lib/components/radio-group/index.js.map +1 -0
  363. package/esm2022/lib/components/radio-group/radio-field.js +38 -0
  364. package/esm2022/lib/components/radio-group/radio-field.js.map +1 -0
  365. package/esm2022/lib/components/radio-group/radio-group.js +21 -0
  366. package/esm2022/lib/components/radio-group/radio-group.js.map +1 -0
  367. package/esm2022/lib/components/radio-group/radio.js +22 -0
  368. package/esm2022/lib/components/radio-group/radio.js.map +1 -0
  369. package/esm2022/lib/components/select/index.js +8 -0
  370. package/esm2022/lib/components/select/index.js.map +1 -0
  371. package/esm2022/lib/components/select/select-icon.js +21 -0
  372. package/esm2022/lib/components/select/select-icon.js.map +1 -0
  373. package/esm2022/lib/components/select/select-input.js +27 -0
  374. package/esm2022/lib/components/select/select-input.js.map +1 -0
  375. package/esm2022/lib/components/select/select-item-indicator.js +20 -0
  376. package/esm2022/lib/components/select/select-item-indicator.js.map +1 -0
  377. package/esm2022/lib/components/select/select-item.js +49 -0
  378. package/esm2022/lib/components/select/select-item.js.map +1 -0
  379. package/esm2022/lib/components/select/select-list.js +37 -0
  380. package/esm2022/lib/components/select/select-list.js.map +1 -0
  381. package/esm2022/lib/components/select/select-portal.js +14 -0
  382. package/esm2022/lib/components/select/select-portal.js.map +1 -0
  383. package/esm2022/lib/components/select/select-trigger-icon.js +20 -0
  384. package/esm2022/lib/components/select/select-trigger-icon.js.map +1 -0
  385. package/esm2022/lib/components/select/select-trigger.js +52 -0
  386. package/esm2022/lib/components/select/select-trigger.js.map +1 -0
  387. package/esm2022/lib/components/select/select-value.js +28 -0
  388. package/esm2022/lib/components/select/select-value.js.map +1 -0
  389. package/esm2022/lib/components/select/select.js +92 -0
  390. package/esm2022/lib/components/select/select.js.map +1 -0
  391. package/esm2022/lib/components/separator/index.js +2 -0
  392. package/esm2022/lib/components/separator/index.js.map +1 -0
  393. package/esm2022/lib/components/separator/separator.js +26 -0
  394. package/esm2022/lib/components/separator/separator.js.map +1 -0
  395. package/esm2022/lib/components/sheet/index.js +10 -0
  396. package/esm2022/lib/components/sheet/index.js.map +1 -0
  397. package/esm2022/lib/components/sheet/sheet-close.js +29 -0
  398. package/esm2022/lib/components/sheet/sheet-close.js.map +1 -0
  399. package/esm2022/lib/components/sheet/sheet-description.js +23 -0
  400. package/esm2022/lib/components/sheet/sheet-description.js.map +1 -0
  401. package/esm2022/lib/components/sheet/sheet-footer.js +20 -0
  402. package/esm2022/lib/components/sheet/sheet-footer.js.map +1 -0
  403. package/esm2022/lib/components/sheet/sheet-header.js +20 -0
  404. package/esm2022/lib/components/sheet/sheet-header.js.map +1 -0
  405. package/esm2022/lib/components/sheet/sheet-portal.js +14 -0
  406. package/esm2022/lib/components/sheet/sheet-portal.js.map +1 -0
  407. package/esm2022/lib/components/sheet/sheet-provider.js +127 -0
  408. package/esm2022/lib/components/sheet/sheet-provider.js.map +1 -0
  409. package/esm2022/lib/components/sheet/sheet-title.js +23 -0
  410. package/esm2022/lib/components/sheet/sheet-title.js.map +1 -0
  411. package/esm2022/lib/components/sheet/sheet-trigger.js +28 -0
  412. package/esm2022/lib/components/sheet/sheet-trigger.js.map +1 -0
  413. package/esm2022/lib/components/sheet/sheet.js +64 -0
  414. package/esm2022/lib/components/sheet/sheet.js.map +1 -0
  415. package/esm2022/lib/components/skeleton/index.js +2 -0
  416. package/esm2022/lib/components/skeleton/index.js.map +1 -0
  417. package/esm2022/lib/components/skeleton/skeleton.js +20 -0
  418. package/esm2022/lib/components/skeleton/skeleton.js.map +1 -0
  419. package/esm2022/lib/components/spinner/index.js +2 -0
  420. package/esm2022/lib/components/spinner/index.js.map +1 -0
  421. package/esm2022/lib/components/spinner/spinner.js +23 -0
  422. package/esm2022/lib/components/spinner/spinner.js.map +1 -0
  423. package/esm2022/lib/components/switch/index.js +5 -0
  424. package/esm2022/lib/components/switch/index.js.map +1 -0
  425. package/esm2022/lib/components/switch/switch-field.js +57 -0
  426. package/esm2022/lib/components/switch/switch-field.js.map +1 -0
  427. package/esm2022/lib/components/switch/switch-types.js +3 -0
  428. package/esm2022/lib/components/switch/switch-types.js.map +1 -0
  429. package/esm2022/lib/components/switch/switch-visual.js +34 -0
  430. package/esm2022/lib/components/switch/switch-visual.js.map +1 -0
  431. package/esm2022/lib/components/switch/switch.js +45 -0
  432. package/esm2022/lib/components/switch/switch.js.map +1 -0
  433. package/esm2022/lib/components/table/index.js +9 -0
  434. package/esm2022/lib/components/table/index.js.map +1 -0
  435. package/esm2022/lib/components/table/table-body.js +20 -0
  436. package/esm2022/lib/components/table/table-body.js.map +1 -0
  437. package/esm2022/lib/components/table/table-caption.js +20 -0
  438. package/esm2022/lib/components/table/table-caption.js.map +1 -0
  439. package/esm2022/lib/components/table/table-cell.js +20 -0
  440. package/esm2022/lib/components/table/table-cell.js.map +1 -0
  441. package/esm2022/lib/components/table/table-footer.js +20 -0
  442. package/esm2022/lib/components/table/table-footer.js.map +1 -0
  443. package/esm2022/lib/components/table/table-header-cell.js +20 -0
  444. package/esm2022/lib/components/table/table-header-cell.js.map +1 -0
  445. package/esm2022/lib/components/table/table-header.js +20 -0
  446. package/esm2022/lib/components/table/table-header.js.map +1 -0
  447. package/esm2022/lib/components/table/table-row.js +20 -0
  448. package/esm2022/lib/components/table/table-row.js.map +1 -0
  449. package/esm2022/lib/components/table/table.js +20 -0
  450. package/esm2022/lib/components/table/table.js.map +1 -0
  451. package/esm2022/lib/components/tabs/index.js +6 -0
  452. package/esm2022/lib/components/tabs/index.js.map +1 -0
  453. package/esm2022/lib/components/tabs/tab-content.js +16 -0
  454. package/esm2022/lib/components/tabs/tab-content.js.map +1 -0
  455. package/esm2022/lib/components/tabs/tab-list.js +57 -0
  456. package/esm2022/lib/components/tabs/tab-list.js.map +1 -0
  457. package/esm2022/lib/components/tabs/tab-panel.js +35 -0
  458. package/esm2022/lib/components/tabs/tab-panel.js.map +1 -0
  459. package/esm2022/lib/components/tabs/tab.js +34 -0
  460. package/esm2022/lib/components/tabs/tab.js.map +1 -0
  461. package/esm2022/lib/components/tabs/tabs.js +36 -0
  462. package/esm2022/lib/components/tabs/tabs.js.map +1 -0
  463. package/esm2022/lib/components/textarea/index.js +2 -0
  464. package/esm2022/lib/components/textarea/index.js.map +1 -0
  465. package/esm2022/lib/components/textarea/textarea.js +41 -0
  466. package/esm2022/lib/components/textarea/textarea.js.map +1 -0
  467. package/esm2022/lib/components/toast/index.js +7 -0
  468. package/esm2022/lib/components/toast/index.js.map +1 -0
  469. package/esm2022/lib/components/toast/toast-action.js +21 -0
  470. package/esm2022/lib/components/toast/toast-action.js.map +1 -0
  471. package/esm2022/lib/components/toast/toast-close.js +25 -0
  472. package/esm2022/lib/components/toast/toast-close.js.map +1 -0
  473. package/esm2022/lib/components/toast/toast-description.js +20 -0
  474. package/esm2022/lib/components/toast/toast-description.js.map +1 -0
  475. package/esm2022/lib/components/toast/toast-stack.js +182 -0
  476. package/esm2022/lib/components/toast/toast-stack.js.map +1 -0
  477. package/esm2022/lib/components/toast/toast-title.js +20 -0
  478. package/esm2022/lib/components/toast/toast-title.js.map +1 -0
  479. package/esm2022/lib/components/toast/toast.js +58 -0
  480. package/esm2022/lib/components/toast/toast.js.map +1 -0
  481. package/esm2022/lib/components/toast/toast.types.js +1 -0
  482. package/esm2022/lib/components/toast/toast.types.js.map +1 -0
  483. package/esm2022/lib/components/toast/toaster.js +149 -0
  484. package/esm2022/lib/components/toast/toaster.js.map +1 -0
  485. package/esm2022/lib/components/toggle/index.js +2 -0
  486. package/esm2022/lib/components/toggle/index.js.map +1 -0
  487. package/esm2022/lib/components/toggle/toggle.js +52 -0
  488. package/esm2022/lib/components/toggle/toggle.js.map +1 -0
  489. package/esm2022/lib/components/toggle-group/index.js +3 -0
  490. package/esm2022/lib/components/toggle-group/index.js.map +1 -0
  491. package/esm2022/lib/components/toggle-group/toggle-group-item.js +45 -0
  492. package/esm2022/lib/components/toggle-group/toggle-group-item.js.map +1 -0
  493. package/esm2022/lib/components/toggle-group/toggle-group.js +61 -0
  494. package/esm2022/lib/components/toggle-group/toggle-group.js.map +1 -0
  495. package/esm2022/lib/components/toolbar/index.js +5 -0
  496. package/esm2022/lib/components/toolbar/index.js.map +1 -0
  497. package/esm2022/lib/components/toolbar/toolbar-separator.js +29 -0
  498. package/esm2022/lib/components/toolbar/toolbar-separator.js.map +1 -0
  499. package/esm2022/lib/components/toolbar/toolbar-widget-group.js +35 -0
  500. package/esm2022/lib/components/toolbar/toolbar-widget-group.js.map +1 -0
  501. package/esm2022/lib/components/toolbar/toolbar-widget.js +39 -0
  502. package/esm2022/lib/components/toolbar/toolbar-widget.js.map +1 -0
  503. package/esm2022/lib/components/toolbar/toolbar.js +38 -0
  504. package/esm2022/lib/components/toolbar/toolbar.js.map +1 -0
  505. package/esm2022/lib/components/tooltip/index.js +3 -0
  506. package/esm2022/lib/components/tooltip/index.js.map +1 -0
  507. package/esm2022/lib/components/tooltip/tooltip-manager.js +165 -0
  508. package/esm2022/lib/components/tooltip/tooltip-manager.js.map +1 -0
  509. package/esm2022/lib/components/tooltip/tooltip-trigger.js +115 -0
  510. package/esm2022/lib/components/tooltip/tooltip-trigger.js.map +1 -0
  511. package/esm2022/lib/components/tooltip/tooltip.js +66 -0
  512. package/esm2022/lib/components/tooltip/tooltip.js.map +1 -0
  513. package/lib/components/accordion/accordion-body.d.ts +7 -0
  514. package/lib/components/accordion/accordion-content.d.ts +6 -0
  515. package/lib/components/accordion/accordion-group.d.ts +8 -0
  516. package/lib/components/accordion/accordion-header.d.ts +7 -0
  517. package/lib/components/accordion/accordion-item.d.ts +7 -0
  518. package/lib/components/accordion/accordion-panel.d.ts +8 -0
  519. package/lib/components/accordion/accordion-trigger.d.ts +8 -0
  520. package/lib/components/accordion/index.d.ts +7 -0
  521. package/lib/components/alert/alert-action.d.ts +7 -0
  522. package/lib/components/alert/alert-description.d.ts +7 -0
  523. package/lib/components/alert/alert-title.d.ts +7 -0
  524. package/lib/components/alert/alert.d.ts +14 -0
  525. package/lib/components/alert/index.d.ts +4 -0
  526. package/lib/components/alert-dialog/alert-dialog-action.d.ts +11 -0
  527. package/lib/components/alert-dialog/alert-dialog-cancel.d.ts +11 -0
  528. package/lib/components/alert-dialog/alert-dialog-description.d.ts +9 -0
  529. package/lib/components/alert-dialog/alert-dialog-footer.d.ts +7 -0
  530. package/lib/components/alert-dialog/alert-dialog-header.d.ts +7 -0
  531. package/lib/components/alert-dialog/alert-dialog-media.d.ts +7 -0
  532. package/lib/components/alert-dialog/alert-dialog-portal.d.ts +7 -0
  533. package/lib/components/alert-dialog/alert-dialog-provider.d.ts +22 -0
  534. package/lib/components/alert-dialog/alert-dialog-title.d.ts +9 -0
  535. package/lib/components/alert-dialog/alert-dialog-trigger.d.ts +10 -0
  536. package/lib/components/alert-dialog/alert-dialog.d.ts +19 -0
  537. package/lib/components/alert-dialog/index.d.ts +11 -0
  538. package/lib/components/aspect-ratio/aspect-ratio.d.ts +8 -0
  539. package/lib/components/aspect-ratio/index.d.ts +1 -0
  540. package/lib/components/avatar/avatar-badge.d.ts +7 -0
  541. package/lib/components/avatar/avatar-fallback.d.ts +8 -0
  542. package/lib/components/avatar/avatar-group-count.d.ts +7 -0
  543. package/lib/components/avatar/avatar-group.d.ts +7 -0
  544. package/lib/components/avatar/avatar-image.d.ts +12 -0
  545. package/lib/components/avatar/avatar.d.ts +12 -0
  546. package/lib/components/avatar/index.d.ts +6 -0
  547. package/lib/components/backdrop/backdrop.d.ts +23 -0
  548. package/lib/components/backdrop/index.d.ts +1 -0
  549. package/lib/components/badge/badge.d.ts +14 -0
  550. package/lib/components/badge/index.d.ts +1 -0
  551. package/lib/components/breadcrumb/breadcrumb-ellipsis.d.ts +7 -0
  552. package/lib/components/breadcrumb/breadcrumb-item.d.ts +7 -0
  553. package/lib/components/breadcrumb/breadcrumb-link.d.ts +7 -0
  554. package/lib/components/breadcrumb/breadcrumb-list.d.ts +7 -0
  555. package/lib/components/breadcrumb/breadcrumb-page.d.ts +7 -0
  556. package/lib/components/breadcrumb/breadcrumb-separator.d.ts +7 -0
  557. package/lib/components/breadcrumb/breadcrumb.d.ts +5 -0
  558. package/lib/components/breadcrumb/index.d.ts +7 -0
  559. package/lib/components/button/button.d.ts +5 -5
  560. package/lib/components/button-group/button-group-separator.d.ts +9 -0
  561. package/lib/components/button-group/button-group-text.d.ts +7 -0
  562. package/lib/components/button-group/button-group.d.ts +13 -0
  563. package/lib/components/button-group/index.d.ts +3 -0
  564. package/lib/components/calendar/calendar-day-view.d.ts +40 -0
  565. package/lib/components/calendar/calendar-header.d.ts +13 -0
  566. package/lib/components/calendar/calendar-month-view.d.ts +28 -0
  567. package/lib/components/calendar/calendar-year-view.d.ts +28 -0
  568. package/lib/components/calendar/calendar.d.ts +40 -0
  569. package/lib/components/calendar/index.d.ts +1 -0
  570. package/lib/components/card/card-action.d.ts +7 -0
  571. package/lib/components/card/card-body.d.ts +7 -0
  572. package/lib/components/card/card-description.d.ts +7 -0
  573. package/lib/components/card/card-footer.d.ts +7 -0
  574. package/lib/components/card/card-header.d.ts +7 -0
  575. package/lib/components/card/card-title.d.ts +7 -0
  576. package/lib/components/card/card.d.ts +8 -0
  577. package/lib/components/card/index.d.ts +7 -0
  578. package/lib/components/checkbox/checkbox-field.d.ts +16 -0
  579. package/lib/components/checkbox/checkbox-types.d.ts +9 -0
  580. package/lib/components/checkbox/checkbox-visual.d.ts +8 -0
  581. package/lib/components/checkbox/checkbox.d.ts +19 -0
  582. package/lib/components/checkbox/index.d.ts +4 -0
  583. package/lib/components/collapsible/collapsible-body.d.ts +7 -0
  584. package/lib/components/collapsible/collapsible-content.d.ts +6 -0
  585. package/lib/components/collapsible/collapsible-panel.d.ts +8 -0
  586. package/lib/components/collapsible/collapsible-trigger.d.ts +14 -0
  587. package/lib/components/collapsible/collapsible.d.ts +8 -0
  588. package/lib/components/collapsible/index.d.ts +5 -0
  589. package/lib/components/date-picker/date-picker.d.ts +23 -0
  590. package/lib/components/date-picker/index.d.ts +1 -0
  591. package/lib/components/dialog/dialog-close.d.ts +11 -0
  592. package/lib/components/dialog/dialog-description.d.ts +9 -0
  593. package/lib/components/dialog/dialog-footer.d.ts +7 -0
  594. package/lib/components/dialog/dialog-header.d.ts +7 -0
  595. package/lib/components/dialog/dialog-portal.d.ts +7 -0
  596. package/lib/components/dialog/dialog-provider.d.ts +44 -0
  597. package/lib/components/dialog/dialog-title.d.ts +9 -0
  598. package/lib/components/dialog/dialog-trigger.d.ts +10 -0
  599. package/lib/components/dialog/dialog.d.ts +18 -0
  600. package/lib/components/dialog/index.d.ts +9 -0
  601. package/lib/components/drawer/drawer-close.d.ts +7 -0
  602. package/lib/components/drawer/drawer-description.d.ts +7 -0
  603. package/lib/components/drawer/drawer-footer.d.ts +7 -0
  604. package/lib/components/drawer/drawer-handle.d.ts +7 -0
  605. package/lib/components/drawer/drawer-header.d.ts +7 -0
  606. package/lib/components/drawer/drawer-portal.d.ts +7 -0
  607. package/lib/components/drawer/drawer-provider.d.ts +25 -0
  608. package/lib/components/drawer/drawer-title.d.ts +7 -0
  609. package/lib/components/drawer/drawer-trigger.d.ts +10 -0
  610. package/lib/components/drawer/drawer.d.ts +15 -0
  611. package/lib/components/drawer/index.d.ts +11 -0
  612. package/lib/components/empty/empty-body.d.ts +7 -0
  613. package/lib/components/empty/empty-description.d.ts +7 -0
  614. package/lib/components/empty/empty-header.d.ts +7 -0
  615. package/lib/components/empty/empty-media.d.ts +13 -0
  616. package/lib/components/empty/empty-title.d.ts +7 -0
  617. package/lib/components/empty/empty.d.ts +7 -0
  618. package/lib/components/empty/index.d.ts +6 -0
  619. package/lib/components/field/field-body.d.ts +7 -0
  620. package/lib/components/field/field-description.d.ts +7 -0
  621. package/lib/components/field/field-error.d.ts +7 -0
  622. package/lib/components/field/field-group.d.ts +7 -0
  623. package/lib/components/field/field-separator.d.ts +7 -0
  624. package/lib/components/field/field-title.d.ts +7 -0
  625. package/lib/components/field/field.d.ts +27 -0
  626. package/lib/components/field/fieldset.d.ts +7 -0
  627. package/lib/components/field/index.d.ts +10 -0
  628. package/lib/components/field/legend.d.ts +9 -0
  629. package/lib/components/hover-card/hover-card-portal.d.ts +7 -0
  630. package/lib/components/hover-card/hover-card-provider.d.ts +34 -0
  631. package/lib/components/hover-card/hover-card-trigger.d.ts +22 -0
  632. package/lib/components/hover-card/hover-card.d.ts +21 -0
  633. package/lib/components/hover-card/index.d.ts +5 -0
  634. package/lib/components/index.d.ts +44 -0
  635. package/lib/components/input/index.d.ts +1 -0
  636. package/lib/components/input/input.d.ts +17 -0
  637. package/lib/components/input-group/index.d.ts +4 -0
  638. package/lib/components/input-group/input-group-addon.d.ts +14 -0
  639. package/lib/components/input-group/input-group-button.d.ts +15 -0
  640. package/lib/components/input-group/input-group-text.d.ts +7 -0
  641. package/lib/components/input-group/input-group.d.ts +7 -0
  642. package/lib/components/item/index.d.ts +10 -0
  643. package/lib/components/item/item-actions.d.ts +7 -0
  644. package/lib/components/item/item-body.d.ts +7 -0
  645. package/lib/components/item/item-description.d.ts +7 -0
  646. package/lib/components/item/item-footer.d.ts +7 -0
  647. package/lib/components/item/item-group.d.ts +7 -0
  648. package/lib/components/item/item-header.d.ts +7 -0
  649. package/lib/components/item/item-media.d.ts +13 -0
  650. package/lib/components/item/item-separator.d.ts +7 -0
  651. package/lib/components/item/item-title.d.ts +7 -0
  652. package/lib/components/item/item.d.ts +15 -0
  653. package/lib/components/kbd/index.d.ts +2 -0
  654. package/lib/components/kbd/kbd-group.d.ts +7 -0
  655. package/lib/components/kbd/kbd.d.ts +7 -0
  656. package/lib/components/label/index.d.ts +1 -0
  657. package/lib/components/label/label.d.ts +10 -0
  658. package/lib/components/link/link.d.ts +3 -3
  659. package/lib/components/menu/index.d.ts +7 -0
  660. package/lib/components/menu/menu-content.d.ts +6 -0
  661. package/lib/components/menu/menu-item.d.ts +17 -0
  662. package/lib/components/menu/menu-portal.d.ts +9 -0
  663. package/lib/components/menu/menu-provider.d.ts +15 -0
  664. package/lib/components/menu/menu-separator.d.ts +7 -0
  665. package/lib/components/menu/menu-trigger.d.ts +14 -0
  666. package/lib/components/menu/menu.d.ts +12 -0
  667. package/lib/components/menu-bar/index.d.ts +2 -0
  668. package/lib/components/menu-bar/menu-bar-item.d.ts +17 -0
  669. package/lib/components/menu-bar/menu-bar.d.ts +10 -0
  670. package/lib/components/pagination/index.d.ts +10 -0
  671. package/lib/components/pagination/pagination-ellipsis.d.ts +7 -0
  672. package/lib/components/pagination/pagination-first.d.ts +15 -0
  673. package/lib/components/pagination/pagination-item.d.ts +7 -0
  674. package/lib/components/pagination/pagination-last.d.ts +15 -0
  675. package/lib/components/pagination/pagination-link.d.ts +16 -0
  676. package/lib/components/pagination/pagination-list.d.ts +7 -0
  677. package/lib/components/pagination/pagination-next.d.ts +15 -0
  678. package/lib/components/pagination/pagination-page-size-select.d.ts +14 -0
  679. package/lib/components/pagination/pagination-previous.d.ts +15 -0
  680. package/lib/components/pagination/pagination.d.ts +38 -0
  681. package/lib/components/popover/index.d.ts +9 -0
  682. package/lib/components/popover/popover-close.d.ts +9 -0
  683. package/lib/components/popover/popover-description.d.ts +7 -0
  684. package/lib/components/popover/popover-header.d.ts +7 -0
  685. package/lib/components/popover/popover-portal.d.ts +7 -0
  686. package/lib/components/popover/popover-provider.d.ts +39 -0
  687. package/lib/components/popover/popover-title.d.ts +7 -0
  688. package/lib/components/popover/popover-trigger.d.ts +13 -0
  689. package/lib/components/popover/popover.d.ts +15 -0
  690. package/lib/components/progress/index.d.ts +1 -0
  691. package/lib/components/progress/progress-indicator.d.ts +9 -0
  692. package/lib/components/progress/progress.d.ts +12 -0
  693. package/lib/components/radio-group/index.d.ts +3 -0
  694. package/lib/components/radio-group/radio-field.d.ts +10 -0
  695. package/lib/components/radio-group/radio-group.d.ts +7 -0
  696. package/lib/components/radio-group/radio.d.ts +8 -0
  697. package/lib/components/select/index.d.ts +7 -0
  698. package/lib/components/select/select-icon.d.ts +7 -0
  699. package/lib/components/select/select-input.d.ts +8 -0
  700. package/lib/components/select/select-item-indicator.d.ts +7 -0
  701. package/lib/components/select/select-item.d.ts +11 -0
  702. package/lib/components/select/select-list.d.ts +11 -0
  703. package/lib/components/select/select-portal.d.ts +7 -0
  704. package/lib/components/select/select-trigger-icon.d.ts +7 -0
  705. package/lib/components/select/select-trigger.d.ts +13 -0
  706. package/lib/components/select/select-value.d.ts +7 -0
  707. package/lib/components/select/select.d.ts +20 -0
  708. package/lib/components/separator/index.d.ts +1 -0
  709. package/lib/components/separator/separator.d.ts +10 -0
  710. package/lib/components/sheet/index.d.ts +10 -0
  711. package/lib/components/sheet/sheet-close.d.ts +11 -0
  712. package/lib/components/sheet/sheet-description.d.ts +9 -0
  713. package/lib/components/sheet/sheet-footer.d.ts +7 -0
  714. package/lib/components/sheet/sheet-header.d.ts +7 -0
  715. package/lib/components/sheet/sheet-portal.d.ts +7 -0
  716. package/lib/components/sheet/sheet-provider.d.ts +25 -0
  717. package/lib/components/sheet/sheet-title.d.ts +9 -0
  718. package/lib/components/sheet/sheet-trigger.d.ts +10 -0
  719. package/lib/components/sheet/sheet.d.ts +18 -0
  720. package/lib/components/skeleton/index.d.ts +1 -0
  721. package/lib/components/skeleton/skeleton.d.ts +7 -0
  722. package/lib/components/spinner/index.d.ts +1 -0
  723. package/lib/components/spinner/spinner.d.ts +8 -0
  724. package/lib/components/switch/index.d.ts +4 -0
  725. package/lib/components/switch/switch-field.d.ts +15 -0
  726. package/lib/components/switch/switch-types.d.ts +8 -0
  727. package/lib/components/switch/switch-visual.d.ts +9 -0
  728. package/lib/components/switch/switch.d.ts +18 -0
  729. package/lib/components/table/index.d.ts +8 -0
  730. package/lib/components/table/table-body.d.ts +7 -0
  731. package/lib/components/table/table-caption.d.ts +7 -0
  732. package/lib/components/table/table-cell.d.ts +7 -0
  733. package/lib/components/table/table-footer.d.ts +7 -0
  734. package/lib/components/table/table-header-cell.d.ts +7 -0
  735. package/lib/components/table/table-header.d.ts +7 -0
  736. package/lib/components/table/table-row.d.ts +7 -0
  737. package/lib/components/table/table.d.ts +7 -0
  738. package/lib/components/tabs/index.d.ts +5 -0
  739. package/lib/components/tabs/tab-content.d.ts +6 -0
  740. package/lib/components/tabs/tab-list.d.ts +12 -0
  741. package/lib/components/tabs/tab-panel.d.ts +8 -0
  742. package/lib/components/tabs/tab.d.ts +8 -0
  743. package/lib/components/tabs/tabs.d.ts +9 -0
  744. package/lib/components/textarea/index.d.ts +1 -0
  745. package/lib/components/textarea/textarea.d.ts +17 -0
  746. package/lib/components/toast/index.d.ts +7 -0
  747. package/lib/components/toast/toast-action.d.ts +7 -0
  748. package/lib/components/toast/toast-close.d.ts +9 -0
  749. package/lib/components/toast/toast-description.d.ts +7 -0
  750. package/lib/components/toast/toast-stack.d.ts +12 -0
  751. package/lib/components/toast/toast-title.d.ts +7 -0
  752. package/lib/components/toast/toast.d.ts +17 -0
  753. package/lib/components/toast/toast.types.d.ts +24 -0
  754. package/lib/components/toast/toaster.d.ts +50 -0
  755. package/lib/components/toggle/index.d.ts +1 -0
  756. package/lib/components/toggle/toggle.d.ts +18 -0
  757. package/lib/components/toggle-group/index.d.ts +2 -0
  758. package/lib/components/toggle-group/toggle-group-item.d.ts +16 -0
  759. package/lib/components/toggle-group/toggle-group.d.ts +16 -0
  760. package/lib/components/toolbar/index.d.ts +4 -0
  761. package/lib/components/toolbar/toolbar-separator.d.ts +9 -0
  762. package/lib/components/toolbar/toolbar-widget-group.d.ts +8 -0
  763. package/lib/components/toolbar/toolbar-widget.d.ts +10 -0
  764. package/lib/components/toolbar/toolbar.d.ts +10 -0
  765. package/lib/components/tooltip/index.d.ts +3 -0
  766. package/lib/components/tooltip/tooltip-manager.d.ts +22 -0
  767. package/lib/components/tooltip/tooltip-trigger.d.ts +35 -0
  768. package/lib/components/tooltip/tooltip.d.ts +22 -0
  769. package/package.json +9 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/textarea/textarea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;;AAYpC,MAAM,OAAO,UAAU;IACJ,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAClD,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAEhE,OAAO,GAAG,KAAK,CAAsB,SAAS,mDAAC,CAAC;IAChD,OAAO,GAAG,KAAK,CAAC,EAAE,oDAAI,KAAK,EAAE,IAAI,GAAG,CAAC;IACrC,UAAU,GAAG,KAAK,CAAS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ACvC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { _IdGenerator } from '@angular/cdk/a11y';\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n} from '@angular/core';\nimport { FormField } from '@angular/forms/signals';\nimport { cn } from '../../utils';\nimport { SC_FIELD } from '../field';\n\n@Directive({\n selector: 'textarea[scTextarea]',\n host: {\n '[attr.data-slot]': 'dataSlot()',\n '[attr.id]': 'id()',\n '[attr.aria-invalid]': 'invalid() || null',\n '[attr.disabled]': 'disabled() || null',\n '[class]': 'class()',\n },\n})\nexport class ScTextarea {\n private readonly field = inject(SC_FIELD, { optional: true });\n private readonly formField = inject(FormField, { optional: true });\n private readonly fallbackId = inject(_IdGenerator).getId('sc-textarea-');\n\n readonly variant = input<'default' | 'group'>('default');\n readonly idInput = input('', { alias: 'id' });\n readonly classInput = input<string>('', { alias: 'class' });\n readonly disabledInput = input<boolean, unknown>(false, {\n alias: 'disabled',\n transform: booleanAttribute,\n });\n\n protected readonly dataSlot = computed(() =>\n this.variant() === 'group' ? 'input-group-control' : 'textarea',\n );\n\n readonly id = computed(\n () => this.idInput() || this.field?.id() || this.fallbackId,\n );\n\n readonly invalid = computed(\n () =>\n (this.formField?.state().touched() &&\n this.formField?.state().invalid()) ??\n false,\n );\n\n readonly disabled = computed(\n () => this.formField?.state().disabled() ?? this.disabledInput(),\n );\n\n protected readonly class = computed(() =>\n cn(\n this.variant() === 'group'\n ? 'rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1 resize-none px-2.5 text-base md:text-sm outline-none placeholder:text-muted-foreground field-sizing-content min-h-16 min-w-0 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50'\n : 'border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 rounded-lg border bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:ring-3 aria-invalid:ring-3 md:text-sm placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -0,0 +1,7 @@
1
+ export { ScToast } from './toast';
2
+ export { ScToastAction } from './toast-action';
3
+ export { ScToastClose } from './toast-close';
4
+ export { ScToastDescription } from './toast-description';
5
+ export { ScToastTitle } from './toast-title';
6
+ export { ScToaster } from './toaster';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC","sourcesContent":["export { ScToast } from './toast';\nexport { ScToastAction } from './toast-action';\nexport { ScToastClose } from './toast-close';\nexport { ScToastDescription } from './toast-description';\nexport { ScToastTitle } from './toast-title';\nexport { ScToaster } from './toaster';\nexport type {\n ScToastConfig,\n ScToastData,\n ScToastPosition,\n ScToastVariant,\n} from './toast.types';\n"]}
@@ -0,0 +1,21 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScToastAction {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3', 'text-sm font-medium transition-colors', 'hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring', 'disabled:pointer-events-none disabled:opacity-50', 'group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30', 'group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground', 'group-[.destructive]:focus:ring-destructive', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastAction, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScToastAction, isStandalone: true, selector: "button[scToastAction]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toast-action", "type": "button" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastAction, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: 'button[scToastAction]',
14
+ host: {
15
+ 'data-slot': 'toast-action',
16
+ type: 'button',
17
+ '[class]': 'class()',
18
+ },
19
+ }]
20
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
21
+ //# sourceMappingURL=toast-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-action.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAUjC,MAAM,OAAO,aAAa;IACf,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,4FAA4F,EAC5F,uCAAuC,EACvC,oEAAoE,EACpE,kDAAkD,EAClD,uFAAuF,EACvF,kGAAkG,EAClG,6CAA6C,EAC7C,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAdS,aAAa;2FAAb,aAAa;;2FAAb,aAAa;kBARzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,IAAI,EAAE;wBACJ,WAAW,EAAE,cAAc;wBAC3B,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'button[scToastAction]',\n host: {\n 'data-slot': 'toast-action',\n type: 'button',\n '[class]': 'class()',\n },\n})\nexport class ScToastAction {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3',\n 'text-sm font-medium transition-colors',\n 'hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring',\n 'disabled:pointer-events-none disabled:opacity-50',\n 'group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30',\n 'group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground',\n 'group-[.destructive]:focus:ring-destructive',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -0,0 +1,25 @@
1
+ import { computed, Directive, input, output } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScToastClose {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ /** Emitted when close button is clicked */
7
+ close = output();
8
+ class = computed(() => cn('absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity', 'hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100', 'group-[.destructive]:text-red-800/50 group-[.destructive]:hover:text-red-800', 'group-[.destructive]:focus:ring-red-400', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScToastClose, isStandalone: true, selector: "button[scToastClose]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close" }, host: { attributes: { "data-slot": "toast-close", "type": "button", "aria-label": "Close" }, listeners: { "click": "close.emit()" }, properties: { "class": "class()" } }, ngImport: i0 });
11
+ }
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastClose, decorators: [{
13
+ type: Directive,
14
+ args: [{
15
+ selector: 'button[scToastClose]',
16
+ host: {
17
+ 'data-slot': 'toast-close',
18
+ type: 'button',
19
+ '[class]': 'class()',
20
+ 'aria-label': 'Close',
21
+ '(click)': 'close.emit()',
22
+ },
23
+ }]
24
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], close: [{ type: i0.Output, args: ["close"] }] } });
25
+ //# sourceMappingURL=toast-close.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-close.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-close.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAYjC,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE5D,2CAA2C;IAClC,KAAK,GAAG,MAAM,EAAQ,CAAC;IAEb,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,uFAAuF,EACvF,iGAAiG,EACjG,8EAA8E,EAC9E,yCAAyC,EACzC,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAdS,YAAY;2FAAZ,YAAY;;2FAAZ,YAAY;kBAVxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,SAAS;wBACpB,YAAY,EAAE,OAAO;wBACrB,SAAS,EAAE,cAAc;qBAC1B;iBACF","sourcesContent":["import { computed, Directive, input, output } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'button[scToastClose]',\n host: {\n 'data-slot': 'toast-close',\n type: 'button',\n '[class]': 'class()',\n 'aria-label': 'Close',\n '(click)': 'close.emit()',\n },\n})\nexport class ScToastClose {\n readonly classInput = input<string>('', { alias: 'class' });\n\n /** Emitted when close button is clicked */\n readonly close = output<void>();\n\n protected readonly class = computed(() =>\n cn(\n 'absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity',\n 'hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100',\n 'group-[.destructive]:text-red-800/50 group-[.destructive]:hover:text-red-800',\n 'group-[.destructive]:focus:ring-red-400',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScToastDescription {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('text-sm opacity-90', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScToastDescription, isStandalone: true, selector: "[scToastDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toast-description" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastDescription, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[scToastDescription]',
14
+ host: {
15
+ 'data-slot': 'toast-description',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=toast-description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-description.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,kBAAkB;IACpB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,oBAAoB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC5C,CAAC;uGALS,kBAAkB;2FAAlB,kBAAkB;;2FAAlB,kBAAkB;kBAP9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,mBAAmB;wBAChC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scToastDescription]',\n host: {\n 'data-slot': 'toast-description',\n '[class]': 'class()',\n },\n})\nexport class ScToastDescription {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('text-sm opacity-90', this.classInput()),\n );\n}\n"]}
@@ -0,0 +1,182 @@
1
+ import { ChangeDetectionStrategy, Component, computed, inject, ViewEncapsulation, } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import { SiCircleCheckIcon, SiInfoIcon, SiLoaderCircleIcon, SiOctagonXIcon, SiTriangleAlertIcon, SiXIcon, } from '@semantic-icons/lucide-icons';
4
+ import { ScToast } from './toast';
5
+ import { ScToastAction } from './toast-action';
6
+ import { ScToastClose } from './toast-close';
7
+ import { ScToastDescription } from './toast-description';
8
+ import { ScToastTitle } from './toast-title';
9
+ import { ScToaster } from './toaster';
10
+ import * as i0 from "@angular/core";
11
+ export class ScToastStack {
12
+ toastService = inject(ScToaster);
13
+ positionClasses = {
14
+ 'top-left': 'fixed top-0 left-0 flex-col-reverse',
15
+ 'top-center': 'fixed top-0 left-1/2 -translate-x-1/2 flex-col-reverse',
16
+ 'top-right': 'fixed top-0 right-0 flex-col-reverse',
17
+ 'bottom-left': 'fixed bottom-0 left-0 flex-col',
18
+ 'bottom-center': 'fixed bottom-0 left-1/2 -translate-x-1/2 flex-col',
19
+ 'bottom-right': 'fixed bottom-0 right-0 flex-col',
20
+ };
21
+ class = computed(() => cn('z-100 flex max-h-screen w-full gap-2 p-4 md:max-w-[420px]', this.positionClasses[this.toastService.position()]), ...(ngDevMode ? [{ debugName: "class" }] : []));
22
+ dismiss(id) {
23
+ this.toastService.dismiss(id);
24
+ }
25
+ onAction(id, onClick) {
26
+ onClick();
27
+ this.toastService.dismiss(id);
28
+ }
29
+ onAnimationEnd(event, id) {
30
+ if (event.target !== event.currentTarget)
31
+ return;
32
+ const toast = this.toastService.toasts().find((t) => t.id === id);
33
+ if (toast?.state === 'closed') {
34
+ this.toastService.remove(id);
35
+ }
36
+ }
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastStack, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScToastStack, isStandalone: true, selector: "sc-toast-stack", host: { attributes: { "data-slot": "toast-stack" }, properties: { "class": "class()" } }, ngImport: i0, template: `
39
+ @for (toast of toastService.toasts(); track toast.id) {
40
+ <div
41
+ scToast
42
+ [variant]="toast.variant ?? 'default'"
43
+ [position]="toastService.position()"
44
+ [attr.data-state]="toast.state ?? 'open'"
45
+ (animationend)="onAnimationEnd($event, toast.id)"
46
+ (pointerEnter)="toastService.pause(toast.id)"
47
+ (pointerLeave)="toastService.resume(toast.id)"
48
+ >
49
+ @switch (toast.variant) {
50
+ @case ('success') {
51
+ <svg
52
+ siCircleCheckIcon
53
+ class="size-4 shrink-0 text-green-600 dark:text-green-400"
54
+ ></svg>
55
+ }
56
+ @case ('info') {
57
+ <svg
58
+ siInfoIcon
59
+ class="size-4 shrink-0 text-blue-600 dark:text-blue-400"
60
+ ></svg>
61
+ }
62
+ @case ('warning') {
63
+ <svg
64
+ siTriangleAlertIcon
65
+ class="size-4 shrink-0 text-yellow-600 dark:text-yellow-400"
66
+ ></svg>
67
+ }
68
+ @case ('error') {
69
+ <svg siOctagonXIcon class="size-4 shrink-0"></svg>
70
+ }
71
+ @case ('loading') {
72
+ <svg siLoaderCircleIcon class="size-4 shrink-0 animate-spin"></svg>
73
+ }
74
+ }
75
+ <div class="grid gap-1">
76
+ @if (toast.title) {
77
+ <div scToastTitle>{{ toast.title }}</div>
78
+ }
79
+ @if (toast.description) {
80
+ <div scToastDescription>{{ toast.description }}</div>
81
+ }
82
+ </div>
83
+ @if (toast.action) {
84
+ <button
85
+ scToastAction
86
+ (click)="onAction(toast.id, toast.action.onClick)"
87
+ >
88
+ {{ toast.action.label }}
89
+ </button>
90
+ }
91
+ <button scToastClose (close)="dismiss(toast.id)">
92
+ <svg siXIcon class="size-4"></svg>
93
+ </button>
94
+ </div>
95
+ }
96
+ `, isInline: true, dependencies: [{ kind: "component", type: SiXIcon, selector: "svg[siXIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: SiCircleCheckIcon, selector: "svg[siCircleCheckIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: SiInfoIcon, selector: "svg[siInfoIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: SiLoaderCircleIcon, selector: "svg[siLoaderCircleIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: SiOctagonXIcon, selector: "svg[siOctagonXIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: SiTriangleAlertIcon, selector: "svg[siTriangleAlertIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: ScToast, selector: "div[scToast]", inputs: ["class", "variant", "position"], outputs: ["pointerEnter", "pointerLeave"] }, { kind: "directive", type: ScToastTitle, selector: "[scToastTitle]", inputs: ["class"] }, { kind: "directive", type: ScToastDescription, selector: "[scToastDescription]", inputs: ["class"] }, { kind: "directive", type: ScToastClose, selector: "button[scToastClose]", inputs: ["class"], outputs: ["close"] }, { kind: "directive", type: ScToastAction, selector: "button[scToastAction]", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
97
+ }
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastStack, decorators: [{
99
+ type: Component,
100
+ args: [{
101
+ selector: 'sc-toast-stack',
102
+ imports: [
103
+ SiXIcon,
104
+ SiCircleCheckIcon,
105
+ SiInfoIcon,
106
+ SiLoaderCircleIcon,
107
+ SiOctagonXIcon,
108
+ SiTriangleAlertIcon,
109
+ ScToast,
110
+ ScToastTitle,
111
+ ScToastDescription,
112
+ ScToastClose,
113
+ ScToastAction,
114
+ ],
115
+ template: `
116
+ @for (toast of toastService.toasts(); track toast.id) {
117
+ <div
118
+ scToast
119
+ [variant]="toast.variant ?? 'default'"
120
+ [position]="toastService.position()"
121
+ [attr.data-state]="toast.state ?? 'open'"
122
+ (animationend)="onAnimationEnd($event, toast.id)"
123
+ (pointerEnter)="toastService.pause(toast.id)"
124
+ (pointerLeave)="toastService.resume(toast.id)"
125
+ >
126
+ @switch (toast.variant) {
127
+ @case ('success') {
128
+ <svg
129
+ siCircleCheckIcon
130
+ class="size-4 shrink-0 text-green-600 dark:text-green-400"
131
+ ></svg>
132
+ }
133
+ @case ('info') {
134
+ <svg
135
+ siInfoIcon
136
+ class="size-4 shrink-0 text-blue-600 dark:text-blue-400"
137
+ ></svg>
138
+ }
139
+ @case ('warning') {
140
+ <svg
141
+ siTriangleAlertIcon
142
+ class="size-4 shrink-0 text-yellow-600 dark:text-yellow-400"
143
+ ></svg>
144
+ }
145
+ @case ('error') {
146
+ <svg siOctagonXIcon class="size-4 shrink-0"></svg>
147
+ }
148
+ @case ('loading') {
149
+ <svg siLoaderCircleIcon class="size-4 shrink-0 animate-spin"></svg>
150
+ }
151
+ }
152
+ <div class="grid gap-1">
153
+ @if (toast.title) {
154
+ <div scToastTitle>{{ toast.title }}</div>
155
+ }
156
+ @if (toast.description) {
157
+ <div scToastDescription>{{ toast.description }}</div>
158
+ }
159
+ </div>
160
+ @if (toast.action) {
161
+ <button
162
+ scToastAction
163
+ (click)="onAction(toast.id, toast.action.onClick)"
164
+ >
165
+ {{ toast.action.label }}
166
+ </button>
167
+ }
168
+ <button scToastClose (close)="dismiss(toast.id)">
169
+ <svg siXIcon class="size-4"></svg>
170
+ </button>
171
+ </div>
172
+ }
173
+ `,
174
+ host: {
175
+ 'data-slot': 'toast-stack',
176
+ '[class]': 'class()',
177
+ },
178
+ encapsulation: ViewEncapsulation.None,
179
+ changeDetection: ChangeDetectionStrategy.OnPush,
180
+ }]
181
+ }] });
182
+ //# sourceMappingURL=toast-stack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-stack.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-stack.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,OAAO,GACR,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;;AAmFtC,MAAM,OAAO,YAAY;IACJ,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAEnC,eAAe,GAAoC;QAClE,UAAU,EAAE,qCAAqC;QACjD,YAAY,EAAE,wDAAwD;QACtE,WAAW,EAAE,sCAAsC;QACnD,aAAa,EAAE,gCAAgC;QAC/C,eAAe,EAAE,mDAAmD;QACpE,cAAc,EAAE,iCAAiC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mB;wBACnB,OAAO;wBACP,YAAY;wBACZ,kBAAkB;wBAClB,YAAY;wBACZ,aAAa;qBACd;oBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScToastPosition } from './toast.types';\nimport {\n SiCircleCheckIcon,\n SiInfoIcon,\n SiLoaderCircleIcon,\n SiOctagonXIcon,\n SiTriangleAlertIcon,\n SiXIcon,\n} from '@semantic-icons/lucide-icons';\nimport { ScToast } from './toast';\nimport { ScToastAction } from './toast-action';\nimport { ScToastClose } from './toast-close';\nimport { ScToastDescription } from './toast-description';\nimport { ScToastTitle } from './toast-title';\nimport { ScToaster } from './toaster';\n\n@Component({\n selector: 'sc-toast-stack',\n imports: [\n SiXIcon,\n SiCircleCheckIcon,\n SiInfoIcon,\n SiLoaderCircleIcon,\n SiOctagonXIcon,\n SiTriangleAlertIcon,\n ScToast,\n ScToastTitle,\n ScToastDescription,\n ScToastClose,\n ScToastAction,\n ],\n template: `\n @for (toast of toastService.toasts(); track toast.id) {\n <div\n scToast\n [variant]=\"toast.variant ?? 'default'\"\n [position]=\"toastService.position()\"\n [attr.data-state]=\"toast.state ?? 'open'\"\n (animationend)=\"onAnimationEnd($event, toast.id)\"\n (pointerEnter)=\"toastService.pause(toast.id)\"\n (pointerLeave)=\"toastService.resume(toast.id)\"\n >\n @switch (toast.variant) {\n @case ('success') {\n <svg\n siCircleCheckIcon\n class=\"size-4 shrink-0 text-green-600 dark:text-green-400\"\n ></svg>\n }\n @case ('info') {\n <svg\n siInfoIcon\n class=\"size-4 shrink-0 text-blue-600 dark:text-blue-400\"\n ></svg>\n }\n @case ('warning') {\n <svg\n siTriangleAlertIcon\n class=\"size-4 shrink-0 text-yellow-600 dark:text-yellow-400\"\n ></svg>\n }\n @case ('error') {\n <svg siOctagonXIcon class=\"size-4 shrink-0\"></svg>\n }\n @case ('loading') {\n <svg siLoaderCircleIcon class=\"size-4 shrink-0 animate-spin\"></svg>\n }\n }\n <div class=\"grid gap-1\">\n @if (toast.title) {\n <div scToastTitle>{{ toast.title }}</div>\n }\n @if (toast.description) {\n <div scToastDescription>{{ toast.description }}</div>\n }\n </div>\n @if (toast.action) {\n <button\n scToastAction\n (click)=\"onAction(toast.id, toast.action.onClick)\"\n >\n {{ toast.action.label }}\n </button>\n }\n <button scToastClose (close)=\"dismiss(toast.id)\">\n <svg siXIcon class=\"size-4\"></svg>\n </button>\n </div>\n }\n `,\n host: {\n 'data-slot': 'toast-stack',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScToastStack {\n protected readonly toastService = inject(ScToaster);\n\n private readonly positionClasses: Record<ScToastPosition, string> = {\n 'top-left': 'fixed top-0 left-0 flex-col-reverse',\n 'top-center': 'fixed top-0 left-1/2 -translate-x-1/2 flex-col-reverse',\n 'top-right': 'fixed top-0 right-0 flex-col-reverse',\n 'bottom-left': 'fixed bottom-0 left-0 flex-col',\n 'bottom-center': 'fixed bottom-0 left-1/2 -translate-x-1/2 flex-col',\n 'bottom-right': 'fixed bottom-0 right-0 flex-col',\n };\n\n protected readonly class = computed(() =>\n cn(\n 'z-100 flex max-h-screen w-full gap-2 p-4 md:max-w-[420px]',\n this.positionClasses[this.toastService.position()],\n ),\n );\n\n protected dismiss(id: string): void {\n this.toastService.dismiss(id);\n }\n\n protected onAction(id: string, onClick: () => void): void {\n onClick();\n this.toastService.dismiss(id);\n }\n\n protected onAnimationEnd(event: AnimationEvent, id: string): void {\n if (event.target !== event.currentTarget) return;\n\n const toast = this.toastService.toasts().find((t) => t.id === id);\n if (toast?.state === 'closed') {\n this.toastService.remove(id);\n }\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScToastTitle {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('text-sm font-semibold', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScToastTitle, isStandalone: true, selector: "[scToastTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toast-title" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastTitle, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[scToastTitle]',
14
+ host: {
15
+ 'data-slot': 'toast-title',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=toast-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-title.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-title.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,uBAAuB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC/C,CAAC;uGALS,YAAY;2FAAZ,YAAY;;2FAAZ,YAAY;kBAPxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scToastTitle]',\n host: {\n 'data-slot': 'toast-title',\n '[class]': 'class()',\n },\n})\nexport class ScToastTitle {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('text-sm font-semibold', this.classInput()),\n );\n}\n"]}
@@ -0,0 +1,58 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input, output, ViewEncapsulation, } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScToast {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : []));
7
+ position = input('bottom-right', ...(ngDevMode ? [{ debugName: "position" }] : []));
8
+ /** Emitted when pointer enters the toast (pause auto-dismiss) */
9
+ pointerEnter = output();
10
+ /** Emitted when pointer leaves the toast (resume auto-dismiss) */
11
+ pointerLeave = output();
12
+ class = computed(() => cn('group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all', 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full', this.position().startsWith('bottom')
13
+ ? 'data-[state=open]:slide-in-from-bottom-full'
14
+ : 'data-[state=open]:slide-in-from-top-full', this.variantClass(), this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
15
+ variantClass = computed(() => {
16
+ const variantClasses = {
17
+ default: 'border-border bg-card text-card-foreground shadow-lg',
18
+ destructive: 'destructive border-red-200 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-950 dark:text-red-200',
19
+ success: 'border-green-200 bg-green-50 text-green-800 dark:border-green-800 dark:bg-green-950 dark:text-green-200',
20
+ info: 'border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200',
21
+ warning: 'border-yellow-200 bg-yellow-50 text-yellow-800 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-200',
22
+ error: 'destructive border-red-200 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-950 dark:text-red-200',
23
+ loading: 'border-border bg-card text-card-foreground shadow-lg',
24
+ };
25
+ return variantClasses[this.variant()];
26
+ }, ...(ngDevMode ? [{ debugName: "variantClass" }] : []));
27
+ onPointerEnter() {
28
+ this.pointerEnter.emit();
29
+ }
30
+ onPointerLeave() {
31
+ this.pointerLeave.emit();
32
+ }
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScToast, isStandalone: true, selector: "div[scToast]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointerEnter: "pointerEnter", pointerLeave: "pointerLeave" }, host: { attributes: { "data-slot": "toast", "role": "status", "aria-live": "polite", "aria-atomic": "true" }, listeners: { "pointerenter": "onPointerEnter()", "pointerleave": "onPointerLeave()" }, properties: { "class": "class()" } }, ngImport: i0, template: `
35
+ <ng-content />
36
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToast, decorators: [{
39
+ type: Component,
40
+ args: [{
41
+ selector: 'div[scToast]',
42
+ template: `
43
+ <ng-content />
44
+ `,
45
+ host: {
46
+ 'data-slot': 'toast',
47
+ role: 'status',
48
+ 'aria-live': 'polite',
49
+ 'aria-atomic': 'true',
50
+ '[class]': 'class()',
51
+ '(pointerenter)': 'onPointerEnter()',
52
+ '(pointerleave)': 'onPointerLeave()',
53
+ },
54
+ encapsulation: ViewEncapsulation.None,
55
+ changeDetection: ChangeDetectionStrategy.OnPush,
56
+ }]
57
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], pointerEnter: [{ type: i0.Output, args: ["pointerEnter"] }], pointerLeave: [{ type: i0.Output, args: ["pointerLeave"] }] } });
58
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAoBjC,MAAM,OAAO,OAAO;IACT,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,OAAO,GAAG,KAAK,CAAiB,SAAS,mDAAC,CAAC;IAC3C,QAAQ,GAAG,KAAK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AgB,EAAE,kBAAkB;qBACrC;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScToastPosition, ScToastVariant } from './toast.types';\n\n@Component({\n selector: 'div[scToast]',\n template: `\n <ng-content />\n `,\n host: {\n 'data-slot': 'toast',\n role: 'status',\n 'aria-live': 'polite',\n 'aria-atomic': 'true',\n '[class]': 'class()',\n '(pointerenter)': 'onPointerEnter()',\n '(pointerleave)': 'onPointerLeave()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScToast {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly variant = input<ScToastVariant>('default');\n readonly position = input<ScToastPosition>('bottom-right');\n\n /** Emitted when pointer enters the toast (pause auto-dismiss) */\n readonly pointerEnter = output<void>();\n\n /** Emitted when pointer leaves the toast (resume auto-dismiss) */\n readonly pointerLeave = output<void>();\n\n protected readonly class = computed(() =>\n cn(\n 'group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full',\n this.position().startsWith('bottom')\n ? 'data-[state=open]:slide-in-from-bottom-full'\n : 'data-[state=open]:slide-in-from-top-full',\n this.variantClass(),\n this.classInput(),\n ),\n );\n\n private readonly variantClass = computed(() => {\n const variantClasses: Record<ScToastVariant, string> = {\n default: 'border-border bg-card text-card-foreground shadow-lg',\n destructive:\n 'destructive border-red-200 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-950 dark:text-red-200',\n success:\n 'border-green-200 bg-green-50 text-green-800 dark:border-green-800 dark:bg-green-950 dark:text-green-200',\n info: 'border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200',\n warning:\n 'border-yellow-200 bg-yellow-50 text-yellow-800 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-200',\n error:\n 'destructive border-red-200 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-950 dark:text-red-200',\n loading: 'border-border bg-card text-card-foreground shadow-lg',\n };\n return variantClasses[this.variant()];\n });\n\n protected onPointerEnter(): void {\n this.pointerEnter.emit();\n }\n\n protected onPointerLeave(): void {\n this.pointerLeave.emit();\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=toast.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.types.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast.types.ts"],"names":[],"mappings":"","sourcesContent":["export type ScToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right';\n\nexport type ScToastVariant =\n | 'default'\n | 'destructive'\n | 'success'\n | 'info'\n | 'warning'\n | 'error'\n | 'loading';\n\nexport interface ScToastData {\n id: string;\n title?: string;\n description?: string;\n variant?: ScToastVariant;\n action?: {\n label: string;\n onClick: () => void;\n };\n duration?: number;\n state?: 'open' | 'closed';\n}\n\nexport interface ScToastConfig {\n title?: string;\n description?: string;\n variant?: ScToastVariant;\n action?: {\n label: string;\n onClick: () => void;\n };\n duration?: number;\n}\n"]}
@@ -0,0 +1,149 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { ComponentPortal } from '@angular/cdk/portal';
3
+ import { inject, Injectable, signal } from '@angular/core';
4
+ import { _IdGenerator } from '@angular/cdk/a11y';
5
+ import { ScToastStack } from './toast-stack';
6
+ import * as i0 from "@angular/core";
7
+ export class ScToaster {
8
+ toastsSignal = signal([], ...(ngDevMode ? [{ debugName: "toastsSignal" }] : []));
9
+ toasts = this.toastsSignal.asReadonly();
10
+ positionSignal = signal('bottom-right', ...(ngDevMode ? [{ debugName: "positionSignal" }] : []));
11
+ position = this.positionSignal.asReadonly();
12
+ defaultDuration = 5000;
13
+ maxToasts = 5;
14
+ timeouts = new Map();
15
+ timerStartTimes = new Map();
16
+ timerRemaining = new Map();
17
+ idGenerator = inject(_IdGenerator);
18
+ overlay = inject(Overlay);
19
+ overlayRef = null;
20
+ /**
21
+ * Show a new toast notification
22
+ */
23
+ setPosition(position) {
24
+ this.positionSignal.set(position);
25
+ }
26
+ show(config) {
27
+ this.ensureOverlay();
28
+ const id = this.idGenerator.getId('sc-toast-');
29
+ const toast = {
30
+ id,
31
+ title: config.title,
32
+ description: config.description,
33
+ variant: config.variant ?? 'default',
34
+ action: config.action,
35
+ duration: config.duration ?? this.defaultDuration,
36
+ };
37
+ // Dismiss the oldest toast if the limit is exceeded
38
+ const current = this.toastsSignal();
39
+ if (current.length >= this.maxToasts) {
40
+ const oldest = current.find((t) => t.state !== 'closed');
41
+ if (oldest)
42
+ this.dismiss(oldest.id);
43
+ }
44
+ this.toastsSignal.update((toasts) => [...toasts, toast]);
45
+ // Auto-dismiss after duration (if duration > 0)
46
+ if (toast.duration && toast.duration > 0) {
47
+ this.startTimer(id, toast.duration);
48
+ }
49
+ return id;
50
+ }
51
+ /**
52
+ * Pause the auto-dismiss timer for a toast (e.g. on pointer hover).
53
+ */
54
+ pause(id) {
55
+ const timeout = this.timeouts.get(id);
56
+ if (!timeout)
57
+ return;
58
+ clearTimeout(timeout);
59
+ this.timeouts.delete(id);
60
+ const startTime = this.timerStartTimes.get(id);
61
+ if (startTime !== undefined) {
62
+ const elapsed = Date.now() - startTime;
63
+ const remaining = (this.timerRemaining.get(id) ?? 0) - elapsed;
64
+ this.timerRemaining.set(id, Math.max(0, remaining));
65
+ }
66
+ }
67
+ /**
68
+ * Resume the auto-dismiss timer for a toast (e.g. on pointer leave).
69
+ */
70
+ resume(id) {
71
+ const remaining = this.timerRemaining.get(id);
72
+ if (remaining === undefined || remaining <= 0)
73
+ return;
74
+ this.startTimer(id, remaining);
75
+ }
76
+ startTimer(id, duration) {
77
+ this.timerRemaining.set(id, duration);
78
+ this.timerStartTimes.set(id, Date.now());
79
+ const timeout = setTimeout(() => this.dismiss(id), duration);
80
+ this.timeouts.set(id, timeout);
81
+ }
82
+ success(config) {
83
+ return this.show({ ...config, variant: 'success' });
84
+ }
85
+ info(config) {
86
+ return this.show({ ...config, variant: 'info' });
87
+ }
88
+ warning(config) {
89
+ return this.show({ ...config, variant: 'warning' });
90
+ }
91
+ error(config) {
92
+ return this.show({ ...config, variant: 'error' });
93
+ }
94
+ loading(config) {
95
+ return this.show({ ...config, variant: 'loading' });
96
+ }
97
+ /**
98
+ * Dismiss a specific toast by ID
99
+ */
100
+ dismiss(id) {
101
+ // Clear auto-dismiss timeout and timer tracking
102
+ const timeout = this.timeouts.get(id);
103
+ if (timeout) {
104
+ clearTimeout(timeout);
105
+ this.timeouts.delete(id);
106
+ }
107
+ this.timerStartTimes.delete(id);
108
+ this.timerRemaining.delete(id);
109
+ // Set state to 'closed' to trigger exit animation.
110
+ // Actual removal happens in toast-stack via (animationend).
111
+ this.toastsSignal.update((toasts) => toasts.map((t) => (t.id === id ? { ...t, state: 'closed' } : t)));
112
+ }
113
+ /**
114
+ * Called by toast-stack after the exit animation completes.
115
+ */
116
+ remove(id) {
117
+ this.toastsSignal.update((toasts) => toasts.filter((t) => t.id !== id));
118
+ }
119
+ /**
120
+ * Dismiss all toasts
121
+ */
122
+ dismissAll() {
123
+ this.timeouts.forEach((timeout) => clearTimeout(timeout));
124
+ this.timeouts.clear();
125
+ this.timerStartTimes.clear();
126
+ this.timerRemaining.clear();
127
+ this.toastsSignal.update((toasts) => toasts.map((t) => ({ ...t, state: 'closed' })));
128
+ }
129
+ ensureOverlay() {
130
+ if (this.overlayRef) {
131
+ return;
132
+ }
133
+ this.overlayRef = this.overlay.create({
134
+ positionStrategy: this.overlay.position().global(),
135
+ hasBackdrop: false,
136
+ });
137
+ const portal = new ComponentPortal(ScToastStack);
138
+ this.overlayRef.attach(portal);
139
+ }
140
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToaster, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
141
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToaster, providedIn: 'root' });
142
+ }
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToaster, decorators: [{
144
+ type: Injectable,
145
+ args: [{
146
+ providedIn: 'root',
147
+ }]
148
+ }] });
149
+ //# sourceMappingURL=toaster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toaster.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toaster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAc,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;AAK7C,MAAM,OAAO,SAAS;IACH,YAAY,GAAG,MAAM,CAAgB,EAAE,wDAAC,CAAC;IACjD,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;IAEhC,cAAc,GAAG,MAAM,CAAkB,cAAc,0DAAC,CAAC;IACjE,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;IAEpC,eAAe,GAAG,IAAI,CAAC;IACvB,SAAS,GAAG,CAAC,CAAC;IACd,QAAQ,GAAG,IAAI,GAAG,EAAyC,CAAC;IAC5D,eAAe,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC5C,cAAc,GAAG,IAAI,GA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,CAAC;YACpC,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE;YAClD,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,YAAY,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;uGAnKU,SAAS;2GAAT,SAAS,cAFR,MAAM;;2FAEP,SAAS;kBAHrB,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { inject, Injectable, signal } from '@angular/core';\nimport { _IdGenerator } from '@angular/cdk/a11y';\nimport { ScToastConfig, ScToastData, ScToastPosition } from './toast.types';\nimport { ScToastStack } from './toast-stack';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ScToaster {\n private readonly toastsSignal = signal<ScToastData[]>([]);\n readonly toasts = this.toastsSignal.asReadonly();\n\n private readonly positionSignal = signal<ScToastPosition>('bottom-right');\n readonly position = this.positionSignal.asReadonly();\n\n private readonly defaultDuration = 5000;\n private readonly maxToasts = 5;\n private readonly timeouts = new Map<string, ReturnType<typeof setTimeout>>();\n private readonly timerStartTimes = new Map<string, number>();\n private readonly timerRemaining = new Map<string, number>();\n\n private readonly idGenerator = inject(_IdGenerator);\n private readonly overlay = inject(Overlay);\n\n private overlayRef: OverlayRef | null = null;\n\n /**\n * Show a new toast notification\n */\n setPosition(position: ScToastPosition): void {\n this.positionSignal.set(position);\n }\n\n show(config: ScToastConfig): string {\n this.ensureOverlay();\n\n const id = this.idGenerator.getId('sc-toast-');\n\n const toast: ScToastData = {\n id,\n title: config.title,\n description: config.description,\n variant: config.variant ?? 'default',\n action: config.action,\n duration: config.duration ?? this.defaultDuration,\n };\n\n // Dismiss the oldest toast if the limit is exceeded\n const current = this.toastsSignal();\n if (current.length >= this.maxToasts) {\n const oldest = current.find((t) => t.state !== 'closed');\n if (oldest) this.dismiss(oldest.id);\n }\n\n this.toastsSignal.update((toasts) => [...toasts, toast]);\n\n // Auto-dismiss after duration (if duration > 0)\n if (toast.duration && toast.duration > 0) {\n this.startTimer(id, toast.duration);\n }\n\n return id;\n }\n\n /**\n * Pause the auto-dismiss timer for a toast (e.g. on pointer hover).\n */\n pause(id: string): void {\n const timeout = this.timeouts.get(id);\n if (!timeout) return;\n\n clearTimeout(timeout);\n this.timeouts.delete(id);\n\n const startTime = this.timerStartTimes.get(id);\n if (startTime !== undefined) {\n const elapsed = Date.now() - startTime;\n const remaining = (this.timerRemaining.get(id) ?? 0) - elapsed;\n this.timerRemaining.set(id, Math.max(0, remaining));\n }\n }\n\n /**\n * Resume the auto-dismiss timer for a toast (e.g. on pointer leave).\n */\n resume(id: string): void {\n const remaining = this.timerRemaining.get(id);\n if (remaining === undefined || remaining <= 0) return;\n\n this.startTimer(id, remaining);\n }\n\n private startTimer(id: string, duration: number): void {\n this.timerRemaining.set(id, duration);\n this.timerStartTimes.set(id, Date.now());\n const timeout = setTimeout(() => this.dismiss(id), duration);\n this.timeouts.set(id, timeout);\n }\n\n success(config: Omit<ScToastConfig, 'variant'>): string {\n return this.show({ ...config, variant: 'success' });\n }\n\n info(config: Omit<ScToastConfig, 'variant'>): string {\n return this.show({ ...config, variant: 'info' });\n }\n\n warning(config: Omit<ScToastConfig, 'variant'>): string {\n return this.show({ ...config, variant: 'warning' });\n }\n\n error(config: Omit<ScToastConfig, 'variant'>): string {\n return this.show({ ...config, variant: 'error' });\n }\n\n loading(config: Omit<ScToastConfig, 'variant'>): string {\n return this.show({ ...config, variant: 'loading' });\n }\n\n /**\n * Dismiss a specific toast by ID\n */\n dismiss(id: string): void {\n // Clear auto-dismiss timeout and timer tracking\n const timeout = this.timeouts.get(id);\n if (timeout) {\n clearTimeout(timeout);\n this.timeouts.delete(id);\n }\n this.timerStartTimes.delete(id);\n this.timerRemaining.delete(id);\n\n // Set state to 'closed' to trigger exit animation.\n // Actual removal happens in toast-stack via (animationend).\n this.toastsSignal.update((toasts) =>\n toasts.map((t) => (t.id === id ? { ...t, state: 'closed' as const } : t)),\n );\n }\n\n /**\n * Called by toast-stack after the exit animation completes.\n */\n remove(id: string): void {\n this.toastsSignal.update((toasts) => toasts.filter((t) => t.id !== id));\n }\n\n /**\n * Dismiss all toasts\n */\n dismissAll(): void {\n this.timeouts.forEach((timeout) => clearTimeout(timeout));\n this.timeouts.clear();\n this.timerStartTimes.clear();\n this.timerRemaining.clear();\n this.toastsSignal.update((toasts) =>\n toasts.map((t) => ({ ...t, state: 'closed' as const })),\n );\n }\n\n private ensureOverlay(): void {\n if (this.overlayRef) {\n return;\n }\n\n this.overlayRef = this.overlay.create({\n positionStrategy: this.overlay.position().global(),\n hasBackdrop: false,\n });\n\n const portal = new ComponentPortal(ScToastStack);\n this.overlayRef.attach(portal);\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './toggle';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toggle/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC","sourcesContent":["export * from './toggle';\n"]}