@grove-dev/starlight 0.7.0 → 0.9.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.
Files changed (34) hide show
  1. package/components/custom/ContainerSection.astro +1 -1
  2. package/components/custom/LinkButton.astro +7 -7
  3. package/components/custom/dropdown/Dropdown.astro +5 -5
  4. package/components/custom/dropdown/DropdownContent.astro +26 -26
  5. package/components/custom/dropdown/DropdownItem.astro +8 -8
  6. package/components/custom/dropdown/DropdownLabel.astro +4 -4
  7. package/components/custom/dropdown/DropdownTrigger.astro +12 -12
  8. package/components/custom/dropdown/index.ts +14 -14
  9. package/components/overrides/Footer.astro +3 -3
  10. package/components/overrides/Header.astro +5 -6
  11. package/components/overrides/Hero.astro +17 -17
  12. package/components/overrides/PageFrame.astro +11 -11
  13. package/components/overrides/PageTitle.astro +3 -3
  14. package/components/overrides/Search.astro +6 -6
  15. package/components/overrides/parts/Drawer.astro +5 -5
  16. package/components/overrides/parts/NavBar.astro +5 -5
  17. package/components/overrides/parts/SidebarSublist.astro +2 -2
  18. package/components/overrides/parts/toc/TableOfContentsList.astro +4 -4
  19. package/components/overrides/parts/toc/starlight-toc.ts +96 -98
  20. package/core/config/docs-schema.ts +20 -20
  21. package/core/config/expresive-code.ts +49 -51
  22. package/core/config/override.ts +36 -36
  23. package/core/config/schemas.ts +59 -59
  24. package/core/config/vite.ts +12 -12
  25. package/core/i18n.ts +113 -113
  26. package/core/plugin.ts +42 -42
  27. package/core/sidebar.ts +4 -4
  28. package/global.d.ts +3 -3
  29. package/package.json +1 -1
  30. package/schema.ts +39 -39
  31. package/styles/base.css +866 -907
  32. package/styles/theme.css +61 -61
  33. package/user-components.ts +1 -1
  34. package/virtual.d.ts +27 -27
