This repository has been archived by the owner on Aug 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,942 additions
and
1,847 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,22 @@ | ||
import { storiesOf } from '@storybook/polymer/dist/client/index'; | ||
import { boolean, select } from '@storybook/addon-knobs'; | ||
import { storiesOf } from '@storybook/polymer/dist/client/index' | ||
import { boolean, select } from '@storybook/addon-knobs' | ||
|
||
import textbox from '@lit-any/components-paper-elements/textbox'; | ||
import docs from '../../notes/components/polymer-elements/textbox'; | ||
import set from '../set-logger'; | ||
import textbox from '@lit-any/components-paper-elements/textbox' | ||
import docs from '../../notes/components/polymer-elements/textbox' | ||
import set from '../set-logger' | ||
|
||
storiesOf('lit-form/component sets/Paper elements', module) | ||
.add('textbox', () => { | ||
const render = textbox({ | ||
type: select('type', ['single line', 'multi line'], 'single line'), | ||
}); | ||
}) | ||
|
||
const field = { | ||
title: 'Text field', | ||
required: boolean('required', false), | ||
}; | ||
} | ||
|
||
const input = render(field, 'id', '', set); | ||
const input = render(field, 'id', '', set) | ||
|
||
return docs(input); | ||
}); | ||
return docs(input) | ||
}) |
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,3 +1,3 @@ | ||
export default function (value) { | ||
console.log('selected value:', value); | ||
console.log('selected value:', value) | ||
} |
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,22 @@ | ||
import { storiesOf } from '@storybook/polymer/dist/client/index'; | ||
import { boolean, select } from '@storybook/addon-knobs'; | ||
import { storiesOf } from '@storybook/polymer/dist/client/index' | ||
import { boolean, select } from '@storybook/addon-knobs' | ||
|
||
import textbox from '@lit-any/components-vaadin/textbox'; | ||
import docs from '../../notes/components/vaadin/textbox'; | ||
import set from '../set-logger'; | ||
import textbox from '@lit-any/components-vaadin/textbox' | ||
import docs from '../../notes/components/vaadin/textbox' | ||
import set from '../set-logger' | ||
|
||
storiesOf('lit-form/component sets/Vaadin', module) | ||
.add('textbox', () => { | ||
const render = textbox({ | ||
type: select('type', ['single line', 'multi line'], 'single line'), | ||
}); | ||
}) | ||
|
||
const field = { | ||
title: 'Text field', | ||
required: boolean('required', false), | ||
}; | ||
} | ||
|
||
const input = render(field, 'id', '', set); | ||
const input = render(field, 'id', '', set) | ||
|
||
return docs(input); | ||
}); | ||
return docs(input) | ||
}) |
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,7 +1,7 @@ | ||
export default function (e) { | ||
const text = `URL: '${e.detail.target}' | ||
METHOD: '${e.detail.method}' | ||
BODY: ${JSON.stringify(e.detail.value, null, 2)}`; | ||
BODY: ${JSON.stringify(e.detail.value, null, 2)}` | ||
|
||
alert(text); | ||
alert(text) | ||
} |
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,13 +1,13 @@ | ||
export const showLabels = (boolean, v) => boolean('Show labels', typeof v === 'boolean' ? v : true); | ||
export const showLabels = (boolean, v) => boolean('Show labels', typeof v === 'boolean' ? v : true) | ||
|
||
export const noSubmitButton = (boolean, v) => boolean('No submit button', typeof v === 'boolean' ? v : false); | ||
export const noSubmitButton = (boolean, v) => boolean('No submit button', typeof v === 'boolean' ? v : false) | ||
|
||
export const noResetButton = (boolean, v) => boolean('No reset button', typeof v === 'boolean' ? v : false); | ||
export const noResetButton = (boolean, v) => boolean('No reset button', typeof v === 'boolean' ? v : false) | ||
|
||
export const defaultValue = (object, v) => object('Value', v); | ||
export const defaultValue = (object, v) => object('Value', v) | ||
|
||
export const submitButton = (text, v) => text('Submit button label', v); | ||
export const submitButton = (text, v) => text('Submit button label', v) | ||
|
||
export const resetButton = (text, v) => text('Reset button label', v); | ||
export const resetButton = (text, v) => text('Reset button label', v) | ||
|
||
export const contract = (object, c) => object('Contract', c); | ||
export const contract = (object, c) => object('Contract', c) |
Oops, something went wrong.