@egose/shadcn-theme-ng 0.0.13 → 0.0.14

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.
@@ -10,7 +10,7 @@ import { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';
10
10
  class HlmAccordion {
11
11
  _brn = inject(BrnAccordion);
12
12
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
13
- _computedClass = computed(() => hlm('tw:flex', this._brn.orientation() === 'horizontal' ? 'tw:flex-row' : 'tw:flex-col', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
13
+ _computedClass = computed(() => hlm('flex', this._brn.orientation() === 'horizontal' ? 'flex-row' : 'flex-col', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
14
14
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordion, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
15
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordion, isStandalone: true, selector: "[hlmAccordion], hlm-accordion", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordion, inputs: ["type", "type", "dir", "dir", "orientation", "orientation"] }], ngImport: i0 });
16
16
  }
@@ -28,13 +28,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
28
28
  class HlmAccordionContent extends BrnAccordionContent {
29
29
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
30
30
  _computedClass = computed(() => {
31
- const gridRows = this.state() === 'open' ? 'tw:grid-rows-[1fr]' : 'tw:hidden';
32
- return hlm('tw:grid tw:text-sm tw:transition-all', gridRows, this.userClass());
31
+ const gridRows = this.state() === 'open' ? 'grid-rows-[1fr]' : 'hidden';
32
+ return hlm('grid text-sm transition-all', gridRows, this.userClass());
33
33
  }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
34
34
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
35
35
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionContent, isStandalone: true, selector: "hlm-accordion-content", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, usesInheritance: true, ngImport: i0, template: `
36
- <div [attr.inert]="_addInert()" style="tw:overflow:hidden">
37
- <div class="tw:flex tw:flex-col tw:gap-4 tw:text-balance tw:pb-4 tw:pt-0">
36
+ <div [attr.inert]="_addInert()" style="overflow:hidden">
37
+ <div class="flex flex-col gap-4 text-balance pb-4 pt-0">
38
38
  <ng-content />
39
39
  </div>
40
40
  </div>
@@ -45,8 +45,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
45
45
  args: [{
46
46
  selector: 'hlm-accordion-content',
47
47
  template: `
48
- <div [attr.inert]="_addInert()" style="tw:overflow:hidden">
49
- <div class="tw:flex tw:flex-col tw:gap-4 tw:text-balance tw:pb-4 tw:pt-0">
48
+ <div [attr.inert]="_addInert()" style="overflow:hidden">
49
+ <div class="flex flex-col gap-4 text-balance pb-4 pt-0">
50
50
  <ng-content />
51
51
  </div>
52
52
  </div>
@@ -61,7 +61,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
61
61
 
62
62
  class HlmAccordionIcon {
63
63
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
64
- _computedClass = computed(() => hlm('tw:text-muted-foreground tw:pointer-events-none tw:size-4 tw:shrink-0 tw:translate-y-0.5 tw:transition-transform tw:duration-200', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
64
+ _computedClass = computed(() => hlm('text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
65
65
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
66
66
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionIcon, isStandalone: true, selector: "ng-icon[egAccordionIcon], ng-icon[hlmAccIcon]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [provideIcons({ lucideChevronDown }), provideHlmIconConfig({ size: 'sm' })], ngImport: i0 });
67
67
  }
@@ -78,7 +78,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
78
78
 
79
79
  class HlmAccordionItem {
80
80
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
81
- _computedClass = computed(() => hlm('tw:border-border tw:flex tw:flex-1 tw:flex-col tw:border-b', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
81
+ _computedClass = computed(() => hlm('border-border flex flex-1 flex-col border-b', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
82
82
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
83
83
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionItem, isStandalone: true, selector: "[hlmAccordionItem],brn-accordion-item[hlm],hlm-accordion-item", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordionItem, inputs: ["isOpened", "isOpened"] }], ngImport: i0 });
84
84
  }
@@ -100,7 +100,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
100
100
 
101
101
  class HlmAccordionTrigger {
102
102
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
103
- _computedClass = computed(() => hlm('tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:flex tw:flex-1 tw:items-start tw:justify-between tw:gap-4 tw:rounded-md tw:py-4 tw:text-left tw:text-sm tw:font-medium tw:outline-none tw:transition-all tw:hover:underline tw:focus-visible:ring-[3px] tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:[&[data-state=open]>[egAccIcon]]:rotate-180', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
103
+ _computedClass = computed(() => hlm('focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium outline-none transition-all hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>[egAccIcon]]:rotate-180', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
104
104
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
105
105
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionTrigger, isStandalone: true, selector: "[hlmAccordionTrigger]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--tw-ring-offset-shadow": "\"0 0 #000\"", "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordionTrigger }], ngImport: i0 });
106
106
  }
@@ -4,93 +4,93 @@ import { hlm } from '@egose/shadcn-theme-ng/utils';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';
6
6
 
7
- const alertVariants = cva('tw:relative tw:w-full tw:items-start tw:gap-y-0.5 tw:rounded-lg tw:border tw:px-4 tw:py-3 tw:text-sm tw:has-[>[hlmAlertIcon]]:grid tw:has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] tw:has-[>[hlmAlertIcon]]:gap-x-3 tw:[&>[hlmAlertIcon]]:size-4 tw:[&>[hlmAlertIcon]]:translate-y-0.5 tw:[&>[hlmAlertIcon]]:text-current', {
7
+ const alertVariants = cva('relative w-full items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>[hlmAlertIcon]]:grid has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] has-[>[hlmAlertIcon]]:gap-x-3 [&>[hlmAlertIcon]]:size-4 [&>[hlmAlertIcon]]:translate-y-0.5 [&>[hlmAlertIcon]]:text-current', {
8
8
  variants: {
9
9
  variant: {
10
- primary: 'tw:bg-primary tw:text-primary-foreground tw:[&>[hlmAlertDescription]]:text-primary-foreground/90',
11
- secondary: 'tw:bg-secondary tw:text-secondary-foreground tw:[&>[hlmAlertDescription]]:text-secondary-foreground/90',
12
- success: 'tw:bg-success tw:text-success-foreground tw:[&>[hlmAlertDescription]]:text-success-foreground/90',
13
- warning: 'tw:bg-warning tw:text-warning-foreground tw:[&>[hlmAlertDescription]]:text-warning-foreground/90',
14
- danger: 'tw:bg-danger tw:text-danger-foreground tw:[&>[hlmAlertDescription]]:text-danger-foreground/90',
15
- info: 'tw:bg-info tw:text-info-foreground tw:[&>[hlmAlertDescription]]:text-info-foreground/90',
16
- light: 'tw:bg-light tw:text-light-foreground tw:[&>[hlmAlertDescription]]:text-light-foreground/90',
17
- dark: 'tw:bg-dark tw:text-dark-foreground tw:[&>[hlmAlertDescription]]:text-dark-foreground/90',
18
- accent: 'tw:bg-accent tw:text-accent-foreground tw:[&>[hlmAlertDescription]]:text-accent-foreground/90',
19
- destructive: 'tw:bg-destructive tw:text-destructive-foreground tw:[&>[hlmAlertDescription]]:text-destructive-foreground/90',
20
- muted: 'tw:bg-muted tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground/90',
21
- link: 'tw:text-primary tw:underline-offset-4 tw:[&>[hlmAlertDescription]]:text-primary/90',
22
- ghost: 'tw:[&>[hlmAlertDescription]]:text-muted-foreground',
10
+ primary: 'bg-primary text-primary-foreground [&>[hlmAlertDescription]]:text-primary-foreground/90',
11
+ secondary: 'bg-secondary text-secondary-foreground [&>[hlmAlertDescription]]:text-secondary-foreground/90',
12
+ success: 'bg-success text-success-foreground [&>[hlmAlertDescription]]:text-success-foreground/90',
13
+ warning: 'bg-warning text-warning-foreground [&>[hlmAlertDescription]]:text-warning-foreground/90',
14
+ danger: 'bg-danger text-danger-foreground [&>[hlmAlertDescription]]:text-danger-foreground/90',
15
+ info: 'bg-info text-info-foreground [&>[hlmAlertDescription]]:text-info-foreground/90',
16
+ light: 'bg-light text-light-foreground [&>[hlmAlertDescription]]:text-light-foreground/90',
17
+ dark: 'bg-dark text-dark-foreground [&>[hlmAlertDescription]]:text-dark-foreground/90',
18
+ accent: 'bg-accent text-accent-foreground [&>[hlmAlertDescription]]:text-accent-foreground/90',
19
+ destructive: 'bg-destructive text-destructive-foreground [&>[hlmAlertDescription]]:text-destructive-foreground/90',
20
+ muted: 'bg-muted text-muted-foreground [&>[hlmAlertDescription]]:text-muted-foreground/90',
21
+ link: 'text-primary underline-offset-4 [&>[hlmAlertDescription]]:text-primary/90',
22
+ ghost: '[&>[hlmAlertDescription]]:text-muted-foreground',
23
23
  },
24
24
  appearance: {
25
25
  solid: '',
26
- light: 'tw:text-semibold',
26
+ light: 'text-semibold',
27
27
  },
28
28
  },
29
29
  compoundVariants: [
30
30
  {
31
31
  variant: 'primary',
32
32
  appearance: 'light',
33
- class: 'tw:bg-primary/20 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',
33
+ class: 'bg-primary/20 text-primary [&>[hlmAlertDescription]]:text-primary',
34
34
  },
35
35
  {
36
36
  variant: 'secondary',
37
37
  appearance: 'light',
38
- class: 'tw:bg-secondary/20 tw:text-secondary tw:[&>[hlmAlertDescription]]:text-secondary',
38
+ class: 'bg-secondary/20 text-secondary [&>[hlmAlertDescription]]:text-secondary',
39
39
  },
40
40
  {
41
41
  variant: 'success',
42
42
  appearance: 'light',
43
- class: 'tw:bg-success/20 tw:text-success tw:[&>[hlmAlertDescription]]:text-success',
43
+ class: 'bg-success/20 text-success [&>[hlmAlertDescription]]:text-success',
44
44
  },
45
45
  {
46
46
  variant: 'warning',
47
47
  appearance: 'light',
48
- class: 'tw:bg-warning/20 tw:text-warning tw:[&>[hlmAlertDescription]]:text-warning',
48
+ class: 'bg-warning/20 text-warning [&>[hlmAlertDescription]]:text-warning',
49
49
  },
50
50
  {
51
51
  variant: 'danger',
52
52
  appearance: 'light',
53
- class: 'tw:bg-danger/20 tw:text-danger tw:[&>[hlmAlertDescription]]:text-danger',
53
+ class: 'bg-danger/20 text-danger [&>[hlmAlertDescription]]:text-danger',
54
54
  },
55
55
  {
56
56
  variant: 'info',
57
57
  appearance: 'light',
58
- class: 'tw:bg-info/20 tw:text-info tw:[&>[hlmAlertDescription]]:text-info',
58
+ class: 'bg-info/20 text-info [&>[hlmAlertDescription]]:text-info',
59
59
  },
60
60
  {
61
61
  variant: 'light',
62
62
  appearance: 'light',
63
- class: 'tw:bg-light/20 tw:text-light tw:[&>[hlmAlertDescription]]:text-light',
63
+ class: 'bg-light/20 text-light [&>[hlmAlertDescription]]:text-light',
64
64
  },
65
65
  {
66
66
  variant: 'dark',
67
67
  appearance: 'light',
68
- class: 'tw:bg-dark/20 tw:text-dark tw:[&>[hlmAlertDescription]]:text-dark',
68
+ class: 'bg-dark/20 text-dark [&>[hlmAlertDescription]]:text-dark',
69
69
  },
70
70
  {
71
71
  variant: 'accent',
72
72
  appearance: 'light',
73
- class: 'tw:bg-accent/20 tw:text-accent tw:[&>[hlmAlertDescription]]:text-accent',
73
+ class: 'bg-accent/20 text-accent [&>[hlmAlertDescription]]:text-accent',
74
74
  },
75
75
  {
76
76
  variant: 'destructive',
77
77
  appearance: 'light',
78
- class: 'tw:bg-destructive/20 tw:text-destructive tw:[&>[hlmAlertDescription]]:text-destructive',
78
+ class: 'bg-destructive/20 text-destructive [&>[hlmAlertDescription]]:text-destructive',
79
79
  },
80
80
  {
81
81
  variant: 'muted',
82
82
  appearance: 'light',
83
- class: 'tw:bg-muted/20 tw:text-muted tw:[&>[hlmAlertDescription]]:text-muted',
83
+ class: 'bg-muted/20 text-muted [&>[hlmAlertDescription]]:text-muted',
84
84
  },
85
85
  {
86
86
  variant: 'link',
87
87
  appearance: 'light',
88
- class: 'tw:bg-primary/10 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',
88
+ class: 'bg-primary/10 text-primary [&>[hlmAlertDescription]]:text-primary',
89
89
  },
90
90
  {
91
91
  variant: 'ghost',
92
92
  appearance: 'light',
93
- class: 'tw:bg-muted/10 tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground',
93
+ class: 'bg-muted/10 text-muted-foreground [&>[hlmAlertDescription]]:text-muted-foreground',
94
94
  },
95
95
  ],
96
96
  defaultVariants: {
@@ -122,7 +122,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
122
122
 
123
123
  class HlmAlertDescription {
124
124
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
125
- _computedClass = computed(() => hlm('tw:text-current tw:col-start-2 tw:grid tw:justify-items-start tw:gap-1 tw:text-sm tw:[&_p]:leading-relaxed', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
125
+ _computedClass = computed(() => hlm('text-current col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
126
126
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
127
127
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAlertDescription, isStandalone: true, selector: "[hlmAlertDesc],[hlmAlertDescription]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
128
128
  }
@@ -150,7 +150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
150
150
 
151
151
  class HlmAlertTitle {
152
152
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
153
- _computedClass = computed(() => hlm('tw:col-start-2 tw:line-clamp-1 tw:min-h-4 tw:text-md tw:font-semibold tw:tracking-tight', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
153
+ _computedClass = computed(() => hlm('col-start-2 line-clamp-1 min-h-4 text-md font-semibold tracking-tight', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
154
154
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
155
155
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAlertTitle, isStandalone: true, selector: "[hlmAlertTitle]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
156
156
  }
@@ -14,7 +14,7 @@ import { BrnDialog } from '@spartan-ng/brain/dialog';
14
14
 
15
15
  class HlmAutocompleteEmpty {
16
16
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
17
- _computedClass = computed(() => hlm('tw:py-2 tw:text-center tw:text-sm', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
17
+ _computedClass = computed(() => hlm('py-2 text-center text-sm', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
18
18
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAutocompleteEmpty, deps: [], target: i0.ɵɵFactoryTarget.Directive });
19
19
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAutocompleteEmpty, isStandalone: true, selector: "[hlmAutocompleteEmpty]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
20
20
  }
@@ -32,7 +32,7 @@ class HlmAutocompleteGroup {
32
32
  /** The user defined class */
33
33
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
34
34
  /** The styles to apply */
35
- _computedClass = computed(() => hlm('tw:text-foreground tw:block tw:overflow-hidden tw:p-1', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
35
+ _computedClass = computed(() => hlm('text-foreground block overflow-hidden p-1', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
36
36
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAutocompleteGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
37
37
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmAutocompleteGroup, isStandalone: true, selector: "hlm-autocomplete-group", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAutocompleteGroup, inputs: ["id", "id"] }], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
38
38
  }
@@ -58,7 +58,7 @@ class HlmAutocompleteItem {
58
58
  /** The user defined class */
59
59
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
60
60
  /** The styles to apply */
61
- _computedClass = computed(() => hlm('tw:data-[selected]:bg-accent tw:data-[selected]:text-accent-foreground tw:[&>ng-icon]:text-muted-foreground tw:outline-hidden tw:relative tw:flex tw:w-full tw:cursor-default tw:select-none tw:items-center tw:gap-2 tw:rounded-sm tw:px-2 tw:py-1.5 tw:text-sm tw:data-[disabled]:pointer-events-none tw:data-[hidden]:hidden tw:data-[disabled]:opacity-50 tw:[&>ng-icon]:pointer-events-none tw:[&>ng-icon]:shrink-0 tw:[&>ng-icon]:text-base', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
61
+ _computedClass = computed(() => hlm('data-[selected]:bg-accent data-[selected]:text-accent-foreground [&>ng-icon]:text-muted-foreground outline-hidden relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[hidden]:hidden data-[disabled]:opacity-50 [&>ng-icon]:pointer-events-none [&>ng-icon]:shrink-0 [&>ng-icon]:text-base', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
62
62
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAutocompleteItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
63
63
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmAutocompleteItem, isStandalone: true, selector: "button[hlm-autocomplete-item]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAutocompleteItem, inputs: ["value", "value", "disabled", "disabled", "id", "id"], outputs: ["selected", "selected"] }], ngImport: i0, template: ` <ng-content /> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
64
64
  }
@@ -85,7 +85,7 @@ class HlmAutocompleteList {
85
85
  /** The user defined class */
86
86
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
87
87
  /** The styles to apply */
88
- _computedClass = computed(() => hlm('tw:block tw:max-h-60 tw:overflow-y-auto tw:overflow-x-hidden', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
88
+ _computedClass = computed(() => hlm('block max-h-60 overflow-y-auto overflow-x-hidden', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
89
89
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAutocompleteList, deps: [], target: i0.ɵɵFactoryTarget.Component });
90
90
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmAutocompleteList, isStandalone: true, selector: "hlm-autocomplete-list", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAutocompleteList, inputs: ["id", "id"] }], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
91
91
  }
@@ -111,7 +111,7 @@ class HlmAutocompleteSearch {
111
111
  /** The user defined class */
112
112
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
113
113
  /** The styles to apply */
114
- _computedClass = computed(() => hlm('tw:border-input tw:focus-within:border-ring tw:bg-background tw:focus-within:ring-ring/50 tw:shadow-xs tw:dark:bg-input/10 tw:flex tw:h-9 tw:min-w-0 tw:items-center tw:gap-2 tw:rounded-md tw:border tw:px-3 tw:focus-within:ring-[3px] tw:[&>_ng-icon]:flex-none tw:[&>_ng-icon]:opacity-50', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
114
+ _computedClass = computed(() => hlm('border-input focus-within:border-ring bg-background focus-within:ring-ring/50 shadow-xs dark:bg-input/10 flex h-9 min-w-0 items-center gap-2 rounded-md border px-3 focus-within:ring-[3px] [&>_ng-icon]:flex-none [&>_ng-icon]:opacity-50', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
115
115
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAutocompleteSearch, deps: [], target: i0.ɵɵFactoryTarget.Component });
116
116
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmAutocompleteSearch, isStandalone: true, selector: "hlm-autocomplete-search", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [provideHlmIconConfig({ size: 'sm' })], ngImport: i0, template: ` <ng-content /> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
117
117
  }
@@ -132,7 +132,7 @@ class HlmAutocompleteSearchInput {
132
132
  /** The user defined class */
133
133
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
134
134
  /** The styles to apply */
135
- _computedClass = computed(() => hlm('tw:placeholder:text-muted-foreground tw:flex tw:h-9 tw:w-full tw:bg-transparent tw:py-1 tw:text-base tw:outline-none tw:disabled:cursor-not-allowed tw:disabled:opacity-50 tw:md:text-sm', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
135
+ _computedClass = computed(() => hlm('placeholder:text-muted-foreground flex h-9 w-full bg-transparent py-1 text-base outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
136
136
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAutocompleteSearchInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
137
137
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmAutocompleteSearchInput, isStandalone: true, selector: "input[hlm-autocomplete-search-input]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAutocompleteSearchInput, inputs: ["value", "value"] }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
138
138
  }
@@ -206,7 +206,7 @@ class HlmAutocomplete {
206
206
  onSelect = input(...(ngDevMode ? [undefined, { debugName: "onSelect" }] : []));
207
207
  /** The user defined class */
208
208
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
209
- _computedClass = computed(() => hlm('tw:block tw:w-full', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
209
+ _computedClass = computed(() => hlm('block w-full', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
210
210
  /** Custom class for the autocomplete list. */
211
211
  autocompleteListClass = input('', ...(ngDevMode ? [{ debugName: "autocompleteListClass" }] : []));
212
212
  _computedAutocompleteListClass = computed(() => hlm('', this.autocompleteListClass()), ...(ngDevMode ? [{ debugName: "_computedAutocompleteListClass" }] : []));
@@ -348,7 +348,7 @@ class HlmAutocomplete {
348
348
  />
349
349
 
350
350
  <button
351
- class="tw:flex tw:items-center tw:justify-center tw:outline-none tw:disabled:cursor-not-allowed tw:[&>_ng-icon]:opacity-50"
351
+ class="flex items-center justify-center outline-none disabled:cursor-not-allowed [&>_ng-icon]:opacity-50"
352
352
  tabindex="-1"
353
353
  type="button"
354
354
  [attr.aria-label]="ariaLabelToggleButton()"
@@ -362,7 +362,7 @@ class HlmAutocomplete {
362
362
  <div
363
363
  *brnPopoverContent="let ctx"
364
364
  hlmPopoverContent
365
- class="tw:p-0"
365
+ class="p-0"
366
366
  [style.width.px]="_elementRef.nativeElement.offsetWidth"
367
367
  >
368
368
  <hlm-autocomplete-list
@@ -443,7 +443,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
443
443
  />
444
444
 
445
445
  <button
446
- class="tw:flex tw:items-center tw:justify-center tw:outline-none tw:disabled:cursor-not-allowed tw:[&>_ng-icon]:opacity-50"
446
+ class="flex items-center justify-center outline-none disabled:cursor-not-allowed [&>_ng-icon]:opacity-50"
447
447
  tabindex="-1"
448
448
  type="button"
449
449
  [attr.aria-label]="ariaLabelToggleButton()"
@@ -457,7 +457,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
457
457
  <div
458
458
  *brnPopoverContent="let ctx"
459
459
  hlmPopoverContent
460
- class="tw:p-0"
460
+ class="p-0"
461
461
  [style.width.px]="_elementRef.nativeElement.offsetWidth"
462
462
  >
463
463
  <hlm-autocomplete-list
@@ -4,41 +4,41 @@ import { cva } from 'class-variance-authority';
4
4
  import { hlm } from '@egose/shadcn-theme-ng/utils';
5
5
 
6
6
  const badgeVariants = cva([
7
- 'tw:inline-flex',
8
- 'tw:items-center',
9
- 'tw:rounded-sm',
10
- 'tw:font-medium',
11
- 'tw:whitespace-nowrap',
12
- 'tw:transition-colors',
13
- 'tw:focus-visible:outline-none',
14
- 'tw:focus-visible:ring-1',
15
- 'tw:focus-visible:ring-ring',
7
+ 'inline-flex',
8
+ 'items-center',
9
+ 'rounded-sm',
10
+ 'font-medium',
11
+ 'whitespace-nowrap',
12
+ 'transition-colors',
13
+ 'focus-visible:outline-none',
14
+ 'focus-visible:ring-1',
15
+ 'focus-visible:ring-ring',
16
16
  ], {
17
17
  variants: {
18
18
  variant: {
19
- primary: 'tw:bg-primary tw:text-primary-foreground tw:hover:bg-primary/90',
20
- secondary: 'tw:bg-secondary tw:text-secondary-foreground tw:hover:bg-secondary/90',
21
- success: 'tw:bg-success tw:text-success-foreground tw:hover:bg-success/90',
22
- warning: 'tw:bg-warning tw:text-warning-foreground tw:hover:bg-warning/90',
23
- danger: 'tw:bg-danger tw:text-danger-foreground tw:hover:bg-danger/90',
24
- info: 'tw:bg-info tw:text-info-foreground tw:hover:bg-info/90',
25
- light: 'tw:bg-light tw:text-light-foreground tw:hover:bg-light/90',
26
- dark: 'tw:bg-dark tw:text-dark-foreground tw:hover:bg-dark/90',
27
- accent: 'tw:bg-accent tw:text-accent-foreground tw:hover:bg-accent/90',
28
- destructive: 'tw:bg-destructive tw:text-destructive-foreground tw:hover:bg-destructive/90',
29
- muted: 'tw:bg-muted tw:text-muted-foreground tw:hover:bg-muted/90',
30
- link: 'tw:text-primary tw:underline-offset-4 tw:hover:underline',
31
- ghost: 'tw:hover:bg-light tw:hover:text-light-foreground',
19
+ primary: 'bg-primary text-primary-foreground hover:bg-primary/90',
20
+ secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/90',
21
+ success: 'bg-success text-success-foreground hover:bg-success/90',
22
+ warning: 'bg-warning text-warning-foreground hover:bg-warning/90',
23
+ danger: 'bg-danger text-danger-foreground hover:bg-danger/90',
24
+ info: 'bg-info text-info-foreground hover:bg-info/90',
25
+ light: 'bg-light text-light-foreground hover:bg-light/90',
26
+ dark: 'bg-dark text-dark-foreground hover:bg-dark/90',
27
+ accent: 'bg-accent text-accent-foreground hover:bg-accent/90',
28
+ destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
29
+ muted: 'bg-muted text-muted-foreground hover:bg-muted/90',
30
+ link: 'text-primary underline-offset-4 hover:underline',
31
+ ghost: 'hover:bg-light hover:text-light-foreground',
32
32
  },
33
33
  size: {
34
- sm: 'tw:h-5 tw:px-2 tw:text-xs',
35
- default: 'tw:h-6 tw:px-3 tw:text-sm',
36
- lg: 'tw:h-7 tw:px-4 tw:text-base',
34
+ sm: 'h-5 px-2 text-xs',
35
+ default: 'h-6 px-3 text-sm',
36
+ lg: 'h-7 px-4 text-base',
37
37
  },
38
38
  appearance: {
39
39
  solid: '',
40
- outline: 'tw:bg-white tw:border',
41
- 'outline-filled': 'tw:bg-white tw:border',
40
+ outline: 'bg-white border',
41
+ 'outline-filled': 'bg-white border',
42
42
  },
43
43
  },
44
44
  defaultVariants: {
@@ -75,37 +75,37 @@ class HlmBadge {
75
75
  /** Helper functions */
76
76
  getOutlineClasses(variant) {
77
77
  const colors = {
78
- primary: 'tw:border-primary tw:text-primary tw:hover:bg-primary/10',
79
- secondary: 'tw:border-secondary tw:text-secondary tw:hover:bg-secondary/10',
80
- success: 'tw:border-success tw:text-success tw:hover:bg-success/10',
81
- warning: 'tw:border-warning tw:text-warning tw:hover:bg-warning/10',
82
- danger: 'tw:border-danger tw:text-danger tw:hover:bg-danger/10',
83
- info: 'tw:border-info tw:text-info tw:hover:bg-info/10',
84
- light: 'tw:border-light tw:text-light-foreground tw:hover:bg-light/10',
85
- dark: 'tw:border-dark tw:text-dark tw:hover:bg-dark/10',
86
- accent: 'tw:border-accent tw:text-accent tw:hover:bg-accent/10',
87
- destructive: 'tw:border-destructive tw:text-destructive tw:hover:bg-destructive/10',
88
- muted: 'tw:border-muted tw:text-muted-foreground tw:hover:bg-muted/10',
89
- link: 'tw:text-primary',
90
- ghost: 'tw:text-light-foreground',
78
+ primary: 'border-primary text-primary hover:bg-primary/10',
79
+ secondary: 'border-secondary text-secondary hover:bg-secondary/10',
80
+ success: 'border-success text-success hover:bg-success/10',
81
+ warning: 'border-warning text-warning hover:bg-warning/10',
82
+ danger: 'border-danger text-danger hover:bg-danger/10',
83
+ info: 'border-info text-info hover:bg-info/10',
84
+ light: 'border-light text-light-foreground hover:bg-light/10',
85
+ dark: 'border-dark text-dark hover:bg-dark/10',
86
+ accent: 'border-accent text-accent hover:bg-accent/10',
87
+ destructive: 'border-destructive text-destructive hover:bg-destructive/10',
88
+ muted: 'border-muted text-muted-foreground hover:bg-muted/10',
89
+ link: 'text-primary',
90
+ ghost: 'text-light-foreground',
91
91
  };
92
92
  return colors[variant];
93
93
  }
94
94
  getOutlineFilledClasses(variant) {
95
95
  const colors = {
96
- primary: 'tw:hover:bg-primary tw:hover:text-primary-foreground',
97
- secondary: 'tw:hover:bg-secondary tw:hover:text-secondary-foreground',
98
- success: 'tw:hover:bg-success tw:hover:text-success-foreground',
99
- warning: 'tw:hover:bg-warning tw:hover:text-warning-foreground',
100
- danger: 'tw:hover:bg-danger tw:hover:text-danger-foreground',
101
- info: 'tw:hover:bg-info tw:hover:text-info-foreground',
102
- light: 'tw:hover:bg-light tw:hover:text-light-foreground',
103
- dark: 'tw:hover:bg-dark tw:hover:text-dark-foreground',
104
- accent: 'tw:hover:bg-accent tw:hover:text-accent-foreground',
105
- destructive: 'tw:hover:bg-destructive tw:hover:text-destructive-foreground',
106
- muted: 'tw:hover:bg-muted tw:hover:text-muted-foreground',
107
- link: 'tw:hover:underline',
108
- ghost: 'tw:hover:bg-light',
96
+ primary: 'hover:bg-primary hover:text-primary-foreground',
97
+ secondary: 'hover:bg-secondary hover:text-secondary-foreground',
98
+ success: 'hover:bg-success hover:text-success-foreground',
99
+ warning: 'hover:bg-warning hover:text-warning-foreground',
100
+ danger: 'hover:bg-danger hover:text-danger-foreground',
101
+ info: 'hover:bg-info hover:text-info-foreground',
102
+ light: 'hover:bg-light hover:text-light-foreground',
103
+ dark: 'hover:bg-dark hover:text-dark-foreground',
104
+ accent: 'hover:bg-accent hover:text-accent-foreground',
105
+ destructive: 'hover:bg-destructive hover:text-destructive-foreground',
106
+ muted: 'hover:bg-muted hover:text-muted-foreground',
107
+ link: 'hover:underline',
108
+ ghost: 'hover:bg-light',
109
109
  };
110
110
  return colors[variant];
111
111
  }
@@ -56,7 +56,7 @@ class EgBasicAlert {
56
56
  ], ngImport: i0, template: `
57
57
  <div hlmAlert [variant]="variant()" [appearance]="appearance()" class="">
58
58
  <ng-icon hlm hlmAlertIcon [name]="getIconName(variant())" />
59
- <h4 hlmAlertTitle class="tw:capitalize">{{ title() }}</h4>
59
+ <h4 hlmAlertTitle class="capitalize">{{ title() }}</h4>
60
60
  <p hlmAlertDescription>{{ description() }}</p>
61
61
  </div>
62
62
  `, isInline: true, dependencies: [{ kind: "directive", type: HlmAlert, selector: "[hlmAlert]", inputs: ["class", "variant", "appearance"] }, { kind: "directive", type: HlmAlertIcon, selector: "[hlmAlertIcon]" }, { kind: "directive", type: HlmAlertTitle, selector: "[hlmAlertTitle]", inputs: ["class"] }, { kind: "directive", type: HlmAlertDescription, selector: "[hlmAlertDesc],[hlmAlertDescription]", inputs: ["class"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: HlmIcon, selector: "ng-icon[hlm]", inputs: ["size"] }] });
@@ -84,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
84
84
  template: `
85
85
  <div hlmAlert [variant]="variant()" [appearance]="appearance()" class="">
86
86
  <ng-icon hlm hlmAlertIcon [name]="getIconName(variant())" />
87
- <h4 hlmAlertTitle class="tw:capitalize">{{ title() }}</h4>
87
+ <h4 hlmAlertTitle class="capitalize">{{ title() }}</h4>
88
88
  <p hlmAlertDescription>{{ description() }}</p>
89
89
  </div>
90
90
  `,