@omnia/fx-models 8.0.400-dev → 8.0.402-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.
@@ -7,9 +7,31 @@ export interface TypographyFontDefinition extends ThemeBase {
7
7
  cdn?: string;
8
8
  manifestId?: guid;
9
9
  }
10
+ export interface BaseScaleBreakpoint {
11
+ lg?: number;
12
+ md?: number;
13
+ sm?: number;
14
+ }
10
15
  export interface TypographyBlueprint extends ThemeBase {
11
16
  font?: TypographyFontRef;
12
17
  fills?: VariantBlueprints<FillDefinition>;
18
+ typeScale?: {
19
+ baseFontSize?: BaseScaleBreakpoint;
20
+ scale?: BaseScaleBreakpoint;
21
+ lineHeightMultiplier?: BaseScaleBreakpoint;
22
+ styles: {
23
+ s1: TextStyleDefinition;
24
+ s2: TextStyleDefinition;
25
+ s3: TextStyleDefinition;
26
+ s4: TextStyleDefinition;
27
+ s5: TextStyleDefinition;
28
+ s6: TextStyleDefinition;
29
+ s7: TextStyleDefinition;
30
+ s8: TextStyleDefinition;
31
+ s9: TextStyleDefinition;
32
+ s10: TextStyleDefinition;
33
+ };
34
+ };
13
35
  variants?: VariantBlueprints<TextStyleDefinition>;
14
36
  title?: {
15
37
  xl: TextStyleDefinition;
@@ -29,13 +51,21 @@ export interface TypographyBlueprint extends ThemeBase {
29
51
  };
30
52
  navigation?: {
31
53
  xl?: TextStyleDefinition;
32
- l: TextStyleDefinition;
54
+ l?: TextStyleDefinition;
55
+ m: TextStyleDefinition;
56
+ s?: TextStyleDefinition;
57
+ xs?: TextStyleDefinition;
58
+ font?: TypographyFontRef;
59
+ };
60
+ button?: {
61
+ xl?: TextStyleDefinition;
62
+ l?: TextStyleDefinition;
33
63
  m: TextStyleDefinition;
34
64
  s?: TextStyleDefinition;
35
65
  xs?: TextStyleDefinition;
36
66
  font?: TypographyFontRef;
37
67
  };
38
- link?: {
68
+ label?: {
39
69
  xl?: TextStyleDefinition;
40
70
  l?: TextStyleDefinition;
41
71
  m: TextStyleDefinition;
@@ -45,7 +75,10 @@ export interface TypographyBlueprint extends ThemeBase {
45
75
  };
46
76
  }
47
77
  export interface TextStyleDefinition {
78
+ scale?: number;
48
79
  decoration?: string;
80
+ uppercase?: boolean;
81
+ italic?: boolean;
49
82
  lg: TextStyleBreakPoint;
50
83
  md?: TextStyleBreakPoint;
51
84
  sm?: TextStyleBreakPoint;
@@ -53,6 +86,7 @@ export interface TextStyleDefinition {
53
86
  name?: string;
54
87
  }
55
88
  export interface TextStyleBreakPoint {
89
+ custom?: boolean;
56
90
  weight: number;
57
91
  size: number;
58
92
  lineHeight: number;
@@ -66,6 +100,7 @@ export declare enum TextStyleTypes {
66
100
  title = "title",
67
101
  text = "text",
68
102
  navigation = "navigation",
103
+ label = "label",
69
104
  variants = "variants",
70
105
  fills = "fills"
71
106
  }
@@ -6,6 +6,8 @@ var TextStyleTypes;
6
6
  TextStyleTypes["title"] = "title";
7
7
  TextStyleTypes["text"] = "text";
8
8
  TextStyleTypes["navigation"] = "navigation";
9
+ TextStyleTypes["label"] = "label";
10
+ //button = "button",
9
11
  TextStyleTypes["variants"] = "variants";
10
12
  TextStyleTypes["fills"] = "fills";
11
13
  })(TextStyleTypes || (exports.TextStyleTypes = TextStyleTypes = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.400-dev",
4
+ "version": "8.0.402-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,7 +19,9 @@
19
19
  ],
20
20
  "author": "Omnia Digital Workplace AB",
21
21
  "dependencies": {},
22
- "typings": "./index.d.ts",
22
+ "main": "index.js",
23
+ "module": "index.js",
24
+ "types": "./index.d.ts",
23
25
  "bugs": {
24
26
  "url": "https://github.com/omniaintranet/OmniaFx/issues"
25
27
  },