@topconsultnpm/sdkui-react-beta 6.6.78 → 6.6.79

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.
@@ -33,5 +33,6 @@ export interface ITMEditorBase {
33
33
  value?: any;
34
34
  validationItems?: ValidationItem[];
35
35
  width?: string;
36
+ borderRadius?: string;
36
37
  }
37
38
  export {};
@@ -12,6 +12,7 @@ export declare const StyledEditor: import("styled-components/dist/types").IStyle
12
12
  $fontSize: string;
13
13
  $disabled: boolean;
14
14
  $isMobile?: boolean;
15
+ $borderRadius?: string;
15
16
  }>> & string;
16
17
  export declare const StyledEditorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
17
18
  $vil: ValidationItem[];
@@ -22,7 +22,7 @@ export const StyledEditor = styled.input `
22
22
  border-bottom: ${props => (props.$vil.length > 0) ? '3px' : '1px'} solid ;
23
23
  border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
24
24
  color: ${props => !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
25
- border-radius: 2px;
25
+ border-radius: ${props => props.$borderRadius || '2px'};
26
26
  min-width: ${props => props.$isMobile && '70px'};
27
27
  &:focus{
28
28
  outline: none;
@@ -31,7 +31,7 @@ const StyledTextBoxEditorButton = styled.div `
31
31
  border-bottom-color: ${TMColors.primary};
32
32
  }
33
33
  `;
34
- const TMTextBox = ({ autoFocus, maxLength, precision, scale, showClearButton, validationItems = [], label = '', readOnly = false, formulaItems = [], buttons = [], isModifiedWhen, placeHolder, elementStyle, width = '100%', maxValue, fontSize = FontSize.defaultFontSize, icon, labelPosition = 'left', value, disabled = false, type = 'text', onValueChanged, onBlur }) => {
34
+ const TMTextBox = ({ autoFocus, maxLength, precision, scale, showClearButton, validationItems = [], label = '', readOnly = false, formulaItems = [], buttons = [], isModifiedWhen, placeHolder, elementStyle, width = '100%', maxValue, fontSize = FontSize.defaultFontSize, icon, labelPosition = 'left', value, disabled = false, type = 'text', onValueChanged, onBlur, borderRadius }) => {
35
35
  const [initialType, setInitialType] = useState(type);
36
36
  const [currentType, setCurrentType] = useState(type);
37
37
  const [currentValue, setCurrentValue] = useState(value);
@@ -140,7 +140,7 @@ const TMTextBox = ({ autoFocus, maxLength, precision, scale, showClearButton, va
140
140
  if (!scale && (e.key == "." || e.key == ","))
141
141
  e.preventDefault();
142
142
  }
143
- }, "$isMobile": screenWidth < 640, "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, "$fontSize": fontSize, "$maxValue": maxValue, "$width": width, "$type": currentType }), initialType === 'password' && currentValue && _jsx(StyledShowPasswordIcon, { onClick: toggleShowPassword, "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: showPasswordIcon() }), initialType !== 'password' &&
143
+ }, "$isMobile": screenWidth < 640, "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, "$fontSize": fontSize, "$maxValue": maxValue, "$width": width, "$type": currentType, "$borderRadius": borderRadius }), initialType === 'password' && currentValue && _jsx(StyledShowPasswordIcon, { onClick: toggleShowPassword, "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: showPasswordIcon() }), initialType !== 'password' &&
144
144
  _jsxs("div", { style: { display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'center', position: 'absolute', right: '6px', top: label.length > 0 ? '20px' : '7px', pointerEvents: disabled ? 'none' : 'auto', opacity: disabled ? 0.4 : 1 }, children: [showClearButton && currentValue &&
145
145
  _jsx(StyledTextBoxEditorButton, { onClick: () => {
146
146
  onValueChanged?.({ target: { value: undefined } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.6.78",
3
+ "version": "6.6.79",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",