@ojiepermana/angular 22.1.13 → 22.2.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 (252) hide show
  1. package/README.md +8 -6
  2. package/SUPPORT.md +3 -3
  3. package/chart/README.md +1 -1
  4. package/component/README.md +2 -2
  5. package/component/calendar/README.md +3 -15
  6. package/component/drawer/README.md +1 -2
  7. package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
  8. package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
  9. package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
  10. package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
  11. package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
  12. package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
  13. package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
  14. package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
  15. package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
  16. package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
  17. package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
  18. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
  19. package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
  20. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
  21. package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
  22. package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
  23. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
  24. package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
  25. package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
  26. package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
  27. package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
  28. package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
  29. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
  30. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
  31. package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
  32. package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
  33. package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
  34. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
  35. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
  36. package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
  37. package/fesm2022/ojiepermana-angular-component-drawer.mjs +2 -5
  38. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
  39. package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
  40. package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
  41. package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
  42. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
  43. package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
  44. package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
  45. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
  46. package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
  47. package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
  48. package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
  49. package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
  50. package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
  51. package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
  52. package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
  53. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
  54. package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
  55. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
  56. package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
  57. package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
  58. package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
  59. package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
  60. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
  61. package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
  62. package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
  63. package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
  64. package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
  65. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
  66. package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
  67. package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
  68. package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
  69. package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
  70. package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
  71. package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
  72. package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
  73. package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
  74. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
  75. package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
  76. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
  77. package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
  78. package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
  79. package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
  80. package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
  81. package/fesm2022/ojiepermana-angular-component.mjs +0 -10
  82. package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
  83. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
  84. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-BKCeWzml.mjs +129 -0
  85. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DFEJK2jD.mjs +811 -0
  86. package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-Cd-jh6tg.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-mpK9Ar08.mjs} +387 -183
  87. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BPgH7FJk.mjs +650 -0
  88. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-DMpYcD9t.mjs +662 -0
  89. package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-Basp5SIk.mjs +1228 -0
  90. package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-YUzHI9Pj.mjs +311 -0
  91. package/fesm2022/ojiepermana-angular-navigation-service.mjs +542 -724
  92. package/fesm2022/ojiepermana-angular-navigation-types.mjs +27 -56
  93. package/fesm2022/ojiepermana-angular-navigation.mjs +3052 -4
  94. package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
  95. package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1115 -737
  96. package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
  97. package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
  98. package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1719 -552
  99. package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -491
  100. package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
  101. package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
  102. package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
  103. package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
  104. package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
  105. package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
  106. package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
  107. package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
  108. package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
  109. package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
  110. package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
  111. package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
  112. package/fesm2022/ojiepermana-angular.mjs +5 -24
  113. package/navigation/README.md +1 -1
  114. package/package.json +16 -12
  115. package/sdk/README.md +1 -1
  116. package/sdk/src/writer/index.js +2 -2
  117. package/theme/README.md +1 -1
  118. package/theme/layout/README.md +2 -4
  119. package/theme/page/README.md +50 -0
  120. package/theme/styles/README.md +10 -10
  121. package/theme/styles/css/base/prefers-dark.css +1 -1
  122. package/theme/styles/css/base/status.css +1 -1
  123. package/theme/styles/css/color/amber.css +1 -1
  124. package/theme/styles/css/color/blue.css +1 -1
  125. package/theme/styles/css/color/cyan.css +1 -1
  126. package/theme/styles/css/color/emerald.css +1 -1
  127. package/theme/styles/css/color/fuchsia.css +1 -1
  128. package/theme/styles/css/color/green.css +1 -1
  129. package/theme/styles/css/color/indigo.css +1 -1
  130. package/theme/styles/css/color/lime.css +1 -1
  131. package/theme/styles/css/color/orange.css +1 -1
  132. package/theme/styles/css/color/pink.css +1 -1
  133. package/theme/styles/css/color/purple.css +1 -1
  134. package/theme/styles/css/color/red.css +1 -1
  135. package/theme/styles/css/color/rose.css +1 -1
  136. package/theme/styles/css/color/sky.css +1 -1
  137. package/theme/styles/css/color/teal.css +1 -1
  138. package/theme/styles/css/color/violet.css +1 -1
  139. package/theme/styles/css/color/yellow.css +1 -1
  140. package/theme/styles/css/neutral/gray.css +1 -1
  141. package/theme/styles/css/neutral/mauve.css +1 -1
  142. package/theme/styles/css/neutral/mist.css +1 -1
  143. package/theme/styles/css/neutral/neutral.css +1 -1
  144. package/theme/styles/css/neutral/olive.css +1 -1
  145. package/theme/styles/css/neutral/slate.css +1 -1
  146. package/theme/styles/css/neutral/stone.css +1 -1
  147. package/theme/styles/css/neutral/taupe.css +1 -1
  148. package/theme/styles/css/neutral/zinc.css +1 -1
  149. package/types/ojiepermana-angular-chart-area.d.ts +126 -63
  150. package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
  151. package/types/ojiepermana-angular-chart-core.d.ts +409 -398
  152. package/types/ojiepermana-angular-chart-line.d.ts +141 -68
  153. package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
  154. package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
  155. package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
  156. package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
  157. package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
  158. package/types/ojiepermana-angular-chart.d.ts +3 -2
  159. package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
  160. package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
  161. package/types/ojiepermana-angular-component-alert.d.ts +69 -39
  162. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
  163. package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
  164. package/types/ojiepermana-angular-component-badge.d.ts +36 -24
  165. package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
  166. package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
  167. package/types/ojiepermana-angular-component-button.d.ts +44 -27
  168. package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
  169. package/types/ojiepermana-angular-component-card.d.ts +112 -63
  170. package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
  171. package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
  172. package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
  173. package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
  174. package/types/ojiepermana-angular-component-command.d.ts +206 -121
  175. package/types/ojiepermana-angular-component-composer.d.ts +184 -84
  176. package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
  177. package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
  178. package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
  179. package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
  180. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
  181. package/types/ojiepermana-angular-component-editor.d.ts +215 -117
  182. package/types/ojiepermana-angular-component-empty.d.ts +80 -45
  183. package/types/ojiepermana-angular-component-form.d.ts +185 -121
  184. package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
  185. package/types/ojiepermana-angular-component-icon.d.ts +87 -57
  186. package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
  187. package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
  188. package/types/ojiepermana-angular-component-input.d.ts +27 -17
  189. package/types/ojiepermana-angular-component-item.d.ts +160 -84
  190. package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
  191. package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
  192. package/types/ojiepermana-angular-component-label.d.ts +19 -11
  193. package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
  194. package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
  195. package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
  196. package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
  197. package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
  198. package/types/ojiepermana-angular-component-popover.d.ts +94 -64
  199. package/types/ojiepermana-angular-component-progress.d.ts +45 -17
  200. package/types/ojiepermana-angular-component-radio.d.ts +129 -53
  201. package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
  202. package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
  203. package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
  204. package/types/ojiepermana-angular-component-select.d.ts +94 -77
  205. package/types/ojiepermana-angular-component-separator.d.ts +26 -14
  206. package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
  207. package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
  208. package/types/ojiepermana-angular-component-slider.d.ts +140 -75
  209. package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
  210. package/types/ojiepermana-angular-component-switch.d.ts +97 -40
  211. package/types/ojiepermana-angular-component-table.d.ts +102 -50
  212. package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
  213. package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
  214. package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
  215. package/types/ojiepermana-angular-component-toast.d.ts +51 -55
  216. package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
  217. package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
  218. package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
  219. package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
  220. package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
  221. package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
  222. package/types/ojiepermana-angular-component-utils.d.ts +2 -2
  223. package/types/ojiepermana-angular-component.d.ts +1 -2
  224. package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
  225. package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
  226. package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
  227. package/types/ojiepermana-angular-navigation-types.d.ts +121 -125
  228. package/types/ojiepermana-angular-navigation.d.ts +663 -374
  229. package/types/ojiepermana-angular-sdk.d.ts +69 -71
  230. package/types/ojiepermana-angular-theme-component-settings.d.ts +115 -83
  231. package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
  232. package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
  233. package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +399 -187
  234. package/types/ojiepermana-angular-theme-layout.d.ts +201 -112
  235. package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
  236. package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
  237. package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
  238. package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
  239. package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
  240. package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
  241. package/types/ojiepermana-angular-theme-page.d.ts +7 -5
  242. package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
  243. package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
  244. package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
  245. package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
  246. package/types/ojiepermana-angular-theme.d.ts +1 -2
  247. package/types/ojiepermana-angular.d.ts +5 -5
  248. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-CDBxQ8rk.mjs +0 -91
  249. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DBQHdvGa.mjs +0 -512
  250. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BCGvhoYj.mjs +0 -404
  251. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-Dk_03e-6.mjs +0 -466
  252. package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-DNKU6viC.mjs +0 -2642
