@semantic-components/ui 0.40.0 → 0.41.0

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 (133) hide show
  1. package/fesm2022/semantic-components-ui.mjs +3043 -3317
  2. package/fesm2022/semantic-components-ui.mjs.map +1 -1
  3. package/index.d.ts +1 -2
  4. package/lib/components/accordion/accordion-content.d.ts +6 -3
  5. package/lib/components/accordion/accordion-header.d.ts +3 -3
  6. package/lib/components/accordion/accordion-item-state.d.ts +7 -0
  7. package/lib/components/accordion/accordion-item.d.ts +12 -4
  8. package/lib/components/accordion/accordion-toggle.d.ts +11 -0
  9. package/lib/components/accordion/accordion.d.ts +4 -3
  10. package/lib/components/accordion/index.d.ts +1 -2
  11. package/lib/components/alert-dialog/alert-dialog-manager.d.ts +11 -0
  12. package/lib/components/alert-dialog/alert-dialog.d.ts +7 -4
  13. package/lib/components/alert-dialog/index.d.ts +1 -1
  14. package/lib/components/aspect-ratio/aspect-ratio.d.ts +2 -2
  15. package/lib/components/avatar/avatar-fallback.d.ts +5 -3
  16. package/lib/components/avatar/avatar-image.d.ts +7 -6
  17. package/lib/components/avatar/avatar-state.d.ts +6 -0
  18. package/lib/components/avatar/avatar.d.ts +3 -6
  19. package/lib/components/avatar/index.d.ts +2 -0
  20. package/lib/components/breadcrumb/breadcrumb-ellipsis.d.ts +3 -3
  21. package/lib/components/breadcrumb/breadcrumb-item.d.ts +3 -3
  22. package/lib/components/breadcrumb/breadcrumb-link.d.ts +3 -3
  23. package/lib/components/breadcrumb/breadcrumb-list.d.ts +3 -3
  24. package/lib/components/breadcrumb/breadcrumb-page.d.ts +3 -3
  25. package/lib/components/breadcrumb/breadcrumb-separator.d.ts +3 -3
  26. package/lib/components/breadcrumb/breadcrumb.d.ts +3 -4
  27. package/lib/components/button/button-base.d.ts +2 -1
  28. package/lib/components/calendar/calendar.d.ts +6 -12
  29. package/lib/components/calendar/day-button.d.ts +2 -2
  30. package/lib/components/calendar/day-selector.d.ts +15 -6
  31. package/lib/components/calendar/types.d.ts +4 -0
  32. package/lib/components/checkbox/checkbox.d.ts +13 -20
  33. package/lib/components/checkbox/index.d.ts +0 -3
  34. package/lib/components/checkbox-group/checkbox-group.d.ts +18 -5
  35. package/lib/components/checkbox-group/checkbox-item.d.ts +2 -14
  36. package/lib/components/code-highlighter/code-highlighter.d.ts +7 -5
  37. package/lib/components/code-highlighter/shiki.service.d.ts +2 -5
  38. package/lib/components/code-highlighter/types.d.ts +4 -0
  39. package/lib/components/collapsible/collapsible-content.d.ts +9 -3
  40. package/lib/components/collapsible/collapsible-state.d.ts +2 -5
  41. package/lib/components/collapsible/collapsible-toggle.d.ts +7 -0
  42. package/lib/components/collapsible/collapsible.d.ts +4 -8
  43. package/lib/components/collapsible/index.d.ts +1 -1
  44. package/lib/components/combobox/combobox.d.ts +3 -3
  45. package/lib/components/date-range-picker/date-range-picker.d.ts +5 -5
  46. package/lib/components/dialog/dialog-close.d.ts +5 -3
  47. package/lib/components/dialog/dialog-container.d.ts +11 -0
  48. package/lib/components/dialog/dialog-content.d.ts +3 -3
  49. package/lib/components/dialog/dialog-description.d.ts +3 -3
  50. package/lib/components/dialog/dialog-footer.d.ts +3 -3
  51. package/lib/components/dialog/dialog-header.d.ts +3 -3
  52. package/lib/components/dialog/dialog-manager.d.ts +13 -0
  53. package/lib/components/dialog/dialog-title.d.ts +3 -3
  54. package/lib/components/dialog/dialog.d.ts +1 -3
  55. package/lib/components/dialog/index.d.ts +1 -0
  56. package/lib/components/editor/actions/editor-bullet-list.d.ts +2 -2
  57. package/lib/components/editor/actions/editor-italic.d.ts +2 -2
  58. package/lib/components/editor/actions/editor-ordered-list.d.ts +2 -2
  59. package/lib/components/editor/editor-content.d.ts +9 -0
  60. package/lib/components/editor/editor-group.d.ts +3 -3
  61. package/lib/components/editor/editor-toolbar.d.ts +3 -3
  62. package/lib/components/editor/editor.d.ts +11 -13
  63. package/lib/components/editor/index.d.ts +1 -0
  64. package/lib/components/file-upload/file-upload.d.ts +4 -6
  65. package/lib/components/input-otp/input-otp-slot.d.ts +1 -1
  66. package/lib/components/link/link.d.ts +1 -1
  67. package/lib/components/menu/menu-trigger-for.d.ts +1 -1
  68. package/lib/components/menu/menu.d.ts +3 -3
  69. package/lib/components/multi-select/multi-select.d.ts +8 -9
  70. package/lib/components/on-this-page/on-this-page.d.ts +1 -2
  71. package/lib/components/paginator/paginator.d.ts +2 -2
  72. package/lib/components/radio-group/index.d.ts +1 -0
  73. package/lib/components/radio-group/radio-item.d.ts +7 -14
  74. package/lib/components/radio-group/radio.d.ts +17 -0
  75. package/lib/components/rating/rating.d.ts +5 -5
  76. package/lib/components/scroll-area/flexible-scroll-area.component.d.ts +5 -5
  77. package/lib/components/scroll-area/horizontal-scroll-area.component.d.ts +2 -2
  78. package/lib/components/scroll-area/hover-scrollbar.component.d.ts +5 -5
  79. package/lib/components/scroll-area/scroll-area.component.d.ts +2 -2
  80. package/lib/components/scroll-spy/scroll-spy.d.ts +1 -2
  81. package/lib/components/scroll-to-top/scroll-to-top.d.ts +0 -3
  82. package/lib/components/sheet/index.d.ts +1 -1
  83. package/lib/components/sheet/sheet-close.d.ts +2 -1
  84. package/lib/components/sheet/{sheet-trigger.d.ts → sheet-manager.d.ts} +4 -3
  85. package/lib/components/sheet/sheet.d.ts +2 -1
  86. package/lib/components/skeleton/skeleton.d.ts +3 -3
  87. package/lib/components/slider/slider.d.ts +1 -1
  88. package/lib/components/switch/switch.d.ts +2 -1
  89. package/lib/components/table-of-contents/table-of-contents.d.ts +1 -2
  90. package/lib/components/tabs/index.d.ts +3 -2
  91. package/lib/components/tabs/tab-list.d.ts +7 -0
  92. package/lib/components/tabs/tab-panel-content.d.ts +8 -0
  93. package/lib/components/tabs/tab-panels.d.ts +11 -0
  94. package/lib/components/tabs/tab.d.ts +10 -6
  95. package/lib/components/tabs/tabs.d.ts +3 -3
  96. package/lib/components/tabs/tabs.service.d.ts +12 -0
  97. package/lib/components/tags/tags.d.ts +1 -1
  98. package/lib/components/textarea/textarea.d.ts +3 -3
  99. package/lib/components/theme-toggler/index.d.ts +1 -1
  100. package/lib/components/theme-toggler/theme-toggler.d.ts +6 -5
  101. package/lib/components/theme-toggler/theme.d.ts +6 -2
  102. package/lib/components/toast/toast-description.d.ts +1 -1
  103. package/lib/components/toggle/toggle-base.d.ts +15 -0
  104. package/lib/components/toggle/toggle.d.ts +3 -6
  105. package/lib/components/toggle-group/index.d.ts +1 -1
  106. package/lib/components/toggle-group/toggle-group.d.ts +5 -4
  107. package/lib/components/toggle-group/toggle-item.d.ts +8 -0
  108. package/lib/components/typography/heading.d.ts +2 -1
  109. package/package.json +1 -1
  110. package/styles/all-styles.css +0 -4
  111. package/styles/styles.css +178 -0
  112. package/styles/tiptap-styles.css +72 -0
  113. package/lib/components/accordion/accordion-item-description.d.ts +0 -7
  114. package/lib/components/accordion/accordion-trigger.d.ts +0 -7
  115. package/lib/components/alert-dialog/alert-dialog-trigger.d.ts +0 -8
  116. package/lib/components/checkbox/checkbox-container.d.ts +0 -7
  117. package/lib/components/checkbox/checkbox-field.d.ts +0 -13
  118. package/lib/components/checkbox/checkbox2.d.ts +0 -17
  119. package/lib/components/collapsible/collapsible-trigger.d.ts +0 -10
  120. package/lib/components/confirmation-dialog/confirmation-dialog-content.d.ts +0 -18
  121. package/lib/components/confirmation-dialog/confirmation-dialog-description.d.ts +0 -7
  122. package/lib/components/confirmation-dialog/confirmation-dialog-footer.d.ts +0 -7
  123. package/lib/components/confirmation-dialog/confirmation-dialog-header.d.ts +0 -7
  124. package/lib/components/confirmation-dialog/confirmation-dialog-title.d.ts +0 -7
  125. package/lib/components/confirmation-dialog/confirmation-dialog.d.ts +0 -8
  126. package/lib/components/confirmation-dialog/index.d.ts +0 -1
  127. package/lib/components/overlay/index.d.ts +0 -1
  128. package/lib/components/overlay/utils.d.ts +0 -1
  129. package/lib/components/tabs/tab-content.d.ts +0 -7
  130. package/lib/components/tabs/tab-label.d.ts +0 -7
  131. package/lib/components/tabs/tabs-header.d.ts +0 -7
  132. package/lib/components/theme-toggler/theme-provider.d.ts +0 -1
  133. package/lib/components/toggle-group/toggle-group-item.d.ts +0 -5
