@spartan-ng/cli 0.0.1-alpha.527 → 0.0.1-alpha.529

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 (25) hide show
  1. package/package.json +1 -1
  2. package/src/generators/migrate-helm-imports/import-map.d.ts +1 -0
  3. package/src/generators/migrate-helm-imports/import-map.js +1 -0
  4. package/src/generators/migrate-helm-imports/import-map.js.map +1 -1
  5. package/src/generators/migrate-module-imports/generator.js +6 -1
  6. package/src/generators/migrate-module-imports/generator.js.map +1 -1
  7. package/src/generators/ui/libs/ui-button-group-helm/files/index.ts.template +9 -0
  8. package/src/generators/ui/libs/ui-button-group-helm/files/lib/hlm-button-group-separator.ts.template +24 -0
  9. package/src/generators/ui/libs/ui-button-group-helm/files/lib/hlm-button-group-text.ts.template +20 -0
  10. package/src/generators/ui/libs/ui-button-group-helm/files/lib/hlm-button-group.ts.template +39 -0
  11. package/src/generators/ui/libs/ui-button-group-helm/generator.d.ts +3 -0
  12. package/src/generators/ui/libs/ui-button-group-helm/generator.js +14 -0
  13. package/src/generators/ui/libs/ui-button-group-helm/generator.js.map +1 -0
  14. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.ts.template +5 -3
  15. package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +2 -1
  16. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.ts.template +1 -1
  17. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +9 -9
  18. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.ts.template +1 -1
  19. package/src/generators/ui/libs/ui-table-helm/files/index.ts.template +22 -2
  20. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.ts.template +28 -9
  21. package/src/generators/ui/primitive-deps.js +1 -0
  22. package/src/generators/ui/primitive-deps.js.map +1 -1
  23. package/src/generators/ui/primitives.d.ts +1 -1
  24. package/src/generators/ui/supported-ui-libraries.json +41 -32
  25. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.ts.template +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spartan-ng/cli",
3
- "version": "0.0.1-alpha.527",
3
+ "version": "0.0.1-alpha.529",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@nx/angular": ">=20.0.0",
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  '@spartan-ng/ui-badge-helm': string;
10
10
  '@spartan-ng/ui-breadcrumb-helm': string;
11
11
  '@spartan-ng/ui-button-helm': string;
12
+ '@spartan-ng/ui-button-group-helm': string;
12
13
  '@spartan-ng/ui-calendar-helm': string;
13
14
  '@spartan-ng/ui-card-helm': string;
14
15
  '@spartan-ng/ui-carousel-helm': string;
@@ -11,6 +11,7 @@ exports.default = {
11
11
  '@spartan-ng/ui-badge-helm': '@spartan-ng/helm/badge',
12
12
  '@spartan-ng/ui-breadcrumb-helm': '@spartan-ng/helm/breadcrumb',
13
13
  '@spartan-ng/ui-button-helm': '@spartan-ng/helm/button',
14
+ '@spartan-ng/ui-button-group-helm': '@spartan-ng/helm/button-group',
14
15
  '@spartan-ng/ui-calendar-helm': '@spartan-ng/helm/calendar',
15
16
  '@spartan-ng/ui-card-helm': '@spartan-ng/helm/card',
16
17
  '@spartan-ng/ui-carousel-helm': '@spartan-ng/helm/carousel',
@@ -1 +1 @@
1
- {"version":3,"file":"import-map.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-helm-imports/import-map.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACd,+BAA+B,EAAE,4BAA4B;IAC7D,2BAA2B,EAAE,wBAAwB;IACrD,kCAAkC,EAAE,+BAA+B;IACnE,iCAAiC,EAAE,+BAA+B;IAClE,kCAAkC,EAAE,+BAA+B;IACnE,iCAAiC,EAAE,+BAA+B;IAClE,4BAA4B,EAAE,yBAAyB;IACvD,2BAA2B,EAAE,wBAAwB;IACrD,gCAAgC,EAAE,6BAA6B;IAC/D,4B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8BAA8B,EAAE,2BAA2B;IAC3D,4BAA4B,EAAE,yBAAyB;IACvD,4BAA4B,EAAE,yBAAyB;IACvD,6BAA6B,EAAE,0BAA0B;IACzD,4BAA4B,EAAE,yBAAyB;IACvD,2BAA2B,EAAE,wBAAwB;IACrD,0BAA0B,EAAE,uBAAuB;IACnD,4BAA4B,EAAE,yBAAyB;IACvD,kCAAkC,EAAE,+BAA+B;IACnE,iCAAiC,EAAE,+BAA+B;IAClE,6BAA6B,EAAE,0BAA0B;IACzD,gCAAgC,EAAE,6BAA6B;CAC/D,CAAC"}
@@ -50,7 +50,12 @@ function replaceUsages(tree, oldPackageName, newPackageName) {
50
50
  });
51
51
  }
