valtech-components 2.0.624 → 2.0.625

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.
@@ -0,0 +1,59 @@
1
+ import { AuthBackgroundMetadata } from './types';
2
+ import * as i0 from "@angular/core";
3
+ interface WaveData {
4
+ id: number;
5
+ path: string;
6
+ color: string;
7
+ thickness: number;
8
+ opacity: number;
9
+ duration: number;
10
+ delay: number;
11
+ }
12
+ /**
13
+ * val-auth-background
14
+ *
15
+ * A visually striking background component for authentication pages.
16
+ * Features animated wave patterns, grain texture, and glassmorphism effects.
17
+ * Supports dark mode automatically via CSS variables.
18
+ *
19
+ * @example Basic usage
20
+ * ```html
21
+ * <val-auth-background>
22
+ * <div class="my-content">
23
+ * <h1>Welcome</h1>
24
+ * <val-login [props]="loginProps" />
25
+ * </div>
26
+ * </val-auth-background>
27
+ * ```
28
+ *
29
+ * @example Custom configuration
30
+ * ```html
31
+ * <val-auth-background [props]="{
32
+ * waveCount: 30,
33
+ * showGrain: false,
34
+ * minHeight: '100vh'
35
+ * }">
36
+ * <div class="content">...</div>
37
+ * </val-auth-background>
38
+ * ```
39
+ */
40
+ export declare class AuthBackgroundComponent {
41
+ private _props;
42
+ set props(value: AuthBackgroundMetadata);
43
+ get props(): AuthBackgroundMetadata;
44
+ private defaultColors;
45
+ private wavesSignal;
46
+ config: import("@angular/core").Signal<{
47
+ waveCount: number;
48
+ waveColors: string[];
49
+ showGrain: boolean;
50
+ showGlass: boolean;
51
+ minHeight: string;
52
+ }>;
53
+ waves: import("@angular/core").Signal<WaveData[]>;
54
+ constructor();
55
+ private regenerateWaves;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthBackgroundComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthBackgroundComponent, "val-auth-background", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, ["*"], true, never>;
58
+ }
59
+ export {};
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Configuration for the auth-background component.
3
+ */
4
+ export interface AuthBackgroundMetadata {
5
+ /**
6
+ * Number of animated wave lines.
7
+ * @default 45
8
+ */
9
+ waveCount?: number;
10
+ /**
11
+ * Array of colors for waves. Picks randomly from this palette.
12
+ * @default ['#e0e0e0', '#bdbdbd', '#9e9e9e', '#757575', '#616161', '#424242']
13
+ */
14
+ waveColors?: string[];
15
+ /**
16
+ * Show grain texture overlay.
17
+ * @default true
18
+ */
19
+ showGrain?: boolean;
20
+ /**
21
+ * Show glassmorphism layer.
22
+ * @default true
23
+ */
24
+ showGlass?: boolean;
25
+ /**
26
+ * Minimum height of the background container.
27
+ * @default 'calc(100vh - 120px)'
28
+ */
29
+ minHeight?: string;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.624",
3
+ "version": "2.0.625",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -216,6 +216,8 @@ export * from './lib/components/templates/page-wrapper/page-wrapper.component';
216
216
  export * from './lib/components/templates/page-wrapper/types';
217
217
  export * from './lib/components/templates/maintenance-page/maintenance-page.component';
218
218
  export * from './lib/components/templates/maintenance-page/types';
219
+ export * from './lib/components/templates/auth-background/auth-background.component';
220
+ export * from './lib/components/templates/auth-background/types';
219
221
  export * from './lib/services/download.service';
220
222
  export * from './lib/services/icons.service';
221
223
  export * from './lib/services/in-app-browser.service';