UNPKG

@wix/design-system

Version:

@wix/design-system

59 lines 1.49 kB
import _extends from "@babel/runtime/helpers/extends"; var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/FilePicker/test/FilePicker.visual.jsx", _this = this; import React from 'react'; import { storiesOf } from '@storybook/react'; import FilePicker from '../FilePicker'; var defaultProps = { mainLabel: 'Choose File' }; var tests = [{ its: [{ it: 'default', props: {} }, { it: 'header', props: { header: 'Header' } }, { it: 'error', props: { error: true, errorMessage: 'ERROR' } }, { it: 'long error', props: { error: true, errorMessage: 'ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR' } }] }]; tests.forEach(function (_ref) { var its = _ref.its; its.forEach(function (_ref2) { var it = _ref2.it, props = _ref2.props; storiesOf("FilePicker", module).add(it, function () { return /*#__PURE__*/React.createElement("div", { style: { width: '300px' }, __self: _this, __source: { fileName: _jsxFileName, lineNumber: 45, columnNumber: 7 } }, /*#__PURE__*/React.createElement(FilePicker, _extends({}, defaultProps, props, { __self: _this, __source: { fileName: _jsxFileName, lineNumber: 46, columnNumber: 9 } }))); }); }); });