feat(components): Added support for debug mode to DraftConfigurator
This commit is contained in:
parent
d99fc77a9c
commit
d038c10ad0
4 changed files with 37 additions and 2 deletions
|
@ -0,0 +1,22 @@
|
|||
import React from 'react'
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import Sa from '.'
|
||||
|
||||
const props = {
|
||||
raiseEvent: (type, data) => console.log(`Action of type ${type} triggered, data passed is`, data),
|
||||
updateValue: (name, value) => console.log(`Updated setting ${name}, value is now: ${value}`),
|
||||
name: 'sa',
|
||||
dflt: 'dflt',
|
||||
title: 'Seam allowance',
|
||||
desc:
|
||||
"This is the seam allowance description. I'm wrapped in a p tag. This component only sets the CSS class on a non-default value. It's up to you to supply the CSS to style it.",
|
||||
labels: {
|
||||
none: 'No seam allowance',
|
||||
dflt: 'Standard seam allowance',
|
||||
custom: 'Custom seam allowance'
|
||||
}
|
||||
}
|
||||
|
||||
storiesOf('Low level/DraftSettingSa', module)
|
||||
.add('Metric', () => <Sa {...props} units="metric" />)
|
||||
.add('Imperial', () => <Sa {...props} units="imperial" />)
|
Loading…
Add table
Add a link
Reference in a new issue