@sonny-ui/core 0.1.0-alpha.17 → 0.1.0-alpha.19

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 (65) hide show
  1. package/fesm2022/sonny-ui-core.mjs +31 -188
  2. package/fesm2022/sonny-ui-core.mjs.map +1 -1
  3. package/package.json +1 -1
  4. package/src/lib/accordion/accordion.directives.ts +0 -4
  5. package/src/lib/alert/alert.directives.ts +0 -3
  6. package/src/lib/avatar/avatar.component.ts +0 -1
  7. package/src/lib/avatar-group/avatar-group.component.ts +0 -1
  8. package/src/lib/badge/badge.directive.ts +0 -1
  9. package/src/lib/breadcrumb/breadcrumb.directives.ts +0 -6
  10. package/src/lib/button/button.directive.ts +0 -1
  11. package/src/lib/button-group/button-group.directive.ts +0 -1
  12. package/src/lib/calendar/calendar.component.ts +0 -1
  13. package/src/lib/card/card.directives.ts +0 -6
  14. package/src/lib/carousel/carousel.directives.ts +0 -5
  15. package/src/lib/chat-bubble/chat-bubble.directives.ts +0 -6
  16. package/src/lib/checkbox/checkbox.directive.ts +0 -1
  17. package/src/lib/color-picker/color-picker.component.ts +5 -5
  18. package/src/lib/combobox/combobox.component.ts +1 -3
  19. package/src/lib/command-palette/command-palette.component.ts +0 -1
  20. package/src/lib/data-table/data-table.component.ts +0 -1
  21. package/src/lib/data-table/data-table.directives.ts +0 -4
  22. package/src/lib/date-picker/date-picker.component.ts +5 -5
  23. package/src/lib/date-range-picker/date-range-picker.component.ts +5 -5
  24. package/src/lib/diff/diff.component.ts +0 -1
  25. package/src/lib/divider/divider.component.ts +0 -1
  26. package/src/lib/dock/dock.directives.ts +0 -2
  27. package/src/lib/drawer/drawer.directives.ts +0 -3
  28. package/src/lib/dropdown/dropdown.directives.ts +3 -10
  29. package/src/lib/fab/fab.directives.ts +0 -3
  30. package/src/lib/fieldset/fieldset.directives.ts +0 -3
  31. package/src/lib/file-input/file-input.component.ts +0 -1
  32. package/src/lib/indicator/indicator.directives.ts +0 -2
  33. package/src/lib/input/input.directive.ts +0 -1
  34. package/src/lib/input/label.directive.ts +0 -1
  35. package/src/lib/kbd/kbd.directive.ts +0 -1
  36. package/src/lib/link/link.directive.ts +0 -1
  37. package/src/lib/list/list.directives.ts +0 -5
  38. package/src/lib/loader/loader.component.ts +0 -1
  39. package/src/lib/modal/dialog.directives.ts +0 -6
  40. package/src/lib/navbar/navbar.directives.ts +0 -4
  41. package/src/lib/number-input/number-input.component.ts +0 -1
  42. package/src/lib/otp-input/otp-input.component.ts +0 -1
  43. package/src/lib/pagination/pagination.component.ts +0 -1
  44. package/src/lib/popover/popover.directives.ts +2 -6
  45. package/src/lib/progress/progress.component.ts +0 -1
  46. package/src/lib/radial-progress/radial-progress.component.ts +0 -1
  47. package/src/lib/radio/radio.directive.ts +0 -1
  48. package/src/lib/rating/rating.component.ts +0 -1
  49. package/src/lib/select/select.component.ts +1 -3
  50. package/src/lib/sheet/sheet.directives.ts +0 -5
  51. package/src/lib/skeleton/skeleton.directive.ts +0 -1
  52. package/src/lib/slider/slider.component.ts +0 -1
  53. package/src/lib/stat/stat.directives.ts +0 -5
  54. package/src/lib/status/status.directive.ts +0 -1
  55. package/src/lib/steps/steps.directives.ts +0 -2
  56. package/src/lib/switch/switch.component.ts +0 -1
  57. package/src/lib/table/table.directives.ts +0 -8
  58. package/src/lib/tabs/tabs.directives.ts +0 -4
  59. package/src/lib/tag-input/tag-input.component.ts +0 -1
  60. package/src/lib/textarea/textarea.directive.ts +0 -1
  61. package/src/lib/timeline/timeline.directives.ts +0 -5
  62. package/src/lib/toast/toaster.component.ts +0 -1
  63. package/src/lib/toggle/toggle.directive.ts +0 -1
  64. package/src/lib/tooltip/tooltip.directive.ts +0 -1
  65. package/src/lib/validator/validator.directives.ts +0 -2
