mediawiki-skins-Vector/stories/Header.stories.data.js
jdlrobson ad5c127239 [Storybook] Add Header component
* Moves screen variables relating to Header to Header
* Adds a Header storybook entry
* Moves data-logo from Logo template to Header.mustache
* Updates UserLinks to use USER_LINK_PARTIALS
* Renames confusing SearchBox story names
* Updates package.json to use a static folder.
* Use mediawiki.org for sourcing mw-ui-button and mw-ui-icon styles
since deploys there come earlier
* Removes usages of ID selectors

Change-Id: I0e158fa7e62c56a50cfff497d75f0808effd1eed
2021-09-14 18:33:10 +00:00

24 lines
896 B
JavaScript

import headerTemplate from '!!raw-loader!../includes/templates/Header.mustache';
import { logoTemplate as Logo, LOGO_TEMPLATE_DATA } from './Logo.stories.data';
import { searchBoxTemplate as SearchBox,
searchBoxDataWithCollapsing,
SEARCH_TEMPLATE_PARTIALS } from './SearchBox.stories.data';
import { userLinksTemplate as UserLinks,
USER_LINKS_LOGGED_OUT_TEMPLATE_DATA,
USER_LINK_PARTIALS } from './UserLinks.stories.data';
export const HEADER_TEMPLATE_PARTIALS = Object.assign( {
SearchBox,
Logo,
UserLinks
}, SEARCH_TEMPLATE_PARTIALS, USER_LINK_PARTIALS );
export { headerTemplate };
export const HEADER_TEMPLATE_DATA = Object.assign( {
'msg-vector-main-menu-tooltip': 'Tooltip',
'msg-vector-action-toggle-sidebar': 'Toggle',
'data-search-box': searchBoxDataWithCollapsing,
'data-vector-user-links': USER_LINKS_LOGGED_OUT_TEMPLATE_DATA
}, LOGO_TEMPLATE_DATA.wordmarkTaglineIcon );