@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
50 lines • 2.97 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var stories_1 = require("../../../Common/stories");
var addon_knobs_1 = require("@storybook/addon-knobs");
var LoadingIndicator_1 = require("../LoadingIndicator");
var UpInformation_1 = require("./UpInformation");
exports.default = {
title: 'Components/Display/UpInformation',
decorators: [addon_knobs_1.withKnobs, stories_1.getRootContainer('UpInformation')],
component: UpInformation_1.default
};
exports.General = function () { return (React.createElement(UpInformation_1.default, { iconName: 'wink-grey', title: 'Information', content: 'Bienvenue sur votre nouvel espace de suivi de l\'activité de ...' })); };
exports.ShowActionButton = function () { return (React.createElement(UpInformation_1.default, { iconName: 'wink-grey', title: 'Information', content: 'Bienvenue sur votre nouvel espace de suivi de l\'activité de ...', action: {
libelle: 'Validate',
onClick: function () { return new Promise(function (resolve, reject) { return setTimeout(resolve, 2000); }); },
intent: 'success',
actionType: 'check',
tooltip: 'Click To Confirm'
} })); };
exports.ShowActionButton.storyName = 'Show Action Button Withe Some Properties';
exports.customizedIcon = function () { return (React.createElement(UpInformation_1.default, { iconName: 'alert-triangle', iconSize: 60, iconColor: 'orange', title: 'Warning', content: 'Bienvenue sur votre nouvel espace de suivi de l\'activité de ...' },
React.createElement(LoadingIndicator_1.default, { isLoading: true, displayMode: 'inline' }))); };
exports.customizedIcon.storyName = 'Show Customized Icon';
exports.customizeUpInformationBlocks = function () { return (React.createElement(UpInformation_1.default, { iconName: 'wink-grey', iconSize: 40, title: 'Warning', content: 'Bienvenue sur votre nouvel espace de suivi de l\'activité de ...', action: {
libelle: 'Validate',
onClick: function () { return new Promise(function (resolve, reject) { return setTimeout(resolve, 2000); }); },
intent: 'primary'
}, customStyles: {
title: function () { return ({
fontWeight: 'bold',
color: 'white'
}); },
content: function () { return ({
fontWeight: 'bold',
color: 'black'
}); },
contentWrapper: function () { return ({
padding: '10px 20px 20px !important',
backgroundColor: 'yellow !important'
}); },
informationWrapper: function () { return ({
backgroundColor: 'orange !important'
}); },
button: function () { return ({
marginRight: '200px'
}); }
} })); };
exports.customizeUpInformationBlocks.storyName = 'Customize UpInformation Blocks with customStyles property';
//# sourceMappingURL=index.stories.js.map