function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import React from 'react';
import { storiesOf } from '@storybook/react';
import NumberInput from './index';
const data = {
  label: 'Product Name',
  value: 2,
  price: 125,
  min: 0,
  max: 10,
  showTotal: false
};
storiesOf('Input Components | Incrementor', module).add('Without Price', () => /*#__PURE__*/React.createElement(NumberInput, _extends({}, data, {
  price: null
}))).add('Without Total', () => /*#__PURE__*/React.createElement(NumberInput, data)).add('With Total', () => /*#__PURE__*/React.createElement(NumberInput, _extends({}, data, {
  showTotal: true
})));