@@ -4,7 +4,6 @@ import { fieldsetVariants, type FieldsetVariant } from './fieldset.variants';
4
4
 
5
5
  @Directive({
6
6
  selector: 'fieldset[snyFieldset]',
7
- standalone: true,
8
7
  host: {
9
8
  '[class]': 'computedClass()',
10
9
  '[attr.disabled]': 'disabled() || null',
@@ -23,7 +22,6 @@ export class SnyFieldsetDirective {
23
22
 
24
23
  @Directive({
25
24
  selector: 'legend[snyFieldsetLegend]',
26
- standalone: true,
27
25
  host: {
28
26
  '[class]': 'computedClass()',
29
27
  },
@@ -38,7 +36,6 @@ export class SnyFieldsetLegendDirective {
38
36
 
39
37
  @Directive({
40
38
  selector: '[snyFieldsetContent]',
41
- standalone: true,
42
39
  host: {
43
40
  '[class]': 'computedClass()',
44
41
  },
@@ -20,7 +20,6 @@ import {
20
20
 
21
21
  @Component({
22
22
  selector: 'sny-file-input',
23
- standalone: true,
24
23
  changeDetection: ChangeDetectionStrategy.OnPush,
25
24
  host: {
26
25
  '[class]': '"w-full"',
@@ -26,7 +26,6 @@ const variantMap: Record<IndicatorVariant, string> = {
26
26
 
27
27
  @Directive({
28
28
  selector: '[snyIndicator]',
29
- standalone: true,
30
29
  host: { '[class]': 'computedClass()' },
31
30
  })
32
31
  export class SnyIndicatorDirective {
@@ -38,7 +37,6 @@ export class SnyIndicatorDirective {
38
37
 
39
38
  @Directive({
40
39
  selector: '[snyIndicatorBadge]',
41
- standalone: true,
42
40
  host: {
43
41
  '[class]': 'computedClass()',
44
42
  '[attr.aria-label]': 'ariaLabel() || null',
@@ -4,7 +4,6 @@ import { inputVariants, type InputVariant, type InputSize } from './input.varian
4
4
 
5
5
  @Directive({
6
6
  selector: 'input[snyInput], textarea[snyInput]',
7
- standalone: true,
8
7
  host: {
9
8
  '[class]': 'computedClass()',
10
9
  '[attr.aria-invalid]': 'variant() === "error" || null',
@@ -4,7 +4,6 @@ import { labelVariants, type InputVariant } from './input.variants';
4
4
 
5
5
  @Directive({
6
6
  selector: 'label[snyLabel]',
7
- standalone: true,
8
7
  host: { '[class]': 'computedClass()' },
9
8
  })
10
9
  export class SnyLabelDirective {
@@ -4,7 +4,6 @@ import { kbdVariants, type KbdSize } from './kbd.variants';
4
4
 
5
5
  @Directive({
6
6
  selector: 'kbd[snyKbd]',
7
- standalone: true,
8
7
  host: {
9
8
  '[class]': 'computedClass()',
10
9
  },
@@ -4,7 +4,6 @@ import { linkVariants, type LinkVariant } from './link.variants';
4
4
 
5
5
  @Directive({
6
6
  selector: 'a[snyLink]',
7
- standalone: true,
8
7
  host: {
9
8
  '[class]': 'computedClass()',
10
9
  },
@@ -5,7 +5,6 @@ export type ListVariant = 'default' | 'bordered' | 'hover';
5
5
 
6
6
  @Directive({
7
7
  selector: '[snyList]',
8
- standalone: true,
9
8
  host: {
10
9
  'role': 'list',
11
10
  '[class]': 'computedClass()',
@@ -27,7 +26,6 @@ export class SnyListDirective {
27
26
 
28
27
  @Directive({
29
28
  selector: '[snyListItem]',
30
- standalone: true,
31
29
  host: {
32
30
  'role': 'listitem',
33
31
  '[class]': 'computedClass()',
@@ -51,7 +49,6 @@ export class SnyListItemDirective {
51
49
 
52
50
  @Directive({
53
51
  selector: '[snyListItemIcon]',
54
- standalone: true,
55
52
  host: { '[class]': 'computedClass()' },
56
53
  })
57
54
  export class SnyListItemIconDirective {
@@ -63,7 +60,6 @@ export class SnyListItemIconDirective {
63
60
 
64
61
  @Directive({
65
62
  selector: '[snyListItemContent]',
66
- standalone: true,
67
63
  host: { '[class]': 'computedClass()' },
68
64
  })
69
65
  export class SnyListItemContentDirective {
@@ -75,7 +71,6 @@ export class SnyListItemContentDirective {
75
71
 
76
72
  @Directive({
77
73
  selector: '[snyListItemAction]',
78
- standalone: true,
79
74
  host: { '[class]': 'computedClass()' },
80
75
  })
81
76
  export class SnyListItemActionDirective {
@@ -4,7 +4,6 @@ import { loaderVariants, type LoaderSize, type LoaderVariant } from './loader.va
4
4
 
5
5
  @Component({
6
6
  selector: 'sny-loader',
7
- standalone: true,
8
7
  changeDetection: ChangeDetectionStrategy.OnPush,
9
8
  host: {
10
9
  '[class]': 'computedClass()',
@@ -4,7 +4,6 @@ import { cn } from '../core/utils/cn';
4
4
 
5
5
  @Directive({
6
6
  selector: '[snyDialogHeader]',
7
- standalone: true,
8
7
  host: { '[class]': 'computedClass()' },
9
8
  })
10
9
  export class SnyDialogHeaderDirective {
@@ -16,7 +15,6 @@ export class SnyDialogHeaderDirective {
16
15
 
17
16
  @Directive({
18
17
  selector: '[snyDialogTitle]',
19
- standalone: true,
20
18
  host: { '[class]': 'computedClass()' },
21
19
  })
22
20
  export class SnyDialogTitleDirective {
@@ -28,7 +26,6 @@ export class SnyDialogTitleDirective {
28
26
 
29
27
  @Directive({
30
28
  selector: '[snyDialogDescription]',
31
- standalone: true,
32
29
  host: { '[class]': 'computedClass()' },
33
30
  })
34
31
  export class SnyDialogDescriptionDirective {
@@ -40,7 +37,6 @@ export class SnyDialogDescriptionDirective {
40
37
 
41
38
  @Directive({
42
39
  selector: '[snyDialogContent]',
43
- standalone: true,
44
40
  host: { '[class]': 'computedClass()' },
45
41
  })
46
42
  export class SnyDialogContentDirective {
@@ -55,7 +51,6 @@ export class SnyDialogContentDirective {
55
51
 
56
52
  @Directive({
57
53
  selector: '[snyDialogFooter]',
58
- standalone: true,
59
54
  host: { '[class]': 'computedClass()' },
60
55
  })
61
56
  export class SnyDialogFooterDirective {
@@ -67,7 +62,6 @@ export class SnyDialogFooterDirective {
67
62
 
68
63
  @Directive({
69
64
  selector: '[snyDialogClose]',
70
- standalone: true,
71
65
  host: {
72
66
  '[class]': 'computedClass()',
73
67
  '(click)': 'onClick()',
@@ -5,7 +5,6 @@ export type NavbarVariant = 'default' | 'bordered' | 'floating';
5
5
 
6
6
  @Directive({
7
7
  selector: '[snyNavbar]',
8
- standalone: true,
9
8
  host: {
10
9
  'role': 'navigation',
11
10
  '[attr.aria-label]': 'ariaLabel()',
@@ -32,7 +31,6 @@ export class SnyNavbarDirective {
32
31
 
33
32
  @Directive({
34
33
  selector: '[snyNavbarBrand]',
35
- standalone: true,
36
34
  host: { '[class]': 'computedClass()' },
37
35
  })
38
36
  export class SnyNavbarBrandDirective {
@@ -42,7 +40,6 @@ export class SnyNavbarBrandDirective {
42
40
 
43
41
  @Directive({
44
42
  selector: '[snyNavbarContent]',
45
- standalone: true,
46
43
  host: { '[class]': 'computedClass()' },
47
44
  })
48
45
  export class SnyNavbarContentDirective {
@@ -52,7 +49,6 @@ export class SnyNavbarContentDirective {
52
49
 
53
50
  @Directive({
54
51
  selector: '[snyNavbarEnd]',
55
- standalone: true,
56
52
  host: { '[class]': 'computedClass()' },
57
53
  })
58
54
  export class SnyNavbarEndDirective {
@@ -15,7 +15,6 @@ import { numberInputVariants, type NumberInputSize } from './number-input.varian
15
15
 
16
16
  @Component({
17
17
  selector: 'sny-number-input',
18
- standalone: true,
19
18
  changeDetection: ChangeDetectionStrategy.OnPush,
20
19
  providers: [
21
20
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyNumberInputComponent), multi: true },
@@ -20,7 +20,6 @@ import { otpCellVariants, type OtpInputSize, type OtpInputType } from './otp-inp
20
20
 
21
21
  @Component({
22
22
  selector: 'sny-otp-input',
23
- standalone: true,
24
23
  changeDetection: ChangeDetectionStrategy.OnPush,
25
24
  providers: [
26
25
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyOtpInputComponent), multi: true },
@@ -54,7 +54,6 @@ function computePageRange(
54
54
 
55
55
  @Component({
56
56
  selector: 'sny-pagination',
57
- standalone: true,
58
57
  changeDetection: ChangeDetectionStrategy.OnPush,
59
58
  host: {
60
59
  'role': 'navigation',
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  Directive,
3
3
  ElementRef,
4
- HostListener,
5
4
  InjectionToken,
6
5
  OnDestroy,
7
6
  computed,
@@ -15,11 +14,12 @@ export const SNY_POPOVER = new InjectionToken<SnyPopoverDirective>('SnyPopover')
15
14
 
16
15
  @Directive({
17
16
  selector: '[snyPopover]',
18
- standalone: true,
19
17
  exportAs: 'snyPopover',
20
18
  providers: [{ provide: SNY_POPOVER, useExisting: SnyPopoverDirective }],
21
19
  host: {
22
20
  '[class]': '"relative inline-block"',
21
+ '(document:click)': 'onDocumentClick($event)',
22
+ '(keydown.escape)': 'onEscape()',
23
23
  },
24
24
  })
25
25
  export class SnyPopoverDirective implements OnDestroy {
@@ -91,14 +91,12 @@ export class SnyPopoverDirective implements OnDestroy {
91
91
  }
92
92
  }
93
93
 
94
- @HostListener('document:click', ['$event'])
95
94
  onDocumentClick(event: MouseEvent): void {
96
95
  if (this.closeOnOutside() && this.isOpen() && !this.elRef.nativeElement.contains(event.target)) {
97
96
  this.close();
98
97
  }
99
98
  }
100
99
 
101
- @HostListener('keydown.escape')
102
100
  onEscape(): void {
103
101
  if (this.closeOnEscape() && this.isOpen()) {
104
102
  this.close();
@@ -112,7 +110,6 @@ export class SnyPopoverDirective implements OnDestroy {
112
110
 
113
111
  @Directive({
114
112
  selector: '[snyPopoverTrigger]',
115
- standalone: true,
116
113
  host: {
117
114
  '(click)': 'popover.toggle()',
118
115
  '[attr.aria-expanded]': 'popover.isOpen()',
@@ -130,7 +127,6 @@ export class SnyPopoverTriggerDirective {
130
127
 
131
128
  @Directive({
132
129
  selector: '[snyPopoverContent]',
133
- standalone: true,
134
130
  host: {
135
131
  'role': 'dialog',
136
132
  '[style.display]': 'popover.isOpen() ? "" : "none"',
@@ -9,7 +9,6 @@ import {
9
9
 
10
10
  @Component({
11
11
  selector: 'sny-progress',
12
- standalone: true,
13
12
  changeDetection: ChangeDetectionStrategy.OnPush,
14
13
  host: {
15
14
  'role': 'progressbar',
@@ -16,7 +16,6 @@ const variantColorMap: Record<RadialProgressVariant, string> = {
16
16
 
17
17
  @Component({
18
18
  selector: 'sny-radial-progress',
19
- standalone: true,
20
19
  changeDetection: ChangeDetectionStrategy.OnPush,
21
20
  host: {
22
21
  'role': 'progressbar',
@@ -4,7 +4,6 @@ import { radioVariants, type RadioSize } from './radio.variants';
4
4
 
5
5
  @Directive({
6
6
  selector: 'input[type="radio"][snyRadio]',
7
- standalone: true,
8
7
  host: { '[class]': 'computedClass()' },
9
8
  })
10
9
  export class SnyRadioDirective {
@@ -10,7 +10,6 @@ interface StarState {
10
10
 
11
11
  @Component({
12
12
  selector: 'sny-rating',
13
- standalone: true,
14
13
  changeDetection: ChangeDetectionStrategy.OnPush,
15
14
  host: {
16
15
  'role': 'slider',
@@ -4,7 +4,6 @@ import {
4
4
  computed,
5
5
  ElementRef,
6
6
  forwardRef,
7
- HostListener,
8
7
  inject,
9
8
  input,
10
9
  model,
@@ -23,10 +22,10 @@ export interface SelectOption {
23
22
 
24
23
  @Component({
25
24
  selector: 'sny-select',
26
- standalone: true,
27
25
  changeDetection: ChangeDetectionStrategy.OnPush,
28
26
  host: {
29
27
  class: 'relative inline-block w-full',
28
+ '(document:click)': 'onDocumentClick($event)',
30
29
  },
31
30
  providers: [
32
31
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnySelectComponent), multi: true },
@@ -228,7 +227,6 @@ export class SnySelectComponent implements ControlValueAccessor, OnDestroy {
228
227
  }
229
228
  }
230
229
 
231
- @HostListener('document:click', ['$event'])
232
230
  onDocumentClick(event: MouseEvent): void {
233
231
  if (!this.elRef.nativeElement.contains(event.target)) {
234
232
  this.close();
@@ -4,7 +4,6 @@ import { cn } from '../core/utils/cn';
4
4
 
5
5
  @Directive({
6
6
  selector: '[snySheetHeader]',
7
- standalone: true,
8
7
  host: { '[class]': 'computedClass()' },
9
8
  })
10
9
  export class SnySheetHeaderDirective {
@@ -16,7 +15,6 @@ export class SnySheetHeaderDirective {
16
15
 
17
16
  @Directive({
18
17
  selector: '[snySheetTitle]',
19
- standalone: true,
20
18
  host: { '[class]': 'computedClass()' },
21
19
  })
22
20
  export class SnySheetTitleDirective {
@@ -28,7 +26,6 @@ export class SnySheetTitleDirective {
28
26
 
29
27
  @Directive({
30
28
  selector: '[snySheetDescription]',
31
- standalone: true,
32
29
  host: { '[class]': 'computedClass()' },
33
30
  })
34
31
  export class SnySheetDescriptionDirective {
@@ -40,7 +37,6 @@ export class SnySheetDescriptionDirective {
40
37
 
41
38
  @Directive({
42
39
  selector: '[snySheetContent]',
43
- standalone: true,
44
40
  host: { '[class]': 'computedClass()' },
45
41
  })
46
42
  export class SnySheetContentDirective {
@@ -52,7 +48,6 @@ export class SnySheetContentDirective {
52
48
 
53
49
  @Directive({
54
50
  selector: '[snySheetClose]',
55
- standalone: true,
56
51
  host: {
57
52
  '[class]': 'computedClass()',
58
53
  '(click)': 'onClick()',
@@ -4,7 +4,6 @@ import { skeletonVariants, type SkeletonVariant, type SkeletonSize } from './ske
4
4
 
5
5
  @Directive({
6
6
  selector: '[snySkeleton]',
7
- standalone: true,
8
7
  host: {
9
8
  '[class]': 'computedClass()',
10
9
  'aria-busy': 'true',
@@ -5,7 +5,6 @@ import { sliderTrackVariants, sliderThumbSize, type SliderSize } from './slider.
5
5
 
6
6
  @Component({
7
7
  selector: 'sny-slider',
8
- standalone: true,
9
8
  changeDetection: ChangeDetectionStrategy.OnPush,
10
9
  host: {
11
10
  class: 'block',
@@ -7,7 +7,6 @@ let statIdCounter = 0;
7
7
 
8
8
  @Directive({
9
9
  selector: '[snyStat]',
10
- standalone: true,
11
10
  providers: [{ provide: SNY_STAT, useExisting: SnyStatDirective }],
12
11
  host: { '[class]': 'computedClass()' },
13
12
  })
@@ -21,7 +20,6 @@ export class SnyStatDirective {
21
20
 
22
21
  @Directive({
23
22
  selector: '[snyStatTitle]',
24
- standalone: true,
25
23
  host: {
26
24
  '[class]': 'computedClass()',
27
25
  '[id]': 'stat.titleId',
@@ -37,7 +35,6 @@ export class SnyStatTitleDirective {
37
35
 
38
36
  @Directive({
39
37
  selector: '[snyStatValue]',
40
- standalone: true,
41
38
  host: {
42
39
  '[class]': 'computedClass()',
43
40
  '[attr.aria-labelledby]': 'stat.titleId',
@@ -55,7 +52,6 @@ export type StatDescriptionVariant = 'default' | 'success' | 'error';
55
52
 
56
53
  @Directive({
57
54
  selector: '[snyStatDescription]',
58
- standalone: true,
59
55
  host: { '[class]': 'computedClass()' },
60
56
  })
61
57
  export class SnyStatDescriptionDirective {
@@ -73,7 +69,6 @@ export class SnyStatDescriptionDirective {
73
69
 
74
70
  @Directive({
75
71
  selector: '[snyStatFigure]',
76
- standalone: true,
77
72
  host: { '[class]': 'computedClass()' },
78
73
  })
79
74
  export class SnyStatFigureDirective {
@@ -13,7 +13,6 @@ const variantLabels: Record<StatusVariant, string> = {
13
13
 
14
14
  @Directive({
15
15
  selector: '[snyStatus]',
16
- standalone: true,
17
16
  host: {
18
17
  'role': 'status',
19
18
  '[attr.aria-label]': 'ariaLabel()',
@@ -9,7 +9,6 @@ export type StepsSize = 'sm' | 'md' | 'lg';
9
9
 
10
10
  @Directive({
11
11
  selector: '[snyStep]',
12
- standalone: true,
13
12
  host: {
14
13
  'role': 'listitem',
15
14
  '[class]': 'computedClass()',
@@ -46,7 +45,6 @@ export class SnyStepDirective {
46
45
 
47
46
  @Directive({
48
47
  selector: '[snySteps]',
49
- standalone: true,
50
48
  exportAs: 'snySteps',
51
49
  providers: [{ provide: SNY_STEPS, useExisting: SnyStepsDirective }],
52
50
  host: {
@@ -5,7 +5,6 @@ import { switchTrackVariants, switchThumbSize, switchThumbTranslate, type Switch
5
5
 
6
6
  @Component({
7
7
  selector: 'sny-switch',
8
- standalone: true,
9
8
  changeDetection: ChangeDetectionStrategy.OnPush,
10
9
  host: { class: 'inline-flex' },
11
10
  providers: [
@@ -6,7 +6,6 @@ export const SNY_TABLE = new InjectionToken<SnyTableDirective>('SnyTable');
6
6
 
7
7
  @Directive({
8
8
  selector: 'table[snyTable]',
9
- standalone: true,
10
9
  providers: [{ provide: SNY_TABLE, useExisting: SnyTableDirective }],
11
10
  host: { '[class]': 'computedClass()' },
12
11
  })
@@ -24,7 +23,6 @@ export class SnyTableDirective {
24
23
 
25
24
  @Directive({
26
25
  selector: 'thead[snyTableHeader]',
27
- standalone: true,
28
26
  host: { '[class]': 'computedClass()' },
29
27
  })
30
28
  export class SnyTableHeaderDirective {
@@ -42,7 +40,6 @@ export class SnyTableHeaderDirective {
42
40
 
43
41
  @Directive({
44
42
  selector: 'tbody[snyTableBody]',
45
- standalone: true,
46
43
  host: { '[class]': 'computedClass()' },
47
44
  })
48
45
  export class SnyTableBodyDirective {
@@ -55,7 +52,6 @@ export class SnyTableBodyDirective {
55
52
 
56
53
  @Directive({
57
54
  selector: 'tr[snyTableRow]',
58
- standalone: true,
59
55
  host: { '[class]': 'computedClass()' },
60
56
  })
61
57
  export class SnyTableRowDirective {
@@ -73,7 +69,6 @@ export class SnyTableRowDirective {
73
69
 
74
70
  @Directive({
75
71
  selector: 'th[snyTableHead]',
76
- standalone: true,
77
72
  host: { '[class]': 'computedClass()' },
78
73
  })
79
74
  export class SnyTableHeadDirective {
@@ -91,7 +86,6 @@ export class SnyTableHeadDirective {
91
86
 
92
87
  @Directive({
93
88
  selector: 'td[snyTableCell]',
94
- standalone: true,
95
89
  host: { '[class]': 'computedClass()' },
96
90
  })
97
91
  export class SnyTableCellDirective {
@@ -109,7 +103,6 @@ export class SnyTableCellDirective {
109
103
 
110
104
  @Directive({
111
105
  selector: 'tfoot[snyTableFooter]',
112
- standalone: true,
113
106
  host: { '[class]': 'computedClass()' },
114
107
  })
115
108
  export class SnyTableFooterDirective {
@@ -122,7 +115,6 @@ export class SnyTableFooterDirective {
122
115
 
123
116
  @Directive({
124
117
  selector: 'caption[snyTableCaption]',
125
- standalone: true,
126
118
  host: { '[class]': 'computedClass()' },
127
119
  })
128
120
  export class SnyTableCaptionDirective {
@@ -5,7 +5,6 @@ export const SNY_TABS = new InjectionToken<SnyTabsDirective>('SnyTabs');
5
5
 
6
6
  @Directive({
7
7
  selector: '[snyTabs]',
8
- standalone: true,
9
8
  exportAs: 'snyTabs',
10
9
  providers: [{ provide: SNY_TABS, useExisting: SnyTabsDirective }],
11
10
  host: { '[class]': 'computedClass()' },
@@ -25,7 +24,6 @@ export class SnyTabsDirective {
25
24
 
26
25
  @Directive({
27
26
  selector: '[snyTabsList]',
28
- standalone: true,
29
27
  host: {
30
28
  role: 'tablist',
31
29
  '[class]': 'computedClass()',
@@ -81,7 +79,6 @@ export class SnyTabsListDirective {
81
79
 
82
80
  @Directive({
83
81
  selector: '[snyTabsTrigger]',
84
- standalone: true,
85
82
  host: {
86
83
  role: 'tab',
87
84
  '[class]': 'computedClass()',
@@ -110,7 +107,6 @@ export class SnyTabsTriggerDirective {
110
107
 
111
108
  @Directive({
112
109
  selector: '[snyTabsContent]',
113
- standalone: true,
114
110
  host: {
115
111
  role: 'tabpanel',
116
112
  '[class]': 'computedClass()',
@@ -16,7 +16,6 @@ import { tagInputContainerVariants, tagVariants, type TagInputSize } from './tag
16
16
 
17
17
  @Component({
18
18
  selector: 'sny-tag-input',
19
- standalone: true,
20
19
  changeDetection: ChangeDetectionStrategy.OnPush,
21
20
  providers: [
22
21
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyTagInputComponent), multi: true },
@@ -17,7 +17,6 @@ import {
17
17
 
18
18
  @Directive({
19
19
  selector: 'textarea[snyTextarea]',
20
- standalone: true,
21
20
  host: {
22
21
  '[class]': 'computedClass()',
23
22
  '[attr.aria-invalid]': 'variant() === "error" || null',
@@ -8,7 +8,6 @@ export type TimelineMiddleVariant = 'default' | 'primary' | 'success' | 'error';
8
8
 
9
9
  @Directive({
10
10
  selector: '[snyTimelineItem]',
11
- standalone: true,
12
11
  host: { 'role': 'listitem', '[class]': 'computedClass()' },
13
12
  })
14
13
  export class SnyTimelineItemDirective {
@@ -21,7 +20,6 @@ export class SnyTimelineItemDirective {
21
20
 
22
21
  @Directive({
23
22
  selector: '[snyTimelineStart]',
24
- standalone: true,
25
23
  host: { '[class]': 'computedClass()' },
26
24
  })
27
25
  export class SnyTimelineStartDirective {
@@ -33,7 +31,6 @@ export class SnyTimelineStartDirective {
33
31
 
34
32
  @Directive({
35
33
  selector: '[snyTimelineMiddle]',
36
- standalone: true,
37
34
  host: { '[class]': 'computedClass()', 'aria-hidden': 'true' },
38
35
  })
39
36
  export class SnyTimelineMiddleDirective {
@@ -52,7 +49,6 @@ export class SnyTimelineMiddleDirective {
52
49
 
53
50
  @Directive({
54
51
  selector: '[snyTimelineEnd]',
55
- standalone: true,
56
52
  host: { '[class]': 'computedClass()' },
57
53
  })
58
54
  export class SnyTimelineEndDirective {
@@ -64,7 +60,6 @@ export class SnyTimelineEndDirective {
64
60
 
65
61
  @Directive({
66
62
  selector: '[snyTimeline]',
67
- standalone: true,
68
63
  exportAs: 'snyTimeline',
69
64
  providers: [{ provide: SNY_TIMELINE, useExisting: SnyTimelineDirective }],
70
65
  host: {
@@ -5,7 +5,6 @@ import { cn } from '../core/utils/cn';
5
5
 
6
6
  @Component({
7
7
  selector: 'sny-toaster',
8
- standalone: true,
9
8
  changeDetection: ChangeDetectionStrategy.OnPush,
10
9
  template: `
11
10
  <div [class]="containerClass()" role="region" aria-label="Notifications" tabindex="-1">
@@ -5,7 +5,6 @@ import { toggleVariants, type ToggleVariant, type ToggleSize } from './toggle.va
5
5
 
6
6
  @Directive({
7
7
  selector: 'button[snyToggle]',
8
- standalone: true,
9
8
  providers: [
10
9
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyToggleDirective), multi: true },
11
10
  ],
@@ -16,7 +16,6 @@ let tooltipIdCounter = 0;
16
16
 
17
17
  @Directive({
18
18
  selector: '[snyTooltip]',
19
- standalone: true,
20
19
  exportAs: 'snyTooltip',
21
20
  host: {
22
21
  '(mouseenter)': 'show()',