169 lines
5.3 KiB
JavaScript
169 lines
5.3 KiB
JavaScript
import { j as e } from "./jsx-runtime-C_nHp4yK.js";
|
|
import { H as o } from "./Header-Bz-bT1Sq.js";
|
|
import "./iframe-D_aMTKb2.js";
|
|
import "./preload-helper-DIZFD4sK.js";
|
|
import "./Logo-DM7O8ATg.js";
|
|
import "./MenuBar-anMCqtJv.js";
|
|
import "./MenuBarItem-Dp8NM2fx.js";
|
|
import "./Button-Z4hbXct5.js";
|
|
import "./AvatarContainer-Bt0G0TWZ.js";
|
|
import "./Avatar-C4Vb3oYl.js";
|
|
const x = {
|
|
title: "Components/Header",
|
|
component: o,
|
|
parameters: {
|
|
layout: "fullscreen",
|
|
docs: {
|
|
description: {
|
|
component:
|
|
"The main navigation header with responsive behavior across different breakpoints.",
|
|
},
|
|
},
|
|
},
|
|
argTypes: { onToggle: { action: "toggled" } },
|
|
tags: ["autodocs"],
|
|
},
|
|
t = {
|
|
args: {},
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story:
|
|
"Use the Viewport toolbar to change the iframe width and see how the header adapts to different screen sizes. The header shows different layouts for mobile, tablet, and desktop breakpoints.",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
a = {
|
|
args: {},
|
|
render: () =>
|
|
e.jsxs("div", {
|
|
className: "min-h-screen bg-[var(--color-surface-default-primary)]",
|
|
children: [
|
|
e.jsx(o, {}),
|
|
e.jsx("main", {
|
|
className: "p-8",
|
|
children: e.jsxs("div", {
|
|
className: "max-w-4xl mx-auto",
|
|
children: [
|
|
e.jsx("h1", {
|
|
className: "text-2xl font-bold text-white mb-4",
|
|
children: "Example Page Content",
|
|
}),
|
|
e.jsx("p", {
|
|
className: "text-white mb-4",
|
|
children:
|
|
"This demonstrates how the header looks in a realistic page context. The header maintains its responsive behavior while providing navigation for the page content.",
|
|
}),
|
|
e.jsx("div", {
|
|
className:
|
|
"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
children: [1, 2, 3, 4, 5, 6].map((s) =>
|
|
e.jsxs(
|
|
"div",
|
|
{
|
|
className:
|
|
"bg-[var(--color-surface-default-secondary)] p-4 rounded-lg",
|
|
children: [
|
|
e.jsxs("h3", {
|
|
className: "text-white font-semibold mb-2",
|
|
children: ["Content Block ", s],
|
|
}),
|
|
e.jsx("p", {
|
|
className:
|
|
"text-[var(--color-content-default-secondary)] text-sm",
|
|
children:
|
|
"This is example content to show how the header integrates with page content.",
|
|
}),
|
|
],
|
|
},
|
|
s,
|
|
),
|
|
),
|
|
}),
|
|
],
|
|
}),
|
|
}),
|
|
],
|
|
}),
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story:
|
|
"The header integrated into a full page layout to show how it works in context.",
|
|
},
|
|
},
|
|
},
|
|
};
|
|
t.parameters = {
|
|
...t.parameters,
|
|
docs: {
|
|
...t.parameters?.docs,
|
|
source: {
|
|
originalSource: `{
|
|
args: {},
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story: "Use the Viewport toolbar to change the iframe width and see how the header adapts to different screen sizes. The header shows different layouts for mobile, tablet, and desktop breakpoints."
|
|
}
|
|
}
|
|
}
|
|
}`,
|
|
...t.parameters?.docs?.source,
|
|
},
|
|
},
|
|
};
|
|
a.parameters = {
|
|
...a.parameters,
|
|
docs: {
|
|
...a.parameters?.docs,
|
|
source: {
|
|
originalSource: `{
|
|
args: {},
|
|
render: () => <div className="min-h-screen bg-[var(--color-surface-default-primary)]">
|
|
<Header />
|
|
<main className="p-8">
|
|
<div className="max-w-4xl mx-auto">
|
|
<h1 className="text-2xl font-bold text-white mb-4">
|
|
Example Page Content
|
|
</h1>
|
|
<p className="text-white mb-4">
|
|
This demonstrates how the header looks in a realistic page context.
|
|
The header maintains its responsive behavior while providing
|
|
navigation for the page content.
|
|
</p>
|
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
{[1, 2, 3, 4, 5, 6].map(i => <div key={i} className="bg-[var(--color-surface-default-secondary)] p-4 rounded-lg">
|
|
<h3 className="text-white font-semibold mb-2">
|
|
Content Block {i}
|
|
</h3>
|
|
<p className="text-[var(--color-content-default-secondary)] text-sm">
|
|
This is example content to show how the header integrates with
|
|
page content.
|
|
</p>
|
|
</div>)}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>,
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story: "The header integrated into a full page layout to show how it works in context."
|
|
}
|
|
}
|
|
}
|
|
}`,
|
|
...a.parameters?.docs?.source,
|
|
},
|
|
},
|
|
};
|
|
const f = ["Default", "InPageContext"];
|
|
export {
|
|
t as Default,
|
|
a as InPageContext,
|
|
f as __namedExportsOrder,
|
|
x as default,
|
|
};
|