yukit-web 0.10.6 → 0.10.8

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 (193) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24592 -9669
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/src/lib/theme/components/button.css +14 -0
  129. package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
  130. package/src/lib/theme/tokens/component-colors.css +6 -2
  131. package/types/yukit-web-chart.d.ts +184 -125
  132. package/types/yukit-web-helm-accordion.d.ts +49 -28
  133. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  134. package/types/yukit-web-helm-alert.d.ts +30 -32
  135. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  136. package/types/yukit-web-helm-attachment.d.ts +97 -69
  137. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  138. package/types/yukit-web-helm-avatar.d.ts +44 -39
  139. package/types/yukit-web-helm-badge.d.ts +18 -17
  140. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  141. package/types/yukit-web-helm-bubble.d.ts +54 -40
  142. package/types/yukit-web-helm-button-group.d.ts +29 -22
  143. package/types/yukit-web-helm-button.d.ts +41 -31
  144. package/types/yukit-web-helm-calendar.d.ts +157 -85
  145. package/types/yukit-web-helm-card.d.ts +38 -42
  146. package/types/yukit-web-helm-carousel.d.ts +105 -73
  147. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  148. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  149. package/types/yukit-web-helm-combobox.d.ts +355 -150
  150. package/types/yukit-web-helm-command.d.ts +140 -73
  151. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  152. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  153. package/types/yukit-web-helm-dialog.d.ts +106 -78
  154. package/types/yukit-web-helm-drawer.d.ts +90 -61
  155. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  156. package/types/yukit-web-helm-empty.d.ts +38 -42
  157. package/types/yukit-web-helm-field.d.ts +122 -91
  158. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  159. package/types/yukit-web-helm-input-group.d.ts +63 -41
  160. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  161. package/types/yukit-web-helm-input.d.ts +19 -12
  162. package/types/yukit-web-helm-item.d.ts +90 -82
  163. package/types/yukit-web-helm-kbd.d.ts +10 -15
  164. package/types/yukit-web-helm-label.d.ts +14 -11
  165. package/types/yukit-web-helm-marker.d.ts +26 -27
  166. package/types/yukit-web-helm-menubar.d.ts +61 -32
  167. package/types/yukit-web-helm-message.d.ts +34 -38
  168. package/types/yukit-web-helm-native-select.d.ts +102 -61
  169. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  170. package/types/yukit-web-helm-pagination.d.ts +344 -166
  171. package/types/yukit-web-helm-popover.d.ts +62 -42
  172. package/types/yukit-web-helm-progress.d.ts +27 -20
  173. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  174. package/types/yukit-web-helm-resizable.d.ts +46 -24
  175. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  176. package/types/yukit-web-helm-select.d.ts +231 -114
  177. package/types/yukit-web-helm-separator.d.ts +15 -12
  178. package/types/yukit-web-helm-sheet.d.ts +94 -65
  179. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  180. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  181. package/types/yukit-web-helm-slider.d.ts +33 -13
  182. package/types/yukit-web-helm-sonner.d.ts +112 -51
  183. package/types/yukit-web-helm-spinner.d.ts +24 -17
  184. package/types/yukit-web-helm-switch.d.ts +89 -51
  185. package/types/yukit-web-helm-table.d.ts +38 -42
  186. package/types/yukit-web-helm-tabs.d.ts +116 -60
  187. package/types/yukit-web-helm-textarea.d.ts +19 -12
  188. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  189. package/types/yukit-web-helm-toggle.d.ts +39 -21
  190. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  191. package/types/yukit-web-helm-typography.d.ts +62 -77
  192. package/types/yukit-web-helm-utils.d.ts +8 -11
  193. package/types/yukit-web.d.ts +5125 -2357
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-breadcrumb.mjs","sources":["../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-ellipsis.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-item.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-link.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-list.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-page.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-separator.ts","../../../projects/yukit-web/helm/breadcrumb/src/index.ts","../../../projects/yukit-web/helm/breadcrumb/src/yukit-web-helm-breadcrumb.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\n\n@Directive({\n\tselector: '[hlmBreadcrumb]',\n\thost: {\n\t\t'data-slot': 'breadcrumb',\n\t\trole: 'navigation',\n\t\t'[attr.aria-label]': 'ariaLabel()',\n\t},\n})\nexport class HlmBreadcrumb {\n\tpublic readonly ariaLabel = input<string>('breadcrumb', { alias: 'aria-label' });\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideEllipsis } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-breadcrumb-ellipsis',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideEllipsis })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'breadcrumb-ellipsis',\n\t\trole: 'presentation',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideEllipsis\" />\n\t\t<span class=\"sr-only\">{{ srOnlyText() }}</span>\n\t`,\n})\nexport class HlmBreadcrumbEllipsis {\n\t/** Screen reader only text for the ellipsis */\n\tpublic readonly srOnlyText = input<string>('More');\n\n\tconstructor() {\n\t\tclasses(() => 'size-5 [&>ng-icon]:text-[length:--spacing(4)] flex items-center justify-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbItem]',\n\thost: {\n\t\t'data-slot': 'breadcrumb-item',\n\t},\n})\nexport class HlmBreadcrumbItem {\n\tconstructor() {\n\t\tclasses(() => 'gap-1 inline-flex items-center');\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbLink]',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: RouterLink,\n\t\t\tinputs: [\n\t\t\t\t'target',\n\t\t\t\t'queryParams',\n\t\t\t\t'fragment',\n\t\t\t\t'queryParamsHandling',\n\t\t\t\t'state',\n\t\t\t\t'info',\n\t\t\t\t'relativeTo',\n\t\t\t\t'preserveFragment',\n\t\t\t\t'skipLocationChange',\n\t\t\t\t'replaceUrl',\n\t\t\t\t'routerLink: link',\n\t\t\t],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'breadcrumb-link',\n\t},\n})\nexport class HlmBreadcrumbLink {\n\t/** The link to navigate to the page. */\n\tpublic readonly link = input<RouterLink['routerLink']>();\n\n\tconstructor() {\n\t\tclasses(() => 'hover:text-foreground transition-colors');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbList]',\n\thost: {\n\t\t'data-slot': 'breadcrumb-list',\n\t},\n})\nexport class HlmBreadcrumbList {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground gap-1.5 text-sm flex flex-wrap items-center wrap-break-word');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbPage]',\n\thost: {\n\t\t'data-slot': 'breadcrumb-page',\n\t\trole: 'link',\n\t\t'aria-disabled': 'true',\n\t\t'aria-current': 'page',\n\t},\n})\nexport class HlmBreadcrumbPage {\n\tconstructor() {\n\t\tclasses(() => 'text-foreground font-normal');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronRight } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: '[hlmBreadcrumbSeparator]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideChevronRight })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'breadcrumb-separator',\n\t\trole: 'presentation',\n\t\t'aria-hidden': 'true',\n\t},\n\ttemplate: `\n\t\t<ng-content>\n\t\t\t<ng-icon name=\"lucideChevronRight\" />\n\t\t</ng-content>\n\t`,\n})\nexport class HlmBreadcrumbSeparator {\n\tconstructor() {\n\t\tclasses(() => '[&>ng-icon]:text-[length:--spacing(3.5)] [&>ng-icon]:flex');\n\t}\n}\n","import { HlmBreadcrumb } from './lib/hlm-breadcrumb';\nimport { HlmBreadcrumbEllipsis } from './lib/hlm-breadcrumb-ellipsis';\nimport { HlmBreadcrumbItem } from './lib/hlm-breadcrumb-item';\nimport { HlmBreadcrumbLink } from './lib/hlm-breadcrumb-link';\nimport { HlmBreadcrumbList } from './lib/hlm-breadcrumb-list';\nimport { HlmBreadcrumbPage } from './lib/hlm-breadcrumb-page';\nimport { HlmBreadcrumbSeparator } from './lib/hlm-breadcrumb-separator';\n\nexport * from './lib/hlm-breadcrumb';\nexport * from './lib/hlm-breadcrumb-ellipsis';\nexport * from './lib/hlm-breadcrumb-item';\nexport * from './lib/hlm-breadcrumb-link';\nexport * from './lib/hlm-breadcrumb-list';\nexport * from './lib/hlm-breadcrumb-page';\nexport * from './lib/hlm-breadcrumb-separator';\n\nexport const HlmBreadcrumbImports = [\n\tHlmBreadcrumb,\n\tHlmBreadcrumbEllipsis,\n\tHlmBreadcrumbSeparator,\n\tHlmBreadcrumbItem,\n\tHlmBreadcrumbLink,\n\tHlmBreadcrumbPage,\n\tHlmBreadcrumbList,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;QASiB,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,YAAY,iFAAI,KAAK,EAAE,YAAY,EAAA,CAAG;AAChF,IAAA;+GAFY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,YAAA,EAAA,MAAA,EAAA,YAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AAAC,YAAA,IAAA,EAAA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CAAC;oBACjD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,sBAAsB;AACnC,wBAAA,IAAI,EAAE,cAAc;AACpB,wBAAA,aAAa,EAAE,MAAM;AACrB,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;AAIT,CAAA,CAAA;AACD,iBAAA;;;ACLM,MAAM,oBAAoB,GAAG;IACnC,aAAa;IACb,qBAAqB;IACrB,sBAAsB;IACtB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;;;ACvBlB;;AAEG;;"}
1
+ {"version":3,"file":"yukit-web-helm-breadcrumb.mjs","names":[],"sources":["../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-ellipsis.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-item.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-link.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-list.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-page.ts","../../../projects/yukit-web/helm/breadcrumb/src/lib/hlm-breadcrumb-separator.ts","../../../projects/yukit-web/helm/breadcrumb/src/index.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\n\n@Directive({\n\tselector: '[hlmBreadcrumb]',\n\thost: {\n\t\t'data-slot': 'breadcrumb',\n\t\trole: 'navigation',\n\t\t'[attr.aria-label]': 'ariaLabel()',\n\t},\n})\nexport class HlmBreadcrumb {\n\tpublic readonly ariaLabel = input<string>('breadcrumb', { alias: 'aria-label' });\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideEllipsis } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-breadcrumb-ellipsis',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideEllipsis })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'breadcrumb-ellipsis',\n\t\trole: 'presentation',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideEllipsis\" />\n\t\t<span class=\"sr-only\">{{ srOnlyText() }}</span>\n\t`,\n})\nexport class HlmBreadcrumbEllipsis {\n\t/** Screen reader only text for the ellipsis */\n\tpublic readonly srOnlyText = input<string>('More');\n\n\tconstructor() {\n\t\tclasses(() => 'size-5 [&>ng-icon]:text-[length:--spacing(4)] flex items-center justify-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbItem]',\n\thost: {\n\t\t'data-slot': 'breadcrumb-item',\n\t},\n})\nexport class HlmBreadcrumbItem {\n\tconstructor() {\n\t\tclasses(() => 'gap-1 inline-flex items-center');\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbLink]',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: RouterLink,\n\t\t\tinputs: [\n\t\t\t\t'target',\n\t\t\t\t'queryParams',\n\t\t\t\t'fragment',\n\t\t\t\t'queryParamsHandling',\n\t\t\t\t'state',\n\t\t\t\t'info',\n\t\t\t\t'relativeTo',\n\t\t\t\t'preserveFragment',\n\t\t\t\t'skipLocationChange',\n\t\t\t\t'replaceUrl',\n\t\t\t\t'routerLink: link',\n\t\t\t],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'breadcrumb-link',\n\t},\n})\nexport class HlmBreadcrumbLink {\n\t/** The link to navigate to the page. */\n\tpublic readonly link = input<RouterLink['routerLink']>();\n\n\tconstructor() {\n\t\tclasses(() => 'hover:text-foreground transition-colors');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbList]',\n\thost: {\n\t\t'data-slot': 'breadcrumb-list',\n\t},\n})\nexport class HlmBreadcrumbList {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground gap-1.5 text-sm flex flex-wrap items-center wrap-break-word');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBreadcrumbPage]',\n\thost: {\n\t\t'data-slot': 'breadcrumb-page',\n\t\trole: 'link',\n\t\t'aria-disabled': 'true',\n\t\t'aria-current': 'page',\n\t},\n})\nexport class HlmBreadcrumbPage {\n\tconstructor() {\n\t\tclasses(() => 'text-foreground font-normal');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronRight } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: '[hlmBreadcrumbSeparator]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideChevronRight })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'breadcrumb-separator',\n\t\trole: 'presentation',\n\t\t'aria-hidden': 'true',\n\t},\n\ttemplate: `\n\t\t<ng-content>\n\t\t\t<ng-icon name=\"lucideChevronRight\" />\n\t\t</ng-content>\n\t`,\n})\nexport class HlmBreadcrumbSeparator {\n\tconstructor() {\n\t\tclasses(() => '[&>ng-icon]:text-[length:--spacing(3.5)] [&>ng-icon]:flex');\n\t}\n}\n","import { HlmBreadcrumb } from './lib/hlm-breadcrumb';\nimport { HlmBreadcrumbEllipsis } from './lib/hlm-breadcrumb-ellipsis';\nimport { HlmBreadcrumbItem } from './lib/hlm-breadcrumb-item';\nimport { HlmBreadcrumbLink } from './lib/hlm-breadcrumb-link';\nimport { HlmBreadcrumbList } from './lib/hlm-breadcrumb-list';\nimport { HlmBreadcrumbPage } from './lib/hlm-breadcrumb-page';\nimport { HlmBreadcrumbSeparator } from './lib/hlm-breadcrumb-separator';\n\nexport * from './lib/hlm-breadcrumb';\nexport * from './lib/hlm-breadcrumb-ellipsis';\nexport * from './lib/hlm-breadcrumb-item';\nexport * from './lib/hlm-breadcrumb-link';\nexport * from './lib/hlm-breadcrumb-list';\nexport * from './lib/hlm-breadcrumb-page';\nexport * from './lib/hlm-breadcrumb-separator';\n\nexport const HlmBreadcrumbImports = [\n\tHlmBreadcrumb,\n\tHlmBreadcrumbEllipsis,\n\tHlmBreadcrumbSeparator,\n\tHlmBreadcrumbItem,\n\tHlmBreadcrumbLink,\n\tHlmBreadcrumbPage,\n\tHlmBreadcrumbList,\n] as const;\n"],"mappings":";;;;;;;AAUA,IAAa,gBAAb,MAAa,cAAa;CAR1B,cAAA;EASiB,KAAA,YAAY,MAAc,cAAY;GAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;GAAI,OAAO;EAAY,CAAA;CAC7E;CAFY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAa,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAb;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAa,cAAA;GAAA,UAAA;GAAA,QAAA,EAAA,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA,EAAA;GAAA,MAAA;IAAA,YAAA;KAAA,aAAA;KAAA,QAAA;IAAA;IAAA,YAAA,EAAA,mBAAA,cAAA;GAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAb,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAa,YAAA,CAAA;EARzB,MAAA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AC,aAAa,EAAE,mBAAkB,CAAE,CAAC;GAChD,iBAAiB,wBAAwB;GACzC,MAAM;IACL,aAAa;IACb,MAAM;IACN,eAAe;GACf;GACD,UAAU;;;;;EAKV,CAAA;;;;ACLD,MAAa,uBAAuB;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;AACS"}
@@ -1,121 +1,300 @@
1
- import * as i0 from '@angular/core';
2
- import { input, Directive } from '@angular/core';
3
- import { classes } from 'yukit-web/helm/utils';
4
- import { cva } from 'class-variance-authority';
5
-
6
- const bubbleVariants = cva('max-w-[80%] gap-1 group/bubble relative flex w-fit min-w-0 flex-col group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full', {
7
- variants: {
8
- variant: {
9
- default: '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',
10
- secondary: '*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-secondary/80',
11
- muted: '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',
12
- tinted: '*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',
13
- outline: '*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30 *:data-[slot=bubble-content]:border',
14
- ghost: '[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',
15
- destructive: '*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',
16
- },
17
- },
18
- defaultVariants: {
19
- variant: 'default',
20
- },
1
+ import * as i0 from "@angular/core";
2
+ import { Directive, input } from "@angular/core";
3
+ import { classes } from "yukit-web/helm/utils";
4
+ import { cva } from "class-variance-authority";
5
+ const bubbleVariants = cva("max-w-[80%] gap-1 group/bubble relative flex w-fit min-w-0 flex-col group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full", {
6
+ variants: { variant: {
7
+ default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
8
+ secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-secondary/80",
9
+ muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
10
+ tinted: "*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
11
+ outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30 *:data-[slot=bubble-content]:border",
12
+ ghost: "[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0",
13
+ destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"
14
+ } },
15
+ defaultVariants: { variant: "default" }
21
16
  });
22
- class HlmBubble {
23
- constructor() {
24
- this.variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
25
- this.align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
26
- classes(() => bubbleVariants({ variant: this.variant() }));
27
- }
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubble, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
29
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmBubble, isStandalone: true, selector: "[hlmBubble],hlm-bubble", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "bubble" }, properties: { "attr.data-variant": "variant()", "attr.data-align": "align()", "attr.align": "null" } }, ngImport: i0 }); }
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubble, decorators: [{
32
- type: Directive,
33
- args: [{
34
- selector: '[hlmBubble],hlm-bubble',
35
- host: {
36
- 'data-slot': 'bubble',
37
- '[attr.data-variant]': 'variant()',
38
- '[attr.data-align]': 'align()',
39
- // Prevent the legacy HTML `align` attribute (from `align="end"` bindings) from
40
- // forcing text-align on the bubble content.
41
- '[attr.align]': 'null',
42
- },
43
- }]
44
- }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
45
-
46
- class HlmBubbleContent {
47
- constructor() {
48
- classes(() => 'rounded-xl px-3 py-2 text-sm leading-relaxed [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden border border-transparent wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3');
49
- }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubbleContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
51
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmBubbleContent, isStandalone: true, selector: "[hlmBubbleContent],hlm-bubble-content", host: { attributes: { "data-slot": "bubble-content" } }, ngImport: i0 }); }
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubbleContent, decorators: [{
54
- type: Directive,
55
- args: [{
56
- selector: '[hlmBubbleContent],hlm-bubble-content',
57
- host: { 'data-slot': 'bubble-content' },
58
- }]
59
- }], ctorParameters: () => [] });
60
-
61
- class HlmBubbleGroup {
62
- constructor() {
63
- classes(() => 'gap-2 flex min-w-0 flex-col');
64
- }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubbleGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
66
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmBubbleGroup, isStandalone: true, selector: "[hlmBubbleGroup],hlm-bubble-group", host: { attributes: { "data-slot": "bubble-group" } }, ngImport: i0 }); }
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubbleGroup, decorators: [{
69
- type: Directive,
70
- args: [{
71
- selector: '[hlmBubbleGroup],hlm-bubble-group',
72
- host: { 'data-slot': 'bubble-group' },
73
- }]
74
- }], ctorParameters: () => [] });
75
-
76
- const bubbleReactionsVariants = cva('bg-muted ring-card gap-1 rounded-full px-1.5 py-0.5 text-xs ring-3 absolute z-10 flex w-fit shrink-0 items-center justify-center has-[button]:p-0', {
77
- variants: {
78
- side: {
79
- top: 'top-0 -translate-y-3/4',
80
- bottom: 'bottom-0 translate-y-3/4',
81
- },
82
- align: {
83
- start: 'start-3',
84
- end: 'end-3',
85
- },
86
- },
87
- defaultVariants: {
88
- side: 'bottom',
89
- align: 'end',
90
- },
17
+ var HlmBubble = class HlmBubble {
18
+ constructor() {
19
+ this.variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
20
+ this.align = input("start", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
21
+ classes(() => bubbleVariants({ variant: this.variant() }));
22
+ }
23
+ static {
24
+ this.ɵfac = i0.ɵɵngDeclareFactory({
25
+ minVersion: "12.0.0",
26
+ version: "22.2.4",
27
+ ngImport: i0,
28
+ type: HlmBubble,
29
+ deps: [],
30
+ target: i0.ɵɵFactoryTarget.Directive
31
+ });
32
+ }
33
+ static {
34
+ this.ɵdir = i0.ɵɵngDeclareDirective({
35
+ minVersion: "17.1.0",
36
+ version: "22.2.4",
37
+ type: HlmBubble,
38
+ isStandalone: true,
39
+ selector: "[hlmBubble],hlm-bubble",
40
+ inputs: {
41
+ variant: {
42
+ classPropertyName: "variant",
43
+ publicName: "variant",
44
+ isSignal: true,
45
+ isRequired: false,
46
+ transformFunction: null
47
+ },
48
+ align: {
49
+ classPropertyName: "align",
50
+ publicName: "align",
51
+ isSignal: true,
52
+ isRequired: false,
53
+ transformFunction: null
54
+ }
55
+ },
56
+ host: {
57
+ attributes: { "data-slot": "bubble" },
58
+ properties: {
59
+ "attr.data-variant": "variant()",
60
+ "attr.data-align": "align()",
61
+ "attr.align": "null"
62
+ }
63
+ },
64
+ ngImport: i0
65
+ });
66
+ }
67
+ };
68
+ i0.ɵɵngDeclareClassMetadata({
69
+ minVersion: "12.0.0",
70
+ version: "22.2.4",
71
+ ngImport: i0,
72
+ type: HlmBubble,
73
+ decorators: [{
74
+ type: Directive,
75
+ args: [{
76
+ selector: "[hlmBubble],hlm-bubble",
77
+ host: {
78
+ "data-slot": "bubble",
79
+ "[attr.data-variant]": "variant()",
80
+ "[attr.data-align]": "align()",
81
+ "[attr.align]": "null"
82
+ }
83
+ }]
84
+ }],
85
+ ctorParameters: () => [],
86
+ propDecorators: {
87
+ variant: [{
88
+ type: i0.Input,
89
+ args: [{
90
+ isSignal: true,
91
+ alias: "variant",
92
+ required: false
93
+ }]
94
+ }],
95
+ align: [{
96
+ type: i0.Input,
97
+ args: [{
98
+ isSignal: true,
99
+ alias: "align",
100
+ required: false
101
+ }]
102
+ }]
103
+ }
91
104
  });
92
- class HlmBubbleReactions {
93
- constructor() {
94
- this.side = input('bottom', ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
95
- this.align = input('end', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
96
- classes(() => bubbleReactionsVariants({ side: this.side(), align: this.align() }));
97
- }
98
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubbleReactions, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
99
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmBubbleReactions, isStandalone: true, selector: "[hlmBubbleReactions],hlm-bubble-reactions", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "bubble-reactions" }, properties: { "attr.data-align": "align()", "attr.data-side": "side()", "attr.align": "null" } }, ngImport: i0 }); }
100
- }
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmBubbleReactions, decorators: [{
102
- type: Directive,
103
- args: [{
104
- selector: '[hlmBubbleReactions],hlm-bubble-reactions',
105
- host: {
106
- 'data-slot': 'bubble-reactions',
107
- '[attr.data-align]': 'align()',
108
- '[attr.data-side]': 'side()',
109
- '[attr.align]': 'null',
110
- },
111
- }]
112
- }], ctorParameters: () => [], propDecorators: { side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
113
-
114
- const HlmBubbleImports = [HlmBubble, HlmBubbleContent, HlmBubbleGroup, HlmBubbleReactions];
115
-
116
- /**
117
- * Generated bundle index. Do not edit.
118
- */
119
-
105
+ var HlmBubbleContent = class HlmBubbleContent {
106
+ constructor() {
107
+ classes(() => "rounded-xl px-3 py-2 text-sm leading-relaxed [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden border border-transparent wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3");
108
+ }
109
+ static {
110
+ this.ɵfac = i0.ɵɵngDeclareFactory({
111
+ minVersion: "12.0.0",
112
+ version: "22.2.4",
113
+ ngImport: i0,
114
+ type: HlmBubbleContent,
115
+ deps: [],
116
+ target: i0.ɵɵFactoryTarget.Directive
117
+ });
118
+ }
119
+ static {
120
+ this.ɵdir = i0.ɵɵngDeclareDirective({
121
+ minVersion: "14.0.0",
122
+ version: "22.2.4",
123
+ type: HlmBubbleContent,
124
+ isStandalone: true,
125
+ selector: "[hlmBubbleContent],hlm-bubble-content",
126
+ host: { attributes: { "data-slot": "bubble-content" } },
127
+ ngImport: i0
128
+ });
129
+ }
130
+ };
131
+ i0.ɵɵngDeclareClassMetadata({
132
+ minVersion: "12.0.0",
133
+ version: "22.2.4",
134
+ ngImport: i0,
135
+ type: HlmBubbleContent,
136
+ decorators: [{
137
+ type: Directive,
138
+ args: [{
139
+ selector: "[hlmBubbleContent],hlm-bubble-content",
140
+ host: { "data-slot": "bubble-content" }
141
+ }]
142
+ }],
143
+ ctorParameters: () => []
144
+ });
145
+ var HlmBubbleGroup = class HlmBubbleGroup {
146
+ constructor() {
147
+ classes(() => "gap-2 flex min-w-0 flex-col");
148
+ }
149
+ static {
150
+ this.ɵfac = i0.ɵɵngDeclareFactory({
151
+ minVersion: "12.0.0",
152
+ version: "22.2.4",
153
+ ngImport: i0,
154
+ type: HlmBubbleGroup,
155
+ deps: [],
156
+ target: i0.ɵɵFactoryTarget.Directive
157
+ });
158
+ }
159
+ static {
160
+ this.ɵdir = i0.ɵɵngDeclareDirective({
161
+ minVersion: "14.0.0",
162
+ version: "22.2.4",
163
+ type: HlmBubbleGroup,
164
+ isStandalone: true,
165
+ selector: "[hlmBubbleGroup],hlm-bubble-group",
166
+ host: { attributes: { "data-slot": "bubble-group" } },
167
+ ngImport: i0
168
+ });
169
+ }
170
+ };
171
+ i0.ɵɵngDeclareClassMetadata({
172
+ minVersion: "12.0.0",
173
+ version: "22.2.4",
174
+ ngImport: i0,
175
+ type: HlmBubbleGroup,
176
+ decorators: [{
177
+ type: Directive,
178
+ args: [{
179
+ selector: "[hlmBubbleGroup],hlm-bubble-group",
180
+ host: { "data-slot": "bubble-group" }
181
+ }]
182
+ }],
183
+ ctorParameters: () => []
184
+ });
185
+ const bubbleReactionsVariants = cva("bg-muted ring-card gap-1 rounded-full px-1.5 py-0.5 text-xs ring-3 absolute z-10 flex w-fit shrink-0 items-center justify-center has-[button]:p-0", {
186
+ variants: {
187
+ side: {
188
+ top: "top-0 -translate-y-3/4",
189
+ bottom: "bottom-0 translate-y-3/4"
190
+ },
191
+ align: {
192
+ start: "start-3",
193
+ end: "end-3"
194
+ }
195
+ },
196
+ defaultVariants: {
197
+ side: "bottom",
198
+ align: "end"
199
+ }
200
+ });
201
+ var HlmBubbleReactions = class HlmBubbleReactions {
202
+ constructor() {
203
+ this.side = input("bottom", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
204
+ this.align = input("end", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
205
+ classes(() => bubbleReactionsVariants({
206
+ side: this.side(),
207
+ align: this.align()
208
+ }));
209
+ }
210
+ static {
211
+ this.ɵfac = i0.ɵɵngDeclareFactory({
212
+ minVersion: "12.0.0",
213
+ version: "22.2.4",
214
+ ngImport: i0,
215
+ type: HlmBubbleReactions,
216
+ deps: [],
217
+ target: i0.ɵɵFactoryTarget.Directive
218
+ });
219
+ }
220
+ static {
221
+ this.ɵdir = i0.ɵɵngDeclareDirective({
222
+ minVersion: "17.1.0",
223
+ version: "22.2.4",
224
+ type: HlmBubbleReactions,
225
+ isStandalone: true,
226
+ selector: "[hlmBubbleReactions],hlm-bubble-reactions",
227
+ inputs: {
228
+ side: {
229
+ classPropertyName: "side",
230
+ publicName: "side",
231
+ isSignal: true,
232
+ isRequired: false,
233
+ transformFunction: null
234
+ },
235
+ align: {
236
+ classPropertyName: "align",
237
+ publicName: "align",
238
+ isSignal: true,
239
+ isRequired: false,
240
+ transformFunction: null
241
+ }
242
+ },
243
+ host: {
244
+ attributes: { "data-slot": "bubble-reactions" },
245
+ properties: {
246
+ "attr.data-align": "align()",
247
+ "attr.data-side": "side()",
248
+ "attr.align": "null"
249
+ }
250
+ },
251
+ ngImport: i0
252
+ });
253
+ }
254
+ };
255
+ i0.ɵɵngDeclareClassMetadata({
256
+ minVersion: "12.0.0",
257
+ version: "22.2.4",
258
+ ngImport: i0,
259
+ type: HlmBubbleReactions,
260
+ decorators: [{
261
+ type: Directive,
262
+ args: [{
263
+ selector: "[hlmBubbleReactions],hlm-bubble-reactions",
264
+ host: {
265
+ "data-slot": "bubble-reactions",
266
+ "[attr.data-align]": "align()",
267
+ "[attr.data-side]": "side()",
268
+ "[attr.align]": "null"
269
+ }
270
+ }]
271
+ }],
272
+ ctorParameters: () => [],
273
+ propDecorators: {
274
+ side: [{
275
+ type: i0.Input,
276
+ args: [{
277
+ isSignal: true,
278
+ alias: "side",
279
+ required: false
280
+ }]
281
+ }],
282
+ align: [{
283
+ type: i0.Input,
284
+ args: [{
285
+ isSignal: true,
286
+ alias: "align",
287
+ required: false
288
+ }]
289
+ }]
290
+ }
291
+ });
292
+ const HlmBubbleImports = [
293
+ HlmBubble,
294
+ HlmBubbleContent,
295
+ HlmBubbleGroup,
296
+ HlmBubbleReactions
297
+ ];
120
298
  export { HlmBubble, HlmBubbleContent, HlmBubbleGroup, HlmBubbleImports, HlmBubbleReactions };
121
- //# sourceMappingURL=yukit-web-helm-bubble.mjs.map
299
+
300
+ //# sourceMappingURL=yukit-web-helm-bubble.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-bubble.mjs","sources":["../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble.ts","../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble-content.ts","../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble-group.ts","../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble-reactions.ts","../../../projects/yukit-web/helm/bubble/src/index.ts","../../../projects/yukit-web/helm/bubble/src/yukit-web-helm-bubble.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst bubbleVariants = cva(\n\t'max-w-[80%] gap-1 group/bubble relative flex w-fit min-w-0 flex-col group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',\n\t\t\t\tsecondary: '*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-secondary/80',\n\t\t\t\tmuted: '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',\n\t\t\t\ttinted: '*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',\n\t\t\t\toutline: '*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30 *:data-[slot=bubble-content]:border',\n\t\t\t\tghost: '[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',\n\t\t\t\tdestructive: '*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport type BubbleVariants = VariantProps<typeof bubbleVariants>;\nexport type BubbleAlign = 'start' | 'end';\n\n@Directive({\n\tselector: '[hlmBubble],hlm-bubble',\n\thost: {\n\t\t'data-slot': 'bubble',\n\t\t'[attr.data-variant]': 'variant()',\n\t\t'[attr.data-align]': 'align()',\n\t\t// Prevent the legacy HTML `align` attribute (from `align=\"end\"` bindings) from\n\t\t// forcing text-align on the bubble content.\n\t\t'[attr.align]': 'null',\n\t},\n})\nexport class HlmBubble {\n\tpublic readonly variant = input<BubbleVariants['variant']>('default');\n\tpublic readonly align = input<BubbleAlign>('start');\n\n\tconstructor() {\n\t\tclasses(() => bubbleVariants({ variant: this.variant() }));\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBubbleContent],hlm-bubble-content',\n\thost: { 'data-slot': 'bubble-content' },\n})\nexport class HlmBubbleContent {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'rounded-xl px-3 py-2 text-sm leading-relaxed [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden border border-transparent wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBubbleGroup],hlm-bubble-group',\n\thost: { 'data-slot': 'bubble-group' },\n})\nexport class HlmBubbleGroup {\n\tconstructor() {\n\t\tclasses(() => 'gap-2 flex min-w-0 flex-col');\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst bubbleReactionsVariants = cva(\n\t'bg-muted ring-card gap-1 rounded-full px-1.5 py-0.5 text-xs ring-3 absolute z-10 flex w-fit shrink-0 items-center justify-center has-[button]:p-0',\n\t{\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: 'top-0 -translate-y-3/4',\n\t\t\t\tbottom: 'bottom-0 translate-y-3/4',\n\t\t\t},\n\t\t\talign: {\n\t\t\t\tstart: 'start-3',\n\t\t\t\tend: 'end-3',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tside: 'bottom',\n\t\t\talign: 'end',\n\t\t},\n\t},\n);\n\nexport type BubbleReactionsVariants = VariantProps<typeof bubbleReactionsVariants>;\n\n@Directive({\n\tselector: '[hlmBubbleReactions],hlm-bubble-reactions',\n\thost: {\n\t\t'data-slot': 'bubble-reactions',\n\t\t'[attr.data-align]': 'align()',\n\t\t'[attr.data-side]': 'side()',\n\t\t'[attr.align]': 'null',\n\t},\n})\nexport class HlmBubbleReactions {\n\tpublic readonly side = input<BubbleReactionsVariants['side']>('bottom');\n\tpublic readonly align = input<BubbleReactionsVariants['align']>('end');\n\n\tconstructor() {\n\t\tclasses(() => bubbleReactionsVariants({ side: this.side(), align: this.align() }));\n\t}\n}\n","import { HlmBubble } from './lib/hlm-bubble';\nimport { HlmBubbleContent } from './lib/hlm-bubble-content';\nimport { HlmBubbleGroup } from './lib/hlm-bubble-group';\nimport { HlmBubbleReactions } from './lib/hlm-bubble-reactions';\n\nexport * from './lib/hlm-bubble';\nexport * from './lib/hlm-bubble-content';\nexport * from './lib/hlm-bubble-group';\nexport * from './lib/hlm-bubble-reactions';\n\nexport const HlmBubbleImports = [HlmBubble, HlmBubbleContent, HlmBubbleGroup, HlmBubbleReactions] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,cAAc,GAAG,GAAG,CACzB,uKAAuK,EACvK;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,8JAA8J;AACvK,YAAA,SAAS,EAAE,oKAAoK;AAC/K,YAAA,KAAK,EAAE,oJAAoJ;AAC3J,YAAA,MAAM,EAAE,iaAAia;AACza,YAAA,OAAO,EAAE,2TAA2T;AACpU,YAAA,KAAK,EAAE,oUAAoU;AAC3U,YAAA,WAAW,EAAE,+RAA+R;AAC5S,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,KAAA;AACD,CAAA,CACD;MAgBY,SAAS,CAAA;AAIrB,IAAA,WAAA,GAAA;AAHgB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAA4B,SAAS,8EAAC;AACrD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAc,OAAO,4EAAC;AAGlD,QAAA,OAAO,CAAC,MAAM,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC3D;+GANY,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,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3,"file":"yukit-web-helm-bubble.mjs","names":[],"sources":["../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble.ts","../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble-content.ts","../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble-group.ts","../../../projects/yukit-web/helm/bubble/src/lib/hlm-bubble-reactions.ts","../../../projects/yukit-web/helm/bubble/src/index.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst bubbleVariants = cva(\n\t'max-w-[80%] gap-1 group/bubble relative flex w-fit min-w-0 flex-col group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',\n\t\t\t\tsecondary: '*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-secondary/80',\n\t\t\t\tmuted: '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',\n\t\t\t\ttinted: '*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',\n\t\t\t\toutline: '*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30 *:data-[slot=bubble-content]:border',\n\t\t\t\tghost: '[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',\n\t\t\t\tdestructive: '*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport type BubbleVariants = VariantProps<typeof bubbleVariants>;\nexport type BubbleAlign = 'start' | 'end';\n\n@Directive({\n\tselector: '[hlmBubble],hlm-bubble',\n\thost: {\n\t\t'data-slot': 'bubble',\n\t\t'[attr.data-variant]': 'variant()',\n\t\t'[attr.data-align]': 'align()',\n\t\t// Prevent the legacy HTML `align` attribute (from `align=\"end\"` bindings) from\n\t\t// forcing text-align on the bubble content.\n\t\t'[attr.align]': 'null',\n\t},\n})\nexport class HlmBubble {\n\tpublic readonly variant = input<BubbleVariants['variant']>('default');\n\tpublic readonly align = input<BubbleAlign>('start');\n\n\tconstructor() {\n\t\tclasses(() => bubbleVariants({ variant: this.variant() }));\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBubbleContent],hlm-bubble-content',\n\thost: { 'data-slot': 'bubble-content' },\n})\nexport class HlmBubbleContent {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'rounded-xl px-3 py-2 text-sm leading-relaxed [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden border border-transparent wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmBubbleGroup],hlm-bubble-group',\n\thost: { 'data-slot': 'bubble-group' },\n})\nexport class HlmBubbleGroup {\n\tconstructor() {\n\t\tclasses(() => 'gap-2 flex min-w-0 flex-col');\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst bubbleReactionsVariants = cva(\n\t'bg-muted ring-card gap-1 rounded-full px-1.5 py-0.5 text-xs ring-3 absolute z-10 flex w-fit shrink-0 items-center justify-center has-[button]:p-0',\n\t{\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: 'top-0 -translate-y-3/4',\n\t\t\t\tbottom: 'bottom-0 translate-y-3/4',\n\t\t\t},\n\t\t\talign: {\n\t\t\t\tstart: 'start-3',\n\t\t\t\tend: 'end-3',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tside: 'bottom',\n\t\t\talign: 'end',\n\t\t},\n\t},\n);\n\nexport type BubbleReactionsVariants = VariantProps<typeof bubbleReactionsVariants>;\n\n@Directive({\n\tselector: '[hlmBubbleReactions],hlm-bubble-reactions',\n\thost: {\n\t\t'data-slot': 'bubble-reactions',\n\t\t'[attr.data-align]': 'align()',\n\t\t'[attr.data-side]': 'side()',\n\t\t'[attr.align]': 'null',\n\t},\n})\nexport class HlmBubbleReactions {\n\tpublic readonly side = input<BubbleReactionsVariants['side']>('bottom');\n\tpublic readonly align = input<BubbleReactionsVariants['align']>('end');\n\n\tconstructor() {\n\t\tclasses(() => bubbleReactionsVariants({ side: this.side(), align: this.align() }));\n\t}\n}\n","import { HlmBubble } from './lib/hlm-bubble';\nimport { HlmBubbleContent } from './lib/hlm-bubble-content';\nimport { HlmBubbleGroup } from './lib/hlm-bubble-group';\nimport { HlmBubbleReactions } from './lib/hlm-bubble-reactions';\n\nexport * from './lib/hlm-bubble';\nexport * from './lib/hlm-bubble-content';\nexport * from './lib/hlm-bubble-group';\nexport * from './lib/hlm-bubble-reactions';\n\nexport const HlmBubbleImports = [HlmBubble, HlmBubbleContent, HlmBubbleGroup, HlmBubbleReactions] as const;\n"],"mappings":";;;;AAIA,MAAM,iBAAiB,IACtB,yKACA;CACC,UAAU,EACT,SAAS;EACR,SAAS;EACT,WAAW;EACX,OAAO;EACP,QAAQ;EACR,SAAS;EACT,OAAO;EACP,aAAa;CACb,EACD;CACD,iBAAiB,EAChB,SAAS,UACT;AACD,CAAA;AAiBF,IAAa,YAAb,MAAa,UAAS;CAIrB,cAAA;EAHgB,KAAA,UAAU,MAAiC,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EACrD,KAAA,QAAQ,MAAmB,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAGlD,cAAc,eAAe,EAAE,SAAS,KAAK,QAAO,EAAE,CAAE,CAAC;CAC1D;CANY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAS,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAT;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAS,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,OAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,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