@spartan-ng/cli 0.0.1-alpha.379 → 0.0.1-alpha.382

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 (198) hide show
  1. package/generators.json +30 -0
  2. package/package.json +4 -2
  3. package/src/generators/base/lib/build-dependency-array.js +1 -35
  4. package/src/generators/base/lib/build-dependency-array.js.map +1 -1
  5. package/src/generators/base/schema.d.ts +0 -1
  6. package/src/generators/base/versions.d.ts +1 -21
  7. package/src/generators/base/versions.js +2 -22
  8. package/src/generators/base/versions.js.map +1 -1
  9. package/src/generators/migrate-core/compat.d.ts +2 -0
  10. package/src/generators/migrate-core/compat.js +6 -0
  11. package/src/generators/migrate-core/compat.js.map +1 -0
  12. package/src/generators/migrate-core/generator.d.ts +4 -0
  13. package/src/generators/migrate-core/generator.js +52 -0
  14. package/src/generators/migrate-core/generator.js.map +1 -0
  15. package/src/generators/migrate-core/schema.d.ts +3 -0
  16. package/src/generators/migrate-core/schema.json +14 -0
  17. package/src/generators/migrate-icon/compat.d.ts +2 -0
  18. package/src/generators/migrate-icon/compat.js +6 -0
  19. package/src/generators/migrate-icon/compat.js.map +1 -0
  20. package/src/generators/migrate-icon/generator.d.ts +4 -0
  21. package/src/generators/migrate-icon/generator.js +286 -0
  22. package/src/generators/migrate-icon/generator.js.map +1 -0
  23. package/src/generators/migrate-icon/schema.d.ts +3 -0
  24. package/src/generators/migrate-icon/schema.json +14 -0
  25. package/src/generators/migrate-scroll-area/compat.d.ts +2 -0
  26. package/src/generators/migrate-scroll-area/compat.js +6 -0
  27. package/src/generators/migrate-scroll-area/compat.js.map +1 -0
  28. package/src/generators/migrate-scroll-area/generator.d.ts +4 -0
  29. package/src/generators/migrate-scroll-area/generator.js +112 -0
  30. package/src/generators/migrate-scroll-area/generator.js.map +1 -0
  31. package/src/generators/migrate-scroll-area/schema.d.ts +3 -0
  32. package/src/generators/migrate-scroll-area/schema.json +14 -0
  33. package/src/generators/ui/generator.js +0 -5
  34. package/src/generators/ui/generator.js.map +1 -1
  35. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.component.ts.template +1 -1
  36. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template +4 -3
  37. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template +1 -1
  38. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +1 -1
  39. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +1 -1
  40. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.directive.ts.template +1 -1
  41. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.component.ts.template +1 -1
  42. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +1 -1
  43. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.component.ts.template +1 -1
  44. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.component.ts.template +1 -1
  45. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.directive.ts.template +1 -1
  46. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.directive.ts.template +1 -1
  47. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +1 -1
  48. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +1 -1
  49. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +1 -1
  50. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.ts.template +1 -1
  51. package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.ts.template +1 -1
  52. package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +1 -1
  53. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +1 -1
  54. package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +1 -1
  55. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-ellipsis.component.ts.template +5 -4
  56. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-item.directive.ts.template +1 -1
  57. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-link.directive.ts.template +1 -1
  58. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-list.directive.ts.template +1 -1
  59. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-page.directive.ts.template +1 -1
  60. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-separator.component.ts.template +5 -4
  61. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb.directive.ts.template +1 -1
  62. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +1 -1
  63. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +7 -5
  64. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.directive.ts.template +1 -1
  65. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template +1 -1
  66. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.directive.ts.template +1 -1
  67. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.directive.ts.template +1 -1
  68. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.directive.ts.template +1 -1
  69. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.directive.ts.template +1 -1
  70. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.component.ts.template +1 -1
  71. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.component.ts.template +1 -1
  72. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.component.ts.template +5 -4
  73. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.component.ts.template +5 -4
  74. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.component.ts.template +1 -1
  75. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox-checkicon.component.ts.template +5 -4
  76. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +1 -1
  77. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.directive.ts.template +1 -1
  78. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +1 -1
  79. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.directive.ts.template +1 -1
  80. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.directive.ts.template +1 -1
  81. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input-wrapper.component.ts.template +2 -2
  82. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input.directive.ts.template +1 -1
  83. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template +3 -3
  84. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.directive.ts.template +1 -1
  85. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.directive.ts.template +1 -1
  86. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +1 -1
  87. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.directive.ts.template +1 -1
  88. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.directive.ts.template +1 -1
  89. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.component.ts.template +5 -4
  90. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template +1 -1
  91. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template +1 -1
  92. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template +1 -1
  93. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template +1 -1
  94. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template +1 -1
  95. package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.component.ts.template +1 -1
  96. package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +4 -7
  97. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.directive.spec.ts.template +66 -0
  98. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.directive.ts.template +41 -0
  99. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +1 -4
  100. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.directive.ts.template +1 -1
  101. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +1 -1
  102. package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +1 -1
  103. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +1 -1
  104. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +1 -1
  105. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template +5 -4
  106. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.directive.ts.template +1 -1
  107. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.directive.ts.template +3 -3
  108. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template +5 -4
  109. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.directive.ts.template +1 -1
  110. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +5 -4
  111. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +1 -1
  112. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +1 -1
  113. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +1 -1
  114. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +1 -1
  115. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +1 -1
  116. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.component.ts.template +1 -1
  117. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.directive.ts.template +1 -1
  118. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.component.ts.template +5 -4
  119. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.directive.ts.template +1 -1
  120. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.directive.ts.template +1 -1
  121. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.component.ts.template +5 -4
  122. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.component.ts.template +5 -4
  123. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.directive.ts.template +1 -1
  124. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.directive.ts.template +1 -1
  125. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.directive.ts.template +1 -1
  126. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +1 -1
  127. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +1 -1
  128. package/src/generators/ui/libs/ui-radio-group-helm/files/index.ts.template +3 -3
  129. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.component.ts.template +23 -0
  130. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +1 -1
  131. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template +5 -2
  132. package/src/generators/ui/libs/ui-scroll-area-helm/files/index.ts.template +4 -4
  133. package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.directive.ts.template +20 -0
  134. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.directive.ts.template +1 -1
  135. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.directive.ts.template +1 -1
  136. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +1 -1
  137. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +5 -4
  138. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.component.ts.template +4 -3
  139. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.component.ts.template +4 -3
  140. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +6 -6
  141. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +1 -1
  142. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.directive.ts.template +1 -1
  143. package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.directive.ts.template +1 -1
  144. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.directive.ts.template +1 -1
  145. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +5 -4
  146. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +1 -1
  147. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +1 -1
  148. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +1 -1
  149. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +1 -1
  150. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +1 -1
  151. package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.component.ts.template +1 -1
  152. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template +1 -1
  153. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template +1 -1
  154. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template +1 -1
  155. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-marks.directive.ts.template +1 -1
  156. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active-fill.directive.ts.template +1 -1
  157. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active.directive.ts.template +1 -1
  158. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-inactive.directive.ts.template +1 -1
  159. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template +1 -1
  160. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +1 -1
  161. package/src/generators/ui/libs/ui-sonner-helm/files/lib/hlm-toaster.component.ts.template +1 -1
  162. package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.component.ts.template +1 -1
  163. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +1 -1
  164. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +1 -1
  165. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-caption.component.ts.template +1 -1
  166. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.component.ts.template +1 -1
  167. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.directive.ts.template +1 -1
  168. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-td.component.ts.template +1 -1
  169. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-th.component.ts.template +1 -1
  170. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-trow.component.ts.template +1 -1
  171. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template +1 -1
  172. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +1 -1
  173. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template +6 -5
  174. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +1 -1
  175. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +1 -1
  176. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +1 -1
  177. package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template +19 -24
  178. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.directive.ts.template +1 -1
  179. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.directive.ts.template +1 -1
  180. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.directive.ts.template +1 -1
  181. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.directive.ts.template +1 -1
  182. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.directive.ts.template +1 -1
  183. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.directive.ts.template +1 -1
  184. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.directive.ts.template +1 -1
  185. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.directive.ts.template +1 -1
  186. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.directive.ts.template +1 -1
  187. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.directive.ts.template +1 -1
  188. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.directive.ts.template +1 -1
  189. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.directive.ts.template +1 -1
  190. package/src/generators/ui/schema.d.ts +0 -1
  191. package/src/generators/ui/supported-ui-libraries.json +69 -82
  192. package/src/utils/visit-files.d.ts +2 -0
  193. package/src/utils/visit-files.js +14 -0
  194. package/src/utils/visit-files.js.map +1 -0
  195. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.spec.ts.template +0 -64
  196. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.ts.template +0 -118
  197. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.directive.ts.template +0 -15
  198. package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.component.ts.template +0 -49
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
  import { HlmCarouselComponent } from './hlm-carousel.component';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
  import { HlmCarouselComponent } from './hlm-carousel.component';
