@npm_leadtech/legal-lib-components 7.3.1 → 7.4.0

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.
Files changed (22) hide show
  1. package/dist/css/styles.css +0 -28
  2. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +1 -1
  3. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +1 -1
  4. package/dist/src/components/atoms/FeatureRatafiaCard/FeatureRatafiaCard.js +1 -1
  5. package/dist/src/components/atoms/FeatureRatafiaCard/FeatureRatafiaCard.tsx +2 -2
  6. package/dist/src/components/atoms/IconImage/IconImage.js +2 -2
  7. package/dist/src/components/atoms/IconImage/IconImage.tsx +7 -9
  8. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.styled.js +6 -0
  9. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.styled.ts +6 -0
  10. package/dist/src/components/molecules/TextInput/Input.d.ts +0 -2
  11. package/dist/src/components/molecules/TextInput/Input.js +3 -11
  12. package/dist/src/components/molecules/TextInput/Input.tsx +2 -24
  13. package/dist/src/components/molecules/TextInput/TextInput.js +9 -5
  14. package/dist/src/components/molecules/TextInput/TextInput.scss +0 -32
  15. package/dist/src/components/molecules/TextInput/TextInput.tsx +5 -7
  16. package/dist/src/components/molecules/TextInput/TextInputProps.types.d.ts +0 -2
  17. package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +0 -2
  18. package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +0 -22
  19. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +2 -1
  20. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +2 -1
  21. package/package.json +1 -1
  22. package/dist/images/svg/currencyUS.svg +0 -3
@@ -2154,20 +2154,6 @@ h2.react-datepicker__current-month {
2154
2154
  outline: none;
2155
2155
  background-color: var(--neutral-neutral-6);
2156
2156
  }
