@omnia/fx-models 8.0.328-dev → 8.0.330-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,5 +1,5 @@
1
1
  import { BackgroundDefinition, BlueprintsReference, ColorValue, FillDefinitionValue } from "./ThemeDefinition";
2
- import { SpacingDefinition, Spacing } from "./Spacing";
2
+ import { SpacingDefinition, Spacing, SpacingValue } from "./Spacing";
3
3
  import { TypographyFontDefinition, TypographyValue } from "./Typography";
4
4
  import { ThemeBase } from "./ThemeBase";
5
5
  import { VelcronRendererResolverReference } from "../velcron";
@@ -89,7 +89,8 @@ export interface ButtonBlueprintVariant {
89
89
  category: ButtonBlueprintType;
90
90
  }
91
91
  export interface ButtonBlueprint extends Blueprint {
92
- padding?: Spacing;
92
+ padding?: SpacingValue;
93
+ height?: number;
93
94
  background?: BackgroundDefinition;
94
95
  alterCase?: boolean;
95
96
  text?: TextBlueprint;
@@ -118,11 +119,12 @@ export interface InputBlueprints extends Blueprints, VariantBlueprints<InputBlue
118
119
  primary?: InputBlueprint;
119
120
  }
120
121
  export interface InputBlueprint extends Blueprint {
121
- variant?: "filled" | "underlined" | "outlined" | "plain" | "solo" | "solo-inverted" | "solo-filled";
122
+ variant?: "filled" | "underlined" | "outlined" | "plain" | "solo" | "solo-inverted" | "solo-filled" | "custom";
122
123
  background?: BackgroundDefinition;
123
124
  height?: number;
124
125
  text?: TextBlueprint;
125
126
  icon?: IconBlueprint;
127
+ padding?: SpacingValue;
126
128
  }
127
129
  export interface TabsBlueprints extends Blueprints, VariantBlueprints<TabsBlueprint> {
128
130
  primary?: TabsBlueprint;
@@ -19,10 +19,11 @@ var SpacingMethods;
19
19
  let result = spacingValue;
20
20
  if (isNaN(spacingValue)) {
21
21
  let strippedValue = spacingScaling.get.valueWithoutScale(spacingValue);
22
- if (strippedValue.startsWith("-")) {
22
+ const isString = typeof strippedValue === "string";
23
+ if (isString && strippedValue?.startsWith("-")) {
23
24
  negative = true;
24
25
  }
25
- strippedValue = strippedValue.replace("-", "");
26
+ strippedValue = isString && strippedValue.replace("-", "");
26
27
  if (strippedValue === Spacing_1.SpacingTypes.xs) {
27
28
  result = definition.xs;
28
29
  }
@@ -415,6 +415,7 @@ export interface VelcronReferenceDefinition extends VelcronDefinition {
415
415
  export interface VelcronPropertyDefinition extends VelcronDefinitionWithEditMode {
416
416
  type: "property";
417
417
  value: VelcronBindableProp<string>;
418
+ slots: Record<string, VelcronDefinition>;
418
419
  }
419
420
  export interface VelcronCheckboxDefinition extends VelcronDefinition {
420
421
  type: "checkbox";
@@ -38,6 +38,12 @@ export declare const OAppBarTypesName = "OAppBarTypes";
38
38
  export declare const OAlertTypeDefinitions: readonly ["success", "info", "warning", "error"];
39
39
  export type OAlertTypes = typeof OAlertTypeDefinitions[number];
40
40
  export declare const OAlertTypesName = "OAlertTypes";
41
+ /**Breadcrumb */
42
+ export type LinkItemProps = {
43
+ title: string;
44
+ href?: string;
45
+ disabled?: boolean;
46
+ };
41
47
  /**Button */
42
48
  export declare const OButtonPresetDefinitions: readonly ["confirm", "create", "remove", "delete", "add", "ok", "cancel", "save", "close", "manage-list", "settings", "icon-add", "icon-comment", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-more", "icon-navigate", "icon-preview", "icon-settings", "load-more", "retry", "remove", "approve", "copy-to-clipboard", "details", "next", "previous", "select", "view-more", "send-request"];
43
49
  export type OOxideButtonPresets = typeof OButtonPresetDefinitions[number];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.328-dev",
4
+ "version": "8.0.330-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"