@omnia/velcron 8.0.552-dev → 8.0.553-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.
@@ -3,6 +3,7 @@ import { guid } from "./Guid";
3
3
  import { TenantIdentifier } from "./Tenant";
4
4
  import { OmniaBackendRuntimes, OmniaClientRuntimes } from "./Enums";
5
5
  import { ActorId } from "./activity-hub";
6
+ import { ThemeBoot } from "./theme";
6
7
  export interface OmniaSharedBootstrapData {
7
8
  uiThreadId: guid;
8
9
  workerThreadId: guid;
@@ -32,6 +33,7 @@ export interface OmniaSharedBootstrapData {
32
33
  * Don't use it, only for test perf
33
34
  */
34
35
  location: typeof window.location;
36
+ theming?: ThemeBoot;
35
37
  }
36
38
  export interface OmniaAnalytics {
37
39
  paq: any[];
@@ -6,6 +6,7 @@ export type Spacing = {
6
6
  left?: SpacingValue;
7
7
  };
8
8
  export type SpacingScale = "l" | "s";
9
+ export type SpacingPreset = "preset-layout" | "preset-section" | "preset-column" | "preset-block";
9
10
  export interface SpacingDefinition {
10
11
  name?: string;
11
12
  xs?: number;
@@ -14,7 +15,7 @@ export interface SpacingDefinition {
14
15
  l?: number;
15
16
  xl?: number;
16
17
  }
17
- export type SpacingValue = "xs" | "s" | "m" | "l" | "xl" | "l:xs" | "l:s" | "l:m" | "l:l" | "l:xl" | "s:xs" | "s:s" | "s:m" | "s:l" | "s:xl" | number;
18
+ export type SpacingValue = "xs" | "s" | "m" | "l" | "xl" | "l:xs" | "l:s" | "l:m" | "l:l" | "l:xl" | "s:xs" | "s:s" | "s:m" | "s:l" | "s:xl" | number | SpacingPreset;
18
19
  export declare enum SpacingTypes {
19
20
  xs = "xs",
20
21
  s = "s",
@@ -4,6 +4,7 @@ import { Id } from "../Id";
4
4
  import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, ContainerFillBlueprints, MediaResources, SpacingBlueprint, TextFillBlueprints } from "./Blueprints";
5
5
  import { Color } from "./Color";
6
6
  import { LegacyBorderDefinition, LegacyThemeDefinition } from "./LegacyThemeDefinition";
7
+ import { Spacing, SpacingValue } from "./Spacing";
7
8
  import { ThemeBase } from "./ThemeBase";
8
9
  import { TypographyBlueprint } from "./Typography";
9
10
  export type ThemeContextType = "default" | "admin" | "designer" | "preview";
@@ -76,8 +77,18 @@ export interface ThemeDefinitionReference {
76
77
  export interface ThemeSettings {
77
78
  layoutWrapper?: {
78
79
  width?: number;
80
+ margin?: SpacingValue;
81
+ };
82
+ blockSpacing?: SpacingValue;
83
+ sectionMargin?: Spacing;
84
+ columnSpacing?: SpacingValue;
85
+ iconStyling?: {
86
+ style?: ThemeIconStyle;
87
+ pack?: ThemeIconPack;
79
88
  };
80
89
  }
90
+ export type ThemeIconStyle = "solid" | "regular" | "light" | "thin";
91
+ export type ThemeIconPack = "classic" | "duotone" | "sharp" | "sharp-duotone";
81
92
  export interface ResolvedThemeDefinition extends ThemeDefinition<ColorSchemas> {
82
93
  typography?: TypographyBlueprint;
83
94
  spacing?: SpacingBlueprint;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.552-dev",
4
+ "version": "8.0.553-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"