52
52
  function deduplicateImports(tree) {
53
- (0, devkit_1.visitNotIgnoredFiles)(tree, '.', (path) => {
53
+ const changedFiles = tree
54
+ .listChanges()
55
+ // 'CREATE' is needed for testing
56
+ .filter((change) => change.type === 'CREATE' || change.type === 'UPDATE')
57
+ .map((change) => change.path);
58
+ changedFiles.forEach((path) => {
54
59
  if ((0, binary_extensions_1.isBinaryPath)(path))
55
60
  return;
56
61
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-module-imports/generator.ts"],"names":[],"mappings":";;AAOA,sEAUC;;AAjBD,uCAA0E;AAC1E,0DAA+C;AAC/C,+BAAgC;AAChC,wFAAgF;AAChF,sEAAqC;AAG9B,KAAK,UAAU,6BAA6B,CAAC,IAAU,EAAE,OAA4C;IAC3G,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,oBAAS,CAAC,EAAE,CAAC;QACpD,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAC/B,CAAC;IAED,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAEzB,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,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CAAC;qBAC5C,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,UAAU,IAAI,CAAC;qBACrG,IAAI,CAAC,IAAI,CAAC,CAAC;gBACb,QAAQ,GAAG,YAAY,GAAG,IAAI,GAAG,QAAQ,CAAC;YAC3C,CAAC;YAED,gCAAgC;YAChC,yDAAyD;YACzD,gCAAgC;YAChC,MAAM,iBAAiB,GAAG,+BAA+B,CAAC;YAC1D,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBAC/D,MAAM,WAAW,GAAG,KAAK;qBACvB,KAAK,CAAC,GAAG,CAAC;qBACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;qBACpB,MAAM,CAAC,OAAO,CAAC,CAAC;gBAElB,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;gBACjD,OAAO,aAAa,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;YAC3C,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC5B,CAAC;QAAC,MAAM,CAAC;YACR,uBAAM,CAAC,IAAI,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,kBAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-module-imports/generator.ts"],"names":[],"mappings":";;AAOA,sEAUC;;AAjBD,uCAA0E;AAC1E,0DAA+C;AAC/C,+BAAgC;AAChC,wFAAgF;AAChF,sEAAqC;AAG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,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;gBACjD,OAAO,aAAa,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;YAC3C,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC5B,CAAC;QAAC,MAAM,CAAC;YACR,uBAAM,CAAC,IAAI,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,kBAAe,6BAA6B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { HlmButtonGroup } from './lib/hlm-button-group';
2
+ import { HlmButtonGroupSeparator } from './lib/hlm-button-group-separator';
3
+ import { HlmButtonGroupText } from './lib/hlm-button-group-text';
4
+
5
+ export * from './lib/hlm-button-group';
6
+ export * from './lib/hlm-button-group-separator';
7
+ export * from './lib/hlm-button-group-text';
8
+
9
+ export const HlmButtonGroupImports = [HlmButtonGroup, HlmButtonGroupText, HlmButtonGroupSeparator] as const;
@@ -0,0 +1,24 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { BrnSeparator, provideBrnSeparatorConfig } from '@spartan-ng/brain/separator';
3
+ import { hlm } from '<%- importAlias %>/utils';
4
+ import type { ClassValue } from 'clsx';
5
+
6
+ @Directive({
7
+ selector: '[hlmButtonGroupSeparator],hlm-button-group-separator',
8
+ hostDirectives: [{ directive: BrnSeparator, inputs: ['orientation', 'decorative'] }],
9
+ providers: [provideBrnSeparatorConfig({ orientation: 'vertical' })],
10
+ host: {
11
+ 'data-slot': 'button-group-separator',
12
+ '[class]': '_computedClass()',
13
+ },
14
+ })
15
+ export class HlmButtonGroupSeparator {
16
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
+
18
+ protected readonly _computedClass = computed(() =>
19
+ hlm(
20
+ 'bg-input relative inline-flex shrink-0 self-stretch data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-auto data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px',
21
+ this.userClass(),
22
+ ),
23
+ );
24
+ }
@@ -0,0 +1,20 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { hlm } from '<%- importAlias %>/utils';
3
+ import { ClassValue } from 'clsx';
4
+
5
+ @Directive({
6
+ selector: '[hlmButtonGroupText]',
7
+ host: {
8
+ '[class]': '_computedClass()',
9
+ },
10
+ })
11
+ export class HlmButtonGroupText {
12
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
+
14
+ protected readonly _computedClass = computed(() =>
15
+ hlm(
16
+ "bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_ng-icon:not([class*='size-'])]:size-4 [&_ng-icon]:pointer-events-none",
17
+ this.userClass(),
18
+ ),
19
+ );
20
+ }
@@ -0,0 +1,39 @@
1
+ import { computed, Directive, input } from '@angular/core';
2
+ import { hlm } from '<%- importAlias %>/utils';
3
+ import { cva } from 'class-variance-authority';
4
+ import { ClassValue } from 'clsx';
5
+
6
+ export const buttonGroupVariants = cva(
7
+ "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
8
+ {
9
+ variants: {
10
+ orientation: {
11
+ horizontal:
12
+ '[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none',
13
+ vertical:
14
+ 'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none',
15
+ },
16
+ },
17
+ defaultVariants: {
18
+ orientation: 'horizontal',
19
+ },
20
+ },
21
+ );
22
+
23
+ @Directive({
24
+ selector: '[hlmButtonGroup]',
25
+ host: {
26
+ 'data-slot': 'button-group',
27
+ role: 'group',
28
+ '[class]': '_computedClass()',
29
+ '[attr.data-orientation]': 'orientation()',
30
+ },
31
+ })
32
+ export class HlmButtonGroup {
33
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
34
+ public readonly orientation = input<'horizontal' | 'vertical'>('horizontal');
35
+
36
+ protected readonly _computedClass = computed(() =>
37
+ hlm(buttonGroupVariants({ orientation: this.orientation() }), this.userClass()),
38
+ );
39
+ }
@@ -0,0 +1,3 @@
1
+ import type { Tree } from '@nx/devkit';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
+ export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generator = generator;
4
+ const tslib_1 = require("tslib");
5
+ const generator_1 = tslib_1.__importDefault(require("../../../base/generator"));
6
+ async function generator(tree, options) {
7
+ return await (0, generator_1.default)(tree, {
8
+ ...options,
9
+ primitiveName: 'button-group',
10
+ internalName: 'ui-button-group-helm',
11
+ publicName: 'ui-button-group-helm',
12
+ });
13
+ }
14
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-button-group-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AAVD,gFAAuD;AAGhD,KAAK,UAAU,SAAS,CAAC,IAAU,EAAE,OAA+B;IAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,EAAE;QACnC,GAAG,OAAO;QACV,aAAa,EAAE,cAAc;QAC7B,YAAY,EAAE,sBAAsB;QACpC,UAAU,EAAE,sBAAsB;KAClC,CAAC,CAAC;AACJ,CAAC"}
@@ -10,12 +10,12 @@ export const buttonVariants = cva(
10
10
  {
11
11
  variants: {
12
12
  variant: {
13
- default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
13
+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',
14
14
  destructive:
15
- 'bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white',
15
+ 'bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white',
16
16
  outline:
17
17
  'bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border',
18
- secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
18
+ secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
19
19
  ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
20
20
  link: 'text-primary underline-offset-4 hover:underline',
21
21
  },
@@ -24,6 +24,8 @@ export const buttonVariants = cva(
24
24
  sm: 'h-8 gap-1.5 rounded-md px-3 has-[>ng-icon]:px-2.5',
25
25
  lg: 'h-10 rounded-md px-6 has-[>ng-icon]:px-4',
26
26
  icon: 'size-9',
27
+ 'icon-sm': 'size-8',
28
+ 'icon-lg': 'size-10',
27
29
  },
28
30
  },
29
31
  defaultVariants: {
@@ -1,6 +1,7 @@
1
+ import { NgIcon } from '@ng-icons/core';
1
2
  import { HlmIcon } from './lib/hlm-icon';
2
3
 
3
4
  export * from './lib/hlm-icon';
4
5
  export * from './lib/hlm-icon.token';
5
6
 
6
- export const HlmIconImports = [HlmIcon] as const;
7
+ export const HlmIconImports = [HlmIcon, NgIcon] as const;
@@ -4,7 +4,7 @@ import { injectHlmIconConfig } from './hlm-icon.token';
4
4
  export type IconSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | 'none' | (Record<never, never> & string);
5
5
 
6
6
  @Directive({
7
- selector: 'ng-icon[hlm]',
7
+ selector: 'ng-icon[hlmIcon], ng-icon[hlm]',
8
8
  host: {
9
9
  '[style.--ng-icon__size]': '_computedSize()',
10
10
  },
@@ -46,24 +46,24 @@ type InputVariants = VariantProps<typeof inputVariants>;
46
46
  ],
47
47
  })
48
48
  export class HlmInput implements BrnFormFieldControl, DoCheck {
49
- public readonly error = input<InputVariants['error']>('auto');
49
+ private readonly _injector = inject(Injector);
50
50
 
51
- protected readonly _state = linkedSignal(() => ({ error: this.error() }));
51
+ private readonly _errorStateTracker: ErrorStateTracker;
52
+
53
+ private readonly _defaultErrorStateMatcher = inject(ErrorStateMatcher);
54
+ private readonly _parentForm = inject(NgForm, { optional: true });
55
+ private readonly _parentFormGroup = inject(FormGroupDirective, { optional: true });
52
56
 
53
57
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
54
58
  protected readonly _computedClass = computed(() =>
55
59
  hlm(inputVariants({ error: this._state().error }), this.userClass()),
56
60
  );
57
61
 
58
- private readonly _injector = inject(Injector);
59
-
60
- public readonly ngControl: NgControl | null = this._injector.get(NgControl, null);
62
+ public readonly error = input<InputVariants['error']>('auto');
61
63
 
62
- private readonly _errorStateTracker: ErrorStateTracker;
64
+ protected readonly _state = linkedSignal(() => ({ error: this.error() }));
63
65
 
64
- private readonly _defaultErrorStateMatcher = inject(ErrorStateMatcher);
65
- private readonly _parentForm = inject(NgForm, { optional: true });
66
- private readonly _parentFormGroup = inject(FormGroupDirective, { optional: true });
66
+ public readonly ngControl: NgControl | null = this._injector.get(NgControl, null);
67
67
 
68
68
  public readonly errorState = computed(() => this._errorStateTracker.errorState());
69
69
 
@@ -11,6 +11,6 @@ import type { ClassValue } from 'clsx';
11
11
  export class HlmSelectValue {
12
12
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
13
  protected readonly _computedClass = computed(() =>
14
- hlm('data-[placeholder]:text-muted-foreground line-clamp-1 flex items-center gap-2', this.userClass()),
14
+ hlm('data-[placeholder]:text-muted-foreground line-clamp-1 flex items-center gap-2 truncate', this.userClass()),
15
15
  );
16
16
  }
@@ -1,5 +1,25 @@
1
- import { HlmCaption, HlmTable, HlmTBody, HlmTd, HlmTFoot, HlmTh, HlmTHead, HlmTr } from './lib/hlm-table';
1
+ import {
2
+ HlmCaption,
3
+ HlmTable,
4
+ HlmTableContainer,
5
+ HlmTBody,
6
+ HlmTd,
7
+ HlmTFoot,
8
+ HlmTh,
9
+ HlmTHead,
10
+ HlmTr,
11
+ } from './lib/hlm-table';
2
12
 
3
13
  export * from './lib/hlm-table';
4
14
 
5
- export const HlmTableImports = [HlmCaption, HlmTable, HlmTBody, HlmTd, HlmTFoot, HlmTh, HlmTHead, HlmTr] as const;
15
+ export const HlmTableImports = [
16
+ HlmCaption,
17
+ HlmTableContainer,
18
+ HlmTable,
19
+ HlmTBody,
20
+ HlmTd,
21
+ HlmTFoot,
22
+ HlmTh,
23
+ HlmTHead,
24
+ HlmTr,
25
+ ] as const;
@@ -6,6 +6,7 @@ import type { ClassValue } from 'clsx';
6
6
  // Configuration Interface and InjectionToken
7
7
  export const HlmTableConfigToken = new InjectionToken<HlmTableVariant>('HlmTableConfig');
8
8
  export interface HlmTableVariant {
9
+ tableContainer: string;
9
10
  table: string;
10
11
  thead: string;
11
12
  tbody: string;
@@ -17,13 +18,14 @@ export interface HlmTableVariant {
17
18
  }
18
19
 
19
20
  export const HlmTableVariantDefault: HlmTableVariant = {
21
+ tableContainer: 'relative w-full overflow-x-auto',
20
22
  table: 'w-full caption-bottom text-sm',
21
23
  thead: '[&_tr]:border-b',
22
24
  tbody: '[&_tr:last-child]:border-0',
23
25
  tfoot: 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',
24
26
  tr: 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',
25
- th: 'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
26
- td: 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
27
+ th: 'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0',
28
+ td: 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0',
27
29
  caption: 'text-muted-foreground mt-4 text-sm',
28
30
  };
29
31
 
@@ -38,6 +40,22 @@ export function injectHlmTableConfig(): HlmTableVariant {
38
40
  return inject(HlmTableConfigToken, { optional: true }) ?? HlmTableVariantDefault;
39
41
  }
40
42
 
43
+ @Directive({
44
+ selector: 'div[hlmTableContainer]',
45
+ host: {
46
+ '[class]': '_computedClass()',
47
+ 'data-slot': 'table-container',
48
+ },
49
+ })
50
+ export class HlmTableContainer {
51
+ private readonly _globalOrDefaultConfig = injectHlmTableConfig();
52
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
53
+
54
+ protected readonly _computedClass = computed(() =>
55
+ hlm(this._globalOrDefaultConfig ? this._globalOrDefaultConfig.tableContainer.trim() : '', this.userClass()),
56
+ );
57
+ }
58
+
41
59
  /**
42
60
  * Directive to apply Shadcn-like styling to a <table> element.
43
61
  * It resolves and provides base classes for its child table elements.
@@ -46,9 +64,9 @@ export function injectHlmTableConfig(): HlmTableVariant {
46
64
  */
47
65
  @Directive({
48
66
  selector: 'table[hlmTable]',
49
- standalone: true,
50
67
  host: {
51
68
  '[class]': '_computedClass()',
69
+ 'data-slot': 'table',
52
70
  },
53
71
  })
54
72
  export class HlmTable {
@@ -85,9 +103,9 @@ export class HlmTable {
85
103
  */
86
104
  @Directive({
87
105
  selector: 'thead[hlmTHead]',
88
- standalone: true,
89
106
  host: {
90
107
  '[class]': '_computedClass()',
108
+ 'data-slot': 'table-header',
91
109
  },
92
110
  })
93
111
  export class HlmTHead {
@@ -105,9 +123,9 @@ export class HlmTHead {
105
123
  */
106
124
  @Directive({
107
125
  selector: 'tbody[hlmTBody]',
108
- standalone: true,
109
126
  host: {
110
127
  '[class]': '_computedClass()',
128
+ 'data-slot': 'table-body',
111
129
  },
112
130
  })
113
131
  export class HlmTBody {
@@ -125,9 +143,9 @@ export class HlmTBody {
125
143
  */
126
144
  @Directive({
127
145
  selector: 'tfoot[hlmTFoot]',
128
- standalone: true,
129
146
  host: {
130
147
  '[class]': '_computedClass()',
148
+ 'data-slot': 'table-footer',
131
149
  },
132
150
  })
133
151
  export class HlmTFoot {
@@ -145,9 +163,9 @@ export class HlmTFoot {
145
163
  */
146
164
  @Directive({
147
165
  selector: 'tr[hlmTr]',
148
- standalone: true,
149
166
  host: {
150
167
  '[class]': '_computedClass()',
168
+ 'data-slot': 'table-row',
151
169
  },
152
170
  })
153
171
  export class HlmTr {
@@ -165,9 +183,9 @@ export class HlmTr {
165
183
  */
166
184
  @Directive({
167
185
  selector: 'th[hlmTh]',
168
- standalone: true,
169
186
  host: {
170
187
  '[class]': '_computedClass()',
188
+ 'data-slot': 'table-head',
171
189
  },
172
190
  })
173
191
  export class HlmTh {
@@ -188,6 +206,7 @@ export class HlmTh {
188
206
  standalone: true,
189
207
  host: {
190
208
  '[class]': '_computedClass()',
209
+ 'data-slot': 'table-cell',
191
210
  },
192
211
  })
193
212
  export class HlmTd {
@@ -205,9 +224,9 @@ export class HlmTd {
205
224
  */
206
225
  @Directive({
207
226
  selector: 'caption[hlmCaption]',
208
- standalone: true,
209
227
  host: {
210
228
  '[class]': '_computedClass()',
229
+ 'data-slot': 'table-caption',
211
230
  },
212
231
  })
213
232
  export class HlmCaption {
@@ -11,6 +11,7 @@ exports.primitiveDependencies = {
11
11
  badge: ['utils'],
12
12
  breadcrumb: ['utils', 'icon'],
13
13
  button: ['utils'],
14
+ 'button-group': ['utils', 'separator', 'button'],
14
15
  calendar: ['utils', 'button', 'icon'],
15
16
  card: ['utils'],
16
17
  carousel: ['utils'],
@@ -1 +1 @@
1
- {"version":3,"file":"primitive-deps.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/primitive-deps.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAmC;IACpE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IA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,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAa,CAAC;IAEjD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACpC,MAAM,IAAI,GAAG,6BAAqB,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACpD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,2FAA2F;gBAC3F,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC9B,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AACxC,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
@@ -1 +1 @@
1
- export type Primitive = 'accordion' | 'alert' | 'alert-dialog' | 'aspect-ratio' | 'autocomplete' | 'avatar' | 'badge' | 'breadcrumb' | 'button' | 'calendar' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'form-field' | 'hover-card' | 'icon' | 'input' | 'input-group' | 'input-otp' | 'kbd' | 'label' | 'menu' | 'menubar' | 'pagination' | 'popover' | 'progress' | 'radio-group' | 'scroll-area' | 'select' | 'separator' | 'sheet' | 'sidebar' | 'skeleton' | 'slider' | 'sonner' | 'spinner' | 'switch' | 'table' | 'tabs' | 'toggle' | 'toggle-group' | 'tooltip' | 'utils';
1
+ export type Primitive = 'accordion' | 'alert' | 'alert-dialog' | 'aspect-ratio' | 'autocomplete' | 'avatar' | 'badge' | 'breadcrumb' | 'button' | 'button-group' | 'calendar' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'form-field' | 'hover-card' | 'icon' | 'input' | 'input-group' | 'input-otp' | 'kbd' | 'label' | 'menu' | 'menubar' | 'pagination' | 'popover' | 'progress' | 'radio-group' | 'scroll-area' | 'select' | 'separator' | 'sheet' | 'sidebar' | 'skeleton' | 'slider' | 'sonner' | 'spinner' | 'switch' | 'table' | 'tabs' | 'toggle' | 'toggle-group' | 'tooltip' | 'utils';
@@ -3,7 +3,7 @@
3
3
  "internalName": "ui-accordion-helm",
4
4
  "peerDependencies": {
5
5
  "@angular/core": ">=19.0.0",
6
- "@spartan-ng/brain": "0.0.1-alpha.527",
6
+ "@spartan-ng/brain": "0.0.1-alpha.529",
7
7
  "clsx": "^2.1.1",
8
8
  "@ng-icons/core": ">=29.0.0",
9
9
  "@ng-icons/lucide": ">=29.0.0"
@@ -21,7 +21,7 @@
21
21
  "internalName": "ui-alert-dialog-helm",
22
22
  "peerDependencies": {
23
23
  "@angular/core": ">=19.0.0",
24
- "@spartan-ng/brain": "0.0.1-alpha.527",
24
+ "@spartan-ng/brain": "0.0.1-alpha.529",
25
25
  "clsx": "^2.1.1"
26
26
  }
27
27
  },
@@ -38,7 +38,7 @@
38
38
  "peerDependencies": {
39
39
  "@angular/core": ">=19.0.0",
40
40
  "clsx": "^2.1.1",
41
- "@spartan-ng/brain": "0.0.1-alpha.527",
41
+ "@spartan-ng/brain": "0.0.1-alpha.529",
42
42
  "@angular/cdk": ">=19.0.0",
43
43
  "@angular/common": ">=19.0.0",
44
44
  "@angular/forms": ">=19.0.0",
@@ -50,7 +50,7 @@
50
50
  "internalName": "ui-avatar-helm",
51
51
  "peerDependencies": {
52
52
  "@angular/core": ">=19.0.0",
53
- "@spartan-ng/brain": "0.0.1-alpha.527",
53
+ "@spartan-ng/brain": "0.0.1-alpha.529",
54
54
  "clsx": "^2.1.1"
55
55
  }
56
56
  },
@@ -76,11 +76,20 @@
76
76
  "internalName": "ui-button-helm",
77
77
  "peerDependencies": {
78
78
  "@angular/core": ">=19.0.0",
79
- "@spartan-ng/brain": "0.0.1-alpha.527",
79
+ "@spartan-ng/brain": "0.0.1-alpha.529",
80
80
  "class-variance-authority": "^0.7.0",
81
81
  "clsx": "^2.1.1"
82
82
  }
83
83
  },
84
+ "button-group": {
85
+ "internalName": "ui-button-group-helm",
86
+ "peerDependencies": {
87
+ "@angular/core": ">=19.0.0",
88
+ "@spartan-ng/brain": "0.0.1-alpha.529",
89
+ "clsx": "^2.1.1",
90
+ "class-variance-authority": "^0.7.0"
91
+ }
92
+ },
84
93
  "calendar": {
85
94
  "internalName": "ui-calendar-helm",
86
95
  "peerDependencies": {
@@ -89,7 +98,7 @@
89
98
  "@angular/core": ">=19.0.0",
90
99
  "@ng-icons/core": ">=29.0.0",
91
100
  "@ng-icons/lucide": ">=29.0.0",
92
- "@spartan-ng/brain": "0.0.1-alpha.527",
101
+ "@spartan-ng/brain": "0.0.1-alpha.529",
93
102
  "clsx": "^2.1.1"
94
103
  }
95
104
  },
@@ -119,7 +128,7 @@
119
128
  "@angular/forms": ">=19.0.0",
120
129
  "@ng-icons/core": ">=29.0.0",
121
130
  "@ng-icons/lucide": ">=29.0.0",
122
- "@spartan-ng/brain": "0.0.1-alpha.527",
131
+ "@spartan-ng/brain": "0.0.1-alpha.529",
123
132
  "clsx": "^2.1.1"
124
133
  }
125
134
  },
@@ -127,7 +136,7 @@
127
136
  "internalName": "ui-command-helm",
128
137
  "peerDependencies": {
129
138
  "@angular/core": ">=19.0.0",
130
- "@spartan-ng/brain": "0.0.1-alpha.527",
139
+ "@spartan-ng/brain": "0.0.1-alpha.529",
131
140
  "clsx": "^2.1.1"
132
141
  }
133
142
  },
@@ -139,7 +148,7 @@
139
148
  "@angular/forms": ">=19.0.0",
140
149
  "@ng-icons/core": ">=29.0.0",
141
150
  "@ng-icons/lucide": ">=29.0.0",
142
- "@spartan-ng/brain": "0.0.1-alpha.527",
151
+ "@spartan-ng/brain": "0.0.1-alpha.529",
143
152
  "clsx": "^2.1.1"
144
153
  }
145
154
  },
@@ -151,7 +160,7 @@
151
160
  "@angular/common": ">=19.0.0",
152
161
  "@ng-icons/core": ">=29.0.0",
153
162
  "@ng-icons/lucide": ">=29.0.0",
154
- "@spartan-ng/brain": "0.0.1-alpha.527",
163
+ "@spartan-ng/brain": "0.0.1-alpha.529",
155
164
  "@angular/cdk": ">=19.0.0"
156
165
  }
157
166
  },
@@ -160,7 +169,7 @@
160
169
  "peerDependencies": {
161
170
  "@angular/core": ">=19.0.0",
162
171
  "@angular/forms": ">=19.0.0",
163
- "@spartan-ng/brain": "0.0.1-alpha.527",
172
+ "@spartan-ng/brain": "0.0.1-alpha.529",
164
173
  "clsx": "^2.1.1"
165
174
  }
166
175
  },
@@ -168,15 +177,15 @@
168
177
  "internalName": "ui-hover-card-helm",
169
178
  "peerDependencies": {
170
179
  "@angular/core": ">=19.0.0",
171
- "@spartan-ng/brain": "0.0.1-alpha.527",
180
+ "@spartan-ng/brain": "0.0.1-alpha.529",
172
181
  "clsx": "^2.1.1"
173
182
  }
174
183
  },
175
184
  "icon": {
176
185
  "internalName": "ui-icon-helm",
177
186
  "peerDependencies": {
178
- "@angular/core": ">=19.0.0",
179
187
  "@ng-icons/core": ">=29.0.0",
188
+ "@angular/core": ">=19.0.0",
180
189
  "@ng-icons/lucide": ">=29.0.0"
181
190
  }
182
191
  },
@@ -184,10 +193,10 @@
184
193
  "internalName": "ui-input-helm",
185
194
  "peerDependencies": {
186
195
  "@angular/core": ">=19.0.0",
187
- "class-variance-authority": "^0.7.0",
188
- "clsx": "^2.1.1",
189
196
  "@angular/forms": ">=19.0.0",
190
- "@spartan-ng/brain": "0.0.1-alpha.527"
197
+ "@spartan-ng/brain": "0.0.1-alpha.529",
198
+ "class-variance-authority": "^0.7.0",
199
+ "clsx": "^2.1.1"
191
200
  }
192
201
  },
193
202
  "input-group": {
@@ -195,7 +204,7 @@
195
204
  "peerDependencies": {
196
205
  "@angular/core": ">=19.0.0",
197
206
  "clsx": "^2.1.1",
198
- "@spartan-ng/brain": "0.0.1-alpha.527"
207
+ "@spartan-ng/brain": "0.0.1-alpha.529"
199
208
  }
200
209
  },
201
210
  "input-otp": {
@@ -206,7 +215,7 @@
206
215
  "@ng-icons/core": ">=29.0.0",
207
216
  "@ng-icons/lucide": ">=29.0.0",
208
217
  "@angular/cdk": ">=19.0.0",
209
- "@spartan-ng/brain": "0.0.1-alpha.527"
218
+ "@spartan-ng/brain": "0.0.1-alpha.529"
210
219
  }
211
220
  },
212
221
  "kbd": {
@@ -220,7 +229,7 @@
220
229
  "internalName": "ui-label-helm",
221
230
  "peerDependencies": {
222
231
  "@angular/core": ">=19.0.0",
223
- "@spartan-ng/brain": "0.0.1-alpha.527",
232
+ "@spartan-ng/brain": "0.0.1-alpha.529",
224
233
  "clsx": "^2.1.1"
225
234
  }
226
235
  },
@@ -228,7 +237,7 @@
228
237
  "internalName": "ui-menu-helm",
229
238
  "peerDependencies": {
230
239
  "@angular/core": ">=19.0.0",
231
- "@spartan-ng/brain": "0.0.1-alpha.527",
240
+ "@spartan-ng/brain": "0.0.1-alpha.529",
232
241
  "clsx": "^2.1.1",
233
242
  "@ng-icons/core": ">=29.0.0",
234
243
  "@ng-icons/lucide": ">=29.0.0",
@@ -242,7 +251,7 @@
242
251
  "@angular/cdk": ">=19.0.0",
243
252
  "@angular/core": ">=19.0.0",
244
253
  "@angular/forms": ">=19.0.0",
245
- "@spartan-ng/brain": "0.0.1-alpha.527",
254
+ "@spartan-ng/brain": "0.0.1-alpha.529",
246
255
  "class-variance-authority": "^0.7.0",
247
256
  "clsx": "^2.1.1",
248
257
  "@ng-icons/core": ">=29.0.0",
@@ -255,14 +264,14 @@
255
264
  "peerDependencies": {
256
265
  "@angular/core": ">=19.0.0",
257
266
  "clsx": "^2.1.1",
258
- "@spartan-ng/brain": "0.0.1-alpha.527"
267
+ "@spartan-ng/brain": "0.0.1-alpha.529"
259
268
  }
260
269
  },
261
270
  "progress": {
262
271
  "internalName": "ui-progress-helm",
263
272
  "peerDependencies": {
264
273
  "@angular/core": ">=19.0.0",
265
- "@spartan-ng/brain": "0.0.1-alpha.527",
274
+ "@spartan-ng/brain": "0.0.1-alpha.529",
266
275
  "clsx": "^2.1.1"
267
276
  }
268
277
  },
@@ -270,7 +279,7 @@
270
279
  "internalName": "ui-radio-group-helm",
271
280
  "peerDependencies": {
272
281
  "@angular/core": ">=19.0.0",
273
- "@spartan-ng/brain": "0.0.1-alpha.527",
282
+ "@spartan-ng/brain": "0.0.1-alpha.529",
274
283
  "clsx": "^2.1.1",
275
284
  "@angular/common": ">=19.0.0"
276
285
  }
@@ -287,7 +296,7 @@
287
296
  "peerDependencies": {
288
297
  "@angular/cdk": ">=19.0.0",
289
298
  "@angular/core": ">=19.0.0",
290
- "@spartan-ng/brain": "0.0.1-alpha.527",
299
+ "@spartan-ng/brain": "0.0.1-alpha.529",
291
300
  "clsx": "^2.1.1",
292
301
  "@ng-icons/core": ">=29.0.0",
293
302
  "@ng-icons/lucide": ">=29.0.0",
@@ -298,7 +307,7 @@
298
307
  "internalName": "ui-separator-helm",
299
308
  "peerDependencies": {
300
309
  "@angular/core": ">=19.0.0",
301
- "@spartan-ng/brain": "0.0.1-alpha.527",
310
+ "@spartan-ng/brain": "0.0.1-alpha.529",
302
311
  "clsx": "^2.1.1"
303
312
  }
304
313
  },
@@ -309,7 +318,7 @@
309
318
  "clsx": "^2.1.1",
310
319
  "@ng-icons/core": ">=29.0.0",
311
320
  "@ng-icons/lucide": ">=29.0.0",
312
- "@spartan-ng/brain": "0.0.1-alpha.527",
321
+ "@spartan-ng/brain": "0.0.1-alpha.529",
313
322
  "class-variance-authority": "^0.7.0"
314
323
  }
315
324
  },
@@ -318,7 +327,7 @@
318
327
  "peerDependencies": {
319
328
  "@angular/core": ">=19.0.0",
320
329
  "clsx": "^2.1.1",
321
- "@spartan-ng/brain": "0.0.1-alpha.527",
330
+ "@spartan-ng/brain": "0.0.1-alpha.529",
322
331
  "class-variance-authority": "^0.7.0",
323
332
  "@ng-icons/core": ">=29.0.0",
324
333
  "@ng-icons/lucide": ">=29.0.0",
@@ -336,7 +345,7 @@
336
345
  "internalName": "ui-slider-helm",
337
346
  "peerDependencies": {
338
347
  "@angular/core": ">=19.0.0",
339
- "@spartan-ng/brain": "0.0.1-alpha.527",
348
+ "@spartan-ng/brain": "0.0.1-alpha.529",
340
349
  "clsx": "^2.1.1"
341
350
  }
342
351
  },
@@ -362,7 +371,7 @@
362
371
  "clsx": "^2.1.1",
363
372
  "@angular/cdk": ">=19.0.0",
364
373
  "@angular/forms": ">=19.0.0",
365
- "@spartan-ng/brain": "0.0.1-alpha.527"
374
+ "@spartan-ng/brain": "0.0.1-alpha.529"
366
375
  }
367
376
  },
368
377
  "table": {
@@ -376,7 +385,7 @@
376
385
  "internalName": "ui-tabs-helm",
377
386
  "peerDependencies": {
378
387
  "@angular/core": ">=19.0.0",
379
- "@spartan-ng/brain": "0.0.1-alpha.527",
388
+ "@spartan-ng/brain": "0.0.1-alpha.529",
380
389
  "clsx": "^2.1.1",
381
390
  "class-variance-authority": "^0.7.0",
382
391
  "@angular/cdk": ">=19.0.0",
@@ -405,7 +414,7 @@
405
414
  "internalName": "ui-tooltip-helm",
406
415
  "peerDependencies": {
407
416
  "@angular/core": ">=19.0.0",
408
- "@spartan-ng/brain": "0.0.1-alpha.527"
417
+ "@spartan-ng/brain": "0.0.1-alpha.529"
409
418
  }
410
419
  },
411
420
  "typography": {
@@ -1,21 +0,0 @@
1
- import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '<%- importAlias %>/utils';
3
- import { type VariantProps, cva } from 'class-variance-authority';
4
- import type { ClassValue } from 'clsx';
5
-
6
- export const inputErrorVariants = cva('text-destructive text-sm font-medium', {
7
- variants: {},
8
- defaultVariants: {},
9
- });
10
- export type InputErrorVariants = VariantProps<typeof inputErrorVariants>;
11
-
12
- @Directive({
13
- selector: '[hlmInputError]',
14
- host: {
15
- '[class]': '_computedClass()',
16
- },
17
- })
18
- export class HlmInputError {
19
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
20
- protected readonly _computedClass = computed(() => hlm(inputErrorVariants(), this.userClass()));
21
- }