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

@the-control-group/tcg-ui

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@the-control-group/tcg-ui - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

19

lib/elements/DestructiveDialog/DestructiveDialog.js
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

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