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

@the-control-group/ui

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.9.8 to 1.10.1

lib/elements/SSNInput/SSNInput.js

10

lib/elements/Input/Input.js

@@ -33,2 +33,3 @@ /**

defaultValue,
value,
...other

@@ -44,2 +45,5 @@ }) => {

// Checks for SSN and CC#s that 9-19 characters long, ignoring dashes and spaces
const redactedText = value?.replace(/(\d[ -]*){9,19}/, '[REDACTED]');
if(type === 'select') {

@@ -57,2 +61,3 @@ return (

{...other}
value={value}
id={id}

@@ -85,2 +90,3 @@ name={name}

{...other}
value={value}
classes={combinedClasses}

@@ -102,3 +108,2 @@ tag="input"

}
if(type === 'textarea') {

@@ -115,2 +120,3 @@ return (

{...other}
value={redactedText}
classes={combinedClasses}

@@ -136,2 +142,3 @@ tag="textarea"

{...other}
value={redactedText}
classes={combinedClasses}

@@ -157,2 +164,3 @@ tag="input"

defaultValue: PropTypes.string,
value: PropTypes.string,
rows: PropTypes.oneOfType([

@@ -159,0 +167,0 @@ PropTypes.string,

@@ -22,4 +22,5 @@ // Make these available to import directly from the package root

export { default as Accordion } from './elements/Accordion/Accordion';
export { default as SSNInput } from './elements/SSNInput/SSNInput';
export { getBreakpoint } from './util/helpers';
export { isMobile } from './util/helpers';

2

package.json
{
"name": "@the-control-group/ui",
"version": "1.9.8",
"version": "1.10.1",
"description": "UI kit based on ReactJS for TCG projects",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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