2157
- .e-text--has-prefix {
2158
- width: 100%;
2159
- }
2160
- @media (min-width: 575px) {
2161
- .e-text--has-prefix {
2162
- width: 50%;
2163
- }
2164
- }
2165
- .e-text--has-prefix .has-currency-prefix {
2166
- padding-left: 2rem;
2167
- }
2168
- .e-text--has-prefix .has-currency-suffix {
2169
- padding-right: 2rem;
2170
- }
2171
2157
  .e-text .input-icon {
2172
2158
  position: absolute;
2173
2159
  transform: translate(-15%, -65%);
@@ -2182,20 +2168,6 @@ h2.react-datepicker__current-month {
2182
2168
  background: none;
2183
2169
  border: none;
2184
2170
  }
2185
- .e-text .input-icon-currency-suffix {
2186
- position: absolute;
2187
- right: 10px;
2188
- bottom: 10px;
2189
- background: none;
2190
- border: none;
2191
- }
2192
- .e-text .input-icon-currency-prefix {
2193
- position: absolute;
2194
- left: 10px;
2195
- bottom: 10px;
2196
- background: none;
2197
- border: none;
2198
- }
2199
2171
  .e-text .formgroup--input__button {
2200
2172
  align-self: flex-start;
2201
2173
  font-size: 0.75rem;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { BenefitRatafiaCardStyled } from './BenefitRatafiaCard.styled';
3
3
  export const BenefitRatafiaCard = ({ title, image, description }) => {
4
- return (_jsxs(BenefitRatafiaCardStyled, { className: 'benefit-ratafia-card', children: [image !== null && _jsx("div", { className: 'benefit-ratafia-card__icon', children: image }), _jsxs("div", { className: 'benefit-ratafia-card__content', children: [_jsx("h3", { className: 'sans-serif --big --bold-weight benefit-ratafia-card__content__title', children: title }), _jsx("p", { className: 'sans-serif --medium benefit-ratafia-card__content__description', children: description })] })] }));
4
+ return (_jsxs(BenefitRatafiaCardStyled, { className: 'benefit-ratafia-card', children: [image !== null && _jsx("div", { className: 'benefit-ratafia-card__icon', children: image }), _jsxs("div", { className: 'benefit-ratafia-card__content', children: [_jsx("p", { className: 'sans-serif --big --bold-weight benefit-ratafia-card__content__title', children: title }), _jsx("p", { className: 'sans-serif --medium benefit-ratafia-card__content__description', children: description })] })] }));
5
5
  };
6
6
  export default BenefitRatafiaCard;
@@ -8,7 +8,7 @@ export const BenefitRatafiaCard: React.FC<BenefitRatafiaCardProps> = ({ title, i
8
8
  <BenefitRatafiaCardStyled className='benefit-ratafia-card'>
9
9
  {image !== null && <div className='benefit-ratafia-card__icon'>{image}</div>}
10
10
  <div className='benefit-ratafia-card__content'>
11
- <h3 className='sans-serif --big --bold-weight benefit-ratafia-card__content__title'>{title}</h3>
11
+ <p className='sans-serif --big --bold-weight benefit-ratafia-card__content__title'>{title}</p>
12
12
  <p className='sans-serif --medium benefit-ratafia-card__content__description'>{description}</p>
13
13
  </div>
14
14
  </BenefitRatafiaCardStyled>
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { FeatureRatafiaCardStyled } from './FeatureRatafiaCard.styled';
3
3
  export const FeatureRatafiaCard = ({ title, icon, description, isReleased = true, notReleasedText }) => {
4
- return (_jsx(FeatureRatafiaCardStyled, { className: 'feature-ratafia-card', children: _jsx("div", { className: isReleased ? 'feature-ratafia-card-released' : 'feature-ratafia-card-not-released', children: _jsxs("div", { className: 'feature-ratafia-card__wrapper', children: [_jsxs("div", { className: 'feature-ratafia-card__wrapper__header', children: [_jsxs("div", { className: 'feature-ratafia-card__wrapper__header__title', children: [icon !== null && _jsx("div", { className: 'feature-ratafia-card__wrapper__header__title__icon', children: icon }), _jsx("h3", { className: 'sans-serif --big --bold-weight feature-ratafia-card__wrapper__header__title__text', children: title })] }), !isReleased && (_jsx("p", { className: 'sans-serif --small --bold-weight feature-ratafia-card__wrapper__header__not-released', children: notReleasedText }))] }), _jsx("p", { className: 'sans-serif --medium feature-ratafia-card__wrapper__description', children: description })] }) }) }));
4
+ return (_jsx(FeatureRatafiaCardStyled, { className: 'feature-ratafia-card', children: _jsx("div", { className: isReleased ? 'feature-ratafia-card-released' : 'feature-ratafia-card-not-released', children: _jsxs("div", { className: 'feature-ratafia-card__wrapper', children: [_jsxs("div", { className: 'feature-ratafia-card__wrapper__header', children: [_jsxs("div", { className: 'feature-ratafia-card__wrapper__header__title', children: [icon !== null && _jsx("div", { className: 'feature-ratafia-card__wrapper__header__title__icon', children: icon }), _jsx("p", { className: 'sans-serif --big --bold-weight feature-ratafia-card__wrapper__header__title__text', children: title })] }), !isReleased && (_jsx("p", { className: 'sans-serif --small --bold-weight feature-ratafia-card__wrapper__header__not-released', children: notReleasedText }))] }), _jsx("p", { className: 'sans-serif --medium feature-ratafia-card__wrapper__description', children: description })] }) }) }));
5
5
  };
6
6
  export default FeatureRatafiaCard;
@@ -17,9 +17,9 @@ export const FeatureRatafiaCard: React.FC<FeatureRatafiaCardProps> = ({
17
17
  <div className='feature-ratafia-card__wrapper__header'>
18
18
  <div className='feature-ratafia-card__wrapper__header__title'>
19
19
  {icon !== null && <div className='feature-ratafia-card__wrapper__header__title__icon'>{icon}</div>}
20
- <h3 className='sans-serif --big --bold-weight feature-ratafia-card__wrapper__header__title__text'>
20
+ <p className='sans-serif --big --bold-weight feature-ratafia-card__wrapper__header__title__text'>
21
21
  {title}
22
- </h3>
22
+ </p>
23
23
  </div>
24
24
  {!isReleased && (
25
25
  <p className='sans-serif --small --bold-weight feature-ratafia-card__wrapper__header__not-released'>
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- const IconImage = ({ iconName, baseSrcUrl = undefined, givenClass, iconFormat = 'svg' }) => {
3
- return (_jsx("img", { className: givenClass, src: `${baseSrcUrl ?? process.env.ASSETS_URL + '/'}${iconName}.${iconFormat}`, alt: '', role: 'img' }));
2
+ const IconImage = ({ iconName, baseSrcUrl = 'https://assets.lawdistrict.com/', givenClass, iconFormat = 'svg' }) => {
3
+ return _jsx("img", { className: givenClass, src: `${baseSrcUrl}${iconName}.${iconFormat}`, alt: '', role: 'img' });
4
4
  };
5
5
  export default IconImage;
@@ -2,15 +2,13 @@ import React from 'react'
2
2
 
3
3
  import { type IconImageProps } from './IconImageProps.types'
4
4
 
5
- const IconImage: React.FC<IconImageProps> = ({ iconName, baseSrcUrl = undefined, givenClass, iconFormat = 'svg' }) => {
6
- return (
7
- <img
8
- className={givenClass}
9
- src={`${baseSrcUrl ?? process.env.ASSETS_URL + '/'}${iconName}.${iconFormat}`}
10
- alt=''
11
- role='img'
12
- />
13
- )
5
+ const IconImage: React.FC<IconImageProps> = ({
6
+ iconName,
7
+ baseSrcUrl = 'https://assets.lawdistrict.com/',
8
+ givenClass,
9
+ iconFormat = 'svg'
10
+ }) => {
11
+ return <img className={givenClass} src={`${baseSrcUrl}${iconName}.${iconFormat}`} alt='' role='img' />
14
12
  }
15
13
 
16
14
  export default IconImage
@@ -20,6 +20,12 @@ export const MidBannerRatafiaContentStyled = styled.div `
20
20
  &__description {
21
21
  align-self: stretch;
22
22
  color: var(--neutral-neutral-1);
23
+
24
+ .richt-text-strapi {
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: var(--global-gap);
28
+ }
23
29
  }
24
30
  }
25
31
  &__cta {
@@ -21,6 +21,12 @@ export const MidBannerRatafiaContentStyled = styled.div`
21
21
  &__description {
22
22
  align-self: stretch;
23
23
  color: var(--neutral-neutral-1);
24
+
25
+ .richt-text-strapi {
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: var(--global-gap);
29
+ }
24
30
  }
25
31
  }
26
32
  &__cta {
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  interface InputProps {
3
3
  name: string;
4
4
  placeholder: string;
5
- prefix: string;
6
5
  maxLength: number;
7
6
  value: string;
8
7
  type: 'password' | 'text' | 'number' | 'tel';
@@ -13,7 +12,6 @@ interface InputProps {
13
12
  onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
14
13
  onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
15
14
  onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
16
- country: string;
17
15
  }
18
16
  export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
19
17
  export {};
@@ -1,24 +1,16 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useState } from 'react';
3
- import currency from '../../../../images/svg/currencyUS.svg';
4
3
  import eyeCloseIcon from '../../../../images/svg/eye-close.svg';
5
4
  import eyeIcon from '../../../../images/svg/eye-24-px.svg';
6
- export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, country, prefix }, ref) => {
5
+ export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength }, ref) => {
7
6
  const [hidden, setHidden] = useState(true);
8
7
  const showPassword = () => {
9
8
  if (value !== null)
10
9
  setHidden(!hidden);
11
10
  };
12
- const euro = country === 'DE';
13
- const otherCurrency = country !== 'DE';
14
- let finalClassName = className;
15
- if (otherCurrency)
16
- finalClassName += ' has-currency-prefix';
17
- if (euro)
18
- finalClassName += ' has-currency-suffix';
19
- return (_jsxs(_Fragment, { children: [!!prefix && otherCurrency && (_jsx("div", { className: 'input-icon-currency-prefix', children: _jsx("img", { src: currency, alt: 'currency' }) })), _jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: finalClassName, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
11
+ return (_jsxs(_Fragment, { children: [_jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: className, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
20
12
  if (e.key === 'Enter')
21
13
  showPassword();
22
- }, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) })), !!prefix && euro && (_jsx("div", { className: 'input-icon-currency-suffix', children: _jsx("img", { src: currency, alt: 'currency' }) }))] }));
14
+ }, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) }))] }));
23
15
  });
