@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 +1 -1
- package/src/generators/ui/libs/button-group/files/lib/hlm-button-group-separator.ts.template +5 -4
- package/src/generators/ui/libs/button-group/files/lib/hlm-button-group-text.ts.template +4 -4
- package/src/generators/ui/libs/button-group/files/lib/hlm-button-group.ts.template +4 -4
- package/src/generators/ui/libs/separator/files/lib/hlm-separator.ts.template +1 -1
- package/src/generators/ui/style-vega.css +327 -327
- package/src/generators/ui/supported-ui-libraries.json +41 -41
package/package.json
CHANGED
package/src/generators/ui/libs/button-group/files/lib/hlm-button-group-separator.ts.template
CHANGED
|
@@ -12,9 +12,10 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
12
12
|
})
|
|
13
13
|
export class HlmButtonGroupSeparator {
|
|
14
14
|
constructor() {
|
|
15
|
-
classes(
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
6
|
-
"flex w-fit items-stretch
|
|
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-
|
|
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
|
-
'
|
|
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',
|