@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
78 lines • 4.37 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var UpBadge_1 = require("./UpBadge");
var Box_1 = require("../../Containers/Box");
var Ligne_1 = require("../../Display/Ligne");
var stories_1 = require("../../../Common/stories");
var addon_knobs_1 = require("@storybook/addon-knobs");
exports.default = {
title: 'Components/Display/UpBadge',
decorators: [
addon_knobs_1.withKnobs,
stories_1.getRootContainer('UpBadge'),
],
component: UpBadge_1.UpBadge
};
exports.General = function () { return (React.createElement(React.Fragment, null,
React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Badge ",
React.createElement("b", null, "intent"),
" is ",
React.createElement("b", null, "primary")),
React.createElement(UpBadge_1.default, { text: '1', rounded: true, intent: 'primary' })),
React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Badge ",
React.createElement("b", null, "intent"),
" is ",
React.createElement("b", null, "info")),
React.createElement(UpBadge_1.default, { text: '2', rounded: true, intent: 'info' })),
React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Badge ",
React.createElement("b", null, "intent"),
" is ",
React.createElement("b", null, "default")),
React.createElement(UpBadge_1.default, { text: '3', rounded: true, intent: 'default' })),
React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Badge ",
React.createElement("b", null, "intent"),
" is ",
React.createElement("b", null, "warning")),
React.createElement(UpBadge_1.default, { text: '4', rounded: true, intent: 'warning' })),
React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Badge ",
React.createElement("b", null, "intent"),
" is ",
React.createElement("b", null, "danger")),
React.createElement(UpBadge_1.default, { text: '5', rounded: true, intent: 'danger' })),
React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Badge ",
React.createElement("b", null, "intent"),
" is ",
React.createElement("b", null, "error")),
React.createElement(UpBadge_1.default, { text: '6', rounded: true, intent: 'error' })),
React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Badge ",
React.createElement("b", null, "intent"),
" is ",
React.createElement("b", null, "light")),
React.createElement(UpBadge_1.default, { text: '7', rounded: true, intent: 'light' })))); };
exports.ColorBackgroundProperties = function () { return (React.createElement(Box_1.default, { margin: 'small' },
React.createElement(Ligne_1.default, { color: '#000' },
"Set Badge ",
React.createElement("b", null, "background"),
" and ",
React.createElement("b", null, "color")),
React.createElement(UpBadge_1.default, { text: '1', rounded: true, background: 'yellow', color: 'red' }))); };
exports.ColorBackgroundProperties.storyName = 'Specify Background And Color Badge';
exports.CallbacksProperties = function () { return (React.createElement(Box_1.default, { margin: 'small' },
React.createElement(UpBadge_1.default, { text: '1', rounded: true, intent: 'danger', onClick: function () { return alert('The badge is clicked'); }, onMouseEnter: function () { return console.log('event', 'onMouseEnter is fired'); }, onMouseLeave: function () { return console.log('event', 'onMouseLeave is fired'); } }))); };
exports.CallbacksProperties.storyName = 'Pass CallBacks Events';
//# sourceMappingURL=index.stories.js.map