mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 09:21:11 +00:00
d1f1f32418
- Update UserLinks data to wrap link content with spans and other markup changes - Use UserLinks__login.mustache and UserLinks__logout.mustache for rendering UserLink stories - Add new SearchBox story to account for search collapse behavior in modern Vector Change-Id: Ib0abce31db60a0c5c88dea17085e2974ac5112b5
19 lines
557 B
JavaScript
19 lines
557 B
JavaScript
import mustache from 'mustache';
|
|
import '../resources/skins.vector.styles/SearchBox.less';
|
|
import '../resources/skins.vector.styles/layouts/screen.less';
|
|
import { searchBoxData, legacySearchBoxData, searchBoxTemplate } from './SearchBox.stories.data';
|
|
|
|
export default {
|
|
title: 'SearchBox'
|
|
};
|
|
|
|
export const legacySimpleSearch = () => `
|
|
${mustache.render( searchBoxTemplate, legacySearchBoxData )}
|
|
`;
|
|
|
|
export const simpleSearch = () => `
|
|
<div class="skin-vector-consolidated-user-links">
|
|
${mustache.render( searchBoxTemplate, searchBoxData )}
|
|
</div>
|
|
`;
|