@omnia/fx-models 8.0.301-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;
@@ -20,18 +20,23 @@ export interface BoxDimensions extends Spacing {
20
20
  export interface Blueprints {
21
21
  name?: string;
22
22
  }
23
- export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3" | "variant4";
23
+ export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3" | "variant4" | "variant5" | "variant6" | "variant7" | "variant8";
24
+ export declare const BlueprintVariants: Array<BlueprintVariant>;
24
25
  export interface ChromeBlueprints extends Blueprints, BlueprintsReference {
25
26
  primary: ChromeBlueprint;
26
27
  variant1?: ChromeBlueprint;
27
28
  variant2?: ChromeBlueprint;
28
29
  variant3?: ChromeBlueprint;
29
30
  }
30
- export interface VariantBlueprints<T> extends Blueprints, BlueprintsReference {
31
+ export interface VariantBlueprints<T> extends Blueprints {
31
32
  variant1?: T;
32
33
  variant2?: T;
33
34
  variant3?: T;
34
35
  variant4?: T;
36
+ variant5?: T;
37
+ variant6?: T;
38
+ variant7?: T;
39
+ variant8?: T;
35
40
  }
36
41
  export interface HeaderBlueprint extends Blueprint {
37
42
  viewTemplate?: VelcronRendererResolverReference;
@@ -89,6 +94,7 @@ export declare enum VelcronBlueprintDefintionTypes {
89
94
  button = "button"
90
95
  }
91
96
  export interface Blueprint {
97
+ name?: string;
92
98
  }
93
99
  export interface SearchBoxBlueprint extends Blueprint {
94
100
  borderRadius?: BoxDimensions;
@@ -123,15 +129,7 @@ export interface ButtonBlueprints extends Blueprints {
123
129
  warn?: ButtonBlueprint;
124
130
  link?: ButtonBlueprint;
125
131
  close?: ButtonBlueprint;
126
- variant1?: ButtonBlueprint;
127
- variant2?: ButtonBlueprint;
128
- variant3?: ButtonBlueprint;
129
- variant4?: ButtonBlueprint;
130
- variant5?: ButtonBlueprint;
131
- variant6?: ButtonBlueprint;
132
- variant7?: ButtonBlueprint;
133
- variant8?: ButtonBlueprint;
134
- };
132
+ } & VariantBlueprints<ButtonBlueprint>;
135
133
  icon?: {
136
134
  primary?: ButtonBlueprint;
137
135
  basic?: ButtonBlueprint;
@@ -139,21 +137,10 @@ export interface ButtonBlueprints extends Blueprints {
139
137
  warn?: ButtonBlueprint;
140
138
  link?: ButtonBlueprint;
141
139
  close?: ButtonBlueprint;
142
- variant1?: ButtonBlueprint;
143
- variant2?: ButtonBlueprint;
144
- variant3?: ButtonBlueprint;
145
- variant4?: ButtonBlueprint;
146
- variant5?: ButtonBlueprint;
147
- variant6?: ButtonBlueprint;
148
- variant7?: ButtonBlueprint;
149
- variant8?: ButtonBlueprint;
150
- };
140
+ } & VariantBlueprints<ButtonBlueprint>;
151
141
  }
152
- export interface TabsBlueprints extends Blueprints {
142
+ export interface TabsBlueprints extends Blueprints, VariantBlueprints<TabsBlueprint> {
153
143
  primary?: TabsBlueprint;
154
- variant1?: TabsBlueprint;
155
- variant2?: TabsBlueprint;
156
- variant3?: TabsBlueprint;
157
144
  }
158
145
  export interface TabsBlueprint extends Blueprint {
159
146
  background?: BackgroundDefinition;
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VelcronBlueprintDefintionTypes = exports.WebBlueprintItemDefintionTypes = void 0;
3
+ exports.VelcronBlueprintDefintionTypes = exports.WebBlueprintItemDefintionTypes = exports.BlueprintVariants = void 0;
4
+ exports.BlueprintVariants = [
5
+ "variant1",
6
+ "variant2",
7
+ "variant3",
8
+ "variant4",
9
+ "variant5",
10
+ "variant6",
11
+ "variant7",
12
+ "variant8"
13
+ ];
4
14
  var WebBlueprintItemDefintionTypes;
5
15
  (function (WebBlueprintItemDefintionTypes) {
6
16
  WebBlueprintItemDefintionTypes["button"] = "button";
@@ -1,6 +1,6 @@
1
1
  import { guid } from "../Guid";
2
2
  import { Id } from "../Id";
3
- import { BoxDimensions, ButtonBlueprint, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
3
+ import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
4
4
  import { Color } from "./Color";
5
5
  import { LegacyBorderDefinition, LegacyThemeDefinition } from "./LegacyThemeDefinition";
6
6
  import { ThemeBase } from "./ThemeBase";
@@ -143,8 +143,7 @@ export interface FillDefinition {
143
143
  colors: Array<ColorValue | ColorGradientValue>;
144
144
  acrylic?: boolean;
145
145
  }
146
- export type FillVariant = "variant1" | "variant2" | "variant3" | "variant4";
147
- export type FillDefinitionValue = FillVariant | FillDefinition | ColorValue;
146
+ export type FillDefinitionValue = BlueprintVariant | FillDefinition | ColorValue;
148
147
  export interface LinearGradientFillDefinition extends FillDefinition {
149
148
  degrees: number;
150
149
  }
@@ -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,12 +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
- };
17
- title: {
13
+ fills?: VariantBlueprints<FillDefinition>;
14
+ variants?: VariantBlueprints<TypographyDefinition>;
15
+ title?: {
18
16
  xl: TypographyDefinition;
19
17
  l: TypographyDefinition;
20
18
  m: TypographyDefinition;
@@ -22,7 +20,7 @@ export interface TypographyBlueprint {
22
20
  xs: TypographyDefinition;
23
21
  font?: TypographyFontRef;
24
22
  };
25
- text: {
23
+ text?: {
26
24
  xl?: TypographyDefinition;
27
25
  l: TypographyDefinition;
28
26
  m: TypographyDefinition;
@@ -30,7 +28,7 @@ export interface TypographyBlueprint {
30
28
  xs: TypographyDefinition;
31
29
  font?: TypographyFontRef;
32
30
  };
33
- navigation: {
31
+ navigation?: {
34
32
  xl?: TypographyDefinition;
35
33
  l: TypographyDefinition;
36
34
  m: TypographyDefinition;
@@ -38,7 +36,7 @@ export interface TypographyBlueprint {
38
36
  xs?: TypographyDefinition;
39
37
  font?: TypographyFontRef;
40
38
  };
41
- link: {
39
+ link?: {
42
40
  xl?: TypographyDefinition;
43
41
  l?: TypographyDefinition;
44
42
  m: TypographyDefinition;
@@ -46,13 +44,6 @@ export interface TypographyBlueprint {
46
44
  xs?: TypographyDefinition;
47
45
  font?: TypographyFontRef;
48
46
  };
49
- variants?: {
50
- variant1?: TypographyDefinition;
51
- variant2?: TypographyDefinition;
52
- variant3?: TypographyDefinition;
53
- variant4?: TypographyDefinition;
54
- font?: TypographyFontRef;
55
- };
56
47
  }
57
48
  export interface TypographyDefinition {
58
49
  decoration?: string;
@@ -76,7 +67,8 @@ export declare enum TypographyTypes {
76
67
  title = "title",
77
68
  text = "text",
78
69
  navigation = "navigation",
79
- variants = "variants"
70
+ variants = "variants",
71
+ fills = "fills"
80
72
  }
81
73
  export interface ThemedTypographyValue {
82
74
  type: TypographyType;
@@ -93,7 +85,11 @@ export declare enum TypographySizes {
93
85
  variant1 = "variant1",
94
86
  variant2 = "variant2",
95
87
  variant3 = "variant3",
96
- variant4 = "variant4"
88
+ variant4 = "variant4",
89
+ variant5 = "variant5",
90
+ variant6 = "variant6",
91
+ variant7 = "variant7",
92
+ variant8 = "variant8"
97
93
  }
98
94
  /**this reflect TypographySizes for member check*/
99
95
  export declare const AvailableTypographySizes: string[];
@@ -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) {
@@ -19,6 +20,10 @@ var TypographySizes;
19
20
  TypographySizes["variant2"] = "variant2";
20
21
  TypographySizes["variant3"] = "variant3";
21
22
  TypographySizes["variant4"] = "variant4";
23
+ TypographySizes["variant5"] = "variant5";
24
+ TypographySizes["variant6"] = "variant6";
25
+ TypographySizes["variant7"] = "variant7";
26
+ TypographySizes["variant8"] = "variant8";
22
27
  })(TypographySizes || (exports.TypographySizes = TypographySizes = {}));
23
28
  /**this reflect TypographySizes for member check*/
24
- exports.AvailableTypographySizes = ["xl", "l", "m", "s", "xs", "variant1", "variant2", "variant3", "variant4"];
29
+ exports.AvailableTypographySizes = ["xl", "l", "m", "s", "xs", "variant1", "variant2", "variant3", "variant4", "variant5", "variant6", "variant7", "variant8"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.301-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"