@semantic-components/ui 0.33.0 → 0.34.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.
- package/LICENSE +21 -0
- package/fesm2022/semantic-components-ui.mjs +262 -44
- package/fesm2022/semantic-components-ui.mjs.map +1 -1
- package/lib/components/code-highlighter/code-highlighter.d.ts +4 -2
- package/lib/components/input-otp/input-otp-group.d.ts +3 -3
- package/lib/components/input-otp/input-otp-handler.d.ts +1 -0
- package/lib/components/input-otp/input-otp-separator.d.ts +3 -3
- package/lib/components/input-otp/input-otp-slot.d.ts +6 -4
- package/lib/components/input-otp/input-otp.d.ts +9 -10
- package/lib/components/sidebar/index.d.ts +8 -0
- package/lib/components/sidebar/sidebar-group-action.d.ts +7 -0
- package/lib/components/sidebar/sidebar-group-content.d.ts +7 -0
- package/lib/components/sidebar/sidebar-group-label.d.ts +7 -0
- package/lib/components/sidebar/sidebar-group.d.ts +7 -0
- package/lib/components/sidebar/sidebar-menu-base.d.ts +9 -0
- package/lib/components/sidebar/sidebar-menu-button.d.ts +6 -0
- package/lib/components/sidebar/sidebar-menu-item.d.ts +7 -0
- package/lib/components/sidebar/sidebar-menu-link.d.ts +9 -0
- package/lib/components/sidebar/sidebar-menu.d.ts +7 -0
- package/package.json +5 -2
- package/styles.css +1 -11
|
@@ -2,13 +2,15 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ScCodeHighlighter implements OnInit {
|
|
5
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
6
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
7
|
private readonly shikiService;
|
|
6
8
|
private readonly sanitizer;
|
|
7
9
|
code: import("@angular/core").InputSignal<string>;
|
|
8
|
-
language: import("@angular/core").InputSignal<
|
|
10
|
+
language: import("@angular/core").InputSignal<"angular-html" | "typescript">;
|
|
9
11
|
theme: import("@angular/core").InputSignal<string>;
|
|
10
12
|
highlightedCode: import("@angular/core").WritableSignal<SafeHtml>;
|
|
11
13
|
ngOnInit(): Promise<void>;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCodeHighlighter, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCodeHighlighter, "sc-code-highlighter", never, { "code": { "alias": "code"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCodeHighlighter, "sc-code-highlighter", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "code": { "alias": "code"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ScInputOTPGroup {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputOTPGroup, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOTPGroup, "sc-input-otp-group", never, { "
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOTPGroup, "sc-input-otp-group", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class InputOtpHandler {
|
|
3
3
|
inputIndex: import("@angular/core").WritableSignal<number>;
|
|
4
|
+
length: import("@angular/core").WritableSignal<number>;
|
|
4
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputOtpHandler, never>;
|
|
5
6
|
static ɵprov: i0.ɵɵInjectableDeclaration<InputOtpHandler>;
|
|
6
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ScInputOTPSeparator {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputOTPSeparator, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOTPSeparator, "sc-input-otp-separator", never, { "
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOTPSeparator, "sc-input-otp-separator", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
7
|
}
|
|
@@ -3,13 +3,15 @@ import { InputOtpHandler } from './input-otp-handler';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ScInputOTPSlot {
|
|
5
5
|
inputOtpHandler: InputOtpHandler;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
7
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
8
8
|
formControl: import("@angular/core").WritableSignal<FormControl<any> | null>;
|
|
9
9
|
index: number;
|
|
10
10
|
isActive: import("@angular/core").WritableSignal<boolean>;
|
|
11
11
|
readonly input: import("@angular/core").Signal<HTMLInputElement>;
|
|
12
|
-
|
|
12
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
13
|
+
private autoFocusNext;
|
|
14
|
+
private autoFocusPrev;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputOTPSlot, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOTPSlot, "sc-input-otp-slot", never, { "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOTPSlot, "sc-input-otp-slot", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
17
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormArray, FormGroup } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
-
import { InputOtpHandler } from './input-otp-handler';
|
|
5
4
|
import { ScInputOTPSlot } from './input-otp-slot';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class ScInputOtp implements ControlValueAccessor, OnDestroy {
|
|
8
|
-
inputOtpHandler
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
formGroup: FormGroup<{
|
|
7
|
+
private readonly inputOtpHandler;
|
|
8
|
+
private readonly focusMonitor;
|
|
9
|
+
private readonly changeDetectorRef;
|
|
10
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
11
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
12
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
readonly formGroup: FormGroup<{
|
|
15
14
|
inputs: FormArray<never>;
|
|
16
15
|
}>;
|
|
17
16
|
get inputs(): FormArray;
|
|
18
|
-
slots: import("@angular/core").Signal<readonly ScInputOTPSlot[]>;
|
|
17
|
+
readonly slots: import("@angular/core").Signal<readonly ScInputOTPSlot[]>;
|
|
19
18
|
constructor();
|
|
20
19
|
private _updateValue;
|
|
21
20
|
readonly _value: import("@angular/core").ModelSignal<string | null>;
|
|
@@ -32,5 +31,5 @@ export declare class ScInputOtp implements ControlValueAccessor, OnDestroy {
|
|
|
32
31
|
readonly stateChanges: Subject<void>;
|
|
33
32
|
ngOnDestroy(): void;
|
|
34
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputOtp, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOtp, "sc-input-otp", never, { "
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputOtp, "sc-input-otp", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "_value": { "alias": "value"; "required": false; "isSignal": true; }; "disabledByInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "_value": "valueChange"; }, ["slots"], ["*"], true, never>;
|
|
36
35
|
}
|
|
@@ -2,3 +2,11 @@ export * from './sidebar';
|
|
|
2
2
|
export * from './sidebar-state';
|
|
3
3
|
export * from './sidebar-provider';
|
|
4
4
|
export * from './sidebar-toggler';
|
|
5
|
+
export * from './sidebar-group';
|
|
6
|
+
export * from './sidebar-group-label';
|
|
7
|
+
export * from './sidebar-group-action';
|
|
8
|
+
export * from './sidebar-group-content';
|
|
9
|
+
export * from './sidebar-menu';
|
|
10
|
+
export * from './sidebar-menu-item';
|
|
11
|
+
export * from './sidebar-menu-link';
|
|
12
|
+
export * from './sidebar-menu-button';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScSidebarGroupAction {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarGroupAction, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarGroupAction, "sc-sidebar-group-action", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScSidebarGroupContent {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarGroupContent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarGroupContent, "div[sc-sidebar-group-content]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScSidebarGroupLabel {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarGroupLabel, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarGroupLabel, "sc-sidebar-group-label", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScSidebarGroup {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarGroup, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarGroup, "sc-sidebar-group", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScSidebarMenuBase {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
readonly variant: import("@angular/core").InputSignal<"default" | "outline" | null | undefined>;
|
|
5
|
+
readonly size: import("@angular/core").InputSignal<"default" | "sm" | "lg" | null | undefined>;
|
|
6
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarMenuBase, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScSidebarMenuBase, never, never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ScSidebarMenuBase } from './sidebar-menu-base';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScSidebarMenuButton extends ScSidebarMenuBase {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarMenuButton, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarMenuButton, "button[sc-sidebar-menu-button]", never, {}, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScSidebarMenuItem {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarMenuItem, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarMenuItem, "li[sc-sidebar-menu-item]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RouterLinkActive } from '@angular/router';
|
|
2
|
+
import { ScSidebarMenuBase } from './sidebar-menu-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/router";
|
|
5
|
+
export declare class ScSidebarMenuLink extends ScSidebarMenuBase {
|
|
6
|
+
protected readonly routerLinkActive: RouterLinkActive;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarMenuLink, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarMenuLink, "a[sc-sidebar-menu-link]", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.RouterLinkActive; inputs: {}; outputs: {}; }]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScSidebarMenu {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScSidebarMenu, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSidebarMenu, "ul[sc-sidebar-menu]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantic-components/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
+
"author": "Khalil LAGRIDA",
|
|
9
|
+
"license": "MIT",
|
|
8
10
|
"peerDependencies": {
|
|
9
11
|
"@angular/common": ">=19.0.0",
|
|
10
12
|
"@angular/core": ">=19.0.0",
|
|
@@ -45,7 +47,8 @@
|
|
|
45
47
|
"@semantic-components/utils": ">=0.0.1",
|
|
46
48
|
"@semantic-components/supabase": ">=0.0.1",
|
|
47
49
|
"@angular/platform-browser": ">=19.0.0",
|
|
48
|
-
"shiki": "^2.1.0"
|
|
50
|
+
"shiki": "^2.1.0",
|
|
51
|
+
"@angular/router": ">=19.0.0"
|
|
49
52
|
},
|
|
50
53
|
"sideEffects": false,
|
|
51
54
|
"repository": {
|
package/styles.css
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
@apply w-2.5 h-2.5;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
::-webkit-scrollbar-track {
|
|
6
|
-
@apply bg-transparent;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
::-webkit-scrollbar-thumb {
|
|
10
|
-
@apply rounded-full bg-border border-[1px] border-transparent border-solid bg-clip-padding;
|
|
11
|
-
}
|
|
1
|
+
@import 'scrollbar-styles.css';
|