@tenphi/starlight 0.6.0 → 0.7.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/dist/components/ContrastSelect.astro +78 -0
- package/dist/components/GlobalStyles.js +1089 -192
- package/dist/components/LayoutComponents.js +148 -459
- package/dist/components/Logo.astro +4 -2
- package/dist/components/component-styles.test.ts +16 -0
- package/dist/icons/contrast.svg +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +564 -149
- package/dist/index.js.map +1 -1
- package/dist/{navigation-CC0dlAL8.js → navigation-CkQXI2Zb.js} +41 -2
- package/dist/navigation-CkQXI2Zb.js.map +1 -0
- package/dist/navigation.d.ts +11 -2
- package/dist/navigation.d.ts.map +1 -1
- package/dist/navigation.js +2 -2
- package/dist/overrides/Header.astro +4 -2
- package/dist/overrides/MobileMenuFooter.astro +2 -0
- package/dist/routes/DocsPage.astro +43 -186
- package/package.json +2 -3
- package/dist/components/NavigationTree.astro +0 -102
- package/dist/navigation-CC0dlAL8.js.map +0 -1
|
@@ -62,6 +62,22 @@ describe("component style configuration", () => {
|
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
+
it("exposes bridged Markdown components through the same style registry", () => {
|
|
66
|
+
configureComponentStyles({
|
|
67
|
+
MarkdownTable: { Table: { radius: "0" } },
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
expect(
|
|
71
|
+
resolveComponentStyles("MarkdownTable", {
|
|
72
|
+
Table: { border: true, radius: "1cr" },
|
|
73
|
+
Cell: { padding: "1.5x 2x" },
|
|
74
|
+
}),
|
|
75
|
+
).toEqual({
|
|
76
|
+
Table: { border: true, radius: "0" },
|
|
77
|
+
Cell: { padding: "1.5x 2x" },
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
65
81
|
it("keeps custom anatomy styles on the compatibility bridge", () => {
|
|
66
82
|
expect(
|
|
67
83
|
resolveLegacyAnatomyStyles({
|
package/dist/icons/contrast.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0-18 0M12 3v18"/></svg>
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ interface StarlightOptions {
|
|
|
6
6
|
title: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
customCss?: string[];
|
|
9
|
+
disable404Route?: boolean;
|
|
9
10
|
pagefind?: false | Record<string, unknown>;
|
|
10
11
|
sidebar?: unknown[];
|
|
11
12
|
[key: string]: unknown;
|
|
@@ -34,6 +35,8 @@ interface ResolvedDocsTheme {
|
|
|
34
35
|
focus: Record<string, string>;
|
|
35
36
|
shadow: Record<string, string>;
|
|
36
37
|
};
|
|
38
|
+
/** Glaze-generated Tasty color tokens, including interaction and status roles. */
|
|
39
|
+
colorTokens: Record<string, Record<string, string>>;
|
|
37
40
|
tokens: ThemeTokens;
|
|
38
41
|
presets: Record<string, TypographyPreset>;
|
|
39
42
|
contrast: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/starlight-runtime.d.ts","../src/integration.ts","../src/theme/index.ts","../src/theme/defaults.ts"],"mappings":";;;;UAEiB;EACf;EACA;EACA;EACA,mBAAmB;EACnB;GACC;;iBAGqB,UAAU,SAAS,mBAAmB;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/starlight-runtime.d.ts","../src/integration.ts","../src/theme/index.ts","../src/theme/defaults.ts"],"mappings":";;;;UAEiB;EACf;EACA;EACA;EACA;EACA,mBAAmB;EACnB;GACC;;iBAGqB,UAAU,SAAS,mBAAmB;;;UC2C7C;EACf,SAAS;EACT;;iBAGsB,SACtB,UAAS,kBACR;iBAigBa,eACd,QAAQ,kBAAkB,gBACzB;;;UC9iBc;EACf;IACE,SAAS;IACT,UAAU;IACV,UAAU;IACV,MAAM;IACN,UAAU;IACV,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,OAAO;IACP,QAAQ;;;EAGV,aAAa,eAAe;EAC5B,QAAQ;EACR,SAAS,eAAe;EACxB;IACE;IACA;IACA;IACA;;EAEF,aAAa;;iBAGC,iBAAiB,QAAO,cAAmB;;;cCvC9C;;;;;;;;;;;;cAkBA,4BAA4B,eAAe"}
|