@omnia/velcron 8.0.112-dev → 8.0.113-dev
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/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.d.ts +2 -11
- package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +3 -7
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +16 -3
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { GuidValue } from "../Guid";
|
|
2
2
|
import { VelcronAppDefinition } from "../velcron";
|
|
3
|
-
import { BoxDimensions } from "./ComponentDefinitions";
|
|
4
3
|
import { SpacingSettings } from "./SpacingSetting";
|
|
5
|
-
import {
|
|
4
|
+
import { BackgroundDefinition } from "./ThemeDefinitionV2";
|
|
6
5
|
export interface ChromeDefinition {
|
|
7
6
|
id: GuidValue;
|
|
8
7
|
name: string;
|
|
@@ -11,15 +10,7 @@ export interface ChromeDefinition {
|
|
|
11
10
|
definition?: VelcronAppDefinition;
|
|
12
11
|
};
|
|
13
12
|
styles: {
|
|
14
|
-
background?:
|
|
15
|
-
color?: ColorValue;
|
|
16
|
-
filled?: boolean;
|
|
17
|
-
opacity?: number;
|
|
18
|
-
};
|
|
13
|
+
background?: BackgroundDefinition;
|
|
19
14
|
spacing?: SpacingSettings;
|
|
20
|
-
elevation?: number;
|
|
21
|
-
borderRadius?: BoxDimensions;
|
|
22
|
-
border?: BoxDimensions;
|
|
23
|
-
borderColor?: ColorValue;
|
|
24
15
|
};
|
|
25
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorValue } from "./ThemeDefinitionV2";
|
|
1
|
+
import { BackgroundDefinition, ColorValue } from "./ThemeDefinitionV2";
|
|
2
2
|
import { ChromeDefinition } from "./ChromeDefinition";
|
|
3
3
|
import { SpacingDefinition, SpacingSettings } from "./SpacingSetting";
|
|
4
4
|
import { TypographyDefinition } from "./TypographyDefinition";
|
|
@@ -78,11 +78,7 @@ export interface ButtonBlueprint extends BlueprintItemDefinition {
|
|
|
78
78
|
density?: "compact" | "comfortable";
|
|
79
79
|
size?: "x-small" | "small" | "large" | "x-large";
|
|
80
80
|
padding?: SpacingSettings;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
background?: ColorValue;
|
|
81
|
+
background?: BackgroundDefinition;
|
|
82
|
+
alterCase?: boolean;
|
|
84
83
|
textColor?: ColorValue;
|
|
85
|
-
elevation?: number;
|
|
86
|
-
border?: number;
|
|
87
|
-
borderColor?: ColorValue;
|
|
88
84
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Guid } from "../Guid";
|
|
2
|
-
import { BlueprintDefinition } from "./ComponentDefinitions";
|
|
2
|
+
import { BlueprintDefinition, BoxDimensions } from "./ComponentDefinitions";
|
|
3
3
|
export interface ColorTypeResult<resultType> {
|
|
4
4
|
base: resultType;
|
|
5
5
|
baseTone: resultType;
|
|
@@ -79,14 +79,27 @@ export interface ColorGradientValue {
|
|
|
79
79
|
color: ColorValue;
|
|
80
80
|
stop?: number;
|
|
81
81
|
}
|
|
82
|
+
/**Background */
|
|
82
83
|
export interface BackgroundDefinition {
|
|
84
|
+
filled?: boolean;
|
|
85
|
+
fill?: FillDefinition;
|
|
86
|
+
border?: BorderStylingDefinition;
|
|
87
|
+
elevation?: number;
|
|
88
|
+
}
|
|
89
|
+
export interface FillDefinition {
|
|
83
90
|
colors: Array<ColorValue | ColorGradientValue>;
|
|
84
91
|
acrylic?: boolean;
|
|
92
|
+
opacity?: number;
|
|
85
93
|
}
|
|
86
|
-
export interface
|
|
94
|
+
export interface LinearGradientFillDefinition extends FillDefinition {
|
|
87
95
|
degrees: number;
|
|
88
96
|
}
|
|
89
|
-
export interface
|
|
97
|
+
export interface RadialGradientFillDefinition extends FillDefinition {
|
|
90
98
|
shape: RadialGradientShapes;
|
|
91
99
|
position?: number;
|
|
92
100
|
}
|
|
101
|
+
export interface BorderStylingDefinition {
|
|
102
|
+
radius?: BoxDimensions;
|
|
103
|
+
width?: BoxDimensions;
|
|
104
|
+
fill?: FillDefinition;
|
|
105
|
+
}
|