package/styles/theme.css CHANGED
@@ -1,67 +1,67 @@
1
1
  @layer grove {
2
- :root[data-theme='dark'] {
3
- /* starlight gray scale */
4
- --foreground: oklch(98.5% 0 0); /* neutral-50 */
5
- --gray-1: oklch(98.5% 0 0); /* neutral-50 */
6
- --gray-2: oklch(87% 0 0); /* neutral-300 */
7
- --gray-3: oklch(70.8% 0 0); /* neutral-400 */
8
- --gray-4: oklch(55.6% 0 0); /* neutral-500 */
9
- --gray-5: oklch(37.1% 0 0); /* neutral-700 */
10
- --gray-6: oklch(26.9% 0 0); /* neutral-800 */
11
- --gray-7: oklch(20.5% 0 0); /* neutral-900 */
12
- --background: oklch(14.5% 0 0); /* neutral-950 */
2
+ :root[data-theme="dark"] {
3
+ /* starlight gray scale */
4
+ --foreground: oklch(98.5% 0 0); /* neutral-50 */
5
+ --gray-1: oklch(98.5% 0 0); /* neutral-50 */
6
+ --gray-2: oklch(87% 0 0); /* neutral-300 */
7
+ --gray-3: oklch(70.8% 0 0); /* neutral-400 */
8
+ --gray-4: oklch(55.6% 0 0); /* neutral-500 */
9
+ --gray-5: oklch(37.1% 0 0); /* neutral-700 */
10
+ --gray-6: oklch(26.9% 0 0); /* neutral-800 */
11
+ --gray-7: oklch(20.5% 0 0); /* neutral-900 */
12
+ --background: oklch(14.5% 0 0); /* neutral-950 */
13
13
 
14
- /* colors */
15
- --orange-low: oklch(40.8% 0.123 38.172);
16
- --orange: oklch(83.7% 0.128 66.29);
17
- --orange-high: oklch(90.1% 0.076 70.697);
18
- --green-low: oklch(26.6% 0.065 152.934);
19
- --green: oklch(79.2% 0.209 151.711);
20
- --green-high: oklch(87.1% 0.15 154.449);
21
- --blue-low: oklch(29.3% 0.066 243.157);
22
- --blue: oklch(70.7% 0.165 254.624);
23
- --blue-high: oklch(82.8% 0.111 230.318);
24
- --purple-low: oklch(29.1% 0.149 302.717);
25
- --purple: oklch(71.4% 0.203 305.504);
26
- --purple-high: oklch(82.7% 0.119 306.383);
27
- --red-low: oklch(25.8% 0.092 26.042);
28
- --red: oklch(70.4% 0.191 22.216);
29
- --red-high: oklch(80.8% 0.114 19.571);
30
- }
14
+ /* colors */
15
+ --orange-low: oklch(40.8% 0.123 38.172);
16
+ --orange: oklch(83.7% 0.128 66.29);
17
+ --orange-high: oklch(90.1% 0.076 70.697);
18
+ --green-low: oklch(26.6% 0.065 152.934);
19
+ --green: oklch(79.2% 0.209 151.711);
20
+ --green-high: oklch(87.1% 0.15 154.449);
21
+ --blue-low: oklch(29.3% 0.066 243.157);
22
+ --blue: oklch(70.7% 0.165 254.624);
23
+ --blue-high: oklch(82.8% 0.111 230.318);
24
+ --purple-low: oklch(29.1% 0.149 302.717);
25
+ --purple: oklch(71.4% 0.203 305.504);
26
+ --purple-high: oklch(82.7% 0.119 306.383);
27
+ --red-low: oklch(25.8% 0.092 26.042);
28
+ --red: oklch(70.4% 0.191 22.216);
29
+ --red-high: oklch(80.8% 0.114 19.571);
30
+ }
31
31
 
32
- :root[data-theme='light'] {
33
- /* starlight gray scale */
34
- --foreground: oklch(14.5% 0 0); /* neutral-950 */
35
- --gray-1: oklch(20.5% 0 0); /* neutral-900 */
36
- --gray-2: oklch(26.9% 0 0); /* neutral-800 */
37
- --gray-3: oklch(37.1% 0 0); /* neutral-700 */
38
- --gray-4: oklch(55.6% 0 0); /* neutral-500 */
39
- --gray-5: oklch(70.8% 0 0); /* neutral-400 */
40
- --gray-6: oklch(87% 0 0); /* neutral-300 */
41
- --gray-7: oklch(97% 0 0); /* neutral-100 */
42
- --background: oklch(100% 0 0); /* white */
32
+ :root[data-theme="light"] {
33
+ /* starlight gray scale */
34
+ --foreground: oklch(14.5% 0 0); /* neutral-950 */
35
+ --gray-1: oklch(20.5% 0 0); /* neutral-900 */
36
+ --gray-2: oklch(26.9% 0 0); /* neutral-800 */
37
+ --gray-3: oklch(37.1% 0 0); /* neutral-700 */
38
+ --gray-4: oklch(55.6% 0 0); /* neutral-500 */
39
+ --gray-5: oklch(70.8% 0 0); /* neutral-400 */
40
+ --gray-6: oklch(87% 0 0); /* neutral-300 */
41
+ --gray-7: oklch(97% 0 0); /* neutral-100 */
42
+ --background: oklch(100% 0 0); /* white */
43
43
 
44
- /* colors */
45
- --orange-low: oklch(98% 0.016 73.684);
46
- --orange: oklch(70.5% 0.213 47.604);
47
- --orange-high: oklch(55.3% 0.195 38.402);
48
- --green-low: oklch(98.2% 0.018 155.826);
49
- --green: oklch(72.3% 0.219 149.579);
50
- --green-high: oklch(52.7% 0.154 150.069);
51
- --blue-low: oklch(97% 0.014 254.604);
52
- --blue: oklch(68.5% 0.169 237.323);
53
- --blue-high: oklch(48.8% 0.243 264.376);
54
- --purple-low: oklch(97.7% 0.014 308.299);
55
- --purple: oklch(62.7% 0.265 303.9);
56
- --purple-high: oklch(49.6% 0.265 301.924);
57
- --red-low: oklch(97.1% 0.013 17.38);
58
- --red: oklch(63.7% 0.237 25.331);
59
- --red-high: oklch(50.5% 0.213 27.518);
44
+ /* colors */
45
+ --orange-low: oklch(98% 0.016 73.684);
46
+ --orange: oklch(70.5% 0.213 47.604);
47
+ --orange-high: oklch(55.3% 0.195 38.402);
48
+ --green-low: oklch(98.2% 0.018 155.826);
49
+ --green: oklch(72.3% 0.219 149.579);
50
+ --green-high: oklch(52.7% 0.154 150.069);
51
+ --blue-low: oklch(97% 0.014 254.604);
52
+ --blue: oklch(68.5% 0.169 237.323);
53
+ --blue-high: oklch(48.8% 0.243 264.376);
54
+ --purple-low: oklch(97.7% 0.014 308.299);
55
+ --purple: oklch(62.7% 0.265 303.9);
56
+ --purple-high: oklch(49.6% 0.265 301.924);
57
+ --red-low: oklch(97.1% 0.013 17.38);
58
+ --red: oklch(63.7% 0.237 25.331);
59
+ --red-high: oklch(50.5% 0.213 27.518);
60
60
 
61
- /* light overrides */
62
- --accent: var(--gray-7);
63
- --secondary: var(--gray-7);
64
- --muted-foreground: var(--gray-4);
65
- --popover-background: var(--background);
66
- }
61
+ /* light overrides */
62
+ --accent: var(--gray-7);
63
+ --secondary: var(--gray-7);
64
+ --muted-foreground: var(--gray-4);
65
+ --popover-background: var(--background);
66
+ }
67
67
  }