@@ -1,268 +1,720 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, input, ElementRef, computed, Component } from '@angular/core';
3
- import { cn } from '@ojiepermana/angular/component/utils/core';
4
- import * as i1 from '@ojiepermana/angular/component/utils/scale';
5
- import { ComponentScaleDirective } from '@ojiepermana/angular/component/utils/scale';
6
- import { cva } from 'class-variance-authority';
7
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, ElementRef, computed, inject, input } from "@angular/core";
3
+ import { cn } from "@ojiepermana/angular/component/utils/core";
4
+ import * as i1 from "@ojiepermana/angular/component/utils/scale";
5
+ import { ComponentScaleDirective } from "@ojiepermana/angular/component/utils/scale";
6
+ import { cva } from "class-variance-authority";
8
7
  const itemVariants = cva([
9
- 'flex w-full flex-wrap items-center gap-x-3 gap-y-3',
10
- 'text-foreground',
11
- '[&[href]]:no-underline',
12
- ].join(' '), {
13
- variants: {
14
- variant: {
15
- default: 'bg-transparent',
16
- outline: 'rounded-xl border border-border bg-background px-4 py-3 shadow-sm',
17
- muted: 'rounded-xl bg-muted/50 px-4 py-3',
18
- },
19
- size: {
20
- default: 'text-sm',
21
- sm: 'gap-x-2.5 gap-y-2 text-sm',
22
- xs: 'gap-x-2 gap-y-2 text-xs',
23
- },
24
- interactive: {
25
- true: 'cursor-pointer rounded-xl transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',
26
- false: '',
27
- },
28
- },
29
- defaultVariants: {
30
- variant: 'default',
31
- size: 'default',
32
- interactive: false,
33
- },
8
+ "flex w-full flex-wrap items-center gap-x-3 gap-y-3",
9
+ "text-foreground",
10
+ "[&[href]]:no-underline"
11
+ ].join(" "), {
12
+ variants: {
13
+ variant: {
14
+ default: "bg-transparent",
15
+ outline: "rounded-xl border border-border bg-background px-4 py-3 shadow-sm",
16
+ muted: "rounded-xl bg-muted/50 px-4 py-3"
17
+ },
18
+ size: {
19
+ default: "text-sm",
20
+ sm: "gap-x-2.5 gap-y-2 text-sm",
21
+ xs: "gap-x-2 gap-y-2 text-xs"
22
+ },
23
+ interactive: {
24
+ true: "cursor-pointer rounded-xl transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
25
+ false: ""
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ variant: "default",
30
+ size: "default",
31
+ interactive: false
32
+ }
34
33
  });
35
- const itemMediaVariants = cva('flex shrink-0 items-center justify-center text-muted-foreground', {
36
- variants: {
37
- variant: {
38
- default: '[&>svg]:size-5 [&>svg]:shrink-0',
39
- icon: 'border border-border bg-muted/50 [&>svg]:size-4 [&>svg]:shrink-0',
40
- image: 'overflow-hidden [&>img]:h-full [&>img]:w-full [&>img]:object-cover',
41
- },
42
- size: {
43
- default: '',
44
- sm: '',
45
- xs: '',
46
- },
47
- },
48
- compoundVariants: [
49
- { variant: 'icon', size: 'default', class: 'size-10 rounded-lg' },
50
- { variant: 'icon', size: 'sm', class: 'size-9 rounded-md' },
51
- { variant: 'icon', size: 'xs', class: 'size-8 rounded-md' },
52
- { variant: 'image', size: 'default', class: 'h-10 w-10 rounded-md' },
53
- { variant: 'image', size: 'sm', class: 'h-9 w-9 rounded-md' },
54
- { variant: 'image', size: 'xs', class: 'h-8 w-8 rounded-sm' },
55
- ],
56
- defaultVariants: {
57
- variant: 'default',
58
- size: 'default',
59
- },
34
+ const itemMediaVariants = cva("flex shrink-0 items-center justify-center text-muted-foreground", {
35
+ variants: {
36
+ variant: {
37
+ default: "[&>svg]:size-5 [&>svg]:shrink-0",
38
+ icon: "border border-border bg-muted/50 [&>svg]:size-4 [&>svg]:shrink-0",
39
+ image: "overflow-hidden [&>img]:h-full [&>img]:w-full [&>img]:object-cover"
40
+ },
41
+ size: {
42
+ default: "",
43
+ sm: "",
44
+ xs: ""
45
+ }
46
+ },
47
+ compoundVariants: [
48
+ {
49
+ variant: "icon",
50
+ size: "default",
51
+ class: "size-10 rounded-lg"
52
+ },
53
+ {
54
+ variant: "icon",
55
+ size: "sm",
56
+ class: "size-9 rounded-md"
57
+ },
58
+ {
59
+ variant: "icon",
60
+ size: "xs",
61
+ class: "size-8 rounded-md"
62
+ },
63
+ {
64
+ variant: "image",
65
+ size: "default",
66
+ class: "h-10 w-10 rounded-md"
67
+ },
68
+ {
69
+ variant: "image",
70
+ size: "sm",
71
+ class: "h-9 w-9 rounded-md"
72
+ },
73
+ {
74
+ variant: "image",
75
+ size: "xs",
76
+ class: "h-8 w-8 rounded-sm"
77
+ }
78
+ ],
79
+ defaultVariants: {
80
+ variant: "default",
81
+ size: "default"
82
+ }
60
83
  });
61
-
62
84
  const ITEM_TITLE_CLASSES = {
63
- default: 'text-sm leading-5',
64
- sm: 'text-sm leading-5',
65
- xs: 'text-xs leading-4',
85
+ default: "text-sm leading-5",
86
+ sm: "text-sm leading-5",
87
+ xs: "text-xs leading-4"
66
88
  };
67
89
  const ITEM_DESCRIPTION_CLASSES = {
68
- default: 'text-sm leading-5',
69
- sm: 'text-xs leading-4',
70
- xs: 'text-xs leading-4',
90
+ default: "text-sm leading-5",
91
+ sm: "text-xs leading-4",
92
+ xs: "text-xs leading-4"
71
93
  };
72
- class ItemComponent {
73
- componentScale = inject(ComponentScaleDirective);
74
- radius = this.componentScale.radius;
75
- density = this.componentScale.density;
76
- variant = input('default', /* @ts-ignore */
77
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
78
- size = input('default', /* @ts-ignore */
79
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
80
- class = input('', /* @ts-ignore */
81
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
82
- host = inject(ElementRef);
83
- interactive = ['a', 'button'].includes(this.host.nativeElement.tagName.toLowerCase());
84
- classes = computed(() => cn(itemVariants({ variant: this.variant(), size: this.size(), interactive: this.interactive }), this.class()), /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
86
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemComponent, isStandalone: true, selector: "Item, [Item]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.data-interactive": "interactive ? \"true\" : null" } }, hostDirectives: [{ directive: i1.ComponentScaleDirective, inputs: ["radius", "radius", "density", "density"] }], ngImport: i0, template: `<ng-content />`, isInline: true });
88
- }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemComponent, decorators: [{
90
- type: Component,
91
- args: [{
92
- selector: 'Item, [Item]',
93
- hostDirectives: [
94
- {
95
- directive: ComponentScaleDirective,
96
- inputs: ['radius', 'density'],
97
- },
98
- ],
99
- host: {
100
- '[class]': 'classes()',
101
- '[attr.data-size]': 'size()',
102
- '[attr.data-variant]': 'variant()',
103
- '[attr.data-interactive]': 'interactive ? "true" : null',
104
- },
105
- template: `<ng-content />`,
106
- }]
107
- }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
108
- class ItemGroupComponent {
109
- class = input('', /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
111
- classes = computed(() => cn('flex w-full flex-col gap-3', this.class()), /* @ts-ignore */
112
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
113
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
114
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemGroupComponent, isStandalone: true, selector: "ItemGroup", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
115
- }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemGroupComponent, decorators: [{
117
- type: Component,
118
- args: [{
119
- selector: 'ItemGroup',
120
- host: { '[class]': 'classes()' },
121
- template: `<ng-content />`,
122
- }]
123
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
124
- class ItemSeparatorComponent {
125
- class = input('', /* @ts-ignore */
126
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
127
- classes = computed(() => cn('block h-px w-full bg-border', this.class()), /* @ts-ignore */
128
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
129
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
130
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemSeparatorComponent, isStandalone: true, selector: "ItemSeparator", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true });
131
- }
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemSeparatorComponent, decorators: [{
133
- type: Component,
134
- args: [{
135
- selector: 'ItemSeparator',
136
- host: {
137
- '[class]': 'classes()',
138
- role: 'separator',
139
- },
140
- template: '',
141
- }]
142
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
143
- class ItemHeaderComponent {
144
- class = input('', /* @ts-ignore */
145
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
146
- classes = computed(() => cn('basis-full overflow-hidden rounded-lg', this.class()), /* @ts-ignore */
147
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
148
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
149
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemHeaderComponent, isStandalone: true, selector: "ItemHeader", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
150
- }
151
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemHeaderComponent, decorators: [{
152
- type: Component,
153
- args: [{
154
- selector: 'ItemHeader',
155
- host: { '[class]': 'classes()' },
156
- template: `<ng-content />`,
157
- }]
158
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
159
- class ItemMediaComponent {
160
- variant = input('default', /* @ts-ignore */
161
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
162
- class = input('', /* @ts-ignore */
163
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
164
- item = inject(ItemComponent, { optional: true });
165
- classes = computed(() => cn(itemMediaVariants({ variant: this.variant(), size: this.item?.size() ?? 'default' }), this.class()), /* @ts-ignore */
166
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
167
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemMediaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
168
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemMediaComponent, isStandalone: true, selector: "ItemMedia", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-variant": "variant()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
169
- }
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemMediaComponent, decorators: [{
171
- type: Component,
172
- args: [{
173
- selector: 'ItemMedia',
174
- host: {
175
- '[class]': 'classes()',
176
- '[attr.data-variant]': 'variant()',
177
- },
178
- template: `<ng-content />`,
179
- }]
180
- }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
181
- class ItemContentComponent {
182
- class = input('', /* @ts-ignore */
183
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
184
- classes = computed(() => cn('flex min-w-0 flex-1 basis-0 flex-col justify-center gap-0.5', this.class()), /* @ts-ignore */
185
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
186
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
187
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemContentComponent, isStandalone: true, selector: "ItemContent", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
188
- }
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemContentComponent, decorators: [{
190
- type: Component,
191
- args: [{
192
- selector: 'ItemContent',
193
- host: { '[class]': 'classes()' },
194
- template: `<ng-content />`,
195
- }]
196
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
197
- class ItemTitleComponent {
198
- class = input('', /* @ts-ignore */
199
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
200
- item = inject(ItemComponent, { optional: true });
201
- classes = computed(() => cn('block min-w-0 truncate font-medium text-foreground', ITEM_TITLE_CLASSES[this.item?.size() ?? 'default'], this.class()), /* @ts-ignore */
202
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
203
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
204
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemTitleComponent, isStandalone: true, selector: "ItemTitle", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
205
- }
206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemTitleComponent, decorators: [{
207
- type: Component,
208
- args: [{
209
- selector: 'ItemTitle',
210
- host: { '[class]': 'classes()' },
211
- template: `<ng-content />`,
212
- }]
213
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
214
- class ItemDescriptionComponent {
215
- class = input('', /* @ts-ignore */
216
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
217
- item = inject(ItemComponent, { optional: true });
218
- classes = computed(() => cn('block min-w-0 text-muted-foreground', ITEM_DESCRIPTION_CLASSES[this.item?.size() ?? 'default'], this.class()), /* @ts-ignore */
219
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
220
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
221
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemDescriptionComponent, isStandalone: true, selector: "ItemDescription", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
222
- }
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemDescriptionComponent, decorators: [{
224
- type: Component,
225
- args: [{
226
- selector: 'ItemDescription',
227
- host: { '[class]': 'classes()' },
228
- template: `<ng-content />`,
229
- }]
230
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
231
- class ItemActionsComponent {
232
- class = input('', /* @ts-ignore */
233
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
234
- classes = computed(() => cn('ms-auto flex shrink-0 items-center gap-2', this.class()), /* @ts-ignore */
235
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
236
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
237
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemActionsComponent, isStandalone: true, selector: "ItemActions", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
238
- }
239
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemActionsComponent, decorators: [{
240
- type: Component,
241
- args: [{
242
- selector: 'ItemActions',
243
- host: { '[class]': 'classes()' },
244
- template: `<ng-content />`,
245
- }]
246
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
247
- class ItemFooterComponent {
248
- class = input('', /* @ts-ignore */
249
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
250
- classes = computed(() => cn('basis-full text-sm text-muted-foreground', this.class()), /* @ts-ignore */
251
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
252
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
253
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: ItemFooterComponent, isStandalone: true, selector: "ItemFooter", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
254
- }
255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ItemFooterComponent, decorators: [{
256
- type: Component,
257
- args: [{
258
- selector: 'ItemFooter',
259
- host: { '[class]': 'classes()' },
260
- template: `<ng-content />`,
261
- }]
262
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
263
-
264
- /**
265
- * Generated bundle index. Do not edit.
266
- */
267
-
268
- export { ItemActionsComponent, ItemComponent, ItemContentComponent, ItemDescriptionComponent, ItemFooterComponent, ItemGroupComponent, ItemHeaderComponent, ItemMediaComponent, ItemSeparatorComponent, ItemTitleComponent, itemMediaVariants, itemVariants };
94
+ var ItemComponent = class ItemComponent {
95
+ componentScale = inject(ComponentScaleDirective);
96
+ radius = this.componentScale.radius;
97
+ density = this.componentScale.density;
98
+ variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
99
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
100
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
101
+ host = inject(ElementRef);
102
+ interactive = ["a", "button"].includes(this.host.nativeElement.tagName.toLowerCase());
103
+ classes = computed(() => cn(itemVariants({
104
+ variant: this.variant(),
105
+ size: this.size(),
106
+ interactive: this.interactive
107
+ }), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
108
+ static ɵfac = i0.ɵɵngDeclareFactory({
109
+ minVersion: "12.0.0",
110
+ version: "22.2.0",
111
+ ngImport: i0,
112
+ type: ItemComponent,
113
+ deps: [],
114
+ target: i0.ɵɵFactoryTarget.Component
115
+ });
116
+ static ɵcmp = i0.ɵɵngDeclareComponent({
117
+ minVersion: "17.1.0",
118
+ version: "22.2.0",
119
+ type: ItemComponent,
120
+ isStandalone: true,
121
+ selector: "Item, [Item]",
122
+ inputs: {
123
+ variant: {
124
+ classPropertyName: "variant",
125
+ publicName: "variant",
126
+ isSignal: true,
127
+ isRequired: false,
128
+ transformFunction: null
129
+ },
130
+ size: {
131
+ classPropertyName: "size",
132
+ publicName: "size",
133
+ isSignal: true,
134
+ isRequired: false,
135
+ transformFunction: null
136
+ },
137
+ class: {
138
+ classPropertyName: "class",
139
+ publicName: "class",
140
+ isSignal: true,
141
+ isRequired: false,
142
+ transformFunction: null
143
+ }
144
+ },
145
+ host: { properties: {
146
+ "class": "classes()",
147
+ "attr.data-size": "size()",
148
+ "attr.data-variant": "variant()",
149
+ "attr.data-interactive": "interactive ? \"true\" : null"
150
+ } },
151
+ hostDirectives: [{
152
+ directive: i1.ComponentScaleDirective,
153
+ inputs: [
154
+ "radius",
155
+ "radius",
156
+ "density",
157
+ "density"
158
+ ]
159
+ }],
160
+ ngImport: i0,
161
+ template: `<ng-content />`,
162
+ isInline: true
163
+ });
164
+ };
165
+ i0.ɵɵngDeclareClassMetadata({
166
+ minVersion: "12.0.0",
167
+ version: "22.2.0",
168
+ ngImport: i0,
169
+ type: ItemComponent,
170
+ decorators: [{
171
+ type: Component,
172
+ args: [{
173
+ selector: "Item, [Item]",
174
+ hostDirectives: [{
175
+ directive: ComponentScaleDirective,
176
+ inputs: ["radius", "density"]
177
+ }],
178
+ host: {
179
+ "[class]": "classes()",
180
+ "[attr.data-size]": "size()",
181
+ "[attr.data-variant]": "variant()",
182
+ "[attr.data-interactive]": "interactive ? \"true\" : null"
183
+ },
184
+ template: `<ng-content />`
185
+ }]
186
+ }],
187
+ propDecorators: {
188
+ variant: [{
189
+ type: i0.Input,
190
+ args: [{
191
+ isSignal: true,
192
+ alias: "variant",
193
+ required: false
194
+ }]
195
+ }],
196
+ size: [{
197
+ type: i0.Input,
198
+ args: [{
199
+ isSignal: true,
200
+ alias: "size",
201
+ required: false
202
+ }]
203
+ }],
204
+ class: [{
205
+ type: i0.Input,
206
+ args: [{
207
+ isSignal: true,
208
+ alias: "class",
209
+ required: false
210
+ }]
211
+ }]
212
+ }
213
+ });
214
+ var ItemGroupComponent = class ItemGroupComponent {
215
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
216
+ classes = computed(() => cn("flex w-full flex-col gap-3", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
217
+ static ɵfac = i0.ɵɵngDeclareFactory({
218
+ minVersion: "12.0.0",
219
+ version: "22.2.0",
220
+ ngImport: i0,
221
+ type: ItemGroupComponent,
222
+ deps: [],
223
+ target: i0.ɵɵFactoryTarget.Component
224
+ });
225
+ static ɵcmp = i0.ɵɵngDeclareComponent({
226
+ minVersion: "17.1.0",
227
+ version: "22.2.0",
228
+ type: ItemGroupComponent,
229
+ isStandalone: true,
230
+ selector: "ItemGroup",
231
+ inputs: { class: {
232
+ classPropertyName: "class",
233
+ publicName: "class",
234
+ isSignal: true,
235
+ isRequired: false,
236
+ transformFunction: null
237
+ } },
238
+ host: { properties: { "class": "classes()" } },
239
+ ngImport: i0,
240
+ template: `<ng-content />`,
241
+ isInline: true
242
+ });
243
+ };
244
+ i0.ɵɵngDeclareClassMetadata({
245
+ minVersion: "12.0.0",
246
+ version: "22.2.0",
247
+ ngImport: i0,
248
+ type: ItemGroupComponent,
249
+ decorators: [{
250
+ type: Component,
251
+ args: [{
252
+ selector: "ItemGroup",
253
+ host: { "[class]": "classes()" },
254
+ template: `<ng-content />`
255
+ }]
256
+ }],
257
+ propDecorators: { class: [{
258
+ type: i0.Input,
259
+ args: [{
260
+ isSignal: true,
261
+ alias: "class",
262
+ required: false
263
+ }]
264
+ }] }
265
+ });
266
+ var ItemSeparatorComponent = class ItemSeparatorComponent {
267
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
268
+ classes = computed(() => cn("block h-px w-full bg-border", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
269
+ static ɵfac = i0.ɵɵngDeclareFactory({
270
+ minVersion: "12.0.0",
271
+ version: "22.2.0",
272
+ ngImport: i0,
273
+ type: ItemSeparatorComponent,
274
+ deps: [],
275
+ target: i0.ɵɵFactoryTarget.Component
276
+ });
277
+ static ɵcmp = i0.ɵɵngDeclareComponent({
278
+ minVersion: "17.1.0",
279
+ version: "22.2.0",
280
+ type: ItemSeparatorComponent,
281
+ isStandalone: true,
282
+ selector: "ItemSeparator",
283
+ inputs: { class: {
284
+ classPropertyName: "class",
285
+ publicName: "class",
286
+ isSignal: true,
287
+ isRequired: false,
288
+ transformFunction: null
289
+ } },
290
+ host: {
291
+ attributes: { "role": "separator" },
292
+ properties: { "class": "classes()" }
293
+ },
294
+ ngImport: i0,
295
+ template: "",
296
+ isInline: true
297
+ });
298
+ };
299
+ i0.ɵɵngDeclareClassMetadata({
300
+ minVersion: "12.0.0",
301
+ version: "22.2.0",
302
+ ngImport: i0,
303
+ type: ItemSeparatorComponent,
304
+ decorators: [{
305
+ type: Component,
306
+ args: [{
307
+ selector: "ItemSeparator",
308
+ host: {
309
+ "[class]": "classes()",
310
+ role: "separator"
311
+ },
312
+ template: ""
313
+ }]
314
+ }],
315
+ propDecorators: { class: [{
316
+ type: i0.Input,
317
+ args: [{
318
+ isSignal: true,
319
+ alias: "class",
320
+ required: false
321
+ }]
322
+ }] }
323
+ });
324
+ var ItemHeaderComponent = class ItemHeaderComponent {
325
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
326
+ classes = computed(() => cn("basis-full overflow-hidden rounded-lg", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
327
+ static ɵfac = i0.ɵɵngDeclareFactory({
328
+ minVersion: "12.0.0",
329
+ version: "22.2.0",
330
+ ngImport: i0,
331
+ type: ItemHeaderComponent,
332
+ deps: [],
333
+ target: i0.ɵɵFactoryTarget.Component
334
+ });
335
+ static ɵcmp = i0.ɵɵngDeclareComponent({
336
+ minVersion: "17.1.0",
337
+ version: "22.2.0",
338
+ type: ItemHeaderComponent,
339
+ isStandalone: true,
340
+ selector: "ItemHeader",
341
+ inputs: { class: {
342
+ classPropertyName: "class",
343
+ publicName: "class",
344
+ isSignal: true,
345
+ isRequired: false,
346
+ transformFunction: null
347
+ } },
348
+ host: { properties: { "class": "classes()" } },
349
+ ngImport: i0,
350
+ template: `<ng-content />`,
351
+ isInline: true
352
+ });
353
+ };
354
+ i0.ɵɵngDeclareClassMetadata({
355
+ minVersion: "12.0.0",
356
+ version: "22.2.0",
357
+ ngImport: i0,
358
+ type: ItemHeaderComponent,
359
+ decorators: [{
360
+ type: Component,
361
+ args: [{
362
+ selector: "ItemHeader",
363
+ host: { "[class]": "classes()" },
364
+ template: `<ng-content />`
365
+ }]
366
+ }],
367
+ propDecorators: { class: [{
368
+ type: i0.Input,
369
+ args: [{
370
+ isSignal: true,
371
+ alias: "class",
372
+ required: false
373
+ }]
374
+ }] }
375
+ });
376
+ var ItemMediaComponent = class ItemMediaComponent {
377
+ variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
378
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
379
+ item = inject(ItemComponent, { optional: true });
380
+ classes = computed(() => cn(itemMediaVariants({
381
+ variant: this.variant(),
382
+ size: this.item?.size() ?? "default"
383
+ }), this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
384
+ static ɵfac = i0.ɵɵngDeclareFactory({
385
+ minVersion: "12.0.0",
386
+ version: "22.2.0",
387
+ ngImport: i0,
388
+ type: ItemMediaComponent,
389
+ deps: [],
390
+ target: i0.ɵɵFactoryTarget.Component
391
+ });
392
+ static ɵcmp = i0.ɵɵngDeclareComponent({
393
+ minVersion: "17.1.0",
394
+ version: "22.2.0",
395
+ type: ItemMediaComponent,
396
+ isStandalone: true,
397
+ selector: "ItemMedia",
398
+ inputs: {
399
+ variant: {
400
+ classPropertyName: "variant",
401
+ publicName: "variant",
402
+ isSignal: true,
403
+ isRequired: false,
404
+ transformFunction: null
405
+ },
406
+ class: {
407
+ classPropertyName: "class",
408
+ publicName: "class",
409
+ isSignal: true,
410
+ isRequired: false,
411
+ transformFunction: null
412
+ }
413
+ },
414
+ host: { properties: {
415
+ "class": "classes()",
416
+ "attr.data-variant": "variant()"
417
+ } },
418
+ ngImport: i0,
419
+ template: `<ng-content />`,
420
+ isInline: true
421
+ });
422
+ };
423
+ i0.ɵɵngDeclareClassMetadata({
424
+ minVersion: "12.0.0",
425
+ version: "22.2.0",
426
+ ngImport: i0,
427
+ type: ItemMediaComponent,
428
+ decorators: [{
429
+ type: Component,
430
+ args: [{
431
+ selector: "ItemMedia",
432
+ host: {
433
+ "[class]": "classes()",
434
+ "[attr.data-variant]": "variant()"
435
+ },
436
+ template: `<ng-content />`
437
+ }]
438
+ }],
439
+ propDecorators: {
440
+ variant: [{
441
+ type: i0.Input,
442
+ args: [{
443
+ isSignal: true,
444
+ alias: "variant",
445
+ required: false
446
+ }]
447
+ }],
448
+ class: [{
449
+ type: i0.Input,
450
+ args: [{
451
+ isSignal: true,
452
+ alias: "class",
453
+ required: false
454
+ }]
455
+ }]
456
+ }
457
+ });
458
+ var ItemContentComponent = class ItemContentComponent {
459
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
460
+ classes = computed(() => cn("flex min-w-0 flex-1 basis-0 flex-col justify-center gap-0.5", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
461
+ static ɵfac = i0.ɵɵngDeclareFactory({
462
+ minVersion: "12.0.0",
463
+ version: "22.2.0",
464
+ ngImport: i0,
465
+ type: ItemContentComponent,
466
+ deps: [],
467
+ target: i0.ɵɵFactoryTarget.Component
468
+ });
469
+ static ɵcmp = i0.ɵɵngDeclareComponent({
470
+ minVersion: "17.1.0",
471
+ version: "22.2.0",
472
+ type: ItemContentComponent,
473
+ isStandalone: true,
474
+ selector: "ItemContent",
475
+ inputs: { class: {
476
+ classPropertyName: "class",
477
+ publicName: "class",
478
+ isSignal: true,
479
+ isRequired: false,
480
+ transformFunction: null
481
+ } },
482
+ host: { properties: { "class": "classes()" } },
483
+ ngImport: i0,
484
+ template: `<ng-content />`,
485
+ isInline: true
486
+ });
487
+ };
488
+ i0.ɵɵngDeclareClassMetadata({
489
+ minVersion: "12.0.0",
490
+ version: "22.2.0",
491
+ ngImport: i0,
492
+ type: ItemContentComponent,
493
+ decorators: [{
494
+ type: Component,
495
+ args: [{
496
+ selector: "ItemContent",
497
+ host: { "[class]": "classes()" },
498
+ template: `<ng-content />`
499
+ }]
500
+ }],
501
+ propDecorators: { class: [{
502
+ type: i0.Input,
503
+ args: [{
504
+ isSignal: true,
505
+ alias: "class",
506
+ required: false
507
+ }]
508
+ }] }
509
+ });
510
+ var ItemTitleComponent = class ItemTitleComponent {
511
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
512
+ item = inject(ItemComponent, { optional: true });
513
+ classes = computed(() => cn("block min-w-0 truncate font-medium text-foreground", ITEM_TITLE_CLASSES[this.item?.size() ?? "default"], this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
514
+ static ɵfac = i0.ɵɵngDeclareFactory({
515
+ minVersion: "12.0.0",
516
+ version: "22.2.0",
517
+ ngImport: i0,
518
+ type: ItemTitleComponent,
519
+ deps: [],
520
+ target: i0.ɵɵFactoryTarget.Component
521
+ });
522
+ static ɵcmp = i0.ɵɵngDeclareComponent({
523
+ minVersion: "17.1.0",
524
+ version: "22.2.0",
525
+ type: ItemTitleComponent,
526
+ isStandalone: true,
527
+ selector: "ItemTitle",
528
+ inputs: { class: {
529
+ classPropertyName: "class",
530
+ publicName: "class",
531
+ isSignal: true,
532
+ isRequired: false,
533
+ transformFunction: null
534
+ } },
535
+ host: { properties: { "class": "classes()" } },
536
+ ngImport: i0,
537
+ template: `<ng-content />`,
538
+ isInline: true
539
+ });
540
+ };
541
+ i0.ɵɵngDeclareClassMetadata({
542
+ minVersion: "12.0.0",
543
+ version: "22.2.0",
544
+ ngImport: i0,
545
+ type: ItemTitleComponent,
546
+ decorators: [{
547
+ type: Component,
548
+ args: [{
549
+ selector: "ItemTitle",
550
+ host: { "[class]": "classes()" },
551
+ template: `<ng-content />`
552
+ }]
553
+ }],
554
+ propDecorators: { class: [{
555
+ type: i0.Input,
556
+ args: [{
557
+ isSignal: true,
558
+ alias: "class",
559
+ required: false
560
+ }]
561
+ }] }
562
+ });
563
+ var ItemDescriptionComponent = class ItemDescriptionComponent {
564
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
565
+ item = inject(ItemComponent, { optional: true });
566
+ classes = computed(() => cn("block min-w-0 text-muted-foreground", ITEM_DESCRIPTION_CLASSES[this.item?.size() ?? "default"], this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
567
+ static ɵfac = i0.ɵɵngDeclareFactory({
568
+ minVersion: "12.0.0",
569
+ version: "22.2.0",
570
+ ngImport: i0,
571
+ type: ItemDescriptionComponent,
572
+ deps: [],
573
+ target: i0.ɵɵFactoryTarget.Component
574
+ });
575
+ static ɵcmp = i0.ɵɵngDeclareComponent({
576
+ minVersion: "17.1.0",
577
+ version: "22.2.0",
578
+ type: ItemDescriptionComponent,
579
+ isStandalone: true,
580
+ selector: "ItemDescription",
581
+ inputs: { class: {
582
+ classPropertyName: "class",
583
+ publicName: "class",
584
+ isSignal: true,
585
+ isRequired: false,
586
+ transformFunction: null
587
+ } },
588
+ host: { properties: { "class": "classes()" } },
589
+ ngImport: i0,
590
+ template: `<ng-content />`,
591
+ isInline: true
592
+ });
593
+ };
594
+ i0.ɵɵngDeclareClassMetadata({
595
+ minVersion: "12.0.0",
596
+ version: "22.2.0",
597
+ ngImport: i0,
598
+ type: ItemDescriptionComponent,
599
+ decorators: [{
600
+ type: Component,
601
+ args: [{
602
+ selector: "ItemDescription",
603
+ host: { "[class]": "classes()" },
604
+ template: `<ng-content />`
605
+ }]
606
+ }],
607
+ propDecorators: { class: [{
608
+ type: i0.Input,
609
+ args: [{
610
+ isSignal: true,
611
+ alias: "class",
612
+ required: false
613
+ }]
614
+ }] }
615
+ });
616
+ var ItemActionsComponent = class ItemActionsComponent {
617
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
618
+ classes = computed(() => cn("ms-auto flex shrink-0 items-center gap-2", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
619
+ static ɵfac = i0.ɵɵngDeclareFactory({
620
+ minVersion: "12.0.0",
621
+ version: "22.2.0",
622
+ ngImport: i0,
623
+ type: ItemActionsComponent,
624
+ deps: [],
625
+ target: i0.ɵɵFactoryTarget.Component
626
+ });
627
+ static ɵcmp = i0.ɵɵngDeclareComponent({
628
+ minVersion: "17.1.0",
629
+ version: "22.2.0",
630
+ type: ItemActionsComponent,
631
+ isStandalone: true,
632
+ selector: "ItemActions",
633
+ inputs: { class: {
634
+ classPropertyName: "class",
635
+ publicName: "class",
636
+ isSignal: true,
637
+ isRequired: false,
638
+ transformFunction: null
639
+ } },
640
+ host: { properties: { "class": "classes()" } },
641
+ ngImport: i0,
642
+ template: `<ng-content />`,
643
+ isInline: true
644
+ });
645
+ };
646
+ i0.ɵɵngDeclareClassMetadata({
647
+ minVersion: "12.0.0",
648
+ version: "22.2.0",
649
+ ngImport: i0,
650
+ type: ItemActionsComponent,
651
+ decorators: [{
652
+ type: Component,
653
+ args: [{
654
+ selector: "ItemActions",
655
+ host: { "[class]": "classes()" },
656
+ template: `<ng-content />`
657
+ }]
658
+ }],
659
+ propDecorators: { class: [{
660
+ type: i0.Input,
661
+ args: [{
662
+ isSignal: true,
663
+ alias: "class",
664
+ required: false
665
+ }]
666
+ }] }
667
+ });
668
+ var ItemFooterComponent = class ItemFooterComponent {
669
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
670
+ classes = computed(() => cn("basis-full text-sm text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
671
+ static ɵfac = i0.ɵɵngDeclareFactory({
672
+ minVersion: "12.0.0",
673
+ version: "22.2.0",
674
+ ngImport: i0,
675
+ type: ItemFooterComponent,
676
+ deps: [],
677
+ target: i0.ɵɵFactoryTarget.Component
678
+ });
679
+ static ɵcmp = i0.ɵɵngDeclareComponent({
680
+ minVersion: "17.1.0",
681
+ version: "22.2.0",
682
+ type: ItemFooterComponent,
683
+ isStandalone: true,
684
+ selector: "ItemFooter",
685
+ inputs: { class: {
686
+ classPropertyName: "class",
687
+ publicName: "class",
688
+ isSignal: true,
689
+ isRequired: false,
690
+ transformFunction: null
691
+ } },
692
+ host: { properties: { "class": "classes()" } },
693
+ ngImport: i0,
694
+ template: `<ng-content />`,
695
+ isInline: true
696
+ });
697
+ };
698
+ i0.ɵɵngDeclareClassMetadata({
699
+ minVersion: "12.0.0",
700
+ version: "22.2.0",
701
+ ngImport: i0,
702
+ type: ItemFooterComponent,
703
+ decorators: [{
704
+ type: Component,
705
+ args: [{
706
+ selector: "ItemFooter",
707
+ host: { "[class]": "classes()" },
708
+ template: `<ng-content />`
709
+ }]
710
+ }],
711
+ propDecorators: { class: [{
712
+ type: i0.Input,
713
+ args: [{
714
+ isSignal: true,
715
+ alias: "class",
716
+ required: false
717
+ }]
718
+ }] }
719
+ });
720
+ export { ItemActionsComponent, ItemComponent, ItemContentComponent, ItemDescriptionComponent, ItemFooterComponent, ItemGroupComponent, ItemHeaderComponent, ItemMediaComponent, ItemSeparatorComponent, ItemTitleComponent, itemMediaVariants, itemVariants };