Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lykkex/react-components

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lykkex/react-components - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

5

dist/Dialog/Dialog.d.ts

@@ -19,2 +19,7 @@ /// <reference types="react" />

description?: string | JSX.Element;
actions?: Array<{
text: string;
cssClass?: string;
onClick: () => void;
}>;
}

@@ -21,0 +26,0 @@ export interface DialogState {

9

dist/Dialog/Dialog.js

@@ -64,3 +64,3 @@ var __extends = (this && this.__extends) || (function () {

Dialog.prototype.render = function () {
var _a = this.props, className = _a.className, onConfirm = _a.onConfirm, onCancel = _a.onCancel, _b = _a.tag, Tag = _b === void 0 ? 'div' : _b, visible = _a.visible, _c = _a.confirmButton, confirmButton = _c === void 0 ? { text: 'Confirm' } : _c, _d = _a.cancelButton, cancelButton = _d === void 0 ? { text: 'Cancel' } : _d, title = _a.title, description = _a.description, props = __rest(_a, ["className", "onConfirm", "onCancel", "tag", "visible", "confirmButton", "cancelButton", "title", "description"]);
var _a = this.props, className = _a.className, onConfirm = _a.onConfirm, onCancel = _a.onCancel, _b = _a.tag, Tag = _b === void 0 ? 'div' : _b, visible = _a.visible, _c = _a.confirmButton, confirmButton = _c === void 0 ? { text: 'Confirm' } : _c, _d = _a.cancelButton, cancelButton = _d === void 0 ? { text: 'Cancel' } : _d, title = _a.title, description = _a.description, actions = _a.actions, props = __rest(_a, ["className", "onConfirm", "onCancel", "tag", "visible", "confirmButton", "cancelButton", "title", "description", "actions"]);
return ReactDOM.createPortal(React.createElement(Tag, __assign({}, props, { className: classnames('modal fade', { in: visible }, className), tabIndex: "-1", role: "dialog" }),

@@ -74,5 +74,6 @@ React.createElement("div", { className: "modal__dialog" },

React.createElement("div", { className: "modal__description" }, description),
React.createElement("div", { className: "modal__actions" },
cancelButton.text && (React.createElement("button", { type: "button", className: "btn btn--primary btn-block", onClick: this.handleCancel }, cancelButton.text)),
confirmButton.text && (React.createElement("button", { className: "btn btn--flat btn-block", onClick: this.handleConfirm }, confirmButton.text))))))))), document.body);
React.createElement("div", { className: "modal__actions" }, actions ? actions.map(function (action) { return (React.createElement("button", { key: action.text, type: "button", className: classnames('btn', action.cssClass), onClick: action.onClick }, action.text)); }) :
React.createElement("div", null,
cancelButton.text && (React.createElement("button", { type: "button", className: "btn btn--primary btn-block", onClick: this.handleCancel }, cancelButton.text)),
confirmButton.text && (React.createElement("button", { className: "btn btn--flat btn-block", onClick: this.handleConfirm }, confirmButton.text)))))))))), document.body);
};

@@ -79,0 +80,0 @@ return Dialog;

@@ -23,3 +23,7 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {

var className = _a.className, _b = _a.responsive, responsive = _b === void 0 ? false : _b, _c = _a.simple, simple = _c === void 0 ? false : _c, _d = _a.striped, striped = _d === void 0 ? false : _d, _e = _a.transparent, transparent = _e === void 0 ? false : _e, children = _a.children, attributes = __rest(_a, ["className", "responsive", "simple", "striped", "transparent", "children"]);
var table = React.createElement("table", __assign({}, attributes, { className: classnames('table', { 'table--simple': simple, 'table-striped': striped, 'table--transparent': transparent }, className) }), children);
var table = (React.createElement("table", __assign({}, attributes, { className: classnames('table', {
'table--simple': simple,
'table-striped': striped,
'table--transparent': transparent
}, className) }), children));
return responsive ? React.createElement("div", { className: "table-responsive" }, table) : table;

@@ -26,0 +30,0 @@ };

{
"name": "@lykkex/react-components",
"version": "0.2.0",
"version": "0.2.1",
"description": "React Components for Lykke projects",

@@ -5,0 +5,0 @@ "keywords": [

## Lykke React Components
Docs: [Storybook](https://andreyzhylin.github.io/LykkeReactComponents)
Docs: [Storybook](https://lykkecity.github.io/LykkeReactComponents)

@@ -5,0 +5,0 @@ This project is a library of React Components for Lykke projects.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc