@the-control-group/ui
Advanced tools
Comparing version 1.9.8 to 1.10.1
@@ -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'; |
{ | ||
"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", |
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
84390
48
1786