@pantoken/css 0.3.7 → 0.3.8
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/dist/index.d.mts +5 -5
- package/dist/inject.d.mts +2 -3
- package/dist/style.canvas-high-contrast.css +1 -1
- package/dist/style.canvas-high-contrast.lean.css +1 -1
- package/dist/style.canvas.css +1 -1
- package/dist/style.canvas.lean.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.lean.css +1 -1
- package/dist/style.rebrand.light.css +1 -1
- package/dist/style.rebrand.light.lean.css +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -45,7 +45,7 @@ interface ToCssOptions {
|
|
|
45
45
|
* });
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
declare function toCss(tokens: readonly Token[], options?: ToCssOptions): string;
|
|
48
|
+
export declare function toCss(tokens: readonly Token[], options?: ToCssOptions): string;
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/emit.d.ts
|
|
51
51
|
/** One scoped block of custom properties, optionally wrapped in an `@layer`. */
|
|
@@ -81,7 +81,7 @@ interface CssSection {
|
|
|
81
81
|
* });
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare function buildCssFile({ comments, scope, properties, sections, inherits }: {
|
|
84
|
+
export declare function buildCssFile({ comments, scope, properties, sections, inherits }: {
|
|
85
85
|
comments: string[];
|
|
86
86
|
scope: string;
|
|
87
87
|
properties?: PropertyRule[];
|
|
@@ -100,7 +100,7 @@ declare function buildCssFile({ comments, scope, properties, sections, inherits
|
|
|
100
100
|
* document.head.insertAdjacentHTML("beforeend", `<style>${css}</style>`);
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare const css: string;
|
|
103
|
+
export declare const css: string;
|
|
104
104
|
/**
|
|
105
105
|
* The lean `rebrand` stylesheet string — the full sheet minus the `--instui-icon-*` glyph tokens (the
|
|
106
106
|
* ~1,777 icon data-URIs that make up most of {@link css}). Roughly a sixth the size over the wire; the
|
|
@@ -114,6 +114,6 @@ declare const css: string;
|
|
|
114
114
|
* import { leanCss } from "@pantoken/css";
|
|
115
115
|
* ```
|
|
116
116
|
*/
|
|
117
|
-
declare const leanCss: string;
|
|
117
|
+
export declare const leanCss: string;
|
|
118
118
|
//#endregion
|
|
119
|
-
export { type CssSection, type ToCssOptions,
|
|
119
|
+
export { type CssSection, type ToCssOptions, css as default };
|
package/dist/inject.d.mts
CHANGED
|
@@ -17,6 +17,5 @@
|
|
|
17
17
|
* inject(frame.contentDocument ?? undefined);
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
declare function inject(doc?: Document | undefined): HTMLStyleElement | undefined;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { inject };
|
|
20
|
+
export declare function inject(doc?: Document | undefined): HTMLStyleElement | undefined;
|
|
21
|
+
//#endregion
|