5
5
 
@@ -8,10 +8,11 @@ import {
8
8
  input,
9
9
  untracked,
10
10
  } from '@angular/core';
11
+ import { NgIcon, provideIcons } from '@ng-icons/core';
11
12
  import { lucideArrowRight } from '@ng-icons/lucide';
13
+ import { hlm } from '@spartan-ng/brain/core';
12
14
  import { HlmButtonDirective, provideBrnButtonConfig } from '@spartan-ng/ui-button-helm';
13
- import { hlm } from '@spartan-ng/ui-core';
14
- import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
15
+ import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
15
16
  import type { ClassValue } from 'clsx';
16
17
  import { HlmCarouselComponent } from './hlm-carousel.component';
17
18
 
@@ -27,9 +28,9 @@ import { HlmCarouselComponent } from './hlm-carousel.component';
27
28
  },
28
29
  hostDirectives: [{ directive: HlmButtonDirective, inputs: ['variant', 'size'] }],
29
30
  providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
30
- imports: [HlmIconComponent],
31
+ imports: [NgIcon, HlmIconDirective],
31
32
  template: `
32
- <hlm-icon size="sm" name="lucideArrowRight" />
33
+ <ng-icon hlm size="sm" name="lucideArrowRight" />
33
34
  <span class="sr-only">Next slide</span>
34
35
  `,
35
36
  })
@@ -8,10 +8,11 @@ import {
8
8
  input,
9
9
  untracked,
10
10
  } from '@angular/core';
11
+ import { NgIcon, provideIcons } from '@ng-icons/core';
11
12
  import { lucideArrowLeft } from '@ng-icons/lucide';
13
+ import { hlm } from '@spartan-ng/brain/core';
12
14
  import { HlmButtonDirective, provideBrnButtonConfig } from '@spartan-ng/ui-button-helm';
13
- import { hlm } from '@spartan-ng/ui-core';
14
- import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
15
+ import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
15
16
  import type { ClassValue } from 'clsx';
16
17
  import { HlmCarouselComponent } from './hlm-carousel.component';
17
18
 
@@ -27,9 +28,9 @@ import { HlmCarouselComponent } from './hlm-carousel.component';
27
28
  },
28
29
  hostDirectives: [{ directive: HlmButtonDirective, inputs: ['variant', 'size'] }],
29
30
  providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
30
- imports: [HlmIconComponent],
31
+ imports: [NgIcon, HlmIconDirective],
31
32
  template: `
32
- <hlm-icon size="sm" name="lucideArrowLeft" />
33
+ <ng-icon hlm size="sm" name="lucideArrowLeft" />
33
34
  <span class="sr-only">Previous slide</span>
34
35
  `,
35
36
  })
@@ -10,7 +10,7 @@ import {
10
10
  input,
11
11
  signal,
12
12
  } from '@angular/core';
13
- import { hlm } from '@spartan-ng/ui-core';
13
+ import { hlm } from '@spartan-ng/brain/core';
14
14
  import type { ClassValue } from 'clsx';
