@the-control-group/tcg-ui
Advanced tools
Comparing version 0.1.2 to 0.1.3
import React, { Fragment } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Button from '../Button/Button'; | ||
import Text from '../Text/Text'; | ||
@@ -8,3 +10,2 @@ const DestructiveDialog = ({ | ||
content, | ||
height = 144, | ||
width = 296, | ||
@@ -19,10 +20,16 @@ primaryActionClickHandler, | ||
<Fragment> | ||
<div className="ui-modal-overlay" /> | ||
<div className="ui-destructive-dialog-container" style={{ height, width }}> | ||
<h1 className="destructive-dialog-title">{title}</h1> | ||
<p className="destructive-dialog-content">{content}</p> | ||
<div className="destructive-dialog-button-wrapper"> | ||
<div className="ui-destructive-dialog-container" style={{ width }}> | ||
<Text variant="h5" inverse marginTop="none"> | ||
{title} | ||
</Text> | ||
<Text className="dialog-content" inverse margin="none"> | ||
{content} | ||
</Text> | ||
<div className="button-wrapper"> | ||
<Button onClick={primaryActionClickHandler} bare> | ||
{primaryActionContent} | ||
</Button> | ||
<Button onClick={secondaryActionClickHandler} bare> | ||
@@ -29,0 +36,0 @@ {secondaryActionContent} |
@@ -14,3 +14,3 @@ /** | ||
children, | ||
variant = 'body-1', // h1-h6 || body-2 || subtitle || subtitle-2 || caption || overline | ||
variant = 'body-1', // h1-h6 || body-2 || subtitle || subtitle-2 || caption || overline || input-error | ||
bold, | ||
@@ -17,0 +17,0 @@ italic, |
{ | ||
"name": "@the-control-group/tcg-ui", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "UI kit for internal applications, based on React", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
67278
1135
0