@semantic-components/ui 0.65.0 → 0.67.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 (910) 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/file-upload/file-upload-dropzone.js +91 -0
  234. package/esm2022/lib/components/file-upload/file-upload-dropzone.js.map +1 -0
  235. package/esm2022/lib/components/file-upload/file-upload-item-delete.js +29 -0
  236. package/esm2022/lib/components/file-upload/file-upload-item-delete.js.map +1 -0
  237. package/esm2022/lib/components/file-upload/file-upload-item-name.js +20 -0
  238. package/esm2022/lib/components/file-upload/file-upload-item-name.js.map +1 -0
  239. package/esm2022/lib/components/file-upload/file-upload-item-preview.js +51 -0
  240. package/esm2022/lib/components/file-upload/file-upload-item-preview.js.map +1 -0
  241. package/esm2022/lib/components/file-upload/file-upload-item-progress.js +34 -0
  242. package/esm2022/lib/components/file-upload/file-upload-item-progress.js.map +1 -0
  243. package/esm2022/lib/components/file-upload/file-upload-item-size.js +37 -0
  244. package/esm2022/lib/components/file-upload/file-upload-item-size.js.map +1 -0
  245. package/esm2022/lib/components/file-upload/file-upload-item.js +29 -0
  246. package/esm2022/lib/components/file-upload/file-upload-item.js.map +1 -0
  247. package/esm2022/lib/components/file-upload/file-upload-list.js +20 -0
  248. package/esm2022/lib/components/file-upload/file-upload-list.js.map +1 -0
  249. package/esm2022/lib/components/file-upload/file-upload-trigger.js +66 -0
  250. package/esm2022/lib/components/file-upload/file-upload-trigger.js.map +1 -0
  251. package/esm2022/lib/components/file-upload/file-upload.js +118 -0
  252. package/esm2022/lib/components/file-upload/file-upload.js.map +1 -0
  253. package/esm2022/lib/components/file-upload/index.js +11 -0
  254. package/esm2022/lib/components/file-upload/index.js.map +1 -0
  255. package/esm2022/lib/components/hover-card/hover-card-portal.js +14 -0
  256. package/esm2022/lib/components/hover-card/hover-card-portal.js.map +1 -0
  257. package/esm2022/lib/components/hover-card/hover-card-provider.js +185 -0
  258. package/esm2022/lib/components/hover-card/hover-card-provider.js.map +1 -0
  259. package/esm2022/lib/components/hover-card/hover-card-trigger.js +72 -0
  260. package/esm2022/lib/components/hover-card/hover-card-trigger.js.map +1 -0
  261. package/esm2022/lib/components/hover-card/hover-card.js +74 -0
  262. package/esm2022/lib/components/hover-card/hover-card.js.map +1 -0
  263. package/esm2022/lib/components/hover-card/index.js +5 -0
  264. package/esm2022/lib/components/hover-card/index.js.map +1 -0
  265. package/esm2022/lib/components/index.js +50 -0
  266. package/esm2022/lib/components/index.js.map +1 -1
  267. package/esm2022/lib/components/input/index.js +2 -0
  268. package/esm2022/lib/components/input/index.js.map +1 -0
  269. package/esm2022/lib/components/input/input.js +41 -0
  270. package/esm2022/lib/components/input/input.js.map +1 -0
  271. package/esm2022/lib/components/input-group/index.js +5 -0
  272. package/esm2022/lib/components/input-group/index.js.map +1 -0
  273. package/esm2022/lib/components/input-group/input-group-addon.js +37 -0
  274. package/esm2022/lib/components/input-group/input-group-addon.js.map +1 -0
  275. package/esm2022/lib/components/input-group/input-group-button.js +39 -0
  276. package/esm2022/lib/components/input-group/input-group-button.js.map +1 -0
  277. package/esm2022/lib/components/input-group/input-group-text.js +20 -0
  278. package/esm2022/lib/components/input-group/input-group-text.js.map +1 -0
  279. package/esm2022/lib/components/input-group/input-group.js +21 -0
  280. package/esm2022/lib/components/input-group/input-group.js.map +1 -0
  281. package/esm2022/lib/components/item/index.js +11 -0
  282. package/esm2022/lib/components/item/index.js.map +1 -0
  283. package/esm2022/lib/components/item/item-actions.js +20 -0
  284. package/esm2022/lib/components/item/item-actions.js.map +1 -0
  285. package/esm2022/lib/components/item/item-body.js +20 -0
  286. package/esm2022/lib/components/item/item-body.js.map +1 -0
  287. package/esm2022/lib/components/item/item-description.js +20 -0
  288. package/esm2022/lib/components/item/item-description.js.map +1 -0
  289. package/esm2022/lib/components/item/item-footer.js +20 -0
  290. package/esm2022/lib/components/item/item-footer.js.map +1 -0
  291. package/esm2022/lib/components/item/item-group.js +21 -0
  292. package/esm2022/lib/components/item/item-group.js.map +1 -0
  293. package/esm2022/lib/components/item/item-header.js +20 -0
  294. package/esm2022/lib/components/item/item-header.js.map +1 -0
  295. package/esm2022/lib/components/item/item-media.js +35 -0
  296. package/esm2022/lib/components/item/item-media.js.map +1 -0
  297. package/esm2022/lib/components/item/item-separator.js +21 -0
  298. package/esm2022/lib/components/item/item-separator.js.map +1 -0
  299. package/esm2022/lib/components/item/item-title.js +20 -0
  300. package/esm2022/lib/components/item/item-title.js.map +1 -0
  301. package/esm2022/lib/components/item/item.js +43 -0
  302. package/esm2022/lib/components/item/item.js.map +1 -0
  303. package/esm2022/lib/components/kbd/index.js +3 -0
  304. package/esm2022/lib/components/kbd/index.js.map +1 -0
  305. package/esm2022/lib/components/kbd/kbd-group.js +20 -0
  306. package/esm2022/lib/components/kbd/kbd-group.js.map +1 -0
  307. package/esm2022/lib/components/kbd/kbd.js +20 -0
  308. package/esm2022/lib/components/kbd/kbd.js.map +1 -0
  309. package/esm2022/lib/components/label/index.js +2 -0
  310. package/esm2022/lib/components/label/index.js.map +1 -0
  311. package/esm2022/lib/components/label/label.js +29 -0
  312. package/esm2022/lib/components/label/label.js.map +1 -0
  313. package/esm2022/lib/components/link/link.js +4 -4
  314. package/esm2022/lib/components/link/link.js.map +1 -1
  315. package/esm2022/lib/components/menu/index.js +8 -0
  316. package/esm2022/lib/components/menu/index.js.map +1 -0
  317. package/esm2022/lib/components/menu/menu-content.js +16 -0
  318. package/esm2022/lib/components/menu/menu-content.js.map +1 -0
  319. package/esm2022/lib/components/menu/menu-item.js +96 -0
  320. package/esm2022/lib/components/menu/menu-item.js.map +1 -0
  321. package/esm2022/lib/components/menu/menu-portal.js +15 -0
  322. package/esm2022/lib/components/menu/menu-portal.js.map +1 -0
  323. package/esm2022/lib/components/menu/menu-provider.js +102 -0
  324. package/esm2022/lib/components/menu/menu-provider.js.map +1 -0
  325. package/esm2022/lib/components/menu/menu-separator.js +22 -0
  326. package/esm2022/lib/components/menu/menu-separator.js.map +1 -0
  327. package/esm2022/lib/components/menu/menu-trigger.js +34 -0
  328. package/esm2022/lib/components/menu/menu-trigger.js.map +1 -0
  329. package/esm2022/lib/components/menu/menu.js +37 -0
  330. package/esm2022/lib/components/menu/menu.js.map +1 -0
  331. package/esm2022/lib/components/menu-bar/index.js +3 -0
  332. package/esm2022/lib/components/menu-bar/index.js.map +1 -0
  333. package/esm2022/lib/components/menu-bar/menu-bar-item.js +103 -0
  334. package/esm2022/lib/components/menu-bar/menu-bar-item.js.map +1 -0
  335. package/esm2022/lib/components/menu-bar/menu-bar.js +28 -0
  336. package/esm2022/lib/components/menu-bar/menu-bar.js.map +1 -0
  337. package/esm2022/lib/components/native-select/index.js +6 -0
  338. package/esm2022/lib/components/native-select/index.js.map +1 -0
  339. package/esm2022/lib/components/native-select/native-select-container.js +20 -0
  340. package/esm2022/lib/components/native-select/native-select-container.js.map +1 -0
  341. package/esm2022/lib/components/native-select/native-select-icon.js +20 -0
  342. package/esm2022/lib/components/native-select/native-select-icon.js.map +1 -0
  343. package/esm2022/lib/components/native-select/native-select-optgroup.js +20 -0
  344. package/esm2022/lib/components/native-select/native-select-optgroup.js.map +1 -0
  345. package/esm2022/lib/components/native-select/native-select-option.js +20 -0
  346. package/esm2022/lib/components/native-select/native-select-option.js.map +1 -0
  347. package/esm2022/lib/components/native-select/native-select.js +29 -0
  348. package/esm2022/lib/components/native-select/native-select.js.map +1 -0
  349. package/esm2022/lib/components/navigation-menu/index.js +8 -0
  350. package/esm2022/lib/components/navigation-menu/index.js.map +1 -0
  351. package/esm2022/lib/components/navigation-menu/navigation-menu-content.js +37 -0
  352. package/esm2022/lib/components/navigation-menu/navigation-menu-content.js.map +1 -0
  353. package/esm2022/lib/components/navigation-menu/navigation-menu-item.js +118 -0
  354. package/esm2022/lib/components/navigation-menu/navigation-menu-item.js.map +1 -0
  355. package/esm2022/lib/components/navigation-menu/navigation-menu-link.js +22 -0
  356. package/esm2022/lib/components/navigation-menu/navigation-menu-link.js.map +1 -0
  357. package/esm2022/lib/components/navigation-menu/navigation-menu-list.js +20 -0
  358. package/esm2022/lib/components/navigation-menu/navigation-menu-list.js.map +1 -0
  359. package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js +14 -0
  360. package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js.map +1 -0
  361. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js +22 -0
  362. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js.map +1 -0
  363. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js +41 -0
  364. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js.map +1 -0
  365. package/esm2022/lib/components/navigation-menu/navigation-menu.js +32 -0
  366. package/esm2022/lib/components/navigation-menu/navigation-menu.js.map +1 -0
  367. package/esm2022/lib/components/pagination/index.js +11 -0
  368. package/esm2022/lib/components/pagination/index.js.map +1 -0
  369. package/esm2022/lib/components/pagination/pagination-ellipsis.js +21 -0
  370. package/esm2022/lib/components/pagination/pagination-ellipsis.js.map +1 -0
  371. package/esm2022/lib/components/pagination/pagination-first.js +51 -0
  372. package/esm2022/lib/components/pagination/pagination-first.js.map +1 -0
  373. package/esm2022/lib/components/pagination/pagination-item.js +20 -0
  374. package/esm2022/lib/components/pagination/pagination-item.js.map +1 -0
  375. package/esm2022/lib/components/pagination/pagination-last.js +52 -0
  376. package/esm2022/lib/components/pagination/pagination-last.js.map +1 -0
  377. package/esm2022/lib/components/pagination/pagination-link.js +50 -0
  378. package/esm2022/lib/components/pagination/pagination-link.js.map +1 -0
  379. package/esm2022/lib/components/pagination/pagination-list.js +20 -0
  380. package/esm2022/lib/components/pagination/pagination-list.js.map +1 -0
  381. package/esm2022/lib/components/pagination/pagination-next.js +52 -0
  382. package/esm2022/lib/components/pagination/pagination-next.js.map +1 -0
  383. package/esm2022/lib/components/pagination/pagination-page-size-select.js +37 -0
  384. package/esm2022/lib/components/pagination/pagination-page-size-select.js.map +1 -0
  385. package/esm2022/lib/components/pagination/pagination-previous.js +52 -0
  386. package/esm2022/lib/components/pagination/pagination-previous.js.map +1 -0
  387. package/esm2022/lib/components/pagination/pagination.js +135 -0
  388. package/esm2022/lib/components/pagination/pagination.js.map +1 -0
  389. package/esm2022/lib/components/popover/index.js +9 -0
  390. package/esm2022/lib/components/popover/index.js.map +1 -0
  391. package/esm2022/lib/components/popover/popover-close.js +26 -0
  392. package/esm2022/lib/components/popover/popover-close.js.map +1 -0
  393. package/esm2022/lib/components/popover/popover-description.js +20 -0
  394. package/esm2022/lib/components/popover/popover-description.js.map +1 -0
  395. package/esm2022/lib/components/popover/popover-header.js +20 -0
  396. package/esm2022/lib/components/popover/popover-header.js.map +1 -0
  397. package/esm2022/lib/components/popover/popover-portal.js +14 -0
  398. package/esm2022/lib/components/popover/popover-portal.js.map +1 -0
  399. package/esm2022/lib/components/popover/popover-provider.js +203 -0
  400. package/esm2022/lib/components/popover/popover-provider.js.map +1 -0
  401. package/esm2022/lib/components/popover/popover-title.js +20 -0
  402. package/esm2022/lib/components/popover/popover-title.js.map +1 -0
  403. package/esm2022/lib/components/popover/popover-trigger.js +32 -0
  404. package/esm2022/lib/components/popover/popover-trigger.js.map +1 -0
  405. package/esm2022/lib/components/popover/popover.js +50 -0
  406. package/esm2022/lib/components/popover/popover.js.map +1 -0
  407. package/esm2022/lib/components/progress/index.js +2 -0
  408. package/esm2022/lib/components/progress/index.js.map +1 -0
  409. package/esm2022/lib/components/progress/progress-indicator.js +26 -0
  410. package/esm2022/lib/components/progress/progress-indicator.js.map +1 -0
  411. package/esm2022/lib/components/progress/progress.js +50 -0
  412. package/esm2022/lib/components/progress/progress.js.map +1 -0
  413. package/esm2022/lib/components/radio-group/index.js +4 -0
  414. package/esm2022/lib/components/radio-group/index.js.map +1 -0
  415. package/esm2022/lib/components/radio-group/radio-field.js +38 -0
  416. package/esm2022/lib/components/radio-group/radio-field.js.map +1 -0
  417. package/esm2022/lib/components/radio-group/radio-group.js +21 -0
  418. package/esm2022/lib/components/radio-group/radio-group.js.map +1 -0
  419. package/esm2022/lib/components/radio-group/radio.js +22 -0
  420. package/esm2022/lib/components/radio-group/radio.js.map +1 -0
  421. package/esm2022/lib/components/range-slider/index.js +4 -0
  422. package/esm2022/lib/components/range-slider/index.js.map +1 -0
  423. package/esm2022/lib/components/range-slider/range-slider-max.js +38 -0
  424. package/esm2022/lib/components/range-slider/range-slider-max.js.map +1 -0
  425. package/esm2022/lib/components/range-slider/range-slider-min.js +38 -0
  426. package/esm2022/lib/components/range-slider/range-slider-min.js.map +1 -0
  427. package/esm2022/lib/components/range-slider/range-slider-thumb-base.js +24 -0
  428. package/esm2022/lib/components/range-slider/range-slider-thumb-base.js.map +1 -0
  429. package/esm2022/lib/components/range-slider/range-slider.js +62 -0
  430. package/esm2022/lib/components/range-slider/range-slider.js.map +1 -0
  431. package/esm2022/lib/components/select/index.js +12 -0
  432. package/esm2022/lib/components/select/index.js.map +1 -0
  433. package/esm2022/lib/components/select/select-group-label.js +28 -0
  434. package/esm2022/lib/components/select/select-group-label.js.map +1 -0
  435. package/esm2022/lib/components/select/select-group.js +28 -0
  436. package/esm2022/lib/components/select/select-group.js.map +1 -0
  437. package/esm2022/lib/components/select/select-input.js +27 -0
  438. package/esm2022/lib/components/select/select-input.js.map +1 -0
  439. package/esm2022/lib/components/select/select-item-icon.js +21 -0
  440. package/esm2022/lib/components/select/select-item-icon.js.map +1 -0
  441. package/esm2022/lib/components/select/select-item-indicator.js +20 -0
  442. package/esm2022/lib/components/select/select-item-indicator.js.map +1 -0
  443. package/esm2022/lib/components/select/select-item.js +49 -0
  444. package/esm2022/lib/components/select/select-item.js.map +1 -0
  445. package/esm2022/lib/components/select/select-list.js +33 -0
  446. package/esm2022/lib/components/select/select-list.js.map +1 -0
  447. package/esm2022/lib/components/select/select-popup.js +32 -0
  448. package/esm2022/lib/components/select/select-popup.js.map +1 -0
  449. package/esm2022/lib/components/select/select-portal.js +14 -0
  450. package/esm2022/lib/components/select/select-portal.js.map +1 -0
  451. package/esm2022/lib/components/select/select-separator.js +22 -0
  452. package/esm2022/lib/components/select/select-separator.js.map +1 -0
  453. package/esm2022/lib/components/select/select-trigger-icon.js +22 -0
  454. package/esm2022/lib/components/select/select-trigger-icon.js.map +1 -0
  455. package/esm2022/lib/components/select/select-trigger.js +49 -0
  456. package/esm2022/lib/components/select/select-trigger.js.map +1 -0
  457. package/esm2022/lib/components/select/select-value.js +28 -0
  458. package/esm2022/lib/components/select/select-value.js.map +1 -0
  459. package/esm2022/lib/components/select/select.js +93 -0
  460. package/esm2022/lib/components/select/select.js.map +1 -0
  461. package/esm2022/lib/components/separator/index.js +2 -0
  462. package/esm2022/lib/components/separator/index.js.map +1 -0
  463. package/esm2022/lib/components/separator/separator.js +26 -0
  464. package/esm2022/lib/components/separator/separator.js.map +1 -0
  465. package/esm2022/lib/components/sheet/index.js +10 -0
  466. package/esm2022/lib/components/sheet/index.js.map +1 -0
  467. package/esm2022/lib/components/sheet/sheet-close.js +29 -0
  468. package/esm2022/lib/components/sheet/sheet-close.js.map +1 -0
  469. package/esm2022/lib/components/sheet/sheet-description.js +23 -0
  470. package/esm2022/lib/components/sheet/sheet-description.js.map +1 -0
  471. package/esm2022/lib/components/sheet/sheet-footer.js +20 -0
  472. package/esm2022/lib/components/sheet/sheet-footer.js.map +1 -0
  473. package/esm2022/lib/components/sheet/sheet-header.js +20 -0
  474. package/esm2022/lib/components/sheet/sheet-header.js.map +1 -0
  475. package/esm2022/lib/components/sheet/sheet-portal.js +14 -0
  476. package/esm2022/lib/components/sheet/sheet-portal.js.map +1 -0
  477. package/esm2022/lib/components/sheet/sheet-provider.js +127 -0
  478. package/esm2022/lib/components/sheet/sheet-provider.js.map +1 -0
  479. package/esm2022/lib/components/sheet/sheet-title.js +23 -0
  480. package/esm2022/lib/components/sheet/sheet-title.js.map +1 -0
  481. package/esm2022/lib/components/sheet/sheet-trigger.js +28 -0
  482. package/esm2022/lib/components/sheet/sheet-trigger.js.map +1 -0
  483. package/esm2022/lib/components/sheet/sheet.js +64 -0
  484. package/esm2022/lib/components/sheet/sheet.js.map +1 -0
  485. package/esm2022/lib/components/skeleton/index.js +2 -0
  486. package/esm2022/lib/components/skeleton/index.js.map +1 -0
  487. package/esm2022/lib/components/skeleton/skeleton.js +20 -0
  488. package/esm2022/lib/components/skeleton/skeleton.js.map +1 -0
  489. package/esm2022/lib/components/slider/index.js +2 -0
  490. package/esm2022/lib/components/slider/index.js.map +1 -0
  491. package/esm2022/lib/components/slider/slider.js +46 -0
  492. package/esm2022/lib/components/slider/slider.js.map +1 -0
  493. package/esm2022/lib/components/spinner/index.js +2 -0
  494. package/esm2022/lib/components/spinner/index.js.map +1 -0
  495. package/esm2022/lib/components/spinner/spinner.js +23 -0
  496. package/esm2022/lib/components/spinner/spinner.js.map +1 -0
  497. package/esm2022/lib/components/switch/index.js +5 -0
  498. package/esm2022/lib/components/switch/index.js.map +1 -0
  499. package/esm2022/lib/components/switch/switch-field.js +57 -0
  500. package/esm2022/lib/components/switch/switch-field.js.map +1 -0
  501. package/esm2022/lib/components/switch/switch-types.js +3 -0
  502. package/esm2022/lib/components/switch/switch-types.js.map +1 -0
  503. package/esm2022/lib/components/switch/switch-visual.js +34 -0
  504. package/esm2022/lib/components/switch/switch-visual.js.map +1 -0
  505. package/esm2022/lib/components/switch/switch.js +45 -0
  506. package/esm2022/lib/components/switch/switch.js.map +1 -0
  507. package/esm2022/lib/components/table/index.js +9 -0
  508. package/esm2022/lib/components/table/index.js.map +1 -0
  509. package/esm2022/lib/components/table/table-body.js +20 -0
  510. package/esm2022/lib/components/table/table-body.js.map +1 -0
  511. package/esm2022/lib/components/table/table-caption.js +20 -0
  512. package/esm2022/lib/components/table/table-caption.js.map +1 -0
  513. package/esm2022/lib/components/table/table-cell.js +20 -0
  514. package/esm2022/lib/components/table/table-cell.js.map +1 -0
  515. package/esm2022/lib/components/table/table-footer.js +20 -0
  516. package/esm2022/lib/components/table/table-footer.js.map +1 -0
  517. package/esm2022/lib/components/table/table-header-cell.js +20 -0
  518. package/esm2022/lib/components/table/table-header-cell.js.map +1 -0
  519. package/esm2022/lib/components/table/table-header.js +20 -0
  520. package/esm2022/lib/components/table/table-header.js.map +1 -0
  521. package/esm2022/lib/components/table/table-row.js +20 -0
  522. package/esm2022/lib/components/table/table-row.js.map +1 -0
  523. package/esm2022/lib/components/table/table.js +20 -0
  524. package/esm2022/lib/components/table/table.js.map +1 -0
  525. package/esm2022/lib/components/tabs/index.js +6 -0
  526. package/esm2022/lib/components/tabs/index.js.map +1 -0
  527. package/esm2022/lib/components/tabs/tab-content.js +16 -0
  528. package/esm2022/lib/components/tabs/tab-content.js.map +1 -0
  529. package/esm2022/lib/components/tabs/tab-list.js +57 -0
  530. package/esm2022/lib/components/tabs/tab-list.js.map +1 -0
  531. package/esm2022/lib/components/tabs/tab-panel.js +35 -0
  532. package/esm2022/lib/components/tabs/tab-panel.js.map +1 -0
  533. package/esm2022/lib/components/tabs/tab.js +34 -0
  534. package/esm2022/lib/components/tabs/tab.js.map +1 -0
  535. package/esm2022/lib/components/tabs/tabs.js +36 -0
  536. package/esm2022/lib/components/tabs/tabs.js.map +1 -0
  537. package/esm2022/lib/components/textarea/index.js +2 -0
  538. package/esm2022/lib/components/textarea/index.js.map +1 -0
  539. package/esm2022/lib/components/textarea/textarea.js +41 -0
  540. package/esm2022/lib/components/textarea/textarea.js.map +1 -0
  541. package/esm2022/lib/components/time-picker/index.js +10 -0
  542. package/esm2022/lib/components/time-picker/index.js.map +1 -0
  543. package/esm2022/lib/components/time-picker/time-picker-hours-input.js +67 -0
  544. package/esm2022/lib/components/time-picker/time-picker-hours-input.js.map +1 -0
  545. package/esm2022/lib/components/time-picker/time-picker-input.js +26 -0
  546. package/esm2022/lib/components/time-picker/time-picker-input.js.map +1 -0
  547. package/esm2022/lib/components/time-picker/time-picker-minutes-input.js +57 -0
  548. package/esm2022/lib/components/time-picker/time-picker-minutes-input.js.map +1 -0
  549. package/esm2022/lib/components/time-picker/time-picker-period-am.js +26 -0
  550. package/esm2022/lib/components/time-picker/time-picker-period-am.js.map +1 -0
  551. package/esm2022/lib/components/time-picker/time-picker-period-pm.js +26 -0
  552. package/esm2022/lib/components/time-picker/time-picker-period-pm.js.map +1 -0
  553. package/esm2022/lib/components/time-picker/time-picker-period.js +46 -0
  554. package/esm2022/lib/components/time-picker/time-picker-period.js.map +1 -0
  555. package/esm2022/lib/components/time-picker/time-picker-seconds-input.js +57 -0
  556. package/esm2022/lib/components/time-picker/time-picker-seconds-input.js.map +1 -0
  557. package/esm2022/lib/components/time-picker/time-picker-separator.js +20 -0
  558. package/esm2022/lib/components/time-picker/time-picker-separator.js.map +1 -0
  559. package/esm2022/lib/components/time-picker/time-picker.js +58 -0
  560. package/esm2022/lib/components/time-picker/time-picker.js.map +1 -0
  561. package/esm2022/lib/components/toast/index.js +7 -0
  562. package/esm2022/lib/components/toast/index.js.map +1 -0
  563. package/esm2022/lib/components/toast/toast-action.js +21 -0
  564. package/esm2022/lib/components/toast/toast-action.js.map +1 -0
  565. package/esm2022/lib/components/toast/toast-close.js +25 -0
  566. package/esm2022/lib/components/toast/toast-close.js.map +1 -0
  567. package/esm2022/lib/components/toast/toast-description.js +20 -0
  568. package/esm2022/lib/components/toast/toast-description.js.map +1 -0
  569. package/esm2022/lib/components/toast/toast-stack.js +182 -0
  570. package/esm2022/lib/components/toast/toast-stack.js.map +1 -0
  571. package/esm2022/lib/components/toast/toast-title.js +20 -0
  572. package/esm2022/lib/components/toast/toast-title.js.map +1 -0
  573. package/esm2022/lib/components/toast/toast.js +58 -0
  574. package/esm2022/lib/components/toast/toast.js.map +1 -0
  575. package/esm2022/lib/components/toast/toast.types.js +1 -0
  576. package/esm2022/lib/components/toast/toast.types.js.map +1 -0
  577. package/esm2022/lib/components/toast/toaster.js +149 -0
  578. package/esm2022/lib/components/toast/toaster.js.map +1 -0
  579. package/esm2022/lib/components/toggle/index.js +2 -0
  580. package/esm2022/lib/components/toggle/index.js.map +1 -0
  581. package/esm2022/lib/components/toggle/toggle.js +52 -0
  582. package/esm2022/lib/components/toggle/toggle.js.map +1 -0
  583. package/esm2022/lib/components/toggle-group/index.js +3 -0
  584. package/esm2022/lib/components/toggle-group/index.js.map +1 -0
  585. package/esm2022/lib/components/toggle-group/toggle-group-item.js +45 -0
  586. package/esm2022/lib/components/toggle-group/toggle-group-item.js.map +1 -0
  587. package/esm2022/lib/components/toggle-group/toggle-group.js +61 -0
  588. package/esm2022/lib/components/toggle-group/toggle-group.js.map +1 -0
  589. package/esm2022/lib/components/toolbar/index.js +5 -0
  590. package/esm2022/lib/components/toolbar/index.js.map +1 -0
  591. package/esm2022/lib/components/toolbar/toolbar-separator.js +29 -0
  592. package/esm2022/lib/components/toolbar/toolbar-separator.js.map +1 -0
  593. package/esm2022/lib/components/toolbar/toolbar-widget-group.js +35 -0
  594. package/esm2022/lib/components/toolbar/toolbar-widget-group.js.map +1 -0
  595. package/esm2022/lib/components/toolbar/toolbar-widget.js +39 -0
  596. package/esm2022/lib/components/toolbar/toolbar-widget.js.map +1 -0
  597. package/esm2022/lib/components/toolbar/toolbar.js +38 -0
  598. package/esm2022/lib/components/toolbar/toolbar.js.map +1 -0
  599. package/esm2022/lib/components/tooltip/index.js +3 -0
  600. package/esm2022/lib/components/tooltip/index.js.map +1 -0
  601. package/esm2022/lib/components/tooltip/tooltip-manager.js +165 -0
  602. package/esm2022/lib/components/tooltip/tooltip-manager.js.map +1 -0
  603. package/esm2022/lib/components/tooltip/tooltip-trigger.js +115 -0
  604. package/esm2022/lib/components/tooltip/tooltip-trigger.js.map +1 -0
  605. package/esm2022/lib/components/tooltip/tooltip.js +66 -0
  606. package/esm2022/lib/components/tooltip/tooltip.js.map +1 -0
  607. package/lib/components/accordion/accordion-body.d.ts +7 -0
  608. package/lib/components/accordion/accordion-content.d.ts +6 -0
  609. package/lib/components/accordion/accordion-group.d.ts +8 -0
  610. package/lib/components/accordion/accordion-header.d.ts +7 -0
  611. package/lib/components/accordion/accordion-item.d.ts +7 -0
  612. package/lib/components/accordion/accordion-panel.d.ts +8 -0
  613. package/lib/components/accordion/accordion-trigger.d.ts +8 -0
  614. package/lib/components/accordion/index.d.ts +7 -0
  615. package/lib/components/alert/alert-action.d.ts +7 -0
  616. package/lib/components/alert/alert-description.d.ts +7 -0
  617. package/lib/components/alert/alert-title.d.ts +7 -0
  618. package/lib/components/alert/alert.d.ts +14 -0
  619. package/lib/components/alert/index.d.ts +4 -0
  620. package/lib/components/alert-dialog/alert-dialog-action.d.ts +11 -0
  621. package/lib/components/alert-dialog/alert-dialog-cancel.d.ts +11 -0
  622. package/lib/components/alert-dialog/alert-dialog-description.d.ts +9 -0
  623. package/lib/components/alert-dialog/alert-dialog-footer.d.ts +7 -0
  624. package/lib/components/alert-dialog/alert-dialog-header.d.ts +7 -0
  625. package/lib/components/alert-dialog/alert-dialog-media.d.ts +7 -0
  626. package/lib/components/alert-dialog/alert-dialog-portal.d.ts +7 -0
  627. package/lib/components/alert-dialog/alert-dialog-provider.d.ts +22 -0
  628. package/lib/components/alert-dialog/alert-dialog-title.d.ts +9 -0
  629. package/lib/components/alert-dialog/alert-dialog-trigger.d.ts +10 -0
  630. package/lib/components/alert-dialog/alert-dialog.d.ts +19 -0
  631. package/lib/components/alert-dialog/index.d.ts +11 -0
  632. package/lib/components/aspect-ratio/aspect-ratio.d.ts +8 -0
  633. package/lib/components/aspect-ratio/index.d.ts +1 -0
  634. package/lib/components/avatar/avatar-badge.d.ts +7 -0
  635. package/lib/components/avatar/avatar-fallback.d.ts +8 -0
  636. package/lib/components/avatar/avatar-group-count.d.ts +7 -0
  637. package/lib/components/avatar/avatar-group.d.ts +7 -0
  638. package/lib/components/avatar/avatar-image.d.ts +12 -0
  639. package/lib/components/avatar/avatar.d.ts +12 -0
  640. package/lib/components/avatar/index.d.ts +6 -0
  641. package/lib/components/backdrop/backdrop.d.ts +23 -0
  642. package/lib/components/backdrop/index.d.ts +1 -0
  643. package/lib/components/badge/badge.d.ts +14 -0
  644. package/lib/components/badge/index.d.ts +1 -0
  645. package/lib/components/breadcrumb/breadcrumb-ellipsis.d.ts +7 -0
  646. package/lib/components/breadcrumb/breadcrumb-item.d.ts +7 -0
  647. package/lib/components/breadcrumb/breadcrumb-link.d.ts +7 -0
  648. package/lib/components/breadcrumb/breadcrumb-list.d.ts +7 -0
  649. package/lib/components/breadcrumb/breadcrumb-page.d.ts +7 -0
  650. package/lib/components/breadcrumb/breadcrumb-separator.d.ts +7 -0
  651. package/lib/components/breadcrumb/breadcrumb.d.ts +5 -0
  652. package/lib/components/breadcrumb/index.d.ts +7 -0
  653. package/lib/components/button/button.d.ts +5 -5
  654. package/lib/components/button-group/button-group-separator.d.ts +9 -0
  655. package/lib/components/button-group/button-group-text.d.ts +7 -0
  656. package/lib/components/button-group/button-group.d.ts +13 -0
  657. package/lib/components/button-group/index.d.ts +3 -0
  658. package/lib/components/calendar/calendar-day-view.d.ts +40 -0
  659. package/lib/components/calendar/calendar-header.d.ts +13 -0
  660. package/lib/components/calendar/calendar-month-view.d.ts +28 -0
  661. package/lib/components/calendar/calendar-year-view.d.ts +28 -0
  662. package/lib/components/calendar/calendar.d.ts +40 -0
  663. package/lib/components/calendar/index.d.ts +1 -0
  664. package/lib/components/card/card-action.d.ts +7 -0
  665. package/lib/components/card/card-body.d.ts +7 -0
  666. package/lib/components/card/card-description.d.ts +7 -0
  667. package/lib/components/card/card-footer.d.ts +7 -0
  668. package/lib/components/card/card-header.d.ts +7 -0
  669. package/lib/components/card/card-title.d.ts +7 -0
  670. package/lib/components/card/card.d.ts +8 -0
  671. package/lib/components/card/index.d.ts +7 -0
  672. package/lib/components/checkbox/checkbox-field.d.ts +16 -0
  673. package/lib/components/checkbox/checkbox-types.d.ts +9 -0
  674. package/lib/components/checkbox/checkbox-visual.d.ts +8 -0
  675. package/lib/components/checkbox/checkbox.d.ts +19 -0
  676. package/lib/components/checkbox/index.d.ts +4 -0
  677. package/lib/components/collapsible/collapsible-body.d.ts +7 -0
  678. package/lib/components/collapsible/collapsible-content.d.ts +6 -0
  679. package/lib/components/collapsible/collapsible-panel.d.ts +8 -0
  680. package/lib/components/collapsible/collapsible-trigger.d.ts +14 -0
  681. package/lib/components/collapsible/collapsible.d.ts +8 -0
  682. package/lib/components/collapsible/index.d.ts +5 -0
  683. package/lib/components/date-picker/date-picker.d.ts +23 -0
  684. package/lib/components/date-picker/index.d.ts +1 -0
  685. package/lib/components/dialog/dialog-close.d.ts +11 -0
  686. package/lib/components/dialog/dialog-description.d.ts +9 -0
  687. package/lib/components/dialog/dialog-footer.d.ts +7 -0
  688. package/lib/components/dialog/dialog-header.d.ts +7 -0
  689. package/lib/components/dialog/dialog-portal.d.ts +7 -0
  690. package/lib/components/dialog/dialog-provider.d.ts +44 -0
  691. package/lib/components/dialog/dialog-title.d.ts +9 -0
  692. package/lib/components/dialog/dialog-trigger.d.ts +10 -0
  693. package/lib/components/dialog/dialog.d.ts +18 -0
  694. package/lib/components/dialog/index.d.ts +9 -0
  695. package/lib/components/drawer/drawer-close.d.ts +7 -0
  696. package/lib/components/drawer/drawer-description.d.ts +7 -0
  697. package/lib/components/drawer/drawer-footer.d.ts +7 -0
  698. package/lib/components/drawer/drawer-handle.d.ts +7 -0
  699. package/lib/components/drawer/drawer-header.d.ts +7 -0
  700. package/lib/components/drawer/drawer-portal.d.ts +7 -0
  701. package/lib/components/drawer/drawer-provider.d.ts +25 -0
  702. package/lib/components/drawer/drawer-title.d.ts +7 -0
  703. package/lib/components/drawer/drawer-trigger.d.ts +10 -0
  704. package/lib/components/drawer/drawer.d.ts +15 -0
  705. package/lib/components/drawer/index.d.ts +11 -0
  706. package/lib/components/empty/empty-body.d.ts +7 -0
  707. package/lib/components/empty/empty-description.d.ts +7 -0
  708. package/lib/components/empty/empty-header.d.ts +7 -0
  709. package/lib/components/empty/empty-media.d.ts +13 -0
  710. package/lib/components/empty/empty-title.d.ts +7 -0
  711. package/lib/components/empty/empty.d.ts +7 -0
  712. package/lib/components/empty/index.d.ts +6 -0
  713. package/lib/components/field/field-body.d.ts +7 -0
  714. package/lib/components/field/field-description.d.ts +7 -0
  715. package/lib/components/field/field-error.d.ts +7 -0
  716. package/lib/components/field/field-group.d.ts +7 -0
  717. package/lib/components/field/field-separator.d.ts +7 -0
  718. package/lib/components/field/field-title.d.ts +7 -0
  719. package/lib/components/field/field.d.ts +27 -0
  720. package/lib/components/field/fieldset.d.ts +7 -0
  721. package/lib/components/field/index.d.ts +10 -0
  722. package/lib/components/field/legend.d.ts +9 -0
  723. package/lib/components/file-upload/file-upload-dropzone.d.ts +15 -0
  724. package/lib/components/file-upload/file-upload-item-delete.d.ts +10 -0
  725. package/lib/components/file-upload/file-upload-item-name.d.ts +7 -0
  726. package/lib/components/file-upload/file-upload-item-preview.d.ts +11 -0
  727. package/lib/components/file-upload/file-upload-item-progress.d.ts +9 -0
  728. package/lib/components/file-upload/file-upload-item-size.d.ts +10 -0
  729. package/lib/components/file-upload/file-upload-item.d.ts +9 -0
  730. package/lib/components/file-upload/file-upload-list.d.ts +7 -0
  731. package/lib/components/file-upload/file-upload-trigger.d.ts +11 -0
  732. package/lib/components/file-upload/file-upload.d.ts +32 -0
  733. package/lib/components/file-upload/index.d.ts +11 -0
  734. package/lib/components/hover-card/hover-card-portal.d.ts +7 -0
  735. package/lib/components/hover-card/hover-card-provider.d.ts +34 -0
  736. package/lib/components/hover-card/hover-card-trigger.d.ts +22 -0
  737. package/lib/components/hover-card/hover-card.d.ts +21 -0
  738. package/lib/components/hover-card/index.d.ts +5 -0
  739. package/lib/components/index.d.ts +50 -0
  740. package/lib/components/input/index.d.ts +1 -0
  741. package/lib/components/input/input.d.ts +17 -0
  742. package/lib/components/input-group/index.d.ts +4 -0
  743. package/lib/components/input-group/input-group-addon.d.ts +14 -0
  744. package/lib/components/input-group/input-group-button.d.ts +15 -0
  745. package/lib/components/input-group/input-group-text.d.ts +7 -0
  746. package/lib/components/input-group/input-group.d.ts +7 -0
  747. package/lib/components/item/index.d.ts +10 -0
  748. package/lib/components/item/item-actions.d.ts +7 -0
  749. package/lib/components/item/item-body.d.ts +7 -0
  750. package/lib/components/item/item-description.d.ts +7 -0
  751. package/lib/components/item/item-footer.d.ts +7 -0
  752. package/lib/components/item/item-group.d.ts +7 -0
  753. package/lib/components/item/item-header.d.ts +7 -0
  754. package/lib/components/item/item-media.d.ts +13 -0
  755. package/lib/components/item/item-separator.d.ts +7 -0
  756. package/lib/components/item/item-title.d.ts +7 -0
  757. package/lib/components/item/item.d.ts +15 -0
  758. package/lib/components/kbd/index.d.ts +2 -0
  759. package/lib/components/kbd/kbd-group.d.ts +7 -0
  760. package/lib/components/kbd/kbd.d.ts +7 -0
  761. package/lib/components/label/index.d.ts +1 -0
  762. package/lib/components/label/label.d.ts +10 -0
  763. package/lib/components/link/link.d.ts +3 -3
  764. package/lib/components/menu/index.d.ts +7 -0
  765. package/lib/components/menu/menu-content.d.ts +6 -0
  766. package/lib/components/menu/menu-item.d.ts +17 -0
  767. package/lib/components/menu/menu-portal.d.ts +9 -0
  768. package/lib/components/menu/menu-provider.d.ts +15 -0
  769. package/lib/components/menu/menu-separator.d.ts +7 -0
  770. package/lib/components/menu/menu-trigger.d.ts +14 -0
  771. package/lib/components/menu/menu.d.ts +12 -0
  772. package/lib/components/menu-bar/index.d.ts +2 -0
  773. package/lib/components/menu-bar/menu-bar-item.d.ts +18 -0
  774. package/lib/components/menu-bar/menu-bar.d.ts +10 -0
  775. package/lib/components/native-select/index.d.ts +5 -0
  776. package/lib/components/native-select/native-select-container.d.ts +7 -0
  777. package/lib/components/native-select/native-select-icon.d.ts +7 -0
  778. package/lib/components/native-select/native-select-optgroup.d.ts +7 -0
  779. package/lib/components/native-select/native-select-option.d.ts +7 -0
  780. package/lib/components/native-select/native-select.d.ts +12 -0
  781. package/lib/components/navigation-menu/index.d.ts +7 -0
  782. package/lib/components/navigation-menu/navigation-menu-content.d.ts +10 -0
  783. package/lib/components/navigation-menu/navigation-menu-item.d.ts +27 -0
  784. package/lib/components/navigation-menu/navigation-menu-link.d.ts +8 -0
  785. package/lib/components/navigation-menu/navigation-menu-list.d.ts +7 -0
  786. package/lib/components/navigation-menu/navigation-menu-portal.d.ts +7 -0
  787. package/lib/components/navigation-menu/navigation-menu-trigger-icon.d.ts +8 -0
  788. package/lib/components/navigation-menu/navigation-menu-trigger.d.ts +12 -0
  789. package/lib/components/navigation-menu/navigation-menu.d.ts +10 -0
  790. package/lib/components/pagination/index.d.ts +10 -0
  791. package/lib/components/pagination/pagination-ellipsis.d.ts +7 -0
  792. package/lib/components/pagination/pagination-first.d.ts +15 -0
  793. package/lib/components/pagination/pagination-item.d.ts +7 -0
  794. package/lib/components/pagination/pagination-last.d.ts +15 -0
  795. package/lib/components/pagination/pagination-link.d.ts +16 -0
  796. package/lib/components/pagination/pagination-list.d.ts +7 -0
  797. package/lib/components/pagination/pagination-next.d.ts +15 -0
  798. package/lib/components/pagination/pagination-page-size-select.d.ts +14 -0
  799. package/lib/components/pagination/pagination-previous.d.ts +15 -0
  800. package/lib/components/pagination/pagination.d.ts +38 -0
  801. package/lib/components/popover/index.d.ts +9 -0
  802. package/lib/components/popover/popover-close.d.ts +9 -0
  803. package/lib/components/popover/popover-description.d.ts +7 -0
  804. package/lib/components/popover/popover-header.d.ts +7 -0
  805. package/lib/components/popover/popover-portal.d.ts +7 -0
  806. package/lib/components/popover/popover-provider.d.ts +39 -0
  807. package/lib/components/popover/popover-title.d.ts +7 -0
  808. package/lib/components/popover/popover-trigger.d.ts +13 -0
  809. package/lib/components/popover/popover.d.ts +15 -0
  810. package/lib/components/progress/index.d.ts +1 -0
  811. package/lib/components/progress/progress-indicator.d.ts +9 -0
  812. package/lib/components/progress/progress.d.ts +12 -0
  813. package/lib/components/radio-group/index.d.ts +3 -0
  814. package/lib/components/radio-group/radio-field.d.ts +10 -0
  815. package/lib/components/radio-group/radio-group.d.ts +7 -0
  816. package/lib/components/radio-group/radio.d.ts +8 -0
  817. package/lib/components/range-slider/index.d.ts +3 -0
  818. package/lib/components/range-slider/range-slider-max.d.ts +10 -0
  819. package/lib/components/range-slider/range-slider-min.d.ts +10 -0
  820. package/lib/components/range-slider/range-slider-thumb-base.d.ts +2 -0
  821. package/lib/components/range-slider/range-slider.d.ts +21 -0
  822. package/lib/components/select/index.d.ts +11 -0
  823. package/lib/components/select/select-group-label.d.ts +7 -0
  824. package/lib/components/select/select-group.d.ts +7 -0
  825. package/lib/components/select/select-input.d.ts +8 -0
  826. package/lib/components/select/select-item-icon.d.ts +7 -0
  827. package/lib/components/select/select-item-indicator.d.ts +7 -0
  828. package/lib/components/select/select-item.d.ts +11 -0
  829. package/lib/components/select/select-list.d.ts +10 -0
  830. package/lib/components/select/select-popup.d.ts +8 -0
  831. package/lib/components/select/select-portal.d.ts +7 -0
  832. package/lib/components/select/select-separator.d.ts +7 -0
  833. package/lib/components/select/select-trigger-icon.d.ts +8 -0
  834. package/lib/components/select/select-trigger.d.ts +12 -0
  835. package/lib/components/select/select-value.d.ts +7 -0
  836. package/lib/components/select/select.d.ts +21 -0
  837. package/lib/components/separator/index.d.ts +1 -0
  838. package/lib/components/separator/separator.d.ts +10 -0
  839. package/lib/components/sheet/index.d.ts +10 -0
  840. package/lib/components/sheet/sheet-close.d.ts +11 -0
  841. package/lib/components/sheet/sheet-description.d.ts +9 -0
  842. package/lib/components/sheet/sheet-footer.d.ts +7 -0
  843. package/lib/components/sheet/sheet-header.d.ts +7 -0
  844. package/lib/components/sheet/sheet-portal.d.ts +7 -0
  845. package/lib/components/sheet/sheet-provider.d.ts +25 -0
  846. package/lib/components/sheet/sheet-title.d.ts +9 -0
  847. package/lib/components/sheet/sheet-trigger.d.ts +10 -0
  848. package/lib/components/sheet/sheet.d.ts +18 -0
  849. package/lib/components/skeleton/index.d.ts +1 -0
  850. package/lib/components/skeleton/skeleton.d.ts +7 -0
  851. package/lib/components/slider/index.d.ts +1 -0
  852. package/lib/components/slider/slider.d.ts +15 -0
  853. package/lib/components/spinner/index.d.ts +1 -0
  854. package/lib/components/spinner/spinner.d.ts +8 -0
  855. package/lib/components/switch/index.d.ts +4 -0
  856. package/lib/components/switch/switch-field.d.ts +15 -0
  857. package/lib/components/switch/switch-types.d.ts +8 -0
  858. package/lib/components/switch/switch-visual.d.ts +9 -0
  859. package/lib/components/switch/switch.d.ts +18 -0
  860. package/lib/components/table/index.d.ts +8 -0
  861. package/lib/components/table/table-body.d.ts +7 -0
  862. package/lib/components/table/table-caption.d.ts +7 -0
  863. package/lib/components/table/table-cell.d.ts +7 -0
  864. package/lib/components/table/table-footer.d.ts +7 -0
  865. package/lib/components/table/table-header-cell.d.ts +7 -0
  866. package/lib/components/table/table-header.d.ts +7 -0
  867. package/lib/components/table/table-row.d.ts +7 -0
  868. package/lib/components/table/table.d.ts +7 -0
  869. package/lib/components/tabs/index.d.ts +5 -0
  870. package/lib/components/tabs/tab-content.d.ts +6 -0
  871. package/lib/components/tabs/tab-list.d.ts +12 -0
  872. package/lib/components/tabs/tab-panel.d.ts +8 -0
  873. package/lib/components/tabs/tab.d.ts +8 -0
  874. package/lib/components/tabs/tabs.d.ts +9 -0
  875. package/lib/components/textarea/index.d.ts +1 -0
  876. package/lib/components/textarea/textarea.d.ts +17 -0
  877. package/lib/components/time-picker/index.d.ts +10 -0
  878. package/lib/components/time-picker/time-picker-hours-input.d.ts +14 -0
  879. package/lib/components/time-picker/time-picker-input.d.ts +9 -0
  880. package/lib/components/time-picker/time-picker-minutes-input.d.ts +12 -0
  881. package/lib/components/time-picker/time-picker-period-am.d.ts +8 -0
  882. package/lib/components/time-picker/time-picker-period-pm.d.ts +8 -0
  883. package/lib/components/time-picker/time-picker-period.d.ts +12 -0
  884. package/lib/components/time-picker/time-picker-seconds-input.d.ts +12 -0
  885. package/lib/components/time-picker/time-picker-separator.d.ts +7 -0
  886. package/lib/components/time-picker/time-picker.d.ts +26 -0
  887. package/lib/components/toast/index.d.ts +7 -0
  888. package/lib/components/toast/toast-action.d.ts +7 -0
  889. package/lib/components/toast/toast-close.d.ts +9 -0
  890. package/lib/components/toast/toast-description.d.ts +7 -0
  891. package/lib/components/toast/toast-stack.d.ts +12 -0
  892. package/lib/components/toast/toast-title.d.ts +7 -0
  893. package/lib/components/toast/toast.d.ts +17 -0
  894. package/lib/components/toast/toast.types.d.ts +24 -0
  895. package/lib/components/toast/toaster.d.ts +50 -0
  896. package/lib/components/toggle/index.d.ts +1 -0
  897. package/lib/components/toggle/toggle.d.ts +18 -0
  898. package/lib/components/toggle-group/index.d.ts +2 -0
  899. package/lib/components/toggle-group/toggle-group-item.d.ts +16 -0
  900. package/lib/components/toggle-group/toggle-group.d.ts +16 -0
  901. package/lib/components/toolbar/index.d.ts +4 -0
  902. package/lib/components/toolbar/toolbar-separator.d.ts +9 -0
  903. package/lib/components/toolbar/toolbar-widget-group.d.ts +8 -0
  904. package/lib/components/toolbar/toolbar-widget.d.ts +10 -0
  905. package/lib/components/toolbar/toolbar.d.ts +10 -0
  906. package/lib/components/tooltip/index.d.ts +3 -0
  907. package/lib/components/tooltip/tooltip-manager.d.ts +22 -0
  908. package/lib/components/tooltip/tooltip-trigger.d.ts +35 -0
  909. package/lib/components/tooltip/tooltip.d.ts +22 -0
  910. package/package.json +9 -2
