@hexure/ui 1.13.62 → 1.13.63

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/cjs/index.js CHANGED
@@ -1896,7 +1896,7 @@ const StyledWrapper = styled.div `
1896
1896
  border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
1897
1897
 
1898
1898
  &:focus-within {
1899
- border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1899
+ border-color: ${props => props.$readOnly ? getBorderColor$1(props) : props.theme.PRIMARY_COLOR.Hex};
1900
1900
  }
1901
1901
  `;
1902
1902
  StyledWrapper.defaultProps = { theme: EditableTheme };
@@ -2059,7 +2059,10 @@ const Input$1 = (_a) => {
2059
2059
  internalValue.length,
2060
2060
  maxLength ? ` / ${maxLength}` : null)) : null)) : (React.createElement(StyledWrapper, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "$readOnly": readOnly, "$style": style, "$suggestions": show_options && !!internalSuggestedValues.length, "data-itemid": `${baseId}-wrapper`, style: style },
2061
2061
  React.createElement(StyledInput, Object.assign({ "$height": height, "$invalid": invalid, "$readOnly": readOnly, "$showErrorTextColor": showErrorTextColor, autoComplete: autoComplete, max: max, maxLength: maxLength, min: min, onBlur: readOnly
2062
- ? e => e.preventDefault()
2062
+ ? e => {
2063
+ if (onBlur)
2064
+ onBlur(e);
2065
+ }
2063
2066
  : e => {
2064
2067
  if (onBlur)
2065
2068
  onBlur(e);
@@ -2068,7 +2071,10 @@ const Input$1 = (_a) => {
2068
2071
  setShowOptions(false);
2069
2072
  }, 500);
2070
2073
  }, onChange: readOnly ? e => e.preventDefault() : handleInputChange, onFocus: readOnly
2071
- ? e => e.preventDefault()
2074
+ ? e => {
2075
+ if (onFocus)
2076
+ onFocus(e);
2077
+ }
2072
2078
  : e => {
2073
2079
  setShowOptions(true);
2074
2080
  setIsFocused(true);