@spartan-ng/cli 0.0.1-alpha.677 → 0.0.1-alpha.678

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spartan-ng/cli",
3
- "version": "0.0.1-alpha.677",
3
+ "version": "0.0.1-alpha.678",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/spartan-ng/spartan"
@@ -12,9 +12,10 @@ import { classes } from '<%- importAlias %>/utils';
12
12
  })
13
13
  export class HlmButtonGroupSeparator {
14
14
  constructor() {
15
- classes(
16
- () =>
17
- 'bg-input relative inline-flex shrink-0 self-stretch data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px',
18
- );
15
+ classes(() => [
16
+ 'spartan-button-group-separator relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto',
17
+ // separator classes
18
+ 'shrink-0 data-horizontal:h-px data-vertical:w-px data-vertical:self-stretch',
19
+ ]);
19
20
  }
20
21
  }
@@ -3,12 +3,12 @@ import { classes } from '<%- importAlias %>/utils';
3
3
 
4
4
  @Directive({
5
5
  selector: '[hlmButtonGroupText],hlm-button-group-text',
6
+ host: {
7
+ 'data-slot': 'button-group-text',
8
+ },
6
9
  })
7
10
  export class HlmButtonGroupText {
8
11
  constructor() {
9
- classes(
10
- () =>
11
- "bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_ng-icon]:pointer-events-none [&_ng-icon:not([class*='text-'])]:text-base",
12
- );
12
+ classes(() => 'spartan-button-group-text flex items-center [&_ng-icon]:pointer-events-none');
13
13
  }
14
14
  }
@@ -2,15 +2,15 @@ import { Directive, input } from '@angular/core';
2
2
  import { classes } from '<%- importAlias %>/utils';
3
3
  import { cva } from 'class-variance-authority';
4
4
 
5
- export const buttonGroupVariants = cva(
6
- "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",
5
+ const buttonGroupVariants = cva(
6
+ "spartan-button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
7
7
  {
8
8
  variants: {
9
9
  orientation: {
10
10
  horizontal:
11
- '[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none',
11
+ 'spartan-button-group-orientation-horizontal [&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none',
12
12
  vertical:
13
- 'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none',
13
+ 'spartan-button-group-orientation-vertical flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none',
14
14
  },
15
15
  },
16
16
  defaultVariants: {
@@ -3,7 +3,7 @@ import { BrnSeparator } from '@spartan-ng/brain/separator';
3
3
  import { classes } from '<%- importAlias %>/utils';
4
4
 
5
5
  export const hlmSeparatorClass =
6
- 'bg-border inline-flex shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px';
6
+ 'inline-flex shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch';
7
7
 
8
8
  @Directive({
9
9
  selector: '[hlmSeparator],hlm-separator',