@@ -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 ScFieldGroup {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldGroup, isStandalone: true, selector: "[scFieldGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-group" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldGroup, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[scFieldGroup]',
14
+ host: {
15
+ 'data-slot': 'field-group',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=field-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-group.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field-group.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,CACA,wIAAwI,EACxI,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,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: '[scFieldGroup]',\n host: {\n 'data-slot': 'field-group',\n '[class]': 'class()',\n },\n})\nexport class ScFieldGroup {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col',\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 ScFieldSeparator {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldSeparator, isStandalone: true, selector: "[scFieldSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-separator" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldSeparator, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[scFieldSeparator]',
14
+ host: {
15
+ 'data-slot': 'field-separator',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=field-separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-separator.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field-separator.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,gBAAgB;IAClB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,2EAA2E,EAC3E,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,gBAAgB;2FAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAP5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,IAAI,EAAE;wBACJ,WAAW,EAAE,iBAAiB;wBAC9B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scFieldSeparator]',\n host: {\n 'data-slot': 'field-separator',\n '[class]': 'class()',\n },\n})\nexport class ScFieldSeparator {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n '-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative',\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 ScFieldTitle {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldTitle, isStandalone: true, selector: "[scFieldTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-title" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldTitle, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[scFieldTitle]',
14
+ host: {
15
+ 'data-slot': 'field-title',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=field-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-title.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field-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,CACA,4GAA4G,EAC5G,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,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: '[scFieldTitle]',\n host: {\n 'data-slot': 'field-title',\n '[class]': 'class()',\n },\n})\nexport class ScFieldTitle {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -0,0 +1,75 @@
1
+ import { _IdGenerator } from '@angular/cdk/a11y';
2
+ import { computed, contentChild, Directive, ElementRef, inject, InjectionToken, input, } from '@angular/core';
3
+ import { FormField } from '@angular/forms/signals';
4
+ import { cva } from 'class-variance-authority';
5
+ import { cn } from '../../utils';
6
+ import * as i0 from "@angular/core";
7
+ const fieldVariants = cva('gap-2 group/field flex w-full data-[invalid=true]:text-destructive', {
8
+ variants: {
9
+ orientation: {
10
+ vertical: 'flex-col [&>*]:w-full [&>.sr-only]:w-auto',
11
+ horizontal: 'flex-row items-center [&>[data-slot=label]]:flex-auto has-[>[data-slot=field-body]]:items-start has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',
12
+ responsive: 'flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=label]]:flex-auto @md/field-group:has-[>[data-slot=field-body]]:items-start @md/field-group:has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',
13
+ },
14
+ },
15
+ defaultVariants: {
16
+ orientation: 'vertical',
17
+ },
18
+ });
19
+ export const SC_FIELD = new InjectionToken('SC_FIELD');
20
+ export class ScField {
21
+ elementRef = inject((ElementRef));
22
+ id = input(inject(_IdGenerator).getId('sc-field-'), ...(ngDevMode ? [{ debugName: "id" }] : []));
23
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
24
+ orientation = input('vertical', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
25
+ invalidInput = input(false, { ...(ngDevMode ? { debugName: "invalidInput" } : {}), alias: 'invalid' });
26
+ disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : {}), alias: 'disabled' });
27
+ formField = contentChild(FormField, ...(ngDevMode ? [{ debugName: "formField" }] : []));
28
+ role = computed(() => {
29
+ // Only LABEL preserves native semantics, DIV gets role="group"
30
+ const tagName = this.elementRef.nativeElement.tagName;
31
+ return tagName === 'LABEL' ? null : 'group';
32
+ }, ...(ngDevMode ? [{ debugName: "role" }] : []));
33
+ invalid = computed(() => {
34
+ if (this.invalidInput())
35
+ return true;
36
+ return ((this.formField()?.state().touched() &&
37
+ this.formField()?.state().invalid()) ??
38
+ false);
39
+ }, ...(ngDevMode ? [{ debugName: "invalid" }] : []));
40
+ disabled = computed(() => {
41
+ if (this.disabledInput())
42
+ return true;
43
+ return this.formField()?.state().disabled() ?? false;
44
+ }, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
45
+ class = computed(() => cn(fieldVariants({ orientation: this.orientation() }), this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
47
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.5", type: ScField, isStandalone: true, selector: "div[scField], label[scField]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field" }, properties: { "attr.role": "role()", "attr.id": "id()", "attr.data-orientation": "orientation()", "attr.data-invalid": "invalid()", "attr.data-disabled": "disabled()", "class": "class()" } }, providers: [
48
+ {
49
+ provide: SC_FIELD,
50
+ useExisting: ScField,
51
+ },
52
+ ], queries: [{ propertyName: "formField", first: true, predicate: FormField, descendants: true, isSignal: true }], ngImport: i0 });
53
+ }
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScField, decorators: [{
55
+ type: Directive,
56
+ args: [{
57
+ selector: 'div[scField], label[scField]',
58
+ host: {
59
+ '[attr.role]': 'role()',
60
+ 'data-slot': 'field',
61
+ '[attr.id]': 'id()',
62
+ '[attr.data-orientation]': 'orientation()',
63
+ '[attr.data-invalid]': 'invalid()',
64
+ '[attr.data-disabled]': 'disabled()',
65
+ '[class]': 'class()',
66
+ },
67
+ providers: [
68
+ {
69
+ provide: SC_FIELD,
70
+ useExisting: ScField,
71
+ },
72
+ ],
73
+ }]
74
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], invalidInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], formField: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FormField), { isSignal: true }] }] } });
75
+ //# sourceMappingURL=field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,UAAU,EACV,MAAM,EACN,cAAc,EACd,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAEjC,MAAM,aAAa,GAAG,GAAG,CACvB,oEAAoE,EACpE;IACE,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,QAAQ,EAAE,2CAA2C;YACrD,UAAU,EACR,sKAAsK;YACxK,UAAU,EACR,6TAA6T;SAChU;KACF;IACD,eAAe,EAAE;QACf,WAAW,EAAE,UAAU;KACxB;CACF,CACF,CAAC;AAQF,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAiB,UAAU,CAAC,CAAC;AAoBvE,MAAM,OAAO,OAAO;IACD,UAAU,GAAG,MAAM,CAAC,CAAA,UAAuB,CAAA,CAAC,CAAC;IAErD,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,8CAAC,CAAC;IACpD,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,WAAW,GAAG,KAAK,CAAiC,UAAU,uDAAC,CAAC;IAChE,YAAY,GAAG,KAAK,CAAU,KAAK,yDAAI,KAAK,EAAE,SAAS,GAAG,CAAC;IAC3D,aAAa,GAAG,KAAK,CAAU,KAAK,0DAAI,KAAK,EAAE,UAAU,GAAG,CAAC;IAErD,SAAS,GAAG,YAAY,CAAC,SAAS,qDAAC,CAAC;IAElC,IAAI,GAAG,QAAQ,CAAC,GAAG,EAAE;QACtC,+DAA+D;QAC/D,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC;QACtD,OAAO,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9C,CAAC,gDAAC,CAAC;IAEM,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC/B,IAAI,IAAI,CAAC,YAAY,EAAE;YAAE,OAAO,IAAI,CAAC;QACrC,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,OAAO,EAAE;YAClC,IAAI,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;YACtC,KAAK,CACN,CAAC;IACJ,CAAC,mDAAC,CAAC;IAEM,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;QAChC,IAAI,IAAI,CAAC,aAAa,EAAE;YAAE,OAAO,IAAI,CAAC;QACtC,OAAO,IAAI,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,CAAC;IACvD,CAAC,oDAAC,CAAC;IAEgB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC1E,CAAC;uGAjCS,OAAO;2FAAP,OAAO,m9BAPP;YACT;gBACE,OAAO,EAAE,QAAQ;gBACjB,WAAW,EAAE,OAAO;aACrB;SACF,iEAWyC,SAAS;;2FATxC,OAAO;kBAlBnB,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,IAAI,EAAE;wBACJ,aAAa,EAAE,QAAQ;wBACvB,WAAW,EAAE,OAAO;wBACpB,WAAW,EAAE,MAAM;wBACnB,yBAAyB,EAAE,eAAe;wBAC1C,qBAAqB,EAAE,WAAW;wBAClC,sBAAsB,EAAE,YAAY;wBACpC,SAAS,EAAE,SAAS;qBACrB;oBACD,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,QAAQ;4BACjB,WAAW,SAAS;yBACrB;qBACF;iBACF;+jBAU2C,SAAS","sourcesContent":["import { _IdGenerator } from '@angular/cdk/a11y';\nimport {\n computed,\n contentChild,\n Directive,\n ElementRef,\n inject,\n InjectionToken,\n input,\n} from '@angular/core';\nimport { FormField } from '@angular/forms/signals';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils';\n\nconst fieldVariants = cva(\n 'gap-2 group/field flex w-full data-[invalid=true]:text-destructive',\n {\n variants: {\n orientation: {\n vertical: 'flex-col [&>*]:w-full [&>.sr-only]:w-auto',\n horizontal:\n 'flex-row items-center [&>[data-slot=label]]:flex-auto has-[>[data-slot=field-body]]:items-start has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',\n responsive:\n 'flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=label]]:flex-auto @md/field-group:has-[>[data-slot=field-body]]:items-start @md/field-group:has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',\n },\n },\n defaultVariants: {\n orientation: 'vertical',\n },\n },\n);\n\nexport type ScFieldVariants = VariantProps<typeof fieldVariants>;\n\nexport interface ScFieldContext {\n id: () => string;\n}\n\nexport const SC_FIELD = new InjectionToken<ScFieldContext>('SC_FIELD');\n\n@Directive({\n selector: 'div[scField], label[scField]',\n host: {\n '[attr.role]': 'role()',\n 'data-slot': 'field',\n '[attr.id]': 'id()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-invalid]': 'invalid()',\n '[attr.data-disabled]': 'disabled()',\n '[class]': 'class()',\n },\n providers: [\n {\n provide: SC_FIELD,\n useExisting: ScField,\n },\n ],\n})\nexport class ScField implements ScFieldContext {\n private readonly elementRef = inject(ElementRef<HTMLElement>);\n\n readonly id = input(inject(_IdGenerator).getId('sc-field-'));\n readonly classInput = input<string>('', { alias: 'class' });\n readonly orientation = input<ScFieldVariants['orientation']>('vertical');\n readonly invalidInput = input<boolean>(false, { alias: 'invalid' });\n readonly disabledInput = input<boolean>(false, { alias: 'disabled' });\n\n private readonly formField = contentChild(FormField);\n\n protected readonly role = computed(() => {\n // Only LABEL preserves native semantics, DIV gets role=\"group\"\n const tagName = this.elementRef.nativeElement.tagName;\n return tagName === 'LABEL' ? null : 'group';\n });\n\n readonly invalid = computed(() => {\n if (this.invalidInput()) return true;\n return (\n (this.formField()?.state().touched() &&\n this.formField()?.state().invalid()) ??\n false\n );\n });\n\n readonly disabled = computed(() => {\n if (this.disabledInput()) return true;\n return this.formField()?.state().disabled() ?? false;\n });\n\n protected readonly class = computed(() =>\n cn(fieldVariants({ orientation: this.orientation() }), this.classInput()),\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 ScFieldset {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldset, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldset, isStandalone: true, selector: "fieldset[scFieldset]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "fieldset" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldset, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: 'fieldset[scFieldset]',
14
+ host: {
15
+ 'data-slot': 'fieldset',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=fieldset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/fieldset.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,UAAU;IACZ,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,kGAAkG,EAClG,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,UAAU;2FAAV,UAAU;;2FAAV,UAAU;kBAPtB,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,UAAU;wBACvB,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'fieldset[scFieldset]',\n host: {\n 'data-slot': 'fieldset',\n '[class]': 'class()',\n },\n})\nexport class ScFieldset {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -0,0 +1,10 @@
1
+ export * from './field';
2
+ export * from './fieldset';
3
+ export { ScLegend } from './legend';
4
+ export * from './field-group';
5
+ export * from './field-body';
6
+ export * from './field-title';
7
+ export * from './field-description';
8
+ export * from './field-separator';
9
+ export * from './field-error';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC","sourcesContent":["export * from './field';\nexport * from './fieldset';\nexport { ScLegend } from './legend';\nexport type { ScLegendVariant } from './legend';\nexport * from './field-group';\nexport * from './field-body';\nexport * from './field-title';\nexport * from './field-description';\nexport * from './field-separator';\nexport * from './field-error';\n"]}
@@ -0,0 +1,22 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScLegend {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ variant = input('legend', ...(ngDevMode ? [{ debugName: "variant" }] : []));
7
+ class = computed(() => cn('mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScLegend, isStandalone: true, selector: "legend[scLegend]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "legend" }, properties: { "attr.data-variant": "variant()", "class": "class()" } }, ngImport: i0 });
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScLegend, decorators: [{
12
+ type: Directive,
13
+ args: [{
14
+ selector: 'legend[scLegend]',
15
+ host: {
16
+ 'data-slot': 'legend',
17
+ '[attr.data-variant]': 'variant()',
18
+ '[class]': 'class()',
19
+ },
20
+ }]
21
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
22
+ //# sourceMappingURL=legend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legend.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/legend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAYjC,MAAM,OAAO,QAAQ;IACV,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,OAAO,GAAG,KAAK,CAAkB,QAAQ,mDAAC,CAAC;IAEjC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,iFAAiF,EACjF,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGATS,QAAQ;2FAAR,QAAQ;;2FAAR,QAAQ;kBARpB,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,IAAI,EAAE;wBACJ,WAAW,EAAE,QAAQ;wBACrB,qBAAqB,EAAE,WAAW;wBAClC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\nexport type ScLegendVariant = 'legend' | 'label';\n\n@Directive({\n selector: 'legend[scLegend]',\n host: {\n 'data-slot': 'legend',\n '[attr.data-variant]': 'variant()',\n '[class]': 'class()',\n },\n})\nexport class ScLegend {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly variant = input<ScLegendVariant>('legend');\n\n protected readonly class = computed(() =>\n cn(\n 'mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -0,0 +1,91 @@
1
+ import { ChangeDetectionStrategy, Component, computed, ElementRef, inject, input, signal, ViewEncapsulation, } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import { SC_FILE_UPLOAD } from './file-upload';
4
+ import * as i0 from "@angular/core";
5
+ export class ScFileUploadDropzone {
6
+ fileUpload = inject(SC_FILE_UPLOAD);
7
+ elementRef = inject(ElementRef);
8
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
9
+ isDragging = signal(false, ...(ngDevMode ? [{ debugName: "isDragging" }] : []));
10
+ class = computed(() => cn('relative flex min-h-[150px] cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed', 'transition-colors hover:border-primary/50 hover:bg-accent/50', 'data-[dragging=true]:border-primary data-[dragging=true]:bg-accent', 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
11
+ openFilePicker() {
12
+ if (this.fileUpload.disabled())
13
+ return;
14
+ const input = this.elementRef.nativeElement.querySelector('input[type="file"]');
15
+ input?.click();
16
+ }
17
+ onFileSelect(event) {
18
+ const input = event.target;
19
+ if (input.files && input.files.length > 0) {
20
+ this.fileUpload.addFiles(input.files);
21
+ input.value = '';
22
+ }
23
+ }
24
+ onDragOver(event) {
25
+ event.preventDefault();
26
+ event.stopPropagation();
27
+ if (!this.fileUpload.disabled()) {
28
+ this.isDragging.set(true);
29
+ }
30
+ }
31
+ onDragLeave(event) {
32
+ event.preventDefault();
33
+ event.stopPropagation();
34
+ this.isDragging.set(false);
35
+ }
36
+ onDrop(event) {
37
+ event.preventDefault();
38
+ event.stopPropagation();
39
+ this.isDragging.set(false);
40
+ if (this.fileUpload.disabled())
41
+ return;
42
+ const files = event.dataTransfer?.files;
43
+ if (files && files.length > 0) {
44
+ this.fileUpload.addFiles(files);
45
+ }
46
+ }
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadDropzone, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadDropzone, isStandalone: true, selector: "[scFileUploadDropzone]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-dropzone" }, listeners: { "click": "openFilePicker()", "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" }, properties: { "class": "class()", "attr.data-dragging": "isDragging()", "attr.data-disabled": "fileUpload.disabled() || null" } }, ngImport: i0, template: `
49
+ <input
50
+ #fileInput
51
+ type="file"
52
+ class="sr-only"
53
+ [multiple]="fileUpload.multiple()"
54
+ [accept]="fileUpload.accept()"
55
+ [disabled]="fileUpload.disabled()"
56
+ (change)="onFileSelect($event)"
57
+ />
58
+ <ng-content />
59
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadDropzone, decorators: [{
62
+ type: Component,
63
+ args: [{
64
+ selector: '[scFileUploadDropzone]',
65
+ template: `
66
+ <input
67
+ #fileInput
68
+ type="file"
69
+ class="sr-only"
70
+ [multiple]="fileUpload.multiple()"
71
+ [accept]="fileUpload.accept()"
72
+ [disabled]="fileUpload.disabled()"
73
+ (change)="onFileSelect($event)"
74
+ />
75
+ <ng-content />
76
+ `,
77
+ host: {
78
+ 'data-slot': 'file-upload-dropzone',
79
+ '[class]': 'class()',
80
+ '[attr.data-dragging]': 'isDragging()',
81
+ '[attr.data-disabled]': 'fileUpload.disabled() || null',
82
+ '(click)': 'openFilePicker()',
83
+ '(dragover)': 'onDragOver($event)',
84
+ '(dragleave)': 'onDragLeave($event)',
85
+ '(drop)': 'onDrop($event)',
86
+ },
87
+ encapsulation: ViewEncapsulation.None,
88
+ changeDetection: ChangeDetectionStrategy.OnPush,
89
+ }]
90
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
91
+ //# sourceMappingURL=file-upload-dropzone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-dropzone.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-dropzone.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AA6B/C,MAAM,OAAO,oBAAoB;IACtB,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAC5B,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAExC,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC,CAAC;IAEjB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,mHAAmH,EACnH,8DAA8D,EAC9D,oEAAoE,EACpE,gEAAgE,EAChE,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;IAEF,cAAc;QACZ,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;YAAE,OAAO;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CACvD,oBAAoB,CACD,CAAC;QACtB,KAAK,EAAE,KAAK,EAAE,CAAC;IACjB,CAAC;IAED,YAAY,CAAC,KAAY;QACvB,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACtC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC;QACnB,CAAC;IACH,CAAC;IAED,UAAU,CAAC,KAAgB;QACzB,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,CAAC;YAChC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,WAAW,CAAC,KAAgB;QAC1B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,KAAgB;QACrB,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAE3B,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;YAAE,OAAO;QAEvC,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC;QACxC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;uGA1DU,oBAAoB;2FAApB,oBAAoB,4iBAzBrB;;;;;;;;;;;GAWT;;2FAcU,oBAAoB;kBA3BhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE;;;;;;;;;;;GAWT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,sBAAsB;wBACnC,SAAS,EAAE,SAAS;wBACpB,sBAAsB,EAAE,cAAc;wBACtC,sBAAsB,EAAE,+BAA+B;wBACvD,SAAS,EAAE,kBAAkB;wBAC7B,YAAY,EAAE,oBAAoB;wBAClC,aAAa,EAAE,qBAAqB;wBACpC,QAAQ,EAAE,gBAAgB;qBAC3B;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { SC_FILE_UPLOAD } from './file-upload';\n\n@Component({\n selector: '[scFileUploadDropzone]',\n template: `\n <input\n #fileInput\n type=\"file\"\n class=\"sr-only\"\n [multiple]=\"fileUpload.multiple()\"\n [accept]=\"fileUpload.accept()\"\n [disabled]=\"fileUpload.disabled()\"\n (change)=\"onFileSelect($event)\"\n />\n <ng-content />\n `,\n host: {\n 'data-slot': 'file-upload-dropzone',\n '[class]': 'class()',\n '[attr.data-dragging]': 'isDragging()',\n '[attr.data-disabled]': 'fileUpload.disabled() || null',\n '(click)': 'openFilePicker()',\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)',\n '(drop)': 'onDrop($event)',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScFileUploadDropzone {\n readonly fileUpload = inject(SC_FILE_UPLOAD);\n private readonly elementRef = inject(ElementRef);\n\n readonly classInput = input<string>('', { alias: 'class' });\n readonly isDragging = signal(false);\n\n protected readonly class = computed(() =>\n cn(\n 'relative flex min-h-[150px] cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed',\n 'transition-colors hover:border-primary/50 hover:bg-accent/50',\n 'data-[dragging=true]:border-primary data-[dragging=true]:bg-accent',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n this.classInput(),\n ),\n );\n\n openFilePicker(): void {\n if (this.fileUpload.disabled()) return;\n const input = this.elementRef.nativeElement.querySelector(\n 'input[type=\"file\"]',\n ) as HTMLInputElement;\n input?.click();\n }\n\n onFileSelect(event: Event): void {\n const input = event.target as HTMLInputElement;\n if (input.files && input.files.length > 0) {\n this.fileUpload.addFiles(input.files);\n input.value = '';\n }\n }\n\n onDragOver(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n if (!this.fileUpload.disabled()) {\n this.isDragging.set(true);\n }\n }\n\n onDragLeave(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isDragging.set(false);\n }\n\n onDrop(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isDragging.set(false);\n\n if (this.fileUpload.disabled()) return;\n\n const files = event.dataTransfer?.files;\n if (files && files.length > 0) {\n this.fileUpload.addFiles(files);\n }\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ import { computed, Directive, inject, input } from '@angular/core';
2
+ import { buttonVariants } from '../button';
3
+ import { cn } from '../../utils';
4
+ import { SC_FILE_UPLOAD } from './file-upload';
5
+ import * as i0 from "@angular/core";
6
+ export class ScFileUploadItemDelete {
7
+ fileUpload = inject(SC_FILE_UPLOAD);
8
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
9
+ fileId = input.required(...(ngDevMode ? [{ debugName: "fileId" }] : []));
10
+ class = computed(() => cn(buttonVariants({ variant: 'ghost', size: 'icon' }), 'text-muted-foreground', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
11
+ onClick() {
12
+ this.fileUpload.removeFile(this.fileId());
13
+ }
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemDelete, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadItemDelete, isStandalone: true, selector: "button[scFileUploadItemDelete]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, fileId: { classPropertyName: "fileId", publicName: "fileId", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-delete", "type": "button" }, listeners: { "click": "onClick()" }, properties: { "class": "class()" } }, ngImport: i0 });
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemDelete, decorators: [{
18
+ type: Directive,
19
+ args: [{
20
+ selector: 'button[scFileUploadItemDelete]',
21
+ host: {
22
+ 'data-slot': 'file-upload-item-delete',
23
+ type: 'button',
24
+ '[class]': 'class()',
25
+ '(click)': 'onClick()',
26
+ },
27
+ }]
28
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], fileId: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileId", required: true }] }] } });
29
+ //# sourceMappingURL=file-upload-item-delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-item-delete.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-item-delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AAW/C,MAAM,OAAO,sBAAsB;IAChB,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAE5C,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,MAAM,GAAG,KAAK,CAAC,QAAQ,iDAAU,CAAC;IAExB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,cAAc,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAClD,uBAAuB,EACvB,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;IAEF,OAAO;QACL,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5C,CAAC;uGAhBU,sBAAsB;2FAAtB,sBAAsB;;2FAAtB,sBAAsB;kBATlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,gCAAgC;oBAC1C,IAAI,EAAE;wBACJ,WAAW,EAAE,yBAAyB;wBACtC,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,SAAS;wBACpB,SAAS,EAAE,WAAW;qBACvB;iBACF","sourcesContent":["import { computed, Directive, inject, input } from '@angular/core';\nimport { buttonVariants } from '../button';\nimport { cn } from '../../utils';\nimport { SC_FILE_UPLOAD } from './file-upload';\n\n@Directive({\n selector: 'button[scFileUploadItemDelete]',\n host: {\n 'data-slot': 'file-upload-item-delete',\n type: 'button',\n '[class]': 'class()',\n '(click)': 'onClick()',\n },\n})\nexport class ScFileUploadItemDelete {\n private readonly fileUpload = inject(SC_FILE_UPLOAD);\n\n readonly classInput = input<string>('', { alias: 'class' });\n readonly fileId = input.required<string>();\n\n protected readonly class = computed(() =>\n cn(\n buttonVariants({ variant: 'ghost', size: 'icon' }),\n 'text-muted-foreground',\n this.classInput(),\n ),\n );\n\n onClick(): void {\n this.fileUpload.removeFile(this.fileId());\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 ScFileUploadItemName {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('flex-1 truncate text-sm font-medium', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemName, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadItemName, isStandalone: true, selector: "[scFileUploadItemName]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-name" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemName, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[scFileUploadItemName]',
14
+ host: {
15
+ 'data-slot': 'file-upload-item-name',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=file-upload-item-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-item-name.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-item-name.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,oBAAoB;IACtB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,qCAAqC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC7D,CAAC;uGALS,oBAAoB;2FAApB,oBAAoB;;2FAApB,oBAAoB;kBAPhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,IAAI,EAAE;wBACJ,WAAW,EAAE,uBAAuB;wBACpC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scFileUploadItemName]',\n host: {\n 'data-slot': 'file-upload-item-name',\n '[class]': 'class()',\n },\n})\nexport class ScFileUploadItemName {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('flex-1 truncate text-sm font-medium', this.classInput()),\n );\n}\n"]}
@@ -0,0 +1,51 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScFileUploadItemPreview {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ file = input.required(...(ngDevMode ? [{ debugName: "file" }] : []));
7
+ isImage = computed(() => this.file().file.type.startsWith('image/'), ...(ngDevMode ? [{ debugName: "isImage" }] : []));
8
+ previewUrl = computed(() => {
9
+ if (this.isImage()) {
10
+ return URL.createObjectURL(this.file().file);
11
+ }
12
+ return '';
13
+ }, ...(ngDevMode ? [{ debugName: "previewUrl" }] : []));
14
+ class = computed(() => cn('flex size-10 items-center justify-center overflow-hidden rounded bg-muted', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
15
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScFileUploadItemPreview, isStandalone: true, selector: "[scFileUploadItemPreview]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, file: { classPropertyName: "file", publicName: "file", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-preview" }, properties: { "class": "class()" } }, ngImport: i0, template: `
17
+ @if (isImage()) {
18
+ <img
19
+ [src]="previewUrl()"
20
+ [alt]="file().file.name"
21
+ class="size-full object-cover"
22
+ />
23
+ } @else {
24
+ <ng-content />
25
+ }
26
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemPreview, decorators: [{
29
+ type: Component,
30
+ args: [{
31
+ selector: '[scFileUploadItemPreview]',
32
+ template: `
33
+ @if (isImage()) {
34
+ <img
35
+ [src]="previewUrl()"
36
+ [alt]="file().file.name"
37
+ class="size-full object-cover"
38
+ />
39
+ } @else {
40
+ <ng-content />
41
+ }
42
+ `,
43
+ host: {
44
+ 'data-slot': 'file-upload-item-preview',
45
+ '[class]': 'class()',
46
+ },
47
+ encapsulation: ViewEncapsulation.None,
48
+ changeDetection: ChangeDetectionStrategy.OnPush,
49
+ }]
50
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], file: [{ type: i0.Input, args: [{ isSignal: true, alias: "file", required: true }] }] } });
51
+ //# sourceMappingURL=file-upload-item-preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-item-preview.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-item-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAuBjC,MAAM,OAAO,uBAAuB;IACzB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAoB,CAAC;IAEhC,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CACzC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,mDAC3C,CAAC;IAEiB,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC5C,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,OAAO,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC;QAC/C,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC,sDAAC,CAAC;IAEgB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,2EAA2E,EAC3E,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGApBS,uBAAuB;2FAAvB,uBAAuB,8bAlBxB;;;;;;;;;;GAUT;;2FAQU,uBAAuB;kBApBnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE;;;;;;;;;;GAUT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,0BAA0B;wBACvC,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 input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScFileUploadFile } from './file-upload';\n\n@Component({\n selector: '[scFileUploadItemPreview]',\n template: `\n @if (isImage()) {\n <img\n [src]=\"previewUrl()\"\n [alt]=\"file().file.name\"\n class=\"size-full object-cover\"\n />\n } @else {\n <ng-content />\n }\n `,\n host: {\n 'data-slot': 'file-upload-item-preview',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScFileUploadItemPreview {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly file = input.required<ScFileUploadFile>();\n\n protected readonly isImage = computed(() =>\n this.file().file.type.startsWith('image/'),\n );\n\n protected readonly previewUrl = computed(() => {\n if (this.isImage()) {\n return URL.createObjectURL(this.file().file);\n }\n return '';\n });\n\n protected readonly class = computed(() =>\n cn(\n 'flex size-10 items-center justify-center overflow-hidden rounded bg-muted',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -0,0 +1,34 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScFileUploadItemProgress {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ file = input.required(...(ngDevMode ? [{ debugName: "file" }] : []));
7
+ class = computed(() => cn('h-1 w-full overflow-hidden rounded-full bg-muted', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadItemProgress, isStandalone: true, selector: "[scFileUploadItemProgress]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, file: { classPropertyName: "file", publicName: "file", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-progress" }, properties: { "class": "class()" } }, ngImport: i0, template: `
10
+ <div
11
+ class="h-full rounded-full bg-primary transition-all"
12
+ [style.width.%]="file().progress || 0"
13
+ ></div>
14
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemProgress, decorators: [{
17
+ type: Component,
18
+ args: [{
19
+ selector: '[scFileUploadItemProgress]',
20
+ template: `
21
+ <div
22
+ class="h-full rounded-full bg-primary transition-all"
23
+ [style.width.%]="file().progress || 0"
24
+ ></div>
25
+ `,
26
+ host: {
27
+ 'data-slot': 'file-upload-item-progress',
28
+ '[class]': 'class()',
29
+ },
30
+ encapsulation: ViewEncapsulation.None,
31
+ changeDetection: ChangeDetectionStrategy.OnPush,
32
+ }]
33
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], file: [{ type: i0.Input, args: [{ isSignal: true, alias: "file", required: true }] }] } });
34
+ //# sourceMappingURL=file-upload-item-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-item-progress.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-item-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAkBjC,MAAM,OAAO,wBAAwB;IAC1B,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAoB,CAAC;IAEhC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,kDAAkD,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC1E,CAAC;uGANS,wBAAwB;2FAAxB,wBAAwB,gcAbzB;;;;;GAKT;;2FAQU,wBAAwB;kBAfpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,4BAA4B;oBACtC,QAAQ,EAAE;;;;;GAKT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,2BAA2B;wBACxC,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 input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScFileUploadFile } from './file-upload';\n\n@Component({\n selector: '[scFileUploadItemProgress]',\n template: `\n <div\n class=\"h-full rounded-full bg-primary transition-all\"\n [style.width.%]=\"file().progress || 0\"\n ></div>\n `,\n host: {\n 'data-slot': 'file-upload-item-progress',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScFileUploadItemProgress {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly file = input.required<ScFileUploadFile>();\n\n protected readonly class = computed(() =>\n cn('h-1 w-full overflow-hidden rounded-full bg-muted', this.classInput()),\n );\n}\n"]}
@@ -0,0 +1,37 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScFileUploadItemSize {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ file = input.required(...(ngDevMode ? [{ debugName: "file" }] : []));
7
+ formattedSize = computed(() => {
8
+ const bytes = this.file().file.size;
9
+ if (bytes === 0)
10
+ return '0 B';
11
+ const k = 1024;
12
+ const sizes = ['B', 'KB', 'MB', 'GB'];
13
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
14
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + ' ' + sizes[i];
15
+ }, ...(ngDevMode ? [{ debugName: "formattedSize" }] : []));
16
+ class = computed(() => cn('text-xs text-muted-foreground', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemSize, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadItemSize, isStandalone: true, selector: "[scFileUploadItemSize]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, file: { classPropertyName: "file", publicName: "file", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-size" }, properties: { "class": "class()" } }, ngImport: i0, template: `
19
+ {{ formattedSize() }}
20
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemSize, decorators: [{
23
+ type: Component,
24
+ args: [{
25
+ selector: '[scFileUploadItemSize]',
26
+ template: `
27
+ {{ formattedSize() }}
28
+ `,
29
+ host: {
30
+ 'data-slot': 'file-upload-item-size',
31
+ '[class]': 'class()',
32
+ },
33
+ encapsulation: ViewEncapsulation.None,
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
+ }]
36
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], file: [{ type: i0.Input, args: [{ isSignal: true, alias: "file", required: true }] }] } });
37
+ //# sourceMappingURL=file-upload-item-size.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-item-size.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-item-size.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAejC,MAAM,OAAO,oBAAoB;IACtB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAoB,CAAC;IAEhC,aAAa,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;QACpC,IAAI,KAAK,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QAC9B,MAAM,CAAC,GAAG,IAAI,CAAC;QACf,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACtC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,OAAO,UAAU,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC,yDAAC,CAAC;IAEgB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,+BAA+B,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACvD,CAAC;uGAfS,oBAAoB;2FAApB,oBAAoB,wbAVrB;;GAET;;2FAQU,oBAAoB;kBAZhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE;;GAET;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,uBAAuB;wBACpC,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 input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScFileUploadFile } from './file-upload';\n\n@Component({\n selector: '[scFileUploadItemSize]',\n template: `\n {{ formattedSize() }}\n `,\n host: {\n 'data-slot': 'file-upload-item-size',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScFileUploadItemSize {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly file = input.required<ScFileUploadFile>();\n\n protected readonly formattedSize = computed(() => {\n const bytes = this.file().file.size;\n if (bytes === 0) return '0 B';\n const k = 1024;\n const sizes = ['B', 'KB', 'MB', 'GB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + ' ' + sizes[i];\n });\n\n protected readonly class = computed(() =>\n cn('text-xs text-muted-foreground', this.classInput()),\n );\n}\n"]}