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.
@@ -12,5 +12,6 @@ declare function TextArea(props: {
12
12
  charText: string;
13
13
  property?: any;
14
14
  isShortTextBox?: boolean;
15
+ shouldCheckRegex?: boolean;
15
16
  }): React.JSX.Element;
16
17
  export default TextArea;
package/dist/index.d.ts CHANGED
@@ -317,6 +317,7 @@ declare function TextArea(props: {
317
317
  charText: string;
318
318
  property?: any;
319
319
  isShortTextBox?: boolean;
320
+ shouldCheckRegex?: boolean;
320
321
  }): React.JSX.Element;
321
322
 
322
323
  interface DrawerProps {
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');