15
15
  import {
16
16
  EmblaCarouselDirective,
@@ -1,20 +1,21 @@
1
1
  import { Component, computed, inject, input } from '@angular/core';
2
+ import { NgIcon, provideIcons } from '@ng-icons/core';
2
3
  import { lucideCheck } from '@ng-icons/lucide';
3
4
  import { BrnCheckboxComponent } from '@spartan-ng/brain/checkbox';
4
- import { hlm } from '@spartan-ng/ui-core';
5
- import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
5
+ import { hlm } from '@spartan-ng/brain/core';
6
+ import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
6
7
  import type { ClassValue } from 'clsx';
7
8
 
8
9
  @Component({
9
10
  selector: 'hlm-checkbox-checkicon',
10
11
  standalone: true,
11
- imports: [HlmIconComponent],
12
+ imports: [NgIcon, HlmIconDirective],
12
13
  providers: [provideIcons({ lucideCheck })],
13
14
  host: {
14
15
  '[class]': '_computedClass()',
15
16
  },
16
17
  template: `
17
- <hlm-icon size="sm" [name]="iconName()" />
18
+ <ng-icon hlm size="sm" [name]="iconName()" />
18
19
  `,
19
20
  })
20
21
  export class HlmCheckboxCheckIconComponent {
@@ -1,7 +1,7 @@
1
1
  import { Component, booleanAttribute, computed, forwardRef, input, model, output, signal } from '@angular/core';
2
2
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
3
  import { BrnCheckboxComponent } from '@spartan-ng/brain/checkbox';
4
- import { hlm } from '@spartan-ng/ui-core';
4
+ import { hlm } from '@spartan-ng/brain/core';
5
5
  import type { ClassValue } from 'clsx';
6
6
  import { HlmCheckboxCheckIconComponent } from './hlm-checkbox-checkicon.component';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { HlmButtonDirective, provideBrnButtonConfig } from '@spartan-ng/ui-button-helm';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Directive, ElementRef, Renderer2, computed, effect, inject, input, signal } from '@angular/core';
2
- import { hlm, injectExposesStateProvider } from '@spartan-ng/ui-core';
2
+ import { hlm, injectExposesStateProvider } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
  import { HlmCommandDirective } from './hlm-command.directive';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Component({
@@ -13,6 +13,6 @@ import type { ClassValue } from 'clsx';
13
13
  export class HlmCommandInputWrapperComponent {
14
14
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
15
15
  protected _computedClass = computed(() =>
16
- hlm('flex space-x-2 items-center border-b border-border px-3 [&_hlm-icon]:h-5 [&_hlm-icon]:w-5', this.userClass()),
16
+ hlm('flex space-x-2 items-center border-b border-border px-3 [&_ng-icon]:h-5 [&_ng-icon]:w-5', this.userClass()),
17
17
  );
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
@@ -1,17 +1,17 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import { provideHlmIconConfig } from '@spartan-ng/ui-icon-helm';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
7
7
  selector: '[hlmCmdIcon]',
8
8
  standalone: true,
9
- providers: [provideHlmIconConfig({ size: 'none' })],
9
+ providers: [provideHlmIconConfig({ size: 'sm' })],
10
10
  host: {
11
11
  '[class]': '_computedClass()',
12
12
  },
13
13
  })
14
14
  export class HlmCommandItemIconDirective {
15
15
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
- protected _computedClass = computed(() => hlm('mr-2 h-4 w-4', this.userClass()));
16
+ protected _computedClass = computed(() => hlm('mr-2', this.userClass()));
17
17
  }
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Component({
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
@@ -1,16 +1,17 @@
1
1
  import { NgComponentOutlet } from '@angular/common';
2
2
  import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
3
+ import { NgIcon, provideIcons } from '@ng-icons/core';
3
4
  import { lucideX } from '@ng-icons/lucide';
5
+ import { hlm } from '@spartan-ng/brain/core';
4
6
  import { BrnDialogCloseDirective, BrnDialogRef, injectBrnDialogContext } from '@spartan-ng/brain/dialog';
5
- import { hlm } from '@spartan-ng/ui-core';
6
- import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
7
+ import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
7
8
  import type { ClassValue } from 'clsx';
8
9
  import { HlmDialogCloseDirective } from './hlm-dialog-close.directive';
9
10
 
10
11
  @Component({
11
12
  selector: 'hlm-dialog-content',
12
13
  standalone: true,
13
- imports: [NgComponentOutlet, BrnDialogCloseDirective, HlmDialogCloseDirective, HlmIconComponent],
14
+ imports: [NgComponentOutlet, BrnDialogCloseDirective, HlmDialogCloseDirective, NgIcon, HlmIconDirective],
14
15
  providers: [provideIcons({ lucideX })],
15
16
  host: {
16
17
  '[class]': '_computedClass()',
@@ -25,7 +26,7 @@ import { HlmDialogCloseDirective } from './hlm-dialog-close.directive';
25
26
 
26
27
  <button brnDialogClose hlm>
27
28
  <span class="sr-only">Close</span>
28
- <hlm-icon class="flex h-4 w-4" size="none" name="lucideX" />
29
+ <ng-icon hlm size="sm" name="lucideX" />
29
30
  </button>
30
31
  `,
31
32
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnDialogDescriptionDirective } from '@spartan-ng/brain/dialog';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Component({
@@ -1,5 +1,5 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Component({
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, effect, input } from '@angular/core';
2
- import { hlm, injectCustomClassSettable } from '@spartan-ng/ui-core';
2
+ import { hlm, injectCustomClassSettable } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  export const hlmDialogOverlayClass =
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnDialogTitleDirective } from '@spartan-ng/brain/dialog';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
@@ -1,5 +1,5 @@
1
1
  import { Component, ElementRef, Renderer2, computed, effect, inject, input, signal } from '@angular/core';
2
- import { hlm, injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/ui-core';
2
+ import { hlm, injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
3
3
  import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Component({
@@ -1,14 +1,11 @@
1
1
  import { NgModule } from '@angular/core';
2
- import { provideIcons as provideIconsImport } from '@ng-icons/core';
3
- import { HlmIconComponent } from './lib/hlm-icon.component';
2
+ import { HlmIconDirective } from './lib/hlm-icon.directive';
4
3
 
5
- export * from './lib/hlm-icon.component';
4
+ export * from './lib/hlm-icon.directive';
6
5
  export * from './lib/hlm-icon.token';
7
6
 
8
- export const provideIcons = provideIconsImport;
9
-
10
7
  @NgModule({
11
- imports: [HlmIconComponent],
12
- exports: [HlmIconComponent],
8
+ imports: [HlmIconDirective],
9
+ exports: [HlmIconDirective],
13
10
  })
14
11
  export class HlmIconModule {}
@@ -0,0 +1,66 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+ import { By } from '@angular/platform-browser';
3
+ import { NgIcon, provideIcons } from '@ng-icons/core';
4
+ import { lucideCheck } from '@ng-icons/lucide';
5
+ import { type RenderResult, render } from '@testing-library/angular';
6
+ import { HlmIconDirective } from './hlm-icon.directive';
7
+
8
+ @Component({
9
+ selector: 'hlm-mock',
10
+ standalone: true,
11
+ changeDetection: ChangeDetectionStrategy.OnPush,
12
+ imports: [HlmIconDirective, NgIcon],
13
+ providers: [provideIcons({ lucideCheck })],
14
+ template: `
15
+ <ng-icon hlm class="test" name="lucideCheck" [size]="size" color="red" strokeWidth="2" />
16
+ `,
17
+ })
18
+ class HlmMockComponent {
19
+ @Input() public size = 'base';
20
+ }
21
+
22
+ describe('HlmIconDirective', () => {
23
+ let r: RenderResult<HlmMockComponent>;
24
+ let icon: HTMLElement;
25
+
26
+ beforeEach(async () => {
27
+ r = await render(HlmMockComponent);
28
+ icon = r.container.querySelector('ng-icon')!;
29
+ });
30
+
31
+ it('should add the xs size', async () => {
32
+ await r.rerender({ componentInputs: { size: 'xs' } });
33
+ r.fixture.detectChanges();
34
+ expect(icon.getAttribute('style')).toContain('--ng-icon__size: 12px');
35
+ });
36
+
37
+ it('should add the sm size', async () => {
38
+ await r.rerender({ componentInputs: { size: 'sm' } });
39
+ r.fixture.detectChanges();
40
+ expect(icon.getAttribute('style')).toContain('--ng-icon__size: 16px');
41
+ });
42
+
43
+ it('should add the base size', () => {
44
+ expect(icon.getAttribute('style')).toContain('--ng-icon__size: 24px');
45
+ });
46
+
47
+ it('should add the lg size', async () => {
48
+ await r.rerender({ componentInputs: { size: 'lg' } });
49
+ r.fixture.detectChanges();
50
+ expect(icon.getAttribute('style')).toContain('--ng-icon__size: 32px');
51
+ });
52
+
53
+ it('should add the xl size', async () => {
54
+ await r.rerender({ componentInputs: { size: 'xl' } });
55
+ r.fixture.detectChanges();
56
+ expect(icon.getAttribute('style')).toContain('--ng-icon__size: 48px');
57
+ });
58
+
59
+ it('should forward the size property if the size is not a pre-defined size', async () => {
60
+ await r.rerender({ componentInputs: { size: '2rem' } });
61
+ r.fixture.detectChanges();
62
+ const debugEl = r.fixture.debugElement.query(By.directive(NgIcon));
63
+ expect(debugEl.componentInstance.size()).toBe('2rem');
64
+ expect(icon.getAttribute('style')).toContain('--ng-icon__size: 2rem');
65
+ });
66
+ });
@@ -0,0 +1,41 @@
1
+ import { Directive, computed, input } from '@angular/core';
2
+ import { injectHlmIconConfig } from './hlm-icon.token';
3
+
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ const DEFINED_SIZES = ['xs', 'sm', 'base', 'lg', 'xl', 'none'] as const;
6
+
7
+ type DefinedSizes = (typeof DEFINED_SIZES)[number];
8
+
9
+ export type IconSize = DefinedSizes | (Record<never, never> & string);
10
+
11
+ @Directive({
12
+ selector: 'ng-icon[hlm]',
13
+ standalone: true,
14
+ host: {
15
+ '[style.--ng-icon__size]': '_computedSize()',
16
+ },
17
+ })
18
+ export class HlmIconDirective {
19
+ private readonly _config = injectHlmIconConfig();
20
+ public readonly size = input<IconSize>(this._config.size);
21
+
22
+ protected readonly _computedSize = computed(() => {
23
+ const size = this.size();
24
+
25
+ switch (size) {
26
+ case 'xs':
27
+ return '12px';
28
+ case 'sm':
29
+ return '16px';
30
+ case 'base':
31
+ return '24px';
32
+ case 'lg':
33
+ return '32px';
34
+ case 'xl':
35
+ return '48px';
36
+ default: {
37
+ return size;
38
+ }
39
+ }
40
+ });
41
+ }
@@ -1,14 +1,11 @@
1
1
  import { InjectionToken, ValueProvider, inject } from '@angular/core';
2
- import { type IconType } from '@ng-icons/core';
3
- import type { IconSize } from './hlm-icon.component';
2
+ import type { IconSize } from './hlm-icon.directive';
4
3
 
5
4
  export interface HlmIconConfig {
6
- name: IconType;
7
5
  size: IconSize;
8
6
  }
9
7
 
10
8
  const defaultConfig: HlmIconConfig = {
11
- name: '',
12
9
  size: 'base',
13
10
  };
14
11
 
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import { type VariantProps, cva } from 'class-variance-authority';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
@@ -1,8 +1,8 @@
1
1
  import { Directive, type DoCheck, Injector, computed, effect, inject, input, signal } from '@angular/core';
2
2
  import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
+ import { hlm } from '@spartan-ng/brain/core';
3
4
  import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
4
5
  import { ErrorStateMatcher, ErrorStateTracker } from '@spartan-ng/brain/forms';
5
- import { hlm } from '@spartan-ng/ui-core';
6
6
 
7
7
  import { type VariantProps, cva } from 'class-variance-authority';
8
8
  import type { ClassValue } from 'clsx';
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, inject, input, signal } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnLabelDirective } from '@spartan-ng/brain/label';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import { type VariantProps, cva } from 'class-variance-authority';
5
5
  import type { ClassValue } from 'clsx';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnMenuItemDirective } from '@spartan-ng/brain/menu';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
@@ -1,6 +1,6 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnMenuBarDirective } from '@spartan-ng/brain/menu';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Component({
@@ -1,17 +1,18 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
+ import { NgIcon, provideIcons } from '@ng-icons/core';
2
3
  import { lucideCheck } from '@ng-icons/lucide';
3
- import { hlm } from '@spartan-ng/ui-core';
4
- import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
4
+ import { hlm } from '@spartan-ng/brain/core';
5
+ import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
5
6
  import type { ClassValue } from 'clsx';
6
7
 
7
8
  @Component({
8
9
  selector: 'hlm-menu-item-check',
9
10
  standalone: true,
10
11
  providers: [provideIcons({ lucideCheck })],
11
- imports: [HlmIconComponent],
12
+ imports: [NgIcon, HlmIconDirective],
12
13
  template: `
13
14
  <!-- Using 1rem for size to mimick h-4 w-4 -->
14
- <hlm-icon size="1rem" name="lucideCheck" />
15
+ <ng-icon hlm size="1rem" name="lucideCheck" />
15
16
  `,
16
17
  host: {
17
18
  '[class]': '_computedClass()',
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnMenuItemCheckboxDirective } from '@spartan-ng/brain/menu';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
@@ -1,17 +1,17 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/ui-core';
2
+ import { hlm } from '@spartan-ng/brain/core';
3
3
  import { provideHlmIconConfig } from '@spartan-ng/ui-icon-helm';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
7
7
  selector: '[hlmMenuIcon]',
8
8
  standalone: true,
9
- providers: [provideHlmIconConfig({ size: 'none' })],
9
+ providers: [provideHlmIconConfig({ size: 'sm' })],
10
10
  host: {
11
11
  '[class]': '_computedClass()',
12
12
  },
13
13
  })
14
14
  export class HlmMenuItemIconDirective {
15
15
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
- protected _computedClass = computed(() => hlm('mr-2 h-4 w-4', this.userClass()));
16
+ protected _computedClass = computed(() => hlm('mr-2', this.userClass()));
17
17
  }
@@ -1,17 +1,18 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
+ import { NgIcon, provideIcons } from '@ng-icons/core';
2
3
  import { lucideCircle } from '@ng-icons/lucide';
3
- import { hlm } from '@spartan-ng/ui-core';
4
- import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
4
+ import { hlm } from '@spartan-ng/brain/core';
5
+ import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
5
6
  import type { ClassValue } from 'clsx';
6
7
 
7
8
  @Component({
8
9
  selector: 'hlm-menu-item-radio',
9
10
  standalone: true,
10
11
  providers: [provideIcons({ lucideCircle })],
11
- imports: [HlmIconComponent],
12
+ imports: [NgIcon, HlmIconDirective],
12
13
  template: `
13
14
  <!-- Using 0.5rem for size to mimick h-2 w-2 -->
14
- <hlm-icon size="0.5rem" class="*:*:fill-current" name="lucideCircle" />
15
+ <ng-icon hlm size="0.5rem" class="*:*:fill-current" name="lucideCircle" />
15
16
  `,
16
17
  host: {
17
18
  '[class]': '_computedClass()',
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnMenuItemRadioDirective } from '@spartan-ng/brain/menu';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
@@ -1,16 +1,17 @@
1
1
  import { Component, computed, input } from '@angular/core';
2
+ import { NgIcon, provideIcons } from '@ng-icons/core';
2
3
  import { lucideChevronRight } from '@ng-icons/lucide';
3
- import { hlm } from '@spartan-ng/ui-core';
4
- import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
4
+ import { hlm } from '@spartan-ng/brain/core';
5
+ import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
5
6
  import type { ClassValue } from 'clsx';
6
7
 
7
8
  @Component({
8
9
  selector: 'hlm-menu-item-sub-indicator',
9
10
  standalone: true,
10
11
  providers: [provideIcons({ lucideChevronRight })],
11
- imports: [HlmIconComponent],
12
+ imports: [NgIcon, HlmIconDirective],
12
13
  template: `
13
- <hlm-icon size="none" class="h-full w-full" name="lucideChevronRight" />
14
+ <ng-icon hlm size="none" class="h-full w-full" name="lucideChevronRight" />
14
15
  `,
15
16
  host: {
16
17
  '[class]': '_computedClass()',
@@ -1,6 +1,6 @@
1
1
  import { Directive, Input, booleanAttribute, computed, input, signal } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/brain/core';
2
3
  import { BrnMenuItemDirective } from '@spartan-ng/brain/menu';
3
- import { hlm } from '@spartan-ng/ui-core';
4
4
  import { type VariantProps, cva } from 'class-variance-authority';
5
5
  import type { ClassValue } from 'clsx';
6
6