24
16
  Input.displayName = 'Input';
@@ -1,13 +1,11 @@
1
1
  import React, { useState } from 'react'
2
2
 
3
- import currency from '../../../../images/svg/currencyUS.svg'
4
3
  import eyeCloseIcon from '../../../../images/svg/eye-close.svg'
5
4
  import eyeIcon from '../../../../images/svg/eye-24-px.svg'
6
5
 
7
6
  interface InputProps {
8
7
  name: string
9
8
  placeholder: string
10
- prefix: string
11
9
  maxLength: number
12
10
  value: string
13
11
  type: 'password' | 'text' | 'number' | 'tel'
@@ -18,7 +16,6 @@ interface InputProps {
18
16
  onBlur: (e: React.FocusEvent<HTMLInputElement>) => void
19
17
  onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void
20
18
  onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void
21
- country: string
22
19
  }
23
20
 
24
21
  export const Input = React.forwardRef<HTMLInputElement, InputProps>(
@@ -35,9 +32,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
35
32
  onKeyUp,
36
33
  disabled,
37
34
  type = 'text',
38
- maxLength,
39
- country,
40
- prefix
35
+ maxLength
41
36
  }: InputProps,
42
37
  ref
43
38
  ) => {
@@ -46,26 +41,14 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
46
41
  const showPassword = (): void => {
47
42
  if (value !== null) setHidden(!hidden)
48
43
  }
49
- const euro = country === 'DE'
50
- const otherCurrency = country !== 'DE'
51
-
52
- let finalClassName = className
53
-
54
- if (otherCurrency) finalClassName += ' has-currency-prefix'
55
- if (euro) finalClassName += ' has-currency-suffix'
56
44
 
57
45
  return (
58
46
  <>
59
- {!!prefix && otherCurrency && (
60
- <div className='input-icon-currency-prefix'>
61
- <img src={currency} alt='currency' />
62
- </div>
63
- )}
64
47
  <input
65
48
  type={!hidden && type === 'password' ? 'text' : type}
66
49
  name={name}
67
50
  id={name}
68
- className={finalClassName}
51
+ className={className}
69
52
  maxLength={maxLength}
70
53
  placeholder={placeholder}
71
54
  onChange={onChange}
@@ -90,11 +73,6 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
90
73
  <img src={hidden ? eyeIcon : eyeCloseIcon} alt='' />
91
74
  </button>
92
75
  )}
