dhre-component-lib 0.8.6 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/TextArea/TextArea.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -21888,10 +21888,10 @@ var css$8 = ".textArea {\n min-width: 70%;\n width: 100%;\n height: 8.875rem;
|
|
|
21888
21888
|
n(css$8,{});
|
|
21889
21889
|
|
|
21890
21890
|
function TextArea(props) {
|
|
21891
|
-
const { value, onChange, requiredLimit, placeholder, charText, property, isShortTextBox } = props;
|
|
21891
|
+
const { shouldCheckRegex, value, onChange, requiredLimit, placeholder, charText, property, isShortTextBox } = props;
|
|
21892
21892
|
const [showLabelOnBorder, setShowLabelOnBorder] = useState(false);
|
|
21893
21893
|
const checkSpecialChar = (e) => {
|
|
21894
|
-
if (!/[0-9a-zA-Z ]/.test(e.key)) {
|
|
21894
|
+
if (shouldCheckRegex && !/[0-9a-zA-Z ]/.test(e.key)) {
|
|
21895
21895
|
e.preventDefault();
|
|
21896
21896
|
}
|
|
21897
21897
|
console.log('textAraea');
|