mirror of
https://github.com/dzeiocom/components.git
synced 2025-07-25 06:19:50 +00:00
Removed Dist files
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
import React from 'react';
|
||||
import Component from '.';
|
||||
export default {
|
||||
title: 'DZEIO/Button',
|
||||
component: Component
|
||||
};
|
||||
export var Basic = function (args) { return React.createElement(Component, __assign({}, args), "Button"); };
|
@ -1,18 +0,0 @@
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
import React from 'react';
|
||||
import Checkbox from '.';
|
||||
export default {
|
||||
title: 'DZEIO/Checkbox',
|
||||
component: Checkbox
|
||||
};
|
||||
export var Basic = function (args) { return React.createElement(Checkbox, __assign({}, args)); };
|
@ -1,25 +0,0 @@
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
import React from 'react';
|
||||
import Component from '.';
|
||||
export default {
|
||||
title: 'DZEIO/Code',
|
||||
component: Component,
|
||||
argTypes: {
|
||||
content: { control: 'text', defaultValue: 'Code Block' }
|
||||
}
|
||||
};
|
||||
export var Basic = function (args) {
|
||||
var content = args.content;
|
||||
delete args.content;
|
||||
return (React.createElement(Component, __assign({}, args), content));
|
||||
};
|
@ -1,120 +0,0 @@
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||
function step(op) {
|
||||
if (f) throw new TypeError("Generator is already executing.");
|
||||
while (_) try {
|
||||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||
switch (op[0]) {
|
||||
case 0: case 1: t = op; break;
|
||||
case 4: _.label++; return { value: op[1], done: false };
|
||||
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||
default:
|
||||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||
if (t[2]) _.ops.pop();
|
||||
_.trys.pop(); continue;
|
||||
}
|
||||
op = body.call(thisArg, _);
|
||||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||
}
|
||||
};
|
||||
import React from 'react';
|
||||
import Row from '../Row';
|
||||
import css from './DebugCols.module.styl';
|
||||
import Col from '.';
|
||||
var Breakpoint;
|
||||
(function (Breakpoint) {
|
||||
Breakpoint[Breakpoint["MOBILE"] = 0] = "MOBILE";
|
||||
Breakpoint[Breakpoint["TABLET"] = 1] = "TABLET";
|
||||
Breakpoint[Breakpoint["COMPUT"] = 2] = "COMPUT";
|
||||
})(Breakpoint || (Breakpoint = {}));
|
||||
var DebugCols = /** @class */ (function (_super) {
|
||||
__extends(DebugCols, _super);
|
||||
function DebugCols() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.state = {
|
||||
breakpoint: Breakpoint.COMPUT
|
||||
};
|
||||
_this.render = function () { return (React.createElement(Row, { className: css.row },
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, mobileSize: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, mobileSize: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, mobileSize: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, mobileSize: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
_this.state.breakpoint !== Breakpoint.MOBILE && (React.createElement(React.Fragment, null,
|
||||
_this.state.breakpoint !== Breakpoint.TABLET && (React.createElement(React.Fragment, null,
|
||||
React.createElement(Col, { size: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, className: css.col },
|
||||
React.createElement("div", null)))),
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, className: css.col },
|
||||
React.createElement("div", null)),
|
||||
React.createElement(Col, { size: 1, tabletSize: 1, className: css.col },
|
||||
React.createElement("div", null)))))); };
|
||||
_this.onResize = function () { return __awaiter(_this, void 0, void 0, function () {
|
||||
var currentBreakpoint, hasChanged;
|
||||
return __generator(this, function (_a) {
|
||||
currentBreakpoint = window.innerWidth <= 768 ?
|
||||
Breakpoint.MOBILE :
|
||||
window.innerWidth <= 1200 ?
|
||||
Breakpoint.TABLET :
|
||||
Breakpoint.COMPUT;
|
||||
hasChanged = currentBreakpoint !== this.state.breakpoint;
|
||||
if (hasChanged) {
|
||||
this.setState({ breakpoint: currentBreakpoint });
|
||||
}
|
||||
return [2 /*return*/];
|
||||
});
|
||||
}); };
|
||||
return _this;
|
||||
}
|
||||
DebugCols.prototype.componentDidMount = function () {
|
||||
this.onResize();
|
||||
window.addEventListener('resize', this.onResize);
|
||||
};
|
||||
DebugCols.prototype.componentWillUnmount = function () {
|
||||
window.removeEventListener('resize', this.onResize);
|
||||
};
|
||||
return DebugCols;
|
||||
}(React.Component));
|
||||
export default DebugCols;
|
@ -1,18 +0,0 @@
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
import React from 'react';
|
||||
import Component from '.';
|
||||
export default {
|
||||
title: 'DZEIO/Input',
|
||||
component: Component
|
||||
};
|
||||
export var Basic = function (args) { return React.createElement(Component, __assign({}, args)); };
|
@ -1,22 +0,0 @@
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
import React from 'react';
|
||||
import Component from '.';
|
||||
export default {
|
||||
title: 'DZEIO/Link',
|
||||
component: Component,
|
||||
argTypes: {
|
||||
href: { control: 'text', defaultValue: 'https://www.dzeio.com' },
|
||||
text: { control: 'text', defaultValue: 'Dzeio' }
|
||||
}
|
||||
};
|
||||
export var Basic = function (args) { return React.createElement(Component, __assign({}, args), args.text); };
|
@ -1,21 +0,0 @@
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
import React from 'react';
|
||||
import Component from '.';
|
||||
export default {
|
||||
title: 'DZEIO/Menu',
|
||||
component: Component,
|
||||
argTypes: {
|
||||
content: { control: 'array', defaultValue: [{ name: 'Name', href: 'https://www.google.com' }] }
|
||||
}
|
||||
};
|
||||
export var Basic = function (args) { return React.createElement(Component, __assign({}, args)); };
|
@ -1,18 +0,0 @@
|
||||
var __assign = (this && this.__assign) || function () {
|
||||
__assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
import React from 'react';
|
||||
import Component from '.';
|
||||
export default {
|
||||
title: 'DZEIO/Navbar',
|
||||
component: Component
|
||||
};
|
||||
export var Basic = function (args) { return React.createElement(Component, __assign({}, args)); };
|
@ -1,25 +0,0 @@
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
import React from 'react';
|
||||
import css from './Navbar.module.styl';
|
||||
var NavbarSpace = /** @class */ (function (_super) {
|
||||
__extends(NavbarSpace, _super);
|
||||
function NavbarSpace() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.render = function () { return (React.createElement("div", { className: css.spacer })); };
|
||||
return _this;
|
||||
}
|
||||
return NavbarSpace;
|
||||
}(React.Component));
|
||||
export default NavbarSpace;
|
@ -1,41 +0,0 @@
|
||||
export function buildClassName() {
|
||||
var classes = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
classes[_i] = arguments[_i];
|
||||
}
|
||||
var classesFinal = [];
|
||||
root: for (var _a = 0, classes_1 = classes; _a < classes_1.length; _a++) {
|
||||
var classe = classes_1[_a];
|
||||
if (typeof classe === 'undefined') {
|
||||
continue;
|
||||
}
|
||||
if (typeof classe === 'string') {
|
||||
classesFinal.push(classe);
|
||||
continue;
|
||||
}
|
||||
var classToPut = classe.shift();
|
||||
if (typeof classToPut === 'undefined') {
|
||||
continue;
|
||||
}
|
||||
for (var _b = 0, classe_1 = classe; _b < classe_1.length; _b++) {
|
||||
var iterator = classe_1[_b];
|
||||
if (!iterator) {
|
||||
continue root;
|
||||
}
|
||||
}
|
||||
classesFinal.push(classToPut);
|
||||
}
|
||||
if (classesFinal.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
return classesFinal.join(' ');
|
||||
}
|
||||
export var colors = {
|
||||
default: '#3949AB',
|
||||
primary: '#3949AB',
|
||||
secondary: '#FCFCFC',
|
||||
info: '#03A9F4',
|
||||
success: '#2DCE89',
|
||||
danger: '#F5365C',
|
||||
warning: '#FB6340'
|
||||
};
|
@ -1 +0,0 @@
|
||||
export {};
|
Reference in New Issue
Block a user