@arche-mc2/arche-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
61 lines • 6.86 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var addon_knobs_1 = require("@storybook/addon-knobs");
var UpBox_1 = require("./UpBox");
var stories_1 = require("../../../Common/stories");
exports.default = {
title: 'Components/Containers/UpBox',
decorators: [
addon_knobs_1.withKnobs,
stories_1.getRootContainer('UpBox')
],
component: UpBox_1.UpBox,
};
exports.Center = function () { return (React.createElement(UpBox_1.default, { flexDirection: 'row', alignContent: 'stretch', justifyContent: 'center', backgroundColor: '#369', color: 'white', pad: 'small' },
React.createElement("p", null, "Alignement des \u00E9l\u00E9ment au centre"))); };
exports.AddMarginAsObjectToTheBox = function () { return (React.createElement(UpBox_1.default, { flexDirection: 'row', alignContent: 'stretch', backgroundColor: '#369', color: 'white', pad: 'small', margin: { horizontal: 'none', vertical: 'xlarge' } },
React.createElement("p", null, "Texte s\u00E9lectionnable"))); };
exports.UnselectableText = function () { return (React.createElement(UpBox_1.default, { backgroundColor: '#369', color: 'white', pad: 'small', selectable: 'none' },
React.createElement("p", null, "Texte non s\u00E9lectionnable"))); };
exports.FlexEnd = function () { return (React.createElement(UpBox_1.default, { alignItems: 'flex-end', flexDirection: 'column', backgroundColor: '#369', color: 'white', pad: 'small' },
React.createElement("p", null, "Alignement des \u00E9l\u00E9ment flex-end : position 1 "),
React.createElement("p", null, "Alignement des \u00E9l\u00E9ment flex-end : position 2 "),
React.createElement("p", null, "Alignement des \u00E9l\u00E9ment flex-end : position 3 "))); };
exports.FlexStart = function () { return (React.createElement(UpBox_1.default, { alignItems: 'flex-start', flexDirection: 'column', backgroundColor: '#369', color: 'white', pad: 'small' },
React.createElement("p", null, "Alignement des \u00E9l\u00E9ment flex-start : position 1 "),
React.createElement("p", null, "Alignement des \u00E9l\u00E9ment flex-start : position 2 "),
React.createElement("p", null, "Alignement des \u00E9l\u00E9ment flex-start : position 3 "))); };
exports.RowReverseAndSpaceBetweenOnHorizontalAxis = function () { return (React.createElement(UpBox_1.default, { flexDirection: 'row-reverse', justifyContent: 'space-between', backgroundColor: '#369', color: 'white', pad: 'large' },
React.createElement("p", null, " Alignement des \u00E9l\u00E9ment row-reverse : position 1 "),
React.createElement("p", null, " Alignement des \u00E9l\u00E9ment row-reverse : position 2 "),
React.createElement("p", null, " Alignement des \u00E9l\u00E9ment row-reverse : position 3"))); };
exports.StretchAndSpaceBetweenOnHorizontalAxis = function () { return (React.createElement(UpBox_1.default, { flexDirection: 'row', alignItems: 'stretch', justifyContent: 'space-between', backgroundColor: '#369', color: 'white', pad: 'small', margin: 'none', style: { height: 200 } },
React.createElement("p", { style: { backgroundColor: 'gold', width: '30%' } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'tomato', width: '30%' } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'lightgreen', width: '30%' } }, "Alignement des \u00E9l\u00E9ment "))); };
exports.FlexCenterAndSpaceAround = function () { return (React.createElement(UpBox_1.default, { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-around', backgroundColor: '#369', color: 'white', pad: 'small', margin: 'none', style: { height: 200 } },
React.createElement("p", { style: { backgroundColor: 'gold', width: '30%', height: 100 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'tomato', width: '30%', height: 150 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'lightgreen', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "))); };
exports.FlexWrap = function () { return (React.createElement(UpBox_1.default, { flexDirection: 'row', flexWrap: true, backgroundColor: '#369', color: 'white', pad: 'small', style: { height: 150 } },
React.createElement("p", { style: { backgroundColor: 'gold', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'tomato', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'lightgreen', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'coral', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "))); };
exports.FlexNoWrap = function () { return (React.createElement(UpBox_1.default, { flexDirection: 'row', backgroundColor: '#369', color: 'white', pad: 'small', style: { height: 150 } },
React.createElement("p", { style: { backgroundColor: 'gold', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'tomato', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'lightgreen', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "),
React.createElement("p", { style: { backgroundColor: 'coral', width: '30%', height: 50 } }, "Alignement des \u00E9l\u00E9ment "))); };
exports.BoxFullSize = function () { return (React.createElement(UpBox_1.default, { boxSize: 'full', backgroundColor: '#369', color: 'white', pad: 'medium' },
React.createElement("p", null, "El\u00E9ment "))); };
exports.BoxFullSize.decorators = [function (BoxFullSize) { return React.createElement("div", { style: { overflow: 'hidden' } },
React.createElement(BoxFullSize, null)); }];
exports.CustomedBoxSizeWithSizeBoxProperty = function () { return (React.createElement(UpBox_1.default, { boxSize: { horizontal: 'xlarge', vertical: 'xlarge' }, backgroundColor: '#369', color: 'white', pad: 'medium' },
React.createElement("p", null, "El\u00E9ment "))); };
exports.TakeHeightOfTheParent = function () { return (React.createElement(UpBox_1.default, { full: true, backgroundColor: '#369', color: 'white', pad: 'medium' },
React.createElement("p", null, "El\u00E9ment "))); };
exports.TakeHeightOfTheParent.decorators = [function (TakeHeightOfTheParent) { return React.createElement("div", { style: { height: '300px', width: '300px', border: '2px solid #000' } },
React.createElement(TakeHeightOfTheParent, null)); }];
//# sourceMappingURL=index.stories.js.map