mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 10:46:54 +00:00
ad5c127239
* 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
19 lines
611 B
JavaScript
19 lines
611 B
JavaScript
import mustache from 'mustache';
|
|
import '../resources/skins.vector.styles/SearchBox.less';
|
|
import '../resources/skins.vector.styles/layouts/screen.less';
|
|
import { searchBoxData, searchBoxDataWithCollapsing, searchBoxTemplate,
|
|
SEARCH_TEMPLATE_PARTIALS
|
|
} from './SearchBox.stories.data';
|
|
|
|
export default {
|
|
title: 'SearchBox'
|
|
};
|
|
|
|
export const searchBoxWithoutCollapsing = () => `
|
|
${mustache.render( searchBoxTemplate, searchBoxData, SEARCH_TEMPLATE_PARTIALS )}
|
|
`;
|
|
|
|
export const searchBoxWithCollapsing = () => `
|
|
${mustache.render( searchBoxTemplate, searchBoxDataWithCollapsing, SEARCH_TEMPLATE_PARTIALS )}
|
|
`;
|