93
- {!!prefix && euro && (
94
- <div className='input-icon-currency-suffix'>
95
- <img src={currency} alt='currency' />
96
- </div>
97
- )}
98
76
  </>
99
77
  )
100
78
  }
@@ -6,12 +6,11 @@ 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, prefix = '', disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children, country }, ref) => {
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) => {
10
10
  const classnames = classNames('e-text', {
11
11
  [givenClass]: givenClass,
12
12
  'e-text--is-invalid': !validate,
13
- 'e-text--group-invalid': !isValidGroup,
14
- 'e-text--has-prefix': !!prefix
13
+ 'e-text--group-invalid': !isValidGroup
15
14
  });
16
15
  const handleChange = (event) => {
17
16
  onChange(event);
@@ -24,9 +23,14 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
24
23
  };
25
24
  const renderInput = () => {
26
25
  if (Boolean(format) && type !== 'number' && type !== 'tel') {
27
- return (_jsx(NumericFormat, { name: name, id: name, placeholder: placeholder, className: 'e-text-input', onChange: onChange, onClick: onClick, value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
26
+ return (_jsx(NumericFormat, { name: name, id: name, placeholder: placeholder, className: 'e-text-input',
27
+ // mask={mask}
28
+ // format={format}
29
+ onChange: onChange, onClick: onClick,
30
+ // maskchar={null}
31
+ value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
28
32
  }
29
- return (_jsx(Input, { name: name ?? '', type: type, prefix: prefix, 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, country: country }));
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 }));
30
34
  };
31
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 })] }));
32
36
  });
@@ -148,22 +148,6 @@
148
148
  }
149
149
  }
150
150
 
