@omnia/fx-models 8.0.302-dev → 8.0.303-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,12 +7,8 @@ export interface HttpInterceptOptions {
7
7
  }
8
8
  export interface HttpConfig {
9
9
  baseUrl?: string;
10
- headers?: {
11
- [key: string]: string;
12
- };
13
- query?: {
14
- [key: string]: string;
15
- };
10
+ headers?: Record<string, string>;
11
+ query?: Record<string, string>;
16
12
  cache?: HttpCacheOptions;
17
13
  interceptors?: HttpInterceptOptions;
18
14
  abortable?: boolean;
@@ -24,6 +20,7 @@ export interface HttpResponse<TData> {
24
20
  status: Number;
25
21
  statusText: String;
26
22
  ok: Boolean;
23
+ headers: Record<string, string>;
27
24
  }
28
25
  export interface ApiResponse<T> {
29
26
  data: T;
@@ -28,7 +28,7 @@ export interface ChromeBlueprints extends Blueprints, BlueprintsReference {
28
28
  variant2?: ChromeBlueprint;
29
29
  variant3?: ChromeBlueprint;
30
30
  }
31
- export interface VariantBlueprints<T> extends Blueprints, BlueprintsReference {
31
+ export interface VariantBlueprints<T> extends Blueprints {
32
32
  variant1?: T;
33
33
  variant2?: T;
34
34
  variant3?: T;
@@ -129,15 +129,7 @@ export interface ButtonBlueprints extends Blueprints {
129
129
  warn?: ButtonBlueprint;
130
130
  link?: ButtonBlueprint;
131
131
  close?: ButtonBlueprint;
132
- variant1?: ButtonBlueprint;
133
- variant2?: ButtonBlueprint;
134
- variant3?: ButtonBlueprint;
135
- variant4?: ButtonBlueprint;
136
- variant5?: ButtonBlueprint;
137
- variant6?: ButtonBlueprint;
138
- variant7?: ButtonBlueprint;
139
- variant8?: ButtonBlueprint;
140
- };
132
+ } & VariantBlueprints<ButtonBlueprint>;
141
133
  icon?: {
142
134
  primary?: ButtonBlueprint;
143
135
  basic?: ButtonBlueprint;
@@ -145,15 +137,7 @@ export interface ButtonBlueprints extends Blueprints {
145
137
  warn?: ButtonBlueprint;
146
138
  link?: ButtonBlueprint;
147
139
  close?: ButtonBlueprint;
148
- variant1?: ButtonBlueprint;
149
- variant2?: ButtonBlueprint;
150
- variant3?: ButtonBlueprint;
151
- variant4?: ButtonBlueprint;
152
- variant5?: ButtonBlueprint;
153
- variant6?: ButtonBlueprint;
154
- variant7?: ButtonBlueprint;
155
- variant8?: ButtonBlueprint;
156
- };
140
+ } & VariantBlueprints<ButtonBlueprint>;
157
141
  }
158
142
  export interface TabsBlueprints extends Blueprints, VariantBlueprints<TabsBlueprint> {
159
143
  primary?: TabsBlueprint;
@@ -1,6 +1,7 @@
1
1
  import { guid } from "../Guid";
2
2
  import { FillDefinition } from "./ThemeDefinition";
3
3
  import { ThemeBase } from "./ThemeBase";
4
+ import { VariantBlueprints } from "./Blueprints";
4
5
  export interface TypographyFontDefinition extends ThemeBase {
5
6
  family: string;
6
7
  cdn?: string;
@@ -9,17 +10,9 @@ export interface TypographyFontDefinition extends ThemeBase {
9
10
  export interface TypographyBlueprint {
10
11
  name: string;
11
12
  font?: TypographyFontRef;
12
- fills?: {
13
- variant1?: FillDefinition;
14
- variant2?: FillDefinition;
15
- variant3?: FillDefinition;
16
- variant4?: FillDefinition;
17
- variant5?: FillDefinition;
18
- variant6?: FillDefinition;
19
- variant7?: FillDefinition;
20
- variant8?: FillDefinition;
21
- };
22
- title: {
13
+ fills?: VariantBlueprints<FillDefinition>;
14
+ variants?: VariantBlueprints<TypographyDefinition>;
15
+ title?: {
23
16
  xl: TypographyDefinition;
24
17
  l: TypographyDefinition;
25
18
  m: TypographyDefinition;
@@ -27,7 +20,7 @@ export interface TypographyBlueprint {
27
20
  xs: TypographyDefinition;
28
21
  font?: TypographyFontRef;
29
22
  };
30
- text: {
23
+ text?: {
31
24
  xl?: TypographyDefinition;
32
25
  l: TypographyDefinition;
33
26
  m: TypographyDefinition;
@@ -35,7 +28,7 @@ export interface TypographyBlueprint {
35
28
  xs: TypographyDefinition;
36
29
  font?: TypographyFontRef;
37
30
  };
38
- navigation: {
31
+ navigation?: {
39
32
  xl?: TypographyDefinition;
40
33
  l: TypographyDefinition;
41
34
  m: TypographyDefinition;
@@ -43,7 +36,7 @@ export interface TypographyBlueprint {
43
36
  xs?: TypographyDefinition;
44
37
  font?: TypographyFontRef;
45
38
  };
46
- link: {
39
+ link?: {
47
40
  xl?: TypographyDefinition;
48
41
  l?: TypographyDefinition;
49
42
  m: TypographyDefinition;
@@ -51,17 +44,6 @@ export interface TypographyBlueprint {
51
44
  xs?: TypographyDefinition;
52
45
  font?: TypographyFontRef;
53
46
  };
54
- variants?: {
55
- variant1?: TypographyDefinition;
56
- variant2?: TypographyDefinition;
57
- variant3?: TypographyDefinition;
58
- variant4?: TypographyDefinition;
59
- variant5?: TypographyDefinition;
60
- variant6?: TypographyDefinition;
61
- variant7?: TypographyDefinition;
62
- variant8?: TypographyDefinition;
63
- font?: TypographyFontRef;
64
- };
65
47
  }
66
48
  export interface TypographyDefinition {
67
49
  decoration?: string;
@@ -85,7 +67,8 @@ export declare enum TypographyTypes {
85
67
  title = "title",
86
68
  text = "text",
87
69
  navigation = "navigation",
88
- variants = "variants"
70
+ variants = "variants",
71
+ fills = "fills"
89
72
  }
90
73
  export interface ThemedTypographyValue {
91
74
  type: TypographyType;
@@ -7,6 +7,7 @@ var TypographyTypes;
7
7
  TypographyTypes["text"] = "text";
8
8
  TypographyTypes["navigation"] = "navigation";
9
9
  TypographyTypes["variants"] = "variants";
10
+ TypographyTypes["fills"] = "fills";
10
11
  })(TypographyTypes || (exports.TypographyTypes = TypographyTypes = {}));
11
12
  var TypographySizes;
12
13
  (function (TypographySizes) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.302-dev",
4
+ "version": "8.0.303-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"