UNPKG

@navinc/base-react-components

Version:
25 lines 1.72 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = require("@storybook/react"); const addon_knobs_1 = require("@storybook/addon-knobs"); const react_storybook_addon_props_combinations_1 = __importDefault(require("react-storybook-addon-props-combinations")); const index_js_1 = __importDefault(require("./index.js")); const readme_md_1 = __importDefault(require("./readme.md")); (0, react_1.storiesOf)('1. Components | Form Elements', module).add('CurrencyInput', () => ((0, jsx_runtime_1.jsx)(index_js_1.default, { lede: (0, addon_knobs_1.text)('lede', 'Input lede'), label: (0, addon_knobs_1.text)('label', 'Input some text'), type: (0, addon_knobs_1.text)('type', 'text'), value: (0, addon_knobs_1.text)('value', 'I am an input component'), required: (0, addon_knobs_1.boolean)('required', false), hasSpaceForErrors: (0, addon_knobs_1.boolean)('hasSpaceForErrors', false), isInvalid: (0, addon_knobs_1.boolean)('isInvalid', false), errors: (0, addon_knobs_1.array)('errors[]', []) }, void 0)), { info: { text: readme_md_1.default }, }); (0, react_1.storiesOf)('2. Misc | Variations', module).add('CurrencyInput', (0, react_storybook_addon_props_combinations_1.default)(index_js_1.default, { label: ['Input some text'], type: ['text'], value: ['I am an input component'], hasSpaceForErrors: [false, true], isInvalid: [false, true], errors: [[], ['An error'], ['One error', 'Two Errors']], }), { info: { disable: true }, }); //# sourceMappingURL=story.js.map