@secondstaxorg/sscomp 1.8.57 → 1.8.59

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/index.js CHANGED
@@ -22239,7 +22239,7 @@ const TextField = (props) => {
22239
22239
  let {label,subtext,errMsg,disabled,required,width,value,readonly} = props;
22240
22240
 
22241
22241
  const [borderColor,setBorderColor] = React$1.useState('');
22242
- React$1.useState('');
22242
+ const [inputVal,setInputVal] = React$1.useState('');
22243
22243
  const [err,setErr] = React$1.useState(false);
22244
22244
  const textFieldRef = React$1.useRef();
22245
22245
 
@@ -22254,7 +22254,7 @@ const TextField = (props) => {
22254
22254
  },[value]);
22255
22255
 
22256
22256
  function validate(){
22257
- if (value){
22257
+ if (inputVal){
22258
22258
  setBorderColor('success');
22259
22259
  setErr(false);
22260
22260
  }else {
@@ -22281,11 +22281,11 @@ const TextField = (props) => {
22281
22281
  )
22282
22282
 
22283
22283
  , React$1.createElement(InputContainer$3, { className: `${borderColor} ${disabled ? 'disabled' : ''}`, style: {width:width ? width : '100%',border:disabled ? `1px solid ${theme.colors["neutral-100"]}` : ''}, __self: undefined, __source: {fileName: _jsxFileName$v, lineNumber: 55}}
22284
- /*<InputField ref={textFieldRef} onBlur={validate} onInvalid={validate} value={inputVal} onChange={(e)=>{*/
22285
- , React$1.createElement(InputField$2, { ref: textFieldRef, onBlur: validate, onInvalid: validate, value: value, onChange: (e)=>{
22284
+ , React$1.createElement(InputField$2, { ref: textFieldRef, onBlur: validate, onInvalid: validate, value: inputVal, onChange: (e)=>{
22285
+ // <InputField ref={textFieldRef} onBlur={validate} onInvalid={validate} onChange={(e)=>{
22286
22286
  if (readonly) return
22287
22287
  // setInputVal(e.target.value)
22288
- }, ...props, __self: undefined, __source: {fileName: _jsxFileName$v, lineNumber: 57}})
22288
+ }, ...props, __self: undefined, __source: {fileName: _jsxFileName$v, lineNumber: 56}})
22289
22289
  )
22290
22290
  /*{!inputVal && required && err &&*/
22291
22291
  , !value && required && err &&