UNPKG

@up-group/react-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

20 lines 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); var react_1 = require("@storybook/react"); var theming_1 = require("../../../Common/theming"); var themedComponents_1 = require("../../../Common/theming/themedComponents"); var UpInput_1 = require("./UpInput"); react_1.storiesOf('UpInput', module) .addWithInfo('Text input', 'Utilisation simple', function () { return (React.createElement(themedComponents_1.ThemeProvider, { theme: theming_1.default }, React.createElement("div", { style: { padding: "30px" } }, React.createElement(UpInput_1.default, { type: "text" })))); }).addWithInfo('Search Input', 'Champ de recherche', function () { return (React.createElement(themedComponents_1.ThemeProvider, { theme: theming_1.default }, React.createElement("div", { style: { padding: "30px" } }, React.createElement(UpInput_1.default, { type: "search" })))); }).addWithInfo('Email Input', 'Champ email', function () { return (React.createElement(themedComponents_1.ThemeProvider, { theme: theming_1.default }, React.createElement("div", { style: { padding: "30px" } }, React.createElement(UpInput_1.default, { type: "email" })))); }).addWithInfo('Phone Input', 'Champ phone', function () { return (React.createElement(themedComponents_1.ThemeProvider, { theme: theming_1.default }, React.createElement("div", { style: { padding: "30px" } }, React.createElement(UpInput_1.default, { type: "phone" })))); }).addWithInfo('Required Input', 'Champ requis', function () { return (React.createElement(themedComponents_1.ThemeProvider, { theme: theming_1.default }, React.createElement("div", { style: { padding: "30px" } }, React.createElement(UpInput_1.default, { isRequired: true, type: "email" })))); }); //# sourceMappingURL=index.stories.js.map