151
- &--has-prefix {
152
- width: 100%;
153
-
154
- @include portrait-tablets {
155
- width: 50%;
156
- }
157
-
158
- .has-currency-prefix {
159
- padding-left: 2rem;
160
- }
161
-
162
- .has-currency-suffix {
163
- padding-right: 2rem;
164
- }
165
- }
166
-
167
151
  .input-icon {
168
152
  position: absolute;
169
153
  transform: translate(-15%, -65%);
@@ -180,22 +164,6 @@
180
164
  border: none;
181
165
  }
182
166
 
183
- .input-icon-currency-suffix {
184
- position: absolute;
185
- right: 10px;
186
- bottom: 10px;
187
- background: none;
188
- border: none;
189
- }
190
-
191
- .input-icon-currency-prefix {
192
- position: absolute;
193
- left: 10px;
194
- bottom: 10px;
195
- background: none;
196
- border: none;
197
- }
198
-
199
167
  .formgroup--input__button {
200
168
  align-self: flex-start;
201
169
  font-size: 0.75rem;
@@ -23,7 +23,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
23
23
  onBlur,
24
24
  onKeyDown,
25
25
  onKeyUp,
26
- prefix = '',
27
26
  disabled,
28
27
  type = 'text',
29
28
  maxLength,
@@ -32,16 +31,14 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
32
31
  dialogMenuTip,
33
32
  tooltip = '',
34
33
  givenClass = '',
35
- children,
36
- country
34
+ children
37
35
  }: TextInputProps,
38
36
  ref
39
37
  ) => {
40
38
  const classnames = classNames('e-text', {
41
39
  [givenClass]: givenClass,
42
40
  'e-text--is-invalid': !validate,
43
- 'e-text--group-invalid': !isValidGroup,
44
- 'e-text--has-prefix': !!prefix
41
+ 'e-text--group-invalid': !isValidGroup
45
42
  })
46
43
 
47
44
  const handleChange = (event: React.ChangeEvent<HTMLInputElement>): void => {
@@ -64,8 +61,11 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
64
61
  id={name}
65
62
  placeholder={placeholder}
66
63
  className='e-text-input'
64
+ // mask={mask}
65
+ // format={format}
67
66
  onChange={onChange}
68
67
  onClick={onClick}
68
+ // maskchar={null}
69
69
  value={value}
70
70
  data-qa={name}
71
71
  disabled={disabled}
@@ -79,7 +79,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
79
79
  <Input
80
80
  name={name ?? ''}
81
81
  type={type}
82
- prefix={prefix}
83
82
  placeholder={placeholder ?? ''}
84
83
  className='e-text-input'
85
84
  onChange={handleChange}
@@ -92,7 +91,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
92
91
  ref={ref}
93
92
  onKeyDown={handleKeyDown}
94
93
  onKeyUp={handleKeyUp}
95
- country={country}
96
94
  />
97
95
  )
98
96
  }
@@ -20,7 +20,5 @@ export interface TextInputProps {
20
20
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
21
21
  onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
22
22
  onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
23
- prefix?: string;
24
23
  children?: React.ReactNode;
25
- country: string;
26
24
  }
@@ -21,7 +21,5 @@ export interface TextInputProps {
21
21
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void
22
22
  onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void
23
23
  onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void
24
- prefix?: string
25
24
  children?: React.ReactNode
26
- country: string
27
25
  }
@@ -123,25 +123,3 @@ export const MaskInput: Story = {
123
123
  placeholder: 'eg. 2111 1111 1111 1111'
124
124
  }
125
125
  }
126
-
127
- export const WithPrefixEuro: Story = {
128
- args: {
129
- name: 'prefix',
130
- label: 'Price:',
131
- value: '20.30',
132
- type: 'text',
133
- prefix: '€',
134
- country: 'DE'
135
- }
136
- }
137
-
138
- export const WithPrefixNoEuro: Story = {
139
- args: {
140
- name: 'prefix',
141
- label: 'Price:',
142
- value: '20.30',
143
- type: 'text',
144
- prefix: '$',
145
- country: 'US'
146
- }
147
- }
@@ -39,7 +39,7 @@ export const FeaturesRatafiaSectionStyled = styled.section `
39
39
 
40
40
  &__children {
41
41
  display: none;
42
- min-width: 50%;
42
+ width: 100%;
43
43
 
44
44
  @media ${device.desktop} {
45
45
  display: flex;
@@ -48,6 +48,7 @@ export const FeaturesRatafiaSectionStyled = styled.section `
48
48
  }
