@omnia/fx-models 8.0.54-vnext → 8.0.55-vnext
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.
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +3 -2
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.js +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +32 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.js +45 -0
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +31 -11
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +11 -5
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +7 -7
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +10 -15
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/theming/index.js +2 -0
- package/internal-do-not-import-from-here/velcron/core/models/Enums.d.ts +6 -6
- package/internal-do-not-import-from-here/velcron/core/models/Enums.js +6 -6
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +16 -14
- package/oxide/OxideTypeDefinitions.d.ts +2 -2
- package/oxide/OxideTypeDefinitions.js +3 -2
- package/package.json +1 -1
|
@@ -13,13 +13,14 @@ export interface BluePrintDefinitions {
|
|
|
13
13
|
variant2: BlueprintDefinition;
|
|
14
14
|
variant3: BlueprintDefinition;
|
|
15
15
|
}
|
|
16
|
-
export type WebBlueprintDefintionType = "button" | "block" | "typography" | "searchbox" | "layout-spacing";
|
|
16
|
+
export type WebBlueprintDefintionType = "button" | "block" | "typography" | "searchbox" | "layout-spacing" | "inner-spacing";
|
|
17
17
|
export declare enum WebBlueprintDefintionTypes {
|
|
18
18
|
button = "button",
|
|
19
19
|
block = "block",
|
|
20
20
|
typography = "typography",
|
|
21
21
|
searchbox = "searchbox",
|
|
22
|
-
layoutspacing = "layout-spacing"
|
|
22
|
+
layoutspacing = "layout-spacing",
|
|
23
|
+
innerspacing = "inner-spacing"
|
|
23
24
|
}
|
|
24
25
|
export type VelcronBlueprintDefintionType = "button" | "typography" | "inner-spacing";
|
|
25
26
|
export declare enum VelcronBlueprintDefintionTypes {
|
|
@@ -8,6 +8,7 @@ var WebBlueprintDefintionTypes;
|
|
|
8
8
|
WebBlueprintDefintionTypes["typography"] = "typography";
|
|
9
9
|
WebBlueprintDefintionTypes["searchbox"] = "searchbox";
|
|
10
10
|
WebBlueprintDefintionTypes["layoutspacing"] = "layout-spacing";
|
|
11
|
+
WebBlueprintDefintionTypes["innerspacing"] = "inner-spacing";
|
|
11
12
|
})(WebBlueprintDefintionTypes = exports.WebBlueprintDefintionTypes || (exports.WebBlueprintDefintionTypes = {}));
|
|
12
13
|
var VelcronBlueprintDefintionTypes;
|
|
13
14
|
(function (VelcronBlueprintDefintionTypes) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSpacingValueFromBlueprint = void 0;
|
|
4
|
+
const SpacingSetting_1 = require("./SpacingSetting");
|
|
5
|
+
function getSpacingValueFromBlueprint(spacingValue, blueprint) {
|
|
6
|
+
if (!spacingValue) {
|
|
7
|
+
return 0;
|
|
8
|
+
}
|
|
9
|
+
let result = spacingValue;
|
|
10
|
+
if (isNaN(spacingValue) && blueprint?.definition) {
|
|
11
|
+
if (spacingValue === SpacingSetting_1.SpacingTypes.xs) {
|
|
12
|
+
result = blueprint.definition.xs;
|
|
13
|
+
}
|
|
14
|
+
else if (spacingValue === SpacingSetting_1.SpacingTypes.s) {
|
|
15
|
+
result = blueprint.definition.s;
|
|
16
|
+
}
|
|
17
|
+
else if (spacingValue === SpacingSetting_1.SpacingTypes.m) {
|
|
18
|
+
result = blueprint.definition.m;
|
|
19
|
+
}
|
|
20
|
+
else if (spacingValue === SpacingSetting_1.SpacingTypes.l) {
|
|
21
|
+
result = blueprint.definition.l;
|
|
22
|
+
}
|
|
23
|
+
else if (spacingValue === SpacingSetting_1.SpacingTypes.xl) {
|
|
24
|
+
result = blueprint.definition.xl;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
result = 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
exports.getSpacingValueFromBlueprint = getSpacingValueFromBlueprint;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setColorOpacity(color: any, opacity: any): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setColorOpacity = void 0;
|
|
4
|
+
function setColorOpacity(color, opacity) {
|
|
5
|
+
function getRGBValues(color) {
|
|
6
|
+
const tmpColor = color.replace("rgba", "rgb");
|
|
7
|
+
return tmpColor.substring(4, tmpColor.length - 1)
|
|
8
|
+
.replace(/ /g, "")
|
|
9
|
+
.split(",");
|
|
10
|
+
}
|
|
11
|
+
function getRGBValuesFromHex(color) {
|
|
12
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color);
|
|
13
|
+
if (result) {
|
|
14
|
+
return [
|
|
15
|
+
parseInt(result[1], 16),
|
|
16
|
+
parseInt(result[2], 16),
|
|
17
|
+
parseInt(result[3], 16)
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function isRGBColor(color) {
|
|
22
|
+
if (!color) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
if (color.indexOf("rgb") > -1) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
if (color.indexOf("rgba") > -1) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
let rgb = null;
|
|
34
|
+
if (!isRGBColor(color)) {
|
|
35
|
+
rgb = getRGBValuesFromHex(color);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
rgb = getRGBValues(color);
|
|
39
|
+
}
|
|
40
|
+
if (rgb) {
|
|
41
|
+
return `rgba(${rgb[0]},${rgb[1]},${rgb[2]},${opacity})`;
|
|
42
|
+
}
|
|
43
|
+
return color;
|
|
44
|
+
}
|
|
45
|
+
exports.setColorOpacity = setColorOpacity;
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import { Guid } from "../Guid";
|
|
2
2
|
export interface TypographyDefinition {
|
|
3
3
|
id: Guid;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
title: {
|
|
5
|
+
xl: TypographyTypeDefinition;
|
|
6
|
+
l: TypographyTypeDefinition;
|
|
7
|
+
m: TypographyTypeDefinition;
|
|
8
|
+
s: TypographyTypeDefinition;
|
|
9
|
+
xs: TypographyTypeDefinition;
|
|
10
|
+
};
|
|
11
|
+
text: {
|
|
12
|
+
l: TypographyTypeDefinition;
|
|
13
|
+
m: TypographyTypeDefinition;
|
|
14
|
+
s: TypographyTypeDefinition;
|
|
15
|
+
xs: TypographyTypeDefinition;
|
|
16
|
+
};
|
|
17
|
+
navigation: {
|
|
18
|
+
l: TypographyTypeDefinition;
|
|
19
|
+
m: TypographyTypeDefinition;
|
|
20
|
+
};
|
|
21
|
+
link: {
|
|
22
|
+
m: TypographyTypeDefinition;
|
|
23
|
+
};
|
|
10
24
|
}
|
|
11
25
|
export interface TypographyTypeDefinition {
|
|
12
26
|
decoration?: string;
|
|
@@ -19,12 +33,18 @@ export interface TypographyTypeBreakPoint {
|
|
|
19
33
|
size: number;
|
|
20
34
|
lineHeight: number;
|
|
21
35
|
}
|
|
22
|
-
export type TypographyType = "
|
|
36
|
+
export type TypographyType = "title" | "text" | "navigation" | "link";
|
|
23
37
|
export declare enum TypographyTypes {
|
|
24
|
-
|
|
25
|
-
h2 = "h2",
|
|
26
|
-
h3 = "h3",
|
|
38
|
+
title = "title",
|
|
27
39
|
text = "text",
|
|
28
|
-
|
|
40
|
+
navigation = "navigation",
|
|
29
41
|
link = "link"
|
|
30
42
|
}
|
|
43
|
+
export type TypographySize = "xl" | "l" | "m" | "s" | "xs";
|
|
44
|
+
export declare enum TypographySizes {
|
|
45
|
+
xl = "xl",
|
|
46
|
+
l = "l",
|
|
47
|
+
m = "m",
|
|
48
|
+
s = "s",
|
|
49
|
+
xs = "xs"
|
|
50
|
+
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypographyTypes = void 0;
|
|
3
|
+
exports.TypographySizes = exports.TypographyTypes = void 0;
|
|
4
4
|
var TypographyTypes;
|
|
5
5
|
(function (TypographyTypes) {
|
|
6
|
-
TypographyTypes["
|
|
7
|
-
TypographyTypes["h2"] = "h2";
|
|
8
|
-
TypographyTypes["h3"] = "h3";
|
|
6
|
+
TypographyTypes["title"] = "title";
|
|
9
7
|
TypographyTypes["text"] = "text";
|
|
10
|
-
TypographyTypes["
|
|
8
|
+
TypographyTypes["navigation"] = "navigation";
|
|
11
9
|
TypographyTypes["link"] = "link";
|
|
12
10
|
})(TypographyTypes = exports.TypographyTypes || (exports.TypographyTypes = {}));
|
|
11
|
+
var TypographySizes;
|
|
12
|
+
(function (TypographySizes) {
|
|
13
|
+
TypographySizes["xl"] = "xl";
|
|
14
|
+
TypographySizes["l"] = "l";
|
|
15
|
+
TypographySizes["m"] = "m";
|
|
16
|
+
TypographySizes["s"] = "s";
|
|
17
|
+
TypographySizes["xs"] = "xs";
|
|
18
|
+
})(TypographySizes = exports.TypographySizes || (exports.TypographySizes = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare function useThemeMethods(getThemeDefinition: () =>
|
|
5
|
-
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) =>
|
|
6
|
-
blueprint: (blueprintType: BlueprintTypes | BlueprintType) =>
|
|
7
|
-
typography: (blueprintType: BlueprintTypes | BlueprintType, typographyType: TypographyTypes | TypographyType) => TypographyTypeDefinition;
|
|
1
|
+
import { BlueprintType, BlueprintTypes, ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinitionV2";
|
|
2
|
+
import { TypographySize, TypographySizes, TypographyType, TypographyTypeDefinition, TypographyTypes } from "./TypographyDefinition";
|
|
3
|
+
import { BlueprintDefinition } from "./BlueprintDefinition";
|
|
4
|
+
export declare function useThemeMethods(getThemeDefinition: () => any): {
|
|
5
|
+
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => ColorSchema;
|
|
6
|
+
blueprint: (blueprintType: BlueprintTypes | BlueprintType) => BlueprintDefinition;
|
|
7
|
+
typography: (blueprintType: BlueprintTypes | BlueprintType, typographyType: TypographyTypes | TypographyType, size: TypographySize | TypographySizes) => TypographyTypeDefinition;
|
|
8
8
|
color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
|
|
9
9
|
colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
|
|
10
10
|
complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useThemeMethods = void 0;
|
|
4
|
+
//import { ThemeDefinitionInstance } from "@omnia/fx/ux";
|
|
4
5
|
const ThemeDefinitionV2_1 = require("./ThemeDefinitionV2");
|
|
5
6
|
const TypographyDefinition_1 = require("./TypographyDefinition");
|
|
7
|
+
// temp change ThemeDefinitionInstance to any because fx/shared can't reference higher level fx/ux
|
|
6
8
|
function useThemeMethods(getThemeDefinition) {
|
|
7
9
|
function colorSchema(colorSchemaType) {
|
|
8
10
|
if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.primary) {
|
|
@@ -46,27 +48,20 @@ function useThemeMethods(getThemeDefinition) {
|
|
|
46
48
|
}
|
|
47
49
|
return getThemeDefinition().blueprints.default;
|
|
48
50
|
}
|
|
49
|
-
function typography(blueprintType, typographyType) {
|
|
51
|
+
function typography(blueprintType, typographyType, size) {
|
|
50
52
|
const typographyBlueprint = getThemeDefinition().blueprints[blueprintType].definitions.find(d => d.type === "typography");
|
|
51
|
-
if (typographyType === TypographyDefinition_1.TypographyTypes.
|
|
52
|
-
return typographyBlueprint.definition.
|
|
53
|
+
if (typographyType === TypographyDefinition_1.TypographyTypes.text) {
|
|
54
|
+
return typographyBlueprint.definition.text[size];
|
|
53
55
|
}
|
|
54
|
-
else if (typographyType === TypographyDefinition_1.TypographyTypes.
|
|
55
|
-
return typographyBlueprint.definition.
|
|
56
|
+
else if (typographyType === TypographyDefinition_1.TypographyTypes.title) {
|
|
57
|
+
return typographyBlueprint.definition.title[size];
|
|
56
58
|
}
|
|
57
|
-
else if (typographyType === TypographyDefinition_1.TypographyTypes.
|
|
58
|
-
return typographyBlueprint.definition
|
|
59
|
-
}
|
|
60
|
-
else if (typographyType === TypographyDefinition_1.TypographyTypes.caption) {
|
|
61
|
-
return typographyBlueprint.definition.caption;
|
|
59
|
+
else if (typographyType === TypographyDefinition_1.TypographyTypes.navigation) {
|
|
60
|
+
return typographyBlueprint.definition[size];
|
|
62
61
|
}
|
|
63
62
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.link) {
|
|
64
|
-
return typographyBlueprint.definition.link;
|
|
65
|
-
}
|
|
66
|
-
else if (typographyType === TypographyDefinition_1.TypographyTypes.text) {
|
|
67
|
-
return typographyBlueprint.definition.text;
|
|
63
|
+
return typographyBlueprint.definition.link[TypographyDefinition_1.TypographySizes.m];
|
|
68
64
|
}
|
|
69
|
-
return typographyBlueprint.definition.text;
|
|
70
65
|
}
|
|
71
66
|
function color(colorSchemaType, colorType) {
|
|
72
67
|
const mappedColorSchema = colorSchema(colorSchemaType);
|
|
@@ -7,3 +7,5 @@ tslib_1.__exportStar(require("./OmniaThemes"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./UseThemeMethods"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./BlueprintDefinition"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./SpacingSetting"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./SharedBlueprintMethods"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./SharedColorMethods"), exports);
|
|
@@ -17,14 +17,14 @@ export declare enum VelcronIconTypes {
|
|
|
17
17
|
fontAwesome = "fa"
|
|
18
18
|
}
|
|
19
19
|
export declare enum VelcronHorizontalAlignments {
|
|
20
|
-
left =
|
|
21
|
-
center =
|
|
22
|
-
right =
|
|
20
|
+
left = "left",
|
|
21
|
+
center = "center",
|
|
22
|
+
right = "right"
|
|
23
23
|
}
|
|
24
24
|
export declare enum VelcronVerticalAlignments {
|
|
25
|
-
top =
|
|
26
|
-
center =
|
|
27
|
-
bottom =
|
|
25
|
+
top = "top",
|
|
26
|
+
center = "center",
|
|
27
|
+
bottom = "bottom"
|
|
28
28
|
}
|
|
29
29
|
export declare enum VelcronDataTypes {
|
|
30
30
|
unknown = "unknown",
|
|
@@ -24,15 +24,15 @@ var VelcronIconTypes;
|
|
|
24
24
|
})(VelcronIconTypes = exports.VelcronIconTypes || (exports.VelcronIconTypes = {}));
|
|
25
25
|
var VelcronHorizontalAlignments;
|
|
26
26
|
(function (VelcronHorizontalAlignments) {
|
|
27
|
-
VelcronHorizontalAlignments[
|
|
28
|
-
VelcronHorizontalAlignments[
|
|
29
|
-
VelcronHorizontalAlignments[
|
|
27
|
+
VelcronHorizontalAlignments["left"] = "left";
|
|
28
|
+
VelcronHorizontalAlignments["center"] = "center";
|
|
29
|
+
VelcronHorizontalAlignments["right"] = "right";
|
|
30
30
|
})(VelcronHorizontalAlignments = exports.VelcronHorizontalAlignments || (exports.VelcronHorizontalAlignments = {}));
|
|
31
31
|
var VelcronVerticalAlignments;
|
|
32
32
|
(function (VelcronVerticalAlignments) {
|
|
33
|
-
VelcronVerticalAlignments[
|
|
34
|
-
VelcronVerticalAlignments[
|
|
35
|
-
VelcronVerticalAlignments[
|
|
33
|
+
VelcronVerticalAlignments["top"] = "top";
|
|
34
|
+
VelcronVerticalAlignments["center"] = "center";
|
|
35
|
+
VelcronVerticalAlignments["bottom"] = "bottom";
|
|
36
36
|
})(VelcronVerticalAlignments = exports.VelcronVerticalAlignments || (exports.VelcronVerticalAlignments = {}));
|
|
37
37
|
var VelcronDataTypes;
|
|
38
38
|
(function (VelcronDataTypes) {
|
|
@@ -107,7 +107,7 @@ export interface VelcronDefinitionBase {
|
|
|
107
107
|
*/
|
|
108
108
|
key?: string;
|
|
109
109
|
}
|
|
110
|
-
export interface VelcronDefinition extends VelcronDefinitionBase {
|
|
110
|
+
export interface VelcronDefinition extends VelcronDefinitionBase, VelcronDimensionStyling {
|
|
111
111
|
body?: Array<VelcronDefinition>;
|
|
112
112
|
style?: VelcronStyling;
|
|
113
113
|
foreach?: string;
|
|
@@ -119,12 +119,15 @@ export interface VelcronDefinitionWithEditMode extends VelcronDefinition {
|
|
|
119
119
|
edit?: VelcronBindableProp<boolean>;
|
|
120
120
|
bind?: VelcronBindableProp;
|
|
121
121
|
}
|
|
122
|
+
interface VelcronDimensionStyling {
|
|
123
|
+
padding?: VelcronSpacing;
|
|
124
|
+
}
|
|
122
125
|
export interface VelcronColorStyling {
|
|
123
126
|
colorSchemaType?: string;
|
|
124
|
-
|
|
127
|
+
colorType?: string;
|
|
125
128
|
filled?: boolean;
|
|
126
|
-
container?: boolean;
|
|
127
129
|
toned?: boolean;
|
|
130
|
+
color?: string;
|
|
128
131
|
}
|
|
129
132
|
export interface VelcronStyling {
|
|
130
133
|
margin?: number;
|
|
@@ -144,10 +147,10 @@ export interface VelcronCardStyling extends VelcronStyling {
|
|
|
144
147
|
elevation: number;
|
|
145
148
|
}
|
|
146
149
|
export interface VelcronSpacing {
|
|
147
|
-
top: number;
|
|
148
|
-
right: number;
|
|
149
|
-
bottom: number;
|
|
150
|
-
left: number;
|
|
150
|
+
top: number | string;
|
|
151
|
+
right: number | string;
|
|
152
|
+
bottom: number | string;
|
|
153
|
+
left: number | string;
|
|
151
154
|
}
|
|
152
155
|
export interface VelcronIcon {
|
|
153
156
|
type: VelcronIconTypes;
|
|
@@ -175,11 +178,10 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
|
175
178
|
icon: any;
|
|
176
179
|
}
|
|
177
180
|
/*** Built-in Components *********************************************************************/
|
|
178
|
-
export interface VelcronViewDefinition extends VelcronDefinition {
|
|
181
|
+
export interface VelcronViewDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
179
182
|
type: "View";
|
|
180
|
-
color?: VelcronColorStyling;
|
|
181
183
|
events?: VelcronOnPressEvent;
|
|
182
|
-
|
|
184
|
+
direction?: "row" | "column";
|
|
183
185
|
columnStyle?: object;
|
|
184
186
|
horizontalAlignment?: VelcronHorizontalAlignments;
|
|
185
187
|
verticalAlignment?: VelcronVerticalAlignments;
|
|
@@ -188,21 +190,20 @@ export interface VelcronViewDefinition extends VelcronDefinition {
|
|
|
188
190
|
borderRadius?: VelcronDimensions;
|
|
189
191
|
width?: number;
|
|
190
192
|
}
|
|
191
|
-
export interface VelcronCardDefinition extends VelcronDefinition {
|
|
193
|
+
export interface VelcronCardDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
192
194
|
type: "Card";
|
|
193
|
-
color?: VelcronColorStyling;
|
|
194
195
|
style?: VelcronCardStyling;
|
|
195
196
|
footer?: Array<VelcronDefinition>;
|
|
196
197
|
events?: VelcronOnPressEvent;
|
|
197
198
|
}
|
|
198
|
-
export interface VelcronTextDefinition extends VelcronDefinitionWithEditMode {
|
|
199
|
+
export interface VelcronTextDefinition extends VelcronDefinitionWithEditMode, VelcronColorStyling {
|
|
199
200
|
type: "Text";
|
|
200
201
|
text: string;
|
|
201
202
|
editLabel?: VelcronBindableProp;
|
|
202
|
-
color?: string;
|
|
203
203
|
lineClamp?: number;
|
|
204
204
|
noWrap?: boolean;
|
|
205
205
|
typography?: string;
|
|
206
|
+
size?: string;
|
|
206
207
|
events?: VelcronOnPressEvent & VelcronOnUpdatedEvent;
|
|
207
208
|
}
|
|
208
209
|
export declare enum VelcronImageRatios {
|
|
@@ -278,3 +279,4 @@ export type VelcronRenderProps<TDefinition> = {
|
|
|
278
279
|
definition: TDefinition;
|
|
279
280
|
renderContext: VelcronRenderContext;
|
|
280
281
|
};
|
|
282
|
+
export {};
|
|
@@ -22,7 +22,7 @@ export declare const AppBarTypeDefinitions: readonly ["default", "app"];
|
|
|
22
22
|
export type AppBarTypes = typeof AppBarTypeDefinitions[number];
|
|
23
23
|
export declare const AppBarTypesName = "AppBarTypes";
|
|
24
24
|
/**Button */
|
|
25
|
-
export declare const ButtonPresetDefinitions: readonly ["create", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-navigate", "icon-settings"];
|
|
25
|
+
export declare const ButtonPresetDefinitions: readonly ["create", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-more", "icon-navigate", "icon-settings"];
|
|
26
26
|
export type OxideButtonPresets = typeof ButtonPresetDefinitions[number];
|
|
27
27
|
export declare const ButtonPresetsName = "OxideButtonPresets";
|
|
28
28
|
export declare const ButtonVariantDefinitions: readonly ["default", "prominent", "toolbar", "opacity", "dial"];
|
|
@@ -107,7 +107,7 @@ export declare const TabVariantDefinitions: readonly ["default", "navigation", "
|
|
|
107
107
|
export type TabVariants = typeof TabVariantDefinitions[number];
|
|
108
108
|
export declare const TabVariantsName = "TabVariants";
|
|
109
109
|
/** Text Box */
|
|
110
|
-
export declare const TextBoxVariantTypeDefinitions: readonly ["default", "filter-menu", "search", "find-slim", "
|
|
110
|
+
export declare const TextBoxVariantTypeDefinitions: readonly ["default", "filter-menu", "search", "find-slim", "link", "media"];
|
|
111
111
|
export type TextBoxVariantTypes = typeof TextBoxVariantTypeDefinitions[number];
|
|
112
112
|
export declare const TextBoxVariantTypesName = "TextBoxVariantTypes";
|
|
113
113
|
export declare const TextBoxTypeDefinitions: readonly ["number"];
|
|
@@ -18,7 +18,7 @@ exports.ProgressTypesName = "ProgressTypes";
|
|
|
18
18
|
exports.AppBarTypeDefinitions = ["default", "app"];
|
|
19
19
|
exports.AppBarTypesName = "AppBarTypes";
|
|
20
20
|
/**Button */
|
|
21
|
-
exports.ButtonPresetDefinitions = ["create", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-navigate", "icon-settings"];
|
|
21
|
+
exports.ButtonPresetDefinitions = ["create", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-more", "icon-navigate", "icon-settings"];
|
|
22
22
|
exports.ButtonPresetsName = "OxideButtonPresets";
|
|
23
23
|
exports.ButtonVariantDefinitions = ["default", "prominent", "toolbar", "opacity", "dial"];
|
|
24
24
|
exports.ButtonVariantsName = "ButtonVariants";
|
|
@@ -81,7 +81,8 @@ exports.ScrollOffsetTypesName = "ScrollOffsetTypes";
|
|
|
81
81
|
exports.TabVariantDefinitions = ["default", "navigation", "settings"];
|
|
82
82
|
exports.TabVariantsName = "TabVariants";
|
|
83
83
|
/** Text Box */
|
|
84
|
-
|
|
84
|
+
//export const TextBoxVariantTypeDefinitions = ["default", "filter-menu", "search", "find-slim", "numberselector", "numberselector-prepend", "link", "media"] as const;
|
|
85
|
+
exports.TextBoxVariantTypeDefinitions = ["default", "filter-menu", "search", "find-slim", "link", "media"];
|
|
85
86
|
exports.TextBoxVariantTypesName = "TextBoxVariantTypes";
|
|
86
87
|
exports.TextBoxTypeDefinitions = ["number"];
|
|
87
88
|
exports.TextBoxTypesName = "TextBoxTypes";
|