diff --git a/webapp/packages/core-blocks/src/FormControls/InputField.tsx b/webapp/packages/core-blocks/src/FormControls/InputField.tsx index 77dfb6ed06..7510a1f136 100644 --- a/webapp/packages/core-blocks/src/FormControls/InputField.tsx +++ b/webapp/packages/core-blocks/src/FormControls/InputField.tsx @@ -7,7 +7,6 @@ */ import { observer } from 'mobx-react-lite'; import { forwardRef, useCallback, useContext, useLayoutEffect, useRef, useState } from 'react'; -import styled, { use } from 'reshadow'; import type { ComponentStyle } from '@cloudbeaver/core-theming'; import { isNotNullDefined } from '@cloudbeaver/core-utils'; @@ -161,7 +160,7 @@ export const InputField: InputFieldType = observer( return null; } - return styled(propStyles)( + return (
{children} @@ -178,7 +177,6 @@ export const InputField: InputFieldType = observer( onChange={handleChange} onBlur={handleBlur} onKeyDown={handleKeyDown} - {...use({ mod })} required={required} /> {loading && ( @@ -198,11 +196,11 @@ export const InputField: InputFieldType = observer( )}
{(description || passwordType) && ( -
+
{description}
)} -
, +
); }), ); diff --git a/webapp/packages/core-blocks/src/ObjectPropertyInfo/ObjectPropertyInfoForm/RenderField.tsx b/webapp/packages/core-blocks/src/ObjectPropertyInfo/ObjectPropertyInfoForm/RenderField.tsx index 7f1848ed7b..dc8b4a4965 100644 --- a/webapp/packages/core-blocks/src/ObjectPropertyInfo/ObjectPropertyInfoForm/RenderField.tsx +++ b/webapp/packages/core-blocks/src/ObjectPropertyInfo/ObjectPropertyInfoForm/RenderField.tsx @@ -212,7 +212,6 @@ export const RenderField = observer(function RenderField({ state={state} disabled={disabled} readOnly={readOnly} - mod="surface" className={className} > {property.displayName ?? ''} @@ -251,7 +250,6 @@ export const RenderField = observer(function RenderField({ readOnly={readOnly} autoHide={autoHide} autoComplete={RESERVED_KEYWORDS.includes(autofillToken) ? autofillToken : `${autofillToken} ${property.id}`} - mod="surface" className={className} canShowPassword={canShowPassword} onFocus={onFocus} @@ -273,7 +271,6 @@ export const RenderField = observer(function RenderField({ disabled={disabled} readOnly={readOnly} autoComplete={RESERVED_KEYWORDS.includes(autofillToken) ? autofillToken : `${autofillToken} ${property.id}`} - mod="surface" className={className} canShowPassword={canShowPassword} onFocus={onFocus} diff --git a/webapp/packages/plugin-administration/src/ConfigurationWizard/ServerConfiguration/Form/ServerConfigurationInfoForm.tsx b/webapp/packages/plugin-administration/src/ConfigurationWizard/ServerConfiguration/Form/ServerConfigurationInfoForm.tsx index 931f8de1aa..9e90bd0765 100644 --- a/webapp/packages/plugin-administration/src/ConfigurationWizard/ServerConfiguration/Form/ServerConfigurationInfoForm.tsx +++ b/webapp/packages/plugin-administration/src/ConfigurationWizard/ServerConfiguration/Form/ServerConfigurationInfoForm.tsx @@ -22,7 +22,7 @@ export const ServerConfigurationInfoForm = observer(function ServerConfig return ( {translate('administration_configuration_wizard_configuration_server_info')} - + {translate('administration_configuration_wizard_configuration_server_name')} (function ServerConfig name="serverURL" state={state.serverConfig} readOnly={serverConfigLoader.resource.distributed} - mod="surface" required medium > @@ -42,7 +41,6 @@ export const ServerConfigurationInfoForm = observer(function ServerConfig type="number" name="sessionExpireTime" state={state.serverConfig} - mod="surface" min={1} mapState={v => (v === 0 ? 60000 : v ?? 1800000) / 1000 / 60} mapValue={v => (v === undefined ? 30 : Number(v) || 1) * 1000 * 60} diff --git a/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/ServerConfigurationAdminForm.tsx b/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/ServerConfigurationAdminForm.tsx index c9c37c924c..6c0d22dbfa 100644 --- a/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/ServerConfigurationAdminForm.tsx +++ b/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/ServerConfigurationAdminForm.tsx @@ -20,10 +20,10 @@ export const ServerConfigurationAdminForm = observer(function ServerConfi return ( {translate('administration_configuration_wizard_configuration_admin')} - + {translate('administration_configuration_wizard_configuration_admin_name')} - + {translate('administration_configuration_wizard_configuration_admin_password')} diff --git a/webapp/packages/plugin-authentication-administration/src/Administration/Users/MetaParameters/Form/UserInfo/MetaParametersForm.tsx b/webapp/packages/plugin-authentication-administration/src/Administration/Users/MetaParameters/Form/UserInfo/MetaParametersForm.tsx index 3536d41716..63eb79b42b 100644 --- a/webapp/packages/plugin-authentication-administration/src/Administration/Users/MetaParameters/Form/UserInfo/MetaParametersForm.tsx +++ b/webapp/packages/plugin-authentication-administration/src/Administration/Users/MetaParameters/Form/UserInfo/MetaParametersForm.tsx @@ -30,10 +30,10 @@ export const MetaParametersForm = observer(function MetaParametersForm({ - + {translate('plugin_user_profile_info_id')} - + {translate('plugin_user_profile_info_displayName')} diff --git a/webapp/packages/plugin-authentication-administration/src/Administration/Users/UserForm/UserInfo.tsx b/webapp/packages/plugin-authentication-administration/src/Administration/Users/UserForm/UserInfo.tsx index 9b6e868786..2ccc8f4aca 100644 --- a/webapp/packages/plugin-authentication-administration/src/Administration/Users/UserForm/UserInfo.tsx +++ b/webapp/packages/plugin-authentication-administration/src/Administration/Users/UserForm/UserInfo.tsx @@ -61,7 +61,6 @@ export const UserInfo: TabContainerPanelComponent = observer(fun state={controller.credentials} disabled={controller.isSaving} readOnly={editing} - mod="surface" keepSize tiny required @@ -78,7 +77,6 @@ export const UserInfo: TabContainerPanelComponent = observer(fun placeholder={editing ? PASSWORD_PLACEHOLDER : ''} disabled={controller.isSaving} canShowPassword={controller.credentials['password'] !== ''} - mod="surface" keepSize tiny required @@ -92,7 +90,6 @@ export const UserInfo: TabContainerPanelComponent = observer(fun placeholder={editing ? PASSWORD_PLACEHOLDER : ''} canShowPassword={controller.credentials['passwordRepeat'] !== ''} disabled={controller.isSaving} - mod="surface" keepSize tiny required diff --git a/webapp/packages/plugin-authentication/src/Dialog/AuthProviderForm/AuthProviderForm.tsx b/webapp/packages/plugin-authentication/src/Dialog/AuthProviderForm/AuthProviderForm.tsx index eec05b6266..3a4411eaf5 100644 --- a/webapp/packages/plugin-authentication/src/Dialog/AuthProviderForm/AuthProviderForm.tsx +++ b/webapp/packages/plugin-authentication/src/Dialog/AuthProviderForm/AuthProviderForm.tsx @@ -53,7 +53,6 @@ export const AuthProviderForm = observer(function AuthProviderForm({ prov disabled={authenticate} canShowPassword={false} autoComplete={`section-authentication section-${provider.id} ${parameter.id}`} - mod="surface" > {parameter.displayName} diff --git a/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx b/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx index 430c273db5..2b2e60621d 100644 --- a/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx +++ b/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx @@ -53,10 +53,10 @@ export const NetworkHandlerAuthForm = observer(function NetworkHandlerAut {ssh && ( <> - + {translate(`connections_network_handler_${id}_user`, 'connections_network_handler_default_user')} - + {passwordLabel} diff --git a/webapp/packages/plugin-connections/src/ConnectionForm/Options/Options.tsx b/webapp/packages/plugin-connections/src/ConnectionForm/Options/Options.tsx index 97ca18b52a..93e9654cd7 100644 --- a/webapp/packages/plugin-connections/src/ConnectionForm/Options/Options.tsx +++ b/webapp/packages/plugin-connections/src/ConnectionForm/Options/Options.tsx @@ -236,7 +236,6 @@ export const Options: TabContainerPanelComponent = observe disabled={disabled} readOnly={readonly} autoComplete={`section-${config.driverId || 'driver'} section-jdbc`} - mod="surface" > {translate('customConnection_url_JDBC')} @@ -253,7 +252,7 @@ export const Options: TabContainerPanelComponent = observe - + {translate('connections_connection_name')} {!config.template && ( @@ -272,7 +271,6 @@ export const Options: TabContainerPanelComponent = observe state={config} disabled={disabled} autoComplete={`section-${config.driverId || 'driver'} section-folder`} - mod="surface" autoHide readOnly tiny diff --git a/webapp/packages/plugin-connections/src/ConnectionForm/SSH/SSH.tsx b/webapp/packages/plugin-connections/src/ConnectionForm/SSH/SSH.tsx index 27921ca733..bcf57e0492 100644 --- a/webapp/packages/plugin-connections/src/ConnectionForm/SSH/SSH.tsx +++ b/webapp/packages/plugin-connections/src/ConnectionForm/SSH/SSH.tsx @@ -118,7 +118,6 @@ export const SSH: TabContainerPanelComponent = observer(function SSH({ st state={handlerState.properties} disabled={disabled || !enabled} readOnly={readonly} - mod="surface" required small > @@ -130,7 +129,6 @@ export const SSH: TabContainerPanelComponent = observer(function SSH({ st state={handlerState.properties} disabled={disabled || !enabled} readOnly={readonly} - mod="surface" required tiny > @@ -144,7 +142,6 @@ export const SSH: TabContainerPanelComponent = observer(function SSH({ st state={handlerState} disabled={disabled || !enabled} readOnly={readonly} - mod="surface" required={handlerState.savePassword} tiny fill @@ -158,7 +155,6 @@ export const SSH: TabContainerPanelComponent = observer(function SSH({ st state={handlerState} disabled={disabled || !enabled} readOnly={readonly} - mod="surface" required={!keyAuth && handlerState.savePassword} description={passwordSaved ? translate('ui_processing_saved') : undefined} tiny @@ -188,7 +184,6 @@ export const SSH: TabContainerPanelComponent = observer(function SSH({ st disabled={disabled || !enabled} readOnly={readonly} labelTooltip={aliveIntervalLabel} - mod="surface" tiny > {aliveIntervalLabel} @@ -200,7 +195,6 @@ export const SSH: TabContainerPanelComponent = observer(function SSH({ st disabled={disabled || !enabled} readOnly={readonly} labelTooltip={connectTimeoutLabel} - mod="surface" tiny > {connectTimeoutLabel} diff --git a/webapp/packages/plugin-settings-panel/src/SettingsPanel/SettingsInfoFormField.tsx b/webapp/packages/plugin-settings-panel/src/SettingsPanel/SettingsInfoFormField.tsx index ecfc52c340..ccac88c3c4 100644 --- a/webapp/packages/plugin-settings-panel/src/SettingsPanel/SettingsInfoFormField.tsx +++ b/webapp/packages/plugin-settings-panel/src/SettingsPanel/SettingsInfoFormField.tsx @@ -93,7 +93,6 @@ export const SettingsInfoFormField = observer(functi description={description} disabled={disabled} readOnly={readOnly} - mod="surface" className={className} small onChange={onChange} diff --git a/webapp/packages/plugin-user-profile/src/UserProfileForm/UserInfo/UserInfoPanel.tsx b/webapp/packages/plugin-user-profile/src/UserProfileForm/UserInfo/UserInfoPanel.tsx index 965e5335ac..18ca1f404b 100644 --- a/webapp/packages/plugin-user-profile/src/UserProfileForm/UserInfo/UserInfoPanel.tsx +++ b/webapp/packages/plugin-user-profile/src/UserProfileForm/UserInfo/UserInfoPanel.tsx @@ -45,13 +45,13 @@ export const UserInfoPanel = observer(function UserInfoPanel({ user, clas {translate('plugin_user_profile_info')} - + {translate('plugin_user_profile_info_id')} - + {translate('plugin_user_profile_info_displayName')} - + {translate('authentication_user_role')}