@omnia/fx-models 8.0.387-dev → 8.0.388-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/theme/Blueprints.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theme/Typography.d.ts +35 -35
- package/internal-do-not-import-from-here/shared/models/theme/Typography.js +26 -26
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +2 -2
- package/internal-do-not-import-from-here/velcron/core/models/VelcronState.d.ts +3 -3
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { BackgroundDefinition, BlueprintsReference, ColorValue, FillDefinitionValue } from "./ThemeDefinition";
|
2
2
|
import { SpacingDefinition, Spacing, SpacingValue } from "./Spacing";
|
3
|
-
import { TypographyFontDefinition,
|
3
|
+
import { TypographyFontDefinition, TextStyleValue } from "./Typography";
|
4
4
|
import { ThemeBase } from "./ThemeBase";
|
5
5
|
import { VelcronRendererResolverReference } from "../velcron";
|
6
6
|
export interface BlueprintStrategy {
|
@@ -156,7 +156,7 @@ export interface TabsBlueprint extends Blueprint {
|
|
156
156
|
}
|
157
157
|
export interface TextBlueprint extends Blueprint {
|
158
158
|
color?: FillDefinitionValue;
|
159
|
-
typography?:
|
159
|
+
typography?: TextStyleValue;
|
160
160
|
}
|
161
161
|
export interface IconBlueprint extends Blueprint {
|
162
162
|
color?: FillDefinitionValue;
|
@@ -10,49 +10,49 @@ export interface TypographyFontDefinition extends ThemeBase {
|
|
10
10
|
export interface TypographyBlueprint extends ThemeBase {
|
11
11
|
font?: TypographyFontRef;
|
12
12
|
fills?: VariantBlueprints<FillDefinition>;
|
13
|
-
variants?: VariantBlueprints<
|
13
|
+
variants?: VariantBlueprints<TextStyleDefinition>;
|
14
14
|
title?: {
|
15
|
-
xl:
|
16
|
-
l:
|
17
|
-
m:
|
18
|
-
s:
|
19
|
-
xs:
|
15
|
+
xl: TextStyleDefinition;
|
16
|
+
l: TextStyleDefinition;
|
17
|
+
m: TextStyleDefinition;
|
18
|
+
s: TextStyleDefinition;
|
19
|
+
xs: TextStyleDefinition;
|
20
20
|
font?: TypographyFontRef;
|
21
21
|
};
|
22
22
|
text?: {
|
23
|
-
xl?:
|
24
|
-
l:
|
25
|
-
m:
|
26
|
-
s:
|
27
|
-
xs:
|
23
|
+
xl?: TextStyleDefinition;
|
24
|
+
l: TextStyleDefinition;
|
25
|
+
m: TextStyleDefinition;
|
26
|
+
s: TextStyleDefinition;
|
27
|
+
xs: TextStyleDefinition;
|
28
28
|
font?: TypographyFontRef;
|
29
29
|
};
|
30
30
|
navigation?: {
|
31
|
-
xl?:
|
32
|
-
l:
|
33
|
-
m:
|
34
|
-
s?:
|
35
|
-
xs?:
|
31
|
+
xl?: TextStyleDefinition;
|
32
|
+
l: TextStyleDefinition;
|
33
|
+
m: TextStyleDefinition;
|
34
|
+
s?: TextStyleDefinition;
|
35
|
+
xs?: TextStyleDefinition;
|
36
36
|
font?: TypographyFontRef;
|
37
37
|
};
|
38
38
|
link?: {
|
39
|
-
xl?:
|
40
|
-
l?:
|
41
|
-
m:
|
42
|
-
s?:
|
43
|
-
xs?:
|
39
|
+
xl?: TextStyleDefinition;
|
40
|
+
l?: TextStyleDefinition;
|
41
|
+
m: TextStyleDefinition;
|
42
|
+
s?: TextStyleDefinition;
|
43
|
+
xs?: TextStyleDefinition;
|
44
44
|
font?: TypographyFontRef;
|
45
45
|
};
|
46
46
|
}
|
47
|
-
export interface
|
47
|
+
export interface TextStyleDefinition {
|
48
48
|
decoration?: string;
|
49
|
-
lg:
|
50
|
-
md?:
|
51
|
-
sm?:
|
49
|
+
lg: TextStyleBreakPoint;
|
50
|
+
md?: TextStyleBreakPoint;
|
51
|
+
sm?: TextStyleBreakPoint;
|
52
52
|
font?: TypographyFontRef;
|
53
53
|
name?: string;
|
54
54
|
}
|
55
|
-
export interface
|
55
|
+
export interface TextStyleBreakPoint {
|
56
56
|
weight: number;
|
57
57
|
size: number;
|
58
58
|
lineHeight: number;
|
@@ -61,21 +61,21 @@ export interface TypographyTypeBreakPoint {
|
|
61
61
|
export interface TypographyFontRef {
|
62
62
|
family: string;
|
63
63
|
}
|
64
|
-
export type
|
65
|
-
export declare enum
|
64
|
+
export type TextStyleType = keyof typeof TextStyleTypes;
|
65
|
+
export declare enum TextStyleTypes {
|
66
66
|
title = "title",
|
67
67
|
text = "text",
|
68
68
|
navigation = "navigation",
|
69
69
|
variants = "variants",
|
70
70
|
fills = "fills"
|
71
71
|
}
|
72
|
-
export interface
|
73
|
-
type:
|
74
|
-
size:
|
72
|
+
export interface ThemedTextStyleValue {
|
73
|
+
type: TextStyleType;
|
74
|
+
size: TextStyleSize;
|
75
75
|
}
|
76
|
-
export type
|
77
|
-
export type
|
78
|
-
export declare enum
|
76
|
+
export type TextStyleValue = TextStyleDefinition | ThemedTextStyleValue;
|
77
|
+
export type TextStyleSize = keyof typeof TextStyleSizes;
|
78
|
+
export declare enum TextStyleSizes {
|
79
79
|
xl = "xl",
|
80
80
|
l = "l",
|
81
81
|
m = "m",
|
@@ -91,4 +91,4 @@ export declare enum TypographySizes {
|
|
91
91
|
variant8 = "variant8"
|
92
92
|
}
|
93
93
|
/**this reflect TypographySizes for member check*/
|
94
|
-
export declare const
|
94
|
+
export declare const AvailableTextStyleSizes: string[];
|
@@ -1,29 +1,29 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
(function (
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
})(
|
12
|
-
var
|
13
|
-
(function (
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
})(
|
3
|
+
exports.AvailableTextStyleSizes = exports.TextStyleSizes = exports.TextStyleTypes = void 0;
|
4
|
+
var TextStyleTypes;
|
5
|
+
(function (TextStyleTypes) {
|
6
|
+
TextStyleTypes["title"] = "title";
|
7
|
+
TextStyleTypes["text"] = "text";
|
8
|
+
TextStyleTypes["navigation"] = "navigation";
|
9
|
+
TextStyleTypes["variants"] = "variants";
|
10
|
+
TextStyleTypes["fills"] = "fills";
|
11
|
+
})(TextStyleTypes || (exports.TextStyleTypes = TextStyleTypes = {}));
|
12
|
+
var TextStyleSizes;
|
13
|
+
(function (TextStyleSizes) {
|
14
|
+
TextStyleSizes["xl"] = "xl";
|
15
|
+
TextStyleSizes["l"] = "l";
|
16
|
+
TextStyleSizes["m"] = "m";
|
17
|
+
TextStyleSizes["s"] = "s";
|
18
|
+
TextStyleSizes["xs"] = "xs";
|
19
|
+
TextStyleSizes["variant1"] = "variant1";
|
20
|
+
TextStyleSizes["variant2"] = "variant2";
|
21
|
+
TextStyleSizes["variant3"] = "variant3";
|
22
|
+
TextStyleSizes["variant4"] = "variant4";
|
23
|
+
TextStyleSizes["variant5"] = "variant5";
|
24
|
+
TextStyleSizes["variant6"] = "variant6";
|
25
|
+
TextStyleSizes["variant7"] = "variant7";
|
26
|
+
TextStyleSizes["variant8"] = "variant8";
|
27
|
+
})(TextStyleSizes || (exports.TextStyleSizes = TextStyleSizes = {}));
|
28
28
|
/**this reflect TypographySizes for member check*/
|
29
|
-
exports.
|
29
|
+
exports.AvailableTextStyleSizes = ["xl", "l", "m", "s", "xs", "variant1", "variant2", "variant3", "variant4", "variant5", "variant6", "variant7", "variant8"];
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BuiltInPropertyEditorType, guid,
|
1
|
+
import { BuiltInPropertyEditorType, guid, TextStyleType, VelcronEditor } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
export interface ResolvedPropertyEditor {
|
3
3
|
editor: VelcronEditor;
|
4
4
|
}
|
@@ -28,7 +28,7 @@ export interface VelcronSelectEditorSettings {
|
|
28
28
|
}>;
|
29
29
|
}
|
30
30
|
export interface VelcronTextEditorSettings {
|
31
|
-
type:
|
31
|
+
type: TextStyleType;
|
32
32
|
placeholder: string;
|
33
33
|
}
|
34
34
|
export interface VelcronNumberEditorSettings {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BackgroundDefinition, ContainerFillBlueprint, BlueprintVariant, TextBlueprint,
|
1
|
+
import { BackgroundDefinition, ContainerFillBlueprint, BlueprintVariant, TextBlueprint, TextStyleSize, TextStyleType, VelcronSpacing } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { VelcronImageRatios } from "./VelcronDefinitions";
|
3
3
|
export interface VelcronState {
|
4
4
|
states?: {
|
@@ -43,8 +43,8 @@ export interface VelcronTextState {
|
|
43
43
|
typography?: VelcronTypographyState;
|
44
44
|
}
|
45
45
|
export interface VelcronTypographyState {
|
46
|
-
type?:
|
47
|
-
size?:
|
46
|
+
type?: TextStyleType;
|
47
|
+
size?: TextStyleSize;
|
48
48
|
toned?: boolean;
|
49
49
|
}
|
50
50
|
export interface VelcronContentState {
|