@omnia/fx-models 8.0.315-dev → 8.0.316-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.
@@ -8,19 +8,11 @@ function useThemeMethods(getThemeDefinition) {
8
8
  if (typeof type !== "string") {
9
9
  return type;
10
10
  }
11
- if (type === "variant1") {
12
- return getThemeDefinition()?.components?.fills?.variant1;
11
+ const fills = getThemeDefinition()?.components?.fills;
12
+ if (!fills) {
13
+ return null;
13
14
  }
14
- if (type === "variant2") {
15
- return getThemeDefinition()?.components?.fills?.variant2;
16
- }
17
- if (type === "variant3") {
18
- return getThemeDefinition()?.components?.fills?.variant3;
19
- }
20
- if (type === "variant4") {
21
- return getThemeDefinition()?.components?.fills?.variant4;
22
- }
23
- return null;
15
+ return fills[type];
24
16
  }
25
17
  function colorSchema(colorSchemaType) {
26
18
  if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.primary) {
@@ -29,21 +21,6 @@ function useThemeMethods(getThemeDefinition) {
29
21
  else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.secondary) {
30
22
  return getThemeDefinition().colors.secondary;
31
23
  }
32
- else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent1) {
33
- return getThemeDefinition().colors.accent1;
34
- }
35
- else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent2) {
36
- return getThemeDefinition().colors.accent2;
37
- }
38
- else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent3) {
39
- return getThemeDefinition().colors.accent3;
40
- }
41
- else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent4) {
42
- return getThemeDefinition().colors.accent4;
43
- }
44
- else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent5) {
45
- return getThemeDefinition().colors.accent5;
46
- }
47
24
  else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.background) {
48
25
  return getThemeDefinition().colors.background;
49
26
  }
@@ -65,7 +42,10 @@ function useThemeMethods(getThemeDefinition) {
65
42
  else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.success) {
66
43
  return getThemeDefinition().colors.success;
67
44
  }
68
- return getThemeDefinition().colors.background;
45
+ else {
46
+ const colors = getThemeDefinition().colors;
47
+ return colors[colorSchemaType];
48
+ }
69
49
  }
70
50
  function color(colorSchemaType, colorType) {
71
51
  const mappedColorSchema = colorSchema(colorSchemaType);
@@ -284,6 +284,16 @@ export interface VelcronVideoDefinition extends VelcronDefinition {
284
284
  aspectRatio?: VelcronBindableProp<"16:9" | "4:3" | "1:1">;
285
285
  autoplay?: VelcronBindableProp<boolean>;
286
286
  muted?: VelcronBindableProp<boolean>;
287
+ showPlayPause?: boolean;
288
+ showProgressBar?: boolean;
289
+ showVolumeControl?: boolean;
290
+ showMuteButton?: boolean;
291
+ showFullscreenButton?: boolean;
292
+ showTimeDisplay?: boolean;
293
+ placeholderImage?: VelcronBindableProp<string>;
294
+ playButtonImage?: VelcronBindableProp<string>;
295
+ placeholder?: VelcronDefinition;
296
+ playButton?: VelcronDefinition;
287
297
  }
288
298
  export interface VelcronButtonDefinition extends VelcronDefinition, VelcronColorStyling {
289
299
  type: "button";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.315-dev",
4
+ "version": "8.0.316-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"