import * as UI from '../../src/index'
import { Canvas, Meta, Story } from '@storybook/addon-docs'; import { action } from '@storybook/addon-actions'
{UI.widgets.button( document, undefined, "Primary", action("clicked"))} {UI.widgets.button( document, undefined, "Secondary", action("clicked"), {buttonColor: "Secondary"})} {UI.widgets.button( document, undefined, "Secondary", action("clicked"), {needsBorder: true})} {UI.widgets.button( document, undefined, "Secondary", action("clicked"), {buttonColor: "Secondary", needsBorder: true})} {UI.widgets.continueButton(document, action("clicked"))} {UI.widgets.cancelButton(document, action("clicked"))} { () => { const div = document.createElement("div"); const result = UI.widgets.deleteButtonWithCheck( document, div, 'something', action('deleted')) return div } } { UI.widgets.button(document, 'https://solidproject.org/assets/img/solid-emblem.svg', 'test', action('clicked!')) } { UI.widgets.fileUploadButtonDiv(document, action('uploaded')) } { () => { document.outlineManager = { GotoSubject: action('go to subject') } return UI.widgets.linkButton(document, $rdf.namedNode('http://example.com/')) } } { UI.widgets.linkIcon( document, $rdf.namedNode('https://solidproject.org/') ) } { UI.widgets.linkIcon( document, $rdf.namedNode('https://solidproject.org/'), 'https://solidproject.org/favicon.ico' ) } { () => { const div = document.createElement('div') const p = document.createElement('p') p.appendChild(document.createTextNode('click x to remove me')) const button = UI.widgets.removeButton(document, p) div.appendChild(p) div.appendChild(button) return div } }