@@ -1,3 +1,3 @@
1
1
  export { default as ContainerSection } from './components/custom/ContainerSection.astro';
2
- export { default as LinkButton } from './components/custom/LinkButton.astro';
3
2
  export { default as Dropdown } from './components/custom/dropdown';
3
+ export { default as LinkButton } from './components/custom/LinkButton.astro';
package/virtual.d.ts CHANGED
@@ -1,51 +1,51 @@
1
1
  declare module 'virtual:grove-starlight-config' {
2
- const GroveStarlightConfig: import('./core/config/schemas').GroveStarlightConfig;
3
- export default GroveStarlightConfig;
2
+ const GroveStarlightConfig: import('./core/config/schemas').GroveStarlightConfig;
3
+ export default GroveStarlightConfig;
4
4
  }
5
5
 
6
6
  declare module 'virtual:starlight/user-config' {
7
- const Config: import('@astrojs/starlight/types').StarlightConfig;
8
- export default Config;
7
+ const Config: import('@astrojs/starlight/types').StarlightConfig;
8
+ export default Config;
9
9
  }
10
10
 
11
11
  declare module 'virtual:starlight/user-images' {
12
- type ImageMetadata = import('astro').ImageMetadata;
13
- export const logos: {
14
- dark?: ImageMetadata;
15
- light?: ImageMetadata;
16
- };
12
+ type ImageMetadata = import('astro').ImageMetadata;
13
+ export const logos: {
14
+ dark?: ImageMetadata;
15
+ light?: ImageMetadata;
16
+ };
17
17
  }
18
18
 
19
19
  declare module 'virtual:starlight/pagefind-config' {
20
- export const pagefindUserConfig: Partial<
21
- Extract<import('@astrojs/starlight/types').StarlightConfig['pagefind'], object>
22
- >;
20
+ export const pagefindUserConfig: Partial<
21
+ Extract<import('@astrojs/starlight/types').StarlightConfig['pagefind'], object>
22
+ >;
23
23
  }
24
24
 
25
25
  declare module 'virtual:starlight/project-context' {
26
- const ProjectContext: {
27
- root: string;
28
- srcDir: string;
29
- trailingSlash: import('astro').AstroConfig['trailingSlash'];
30
- build: {
31
- format: import('astro').AstroConfig['build']['format'];
32
- };
33
- legacyCollections: boolean;
26
+ const ProjectContext: {
27
+ root: string;
28
+ srcDir: string;
29
+ trailingSlash: import('astro').AstroConfig['trailingSlash'];
30
+ build: {
31
+ format: import('astro').AstroConfig['build']['format'];
34
32
  };
35
- export default ProjectContext;
33
+ legacyCollections: boolean;
34
+ };
35
+ export default ProjectContext;
36
36
  }
37
37
 
38
38
  declare module 'virtual:starlight/components/LastUpdated' {
39
- const LastUpdated: typeof import('@astrojs/starlight/components/LastUpdated.astro').default;
40
- export default LastUpdated;
39
+ const LastUpdated: typeof import('@astrojs/starlight/components/LastUpdated.astro').default;
40
+ export default LastUpdated;
41
41
  }
42
42
 
43
43
  declare module 'virtual:starlight/components/Pagination' {
44
- const Pagination: typeof import('@astrojs/starlight/components/Pagination.astro').default;
45
- export default Pagination;
44
+ const Pagination: typeof import('@astrojs/starlight/components/Pagination.astro').default;
45
+ export default Pagination;
46
46
  }
47
47
 
48
48
  declare module 'virtual:starlight/components/EditLink' {
49
- const EditLink: typeof import('@astrojs/starlight/components/EditLink.astro').default;
50
- export default EditLink;
49
+ const EditLink: typeof import('@astrojs/starlight/components/EditLink.astro').default;
50
+ export default EditLink;
51
51
  }