@gjsify/adwaita-fonts 0.41.0 → 0.43.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/400-italic.css +6 -2
- package/400.css +6 -2
- package/README.md +32 -7
- package/index.css +6 -0
- package/index.d.ts +7 -2
- package/lib/esm/embedded.js +34 -0
- package/lib/types/embedded.d.ts +23 -0
- package/package.json +12 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// embedded — auto-generated by scripts/build-embedded.mjs.
|
|
2
|
+
// DO NOT EDIT. Every `src:` is a `data:` URI so the faces survive a bundler
|
|
3
|
+
// that turns CSS into a string and a build target that emits no assets.
|
|
4
|
+
|
|
5
|
+
/** `@font-face` for `files/adwaita-sans-400.ttf` (normal, weight 100 900), TTF inlined as a `data:` URI. */
|
|
6
|
+
export declare const ADWAITA_SANS_400_CSS: string;
|
|
7
|
+
|
|
8
|
+
/** `@font-face` for `files/adwaita-sans-400-italic.ttf` (italic, weight 100 900), TTF inlined as a `data:` URI. */
|
|
9
|
+
export declare const ADWAITA_SANS_400_ITALIC_CSS: string;
|
|
10
|
+
|
|
11
|
+
/** Every face this package ships, concatenated — what {@link applyAdwaitaFonts} injects. */
|
|
12
|
+
export declare const ADWAITA_FONTS_CSS: string;
|
|
13
|
+
|
|
14
|
+
/** The `<style>` id used for the injected rules, so a second call is a no-op. */
|
|
15
|
+
export declare const ADWAITA_FONTS_STYLE_ID: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Register the Adwaita Sans faces on `document`, idempotently.
|
|
19
|
+
*
|
|
20
|
+
* Returns `true` when it injected, `false` when the element was already there or
|
|
21
|
+
* there is no document (a non-browser host).
|
|
22
|
+
*/
|
|
23
|
+
export declare function applyAdwaitaFonts(target?: Document): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-fonts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "Adwaita Sans font package for browser targets (fontsource-style)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.css",
|
|
@@ -12,15 +12,25 @@
|
|
|
12
12
|
},
|
|
13
13
|
"./400.css": "./400.css",
|
|
14
14
|
"./400-italic.css": "./400-italic.css",
|
|
15
|
+
"./embedded": {
|
|
16
|
+
"types": "./lib/types/embedded.d.ts",
|
|
17
|
+
"default": "./lib/esm/embedded.js"
|
|
18
|
+
},
|
|
15
19
|
"./files/*": "./files/*"
|
|
16
20
|
},
|
|
17
21
|
"license": "OFL-1.1",
|
|
18
22
|
"files": [
|
|
19
23
|
"*.css",
|
|
20
24
|
"*.d.ts",
|
|
21
|
-
"files"
|
|
25
|
+
"files",
|
|
26
|
+
"lib"
|
|
22
27
|
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"clear": "gjsify clear lib",
|
|
30
|
+
"build": "node scripts/build-embedded.mjs"
|
|
31
|
+
},
|
|
23
32
|
"gjsify": {
|
|
33
|
+
"buildCache": false,
|
|
24
34
|
"runtimes": {
|
|
25
35
|
"gjs": "none",
|
|
26
36
|
"node": "none",
|