@npm_leadtech/legal-lib-components 5.39.10 → 5.39.11-b1
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/src/components/atoms/Radio/index.d.ts +1 -1
- package/dist/src/components/atoms/Radio/index.js +1 -0
- package/dist/src/components/atoms/Radio/index.ts +1 -1
- package/dist/src/components/molecules/TextInput/TextInput.js +2 -2
- package/dist/src/components/molecules/TextInput/TextInput.tsx +2 -0
- package/dist/src/components/molecules/TextInput/TextInputProps.types.d.ts +1 -0
- package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +1 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +2 -1
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +2 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Radio } from './Radio';
|
|
2
|
-
export
|
|
2
|
+
export * from './RadioProps.types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Radio } from './Radio'
|
|
2
|
-
export
|
|
2
|
+
export * from './RadioProps.types'
|
|
@@ -6,7 +6,7 @@ import { Input } from './Input';
|
|
|
6
6
|
import { TextInputLabel } from './TextInputLabel';
|
|
7
7
|
import { TextInputMessage } from './TextInputMessage';
|
|
8
8
|
import { TextInputTooltip } from './TextInputTooltip';
|
|
9
|
-
const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children }, ref) => {
|
|
9
|
+
const TextInput = React.forwardRef(({ key, label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children }, ref) => {
|
|
10
10
|
const classnames = classNames('e-text', {
|
|
11
11
|
[givenClass]: givenClass,
|
|
12
12
|
'e-text--is-invalid': !validate,
|
|
@@ -30,7 +30,7 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
|
|
|
30
30
|
// maskchar={null}
|
|
31
31
|
value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
|
|
32
32
|
}
|
|
33
|
-
return (_jsx(Input, { name: name ?? '', type: type, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }));
|
|
33
|
+
return (_jsx(Input, { name: name ?? '', type: type, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }, key));
|
|
34
34
|
};
|
|
35
35
|
return (_jsxs("div", { className: classnames, children: [Boolean(children) && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
|
|
36
36
|
});
|
|
@@ -11,6 +11,7 @@ import { TextInputTooltip } from './TextInputTooltip'
|
|
|
11
11
|
const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
12
12
|
(
|
|
13
13
|
{
|
|
14
|
+
key,
|
|
14
15
|
label,
|
|
15
16
|
value,
|
|
16
17
|
validate = true,
|
|
@@ -77,6 +78,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
77
78
|
|
|
78
79
|
return (
|
|
79
80
|
<Input
|
|
81
|
+
key={key}
|
|
80
82
|
name={name ?? ''}
|
|
81
83
|
type={type}
|
|
82
84
|
placeholder={placeholder ?? ''}
|
|
@@ -3,6 +3,7 @@ import { Checkbox } from '../../atoms';
|
|
|
3
3
|
import { TextInput } from '../../molecules';
|
|
4
4
|
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled';
|
|
5
5
|
const LoginRatafiaContent = ({ title, email, policy }) => {
|
|
6
|
-
|
|
6
|
+
console.log('LoginRatafiaContentProps:', { title, email, policy });
|
|
7
|
+
return (_jsxs(LoginRatafiaContentStyled, { children: [_jsx("h2", { className: 'login-ratafia-content__title', children: title }), _jsx("div", { className: 'login-ratafia-content__email', children: _jsx(TextInput, { ...email }, 'ratafia-login-email') }), _jsx("div", { className: 'login-ratafia-content__policy', children: _jsx(Checkbox, { ...policy }) })] }));
|
|
7
8
|
};
|
|
8
9
|
export default LoginRatafiaContent;
|
|
@@ -8,11 +8,12 @@ import { TextInput } from '../../molecules'
|
|
|
8
8
|
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled'
|
|
9
9
|
|
|
10
10
|
const LoginRatafiaContent: FC<LoginRatafiaContentProps> = ({ title, email, policy }) => {
|
|
11
|
+
console.log('LoginRatafiaContentProps:', { title, email, policy })
|
|
11
12
|
return (
|
|
12
13
|
<LoginRatafiaContentStyled>
|
|
13
14
|
<h2 className='login-ratafia-content__title'>{title}</h2>
|
|
14
15
|
<div className='login-ratafia-content__email'>
|
|
15
|
-
<TextInput {...email} />
|
|
16
|
+
<TextInput key='ratafia-login-email' {...email} />
|
|
16
17
|
</div>
|
|
17
18
|
<div className='login-ratafia-content__policy'>
|
|
18
19
|
<Checkbox {...policy} />
|