@skyux/theme 13.0.0-alpha.3 → 13.0.0-alpha.5
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 +193 -128
- package/css/themes/modern/styles.css +813 -1540
- package/fesm2022/skyux-theme.mjs +197 -77
- package/fesm2022/skyux-theme.mjs.map +1 -1
- package/index.d.ts +60 -36
- package/package.json +2 -2
- package/scss/_compat/_mixins.scss +4 -3
package/index.d.ts
CHANGED
|
@@ -21,9 +21,64 @@ declare class SkyThemeIconManifestService {
|
|
|
21
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyThemeIconManifestService>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* Defines properties for a mask icon.
|
|
27
|
+
*/
|
|
28
|
+
interface SkyThemeBrandMaskIcon {
|
|
29
|
+
/**
|
|
30
|
+
* The URL of the mask icon.
|
|
31
|
+
*/
|
|
32
|
+
url: string;
|
|
33
|
+
/**
|
|
34
|
+
* The color of the mask icon.
|
|
35
|
+
*/
|
|
36
|
+
color: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* Defines properties of SKY UX theme branding.
|
|
41
|
+
*/
|
|
42
|
+
declare class SkyThemeBrand {
|
|
43
|
+
#private;
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly version: string;
|
|
46
|
+
readonly styleUrl?: string | undefined;
|
|
47
|
+
readonly sriHash?: string | undefined;
|
|
48
|
+
readonly title?: string | undefined;
|
|
49
|
+
readonly faviconUrl?: string | undefined;
|
|
50
|
+
readonly maskIcon?: SkyThemeBrandMaskIcon | undefined;
|
|
51
|
+
get hostClass(): string;
|
|
52
|
+
private set hostClass(value);
|
|
53
|
+
/**
|
|
54
|
+
* Creates a new theme brand.
|
|
55
|
+
* @param name The name of the theme brand.
|
|
56
|
+
* @param version The version of the theme brand.
|
|
57
|
+
* @param hostClass The class on the host element which child components should reference when
|
|
58
|
+
* adjusting for a specified theme brand. This defaults to `sky-theme-brand-<name>`
|
|
59
|
+
* @param styleUrl The URL of the stylesheet to load for this brand
|
|
60
|
+
* @param sriHash The subresource integrity hash for the stylesheet
|
|
61
|
+
* @param title The title to display for this brand
|
|
62
|
+
* @param faviconUrl The URL of the favicon to use for this brand
|
|
63
|
+
* @param maskIcon The mask icon configuration for this brand
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, version: string, hostClass?: string, styleUrl?: string | undefined, sriHash?: string | undefined, title?: string | undefined, faviconUrl?: string | undefined, maskIcon?: SkyThemeBrandMaskIcon | undefined);
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* Serializes the theme brand to a JSON-compatible object.
|
|
69
|
+
*/
|
|
70
|
+
serialize(): SkyThemeBrandData;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* Deserializes a JSON object to a SkyThemeBrand instance.
|
|
74
|
+
*/
|
|
75
|
+
static deserialize(data: SkyThemeBrandData): SkyThemeBrand;
|
|
76
|
+
}
|
|
77
|
+
|
|
24
78
|
/**
|
|
25
79
|
* Type definitions for theme serialization and deserialization.
|
|
26
80
|
*/
|
|
81
|
+
|
|
27
82
|
/**
|
|
28
83
|
* Serialized representation of a SkyThemeMode.
|
|
29
84
|
*/
|
|
@@ -49,6 +104,9 @@ interface SkyThemeBrandData {
|
|
|
49
104
|
hostClass?: string;
|
|
50
105
|
styleUrl?: string;
|
|
51
106
|
sriHash?: string;
|
|
107
|
+
title?: string;
|
|
108
|
+
faviconUrl?: string;
|
|
109
|
+
maskIcon?: SkyThemeBrandMaskIcon;
|
|
52
110
|
}
|
|
53
111
|
/**
|
|
54
112
|
* Serialized representation of a SkyTheme.
|
|
@@ -163,40 +221,6 @@ declare class SkyTheme {
|
|
|
163
221
|
static deserialize(data: SkyThemeData): SkyTheme;
|
|
164
222
|
}
|
|
165
223
|
|
|
166
|
-
/**
|
|
167
|
-
* @internal
|
|
168
|
-
* Defines properties of SKY UX theme branding.
|
|
169
|
-
*/
|
|
170
|
-
declare class SkyThemeBrand {
|
|
171
|
-
#private;
|
|
172
|
-
readonly name: string;
|
|
173
|
-
readonly version: string;
|
|
174
|
-
readonly styleUrl?: string | undefined;
|
|
175
|
-
readonly sriHash?: string | undefined;
|
|
176
|
-
get hostClass(): string;
|
|
177
|
-
private set hostClass(value);
|
|
178
|
-
/**
|
|
179
|
-
* Creates a new theme brand.
|
|
180
|
-
* @param name The name of the theme brand.
|
|
181
|
-
* @param version The version of the theme brand.
|
|
182
|
-
* @param hostClass The class on the host element which child components should reference when
|
|
183
|
-
* adjusting for a specified theme brand. This defaults to `sky-theme-brand-<name>`
|
|
184
|
-
* @param styleUrl The URL of the stylesheet to load for this brand
|
|
185
|
-
* @param sriHash The subresource integrity hash for the stylesheet
|
|
186
|
-
*/
|
|
187
|
-
constructor(name: string, version: string, hostClass?: string, styleUrl?: string | undefined, sriHash?: string | undefined);
|
|
188
|
-
/**
|
|
189
|
-
* @internal
|
|
190
|
-
* Serializes the theme brand to a JSON-compatible object.
|
|
191
|
-
*/
|
|
192
|
-
serialize(): SkyThemeBrandData;
|
|
193
|
-
/**
|
|
194
|
-
* @internal
|
|
195
|
-
* Deserializes a JSON object to a SkyThemeBrand instance.
|
|
196
|
-
*/
|
|
197
|
-
static deserialize(data: SkyThemeBrandData): SkyThemeBrand;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
224
|
/**
|
|
201
225
|
* Specifies the theme and mode to be applied to a host element.
|
|
202
226
|
*/
|
|
@@ -273,9 +297,9 @@ declare class SkyThemeService {
|
|
|
273
297
|
setThemeSpacing(spacing: SkyThemeSpacing): void;
|
|
274
298
|
/**
|
|
275
299
|
* Updates the current theme brand.
|
|
276
|
-
* @param brand The new theme brand to apply.
|
|
300
|
+
* @param brand The new theme brand to apply, or undefined to clear the current brand.
|
|
277
301
|
*/
|
|
278
|
-
setThemeBrand(brand: SkyThemeBrand): void;
|
|
302
|
+
setThemeBrand(brand: SkyThemeBrand | undefined): void;
|
|
279
303
|
/**
|
|
280
304
|
* Updates the current theme settings.
|
|
281
305
|
* @param settings The new theme settings to apply.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/theme",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.5",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@angular/core": "^20.0.5"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@blackbaud/skyux-design-tokens": "
|
|
23
|
+
"@blackbaud/skyux-design-tokens": "3.0.0-alpha.0",
|
|
24
24
|
"@skyux/icons": "9.0.0",
|
|
25
25
|
"fontfaceobserver": "2.3.0",
|
|
26
26
|
"tslib": "^2.8.1"
|
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
@mixin sky-danger {
|
|
57
|
-
content: '
|
|
58
|
-
|
|
57
|
+
content: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGNsYXNzPSJza3ktaS1wYXRoLTEiIGQ9Ik0xNC4wNDM3IDMuMTgxODJDMTQuOTEzMiAxLjYwNjA2IDE3LjA4NjggMS42MDYwNiAxNy45NTYzIDMuMTgxODJMMjkuNjk0IDI0LjQ1NDVDMzAuNTYzNSAyNi4wMzAzIDI5LjQ3NjYgMjggMjcuNzM3NyAyOEg0LjI2MjI5QzIuNTIzMzcgMjggMS40MzY1NSAyNi4wMzAzIDIuMzA2MDEgMjQuNDU0NUwxNC4wNDM3IDMuMTgxODJaIiBmaWxsPSIjRUY0MDQ0Ii8+CjxwYXRoIGNsYXNzPSJza3ktaS1wYXRoLTIiIGQ9Ik0xNC42MTA0IDEwLjM4MzRIMTcuNDgxNkwxNy4xNjg3IDE4Ljc5NDVIMTQuOTIzM0wxNC42MTA0IDEwLjM4MzRaTTE1Ljk5MDggMjMuNjE2NkMxNS41NzM2IDIzLjYxNjYgMTUuMjE3OCAyMy40NjkzIDE0LjkyMzMgMjMuMTc0OEMxNC42NDExIDIyLjg4MDQgMTQuNSAyMi41MjQ1IDE0LjUgMjIuMTA3NEMxNC41IDIxLjY5MDIgMTQuNjQxMSAyMS4zMzQ0IDE0LjkyMzMgMjEuMDM5OUMxNS4yMTc4IDIwLjc0NTQgMTUuNTczNiAyMC41OTgyIDE1Ljk5MDggMjAuNTk4MkMxNi40MDggMjAuNTk4MiAxNi43NjM4IDIwLjc0NTQgMTcuMDU4MyAyMS4wMzk5QzE3LjM1MjggMjEuMzM0NCAxNy41IDIxLjY5MDIgMTcuNSAyMi4xMDc0QzE3LjUgMjIuNTI0NSAxNy4zNTI4IDIyLjg4MDQgMTcuMDU4MyAyMy4xNzQ4QzE2Ljc3NjEgMjMuNDY5MyAxNi40MjAyIDIzLjYxNjYgMTUuOTkwOCAyMy42MTY2WiIgZmlsbD0iI0ZGRkZGRiIvPgo8L3N2Zz4K');
|
|
58
|
+
display: inline-block;
|
|
59
|
+
width: var(--sky-size-icon-s, 16px);
|
|
60
|
+
vertical-align: middle;
|
|
59
61
|
margin-right: 5px;
|
|
60
|
-
color: var(--sky-highlight-color-danger);
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
@mixin sky-dropdown-item-btn {
|