@omnia/fx-models 8.0.20-vnext → 8.0.22-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/Exposes.d.ts +1 -0
- package/Exposes.js +1 -0
- package/Extends.d.ts +2 -2
- package/IPropertiesApi.d.ts +1 -1
- package/Layout.d.ts +3 -1
- package/ManifestIds.d.ts +1 -0
- package/ManifestIds.js +3 -0
- package/TokenDefinition.d.ts +1 -1
- package/componentproptypes/ThemeableComponents.d.ts +1 -0
- package/docs/Api.d.ts +37 -0
- package/docs/Api.js +2 -0
- package/docs/index.d.ts +1 -0
- package/docs/index.js +4 -0
- package/enterprise-glossary/EnterpriseGlossaryApis.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +22 -14
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +8 -5
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +4 -2
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +33 -17
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +1 -1
- package/oxide/TreeView.d.ts +6 -6
- package/package.json +1 -1
- package/richtext-editor-extensions/BoldExtension.d.ts +1 -1
- package/ux/UxApi.d.ts +1 -1
package/Exposes.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ export * from "./auth";
|
|
|
116
116
|
export * from "./sidepanel";
|
|
117
117
|
export * from "./componentproptypes";
|
|
118
118
|
export * from "./oxide";
|
|
119
|
+
export * from "./docs";
|
|
119
120
|
export * from "./FilePicker";
|
|
120
121
|
export * from "./FileIdentifier";
|
|
121
122
|
export * from "./UserAgent";
|
package/Exposes.js
CHANGED
|
@@ -128,6 +128,7 @@ tslib_1.__exportStar(require("./auth"), exports);
|
|
|
128
128
|
tslib_1.__exportStar(require("./sidepanel"), exports);
|
|
129
129
|
tslib_1.__exportStar(require("./componentproptypes"), exports);
|
|
130
130
|
tslib_1.__exportStar(require("./oxide"), exports);
|
|
131
|
+
tslib_1.__exportStar(require("./docs"), exports);
|
|
131
132
|
//************************************************************************************ */
|
|
132
133
|
// End of folder exports
|
|
133
134
|
//************************************************************************************ */
|
package/Extends.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export interface IOmniaFxApi {
|
|
|
3
3
|
export interface IExtend {
|
|
4
4
|
fx: IOmniaFxApi;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface IOmniaFxExtendApiManifest {
|
|
7
7
|
}
|
|
8
8
|
export interface IExtendApiManifest {
|
|
9
|
-
fx:
|
|
9
|
+
fx: IOmniaFxExtendApiManifest;
|
|
10
10
|
}
|
|
11
11
|
export interface ApiPath {
|
|
12
12
|
path?: string;
|
package/IPropertiesApi.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare module "./Extends" {
|
|
|
35
35
|
implementation: Promise<IEnterprisePropertiesImplementationRegistration>;
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
interface
|
|
38
|
+
interface IOmniaFxExtendApiManifest {
|
|
39
39
|
properties: {
|
|
40
40
|
registration: ApiPath;
|
|
41
41
|
implementation: IExtendApiManifestWithConfiguration<GuidValue>;
|
package/Layout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MultilingualString, ThemeDefinition, IIcon, SpacingSettings, IconPickerModel, WebComponentDefinition, OmniaBlock, GuidValue, RadialGradientShapes, HorizontalAlignments, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes } from ".";
|
|
1
|
+
import { MultilingualString, ThemeDefinition, IIcon, SpacingSettings, IconPickerModel, WebComponentDefinition, OmniaBlock, GuidValue, RadialGradientShapes, HorizontalAlignments, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, ColorSchemaTypes, BlueprintTypes } from ".";
|
|
2
2
|
import { MessageBusTopicMediator } from "../";
|
|
3
3
|
import { TargetingFilterProperty } from "../sp";
|
|
4
4
|
import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
|
|
@@ -65,6 +65,8 @@ export interface LayoutItemSettings {
|
|
|
65
65
|
hidden?: boolean;
|
|
66
66
|
css: string;
|
|
67
67
|
customCssClasses: string;
|
|
68
|
+
colorSchemaType?: ColorSchemaTypes;
|
|
69
|
+
blueprintType?: BlueprintTypes;
|
|
68
70
|
}
|
|
69
71
|
export interface LinearGradientBackground extends BackgroundSettings {
|
|
70
72
|
degrees: number;
|
package/ManifestIds.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ export declare class OmniaWebComponentManifests {
|
|
|
148
148
|
static get FxUxInputToken(): Guid;
|
|
149
149
|
static get FxUxIconpicker(): Guid;
|
|
150
150
|
static get FxUxJourney(): Guid;
|
|
151
|
+
static get OBtn(): Guid;
|
|
151
152
|
static get FxUxMenuBlade(): Guid;
|
|
152
153
|
static get FxUxWizard(): Guid;
|
|
153
154
|
static get FxUxPeoplePicker(): Guid;
|
package/ManifestIds.js
CHANGED
|
@@ -460,6 +460,9 @@ class OmniaWebComponentManifests {
|
|
|
460
460
|
static get FxUxJourney() {
|
|
461
461
|
return new models_1.Guid("c362ce2d-88bf-493e-9581-d88a858fcae9");
|
|
462
462
|
}
|
|
463
|
+
static get OBtn() {
|
|
464
|
+
return new models_1.Guid("678a52a5-101d-4149-8d47-754aeae5f9f6");
|
|
465
|
+
}
|
|
463
466
|
static get FxUxMenuBlade() {
|
|
464
467
|
return new models_1.Guid("f3b4f675-c04e-45b1-a767-f98daabc0dc7");
|
|
465
468
|
}
|
package/TokenDefinition.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare module "./Extends" {
|
|
|
47
47
|
providers: Promise<ITokenProviderRegistration>;
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
interface
|
|
50
|
+
interface IOmniaFxExtendApiManifest {
|
|
51
51
|
tokens: {
|
|
52
52
|
registrations: ApiPath;
|
|
53
53
|
providers: IExtendApiManifestWithConfiguration<TokenManifestConfiguration>;
|
package/docs/Api.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
type Doc = {
|
|
2
|
+
type: string;
|
|
3
|
+
description: string;
|
|
4
|
+
};
|
|
5
|
+
export type ComponentDoc = {
|
|
6
|
+
props?: {
|
|
7
|
+
[name: string]: Doc;
|
|
8
|
+
};
|
|
9
|
+
models?: {
|
|
10
|
+
[name: string]: Doc;
|
|
11
|
+
};
|
|
12
|
+
slots?: {
|
|
13
|
+
[name: string]: Doc;
|
|
14
|
+
};
|
|
15
|
+
emits?: {
|
|
16
|
+
[name: string]: Doc;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export interface IComponentDocRegistrationApi {
|
|
20
|
+
register(elmentName: string, doc: ComponentDoc): void;
|
|
21
|
+
getComponentRegistrations(): {
|
|
22
|
+
[elmentName: string]: ComponentDoc;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
declare module "../Extends" {
|
|
26
|
+
interface IOmniaFxApi {
|
|
27
|
+
docs: {
|
|
28
|
+
registrations: Promise<IComponentDocRegistrationApi>;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
interface IOmniaFxExtendApiManifest {
|
|
32
|
+
docs: {
|
|
33
|
+
registrations: ApiPath;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {};
|
package/docs/Api.js
ADDED
package/docs/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Api";
|
package/docs/index.js
ADDED
|
@@ -24,7 +24,7 @@ declare module "../Extends" {
|
|
|
24
24
|
providers: Promise<IEnterpriseGlossaryInformationApi>;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
interface
|
|
27
|
+
interface IOmniaFxExtendApiManifest {
|
|
28
28
|
enterpriseGlossary: {
|
|
29
29
|
registrations: ApiPath;
|
|
30
30
|
providers: IExtendApiManifestWithConfiguration<EnterpriseGlossaryInformationProviderId>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Guid } from "../Guid";
|
|
2
|
+
import { TypographyDefinition } from "./TypographyDefinition";
|
|
2
3
|
export interface BoxDimensions {
|
|
3
4
|
top: number;
|
|
4
5
|
right: number;
|
|
@@ -8,8 +9,15 @@ export interface BoxDimensions {
|
|
|
8
9
|
export interface BoxBorder extends BoxDimensions {
|
|
9
10
|
color: string;
|
|
10
11
|
}
|
|
12
|
+
export interface BluePrintDefinitions {
|
|
13
|
+
default: BlueprintDefinition;
|
|
14
|
+
variant1: BlueprintDefinition;
|
|
15
|
+
variant2: BlueprintDefinition;
|
|
16
|
+
variant3: BlueprintDefinition;
|
|
17
|
+
}
|
|
11
18
|
export interface BlueprintDefinition {
|
|
12
19
|
id: Guid;
|
|
20
|
+
typography: TypographyDefinition;
|
|
13
21
|
button?: {
|
|
14
22
|
borderRadius?: BoxDimensions;
|
|
15
23
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Guid } from "../Guid";
|
|
2
|
-
import {
|
|
3
|
-
import { TypographyDefinition } from "./TypographyDefinition";
|
|
2
|
+
import { BluePrintDefinitions } from "./BlueprintDefinition";
|
|
4
3
|
export interface ColorTypeResult<resultType> {
|
|
5
4
|
base: resultType;
|
|
6
5
|
baseTone: resultType;
|
|
@@ -29,14 +28,7 @@ export interface ColorSchema {
|
|
|
29
28
|
container: ColorDefinition;
|
|
30
29
|
onContainer: ColorDefinition;
|
|
31
30
|
}
|
|
32
|
-
export interface
|
|
33
|
-
dark: ColorSchema;
|
|
34
|
-
light: ColorSchema;
|
|
35
|
-
}
|
|
36
|
-
export interface ThemeDefinitionV2 {
|
|
37
|
-
id: Guid;
|
|
38
|
-
name: string;
|
|
39
|
-
dark: boolean;
|
|
31
|
+
export interface ColorSchemas {
|
|
40
32
|
primary: ColorSchema;
|
|
41
33
|
secondary: ColorSchema;
|
|
42
34
|
accent1: ColorSchema;
|
|
@@ -46,10 +38,19 @@ export interface ThemeDefinitionV2 {
|
|
|
46
38
|
background: ColorSchema;
|
|
47
39
|
error: ColorSchema;
|
|
48
40
|
info: ColorSchema;
|
|
49
|
-
typography: TypographyDefinition;
|
|
50
|
-
blueprint: BlueprintDefinition;
|
|
51
41
|
}
|
|
52
|
-
export
|
|
42
|
+
export interface ColorGroup {
|
|
43
|
+
dark: ColorSchema;
|
|
44
|
+
light: ColorSchema;
|
|
45
|
+
}
|
|
46
|
+
export interface ThemeDefinitionV2 {
|
|
47
|
+
id: Guid;
|
|
48
|
+
name: string;
|
|
49
|
+
dark: boolean;
|
|
50
|
+
colors: ColorSchemas;
|
|
51
|
+
blueprints: BluePrintDefinitions;
|
|
52
|
+
}
|
|
53
|
+
export type ColorSchemaType = "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "error" | "info";
|
|
53
54
|
export declare enum ColorSchemaTypes {
|
|
54
55
|
primary = "primary",
|
|
55
56
|
secondary = "secondary",
|
|
@@ -61,7 +62,14 @@ export declare enum ColorSchemaTypes {
|
|
|
61
62
|
error = "error",
|
|
62
63
|
info = "info"
|
|
63
64
|
}
|
|
64
|
-
export type
|
|
65
|
+
export type BlueprintType = "default" | "variant1" | "variant2" | "variant3";
|
|
66
|
+
export declare enum BlueprintTypes {
|
|
67
|
+
default = "default",
|
|
68
|
+
variant1 = "variant1",
|
|
69
|
+
variant2 = "variant2",
|
|
70
|
+
variant3 = "variant3"
|
|
71
|
+
}
|
|
72
|
+
export type ColorType = "base" | "onBase" | "container" | "onContainer";
|
|
65
73
|
export declare enum ColorTypes {
|
|
66
74
|
base = "base",
|
|
67
75
|
onBase = "onBase",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ColorTypes = exports.ColorSchemaTypes = void 0;
|
|
3
|
+
exports.ColorTypes = exports.BlueprintTypes = exports.ColorSchemaTypes = void 0;
|
|
4
4
|
var ColorSchemaTypes;
|
|
5
5
|
(function (ColorSchemaTypes) {
|
|
6
6
|
ColorSchemaTypes["primary"] = "primary";
|
|
@@ -13,14 +13,17 @@ var ColorSchemaTypes;
|
|
|
13
13
|
ColorSchemaTypes["error"] = "error";
|
|
14
14
|
ColorSchemaTypes["info"] = "info";
|
|
15
15
|
})(ColorSchemaTypes = exports.ColorSchemaTypes || (exports.ColorSchemaTypes = {}));
|
|
16
|
+
var BlueprintTypes;
|
|
17
|
+
(function (BlueprintTypes) {
|
|
18
|
+
BlueprintTypes["default"] = "default";
|
|
19
|
+
BlueprintTypes["variant1"] = "variant1";
|
|
20
|
+
BlueprintTypes["variant2"] = "variant2";
|
|
21
|
+
BlueprintTypes["variant3"] = "variant3";
|
|
22
|
+
})(BlueprintTypes = exports.BlueprintTypes || (exports.BlueprintTypes = {}));
|
|
16
23
|
var ColorTypes;
|
|
17
24
|
(function (ColorTypes) {
|
|
18
25
|
ColorTypes["base"] = "base";
|
|
19
|
-
//baseTone = "baseTone",
|
|
20
26
|
ColorTypes["onBase"] = "onBase";
|
|
21
|
-
//onBaseTone = "onBaseTone",
|
|
22
27
|
ColorTypes["container"] = "container";
|
|
23
|
-
//containerTone = "containerTone",
|
|
24
28
|
ColorTypes["onContainer"] = "onContainer";
|
|
25
|
-
//onContainerTone = "onContainerTone",
|
|
26
29
|
})(ColorTypes = exports.ColorTypes || (exports.ColorTypes = {}));
|
|
@@ -19,7 +19,7 @@ export interface TypographyTypeBreakPoint {
|
|
|
19
19
|
size: number;
|
|
20
20
|
lineHeight: number;
|
|
21
21
|
}
|
|
22
|
-
export type TypographyType =
|
|
22
|
+
export type TypographyType = "h1" | "h2" | "h3" | "text" | "caption" | "link";
|
|
23
23
|
export declare enum TypographyTypes {
|
|
24
24
|
h1 = "h1",
|
|
25
25
|
h2 = "h2",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeDefinitionInstance } from "@omnia/fx/ux";
|
|
2
|
+
import { BlueprintType, BlueprintTypes, ColorDefinition, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinitionV2";
|
|
2
3
|
import { TypographyType, TypographyTypeDefinition, TypographyTypes } from "./TypographyDefinition";
|
|
3
|
-
export declare const useThemeMethods: (
|
|
4
|
+
export declare const useThemeMethods: (getThemeDefinition: () => ThemeDefinitionInstance) => {
|
|
4
5
|
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => import("./ThemeDefinitionV2").ColorSchema;
|
|
6
|
+
blueprint: (blueprintType: BlueprintTypes | BlueprintType) => import("./BlueprintDefinition").BlueprintDefinition;
|
|
5
7
|
typography: (typographyType: TypographyTypes | TypographyType) => TypographyTypeDefinition;
|
|
6
8
|
color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
|
|
7
9
|
colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
|
|
@@ -3,54 +3,69 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useThemeMethods = void 0;
|
|
4
4
|
const ThemeDefinitionV2_1 = require("./ThemeDefinitionV2");
|
|
5
5
|
const TypographyDefinition_1 = require("./TypographyDefinition");
|
|
6
|
-
const useThemeMethods = (
|
|
6
|
+
const useThemeMethods = (getThemeDefinition) => {
|
|
7
7
|
const colorSchema = (colorSchemaType) => {
|
|
8
8
|
if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.primary) {
|
|
9
|
-
return
|
|
9
|
+
return getThemeDefinition().colors.primary;
|
|
10
10
|
}
|
|
11
11
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.secondary) {
|
|
12
|
-
return
|
|
12
|
+
return getThemeDefinition().colors.secondary;
|
|
13
13
|
}
|
|
14
14
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent1) {
|
|
15
|
-
return
|
|
15
|
+
return getThemeDefinition().colors.accent1;
|
|
16
16
|
}
|
|
17
17
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent2) {
|
|
18
|
-
return
|
|
18
|
+
return getThemeDefinition().colors.accent2;
|
|
19
19
|
}
|
|
20
20
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent3) {
|
|
21
|
-
return
|
|
21
|
+
return getThemeDefinition().colors.accent3;
|
|
22
22
|
}
|
|
23
23
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.background) {
|
|
24
|
-
return
|
|
24
|
+
return getThemeDefinition().colors.background;
|
|
25
25
|
}
|
|
26
26
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.neutral) {
|
|
27
|
-
return
|
|
27
|
+
return getThemeDefinition().colors.neutral;
|
|
28
28
|
}
|
|
29
29
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.error) {
|
|
30
|
-
return
|
|
30
|
+
return getThemeDefinition().colors.error;
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return getThemeDefinition().colors.background;
|
|
33
|
+
};
|
|
34
|
+
const blueprint = (blueprintType) => {
|
|
35
|
+
if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.default) {
|
|
36
|
+
return getThemeDefinition().blueprints.default;
|
|
37
|
+
}
|
|
38
|
+
else if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.variant1) {
|
|
39
|
+
return getThemeDefinition().blueprints.variant1;
|
|
40
|
+
}
|
|
41
|
+
else if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.variant2) {
|
|
42
|
+
return getThemeDefinition().blueprints.variant2;
|
|
43
|
+
}
|
|
44
|
+
else if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.variant3) {
|
|
45
|
+
return getThemeDefinition().blueprints.variant3;
|
|
46
|
+
}
|
|
47
|
+
return getThemeDefinition().blueprints.default;
|
|
33
48
|
};
|
|
34
49
|
const typography = (typographyType) => {
|
|
35
50
|
if (typographyType === TypographyDefinition_1.TypographyTypes.h1) {
|
|
36
|
-
return
|
|
51
|
+
return getThemeDefinition().blueprints.default.typography.h1;
|
|
37
52
|
}
|
|
38
53
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.h2) {
|
|
39
|
-
return
|
|
54
|
+
return getThemeDefinition().blueprints.default.typography.h2;
|
|
40
55
|
}
|
|
41
56
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.h3) {
|
|
42
|
-
return
|
|
57
|
+
return getThemeDefinition().blueprints.default.typography.h3;
|
|
43
58
|
}
|
|
44
59
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.caption) {
|
|
45
|
-
return
|
|
60
|
+
return getThemeDefinition().blueprints.default.typography.caption;
|
|
46
61
|
}
|
|
47
62
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.link) {
|
|
48
|
-
return
|
|
63
|
+
return getThemeDefinition().blueprints.default.typography.link;
|
|
49
64
|
}
|
|
50
65
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.text) {
|
|
51
|
-
return
|
|
66
|
+
return getThemeDefinition().blueprints.default.typography.text;
|
|
52
67
|
}
|
|
53
|
-
return
|
|
68
|
+
return getThemeDefinition().blueprints.default.typography.text;
|
|
54
69
|
};
|
|
55
70
|
const color = (colorSchemaType, colorType) => {
|
|
56
71
|
const mappedColorSchema = colorSchema(colorSchemaType);
|
|
@@ -109,6 +124,7 @@ const useThemeMethods = (themedefinition) => {
|
|
|
109
124
|
};
|
|
110
125
|
return {
|
|
111
126
|
colorSchema,
|
|
127
|
+
blueprint,
|
|
112
128
|
typography,
|
|
113
129
|
color,
|
|
114
130
|
colorDefinition,
|
|
@@ -148,7 +148,7 @@ export interface VelcronIcon {
|
|
|
148
148
|
name: string;
|
|
149
149
|
}
|
|
150
150
|
export interface VelcronAppDefinition extends VelcronDefinitionBase {
|
|
151
|
-
type: "
|
|
151
|
+
type: "Velcron";
|
|
152
152
|
body?: Array<VelcronDefinition>;
|
|
153
153
|
events?: VelcronOnLoadEvent & VelcronOnPressEvent;
|
|
154
154
|
actions?: {
|
package/oxide/TreeView.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IIcon } from "@omnia/fx-models";
|
|
2
2
|
export interface TreeViewItem<TValue = any> {
|
|
3
|
-
|
|
4
|
-
value
|
|
3
|
+
key?: string;
|
|
4
|
+
value?: TValue;
|
|
5
5
|
title: string;
|
|
6
|
-
icon
|
|
7
|
-
active
|
|
8
|
-
expanded
|
|
9
|
-
children
|
|
6
|
+
icon?: IIcon;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
children?: TreeViewItem[];
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { ToolbarProperties } from "./ToolbarProperties";
|
|
|
2
2
|
import { EditorCommand } from "./EditorCommand";
|
|
3
3
|
import { EditorMenuBar } from "./EditorMenuBar";
|
|
4
4
|
export interface BoldCommand extends EditorCommand {
|
|
5
|
-
|
|
5
|
+
toggleBold?: () => void;
|
|
6
6
|
}
|
|
7
7
|
export interface BoldMenuBar extends EditorMenuBar<BoldCommand> {
|
|
8
8
|
}
|