@forter/button-group
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.2.5](https://github.com/forter/web-components/compare/@forter/button-group@1.2.4...@forter/button-group@1.2.5) (2019-09-19) | ||
**Note:** Version bump only for package @forter/button-group | ||
## [1.2.4](https://github.com/forter/web-components/compare/@forter/button-group@1.2.3...@forter/button-group@1.2.4) (2019-09-19) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@forter/button-group", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Button Group from Forter Components", | ||
@@ -54,7 +54,7 @@ "author": "Forter Developers", | ||
"@forter/functions": "^2.0.0", | ||
"@forter/icon": "^3.2.1", | ||
"@forter/radio-button": "^2.1.4", | ||
"@forter/tooltip": "^2.0.2" | ||
"@forter/icon": "^3.2.2", | ||
"@forter/radio-button": "^2.1.5", | ||
"@forter/tooltip": "^2.0.3" | ||
}, | ||
"gitHead": "cb4bd2ac6e3727eb43e30dbccec7bdf7ee53efcc" | ||
"gitHead": "0aae1f4ddd21eb0daaab2d0b142f7eb25bd511e1" | ||
} |
import markdown from '../README.md'; | ||
const notes = { markdown }; | ||
import { html } from 'lit-html'; | ||
import { ifDefined } from 'lit-html/directives/if-defined'; | ||
import { storiesOf } from '@storybook/polymer'; | ||
import '../src/fc-button-group'; | ||
import { enumerateProperties } from '../../../lib/storybook-helpers'; | ||
import '../src'; | ||
import { FcButtonGroup } from '../src/FcButtonGroup'; | ||
const story = enumerateProperties(FcButtonGroup); | ||
@@ -16,5 +17,5 @@ /** | ||
*/ | ||
function story(title) { | ||
function template(title) { | ||
const { disabled, options, intent, label } = require(`../test/${title.toLowerCase()}/input.json`); | ||
const render = () => html` | ||
return story(html` | ||
<fc-button-group | ||
@@ -26,12 +27,16 @@ ?disabled="${ifDefined(disabled)}" | ||
></fc-button-group> | ||
`; | ||
return [title, render]; | ||
`); | ||
} | ||
(storiesOf('Controls|Button/Button Group', module) | ||
.addParameters({ notes, options: { selectedPanel: 'storybooks/knobs/panel' } }) | ||
.add(...story('When Enabled')) | ||
.add(...story('When Disabled')) | ||
.add(...story('With Only 2 Options')) | ||
.add(...story('Secondary Layout')) | ||
); | ||
export const whenEnabled = () => template('When Enabled') | ||
export const whenDisabled = () => template('When Disabled') | ||
export const withOnly2Options = () => template('With Only 2 Options') | ||
export const secondaryLayout = () => template('Secondary Layout') | ||
export default { | ||
title: 'Controls|Button/Button Group', | ||
parameters: { | ||
notes: { markdown }, | ||
options: { selectedPanel: 'storybooks/knobs/panel' }, | ||
}, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63403
1285
Updated@forter/icon@^3.2.2
Updated@forter/radio-button@^2.1.5
Updated@forter/tooltip@^2.0.3