@lunit/oui 2.2.12 → 2.2.14

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.
@@ -25,6 +25,6 @@ const FileInput = forwardRef((props, ref) => {
25
25
  setFileName(e.target.value.split('\\').pop());
26
26
  } }), _jsxs(FileInputWrapperButton, { onClick: () => handleButtonClicksFile(), width: props.width, children: [_jsx(BaseTextInput, { ...inputProps, type: "text", error: !!error, value: fileName,
27
27
  // @Tobio89: this dummy onchange clears an error without triggering unwanted style changes
28
- onChange: () => { }, leftIcon: leftIcon, sx: baseSX }), _jsx(RightIconContainer, { children: _jsx(Project, {}) })] })] }), error ? (_jsx(InputMsg, { variant: "body5", error: true, children: error })) : (helperMsg && _jsx(InputMsg, { variant: "body5", children: helperMsg }))] }));
28
+ onChange: () => { }, leftIcon: leftIcon, sx: baseSX }), _jsx(RightIconContainer, { sx: { pointerEvents: 'none' }, children: _jsx(Project, {}) })] })] }), error ? (_jsx(InputMsg, { variant: "body5", error: true, children: error })) : (helperMsg && _jsx(InputMsg, { variant: "body5", children: helperMsg }))] }));
29
29
  });
30
30
  export default FileInput;
@@ -12,8 +12,8 @@ export const baseSliderMarks = [
12
12
  { value: 100, label: '100' },
13
13
  ];
14
14
  export const getPresetValue = (options, selectedItem) => {
15
- const selectedCategory = options.find((option) => option.title === selectedItem)?.category;
16
- const presetValue = options.find((option) => option.category === selectedCategory && option.isPreset)?.value;
15
+ const presetValue = options.find((option) => option.title === selectedItem && option.isPreset)
16
+ ?.value;
17
17
  return presetValue;
18
18
  };
19
19
  export const getSliderMarks = (presetValue) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunit/oui",
3
- "version": "2.2.12",
3
+ "version": "2.2.14",
4
4
  "validate-branch-name": {
5
5
  "pattern": "^(main|develop)|(feature|fix|release|hotfix|qe)/.+$",
6
6
  "errorMsg": "The branch name is not correct. Please check the pattern. (ex. feature/add-something)"