@@ -2,10 +2,10 @@ import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FlexibleScrollAreaComponent implements OnInit, OnDestroy, AfterViewInit {
4
4
  orientation: 'vertical' | 'horizontal';
5
- height: string;
6
- width: string;
7
- showNavButtons: boolean;
8
- viewportRef: ElementRef<HTMLDivElement>;
5
+ readonly height: import("@angular/core").InputSignal<string>;
6
+ readonly width: import("@angular/core").InputSignal<string>;
7
+ readonly showNavButtons: import("@angular/core").InputSignal<boolean>;
8
+ readonly viewportRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
9
9
  isScrolling: boolean;
10
10
  isHovering: boolean;
11
11
  isDragging: boolean;
@@ -29,5 +29,5 @@ export declare class FlexibleScrollAreaComponent implements OnInit, OnDestroy, A
29
29
  scrollPrev(): void;
30
30
  scrollNext(): void;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<FlexibleScrollAreaComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<FlexibleScrollAreaComponent, "sc-flexible-scroll-area", never, { "orientation": { "alias": "orientation"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "showNavButtons": { "alias": "showNavButtons"; "required": false; }; }, {}, never, ["*"], true, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlexibleScrollAreaComponent, "sc-flexible-scroll-area", never, { "orientation": { "alias": "orientation"; "required": false; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "showNavButtons": { "alias": "showNavButtons"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
33
33
  }
@@ -1,8 +1,8 @@
1
1
  import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class HorizontalScrollAreaComponent implements OnDestroy, AfterViewInit {
4
- viewportRef: ElementRef<HTMLDivElement>;
5
- thumbRef: ElementRef<HTMLDivElement>;
4
+ readonly viewportRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
5
+ readonly thumbRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
6
6
  isScrolling: boolean;
7
7
  isHovering: boolean;
8
8
  isDragging: boolean;
@@ -1,14 +1,14 @@
1
1
  import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class HoverScrollbarComponent implements AfterViewInit, OnChanges {
4
- width: number;
5
- height: number;
6
- border: boolean;
7
- contentContainer: ElementRef;
4
+ readonly width: import("@angular/core").InputSignal<number>;
5
+ readonly height: import("@angular/core").InputSignal<number>;
6
+ readonly border: import("@angular/core").InputSignal<boolean>;
7
+ readonly contentContainer: import("@angular/core").Signal<ElementRef<any>>;
8
8
  isScrollable: boolean;
9
9
  ngAfterViewInit(): void;
10
10
  ngOnChanges(changes: SimpleChanges): void;
11
11
  checkIfScrollable(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<HoverScrollbarComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<HoverScrollbarComponent, "sc-hover-scrollbar", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "border": { "alias": "border"; "required": false; }; }, {}, never, ["*"], true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<HoverScrollbarComponent, "sc-hover-scrollbar", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
14
14
  }
@@ -1,8 +1,8 @@
1
1
  import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ScrollAreaComponent implements OnDestroy, AfterViewInit {
4
- viewportRef: ElementRef<HTMLDivElement>;
5
- thumbRef: ElementRef<HTMLDivElement>;
4
+ readonly viewportRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
5
+ readonly thumbRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
6
6
  isScrolling: boolean;
7
7
  isHovering: boolean;
8
8
  isDragging: boolean;
@@ -1,11 +1,10 @@
1
- import { ElementRef, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ScScrollSpy implements OnInit {
4
4
  private readonly el;
5
5
  readonly spySections: import("@angular/core").InputSignal<string[]>;
6
6
  readonly sectionChange: import("@angular/core").OutputEmitterRef<string>;
7
7
  private observer;
8
- constructor(el: ElementRef);
9
8
  ngOnInit(): void;
10
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ScScrollSpy, never>;
11
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<ScScrollSpy, "[scScrollSpy]", never, { "spySections": { "alias": "spySections"; "required": false; "isSignal": true; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
@@ -1,5 +1,3 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { Injector } from '@angular/core';
3
1
  import * as i0 from "@angular/core";
4
2
  export declare class ScScrollToTop {
5
3
  private readonly overlay;
@@ -8,7 +6,6 @@ export declare class ScScrollToTop {
8
6
  private overlayRef;
9
7
  private componentRef;
10
8
  private readonly scrollThreshold;
11
- constructor(overlay: Overlay, injector: Injector);
12
9
  init(): void;
13
10
  private show;
14
11
  private hide;
@@ -1,4 +1,4 @@
1
1
  export * from './sheet';
2
2
  export * from './sheet-config';
3
- export * from './sheet-trigger';
3
+ export * from './sheet-manager';
4
4
  export * from './sheet-close';
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ScSheetClose {
3
- private readonly scSheetTrigger;
3
+ private readonly scSheetManager;
4
+ readonly state: import("@angular/core").Signal<"open" | "closed">;
4
5
  readonly classInput: import("@angular/core").InputSignal<string>;
5
6
  protected readonly class: import("@angular/core").Signal<string>;
6
7
  protected close(): void;
@@ -1,16 +1,17 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { ScSheetConfig } from './sheet-config';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ScSheetTrigger {
4
+ export declare class ScSheetManager {
5
5
  private readonly overlayContainer;
6
6
  private readonly overlay;
7
7
  private overlayRef;
8
+ readonly isOpen: import("@angular/core").WritableSignal<boolean>;
8
9
  readonly state: import("@angular/core").WritableSignal<"open" | "closed">;
9
10
  readonly side: import("@angular/core").WritableSignal<"left" | "right" | "top" | "bottom">;
10
11
  constructor();
11
12
  open(templateRef: TemplateRef<unknown>, config: ScSheetConfig): void;
12
13
  close(): void;
13
14
  private getOverlayConfig;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ScSheetTrigger, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<ScSheetTrigger>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScSheetManager, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScSheetManager>;
16
17
  }
@@ -5,11 +5,12 @@ declare const sheetVariants: (props?: ({
5
5
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
6
  export type SheetVariants = VariantProps<typeof sheetVariants>;
7
7
  export declare class ScSheet {
8
- private readonly scSheetTrigger;
8
+ private readonly scSheetManager;
9
9
  readonly state: import("@angular/core").Signal<"open" | "closed">;
10
10
  readonly side: import("@angular/core").Signal<"left" | "right" | "top" | "bottom">;
11
11
  readonly classInput: import("@angular/core").InputSignal<string>;
12
12
  protected readonly class: import("@angular/core").Signal<string>;
13
+ protected handleAnimationEnd(event: AnimationEvent): void;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ScSheet, never>;
14
15
  static ɵcmp: i0.ɵɵComponentDeclaration<ScSheet, "div[sc-sheet]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
15
16
  }
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ScSkeleton {
3
- class: import("@angular/core").InputSignal<string>;
4
- classes: import("@angular/core").Signal<string>;
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ScSkeleton, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ScSkeleton, "div[sc-skeleton]", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScSkeleton, "sc-skeleton", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
7
7
  }
@@ -10,5 +10,5 @@ export declare class ScSlider {
10
10
  constructor();
11
11
  protected handleInput(event: KeyboardEvent): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ScSlider, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ScSlider, "input[sc-slider]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScSlider, "input[sc-slider]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
14
14
  }
@@ -9,6 +9,7 @@ export declare class ScSwitch {
9
9
  readonly checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
10
10
  readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
11
11
  protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
12
+ readonly type: import("@angular/core").InputSignal<"checkbox">;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ScSwitch, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ScSwitch, "input[sc-switch]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "checkedInput": { "alias": "checked"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, ["*"], true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScSwitch, "input[sc-switch]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "checkedInput": { "alias": "checked"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, ["*"], true, never>;
14
15
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export interface ScSection {
4
4
  id: string;
@@ -10,7 +10,6 @@ export declare class ScTableOfContents implements AfterViewInit, OnDestroy {
10
10
  sections: import("@angular/core").WritableSignal<ScSection[]>;
11
11
  activeSection: import("@angular/core").WritableSignal<string>;
12
12
  private observer;
13
- constructor(elementRef: ElementRef);
14
13
  ngAfterViewInit(): void;
15
14
  ngOnDestroy(): void;
16
15
  private initializeToc;
@@ -1,4 +1,5 @@
1
1
  export * from './tabs';
2
2
  export * from './tab';
3
- export * from './tab-label';
4
- export * from './tab-content';
3
+ export * from './tab-list';
4
+ export * from './tab-panels';
5
+ export * from './tab-panel-content';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScTabList {
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScTabList, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScTabList, "div[sc-tab-list]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScTabPanelContent {
4
+ readonly templateRef: TemplateRef<any>;
5
+ readonly tabId: import("@angular/core").InputSignal<string>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScTabPanelContent, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScTabPanelContent, "[scTabPanelContent]", never, { "tabId": { "alias": "scTabPanelContent"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { ScTabPanelContent } from './tab-panel-content';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScTabPanels {
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ protected readonly class: import("@angular/core").Signal<string>;
6
+ private readonly scTabsService;
7
+ protected readonly activeTabId: import("@angular/core").Signal<string | undefined>;
8
+ protected readonly tabPanelContents: import("@angular/core").Signal<readonly ScTabPanelContent[]>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScTabPanels, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScTabPanels, "div[sc-tab-panels]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["tabPanelContents"], never, true, never>;
11
+ }
@@ -1,10 +1,14 @@
1
- import { TemplateRef } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class ScTab {
4
- class: import("@angular/core").InputSignal<string>;
5
- classes: import("@angular/core").Signal<string>;
6
- active: import("@angular/core").WritableSignal<boolean>;
7
- label: import("@angular/core").Signal<TemplateRef<unknown>>;
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ readonly value: import("@angular/core").InputSignal<string>;
6
+ private readonly scTabsService;
7
+ protected readonly isActive: import("@angular/core").Signal<boolean>;
8
+ private readonly host;
9
+ constructor();
10
+ protected selectTab(): void;
11
+ onKeydown(event: KeyboardEvent): void;
8
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ScTab, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ScTab, "sc-tab", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["sc-tab-label", "sc-tab-content"], true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScTab, "button[sc-tab]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
10
14
  }
@@ -3,10 +3,10 @@ import * as i0 from "@angular/core";
3
3
  export declare class ScTabs {
4
4
  readonly classInput: import("@angular/core").InputSignal<string>;
5
5
  protected readonly class: import("@angular/core").Signal<string>;
6
- readonly tabsHeaderClass: import("@angular/core").InputSignal<string>;
6
+ readonly value: import("@angular/core").InputSignal<string>;
7
+ private readonly scTabsService;
7
8
  readonly tabs: import("@angular/core").Signal<readonly ScTab[]>;
8
9
  constructor();
9
- selectTab(tab: ScTab): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ScTabs, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<ScTabs, "sc-tabs", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "tabsHeaderClass": { "alias": "tabsHeaderClass"; "required": false; "isSignal": true; }; }, {}, ["tabs"], ["*"], true, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScTabs, "div[sc-tabs]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, ["tabs"], ["*"], true, never>;
12
12
  }
@@ -0,0 +1,12 @@
1
+ import { ScTab } from './tab';
2
+ import * as i0 from "@angular/core";
3
+ export interface ScActiveTab {
4
+ id: string;
5
+ focus?: boolean;
6
+ }
7
+ export declare class ScTabsService {
8
+ readonly tabs: import("@angular/core").WritableSignal<readonly ScTab[]>;
9
+ readonly activeTab: import("@angular/core").WritableSignal<ScActiveTab | null>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScTabsService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScTabsService>;
12
+ }
@@ -11,7 +11,7 @@ export declare class ScTags {
11
11
  readonly tagsChange: import("@angular/core").OutputEmitterRef<string[]>;
12
12
  tagControl: FormControl<string | null>;
13
13
  error: string;
14
- onKeyDown(event: KeyboardEvent): void;
14
+ onKeydown(event: KeyboardEvent): void;
15
15
  addTag(): void;
16
16
  removeTag(tagToRemove: string): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ScTags, never>;
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ScTextarea {
3
- class: import("@angular/core").InputSignal<string>;
4
- classes: import("@angular/core").Signal<string>;
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ScTextarea, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ScTextarea, "textarea[sc-textarea]", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScTextarea, "textarea[sc-textarea]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
7
7
  }
@@ -1,2 +1,2 @@
1
+ export * from './theme';
1
2
  export * from './theme-toggler';
2
- export * from './theme-provider';
@@ -1,9 +1,10 @@
1
- import { ScTheme } from './theme';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class ScThemeToggler {
4
- theme: ScTheme;
5
- message: import("@angular/core").Signal<"Toggle dark mode" | "Toggle light mode">;
6
- toggleTheme(): void;
3
+ readonly classInput: import("@angular/core").InputSignal<string>;
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ private readonly themeService;
6
+ protected readonly isDarkMode: import("@angular/core").Signal<boolean>;
7
+ protected toggleTheme(): void;
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ScThemeToggler, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<ScThemeToggler, "sc-theme-toggler", never, {}, {}, never, never, true, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScThemeToggler, "sc-theme-toggler", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
10
  }
@@ -1,9 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ScTheme {
3
3
  private readonly document;
4
- value: import("@angular/core").WritableSignal<"light" | "dark" | undefined>;
4
+ private readonly isDarkModeSignal;
5
+ readonly isDarkMode: import("@angular/core").Signal<boolean>;
6
+ readonly theme: import("@angular/core").Signal<"light" | "dark">;
5
7
  constructor();
6
- init(): void;
8
+ private initializeTheme;
9
+ toggleTheme(): void;
10
+ private applyTheme;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ScTheme, never>;
8
12
  static ɵprov: i0.ɵɵInjectableDeclaration<ScTheme>;
9
13
  }
@@ -3,5 +3,5 @@ export declare class ScToastDescription {
3
3
  readonly classInput: import("@angular/core").InputSignal<string>;
4
4
  protected readonly class: import("@angular/core").Signal<string>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ScToastDescription, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ScToastDescription, "p[sc-toast-description]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScToastDescription, "p[sc-toast-description], div[sc-toast-description]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
7
7
  }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare const toggleVariants: (props?: ({
3
+ variant?: "default" | "outline" | null | undefined;
4
+ size?: "default" | "sm" | "lg" | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ export declare class ScToggleBase {
7
+ readonly variant: import("@angular/core").InputSignal<"default" | "outline" | null | undefined>;
8
+ readonly size: import("@angular/core").InputSignal<"default" | "sm" | "lg" | null | undefined>;
9
+ readonly classInput: import("@angular/core").InputSignal<string>;
10
+ protected readonly class: import("@angular/core").Signal<string>;
11
+ readonly active: import("@angular/core").WritableSignal<boolean>;
12
+ protected toggle(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScToggleBase, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScToggleBase, never, never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
+ }
@@ -1,9 +1,6 @@
1
+ import { ScToggleBase } from './toggle-base';
1
2
  import * as i0 from "@angular/core";
2
- export declare class ScToggle {
3
- variant: import("@angular/core").InputSignal<"default" | "outline" | null | undefined>;
4
- size: import("@angular/core").InputSignal<"default" | "sm" | "lg" | null | undefined>;
5
- class: import("@angular/core").InputSignal<string>;
6
- classes: import("@angular/core").Signal<string>;
3
+ export declare class ScToggle extends ScToggleBase {
7
4
  static ɵfac: i0.ɵɵFactoryDeclaration<ScToggle, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<ScToggle, "button[sc-toggle]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScToggle, "button[sc-toggle]", never, {}, {}, never, ["*"], true, never>;
9
6
  }
@@ -1,2 +1,2 @@
1
1
  export * from './toggle-group';
2
- export * from './toggle-group-item';
2
+ export * from './toggle-item';
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ScToggleGroup {
3
- type: import("@angular/core").InputSignal<"single" | "multiple">;
4
- class: import("@angular/core").InputSignal<string>;
5
- _class: import("@angular/core").Signal<string>;
3
+ readonly type: import("@angular/core").InputSignal<"single" | "multiple">;
4
+ readonly classInput: import("@angular/core").InputSignal<string>;
5
+ protected readonly class: import("@angular/core").Signal<string>;
6
+ readonly value: import("@angular/core").InputSignal<string[]>;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ScToggleGroup, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<ScToggleGroup, "sc-toggle-group", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScToggleGroup, "sc-toggle-group", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
9
  }
@@ -0,0 +1,8 @@
1
+ import { ScToggleBase } from '../toggle/toggle-base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScToggleItem extends ScToggleBase {
4
+ protected readonly class: import("@angular/core").Signal<string>;
5
+ readonly value: import("@angular/core").InputSignal<string | undefined>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScToggleItem, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScToggleItem, "button[sc-toggle-item]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
+ }
@@ -3,6 +3,7 @@ export declare class ScHeading {
3
3
  readonly level: import("@angular/core").InputSignal<"1" | "2" | "3" | "4" | "5" | "6" | null | undefined>;
4
4
  readonly classInput: import("@angular/core").InputSignal<string>;
5
5
  protected readonly class: import("@angular/core").Signal<string>;
6
+ readonly underline: import("@angular/core").InputSignal<boolean>;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ScHeading, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<ScHeading, "h1[sc-heading], h2[sc-heading], h3[sc-heading], h4[sc-heading], h5[sc-heading], h6[sc-heading]", never, { "level": { "alias": "level"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScHeading, "h1[sc-heading], h2[sc-heading], h3[sc-heading], h4[sc-heading], h5[sc-heading], h6[sc-heading]", never, { "level": { "alias": "level"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "underline": { "alias": "underline"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semantic-components/ui",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,7 +9,6 @@
9
9
  @import 'tw-animate-css';
10
10
 
11
11
  @plugin '@tailwindcss/typography';
12
- @plugin 'tailwindcss-animate';
13
12
 
14
13
  @custom-variant dark (&:where(.dark, .dark *));
15
14
 
@@ -122,9 +121,6 @@
122
121
  --sidebar-accent-foreground: 240 5.9% 10%;
123
122
  --sidebar-border: 220 13% 91%;
124
123
  --sidebar-ring: 240 5% 64.9%;
125
-
126
- --checkbox-checked-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-check'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
127
- --checkbox-indeterminate-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-minus'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
128
124
  }
129
125
 
130
126
  .dark {