@omnia/fx-models 8.0.305-dev → 8.0.307-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.
@@ -22,7 +22,7 @@ export interface ColorStyles {
|
|
22
22
|
color: object | string;
|
23
23
|
all: object | string;
|
24
24
|
}
|
25
|
-
export interface ColorSchemas extends ColorSchemasReference {
|
25
|
+
export interface ColorSchemas extends ColorSchemasReference, AccentBlueprints<ColorSchema> {
|
26
26
|
primary: ColorSchema;
|
27
27
|
secondary: ColorSchema;
|
28
28
|
accent1?: ColorSchema;
|
@@ -45,7 +45,7 @@ export interface ColorSchemas extends ColorSchemasReference {
|
|
45
45
|
export interface BlueprintsReference {
|
46
46
|
id: guid;
|
47
47
|
}
|
48
|
-
export interface ColorSchemasReference {
|
48
|
+
export interface ColorSchemasReference extends AccentBlueprints<BlueprintsReference> {
|
49
49
|
primary?: BlueprintsReference;
|
50
50
|
secondary?: BlueprintsReference;
|
51
51
|
accent1?: BlueprintsReference;
|
@@ -97,6 +97,18 @@ export interface ITemplateRegistration<TTemplateType = any, TType = TemplateRegi
|
|
97
97
|
}
|
98
98
|
export interface ButtonBlueprintRegistration extends ITemplateRegistration<ButtonBlueprint, "button"> {
|
99
99
|
}
|
100
|
+
export type AccentVariant = "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "accent7" | "accent8" | "accent9";
|
101
|
+
export declare const AccentVariants: Array<AccentVariant>;
|
102
|
+
export interface AccentBlueprints<T> {
|
103
|
+
accent1?: T;
|
104
|
+
accent2?: T;
|
105
|
+
accent3?: T;
|
106
|
+
accent4?: T;
|
107
|
+
accent5?: T;
|
108
|
+
accent6?: T;
|
109
|
+
accent7?: T;
|
110
|
+
accent8?: T;
|
111
|
+
}
|
100
112
|
export type ColorSchemaType = keyof typeof ColorSchemaTypes;
|
101
113
|
export declare enum ColorSchemaTypes {
|
102
114
|
primary = "primary",
|
@@ -1,8 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RadialGradientShapes = exports.ColorTypes = exports.ColorSchemaTypes = void 0;
|
3
|
+
exports.RadialGradientShapes = exports.ColorTypes = exports.ColorSchemaTypes = exports.AccentVariants = void 0;
|
4
4
|
exports.ColorSchemaId = ColorSchemaId;
|
5
5
|
exports.ThemeDefinitionId = ThemeDefinitionId;
|
6
|
+
exports.AccentVariants = [
|
7
|
+
"accent1",
|
8
|
+
"accent2",
|
9
|
+
"accent3",
|
10
|
+
"accent4",
|
11
|
+
"accent5",
|
12
|
+
"accent6",
|
13
|
+
"accent7",
|
14
|
+
"accent8"
|
15
|
+
];
|
6
16
|
var ColorSchemaTypes;
|
7
17
|
(function (ColorSchemaTypes) {
|
8
18
|
ColorSchemaTypes["primary"] = "primary";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ContainerFillBlueprint, BlueprintVariant, IFontAwesomeIcon, VelcronColorStyling, VelcronOverflowValues } from "@omnia/fx-models";
|
2
2
|
import { DynamicState } from "../DynamicState";
|
3
3
|
import { VelcronEvent, VelcronOnActiveEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnPersistingStateEvent, VelcronOnSavingEvent } from "./VelcronEvents";
|
4
|
-
import { AnimationOptionsWithOverrides, VariantDefinition, Variants } from "motion";
|
4
|
+
import { AnimationOptionsWithOverrides, InViewOptions, VariantDefinition, Variants } from "motion";
|
5
5
|
/**
|
6
6
|
* Velcron definition base
|
7
7
|
*/
|
@@ -75,14 +75,21 @@ export interface VelcronEditor<TSettings = any> {
|
|
75
75
|
multiple?: boolean;
|
76
76
|
component?: unknown;
|
77
77
|
}
|
78
|
-
export interface
|
79
|
-
|
80
|
-
initial?: false | VariantDefinition;
|
78
|
+
export interface VelcronMotionVariants {
|
79
|
+
initial?: VariantDefinition | boolean;
|
81
80
|
animate?: VariantDefinition;
|
82
81
|
inView?: VariantDefinition;
|
82
|
+
hover?: VariantDefinition;
|
83
|
+
press?: VariantDefinition;
|
84
|
+
exit?: VariantDefinition;
|
83
85
|
variants?: Variants;
|
86
|
+
inViewOptions?: InViewOptions;
|
84
87
|
transition?: AnimationOptionsWithOverrides;
|
85
88
|
}
|
89
|
+
export interface VelcronLazyApp {
|
90
|
+
minHeight?: VelcronBindableProp<number | string>;
|
91
|
+
motion?: VelcronMotionVariants;
|
92
|
+
}
|
86
93
|
export interface VelcronAppDefinition<TState extends DynamicState = DynamicState> extends VelcronDefinitionBase, VelcronColorStyling {
|
87
94
|
type: "velcron";
|
88
95
|
version?: string;
|