@omnia/fx-models 8.0.114-dev → 8.0.115-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.
@@ -1,7 +1,7 @@
1
- import { BackgroundDefinition, ColorValue } from "./ThemeDefinitionV2";
1
+ import { BackgroundDefinition, FillDefinition } from "./ThemeDefinitionV2";
2
2
  import { ChromeDefinition } from "./ChromeDefinition";
3
3
  import { SpacingDefinition, SpacingSettings } from "./SpacingSetting";
4
- import { TypographyDefinition } from "./TypographyDefinition";
4
+ import { TypographyDefinition, TypographyValue } from "./TypographyDefinition";
5
5
  export interface BoxDimensions extends SpacingSettings {
6
6
  }
7
7
  export interface ChromeBluePrintDefinitions {
@@ -56,7 +56,7 @@ export interface SpacingItemBluePrintDefinition {
56
56
  inner: SpacingDefinition;
57
57
  }
58
58
  export type SpacingBlueprintTypes = "inner" | "layout";
59
- export type WebBlueprintItemDefintionType = "button" | "searchbox";
59
+ export type WebBlueprintItemDefintionType = "button" | "searchbox" | "text" | "icon";
60
60
  export declare enum WebBlueprintItemDefintionTypes {
61
61
  button = "button",
62
62
  searchbox = "searchbox"
@@ -75,10 +75,19 @@ export interface SearchBoxBlueprint extends BlueprintItemDefinition {
75
75
  }
76
76
  export interface ButtonBlueprint extends BlueprintItemDefinition {
77
77
  type: "button";
78
- density?: "compact" | "comfortable";
79
- size?: "x-small" | "small" | "large" | "x-large";
80
78
  padding?: SpacingSettings;
81
79
  background?: BackgroundDefinition;
82
80
  alterCase?: boolean;
83
- textColor?: ColorValue;
81
+ text?: TextBlueprint;
82
+ icon?: IconBlueprint;
83
+ }
84
+ export interface TextBlueprint extends BlueprintItemDefinition {
85
+ type: "text";
86
+ color?: FillDefinition;
87
+ typography?: TypographyValue;
88
+ }
89
+ export interface IconBlueprint extends BlueprintItemDefinition {
90
+ type: "icon";
91
+ color?: FillDefinition;
92
+ size?: number;
84
93
  }
@@ -45,7 +45,7 @@ export declare enum TypographyTypes {
45
45
  navigation = "navigation"
46
46
  }
47
47
  export interface ThemedTypographyValue {
48
- typographyType: TypographyType;
48
+ type: TypographyType;
49
49
  size: TypographySize;
50
50
  }
51
51
  export type TypographyValue = string | ThemedTypographyValue;
@@ -68,7 +68,7 @@ export type OChartData<ChartType extends keyof ChartTypeRegistry> = ChartData<Ch
68
68
  export declare const ODialogTypeDefinitions: readonly ["save-cancel", "confirm", "ok-cancel", "default", "app", "retry"];
69
69
  export type ODialogTypes = typeof ODialogTypeDefinitions[number];
70
70
  export declare const ODialogTypesName = "ODialogTypes";
71
- export declare const ODialogSizeDefinitions: readonly ["small", "medium", "large", "full"];
71
+ export declare const ODialogSizeDefinitions: readonly ["x-small", "small", "medium", "large", "full"];
72
72
  export type ODialogSizes = typeof ODialogSizeDefinitions[number];
73
73
  /** Divider */
74
74
  export declare const OPageDividerTypeDefinitions: readonly ["default", "prominent"];
@@ -49,7 +49,7 @@ exports.OChartVariantsName = "OChartVariants";
49
49
  /** Dialog */
50
50
  exports.ODialogTypeDefinitions = ["save-cancel", "confirm", "ok-cancel", "default", "app", "retry"];
51
51
  exports.ODialogTypesName = "ODialogTypes";
52
- exports.ODialogSizeDefinitions = ["small", "medium", "large", "full"];
52
+ exports.ODialogSizeDefinitions = ["x-small", "small", "medium", "large", "full"];
53
53
  /** Divider */
54
54
  exports.OPageDividerTypeDefinitions = ["default", "prominent"];
55
55
  exports.OPageDividerTypesName = "OPageDividerTypes";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.114-dev",
4
+ "version": "8.0.115-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"