valtech-components 2.0.731 → 2.0.733
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/esm2022/lib/components/atoms/glow/glow.component.mjs +95 -0
- package/esm2022/lib/components/atoms/glow/types.mjs +2 -0
- package/esm2022/lib/components/organisms/login/login.component.mjs +3 -3
- package/esm2022/lib/services/preferences/preferences.service.mjs +4 -2
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +101 -6
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/glow/glow.component.d.ts +42 -0
- package/lib/components/atoms/glow/types.d.ts +40 -0
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { GlowIntensity, GlowMetadata, GlowPosition, GlowShape, GlowSize } from './types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* `val-glow` — wrapper that paints a colored radial or linear gradient behind its
|
|
5
|
+
* projected content. Uses Ionic color tokens, so it respects light/dark theme.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <val-glow [props]="{ color: 'primary', position: 'top', size: 'large' }">
|
|
9
|
+
* <h1>Hero title</h1>
|
|
10
|
+
* <p>Body copy...</p>
|
|
11
|
+
* </val-glow>
|
|
12
|
+
*
|
|
13
|
+
* @example Two-tone radial
|
|
14
|
+
* <val-glow [props]="{ color: 'primary', secondaryColor: 'tertiary', position: 'center' }">
|
|
15
|
+
* ...
|
|
16
|
+
* </val-glow>
|
|
17
|
+
*
|
|
18
|
+
* @example Linear sweep from top
|
|
19
|
+
* <val-glow [props]="{ color: 'success', shape: 'linear', position: 'top', intensity: 'strong' }">
|
|
20
|
+
* ...
|
|
21
|
+
* </val-glow>
|
|
22
|
+
*/
|
|
23
|
+
export declare class GlowComponent {
|
|
24
|
+
props: import("@angular/core").InputSignal<GlowMetadata>;
|
|
25
|
+
protected color: import("@angular/core").Signal<import("@ionic/core").Color>;
|
|
26
|
+
protected secondaryColor: import("@angular/core").Signal<import("@ionic/core").Color>;
|
|
27
|
+
protected hasSecondary: import("@angular/core").Signal<boolean>;
|
|
28
|
+
protected position: import("@angular/core").Signal<GlowPosition>;
|
|
29
|
+
protected size: import("@angular/core").Signal<GlowSize>;
|
|
30
|
+
protected intensity: import("@angular/core").Signal<GlowIntensity>;
|
|
31
|
+
protected shape: import("@angular/core").Signal<GlowShape>;
|
|
32
|
+
protected animated: import("@angular/core").Signal<boolean>;
|
|
33
|
+
protected blendMode: import("@angular/core").Signal<"normal" | "multiply" | "screen" | "overlay" | "soft-light" | "hard-light" | "color-dodge">;
|
|
34
|
+
protected colorRgbVar: import("@angular/core").Signal<string>;
|
|
35
|
+
protected secondaryColorRgbVar: import("@angular/core").Signal<string>;
|
|
36
|
+
protected positionCss: import("@angular/core").Signal<string>;
|
|
37
|
+
protected sizeCss: import("@angular/core").Signal<string>;
|
|
38
|
+
protected intensityValue: import("@angular/core").Signal<string>;
|
|
39
|
+
protected angleCss: import("@angular/core").Signal<string>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlowComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GlowComponent, "val-glow", never, { "props": { "alias": "props"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Color } from '@ionic/core';
|
|
2
|
+
/**
|
|
3
|
+
* Origin point of the glow.
|
|
4
|
+
* Maps to a CSS background-position value.
|
|
5
|
+
*/
|
|
6
|
+
export type GlowPosition = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
7
|
+
/** Radius preset of the glow halo. */
|
|
8
|
+
export type GlowSize = 'small' | 'medium' | 'large' | 'xlarge';
|
|
9
|
+
/** Alpha multiplier applied to the glow color(s). */
|
|
10
|
+
export type GlowIntensity = 'subtle' | 'medium' | 'strong';
|
|
11
|
+
/**
|
|
12
|
+
* Gradient shape:
|
|
13
|
+
* - `radial` — circular halo at `position` (default; matches the showcase / AWS look)
|
|
14
|
+
* - `linear` — directional sweep from `position` outwards (good for full-band backdrops)
|
|
15
|
+
*/
|
|
16
|
+
export type GlowShape = 'radial' | 'linear';
|
|
17
|
+
/**
|
|
18
|
+
* Configuration for `val-glow`.
|
|
19
|
+
*/
|
|
20
|
+
export interface GlowMetadata {
|
|
21
|
+
/** Primary Ionic color of the glow. Default `'primary'`. */
|
|
22
|
+
color?: Color;
|
|
23
|
+
/**
|
|
24
|
+
* Optional second Ionic color for two-tone gradients. When set, the gradient
|
|
25
|
+
* blends `color` → `secondaryColor` → transparent.
|
|
26
|
+
*/
|
|
27
|
+
secondaryColor?: Color;
|
|
28
|
+
/** Where the halo originates. Default `'center'`. */
|
|
29
|
+
position?: GlowPosition;
|
|
30
|
+
/** Halo radius preset. Default `'large'`. */
|
|
31
|
+
size?: GlowSize;
|
|
32
|
+
/** Opacity preset of the color stops. Default `'medium'`. */
|
|
33
|
+
intensity?: GlowIntensity;
|
|
34
|
+
/** Gradient shape. Default `'radial'`. */
|
|
35
|
+
shape?: GlowShape;
|
|
36
|
+
/** Subtle drifting animation. Default `false`. */
|
|
37
|
+
animated?: boolean;
|
|
38
|
+
/** Custom CSS background-blend-mode for the glow layer. Optional advanced tweak. */
|
|
39
|
+
blendMode?: 'normal' | 'multiply' | 'screen' | 'overlay' | 'soft-light' | 'hard-light' | 'color-dodge';
|
|
40
|
+
}
|
|
@@ -39,11 +39,11 @@ export declare class RightsFooterComponent {
|
|
|
39
39
|
/**
|
|
40
40
|
* Computed helper for align prop in template.
|
|
41
41
|
*/
|
|
42
|
-
propsAlign: import("@angular/core").Signal<"
|
|
42
|
+
propsAlign: import("@angular/core").Signal<"left" | "center" | "right">;
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"
|
|
46
|
+
propsColor: import("@angular/core").Signal<"light" | "dark" | "medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -49,7 +49,7 @@ export declare class FeaturesListComponent {
|
|
|
49
49
|
iconSize: number;
|
|
50
50
|
mode: "horizontal" | "vertical";
|
|
51
51
|
gap: "small" | "medium" | "large";
|
|
52
|
-
alignment: "
|
|
52
|
+
alignment: "center" | "start";
|
|
53
53
|
}>;
|
|
54
54
|
/** Resolved icon color (handles Ionic colors and CSS colors) */
|
|
55
55
|
iconColorStyle: import("@angular/core").Signal<string>;
|
|
@@ -57,7 +57,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
57
57
|
linkConfig?: import("valtech-components").LinkProcessorConfig;
|
|
58
58
|
allowPartialBold?: boolean;
|
|
59
59
|
authorColor?: import("@ionic/core").Color;
|
|
60
|
-
alignment?: "
|
|
60
|
+
alignment?: "left" | "center" | "right";
|
|
61
61
|
showQuoteMark?: boolean;
|
|
62
62
|
};
|
|
63
63
|
getHighlightTextProps(element: ArticleElement): {
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export * from './lib/components/atoms/avatar/avatar.component';
|
|
|
3
3
|
export * from './lib/components/atoms/avatar/types';
|
|
4
4
|
export * from './lib/components/atoms/box/box.component';
|
|
5
5
|
export * from './lib/components/atoms/box/types';
|
|
6
|
+
export * from './lib/components/atoms/glow/glow.component';
|
|
7
|
+
export * from './lib/components/atoms/glow/types';
|
|
6
8
|
export * from './lib/components/atoms/container/container.component';
|
|
7
9
|
export * from './lib/components/atoms/container/types';
|
|
8
10
|
export * from './lib/components/atoms/button/button.component';
|