@topconsultnpm/sdkui-react-beta 6.16.47 → 6.16.49
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.
|
@@ -154,7 +154,7 @@ const ResponsiveMessageText = styled.div `
|
|
|
154
154
|
}
|
|
155
155
|
`;
|
|
156
156
|
const ResponsiveButton = styled(TMButton) `
|
|
157
|
-
font-size: ${props => props.fontSize || 'clamp(
|
|
157
|
+
font-size: ${props => props.fontSize || 'clamp(12px, 2vw, 1.1rem)'} !important;
|
|
158
158
|
padding: clamp(2px, 1vw, 8px) clamp(4px, 2vw, 12px) !important;
|
|
159
159
|
min-width: clamp(30px, 10vw, 60px) !important;
|
|
160
160
|
white-space: nowrap !important;
|
|
@@ -192,15 +192,15 @@ const TMMessageBox = ({ resizable = false, onButtonClick, title = 'TopMedia', me
|
|
|
192
192
|
}, [buttons]);
|
|
193
193
|
const MessageToolbar = () => {
|
|
194
194
|
return (_jsxs(StyledMessageToolbar, { children: [(btns.includes(ButtonNames.OK) || btns.includes(ButtonNames.YES)) &&
|
|
195
|
-
_jsx(ResponsiveButton, { fontSize: 'clamp(
|
|
195
|
+
_jsx(ResponsiveButton, { fontSize: 'clamp(12px, 2vw, 1.1rem)', color: 'primaryOutline', btnStyle: 'text', onClick: () => {
|
|
196
196
|
onButtonClick && btns.includes(ButtonNames.YES) ? onButtonClick(ButtonNames.YES) : onButtonClick && onButtonClick(ButtonNames.OK);
|
|
197
197
|
setIsVisible(false);
|
|
198
198
|
}, caption: btns.includes(ButtonNames.YES) ? SDKUI_Localizator.Yes : 'OK', showTooltip: false }), btns.includes(ButtonNames.NO) &&
|
|
199
|
-
_jsx(ResponsiveButton, { fontSize: 'clamp(
|
|
199
|
+
_jsx(ResponsiveButton, { fontSize: 'clamp(12px, 2vw, 1.1rem)', btnStyle: 'text', onClick: () => {
|
|
200
200
|
onButtonClick && onButtonClick(ButtonNames.NO);
|
|
201
201
|
setIsVisible(false);
|
|
202
202
|
}, caption: SDKUI_Localizator.No, showTooltip: false, color: 'error' }), btns.includes(ButtonNames.CANCEL) &&
|
|
203
|
-
_jsx(ResponsiveButton, { fontSize: 'clamp(
|
|
203
|
+
_jsx(ResponsiveButton, { fontSize: 'clamp(12px, 2vw, 1.1rem)', btnStyle: 'text', onClick: () => {
|
|
204
204
|
onButtonClick && onButtonClick(ButtonNames.CANCEL);
|
|
205
205
|
setIsVisible(false);
|
|
206
206
|
}, caption: SDKUI_Localizator.Cancel, showTooltip: false, color: 'error' })] }));
|