import { h } from '@stencil/core' import { menuDictionary, navDictionary, } from '../../mds-header-bar/meta/dictionary' import { appearanceDictionary, appearanceSetDictionary, } from '../meta/dictionary' export default { title: 'UI / Header', argTypes: { appearance: { description: 'Sets the appearance of the header bar element', options: appearanceDictionary, control: { type: 'select' }, }, 'appearance-set': { description: 'Sets the appearance of the header bar element depending on the scroll position', options: appearanceSetDictionary, control: { type: 'select' }, }, backdrop: { description: 'Sets if the backdrop is shown when the mds-header-bar attribute appearace is set to `inline`', type: 'boolean', }, 'auto-hide': { type: 'number', description: 'When the page is scrolled down, the component mds-header-bar is hidden starting from the `autoHide` attribute\'s value, then if the page is scrolled up it is shown again', }, menu: { description: 'Sets the visibility type of the hamburger menu of mds-header-bar', options: menuDictionary, control: { type: 'select' }, }, nav: { description: 'Sets the visibility type of the navigation menu of mds-header-bar', options: navDictionary, control: { type: 'select' }, }, }, } const Template = args => (
{Array(40) .fill(null) .map((_value, index) => (
{index === 0 ? '0px' : index + '00px'}
))}
Mobile menu Shows up under 1024px
Accedi Registrati
Gruppo Maggioli Header by RD Team
Accedi Registrati
) const TemplateAutoHide = args => (
{Array(40) .fill(null) .map((_value, index) => (
{index === 0 ? '0px' : index + '00px'}
))}
Mobile menu Shows up under 1024px
Accedi Registrati
Gruppo Maggioli Header by RD Team
Accedi Registrati
) const TemplateLandingPage = args => (
Hey WelcomeTo ThisBeautiful AndIncrediblyNice FakeLandingPage ForYourJoy ByeBye Bro
{Array(18) .fill(null) .map(() => (
This is a section title Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus iure, ratione beatae quam optio cumque rerum modi consectetur odit eligendi omnis veniam fuga non ipsam voluptatum a ut neque illum.
))}
Mobile menu Shows up under 1024px
Accedi Registrati
Gruppo Maggioli Header by RD Team
Accedi Registrati
) export const Default = { render: Template, } export const AutoHide = { render: TemplateAutoHide, args: { 'auto-hide': 300, threshold: 10, }, } export const Appearance = { render: TemplateAutoHide, args: { appearance: 'inline', }, } export const AppearanceSet = { render: TemplateLandingPage, args: { 'appearance-set': 'inline, stripe 548', 'auto-hide': 800, appearance: 'inline', menu: 'all', threshold: 10, }, }