@s-ui/react-molecule-input-field
Advanced tools
Comparing version 4.7.0 to 4.8.0
import { inputStates } from '@s-ui/react-atom-input'; | ||
export var getErrorState = function getErrorState(_ref) { | ||
var successText = _ref.successText, | ||
errorText = _ref.errorText; | ||
errorText = _ref.errorText; | ||
if (successText) return false; | ||
@@ -10,4 +10,4 @@ if (errorText) return true; | ||
var successText = _ref2.successText, | ||
errorState = _ref2.errorState, | ||
alertText = _ref2.alertText; | ||
errorState = _ref2.errorState, | ||
alertText = _ref2.alertText; | ||
if (successText) return inputStates.SUCCESS; | ||
@@ -14,0 +14,0 @@ if (errorState) return inputStates.ERROR; |
@@ -9,19 +9,17 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
var MoleculeInputField = function MoleculeInputField(_ref) { | ||
var id = _ref.id, | ||
label = _ref.label, | ||
nodeLabel = _ref.nodeLabel, | ||
successText = _ref.successText, | ||
errorText = _ref.errorText, | ||
alertText = _ref.alertText, | ||
helpText = _ref.helpText, | ||
_ref$autoHideHelpText = _ref.autoHideHelpText, | ||
autoHideHelpText = _ref$autoHideHelpText === void 0 ? false : _ref$autoHideHelpText, | ||
inline = _ref.inline, | ||
onChange = _ref.onChange, | ||
useContrastLabel = _ref.useContrastLabel, | ||
fullWidth = _ref.fullWidth, | ||
props = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
label = _ref.label, | ||
nodeLabel = _ref.nodeLabel, | ||
successText = _ref.successText, | ||
errorText = _ref.errorText, | ||
alertText = _ref.alertText, | ||
helpText = _ref.helpText, | ||
_ref$autoHideHelpText = _ref.autoHideHelpText, | ||
autoHideHelpText = _ref$autoHideHelpText === void 0 ? false : _ref$autoHideHelpText, | ||
inline = _ref.inline, | ||
onChange = _ref.onChange, | ||
useContrastLabel = _ref.useContrastLabel, | ||
fullWidth = _ref.fullWidth, | ||
props = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var errorState = getErrorState({ | ||
@@ -58,4 +56,3 @@ successText: successText, | ||
}; | ||
MoleculeInputField.displayName = 'MoleculeInputField'; | ||
export default MoleculeInputField; |
{ | ||
"name": "@s-ui/react-molecule-input-field", | ||
"version": "4.7.0", | ||
"version": "4.8.0", | ||
"description": "", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"keywords": [ | ||
"@s-ui", | ||
"react", | ||
"component", | ||
"molecule", | ||
"inputField" | ||
], | ||
"main": "lib/index.js", | ||
@@ -18,5 +28,17 @@ "scripts": { | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/SUI-Components/sui-components", | ||
"directory": "components/molecule/inputField" | ||
}, | ||
"config": { | ||
"title": "inputField", | ||
"category": "molecule", | ||
"type": "components" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/SUI-Components/sui-components/issues?q=is%3Aopen+label%3A%22Component%3A+inputField%22" | ||
}, | ||
"homepage": "https://sui-components.vercel.app/", | ||
"license": "MIT" | ||
} |
# MoleculeInputField | ||
`MoleculeInputField` is a component that wraps a composition of Label + Textarea + Validation Messages. | ||
`MoleculeInputField` is a component that wraps a composition of Label + Textarea + Validations Messages. | ||
[](https://sui-components.vercel.app/workbench/molecule/inputField/) | ||
[](https://github.com/SUI-Components/sui-components/issues/new?&projects=4&template=bug-report.yml&assignees=&template=report-a-bug.yml&title=🪲+&labels=bug,component,molecule,inputField) | ||
[](https://www.npmjs.com/package/@s-ui/react-molecule-input-field) | ||
[](https://github.com/SUI-Components/sui-components/issues?q=is%3Aopen+label%3Acomponent+label%3AinputField) | ||
[](https://github.com/SUI-Components/sui-components/blob/main/components/molecule/inputField/LICENSE.md) | ||
@@ -7,0 +12,0 @@ ## Installation |
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
0
95
0
7732