@semantic-components/ui 0.34.0 → 0.36.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/fesm2022/semantic-components-ui.mjs +920 -839
- package/fesm2022/semantic-components-ui.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/components/button/button-base.d.ts +17 -0
- package/lib/components/button/button.d.ts +3 -14
- package/lib/components/button/cursor.d.ts +4 -4
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/input/input.d.ts +1 -1
- package/lib/components/input/plain-input.d.ts +1 -1
- package/lib/components/input-group/index.d.ts +1 -0
- package/lib/components/input-group/input-group.d.ts +7 -0
- package/lib/components/link/index.d.ts +1 -0
- package/lib/components/link/link.d.ts +7 -0
- package/lib/components/paginator/page-item.d.ts +5 -5
- package/lib/components/paginator/pagination.d.ts +3 -3
- package/lib/components/paginator/paginator.d.ts +11 -11
- package/package.json +1 -1
- package/styles/angular-cdk-styles.css +0 -0
- package/styles/scrollbar-styles.css +11 -0
- package/styles/shiki-styles.css +3 -0
- package/styles/styles.css +2 -0
- package/styles.css +0 -1
package/index.d.ts
CHANGED
|
@@ -7,8 +7,10 @@ export * from './lib/components/full-calendar';
|
|
|
7
7
|
export * from './lib/components/date-picker';
|
|
8
8
|
export * from './lib/components/nav';
|
|
9
9
|
export * from './lib/components/theme-toggler';
|
|
10
|
+
export * from './lib/components/link';
|
|
10
11
|
export * from './lib/components/button';
|
|
11
12
|
export * from './lib/components/input';
|
|
13
|
+
export * from './lib/components/input-group';
|
|
12
14
|
export * from './lib/components/input-password';
|
|
13
15
|
export * from './lib/components/input-otp';
|
|
14
16
|
export * from './lib/components/tel-input';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cursor";
|
|
4
|
+
export declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
9
|
+
export declare class ScButtonBase {
|
|
10
|
+
readonly variant: import("@angular/core").InputSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
11
|
+
readonly size: import("@angular/core").InputSignal<"default" | "sm" | "lg" | "icon" | null | undefined>;
|
|
12
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
13
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
14
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScButtonBase, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScButtonBase, never, never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.ScCursor; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
|
|
17
|
+
}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ScButtonBase } from './button-base';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
export declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
6
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
-
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
9
|
-
export declare class ScButton {
|
|
10
|
-
readonly variant: import("@angular/core").InputSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
11
|
-
readonly size: import("@angular/core").InputSignal<"default" | "sm" | "lg" | "icon" | null | undefined>;
|
|
12
|
-
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
13
|
-
protected readonly class: import("@angular/core").Signal<string>;
|
|
14
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
3
|
+
export declare class ScButton extends ScButtonBase {
|
|
15
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScButton, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScButton, "button[sc-button]
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScButton, "button[sc-button]", never, {}, {}, never, ["*"], true, never>;
|
|
17
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScCursor
|
|
2
|
+
export declare class ScCursor {
|
|
4
3
|
private readonly isPlatformBrowser;
|
|
5
4
|
private readonly hostRef;
|
|
6
5
|
private readonly renderer;
|
|
7
|
-
|
|
6
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
constructor();
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCursor, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ScCursor,
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScCursor, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ export declare const scInputStyles: import("@angular/core").WritableSignal<strin
|
|
|
4
4
|
export declare class ScInput {
|
|
5
5
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
6
6
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
7
|
-
readonly value: import("@angular/core").ModelSignal<string
|
|
7
|
+
readonly value: import("@angular/core").ModelSignal<string>;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScInput, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScInput, "input[sc-input]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, [{ directive: typeof i1.ScPlainInput; inputs: { "value": "value"; }; outputs: { "valueChange": "valueChange"; }; }]>;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ScPlainInput {
|
|
3
3
|
private readonly hostRef;
|
|
4
|
-
readonly value: import("@angular/core").ModelSignal<string
|
|
4
|
+
readonly value: import("@angular/core").ModelSignal<string>;
|
|
5
5
|
handleInput(): void;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScPlainInput, never>;
|
|
7
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ScPlainInput, "input[sc-plain-input]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input-group';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScInputGroup {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputGroup, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputGroup, "sc-input-group", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './link';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ScButtonBase } from '../button';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScLink extends ScButtonBase {
|
|
4
|
+
protected readonly tabindex: import("@angular/core").Signal<0 | -1>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScLink, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScLink, "a[sc-link]", never, {}, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ScPageItem {
|
|
3
|
-
currentPage: import("@angular/core").InputSignal<number>;
|
|
4
|
-
page: import("@angular/core").InputSignal<number | "...">;
|
|
5
|
-
pageChanged: import("@angular/core").OutputEmitterRef<number>;
|
|
6
|
-
isActive: import("@angular/core").Signal<boolean>;
|
|
7
|
-
selectPage(): void;
|
|
3
|
+
readonly currentPage: import("@angular/core").InputSignal<number>;
|
|
4
|
+
readonly page: import("@angular/core").InputSignal<number | "...">;
|
|
5
|
+
readonly pageChanged: import("@angular/core").OutputEmitterRef<number>;
|
|
6
|
+
protected readonly isActive: import("@angular/core").Signal<boolean>;
|
|
7
|
+
protected selectPage(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScPageItem, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScPageItem, "sc-page-item", never, { "currentPage": { "alias": "currentPage"; "required": true; "isSignal": true; }; "page": { "alias": "page"; "required": true; "isSignal": true; }; }, { "pageChanged": "pageChanged"; }, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ScPagination {
|
|
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<ScPagination, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPagination, "nav[sc-pagination]", never, { "
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPagination, "nav[sc-pagination]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
7
|
}
|
|
@@ -3,22 +3,22 @@ import { FormControl } from '@angular/forms';
|
|
|
3
3
|
import { ScPageEvent } from './page-event';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ScPaginator implements OnInit {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
7
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
8
8
|
/** The one-based page index of the displayed list of items. Defaulted to 1. */
|
|
9
|
-
currentPage: import("@angular/core").InputSignal<number>;
|
|
9
|
+
readonly currentPage: import("@angular/core").InputSignal<number>;
|
|
10
10
|
/** The total number of items that are being paginated. */
|
|
11
|
-
totalSize: import("@angular/core").InputSignal<number>;
|
|
11
|
+
readonly totalSize: import("@angular/core").InputSignal<number>;
|
|
12
12
|
/** The set of provided page size options to display to the user. */
|
|
13
|
-
pageSizeOptions: import("@angular/core").InputSignal<number[]>;
|
|
14
|
-
/** Number of items to display on a page. By default set to 10. */
|
|
15
|
-
pageSize: import("@angular/core").InputSignal<number>;
|
|
13
|
+
readonly pageSizeOptions: import("@angular/core").InputSignal<number[]>;
|
|
14
|
+
/** Number of items to display on a page. By default, set to 10. */
|
|
15
|
+
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
16
16
|
/** Whether to hide the page size selection UI from the user. */
|
|
17
|
-
hidePageSize: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
readonly hidePageSize: import("@angular/core").InputSignal<boolean>;
|
|
18
18
|
/** Whether to show the first/last buttons UI to the user. */
|
|
19
|
-
|
|
19
|
+
readonly showFirstLastLinks: import("@angular/core").InputSignal<boolean>;
|
|
20
20
|
/** Event emitted when the paginator changes the page index. */
|
|
21
|
-
pageChanged: import("@angular/core").OutputEmitterRef<ScPageEvent>;
|
|
21
|
+
readonly pageChanged: import("@angular/core").OutputEmitterRef<ScPageEvent>;
|
|
22
22
|
constructor();
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
pageSizeFormControl: FormControl<number | null>;
|
|
@@ -35,5 +35,5 @@ export declare class ScPaginator implements OnInit {
|
|
|
35
35
|
isPrevPageDisabled: import("@angular/core").Signal<boolean>;
|
|
36
36
|
changePage(page: number): void;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScPaginator, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPaginator, "sc-paginator", never, { "
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPaginator, "sc-paginator", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "totalSize": { "alias": "totalSize"; "required": true; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; "isSignal": true; }; "showFirstLastLinks": { "alias": "showFirstLastLinks"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; }, never, never, true, never>;
|
|
39
39
|
}
|
package/package.json
CHANGED
|
File without changes
|
package/styles.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'scrollbar-styles.css';
|