@omnia/velcron 8.0.408-dev → 8.0.410-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.
@@ -0,0 +1,27 @@
1
+ export declare enum IconTypes {
2
+ FontAwesome = "IFontAwesomeIcon",
3
+ Fabric = "IFabricIcon",
4
+ Flag = "IFlagIcon",
5
+ Material = "IMaterialIcon",
6
+ Custom = "ICustomIcon",
7
+ SVG = "ISVG"
8
+ }
9
+ export interface IIcon {
10
+ iconType: IconTypes;
11
+ role?: string;
12
+ }
13
+ export interface IFontAwesomeIcon extends IIcon {
14
+ faClass: string;
15
+ }
16
+ export interface IMaterialIcon extends IIcon {
17
+ maClass: string;
18
+ }
19
+ export interface IFabricIcon extends IIcon {
20
+ fabClass: string;
21
+ }
22
+ export interface IFlagIcon extends IIcon {
23
+ flagClass: string;
24
+ }
25
+ export interface ISvgIcon extends IIcon {
26
+ svg: string;
27
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IconTypes = void 0;
4
+ var IconTypes;
5
+ (function (IconTypes) {
6
+ IconTypes["FontAwesome"] = "IFontAwesomeIcon";
7
+ IconTypes["Fabric"] = "IFabricIcon";
8
+ IconTypes["Flag"] = "IFlagIcon";
9
+ IconTypes["Material"] = "IMaterialIcon";
10
+ IconTypes["Custom"] = "ICustomIcon";
11
+ IconTypes["SVG"] = "ISVG";
12
+ })(IconTypes || (exports.IconTypes = IconTypes = {}));
@@ -21,3 +21,4 @@ export * from "./Messaging";
21
21
  export * from "./EventHook";
22
22
  export * from "./ShortId";
23
23
  export * from "./OmniaHub";
24
+ export * from "./Icon";
@@ -25,3 +25,4 @@ tslib_1.__exportStar(require("./Messaging"), exports);
25
25
  tslib_1.__exportStar(require("./EventHook"), exports);
26
26
  tslib_1.__exportStar(require("./ShortId"), exports);
27
27
  tslib_1.__exportStar(require("./OmniaHub"), exports);
28
+ tslib_1.__exportStar(require("./Icon"), exports);
@@ -1,4 +1,4 @@
1
- import { Spacing, SpacingScale, SpacingValue } from "@omnia/fx-models";
1
+ import { Spacing, SpacingScale, SpacingValue } from "./Spacing";
2
2
  export declare function useSpacingScaling(): {
3
3
  get: {
4
4
  valueWithoutScale: (value: SpacingValue) => string | number;
@@ -1,5 +1,5 @@
1
- import { Spacing } from "@omnia/fx-models";
2
1
  import { guid } from "../Guid";
2
+ import { type Spacing } from "../theme";
3
3
  import { VelcronAppDefinition } from "./VelcronDefinition";
4
4
  export interface VelcronSectionInstance {
5
5
  contentId: guid;
@@ -1,7 +1,16 @@
1
- import { ContainerFillBlueprint, BlueprintVariant, IFontAwesomeIcon, VelcronColorStyling, VelcronOverflowValues } from "@omnia/fx-models";
2
1
  import { DynamicState } from "../DynamicState";
2
+ import { IFontAwesomeIcon } from "../Icon";
3
+ import { BlueprintVariant, ContainerFillBlueprint } from "../theme";
3
4
  import { VelcronEvent, VelcronOnActiveEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnPersistingStateEvent, VelcronOnSavingEvent } from "./VelcronEvents";
4
5
  import { AnimationOptionsWithOverrides, InViewOptions, VariantDefinition, Variants } from "motion";
6
+ export type VelcronOverflowValues = "visible" | "hidden" | "scroll" | "auto";
7
+ export interface VelcronColorStyling {
8
+ colorSchemaType?: string;
9
+ colorType?: string;
10
+ filled?: boolean;
11
+ toned?: boolean;
12
+ color?: string;
13
+ }
5
14
  /**
6
15
  * Velcron definition base
7
16
  */
@@ -1,4 +1,4 @@
1
- import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerFillBlueprint, BackgroundDefinition, BlueprintVariant, IconBlueprint, ButtonBlueprint, VelcronOnPressOutsideEvent, VelcronOnPointerEnterEvent, VelcronOnPointerLeaveEvent } from "@omnia/velcron/internal-do-not-import-from-here/shared/models";
1
+ import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerFillBlueprint, BackgroundDefinition, BlueprintVariant, IconBlueprint, ButtonBlueprint, VelcronOnPressOutsideEvent, VelcronOnPointerEnterEvent, VelcronOnPointerLeaveEvent, VelcronColorStyling, VelcronOverflowValues } from "@omnia/velcron/internal-do-not-import-from-here/shared/models";
2
2
  import { VelcronComponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
3
3
  import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
4
4
  import { DynamicState, VelcronDefinition, VelcronEffects, useVelcronThemingStore } from "..";
@@ -157,13 +157,6 @@ export interface VelcronDefinitionWithEditMode extends VelcronDefinition {
157
157
  edit?: VelcronBindableProp<boolean>;
158
158
  value?: VelcronBindableProp;
159
159
  }
160
- export interface VelcronColorStyling {
161
- colorSchemaType?: string;
162
- colorType?: string;
163
- filled?: boolean;
164
- toned?: boolean;
165
- color?: string;
166
- }
167
160
  /**
168
161
  * @deprecated This interface is obsolete. Switch to use TextBlueprint instead.
169
162
  */
@@ -234,7 +227,6 @@ export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColo
234
227
  export interface VelcronPosition extends VelcronDimensions {
235
228
  type: "absolute" | "fixed" | "relative" | "sticky";
236
229
  }
237
- export type VelcronOverflowValues = "visible" | "hidden" | "scroll" | "auto";
238
230
  export interface VelcronFlexColumnDefinition extends VelcronDefinition, VelcronColorStyling, VelcronDefinitionHasEffects, VelcronDefinitionHasOverflow {
239
231
  type: "column";
240
232
  events?: VelcronOnPressEvent & VelcronOnPressOutsideEvent & VelcronOnPointerEnterEvent & VelcronOnPointerLeaveEvent;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.408-dev",
4
+ "version": "8.0.410-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,6 +1,6 @@
1
- import { VelcronBorder, VelcronColorStyling, VelcronDefinitionHasEffects, VelcronDefinitionHasOverflow, VelcronDimensions, VelcronEffects, VelcronRenderContext } from "../models";
1
+ import { VelcronBorder, VelcronDefinitionHasEffects, VelcronDefinitionHasOverflow, VelcronDimensions, VelcronEffects, VelcronRenderContext } from "../models";
2
2
  import { VelcronUnitProvider } from "../models/VelcronUnitProvider";
3
- import { SpacingBlueprint, VelcronBindableProp, VelcronDefinition } from "..";
3
+ import { SpacingBlueprint, VelcronBindableProp, VelcronColorStyling, VelcronDefinition } from "..";
4
4
  import { CSSProperties, StylexValue } from "internal/fx/ux/Styles.stylex";
5
5
  export declare class VelcronStyles {
6
6
  static styleProvider: (baseStyles: CSSProperties, definition: VelcronDefinition, renderCtx: VelcronRenderContext) => StylexValue;