@hexure/ui 1.13.61 → 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
@@ -1331,8 +1331,8 @@ const ContentWrapper$1 = styled.div `
1331
1331
  const ButtonBar$1 = styled.div `
1332
1332
  padding: 20px;
1333
1333
  display: flex;
1334
- align-items: center;
1335
- justify-content: flex-end;
1334
+ align-items: flex-end;
1335
+ justify-content: center;
1336
1336
  box-sizing: border-box;
1337
1337
  gap: 10px;
1338
1338
  flex-shrink: 0;
@@ -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);
@@ -2213,7 +2219,7 @@ const ProgressBarFill = styled.div `
2213
2219
  position: relative;
2214
2220
  overflow: hidden;
2215
2221
 
2216
- .progress-percentage {
2222
+ .progress-percentage {
2217
2223
  position: absolute;
2218
2224
  top: 55%;
2219
2225
  left: ${props => props.$percent >= 83 ? 'calc(100% - 25px)' : `calc(${props.$percent}% + 10px)`};
@@ -2225,7 +2231,7 @@ const ProgressBarFill = styled.div `
2225
2231
  transition: left 0.5s ease-in-out;
2226
2232
  }
2227
2233
 
2228
- .progress-bar-fill {
2234
+ .progress-bar-fill {
2229
2235
  position: absolute;
2230
2236
  top: 0;
2231
2237
  left: 0;