cerxos-ui 0.0.11 → 0.0.13
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/README.md +63 -63
- package/fesm2022/cerxos-ui.mjs +169 -119
- package/fesm2022/cerxos-ui.mjs.map +1 -1
- package/package.json +5 -4
- package/styles/tailwind.css +3 -3
- package/tokens/theme-dark.css +16 -16
- package/tokens/theme-default.css +15 -15
- package/{index.d.ts → types/cerxos-ui.d.ts} +11 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cerxos-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.3.0",
|
|
6
6
|
"@angular/core": "^20.3.0"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./
|
|
14
|
+
"types": "./types/cerxos-ui.d.ts",
|
|
15
15
|
"default": "./fesm2022/cerxos-ui.mjs"
|
|
16
16
|
},
|
|
17
17
|
"./package.json": {
|
|
@@ -22,5 +22,6 @@
|
|
|
22
22
|
"./tokens/theme-dark.css": "./tokens/theme-dark.css"
|
|
23
23
|
},
|
|
24
24
|
"module": "fesm2022/cerxos-ui.mjs",
|
|
25
|
-
"typings": "
|
|
26
|
-
|
|
25
|
+
"typings": "types/cerxos-ui.d.ts",
|
|
26
|
+
"type": "module"
|
|
27
|
+
}
|
package/styles/tailwind.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import "../tokens/theme-default.css";
|
|
2
|
-
@import "../tokens/theme-dark.css";
|
|
3
|
-
@import "tailwindcss";
|
|
1
|
+
@import "../tokens/theme-default.css";
|
|
2
|
+
@import "../tokens/theme-dark.css";
|
|
3
|
+
@import "tailwindcss";
|
package/tokens/theme-dark.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.cxs-theme-dark {
|
|
2
|
-
color-scheme: dark;
|
|
3
|
-
--cxs-color-primary: #22c55e;
|
|
4
|
-
--cxs-color-primary-hover: #16a34a;
|
|
5
|
-
--cxs-color-primary-ghost: rgba(34, 197, 94, 0.16);
|
|
6
|
-
--cxs-color-on-primary: #0b0f0e;
|
|
7
|
-
--cxs-color-surface: #0b0f0e;
|
|
8
|
-
--cxs-color-surface-hover: #111827;
|
|
9
|
-
--cxs-color-on-surface: #e2e8f0;
|
|
10
|
-
--cxs-color-on-surface-muted: #94a3b8;
|
|
11
|
-
--cxs-color-border: #1f2937;
|
|
12
|
-
--cxs-color-danger: #f87171;
|
|
13
|
-
--cxs-color-focus: #f59e0b;
|
|
14
|
-
--cxs-radius-md: 8px;
|
|
15
|
-
--cxs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
16
|
-
}
|
|
1
|
+
.cxs-theme-dark {
|
|
2
|
+
color-scheme: dark;
|
|
3
|
+
--cxs-color-primary: #22c55e;
|
|
4
|
+
--cxs-color-primary-hover: #16a34a;
|
|
5
|
+
--cxs-color-primary-ghost: rgba(34, 197, 94, 0.16);
|
|
6
|
+
--cxs-color-on-primary: #0b0f0e;
|
|
7
|
+
--cxs-color-surface: #0b0f0e;
|
|
8
|
+
--cxs-color-surface-hover: #111827;
|
|
9
|
+
--cxs-color-on-surface: #e2e8f0;
|
|
10
|
+
--cxs-color-on-surface-muted: #94a3b8;
|
|
11
|
+
--cxs-color-border: #1f2937;
|
|
12
|
+
--cxs-color-danger: #f87171;
|
|
13
|
+
--cxs-color-focus: #f59e0b;
|
|
14
|
+
--cxs-radius-md: 8px;
|
|
15
|
+
--cxs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
16
|
+
}
|
package/tokens/theme-default.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--cxs-color-primary: #1f7a4a;
|
|
3
|
-
--cxs-color-primary-hover: #17613a;
|
|
4
|
-
--cxs-color-primary-ghost: rgba(31, 122, 74, 0.12);
|
|
5
|
-
--cxs-color-on-primary: #ffffff;
|
|
6
|
-
--cxs-color-surface: #ffffff;
|
|
7
|
-
--cxs-color-surface-hover: #f6f8fa;
|
|
8
|
-
--cxs-color-on-surface: #0f172a;
|
|
9
|
-
--cxs-color-on-surface-muted: #64748b;
|
|
10
|
-
--cxs-color-border: #d0d7de;
|
|
11
|
-
--cxs-color-danger: #dc2626;
|
|
12
|
-
--cxs-color-focus: #f59e0b;
|
|
13
|
-
--cxs-radius-md: 8px;
|
|
14
|
-
--cxs-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.16);
|
|
15
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--cxs-color-primary: #1f7a4a;
|
|
3
|
+
--cxs-color-primary-hover: #17613a;
|
|
4
|
+
--cxs-color-primary-ghost: rgba(31, 122, 74, 0.12);
|
|
5
|
+
--cxs-color-on-primary: #ffffff;
|
|
6
|
+
--cxs-color-surface: #ffffff;
|
|
7
|
+
--cxs-color-surface-hover: #f6f8fa;
|
|
8
|
+
--cxs-color-on-surface: #0f172a;
|
|
9
|
+
--cxs-color-on-surface-muted: #64748b;
|
|
10
|
+
--cxs-color-border: #d0d7de;
|
|
11
|
+
--cxs-color-danger: #dc2626;
|
|
12
|
+
--cxs-color-focus: #f59e0b;
|
|
13
|
+
--cxs-radius-md: 8px;
|
|
14
|
+
--cxs-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.16);
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, ElementRef, OnChanges, AfterViewInit, OnDestroy, SimpleChanges, TemplateRef, AfterContentInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { EventEmitter, ElementRef, OnChanges, AfterViewInit, OnDestroy, SimpleChanges, TemplateRef, AfterContentInit, ChangeDetectorRef, Renderer2 } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
declare class CerxosUi {
|
|
@@ -891,6 +891,7 @@ type CxsToastPosition = 'bottom-right' | 'bottom' | 'bottom-left' | 'top-right'
|
|
|
891
891
|
type CxsToastMaxWidth = 'sm' | 'md' | 'lg' | 'xl' | 'none';
|
|
892
892
|
declare class CxsToastComponent implements OnChanges, OnDestroy {
|
|
893
893
|
private readonly hostClass;
|
|
894
|
+
private readonly changeDetectorRef;
|
|
894
895
|
open: boolean;
|
|
895
896
|
title?: string;
|
|
896
897
|
message?: string;
|
|
@@ -902,11 +903,15 @@ declare class CxsToastComponent implements OnChanges, OnDestroy {
|
|
|
902
903
|
maxWidth: CxsToastMaxWidth;
|
|
903
904
|
openChange: EventEmitter<boolean>;
|
|
904
905
|
dismissed: EventEmitter<CxsToastCloseReason>;
|
|
906
|
+
rendered: boolean;
|
|
907
|
+
exiting: boolean;
|
|
905
908
|
private timeoutId;
|
|
906
|
-
|
|
909
|
+
private exitTimeoutId;
|
|
910
|
+
constructor(hostClass: string | null, changeDetectorRef: ChangeDetectorRef);
|
|
907
911
|
ngOnChanges(changes: SimpleChanges): void;
|
|
908
912
|
ngOnDestroy(): void;
|
|
909
913
|
get hostClassName(): string;
|
|
914
|
+
get positionAttribute(): CxsToastPosition;
|
|
910
915
|
get toastClass(): string;
|
|
911
916
|
get titleClass(): string;
|
|
912
917
|
get messageClass(): string;
|
|
@@ -916,9 +921,12 @@ declare class CxsToastComponent implements OnChanges, OnDestroy {
|
|
|
916
921
|
get ariaLive(): 'polite' | 'assertive';
|
|
917
922
|
get ariaLabelValue(): string | null;
|
|
918
923
|
requestClose(reason: CxsToastCloseReason): void;
|
|
924
|
+
private showToast;
|
|
925
|
+
private startExitAnimation;
|
|
919
926
|
private resetTimer;
|
|
920
927
|
private clearTimer;
|
|
921
|
-
|
|
928
|
+
private clearExitTimer;
|
|
929
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CxsToastComponent, [{ attribute: "class"; }, null]>;
|
|
922
930
|
static ɵcmp: i0.ɵɵComponentDeclaration<CxsToastComponent, "cxs-toast", never, { "open": { "alias": "open"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "position": { "alias": "position"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, { "openChange": "openChange"; "dismissed": "dismissed"; }, never, ["*", "[cxsToastAction]"], true, never>;
|
|
923
931
|
}
|
|
924
932
|
|