-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* issue #592: menu docs and better stories * issue #592: fixing some typos * adding the docs to the select * adding select documentation * adding select documentation * issue #592: docs for menu and more * issue #592: docs for menu and more * adding an initial content fo volta to vivid migration
- Loading branch information
Showing
14 changed files
with
195 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.../context/stories/context-basic.config.mjs → ...t/stories/context-introduction.config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,49 @@ | ||
import { html } from 'lit-element'; | ||
import { spread } from '@open-wc/lit-helpers'; | ||
|
||
const Template = args => html` | ||
const TemplateA = args => html` | ||
<div style="position: relative"> | ||
<vwc-button id="button" label="Open menu" @click="${anchorClickHandler}"></vwc-button> | ||
<vwc-menu id="menu" ...=${spread(args)}> | ||
<vwc-menu id="menu" ...=${spread(args)} @selected="${onMenuSelected}"> | ||
<vwc-list-item>Basic item 1</vwc-list-item> | ||
<vwc-list-item>Basic item 2</vwc-list-item> | ||
<vwc-list-item>Basic item 3</vwc-list-item> | ||
<vwc-list-item>Basic item 4</vwc-list-item> | ||
</vwc-menu> | ||
</div>`; | ||
</div> | ||
`; | ||
|
||
export const Basic = Template.bind({}); | ||
export const WithVWCListItem = TemplateA.bind({}); | ||
|
||
const TemplateB = args => html` | ||
<div style="position: relative"> | ||
<vwc-button id="button" label="Open menu" @click="${anchorClickHandler}"></vwc-button> | ||
<vwc-menu id="menu" ...=${spread(args)} @selected="${onMenuSelected}"> | ||
<vwc-list-item> | ||
<div>Basic item 1</div> | ||
</vwc-list-item> | ||
<vwc-list-item> | ||
<div>Basic item 2</div> | ||
</vwc-list-item> | ||
<vwc-list-item> | ||
<div>Basic item 3</div> | ||
</vwc-list-item> | ||
<vwc-list-item> | ||
<div>Basic item 4</div> | ||
</vwc-list-item> | ||
</vwc-menu> | ||
</div> | ||
`; | ||
|
||
export const WithVWCListItemComplex = TemplateB.bind({}); | ||
|
||
function anchorClickHandler() { | ||
const anchor = document.querySelector('#button'); | ||
const menu = document.querySelector('#menu'); | ||
menu.anchor = anchor; | ||
menu.open = true; | ||
} | ||
|
||
function onMenuSelected(e) { | ||
console.log(e.detail); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default { | ||
sourcePath: '../readme.md', | ||
outputName: 'menu-introduction', | ||
story: { | ||
title: 'Components/Atoms/Menu/Introduction', | ||
name: 'Introduction', | ||
parameters: { | ||
options: { | ||
showPanel: false, | ||
isToolshown: false | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default { | ||
sourcePath: '../readme.md', | ||
outputName: 'select-introduction', | ||
story: { | ||
title: 'Components/Atoms/Select/Introduction', | ||
name: 'Introduction', | ||
parameters: { | ||
options: { | ||
showPanel: false, | ||
isToolshown: false | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { | ||
hrefLinkProcessing | ||
} from '../../../.storybook/build-scripts/create-stories-from-md.mjs'; | ||
|
||
export default { | ||
sourcePath: '../../volta-to-vivid.md', | ||
outputName: 'context-volta-to-vivid', | ||
story: { | ||
title: 'Guides/Volta To Vivid Migration', | ||
name: 'VoltaToVividMigration', | ||
parameters: { | ||
options: { | ||
showPanel: false, | ||
isToolshown: false | ||
} | ||
} | ||
}, | ||
htmlPostProcess: htmlText => { | ||
return hrefLinkProcessing(htmlText, [ | ||
['href="../readme.md"', '?path=/story/introduction-meet-vivid--meet-vivid'], | ||
['href="./architecture.md"', '?path=/story/introduction-architecture--architecture'] | ||
]); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Summary | ||
|
||
[Back to main page](../readme.md) | ||
|
||
This page is called to concentrate few most useful and widely relevant tips and recipes for migrating the existing Vonage front end applications to Vivid. | ||
|
||
# Typography | ||
|
||
## Headers | ||
|
||
Headers in Vivid got size upscale to provide more flexibility and options. | ||
Therefore, any existing header level `X` in the Volta based application should be changed to header `X+2`: | ||
| Volta | Vivid | | ||
|-------|-------| | ||
| `h1` | `h3` | | ||
| `h2` | `h4` | | ||
| `h3` | `h5` | | ||
| `h4` | `h6` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters