@npm_leadtech/legal-lib-components 7.3.1 → 7.4.1
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/css/styles.css +0 -28
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +1 -1
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +1 -1
- package/dist/src/components/atoms/FeatureRatafiaCard/FeatureRatafiaCard.js +1 -1
- package/dist/src/components/atoms/FeatureRatafiaCard/FeatureRatafiaCard.tsx +2 -2
- package/dist/src/components/atoms/IconImage/IconImage.js +2 -2
- package/dist/src/components/atoms/IconImage/IconImage.tsx +7 -9
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.styled.js +6 -0
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.styled.ts +6 -0
- package/dist/src/components/molecules/TextInput/Input.d.ts +0 -2
- package/dist/src/components/molecules/TextInput/Input.js +3 -11
- package/dist/src/components/molecules/TextInput/Input.tsx +2 -24
- package/dist/src/components/molecules/TextInput/TextInput.js +9 -5
- package/dist/src/components/molecules/TextInput/TextInput.scss +0 -32
- package/dist/src/components/molecules/TextInput/TextInput.tsx +5 -7
- package/dist/src/components/molecules/TextInput/TextInputProps.types.d.ts +0 -2
- package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +0 -2
- package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +0 -22
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +79 -32
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.ts +79 -32
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +27 -4
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +7 -1
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.ts +8 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +2 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +2 -1
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.js +1 -1
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.tsx +5 -0
- package/package.json +1 -1
- package/dist/images/svg/currencyUS.svg +0 -3
package/dist/css/styles.css
CHANGED
|
@@ -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("
|
|
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
|
-
<
|
|
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("
|
|
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
|
-
<
|
|
20
|
+
<p className='sans-serif --big --bold-weight feature-ratafia-card__wrapper__header__title__text'>
|
|
21
21
|
{title}
|
|
22
|
-
</
|
|
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 =
|
|
3
|
-
return
|
|
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> = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.styled.js
CHANGED
|
@@ -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 {
|
package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.styled.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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: '' }) }))
|
|
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={
|
|
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,
|
|
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',
|
|
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,
|
|
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
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { RichTextInner, RichTextStrapi } from '../../atoms';
|
|
2
|
+
import { Button, RichTextInner, RichTextStrapi } from '../../atoms';
|
|
3
3
|
import { GuideslinesContentStyled } from './GuidelinesContent.styled';
|
|
4
|
-
const GuidelinesContent = ({ title,
|
|
5
|
-
return (_jsxs(GuideslinesContentStyled, { children: [
|
|
4
|
+
const GuidelinesContent = ({ title, detail, children, tryNowText, tryNowButtonText, tryNowButtonLink, tryNowButtonDataQa, tryNowImage }) => {
|
|
5
|
+
return (_jsxs(GuideslinesContentStyled, { children: [_jsx("div", { className: 'guidelines-section-main wrapper', children: _jsxs("div", { className: 'guidelines-section__texts', children: [_jsx("h2", { className: 'guidelines-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: children })] }) }), Array.isArray(detail) && (_jsx("div", { className: 'guidelines-section-detail wrapper', children: detail.map((item, index) => (_jsxs("div", { className: 'guidelines-section-detail__item', children: [_jsx("div", { className: 'guidelines-section-detail__item__image', children: item.image }), _jsx("div", { className: 'guidelines-section-detail__item__title', children: item.title }), _jsx(RichTextStrapi, { html: item.body?.data?.childMarkdownRemark?.html })] }, index))) })), _jsx("div", { className: 'guidelines-section-trial wrapper', children: _jsxs("div", { className: 'guidelines-section-trial__item', children: [_jsx("div", { className: 'guidelines-section__image is-mobile', children: tryNowImage }), _jsxs("div", { className: 'guidelines-section-trial__texts', children: [_jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: tryNowText }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: tryNowButtonDataQa, link: tryNowButtonLink, color: 'primary', label: tryNowButtonText })] }), _jsx("div", { className: 'guidelines-section__image big-devices', children: tryNowImage })] }) })] }));
|
|
6
6
|
};
|
|
7
7
|
export default GuidelinesContent;
|
|
@@ -14,7 +14,6 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.guidelines-section__texts {
|
|
17
|
-
flex-basis: 50%;
|
|
18
17
|
display: flex;
|
|
19
18
|
flex-direction: column;
|
|
20
19
|
justify-content: center;
|
|
@@ -34,10 +33,10 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
34
33
|
font-family: var(--font-serif);
|
|
35
34
|
margin-bottom: 2rem;
|
|
36
35
|
text-align: center;
|
|
37
|
-
font-size:
|
|
36
|
+
font-size: 28px;
|
|
38
37
|
font-style: normal;
|
|
39
|
-
font-weight:
|
|
40
|
-
line-height:
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
line-height: 32px;
|
|
41
40
|
letter-spacing: -0.3px;
|
|
42
41
|
|
|
43
42
|
@media ${device['landscape-tablets']} {
|
|
@@ -57,31 +56,6 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
.guidelines-section__image {
|
|
61
|
-
flex-basis: 50%;
|
|
62
|
-
margin-bottom: 2rem;
|
|
63
|
-
|
|
64
|
-
&.big-devices {
|
|
65
|
-
display: none;
|
|
66
|
-
|
|
67
|
-
@media ${device['landscape-tablets']} {
|
|
68
|
-
display: flex;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.is-mobile {
|
|
73
|
-
display: none;
|
|
74
|
-
|
|
75
|
-
@media ${device['landscape-tablets']} {
|
|
76
|
-
display: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
img {
|
|
80
|
-
display: none;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
59
|
.guidelines-section-detail {
|
|
86
60
|
display: flex;
|
|
87
61
|
flex-direction: column;
|
|
@@ -108,9 +82,9 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
108
82
|
&__title {
|
|
109
83
|
font-family: var(--font-serif);
|
|
110
84
|
font-style: normal;
|
|
111
|
-
font-weight:
|
|
112
|
-
font-size:
|
|
113
|
-
line-height:
|
|
85
|
+
font-weight: 700;
|
|
86
|
+
font-size: 18px;
|
|
87
|
+
line-height: 24px;
|
|
114
88
|
letter-spacing: -0.3px;
|
|
115
89
|
color: var(--neutral-neutral-1);
|
|
116
90
|
margin: 1.5rem 0 1rem 0;
|
|
@@ -135,4 +109,77 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
135
109
|
}
|
|
136
110
|
}
|
|
137
111
|
}
|
|
112
|
+
|
|
113
|
+
.guidelines-section-trial {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
gap: 1.5rem;
|
|
117
|
+
margin: 2rem 0 1rem 0;
|
|
118
|
+
|
|
119
|
+
@media ${device.laptop} {
|
|
120
|
+
flex-direction: row;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&__texts {
|
|
124
|
+
flex-basis: 50%;
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
justify-content: flex-start;
|
|
128
|
+
color: var(--neutral-neutral-1);
|
|
129
|
+
font-style: normal;
|
|
130
|
+
font-weight: 400;
|
|
131
|
+
letter-spacing: -0.3px;
|
|
132
|
+
margin-right: 3rem;
|
|
133
|
+
|
|
134
|
+
&__body {
|
|
135
|
+
font-family: var(--font-sans);
|
|
136
|
+
font-size: 16px;
|
|
137
|
+
line-height: 22px;
|
|
138
|
+
margin-bottom: 1.5rem;
|
|
139
|
+
a {
|
|
140
|
+
color: var(--primary-main-light-1);
|
|
141
|
+
font-weight: 400 !important;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
.e-button {
|
|
145
|
+
height: auto;
|
|
146
|
+
align-self: flex-start;
|
|
147
|
+
margin-top: 2.5rem;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&__item {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: row;
|
|
154
|
+
justify-content: space-between;
|
|
155
|
+
background: var(--others-white);
|
|
156
|
+
border-radius: var(--m-border-radius);
|
|
157
|
+
padding: 1.5rem;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.guidelines-section__image {
|
|
162
|
+
flex-basis: 50%;
|
|
163
|
+
margin-bottom: 2rem;
|
|
164
|
+
|
|
165
|
+
&.big-devices {
|
|
166
|
+
display: none;
|
|
167
|
+
|
|
168
|
+
@media ${device['landscape-tablets']} {
|
|
169
|
+
display: flex;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.is-mobile {
|
|
174
|
+
display: none;
|
|
175
|
+
|
|
176
|
+
@media ${device['landscape-tablets']} {
|
|
177
|
+
display: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
img {
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
138
185
|
`;
|
|
@@ -15,7 +15,6 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.guidelines-section__texts {
|
|
18
|
-
flex-basis: 50%;
|
|
19
18
|
display: flex;
|
|
20
19
|
flex-direction: column;
|
|
21
20
|
justify-content: center;
|
|
@@ -35,10 +34,10 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
35
34
|
font-family: var(--font-serif);
|
|
36
35
|
margin-bottom: 2rem;
|
|
37
36
|
text-align: center;
|
|
38
|
-
font-size:
|
|
37
|
+
font-size: 28px;
|
|
39
38
|
font-style: normal;
|
|
40
|
-
font-weight:
|
|
41
|
-
line-height:
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
line-height: 32px;
|
|
42
41
|
letter-spacing: -0.3px;
|
|
43
42
|
|
|
44
43
|
@media ${device['landscape-tablets']} {
|
|
@@ -58,31 +57,6 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
|
|
61
|
-
.guidelines-section__image {
|
|
62
|
-
flex-basis: 50%;
|
|
63
|
-
margin-bottom: 2rem;
|
|
64
|
-
|
|
65
|
-
&.big-devices {
|
|
66
|
-
display: none;
|
|
67
|
-
|
|
68
|
-
@media ${device['landscape-tablets']} {
|
|
69
|
-
display: flex;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.is-mobile {
|
|
74
|
-
display: none;
|
|
75
|
-
|
|
76
|
-
@media ${device['landscape-tablets']} {
|
|
77
|
-
display: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
img {
|
|
81
|
-
display: none;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
60
|
.guidelines-section-detail {
|
|
87
61
|
display: flex;
|
|
88
62
|
flex-direction: column;
|
|
@@ -109,9 +83,9 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
109
83
|
&__title {
|
|
110
84
|
font-family: var(--font-serif);
|
|
111
85
|
font-style: normal;
|
|
112
|
-
font-weight:
|
|
113
|
-
font-size:
|
|
114
|
-
line-height:
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
font-size: 18px;
|
|
88
|
+
line-height: 24px;
|
|
115
89
|
letter-spacing: -0.3px;
|
|
116
90
|
color: var(--neutral-neutral-1);
|
|
117
91
|
margin: 1.5rem 0 1rem 0;
|
|
@@ -136,4 +110,77 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
136
110
|
}
|
|
137
111
|
}
|
|
138
112
|
}
|
|
113
|
+
|
|
114
|
+
.guidelines-section-trial {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
gap: 1.5rem;
|
|
118
|
+
margin: 2rem 0 1rem 0;
|
|
119
|
+
|
|
120
|
+
@media ${device.laptop} {
|
|
121
|
+
flex-direction: row;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__texts {
|
|
125
|
+
flex-basis: 50%;
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
justify-content: flex-start;
|
|
129
|
+
color: var(--neutral-neutral-1);
|
|
130
|
+
font-style: normal;
|
|
131
|
+
font-weight: 400;
|
|
132
|
+
letter-spacing: -0.3px;
|
|
133
|
+
margin-right: 3rem;
|
|
134
|
+
|
|
135
|
+
&__body {
|
|
136
|
+
font-family: var(--font-sans);
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
line-height: 22px;
|
|
139
|
+
margin-bottom: 1.5rem;
|
|
140
|
+
a {
|
|
141
|
+
color: var(--primary-main-light-1);
|
|
142
|
+
font-weight: 400 !important;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.e-button {
|
|
146
|
+
height: auto;
|
|
147
|
+
align-self: flex-start;
|
|
148
|
+
margin-top: 2.5rem;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&__item {
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-direction: row;
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
background: var(--others-white);
|
|
157
|
+
border-radius: var(--m-border-radius);
|
|
158
|
+
padding: 1.5rem;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.guidelines-section__image {
|
|
163
|
+
flex-basis: 50%;
|
|
164
|
+
margin-bottom: 2rem;
|
|
165
|
+
|
|
166
|
+
&.big-devices {
|
|
167
|
+
display: none;
|
|
168
|
+
|
|
169
|
+
@media ${device['landscape-tablets']} {
|
|
170
|
+
display: flex;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.is-mobile {
|
|
175
|
+
display: none;
|
|
176
|
+
|
|
177
|
+
@media ${device['landscape-tablets']} {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
img {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
139
186
|
`
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
|
-
import { RichTextInner, RichTextStrapi } from '../../atoms'
|
|
3
|
+
import { Button, RichTextInner, RichTextStrapi } from '../../atoms'
|
|
4
4
|
import { type GuidelinesContentProps } from './GuidelinesContentProps.types'
|
|
5
5
|
import { GuideslinesContentStyled } from './GuidelinesContent.styled'
|
|
6
6
|
|
|
7
|
-
const GuidelinesContent: FC<GuidelinesContentProps> = ({
|
|
7
|
+
const GuidelinesContent: FC<GuidelinesContentProps> = ({
|
|
8
|
+
title,
|
|
9
|
+
detail,
|
|
10
|
+
children,
|
|
11
|
+
tryNowText,
|
|
12
|
+
tryNowButtonText,
|
|
13
|
+
tryNowButtonLink,
|
|
14
|
+
tryNowButtonDataQa,
|
|
15
|
+
tryNowImage
|
|
16
|
+
}) => {
|
|
8
17
|
return (
|
|
9
18
|
<GuideslinesContentStyled>
|
|
10
19
|
<div className='guidelines-section-main wrapper'>
|
|
11
|
-
<div className='guidelines-section__image big-devices'>{image}</div>
|
|
12
20
|
<div className='guidelines-section__texts'>
|
|
13
21
|
<h2 className='guidelines-section__texts__title'>{title}</h2>
|
|
14
22
|
<RichTextInner customClass='guidelines-section__texts__body'>{children}</RichTextInner>
|
|
15
23
|
</div>
|
|
16
|
-
<div className='guidelines-section__image is-mobile'>{image}</div>
|
|
17
24
|
</div>
|
|
18
25
|
{Array.isArray(detail) && (
|
|
19
26
|
<div className='guidelines-section-detail wrapper'>
|
|
@@ -26,6 +33,22 @@ const GuidelinesContent: FC<GuidelinesContentProps> = ({ title, image, detail, c
|
|
|
26
33
|
))}
|
|
27
34
|
</div>
|
|
28
35
|
)}
|
|
36
|
+
<div className='guidelines-section-trial wrapper'>
|
|
37
|
+
<div className='guidelines-section-trial__item'>
|
|
38
|
+
<div className='guidelines-section__image is-mobile'>{tryNowImage}</div>
|
|
39
|
+
<div className='guidelines-section-trial__texts'>
|
|
40
|
+
<RichTextInner customClass='guidelines-section__texts__body'>{tryNowText}</RichTextInner>
|
|
41
|
+
<Button
|
|
42
|
+
givenClass='mid-banner-ratafia-content__cta'
|
|
43
|
+
dataQa={tryNowButtonDataQa}
|
|
44
|
+
link={tryNowButtonLink}
|
|
45
|
+
color='primary'
|
|
46
|
+
label={tryNowButtonText}
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
<div className='guidelines-section__image big-devices'>{tryNowImage}</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
29
52
|
</GuideslinesContentStyled>
|
|
30
53
|
)
|
|
31
54
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface GuidelinesContentProps {
|
|
2
3
|
title: string;
|
|
3
|
-
image
|
|
4
|
+
image?: React.ReactNode;
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
detail?: React.ReactNode;
|
|
7
|
+
tryNowText: React.ReactNode;
|
|
8
|
+
tryNowButtonText: string;
|
|
9
|
+
tryNowButtonLink: string;
|
|
10
|
+
tryNowButtonDataQa: string;
|
|
11
|
+
tryNowImage?: React.ReactNode;
|
|
6
12
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
1
3
|
export interface GuidelinesContentProps {
|
|
2
4
|
title: string
|
|
3
|
-
image
|
|
5
|
+
image?: React.ReactNode
|
|
4
6
|
children: React.ReactNode
|
|
5
7
|
detail?: React.ReactNode
|
|
8
|
+
tryNowText: React.ReactNode
|
|
9
|
+
tryNowButtonText: string
|
|
10
|
+
tryNowButtonLink: string
|
|
11
|
+
tryNowButtonDataQa: string
|
|
12
|
+
tryNowImage?: React.ReactNode
|
|
6
13
|
}
|
package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js
CHANGED
|
@@ -39,7 +39,7 @@ export const FeaturesRatafiaSectionStyled = styled.section `
|
|
|
39
39
|
|
|
40
40
|
&__children {
|
|
41
41
|
display: none;
|
|
42
|
-
|
|
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
|
}
|
package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts
CHANGED
|
@@ -40,7 +40,7 @@ export const FeaturesRatafiaSectionStyled = styled.section`
|
|
|
40
40
|
|
|
41
41
|
&__children {
|
|
42
42
|
display: none;
|
|
43
|
-
|
|
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
|
}
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { GuidelinesContent } from '../../organisms/GuidelinesContent';
|
|
3
3
|
import { GuidelinesSectionStyled } from './GuidelinesSection.styled';
|
|
4
4
|
const GuidelinesSection = ({ contentGuidelines }) => {
|
|
5
|
-
return (_jsx(GuidelinesSectionStyled, { className: 'guidelines-section', children: _jsx(GuidelinesContent, { title: contentGuidelines.title, image: contentGuidelines.image, detail: contentGuidelines.detail, children: contentGuidelines.children }) }));
|
|
5
|
+
return (_jsx(GuidelinesSectionStyled, { className: 'guidelines-section', children: _jsx(GuidelinesContent, { title: contentGuidelines.title, image: contentGuidelines.image, detail: contentGuidelines.detail, tryNowText: contentGuidelines.tryNowText, tryNowButtonText: contentGuidelines.tryNowButtonText, tryNowButtonLink: contentGuidelines.tryNowButtonLink, tryNowButtonDataQa: contentGuidelines.tryNowButtonDataQa, tryNowImage: contentGuidelines.tryNowImage, children: contentGuidelines.children }) }));
|
|
6
6
|
};
|
|
7
7
|
export default GuidelinesSection;
|
|
@@ -11,6 +11,11 @@ const GuidelinesSection: FC<GuidelinesSectionProps> = ({ contentGuidelines }) =>
|
|
|
11
11
|
title={contentGuidelines.title}
|
|
12
12
|
image={contentGuidelines.image}
|
|
13
13
|
detail={contentGuidelines.detail}
|
|
14
|
+
tryNowText={contentGuidelines.tryNowText}
|
|
15
|
+
tryNowButtonText={contentGuidelines.tryNowButtonText}
|
|
16
|
+
tryNowButtonLink={contentGuidelines.tryNowButtonLink}
|
|
17
|
+
tryNowButtonDataQa={contentGuidelines.tryNowButtonDataQa}
|
|
18
|
+
tryNowImage={contentGuidelines.tryNowImage}
|
|
14
19
|
>
|
|
15
20
|
{contentGuidelines.children}
|
|
16
21
|
</GuidelinesContent>
|
package/package.json
CHANGED
|
@@ -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>
|