@skyux/theme 13.0.0-alpha.0 → 13.0.0-alpha.1
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 +100 -100
- package/css/themes/modern/styles.css +628 -563
- package/fesm2022/skyux-theme.mjs +59 -20
- package/fesm2022/skyux-theme.mjs.map +1 -1
- package/index.d.ts +14 -3
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ interface SkyThemeBrandData {
|
|
|
47
47
|
name: string;
|
|
48
48
|
version: string;
|
|
49
49
|
hostClass?: string;
|
|
50
|
+
styleUrl?: string;
|
|
51
|
+
sriHash?: string;
|
|
50
52
|
}
|
|
51
53
|
/**
|
|
52
54
|
* Serialized representation of a SkyTheme.
|
|
@@ -169,15 +171,20 @@ declare class SkyThemeBrand {
|
|
|
169
171
|
#private;
|
|
170
172
|
readonly name: string;
|
|
171
173
|
readonly version: string;
|
|
174
|
+
readonly styleUrl?: string | undefined;
|
|
175
|
+
readonly sriHash?: string | undefined;
|
|
172
176
|
get hostClass(): string;
|
|
173
177
|
private set hostClass(value);
|
|
174
178
|
/**
|
|
175
179
|
* Creates a new theme brand.
|
|
176
180
|
* @param name The name of the theme brand.
|
|
181
|
+
* @param version The version of the theme brand.
|
|
177
182
|
* @param hostClass The class on the host element which child components should reference when
|
|
178
|
-
* adjusting for a specified theme brand. This defaults to `sky-theme-brand-<name
|
|
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
|
|
179
186
|
*/
|
|
180
|
-
constructor(name: string, version: string, hostClass?: string);
|
|
187
|
+
constructor(name: string, version: string, hostClass?: string, styleUrl?: string | undefined, sriHash?: string | undefined);
|
|
181
188
|
/**
|
|
182
189
|
* @internal
|
|
183
190
|
* Serializes the theme brand to a JSON-compatible object.
|
|
@@ -245,8 +252,10 @@ declare class SkyThemeService {
|
|
|
245
252
|
* @param hostEl The host element under which themed components are rendered.
|
|
246
253
|
* @param renderer A Renderer2 instance for updating the host element with theme changes.
|
|
247
254
|
* @param theme The initial theme.
|
|
255
|
+
* @param registeredBrands An initial set of brands to register. Additional brands can
|
|
256
|
+
* be registered later via the registerBrand() method.
|
|
248
257
|
*/
|
|
249
|
-
init(hostEl: any, renderer: Renderer2, theme: SkyThemeSettings): void;
|
|
258
|
+
init(hostEl: any, renderer: Renderer2, theme: SkyThemeSettings, registeredBrands?: SkyThemeBrand[]): void;
|
|
250
259
|
/**
|
|
251
260
|
* Destroys the current theme service. This should only be called from a host component that
|
|
252
261
|
* provides its own theme to child components.
|
|
@@ -277,6 +286,8 @@ declare class SkyThemeService {
|
|
|
277
286
|
* @param theme The new theme to apply.
|
|
278
287
|
*/
|
|
279
288
|
setTheme(theme: SkyTheme): void;
|
|
289
|
+
registerBrand(brand: SkyThemeBrand): void;
|
|
290
|
+
unregisterBrand(name: string): void;
|
|
280
291
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyThemeService, never>;
|
|
281
292
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyThemeService>;
|
|
282
293
|
}
|
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.1",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@angular/core": "^20.0.5"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@blackbaud/skyux-design-tokens": "0.0.
|
|
24
|
-
"@skyux/icons": "
|
|
23
|
+
"@blackbaud/skyux-design-tokens": "2.0.0-alpha.3",
|
|
24
|
+
"@skyux/icons": "9.0.0",
|
|
25
25
|
"fontfaceobserver": "2.3.0",
|
|
26
26
|
"tslib": "^2.8.1"
|
|
27
27
|
},
|