@sit-onyx/nuxt-docs 0.4.0-dev-20260310125656 → 0.4.0-dev-20260310160710

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.
@@ -4,7 +4,7 @@ import type { OnyxPageLayoutProps, OnyxSidebarProps } from "sit-onyx";
4
4
  import type { SidebarNavigationItem } from "../composables/useSidebarNavigation.js";
5
5
 
6
6
  const props = defineProps<
7
- OnyxPageLayoutProps & {
7
+ Omit<OnyxPageLayoutProps, "noPadding"> & {
8
8
  sidebar?: OnyxSidebarProps;
9
9
  }
10
10
  >();
@@ -14,6 +14,10 @@ const slots = defineSlots<{
14
14
  * Main page content.
15
15
  */
16
16
  default(): unknown;
17
+ /**
18
+ * Optional hero content above the page content + table of contents.
19
+ */
20
+ hero?(): unknown;
17
21
  /**
18
22
  * Page footer content.
19
23
  */
@@ -44,7 +48,7 @@ const toc = computed(() => collection.data.value?.body.toc?.links ?? []);
44
48
  </script>
45
49
 
46
50
  <template>
47
- <OnyxPageLayout v-bind="props">
51
+ <OnyxPageLayout v-bind="props" no-padding>
48
52
  <template #sidebar>
49
53
  <OnyxSidebar
50
54
  class="sidebar"
@@ -79,7 +83,9 @@ const toc = computed(() => collection.data.value?.body.toc?.links ?? []);
79
83
  </OnyxSidebar>
80
84
  </template>
81
85
 
82
- <div class="content">
86
+ <slot name="hero"></slot>
87
+
88
+ <div class="content onyx-grid-layout">
83
89
  <div>
84
90
  <slot></slot>
85
91
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt-docs",
3
- "version": "0.4.0-dev-20260310125656",
3
+ "version": "0.4.0-dev-20260310160710",
4
4
  "description": "Nuxt layer/template for creating documentations with the onyx design system",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
@@ -33,7 +33,7 @@
33
33
  "sass-embedded": ">= 1",
34
34
  "@sit-onyx/icons": "^1.7.0",
35
35
  "@sit-onyx/nuxt": "^1.0.1",
36
- "sit-onyx": "^1.10.0-dev-20260310125656"
36
+ "sit-onyx": "^1.10.0-dev-20260310160710"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@fontsource-variable/source-code-pro": ">= 5",
@@ -52,7 +52,7 @@
52
52
  "@sit-onyx/icons": "^1.7.0",
53
53
  "@sit-onyx/nuxt": "^1.0.1",
54
54
  "@sit-onyx/shared": "^0.1.0",
55
- "sit-onyx": "^1.10.0-dev-20260310125656"
55
+ "sit-onyx": "^1.10.0-dev-20260310160710"
56
56
  },
57
57
  "scripts": {
58
58
  "dev": "pnpm dev:prepare && nuxi dev playground",