49
49
  img {
50
50
  width: 100%;
51
+ height: auto;
51
52
  }
52
53
  }
53
54
  }
@@ -40,7 +40,7 @@ export const FeaturesRatafiaSectionStyled = styled.section`
40
40
 
41
41
  &__children {
42
42
  display: none;
43
- min-width: 50%;
43
+ width: 100%;
44
44
 
45
45
  @media ${device.desktop} {
46
46
  display: flex;
@@ -49,6 +49,7 @@ export const FeaturesRatafiaSectionStyled = styled.section`
49
49
  }
50
50
  img {
51
51
  width: 100%;
52
+ height: auto;
52
53
  }
53
54
  }
54
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.3.1",
3
+ "version": "7.4.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +0,0 @@
1
- <svg width="10" height="18" viewBox="0 0 10 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M4.94505 17.3333C4.6827 17.3333 4.4628 17.2446 4.28533 17.0671C4.10786 16.8896 4.01912 16.6697 4.01912 16.4074V15.3426C3.32468 15.1882 2.71511 14.9182 2.19042 14.5324C1.66573 14.1466 1.24135 13.6064 0.917271 12.912C0.809246 12.6959 0.805388 12.4683 0.905697 12.2291C1.00601 11.9899 1.18733 11.8163 1.44968 11.7083C1.66573 11.6157 1.88949 11.6196 2.12097 11.7199C2.35246 11.8202 2.52993 11.9861 2.65338 12.2176C2.91573 12.6805 3.24752 13.0316 3.64875 13.2708C4.04999 13.51 4.54381 13.6296 5.13023 13.6296C5.76295 13.6296 6.29922 13.4868 6.73903 13.2013C7.17884 12.9159 7.39875 12.4722 7.39875 11.8703C7.39875 11.3302 7.229 10.902 6.88949 10.5856C6.54999 10.2692 5.76295 9.91045 4.52838 9.50922C3.20122 9.09255 2.29073 8.59487 1.7969 8.01616C1.30307 7.43746 1.05616 6.73144 1.05616 5.89811C1.05616 4.89502 1.38023 4.1157 2.02838 3.56014C2.67653 3.00459 3.34011 2.68823 4.01912 2.61107V1.59255C4.01912 1.33021 4.10786 1.1103 4.28533 0.93283C4.4628 0.755361 4.6827 0.666626 4.94505 0.666626C5.20739 0.666626 5.4273 0.755361 5.60477 0.93283C5.78224 1.1103 5.87097 1.33021 5.87097 1.59255V2.61107C6.45739 2.70366 6.96665 2.89271 7.39875 3.1782C7.83085 3.46369 8.18579 3.81477 8.46357 4.23144C8.60246 4.43206 8.62946 4.65582 8.54459 4.90274C8.45971 5.14965 8.2861 5.32712 8.02375 5.43514C7.8077 5.52774 7.58394 5.5316 7.35246 5.44672C7.12098 5.36184 6.90493 5.21138 6.70431 4.99533C6.50369 4.77928 6.26835 4.61339 5.99829 4.49764C5.72823 4.3819 5.39258 4.32403 4.99134 4.32403C4.31233 4.32403 3.79536 4.4745 3.44042 4.77542C3.08548 5.07635 2.90801 5.45058 2.90801 5.89811C2.90801 6.40737 3.13949 6.8086 3.60246 7.10181C4.06542 7.39502 4.86789 7.70366 6.00986 8.02774C7.07468 8.33638 7.88101 8.82635 8.42885 9.49765C8.97668 10.1689 9.2506 10.9444 9.2506 11.824C9.2506 12.9197 8.92653 13.753 8.27838 14.324C7.63023 14.895 6.82776 15.25 5.87097 15.3888V16.4074C5.87097 16.6697 5.78224 16.8896 5.60477 17.0671C5.4273 17.2446 5.20739 17.3333 4.94505 17.3333Z" fill="#6D7275"/>
3
- </svg>