@socketsupply/components
Advanced tools
Comparing version 14.0.7 to 14.0.8
@@ -174,3 +174,3 @@ import { Tonic } from '@socketsupply/tonic' | ||
width: fit-content; | ||
transform: translateY(-10px); | ||
transform: translate(-50%, -10px); | ||
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s ease 1s; | ||
@@ -177,0 +177,0 @@ visibility: hidden; |
{ | ||
"name": "@socketsupply/components", | ||
"version": "14.0.7", | ||
"version": "14.0.8", | ||
"description": "Example components", | ||
@@ -8,2 +8,3 @@ "type": "module", | ||
"prepare": "npm run lint", | ||
"prepublishOnly": "git push --follow-tags", | ||
"lint": "standard -v", | ||
@@ -10,0 +11,0 @@ "test": "standard && esbuild --format=esm --bundle _test/index.js | tape-run", |
@@ -454,3 +454,6 @@ import { Tonic } from '@socketsupply/tonic' | ||
if (typeof date === 'string') { | ||
date = this.props.date = new Date(+this.props.date) | ||
date = this.props.date = | ||
/^\d+$/.test(this.props.date) | ||
? new Date(+this.props.date) | ||
: new Date(this.props.date) | ||
} | ||
@@ -457,0 +460,0 @@ |
@@ -47,3 +47,3 @@ import { Tonic } from '@socketsupply/tonic' | ||
tonic-textarea textarea:invalid { | ||
tonic-textarea[edited] textarea:invalid { | ||
border-color: var(--tonic-danger, #f66); | ||
@@ -91,3 +91,3 @@ } | ||
tonic-textarea[label] .tonic--invalid { | ||
margin-bottom: 13px; | ||
margin-bottom: 0px; | ||
} | ||
@@ -103,3 +103,3 @@ | ||
width: fit-content; | ||
transform: translateY(-10px); | ||
transform: translate(-50%, -10px); | ||
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s ease 1s; | ||
@@ -133,3 +133,2 @@ visibility: hidden; | ||
} | ||
` | ||
@@ -221,2 +220,8 @@ } | ||
keyup (e) { | ||
const value = e.target.value.trim() | ||
if (this.props.required && !value) { | ||
return this.setInvalid('Value Required') | ||
} | ||
if (!this.props.pattern) { | ||
@@ -230,4 +235,2 @@ return | ||
const value = e.target.value.trim() | ||
value.match(this.regex) | ||
@@ -234,0 +237,0 @@ ? this.setValid() |
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
278927
8715