@skyux/theme 12.20.0 → 12.22.0
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/css/sky.css +144 -57
- package/css/themes/modern/styles.css +679 -172
- package/fesm2022/skyux-theme.mjs +236 -56
- package/fesm2022/skyux-theme.mjs.map +1 -1
- package/lib/theming/theme-brand.d.ts +11 -0
- package/lib/theming/theme-mode.d.ts +11 -0
- package/lib/theming/theme-serialization-types.d.ts +47 -0
- package/lib/theming/theme-settings.d.ts +8 -0
- package/lib/theming/theme-spacing.d.ts +11 -0
- package/lib/theming/theme.d.ts +11 -0
- package/package.json +3 -3
- package/scss/mixins.scss +1 -1
- package/scss/variables.scss +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SkyThemeModeData } from './theme-serialization-types';
|
|
1
2
|
/**
|
|
2
3
|
* Defines properties of a SKY UX theme mode.
|
|
3
4
|
*/
|
|
@@ -18,4 +19,14 @@ export declare class SkyThemeMode {
|
|
|
18
19
|
* adjusting for a specified theme mode.
|
|
19
20
|
*/
|
|
20
21
|
constructor(name: string, hostClass: string);
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* Serializes the theme mode to a JSON-compatible object.
|
|
25
|
+
*/
|
|
26
|
+
serialize(): SkyThemeModeData;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* Deserializes a JSON object to a SkyThemeMode instance.
|
|
30
|
+
*/
|
|
31
|
+
static deserialize(data: SkyThemeModeData): SkyThemeMode;
|
|
21
32
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for theme serialization and deserialization.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Serialized representation of a SkyThemeMode.
|
|
6
|
+
*/
|
|
7
|
+
export interface SkyThemeModeData {
|
|
8
|
+
name: string;
|
|
9
|
+
hostClass?: string;
|
|
10
|
+
isPreset?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Serialized representation of a SkyThemeSpacing.
|
|
14
|
+
*/
|
|
15
|
+
export interface SkyThemeSpacingData {
|
|
16
|
+
name: string;
|
|
17
|
+
hostClass?: string;
|
|
18
|
+
isPreset?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Serialized representation of a SkyThemeBrand.
|
|
22
|
+
*/
|
|
23
|
+
export interface SkyThemeBrandData {
|
|
24
|
+
name: string;
|
|
25
|
+
version: string;
|
|
26
|
+
hostClass?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Serialized representation of a SkyTheme.
|
|
30
|
+
*/
|
|
31
|
+
export interface SkyThemeData {
|
|
32
|
+
name: string;
|
|
33
|
+
hostClass?: string;
|
|
34
|
+
supportedModes: SkyThemeModeData[];
|
|
35
|
+
supportedSpacing?: SkyThemeSpacingData[];
|
|
36
|
+
supportsBranding?: boolean;
|
|
37
|
+
isPreset?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Serialized representation of SkyThemeSettings (internal structure before JSON stringification).
|
|
41
|
+
*/
|
|
42
|
+
export interface SkyThemeSettingsData {
|
|
43
|
+
theme: SkyThemeData;
|
|
44
|
+
mode: SkyThemeModeData;
|
|
45
|
+
spacing?: SkyThemeSpacingData;
|
|
46
|
+
brand?: SkyThemeBrandData;
|
|
47
|
+
}
|
|
@@ -16,4 +16,12 @@ export declare class SkyThemeSettings {
|
|
|
16
16
|
* @param mode The theme mode.
|
|
17
17
|
*/
|
|
18
18
|
constructor(theme: SkyTheme, mode: SkyThemeMode, spacing?: SkyThemeSpacing, brand?: SkyThemeBrand | undefined);
|
|
19
|
+
/**
|
|
20
|
+
* Serializes the theme settings to a string.
|
|
21
|
+
*/
|
|
22
|
+
serialize(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Deserializes a string to a SkyThemeSettings instance.
|
|
25
|
+
*/
|
|
26
|
+
static deserialize(value: string): SkyThemeSettings;
|
|
19
27
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SkyThemeSpacingData } from './theme-serialization-types';
|
|
1
2
|
/**
|
|
2
3
|
* Defines properties of SKY UX theme spacing.
|
|
3
4
|
*/
|
|
@@ -18,4 +19,14 @@ export declare class SkyThemeSpacing {
|
|
|
18
19
|
* adjusting for a specified theme spacing.
|
|
19
20
|
*/
|
|
20
21
|
constructor(name: string, hostClass: string);
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* Serializes the theme spacing to a JSON-compatible object.
|
|
25
|
+
*/
|
|
26
|
+
serialize(): SkyThemeSpacingData;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* Deserializes a JSON object to a SkyThemeSpacing instance.
|
|
30
|
+
*/
|
|
31
|
+
static deserialize(data: SkyThemeSpacingData): SkyThemeSpacing;
|
|
21
32
|
}
|
package/lib/theming/theme.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SkyThemeMode } from './theme-mode';
|
|
2
|
+
import { SkyThemeData } from './theme-serialization-types';
|
|
2
3
|
import { SkyThemeSpacing } from './theme-spacing';
|
|
3
4
|
/**
|
|
4
5
|
* Defines properties of a SKY UX theme.
|
|
@@ -25,4 +26,14 @@ export declare class SkyTheme {
|
|
|
25
26
|
* @param supportedSpacing An array of spacing modes supported by the theme.
|
|
26
27
|
*/
|
|
27
28
|
constructor(name: string, hostClass: string, supportedModes: SkyThemeMode[], supportedSpacing?: SkyThemeSpacing[], supportsBranding?: boolean);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* Serializes the theme to a JSON-compatible object.
|
|
32
|
+
*/
|
|
33
|
+
serialize(): SkyThemeData;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
* Deserializes a JSON object to a SkyTheme instance.
|
|
37
|
+
*/
|
|
38
|
+
static deserialize(data: SkyThemeData): SkyTheme;
|
|
28
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/theme",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.22.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@angular/core": "^19.2.7"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@blackbaud/skyux-design-tokens": "0.0.
|
|
24
|
-
"@skyux/icons": "8.
|
|
23
|
+
"@blackbaud/skyux-design-tokens": "0.0.65",
|
|
24
|
+
"@skyux/icons": "8.2.0",
|
|
25
25
|
"fontfaceobserver": "2.3.0",
|
|
26
26
|
"tslib": "^2.8.1"
|
|
27
27
|
},
|
package/scss/mixins.scss
CHANGED
package/scss/variables.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is included as-is with the @skyux/theme NPM package to be used by our consumers.
|
|
2
|
-
@forward '
|
|
3
|
-
@forward '
|
|
2
|
+
@forward '@blackbaud/skyux-design-tokens/scss/variables';
|
|
3
|
+
@forward '@blackbaud/skyux-design-tokens/scss/themes/modern/variables';
|